r2-explorer 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/dashboard/assets/AuthLayout.297460d7.js +1 -0
  2. package/dashboard/assets/EmailFilePage.f737d2d4.js +2 -0
  3. package/dashboard/assets/{ErrorNotFound.a0d3ece6.js → ErrorNotFound.be9ef3ac.js} +1 -1
  4. package/dashboard/assets/LoginPage.fbddb0c0.js +1 -0
  5. package/dashboard/assets/auth-store.748ba7e9.js +1 -0
  6. package/dashboard/assets/auth.221c63c3.js +1 -0
  7. package/dashboard/assets/{bus.def2db9e.js → bus.b6904cee.js} +1 -1
  8. package/dashboard/assets/index.b2fb13c9.js +104 -0
  9. package/dashboard/assets/{index.073c3cc5.css → index.c9ff738b.css} +1 -1
  10. package/dashboard/index.html +48 -3
  11. package/dashboard/spa/assets/AuthLayout.297460d7.js +1 -0
  12. package/dashboard/spa/assets/EmailFilePage.c4890c9c.css +1 -0
  13. package/dashboard/spa/assets/EmailFilePage.f737d2d4.js +2 -0
  14. package/dashboard/spa/assets/ErrorNotFound.be9ef3ac.js +1 -0
  15. package/dashboard/spa/assets/KFOkCnqEu92Fr1MmgVxIIzQ.d240a9ae.woff +0 -0
  16. package/dashboard/spa/assets/KFOlCnqEu92Fr1MmEU9fBBc-.6ba203eb.woff +0 -0
  17. package/dashboard/spa/assets/KFOlCnqEu92Fr1MmSU5fBBc-.80684728.woff +0 -0
  18. package/dashboard/spa/assets/KFOlCnqEu92Fr1MmWUlfBBc-.2df244f6.woff +0 -0
  19. package/dashboard/spa/assets/KFOlCnqEu92Fr1MmYUtfBBc-.742ce02b.woff +0 -0
  20. package/dashboard/spa/assets/KFOmCnqEu92Fr1Mu4mxM.f00fa16d.woff +0 -0
  21. package/dashboard/spa/assets/LoginPage.fbddb0c0.js +1 -0
  22. package/dashboard/spa/assets/auth-store.748ba7e9.js +1 -0
  23. package/dashboard/spa/assets/auth.221c63c3.js +1 -0
  24. package/dashboard/spa/assets/bus.b6904cee.js +1 -0
  25. package/dashboard/spa/assets/flUhRq6tzZclQEJ-Vdg-IuiaDsNa.fd84f88b.woff +0 -0
  26. package/dashboard/spa/assets/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.4a4dbc62.woff2 +0 -0
  27. package/dashboard/spa/assets/index.b2fb13c9.js +104 -0
  28. package/dashboard/spa/assets/index.c9ff738b.css +5 -0
  29. package/dashboard/spa/favicon.ico +0 -0
  30. package/dashboard/spa/icons/favicon-128x128.png +0 -0
  31. package/dashboard/spa/icons/favicon-16x16.png +0 -0
  32. package/dashboard/spa/icons/favicon-32x32.png +0 -0
  33. package/dashboard/spa/icons/favicon-96x96.png +0 -0
  34. package/dashboard/spa/icons/logo.png +0 -0
  35. package/dashboard/spa/index.html +48 -0
  36. package/dashboard/spa/logo-white.svg +5 -0
  37. package/dashboard/spa/logo.png +0 -0
  38. package/dashboard/spa/robots.txt +2 -0
  39. package/dist/index.js +5 -3
  40. package/dist/index.mjs +5 -3
  41. package/package.json +67 -66
  42. package/dashboard/assets/AuthLayout.828e1213.js +0 -1
  43. package/dashboard/assets/EmailFilePage.148b4f84.js +0 -2
  44. package/dashboard/assets/EmailFolderPage.0c5be156.js +0 -1
  45. package/dashboard/assets/EmailFolderPage.25044e0a.css +0 -1
  46. package/dashboard/assets/FilesFolderPage.7cadc3fd.js +0 -72
  47. package/dashboard/assets/FilesFolderPage.ecacd99f.css +0 -1
  48. package/dashboard/assets/HomePage.fd1efdb0.js +0 -1
  49. package/dashboard/assets/LoginPage.5e2746c3.js +0 -1
  50. package/dashboard/assets/MainLayout.05d49d78.css +0 -1
  51. package/dashboard/assets/MainLayout.54c624c6.js +0 -1
  52. package/dashboard/assets/QCard.9ca85696.js +0 -1
  53. package/dashboard/assets/QCardActions.3d6ece78.js +0 -1
  54. package/dashboard/assets/QForm.1a0fa8bd.js +0 -1
  55. package/dashboard/assets/QInput.dbc14c53.js +0 -1
  56. package/dashboard/assets/QLayout.7c9341c3.js +0 -1
  57. package/dashboard/assets/QPage.1736cadc.js +0 -1
  58. package/dashboard/assets/QSeparator.d0c0fb0f.js +0 -1
  59. package/dashboard/assets/QSpace.3225ba0f.js +0 -1
  60. package/dashboard/assets/QTable.3fe6867d.js +0 -1
  61. package/dashboard/assets/QTd.32b217d9.js +0 -1
  62. package/dashboard/assets/auth-store.10a6215e.js +0 -1
  63. package/dashboard/assets/auth.3fb1cfd3.js +0 -1
  64. package/dashboard/assets/axios.d3fa833b.js +0 -6
  65. package/dashboard/assets/focus-manager.1ddae684.js +0 -1
  66. package/dashboard/assets/index.31a4681e.js +0 -25
  67. package/dashboard/assets/main-store.ee636e78.js +0 -1
  68. package/dashboard/assets/scroll.6727d3ea.js +0 -1
  69. package/dashboard/assets/use-checkbox.687a19bf.js +0 -1
  70. package/dashboard/assets/use-dark.6e19ce43.js +0 -1
  71. package/dashboard/assets/use-quasar.0c0b766f.js +0 -1
  72. package/dashboard/assets/use-transition.19980487.js +0 -1
@@ -1,72 +0,0 @@
1
- import{f as createComponent,ag as useRouterLinkProps,ah as useRouterLink,h as computed,j as h,Q as QIcon,C as hMergeSlot,az as useAlignProps,aA as useAlign,aB as getNormalizedVNodes,k as hSlot,a as defineComponent,_ as _export_sfc,o as openBlock,aa as createElementBlock,e as createVNode,w as withCtx,c as createBlock,ad as QAvatar,G as createTextVNode,F as createBaseVNode,H as toDisplayString,W as QSpinner,I as createCommentVNode,a8 as withDirectives,J as QBtn,ab as Fragment,aC as renderList,r as resolveComponent,ac as renderSlot,aD as normalizeClass,aE as withModifiers}from"./index.31a4681e.js";import{Q as QTd}from"./QTd.32b217d9.js";import{Q as QDialog,j as QLinearProgress,g as QItem,e as QItemSection,d as QList,h as QTable,c as QMenu}from"./QTable.3fe6867d.js";import{Q as QPage}from"./QPage.1736cadc.js";import{a as QCard,Q as QCardSection}from"./QCard.9ca85696.js";import{Q as QCardActions}from"./QCardActions.3d6ece78.js";import{Q as QInput}from"./QInput.dbc14c53.js";import{C as ClosePopup,Q as QSpace}from"./QSpace.3225ba0f.js";import{u as useQuasar}from"./use-quasar.0c0b766f.js";import{e as apiHandler,R as ROOT_FOLDER,f as decode,t as bytesToMegabytes,w as encode}from"./QSeparator.d0c0fb0f.js";import{u as useMainStore}from"./main-store.ee636e78.js";import"./use-dark.6e19ce43.js";import"./scroll.6727d3ea.js";import"./use-checkbox.687a19bf.js";import"./focus-manager.1ddae684.js";import"./use-transition.19980487.js";import"./axios.d3fa833b.js";var QBreadcrumbsEl=createComponent({name:"QBreadcrumbsEl",props:{...useRouterLinkProps,label:String,icon:String,tag:{type:String,default:"span"}},emits:["click"],setup(p,{slots:f}){const{linkTag:S,linkAttrs:d,linkClass:R,navigateOnClick:g}=useRouterLink(),O=computed(()=>({class:"q-breadcrumbs__el q-link flex inline items-center relative-position "+(p.disable!==!0?"q-link--focusable"+R.value:"q-breadcrumbs__el--disable"),...d.value,onClick:g})),J=computed(()=>"q-breadcrumbs__el-icon"+(p.label!==void 0?" q-breadcrumbs__el-icon--with-label":""));return()=>{const a=[];return p.icon!==void 0&&a.push(h(QIcon,{class:J.value,name:p.icon})),p.label!==void 0&&a.push(p.label),h(S.value,{...O.value},hMergeSlot(f.default,a))}}});const disabledValues=["",!0];var QBreadcrumbs=createComponent({name:"QBreadcrumbs",props:{...useAlignProps,separator:{type:String,default:"/"},separatorColor:String,activeColor:{type:String,default:"primary"},gutter:{type:String,validator:p=>["none","xs","sm","md","lg","xl"].includes(p),default:"sm"}},setup(p,{slots:f}){const S=useAlign(p),d=computed(()=>`flex items-center ${S.value}${p.gutter==="none"?"":` q-gutter-${p.gutter}`}`),R=computed(()=>p.separatorColor?` text-${p.separatorColor}`:""),g=computed(()=>` text-${p.activeColor}`);return()=>{if(f.default===void 0)return;const O=getNormalizedVNodes(hSlot(f.default));if(O.length===0)return;let J=1;const a=[],se=O.filter(ee=>ee.type!==void 0&&ee.type.name==="QBreadcrumbsEl").length,H=f.separator!==void 0?f.separator:()=>p.separator;return O.forEach(ee=>{if(ee.type!==void 0&&ee.type.name==="QBreadcrumbsEl"){const ie=J<se,m=ee.props!==null&&disabledValues.includes(ee.props.disable),u=(ie===!0?"":" q-breadcrumbs--last")+(m!==!0&&ie===!0?g.value:"");J++,a.push(h("div",{class:`flex items-center${u}`},[ee])),ie===!0&&a.push(h("div",{class:"q-breadcrumbs__separator"+R.value},H()))}else a.push(ee)}),h("div",{class:"q-breadcrumbs"},[h("div",{class:d.value},a)])}}}),FileOptions_vue_vue_type_style_index_0_scoped_true_lang="";const _sfc_main$9=defineComponent({name:"FileOptions",data:()=>({row:null,deleteFolderContents:[],deleteModal:!1,renameModal:!1,deleteFolderInnerFilesCount:null,newFolderName:"",renameInput:"",loading:!1}),methods:{deleteObject:async function(p){this.deleteModal=!0,this.row=p,p.type==="folder"&&(this.deleteFolderContents=await apiHandler.fetchFile(this.selectedBucket,p.key,""),this.deleteFolderInnerFilesCount=this.deleteFolderContents.length)},renameObject:async function(p){this.renameModal=!0,this.row=p,this.renameInput=p.name},renameConfirm:async function(){this.renameInput.length!==0&&(this.loading=!0,await apiHandler.renameObject(this.selectedBucket,this.row.key,this.row.key.replace(this.row.name,this.renameInput)),this.$bus.emit("fetchFiles"),this.reset(),this.q.notify({group:!1,icon:"done",spinner:!1,message:"File renamed!",timeout:2500}))},deleteConfirm:async function(){if(this.row.type==="folder"){const p={...this.row},f=[...this.deleteFolderContents],S=this.deleteFolderInnerFilesCount;this.deleteModal=!1;const d=this.q.notify({group:!1,spinner:!0,message:"Deleting files...",caption:"0%",timeout:0});for(const[R,g]of f.entries())g.key&&await apiHandler.deleteObject(g.key,this.selectedBucket),d({caption:`${Number.parseInt(R*100/(S+1))}%`});await apiHandler.deleteObject(p.key,this.selectedBucket),d({icon:"done",spinner:!1,caption:"100%",message:"Folder deleted!",timeout:2500})}else this.deleteModal=!1,await apiHandler.deleteObject(this.row.key,this.selectedBucket),this.q.notify({group:!1,icon:"done",spinner:!1,message:"File deleted!",timeout:2500});this.$bus.emit("fetchFiles"),this.reset()},reset:function(){this.loading=!1,this.deleteModal=!1,this.renameModal=!1,this.renameInput="",this.row=null,this.deleteFolderInnerFilesCount=null,this.deleteFolderContents=[]},onSubmit:async function(){await apiHandler.createFolder(`${this.selectedFolder+this.newFolderName}/`,this.selectedBucket),this.$bus.emit("fetchFiles"),this.modal=!1},open:function(){this.modal=!0}},computed:{selectedBucket:function(){return this.$route.params.bucket},selectedFolder:function(){return this.$route.params.folder&&this.$route.params.folder!==ROOT_FOLDER?decode(this.$route.params.folder):""}},setup(){return{mainStore:useMainStore(),q:useQuasar()}}}),_hoisted_1$6={key:0,class:"q-ml-sm"},_hoisted_2$3={key:0},_hoisted_3$3={key:1},_hoisted_4$3={key:1,class:"q-ml-sm"};function _sfc_render$8(p,f,S,d,R,g){return openBlock(),createElementBlock(Fragment,null,[createVNode(QDialog,{modelValue:p.deleteModal,"onUpdate:modelValue":f[0]||(f[0]=O=>p.deleteModal=O),onHide:p.reset},{default:withCtx(()=>[createVNode(QCard,null,{default:withCtx(()=>[p.row?(openBlock(),createBlock(QCardSection,{key:0,class:"row column"},{default:withCtx(()=>[createVNode(QAvatar,{class:"q-mb-md",icon:"delete",color:"red","text-color":"white"}),p.row.type==="folder"?(openBlock(),createElementBlock("span",_hoisted_1$6,[f[3]||(f[3]=createTextVNode("Are you sure you want to delete the folder ")),createBaseVNode("code",null,toDisplayString(p.row.name),1),f[4]||(f[4]=createTextVNode(", and ")),p.deleteFolderInnerFilesCount!==null?(openBlock(),createElementBlock("code",_hoisted_2$3,toDisplayString(p.deleteFolderInnerFilesCount),1)):(openBlock(),createElementBlock("code",_hoisted_3$3,[createVNode(QSpinner,{color:"primary"})])),f[5]||(f[5]=createTextVNode(" files inside?"))])):(openBlock(),createElementBlock("span",_hoisted_4$3,[f[6]||(f[6]=createTextVNode("Are you sure you want to delete the file ")),createBaseVNode("code",null,toDisplayString(p.row.name),1),f[7]||(f[7]=createTextVNode("?"))]))]),_:1})):createCommentVNode("",!0),createVNode(QCardActions,{align:"right"},{default:withCtx(()=>[withDirectives(createVNode(QBtn,{flat:"",label:"Cancel",color:"primary"},null,512),[[ClosePopup]]),createVNode(QBtn,{flat:"",label:"Delete",color:"red",loading:p.loading,onClick:p.deleteConfirm},null,8,["loading","onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue","onHide"]),createVNode(QDialog,{modelValue:p.renameModal,"onUpdate:modelValue":f[2]||(f[2]=O=>p.renameModal=O),onHide:p.reset},{default:withCtx(()=>[createVNode(QCard,{style:{"min-width":"300px"}},{default:withCtx(()=>[p.row?(openBlock(),createBlock(QCardSection,{key:0,class:"row column"},{default:withCtx(()=>[createVNode(QAvatar,{class:"q-mb-md",icon:"edit",color:"orange","text-color":"white"}),createVNode(QInput,{modelValue:p.renameInput,"onUpdate:modelValue":f[1]||(f[1]=O=>p.renameInput=O),label:"Standard"},null,8,["modelValue"])]),_:1})):createCommentVNode("",!0),createVNode(QCardActions,{align:"right"},{default:withCtx(()=>[withDirectives(createVNode(QBtn,{flat:"",label:"Cancel",color:"primary"},null,512),[[ClosePopup]]),createVNode(QBtn,{flat:"",label:"Rename",color:"orange",loading:p.loading,onClick:p.renameConfirm},null,8,["loading","onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue","onHide"])],64)}var FileOptions=_export_sfc(_sfc_main$9,[["render",_sfc_render$8],["__scopeId","data-v-b53c834a"]]),ElementType;(function(p){p.Root="root",p.Text="text",p.Directive="directive",p.Comment="comment",p.Script="script",p.Style="style",p.Tag="tag",p.CDATA="cdata",p.Doctype="doctype"})(ElementType||(ElementType={}));function isTag$1(p){return p.type===ElementType.Tag||p.type===ElementType.Script||p.type===ElementType.Style}const Root=ElementType.Root,Text$1=ElementType.Text,Directive=ElementType.Directive,Comment$1=ElementType.Comment,Script=ElementType.Script,Style=ElementType.Style,Tag=ElementType.Tag,CDATA$1=ElementType.CDATA,Doctype=ElementType.Doctype;class Node{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(f){this.parent=f}get previousSibling(){return this.prev}set previousSibling(f){this.prev=f}get nextSibling(){return this.next}set nextSibling(f){this.next=f}cloneNode(f=!1){return cloneNode(this,f)}}class DataNode extends Node{constructor(f){super(),this.data=f}get nodeValue(){return this.data}set nodeValue(f){this.data=f}}class Text extends DataNode{constructor(){super(...arguments),this.type=ElementType.Text}get nodeType(){return 3}}class Comment extends DataNode{constructor(){super(...arguments),this.type=ElementType.Comment}get nodeType(){return 8}}class ProcessingInstruction extends DataNode{constructor(f,S){super(S),this.name=f,this.type=ElementType.Directive}get nodeType(){return 1}}class NodeWithChildren extends Node{constructor(f){super(),this.children=f}get firstChild(){var f;return(f=this.children[0])!==null&&f!==void 0?f:null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(f){this.children=f}}class CDATA extends NodeWithChildren{constructor(){super(...arguments),this.type=ElementType.CDATA}get nodeType(){return 4}}class Document extends NodeWithChildren{constructor(){super(...arguments),this.type=ElementType.Root}get nodeType(){return 9}}class Element extends NodeWithChildren{constructor(f,S,d=[],R=f==="script"?ElementType.Script:f==="style"?ElementType.Style:ElementType.Tag){super(d),this.name=f,this.attribs=S,this.type=R}get nodeType(){return 1}get tagName(){return this.name}set tagName(f){this.name=f}get attributes(){return Object.keys(this.attribs).map(f=>{var S,d;return{name:f,value:this.attribs[f],namespace:(S=this["x-attribsNamespace"])===null||S===void 0?void 0:S[f],prefix:(d=this["x-attribsPrefix"])===null||d===void 0?void 0:d[f]}})}}function isTag(p){return isTag$1(p)}function isCDATA(p){return p.type===ElementType.CDATA}function isText(p){return p.type===ElementType.Text}function isComment(p){return p.type===ElementType.Comment}function isDirective(p){return p.type===ElementType.Directive}function isDocument(p){return p.type===ElementType.Root}function cloneNode(p,f=!1){let S;if(isText(p))S=new Text(p.data);else if(isComment(p))S=new Comment(p.data);else if(isTag(p)){const d=f?cloneChildren(p.children):[],R=new Element(p.name,{...p.attribs},d);d.forEach(g=>g.parent=R),p.namespace!=null&&(R.namespace=p.namespace),p["x-attribsNamespace"]&&(R["x-attribsNamespace"]={...p["x-attribsNamespace"]}),p["x-attribsPrefix"]&&(R["x-attribsPrefix"]={...p["x-attribsPrefix"]}),S=R}else if(isCDATA(p)){const d=f?cloneChildren(p.children):[],R=new CDATA(d);d.forEach(g=>g.parent=R),S=R}else if(isDocument(p)){const d=f?cloneChildren(p.children):[],R=new Document(d);d.forEach(g=>g.parent=R),p["x-mode"]&&(R["x-mode"]=p["x-mode"]),S=R}else if(isDirective(p)){const d=new ProcessingInstruction(p.name,p.data);p["x-name"]!=null&&(d["x-name"]=p["x-name"],d["x-publicId"]=p["x-publicId"],d["x-systemId"]=p["x-systemId"]),S=d}else throw new Error(`Not implemented yet: ${p.type}`);return S.startIndex=p.startIndex,S.endIndex=p.endIndex,p.sourceCodeLocation!=null&&(S.sourceCodeLocation=p.sourceCodeLocation),S}function cloneChildren(p){const f=p.map(S=>cloneNode(S,!0));for(let S=1;S<f.length;S++)f[S].prev=f[S-1],f[S-1].next=f[S];return f}const defaultOpts={withStartIndices:!1,withEndIndices:!1,xmlMode:!1};class DomHandler{constructor(f,S,d){this.dom=[],this.root=new Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof S=="function"&&(d=S,S=defaultOpts),typeof f=="object"&&(S=f,f=void 0),this.callback=f!=null?f:null,this.options=S!=null?S:defaultOpts,this.elementCB=d!=null?d:null}onparserinit(f){this.parser=f}onreset(){this.dom=[],this.root=new Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null}onend(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))}onerror(f){this.handleCallback(f)}onclosetag(){this.lastNode=null;const f=this.tagStack.pop();this.options.withEndIndices&&(f.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(f)}onopentag(f,S){const d=this.options.xmlMode?ElementType.Tag:void 0,R=new Element(f,S,void 0,d);this.addNode(R),this.tagStack.push(R)}ontext(f){const{lastNode:S}=this;if(S&&S.type===ElementType.Text)S.data+=f,this.options.withEndIndices&&(S.endIndex=this.parser.endIndex);else{const d=new Text(f);this.addNode(d),this.lastNode=d}}oncomment(f){if(this.lastNode&&this.lastNode.type===ElementType.Comment){this.lastNode.data+=f;return}const S=new Comment(f);this.addNode(S),this.lastNode=S}oncommentend(){this.lastNode=null}oncdatastart(){const f=new Text(""),S=new CDATA([f]);this.addNode(S),f.parent=S,this.lastNode=f}oncdataend(){this.lastNode=null}onprocessinginstruction(f,S){const d=new ProcessingInstruction(f,S);this.addNode(d)}handleCallback(f){if(typeof this.callback=="function")this.callback(f,this.dom);else if(f)throw f}addNode(f){const S=this.tagStack[this.tagStack.length-1],d=S.children[S.children.length-1];this.options.withStartIndices&&(f.startIndex=this.parser.startIndex),this.options.withEndIndices&&(f.endIndex=this.parser.endIndex),S.children.push(f),d&&(f.prev=d,d.next=f),f.parent=S,this.lastNode=null}}const e=/\n/g;function n(p){const f=[...p.matchAll(e)].map(d=>d.index||0);f.unshift(-1);const S=t(f,0,f.length);return d=>r(S,d)}function t(p,f,S){if(S-f==1)return{offset:p[f],index:f+1};const d=Math.ceil((f+S)/2),R=t(p,f,d),g=t(p,d,S);return{offset:R.offset,low:R,high:g}}function r(p,f){return function(S){return Object.prototype.hasOwnProperty.call(S,"index")}(p)?{line:p.index,column:f-p.offset}:r(p.high.offset<f?p.high:p.low,f)}function o(p,f="",S={}){const d=typeof f!="string"?f:S,R=typeof f=="string"?f:"",g=p.map(s),O=!!d.lineNumbers;return function(J,a=0){const se=O?n(J):()=>({line:0,column:0});let H=a;const ee=[];e:for(;H<J.length;){let ie=!1;for(const m of g){m.regex.lastIndex=H;const u=m.regex.exec(J);if(u&&u[0].length>0){if(!m.discard){const Y=se(H),re=typeof m.replace=="string"?u[0].replace(new RegExp(m.regex.source,m.regex.flags),m.replace):u[0];ee.push({state:R,name:m.name,text:re,offset:H,len:u[0].length,line:Y.line,column:Y.column})}if(H=m.regex.lastIndex,ie=!0,m.push){const Y=m.push(J,H);ee.push(...Y.tokens),H=Y.offset}if(m.pop)break e;break}}if(!ie)break}return{tokens:ee,offset:H,complete:J.length<=H}}}function s(p,f){return{...p,regex:l(p,f)}}function l(p,f){if(p.name.length===0)throw new Error(`Rule #${f} has empty name, which is not allowed.`);if(function(S){return Object.prototype.hasOwnProperty.call(S,"regex")}(p))return function(S){if(S.global)throw new Error(`Regular expression /${S.source}/${S.flags} contains the global flag, which is not allowed.`);return S.sticky?S:new RegExp(S.source,S.flags+"y")}(p.regex);if(function(S){return Object.prototype.hasOwnProperty.call(S,"str")}(p)){if(p.str.length===0)throw new Error(`Rule #${f} ("${p.name}") has empty "str" property, which is not allowed.`);return new RegExp(c(p.str),"y")}return new RegExp(c(p.name),"y")}function c(p){return p.replace(/[-[\]{}()*+!<=:?./\\^$|#\s,]/g,"\\$&")}function token(p,f){return(S,d)=>{let R=d,g;return d<S.tokens.length?(g=p(S.tokens[d],S,d),g!==void 0&&R++):f==null||f(S,d),g===void 0?{matched:!1}:{matched:!0,position:R,value:g}}}function mapInner(p,f){return p.matched?{matched:!0,position:p.position,value:f(p.value,p.position)}:p}function mapOuter(p,f){return p.matched?f(p):p}function map(p,f){return(S,d)=>mapInner(p(S,d),(R,g)=>f(R,S,d,g))}function option(p,f){return(S,d)=>{const R=p(S,d);return R.matched?R:{matched:!0,position:d,value:f}}}function choice(...p){return(f,S)=>{for(const d of p){const R=d(f,S);if(R.matched)return R}return{matched:!1}}}function otherwise(p,f){return(S,d)=>{const R=p(S,d);return R.matched?R:f(S,d)}}function takeWhile(p,f){return(S,d)=>{const R=[];let g=!0;do{const O=p(S,d);O.matched&&f(O.value,R.length+1,S,d,O.position)?(R.push(O.value),d=O.position):g=!1}while(g);return{matched:!0,position:d,value:R}}}function many(p){return takeWhile(p,()=>!0)}function many1(p){return ab(p,many(p),(f,S)=>[f,...S])}function ab(p,f,S){return(d,R)=>mapOuter(p(d,R),g=>mapInner(f(d,g.position),(O,J)=>S(g.value,O,d,R,J)))}function left(p,f){return ab(p,f,S=>S)}function right(p,f){return ab(p,f,(S,d)=>d)}function abc(p,f,S,d){return(R,g)=>mapOuter(p(R,g),O=>mapOuter(f(R,O.position),J=>mapInner(S(R,J.position),(a,se)=>d(O.value,J.value,a,R,g,se))))}function middle(p,f,S){return abc(p,f,S,(d,R)=>R)}function all(...p){return(f,S)=>{const d=[];let R=S;for(const g of p){const O=g(f,R);if(O.matched)d.push(O.value),R=O.position;else return{matched:!1}}return{matched:!0,position:R,value:d}}}function flatten(...p){return flatten1(all(...p))}function flatten1(p){return map(p,f=>f.flatMap(S=>S))}function chainReduce(p,f){return(S,d)=>{let R=!0,g=p,O=d;do{const J=f(g,S,O)(S,O);J.matched?(g=J.value,O=J.position):R=!1}while(R);return{matched:!0,position:O,value:g}}}function reduceLeft(p,f,S){return chainReduce(p,d=>map(f,(R,g,O,J)=>S(d,R,g,O,J)))}function leftAssoc2(p,f,S){return chain(p,d=>reduceLeft(d,ab(f,S,(R,g)=>[R,g]),(R,[g,O])=>g(R,O)))}function chain(p,f){return(S,d)=>mapOuter(p(S,d),R=>f(R.value,S,d,R.position)(S,R.position))}const ws="(?:[ \\t\\r\\n\\f]*)",nl="(?:\\n|\\r\\n|\\r|\\f)",nonascii="[^\\x00-\\x7F]",unicode="(?:\\\\[0-9a-f]{1,6}(?:\\r\\n|[ \\n\\r\\t\\f])?)",escape$1="(?:\\\\[^\\n\\r\\f0-9a-f])",nmstart=`(?:[_a-z]|${nonascii}|${unicode}|${escape$1})`,nmchar=`(?:[_a-z0-9-]|${nonascii}|${unicode}|${escape$1})`,name=`(?:${nmchar}+)`,ident=`(?:[-]?${nmstart}${nmchar}*)`,string1=`'([^\\n\\r\\f\\\\']|\\\\${nl}|${nonascii}|${unicode}|${escape$1})*'`,string2=`"([^\\n\\r\\f\\\\"]|\\\\${nl}|${nonascii}|${unicode}|${escape$1})*"`,lexSelector=o([{name:"ws",regex:new RegExp(ws)},{name:"hash",regex:new RegExp(`#${name}`,"i")},{name:"ident",regex:new RegExp(ident,"i")},{name:"str1",regex:new RegExp(string1,"i")},{name:"str2",regex:new RegExp(string2,"i")},{name:"*"},{name:"."},{name:","},{name:"["},{name:"]"},{name:"="},{name:">"},{name:"|"},{name:"+"},{name:"~"},{name:"^"},{name:"$"}]),lexEscapedString=o([{name:"unicode",regex:new RegExp(unicode,"i")},{name:"escape",regex:new RegExp(escape$1,"i")},{name:"any",regex:new RegExp("[\\s\\S]","i")}]);function sumSpec([p,f,S],[d,R,g]){return[p+d,f+R,S+g]}function sumAllSpec(p){return p.reduce(sumSpec,[0,0,0])}const unicodeEscapedSequence_=token(p=>p.name==="unicode"?String.fromCodePoint(parseInt(p.text.slice(1),16)):void 0),escapedSequence_=token(p=>p.name==="escape"?p.text.slice(1):void 0),anyChar_=token(p=>p.name==="any"?p.text:void 0),escapedString_=map(many(choice(unicodeEscapedSequence_,escapedSequence_,anyChar_)),p=>p.join(""));function unescape$1(p){const f=lexEscapedString(p);return escapedString_({tokens:f.tokens,options:void 0},0).value}function literal(p){return token(f=>f.name===p?!0:void 0)}const whitespace_=token(p=>p.name==="ws"?null:void 0),optionalWhitespace_=option(whitespace_,null);function optionallySpaced(p){return middle(optionalWhitespace_,p,optionalWhitespace_)}const identifier_=token(p=>p.name==="ident"?unescape$1(p.text):void 0),hashId_=token(p=>p.name==="hash"?unescape$1(p.text.slice(1)):void 0),string_=token(p=>p.name.startsWith("str")?unescape$1(p.text.slice(1,-1)):void 0),namespace_=left(option(identifier_,""),literal("|")),qualifiedName_=otherwise(ab(namespace_,identifier_,(p,f)=>({name:f,namespace:p})),map(identifier_,p=>({name:p,namespace:null}))),uniSelector_=otherwise(ab(namespace_,literal("*"),p=>({type:"universal",namespace:p,specificity:[0,0,0]})),map(literal("*"),()=>({type:"universal",namespace:null,specificity:[0,0,0]}))),tagSelector_=map(qualifiedName_,({name:p,namespace:f})=>({type:"tag",name:p,namespace:f,specificity:[0,0,1]})),classSelector_=ab(literal("."),identifier_,(p,f)=>({type:"class",name:f,specificity:[0,1,0]})),idSelector_=map(hashId_,p=>({type:"id",name:p,specificity:[1,0,0]})),attrModifier_=token(p=>{if(p.name==="ident"){if(p.text==="i"||p.text==="I")return"i";if(p.text==="s"||p.text==="S")return"s"}}),attrValue_=otherwise(ab(string_,option(right(optionalWhitespace_,attrModifier_),null),(p,f)=>({value:p,modifier:f})),ab(identifier_,option(right(whitespace_,attrModifier_),null),(p,f)=>({value:p,modifier:f}))),attrMatcher_=choice(map(literal("="),()=>"="),ab(literal("~"),literal("="),()=>"~="),ab(literal("|"),literal("="),()=>"|="),ab(literal("^"),literal("="),()=>"^="),ab(literal("$"),literal("="),()=>"$="),ab(literal("*"),literal("="),()=>"*=")),attrPresenceSelector_=abc(literal("["),optionallySpaced(qualifiedName_),literal("]"),(p,{name:f,namespace:S})=>({type:"attrPresence",name:f,namespace:S,specificity:[0,1,0]})),attrValueSelector_=middle(literal("["),abc(optionallySpaced(qualifiedName_),attrMatcher_,optionallySpaced(attrValue_),({name:p,namespace:f},S,{value:d,modifier:R})=>({type:"attrValue",name:p,namespace:f,matcher:S,value:d,modifier:R,specificity:[0,1,0]})),literal("]")),attrSelector_=otherwise(attrPresenceSelector_,attrValueSelector_),typeSelector_=otherwise(uniSelector_,tagSelector_),subclassSelector_=choice(idSelector_,classSelector_,attrSelector_),compoundSelector_=map(otherwise(flatten(typeSelector_,many(subclassSelector_)),many1(subclassSelector_)),p=>({type:"compound",list:p,specificity:sumAllSpec(p.map(f=>f.specificity))})),combinator_=choice(map(literal(">"),()=>">"),map(literal("+"),()=>"+"),map(literal("~"),()=>"~"),ab(literal("|"),literal("|"),()=>"||")),combinatorSeparator_=otherwise(optionallySpaced(combinator_),map(whitespace_,()=>" ")),complexSelector_=leftAssoc2(compoundSelector_,map(combinatorSeparator_,p=>(f,S)=>({type:"compound",list:[...S.list,{type:"combinator",combinator:p,left:f,specificity:f.specificity}],specificity:sumSpec(f.specificity,S.specificity)})),compoundSelector_);function parse_(p,f){if(!(typeof f=="string"||f instanceof String))throw new Error("Expected a selector string. Actual input is not a string!");const S=lexSelector(f);if(!S.complete)throw new Error(`The input "${f}" was only partially tokenized, stopped at offset ${S.offset}!
2
- `+prettyPrintPosition(f,S.offset));const d=optionallySpaced(p)({tokens:S.tokens,options:void 0},0);if(!d.matched)throw new Error(`No match for "${f}" input!`);if(d.position<S.tokens.length){const R=S.tokens[d.position];throw new Error(`The input "${f}" was only partially parsed, stopped at offset ${R.offset}!
3
- `+prettyPrintPosition(f,R.offset,R.len))}return d.value}function prettyPrintPosition(p,f,S=1){return`${p.replace(/(\t)|(\r)|(\n)/g,(d,R,g)=>R?"\u2409":g?"\u240D":"\u240A")}
4
- ${"".padEnd(f)}${"^".repeat(S)}`}function parse1(p){return parse_(complexSelector_,p)}function serialize(p){if(!p.type)throw new Error("This is not an AST node.");switch(p.type){case"universal":return _serNs(p.namespace)+"*";case"tag":return _serNs(p.namespace)+_serIdent(p.name);case"class":return"."+_serIdent(p.name);case"id":return"#"+_serIdent(p.name);case"attrPresence":return`[${_serNs(p.namespace)}${_serIdent(p.name)}]`;case"attrValue":return`[${_serNs(p.namespace)}${_serIdent(p.name)}${p.matcher}"${_serStr(p.value)}"${p.modifier?p.modifier:""}]`;case"combinator":return serialize(p.left)+p.combinator;case"compound":return p.list.reduce((f,S)=>S.type==="combinator"?serialize(S)+f:f+serialize(S),"");case"list":return p.list.map(serialize).join(",")}}function _serNs(p){return p||p===""?_serIdent(p)+"|":""}function _codePoint(p){return`\\${p.codePointAt(0).toString(16)} `}function _serIdent(p){return p.replace(/(^[0-9])|(^-[0-9])|(^-$)|([-0-9a-zA-Z_]|[^\x00-\x7F])|(\x00)|([\x01-\x1f]|\x7f)|([\s\S])/g,(f,S,d,R,g,O,J,a)=>S?_codePoint(S):d?"-"+_codePoint(d.slice(1)):R?"\\-":g||(O?"\uFFFD":J?_codePoint(J):"\\"+a))}function _serStr(p){return p.replace(/(")|(\\)|(\x00)|([\x01-\x1f]|\x7f)/g,(f,S,d,R,g)=>S?'\\"':d?"\\\\":R?"\uFFFD":_codePoint(g))}function normalize(p){if(!p.type)throw new Error("This is not an AST node.");switch(p.type){case"compound":{p.list.forEach(normalize),p.list.sort((f,S)=>_compareArrays(_getSelectorPriority(f),_getSelectorPriority(S)));break}case"combinator":{normalize(p.left);break}case"list":{p.list.forEach(normalize),p.list.sort((f,S)=>serialize(f)<serialize(S)?-1:1);break}}return p}function _getSelectorPriority(p){switch(p.type){case"universal":return[1];case"tag":return[1];case"id":return[2];case"class":return[3,p.name];case"attrPresence":return[4,serialize(p)];case"attrValue":return[5,serialize(p)];case"combinator":return[15,serialize(p)]}}function compareSpecificity(p,f){return _compareArrays(p,f)}function _compareArrays(p,f){if(!Array.isArray(p)||!Array.isArray(f))throw new Error("Arguments must be arrays.");const S=p.length<f.length?p.length:f.length;for(let d=0;d<S;d++)if(p[d]!==f[d])return p[d]<f[d]?-1:1;return p.length-f.length}class DecisionTree{constructor(f){this.branches=weave(toAstTerminalPairs(f))}build(f){return f(this.branches)}}function toAstTerminalPairs(p){const f=p.length,S=new Array(f);for(let d=0;d<f;d++){const[R,g]=p[d],O=preprocess(parse1(R));S[d]={ast:O,terminal:{type:"terminal",valueContainer:{index:d,value:g,specificity:O.specificity}}}}return S}function preprocess(p){return reduceSelectorVariants(p),normalize(p),p}function reduceSelectorVariants(p){const f=[];p.list.forEach(S=>{switch(S.type){case"class":f.push({matcher:"~=",modifier:null,name:"class",namespace:null,specificity:S.specificity,type:"attrValue",value:S.name});break;case"id":f.push({matcher:"=",modifier:null,name:"id",namespace:null,specificity:S.specificity,type:"attrValue",value:S.name});break;case"combinator":reduceSelectorVariants(S.left),f.push(S);break;case"universal":break;default:f.push(S);break}}),p.list=f}function weave(p){const f=[];for(;p.length;){const S=findTopKey(p,O=>!0,getSelectorKind),{matches:d,nonmatches:R,empty:g}=breakByKind(p,S);p=R,d.length&&f.push(branchOfKind(S,d)),g.length&&f.push(...terminate(g))}return f}function terminate(p){const f=[];for(const S of p){const d=S.terminal;if(d.type==="terminal")f.push(d);else{const{matches:R,rest:g}=partition(d.cont,O=>O.type==="terminal");R.forEach(O=>f.push(O)),g.length&&(d.cont=g,f.push(d))}}return f}function breakByKind(p,f){const S=[],d=[],R=[];for(const g of p){const O=g.ast.list;O.length?(O.some(a=>getSelectorKind(a)===f)?S:d).push(g):R.push(g)}return{matches:S,nonmatches:d,empty:R}}function getSelectorKind(p){switch(p.type){case"attrPresence":return`attrPresence ${p.name}`;case"attrValue":return`attrValue ${p.name}`;case"combinator":return`combinator ${p.combinator}`;default:return p.type}}function branchOfKind(p,f){if(p==="tag")return tagNameBranch(f);if(p.startsWith("attrValue "))return attrValueBranch(p.substring(10),f);if(p.startsWith("attrPresence "))return attrPresenceBranch(p.substring(13),f);if(p==="combinator >")return combinatorBranch(">",f);if(p==="combinator +")return combinatorBranch("+",f);throw new Error(`Unsupported selector kind: ${p}`)}function tagNameBranch(p){const f=spliceAndGroup(p,d=>d.type==="tag",d=>d.name),S=Object.entries(f).map(([d,R])=>({type:"variant",value:d,cont:weave(R.items)}));return{type:"tagName",variants:S}}function attrPresenceBranch(p,f){for(const S of f)spliceSimpleSelector(S,d=>d.type==="attrPresence"&&d.name===p);return{type:"attrPresence",name:p,cont:weave(f)}}function attrValueBranch(p,f){const S=spliceAndGroup(f,R=>R.type==="attrValue"&&R.name===p,R=>`${R.matcher} ${R.modifier||""} ${R.value}`),d=[];for(const R of Object.values(S)){const g=R.oneSimpleSelector,O=getAttrPredicate(g),J=weave(R.items);d.push({type:"matcher",matcher:g.matcher,modifier:g.modifier,value:g.value,predicate:O,cont:J})}return{type:"attrValue",name:p,matchers:d}}function getAttrPredicate(p){if(p.modifier==="i"){const f=p.value.toLowerCase();switch(p.matcher){case"=":return S=>f===S.toLowerCase();case"~=":return S=>S.toLowerCase().split(/[ \t]+/).includes(f);case"^=":return S=>S.toLowerCase().startsWith(f);case"$=":return S=>S.toLowerCase().endsWith(f);case"*=":return S=>S.toLowerCase().includes(f);case"|=":return S=>{const d=S.toLowerCase();return f===d||d.startsWith(f)&&d[f.length]==="-"}}}else{const f=p.value;switch(p.matcher){case"=":return S=>f===S;case"~=":return S=>S.split(/[ \t]+/).includes(f);case"^=":return S=>S.startsWith(f);case"$=":return S=>S.endsWith(f);case"*=":return S=>S.includes(f);case"|=":return S=>f===S||S.startsWith(f)&&S[f.length]==="-"}}}function combinatorBranch(p,f){const S=spliceAndGroup(f,R=>R.type==="combinator"&&R.combinator===p,R=>serialize(R.left)),d=[];for(const R of Object.values(S)){const g=weave(R.items),O=R.oneSimpleSelector.left;d.push({ast:O,terminal:{type:"popElement",cont:g}})}return{type:"pushElement",combinator:p,cont:weave(d)}}function spliceAndGroup(p,f,S){const d={};for(;p.length;){const R=findTopKey(p,f,S),g=H=>f(H)&&S(H)===R,O=H=>H.ast.list.some(g),{matches:J,rest:a}=partition1(p,O);let se=null;for(const H of J){const ee=spliceSimpleSelector(H,g);se||(se=ee)}if(se==null)throw new Error("No simple selector is found.");d[R]={oneSimpleSelector:se,items:J},p=a}return d}function spliceSimpleSelector(p,f){const S=p.ast.list,d=new Array(S.length);let R=-1;for(let O=S.length;O-- >0;)f(S[O])&&(d[O]=!0,R=O);if(R==-1)throw new Error("Couldn't find the required simple selector.");const g=S[R];return p.ast.list=S.filter((O,J)=>!d[J]),g}function findTopKey(p,f,S){const d={};for(const O of p){const J={};for(const a of O.ast.list.filter(f))J[S(a)]=!0;for(const a of Object.keys(J))d[a]?d[a]++:d[a]=1}let R="",g=0;for(const O of Object.entries(d))O[1]>g&&(R=O[0],g=O[1]);return R}function partition(p,f){const S=[],d=[];for(const R of p)f(R)?S.push(R):d.push(R);return{matches:S,rest:d}}function partition1(p,f){const S=[],d=[];for(const R of p)f(R)?S.push(R):d.push(R);return{matches:S,rest:d}}class Picker{constructor(f){this.f=f}pickAll(f){return this.f(f)}pick1(f,S=!1){const d=this.f(f),R=d.length;if(R===0)return null;if(R===1)return d[0].value;const g=S?comparatorPreferFirst:comparatorPreferLast;let O=d[0];for(let J=1;J<R;J++){const a=d[J];g(O,a)&&(O=a)}return O.value}}function comparatorPreferFirst(p,f){const S=compareSpecificity(f.specificity,p.specificity);return S>0||S===0&&f.index<p.index}function comparatorPreferLast(p,f){const S=compareSpecificity(f.specificity,p.specificity);return S>0||S===0&&f.index>p.index}function hp2Builder(p){return new Picker(handleArray(p))}function handleArray(p){const f=p.map(handleNode);return(S,...d)=>f.flatMap(R=>R(S,...d))}function handleNode(p){switch(p.type){case"terminal":{const f=[p.valueContainer];return(S,...d)=>f}case"tagName":return handleTagName(p);case"attrValue":return handleAttrValueName(p);case"attrPresence":return handleAttrPresenceName(p);case"pushElement":return handlePushElementNode(p);case"popElement":return handlePopElementNode(p)}}function handleTagName(p){const f={};for(const S of p.variants)f[S.value]=handleArray(S.cont);return(S,...d)=>{const R=f[S.name];return R?R(S,...d):[]}}function handleAttrPresenceName(p){const f=p.name,S=handleArray(p.cont);return(d,...R)=>Object.prototype.hasOwnProperty.call(d.attribs,f)?S(d,...R):[]}function handleAttrValueName(p){const f=[];for(const d of p.matchers){const R=d.predicate,g=handleArray(d.cont);f.push((O,J,...a)=>R(O)?g(J,...a):[])}const S=p.name;return(d,...R)=>{const g=d.attribs[S];return g||g===""?f.flatMap(O=>O(g,d,...R)):[]}}function handlePushElementNode(p){const f=handleArray(p.cont),S=p.combinator==="+"?getPrecedingElement:getParentElement;return(d,...R)=>{const g=S(d);return g===null?[]:f(g,d,...R)}}const getPrecedingElement=p=>{const f=p.prev;return f===null?null:isTag(f)?f:getPrecedingElement(f)},getParentElement=p=>{const f=p.parent;return f&&isTag(f)?f:null};function handlePopElementNode(p){const f=handleArray(p.cont);return(S,d,...R)=>f(d,...R)}var htmlDecodeTree=new Uint16Array('\u1D41<\xD5\u0131\u028A\u049D\u057B\u05D0\u0675\u06DE\u07A2\u07D6\u080F\u0A4A\u0A91\u0DA1\u0E6D\u0F09\u0F26\u10CA\u1228\u12E1\u1415\u149D\u14C3\u14DF\u1525\0\0\0\0\0\0\u156B\u16CD\u198D\u1C12\u1DDD\u1F7E\u2060\u21B0\u228D\u23C0\u23FB\u2442\u2824\u2912\u2D08\u2E48\u2FCE\u3016\u32BA\u3639\u37AC\u38FE\u3A28\u3A71\u3AE0\u3B2E\u0800EMabcfglmnoprstu\\bfms\x7F\x84\x8B\x90\x95\x98\xA6\xB3\xB9\xC8\xCFlig\u803B\xC6\u40C6P\u803B&\u4026cute\u803B\xC1\u40C1reve;\u4102\u0100iyx}rc\u803B\xC2\u40C2;\u4410r;\uC000\u{1D504}rave\u803B\xC0\u40C0pha;\u4391acr;\u4100d;\u6A53\u0100gp\x9D\xA1on;\u4104f;\uC000\u{1D538}plyFunction;\u6061ing\u803B\xC5\u40C5\u0100cs\xBE\xC3r;\uC000\u{1D49C}ign;\u6254ilde\u803B\xC3\u40C3ml\u803B\xC4\u40C4\u0400aceforsu\xE5\xFB\xFE\u0117\u011C\u0122\u0127\u012A\u0100cr\xEA\xF2kslash;\u6216\u0176\xF6\xF8;\u6AE7ed;\u6306y;\u4411\u0180crt\u0105\u010B\u0114ause;\u6235noullis;\u612Ca;\u4392r;\uC000\u{1D505}pf;\uC000\u{1D539}eve;\u42D8c\xF2\u0113mpeq;\u624E\u0700HOacdefhilorsu\u014D\u0151\u0156\u0180\u019E\u01A2\u01B5\u01B7\u01BA\u01DC\u0215\u0273\u0278\u027Ecy;\u4427PY\u803B\xA9\u40A9\u0180cpy\u015D\u0162\u017Aute;\u4106\u0100;i\u0167\u0168\u62D2talDifferentialD;\u6145leys;\u612D\u0200aeio\u0189\u018E\u0194\u0198ron;\u410Cdil\u803B\xC7\u40C7rc;\u4108nint;\u6230ot;\u410A\u0100dn\u01A7\u01ADilla;\u40B8terDot;\u40B7\xF2\u017Fi;\u43A7rcle\u0200DMPT\u01C7\u01CB\u01D1\u01D6ot;\u6299inus;\u6296lus;\u6295imes;\u6297o\u0100cs\u01E2\u01F8kwiseContourIntegral;\u6232eCurly\u0100DQ\u0203\u020FoubleQuote;\u601Duote;\u6019\u0200lnpu\u021E\u0228\u0247\u0255on\u0100;e\u0225\u0226\u6237;\u6A74\u0180git\u022F\u0236\u023Aruent;\u6261nt;\u622FourIntegral;\u622E\u0100fr\u024C\u024E;\u6102oduct;\u6210nterClockwiseContourIntegral;\u6233oss;\u6A2Fcr;\uC000\u{1D49E}p\u0100;C\u0284\u0285\u62D3ap;\u624D\u0580DJSZacefios\u02A0\u02AC\u02B0\u02B4\u02B8\u02CB\u02D7\u02E1\u02E6\u0333\u048D\u0100;o\u0179\u02A5trahd;\u6911cy;\u4402cy;\u4405cy;\u440F\u0180grs\u02BF\u02C4\u02C7ger;\u6021r;\u61A1hv;\u6AE4\u0100ay\u02D0\u02D5ron;\u410E;\u4414l\u0100;t\u02DD\u02DE\u6207a;\u4394r;\uC000\u{1D507}\u0100af\u02EB\u0327\u0100cm\u02F0\u0322ritical\u0200ADGT\u0300\u0306\u0316\u031Ccute;\u40B4o\u0174\u030B\u030D;\u42D9bleAcute;\u42DDrave;\u4060ilde;\u42DCond;\u62C4ferentialD;\u6146\u0470\u033D\0\0\0\u0342\u0354\0\u0405f;\uC000\u{1D53B}\u0180;DE\u0348\u0349\u034D\u40A8ot;\u60DCqual;\u6250ble\u0300CDLRUV\u0363\u0372\u0382\u03CF\u03E2\u03F8ontourIntegra\xEC\u0239o\u0274\u0379\0\0\u037B\xBB\u0349nArrow;\u61D3\u0100eo\u0387\u03A4ft\u0180ART\u0390\u0396\u03A1rrow;\u61D0ightArrow;\u61D4e\xE5\u02CAng\u0100LR\u03AB\u03C4eft\u0100AR\u03B3\u03B9rrow;\u67F8ightArrow;\u67FAightArrow;\u67F9ight\u0100AT\u03D8\u03DErrow;\u61D2ee;\u62A8p\u0241\u03E9\0\0\u03EFrrow;\u61D1ownArrow;\u61D5erticalBar;\u6225n\u0300ABLRTa\u0412\u042A\u0430\u045E\u047F\u037Crrow\u0180;BU\u041D\u041E\u0422\u6193ar;\u6913pArrow;\u61F5reve;\u4311eft\u02D2\u043A\0\u0446\0\u0450ightVector;\u6950eeVector;\u695Eector\u0100;B\u0459\u045A\u61BDar;\u6956ight\u01D4\u0467\0\u0471eeVector;\u695Fector\u0100;B\u047A\u047B\u61C1ar;\u6957ee\u0100;A\u0486\u0487\u62A4rrow;\u61A7\u0100ct\u0492\u0497r;\uC000\u{1D49F}rok;\u4110\u0800NTacdfglmopqstux\u04BD\u04C0\u04C4\u04CB\u04DE\u04E2\u04E7\u04EE\u04F5\u0521\u052F\u0536\u0552\u055D\u0560\u0565G;\u414AH\u803B\xD0\u40D0cute\u803B\xC9\u40C9\u0180aiy\u04D2\u04D7\u04DCron;\u411Arc\u803B\xCA\u40CA;\u442Dot;\u4116r;\uC000\u{1D508}rave\u803B\xC8\u40C8ement;\u6208\u0100ap\u04FA\u04FEcr;\u4112ty\u0253\u0506\0\0\u0512mallSquare;\u65FBerySmallSquare;\u65AB\u0100gp\u0526\u052Aon;\u4118f;\uC000\u{1D53C}silon;\u4395u\u0100ai\u053C\u0549l\u0100;T\u0542\u0543\u6A75ilde;\u6242librium;\u61CC\u0100ci\u0557\u055Ar;\u6130m;\u6A73a;\u4397ml\u803B\xCB\u40CB\u0100ip\u056A\u056Fsts;\u6203onentialE;\u6147\u0280cfios\u0585\u0588\u058D\u05B2\u05CCy;\u4424r;\uC000\u{1D509}lled\u0253\u0597\0\0\u05A3mallSquare;\u65FCerySmallSquare;\u65AA\u0370\u05BA\0\u05BF\0\0\u05C4f;\uC000\u{1D53D}All;\u6200riertrf;\u6131c\xF2\u05CB\u0600JTabcdfgorst\u05E8\u05EC\u05EF\u05FA\u0600\u0612\u0616\u061B\u061D\u0623\u066C\u0672cy;\u4403\u803B>\u403Emma\u0100;d\u05F7\u05F8\u4393;\u43DCreve;\u411E\u0180eiy\u0607\u060C\u0610dil;\u4122rc;\u411C;\u4413ot;\u4120r;\uC000\u{1D50A};\u62D9pf;\uC000\u{1D53E}eater\u0300EFGLST\u0635\u0644\u064E\u0656\u065B\u0666qual\u0100;L\u063E\u063F\u6265ess;\u62DBullEqual;\u6267reater;\u6AA2ess;\u6277lantEqual;\u6A7Eilde;\u6273cr;\uC000\u{1D4A2};\u626B\u0400Aacfiosu\u0685\u068B\u0696\u069B\u069E\u06AA\u06BE\u06CARDcy;\u442A\u0100ct\u0690\u0694ek;\u42C7;\u405Eirc;\u4124r;\u610ClbertSpace;\u610B\u01F0\u06AF\0\u06B2f;\u610DizontalLine;\u6500\u0100ct\u06C3\u06C5\xF2\u06A9rok;\u4126mp\u0144\u06D0\u06D8ownHum\xF0\u012Fqual;\u624F\u0700EJOacdfgmnostu\u06FA\u06FE\u0703\u0707\u070E\u071A\u071E\u0721\u0728\u0744\u0778\u078B\u078F\u0795cy;\u4415lig;\u4132cy;\u4401cute\u803B\xCD\u40CD\u0100iy\u0713\u0718rc\u803B\xCE\u40CE;\u4418ot;\u4130r;\u6111rave\u803B\xCC\u40CC\u0180;ap\u0720\u072F\u073F\u0100cg\u0734\u0737r;\u412AinaryI;\u6148lie\xF3\u03DD\u01F4\u0749\0\u0762\u0100;e\u074D\u074E\u622C\u0100gr\u0753\u0758ral;\u622Bsection;\u62C2isible\u0100CT\u076C\u0772omma;\u6063imes;\u6062\u0180gpt\u077F\u0783\u0788on;\u412Ef;\uC000\u{1D540}a;\u4399cr;\u6110ilde;\u4128\u01EB\u079A\0\u079Ecy;\u4406l\u803B\xCF\u40CF\u0280cfosu\u07AC\u07B7\u07BC\u07C2\u07D0\u0100iy\u07B1\u07B5rc;\u4134;\u4419r;\uC000\u{1D50D}pf;\uC000\u{1D541}\u01E3\u07C7\0\u07CCr;\uC000\u{1D4A5}rcy;\u4408kcy;\u4404\u0380HJacfos\u07E4\u07E8\u07EC\u07F1\u07FD\u0802\u0808cy;\u4425cy;\u440Cppa;\u439A\u0100ey\u07F6\u07FBdil;\u4136;\u441Ar;\uC000\u{1D50E}pf;\uC000\u{1D542}cr;\uC000\u{1D4A6}\u0580JTaceflmost\u0825\u0829\u082C\u0850\u0863\u09B3\u09B8\u09C7\u09CD\u0A37\u0A47cy;\u4409\u803B<\u403C\u0280cmnpr\u0837\u083C\u0841\u0844\u084Dute;\u4139bda;\u439Bg;\u67EAlacetrf;\u6112r;\u619E\u0180aey\u0857\u085C\u0861ron;\u413Ddil;\u413B;\u441B\u0100fs\u0868\u0970t\u0500ACDFRTUVar\u087E\u08A9\u08B1\u08E0\u08E6\u08FC\u092F\u095B\u0390\u096A\u0100nr\u0883\u088FgleBracket;\u67E8row\u0180;BR\u0899\u089A\u089E\u6190ar;\u61E4ightArrow;\u61C6eiling;\u6308o\u01F5\u08B7\0\u08C3bleBracket;\u67E6n\u01D4\u08C8\0\u08D2eeVector;\u6961ector\u0100;B\u08DB\u08DC\u61C3ar;\u6959loor;\u630Aight\u0100AV\u08EF\u08F5rrow;\u6194ector;\u694E\u0100er\u0901\u0917e\u0180;AV\u0909\u090A\u0910\u62A3rrow;\u61A4ector;\u695Aiangle\u0180;BE\u0924\u0925\u0929\u62B2ar;\u69CFqual;\u62B4p\u0180DTV\u0937\u0942\u094CownVector;\u6951eeVector;\u6960ector\u0100;B\u0956\u0957\u61BFar;\u6958ector\u0100;B\u0965\u0966\u61BCar;\u6952ight\xE1\u039Cs\u0300EFGLST\u097E\u098B\u0995\u099D\u09A2\u09ADqualGreater;\u62DAullEqual;\u6266reater;\u6276ess;\u6AA1lantEqual;\u6A7Dilde;\u6272r;\uC000\u{1D50F}\u0100;e\u09BD\u09BE\u62D8ftarrow;\u61DAidot;\u413F\u0180npw\u09D4\u0A16\u0A1Bg\u0200LRlr\u09DE\u09F7\u0A02\u0A10eft\u0100AR\u09E6\u09ECrrow;\u67F5ightArrow;\u67F7ightArrow;\u67F6eft\u0100ar\u03B3\u0A0Aight\xE1\u03BFight\xE1\u03CAf;\uC000\u{1D543}er\u0100LR\u0A22\u0A2CeftArrow;\u6199ightArrow;\u6198\u0180cht\u0A3E\u0A40\u0A42\xF2\u084C;\u61B0rok;\u4141;\u626A\u0400acefiosu\u0A5A\u0A5D\u0A60\u0A77\u0A7C\u0A85\u0A8B\u0A8Ep;\u6905y;\u441C\u0100dl\u0A65\u0A6FiumSpace;\u605Flintrf;\u6133r;\uC000\u{1D510}nusPlus;\u6213pf;\uC000\u{1D544}c\xF2\u0A76;\u439C\u0480Jacefostu\u0AA3\u0AA7\u0AAD\u0AC0\u0B14\u0B19\u0D91\u0D97\u0D9Ecy;\u440Acute;\u4143\u0180aey\u0AB4\u0AB9\u0ABEron;\u4147dil;\u4145;\u441D\u0180gsw\u0AC7\u0AF0\u0B0Eative\u0180MTV\u0AD3\u0ADF\u0AE8ediumSpace;\u600Bhi\u0100cn\u0AE6\u0AD8\xEB\u0AD9eryThi\xEE\u0AD9ted\u0100GL\u0AF8\u0B06reaterGreate\xF2\u0673essLes\xF3\u0A48Line;\u400Ar;\uC000\u{1D511}\u0200Bnpt\u0B22\u0B28\u0B37\u0B3Areak;\u6060BreakingSpace;\u40A0f;\u6115\u0680;CDEGHLNPRSTV\u0B55\u0B56\u0B6A\u0B7C\u0BA1\u0BEB\u0C04\u0C5E\u0C84\u0CA6\u0CD8\u0D61\u0D85\u6AEC\u0100ou\u0B5B\u0B64ngruent;\u6262pCap;\u626DoubleVerticalBar;\u6226\u0180lqx\u0B83\u0B8A\u0B9Bement;\u6209ual\u0100;T\u0B92\u0B93\u6260ilde;\uC000\u2242\u0338ists;\u6204reater\u0380;EFGLST\u0BB6\u0BB7\u0BBD\u0BC9\u0BD3\u0BD8\u0BE5\u626Fqual;\u6271ullEqual;\uC000\u2267\u0338reater;\uC000\u226B\u0338ess;\u6279lantEqual;\uC000\u2A7E\u0338ilde;\u6275ump\u0144\u0BF2\u0BFDownHump;\uC000\u224E\u0338qual;\uC000\u224F\u0338e\u0100fs\u0C0A\u0C27tTriangle\u0180;BE\u0C1A\u0C1B\u0C21\u62EAar;\uC000\u29CF\u0338qual;\u62ECs\u0300;EGLST\u0C35\u0C36\u0C3C\u0C44\u0C4B\u0C58\u626Equal;\u6270reater;\u6278ess;\uC000\u226A\u0338lantEqual;\uC000\u2A7D\u0338ilde;\u6274ested\u0100GL\u0C68\u0C79reaterGreater;\uC000\u2AA2\u0338essLess;\uC000\u2AA1\u0338recedes\u0180;ES\u0C92\u0C93\u0C9B\u6280qual;\uC000\u2AAF\u0338lantEqual;\u62E0\u0100ei\u0CAB\u0CB9verseElement;\u620CghtTriangle\u0180;BE\u0CCB\u0CCC\u0CD2\u62EBar;\uC000\u29D0\u0338qual;\u62ED\u0100qu\u0CDD\u0D0CuareSu\u0100bp\u0CE8\u0CF9set\u0100;E\u0CF0\u0CF3\uC000\u228F\u0338qual;\u62E2erset\u0100;E\u0D03\u0D06\uC000\u2290\u0338qual;\u62E3\u0180bcp\u0D13\u0D24\u0D4Eset\u0100;E\u0D1B\u0D1E\uC000\u2282\u20D2qual;\u6288ceeds\u0200;EST\u0D32\u0D33\u0D3B\u0D46\u6281qual;\uC000\u2AB0\u0338lantEqual;\u62E1ilde;\uC000\u227F\u0338erset\u0100;E\u0D58\u0D5B\uC000\u2283\u20D2qual;\u6289ilde\u0200;EFT\u0D6E\u0D6F\u0D75\u0D7F\u6241qual;\u6244ullEqual;\u6247ilde;\u6249erticalBar;\u6224cr;\uC000\u{1D4A9}ilde\u803B\xD1\u40D1;\u439D\u0700Eacdfgmoprstuv\u0DBD\u0DC2\u0DC9\u0DD5\u0DDB\u0DE0\u0DE7\u0DFC\u0E02\u0E20\u0E22\u0E32\u0E3F\u0E44lig;\u4152cute\u803B\xD3\u40D3\u0100iy\u0DCE\u0DD3rc\u803B\xD4\u40D4;\u441Eblac;\u4150r;\uC000\u{1D512}rave\u803B\xD2\u40D2\u0180aei\u0DEE\u0DF2\u0DF6cr;\u414Cga;\u43A9cron;\u439Fpf;\uC000\u{1D546}enCurly\u0100DQ\u0E0E\u0E1AoubleQuote;\u601Cuote;\u6018;\u6A54\u0100cl\u0E27\u0E2Cr;\uC000\u{1D4AA}ash\u803B\xD8\u40D8i\u016C\u0E37\u0E3Cde\u803B\xD5\u40D5es;\u6A37ml\u803B\xD6\u40D6er\u0100BP\u0E4B\u0E60\u0100ar\u0E50\u0E53r;\u603Eac\u0100ek\u0E5A\u0E5C;\u63DEet;\u63B4arenthesis;\u63DC\u0480acfhilors\u0E7F\u0E87\u0E8A\u0E8F\u0E92\u0E94\u0E9D\u0EB0\u0EFCrtialD;\u6202y;\u441Fr;\uC000\u{1D513}i;\u43A6;\u43A0usMinus;\u40B1\u0100ip\u0EA2\u0EADncareplan\xE5\u069Df;\u6119\u0200;eio\u0EB9\u0EBA\u0EE0\u0EE4\u6ABBcedes\u0200;EST\u0EC8\u0EC9\u0ECF\u0EDA\u627Aqual;\u6AAFlantEqual;\u627Cilde;\u627Eme;\u6033\u0100dp\u0EE9\u0EEEuct;\u620Fortion\u0100;a\u0225\u0EF9l;\u621D\u0100ci\u0F01\u0F06r;\uC000\u{1D4AB};\u43A8\u0200Ufos\u0F11\u0F16\u0F1B\u0F1FOT\u803B"\u4022r;\uC000\u{1D514}pf;\u611Acr;\uC000\u{1D4AC}\u0600BEacefhiorsu\u0F3E\u0F43\u0F47\u0F60\u0F73\u0FA7\u0FAA\u0FAD\u1096\u10A9\u10B4\u10BEarr;\u6910G\u803B\xAE\u40AE\u0180cnr\u0F4E\u0F53\u0F56ute;\u4154g;\u67EBr\u0100;t\u0F5C\u0F5D\u61A0l;\u6916\u0180aey\u0F67\u0F6C\u0F71ron;\u4158dil;\u4156;\u4420\u0100;v\u0F78\u0F79\u611Cerse\u0100EU\u0F82\u0F99\u0100lq\u0F87\u0F8Eement;\u620Builibrium;\u61CBpEquilibrium;\u696Fr\xBB\u0F79o;\u43A1ght\u0400ACDFTUVa\u0FC1\u0FEB\u0FF3\u1022\u1028\u105B\u1087\u03D8\u0100nr\u0FC6\u0FD2gleBracket;\u67E9row\u0180;BL\u0FDC\u0FDD\u0FE1\u6192ar;\u61E5eftArrow;\u61C4eiling;\u6309o\u01F5\u0FF9\0\u1005bleBracket;\u67E7n\u01D4\u100A\0\u1014eeVector;\u695Dector\u0100;B\u101D\u101E\u61C2ar;\u6955loor;\u630B\u0100er\u102D\u1043e\u0180;AV\u1035\u1036\u103C\u62A2rrow;\u61A6ector;\u695Biangle\u0180;BE\u1050\u1051\u1055\u62B3ar;\u69D0qual;\u62B5p\u0180DTV\u1063\u106E\u1078ownVector;\u694FeeVector;\u695Cector\u0100;B\u1082\u1083\u61BEar;\u6954ector\u0100;B\u1091\u1092\u61C0ar;\u6953\u0100pu\u109B\u109Ef;\u611DndImplies;\u6970ightarrow;\u61DB\u0100ch\u10B9\u10BCr;\u611B;\u61B1leDelayed;\u69F4\u0680HOacfhimoqstu\u10E4\u10F1\u10F7\u10FD\u1119\u111E\u1151\u1156\u1161\u1167\u11B5\u11BB\u11BF\u0100Cc\u10E9\u10EEHcy;\u4429y;\u4428FTcy;\u442Ccute;\u415A\u0280;aeiy\u1108\u1109\u110E\u1113\u1117\u6ABCron;\u4160dil;\u415Erc;\u415C;\u4421r;\uC000\u{1D516}ort\u0200DLRU\u112A\u1134\u113E\u1149ownArrow\xBB\u041EeftArrow\xBB\u089AightArrow\xBB\u0FDDpArrow;\u6191gma;\u43A3allCircle;\u6218pf;\uC000\u{1D54A}\u0272\u116D\0\0\u1170t;\u621Aare\u0200;ISU\u117B\u117C\u1189\u11AF\u65A1ntersection;\u6293u\u0100bp\u118F\u119Eset\u0100;E\u1197\u1198\u628Fqual;\u6291erset\u0100;E\u11A8\u11A9\u6290qual;\u6292nion;\u6294cr;\uC000\u{1D4AE}ar;\u62C6\u0200bcmp\u11C8\u11DB\u1209\u120B\u0100;s\u11CD\u11CE\u62D0et\u0100;E\u11CD\u11D5qual;\u6286\u0100ch\u11E0\u1205eeds\u0200;EST\u11ED\u11EE\u11F4\u11FF\u627Bqual;\u6AB0lantEqual;\u627Dilde;\u627FTh\xE1\u0F8C;\u6211\u0180;es\u1212\u1213\u1223\u62D1rset\u0100;E\u121C\u121D\u6283qual;\u6287et\xBB\u1213\u0580HRSacfhiors\u123E\u1244\u1249\u1255\u125E\u1271\u1276\u129F\u12C2\u12C8\u12D1ORN\u803B\xDE\u40DEADE;\u6122\u0100Hc\u124E\u1252cy;\u440By;\u4426\u0100bu\u125A\u125C;\u4009;\u43A4\u0180aey\u1265\u126A\u126Fron;\u4164dil;\u4162;\u4422r;\uC000\u{1D517}\u0100ei\u127B\u1289\u01F2\u1280\0\u1287efore;\u6234a;\u4398\u0100cn\u128E\u1298kSpace;\uC000\u205F\u200ASpace;\u6009lde\u0200;EFT\u12AB\u12AC\u12B2\u12BC\u623Cqual;\u6243ullEqual;\u6245ilde;\u6248pf;\uC000\u{1D54B}ipleDot;\u60DB\u0100ct\u12D6\u12DBr;\uC000\u{1D4AF}rok;\u4166\u0AE1\u12F7\u130E\u131A\u1326\0\u132C\u1331\0\0\0\0\0\u1338\u133D\u1377\u1385\0\u13FF\u1404\u140A\u1410\u0100cr\u12FB\u1301ute\u803B\xDA\u40DAr\u0100;o\u1307\u1308\u619Fcir;\u6949r\u01E3\u1313\0\u1316y;\u440Eve;\u416C\u0100iy\u131E\u1323rc\u803B\xDB\u40DB;\u4423blac;\u4170r;\uC000\u{1D518}rave\u803B\xD9\u40D9acr;\u416A\u0100di\u1341\u1369er\u0100BP\u1348\u135D\u0100ar\u134D\u1350r;\u405Fac\u0100ek\u1357\u1359;\u63DFet;\u63B5arenthesis;\u63DDon\u0100;P\u1370\u1371\u62C3lus;\u628E\u0100gp\u137B\u137Fon;\u4172f;\uC000\u{1D54C}\u0400ADETadps\u1395\u13AE\u13B8\u13C4\u03E8\u13D2\u13D7\u13F3rrow\u0180;BD\u1150\u13A0\u13A4ar;\u6912ownArrow;\u61C5ownArrow;\u6195quilibrium;\u696Eee\u0100;A\u13CB\u13CC\u62A5rrow;\u61A5own\xE1\u03F3er\u0100LR\u13DE\u13E8eftArrow;\u6196ightArrow;\u6197i\u0100;l\u13F9\u13FA\u43D2on;\u43A5ing;\u416Ecr;\uC000\u{1D4B0}ilde;\u4168ml\u803B\xDC\u40DC\u0480Dbcdefosv\u1427\u142C\u1430\u1433\u143E\u1485\u148A\u1490\u1496ash;\u62ABar;\u6AEBy;\u4412ash\u0100;l\u143B\u143C\u62A9;\u6AE6\u0100er\u1443\u1445;\u62C1\u0180bty\u144C\u1450\u147Aar;\u6016\u0100;i\u144F\u1455cal\u0200BLST\u1461\u1465\u146A\u1474ar;\u6223ine;\u407Ceparator;\u6758ilde;\u6240ThinSpace;\u600Ar;\uC000\u{1D519}pf;\uC000\u{1D54D}cr;\uC000\u{1D4B1}dash;\u62AA\u0280cefos\u14A7\u14AC\u14B1\u14B6\u14BCirc;\u4174dge;\u62C0r;\uC000\u{1D51A}pf;\uC000\u{1D54E}cr;\uC000\u{1D4B2}\u0200fios\u14CB\u14D0\u14D2\u14D8r;\uC000\u{1D51B};\u439Epf;\uC000\u{1D54F}cr;\uC000\u{1D4B3}\u0480AIUacfosu\u14F1\u14F5\u14F9\u14FD\u1504\u150F\u1514\u151A\u1520cy;\u442Fcy;\u4407cy;\u442Ecute\u803B\xDD\u40DD\u0100iy\u1509\u150Drc;\u4176;\u442Br;\uC000\u{1D51C}pf;\uC000\u{1D550}cr;\uC000\u{1D4B4}ml;\u4178\u0400Hacdefos\u1535\u1539\u153F\u154B\u154F\u155D\u1560\u1564cy;\u4416cute;\u4179\u0100ay\u1544\u1549ron;\u417D;\u4417ot;\u417B\u01F2\u1554\0\u155BoWidt\xE8\u0AD9a;\u4396r;\u6128pf;\u6124cr;\uC000\u{1D4B5}\u0BE1\u1583\u158A\u1590\0\u15B0\u15B6\u15BF\0\0\0\0\u15C6\u15DB\u15EB\u165F\u166D\0\u1695\u169B\u16B2\u16B9\0\u16BEcute\u803B\xE1\u40E1reve;\u4103\u0300;Ediuy\u159C\u159D\u15A1\u15A3\u15A8\u15AD\u623E;\uC000\u223E\u0333;\u623Frc\u803B\xE2\u40E2te\u80BB\xB4\u0306;\u4430lig\u803B\xE6\u40E6\u0100;r\xB2\u15BA;\uC000\u{1D51E}rave\u803B\xE0\u40E0\u0100ep\u15CA\u15D6\u0100fp\u15CF\u15D4sym;\u6135\xE8\u15D3ha;\u43B1\u0100ap\u15DFc\u0100cl\u15E4\u15E7r;\u4101g;\u6A3F\u0264\u15F0\0\0\u160A\u0280;adsv\u15FA\u15FB\u15FF\u1601\u1607\u6227nd;\u6A55;\u6A5Clope;\u6A58;\u6A5A\u0380;elmrsz\u1618\u1619\u161B\u161E\u163F\u164F\u1659\u6220;\u69A4e\xBB\u1619sd\u0100;a\u1625\u1626\u6221\u0461\u1630\u1632\u1634\u1636\u1638\u163A\u163C\u163E;\u69A8;\u69A9;\u69AA;\u69AB;\u69AC;\u69AD;\u69AE;\u69AFt\u0100;v\u1645\u1646\u621Fb\u0100;d\u164C\u164D\u62BE;\u699D\u0100pt\u1654\u1657h;\u6222\xBB\xB9arr;\u637C\u0100gp\u1663\u1667on;\u4105f;\uC000\u{1D552}\u0380;Eaeiop\u12C1\u167B\u167D\u1682\u1684\u1687\u168A;\u6A70cir;\u6A6F;\u624Ad;\u624Bs;\u4027rox\u0100;e\u12C1\u1692\xF1\u1683ing\u803B\xE5\u40E5\u0180cty\u16A1\u16A6\u16A8r;\uC000\u{1D4B6};\u402Amp\u0100;e\u12C1\u16AF\xF1\u0288ilde\u803B\xE3\u40E3ml\u803B\xE4\u40E4\u0100ci\u16C2\u16C8onin\xF4\u0272nt;\u6A11\u0800Nabcdefiklnoprsu\u16ED\u16F1\u1730\u173C\u1743\u1748\u1778\u177D\u17E0\u17E6\u1839\u1850\u170D\u193D\u1948\u1970ot;\u6AED\u0100cr\u16F6\u171Ek\u0200ceps\u1700\u1705\u170D\u1713ong;\u624Cpsilon;\u43F6rime;\u6035im\u0100;e\u171A\u171B\u623Dq;\u62CD\u0176\u1722\u1726ee;\u62BDed\u0100;g\u172C\u172D\u6305e\xBB\u172Drk\u0100;t\u135C\u1737brk;\u63B6\u0100oy\u1701\u1741;\u4431quo;\u601E\u0280cmprt\u1753\u175B\u1761\u1764\u1768aus\u0100;e\u010A\u0109ptyv;\u69B0s\xE9\u170Cno\xF5\u0113\u0180ahw\u176F\u1771\u1773;\u43B2;\u6136een;\u626Cr;\uC000\u{1D51F}g\u0380costuvw\u178D\u179D\u17B3\u17C1\u17D5\u17DB\u17DE\u0180aiu\u1794\u1796\u179A\xF0\u0760rc;\u65EFp\xBB\u1371\u0180dpt\u17A4\u17A8\u17ADot;\u6A00lus;\u6A01imes;\u6A02\u0271\u17B9\0\0\u17BEcup;\u6A06ar;\u6605riangle\u0100du\u17CD\u17D2own;\u65BDp;\u65B3plus;\u6A04e\xE5\u1444\xE5\u14ADarow;\u690D\u0180ako\u17ED\u1826\u1835\u0100cn\u17F2\u1823k\u0180lst\u17FA\u05AB\u1802ozenge;\u69EBriangle\u0200;dlr\u1812\u1813\u1818\u181D\u65B4own;\u65BEeft;\u65C2ight;\u65B8k;\u6423\u01B1\u182B\0\u1833\u01B2\u182F\0\u1831;\u6592;\u65914;\u6593ck;\u6588\u0100eo\u183E\u184D\u0100;q\u1843\u1846\uC000=\u20E5uiv;\uC000\u2261\u20E5t;\u6310\u0200ptwx\u1859\u185E\u1867\u186Cf;\uC000\u{1D553}\u0100;t\u13CB\u1863om\xBB\u13CCtie;\u62C8\u0600DHUVbdhmptuv\u1885\u1896\u18AA\u18BB\u18D7\u18DB\u18EC\u18FF\u1905\u190A\u1910\u1921\u0200LRlr\u188E\u1890\u1892\u1894;\u6557;\u6554;\u6556;\u6553\u0280;DUdu\u18A1\u18A2\u18A4\u18A6\u18A8\u6550;\u6566;\u6569;\u6564;\u6567\u0200LRlr\u18B3\u18B5\u18B7\u18B9;\u655D;\u655A;\u655C;\u6559\u0380;HLRhlr\u18CA\u18CB\u18CD\u18CF\u18D1\u18D3\u18D5\u6551;\u656C;\u6563;\u6560;\u656B;\u6562;\u655Fox;\u69C9\u0200LRlr\u18E4\u18E6\u18E8\u18EA;\u6555;\u6552;\u6510;\u650C\u0280;DUdu\u06BD\u18F7\u18F9\u18FB\u18FD;\u6565;\u6568;\u652C;\u6534inus;\u629Flus;\u629Eimes;\u62A0\u0200LRlr\u1919\u191B\u191D\u191F;\u655B;\u6558;\u6518;\u6514\u0380;HLRhlr\u1930\u1931\u1933\u1935\u1937\u1939\u193B\u6502;\u656A;\u6561;\u655E;\u653C;\u6524;\u651C\u0100ev\u0123\u1942bar\u803B\xA6\u40A6\u0200ceio\u1951\u1956\u195A\u1960r;\uC000\u{1D4B7}mi;\u604Fm\u0100;e\u171A\u171Cl\u0180;bh\u1968\u1969\u196B\u405C;\u69C5sub;\u67C8\u016C\u1974\u197El\u0100;e\u1979\u197A\u6022t\xBB\u197Ap\u0180;Ee\u012F\u1985\u1987;\u6AAE\u0100;q\u06DC\u06DB\u0CE1\u19A7\0\u19E8\u1A11\u1A15\u1A32\0\u1A37\u1A50\0\0\u1AB4\0\0\u1AC1\0\0\u1B21\u1B2E\u1B4D\u1B52\0\u1BFD\0\u1C0C\u0180cpr\u19AD\u19B2\u19DDute;\u4107\u0300;abcds\u19BF\u19C0\u19C4\u19CA\u19D5\u19D9\u6229nd;\u6A44rcup;\u6A49\u0100au\u19CF\u19D2p;\u6A4Bp;\u6A47ot;\u6A40;\uC000\u2229\uFE00\u0100eo\u19E2\u19E5t;\u6041\xEE\u0693\u0200aeiu\u19F0\u19FB\u1A01\u1A05\u01F0\u19F5\0\u19F8s;\u6A4Don;\u410Ddil\u803B\xE7\u40E7rc;\u4109ps\u0100;s\u1A0C\u1A0D\u6A4Cm;\u6A50ot;\u410B\u0180dmn\u1A1B\u1A20\u1A26il\u80BB\xB8\u01ADptyv;\u69B2t\u8100\xA2;e\u1A2D\u1A2E\u40A2r\xE4\u01B2r;\uC000\u{1D520}\u0180cei\u1A3D\u1A40\u1A4Dy;\u4447ck\u0100;m\u1A47\u1A48\u6713ark\xBB\u1A48;\u43C7r\u0380;Ecefms\u1A5F\u1A60\u1A62\u1A6B\u1AA4\u1AAA\u1AAE\u65CB;\u69C3\u0180;el\u1A69\u1A6A\u1A6D\u42C6q;\u6257e\u0261\u1A74\0\0\u1A88rrow\u0100lr\u1A7C\u1A81eft;\u61BAight;\u61BB\u0280RSacd\u1A92\u1A94\u1A96\u1A9A\u1A9F\xBB\u0F47;\u64C8st;\u629Birc;\u629Aash;\u629Dnint;\u6A10id;\u6AEFcir;\u69C2ubs\u0100;u\u1ABB\u1ABC\u6663it\xBB\u1ABC\u02EC\u1AC7\u1AD4\u1AFA\0\u1B0Aon\u0100;e\u1ACD\u1ACE\u403A\u0100;q\xC7\xC6\u026D\u1AD9\0\0\u1AE2a\u0100;t\u1ADE\u1ADF\u402C;\u4040\u0180;fl\u1AE8\u1AE9\u1AEB\u6201\xEE\u1160e\u0100mx\u1AF1\u1AF6ent\xBB\u1AE9e\xF3\u024D\u01E7\u1AFE\0\u1B07\u0100;d\u12BB\u1B02ot;\u6A6Dn\xF4\u0246\u0180fry\u1B10\u1B14\u1B17;\uC000\u{1D554}o\xE4\u0254\u8100\xA9;s\u0155\u1B1Dr;\u6117\u0100ao\u1B25\u1B29rr;\u61B5ss;\u6717\u0100cu\u1B32\u1B37r;\uC000\u{1D4B8}\u0100bp\u1B3C\u1B44\u0100;e\u1B41\u1B42\u6ACF;\u6AD1\u0100;e\u1B49\u1B4A\u6AD0;\u6AD2dot;\u62EF\u0380delprvw\u1B60\u1B6C\u1B77\u1B82\u1BAC\u1BD4\u1BF9arr\u0100lr\u1B68\u1B6A;\u6938;\u6935\u0270\u1B72\0\0\u1B75r;\u62DEc;\u62DFarr\u0100;p\u1B7F\u1B80\u61B6;\u693D\u0300;bcdos\u1B8F\u1B90\u1B96\u1BA1\u1BA5\u1BA8\u622Arcap;\u6A48\u0100au\u1B9B\u1B9Ep;\u6A46p;\u6A4Aot;\u628Dr;\u6A45;\uC000\u222A\uFE00\u0200alrv\u1BB5\u1BBF\u1BDE\u1BE3rr\u0100;m\u1BBC\u1BBD\u61B7;\u693Cy\u0180evw\u1BC7\u1BD4\u1BD8q\u0270\u1BCE\0\0\u1BD2re\xE3\u1B73u\xE3\u1B75ee;\u62CEedge;\u62CFen\u803B\xA4\u40A4earrow\u0100lr\u1BEE\u1BF3eft\xBB\u1B80ight\xBB\u1BBDe\xE4\u1BDD\u0100ci\u1C01\u1C07onin\xF4\u01F7nt;\u6231lcty;\u632D\u0980AHabcdefhijlorstuwz\u1C38\u1C3B\u1C3F\u1C5D\u1C69\u1C75\u1C8A\u1C9E\u1CAC\u1CB7\u1CFB\u1CFF\u1D0D\u1D7B\u1D91\u1DAB\u1DBB\u1DC6\u1DCDr\xF2\u0381ar;\u6965\u0200glrs\u1C48\u1C4D\u1C52\u1C54ger;\u6020eth;\u6138\xF2\u1133h\u0100;v\u1C5A\u1C5B\u6010\xBB\u090A\u016B\u1C61\u1C67arow;\u690Fa\xE3\u0315\u0100ay\u1C6E\u1C73ron;\u410F;\u4434\u0180;ao\u0332\u1C7C\u1C84\u0100gr\u02BF\u1C81r;\u61CAtseq;\u6A77\u0180glm\u1C91\u1C94\u1C98\u803B\xB0\u40B0ta;\u43B4ptyv;\u69B1\u0100ir\u1CA3\u1CA8sht;\u697F;\uC000\u{1D521}ar\u0100lr\u1CB3\u1CB5\xBB\u08DC\xBB\u101E\u0280aegsv\u1CC2\u0378\u1CD6\u1CDC\u1CE0m\u0180;os\u0326\u1CCA\u1CD4nd\u0100;s\u0326\u1CD1uit;\u6666amma;\u43DDin;\u62F2\u0180;io\u1CE7\u1CE8\u1CF8\u40F7de\u8100\xF7;o\u1CE7\u1CF0ntimes;\u62C7n\xF8\u1CF7cy;\u4452c\u026F\u1D06\0\0\u1D0Arn;\u631Eop;\u630D\u0280lptuw\u1D18\u1D1D\u1D22\u1D49\u1D55lar;\u4024f;\uC000\u{1D555}\u0280;emps\u030B\u1D2D\u1D37\u1D3D\u1D42q\u0100;d\u0352\u1D33ot;\u6251inus;\u6238lus;\u6214quare;\u62A1blebarwedg\xE5\xFAn\u0180adh\u112E\u1D5D\u1D67ownarrow\xF3\u1C83arpoon\u0100lr\u1D72\u1D76ef\xF4\u1CB4igh\xF4\u1CB6\u0162\u1D7F\u1D85karo\xF7\u0F42\u026F\u1D8A\0\0\u1D8Ern;\u631Fop;\u630C\u0180cot\u1D98\u1DA3\u1DA6\u0100ry\u1D9D\u1DA1;\uC000\u{1D4B9};\u4455l;\u69F6rok;\u4111\u0100dr\u1DB0\u1DB4ot;\u62F1i\u0100;f\u1DBA\u1816\u65BF\u0100ah\u1DC0\u1DC3r\xF2\u0429a\xF2\u0FA6angle;\u69A6\u0100ci\u1DD2\u1DD5y;\u445Fgrarr;\u67FF\u0900Dacdefglmnopqrstux\u1E01\u1E09\u1E19\u1E38\u0578\u1E3C\u1E49\u1E61\u1E7E\u1EA5\u1EAF\u1EBD\u1EE1\u1F2A\u1F37\u1F44\u1F4E\u1F5A\u0100Do\u1E06\u1D34o\xF4\u1C89\u0100cs\u1E0E\u1E14ute\u803B\xE9\u40E9ter;\u6A6E\u0200aioy\u1E22\u1E27\u1E31\u1E36ron;\u411Br\u0100;c\u1E2D\u1E2E\u6256\u803B\xEA\u40EAlon;\u6255;\u444Dot;\u4117\u0100Dr\u1E41\u1E45ot;\u6252;\uC000\u{1D522}\u0180;rs\u1E50\u1E51\u1E57\u6A9Aave\u803B\xE8\u40E8\u0100;d\u1E5C\u1E5D\u6A96ot;\u6A98\u0200;ils\u1E6A\u1E6B\u1E72\u1E74\u6A99nters;\u63E7;\u6113\u0100;d\u1E79\u1E7A\u6A95ot;\u6A97\u0180aps\u1E85\u1E89\u1E97cr;\u4113ty\u0180;sv\u1E92\u1E93\u1E95\u6205et\xBB\u1E93p\u01001;\u1E9D\u1EA4\u0133\u1EA1\u1EA3;\u6004;\u6005\u6003\u0100gs\u1EAA\u1EAC;\u414Bp;\u6002\u0100gp\u1EB4\u1EB8on;\u4119f;\uC000\u{1D556}\u0180als\u1EC4\u1ECE\u1ED2r\u0100;s\u1ECA\u1ECB\u62D5l;\u69E3us;\u6A71i\u0180;lv\u1EDA\u1EDB\u1EDF\u43B5on\xBB\u1EDB;\u43F5\u0200csuv\u1EEA\u1EF3\u1F0B\u1F23\u0100io\u1EEF\u1E31rc\xBB\u1E2E\u0269\u1EF9\0\0\u1EFB\xED\u0548ant\u0100gl\u1F02\u1F06tr\xBB\u1E5Dess\xBB\u1E7A\u0180aei\u1F12\u1F16\u1F1Als;\u403Dst;\u625Fv\u0100;D\u0235\u1F20D;\u6A78parsl;\u69E5\u0100Da\u1F2F\u1F33ot;\u6253rr;\u6971\u0180cdi\u1F3E\u1F41\u1EF8r;\u612Fo\xF4\u0352\u0100ah\u1F49\u1F4B;\u43B7\u803B\xF0\u40F0\u0100mr\u1F53\u1F57l\u803B\xEB\u40EBo;\u60AC\u0180cip\u1F61\u1F64\u1F67l;\u4021s\xF4\u056E\u0100eo\u1F6C\u1F74ctatio\xEE\u0559nential\xE5\u0579\u09E1\u1F92\0\u1F9E\0\u1FA1\u1FA7\0\0\u1FC6\u1FCC\0\u1FD3\0\u1FE6\u1FEA\u2000\0\u2008\u205Allingdotse\xF1\u1E44y;\u4444male;\u6640\u0180ilr\u1FAD\u1FB3\u1FC1lig;\u8000\uFB03\u0269\u1FB9\0\0\u1FBDg;\u8000\uFB00ig;\u8000\uFB04;\uC000\u{1D523}lig;\u8000\uFB01lig;\uC000fj\u0180alt\u1FD9\u1FDC\u1FE1t;\u666Dig;\u8000\uFB02ns;\u65B1of;\u4192\u01F0\u1FEE\0\u1FF3f;\uC000\u{1D557}\u0100ak\u05BF\u1FF7\u0100;v\u1FFC\u1FFD\u62D4;\u6AD9artint;\u6A0D\u0100ao\u200C\u2055\u0100cs\u2011\u2052\u03B1\u201A\u2030\u2038\u2045\u2048\0\u2050\u03B2\u2022\u2025\u2027\u202A\u202C\0\u202E\u803B\xBD\u40BD;\u6153\u803B\xBC\u40BC;\u6155;\u6159;\u615B\u01B3\u2034\0\u2036;\u6154;\u6156\u02B4\u203E\u2041\0\0\u2043\u803B\xBE\u40BE;\u6157;\u615C5;\u6158\u01B6\u204C\0\u204E;\u615A;\u615D8;\u615El;\u6044wn;\u6322cr;\uC000\u{1D4BB}\u0880Eabcdefgijlnorstv\u2082\u2089\u209F\u20A5\u20B0\u20B4\u20F0\u20F5\u20FA\u20FF\u2103\u2112\u2138\u0317\u213E\u2152\u219E\u0100;l\u064D\u2087;\u6A8C\u0180cmp\u2090\u2095\u209Dute;\u41F5ma\u0100;d\u209C\u1CDA\u43B3;\u6A86reve;\u411F\u0100iy\u20AA\u20AErc;\u411D;\u4433ot;\u4121\u0200;lqs\u063E\u0642\u20BD\u20C9\u0180;qs\u063E\u064C\u20C4lan\xF4\u0665\u0200;cdl\u0665\u20D2\u20D5\u20E5c;\u6AA9ot\u0100;o\u20DC\u20DD\u6A80\u0100;l\u20E2\u20E3\u6A82;\u6A84\u0100;e\u20EA\u20ED\uC000\u22DB\uFE00s;\u6A94r;\uC000\u{1D524}\u0100;g\u0673\u061Bmel;\u6137cy;\u4453\u0200;Eaj\u065A\u210C\u210E\u2110;\u6A92;\u6AA5;\u6AA4\u0200Eaes\u211B\u211D\u2129\u2134;\u6269p\u0100;p\u2123\u2124\u6A8Arox\xBB\u2124\u0100;q\u212E\u212F\u6A88\u0100;q\u212E\u211Bim;\u62E7pf;\uC000\u{1D558}\u0100ci\u2143\u2146r;\u610Am\u0180;el\u066B\u214E\u2150;\u6A8E;\u6A90\u8300>;cdlqr\u05EE\u2160\u216A\u216E\u2173\u2179\u0100ci\u2165\u2167;\u6AA7r;\u6A7Aot;\u62D7Par;\u6995uest;\u6A7C\u0280adels\u2184\u216A\u2190\u0656\u219B\u01F0\u2189\0\u218Epro\xF8\u209Er;\u6978q\u0100lq\u063F\u2196les\xF3\u2088i\xED\u066B\u0100en\u21A3\u21ADrtneqq;\uC000\u2269\uFE00\xC5\u21AA\u0500Aabcefkosy\u21C4\u21C7\u21F1\u21F5\u21FA\u2218\u221D\u222F\u2268\u227Dr\xF2\u03A0\u0200ilmr\u21D0\u21D4\u21D7\u21DBrs\xF0\u1484f\xBB\u2024il\xF4\u06A9\u0100dr\u21E0\u21E4cy;\u444A\u0180;cw\u08F4\u21EB\u21EFir;\u6948;\u61ADar;\u610Firc;\u4125\u0180alr\u2201\u220E\u2213rts\u0100;u\u2209\u220A\u6665it\xBB\u220Alip;\u6026con;\u62B9r;\uC000\u{1D525}s\u0100ew\u2223\u2229arow;\u6925arow;\u6926\u0280amopr\u223A\u223E\u2243\u225E\u2263rr;\u61FFtht;\u623Bk\u0100lr\u2249\u2253eftarrow;\u61A9ightarrow;\u61AAf;\uC000\u{1D559}bar;\u6015\u0180clt\u226F\u2274\u2278r;\uC000\u{1D4BD}as\xE8\u21F4rok;\u4127\u0100bp\u2282\u2287ull;\u6043hen\xBB\u1C5B\u0AE1\u22A3\0\u22AA\0\u22B8\u22C5\u22CE\0\u22D5\u22F3\0\0\u22F8\u2322\u2367\u2362\u237F\0\u2386\u23AA\u23B4cute\u803B\xED\u40ED\u0180;iy\u0771\u22B0\u22B5rc\u803B\xEE\u40EE;\u4438\u0100cx\u22BC\u22BFy;\u4435cl\u803B\xA1\u40A1\u0100fr\u039F\u22C9;\uC000\u{1D526}rave\u803B\xEC\u40EC\u0200;ino\u073E\u22DD\u22E9\u22EE\u0100in\u22E2\u22E6nt;\u6A0Ct;\u622Dfin;\u69DCta;\u6129lig;\u4133\u0180aop\u22FE\u231A\u231D\u0180cgt\u2305\u2308\u2317r;\u412B\u0180elp\u071F\u230F\u2313in\xE5\u078Ear\xF4\u0720h;\u4131f;\u62B7ed;\u41B5\u0280;cfot\u04F4\u232C\u2331\u233D\u2341are;\u6105in\u0100;t\u2338\u2339\u621Eie;\u69DDdo\xF4\u2319\u0280;celp\u0757\u234C\u2350\u235B\u2361al;\u62BA\u0100gr\u2355\u2359er\xF3\u1563\xE3\u234Darhk;\u6A17rod;\u6A3C\u0200cgpt\u236F\u2372\u2376\u237By;\u4451on;\u412Ff;\uC000\u{1D55A}a;\u43B9uest\u803B\xBF\u40BF\u0100ci\u238A\u238Fr;\uC000\u{1D4BE}n\u0280;Edsv\u04F4\u239B\u239D\u23A1\u04F3;\u62F9ot;\u62F5\u0100;v\u23A6\u23A7\u62F4;\u62F3\u0100;i\u0777\u23AElde;\u4129\u01EB\u23B8\0\u23BCcy;\u4456l\u803B\xEF\u40EF\u0300cfmosu\u23CC\u23D7\u23DC\u23E1\u23E7\u23F5\u0100iy\u23D1\u23D5rc;\u4135;\u4439r;\uC000\u{1D527}ath;\u4237pf;\uC000\u{1D55B}\u01E3\u23EC\0\u23F1r;\uC000\u{1D4BF}rcy;\u4458kcy;\u4454\u0400acfghjos\u240B\u2416\u2422\u2427\u242D\u2431\u2435\u243Bppa\u0100;v\u2413\u2414\u43BA;\u43F0\u0100ey\u241B\u2420dil;\u4137;\u443Ar;\uC000\u{1D528}reen;\u4138cy;\u4445cy;\u445Cpf;\uC000\u{1D55C}cr;\uC000\u{1D4C0}\u0B80ABEHabcdefghjlmnoprstuv\u2470\u2481\u2486\u248D\u2491\u250E\u253D\u255A\u2580\u264E\u265E\u2665\u2679\u267D\u269A\u26B2\u26D8\u275D\u2768\u278B\u27C0\u2801\u2812\u0180art\u2477\u247A\u247Cr\xF2\u09C6\xF2\u0395ail;\u691Barr;\u690E\u0100;g\u0994\u248B;\u6A8Bar;\u6962\u0963\u24A5\0\u24AA\0\u24B1\0\0\0\0\0\u24B5\u24BA\0\u24C6\u24C8\u24CD\0\u24F9ute;\u413Amptyv;\u69B4ra\xEE\u084Cbda;\u43BBg\u0180;dl\u088E\u24C1\u24C3;\u6991\xE5\u088E;\u6A85uo\u803B\xAB\u40ABr\u0400;bfhlpst\u0899\u24DE\u24E6\u24E9\u24EB\u24EE\u24F1\u24F5\u0100;f\u089D\u24E3s;\u691Fs;\u691D\xEB\u2252p;\u61ABl;\u6939im;\u6973l;\u61A2\u0180;ae\u24FF\u2500\u2504\u6AABil;\u6919\u0100;s\u2509\u250A\u6AAD;\uC000\u2AAD\uFE00\u0180abr\u2515\u2519\u251Drr;\u690Crk;\u6772\u0100ak\u2522\u252Cc\u0100ek\u2528\u252A;\u407B;\u405B\u0100es\u2531\u2533;\u698Bl\u0100du\u2539\u253B;\u698F;\u698D\u0200aeuy\u2546\u254B\u2556\u2558ron;\u413E\u0100di\u2550\u2554il;\u413C\xEC\u08B0\xE2\u2529;\u443B\u0200cqrs\u2563\u2566\u256D\u257Da;\u6936uo\u0100;r\u0E19\u1746\u0100du\u2572\u2577har;\u6967shar;\u694Bh;\u61B2\u0280;fgqs\u258B\u258C\u0989\u25F3\u25FF\u6264t\u0280ahlrt\u2598\u25A4\u25B7\u25C2\u25E8rrow\u0100;t\u0899\u25A1a\xE9\u24F6arpoon\u0100du\u25AF\u25B4own\xBB\u045Ap\xBB\u0966eftarrows;\u61C7ight\u0180ahs\u25CD\u25D6\u25DErrow\u0100;s\u08F4\u08A7arpoon\xF3\u0F98quigarro\xF7\u21F0hreetimes;\u62CB\u0180;qs\u258B\u0993\u25FAlan\xF4\u09AC\u0280;cdgs\u09AC\u260A\u260D\u261D\u2628c;\u6AA8ot\u0100;o\u2614\u2615\u6A7F\u0100;r\u261A\u261B\u6A81;\u6A83\u0100;e\u2622\u2625\uC000\u22DA\uFE00s;\u6A93\u0280adegs\u2633\u2639\u263D\u2649\u264Bppro\xF8\u24C6ot;\u62D6q\u0100gq\u2643\u2645\xF4\u0989gt\xF2\u248C\xF4\u099Bi\xED\u09B2\u0180ilr\u2655\u08E1\u265Asht;\u697C;\uC000\u{1D529}\u0100;E\u099C\u2663;\u6A91\u0161\u2669\u2676r\u0100du\u25B2\u266E\u0100;l\u0965\u2673;\u696Alk;\u6584cy;\u4459\u0280;acht\u0A48\u2688\u268B\u2691\u2696r\xF2\u25C1orne\xF2\u1D08ard;\u696Bri;\u65FA\u0100io\u269F\u26A4dot;\u4140ust\u0100;a\u26AC\u26AD\u63B0che\xBB\u26AD\u0200Eaes\u26BB\u26BD\u26C9\u26D4;\u6268p\u0100;p\u26C3\u26C4\u6A89rox\xBB\u26C4\u0100;q\u26CE\u26CF\u6A87\u0100;q\u26CE\u26BBim;\u62E6\u0400abnoptwz\u26E9\u26F4\u26F7\u271A\u272F\u2741\u2747\u2750\u0100nr\u26EE\u26F1g;\u67ECr;\u61FDr\xEB\u08C1g\u0180lmr\u26FF\u270D\u2714eft\u0100ar\u09E6\u2707ight\xE1\u09F2apsto;\u67FCight\xE1\u09FDparrow\u0100lr\u2725\u2729ef\xF4\u24EDight;\u61AC\u0180afl\u2736\u2739\u273Dr;\u6985;\uC000\u{1D55D}us;\u6A2Dimes;\u6A34\u0161\u274B\u274Fst;\u6217\xE1\u134E\u0180;ef\u2757\u2758\u1800\u65CAnge\xBB\u2758ar\u0100;l\u2764\u2765\u4028t;\u6993\u0280achmt\u2773\u2776\u277C\u2785\u2787r\xF2\u08A8orne\xF2\u1D8Car\u0100;d\u0F98\u2783;\u696D;\u600Eri;\u62BF\u0300achiqt\u2798\u279D\u0A40\u27A2\u27AE\u27BBquo;\u6039r;\uC000\u{1D4C1}m\u0180;eg\u09B2\u27AA\u27AC;\u6A8D;\u6A8F\u0100bu\u252A\u27B3o\u0100;r\u0E1F\u27B9;\u601Arok;\u4142\u8400<;cdhilqr\u082B\u27D2\u2639\u27DC\u27E0\u27E5\u27EA\u27F0\u0100ci\u27D7\u27D9;\u6AA6r;\u6A79re\xE5\u25F2mes;\u62C9arr;\u6976uest;\u6A7B\u0100Pi\u27F5\u27F9ar;\u6996\u0180;ef\u2800\u092D\u181B\u65C3r\u0100du\u2807\u280Dshar;\u694Ahar;\u6966\u0100en\u2817\u2821rtneqq;\uC000\u2268\uFE00\xC5\u281E\u0700Dacdefhilnopsu\u2840\u2845\u2882\u288E\u2893\u28A0\u28A5\u28A8\u28DA\u28E2\u28E4\u0A83\u28F3\u2902Dot;\u623A\u0200clpr\u284E\u2852\u2863\u287Dr\u803B\xAF\u40AF\u0100et\u2857\u2859;\u6642\u0100;e\u285E\u285F\u6720se\xBB\u285F\u0100;s\u103B\u2868to\u0200;dlu\u103B\u2873\u2877\u287Bow\xEE\u048Cef\xF4\u090F\xF0\u13D1ker;\u65AE\u0100oy\u2887\u288Cmma;\u6A29;\u443Cash;\u6014asuredangle\xBB\u1626r;\uC000\u{1D52A}o;\u6127\u0180cdn\u28AF\u28B4\u28C9ro\u803B\xB5\u40B5\u0200;acd\u1464\u28BD\u28C0\u28C4s\xF4\u16A7ir;\u6AF0ot\u80BB\xB7\u01B5us\u0180;bd\u28D2\u1903\u28D3\u6212\u0100;u\u1D3C\u28D8;\u6A2A\u0163\u28DE\u28E1p;\u6ADB\xF2\u2212\xF0\u0A81\u0100dp\u28E9\u28EEels;\u62A7f;\uC000\u{1D55E}\u0100ct\u28F8\u28FDr;\uC000\u{1D4C2}pos\xBB\u159D\u0180;lm\u2909\u290A\u290D\u43BCtimap;\u62B8\u0C00GLRVabcdefghijlmoprstuvw\u2942\u2953\u297E\u2989\u2998\u29DA\u29E9\u2A15\u2A1A\u2A58\u2A5D\u2A83\u2A95\u2AA4\u2AA8\u2B04\u2B07\u2B44\u2B7F\u2BAE\u2C34\u2C67\u2C7C\u2CE9\u0100gt\u2947\u294B;\uC000\u22D9\u0338\u0100;v\u2950\u0BCF\uC000\u226B\u20D2\u0180elt\u295A\u2972\u2976ft\u0100ar\u2961\u2967rrow;\u61CDightarrow;\u61CE;\uC000\u22D8\u0338\u0100;v\u297B\u0C47\uC000\u226A\u20D2ightarrow;\u61CF\u0100Dd\u298E\u2993ash;\u62AFash;\u62AE\u0280bcnpt\u29A3\u29A7\u29AC\u29B1\u29CCla\xBB\u02DEute;\u4144g;\uC000\u2220\u20D2\u0280;Eiop\u0D84\u29BC\u29C0\u29C5\u29C8;\uC000\u2A70\u0338d;\uC000\u224B\u0338s;\u4149ro\xF8\u0D84ur\u0100;a\u29D3\u29D4\u666El\u0100;s\u29D3\u0B38\u01F3\u29DF\0\u29E3p\u80BB\xA0\u0B37mp\u0100;e\u0BF9\u0C00\u0280aeouy\u29F4\u29FE\u2A03\u2A10\u2A13\u01F0\u29F9\0\u29FB;\u6A43on;\u4148dil;\u4146ng\u0100;d\u0D7E\u2A0Aot;\uC000\u2A6D\u0338p;\u6A42;\u443Dash;\u6013\u0380;Aadqsx\u0B92\u2A29\u2A2D\u2A3B\u2A41\u2A45\u2A50rr;\u61D7r\u0100hr\u2A33\u2A36k;\u6924\u0100;o\u13F2\u13F0ot;\uC000\u2250\u0338ui\xF6\u0B63\u0100ei\u2A4A\u2A4Ear;\u6928\xED\u0B98ist\u0100;s\u0BA0\u0B9Fr;\uC000\u{1D52B}\u0200Eest\u0BC5\u2A66\u2A79\u2A7C\u0180;qs\u0BBC\u2A6D\u0BE1\u0180;qs\u0BBC\u0BC5\u2A74lan\xF4\u0BE2i\xED\u0BEA\u0100;r\u0BB6\u2A81\xBB\u0BB7\u0180Aap\u2A8A\u2A8D\u2A91r\xF2\u2971rr;\u61AEar;\u6AF2\u0180;sv\u0F8D\u2A9C\u0F8C\u0100;d\u2AA1\u2AA2\u62FC;\u62FAcy;\u445A\u0380AEadest\u2AB7\u2ABA\u2ABE\u2AC2\u2AC5\u2AF6\u2AF9r\xF2\u2966;\uC000\u2266\u0338rr;\u619Ar;\u6025\u0200;fqs\u0C3B\u2ACE\u2AE3\u2AEFt\u0100ar\u2AD4\u2AD9rro\xF7\u2AC1ightarro\xF7\u2A90\u0180;qs\u0C3B\u2ABA\u2AEAlan\xF4\u0C55\u0100;s\u0C55\u2AF4\xBB\u0C36i\xED\u0C5D\u0100;r\u0C35\u2AFEi\u0100;e\u0C1A\u0C25i\xE4\u0D90\u0100pt\u2B0C\u2B11f;\uC000\u{1D55F}\u8180\xAC;in\u2B19\u2B1A\u2B36\u40ACn\u0200;Edv\u0B89\u2B24\u2B28\u2B2E;\uC000\u22F9\u0338ot;\uC000\u22F5\u0338\u01E1\u0B89\u2B33\u2B35;\u62F7;\u62F6i\u0100;v\u0CB8\u2B3C\u01E1\u0CB8\u2B41\u2B43;\u62FE;\u62FD\u0180aor\u2B4B\u2B63\u2B69r\u0200;ast\u0B7B\u2B55\u2B5A\u2B5Flle\xEC\u0B7Bl;\uC000\u2AFD\u20E5;\uC000\u2202\u0338lint;\u6A14\u0180;ce\u0C92\u2B70\u2B73u\xE5\u0CA5\u0100;c\u0C98\u2B78\u0100;e\u0C92\u2B7D\xF1\u0C98\u0200Aait\u2B88\u2B8B\u2B9D\u2BA7r\xF2\u2988rr\u0180;cw\u2B94\u2B95\u2B99\u619B;\uC000\u2933\u0338;\uC000\u219D\u0338ghtarrow\xBB\u2B95ri\u0100;e\u0CCB\u0CD6\u0380chimpqu\u2BBD\u2BCD\u2BD9\u2B04\u0B78\u2BE4\u2BEF\u0200;cer\u0D32\u2BC6\u0D37\u2BC9u\xE5\u0D45;\uC000\u{1D4C3}ort\u026D\u2B05\0\0\u2BD6ar\xE1\u2B56m\u0100;e\u0D6E\u2BDF\u0100;q\u0D74\u0D73su\u0100bp\u2BEB\u2BED\xE5\u0CF8\xE5\u0D0B\u0180bcp\u2BF6\u2C11\u2C19\u0200;Ees\u2BFF\u2C00\u0D22\u2C04\u6284;\uC000\u2AC5\u0338et\u0100;e\u0D1B\u2C0Bq\u0100;q\u0D23\u2C00c\u0100;e\u0D32\u2C17\xF1\u0D38\u0200;Ees\u2C22\u2C23\u0D5F\u2C27\u6285;\uC000\u2AC6\u0338et\u0100;e\u0D58\u2C2Eq\u0100;q\u0D60\u2C23\u0200gilr\u2C3D\u2C3F\u2C45\u2C47\xEC\u0BD7lde\u803B\xF1\u40F1\xE7\u0C43iangle\u0100lr\u2C52\u2C5Ceft\u0100;e\u0C1A\u2C5A\xF1\u0C26ight\u0100;e\u0CCB\u2C65\xF1\u0CD7\u0100;m\u2C6C\u2C6D\u43BD\u0180;es\u2C74\u2C75\u2C79\u4023ro;\u6116p;\u6007\u0480DHadgilrs\u2C8F\u2C94\u2C99\u2C9E\u2CA3\u2CB0\u2CB6\u2CD3\u2CE3ash;\u62ADarr;\u6904p;\uC000\u224D\u20D2ash;\u62AC\u0100et\u2CA8\u2CAC;\uC000\u2265\u20D2;\uC000>\u20D2nfin;\u69DE\u0180Aet\u2CBD\u2CC1\u2CC5rr;\u6902;\uC000\u2264\u20D2\u0100;r\u2CCA\u2CCD\uC000<\u20D2ie;\uC000\u22B4\u20D2\u0100At\u2CD8\u2CDCrr;\u6903rie;\uC000\u22B5\u20D2im;\uC000\u223C\u20D2\u0180Aan\u2CF0\u2CF4\u2D02rr;\u61D6r\u0100hr\u2CFA\u2CFDk;\u6923\u0100;o\u13E7\u13E5ear;\u6927\u1253\u1A95\0\0\0\0\0\0\0\0\0\0\0\0\0\u2D2D\0\u2D38\u2D48\u2D60\u2D65\u2D72\u2D84\u1B07\0\0\u2D8D\u2DAB\0\u2DC8\u2DCE\0\u2DDC\u2E19\u2E2B\u2E3E\u2E43\u0100cs\u2D31\u1A97ute\u803B\xF3\u40F3\u0100iy\u2D3C\u2D45r\u0100;c\u1A9E\u2D42\u803B\xF4\u40F4;\u443E\u0280abios\u1AA0\u2D52\u2D57\u01C8\u2D5Alac;\u4151v;\u6A38old;\u69BClig;\u4153\u0100cr\u2D69\u2D6Dir;\u69BF;\uC000\u{1D52C}\u036F\u2D79\0\0\u2D7C\0\u2D82n;\u42DBave\u803B\xF2\u40F2;\u69C1\u0100bm\u2D88\u0DF4ar;\u69B5\u0200acit\u2D95\u2D98\u2DA5\u2DA8r\xF2\u1A80\u0100ir\u2D9D\u2DA0r;\u69BEoss;\u69BBn\xE5\u0E52;\u69C0\u0180aei\u2DB1\u2DB5\u2DB9cr;\u414Dga;\u43C9\u0180cdn\u2DC0\u2DC5\u01CDron;\u43BF;\u69B6pf;\uC000\u{1D560}\u0180ael\u2DD4\u2DD7\u01D2r;\u69B7rp;\u69B9\u0380;adiosv\u2DEA\u2DEB\u2DEE\u2E08\u2E0D\u2E10\u2E16\u6228r\xF2\u1A86\u0200;efm\u2DF7\u2DF8\u2E02\u2E05\u6A5Dr\u0100;o\u2DFE\u2DFF\u6134f\xBB\u2DFF\u803B\xAA\u40AA\u803B\xBA\u40BAgof;\u62B6r;\u6A56lope;\u6A57;\u6A5B\u0180clo\u2E1F\u2E21\u2E27\xF2\u2E01ash\u803B\xF8\u40F8l;\u6298i\u016C\u2E2F\u2E34de\u803B\xF5\u40F5es\u0100;a\u01DB\u2E3As;\u6A36ml\u803B\xF6\u40F6bar;\u633D\u0AE1\u2E5E\0\u2E7D\0\u2E80\u2E9D\0\u2EA2\u2EB9\0\0\u2ECB\u0E9C\0\u2F13\0\0\u2F2B\u2FBC\0\u2FC8r\u0200;ast\u0403\u2E67\u2E72\u0E85\u8100\xB6;l\u2E6D\u2E6E\u40B6le\xEC\u0403\u0269\u2E78\0\0\u2E7Bm;\u6AF3;\u6AFDy;\u443Fr\u0280cimpt\u2E8B\u2E8F\u2E93\u1865\u2E97nt;\u4025od;\u402Eil;\u6030enk;\u6031r;\uC000\u{1D52D}\u0180imo\u2EA8\u2EB0\u2EB4\u0100;v\u2EAD\u2EAE\u43C6;\u43D5ma\xF4\u0A76ne;\u660E\u0180;tv\u2EBF\u2EC0\u2EC8\u43C0chfork\xBB\u1FFD;\u43D6\u0100au\u2ECF\u2EDFn\u0100ck\u2ED5\u2EDDk\u0100;h\u21F4\u2EDB;\u610E\xF6\u21F4s\u0480;abcdemst\u2EF3\u2EF4\u1908\u2EF9\u2EFD\u2F04\u2F06\u2F0A\u2F0E\u402Bcir;\u6A23ir;\u6A22\u0100ou\u1D40\u2F02;\u6A25;\u6A72n\u80BB\xB1\u0E9Dim;\u6A26wo;\u6A27\u0180ipu\u2F19\u2F20\u2F25ntint;\u6A15f;\uC000\u{1D561}nd\u803B\xA3\u40A3\u0500;Eaceinosu\u0EC8\u2F3F\u2F41\u2F44\u2F47\u2F81\u2F89\u2F92\u2F7E\u2FB6;\u6AB3p;\u6AB7u\xE5\u0ED9\u0100;c\u0ECE\u2F4C\u0300;acens\u0EC8\u2F59\u2F5F\u2F66\u2F68\u2F7Eppro\xF8\u2F43urlye\xF1\u0ED9\xF1\u0ECE\u0180aes\u2F6F\u2F76\u2F7Approx;\u6AB9qq;\u6AB5im;\u62E8i\xED\u0EDFme\u0100;s\u2F88\u0EAE\u6032\u0180Eas\u2F78\u2F90\u2F7A\xF0\u2F75\u0180dfp\u0EEC\u2F99\u2FAF\u0180als\u2FA0\u2FA5\u2FAAlar;\u632Eine;\u6312urf;\u6313\u0100;t\u0EFB\u2FB4\xEF\u0EFBrel;\u62B0\u0100ci\u2FC0\u2FC5r;\uC000\u{1D4C5};\u43C8ncsp;\u6008\u0300fiopsu\u2FDA\u22E2\u2FDF\u2FE5\u2FEB\u2FF1r;\uC000\u{1D52E}pf;\uC000\u{1D562}rime;\u6057cr;\uC000\u{1D4C6}\u0180aeo\u2FF8\u3009\u3013t\u0100ei\u2FFE\u3005rnion\xF3\u06B0nt;\u6A16st\u0100;e\u3010\u3011\u403F\xF1\u1F19\xF4\u0F14\u0A80ABHabcdefhilmnoprstux\u3040\u3051\u3055\u3059\u30E0\u310E\u312B\u3147\u3162\u3172\u318E\u3206\u3215\u3224\u3229\u3258\u326E\u3272\u3290\u32B0\u32B7\u0180art\u3047\u304A\u304Cr\xF2\u10B3\xF2\u03DDail;\u691Car\xF2\u1C65ar;\u6964\u0380cdenqrt\u3068\u3075\u3078\u307F\u308F\u3094\u30CC\u0100eu\u306D\u3071;\uC000\u223D\u0331te;\u4155i\xE3\u116Emptyv;\u69B3g\u0200;del\u0FD1\u3089\u308B\u308D;\u6992;\u69A5\xE5\u0FD1uo\u803B\xBB\u40BBr\u0580;abcfhlpstw\u0FDC\u30AC\u30AF\u30B7\u30B9\u30BC\u30BE\u30C0\u30C3\u30C7\u30CAp;\u6975\u0100;f\u0FE0\u30B4s;\u6920;\u6933s;\u691E\xEB\u225D\xF0\u272El;\u6945im;\u6974l;\u61A3;\u619D\u0100ai\u30D1\u30D5il;\u691Ao\u0100;n\u30DB\u30DC\u6236al\xF3\u0F1E\u0180abr\u30E7\u30EA\u30EEr\xF2\u17E5rk;\u6773\u0100ak\u30F3\u30FDc\u0100ek\u30F9\u30FB;\u407D;\u405D\u0100es\u3102\u3104;\u698Cl\u0100du\u310A\u310C;\u698E;\u6990\u0200aeuy\u3117\u311C\u3127\u3129ron;\u4159\u0100di\u3121\u3125il;\u4157\xEC\u0FF2\xE2\u30FA;\u4440\u0200clqs\u3134\u3137\u313D\u3144a;\u6937dhar;\u6969uo\u0100;r\u020E\u020Dh;\u61B3\u0180acg\u314E\u315F\u0F44l\u0200;ips\u0F78\u3158\u315B\u109Cn\xE5\u10BBar\xF4\u0FA9t;\u65AD\u0180ilr\u3169\u1023\u316Esht;\u697D;\uC000\u{1D52F}\u0100ao\u3177\u3186r\u0100du\u317D\u317F\xBB\u047B\u0100;l\u1091\u3184;\u696C\u0100;v\u318B\u318C\u43C1;\u43F1\u0180gns\u3195\u31F9\u31FCht\u0300ahlrst\u31A4\u31B0\u31C2\u31D8\u31E4\u31EErrow\u0100;t\u0FDC\u31ADa\xE9\u30C8arpoon\u0100du\u31BB\u31BFow\xEE\u317Ep\xBB\u1092eft\u0100ah\u31CA\u31D0rrow\xF3\u0FEAarpoon\xF3\u0551ightarrows;\u61C9quigarro\xF7\u30CBhreetimes;\u62CCg;\u42DAingdotse\xF1\u1F32\u0180ahm\u320D\u3210\u3213r\xF2\u0FEAa\xF2\u0551;\u600Foust\u0100;a\u321E\u321F\u63B1che\xBB\u321Fmid;\u6AEE\u0200abpt\u3232\u323D\u3240\u3252\u0100nr\u3237\u323Ag;\u67EDr;\u61FEr\xEB\u1003\u0180afl\u3247\u324A\u324Er;\u6986;\uC000\u{1D563}us;\u6A2Eimes;\u6A35\u0100ap\u325D\u3267r\u0100;g\u3263\u3264\u4029t;\u6994olint;\u6A12ar\xF2\u31E3\u0200achq\u327B\u3280\u10BC\u3285quo;\u603Ar;\uC000\u{1D4C7}\u0100bu\u30FB\u328Ao\u0100;r\u0214\u0213\u0180hir\u3297\u329B\u32A0re\xE5\u31F8mes;\u62CAi\u0200;efl\u32AA\u1059\u1821\u32AB\u65B9tri;\u69CEluhar;\u6968;\u611E\u0D61\u32D5\u32DB\u32DF\u332C\u3338\u3371\0\u337A\u33A4\0\0\u33EC\u33F0\0\u3428\u3448\u345A\u34AD\u34B1\u34CA\u34F1\0\u3616\0\0\u3633cute;\u415Bqu\xEF\u27BA\u0500;Eaceinpsy\u11ED\u32F3\u32F5\u32FF\u3302\u330B\u330F\u331F\u3326\u3329;\u6AB4\u01F0\u32FA\0\u32FC;\u6AB8on;\u4161u\xE5\u11FE\u0100;d\u11F3\u3307il;\u415Frc;\u415D\u0180Eas\u3316\u3318\u331B;\u6AB6p;\u6ABAim;\u62E9olint;\u6A13i\xED\u1204;\u4441ot\u0180;be\u3334\u1D47\u3335\u62C5;\u6A66\u0380Aacmstx\u3346\u334A\u3357\u335B\u335E\u3363\u336Drr;\u61D8r\u0100hr\u3350\u3352\xEB\u2228\u0100;o\u0A36\u0A34t\u803B\xA7\u40A7i;\u403Bwar;\u6929m\u0100in\u3369\xF0nu\xF3\xF1t;\u6736r\u0100;o\u3376\u2055\uC000\u{1D530}\u0200acoy\u3382\u3386\u3391\u33A0rp;\u666F\u0100hy\u338B\u338Fcy;\u4449;\u4448rt\u026D\u3399\0\0\u339Ci\xE4\u1464ara\xEC\u2E6F\u803B\xAD\u40AD\u0100gm\u33A8\u33B4ma\u0180;fv\u33B1\u33B2\u33B2\u43C3;\u43C2\u0400;deglnpr\u12AB\u33C5\u33C9\u33CE\u33D6\u33DE\u33E1\u33E6ot;\u6A6A\u0100;q\u12B1\u12B0\u0100;E\u33D3\u33D4\u6A9E;\u6AA0\u0100;E\u33DB\u33DC\u6A9D;\u6A9Fe;\u6246lus;\u6A24arr;\u6972ar\xF2\u113D\u0200aeit\u33F8\u3408\u340F\u3417\u0100ls\u33FD\u3404lsetm\xE9\u336Ahp;\u6A33parsl;\u69E4\u0100dl\u1463\u3414e;\u6323\u0100;e\u341C\u341D\u6AAA\u0100;s\u3422\u3423\u6AAC;\uC000\u2AAC\uFE00\u0180flp\u342E\u3433\u3442tcy;\u444C\u0100;b\u3438\u3439\u402F\u0100;a\u343E\u343F\u69C4r;\u633Ff;\uC000\u{1D564}a\u0100dr\u344D\u0402es\u0100;u\u3454\u3455\u6660it\xBB\u3455\u0180csu\u3460\u3479\u349F\u0100au\u3465\u346Fp\u0100;s\u1188\u346B;\uC000\u2293\uFE00p\u0100;s\u11B4\u3475;\uC000\u2294\uFE00u\u0100bp\u347F\u348F\u0180;es\u1197\u119C\u3486et\u0100;e\u1197\u348D\xF1\u119D\u0180;es\u11A8\u11AD\u3496et\u0100;e\u11A8\u349D\xF1\u11AE\u0180;af\u117B\u34A6\u05B0r\u0165\u34AB\u05B1\xBB\u117Car\xF2\u1148\u0200cemt\u34B9\u34BE\u34C2\u34C5r;\uC000\u{1D4C8}tm\xEE\xF1i\xEC\u3415ar\xE6\u11BE\u0100ar\u34CE\u34D5r\u0100;f\u34D4\u17BF\u6606\u0100an\u34DA\u34EDight\u0100ep\u34E3\u34EApsilo\xEE\u1EE0h\xE9\u2EAFs\xBB\u2852\u0280bcmnp\u34FB\u355E\u1209\u358B\u358E\u0480;Edemnprs\u350E\u350F\u3511\u3515\u351E\u3523\u352C\u3531\u3536\u6282;\u6AC5ot;\u6ABD\u0100;d\u11DA\u351Aot;\u6AC3ult;\u6AC1\u0100Ee\u3528\u352A;\u6ACB;\u628Alus;\u6ABFarr;\u6979\u0180eiu\u353D\u3552\u3555t\u0180;en\u350E\u3545\u354Bq\u0100;q\u11DA\u350Feq\u0100;q\u352B\u3528m;\u6AC7\u0100bp\u355A\u355C;\u6AD5;\u6AD3c\u0300;acens\u11ED\u356C\u3572\u3579\u357B\u3326ppro\xF8\u32FAurlye\xF1\u11FE\xF1\u11F3\u0180aes\u3582\u3588\u331Bppro\xF8\u331Aq\xF1\u3317g;\u666A\u0680123;Edehlmnps\u35A9\u35AC\u35AF\u121C\u35B2\u35B4\u35C0\u35C9\u35D5\u35DA\u35DF\u35E8\u35ED\u803B\xB9\u40B9\u803B\xB2\u40B2\u803B\xB3\u40B3;\u6AC6\u0100os\u35B9\u35BCt;\u6ABEub;\u6AD8\u0100;d\u1222\u35C5ot;\u6AC4s\u0100ou\u35CF\u35D2l;\u67C9b;\u6AD7arr;\u697Bult;\u6AC2\u0100Ee\u35E4\u35E6;\u6ACC;\u628Blus;\u6AC0\u0180eiu\u35F4\u3609\u360Ct\u0180;en\u121C\u35FC\u3602q\u0100;q\u1222\u35B2eq\u0100;q\u35E7\u35E4m;\u6AC8\u0100bp\u3611\u3613;\u6AD4;\u6AD6\u0180Aan\u361C\u3620\u362Drr;\u61D9r\u0100hr\u3626\u3628\xEB\u222E\u0100;o\u0A2B\u0A29war;\u692Alig\u803B\xDF\u40DF\u0BE1\u3651\u365D\u3660\u12CE\u3673\u3679\0\u367E\u36C2\0\0\0\0\0\u36DB\u3703\0\u3709\u376C\0\0\0\u3787\u0272\u3656\0\0\u365Bget;\u6316;\u43C4r\xEB\u0E5F\u0180aey\u3666\u366B\u3670ron;\u4165dil;\u4163;\u4442lrec;\u6315r;\uC000\u{1D531}\u0200eiko\u3686\u369D\u36B5\u36BC\u01F2\u368B\0\u3691e\u01004f\u1284\u1281a\u0180;sv\u3698\u3699\u369B\u43B8ym;\u43D1\u0100cn\u36A2\u36B2k\u0100as\u36A8\u36AEppro\xF8\u12C1im\xBB\u12ACs\xF0\u129E\u0100as\u36BA\u36AE\xF0\u12C1rn\u803B\xFE\u40FE\u01EC\u031F\u36C6\u22E7es\u8180\xD7;bd\u36CF\u36D0\u36D8\u40D7\u0100;a\u190F\u36D5r;\u6A31;\u6A30\u0180eps\u36E1\u36E3\u3700\xE1\u2A4D\u0200;bcf\u0486\u36EC\u36F0\u36F4ot;\u6336ir;\u6AF1\u0100;o\u36F9\u36FC\uC000\u{1D565}rk;\u6ADA\xE1\u3362rime;\u6034\u0180aip\u370F\u3712\u3764d\xE5\u1248\u0380adempst\u3721\u374D\u3740\u3751\u3757\u375C\u375Fngle\u0280;dlqr\u3730\u3731\u3736\u3740\u3742\u65B5own\xBB\u1DBBeft\u0100;e\u2800\u373E\xF1\u092E;\u625Cight\u0100;e\u32AA\u374B\xF1\u105Aot;\u65ECinus;\u6A3Alus;\u6A39b;\u69CDime;\u6A3Bezium;\u63E2\u0180cht\u3772\u377D\u3781\u0100ry\u3777\u377B;\uC000\u{1D4C9};\u4446cy;\u445Brok;\u4167\u0100io\u378B\u378Ex\xF4\u1777head\u0100lr\u3797\u37A0eftarro\xF7\u084Fightarrow\xBB\u0F5D\u0900AHabcdfghlmoprstuw\u37D0\u37D3\u37D7\u37E4\u37F0\u37FC\u380E\u381C\u3823\u3834\u3851\u385D\u386B\u38A9\u38CC\u38D2\u38EA\u38F6r\xF2\u03EDar;\u6963\u0100cr\u37DC\u37E2ute\u803B\xFA\u40FA\xF2\u1150r\u01E3\u37EA\0\u37EDy;\u445Eve;\u416D\u0100iy\u37F5\u37FArc\u803B\xFB\u40FB;\u4443\u0180abh\u3803\u3806\u380Br\xF2\u13ADlac;\u4171a\xF2\u13C3\u0100ir\u3813\u3818sht;\u697E;\uC000\u{1D532}rave\u803B\xF9\u40F9\u0161\u3827\u3831r\u0100lr\u382C\u382E\xBB\u0957\xBB\u1083lk;\u6580\u0100ct\u3839\u384D\u026F\u383F\0\0\u384Arn\u0100;e\u3845\u3846\u631Cr\xBB\u3846op;\u630Fri;\u65F8\u0100al\u3856\u385Acr;\u416B\u80BB\xA8\u0349\u0100gp\u3862\u3866on;\u4173f;\uC000\u{1D566}\u0300adhlsu\u114B\u3878\u387D\u1372\u3891\u38A0own\xE1\u13B3arpoon\u0100lr\u3888\u388Cef\xF4\u382Digh\xF4\u382Fi\u0180;hl\u3899\u389A\u389C\u43C5\xBB\u13FAon\xBB\u389Aparrows;\u61C8\u0180cit\u38B0\u38C4\u38C8\u026F\u38B6\0\0\u38C1rn\u0100;e\u38BC\u38BD\u631Dr\xBB\u38BDop;\u630Eng;\u416Fri;\u65F9cr;\uC000\u{1D4CA}\u0180dir\u38D9\u38DD\u38E2ot;\u62F0lde;\u4169i\u0100;f\u3730\u38E8\xBB\u1813\u0100am\u38EF\u38F2r\xF2\u38A8l\u803B\xFC\u40FCangle;\u69A7\u0780ABDacdeflnoprsz\u391C\u391F\u3929\u392D\u39B5\u39B8\u39BD\u39DF\u39E4\u39E8\u39F3\u39F9\u39FD\u3A01\u3A20r\xF2\u03F7ar\u0100;v\u3926\u3927\u6AE8;\u6AE9as\xE8\u03E1\u0100nr\u3932\u3937grt;\u699C\u0380eknprst\u34E3\u3946\u394B\u3952\u395D\u3964\u3996app\xE1\u2415othin\xE7\u1E96\u0180hir\u34EB\u2EC8\u3959op\xF4\u2FB5\u0100;h\u13B7\u3962\xEF\u318D\u0100iu\u3969\u396Dgm\xE1\u33B3\u0100bp\u3972\u3984setneq\u0100;q\u397D\u3980\uC000\u228A\uFE00;\uC000\u2ACB\uFE00setneq\u0100;q\u398F\u3992\uC000\u228B\uFE00;\uC000\u2ACC\uFE00\u0100hr\u399B\u399Fet\xE1\u369Ciangle\u0100lr\u39AA\u39AFeft\xBB\u0925ight\xBB\u1051y;\u4432ash\xBB\u1036\u0180elr\u39C4\u39D2\u39D7\u0180;be\u2DEA\u39CB\u39CFar;\u62BBq;\u625Alip;\u62EE\u0100bt\u39DC\u1468a\xF2\u1469r;\uC000\u{1D533}tr\xE9\u39AEsu\u0100bp\u39EF\u39F1\xBB\u0D1C\xBB\u0D59pf;\uC000\u{1D567}ro\xF0\u0EFBtr\xE9\u39B4\u0100cu\u3A06\u3A0Br;\uC000\u{1D4CB}\u0100bp\u3A10\u3A18n\u0100Ee\u3980\u3A16\xBB\u397En\u0100Ee\u3992\u3A1E\xBB\u3990igzag;\u699A\u0380cefoprs\u3A36\u3A3B\u3A56\u3A5B\u3A54\u3A61\u3A6Airc;\u4175\u0100di\u3A40\u3A51\u0100bg\u3A45\u3A49ar;\u6A5Fe\u0100;q\u15FA\u3A4F;\u6259erp;\u6118r;\uC000\u{1D534}pf;\uC000\u{1D568}\u0100;e\u1479\u3A66at\xE8\u1479cr;\uC000\u{1D4CC}\u0AE3\u178E\u3A87\0\u3A8B\0\u3A90\u3A9B\0\0\u3A9D\u3AA8\u3AAB\u3AAF\0\0\u3AC3\u3ACE\0\u3AD8\u17DC\u17DFtr\xE9\u17D1r;\uC000\u{1D535}\u0100Aa\u3A94\u3A97r\xF2\u03C3r\xF2\u09F6;\u43BE\u0100Aa\u3AA1\u3AA4r\xF2\u03B8r\xF2\u09EBa\xF0\u2713is;\u62FB\u0180dpt\u17A4\u3AB5\u3ABE\u0100fl\u3ABA\u17A9;\uC000\u{1D569}im\xE5\u17B2\u0100Aa\u3AC7\u3ACAr\xF2\u03CEr\xF2\u0A01\u0100cq\u3AD2\u17B8r;\uC000\u{1D4CD}\u0100pt\u17D6\u3ADCr\xE9\u17D4\u0400acefiosu\u3AF0\u3AFD\u3B08\u3B0C\u3B11\u3B15\u3B1B\u3B21c\u0100uy\u3AF6\u3AFBte\u803B\xFD\u40FD;\u444F\u0100iy\u3B02\u3B06rc;\u4177;\u444Bn\u803B\xA5\u40A5r;\uC000\u{1D536}cy;\u4457pf;\uC000\u{1D56A}cr;\uC000\u{1D4CE}\u0100cm\u3B26\u3B29y;\u444El\u803B\xFF\u40FF\u0500acdefhiosw\u3B42\u3B48\u3B54\u3B58\u3B64\u3B69\u3B6D\u3B74\u3B7A\u3B80cute;\u417A\u0100ay\u3B4D\u3B52ron;\u417E;\u4437ot;\u417C\u0100et\u3B5D\u3B61tr\xE6\u155Fa;\u43B6r;\uC000\u{1D537}cy;\u4436grarr;\u61DDpf;\uC000\u{1D56B}cr;\uC000\u{1D4CF}\u0100jn\u3B85\u3B87;\u600Dj;\u600C'.split("").map(p=>p.charCodeAt(0))),xmlDecodeTree=new Uint16Array("\u0200aglq \x1B\u026D\0\0p;\u4026os;\u4027t;\u403Et;\u403Cuot;\u4022".split("").map(p=>p.charCodeAt(0))),_a$1;const decodeMap=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),fromCodePoint=(_a$1=String.fromCodePoint)!==null&&_a$1!==void 0?_a$1:function(p){let f="";return p>65535&&(p-=65536,f+=String.fromCharCode(p>>>10&1023|55296),p=56320|p&1023),f+=String.fromCharCode(p),f};function replaceCodePoint(p){var f;return p>=55296&&p<=57343||p>1114111?65533:(f=decodeMap.get(p))!==null&&f!==void 0?f:p}var CharCodes$1;(function(p){p[p.NUM=35]="NUM",p[p.SEMI=59]="SEMI",p[p.EQUALS=61]="EQUALS",p[p.ZERO=48]="ZERO",p[p.NINE=57]="NINE",p[p.LOWER_A=97]="LOWER_A",p[p.LOWER_F=102]="LOWER_F",p[p.LOWER_X=120]="LOWER_X",p[p.LOWER_Z=122]="LOWER_Z",p[p.UPPER_A=65]="UPPER_A",p[p.UPPER_F=70]="UPPER_F",p[p.UPPER_Z=90]="UPPER_Z"})(CharCodes$1||(CharCodes$1={}));const TO_LOWER_BIT=32;var BinTrieFlags;(function(p){p[p.VALUE_LENGTH=49152]="VALUE_LENGTH",p[p.BRANCH_LENGTH=16256]="BRANCH_LENGTH",p[p.JUMP_TABLE=127]="JUMP_TABLE"})(BinTrieFlags||(BinTrieFlags={}));function isNumber$1(p){return p>=CharCodes$1.ZERO&&p<=CharCodes$1.NINE}function isHexadecimalCharacter(p){return p>=CharCodes$1.UPPER_A&&p<=CharCodes$1.UPPER_F||p>=CharCodes$1.LOWER_A&&p<=CharCodes$1.LOWER_F}function isAsciiAlphaNumeric(p){return p>=CharCodes$1.UPPER_A&&p<=CharCodes$1.UPPER_Z||p>=CharCodes$1.LOWER_A&&p<=CharCodes$1.LOWER_Z||isNumber$1(p)}function isEntityInAttributeInvalidEnd(p){return p===CharCodes$1.EQUALS||isAsciiAlphaNumeric(p)}var EntityDecoderState;(function(p){p[p.EntityStart=0]="EntityStart",p[p.NumericStart=1]="NumericStart",p[p.NumericDecimal=2]="NumericDecimal",p[p.NumericHex=3]="NumericHex",p[p.NamedEntity=4]="NamedEntity"})(EntityDecoderState||(EntityDecoderState={}));var DecodingMode;(function(p){p[p.Legacy=0]="Legacy",p[p.Strict=1]="Strict",p[p.Attribute=2]="Attribute"})(DecodingMode||(DecodingMode={}));class EntityDecoder{constructor(f,S,d){this.decodeTree=f,this.emitCodePoint=S,this.errors=d,this.state=EntityDecoderState.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=DecodingMode.Strict}startEntity(f){this.decodeMode=f,this.state=EntityDecoderState.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(f,S){switch(this.state){case EntityDecoderState.EntityStart:return f.charCodeAt(S)===CharCodes$1.NUM?(this.state=EntityDecoderState.NumericStart,this.consumed+=1,this.stateNumericStart(f,S+1)):(this.state=EntityDecoderState.NamedEntity,this.stateNamedEntity(f,S));case EntityDecoderState.NumericStart:return this.stateNumericStart(f,S);case EntityDecoderState.NumericDecimal:return this.stateNumericDecimal(f,S);case EntityDecoderState.NumericHex:return this.stateNumericHex(f,S);case EntityDecoderState.NamedEntity:return this.stateNamedEntity(f,S)}}stateNumericStart(f,S){return S>=f.length?-1:(f.charCodeAt(S)|TO_LOWER_BIT)===CharCodes$1.LOWER_X?(this.state=EntityDecoderState.NumericHex,this.consumed+=1,this.stateNumericHex(f,S+1)):(this.state=EntityDecoderState.NumericDecimal,this.stateNumericDecimal(f,S))}addToNumericResult(f,S,d,R){if(S!==d){const g=d-S;this.result=this.result*Math.pow(R,g)+parseInt(f.substr(S,g),R),this.consumed+=g}}stateNumericHex(f,S){const d=S;for(;S<f.length;){const R=f.charCodeAt(S);if(isNumber$1(R)||isHexadecimalCharacter(R))S+=1;else return this.addToNumericResult(f,d,S,16),this.emitNumericEntity(R,3)}return this.addToNumericResult(f,d,S,16),-1}stateNumericDecimal(f,S){const d=S;for(;S<f.length;){const R=f.charCodeAt(S);if(isNumber$1(R))S+=1;else return this.addToNumericResult(f,d,S,10),this.emitNumericEntity(R,2)}return this.addToNumericResult(f,d,S,10),-1}emitNumericEntity(f,S){var d;if(this.consumed<=S)return(d=this.errors)===null||d===void 0||d.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(f===CharCodes$1.SEMI)this.consumed+=1;else if(this.decodeMode===DecodingMode.Strict)return 0;return this.emitCodePoint(replaceCodePoint(this.result),this.consumed),this.errors&&(f!==CharCodes$1.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(f,S){const{decodeTree:d}=this;let R=d[this.treeIndex],g=(R&BinTrieFlags.VALUE_LENGTH)>>14;for(;S<f.length;S++,this.excess++){const O=f.charCodeAt(S);if(this.treeIndex=determineBranch(d,R,this.treeIndex+Math.max(1,g),O),this.treeIndex<0)return this.result===0||this.decodeMode===DecodingMode.Attribute&&(g===0||isEntityInAttributeInvalidEnd(O))?0:this.emitNotTerminatedNamedEntity();if(R=d[this.treeIndex],g=(R&BinTrieFlags.VALUE_LENGTH)>>14,g!==0){if(O===CharCodes$1.SEMI)return this.emitNamedEntityData(this.treeIndex,g,this.consumed+this.excess);this.decodeMode!==DecodingMode.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var f;const{result:S,decodeTree:d}=this,R=(d[S]&BinTrieFlags.VALUE_LENGTH)>>14;return this.emitNamedEntityData(S,R,this.consumed),(f=this.errors)===null||f===void 0||f.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(f,S,d){const{decodeTree:R}=this;return this.emitCodePoint(S===1?R[f]&~BinTrieFlags.VALUE_LENGTH:R[f+1],d),S===3&&this.emitCodePoint(R[f+2],d),d}end(){var f;switch(this.state){case EntityDecoderState.NamedEntity:return this.result!==0&&(this.decodeMode!==DecodingMode.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case EntityDecoderState.NumericDecimal:return this.emitNumericEntity(0,2);case EntityDecoderState.NumericHex:return this.emitNumericEntity(0,3);case EntityDecoderState.NumericStart:return(f=this.errors)===null||f===void 0||f.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case EntityDecoderState.EntityStart:return 0}}}function getDecoder$1(p){let f="";const S=new EntityDecoder(p,d=>f+=fromCodePoint(d));return function(R,g){let O=0,J=0;for(;(J=R.indexOf("&",J))>=0;){f+=R.slice(O,J),S.startEntity(g);const se=S.write(R,J+1);if(se<0){O=J+S.end();break}O=J+se,J=se===0?O+1:O}const a=f+R.slice(O);return f="",a}}function determineBranch(p,f,S,d){const R=(f&BinTrieFlags.BRANCH_LENGTH)>>7,g=f&BinTrieFlags.JUMP_TABLE;if(R===0)return g!==0&&d===g?S:-1;if(g){const a=d-g;return a<0||a>=R?-1:p[S+a]-1}let O=S,J=O+R-1;for(;O<=J;){const a=O+J>>>1,se=p[a];if(se<d)O=a+1;else if(se>d)J=a-1;else return p[a+R]}return-1}getDecoder$1(htmlDecodeTree);getDecoder$1(xmlDecodeTree);var CharCodes;(function(p){p[p.Tab=9]="Tab",p[p.NewLine=10]="NewLine",p[p.FormFeed=12]="FormFeed",p[p.CarriageReturn=13]="CarriageReturn",p[p.Space=32]="Space",p[p.ExclamationMark=33]="ExclamationMark",p[p.Number=35]="Number",p[p.Amp=38]="Amp",p[p.SingleQuote=39]="SingleQuote",p[p.DoubleQuote=34]="DoubleQuote",p[p.Dash=45]="Dash",p[p.Slash=47]="Slash",p[p.Zero=48]="Zero",p[p.Nine=57]="Nine",p[p.Semi=59]="Semi",p[p.Lt=60]="Lt",p[p.Eq=61]="Eq",p[p.Gt=62]="Gt",p[p.Questionmark=63]="Questionmark",p[p.UpperA=65]="UpperA",p[p.LowerA=97]="LowerA",p[p.UpperF=70]="UpperF",p[p.LowerF=102]="LowerF",p[p.UpperZ=90]="UpperZ",p[p.LowerZ=122]="LowerZ",p[p.LowerX=120]="LowerX",p[p.OpeningSquareBracket=91]="OpeningSquareBracket"})(CharCodes||(CharCodes={}));var State;(function(p){p[p.Text=1]="Text",p[p.BeforeTagName=2]="BeforeTagName",p[p.InTagName=3]="InTagName",p[p.InSelfClosingTag=4]="InSelfClosingTag",p[p.BeforeClosingTagName=5]="BeforeClosingTagName",p[p.InClosingTagName=6]="InClosingTagName",p[p.AfterClosingTagName=7]="AfterClosingTagName",p[p.BeforeAttributeName=8]="BeforeAttributeName",p[p.InAttributeName=9]="InAttributeName",p[p.AfterAttributeName=10]="AfterAttributeName",p[p.BeforeAttributeValue=11]="BeforeAttributeValue",p[p.InAttributeValueDq=12]="InAttributeValueDq",p[p.InAttributeValueSq=13]="InAttributeValueSq",p[p.InAttributeValueNq=14]="InAttributeValueNq",p[p.BeforeDeclaration=15]="BeforeDeclaration",p[p.InDeclaration=16]="InDeclaration",p[p.InProcessingInstruction=17]="InProcessingInstruction",p[p.BeforeComment=18]="BeforeComment",p[p.CDATASequence=19]="CDATASequence",p[p.InSpecialComment=20]="InSpecialComment",p[p.InCommentLike=21]="InCommentLike",p[p.BeforeSpecialS=22]="BeforeSpecialS",p[p.SpecialStartSequence=23]="SpecialStartSequence",p[p.InSpecialTag=24]="InSpecialTag",p[p.BeforeEntity=25]="BeforeEntity",p[p.BeforeNumericEntity=26]="BeforeNumericEntity",p[p.InNamedEntity=27]="InNamedEntity",p[p.InNumericEntity=28]="InNumericEntity",p[p.InHexEntity=29]="InHexEntity"})(State||(State={}));function isWhitespace(p){return p===CharCodes.Space||p===CharCodes.NewLine||p===CharCodes.Tab||p===CharCodes.FormFeed||p===CharCodes.CarriageReturn}function isEndOfTagSection(p){return p===CharCodes.Slash||p===CharCodes.Gt||isWhitespace(p)}function isNumber(p){return p>=CharCodes.Zero&&p<=CharCodes.Nine}function isASCIIAlpha(p){return p>=CharCodes.LowerA&&p<=CharCodes.LowerZ||p>=CharCodes.UpperA&&p<=CharCodes.UpperZ}function isHexDigit(p){return p>=CharCodes.UpperA&&p<=CharCodes.UpperF||p>=CharCodes.LowerA&&p<=CharCodes.LowerF}var QuoteType;(function(p){p[p.NoValue=0]="NoValue",p[p.Unquoted=1]="Unquoted",p[p.Single=2]="Single",p[p.Double=3]="Double"})(QuoteType||(QuoteType={}));const Sequences={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])};class Tokenizer$1{constructor({xmlMode:f=!1,decodeEntities:S=!0},d){this.cbs=d,this.state=State.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=State.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=f,this.decodeEntities=S,this.entityTrie=f?xmlDecodeTree:htmlDecodeTree}reset(){this.state=State.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=State.Text,this.currentSequence=void 0,this.running=!0,this.offset=0}write(f){this.offset+=this.buffer.length,this.buffer=f,this.parse()}end(){this.running&&this.finish()}pause(){this.running=!1}resume(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()}getIndex(){return this.index}getSectionStart(){return this.sectionStart}stateText(f){f===CharCodes.Lt||!this.decodeEntities&&this.fastForwardTo(CharCodes.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=State.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&f===CharCodes.Amp&&(this.state=State.BeforeEntity)}stateSpecialStartSequence(f){const S=this.sequenceIndex===this.currentSequence.length;if(!(S?isEndOfTagSection(f):(f|32)===this.currentSequence[this.sequenceIndex]))this.isSpecial=!1;else if(!S){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=State.InTagName,this.stateInTagName(f)}stateInSpecialTag(f){if(this.sequenceIndex===this.currentSequence.length){if(f===CharCodes.Gt||isWhitespace(f)){const S=this.index-this.currentSequence.length;if(this.sectionStart<S){const d=this.index;this.index=S,this.cbs.ontext(this.sectionStart,S),this.index=d}this.isSpecial=!1,this.sectionStart=S+2,this.stateInClosingTagName(f);return}this.sequenceIndex=0}(f|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===Sequences.TitleEnd?this.decodeEntities&&f===CharCodes.Amp&&(this.state=State.BeforeEntity):this.fastForwardTo(CharCodes.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=Number(f===CharCodes.Lt)}stateCDATASequence(f){f===Sequences.Cdata[this.sequenceIndex]?++this.sequenceIndex===Sequences.Cdata.length&&(this.state=State.InCommentLike,this.currentSequence=Sequences.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=State.InDeclaration,this.stateInDeclaration(f))}fastForwardTo(f){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===f)return!0;return this.index=this.buffer.length+this.offset-1,!1}stateInCommentLike(f){f===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===Sequences.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index,2):this.cbs.oncomment(this.sectionStart,this.index,2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=State.Text):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):f!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}isTagStartChar(f){return this.xmlMode?!isEndOfTagSection(f):isASCIIAlpha(f)}startSpecial(f,S){this.isSpecial=!0,this.currentSequence=f,this.sequenceIndex=S,this.state=State.SpecialStartSequence}stateBeforeTagName(f){if(f===CharCodes.ExclamationMark)this.state=State.BeforeDeclaration,this.sectionStart=this.index+1;else if(f===CharCodes.Questionmark)this.state=State.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(f)){const S=f|32;this.sectionStart=this.index,!this.xmlMode&&S===Sequences.TitleEnd[2]?this.startSpecial(Sequences.TitleEnd,3):this.state=!this.xmlMode&&S===Sequences.ScriptEnd[2]?State.BeforeSpecialS:State.InTagName}else f===CharCodes.Slash?this.state=State.BeforeClosingTagName:(this.state=State.Text,this.stateText(f))}stateInTagName(f){isEndOfTagSection(f)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=State.BeforeAttributeName,this.stateBeforeAttributeName(f))}stateBeforeClosingTagName(f){isWhitespace(f)||(f===CharCodes.Gt?this.state=State.Text:(this.state=this.isTagStartChar(f)?State.InClosingTagName:State.InSpecialComment,this.sectionStart=this.index))}stateInClosingTagName(f){(f===CharCodes.Gt||isWhitespace(f))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=State.AfterClosingTagName,this.stateAfterClosingTagName(f))}stateAfterClosingTagName(f){(f===CharCodes.Gt||this.fastForwardTo(CharCodes.Gt))&&(this.state=State.Text,this.baseState=State.Text,this.sectionStart=this.index+1)}stateBeforeAttributeName(f){f===CharCodes.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=State.InSpecialTag,this.sequenceIndex=0):this.state=State.Text,this.baseState=this.state,this.sectionStart=this.index+1):f===CharCodes.Slash?this.state=State.InSelfClosingTag:isWhitespace(f)||(this.state=State.InAttributeName,this.sectionStart=this.index)}stateInSelfClosingTag(f){f===CharCodes.Gt?(this.cbs.onselfclosingtag(this.index),this.state=State.Text,this.baseState=State.Text,this.sectionStart=this.index+1,this.isSpecial=!1):isWhitespace(f)||(this.state=State.BeforeAttributeName,this.stateBeforeAttributeName(f))}stateInAttributeName(f){(f===CharCodes.Eq||isEndOfTagSection(f))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=-1,this.state=State.AfterAttributeName,this.stateAfterAttributeName(f))}stateAfterAttributeName(f){f===CharCodes.Eq?this.state=State.BeforeAttributeValue:f===CharCodes.Slash||f===CharCodes.Gt?(this.cbs.onattribend(QuoteType.NoValue,this.index),this.state=State.BeforeAttributeName,this.stateBeforeAttributeName(f)):isWhitespace(f)||(this.cbs.onattribend(QuoteType.NoValue,this.index),this.state=State.InAttributeName,this.sectionStart=this.index)}stateBeforeAttributeValue(f){f===CharCodes.DoubleQuote?(this.state=State.InAttributeValueDq,this.sectionStart=this.index+1):f===CharCodes.SingleQuote?(this.state=State.InAttributeValueSq,this.sectionStart=this.index+1):isWhitespace(f)||(this.sectionStart=this.index,this.state=State.InAttributeValueNq,this.stateInAttributeValueNoQuotes(f))}handleInAttributeValue(f,S){f===S||!this.decodeEntities&&this.fastForwardTo(S)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(S===CharCodes.DoubleQuote?QuoteType.Double:QuoteType.Single,this.index),this.state=State.BeforeAttributeName):this.decodeEntities&&f===CharCodes.Amp&&(this.baseState=this.state,this.state=State.BeforeEntity)}stateInAttributeValueDoubleQuotes(f){this.handleInAttributeValue(f,CharCodes.DoubleQuote)}stateInAttributeValueSingleQuotes(f){this.handleInAttributeValue(f,CharCodes.SingleQuote)}stateInAttributeValueNoQuotes(f){isWhitespace(f)||f===CharCodes.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(QuoteType.Unquoted,this.index),this.state=State.BeforeAttributeName,this.stateBeforeAttributeName(f)):this.decodeEntities&&f===CharCodes.Amp&&(this.baseState=this.state,this.state=State.BeforeEntity)}stateBeforeDeclaration(f){f===CharCodes.OpeningSquareBracket?(this.state=State.CDATASequence,this.sequenceIndex=0):this.state=f===CharCodes.Dash?State.BeforeComment:State.InDeclaration}stateInDeclaration(f){(f===CharCodes.Gt||this.fastForwardTo(CharCodes.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=State.Text,this.sectionStart=this.index+1)}stateInProcessingInstruction(f){(f===CharCodes.Gt||this.fastForwardTo(CharCodes.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=State.Text,this.sectionStart=this.index+1)}stateBeforeComment(f){f===CharCodes.Dash?(this.state=State.InCommentLike,this.currentSequence=Sequences.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=State.InDeclaration}stateInSpecialComment(f){(f===CharCodes.Gt||this.fastForwardTo(CharCodes.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=State.Text,this.sectionStart=this.index+1)}stateBeforeSpecialS(f){const S=f|32;S===Sequences.ScriptEnd[3]?this.startSpecial(Sequences.ScriptEnd,4):S===Sequences.StyleEnd[3]?this.startSpecial(Sequences.StyleEnd,4):(this.state=State.InTagName,this.stateInTagName(f))}stateBeforeEntity(f){this.entityExcess=1,this.entityResult=0,f===CharCodes.Number?this.state=State.BeforeNumericEntity:f===CharCodes.Amp||(this.trieIndex=0,this.trieCurrent=this.entityTrie[0],this.state=State.InNamedEntity,this.stateInNamedEntity(f))}stateInNamedEntity(f){if(this.entityExcess+=1,this.trieIndex=determineBranch(this.entityTrie,this.trieCurrent,this.trieIndex+1,f),this.trieIndex<0){this.emitNamedEntity(),this.index--;return}this.trieCurrent=this.entityTrie[this.trieIndex];const S=this.trieCurrent&BinTrieFlags.VALUE_LENGTH;if(S){const d=(S>>14)-1;if(!this.allowLegacyEntity()&&f!==CharCodes.Semi)this.trieIndex+=d;else{const R=this.index-this.entityExcess+1;R>this.sectionStart&&this.emitPartial(this.sectionStart,R),this.entityResult=this.trieIndex,this.trieIndex+=d,this.entityExcess=0,this.sectionStart=this.index+1,d===0&&this.emitNamedEntity()}}}emitNamedEntity(){if(this.state=this.baseState,this.entityResult===0)return;switch((this.entityTrie[this.entityResult]&BinTrieFlags.VALUE_LENGTH)>>14){case 1:{this.emitCodePoint(this.entityTrie[this.entityResult]&~BinTrieFlags.VALUE_LENGTH);break}case 2:{this.emitCodePoint(this.entityTrie[this.entityResult+1]);break}case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}}stateBeforeNumericEntity(f){(f|32)===CharCodes.LowerX?(this.entityExcess++,this.state=State.InHexEntity):(this.state=State.InNumericEntity,this.stateInNumericEntity(f))}emitNumericEntity(f){const S=this.index-this.entityExcess-1;S+2+Number(this.state===State.InHexEntity)!==this.index&&(S>this.sectionStart&&this.emitPartial(this.sectionStart,S),this.sectionStart=this.index+Number(f),this.emitCodePoint(replaceCodePoint(this.entityResult))),this.state=this.baseState}stateInNumericEntity(f){f===CharCodes.Semi?this.emitNumericEntity(!0):isNumber(f)?(this.entityResult=this.entityResult*10+(f-CharCodes.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)}stateInHexEntity(f){f===CharCodes.Semi?this.emitNumericEntity(!0):isNumber(f)?(this.entityResult=this.entityResult*16+(f-CharCodes.Zero),this.entityExcess++):isHexDigit(f)?(this.entityResult=this.entityResult*16+((f|32)-CharCodes.LowerA+10),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)}allowLegacyEntity(){return!this.xmlMode&&(this.baseState===State.Text||this.baseState===State.InSpecialTag)}cleanup(){this.running&&this.sectionStart!==this.index&&(this.state===State.Text||this.state===State.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===State.InAttributeValueDq||this.state===State.InAttributeValueSq||this.state===State.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}shouldContinue(){return this.index<this.buffer.length+this.offset&&this.running}parse(){for(;this.shouldContinue();){const f=this.buffer.charCodeAt(this.index-this.offset);switch(this.state){case State.Text:{this.stateText(f);break}case State.SpecialStartSequence:{this.stateSpecialStartSequence(f);break}case State.InSpecialTag:{this.stateInSpecialTag(f);break}case State.CDATASequence:{this.stateCDATASequence(f);break}case State.InAttributeValueDq:{this.stateInAttributeValueDoubleQuotes(f);break}case State.InAttributeName:{this.stateInAttributeName(f);break}case State.InCommentLike:{this.stateInCommentLike(f);break}case State.InSpecialComment:{this.stateInSpecialComment(f);break}case State.BeforeAttributeName:{this.stateBeforeAttributeName(f);break}case State.InTagName:{this.stateInTagName(f);break}case State.InClosingTagName:{this.stateInClosingTagName(f);break}case State.BeforeTagName:{this.stateBeforeTagName(f);break}case State.AfterAttributeName:{this.stateAfterAttributeName(f);break}case State.InAttributeValueSq:{this.stateInAttributeValueSingleQuotes(f);break}case State.BeforeAttributeValue:{this.stateBeforeAttributeValue(f);break}case State.BeforeClosingTagName:{this.stateBeforeClosingTagName(f);break}case State.AfterClosingTagName:{this.stateAfterClosingTagName(f);break}case State.BeforeSpecialS:{this.stateBeforeSpecialS(f);break}case State.InAttributeValueNq:{this.stateInAttributeValueNoQuotes(f);break}case State.InSelfClosingTag:{this.stateInSelfClosingTag(f);break}case State.InDeclaration:{this.stateInDeclaration(f);break}case State.BeforeDeclaration:{this.stateBeforeDeclaration(f);break}case State.BeforeComment:{this.stateBeforeComment(f);break}case State.InProcessingInstruction:{this.stateInProcessingInstruction(f);break}case State.InNamedEntity:{this.stateInNamedEntity(f);break}case State.BeforeEntity:{this.stateBeforeEntity(f);break}case State.InHexEntity:{this.stateInHexEntity(f);break}case State.InNumericEntity:{this.stateInNumericEntity(f);break}default:this.stateBeforeNumericEntity(f)}this.index++}this.cleanup()}finish(){this.state===State.InNamedEntity&&this.emitNamedEntity(),this.sectionStart<this.index&&this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){const f=this.buffer.length+this.offset;this.state===State.InCommentLike?this.currentSequence===Sequences.CdataEnd?this.cbs.oncdata(this.sectionStart,f,0):this.cbs.oncomment(this.sectionStart,f,0):this.state===State.InNumericEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===State.InHexEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===State.InTagName||this.state===State.BeforeAttributeName||this.state===State.BeforeAttributeValue||this.state===State.AfterAttributeName||this.state===State.InAttributeName||this.state===State.InAttributeValueSq||this.state===State.InAttributeValueDq||this.state===State.InAttributeValueNq||this.state===State.InClosingTagName||this.cbs.ontext(this.sectionStart,f)}emitPartial(f,S){this.baseState!==State.Text&&this.baseState!==State.InSpecialTag?this.cbs.onattribdata(f,S):this.cbs.ontext(f,S)}emitCodePoint(f){this.baseState!==State.Text&&this.baseState!==State.InSpecialTag?this.cbs.onattribentity(f):this.cbs.ontextentity(f)}}const formTags=new Set(["input","option","optgroup","select","button","datalist","textarea"]),pTag=new Set(["p"]),tableSectionTags=new Set(["thead","tbody"]),ddtTags=new Set(["dd","dt"]),rtpTags=new Set(["rt","rp"]),openImpliesClose=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["li",new Set(["li"])],["p",pTag],["h1",pTag],["h2",pTag],["h3",pTag],["h4",pTag],["h5",pTag],["h6",pTag],["select",formTags],["input",formTags],["output",formTags],["button",formTags],["datalist",formTags],["textarea",formTags],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",ddtTags],["dt",ddtTags],["address",pTag],["article",pTag],["aside",pTag],["blockquote",pTag],["details",pTag],["div",pTag],["dl",pTag],["fieldset",pTag],["figcaption",pTag],["figure",pTag],["footer",pTag],["form",pTag],["header",pTag],["hr",pTag],["main",pTag],["nav",pTag],["ol",pTag],["pre",pTag],["section",pTag],["table",pTag],["ul",pTag],["rt",rtpTags],["rp",rtpTags],["tbody",tableSectionTags],["tfoot",tableSectionTags]]),voidElements=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),foreignContextElements=new Set(["math","svg"]),htmlIntegrationElements=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),reNameEnd=/\s|\//;class Parser{constructor(f,S={}){var d,R,g,O,J;this.options=S,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.foreignContext=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=f!=null?f:{},this.lowerCaseTagNames=(d=S.lowerCaseTags)!==null&&d!==void 0?d:!S.xmlMode,this.lowerCaseAttributeNames=(R=S.lowerCaseAttributeNames)!==null&&R!==void 0?R:!S.xmlMode,this.tokenizer=new((g=S.Tokenizer)!==null&&g!==void 0?g:Tokenizer$1)(this.options,this),(J=(O=this.cbs).onparserinit)===null||J===void 0||J.call(O,this)}ontext(f,S){var d,R;const g=this.getSlice(f,S);this.endIndex=S-1,(R=(d=this.cbs).ontext)===null||R===void 0||R.call(d,g),this.startIndex=S}ontextentity(f){var S,d;const R=this.tokenizer.getSectionStart();this.endIndex=R-1,(d=(S=this.cbs).ontext)===null||d===void 0||d.call(S,fromCodePoint(f)),this.startIndex=R}isVoidElement(f){return!this.options.xmlMode&&voidElements.has(f)}onopentagname(f,S){this.endIndex=S;let d=this.getSlice(f,S);this.lowerCaseTagNames&&(d=d.toLowerCase()),this.emitOpenTag(d)}emitOpenTag(f){var S,d,R,g;this.openTagStart=this.startIndex,this.tagname=f;const O=!this.options.xmlMode&&openImpliesClose.get(f);if(O)for(;this.stack.length>0&&O.has(this.stack[this.stack.length-1]);){const J=this.stack.pop();(d=(S=this.cbs).onclosetag)===null||d===void 0||d.call(S,J,!0)}this.isVoidElement(f)||(this.stack.push(f),foreignContextElements.has(f)?this.foreignContext.push(!0):htmlIntegrationElements.has(f)&&this.foreignContext.push(!1)),(g=(R=this.cbs).onopentagname)===null||g===void 0||g.call(R,f),this.cbs.onopentag&&(this.attribs={})}endOpenTag(f){var S,d;this.startIndex=this.openTagStart,this.attribs&&((d=(S=this.cbs).onopentag)===null||d===void 0||d.call(S,this.tagname,this.attribs,f),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""}onopentagend(f){this.endIndex=f,this.endOpenTag(!1),this.startIndex=f+1}onclosetag(f,S){var d,R,g,O,J,a;this.endIndex=S;let se=this.getSlice(f,S);if(this.lowerCaseTagNames&&(se=se.toLowerCase()),(foreignContextElements.has(se)||htmlIntegrationElements.has(se))&&this.foreignContext.pop(),this.isVoidElement(se))!this.options.xmlMode&&se==="br"&&((R=(d=this.cbs).onopentagname)===null||R===void 0||R.call(d,"br"),(O=(g=this.cbs).onopentag)===null||O===void 0||O.call(g,"br",{},!0),(a=(J=this.cbs).onclosetag)===null||a===void 0||a.call(J,"br",!1));else{const H=this.stack.lastIndexOf(se);if(H!==-1)if(this.cbs.onclosetag){let ee=this.stack.length-H;for(;ee--;)this.cbs.onclosetag(this.stack.pop(),ee!==0)}else this.stack.length=H;else!this.options.xmlMode&&se==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=S+1}onselfclosingtag(f){this.endIndex=f,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=f+1):this.onopentagend(f)}closeCurrentTag(f){var S,d;const R=this.tagname;this.endOpenTag(f),this.stack[this.stack.length-1]===R&&((d=(S=this.cbs).onclosetag)===null||d===void 0||d.call(S,R,!f),this.stack.pop())}onattribname(f,S){this.startIndex=f;const d=this.getSlice(f,S);this.attribname=this.lowerCaseAttributeNames?d.toLowerCase():d}onattribdata(f,S){this.attribvalue+=this.getSlice(f,S)}onattribentity(f){this.attribvalue+=fromCodePoint(f)}onattribend(f,S){var d,R;this.endIndex=S,(R=(d=this.cbs).onattribute)===null||R===void 0||R.call(d,this.attribname,this.attribvalue,f===QuoteType.Double?'"':f===QuoteType.Single?"'":f===QuoteType.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""}getInstructionName(f){const S=f.search(reNameEnd);let d=S<0?f:f.substr(0,S);return this.lowerCaseTagNames&&(d=d.toLowerCase()),d}ondeclaration(f,S){this.endIndex=S;const d=this.getSlice(f,S);if(this.cbs.onprocessinginstruction){const R=this.getInstructionName(d);this.cbs.onprocessinginstruction(`!${R}`,`!${d}`)}this.startIndex=S+1}onprocessinginstruction(f,S){this.endIndex=S;const d=this.getSlice(f,S);if(this.cbs.onprocessinginstruction){const R=this.getInstructionName(d);this.cbs.onprocessinginstruction(`?${R}`,`?${d}`)}this.startIndex=S+1}oncomment(f,S,d){var R,g,O,J;this.endIndex=S,(g=(R=this.cbs).oncomment)===null||g===void 0||g.call(R,this.getSlice(f,S-d)),(J=(O=this.cbs).oncommentend)===null||J===void 0||J.call(O),this.startIndex=S+1}oncdata(f,S,d){var R,g,O,J,a,se,H,ee,ie,m;this.endIndex=S;const u=this.getSlice(f,S-d);this.options.xmlMode||this.options.recognizeCDATA?((g=(R=this.cbs).oncdatastart)===null||g===void 0||g.call(R),(J=(O=this.cbs).ontext)===null||J===void 0||J.call(O,u),(se=(a=this.cbs).oncdataend)===null||se===void 0||se.call(a)):((ee=(H=this.cbs).oncomment)===null||ee===void 0||ee.call(H,`[CDATA[${u}]]`),(m=(ie=this.cbs).oncommentend)===null||m===void 0||m.call(ie)),this.startIndex=S+1}onend(){var f,S;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(let d=this.stack.length;d>0;this.cbs.onclosetag(this.stack[--d],!0));}(S=(f=this.cbs).onend)===null||S===void 0||S.call(f)}reset(){var f,S,d,R;(S=(f=this.cbs).onreset)===null||S===void 0||S.call(f),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(R=(d=this.cbs).onparserinit)===null||R===void 0||R.call(d,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1}parseComplete(f){this.reset(),this.end(f)}getSlice(f,S){for(;f-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();let d=this.buffers[0].slice(f-this.bufferOffset,S-this.bufferOffset);for(;S-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),d+=this.buffers[0].slice(0,S-this.bufferOffset);return d}shiftBuffer(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()}write(f){var S,d;if(this.ended){(d=(S=this.cbs).onerror)===null||d===void 0||d.call(S,new Error(".write() after done!"));return}this.buffers.push(f),this.tokenizer.running&&(this.tokenizer.write(f),this.writeIndex++)}end(f){var S,d;if(this.ended){(d=(S=this.cbs).onerror)===null||d===void 0||d.call(S,new Error(".end() after done!"));return}f&&this.write(f),this.ended=!0,this.tokenizer.end()}pause(){this.tokenizer.pause()}resume(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.length;)this.tokenizer.write(this.buffers[this.writeIndex++]);this.ended&&this.tokenizer.end()}parseChunk(f){this.write(f)}done(f){this.end(f)}}const xmlReplacer=/["&'<>$\x80-\uFFFF]/g,xmlCodeMap=new Map([[34,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]),getCodePoint=String.prototype.codePointAt!=null?(p,f)=>p.codePointAt(f):(p,f)=>(p.charCodeAt(f)&64512)===55296?(p.charCodeAt(f)-55296)*1024+p.charCodeAt(f+1)-56320+65536:p.charCodeAt(f);function encodeXML(p){let f="",S=0,d;for(;(d=xmlReplacer.exec(p))!==null;){const R=d.index,g=p.charCodeAt(R),O=xmlCodeMap.get(g);O!==void 0?(f+=p.substring(S,R)+O,S=R+1):(f+=`${p.substring(S,R)}&#x${getCodePoint(p,R).toString(16)};`,S=xmlReplacer.lastIndex+=Number((g&64512)===55296))}return f+p.substr(S)}function getEscaper(p,f){return function(d){let R,g=0,O="";for(;R=p.exec(d);)g!==R.index&&(O+=d.substring(g,R.index)),O+=f.get(R[0].charCodeAt(0)),g=R.index+1;return O+d.substring(g)}}const escapeAttribute=getEscaper(/["&\u00A0]/g,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]])),escapeText=getEscaper(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]])),elementNames=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(p=>[p.toLowerCase(),p])),attributeNames=new Map(["definitionURL","attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(p=>[p.toLowerCase(),p])),unencodedElements=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function replaceQuotes(p){return p.replace(/"/g,"&quot;")}function formatAttributes(p,f){var S;if(!p)return;const d=((S=f.encodeEntities)!==null&&S!==void 0?S:f.decodeEntities)===!1?replaceQuotes:f.xmlMode||f.encodeEntities!=="utf8"?encodeXML:escapeAttribute;return Object.keys(p).map(R=>{var g,O;const J=(g=p[R])!==null&&g!==void 0?g:"";return f.xmlMode==="foreign"&&(R=(O=attributeNames.get(R))!==null&&O!==void 0?O:R),!f.emptyAttrs&&!f.xmlMode&&J===""?R:`${R}="${d(J)}"`}).join(" ")}const singleTag=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function render(p,f={}){const S="length"in p?p:[p];let d="";for(let R=0;R<S.length;R++)d+=renderNode(S[R],f);return d}function renderNode(p,f){switch(p.type){case Root:return render(p.children,f);case Doctype:case Directive:return renderDirective(p);case Comment$1:return renderComment(p);case CDATA$1:return renderCdata(p);case Script:case Style:case Tag:return renderTag(p,f);case Text$1:return renderText(p,f)}}const foreignModeIntegrationPoints=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),foreignElements=new Set(["svg","math"]);function renderTag(p,f){var S;f.xmlMode==="foreign"&&(p.name=(S=elementNames.get(p.name))!==null&&S!==void 0?S:p.name,p.parent&&foreignModeIntegrationPoints.has(p.parent.name)&&(f={...f,xmlMode:!1})),!f.xmlMode&&foreignElements.has(p.name)&&(f={...f,xmlMode:"foreign"});let d=`<${p.name}`;const R=formatAttributes(p.attribs,f);return R&&(d+=` ${R}`),p.children.length===0&&(f.xmlMode?f.selfClosingTags!==!1:f.selfClosingTags&&singleTag.has(p.name))?(f.xmlMode||(d+=" "),d+="/>"):(d+=">",p.children.length>0&&(d+=render(p.children,f)),(f.xmlMode||!singleTag.has(p.name))&&(d+=`</${p.name}>`)),d}function renderDirective(p){return`<${p.data}>`}function renderText(p,f){var S;let d=p.data||"";return((S=f.encodeEntities)!==null&&S!==void 0?S:f.decodeEntities)!==!1&&!(!f.xmlMode&&p.parent&&unencodedElements.has(p.parent.name))&&(d=f.xmlMode||f.encodeEntities!=="utf8"?encodeXML(d):escapeText(d)),d}function renderCdata(p){return`<![CDATA[${p.children[0].data}]]>`}function renderComment(p){return`<!--${p.data}-->`}function parseDocument(p,f){const S=new DomHandler(void 0,f);return new Parser(S,f).end(p),S.root}var commonjsGlobal=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function getAugmentedNamespace(p){if(p.__esModule)return p;var f=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(p).forEach(function(S){var d=Object.getOwnPropertyDescriptor(p,S);Object.defineProperty(f,S,d.get?d:{enumerable:!0,get:function(){return p[S]}})}),f}function commonjsRequire(p){throw new Error('Could not dynamically require "'+p+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var isMergeableObject=function(f){return isNonNullObject(f)&&!isSpecial(f)};function isNonNullObject(p){return!!p&&typeof p=="object"}function isSpecial(p){var f=Object.prototype.toString.call(p);return f==="[object RegExp]"||f==="[object Date]"||isReactElement(p)}var canUseSymbol=typeof Symbol=="function"&&Symbol.for,REACT_ELEMENT_TYPE=canUseSymbol?Symbol.for("react.element"):60103;function isReactElement(p){return p.$$typeof===REACT_ELEMENT_TYPE}function emptyTarget(p){return Array.isArray(p)?[]:{}}function cloneUnlessOtherwiseSpecified(p,f){return f.clone!==!1&&f.isMergeableObject(p)?deepmerge(emptyTarget(p),p,f):p}function defaultArrayMerge(p,f,S){return p.concat(f).map(function(d){return cloneUnlessOtherwiseSpecified(d,S)})}function getMergeFunction(p,f){if(!f.customMerge)return deepmerge;var S=f.customMerge(p);return typeof S=="function"?S:deepmerge}function getEnumerableOwnPropertySymbols(p){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(p).filter(function(f){return Object.propertyIsEnumerable.call(p,f)}):[]}function getKeys(p){return Object.keys(p).concat(getEnumerableOwnPropertySymbols(p))}function propertyIsOnObject(p,f){try{return f in p}catch{return!1}}function propertyIsUnsafe(p,f){return propertyIsOnObject(p,f)&&!(Object.hasOwnProperty.call(p,f)&&Object.propertyIsEnumerable.call(p,f))}function mergeObject(p,f,S){var d={};return S.isMergeableObject(p)&&getKeys(p).forEach(function(R){d[R]=cloneUnlessOtherwiseSpecified(p[R],S)}),getKeys(f).forEach(function(R){propertyIsUnsafe(p,R)||(propertyIsOnObject(p,R)&&S.isMergeableObject(f[R])?d[R]=getMergeFunction(R,S)(p[R],f[R],S):d[R]=cloneUnlessOtherwiseSpecified(f[R],S))}),d}function deepmerge(p,f,S){S=S||{},S.arrayMerge=S.arrayMerge||defaultArrayMerge,S.isMergeableObject=S.isMergeableObject||isMergeableObject,S.cloneUnlessOtherwiseSpecified=cloneUnlessOtherwiseSpecified;var d=Array.isArray(f),R=Array.isArray(p),g=d===R;return g?d?S.arrayMerge(p,f,S):mergeObject(p,f,S):cloneUnlessOtherwiseSpecified(f,S)}deepmerge.all=function(f,S){if(!Array.isArray(f))throw new Error("first argument should be an array");return f.reduce(function(d,R){return deepmerge(d,R,S)},{})};var deepmerge_1=deepmerge,cjs=deepmerge_1;function limitedDepthRecursive(p,f,S=()=>{}){if(p===void 0){const d=function(...R){return f(d,...R)};return d}return p>=0?function(...d){return f(limitedDepthRecursive(p-1,f,S),...d)}:S}function trimCharacter(p,f){let S=0,d=p.length;for(;S<d&&p[S]===f;)++S;for(;d>S&&p[d-1]===f;)--d;return S>0||d<p.length?p.substring(S,d):p}function trimCharacterEnd(p,f){let S=p.length;for(;S>0&&p[S-1]===f;)--S;return S<p.length?p.substring(0,S):p}function unicodeEscape(p){return p.replace(/[\s\S]/g,f=>"\\u"+f.charCodeAt().toString(16).padStart(4,"0"))}function mergeDuplicatesPreferLast(p,f){const S=new Map;for(let d=p.length;d-- >0;){const R=p[d],g=f(R);S.set(g,S.has(g)?cjs(R,S.get(g),{arrayMerge:overwriteMerge$1}):R)}return[...S.values()].reverse()}const overwriteMerge$1=(p,f,S)=>[...f];function get(p,f){for(const S of f){if(!p)return;p=p[S]}return p}function numberToLetterSequence(p,f="a",S=26){const d=[];do p-=1,d.push(p%S),p=p/S>>0;while(p>0);const R=f.charCodeAt(0);return d.reverse().map(g=>String.fromCharCode(R+g)).join("")}const I=["I","X","C","M"],V=["V","L","D"];function numberToRoman(p){return[...p+""].map(f=>+f).reverse().map((f,S)=>f%5<4?(f<5?"":V[S])+I[S].repeat(f%5):I[S]+(f<5?V[S]:I[S+1])).reverse().join("")}class InlineTextBuilder{constructor(f,S=void 0){this.lines=[],this.nextLineWords=[],this.maxLineLength=S||f.wordwrap||Number.MAX_VALUE,this.nextLineAvailableChars=this.maxLineLength,this.wrapCharacters=get(f,["longWordSplit","wrapCharacters"])||[],this.forceWrapOnLimit=get(f,["longWordSplit","forceWrapOnLimit"])||!1,this.stashedSpace=!1,this.wordBreakOpportunity=!1}pushWord(f,S=!1){this.nextLineAvailableChars<=0&&!S&&this.startNewLine();const d=this.nextLineWords.length===0,R=f.length+(d?0:1);if(R<=this.nextLineAvailableChars||S)this.nextLineWords.push(f),this.nextLineAvailableChars-=R;else{const[g,...O]=this.splitLongWord(f);d||this.startNewLine(),this.nextLineWords.push(g),this.nextLineAvailableChars-=g.length;for(const J of O)this.startNewLine(),this.nextLineWords.push(J),this.nextLineAvailableChars-=J.length}}popWord(){const f=this.nextLineWords.pop();if(f!==void 0){const S=this.nextLineWords.length===0,d=f.length+(S?0:1);this.nextLineAvailableChars+=d}return f}concatWord(f,S=!1){if(this.wordBreakOpportunity&&f.length>this.nextLineAvailableChars)this.pushWord(f,S),this.wordBreakOpportunity=!1;else{const d=this.popWord();this.pushWord(d?d.concat(f):f,S)}}startNewLine(f=1){this.lines.push(this.nextLineWords),f>1&&this.lines.push(...Array.from({length:f-1},()=>[])),this.nextLineWords=[],this.nextLineAvailableChars=this.maxLineLength}isEmpty(){return this.lines.length===0&&this.nextLineWords.length===0}clear(){this.lines.length=0,this.nextLineWords.length=0,this.nextLineAvailableChars=this.maxLineLength}toString(){return[...this.lines,this.nextLineWords].map(f=>f.join(" ")).join(`
5
- `)}splitLongWord(f){const S=[];let d=0;for(;f.length>this.maxLineLength;){const R=f.substring(0,this.maxLineLength),g=f.substring(this.maxLineLength),O=R.lastIndexOf(this.wrapCharacters[d]);if(O>-1)f=R.substring(O+1)+g,S.push(R.substring(0,O+1));else if(d++,d<this.wrapCharacters.length)f=R+g;else{if(this.forceWrapOnLimit){if(S.push(R),f=g,f.length>this.maxLineLength)continue}else f=R+g;break}}return S.push(f),S}}class StackItem{constructor(f=null){this.next=f}getRoot(){return this.next?this.next:this}}class BlockStackItem extends StackItem{constructor(f,S=null,d=1,R=void 0){super(S),this.leadingLineBreaks=d,this.inlineTextBuilder=new InlineTextBuilder(f,R),this.rawText="",this.stashedLineBreaks=0,this.isPre=S&&S.isPre,this.isNoWrap=S&&S.isNoWrap}}class ListStackItem extends BlockStackItem{constructor(f,S=null,{interRowLineBreaks:d=1,leadingLineBreaks:R=2,maxLineLength:g=void 0,maxPrefixLength:O=0,prefixAlign:J="left"}={}){super(f,S,R,g),this.maxPrefixLength=O,this.prefixAlign=J,this.interRowLineBreaks=d}}class ListItemStackItem extends BlockStackItem{constructor(f,S=null,{leadingLineBreaks:d=1,maxLineLength:R=void 0,prefix:g=""}={}){super(f,S,d,R),this.prefix=g}}class TableStackItem extends StackItem{constructor(f=null){super(f),this.rows=[],this.isPre=f&&f.isPre,this.isNoWrap=f&&f.isNoWrap}}class TableRowStackItem extends StackItem{constructor(f=null){super(f),this.cells=[],this.isPre=f&&f.isPre,this.isNoWrap=f&&f.isNoWrap}}class TableCellStackItem extends StackItem{constructor(f,S=null,d=void 0){super(S),this.inlineTextBuilder=new InlineTextBuilder(f,d),this.rawText="",this.stashedLineBreaks=0,this.isPre=S&&S.isPre,this.isNoWrap=S&&S.isNoWrap}}class TransformerStackItem extends StackItem{constructor(f=null,S){super(f),this.transform=S}}function charactersToCodes(p){return[...p].map(f=>"\\u"+f.charCodeAt(0).toString(16).padStart(4,"0")).join("")}class WhitespaceProcessor{constructor(f){this.whitespaceChars=f.preserveNewlines?f.whitespaceCharacters.replace(/\n/g,""):f.whitespaceCharacters;const S=charactersToCodes(this.whitespaceChars);if(this.leadingWhitespaceRe=new RegExp(`^[${S}]`),this.trailingWhitespaceRe=new RegExp(`[${S}]$`),this.allWhitespaceOrEmptyRe=new RegExp(`^[${S}]*$`),this.newlineOrNonWhitespaceRe=new RegExp(`(\\n|[^\\n${S}])`,"g"),this.newlineOrNonNewlineStringRe=new RegExp("(\\n|[^\\n]+)","g"),f.preserveNewlines){const d=new RegExp(`\\n|[^\\n${S}]+`,"gm");this.shrinkWrapAdd=function(R,g,O=a=>a,J=!1){if(!R)return;const a=g.stashedSpace;let se=!1,H=d.exec(R);if(H)for(se=!0,H[0]===`
6
- `?g.startNewLine():a||this.testLeadingWhitespace(R)?g.pushWord(O(H[0]),J):g.concatWord(O(H[0]),J);(H=d.exec(R))!==null;)H[0]===`
7
- `?g.startNewLine():g.pushWord(O(H[0]),J);g.stashedSpace=a&&!se||this.testTrailingWhitespace(R)}}else{const d=new RegExp(`[^${S}]+`,"g");this.shrinkWrapAdd=function(R,g,O=a=>a,J=!1){if(!R)return;const a=g.stashedSpace;let se=!1,H=d.exec(R);if(H)for(se=!0,a||this.testLeadingWhitespace(R)?g.pushWord(O(H[0]),J):g.concatWord(O(H[0]),J);(H=d.exec(R))!==null;)g.pushWord(O(H[0]),J);g.stashedSpace=a&&!se||this.testTrailingWhitespace(R)}}}addLiteral(f,S,d=!0){if(!f)return;const R=S.stashedSpace;let g=!1,O=this.newlineOrNonNewlineStringRe.exec(f);if(O)for(g=!0,O[0]===`
8
- `?S.startNewLine():R?S.pushWord(O[0],d):S.concatWord(O[0],d);(O=this.newlineOrNonNewlineStringRe.exec(f))!==null;)O[0]===`
9
- `?S.startNewLine():S.pushWord(O[0],d);S.stashedSpace=R&&!g}testLeadingWhitespace(f){return this.leadingWhitespaceRe.test(f)}testTrailingWhitespace(f){return this.trailingWhitespaceRe.test(f)}testContainsWords(f){return!this.allWhitespaceOrEmptyRe.test(f)}countNewlinesNoWords(f){this.newlineOrNonWhitespaceRe.lastIndex=0;let S=0,d;for(;(d=this.newlineOrNonWhitespaceRe.exec(f))!==null;)if(d[0]===`
10
- `)S++;else return 0;return S}}class BlockTextBuilder{constructor(f,S,d=void 0){this.options=f,this.picker=S,this.metadata=d,this.whitespaceProcessor=new WhitespaceProcessor(f),this._stackItem=new BlockStackItem(f),this._wordTransformer=void 0}pushWordTransform(f){this._wordTransformer=new TransformerStackItem(this._wordTransformer,f)}popWordTransform(){if(!this._wordTransformer)return;const f=this._wordTransformer.transform;return this._wordTransformer=this._wordTransformer.next,f}startNoWrap(){this._stackItem.isNoWrap=!0}stopNoWrap(){this._stackItem.isNoWrap=!1}_getCombinedWordTransformer(){const f=this._wordTransformer?d=>applyTransformer(d,this._wordTransformer):void 0,S=this.options.encodeCharacters;return f?S?d=>S(f(d)):f:S}_popStackItem(){const f=this._stackItem;return this._stackItem=f.next,f}addLineBreak(){(this._stackItem instanceof BlockStackItem||this._stackItem instanceof ListItemStackItem||this._stackItem instanceof TableCellStackItem)&&(this._stackItem.isPre?this._stackItem.rawText+=`
11
- `:this._stackItem.inlineTextBuilder.startNewLine())}addWordBreakOpportunity(){(this._stackItem instanceof BlockStackItem||this._stackItem instanceof ListItemStackItem||this._stackItem instanceof TableCellStackItem)&&(this._stackItem.inlineTextBuilder.wordBreakOpportunity=!0)}addInline(f,{noWordTransform:S=!1}={}){if(this._stackItem instanceof BlockStackItem||this._stackItem instanceof ListItemStackItem||this._stackItem instanceof TableCellStackItem){if(this._stackItem.isPre){this._stackItem.rawText+=f;return}if(!(f.length===0||this._stackItem.stashedLineBreaks&&!this.whitespaceProcessor.testContainsWords(f))){if(this.options.preserveNewlines){const d=this.whitespaceProcessor.countNewlinesNoWords(f);if(d>0){this._stackItem.inlineTextBuilder.startNewLine(d);return}}this._stackItem.stashedLineBreaks&&this._stackItem.inlineTextBuilder.startNewLine(this._stackItem.stashedLineBreaks),this.whitespaceProcessor.shrinkWrapAdd(f,this._stackItem.inlineTextBuilder,S?void 0:this._getCombinedWordTransformer(),this._stackItem.isNoWrap),this._stackItem.stashedLineBreaks=0}}}addLiteral(f){if((this._stackItem instanceof BlockStackItem||this._stackItem instanceof ListItemStackItem||this._stackItem instanceof TableCellStackItem)&&f.length!==0){if(this._stackItem.isPre){this._stackItem.rawText+=f;return}this._stackItem.stashedLineBreaks&&this._stackItem.inlineTextBuilder.startNewLine(this._stackItem.stashedLineBreaks),this.whitespaceProcessor.addLiteral(f,this._stackItem.inlineTextBuilder,this._stackItem.isNoWrap),this._stackItem.stashedLineBreaks=0}}openBlock({leadingLineBreaks:f=1,reservedLineLength:S=0,isPre:d=!1}={}){const R=Math.max(20,this._stackItem.inlineTextBuilder.maxLineLength-S);this._stackItem=new BlockStackItem(this.options,this._stackItem,f,R),d&&(this._stackItem.isPre=!0)}closeBlock({trailingLineBreaks:f=1,blockTransform:S=void 0}={}){const d=this._popStackItem(),R=S?S(getText(d)):getText(d);addText(this._stackItem,R,d.leadingLineBreaks,Math.max(d.stashedLineBreaks,f))}openList({maxPrefixLength:f=0,prefixAlign:S="left",interRowLineBreaks:d=1,leadingLineBreaks:R=2}={}){this._stackItem=new ListStackItem(this.options,this._stackItem,{interRowLineBreaks:d,leadingLineBreaks:R,maxLineLength:this._stackItem.inlineTextBuilder.maxLineLength,maxPrefixLength:f,prefixAlign:S})}openListItem({prefix:f=""}={}){if(!(this._stackItem instanceof ListStackItem))throw new Error("Can't add a list item to something that is not a list! Check the formatter.");const S=this._stackItem,d=Math.max(f.length,S.maxPrefixLength),R=Math.max(20,S.inlineTextBuilder.maxLineLength-d);this._stackItem=new ListItemStackItem(this.options,S,{prefix:f,maxLineLength:R,leadingLineBreaks:S.interRowLineBreaks})}closeListItem(){const f=this._popStackItem(),S=f.next,d=Math.max(f.prefix.length,S.maxPrefixLength),R=`
12
- `+" ".repeat(d),O=(S.prefixAlign==="right"?f.prefix.padStart(d):f.prefix.padEnd(d))+getText(f).replace(/\n/g,R);addText(S,O,f.leadingLineBreaks,Math.max(f.stashedLineBreaks,S.interRowLineBreaks))}closeList({trailingLineBreaks:f=2}={}){const S=this._popStackItem(),d=getText(S);d&&addText(this._stackItem,d,S.leadingLineBreaks,f)}openTable(){this._stackItem=new TableStackItem(this._stackItem)}openTableRow(){if(!(this._stackItem instanceof TableStackItem))throw new Error("Can't add a table row to something that is not a table! Check the formatter.");this._stackItem=new TableRowStackItem(this._stackItem)}openTableCell({maxColumnWidth:f=void 0}={}){if(!(this._stackItem instanceof TableRowStackItem))throw new Error("Can't add a table cell to something that is not a table row! Check the formatter.");this._stackItem=new TableCellStackItem(this.options,this._stackItem,f)}closeTableCell({colspan:f=1,rowspan:S=1}={}){const d=this._popStackItem(),R=trimCharacter(getText(d),`
13
- `);d.next.cells.push({colspan:f,rowspan:S,text:R})}closeTableRow(){const f=this._popStackItem();f.next.rows.push(f.cells)}closeTable({tableToString:f,leadingLineBreaks:S=2,trailingLineBreaks:d=2}){const R=this._popStackItem(),g=f(R.rows);g&&addText(this._stackItem,g,S,d)}toString(){return getText(this._stackItem.getRoot())}}function getText(p){if(!(p instanceof BlockStackItem||p instanceof ListItemStackItem||p instanceof TableCellStackItem))throw new Error("Only blocks, list items and table cells can be requested for text contents.");return p.inlineTextBuilder.isEmpty()?p.rawText:p.rawText+p.inlineTextBuilder.toString()}function addText(p,f,S,d){if(!(p instanceof BlockStackItem||p instanceof ListItemStackItem||p instanceof TableCellStackItem))throw new Error("Only blocks, list items and table cells can contain text.");const R=getText(p),g=Math.max(p.stashedLineBreaks,S);p.inlineTextBuilder.clear(),R?p.rawText=R+`
14
- `.repeat(g)+f:(p.rawText=f,p.leadingLineBreaks=g),p.stashedLineBreaks=d}function applyTransformer(p,f){return f?applyTransformer(f.transform(p),f.next):p}function compile$1(p={}){const f=p.selectors.filter(O=>!O.format);if(f.length)throw new Error("Following selectors have no specified format: "+f.map(O=>`\`${O.selector}\``).join(", "));const S=new DecisionTree(p.selectors.map(O=>[O.selector,O])).build(hp2Builder);typeof p.encodeCharacters!="function"&&(p.encodeCharacters=makeReplacerFromDict(p.encodeCharacters));const d=new DecisionTree(p.baseElements.selectors.map((O,J)=>[O,J+1])).build(hp2Builder);function R(O){return findBases(O,p,d)}const g=limitedDepthRecursive(p.limits.maxDepth,recursiveWalk,function(O,J){J.addInline(p.limits.ellipsis||"")});return function(O,J=void 0){return process$1(O,J,p,S,R,g)}}function process$1(p,f,S,d,R,g){const O=S.limits.maxInputLength;O&&p&&p.length>O&&(console.warn(`Input length ${p.length} is above allowed limit of ${O}. Truncating without ellipsis.`),p=p.substring(0,O));const J=parseDocument(p,{decodeEntities:S.decodeEntities}),a=R(J.children),se=new BlockTextBuilder(S,d,f);return g(a,se),se.toString()}function findBases(p,f,S){const d=[];function R(O,J){J=J.slice(0,f.limits.maxChildNodes);for(const a of J){if(a.type!=="tag")continue;const se=S.pick1(a);if(se>0?d.push({selectorIndex:se,element:a}):a.children&&O(a.children),d.length>=f.limits.maxBaseElements)return}}return limitedDepthRecursive(f.limits.maxDepth,R)(p),f.baseElements.orderBy!=="occurrence"&&d.sort((O,J)=>O.selectorIndex-J.selectorIndex),f.baseElements.returnDomByDefault&&d.length===0?p:d.map(O=>O.element)}function recursiveWalk(p,f,S){if(!f)return;const d=S.options;f.length>d.limits.maxChildNodes&&(f=f.slice(0,d.limits.maxChildNodes),f.push({data:d.limits.ellipsis,type:"text"}));for(const g of f)switch(g.type){case"text":{S.addInline(g.data);break}case"tag":{const O=S.picker.pick1(g),J=d.formatters[O.format];J(g,p,S,O.options||{});break}}}function makeReplacerFromDict(p){if(!p||Object.keys(p).length===0)return;const f=Object.entries(p).filter(([,g])=>g!==!1),S=new RegExp(f.map(([g])=>`(${unicodeEscape([...g][0])})`).join("|"),"g"),d=f.map(([,g])=>g),R=(g,...O)=>d[O.findIndex(J=>J)];return g=>g.replace(S,R)}function formatSkip(p,f,S,d){}function formatInlineString(p,f,S,d){S.addLiteral(d.string||"")}function formatBlockString(p,f,S,d){S.openBlock({leadingLineBreaks:d.leadingLineBreaks||2}),S.addLiteral(d.string||""),S.closeBlock({trailingLineBreaks:d.trailingLineBreaks||2})}function formatInline(p,f,S,d){f(p.children,S)}function formatBlock$1(p,f,S,d){S.openBlock({leadingLineBreaks:d.leadingLineBreaks||2}),f(p.children,S),S.closeBlock({trailingLineBreaks:d.trailingLineBreaks||2})}function renderOpenTag(p){const f=p.attribs&&p.attribs.length?" "+Object.entries(p.attribs).map(([S,d])=>d===""?S:`${S}=${d.replace(/"/g,"&quot;")}`).join(" "):"";return`<${p.name}${f}>`}function renderCloseTag(p){return`</${p.name}>`}function formatInlineTag(p,f,S,d){S.startNoWrap(),S.addLiteral(renderOpenTag(p)),S.stopNoWrap(),f(p.children,S),S.startNoWrap(),S.addLiteral(renderCloseTag(p)),S.stopNoWrap()}function formatBlockTag(p,f,S,d){S.openBlock({leadingLineBreaks:d.leadingLineBreaks||2}),S.startNoWrap(),S.addLiteral(renderOpenTag(p)),S.stopNoWrap(),f(p.children,S),S.startNoWrap(),S.addLiteral(renderCloseTag(p)),S.stopNoWrap(),S.closeBlock({trailingLineBreaks:d.trailingLineBreaks||2})}function formatInlineHtml(p,f,S,d){S.startNoWrap(),S.addLiteral(render(p,{decodeEntities:S.options.decodeEntities})),S.stopNoWrap()}function formatBlockHtml(p,f,S,d){S.openBlock({leadingLineBreaks:d.leadingLineBreaks||2}),S.startNoWrap(),S.addLiteral(render(p,{decodeEntities:S.options.decodeEntities})),S.stopNoWrap(),S.closeBlock({trailingLineBreaks:d.trailingLineBreaks||2})}function formatInlineSurround(p,f,S,d){S.addLiteral(d.prefix||""),f(p.children,S),S.addLiteral(d.suffix||"")}var genericFormatters=Object.freeze({__proto__:null,block:formatBlock$1,blockHtml:formatBlockHtml,blockString:formatBlockString,blockTag:formatBlockTag,inline:formatInline,inlineHtml:formatInlineHtml,inlineString:formatInlineString,inlineSurround:formatInlineSurround,inlineTag:formatInlineTag,skip:formatSkip});function getRow(p,f){return p[f]||(p[f]=[]),p[f]}function findFirstVacantIndex(p,f=0){for(;p[f];)f++;return f}function transposeInPlace(p,f){for(let S=0;S<f;S++){const d=getRow(p,S);for(let R=0;R<S;R++){const g=getRow(p,R);if(d[R]||g[S]){const O=d[R];d[R]=g[S],g[S]=O}}}}function putCellIntoLayout(p,f,S,d){for(let R=0;R<p.rowspan;R++){const g=getRow(f,S+R);for(let O=0;O<p.colspan;O++)g[d+O]=p}}function getOrInitOffset(p,f){return p[f]===void 0&&(p[f]=f===0?0:1+getOrInitOffset(p,f-1)),p[f]}function updateOffset(p,f,S,d){p[f+S]=Math.max(getOrInitOffset(p,f+S),getOrInitOffset(p,f)+d)}function tableToString(p,f,S){const d=[];let R=0;const g=p.length,O=[0];for(let se=0;se<g;se++){const H=getRow(d,se),ee=p[se];let ie=0;for(let m=0;m<ee.length;m++){const u=ee[m];ie=findFirstVacantIndex(H,ie),putCellIntoLayout(u,d,se,ie),ie+=u.colspan,u.lines=u.text.split(`
15
- `);const Y=u.lines.length;updateOffset(O,se,u.rowspan,Y+f)}R=H.length>R?H.length:R}transposeInPlace(d,g>R?g:R);const J=[],a=[0];for(let se=0;se<R;se++){let H=0,ee;const ie=Math.min(g,d[se].length);for(;H<ie;)if(ee=d[se][H],ee){if(!ee.rendered){let m=0;for(let u=0;u<ee.lines.length;u++){const Y=ee.lines[u],re=O[H]+u;J[re]=(J[re]||"").padEnd(a[se])+Y,m=Y.length>m?Y.length:m}updateOffset(a,se,ee.colspan,m+S),ee.rendered=!0}H+=ee.rowspan}else{const m=O[H];J[m]=J[m]||"",H++}}return J.join(`
16
- `)}function formatLineBreak(p,f,S,d){S.addLineBreak()}function formatWbr(p,f,S,d){S.addWordBreakOpportunity()}function formatHorizontalLine(p,f,S,d){S.openBlock({leadingLineBreaks:d.leadingLineBreaks||2}),S.addInline("-".repeat(d.length||S.options.wordwrap||40)),S.closeBlock({trailingLineBreaks:d.trailingLineBreaks||2})}function formatParagraph(p,f,S,d){S.openBlock({leadingLineBreaks:d.leadingLineBreaks||2}),f(p.children,S),S.closeBlock({trailingLineBreaks:d.trailingLineBreaks||2})}function formatPre(p,f,S,d){S.openBlock({isPre:!0,leadingLineBreaks:d.leadingLineBreaks||2}),f(p.children,S),S.closeBlock({trailingLineBreaks:d.trailingLineBreaks||2})}function formatHeading(p,f,S,d){S.openBlock({leadingLineBreaks:d.leadingLineBreaks||2}),d.uppercase!==!1?(S.pushWordTransform(R=>R.toUpperCase()),f(p.children,S),S.popWordTransform()):f(p.children,S),S.closeBlock({trailingLineBreaks:d.trailingLineBreaks||2})}function formatBlockquote(p,f,S,d){S.openBlock({leadingLineBreaks:d.leadingLineBreaks||2,reservedLineLength:2}),f(p.children,S),S.closeBlock({trailingLineBreaks:d.trailingLineBreaks||2,blockTransform:R=>(d.trimEmptyLines!==!1?trimCharacter(R,`
17
- `):R).split(`
18
- `).map(g=>"> "+g).join(`
19
- `)})}function withBrackets(p,f){if(!f)return p;const S=typeof f[0]=="string"?f[0]:"[",d=typeof f[1]=="string"?f[1]:"]";return S+p+d}function pathRewrite(p,f,S,d,R){const g=typeof f=="function"?f(p,d,R):p;return g[0]==="/"&&S?trimCharacterEnd(S,"/")+g:g}function formatImage(p,f,S,d){const R=p.attribs||{},g=R.alt?R.alt:"",O=R.src?pathRewrite(R.src,d.pathRewrite,d.baseUrl,S.metadata,p):"",J=O?g?g+" "+withBrackets(O,d.linkBrackets):withBrackets(O,d.linkBrackets):g;S.addInline(J,{noWordTransform:!0})}function formatAnchor(p,f,S,d){function R(){if(d.ignoreHref||!p.attribs||!p.attribs.href)return"";let O=p.attribs.href.replace(/^mailto:/,"");return d.noAnchorUrl&&O[0]==="#"?"":(O=pathRewrite(O,d.pathRewrite,d.baseUrl,S.metadata,p),O)}const g=R();if(!g)f(p.children,S);else{let O="";S.pushWordTransform(a=>(a&&(O+=a),a)),f(p.children,S),S.popWordTransform(),d.hideLinkHrefIfSameAsText&&g===O||S.addInline(O?" "+withBrackets(g,d.linkBrackets):g,{noWordTransform:!0})}}function formatList(p,f,S,d,R){const g=get(p,["parent","name"])==="li";let O=0;const J=(p.children||[]).filter(a=>a.type!=="text"||!/^\s*$/.test(a.data)).map(function(a){if(a.name!=="li")return{node:a,prefix:""};const se=g?R().trimStart():R();return se.length>O&&(O=se.length),{node:a,prefix:se}});if(!!J.length){S.openList({interRowLineBreaks:1,leadingLineBreaks:g?1:d.leadingLineBreaks||2,maxPrefixLength:O,prefixAlign:"left"});for(const{node:a,prefix:se}of J)S.openListItem({prefix:se}),f([a],S),S.closeListItem();S.closeList({trailingLineBreaks:g?1:d.trailingLineBreaks||2})}}function formatUnorderedList(p,f,S,d){const R=d.itemPrefix||" * ";return formatList(p,f,S,d,()=>R)}function formatOrderedList(p,f,S,d){let R=Number(p.attribs.start||"1");const g=getOrderedListIndexFunction(p.attribs.type);return formatList(p,f,S,d,()=>" "+g(R++)+". ")}function getOrderedListIndexFunction(p="1"){switch(p){case"a":return f=>numberToLetterSequence(f,"a");case"A":return f=>numberToLetterSequence(f,"A");case"i":return f=>numberToRoman(f).toLowerCase();case"I":return f=>numberToRoman(f);case"1":default:return f=>f.toString()}}function splitClassesAndIds(p){const f=[],S=[];for(const d of p)d.startsWith(".")?f.push(d.substring(1)):d.startsWith("#")&&S.push(d.substring(1));return{classes:f,ids:S}}function isDataTable(p,f){if(f===!0)return!0;if(!p)return!1;const{classes:S,ids:d}=splitClassesAndIds(f),R=(p.class||"").split(" "),g=(p.id||"").split(" ");return R.some(O=>S.includes(O))||g.some(O=>d.includes(O))}function formatTable(p,f,S,d){return isDataTable(p.attribs,S.options.tables)?formatDataTable(p,f,S,d):formatBlock(p,f,S,d)}function formatBlock(p,f,S,d){S.openBlock({leadingLineBreaks:d.leadingLineBreaks}),f(p.children,S),S.closeBlock({trailingLineBreaks:d.trailingLineBreaks})}function formatDataTable(p,f,S,d){S.openTable(),p.children.forEach(g),S.closeTable({tableToString:O=>{var J,a;return tableToString(O,(J=d.rowSpacing)!=null?J:0,(a=d.colSpacing)!=null?a:3)},leadingLineBreaks:d.leadingLineBreaks,trailingLineBreaks:d.trailingLineBreaks});function R(O){const J=+get(O,["attribs","colspan"])||1,a=+get(O,["attribs","rowspan"])||1;S.openTableCell({maxColumnWidth:d.maxColumnWidth}),f(O.children,S),S.closeTableCell({colspan:J,rowspan:a})}function g(O){if(O.type!=="tag")return;const J=d.uppercaseHeaderCells!==!1?a=>{S.pushWordTransform(se=>se.toUpperCase()),R(a),S.popWordTransform()}:R;switch(O.name){case"thead":case"tbody":case"tfoot":case"center":O.children.forEach(g);return;case"tr":{S.openTableRow();for(const a of O.children)if(a.type==="tag")switch(a.name){case"th":{J(a);break}case"td":{R(a);break}}S.closeTableRow();break}}}}var textFormatters=Object.freeze({__proto__:null,anchor:formatAnchor,blockquote:formatBlockquote,dataTable:formatDataTable,heading:formatHeading,horizontalLine:formatHorizontalLine,image:formatImage,lineBreak:formatLineBreak,orderedList:formatOrderedList,paragraph:formatParagraph,pre:formatPre,table:formatTable,unorderedList:formatUnorderedList,wbr:formatWbr});const DEFAULT_OPTIONS={baseElements:{selectors:["body"],orderBy:"selectors",returnDomByDefault:!0},decodeEntities:!0,encodeCharacters:{},formatters:{},limits:{ellipsis:"...",maxBaseElements:void 0,maxChildNodes:void 0,maxDepth:void 0,maxInputLength:1<<24},longWordSplit:{forceWrapOnLimit:!1,wrapCharacters:[]},preserveNewlines:!1,selectors:[{selector:"*",format:"inline"},{selector:"a",format:"anchor",options:{baseUrl:null,hideLinkHrefIfSameAsText:!1,ignoreHref:!1,linkBrackets:["[","]"],noAnchorUrl:!0}},{selector:"article",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"aside",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"blockquote",format:"blockquote",options:{leadingLineBreaks:2,trailingLineBreaks:2,trimEmptyLines:!0}},{selector:"br",format:"lineBreak"},{selector:"div",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"footer",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"form",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"h1",format:"heading",options:{leadingLineBreaks:3,trailingLineBreaks:2,uppercase:!0}},{selector:"h2",format:"heading",options:{leadingLineBreaks:3,trailingLineBreaks:2,uppercase:!0}},{selector:"h3",format:"heading",options:{leadingLineBreaks:3,trailingLineBreaks:2,uppercase:!0}},{selector:"h4",format:"heading",options:{leadingLineBreaks:2,trailingLineBreaks:2,uppercase:!0}},{selector:"h5",format:"heading",options:{leadingLineBreaks:2,trailingLineBreaks:2,uppercase:!0}},{selector:"h6",format:"heading",options:{leadingLineBreaks:2,trailingLineBreaks:2,uppercase:!0}},{selector:"header",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"hr",format:"horizontalLine",options:{leadingLineBreaks:2,length:void 0,trailingLineBreaks:2}},{selector:"img",format:"image",options:{baseUrl:null,linkBrackets:["[","]"]}},{selector:"main",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"nav",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"ol",format:"orderedList",options:{leadingLineBreaks:2,trailingLineBreaks:2}},{selector:"p",format:"paragraph",options:{leadingLineBreaks:2,trailingLineBreaks:2}},{selector:"pre",format:"pre",options:{leadingLineBreaks:2,trailingLineBreaks:2}},{selector:"section",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"table",format:"table",options:{colSpacing:3,leadingLineBreaks:2,maxColumnWidth:60,rowSpacing:0,trailingLineBreaks:2,uppercaseHeaderCells:!0}},{selector:"ul",format:"unorderedList",options:{itemPrefix:" * ",leadingLineBreaks:2,trailingLineBreaks:2}},{selector:"wbr",format:"wbr"}],tables:[],whitespaceCharacters:` \r
20
- \f\u200B`,wordwrap:80},concatMerge=(p,f,S)=>[...p,...f],overwriteMerge=(p,f,S)=>[...f],selectorsMerge=(p,f,S)=>p.some(d=>typeof d=="object")?concatMerge(p,f):overwriteMerge(p,f);function compile(p={}){return p=cjs(DEFAULT_OPTIONS,p,{arrayMerge:overwriteMerge,customMerge:f=>f==="selectors"?selectorsMerge:void 0}),p.formatters=Object.assign({},genericFormatters,textFormatters,p.formatters),p.selectors=mergeDuplicatesPreferLast(p.selectors,f=>f.selector),handleDeprecatedOptions(p),compile$1(p)}function convert(p,f={},S=void 0){return compile(f)(p,S)}function handleDeprecatedOptions(p){if(p.tags){const S=Object.entries(p.tags).map(([d,R])=>({...R,selector:d||"*"}));p.selectors.push(...S),p.selectors=mergeDuplicatesPreferLast(p.selectors,d=>d.selector)}function f(S,d,R){const g=d.pop();for(const O of d){let J=S[O];J||(J={},S[O]=J),S=J}S[g]=R}if(p.baseElement){const S=p.baseElement;f(p,["baseElements","selectors"],Array.isArray(S)?S:[S])}p.returnDomByDefault!==void 0&&f(p,["baseElements","returnDomByDefault"],p.returnDomByDefault);for(const S of p.selectors)S.format==="anchor"&&get(S,["options","noLinkBrackets"])&&f(S,["options","linkBrackets"],!1)}const textEncoder=new TextEncoder,decoders=new Map,base64Chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",base64Lookup=new Uint8Array(256);for(var i$1=0;i$1<base64Chars.length;i$1++)base64Lookup[base64Chars.charCodeAt(i$1)]=i$1;function decodeBase64(p){let f=Math.ceil(p.length/4)*3;const S=p.length;let d=0;p.length%4===3?f--:p.length%4===2?f-=2:p[p.length-1]==="="&&(f--,p[p.length-2]==="="&&f--);const R=new ArrayBuffer(f),g=new Uint8Array(R);for(let O=0;O<S;O+=4){let J=base64Lookup[p.charCodeAt(O)],a=base64Lookup[p.charCodeAt(O+1)],se=base64Lookup[p.charCodeAt(O+2)],H=base64Lookup[p.charCodeAt(O+3)];g[d++]=J<<2|a>>4,g[d++]=(a&15)<<4|se>>2,g[d++]=(se&3)<<6|H&63}return R}function getDecoder(p){if(p=p||"utf8",decoders.has(p))return decoders.get(p);let f;try{f=new TextDecoder(p)}catch(S){if(p==="utf8")throw S;return getDecoder()}return decoders.set(p,f),f}async function blobToArrayBuffer(p){if("arrayBuffer"in p)return await p.arrayBuffer();const f=new FileReader;return new Promise((S,d)=>{f.onload=function(R){S(R.target.result)},f.onerror=function(R){d(f.error)},f.readAsArrayBuffer(p)})}function getHex(p){return p>=48&&p<=57||p>=97&&p<=102||p>=65&&p<=70?String.fromCharCode(p):!1}function decodeWord(p,f,S){let d=p.indexOf("*");d>=0&&(p=p.substr(0,d)),f=f.toUpperCase();let R;if(f==="Q"){S=S.replace(/=\s+([0-9a-fA-F])/g,"=$1").replace(/[_\s]/g," ");let g=textEncoder.encode(S),O=[];for(let a=0,se=g.length;a<se;a++){let H=g[a];if(a<=se-2&&H===61){let ee=getHex(g[a+1]),ie=getHex(g[a+2]);if(ee&&ie){let m=parseInt(ee+ie,16);O.push(m),a+=2;continue}}O.push(H)}R=new ArrayBuffer(O.length);let J=new DataView(R);for(let a=0,se=O.length;a<se;a++)J.setUint8(a,O[a])}else f==="B"?R=decodeBase64(S.replace(/[^a-zA-Z0-9\+\/=]+/g,"")):R=textEncoder.encode(S);return getDecoder(p).decode(R)}function decodeWords(p){return(p||"").toString().replace(/(=\?([^?]+)\?[Bb]\?[^?]*\?=)\s*(?==\?([^?]+)\?[Bb]\?[^?]*\?=)/g,(f,S,d,R)=>d===R?S+"__\0JOIN\0__":f).replace(/(=\?([^?]+)\?[Qq]\?[^?]*\?=)\s*(?==\?([^?]+)\?[Qq]\?[^?]*\?=)/g,(f,S,d,R)=>d===R?S+"__\0JOIN\0__":f).replace(/(\?=)?__\x00JOIN\x00__(=\?([^?]+)\?[QqBb]\?)?/g,"").replace(/(=\?[^?]+\?[QqBb]\?[^?]*\?=)\s+(?==\?[^?]+\?[QqBb]\?[^?]*\?=)/g,"$1").replace(/=\?([\w_\-*]+)\?([QqBb])\?([^?]*)\?=/g,(f,S,d,R)=>decodeWord(S,d,R))}function decodeURIComponentWithCharset(p,f){f=f||"utf-8";let S=[];for(let g=0;g<p.length;g++){let O=p.charAt(g);if(O==="%"&&/^[a-f0-9]{2}/i.test(p.substr(g+1,2))){let J=p.substr(g+1,2);g+=2,S.push(parseInt(J,16))}else if(O.charCodeAt(0)>126){O=textEncoder.encode(O);for(let J=0;J<O.length;J++)S.push(O[J])}else S.push(O.charCodeAt(0))}const d=new ArrayBuffer(S.length),R=new DataView(d);for(let g=0,O=S.length;g<O;g++)R.setUint8(g,S[g]);return getDecoder(f).decode(d)}function decodeParameterValueContinuations(p){let f=new Map;Object.keys(p.params).forEach(S=>{let d=S.match(/\*((\d+)\*?)?$/);if(!d)return;let R=S.substr(0,d.index).toLowerCase(),g=Number(d[2])||0,O;f.has(R)?O=f.get(R):(O={charset:!1,values:[]},f.set(R,O));let J=p.params[S];g===0&&d[0].charAt(d[0].length-1)==="*"&&(d=J.match(/^([^']*)'[^']*'(.*)$/))&&(O.charset=d[1]||"utf-8",J=d[2]),O.values.push({nr:g,value:J}),delete p.params[S]}),f.forEach((S,d)=>{p.params[d]=decodeURIComponentWithCharset(S.values.sort((R,g)=>R.nr-g.nr).map(R=>R.value).join(""),S.charset)})}class PassThroughDecoder{constructor(){this.chunks=[]}update(f){this.chunks.push(f),this.chunks.push(`
21
- `)}finalize(){return blobToArrayBuffer(new Blob(this.chunks,{type:"application/octet-stream"}))}}class Base64Decoder{constructor(f){f=f||{},this.decoder=f.decoder||new TextDecoder,this.maxChunkSize=100*1024,this.chunks=[],this.remainder=""}update(f){let S=this.decoder.decode(f);if(/[^a-zA-Z0-9+\/]/.test(S)&&(S=S.replace(/[^a-zA-Z0-9+\/]+/g,"")),this.remainder+=S,this.remainder.length>=this.maxChunkSize){let d=Math.floor(this.remainder.length/4)*4,R;d===this.remainder.length?(R=this.remainder,this.remainder=""):(R=this.remainder.substr(0,d),this.remainder=this.remainder.substr(d)),R.length&&this.chunks.push(decodeBase64(R))}}finalize(){return this.remainder&&!/^=+$/.test(this.remainder)&&this.chunks.push(decodeBase64(this.remainder)),blobToArrayBuffer(new Blob(this.chunks,{type:"application/octet-stream"}))}}class QPDecoder{constructor(f){f=f||{},this.decoder=f.decoder||new TextDecoder,this.maxChunkSize=100*1024,this.remainder="",this.chunks=[]}decodeQPBytes(f){let S=new ArrayBuffer(f.length),d=new DataView(S);for(let R=0,g=f.length;R<g;R++)d.setUint8(R,parseInt(f[R],16));return S}decodeChunks(f){f=f.replace(/=\r?\n/g,"");let S=f.split(/(?==)/),d=[];for(let R of S){if(R.charAt(0)!=="="){d.length&&(this.chunks.push(this.decodeQPBytes(d)),d=[]),this.chunks.push(R);continue}if(R.length===3){d.push(R.substr(1));continue}R.length>3&&(d.push(R.substr(1,2)),this.chunks.push(this.decodeQPBytes(d)),d=[],R=R.substr(3),this.chunks.push(R))}d.length&&(this.chunks.push(this.decodeQPBytes(d)),d=[])}update(f){let S=this.decoder.decode(f)+`
22
- `;if(S=this.remainder+S,S.length<this.maxChunkSize){this.remainder=S;return}this.remainder="";let d=S.match(/=[a-fA-F0-9]?$/);if(d){if(d.index===0){this.remainder=S;return}this.remainder=S.substr(d.index),S=S.substr(0,d.index)}this.decodeChunks(S)}finalize(){return this.remainder.length&&(this.decodeChunks(this.remainder),this.remainder=""),blobToArrayBuffer(new Blob(this.chunks,{type:"application/octet-stream"}))}}class MimeNode{constructor(f){f=f||{},this.postalMime=f.postalMime,this.root=!!f.parentNode,this.childNodes=[],f.parentNode&&f.parentNode.childNodes.push(this),this.state="header",this.headerLines=[],this.decoders=new Map,this.contentType={value:"text/plain",default:!0},this.contentTransferEncoding={value:"8bit"},this.contentDisposition={value:""},this.headers=[],this.contentDecoder=!1}setupContentDecoder(f){/base64/i.test(f)?this.contentDecoder=new Base64Decoder:/quoted-printable/i.test(f)?this.contentDecoder=new QPDecoder({decoder:getDecoder(this.contentType.parsed.params.charset)}):this.contentDecoder=new PassThroughDecoder}async finalize(){if(this.state==="finished")return;this.state==="header"&&this.processHeaders();let f=this.postalMime.boundaries;for(let S=f.length-1;S>=0;S--)if(f[S].node===this){f.splice(S,1);break}await this.finalizeChildNodes(),this.content=this.contentDecoder?await this.contentDecoder.finalize():null,this.state="finished"}async finalizeChildNodes(){for(let f of this.childNodes)await f.finalize()}parseStructuredHeader(f){let S={value:!1,params:{}},d=!1,R="",g="value",O=!1,J=!1,a;for(let se=0,H=f.length;se<H;se++)switch(a=f.charAt(se),g){case"key":if(a==="="){d=R.trim().toLowerCase(),g="value",R="";break}R+=a;break;case"value":if(J)R+=a;else if(a==="\\"){J=!0;continue}else O&&a===O?O=!1:!O&&a==='"'?O=a:!O&&a===";"?(d===!1?S.value=R.trim():S.params[d]=R.trim(),g="key",R=""):R+=a;J=!1;break}return R=R.trim(),g==="value"?d===!1?S.value=R:S.params[d]=R:R&&(S.params[R.toLowerCase()]=""),S.value&&(S.value=S.value.toLowerCase()),decodeParameterValueContinuations(S),S}decodeFlowedText(f,S){return f.split(/\r?\n/).reduce((d,R)=>/ $/.test(d)&&!/(^|\n)-- $/.test(d)?S?d.slice(0,-1)+R:d+R:d+`
23
- `+R).replace(/^ /gm,"")}getTextContent(){if(!this.content)return"";let f=getDecoder(this.contentType.parsed.params.charset).decode(this.content);return/^flowed$/i.test(this.contentType.parsed.params.format)&&(f=this.decodeFlowedText(f,/^yes$/i.test(this.contentType.parsed.params.delsp))),f}processHeaders(){for(let f=this.headerLines.length-1;f>=0;f--){let S=this.headerLines[f];if(f&&/^\s/.test(S))this.headerLines[f-1]+=`
24
- `+S,this.headerLines.splice(f,1);else{S=S.replace(/\s+/g," ");let d=S.indexOf(":"),R=d<0?S.trim():S.substr(0,d).trim(),g=d<0?"":S.substr(d+1).trim();switch(this.headers.push({key:R.toLowerCase(),originalKey:R,value:g}),R.toLowerCase()){case"content-type":this.contentType.default&&(this.contentType={value:g,parsed:{}});break;case"content-transfer-encoding":this.contentTransferEncoding={value:g,parsed:{}};break;case"content-disposition":this.contentDisposition={value:g,parsed:{}};break;case"content-id":this.contentId=g;break;case"content-description":this.contentDescription=g;break}}}this.contentType.parsed=this.parseStructuredHeader(this.contentType.value),this.contentType.multipart=/^multipart\//i.test(this.contentType.parsed.value)?this.contentType.parsed.value.substr(this.contentType.parsed.value.indexOf("/")+1):!1,this.contentType.multipart&&this.contentType.parsed.params.boundary&&this.postalMime.boundaries.push({value:textEncoder.encode(this.contentType.parsed.params.boundary),node:this}),this.contentDisposition.parsed=this.parseStructuredHeader(this.contentDisposition.value),this.contentTransferEncoding.encoding=this.contentTransferEncoding.value.toLowerCase().split(/[^\w-]/).shift(),this.setupContentDecoder(this.contentTransferEncoding.encoding)}feed(f){switch(this.state){case"header":if(!f.length)return this.state="body",this.processHeaders();this.headerLines.push(getDecoder().decode(f));break;case"body":this.contentDecoder.update(f)}}}const htmlEntities={"&AElig":"\xC6","&AElig;":"\xC6","&AMP":"&","&AMP;":"&","&Aacute":"\xC1","&Aacute;":"\xC1","&Abreve;":"\u0102","&Acirc":"\xC2","&Acirc;":"\xC2","&Acy;":"\u0410","&Afr;":"\u{1D504}","&Agrave":"\xC0","&Agrave;":"\xC0","&Alpha;":"\u0391","&Amacr;":"\u0100","&And;":"\u2A53","&Aogon;":"\u0104","&Aopf;":"\u{1D538}","&ApplyFunction;":"\u2061","&Aring":"\xC5","&Aring;":"\xC5","&Ascr;":"\u{1D49C}","&Assign;":"\u2254","&Atilde":"\xC3","&Atilde;":"\xC3","&Auml":"\xC4","&Auml;":"\xC4","&Backslash;":"\u2216","&Barv;":"\u2AE7","&Barwed;":"\u2306","&Bcy;":"\u0411","&Because;":"\u2235","&Bernoullis;":"\u212C","&Beta;":"\u0392","&Bfr;":"\u{1D505}","&Bopf;":"\u{1D539}","&Breve;":"\u02D8","&Bscr;":"\u212C","&Bumpeq;":"\u224E","&CHcy;":"\u0427","&COPY":"\xA9","&COPY;":"\xA9","&Cacute;":"\u0106","&Cap;":"\u22D2","&CapitalDifferentialD;":"\u2145","&Cayleys;":"\u212D","&Ccaron;":"\u010C","&Ccedil":"\xC7","&Ccedil;":"\xC7","&Ccirc;":"\u0108","&Cconint;":"\u2230","&Cdot;":"\u010A","&Cedilla;":"\xB8","&CenterDot;":"\xB7","&Cfr;":"\u212D","&Chi;":"\u03A7","&CircleDot;":"\u2299","&CircleMinus;":"\u2296","&CirclePlus;":"\u2295","&CircleTimes;":"\u2297","&ClockwiseContourIntegral;":"\u2232","&CloseCurlyDoubleQuote;":"\u201D","&CloseCurlyQuote;":"\u2019","&Colon;":"\u2237","&Colone;":"\u2A74","&Congruent;":"\u2261","&Conint;":"\u222F","&ContourIntegral;":"\u222E","&Copf;":"\u2102","&Coproduct;":"\u2210","&CounterClockwiseContourIntegral;":"\u2233","&Cross;":"\u2A2F","&Cscr;":"\u{1D49E}","&Cup;":"\u22D3","&CupCap;":"\u224D","&DD;":"\u2145","&DDotrahd;":"\u2911","&DJcy;":"\u0402","&DScy;":"\u0405","&DZcy;":"\u040F","&Dagger;":"\u2021","&Darr;":"\u21A1","&Dashv;":"\u2AE4","&Dcaron;":"\u010E","&Dcy;":"\u0414","&Del;":"\u2207","&Delta;":"\u0394","&Dfr;":"\u{1D507}","&DiacriticalAcute;":"\xB4","&DiacriticalDot;":"\u02D9","&DiacriticalDoubleAcute;":"\u02DD","&DiacriticalGrave;":"`","&DiacriticalTilde;":"\u02DC","&Diamond;":"\u22C4","&DifferentialD;":"\u2146","&Dopf;":"\u{1D53B}","&Dot;":"\xA8","&DotDot;":"\u20DC","&DotEqual;":"\u2250","&DoubleContourIntegral;":"\u222F","&DoubleDot;":"\xA8","&DoubleDownArrow;":"\u21D3","&DoubleLeftArrow;":"\u21D0","&DoubleLeftRightArrow;":"\u21D4","&DoubleLeftTee;":"\u2AE4","&DoubleLongLeftArrow;":"\u27F8","&DoubleLongLeftRightArrow;":"\u27FA","&DoubleLongRightArrow;":"\u27F9","&DoubleRightArrow;":"\u21D2","&DoubleRightTee;":"\u22A8","&DoubleUpArrow;":"\u21D1","&DoubleUpDownArrow;":"\u21D5","&DoubleVerticalBar;":"\u2225","&DownArrow;":"\u2193","&DownArrowBar;":"\u2913","&DownArrowUpArrow;":"\u21F5","&DownBreve;":"\u0311","&DownLeftRightVector;":"\u2950","&DownLeftTeeVector;":"\u295E","&DownLeftVector;":"\u21BD","&DownLeftVectorBar;":"\u2956","&DownRightTeeVector;":"\u295F","&DownRightVector;":"\u21C1","&DownRightVectorBar;":"\u2957","&DownTee;":"\u22A4","&DownTeeArrow;":"\u21A7","&Downarrow;":"\u21D3","&Dscr;":"\u{1D49F}","&Dstrok;":"\u0110","&ENG;":"\u014A","&ETH":"\xD0","&ETH;":"\xD0","&Eacute":"\xC9","&Eacute;":"\xC9","&Ecaron;":"\u011A","&Ecirc":"\xCA","&Ecirc;":"\xCA","&Ecy;":"\u042D","&Edot;":"\u0116","&Efr;":"\u{1D508}","&Egrave":"\xC8","&Egrave;":"\xC8","&Element;":"\u2208","&Emacr;":"\u0112","&EmptySmallSquare;":"\u25FB","&EmptyVerySmallSquare;":"\u25AB","&Eogon;":"\u0118","&Eopf;":"\u{1D53C}","&Epsilon;":"\u0395","&Equal;":"\u2A75","&EqualTilde;":"\u2242","&Equilibrium;":"\u21CC","&Escr;":"\u2130","&Esim;":"\u2A73","&Eta;":"\u0397","&Euml":"\xCB","&Euml;":"\xCB","&Exists;":"\u2203","&ExponentialE;":"\u2147","&Fcy;":"\u0424","&Ffr;":"\u{1D509}","&FilledSmallSquare;":"\u25FC","&FilledVerySmallSquare;":"\u25AA","&Fopf;":"\u{1D53D}","&ForAll;":"\u2200","&Fouriertrf;":"\u2131","&Fscr;":"\u2131","&GJcy;":"\u0403","&GT":">","&GT;":">","&Gamma;":"\u0393","&Gammad;":"\u03DC","&Gbreve;":"\u011E","&Gcedil;":"\u0122","&Gcirc;":"\u011C","&Gcy;":"\u0413","&Gdot;":"\u0120","&Gfr;":"\u{1D50A}","&Gg;":"\u22D9","&Gopf;":"\u{1D53E}","&GreaterEqual;":"\u2265","&GreaterEqualLess;":"\u22DB","&GreaterFullEqual;":"\u2267","&GreaterGreater;":"\u2AA2","&GreaterLess;":"\u2277","&GreaterSlantEqual;":"\u2A7E","&GreaterTilde;":"\u2273","&Gscr;":"\u{1D4A2}","&Gt;":"\u226B","&HARDcy;":"\u042A","&Hacek;":"\u02C7","&Hat;":"^","&Hcirc;":"\u0124","&Hfr;":"\u210C","&HilbertSpace;":"\u210B","&Hopf;":"\u210D","&HorizontalLine;":"\u2500","&Hscr;":"\u210B","&Hstrok;":"\u0126","&HumpDownHump;":"\u224E","&HumpEqual;":"\u224F","&IEcy;":"\u0415","&IJlig;":"\u0132","&IOcy;":"\u0401","&Iacute":"\xCD","&Iacute;":"\xCD","&Icirc":"\xCE","&Icirc;":"\xCE","&Icy;":"\u0418","&Idot;":"\u0130","&Ifr;":"\u2111","&Igrave":"\xCC","&Igrave;":"\xCC","&Im;":"\u2111","&Imacr;":"\u012A","&ImaginaryI;":"\u2148","&Implies;":"\u21D2","&Int;":"\u222C","&Integral;":"\u222B","&Intersection;":"\u22C2","&InvisibleComma;":"\u2063","&InvisibleTimes;":"\u2062","&Iogon;":"\u012E","&Iopf;":"\u{1D540}","&Iota;":"\u0399","&Iscr;":"\u2110","&Itilde;":"\u0128","&Iukcy;":"\u0406","&Iuml":"\xCF","&Iuml;":"\xCF","&Jcirc;":"\u0134","&Jcy;":"\u0419","&Jfr;":"\u{1D50D}","&Jopf;":"\u{1D541}","&Jscr;":"\u{1D4A5}","&Jsercy;":"\u0408","&Jukcy;":"\u0404","&KHcy;":"\u0425","&KJcy;":"\u040C","&Kappa;":"\u039A","&Kcedil;":"\u0136","&Kcy;":"\u041A","&Kfr;":"\u{1D50E}","&Kopf;":"\u{1D542}","&Kscr;":"\u{1D4A6}","&LJcy;":"\u0409","&LT":"<","&LT;":"<","&Lacute;":"\u0139","&Lambda;":"\u039B","&Lang;":"\u27EA","&Laplacetrf;":"\u2112","&Larr;":"\u219E","&Lcaron;":"\u013D","&Lcedil;":"\u013B","&Lcy;":"\u041B","&LeftAngleBracket;":"\u27E8","&LeftArrow;":"\u2190","&LeftArrowBar;":"\u21E4","&LeftArrowRightArrow;":"\u21C6","&LeftCeiling;":"\u2308","&LeftDoubleBracket;":"\u27E6","&LeftDownTeeVector;":"\u2961","&LeftDownVector;":"\u21C3","&LeftDownVectorBar;":"\u2959","&LeftFloor;":"\u230A","&LeftRightArrow;":"\u2194","&LeftRightVector;":"\u294E","&LeftTee;":"\u22A3","&LeftTeeArrow;":"\u21A4","&LeftTeeVector;":"\u295A","&LeftTriangle;":"\u22B2","&LeftTriangleBar;":"\u29CF","&LeftTriangleEqual;":"\u22B4","&LeftUpDownVector;":"\u2951","&LeftUpTeeVector;":"\u2960","&LeftUpVector;":"\u21BF","&LeftUpVectorBar;":"\u2958","&LeftVector;":"\u21BC","&LeftVectorBar;":"\u2952","&Leftarrow;":"\u21D0","&Leftrightarrow;":"\u21D4","&LessEqualGreater;":"\u22DA","&LessFullEqual;":"\u2266","&LessGreater;":"\u2276","&LessLess;":"\u2AA1","&LessSlantEqual;":"\u2A7D","&LessTilde;":"\u2272","&Lfr;":"\u{1D50F}","&Ll;":"\u22D8","&Lleftarrow;":"\u21DA","&Lmidot;":"\u013F","&LongLeftArrow;":"\u27F5","&LongLeftRightArrow;":"\u27F7","&LongRightArrow;":"\u27F6","&Longleftarrow;":"\u27F8","&Longleftrightarrow;":"\u27FA","&Longrightarrow;":"\u27F9","&Lopf;":"\u{1D543}","&LowerLeftArrow;":"\u2199","&LowerRightArrow;":"\u2198","&Lscr;":"\u2112","&Lsh;":"\u21B0","&Lstrok;":"\u0141","&Lt;":"\u226A","&Map;":"\u2905","&Mcy;":"\u041C","&MediumSpace;":"\u205F","&Mellintrf;":"\u2133","&Mfr;":"\u{1D510}","&MinusPlus;":"\u2213","&Mopf;":"\u{1D544}","&Mscr;":"\u2133","&Mu;":"\u039C","&NJcy;":"\u040A","&Nacute;":"\u0143","&Ncaron;":"\u0147","&Ncedil;":"\u0145","&Ncy;":"\u041D","&NegativeMediumSpace;":"\u200B","&NegativeThickSpace;":"\u200B","&NegativeThinSpace;":"\u200B","&NegativeVeryThinSpace;":"\u200B","&NestedGreaterGreater;":"\u226B","&NestedLessLess;":"\u226A","&NewLine;":`
25
- `,"&Nfr;":"\u{1D511}","&NoBreak;":"\u2060","&NonBreakingSpace;":"\xA0","&Nopf;":"\u2115","&Not;":"\u2AEC","&NotCongruent;":"\u2262","&NotCupCap;":"\u226D","&NotDoubleVerticalBar;":"\u2226","&NotElement;":"\u2209","&NotEqual;":"\u2260","&NotEqualTilde;":"\u2242\u0338","&NotExists;":"\u2204","&NotGreater;":"\u226F","&NotGreaterEqual;":"\u2271","&NotGreaterFullEqual;":"\u2267\u0338","&NotGreaterGreater;":"\u226B\u0338","&NotGreaterLess;":"\u2279","&NotGreaterSlantEqual;":"\u2A7E\u0338","&NotGreaterTilde;":"\u2275","&NotHumpDownHump;":"\u224E\u0338","&NotHumpEqual;":"\u224F\u0338","&NotLeftTriangle;":"\u22EA","&NotLeftTriangleBar;":"\u29CF\u0338","&NotLeftTriangleEqual;":"\u22EC","&NotLess;":"\u226E","&NotLessEqual;":"\u2270","&NotLessGreater;":"\u2278","&NotLessLess;":"\u226A\u0338","&NotLessSlantEqual;":"\u2A7D\u0338","&NotLessTilde;":"\u2274","&NotNestedGreaterGreater;":"\u2AA2\u0338","&NotNestedLessLess;":"\u2AA1\u0338","&NotPrecedes;":"\u2280","&NotPrecedesEqual;":"\u2AAF\u0338","&NotPrecedesSlantEqual;":"\u22E0","&NotReverseElement;":"\u220C","&NotRightTriangle;":"\u22EB","&NotRightTriangleBar;":"\u29D0\u0338","&NotRightTriangleEqual;":"\u22ED","&NotSquareSubset;":"\u228F\u0338","&NotSquareSubsetEqual;":"\u22E2","&NotSquareSuperset;":"\u2290\u0338","&NotSquareSupersetEqual;":"\u22E3","&NotSubset;":"\u2282\u20D2","&NotSubsetEqual;":"\u2288","&NotSucceeds;":"\u2281","&NotSucceedsEqual;":"\u2AB0\u0338","&NotSucceedsSlantEqual;":"\u22E1","&NotSucceedsTilde;":"\u227F\u0338","&NotSuperset;":"\u2283\u20D2","&NotSupersetEqual;":"\u2289","&NotTilde;":"\u2241","&NotTildeEqual;":"\u2244","&NotTildeFullEqual;":"\u2247","&NotTildeTilde;":"\u2249","&NotVerticalBar;":"\u2224","&Nscr;":"\u{1D4A9}","&Ntilde":"\xD1","&Ntilde;":"\xD1","&Nu;":"\u039D","&OElig;":"\u0152","&Oacute":"\xD3","&Oacute;":"\xD3","&Ocirc":"\xD4","&Ocirc;":"\xD4","&Ocy;":"\u041E","&Odblac;":"\u0150","&Ofr;":"\u{1D512}","&Ograve":"\xD2","&Ograve;":"\xD2","&Omacr;":"\u014C","&Omega;":"\u03A9","&Omicron;":"\u039F","&Oopf;":"\u{1D546}","&OpenCurlyDoubleQuote;":"\u201C","&OpenCurlyQuote;":"\u2018","&Or;":"\u2A54","&Oscr;":"\u{1D4AA}","&Oslash":"\xD8","&Oslash;":"\xD8","&Otilde":"\xD5","&Otilde;":"\xD5","&Otimes;":"\u2A37","&Ouml":"\xD6","&Ouml;":"\xD6","&OverBar;":"\u203E","&OverBrace;":"\u23DE","&OverBracket;":"\u23B4","&OverParenthesis;":"\u23DC","&PartialD;":"\u2202","&Pcy;":"\u041F","&Pfr;":"\u{1D513}","&Phi;":"\u03A6","&Pi;":"\u03A0","&PlusMinus;":"\xB1","&Poincareplane;":"\u210C","&Popf;":"\u2119","&Pr;":"\u2ABB","&Precedes;":"\u227A","&PrecedesEqual;":"\u2AAF","&PrecedesSlantEqual;":"\u227C","&PrecedesTilde;":"\u227E","&Prime;":"\u2033","&Product;":"\u220F","&Proportion;":"\u2237","&Proportional;":"\u221D","&Pscr;":"\u{1D4AB}","&Psi;":"\u03A8","&QUOT":'"',"&QUOT;":'"',"&Qfr;":"\u{1D514}","&Qopf;":"\u211A","&Qscr;":"\u{1D4AC}","&RBarr;":"\u2910","&REG":"\xAE","&REG;":"\xAE","&Racute;":"\u0154","&Rang;":"\u27EB","&Rarr;":"\u21A0","&Rarrtl;":"\u2916","&Rcaron;":"\u0158","&Rcedil;":"\u0156","&Rcy;":"\u0420","&Re;":"\u211C","&ReverseElement;":"\u220B","&ReverseEquilibrium;":"\u21CB","&ReverseUpEquilibrium;":"\u296F","&Rfr;":"\u211C","&Rho;":"\u03A1","&RightAngleBracket;":"\u27E9","&RightArrow;":"\u2192","&RightArrowBar;":"\u21E5","&RightArrowLeftArrow;":"\u21C4","&RightCeiling;":"\u2309","&RightDoubleBracket;":"\u27E7","&RightDownTeeVector;":"\u295D","&RightDownVector;":"\u21C2","&RightDownVectorBar;":"\u2955","&RightFloor;":"\u230B","&RightTee;":"\u22A2","&RightTeeArrow;":"\u21A6","&RightTeeVector;":"\u295B","&RightTriangle;":"\u22B3","&RightTriangleBar;":"\u29D0","&RightTriangleEqual;":"\u22B5","&RightUpDownVector;":"\u294F","&RightUpTeeVector;":"\u295C","&RightUpVector;":"\u21BE","&RightUpVectorBar;":"\u2954","&RightVector;":"\u21C0","&RightVectorBar;":"\u2953","&Rightarrow;":"\u21D2","&Ropf;":"\u211D","&RoundImplies;":"\u2970","&Rrightarrow;":"\u21DB","&Rscr;":"\u211B","&Rsh;":"\u21B1","&RuleDelayed;":"\u29F4","&SHCHcy;":"\u0429","&SHcy;":"\u0428","&SOFTcy;":"\u042C","&Sacute;":"\u015A","&Sc;":"\u2ABC","&Scaron;":"\u0160","&Scedil;":"\u015E","&Scirc;":"\u015C","&Scy;":"\u0421","&Sfr;":"\u{1D516}","&ShortDownArrow;":"\u2193","&ShortLeftArrow;":"\u2190","&ShortRightArrow;":"\u2192","&ShortUpArrow;":"\u2191","&Sigma;":"\u03A3","&SmallCircle;":"\u2218","&Sopf;":"\u{1D54A}","&Sqrt;":"\u221A","&Square;":"\u25A1","&SquareIntersection;":"\u2293","&SquareSubset;":"\u228F","&SquareSubsetEqual;":"\u2291","&SquareSuperset;":"\u2290","&SquareSupersetEqual;":"\u2292","&SquareUnion;":"\u2294","&Sscr;":"\u{1D4AE}","&Star;":"\u22C6","&Sub;":"\u22D0","&Subset;":"\u22D0","&SubsetEqual;":"\u2286","&Succeeds;":"\u227B","&SucceedsEqual;":"\u2AB0","&SucceedsSlantEqual;":"\u227D","&SucceedsTilde;":"\u227F","&SuchThat;":"\u220B","&Sum;":"\u2211","&Sup;":"\u22D1","&Superset;":"\u2283","&SupersetEqual;":"\u2287","&Supset;":"\u22D1","&THORN":"\xDE","&THORN;":"\xDE","&TRADE;":"\u2122","&TSHcy;":"\u040B","&TScy;":"\u0426","&Tab;":" ","&Tau;":"\u03A4","&Tcaron;":"\u0164","&Tcedil;":"\u0162","&Tcy;":"\u0422","&Tfr;":"\u{1D517}","&Therefore;":"\u2234","&Theta;":"\u0398","&ThickSpace;":"\u205F\u200A","&ThinSpace;":"\u2009","&Tilde;":"\u223C","&TildeEqual;":"\u2243","&TildeFullEqual;":"\u2245","&TildeTilde;":"\u2248","&Topf;":"\u{1D54B}","&TripleDot;":"\u20DB","&Tscr;":"\u{1D4AF}","&Tstrok;":"\u0166","&Uacute":"\xDA","&Uacute;":"\xDA","&Uarr;":"\u219F","&Uarrocir;":"\u2949","&Ubrcy;":"\u040E","&Ubreve;":"\u016C","&Ucirc":"\xDB","&Ucirc;":"\xDB","&Ucy;":"\u0423","&Udblac;":"\u0170","&Ufr;":"\u{1D518}","&Ugrave":"\xD9","&Ugrave;":"\xD9","&Umacr;":"\u016A","&UnderBar;":"_","&UnderBrace;":"\u23DF","&UnderBracket;":"\u23B5","&UnderParenthesis;":"\u23DD","&Union;":"\u22C3","&UnionPlus;":"\u228E","&Uogon;":"\u0172","&Uopf;":"\u{1D54C}","&UpArrow;":"\u2191","&UpArrowBar;":"\u2912","&UpArrowDownArrow;":"\u21C5","&UpDownArrow;":"\u2195","&UpEquilibrium;":"\u296E","&UpTee;":"\u22A5","&UpTeeArrow;":"\u21A5","&Uparrow;":"\u21D1","&Updownarrow;":"\u21D5","&UpperLeftArrow;":"\u2196","&UpperRightArrow;":"\u2197","&Upsi;":"\u03D2","&Upsilon;":"\u03A5","&Uring;":"\u016E","&Uscr;":"\u{1D4B0}","&Utilde;":"\u0168","&Uuml":"\xDC","&Uuml;":"\xDC","&VDash;":"\u22AB","&Vbar;":"\u2AEB","&Vcy;":"\u0412","&Vdash;":"\u22A9","&Vdashl;":"\u2AE6","&Vee;":"\u22C1","&Verbar;":"\u2016","&Vert;":"\u2016","&VerticalBar;":"\u2223","&VerticalLine;":"|","&VerticalSeparator;":"\u2758","&VerticalTilde;":"\u2240","&VeryThinSpace;":"\u200A","&Vfr;":"\u{1D519}","&Vopf;":"\u{1D54D}","&Vscr;":"\u{1D4B1}","&Vvdash;":"\u22AA","&Wcirc;":"\u0174","&Wedge;":"\u22C0","&Wfr;":"\u{1D51A}","&Wopf;":"\u{1D54E}","&Wscr;":"\u{1D4B2}","&Xfr;":"\u{1D51B}","&Xi;":"\u039E","&Xopf;":"\u{1D54F}","&Xscr;":"\u{1D4B3}","&YAcy;":"\u042F","&YIcy;":"\u0407","&YUcy;":"\u042E","&Yacute":"\xDD","&Yacute;":"\xDD","&Ycirc;":"\u0176","&Ycy;":"\u042B","&Yfr;":"\u{1D51C}","&Yopf;":"\u{1D550}","&Yscr;":"\u{1D4B4}","&Yuml;":"\u0178","&ZHcy;":"\u0416","&Zacute;":"\u0179","&Zcaron;":"\u017D","&Zcy;":"\u0417","&Zdot;":"\u017B","&ZeroWidthSpace;":"\u200B","&Zeta;":"\u0396","&Zfr;":"\u2128","&Zopf;":"\u2124","&Zscr;":"\u{1D4B5}","&aacute":"\xE1","&aacute;":"\xE1","&abreve;":"\u0103","&ac;":"\u223E","&acE;":"\u223E\u0333","&acd;":"\u223F","&acirc":"\xE2","&acirc;":"\xE2","&acute":"\xB4","&acute;":"\xB4","&acy;":"\u0430","&aelig":"\xE6","&aelig;":"\xE6","&af;":"\u2061","&afr;":"\u{1D51E}","&agrave":"\xE0","&agrave;":"\xE0","&alefsym;":"\u2135","&aleph;":"\u2135","&alpha;":"\u03B1","&amacr;":"\u0101","&amalg;":"\u2A3F","&amp":"&","&amp;":"&","&and;":"\u2227","&andand;":"\u2A55","&andd;":"\u2A5C","&andslope;":"\u2A58","&andv;":"\u2A5A","&ang;":"\u2220","&ange;":"\u29A4","&angle;":"\u2220","&angmsd;":"\u2221","&angmsdaa;":"\u29A8","&angmsdab;":"\u29A9","&angmsdac;":"\u29AA","&angmsdad;":"\u29AB","&angmsdae;":"\u29AC","&angmsdaf;":"\u29AD","&angmsdag;":"\u29AE","&angmsdah;":"\u29AF","&angrt;":"\u221F","&angrtvb;":"\u22BE","&angrtvbd;":"\u299D","&angsph;":"\u2222","&angst;":"\xC5","&angzarr;":"\u237C","&aogon;":"\u0105","&aopf;":"\u{1D552}","&ap;":"\u2248","&apE;":"\u2A70","&apacir;":"\u2A6F","&ape;":"\u224A","&apid;":"\u224B","&apos;":"'","&approx;":"\u2248","&approxeq;":"\u224A","&aring":"\xE5","&aring;":"\xE5","&ascr;":"\u{1D4B6}","&ast;":"*","&asymp;":"\u2248","&asympeq;":"\u224D","&atilde":"\xE3","&atilde;":"\xE3","&auml":"\xE4","&auml;":"\xE4","&awconint;":"\u2233","&awint;":"\u2A11","&bNot;":"\u2AED","&backcong;":"\u224C","&backepsilon;":"\u03F6","&backprime;":"\u2035","&backsim;":"\u223D","&backsimeq;":"\u22CD","&barvee;":"\u22BD","&barwed;":"\u2305","&barwedge;":"\u2305","&bbrk;":"\u23B5","&bbrktbrk;":"\u23B6","&bcong;":"\u224C","&bcy;":"\u0431","&bdquo;":"\u201E","&becaus;":"\u2235","&because;":"\u2235","&bemptyv;":"\u29B0","&bepsi;":"\u03F6","&bernou;":"\u212C","&beta;":"\u03B2","&beth;":"\u2136","&between;":"\u226C","&bfr;":"\u{1D51F}","&bigcap;":"\u22C2","&bigcirc;":"\u25EF","&bigcup;":"\u22C3","&bigodot;":"\u2A00","&bigoplus;":"\u2A01","&bigotimes;":"\u2A02","&bigsqcup;":"\u2A06","&bigstar;":"\u2605","&bigtriangledown;":"\u25BD","&bigtriangleup;":"\u25B3","&biguplus;":"\u2A04","&bigvee;":"\u22C1","&bigwedge;":"\u22C0","&bkarow;":"\u290D","&blacklozenge;":"\u29EB","&blacksquare;":"\u25AA","&blacktriangle;":"\u25B4","&blacktriangledown;":"\u25BE","&blacktriangleleft;":"\u25C2","&blacktriangleright;":"\u25B8","&blank;":"\u2423","&blk12;":"\u2592","&blk14;":"\u2591","&blk34;":"\u2593","&block;":"\u2588","&bne;":"=\u20E5","&bnequiv;":"\u2261\u20E5","&bnot;":"\u2310","&bopf;":"\u{1D553}","&bot;":"\u22A5","&bottom;":"\u22A5","&bowtie;":"\u22C8","&boxDL;":"\u2557","&boxDR;":"\u2554","&boxDl;":"\u2556","&boxDr;":"\u2553","&boxH;":"\u2550","&boxHD;":"\u2566","&boxHU;":"\u2569","&boxHd;":"\u2564","&boxHu;":"\u2567","&boxUL;":"\u255D","&boxUR;":"\u255A","&boxUl;":"\u255C","&boxUr;":"\u2559","&boxV;":"\u2551","&boxVH;":"\u256C","&boxVL;":"\u2563","&boxVR;":"\u2560","&boxVh;":"\u256B","&boxVl;":"\u2562","&boxVr;":"\u255F","&boxbox;":"\u29C9","&boxdL;":"\u2555","&boxdR;":"\u2552","&boxdl;":"\u2510","&boxdr;":"\u250C","&boxh;":"\u2500","&boxhD;":"\u2565","&boxhU;":"\u2568","&boxhd;":"\u252C","&boxhu;":"\u2534","&boxminus;":"\u229F","&boxplus;":"\u229E","&boxtimes;":"\u22A0","&boxuL;":"\u255B","&boxuR;":"\u2558","&boxul;":"\u2518","&boxur;":"\u2514","&boxv;":"\u2502","&boxvH;":"\u256A","&boxvL;":"\u2561","&boxvR;":"\u255E","&boxvh;":"\u253C","&boxvl;":"\u2524","&boxvr;":"\u251C","&bprime;":"\u2035","&breve;":"\u02D8","&brvbar":"\xA6","&brvbar;":"\xA6","&bscr;":"\u{1D4B7}","&bsemi;":"\u204F","&bsim;":"\u223D","&bsime;":"\u22CD","&bsol;":"\\","&bsolb;":"\u29C5","&bsolhsub;":"\u27C8","&bull;":"\u2022","&bullet;":"\u2022","&bump;":"\u224E","&bumpE;":"\u2AAE","&bumpe;":"\u224F","&bumpeq;":"\u224F","&cacute;":"\u0107","&cap;":"\u2229","&capand;":"\u2A44","&capbrcup;":"\u2A49","&capcap;":"\u2A4B","&capcup;":"\u2A47","&capdot;":"\u2A40","&caps;":"\u2229\uFE00","&caret;":"\u2041","&caron;":"\u02C7","&ccaps;":"\u2A4D","&ccaron;":"\u010D","&ccedil":"\xE7","&ccedil;":"\xE7","&ccirc;":"\u0109","&ccups;":"\u2A4C","&ccupssm;":"\u2A50","&cdot;":"\u010B","&cedil":"\xB8","&cedil;":"\xB8","&cemptyv;":"\u29B2","&cent":"\xA2","&cent;":"\xA2","&centerdot;":"\xB7","&cfr;":"\u{1D520}","&chcy;":"\u0447","&check;":"\u2713","&checkmark;":"\u2713","&chi;":"\u03C7","&cir;":"\u25CB","&cirE;":"\u29C3","&circ;":"\u02C6","&circeq;":"\u2257","&circlearrowleft;":"\u21BA","&circlearrowright;":"\u21BB","&circledR;":"\xAE","&circledS;":"\u24C8","&circledast;":"\u229B","&circledcirc;":"\u229A","&circleddash;":"\u229D","&cire;":"\u2257","&cirfnint;":"\u2A10","&cirmid;":"\u2AEF","&cirscir;":"\u29C2","&clubs;":"\u2663","&clubsuit;":"\u2663","&colon;":":","&colone;":"\u2254","&coloneq;":"\u2254","&comma;":",","&commat;":"@","&comp;":"\u2201","&compfn;":"\u2218","&complement;":"\u2201","&complexes;":"\u2102","&cong;":"\u2245","&congdot;":"\u2A6D","&conint;":"\u222E","&copf;":"\u{1D554}","&coprod;":"\u2210","&copy":"\xA9","&copy;":"\xA9","&copysr;":"\u2117","&crarr;":"\u21B5","&cross;":"\u2717","&cscr;":"\u{1D4B8}","&csub;":"\u2ACF","&csube;":"\u2AD1","&csup;":"\u2AD0","&csupe;":"\u2AD2","&ctdot;":"\u22EF","&cudarrl;":"\u2938","&cudarrr;":"\u2935","&cuepr;":"\u22DE","&cuesc;":"\u22DF","&cularr;":"\u21B6","&cularrp;":"\u293D","&cup;":"\u222A","&cupbrcap;":"\u2A48","&cupcap;":"\u2A46","&cupcup;":"\u2A4A","&cupdot;":"\u228D","&cupor;":"\u2A45","&cups;":"\u222A\uFE00","&curarr;":"\u21B7","&curarrm;":"\u293C","&curlyeqprec;":"\u22DE","&curlyeqsucc;":"\u22DF","&curlyvee;":"\u22CE","&curlywedge;":"\u22CF","&curren":"\xA4","&curren;":"\xA4","&curvearrowleft;":"\u21B6","&curvearrowright;":"\u21B7","&cuvee;":"\u22CE","&cuwed;":"\u22CF","&cwconint;":"\u2232","&cwint;":"\u2231","&cylcty;":"\u232D","&dArr;":"\u21D3","&dHar;":"\u2965","&dagger;":"\u2020","&daleth;":"\u2138","&darr;":"\u2193","&dash;":"\u2010","&dashv;":"\u22A3","&dbkarow;":"\u290F","&dblac;":"\u02DD","&dcaron;":"\u010F","&dcy;":"\u0434","&dd;":"\u2146","&ddagger;":"\u2021","&ddarr;":"\u21CA","&ddotseq;":"\u2A77","&deg":"\xB0","&deg;":"\xB0","&delta;":"\u03B4","&demptyv;":"\u29B1","&dfisht;":"\u297F","&dfr;":"\u{1D521}","&dharl;":"\u21C3","&dharr;":"\u21C2","&diam;":"\u22C4","&diamond;":"\u22C4","&diamondsuit;":"\u2666","&diams;":"\u2666","&die;":"\xA8","&digamma;":"\u03DD","&disin;":"\u22F2","&div;":"\xF7","&divide":"\xF7","&divide;":"\xF7","&divideontimes;":"\u22C7","&divonx;":"\u22C7","&djcy;":"\u0452","&dlcorn;":"\u231E","&dlcrop;":"\u230D","&dollar;":"$","&dopf;":"\u{1D555}","&dot;":"\u02D9","&doteq;":"\u2250","&doteqdot;":"\u2251","&dotminus;":"\u2238","&dotplus;":"\u2214","&dotsquare;":"\u22A1","&doublebarwedge;":"\u2306","&downarrow;":"\u2193","&downdownarrows;":"\u21CA","&downharpoonleft;":"\u21C3","&downharpoonright;":"\u21C2","&drbkarow;":"\u2910","&drcorn;":"\u231F","&drcrop;":"\u230C","&dscr;":"\u{1D4B9}","&dscy;":"\u0455","&dsol;":"\u29F6","&dstrok;":"\u0111","&dtdot;":"\u22F1","&dtri;":"\u25BF","&dtrif;":"\u25BE","&duarr;":"\u21F5","&duhar;":"\u296F","&dwangle;":"\u29A6","&dzcy;":"\u045F","&dzigrarr;":"\u27FF","&eDDot;":"\u2A77","&eDot;":"\u2251","&eacute":"\xE9","&eacute;":"\xE9","&easter;":"\u2A6E","&ecaron;":"\u011B","&ecir;":"\u2256","&ecirc":"\xEA","&ecirc;":"\xEA","&ecolon;":"\u2255","&ecy;":"\u044D","&edot;":"\u0117","&ee;":"\u2147","&efDot;":"\u2252","&efr;":"\u{1D522}","&eg;":"\u2A9A","&egrave":"\xE8","&egrave;":"\xE8","&egs;":"\u2A96","&egsdot;":"\u2A98","&el;":"\u2A99","&elinters;":"\u23E7","&ell;":"\u2113","&els;":"\u2A95","&elsdot;":"\u2A97","&emacr;":"\u0113","&empty;":"\u2205","&emptyset;":"\u2205","&emptyv;":"\u2205","&emsp13;":"\u2004","&emsp14;":"\u2005","&emsp;":"\u2003","&eng;":"\u014B","&ensp;":"\u2002","&eogon;":"\u0119","&eopf;":"\u{1D556}","&epar;":"\u22D5","&eparsl;":"\u29E3","&eplus;":"\u2A71","&epsi;":"\u03B5","&epsilon;":"\u03B5","&epsiv;":"\u03F5","&eqcirc;":"\u2256","&eqcolon;":"\u2255","&eqsim;":"\u2242","&eqslantgtr;":"\u2A96","&eqslantless;":"\u2A95","&equals;":"=","&equest;":"\u225F","&equiv;":"\u2261","&equivDD;":"\u2A78","&eqvparsl;":"\u29E5","&erDot;":"\u2253","&erarr;":"\u2971","&escr;":"\u212F","&esdot;":"\u2250","&esim;":"\u2242","&eta;":"\u03B7","&eth":"\xF0","&eth;":"\xF0","&euml":"\xEB","&euml;":"\xEB","&euro;":"\u20AC","&excl;":"!","&exist;":"\u2203","&expectation;":"\u2130","&exponentiale;":"\u2147","&fallingdotseq;":"\u2252","&fcy;":"\u0444","&female;":"\u2640","&ffilig;":"\uFB03","&fflig;":"\uFB00","&ffllig;":"\uFB04","&ffr;":"\u{1D523}","&filig;":"\uFB01","&fjlig;":"fj","&flat;":"\u266D","&fllig;":"\uFB02","&fltns;":"\u25B1","&fnof;":"\u0192","&fopf;":"\u{1D557}","&forall;":"\u2200","&fork;":"\u22D4","&forkv;":"\u2AD9","&fpartint;":"\u2A0D","&frac12":"\xBD","&frac12;":"\xBD","&frac13;":"\u2153","&frac14":"\xBC","&frac14;":"\xBC","&frac15;":"\u2155","&frac16;":"\u2159","&frac18;":"\u215B","&frac23;":"\u2154","&frac25;":"\u2156","&frac34":"\xBE","&frac34;":"\xBE","&frac35;":"\u2157","&frac38;":"\u215C","&frac45;":"\u2158","&frac56;":"\u215A","&frac58;":"\u215D","&frac78;":"\u215E","&frasl;":"\u2044","&frown;":"\u2322","&fscr;":"\u{1D4BB}","&gE;":"\u2267","&gEl;":"\u2A8C","&gacute;":"\u01F5","&gamma;":"\u03B3","&gammad;":"\u03DD","&gap;":"\u2A86","&gbreve;":"\u011F","&gcirc;":"\u011D","&gcy;":"\u0433","&gdot;":"\u0121","&ge;":"\u2265","&gel;":"\u22DB","&geq;":"\u2265","&geqq;":"\u2267","&geqslant;":"\u2A7E","&ges;":"\u2A7E","&gescc;":"\u2AA9","&gesdot;":"\u2A80","&gesdoto;":"\u2A82","&gesdotol;":"\u2A84","&gesl;":"\u22DB\uFE00","&gesles;":"\u2A94","&gfr;":"\u{1D524}","&gg;":"\u226B","&ggg;":"\u22D9","&gimel;":"\u2137","&gjcy;":"\u0453","&gl;":"\u2277","&glE;":"\u2A92","&gla;":"\u2AA5","&glj;":"\u2AA4","&gnE;":"\u2269","&gnap;":"\u2A8A","&gnapprox;":"\u2A8A","&gne;":"\u2A88","&gneq;":"\u2A88","&gneqq;":"\u2269","&gnsim;":"\u22E7","&gopf;":"\u{1D558}","&grave;":"`","&gscr;":"\u210A","&gsim;":"\u2273","&gsime;":"\u2A8E","&gsiml;":"\u2A90","&gt":">","&gt;":">","&gtcc;":"\u2AA7","&gtcir;":"\u2A7A","&gtdot;":"\u22D7","&gtlPar;":"\u2995","&gtquest;":"\u2A7C","&gtrapprox;":"\u2A86","&gtrarr;":"\u2978","&gtrdot;":"\u22D7","&gtreqless;":"\u22DB","&gtreqqless;":"\u2A8C","&gtrless;":"\u2277","&gtrsim;":"\u2273","&gvertneqq;":"\u2269\uFE00","&gvnE;":"\u2269\uFE00","&hArr;":"\u21D4","&hairsp;":"\u200A","&half;":"\xBD","&hamilt;":"\u210B","&hardcy;":"\u044A","&harr;":"\u2194","&harrcir;":"\u2948","&harrw;":"\u21AD","&hbar;":"\u210F","&hcirc;":"\u0125","&hearts;":"\u2665","&heartsuit;":"\u2665","&hellip;":"\u2026","&hercon;":"\u22B9","&hfr;":"\u{1D525}","&hksearow;":"\u2925","&hkswarow;":"\u2926","&hoarr;":"\u21FF","&homtht;":"\u223B","&hookleftarrow;":"\u21A9","&hookrightarrow;":"\u21AA","&hopf;":"\u{1D559}","&horbar;":"\u2015","&hscr;":"\u{1D4BD}","&hslash;":"\u210F","&hstrok;":"\u0127","&hybull;":"\u2043","&hyphen;":"\u2010","&iacute":"\xED","&iacute;":"\xED","&ic;":"\u2063","&icirc":"\xEE","&icirc;":"\xEE","&icy;":"\u0438","&iecy;":"\u0435","&iexcl":"\xA1","&iexcl;":"\xA1","&iff;":"\u21D4","&ifr;":"\u{1D526}","&igrave":"\xEC","&igrave;":"\xEC","&ii;":"\u2148","&iiiint;":"\u2A0C","&iiint;":"\u222D","&iinfin;":"\u29DC","&iiota;":"\u2129","&ijlig;":"\u0133","&imacr;":"\u012B","&image;":"\u2111","&imagline;":"\u2110","&imagpart;":"\u2111","&imath;":"\u0131","&imof;":"\u22B7","&imped;":"\u01B5","&in;":"\u2208","&incare;":"\u2105","&infin;":"\u221E","&infintie;":"\u29DD","&inodot;":"\u0131","&int;":"\u222B","&intcal;":"\u22BA","&integers;":"\u2124","&intercal;":"\u22BA","&intlarhk;":"\u2A17","&intprod;":"\u2A3C","&iocy;":"\u0451","&iogon;":"\u012F","&iopf;":"\u{1D55A}","&iota;":"\u03B9","&iprod;":"\u2A3C","&iquest":"\xBF","&iquest;":"\xBF","&iscr;":"\u{1D4BE}","&isin;":"\u2208","&isinE;":"\u22F9","&isindot;":"\u22F5","&isins;":"\u22F4","&isinsv;":"\u22F3","&isinv;":"\u2208","&it;":"\u2062","&itilde;":"\u0129","&iukcy;":"\u0456","&iuml":"\xEF","&iuml;":"\xEF","&jcirc;":"\u0135","&jcy;":"\u0439","&jfr;":"\u{1D527}","&jmath;":"\u0237","&jopf;":"\u{1D55B}","&jscr;":"\u{1D4BF}","&jsercy;":"\u0458","&jukcy;":"\u0454","&kappa;":"\u03BA","&kappav;":"\u03F0","&kcedil;":"\u0137","&kcy;":"\u043A","&kfr;":"\u{1D528}","&kgreen;":"\u0138","&khcy;":"\u0445","&kjcy;":"\u045C","&kopf;":"\u{1D55C}","&kscr;":"\u{1D4C0}","&lAarr;":"\u21DA","&lArr;":"\u21D0","&lAtail;":"\u291B","&lBarr;":"\u290E","&lE;":"\u2266","&lEg;":"\u2A8B","&lHar;":"\u2962","&lacute;":"\u013A","&laemptyv;":"\u29B4","&lagran;":"\u2112","&lambda;":"\u03BB","&lang;":"\u27E8","&langd;":"\u2991","&langle;":"\u27E8","&lap;":"\u2A85","&laquo":"\xAB","&laquo;":"\xAB","&larr;":"\u2190","&larrb;":"\u21E4","&larrbfs;":"\u291F","&larrfs;":"\u291D","&larrhk;":"\u21A9","&larrlp;":"\u21AB","&larrpl;":"\u2939","&larrsim;":"\u2973","&larrtl;":"\u21A2","&lat;":"\u2AAB","&latail;":"\u2919","&late;":"\u2AAD","&lates;":"\u2AAD\uFE00","&lbarr;":"\u290C","&lbbrk;":"\u2772","&lbrace;":"{","&lbrack;":"[","&lbrke;":"\u298B","&lbrksld;":"\u298F","&lbrkslu;":"\u298D","&lcaron;":"\u013E","&lcedil;":"\u013C","&lceil;":"\u2308","&lcub;":"{","&lcy;":"\u043B","&ldca;":"\u2936","&ldquo;":"\u201C","&ldquor;":"\u201E","&ldrdhar;":"\u2967","&ldrushar;":"\u294B","&ldsh;":"\u21B2","&le;":"\u2264","&leftarrow;":"\u2190","&leftarrowtail;":"\u21A2","&leftharpoondown;":"\u21BD","&leftharpoonup;":"\u21BC","&leftleftarrows;":"\u21C7","&leftrightarrow;":"\u2194","&leftrightarrows;":"\u21C6","&leftrightharpoons;":"\u21CB","&leftrightsquigarrow;":"\u21AD","&leftthreetimes;":"\u22CB","&leg;":"\u22DA","&leq;":"\u2264","&leqq;":"\u2266","&leqslant;":"\u2A7D","&les;":"\u2A7D","&lescc;":"\u2AA8","&lesdot;":"\u2A7F","&lesdoto;":"\u2A81","&lesdotor;":"\u2A83","&lesg;":"\u22DA\uFE00","&lesges;":"\u2A93","&lessapprox;":"\u2A85","&lessdot;":"\u22D6","&lesseqgtr;":"\u22DA","&lesseqqgtr;":"\u2A8B","&lessgtr;":"\u2276","&lesssim;":"\u2272","&lfisht;":"\u297C","&lfloor;":"\u230A","&lfr;":"\u{1D529}","&lg;":"\u2276","&lgE;":"\u2A91","&lhard;":"\u21BD","&lharu;":"\u21BC","&lharul;":"\u296A","&lhblk;":"\u2584","&ljcy;":"\u0459","&ll;":"\u226A","&llarr;":"\u21C7","&llcorner;":"\u231E","&llhard;":"\u296B","&lltri;":"\u25FA","&lmidot;":"\u0140","&lmoust;":"\u23B0","&lmoustache;":"\u23B0","&lnE;":"\u2268","&lnap;":"\u2A89","&lnapprox;":"\u2A89","&lne;":"\u2A87","&lneq;":"\u2A87","&lneqq;":"\u2268","&lnsim;":"\u22E6","&loang;":"\u27EC","&loarr;":"\u21FD","&lobrk;":"\u27E6","&longleftarrow;":"\u27F5","&longleftrightarrow;":"\u27F7","&longmapsto;":"\u27FC","&longrightarrow;":"\u27F6","&looparrowleft;":"\u21AB","&looparrowright;":"\u21AC","&lopar;":"\u2985","&lopf;":"\u{1D55D}","&loplus;":"\u2A2D","&lotimes;":"\u2A34","&lowast;":"\u2217","&lowbar;":"_","&loz;":"\u25CA","&lozenge;":"\u25CA","&lozf;":"\u29EB","&lpar;":"(","&lparlt;":"\u2993","&lrarr;":"\u21C6","&lrcorner;":"\u231F","&lrhar;":"\u21CB","&lrhard;":"\u296D","&lrm;":"\u200E","&lrtri;":"\u22BF","&lsaquo;":"\u2039","&lscr;":"\u{1D4C1}","&lsh;":"\u21B0","&lsim;":"\u2272","&lsime;":"\u2A8D","&lsimg;":"\u2A8F","&lsqb;":"[","&lsquo;":"\u2018","&lsquor;":"\u201A","&lstrok;":"\u0142","&lt":"<","&lt;":"<","&ltcc;":"\u2AA6","&ltcir;":"\u2A79","&ltdot;":"\u22D6","&lthree;":"\u22CB","&ltimes;":"\u22C9","&ltlarr;":"\u2976","&ltquest;":"\u2A7B","&ltrPar;":"\u2996","&ltri;":"\u25C3","&ltrie;":"\u22B4","&ltrif;":"\u25C2","&lurdshar;":"\u294A","&luruhar;":"\u2966","&lvertneqq;":"\u2268\uFE00","&lvnE;":"\u2268\uFE00","&mDDot;":"\u223A","&macr":"\xAF","&macr;":"\xAF","&male;":"\u2642","&malt;":"\u2720","&maltese;":"\u2720","&map;":"\u21A6","&mapsto;":"\u21A6","&mapstodown;":"\u21A7","&mapstoleft;":"\u21A4","&mapstoup;":"\u21A5","&marker;":"\u25AE","&mcomma;":"\u2A29","&mcy;":"\u043C","&mdash;":"\u2014","&measuredangle;":"\u2221","&mfr;":"\u{1D52A}","&mho;":"\u2127","&micro":"\xB5","&micro;":"\xB5","&mid;":"\u2223","&midast;":"*","&midcir;":"\u2AF0","&middot":"\xB7","&middot;":"\xB7","&minus;":"\u2212","&minusb;":"\u229F","&minusd;":"\u2238","&minusdu;":"\u2A2A","&mlcp;":"\u2ADB","&mldr;":"\u2026","&mnplus;":"\u2213","&models;":"\u22A7","&mopf;":"\u{1D55E}","&mp;":"\u2213","&mscr;":"\u{1D4C2}","&mstpos;":"\u223E","&mu;":"\u03BC","&multimap;":"\u22B8","&mumap;":"\u22B8","&nGg;":"\u22D9\u0338","&nGt;":"\u226B\u20D2","&nGtv;":"\u226B\u0338","&nLeftarrow;":"\u21CD","&nLeftrightarrow;":"\u21CE","&nLl;":"\u22D8\u0338","&nLt;":"\u226A\u20D2","&nLtv;":"\u226A\u0338","&nRightarrow;":"\u21CF","&nVDash;":"\u22AF","&nVdash;":"\u22AE","&nabla;":"\u2207","&nacute;":"\u0144","&nang;":"\u2220\u20D2","&nap;":"\u2249","&napE;":"\u2A70\u0338","&napid;":"\u224B\u0338","&napos;":"\u0149","&napprox;":"\u2249","&natur;":"\u266E","&natural;":"\u266E","&naturals;":"\u2115","&nbsp":"\xA0","&nbsp;":"\xA0","&nbump;":"\u224E\u0338","&nbumpe;":"\u224F\u0338","&ncap;":"\u2A43","&ncaron;":"\u0148","&ncedil;":"\u0146","&ncong;":"\u2247","&ncongdot;":"\u2A6D\u0338","&ncup;":"\u2A42","&ncy;":"\u043D","&ndash;":"\u2013","&ne;":"\u2260","&neArr;":"\u21D7","&nearhk;":"\u2924","&nearr;":"\u2197","&nearrow;":"\u2197","&nedot;":"\u2250\u0338","&nequiv;":"\u2262","&nesear;":"\u2928","&nesim;":"\u2242\u0338","&nexist;":"\u2204","&nexists;":"\u2204","&nfr;":"\u{1D52B}","&ngE;":"\u2267\u0338","&nge;":"\u2271","&ngeq;":"\u2271","&ngeqq;":"\u2267\u0338","&ngeqslant;":"\u2A7E\u0338","&nges;":"\u2A7E\u0338","&ngsim;":"\u2275","&ngt;":"\u226F","&ngtr;":"\u226F","&nhArr;":"\u21CE","&nharr;":"\u21AE","&nhpar;":"\u2AF2","&ni;":"\u220B","&nis;":"\u22FC","&nisd;":"\u22FA","&niv;":"\u220B","&njcy;":"\u045A","&nlArr;":"\u21CD","&nlE;":"\u2266\u0338","&nlarr;":"\u219A","&nldr;":"\u2025","&nle;":"\u2270","&nleftarrow;":"\u219A","&nleftrightarrow;":"\u21AE","&nleq;":"\u2270","&nleqq;":"\u2266\u0338","&nleqslant;":"\u2A7D\u0338","&nles;":"\u2A7D\u0338","&nless;":"\u226E","&nlsim;":"\u2274","&nlt;":"\u226E","&nltri;":"\u22EA","&nltrie;":"\u22EC","&nmid;":"\u2224","&nopf;":"\u{1D55F}","&not":"\xAC","&not;":"\xAC","&notin;":"\u2209","&notinE;":"\u22F9\u0338","&notindot;":"\u22F5\u0338","&notinva;":"\u2209","&notinvb;":"\u22F7","&notinvc;":"\u22F6","&notni;":"\u220C","&notniva;":"\u220C","&notnivb;":"\u22FE","&notnivc;":"\u22FD","&npar;":"\u2226","&nparallel;":"\u2226","&nparsl;":"\u2AFD\u20E5","&npart;":"\u2202\u0338","&npolint;":"\u2A14","&npr;":"\u2280","&nprcue;":"\u22E0","&npre;":"\u2AAF\u0338","&nprec;":"\u2280","&npreceq;":"\u2AAF\u0338","&nrArr;":"\u21CF","&nrarr;":"\u219B","&nrarrc;":"\u2933\u0338","&nrarrw;":"\u219D\u0338","&nrightarrow;":"\u219B","&nrtri;":"\u22EB","&nrtrie;":"\u22ED","&nsc;":"\u2281","&nsccue;":"\u22E1","&nsce;":"\u2AB0\u0338","&nscr;":"\u{1D4C3}","&nshortmid;":"\u2224","&nshortparallel;":"\u2226","&nsim;":"\u2241","&nsime;":"\u2244","&nsimeq;":"\u2244","&nsmid;":"\u2224","&nspar;":"\u2226","&nsqsube;":"\u22E2","&nsqsupe;":"\u22E3","&nsub;":"\u2284","&nsubE;":"\u2AC5\u0338","&nsube;":"\u2288","&nsubset;":"\u2282\u20D2","&nsubseteq;":"\u2288","&nsubseteqq;":"\u2AC5\u0338","&nsucc;":"\u2281","&nsucceq;":"\u2AB0\u0338","&nsup;":"\u2285","&nsupE;":"\u2AC6\u0338","&nsupe;":"\u2289","&nsupset;":"\u2283\u20D2","&nsupseteq;":"\u2289","&nsupseteqq;":"\u2AC6\u0338","&ntgl;":"\u2279","&ntilde":"\xF1","&ntilde;":"\xF1","&ntlg;":"\u2278","&ntriangleleft;":"\u22EA","&ntrianglelefteq;":"\u22EC","&ntriangleright;":"\u22EB","&ntrianglerighteq;":"\u22ED","&nu;":"\u03BD","&num;":"#","&numero;":"\u2116","&numsp;":"\u2007","&nvDash;":"\u22AD","&nvHarr;":"\u2904","&nvap;":"\u224D\u20D2","&nvdash;":"\u22AC","&nvge;":"\u2265\u20D2","&nvgt;":">\u20D2","&nvinfin;":"\u29DE","&nvlArr;":"\u2902","&nvle;":"\u2264\u20D2","&nvlt;":"<\u20D2","&nvltrie;":"\u22B4\u20D2","&nvrArr;":"\u2903","&nvrtrie;":"\u22B5\u20D2","&nvsim;":"\u223C\u20D2","&nwArr;":"\u21D6","&nwarhk;":"\u2923","&nwarr;":"\u2196","&nwarrow;":"\u2196","&nwnear;":"\u2927","&oS;":"\u24C8","&oacute":"\xF3","&oacute;":"\xF3","&oast;":"\u229B","&ocir;":"\u229A","&ocirc":"\xF4","&ocirc;":"\xF4","&ocy;":"\u043E","&odash;":"\u229D","&odblac;":"\u0151","&odiv;":"\u2A38","&odot;":"\u2299","&odsold;":"\u29BC","&oelig;":"\u0153","&ofcir;":"\u29BF","&ofr;":"\u{1D52C}","&ogon;":"\u02DB","&ograve":"\xF2","&ograve;":"\xF2","&ogt;":"\u29C1","&ohbar;":"\u29B5","&ohm;":"\u03A9","&oint;":"\u222E","&olarr;":"\u21BA","&olcir;":"\u29BE","&olcross;":"\u29BB","&oline;":"\u203E","&olt;":"\u29C0","&omacr;":"\u014D","&omega;":"\u03C9","&omicron;":"\u03BF","&omid;":"\u29B6","&ominus;":"\u2296","&oopf;":"\u{1D560}","&opar;":"\u29B7","&operp;":"\u29B9","&oplus;":"\u2295","&or;":"\u2228","&orarr;":"\u21BB","&ord;":"\u2A5D","&order;":"\u2134","&orderof;":"\u2134","&ordf":"\xAA","&ordf;":"\xAA","&ordm":"\xBA","&ordm;":"\xBA","&origof;":"\u22B6","&oror;":"\u2A56","&orslope;":"\u2A57","&orv;":"\u2A5B","&oscr;":"\u2134","&oslash":"\xF8","&oslash;":"\xF8","&osol;":"\u2298","&otilde":"\xF5","&otilde;":"\xF5","&otimes;":"\u2297","&otimesas;":"\u2A36","&ouml":"\xF6","&ouml;":"\xF6","&ovbar;":"\u233D","&par;":"\u2225","&para":"\xB6","&para;":"\xB6","&parallel;":"\u2225","&parsim;":"\u2AF3","&parsl;":"\u2AFD","&part;":"\u2202","&pcy;":"\u043F","&percnt;":"%","&period;":".","&permil;":"\u2030","&perp;":"\u22A5","&pertenk;":"\u2031","&pfr;":"\u{1D52D}","&phi;":"\u03C6","&phiv;":"\u03D5","&phmmat;":"\u2133","&phone;":"\u260E","&pi;":"\u03C0","&pitchfork;":"\u22D4","&piv;":"\u03D6","&planck;":"\u210F","&planckh;":"\u210E","&plankv;":"\u210F","&plus;":"+","&plusacir;":"\u2A23","&plusb;":"\u229E","&pluscir;":"\u2A22","&plusdo;":"\u2214","&plusdu;":"\u2A25","&pluse;":"\u2A72","&plusmn":"\xB1","&plusmn;":"\xB1","&plussim;":"\u2A26","&plustwo;":"\u2A27","&pm;":"\xB1","&pointint;":"\u2A15","&popf;":"\u{1D561}","&pound":"\xA3","&pound;":"\xA3","&pr;":"\u227A","&prE;":"\u2AB3","&prap;":"\u2AB7","&prcue;":"\u227C","&pre;":"\u2AAF","&prec;":"\u227A","&precapprox;":"\u2AB7","&preccurlyeq;":"\u227C","&preceq;":"\u2AAF","&precnapprox;":"\u2AB9","&precneqq;":"\u2AB5","&precnsim;":"\u22E8","&precsim;":"\u227E","&prime;":"\u2032","&primes;":"\u2119","&prnE;":"\u2AB5","&prnap;":"\u2AB9","&prnsim;":"\u22E8","&prod;":"\u220F","&profalar;":"\u232E","&profline;":"\u2312","&profsurf;":"\u2313","&prop;":"\u221D","&propto;":"\u221D","&prsim;":"\u227E","&prurel;":"\u22B0","&pscr;":"\u{1D4C5}","&psi;":"\u03C8","&puncsp;":"\u2008","&qfr;":"\u{1D52E}","&qint;":"\u2A0C","&qopf;":"\u{1D562}","&qprime;":"\u2057","&qscr;":"\u{1D4C6}","&quaternions;":"\u210D","&quatint;":"\u2A16","&quest;":"?","&questeq;":"\u225F","&quot":'"',"&quot;":'"',"&rAarr;":"\u21DB","&rArr;":"\u21D2","&rAtail;":"\u291C","&rBarr;":"\u290F","&rHar;":"\u2964","&race;":"\u223D\u0331","&racute;":"\u0155","&radic;":"\u221A","&raemptyv;":"\u29B3","&rang;":"\u27E9","&rangd;":"\u2992","&range;":"\u29A5","&rangle;":"\u27E9","&raquo":"\xBB","&raquo;":"\xBB","&rarr;":"\u2192","&rarrap;":"\u2975","&rarrb;":"\u21E5","&rarrbfs;":"\u2920","&rarrc;":"\u2933","&rarrfs;":"\u291E","&rarrhk;":"\u21AA","&rarrlp;":"\u21AC","&rarrpl;":"\u2945","&rarrsim;":"\u2974","&rarrtl;":"\u21A3","&rarrw;":"\u219D","&ratail;":"\u291A","&ratio;":"\u2236","&rationals;":"\u211A","&rbarr;":"\u290D","&rbbrk;":"\u2773","&rbrace;":"}","&rbrack;":"]","&rbrke;":"\u298C","&rbrksld;":"\u298E","&rbrkslu;":"\u2990","&rcaron;":"\u0159","&rcedil;":"\u0157","&rceil;":"\u2309","&rcub;":"}","&rcy;":"\u0440","&rdca;":"\u2937","&rdldhar;":"\u2969","&rdquo;":"\u201D","&rdquor;":"\u201D","&rdsh;":"\u21B3","&real;":"\u211C","&realine;":"\u211B","&realpart;":"\u211C","&reals;":"\u211D","&rect;":"\u25AD","&reg":"\xAE","&reg;":"\xAE","&rfisht;":"\u297D","&rfloor;":"\u230B","&rfr;":"\u{1D52F}","&rhard;":"\u21C1","&rharu;":"\u21C0","&rharul;":"\u296C","&rho;":"\u03C1","&rhov;":"\u03F1","&rightarrow;":"\u2192","&rightarrowtail;":"\u21A3","&rightharpoondown;":"\u21C1","&rightharpoonup;":"\u21C0","&rightleftarrows;":"\u21C4","&rightleftharpoons;":"\u21CC","&rightrightarrows;":"\u21C9","&rightsquigarrow;":"\u219D","&rightthreetimes;":"\u22CC","&ring;":"\u02DA","&risingdotseq;":"\u2253","&rlarr;":"\u21C4","&rlhar;":"\u21CC","&rlm;":"\u200F","&rmoust;":"\u23B1","&rmoustache;":"\u23B1","&rnmid;":"\u2AEE","&roang;":"\u27ED","&roarr;":"\u21FE","&robrk;":"\u27E7","&ropar;":"\u2986","&ropf;":"\u{1D563}","&roplus;":"\u2A2E","&rotimes;":"\u2A35","&rpar;":")","&rpargt;":"\u2994","&rppolint;":"\u2A12","&rrarr;":"\u21C9","&rsaquo;":"\u203A","&rscr;":"\u{1D4C7}","&rsh;":"\u21B1","&rsqb;":"]","&rsquo;":"\u2019","&rsquor;":"\u2019","&rthree;":"\u22CC","&rtimes;":"\u22CA","&rtri;":"\u25B9","&rtrie;":"\u22B5","&rtrif;":"\u25B8","&rtriltri;":"\u29CE","&ruluhar;":"\u2968","&rx;":"\u211E","&sacute;":"\u015B","&sbquo;":"\u201A","&sc;":"\u227B","&scE;":"\u2AB4","&scap;":"\u2AB8","&scaron;":"\u0161","&sccue;":"\u227D","&sce;":"\u2AB0","&scedil;":"\u015F","&scirc;":"\u015D","&scnE;":"\u2AB6","&scnap;":"\u2ABA","&scnsim;":"\u22E9","&scpolint;":"\u2A13","&scsim;":"\u227F","&scy;":"\u0441","&sdot;":"\u22C5","&sdotb;":"\u22A1","&sdote;":"\u2A66","&seArr;":"\u21D8","&searhk;":"\u2925","&searr;":"\u2198","&searrow;":"\u2198","&sect":"\xA7","&sect;":"\xA7","&semi;":";","&seswar;":"\u2929","&setminus;":"\u2216","&setmn;":"\u2216","&sext;":"\u2736","&sfr;":"\u{1D530}","&sfrown;":"\u2322","&sharp;":"\u266F","&shchcy;":"\u0449","&shcy;":"\u0448","&shortmid;":"\u2223","&shortparallel;":"\u2225","&shy":"\xAD","&shy;":"\xAD","&sigma;":"\u03C3","&sigmaf;":"\u03C2","&sigmav;":"\u03C2","&sim;":"\u223C","&simdot;":"\u2A6A","&sime;":"\u2243","&simeq;":"\u2243","&simg;":"\u2A9E","&simgE;":"\u2AA0","&siml;":"\u2A9D","&simlE;":"\u2A9F","&simne;":"\u2246","&simplus;":"\u2A24","&simrarr;":"\u2972","&slarr;":"\u2190","&smallsetminus;":"\u2216","&smashp;":"\u2A33","&smeparsl;":"\u29E4","&smid;":"\u2223","&smile;":"\u2323","&smt;":"\u2AAA","&smte;":"\u2AAC","&smtes;":"\u2AAC\uFE00","&softcy;":"\u044C","&sol;":"/","&solb;":"\u29C4","&solbar;":"\u233F","&sopf;":"\u{1D564}","&spades;":"\u2660","&spadesuit;":"\u2660","&spar;":"\u2225","&sqcap;":"\u2293","&sqcaps;":"\u2293\uFE00","&sqcup;":"\u2294","&sqcups;":"\u2294\uFE00","&sqsub;":"\u228F","&sqsube;":"\u2291","&sqsubset;":"\u228F","&sqsubseteq;":"\u2291","&sqsup;":"\u2290","&sqsupe;":"\u2292","&sqsupset;":"\u2290","&sqsupseteq;":"\u2292","&squ;":"\u25A1","&square;":"\u25A1","&squarf;":"\u25AA","&squf;":"\u25AA","&srarr;":"\u2192","&sscr;":"\u{1D4C8}","&ssetmn;":"\u2216","&ssmile;":"\u2323","&sstarf;":"\u22C6","&star;":"\u2606","&starf;":"\u2605","&straightepsilon;":"\u03F5","&straightphi;":"\u03D5","&strns;":"\xAF","&sub;":"\u2282","&subE;":"\u2AC5","&subdot;":"\u2ABD","&sube;":"\u2286","&subedot;":"\u2AC3","&submult;":"\u2AC1","&subnE;":"\u2ACB","&subne;":"\u228A","&subplus;":"\u2ABF","&subrarr;":"\u2979","&subset;":"\u2282","&subseteq;":"\u2286","&subseteqq;":"\u2AC5","&subsetneq;":"\u228A","&subsetneqq;":"\u2ACB","&subsim;":"\u2AC7","&subsub;":"\u2AD5","&subsup;":"\u2AD3","&succ;":"\u227B","&succapprox;":"\u2AB8","&succcurlyeq;":"\u227D","&succeq;":"\u2AB0","&succnapprox;":"\u2ABA","&succneqq;":"\u2AB6","&succnsim;":"\u22E9","&succsim;":"\u227F","&sum;":"\u2211","&sung;":"\u266A","&sup1":"\xB9","&sup1;":"\xB9","&sup2":"\xB2","&sup2;":"\xB2","&sup3":"\xB3","&sup3;":"\xB3","&sup;":"\u2283","&supE;":"\u2AC6","&supdot;":"\u2ABE","&supdsub;":"\u2AD8","&supe;":"\u2287","&supedot;":"\u2AC4","&suphsol;":"\u27C9","&suphsub;":"\u2AD7","&suplarr;":"\u297B","&supmult;":"\u2AC2","&supnE;":"\u2ACC","&supne;":"\u228B","&supplus;":"\u2AC0","&supset;":"\u2283","&supseteq;":"\u2287","&supseteqq;":"\u2AC6","&supsetneq;":"\u228B","&supsetneqq;":"\u2ACC","&supsim;":"\u2AC8","&supsub;":"\u2AD4","&supsup;":"\u2AD6","&swArr;":"\u21D9","&swarhk;":"\u2926","&swarr;":"\u2199","&swarrow;":"\u2199","&swnwar;":"\u292A","&szlig":"\xDF","&szlig;":"\xDF","&target;":"\u2316","&tau;":"\u03C4","&tbrk;":"\u23B4","&tcaron;":"\u0165","&tcedil;":"\u0163","&tcy;":"\u0442","&tdot;":"\u20DB","&telrec;":"\u2315","&tfr;":"\u{1D531}","&there4;":"\u2234","&therefore;":"\u2234","&theta;":"\u03B8","&thetasym;":"\u03D1","&thetav;":"\u03D1","&thickapprox;":"\u2248","&thicksim;":"\u223C","&thinsp;":"\u2009","&thkap;":"\u2248","&thksim;":"\u223C","&thorn":"\xFE","&thorn;":"\xFE","&tilde;":"\u02DC","&times":"\xD7","&times;":"\xD7","&timesb;":"\u22A0","&timesbar;":"\u2A31","&timesd;":"\u2A30","&tint;":"\u222D","&toea;":"\u2928","&top;":"\u22A4","&topbot;":"\u2336","&topcir;":"\u2AF1","&topf;":"\u{1D565}","&topfork;":"\u2ADA","&tosa;":"\u2929","&tprime;":"\u2034","&trade;":"\u2122","&triangle;":"\u25B5","&triangledown;":"\u25BF","&triangleleft;":"\u25C3","&trianglelefteq;":"\u22B4","&triangleq;":"\u225C","&triangleright;":"\u25B9","&trianglerighteq;":"\u22B5","&tridot;":"\u25EC","&trie;":"\u225C","&triminus;":"\u2A3A","&triplus;":"\u2A39","&trisb;":"\u29CD","&tritime;":"\u2A3B","&trpezium;":"\u23E2","&tscr;":"\u{1D4C9}","&tscy;":"\u0446","&tshcy;":"\u045B","&tstrok;":"\u0167","&twixt;":"\u226C","&twoheadleftarrow;":"\u219E","&twoheadrightarrow;":"\u21A0","&uArr;":"\u21D1","&uHar;":"\u2963","&uacute":"\xFA","&uacute;":"\xFA","&uarr;":"\u2191","&ubrcy;":"\u045E","&ubreve;":"\u016D","&ucirc":"\xFB","&ucirc;":"\xFB","&ucy;":"\u0443","&udarr;":"\u21C5","&udblac;":"\u0171","&udhar;":"\u296E","&ufisht;":"\u297E","&ufr;":"\u{1D532}","&ugrave":"\xF9","&ugrave;":"\xF9","&uharl;":"\u21BF","&uharr;":"\u21BE","&uhblk;":"\u2580","&ulcorn;":"\u231C","&ulcorner;":"\u231C","&ulcrop;":"\u230F","&ultri;":"\u25F8","&umacr;":"\u016B","&uml":"\xA8","&uml;":"\xA8","&uogon;":"\u0173","&uopf;":"\u{1D566}","&uparrow;":"\u2191","&updownarrow;":"\u2195","&upharpoonleft;":"\u21BF","&upharpoonright;":"\u21BE","&uplus;":"\u228E","&upsi;":"\u03C5","&upsih;":"\u03D2","&upsilon;":"\u03C5","&upuparrows;":"\u21C8","&urcorn;":"\u231D","&urcorner;":"\u231D","&urcrop;":"\u230E","&uring;":"\u016F","&urtri;":"\u25F9","&uscr;":"\u{1D4CA}","&utdot;":"\u22F0","&utilde;":"\u0169","&utri;":"\u25B5","&utrif;":"\u25B4","&uuarr;":"\u21C8","&uuml":"\xFC","&uuml;":"\xFC","&uwangle;":"\u29A7","&vArr;":"\u21D5","&vBar;":"\u2AE8","&vBarv;":"\u2AE9","&vDash;":"\u22A8","&vangrt;":"\u299C","&varepsilon;":"\u03F5","&varkappa;":"\u03F0","&varnothing;":"\u2205","&varphi;":"\u03D5","&varpi;":"\u03D6","&varpropto;":"\u221D","&varr;":"\u2195","&varrho;":"\u03F1","&varsigma;":"\u03C2","&varsubsetneq;":"\u228A\uFE00","&varsubsetneqq;":"\u2ACB\uFE00","&varsupsetneq;":"\u228B\uFE00","&varsupsetneqq;":"\u2ACC\uFE00","&vartheta;":"\u03D1","&vartriangleleft;":"\u22B2","&vartriangleright;":"\u22B3","&vcy;":"\u0432","&vdash;":"\u22A2","&vee;":"\u2228","&veebar;":"\u22BB","&veeeq;":"\u225A","&vellip;":"\u22EE","&verbar;":"|","&vert;":"|","&vfr;":"\u{1D533}","&vltri;":"\u22B2","&vnsub;":"\u2282\u20D2","&vnsup;":"\u2283\u20D2","&vopf;":"\u{1D567}","&vprop;":"\u221D","&vrtri;":"\u22B3","&vscr;":"\u{1D4CB}","&vsubnE;":"\u2ACB\uFE00","&vsubne;":"\u228A\uFE00","&vsupnE;":"\u2ACC\uFE00","&vsupne;":"\u228B\uFE00","&vzigzag;":"\u299A","&wcirc;":"\u0175","&wedbar;":"\u2A5F","&wedge;":"\u2227","&wedgeq;":"\u2259","&weierp;":"\u2118","&wfr;":"\u{1D534}","&wopf;":"\u{1D568}","&wp;":"\u2118","&wr;":"\u2240","&wreath;":"\u2240","&wscr;":"\u{1D4CC}","&xcap;":"\u22C2","&xcirc;":"\u25EF","&xcup;":"\u22C3","&xdtri;":"\u25BD","&xfr;":"\u{1D535}","&xhArr;":"\u27FA","&xharr;":"\u27F7","&xi;":"\u03BE","&xlArr;":"\u27F8","&xlarr;":"\u27F5","&xmap;":"\u27FC","&xnis;":"\u22FB","&xodot;":"\u2A00","&xopf;":"\u{1D569}","&xoplus;":"\u2A01","&xotime;":"\u2A02","&xrArr;":"\u27F9","&xrarr;":"\u27F6","&xscr;":"\u{1D4CD}","&xsqcup;":"\u2A06","&xuplus;":"\u2A04","&xutri;":"\u25B3","&xvee;":"\u22C1","&xwedge;":"\u22C0","&yacute":"\xFD","&yacute;":"\xFD","&yacy;":"\u044F","&ycirc;":"\u0177","&ycy;":"\u044B","&yen":"\xA5","&yen;":"\xA5","&yfr;":"\u{1D536}","&yicy;":"\u0457","&yopf;":"\u{1D56A}","&yscr;":"\u{1D4CE}","&yucy;":"\u044E","&yuml":"\xFF","&yuml;":"\xFF","&zacute;":"\u017A","&zcaron;":"\u017E","&zcy;":"\u0437","&zdot;":"\u017C","&zeetrf;":"\u2128","&zeta;":"\u03B6","&zfr;":"\u{1D537}","&zhcy;":"\u0436","&zigrarr;":"\u21DD","&zopf;":"\u{1D56B}","&zscr;":"\u{1D4CF}","&zwj;":"\u200D","&zwnj;":"\u200C"};function decodeHTMLEntities(p){return p.replace(/&(#\d+|#x[a-f0-9]+|[a-z]+\d*);?/gi,(f,S)=>{if(typeof htmlEntities[f]=="string")return htmlEntities[f];if(S.charAt(0)!=="#"||f.charAt(f.length-1)!==";")return f;let d;S.charAt(1)==="x"?d=parseInt(S.substr(2),16):d=parseInt(S.substr(1),10);var R="";return d>=55296&&d<=57343||d>1114111?"\uFFFD":(d>65535&&(d-=65536,R+=String.fromCharCode(d>>>10&1023|55296),d=56320|d&1023),R+=String.fromCharCode(d),R)})}function escapeHtml(p){return p.trim().replace(/[<>"'?&]/g,f=>{let S=f.charCodeAt(0).toString(16);return S.length<2&&(S="0"+S),"&#x"+S.toUpperCase()+";"})}function textToHtml(p){let f=escapeHtml(p).replace(/\n/g,"<br />");return"<div>"+f+"</div>"}function htmlToText(p){return p=p.replace(/\r?\n/g,"").replace(/<\!\-\-.*?\-\->/gi," ").replace(/<br\b[^>]*>/gi,`
26
- `).replace(/<\/?(p|div|table|tr|td|th)\b[^>]*>/gi,`
27
-
28
- `).replace(/<script\b[^>]*>.*?<\/script\b[^>]*>/gi," ").replace(/^.*<body\b[^>]*>/i,"").replace(/^.*<\/head\b[^>]*>/i,"").replace(/^.*<\!doctype\b[^>]*>/i,"").replace(/<\/body\b[^>]*>.*$/i,"").replace(/<\/html\b[^>]*>.*$/i,"").replace(/<a\b[^>]*href\s*=\s*["']?([^\s"']+)[^>]*>/gi," ($1) ").replace(/<\/?(span|em|i|strong|b|u|a)\b[^>]*>/gi,"").replace(/<li\b[^>]*>[\n\u0001\s]*/gi,"* ").replace(/<hr\b[^>]*>/g,`
29
- -------------
30
- `).replace(/<[^>]*>/g," ").replace(/\u0001/g,`
31
- `).replace(/[ \t]+/g," ").replace(/^\s+$/gm,"").replace(/\n\n+/g,`
32
-
33
- `).replace(/^\n+/,`
34
- `).replace(/\n+$/,`
35
- `),p=decodeHTMLEntities(p),p}function formatTextAddress(p){return[].concat(p.name||[]).concat(p.name?`<${p.address}>`:p.address).join(" ")}function formatTextAddresses(p){let f=[],S=(d,R)=>{if(R&&f.push(", "),d.group){let g=`${d.name}:`,O=";";f.push(g),d.group.forEach(S),f.push(O)}else f.push(formatTextAddress(d))};return p.forEach(S),f.join("")}function formatHtmlAddress(p){return`<a href="mailto:${escapeHtml(p.address)}" class="postal-email-address">${escapeHtml(p.name||`<${p.address}>`)}</a>`}function formatHtmlAddresses(p){let f=[],S=(d,R)=>{if(R&&f.push('<span class="postal-email-address-separator">, </span>'),d.group){let g=`<span class="postal-email-address-group">${escapeHtml(d.name)}:</span>`,O='<span class="postal-email-address-group">;</span>';f.push(g),d.group.forEach(S),f.push(O)}else f.push(formatHtmlAddress(d))};return p.forEach(S),f.join(" ")}function foldLines(p,f,S){p=(p||"").toString(),f=f||76;let d=0,R=p.length,g="",O,J;for(;d<R;){if(O=p.substr(d,f),O.length<f){g+=O;break}if(J=O.match(/^[^\n\r]*(\r?\n|\r)/)){O=J[0],g+=O,d+=O.length;continue}else(J=O.match(/(\s+)[^\s]*$/))&&J[0].length-(S?(J[1]||"").length:0)<O.length?O=O.substr(0,O.length-(J[0].length-(S?(J[1]||"").length:0))):(J=p.substr(d+O.length).match(/^[^\s]+(\s*)/))&&(O=O+J[0].substr(0,J[0].length-(S?0:(J[1]||"").length)));g+=O,d+=O.length,d<R&&(g+=`\r
36
- `)}return g}function formatTextHeader(p){let f=[];if(p.from&&f.push({key:"From",val:formatTextAddress(p.from)}),p.subject&&f.push({key:"Subject",val:p.subject}),p.date){let O={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1},J=typeof Intl=="undefined"?p.date:new Intl.DateTimeFormat("default",O).format(new Date(p.date));f.push({key:"Date",val:J})}p.to&&p.to.length&&f.push({key:"To",val:formatTextAddresses(p.to)}),p.cc&&p.cc.length&&f.push({key:"Cc",val:formatTextAddresses(p.cc)}),p.bcc&&p.bcc.length&&f.push({key:"Bcc",val:formatTextAddresses(p.bcc)});let S=f.map(O=>O.key.length).reduce((O,J)=>J>O?J:O,0);f=f.flatMap(O=>{let J=S-O.key.length,a=`${O.key}: ${" ".repeat(J)}`,se=`${" ".repeat(O.key.length+1)} ${" ".repeat(J)}`;return foldLines(O.val,80,!0).split(/\r?\n/).map(ee=>ee.trim()).map((ee,ie)=>`${ie?se:a}${ee}`)});let d=f.map(O=>O.length).reduce((O,J)=>J>O?J:O,0),R="-".repeat(d);return`
37
- ${R}
38
- ${f.join(`
39
- `)}
40
- ${R}
41
- `}function formatHtmlHeader(p){let f=[];if(p.from&&f.push(`<div class="postal-email-header-key">From</div><div class="postal-email-header-value">${formatHtmlAddress(p.from)}</div>`),p.subject&&f.push(`<div class="postal-email-header-key">Subject</div><div class="postal-email-header-value postal-email-header-subject">${escapeHtml(p.subject)}</div>`),p.date){let d={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1},R=typeof Intl=="undefined"?p.date:new Intl.DateTimeFormat("default",d).format(new Date(p.date));f.push(`<div class="postal-email-header-key">Date</div><div class="postal-email-header-value postal-email-header-date" data-date="${escapeHtml(p.date)}">${escapeHtml(R)}</div>`)}return p.to&&p.to.length&&f.push(`<div class="postal-email-header-key">To</div><div class="postal-email-header-value">${formatHtmlAddresses(p.to)}</div>`),p.cc&&p.cc.length&&f.push(`<div class="postal-email-header-key">Cc</div><div class="postal-email-header-value">${formatHtmlAddresses(p.cc)}</div>`),p.bcc&&p.bcc.length&&f.push(`<div class="postal-email-header-key">Bcc</div><div class="postal-email-header-value">${formatHtmlAddresses(p.bcc)}</div>`),`<div class="postal-email-header">${f.length?'<div class="postal-email-header-row">':""}${f.join(`</div>
42
- <div class="postal-email-header-row">`)}${f.length?"</div>":""}</div>`}function _handleAddress(p){let f,S=!1,d="text",R,g=[],O={address:[],comment:[],group:[],text:[]},J,a;for(J=0,a=p.length;J<a;J++)if(f=p[J],f.type==="operator")switch(f.value){case"<":d="address";break;case"(":d="comment";break;case":":d="group",S=!0;break;default:d="text"}else f.value&&(d==="address"&&(f.value=f.value.replace(/^[^<]*<\s*/,"")),O[d].push(f.value));if(!O.text.length&&O.comment.length&&(O.text=O.comment,O.comment=[]),S)O.text=O.text.join(" "),g.push({name:decodeWords(O.text||R&&R.name),group:O.group.length?addressParser(O.group.join(",")):[]});else{if(!O.address.length&&O.text.length){for(J=O.text.length-1;J>=0;J--)if(O.text[J].match(/^[^@\s]+@[^@\s]+$/)){O.address=O.text.splice(J,1);break}let se=function(H){return O.address.length?H:(O.address=[H.trim()]," ")};if(!O.address.length)for(J=O.text.length-1;J>=0&&(O.text[J]=O.text[J].replace(/\s*\b[^@\s]+@[^\s]+\b\s*/,se).trim(),!O.address.length);J--);}if(!O.text.length&&O.comment.length&&(O.text=O.comment,O.comment=[]),O.address.length>1&&(O.text=O.text.concat(O.address.splice(1))),O.text=O.text.join(" "),O.address=O.address.join(" "),!O.address&&/^=\?[^=]+?=$/.test(O.text.trim())){const se=addressParser(decodeWords(O.text));if(se&&se.length)return se}if(!O.address&&S)return[];R={address:O.address||O.text||"",name:decodeWords(O.text||O.address||"")},R.address===R.name&&((R.address||"").match(/@/)?R.name="":R.address=""),g.push(R)}return g}class Tokenizer{constructor(f){this.str=(f||"").toString(),this.operatorCurrent="",this.operatorExpecting="",this.node=null,this.escaped=!1,this.list=[],this.operators={'"':'"',"(":")","<":">",",":"",":":";",";":""}}tokenize(){let f,S=[];for(let d=0,R=this.str.length;d<R;d++)f=this.str.charAt(d),this.checkChar(f);return this.list.forEach(d=>{d.value=(d.value||"").toString().trim(),d.value&&S.push(d)}),S}checkChar(f){if(!this.escaped){if(f===this.operatorExpecting){this.node={type:"operator",value:f},this.list.push(this.node),this.node=null,this.operatorExpecting="",this.escaped=!1;return}else if(!this.operatorExpecting&&f in this.operators){this.node={type:"operator",value:f},this.list.push(this.node),this.node=null,this.operatorExpecting=this.operators[f],this.escaped=!1;return}else if(['"',"'"].includes(this.operatorExpecting)&&f==="\\"){this.escaped=!0;return}}this.node||(this.node={type:"text",value:""},this.list.push(this.node)),f===`
43
- `&&(f=" "),(f.charCodeAt(0)>=33||[" "," "].includes(f))&&(this.node.value+=f),this.escaped=!1}}function addressParser(p,f){f=f||{};let d=new Tokenizer(p).tokenize(),R=[],g=[],O=[];if(d.forEach(J=>{J.type==="operator"&&(J.value===","||J.value===";")?(g.length&&R.push(g),g=[]):g.push(J)}),g.length&&R.push(g),R.forEach(J=>{J=_handleAddress(J),J.length&&(O=O.concat(J))}),f.flatten){let J=[],a=se=>{se.forEach(H=>{if(H.group)return a(H.group);J.push(H)})};return a(O),J}return O}class PostalMime{static parse(f,S){return new PostalMime(S).parse(f)}constructor(f){this.options=f||{},this.root=this.currentNode=new MimeNode({postalMime:this}),this.boundaries=[],this.textContent={},this.attachments=[],this.started=!1}async finalize(){await this.root.finalize()}async processLine(f,S){let d=this.boundaries;if(d.length&&f.length>2&&f[0]===45&&f[1]===45)for(let R=d.length-1;R>=0;R--){let g=d[R];if(f.length!==g.value.length+2&&f.length!==g.value.length+4)continue;let O=f.length===g.value.length+4;if(O&&(f[f.length-2]!==45||f[f.length-1]!==45))continue;let J=!0;for(let a=0;a<g.value.length;a++)if(f[a+2]!==g.value[a]){J=!1;break}if(!!J)return O?(await g.node.finalize(),this.currentNode=g.node.parentNode||this.root):(await g.node.finalizeChildNodes(),this.currentNode=new MimeNode({postalMime:this,parentNode:g.node})),S?this.finalize():void 0}if(this.currentNode.feed(f),S)return this.finalize()}readLine(){let f=this.readPos,S=this.readPos,d=()=>({bytes:new Uint8Array(this.buf,f,S-f),done:this.readPos>=this.av.length});for(;this.readPos<this.av.length;){const R=this.av[this.readPos++];if(R!==13&&R!==10&&(S=this.readPos),R===10)return d()}return d()}async processNodeTree(){let f={},S=new Set,d=this.textMap=new Map,R=this.forceRfc822Attachments(),g=async(O,J,a)=>{if(J=J||!1,a=a||!1,O.contentType.multipart)O.contentType.multipart==="alternative"?J=O:O.contentType.multipart==="related"&&(a=O);else if(this.isInlineMessageRfc822(O)&&!R){const se=new PostalMime;O.subMessage=await se.parse(O.content),d.has(O)||d.set(O,{});let H=d.get(O);(O.subMessage.text||!O.subMessage.html)&&(H.plain=H.plain||[],H.plain.push({type:"subMessage",value:O.subMessage}),S.add("plain")),O.subMessage.html&&(H.html=H.html||[],H.html.push({type:"subMessage",value:O.subMessage}),S.add("html")),se.textMap&&se.textMap.forEach((ee,ie)=>{d.set(ie,ee)});for(let ee of O.subMessage.attachments||[])this.attachments.push(ee)}else if(this.isInlineTextNode(O)){let se=O.contentType.parsed.value.substr(O.contentType.parsed.value.indexOf("/")+1),H=J||O;d.has(H)||d.set(H,{});let ee=d.get(H);ee[se]=ee[se]||[],ee[se].push({type:"text",value:O.getTextContent()}),S.add(se)}else if(O.content){const se=O.contentDisposition.parsed.params.filename||O.contentType.parsed.params.name||null,H={filename:se?decodeWords(se):null,mimeType:O.contentType.parsed.value,disposition:O.contentDisposition.parsed.value||null};switch(a&&O.contentId&&(H.related=!0),O.contentDescription&&(H.description=O.contentDescription),O.contentId&&(H.contentId=O.contentId),O.contentType.parsed.value){case"text/calendar":case"application/ics":{O.contentType.parsed.params.method&&(H.method=O.contentType.parsed.params.method.toString().toUpperCase().trim());const ee=O.getTextContent().replace(/\r?\n/g,`
44
- `).replace(/\n*$/,`
45
- `);H.content=textEncoder.encode(ee);break}default:H.content=O.content}this.attachments.push(H)}for(let se of O.childNodes)await g(se,J,a)};await g(this.root,!1,[]),d.forEach(O=>{S.forEach(J=>{if(f[J]||(f[J]=[]),O[J])O[J].forEach(a=>{switch(a.type){case"text":f[J].push(a.value);break;case"subMessage":switch(J){case"html":f[J].push(formatHtmlHeader(a.value));break;case"plain":f[J].push(formatTextHeader(a.value));break}break}});else{let a;switch(J){case"html":a="plain";break;case"plain":a="html";break}(O[a]||[]).forEach(se=>{switch(se.type){case"text":switch(J){case"html":f[J].push(textToHtml(se.value));break;case"plain":f[J].push(htmlToText(se.value));break}break;case"subMessage":switch(J){case"html":f[J].push(formatHtmlHeader(se.value));break;case"plain":f[J].push(formatTextHeader(se.value));break}break}})}})}),Object.keys(f).forEach(O=>{f[O]=f[O].join(`
46
- `)}),this.textContent=f}isInlineTextNode(f){if(f.contentDisposition.parsed.value==="attachment")return!1;switch(f.contentType.parsed.value){case"text/html":case"text/plain":return!0;case"text/calendar":case"text/csv":default:return!1}}isInlineMessageRfc822(f){return f.contentType.parsed.value!=="message/rfc822"?!1:(f.contentDisposition.parsed.value||(this.options.rfc822Attachments?"attachment":"inline"))==="inline"}forceRfc822Attachments(){if(this.options.forceRfc822Attachments)return!0;let f=!1,S=d=>{d.contentType.multipart||["message/delivery-status","message/feedback-report"].includes(d.contentType.parsed.value)&&(f=!0);for(let R of d.childNodes)S(R)};return S(this.root),f}async resolveStream(f){let S=0,d=[];const R=f.getReader();for(;;){const{done:J,value:a}=await R.read();if(J)break;d.push(a),S+=a.length}const g=new Uint8Array(S);let O=0;for(let J of d)g.set(J,O),O+=J.length;return g}async parse(f){var R,g;if(this.started)throw new Error("Can not reuse parser, create a new PostalMime object");for(this.started=!0,f&&typeof f.getReader=="function"&&(f=await this.resolveStream(f)),f=f||new ArrayBuffer(0),typeof f=="string"&&(f=textEncoder.encode(f)),(f instanceof Blob||Object.prototype.toString.call(f)==="[object Blob]")&&(f=await blobToArrayBuffer(f)),f.buffer instanceof ArrayBuffer&&(f=new Uint8Array(f).buffer),this.buf=f,this.av=new Uint8Array(f),this.readPos=0;this.readPos<this.av.length;){const O=this.readLine();await this.processLine(O.bytes,O.done)}await this.processNodeTree();const S={headers:this.root.headers.map(O=>({key:O.key,value:O.value})).reverse()};for(const O of["from","sender"]){const J=this.root.headers.find(a=>a.key===O);if(J&&J.value){const a=addressParser(J.value);a&&a.length&&(S[O]=a[0])}}for(const O of["delivered-to","return-path"]){const J=this.root.headers.find(a=>a.key===O);if(J&&J.value){const a=addressParser(J.value);if(a&&a.length&&a[0].address){const se=O.replace(/\-(.)/g,(H,ee)=>ee.toUpperCase());S[se]=a[0].address}}}for(const O of["to","cc","bcc","reply-to"]){const J=this.root.headers.filter(se=>se.key===O);let a=[];if(J.filter(se=>se&&se.value).map(se=>addressParser(se.value)).forEach(se=>a=a.concat(se||[])),a&&a.length){const se=O.replace(/\-(.)/g,(H,ee)=>ee.toUpperCase());S[se]=a}}for(const O of["subject","message-id","in-reply-to","references"]){const J=this.root.headers.find(a=>a.key===O);if(J&&J.value){const a=O.replace(/\-(.)/g,(se,H)=>H.toUpperCase());S[a]=decodeWords(J.value)}}let d=this.root.headers.find(O=>O.key==="date");if(d){let O=new Date(d.value);!O||O.toString()==="Invalid Date"?O=d.value:O=O.toISOString(),S.date=O}return(R=this.textContent)!=null&&R.html&&(S.html=this.textContent.html),(g=this.textContent)!=null&&g.plain&&(S.text=this.textContent.plain),S.attachments=this.attachments,S}}const _sfc_main$8={props:["filedata"],data:()=>({emailData:null}),methods:{async parseEmail(){try{const f=await new PostalMime.default().parse(this.filedata);this.emailData=f,f.html&&(this.emailData.htmlAsText=convert(f.html,{}))}catch(p){console.error("Error parsing email data:",p)}}},async mounted(){await this.parseEmail()}},_hoisted_1$5={class:"font-18"},_hoisted_2$2={class:"d-flex align-items-start mb-2 mt-1"},_hoisted_3$2={class:"w-100"},_hoisted_4$2={class:"float-end"},_hoisted_5$2={class:"text-muted"},_hoisted_6$2={class:"w-100"},_hoisted_7$2={class:"text-muted"},_hoisted_8$1={key:0,class:"mb-3"},_hoisted_9$1=["innerHTML"],_hoisted_10$1=["open"],_hoisted_11$1=["innerHTML"],_hoisted_12$1={class:"mb-3"},_hoisted_13$1={class:"text-muted"},_hoisted_14$1={key:1,class:"text-center"};function _sfc_render$7(p,f,S,d,R,g){var O,J,a;return p.emailData?(openBlock(),createElementBlock(Fragment,{key:0},[createBaseVNode("h5",_hoisted_1$5,toDisplayString(p.emailData.subject),1),f[6]||(f[6]=createBaseVNode("hr",null,null,-1)),createBaseVNode("div",_hoisted_2$2,[createBaseVNode("div",_hoisted_3$2,[createBaseVNode("small",_hoisted_4$2,toDisplayString(p.emailData.date),1),createBaseVNode("small",_hoisted_5$2,"From: "+toDisplayString((O=p.emailData.from)==null?void 0:O.name)+" <"+toDisplayString((J=p.emailData.from)==null?void 0:J.address)+">",1)])]),createBaseVNode("div",_hoisted_6$2,[createBaseVNode("small",_hoisted_7$2,[f[0]||(f[0]=createTextVNode("To: ")),(openBlock(!0),createElementBlock(Fragment,null,renderList(p.emailData.to,se=>(openBlock(),createElementBlock(Fragment,null,[createTextVNode(toDisplayString(se.name)+" <"+toDisplayString(se.address)+">; ",1)],64))),256))])]),!p.emailData.html&&!p.emailData.text?(openBlock(),createElementBlock("h5",_hoisted_8$1,"This email has no HTML or text content")):createCommentVNode("",!0),p.emailData.html?(openBlock(),createElementBlock(Fragment,{key:1},[f[1]||(f[1]=createBaseVNode("br",null,null,-1)),createBaseVNode("div",{class:"overflow-auto",innerHTML:p.emailData.htmlAsText.replaceAll(`
47
- `,"<br>")},null,8,_hoisted_9$1),f[2]||(f[2]=createBaseVNode("hr",null,null,-1))],64)):createCommentVNode("",!0),p.emailData.text?(openBlock(),createElementBlock(Fragment,{key:2},[createBaseVNode("details",{open:p.emailData.html?void 0:"open"},[f[3]||(f[3]=createBaseVNode("summary",null,"Text",-1)),f[4]||(f[4]=createBaseVNode("br",null,null,-1)),createBaseVNode("div",{class:"overflow-auto",innerHTML:p.emailData.text.replaceAll(`
48
- `,"<br>")},null,8,_hoisted_11$1)],8,_hoisted_10$1),f[5]||(f[5]=createBaseVNode("hr",null,null,-1))],64)):createCommentVNode("",!0),((a=p.emailData.attachments)==null?void 0:a.length)>0?(openBlock(),createElementBlock(Fragment,{key:3},[createBaseVNode("h5",_hoisted_12$1,"This email has "+toDisplayString(p.emailData.attachments.length)+" attachment(s):",1),(openBlock(!0),createElementBlock(Fragment,null,renderList(p.emailData.attachments,se=>(openBlock(),createElementBlock("div",{class:"w-100",key:se.filename},[createBaseVNode("small",_hoisted_13$1,toDisplayString(se.filename),1)]))),128))],64)):createCommentVNode("",!0)],64)):(openBlock(),createElementBlock("div",_hoisted_14$1,f[7]||(f[7]=[createBaseVNode("div",{class:"lds-dual-ring"},null,-1)])))}var EmailViewer=_export_sfc(_sfc_main$8,[["render",_sfc_render$7]]),pdf$1={exports:{}},__viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$3=getAugmentedNamespace(__viteBrowserExternal$1);(function(module,exports){(function(f,S){module.exports=S()})(commonjsGlobal,function(){return function(p){var f={};function S(d){if(f[d])return f[d].exports;var R=f[d]={i:d,l:!1,exports:{}};return p[d].call(R.exports,R,R.exports,S),R.l=!0,R.exports}return S.m=p,S.c=f,S.d=function(d,R,g){S.o(d,R)||Object.defineProperty(d,R,{enumerable:!0,get:g})},S.r=function(d){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(d,"__esModule",{value:!0})},S.t=function(d,R){if(R&1&&(d=S(d)),R&8||R&4&&typeof d=="object"&&d&&d.__esModule)return d;var g=Object.create(null);if(S.r(g),Object.defineProperty(g,"default",{enumerable:!0,value:d}),R&2&&typeof d!="string")for(var O in d)S.d(g,O,function(J){return d[J]}.bind(null,O));return g},S.n=function(d){var R=d&&d.__esModule?function(){return d.default}:function(){return d};return S.d(R,"a",R),R},S.o=function(d,R){return Object.prototype.hasOwnProperty.call(d,R)},S.p="",S(S.s=0)}([function(p,f,S){Object.defineProperty(f,"__esModule",{value:!0}),Object.defineProperty(f,"addLinkAttributes",{enumerable:!0,get:function(){return d.addLinkAttributes}}),Object.defineProperty(f,"getFilenameFromUrl",{enumerable:!0,get:function(){return d.getFilenameFromUrl}}),Object.defineProperty(f,"LinkTarget",{enumerable:!0,get:function(){return d.LinkTarget}}),Object.defineProperty(f,"loadScript",{enumerable:!0,get:function(){return d.loadScript}}),Object.defineProperty(f,"PDFDateString",{enumerable:!0,get:function(){return d.PDFDateString}}),Object.defineProperty(f,"RenderingCancelledException",{enumerable:!0,get:function(){return d.RenderingCancelledException}}),Object.defineProperty(f,"build",{enumerable:!0,get:function(){return R.build}}),Object.defineProperty(f,"getDocument",{enumerable:!0,get:function(){return R.getDocument}}),Object.defineProperty(f,"LoopbackPort",{enumerable:!0,get:function(){return R.LoopbackPort}}),Object.defineProperty(f,"PDFDataRangeTransport",{enumerable:!0,get:function(){return R.PDFDataRangeTransport}}),Object.defineProperty(f,"PDFWorker",{enumerable:!0,get:function(){return R.PDFWorker}}),Object.defineProperty(f,"version",{enumerable:!0,get:function(){return R.version}}),Object.defineProperty(f,"CMapCompressionType",{enumerable:!0,get:function(){return g.CMapCompressionType}}),Object.defineProperty(f,"createObjectURL",{enumerable:!0,get:function(){return g.createObjectURL}}),Object.defineProperty(f,"createPromiseCapability",{enumerable:!0,get:function(){return g.createPromiseCapability}}),Object.defineProperty(f,"createValidAbsoluteUrl",{enumerable:!0,get:function(){return g.createValidAbsoluteUrl}}),Object.defineProperty(f,"InvalidPDFException",{enumerable:!0,get:function(){return g.InvalidPDFException}}),Object.defineProperty(f,"MissingPDFException",{enumerable:!0,get:function(){return g.MissingPDFException}}),Object.defineProperty(f,"OPS",{enumerable:!0,get:function(){return g.OPS}}),Object.defineProperty(f,"PasswordResponses",{enumerable:!0,get:function(){return g.PasswordResponses}}),Object.defineProperty(f,"PermissionFlag",{enumerable:!0,get:function(){return g.PermissionFlag}}),Object.defineProperty(f,"removeNullCharacters",{enumerable:!0,get:function(){return g.removeNullCharacters}}),Object.defineProperty(f,"shadow",{enumerable:!0,get:function(){return g.shadow}}),Object.defineProperty(f,"UnexpectedResponseException",{enumerable:!0,get:function(){return g.UnexpectedResponseException}}),Object.defineProperty(f,"UNSUPPORTED_FEATURES",{enumerable:!0,get:function(){return g.UNSUPPORTED_FEATURES}}),Object.defineProperty(f,"Util",{enumerable:!0,get:function(){return g.Util}}),Object.defineProperty(f,"VerbosityLevel",{enumerable:!0,get:function(){return g.VerbosityLevel}}),Object.defineProperty(f,"AnnotationLayer",{enumerable:!0,get:function(){return O.AnnotationLayer}}),Object.defineProperty(f,"apiCompatibilityParams",{enumerable:!0,get:function(){return J.apiCompatibilityParams}}),Object.defineProperty(f,"GlobalWorkerOptions",{enumerable:!0,get:function(){return a.GlobalWorkerOptions}}),Object.defineProperty(f,"renderTextLayer",{enumerable:!0,get:function(){return se.renderTextLayer}}),Object.defineProperty(f,"SVGGraphics",{enumerable:!0,get:function(){return H.SVGGraphics}});var d=S(1),R=S(5),g=S(2),O=S(16),J=S(7),a=S(10),se=S(17),H=S(18);{const{isNodeJS:ee}=S(4);if(ee){const ie=S(19).PDFNodeStream;(0,R.setPDFNetworkStreamFactory)(m=>new ie(m))}else{const ie=S(22).PDFNetworkStream;let m;(0,d.isFetchSupported)()&&(m=S(23).PDFFetchStream),(0,R.setPDFNetworkStreamFactory)(u=>m&&(0,d.isValidFetchUrl)(u.url)?new m(u):new ie(u))}}},function(p,f,S){Object.defineProperty(f,"__esModule",{value:!0}),f.addLinkAttributes=ie,f.getFilenameFromUrl=m,f.isFetchSupported=Y,f.isValidFetchUrl=re,f.loadScript=U,f.deprecated=X,f.PDFDateString=f.StatTimer=f.DOMSVGFactory=f.DOMCMapReaderFactory=f.DOMCanvasFactory=f.DEFAULT_LINK_REL=f.LinkTarget=f.RenderingCancelledException=f.PageViewport=void 0;var d=S(2);const R="noopener noreferrer nofollow";f.DEFAULT_LINK_REL=R;const g="http://www.w3.org/2000/svg";class O{create(E,A){if(E<=0||A<=0)throw new Error("Invalid canvas size");const _=document.createElement("canvas"),F=_.getContext("2d");return _.width=E,_.height=A,{canvas:_,context:F}}reset(E,A,_){if(!E.canvas)throw new Error("Canvas is not specified");if(A<=0||_<=0)throw new Error("Invalid canvas size");E.canvas.width=A,E.canvas.height=_}destroy(E){if(!E.canvas)throw new Error("Canvas is not specified");E.canvas.width=0,E.canvas.height=0,E.canvas=null,E.context=null}}f.DOMCanvasFactory=O;class J{constructor({baseUrl:E=null,isCompressed:A=!1}){this.baseUrl=E,this.isCompressed=A}async fetch({name:E}){if(!this.baseUrl)throw new Error('The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.');if(!E)throw new Error("CMap name must be specified.");const A=this.baseUrl+E+(this.isCompressed?".bcmap":""),_=this.isCompressed?d.CMapCompressionType.BINARY:d.CMapCompressionType.NONE;return Y()&&re(A,document.baseURI)?fetch(A).then(async F=>{if(!F.ok)throw new Error(F.statusText);let D;return this.isCompressed?D=new Uint8Array(await F.arrayBuffer()):D=(0,d.stringToBytes)(await F.text()),{cMapData:D,compressionType:_}}).catch(F=>{throw new Error(`Unable to load ${this.isCompressed?"binary ":""}CMap at: ${A}`)}):new Promise((F,D)=>{const L=new XMLHttpRequest;L.open("GET",A,!0),this.isCompressed&&(L.responseType="arraybuffer"),L.onreadystatechange=()=>{if(L.readyState===XMLHttpRequest.DONE){if(L.status===200||L.status===0){let k;if(this.isCompressed&&L.response?k=new Uint8Array(L.response):!this.isCompressed&&L.responseText&&(k=(0,d.stringToBytes)(L.responseText)),k){F({cMapData:k,compressionType:_});return}}D(new Error(L.statusText))}},L.send(null)}).catch(F=>{throw new Error(`Unable to load ${this.isCompressed?"binary ":""}CMap at: ${A}`)})}}f.DOMCMapReaderFactory=J;class a{create(E,A){(0,d.assert)(E>0&&A>0,"Invalid SVG dimensions");const _=document.createElementNS(g,"svg:svg");return _.setAttribute("version","1.1"),_.setAttribute("width",E+"px"),_.setAttribute("height",A+"px"),_.setAttribute("preserveAspectRatio","none"),_.setAttribute("viewBox","0 0 "+E+" "+A),_}createElement(E){return(0,d.assert)(typeof E=="string","Invalid SVG element type"),document.createElementNS(g,E)}}f.DOMSVGFactory=a;class se{constructor({viewBox:E,scale:A,rotation:_,offsetX:F=0,offsetY:D=0,dontFlip:L=!1}){this.viewBox=E,this.scale=A,this.rotation=_,this.offsetX=F,this.offsetY=D;const k=(E[2]+E[0])/2,v=(E[3]+E[1])/2;let y,b,C,w;switch(_=_%360,_=_<0?_+360:_,_){case 180:y=-1,b=0,C=0,w=1;break;case 90:y=0,b=1,C=1,w=0;break;case 270:y=0,b=-1,C=-1,w=0;break;case 0:y=1,b=0,C=0,w=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}L&&(C=-C,w=-w);let T,B,N,Q;y===0?(T=Math.abs(v-E[1])*A+F,B=Math.abs(k-E[0])*A+D,N=Math.abs(E[3]-E[1])*A,Q=Math.abs(E[2]-E[0])*A):(T=Math.abs(k-E[0])*A+F,B=Math.abs(v-E[1])*A+D,N=Math.abs(E[2]-E[0])*A,Q=Math.abs(E[3]-E[1])*A),this.transform=[y*A,b*A,C*A,w*A,T-y*A*k-C*A*v,B-b*A*k-w*A*v],this.width=N,this.height=Q}clone({scale:E=this.scale,rotation:A=this.rotation,offsetX:_=this.offsetX,offsetY:F=this.offsetY,dontFlip:D=!1}={}){return new se({viewBox:this.viewBox.slice(),scale:E,rotation:A,offsetX:_,offsetY:F,dontFlip:D})}convertToViewportPoint(E,A){return d.Util.applyTransform([E,A],this.transform)}convertToViewportRectangle(E){const A=d.Util.applyTransform([E[0],E[1]],this.transform),_=d.Util.applyTransform([E[2],E[3]],this.transform);return[A[0],A[1],_[0],_[1]]}convertToPdfPoint(E,A){return d.Util.applyInverseTransform([E,A],this.transform)}}f.PageViewport=se;class H extends d.BaseException{constructor(E,A){super(E),this.type=A}}f.RenderingCancelledException=H;const ee={NONE:0,SELF:1,BLANK:2,PARENT:3,TOP:4};f.LinkTarget=ee;function ie(P,{url:E,target:A,rel:_,enabled:F=!0}={}){(0,d.assert)(E&&typeof E=="string",'addLinkAttributes: A valid "url" parameter must provided.');const D=(0,d.removeNullCharacters)(E);F?P.href=P.title=D:(P.href="",P.title=`Disabled: ${D}`,P.onclick=()=>!1);let L="";switch(A){case ee.NONE:break;case ee.SELF:L="_self";break;case ee.BLANK:L="_blank";break;case ee.PARENT:L="_parent";break;case ee.TOP:L="_top";break}P.target=L,P.rel=typeof _=="string"?_:R}function m(P){const E=P.indexOf("#"),A=P.indexOf("?"),_=Math.min(E>0?E:P.length,A>0?A:P.length);return P.substring(P.lastIndexOf("/",_)+1,_)}class u{constructor(){this.started=Object.create(null),this.times=[]}time(E){E in this.started&&(0,d.warn)(`Timer is already running for ${E}`),this.started[E]=Date.now()}timeEnd(E){E in this.started||(0,d.warn)(`Timer has not been started for ${E}`),this.times.push({name:E,start:this.started[E],end:Date.now()}),delete this.started[E]}toString(){const E=[];let A=0;for(const _ of this.times){const F=_.name;F.length>A&&(A=F.length)}for(const _ of this.times){const F=_.end-_.start;E.push(`${_.name.padEnd(A)} ${F}ms
49
- `)}return E.join("")}}f.StatTimer=u;function Y(){return typeof fetch!="undefined"&&typeof Response!="undefined"&&"body"in Response.prototype&&typeof ReadableStream!="undefined"}function re(P,E){try{const{protocol:A}=E?new URL(P,E):new URL(P);return A==="http:"||A==="https:"}catch{return!1}}function U(P){return new Promise((E,A)=>{const _=document.createElement("script");_.src=P,_.onload=E,_.onerror=function(){A(new Error(`Cannot load script at: ${_.src}`))},(document.head||document.documentElement).appendChild(_)})}function X(P){console.log("Deprecated API usage: "+P)}let W;class G{static toDateObject(E){if(!E||!(0,d.isString)(E))return null;W||(W=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));const A=W.exec(E);if(!A)return null;const _=parseInt(A[1],10);let F=parseInt(A[2],10);F=F>=1&&F<=12?F-1:0;let D=parseInt(A[3],10);D=D>=1&&D<=31?D:1;let L=parseInt(A[4],10);L=L>=0&&L<=23?L:0;let k=parseInt(A[5],10);k=k>=0&&k<=59?k:0;let v=parseInt(A[6],10);v=v>=0&&v<=59?v:0;const y=A[7]||"Z";let b=parseInt(A[8],10);b=b>=0&&b<=23?b:0;let C=parseInt(A[9],10)||0;return C=C>=0&&C<=59?C:0,y==="-"?(L+=b,k+=C):y==="+"&&(L-=b,k-=C),new Date(Date.UTC(_,F,D,L,k,v))}}f.PDFDateString=G},function(p,f,S){Object.defineProperty(f,"__esModule",{value:!0}),f.arrayByteLength=oe,f.arraysToBytes=ae,f.assert=v,f.bytesToString=Z,f.createPromiseCapability=De,f.getVerbosityLevel=F,f.info=D,f.isArrayBuffer=Fe,f.isArrayEqual=_e,f.isBool=ge,f.isEmptyObj=xe,f.isNum=Ae,f.isString=we,f.isSameOrigin=y,f.createValidAbsoluteUrl=C,f.removeNullCharacters=K,f.setVerbosityLevel=_,f.shadow=w,f.string32=ce,f.stringToBytes=te,f.stringToPDFString=me,f.stringToUTF8String=Se,f.utf8StringToString=Ce,f.warn=L,f.unreachable=k,f.IsEvalSupportedCached=f.IsLittleEndianCached=f.createObjectURL=f.FormatError=f.Util=f.UnknownErrorException=f.UnexpectedResponseException=f.TextRenderingMode=f.StreamType=f.PermissionFlag=f.PasswordResponses=f.PasswordException=f.MissingPDFException=f.InvalidPDFException=f.AbortException=f.CMapCompressionType=f.ImageKind=f.FontType=f.AnnotationType=f.AnnotationStateModelType=f.AnnotationReviewState=f.AnnotationReplyType=f.AnnotationMarkedState=f.AnnotationFlag=f.AnnotationFieldFlag=f.AnnotationBorderStyleType=f.UNSUPPORTED_FEATURES=f.VerbosityLevel=f.OPS=f.IDENTITY_MATRIX=f.FONT_IDENTITY_MATRIX=f.BaseException=void 0,S(3);const d=[1,0,0,1,0,0];f.IDENTITY_MATRIX=d;const R=[.001,0,0,.001,0,0];f.FONT_IDENTITY_MATRIX=R;const g={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048};f.PermissionFlag=g;const O={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};f.TextRenderingMode=O;const J={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3};f.ImageKind=J;const a={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};f.AnnotationType=a;const se={MARKED:"Marked",REVIEW:"Review"};f.AnnotationStateModelType=se;const H={MARKED:"Marked",UNMARKED:"Unmarked"};f.AnnotationMarkedState=H;const ee={ACCEPTED:"Accepted",REJECTED:"Rejected",CANCELLED:"Cancelled",COMPLETED:"Completed",NONE:"None"};f.AnnotationReviewState=ee;const ie={GROUP:"Group",REPLY:"R"};f.AnnotationReplyType=ie;const m={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512};f.AnnotationFlag=m;const u={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};f.AnnotationFieldFlag=u;const Y={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5};f.AnnotationBorderStyleType=Y;const re={UNKNOWN:"UNKNOWN",FLATE:"FLATE",LZW:"LZW",DCT:"DCT",JPX:"JPX",JBIG:"JBIG",A85:"A85",AHX:"AHX",CCF:"CCF",RLX:"RLX"};f.StreamType=re;const U={UNKNOWN:"UNKNOWN",TYPE1:"TYPE1",TYPE1C:"TYPE1C",CIDFONTTYPE0:"CIDFONTTYPE0",CIDFONTTYPE0C:"CIDFONTTYPE0C",TRUETYPE:"TRUETYPE",CIDFONTTYPE2:"CIDFONTTYPE2",TYPE3:"TYPE3",OPENTYPE:"OPENTYPE",TYPE0:"TYPE0",MMTYPE1:"MMTYPE1"};f.FontType=U;const X={ERRORS:0,WARNINGS:1,INFOS:5};f.VerbosityLevel=X;const W={NONE:0,BINARY:1,STREAM:2};f.CMapCompressionType=W;const G={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,beginAnnotations:78,endAnnotations:79,beginAnnotation:80,endAnnotation:81,paintJpegXObject:82,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91};f.OPS=G;const P={unknown:"unknown",forms:"forms",javaScript:"javaScript",smask:"smask",shadingPattern:"shadingPattern",font:"font",errorTilingPattern:"errorTilingPattern",errorExtGState:"errorExtGState",errorXObject:"errorXObject",errorFontLoadType3:"errorFontLoadType3",errorFontState:"errorFontState",errorFontMissing:"errorFontMissing",errorFontTranslate:"errorFontTranslate",errorColorSpace:"errorColorSpace",errorOperatorList:"errorOperatorList",errorFontToUnicode:"errorFontToUnicode",errorFontLoadNative:"errorFontLoadNative",errorFontGetPath:"errorFontGetPath"};f.UNSUPPORTED_FEATURES=P;const E={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};f.PasswordResponses=E;let A=X.WARNINGS;function _(Ee){Number.isInteger(Ee)&&(A=Ee)}function F(){return A}function D(Ee){A>=X.INFOS&&console.log(`Info: ${Ee}`)}function L(Ee){A>=X.WARNINGS&&console.log(`Warning: ${Ee}`)}function k(Ee){throw new Error(Ee)}function v(Ee,ke){Ee||k(ke)}function y(Ee,ke){let pe;try{if(pe=new URL(Ee),!pe.origin||pe.origin==="null")return!1}catch{return!1}const be=new URL(ke,pe);return pe.origin===be.origin}function b(Ee){if(!Ee)return!1;switch(Ee.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}function C(Ee,ke){if(!Ee)return null;try{const pe=ke?new URL(Ee,ke):new URL(Ee);if(b(pe))return pe}catch{}return null}function w(Ee,ke,pe){return Object.defineProperty(Ee,ke,{value:pe,enumerable:!0,configurable:!0,writable:!1}),pe}const T=function(){function ke(pe){this.constructor===ke&&k("Cannot initialize BaseException."),this.message=pe,this.name=this.constructor.name}return ke.prototype=new Error,ke.constructor=ke,ke}();f.BaseException=T;class B extends T{constructor(ke,pe){super(ke),this.code=pe}}f.PasswordException=B;class N extends T{constructor(ke,pe){super(ke),this.details=pe}}f.UnknownErrorException=N;class Q extends T{}f.InvalidPDFException=Q;class z extends T{}f.MissingPDFException=z;class j extends T{constructor(ke,pe){super(ke),this.status=pe}}f.UnexpectedResponseException=j;class $ extends T{}f.FormatError=$;class M extends T{}f.AbortException=M;const q=/\x00/g;function K(Ee){return typeof Ee!="string"?(L("The argument for removeNullCharacters must be a string."),Ee):Ee.replace(q,"")}function Z(Ee){v(Ee!==null&&typeof Ee=="object"&&Ee.length!==void 0,"Invalid argument for bytesToString");const ke=Ee.length,pe=8192;if(ke<pe)return String.fromCharCode.apply(null,Ee);const be=[];for(let ye=0;ye<ke;ye+=pe){const Te=Math.min(ye+pe,ke),Pe=Ee.subarray(ye,Te);be.push(String.fromCharCode.apply(null,Pe))}return be.join("")}function te(Ee){v(typeof Ee=="string","Invalid argument for stringToBytes");const ke=Ee.length,pe=new Uint8Array(ke);for(let be=0;be<ke;++be)pe[be]=Ee.charCodeAt(be)&255;return pe}function oe(Ee){return Ee.length!==void 0?Ee.length:(v(Ee.byteLength!==void 0,"arrayByteLength - invalid argument."),Ee.byteLength)}function ae(Ee){const ke=Ee.length;if(ke===1&&Ee[0]instanceof Uint8Array)return Ee[0];let pe=0;for(let Te=0;Te<ke;Te++)pe+=oe(Ee[Te]);let be=0;const ye=new Uint8Array(pe);for(let Te=0;Te<ke;Te++){let Pe=Ee[Te];Pe instanceof Uint8Array||(typeof Pe=="string"?Pe=te(Pe):Pe=new Uint8Array(Pe));const Le=Pe.byteLength;ye.set(Pe,be),be+=Le}return ye}function ce(Ee){return String.fromCharCode(Ee>>24&255,Ee>>16&255,Ee>>8&255,Ee&255)}function fe(){const Ee=new Uint8Array(4);return Ee[0]=1,new Uint32Array(Ee.buffer,0,1)[0]===1}const ne={get value(){return w(this,"value",fe())}};f.IsLittleEndianCached=ne;function le(){try{return new Function(""),!0}catch{return!1}}const ue={get value(){return w(this,"value",le())}};f.IsEvalSupportedCached=ue;const he=["rgb(",0,",",0,",",0,")"];class de{static makeCssRgb(ke,pe,be){return he[1]=ke,he[3]=pe,he[5]=be,he.join("")}static transform(ke,pe){return[ke[0]*pe[0]+ke[2]*pe[1],ke[1]*pe[0]+ke[3]*pe[1],ke[0]*pe[2]+ke[2]*pe[3],ke[1]*pe[2]+ke[3]*pe[3],ke[0]*pe[4]+ke[2]*pe[5]+ke[4],ke[1]*pe[4]+ke[3]*pe[5]+ke[5]]}static applyTransform(ke,pe){const be=ke[0]*pe[0]+ke[1]*pe[2]+pe[4],ye=ke[0]*pe[1]+ke[1]*pe[3]+pe[5];return[be,ye]}static applyInverseTransform(ke,pe){const be=pe[0]*pe[3]-pe[1]*pe[2],ye=(ke[0]*pe[3]-ke[1]*pe[2]+pe[2]*pe[5]-pe[4]*pe[3])/be,Te=(-ke[0]*pe[1]+ke[1]*pe[0]+pe[4]*pe[1]-pe[5]*pe[0])/be;return[ye,Te]}static getAxialAlignedBoundingBox(ke,pe){const be=de.applyTransform(ke,pe),ye=de.applyTransform(ke.slice(2,4),pe),Te=de.applyTransform([ke[0],ke[3]],pe),Pe=de.applyTransform([ke[2],ke[1]],pe);return[Math.min(be[0],ye[0],Te[0],Pe[0]),Math.min(be[1],ye[1],Te[1],Pe[1]),Math.max(be[0],ye[0],Te[0],Pe[0]),Math.max(be[1],ye[1],Te[1],Pe[1])]}static inverseTransform(ke){const pe=ke[0]*ke[3]-ke[1]*ke[2];return[ke[3]/pe,-ke[1]/pe,-ke[2]/pe,ke[0]/pe,(ke[2]*ke[5]-ke[4]*ke[3])/pe,(ke[4]*ke[1]-ke[5]*ke[0])/pe]}static apply3dTransform(ke,pe){return[ke[0]*pe[0]+ke[1]*pe[1]+ke[2]*pe[2],ke[3]*pe[0]+ke[4]*pe[1]+ke[5]*pe[2],ke[6]*pe[0]+ke[7]*pe[1]+ke[8]*pe[2]]}static singularValueDecompose2dScale(ke){const pe=[ke[0],ke[2],ke[1],ke[3]],be=ke[0]*pe[0]+ke[1]*pe[2],ye=ke[0]*pe[1]+ke[1]*pe[3],Te=ke[2]*pe[0]+ke[3]*pe[2],Pe=ke[2]*pe[1]+ke[3]*pe[3],Le=(be+Pe)/2,Re=Math.sqrt((be+Pe)*(be+Pe)-4*(be*Pe-Te*ye))/2,Ie=Le+Re||1,He=Le-Re||1;return[Math.sqrt(Ie),Math.sqrt(He)]}static normalizeRect(ke){const pe=ke.slice(0);return ke[0]>ke[2]&&(pe[0]=ke[2],pe[2]=ke[0]),ke[1]>ke[3]&&(pe[1]=ke[3],pe[3]=ke[1]),pe}static intersect(ke,pe){function be(Le,Re){return Le-Re}const ye=[ke[0],ke[2],pe[0],pe[2]].sort(be),Te=[ke[1],ke[3],pe[1],pe[3]].sort(be),Pe=[];if(ke=de.normalizeRect(ke),pe=de.normalizeRect(pe),ye[0]===ke[0]&&ye[1]===pe[0]||ye[0]===pe[0]&&ye[1]===ke[0])Pe[0]=ye[1],Pe[2]=ye[2];else return null;if(Te[0]===ke[1]&&Te[1]===pe[1]||Te[0]===pe[1]&&Te[1]===ke[1])Pe[1]=Te[1],Pe[3]=Te[2];else return null;return Pe}}f.Util=de;const ve=[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 me(Ee){const ke=Ee.length,pe=[];if(Ee[0]==="\xFE"&&Ee[1]==="\xFF")for(let be=2;be<ke;be+=2)pe.push(String.fromCharCode(Ee.charCodeAt(be)<<8|Ee.charCodeAt(be+1)));else if(Ee[0]==="\xFF"&&Ee[1]==="\xFE")for(let be=2;be<ke;be+=2)pe.push(String.fromCharCode(Ee.charCodeAt(be+1)<<8|Ee.charCodeAt(be)));else for(let be=0;be<ke;++be){const ye=ve[Ee.charCodeAt(be)];pe.push(ye?String.fromCharCode(ye):Ee.charAt(be))}return pe.join("")}function Se(Ee){return decodeURIComponent(escape(Ee))}function Ce(Ee){return unescape(encodeURIComponent(Ee))}function xe(Ee){for(const ke in Ee)return!1;return!0}function ge(Ee){return typeof Ee=="boolean"}function Ae(Ee){return typeof Ee=="number"}function we(Ee){return typeof Ee=="string"}function Fe(Ee){return typeof Ee=="object"&&Ee!==null&&Ee.byteLength!==void 0}function _e(Ee,ke){return Ee.length!==ke.length?!1:Ee.every(function(pe,be){return pe===ke[be]})}function De(){const Ee=Object.create(null);let ke=!1;return Object.defineProperty(Ee,"settled",{get(){return ke}}),Ee.promise=new Promise(function(pe,be){Ee.resolve=function(ye){ke=!0,pe(ye)},Ee.reject=function(ye){ke=!0,be(ye)}}),Ee}const Be=function(){const ke="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return function(be,ye,Te=!1){if(!Te&&URL.createObjectURL){const Le=new Blob([be],{type:ye});return URL.createObjectURL(Le)}let Pe=`data:${ye};base64,`;for(let Le=0,Re=be.length;Le<Re;Le+=3){const Ie=be[Le]&255,He=be[Le+1]&255,Ue=be[Le+2]&255,Ge=Ie>>2,je=(Ie&3)<<4|He>>4,Oe=Le+1<Re?(He&15)<<2|Ue>>6:64,$e=Le+2<Re?Ue&63:64;Pe+=ke[Ge]+ke[je]+ke[Oe]+ke[$e]}return Pe}}();f.createObjectURL=Be},function(p,f,S){S(4)},function(p,f,S){Object.defineProperty(f,"__esModule",{value:!0}),f.isNodeJS=void 0;const d=typeof process=="object"&&process+""=="[object process]"&&!process.versions.nw&&!process.versions.electron;f.isNodeJS=d},function(module,exports,__w_pdfjs_require__){Object.defineProperty(exports,"__esModule",{value:!0}),exports.getDocument=getDocument,exports.setPDFNetworkStreamFactory=setPDFNetworkStreamFactory,exports.build=exports.version=exports.PDFPageProxy=exports.PDFDocumentProxy=exports.PDFWorker=exports.PDFDataRangeTransport=exports.LoopbackPort=void 0;var _util=__w_pdfjs_require__(2),_display_utils=__w_pdfjs_require__(1),_font_loader=__w_pdfjs_require__(6),_api_compatibility=__w_pdfjs_require__(7),_canvas=__w_pdfjs_require__(8),_worker_options=__w_pdfjs_require__(10),_is_node=__w_pdfjs_require__(4),_message_handler=__w_pdfjs_require__(11),_metadata=__w_pdfjs_require__(12),_transport_stream=__w_pdfjs_require__(14),_webgl=__w_pdfjs_require__(15);const DEFAULT_RANGE_CHUNK_SIZE=65536,RENDERING_CANCELLED_TIMEOUT=100;let createPDFNetworkStream;function setPDFNetworkStreamFactory(p){createPDFNetworkStream=p}function getDocument(p){const f=new PDFDocumentLoadingTask;let S;if(typeof p=="string")S={url:p};else if((0,_util.isArrayBuffer)(p))S={data:p};else if(p instanceof PDFDataRangeTransport)S={range:p};else{if(typeof p!="object")throw new Error("Invalid parameter in getDocument, need either Uint8Array, string or a parameter object");if(!p.url&&!p.data&&!p.range)throw new Error("Invalid parameter object: need either .data, .range or .url");S=p}const d=Object.create(null);let R=null,g=null;for(const J in S){if(J==="url"&&typeof window!="undefined"){d[J]=new URL(S[J],window.location).href;continue}else if(J==="range"){R=S[J];continue}else if(J==="worker"){g=S[J];continue}else if(J==="data"&&!(S[J]instanceof Uint8Array)){const a=S[J];if(typeof a=="string")d[J]=(0,_util.stringToBytes)(a);else if(typeof a=="object"&&a!==null&&!isNaN(a.length))d[J]=new Uint8Array(a);else if((0,_util.isArrayBuffer)(a))d[J]=new Uint8Array(a);else throw new Error("Invalid PDF binary data: either typed array, string or array-like object is expected in the data property.");continue}d[J]=S[J]}if(d.rangeChunkSize=d.rangeChunkSize||DEFAULT_RANGE_CHUNK_SIZE,d.CMapReaderFactory=d.CMapReaderFactory||_display_utils.DOMCMapReaderFactory,d.ignoreErrors=d.stopAtErrors!==!0,d.fontExtraProperties=d.fontExtraProperties===!0,d.pdfBug=d.pdfBug===!0,Number.isInteger(d.maxImageSize)||(d.maxImageSize=-1),typeof d.isEvalSupported!="boolean"&&(d.isEvalSupported=!0),typeof d.disableFontFace!="boolean"&&(d.disableFontFace=_api_compatibility.apiCompatibilityParams.disableFontFace||!1),typeof d.disableRange!="boolean"&&(d.disableRange=!1),typeof d.disableStream!="boolean"&&(d.disableStream=!1),typeof d.disableAutoFetch!="boolean"&&(d.disableAutoFetch=!1),(0,_util.setVerbosityLevel)(d.verbosity),!g){const J={verbosity:d.verbosity,port:_worker_options.GlobalWorkerOptions.workerPort};g=J.port?PDFWorker.fromPort(J):new PDFWorker(J),f._worker=g}const O=f.docId;return g.promise.then(function(){if(f.destroyed)throw new Error("Loading aborted");const J=_fetchDocument(g,d,R,O),a=new Promise(function(se){let H;R?H=new _transport_stream.PDFDataTransportStream({length:d.length,initialData:d.initialData,progressiveDone:d.progressiveDone,disableRange:d.disableRange,disableStream:d.disableStream},R):d.data||(H=createPDFNetworkStream({url:d.url,length:d.length,httpHeaders:d.httpHeaders,withCredentials:d.withCredentials,rangeChunkSize:d.rangeChunkSize,disableRange:d.disableRange,disableStream:d.disableStream})),se(H)});return Promise.all([J,a]).then(function([se,H]){if(f.destroyed)throw new Error("Loading aborted");const ee=new _message_handler.MessageHandler(O,se,g.port);ee.postMessageTransfers=g.postMessageTransfers;const ie=new WorkerTransport(ee,f,H,d);f._transport=ie,ee.send("Ready",null)})}).catch(f._capability.reject),f}function _fetchDocument(p,f,S,d){return p.destroyed?Promise.reject(new Error("Worker was destroyed")):(S&&(f.length=S.length,f.initialData=S.initialData,f.progressiveDone=S.progressiveDone),p.messageHandler.sendWithPromise("GetDocRequest",{docId:d,apiVersion:"2.5.207",source:{data:f.data,url:f.url,password:f.password,disableAutoFetch:f.disableAutoFetch,rangeChunkSize:f.rangeChunkSize,length:f.length},maxImageSize:f.maxImageSize,disableFontFace:f.disableFontFace,postMessageTransfers:p.postMessageTransfers,docBaseUrl:f.docBaseUrl,ignoreErrors:f.ignoreErrors,isEvalSupported:f.isEvalSupported,fontExtraProperties:f.fontExtraProperties}).then(function(R){if(p.destroyed)throw new Error("Worker was destroyed");return R}))}const PDFDocumentLoadingTask=function(){let f=0;class S{constructor(){this._capability=(0,_util.createPromiseCapability)(),this._transport=null,this._worker=null,this.docId="d"+f++,this.destroyed=!1,this.onPassword=null,this.onProgress=null,this.onUnsupportedFeature=null}get promise(){return this._capability.promise}destroy(){return this.destroyed=!0,(this._transport?this._transport.destroy():Promise.resolve()).then(()=>{this._transport=null,this._worker&&(this._worker.destroy(),this._worker=null)})}}return S}();class PDFDataRangeTransport{constructor(f,S,d=!1){this.length=f,this.initialData=S,this.progressiveDone=d,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=(0,_util.createPromiseCapability)()}addRangeListener(f){this._rangeListeners.push(f)}addProgressListener(f){this._progressListeners.push(f)}addProgressiveReadListener(f){this._progressiveReadListeners.push(f)}addProgressiveDoneListener(f){this._progressiveDoneListeners.push(f)}onDataRange(f,S){for(const d of this._rangeListeners)d(f,S)}onDataProgress(f,S){this._readyCapability.promise.then(()=>{for(const d of this._progressListeners)d(f,S)})}onDataProgressiveRead(f){this._readyCapability.promise.then(()=>{for(const S of this._progressiveReadListeners)S(f)})}onDataProgressiveDone(){this._readyCapability.promise.then(()=>{for(const f of this._progressiveDoneListeners)f()})}transportReady(){this._readyCapability.resolve()}requestDataRange(f,S){(0,_util.unreachable)("Abstract method PDFDataRangeTransport.requestDataRange")}abort(){}}exports.PDFDataRangeTransport=PDFDataRangeTransport;class PDFDocumentProxy{constructor(f,S){this._pdfInfo=f,this._transport=S}get numPages(){return this._pdfInfo.numPages}get fingerprint(){return this._pdfInfo.fingerprint}getPage(f){return this._transport.getPage(f)}getPageIndex(f){return this._transport.getPageIndex(f)}getDestinations(){return this._transport.getDestinations()}getDestination(f){return this._transport.getDestination(f)}getPageLabels(){return this._transport.getPageLabels()}getPageLayout(){return this._transport.getPageLayout()}getPageMode(){return this._transport.getPageMode()}getViewerPreferences(){return this._transport.getViewerPreferences()}getOpenAction(){return this._transport.getOpenAction()}getOpenActionDestination(){return(0,_display_utils.deprecated)("getOpenActionDestination, use getOpenAction instead."),this.getOpenAction().then(function(f){return f&&f.dest?f.dest:null})}getAttachments(){return this._transport.getAttachments()}getJavaScript(){return this._transport.getJavaScript()}getOutline(){return this._transport.getOutline()}getPermissions(){return this._transport.getPermissions()}getMetadata(){return this._transport.getMetadata()}getData(){return this._transport.getData()}getDownloadInfo(){return this._transport.downloadInfoCapability.promise}getStats(){return this._transport.getStats()}cleanup(){return this._transport.startCleanup()}destroy(){return this.loadingTask.destroy()}get loadingParams(){return this._transport.loadingParams}get loadingTask(){return this._transport.loadingTask}}exports.PDFDocumentProxy=PDFDocumentProxy;class PDFPageProxy{constructor(f,S,d,R=!1){this._pageIndex=f,this._pageInfo=S,this._transport=d,this._stats=R?new _display_utils.StatTimer:null,this._pdfBug=R,this.commonObjs=d.commonObjs,this.objs=new PDFObjects,this.cleanupAfterRender=!1,this.pendingCleanup=!1,this.intentStates=Object.create(null),this.destroyed=!1}get pageNumber(){return this._pageIndex+1}get rotate(){return this._pageInfo.rotate}get ref(){return this._pageInfo.ref}get userUnit(){return this._pageInfo.userUnit}get view(){return this._pageInfo.view}getViewport({scale:f,rotation:S=this.rotate,offsetX:d=0,offsetY:R=0,dontFlip:g=!1}={}){return new _display_utils.PageViewport({viewBox:this.view,scale:f,rotation:S,offsetX:d,offsetY:R,dontFlip:g})}getAnnotations({intent:f=null}={}){return(!this.annotationsPromise||this.annotationsIntent!==f)&&(this.annotationsPromise=this._transport.getAnnotations(this._pageIndex,f),this.annotationsIntent=f),this.annotationsPromise}render({canvasContext:f,viewport:S,intent:d="display",enableWebGL:R=!1,renderInteractiveForms:g=!1,transform:O=null,imageLayer:J=null,canvasFactory:a=null,background:se=null}){this._stats&&this._stats.time("Overall");const H=d==="print"?"print":"display";this.pendingCleanup=!1,this.intentStates[H]||(this.intentStates[H]=Object.create(null));const ee=this.intentStates[H];ee.streamReaderCancelTimeout&&(clearTimeout(ee.streamReaderCancelTimeout),ee.streamReaderCancelTimeout=null);const ie=a||new _display_utils.DOMCanvasFactory,m=new _webgl.WebGLContext({enable:R});ee.displayReadyCapability||(ee.displayReadyCapability=(0,_util.createPromiseCapability)(),ee.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList({pageIndex:this._pageIndex,intent:H,renderInteractiveForms:g===!0}));const u=U=>{const X=ee.renderTasks.indexOf(Y);X>=0&&ee.renderTasks.splice(X,1),(this.cleanupAfterRender||H==="print")&&(this.pendingCleanup=!0),this._tryCleanup(),U?(Y.capability.reject(U),this._abortOperatorList({intentState:ee,reason:U})):Y.capability.resolve(),this._stats&&(this._stats.timeEnd("Rendering"),this._stats.timeEnd("Overall"))},Y=new InternalRenderTask({callback:u,params:{canvasContext:f,viewport:S,transform:O,imageLayer:J,background:se},objs:this.objs,commonObjs:this.commonObjs,operatorList:ee.operatorList,pageIndex:this._pageIndex,canvasFactory:ie,webGLContext:m,useRequestAnimationFrame:H!=="print",pdfBug:this._pdfBug});ee.renderTasks||(ee.renderTasks=[]),ee.renderTasks.push(Y);const re=Y.task;return ee.displayReadyCapability.promise.then(U=>{if(this.pendingCleanup){u();return}this._stats&&this._stats.time("Rendering"),Y.initializeGraphics(U),Y.operatorListChanged()}).catch(u),re}getOperatorList(){function f(){if(d.operatorList.lastChunk){d.opListReadCapability.resolve(d.operatorList);const g=d.renderTasks.indexOf(R);g>=0&&d.renderTasks.splice(g,1)}}const S="oplist";this.intentStates[S]||(this.intentStates[S]=Object.create(null));const d=this.intentStates[S];let R;return d.opListReadCapability||(R={},R.operatorListChanged=f,d.opListReadCapability=(0,_util.createPromiseCapability)(),d.renderTasks=[],d.renderTasks.push(R),d.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList({pageIndex:this._pageIndex,intent:S})),d.opListReadCapability.promise}streamTextContent({normalizeWhitespace:f=!1,disableCombineTextItems:S=!1}={}){return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,normalizeWhitespace:f===!0,combineTextItems:S!==!0},{highWaterMark:100,size(R){return R.items.length}})}getTextContent(f={}){const S=this.streamTextContent(f);return new Promise(function(d,R){function g(){O.read().then(function({value:a,done:se}){if(se){d(J);return}Object.assign(J.styles,a.styles),J.items.push(...a.items),g()},R)}const O=S.getReader(),J={items:[],styles:Object.create(null)};g()})}_destroy(){this.destroyed=!0,this._transport.pageCache[this._pageIndex]=null;const f=[];return Object.keys(this.intentStates).forEach(S=>{const d=this.intentStates[S];this._abortOperatorList({intentState:d,reason:new Error("Page was destroyed."),force:!0}),S!=="oplist"&&d.renderTasks.forEach(function(R){const g=R.capability.promise.catch(function(){});f.push(g),R.cancel()})}),this.objs.clear(),this.annotationsPromise=null,this.pendingCleanup=!1,Promise.all(f)}cleanup(f=!1){return this.pendingCleanup=!0,this._tryCleanup(f)}_tryCleanup(f=!1){return!this.pendingCleanup||Object.keys(this.intentStates).some(S=>{const d=this.intentStates[S];return d.renderTasks.length!==0||!d.operatorList.lastChunk})?!1:(Object.keys(this.intentStates).forEach(S=>{delete this.intentStates[S]}),this.objs.clear(),this.annotationsPromise=null,f&&this._stats&&(this._stats=new _display_utils.StatTimer),this.pendingCleanup=!1,!0)}_startRenderPage(f,S){const d=this.intentStates[S];!d||(this._stats&&this._stats.timeEnd("Page Request"),d.displayReadyCapability&&d.displayReadyCapability.resolve(f))}_renderPageChunk(f,S){for(let d=0,R=f.length;d<R;d++)S.operatorList.fnArray.push(f.fnArray[d]),S.operatorList.argsArray.push(f.argsArray[d]);S.operatorList.lastChunk=f.lastChunk;for(let d=0;d<S.renderTasks.length;d++)S.renderTasks[d].operatorListChanged();f.lastChunk&&this._tryCleanup()}_pumpOperatorList(f){(0,_util.assert)(f.intent,'PDFPageProxy._pumpOperatorList: Expected "intent" argument.');const d=this._transport.messageHandler.sendWithStream("GetOperatorList",f).getReader(),R=this.intentStates[f.intent];R.streamReader=d;const g=()=>{d.read().then(({value:O,done:J})=>{if(J){R.streamReader=null;return}this._transport.destroyed||(this._renderPageChunk(O,R),g())},O=>{if(R.streamReader=null,!this._transport.destroyed){if(R.operatorList){R.operatorList.lastChunk=!0;for(let J=0;J<R.renderTasks.length;J++)R.renderTasks[J].operatorListChanged();this._tryCleanup()}if(R.displayReadyCapability)R.displayReadyCapability.reject(O);else if(R.opListReadCapability)R.opListReadCapability.reject(O);else throw O}})};g()}_abortOperatorList({intentState:f,reason:S,force:d=!1}){if((0,_util.assert)(S instanceof Error||typeof S=="object"&&S!==null,'PDFPageProxy._abortOperatorList: Expected "reason" argument.'),!!f.streamReader){if(!d){if(f.renderTasks.length!==0)return;if(S instanceof _display_utils.RenderingCancelledException){f.streamReaderCancelTimeout=setTimeout(()=>{this._abortOperatorList({intentState:f,reason:S,force:!0}),f.streamReaderCancelTimeout=null},RENDERING_CANCELLED_TIMEOUT);return}}f.streamReader.cancel(new _util.AbortException(S&&S.message)),f.streamReader=null,!this._transport.destroyed&&(Object.keys(this.intentStates).some(R=>this.intentStates[R]===f?(delete this.intentStates[R],!0):!1),this.cleanup())}}get stats(){return this._stats}}exports.PDFPageProxy=PDFPageProxy;class LoopbackPort{constructor(f=!0){this._listeners=[],this._defer=f,this._deferred=Promise.resolve(void 0)}postMessage(f,S){function d(O){if(typeof O!="object"||O===null)return O;if(R.has(O))return R.get(O);let J,a;if((J=O.buffer)&&(0,_util.isArrayBuffer)(J))return S&&S.includes(J)?a=new O.constructor(J,O.byteOffset,O.byteLength):a=new O.constructor(O),R.set(O,a),a;a=Array.isArray(O)?[]:{},R.set(O,a);for(const se in O){let H,ee=O;for(;!(H=Object.getOwnPropertyDescriptor(ee,se));)ee=Object.getPrototypeOf(ee);if(typeof H.value!="undefined"){if(typeof H.value=="function"){if(O.hasOwnProperty&&O.hasOwnProperty(se))throw new Error(`LoopbackPort.postMessage - cannot clone: ${O[se]}`);continue}a[se]=d(H.value)}}return a}if(!this._defer){this._listeners.forEach(O=>{O.call(this,{data:f})});return}const R=new WeakMap,g={data:d(f)};this._deferred.then(()=>{this._listeners.forEach(O=>{O.call(this,g)})})}addEventListener(f,S){this._listeners.push(S)}removeEventListener(f,S){const d=this._listeners.indexOf(S);this._listeners.splice(d,1)}terminate(){this._listeners.length=0}}exports.LoopbackPort=LoopbackPort;const PDFWorker=function PDFWorkerClosure(){const pdfWorkerPorts=new WeakMap;let isWorkerDisabled=!1,fallbackWorkerSrc,nextFakeWorkerId=0,fakeWorkerCapability;if(_is_node.isNodeJS&&typeof commonjsRequire=="function")isWorkerDisabled=!0,fallbackWorkerSrc="./pdf.worker.js";else if(typeof document=="object"&&"currentScript"in document){const p=document.currentScript&&document.currentScript.src;p&&(fallbackWorkerSrc=p.replace(/(\.(?:min\.)?js)(\?.*)?$/i,".worker$1$2"))}function getWorkerSrc(){if(_worker_options.GlobalWorkerOptions.workerSrc)return _worker_options.GlobalWorkerOptions.workerSrc;if(typeof fallbackWorkerSrc!="undefined")return _is_node.isNodeJS||(0,_display_utils.deprecated)('No "GlobalWorkerOptions.workerSrc" specified.'),fallbackWorkerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}function getMainThreadWorkerMessageHandler(){let p;try{p=globalThis.pdfjsWorker&&globalThis.pdfjsWorker.WorkerMessageHandler}catch{}return p||null}function setupFakeWorkerGlobal(){if(fakeWorkerCapability)return fakeWorkerCapability.promise;fakeWorkerCapability=(0,_util.createPromiseCapability)();const loader=async function(){const mainWorkerMessageHandler=getMainThreadWorkerMessageHandler();if(mainWorkerMessageHandler)return mainWorkerMessageHandler;if(_is_node.isNodeJS&&typeof commonjsRequire=="function"){const worker=eval("require")(getWorkerSrc());return worker.WorkerMessageHandler}return await(0,_display_utils.loadScript)(getWorkerSrc()),window.pdfjsWorker.WorkerMessageHandler};return loader().then(fakeWorkerCapability.resolve,fakeWorkerCapability.reject),fakeWorkerCapability.promise}function createCDNWrapper(p){const f="importScripts('"+p+"');";return URL.createObjectURL(new Blob([f]))}class PDFWorker{constructor({name:f=null,port:S=null,verbosity:d=(0,_util.getVerbosityLevel)()}={}){if(S&&pdfWorkerPorts.has(S))throw new Error("Cannot use more than one PDFWorker per port");if(this.name=f,this.destroyed=!1,this.postMessageTransfers=!0,this.verbosity=d,this._readyCapability=(0,_util.createPromiseCapability)(),this._port=null,this._webWorker=null,this._messageHandler=null,S){pdfWorkerPorts.set(S,this),this._initializeFromPort(S);return}this._initialize()}get promise(){return this._readyCapability.promise}get port(){return this._port}get messageHandler(){return this._messageHandler}_initializeFromPort(f){this._port=f,this._messageHandler=new _message_handler.MessageHandler("main","worker",f),this._messageHandler.on("ready",function(){}),this._readyCapability.resolve()}_initialize(){if(typeof Worker!="undefined"&&!isWorkerDisabled&&!getMainThreadWorkerMessageHandler()){let f=getWorkerSrc();try{(0,_util.isSameOrigin)(window.location.href,f)||(f=createCDNWrapper(new URL(f,window.location).href));const S=new Worker(f),d=new _message_handler.MessageHandler("main","worker",S),R=()=>{S.removeEventListener("error",g),d.destroy(),S.terminate(),this.destroyed?this._readyCapability.reject(new Error("Worker was destroyed")):this._setupFakeWorker()},g=()=>{this._webWorker||R()};S.addEventListener("error",g),d.on("test",J=>{if(S.removeEventListener("error",g),this.destroyed){R();return}J?(this._messageHandler=d,this._port=S,this._webWorker=S,J.supportTransfers||(this.postMessageTransfers=!1),this._readyCapability.resolve(),d.send("configure",{verbosity:this.verbosity})):(this._setupFakeWorker(),d.destroy(),S.terminate())}),d.on("ready",J=>{if(S.removeEventListener("error",g),this.destroyed){R();return}try{O()}catch{this._setupFakeWorker()}});const O=()=>{const J=new Uint8Array([this.postMessageTransfers?255:0]);try{d.send("test",J,[J.buffer])}catch{(0,_util.warn)("Cannot use postMessage transfers."),J[0]=0,d.send("test",J)}};O();return}catch{(0,_util.info)("The worker has been disabled.")}}this._setupFakeWorker()}_setupFakeWorker(){isWorkerDisabled||((0,_util.warn)("Setting up fake worker."),isWorkerDisabled=!0),setupFakeWorkerGlobal().then(f=>{if(this.destroyed){this._readyCapability.reject(new Error("Worker was destroyed"));return}const S=new LoopbackPort;this._port=S;const d="fake"+nextFakeWorkerId++,R=new _message_handler.MessageHandler(d+"_worker",d,S);f.setup(R,S);const g=new _message_handler.MessageHandler(d,d+"_worker",S);this._messageHandler=g,this._readyCapability.resolve(),g.send("configure",{verbosity:this.verbosity})}).catch(f=>{this._readyCapability.reject(new Error(`Setting up fake worker failed: "${f.message}".`))})}destroy(){this.destroyed=!0,this._webWorker&&(this._webWorker.terminate(),this._webWorker=null),pdfWorkerPorts.delete(this._port),this._port=null,this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}static fromPort(f){if(!f||!f.port)throw new Error("PDFWorker.fromPort - invalid method signature.");return pdfWorkerPorts.has(f.port)?pdfWorkerPorts.get(f.port):new PDFWorker(f)}static getWorkerSrc(){return getWorkerSrc()}}return PDFWorker}();exports.PDFWorker=PDFWorker;class WorkerTransport{constructor(f,S,d,R){this.messageHandler=f,this.loadingTask=S,this.commonObjs=new PDFObjects,this.fontLoader=new _font_loader.FontLoader({docId:S.docId,onUnsupportedFeature:this._onUnsupportedFeature.bind(this)}),this._params=R,this.CMapReaderFactory=new R.CMapReaderFactory({baseUrl:R.cMapUrl,isCompressed:R.cMapPacked}),this.destroyed=!1,this.destroyCapability=null,this._passwordCapability=null,this._networkStream=d,this._fullReader=null,this._lastProgress=null,this.pageCache=[],this.pagePromises=[],this.downloadInfoCapability=(0,_util.createPromiseCapability)(),this.setupMessageHandler()}destroy(){if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=(0,_util.createPromiseCapability)(),this._passwordCapability&&this._passwordCapability.reject(new Error("Worker was destroyed during onPassword callback"));const f=[];this.pageCache.forEach(function(d){d&&f.push(d._destroy())}),this.pageCache.length=0,this.pagePromises.length=0;const S=this.messageHandler.sendWithPromise("Terminate",null);return f.push(S),Promise.all(f).then(()=>{this.fontLoader.clear(),this._networkStream&&this._networkStream.cancelAllRequests(new _util.AbortException("Worker was terminated.")),this.messageHandler&&(this.messageHandler.destroy(),this.messageHandler=null),this.destroyCapability.resolve()},this.destroyCapability.reject),this.destroyCapability.promise}setupMessageHandler(){const{messageHandler:f,loadingTask:S}=this;f.on("GetReader",(d,R)=>{(0,_util.assert)(this._networkStream,"GetReader - no `IPDFStream` instance available."),this._fullReader=this._networkStream.getFullReader(),this._fullReader.onProgress=g=>{this._lastProgress={loaded:g.loaded,total:g.total}},R.onPull=()=>{this._fullReader.read().then(function({value:g,done:O}){if(O){R.close();return}(0,_util.assert)((0,_util.isArrayBuffer)(g),"GetReader - expected an ArrayBuffer."),R.enqueue(new Uint8Array(g),1,[g])}).catch(g=>{R.error(g)})},R.onCancel=g=>{this._fullReader.cancel(g)}}),f.on("ReaderHeadersReady",d=>{const R=(0,_util.createPromiseCapability)(),g=this._fullReader;return g.headersReady.then(()=>{(!g.isStreamingSupported||!g.isRangeSupported)&&(this._lastProgress&&S.onProgress&&S.onProgress(this._lastProgress),g.onProgress=O=>{S.onProgress&&S.onProgress({loaded:O.loaded,total:O.total})}),R.resolve({isStreamingSupported:g.isStreamingSupported,isRangeSupported:g.isRangeSupported,contentLength:g.contentLength})},R.reject),R.promise}),f.on("GetRangeReader",(d,R)=>{(0,_util.assert)(this._networkStream,"GetRangeReader - no `IPDFStream` instance available.");const g=this._networkStream.getRangeReader(d.begin,d.end);if(!g){R.close();return}R.onPull=()=>{g.read().then(function({value:O,done:J}){if(J){R.close();return}(0,_util.assert)((0,_util.isArrayBuffer)(O),"GetRangeReader - expected an ArrayBuffer."),R.enqueue(new Uint8Array(O),1,[O])}).catch(O=>{R.error(O)})},R.onCancel=O=>{g.cancel(O)}}),f.on("GetDoc",({pdfInfo:d})=>{this._numPages=d.numPages,S._capability.resolve(new PDFDocumentProxy(d,this))}),f.on("DocException",function(d){let R;switch(d.name){case"PasswordException":R=new _util.PasswordException(d.message,d.code);break;case"InvalidPDFException":R=new _util.InvalidPDFException(d.message);break;case"MissingPDFException":R=new _util.MissingPDFException(d.message);break;case"UnexpectedResponseException":R=new _util.UnexpectedResponseException(d.message,d.status);break;case"UnknownErrorException":R=new _util.UnknownErrorException(d.message,d.details);break}S._capability.reject(R)}),f.on("PasswordRequest",d=>{if(this._passwordCapability=(0,_util.createPromiseCapability)(),S.onPassword){const R=g=>{this._passwordCapability.resolve({password:g})};try{S.onPassword(R,d.code)}catch(g){this._passwordCapability.reject(g)}}else this._passwordCapability.reject(new _util.PasswordException(d.message,d.code));return this._passwordCapability.promise}),f.on("DataLoaded",d=>{S.onProgress&&S.onProgress({loaded:d.length,total:d.length}),this.downloadInfoCapability.resolve(d)}),f.on("StartRenderPage",d=>{if(this.destroyed)return;this.pageCache[d.pageIndex]._startRenderPage(d.transparency,d.intent)}),f.on("commonobj",d=>{if(this.destroyed)return;const[R,g,O]=d;if(!this.commonObjs.has(R))switch(g){case"Font":const J=this._params;if("error"in O){const H=O.error;(0,_util.warn)(`Error during font loading: ${H}`),this.commonObjs.resolve(R,H);break}let a=null;J.pdfBug&&globalThis.FontInspector&&globalThis.FontInspector.enabled&&(a={registerFont(H,ee){globalThis.FontInspector.fontAdded(H,ee)}});const se=new _font_loader.FontFaceObject(O,{isEvalSupported:J.isEvalSupported,disableFontFace:J.disableFontFace,ignoreErrors:J.ignoreErrors,onUnsupportedFeature:this._onUnsupportedFeature.bind(this),fontRegistry:a});this.fontLoader.bind(se).catch(H=>f.sendWithPromise("FontFallback",{id:R})).finally(()=>{!J.fontExtraProperties&&se.data&&(se.data=null),this.commonObjs.resolve(R,se)});break;case"FontPath":case"FontType3Res":case"Image":this.commonObjs.resolve(R,O);break;default:throw new Error(`Got unknown common object type ${g}`)}}),f.on("obj",d=>{if(this.destroyed)return;const[R,g,O,J]=d,a=this.pageCache[g];if(!a.objs.has(R))switch(O){case"Image":a.objs.resolve(R,J);const se=8e6;J&&"data"in J&&J.data.length>se&&(a.cleanupAfterRender=!0);break;default:throw new Error(`Got unknown object type ${O}`)}}),f.on("DocProgress",d=>{this.destroyed||S.onProgress&&S.onProgress({loaded:d.loaded,total:d.total})}),f.on("UnsupportedFeature",this._onUnsupportedFeature.bind(this)),f.on("FetchBuiltInCMap",(d,R)=>{if(this.destroyed){R.error(new Error("Worker was destroyed"));return}let g=!1;R.onPull=()=>{if(g){R.close();return}g=!0,this.CMapReaderFactory.fetch(d).then(function(O){R.enqueue(O,1,[O.cMapData.buffer])}).catch(function(O){R.error(O)})}})}_onUnsupportedFeature({featureId:f}){this.destroyed||this.loadingTask.onUnsupportedFeature&&this.loadingTask.onUnsupportedFeature(f)}getData(){return this.messageHandler.sendWithPromise("GetData",null)}getPage(f){if(!Number.isInteger(f)||f<=0||f>this._numPages)return Promise.reject(new Error("Invalid page request"));const S=f-1;if(S in this.pagePromises)return this.pagePromises[S];const d=this.messageHandler.sendWithPromise("GetPage",{pageIndex:S}).then(R=>{if(this.destroyed)throw new Error("Transport destroyed");const g=new PDFPageProxy(S,R,this,this._params.pdfBug);return this.pageCache[S]=g,g});return this.pagePromises[S]=d,d}getPageIndex(f){return this.messageHandler.sendWithPromise("GetPageIndex",{ref:f}).catch(function(S){return Promise.reject(new Error(S))})}getAnnotations(f,S){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:f,intent:S})}getDestinations(){return this.messageHandler.sendWithPromise("GetDestinations",null)}getDestination(f){return typeof f!="string"?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:f})}getPageLabels(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}getPageLayout(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}getPageMode(){return this.messageHandler.sendWithPromise("GetPageMode",null)}getViewerPreferences(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}getOpenAction(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}getAttachments(){return this.messageHandler.sendWithPromise("GetAttachments",null)}getJavaScript(){return this.messageHandler.sendWithPromise("GetJavaScript",null)}getOutline(){return this.messageHandler.sendWithPromise("GetOutline",null)}getPermissions(){return this.messageHandler.sendWithPromise("GetPermissions",null)}getMetadata(){return this.messageHandler.sendWithPromise("GetMetadata",null).then(f=>({info:f[0],metadata:f[1]?new _metadata.Metadata(f[1]):null,contentDispositionFilename:this._fullReader?this._fullReader.filename:null}))}getStats(){return this.messageHandler.sendWithPromise("GetStats",null)}startCleanup(){return this.messageHandler.sendWithPromise("Cleanup",null).then(()=>{for(let f=0,S=this.pageCache.length;f<S;f++){const d=this.pageCache[f];if(d&&!d.cleanup())throw new Error(`startCleanup: Page ${f+1} is currently rendering.`)}this.commonObjs.clear(),this.fontLoader.clear()})}get loadingParams(){const f=this._params;return(0,_util.shadow)(this,"loadingParams",{disableAutoFetch:f.disableAutoFetch,disableFontFace:f.disableFontFace})}}class PDFObjects{constructor(){this._objs=Object.create(null)}_ensureObj(f){return this._objs[f]?this._objs[f]:this._objs[f]={capability:(0,_util.createPromiseCapability)(),data:null,resolved:!1}}get(f,S=null){if(S)return this._ensureObj(f).capability.promise.then(S),null;const d=this._objs[f];if(!d||!d.resolved)throw new Error(`Requesting object that isn't resolved yet ${f}.`);return d.data}has(f){const S=this._objs[f];return S?S.resolved:!1}resolve(f,S){const d=this._ensureObj(f);d.resolved=!0,d.data=S,d.capability.resolve(S)}clear(){this._objs=Object.create(null)}}class RenderTask{constructor(f){this._internalRenderTask=f,this.onContinue=null}get promise(){return this._internalRenderTask.capability.promise}cancel(){this._internalRenderTask.cancel()}}const InternalRenderTask=function p(){const f=new WeakSet;class S{constructor({callback:R,params:g,objs:O,commonObjs:J,operatorList:a,pageIndex:se,canvasFactory:H,webGLContext:ee,useRequestAnimationFrame:ie=!1,pdfBug:m=!1}){this.callback=R,this.params=g,this.objs=O,this.commonObjs=J,this.operatorListIdx=null,this.operatorList=a,this._pageIndex=se,this.canvasFactory=H,this.webGLContext=ee,this._pdfBug=m,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=ie===!0&&typeof window!="undefined",this.cancelled=!1,this.capability=(0,_util.createPromiseCapability)(),this.task=new RenderTask(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=g.canvasContext.canvas}initializeGraphics(R=!1){if(this.cancelled)return;if(this._canvas){if(f.has(this._canvas))throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");f.add(this._canvas)}this._pdfBug&&globalThis.StepperManager&&globalThis.StepperManager.enabled&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());const{canvasContext:g,viewport:O,transform:J,imageLayer:a,background:se}=this.params;this.gfx=new _canvas.CanvasGraphics(g,this.commonObjs,this.objs,this.canvasFactory,this.webGLContext,a),this.gfx.beginDrawing({transform:J,viewport:O,transparency:R,background:se}),this.operatorListIdx=0,this.graphicsReady=!0,this.graphicsReadyCallback&&this.graphicsReadyCallback()}cancel(R=null){this.running=!1,this.cancelled=!0,this.gfx&&this.gfx.endDrawing(),this._canvas&&f.delete(this._canvas),this.callback(R||new _display_utils.RenderingCancelledException(`Rendering cancelled, page ${this._pageIndex+1}`,"canvas"))}operatorListChanged(){if(!this.graphicsReady){this.graphicsReadyCallback||(this.graphicsReadyCallback=this._continueBound);return}this.stepper&&this.stepper.updateOperatorList(this.operatorList),!this.running&&this._continue()}_continue(){this.running=!0,!this.cancelled&&(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}_scheduleNext(){this._useRequestAnimationFrame?window.requestAnimationFrame(()=>{this._nextBound().catch(this.cancel.bind(this))}):Promise.resolve().then(this._nextBound).catch(this.cancel.bind(this))}async _next(){this.cancelled||(this.operatorListIdx=this.gfx.executeOperatorList(this.operatorList,this.operatorListIdx,this._continueBound,this.stepper),this.operatorListIdx===this.operatorList.argsArray.length&&(this.running=!1,this.operatorList.lastChunk&&(this.gfx.endDrawing(),this._canvas&&f.delete(this._canvas),this.callback())))}}return S}(),version="2.5.207";exports.version=version;const build="0974d605";exports.build=build},function(p,f,S){Object.defineProperty(f,"__esModule",{value:!0}),f.FontLoader=f.FontFaceObject=void 0;var d=S(2);class R{constructor({docId:a,onUnsupportedFeature:se}){this.constructor===R&&(0,d.unreachable)("Cannot initialize BaseFontLoader."),this.docId=a,this._onUnsupportedFeature=se,this.nativeFontFaces=[],this.styleElement=null}addNativeFontFace(a){this.nativeFontFaces.push(a),document.fonts.add(a)}insertRule(a){let se=this.styleElement;se||(se=this.styleElement=document.createElement("style"),se.id=`PDFJS_FONT_STYLE_TAG_${this.docId}`,document.documentElement.getElementsByTagName("head")[0].appendChild(se));const H=se.sheet;H.insertRule(a,H.cssRules.length)}clear(){this.nativeFontFaces.forEach(function(a){document.fonts.delete(a)}),this.nativeFontFaces.length=0,this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}async bind(a){if(a.attached||a.missingFile)return;if(a.attached=!0,this.isFontLoadingAPISupported){const H=a.createNativeFontFace();if(H){this.addNativeFontFace(H);try{await H.loaded}catch(ee){throw this._onUnsupportedFeature({featureId:d.UNSUPPORTED_FEATURES.errorFontLoadNative}),(0,d.warn)(`Failed to load font '${H.family}': '${ee}'.`),a.disableFontFace=!0,ee}}return}const se=a.createFontFaceRule();if(se){if(this.insertRule(se),this.isSyncFontLoadingSupported)return;await new Promise(H=>{const ee=this._queueLoadingCallback(H);this._prepareFontLoadEvent([se],[a],ee)})}}_queueLoadingCallback(a){(0,d.unreachable)("Abstract method `_queueLoadingCallback`.")}get isFontLoadingAPISupported(){const a=typeof document!="undefined"&&!!document.fonts;return(0,d.shadow)(this,"isFontLoadingAPISupported",a)}get isSyncFontLoadingSupported(){(0,d.unreachable)("Abstract method `isSyncFontLoadingSupported`.")}get _loadTestFont(){(0,d.unreachable)("Abstract method `_loadTestFont`.")}_prepareFontLoadEvent(a,se,H){(0,d.unreachable)("Abstract method `_prepareFontLoadEvent`.")}}let g;f.FontLoader=g,f.FontLoader=g=class extends R{constructor(a){super(a),this.loadingContext={requests:[],nextRequestId:0},this.loadTestFontId=0}get isSyncFontLoadingSupported(){let a=!1;if(typeof navigator=="undefined")a=!0;else{const se=/Mozilla\/5.0.*?rv:(\d+).*? Gecko/.exec(navigator.userAgent);se&&se[1]>=14&&(a=!0)}return(0,d.shadow)(this,"isSyncFontLoadingSupported",a)}_queueLoadingCallback(a){function se(){for((0,d.assert)(!ee.done,"completeRequest() cannot be called twice."),ee.done=!0;H.requests.length>0&&H.requests[0].done;){const ie=H.requests.shift();setTimeout(ie.callback,0)}}const H=this.loadingContext,ee={id:`pdfjs-font-loading-${H.nextRequestId++}`,done:!1,complete:se,callback:a};return H.requests.push(ee),ee}get _loadTestFont(){const a=function(){return atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA==")};return(0,d.shadow)(this,"_loadTestFont",a())}_prepareFontLoadEvent(a,se,H){function ee(v,y){return v.charCodeAt(y)<<24|v.charCodeAt(y+1)<<16|v.charCodeAt(y+2)<<8|v.charCodeAt(y+3)&255}function ie(v,y,b,C){const w=v.substring(0,y),T=v.substring(y+b);return w+C+T}let m,u;const Y=document.createElement("canvas");Y.width=1,Y.height=1;const re=Y.getContext("2d");let U=0;function X(v,y){if(U++,U>30){(0,d.warn)("Load test font never loaded."),y();return}if(re.font="30px "+v,re.fillText(".",0,20),re.getImageData(0,0,1,1).data[3]>0){y();return}setTimeout(X.bind(null,v,y))}const W=`lt${Date.now()}${this.loadTestFontId++}`;let G=this._loadTestFont;G=ie(G,976,W.length,W);const E=16,A=1482184792;let _=ee(G,E);for(m=0,u=W.length-3;m<u;m+=4)_=_-A+ee(W,m)|0;m<W.length&&(_=_-A+ee(W+"XXX",m)|0),G=ie(G,E,4,(0,d.string32)(_));const F=`url(data:font/opentype;base64,${btoa(G)});`,D=`@font-face {font-family:"${W}";src:${F}}`;this.insertRule(D);const L=[];for(m=0,u=se.length;m<u;m++)L.push(se[m].loadedName);L.push(W);const k=document.createElement("div");for(k.style.visibility="hidden",k.style.width=k.style.height="10px",k.style.position="absolute",k.style.top=k.style.left="0px",m=0,u=L.length;m<u;++m){const v=document.createElement("span");v.textContent="Hi",v.style.fontFamily=L[m],k.appendChild(v)}document.body.appendChild(k),X(W,function(){document.body.removeChild(k),H.complete()})}};class O{constructor(a,{isEvalSupported:se=!0,disableFontFace:H=!1,ignoreErrors:ee=!1,onUnsupportedFeature:ie=null,fontRegistry:m=null}){this.compiledGlyphs=Object.create(null);for(const u in a)this[u]=a[u];this.isEvalSupported=se!==!1,this.disableFontFace=H===!0,this.ignoreErrors=ee===!0,this._onUnsupportedFeature=ie,this.fontRegistry=m}createNativeFontFace(){if(!this.data||this.disableFontFace)return null;const a=new FontFace(this.loadedName,this.data,{});return this.fontRegistry&&this.fontRegistry.registerFont(this),a}createFontFaceRule(){if(!this.data||this.disableFontFace)return null;const a=(0,d.bytesToString)(new Uint8Array(this.data)),se=`url(data:${this.mimetype};base64,${btoa(a)});`,H=`@font-face {font-family:"${this.loadedName}";src:${se}}`;return this.fontRegistry&&this.fontRegistry.registerFont(this,se),H}getPathGenerator(a,se){if(this.compiledGlyphs[se]!==void 0)return this.compiledGlyphs[se];let H,ee;try{H=a.get(this.loadedName+"_path_"+se)}catch(ie){if(!this.ignoreErrors)throw ie;return this._onUnsupportedFeature&&this._onUnsupportedFeature({featureId:d.UNSUPPORTED_FEATURES.errorFontGetPath}),(0,d.warn)(`getPathGenerator - ignoring character: "${ie}".`),this.compiledGlyphs[se]=function(m,u){}}if(this.isEvalSupported&&d.IsEvalSupportedCached.value){let ie,m="";for(let u=0,Y=H.length;u<Y;u++)ee=H[u],ee.args!==void 0?ie=ee.args.join(","):ie="",m+="c."+ee.cmd+"("+ie+`);
50
- `;return this.compiledGlyphs[se]=new Function("c","size",m)}return this.compiledGlyphs[se]=function(ie,m){for(let u=0,Y=H.length;u<Y;u++)ee=H[u],ee.cmd==="scale"&&(ee.args=[m,-m]),ie[ee.cmd].apply(ie,ee.args)}}}f.FontFaceObject=O},function(p,f,S){Object.defineProperty(f,"__esModule",{value:!0}),f.apiCompatibilityParams=void 0;var d=S(4);const R=Object.create(null);(function(){d.isNodeJS&&(R.disableFontFace=!0)})();const g=Object.freeze(R);f.apiCompatibilityParams=g},function(p,f,S){Object.defineProperty(f,"__esModule",{value:!0}),f.CanvasGraphics=void 0;var d=S(2),R=S(9),g=16,O=100,J=4096,a=.65,se=1e3,H=16;function ee(re){re.mozCurrentTransform||(re._originalSave=re.save,re._originalRestore=re.restore,re._originalRotate=re.rotate,re._originalScale=re.scale,re._originalTranslate=re.translate,re._originalTransform=re.transform,re._originalSetTransform=re.setTransform,re._transformMatrix=re._transformMatrix||[1,0,0,1,0,0],re._transformStack=[],Object.defineProperty(re,"mozCurrentTransform",{get:function(){return this._transformMatrix}}),Object.defineProperty(re,"mozCurrentTransformInverse",{get:function(){var X=this._transformMatrix,W=X[0],G=X[1],P=X[2],E=X[3],A=X[4],_=X[5],F=W*E-G*P,D=G*P-W*E;return[E/F,G/D,P/D,W/F,(E*A-P*_)/D,(G*A-W*_)/F]}}),re.save=function(){var X=this._transformMatrix;this._transformStack.push(X),this._transformMatrix=X.slice(0,6),this._originalSave()},re.restore=function(){var X=this._transformStack.pop();X&&(this._transformMatrix=X,this._originalRestore())},re.translate=function(X,W){var G=this._transformMatrix;G[4]=G[0]*X+G[2]*W+G[4],G[5]=G[1]*X+G[3]*W+G[5],this._originalTranslate(X,W)},re.scale=function(X,W){var G=this._transformMatrix;G[0]=G[0]*X,G[1]=G[1]*X,G[2]=G[2]*W,G[3]=G[3]*W,this._originalScale(X,W)},re.transform=function(X,W,G,P,E,A){var _=this._transformMatrix;this._transformMatrix=[_[0]*X+_[2]*W,_[1]*X+_[3]*W,_[0]*G+_[2]*P,_[1]*G+_[3]*P,_[0]*E+_[2]*A+_[4],_[1]*E+_[3]*A+_[5]],re._originalTransform(X,W,G,P,E,A)},re.setTransform=function(X,W,G,P,E,A){this._transformMatrix=[X,W,G,P,E,A],re._originalSetTransform(X,W,G,P,E,A)},re.rotate=function(X){var W=Math.cos(X),G=Math.sin(X),P=this._transformMatrix;this._transformMatrix=[P[0]*W+P[2]*G,P[1]*W+P[3]*G,P[0]*-G+P[2]*W,P[1]*-G+P[3]*W,P[4],P[5]],this._originalRotate(X)})}var ie=function(){function U(X){this.canvasFactory=X,this.cache=Object.create(null)}return U.prototype={getCanvas:function(W,G,P,E){var A;return this.cache[W]!==void 0?(A=this.cache[W],this.canvasFactory.reset(A,G,P),A.context.setTransform(1,0,0,1,0,0)):(A=this.canvasFactory.create(G,P),this.cache[W]=A),E&&ee(A.context),A},clear(){for(var X in this.cache){var W=this.cache[X];this.canvasFactory.destroy(W),delete this.cache[X]}}},U}();function m(re){var U=1e3,X=re.width,W=re.height,G,P,E,A=X+1,_=new Uint8Array(A*(W+1)),F=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),D=X+7&-8,L=re.data,k=new Uint8Array(D*W),v=0,y;for(G=0,y=L.length;G<y;G++)for(var b=128,C=L[G];b>0;)k[v++]=C&b?0:255,b>>=1;var w=0;for(v=0,k[v]!==0&&(_[0]=1,++w),P=1;P<X;P++)k[v]!==k[v+1]&&(_[P]=k[v]?2:1,++w),v++;for(k[v]!==0&&(_[P]=2,++w),G=1;G<W;G++){v=G*D,E=G*A,k[v-D]!==k[v]&&(_[E]=k[v]?1:8,++w);var T=(k[v]?4:0)+(k[v-D]?8:0);for(P=1;P<X;P++)T=(T>>2)+(k[v+1]?4:0)+(k[v-D+1]?8:0),F[T]&&(_[E+P]=F[T],++w),v++;if(k[v-D]!==k[v]&&(_[E+P]=k[v]?2:4,++w),w>U)return null}for(v=D*(W-1),E=G*A,k[v]!==0&&(_[E]=8,++w),P=1;P<X;P++)k[v]!==k[v+1]&&(_[E+P]=k[v]?4:8,++w),v++;if(k[v]!==0&&(_[E+P]=4,++w),w>U)return null;var B=new Int32Array([0,A,-1,0,-A,0,0,0,1]),N=[];for(G=0;w&&G<=W;G++){for(var Q=G*A,z=Q+X;Q<z&&!_[Q];)Q++;if(Q!==z){var j=[Q%A,G],$=_[Q],M=Q,q;do{var K=B[$];do Q+=K;while(!_[Q]);q=_[Q],q!==5&&q!==10?($=q,_[Q]=0):($=q&51*$>>4,_[Q]&=$>>2|$<<2),j.push(Q%A),j.push(Q/A|0),_[Q]||--w}while(M!==Q);N.push(j),--G}}var Z=function(te){te.save(),te.scale(1/X,-1/W),te.translate(0,-W),te.beginPath();for(let ae=0,ce=N.length;ae<ce;ae++){var oe=N[ae];te.moveTo(oe[0],oe[1]);for(let fe=2,ne=oe.length;fe<ne;fe+=2)te.lineTo(oe[fe],oe[fe+1])}te.fill(),te.beginPath(),te.restore()};return Z}var u=function(){function U(){this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=d.IDENTITY_MATRIX,this.textMatrixScale=1,this.fontMatrix=d.FONT_IDENTITY_MATRIX,this.leading=0,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRenderingMode=d.TextRenderingMode.FILL,this.textRise=0,this.fillColor="#000000",this.strokeColor="#000000",this.patternFill=!1,this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.activeSMask=null,this.resumeSMaskCtx=null}return U.prototype={clone:function(){return Object.create(this)},setCurrentPoint:function(W,G){this.x=W,this.y=G}},U}(),Y=function(){var U=15,X=10;function W(T,B,N,Q,z,j){this.ctx=T,this.current=new u,this.stateStack=[],this.pendingClip=null,this.pendingEOFill=!1,this.res=null,this.xobjs=null,this.commonObjs=B,this.objs=N,this.canvasFactory=Q,this.webGLContext=z,this.imageLayer=j,this.groupStack=[],this.processingType3=null,this.baseTransform=null,this.baseTransformStack=[],this.groupLevel=0,this.smaskStack=[],this.smaskCounter=0,this.tempSMask=null,this.cachedCanvases=new ie(this.canvasFactory),T&&ee(T),this._cachedGetSinglePixelWidth=null}function G(T,B){if(typeof ImageData!="undefined"&&B instanceof ImageData){T.putImageData(B,0,0);return}var N=B.height,Q=B.width,z=N%H,j=(N-z)/H,$=z===0?j:j+1,M=T.createImageData(Q,H),q=0,K,Z=B.data,te=M.data,oe,ae,ce,fe;if(B.kind===d.ImageKind.GRAYSCALE_1BPP){var ne=Z.byteLength,le=new Uint32Array(te.buffer,0,te.byteLength>>2),ue=le.length,he=Q+7>>3,de=4294967295,ve=d.IsLittleEndianCached.value?4278190080:255;for(oe=0;oe<$;oe++){for(ce=oe<j?H:z,K=0,ae=0;ae<ce;ae++){for(var me=ne-q,Se=0,Ce=me>he?Q:me*8-7,xe=Ce&-8,ge=0,Ae=0;Se<xe;Se+=8)Ae=Z[q++],le[K++]=Ae&128?de:ve,le[K++]=Ae&64?de:ve,le[K++]=Ae&32?de:ve,le[K++]=Ae&16?de:ve,le[K++]=Ae&8?de:ve,le[K++]=Ae&4?de:ve,le[K++]=Ae&2?de:ve,le[K++]=Ae&1?de:ve;for(;Se<Ce;Se++)ge===0&&(Ae=Z[q++],ge=128),le[K++]=Ae&ge?de:ve,ge>>=1}for(;K<ue;)le[K++]=0;T.putImageData(M,0,oe*H)}}else if(B.kind===d.ImageKind.RGBA_32BPP){for(ae=0,fe=Q*H*4,oe=0;oe<j;oe++)te.set(Z.subarray(q,q+fe)),q+=fe,T.putImageData(M,0,ae),ae+=H;oe<$&&(fe=Q*z*4,te.set(Z.subarray(q,q+fe)),T.putImageData(M,0,ae))}else if(B.kind===d.ImageKind.RGB_24BPP)for(ce=H,fe=Q*ce,oe=0;oe<$;oe++){for(oe>=j&&(ce=z,fe=Q*ce),K=0,ae=fe;ae--;)te[K++]=Z[q++],te[K++]=Z[q++],te[K++]=Z[q++],te[K++]=255;T.putImageData(M,0,oe*H)}else throw new Error(`bad image kind: ${B.kind}`)}function P(T,B){for(var N=B.height,Q=B.width,z=N%H,j=(N-z)/H,$=z===0?j:j+1,M=T.createImageData(Q,H),q=0,K=B.data,Z=M.data,te=0;te<$;te++){for(var oe=te<j?H:z,ae=3,ce=0;ce<oe;ce++)for(var fe=0,ne=0;ne<Q;ne++){if(!fe){var le=K[q++];fe=128}Z[ae]=le&fe?0:255,ae+=4,fe>>=1}T.putImageData(M,0,te*H)}}function E(T,B){for(var N=["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font"],Q=0,z=N.length;Q<z;Q++){var j=N[Q];T[j]!==void 0&&(B[j]=T[j])}T.setLineDash!==void 0&&(B.setLineDash(T.getLineDash()),B.lineDashOffset=T.lineDashOffset)}function A(T){T.strokeStyle="#000000",T.fillStyle="#000000",T.fillRule="nonzero",T.globalAlpha=1,T.lineWidth=1,T.lineCap="butt",T.lineJoin="miter",T.miterLimit=10,T.globalCompositeOperation="source-over",T.font="10px sans-serif",T.setLineDash!==void 0&&(T.setLineDash([]),T.lineDashOffset=0)}function _(T,B,N,Q){for(var z=T.length,j=3;j<z;j+=4){var $=T[j];if($===0)T[j-3]=B,T[j-2]=N,T[j-1]=Q;else if($<255){var M=255-$;T[j-3]=T[j-3]*$+B*M>>8,T[j-2]=T[j-2]*$+N*M>>8,T[j-1]=T[j-1]*$+Q*M>>8}}}function F(T,B,N){for(var Q=T.length,z=1/255,j=3;j<Q;j+=4){var $=N?N[T[j]]:T[j];B[j]=B[j]*$*z|0}}function D(T,B,N){for(var Q=T.length,z=3;z<Q;z+=4){var j=T[z-3]*77+T[z-2]*152+T[z-1]*28;B[z]=N?B[z]*N[j>>8]>>8:B[z]*j>>16}}function L(T,B,N,Q,z,j,$){var M=!!j,q=M?j[0]:0,K=M?j[1]:0,Z=M?j[2]:0,te;z==="Luminosity"?te=D:te=F;for(var oe=1048576,ae=Math.min(Q,Math.ceil(oe/N)),ce=0;ce<Q;ce+=ae){var fe=Math.min(ae,Q-ce),ne=T.getImageData(0,ce,N,fe),le=B.getImageData(0,ce,N,fe);M&&_(ne.data,q,K,Z),te(ne.data,le.data,$),T.putImageData(le,0,ce)}}function k(T,B,N,Q){var z=B.canvas,j=B.context;T.setTransform(B.scaleX,0,0,B.scaleY,B.offsetX,B.offsetY);var $=B.backdrop||null;if(!B.transferMap&&Q.isEnabled){const M=Q.composeSMask({layer:N.canvas,mask:z,properties:{subtype:B.subtype,backdrop:$}});T.setTransform(1,0,0,1,0,0),T.drawImage(M,B.offsetX,B.offsetY);return}L(j,N,z.width,z.height,B.subtype,$,B.transferMap),T.drawImage(z,0,0)}var v=["butt","round","square"],y=["miter","round","bevel"],b={},C={};W.prototype={beginDrawing({transform:T,viewport:B,transparency:N=!1,background:Q=null}){var z=this.ctx.canvas.width,j=this.ctx.canvas.height;if(this.ctx.save(),this.ctx.fillStyle=Q||"rgb(255, 255, 255)",this.ctx.fillRect(0,0,z,j),this.ctx.restore(),N){var $=this.cachedCanvases.getCanvas("transparent",z,j,!0);this.compositeCtx=this.ctx,this.transparentCanvas=$.canvas,this.ctx=$.context,this.ctx.save(),this.ctx.transform.apply(this.ctx,this.compositeCtx.mozCurrentTransform)}this.ctx.save(),A(this.ctx),T&&this.ctx.transform.apply(this.ctx,T),this.ctx.transform.apply(this.ctx,B.transform),this.baseTransform=this.ctx.mozCurrentTransform.slice(),this.imageLayer&&this.imageLayer.beginLayout()},executeOperatorList:function(B,N,Q,z){var j=B.argsArray,$=B.fnArray,M=N||0,q=j.length;if(q===M)return M;for(var K=q-M>X&&typeof Q=="function",Z=K?Date.now()+U:0,te=0,oe=this.commonObjs,ae=this.objs,ce;;){if(z!==void 0&&M===z.nextBreakPoint)return z.breakIt(M,Q),M;if(ce=$[M],ce!==d.OPS.dependency)this[ce].apply(this,j[M]);else for(const fe of j[M]){const ne=fe.startsWith("g_")?oe:ae;if(!ne.has(fe))return ne.get(fe,Q),M}if(M++,M===q)return M;if(K&&++te>X){if(Date.now()>Z)return Q(),M;te=0}}},endDrawing:function(){this.current.activeSMask!==null&&this.endSMaskGroup(),this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null),this.cachedCanvases.clear(),this.webGLContext.clear(),this.imageLayer&&this.imageLayer.endLayout()},setLineWidth:function(B){this.current.lineWidth=B,this.ctx.lineWidth=B},setLineCap:function(B){this.ctx.lineCap=v[B]},setLineJoin:function(B){this.ctx.lineJoin=y[B]},setMiterLimit:function(B){this.ctx.miterLimit=B},setDash:function(B,N){var Q=this.ctx;Q.setLineDash!==void 0&&(Q.setLineDash(B),Q.lineDashOffset=N)},setRenderingIntent(T){},setFlatness(T){},setGState:function(B){for(var N=0,Q=B.length;N<Q;N++){var z=B[N],j=z[0],$=z[1];switch(j){case"LW":this.setLineWidth($);break;case"LC":this.setLineCap($);break;case"LJ":this.setLineJoin($);break;case"ML":this.setMiterLimit($);break;case"D":this.setDash($[0],$[1]);break;case"RI":this.setRenderingIntent($);break;case"FL":this.setFlatness($);break;case"Font":this.setFont($[0],$[1]);break;case"CA":this.current.strokeAlpha=z[1];break;case"ca":this.current.fillAlpha=z[1],this.ctx.globalAlpha=z[1];break;case"BM":this.ctx.globalCompositeOperation=$;break;case"SMask":this.current.activeSMask&&(this.stateStack.length>0&&this.stateStack[this.stateStack.length-1].activeSMask===this.current.activeSMask?this.suspendSMaskGroup():this.endSMaskGroup()),this.current.activeSMask=$?this.tempSMask:null,this.current.activeSMask&&this.beginSMaskGroup(),this.tempSMask=null;break}}},beginSMaskGroup:function(){var B=this.current.activeSMask,N=B.canvas.width,Q=B.canvas.height,z="smaskGroupAt"+this.groupLevel,j=this.cachedCanvases.getCanvas(z,N,Q,!0),$=this.ctx,M=$.mozCurrentTransform;this.ctx.save();var q=j.context;q.scale(1/B.scaleX,1/B.scaleY),q.translate(-B.offsetX,-B.offsetY),q.transform.apply(q,M),B.startTransformInverse=q.mozCurrentTransformInverse,E($,q),this.ctx=q,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push($),this.groupLevel++},suspendSMaskGroup:function(){var B=this.ctx;this.groupLevel--,this.ctx=this.groupStack.pop(),k(this.ctx,this.current.activeSMask,B,this.webGLContext),this.ctx.restore(),this.ctx.save(),E(B,this.ctx),this.current.resumeSMaskCtx=B;var N=d.Util.transform(this.current.activeSMask.startTransformInverse,B.mozCurrentTransform);this.ctx.transform.apply(this.ctx,N),B.save(),B.setTransform(1,0,0,1,0,0),B.clearRect(0,0,B.canvas.width,B.canvas.height),B.restore()},resumeSMaskGroup:function(){var B=this.current.resumeSMaskCtx,N=this.ctx;this.ctx=B,this.groupStack.push(N),this.groupLevel++},endSMaskGroup:function(){var B=this.ctx;this.groupLevel--,this.ctx=this.groupStack.pop(),k(this.ctx,this.current.activeSMask,B,this.webGLContext),this.ctx.restore(),E(B,this.ctx);var N=d.Util.transform(this.current.activeSMask.startTransformInverse,B.mozCurrentTransform);this.ctx.transform.apply(this.ctx,N)},save:function(){this.ctx.save();var B=this.current;this.stateStack.push(B),this.current=B.clone(),this.current.resumeSMaskCtx=null},restore:function(){this.current.resumeSMaskCtx&&this.resumeSMaskGroup(),this.current.activeSMask!==null&&(this.stateStack.length===0||this.stateStack[this.stateStack.length-1].activeSMask!==this.current.activeSMask)&&this.endSMaskGroup(),this.stateStack.length!==0&&(this.current=this.stateStack.pop(),this.ctx.restore(),this.pendingClip=null,this._cachedGetSinglePixelWidth=null)},transform:function(B,N,Q,z,j,$){this.ctx.transform(B,N,Q,z,j,$),this._cachedGetSinglePixelWidth=null},constructPath:function(B,N){for(var Q=this.ctx,z=this.current,j=z.x,$=z.y,M=0,q=0,K=B.length;M<K;M++)switch(B[M]|0){case d.OPS.rectangle:j=N[q++],$=N[q++];var Z=N[q++],te=N[q++];Z===0&&(Z=this.getSinglePixelWidth()),te===0&&(te=this.getSinglePixelWidth());var oe=j+Z,ae=$+te;this.ctx.moveTo(j,$),this.ctx.lineTo(oe,$),this.ctx.lineTo(oe,ae),this.ctx.lineTo(j,ae),this.ctx.lineTo(j,$),this.ctx.closePath();break;case d.OPS.moveTo:j=N[q++],$=N[q++],Q.moveTo(j,$);break;case d.OPS.lineTo:j=N[q++],$=N[q++],Q.lineTo(j,$);break;case d.OPS.curveTo:j=N[q+4],$=N[q+5],Q.bezierCurveTo(N[q],N[q+1],N[q+2],N[q+3],j,$),q+=6;break;case d.OPS.curveTo2:Q.bezierCurveTo(j,$,N[q],N[q+1],N[q+2],N[q+3]),j=N[q+2],$=N[q+3],q+=4;break;case d.OPS.curveTo3:j=N[q+2],$=N[q+3],Q.bezierCurveTo(N[q],N[q+1],j,$,j,$),q+=4;break;case d.OPS.closePath:Q.closePath();break}z.setCurrentPoint(j,$)},closePath:function(){this.ctx.closePath()},stroke:function(B){B=typeof B!="undefined"?B:!0;var N=this.ctx,Q=this.current.strokeColor;if(N.globalAlpha=this.current.strokeAlpha,Q&&Q.hasOwnProperty("type")&&Q.type==="Pattern"){N.save();const z=N.mozCurrentTransform,j=d.Util.singularValueDecompose2dScale(z)[0];N.strokeStyle=Q.getPattern(N,this),N.lineWidth=Math.max(this.getSinglePixelWidth()*a,this.current.lineWidth*j),N.stroke(),N.restore()}else N.lineWidth=Math.max(this.getSinglePixelWidth()*a,this.current.lineWidth),N.stroke();B&&this.consumePath(),N.globalAlpha=this.current.fillAlpha},closeStroke:function(){this.closePath(),this.stroke()},fill:function(B){B=typeof B!="undefined"?B:!0;var N=this.ctx,Q=this.current.fillColor,z=this.current.patternFill,j=!1;z&&(N.save(),this.baseTransform&&N.setTransform.apply(N,this.baseTransform),N.fillStyle=Q.getPattern(N,this),j=!0),this.pendingEOFill?(N.fill("evenodd"),this.pendingEOFill=!1):N.fill(),j&&N.restore(),B&&this.consumePath()},eoFill:function(){this.pendingEOFill=!0,this.fill()},fillStroke:function(){this.fill(!1),this.stroke(!1),this.consumePath()},eoFillStroke:function(){this.pendingEOFill=!0,this.fillStroke()},closeFillStroke:function(){this.closePath(),this.fillStroke()},closeEOFillStroke:function(){this.pendingEOFill=!0,this.closePath(),this.fillStroke()},endPath:function(){this.consumePath()},clip:function(){this.pendingClip=b},eoClip:function(){this.pendingClip=C},beginText:function(){this.current.textMatrix=d.IDENTITY_MATRIX,this.current.textMatrixScale=1,this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0},endText:function(){var B=this.pendingTextPaths,N=this.ctx;if(B===void 0){N.beginPath();return}N.save(),N.beginPath();for(var Q=0;Q<B.length;Q++){var z=B[Q];N.setTransform.apply(N,z.transform),N.translate(z.x,z.y),z.addToPath(N,z.fontSize)}N.restore(),N.clip(),N.beginPath(),delete this.pendingTextPaths},setCharSpacing:function(B){this.current.charSpacing=B},setWordSpacing:function(B){this.current.wordSpacing=B},setHScale:function(B){this.current.textHScale=B/100},setLeading:function(B){this.current.leading=-B},setFont:function(B,N){var Q=this.commonObjs.get(B),z=this.current;if(!Q)throw new Error(`Can't find font for ${B}`);if(z.fontMatrix=Q.fontMatrix?Q.fontMatrix:d.FONT_IDENTITY_MATRIX,(z.fontMatrix[0]===0||z.fontMatrix[3]===0)&&(0,d.warn)("Invalid font matrix for font "+B),N<0?(N=-N,z.fontDirection=-1):z.fontDirection=1,this.current.font=Q,this.current.fontSize=N,Q.isType3Font)return;var j=Q.loadedName||"sans-serif";let $="normal";Q.black?$="900":Q.bold&&($="bold");var M=Q.italic?"italic":"normal",q=`"${j}", ${Q.fallbackName}`;let K=N;N<g?K=g:N>O&&(K=O),this.current.fontSizeScale=N/K,this.ctx.font=`${M} ${$} ${K}px ${q}`},setTextRenderingMode:function(B){this.current.textRenderingMode=B},setTextRise:function(B){this.current.textRise=B},moveText:function(B,N){this.current.x=this.current.lineX+=B,this.current.y=this.current.lineY+=N},setLeadingMoveText:function(B,N){this.setLeading(-N),this.moveText(B,N)},setTextMatrix:function(B,N,Q,z,j,$){this.current.textMatrix=[B,N,Q,z,j,$],this.current.textMatrixScale=Math.sqrt(B*B+N*N),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0},nextLine:function(){this.moveText(0,this.current.leading)},paintChar(T,B,N,Q){var z=this.ctx,j=this.current,$=j.font,M=j.textRenderingMode,q=j.fontSize/j.fontSizeScale,K=M&d.TextRenderingMode.FILL_STROKE_MASK,Z=!!(M&d.TextRenderingMode.ADD_TO_PATH_FLAG);const te=j.patternFill&&!$.missingFile;var oe;if(($.disableFontFace||Z||te)&&(oe=$.getPathGenerator(this.commonObjs,T)),$.disableFontFace||te?(z.save(),z.translate(B,N),z.beginPath(),oe(z,q),Q&&z.setTransform.apply(z,Q),(K===d.TextRenderingMode.FILL||K===d.TextRenderingMode.FILL_STROKE)&&z.fill(),(K===d.TextRenderingMode.STROKE||K===d.TextRenderingMode.FILL_STROKE)&&z.stroke(),z.restore()):((K===d.TextRenderingMode.FILL||K===d.TextRenderingMode.FILL_STROKE)&&z.fillText(T,B,N),(K===d.TextRenderingMode.STROKE||K===d.TextRenderingMode.FILL_STROKE)&&z.strokeText(T,B,N)),Z){var ae=this.pendingTextPaths||(this.pendingTextPaths=[]);ae.push({transform:z.mozCurrentTransform,x:B,y:N,fontSize:q,addToPath:oe})}},get isFontSubpixelAAEnabled(){const{context:T}=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10);T.scale(1.5,1),T.fillText("I",0,10);for(var B=T.getImageData(0,0,10,10).data,N=!1,Q=3;Q<B.length;Q+=4)if(B[Q]>0&&B[Q]<255){N=!0;break}return(0,d.shadow)(this,"isFontSubpixelAAEnabled",N)},showText:function(B){var N=this.current,Q=N.font;if(Q.isType3Font)return this.showType3Text(B);var z=N.fontSize;if(z===0)return;var j=this.ctx,$=N.fontSizeScale,M=N.charSpacing,q=N.wordSpacing,K=N.fontDirection,Z=N.textHScale*K,te=B.length,oe=Q.vertical,ae=oe?1:-1,ce=Q.defaultVMetrics,fe=z*N.fontMatrix[0],ne=N.textRenderingMode===d.TextRenderingMode.FILL&&!Q.disableFontFace&&!N.patternFill;j.save();let le;if(N.patternFill){j.save();const Pe=N.fillColor.getPattern(j,this);le=j.mozCurrentTransform,j.restore(),j.fillStyle=Pe}j.transform.apply(j,N.textMatrix),j.translate(N.x,N.y+N.textRise),K>0?j.scale(Z,-1):j.scale(Z,1);var ue=N.lineWidth,he=N.textMatrixScale;if(he===0||ue===0){var de=N.textRenderingMode&d.TextRenderingMode.FILL_STROKE_MASK;(de===d.TextRenderingMode.STROKE||de===d.TextRenderingMode.FILL_STROKE)&&(this._cachedGetSinglePixelWidth=null,ue=this.getSinglePixelWidth()*a)}else ue/=he;$!==1&&(j.scale($,$),ue/=$),j.lineWidth=ue;var ve=0,me;for(me=0;me<te;++me){var Se=B[me];if((0,d.isNum)(Se)){ve+=ae*Se*z/1e3;continue}var Ce=!1,xe=(Se.isSpace?q:0)+M,ge=Se.fontChar,Ae=Se.accent,we,Fe,_e,De,Be=Se.width;if(oe){var Ee,ke,pe;Ee=Se.vmetric||ce,ke=Se.vmetric?Ee[1]:Be*.5,ke=-ke*fe,pe=Ee[2]*fe,Be=Ee?-Ee[0]:Be,we=ke/$,Fe=(ve+pe)/$}else we=ve/$,Fe=0;if(Q.remeasure&&Be>0){var be=j.measureText(ge).width*1e3/z*$;if(Be<be&&this.isFontSubpixelAAEnabled){var ye=Be/be;Ce=!0,j.save(),j.scale(ye,1),we/=ye}else Be!==be&&(we+=(Be-be)/2e3*z/$)}(Se.isInFont||Q.missingFile)&&(ne&&!Ae?j.fillText(ge,we,Fe):(this.paintChar(ge,we,Fe,le),Ae&&(_e=we+Ae.offset.x/$,De=Fe-Ae.offset.y/$,this.paintChar(Ae.fontChar,_e,De,le))));var Te;oe?Te=Be*fe-xe*K:Te=Be*fe+xe*K,ve+=Te,Ce&&j.restore()}oe?N.y-=ve:N.x+=ve*Z,j.restore()},showType3Text:function(B){var N=this.ctx,Q=this.current,z=Q.font,j=Q.fontSize,$=Q.fontDirection,M=z.vertical?1:-1,q=Q.charSpacing,K=Q.wordSpacing,Z=Q.textHScale*$,te=Q.fontMatrix||d.FONT_IDENTITY_MATRIX,oe=B.length,ae=Q.textRenderingMode===d.TextRenderingMode.INVISIBLE,ce,fe,ne,le;if(!(ae||j===0)){for(this._cachedGetSinglePixelWidth=null,N.save(),N.transform.apply(N,Q.textMatrix),N.translate(Q.x,Q.y),N.scale(Z,$),ce=0;ce<oe;++ce){if(fe=B[ce],(0,d.isNum)(fe)){le=M*fe*j/1e3,this.ctx.translate(le,0),Q.x+=le*Z;continue}var ue=(fe.isSpace?K:0)+q,he=z.charProcOperatorList[fe.operatorListId];if(!he){(0,d.warn)(`Type3 character "${fe.operatorListId}" is not available.`);continue}this.processingType3=fe,this.save(),N.scale(j,j),N.transform.apply(N,te),this.executeOperatorList(he),this.restore();var de=d.Util.applyTransform([fe.width,0],te);ne=de[0]*j+ue,N.translate(ne,0),Q.x+=ne*Z}N.restore(),this.processingType3=null}},setCharWidth:function(B,N){},setCharWidthAndBounds:function(B,N,Q,z,j,$){this.ctx.rect(Q,z,j-Q,$-z),this.clip(),this.endPath()},getColorN_Pattern:function(B){var N;if(B[0]==="TilingPattern"){var Q=B[1],z=this.baseTransform||this.ctx.mozCurrentTransform.slice(),j={createCanvasGraphics:$=>new W($,this.commonObjs,this.objs,this.canvasFactory,this.webGLContext)};N=new R.TilingPattern(B,Q,this.ctx,j,z)}else N=(0,R.getShadingPatternFromIR)(B);return N},setStrokeColorN:function(){this.current.strokeColor=this.getColorN_Pattern(arguments)},setFillColorN:function(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0},setStrokeRGBColor:function(B,N,Q){var z=d.Util.makeCssRgb(B,N,Q);this.ctx.strokeStyle=z,this.current.strokeColor=z},setFillRGBColor:function(B,N,Q){var z=d.Util.makeCssRgb(B,N,Q);this.ctx.fillStyle=z,this.current.fillColor=z,this.current.patternFill=!1},shadingFill:function(B){var N=this.ctx;this.save();var Q=(0,R.getShadingPatternFromIR)(B);N.fillStyle=Q.getPattern(N,this,!0);var z=N.mozCurrentTransformInverse;if(z){var j=N.canvas,$=j.width,M=j.height,q=d.Util.applyTransform([0,0],z),K=d.Util.applyTransform([0,M],z),Z=d.Util.applyTransform([$,0],z),te=d.Util.applyTransform([$,M],z),oe=Math.min(q[0],K[0],Z[0],te[0]),ae=Math.min(q[1],K[1],Z[1],te[1]),ce=Math.max(q[0],K[0],Z[0],te[0]),fe=Math.max(q[1],K[1],Z[1],te[1]);this.ctx.fillRect(oe,ae,ce-oe,fe-ae)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.restore()},beginInlineImage:function(){(0,d.unreachable)("Should not call beginInlineImage")},beginImageData:function(){(0,d.unreachable)("Should not call beginImageData")},paintFormXObjectBegin:function(B,N){if(this.save(),this.baseTransformStack.push(this.baseTransform),Array.isArray(B)&&B.length===6&&this.transform.apply(this,B),this.baseTransform=this.ctx.mozCurrentTransform,N){var Q=N[2]-N[0],z=N[3]-N[1];this.ctx.rect(N[0],N[1],Q,z),this.clip(),this.endPath()}},paintFormXObjectEnd:function(){this.restore(),this.baseTransform=this.baseTransformStack.pop()},beginGroup:function(B){this.save();var N=this.ctx;B.isolated||(0,d.info)("TODO: Support non-isolated groups."),B.knockout&&(0,d.warn)("Knockout groups not supported.");var Q=N.mozCurrentTransform;if(B.matrix&&N.transform.apply(N,B.matrix),!B.bbox)throw new Error("Bounding box is required.");var z=d.Util.getAxialAlignedBoundingBox(B.bbox,N.mozCurrentTransform),j=[0,0,N.canvas.width,N.canvas.height];z=d.Util.intersect(z,j)||[0,0,0,0];var $=Math.floor(z[0]),M=Math.floor(z[1]),q=Math.max(Math.ceil(z[2])-$,1),K=Math.max(Math.ceil(z[3])-M,1),Z=1,te=1;q>J&&(Z=q/J,q=J),K>J&&(te=K/J,K=J);var oe="groupAt"+this.groupLevel;B.smask&&(oe+="_smask_"+this.smaskCounter++%2);var ae=this.cachedCanvases.getCanvas(oe,q,K,!0),ce=ae.context;ce.scale(1/Z,1/te),ce.translate(-$,-M),ce.transform.apply(ce,Q),B.smask?this.smaskStack.push({canvas:ae.canvas,context:ce,offsetX:$,offsetY:M,scaleX:Z,scaleY:te,subtype:B.smask.subtype,backdrop:B.smask.backdrop,transferMap:B.smask.transferMap||null,startTransformInverse:null}):(N.setTransform(1,0,0,1,0,0),N.translate($,M),N.scale(Z,te)),E(N,ce),this.ctx=ce,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(N),this.groupLevel++,this.current.activeSMask=null},endGroup:function(B){this.groupLevel--;var N=this.ctx;this.ctx=this.groupStack.pop(),this.ctx.imageSmoothingEnabled!==void 0?this.ctx.imageSmoothingEnabled=!1:this.ctx.mozImageSmoothingEnabled=!1,B.smask?this.tempSMask=this.smaskStack.pop():this.ctx.drawImage(N.canvas,0,0),this.restore()},beginAnnotations:function(){this.save(),this.baseTransform&&this.ctx.setTransform.apply(this.ctx,this.baseTransform)},endAnnotations:function(){this.restore()},beginAnnotation:function(B,N,Q){if(this.save(),A(this.ctx),this.current=new u,Array.isArray(B)&&B.length===4){var z=B[2]-B[0],j=B[3]-B[1];this.ctx.rect(B[0],B[1],z,j),this.clip(),this.endPath()}this.transform.apply(this,N),this.transform.apply(this,Q)},endAnnotation:function(){this.restore()},paintImageMaskXObject:function(B){var N=this.ctx,Q=B.width,z=B.height,j=this.current.fillColor,$=this.current.patternFill,M=this.processingType3;if(M&&M.compiled===void 0&&(Q<=se&&z<=se?M.compiled=m({data:B.data,width:Q,height:z}):M.compiled=null),M&&M.compiled){M.compiled(N);return}var q=this.cachedCanvases.getCanvas("maskCanvas",Q,z),K=q.context;K.save(),P(K,B),K.globalCompositeOperation="source-in",K.fillStyle=$?j.getPattern(K,this):j,K.fillRect(0,0,Q,z),K.restore(),this.paintInlineImageXObject(q.canvas)},paintImageMaskXObjectRepeat:function(B,N,Q,z){var j=B.width,$=B.height,M=this.current.fillColor,q=this.current.patternFill,K=this.cachedCanvases.getCanvas("maskCanvas",j,$),Z=K.context;Z.save(),P(Z,B),Z.globalCompositeOperation="source-in",Z.fillStyle=q?M.getPattern(Z,this):M,Z.fillRect(0,0,j,$),Z.restore();for(var te=this.ctx,oe=0,ae=z.length;oe<ae;oe+=2)te.save(),te.transform(N,0,0,Q,z[oe],z[oe+1]),te.scale(1,-1),te.drawImage(K.canvas,0,0,j,$,0,-1,1,1),te.restore()},paintImageMaskXObjectGroup:function(B){for(var N=this.ctx,Q=this.current.fillColor,z=this.current.patternFill,j=0,$=B.length;j<$;j++){var M=B[j],q=M.width,K=M.height,Z=this.cachedCanvases.getCanvas("maskCanvas",q,K),te=Z.context;te.save(),P(te,M),te.globalCompositeOperation="source-in",te.fillStyle=z?Q.getPattern(te,this):Q,te.fillRect(0,0,q,K),te.restore(),N.save(),N.transform.apply(N,M.transform),N.scale(1,-1),N.drawImage(Z.canvas,0,0,q,K,0,-1,1,1),N.restore()}},paintImageXObject:function(B){const N=B.startsWith("g_")?this.commonObjs.get(B):this.objs.get(B);if(!N){(0,d.warn)("Dependent image isn't ready yet");return}this.paintInlineImageXObject(N)},paintImageXObjectRepeat:function(B,N,Q,z){const j=B.startsWith("g_")?this.commonObjs.get(B):this.objs.get(B);if(!j){(0,d.warn)("Dependent image isn't ready yet");return}for(var $=j.width,M=j.height,q=[],K=0,Z=z.length;K<Z;K+=2)q.push({transform:[N,0,0,Q,z[K],z[K+1]],x:0,y:0,w:$,h:M});this.paintInlineImageXObjectGroup(j,q)},paintInlineImageXObject:function(B){var N=B.width,Q=B.height,z=this.ctx;this.save(),z.scale(1/N,-1/Q);var j=z.mozCurrentTransformInverse,$=j[0],M=j[1],q=Math.max(Math.sqrt($*$+M*M),1),K=j[2],Z=j[3],te=Math.max(Math.sqrt(K*K+Z*Z),1),oe,ae;if(typeof HTMLElement=="function"&&B instanceof HTMLElement||!B.data)oe=B;else{ae=this.cachedCanvases.getCanvas("inlineImage",N,Q);var ce=ae.context;G(ce,B),oe=ae.canvas}for(var fe=N,ne=Q,le="prescale1";q>2&&fe>1||te>2&&ne>1;){var ue=fe,he=ne;q>2&&fe>1&&(ue=Math.ceil(fe/2),q/=fe/ue),te>2&&ne>1&&(he=Math.ceil(ne/2),te/=ne/he),ae=this.cachedCanvases.getCanvas(le,ue,he),ce=ae.context,ce.clearRect(0,0,ue,he),ce.drawImage(oe,0,0,fe,ne,0,0,ue,he),oe=ae.canvas,fe=ue,ne=he,le=le==="prescale1"?"prescale2":"prescale1"}if(z.drawImage(oe,0,0,fe,ne,0,-Q,N,Q),this.imageLayer){var de=this.getCanvasPosition(0,-Q);this.imageLayer.appendImage({imgData:B,left:de[0],top:de[1],width:N/j[0],height:Q/j[3]})}this.restore()},paintInlineImageXObjectGroup:function(B,N){var Q=this.ctx,z=B.width,j=B.height,$=this.cachedCanvases.getCanvas("inlineImage",z,j),M=$.context;G(M,B);for(var q=0,K=N.length;q<K;q++){var Z=N[q];if(Q.save(),Q.transform.apply(Q,Z.transform),Q.scale(1,-1),Q.drawImage($.canvas,Z.x,Z.y,Z.w,Z.h,0,-1,1,1),this.imageLayer){var te=this.getCanvasPosition(Z.x,Z.y);this.imageLayer.appendImage({imgData:B,left:te[0],top:te[1],width:z,height:j})}Q.restore()}},paintSolidColorImageMask:function(){this.ctx.fillRect(0,0,1,1)},paintXObject:function(){(0,d.warn)("Unsupported 'paintXObject' command.")},markPoint:function(B){},markPointProps:function(B,N){},beginMarkedContent:function(B){},beginMarkedContentProps:function(B,N){},endMarkedContent:function(){},beginCompat:function(){},endCompat:function(){},consumePath:function(){var B=this.ctx;this.pendingClip&&(this.pendingClip===C?B.clip("evenodd"):B.clip(),this.pendingClip=null),B.beginPath()},getSinglePixelWidth(T){if(this._cachedGetSinglePixelWidth===null){const B=this.ctx.mozCurrentTransformInverse;this._cachedGetSinglePixelWidth=Math.sqrt(Math.max(B[0]*B[0]+B[1]*B[1],B[2]*B[2]+B[3]*B[3]))}return this._cachedGetSinglePixelWidth},getCanvasPosition:function(B,N){var Q=this.ctx.mozCurrentTransform;return[Q[0]*B+Q[2]*N+Q[4],Q[1]*B+Q[3]*N+Q[5]]}};for(var w in d.OPS)W.prototype[d.OPS[w]]=W.prototype[w];return W}();f.CanvasGraphics=Y},function(p,f,S){Object.defineProperty(f,"__esModule",{value:!0}),f.getShadingPatternFromIR=J,f.TilingPattern=void 0;var d=S(2),R={};function g(se,H){if(!H||typeof Path2D=="undefined")return;const ee=H[2]-H[0],ie=H[3]-H[1],m=new Path2D;m.rect(H[0],H[1],ee,ie),se.clip(m)}R.RadialAxial={fromIR:function(H){var ee=H[1],ie=H[2],m=H[3],u=H[4],Y=H[5],re=H[6],U=H[7];return{type:"Pattern",getPattern:function(W){g(W,ie);var G;ee==="axial"?G=W.createLinearGradient(u[0],u[1],Y[0],Y[1]):ee==="radial"&&(G=W.createRadialGradient(u[0],u[1],re,Y[0],Y[1],U));for(var P=0,E=m.length;P<E;++P){var A=m[P];G.addColorStop(A[0],A[1])}return G}}}};var O=function(){function H(m,u,Y,re,U,X,W,G){var P=u.coords,E=u.colors,A=m.data,_=m.width*4,F;P[Y+1]>P[re+1]&&(F=Y,Y=re,re=F,F=X,X=W,W=F),P[re+1]>P[U+1]&&(F=re,re=U,U=F,F=W,W=G,G=F),P[Y+1]>P[re+1]&&(F=Y,Y=re,re=F,F=X,X=W,W=F);var D=(P[Y]+u.offsetX)*u.scaleX,L=(P[Y+1]+u.offsetY)*u.scaleY,k=(P[re]+u.offsetX)*u.scaleX,v=(P[re+1]+u.offsetY)*u.scaleY,y=(P[U]+u.offsetX)*u.scaleX,b=(P[U+1]+u.offsetY)*u.scaleY;if(!(L>=b))for(var C=E[X],w=E[X+1],T=E[X+2],B=E[W],N=E[W+1],Q=E[W+2],z=E[G],j=E[G+1],$=E[G+2],M=Math.round(L),q=Math.round(b),K,Z,te,oe,ae,ce,fe,ne,le=M;le<=q;le++){if(le<v){let Se;le<L?Se=0:L===v?Se=1:Se=(L-le)/(L-v),K=D-(D-k)*Se,Z=C-(C-B)*Se,te=w-(w-N)*Se,oe=T-(T-Q)*Se}else{let Se;le>b?Se=1:v===b?Se=0:Se=(v-le)/(v-b),K=k-(k-y)*Se,Z=B-(B-z)*Se,te=N-(N-j)*Se,oe=Q-(Q-$)*Se}let me;le<L?me=0:le>b?me=1:me=(L-le)/(L-b),ae=D-(D-y)*me,ce=C-(C-z)*me,fe=w-(w-j)*me,ne=T-(T-$)*me;for(var ue=Math.round(Math.min(K,ae)),he=Math.round(Math.max(K,ae)),de=_*le+ue*4,ve=ue;ve<=he;ve++)me=(K-ve)/(K-ae),me<0?me=0:me>1&&(me=1),A[de++]=Z-(Z-ce)*me|0,A[de++]=te-(te-fe)*me|0,A[de++]=oe-(oe-ne)*me|0,A[de++]=255}}function ee(m,u,Y){var re=u.coords,U=u.colors,X,W;switch(u.type){case"lattice":var G=u.verticesPerRow,P=Math.floor(re.length/G)-1,E=G-1;for(X=0;X<P;X++)for(var A=X*G,_=0;_<E;_++,A++)H(m,Y,re[A],re[A+1],re[A+G],U[A],U[A+1],U[A+G]),H(m,Y,re[A+G+1],re[A+1],re[A+G],U[A+G+1],U[A+1],U[A+G]);break;case"triangles":for(X=0,W=re.length;X<W;X+=3)H(m,Y,re[X],re[X+1],re[X+2],U[X],U[X+1],U[X+2]);break;default:throw new Error("illegal figure")}}function ie(m,u,Y,re,U,X,W,G){var P=1.1,E=3e3,A=2,_=Math.floor(m[0]),F=Math.floor(m[1]),D=Math.ceil(m[2])-_,L=Math.ceil(m[3])-F,k=Math.min(Math.ceil(Math.abs(D*u[0]*P)),E),v=Math.min(Math.ceil(Math.abs(L*u[1]*P)),E),y=D/k,b=L/v,C={coords:Y,colors:re,offsetX:-_,offsetY:-F,scaleX:1/y,scaleY:1/b},w=k+A*2,T=v+A*2,B,N,Q,z;if(G.isEnabled)B=G.drawFigures({width:k,height:v,backgroundColor:X,figures:U,context:C}),N=W.getCanvas("mesh",w,T,!1),N.context.drawImage(B,A,A),B=N.canvas;else{N=W.getCanvas("mesh",w,T,!1);var j=N.context,$=j.createImageData(k,v);if(X){var M=$.data;for(Q=0,z=M.length;Q<z;Q+=4)M[Q]=X[0],M[Q+1]=X[1],M[Q+2]=X[2],M[Q+3]=255}for(Q=0;Q<U.length;Q++)ee($,U[Q],C);j.putImageData($,A,A),B=N.canvas}return{canvas:B,offsetX:_-A*y,offsetY:F-A*b,scaleX:y,scaleY:b}}return ie}();R.Mesh={fromIR:function(H){var ee=H[2],ie=H[3],m=H[4],u=H[5],Y=H[6],re=H[7],U=H[8];return{type:"Pattern",getPattern:function(W,G,P){g(W,re);var E;if(P)E=d.Util.singularValueDecompose2dScale(W.mozCurrentTransform);else if(E=d.Util.singularValueDecompose2dScale(G.baseTransform),Y){var A=d.Util.singularValueDecompose2dScale(Y);E=[E[0]*A[0],E[1]*A[1]]}var _=O(u,E,ee,ie,m,P?null:U,G.cachedCanvases,G.webGLContext);return P||(W.setTransform.apply(W,G.baseTransform),Y&&W.transform.apply(W,Y)),W.translate(_.offsetX,_.offsetY),W.scale(_.scaleX,_.scaleY),W.createPattern(_.canvas,"no-repeat")}}}},R.Dummy={fromIR:function(){return{type:"Pattern",getPattern:function(){return"hotpink"}}}};function J(se){var H=R[se[0]];if(!H)throw new Error(`Unknown IR type: ${se[0]}`);return H.fromIR(se)}var a=function(){var H={COLORED:1,UNCOLORED:2},ee=3e3;function ie(m,u,Y,re,U){this.operatorList=m[2],this.matrix=m[3]||[1,0,0,1,0,0],this.bbox=m[4],this.xstep=m[5],this.ystep=m[6],this.paintType=m[7],this.tilingType=m[8],this.color=u,this.canvasGraphicsFactory=re,this.baseTransform=U,this.type="Pattern",this.ctx=Y}return ie.prototype={createPatternCanvas:function(u){var Y=this.operatorList,re=this.bbox,U=this.xstep,X=this.ystep,W=this.paintType,G=this.tilingType,P=this.color,E=this.canvasGraphicsFactory;(0,d.info)("TilingType: "+G);var A=re[0],_=re[1],F=re[2],D=re[3],L=d.Util.singularValueDecompose2dScale(this.matrix),k=d.Util.singularValueDecompose2dScale(this.baseTransform),v=[L[0]*k[0],L[1]*k[1]],y=this.getSizeAndScale(U,this.ctx.canvas.width,v[0]),b=this.getSizeAndScale(X,this.ctx.canvas.height,v[1]),C=u.cachedCanvases.getCanvas("pattern",y.size,b.size,!0),w=C.context,T=E.createCanvasGraphics(w);return T.groupLevel=u.groupLevel,this.setFillAndStrokeStyleToContext(T,W,P),T.transform(y.scale,0,0,b.scale,0,0),T.transform(1,0,0,1,-A,-_),this.clipBbox(T,re,A,_,F,D),T.executeOperatorList(Y),this.ctx.transform(1,0,0,1,A,_),this.ctx.scale(1/y.scale,1/b.scale),C.canvas},getSizeAndScale:function(u,Y,re){u=Math.abs(u);var U=Math.max(ee,Y),X=Math.ceil(u*re);return X>=U?X=U:re=X/u,{scale:re,size:X}},clipBbox:function(u,Y,re,U,X,W){if(Array.isArray(Y)&&Y.length===4){var G=X-re,P=W-U;u.ctx.rect(re,U,G,P),u.clip(),u.endPath()}},setFillAndStrokeStyleToContext:function(u,Y,re){const U=u.ctx,X=u.current;switch(Y){case H.COLORED:var W=this.ctx;U.fillStyle=W.fillStyle,U.strokeStyle=W.strokeStyle,X.fillColor=W.fillStyle,X.strokeColor=W.strokeStyle;break;case H.UNCOLORED:var G=d.Util.makeCssRgb(re[0],re[1],re[2]);U.fillStyle=G,U.strokeStyle=G,X.fillColor=G,X.strokeColor=G;break;default:throw new d.FormatError(`Unsupported paint type: ${Y}`)}},getPattern:function(u,Y){u=this.ctx,u.setTransform.apply(u,this.baseTransform),u.transform.apply(u,this.matrix);var re=this.createPatternCanvas(Y);return u.createPattern(re,"repeat")}},ie}();f.TilingPattern=a},function(p,f,S){Object.defineProperty(f,"__esModule",{value:!0}),f.GlobalWorkerOptions=void 0;const d=Object.create(null);f.GlobalWorkerOptions=d,d.workerPort=d.workerPort===void 0?null:d.workerPort,d.workerSrc=d.workerSrc===void 0?"":d.workerSrc},function(p,f,S){Object.defineProperty(f,"__esModule",{value:!0}),f.MessageHandler=void 0;var d=S(2);const R={UNKNOWN:0,DATA:1,ERROR:2},g={UNKNOWN:0,CANCEL:1,CANCEL_COMPLETE:2,CLOSE:3,ENQUEUE:4,ERROR:5,PULL:6,PULL_COMPLETE:7,START_COMPLETE:8};function O(a){if(typeof a!="object"||a===null)return a;switch(a.name){case"AbortException":return new d.AbortException(a.message);case"MissingPDFException":return new d.MissingPDFException(a.message);case"UnexpectedResponseException":return new d.UnexpectedResponseException(a.message,a.status);case"UnknownErrorException":return new d.UnknownErrorException(a.message,a.details);default:return new d.UnknownErrorException(a.message,a.toString())}}class J{constructor(se,H,ee){this.sourceName=se,this.targetName=H,this.comObj=ee,this.callbackId=1,this.streamId=1,this.postMessageTransfers=!0,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=ie=>{const m=ie.data;if(m.targetName!==this.sourceName)return;if(m.stream){this._processStreamMessage(m);return}if(m.callback){const Y=m.callbackId,re=this.callbackCapabilities[Y];if(!re)throw new Error(`Cannot resolve callback ${Y}`);if(delete this.callbackCapabilities[Y],m.callback===R.DATA)re.resolve(m.data);else if(m.callback===R.ERROR)re.reject(O(m.reason));else throw new Error("Unexpected callback case");return}const u=this.actionHandler[m.action];if(!u)throw new Error(`Unknown action from worker: ${m.action}`);if(m.callbackId){const Y=this.sourceName,re=m.sourceName;new Promise(function(U){U(u(m.data))}).then(function(U){ee.postMessage({sourceName:Y,targetName:re,callback:R.DATA,callbackId:m.callbackId,data:U})},function(U){ee.postMessage({sourceName:Y,targetName:re,callback:R.ERROR,callbackId:m.callbackId,reason:O(U)})});return}if(m.streamId){this._createStreamSink(m);return}u(m.data)},ee.addEventListener("message",this._onComObjOnMessage)}on(se,H){const ee=this.actionHandler;if(ee[se])throw new Error(`There is already an actionName called "${se}"`);ee[se]=H}send(se,H,ee){this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:se,data:H},ee)}sendWithPromise(se,H,ee){const ie=this.callbackId++,m=(0,d.createPromiseCapability)();this.callbackCapabilities[ie]=m;try{this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:se,callbackId:ie,data:H},ee)}catch(u){m.reject(u)}return m.promise}sendWithStream(se,H,ee,ie){const m=this.streamId++,u=this.sourceName,Y=this.targetName,re=this.comObj;return new ReadableStream({start:U=>{const X=(0,d.createPromiseCapability)();return this.streamControllers[m]={controller:U,startCall:X,pullCall:null,cancelCall:null,isClosed:!1},this._postMessage({sourceName:u,targetName:Y,action:se,streamId:m,data:H,desiredSize:U.desiredSize},ie),X.promise},pull:U=>{const X=(0,d.createPromiseCapability)();return this.streamControllers[m].pullCall=X,re.postMessage({sourceName:u,targetName:Y,stream:g.PULL,streamId:m,desiredSize:U.desiredSize}),X.promise},cancel:U=>{(0,d.assert)(U instanceof Error,"cancel must have a valid reason");const X=(0,d.createPromiseCapability)();return this.streamControllers[m].cancelCall=X,this.streamControllers[m].isClosed=!0,re.postMessage({sourceName:u,targetName:Y,stream:g.CANCEL,streamId:m,reason:O(U)}),X.promise}},ee)}_createStreamSink(se){const H=this,ee=this.actionHandler[se.action],ie=se.streamId,m=this.sourceName,u=se.sourceName,Y=this.comObj,re={enqueue(U,X=1,W){if(this.isCancelled)return;const G=this.desiredSize;this.desiredSize-=X,G>0&&this.desiredSize<=0&&(this.sinkCapability=(0,d.createPromiseCapability)(),this.ready=this.sinkCapability.promise),H._postMessage({sourceName:m,targetName:u,stream:g.ENQUEUE,streamId:ie,chunk:U},W)},close(){this.isCancelled||(this.isCancelled=!0,Y.postMessage({sourceName:m,targetName:u,stream:g.CLOSE,streamId:ie}),delete H.streamSinks[ie])},error(U){(0,d.assert)(U instanceof Error,"error must have a valid reason"),!this.isCancelled&&(this.isCancelled=!0,Y.postMessage({sourceName:m,targetName:u,stream:g.ERROR,streamId:ie,reason:O(U)}))},sinkCapability:(0,d.createPromiseCapability)(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:se.desiredSize,ready:null};re.sinkCapability.resolve(),re.ready=re.sinkCapability.promise,this.streamSinks[ie]=re,new Promise(function(U){U(ee(se.data,re))}).then(function(){Y.postMessage({sourceName:m,targetName:u,stream:g.START_COMPLETE,streamId:ie,success:!0})},function(U){Y.postMessage({sourceName:m,targetName:u,stream:g.START_COMPLETE,streamId:ie,reason:O(U)})})}_processStreamMessage(se){const H=se.streamId,ee=this.sourceName,ie=se.sourceName,m=this.comObj;switch(se.stream){case g.START_COMPLETE:se.success?this.streamControllers[H].startCall.resolve():this.streamControllers[H].startCall.reject(O(se.reason));break;case g.PULL_COMPLETE:se.success?this.streamControllers[H].pullCall.resolve():this.streamControllers[H].pullCall.reject(O(se.reason));break;case g.PULL:if(!this.streamSinks[H]){m.postMessage({sourceName:ee,targetName:ie,stream:g.PULL_COMPLETE,streamId:H,success:!0});break}this.streamSinks[H].desiredSize<=0&&se.desiredSize>0&&this.streamSinks[H].sinkCapability.resolve(),this.streamSinks[H].desiredSize=se.desiredSize;const{onPull:u}=this.streamSinks[se.streamId];new Promise(function(re){re(u&&u())}).then(function(){m.postMessage({sourceName:ee,targetName:ie,stream:g.PULL_COMPLETE,streamId:H,success:!0})},function(re){m.postMessage({sourceName:ee,targetName:ie,stream:g.PULL_COMPLETE,streamId:H,reason:O(re)})});break;case g.ENQUEUE:if((0,d.assert)(this.streamControllers[H],"enqueue should have stream controller"),this.streamControllers[H].isClosed)break;this.streamControllers[H].controller.enqueue(se.chunk);break;case g.CLOSE:if((0,d.assert)(this.streamControllers[H],"close should have stream controller"),this.streamControllers[H].isClosed)break;this.streamControllers[H].isClosed=!0,this.streamControllers[H].controller.close(),this._deleteStreamController(H);break;case g.ERROR:(0,d.assert)(this.streamControllers[H],"error should have stream controller"),this.streamControllers[H].controller.error(O(se.reason)),this._deleteStreamController(H);break;case g.CANCEL_COMPLETE:se.success?this.streamControllers[H].cancelCall.resolve():this.streamControllers[H].cancelCall.reject(O(se.reason)),this._deleteStreamController(H);break;case g.CANCEL:if(!this.streamSinks[H])break;const{onCancel:Y}=this.streamSinks[se.streamId];new Promise(function(re){re(Y&&Y(O(se.reason)))}).then(function(){m.postMessage({sourceName:ee,targetName:ie,stream:g.CANCEL_COMPLETE,streamId:H,success:!0})},function(re){m.postMessage({sourceName:ee,targetName:ie,stream:g.CANCEL_COMPLETE,streamId:H,reason:O(re)})}),this.streamSinks[H].sinkCapability.reject(O(se.reason)),this.streamSinks[H].isCancelled=!0,delete this.streamSinks[H];break;default:throw new Error("Unexpected stream case")}}async _deleteStreamController(se){await Promise.allSettled([this.streamControllers[se].startCall,this.streamControllers[se].pullCall,this.streamControllers[se].cancelCall].map(function(H){return H&&H.promise})),delete this.streamControllers[se]}_postMessage(se,H){H&&this.postMessageTransfers?this.comObj.postMessage(se,H):this.comObj.postMessage(se)}destroy(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}f.MessageHandler=J},function(p,f,S){Object.defineProperty(f,"__esModule",{value:!0}),f.Metadata=void 0;var d=S(2),R=S(13);class g{constructor(J){(0,d.assert)(typeof J=="string","Metadata: input is not a string"),J=this._repair(J);const se=new R.SimpleXMLParser().parseFromString(J);this._metadataMap=new Map,se&&this._parse(se)}_repair(J){return J.replace(/^[^<]+/,"").replace(/>\\376\\377([^<]+)/g,function(a,se){const H=se.replace(/\\([0-3])([0-7])([0-7])/g,function(ie,m,u,Y){return String.fromCharCode(m*64+u*8+Y*1)}).replace(/&(amp|apos|gt|lt|quot);/g,function(ie,m){switch(m){case"amp":return"&";case"apos":return"'";case"gt":return">";case"lt":return"<";case"quot":return'"'}throw new Error(`_repair: ${m} isn't defined.`)});let ee="";for(let ie=0,m=H.length;ie<m;ie+=2){const u=H.charCodeAt(ie)*256+H.charCodeAt(ie+1);u>=32&&u<127&&u!==60&&u!==62&&u!==38?ee+=String.fromCharCode(u):ee+="&#x"+(65536+u).toString(16).substring(1)+";"}return">"+ee})}_parse(J){let a=J.documentElement;if(a.nodeName.toLowerCase()!=="rdf:rdf")for(a=a.firstChild;a&&a.nodeName.toLowerCase()!=="rdf:rdf";)a=a.nextSibling;const se=a?a.nodeName.toLowerCase():null;if(!a||se!=="rdf:rdf"||!a.hasChildNodes())return;const H=a.childNodes;for(let ee=0,ie=H.length;ee<ie;ee++){const m=H[ee];if(m.nodeName.toLowerCase()==="rdf:description"){for(let u=0,Y=m.childNodes.length;u<Y;u++)if(m.childNodes[u].nodeName.toLowerCase()!=="#text"){const re=m.childNodes[u],U=re.nodeName.toLowerCase();this._metadataMap.set(U,re.textContent.trim())}}}}get(J){return this._metadataMap.has(J)?this._metadataMap.get(J):null}getAll(){const J=Object.create(null);for(const[a,se]of this._metadataMap)J[a]=se;return J}has(J){return this._metadataMap.has(J)}}f.Metadata=g},function(p,f,S){Object.defineProperty(f,"__esModule",{value:!0}),f.SimpleXMLParser=void 0;const d={NoError:0,EndOfDocument:-1,UnterminatedCdat:-2,UnterminatedXmlDeclaration:-3,UnterminatedDoctypeDeclaration:-4,UnterminatedComment:-5,MalformedElement:-6,OutOfMemory:-7,UnterminatedAttributeValue:-8,UnterminatedElement:-9,ElementNeverBegun:-10};function R(se,H){const ee=se[H];return ee===" "||ee===`
51
- `||ee==="\r"||ee===" "}function g(se){for(let H=0,ee=se.length;H<ee;H++)if(!R(se,H))return!1;return!0}class O{_resolveEntities(H){return H.replace(/&([^;]+);/g,(ee,ie)=>{if(ie.substring(0,2)==="#x")return String.fromCharCode(parseInt(ie.substring(2),16));if(ie.substring(0,1)==="#")return String.fromCharCode(parseInt(ie.substring(1),10));switch(ie){case"lt":return"<";case"gt":return">";case"amp":return"&";case"quot":return'"'}return this.onResolveEntity(ie)})}_parseContent(H,ee){const ie=[];let m=ee;function u(){for(;m<H.length&&R(H,m);)++m}for(;m<H.length&&!R(H,m)&&H[m]!==">"&&H[m]!=="/";)++m;const Y=H.substring(ee,m);for(u();m<H.length&&H[m]!==">"&&H[m]!=="/"&&H[m]!=="?";){u();let re="",U="";for(;m<H.length&&!R(H,m)&&H[m]!=="=";)re+=H[m],++m;if(u(),H[m]!=="=")return null;++m,u();const X=H[m];if(X!=='"'&&X!=="'")return null;const W=H.indexOf(X,++m);if(W<0)return null;U=H.substring(m,W),ie.push({name:re,value:this._resolveEntities(U)}),m=W+1,u()}return{name:Y,attributes:ie,parsed:m-ee}}_parseProcessingInstruction(H,ee){let ie=ee;function m(){for(;ie<H.length&&R(H,ie);)++ie}for(;ie<H.length&&!R(H,ie)&&H[ie]!==">"&&H[ie]!=="/";)++ie;const u=H.substring(ee,ie);m();const Y=ie;for(;ie<H.length&&(H[ie]!=="?"||H[ie+1]!==">");)++ie;const re=H.substring(Y,ie);return{name:u,value:re,parsed:ie-ee}}parseXml(H){let ee=0;for(;ee<H.length;){const ie=H[ee];let m=ee;if(ie==="<"){++m;const u=H[m];let Y;switch(u){case"/":if(++m,Y=H.indexOf(">",m),Y<0){this.onError(d.UnterminatedElement);return}this.onEndElement(H.substring(m,Y)),m=Y+1;break;case"?":++m;const re=this._parseProcessingInstruction(H,m);if(H.substring(m+re.parsed,m+re.parsed+2)!=="?>"){this.onError(d.UnterminatedXmlDeclaration);return}this.onPi(re.name,re.value),m+=re.parsed+2;break;case"!":if(H.substring(m+1,m+3)==="--"){if(Y=H.indexOf("-->",m+3),Y<0){this.onError(d.UnterminatedComment);return}this.onComment(H.substring(m+3,Y)),m=Y+3}else if(H.substring(m+1,m+8)==="[CDATA["){if(Y=H.indexOf("]]>",m+8),Y<0){this.onError(d.UnterminatedCdat);return}this.onCdata(H.substring(m+8,Y)),m=Y+3}else if(H.substring(m+1,m+8)==="DOCTYPE"){const W=H.indexOf("[",m+8);let G=!1;if(Y=H.indexOf(">",m+8),Y<0){this.onError(d.UnterminatedDoctypeDeclaration);return}if(W>0&&Y>W){if(Y=H.indexOf("]>",m+8),Y<0){this.onError(d.UnterminatedDoctypeDeclaration);return}G=!0}const P=H.substring(m+8,Y+(G?1:0));this.onDoctype(P),m=Y+(G?2:1)}else{this.onError(d.MalformedElement);return}break;default:const U=this._parseContent(H,m);if(U===null){this.onError(d.MalformedElement);return}let X=!1;if(H.substring(m+U.parsed,m+U.parsed+2)==="/>")X=!0;else if(H.substring(m+U.parsed,m+U.parsed+1)!==">"){this.onError(d.UnterminatedElement);return}this.onBeginElement(U.name,U.attributes,X),m+=U.parsed+(X?2:1);break}}else{for(;m<H.length&&H[m]!=="<";)m++;const u=H.substring(ee,m);this.onText(this._resolveEntities(u))}ee=m}}onResolveEntity(H){return`&${H};`}onPi(H,ee){}onComment(H){}onCdata(H){}onDoctype(H){}onText(H){}onBeginElement(H,ee,ie){}onEndElement(H){}onError(H){}}class J{constructor(H,ee){this.nodeName=H,this.nodeValue=ee,Object.defineProperty(this,"parentNode",{value:null,writable:!0})}get firstChild(){return this.childNodes&&this.childNodes[0]}get nextSibling(){const H=this.parentNode.childNodes;if(!H)return;const ee=H.indexOf(this);if(ee!==-1)return H[ee+1]}get textContent(){return this.childNodes?this.childNodes.map(function(H){return H.textContent}).join(""):this.nodeValue||""}hasChildNodes(){return this.childNodes&&this.childNodes.length>0}}class a extends O{constructor(){super(),this._currentFragment=null,this._stack=null,this._errorCode=d.NoError}parseFromString(H){if(this._currentFragment=[],this._stack=[],this._errorCode=d.NoError,this.parseXml(H),this._errorCode!==d.NoError)return;const[ee]=this._currentFragment;if(!!ee)return{documentElement:ee}}onResolveEntity(H){switch(H){case"apos":return"'"}return super.onResolveEntity(H)}onText(H){if(g(H))return;const ee=new J("#text",H);this._currentFragment.push(ee)}onCdata(H){const ee=new J("#text",H);this._currentFragment.push(ee)}onBeginElement(H,ee,ie){const m=new J(H);m.childNodes=[],this._currentFragment.push(m),!ie&&(this._stack.push(this._currentFragment),this._currentFragment=m.childNodes)}onEndElement(H){this._currentFragment=this._stack.pop()||[];const ee=this._currentFragment[this._currentFragment.length-1];if(!!ee)for(let ie=0,m=ee.childNodes.length;ie<m;ie++)ee.childNodes[ie].parentNode=ee}onError(H){this._errorCode=H}}f.SimpleXMLParser=a},function(p,f,S){Object.defineProperty(f,"__esModule",{value:!0}),f.PDFDataTransportStream=void 0;var d=S(2);class R{constructor(a,se){(0,d.assert)(se,'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.'),this._queuedChunks=[],this._progressiveDone=a.progressiveDone||!1;const H=a.initialData;if(H&&H.length>0){const ee=new Uint8Array(H).buffer;this._queuedChunks.push(ee)}this._pdfDataRangeTransport=se,this._isStreamingSupported=!a.disableStream,this._isRangeSupported=!a.disableRange,this._contentLength=a.length,this._fullRequestReader=null,this._rangeReaders=[],this._pdfDataRangeTransport.addRangeListener((ee,ie)=>{this._onReceiveData({begin:ee,chunk:ie})}),this._pdfDataRangeTransport.addProgressListener((ee,ie)=>{this._onProgress({loaded:ee,total:ie})}),this._pdfDataRangeTransport.addProgressiveReadListener(ee=>{this._onReceiveData({chunk:ee})}),this._pdfDataRangeTransport.addProgressiveDoneListener(()=>{this._onProgressiveDone()}),this._pdfDataRangeTransport.transportReady()}_onReceiveData(a){const se=new Uint8Array(a.chunk).buffer;if(a.begin===void 0)this._fullRequestReader?this._fullRequestReader._enqueue(se):this._queuedChunks.push(se);else{const H=this._rangeReaders.some(function(ee){return ee._begin!==a.begin?!1:(ee._enqueue(se),!0)});(0,d.assert)(H,"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}}get _progressiveDataLength(){return this._fullRequestReader?this._fullRequestReader._loaded:0}_onProgress(a){if(a.total===void 0){const se=this._rangeReaders[0];se&&se.onProgress&&se.onProgress({loaded:a.loaded})}else{const se=this._fullRequestReader;se&&se.onProgress&&se.onProgress({loaded:a.loaded,total:a.total})}}_onProgressiveDone(){this._fullRequestReader&&this._fullRequestReader.progressiveDone(),this._progressiveDone=!0}_removeRangeReader(a){const se=this._rangeReaders.indexOf(a);se>=0&&this._rangeReaders.splice(se,1)}getFullReader(){(0,d.assert)(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");const a=this._queuedChunks;return this._queuedChunks=null,new g(this,a,this._progressiveDone)}getRangeReader(a,se){if(se<=this._progressiveDataLength)return null;const H=new O(this,a,se);return this._pdfDataRangeTransport.requestDataRange(a,se),this._rangeReaders.push(H),H}cancelAllRequests(a){this._fullRequestReader&&this._fullRequestReader.cancel(a),this._rangeReaders.slice(0).forEach(function(H){H.cancel(a)}),this._pdfDataRangeTransport.abort()}}f.PDFDataTransportStream=R;class g{constructor(a,se,H=!1){this._stream=a,this._done=H||!1,this._filename=null,this._queuedChunks=se||[],this._loaded=0;for(const ee of this._queuedChunks)this._loaded+=ee.byteLength;this._requests=[],this._headersReady=Promise.resolve(),a._fullRequestReader=this,this.onProgress=null}_enqueue(a){this._done||(this._requests.length>0?this._requests.shift().resolve({value:a,done:!1}):this._queuedChunks.push(a),this._loaded+=a.byteLength)}get headersReady(){return this._headersReady}get filename(){return this._filename}get isRangeSupported(){return this._stream._isRangeSupported}get isStreamingSupported(){return this._stream._isStreamingSupported}get contentLength(){return this._stream._contentLength}async read(){if(this._queuedChunks.length>0)return{value:this._queuedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};const a=(0,d.createPromiseCapability)();return this._requests.push(a),a.promise}cancel(a){this._done=!0,this._requests.forEach(function(se){se.resolve({value:void 0,done:!0})}),this._requests=[]}progressiveDone(){this._done||(this._done=!0)}}class O{constructor(a,se,H){this._stream=a,this._begin=se,this._end=H,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}_enqueue(a){this._done||(this._requests.length===0?this._queuedChunk=a:(this._requests.shift().resolve({value:a,done:!1}),this._requests.forEach(function(H){H.resolve({value:void 0,done:!0})}),this._requests=[]),this._done=!0,this._stream._removeRangeReader(this))}get isStreamingSupported(){return!1}async read(){if(this._queuedChunk){const se=this._queuedChunk;return this._queuedChunk=null,{value:se,done:!1}}if(this._done)return{value:void 0,done:!0};const a=(0,d.createPromiseCapability)();return this._requests.push(a),a.promise}cancel(a){this._done=!0,this._requests.forEach(function(se){se.resolve({value:void 0,done:!0})}),this._requests=[],this._stream._removeRangeReader(this)}}},function(p,f,S){Object.defineProperty(f,"__esModule",{value:!0}),f.WebGLContext=void 0;var d=S(2);class R{constructor({enable:J=!1}){this._enabled=J===!0}get isEnabled(){let J=this._enabled;return J&&(J=g.tryInitGL()),(0,d.shadow)(this,"isEnabled",J)}composeSMask({layer:J,mask:a,properties:se}){return g.composeSMask(J,a,se)}drawFigures({width:J,height:a,backgroundColor:se,figures:H,context:ee}){return g.drawFigures(J,a,se,H,ee)}clear(){g.cleanup()}}f.WebGLContext=R;var g=function(){function J(F,D,L){var k=F.createShader(L);F.shaderSource(k,D),F.compileShader(k);var v=F.getShaderParameter(k,F.COMPILE_STATUS);if(!v){var y=F.getShaderInfoLog(k);throw new Error("Error during shader compilation: "+y)}return k}function a(F,D){return J(F,D,F.VERTEX_SHADER)}function se(F,D){return J(F,D,F.FRAGMENT_SHADER)}function H(F,D){for(var L=F.createProgram(),k=0,v=D.length;k<v;++k)F.attachShader(L,D[k]);F.linkProgram(L);var y=F.getProgramParameter(L,F.LINK_STATUS);if(!y){var b=F.getProgramInfoLog(L);throw new Error("Error during program linking: "+b)}return L}function ee(F,D,L){F.activeTexture(L);var k=F.createTexture();return F.bindTexture(F.TEXTURE_2D,k),F.texParameteri(F.TEXTURE_2D,F.TEXTURE_WRAP_S,F.CLAMP_TO_EDGE),F.texParameteri(F.TEXTURE_2D,F.TEXTURE_WRAP_T,F.CLAMP_TO_EDGE),F.texParameteri(F.TEXTURE_2D,F.TEXTURE_MIN_FILTER,F.NEAREST),F.texParameteri(F.TEXTURE_2D,F.TEXTURE_MAG_FILTER,F.NEAREST),F.texImage2D(F.TEXTURE_2D,0,F.RGBA,F.RGBA,F.UNSIGNED_BYTE,D),k}var ie,m;function u(){ie||(m=document.createElement("canvas"),ie=m.getContext("webgl",{premultipliedalpha:!1}))}var Y=" attribute vec2 a_position; attribute vec2 a_texCoord; uniform vec2 u_resolution; varying vec2 v_texCoord; void main() { vec2 clipSpace = (a_position / u_resolution) * 2.0 - 1.0; gl_Position = vec4(clipSpace * vec2(1, -1), 0, 1); v_texCoord = a_texCoord; } ",re=" precision mediump float; uniform vec4 u_backdrop; uniform int u_subtype; uniform sampler2D u_image; uniform sampler2D u_mask; varying vec2 v_texCoord; void main() { vec4 imageColor = texture2D(u_image, v_texCoord); vec4 maskColor = texture2D(u_mask, v_texCoord); if (u_backdrop.a > 0.0) { maskColor.rgb = maskColor.rgb * maskColor.a + u_backdrop.rgb * (1.0 - maskColor.a); } float lum; if (u_subtype == 0) { lum = maskColor.a; } else { lum = maskColor.r * 0.3 + maskColor.g * 0.59 + maskColor.b * 0.11; } imageColor.a *= lum; imageColor.rgb *= imageColor.a; gl_FragColor = imageColor; } ",U=null;function X(){var F,D;u(),F=m,m=null,D=ie,ie=null;var L=a(D,Y),k=se(D,re),v=H(D,[L,k]);D.useProgram(v);var y={};y.gl=D,y.canvas=F,y.resolutionLocation=D.getUniformLocation(v,"u_resolution"),y.positionLocation=D.getAttribLocation(v,"a_position"),y.backdropLocation=D.getUniformLocation(v,"u_backdrop"),y.subtypeLocation=D.getUniformLocation(v,"u_subtype");var b=D.getAttribLocation(v,"a_texCoord"),C=D.getUniformLocation(v,"u_image"),w=D.getUniformLocation(v,"u_mask"),T=D.createBuffer();D.bindBuffer(D.ARRAY_BUFFER,T),D.bufferData(D.ARRAY_BUFFER,new Float32Array([0,0,1,0,0,1,0,1,1,0,1,1]),D.STATIC_DRAW),D.enableVertexAttribArray(b),D.vertexAttribPointer(b,2,D.FLOAT,!1,0,0),D.uniform1i(C,0),D.uniform1i(w,1),U=y}function W(F,D,L){var k=F.width,v=F.height;U||X();var y=U,b=y.canvas,C=y.gl;b.width=k,b.height=v,C.viewport(0,0,C.drawingBufferWidth,C.drawingBufferHeight),C.uniform2f(y.resolutionLocation,k,v),L.backdrop?C.uniform4f(y.resolutionLocation,L.backdrop[0],L.backdrop[1],L.backdrop[2],1):C.uniform4f(y.resolutionLocation,0,0,0,0),C.uniform1i(y.subtypeLocation,L.subtype==="Luminosity"?1:0);var w=ee(C,F,C.TEXTURE0),T=ee(C,D,C.TEXTURE1),B=C.createBuffer();return C.bindBuffer(C.ARRAY_BUFFER,B),C.bufferData(C.ARRAY_BUFFER,new Float32Array([0,0,k,0,0,v,0,v,k,0,k,v]),C.STATIC_DRAW),C.enableVertexAttribArray(y.positionLocation),C.vertexAttribPointer(y.positionLocation,2,C.FLOAT,!1,0,0),C.clearColor(0,0,0,0),C.enable(C.BLEND),C.blendFunc(C.ONE,C.ONE_MINUS_SRC_ALPHA),C.clear(C.COLOR_BUFFER_BIT),C.drawArrays(C.TRIANGLES,0,6),C.flush(),C.deleteTexture(w),C.deleteTexture(T),C.deleteBuffer(B),b}var G=" attribute vec2 a_position; attribute vec3 a_color; uniform vec2 u_resolution; uniform vec2 u_scale; uniform vec2 u_offset; varying vec4 v_color; void main() { vec2 position = (a_position + u_offset) * u_scale; vec2 clipSpace = (position / u_resolution) * 2.0 - 1.0; gl_Position = vec4(clipSpace * vec2(1, -1), 0, 1); v_color = vec4(a_color / 255.0, 1.0); } ",P=" precision mediump float; varying vec4 v_color; void main() { gl_FragColor = v_color; } ",E=null;function A(){var F,D;u(),F=m,m=null,D=ie,ie=null;var L=a(D,G),k=se(D,P),v=H(D,[L,k]);D.useProgram(v);var y={};y.gl=D,y.canvas=F,y.resolutionLocation=D.getUniformLocation(v,"u_resolution"),y.scaleLocation=D.getUniformLocation(v,"u_scale"),y.offsetLocation=D.getUniformLocation(v,"u_offset"),y.positionLocation=D.getAttribLocation(v,"a_position"),y.colorLocation=D.getAttribLocation(v,"a_color"),E=y}function _(F,D,L,k,v){E||A();var y=E,b=y.canvas,C=y.gl;b.width=F,b.height=D,C.viewport(0,0,C.drawingBufferWidth,C.drawingBufferHeight),C.uniform2f(y.resolutionLocation,F,D);var w=0,T,B,N;for(T=0,B=k.length;T<B;T++)switch(k[T].type){case"lattice":N=k[T].coords.length/k[T].verticesPerRow|0,w+=(N-1)*(k[T].verticesPerRow-1)*6;break;case"triangles":w+=k[T].coords.length;break}var Q=new Float32Array(w*2),z=new Uint8Array(w*3),j=v.coords,$=v.colors,M=0,q=0;for(T=0,B=k.length;T<B;T++){var K=k[T],Z=K.coords,te=K.colors;switch(K.type){case"lattice":var oe=K.verticesPerRow;N=Z.length/oe|0;for(var ae=1;ae<N;ae++)for(var ce=ae*oe+1,fe=1;fe<oe;fe++,ce++)Q[M]=j[Z[ce-oe-1]],Q[M+1]=j[Z[ce-oe-1]+1],Q[M+2]=j[Z[ce-oe]],Q[M+3]=j[Z[ce-oe]+1],Q[M+4]=j[Z[ce-1]],Q[M+5]=j[Z[ce-1]+1],z[q]=$[te[ce-oe-1]],z[q+1]=$[te[ce-oe-1]+1],z[q+2]=$[te[ce-oe-1]+2],z[q+3]=$[te[ce-oe]],z[q+4]=$[te[ce-oe]+1],z[q+5]=$[te[ce-oe]+2],z[q+6]=$[te[ce-1]],z[q+7]=$[te[ce-1]+1],z[q+8]=$[te[ce-1]+2],Q[M+6]=Q[M+2],Q[M+7]=Q[M+3],Q[M+8]=Q[M+4],Q[M+9]=Q[M+5],Q[M+10]=j[Z[ce]],Q[M+11]=j[Z[ce]+1],z[q+9]=z[q+3],z[q+10]=z[q+4],z[q+11]=z[q+5],z[q+12]=z[q+6],z[q+13]=z[q+7],z[q+14]=z[q+8],z[q+15]=$[te[ce]],z[q+16]=$[te[ce]+1],z[q+17]=$[te[ce]+2],M+=12,q+=18;break;case"triangles":for(var ne=0,le=Z.length;ne<le;ne++)Q[M]=j[Z[ne]],Q[M+1]=j[Z[ne]+1],z[q]=$[te[ne]],z[q+1]=$[te[ne]+1],z[q+2]=$[te[ne]+2],M+=2,q+=3;break}}L?C.clearColor(L[0]/255,L[1]/255,L[2]/255,1):C.clearColor(0,0,0,0),C.clear(C.COLOR_BUFFER_BIT);var ue=C.createBuffer();C.bindBuffer(C.ARRAY_BUFFER,ue),C.bufferData(C.ARRAY_BUFFER,Q,C.STATIC_DRAW),C.enableVertexAttribArray(y.positionLocation),C.vertexAttribPointer(y.positionLocation,2,C.FLOAT,!1,0,0);var he=C.createBuffer();return C.bindBuffer(C.ARRAY_BUFFER,he),C.bufferData(C.ARRAY_BUFFER,z,C.STATIC_DRAW),C.enableVertexAttribArray(y.colorLocation),C.vertexAttribPointer(y.colorLocation,3,C.UNSIGNED_BYTE,!1,0,0),C.uniform2f(y.scaleLocation,v.scaleX,v.scaleY),C.uniform2f(y.offsetLocation,v.offsetX,v.offsetY),C.drawArrays(C.TRIANGLES,0,w),C.flush(),C.deleteBuffer(ue),C.deleteBuffer(he),b}return{tryInitGL(){try{return u(),!!ie}catch{}return!1},composeSMask:W,drawFigures:_,cleanup(){U&&U.canvas&&(U.canvas.width=0,U.canvas.height=0),E&&E.canvas&&(E.canvas.width=0,E.canvas.height=0),U=null,E=null}}}()},function(p,f,S){Object.defineProperty(f,"__esModule",{value:!0}),f.AnnotationLayer=void 0;var d=S(1),R=S(2);class g{static create(w){switch(w.data.annotationType){case R.AnnotationType.LINK:return new J(w);case R.AnnotationType.TEXT:return new a(w);case R.AnnotationType.WIDGET:switch(w.data.fieldType){case"Tx":return new H(w);case"Btn":return w.data.radioButton?new ie(w):w.data.checkBox?new ee(w):new m(w);case"Ch":return new u(w)}return new se(w);case R.AnnotationType.POPUP:return new Y(w);case R.AnnotationType.FREETEXT:return new U(w);case R.AnnotationType.LINE:return new X(w);case R.AnnotationType.SQUARE:return new W(w);case R.AnnotationType.CIRCLE:return new G(w);case R.AnnotationType.POLYLINE:return new P(w);case R.AnnotationType.CARET:return new A(w);case R.AnnotationType.INK:return new _(w);case R.AnnotationType.POLYGON:return new E(w);case R.AnnotationType.HIGHLIGHT:return new F(w);case R.AnnotationType.UNDERLINE:return new D(w);case R.AnnotationType.SQUIGGLY:return new L(w);case R.AnnotationType.STRIKEOUT:return new k(w);case R.AnnotationType.STAMP:return new v(w);case R.AnnotationType.FILEATTACHMENT:return new y(w);default:return new O(w)}}}class O{constructor(w,T=!1,B=!1){this.isRenderable=T,this.data=w.data,this.layer=w.layer,this.page=w.page,this.viewport=w.viewport,this.linkService=w.linkService,this.downloadManager=w.downloadManager,this.imageResourcesPath=w.imageResourcesPath,this.renderInteractiveForms=w.renderInteractiveForms,this.svgFactory=w.svgFactory,T&&(this.container=this._createContainer(B))}_createContainer(w=!1){const T=this.data,B=this.page,N=this.viewport,Q=document.createElement("section");let z=T.rect[2]-T.rect[0],j=T.rect[3]-T.rect[1];Q.setAttribute("data-annotation-id",T.id);const $=R.Util.normalizeRect([T.rect[0],B.view[3]-T.rect[1]+B.view[1],T.rect[2],B.view[3]-T.rect[3]+B.view[1]]);if(Q.style.transform=`matrix(${N.transform.join(",")})`,Q.style.transformOrigin=`-${$[0]}px -${$[1]}px`,!w&&T.borderStyle.width>0){Q.style.borderWidth=`${T.borderStyle.width}px`,T.borderStyle.style!==R.AnnotationBorderStyleType.UNDERLINE&&(z=z-2*T.borderStyle.width,j=j-2*T.borderStyle.width);const M=T.borderStyle.horizontalCornerRadius,q=T.borderStyle.verticalCornerRadius;if(M>0||q>0){const K=`${M}px / ${q}px`;Q.style.borderRadius=K}switch(T.borderStyle.style){case R.AnnotationBorderStyleType.SOLID:Q.style.borderStyle="solid";break;case R.AnnotationBorderStyleType.DASHED:Q.style.borderStyle="dashed";break;case R.AnnotationBorderStyleType.BEVELED:(0,R.warn)("Unimplemented border style: beveled");break;case R.AnnotationBorderStyleType.INSET:(0,R.warn)("Unimplemented border style: inset");break;case R.AnnotationBorderStyleType.UNDERLINE:Q.style.borderBottomStyle="solid";break}T.color?Q.style.borderColor=R.Util.makeCssRgb(T.color[0]|0,T.color[1]|0,T.color[2]|0):Q.style.borderWidth=0}return Q.style.left=`${$[0]}px`,Q.style.top=`${$[1]}px`,Q.style.width=`${z}px`,Q.style.height=`${j}px`,Q}_createPopup(w,T,B){T||(T=document.createElement("div"),T.style.height=w.style.height,T.style.width=w.style.width,w.appendChild(T));const Q=new re({container:w,trigger:T,color:B.color,title:B.title,modificationDate:B.modificationDate,contents:B.contents,hideWrapper:!0}).render();Q.style.left=w.style.width,w.appendChild(Q)}render(){(0,R.unreachable)("Abstract method `AnnotationElement.render` called")}}class J extends O{constructor(w){const T=!!(w.data.url||w.data.dest||w.data.action);super(w,T)}render(){this.container.className="linkAnnotation";const{data:w,linkService:T}=this,B=document.createElement("a");return w.url?(0,d.addLinkAttributes)(B,{url:w.url,target:w.newWindow?d.LinkTarget.BLANK:T.externalLinkTarget,rel:T.externalLinkRel,enabled:T.externalLinkEnabled}):w.action?this._bindNamedAction(B,w.action):this._bindLink(B,w.dest),this.container.appendChild(B),this.container}_bindLink(w,T){w.href=this.linkService.getDestinationHash(T),w.onclick=()=>(T&&this.linkService.navigateTo(T),!1),T&&(w.className="internalLink")}_bindNamedAction(w,T){w.href=this.linkService.getAnchorUrl(""),w.onclick=()=>(this.linkService.executeNamedAction(T),!1),w.className="internalLink"}}class a extends O{constructor(w){const T=!!(w.data.hasPopup||w.data.title||w.data.contents);super(w,T)}render(){this.container.className="textAnnotation";const w=document.createElement("img");return w.style.height=this.container.style.height,w.style.width=this.container.style.width,w.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",w.alt="[{{type}} Annotation]",w.dataset.l10nId="text_annotation_type",w.dataset.l10nArgs=JSON.stringify({type:this.data.name}),this.data.hasPopup||this._createPopup(this.container,w,this.data),this.container.appendChild(w),this.container}}class se extends O{render(){return this.container}}class H extends se{constructor(w){const T=w.renderInteractiveForms||!w.data.hasAppearance&&!!w.data.fieldValue;super(w,T)}render(){const w=["left","center","right"];this.container.className="textWidgetAnnotation";let T=null;if(this.renderInteractiveForms){if(this.data.multiLine?(T=document.createElement("textarea"),T.textContent=this.data.fieldValue):(T=document.createElement("input"),T.type="text",T.setAttribute("value",this.data.fieldValue)),T.disabled=this.data.readOnly,T.name=this.data.fieldName,this.data.maxLen!==null&&(T.maxLength=this.data.maxLen),this.data.comb){const N=(this.data.rect[2]-this.data.rect[0])/this.data.maxLen;T.classList.add("comb"),T.style.letterSpacing=`calc(${N}px - 1ch)`}}else{T=document.createElement("div"),T.textContent=this.data.fieldValue,T.style.verticalAlign="middle",T.style.display="table-cell";let B=null;this.data.fontRefName&&this.page.commonObjs.has(this.data.fontRefName)&&(B=this.page.commonObjs.get(this.data.fontRefName)),this._setTextStyle(T,B)}return this.data.textAlignment!==null&&(T.style.textAlign=w[this.data.textAlignment]),this.container.appendChild(T),this.container}_setTextStyle(w,T){const B=w.style;if(B.fontSize=`${this.data.fontSize}px`,B.direction=this.data.fontDirection<0?"rtl":"ltr",!T)return;let N="normal";T.black?N="900":T.bold&&(N="bold"),B.fontWeight=N,B.fontStyle=T.italic?"italic":"normal";const Q=T.loadedName?`"${T.loadedName}", `:"",z=T.fallbackName||"Helvetica, sans-serif";B.fontFamily=Q+z}}class ee extends se{constructor(w){super(w,w.renderInteractiveForms)}render(){this.container.className="buttonWidgetAnnotation checkBox";const w=document.createElement("input");return w.disabled=this.data.readOnly,w.type="checkbox",w.name=this.data.fieldName,this.data.fieldValue&&this.data.fieldValue!=="Off"&&w.setAttribute("checked",!0),this.container.appendChild(w),this.container}}class ie extends se{constructor(w){super(w,w.renderInteractiveForms)}render(){this.container.className="buttonWidgetAnnotation radioButton";const w=document.createElement("input");return w.disabled=this.data.readOnly,w.type="radio",w.name=this.data.fieldName,this.data.fieldValue===this.data.buttonValue&&w.setAttribute("checked",!0),this.container.appendChild(w),this.container}}class m extends J{render(){const w=super.render();return w.className="buttonWidgetAnnotation pushButton",w}}class u extends se{constructor(w){super(w,w.renderInteractiveForms)}render(){this.container.className="choiceWidgetAnnotation";const w=document.createElement("select");w.disabled=this.data.readOnly,w.name=this.data.fieldName,this.data.combo||(w.size=this.data.options.length,this.data.multiSelect&&(w.multiple=!0));for(const T of this.data.options){const B=document.createElement("option");B.textContent=T.displayValue,B.value=T.exportValue,this.data.fieldValue.includes(T.displayValue)&&B.setAttribute("selected",!0),w.appendChild(B)}return this.container.appendChild(w),this.container}}class Y extends O{constructor(w){const T=!!(w.data.title||w.data.contents);super(w,T)}render(){const w=["Line","Square","Circle","PolyLine","Polygon","Ink"];if(this.container.className="popupAnnotation",w.includes(this.data.parentType))return this.container;const T=`[data-annotation-id="${this.data.parentId}"]`,B=this.layer.querySelector(T);if(!B)return this.container;const N=new re({container:this.container,trigger:B,color:this.data.color,title:this.data.title,modificationDate:this.data.modificationDate,contents:this.data.contents}),Q=parseFloat(B.style.left),z=parseFloat(B.style.width);return this.container.style.transformOrigin=`-${Q+z}px -${B.style.top}`,this.container.style.left=`${Q+z}px`,this.container.appendChild(N.render()),this.container}}class re{constructor(w){this.container=w.container,this.trigger=w.trigger,this.color=w.color,this.title=w.title,this.modificationDate=w.modificationDate,this.contents=w.contents,this.hideWrapper=w.hideWrapper||!1,this.pinned=!1}render(){const T=document.createElement("div");T.className="popupWrapper",this.hideElement=this.hideWrapper?T:this.container,this.hideElement.setAttribute("hidden",!0);const B=document.createElement("div");B.className="popup";const N=this.color;if(N){const $=.7*(255-N[0])+N[0],M=.7*(255-N[1])+N[1],q=.7*(255-N[2])+N[2];B.style.backgroundColor=R.Util.makeCssRgb($|0,M|0,q|0)}const Q=document.createElement("h1");Q.textContent=this.title,B.appendChild(Q);const z=d.PDFDateString.toDateObject(this.modificationDate);if(z){const $=document.createElement("span");$.textContent="{{date}}, {{time}}",$.dataset.l10nId="annotation_date_string",$.dataset.l10nArgs=JSON.stringify({date:z.toLocaleDateString(),time:z.toLocaleTimeString()}),B.appendChild($)}const j=this._formatContents(this.contents);return B.appendChild(j),this.trigger.addEventListener("click",this._toggle.bind(this)),this.trigger.addEventListener("mouseover",this._show.bind(this,!1)),this.trigger.addEventListener("mouseout",this._hide.bind(this,!1)),B.addEventListener("click",this._hide.bind(this,!0)),T.appendChild(B),T}_formatContents(w){const T=document.createElement("p"),B=w.split(/(?:\r\n?|\n)/);for(let N=0,Q=B.length;N<Q;++N){const z=B[N];T.appendChild(document.createTextNode(z)),N<Q-1&&T.appendChild(document.createElement("br"))}return T}_toggle(){this.pinned?this._hide(!0):this._show(!0)}_show(w=!1){w&&(this.pinned=!0),this.hideElement.hasAttribute("hidden")&&(this.hideElement.removeAttribute("hidden"),this.container.style.zIndex+=1)}_hide(w=!0){w&&(this.pinned=!1),!this.hideElement.hasAttribute("hidden")&&!this.pinned&&(this.hideElement.setAttribute("hidden",!0),this.container.style.zIndex-=1)}}class U extends O{constructor(w){const T=!!(w.data.hasPopup||w.data.title||w.data.contents);super(w,T,!0)}render(){return this.container.className="freeTextAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}class X extends O{constructor(w){const T=!!(w.data.hasPopup||w.data.title||w.data.contents);super(w,T,!0)}render(){this.container.className="lineAnnotation";const w=this.data,T=w.rect[2]-w.rect[0],B=w.rect[3]-w.rect[1],N=this.svgFactory.create(T,B),Q=this.svgFactory.createElement("svg:line");return Q.setAttribute("x1",w.rect[2]-w.lineCoordinates[0]),Q.setAttribute("y1",w.rect[3]-w.lineCoordinates[1]),Q.setAttribute("x2",w.rect[2]-w.lineCoordinates[2]),Q.setAttribute("y2",w.rect[3]-w.lineCoordinates[3]),Q.setAttribute("stroke-width",w.borderStyle.width||1),Q.setAttribute("stroke","transparent"),N.appendChild(Q),this.container.append(N),this._createPopup(this.container,Q,w),this.container}}class W extends O{constructor(w){const T=!!(w.data.hasPopup||w.data.title||w.data.contents);super(w,T,!0)}render(){this.container.className="squareAnnotation";const w=this.data,T=w.rect[2]-w.rect[0],B=w.rect[3]-w.rect[1],N=this.svgFactory.create(T,B),Q=w.borderStyle.width,z=this.svgFactory.createElement("svg:rect");return z.setAttribute("x",Q/2),z.setAttribute("y",Q/2),z.setAttribute("width",T-Q),z.setAttribute("height",B-Q),z.setAttribute("stroke-width",Q||1),z.setAttribute("stroke","transparent"),z.setAttribute("fill","none"),N.appendChild(z),this.container.append(N),this._createPopup(this.container,z,w),this.container}}class G extends O{constructor(w){const T=!!(w.data.hasPopup||w.data.title||w.data.contents);super(w,T,!0)}render(){this.container.className="circleAnnotation";const w=this.data,T=w.rect[2]-w.rect[0],B=w.rect[3]-w.rect[1],N=this.svgFactory.create(T,B),Q=w.borderStyle.width,z=this.svgFactory.createElement("svg:ellipse");return z.setAttribute("cx",T/2),z.setAttribute("cy",B/2),z.setAttribute("rx",T/2-Q/2),z.setAttribute("ry",B/2-Q/2),z.setAttribute("stroke-width",Q||1),z.setAttribute("stroke","transparent"),z.setAttribute("fill","none"),N.appendChild(z),this.container.append(N),this._createPopup(this.container,z,w),this.container}}class P extends O{constructor(w){const T=!!(w.data.hasPopup||w.data.title||w.data.contents);super(w,T,!0),this.containerClassName="polylineAnnotation",this.svgElementName="svg:polyline"}render(){this.container.className=this.containerClassName;const w=this.data,T=w.rect[2]-w.rect[0],B=w.rect[3]-w.rect[1],N=this.svgFactory.create(T,B);let Q=[];for(const j of w.vertices){const $=j.x-w.rect[0],M=w.rect[3]-j.y;Q.push($+","+M)}Q=Q.join(" ");const z=this.svgFactory.createElement(this.svgElementName);return z.setAttribute("points",Q),z.setAttribute("stroke-width",w.borderStyle.width||1),z.setAttribute("stroke","transparent"),z.setAttribute("fill","none"),N.appendChild(z),this.container.append(N),this._createPopup(this.container,z,w),this.container}}class E extends P{constructor(w){super(w),this.containerClassName="polygonAnnotation",this.svgElementName="svg:polygon"}}class A extends O{constructor(w){const T=!!(w.data.hasPopup||w.data.title||w.data.contents);super(w,T,!0)}render(){return this.container.className="caretAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}class _ extends O{constructor(w){const T=!!(w.data.hasPopup||w.data.title||w.data.contents);super(w,T,!0),this.containerClassName="inkAnnotation",this.svgElementName="svg:polyline"}render(){this.container.className=this.containerClassName;const w=this.data,T=w.rect[2]-w.rect[0],B=w.rect[3]-w.rect[1],N=this.svgFactory.create(T,B);for(const Q of w.inkLists){let z=[];for(const $ of Q){const M=$.x-w.rect[0],q=w.rect[3]-$.y;z.push(`${M},${q}`)}z=z.join(" ");const j=this.svgFactory.createElement(this.svgElementName);j.setAttribute("points",z),j.setAttribute("stroke-width",w.borderStyle.width||1),j.setAttribute("stroke","transparent"),j.setAttribute("fill","none"),this._createPopup(this.container,j,w),N.appendChild(j)}return this.container.append(N),this.container}}class F extends O{constructor(w){const T=!!(w.data.hasPopup||w.data.title||w.data.contents);super(w,T,!0)}render(){return this.container.className="highlightAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}class D extends O{constructor(w){const T=!!(w.data.hasPopup||w.data.title||w.data.contents);super(w,T,!0)}render(){return this.container.className="underlineAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}class L extends O{constructor(w){const T=!!(w.data.hasPopup||w.data.title||w.data.contents);super(w,T,!0)}render(){return this.container.className="squigglyAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}class k extends O{constructor(w){const T=!!(w.data.hasPopup||w.data.title||w.data.contents);super(w,T,!0)}render(){return this.container.className="strikeoutAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}class v extends O{constructor(w){const T=!!(w.data.hasPopup||w.data.title||w.data.contents);super(w,T,!0)}render(){return this.container.className="stampAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}class y extends O{constructor(w){super(w,!0);const{filename:T,content:B}=this.data.file;this.filename=(0,d.getFilenameFromUrl)(T),this.content=B,this.linkService.eventBus&&this.linkService.eventBus.dispatch("fileattachmentannotation",{source:this,id:(0,R.stringToPDFString)(T),filename:T,content:B})}render(){this.container.className="fileAttachmentAnnotation";const w=document.createElement("div");return w.style.height=this.container.style.height,w.style.width=this.container.style.width,w.addEventListener("dblclick",this._download.bind(this)),!this.data.hasPopup&&(this.data.title||this.data.contents)&&this._createPopup(this.container,w,this.data),this.container.appendChild(w),this.container}_download(){if(!this.downloadManager){(0,R.warn)("Download cannot be started due to unavailable download manager");return}this.downloadManager.downloadData(this.content,this.filename,"")}}class b{static render(w){const T=[],B=[];for(const N of w.annotations)if(!!N){if(N.annotationType===R.AnnotationType.POPUP){B.push(N);continue}T.push(N)}B.length&&T.push(...B);for(const N of T){const Q=g.create({data:N,layer:w.div,page:w.page,viewport:w.viewport,linkService:w.linkService,downloadManager:w.downloadManager,imageResourcesPath:w.imageResourcesPath||"",renderInteractiveForms:w.renderInteractiveForms||!1,svgFactory:new d.DOMSVGFactory});Q.isRenderable&&w.div.appendChild(Q.render())}}static update(w){for(const T of w.annotations){const B=w.div.querySelector(`[data-annotation-id="${T.id}"]`);B&&(B.style.transform=`matrix(${w.viewport.transform.join(",")})`)}w.div.removeAttribute("hidden")}}f.AnnotationLayer=b},function(p,f,S){Object.defineProperty(f,"__esModule",{value:!0}),f.renderTextLayer=void 0;var d=S(2),R=function(){var O=1e5,J=/\S/;function a(U){return!J.test(U)}function se(U,X,W){var G=document.createElement("span"),P={angle:0,canvasWidth:0,isWhitespace:!1,originalTransform:null,paddingBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0,scale:1};if(U._textDivs.push(G),a(X.str)){P.isWhitespace=!0,U._textDivProperties.set(G,P);return}var E=d.Util.transform(U._viewport.transform,X.transform),A=Math.atan2(E[1],E[0]),_=W[X.fontName];_.vertical&&(A+=Math.PI/2);var F=Math.sqrt(E[2]*E[2]+E[3]*E[3]),D=F;_.ascent?D=_.ascent*D:_.descent&&(D=(1+_.descent)*D);let L,k;A===0?(L=E[4],k=E[5]-D):(L=E[4]+D*Math.sin(A),k=E[5]-D*Math.cos(A)),G.style.left=`${L}px`,G.style.top=`${k}px`,G.style.fontSize=`${F}px`,G.style.fontFamily=_.fontFamily,G.textContent=X.str,U._fontInspectorEnabled&&(G.dataset.fontName=X.fontName),A!==0&&(P.angle=A*(180/Math.PI));let v=!1;if(X.str.length>1)v=!0;else if(X.transform[0]!==X.transform[3]){const N=Math.abs(X.transform[0]),Q=Math.abs(X.transform[3]);N!==Q&&Math.max(N,Q)/Math.min(N,Q)>1.5&&(v=!0)}if(v&&(_.vertical?P.canvasWidth=X.height*U._viewport.scale:P.canvasWidth=X.width*U._viewport.scale),U._textDivProperties.set(G,P),U._textContentStream&&U._layoutText(G),U._enhanceTextSelection){var y=1,b=0;A!==0&&(y=Math.cos(A),b=Math.sin(A));var C=(_.vertical?X.height:X.width)*U._viewport.scale,w=F,T,B;A!==0?(T=[y,b,-b,y,L,k],B=d.Util.getAxialAlignedBoundingBox([0,0,C,w],T)):B=[L,k,L+C,k+w],U._bounds.push({left:B[0],top:B[1],right:B[2],bottom:B[3],div:G,size:[C,w],m:T})}}function H(U){if(!U._canceled){var X=U._textDivs,W=U._capability,G=X.length;if(G>O){U._renderingDone=!0,W.resolve();return}if(!U._textContentStream)for(var P=0;P<G;P++)U._layoutText(X[P]);U._renderingDone=!0,W.resolve()}}function ee(U,X,W){let G=0;for(let P=0;P<W;P++){const E=U[X++];E>0&&(G=G?Math.min(E,G):E)}return G}function ie(U){for(var X=U._bounds,W=U._viewport,G=m(W.width,W.height,X),P=0;P<G.length;P++){var E=X[P].div,A=U._textDivProperties.get(E);if(A.angle===0){A.paddingLeft=X[P].left-G[P].left,A.paddingTop=X[P].top-G[P].top,A.paddingRight=G[P].right-X[P].right,A.paddingBottom=G[P].bottom-X[P].bottom,U._textDivProperties.set(E,A);continue}var _=G[P],F=X[P],D=F.m,L=D[0],k=D[1],v=[[0,0],[0,F.size[1]],[F.size[0],0],F.size],y=new Float64Array(64);v.forEach(function(C,w){var T=d.Util.applyTransform(C,D);y[w+0]=L&&(_.left-T[0])/L,y[w+4]=k&&(_.top-T[1])/k,y[w+8]=L&&(_.right-T[0])/L,y[w+12]=k&&(_.bottom-T[1])/k,y[w+16]=k&&(_.left-T[0])/-k,y[w+20]=L&&(_.top-T[1])/L,y[w+24]=k&&(_.right-T[0])/-k,y[w+28]=L&&(_.bottom-T[1])/L,y[w+32]=L&&(_.left-T[0])/-L,y[w+36]=k&&(_.top-T[1])/-k,y[w+40]=L&&(_.right-T[0])/-L,y[w+44]=k&&(_.bottom-T[1])/-k,y[w+48]=k&&(_.left-T[0])/k,y[w+52]=L&&(_.top-T[1])/-L,y[w+56]=k&&(_.right-T[0])/k,y[w+60]=L&&(_.bottom-T[1])/-L});var b=1+Math.min(Math.abs(L),Math.abs(k));A.paddingLeft=ee(y,32,16)/b,A.paddingTop=ee(y,48,16)/b,A.paddingRight=ee(y,0,16)/b,A.paddingBottom=ee(y,16,16)/b,U._textDivProperties.set(E,A)}}function m(U,X,W){var G=W.map(function(E,A){return{x1:E.left,y1:E.top,x2:E.right,y2:E.bottom,index:A,x1New:void 0,x2New:void 0}});u(U,G);var P=new Array(W.length);return G.forEach(function(E){var A=E.index;P[A]={left:E.x1New,top:0,right:E.x2New,bottom:0}}),W.map(function(E,A){var _=P[A],F=G[A];F.x1=E.top,F.y1=U-_.right,F.x2=E.bottom,F.y2=U-_.left,F.index=A,F.x1New=void 0,F.x2New=void 0}),u(X,G),G.forEach(function(E){var A=E.index;P[A].top=E.x1New,P[A].bottom=E.x2New}),P}function u(U,X){X.sort(function(P,E){return P.x1-E.x1||P.index-E.index});var W={x1:-1/0,y1:-1/0,x2:0,y2:1/0,index:-1,x1New:0,x2New:0},G=[{start:-1/0,end:1/0,boundary:W}];X.forEach(function(P){for(var E=0;E<G.length&&G[E].end<=P.y1;)E++;for(var A=G.length-1;A>=0&&G[A].start>=P.y2;)A--;var _,F,D,L,k=-1/0;for(D=E;D<=A;D++){_=G[D],F=_.boundary;var v;F.x2>P.x1?v=F.index>P.index?F.x1New:P.x1:F.x2New===void 0?v=(F.x2+P.x1)/2:v=F.x2New,v>k&&(k=v)}for(P.x1New=k,D=E;D<=A;D++)_=G[D],F=_.boundary,F.x2New===void 0?F.x2>P.x1?F.index>P.index&&(F.x2New=F.x2):F.x2New=k:F.x2New>k&&(F.x2New=Math.max(k,F.x2));var y=[],b=null;for(D=E;D<=A;D++){_=G[D],F=_.boundary;var C=F.x2>P.x2?F:P;b===C?y[y.length-1].end=_.end:(y.push({start:_.start,end:_.end,boundary:C}),b=C)}for(G[E].start<P.y1&&(y[0].start=P.y1,y.unshift({start:G[E].start,end:P.y1,boundary:G[E].boundary})),P.y2<G[A].end&&(y[y.length-1].end=P.y2,y.push({start:P.y2,end:G[A].end,boundary:G[A].boundary})),D=E;D<=A;D++)if(_=G[D],F=_.boundary,F.x2New===void 0){var w=!1;for(L=E-1;!w&&L>=0&&G[L].start>=F.y1;L--)w=G[L].boundary===F;for(L=A+1;!w&&L<G.length&&G[L].end<=F.y2;L++)w=G[L].boundary===F;for(L=0;!w&&L<y.length;L++)w=y[L].boundary===F;w||(F.x2New=k)}Array.prototype.splice.apply(G,[E,A-E+1].concat(y))}),G.forEach(function(P){var E=P.boundary;E.x2New===void 0&&(E.x2New=Math.max(U,E.x2))})}function Y({textContent:U,textContentStream:X,container:W,viewport:G,textDivs:P,textContentItemsStr:E,enhanceTextSelection:A}){this._textContent=U,this._textContentStream=X,this._container=W,this._viewport=G,this._textDivs=P||[],this._textContentItemsStr=E||[],this._enhanceTextSelection=!!A,this._fontInspectorEnabled=!!(globalThis.FontInspector&&globalThis.FontInspector.enabled),this._reader=null,this._layoutTextLastFontSize=null,this._layoutTextLastFontFamily=null,this._layoutTextCtx=null,this._textDivProperties=new WeakMap,this._renderingDone=!1,this._canceled=!1,this._capability=(0,d.createPromiseCapability)(),this._renderTimer=null,this._bounds=[],this._capability.promise.finally(()=>{this._layoutTextCtx&&(this._layoutTextCtx.canvas.width=0,this._layoutTextCtx.canvas.height=0,this._layoutTextCtx=null)}).catch(()=>{})}Y.prototype={get promise(){return this._capability.promise},cancel:function(){this._canceled=!0,this._reader&&(this._reader.cancel(new d.AbortException("TextLayer task cancelled.")),this._reader=null),this._renderTimer!==null&&(clearTimeout(this._renderTimer),this._renderTimer=null),this._capability.reject(new Error("TextLayer task cancelled."))},_processItems(U,X){for(let W=0,G=U.length;W<G;W++)this._textContentItemsStr.push(U[W].str),se(this,U[W],X)},_layoutText(U){const X=this._textDivProperties.get(U);if(X.isWhitespace)return;let W="";if(X.canvasWidth!==0){const{fontSize:G,fontFamily:P}=U.style;(G!==this._layoutTextLastFontSize||P!==this._layoutTextLastFontFamily)&&(this._layoutTextCtx.font=`${G} ${P}`,this._layoutTextLastFontSize=G,this._layoutTextLastFontFamily=P);const{width:E}=this._layoutTextCtx.measureText(U.textContent);E>0&&(X.scale=X.canvasWidth/E,W=`scaleX(${X.scale})`)}X.angle!==0&&(W=`rotate(${X.angle}deg) ${W}`),W.length>0&&(this._enhanceTextSelection&&(X.originalTransform=W),U.style.transform=W),this._textDivProperties.set(U,X),this._container.appendChild(U)},_render:function(X){const W=(0,d.createPromiseCapability)();let G=Object.create(null);const P=document.createElement("canvas");if(P.mozOpaque=!0,this._layoutTextCtx=P.getContext("2d",{alpha:!1}),this._textContent){const E=this._textContent.items,A=this._textContent.styles;this._processItems(E,A),W.resolve()}else if(this._textContentStream){const E=()=>{this._reader.read().then(({value:A,done:_})=>{if(_){W.resolve();return}Object.assign(G,A.styles),this._processItems(A.items,G),E()},W.reject)};this._reader=this._textContentStream.getReader(),E()}else throw new Error('Neither "textContent" nor "textContentStream" parameters specified.');W.promise.then(()=>{G=null,X?this._renderTimer=setTimeout(()=>{H(this),this._renderTimer=null},X):H(this)},this._capability.reject)},expandTextDivs:function(X){if(!this._enhanceTextSelection||!this._renderingDone)return;this._bounds!==null&&(ie(this),this._bounds=null);const W=[],G=[];for(var P=0,E=this._textDivs.length;P<E;P++){const A=this._textDivs[P],_=this._textDivProperties.get(A);_.isWhitespace||(X?(W.length=0,G.length=0,_.originalTransform&&W.push(_.originalTransform),_.paddingTop>0?(G.push(`${_.paddingTop}px`),W.push(`translateY(${-_.paddingTop}px)`)):G.push(0),_.paddingRight>0?G.push(`${_.paddingRight/_.scale}px`):G.push(0),_.paddingBottom>0?G.push(`${_.paddingBottom}px`):G.push(0),_.paddingLeft>0?(G.push(`${_.paddingLeft/_.scale}px`),W.push(`translateX(${-_.paddingLeft/_.scale}px)`)):G.push(0),A.style.padding=G.join(" "),W.length&&(A.style.transform=W.join(" "))):(A.style.padding=null,A.style.transform=_.originalTransform))}}};function re(U){var X=new Y({textContent:U.textContent,textContentStream:U.textContentStream,container:U.container,viewport:U.viewport,textDivs:U.textDivs,textContentItemsStr:U.textContentItemsStr,enhanceTextSelection:U.enhanceTextSelection});return X._render(U.timeout),X}return re}();f.renderTextLayer=R},function(p,f,S){Object.defineProperty(f,"__esModule",{value:!0}),f.SVGGraphics=void 0;var d=S(2),R=S(1),g=S(4);let O=function(){throw new Error("Not implemented: SVGGraphics")};f.SVGGraphics=O;{let u=function(G){let P=[];const E=[];for(const A of G){if(A.fn==="save"){P.push({fnId:92,fn:"group",items:[]}),E.push(P),P=P[P.length-1].items;continue}A.fn==="restore"?P=E.pop():P.push(A)}return P},Y=function(G){if(Number.isInteger(G))return G.toString();const P=G.toFixed(10);let E=P.length-1;if(P[E]!=="0")return P;do E--;while(P[E]==="0");return P.substring(0,P[E]==="."?E:E+1)},re=function(G){if(G[4]===0&&G[5]===0){if(G[1]===0&&G[2]===0)return G[0]===1&&G[3]===1?"":`scale(${Y(G[0])} ${Y(G[3])})`;if(G[0]===G[3]&&G[1]===-G[2]){const P=Math.acos(G[0])*180/Math.PI;return`rotate(${Y(P)})`}}else if(G[0]===1&&G[1]===0&&G[2]===0&&G[3]===1)return`translate(${Y(G[4])} ${Y(G[5])})`;return`matrix(${Y(G[0])} ${Y(G[1])} ${Y(G[2])} ${Y(G[3])} ${Y(G[4])} ${Y(G[5])})`};const J={fontStyle:"normal",fontWeight:"normal",fillColor:"#000000"},a="http://www.w3.org/XML/1998/namespace",se="http://www.w3.org/1999/xlink",H=["butt","round","square"],ee=["miter","round","bevel"],ie=function(){const G=new Uint8Array([137,80,78,71,13,10,26,10]),P=12,E=new Int32Array(256);for(let v=0;v<256;v++){let y=v;for(let b=0;b<8;b++)y&1?y=3988292384^y>>1&2147483647:y=y>>1&2147483647;E[v]=y}function A(v,y,b){let C=-1;for(let w=y;w<b;w++){const T=(C^v[w])&255,B=E[T];C=C>>>8^B}return C^-1}function _(v,y,b,C){let w=C;const T=y.length;b[w]=T>>24&255,b[w+1]=T>>16&255,b[w+2]=T>>8&255,b[w+3]=T&255,w+=4,b[w]=v.charCodeAt(0)&255,b[w+1]=v.charCodeAt(1)&255,b[w+2]=v.charCodeAt(2)&255,b[w+3]=v.charCodeAt(3)&255,w+=4,b.set(y,w),w+=y.length;const B=A(b,C+4,w);b[w]=B>>24&255,b[w+1]=B>>16&255,b[w+2]=B>>8&255,b[w+3]=B&255}function F(v,y,b){let C=1,w=0;for(let T=y;T<b;++T)C=(C+(v[T]&255))%65521,w=(w+C)%65521;return w<<16|C}function D(v){if(!g.isNodeJS)return L(v);try{let y;parseInt(process.versions.node)>=8?y=v:y=Buffer.from(v);const b=require("zlib").deflateSync(y,{level:9});return b instanceof Uint8Array?b:new Uint8Array(b)}catch(y){(0,d.warn)("Not compressing PNG because zlib.deflateSync is unavailable: "+y)}return L(v)}function L(v){let y=v.length;const b=65535,C=Math.ceil(y/b),w=new Uint8Array(2+y+C*5+4);let T=0;w[T++]=120,w[T++]=156;let B=0;for(;y>b;)w[T++]=0,w[T++]=255,w[T++]=255,w[T++]=0,w[T++]=0,w.set(v.subarray(B,B+b),T),T+=b,B+=b,y-=b;w[T++]=1,w[T++]=y&255,w[T++]=y>>8&255,w[T++]=~y&65535&255,w[T++]=(~y&65535)>>8&255,w.set(v.subarray(B),T),T+=v.length-B;const N=F(v,0,v.length);return w[T++]=N>>24&255,w[T++]=N>>16&255,w[T++]=N>>8&255,w[T++]=N&255,w}function k(v,y,b,C){const w=v.width,T=v.height;let B,N,Q;const z=v.data;switch(y){case d.ImageKind.GRAYSCALE_1BPP:N=0,B=1,Q=w+7>>3;break;case d.ImageKind.RGB_24BPP:N=2,B=8,Q=w*3;break;case d.ImageKind.RGBA_32BPP:N=6,B=8,Q=w*4;break;default:throw new Error("invalid format")}const j=new Uint8Array((1+Q)*T);let $=0,M=0;for(let ae=0;ae<T;++ae)j[$++]=0,j.set(z.subarray(M,M+Q),$),M+=Q,$+=Q;if(y===d.ImageKind.GRAYSCALE_1BPP&&C){$=0;for(let ae=0;ae<T;ae++){$++;for(let ce=0;ce<Q;ce++)j[$++]^=255}}const q=new Uint8Array([w>>24&255,w>>16&255,w>>8&255,w&255,T>>24&255,T>>16&255,T>>8&255,T&255,B,N,0,0,0]),K=D(j),Z=G.length+P*3+q.length+K.length,te=new Uint8Array(Z);let oe=0;return te.set(G,oe),oe+=G.length,_("IHDR",q,te,oe),oe+=P+q.length,_("IDATA",K,te,oe),oe+=P+K.length,_("IEND",new Uint8Array(0),te,oe),(0,d.createObjectURL)(te,"image/png",b)}return function(y,b,C){const w=y.kind===void 0?d.ImageKind.GRAYSCALE_1BPP:y.kind;return k(y,w,b,C)}}();class m{constructor(){this.fontSizeScale=1,this.fontWeight=J.fontWeight,this.fontSize=0,this.textMatrix=d.IDENTITY_MATRIX,this.fontMatrix=d.FONT_IDENTITY_MATRIX,this.leading=0,this.textRenderingMode=d.TextRenderingMode.FILL,this.textMatrixScale=1,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRise=0,this.fillColor=J.fillColor,this.strokeColor="#000000",this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.lineJoin="",this.lineCap="",this.miterLimit=0,this.dashArray=[],this.dashPhase=0,this.dependencies=[],this.activeClipUrl=null,this.clipGroup=null,this.maskId=""}clone(){return Object.create(this)}setCurrentPoint(P,E){this.x=P,this.y=E}}let U=0,X=0,W=0;f.SVGGraphics=O=class{constructor(P,E,A=!1){this.svgFactory=new R.DOMSVGFactory,this.current=new m,this.transformMatrix=d.IDENTITY_MATRIX,this.transformStack=[],this.extraStack=[],this.commonObjs=P,this.objs=E,this.pendingClip=null,this.pendingEOFill=!1,this.embedFonts=!1,this.embeddedFonts=Object.create(null),this.cssStyle=null,this.forceDataSchema=!!A,this._operatorIdMapping=[];for(const _ in d.OPS)this._operatorIdMapping[d.OPS[_]]=_}save(){this.transformStack.push(this.transformMatrix);const P=this.current;this.extraStack.push(P),this.current=P.clone()}restore(){this.transformMatrix=this.transformStack.pop(),this.current=this.extraStack.pop(),this.pendingClip=null,this.tgrp=null}group(P){this.save(),this.executeOpTree(P),this.restore()}loadDependencies(P){const E=P.fnArray,A=P.argsArray;for(let _=0,F=E.length;_<F;_++)if(E[_]===d.OPS.dependency)for(const D of A[_]){const L=D.startsWith("g_")?this.commonObjs:this.objs,k=new Promise(v=>{L.get(D,v)});this.current.dependencies.push(k)}return Promise.all(this.current.dependencies)}transform(P,E,A,_,F,D){const L=[P,E,A,_,F,D];this.transformMatrix=d.Util.transform(this.transformMatrix,L),this.tgrp=null}getSVG(P,E){this.viewport=E;const A=this._initialize(E);return this.loadDependencies(P).then(()=>(this.transformMatrix=d.IDENTITY_MATRIX,this.executeOpTree(this.convertOpList(P)),A))}convertOpList(P){const E=this._operatorIdMapping,A=P.argsArray,_=P.fnArray,F=[];for(let D=0,L=_.length;D<L;D++){const k=_[D];F.push({fnId:k,fn:E[k],args:A[D]})}return u(F)}executeOpTree(P){for(const E of P){const A=E.fn,_=E.fnId,F=E.args;switch(_|0){case d.OPS.beginText:this.beginText();break;case d.OPS.dependency:break;case d.OPS.setLeading:this.setLeading(F);break;case d.OPS.setLeadingMoveText:this.setLeadingMoveText(F[0],F[1]);break;case d.OPS.setFont:this.setFont(F);break;case d.OPS.showText:this.showText(F[0]);break;case d.OPS.showSpacedText:this.showText(F[0]);break;case d.OPS.endText:this.endText();break;case d.OPS.moveText:this.moveText(F[0],F[1]);break;case d.OPS.setCharSpacing:this.setCharSpacing(F[0]);break;case d.OPS.setWordSpacing:this.setWordSpacing(F[0]);break;case d.OPS.setHScale:this.setHScale(F[0]);break;case d.OPS.setTextMatrix:this.setTextMatrix(F[0],F[1],F[2],F[3],F[4],F[5]);break;case d.OPS.setTextRise:this.setTextRise(F[0]);break;case d.OPS.setTextRenderingMode:this.setTextRenderingMode(F[0]);break;case d.OPS.setLineWidth:this.setLineWidth(F[0]);break;case d.OPS.setLineJoin:this.setLineJoin(F[0]);break;case d.OPS.setLineCap:this.setLineCap(F[0]);break;case d.OPS.setMiterLimit:this.setMiterLimit(F[0]);break;case d.OPS.setFillRGBColor:this.setFillRGBColor(F[0],F[1],F[2]);break;case d.OPS.setStrokeRGBColor:this.setStrokeRGBColor(F[0],F[1],F[2]);break;case d.OPS.setStrokeColorN:this.setStrokeColorN(F);break;case d.OPS.setFillColorN:this.setFillColorN(F);break;case d.OPS.shadingFill:this.shadingFill(F[0]);break;case d.OPS.setDash:this.setDash(F[0],F[1]);break;case d.OPS.setRenderingIntent:this.setRenderingIntent(F[0]);break;case d.OPS.setFlatness:this.setFlatness(F[0]);break;case d.OPS.setGState:this.setGState(F[0]);break;case d.OPS.fill:this.fill();break;case d.OPS.eoFill:this.eoFill();break;case d.OPS.stroke:this.stroke();break;case d.OPS.fillStroke:this.fillStroke();break;case d.OPS.eoFillStroke:this.eoFillStroke();break;case d.OPS.clip:this.clip("nonzero");break;case d.OPS.eoClip:this.clip("evenodd");break;case d.OPS.paintSolidColorImageMask:this.paintSolidColorImageMask();break;case d.OPS.paintImageXObject:this.paintImageXObject(F[0]);break;case d.OPS.paintInlineImageXObject:this.paintInlineImageXObject(F[0]);break;case d.OPS.paintImageMaskXObject:this.paintImageMaskXObject(F[0]);break;case d.OPS.paintFormXObjectBegin:this.paintFormXObjectBegin(F[0],F[1]);break;case d.OPS.paintFormXObjectEnd:this.paintFormXObjectEnd();break;case d.OPS.closePath:this.closePath();break;case d.OPS.closeStroke:this.closeStroke();break;case d.OPS.closeFillStroke:this.closeFillStroke();break;case d.OPS.closeEOFillStroke:this.closeEOFillStroke();break;case d.OPS.nextLine:this.nextLine();break;case d.OPS.transform:this.transform(F[0],F[1],F[2],F[3],F[4],F[5]);break;case d.OPS.constructPath:this.constructPath(F[0],F[1]);break;case d.OPS.endPath:this.endPath();break;case 92:this.group(E.items);break;default:(0,d.warn)(`Unimplemented operator ${A}`);break}}}setWordSpacing(P){this.current.wordSpacing=P}setCharSpacing(P){this.current.charSpacing=P}nextLine(){this.moveText(0,this.current.leading)}setTextMatrix(P,E,A,_,F,D){const L=this.current;L.textMatrix=L.lineMatrix=[P,E,A,_,F,D],L.textMatrixScale=Math.sqrt(P*P+E*E),L.x=L.lineX=0,L.y=L.lineY=0,L.xcoords=[],L.ycoords=[],L.tspan=this.svgFactory.createElement("svg:tspan"),L.tspan.setAttributeNS(null,"font-family",L.fontFamily),L.tspan.setAttributeNS(null,"font-size",`${Y(L.fontSize)}px`),L.tspan.setAttributeNS(null,"y",Y(-L.y)),L.txtElement=this.svgFactory.createElement("svg:text"),L.txtElement.appendChild(L.tspan)}beginText(){const P=this.current;P.x=P.lineX=0,P.y=P.lineY=0,P.textMatrix=d.IDENTITY_MATRIX,P.lineMatrix=d.IDENTITY_MATRIX,P.textMatrixScale=1,P.tspan=this.svgFactory.createElement("svg:tspan"),P.txtElement=this.svgFactory.createElement("svg:text"),P.txtgrp=this.svgFactory.createElement("svg:g"),P.xcoords=[],P.ycoords=[]}moveText(P,E){const A=this.current;A.x=A.lineX+=P,A.y=A.lineY+=E,A.xcoords=[],A.ycoords=[],A.tspan=this.svgFactory.createElement("svg:tspan"),A.tspan.setAttributeNS(null,"font-family",A.fontFamily),A.tspan.setAttributeNS(null,"font-size",`${Y(A.fontSize)}px`),A.tspan.setAttributeNS(null,"y",Y(-A.y))}showText(P){const E=this.current,A=E.font,_=E.fontSize;if(_===0)return;const F=E.fontSizeScale,D=E.charSpacing,L=E.wordSpacing,k=E.fontDirection,v=E.textHScale*k,y=A.vertical,b=y?1:-1,C=A.defaultVMetrics,w=_*E.fontMatrix[0];let T=0;for(const Q of P){if(Q===null){T+=k*L;continue}else if((0,d.isNum)(Q)){T+=b*Q*_/1e3;continue}const z=(Q.isSpace?L:0)+D,j=Q.fontChar;let $,M,q=Q.width;if(y){let Z;const te=Q.vmetric||C;Z=Q.vmetric?te[1]:q*.5,Z=-Z*w;const oe=te[2]*w;q=te?-te[0]:q,$=Z/F,M=(T+oe)/F}else $=T/F,M=0;(Q.isInFont||A.missingFile)&&(E.xcoords.push(E.x+$),y&&E.ycoords.push(-E.y+M),E.tspan.textContent+=j);let K;y?K=q*w-z*k:K=q*w+z*k,T+=K}E.tspan.setAttributeNS(null,"x",E.xcoords.map(Y).join(" ")),y?E.tspan.setAttributeNS(null,"y",E.ycoords.map(Y).join(" ")):E.tspan.setAttributeNS(null,"y",Y(-E.y)),y?E.y-=T:E.x+=T*v,E.tspan.setAttributeNS(null,"font-family",E.fontFamily),E.tspan.setAttributeNS(null,"font-size",`${Y(E.fontSize)}px`),E.fontStyle!==J.fontStyle&&E.tspan.setAttributeNS(null,"font-style",E.fontStyle),E.fontWeight!==J.fontWeight&&E.tspan.setAttributeNS(null,"font-weight",E.fontWeight);const B=E.textRenderingMode&d.TextRenderingMode.FILL_STROKE_MASK;if(B===d.TextRenderingMode.FILL||B===d.TextRenderingMode.FILL_STROKE?(E.fillColor!==J.fillColor&&E.tspan.setAttributeNS(null,"fill",E.fillColor),E.fillAlpha<1&&E.tspan.setAttributeNS(null,"fill-opacity",E.fillAlpha)):E.textRenderingMode===d.TextRenderingMode.ADD_TO_PATH?E.tspan.setAttributeNS(null,"fill","transparent"):E.tspan.setAttributeNS(null,"fill","none"),B===d.TextRenderingMode.STROKE||B===d.TextRenderingMode.FILL_STROKE){const Q=1/(E.textMatrixScale||1);this._setStrokeAttributes(E.tspan,Q)}let N=E.textMatrix;E.textRise!==0&&(N=N.slice(),N[5]+=E.textRise),E.txtElement.setAttributeNS(null,"transform",`${re(N)} scale(${Y(v)}, -1)`),E.txtElement.setAttributeNS(a,"xml:space","preserve"),E.txtElement.appendChild(E.tspan),E.txtgrp.appendChild(E.txtElement),this._ensureTransformGroup().appendChild(E.txtElement)}setLeadingMoveText(P,E){this.setLeading(-E),this.moveText(P,E)}addFontStyle(P){if(!P.data)throw new Error('addFontStyle: No font data available, ensure that the "fontExtraProperties" API parameter is set.');this.cssStyle||(this.cssStyle=this.svgFactory.createElement("svg:style"),this.cssStyle.setAttributeNS(null,"type","text/css"),this.defs.appendChild(this.cssStyle));const E=(0,d.createObjectURL)(P.data,P.mimetype,this.forceDataSchema);this.cssStyle.textContent+=`@font-face { font-family: "${P.loadedName}"; src: url(${E}); }
52
- `}setFont(P){const E=this.current,A=this.commonObjs.get(P[0]);let _=P[1];E.font=A,this.embedFonts&&!A.missingFile&&!this.embeddedFonts[A.loadedName]&&(this.addFontStyle(A),this.embeddedFonts[A.loadedName]=A),E.fontMatrix=A.fontMatrix?A.fontMatrix:d.FONT_IDENTITY_MATRIX;let F="normal";A.black?F="900":A.bold&&(F="bold");const D=A.italic?"italic":"normal";_<0?(_=-_,E.fontDirection=-1):E.fontDirection=1,E.fontSize=_,E.fontFamily=A.loadedName,E.fontWeight=F,E.fontStyle=D,E.tspan=this.svgFactory.createElement("svg:tspan"),E.tspan.setAttributeNS(null,"y",Y(-E.y)),E.xcoords=[],E.ycoords=[]}endText(){const P=this.current;P.textRenderingMode&d.TextRenderingMode.ADD_TO_PATH_FLAG&&P.txtElement&&P.txtElement.hasChildNodes()&&(P.element=P.txtElement,this.clip("nonzero"),this.endPath())}setLineWidth(P){P>0&&(this.current.lineWidth=P)}setLineCap(P){this.current.lineCap=H[P]}setLineJoin(P){this.current.lineJoin=ee[P]}setMiterLimit(P){this.current.miterLimit=P}setStrokeAlpha(P){this.current.strokeAlpha=P}setStrokeRGBColor(P,E,A){this.current.strokeColor=d.Util.makeCssRgb(P,E,A)}setFillAlpha(P){this.current.fillAlpha=P}setFillRGBColor(P,E,A){this.current.fillColor=d.Util.makeCssRgb(P,E,A),this.current.tspan=this.svgFactory.createElement("svg:tspan"),this.current.xcoords=[],this.current.ycoords=[]}setStrokeColorN(P){this.current.strokeColor=this._makeColorN_Pattern(P)}setFillColorN(P){this.current.fillColor=this._makeColorN_Pattern(P)}shadingFill(P){const E=this.viewport.width,A=this.viewport.height,_=d.Util.inverseTransform(this.transformMatrix),F=d.Util.applyTransform([0,0],_),D=d.Util.applyTransform([0,A],_),L=d.Util.applyTransform([E,0],_),k=d.Util.applyTransform([E,A],_),v=Math.min(F[0],D[0],L[0],k[0]),y=Math.min(F[1],D[1],L[1],k[1]),b=Math.max(F[0],D[0],L[0],k[0]),C=Math.max(F[1],D[1],L[1],k[1]),w=this.svgFactory.createElement("svg:rect");w.setAttributeNS(null,"x",v),w.setAttributeNS(null,"y",y),w.setAttributeNS(null,"width",b-v),w.setAttributeNS(null,"height",C-y),w.setAttributeNS(null,"fill",this._makeShadingPattern(P)),this.current.fillAlpha<1&&w.setAttributeNS(null,"fill-opacity",this.current.fillAlpha),this._ensureTransformGroup().appendChild(w)}_makeColorN_Pattern(P){return P[0]==="TilingPattern"?this._makeTilingPattern(P):this._makeShadingPattern(P)}_makeTilingPattern(P){const E=P[1],A=P[2],_=P[3]||d.IDENTITY_MATRIX,[F,D,L,k]=P[4],v=P[5],y=P[6],b=P[7],C=`shading${W++}`,[w,T]=d.Util.applyTransform([F,D],_),[B,N]=d.Util.applyTransform([L,k],_),[Q,z]=d.Util.singularValueDecompose2dScale(_),j=v*Q,$=y*z,M=this.svgFactory.createElement("svg:pattern");M.setAttributeNS(null,"id",C),M.setAttributeNS(null,"patternUnits","userSpaceOnUse"),M.setAttributeNS(null,"width",j),M.setAttributeNS(null,"height",$),M.setAttributeNS(null,"x",`${w}`),M.setAttributeNS(null,"y",`${T}`);const q=this.svg,K=this.transformMatrix,Z=this.current.fillColor,te=this.current.strokeColor,oe=this.svgFactory.create(B-w,N-T);if(this.svg=oe,this.transformMatrix=_,b===2){const ae=d.Util.makeCssRgb(...E);this.current.fillColor=ae,this.current.strokeColor=ae}return this.executeOpTree(this.convertOpList(A)),this.svg=q,this.transformMatrix=K,this.current.fillColor=Z,this.current.strokeColor=te,M.appendChild(oe.childNodes[0]),this.defs.appendChild(M),`url(#${C})`}_makeShadingPattern(P){switch(P[0]){case"RadialAxial":const E=`shading${W++}`,A=P[3];let _;switch(P[1]){case"axial":const F=P[4],D=P[5];_=this.svgFactory.createElement("svg:linearGradient"),_.setAttributeNS(null,"id",E),_.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),_.setAttributeNS(null,"x1",F[0]),_.setAttributeNS(null,"y1",F[1]),_.setAttributeNS(null,"x2",D[0]),_.setAttributeNS(null,"y2",D[1]);break;case"radial":const L=P[4],k=P[5],v=P[6],y=P[7];_=this.svgFactory.createElement("svg:radialGradient"),_.setAttributeNS(null,"id",E),_.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),_.setAttributeNS(null,"cx",k[0]),_.setAttributeNS(null,"cy",k[1]),_.setAttributeNS(null,"r",y),_.setAttributeNS(null,"fx",L[0]),_.setAttributeNS(null,"fy",L[1]),_.setAttributeNS(null,"fr",v);break;default:throw new Error(`Unknown RadialAxial type: ${P[1]}`)}for(const F of A){const D=this.svgFactory.createElement("svg:stop");D.setAttributeNS(null,"offset",F[0]),D.setAttributeNS(null,"stop-color",F[1]),_.appendChild(D)}return this.defs.appendChild(_),`url(#${E})`;case"Mesh":return(0,d.warn)("Unimplemented pattern Mesh"),null;case"Dummy":return"hotpink";default:throw new Error(`Unknown IR type: ${P[0]}`)}}setDash(P,E){this.current.dashArray=P,this.current.dashPhase=E}constructPath(P,E){const A=this.current;let _=A.x,F=A.y,D=[],L=0;for(const k of P)switch(k|0){case d.OPS.rectangle:_=E[L++],F=E[L++];const v=E[L++],y=E[L++],b=_+v,C=F+y;D.push("M",Y(_),Y(F),"L",Y(b),Y(F),"L",Y(b),Y(C),"L",Y(_),Y(C),"Z");break;case d.OPS.moveTo:_=E[L++],F=E[L++],D.push("M",Y(_),Y(F));break;case d.OPS.lineTo:_=E[L++],F=E[L++],D.push("L",Y(_),Y(F));break;case d.OPS.curveTo:_=E[L+4],F=E[L+5],D.push("C",Y(E[L]),Y(E[L+1]),Y(E[L+2]),Y(E[L+3]),Y(_),Y(F)),L+=6;break;case d.OPS.curveTo2:D.push("C",Y(_),Y(F),Y(E[L]),Y(E[L+1]),Y(E[L+2]),Y(E[L+3])),_=E[L+2],F=E[L+3],L+=4;break;case d.OPS.curveTo3:_=E[L+2],F=E[L+3],D.push("C",Y(E[L]),Y(E[L+1]),Y(_),Y(F),Y(_),Y(F)),L+=4;break;case d.OPS.closePath:D.push("Z");break}D=D.join(" "),A.path&&P.length>0&&P[0]!==d.OPS.rectangle&&P[0]!==d.OPS.moveTo?D=A.path.getAttributeNS(null,"d")+D:(A.path=this.svgFactory.createElement("svg:path"),this._ensureTransformGroup().appendChild(A.path)),A.path.setAttributeNS(null,"d",D),A.path.setAttributeNS(null,"fill","none"),A.element=A.path,A.setCurrentPoint(_,F)}endPath(){const P=this.current;if(P.path=null,!this.pendingClip)return;if(!P.element){this.pendingClip=null;return}const E=`clippath${U++}`,A=this.svgFactory.createElement("svg:clipPath");A.setAttributeNS(null,"id",E),A.setAttributeNS(null,"transform",re(this.transformMatrix));const _=P.element.cloneNode(!0);this.pendingClip==="evenodd"?_.setAttributeNS(null,"clip-rule","evenodd"):_.setAttributeNS(null,"clip-rule","nonzero"),this.pendingClip=null,A.appendChild(_),this.defs.appendChild(A),P.activeClipUrl&&(P.clipGroup=null,this.extraStack.forEach(function(F){F.clipGroup=null}),A.setAttributeNS(null,"clip-path",P.activeClipUrl)),P.activeClipUrl=`url(#${E})`,this.tgrp=null}clip(P){this.pendingClip=P}closePath(){const P=this.current;if(P.path){const E=`${P.path.getAttributeNS(null,"d")}Z`;P.path.setAttributeNS(null,"d",E)}}setLeading(P){this.current.leading=-P}setTextRise(P){this.current.textRise=P}setTextRenderingMode(P){this.current.textRenderingMode=P}setHScale(P){this.current.textHScale=P/100}setRenderingIntent(P){}setFlatness(P){}setGState(P){for(const[E,A]of P)switch(E){case"LW":this.setLineWidth(A);break;case"LC":this.setLineCap(A);break;case"LJ":this.setLineJoin(A);break;case"ML":this.setMiterLimit(A);break;case"D":this.setDash(A[0],A[1]);break;case"RI":this.setRenderingIntent(A);break;case"FL":this.setFlatness(A);break;case"Font":this.setFont(A);break;case"CA":this.setStrokeAlpha(A);break;case"ca":this.setFillAlpha(A);break;default:(0,d.warn)(`Unimplemented graphic state operator ${E}`);break}}fill(){const P=this.current;P.element&&(P.element.setAttributeNS(null,"fill",P.fillColor),P.element.setAttributeNS(null,"fill-opacity",P.fillAlpha),this.endPath())}stroke(){const P=this.current;P.element&&(this._setStrokeAttributes(P.element),P.element.setAttributeNS(null,"fill","none"),this.endPath())}_setStrokeAttributes(P,E=1){const A=this.current;let _=A.dashArray;E!==1&&_.length>0&&(_=_.map(function(F){return E*F})),P.setAttributeNS(null,"stroke",A.strokeColor),P.setAttributeNS(null,"stroke-opacity",A.strokeAlpha),P.setAttributeNS(null,"stroke-miterlimit",Y(A.miterLimit)),P.setAttributeNS(null,"stroke-linecap",A.lineCap),P.setAttributeNS(null,"stroke-linejoin",A.lineJoin),P.setAttributeNS(null,"stroke-width",Y(E*A.lineWidth)+"px"),P.setAttributeNS(null,"stroke-dasharray",_.map(Y).join(" ")),P.setAttributeNS(null,"stroke-dashoffset",Y(E*A.dashPhase)+"px")}eoFill(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fill()}fillStroke(){this.stroke(),this.fill()}eoFillStroke(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fillStroke()}closeStroke(){this.closePath(),this.stroke()}closeFillStroke(){this.closePath(),this.fillStroke()}closeEOFillStroke(){this.closePath(),this.eoFillStroke()}paintSolidColorImageMask(){const P=this.svgFactory.createElement("svg:rect");P.setAttributeNS(null,"x","0"),P.setAttributeNS(null,"y","0"),P.setAttributeNS(null,"width","1px"),P.setAttributeNS(null,"height","1px"),P.setAttributeNS(null,"fill",this.current.fillColor),this._ensureTransformGroup().appendChild(P)}paintImageXObject(P){const E=this.objs.get(P);if(!E){(0,d.warn)(`Dependent image with object ID ${P} is not ready yet`);return}this.paintInlineImageXObject(E)}paintInlineImageXObject(P,E){const A=P.width,_=P.height,F=ie(P,this.forceDataSchema,!!E),D=this.svgFactory.createElement("svg:rect");D.setAttributeNS(null,"x","0"),D.setAttributeNS(null,"y","0"),D.setAttributeNS(null,"width",Y(A)),D.setAttributeNS(null,"height",Y(_)),this.current.element=D,this.clip("nonzero");const L=this.svgFactory.createElement("svg:image");L.setAttributeNS(se,"xlink:href",F),L.setAttributeNS(null,"x","0"),L.setAttributeNS(null,"y",Y(-_)),L.setAttributeNS(null,"width",Y(A)+"px"),L.setAttributeNS(null,"height",Y(_)+"px"),L.setAttributeNS(null,"transform",`scale(${Y(1/A)} ${Y(-1/_)})`),E?E.appendChild(L):this._ensureTransformGroup().appendChild(L)}paintImageMaskXObject(P){const E=this.current,A=P.width,_=P.height,F=E.fillColor;E.maskId=`mask${X++}`;const D=this.svgFactory.createElement("svg:mask");D.setAttributeNS(null,"id",E.maskId);const L=this.svgFactory.createElement("svg:rect");L.setAttributeNS(null,"x","0"),L.setAttributeNS(null,"y","0"),L.setAttributeNS(null,"width",Y(A)),L.setAttributeNS(null,"height",Y(_)),L.setAttributeNS(null,"fill",F),L.setAttributeNS(null,"mask",`url(#${E.maskId})`),this.defs.appendChild(D),this._ensureTransformGroup().appendChild(L),this.paintInlineImageXObject(P,D)}paintFormXObjectBegin(P,E){if(Array.isArray(P)&&P.length===6&&this.transform(P[0],P[1],P[2],P[3],P[4],P[5]),E){const A=E[2]-E[0],_=E[3]-E[1],F=this.svgFactory.createElement("svg:rect");F.setAttributeNS(null,"x",E[0]),F.setAttributeNS(null,"y",E[1]),F.setAttributeNS(null,"width",Y(A)),F.setAttributeNS(null,"height",Y(_)),this.current.element=F,this.clip("nonzero"),this.endPath()}}paintFormXObjectEnd(){}_initialize(P){const E=this.svgFactory.create(P.width,P.height),A=this.svgFactory.createElement("svg:defs");E.appendChild(A),this.defs=A;const _=this.svgFactory.createElement("svg:g");return _.setAttributeNS(null,"transform",re(P.transform)),E.appendChild(_),this.svg=_,E}_ensureClipGroup(){if(!this.current.clipGroup){const P=this.svgFactory.createElement("svg:g");P.setAttributeNS(null,"clip-path",this.current.activeClipUrl),this.svg.appendChild(P),this.current.clipGroup=P}return this.current.clipGroup}_ensureTransformGroup(){return this.tgrp||(this.tgrp=this.svgFactory.createElement("svg:g"),this.tgrp.setAttributeNS(null,"transform",re(this.transformMatrix)),this.current.activeClipUrl?this._ensureClipGroup().appendChild(this.tgrp):this.svg.appendChild(this.tgrp)),this.tgrp}}}},function(p,f,S){Object.defineProperty(f,"__esModule",{value:!0}),f.PDFNodeStream=void 0;var d=S(2),R=S(20);const g=require$$3,O=require$$3,J=require$$3,a=require$$3,se=/^file:\/\/\/[a-zA-Z]:\//;function H(W){const G=a.parse(W);return G.protocol==="file:"||G.host?G:/^[a-z]:[/\\]/i.test(W)?a.parse(`file:///${W}`):(G.host||(G.protocol="file:"),G)}class ee{constructor(G){this.source=G,this.url=H(G.url),this.isHttp=this.url.protocol==="http:"||this.url.protocol==="https:",this.isFsUrl=this.url.protocol==="file:",this.httpHeaders=this.isHttp&&G.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){return this._fullRequestReader?this._fullRequestReader._loaded:0}getFullReader(){return(0,d.assert)(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=this.isFsUrl?new U(this):new Y(this),this._fullRequestReader}getRangeReader(G,P){if(P<=this._progressiveDataLength)return null;const E=this.isFsUrl?new X(this,G,P):new re(this,G,P);return this._rangeRequestReaders.push(E),E}cancelAllRequests(G){this._fullRequestReader&&this._fullRequestReader.cancel(G),this._rangeRequestReaders.slice(0).forEach(function(E){E.cancel(G)})}}f.PDFNodeStream=ee;class ie{constructor(G){this._url=G.url,this._done=!1,this._storedError=null,this.onProgress=null;const P=G.source;this._contentLength=P.length,this._loaded=0,this._filename=null,this._disableRange=P.disableRange||!1,this._rangeChunkSize=P.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!P.disableStream,this._isRangeSupported=!P.disableRange,this._readableStream=null,this._readCapability=(0,d.createPromiseCapability)(),this._headersCapability=(0,d.createPromiseCapability)()}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const G=this._readableStream.read();return G===null?(this._readCapability=(0,d.createPromiseCapability)(),this.read()):(this._loaded+=G.length,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),{value:new Uint8Array(G).buffer,done:!1})}cancel(G){if(!this._readableStream){this._error(G);return}this._readableStream.destroy(G)}_error(G){this._storedError=G,this._readCapability.resolve()}_setReadableStream(G){this._readableStream=G,G.on("readable",()=>{this._readCapability.resolve()}),G.on("end",()=>{G.destroy(),this._done=!0,this._readCapability.resolve()}),G.on("error",P=>{this._error(P)}),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new d.AbortException("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}}class m{constructor(G){this._url=G.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=(0,d.createPromiseCapability)();const P=G.source;this._isStreamingSupported=!P.disableStream}get isStreamingSupported(){return this._isStreamingSupported}async read(){if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const G=this._readableStream.read();return G===null?(this._readCapability=(0,d.createPromiseCapability)(),this.read()):(this._loaded+=G.length,this.onProgress&&this.onProgress({loaded:this._loaded}),{value:new Uint8Array(G).buffer,done:!1})}cancel(G){if(!this._readableStream){this._error(G);return}this._readableStream.destroy(G)}_error(G){this._storedError=G,this._readCapability.resolve()}_setReadableStream(G){this._readableStream=G,G.on("readable",()=>{this._readCapability.resolve()}),G.on("end",()=>{G.destroy(),this._done=!0,this._readCapability.resolve()}),G.on("error",P=>{this._error(P)}),this._storedError&&this._readableStream.destroy(this._storedError)}}function u(W,G){return{protocol:W.protocol,auth:W.auth,host:W.hostname,port:W.port,path:W.path,method:"GET",headers:G}}class Y extends ie{constructor(G){super(G);const P=E=>{if(E.statusCode===404){const D=new d.MissingPDFException(`Missing PDF "${this._url}".`);this._storedError=D,this._headersCapability.reject(D);return}this._headersCapability.resolve(),this._setReadableStream(E);const A=D=>this._readableStream.headers[D.toLowerCase()],{allowRangeRequests:_,suggestedLength:F}=(0,R.validateRangeRequestCapabilities)({getResponseHeader:A,isHttp:G.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=_,this._contentLength=F||this._contentLength,this._filename=(0,R.extractFilenameFromHeader)(A)};this._request=null,this._url.protocol==="http:"?this._request=O.request(u(this._url,G.httpHeaders),P):this._request=J.request(u(this._url,G.httpHeaders),P),this._request.on("error",E=>{this._storedError=E,this._headersCapability.reject(E)}),this._request.end()}}class re extends m{constructor(G,P,E){super(G),this._httpHeaders={};for(const _ in G.httpHeaders){const F=G.httpHeaders[_];typeof F!="undefined"&&(this._httpHeaders[_]=F)}this._httpHeaders.Range=`bytes=${P}-${E-1}`;const A=_=>{if(_.statusCode===404){const F=new d.MissingPDFException(`Missing PDF "${this._url}".`);this._storedError=F;return}this._setReadableStream(_)};this._request=null,this._url.protocol==="http:"?this._request=O.request(u(this._url,this._httpHeaders),A):this._request=J.request(u(this._url,this._httpHeaders),A),this._request.on("error",_=>{this._storedError=_}),this._request.end()}}class U extends ie{constructor(G){super(G);let P=decodeURIComponent(this._url.path);se.test(this._url.href)&&(P=P.replace(/^\//,"")),g.lstat(P,(E,A)=>{if(E){E.code==="ENOENT"&&(E=new d.MissingPDFException(`Missing PDF "${P}".`)),this._storedError=E,this._headersCapability.reject(E);return}this._contentLength=A.size,this._setReadableStream(g.createReadStream(P)),this._headersCapability.resolve()})}}class X extends m{constructor(G,P,E){super(G);let A=decodeURIComponent(this._url.path);se.test(this._url.href)&&(A=A.replace(/^\//,"")),this._setReadableStream(g.createReadStream(A,{start:P,end:E-1}))}}},function(p,f,S){Object.defineProperty(f,"__esModule",{value:!0}),f.createResponseStatusError=J,f.extractFilenameFromHeader=O,f.validateRangeRequestCapabilities=g,f.validateResponseStatus=a;var d=S(2),R=S(21);function g({getResponseHeader:se,isHttp:H,rangeChunkSize:ee,disableRange:ie}){(0,d.assert)(ee>0,"Range chunk size must be larger than zero");const m={allowRangeRequests:!1,suggestedLength:void 0},u=parseInt(se("Content-Length"),10);return!Number.isInteger(u)||(m.suggestedLength=u,u<=2*ee)||ie||!H||se("Accept-Ranges")!=="bytes"||(se("Content-Encoding")||"identity")!=="identity"||(m.allowRangeRequests=!0),m}function O(se){const H=se("Content-Disposition");if(H){let ee=(0,R.getFilenameFromContentDispositionHeader)(H);if(ee.includes("%"))try{ee=decodeURIComponent(ee)}catch{}if(/\.pdf$/i.test(ee))return ee}return null}function J(se,H){return se===404||se===0&&H.startsWith("file:")?new d.MissingPDFException('Missing PDF "'+H+'".'):new d.UnexpectedResponseException("Unexpected server response ("+se+') while retrieving PDF "'+H+'".',se)}function a(se){return se===200||se===206}},function(p,f,S){Object.defineProperty(f,"__esModule",{value:!0}),f.getFilenameFromContentDispositionHeader=d;function d(R){let g=!0,O=J("filename\\*","i").exec(R);if(O){O=O[1];let u=ee(O);return u=unescape(u),u=ie(u),u=m(u),se(u)}if(O=H(R),O){const u=m(O);return se(u)}if(O=J("filename","i").exec(R),O){O=O[1];let u=ee(O);return u=m(u),se(u)}function J(u,Y){return new RegExp("(?:^|;)\\s*"+u+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',Y)}function a(u,Y){if(u){if(!/^[\x00-\xFF]+$/.test(Y))return Y;try{const re=new TextDecoder(u,{fatal:!0}),U=Array.from(Y,function(X){return X.charCodeAt(0)&255});Y=re.decode(new Uint8Array(U)),g=!1}catch{if(/^utf-?8$/i.test(u))try{Y=decodeURIComponent(escape(Y)),g=!1}catch{}}}return Y}function se(u){return g&&/[\x80-\xff]/.test(u)&&(u=a("utf-8",u),g&&(u=a("iso-8859-1",u))),u}function H(u){const Y=[];let re;const U=J("filename\\*((?!0\\d)\\d+)(\\*?)","ig");for(;(re=U.exec(u))!==null;){let[,W,G,P]=re;if(W=parseInt(W,10),W in Y){if(W===0)break;continue}Y[W]=[G,P]}const X=[];for(let W=0;W<Y.length&&W in Y;++W){let[G,P]=Y[W];P=ee(P),G&&(P=unescape(P),W===0&&(P=ie(P))),X.push(P)}return X.join("")}function ee(u){if(u.startsWith('"')){const Y=u.slice(1).split('\\"');for(let re=0;re<Y.length;++re){const U=Y[re].indexOf('"');U!==-1&&(Y[re]=Y[re].slice(0,U),Y.length=re+1),Y[re]=Y[re].replace(/\\(.)/g,"$1")}u=Y.join('"')}return u}function ie(u){const Y=u.indexOf("'");if(Y===-1)return u;const re=u.slice(0,Y),X=u.slice(Y+1).replace(/^[^']*'/,"");return a(re,X)}function m(u){return!u.startsWith("=?")||/[\x00-\x19\x80-\xff]/.test(u)?u:u.replace(/=\?([\w-]*)\?([QqBb])\?((?:[^?]|\?(?!=))*)\?=/g,function(Y,re,U,X){if(U==="q"||U==="Q")return X=X.replace(/_/g," "),X=X.replace(/=([0-9a-fA-F]{2})/g,function(W,G){return String.fromCharCode(parseInt(G,16))}),a(re,X);try{X=atob(X)}catch{}return a(re,X)})}return""}},function(p,f,S){Object.defineProperty(f,"__esModule",{value:!0}),f.PDFNetworkStream=void 0;var d=S(2),R=S(20);const g=200,O=206;function J(ie){const m=ie.response;return typeof m!="string"?m:(0,d.stringToBytes)(m).buffer}class a{constructor(m,u){this.url=m,u=u||{},this.isHttp=/^https?:/i.test(m),this.httpHeaders=this.isHttp&&u.httpHeaders||{},this.withCredentials=u.withCredentials||!1,this.getXhr=u.getXhr||function(){return new XMLHttpRequest},this.currXhrId=0,this.pendingRequests=Object.create(null)}requestRange(m,u,Y){const re={begin:m,end:u};for(const U in Y)re[U]=Y[U];return this.request(re)}requestFull(m){return this.request(m)}request(m){const u=this.getXhr(),Y=this.currXhrId++,re=this.pendingRequests[Y]={xhr:u};u.open("GET",this.url),u.withCredentials=this.withCredentials;for(const U in this.httpHeaders){const X=this.httpHeaders[U];typeof X!="undefined"&&u.setRequestHeader(U,X)}return this.isHttp&&"begin"in m&&"end"in m?(u.setRequestHeader("Range",`bytes=${m.begin}-${m.end-1}`),re.expectedStatus=O):re.expectedStatus=g,u.responseType="arraybuffer",m.onError&&(u.onerror=function(U){m.onError(u.status)}),u.onreadystatechange=this.onStateChange.bind(this,Y),u.onprogress=this.onProgress.bind(this,Y),re.onHeadersReceived=m.onHeadersReceived,re.onDone=m.onDone,re.onError=m.onError,re.onProgress=m.onProgress,u.send(null),Y}onProgress(m,u){const Y=this.pendingRequests[m];!Y||Y.onProgress&&Y.onProgress(u)}onStateChange(m,u){const Y=this.pendingRequests[m];if(!Y)return;const re=Y.xhr;if(re.readyState>=2&&Y.onHeadersReceived&&(Y.onHeadersReceived(),delete Y.onHeadersReceived),re.readyState!==4||!(m in this.pendingRequests))return;if(delete this.pendingRequests[m],re.status===0&&this.isHttp){Y.onError&&Y.onError(re.status);return}const U=re.status||g;if(!(U===g&&Y.expectedStatus===O)&&U!==Y.expectedStatus){Y.onError&&Y.onError(re.status);return}const W=J(re);if(U===O){const G=re.getResponseHeader("Content-Range"),P=/bytes (\d+)-(\d+)\/(\d+)/.exec(G);Y.onDone({begin:parseInt(P[1],10),chunk:W})}else W?Y.onDone({begin:0,chunk:W}):Y.onError&&Y.onError(re.status)}hasPendingRequests(){for(const m in this.pendingRequests)return!0;return!1}getRequestXhr(m){return this.pendingRequests[m].xhr}isPendingRequest(m){return m in this.pendingRequests}abortAllRequests(){for(const m in this.pendingRequests)this.abortRequest(m|0)}abortRequest(m){const u=this.pendingRequests[m].xhr;delete this.pendingRequests[m],u.abort()}}class se{constructor(m){this._source=m,this._manager=new a(m.url,{httpHeaders:m.httpHeaders,withCredentials:m.withCredentials}),this._rangeChunkSize=m.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}_onRangeRequestReaderClosed(m){const u=this._rangeRequestReaders.indexOf(m);u>=0&&this._rangeRequestReaders.splice(u,1)}getFullReader(){return(0,d.assert)(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new H(this._manager,this._source),this._fullRequestReader}getRangeReader(m,u){const Y=new ee(this._manager,m,u);return Y.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(Y),Y}cancelAllRequests(m){this._fullRequestReader&&this._fullRequestReader.cancel(m),this._rangeRequestReaders.slice(0).forEach(function(Y){Y.cancel(m)})}}f.PDFNetworkStream=se;class H{constructor(m,u){this._manager=m;const Y={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=u.url,this._fullRequestId=m.requestFull(Y),this._headersReceivedCapability=(0,d.createPromiseCapability)(),this._disableRange=u.disableRange||!1,this._contentLength=u.length,this._rangeChunkSize=u.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!1,this._isRangeSupported=!1,this._cachedChunks=[],this._requests=[],this._done=!1,this._storedError=void 0,this._filename=null,this.onProgress=null}_onHeadersReceived(){const m=this._fullRequestId,u=this._manager.getRequestXhr(m),Y=X=>u.getResponseHeader(X),{allowRangeRequests:re,suggestedLength:U}=(0,R.validateRangeRequestCapabilities)({getResponseHeader:Y,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});re&&(this._isRangeSupported=!0),this._contentLength=U||this._contentLength,this._filename=(0,R.extractFilenameFromHeader)(Y),this._isRangeSupported&&this._manager.abortRequest(m),this._headersReceivedCapability.resolve()}_onDone(m){m&&(this._requests.length>0?this._requests.shift().resolve({value:m.chunk,done:!1}):this._cachedChunks.push(m.chunk)),this._done=!0,!(this._cachedChunks.length>0)&&(this._requests.forEach(function(u){u.resolve({value:void 0,done:!0})}),this._requests=[])}_onError(m){const u=this._url,Y=(0,R.createResponseStatusError)(m,u);this._storedError=Y,this._headersReceivedCapability.reject(Y),this._requests.forEach(function(re){re.reject(Y)}),this._requests=[],this._cachedChunks=[]}_onProgress(m){this.onProgress&&this.onProgress({loaded:m.loaded,total:m.lengthComputable?m.total:this._contentLength})}get filename(){return this._filename}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}get contentLength(){return this._contentLength}get headersReady(){return this._headersReceivedCapability.promise}async read(){if(this._storedError)throw this._storedError;if(this._cachedChunks.length>0)return{value:this._cachedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};const m=(0,d.createPromiseCapability)();return this._requests.push(m),m.promise}cancel(m){this._done=!0,this._headersReceivedCapability.reject(m),this._requests.forEach(function(u){u.resolve({value:void 0,done:!0})}),this._requests=[],this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}}class ee{constructor(m,u,Y){this._manager=m;const re={onDone:this._onDone.bind(this),onProgress:this._onProgress.bind(this)};this._requestId=m.requestRange(u,Y,re),this._requests=[],this._queuedChunk=null,this._done=!1,this.onProgress=null,this.onClosed=null}_close(){this.onClosed&&this.onClosed(this)}_onDone(m){const u=m.chunk;this._requests.length>0?this._requests.shift().resolve({value:u,done:!1}):this._queuedChunk=u,this._done=!0,this._requests.forEach(function(Y){Y.resolve({value:void 0,done:!0})}),this._requests=[],this._close()}_onProgress(m){!this.isStreamingSupported&&this.onProgress&&this.onProgress({loaded:m.loaded})}get isStreamingSupported(){return!1}async read(){if(this._queuedChunk!==null){const u=this._queuedChunk;return this._queuedChunk=null,{value:u,done:!1}}if(this._done)return{value:void 0,done:!0};const m=(0,d.createPromiseCapability)();return this._requests.push(m),m.promise}cancel(m){this._done=!0,this._requests.forEach(function(u){u.resolve({value:void 0,done:!0})}),this._requests=[],this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}}},function(p,f,S){Object.defineProperty(f,"__esModule",{value:!0}),f.PDFFetchStream=void 0;var d=S(2),R=S(20);function g(H,ee,ie){return{method:"GET",headers:H,signal:ie&&ie.signal,mode:"cors",credentials:ee?"include":"same-origin",redirect:"follow"}}function O(H){const ee=new Headers;for(const ie in H){const m=H[ie];typeof m!="undefined"&&ee.append(ie,m)}return ee}class J{constructor(ee){this.source=ee,this.isHttp=/^https?:/i.test(ee.url),this.httpHeaders=this.isHttp&&ee.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){return this._fullRequestReader?this._fullRequestReader._loaded:0}getFullReader(){return(0,d.assert)(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new a(this),this._fullRequestReader}getRangeReader(ee,ie){if(ie<=this._progressiveDataLength)return null;const m=new se(this,ee,ie);return this._rangeRequestReaders.push(m),m}cancelAllRequests(ee){this._fullRequestReader&&this._fullRequestReader.cancel(ee),this._rangeRequestReaders.slice(0).forEach(function(m){m.cancel(ee)})}}f.PDFFetchStream=J;class a{constructor(ee){this._stream=ee,this._reader=null,this._loaded=0,this._filename=null;const ie=ee.source;this._withCredentials=ie.withCredentials||!1,this._contentLength=ie.length,this._headersCapability=(0,d.createPromiseCapability)(),this._disableRange=ie.disableRange||!1,this._rangeChunkSize=ie.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),typeof AbortController!="undefined"&&(this._abortController=new AbortController),this._isStreamingSupported=!ie.disableStream,this._isRangeSupported=!ie.disableRange,this._headers=O(this._stream.httpHeaders);const m=ie.url;fetch(m,g(this._headers,this._withCredentials,this._abortController)).then(u=>{if(!(0,R.validateResponseStatus)(u.status))throw(0,R.createResponseStatusError)(u.status,m);this._reader=u.body.getReader(),this._headersCapability.resolve();const Y=X=>u.headers.get(X),{allowRangeRequests:re,suggestedLength:U}=(0,R.validateRangeRequestCapabilities)({getResponseHeader:Y,isHttp:this._stream.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=re,this._contentLength=U||this._contentLength,this._filename=(0,R.extractFilenameFromHeader)(Y),!this._isStreamingSupported&&this._isRangeSupported&&this.cancel(new d.AbortException("Streaming is disabled."))}).catch(this._headersCapability.reject),this.onProgress=null}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){await this._headersCapability.promise;const{value:ee,done:ie}=await this._reader.read();return ie?{value:ee,done:ie}:(this._loaded+=ee.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),{value:new Uint8Array(ee).buffer,done:!1})}cancel(ee){this._reader&&this._reader.cancel(ee),this._abortController&&this._abortController.abort()}}class se{constructor(ee,ie,m){this._stream=ee,this._reader=null,this._loaded=0;const u=ee.source;this._withCredentials=u.withCredentials||!1,this._readCapability=(0,d.createPromiseCapability)(),this._isStreamingSupported=!u.disableStream,typeof AbortController!="undefined"&&(this._abortController=new AbortController),this._headers=O(this._stream.httpHeaders),this._headers.append("Range",`bytes=${ie}-${m-1}`);const Y=u.url;fetch(Y,g(this._headers,this._withCredentials,this._abortController)).then(re=>{if(!(0,R.validateResponseStatus)(re.status))throw(0,R.createResponseStatusError)(re.status,Y);this._readCapability.resolve(),this._reader=re.body.getReader()}),this.onProgress=null}get isStreamingSupported(){return this._isStreamingSupported}async read(){await this._readCapability.promise;const{value:ee,done:ie}=await this._reader.read();return ie?{value:ee,done:ie}:(this._loaded+=ee.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded}),{value:new Uint8Array(ee).buffer,done:!1})}cancel(ee){this._reader&&this._reader.cancel(ee),this._abortController&&this._abortController.abort()}}}])})})(pdf$1);var pdf_worker={exports:{}};(function(p,f){(function(d,R){p.exports=R()})(commonjsGlobal,function(){return function(S){var d={};function R(g){if(d[g])return d[g].exports;var O=d[g]={i:g,l:!1,exports:{}};return S[g].call(O.exports,O,O.exports,R),O.l=!0,O.exports}return R.m=S,R.c=d,R.d=function(g,O,J){R.o(g,O)||Object.defineProperty(g,O,{enumerable:!0,get:J})},R.r=function(g){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(g,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(g,"__esModule",{value:!0})},R.t=function(g,O){if(O&1&&(g=R(g)),O&8||O&4&&typeof g=="object"&&g&&g.__esModule)return g;var J=Object.create(null);if(R.r(J),Object.defineProperty(J,"default",{enumerable:!0,value:g}),O&2&&typeof g!="string")for(var a in g)R.d(J,a,function(se){return g[se]}.bind(null,a));return J},R.n=function(g){var O=g&&g.__esModule?function(){return g.default}:function(){return g};return R.d(O,"a",O),O},R.o=function(g,O){return Object.prototype.hasOwnProperty.call(g,O)},R.p="",R(R.s=0)}([function(S,d,R){Object.defineProperty(d,"__esModule",{value:!0}),Object.defineProperty(d,"WorkerMessageHandler",{enumerable:!0,get:function(){return g.WorkerMessageHandler}});var g=R(1)},function(S,d,R){Object.defineProperty(d,"__esModule",{value:!0}),d.WorkerMessageHandler=d.WorkerTask=void 0;var g=R(2),O=R(5),J=R(6),a=R(4),se=R(45),H=R(46),ee=R(8),ie=function(){function re(U){this.name=U,this.terminated=!1,this._capability=(0,g.createPromiseCapability)()}return re.prototype={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")}},re}();d.WorkerTask=ie;var m={setup(Y,re){var U=!1;Y.on("test",function(W){if(U)return;if(U=!0,!(W instanceof Uint8Array)){Y.send("test",null);return}const G=W[0]===255;Y.postMessageTransfers=G,Y.send("test",{supportTransfers:G})}),Y.on("configure",function(W){(0,g.setVerbosityLevel)(W.verbosity)}),Y.on("GetDocRequest",function(W){return m.createDocumentHandler(W,re)})},createDocumentHandler(Y,re){var U,X=!1,W=null,G=[];const P=(0,g.getVerbosityLevel)(),E=Y.apiVersion,A="2.5.207";if(E!==A)throw new Error(`The API version "${E}" does not match the Worker version "${A}".`);const _=[];for(const B in[])_.push(B);if(_.length)throw new Error("The `Array.prototype` contains unexpected enumerable properties: "+_.join(", ")+"; thus breaking e.g. `for...in` iteration of `Array`s.");if(typeof ReadableStream=="undefined"||typeof Promise.allSettled=="undefined")throw new Error("The browser/environment lacks native support for critical functionality used by the PDF.js library (e.g. `ReadableStream` and/or `Promise.allSettled`); please use an ES5-compatible build instead.");var F=Y.docId,D=Y.docBaseUrl,L=Y.docId+"_worker",k=new se.MessageHandler(L,F,re);k.postMessageTransfers=Y.postMessageTransfers;function v(){if(X)throw new Error("Worker was terminated")}function y(B){G.push(B)}function b(B){B.finish();var N=G.indexOf(B);G.splice(N,1)}async function C(B){await U.ensureDoc("checkHeader"),await U.ensureDoc("parseStartXRef"),await U.ensureDoc("parse",[B]),B||await U.ensureDoc("checkFirstPage");const[N,Q]=await Promise.all([U.ensureDoc("numPages"),U.ensureDoc("fingerprint")]);return{numPages:N,fingerprint:Q}}function w(B,N){var Q=(0,g.createPromiseCapability)();let z;var j=B.source;if(j.data){try{z=new J.LocalPdfManager(F,j.data,j.password,N,D),Q.resolve(z)}catch(oe){Q.reject(oe)}return Q.promise}var $,M=[];try{$=new H.PDFWorkerStream(k)}catch(oe){return Q.reject(oe),Q.promise}var q=$.getFullReader();q.headersReady.then(function(){if(!!q.isRangeSupported){var oe=j.disableAutoFetch||q.isStreamingSupported;z=new J.NetworkPdfManager(F,$,{msgHandler:k,password:j.password,length:q.contentLength,disableAutoFetch:oe,rangeChunkSize:j.rangeChunkSize},N,D);for(let ae=0;ae<M.length;ae++)z.sendProgressiveData(M[ae]);M=[],Q.resolve(z),W=null}}).catch(function(oe){Q.reject(oe),W=null});var K=0,Z=function(){var oe=(0,g.arraysToBytes)(M);j.length&&oe.length!==j.length&&(0,g.warn)("reported HTTP length is different from actual");try{z=new J.LocalPdfManager(F,oe,j.password,N,D),Q.resolve(z)}catch(ae){Q.reject(ae)}M=[]},te=new Promise(function(oe,ae){var ce=function({value:fe,done:ne}){try{if(v(),ne){z||Z(),W=null;return}K+=(0,g.arrayByteLength)(fe),q.isStreamingSupported||k.send("DocProgress",{loaded:K,total:Math.max(K,q.contentLength||0)}),z?z.sendProgressiveData(fe):M.push(fe),q.read().then(ce,ae)}catch(le){ae(le)}};q.read().then(ce,ae)});return te.catch(function(oe){Q.reject(oe),W=null}),W=function(oe){$.cancelAllRequests(oe)},Q.promise}function T(B){function N($){v(),k.send("GetDoc",{pdfInfo:$})}function Q($){if(v(),$ instanceof g.PasswordException){var M=new ie(`PasswordException: response ${$.code}`);y(M),k.sendWithPromise("PasswordRequest",$).then(function({password:q}){b(M),U.updatePassword(q),z()}).catch(function(){b(M),k.send("DocException",$)})}else $ instanceof g.InvalidPDFException||$ instanceof g.MissingPDFException||$ instanceof g.UnexpectedResponseException||$ instanceof g.UnknownErrorException?k.send("DocException",$):k.send("DocException",new g.UnknownErrorException($.message,$.toString()))}function z(){v(),C(!1).then(N,function(M){if(v(),!(M instanceof ee.XRefParseException)){Q(M);return}U.requestLoadedStream(),U.onLoadedStream().then(function(){v(),C(!0).then(N,Q)})},Q)}v();var j={maxImageSize:B.maxImageSize,disableFontFace:B.disableFontFace,ignoreErrors:B.ignoreErrors,isEvalSupported:B.isEvalSupported,fontExtraProperties:B.fontExtraProperties};w(B,j).then(function($){if(X)throw $.terminate(new g.AbortException("Worker was terminated.")),new Error("Worker was terminated");U=$,U.onLoadedStream().then(function(M){k.send("DataLoaded",{length:M.bytes.byteLength})})}).then(z,Q)}return k.on("GetPage",function(N){return U.getPage(N.pageIndex).then(function(Q){return Promise.all([U.ensure(Q,"rotate"),U.ensure(Q,"ref"),U.ensure(Q,"userUnit"),U.ensure(Q,"view")]).then(function([z,j,$,M]){return{rotate:z,ref:j,userUnit:$,view:M}})})}),k.on("GetPageIndex",function(N){var Q=O.Ref.get(N.ref.num,N.ref.gen),z=U.pdfDocument.catalog;return z.getPageIndex(Q)}),k.on("GetDestinations",function(N){return U.ensureCatalog("destinations")}),k.on("GetDestination",function(N){return U.ensureCatalog("getDestination",[N.id])}),k.on("GetPageLabels",function(N){return U.ensureCatalog("pageLabels")}),k.on("GetPageLayout",function(N){return U.ensureCatalog("pageLayout")}),k.on("GetPageMode",function(N){return U.ensureCatalog("pageMode")}),k.on("GetViewerPreferences",function(B){return U.ensureCatalog("viewerPreferences")}),k.on("GetOpenAction",function(B){return U.ensureCatalog("openAction")}),k.on("GetAttachments",function(N){return U.ensureCatalog("attachments")}),k.on("GetJavaScript",function(N){return U.ensureCatalog("javaScript")}),k.on("GetOutline",function(N){return U.ensureCatalog("documentOutline")}),k.on("GetPermissions",function(B){return U.ensureCatalog("permissions")}),k.on("GetMetadata",function(N){return Promise.all([U.ensureDoc("documentInfo"),U.ensureCatalog("metadata")])}),k.on("GetData",function(N){return U.requestLoadedStream(),U.onLoadedStream().then(function(Q){return Q.bytes})}),k.on("GetStats",function(N){return U.pdfDocument.xref.stats}),k.on("GetAnnotations",function({pageIndex:B,intent:N}){return U.getPage(B).then(function(Q){return Q.getAnnotationsData(N)})}),k.on("GetOperatorList",function(N,Q){var z=N.pageIndex;U.getPage(z).then(function(j){var $=new ie(`GetOperatorList: page ${z}`);y($);const M=P>=g.VerbosityLevel.INFOS?Date.now():0;j.getOperatorList({handler:k,sink:Q,task:$,intent:N.intent,renderInteractiveForms:N.renderInteractiveForms}).then(function(q){b($),M&&(0,g.info)(`page=${z+1} - getOperatorList: time=${Date.now()-M}ms, len=${q.length}`),Q.close()},function(q){b($),!$.terminated&&(k.send("UnsupportedFeature",{featureId:g.UNSUPPORTED_FEATURES.errorOperatorList}),Q.error(q))})})},this),k.on("GetTextContent",function(N,Q){var z=N.pageIndex;Q.onPull=function(j){},Q.onCancel=function(j){},U.getPage(z).then(function(j){var $=new ie("GetTextContent: page "+z);y($);const M=P>=g.VerbosityLevel.INFOS?Date.now():0;j.extractTextContent({handler:k,task:$,sink:Q,normalizeWhitespace:N.normalizeWhitespace,combineTextItems:N.combineTextItems}).then(function(){b($),M&&(0,g.info)(`page=${z+1} - getTextContent: time=${Date.now()-M}ms`),Q.close()},function(q){b($),!$.terminated&&Q.error(q)})})}),k.on("FontFallback",function(B){return U.fontFallback(B.id,k)}),k.on("Cleanup",function(N){return U.cleanup(!0)}),k.on("Terminate",function(N){X=!0;const Q=[];if(U){U.terminate(new g.AbortException("Worker was terminated."));const z=U.cleanup();Q.push(z),U=null}else(0,O.clearPrimitiveCaches)();return W&&W(new g.AbortException("Worker was terminated.")),G.forEach(function(z){Q.push(z.finished),z.terminate()}),Promise.all(Q).then(function(){k.destroy(),k=null})}),k.on("Ready",function(N){T(Y),Y=null}),L},initializeFromPort(Y){var re=new se.MessageHandler("worker","main",Y);m.setup(re,Y),re.send("ready",null)}};d.WorkerMessageHandler=m;function u(Y){return typeof Y.postMessage=="function"&&"onmessage"in Y}typeof window=="undefined"&&!a.isNodeJS&&typeof self!="undefined"&&u(self)&&m.initializeFromPort(self)},function(S,d,R){Object.defineProperty(d,"__esModule",{value:!0}),d.arrayByteLength=ce,d.arraysToBytes=fe,d.assert=b,d.bytesToString=oe,d.createPromiseCapability=Ee,d.getVerbosityLevel=L,d.info=k,d.isArrayBuffer=De,d.isArrayEqual=Be,d.isBool=we,d.isEmptyObj=Ae,d.isNum=Fe,d.isString=_e,d.isSameOrigin=C,d.createValidAbsoluteUrl=T,d.removeNullCharacters=te,d.setVerbosityLevel=D,d.shadow=B,d.string32=ne,d.stringToBytes=ae,d.stringToPDFString=Ce,d.stringToUTF8String=xe,d.utf8StringToString=ge,d.warn=v,d.unreachable=y,d.IsEvalSupportedCached=d.IsLittleEndianCached=d.createObjectURL=d.FormatError=d.Util=d.UnknownErrorException=d.UnexpectedResponseException=d.TextRenderingMode=d.StreamType=d.PermissionFlag=d.PasswordResponses=d.PasswordException=d.MissingPDFException=d.InvalidPDFException=d.AbortException=d.CMapCompressionType=d.ImageKind=d.FontType=d.AnnotationType=d.AnnotationStateModelType=d.AnnotationReviewState=d.AnnotationReplyType=d.AnnotationMarkedState=d.AnnotationFlag=d.AnnotationFieldFlag=d.AnnotationBorderStyleType=d.UNSUPPORTED_FEATURES=d.VerbosityLevel=d.OPS=d.IDENTITY_MATRIX=d.FONT_IDENTITY_MATRIX=d.BaseException=void 0,R(3);const g=[1,0,0,1,0,0];d.IDENTITY_MATRIX=g;const O=[.001,0,0,.001,0,0];d.FONT_IDENTITY_MATRIX=O;const J={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048};d.PermissionFlag=J;const a={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4};d.TextRenderingMode=a;const se={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3};d.ImageKind=se;const H={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};d.AnnotationType=H;const ee={MARKED:"Marked",REVIEW:"Review"};d.AnnotationStateModelType=ee;const ie={MARKED:"Marked",UNMARKED:"Unmarked"};d.AnnotationMarkedState=ie;const m={ACCEPTED:"Accepted",REJECTED:"Rejected",CANCELLED:"Cancelled",COMPLETED:"Completed",NONE:"None"};d.AnnotationReviewState=m;const u={GROUP:"Group",REPLY:"R"};d.AnnotationReplyType=u;const Y={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512};d.AnnotationFlag=Y;const re={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};d.AnnotationFieldFlag=re;const U={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5};d.AnnotationBorderStyleType=U;const X={UNKNOWN:"UNKNOWN",FLATE:"FLATE",LZW:"LZW",DCT:"DCT",JPX:"JPX",JBIG:"JBIG",A85:"A85",AHX:"AHX",CCF:"CCF",RLX:"RLX"};d.StreamType=X;const W={UNKNOWN:"UNKNOWN",TYPE1:"TYPE1",TYPE1C:"TYPE1C",CIDFONTTYPE0:"CIDFONTTYPE0",CIDFONTTYPE0C:"CIDFONTTYPE0C",TRUETYPE:"TRUETYPE",CIDFONTTYPE2:"CIDFONTTYPE2",TYPE3:"TYPE3",OPENTYPE:"OPENTYPE",TYPE0:"TYPE0",MMTYPE1:"MMTYPE1"};d.FontType=W;const G={ERRORS:0,WARNINGS:1,INFOS:5};d.VerbosityLevel=G;const P={NONE:0,BINARY:1,STREAM:2};d.CMapCompressionType=P;const E={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,beginAnnotations:78,endAnnotations:79,beginAnnotation:80,endAnnotation:81,paintJpegXObject:82,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91};d.OPS=E;const A={unknown:"unknown",forms:"forms",javaScript:"javaScript",smask:"smask",shadingPattern:"shadingPattern",font:"font",errorTilingPattern:"errorTilingPattern",errorExtGState:"errorExtGState",errorXObject:"errorXObject",errorFontLoadType3:"errorFontLoadType3",errorFontState:"errorFontState",errorFontMissing:"errorFontMissing",errorFontTranslate:"errorFontTranslate",errorColorSpace:"errorColorSpace",errorOperatorList:"errorOperatorList",errorFontToUnicode:"errorFontToUnicode",errorFontLoadNative:"errorFontLoadNative",errorFontGetPath:"errorFontGetPath"};d.UNSUPPORTED_FEATURES=A;const _={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};d.PasswordResponses=_;let F=G.WARNINGS;function D(pe){Number.isInteger(pe)&&(F=pe)}function L(){return F}function k(pe){F>=G.INFOS&&console.log(`Info: ${pe}`)}function v(pe){F>=G.WARNINGS&&console.log(`Warning: ${pe}`)}function y(pe){throw new Error(pe)}function b(pe,be){pe||y(be)}function C(pe,be){let ye;try{if(ye=new URL(pe),!ye.origin||ye.origin==="null")return!1}catch{return!1}const Te=new URL(be,ye);return ye.origin===Te.origin}function w(pe){if(!pe)return!1;switch(pe.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}function T(pe,be){if(!pe)return null;try{const ye=be?new URL(pe,be):new URL(pe);if(w(ye))return ye}catch{}return null}function B(pe,be,ye){return Object.defineProperty(pe,be,{value:ye,enumerable:!0,configurable:!0,writable:!1}),ye}const N=function(){function be(ye){this.constructor===be&&y("Cannot initialize BaseException."),this.message=ye,this.name=this.constructor.name}return be.prototype=new Error,be.constructor=be,be}();d.BaseException=N;class Q extends N{constructor(be,ye){super(be),this.code=ye}}d.PasswordException=Q;class z extends N{constructor(be,ye){super(be),this.details=ye}}d.UnknownErrorException=z;class j extends N{}d.InvalidPDFException=j;class $ extends N{}d.MissingPDFException=$;class M extends N{constructor(be,ye){super(be),this.status=ye}}d.UnexpectedResponseException=M;class q extends N{}d.FormatError=q;class K extends N{}d.AbortException=K;const Z=/\x00/g;function te(pe){return typeof pe!="string"?(v("The argument for removeNullCharacters must be a string."),pe):pe.replace(Z,"")}function oe(pe){b(pe!==null&&typeof pe=="object"&&pe.length!==void 0,"Invalid argument for bytesToString");const be=pe.length,ye=8192;if(be<ye)return String.fromCharCode.apply(null,pe);const Te=[];for(let Pe=0;Pe<be;Pe+=ye){const Le=Math.min(Pe+ye,be),Re=pe.subarray(Pe,Le);Te.push(String.fromCharCode.apply(null,Re))}return Te.join("")}function ae(pe){b(typeof pe=="string","Invalid argument for stringToBytes");const be=pe.length,ye=new Uint8Array(be);for(let Te=0;Te<be;++Te)ye[Te]=pe.charCodeAt(Te)&255;return ye}function ce(pe){return pe.length!==void 0?pe.length:(b(pe.byteLength!==void 0,"arrayByteLength - invalid argument."),pe.byteLength)}function fe(pe){const be=pe.length;if(be===1&&pe[0]instanceof Uint8Array)return pe[0];let ye=0;for(let Le=0;Le<be;Le++)ye+=ce(pe[Le]);let Te=0;const Pe=new Uint8Array(ye);for(let Le=0;Le<be;Le++){let Re=pe[Le];Re instanceof Uint8Array||(typeof Re=="string"?Re=ae(Re):Re=new Uint8Array(Re));const Ie=Re.byteLength;Pe.set(Re,Te),Te+=Ie}return Pe}function ne(pe){return String.fromCharCode(pe>>24&255,pe>>16&255,pe>>8&255,pe&255)}function le(){const pe=new Uint8Array(4);return pe[0]=1,new Uint32Array(pe.buffer,0,1)[0]===1}const ue={get value(){return B(this,"value",le())}};d.IsLittleEndianCached=ue;function he(){try{return new Function(""),!0}catch{return!1}}const de={get value(){return B(this,"value",he())}};d.IsEvalSupportedCached=de;const ve=["rgb(",0,",",0,",",0,")"];class me{static makeCssRgb(be,ye,Te){return ve[1]=be,ve[3]=ye,ve[5]=Te,ve.join("")}static transform(be,ye){return[be[0]*ye[0]+be[2]*ye[1],be[1]*ye[0]+be[3]*ye[1],be[0]*ye[2]+be[2]*ye[3],be[1]*ye[2]+be[3]*ye[3],be[0]*ye[4]+be[2]*ye[5]+be[4],be[1]*ye[4]+be[3]*ye[5]+be[5]]}static applyTransform(be,ye){const Te=be[0]*ye[0]+be[1]*ye[2]+ye[4],Pe=be[0]*ye[1]+be[1]*ye[3]+ye[5];return[Te,Pe]}static applyInverseTransform(be,ye){const Te=ye[0]*ye[3]-ye[1]*ye[2],Pe=(be[0]*ye[3]-be[1]*ye[2]+ye[2]*ye[5]-ye[4]*ye[3])/Te,Le=(-be[0]*ye[1]+be[1]*ye[0]+ye[4]*ye[1]-ye[5]*ye[0])/Te;return[Pe,Le]}static getAxialAlignedBoundingBox(be,ye){const Te=me.applyTransform(be,ye),Pe=me.applyTransform(be.slice(2,4),ye),Le=me.applyTransform([be[0],be[3]],ye),Re=me.applyTransform([be[2],be[1]],ye);return[Math.min(Te[0],Pe[0],Le[0],Re[0]),Math.min(Te[1],Pe[1],Le[1],Re[1]),Math.max(Te[0],Pe[0],Le[0],Re[0]),Math.max(Te[1],Pe[1],Le[1],Re[1])]}static inverseTransform(be){const ye=be[0]*be[3]-be[1]*be[2];return[be[3]/ye,-be[1]/ye,-be[2]/ye,be[0]/ye,(be[2]*be[5]-be[4]*be[3])/ye,(be[4]*be[1]-be[5]*be[0])/ye]}static apply3dTransform(be,ye){return[be[0]*ye[0]+be[1]*ye[1]+be[2]*ye[2],be[3]*ye[0]+be[4]*ye[1]+be[5]*ye[2],be[6]*ye[0]+be[7]*ye[1]+be[8]*ye[2]]}static singularValueDecompose2dScale(be){const ye=[be[0],be[2],be[1],be[3]],Te=be[0]*ye[0]+be[1]*ye[2],Pe=be[0]*ye[1]+be[1]*ye[3],Le=be[2]*ye[0]+be[3]*ye[2],Re=be[2]*ye[1]+be[3]*ye[3],Ie=(Te+Re)/2,He=Math.sqrt((Te+Re)*(Te+Re)-4*(Te*Re-Le*Pe))/2,Ue=Ie+He||1,Ge=Ie-He||1;return[Math.sqrt(Ue),Math.sqrt(Ge)]}static normalizeRect(be){const ye=be.slice(0);return be[0]>be[2]&&(ye[0]=be[2],ye[2]=be[0]),be[1]>be[3]&&(ye[1]=be[3],ye[3]=be[1]),ye}static intersect(be,ye){function Te(Ie,He){return Ie-He}const Pe=[be[0],be[2],ye[0],ye[2]].sort(Te),Le=[be[1],be[3],ye[1],ye[3]].sort(Te),Re=[];if(be=me.normalizeRect(be),ye=me.normalizeRect(ye),Pe[0]===be[0]&&Pe[1]===ye[0]||Pe[0]===ye[0]&&Pe[1]===be[0])Re[0]=Pe[1],Re[2]=Pe[2];else return null;if(Le[0]===be[1]&&Le[1]===ye[1]||Le[0]===ye[1]&&Le[1]===be[1])Re[1]=Le[1],Re[3]=Le[2];else return null;return Re}}d.Util=me;const Se=[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 Ce(pe){const be=pe.length,ye=[];if(pe[0]==="\xFE"&&pe[1]==="\xFF")for(let Te=2;Te<be;Te+=2)ye.push(String.fromCharCode(pe.charCodeAt(Te)<<8|pe.charCodeAt(Te+1)));else if(pe[0]==="\xFF"&&pe[1]==="\xFE")for(let Te=2;Te<be;Te+=2)ye.push(String.fromCharCode(pe.charCodeAt(Te+1)<<8|pe.charCodeAt(Te)));else for(let Te=0;Te<be;++Te){const Pe=Se[pe.charCodeAt(Te)];ye.push(Pe?String.fromCharCode(Pe):pe.charAt(Te))}return ye.join("")}function xe(pe){return decodeURIComponent(escape(pe))}function ge(pe){return unescape(encodeURIComponent(pe))}function Ae(pe){for(const be in pe)return!1;return!0}function we(pe){return typeof pe=="boolean"}function Fe(pe){return typeof pe=="number"}function _e(pe){return typeof pe=="string"}function De(pe){return typeof pe=="object"&&pe!==null&&pe.byteLength!==void 0}function Be(pe,be){return pe.length!==be.length?!1:pe.every(function(ye,Te){return ye===be[Te]})}function Ee(){const pe=Object.create(null);let be=!1;return Object.defineProperty(pe,"settled",{get(){return be}}),pe.promise=new Promise(function(ye,Te){pe.resolve=function(Pe){be=!0,ye(Pe)},pe.reject=function(Pe){be=!0,Te(Pe)}}),pe}const ke=function(){const be="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return function(Te,Pe,Le=!1){if(!Le&&URL.createObjectURL){const Ie=new Blob([Te],{type:Pe});return URL.createObjectURL(Ie)}let Re=`data:${Pe};base64,`;for(let Ie=0,He=Te.length;Ie<He;Ie+=3){const Ue=Te[Ie]&255,Ge=Te[Ie+1]&255,je=Te[Ie+2]&255,Oe=Ue>>2,$e=(Ue&3)<<4|Ge>>4,tt=Ie+1<He?(Ge&15)<<2|je>>6:64,Ye=Ie+2<He?je&63:64;Re+=be[Oe]+be[$e]+be[tt]+be[Ye]}return Re}}();d.createObjectURL=ke},function(S,d,R){R(4)},function(S,d,R){Object.defineProperty(d,"__esModule",{value:!0}),d.isNodeJS=void 0;const g=typeof process=="object"&&process+""=="[object process]"&&!process.versions.nw&&!process.versions.electron;d.isNodeJS=g},function(S,d,R){Object.defineProperty(d,"__esModule",{value:!0}),d.clearPrimitiveCaches=W,d.isEOF=ie,d.isCmd=u,d.isDict=Y,d.isName=m,d.isRef=re,d.isRefsEqual=U,d.isStream=X,d.RefSetCache=d.RefSet=d.Ref=d.Name=d.Dict=d.Cmd=d.EOF=void 0,R(2);var g={};d.EOF=g;var O=function(){let P=Object.create(null);function E(A){this.name=A}return E.prototype={},E.get=function(_){var F=P[_];return F||(P[_]=new E(_))},E._clearCache=function(){P=Object.create(null)},E}();d.Name=O;var J=function(){let P=Object.create(null);function E(A){this.cmd=A}return E.prototype={},E.get=function(_){var F=P[_];return F||(P[_]=new E(_))},E._clearCache=function(){P=Object.create(null)},E}();d.Cmd=J;var a=function(){var P=function(){return P};function E(A){this._map=Object.create(null),this.xref=A,this.objId=null,this.suppressEncryption=!1,this.__nonSerializable__=P}return E.prototype={assignXref:function(_){this.xref=_},get(A,_,F){let D=this._map[A];return D===void 0&&_!==void 0&&(D=this._map[_],D===void 0&&F!==void 0&&(D=this._map[F])),D instanceof se&&this.xref?this.xref.fetch(D,this.suppressEncryption):D},async getAsync(A,_,F){let D=this._map[A];return D===void 0&&_!==void 0&&(D=this._map[_],D===void 0&&F!==void 0&&(D=this._map[F])),D instanceof se&&this.xref?this.xref.fetchAsync(D,this.suppressEncryption):D},getArray(A,_,F){let D=this.get(A,_,F);if(!Array.isArray(D)||!this.xref)return D;D=D.slice();for(let L=0,k=D.length;L<k;L++)D[L]instanceof se&&(D[L]=this.xref.fetch(D[L],this.suppressEncryption));return D},getRaw:function(_){return this._map[_]},getKeys:function(){return Object.keys(this._map)},set:function(_,F){this._map[_]=F},has:function(_){return this._map[_]!==void 0},forEach:function(_){for(var F in this._map)_(F,this.get(F))}},E.empty=new E(null),E.merge=function(A,_){const F=new E(A);for(let D=0,L=_.length;D<L;D++){const k=_[D];if(!!Y(k))for(const v in k._map)F._map[v]===void 0&&(F._map[v]=k._map[v])}return F},E}();d.Dict=a;var se=function(){let P=Object.create(null);function E(A,_){this.num=A,this.gen=_}return E.prototype={toString:function(){return this.gen===0?`${this.num}R`:`${this.num}R${this.gen}`}},E.get=function(A,_){const F=_===0?`${A}R`:`${A}R${_}`,D=P[F];return D||(P[F]=new E(A,_))},E._clearCache=function(){P=Object.create(null)},E}();d.Ref=se;var H=function(){function P(){this.dict=Object.create(null)}return P.prototype={has:function(A){return A.toString()in this.dict},put:function(A){this.dict[A.toString()]=!0},remove:function(A){delete this.dict[A.toString()]}},P}();d.RefSet=H;var ee=function(){function P(){this.dict=Object.create(null)}return P.prototype={get size(){return Object.keys(this.dict).length},get:function(A){return this.dict[A.toString()]},has:function(A){return A.toString()in this.dict},put:function(A,_){this.dict[A.toString()]=_},putAlias:function(A,_){this.dict[A.toString()]=this.get(_)},forEach:function(A){for(const _ in this.dict)A(this.dict[_])},clear:function(){this.dict=Object.create(null)}},P}();d.RefSetCache=ee;function ie(G){return G===g}function m(G,P){return G instanceof O&&(P===void 0||G.name===P)}function u(G,P){return G instanceof J&&(P===void 0||G.cmd===P)}function Y(G,P){return G instanceof a&&(P===void 0||m(G.get("Type"),P))}function re(G){return G instanceof se}function U(G,P){return G.num===P.num&&G.gen===P.gen}function X(G){return typeof G=="object"&&G!==null&&G.getBytes!==void 0}function W(){J._clearCache(),O._clearCache(),se._clearCache()}},function(S,d,R){Object.defineProperty(d,"__esModule",{value:!0}),d.NetworkPdfManager=d.LocalPdfManager=void 0;var g=R(2),O=R(7),J=R(8),a=R(9),se=R(12);class H{constructor(){this.constructor===H&&(0,g.unreachable)("Cannot initialize BasePdfManager.")}get docId(){return this._docId}get password(){return this._password}get docBaseUrl(){let u=null;if(this._docBaseUrl){const Y=(0,g.createValidAbsoluteUrl)(this._docBaseUrl);Y?u=Y.href:(0,g.warn)(`Invalid absolute docBaseUrl: "${this._docBaseUrl}".`)}return(0,g.shadow)(this,"docBaseUrl",u)}onLoadedStream(){(0,g.unreachable)("Abstract method `onLoadedStream` called")}ensureDoc(u,Y){return this.ensure(this.pdfDocument,u,Y)}ensureXRef(u,Y){return this.ensure(this.pdfDocument.xref,u,Y)}ensureCatalog(u,Y){return this.ensure(this.pdfDocument.catalog,u,Y)}getPage(u){return this.pdfDocument.getPage(u)}fontFallback(u,Y){return this.pdfDocument.fontFallback(u,Y)}cleanup(u=!1){return this.pdfDocument.cleanup(u)}async ensure(u,Y,re){(0,g.unreachable)("Abstract method `ensure` called")}requestRange(u,Y){(0,g.unreachable)("Abstract method `requestRange` called")}requestLoadedStream(){(0,g.unreachable)("Abstract method `requestLoadedStream` called")}sendProgressiveData(u){(0,g.unreachable)("Abstract method `sendProgressiveData` called")}updatePassword(u){this._password=u}terminate(u){(0,g.unreachable)("Abstract method `terminate` called")}}class ee extends H{constructor(u,Y,re,U,X){super(),this._docId=u,this._password=re,this._docBaseUrl=X,this.evaluatorOptions=U;const W=new se.Stream(Y);this.pdfDocument=new a.PDFDocument(this,W),this._loadedStreamPromise=Promise.resolve(W)}async ensure(u,Y,re){const U=u[Y];return typeof U=="function"?U.apply(u,re):U}requestRange(u,Y){return Promise.resolve()}requestLoadedStream(){}onLoadedStream(){return this._loadedStreamPromise}terminate(u){}}d.LocalPdfManager=ee;class ie extends H{constructor(u,Y,re,U,X){super(),this._docId=u,this._password=re.password,this._docBaseUrl=X,this.msgHandler=re.msgHandler,this.evaluatorOptions=U,this.streamManager=new O.ChunkedStreamManager(Y,{msgHandler:re.msgHandler,length:re.length,disableAutoFetch:re.disableAutoFetch,rangeChunkSize:re.rangeChunkSize}),this.pdfDocument=new a.PDFDocument(this,this.streamManager.getStream())}async ensure(u,Y,re){try{const U=u[Y];return typeof U=="function"?U.apply(u,re):U}catch(U){if(!(U instanceof J.MissingDataException))throw U;return await this.requestRange(U.begin,U.end),this.ensure(u,Y,re)}}requestRange(u,Y){return this.streamManager.requestRange(u,Y)}requestLoadedStream(){this.streamManager.requestAllChunks()}sendProgressiveData(u){this.streamManager.onReceiveData({chunk:u})}onLoadedStream(){return this.streamManager.onLoadedStream()}terminate(u){this.streamManager.abort(u)}}d.NetworkPdfManager=ie},function(S,d,R){Object.defineProperty(d,"__esModule",{value:!0}),d.ChunkedStreamManager=d.ChunkedStream=void 0;var g=R(2),O=R(8);class J{constructor(H,ee,ie){this.bytes=new Uint8Array(H),this.start=0,this.pos=0,this.end=H,this.chunkSize=ee,this.loadedChunks=[],this.numChunksLoaded=0,this.numChunks=Math.ceil(H/ee),this.manager=ie,this.progressiveDataLength=0,this.lastSuccessfulEnsureByteChunk=-1}getMissingChunks(){const H=[];for(let ee=0,ie=this.numChunks;ee<ie;++ee)this.loadedChunks[ee]||H.push(ee);return H}getBaseStreams(){return[this]}allChunksLoaded(){return this.numChunksLoaded===this.numChunks}onReceiveData(H,ee){const ie=this.chunkSize;if(H%ie!==0)throw new Error(`Bad begin offset: ${H}`);const m=H+ee.byteLength;if(m%ie!==0&&m!==this.bytes.length)throw new Error(`Bad end offset: ${m}`);this.bytes.set(new Uint8Array(ee),H);const u=Math.floor(H/ie),Y=Math.floor((m-1)/ie)+1;for(let re=u;re<Y;++re)this.loadedChunks[re]||(this.loadedChunks[re]=!0,++this.numChunksLoaded)}onReceiveProgressiveData(H){let ee=this.progressiveDataLength;const ie=Math.floor(ee/this.chunkSize);this.bytes.set(new Uint8Array(H),ee),ee+=H.byteLength,this.progressiveDataLength=ee;const m=ee>=this.end?this.numChunks:Math.floor(ee/this.chunkSize);for(let u=ie;u<m;++u)this.loadedChunks[u]||(this.loadedChunks[u]=!0,++this.numChunksLoaded)}ensureByte(H){if(H<this.progressiveDataLength)return;const ee=Math.floor(H/this.chunkSize);if(ee!==this.lastSuccessfulEnsureByteChunk){if(!this.loadedChunks[ee])throw new O.MissingDataException(H,H+1);this.lastSuccessfulEnsureByteChunk=ee}}ensureRange(H,ee){if(H>=ee||ee<=this.progressiveDataLength)return;const ie=this.chunkSize,m=Math.floor(H/ie),u=Math.floor((ee-1)/ie)+1;for(let Y=m;Y<u;++Y)if(!this.loadedChunks[Y])throw new O.MissingDataException(H,ee)}nextEmptyChunk(H){const ee=this.numChunks;for(let ie=0;ie<ee;++ie){const m=(H+ie)%ee;if(!this.loadedChunks[m])return m}return null}hasChunk(H){return!!this.loadedChunks[H]}get length(){return this.end-this.start}get isEmpty(){return this.length===0}getByte(){const H=this.pos;return H>=this.end?-1:(H>=this.progressiveDataLength&&this.ensureByte(H),this.bytes[this.pos++])}getUint16(){const H=this.getByte(),ee=this.getByte();return H===-1||ee===-1?-1:(H<<8)+ee}getInt32(){const H=this.getByte(),ee=this.getByte(),ie=this.getByte(),m=this.getByte();return(H<<24)+(ee<<16)+(ie<<8)+m}getBytes(H,ee=!1){const ie=this.bytes,m=this.pos,u=this.end;if(!H){u>this.progressiveDataLength&&this.ensureRange(m,u);const U=ie.subarray(m,u);return ee?new Uint8ClampedArray(U):U}let Y=m+H;Y>u&&(Y=u),Y>this.progressiveDataLength&&this.ensureRange(m,Y),this.pos=Y;const re=ie.subarray(m,Y);return ee?new Uint8ClampedArray(re):re}peekByte(){const H=this.getByte();return H!==-1&&this.pos--,H}peekBytes(H,ee=!1){const ie=this.getBytes(H,ee);return this.pos-=ie.length,ie}getByteRange(H,ee){return H<0&&(H=0),ee>this.end&&(ee=this.end),ee>this.progressiveDataLength&&this.ensureRange(H,ee),this.bytes.subarray(H,ee)}skip(H){H||(H=1),this.pos+=H}reset(){this.pos=this.start}moveStart(){this.start=this.pos}makeSubStream(H,ee,ie){ee?H+ee>this.progressiveDataLength&&this.ensureRange(H,H+ee):H>=this.progressiveDataLength&&this.ensureByte(H);function m(){}m.prototype=Object.create(this),m.prototype.getMissingChunks=function(){const Y=this.chunkSize,re=Math.floor(this.start/Y),U=Math.floor((this.end-1)/Y)+1,X=[];for(let W=re;W<U;++W)this.loadedChunks[W]||X.push(W);return X},m.prototype.allChunksLoaded=function(){return this.numChunksLoaded===this.numChunks?!0:this.getMissingChunks().length===0};const u=new m;return u.pos=u.start=H,u.end=H+ee||this.end,u.dict=ie,u}}d.ChunkedStream=J;class a{constructor(H,ee){this.length=ee.length,this.chunkSize=ee.rangeChunkSize,this.stream=new J(this.length,this.chunkSize,this),this.pdfNetworkStream=H,this.disableAutoFetch=ee.disableAutoFetch,this.msgHandler=ee.msgHandler,this.currRequestId=0,this.chunksNeededByRequest=Object.create(null),this.requestsByChunk=Object.create(null),this.promisesByRequest=Object.create(null),this.progressiveDataLength=0,this.aborted=!1,this._loadedStreamCapability=(0,g.createPromiseCapability)()}onLoadedStream(){return this._loadedStreamCapability.promise}sendRequest(H,ee){const ie=this.pdfNetworkStream.getRangeReader(H,ee);ie.isStreamingSupported||(ie.onProgress=this.onProgress.bind(this));let m=[],u=0;new Promise((re,U)=>{const X=W=>{try{if(!W.done){const P=W.value;m.push(P),u+=(0,g.arrayByteLength)(P),ie.isStreamingSupported&&this.onProgress({loaded:u}),ie.read().then(X,U);return}const G=(0,g.arraysToBytes)(m);m=null,re(G)}catch(G){U(G)}};ie.read().then(X,U)}).then(re=>{this.aborted||this.onReceiveData({chunk:re,begin:H})})}requestAllChunks(){const H=this.stream.getMissingChunks();return this._requestChunks(H),this._loadedStreamCapability.promise}_requestChunks(H){const ee=this.currRequestId++,ie=Object.create(null);this.chunksNeededByRequest[ee]=ie;for(const re of H)this.stream.hasChunk(re)||(ie[re]=!0);if((0,g.isEmptyObj)(ie))return Promise.resolve();const m=(0,g.createPromiseCapability)();this.promisesByRequest[ee]=m;const u=[];for(let re in ie)re=re|0,re in this.requestsByChunk||(this.requestsByChunk[re]=[],u.push(re)),this.requestsByChunk[re].push(ee);if(!u.length)return m.promise;const Y=this.groupChunks(u);for(const re of Y){const U=re.beginChunk*this.chunkSize,X=Math.min(re.endChunk*this.chunkSize,this.length);this.sendRequest(U,X)}return m.promise}getStream(){return this.stream}requestRange(H,ee){ee=Math.min(ee,this.length);const ie=this.getBeginChunk(H),m=this.getEndChunk(ee),u=[];for(let Y=ie;Y<m;++Y)u.push(Y);return this._requestChunks(u)}requestRanges(H=[]){const ee=[];for(const ie of H){const m=this.getBeginChunk(ie.begin),u=this.getEndChunk(ie.end);for(let Y=m;Y<u;++Y)ee.includes(Y)||ee.push(Y)}return ee.sort(function(ie,m){return ie-m}),this._requestChunks(ee)}groupChunks(H){const ee=[];let ie=-1,m=-1;for(let u=0,Y=H.length;u<Y;++u){const re=H[u];ie<0&&(ie=re),m>=0&&m+1!==re&&(ee.push({beginChunk:ie,endChunk:m+1}),ie=re),u+1===H.length&&ee.push({beginChunk:ie,endChunk:re+1}),m=re}return ee}onProgress(H){this.msgHandler.send("DocProgress",{loaded:this.stream.numChunksLoaded*this.chunkSize+H.loaded,total:this.length})}onReceiveData(H){const ee=H.chunk,ie=H.begin===void 0,m=ie?this.progressiveDataLength:H.begin,u=m+ee.byteLength,Y=Math.floor(m/this.chunkSize),re=u<this.length?Math.floor(u/this.chunkSize):Math.ceil(u/this.chunkSize);ie?(this.stream.onReceiveProgressiveData(ee),this.progressiveDataLength=u):this.stream.onReceiveData(m,ee),this.stream.allChunksLoaded()&&this._loadedStreamCapability.resolve(this.stream);const U=[];for(let X=Y;X<re;++X){const W=this.requestsByChunk[X]||[];delete this.requestsByChunk[X];for(const G of W){const P=this.chunksNeededByRequest[G];X in P&&delete P[X],(0,g.isEmptyObj)(P)&&U.push(G)}}if(!this.disableAutoFetch&&(0,g.isEmptyObj)(this.requestsByChunk)){let X;if(this.stream.numChunksLoaded===1){const W=this.stream.numChunks-1;this.stream.hasChunk(W)||(X=W)}else X=this.stream.nextEmptyChunk(re);Number.isInteger(X)&&this._requestChunks([X])}for(const X of U){const W=this.promisesByRequest[X];delete this.promisesByRequest[X],W.resolve()}this.msgHandler.send("DocProgress",{loaded:this.stream.numChunksLoaded*this.chunkSize,total:this.length})}onError(H){this._loadedStreamCapability.reject(H)}getBeginChunk(H){return Math.floor(H/this.chunkSize)}getEndChunk(H){return Math.floor((H-1)/this.chunkSize)+1}abort(H){this.aborted=!0,this.pdfNetworkStream&&this.pdfNetworkStream.cancelAllRequests(H);for(const ee in this.promisesByRequest)this.promisesByRequest[ee].reject(H)}}d.ChunkedStreamManager=a},function(S,d,R){Object.defineProperty(d,"__esModule",{value:!0}),d.getLookupTableFactory=O,d.getInheritableProperty=H,d.toRomanNumerals=ie,d.log2=m,d.readInt8=u,d.readUint16=Y,d.readUint32=re,d.isWhiteSpace=U,d.XRefParseException=d.XRefEntryException=d.MissingDataException=void 0;var g=R(2);function O(X){let W;return function(){return X&&(W=Object.create(null),X(W),X=null),W}}class J extends g.BaseException{constructor(W,G){super(`Missing data [${W}, ${G})`),this.begin=W,this.end=G}}d.MissingDataException=J;class a extends g.BaseException{}d.XRefEntryException=a;class se extends g.BaseException{}d.XRefParseException=se;function H({dict:X,key:W,getArray:G=!1,stopWhenFound:P=!0}){let A=0,_;for(;X;){const F=G?X.getArray(W):X.get(W);if(F!==void 0){if(P)return F;_||(_=[]),_.push(F)}if(++A>100){(0,g.warn)(`getInheritableProperty: maximum loop count exceeded for "${W}"`);break}X=X.get("Parent")}return _}const ee=["","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 ie(X,W=!1){(0,g.assert)(Number.isInteger(X)&&X>0,"The number should be a positive integer.");const G=[];let P;for(;X>=1e3;)X-=1e3,G.push("M");P=X/100|0,X%=100,G.push(ee[P]),P=X/10|0,X%=10,G.push(ee[10+P]),G.push(ee[20+X]);const E=G.join("");return W?E.toLowerCase():E}function m(X){return X<=0?0:Math.ceil(Math.log2(X))}function u(X,W){return X[W]<<24>>24}function Y(X,W){return X[W]<<8|X[W+1]}function re(X,W){return(X[W]<<24|X[W+1]<<16|X[W+2]<<8|X[W+3])>>>0}function U(X){return X===32||X===9||X===13||X===10}},function(S,d,R){Object.defineProperty(d,"__esModule",{value:!0}),d.PDFDocument=d.Page=void 0;var g=R(2),O=R(10),J=R(5),a=R(8),se=R(12),H=R(25),ee=R(22),ie=R(11),m=R(26),u=R(27),Y=R(41);const re=1,U=[0,0,612,792];function X(k,v){return v==="display"&&k.viewable||v==="print"&&k.printable}class W{constructor({pdfManager:v,xref:y,pageIndex:b,pageDict:C,ref:w,fontCache:T,builtInCMapCache:B,globalImageCache:N,pdfFunctionFactory:Q}){this.pdfManager=v,this.pageIndex=b,this.pageDict=C,this.xref=y,this.ref=w,this.fontCache=T,this.builtInCMapCache=B,this.globalImageCache=N,this.pdfFunctionFactory=Q,this.evaluatorOptions=v.evaluatorOptions,this.resourcesPromise=null;const z={obj:0};this.idFactory={createObjId(){return`p${b}_${++z.obj}`},getDocId(){return`g_${v.docId}`}}}_getInheritableProperty(v,y=!1){const b=(0,a.getInheritableProperty)({dict:this.pageDict,key:v,getArray:y,stopWhenFound:!1});return Array.isArray(b)?b.length===1||!(0,J.isDict)(b[0])?b[0]:J.Dict.merge(this.xref,b):b}get content(){return this.pageDict.get("Contents")}get resources(){return(0,g.shadow)(this,"resources",this._getInheritableProperty("Resources")||J.Dict.empty)}_getBoundingBox(v){const y=this._getInheritableProperty(v,!0);if(Array.isArray(y)&&y.length===4){if(y[2]-y[0]!==0&&y[3]-y[1]!==0)return y;(0,g.warn)(`Empty /${v} entry.`)}return null}get mediaBox(){return(0,g.shadow)(this,"mediaBox",this._getBoundingBox("MediaBox")||U)}get cropBox(){return(0,g.shadow)(this,"cropBox",this._getBoundingBox("CropBox")||this.mediaBox)}get userUnit(){let v=this.pageDict.get("UserUnit");return(!(0,g.isNum)(v)||v<=0)&&(v=re),(0,g.shadow)(this,"userUnit",v)}get view(){const{cropBox:v,mediaBox:y}=this;let b;if(v===y||(0,g.isArrayEqual)(v,y))b=y;else{const C=g.Util.intersect(v,y);C&&C[2]-C[0]!==0&&C[3]-C[1]!==0?b=C:(0,g.warn)("Empty /CropBox and /MediaBox intersection.")}return(0,g.shadow)(this,"view",b||y)}get rotate(){let v=this._getInheritableProperty("Rotate")||0;return v%90!==0?v=0:v>=360?v=v%360:v<0&&(v=(v%360+360)%360),(0,g.shadow)(this,"rotate",v)}getContentStream(){const v=this.content;let y;if(Array.isArray(v)){const b=this.xref,C=[];for(const w of v)C.push(b.fetchIfRef(w));y=new se.StreamsSequenceStream(C)}else(0,J.isStream)(v)?y=v:y=new se.NullStream;return y}loadResources(v){return this.resourcesPromise||(this.resourcesPromise=this.pdfManager.ensure(this,"resources")),this.resourcesPromise.then(()=>new O.ObjectLoader(this.resources,v,this.xref).load())}getOperatorList({handler:v,sink:y,task:b,intent:C,renderInteractiveForms:w}){const T=this.pdfManager.ensure(this,"getContentStream"),B=this.loadResources(["ExtGState","ColorSpace","Pattern","Shading","XObject","Font"]),N=new u.PartialEvaluator({xref:this.xref,handler:v,pageIndex:this.pageIndex,idFactory:this.idFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,globalImageCache:this.globalImageCache,options:this.evaluatorOptions,pdfFunctionFactory:this.pdfFunctionFactory}),z=Promise.all([T,B]).then(([j])=>{const $=new m.OperatorList(C,y,this.pageIndex);return v.send("StartRenderPage",{transparency:N.hasBlendModes(this.resources),pageIndex:this.pageIndex,intent:C}),N.getOperatorList({stream:j,task:b,resources:this.resources,operatorList:$}).then(function(){return $})});return Promise.all([z,this._parsedAnnotations]).then(function([j,$]){if($.length===0)return j.flush(!0),{length:j.totalLength};const M=[];for(const q of $)X(q,C)&&M.push(q.getOperatorList(N,b,w).catch(function(K){return(0,g.warn)(`getOperatorList - ignoring annotation data during "${b.name}" task: "${K}".`),null}));return Promise.all(M).then(function(q){j.addOp(g.OPS.beginAnnotations,[]);for(const K of q)j.addOpList(K);return j.addOp(g.OPS.endAnnotations,[]),j.flush(!0),{length:j.totalLength}})})}extractTextContent({handler:v,task:y,normalizeWhitespace:b,sink:C,combineTextItems:w}){const T=this.pdfManager.ensure(this,"getContentStream"),B=this.loadResources(["ExtGState","XObject","Font"]);return Promise.all([T,B]).then(([Q])=>new u.PartialEvaluator({xref:this.xref,handler:v,pageIndex:this.pageIndex,idFactory:this.idFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,globalImageCache:this.globalImageCache,options:this.evaluatorOptions,pdfFunctionFactory:this.pdfFunctionFactory}).getTextContent({stream:Q,task:y,resources:this.resources,normalizeWhitespace:b,combineTextItems:w,sink:C}))}getAnnotationsData(v){return this._parsedAnnotations.then(function(y){const b=[];for(let C=0,w=y.length;C<w;C++)(!v||X(y[C],v))&&b.push(y[C].data);return b})}get annotations(){return(0,g.shadow)(this,"annotations",this._getInheritableProperty("Annots")||[])}get _parsedAnnotations(){const v=this.pdfManager.ensure(this,"annotations").then(()=>{const y=[];for(const b of this.annotations)y.push(H.AnnotationFactory.create(this.xref,b,this.pdfManager,this.idFactory).catch(function(C){return(0,g.warn)(`_parsedAnnotations: "${C}".`),null}));return Promise.all(y).then(function(b){return b.filter(C=>!!C)})});return(0,g.shadow)(this,"_parsedAnnotations",v)}}d.Page=W;const G=new Uint8Array([37,80,68,70,45]),P=new Uint8Array([115,116,97,114,116,120,114,101,102]),E=new Uint8Array([101,110,100,111,98,106]),A=1024,_="\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0",F=/^[1-9]\.[0-9]$/;function D(k,v,y=1024,b=!1){const C=v.length,w=k.peekBytes(y),T=w.length-C;if(T<=0)return!1;if(b){const B=C-1;let N=w.length-1;for(;N>=B;){let Q=0;for(;Q<C&&w[N-Q]===v[B-Q];)Q++;if(Q>=C)return k.pos+=N-B,!0;N--}}else{let B=0;for(;B<=T;){let N=0;for(;N<C&&w[B+N]===v[N];)N++;if(N>=C)return k.pos+=B,!0;B++}}return!1}class L{constructor(v,y){let b;if((0,J.isStream)(y))b=y;else if((0,g.isArrayBuffer)(y))b=new se.Stream(y);else throw new Error("PDFDocument: Unknown argument type");if(b.length<=0)throw new g.InvalidPDFException("The PDF file is empty, i.e. its size is zero bytes.");this.pdfManager=v,this.stream=b,this.xref=new O.XRef(b,v),this.pdfFunctionFactory=new Y.PDFFunctionFactory({xref:this.xref,isEvalSupported:v.evaluatorOptions.isEvalSupported}),this._pagePromises=[]}parse(v){this.setup(v);const y=this.catalog.catDict.get("Version");(0,J.isName)(y)&&(this.pdfFormatVersion=y.name);try{if(this.acroForm=this.catalog.catDict.get("AcroForm"),this.acroForm){this.xfa=this.acroForm.get("XFA");const b=this.acroForm.get("Fields");(!Array.isArray(b)||b.length===0)&&!this.xfa&&(this.acroForm=null)}}catch(b){if(b instanceof a.MissingDataException)throw b;(0,g.info)("Cannot fetch AcroForm entry; assuming no AcroForms are present"),this.acroForm=null}try{const b=this.catalog.catDict.get("Collection");(0,J.isDict)(b)&&b.getKeys().length>0&&(this.collection=b)}catch(b){if(b instanceof a.MissingDataException)throw b;(0,g.info)("Cannot fetch Collection dictionary.")}}get linearization(){let v=null;try{v=ie.Linearization.create(this.stream)}catch(y){if(y instanceof a.MissingDataException)throw y;(0,g.info)(y)}return(0,g.shadow)(this,"linearization",v)}get startXRef(){const v=this.stream;let y=0;if(this.linearization)v.reset(),D(v,E)&&(y=v.pos+6-v.start);else{const C=P.length;let w=!1,T=v.end;for(;!w&&T>0;)T-=1024-C,T<0&&(T=0),v.pos=T,w=D(v,P,1024,!0);if(w){v.skip(9);let B;do B=v.getByte();while((0,a.isWhiteSpace)(B));let N="";for(;B>=32&&B<=57;)N+=String.fromCharCode(B),B=v.getByte();y=parseInt(N,10),isNaN(y)&&(y=0)}}return(0,g.shadow)(this,"startXRef",y)}checkHeader(){const v=this.stream;if(v.reset(),!D(v,G))return;v.moveStart();const y=12;let b="",C;for(;(C=v.getByte())>32&&!(b.length>=y);)b+=String.fromCharCode(C);this.pdfFormatVersion||(this.pdfFormatVersion=b.substring(5))}parseStartXRef(){this.xref.setStartXRef(this.startXRef)}setup(v){this.xref.parse(v),this.catalog=new O.Catalog(this.pdfManager,this.xref)}get numPages(){const v=this.linearization,y=v?v.numPages:this.catalog.numPages;return(0,g.shadow)(this,"numPages",y)}get documentInfo(){const v={Title:g.isString,Author:g.isString,Subject:g.isString,Keywords:g.isString,Creator:g.isString,Producer:g.isString,CreationDate:g.isString,ModDate:g.isString,Trapped:J.isName};let y=this.pdfFormatVersion;(typeof y!="string"||!F.test(y))&&((0,g.warn)(`Invalid PDF header version number: ${y}`),y=null);const b={PDFFormatVersion:y,IsLinearized:!!this.linearization,IsAcroFormPresent:!!this.acroForm,IsXFAPresent:!!this.xfa,IsCollectionPresent:!!this.collection};let C;try{C=this.xref.trailer.get("Info")}catch(w){if(w instanceof a.MissingDataException)throw w;(0,g.info)("The document information dictionary is invalid.")}if((0,J.isDict)(C))for(const w of C.getKeys()){const T=C.get(w);if(v[w])v[w](T)?b[w]=typeof T!="string"?T:(0,g.stringToPDFString)(T):(0,g.info)(`Bad value in document info for "${w}".`);else if(typeof w=="string"){let B;if((0,g.isString)(T))B=(0,g.stringToPDFString)(T);else if((0,J.isName)(T)||(0,g.isNum)(T)||(0,g.isBool)(T))B=T;else{(0,g.info)(`Unsupported value in document info for (custom) "${w}".`);continue}b.Custom||(b.Custom=Object.create(null)),b.Custom[w]=B}}return(0,g.shadow)(this,"documentInfo",b)}get fingerprint(){let v;const y=this.xref.trailer.get("ID");Array.isArray(y)&&y[0]&&(0,g.isString)(y[0])&&y[0]!==_?v=(0,g.stringToBytes)(y[0]):v=(0,ee.calculateMD5)(this.stream.getByteRange(0,A),0,A);const b=[];for(let C=0,w=v.length;C<w;C++){const T=v[C].toString(16);b.push(T.padStart(2,"0"))}return(0,g.shadow)(this,"fingerprint",b.join(""))}_getLinearizationPage(v){const{catalog:y,linearization:b}=this,C=J.Ref.get(b.objectNumberFirst,0);return this.xref.fetchAsync(C).then(w=>{if((0,J.isDict)(w,"Page")||(0,J.isDict)(w)&&!w.has("Type")&&w.has("Contents"))return C&&!y.pageKidsCountCache.has(C)&&y.pageKidsCountCache.put(C,1),[w,C];throw new g.FormatError("The Linearization dictionary doesn't point to a valid Page dictionary.")}).catch(w=>((0,g.info)(w),y.getPageDict(v)))}getPage(v){if(this._pagePromises[v]!==void 0)return this._pagePromises[v];const{catalog:y,linearization:b}=this,C=b&&b.pageFirst===v?this._getLinearizationPage(v):y.getPageDict(v);return this._pagePromises[v]=C.then(([w,T])=>new W({pdfManager:this.pdfManager,xref:this.xref,pageIndex:v,pageDict:w,ref:T,fontCache:y.fontCache,builtInCMapCache:y.builtInCMapCache,globalImageCache:y.globalImageCache,pdfFunctionFactory:this.pdfFunctionFactory}))}checkFirstPage(){return this.getPage(0).catch(async v=>{if(v instanceof a.XRefEntryException)throw this._pagePromises.length=0,await this.cleanup(),new a.XRefParseException})}fontFallback(v,y){return this.catalog.fontFallback(v,y)}async cleanup(v=!1){return this.catalog?this.catalog.cleanup(v):(0,J.clearPrimitiveCaches)()}}d.PDFDocument=L},function(S,d,R){Object.defineProperty(d,"__esModule",{value:!0}),d.FileSpec=d.XRef=d.ObjectLoader=d.Catalog=void 0;var g=R(2),O=R(5),J=R(11),a=R(8),se=R(22),H=R(23),ee=R(24);function ie(G){return(0,O.isDict)(G)?G.get("D"):G}class m{constructor(P,E){if(this.pdfManager=P,this.xref=E,this.catDict=E.getCatalogObj(),!(0,O.isDict)(this.catDict))throw new g.FormatError("Catalog object is not a dictionary.");this.fontCache=new O.RefSetCache,this.builtInCMapCache=new Map,this.globalImageCache=new ee.GlobalImageCache,this.pageKidsCountCache=new O.RefSetCache}get metadata(){const P=this.catDict.getRaw("Metadata");if(!(0,O.isRef)(P))return(0,g.shadow)(this,"metadata",null);const E=!(this.xref.encrypt&&this.xref.encrypt.encryptMetadata),A=this.xref.fetch(P,E);let _;if(A&&(0,O.isDict)(A.dict)){const F=A.dict.get("Type"),D=A.dict.get("Subtype");if((0,O.isName)(F,"Metadata")&&(0,O.isName)(D,"XML"))try{_=(0,g.stringToUTF8String)((0,g.bytesToString)(A.getBytes()))}catch(L){if(L instanceof a.MissingDataException)throw L;(0,g.info)("Skipping invalid metadata.")}}return(0,g.shadow)(this,"metadata",_)}get toplevelPagesDict(){const P=this.catDict.get("Pages");if(!(0,O.isDict)(P))throw new g.FormatError("Invalid top-level pages dictionary.");return(0,g.shadow)(this,"toplevelPagesDict",P)}get documentOutline(){let P=null;try{P=this._readDocumentOutline()}catch(E){if(E instanceof a.MissingDataException)throw E;(0,g.warn)("Unable to read document outline.")}return(0,g.shadow)(this,"documentOutline",P)}_readDocumentOutline(){let P=this.catDict.get("Outlines");if(!(0,O.isDict)(P)||(P=P.getRaw("First"),!(0,O.isRef)(P)))return null;const E={items:[]},A=[{obj:P,parent:E}],_=new O.RefSet;_.put(P);const F=this.xref,D=new Uint8ClampedArray(3);for(;A.length>0;){const L=A.shift(),k=F.fetchIfRef(L.obj);if(k===null)continue;if(!k.has("Title"))throw new g.FormatError("Invalid outline item encountered.");const v={url:null,dest:null};m.parseDestDictionary({destDict:k,resultObj:v,docBaseUrl:this.pdfManager.docBaseUrl});const y=k.get("Title"),b=k.get("F")||0,C=k.getArray("C"),w=k.get("Count");let T=D;Array.isArray(C)&&C.length===3&&(C[0]!==0||C[1]!==0||C[2]!==0)&&(T=H.ColorSpace.singletons.rgb.getRgb(C,0));const B={dest:v.dest,url:v.url,unsafeUrl:v.unsafeUrl,newWindow:v.newWindow,title:(0,g.stringToPDFString)(y),color:T,count:Number.isInteger(w)?w:void 0,bold:!!(b&2),italic:!!(b&1),items:[]};L.parent.items.push(B),P=k.getRaw("First"),(0,O.isRef)(P)&&!_.has(P)&&(A.push({obj:P,parent:B}),_.put(P)),P=k.getRaw("Next"),(0,O.isRef)(P)&&!_.has(P)&&(A.push({obj:P,parent:L.parent}),_.put(P))}return E.items.length>0?E.items:null}get permissions(){let P=null;try{P=this._readPermissions()}catch(E){if(E instanceof a.MissingDataException)throw E;(0,g.warn)("Unable to read permissions.")}return(0,g.shadow)(this,"permissions",P)}_readPermissions(){const P=this.xref.trailer.get("Encrypt");if(!(0,O.isDict)(P))return null;let E=P.get("P");if(!(0,g.isNum)(E))return null;E+=2**32;const A=[];for(const _ in g.PermissionFlag){const F=g.PermissionFlag[_];E&F&&A.push(F)}return A}get numPages(){const P=this.toplevelPagesDict.get("Count");if(!Number.isInteger(P))throw new g.FormatError("Page count in top-level pages dictionary is not an integer.");return(0,g.shadow)(this,"numPages",P)}get destinations(){const P=this._readDests(),E=Object.create(null);if(P instanceof re){const A=P.getAll();for(const _ in A)E[_]=ie(A[_])}else P instanceof O.Dict&&P.forEach(function(A,_){_&&(E[A]=ie(_))});return(0,g.shadow)(this,"destinations",E)}getDestination(P){const E=this._readDests();return E instanceof re||E instanceof O.Dict?ie(E.get(P)||null):null}_readDests(){const P=this.catDict.get("Names");if(P&&P.has("Dests"))return new re(P.getRaw("Dests"),this.xref);if(this.catDict.has("Dests"))return this.catDict.get("Dests")}get pageLabels(){let P=null;try{P=this._readPageLabels()}catch(E){if(E instanceof a.MissingDataException)throw E;(0,g.warn)("Unable to read page labels.")}return(0,g.shadow)(this,"pageLabels",P)}_readPageLabels(){const P=this.catDict.getRaw("PageLabels");if(!P)return null;const E=new Array(this.numPages);let A=null,_="";const D=new U(P,this.xref).getAll();let L="",k=1;for(let v=0,y=this.numPages;v<y;v++){if(v in D){const b=D[v];if(!(0,O.isDict)(b))throw new g.FormatError("PageLabel is not a dictionary.");if(b.has("Type")&&!(0,O.isName)(b.get("Type"),"PageLabel"))throw new g.FormatError("Invalid type in PageLabel dictionary.");if(b.has("S")){const C=b.get("S");if(!(0,O.isName)(C))throw new g.FormatError("Invalid style in PageLabel dictionary.");A=C.name}else A=null;if(b.has("P")){const C=b.get("P");if(!(0,g.isString)(C))throw new g.FormatError("Invalid prefix in PageLabel dictionary.");_=(0,g.stringToPDFString)(C)}else _="";if(b.has("St")){const C=b.get("St");if(!(Number.isInteger(C)&&C>=1))throw new g.FormatError("Invalid start in PageLabel dictionary.");k=C}else k=1}switch(A){case"D":L=k;break;case"R":case"r":L=(0,a.toRomanNumerals)(k,A==="r");break;case"A":case"a":const b=26,T=A==="a"?97:65,B=k-1,N=String.fromCharCode(T+B%b),Q=[];for(let z=0,j=B/b|0;z<=j;z++)Q.push(N);L=Q.join("");break;default:if(A)throw new g.FormatError(`Invalid style "${A}" in PageLabel dictionary.`);L=""}E[v]=_+L,k++}return E}get pageLayout(){const P=this.catDict.get("PageLayout");let E="";if((0,O.isName)(P))switch(P.name){case"SinglePage":case"OneColumn":case"TwoColumnLeft":case"TwoColumnRight":case"TwoPageLeft":case"TwoPageRight":E=P.name}return(0,g.shadow)(this,"pageLayout",E)}get pageMode(){const P=this.catDict.get("PageMode");let E="UseNone";if((0,O.isName)(P))switch(P.name){case"UseNone":case"UseOutlines":case"UseThumbs":case"FullScreen":case"UseOC":case"UseAttachments":E=P.name}return(0,g.shadow)(this,"pageMode",E)}get viewerPreferences(){const P={HideToolbar:g.isBool,HideMenubar:g.isBool,HideWindowUI:g.isBool,FitWindow:g.isBool,CenterWindow:g.isBool,DisplayDocTitle:g.isBool,NonFullScreenPageMode:O.isName,Direction:O.isName,ViewArea:O.isName,ViewClip:O.isName,PrintArea:O.isName,PrintClip:O.isName,PrintScaling:O.isName,Duplex:O.isName,PickTrayByPDFSize:g.isBool,PrintPageRange:Array.isArray,NumCopies:Number.isInteger},E=this.catDict.get("ViewerPreferences");let A=null;if((0,O.isDict)(E))for(const _ in P){if(!E.has(_))continue;const F=E.get(_);if(!P[_](F)){(0,g.info)(`Bad value in ViewerPreferences for "${_}".`);continue}let D;switch(_){case"NonFullScreenPageMode":switch(F.name){case"UseNone":case"UseOutlines":case"UseThumbs":case"UseOC":D=F.name;break;default:D="UseNone"}break;case"Direction":switch(F.name){case"L2R":case"R2L":D=F.name;break;default:D="L2R"}break;case"ViewArea":case"ViewClip":case"PrintArea":case"PrintClip":switch(F.name){case"MediaBox":case"CropBox":case"BleedBox":case"TrimBox":case"ArtBox":D=F.name;break;default:D="CropBox"}break;case"PrintScaling":switch(F.name){case"None":case"AppDefault":D=F.name;break;default:D="AppDefault"}break;case"Duplex":switch(F.name){case"Simplex":case"DuplexFlipShortEdge":case"DuplexFlipLongEdge":D=F.name;break;default:D="None"}break;case"PrintPageRange":if(F.length%2!==0)break;F.every((v,y,b)=>Number.isInteger(v)&&v>0&&(y===0||v>=b[y-1])&&v<=this.numPages)&&(D=F);break;case"NumCopies":F>0&&(D=F);break;default:if(typeof F!="boolean")throw new g.FormatError(`viewerPreferences - expected a boolean value for: ${_}`);D=F}D!==void 0?(A||(A=Object.create(null)),A[_]=D):(0,g.info)(`Bad value in ViewerPreferences for "${_}".`)}return(0,g.shadow)(this,"viewerPreferences",A)}get openAction(){const P=this.catDict.get("OpenAction");let E=null;if((0,O.isDict)(P)){const A=new O.Dict(this.xref);A.set("A",P);const _={url:null,dest:null,action:null};m.parseDestDictionary({destDict:A,resultObj:_}),Array.isArray(_.dest)?(E||(E=Object.create(null)),E.dest=_.dest):_.action&&(E||(E=Object.create(null)),E.action=_.action)}else Array.isArray(P)&&(E||(E=Object.create(null)),E.dest=P);return(0,g.shadow)(this,"openAction",E)}get attachments(){const P=this.catDict.get("Names");let E=null;if(P&&P.has("EmbeddedFiles")){const _=new re(P.getRaw("EmbeddedFiles"),this.xref).getAll();for(const F in _){const D=new X(_[F],this.xref);E||(E=Object.create(null)),E[(0,g.stringToPDFString)(F)]=D.serializable}}return(0,g.shadow)(this,"attachments",E)}get javaScript(){const P=this.catDict.get("Names");let E=null;function A(F){const D=F.get("S");if(!(0,O.isName)(D,"JavaScript"))return;let L=F.get("JS");if((0,O.isStream)(L))L=(0,g.bytesToString)(L.getBytes());else if(!(0,g.isString)(L))return;E||(E=[]),E.push((0,g.stringToPDFString)(L))}if(P&&P.has("JavaScript")){const D=new re(P.getRaw("JavaScript"),this.xref).getAll();for(const L in D){const k=D[L];(0,O.isDict)(k)&&A(k)}}const _=this.catDict.get("OpenAction");return(0,O.isDict)(_)&&(0,O.isName)(_.get("S"),"JavaScript")&&A(_),(0,g.shadow)(this,"javaScript",E)}fontFallback(P,E){const A=[];return this.fontCache.forEach(function(_){A.push(_)}),Promise.all(A).then(_=>{for(const F of _)if(F.loadedName===P){F.fallback(E);return}})}cleanup(P=!1){(0,O.clearPrimitiveCaches)(),this.globalImageCache.clear(P),this.pageKidsCountCache.clear();const E=[];return this.fontCache.forEach(function(A){E.push(A)}),Promise.all(E).then(A=>{for(const{dict:_}of A)delete _.translated;this.fontCache.clear(),this.builtInCMapCache.clear()})}getPageDict(P){const E=(0,g.createPromiseCapability)(),A=[this.catDict.getRaw("Pages")],_=new O.RefSet,F=this.xref,D=this.pageKidsCountCache;let L,k=0;function v(){for(;A.length;){const y=A.pop();if((0,O.isRef)(y)){if(L=D.get(y),L>0&&k+L<P){k+=L;continue}if(_.has(y)){E.reject(new g.FormatError("Pages tree contains circular reference."));return}_.put(y),F.fetchAsync(y).then(function(C){if((0,O.isDict)(C,"Page")||(0,O.isDict)(C)&&!C.has("Kids")){P===k?(y&&!D.has(y)&&D.put(y,1),E.resolve([C,y])):(k++,v());return}A.push(C),v()},E.reject);return}if(!(0,O.isDict)(y)){E.reject(new g.FormatError("Page dictionary kid reference points to wrong type of object."));return}if(L=y.get("Count"),Number.isInteger(L)&&L>=0){const C=y.objId;if(C&&!D.has(C)&&D.put(C,L),k+L<=P){k+=L;continue}}const b=y.get("Kids");if(!Array.isArray(b)){if((0,O.isName)(y.get("Type"),"Page")||!y.has("Type")&&y.has("Contents")){if(k===P){E.resolve([y,null]);return}k++;continue}E.reject(new g.FormatError("Page dictionary kids object is not an array."));return}for(let C=b.length-1;C>=0;C--)A.push(b[C])}E.reject(new Error(`Page index ${P} not found.`))}return v(),E.promise}getPageIndex(P){const E=this.xref;function A(D){let L=0,k;return E.fetchAsync(D).then(function(v){if((0,O.isRefsEqual)(D,P)&&!(0,O.isDict)(v,"Page")&&!((0,O.isDict)(v)&&!v.has("Type")&&v.has("Contents")))throw new g.FormatError("The reference does not point to a /Page dictionary.");if(!v)return null;if(!(0,O.isDict)(v))throw new g.FormatError("Node must be a dictionary.");return k=v.getRaw("Parent"),v.getAsync("Parent")}).then(function(v){if(!v)return null;if(!(0,O.isDict)(v))throw new g.FormatError("Parent must be a dictionary.");return v.getAsync("Kids")}).then(function(v){if(!v)return null;const y=[];let b=!1;for(let C=0,w=v.length;C<w;C++){const T=v[C];if(!(0,O.isRef)(T))throw new g.FormatError("Kid must be a reference.");if((0,O.isRefsEqual)(T,D)){b=!0;break}y.push(E.fetchAsync(T).then(function(B){if(!(0,O.isDict)(B))throw new g.FormatError("Kid node must be a dictionary.");B.has("Count")?L+=B.get("Count"):L++}))}if(!b)throw new g.FormatError("Kid reference not found in parent's kids.");return Promise.all(y).then(function(){return[L,k]})})}let _=0;function F(D){return A(D).then(function(L){if(!L)return _;const[k,v]=L;return _+=k,F(v)})}return F(P)}static parseDestDictionary(P){function E(y){return y.startsWith("www.")?`http://${y}`:y}function A(y){try{return(0,g.stringToUTF8String)(y)}catch{return y}}const _=P.destDict;if(!(0,O.isDict)(_)){(0,g.warn)("parseDestDictionary: `destDict` must be a dictionary.");return}const F=P.resultObj;if(typeof F!="object"){(0,g.warn)("parseDestDictionary: `resultObj` must be an object.");return}const D=P.docBaseUrl||null;let L=_.get("A"),k,v;if(!(0,O.isDict)(L)&&_.has("Dest")&&(L=_.get("Dest")),(0,O.isDict)(L)){const y=L.get("S");if(!(0,O.isName)(y)){(0,g.warn)("parseDestDictionary: Invalid type in Action dictionary.");return}const b=y.name;switch(b){case"URI":k=L.get("URI"),(0,O.isName)(k)?k="/"+k.name:(0,g.isString)(k)&&(k=E(k));break;case"GoTo":v=L.get("D");break;case"Launch":case"GoToR":const C=L.get("F");(0,O.isDict)(C)?k=C.get("F")||null:(0,g.isString)(C)&&(k=C);let w=L.get("D");if(w&&((0,O.isName)(w)&&(w=w.name),(0,g.isString)(k))){const z=k.split("#")[0];(0,g.isString)(w)?k=z+"#"+w:Array.isArray(w)&&(k=z+"#"+JSON.stringify(w))}const T=L.get("NewWindow");(0,g.isBool)(T)&&(F.newWindow=T);break;case"Named":const B=L.get("N");(0,O.isName)(B)&&(F.action=B.name);break;case"JavaScript":const N=L.get("JS");let Q;if((0,O.isStream)(N)?Q=(0,g.bytesToString)(N.getBytes()):(0,g.isString)(N)&&(Q=N),Q){const z=["app.launchURL","window.open"],$=new RegExp("^\\s*("+z.join("|").split(".").join("\\.")+`)\\((?:'|")([^'"]*)(?:'|")(?:,\\s*(\\w+)\\)|\\))`,"i").exec((0,g.stringToPDFString)(Q));if($&&$[2]){k=$[2],$[3]==="true"&&$[1]==="app.launchURL"&&(F.newWindow=!0);break}}default:(0,g.warn)(`parseDestDictionary: unsupported action type "${b}".`);break}}else _.has("Dest")&&(v=_.get("Dest"));if((0,g.isString)(k)){k=A(k);const y=(0,g.createValidAbsoluteUrl)(k,D);y&&(F.url=y.href),F.unsafeUrl=k}v&&((0,O.isName)(v)&&(v=v.name),((0,g.isString)(v)||Array.isArray(v))&&(F.dest=v))}}d.Catalog=m;var u=function(){function P(E,A){this.stream=E,this.pdfManager=A,this.entries=[],this.xrefstms=Object.create(null),this._cacheMap=new Map,this.stats={streamTypes:Object.create(null),fontTypes:Object.create(null)}}return P.prototype={setStartXRef:function(A){this.startXRefQueue=[A]},parse:function(A){var _;A?((0,g.warn)("Indexing all PDF objects"),_=this.indexObjects()):_=this.readXRef(),_.assignXref(this),this.trailer=_;let F;try{F=_.get("Encrypt")}catch(v){if(v instanceof a.MissingDataException)throw v;(0,g.warn)(`XRef.parse - Invalid "Encrypt" reference: "${v}".`)}if((0,O.isDict)(F)){var D=_.get("ID"),L=D&&D.length?D[0]:"";F.suppressEncryption=!0,this.encrypt=new se.CipherTransformFactory(F,L,this.pdfManager.password)}let k;try{k=_.get("Root")}catch(v){if(v instanceof a.MissingDataException)throw v;(0,g.warn)(`XRef.parse - Invalid "Root" reference: "${v}".`)}if((0,O.isDict)(k)&&k.has("Pages"))this.root=k;else throw A?new g.FormatError("Invalid root reference"):new a.XRefParseException},processXRefTable:function(A){"tableState"in this||(this.tableState={entryNum:0,streamPos:A.lexer.stream.pos,parserBuf1:A.buf1,parserBuf2:A.buf2});var _=this.readXRefTable(A);if(!(0,O.isCmd)(_,"trailer"))throw new g.FormatError("Invalid XRef table: could not find trailer dictionary");var F=A.getObj();if(!(0,O.isDict)(F)&&F.dict&&(F=F.dict),!(0,O.isDict)(F))throw new g.FormatError("Invalid XRef table: could not parse trailer dictionary");return delete this.tableState,F},readXRefTable:function(A){var _=A.lexer.stream,F=this.tableState;_.pos=F.streamPos,A.buf1=F.parserBuf1,A.buf2=F.parserBuf2;for(var D;;){if(!("firstEntryNum"in F)||!("entryCount"in F)){if((0,O.isCmd)(D=A.getObj(),"trailer"))break;F.firstEntryNum=D,F.entryCount=A.getObj()}var L=F.firstEntryNum,k=F.entryCount;if(!Number.isInteger(L)||!Number.isInteger(k))throw new g.FormatError("Invalid XRef table: wrong types in subsection header");for(var v=F.entryNum;v<k;v++){F.streamPos=_.pos,F.entryNum=v,F.parserBuf1=A.buf1,F.parserBuf2=A.buf2;var y={};y.offset=A.getObj(),y.gen=A.getObj();var b=A.getObj();if(b instanceof O.Cmd)switch(b.cmd){case"f":y.free=!0;break;case"n":y.uncompressed=!0;break}if(!Number.isInteger(y.offset)||!Number.isInteger(y.gen)||!(y.free||y.uncompressed))throw new g.FormatError(`Invalid entry in XRef subsection: ${L}, ${k}`);v===0&&y.free&&L===1&&(L=0),this.entries[v+L]||(this.entries[v+L]=y)}F.entryNum=0,F.streamPos=_.pos,F.parserBuf1=A.buf1,F.parserBuf2=A.buf2,delete F.firstEntryNum,delete F.entryCount}if(this.entries[0]&&!this.entries[0].free)throw new g.FormatError("Invalid XRef table: unexpected first object");return D},processXRefStream:function(A){if(!("streamState"in this)){var _=A.dict,F=_.get("W"),D=_.get("Index");D||(D=[0,_.get("Size")]),this.streamState={entryRanges:D,byteWidths:F,entryNum:0,streamPos:A.pos}}return this.readXRefStream(A),delete this.streamState,A.dict},readXRefStream:function(A){var _,F,D=this.streamState;A.pos=D.streamPos;for(var L=D.byteWidths,k=L[0],v=L[1],y=L[2],b=D.entryRanges;b.length>0;){var C=b[0],w=b[1];if(!Number.isInteger(C)||!Number.isInteger(w))throw new g.FormatError(`Invalid XRef range fields: ${C}, ${w}`);if(!Number.isInteger(k)||!Number.isInteger(v)||!Number.isInteger(y))throw new g.FormatError(`Invalid XRef entry fields length: ${C}, ${w}`);for(_=D.entryNum;_<w;++_){D.entryNum=_,D.streamPos=A.pos;var T=0,B=0,N=0;for(F=0;F<k;++F)T=T<<8|A.getByte();for(k===0&&(T=1),F=0;F<v;++F)B=B<<8|A.getByte();for(F=0;F<y;++F)N=N<<8|A.getByte();var Q={};switch(Q.offset=B,Q.gen=N,T){case 0:Q.free=!0;break;case 1:Q.uncompressed=!0;break;case 2:break;default:throw new g.FormatError(`Invalid XRef entry type: ${T}`)}this.entries[C+_]||(this.entries[C+_]=Q)}D.entryNum=0,D.streamPos=A.pos,b.splice(0,2)}},indexObjects:function(){var A=9,_=10,F=13,D=32,L=37,k=60;function v(he,de){for(var ve="",me=he[de];me!==_&&me!==F&&me!==k&&!(++de>=he.length);)ve+=String.fromCharCode(me),me=he[de];return ve}function y(he,de,ve){for(var me=ve.length,Se=he.length,Ce=0;de<Se;){for(var xe=0;xe<me&&he[de+xe]===ve[xe];)++xe;if(xe>=me)break;de++,Ce++}return Ce}var b=/^(\d+)\s+(\d+)\s+obj\b/;const C=/\bendobj[\b\s]$/,w=/\s+(\d+\s+\d+\s+obj[\b\s<])$/,T=25;var B=new Uint8Array([116,114,97,105,108,101,114]),N=new Uint8Array([115,116,97,114,116,120,114,101,102]);const Q=new Uint8Array([111,98,106]);var z=new Uint8Array([47,88,82,101,102]);this.entries.length=0;var j=this.stream;j.pos=0;for(var $=j.getBytes(),M=j.start,q=$.length,K=[],Z=[];M<q;){var te=$[M];if(te===A||te===_||te===F||te===D){++M;continue}if(te===L){do{if(++M,M>=q)break;te=$[M]}while(te!==_&&te!==F);continue}var oe=v($,M),ae;if(oe.startsWith("xref")&&(oe.length===4||/\s/.test(oe[4])))M+=y($,M,B),K.push(M),M+=y($,M,N);else if(ae=b.exec(oe)){const he=ae[1]|0,de=ae[2]|0;(!this.entries[he]||this.entries[he].gen===de)&&(this.entries[he]={offset:M-j.start,gen:de,uncompressed:!0});let ve,me=M+oe.length;for(;me<$.length;){const Ce=me+y($,me,Q)+4;ve=Ce-M;const xe=Math.max(Ce-T,me),ge=(0,g.bytesToString)($.subarray(xe,Ce));if(C.test(ge))break;{const Ae=w.exec(ge);if(Ae&&Ae[1]){(0,g.warn)('indexObjects: Found new "obj" inside of another "obj", caused by missing "endobj" -- trying to recover.'),ve-=Ae[1].length;break}}me=Ce}const Se=$.subarray(M,M+ve);var ce=y(Se,0,z);ce<ve&&Se[ce+5]<64&&(Z.push(M-j.start),this.xrefstms[M-j.start]=1),M+=ve}else oe.startsWith("trailer")&&(oe.length===7||/\s/.test(oe[7]))?(K.push(M),M+=y($,M,N)):M+=oe.length+1}var fe,ne;for(fe=0,ne=Z.length;fe<ne;++fe)this.startXRefQueue.push(Z[fe]),this.readXRef(!0);let le;for(fe=0,ne=K.length;fe<ne;++fe){j.pos=K[fe];const he=new J.Parser({lexer:new J.Lexer(j),xref:this,allowStreams:!0,recoveryMode:!0});var ue=he.getObj();if(!(0,O.isCmd)(ue,"trailer"))continue;const de=he.getObj();if(!(0,O.isDict)(de))continue;let ve;try{ve=de.get("Root")}catch(me){if(me instanceof a.MissingDataException)throw me;continue}if(!(!(0,O.isDict)(ve)||!ve.has("Pages"))){if(de.has("ID"))return de;le=de}}if(le)return le;throw new g.InvalidPDFException("Invalid PDF structure.")},readXRef:function(A){var _=this.stream;const F=Object.create(null);try{for(;this.startXRefQueue.length;){var D=this.startXRefQueue[0];if(F[D]){(0,g.warn)("readXRef - skipping XRef table since it was already parsed."),this.startXRefQueue.shift();continue}F[D]=!0,_.pos=D+_.start;const y=new J.Parser({lexer:new J.Lexer(_),xref:this,allowStreams:!0});var L=y.getObj(),k;if((0,O.isCmd)(L,"xref")){if(k=this.processXRefTable(y),this.topDict||(this.topDict=k),L=k.get("XRefStm"),Number.isInteger(L)){var v=L;v in this.xrefstms||(this.xrefstms[v]=1,this.startXRefQueue.push(v))}}else if(Number.isInteger(L)){if(!Number.isInteger(y.getObj())||!(0,O.isCmd)(y.getObj(),"obj")||!(0,O.isStream)(L=y.getObj()))throw new g.FormatError("Invalid XRef stream");if(k=this.processXRefStream(L),this.topDict||(this.topDict=k),!k)throw new g.FormatError("Failed to read XRef stream")}else throw new g.FormatError("Invalid XRef stream header");L=k.get("Prev"),Number.isInteger(L)?this.startXRefQueue.push(L):(0,O.isRef)(L)&&this.startXRefQueue.push(L.num),this.startXRefQueue.shift()}return this.topDict}catch(y){if(y instanceof a.MissingDataException)throw y;(0,g.info)("(while reading XRef): "+y)}if(!A)throw new a.XRefParseException},getEntry:function(A){var _=this.entries[A];return _&&!_.free&&_.offset?_:null},fetchIfRef:function(A,_){return A instanceof O.Ref?this.fetch(A,_):A},fetch:function(A,_){if(!(A instanceof O.Ref))throw new Error("ref object is not a reference");const F=A.num,D=this._cacheMap.get(F);if(D!==void 0)return D instanceof O.Dict&&!D.objId&&(D.objId=A.toString()),D;let L=this.getEntry(F);return L===null?(this._cacheMap.set(F,L),L):(L.uncompressed?L=this.fetchUncompressed(A,L,_):L=this.fetchCompressed(A,L,_),(0,O.isDict)(L)?L.objId=A.toString():(0,O.isStream)(L)&&(L.dict.objId=A.toString()),L)},fetchUncompressed(E,A,_=!1){var F=E.gen,D=E.num;if(A.gen!==F)throw new a.XRefEntryException(`Inconsistent generation in XRef: ${E}`);var L=this.stream.makeSubStream(A.offset+this.stream.start);const k=new J.Parser({lexer:new J.Lexer(L),xref:this,allowStreams:!0});var v=k.getObj(),y=k.getObj(),b=k.getObj();if(v!==D||y!==F||!(b instanceof O.Cmd))throw new a.XRefEntryException(`Bad (uncompressed) XRef entry: ${E}`);if(b.cmd!=="obj"){if(b.cmd.startsWith("obj")&&(D=parseInt(b.cmd.substring(3),10),!Number.isNaN(D)))return D;throw new a.XRefEntryException(`Bad (uncompressed) XRef entry: ${E}`)}return this.encrypt&&!_?A=k.getObj(this.encrypt.createCipherTransform(D,F)):A=k.getObj(),(0,O.isStream)(A)||this._cacheMap.set(D,A),A},fetchCompressed(E,A,_=!1){const F=A.offset,D=this.fetch(O.Ref.get(F,0));if(!(0,O.isStream)(D))throw new g.FormatError("bad ObjStm stream");const L=D.dict.get("First"),k=D.dict.get("N");if(!Number.isInteger(L)||!Number.isInteger(k))throw new g.FormatError("invalid first and n parameters for ObjStm stream");const v=new J.Parser({lexer:new J.Lexer(D),xref:this,allowStreams:!0}),y=new Array(k);for(let C=0;C<k;++C){const w=v.getObj();if(!Number.isInteger(w))throw new g.FormatError(`invalid object number in the ObjStm stream: ${w}`);const T=v.getObj();if(!Number.isInteger(T))throw new g.FormatError(`invalid object offset in the ObjStm stream: ${T}`);y[C]=w}const b=new Array(k);for(let C=0;C<k;++C){const w=v.getObj();if(b[C]=w,v.buf1 instanceof O.Cmd&&v.buf1.cmd==="endobj"&&v.shift(),(0,O.isStream)(w))continue;const T=y[C],B=this.entries[T];B&&B.offset===F&&B.gen===C&&this._cacheMap.set(T,w)}if(A=b[A.gen],A===void 0)throw new a.XRefEntryException(`Bad (compressed) XRef entry: ${E}`);return A},async fetchIfRefAsync(E,A){return E instanceof O.Ref?this.fetchAsync(E,A):E},async fetchAsync(E,A){try{return this.fetch(E,A)}catch(_){if(!(_ instanceof a.MissingDataException))throw _;return await this.pdfManager.requestRange(_.begin,_.end),this.fetchAsync(E,A)}},getCatalogObj:function(){return this.root}},P}();d.XRef=u;class Y{constructor(P,E,A){this.constructor===Y&&(0,g.unreachable)("Cannot initialize NameOrNumberTree."),this.root=P,this.xref=E,this._type=A}getAll(){const P=Object.create(null);if(!this.root)return P;const E=this.xref,A=new O.RefSet;A.put(this.root);const _=[this.root];for(;_.length>0;){const F=E.fetchIfRef(_.shift());if(!(0,O.isDict)(F))continue;if(F.has("Kids")){const L=F.get("Kids");for(let k=0,v=L.length;k<v;k++){const y=L[k];if(A.has(y))throw new g.FormatError(`Duplicate entry in "${this._type}" tree.`);_.push(y),A.put(y)}continue}const D=F.get(this._type);if(Array.isArray(D))for(let L=0,k=D.length;L<k;L+=2)P[E.fetchIfRef(D[L])]=E.fetchIfRef(D[L+1])}return P}get(P){if(!this.root)return null;const E=this.xref;let A=E.fetchIfRef(this.root),_=0;const F=10;for(;A.has("Kids");){if(++_>F)return(0,g.warn)(`Search depth limit reached for "${this._type}" tree.`),null;const L=A.get("Kids");if(!Array.isArray(L))return null;let k=0,v=L.length-1;for(;k<=v;){const y=k+v>>1,C=E.fetchIfRef(L[y]).get("Limits");if(P<E.fetchIfRef(C[0]))v=y-1;else if(P>E.fetchIfRef(C[1]))k=y+1;else{A=E.fetchIfRef(L[y]);break}}if(k>v)return null}const D=A.get(this._type);if(Array.isArray(D)){let L=0,k=D.length-2;for(;L<=k;){const v=L+k>>1,y=v+(v&1),b=E.fetchIfRef(D[y]);if(P<b)k=y-2;else if(P>b)L=y+2;else return E.fetchIfRef(D[y+1])}(0,g.info)(`Falling back to an exhaustive search, for key "${P}", in "${this._type}" tree.`);for(let v=0,y=D.length;v<y;v+=2)if(E.fetchIfRef(D[v])===P)return(0,g.warn)(`The "${P}" key was found at an incorrect, i.e. out-of-order, position in "${this._type}" tree.`),E.fetchIfRef(D[v+1])}return null}}class re extends Y{constructor(P,E){super(P,E,"Names")}}class U extends Y{constructor(P,E){super(P,E,"Nums")}}var X=function(){function P(A,_){!A||!(0,O.isDict)(A)||(this.xref=_,this.root=A,A.has("FS")&&(this.fs=A.get("FS")),this.description=A.has("Desc")?(0,g.stringToPDFString)(A.get("Desc")):"",A.has("RF")&&(0,g.warn)("Related file specifications are not supported"),this.contentAvailable=!0,A.has("EF")||(this.contentAvailable=!1,(0,g.warn)("Non-embedded file specifications are not supported")))}function E(A){return A.has("UF")?A.get("UF"):A.has("F")?A.get("F"):A.has("Unix")?A.get("Unix"):A.has("Mac")?A.get("Mac"):A.has("DOS")?A.get("DOS"):null}return P.prototype={get filename(){if(!this._filename&&this.root){var A=E(this.root)||"unnamed";this._filename=(0,g.stringToPDFString)(A).replace(/\\\\/g,"\\").replace(/\\\//g,"/").replace(/\\/g,"/")}return this._filename},get content(){if(!this.contentAvailable)return null;!this.contentRef&&this.root&&(this.contentRef=E(this.root.get("EF")));var A=null;if(this.contentRef){var _=this.xref,F=_.fetchIfRef(this.contentRef);F&&(0,O.isStream)(F)?A=F.getBytes():(0,g.warn)("Embedded file specification points to non-existing/invalid content")}else(0,g.warn)("Embedded file specification does not have a content");return A},get serializable(){return{filename:this.filename,content:this.content}}},P}();d.FileSpec=X;const W=function(){function G(A){return A instanceof O.Ref||A instanceof O.Dict||Array.isArray(A)||(0,O.isStream)(A)}function P(A,_){if(A instanceof O.Dict||(0,O.isStream)(A)){const F=A instanceof O.Dict?A:A.dict,D=F.getKeys();for(let L=0,k=D.length;L<k;L++){const v=F.getRaw(D[L]);G(v)&&_.push(v)}}else if(Array.isArray(A))for(let F=0,D=A.length;F<D;F++){const L=A[F];G(L)&&_.push(L)}}function E(A,_,F){this.dict=A,this.keys=_,this.xref=F,this.refSet=null}return E.prototype={async load(){if(!this.xref.stream.allChunksLoaded||this.xref.stream.allChunksLoaded())return;const{keys:A,dict:_}=this;this.refSet=new O.RefSet;const F=[];for(let D=0,L=A.length;D<L;D++){const k=_.getRaw(A[D]);k!==void 0&&F.push(k)}return this._walk(F)},async _walk(A){const _=[],F=[];for(;A.length;){let D=A.pop();if(D instanceof O.Ref){if(this.refSet.has(D))continue;try{this.refSet.put(D),D=this.xref.fetch(D)}catch(L){if(!(L instanceof a.MissingDataException))throw L;_.push(D),F.push({begin:L.begin,end:L.end})}}if(D&&D.getBaseStreams){const L=D.getBaseStreams();let k=!1;for(let v=0,y=L.length;v<y;v++){const b=L[v];b.allChunksLoaded&&!b.allChunksLoaded()&&(k=!0,F.push({begin:b.start,end:b.end}))}k&&_.push(D)}P(D,A)}if(F.length){await this.xref.stream.manager.requestRanges(F);for(let D=0,L=_.length;D<L;D++){const k=_[D];k instanceof O.Ref&&this.refSet.remove(k)}return this._walk(_)}this.refSet=null}},E}();d.ObjectLoader=W},function(S,d,R){Object.defineProperty(d,"__esModule",{value:!0}),d.Parser=d.Linearization=d.Lexer=void 0;var g=R(12),O=R(2),J=R(5),a=R(8),se=R(13),H=R(15),ee=R(18),ie=R(20);const m=1e3,u=5552;function Y(P){const E=P.length;let A=1,_=0;for(let F=0;F<E;++F)A+=P[F]&255,_+=A;return _%65521<<16|A%65521}class re{constructor({lexer:E,xref:A,allowStreams:_=!1,recoveryMode:F=!1}){this.lexer=E,this.xref=A,this.allowStreams=_,this.recoveryMode=F,this.imageCache=Object.create(null),this.refill()}refill(){this.buf1=this.lexer.getObj(),this.buf2=this.lexer.getObj()}shift(){this.buf2 instanceof J.Cmd&&this.buf2.cmd==="ID"?(this.buf1=this.buf2,this.buf2=null):(this.buf1=this.buf2,this.buf2=this.lexer.getObj())}tryShift(){try{return this.shift(),!0}catch(E){if(E instanceof a.MissingDataException)throw E;return!1}}getObj(E=null){const A=this.buf1;if(this.shift(),A instanceof J.Cmd)switch(A.cmd){case"BI":return this.makeInlineImage(E);case"[":const _=[];for(;!(0,J.isCmd)(this.buf1,"]")&&!(0,J.isEOF)(this.buf1);)_.push(this.getObj(E));if((0,J.isEOF)(this.buf1)){if(!this.recoveryMode)throw new O.FormatError("End of file inside array");return _}return this.shift(),_;case"<<":const F=new J.Dict(this.xref);for(;!(0,J.isCmd)(this.buf1,">>")&&!(0,J.isEOF)(this.buf1);){if(!(0,J.isName)(this.buf1)){(0,O.info)("Malformed dictionary: key must be a name object"),this.shift();continue}const D=this.buf1.name;if(this.shift(),(0,J.isEOF)(this.buf1))break;F.set(D,this.getObj(E))}if((0,J.isEOF)(this.buf1)){if(!this.recoveryMode)throw new O.FormatError("End of file inside dictionary");return F}return(0,J.isCmd)(this.buf2,"stream")?this.allowStreams?this.makeStream(F,E):F:(this.shift(),F);default:return A}if(Number.isInteger(A)){if(Number.isInteger(this.buf1)&&(0,J.isCmd)(this.buf2,"R")){const _=J.Ref.get(A,this.buf1);return this.shift(),this.shift(),_}return A}return typeof A=="string"&&E?E.decryptString(A):A}findDefaultInlineStreamEnd(E){const y=E.pos;let b=0,C,w;for(;(C=E.getByte())!==-1;)if(b===0)b=C===69?1:0;else if(b===1)b=C===73?2:0;else if((0,O.assert)(b===2,"findDefaultInlineStreamEnd - invalid state."),C===32||C===10||C===13){w=E.pos;const B=E.peekBytes(10);for(let N=0,Q=B.length;N<Q;N++)if(C=B[N],!(C===0&&B[N+1]!==0)&&C!==10&&C!==13&&(C<32||C>127)){b=0;break}if(b===2)break}else b=0;C===-1&&((0,O.warn)("findDefaultInlineStreamEnd: Reached the end of the stream without finding a valid EI marker"),w&&((0,O.warn)('... trying to recover by using the last "EI" occurrence.'),E.skip(-(E.pos-w))));let T=4;return E.skip(-T),C=E.peekByte(),E.skip(T),(0,a.isWhiteSpace)(C)||T--,E.pos-T-y}findDCTDecodeInlineStreamEnd(E){const A=E.pos;let _=!1,F,D;for(;(F=E.getByte())!==-1;)if(F===255){switch(E.getByte()){case 0:break;case 255:E.skip(-1);break;case 217:_=!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:D=E.getUint16(),D>2?E.skip(D-2):E.skip(-2);break}if(_)break}const L=E.pos-A;return F===-1?((0,O.warn)("Inline DCTDecode image stream: EOI marker not found, searching for /EI/ instead."),E.skip(-L),this.findDefaultInlineStreamEnd(E)):(this.inlineStreamSkipEI(E),L)}findASCII85DecodeInlineStreamEnd(E){const F=E.pos;let D;for(;(D=E.getByte())!==-1;)if(D===126){const k=E.pos;for(D=E.peekByte();(0,a.isWhiteSpace)(D);)E.skip(),D=E.peekByte();if(D===62){E.skip();break}if(E.pos>k){const v=E.peekBytes(2);if(v[0]===69&&v[1]===73)break}}const L=E.pos-F;return D===-1?((0,O.warn)("Inline ASCII85Decode image stream: EOD marker not found, searching for /EI/ instead."),E.skip(-L),this.findDefaultInlineStreamEnd(E)):(this.inlineStreamSkipEI(E),L)}findASCIIHexDecodeInlineStreamEnd(E){const _=E.pos;let F;for(;(F=E.getByte())!==-1&&F!==62;);const D=E.pos-_;return F===-1?((0,O.warn)("Inline ASCIIHexDecode image stream: EOD marker not found, searching for /EI/ instead."),E.skip(-D),this.findDefaultInlineStreamEnd(E)):(this.inlineStreamSkipEI(E),D)}inlineStreamSkipEI(E){let F=0,D;for(;(D=E.getByte())!==-1;)if(F===0)F=D===69?1:0;else if(F===1)F=D===73?2:0;else if(F===2)break}makeInlineImage(E){const A=this.lexer,_=A.stream,F=new J.Dict(this.xref);let D;for(;!(0,J.isCmd)(this.buf1,"ID")&&!(0,J.isEOF)(this.buf1);){if(!(0,J.isName)(this.buf1))throw new O.FormatError("Dictionary key must be a name object");const w=this.buf1.name;if(this.shift(),(0,J.isEOF)(this.buf1))break;F.set(w,this.getObj(E))}A.beginInlineImagePos!==-1&&(D=_.pos-A.beginInlineImagePos);const L=F.get("Filter","F");let k;if((0,J.isName)(L))k=L.name;else if(Array.isArray(L)){const w=this.xref.fetchIfRef(L[0]);(0,J.isName)(w)&&(k=w.name)}const v=_.pos;let y;k==="DCTDecode"||k==="DCT"?y=this.findDCTDecodeInlineStreamEnd(_):k==="ASCII85Decode"||k==="A85"?y=this.findASCII85DecodeInlineStreamEnd(_):k==="ASCIIHexDecode"||k==="AHx"?y=this.findASCIIHexDecodeInlineStreamEnd(_):y=this.findDefaultInlineStreamEnd(_);let b=_.makeSubStream(v,y,F),C;if(y<m&&D<u){const w=b.getBytes();b.reset();const T=_.pos;_.pos=A.beginInlineImagePos;const B=_.getBytes(D);_.pos=T,C=Y(w)+"_"+Y(B);const N=this.imageCache[C];if(N!==void 0)return this.buf2=J.Cmd.get("EI"),this.shift(),N.reset(),N}return E&&(b=E.createStream(b,y)),b=this.filter(b,F,y),b.dict=F,C!==void 0&&(b.cacheKey=`inline_${y}_${C}`,this.imageCache[C]=b),this.buf2=J.Cmd.get("EI"),this.shift(),b}_findStreamLength(E,A){const{stream:_}=this.lexer;_.pos=E;const F=2048,D=A.length;for(;_.pos<_.end;){const L=_.peekBytes(F),k=L.length-D;if(k<=0)break;let v=0;for(;v<k;){let y=0;for(;y<D&&L[v+y]===A[y];)y++;if(y>=D)return _.pos+=v,_.pos-E;v++}_.pos+=k}return-1}makeStream(E,A){const _=this.lexer;let F=_.stream;_.skipToNextLine();const D=F.pos-1;let L=E.get("Length");if(Number.isInteger(L)||((0,O.info)(`Bad length "${L}" in stream`),L=0),F.pos=D+L,_.nextChar(),this.tryShift()&&(0,J.isCmd)(this.buf2,"endstream"))this.shift();else{const k=new Uint8Array([101,110,100,115,116,114,101,97,109]);let v=this._findStreamLength(D,k);if(v<0){for(let b=1;b<=1;b++){const C=k.length-b,w=k.slice(0,C),T=this._findStreamLength(D,w);if(T>=0){const B=F.peekBytes(C+1)[C];if(!(0,a.isWhiteSpace)(B))break;(0,O.info)(`Found "${(0,O.bytesToString)(w)}" when searching for endstream command.`),v=T;break}}if(v<0)throw new O.FormatError("Missing endstream command.")}L=v,_.nextChar(),this.shift(),this.shift()}return this.shift(),F=F.makeSubStream(D,L,E),A&&(F=A.createStream(F,L)),F=this.filter(F,E,L),F.dict=E,F}filter(E,A,_){let F=A.get("Filter","F"),D=A.get("DecodeParms","DP");if((0,J.isName)(F))return Array.isArray(D)&&(0,O.warn)("/DecodeParms should not contain an Array, when /Filter contains a Name."),this.makeFilter(E,F.name,_,D);let L=_;if(Array.isArray(F)){const k=F,v=D;for(let y=0,b=k.length;y<b;++y){if(F=this.xref.fetchIfRef(k[y]),!(0,J.isName)(F))throw new O.FormatError(`Bad filter name "${F}"`);D=null,Array.isArray(v)&&y in v&&(D=this.xref.fetchIfRef(v[y])),E=this.makeFilter(E,F.name,L,D),L=null}}return E}makeFilter(E,A,_,F){if(_===0)return(0,O.warn)(`Empty "${A}" stream.`),new g.NullStream;try{const D=this.xref.stats.streamTypes;if(A==="FlateDecode"||A==="Fl")return D[O.StreamType.FLATE]=!0,F?new g.PredictorStream(new g.FlateStream(E,_),_,F):new g.FlateStream(E,_);if(A==="LZWDecode"||A==="LZW"){D[O.StreamType.LZW]=!0;let L=1;return F?(F.has("EarlyChange")&&(L=F.get("EarlyChange")),new g.PredictorStream(new g.LZWStream(E,_,L),_,F)):new g.LZWStream(E,_,L)}return A==="DCTDecode"||A==="DCT"?(D[O.StreamType.DCT]=!0,new ee.JpegStream(E,_,E.dict,F)):A==="JPXDecode"||A==="JPX"?(D[O.StreamType.JPX]=!0,new ie.JpxStream(E,_,E.dict,F)):A==="ASCII85Decode"||A==="A85"?(D[O.StreamType.A85]=!0,new g.Ascii85Stream(E,_)):A==="ASCIIHexDecode"||A==="AHx"?(D[O.StreamType.AHX]=!0,new g.AsciiHexStream(E,_)):A==="CCITTFaxDecode"||A==="CCF"?(D[O.StreamType.CCF]=!0,new se.CCITTFaxStream(E,_,F)):A==="RunLengthDecode"||A==="RL"?(D[O.StreamType.RLX]=!0,new g.RunLengthStream(E,_)):A==="JBIG2Decode"?(D[O.StreamType.JBIG]=!0,new H.Jbig2Stream(E,_,E.dict,F)):((0,O.warn)(`Filter "${A}" is not supported.`),E)}catch(D){if(D instanceof a.MissingDataException)throw D;return(0,O.warn)(`Invalid stream: "${D}"`),new g.NullStream}}}d.Parser=re;const U=[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 X(P){return P>=48&&P<=57?P&15:P>=65&&P<=70||P>=97&&P<=102?(P&15)+9:-1}class W{constructor(E,A=null){this.stream=E,this.nextChar(),this.strBuf=[],this.knownCommands=A,this._hexStringNumWarn=0,this.beginInlineImagePos=-1}nextChar(){return this.currentChar=this.stream.getByte()}peekChar(){return this.stream.peekByte()}getNumber(){let E=this.currentChar,A=!1,_=0,F=0;if(E===45?(F=-1,E=this.nextChar(),E===45&&(E=this.nextChar())):E===43&&(F=1,E=this.nextChar()),E===10||E===13)do E=this.nextChar();while(E===10||E===13);if(E===46&&(_=10,E=this.nextChar()),E<48||E>57){if(_===10&&F===0&&((0,a.isWhiteSpace)(E)||E===-1))return(0,O.warn)("Lexer.getNumber - treating a single decimal point as zero."),0;throw new O.FormatError(`Invalid number: ${String.fromCharCode(E)} (charCode ${E})`)}F=F||1;let D=E-48,L=0,k=1;for(;(E=this.nextChar())>=0;)if(E>=48&&E<=57){const v=E-48;A?L=L*10+v:(_!==0&&(_*=10),D=D*10+v)}else if(E===46)if(_===0)_=1;else break;else if(E===45)(0,O.warn)("Badly formatted number: minus sign in the middle");else if(E===69||E===101){if(E=this.peekChar(),E===43||E===45)k=E===45?-1:1,this.nextChar();else if(E<48||E>57)break;A=!0}else break;return _!==0&&(D/=_),A&&(D*=10**(k*L)),F*D}getString(){let E=1,A=!1;const _=this.strBuf;_.length=0;let F=this.nextChar();for(;;){let D=!1;switch(F|0){case-1:(0,O.warn)("Unterminated string"),A=!0;break;case 40:++E,_.push("(");break;case 41:--E===0?(this.nextChar(),A=!0):_.push(")");break;case 92:switch(F=this.nextChar(),F){case-1:(0,O.warn)("Unterminated string"),A=!0;break;case 110:_.push(`
53
- `);break;case 114:_.push("\r");break;case 116:_.push(" ");break;case 98:_.push("\b");break;case 102:_.push("\f");break;case 92:case 40:case 41:_.push(String.fromCharCode(F));break;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:let L=F&15;F=this.nextChar(),D=!0,F>=48&&F<=55&&(L=(L<<3)+(F&15),F=this.nextChar(),F>=48&&F<=55&&(D=!1,L=(L<<3)+(F&15))),_.push(String.fromCharCode(L));break;case 13:this.peekChar()===10&&this.nextChar();break;case 10:break;default:_.push(String.fromCharCode(F));break}break;default:_.push(String.fromCharCode(F));break}if(A)break;D||(F=this.nextChar())}return _.join("")}getName(){let E,A;const _=this.strBuf;for(_.length=0;(E=this.nextChar())>=0&&!U[E];)if(E===35){if(E=this.nextChar(),U[E]){(0,O.warn)("Lexer_getName: NUMBER SIGN (#) should be followed by a hexadecimal number."),_.push("#");break}const F=X(E);if(F!==-1){A=E,E=this.nextChar();const D=X(E);if(D===-1){if((0,O.warn)(`Lexer_getName: Illegal digit (${String.fromCharCode(E)}) in hexadecimal number.`),_.push("#",String.fromCharCode(A)),U[E])break;_.push(String.fromCharCode(E));continue}_.push(String.fromCharCode(F<<4|D))}else _.push("#",String.fromCharCode(E))}else _.push(String.fromCharCode(E));return _.length>127&&(0,O.warn)(`Name token is longer than allowed by the spec: ${_.length}`),J.Name.get(_.join(""))}_hexStringWarn(E){if(this._hexStringNumWarn++===5){(0,O.warn)("getHexString - ignoring additional invalid characters.");return}this._hexStringNumWarn>5||(0,O.warn)(`getHexString - ignoring invalid character: ${E}`)}getHexString(){const E=this.strBuf;E.length=0;let A=this.currentChar,_=!0,F,D;for(this._hexStringNumWarn=0;;)if(A<0){(0,O.warn)("Unterminated hex string");break}else if(A===62){this.nextChar();break}else if(U[A]===1){A=this.nextChar();continue}else{if(_){if(F=X(A),F===-1){this._hexStringWarn(A),A=this.nextChar();continue}}else{if(D=X(A),D===-1){this._hexStringWarn(A),A=this.nextChar();continue}E.push(String.fromCharCode(F<<4|D))}_=!_,A=this.nextChar()}return E.join("")}getObj(){let E=!1,A=this.currentChar;for(;;){if(A<0)return J.EOF;if(E)(A===10||A===13)&&(E=!1);else if(A===37)E=!0;else if(U[A]!==1)break;A=this.nextChar()}switch(A|0){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 43:case 45:case 46:return this.getNumber();case 40:return this.getString();case 47:return this.getName();case 91:return this.nextChar(),J.Cmd.get("[");case 93:return this.nextChar(),J.Cmd.get("]");case 60:return A=this.nextChar(),A===60?(this.nextChar(),J.Cmd.get("<<")):this.getHexString();case 62:return A=this.nextChar(),A===62?(this.nextChar(),J.Cmd.get(">>")):J.Cmd.get(">");case 123:return this.nextChar(),J.Cmd.get("{");case 125:return this.nextChar(),J.Cmd.get("}");case 41:throw this.nextChar(),new O.FormatError(`Illegal character: ${A}`)}let _=String.fromCharCode(A);const F=this.knownCommands;let D=F&&F[_]!==void 0;for(;(A=this.nextChar())>=0&&!U[A];){const L=_+String.fromCharCode(A);if(D&&F[L]===void 0)break;if(_.length===128)throw new O.FormatError(`Command token too long: ${_.length}`);_=L,D=F&&F[_]!==void 0}return _==="true"?!0:_==="false"?!1:_==="null"?null:(_==="BI"&&(this.beginInlineImagePos=this.stream.pos),J.Cmd.get(_))}skipToNextLine(){let E=this.currentChar;for(;E>=0;){if(E===13){E=this.nextChar(),E===10&&this.nextChar();break}else if(E===10){this.nextChar();break}E=this.nextChar()}}}d.Lexer=W;class G{static create(E){function A(C,w,T=!1){const B=C.get(w);if(Number.isInteger(B)&&(T?B>=0:B>0))return B;throw new Error(`The "${w}" parameter in the linearization dictionary is invalid.`)}function _(C){const w=C.get("H");let T;if(Array.isArray(w)&&((T=w.length)===2||T===4)){for(let B=0;B<T;B++){const N=w[B];if(!(Number.isInteger(N)&&N>0))throw new Error(`Hint (${B}) in the linearization dictionary is invalid.`)}return w}throw new Error("Hint array in the linearization dictionary is invalid.")}const F=new re({lexer:new W(E),xref:null}),D=F.getObj(),L=F.getObj(),k=F.getObj(),v=F.getObj();let y,b;if(Number.isInteger(D)&&Number.isInteger(L)&&(0,J.isCmd)(k,"obj")&&(0,J.isDict)(v)&&(0,O.isNum)(y=v.get("Linearized"))&&y>0){if((b=A(v,"L"))!==E.length)throw new Error('The "L" parameter in the linearization dictionary does not equal the stream length.')}else return null;return{length:b,hints:_(v),objectNumberFirst:A(v,"O"),endFirst:A(v,"E"),numPages:A(v,"N"),mainXRefEntriesOffset:A(v,"T"),pageFirst:v.has("P")?A(v,"P",!0):0}}}d.Linearization=G},function(S,d,R){Object.defineProperty(d,"__esModule",{value:!0}),d.LZWStream=d.StringStream=d.StreamsSequenceStream=d.Stream=d.RunLengthStream=d.PredictorStream=d.NullStream=d.FlateStream=d.DecodeStream=d.DecryptStream=d.AsciiHexStream=d.Ascii85Stream=void 0;var g=R(2),O=R(5),J=R(8),a=function(){function P(E,A,_,F){this.bytes=E instanceof Uint8Array?E:new Uint8Array(E),this.start=A||0,this.pos=this.start,this.end=A+_||this.bytes.length,this.dict=F}return P.prototype={get length(){return this.end-this.start},get isEmpty(){return this.length===0},getByte:function(){return this.pos>=this.end?-1:this.bytes[this.pos++]},getUint16:function(){var A=this.getByte(),_=this.getByte();return A===-1||_===-1?-1:(A<<8)+_},getInt32:function(){var A=this.getByte(),_=this.getByte(),F=this.getByte(),D=this.getByte();return(A<<24)+(_<<16)+(F<<8)+D},getBytes(E,A=!1){var _=this.bytes,F=this.pos,D=this.end;if(!E){const v=_.subarray(F,D);return A?new Uint8ClampedArray(v):v}var L=F+E;L>D&&(L=D),this.pos=L;const k=_.subarray(F,L);return A?new Uint8ClampedArray(k):k},peekByte:function(){var A=this.getByte();return A!==-1&&this.pos--,A},peekBytes(E,A=!1){var _=this.getBytes(E,A);return this.pos-=_.length,_},getByteRange(E,A){return E<0&&(E=0),A>this.end&&(A=this.end),this.bytes.subarray(E,A)},skip:function(A){A||(A=1),this.pos+=A},reset:function(){this.pos=this.start},moveStart:function(){this.start=this.pos},makeSubStream:function(A,_,F){return new P(this.bytes.buffer,A,_,F)}},P}();d.Stream=a;var se=function(){function P(E){const A=(0,g.stringToBytes)(E);a.call(this,A)}return P.prototype=a.prototype,P}();d.StringStream=se;var H=function(){var P=new Uint8Array(0);function E(A){if(this._rawMinBufferLength=A||0,this.pos=0,this.bufferLength=0,this.eof=!1,this.buffer=P,this.minBufferLength=512,A)for(;this.minBufferLength<A;)this.minBufferLength*=2}return E.prototype={get isEmpty(){for(;!this.eof&&this.bufferLength===0;)this.readBlock();return this.bufferLength===0},ensureBuffer:function(_){var F=this.buffer;if(_<=F.byteLength)return F;for(var D=this.minBufferLength;D<_;)D*=2;var L=new Uint8Array(D);return L.set(F),this.buffer=L},getByte:function(){for(var _=this.pos;this.bufferLength<=_;){if(this.eof)return-1;this.readBlock()}return this.buffer[this.pos++]},getUint16:function(){var _=this.getByte(),F=this.getByte();return _===-1||F===-1?-1:(_<<8)+F},getInt32:function(){var _=this.getByte(),F=this.getByte(),D=this.getByte(),L=this.getByte();return(_<<24)+(F<<16)+(D<<8)+L},getBytes(A,_=!1){var F,D=this.pos;if(A){for(this.ensureBuffer(D+A),F=D+A;!this.eof&&this.bufferLength<F;)this.readBlock();var L=this.bufferLength;F>L&&(F=L)}else{for(;!this.eof;)this.readBlock();F=this.bufferLength}this.pos=F;const k=this.buffer.subarray(D,F);return _&&!(k instanceof Uint8ClampedArray)?new Uint8ClampedArray(k):k},peekByte:function(){var _=this.getByte();return _!==-1&&this.pos--,_},peekBytes(A,_=!1){var F=this.getBytes(A,_);return this.pos-=F.length,F},makeSubStream:function(_,F,D){for(var L=_+F;this.bufferLength<=L&&!this.eof;)this.readBlock();return new a(this.buffer,_,F,D)},getByteRange(A,_){(0,g.unreachable)("Should not call DecodeStream.getByteRange")},skip:function(_){_||(_=1),this.pos+=_},reset:function(){this.pos=0},getBaseStreams:function(){return this.str&&this.str.getBaseStreams?this.str.getBaseStreams():[]}},E}();d.DecodeStream=H;var ee=function(){function P(E){this.streams=E;let A=0;for(let _=0,F=E.length;_<F;_++){const D=E[_];D instanceof H?A+=D._rawMinBufferLength:A+=D.length}H.call(this,A)}return P.prototype=Object.create(H.prototype),P.prototype.readBlock=function(){var A=this.streams;if(A.length===0){this.eof=!0;return}var _=A.shift(),F=_.getBytes(),D=this.bufferLength,L=D+F.length,k=this.ensureBuffer(L);k.set(F,D),this.bufferLength=L},P.prototype.getBaseStreams=function(){for(var A=[],_=0,F=this.streams.length;_<F;_++){var D=this.streams[_];D.getBaseStreams&&A.push(...D.getBaseStreams())}return A},P}();d.StreamsSequenceStream=ee;var ie=function(){var P=new Int32Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),E=new Int32Array([3,4,5,6,7,8,9,10,65547,65549,65551,65553,131091,131095,131099,131103,196643,196651,196659,196667,262211,262227,262243,262259,327811,327843,327875,327907,258,258,258]),A=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]),_=[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],F=[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];function D(L,k){this.str=L,this.dict=L.dict;var v=L.getByte(),y=L.getByte();if(v===-1||y===-1)throw new g.FormatError(`Invalid header in flate stream: ${v}, ${y}`);if((v&15)!==8)throw new g.FormatError(`Unknown compression method in flate stream: ${v}, ${y}`);if(((v<<8)+y)%31!==0)throw new g.FormatError(`Bad FCHECK in flate stream: ${v}, ${y}`);if(y&32)throw new g.FormatError(`FDICT bit set in flate stream: ${v}, ${y}`);this.codeSize=0,this.codeBuf=0,H.call(this,k)}return D.prototype=Object.create(H.prototype),D.prototype.getBits=function(k){for(var v=this.str,y=this.codeSize,b=this.codeBuf,C;y<k;){if((C=v.getByte())===-1)throw new g.FormatError("Bad encoding in flate stream");b|=C<<y,y+=8}return C=b&(1<<k)-1,this.codeBuf=b>>k,this.codeSize=y-=k,C},D.prototype.getCode=function(k){for(var v=this.str,y=k[0],b=k[1],C=this.codeSize,w=this.codeBuf,T;C<b&&(T=v.getByte())!==-1;)w|=T<<C,C+=8;var B=y[w&(1<<b)-1],N=B>>16,Q=B&65535;if(N<1||C<N)throw new g.FormatError("Bad encoding in flate stream");return this.codeBuf=w>>N,this.codeSize=C-N,Q},D.prototype.generateHuffmanTable=function(k){var v=k.length,y=0,b;for(b=0;b<v;++b)k[b]>y&&(y=k[b]);for(var C=1<<y,w=new Int32Array(C),T=1,B=0,N=2;T<=y;++T,B<<=1,N<<=1)for(var Q=0;Q<v;++Q)if(k[Q]===T){var z=0,j=B;for(b=0;b<T;++b)z=z<<1|j&1,j>>=1;for(b=z;b<C;b+=N)w[b]=T<<16|Q;++B}return[w,y]},D.prototype.readBlock=function(){var k,v,y=this.str,b=this.getBits(3);if(b&1&&(this.eof=!0),b>>=1,b===0){var C;if((C=y.getByte())===-1)throw new g.FormatError("Bad block header in flate stream");var w=C;if((C=y.getByte())===-1)throw new g.FormatError("Bad block header in flate stream");if(w|=C<<8,(C=y.getByte())===-1)throw new g.FormatError("Bad block header in flate stream");var T=C;if((C=y.getByte())===-1)throw new g.FormatError("Bad block header in flate stream");if(T|=C<<8,T!==(~w&65535)&&(w!==0||T!==0))throw new g.FormatError("Bad uncompressed block length in flate stream");this.codeBuf=0,this.codeSize=0;const me=this.bufferLength,Se=me+w;if(k=this.ensureBuffer(Se),this.bufferLength=Se,w===0)y.peekByte()===-1&&(this.eof=!0);else{const Ce=y.getBytes(w);k.set(Ce,me),Ce.length<w&&(this.eof=!0)}return}var B,N;if(b===1)B=_,N=F;else if(b===2){var Q=this.getBits(5)+257,z=this.getBits(5)+1,j=this.getBits(4)+4,$=new Uint8Array(P.length),M;for(M=0;M<j;++M)$[P[M]]=this.getBits(3);var q=this.generateHuffmanTable($);v=0,M=0;for(var K=Q+z,Z=new Uint8Array(K),te,oe,ae;M<K;){var ce=this.getCode(q);if(ce===16)te=2,oe=3,ae=v;else if(ce===17)te=3,oe=3,ae=v=0;else if(ce===18)te=7,oe=11,ae=v=0;else{Z[M++]=v=ce;continue}for(var fe=this.getBits(te)+oe;fe-- >0;)Z[M++]=ae}B=this.generateHuffmanTable(Z.subarray(0,Q)),N=this.generateHuffmanTable(Z.subarray(Q,K))}else throw new g.FormatError("Unknown block type in flate stream");k=this.buffer;for(var ne=k?k.length:0,le=this.bufferLength;;){var ue=this.getCode(B);if(ue<256){le+1>=ne&&(k=this.ensureBuffer(le+1),ne=k.length),k[le++]=ue;continue}if(ue===256){this.bufferLength=le;return}ue-=257,ue=E[ue];var he=ue>>16;he>0&&(he=this.getBits(he)),v=(ue&65535)+he,ue=this.getCode(N),ue=A[ue],he=ue>>16,he>0&&(he=this.getBits(he));var de=(ue&65535)+he;le+v>=ne&&(k=this.ensureBuffer(le+v),ne=k.length);for(var ve=0;ve<v;++ve,++le)k[le]=k[le-de]}},D}();d.FlateStream=ie;var m=function(){function P(E,A,_){if(!(0,O.isDict)(_))return E;var F=this.predictor=_.get("Predictor")||1;if(F<=1)return E;if(F!==2&&(F<10||F>15))throw new g.FormatError(`Unsupported predictor: ${F}`);F===2?this.readBlock=this.readBlockTiff:this.readBlock=this.readBlockPng,this.str=E,this.dict=E.dict;var D=this.colors=_.get("Colors")||1,L=this.bits=_.get("BitsPerComponent")||8,k=this.columns=_.get("Columns")||1;return this.pixBytes=D*L+7>>3,this.rowBytes=k*D*L+7>>3,H.call(this,A),this}return P.prototype=Object.create(H.prototype),P.prototype.readBlockTiff=function(){var A=this.rowBytes,_=this.bufferLength,F=this.ensureBuffer(_+A),D=this.bits,L=this.colors,k=this.str.getBytes(A);if(this.eof=!k.length,!this.eof){var v=0,y=0,b=0,C=0,w=_,T;if(D===1&&L===1)for(T=0;T<A;++T){var B=k[T]^v;B^=B>>1,B^=B>>2,B^=B>>4,v=(B&1)<<7,F[w++]=B}else if(D===8){for(T=0;T<L;++T)F[w++]=k[T];for(;T<A;++T)F[w]=F[w-L]+k[T],w++}else if(D===16){var N=L*2;for(T=0;T<N;++T)F[w++]=k[T];for(;T<A;T+=2){var Q=((k[T]&255)<<8)+(k[T+1]&255)+((F[w-N]&255)<<8)+(F[w-N+1]&255);F[w++]=Q>>8&255,F[w++]=Q&255}}else{var z=new Uint8Array(L+1),j=(1<<D)-1,$=0,M=_,q=this.columns;for(T=0;T<q;++T)for(var K=0;K<L;++K)b<D&&(v=v<<8|k[$++]&255,b+=8),z[K]=z[K]+(v>>b-D)&j,b-=D,y=y<<D|z[K],C+=D,C>=8&&(F[M++]=y>>C-8&255,C-=8);C>0&&(F[M++]=(y<<8-C)+(v&(1<<8-C)-1))}this.bufferLength+=A}},P.prototype.readBlockPng=function(){var A=this.rowBytes,_=this.pixBytes,F=this.str.getByte(),D=this.str.getBytes(A);if(this.eof=!D.length,!this.eof){var L=this.bufferLength,k=this.ensureBuffer(L+A),v=k.subarray(L-A,L);v.length===0&&(v=new Uint8Array(A));var y,b=L,C,w;switch(F){case 0:for(y=0;y<A;++y)k[b++]=D[y];break;case 1:for(y=0;y<_;++y)k[b++]=D[y];for(;y<A;++y)k[b]=k[b-_]+D[y]&255,b++;break;case 2:for(y=0;y<A;++y)k[b++]=v[y]+D[y]&255;break;case 3:for(y=0;y<_;++y)k[b++]=(v[y]>>1)+D[y];for(;y<A;++y)k[b]=(v[y]+k[b-_]>>1)+D[y]&255,b++;break;case 4:for(y=0;y<_;++y)C=v[y],w=D[y],k[b++]=C+w;for(;y<A;++y){C=v[y];var T=v[y-_],B=k[b-_],N=B+C-T,Q=N-B;Q<0&&(Q=-Q);var z=N-C;z<0&&(z=-z);var j=N-T;j<0&&(j=-j),w=D[y],Q<=z&&Q<=j?k[b++]=B+w:z<=j?k[b++]=C+w:k[b++]=T+w}break;default:throw new g.FormatError(`Unsupported predictor: ${F}`)}this.bufferLength+=A}},P}();d.PredictorStream=m;var u=function(){function P(A,_,F){this.str=A,this.dict=A.dict,this.decrypt=F,this.nextChunk=null,this.initialized=!1,H.call(this,_)}var E=512;return P.prototype=Object.create(H.prototype),P.prototype.readBlock=function(){var _;if(this.initialized?_=this.nextChunk:(_=this.str.getBytes(E),this.initialized=!0),!_||_.length===0){this.eof=!0;return}this.nextChunk=this.str.getBytes(E);var F=this.nextChunk&&this.nextChunk.length>0,D=this.decrypt;_=D(_,!F);var L=this.bufferLength,k,v=_.length,y=this.ensureBuffer(L+v);for(k=0;k<v;k++)y[L++]=_[k];this.bufferLength=L},P}();d.DecryptStream=u;var Y=function(){function P(E,A){this.str=E,this.dict=E.dict,this.input=new Uint8Array(5),A&&(A=.8*A),H.call(this,A)}return P.prototype=Object.create(H.prototype),P.prototype.readBlock=function(){for(var A=126,_=122,F=-1,D=this.str,L=D.getByte();(0,J.isWhiteSpace)(L);)L=D.getByte();if(L===F||L===A){this.eof=!0;return}var k=this.bufferLength,v,y;if(L===_){for(v=this.ensureBuffer(k+4),y=0;y<4;++y)v[k+y]=0;this.bufferLength+=4}else{var b=this.input;for(b[0]=L,y=1;y<5;++y){for(L=D.getByte();(0,J.isWhiteSpace)(L);)L=D.getByte();if(b[y]=L,L===F||L===A)break}if(v=this.ensureBuffer(k+y-1),this.bufferLength+=y-1,y<5){for(;y<5;++y)b[y]=33+84;this.eof=!0}var C=0;for(y=0;y<5;++y)C=C*85+(b[y]-33);for(y=3;y>=0;--y)v[k+y]=C&255,C>>=8}},P}();d.Ascii85Stream=Y;var re=function(){function P(E,A){this.str=E,this.dict=E.dict,this.firstDigit=-1,A&&(A=.5*A),H.call(this,A)}return P.prototype=Object.create(H.prototype),P.prototype.readBlock=function(){var A=8e3,_=this.str.getBytes(A);if(!_.length){this.eof=!0;return}for(var F=_.length+1>>1,D=this.ensureBuffer(this.bufferLength+F),L=this.bufferLength,k=this.firstDigit,v=0,y=_.length;v<y;v++){var b=_[v],C;if(b>=48&&b<=57)C=b&15;else if(b>=65&&b<=70||b>=97&&b<=102)C=(b&15)+9;else if(b===62){this.eof=!0;break}else continue;k<0?k=C:(D[L++]=k<<4|C,k=-1)}k>=0&&this.eof&&(D[L++]=k<<4,k=-1),this.firstDigit=k,this.bufferLength=L},P}();d.AsciiHexStream=re;var U=function(){function P(E,A){this.str=E,this.dict=E.dict,H.call(this,A)}return P.prototype=Object.create(H.prototype),P.prototype.readBlock=function(){var A=this.str.getBytes(2);if(!A||A.length<2||A[0]===128){this.eof=!0;return}var _,F=this.bufferLength,D=A[0];if(D<128){if(_=this.ensureBuffer(F+D+1),_[F++]=A[1],D>0){var L=this.str.getBytes(D);_.set(L,F),F+=D}}else{D=257-D;var k=A[1];_=this.ensureBuffer(F+D+1);for(var v=0;v<D;v++)_[F++]=k}this.bufferLength=F},P}();d.RunLengthStream=U;var X=function(){function P(E,A,_){this.str=E,this.dict=E.dict,this.cachedData=0,this.bitsCached=0;for(var F=4096,D={earlyChange:_,codeLength:9,nextCode:258,dictionaryValues:new Uint8Array(F),dictionaryLengths:new Uint16Array(F),dictionaryPrevCodes:new Uint16Array(F),currentSequence:new Uint8Array(F),currentSequenceLength:0},L=0;L<256;++L)D.dictionaryValues[L]=L,D.dictionaryLengths[L]=1;this.lzwState=D,H.call(this,A)}return P.prototype=Object.create(H.prototype),P.prototype.readBits=function(A){for(var _=this.bitsCached,F=this.cachedData;_<A;){var D=this.str.getByte();if(D===-1)return this.eof=!0,null;F=F<<8|D,_+=8}return this.bitsCached=_-=A,this.cachedData=F,this.lastCode=null,F>>>_&(1<<A)-1},P.prototype.readBlock=function(){var A=512,_=A*2,F=A,D,L,k,v=this.lzwState;if(!!v){var y=v.earlyChange,b=v.nextCode,C=v.dictionaryValues,w=v.dictionaryLengths,T=v.dictionaryPrevCodes,B=v.codeLength,N=v.prevCode,Q=v.currentSequence,z=v.currentSequenceLength,j=0,$=this.bufferLength,M=this.ensureBuffer(this.bufferLength+_);for(D=0;D<A;D++){var q=this.readBits(B),K=z>0;if(q<256)Q[0]=q,z=1;else if(q>=258)if(q<b)for(z=w[q],L=z-1,k=q;L>=0;L--)Q[L]=C[k],k=T[k];else Q[z++]=Q[0];else if(q===256){B=9,b=258,z=0;continue}else{this.eof=!0,delete this.lzwState;break}if(K&&(T[b]=N,w[b]=w[N]+1,C[b]=Q[0],b++,B=b+y&b+y-1?B:Math.min(Math.log(b+y)/.6931471805599453+1,12)|0),N=q,j+=z,_<j){do _+=F;while(_<j);M=this.ensureBuffer(this.bufferLength+_)}for(L=0;L<z;L++)M[$++]=Q[L]}v.nextCode=b,v.codeLength=B,v.prevCode=N,v.currentSequenceLength=z,this.bufferLength=$}},P}();d.LZWStream=X;var W=function(){function P(){a.call(this,new Uint8Array(0))}return P.prototype=a.prototype,P}();d.NullStream=W},function(S,d,R){Object.defineProperty(d,"__esModule",{value:!0}),d.CCITTFaxStream=void 0;var g=R(5),O=R(14),J=R(12),a=function(){function H(ee,ie,m){this.str=ee,this.dict=ee.dict,(0,g.isDict)(m)||(m=g.Dict.empty);const u={next(){return ee.getByte()}};this.ccittFaxDecoder=new O.CCITTFaxDecoder(u,{K:m.get("K"),EndOfLine:m.get("EndOfLine"),EncodedByteAlign:m.get("EncodedByteAlign"),Columns:m.get("Columns"),Rows:m.get("Rows"),EndOfBlock:m.get("EndOfBlock"),BlackIs1:m.get("BlackIs1")}),J.DecodeStream.call(this,ie)}return H.prototype=Object.create(J.DecodeStream.prototype),H.prototype.readBlock=function(){for(;!this.eof;){const ee=this.ccittFaxDecoder.readNextChar();if(ee===-1){this.eof=!0;return}this.ensureBuffer(this.bufferLength+1),this.buffer[this.bufferLength++]=ee}},H}();d.CCITTFaxStream=a},function(S,d,R){Object.defineProperty(d,"__esModule",{value:!0}),d.CCITTFaxDecoder=void 0;var g=R(2);const O=function(){const W=[[-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]],G=[[-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]],P=[[-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]],E=[[-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]],A=[[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]],_=[[-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]];function F(D,L={}){if(!D||typeof D.next!="function")throw new Error('CCITTFaxDecoder - invalid "source" parameter.');this.source=D,this.eof=!1,this.encoding=L.K||0,this.eoline=L.EndOfLine||!1,this.byteAlign=L.EncodedByteAlign||!1,this.columns=L.Columns||1728,this.rows=L.Rows||0;let k=L.EndOfBlock;k==null&&(k=!0),this.eoblock=k,this.black=L.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 v;for(;(v=this._lookBits(12))===0;)this._eatBits(1);v===1&&this._eatBits(12),this.encoding>0&&(this.nextLine2D=!this._lookBits(1),this._eatBits(1))}return F.prototype={readNextChar(){if(this.eof)return-1;const D=this.refLine,L=this.codingLine,k=this.columns;let v,y,b,C;if(this.outputBits===0){if(this.rowsDone&&(this.eof=!0),this.eof)return-1;this.err=!1;let T,B,N;if(this.nextLine2D){for(C=0;L[C]<k;++C)D[C]=L[C];for(D[C++]=k,D[C]=k,L[0]=0,this.codingPos=0,v=0,y=0;L[this.codingPos]<k;)switch(T=this._getTwoDimCode(),T){case 0:this._addPixels(D[v+1],y),D[v+1]<k&&(v+=2);break;case 1:if(T=B=0,y){do T+=N=this._getBlackCode();while(N>=64);do B+=N=this._getWhiteCode();while(N>=64)}else{do T+=N=this._getWhiteCode();while(N>=64);do B+=N=this._getBlackCode();while(N>=64)}for(this._addPixels(L[this.codingPos]+T,y),L[this.codingPos]<k&&this._addPixels(L[this.codingPos]+B,y^1);D[v]<=L[this.codingPos]&&D[v]<k;)v+=2;break;case 7:if(this._addPixels(D[v]+3,y),y^=1,L[this.codingPos]<k)for(++v;D[v]<=L[this.codingPos]&&D[v]<k;)v+=2;break;case 5:if(this._addPixels(D[v]+2,y),y^=1,L[this.codingPos]<k)for(++v;D[v]<=L[this.codingPos]&&D[v]<k;)v+=2;break;case 3:if(this._addPixels(D[v]+1,y),y^=1,L[this.codingPos]<k)for(++v;D[v]<=L[this.codingPos]&&D[v]<k;)v+=2;break;case 2:if(this._addPixels(D[v],y),y^=1,L[this.codingPos]<k)for(++v;D[v]<=L[this.codingPos]&&D[v]<k;)v+=2;break;case 8:if(this._addPixelsNeg(D[v]-3,y),y^=1,L[this.codingPos]<k)for(v>0?--v:++v;D[v]<=L[this.codingPos]&&D[v]<k;)v+=2;break;case 6:if(this._addPixelsNeg(D[v]-2,y),y^=1,L[this.codingPos]<k)for(v>0?--v:++v;D[v]<=L[this.codingPos]&&D[v]<k;)v+=2;break;case 4:if(this._addPixelsNeg(D[v]-1,y),y^=1,L[this.codingPos]<k)for(v>0?--v:++v;D[v]<=L[this.codingPos]&&D[v]<k;)v+=2;break;case-1:this._addPixels(k,0),this.eof=!0;break;default:(0,g.info)("bad 2d code"),this._addPixels(k,0),this.err=!0}}else for(L[0]=0,this.codingPos=0,y=0;L[this.codingPos]<k;){if(T=0,y)do T+=N=this._getBlackCode();while(N>=64);else do T+=N=this._getWhiteCode();while(N>=64);this._addPixels(L[this.codingPos]+T,y),y^=1}let Q=!1;if(this.byteAlign&&(this.inputBits&=-8),!this.eoblock&&this.row===this.rows-1)this.rowsDone=!0;else{if(T=this._lookBits(12),this.eoline)for(;T!==-1&&T!==1;)this._eatBits(1),T=this._lookBits(12);else for(;T===0;)this._eatBits(1),T=this._lookBits(12);T===1?(this._eatBits(12),Q=!0):T===-1&&(this.eof=!0)}if(!this.eof&&this.encoding>0&&!this.rowsDone&&(this.nextLine2D=!this._lookBits(1),this._eatBits(1)),this.eoblock&&Q&&this.byteAlign){if(T=this._lookBits(12),T===1){if(this._eatBits(12),this.encoding>0&&(this._lookBits(1),this._eatBits(1)),this.encoding>=0)for(C=0;C<4;++C)T=this._lookBits(12),T!==1&&(0,g.info)("bad rtc code: "+T),this._eatBits(12),this.encoding>0&&(this._lookBits(1),this._eatBits(1));this.eof=!0}}else if(this.err&&this.eoline){for(;;){if(T=this._lookBits(13),T===-1)return this.eof=!0,-1;if(T>>1===1)break;this._eatBits(1)}this._eatBits(12),this.encoding>0&&(this._eatBits(1),this.nextLine2D=!(T&1))}L[0]>0?this.outputBits=L[this.codingPos=0]:this.outputBits=L[this.codingPos=1],this.row++}let w;if(this.outputBits>=8)w=this.codingPos&1?0:255,this.outputBits-=8,this.outputBits===0&&L[this.codingPos]<k&&(this.codingPos++,this.outputBits=L[this.codingPos]-L[this.codingPos-1]);else{b=8,w=0;do this.outputBits>b?(w<<=b,this.codingPos&1||(w|=255>>8-b),this.outputBits-=b,b=0):(w<<=this.outputBits,this.codingPos&1||(w|=255>>8-this.outputBits),b-=this.outputBits,this.outputBits=0,L[this.codingPos]<k?(this.codingPos++,this.outputBits=L[this.codingPos]-L[this.codingPos-1]):b>0&&(w<<=b,b=0));while(b)}return this.black&&(w^=255),w},_addPixels(D,L){const k=this.codingLine;let v=this.codingPos;D>k[v]&&(D>this.columns&&((0,g.info)("row is wrong length"),this.err=!0,D=this.columns),v&1^L&&++v,k[v]=D),this.codingPos=v},_addPixelsNeg(D,L){const k=this.codingLine;let v=this.codingPos;if(D>k[v])D>this.columns&&((0,g.info)("row is wrong length"),this.err=!0,D=this.columns),v&1^L&&++v,k[v]=D;else if(D<k[v]){for(D<0&&((0,g.info)("invalid code"),this.err=!0,D=0);v>0&&D<k[v-1];)--v;k[v]=D}this.codingPos=v},_findTableCode(D,L,k,v){const y=v||0;for(let b=D;b<=L;++b){let C=this._lookBits(b);if(C===-1)return[!0,1,!1];if(b<L&&(C<<=L-b),!y||C>=y){const w=k[C-y];if(w[0]===b)return this._eatBits(b),[!0,w[1],!0]}}return[!1,0,!1]},_getTwoDimCode(){let D=0,L;if(this.eoblock){if(D=this._lookBits(7),L=W[D],L&&L[0]>0)return this._eatBits(L[0]),L[1]}else{const k=this._findTableCode(1,7,W);if(k[0]&&k[2])return k[1]}return(0,g.info)("Bad two dim code"),-1},_getWhiteCode(){let D=0,L;if(this.eoblock){if(D=this._lookBits(12),D===-1)return 1;if(D>>5===0?L=G[D]:L=P[D>>3],L[0]>0)return this._eatBits(L[0]),L[1]}else{let k=this._findTableCode(1,9,P);if(k[0]||(k=this._findTableCode(11,12,G),k[0]))return k[1]}return(0,g.info)("bad white code"),this._eatBits(1),1},_getBlackCode(){let D,L;if(this.eoblock){if(D=this._lookBits(13),D===-1)return 1;if(D>>7===0?L=E[D]:D>>9===0&&D>>7!==0?L=A[(D>>1)-64]:L=_[D>>7],L[0]>0)return this._eatBits(L[0]),L[1]}else{let k=this._findTableCode(2,6,_);if(k[0]||(k=this._findTableCode(7,12,A,64),k[0])||(k=this._findTableCode(10,13,E),k[0]))return k[1]}return(0,g.info)("bad black code"),this._eatBits(1),1},_lookBits(D){let L;for(;this.inputBits<D;){if((L=this.source.next())===-1)return this.inputBits===0?-1:this.inputBuf<<D-this.inputBits&65535>>16-D;this.inputBuf=this.inputBuf<<8|L,this.inputBits+=8}return this.inputBuf>>this.inputBits-D&65535>>16-D},_eatBits(D){(this.inputBits-=D)<0&&(this.inputBits=0)}},F}();d.CCITTFaxDecoder=O},function(S,d,R){Object.defineProperty(d,"__esModule",{value:!0}),d.Jbig2Stream=void 0;var g=R(5),O=R(12),J=R(16),a=R(2);const se=function(){function ee(ie,m,u,Y){this.stream=ie,this.maybeLength=m,this.dict=u,this.params=Y,O.DecodeStream.call(this,m)}return ee.prototype=Object.create(O.DecodeStream.prototype),Object.defineProperty(ee.prototype,"bytes",{get(){return(0,a.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))},configurable:!0}),ee.prototype.ensureBuffer=function(ie){},ee.prototype.readBlock=function(){if(this.eof)return;const ie=new J.Jbig2Image,m=[];if((0,g.isDict)(this.params)){const re=this.params.get("JBIG2Globals");if((0,g.isStream)(re)){const U=re.getBytes();m.push({data:U,start:0,end:U.length})}}m.push({data:this.bytes,start:0,end:this.bytes.length});const u=ie.parseChunks(m),Y=u.length;for(let re=0;re<Y;re++)u[re]^=255;this.buffer=u,this.bufferLength=Y,this.eof=!0},ee}();d.Jbig2Stream=se},function(S,d,R){Object.defineProperty(d,"__esModule",{value:!0}),d.Jbig2Image=void 0;var g=R(2),O=R(8),J=R(17),a=R(14);class se extends g.BaseException{constructor(ie){super(`JBIG2 error: ${ie}`)}}var H=function(){function ie(){}ie.prototype={getContexts(ne){return ne in this?this[ne]:this[ne]=new Int8Array(1<<16)}};function m(ne,le,ue){this.data=ne,this.start=le,this.end=ue}m.prototype={get decoder(){var ne=new J.ArithmeticDecoder(this.data,this.start,this.end);return(0,g.shadow)(this,"decoder",ne)},get contextCache(){var ne=new ie;return(0,g.shadow)(this,"contextCache",ne)}};function u(ne,le,ue){var he=ne.getContexts(le),de=1;function ve(Ce){for(var xe=0,ge=0;ge<Ce;ge++){var Ae=ue.readBit(he,de);de=de<256?de<<1|Ae:(de<<1|Ae)&511|256,xe=xe<<1|Ae}return xe>>>0}var me=ve(1),Se=ve(1)?ve(1)?ve(1)?ve(1)?ve(1)?ve(32)+4436:ve(12)+340:ve(8)+84:ve(6)+20:ve(4)+4:ve(2);return me===0?Se:Se>0?-Se:null}function Y(ne,le,ue){for(var he=ne.getContexts("IAID"),de=1,ve=0;ve<ue;ve++){var me=le.readBit(he,de);de=de<<1|me}return ue<31?de&(1<<ue)-1:de&2147483647}var re=["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}]],X=[{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}]}],W=[39717,1941,229,405],G=[32,8];function P(ne,le,ue){var he=ue.decoder,de=ue.contextCache.getContexts("GB"),ve,me,Se,Ce,xe,ge,Ae,we=[],Fe=31735;for(me=0;me<le;me++)for(xe=we[me]=new Uint8Array(ne),ge=me<1?xe:we[me-1],Ae=me<2?xe:we[me-2],ve=Ae[0]<<13|Ae[1]<<12|Ae[2]<<11|ge[0]<<7|ge[1]<<6|ge[2]<<5|ge[3]<<4,Se=0;Se<ne;Se++)xe[Se]=Ce=he.readBit(de,ve),ve=(ve&Fe)<<1|(Se+3<ne?Ae[Se+3]<<11:0)|(Se+4<ne?ge[Se+4]<<4:0)|Ce;return we}function E(ne,le,ue,he,de,ve,me,Se){if(ne){const ot=new K(Se.data,Se.start,Se.end);return ce(ot,le,ue,!1)}if(he===0&&!ve&&!de&&me.length===4&&me[0].x===3&&me[0].y===-1&&me[1].x===-3&&me[1].y===-1&&me[2].x===2&&me[2].y===-2&&me[3].x===-2&&me[3].y===-2)return P(le,ue,Se);var Ce=!!ve,xe=U[he].concat(me);xe.sort(function(ot,ut){return ot.y-ut.y||ot.x-ut.x});var ge=xe.length,Ae=new Int8Array(ge),we=new Int8Array(ge),Fe=[],_e=0,De=0,Be=0,Ee=0,ke,pe;for(pe=0;pe<ge;pe++)Ae[pe]=xe[pe].x,we[pe]=xe[pe].y,De=Math.min(De,xe[pe].x),Be=Math.max(Be,xe[pe].x),Ee=Math.min(Ee,xe[pe].y),pe<ge-1&&xe[pe].y===xe[pe+1].y&&xe[pe].x===xe[pe+1].x-1?_e|=1<<ge-1-pe:Fe.push(pe);var be=Fe.length,ye=new Int8Array(be),Te=new Int8Array(be),Pe=new Uint16Array(be);for(ke=0;ke<be;ke++)pe=Fe[ke],ye[ke]=xe[pe].x,Te[ke]=xe[pe].y,Pe[ke]=1<<ge-1-pe;for(var Le=-De,Re=-Ee,Ie=le-Be,He=W[he],Ue=new Uint8Array(le),Ge=[],je=Se.decoder,Oe=Se.contextCache.getContexts("GB"),$e=0,tt,Ye,Xe,rt=0,Ze,ct,pt=0;pt<ue;pt++){if(de){var wt=je.readBit(Oe,He);if($e^=wt,$e){Ge.push(Ue);continue}}for(Ue=new Uint8Array(Ue),Ge.push(Ue),tt=0;tt<le;tt++){if(Ce&&ve[pt][tt]){Ue[tt]=0;continue}if(tt>=Le&&tt<Ie&&pt>=Re)for(rt=rt<<1&_e,pe=0;pe<be;pe++)Ye=pt+Te[pe],Xe=tt+ye[pe],Ze=Ge[Ye][Xe],Ze&&(Ze=Pe[pe],rt|=Ze);else for(rt=0,ct=ge-1,pe=0;pe<ge;pe++,ct--)Xe=tt+Ae[pe],Xe>=0&&Xe<le&&(Ye=pt+we[pe],Ye>=0&&(Ze=Ge[Ye][Xe],Ze&&(rt|=Ze<<ct)));var Ct=je.readBit(Oe,rt);Ue[tt]=Ct}}return Ge}function A(ne,le,ue,he,de,ve,me,Se,Ce){var xe=X[ue].coding;ue===0&&(xe=xe.concat([Se[0]]));var ge=xe.length,Ae=new Int32Array(ge),we=new Int32Array(ge),Fe;for(Fe=0;Fe<ge;Fe++)Ae[Fe]=xe[Fe].x,we[Fe]=xe[Fe].y;var _e=X[ue].reference;ue===0&&(_e=_e.concat([Se[1]]));var De=_e.length,Be=new Int32Array(De),Ee=new Int32Array(De);for(Fe=0;Fe<De;Fe++)Be[Fe]=_e[Fe].x,Ee[Fe]=_e[Fe].y;for(var ke=he[0].length,pe=he.length,be=G[ue],ye=[],Te=Ce.decoder,Pe=Ce.contextCache.getContexts("GR"),Le=0,Re=0;Re<le;Re++){if(me){var Ie=Te.readBit(Pe,be);if(Le^=Ie,Le)throw new se("prediction is not supported")}var He=new Uint8Array(ne);ye.push(He);for(var Ue=0;Ue<ne;Ue++){var Ge,je,Oe=0;for(Fe=0;Fe<ge;Fe++)Ge=Re+we[Fe],je=Ue+Ae[Fe],Ge<0||je<0||je>=ne?Oe<<=1:Oe=Oe<<1|ye[Ge][je];for(Fe=0;Fe<De;Fe++)Ge=Re+Ee[Fe]-ve,je=Ue+Be[Fe]-de,Ge<0||Ge>=pe||je<0||je>=ke?Oe<<=1:Oe=Oe<<1|he[Ge][je];var $e=Te.readBit(Pe,Oe);He[Ue]=$e}}return ye}function _(ne,le,ue,he,de,ve,me,Se,Ce,xe,ge,Ae){if(ne&&le)throw new se("symbol refinement with Huffman is not supported");var we=[],Fe=0,_e=(0,O.log2)(ue.length+he),De=ge.decoder,Be=ge.contextCache;let Ee,ke;for(ne&&(Ee=q(1),ke=[],_e=Math.max(_e,1));we.length<he;){var pe=ne?ve.tableDeltaHeight.decode(Ae):u(Be,"IADH",De);Fe+=pe;let Xe=0,rt=0;const Ze=ne?ke.length:0;for(;;){var be=ne?ve.tableDeltaWidth.decode(Ae):u(Be,"IADW",De);if(be===null)break;Xe+=be,rt+=Xe;var ye;if(le){var Te=u(Be,"IAAI",De);if(Te>1)ye=F(ne,le,Xe,Fe,0,Te,1,ue.concat(we),_e,0,0,1,0,ve,Ce,xe,ge,0,Ae);else{var Pe=Y(Be,De,_e),Le=u(Be,"IARDX",De),Re=u(Be,"IARDY",De),Ie=Pe<ue.length?ue[Pe]:we[Pe-ue.length];ye=A(Xe,Fe,Ce,Ie,Le,Re,!1,xe,ge)}we.push(ye)}else ne?ke.push(Xe):(ye=E(!1,Xe,Fe,me,!1,null,Se,ge),we.push(ye))}if(ne&&!le){const ct=ve.tableBitmapSize.decode(Ae);Ae.byteAlign();let pt;if(ct===0)pt=ae(Ae,rt,Fe);else{const Ct=Ae.end,ot=Ae.position+ct;Ae.end=ot,pt=ce(Ae,rt,Fe,!1),Ae.end=Ct,Ae.position=ot}const wt=ke.length;if(Ze===wt-1)we.push(pt);else{let Ct,ot,ut=0,Ft,vt,Et;for(Ct=Ze;Ct<wt;Ct++){for(vt=ke[Ct],Ft=ut+vt,Et=[],ot=0;ot<Fe;ot++)Et.push(pt[ot].subarray(ut,Ft));we.push(Et),ut=Ft}}}}for(var He=[],Ue=[],Ge=!1,je=ue.length+he;Ue.length<je;){for(var Oe=ne?Ee.decode(Ae):u(Be,"IAEX",De);Oe--;)Ue.push(Ge);Ge=!Ge}for(var $e=0,tt=ue.length;$e<tt;$e++)Ue[$e]&&He.push(ue[$e]);for(var Ye=0;Ye<he;$e++,Ye++)Ue[$e]&&He.push(we[Ye]);return He}function F(ne,le,ue,he,de,ve,me,Se,Ce,xe,ge,Ae,we,Fe,_e,De,Be,Ee,ke){if(ne&&le)throw new se("refinement with Huffman is not supported");var pe=[],be,ye;for(be=0;be<he;be++){if(ye=new Uint8Array(ue),de)for(var Te=0;Te<ue;Te++)ye[Te]=de;pe.push(ye)}var Pe=Be.decoder,Le=Be.contextCache,Re=ne?-Fe.tableDeltaT.decode(ke):-u(Le,"IADT",Pe),Ie=0;for(be=0;be<ve;){var He=ne?Fe.tableDeltaT.decode(ke):u(Le,"IADT",Pe);Re+=He;var Ue=ne?Fe.tableFirstS.decode(ke):u(Le,"IAFS",Pe);Ie+=Ue;var Ge=Ie;do{let Dt=0;me>1&&(Dt=ne?ke.readBits(Ee):u(Le,"IAIT",Pe));var je=me*Re+Dt,Oe=ne?Fe.symbolIDTable.decode(ke):Y(Le,Pe,Ce),$e=le&&(ne?ke.readBit():u(Le,"IARI",Pe)),tt=Se[Oe],Ye=tt[0].length,Xe=tt.length;if($e){var rt=u(Le,"IARDW",Pe),Ze=u(Le,"IARDH",Pe),ct=u(Le,"IARDX",Pe),pt=u(Le,"IARDY",Pe);Ye+=rt,Xe+=Ze,tt=A(Ye,Xe,_e,tt,(rt>>1)+ct,(Ze>>1)+pt,!1,De,Be)}var wt=je-(Ae&1?0:Xe-1),Ct=Ge-(Ae&2?Ye-1:0),ot,ut,Ft;if(xe){for(ot=0;ot<Xe;ot++)if(ye=pe[Ct+ot],!!ye){Ft=tt[ot];var vt=Math.min(ue-wt,Ye);switch(we){case 0:for(ut=0;ut<vt;ut++)ye[wt+ut]|=Ft[ut];break;case 2:for(ut=0;ut<vt;ut++)ye[wt+ut]^=Ft[ut];break;default:throw new se(`operator ${we} is not supported`)}}Ge+=Xe-1}else{for(ut=0;ut<Xe;ut++)if(ye=pe[wt+ut],!!ye)switch(Ft=tt[ut],we){case 0:for(ot=0;ot<Ye;ot++)ye[Ct+ot]|=Ft[ot];break;case 2:for(ot=0;ot<Ye;ot++)ye[Ct+ot]^=Ft[ot];break;default:throw new se(`operator ${we} is not supported`)}Ge+=Ye-1}be++;var Et=ne?Fe.tableDeltaS.decode(ke):u(Le,"IADS",Pe);if(Et===null)break;Ge+=Et+ge}while(!0)}return pe}function D(ne,le,ue,he,de,ve){const me=[];ne||(me.push({x:-le,y:0}),de===0&&(me.push({x:-3,y:-1}),me.push({x:2,y:-2}),me.push({x:-2,y:-2})));const Se=(he+1)*le,Ce=E(ne,Se,ue,de,!1,null,me,ve),xe=[];for(let ge=0;ge<=he;ge++){const Ae=[],we=le*ge,Fe=we+le;for(let _e=0;_e<ue;_e++)Ae.push(Ce[_e].subarray(we,Fe));xe.push(Ae)}return xe}function L(ne,le,ue,he,de,ve,me,Se,Ce,xe,ge,Ae,we,Fe,_e){if(me)throw new se("skip is not supported");if(Se!==0)throw new se("operator "+Se+" is not supported in halftone region");const Be=[];let Ee,ke,pe;for(Ee=0;Ee<de;Ee++){if(pe=new Uint8Array(he),ve)for(ke=0;ke<he;ke++)pe[ke]=ve;Be.push(pe)}const be=le.length,ye=le[0],Te=ye[0].length,Pe=ye.length,Le=(0,O.log2)(be),Re=[];ne||(Re.push({x:ue<=1?3:2,y:-1}),ue===0&&(Re.push({x:-3,y:-1}),Re.push({x:2,y:-2}),Re.push({x:-2,y:-2})));const Ie=[];let He,Ue;for(ne&&(He=new K(_e.data,_e.start,_e.end)),Ee=Le-1;Ee>=0;Ee--)ne?Ue=ce(He,Ce,xe,!0):Ue=E(!1,Ce,xe,ue,!1,null,Re,_e),Ie[Ee]=Ue;let Ge,je,Oe,$e,tt,Ye,Xe,rt,Ze;for(Ge=0;Ge<xe;Ge++)for(je=0;je<Ce;je++){for(Oe=0,$e=0,ke=Le-1;ke>=0;ke--)Oe=Ie[ke][Ge][je]^Oe,$e|=Oe<<ke;if(tt=le[$e],Ye=ge+Ge*Fe+je*we>>8,Xe=Ae+Ge*we-je*Fe>>8,Ye>=0&&Ye+Te<=he&&Xe>=0&&Xe+Pe<=de)for(Ee=0;Ee<Pe;Ee++)for(Ze=Be[Xe+Ee],rt=tt[Ee],ke=0;ke<Te;ke++)Ze[Ye+ke]|=rt[ke];else{let ct,pt;for(Ee=0;Ee<Pe;Ee++)if(pt=Xe+Ee,!(pt<0||pt>=de))for(Ze=Be[pt],rt=tt[Ee],ke=0;ke<Te;ke++)ct=Ye+ke,ct>=0&&ct<he&&(Ze[ct]|=rt[ke])}}return Be}function k(ne,le){var ue={};ue.number=(0,O.readUint32)(ne,le);var he=ne[le+4],de=he&63;if(!re[de])throw new se("invalid segment type: "+de);ue.type=de,ue.typeName=re[de],ue.deferredNonRetain=!!(he&128);var ve=!!(he&64),me=ne[le+5],Se=me>>5&7,Ce=[me&31],xe=le+6;if(me===7){Se=(0,O.readUint32)(ne,xe-1)&536870911,xe+=3;var ge=Se+7>>3;for(Ce[0]=ne[xe++];--ge>0;)Ce.push(ne[xe++])}else if(me===5||me===6)throw new se("invalid referred-to flags");ue.retainBits=Ce;let Ae=4;ue.number<=256?Ae=1:ue.number<=65536&&(Ae=2);var we=[],Fe,_e;for(Fe=0;Fe<Se;Fe++){let ye;Ae===1?ye=ne[xe]:Ae===2?ye=(0,O.readUint16)(ne,xe):ye=(0,O.readUint32)(ne,xe),we.push(ye),xe+=Ae}if(ue.referredTo=we,ve?(ue.pageAssociation=(0,O.readUint32)(ne,xe),xe+=4):ue.pageAssociation=ne[xe++],ue.length=(0,O.readUint32)(ne,xe),xe+=4,ue.length===4294967295)if(de===38){var De=y(ne,xe),Be=ne[xe+b],Ee=!!(Be&1),ke=6,pe=new Uint8Array(ke);for(Ee||(pe[0]=255,pe[1]=172),pe[2]=De.height>>>24&255,pe[3]=De.height>>16&255,pe[4]=De.height>>8&255,pe[5]=De.height&255,Fe=xe,_e=ne.length;Fe<_e;Fe++){for(var be=0;be<ke&&pe[be]===ne[Fe+be];)be++;if(be===ke){ue.length=Fe+ke;break}}if(ue.length===4294967295)throw new se("segment end was not found")}else throw new se("invalid unknown segment length");return ue.headerEnd=xe,ue}function v(ne,le,ue,he){for(var de=[],ve=ue;ve<he;){var me=k(le,ve);ve=me.headerEnd;var Se={header:me,data:le};if(ne.randomAccess||(Se.start=ve,ve+=me.length,Se.end=ve),de.push(Se),me.type===51)break}if(ne.randomAccess)for(var Ce=0,xe=de.length;Ce<xe;Ce++)de[Ce].start=ve,ve+=de[Ce].header.length,de[Ce].end=ve;return de}function y(ne,le){return{width:(0,O.readUint32)(ne,le),height:(0,O.readUint32)(ne,le+4),x:(0,O.readUint32)(ne,le+8),y:(0,O.readUint32)(ne,le+12),combinationOperator:ne[le+16]&7}}var b=17;function C(ne,le){var ue=ne.header,he=ne.data,de=ne.start,ve=ne.end,me,Se,Ce,xe;switch(ue.type){case 0:var ge={},Ae=(0,O.readUint16)(he,de);if(ge.huffman=!!(Ae&1),ge.refinement=!!(Ae&2),ge.huffmanDHSelector=Ae>>2&3,ge.huffmanDWSelector=Ae>>4&3,ge.bitmapSizeSelector=Ae>>6&1,ge.aggregationInstancesSelector=Ae>>7&1,ge.bitmapCodingContextUsed=!!(Ae&256),ge.bitmapCodingContextRetained=!!(Ae&512),ge.template=Ae>>10&3,ge.refinementTemplate=Ae>>12&1,de+=2,!ge.huffman){for(xe=ge.template===0?4:1,Se=[],Ce=0;Ce<xe;Ce++)Se.push({x:(0,O.readInt8)(he,de),y:(0,O.readInt8)(he,de+1)}),de+=2;ge.at=Se}if(ge.refinement&&!ge.refinementTemplate){for(Se=[],Ce=0;Ce<2;Ce++)Se.push({x:(0,O.readInt8)(he,de),y:(0,O.readInt8)(he,de+1)}),de+=2;ge.refinementAt=Se}ge.numberOfExportedSymbols=(0,O.readUint32)(he,de),de+=4,ge.numberOfNewSymbols=(0,O.readUint32)(he,de),de+=4,me=[ge,ue.number,ue.referredTo,he,de,ve];break;case 6:case 7:var we={};we.info=y(he,de),de+=b;var Fe=(0,O.readUint16)(he,de);if(de+=2,we.huffman=!!(Fe&1),we.refinement=!!(Fe&2),we.logStripSize=Fe>>2&3,we.stripSize=1<<we.logStripSize,we.referenceCorner=Fe>>4&3,we.transposed=!!(Fe&64),we.combinationOperator=Fe>>7&3,we.defaultPixelValue=Fe>>9&1,we.dsOffset=Fe<<17>>27,we.refinementTemplate=Fe>>15&1,we.huffman){var _e=(0,O.readUint16)(he,de);de+=2,we.huffmanFS=_e&3,we.huffmanDS=_e>>2&3,we.huffmanDT=_e>>4&3,we.huffmanRefinementDW=_e>>6&3,we.huffmanRefinementDH=_e>>8&3,we.huffmanRefinementDX=_e>>10&3,we.huffmanRefinementDY=_e>>12&3,we.huffmanRefinementSizeSelector=!!(_e&16384)}if(we.refinement&&!we.refinementTemplate){for(Se=[],Ce=0;Ce<2;Ce++)Se.push({x:(0,O.readInt8)(he,de),y:(0,O.readInt8)(he,de+1)}),de+=2;we.refinementAt=Se}we.numberOfSymbolInstances=(0,O.readUint32)(he,de),de+=4,me=[we,ue.referredTo,he,de,ve];break;case 16:const be={},ye=he[de++];be.mmr=!!(ye&1),be.template=ye>>1&3,be.patternWidth=he[de++],be.patternHeight=he[de++],be.maxPatternIndex=(0,O.readUint32)(he,de),de+=4,me=[be,ue.number,he,de,ve];break;case 22:case 23:const Te={};Te.info=y(he,de),de+=b;const Pe=he[de++];Te.mmr=!!(Pe&1),Te.template=Pe>>1&3,Te.enableSkip=!!(Pe&8),Te.combinationOperator=Pe>>4&7,Te.defaultPixelValue=Pe>>7&1,Te.gridWidth=(0,O.readUint32)(he,de),de+=4,Te.gridHeight=(0,O.readUint32)(he,de),de+=4,Te.gridOffsetX=(0,O.readUint32)(he,de)&4294967295,de+=4,Te.gridOffsetY=(0,O.readUint32)(he,de)&4294967295,de+=4,Te.gridVectorX=(0,O.readUint16)(he,de),de+=2,Te.gridVectorY=(0,O.readUint16)(he,de),de+=2,me=[Te,ue.referredTo,he,de,ve];break;case 38:case 39:var De={};De.info=y(he,de),de+=b;var Be=he[de++];if(De.mmr=!!(Be&1),De.template=Be>>1&3,De.prediction=!!(Be&8),!De.mmr){for(xe=De.template===0?4:1,Se=[],Ce=0;Ce<xe;Ce++)Se.push({x:(0,O.readInt8)(he,de),y:(0,O.readInt8)(he,de+1)}),de+=2;De.at=Se}me=[De,he,de,ve];break;case 48:var Ee={width:(0,O.readUint32)(he,de),height:(0,O.readUint32)(he,de+4),resolutionX:(0,O.readUint32)(he,de+8),resolutionY:(0,O.readUint32)(he,de+12)};Ee.height===4294967295&&delete Ee.height;var ke=he[de+16];(0,O.readUint16)(he,de+17),Ee.lossless=!!(ke&1),Ee.refinement=!!(ke&2),Ee.defaultPixelValue=ke>>2&1,Ee.combinationOperator=ke>>3&3,Ee.requiresBuffer=!!(ke&32),Ee.combinationOperatorOverride=!!(ke&64),me=[Ee];break;case 49:break;case 50:break;case 51:break;case 53:me=[ue.number,he,de,ve];break;case 62:break;default:throw new se(`segment type ${ue.typeName}(${ue.type}) is not implemented`)}var pe="on"+ue.typeName;pe in le&&le[pe].apply(le,me)}function w(ne,le){for(var ue=0,he=ne.length;ue<he;ue++)C(ne[ue],le)}function T(ne){for(var le=new N,ue=0,he=ne.length;ue<he;ue++){var de=ne[ue],ve=v({},de.data,de.start,de.end);w(ve,le)}return le.buffer}function B(ne){const le=ne.length;let ue=0;if(ne[ue]!==151||ne[ue+1]!==74||ne[ue+2]!==66||ne[ue+3]!==50||ne[ue+4]!==13||ne[ue+5]!==10||ne[ue+6]!==26||ne[ue+7]!==10)throw new se("parseJbig2 - invalid header.");const he=Object.create(null);ue+=8;const de=ne[ue++];he.randomAccess=!(de&1),de&2||(he.numberOfPages=(0,O.readUint32)(ne,ue),ue+=4);const ve=v(he,ne,ue,le),me=new N;w(ve,me);const{width:Se,height:Ce}=me.currentPageInfo,xe=me.buffer,ge=new Uint8ClampedArray(Se*Ce);let Ae=0,we=0;for(let Fe=0;Fe<Ce;Fe++){let _e=0,De;for(let Be=0;Be<Se;Be++)_e||(_e=128,De=xe[we++]),ge[Ae++]=De&_e?0:255,_e>>=1}return{imgData:ge,width:Se,height:Ce}}function N(){}N.prototype={onPageInformation:function(le){this.currentPageInfo=le;var ue=le.width+7>>3,he=new Uint8ClampedArray(ue*le.height);if(le.defaultPixelValue)for(var de=0,ve=he.length;de<ve;de++)he[de]=255;this.buffer=he},drawBitmap:function(le,ue){var he=this.currentPageInfo,de=le.width,ve=le.height,me=he.width+7>>3,Se=he.combinationOperatorOverride?le.combinationOperator:he.combinationOperator,Ce=this.buffer,xe=128>>(le.x&7),ge=le.y*me+(le.x>>3),Ae,we,Fe,_e;switch(Se){case 0:for(Ae=0;Ae<ve;Ae++){for(Fe=xe,_e=ge,we=0;we<de;we++)ue[Ae][we]&&(Ce[_e]|=Fe),Fe>>=1,Fe||(Fe=128,_e++);ge+=me}break;case 2:for(Ae=0;Ae<ve;Ae++){for(Fe=xe,_e=ge,we=0;we<de;we++)ue[Ae][we]&&(Ce[_e]^=Fe),Fe>>=1,Fe||(Fe=128,_e++);ge+=me}break;default:throw new se(`operator ${Se} is not supported`)}},onImmediateGenericRegion:function(le,ue,he,de){var ve=le.info,me=new m(ue,he,de),Se=E(le.mmr,ve.width,ve.height,le.template,le.prediction,null,le.at,me);this.drawBitmap(ve,Se)},onImmediateLosslessGenericRegion:function(){this.onImmediateGenericRegion.apply(this,arguments)},onSymbolDictionary:function(le,ue,he,de,ve,me){let Se,Ce;le.huffman&&(Se=oe(le,he,this.customTables),Ce=new K(de,ve,me));var xe=this.symbols;xe||(this.symbols=xe={});for(var ge=[],Ae=0,we=he.length;Ae<we;Ae++){const _e=xe[he[Ae]];_e&&(ge=ge.concat(_e))}var Fe=new m(de,ve,me);xe[ue]=_(le.huffman,le.refinement,ge,le.numberOfNewSymbols,le.numberOfExportedSymbols,Se,le.template,le.at,le.refinementTemplate,le.refinementAt,Fe,Ce)},onImmediateTextRegion:function(le,ue,he,de,ve){var me=le.info;let Se,Ce;for(var xe=this.symbols,ge=[],Ae=0,we=ue.length;Ae<we;Ae++){const Be=xe[ue[Ae]];Be&&(ge=ge.concat(Be))}var Fe=(0,O.log2)(ge.length);le.huffman&&(Ce=new K(he,de,ve),Se=te(le,ue,this.customTables,ge.length,Ce));var _e=new m(he,de,ve),De=F(le.huffman,le.refinement,me.width,me.height,le.defaultPixelValue,le.numberOfSymbolInstances,le.stripSize,ge,Fe,le.transposed,le.dsOffset,le.referenceCorner,le.combinationOperator,Se,le.refinementTemplate,le.refinementAt,_e,le.logStripSize,Ce);this.drawBitmap(me,De)},onImmediateLosslessTextRegion:function(){this.onImmediateTextRegion.apply(this,arguments)},onPatternDictionary(ne,le,ue,he,de){let ve=this.patterns;ve||(this.patterns=ve={});const me=new m(ue,he,de);ve[le]=D(ne.mmr,ne.patternWidth,ne.patternHeight,ne.maxPatternIndex,ne.template,me)},onImmediateHalftoneRegion(ne,le,ue,he,de){const ve=this.patterns[le[0]],me=ne.info,Se=new m(ue,he,de),Ce=L(ne.mmr,ve,ne.template,me.width,me.height,ne.defaultPixelValue,ne.enableSkip,ne.combinationOperator,ne.gridWidth,ne.gridHeight,ne.gridOffsetX,ne.gridOffsetY,ne.gridVectorX,ne.gridVectorY,Se);this.drawBitmap(me,Ce)},onImmediateLosslessHalftoneRegion(){this.onImmediateHalftoneRegion.apply(this,arguments)},onTables(ne,le,ue,he){let de=this.customTables;de||(this.customTables=de={}),de[ne]=$(le,ue,he)}};function Q(ne){ne.length===2?(this.isOOB=!0,this.rangeLow=0,this.prefixLength=ne[0],this.rangeLength=0,this.prefixCode=ne[1],this.isLowerRange=!1):(this.isOOB=!1,this.rangeLow=ne[0],this.prefixLength=ne[1],this.rangeLength=ne[2],this.prefixCode=ne[3],this.isLowerRange=ne[4]==="lower")}function z(ne){this.children=[],ne?(this.isLeaf=!0,this.rangeLength=ne.rangeLength,this.rangeLow=ne.rangeLow,this.isLowerRange=ne.isLowerRange,this.isOOB=ne.isOOB):this.isLeaf=!1}z.prototype={buildTree(ne,le){const ue=ne.prefixCode>>le&1;if(le<=0)this.children[ue]=new z(ne);else{let he=this.children[ue];he||(this.children[ue]=he=new z(null)),he.buildTree(ne,le-1)}},decodeNode(ne){if(this.isLeaf){if(this.isOOB)return null;const ue=ne.readBits(this.rangeLength);return this.rangeLow+(this.isLowerRange?-ue:ue)}const le=this.children[ne.readBit()];if(!le)throw new se("invalid Huffman data");return le.decodeNode(ne)}};function j(ne,le){le||this.assignPrefixCodes(ne),this.rootNode=new z(null);for(let ue=0,he=ne.length;ue<he;ue++){const de=ne[ue];de.prefixLength>0&&this.rootNode.buildTree(de,de.prefixLength-1)}}j.prototype={decode(ne){return this.rootNode.decodeNode(ne)},assignPrefixCodes(ne){const le=ne.length;let ue=0;for(let xe=0;xe<le;xe++)ue=Math.max(ue,ne[xe].prefixLength);const he=new Uint32Array(ue+1);for(let xe=0;xe<le;xe++)he[ne[xe].prefixLength]++;let de=1,ve=0,me,Se,Ce;for(he[0]=0;de<=ue;){for(ve=ve+he[de-1]<<1,me=ve,Se=0;Se<le;)Ce=ne[Se],Ce.prefixLength===de&&(Ce.prefixCode=me,me++),Se++;de++}}};function $(ne,le,ue){const he=ne[le],de=(0,O.readUint32)(ne,le+1)&4294967295,ve=(0,O.readUint32)(ne,le+5)&4294967295,me=new K(ne,le+9,ue),Se=(he>>1&7)+1,Ce=(he>>4&7)+1,xe=[];let ge,Ae,we=de;do ge=me.readBits(Se),Ae=me.readBits(Ce),xe.push(new Q([we,ge,Ae,0])),we+=1<<Ae;while(we<ve);return ge=me.readBits(Se),xe.push(new Q([de-1,ge,32,0,"lower"])),ge=me.readBits(Se),xe.push(new Q([ve,ge,32,0])),he&1&&(ge=me.readBits(Se),xe.push(new Q([ge,0]))),new j(xe,!1)}const M={};function q(ne){let le=M[ne];if(le)return le;let ue;switch(ne){case 1:ue=[[0,1,4,0],[16,2,8,2],[272,3,16,6],[65808,3,32,7]];break;case 2:ue=[[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:ue=[[-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:ue=[[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:ue=[[-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:ue=[[-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:ue=[[-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:ue=[[-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:ue=[[-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:ue=[[-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:ue=[[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:ue=[[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:ue=[[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:ue=[[-2,3,0,4],[-1,3,0,5],[0,1,0,0],[1,3,0,6],[2,3,0,7]];break;case 15:ue=[[-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 se(`standard table B.${ne} does not exist`)}for(let he=0,de=ue.length;he<de;he++)ue[he]=new Q(ue[he]);return le=new j(ue,!0),M[ne]=le,le}function K(ne,le,ue){this.data=ne,this.start=le,this.end=ue,this.position=le,this.shift=-1,this.currentByte=0}K.prototype={readBit(){if(this.shift<0){if(this.position>=this.end)throw new se("end of data while reading bit");this.currentByte=this.data[this.position++],this.shift=7}const ne=this.currentByte>>this.shift&1;return this.shift--,ne},readBits(ne){let le=0,ue;for(ue=ne-1;ue>=0;ue--)le|=this.readBit()<<ue;return le},byteAlign(){this.shift=-1},next(){return this.position>=this.end?-1:this.data[this.position++]}};function Z(ne,le,ue){let he=0;for(let de=0,ve=le.length;de<ve;de++){const me=ue[le[de]];if(me){if(ne===he)return me;he++}}throw new se("can't find custom Huffman table")}function te(ne,le,ue,he,de){const ve=[];for(let we=0;we<=34;we++){const Fe=de.readBits(4);ve.push(new Q([we,Fe,0,0]))}const me=new j(ve,!1);ve.length=0;for(let we=0;we<he;){const Fe=me.decode(de);if(Fe>=32){let _e,De,Be;switch(Fe){case 32:if(we===0)throw new se("no previous value in symbol ID table");De=de.readBits(2)+3,_e=ve[we-1].prefixLength;break;case 33:De=de.readBits(3)+3,_e=0;break;case 34:De=de.readBits(7)+11,_e=0;break;default:throw new se("invalid code length in symbol ID table")}for(Be=0;Be<De;Be++)ve.push(new Q([we,_e,0,0])),we++}else ve.push(new Q([we,Fe,0,0])),we++}de.byteAlign();const Se=new j(ve,!1);let Ce=0,xe,ge,Ae;switch(ne.huffmanFS){case 0:case 1:xe=q(ne.huffmanFS+6);break;case 3:xe=Z(Ce,le,ue),Ce++;break;default:throw new se("invalid Huffman FS selector")}switch(ne.huffmanDS){case 0:case 1:case 2:ge=q(ne.huffmanDS+8);break;case 3:ge=Z(Ce,le,ue),Ce++;break;default:throw new se("invalid Huffman DS selector")}switch(ne.huffmanDT){case 0:case 1:case 2:Ae=q(ne.huffmanDT+11);break;case 3:Ae=Z(Ce,le,ue),Ce++;break;default:throw new se("invalid Huffman DT selector")}if(ne.refinement)throw new se("refinement with Huffman is not supported");return{symbolIDTable:Se,tableFirstS:xe,tableDeltaS:ge,tableDeltaT:Ae}}function oe(ne,le,ue){let he=0,de,ve;switch(ne.huffmanDHSelector){case 0:case 1:de=q(ne.huffmanDHSelector+4);break;case 3:de=Z(he,le,ue),he++;break;default:throw new se("invalid Huffman DH selector")}switch(ne.huffmanDWSelector){case 0:case 1:ve=q(ne.huffmanDWSelector+2);break;case 3:ve=Z(he,le,ue),he++;break;default:throw new se("invalid Huffman DW selector")}let me,Se;return ne.bitmapSizeSelector?(me=Z(he,le,ue),he++):me=q(1),ne.aggregationInstancesSelector?Se=Z(he,le,ue):Se=q(1),{tableDeltaHeight:de,tableDeltaWidth:ve,tableBitmapSize:me,tableAggregateInstances:Se}}function ae(ne,le,ue){const he=[];for(let de=0;de<ue;de++){const ve=new Uint8Array(le);he.push(ve);for(let me=0;me<le;me++)ve[me]=ne.readBit();ne.byteAlign()}return he}function ce(ne,le,ue,he){const de={K:-1,Columns:le,Rows:ue,BlackIs1:!0,EndOfBlock:he},ve=new a.CCITTFaxDecoder(ne,de),me=[];let Se,Ce=!1;for(let xe=0;xe<ue;xe++){const ge=new Uint8Array(le);me.push(ge);let Ae=-1;for(let we=0;we<le;we++)Ae<0&&(Se=ve.readNextChar(),Se===-1&&(Se=0,Ce=!0),Ae=7),ge[we]=Se>>Ae&1,Ae--}if(he&&!Ce)for(let ge=0;ge<5&&ve.readNextChar()!==-1;ge++);return me}function fe(){}return fe.prototype={parseChunks(ne){return T(ne)},parse(ne){const{imgData:le,width:ue,height:he}=B(ne);return this.width=ue,this.height=he,le}},fe}();d.Jbig2Image=H},function(S,d,R){Object.defineProperty(d,"__esModule",{value:!0}),d.ArithmeticDecoder=void 0;const g=[{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}];class O{constructor(a,se,H){this.data=a,this.bp=se,this.dataEnd=H,this.chigh=a[se],this.clow=0,this.byteIn(),this.chigh=this.chigh<<7&65535|this.clow>>9&127,this.clow=this.clow<<7&65535,this.ct-=7,this.a=32768}byteIn(){const a=this.data;let se=this.bp;a[se]===255?a[se+1]>143?(this.clow+=65280,this.ct=8):(se++,this.clow+=a[se]<<9,this.ct=7,this.bp=se):(se++,this.clow+=se<this.dataEnd?a[se]<<8:65280,this.ct=8,this.bp=se),this.clow>65535&&(this.chigh+=this.clow>>16,this.clow&=65535)}readBit(a,se){let H=a[se]>>1,ee=a[se]&1;const ie=g[H],m=ie.qe;let u,Y=this.a-m;if(this.chigh<m)Y<m?(Y=m,u=ee,H=ie.nmps):(Y=m,u=1^ee,ie.switchFlag===1&&(ee=u),H=ie.nlps);else{if(this.chigh-=m,(Y&32768)!==0)return this.a=Y,ee;Y<m?(u=1^ee,ie.switchFlag===1&&(ee=u),H=ie.nlps):(u=ee,H=ie.nmps)}do this.ct===0&&this.byteIn(),Y<<=1,this.chigh=this.chigh<<1&65535|this.clow>>15&1,this.clow=this.clow<<1&65535,this.ct--;while((Y&32768)===0);return this.a=Y,a[se]=H<<1|ee,u}}d.ArithmeticDecoder=O},function(S,d,R){Object.defineProperty(d,"__esModule",{value:!0}),d.JpegStream=void 0;var g=R(12),O=R(5),J=R(19),a=R(2);const se=function(){function ee(ie,m,u,Y){let re;for(;(re=ie.getByte())!==-1;)if(re===255){ie.skip(-1);break}this.stream=ie,this.maybeLength=m,this.dict=u,this.params=Y,g.DecodeStream.call(this,m)}return ee.prototype=Object.create(g.DecodeStream.prototype),Object.defineProperty(ee.prototype,"bytes",{get:function(){return(0,a.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))},configurable:!0}),ee.prototype.ensureBuffer=function(ie){},ee.prototype.readBlock=function(){if(this.eof)return;const ie={decodeTransform:void 0,colorTransform:void 0},m=this.dict.getArray("Decode","D");if(this.forceRGB&&Array.isArray(m)){const re=this.dict.get("BitsPerComponent")||8,U=m.length,X=new Int32Array(U);let W=!1;const G=(1<<re)-1;for(let P=0;P<U;P+=2)X[P]=(m[P+1]-m[P])*256|0,X[P+1]=m[P]*G|0,(X[P]!==256||X[P+1]!==0)&&(W=!0);W&&(ie.decodeTransform=X)}if((0,O.isDict)(this.params)){const re=this.params.get("ColorTransform");Number.isInteger(re)&&(ie.colorTransform=re)}const u=new J.JpegImage(ie);u.parse(this.bytes);const Y=u.getData({width:this.drawWidth,height:this.drawHeight,forceRGB:this.forceRGB,isSourcePDF:!0});this.buffer=Y,this.bufferLength=Y.length,this.eof=!0},ee}();d.JpegStream=se},function(S,d,R){Object.defineProperty(d,"__esModule",{value:!0}),d.JpegImage=void 0;var g=R(2),O=R(8);class J extends g.BaseException{constructor(ie){super(`JPEG error: ${ie}`)}}class a extends g.BaseException{constructor(ie,m){super(ie),this.scanLines=m}}class se extends g.BaseException{}var H=function(){var ie=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]),m=4017,u=799,Y=3406,re=2276,U=1567,X=3784,W=5793,G=2896;function P({decodeTransform:k=null,colorTransform:v=-1}={}){this._decodeTransform=k,this._colorTransform=v}function E(k,v){for(var y=0,b=[],C,w,T=16;T>0&&!k[T-1];)T--;b.push({children:[],index:0});var B=b[0],N;for(C=0;C<T;C++){for(w=0;w<k[C];w++){for(B=b.pop(),B.children[B.index]=v[y];B.index>0;)B=b.pop();for(B.index++,b.push(B);b.length<=C;)b.push(N={children:[],index:0}),B.children[B.index]=N.children,B=N;y++}C+1<T&&(b.push(N={children:[],index:0}),B.children[B.index]=N.children,B=N)}return b[0].children}function A(k,v,y){return 64*((k.blocksPerLine+1)*v+y)}function _(k,v,y,b,C,w,T,B,N,Q=!1){var z=y.mcusPerLine,j=y.progressive;const $=v;let M=0,q=0;function K(){if(q>0)return q--,M>>q&1;if(M=k[v++],M===255){var ye=k[v++];if(ye){if(ye===220&&Q){v+=2;const Te=(0,O.readUint16)(k,v);if(v+=2,Te>0&&Te!==y.scanLines)throw new a("Found DNL marker (0xFFDC) while parsing scan data",Te)}else if(ye===217){if(Q){const Te=ve*8;if(Te>0&&Te<y.scanLines/10)throw new a("Found EOI marker (0xFFD9) while parsing scan data, possibly caused by incorrect `scanLines` parameter",Te)}throw new se("Found EOI marker (0xFFD9) while parsing scan data")}throw new J(`unexpected marker ${(M<<8|ye).toString(16)}`)}}return q=7,M>>>7}function Z(ye){for(var Te=ye;;){switch(Te=Te[K()],typeof Te){case"number":return Te;case"object":continue}throw new J("invalid huffman sequence")}}function te(ye){for(var Te=0;ye>0;)Te=Te<<1|K(),ye--;return Te}function oe(ye){if(ye===1)return K()===1?1:-1;var Te=te(ye);return Te>=1<<ye-1?Te:Te+(-1<<ye)+1}function ae(ye,Te){var Pe=Z(ye.huffmanTableDC),Le=Pe===0?0:oe(Pe);ye.blockData[Te]=ye.pred+=Le;for(var Re=1;Re<64;){var Ie=Z(ye.huffmanTableAC),He=Ie&15,Ue=Ie>>4;if(He===0){if(Ue<15)break;Re+=16;continue}Re+=Ue;var Ge=ie[Re];ye.blockData[Te+Ge]=oe(He),Re++}}function ce(ye,Te){var Pe=Z(ye.huffmanTableDC),Le=Pe===0?0:oe(Pe)<<N;ye.blockData[Te]=ye.pred+=Le}function fe(ye,Te){ye.blockData[Te]|=K()<<N}var ne=0;function le(ye,Te){if(ne>0){ne--;return}for(var Pe=w,Le=T;Pe<=Le;){var Re=Z(ye.huffmanTableAC),Ie=Re&15,He=Re>>4;if(Ie===0){if(He<15){ne=te(He)+(1<<He)-1;break}Pe+=16;continue}Pe+=He;var Ue=ie[Pe];ye.blockData[Te+Ue]=oe(Ie)*(1<<N),Pe++}}var ue=0,he;function de(ye,Te){for(var Pe=w,Le=T,Re=0,Ie,He;Pe<=Le;){const Ue=Te+ie[Pe],Ge=ye.blockData[Ue]<0?-1:1;switch(ue){case 0:if(He=Z(ye.huffmanTableAC),Ie=He&15,Re=He>>4,Ie===0)Re<15?(ne=te(Re)+(1<<Re),ue=4):(Re=16,ue=1);else{if(Ie!==1)throw new J("invalid ACn encoding");he=oe(Ie),ue=Re?2:3}continue;case 1:case 2:ye.blockData[Ue]?ye.blockData[Ue]+=Ge*(K()<<N):(Re--,Re===0&&(ue=ue===2?3:0));break;case 3:ye.blockData[Ue]?ye.blockData[Ue]+=Ge*(K()<<N):(ye.blockData[Ue]=he<<N,ue=0);break;case 4:ye.blockData[Ue]&&(ye.blockData[Ue]+=Ge*(K()<<N));break}Pe++}ue===4&&(ne--,ne===0&&(ue=0))}let ve=0;function me(ye,Te,Pe,Le,Re){var Ie=Pe/z|0,He=Pe%z;ve=Ie*ye.v+Le;var Ue=He*ye.h+Re;const Ge=A(ye,ve,Ue);Te(ye,Ge)}function Se(ye,Te,Pe){ve=Pe/ye.blocksPerLine|0;var Le=Pe%ye.blocksPerLine;const Re=A(ye,ve,Le);Te(ye,Re)}var Ce=b.length,xe,ge,Ae,we,Fe,_e;j?w===0?_e=B===0?ce:fe:_e=B===0?le:de:_e=ae;var De=0,Be,Ee;Ce===1?Ee=b[0].blocksPerLine*b[0].blocksPerColumn:Ee=z*y.mcusPerColumn;for(var ke,pe;De<=Ee;){var be=C?Math.min(Ee-De,C):Ee;if(be>0){for(ge=0;ge<Ce;ge++)b[ge].pred=0;if(ne=0,Ce===1)for(xe=b[0],Fe=0;Fe<be;Fe++)Se(xe,_e,De),De++;else for(Fe=0;Fe<be;Fe++){for(ge=0;ge<Ce;ge++)for(xe=b[ge],ke=xe.h,pe=xe.v,Ae=0;Ae<pe;Ae++)for(we=0;we<ke;we++)me(xe,_e,De,Ae,we);De++}}if(q=0,Be=L(k,v),!Be)break;if(Be.invalid){const ye=be>0?"unexpected":"excessive";(0,g.warn)(`decodeScan - ${ye} MCU data, current marker is: ${Be.invalid}`),v=Be.offset}if(Be.marker>=65488&&Be.marker<=65495)v+=2;else break}return v-$}function F(k,v,y){var b=k.quantizationTable,C=k.blockData,w,T,B,N,Q,z,j,$,M,q,K,Z,te,oe,ae,ce,fe;if(!b)throw new J("missing required Quantization Table.");for(var ne=0;ne<64;ne+=8){if(M=C[v+ne],q=C[v+ne+1],K=C[v+ne+2],Z=C[v+ne+3],te=C[v+ne+4],oe=C[v+ne+5],ae=C[v+ne+6],ce=C[v+ne+7],M*=b[ne],(q|K|Z|te|oe|ae|ce)===0){fe=W*M+512>>10,y[ne]=fe,y[ne+1]=fe,y[ne+2]=fe,y[ne+3]=fe,y[ne+4]=fe,y[ne+5]=fe,y[ne+6]=fe,y[ne+7]=fe;continue}q*=b[ne+1],K*=b[ne+2],Z*=b[ne+3],te*=b[ne+4],oe*=b[ne+5],ae*=b[ne+6],ce*=b[ne+7],w=W*M+128>>8,T=W*te+128>>8,B=K,N=ae,Q=G*(q-ce)+128>>8,$=G*(q+ce)+128>>8,z=Z<<4,j=oe<<4,w=w+T+1>>1,T=w-T,fe=B*X+N*U+128>>8,B=B*U-N*X+128>>8,N=fe,Q=Q+j+1>>1,j=Q-j,$=$+z+1>>1,z=$-z,w=w+N+1>>1,N=w-N,T=T+B+1>>1,B=T-B,fe=Q*re+$*Y+2048>>12,Q=Q*Y-$*re+2048>>12,$=fe,fe=z*u+j*m+2048>>12,z=z*m-j*u+2048>>12,j=fe,y[ne]=w+$,y[ne+7]=w-$,y[ne+1]=T+j,y[ne+6]=T-j,y[ne+2]=B+z,y[ne+5]=B-z,y[ne+3]=N+Q,y[ne+4]=N-Q}for(var le=0;le<8;++le){if(M=y[le],q=y[le+8],K=y[le+16],Z=y[le+24],te=y[le+32],oe=y[le+40],ae=y[le+48],ce=y[le+56],(q|K|Z|te|oe|ae|ce)===0){fe=W*M+8192>>14,fe<-2040?fe=0:fe>=2024?fe=255:fe=fe+2056>>4,C[v+le]=fe,C[v+le+8]=fe,C[v+le+16]=fe,C[v+le+24]=fe,C[v+le+32]=fe,C[v+le+40]=fe,C[v+le+48]=fe,C[v+le+56]=fe;continue}w=W*M+2048>>12,T=W*te+2048>>12,B=K,N=ae,Q=G*(q-ce)+2048>>12,$=G*(q+ce)+2048>>12,z=Z,j=oe,w=(w+T+1>>1)+4112,T=w-T,fe=B*X+N*U+2048>>12,B=B*U-N*X+2048>>12,N=fe,Q=Q+j+1>>1,j=Q-j,$=$+z+1>>1,z=$-z,w=w+N+1>>1,N=w-N,T=T+B+1>>1,B=T-B,fe=Q*re+$*Y+2048>>12,Q=Q*Y-$*re+2048>>12,$=fe,fe=z*u+j*m+2048>>12,z=z*m-j*u+2048>>12,j=fe,M=w+$,ce=w-$,q=T+j,ae=T-j,K=B+z,oe=B-z,Z=N+Q,te=N-Q,M<16?M=0:M>=4080?M=255:M>>=4,q<16?q=0:q>=4080?q=255:q>>=4,K<16?K=0:K>=4080?K=255:K>>=4,Z<16?Z=0:Z>=4080?Z=255:Z>>=4,te<16?te=0:te>=4080?te=255:te>>=4,oe<16?oe=0:oe>=4080?oe=255:oe>>=4,ae<16?ae=0:ae>=4080?ae=255:ae>>=4,ce<16?ce=0:ce>=4080?ce=255:ce>>=4,C[v+le]=M,C[v+le+8]=q,C[v+le+16]=K,C[v+le+24]=Z,C[v+le+32]=te,C[v+le+40]=oe,C[v+le+48]=ae,C[v+le+56]=ce}}function D(k,v){for(var y=v.blocksPerLine,b=v.blocksPerColumn,C=new Int16Array(64),w=0;w<b;w++)for(var T=0;T<y;T++){var B=A(v,w,T);F(v,B,C)}return v.blockData}function L(k,v,y=v){const b=k.length-1;var C=y<v?y:v;if(v>=b)return null;var w=(0,O.readUint16)(k,v);if(w>=65472&&w<=65534)return{invalid:null,marker:w,offset:v};for(var T=(0,O.readUint16)(k,C);!(T>=65472&&T<=65534);){if(++C>=b)return null;T=(0,O.readUint16)(k,C)}return{invalid:w.toString(16),marker:T,offset:C}}return P.prototype={parse(k,{dnlScanLines:v=null}={}){function y(){const ye=(0,O.readUint16)(k,C);C+=2;let Te=C+ye-2;var Pe=L(k,Te,C);Pe&&Pe.invalid&&((0,g.warn)("readDataBlock - incorrect length, current marker is: "+Pe.invalid),Te=Pe.offset);var Le=k.subarray(C,Te);return C+=Le.length,Le}function b(ye){for(var Te=Math.ceil(ye.samplesPerLine/8/ye.maxH),Pe=Math.ceil(ye.scanLines/8/ye.maxV),Le=0;Le<ye.components.length;Le++){Fe=ye.components[Le];var Re=Math.ceil(Math.ceil(ye.samplesPerLine/8)*Fe.h/ye.maxH),Ie=Math.ceil(Math.ceil(ye.scanLines/8)*Fe.v/ye.maxV),He=Te*Fe.h,Ue=Pe*Fe.v,Ge=64*Ue*(He+1);Fe.blockData=new Int16Array(Ge),Fe.blocksPerLine=Re,Fe.blocksPerColumn=Ie}ye.mcusPerLine=Te,ye.mcusPerColumn=Pe}var C=0,w=null,T=null,B,N;let Q=0;var z=[],j=[],$=[];let M=(0,O.readUint16)(k,C);if(C+=2,M!==65496)throw new J("SOI not found");M=(0,O.readUint16)(k,C),C+=2;e:for(;M!==65497;){var q,K,Z;switch(M){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 te=y();M===65504&&te[0]===74&&te[1]===70&&te[2]===73&&te[3]===70&&te[4]===0&&(w={version:{major:te[5],minor:te[6]},densityUnits:te[7],xDensity:te[8]<<8|te[9],yDensity:te[10]<<8|te[11],thumbWidth:te[12],thumbHeight:te[13],thumbData:te.subarray(14,14+3*te[12]*te[13])}),M===65518&&te[0]===65&&te[1]===100&&te[2]===111&&te[3]===98&&te[4]===101&&(T={version:te[5]<<8|te[6],flags0:te[7]<<8|te[8],flags1:te[9]<<8|te[10],transformCode:te[11]});break;case 65499:const ye=(0,O.readUint16)(k,C);C+=2;for(var oe=ye+C-2,ae;C<oe;){var ce=k[C++],fe=new Uint16Array(64);if(ce>>4===0)for(K=0;K<64;K++)ae=ie[K],fe[ae]=k[C++];else if(ce>>4===1)for(K=0;K<64;K++)ae=ie[K],fe[ae]=(0,O.readUint16)(k,C),C+=2;else throw new J("DQT - invalid table spec");z[ce&15]=fe}break;case 65472:case 65473:case 65474:if(B)throw new J("Only single frame JPEGs supported");C+=2,B={},B.extended=M===65473,B.progressive=M===65474,B.precision=k[C++];const Te=(0,O.readUint16)(k,C);C+=2,B.scanLines=v||Te,B.samplesPerLine=(0,O.readUint16)(k,C),C+=2,B.components=[],B.componentIds={};var ne=k[C++],le,ue=0,he=0;for(q=0;q<ne;q++){le=k[C];var de=k[C+1]>>4,ve=k[C+1]&15;ue<de&&(ue=de),he<ve&&(he=ve);var me=k[C+2];Z=B.components.push({h:de,v:ve,quantizationId:me,quantizationTable:null}),B.componentIds[le]=Z-1,C+=3}B.maxH=ue,B.maxV=he,b(B);break;case 65476:const Pe=(0,O.readUint16)(k,C);for(C+=2,q=2;q<Pe;){var Se=k[C++],Ce=new Uint8Array(16),xe=0;for(K=0;K<16;K++,C++)xe+=Ce[K]=k[C];var ge=new Uint8Array(xe);for(K=0;K<xe;K++,C++)ge[K]=k[C];q+=17+xe,(Se>>4===0?$:j)[Se&15]=E(Ce,ge)}break;case 65501:C+=2,N=(0,O.readUint16)(k,C),C+=2;break;case 65498:const Le=++Q===1&&!v;C+=2;var Ae=k[C++],we=[],Fe;for(q=0;q<Ae;q++){var _e=B.componentIds[k[C++]];Fe=B.components[_e];var De=k[C++];Fe.huffmanTableDC=$[De>>4],Fe.huffmanTableAC=j[De&15],we.push(Fe)}var Be=k[C++],Ee=k[C++],ke=k[C++];try{var pe=_(k,C,B,we,N,Be,Ee,ke>>4,ke&15,Le);C+=pe}catch(Ie){if(Ie instanceof a)return(0,g.warn)(`${Ie.message} -- attempting to re-parse the JPEG image.`),this.parse(k,{dnlScanLines:Ie.scanLines});if(Ie instanceof se){(0,g.warn)(`${Ie.message} -- ignoring the rest of the image data.`);break e}throw Ie}break;case 65500:C+=4;break;case 65535:k[C]!==255&&C--;break;default:const Re=L(k,C-2,C-3);if(Re&&Re.invalid){(0,g.warn)("JpegImage.parse - unexpected data, current marker is: "+Re.invalid),C=Re.offset;break}if(C>=k.length-1){(0,g.warn)("JpegImage.parse - reached the end of the image data without finding an EOI marker (0xFFD9).");break e}throw new J("JpegImage.parse - unknown marker: "+M.toString(16))}M=(0,O.readUint16)(k,C),C+=2}for(this.width=B.samplesPerLine,this.height=B.scanLines,this.jfif=w,this.adobe=T,this.components=[],q=0;q<B.components.length;q++){Fe=B.components[q];var be=z[Fe.quantizationId];be&&(Fe.quantizationTable=be),this.components.push({output:D(B,Fe),scaleX:Fe.h/B.maxH,scaleY:Fe.v/B.maxV,blocksPerLine:Fe.blocksPerLine,blocksPerColumn:Fe.blocksPerColumn})}this.numComponents=this.components.length},_getLinearizedBlockData(k,v,y=!1){var b=this.width/k,C=this.height/v,w,T,B,N,Q,z,j,$,M,q,K=0,Z,te=this.components.length,oe=k*v*te,ae=new Uint8ClampedArray(oe),ce=new Uint32Array(k),fe=4294967288;let ne;for(j=0;j<te;j++){if(w=this.components[j],T=w.scaleX*b,B=w.scaleY*C,K=j,Z=w.output,N=w.blocksPerLine+1<<3,T!==ne){for(Q=0;Q<k;Q++)$=0|Q*T,ce[Q]=($&fe)<<3|$&7;ne=T}for(z=0;z<v;z++)for($=0|z*B,q=N*($&fe)|($&7)<<3,Q=0;Q<k;Q++)ae[K]=Z[q+ce[Q]],K+=te}let le=this._decodeTransform;if(!y&&te===4&&!le&&(le=new Int32Array([-256,255,-256,255,-256,255,-256,255])),le)for(j=0;j<oe;)for($=0,M=0;$<te;$++,j++,M+=2)ae[j]=(ae[j]*le[M]>>8)+le[M+1];return ae},get _isColorConversionNeeded(){return this.adobe?!!this.adobe.transformCode:this.numComponents===3?this._colorTransform!==0:this._colorTransform===1},_convertYccToRgb:function(v){for(var y,b,C,w=0,T=v.length;w<T;w+=3)y=v[w],b=v[w+1],C=v[w+2],v[w]=y-179.456+1.402*C,v[w+1]=y+135.459-.344*b-.714*C,v[w+2]=y-226.816+1.772*b;return v},_convertYcckToRgb:function(v){for(var y,b,C,w,T=0,B=0,N=v.length;B<N;B+=4)y=v[B],b=v[B+1],C=v[B+2],w=v[B+3],v[T++]=-122.67195406894+b*(-660635669420364e-19*b+.000437130475926232*C-54080610064599e-18*y+.00048449797120281*w-.154362151871126)+C*(-.000957964378445773*C+.000817076911346625*y-.00477271405408747*w+1.53380253221734)+y*(.000961250184130688*y-.00266257332283933*w+.48357088451265)+w*(-.000336197177618394*w+.484791561490776),v[T++]=107.268039397724+b*(219927104525741e-19*b-.000640992018297945*C+.000659397001245577*y+.000426105652938837*w-.176491792462875)+C*(-.000778269941513683*C+.00130872261408275*y+.000770482631801132*w-.151051492775562)+y*(.00126935368114843*y-.00265090189010898*w+.25802910206845)+w*(-.000318913117588328*w-.213742400323665),v[T++]=-20.810012546947+b*(-.000570115196973677*b-263409051004589e-19*C+.0020741088115012*y-.00288260236853442*w+.814272968359295)+C*(-153496057440975e-19*C-.000132689043961446*y+.000560833691242812*w-.195152027534049)+y*(.00174418132927582*y-.00255243321439347*w+.116935020465145)+w*(-.000343531996510555*w+.24165260232407);return v.subarray(0,T)},_convertYcckToCmyk:function(v){for(var y,b,C,w=0,T=v.length;w<T;w+=4)y=v[w],b=v[w+1],C=v[w+2],v[w]=434.456-y-1.402*C,v[w+1]=119.541-y+.344*b+.714*C,v[w+2]=481.816-y-1.772*b;return v},_convertCmykToRgb:function(v){for(var y,b,C,w,T=0,B=0,N=v.length;B<N;B+=4)y=v[B],b=v[B+1],C=v[B+2],w=v[B+3],v[T++]=255+y*(-6747147073602441e-20*y+.0008379262121013727*b+.0002894718188643294*C+.003264231057537806*w-1.1185611867203937)+b*(26374107616089405e-21*b-8626949158638572e-20*C-.0002748769067499491*w-.02155688794978967)+C*(-3878099212869363e-20*C-.0003267808279485286*w+.0686742238595345)-w*(.0003361971776183937*w+.7430659151342254),v[T++]=255+y*(.00013596372813588848*y+.000924537132573585*b+.00010567359618683593*C+.0004791864687436512*w-.3109689587515875)+b*(-.00023545346108370344*b+.0002702845253534714*C+.0020200308977307156*w-.7488052167015494)+C*(6834815998235662e-20*C+.00015168452363460973*w-.09751927774728933)-w*(.0003189131175883281*w+.7364883807733168),v[T++]=255+y*(13598650411385307e-21*y+.00012423956175490851*b+.0004751985097583589*C-36729317476630422e-22*w-.05562186980264034)+b*(.00016141380598724676*b+.0009692239130725186*C+.0007782692450036253*w-.44015232367526463)+C*(5068882914068769e-22*C+.0017778369011375071*w-.7591454649749609)-w*(.0003435319965105553*w+.7063770186160144);return v.subarray(0,T)},getData({width:k,height:v,forceRGB:y=!1,isSourcePDF:b=!1}){if(this.numComponents>4)throw new J("Unsupported color mode");var C=this._getLinearizedBlockData(k,v,b);if(this.numComponents===1&&y){for(var w=C.length,T=new Uint8ClampedArray(w*3),B=0,N=0;N<w;N++){var Q=C[N];T[B++]=Q,T[B++]=Q,T[B++]=Q}return T}else{if(this.numComponents===3&&this._isColorConversionNeeded)return this._convertYccToRgb(C);if(this.numComponents===4){if(this._isColorConversionNeeded)return y?this._convertYcckToRgb(C):this._convertYcckToCmyk(C);if(y)return this._convertCmykToRgb(C)}}return C}},P}();d.JpegImage=H},function(S,d,R){Object.defineProperty(d,"__esModule",{value:!0}),d.JpxStream=void 0;var g=R(12),O=R(21),J=R(2);const a=function(){function H(ee,ie,m,u){this.stream=ee,this.maybeLength=ie,this.dict=m,this.params=u,g.DecodeStream.call(this,ie)}return H.prototype=Object.create(g.DecodeStream.prototype),Object.defineProperty(H.prototype,"bytes",{get:function(){return(0,J.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))},configurable:!0}),H.prototype.ensureBuffer=function(ee){},H.prototype.readBlock=function(){if(this.eof)return;const ee=new O.JpxImage;ee.parse(this.bytes);const ie=ee.width,m=ee.height,u=ee.componentsCount,Y=ee.tiles.length;if(Y===1)this.buffer=ee.tiles[0].items;else{const re=new Uint8ClampedArray(ie*m*u);for(let U=0;U<Y;U++){const X=ee.tiles[U],W=X.width,G=X.height,P=X.left,E=X.top,A=X.items;let _=0,F=(ie*E+P)*u;const D=ie*u,L=W*u;for(let k=0;k<G;k++){const v=A.subarray(_,_+L);re.set(v,F),_+=L,F+=D}}this.buffer=re}this.bufferLength=this.buffer.length,this.eof=!0},H}();d.JpxStream=a},function(S,d,R){Object.defineProperty(d,"__esModule",{value:!0}),d.JpxImage=void 0;var g=R(2),O=R(8),J=R(17);class a extends g.BaseException{constructor(ee){super(`JPX error: ${ee}`)}}var se=function(){var ee={LL:0,LH:1,HL:1,HH:2};function ie(){this.failOnCorruptedImage=!1}ie.prototype={parse:function(j){var $=(0,O.readUint16)(j,0);if($===65359){this.parseCodestream(j,0,j.length);return}for(var M=0,q=j.length;M<q;){var K=8,Z=(0,O.readUint32)(j,M),te=(0,O.readUint32)(j,M+4);if(M+=K,Z===1&&(Z=(0,O.readUint32)(j,M)*4294967296+(0,O.readUint32)(j,M+4),M+=8,K+=8),Z===0&&(Z=q-M+K),Z<K)throw new a("Invalid box field size");var oe=Z-K,ae=!0;switch(te){case 1785737832:ae=!1;break;case 1668246642:var ce=j[M];if(ce===1){var fe=(0,O.readUint32)(j,M+3);switch(fe){case 16:case 17:case 18:break;default:(0,g.warn)("Unknown colorspace "+fe);break}}else ce===2&&(0,g.info)("ICC profile not supported");break;case 1785737827:this.parseCodestream(j,M,M+oe);break;case 1783636e3:(0,O.readUint32)(j,M)!==218793738&&(0,g.warn)("Invalid JP2 signature");break;case 1783634458:case 1718909296:case 1920099697:case 1919251232:case 1768449138:break;default:var ne=String.fromCharCode(te>>24&255,te>>16&255,te>>8&255,te&255);(0,g.warn)("Unsupported header type "+te+" ("+ne+")");break}ae&&(M+=oe)}},parseImageProperties:function(j){for(var $=j.getByte();$>=0;){var M=$;$=j.getByte();var q=M<<8|$;if(q===65361){j.skip(4);var K=j.getInt32()>>>0,Z=j.getInt32()>>>0,te=j.getInt32()>>>0,oe=j.getInt32()>>>0;j.skip(16);var ae=j.getUint16();this.width=K-te,this.height=Z-oe,this.componentsCount=ae,this.bitsPerComponent=8;return}}throw new a("No size marker found in JPX stream")},parseCodestream:function(j,$,M){var q={},K=!1;try{for(var Z=$;Z+1<M;){var te=(0,O.readUint16)(j,Z);Z+=2;var oe=0,ae,ce,fe,ne,le,ue;switch(te){case 65359:q.mainHeader=!0;break;case 65497:break;case 65361:oe=(0,O.readUint16)(j,Z);var he={};he.Xsiz=(0,O.readUint32)(j,Z+4),he.Ysiz=(0,O.readUint32)(j,Z+8),he.XOsiz=(0,O.readUint32)(j,Z+12),he.YOsiz=(0,O.readUint32)(j,Z+16),he.XTsiz=(0,O.readUint32)(j,Z+20),he.YTsiz=(0,O.readUint32)(j,Z+24),he.XTOsiz=(0,O.readUint32)(j,Z+28),he.YTOsiz=(0,O.readUint32)(j,Z+32);var de=(0,O.readUint16)(j,Z+36);he.Csiz=de;var ve=[];ae=Z+38;for(var me=0;me<de;me++){var Se={precision:(j[ae]&127)+1,isSigned:!!(j[ae]&128),XRsiz:j[ae+1],YRsiz:j[ae+2]};ae+=3,m(Se,he),ve.push(Se)}q.SIZ=he,q.components=ve,u(q,ve),q.QCC=[],q.COC=[];break;case 65372:oe=(0,O.readUint16)(j,Z);var Ce={};switch(ae=Z+2,ce=j[ae++],ce&31){case 0:ne=8,le=!0;break;case 1:ne=16,le=!1;break;case 2:ne=16,le=!0;break;default:throw new Error("Invalid SQcd value "+ce)}for(Ce.noQuantization=ne===8,Ce.scalarExpounded=le,Ce.guardBits=ce>>5,fe=[];ae<oe+Z;){var xe={};ne===8?(xe.epsilon=j[ae++]>>3,xe.mu=0):(xe.epsilon=j[ae]>>3,xe.mu=(j[ae]&7)<<8|j[ae+1],ae+=2),fe.push(xe)}Ce.SPqcds=fe,q.mainHeader?q.QCD=Ce:(q.currentTile.QCD=Ce,q.currentTile.QCC=[]);break;case 65373:oe=(0,O.readUint16)(j,Z);var ge={};ae=Z+2;var Ae;switch(q.SIZ.Csiz<257?Ae=j[ae++]:(Ae=(0,O.readUint16)(j,ae),ae+=2),ce=j[ae++],ce&31){case 0:ne=8,le=!0;break;case 1:ne=16,le=!1;break;case 2:ne=16,le=!0;break;default:throw new Error("Invalid SQcd value "+ce)}for(ge.noQuantization=ne===8,ge.scalarExpounded=le,ge.guardBits=ce>>5,fe=[];ae<oe+Z;)xe={},ne===8?(xe.epsilon=j[ae++]>>3,xe.mu=0):(xe.epsilon=j[ae]>>3,xe.mu=(j[ae]&7)<<8|j[ae+1],ae+=2),fe.push(xe);ge.SPqcds=fe,q.mainHeader?q.QCC[Ae]=ge:q.currentTile.QCC[Ae]=ge;break;case 65362:oe=(0,O.readUint16)(j,Z);var we={};ae=Z+2;var Fe=j[ae++];we.entropyCoderWithCustomPrecincts=!!(Fe&1),we.sopMarkerUsed=!!(Fe&2),we.ephMarkerUsed=!!(Fe&4),we.progressionOrder=j[ae++],we.layersCount=(0,O.readUint16)(j,ae),ae+=2,we.multipleComponentTransform=j[ae++],we.decompositionLevelsCount=j[ae++],we.xcb=(j[ae++]&15)+2,we.ycb=(j[ae++]&15)+2;var _e=j[ae++];if(we.selectiveArithmeticCodingBypass=!!(_e&1),we.resetContextProbabilities=!!(_e&2),we.terminationOnEachCodingPass=!!(_e&4),we.verticallyStripe=!!(_e&8),we.predictableTermination=!!(_e&16),we.segmentationSymbolUsed=!!(_e&32),we.reversibleTransformation=j[ae++],we.entropyCoderWithCustomPrecincts){for(var De=[];ae<oe+Z;){var Be=j[ae++];De.push({PPx:Be&15,PPy:Be>>4})}we.precinctsSizes=De}var Ee=[];if(we.selectiveArithmeticCodingBypass&&Ee.push("selectiveArithmeticCodingBypass"),we.resetContextProbabilities&&Ee.push("resetContextProbabilities"),we.terminationOnEachCodingPass&&Ee.push("terminationOnEachCodingPass"),we.verticallyStripe&&Ee.push("verticallyStripe"),we.predictableTermination&&Ee.push("predictableTermination"),Ee.length>0)throw K=!0,new Error("Unsupported COD options ("+Ee.join(", ")+")");q.mainHeader?q.COD=we:(q.currentTile.COD=we,q.currentTile.COC=[]);break;case 65424:oe=(0,O.readUint16)(j,Z),ue={},ue.index=(0,O.readUint16)(j,Z+2),ue.length=(0,O.readUint32)(j,Z+4),ue.dataEnd=ue.length+Z-2,ue.partIndex=j[Z+8],ue.partsCount=j[Z+9],q.mainHeader=!1,ue.partIndex===0&&(ue.COD=q.COD,ue.COC=q.COC.slice(0),ue.QCD=q.QCD,ue.QCC=q.QCC.slice(0)),q.currentTile=ue;break;case 65427:ue=q.currentTile,ue.partIndex===0&&(b(q,ue.index),D(q)),oe=ue.dataEnd-Z,L(q,j,Z,oe);break;case 65365:case 65367:case 65368:case 65380:oe=(0,O.readUint16)(j,Z);break;case 65363:throw new Error("Codestream code 0xFF53 (COC) is not implemented");default:throw new Error("Unknown codestream code: "+te.toString(16))}Z+=oe}}catch(ke){if(K||this.failOnCorruptedImage)throw new a(ke.message);(0,g.warn)("JPX: Trying to recover from: "+ke.message)}this.tiles=y(q),this.width=q.SIZ.Xsiz-q.SIZ.XOsiz,this.height=q.SIZ.Ysiz-q.SIZ.YOsiz,this.componentsCount=q.SIZ.Csiz}};function m(z,j){z.x0=Math.ceil(j.XOsiz/z.XRsiz),z.x1=Math.ceil(j.Xsiz/z.XRsiz),z.y0=Math.ceil(j.YOsiz/z.YRsiz),z.y1=Math.ceil(j.Ysiz/z.YRsiz),z.width=z.x1-z.x0,z.height=z.y1-z.y0}function u(z,j){for(var $=z.SIZ,M,q=[],K=Math.ceil(($.Xsiz-$.XTOsiz)/$.XTsiz),Z=Math.ceil(($.Ysiz-$.YTOsiz)/$.YTsiz),te=0;te<Z;te++)for(var oe=0;oe<K;oe++)M={},M.tx0=Math.max($.XTOsiz+oe*$.XTsiz,$.XOsiz),M.ty0=Math.max($.YTOsiz+te*$.YTsiz,$.YOsiz),M.tx1=Math.min($.XTOsiz+(oe+1)*$.XTsiz,$.Xsiz),M.ty1=Math.min($.YTOsiz+(te+1)*$.YTsiz,$.Ysiz),M.width=M.tx1-M.tx0,M.height=M.ty1-M.ty0,M.components=[],q.push(M);z.tiles=q;for(var ae=$.Csiz,ce=0,fe=ae;ce<fe;ce++)for(var ne=j[ce],le=0,ue=q.length;le<ue;le++){var he={};M=q[le],he.tcx0=Math.ceil(M.tx0/ne.XRsiz),he.tcy0=Math.ceil(M.ty0/ne.YRsiz),he.tcx1=Math.ceil(M.tx1/ne.XRsiz),he.tcy1=Math.ceil(M.ty1/ne.YRsiz),he.width=he.tcx1-he.tcx0,he.height=he.tcy1-he.tcy0,M.components[ce]=he}}function Y(z,j,$){var M=j.codingStyleParameters,q={};return M.entropyCoderWithCustomPrecincts?(q.PPx=M.precinctsSizes[$].PPx,q.PPy=M.precinctsSizes[$].PPy):(q.PPx=15,q.PPy=15),q.xcb_=$>0?Math.min(M.xcb,q.PPx-1):Math.min(M.xcb,q.PPx),q.ycb_=$>0?Math.min(M.ycb,q.PPy-1):Math.min(M.ycb,q.PPy),q}function re(z,j,$){var M=1<<$.PPx,q=1<<$.PPy,K=j.resLevel===0,Z=1<<$.PPx+(K?0:-1),te=1<<$.PPy+(K?0:-1),oe=j.trx1>j.trx0?Math.ceil(j.trx1/M)-Math.floor(j.trx0/M):0,ae=j.try1>j.try0?Math.ceil(j.try1/q)-Math.floor(j.try0/q):0,ce=oe*ae;j.precinctParameters={precinctWidth:M,precinctHeight:q,numprecinctswide:oe,numprecinctshigh:ae,numprecincts:ce,precinctWidthInSubband:Z,precinctHeightInSubband:te}}function U(z,j,$){var M=$.xcb_,q=$.ycb_,K=1<<M,Z=1<<q,te=j.tbx0>>M,oe=j.tby0>>q,ae=j.tbx1+K-1>>M,ce=j.tby1+Z-1>>q,fe=j.resolution.precinctParameters,ne=[],le=[],ue,he,de,ve;for(he=oe;he<ce;he++)for(ue=te;ue<ae;ue++){de={cbx:ue,cby:he,tbx0:K*ue,tby0:Z*he,tbx1:K*(ue+1),tby1:Z*(he+1)},de.tbx0_=Math.max(j.tbx0,de.tbx0),de.tby0_=Math.max(j.tby0,de.tby0),de.tbx1_=Math.min(j.tbx1,de.tbx1),de.tby1_=Math.min(j.tby1,de.tby1);var me=Math.floor((de.tbx0_-j.tbx0)/fe.precinctWidthInSubband),Se=Math.floor((de.tby0_-j.tby0)/fe.precinctHeightInSubband);if(ve=me+Se*fe.numprecinctswide,de.precinctNumber=ve,de.subbandType=j.type,de.Lblock=3,!(de.tbx1_<=de.tbx0_||de.tby1_<=de.tby0_)){ne.push(de);var Ce=le[ve];Ce!==void 0?(ue<Ce.cbxMin?Ce.cbxMin=ue:ue>Ce.cbxMax&&(Ce.cbxMax=ue),he<Ce.cbyMin?Ce.cbxMin=he:he>Ce.cbyMax&&(Ce.cbyMax=he)):le[ve]=Ce={cbxMin:ue,cbyMin:he,cbxMax:ue,cbyMax:he},de.precinct=Ce}}j.codeblockParameters={codeblockWidth:M,codeblockHeight:q,numcodeblockwide:ae-te+1,numcodeblockhigh:ce-oe+1},j.codeblocks=ne,j.precincts=le}function X(z,j,$){for(var M=[],q=z.subbands,K=0,Z=q.length;K<Z;K++)for(var te=q[K],oe=te.codeblocks,ae=0,ce=oe.length;ae<ce;ae++){var fe=oe[ae];fe.precinctNumber===j&&M.push(fe)}return{layerNumber:$,codeblocks:M}}function W(z){for(var j=z.SIZ,$=z.currentTile.index,M=z.tiles[$],q=M.codingStyleDefaultParameters.layersCount,K=j.Csiz,Z=0,te=0;te<K;te++)Z=Math.max(Z,M.components[te].codingStyleParameters.decompositionLevelsCount);var oe=0,ae=0,ce=0,fe=0;this.nextPacket=function(){for(;oe<q;oe++){for(;ae<=Z;ae++){for(;ce<K;ce++){var le=M.components[ce];if(!(ae>le.codingStyleParameters.decompositionLevelsCount)){for(var ue=le.resolutions[ae],he=ue.precinctParameters.numprecincts;fe<he;){var de=X(ue,fe,oe);return fe++,de}fe=0}}ce=0}ae=0}throw new a("Out of packets")}}function G(z){for(var j=z.SIZ,$=z.currentTile.index,M=z.tiles[$],q=M.codingStyleDefaultParameters.layersCount,K=j.Csiz,Z=0,te=0;te<K;te++)Z=Math.max(Z,M.components[te].codingStyleParameters.decompositionLevelsCount);var oe=0,ae=0,ce=0,fe=0;this.nextPacket=function(){for(;oe<=Z;oe++){for(;ae<q;ae++){for(;ce<K;ce++){var le=M.components[ce];if(!(oe>le.codingStyleParameters.decompositionLevelsCount)){for(var ue=le.resolutions[oe],he=ue.precinctParameters.numprecincts;fe<he;){var de=X(ue,fe,ae);return fe++,de}fe=0}}ce=0}ae=0}throw new a("Out of packets")}}function P(z){var j=z.SIZ,$=z.currentTile.index,M=z.tiles[$],q=M.codingStyleDefaultParameters.layersCount,K=j.Csiz,Z,te,oe,ae,ce=0;for(oe=0;oe<K;oe++){const ue=M.components[oe];ce=Math.max(ce,ue.codingStyleParameters.decompositionLevelsCount)}var fe=new Int32Array(ce+1);for(te=0;te<=ce;++te){var ne=0;for(oe=0;oe<K;++oe){var le=M.components[oe].resolutions;te<le.length&&(ne=Math.max(ne,le[te].precinctParameters.numprecincts))}fe[te]=ne}Z=0,te=0,oe=0,ae=0,this.nextPacket=function(){for(;te<=ce;te++){for(;ae<fe[te];ae++){for(;oe<K;oe++){const me=M.components[oe];if(!(te>me.codingStyleParameters.decompositionLevelsCount)){var he=me.resolutions[te],de=he.precinctParameters.numprecincts;if(!(ae>=de)){for(;Z<q;){var ve=X(he,ae,Z);return Z++,ve}Z=0}}}oe=0}ae=0}throw new a("Out of packets")}}function E(z){var j=z.SIZ,$=z.currentTile.index,M=z.tiles[$],q=M.codingStyleDefaultParameters.layersCount,K=j.Csiz,Z=F(M),te=Z,oe=0,ae=0,ce=0,fe=0,ne=0;this.nextPacket=function(){for(;ne<te.maxNumHigh;ne++){for(;fe<te.maxNumWide;fe++){for(;ce<K;ce++){for(var ue=M.components[ce],he=ue.codingStyleParameters.decompositionLevelsCount;ae<=he;ae++){var de=ue.resolutions[ae],ve=Z.components[ce].resolutions[ae],me=_(fe,ne,ve,te,de);if(me!==null){for(;oe<q;){var Se=X(de,me,oe);return oe++,Se}oe=0}}ae=0}ce=0}fe=0}throw new a("Out of packets")}}function A(z){var j=z.SIZ,$=z.currentTile.index,M=z.tiles[$],q=M.codingStyleDefaultParameters.layersCount,K=j.Csiz,Z=F(M),te=0,oe=0,ae=0,ce=0,fe=0;this.nextPacket=function(){for(;ae<K;++ae){for(var le=M.components[ae],ue=Z.components[ae],he=le.codingStyleParameters.decompositionLevelsCount;fe<ue.maxNumHigh;fe++){for(;ce<ue.maxNumWide;ce++){for(;oe<=he;oe++){var de=le.resolutions[oe],ve=ue.resolutions[oe],me=_(ce,fe,ve,ue,de);if(me!==null){for(;te<q;){var Se=X(de,me,te);return te++,Se}te=0}}oe=0}ce=0}fe=0}throw new a("Out of packets")}}function _(z,j,$,M,q){var K=z*M.minWidth,Z=j*M.minHeight;if(K%$.width!==0||Z%$.height!==0)return null;var te=Z/$.width*q.precinctParameters.numprecinctswide;return K/$.height+te}function F(z){for(var j=z.components.length,$=Number.MAX_VALUE,M=Number.MAX_VALUE,q=0,K=0,Z=new Array(j),te=0;te<j;te++){for(var oe=z.components[te],ae=oe.codingStyleParameters.decompositionLevelsCount,ce=new Array(ae+1),fe=Number.MAX_VALUE,ne=Number.MAX_VALUE,le=0,ue=0,he=1,de=ae;de>=0;--de){var ve=oe.resolutions[de],me=he*ve.precinctParameters.precinctWidth,Se=he*ve.precinctParameters.precinctHeight;fe=Math.min(fe,me),ne=Math.min(ne,Se),le=Math.max(le,ve.precinctParameters.numprecinctswide),ue=Math.max(ue,ve.precinctParameters.numprecinctshigh),ce[de]={width:me,height:Se},he<<=1}$=Math.min($,fe),M=Math.min(M,ne),q=Math.max(q,le),K=Math.max(K,ue),Z[te]={resolutions:ce,minWidth:fe,minHeight:ne,maxNumWide:le,maxNumHigh:ue}}return{components:Z,minWidth:$,minHeight:M,maxNumWide:q,maxNumHigh:K}}function D(z){for(var j=z.SIZ,$=z.currentTile.index,M=z.tiles[$],q=j.Csiz,K=0;K<q;K++){for(var Z=M.components[K],te=Z.codingStyleParameters.decompositionLevelsCount,oe=[],ae=[],ce=0;ce<=te;ce++){var fe=Y(z,Z,ce),ne={},le=1<<te-ce;ne.trx0=Math.ceil(Z.tcx0/le),ne.try0=Math.ceil(Z.tcy0/le),ne.trx1=Math.ceil(Z.tcx1/le),ne.try1=Math.ceil(Z.tcy1/le),ne.resLevel=ce,re(z,ne,fe),oe.push(ne);var ue;if(ce===0)ue={},ue.type="LL",ue.tbx0=Math.ceil(Z.tcx0/le),ue.tby0=Math.ceil(Z.tcy0/le),ue.tbx1=Math.ceil(Z.tcx1/le),ue.tby1=Math.ceil(Z.tcy1/le),ue.resolution=ne,U(z,ue,fe),ae.push(ue),ne.subbands=[ue];else{var he=1<<te-ce+1,de=[];ue={},ue.type="HL",ue.tbx0=Math.ceil(Z.tcx0/he-.5),ue.tby0=Math.ceil(Z.tcy0/he),ue.tbx1=Math.ceil(Z.tcx1/he-.5),ue.tby1=Math.ceil(Z.tcy1/he),ue.resolution=ne,U(z,ue,fe),ae.push(ue),de.push(ue),ue={},ue.type="LH",ue.tbx0=Math.ceil(Z.tcx0/he),ue.tby0=Math.ceil(Z.tcy0/he-.5),ue.tbx1=Math.ceil(Z.tcx1/he),ue.tby1=Math.ceil(Z.tcy1/he-.5),ue.resolution=ne,U(z,ue,fe),ae.push(ue),de.push(ue),ue={},ue.type="HH",ue.tbx0=Math.ceil(Z.tcx0/he-.5),ue.tby0=Math.ceil(Z.tcy0/he-.5),ue.tbx1=Math.ceil(Z.tcx1/he-.5),ue.tby1=Math.ceil(Z.tcy1/he-.5),ue.resolution=ne,U(z,ue,fe),ae.push(ue),de.push(ue),ne.subbands=de}}Z.resolutions=oe,Z.subbands=ae}var ve=M.codingStyleDefaultParameters.progressionOrder;switch(ve){case 0:M.packetsIterator=new W(z);break;case 1:M.packetsIterator=new G(z);break;case 2:M.packetsIterator=new P(z);break;case 3:M.packetsIterator=new E(z);break;case 4:M.packetsIterator=new A(z);break;default:throw new a(`Unsupported progression order ${ve}`)}}function L(z,j,$,M){var q=0,K,Z=0,te=!1;function oe(He){for(;Z<He;){var Ue=j[$+q];q++,te?(K=K<<7|Ue,Z+=7,te=!1):(K=K<<8|Ue,Z+=8),Ue===255&&(te=!0)}return Z-=He,K>>>Z&(1<<He)-1}function ae(He){return j[$+q-1]===255&&j[$+q]===He?(ce(1),!0):j[$+q]===255&&j[$+q+1]===He?(ce(2),!0):!1}function ce(He){q+=He}function fe(){Z=0,te&&(q++,te=!1)}function ne(){if(oe(1)===0)return 1;if(oe(1)===0)return 2;var He=oe(2);return He<3?He+3:(He=oe(5),He<31?He+6:(He=oe(7),He+37))}for(var le=z.currentTile.index,ue=z.tiles[le],he=z.COD.sopMarkerUsed,de=z.COD.ephMarkerUsed,ve=ue.packetsIterator;q<M;){fe(),he&&ae(145)&&ce(4);var me=ve.nextPacket();if(!!oe(1)){for(var Se=me.layerNumber,Ce=[],xe,ge=0,Ae=me.codeblocks.length;ge<Ae;ge++){xe=me.codeblocks[ge];var we=xe.precinct,Fe=xe.cbx-we.cbxMin,_e=xe.cby-we.cbyMin,De=!1,Be=!1,Ee;if(xe.included!==void 0)De=!!oe(1);else{we=xe.precinct;var ke,pe;if(we.inclusionTree!==void 0)ke=we.inclusionTree;else{var be=we.cbxMax-we.cbxMin+1,ye=we.cbyMax-we.cbyMin+1;ke=new w(be,ye,Se),pe=new C(be,ye),we.inclusionTree=ke,we.zeroBitPlanesTree=pe}if(ke.reset(Fe,_e,Se))for(;;)if(oe(1)){if(Ee=!ke.nextLevel(),Ee){xe.included=!0,De=Be=!0;break}}else{ke.incrementValue(Se);break}}if(!!De){if(Be){for(pe=we.zeroBitPlanesTree,pe.reset(Fe,_e);;)if(oe(1)){if(Ee=!pe.nextLevel(),Ee)break}else pe.incrementValue();xe.zeroBitPlanes=pe.value}for(var Te=ne();oe(1);)xe.Lblock++;var Pe=(0,O.log2)(Te),Le=(Te<1<<Pe?Pe-1:Pe)+xe.Lblock,Re=oe(Le);Ce.push({codeblock:xe,codingpasses:Te,dataLength:Re})}}for(fe(),de&&ae(146);Ce.length>0;){var Ie=Ce.shift();xe=Ie.codeblock,xe.data===void 0&&(xe.data=[]),xe.data.push({data:j,start:$+q,end:$+q+Ie.dataLength,codingpasses:Ie.codingpasses}),q+=Ie.dataLength}}}return q}function k(z,j,$,M,q,K,Z,te){for(var oe=M.tbx0,ae=M.tby0,ce=M.tbx1-M.tbx0,fe=M.codeblocks,ne=M.type.charAt(0)==="H"?1:0,le=M.type.charAt(1)==="H"?j:0,ue=0,he=fe.length;ue<he;++ue){var de=fe[ue],ve=de.tbx1_-de.tbx0_,me=de.tby1_-de.tby0_;if(!(ve===0||me===0)&&de.data!==void 0){var Se,Ce;Se=new T(ve,me,de.subbandType,de.zeroBitPlanes,K),Ce=2;var xe=de.data,ge=0,Ae=0,we,Fe,_e;for(we=0,Fe=xe.length;we<Fe;we++)_e=xe[we],ge+=_e.end-_e.start,Ae+=_e.codingpasses;var De=new Uint8Array(ge),Be=0;for(we=0,Fe=xe.length;we<Fe;we++){_e=xe[we];var Ee=_e.data.subarray(_e.start,_e.end);De.set(Ee,Be),Be+=Ee.length}var ke=new J.ArithmeticDecoder(De,0,ge);for(Se.setDecoder(ke),we=0;we<Ae;we++){switch(Ce){case 0:Se.runSignificancePropagationPass();break;case 1:Se.runMagnitudeRefinementPass();break;case 2:Se.runCleanupPass(),te&&Se.checkSegmentationSymbol();break}Ce=(Ce+1)%3}var pe=de.tbx0_-oe+(de.tby0_-ae)*ce,be=Se.coefficentsSign,ye=Se.coefficentsMagnitude,Te=Se.bitsDecoded,Pe=Z?0:.5,Le,Re,Ie;Be=0;var He=M.type!=="LL";for(we=0;we<me;we++){var Ue=pe/ce|0,Ge=2*Ue*(j-ce)+ne+le;for(Le=0;Le<ve;Le++){if(Re=ye[Be],Re!==0){Re=(Re+Pe)*q,be[Be]!==0&&(Re=-Re),Ie=Te[Be];var je=He?Ge+(pe<<1):pe;Z&&Ie>=K?z[je]=Re:z[je]=Re*(1<<K-Ie)}pe++,Be++}pe+=ce-ve}}}}function v(z,j,$){for(var M=j.components[$],q=M.codingStyleParameters,K=M.quantizationParameters,Z=q.decompositionLevelsCount,te=K.SPqcds,oe=K.scalarExpounded,ae=K.guardBits,ce=q.segmentationSymbolUsed,fe=z.components[$].precision,ne=q.reversibleTransformation,le=ne?new Q:new N,ue=[],he=0,de=0;de<=Z;de++){for(var ve=M.resolutions[de],me=ve.trx1-ve.trx0,Se=ve.try1-ve.try0,Ce=new Float32Array(me*Se),xe=0,ge=ve.subbands.length;xe<ge;xe++){var Ae,we;oe?(Ae=te[he].mu,we=te[he].epsilon,he++):(Ae=te[0].mu,we=te[0].epsilon+(de>0?1-de:0));var Fe=ve.subbands[xe],_e=ee[Fe.type],De=ne?1:2**(fe+_e-we)*(1+Ae/2048),Be=ae+we-1;k(Ce,me,Se,Fe,De,Be,ne,ce)}ue.push({width:me,height:Se,items:Ce})}var Ee=le.calculate(ue,M.tcx0,M.tcy0);return{left:M.tcx0,top:M.tcy0,width:Ee.width,height:Ee.height,items:Ee.items}}function y(z){for(var j=z.SIZ,$=z.components,M=j.Csiz,q=[],K=0,Z=z.tiles.length;K<Z;K++){var te=z.tiles[K],oe=[],ae;for(ae=0;ae<M;ae++)oe[ae]=v(z,te,ae);var ce=oe[0],fe=new Uint8ClampedArray(ce.items.length*M),ne={left:ce.left,top:ce.top,width:ce.width,height:ce.height,items:fe},le,ue,he=0,de,ve,me,Se,Ce;if(te.codingStyleDefaultParameters.multipleComponentTransform){var xe=M===4,ge=oe[0].items,Ae=oe[1].items,we=oe[2].items,Fe=xe?oe[3].items:null;le=$[0].precision-8,ue=(128<<le)+.5;var _e=te.components[0],De=M-3;if(ve=ge.length,_e.codingStyleParameters.reversibleTransformation)for(de=0;de<ve;de++,he+=De){me=ge[de]+ue,Se=Ae[de],Ce=we[de];const Ee=me-(Ce+Se>>2);fe[he++]=Ee+Ce>>le,fe[he++]=Ee>>le,fe[he++]=Ee+Se>>le}else for(de=0;de<ve;de++,he+=De)me=ge[de]+ue,Se=Ae[de],Ce=we[de],fe[he++]=me+1.402*Ce>>le,fe[he++]=me-.34413*Se-.71414*Ce>>le,fe[he++]=me+1.772*Se>>le;if(xe)for(de=0,he=3;de<ve;de++,he+=4)fe[he]=Fe[de]+ue>>le}else for(ae=0;ae<M;ae++){var Be=oe[ae].items;for(le=$[ae].precision-8,ue=(128<<le)+.5,he=ae,de=0,ve=Be.length;de<ve;de++)fe[he]=Be[de]+ue>>le,he+=M}q.push(ne)}return q}function b(z,j){for(var $=z.SIZ,M=$.Csiz,q=z.tiles[j],K=0;K<M;K++){var Z=q.components[K],te=z.currentTile.QCC[K]!==void 0?z.currentTile.QCC[K]:z.currentTile.QCD;Z.quantizationParameters=te;var oe=z.currentTile.COC[K]!==void 0?z.currentTile.COC[K]:z.currentTile.COD;Z.codingStyleParameters=oe}q.codingStyleDefaultParameters=z.currentTile.COD}var C=function(){function j($,M){var q=(0,O.log2)(Math.max($,M))+1;this.levels=[];for(var K=0;K<q;K++){var Z={width:$,height:M,items:[]};this.levels.push(Z),$=Math.ceil($/2),M=Math.ceil(M/2)}}return j.prototype={reset:function(M,q){for(var K=0,Z=0,te;K<this.levels.length;){te=this.levels[K];var oe=M+q*te.width;if(te.items[oe]!==void 0){Z=te.items[oe];break}te.index=oe,M>>=1,q>>=1,K++}K--,te=this.levels[K],te.items[te.index]=Z,this.currentLevel=K,delete this.value},incrementValue:function(){var M=this.levels[this.currentLevel];M.items[M.index]++},nextLevel:function(){var M=this.currentLevel,q=this.levels[M],K=q.items[q.index];return M--,M<0?(this.value=K,!1):(this.currentLevel=M,q=this.levels[M],q.items[q.index]=K,!0)}},j}(),w=function(){function j($,M,q){var K=(0,O.log2)(Math.max($,M))+1;this.levels=[];for(var Z=0;Z<K;Z++){for(var te=new Uint8Array($*M),oe=0,ae=te.length;oe<ae;oe++)te[oe]=q;var ce={width:$,height:M,items:te};this.levels.push(ce),$=Math.ceil($/2),M=Math.ceil(M/2)}}return j.prototype={reset:function(M,q,K){for(var Z=0;Z<this.levels.length;){var te=this.levels[Z],oe=M+q*te.width;te.index=oe;var ae=te.items[oe];if(ae===255)break;if(ae>K)return this.currentLevel=Z,this.propagateValues(),!1;M>>=1,q>>=1,Z++}return this.currentLevel=Z-1,!0},incrementValue:function(M){var q=this.levels[this.currentLevel];q.items[q.index]=M+1,this.propagateValues()},propagateValues:function(){for(var M=this.currentLevel,q=this.levels[M],K=q.items[q.index];--M>=0;)q=this.levels[M],q.items[q.index]=K},nextLevel:function(){var M=this.currentLevel,q=this.levels[M],K=q.items[q.index];return q.items[q.index]=255,M--,M<0?!1:(this.currentLevel=M,q=this.levels[M],q.items[q.index]=K,!0)}},j}(),T=function(){var j=17,$=18,M=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]),q=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]),K=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]);function Z(te,oe,ae,ce,fe){this.width=te,this.height=oe;let ne;ae==="HH"?ne=K:ae==="HL"?ne=q:ne=M,this.contextLabelTable=ne;var le=te*oe;this.neighborsSignificance=new Uint8Array(le),this.coefficentsSign=new Uint8Array(le);let ue;fe>14?ue=new Uint32Array(le):fe>6?ue=new Uint16Array(le):ue=new Uint8Array(le),this.coefficentsMagnitude=ue,this.processingFlags=new Uint8Array(le);var he=new Uint8Array(le);if(ce!==0)for(var de=0;de<le;de++)he[de]=ce;this.bitsDecoded=he,this.reset()}return Z.prototype={setDecoder:function(oe){this.decoder=oe},reset:function(){this.contexts=new Int8Array(19),this.contexts[0]=4<<1|0,this.contexts[j]=46<<1|0,this.contexts[$]=3<<1|0},setNeighborsSignificance:function(oe,ae,ce){var fe=this.neighborsSignificance,ne=this.width,le=this.height,ue=ae>0,he=ae+1<ne,de;oe>0&&(de=ce-ne,ue&&(fe[de-1]+=16),he&&(fe[de+1]+=16),fe[de]+=4),oe+1<le&&(de=ce+ne,ue&&(fe[de-1]+=16),he&&(fe[de+1]+=16),fe[de]+=4),ue&&(fe[ce-1]+=1),he&&(fe[ce+1]+=1),fe[ce]|=128},runSignificancePropagationPass:function(){for(var oe=this.decoder,ae=this.width,ce=this.height,fe=this.coefficentsMagnitude,ne=this.coefficentsSign,le=this.neighborsSignificance,ue=this.processingFlags,he=this.contexts,de=this.contextLabelTable,ve=this.bitsDecoded,me=-2,Se=1,Ce=2,xe=0;xe<ce;xe+=4)for(var ge=0;ge<ae;ge++)for(var Ae=xe*ae+ge,we=0;we<4;we++,Ae+=ae){var Fe=xe+we;if(Fe>=ce)break;if(ue[Ae]&=me,!(fe[Ae]||!le[Ae])){var _e=de[le[Ae]],De=oe.readBit(he,_e);if(De){var Be=this.decodeSignBit(Fe,ge,Ae);ne[Ae]=Be,fe[Ae]=1,this.setNeighborsSignificance(Fe,ge,Ae),ue[Ae]|=Ce}ve[Ae]++,ue[Ae]|=Se}}},decodeSignBit:function(oe,ae,ce){var fe=this.width,ne=this.height,le=this.coefficentsMagnitude,ue=this.coefficentsSign,he,de,ve,me,Se,Ce;me=ae>0&&le[ce-1]!==0,ae+1<fe&&le[ce+1]!==0?(ve=ue[ce+1],me?(de=ue[ce-1],he=1-ve-de):he=1-ve-ve):me?(de=ue[ce-1],he=1-de-de):he=0;var xe=3*he;return me=oe>0&&le[ce-fe]!==0,oe+1<ne&&le[ce+fe]!==0?(ve=ue[ce+fe],me?(de=ue[ce-fe],he=1-ve-de+xe):he=1-ve-ve+xe):me?(de=ue[ce-fe],he=1-de-de+xe):he=xe,he>=0?(Se=9+he,Ce=this.decoder.readBit(this.contexts,Se)):(Se=9-he,Ce=this.decoder.readBit(this.contexts,Se)^1),Ce},runMagnitudeRefinementPass:function(){for(var oe=this.decoder,ae=this.width,ce=this.height,fe=this.coefficentsMagnitude,ne=this.neighborsSignificance,le=this.contexts,ue=this.bitsDecoded,he=this.processingFlags,de=1,ve=2,me=ae*ce,Se=ae*4,Ce=0,xe;Ce<me;Ce=xe){xe=Math.min(me,Ce+Se);for(var ge=0;ge<ae;ge++)for(var Ae=Ce+ge;Ae<xe;Ae+=ae)if(!(!fe[Ae]||(he[Ae]&de)!==0)){var we=16;if((he[Ae]&ve)!==0){he[Ae]^=ve;var Fe=ne[Ae]&127;we=Fe===0?15:14}var _e=oe.readBit(le,we);fe[Ae]=fe[Ae]<<1|_e,ue[Ae]++,he[Ae]|=de}}},runCleanupPass:function(){for(var oe=this.decoder,ae=this.width,ce=this.height,fe=this.neighborsSignificance,ne=this.coefficentsMagnitude,le=this.coefficentsSign,ue=this.contexts,he=this.contextLabelTable,de=this.bitsDecoded,ve=this.processingFlags,me=1,Se=2,Ce=ae,xe=ae*2,ge=ae*3,Ae,we=0;we<ce;we=Ae){Ae=Math.min(we+4,ce);for(var Fe=we*ae,_e=we+3<ce,De=0;De<ae;De++){var Be=Fe+De,Ee=_e&&ve[Be]===0&&ve[Be+Ce]===0&&ve[Be+xe]===0&&ve[Be+ge]===0&&fe[Be]===0&&fe[Be+Ce]===0&&fe[Be+xe]===0&&fe[Be+ge]===0,ke=0,pe=Be,be=we,ye;if(Ee){var Te=oe.readBit(ue,$);if(!Te){de[Be]++,de[Be+Ce]++,de[Be+xe]++,de[Be+ge]++;continue}ke=oe.readBit(ue,j)<<1|oe.readBit(ue,j),ke!==0&&(be=we+ke,pe+=ke*ae),ye=this.decodeSignBit(be,De,pe),le[pe]=ye,ne[pe]=1,this.setNeighborsSignificance(be,De,pe),ve[pe]|=Se,pe=Be;for(var Pe=we;Pe<=be;Pe++,pe+=ae)de[pe]++;ke++}for(be=we+ke;be<Ae;be++,pe+=ae)if(!(ne[pe]||(ve[pe]&me)!==0)){var Le=he[fe[pe]],Re=oe.readBit(ue,Le);Re===1&&(ye=this.decodeSignBit(be,De,pe),le[pe]=ye,ne[pe]=1,this.setNeighborsSignificance(be,De,pe),ve[pe]|=Se),de[pe]++}}}},checkSegmentationSymbol:function(){var oe=this.decoder,ae=this.contexts,ce=oe.readBit(ae,j)<<3|oe.readBit(ae,j)<<2|oe.readBit(ae,j)<<1|oe.readBit(ae,j);if(ce!==10)throw new a("Invalid segmentation symbol")}},Z}(),B=function(){function j(){}return j.prototype.calculate=function(M,q,K){for(var Z=M[0],te=1,oe=M.length;te<oe;te++)Z=this.iterate(Z,M[te],q,K);return Z},j.prototype.extend=function(M,q,K){var Z=q-1,te=q+1,oe=q+K-2,ae=q+K;M[Z--]=M[te++],M[ae++]=M[oe--],M[Z--]=M[te++],M[ae++]=M[oe--],M[Z--]=M[te++],M[ae++]=M[oe--],M[Z]=M[te],M[ae]=M[oe]},j.prototype.iterate=function(M,q,K,Z){var te=M.width,oe=M.height,ae=M.items,ce=q.width,fe=q.height,ne=q.items,le,ue,he,de,ve,me;for(he=0,le=0;le<oe;le++)for(de=le*2*ce,ue=0;ue<te;ue++,he++,de+=2)ne[de]=ae[he];ae=M.items=null;var Se=4,Ce=new Float32Array(ce+2*Se);if(ce===1){if((K&1)!==0)for(me=0,he=0;me<fe;me++,he+=ce)ne[he]*=.5}else for(me=0,he=0;me<fe;me++,he+=ce)Ce.set(ne.subarray(he,he+ce),Se),this.extend(Ce,Se,ce),this.filter(Ce,Se,ce),ne.set(Ce.subarray(Se,Se+ce),he);var xe=16,ge=[];for(le=0;le<xe;le++)ge.push(new Float32Array(fe+2*Se));var Ae,we=0;if(M=Se+fe,fe===1){if((Z&1)!==0)for(ve=0;ve<ce;ve++)ne[ve]*=.5}else for(ve=0;ve<ce;ve++){if(we===0){for(xe=Math.min(ce-ve,xe),he=ve,de=Se;de<M;he+=ce,de++)for(Ae=0;Ae<xe;Ae++)ge[Ae][de]=ne[he+Ae];we=xe}we--;var Fe=ge[we];if(this.extend(Fe,Se,fe),this.filter(Fe,Se,fe),we===0)for(he=ve-xe+1,de=Se;de<M;he+=ce,de++)for(Ae=0;Ae<xe;Ae++)ne[he+Ae]=ge[Ae][de]}return{width:ce,height:fe,items:ne}},j}(),N=function(){function j(){B.call(this)}return j.prototype=Object.create(B.prototype),j.prototype.filter=function(M,q,K){var Z=K>>1;q=q|0;var te,oe,ae,ce,fe=-1.586134342059924,ne=-.052980118572961,le=.882911075530934,ue=.443506852043971,he=1.230174104914001,de=1/he;for(te=q-3,oe=Z+4;oe--;te+=2)M[te]*=de;for(te=q-2,ae=ue*M[te-1],oe=Z+3;oe--&&(ce=ue*M[te+1],M[te]=he*M[te]-ae-ce,oe--);te+=2)te+=2,ae=ue*M[te+1],M[te]=he*M[te]-ae-ce;for(te=q-1,ae=le*M[te-1],oe=Z+2;oe--&&(ce=le*M[te+1],M[te]-=ae+ce,oe--);te+=2)te+=2,ae=le*M[te+1],M[te]-=ae+ce;for(te=q,ae=ne*M[te-1],oe=Z+1;oe--&&(ce=ne*M[te+1],M[te]-=ae+ce,oe--);te+=2)te+=2,ae=ne*M[te+1],M[te]-=ae+ce;if(Z!==0)for(te=q+1,ae=fe*M[te-1],oe=Z;oe--&&(ce=fe*M[te+1],M[te]-=ae+ce,oe--);te+=2)te+=2,ae=fe*M[te+1],M[te]-=ae+ce},j}(),Q=function(){function j(){B.call(this)}return j.prototype=Object.create(B.prototype),j.prototype.filter=function(M,q,K){var Z=K>>1;q=q|0;var te,oe;for(te=q,oe=Z+1;oe--;te+=2)M[te]-=M[te-1]+M[te+1]+2>>2;for(te=q+1,oe=Z;oe--;te+=2)M[te]+=M[te-1]+M[te+1]>>1},j}();return ie}();d.JpxImage=se},function(S,d,R){Object.defineProperty(d,"__esModule",{value:!0}),d.calculateSHA512=d.calculateSHA384=d.calculateSHA256=d.calculateMD5=d.PDF20=d.PDF17=d.CipherTransformFactory=d.ARCFourCipher=d.AES256Cipher=d.AES128Cipher=void 0;var g=R(2),O=R(5),J=R(12),a=function(){function A(_){this.a=0,this.b=0;var F=new Uint8Array(256),D,L=0,k,v=_.length;for(D=0;D<256;++D)F[D]=D;for(D=0;D<256;++D)k=F[D],L=L+k+_[D%v]&255,F[D]=F[L],F[L]=k;this.s=F}return A.prototype={encryptBlock:function(F){var D,L=F.length,k,v,y=this.a,b=this.b,C=this.s,w=new Uint8Array(L);for(D=0;D<L;++D)y=y+1&255,k=C[y],b=b+k&255,v=C[b],C[y]=v,C[b]=k,w[D]=F[D]^C[k+v&255];return this.a=y,this.b=b,w}},A.prototype.decryptBlock=A.prototype.encryptBlock,A}();d.ARCFourCipher=a;var se=function(){var A=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]),_=new Int32Array([-680876936,-389564586,606105819,-1044525330,-176418897,1200080426,-1473231341,-45705983,1770035416,-1958414417,-42063,-1990404162,1804603682,-40341101,-1502002290,1236535329,-165796510,-1069501632,643717713,-373897302,-701558691,38016083,-660478335,-405537848,568446438,-1019803690,-187363961,1163531501,-1444681467,-51403784,1735328473,-1926607734,-378558,-2022574463,1839030562,-35309556,-1530992060,1272893353,-155497632,-1094730640,681279174,-358537222,-722521979,76029189,-640364487,-421815835,530742520,-995338651,-198630844,1126891415,-1416354905,-57434055,1700485571,-1894986606,-1051523,-2054922799,1873313359,-30611744,-1560198380,1309151649,-145523070,-1120210379,718787259,-343485551]);function F(D,L,k){var v=1732584193,y=-271733879,b=-1732584194,C=271733878,w=k+72&-64,T=new Uint8Array(w),B,N,Q;for(B=0;B<k;++B)T[B]=D[L++];for(T[B++]=128,Q=w-8;B<Q;)T[B++]=0;T[B++]=k<<3&255,T[B++]=k>>5&255,T[B++]=k>>13&255,T[B++]=k>>21&255,T[B++]=k>>>29&255,T[B++]=0,T[B++]=0,T[B++]=0;var z=new Int32Array(16);for(B=0;B<w;){for(N=0;N<16;++N,B+=4)z[N]=T[B]|T[B+1]<<8|T[B+2]<<16|T[B+3]<<24;var j=v,$=y,M=b,q=C,K,Z;for(N=0;N<64;++N){N<16?(K=$&M|~$&q,Z=N):N<32?(K=q&$|~q&M,Z=5*N+1&15):N<48?(K=$^M^q,Z=3*N+5&15):(K=M^($|~q),Z=7*N&15);var te=q,oe=j+K+_[N]+z[Z]|0,ae=A[N];q=M,M=$,$=$+(oe<<ae|oe>>>32-ae)|0,j=te}v=v+j|0,y=y+$|0,b=b+M|0,C=C+q|0}return new Uint8Array([v&255,v>>8&255,v>>16&255,v>>>24&255,y&255,y>>8&255,y>>16&255,y>>>24&255,b&255,b>>8&255,b>>16&255,b>>>24&255,C&255,C>>8&255,C>>16&255,C>>>24&255])}return F}();d.calculateMD5=se;var H=function(){function A(_,F){this.high=_|0,this.low=F|0}return A.prototype={and:function(F){this.high&=F.high,this.low&=F.low},xor:function(F){this.high^=F.high,this.low^=F.low},or:function(F){this.high|=F.high,this.low|=F.low},shiftRight:function(F){F>=32?(this.low=this.high>>>F-32|0,this.high=0):(this.low=this.low>>>F|this.high<<32-F,this.high=this.high>>>F|0)},shiftLeft:function(F){F>=32?(this.high=this.low<<F-32,this.low=0):(this.high=this.high<<F|this.low>>>32-F,this.low=this.low<<F)},rotateRight:function(F){var D,L;F&32?(L=this.low,D=this.high):(D=this.low,L=this.high),F&=31,this.low=D>>>F|L<<32-F,this.high=L>>>F|D<<32-F},not:function(){this.high=~this.high,this.low=~this.low},add:function(F){var D=(this.low>>>0)+(F.low>>>0),L=(this.high>>>0)+(F.high>>>0);D>4294967295&&(L+=1),this.low=D|0,this.high=L|0},copyTo:function(F,D){F[D]=this.high>>>24&255,F[D+1]=this.high>>16&255,F[D+2]=this.high>>8&255,F[D+3]=this.high&255,F[D+4]=this.low>>>24&255,F[D+5]=this.low>>16&255,F[D+6]=this.low>>8&255,F[D+7]=this.low&255},assign:function(F){this.high=F.high,this.low=F.low}},A}(),ee=function(){function A(C,w){return C>>>w|C<<32-w}function _(C,w,T){return C&w^~C&T}function F(C,w,T){return C&w^C&T^w&T}function D(C){return A(C,2)^A(C,13)^A(C,22)}function L(C){return A(C,6)^A(C,11)^A(C,25)}function k(C){return A(C,7)^A(C,18)^C>>>3}function v(C){return A(C,17)^A(C,19)^C>>>10}var y=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function b(C,w,T){var B=1779033703,N=3144134277,Q=1013904242,z=2773480762,j=1359893119,$=2600822924,M=528734635,q=1541459225,K=Math.ceil((T+9)/64)*64,Z=new Uint8Array(K),te,oe,ae;for(te=0;te<T;++te)Z[te]=C[w++];for(Z[te++]=128,ae=K-8;te<ae;)Z[te++]=0;Z[te++]=0,Z[te++]=0,Z[te++]=0,Z[te++]=T>>>29&255,Z[te++]=T>>21&255,Z[te++]=T>>13&255,Z[te++]=T>>5&255,Z[te++]=T<<3&255;var ce=new Uint32Array(64);for(te=0;te<K;){for(oe=0;oe<16;++oe)ce[oe]=Z[te]<<24|Z[te+1]<<16|Z[te+2]<<8|Z[te+3],te+=4;for(oe=16;oe<64;++oe)ce[oe]=v(ce[oe-2])+ce[oe-7]+k(ce[oe-15])+ce[oe-16]|0;var fe=B,ne=N,le=Q,ue=z,he=j,de=$,ve=M,me=q,Se,Ce;for(oe=0;oe<64;++oe)Se=me+L(he)+_(he,de,ve)+y[oe]+ce[oe],Ce=D(fe)+F(fe,ne,le),me=ve,ve=de,de=he,he=ue+Se|0,ue=le,le=ne,ne=fe,fe=Se+Ce|0;B=B+fe|0,N=N+ne|0,Q=Q+le|0,z=z+ue|0,j=j+he|0,$=$+de|0,M=M+ve|0,q=q+me|0}return new Uint8Array([B>>24&255,B>>16&255,B>>8&255,B&255,N>>24&255,N>>16&255,N>>8&255,N&255,Q>>24&255,Q>>16&255,Q>>8&255,Q&255,z>>24&255,z>>16&255,z>>8&255,z&255,j>>24&255,j>>16&255,j>>8&255,j&255,$>>24&255,$>>16&255,$>>8&255,$&255,M>>24&255,M>>16&255,M>>8&255,M&255,q>>24&255,q>>16&255,q>>8&255,q&255])}return b}();d.calculateSHA256=ee;var ie=function(){function A(b,C,w,T,B){b.assign(C),b.and(w),B.assign(C),B.not(),B.and(T),b.xor(B)}function _(b,C,w,T,B){b.assign(C),b.and(w),B.assign(C),B.and(T),b.xor(B),B.assign(w),B.and(T),b.xor(B)}function F(b,C,w){b.assign(C),b.rotateRight(28),w.assign(C),w.rotateRight(34),b.xor(w),w.assign(C),w.rotateRight(39),b.xor(w)}function D(b,C,w){b.assign(C),b.rotateRight(14),w.assign(C),w.rotateRight(18),b.xor(w),w.assign(C),w.rotateRight(41),b.xor(w)}function L(b,C,w){b.assign(C),b.rotateRight(1),w.assign(C),w.rotateRight(8),b.xor(w),w.assign(C),w.shiftRight(7),b.xor(w)}function k(b,C,w){b.assign(C),b.rotateRight(19),w.assign(C),w.rotateRight(61),b.xor(w),w.assign(C),w.shiftRight(6),b.xor(w)}var v=[new H(1116352408,3609767458),new H(1899447441,602891725),new H(3049323471,3964484399),new H(3921009573,2173295548),new H(961987163,4081628472),new H(1508970993,3053834265),new H(2453635748,2937671579),new H(2870763221,3664609560),new H(3624381080,2734883394),new H(310598401,1164996542),new H(607225278,1323610764),new H(1426881987,3590304994),new H(1925078388,4068182383),new H(2162078206,991336113),new H(2614888103,633803317),new H(3248222580,3479774868),new H(3835390401,2666613458),new H(4022224774,944711139),new H(264347078,2341262773),new H(604807628,2007800933),new H(770255983,1495990901),new H(1249150122,1856431235),new H(1555081692,3175218132),new H(1996064986,2198950837),new H(2554220882,3999719339),new H(2821834349,766784016),new H(2952996808,2566594879),new H(3210313671,3203337956),new H(3336571891,1034457026),new H(3584528711,2466948901),new H(113926993,3758326383),new H(338241895,168717936),new H(666307205,1188179964),new H(773529912,1546045734),new H(1294757372,1522805485),new H(1396182291,2643833823),new H(1695183700,2343527390),new H(1986661051,1014477480),new H(2177026350,1206759142),new H(2456956037,344077627),new H(2730485921,1290863460),new H(2820302411,3158454273),new H(3259730800,3505952657),new H(3345764771,106217008),new H(3516065817,3606008344),new H(3600352804,1432725776),new H(4094571909,1467031594),new H(275423344,851169720),new H(430227734,3100823752),new H(506948616,1363258195),new H(659060556,3750685593),new H(883997877,3785050280),new H(958139571,3318307427),new H(1322822218,3812723403),new H(1537002063,2003034995),new H(1747873779,3602036899),new H(1955562222,1575990012),new H(2024104815,1125592928),new H(2227730452,2716904306),new H(2361852424,442776044),new H(2428436474,593698344),new H(2756734187,3733110249),new H(3204031479,2999351573),new H(3329325298,3815920427),new H(3391569614,3928383900),new H(3515267271,566280711),new H(3940187606,3454069534),new H(4118630271,4000239992),new H(116418474,1914138554),new H(174292421,2731055270),new H(289380356,3203993006),new H(460393269,320620315),new H(685471733,587496836),new H(852142971,1086792851),new H(1017036298,365543100),new H(1126000580,2618297676),new H(1288033470,3409855158),new H(1501505948,4234509866),new H(1607167915,987167468),new H(1816402316,1246189591)];function y(b,C,w,T){T=!!T;var B,N,Q,z,j,$,M,q;T?(B=new H(3418070365,3238371032),N=new H(1654270250,914150663),Q=new H(2438529370,812702999),z=new H(355462360,4144912697),j=new H(1731405415,4290775857),$=new H(2394180231,1750603025),M=new H(3675008525,1694076839),q=new H(1203062813,3204075428)):(B=new H(1779033703,4089235720),N=new H(3144134277,2227873595),Q=new H(1013904242,4271175723),z=new H(2773480762,1595750129),j=new H(1359893119,2917565137),$=new H(2600822924,725511199),M=new H(528734635,4215389547),q=new H(1541459225,327033209));var K=Math.ceil((w+17)/128)*128,Z=new Uint8Array(K),te,oe,ae;for(te=0;te<w;++te)Z[te]=b[C++];for(Z[te++]=128,ae=K-16;te<ae;)Z[te++]=0;Z[te++]=0,Z[te++]=0,Z[te++]=0,Z[te++]=0,Z[te++]=0,Z[te++]=0,Z[te++]=0,Z[te++]=0,Z[te++]=0,Z[te++]=0,Z[te++]=0,Z[te++]=w>>>29&255,Z[te++]=w>>21&255,Z[te++]=w>>13&255,Z[te++]=w>>5&255,Z[te++]=w<<3&255;var ce=new Array(80);for(te=0;te<80;te++)ce[te]=new H(0,0);var fe=new H(0,0),ne=new H(0,0),le=new H(0,0),ue=new H(0,0),he=new H(0,0),de=new H(0,0),ve=new H(0,0),me=new H(0,0),Se=new H(0,0),Ce=new H(0,0),xe=new H(0,0),ge=new H(0,0),Ae;for(te=0;te<K;){for(oe=0;oe<16;++oe)ce[oe].high=Z[te]<<24|Z[te+1]<<16|Z[te+2]<<8|Z[te+3],ce[oe].low=Z[te+4]<<24|Z[te+5]<<16|Z[te+6]<<8|Z[te+7],te+=8;for(oe=16;oe<80;++oe)Ae=ce[oe],k(Ae,ce[oe-2],ge),Ae.add(ce[oe-7]),L(xe,ce[oe-15],ge),Ae.add(xe),Ae.add(ce[oe-16]);for(fe.assign(B),ne.assign(N),le.assign(Q),ue.assign(z),he.assign(j),de.assign($),ve.assign(M),me.assign(q),oe=0;oe<80;++oe)Se.assign(me),D(xe,he,ge),Se.add(xe),A(xe,he,de,ve,ge),Se.add(xe),Se.add(v[oe]),Se.add(ce[oe]),F(Ce,fe,ge),_(xe,fe,ne,le,ge),Ce.add(xe),Ae=me,me=ve,ve=de,de=he,ue.add(Se),he=ue,ue=le,le=ne,ne=fe,Ae.assign(Se),Ae.add(Ce),fe=Ae;B.add(fe),N.add(ne),Q.add(le),z.add(ue),j.add(he),$.add(de),M.add(ve),q.add(me)}var we;return T?(we=new Uint8Array(48),B.copyTo(we,0),N.copyTo(we,8),Q.copyTo(we,16),z.copyTo(we,24),j.copyTo(we,32),$.copyTo(we,40)):(we=new Uint8Array(64),B.copyTo(we,0),N.copyTo(we,8),Q.copyTo(we,16),z.copyTo(we,24),j.copyTo(we,32),$.copyTo(we,40),M.copyTo(we,48),q.copyTo(we,56)),we}return y}();d.calculateSHA512=ie;var m=function(){function A(_,F,D){return ie(_,F,D,!0)}return A}();d.calculateSHA384=m;var u=function(){function A(){}return A.prototype={decryptBlock:function(F){return F}},A}();class Y{constructor(){this.constructor===Y&&(0,g.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 A=0;A<256;A++)A<128?this._mixCol[A]=A<<1:this._mixCol[A]=A<<1^27;this.buffer=new Uint8Array(16),this.bufferPosition=0}_expandKey(A){(0,g.unreachable)("Cannot call `_expandKey` on the base class")}_decrypt(A,_){let F,D,L;const k=new Uint8Array(16);k.set(A);for(let v=0,y=this._keySize;v<16;++v,++y)k[v]^=_[y];for(let v=this._cyclesOfRepetition-1;v>=1;--v){F=k[13],k[13]=k[9],k[9]=k[5],k[5]=k[1],k[1]=F,F=k[14],D=k[10],k[14]=k[6],k[10]=k[2],k[6]=F,k[2]=D,F=k[15],D=k[11],L=k[7],k[15]=k[3],k[11]=F,k[7]=D,k[3]=L;for(let y=0;y<16;++y)k[y]=this._inv_s[k[y]];for(let y=0,b=v*16;y<16;++y,++b)k[y]^=_[b];for(let y=0;y<16;y+=4){const b=this._mix[k[y]],C=this._mix[k[y+1]],w=this._mix[k[y+2]],T=this._mix[k[y+3]];F=b^C>>>8^C<<24^w>>>16^w<<16^T>>>24^T<<8,k[y]=F>>>24&255,k[y+1]=F>>16&255,k[y+2]=F>>8&255,k[y+3]=F&255}}F=k[13],k[13]=k[9],k[9]=k[5],k[5]=k[1],k[1]=F,F=k[14],D=k[10],k[14]=k[6],k[10]=k[2],k[6]=F,k[2]=D,F=k[15],D=k[11],L=k[7],k[15]=k[3],k[11]=F,k[7]=D,k[3]=L;for(let v=0;v<16;++v)k[v]=this._inv_s[k[v]],k[v]^=_[v];return k}_encrypt(A,_){const F=this._s;let D,L,k;const v=new Uint8Array(16);v.set(A);for(let y=0;y<16;++y)v[y]^=_[y];for(let y=1;y<this._cyclesOfRepetition;y++){for(let b=0;b<16;++b)v[b]=F[v[b]];k=v[1],v[1]=v[5],v[5]=v[9],v[9]=v[13],v[13]=k,k=v[2],L=v[6],v[2]=v[10],v[6]=v[14],v[10]=k,v[14]=L,k=v[3],L=v[7],D=v[11],v[3]=v[15],v[7]=k,v[11]=L,v[15]=D;for(let b=0;b<16;b+=4){const C=v[b+0],w=v[b+1],T=v[b+2],B=v[b+3];D=C^w^T^B,v[b+0]^=D^this._mixCol[C^w],v[b+1]^=D^this._mixCol[w^T],v[b+2]^=D^this._mixCol[T^B],v[b+3]^=D^this._mixCol[B^C]}for(let b=0,C=y*16;b<16;++b,++C)v[b]^=_[C]}for(let y=0;y<16;++y)v[y]=F[v[y]];k=v[1],v[1]=v[5],v[5]=v[9],v[9]=v[13],v[13]=k,k=v[2],L=v[6],v[2]=v[10],v[6]=v[14],v[10]=k,v[14]=L,k=v[3],L=v[7],D=v[11],v[3]=v[15],v[7]=k,v[11]=L,v[15]=D;for(let y=0,b=this._keySize;y<16;++y,++b)v[y]^=_[b];return v}_decryptBlock2(A,_){const F=A.length;let D=this.buffer,L=this.bufferPosition;const k=[];let v=this.iv;for(let C=0;C<F;++C){if(D[L]=A[C],++L,L<16)continue;const w=this._decrypt(D,this._key);for(let T=0;T<16;++T)w[T]^=v[T];v=D,k.push(w),D=new Uint8Array(16),L=0}if(this.buffer=D,this.bufferLength=L,this.iv=v,k.length===0)return new Uint8Array(0);let y=16*k.length;if(_){const C=k[k.length-1];let w=C[15];if(w<=16){for(let T=15,B=16-w;T>=B;--T)if(C[T]!==w){w=0;break}y-=w,k[k.length-1]=C.subarray(0,16-w)}}const b=new Uint8Array(y);for(let C=0,w=0,T=k.length;C<T;++C,w+=16)b.set(k[C],w);return b}decryptBlock(A,_,F=null){const D=A.length,L=this.buffer;let k=this.bufferPosition;if(F)this.iv=F;else{for(let v=0;k<16&&v<D;++v,++k)L[k]=A[v];if(k<16)return this.bufferLength=k,new Uint8Array(0);this.iv=L,A=A.subarray(16)}return this.buffer=new Uint8Array(16),this.bufferLength=0,this.decryptBlock=this._decryptBlock2,this.decryptBlock(A,_)}encrypt(A,_){const F=A.length;let D=this.buffer,L=this.bufferPosition;const k=[];_||(_=new Uint8Array(16));for(let b=0;b<F;++b){if(D[L]=A[b],++L,L<16)continue;for(let w=0;w<16;++w)D[w]^=_[w];const C=this._encrypt(D,this._key);_=C,k.push(C),D=new Uint8Array(16),L=0}if(this.buffer=D,this.bufferLength=L,this.iv=_,k.length===0)return new Uint8Array(0);const v=16*k.length,y=new Uint8Array(v);for(let b=0,C=0,w=k.length;b<w;++b,C+=16)y.set(k[b],C);return y}}class re extends Y{constructor(A){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(A)}_expandKey(A){const F=this._s,D=this._rcon,L=new Uint8Array(176);L.set(A);for(let k=16,v=1;k<176;++v){let y=L[k-3],b=L[k-2],C=L[k-1],w=L[k-4];y=F[y],b=F[b],C=F[C],w=F[w],y=y^D[v];for(let T=0;T<4;++T)L[k]=y^=L[k-16],k++,L[k]=b^=L[k-16],k++,L[k]=C^=L[k-16],k++,L[k]=w^=L[k-16],k++}return L}}d.AES128Cipher=re;class U extends Y{constructor(A){super(),this._cyclesOfRepetition=14,this._keySize=224,this._key=this._expandKey(A)}_expandKey(A){const F=this._s,D=new Uint8Array(240);D.set(A);let L=1,k,v,y,b;for(let C=32,w=1;C<240;++w){C%32===16?(k=F[k],v=F[v],y=F[y],b=F[b]):C%32===0&&(k=D[C-3],v=D[C-2],y=D[C-1],b=D[C-4],k=F[k],v=F[v],y=F[y],b=F[b],k=k^L,(L<<=1)>=256&&(L=(L^27)&255));for(let T=0;T<4;++T)D[C]=k^=D[C-32],C++,D[C]=v^=D[C-32],C++,D[C]=y^=D[C-32],C++,D[C]=b^=D[C-32],C++}return D}}d.AES256Cipher=U;var X=function(){function A(F,D){if(F.length!==D.length)return!1;for(var L=0;L<F.length;L++)if(F[L]!==D[L])return!1;return!0}function _(){}return _.prototype={checkOwnerPassword:function(D,L,k,v){var y=new Uint8Array(D.length+56);y.set(D,0),y.set(L,D.length),y.set(k,D.length+L.length);var b=ee(y,0,y.length);return A(b,v)},checkUserPassword:function(D,L,k){var v=new Uint8Array(D.length+8);v.set(D,0),v.set(L,D.length);var y=ee(v,0,v.length);return A(y,k)},getOwnerKey:function(D,L,k,v){var y=new Uint8Array(D.length+56);y.set(D,0),y.set(L,D.length),y.set(k,D.length+L.length);var b=ee(y,0,y.length),C=new U(b);return C.decryptBlock(v,!1,new Uint8Array(16))},getUserKey:function(D,L,k){var v=new Uint8Array(D.length+8);v.set(D,0),v.set(L,D.length);var y=ee(v,0,v.length),b=new U(y);return b.decryptBlock(k,!1,new Uint8Array(16))}},_}();d.PDF17=X;var W=function(){function A(L,k){var v=new Uint8Array(L.length+k.length);return v.set(L,0),v.set(k,L.length),v}function _(L,k,v){for(var y=ee(k,0,k.length).subarray(0,32),b=[0],C=0;C<64||b[b.length-1]>C-32;){var w=L.length+y.length+v.length,T=new Uint8Array(w*64),B=A(L,y);B=A(B,v);for(var N=0,Q=0;N<64;N++,Q+=w)T.set(B,Q);var z=new re(y.subarray(0,16));b=z.encrypt(T,y.subarray(16,32));for(var j=0,$=0;$<16;$++)j*=256%3,j%=3,j+=(b[$]>>>0)%3,j%=3;j===0?y=ee(b,0,b.length):j===1?y=m(b,0,b.length):j===2&&(y=ie(b,0,b.length)),C++}return y.subarray(0,32)}function F(){}function D(L,k){if(L.length!==k.length)return!1;for(var v=0;v<L.length;v++)if(L[v]!==k[v])return!1;return!0}return F.prototype={hash:function(k,v,y){return _(k,v,y)},checkOwnerPassword:function(k,v,y,b){var C=new Uint8Array(k.length+56);C.set(k,0),C.set(v,k.length),C.set(y,k.length+v.length);var w=_(k,C,y);return D(w,b)},checkUserPassword:function(k,v,y){var b=new Uint8Array(k.length+8);b.set(k,0),b.set(v,k.length);var C=_(k,b,[]);return D(C,y)},getOwnerKey:function(k,v,y,b){var C=new Uint8Array(k.length+56);C.set(k,0),C.set(v,k.length),C.set(y,k.length+v.length);var w=_(k,C,y),T=new U(w);return T.decryptBlock(b,!1,new Uint8Array(16))},getUserKey:function(k,v,y){var b=new Uint8Array(k.length+8);b.set(k,0),b.set(v,k.length);var C=_(k,b,[]),w=new U(C);return w.decryptBlock(y,!1,new Uint8Array(16))}},F}();d.PDF20=W;var G=function(){function A(_,F){this.StringCipherConstructor=_,this.StreamCipherConstructor=F}return A.prototype={createStream:function(F,D){var L=new this.StreamCipherConstructor;return new J.DecryptStream(F,D,function(v,y){return L.decryptBlock(v,y)})},decryptString:function(F){var D=new this.StringCipherConstructor,L=(0,g.stringToBytes)(F);return L=D.decryptBlock(L,!0),(0,g.bytesToString)(L)}},A}(),P=function(){var A=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 _(b,C,w,T,B,N,Q,z,j,$,M,q){if(C){var K=Math.min(127,C.length);C=C.subarray(0,K)}else C=[];var Z;return b===6?Z=new W:Z=new X,Z.checkUserPassword(C,z,Q)?Z.getUserKey(C,j,M):C.length&&Z.checkOwnerPassword(C,T,N,w)?Z.getOwnerKey(C,B,N,$):null}function F(b,C,w,T,B,N,Q,z){var j=40+w.length+b.length,$=new Uint8Array(j),M=0,q,K;if(C)for(K=Math.min(32,C.length);M<K;++M)$[M]=C[M];for(q=0;M<32;)$[M++]=A[q++];for(q=0,K=w.length;q<K;++q)$[M++]=w[q];for($[M++]=B&255,$[M++]=B>>8&255,$[M++]=B>>16&255,$[M++]=B>>>24&255,q=0,K=b.length;q<K;++q)$[M++]=b[q];N>=4&&!z&&($[M++]=255,$[M++]=255,$[M++]=255,$[M++]=255);var Z=se($,0,M),te=Q>>3;if(N>=3)for(q=0;q<50;++q)Z=se(Z,0,te);var oe=Z.subarray(0,te),ae,ce;if(N>=3){for(M=0;M<32;++M)$[M]=A[M];for(q=0,K=b.length;q<K;++q)$[M++]=b[q];ae=new a(oe),ce=ae.encryptBlock(se($,0,M)),K=oe.length;var fe=new Uint8Array(K),ne;for(q=1;q<=19;++q){for(ne=0;ne<K;++ne)fe[ne]=oe[ne]^q;ae=new a(fe),ce=ae.encryptBlock(ce)}for(q=0,K=ce.length;q<K;++q)if(T[q]!==ce[q])return null}else for(ae=new a(oe),ce=ae.encryptBlock(A),q=0,K=ce.length;q<K;++q)if(T[q]!==ce[q])return null;return oe}function D(b,C,w,T){var B=new Uint8Array(32),N=0,Q,z;for(z=Math.min(32,b.length);N<z;++N)B[N]=b[N];for(Q=0;N<32;)B[N++]=A[Q++];var j=se(B,0,N),$=T>>3;if(w>=3)for(Q=0;Q<50;++Q)j=se(j,0,j.length);var M,q;if(w>=3){q=C;var K=new Uint8Array($),Z;for(Q=19;Q>=0;Q--){for(Z=0;Z<$;++Z)K[Z]=j[Z]^Q;M=new a(K),q=M.encryptBlock(q)}}else M=new a(j.subarray(0,$)),q=M.encryptBlock(C);return q}var L=O.Name.get("Identity");function k(b,C,w){var T=b.get("Filter");if(!(0,O.isName)(T,"Standard"))throw new g.FormatError("unknown encryption method");this.dict=b;var B=b.get("V");if(!Number.isInteger(B)||B!==1&&B!==2&&B!==4&&B!==5)throw new g.FormatError("unsupported encryption algorithm");this.algorithm=B;var N=b.get("Length");if(!N)if(B<=3)N=40;else{var Q=b.get("CF"),z=b.get("StmF");if((0,O.isDict)(Q)&&(0,O.isName)(z)){Q.suppressEncryption=!0;var j=Q.get(z.name);N=j&&j.get("Length")||128,N<40&&(N<<=3)}}if(!Number.isInteger(N)||N<40||N%8!==0)throw new g.FormatError("invalid key length");var $=(0,g.stringToBytes)(b.get("O")).subarray(0,32),M=(0,g.stringToBytes)(b.get("U")).subarray(0,32),q=b.get("P"),K=b.get("R"),Z=(B===4||B===5)&&b.get("EncryptMetadata")!==!1;this.encryptMetadata=Z;var te=(0,g.stringToBytes)(C),oe;if(w){if(K===6)try{w=(0,g.utf8StringToString)(w)}catch{(0,g.warn)("CipherTransformFactory: Unable to convert UTF8 encoded password.")}oe=(0,g.stringToBytes)(w)}var ae;if(B!==5)ae=F(te,oe,$,M,q,K,N,Z);else{var ce=(0,g.stringToBytes)(b.get("O")).subarray(32,40),fe=(0,g.stringToBytes)(b.get("O")).subarray(40,48),ne=(0,g.stringToBytes)(b.get("U")).subarray(0,48),le=(0,g.stringToBytes)(b.get("U")).subarray(32,40),ue=(0,g.stringToBytes)(b.get("U")).subarray(40,48),he=(0,g.stringToBytes)(b.get("OE")),de=(0,g.stringToBytes)(b.get("UE"));(0,g.stringToBytes)(b.get("Perms")),ae=_(K,oe,$,ce,fe,ne,M,le,ue,he,de)}if(!ae&&!w)throw new g.PasswordException("No password given",g.PasswordResponses.NEED_PASSWORD);if(!ae&&w){var ve=D(oe,$,K,N);ae=F(te,ve,$,M,q,K,N,Z)}if(!ae)throw new g.PasswordException("Incorrect Password",g.PasswordResponses.INCORRECT_PASSWORD);if(this.encryptionKey=ae,B>=4){var me=b.get("CF");(0,O.isDict)(me)&&(me.suppressEncryption=!0),this.cf=me,this.stmf=b.get("StmF")||L,this.strf=b.get("StrF")||L,this.eff=b.get("EFF")||this.stmf}}function v(b,C,w,T){var B=new Uint8Array(w.length+9),N,Q;for(N=0,Q=w.length;N<Q;++N)B[N]=w[N];B[N++]=b&255,B[N++]=b>>8&255,B[N++]=b>>16&255,B[N++]=C&255,B[N++]=C>>8&255,T&&(B[N++]=115,B[N++]=65,B[N++]=108,B[N++]=84);var z=se(B,0,N);return z.subarray(0,Math.min(w.length+5,16))}function y(b,C,w,T,B){if(!(0,O.isName)(C))throw new g.FormatError("Invalid crypt filter name.");var N=b.get(C.name),Q;if(N!=null&&(Q=N.get("CFM")),!Q||Q.name==="None")return function(){return new u};if(Q.name==="V2")return function(){return new a(v(w,T,B,!1))};if(Q.name==="AESV2")return function(){return new re(v(w,T,B,!0))};if(Q.name==="AESV3")return function(){return new U(B)};throw new g.FormatError("Unknown crypto method")}return k.prototype={createCipherTransform:function(C,w){if(this.algorithm===4||this.algorithm===5)return new G(y(this.cf,this.stmf,C,w,this.encryptionKey),y(this.cf,this.strf,C,w,this.encryptionKey));var T=v(C,w,this.encryptionKey,!1),B=function(){return new a(T)};return new G(B,B)}},k}();d.CipherTransformFactory=P},function(S,d,R){Object.defineProperty(d,"__esModule",{value:!0}),d.ColorSpace=void 0;var g=R(2),O=R(5);function J(X,W,G,P,E,A,_){_=_!==1?0:_;const D=G/E,L=P/A;let k=0,v;const y=new Uint16Array(E),b=G*3;for(let C=0;C<E;C++)y[C]=Math.floor(C*D)*3;for(let C=0;C<A;C++){const w=Math.floor(C*L)*b;for(let T=0;T<E;T++)v=w+y[T],W[k++]=X[v++],W[k++]=X[v++],W[k++]=X[v++],k+=_}}class a{constructor(W,G){this.constructor===a&&(0,g.unreachable)("Cannot initialize ColorSpace."),this.name=W,this.numComps=G}getRgb(W,G){const P=new Uint8ClampedArray(3);return this.getRgbItem(W,G,P,0),P}getRgbItem(W,G,P,E){(0,g.unreachable)("Should not call ColorSpace.getRgbItem")}getRgbBuffer(W,G,P,E,A,_,F){(0,g.unreachable)("Should not call ColorSpace.getRgbBuffer")}getOutputLength(W,G){(0,g.unreachable)("Should not call ColorSpace.getOutputLength")}isPassthrough(W){return!1}isDefaultDecode(W,G){return a.isDefaultDecode(W,this.numComps)}fillRgb(W,G,P,E,A,_,F,D,L){const k=G*P;let v=null;const y=1<<F,b=P!==A||G!==E;if(this.isPassthrough(F))v=D;else if(this.numComps===1&&k>y&&this.name!=="DeviceGray"&&this.name!=="DeviceRGB"){const C=F<=8?new Uint8Array(y):new Uint16Array(y);for(let T=0;T<y;T++)C[T]=T;const w=new Uint8ClampedArray(y*3);if(this.getRgbBuffer(C,0,y,w,0,F,0),b){v=new Uint8Array(k*3);let T=0;for(let B=0;B<k;++B){const N=D[B]*3;v[T++]=w[N],v[T++]=w[N+1],v[T++]=w[N+2]}}else{let T=0;for(let B=0;B<k;++B){const N=D[B]*3;W[T++]=w[N],W[T++]=w[N+1],W[T++]=w[N+2],T+=L}}}else b?(v=new Uint8ClampedArray(k*3),this.getRgbBuffer(D,0,k,v,0,F,0)):this.getRgbBuffer(D,0,E*_,W,0,F,L);if(v)if(b)J(v,W,G,P,E,A,L);else{let C=0,w=0;for(let T=0,B=E*_;T<B;T++)W[C++]=v[w++],W[C++]=v[w++],W[C++]=v[w++],C+=L}}get usesZeroToOneRange(){return(0,g.shadow)(this,"usesZeroToOneRange",!0)}static parse(W,G,P,E){const A=this.parseToIR(W,G,P,E);return this.fromIR(A)}static fromIR(W){const G=Array.isArray(W)?W[0]:W;let P,E,A;switch(G){case"DeviceGrayCS":return this.singletons.gray;case"DeviceRgbCS":return this.singletons.rgb;case"DeviceCmykCS":return this.singletons.cmyk;case"CalGrayCS":return P=W[1],E=W[2],A=W[3],new Y(P,E,A);case"CalRGBCS":P=W[1],E=W[2],A=W[3];const _=W[4];return new re(P,E,A,_);case"PatternCS":let F=W[1];return F&&(F=this.fromIR(F)),new H(F);case"IndexedCS":const D=W[1],L=W[2],k=W[3];return new ee(this.fromIR(D),L,k);case"AlternateCS":const v=W[1],y=W[2],b=W[3];return new se(v,this.fromIR(y),b);case"LabCS":P=W[1],E=W[2];const C=W[3];return new U(P,E,C);default:throw new g.FormatError(`Unknown colorspace name: ${G}`)}}static parseToIR(W,G,P=null,E){if(W=G.fetchIfRef(W),(0,O.isName)(W))switch(W.name){case"DeviceGray":case"G":return"DeviceGrayCS";case"DeviceRGB":case"RGB":return"DeviceRgbCS";case"DeviceCMYK":case"CMYK":return"DeviceCmykCS";case"Pattern":return["PatternCS",null];default:if((0,O.isDict)(P)){const A=P.get("ColorSpace");if((0,O.isDict)(A)){const _=A.get(W.name);if(_){if((0,O.isName)(_))return this.parseToIR(_,G,P,E);W=_;break}}}throw new g.FormatError(`unrecognized colorspace ${W.name}`)}if(Array.isArray(W)){const A=G.fetchIfRef(W[0]).name;let _,F,D,L,k,v;switch(A){case"DeviceGray":case"G":return"DeviceGrayCS";case"DeviceRGB":case"RGB":return"DeviceRgbCS";case"DeviceCMYK":case"CMYK":return"DeviceCmykCS";case"CalGray":return F=G.fetchIfRef(W[1]),L=F.getArray("WhitePoint"),k=F.getArray("BlackPoint"),v=F.get("Gamma"),["CalGrayCS",L,k,v];case"CalRGB":F=G.fetchIfRef(W[1]),L=F.getArray("WhitePoint"),k=F.getArray("BlackPoint"),v=F.getArray("Gamma");const y=F.getArray("Matrix");return["CalRGBCS",L,k,v,y];case"ICCBased":const C=G.fetchIfRef(W[1]).dict;if(_=C.get("N"),D=C.get("Alternate"),D){const $=this.parseToIR(D,G,P,E);if(this.fromIR($,E).numComps===_)return $;(0,g.warn)("ICCBased color space: Ignoring incorrect /Alternate entry.")}if(_===1)return"DeviceGrayCS";if(_===3)return"DeviceRgbCS";if(_===4)return"DeviceCmykCS";break;case"Pattern":let w=W[1]||null;return w&&(w=this.parseToIR(w,G,P,E)),["PatternCS",w];case"Indexed":case"I":const T=this.parseToIR(W[1],G,P,E),B=G.fetchIfRef(W[2])+1;let N=G.fetchIfRef(W[3]);return(0,O.isStream)(N)&&(N=N.getBytes()),["IndexedCS",T,B,N];case"Separation":case"DeviceN":const Q=G.fetchIfRef(W[1]);_=Array.isArray(Q)?Q.length:1,D=this.parseToIR(W[2],G,P,E);const z=E.create(G.fetchIfRef(W[3]));return["AlternateCS",_,D,z];case"Lab":F=G.fetchIfRef(W[1]),L=F.getArray("WhitePoint"),k=F.getArray("BlackPoint");const j=F.getArray("Range");return["LabCS",L,k,j];default:throw new g.FormatError(`unimplemented color space object "${A}"`)}}throw new g.FormatError(`unrecognized color space object: "${W}"`)}static isDefaultDecode(W,G){if(!Array.isArray(W))return!0;if(G*2!==W.length)return(0,g.warn)("The decode map is not the correct length"),!0;for(let P=0,E=W.length;P<E;P+=2)if(W[P]!==0||W[P+1]!==1)return!1;return!0}static get singletons(){return(0,g.shadow)(this,"singletons",{get gray(){return(0,g.shadow)(this,"gray",new ie)},get rgb(){return(0,g.shadow)(this,"rgb",new m)},get cmyk(){return(0,g.shadow)(this,"cmyk",new u)}})}}d.ColorSpace=a;class se extends a{constructor(W,G,P){super("Alternate",W),this.base=G,this.tintFn=P,this.tmpBuf=new Float32Array(G.numComps)}getRgbItem(W,G,P,E){const A=this.tmpBuf;this.tintFn(W,G,A,0),this.base.getRgbItem(A,0,P,E)}getRgbBuffer(W,G,P,E,A,_,F){const D=this.tintFn,L=this.base,k=1/((1<<_)-1),v=L.numComps,y=L.usesZeroToOneRange,b=(L.isPassthrough(8)||!y)&&F===0;let C=b?A:0;const w=b?E:new Uint8ClampedArray(v*P),T=this.numComps,B=new Float32Array(T),N=new Float32Array(v);let Q,z;for(Q=0;Q<P;Q++){for(z=0;z<T;z++)B[z]=W[G++]*k;if(D(B,0,N,0),y)for(z=0;z<v;z++)w[C++]=N[z]*255;else L.getRgbItem(N,0,w,C),C+=v}b||L.getRgbBuffer(w,0,P,E,A,8,F)}getOutputLength(W,G){return this.base.getOutputLength(W*this.base.numComps/this.numComps,G)}}class H extends a{constructor(W){super("Pattern",null),this.base=W}isDefaultDecode(W,G){(0,g.unreachable)("Should not call PatternCS.isDefaultDecode")}}class ee extends a{constructor(W,G,P){super("Indexed",1),this.base=W,this.highVal=G;const A=W.numComps*G;if((0,O.isStream)(P)){this.lookup=new Uint8Array(A);const _=P.getBytes(A);this.lookup.set(_)}else if((0,g.isString)(P)){this.lookup=new Uint8Array(A);for(let _=0;_<A;++_)this.lookup[_]=P.charCodeAt(_)}else if(P instanceof Uint8Array)this.lookup=P;else throw new g.FormatError(`Unrecognized lookup table: ${P}`)}getRgbItem(W,G,P,E){const A=this.base.numComps,_=W[G]*A;this.base.getRgbBuffer(this.lookup,_,1,P,E,8,0)}getRgbBuffer(W,G,P,E,A,_,F){const D=this.base,L=D.numComps,k=D.getOutputLength(L,F),v=this.lookup;for(let y=0;y<P;++y){const b=W[G++]*L;D.getRgbBuffer(v,b,1,E,A,8,F),A+=k}}getOutputLength(W,G){return this.base.getOutputLength(W*this.base.numComps,G)}isDefaultDecode(W,G){return Array.isArray(W)?W.length!==2?((0,g.warn)("Decode map length is not correct"),!0):!Number.isInteger(G)||G<1?((0,g.warn)("Bits per component is not correct"),!0):W[0]===0&&W[1]===(1<<G)-1:!0}}class ie extends a{constructor(){super("DeviceGray",1)}getRgbItem(W,G,P,E){const A=W[G]*255;P[E]=P[E+1]=P[E+2]=A}getRgbBuffer(W,G,P,E,A,_,F){const D=255/((1<<_)-1);let L=G,k=A;for(let v=0;v<P;++v){const y=D*W[L++];E[k++]=y,E[k++]=y,E[k++]=y,k+=F}}getOutputLength(W,G){return W*(3+G)}}class m extends a{constructor(){super("DeviceRGB",3)}getRgbItem(W,G,P,E){P[E]=W[G]*255,P[E+1]=W[G+1]*255,P[E+2]=W[G+2]*255}getRgbBuffer(W,G,P,E,A,_,F){if(_===8&&F===0){E.set(W.subarray(G,G+P*3),A);return}const D=255/((1<<_)-1);let L=G,k=A;for(let v=0;v<P;++v)E[k++]=D*W[L++],E[k++]=D*W[L++],E[k++]=D*W[L++],k+=F}getOutputLength(W,G){return W*(3+G)/3|0}isPassthrough(W){return W===8}}const u=function(){function W(P,E,A,_,F){const D=P[E]*A,L=P[E+1]*A,k=P[E+2]*A,v=P[E+3]*A;_[F]=255+D*(-4.387332384609988*D+54.48615194189176*L+18.82290502165302*k+212.25662451639585*v+-285.2331026137004)+L*(1.7149763477362134*L-5.6096736904047315*k+-17.873870861415444*v-5.497006427196366)+k*(-2.5217340131683033*k-21.248923337353073*v+17.5119270841813)+v*(-21.86122147463605*v-189.48180835922747),_[F+1]=255+D*(8.841041422036149*D+60.118027045597366*L+6.871425592049007*k+31.159100130055922*v+-79.2970844816548)+L*(-15.310361306967817*L+17.575251261109482*k+131.35250912493976*v-190.9453302588951)+k*(4.444339102852739*k+9.8632861493405*v-24.86741582555878)+v*(-20.737325471181034*v-187.80453709719578),_[F+2]=255+D*(.8842522430003296*D+8.078677503112928*L+30.89978309703729*k-.23883238689178934*v+-14.183576799673286)+L*(10.49593273432072*L+63.02378494754052*k+50.606957656360734*v-112.23884253719248)+k*(.03296041114873217*k+115.60384449646641*v+-193.58209356861505)+v*(-22.33816807309886*v-180.12613974708367)}class G extends a{constructor(){super("DeviceCMYK",4)}getRgbItem(E,A,_,F){W(E,A,1,_,F)}getRgbBuffer(E,A,_,F,D,L,k){const v=1/((1<<L)-1);for(let y=0;y<_;y++)W(E,A,v,F,D),A+=4,D+=3+k}getOutputLength(E,A){return E/4*(3+A)|0}}return G}(),Y=function(){function W(P,E,A,_,F,D){const k=(E[A]*D)**P.G,v=P.YW*k,y=Math.max(295.8*v**.3333333333333333-40.8,0);_[F]=y,_[F+1]=y,_[F+2]=y}class G extends a{constructor(E,A,_){if(super("CalGray",1),!E)throw new g.FormatError("WhitePoint missing - required for color space CalGray");if(A=A||[0,0,0],_=_||1,this.XW=E[0],this.YW=E[1],this.ZW=E[2],this.XB=A[0],this.YB=A[1],this.ZB=A[2],this.G=_,this.XW<0||this.ZW<0||this.YW!==1)throw new g.FormatError(`Invalid WhitePoint components for ${this.name}, no fallback available`);(this.XB<0||this.YB<0||this.ZB<0)&&((0,g.info)(`Invalid BlackPoint for ${this.name}, falling back to default.`),this.XB=this.YB=this.ZB=0),(this.XB!==0||this.YB!==0||this.ZB!==0)&&(0,g.warn)(`${this.name}, BlackPoint: XB: ${this.XB}, YB: ${this.YB}, ZB: ${this.ZB}, only default values are supported.`),this.G<1&&((0,g.info)(`Invalid Gamma: ${this.G} for ${this.name}, falling back to default.`),this.G=1)}getRgbItem(E,A,_,F){W(this,E,A,_,F,1)}getRgbBuffer(E,A,_,F,D,L,k){const v=1/((1<<L)-1);for(let y=0;y<_;++y)W(this,E,A,F,D,v),A+=1,D+=3+k}getOutputLength(E,A){return E*(3+A)}}return G}(),re=function(){const W=new Float32Array([.8951,.2664,-.1614,-.7502,1.7135,.0367,.0389,-.0685,1.0296]),G=new Float32Array([.9869929,-.1470543,.1599627,.4323053,.5183603,.0492912,-.0085287,.0400428,.9684867]),P=new Float32Array([3.2404542,-1.5371385,-.4985314,-.969266,1.8760108,.041556,.0556434,-.2040259,1.0572252]),E=new Float32Array([1,1,1]),A=new Float32Array(3),_=new Float32Array(3),F=new Float32Array(3),D=((8+16)/116)**3/8;function L(z,j,$){$[0]=z[0]*j[0]+z[1]*j[1]+z[2]*j[2],$[1]=z[3]*j[0]+z[4]*j[1]+z[5]*j[2],$[2]=z[6]*j[0]+z[7]*j[1]+z[8]*j[2]}function k(z,j,$){$[0]=j[0]*1/z[0],$[1]=j[1]*1/z[1],$[2]=j[2]*1/z[2]}function v(z,j,$){$[0]=j[0]*.95047/z[0],$[1]=j[1]*1/z[1],$[2]=j[2]*1.08883/z[2]}function y(z){return z<=.0031308?b(0,1,12.92*z):b(0,1,(1+.055)*z**(1/2.4)-.055)}function b(z,j,$){return Math.max(z,Math.min(j,$))}function C(z){return z<0?-C(-z):z>8?((z+16)/116)**3:z*D}function w(z,j,$){if(z[0]===0&&z[1]===0&&z[2]===0){$[0]=j[0],$[1]=j[1],$[2]=j[2];return}const M=C(0),q=M,K=C(z[0]),Z=M,te=C(z[1]),oe=M,ae=C(z[2]),ce=(1-q)/(1-K),fe=1-ce,ne=(1-Z)/(1-te),le=1-ne,ue=(1-oe)/(1-ae),he=1-ue;$[0]=j[0]*ce+fe,$[1]=j[1]*ne+le,$[2]=j[2]*ue+he}function T(z,j,$){if(z[0]===1&&z[2]===1){$[0]=j[0],$[1]=j[1],$[2]=j[2];return}const M=$;L(W,j,M);const q=A;k(z,M,q),L(G,q,$)}function B(z,j,$){const M=$;L(W,j,M);const q=A;v(z,M,q),L(G,q,$)}function N(z,j,$,M,q,K){const Z=b(0,1,j[$]*K),te=b(0,1,j[$+1]*K),oe=b(0,1,j[$+2]*K),ae=Z**z.GR,ce=te**z.GG,fe=oe**z.GB,ne=z.MXA*ae+z.MXB*ce+z.MXC*fe,le=z.MYA*ae+z.MYB*ce+z.MYC*fe,ue=z.MZA*ae+z.MZB*ce+z.MZC*fe,he=_;he[0]=ne,he[1]=le,he[2]=ue;const de=F;T(z.whitePoint,he,de);const ve=_;w(z.blackPoint,de,ve);const me=F;B(E,ve,me);const Se=_;L(P,me,Se),M[q]=y(Se[0])*255,M[q+1]=y(Se[1])*255,M[q+2]=y(Se[2])*255}class Q extends a{constructor(j,$,M,q){if(super("CalRGB",3),!j)throw new g.FormatError("WhitePoint missing - required for color space CalRGB");$=$||new Float32Array(3),M=M||new Float32Array([1,1,1]),q=q||new Float32Array([1,0,0,0,1,0,0,0,1]);const K=j[0],Z=j[1],te=j[2];this.whitePoint=j;const oe=$[0],ae=$[1],ce=$[2];if(this.blackPoint=$,this.GR=M[0],this.GG=M[1],this.GB=M[2],this.MXA=q[0],this.MYA=q[1],this.MZA=q[2],this.MXB=q[3],this.MYB=q[4],this.MZB=q[5],this.MXC=q[6],this.MYC=q[7],this.MZC=q[8],K<0||te<0||Z!==1)throw new g.FormatError(`Invalid WhitePoint components for ${this.name}, no fallback available`);(oe<0||ae<0||ce<0)&&((0,g.info)(`Invalid BlackPoint for ${this.name} [${oe}, ${ae}, ${ce}], falling back to default.`),this.blackPoint=new Float32Array(3)),(this.GR<0||this.GG<0||this.GB<0)&&((0,g.info)(`Invalid Gamma [${this.GR}, ${this.GG}, ${this.GB}] for ${this.name}, falling back to default.`),this.GR=this.GG=this.GB=1)}getRgbItem(j,$,M,q){N(this,j,$,M,q,1)}getRgbBuffer(j,$,M,q,K,Z,te){const oe=1/((1<<Z)-1);for(let ae=0;ae<M;++ae)N(this,j,$,q,K,oe),$+=3,K+=3+te}getOutputLength(j,$){return j*(3+$)/3|0}}return Q}(),U=function(){function W(A){let _;return A>=6/29?_=A*A*A:_=108/841*(A-4/29),_}function G(A,_,F,D){return F+A*(D-F)/_}function P(A,_,F,D,L,k){let v=_[F],y=_[F+1],b=_[F+2];D!==!1&&(v=G(v,D,0,100),y=G(y,D,A.amin,A.amax),b=G(b,D,A.bmin,A.bmax)),y>A.amax?y=A.amax:y<A.amin&&(y=A.amin),b>A.bmax?b=A.bmax:b<A.bmin&&(b=A.bmin);const C=(v+16)/116,w=C+y/500,T=C-b/200,B=A.XW*W(w),N=A.YW*W(C),Q=A.ZW*W(T);let z,j,$;A.ZW<1?(z=B*3.1339+N*-1.617+Q*-.4906,j=B*-.9785+N*1.916+Q*.0333,$=B*.072+N*-.229+Q*1.4057):(z=B*3.2406+N*-1.5372+Q*-.4986,j=B*-.9689+N*1.8758+Q*.0415,$=B*.0557+N*-.204+Q*1.057),L[k]=Math.sqrt(z)*255,L[k+1]=Math.sqrt(j)*255,L[k+2]=Math.sqrt($)*255}class E extends a{constructor(_,F,D){if(super("Lab",3),!_)throw new g.FormatError("WhitePoint missing - required for color space Lab");if(F=F||[0,0,0],D=D||[-100,100,-100,100],this.XW=_[0],this.YW=_[1],this.ZW=_[2],this.amin=D[0],this.amax=D[1],this.bmin=D[2],this.bmax=D[3],this.XB=F[0],this.YB=F[1],this.ZB=F[2],this.XW<0||this.ZW<0||this.YW!==1)throw new g.FormatError("Invalid WhitePoint components, no fallback available");(this.XB<0||this.YB<0||this.ZB<0)&&((0,g.info)("Invalid BlackPoint, falling back to default"),this.XB=this.YB=this.ZB=0),(this.amin>this.amax||this.bmin>this.bmax)&&((0,g.info)("Invalid Range, falling back to defaults"),this.amin=-100,this.amax=100,this.bmin=-100,this.bmax=100)}getRgbItem(_,F,D,L){P(this,_,F,!1,D,L)}getRgbBuffer(_,F,D,L,k,v,y){const b=(1<<v)-1;for(let C=0;C<D;C++)P(this,_,F,b,L,k),F+=3,k+=3+y}getOutputLength(_,F){return _*(3+F)/3|0}isDefaultDecode(_,F){return!0}get usesZeroToOneRange(){return(0,g.shadow)(this,"usesZeroToOneRange",!1)}}return E}()},function(S,d,R){Object.defineProperty(d,"__esModule",{value:!0}),d.GlobalImageCache=d.LocalImageCache=void 0;var g=R(2),O=R(5);class J{constructor(){this._nameRefMap=new Map,this._imageMap=new Map,this._imageCache=new O.RefSetCache}getByName(H){const ee=this._nameRefMap.get(H);return ee?this.getByRef(ee):this._imageMap.get(H)||null}getByRef(H){return this._imageCache.get(H)||null}set(H,ee=null,ie){if(!H)throw new Error('LocalImageCache.set - expected "name" argument.');if(ee){if(this._imageCache.has(ee))return;this._nameRefMap.set(H,ee),this._imageCache.put(ee,ie);return}this._imageMap.has(H)||this._imageMap.set(H,ie)}}d.LocalImageCache=J;class a{static get NUM_PAGES_THRESHOLD(){return(0,g.shadow)(this,"NUM_PAGES_THRESHOLD",2)}static get MAX_IMAGES_TO_CACHE(){return(0,g.shadow)(this,"MAX_IMAGES_TO_CACHE",10)}constructor(){this._refCache=new O.RefSetCache,this._imageCache=new O.RefSetCache}shouldCache(H,ee){const ie=this._refCache.get(H);return!((ie?ie.size+(ie.has(ee)?0:1):1)<a.NUM_PAGES_THRESHOLD||!this._imageCache.has(H)&&this._imageCache.size>=a.MAX_IMAGES_TO_CACHE)}addPageIndex(H,ee){let ie=this._refCache.get(H);ie||(ie=new Set,this._refCache.put(H,ie)),ie.add(ee)}getData(H,ee){if(!this._refCache.has(H))return null;const ie=this._refCache.get(H);return ie.size<a.NUM_PAGES_THRESHOLD||!this._imageCache.has(H)?null:(ie.add(ee),this._imageCache.get(H))}setData(H,ee){if(!this._refCache.has(H))throw new Error('GlobalImageCache.setData - expected "addPageIndex" to have been called.');if(!this._imageCache.has(H)){if(this._imageCache.size>=a.MAX_IMAGES_TO_CACHE){(0,g.info)("GlobalImageCache.setData - ignoring image above MAX_IMAGES_TO_CACHE.");return}this._imageCache.put(H,ee)}}clear(H=!1){H||this._refCache.clear(),this._imageCache.clear()}}d.GlobalImageCache=a},function(S,d,R){Object.defineProperty(d,"__esModule",{value:!0}),d.getQuadPoints=m,d.MarkupAnnotation=d.AnnotationFactory=d.AnnotationBorderStyle=d.Annotation=void 0;var g=R(2),O=R(10),J=R(5),a=R(23),se=R(8),H=R(26),ee=R(12);class ie{static create($,M,q,K){return q.ensure(this,"_create",[$,M,q,K])}static _create($,M,q,K){const Z=$.fetchIfRef(M);if(!(0,J.isDict)(Z))return;const te=(0,J.isRef)(M)?M.toString():`annot_${K.createObjId()}`;let oe=Z.get("Subtype");oe=(0,J.isName)(oe)?oe.name:null;const ae={xref:$,dict:Z,subtype:oe,id:te,pdfManager:q};switch(oe){case"Link":return new A(ae);case"Text":return new E(ae);case"Widget":let ce=(0,se.getInheritableProperty)({dict:Z,key:"FT"});switch(ce=(0,J.isName)(ce)?ce.name:null,ce){case"Tx":return new W(ae);case"Btn":return new G(ae);case"Ch":return new P(ae)}return(0,g.warn)('Unimplemented widget field type "'+ce+'", falling back to base field type.'),new X(ae);case"Popup":return new _(ae);case"FreeText":return new F(ae);case"Line":return new D(ae);case"Square":return new L(ae);case"Circle":return new k(ae);case"PolyLine":return new v(ae);case"Polygon":return new y(ae);case"Caret":return new b(ae);case"Ink":return new C(ae);case"Highlight":return new w(ae);case"Underline":return new T(ae);case"Squiggly":return new B(ae);case"StrikeOut":return new N(ae);case"Stamp":return new Q(ae);case"FileAttachment":return new z(ae);default:return oe?(0,g.warn)('Unimplemented annotation type "'+oe+'", falling back to base annotation.'):(0,g.warn)("Annotation is missing the required /Subtype."),new Y(ae)}}}d.AnnotationFactory=ie;function m(j,$){if(!j.has("QuadPoints"))return null;const M=j.getArray("QuadPoints");if(!Array.isArray(M)||M.length%8>0)return null;const q=[];for(let K=0,Z=M.length/8;K<Z;K++){q.push([]);for(let te=K*8,oe=K*8+8;te<oe;te+=2){const ae=M[te],ce=M[te+1];if(ae<$[0]||ae>$[2]||ce<$[1]||ce>$[3])return null;q[K].push({x:ae,y:ce})}}return q}function u(j,$,M){const[q,K,Z,te]=g.Util.getAxialAlignedBoundingBox($,M);if(q===Z||K===te)return[1,0,0,1,j[0],j[1]];const oe=(j[2]-j[0])/(Z-q),ae=(j[3]-j[1])/(te-K);return[oe,0,0,ae,j[0]-q*oe,j[1]-K*ae]}class Y{constructor($){const M=$.dict;this.setContents(M.get("Contents")),this.setModificationDate(M.get("M")),this.setFlags(M.get("F")),this.setRectangle(M.getArray("Rect")),this.setColor(M.getArray("C")),this.setBorderStyle(M),this.setAppearance(M),this.data={annotationFlags:this.flags,borderStyle:this.borderStyle,color:this.color,contents:this.contents,hasAppearance:!!this.appearance,id:$.id,modificationDate:this.modificationDate,rect:this.rectangle,subtype:$.subtype}}_hasFlag($,M){return!!($&M)}_isViewable($){return!this._hasFlag($,g.AnnotationFlag.INVISIBLE)&&!this._hasFlag($,g.AnnotationFlag.HIDDEN)&&!this._hasFlag($,g.AnnotationFlag.NOVIEW)}_isPrintable($){return this._hasFlag($,g.AnnotationFlag.PRINT)&&!this._hasFlag($,g.AnnotationFlag.INVISIBLE)&&!this._hasFlag($,g.AnnotationFlag.HIDDEN)}get viewable(){return this.flags===0?!0:this._isViewable(this.flags)}get printable(){return this.flags===0?!1:this._isPrintable(this.flags)}setContents($){this.contents=(0,g.stringToPDFString)($||"")}setModificationDate($){this.modificationDate=(0,g.isString)($)?$:null}setFlags($){this.flags=Number.isInteger($)&&$>0?$:0}hasFlag($){return this._hasFlag(this.flags,$)}setRectangle($){Array.isArray($)&&$.length===4?this.rectangle=g.Util.normalizeRect($):this.rectangle=[0,0,0,0]}setColor($){const M=new Uint8ClampedArray(3);if(!Array.isArray($)){this.color=M;return}switch($.length){case 0:this.color=null;break;case 1:a.ColorSpace.singletons.gray.getRgbItem($,0,M,0),this.color=M;break;case 3:a.ColorSpace.singletons.rgb.getRgbItem($,0,M,0),this.color=M;break;case 4:a.ColorSpace.singletons.cmyk.getRgbItem($,0,M,0),this.color=M;break;default:this.color=M;break}}setBorderStyle($){if(this.borderStyle=new re,!!(0,J.isDict)($))if($.has("BS")){const M=$.get("BS"),q=M.get("Type");(!q||(0,J.isName)(q,"Border"))&&(this.borderStyle.setWidth(M.get("W"),this.rectangle),this.borderStyle.setStyle(M.get("S")),this.borderStyle.setDashArray(M.getArray("D")))}else if($.has("Border")){const M=$.getArray("Border");Array.isArray(M)&&M.length>=3&&(this.borderStyle.setHorizontalCornerRadius(M[0]),this.borderStyle.setVerticalCornerRadius(M[1]),this.borderStyle.setWidth(M[2],this.rectangle),M.length===4&&this.borderStyle.setDashArray(M[3]))}else this.borderStyle.setWidth(0)}setAppearance($){this.appearance=null;const M=$.get("AP");if(!(0,J.isDict)(M))return;const q=M.get("N");if((0,J.isStream)(q)){this.appearance=q;return}if(!(0,J.isDict)(q))return;const K=$.get("AS");!(0,J.isName)(K)||!q.has(K.name)||(this.appearance=q.get(K.name))}loadResources($){return this.appearance.dict.getAsync("Resources").then(M=>M?new O.ObjectLoader(M,$,M.xref).load().then(function(){return M}):void 0)}getOperatorList($,M,q){if(!this.appearance)return Promise.resolve(new H.OperatorList);const K=this.data,Z=this.appearance.dict,te=this.loadResources(["ExtGState","ColorSpace","Pattern","Shading","XObject","Font"]),oe=Z.getArray("BBox")||[0,0,1,1],ae=Z.getArray("Matrix")||[1,0,0,1,0,0],ce=u(K.rect,oe,ae);return te.then(fe=>{const ne=new H.OperatorList;return ne.addOp(g.OPS.beginAnnotation,[K.rect,ce,ae]),$.getOperatorList({stream:this.appearance,task:M,resources:fe,operatorList:ne}).then(()=>(ne.addOp(g.OPS.endAnnotation,[]),this.appearance.reset(),ne))})}}d.Annotation=Y;class re{constructor(){this.width=1,this.style=g.AnnotationBorderStyleType.SOLID,this.dashArray=[3],this.horizontalCornerRadius=0,this.verticalCornerRadius=0}setWidth($,M=[0,0,0,0]){if((0,J.isName)($)){this.width=0;return}if(Number.isInteger($)){if($>0){const q=(M[2]-M[0])/2,K=(M[3]-M[1])/2;q>0&&K>0&&($>q||$>K)&&((0,g.warn)(`AnnotationBorderStyle.setWidth - ignoring width: ${$}`),$=1)}this.width=$}}setStyle($){if(!!(0,J.isName)($))switch($.name){case"S":this.style=g.AnnotationBorderStyleType.SOLID;break;case"D":this.style=g.AnnotationBorderStyleType.DASHED;break;case"B":this.style=g.AnnotationBorderStyleType.BEVELED;break;case"I":this.style=g.AnnotationBorderStyleType.INSET;break;case"U":this.style=g.AnnotationBorderStyleType.UNDERLINE;break}}setDashArray($){if(Array.isArray($)&&$.length>0){let M=!0,q=!0;for(const K of $)if(+K>=0)K>0&&(q=!1);else{M=!1;break}M&&!q?this.dashArray=$:this.width=0}else $&&(this.width=0)}setHorizontalCornerRadius($){Number.isInteger($)&&(this.horizontalCornerRadius=$)}setVerticalCornerRadius($){Number.isInteger($)&&(this.verticalCornerRadius=$)}}d.AnnotationBorderStyle=re;class U extends Y{constructor($){super($);const M=$.dict;if(M.has("IRT")){const q=M.getRaw("IRT");this.data.inReplyTo=(0,J.isRef)(q)?q.toString():null;const K=M.get("RT");this.data.replyType=(0,J.isName)(K)?K.name:g.AnnotationReplyType.REPLY}if(this.data.replyType===g.AnnotationReplyType.GROUP){const q=M.get("IRT");this.data.title=(0,g.stringToPDFString)(q.get("T")||""),this.setContents(q.get("Contents")),this.data.contents=this.contents,q.has("CreationDate")?(this.setCreationDate(q.get("CreationDate")),this.data.creationDate=this.creationDate):this.data.creationDate=null,q.has("M")?(this.setModificationDate(q.get("M")),this.data.modificationDate=this.modificationDate):this.data.modificationDate=null,this.data.hasPopup=q.has("Popup"),q.has("C")?(this.setColor(q.getArray("C")),this.data.color=this.color):this.data.color=null}else this.data.title=(0,g.stringToPDFString)(M.get("T")||""),this.setCreationDate(M.get("CreationDate")),this.data.creationDate=this.creationDate,this.data.hasPopup=M.has("Popup"),M.has("C")||(this.data.color=null)}setCreationDate($){this.creationDate=(0,g.isString)($)?$:null}}d.MarkupAnnotation=U;class X extends Y{constructor($){super($);const M=$.dict,q=this.data;q.annotationType=g.AnnotationType.WIDGET,q.fieldName=this._constructFieldName(M),q.fieldValue=(0,se.getInheritableProperty)({dict:M,key:"V",getArray:!0}),q.alternativeText=(0,g.stringToPDFString)(M.get("TU")||""),q.defaultAppearance=(0,se.getInheritableProperty)({dict:M,key:"DA"})||"";const K=(0,se.getInheritableProperty)({dict:M,key:"FT"});q.fieldType=(0,J.isName)(K)?K.name:null,this.fieldResources=(0,se.getInheritableProperty)({dict:M,key:"DR"})||J.Dict.empty,q.fieldFlags=(0,se.getInheritableProperty)({dict:M,key:"Ff"}),(!Number.isInteger(q.fieldFlags)||q.fieldFlags<0)&&(q.fieldFlags=0),q.readOnly=this.hasFieldFlag(g.AnnotationFieldFlag.READONLY),q.fieldType==="Sig"&&(q.fieldValue=null,this.setFlags(g.AnnotationFlag.HIDDEN))}_constructFieldName($){if(!$.has("T")&&!$.has("Parent"))return(0,g.warn)("Unknown field name, falling back to empty field name."),"";if(!$.has("Parent"))return(0,g.stringToPDFString)($.get("T"));const M=[];$.has("T")&&M.unshift((0,g.stringToPDFString)($.get("T")));let q=$;for(;q.has("Parent")&&(q=q.get("Parent"),!!(0,J.isDict)(q));)q.has("T")&&M.unshift((0,g.stringToPDFString)(q.get("T")));return M.join(".")}hasFieldFlag($){return!!(this.data.fieldFlags&$)}getOperatorList($,M,q){return q?Promise.resolve(new H.OperatorList):super.getOperatorList($,M,q)}}class W extends X{constructor($){super($);const M=$.dict;this.data.fieldValue=(0,g.stringToPDFString)(this.data.fieldValue||"");let q=(0,se.getInheritableProperty)({dict:M,key:"Q"});(!Number.isInteger(q)||q<0||q>2)&&(q=null),this.data.textAlignment=q;let K=(0,se.getInheritableProperty)({dict:M,key:"MaxLen"});(!Number.isInteger(K)||K<0)&&(K=null),this.data.maxLen=K,this.data.multiLine=this.hasFieldFlag(g.AnnotationFieldFlag.MULTILINE),this.data.comb=this.hasFieldFlag(g.AnnotationFieldFlag.COMB)&&!this.hasFieldFlag(g.AnnotationFieldFlag.MULTILINE)&&!this.hasFieldFlag(g.AnnotationFieldFlag.PASSWORD)&&!this.hasFieldFlag(g.AnnotationFieldFlag.FILESELECT)&&this.data.maxLen!==null}getOperatorList($,M,q){if(q||this.appearance)return super.getOperatorList($,M,q);const K=new H.OperatorList;if(!this.data.defaultAppearance)return Promise.resolve(K);const Z=new ee.Stream((0,g.stringToBytes)(this.data.defaultAppearance));return $.getOperatorList({stream:Z,task:M,resources:this.fieldResources,operatorList:K}).then(function(){return K})}}class G extends X{constructor($){super($),this.data.checkBox=!this.hasFieldFlag(g.AnnotationFieldFlag.RADIO)&&!this.hasFieldFlag(g.AnnotationFieldFlag.PUSHBUTTON),this.data.radioButton=this.hasFieldFlag(g.AnnotationFieldFlag.RADIO)&&!this.hasFieldFlag(g.AnnotationFieldFlag.PUSHBUTTON),this.data.pushButton=this.hasFieldFlag(g.AnnotationFieldFlag.PUSHBUTTON),this.data.checkBox?this._processCheckBox($):this.data.radioButton?this._processRadioButton($):this.data.pushButton?this._processPushButton($):(0,g.warn)("Invalid field flags for button widget annotation")}_processCheckBox($){(0,J.isName)(this.data.fieldValue)&&(this.data.fieldValue=this.data.fieldValue.name);const M=$.dict.get("AP");if(!(0,J.isDict)(M))return;const q=M.get("D");if(!(0,J.isDict)(q))return;const K=q.getKeys();K.length===2&&(this.data.exportValue=K[0]==="Off"?K[1]:K[0])}_processRadioButton($){this.data.fieldValue=this.data.buttonValue=null;const M=$.dict.get("Parent");if((0,J.isDict)(M)&&M.has("V")){const Z=M.get("V");(0,J.isName)(Z)&&(this.data.fieldValue=Z.name)}const q=$.dict.get("AP");if(!(0,J.isDict)(q))return;const K=q.get("N");if(!!(0,J.isDict)(K)){for(const Z of K.getKeys())if(Z!=="Off"){this.data.buttonValue=Z;break}}}_processPushButton($){if(!$.dict.has("A")){(0,g.warn)("Push buttons without action dictionaries are not supported");return}O.Catalog.parseDestDictionary({destDict:$.dict,resultObj:this.data,docBaseUrl:$.pdfManager.docBaseUrl})}}class P extends X{constructor($){super($),this.data.options=[];const M=(0,se.getInheritableProperty)({dict:$.dict,key:"Opt"});if(Array.isArray(M)){const q=$.xref;for(let K=0,Z=M.length;K<Z;K++){const te=q.fetchIfRef(M[K]),oe=Array.isArray(te);this.data.options[K]={exportValue:oe?q.fetchIfRef(te[0]):te,displayValue:(0,g.stringToPDFString)(oe?q.fetchIfRef(te[1]):te)}}}Array.isArray(this.data.fieldValue)||(this.data.fieldValue=[this.data.fieldValue]),this.data.combo=this.hasFieldFlag(g.AnnotationFieldFlag.COMBO),this.data.multiSelect=this.hasFieldFlag(g.AnnotationFieldFlag.MULTISELECT)}}class E extends U{constructor($){super($);const q=$.dict;this.data.annotationType=g.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=q.has("Name")?q.get("Name").name:"Note"),q.has("State")?(this.data.state=q.get("State")||null,this.data.stateModel=q.get("StateModel")||null):(this.data.state=null,this.data.stateModel=null)}}class A extends Y{constructor($){super($),this.data.annotationType=g.AnnotationType.LINK;const M=m($.dict,this.rectangle);M&&(this.data.quadPoints=M),O.Catalog.parseDestDictionary({destDict:$.dict,resultObj:this.data,docBaseUrl:$.pdfManager.docBaseUrl})}}class _ extends Y{constructor($){super($),this.data.annotationType=g.AnnotationType.POPUP;let M=$.dict.get("Parent");if(!M){(0,g.warn)("Popup annotation has a missing or invalid parent annotation.");return}const q=M.get("Subtype");this.data.parentType=(0,J.isName)(q)?q.name:null;const K=$.dict.getRaw("Parent");this.data.parentId=(0,J.isRef)(K)?K.toString():null;const Z=M.get("RT");if((0,J.isName)(Z,g.AnnotationReplyType.GROUP)&&(M=M.get("IRT")),M.has("M")?(this.setModificationDate(M.get("M")),this.data.modificationDate=this.modificationDate):this.data.modificationDate=null,M.has("C")?(this.setColor(M.getArray("C")),this.data.color=this.color):this.data.color=null,!this.viewable){const te=M.get("F");this._isViewable(te)&&this.setFlags(te)}this.data.title=(0,g.stringToPDFString)(M.get("T")||""),this.data.contents=(0,g.stringToPDFString)(M.get("Contents")||"")}}class F extends U{constructor($){super($),this.data.annotationType=g.AnnotationType.FREETEXT}}class D extends U{constructor($){super($),this.data.annotationType=g.AnnotationType.LINE,this.data.lineCoordinates=g.Util.normalizeRect($.dict.getArray("L"))}}class L extends U{constructor($){super($),this.data.annotationType=g.AnnotationType.SQUARE}}class k extends U{constructor($){super($),this.data.annotationType=g.AnnotationType.CIRCLE}}class v extends U{constructor($){super($),this.data.annotationType=g.AnnotationType.POLYLINE;const M=$.dict.getArray("Vertices");this.data.vertices=[];for(let q=0,K=M.length;q<K;q+=2)this.data.vertices.push({x:M[q],y:M[q+1]})}}class y extends v{constructor($){super($),this.data.annotationType=g.AnnotationType.POLYGON}}class b extends U{constructor($){super($),this.data.annotationType=g.AnnotationType.CARET}}class C extends U{constructor($){super($),this.data.annotationType=g.AnnotationType.INK;const M=$.xref,q=$.dict.getArray("InkList");this.data.inkLists=[];for(let K=0,Z=q.length;K<Z;++K){this.data.inkLists.push([]);for(let te=0,oe=q[K].length;te<oe;te+=2)this.data.inkLists[K].push({x:M.fetchIfRef(q[K][te]),y:M.fetchIfRef(q[K][te+1])})}}}class w extends U{constructor($){super($),this.data.annotationType=g.AnnotationType.HIGHLIGHT;const M=m($.dict,this.rectangle);M&&(this.data.quadPoints=M)}}class T extends U{constructor($){super($),this.data.annotationType=g.AnnotationType.UNDERLINE;const M=m($.dict,this.rectangle);M&&(this.data.quadPoints=M)}}class B extends U{constructor($){super($),this.data.annotationType=g.AnnotationType.SQUIGGLY;const M=m($.dict,this.rectangle);M&&(this.data.quadPoints=M)}}class N extends U{constructor($){super($),this.data.annotationType=g.AnnotationType.STRIKEOUT;const M=m($.dict,this.rectangle);M&&(this.data.quadPoints=M)}}class Q extends U{constructor($){super($),this.data.annotationType=g.AnnotationType.STAMP}}class z extends U{constructor($){super($);const M=new O.FileSpec($.dict.get("FS"),$.xref);this.data.annotationType=g.AnnotationType.FILEATTACHMENT,this.data.file=M.serializable}}},function(S,d,R){Object.defineProperty(d,"__esModule",{value:!0}),d.OperatorList=void 0;var g=R(2),O=function(){function H(u,Y,re,U,X){for(var W=u,G=0,P=Y.length-1;G<P;G++){var E=Y[G];W=W[E]||(W[E]=[])}W[Y[Y.length-1]]={checkFn:re,iterateFn:U,processFn:X}}function ee(u,Y,re,U){for(var X=u+2,W=0;W<Y;W++){var G=U[X+4*W],P=G.length===1&&G[0];if(P&&P.width===1&&P.height===1&&(!P.data.length||P.data.length===1&&P.data[0]===0)){re[X+4*W]=g.OPS.paintSolidColorImageMask;continue}break}return Y-W}var ie=[];H(ie,[g.OPS.save,g.OPS.transform,g.OPS.paintInlineImageXObject,g.OPS.restore],null,function(Y,re){var U=Y.fnArray,X=Y.iCurr-3,W=(re-X)%4;switch(W){case 0:return U[re]===g.OPS.save;case 1:return U[re]===g.OPS.transform;case 2:return U[re]===g.OPS.paintInlineImageXObject;case 3:return U[re]===g.OPS.restore}throw new Error(`iterateInlineImageGroup - invalid pos: ${W}`)},function(Y,re){var U=10,X=200,W=1e3,G=1,P=Y.fnArray,E=Y.argsArray,A=Y.iCurr,_=A-3,F=A-2,D=A-1,L=Math.min(Math.floor((re-_)/4),X);if(L<U)return re-(re-_)%4;var k=0,v=[],y=0,b=G,C=G,w;for(w=0;w<L;w++){var T=E[F+(w<<2)],B=E[D+(w<<2)][0];b+B.width>W&&(k=Math.max(k,b),C+=y+2*G,b=0,y=0),v.push({transform:T,x:b,y:C,w:B.width,h:B.height}),b+=B.width+2*G,y=Math.max(y,B.height)}var N=Math.max(k,b)+G,Q=C+y+G,z=new Uint8ClampedArray(N*Q*4),j=N<<2;for(w=0;w<L;w++){var $=E[D+(w<<2)][0].data,M=v[w].w<<2,q=0,K=v[w].x+v[w].y*N<<2;z.set($.subarray(0,M),K-j);for(var Z=0,te=v[w].h;Z<te;Z++)z.set($.subarray(q,q+M),K),q+=M,K+=j;for(z.set($.subarray(q-M,q),K);K>=0;)$[K-4]=$[K],$[K-3]=$[K+1],$[K-2]=$[K+2],$[K-1]=$[K+3],$[K+M]=$[K+M-4],$[K+M+1]=$[K+M-3],$[K+M+2]=$[K+M-2],$[K+M+3]=$[K+M-1],K-=j}return P.splice(_,L*4,g.OPS.paintInlineImageXObjectGroup),E.splice(_,L*4,[{width:N,height:Q,kind:g.ImageKind.RGBA_32BPP,data:z},v]),_+1}),H(ie,[g.OPS.save,g.OPS.transform,g.OPS.paintImageMaskXObject,g.OPS.restore],null,function(Y,re){var U=Y.fnArray,X=Y.iCurr-3,W=(re-X)%4;switch(W){case 0:return U[re]===g.OPS.save;case 1:return U[re]===g.OPS.transform;case 2:return U[re]===g.OPS.paintImageMaskXObject;case 3:return U[re]===g.OPS.restore}throw new Error(`iterateImageMaskGroup - invalid pos: ${W}`)},function(Y,re){var U=10,X=100,W=1e3,G=Y.fnArray,P=Y.argsArray,E=Y.iCurr,A=E-3,_=E-2,F=E-1,D=Math.floor((re-A)/4);if(D=ee(A,D,G,P),D<U)return re-(re-A)%4;var L,k=!1,v,y,b=P[F][0];if(P[_][1]===0&&P[_][2]===0){k=!0;var C=P[_][0],w=P[_][3];v=_+4;var T=F+4;for(L=1;L<D;L++,v+=4,T+=4)if(y=P[v],P[T][0]!==b||y[0]!==C||y[1]!==0||y[2]!==0||y[3]!==w){L<U?k=!1:D=L;break}}if(k){D=Math.min(D,W);var B=new Float32Array(D*2);for(v=_,L=0;L<D;L++,v+=4)y=P[v],B[L<<1]=y[4],B[(L<<1)+1]=y[5];G.splice(A,D*4,g.OPS.paintImageMaskXObjectRepeat),P.splice(A,D*4,[b,C,w,B])}else{D=Math.min(D,X);var N=[];for(L=0;L<D;L++){y=P[_+(L<<2)];var Q=P[F+(L<<2)][0];N.push({data:Q.data,width:Q.width,height:Q.height,transform:y})}G.splice(A,D*4,g.OPS.paintImageMaskXObjectGroup),P.splice(A,D*4,[N])}return A+1}),H(ie,[g.OPS.save,g.OPS.transform,g.OPS.paintImageXObject,g.OPS.restore],function(u){var Y=u.argsArray,re=u.iCurr-2;return Y[re][1]===0&&Y[re][2]===0},function(Y,re){var U=Y.fnArray,X=Y.argsArray,W=Y.iCurr-3,G=(re-W)%4;switch(G){case 0:return U[re]===g.OPS.save;case 1:if(U[re]!==g.OPS.transform)return!1;var P=Y.iCurr-2,E=X[P][0],A=X[P][3];return!(X[re][0]!==E||X[re][1]!==0||X[re][2]!==0||X[re][3]!==A);case 2:if(U[re]!==g.OPS.paintImageXObject)return!1;var _=Y.iCurr-1,F=X[_][0];return X[re][0]===F;case 3:return U[re]===g.OPS.restore}throw new Error(`iterateImageGroup - invalid pos: ${G}`)},function(u,Y){var re=3,U=1e3,X=u.fnArray,W=u.argsArray,G=u.iCurr,P=G-3,E=G-2,A=G-1,_=W[A][0],F=W[E][0],D=W[E][3],L=Math.min(Math.floor((Y-P)/4),U);if(L<re)return Y-(Y-P)%4;for(var k=new Float32Array(L*2),v=E,y=0;y<L;y++,v+=4){var b=W[v];k[y<<1]=b[4],k[(y<<1)+1]=b[5]}var C=[_,F,D,k];return X.splice(P,L*4,g.OPS.paintImageXObjectRepeat),W.splice(P,L*4,C),P+1}),H(ie,[g.OPS.beginText,g.OPS.setFont,g.OPS.setTextMatrix,g.OPS.showText,g.OPS.endText],null,function(Y,re){var U=Y.fnArray,X=Y.argsArray,W=Y.iCurr-4,G=(re-W)%5;switch(G){case 0:return U[re]===g.OPS.beginText;case 1:return U[re]===g.OPS.setFont;case 2:return U[re]===g.OPS.setTextMatrix;case 3:if(U[re]!==g.OPS.showText)return!1;var P=Y.iCurr-3,E=X[P][0],A=X[P][1];return!(X[re][0]!==E||X[re][1]!==A);case 4:return U[re]===g.OPS.endText}throw new Error(`iterateShowTextGroup - invalid pos: ${G}`)},function(u,Y){var re=3,U=1e3,X=u.fnArray,W=u.argsArray,G=u.iCurr,P=G-4,E=G-3,A=G-2,_=G-1,F=G,D=W[E][0],L=W[E][1],k=Math.min(Math.floor((Y-P)/5),U);if(k<re)return Y-(Y-P)%5;var v=P;P>=4&&X[P-4]===X[E]&&X[P-3]===X[A]&&X[P-2]===X[_]&&X[P-1]===X[F]&&W[P-4][0]===D&&W[P-4][1]===L&&(k++,v-=5);for(var y=v+4,b=1;b<k;b++)X.splice(y,3),W.splice(y,3),y+=2;return y+1});function m(u){this.queue=u,this.state=null,this.context={iCurr:0,fnArray:u.fnArray,argsArray:u.argsArray},this.match=null,this.lastProcessed=0}return m.prototype={_optimize(){const u=this.queue.fnArray;let Y=this.lastProcessed,re=u.length,U=this.state,X=this.match;if(!U&&!X&&Y+1===re&&!ie[u[Y]]){this.lastProcessed=re;return}const W=this.context;for(;Y<re;){if(X){if((0,X.iterateFn)(W,Y)){Y++;continue}if(Y=(0,X.processFn)(W,Y+1),re=u.length,X=null,U=null,Y>=re)break}if(U=(U||ie)[u[Y]],!U||Array.isArray(U)){Y++;continue}if(W.iCurr=Y,Y++,U.checkFn&&!(0,U.checkFn)(W)){U=null;continue}X=U,U=null}this.state=U,this.match=X,this.lastProcessed=Y},push(u,Y){this.queue.fnArray.push(u),this.queue.argsArray.push(Y),this._optimize()},flush(){for(;this.match;){const u=this.queue.fnArray.length;this.lastProcessed=(0,this.match.processFn)(this.context,u),this.match=null,this.state=null,this._optimize()}},reset(){this.state=null,this.match=null,this.lastProcessed=0}},m}(),J=function(){function H(ee){this.queue=ee}return H.prototype={push(ee,ie){this.queue.fnArray.push(ee),this.queue.argsArray.push(ie)},flush(){},reset(){}},H}(),a=function(){var H=1e3,ee=H-5;function ie(m,u,Y){this._streamSink=u,this.fnArray=[],this.argsArray=[],u&&m!=="oplist"?this.optimizer=new O(this):this.optimizer=new J(this),this.dependencies=Object.create(null),this._totalLength=0,this.pageIndex=Y,this.intent=m,this.weight=0,this._resolved=u?null:Promise.resolve()}return ie.prototype={get length(){return this.argsArray.length},get ready(){return this._resolved||this._streamSink.ready},get totalLength(){return this._totalLength+this.length},addOp(m,u){this.optimizer.push(m,u),this.weight++,this._streamSink&&(this.weight>=H?this.flush():this.weight>=ee&&(m===g.OPS.restore||m===g.OPS.endText)&&this.flush())},addDependency(m){m in this.dependencies||(this.dependencies[m]=!0,this.addOp(g.OPS.dependency,[m]))},addDependencies(m){for(var u in m)this.addDependency(u)},addOpList(m){if(!(m instanceof ie)){(0,g.warn)('addOpList - ignoring invalid "opList" parameter.');return}Object.assign(this.dependencies,m.dependencies);for(var u=0,Y=m.length;u<Y;u++)this.addOp(m.fnArray[u],m.argsArray[u])},getIR(){return{fnArray:this.fnArray,argsArray:this.argsArray,length:this.length}},get _transfers(){const m=[],{fnArray:u,argsArray:Y,length:re}=this;for(let U=0;U<re;U++)switch(u[U]){case g.OPS.paintInlineImageXObject:case g.OPS.paintInlineImageXObjectGroup:case g.OPS.paintImageMaskXObject:const X=Y[U][0];X.cached||m.push(X.data.buffer);break}return m},flush(m=!1){this.optimizer.flush();const u=this.length;this._totalLength+=u,this._streamSink.enqueue({fnArray:this.fnArray,argsArray:this.argsArray,lastChunk:m,length:u},1,this._transfers),this.dependencies=Object.create(null),this.fnArray.length=0,this.argsArray.length=0,this.weight=0,this.optimizer.reset()}},ie}();d.OperatorList=a},function(S,d,R){Object.defineProperty(d,"__esModule",{value:!0}),d.PartialEvaluator=void 0;var g=R(2),O=R(28),J=R(5),a=R(29),se=R(32),H=R(8),ee=R(35),ie=R(34),m=R(38),u=R(11),Y=R(39),re=R(23),U=R(12),X=R(33),W=R(40),G=R(41),P=R(24),E=R(43),A=R(26),_=R(44),F=function(){const C={maxImageSize:-1,disableFontFace:!1,ignoreErrors:!1,isEvalSupported:!0,fontExtraProperties:!1};function w({xref:M,handler:q,pageIndex:K,idFactory:Z,fontCache:te,builtInCMapCache:oe,globalImageCache:ae,options:ce=null,pdfFunctionFactory:fe}){this.xref=M,this.handler=q,this.pageIndex=K,this.idFactory=Z,this.fontCache=te,this.builtInCMapCache=oe,this.globalImageCache=ae,this.options=ce||C,this.pdfFunctionFactory=fe,this.parsingType3Font=!1,this.fetchBuiltInCMap=async ne=>{if(this.builtInCMapCache.has(ne))return this.builtInCMapCache.get(ne);const ue=this.handler.sendWithStream("FetchBuiltInCMap",{name:ne}).getReader(),he=await new Promise(function(de,ve){function me(){ue.read().then(function({value:Se,done:Ce}){Ce||(de(Se),me())},ve)}me()});return he.compressionType!==g.CMapCompressionType.NONE&&this.builtInCMapCache.set(ne,he),he}}var T=20,B=100;function N(){this.reset()}N.prototype={check:function(){return++this.checked<B?!1:(this.checked=0,this.endTime<=Date.now())},reset:function(){this.endTime=Date.now()+T,this.checked=0}};function Q(M,q=!1){if(Array.isArray(M)){for(let K=0,Z=M.length;K<Z;K++){const te=Q(M[K],!0);if(te)return te}return(0,g.warn)(`Unsupported blend mode Array: ${M}`),"source-over"}if(!(0,J.isName)(M))return q?null:"source-over";switch(M.name){case"Normal":case"Compatible":return"source-over";case"Multiply":return"multiply";case"Screen":return"screen";case"Overlay":return"overlay";case"Darken":return"darken";case"Lighten":return"lighten";case"ColorDodge":return"color-dodge";case"ColorBurn":return"color-burn";case"HardLight":return"hard-light";case"SoftLight":return"soft-light";case"Difference":return"difference";case"Exclusion":return"exclusion";case"Hue":return"hue";case"Saturation":return"saturation";case"Color":return"color";case"Luminosity":return"luminosity"}return q?null:((0,g.warn)(`Unsupported blend mode: ${M.name}`),"source-over")}var z=Promise.resolve(),j=1,$=2;return w.prototype={clone(M=C){var q=Object.create(this);return q.options=M,q},hasBlendModes:function(q){if(!(q instanceof J.Dict))return!1;var K=Object.create(null);q.objId&&(K[q.objId]=!0);for(var Z=[q],te=this.xref;Z.length;){var oe=Z.shift(),ae=oe.get("ExtGState");if(ae instanceof J.Dict){var ce=ae.getKeys();for(let he=0,de=ce.length;he<de;he++){const ve=ce[he];let me=ae.getRaw(ve);if(me instanceof J.Ref){if(K[me.toString()])continue;try{me=te.fetch(me)}catch(Ce){if(Ce instanceof H.MissingDataException)throw Ce;if(this.options.ignoreErrors){me instanceof J.Ref&&(K[me.toString()]=!0),this.handler.send("UnsupportedFeature",{featureId:g.UNSUPPORTED_FEATURES.errorExtGState}),(0,g.warn)(`hasBlendModes - ignoring ExtGState: "${Ce}".`);continue}throw Ce}}if(!(me instanceof J.Dict))continue;me.objId&&(K[me.objId]=!0);const Se=me.get("BM");if(Se instanceof J.Name){if(Se.name!=="Normal")return!0;continue}if(Se!==void 0&&Array.isArray(Se)){for(let Ce=0,xe=Se.length;Ce<xe;Ce++)if(Se[Ce]instanceof J.Name&&Se[Ce].name!=="Normal")return!0}}}var fe=oe.get("XObject");if(fe instanceof J.Dict){var ne=fe.getKeys();for(let he=0,de=ne.length;he<de;he++){const ve=ne[he];var le=fe.getRaw(ve);if(le instanceof J.Ref){if(K[le.toString()])continue;try{le=te.fetch(le)}catch(me){if(me instanceof H.MissingDataException)throw me;if(this.options.ignoreErrors){le instanceof J.Ref&&(K[le.toString()]=!0),this.handler.send("UnsupportedFeature",{featureId:g.UNSUPPORTED_FEATURES.errorXObject}),(0,g.warn)(`hasBlendModes - ignoring XObject: "${me}".`);continue}throw me}}if(!!(0,J.isStream)(le)){if(le.dict.objId){if(K[le.dict.objId])continue;K[le.dict.objId]=!0}var ue=le.dict.get("Resources");ue instanceof J.Dict&&(!ue.objId||!K[ue.objId])&&(Z.push(ue),ue.objId&&(K[ue.objId]=!0))}}}}return!1},async buildFormXObject(M,q,K,Z,te,oe){var ae=q.dict,ce=ae.getArray("Matrix"),fe=ae.getArray("BBox");Array.isArray(fe)&&fe.length===4?fe=g.Util.normalizeRect(fe):fe=null;var ne=ae.get("Group");if(ne){var le={matrix:ce,bbox:fe,smask:K,isolated:!1,knockout:!1},ue=ne.get("S"),he=null;(0,J.isName)(ue,"Transparency")&&(le.isolated=ne.get("I")||!1,le.knockout=ne.get("K")||!1,ne.has("CS")&&(he=await this.parseColorSpace({cs:ne.get("CS"),resources:M}))),K&&K.backdrop&&(he=he||re.ColorSpace.singletons.rgb,K.backdrop=he.getRgb(K.backdrop,0)),Z.addOp(g.OPS.beginGroup,[le])}return Z.addOp(g.OPS.paintFormXObjectBegin,[ce,fe]),this.getOperatorList({stream:q,task:te,resources:ae.get("Resources")||M,operatorList:Z,initialState:oe}).then(function(){Z.addOp(g.OPS.paintFormXObjectEnd,[]),ne&&Z.addOp(g.OPS.endGroup,[le])})},async buildPaintImageXObject({resources:M,image:q,isInline:K=!1,operatorList:Z,cacheKey:te,localImageCache:oe}){var ae=q.dict;const ce=ae.objId;var fe=ae.get("Width","W"),ne=ae.get("Height","H");if(!(fe&&(0,g.isNum)(fe))||!(ne&&(0,g.isNum)(ne))){(0,g.warn)("Image dimensions are missing, or not numbers.");return}var le=this.options.maxImageSize;if(le!==-1&&fe*ne>le){(0,g.warn)("Image exceeded maximum allowed size and was removed.");return}var ue=ae.get("ImageMask","IM")||!1,he,de;if(ue){var ve=ae.get("Width","W"),me=ae.get("Height","H"),Se=ve+7>>3,Ce=q.getBytes(Se*me,!0),xe=ae.getArray("Decode","D");he=_.PDFImage.createMask({imgArray:Ce,width:ve,height:me,imageIsFromDecodeStream:q instanceof U.DecodeStream,inverseDecode:!!xe&&xe[0]>0}),he.cached=!!te,de=[he],Z.addOp(g.OPS.paintImageMaskXObject,de),te&&oe.set(te,ce,{fn:g.OPS.paintImageMaskXObject,args:de});return}var ge=ae.get("SMask","SM")||!1,Ae=ae.get("Mask")||!1,we=200;if(K&&!ge&&!Ae&&fe+ne<we){he=new _.PDFImage({xref:this.xref,res:M,image:q,isInline:K,pdfFunctionFactory:this.pdfFunctionFactory}).createImageData(!0),Z.addOp(g.OPS.paintInlineImageXObject,[he]);return}let Fe=`img_${this.idFactory.createObjId()}`,_e=!1;this.parsingType3Font?Fe=`${this.idFactory.getDocId()}_type3res_${Fe}`:ce&&(_e=this.globalImageCache.shouldCache(ce,this.pageIndex),_e&&(Fe=`${this.idFactory.getDocId()}_${Fe}`)),Z.addDependency(Fe),de=[Fe,fe,ne];const De=_.PDFImage.buildImage({xref:this.xref,res:M,image:q,isInline:K,pdfFunctionFactory:this.pdfFunctionFactory}).then(Be=>{if(he=Be.createImageData(!1),this.parsingType3Font)return this.handler.sendWithPromise("commonobj",[Fe,"FontType3Res",he],[he.data.buffer]);if(_e){this.handler.send("commonobj",[Fe,"Image",he],[he.data.buffer]);return}this.handler.send("obj",[Fe,this.pageIndex,"Image",he],[he.data.buffer])}).catch(Be=>{if((0,g.warn)("Unable to decode image: "+Be),this.parsingType3Font)return this.handler.sendWithPromise("commonobj",[Fe,"FontType3Res",null]);if(_e){this.handler.send("commonobj",[Fe,"Image",null]);return}this.handler.send("obj",[Fe,this.pageIndex,"Image",null])});this.parsingType3Font&&await De,Z.addOp(g.OPS.paintImageXObject,de),te&&(oe.set(te,ce,{fn:g.OPS.paintImageXObject,args:de}),ce&&((0,g.assert)(!K,"Cannot cache an inline image globally."),this.globalImageCache.addPageIndex(ce,this.pageIndex),_e&&this.globalImageCache.setData(ce,{objId:Fe,fn:g.OPS.paintImageXObject,args:de})))},handleSMask:function(q,K,Z,te,oe){var ae=q.get("G"),ce={subtype:q.get("S").name,backdrop:q.get("BC")},fe=q.get("TR");if((0,G.isPDFFunction)(fe)){const he=this.pdfFunctionFactory.create(fe);for(var ne=new Uint8Array(256),le=new Float32Array(1),ue=0;ue<256;ue++)le[0]=ue/255,he(le,0,le,0),ne[ue]=le[0]*255|0;ce.transferMap=ne}return this.buildFormXObject(K,ae,ce,Z,te,oe.state.clone())},handleTilingType(M,q,K,Z,te,oe,ae){const ce=new A.OperatorList,fe=[te.get("Resources"),K],ne=J.Dict.merge(this.xref,fe);return this.getOperatorList({stream:Z,task:ae,resources:ne,operatorList:ce}).then(function(){return(0,m.getTilingPatternIR)({fnArray:ce.fnArray,argsArray:ce.argsArray},te,q)}).then(function(le){oe.addDependencies(ce.dependencies),oe.addOp(M,le)},le=>{if(!(le instanceof g.AbortException)){if(this.options.ignoreErrors){this.handler.send("UnsupportedFeature",{featureId:g.UNSUPPORTED_FEATURES.errorTilingPattern}),(0,g.warn)(`handleTilingType - ignoring pattern: "${le}".`);return}throw le}})},handleSetFont:function(q,K,Z,te,oe,ae){var ce;return K&&(K=K.slice(),ce=K[0].name),this.loadFont(ce,Z,q).then(fe=>fe.font.isType3Font?fe.loadType3Data(this,q,te,oe).then(function(){return fe}).catch(ne=>(this.handler.send("UnsupportedFeature",{featureId:g.UNSUPPORTED_FEATURES.errorFontLoadType3}),new D({loadedName:"g_font_error",font:new a.ErrorFont(`Type3 font load error: ${ne}`),dict:fe.font,extraProperties:this.options.fontExtraProperties}))):fe).then(fe=>(ae.font=fe.font,fe.send(this.handler),fe.loadedName))},handleText(M,q){const K=q.font,Z=K.charsToGlyphs(M);return K.data&&(!!(q.textRenderingMode&g.TextRenderingMode.ADD_TO_PATH_FLAG)||q.fillColorSpace.name==="Pattern"||K.disableFontFace||this.options.disableFontFace)&&w.buildFontPaths(K,Z,this.handler),Z},ensureStateFont(M){if(M.font)return;const q=new g.FormatError("Missing setFont (Tf) operator before text rendering operator.");if(this.options.ignoreErrors){this.handler.send("UnsupportedFeature",{featureId:g.UNSUPPORTED_FEATURES.errorFontState}),(0,g.warn)(`ensureStateFont: "${q}".`);return}throw q},setGState:function(q,K,Z,te,oe){for(var ae=[],ce=K.getKeys(),fe=Promise.resolve(),ne=0,le=ce.length;ne<le;ne++){const ue=ce[ne],he=K.get(ue);switch(ue){case"Type":break;case"LW":case"LC":case"LJ":case"ML":case"D":case"RI":case"FL":case"CA":case"ca":ae.push([ue,he]);break;case"Font":fe=fe.then(()=>this.handleSetFont(q,null,he[0],Z,te,oe.state).then(function(de){Z.addDependency(de),ae.push([ue,[de,he[1]]])}));break;case"BM":ae.push([ue,Q(he)]);break;case"SMask":if((0,J.isName)(he,"None")){ae.push([ue,!1]);break}(0,J.isDict)(he)?(fe=fe.then(()=>this.handleSMask(he,q,Z,te,oe)),ae.push([ue,!0])):(0,g.warn)("Unsupported SMask type");break;case"OP":case"op":case"OPM":case"BG":case"BG2":case"UCR":case"UCR2":case"TR":case"TR2":case"HT":case"SM":case"SA":case"AIS":case"TK":(0,g.info)("graphic state operator "+ue);break;default:(0,g.info)("Unknown graphic state operator "+ue);break}}return fe.then(function(){ae.length>0&&Z.addOp(g.OPS.setGState,[ae])})},loadFont:function(q,K,Z){const te=()=>Promise.resolve(new D({loadedName:"g_font_error",font:new a.ErrorFont(`Font "${q}" is not available.`),dict:K,extraProperties:this.options.fontExtraProperties}));var oe,ae=this.xref;if(K){if(!(0,J.isRef)(K))throw new g.FormatError('The "font" object should be a reference.');oe=K}else{var ce=Z.get("Font");ce&&(oe=ce.getRaw(q))}if(!oe){const Ce=`Font "${q||K&&K.toString()}" is not available`;if(!this.options.ignoreErrors&&!this.parsingType3Font)return(0,g.warn)(`${Ce}.`),te();this.handler.send("UnsupportedFeature",{featureId:g.UNSUPPORTED_FEATURES.errorFontMissing}),(0,g.warn)(`${Ce} -- attempting to fallback to a default font.`),oe=w.getFallbackFontDict()}if(this.fontCache.has(oe))return this.fontCache.get(oe);if(K=ae.fetchIfRef(oe),!(0,J.isDict)(K))return te();if(K.translated)return K.translated;var fe=(0,g.createPromiseCapability)(),ne=this.preEvaluateFont(K);const{descriptor:le,hash:ue}=ne;var he=(0,J.isRef)(oe),de;if(he&&(de=oe.toString()),ue&&(0,J.isDict)(le)){le.fontAliases||(le.fontAliases=Object.create(null));var ve=le.fontAliases;if(ve[ue]){var me=ve[ue].aliasRef;if(he&&me&&this.fontCache.has(me))return this.fontCache.putAlias(oe,me),this.fontCache.get(oe)}else ve[ue]={fontID:a.Font.getFontID()};he&&(ve[ue].aliasRef=oe),de=ve[ue].fontID}he?this.fontCache.put(oe,fe.promise):(de||(de=this.idFactory.createObjId()),this.fontCache.put(`id_${de}`,fe.promise)),(0,g.assert)(de,'The "fontID" must be defined.'),K.loadedName=`${this.idFactory.getDocId()}_f${de}`,K.translated=fe.promise;var Se;try{Se=this.translateFont(ne)}catch(Ce){Se=Promise.reject(Ce)}return Se.then(Ce=>{if(Ce.fontType!==void 0){var xe=ae.stats.fontTypes;xe[Ce.fontType]=!0}fe.resolve(new D({loadedName:K.loadedName,font:Ce,dict:K,extraProperties:this.options.fontExtraProperties}))}).catch(Ce=>{this.handler.send("UnsupportedFeature",{featureId:g.UNSUPPORTED_FEATURES.errorFontTranslate});try{var xe=le&&le.get("FontFile3"),ge=xe&&xe.get("Subtype"),Ae=(0,a.getFontType)(ne.type,ge&&ge.name),we=ae.stats.fontTypes;we[Ae]=!0}catch{}fe.resolve(new D({loadedName:K.loadedName,font:new a.ErrorFont(Ce instanceof Error?Ce.message:Ce),dict:K,extraProperties:this.options.fontExtraProperties}))}),fe.promise},buildPath(M,q,K,Z=!1){var te=M.length-1;if(K||(K=[]),te<0||M.fnArray[te]!==g.OPS.constructPath)Z&&((0,g.warn)(`Encountered path operator "${q}" inside of a text object.`),M.addOp(g.OPS.save,null)),M.addOp(g.OPS.constructPath,[[q],K]),Z&&M.addOp(g.OPS.restore,null);else{var oe=M.argsArray[te];oe[0].push(q),Array.prototype.push.apply(oe[1],K)}},parseColorSpace({cs:M,resources:q}){return new Promise(K=>{K(re.ColorSpace.parse(M,this.xref,q,this.pdfFunctionFactory))}).catch(K=>{if(K instanceof g.AbortException)return null;if(this.options.ignoreErrors)return this.handler.send("UnsupportedFeature",{featureId:g.UNSUPPORTED_FEATURES.errorColorSpace}),(0,g.warn)(`parseColorSpace - ignoring ColorSpace: "${K}".`),null;throw K})},async handleColorN(M,q,K,Z,te,oe,ae){var ce=K[K.length-1],fe;if((0,J.isName)(ce)&&(fe=te.get(ce.name))){var ne=(0,J.isStream)(fe)?fe.dict:fe,le=ne.get("PatternType");if(le===j){var ue=Z.base?Z.base.getRgb(K,0):null;return this.handleTilingType(q,ue,oe,fe,ne,M,ae)}else if(le===$){var he=ne.get("Shading"),de=ne.getArray("Matrix");fe=m.Pattern.parseShading(he,de,this.xref,oe,this.handler,this.pdfFunctionFactory),M.addOp(q,fe.getIR());return}throw new g.FormatError(`Unknown PatternType: ${le}`)}throw new g.FormatError(`Unknown PatternName: ${ce}`)},getOperatorList({stream:M,task:q,resources:K,operatorList:Z,initialState:te=null}){if(K=K||J.Dict.empty,te=te||new v,!Z)throw new Error('getOperatorList: missing "operatorList" parameter');var oe=this,ae=this.xref;let ce=!1;const fe=new P.LocalImageCache;var ne=K.get("XObject")||J.Dict.empty,le=K.get("Pattern")||J.Dict.empty,ue=new L(te),he=new y(M,ae,ue),de=new N;function ve(me){for(var Se=0,Ce=he.savedStatesDepth;Se<Ce;Se++)Z.addOp(g.OPS.restore,[])}return new Promise(function me(Se,Ce){const xe=function($e){Promise.all([$e,Z.ready]).then(function(){try{me(Se,Ce)}catch(tt){Ce(tt)}},Ce)};q.ensureNotTerminated(),de.reset();for(var ge,Ae={},we,Fe,_e;!(ge=de.check())&&(Ae.args=null,!!he.read(Ae));){var De=Ae.args,Be=Ae.fn;switch(Be|0){case g.OPS.paintXObject:var Ee=De[0].name;if(Ee){const $e=fe.getByName(Ee);if($e){Z.addOp($e.fn,$e.args),De=null;continue}}xe(new Promise(function($e,tt){if(!Ee)throw new g.FormatError("XObject must be referred to by name.");let Ye=ne.getRaw(Ee);if(Ye instanceof J.Ref){const rt=fe.getByRef(Ye);if(rt){Z.addOp(rt.fn,rt.args),$e();return}const Ze=oe.globalImageCache.getData(Ye,oe.pageIndex);if(Ze){Z.addDependency(Ze.objId),Z.addOp(Ze.fn,Ze.args),$e();return}Ye=ae.fetch(Ye)}if(!Ye){Z.addOp(Be,De),$e();return}if(!(0,J.isStream)(Ye))throw new g.FormatError("XObject should be a stream");const Xe=Ye.dict.get("Subtype");if(!(0,J.isName)(Xe))throw new g.FormatError("XObject should have a Name subtype");if(Xe.name==="Form"){ue.save(),oe.buildFormXObject(K,Ye,null,Z,q,ue.state.clone()).then(function(){ue.restore(),$e()},tt);return}else if(Xe.name==="Image"){oe.buildPaintImageXObject({resources:K,image:Ye,operatorList:Z,cacheKey:Ee,localImageCache:fe}).then($e,tt);return}else if(Xe.name==="PS")(0,g.info)("Ignored XObject subtype PS");else throw new g.FormatError(`Unhandled XObject subtype ${Xe.name}`);$e()}).catch(function($e){if(!($e instanceof g.AbortException)){if(oe.options.ignoreErrors){oe.handler.send("UnsupportedFeature",{featureId:g.UNSUPPORTED_FEATURES.errorXObject}),(0,g.warn)(`getOperatorList - ignoring XObject: "${$e}".`);return}throw $e}}));return;case g.OPS.setFont:var ke=De[1];xe(oe.handleSetFont(K,De,null,Z,q,ue.state).then(function($e){Z.addDependency($e),Z.addOp(g.OPS.setFont,[$e,ke])}));return;case g.OPS.beginText:ce=!0;break;case g.OPS.endText:ce=!1;break;case g.OPS.endInlineImage:var pe=De[0].cacheKey;if(pe){const $e=fe.getByName(pe);if($e){Z.addOp($e.fn,$e.args),De=null;continue}}xe(oe.buildPaintImageXObject({resources:K,image:De[0],isInline:!0,operatorList:Z,cacheKey:pe,localImageCache:fe}));return;case g.OPS.showText:if(!ue.state.font){oe.ensureStateFont(ue.state);continue}De[0]=oe.handleText(De[0],ue.state);break;case g.OPS.showSpacedText:if(!ue.state.font){oe.ensureStateFont(ue.state);continue}var be=De[0],ye=[],Te=be.length,Pe=ue.state;for(we=0;we<Te;++we){var Le=be[we];(0,g.isString)(Le)?Array.prototype.push.apply(ye,oe.handleText(Le,Pe)):(0,g.isNum)(Le)&&ye.push(Le)}De[0]=ye,Be=g.OPS.showText;break;case g.OPS.nextLineShowText:if(!ue.state.font){oe.ensureStateFont(ue.state);continue}Z.addOp(g.OPS.nextLine),De[0]=oe.handleText(De[0],ue.state),Be=g.OPS.showText;break;case g.OPS.nextLineSetSpacingShowText:if(!ue.state.font){oe.ensureStateFont(ue.state);continue}Z.addOp(g.OPS.nextLine),Z.addOp(g.OPS.setWordSpacing,[De.shift()]),Z.addOp(g.OPS.setCharSpacing,[De.shift()]),De[0]=oe.handleText(De[0],ue.state),Be=g.OPS.showText;break;case g.OPS.setTextRenderingMode:ue.state.textRenderingMode=De[0];break;case g.OPS.setFillColorSpace:xe(oe.parseColorSpace({cs:De[0],resources:K}).then(function($e){$e&&(ue.state.fillColorSpace=$e)}));return;case g.OPS.setStrokeColorSpace:xe(oe.parseColorSpace({cs:De[0],resources:K}).then(function($e){$e&&(ue.state.strokeColorSpace=$e)}));return;case g.OPS.setFillColor:_e=ue.state.fillColorSpace,De=_e.getRgb(De,0),Be=g.OPS.setFillRGBColor;break;case g.OPS.setStrokeColor:_e=ue.state.strokeColorSpace,De=_e.getRgb(De,0),Be=g.OPS.setStrokeRGBColor;break;case g.OPS.setFillGray:ue.state.fillColorSpace=re.ColorSpace.singletons.gray,De=re.ColorSpace.singletons.gray.getRgb(De,0),Be=g.OPS.setFillRGBColor;break;case g.OPS.setStrokeGray:ue.state.strokeColorSpace=re.ColorSpace.singletons.gray,De=re.ColorSpace.singletons.gray.getRgb(De,0),Be=g.OPS.setStrokeRGBColor;break;case g.OPS.setFillCMYKColor:ue.state.fillColorSpace=re.ColorSpace.singletons.cmyk,De=re.ColorSpace.singletons.cmyk.getRgb(De,0),Be=g.OPS.setFillRGBColor;break;case g.OPS.setStrokeCMYKColor:ue.state.strokeColorSpace=re.ColorSpace.singletons.cmyk,De=re.ColorSpace.singletons.cmyk.getRgb(De,0),Be=g.OPS.setStrokeRGBColor;break;case g.OPS.setFillRGBColor:ue.state.fillColorSpace=re.ColorSpace.singletons.rgb,De=re.ColorSpace.singletons.rgb.getRgb(De,0);break;case g.OPS.setStrokeRGBColor:ue.state.strokeColorSpace=re.ColorSpace.singletons.rgb,De=re.ColorSpace.singletons.rgb.getRgb(De,0);break;case g.OPS.setFillColorN:if(_e=ue.state.fillColorSpace,_e.name==="Pattern"){xe(oe.handleColorN(Z,g.OPS.setFillColorN,De,_e,le,K,q));return}De=_e.getRgb(De,0),Be=g.OPS.setFillRGBColor;break;case g.OPS.setStrokeColorN:if(_e=ue.state.strokeColorSpace,_e.name==="Pattern"){xe(oe.handleColorN(Z,g.OPS.setStrokeColorN,De,_e,le,K,q));return}De=_e.getRgb(De,0),Be=g.OPS.setStrokeRGBColor;break;case g.OPS.shadingFill:var Re=K.get("Shading");if(!Re)throw new g.FormatError("No shading resource found");var Ie=Re.get(De[0].name);if(!Ie)throw new g.FormatError("No shading object found");var He=m.Pattern.parseShading(Ie,null,ae,K,oe.handler,oe.pdfFunctionFactory),Ue=He.getIR();De=[Ue],Be=g.OPS.shadingFill;break;case g.OPS.setGState:var Ge=De[0],je=K.get("ExtGState");if(!(0,J.isDict)(je)||!je.has(Ge.name))break;var Oe=je.get(Ge.name);xe(oe.setGState(K,Oe,Z,q,ue));return;case g.OPS.moveTo:case g.OPS.lineTo:case g.OPS.curveTo:case g.OPS.curveTo2:case g.OPS.curveTo3:case g.OPS.closePath:case g.OPS.rectangle:oe.buildPath(Z,Be,De,ce);continue;case g.OPS.markPoint:case g.OPS.markPointProps:case g.OPS.beginMarkedContent:case g.OPS.beginMarkedContentProps:case g.OPS.endMarkedContent:case g.OPS.beginCompat:case g.OPS.endCompat:continue;default:if(De!==null){for(we=0,Fe=De.length;we<Fe&&!(De[we]instanceof J.Dict);we++);if(we<Fe){(0,g.warn)("getOperatorList - ignoring operator: "+Be);continue}}}Z.addOp(Be,De)}if(ge){xe(z);return}ve(),Se()}).catch(me=>{if(!(me instanceof g.AbortException)){if(this.options.ignoreErrors){this.handler.send("UnsupportedFeature",{featureId:g.UNSUPPORTED_FEATURES.errorOperatorList}),(0,g.warn)(`getOperatorList - ignoring errors during "${q.name}" task: "${me}".`),ve();return}throw me}})},getTextContent({stream:M,task:q,resources:K,stateManager:Z=null,normalizeWhitespace:te=!1,combineTextItems:oe=!1,sink:ae,seenStyles:ce=Object.create(null)}){K=K||J.Dict.empty,Z=Z||new L(new k);var fe=/\s/g,ne={items:[],styles:Object.create(null)},le={initialized:!1,str:[],width:0,height:0,vertical:!1,lastAdvanceWidth:0,lastAdvanceHeight:0,textAdvanceScale:0,spaceWidth:0,fakeSpaceMin:1/0,fakeMultiSpaceMin:1/0,fakeMultiSpaceMax:-0,textRunBreakAllowed:!1,transform:null,fontName:null},ue=.3,he=1.5,de=4,ve=this,me=this.xref,Se=null;const Ce=new P.LocalImageCache;var xe=new y(M,me,Z),ge;function Ae(){if(le.initialized)return le;var be=ge.font;be.loadedName in ce||(ce[be.loadedName]=!0,ne.styles[be.loadedName]={fontFamily:be.fallbackName,ascent:be.ascent,descent:be.descent,vertical:be.vertical}),le.fontName=be.loadedName;var ye=[ge.fontSize*ge.textHScale,0,0,ge.fontSize,0,ge.textRise];if(be.isType3Font&&ge.fontSize<=1&&!(0,g.isArrayEqual)(ge.fontMatrix,g.FONT_IDENTITY_MATRIX)){const Ue=be.bbox[3]-be.bbox[1];Ue>0&&(ye[3]*=Ue*ge.fontMatrix[3])}var Te=g.Util.transform(ge.ctm,g.Util.transform(ge.textMatrix,ye));le.transform=Te,be.vertical?(le.width=Math.sqrt(Te[0]*Te[0]+Te[1]*Te[1]),le.height=0,le.vertical=!0):(le.width=0,le.height=Math.sqrt(Te[2]*Te[2]+Te[3]*Te[3]),le.vertical=!1);var Pe=ge.textLineMatrix[0],Le=ge.textLineMatrix[1],Re=Math.sqrt(Pe*Pe+Le*Le);Pe=ge.ctm[0],Le=ge.ctm[1];var Ie=Math.sqrt(Pe*Pe+Le*Le);le.textAdvanceScale=Ie*Re,le.lastAdvanceWidth=0,le.lastAdvanceHeight=0;var He=be.spaceWidth/1e3*ge.fontSize;return He?(le.spaceWidth=He,le.fakeSpaceMin=He*ue,le.fakeMultiSpaceMin=He*he,le.fakeMultiSpaceMax=He*de,le.textRunBreakAllowed=!be.isMonospace):(le.spaceWidth=0,le.fakeSpaceMin=1/0,le.fakeMultiSpaceMin=1/0,le.fakeMultiSpaceMax=0,le.textRunBreakAllowed=!1),le.initialized=!0,le}function we(be){for(var ye=0,Te=be.length,Pe;ye<Te&&(Pe=be.charCodeAt(ye))>=32&&Pe<=127;)ye++;return ye<Te?be.replace(fe," "):be}function Fe(be){var ye=be.str.join(""),Te=(0,Y.bidi)(ye,-1,be.vertical);return{str:te?we(Te.str):Te.str,dir:Te.dir,width:be.width,height:be.height,transform:be.transform,fontName:be.fontName}}function _e(be,ye){return ve.loadFont(be,ye,K).then(function(Te){ge.font=Te.font,ge.fontMatrix=Te.font.fontMatrix||g.FONT_IDENTITY_MATRIX})}function De(be){for(var ye=ge.font,Te=Ae(),Pe=0,Le=0,Re=ye.charsToGlyphs(be),Ie=0;Ie<Re.length;Ie++){var He=Re[Ie],Ue=null;ye.vertical&&He.vmetric?Ue=He.vmetric[0]:Ue=He.width;var Ge=He.unicode,je=(0,ee.getNormalizedUnicodes)();je[Ge]!==void 0&&(Ge=je[Ge]),Ge=(0,ee.reverseIfRtl)(Ge);var Oe=ge.charSpacing;if(He.isSpace){var $e=ge.wordSpacing;Oe+=$e,$e>0&&Be($e,Te.str)}var tt=0,Ye=0;if(ye.vertical){var rt=Ue*ge.fontMatrix[0];Ye=rt*ge.fontSize+Oe,Le+=Ye}else{var Xe=Ue*ge.fontMatrix[0];tt=(Xe*ge.fontSize+Oe)*ge.textHScale,Pe+=tt}ge.translateTextMatrix(tt,Ye),Te.str.push(Ge)}return ye.vertical?(Te.lastAdvanceHeight=Le,Te.height+=Math.abs(Le)):(Te.lastAdvanceWidth=Pe,Te.width+=Pe),Te}function Be(be,ye){if(!(be<le.fakeSpaceMin)){if(be<le.fakeMultiSpaceMin){ye.push(" ");return}for(var Te=Math.round(be/le.spaceWidth);Te-- >0;)ye.push(" ")}}function Ee(){!le.initialized||(le.vertical?le.height*=le.textAdvanceScale:le.width*=le.textAdvanceScale,ne.items.push(Fe(le)),le.initialized=!1,le.str.length=0)}function ke(){const be=ne.items.length;be>0&&(ae.enqueue(ne,be),ne.items=[],ne.styles=Object.create(null))}var pe=new N;return new Promise(function be(ye,Te){const Pe=function(ut){ke(),Promise.all([ut,ae.ready]).then(function(){try{be(ye,Te)}catch(Ft){Te(Ft)}},Te)};q.ensureNotTerminated(),pe.reset();for(var Le,Re={},Ie=[];!(Le=pe.check())&&(Ie.length=0,Re.args=Ie,!!xe.read(Re));){ge=Z.state;var He=Re.fn;Ie=Re.args;var Ue,Ge;switch(He|0){case g.OPS.setFont:var je=Ie[0].name,Oe=Ie[1];if(ge.font&&je===ge.fontName&&Oe===ge.fontSize)break;Ee(),ge.fontName=je,ge.fontSize=Oe,Pe(_e(je,null));return;case g.OPS.setTextRise:Ee(),ge.textRise=Ie[0];break;case g.OPS.setHScale:Ee(),ge.textHScale=Ie[0]/100;break;case g.OPS.setLeading:Ee(),ge.leading=Ie[0];break;case g.OPS.moveText:var $e=ge.font?(ge.font.vertical?Ie[0]:Ie[1])===0:!1;if(Ue=Ie[0]-Ie[1],oe&&$e&&le.initialized&&Ue>0&&Ue<=le.fakeMultiSpaceMax){ge.translateTextLineMatrix(Ie[0],Ie[1]),le.width+=Ie[0]-le.lastAdvanceWidth,le.height+=Ie[1]-le.lastAdvanceHeight,Ge=Ie[0]-le.lastAdvanceWidth-(Ie[1]-le.lastAdvanceHeight),Be(Ge,le.str);break}Ee(),ge.translateTextLineMatrix(Ie[0],Ie[1]),ge.textMatrix=ge.textLineMatrix.slice();break;case g.OPS.setLeadingMoveText:Ee(),ge.leading=-Ie[1],ge.translateTextLineMatrix(Ie[0],Ie[1]),ge.textMatrix=ge.textLineMatrix.slice();break;case g.OPS.nextLine:Ee(),ge.carriageReturn();break;case g.OPS.setTextMatrix:if(Ue=ge.calcTextLineMatrixAdvance(Ie[0],Ie[1],Ie[2],Ie[3],Ie[4],Ie[5]),oe&&Ue!==null&&le.initialized&&Ue.value>0&&Ue.value<=le.fakeMultiSpaceMax){ge.translateTextLineMatrix(Ue.width,Ue.height),le.width+=Ue.width-le.lastAdvanceWidth,le.height+=Ue.height-le.lastAdvanceHeight,Ge=Ue.width-le.lastAdvanceWidth-(Ue.height-le.lastAdvanceHeight),Be(Ge,le.str);break}Ee(),ge.setTextMatrix(Ie[0],Ie[1],Ie[2],Ie[3],Ie[4],Ie[5]),ge.setTextLineMatrix(Ie[0],Ie[1],Ie[2],Ie[3],Ie[4],Ie[5]);break;case g.OPS.setCharSpacing:ge.charSpacing=Ie[0];break;case g.OPS.setWordSpacing:ge.wordSpacing=Ie[0];break;case g.OPS.beginText:Ee(),ge.textMatrix=g.IDENTITY_MATRIX.slice(),ge.textLineMatrix=g.IDENTITY_MATRIX.slice();break;case g.OPS.showSpacedText:if(!Z.state.font){ve.ensureStateFont(Z.state);continue}for(var tt=Ie[0],Ye,Xe=0,rt=tt.length;Xe<rt;Xe++)if(typeof tt[Xe]=="string")De(tt[Xe]);else if((0,g.isNum)(tt[Xe])){Ae(),Ue=tt[Xe]*ge.fontSize/1e3;var Ze=!1;ge.font.vertical?(Ye=Ue,ge.translateTextMatrix(0,Ye),Ze=le.textRunBreakAllowed&&Ue>le.fakeMultiSpaceMax,Ze||(le.height+=Ye)):(Ue=-Ue,Ye=Ue*ge.textHScale,ge.translateTextMatrix(Ye,0),Ze=le.textRunBreakAllowed&&Ue>le.fakeMultiSpaceMax,Ze||(le.width+=Ye)),Ze?Ee():Ue>0&&Be(Ue,le.str)}break;case g.OPS.showText:if(!Z.state.font){ve.ensureStateFont(Z.state);continue}De(Ie[0]);break;case g.OPS.nextLineShowText:if(!Z.state.font){ve.ensureStateFont(Z.state);continue}Ee(),ge.carriageReturn(),De(Ie[0]);break;case g.OPS.nextLineSetSpacingShowText:if(!Z.state.font){ve.ensureStateFont(Z.state);continue}Ee(),ge.wordSpacing=Ie[0],ge.charSpacing=Ie[1],ge.carriageReturn(),De(Ie[2]);break;case g.OPS.paintXObject:Ee(),Se||(Se=K.get("XObject")||J.Dict.empty);var ct=Ie[0].name;if(ct&&Ce.getByName(ct))break;Pe(new Promise(function(ut,Ft){if(!ct)throw new g.FormatError("XObject must be referred to by name.");let vt=Se.getRaw(ct);if(vt instanceof J.Ref){if(Ce.getByRef(vt)){ut();return}vt=me.fetch(vt)}if(!vt){ut();return}if(!(0,J.isStream)(vt))throw new g.FormatError("XObject should be a stream");const Et=vt.dict.get("Subtype");if(!(0,J.isName)(Et))throw new g.FormatError("XObject should have a Name subtype");if(Et.name!=="Form"){Ce.set(ct,vt.dict.objId,!0),ut();return}const Dt=Z.state.clone(),Rt=new L(Dt),Bt=vt.dict.getArray("Matrix");Array.isArray(Bt)&&Bt.length===6&&Rt.transform(Bt),ke();const Gt={enqueueInvoked:!1,enqueue(Ut,_t){this.enqueueInvoked=!0,ae.enqueue(Ut,_t)},get desiredSize(){return ae.desiredSize},get ready(){return ae.ready}};ve.getTextContent({stream:vt,task:q,resources:vt.dict.get("Resources")||K,stateManager:Rt,normalizeWhitespace:te,combineTextItems:oe,sink:Gt,seenStyles:ce}).then(function(){Gt.enqueueInvoked||Ce.set(ct,vt.dict.objId,!0),ut()},Ft)}).catch(function(ut){if(!(ut instanceof g.AbortException)){if(ve.options.ignoreErrors){(0,g.warn)(`getTextContent - ignoring XObject: "${ut}".`);return}throw ut}}));return;case g.OPS.setGState:Ee();var pt=Ie[0],wt=K.get("ExtGState");if(!(0,J.isDict)(wt)||!(0,J.isName)(pt))break;var Ct=wt.get(pt.name);if(!(0,J.isDict)(Ct))break;var ot=Ct.get("Font");if(ot){ge.fontName=null,ge.fontSize=ot[1],Pe(_e(null,ot[0]));return}break}if(ne.items.length>=ae.desiredSize){Le=!0;break}}if(Le){Pe(z);return}Ee(),ke(),ye()}).catch(be=>{if(!(be instanceof g.AbortException)){if(this.options.ignoreErrors){(0,g.warn)(`getTextContent - ignoring errors during "${q.name}" task: "${be}".`),Ee(),ke();return}throw be}})},extractDataStructures:function(q,K,Z){const te=this.xref;let oe;var ae=q.get("ToUnicode")||K.get("ToUnicode"),ce=ae?this.readToUnicode(ae):Promise.resolve(void 0);if(Z.composite){var fe=q.get("CIDSystemInfo");(0,J.isDict)(fe)&&(Z.cidSystemInfo={registry:(0,g.stringToPDFString)(fe.get("Registry")),ordering:(0,g.stringToPDFString)(fe.get("Ordering")),supplement:fe.get("Supplement")});var ne=q.get("CIDToGIDMap");(0,J.isStream)(ne)&&(oe=ne.getBytes())}var le=[],ue=null,he;if(q.has("Encoding")){if(he=q.get("Encoding"),(0,J.isDict)(he)){if(ue=he.get("BaseEncoding"),ue=(0,J.isName)(ue)?ue.name:null,he.has("Differences"))for(var de=he.get("Differences"),ve=0,me=0,Se=de.length;me<Se;me++){var Ce=te.fetchIfRef(de[me]);if((0,g.isNum)(Ce))ve=Ce;else if((0,J.isName)(Ce))le[ve++]=Ce.name;else throw new g.FormatError(`Invalid entry in 'Differences' array: ${Ce}`)}}else if((0,J.isName)(he))ue=he.name;else throw new g.FormatError("Encoding is not a Name nor a Dict");ue!=="MacRomanEncoding"&&ue!=="MacExpertEncoding"&&ue!=="WinAnsiEncoding"&&(ue=null)}if(ue)Z.defaultEncoding=(0,se.getEncoding)(ue).slice();else{var xe=!!(Z.flags&a.FontFlags.Symbolic),ge=!!(Z.flags&a.FontFlags.Nonsymbolic);he=se.StandardEncoding,Z.type==="TrueType"&&!ge&&(he=se.WinAnsiEncoding),xe&&(he=se.MacRomanEncoding,Z.file||(/Symbol/i.test(Z.name)?he=se.SymbolSetEncoding:/Dingbats|Wingdings/i.test(Z.name)&&(he=se.ZapfDingbatsEncoding))),Z.defaultEncoding=he}return Z.differences=le,Z.baseEncodingName=ue,Z.hasEncoding=!!ue||le.length>0,Z.dict=q,ce.then(Ae=>(Z.toUnicode=Ae,this.buildToUnicode(Z))).then(Ae=>(Z.toUnicode=Ae,oe&&(Z.cidToGidMap=this.readCidToGidMap(oe,Ae)),Z))},_buildSimpleFontToUnicode(M,q=!1){(0,g.assert)(!M.composite,"Must be a simple font.");const K=[],Z=M.defaultEncoding.slice(),te=M.baseEncodingName,oe=M.differences;for(const ce in oe){const fe=oe[ce];fe!==".notdef"&&(Z[ce]=fe)}const ae=(0,X.getGlyphsUnicode)();for(const ce in Z){let fe=Z[ce];if(fe!==""){if(ae[fe]===void 0){let ne=0;switch(fe[0]){case"G":fe.length===3&&(ne=parseInt(fe.substring(1),16));break;case"g":fe.length===5&&(ne=parseInt(fe.substring(1),16));break;case"C":case"c":if(fe.length>=3&&fe.length<=4){const ue=fe.substring(1);if(q){ne=parseInt(ue,16);break}if(ne=+ue,Number.isNaN(ne)&&Number.isInteger(parseInt(ue,16)))return this._buildSimpleFontToUnicode(M,!0)}break;default:const le=(0,ee.getUnicodeForGlyph)(fe,ae);le!==-1&&(ne=le)}if(ne>0&&ne<=1114111&&Number.isInteger(ne)){if(te&&ne===+ce){const le=(0,se.getEncoding)(te);if(le&&(fe=le[ce])){K[ce]=String.fromCharCode(ae[fe]);continue}}K[ce]=String.fromCodePoint(ne)}continue}K[ce]=String.fromCharCode(ae[fe])}}return new a.ToUnicodeMap(K)},buildToUnicode(M){if(M.hasIncludedToUnicodeMap=!!M.toUnicode&&M.toUnicode.length>0,M.hasIncludedToUnicodeMap)return!M.composite&&M.hasEncoding&&(M.fallbackToUnicode=this._buildSimpleFontToUnicode(M)),Promise.resolve(M.toUnicode);if(!M.composite)return Promise.resolve(this._buildSimpleFontToUnicode(M));if(M.composite&&(M.cMap.builtInCMap&&!(M.cMap instanceof O.IdentityCMap)||M.cidSystemInfo.registry==="Adobe"&&(M.cidSystemInfo.ordering==="GB1"||M.cidSystemInfo.ordering==="CNS1"||M.cidSystemInfo.ordering==="Japan1"||M.cidSystemInfo.ordering==="Korea1"))){const q=M.cidSystemInfo.registry,K=M.cidSystemInfo.ordering,Z=J.Name.get(q+"-"+K+"-UCS2");return O.CMapFactory.create({encoding:Z,fetchBuiltInCMap:this.fetchBuiltInCMap,useCMap:null}).then(function(te){const oe=M.cMap,ae=[];return oe.forEach(function(ce,fe){if(fe>65535)throw new g.FormatError("Max size of CID is 65,535");const ne=te.lookup(fe);ne&&(ae[ce]=String.fromCharCode((ne.charCodeAt(0)<<8)+ne.charCodeAt(1)))}),new a.ToUnicodeMap(ae)})}return Promise.resolve(new a.IdentityToUnicodeMap(M.firstChar,M.lastChar))},readToUnicode:function(q){var K=q;return(0,J.isName)(K)?O.CMapFactory.create({encoding:K,fetchBuiltInCMap:this.fetchBuiltInCMap,useCMap:null}).then(function(Z){return Z instanceof O.IdentityCMap?new a.IdentityToUnicodeMap(0,65535):new a.ToUnicodeMap(Z.getMap())}):(0,J.isStream)(K)?O.CMapFactory.create({encoding:K,fetchBuiltInCMap:this.fetchBuiltInCMap,useCMap:null}).then(function(Z){if(Z instanceof O.IdentityCMap)return new a.IdentityToUnicodeMap(0,65535);var te=new Array(Z.length);return Z.forEach(function(oe,ae){for(var ce=[],fe=0;fe<ae.length;fe+=2){var ne=ae.charCodeAt(fe)<<8|ae.charCodeAt(fe+1);if((ne&63488)!==55296){ce.push(ne);continue}fe+=2;var le=ae.charCodeAt(fe)<<8|ae.charCodeAt(fe+1);ce.push(((ne&1023)<<10)+(le&1023)+65536)}te[oe]=String.fromCodePoint.apply(String,ce)}),new a.ToUnicodeMap(te)},Z=>{if(Z instanceof g.AbortException)return null;if(this.options.ignoreErrors)return this.handler.send("UnsupportedFeature",{featureId:g.UNSUPPORTED_FEATURES.errorFontToUnicode}),(0,g.warn)(`readToUnicode - ignoring ToUnicode data: "${Z}".`),null;throw Z}):Promise.resolve(null)},readCidToGidMap(M,q){for(var K=[],Z=0,te=M.length;Z<te;Z++){var oe=M[Z++]<<8|M[Z];const ae=Z>>1;oe===0&&!q.has(ae)||(K[ae]=oe)}return K},extractWidths:function(q,K,Z){var te=this.xref,oe=[],ae=0,ce=[],fe,ne,le,ue,he,de,ve,me;if(Z.composite){if(ae=q.has("DW")?q.get("DW"):1e3,me=q.get("W"),me)for(ne=0,le=me.length;ne<le;ne++)if(de=te.fetchIfRef(me[ne++]),ve=te.fetchIfRef(me[ne]),Array.isArray(ve))for(ue=0,he=ve.length;ue<he;ue++)oe[de++]=te.fetchIfRef(ve[ue]);else{var Se=te.fetchIfRef(me[++ne]);for(ue=de;ue<=ve;ue++)oe[ue]=Se}if(Z.vertical){var Ce=q.getArray("DW2")||[880,-1e3];if(fe=[Ce[1],ae*.5,Ce[0]],Ce=q.get("W2"),Ce)for(ne=0,le=Ce.length;ne<le;ne++)if(de=te.fetchIfRef(Ce[ne++]),ve=te.fetchIfRef(Ce[ne]),Array.isArray(ve))for(ue=0,he=ve.length;ue<he;ue++)ce[de++]=[te.fetchIfRef(ve[ue++]),te.fetchIfRef(ve[ue++]),te.fetchIfRef(ve[ue])];else{var xe=[te.fetchIfRef(Ce[++ne]),te.fetchIfRef(Ce[++ne]),te.fetchIfRef(Ce[++ne])];for(ue=de;ue<=ve;ue++)ce[ue]=xe}}}else{var ge=Z.firstChar;if(me=q.get("Widths"),me){for(ue=ge,ne=0,le=me.length;ne<le;ne++)oe[ue++]=te.fetchIfRef(me[ne]);ae=parseFloat(K.get("MissingWidth"))||0}else{var Ae=q.get("BaseFont");if((0,J.isName)(Ae)){var we=this.getBaseFontMetrics(Ae.name);oe=this.buildCharCodeToWidth(we.widths,Z),ae=we.defaultWidth}}}var Fe=!0,_e=ae;for(var De in oe){var Be=oe[De];if(!!Be){if(!_e){_e=Be;continue}if(_e!==Be){Fe=!1;break}}}Fe&&(Z.flags|=a.FontFlags.FixedPitch),Z.defaultWidth=ae,Z.widths=oe,Z.defaultVMetrics=fe,Z.vmetrics=ce},isSerifFont:function(q){var K=q.split("-")[0];return K in(0,ie.getSerifFonts)()||K.search(/serif/gi)!==-1},getBaseFontMetrics:function(q){var K=0,Z=[],te=!1,oe=(0,ie.getStdFontMap)(),ae=oe[q]||q,ce=(0,W.getMetrics)();ae in ce||(this.isSerifFont(q)?ae="Times-Roman":ae="Helvetica");var fe=ce[ae];return(0,g.isNum)(fe)?(K=fe,te=!0):Z=fe(),{defaultWidth:K,monospace:te,widths:Z}},buildCharCodeToWidth:function(q,K){for(var Z=Object.create(null),te=K.differences,oe=K.defaultEncoding,ae=0;ae<256;ae++){if(ae in te&&q[te[ae]]){Z[ae]=q[te[ae]];continue}if(ae in oe&&q[oe[ae]]){Z[ae]=q[oe[ae]];continue}}return Z},preEvaluateFont:function(q){var K=q,Z=q.get("Subtype");if(!(0,J.isName)(Z))throw new g.FormatError("invalid font Subtype");var te=!1,oe;if(Z.name==="Type0"){var ae=q.get("DescendantFonts");if(!ae)throw new g.FormatError("Descendant fonts are not specified");if(q=Array.isArray(ae)?this.xref.fetchIfRef(ae[0]):ae,Z=q.get("Subtype"),!(0,J.isName)(Z))throw new g.FormatError("invalid font Subtype");te=!0}var ce=q.get("FontDescriptor");if(ce){var fe=new E.MurmurHash3_64,ne=K.getRaw("Encoding");if((0,J.isName)(ne))fe.update(ne.name);else if((0,J.isRef)(ne))fe.update(ne.toString());else if((0,J.isDict)(ne))for(var le=ne.getKeys(),ue=0,he=le.length;ue<he;ue++){var de=ne.getRaw(le[ue]);if((0,J.isName)(de))fe.update(de.name);else if((0,J.isRef)(de))fe.update(de.toString());else if(Array.isArray(de)){for(var ve=de.length,me=new Array(ve),Se=0;Se<ve;Se++){var Ce=de[Se];(0,J.isName)(Ce)?me[Se]=Ce.name:((0,g.isNum)(Ce)||(0,J.isRef)(Ce))&&(me[Se]=Ce.toString())}fe.update(me.join())}}const we=q.get("FirstChar")||0,Fe=q.get("LastChar")||(te?65535:255);fe.update(`${we}-${Fe}`);var xe=q.get("ToUnicode")||K.get("ToUnicode");if((0,J.isStream)(xe)){var ge=xe.str||xe;oe=ge.buffer?new Uint8Array(ge.buffer.buffer,0,ge.bufferLength):new Uint8Array(ge.bytes.buffer,ge.start,ge.end-ge.start),fe.update(oe)}else(0,J.isName)(xe)&&fe.update(xe.name);var Ae=q.get("Widths")||K.get("Widths");Ae&&(oe=new Uint8Array(new Uint32Array(Ae).buffer),fe.update(oe))}return{descriptor:ce,dict:q,baseDict:K,composite:te,type:Z.name,hash:fe?fe.hexdigest():""}},translateFont:function(q){var K=q.baseDict,Z=q.dict,te=q.composite,oe=q.descriptor,ae=q.type,ce=te?65535:255,fe;const ne=Z.get("FirstChar")||0,le=Z.get("LastChar")||ce;if(!oe)if(ae==="Type3")oe=new J.Dict(null),oe.set("FontName",J.Name.get(ae)),oe.set("FontBBox",Z.getArray("FontBBox")||[0,0,0,0]);else{var ue=Z.get("BaseFont");if(!(0,J.isName)(ue))throw new g.FormatError("Base font is not specified");ue=ue.name.replace(/[,_]/g,"-");var he=this.getBaseFontMetrics(ue),de=ue.split("-")[0],ve=(this.isSerifFont(de)?a.FontFlags.Serif:0)|(he.monospace?a.FontFlags.FixedPitch:0)|((0,ie.getSymbolsFonts)()[de]?a.FontFlags.Symbolic:a.FontFlags.Nonsymbolic);fe={type:ae,name:ue,widths:he.widths,defaultWidth:he.defaultWidth,flags:ve,firstChar:ne,lastChar:le};const Ee=Z.get("Widths");return this.extractDataStructures(Z,Z,fe).then(ke=>{if(Ee){const pe=[];let be=ne;for(let ye=0,Te=Ee.length;ye<Te;ye++)pe[be++]=this.xref.fetchIfRef(Ee[ye]);ke.widths=pe}else ke.widths=this.buildCharCodeToWidth(he.widths,ke);return new a.Font(ue,null,ke)})}var me=oe.get("FontName"),Se=Z.get("BaseFont");if((0,g.isString)(me)&&(me=J.Name.get(me)),(0,g.isString)(Se)&&(Se=J.Name.get(Se)),ae!=="Type3"){var Ce=me&&me.name,xe=Se&&Se.name;Ce!==xe&&((0,g.info)(`The FontDescriptor's FontName is "${Ce}" but should be the same as the Font's BaseFont "${xe}".`),Ce&&xe&&xe.startsWith(Ce)&&(me=Se))}if(me=me||Se,!(0,J.isName)(me))throw new g.FormatError("invalid font name");var ge=oe.get("FontFile","FontFile2","FontFile3");if(ge&&ge.dict){var Ae=ge.dict.get("Subtype");Ae&&(Ae=Ae.name);var we=ge.dict.get("Length1"),Fe=ge.dict.get("Length2"),_e=ge.dict.get("Length3")}fe={type:ae,name:me.name,subtype:Ae,file:ge,length1:we,length2:Fe,length3:_e,loadedName:K.loadedName,composite:te,fixedPitch:!1,fontMatrix:Z.getArray("FontMatrix")||g.FONT_IDENTITY_MATRIX,firstChar:ne||0,lastChar:le||ce,bbox:oe.getArray("FontBBox"),ascent:oe.get("Ascent"),descent:oe.get("Descent"),xHeight:oe.get("XHeight"),capHeight:oe.get("CapHeight"),flags:oe.get("Flags"),italicAngle:oe.get("ItalicAngle"),isType3Font:!1};var De;if(te){var Be=K.get("Encoding");(0,J.isName)(Be)&&(fe.cidEncoding=Be.name),De=O.CMapFactory.create({encoding:Be,fetchBuiltInCMap:this.fetchBuiltInCMap,useCMap:null}).then(function(Ee){fe.cMap=Ee,fe.vertical=fe.cMap.vertical})}else De=Promise.resolve(void 0);return De.then(()=>this.extractDataStructures(Z,K,fe)).then(Ee=>(this.extractWidths(Z,oe,Ee),ae==="Type3"&&(Ee.isType3Font=!0),new a.Font(me.name,ge,Ee)))}},w.buildFontPaths=function(M,q,K){function Z(te){M.renderer.hasBuiltPath(te)||K.send("commonobj",[`${M.loadedName}_path_${te}`,"FontPath",M.renderer.getPathJs(te)])}for(const te of q){Z(te.fontChar);const oe=te.accent;oe&&oe.fontChar&&Z(oe.fontChar)}},w.getFallbackFontDict=function(){if(this._fallbackFontDict)return this._fallbackFontDict;const M=new J.Dict;return M.set("BaseFont",J.Name.get("PDFJS-FallbackFont")),M.set("Type",J.Name.get("FallbackType")),M.set("Subtype",J.Name.get("FallbackType")),M.set("Encoding",J.Name.get("WinAnsiEncoding")),this._fallbackFontDict=M},w}();d.PartialEvaluator=F;class D{constructor({loadedName:C,font:w,dict:T,extraProperties:B=!1}){this.loadedName=C,this.font=w,this.dict=T,this._extraProperties=B,this.type3Loaded=null,this.sent=!1}send(C){this.sent||(this.sent=!0,C.send("commonobj",[this.loadedName,"Font",this.font.exportData(this._extraProperties)]))}fallback(C){if(!this.font.data)return;this.font.disableFontFace=!0;const w=this.font.glyphCacheValues;F.buildFontPaths(this.font,w,C)}loadType3Data(C,w,T,B){if(!this.font.isType3Font)throw new Error("Must be a Type3 font.");if(this.type3Loaded)return this.type3Loaded;var N=Object.create(C.options);N.ignoreErrors=!1;var Q=C.clone(N);Q.parsingType3Font=!0;for(var z=this.font,j=Promise.resolve(),$=this.dict.get("CharProcs"),M=this.dict.get("Resources")||w,q=$.getKeys(),K=Object.create(null),Z=0,te=q.length;Z<te;++Z){const oe=q[Z];j=j.then(function(){var ae=$.get(oe),ce=new A.OperatorList;return Q.getOperatorList({stream:ae,task:B,resources:M,operatorList:ce}).then(function(){K[oe]=ce.getIR(),T.addDependencies(ce.dependencies)}).catch(function(fe){(0,g.warn)(`Type3 font resource "${oe}" is not available.`);const ne=new A.OperatorList;K[oe]=ne.getIR()})})}return this.type3Loaded=j.then(function(){z.charProcOperatorList=K}),this.type3Loaded}}var L=function(){function C(w){this.state=w,this.stateStack=[]}return C.prototype={save(){var w=this.state;this.stateStack.push(this.state),this.state=w.clone()},restore(){var w=this.stateStack.pop();w&&(this.state=w)},transform(w){this.state.ctm=g.Util.transform(this.state.ctm,w)}},C}(),k=function(){function C(){this.ctm=new Float32Array(g.IDENTITY_MATRIX),this.fontName=null,this.fontSize=0,this.font=null,this.fontMatrix=g.FONT_IDENTITY_MATRIX,this.textMatrix=g.IDENTITY_MATRIX.slice(),this.textLineMatrix=g.IDENTITY_MATRIX.slice(),this.charSpacing=0,this.wordSpacing=0,this.leading=0,this.textHScale=1,this.textRise=0}return C.prototype={setTextMatrix:function(T,B,N,Q,z,j){var $=this.textMatrix;$[0]=T,$[1]=B,$[2]=N,$[3]=Q,$[4]=z,$[5]=j},setTextLineMatrix:function(T,B,N,Q,z,j){var $=this.textLineMatrix;$[0]=T,$[1]=B,$[2]=N,$[3]=Q,$[4]=z,$[5]=j},translateTextMatrix:function(T,B){var N=this.textMatrix;N[4]=N[0]*T+N[2]*B+N[4],N[5]=N[1]*T+N[3]*B+N[5]},translateTextLineMatrix:function(T,B){var N=this.textLineMatrix;N[4]=N[0]*T+N[2]*B+N[4],N[5]=N[1]*T+N[3]*B+N[5]},calcTextLineMatrixAdvance:function(T,B,N,Q,z,j){var $=this.font;if(!$)return null;var M=this.textLineMatrix;if(!(T===M[0]&&B===M[1]&&N===M[2]&&Q===M[3]))return null;var q=z-M[4],K=j-M[5];if($.vertical&&q!==0||!$.vertical&&K!==0)return null;var Z,te,oe=T*Q-B*N;return $.vertical?(Z=-K*N/oe,te=K*T/oe):(Z=q*Q/oe,te=-q*B/oe),{width:Z,height:te,value:$.vertical?te:Z}},calcRenderMatrix:function(T){var B=[this.fontSize*this.textHScale,0,0,this.fontSize,0,this.textRise];return g.Util.transform(T,g.Util.transform(this.textMatrix,B))},carriageReturn:function(){this.translateTextLineMatrix(0,-this.leading),this.textMatrix=this.textLineMatrix.slice()},clone:function(){var T=Object.create(this);return T.textMatrix=this.textMatrix.slice(),T.textLineMatrix=this.textLineMatrix.slice(),T.fontMatrix=this.fontMatrix.slice(),T}},C}(),v=function(){function C(){this.ctm=new Float32Array(g.IDENTITY_MATRIX),this.font=null,this.textRenderingMode=g.TextRenderingMode.FILL,this.fillColorSpace=re.ColorSpace.singletons.gray,this.strokeColorSpace=re.ColorSpace.singletons.gray}return C.prototype={clone:function(){return Object.create(this)}},C}(),y=function(){var C=(0,H.getLookupTableFactory)(function(B){B.w={id:g.OPS.setLineWidth,numArgs:1,variableArgs:!1},B.J={id:g.OPS.setLineCap,numArgs:1,variableArgs:!1},B.j={id:g.OPS.setLineJoin,numArgs:1,variableArgs:!1},B.M={id:g.OPS.setMiterLimit,numArgs:1,variableArgs:!1},B.d={id:g.OPS.setDash,numArgs:2,variableArgs:!1},B.ri={id:g.OPS.setRenderingIntent,numArgs:1,variableArgs:!1},B.i={id:g.OPS.setFlatness,numArgs:1,variableArgs:!1},B.gs={id:g.OPS.setGState,numArgs:1,variableArgs:!1},B.q={id:g.OPS.save,numArgs:0,variableArgs:!1},B.Q={id:g.OPS.restore,numArgs:0,variableArgs:!1},B.cm={id:g.OPS.transform,numArgs:6,variableArgs:!1},B.m={id:g.OPS.moveTo,numArgs:2,variableArgs:!1},B.l={id:g.OPS.lineTo,numArgs:2,variableArgs:!1},B.c={id:g.OPS.curveTo,numArgs:6,variableArgs:!1},B.v={id:g.OPS.curveTo2,numArgs:4,variableArgs:!1},B.y={id:g.OPS.curveTo3,numArgs:4,variableArgs:!1},B.h={id:g.OPS.closePath,numArgs:0,variableArgs:!1},B.re={id:g.OPS.rectangle,numArgs:4,variableArgs:!1},B.S={id:g.OPS.stroke,numArgs:0,variableArgs:!1},B.s={id:g.OPS.closeStroke,numArgs:0,variableArgs:!1},B.f={id:g.OPS.fill,numArgs:0,variableArgs:!1},B.F={id:g.OPS.fill,numArgs:0,variableArgs:!1},B["f*"]={id:g.OPS.eoFill,numArgs:0,variableArgs:!1},B.B={id:g.OPS.fillStroke,numArgs:0,variableArgs:!1},B["B*"]={id:g.OPS.eoFillStroke,numArgs:0,variableArgs:!1},B.b={id:g.OPS.closeFillStroke,numArgs:0,variableArgs:!1},B["b*"]={id:g.OPS.closeEOFillStroke,numArgs:0,variableArgs:!1},B.n={id:g.OPS.endPath,numArgs:0,variableArgs:!1},B.W={id:g.OPS.clip,numArgs:0,variableArgs:!1},B["W*"]={id:g.OPS.eoClip,numArgs:0,variableArgs:!1},B.BT={id:g.OPS.beginText,numArgs:0,variableArgs:!1},B.ET={id:g.OPS.endText,numArgs:0,variableArgs:!1},B.Tc={id:g.OPS.setCharSpacing,numArgs:1,variableArgs:!1},B.Tw={id:g.OPS.setWordSpacing,numArgs:1,variableArgs:!1},B.Tz={id:g.OPS.setHScale,numArgs:1,variableArgs:!1},B.TL={id:g.OPS.setLeading,numArgs:1,variableArgs:!1},B.Tf={id:g.OPS.setFont,numArgs:2,variableArgs:!1},B.Tr={id:g.OPS.setTextRenderingMode,numArgs:1,variableArgs:!1},B.Ts={id:g.OPS.setTextRise,numArgs:1,variableArgs:!1},B.Td={id:g.OPS.moveText,numArgs:2,variableArgs:!1},B.TD={id:g.OPS.setLeadingMoveText,numArgs:2,variableArgs:!1},B.Tm={id:g.OPS.setTextMatrix,numArgs:6,variableArgs:!1},B["T*"]={id:g.OPS.nextLine,numArgs:0,variableArgs:!1},B.Tj={id:g.OPS.showText,numArgs:1,variableArgs:!1},B.TJ={id:g.OPS.showSpacedText,numArgs:1,variableArgs:!1},B["'"]={id:g.OPS.nextLineShowText,numArgs:1,variableArgs:!1},B['"']={id:g.OPS.nextLineSetSpacingShowText,numArgs:3,variableArgs:!1},B.d0={id:g.OPS.setCharWidth,numArgs:2,variableArgs:!1},B.d1={id:g.OPS.setCharWidthAndBounds,numArgs:6,variableArgs:!1},B.CS={id:g.OPS.setStrokeColorSpace,numArgs:1,variableArgs:!1},B.cs={id:g.OPS.setFillColorSpace,numArgs:1,variableArgs:!1},B.SC={id:g.OPS.setStrokeColor,numArgs:4,variableArgs:!0},B.SCN={id:g.OPS.setStrokeColorN,numArgs:33,variableArgs:!0},B.sc={id:g.OPS.setFillColor,numArgs:4,variableArgs:!0},B.scn={id:g.OPS.setFillColorN,numArgs:33,variableArgs:!0},B.G={id:g.OPS.setStrokeGray,numArgs:1,variableArgs:!1},B.g={id:g.OPS.setFillGray,numArgs:1,variableArgs:!1},B.RG={id:g.OPS.setStrokeRGBColor,numArgs:3,variableArgs:!1},B.rg={id:g.OPS.setFillRGBColor,numArgs:3,variableArgs:!1},B.K={id:g.OPS.setStrokeCMYKColor,numArgs:4,variableArgs:!1},B.k={id:g.OPS.setFillCMYKColor,numArgs:4,variableArgs:!1},B.sh={id:g.OPS.shadingFill,numArgs:1,variableArgs:!1},B.BI={id:g.OPS.beginInlineImage,numArgs:0,variableArgs:!1},B.ID={id:g.OPS.beginImageData,numArgs:0,variableArgs:!1},B.EI={id:g.OPS.endInlineImage,numArgs:1,variableArgs:!1},B.Do={id:g.OPS.paintXObject,numArgs:1,variableArgs:!1},B.MP={id:g.OPS.markPoint,numArgs:1,variableArgs:!1},B.DP={id:g.OPS.markPointProps,numArgs:2,variableArgs:!1},B.BMC={id:g.OPS.beginMarkedContent,numArgs:1,variableArgs:!1},B.BDC={id:g.OPS.beginMarkedContentProps,numArgs:2,variableArgs:!1},B.EMC={id:g.OPS.endMarkedContent,numArgs:0,variableArgs:!1},B.BX={id:g.OPS.beginCompat,numArgs:0,variableArgs:!1},B.EX={id:g.OPS.endCompat,numArgs:0,variableArgs:!1},B.BM=null,B.BD=null,B.true=null,B.fa=null,B.fal=null,B.fals=null,B.false=null,B.nu=null,B.nul=null,B.null=null});const w=20;function T(B,N,Q){this.opMap=C(),this.parser=new u.Parser({lexer:new u.Lexer(B,this.opMap),xref:N}),this.stateManager=Q,this.nonProcessedArgs=[],this._numInvalidPathOPS=0}return T.prototype={get savedStatesDepth(){return this.stateManager.stateStack.length},read:function(N){for(var Q=N.args;;){var z=this.parser.getObj();if(z instanceof J.Cmd){var j=z.cmd,$=this.opMap[j];if(!$){(0,g.warn)(`Unknown command "${j}".`);continue}var M=$.id,q=$.numArgs,K=Q!==null?Q.length:0;if($.variableArgs)K>q&&(0,g.info)(`Command ${j}: expected [0, ${q}] args, but received ${K} args.`);else{if(K!==q){for(var Z=this.nonProcessedArgs;K>q;)Z.push(Q.shift()),K--;for(;K<q&&Z.length!==0;)Q===null&&(Q=[]),Q.unshift(Z.pop()),K++}if(K<q){const te=`command ${j}: expected ${q} args, but received ${K} args.`;if(M>=g.OPS.moveTo&&M<=g.OPS.endPath&&++this._numInvalidPathOPS>w)throw new g.FormatError(`Invalid ${te}`);(0,g.warn)(`Skipping ${te}`),Q!==null&&(Q.length=0);continue}}return this.preprocessCommand(M,Q),N.fn=M,N.args=Q,!0}if(z===J.EOF)return!1;if(z!==null&&(Q===null&&(Q=[]),Q.push(z),Q.length>33))throw new g.FormatError("Too many arguments")}},preprocessCommand:function(N,Q){switch(N|0){case g.OPS.save:this.stateManager.save();break;case g.OPS.restore:this.stateManager.restore();break;case g.OPS.transform:this.stateManager.transform(Q);break}}},T}()},function(S,d,R){Object.defineProperty(d,"__esModule",{value:!0}),d.CMapFactory=d.IdentityCMap=d.CMap=void 0;var g=R(2),O=R(5),J=R(11),a=R(8),se=R(12),H=["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"];const ee=2**24-1;class ie{constructor(U=!1){this.codespaceRanges=[[],[],[],[]],this.numCodespaceRanges=0,this._map=[],this.name="",this.vertical=!1,this.useCMap=null,this.builtInCMap=U}addCodespaceRange(U,X,W){this.codespaceRanges[U-1].push(X,W),this.numCodespaceRanges++}mapCidRange(U,X,W){if(X-U>ee)throw new Error("mapCidRange - ignoring data above MAX_MAP_RANGE.");for(;U<=X;)this._map[U++]=W++}mapBfRange(U,X,W){if(X-U>ee)throw new Error("mapBfRange - ignoring data above MAX_MAP_RANGE.");for(var G=W.length-1;U<=X;)this._map[U++]=W,W=W.substring(0,G)+String.fromCharCode(W.charCodeAt(G)+1)}mapBfRangeToArray(U,X,W){if(X-U>ee)throw new Error("mapBfRangeToArray - ignoring data above MAX_MAP_RANGE.");const G=W.length;let P=0;for(;U<=X&&P<G;)this._map[U]=W[P++],++U}mapOne(U,X){this._map[U]=X}lookup(U){return this._map[U]}contains(U){return this._map[U]!==void 0}forEach(U){const X=this._map,W=X.length;if(W<=65536)for(let G=0;G<W;G++)X[G]!==void 0&&U(G,X[G]);else for(const G in X)U(G,X[G])}charCodeOf(U){const X=this._map;if(X.length<=65536)return X.indexOf(U);for(const W in X)if(X[W]===U)return W|0;return-1}getMap(){return this._map}readCharCode(U,X,W){let G=0;const P=this.codespaceRanges;for(let E=0,A=P.length;E<A;E++){G=(G<<8|U.charCodeAt(X+E))>>>0;const _=P[E];for(let F=0,D=_.length;F<D;){const L=_[F++],k=_[F++];if(G>=L&&G<=k){W.charcode=G,W.length=E+1;return}}}W.charcode=0,W.length=1}get length(){return this._map.length}get isIdentityCMap(){if(!(this.name==="Identity-H"||this.name==="Identity-V")||this._map.length!==65536)return!1;for(let U=0;U<65536;U++)if(this._map[U]!==U)return!1;return!0}}d.CMap=ie;class m extends ie{constructor(U,X){super(),this.vertical=U,this.addCodespaceRange(X,0,65535)}mapCidRange(U,X,W){(0,g.unreachable)("should not call mapCidRange")}mapBfRange(U,X,W){(0,g.unreachable)("should not call mapBfRange")}mapBfRangeToArray(U,X,W){(0,g.unreachable)("should not call mapBfRangeToArray")}mapOne(U,X){(0,g.unreachable)("should not call mapCidOne")}lookup(U){return Number.isInteger(U)&&U<=65535?U:void 0}contains(U){return Number.isInteger(U)&&U<=65535}forEach(U){for(let X=0;X<=65535;X++)U(X,X)}charCodeOf(U){return Number.isInteger(U)&&U<=65535?U:-1}getMap(){const U=new Array(65536);for(let X=0;X<=65535;X++)U[X]=X;return U}get length(){return 65536}get isIdentityCMap(){(0,g.unreachable)("should not access .isIdentityCMap")}}d.IdentityCMap=m;var u=function(){function U(D,L){for(var k=0,v=0;v<=L;v++)k=k<<8|D[v];return k>>>0}function X(D,L){return L===1?String.fromCharCode(D[0],D[1]):L===3?String.fromCharCode(D[0],D[1],D[2],D[3]):String.fromCharCode.apply(null,D.subarray(0,L+1))}function W(D,L,k){for(var v=0,y=k;y>=0;y--)v+=D[y]+L[y],D[y]=v&255,v>>=8}function G(D,L){for(var k=1,v=L;v>=0&&k>0;v--)k+=D[v],D[v]=k&255,k>>=8}var P=16,E=19;function A(D){this.buffer=D,this.pos=0,this.end=D.length,this.tmpBuf=new Uint8Array(E)}A.prototype={readByte(){return this.pos>=this.end?-1:this.buffer[this.pos++]},readNumber(){var D=0,L;do{var k=this.readByte();if(k<0)throw new g.FormatError("unexpected EOF in bcmap");L=!(k&128),D=D<<7|k&127}while(!L);return D},readSigned(){var D=this.readNumber();return D&1?~(D>>>1):D>>>1},readHex(D,L){D.set(this.buffer.subarray(this.pos,this.pos+L+1)),this.pos+=L+1},readHexNumber(D,L){var k,v=this.tmpBuf,y=0;do{var b=this.readByte();if(b<0)throw new g.FormatError("unexpected EOF in bcmap");k=!(b&128),v[y++]=b&127}while(!k);for(var C=L,w=0,T=0;C>=0;){for(;T<8&&v.length>0;)w=v[--y]<<T|w,T+=7;D[C]=w&255,C--,w>>=8,T-=8}},readHexSigned(D,L){this.readHexNumber(D,L);for(var k=D[L]&1?255:0,v=0,y=0;y<=L;y++)v=(v&1)<<8|D[y],D[y]=v>>1^k},readString(){for(var D=this.readNumber(),L="",k=0;k<D;k++)L+=String.fromCharCode(this.readNumber());return L}};function _(D,L,k){return new Promise(function(v,y){var b=new A(D),C=b.readByte();L.vertical=!!(C&1);for(var w=null,T=new Uint8Array(P),B=new Uint8Array(P),N=new Uint8Array(P),Q=new Uint8Array(P),z=new Uint8Array(P),j,$;($=b.readByte())>=0;){var M=$>>5;if(M===7){switch($&31){case 0:b.readString();break;case 1:w=b.readString();break}continue}var q=!!($&16),K=$&15;if(K+1>P)throw new Error("processBinaryCMap: Invalid dataSize.");var Z=1,te=b.readNumber(),oe;switch(M){case 0:for(b.readHex(T,K),b.readHexNumber(B,K),W(B,T,K),L.addCodespaceRange(K+1,U(T,K),U(B,K)),oe=1;oe<te;oe++)G(B,K),b.readHexNumber(T,K),W(T,B,K),b.readHexNumber(B,K),W(B,T,K),L.addCodespaceRange(K+1,U(T,K),U(B,K));break;case 1:for(b.readHex(T,K),b.readHexNumber(B,K),W(B,T,K),b.readNumber(),oe=1;oe<te;oe++)G(B,K),b.readHexNumber(T,K),W(T,B,K),b.readHexNumber(B,K),W(B,T,K),b.readNumber();break;case 2:for(b.readHex(N,K),j=b.readNumber(),L.mapOne(U(N,K),j),oe=1;oe<te;oe++)G(N,K),q||(b.readHexNumber(z,K),W(N,z,K)),j=b.readSigned()+(j+1),L.mapOne(U(N,K),j);break;case 3:for(b.readHex(T,K),b.readHexNumber(B,K),W(B,T,K),j=b.readNumber(),L.mapCidRange(U(T,K),U(B,K),j),oe=1;oe<te;oe++)G(B,K),q?T.set(B):(b.readHexNumber(T,K),W(T,B,K)),b.readHexNumber(B,K),W(B,T,K),j=b.readNumber(),L.mapCidRange(U(T,K),U(B,K),j);break;case 4:for(b.readHex(N,Z),b.readHex(Q,K),L.mapOne(U(N,Z),X(Q,K)),oe=1;oe<te;oe++)G(N,Z),q||(b.readHexNumber(z,Z),W(N,z,Z)),G(Q,K),b.readHexSigned(z,K),W(Q,z,K),L.mapOne(U(N,Z),X(Q,K));break;case 5:for(b.readHex(T,Z),b.readHexNumber(B,Z),W(B,T,Z),b.readHex(Q,K),L.mapBfRange(U(T,Z),U(B,Z),X(Q,K)),oe=1;oe<te;oe++)G(B,Z),q?T.set(B):(b.readHexNumber(T,Z),W(T,B,Z)),b.readHexNumber(B,Z),W(B,T,Z),b.readHex(Q,K),L.mapBfRange(U(T,Z),U(B,Z),X(Q,K));break;default:y(new Error("processBinaryCMap: Unknown type: "+M));return}}if(w){v(k(w));return}v(L)})}function F(){}return F.prototype={process:_},F}(),Y=function(){function U(y){for(var b=0,C=0;C<y.length;C++)b=b<<8|y.charCodeAt(C);return b>>>0}function X(y){if(!(0,g.isString)(y))throw new g.FormatError("Malformed CMap: expected string.")}function W(y){if(!Number.isInteger(y))throw new g.FormatError("Malformed CMap: expected int.")}function G(y,b){for(;;){var C=b.getObj();if((0,O.isEOF)(C))break;if((0,O.isCmd)(C,"endbfchar"))return;X(C);var w=U(C);C=b.getObj(),X(C);var T=C;y.mapOne(w,T)}}function P(y,b){for(;;){var C=b.getObj();if((0,O.isEOF)(C))break;if((0,O.isCmd)(C,"endbfrange"))return;X(C);var w=U(C);C=b.getObj(),X(C);var T=U(C);if(C=b.getObj(),Number.isInteger(C)||(0,g.isString)(C)){var B=Number.isInteger(C)?String.fromCharCode(C):C;y.mapBfRange(w,T,B)}else if((0,O.isCmd)(C,"[")){C=b.getObj();for(var N=[];!(0,O.isCmd)(C,"]")&&!(0,O.isEOF)(C);)N.push(C),C=b.getObj();y.mapBfRangeToArray(w,T,N)}else break}throw new g.FormatError("Invalid bf range.")}function E(y,b){for(;;){var C=b.getObj();if((0,O.isEOF)(C))break;if((0,O.isCmd)(C,"endcidchar"))return;X(C);var w=U(C);C=b.getObj(),W(C);var T=C;y.mapOne(w,T)}}function A(y,b){for(;;){var C=b.getObj();if((0,O.isEOF)(C))break;if((0,O.isCmd)(C,"endcidrange"))return;X(C);var w=U(C);C=b.getObj(),X(C);var T=U(C);C=b.getObj(),W(C);var B=C;y.mapCidRange(w,T,B)}}function _(y,b){for(;;){var C=b.getObj();if((0,O.isEOF)(C))break;if((0,O.isCmd)(C,"endcodespacerange"))return;if(!(0,g.isString)(C))break;var w=U(C);if(C=b.getObj(),!(0,g.isString)(C))break;var T=U(C);y.addCodespaceRange(C.length,w,T)}throw new g.FormatError("Invalid codespace range.")}function F(y,b){var C=b.getObj();Number.isInteger(C)&&(y.vertical=!!C)}function D(y,b){var C=b.getObj();(0,O.isName)(C)&&(0,g.isString)(C.name)&&(y.name=C.name)}function L(y,b,C,w){var T,B;e:for(;;)try{var N=b.getObj();if((0,O.isEOF)(N))break;if((0,O.isName)(N))N.name==="WMode"?F(y,b):N.name==="CMapName"&&D(y,b),T=N;else if((0,O.isCmd)(N))switch(N.cmd){case"endcmap":break e;case"usecmap":(0,O.isName)(T)&&(B=T.name);break;case"begincodespacerange":_(y,b);break;case"beginbfchar":G(y,b);break;case"begincidchar":E(y,b);break;case"beginbfrange":P(y,b);break;case"begincidrange":A(y,b);break}}catch(Q){if(Q instanceof a.MissingDataException)throw Q;(0,g.warn)("Invalid cMap data: "+Q);continue}return!w&&B&&(w=B),w?k(y,C,w):Promise.resolve(y)}function k(y,b,C){return v(C,b).then(function(w){if(y.useCMap=w,y.numCodespaceRanges===0){for(var T=y.useCMap.codespaceRanges,B=0;B<T.length;B++)y.codespaceRanges[B]=T[B].slice();y.numCodespaceRanges=y.useCMap.numCodespaceRanges}return y.useCMap.forEach(function(N,Q){y.contains(N)||y.mapOne(N,y.useCMap.lookup(N))}),y})}function v(y,b){return y==="Identity-H"?Promise.resolve(new m(!1,2)):y==="Identity-V"?Promise.resolve(new m(!0,2)):H.includes(y)?b?b(y).then(function(C){var w=C.cMapData,T=C.compressionType,B=new ie(!0);if(T===g.CMapCompressionType.BINARY)return new u().process(w,B,function(Q){return k(B,b,Q)});if(T===g.CMapCompressionType.NONE){var N=new J.Lexer(new se.Stream(w));return L(B,N,b,null)}return Promise.reject(new Error("TODO: Only BINARY/NONE CMap compression is currently supported."))}):Promise.reject(new Error("Built-in CMap parameters are not provided.")):Promise.reject(new Error("Unknown CMap name: "+y))}return{async create(y){var b=y.encoding,C=y.fetchBuiltInCMap,w=y.useCMap;if((0,O.isName)(b))return v(b.name,C);if((0,O.isStream)(b)){var T=new ie,B=new J.Lexer(b);return L(T,B,C,w).then(function(N){return N.isIdentityCMap?v(N.name,C):N})}throw new Error("Encoding required.")}}}();d.CMapFactory=Y},function(S,d,R){Object.defineProperty(d,"__esModule",{value:!0}),d.getFontType=F,d.IdentityToUnicodeMap=d.ToUnicodeMap=d.FontFlags=d.Font=d.ErrorFont=d.SEAC_ANALYSIS_ENABLED=void 0;var g=R(2),O=R(30),J=R(33),a=R(32),se=R(34),H=R(35),ee=R(8),ie=R(36),m=R(28),u=R(12),Y=R(37);const re=[[57344,63743],[1048576,1114109]];var U=1e3,X=!0;d.SEAC_ANALYSIS_ENABLED=X;const W=["ascent","bbox","black","bold","charProcOperatorList","composite","data","defaultVMetrics","defaultWidth","descent","fallbackName","fontMatrix","fontType","isMonospace","isSerifFont","isType3Font","italic","loadedName","mimetype","missingFile","name","remeasure","subtype","type","vertical"],G=["cMap","defaultEncoding","differences","isSymbolicFont","seacMap","toFontChar","toUnicode","vmetrics","widths"];var P={FixedPitch:1,Serif:2,Symbolic:4,Script:8,Nonsymbolic:32,Italic:64,AllCap:65536,SmallCap:131072,ForceBold:262144};d.FontFlags=P;var E=[".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"];function A(N){if(!!N.fontMatrix&&N.fontMatrix[0]!==g.FONT_IDENTITY_MATRIX[0]){var Q=.001/N.fontMatrix[0],z=N.widths;for(var j in z)z[j]*=Q;N.defaultWidth*=Q}}function _(N,Q){if(!N.hasIncludedToUnicodeMap&&!N.hasEncoding&&Q!==N.defaultEncoding&&!(N.toUnicode instanceof v)){var z=[],j=(0,J.getGlyphsUnicode)();for(var $ in Q){var M=Q[$],q=(0,H.getUnicodeForGlyph)(M,j);q!==-1&&(z[$]=String.fromCharCode(q))}N.toUnicode.amend(z)}}function F(N,Q){switch(N){case"Type1":return Q==="Type1C"?g.FontType.TYPE1C:g.FontType.TYPE1;case"CIDFontType0":return Q==="CIDFontType0C"?g.FontType.CIDFONTTYPE0C:g.FontType.CIDFONTTYPE0;case"OpenType":return g.FontType.OPENTYPE;case"TrueType":return g.FontType.TRUETYPE;case"CIDFontType2":return g.FontType.CIDFONTTYPE2;case"MMType1":return g.FontType.MMTYPE1;case"Type0":return g.FontType.TYPE0;default:return g.FontType.UNKNOWN}}function D(N,Q){if(Q[N]!==void 0)return N;var z=(0,H.getUnicodeForGlyph)(N,Q);if(z!==-1){for(var j in Q)if(Q[j]===z)return j}return(0,g.info)("Unable to recover a standard glyph name for: "+N),N}var L=function(){function Q(z,j,$,M,q,K,Z,te){this.fontChar=z,this.unicode=j,this.accent=$,this.width=M,this.vmetric=q,this.operatorListId=K,this.isSpace=Z,this.isInFont=te}return Q.prototype.matchesForCache=function(z,j,$,M,q,K,Z,te){return this.fontChar===z&&this.unicode===j&&this.accent===$&&this.width===M&&this.vmetric===q&&this.operatorListId===K&&this.isSpace===Z&&this.isInFont===te},Q}(),k=function(){function Q(z=[]){this._map=z}return Q.prototype={get length(){return this._map.length},forEach(z){for(var j in this._map)z(j,this._map[j].charCodeAt(0))},has(z){return this._map[z]!==void 0},get(z){return this._map[z]},charCodeOf(z){const j=this._map;if(j.length<=65536)return j.indexOf(z);for(const $ in j)if(j[$]===z)return $|0;return-1},amend(z){for(var j in z)this._map[j]=z[j]}},Q}();d.ToUnicodeMap=k;var v=function(){function Q(z,j){this.firstChar=z,this.lastChar=j}return Q.prototype={get length(){return this.lastChar+1-this.firstChar},forEach(z){for(var j=this.firstChar,$=this.lastChar;j<=$;j++)z(j,j)},has(z){return this.firstChar<=z&&z<=this.lastChar},get(z){if(this.firstChar<=z&&z<=this.lastChar)return String.fromCharCode(z)},charCodeOf(z){return Number.isInteger(z)&&z>=this.firstChar&&z<=this.lastChar?z:-1},amend(z){(0,g.unreachable)("Should not call amend()")}},Q}();d.IdentityToUnicodeMap=v;var y=function(){function Q(K,Z,te){K[Z]=te>>8&255,K[Z+1]=te&255}function z(K,Z,te){K[Z]=te>>24&255,K[Z+1]=te>>16&255,K[Z+2]=te>>8&255,K[Z+3]=te&255}function j(K,Z,te){var oe,ae;if(te instanceof Uint8Array)K.set(te,Z);else if(typeof te=="string")for(oe=0,ae=te.length;oe<ae;oe++)K[Z++]=te.charCodeAt(oe)&255;else for(oe=0,ae=te.length;oe<ae;oe++)K[Z++]=te[oe]&255}function $(K){this.sfnt=K,this.tables=Object.create(null)}$.getSearchParams=function(Z,te){for(var oe=1,ae=0;(oe^Z)>oe;)oe<<=1,ae++;var ce=oe*te;return{range:ce,entry:ae,rangeShift:te*Z-ce}};var M=12,q=16;return $.prototype={toArray:function(){var Z=this.sfnt,te=this.tables,oe=Object.keys(te);oe.sort();var ae=oe.length,ce,fe,ne,le,ue,he=M+ae*q,de=[he];for(ce=0;ce<ae;ce++){le=te[oe[ce]];var ve=(le.length+3&-4)>>>0;he+=ve,de.push(he)}var me=new Uint8Array(he);for(ce=0;ce<ae;ce++)le=te[oe[ce]],j(me,de[ce],le);Z==="true"&&(Z=(0,g.string32)(65536)),me[0]=Z.charCodeAt(0)&255,me[1]=Z.charCodeAt(1)&255,me[2]=Z.charCodeAt(2)&255,me[3]=Z.charCodeAt(3)&255,Q(me,4,ae);var Se=$.getSearchParams(ae,16);for(Q(me,6,Se.range),Q(me,8,Se.entry),Q(me,10,Se.rangeShift),he=M,ce=0;ce<ae;ce++){ue=oe[ce],me[he]=ue.charCodeAt(0)&255,me[he+1]=ue.charCodeAt(1)&255,me[he+2]=ue.charCodeAt(2)&255,me[he+3]=ue.charCodeAt(3)&255;var Ce=0;for(fe=de[ce],ne=de[ce+1];fe<ne;fe+=4){var xe=(0,ee.readUint32)(me,fe);Ce=Ce+xe>>>0}z(me,he+4,Ce),z(me,he+8,de[ce]),z(me,he+12,te[ue].length),he+=q}return me},addTable:function(Z,te){if(Z in this.tables)throw new Error("Table "+Z+" already exists");this.tables[Z]=te}},$}(),b=function(){function Q(Ce,xe,ge){var Ae;this.name=Ce,this.loadedName=ge.loadedName,this.isType3Font=ge.isType3Font,this.missingFile=!1,this.glyphCache=Object.create(null),this.isSerifFont=!!(ge.flags&P.Serif),this.isSymbolicFont=!!(ge.flags&P.Symbolic),this.isMonospace=!!(ge.flags&P.FixedPitch);var we=ge.type,Fe=ge.subtype;this.type=we,this.subtype=Fe;let _e="sans-serif";if(this.isMonospace?_e="monospace":this.isSerifFont&&(_e="serif"),this.fallbackName=_e,this.differences=ge.differences,this.widths=ge.widths,this.defaultWidth=ge.defaultWidth,this.composite=ge.composite,this.cMap=ge.cMap,this.ascent=ge.ascent/U,this.descent=ge.descent/U,this.fontMatrix=ge.fontMatrix,this.bbox=ge.bbox,this.defaultEncoding=ge.defaultEncoding,this.toUnicode=ge.toUnicode,this.fallbackToUnicode=ge.fallbackToUnicode||new k,this.toFontChar=[],ge.type==="Type3"){for(Ae=0;Ae<256;Ae++)this.toFontChar[Ae]=this.differences[Ae]||ge.defaultEncoding[Ae];this.fontType=g.FontType.TYPE3;return}if(this.cidEncoding=ge.cidEncoding,this.vertical=!!ge.vertical,this.vertical&&(this.vmetrics=ge.vmetrics,this.defaultVMetrics=ge.defaultVMetrics),!xe||xe.isEmpty){xe&&(0,g.warn)('Font file is empty in "'+Ce+'" ('+this.loadedName+")"),this.fallbackToSystemFont();return}[we,Fe]=fe(xe,ge),(we!==this.type||Fe!==this.subtype)&&(0,g.info)(`Inconsistent font file Type/SubType, expected: ${this.type}/${this.subtype} but found: ${we}/${Fe}.`);try{var De;switch(we){case"MMType1":(0,g.info)("MMType1 font ("+Ce+"), falling back to Type1.");case"Type1":case"CIDFontType0":this.mimetype="font/opentype";var Be=Fe==="Type1C"||Fe==="CIDFontType0C"?new B(xe,ge):new T(Ce,xe,ge);A(ge),De=this.convert(Ce,Be,ge);break;case"OpenType":case"TrueType":case"CIDFontType2":this.mimetype="font/opentype",De=this.checkAndRepair(Ce,xe,ge),this.isOpenType&&(A(ge),we="OpenType");break;default:throw new g.FormatError(`Font ${we} is not supported`)}}catch(Ee){(0,g.warn)(Ee),this.fallbackToSystemFont();return}this.data=De,this.fontType=F(we,Fe),this.fontMatrix=ge.fontMatrix,this.widths=ge.widths,this.defaultWidth=ge.defaultWidth,this.toUnicode=ge.toUnicode,this.seacMap=ge.seacMap}Q.getFontID=function(){var Ce=1;return function(){return String(Ce++)}}();function z(Ce,xe){return(Ce<<8)+xe}function j(Ce,xe,ge){Ce[xe+1]=ge,Ce[xe]=ge>>>8}function $(Ce,xe){var ge=(Ce<<8)+xe;return ge&1<<15?ge-65536:ge}function M(Ce,xe,ge,Ae){return(Ce<<24)+(xe<<16)+(ge<<8)+Ae}function q(Ce){return String.fromCharCode(Ce>>8&255,Ce&255)}function K(Ce){return Ce>32767?Ce=32767:Ce<-32768&&(Ce=-32768),String.fromCharCode(Ce>>8&255,Ce&255)}function Z(Ce){var xe=Ce.peekBytes(4);return(0,ee.readUint32)(xe,0)===65536||(0,g.bytesToString)(xe)==="true"}function te(Ce){const xe=Ce.peekBytes(4);return(0,g.bytesToString)(xe)==="ttcf"}function oe(Ce){var xe=Ce.peekBytes(4);return(0,g.bytesToString)(xe)==="OTTO"}function ae(Ce){var xe=Ce.peekBytes(2);return xe[0]===37&&xe[1]===33||xe[0]===128&&xe[1]===1}function ce(Ce){const xe=Ce.peekBytes(4);return xe[0]>=1&&xe[3]>=1&&xe[3]<=4}function fe(Ce,{type:xe,subtype:ge,composite:Ae}){let we,Fe;return Z(Ce)||te(Ce)?Ae?we="CIDFontType2":we="TrueType":oe(Ce)?Ae?we="CIDFontType2":we="OpenType":ae(Ce)?Ae?we="CIDFontType0":we=xe==="MMType1"?"MMType1":"Type1":ce(Ce)?Ae?(we="CIDFontType0",Fe="CIDFontType0C"):(we=xe==="MMType1"?"MMType1":"Type1",Fe="Type1C"):((0,g.warn)("getFontFileType: Unable to detect correct font file Type/Subtype."),we=xe,Fe=ge),[we,Fe]}function ne(Ce,xe,ge){for(var Ae=[],we,Fe=0,_e=Ce.length;Fe<_e;Fe++)we=(0,H.getUnicodeForGlyph)(Ce[Fe],xe),we!==-1&&(Ae[Fe]=we);for(var De in ge)we=(0,H.getUnicodeForGlyph)(ge[De],xe),we!==-1&&(Ae[+De]=we);return Ae}function le(Ce,xe,ge){var Ae=Object.create(null),we=[],Fe=0,_e=re[Fe][0],De=re[Fe][1];for(var Be in Ce){Be|=0;var Ee=Ce[Be];if(!!xe(Ee)){if(_e>De){if(Fe++,Fe>=re.length){(0,g.warn)("Ran out of space in font private use area.");break}_e=re[Fe][0],De=re[Fe][1]}var ke=_e++;Ee===0&&(Ee=ge),Ae[ke]=Ee,we[Be]=ke}}return{toFontChar:we,charCodeToGlyphId:Ae,nextAvailableFontCharCode:_e}}function ue(Ce,xe){var ge=[];for(var Ae in Ce)Ce[Ae]>=xe||ge.push({fontCharCode:Ae|0,glyphId:Ce[Ae]});ge.length===0&&ge.push({fontCharCode:0,glyphId:0}),ge.sort(function(pe,be){return pe.fontCharCode-be.fontCharCode});for(var we=[],Fe=ge.length,_e=0;_e<Fe;){var De=ge[_e].fontCharCode,Be=[ge[_e].glyphId];++_e;for(var Ee=De;_e<Fe&&Ee+1===ge[_e].fontCharCode&&(Be.push(ge[_e].glyphId),++Ee,++_e,Ee!==65535););we.push([De,Ee,Be])}return we}function he(Ce,xe){var ge=ue(Ce,xe),Ae=ge[ge.length-1][1]>65535?2:1,we="\0\0"+q(Ae)+"\0\0"+(0,g.string32)(4+Ae*8),Fe,_e,De,Be;for(Fe=ge.length-1;Fe>=0&&!(ge[Fe][0]<=65535);--Fe);var Ee=Fe+1;ge[Fe][0]<65535&&ge[Fe][1]===65535&&(ge[Fe][1]=65534);var ke=ge[Fe][1]<65535?1:0,pe=Ee+ke,be=y.getSearchParams(pe,2),ye="",Te="",Pe="",Le="",Re="",Ie=0,He,Ue,Ge,je;for(Fe=0,_e=Ee;Fe<_e;Fe++){He=ge[Fe],Ue=He[0],Ge=He[1],ye+=q(Ue),Te+=q(Ge),je=He[2];var Oe=!0;for(De=1,Be=je.length;De<Be;++De)if(je[De]!==je[De-1]+1){Oe=!1;break}if(Oe){var tt=je[0];Pe+=q(tt-Ue&65535),Le+=q(0)}else{var $e=(pe-Fe)*2+Ie*2;for(Ie+=Ge-Ue+1,Pe+=q(0),Le+=q($e),De=0,Be=je.length;De<Be;++De)Re+=q(je[De])}}ke>0&&(Te+="\xFF\xFF",ye+="\xFF\xFF",Pe+="\0",Le+="\0\0");var Ye="\0\0"+q(2*pe)+q(be.range)+q(be.entry)+q(be.rangeShift)+Te+"\0\0"+ye+Pe+Le+Re,Xe="",rt="";if(Ae>1){for(we+=`\0\0
54
- `+(0,g.string32)(4+Ae*8+4+Ye.length),Xe="",Fe=0,_e=ge.length;Fe<_e;Fe++){He=ge[Fe],Ue=He[0],je=He[2];var Ze=je[0];for(De=1,Be=je.length;De<Be;++De)je[De]!==je[De-1]+1&&(Ge=He[0]+De-1,Xe+=(0,g.string32)(Ue)+(0,g.string32)(Ge)+(0,g.string32)(Ze),Ue=Ge+1,Ze=je[De]);Xe+=(0,g.string32)(Ue)+(0,g.string32)(He[1])+(0,g.string32)(Ze)}rt="\0\f\0\0"+(0,g.string32)(Xe.length+16)+"\0\0\0\0"+(0,g.string32)(Xe.length/12)}return we+"\0"+q(Ye.length+4)+Ye+rt+Xe}function de(Ce,xe){xe.pos=(xe.start||0)+Ce.offset;var ge=xe.getUint16();xe.skip(60);var Ae=xe.getUint16();if(ge<4&&Ae&768)return!1;var we=xe.getUint16(),Fe=xe.getUint16();if(we>Fe)return!1;xe.skip(6);var _e=xe.getUint16();return _e===0?!1:(Ce.data[8]=Ce.data[9]=0,!0)}function ve(Ce,xe,ge){ge=ge||{unitsPerEm:0,yMax:0,yMin:0,ascent:0,descent:0};var Ae=0,we=0,Fe=0,_e=0,De=null,Be=0;if(xe){for(var Ee in xe){Ee|=0,(De>Ee||!De)&&(De=Ee),Be<Ee&&(Be=Ee);var ke=(0,H.getUnicodeRangeFor)(Ee);if(ke<32)Ae|=1<<ke;else if(ke<64)we|=1<<ke-32;else if(ke<96)Fe|=1<<ke-64;else if(ke<123)_e|=1<<ke-96;else throw new g.FormatError("Unicode ranges Bits > 123 are reserved for internal usage")}Be>65535&&(Be=65535)}else De=0,Be=255;var pe=Ce.bbox||[0,0,0,0],be=ge.unitsPerEm||1/(Ce.fontMatrix||g.FONT_IDENTITY_MATRIX)[0],ye=Ce.ascentScaled?1:be/U,Te=ge.ascent||Math.round(ye*(Ce.ascent||pe[3])),Pe=ge.descent||Math.round(ye*(Ce.descent||pe[1]));Pe>0&&Ce.descent>0&&pe[1]<0&&(Pe=-Pe);var Le=ge.yMax||Te,Re=-ge.yMin||-Pe;return"\0$\xF4\0\0\0\x8A\xBB\0\0\0\x8C\x8A\xBB\0\0\xDF\x001\0\0\0\0"+String.fromCharCode(Ce.fixedPitch?9:0)+"\0\0\0\0\0\0"+(0,g.string32)(Ae)+(0,g.string32)(we)+(0,g.string32)(Fe)+(0,g.string32)(_e)+"*21*"+q(Ce.italicAngle?1:0)+q(De||Ce.firstChar)+q(Be||Ce.lastChar)+q(Te)+q(Pe)+"\0d"+q(Le)+q(Re)+"\0\0\0\0\0\0\0\0"+q(Ce.xHeight)+q(Ce.capHeight)+q(0)+q(De||Ce.firstChar)+"\0"}function me(Ce){var xe=Math.floor(Ce.italicAngle*65536);return"\0\0\0"+(0,g.string32)(xe)+"\0\0\0\0"+(0,g.string32)(Ce.fixedPitch)+"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"}function Se(Ce,xe){xe||(xe=[[],[]]);var ge=[xe[0][0]||"Original licence",xe[0][1]||Ce,xe[0][2]||"Unknown",xe[0][3]||"uniqueID",xe[0][4]||Ce,xe[0][5]||"Version 0.11",xe[0][6]||"",xe[0][7]||"Unknown",xe[0][8]||"Unknown",xe[0][9]||"Unknown"],Ae=[],we,Fe,_e,De,Be;for(we=0,Fe=ge.length;we<Fe;we++){Be=xe[1][we]||ge[we];var Ee=[];for(_e=0,De=Be.length;_e<De;_e++)Ee.push(q(Be.charCodeAt(_e)));Ae.push(Ee.join(""))}var ke=[ge,Ae],pe=["\0","\0"],be=["\0\0","\0"],ye=["\0\0"," "],Te=ge.length*pe.length,Pe="\0\0"+q(Te)+q(Te*12+6),Le=0;for(we=0,Fe=pe.length;we<Fe;we++){var Re=ke[we];for(_e=0,De=Re.length;_e<De;_e++){Be=Re[_e];var Ie=pe[we]+be[we]+ye[we]+q(_e)+q(Be.length)+q(Le);Pe+=Ie,Le+=Be.length}}return Pe+=ge.join("")+Ae.join(""),Pe}return Q.prototype={name:null,font:null,mimetype:null,disableFontFace:!1,get renderer(){var Ce=ie.FontRendererFactory.create(this,X);return(0,g.shadow)(this,"renderer",Ce)},exportData(Ce=!1){const xe=Ce?[...W,...G]:W,ge=Object.create(null);let Ae,we;for(Ae of xe)we=this[Ae],we!==void 0&&(ge[Ae]=we);return ge},fallbackToSystemFont:function(){this.missingFile=!0;var xe=this.name,ge=this.type,Ae=this.subtype;let we=xe.replace(/[,_]/g,"-").replace(/\s/g,"");var Fe=(0,se.getStdFontMap)(),_e=(0,se.getNonStdFontMap)(),De=!!Fe[we]||!!(_e[we]&&Fe[_e[we]]);if(we=Fe[we]||_e[we]||we,this.bold=we.search(/bold/gi)!==-1,this.italic=we.search(/oblique/gi)!==-1||we.search(/italic/gi)!==-1,this.black=xe.search(/Black/g)!==-1,this.remeasure=Object.keys(this.widths).length>0,De&&ge==="CIDFontType2"&&this.cidEncoding.startsWith("Identity-")){const ke=(0,se.getGlyphMapForStandardFonts)(),pe=[];for(const be in ke)pe[+be]=ke[be];if(/Arial-?Black/i.test(xe)){var Be=(0,se.getSupplementalGlyphMapForArialBlack)();for(const be in Be)pe[+be]=Be[be]}else if(/Calibri/i.test(xe)){const be=(0,se.getSupplementalGlyphMapForCalibri)();for(const ye in be)pe[+ye]=be[ye]}var Ee=this.toUnicode instanceof v;Ee||this.toUnicode.forEach(function(be,ye){pe[+be]=ye}),this.toFontChar=pe,this.toUnicode=new k(pe)}else if(/Symbol/i.test(we))this.toFontChar=ne(a.SymbolSetEncoding,(0,J.getGlyphsUnicode)(),this.differences);else if(/Dingbats/i.test(we))/Wingdings/i.test(xe)&&(0,g.warn)("Non-embedded Wingdings font, falling back to ZapfDingbats."),this.toFontChar=ne(a.ZapfDingbatsEncoding,(0,J.getDingbatsGlyphsUnicode)(),this.differences);else if(De)this.toFontChar=ne(this.defaultEncoding,(0,J.getGlyphsUnicode)(),this.differences);else{const ke=(0,J.getGlyphsUnicode)(),pe=[];if(this.toUnicode.forEach((be,ye)=>{if(!this.composite){var Te=this.differences[be]||this.defaultEncoding[be];const Pe=(0,H.getUnicodeForGlyph)(Te,ke);Pe!==-1&&(ye=Pe)}pe[+be]=ye}),this.composite&&this.toUnicode instanceof v&&/Verdana/i.test(xe)){const be=(0,se.getGlyphMapForStandardFonts)();for(const ye in be)pe[+ye]=be[ye]}this.toFontChar=pe}this.loadedName=we.split("-")[0],this.fontType=F(ge,Ae)},checkAndRepair:function(xe,ge,Ae){const we=["OS/2","cmap","head","hhea","hmtx","maxp","name","post","loca","glyf","fpgm","prep","cvt ","CFF "];function Fe(Ne,Me){const qe=Object.create(null);qe["OS/2"]=null,qe.cmap=null,qe.head=null,qe.hhea=null,qe.hmtx=null,qe.maxp=null,qe.name=null,qe.post=null;for(let Ve=0;Ve<Me;Ve++){const We=_e(Ne);!we.includes(We.tag)||We.length!==0&&(qe[We.tag]=We)}return qe}function _e(Ne){var Me=(0,g.bytesToString)(Ne.getBytes(4)),qe=Ne.getInt32()>>>0,Ve=Ne.getInt32()>>>0,We=Ne.getInt32()>>>0,Ke=Ne.pos;Ne.pos=Ne.start?Ne.start:0,Ne.skip(Ve);var Je=Ne.getBytes(We);return Ne.pos=Ke,Me==="head"&&(Je[8]=Je[9]=Je[10]=Je[11]=0,Je[17]|=32),{tag:Me,checksum:qe,length:We,offset:Ve,data:Je}}function De(Ne){return{version:(0,g.bytesToString)(Ne.getBytes(4)),numTables:Ne.getUint16(),searchRange:Ne.getUint16(),entrySelector:Ne.getUint16(),rangeShift:Ne.getUint16()}}function Be(Ne){const Me=(0,g.bytesToString)(Ne.getBytes(4));(0,g.assert)(Me==="ttcf","Must be a TrueType Collection font.");const qe=Ne.getUint16(),Ve=Ne.getUint16(),We=Ne.getInt32()>>>0,Ke=[];for(let ze=0;ze<We;ze++)Ke.push(Ne.getInt32()>>>0);const Je={ttcTag:Me,majorVersion:qe,minorVersion:Ve,numFonts:We,offsetTable:Ke};switch(qe){case 1:return Je;case 2:return Je.dsigTag=Ne.getInt32()>>>0,Je.dsigLength=Ne.getInt32()>>>0,Je.dsigOffset=Ne.getInt32()>>>0,Je}throw new g.FormatError(`Invalid TrueType Collection majorVersion: ${qe}.`)}function Ee(Ne,Me){const{numFonts:qe,offsetTable:Ve}=Be(Ne);for(let We=0;We<qe;We++){Ne.pos=(Ne.start||0)+Ve[We];const Ke=De(Ne),Je=Fe(Ne,Ke.numTables);if(!Je.name)throw new g.FormatError('TrueType Collection font must contain a "name" table.');const ze=Le(Je.name);for(let st=0,it=ze.length;st<it;st++)for(let ht=0,nt=ze[st].length;ht<nt;ht++){const mt=ze[st][ht];if(mt&&mt.replace(/\s/g,"")===Me)return{header:Ke,tables:Je}}}throw new g.FormatError(`TrueType Collection does not contain "${Me}" font.`)}function ke(Ne,Me,qe,Ve){if(!Ne)return(0,g.warn)("No cmap table available."),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};var We,Ke=(Me.start?Me.start:0)+Ne.offset;Me.pos=Ke,Me.skip(2);for(var Je=Me.getUint16(),ze,st=!1,it=0;it<Je;it++){var ht=Me.getUint16(),nt=Me.getUint16(),mt=Me.getInt32()>>>0,xt=!1;if(!(ze&&ze.platformId===ht&&ze.encodingId===nt)&&(ht===0&&nt===0||ht===1&&nt===0?xt=!0:ht===3&&nt===1&&(Ve||!ze)?(xt=!0,qe||(st=!0)):qe&&ht===3&&nt===0&&(xt=!0,st=!0),xt&&(ze={platformId:ht,encodingId:nt,offset:mt}),st))break}if(ze&&(Me.pos=Ke+ze.offset),!ze||Me.peekByte()===-1)return(0,g.warn)("Could not find a preferred cmap table."),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};var ft=Me.getUint16();Me.skip(2+2);var dt=!1,gt=[],Qe,At;if(ft===0){for(Qe=0;Qe<256;Qe++){var at=Me.getByte();!at||gt.push({charCode:Qe,glyphId:at})}dt=!0}else if(ft===4){var yt=Me.getUint16()>>1;Me.skip(6);var lt,bt=[];for(lt=0;lt<yt;lt++)bt.push({end:Me.getUint16()});for(Me.skip(2),lt=0;lt<yt;lt++)bt[lt].start=Me.getUint16();for(lt=0;lt<yt;lt++)bt[lt].delta=Me.getUint16();var Ot=0;for(lt=0;lt<yt;lt++){We=bt[lt];var Vt=Me.getUint16();if(!Vt){We.offsetIndex=-1;continue}var Tt=(Vt>>1)-(yt-lt);We.offsetIndex=Tt,Ot=Math.max(Ot,Tt+We.end-We.start+1)}var Mt=[];for(Qe=0;Qe<Ot;Qe++)Mt.push(Me.getUint16());for(lt=0;lt<yt;lt++){We=bt[lt],Ke=We.start;var St=We.end,kt=We.delta;for(Tt=We.offsetIndex,Qe=Ke;Qe<=St;Qe++)Qe!==65535&&(At=Tt<0?Qe:Mt[Tt+Qe-Ke],At=At+kt&65535,gt.push({charCode:Qe,glyphId:At}))}}else if(ft===6){var Pt=Me.getUint16(),rr=Me.getUint16();for(Qe=0;Qe<rr;Qe++){At=Me.getUint16();var ar=Pt+Qe;gt.push({charCode:ar,glyphId:At})}}else return(0,g.warn)("cmap table has unsupported format: "+ft),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};for(gt.sort(function(ir,nr){return ir.charCode-nr.charCode}),it=1;it<gt.length;it++)gt[it-1].charCode===gt[it].charCode&&(gt.splice(it,1),it--);return{platformId:ze.platformId,encodingId:ze.encodingId,mappings:gt,hasShortCmap:dt}}function pe(Ne,Me,qe,Ve,We){if(!Me){qe&&(qe.data=null);return}Ne.pos=(Ne.start?Ne.start:0)+Me.offset,Ne.pos+=4,Ne.pos+=2,Ne.pos+=2,Ne.pos+=2,Ne.pos+=2,Ne.pos+=2,Ne.pos+=2,Ne.pos+=2,Ne.pos+=2,Ne.pos+=2,Ne.pos+=2,Ne.pos+=8,Ne.pos+=2;var Ke=Ne.getUint16();Ke>Ve&&((0,g.info)("The numOfMetrics ("+Ke+") should not be greater than the numGlyphs ("+Ve+")"),Ke=Ve,Me.data[34]=(Ke&65280)>>8,Me.data[35]=Ke&255);var Je=Ve-Ke,ze=Je-(qe.length-Ke*4>>1);if(ze>0){var st=new Uint8Array(qe.length+ze*2);st.set(qe.data),We&&(st[qe.length]=qe.data[2],st[qe.length+1]=qe.data[3]),qe.data=st}}function be(Ne,Me,qe,Ve,We,Ke){var Je={length:0,sizeOfInstructions:0};if(qe-Me<=12)return Je;var ze=Ne.subarray(Me,qe),st=$(ze[0],ze[1]);if(st<0)return st=-1,j(ze,0,st),Ve.set(ze,We),Je.length=ze.length,Je;var it,ht=10,nt=0;for(it=0;it<st;it++){var mt=ze[ht]<<8|ze[ht+1];nt=mt+1,ht+=2}var xt=ht,ft=ze[ht]<<8|ze[ht+1];Je.sizeOfInstructions=ft,ht+=2+ft;var dt=ht,gt=0;for(it=0;it<nt;it++){var Qe=ze[ht++];Qe&192&&(ze[ht-1]=Qe&63);let yt=2;Qe&2?yt=1:Qe&16&&(yt=0);let lt=2;Qe&4?lt=1:Qe&32&&(lt=0);const bt=yt+lt;if(gt+=bt,Qe&8){var At=ze[ht++];it+=At,gt+=At*bt}}if(gt===0)return Je;var at=ht+gt;return at>ze.length?Je:!Ke&&ft>0?(Ve.set(ze.subarray(0,xt),We),Ve.set([0,0],We+xt),Ve.set(ze.subarray(dt,at),We+xt+2),at-=ft,ze.length-at>3&&(at=at+3&-4),Je.length=at,Je):ze.length-at>3?(at=at+3&-4,Ve.set(ze.subarray(0,at),We),Je.length=at,Je):(Ve.set(ze,We),Je.length=ze.length,Je)}function ye(Ne,Me,qe){var Ve=Ne.data,We=M(Ve[0],Ve[1],Ve[2],Ve[3]);We>>16!==1&&((0,g.info)("Attempting to fix invalid version in head table: "+We),Ve[0]=0,Ve[1]=1,Ve[2]=0,Ve[3]=0);var Ke=z(Ve[50],Ve[51]);if(Ke<0||Ke>1){(0,g.info)("Attempting to fix invalid indexToLocFormat in head table: "+Ke);var Je=Me+1;if(qe===Je<<1)Ve[50]=0,Ve[51]=0;else if(qe===Je<<2)Ve[50]=0,Ve[51]=1;else throw new g.FormatError("Could not fix indexToLocFormat: "+Ke)}}function Te(Ne,Me,qe,Ve,We,Ke,Je){var ze,st,it;Ve?(ze=4,st=function(St,kt){return St[kt]<<24|St[kt+1]<<16|St[kt+2]<<8|St[kt+3]},it=function(St,kt,Pt){St[kt]=Pt>>>24&255,St[kt+1]=Pt>>16&255,St[kt+2]=Pt>>8&255,St[kt+3]=Pt&255}):(ze=2,st=function(St,kt){return St[kt]<<9|St[kt+1]<<1},it=function(St,kt,Pt){St[kt]=Pt>>9&255,St[kt+1]=Pt>>1&255});var ht=Ke?qe+1:qe,nt=ze*(1+ht),mt=new Uint8Array(nt);mt.set(Ne.data.subarray(0,nt)),Ne.data=mt;var xt=Me.data,ft=xt.length,dt=new Uint8Array(ft),gt=st(mt,0),Qe=0,At=Object.create(null);it(mt,0,Qe);var at,yt;for(at=0,yt=ze;at<qe;at++,yt+=ze){var lt=st(mt,yt);lt===0&&(lt=gt),lt>ft&&(ft+3&-4)===lt&&(lt=ft),lt>ft&&(gt=lt);var bt=be(xt,gt,lt,dt,Qe,We),Ot=bt.length;Ot===0&&(At[at]=!0),bt.sizeOfInstructions>Je&&(Je=bt.sizeOfInstructions),Qe+=Ot,it(mt,yt,Qe),gt=lt}if(Qe===0){var Vt=new Uint8Array([0,1,0,0,0,0,0,0,0,0,0,0,0,0,49,0]);for(at=0,yt=ze;at<ht;at++,yt+=ze)it(mt,yt,Vt.length);Me.data=Vt}else if(Ke){var Tt=st(mt,ze);dt.length>Tt+Qe?Me.data=dt.subarray(0,Tt+Qe):(Me.data=new Uint8Array(Tt+Qe),Me.data.set(dt.subarray(0,Qe))),Me.data.set(dt.subarray(0,Tt),Qe),it(Ne.data,mt.length-ze,Qe+Tt)}else Me.data=dt.subarray(0,Qe);return{missingGlyphs:At,maxSizeOfInstructions:Je}}function Pe(Ne,Me,qe){var Ve=(ge.start?ge.start:0)+Ne.offset;ge.pos=Ve;var We=Ne.length,Ke=Ve+We,Je=ge.getInt32();ge.skip(28);var ze,st=!0,it;switch(Je){case 65536:ze=E;break;case 131072:var ht=ge.getUint16();if(ht!==qe){st=!1;break}var nt=[];for(it=0;it<ht;++it){var mt=ge.getUint16();if(mt>=32768){st=!1;break}nt.push(mt)}if(!st)break;for(var xt=[],ft=[];ge.pos<Ke;){var dt=ge.getByte();for(ft.length=dt,it=0;it<dt;++it)ft[it]=String.fromCharCode(ge.getByte());xt.push(ft.join(""))}for(ze=[],it=0;it<ht;++it){var gt=nt[it];if(gt<258){ze.push(E[gt]);continue}ze.push(xt[gt-258])}break;case 196608:break;default:(0,g.warn)("Unknown/unsupported post table version "+Je),st=!1,Me.defaultEncoding&&(ze=Me.defaultEncoding);break}return Me.glyphNames=ze,st}function Le(Ne){var Me=(ge.start?ge.start:0)+Ne.offset;ge.pos=Me;var qe=[[],[]],Ve=Ne.length,We=Me+Ve,Ke=ge.getUint16(),Je=6;if(Ke!==0||Ve<Je)return qe;var ze=ge.getUint16(),st=ge.getUint16(),it=[],ht=12,nt,mt;for(nt=0;nt<ze&&ge.pos+ht<=We;nt++){var xt={platform:ge.getUint16(),encoding:ge.getUint16(),language:ge.getUint16(),name:ge.getUint16(),length:ge.getUint16(),offset:ge.getUint16()};(xt.platform===1&&xt.encoding===0&&xt.language===0||xt.platform===3&&xt.encoding===1&&xt.language===1033)&&it.push(xt)}for(nt=0,mt=it.length;nt<mt;nt++){var ft=it[nt];if(!(ft.length<=0)){var dt=Me+st+ft.offset;if(!(dt+ft.length>We)){ge.pos=dt;var gt=ft.name;if(ft.encoding){for(var Qe="",At=0,at=ft.length;At<at;At+=2)Qe+=String.fromCharCode(ge.getUint16());qe[1][gt]=Qe}else qe[0][gt]=(0,g.bytesToString)(ge.getBytes(ft.length))}}}return qe}var Re=[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 Ie(Ne,Me){for(var qe=Ne.data,Ve=0,We,Ke,Je,ze,st,it=0,ht=0,nt=[],mt=[],xt=[],ft=Me.tooComplexToFollowFunctions,dt=!1,gt=0,Qe=0,At=qe.length;Ve<At;){var at=qe[Ve++];if(at===64)if(Ke=qe[Ve++],dt||Qe)Ve+=Ke;else for(We=0;We<Ke;We++)nt.push(qe[Ve++]);else if(at===65)if(Ke=qe[Ve++],dt||Qe)Ve+=Ke*2;else for(We=0;We<Ke;We++)Je=qe[Ve++],nt.push(Je<<8|qe[Ve++]);else if((at&248)===176)if(Ke=at-176+1,dt||Qe)Ve+=Ke;else for(We=0;We<Ke;We++)nt.push(qe[Ve++]);else if((at&248)===184)if(Ke=at-184+1,dt||Qe)Ve+=Ke*2;else for(We=0;We<Ke;We++)Je=qe[Ve++],nt.push(Je<<8|qe[Ve++]);else if(at===43&&!ft){if(!dt&&!Qe){if(ze=nt[nt.length-1],isNaN(ze))(0,g.info)("TT: CALL empty stack (or invalid entry).");else if(Me.functionsUsed[ze]=!0,ze in Me.functionsStackDeltas){const bt=nt.length+Me.functionsStackDeltas[ze];if(bt<0){(0,g.warn)("TT: CALL invalid functions stack delta."),Me.hintsValid=!1;return}nt.length=bt}else if(ze in Me.functionsDefined&&!xt.includes(ze)){if(mt.push({data:qe,i:Ve,stackTop:nt.length-1}),xt.push(ze),st=Me.functionsDefined[ze],!st){(0,g.warn)("TT: CALL non-existent function"),Me.hintsValid=!1;return}qe=st.data,Ve=st.i}}}else if(at===44&&!ft)(dt||Qe)&&((0,g.warn)("TT: nested FDEFs not allowed"),ft=!0),dt=!0,ht=Ve,ze=nt.pop(),Me.functionsDefined[ze]={data:qe,i:Ve};else if(at===45)if(dt)dt=!1,it=Ve;else{if(st=mt.pop(),!st){(0,g.warn)("TT: ENDF bad stack"),Me.hintsValid=!1;return}ze=xt.pop(),qe=st.data,Ve=st.i,Me.functionsStackDeltas[ze]=nt.length-st.stackTop}else if(at===137)(dt||Qe)&&((0,g.warn)("TT: nested IDEFs not allowed"),ft=!0),dt=!0,ht=Ve;else if(at===88)++gt;else if(at===27)Qe=gt;else if(at===89)Qe===gt&&(Qe=0),--gt;else if(at===28&&!dt&&!Qe){var yt=nt[nt.length-1];yt>0&&(Ve+=yt-1)}if(!dt&&!Qe){let bt=0;for(at<=142?bt=Re[at]:at>=192&&at<=223?bt=-1:at>=224&&(bt=-2),at>=113&&at<=117&&(Ke=nt.pop(),isNaN(Ke)||(bt=-Ke*2));bt<0&&nt.length>0;)nt.pop(),bt++;for(;bt>0;)nt.push(NaN),bt--}}Me.tooComplexToFollowFunctions=ft;var lt=[qe];Ve>qe.length&&lt.push(new Uint8Array(Ve-qe.length)),ht>it&&((0,g.warn)("TT: complementing a missing function tail"),lt.push(new Uint8Array([34,45]))),Ue(Ne,lt)}function He(Ne,Me){if(!Ne.tooComplexToFollowFunctions){if(Ne.functionsDefined.length>Me){(0,g.warn)("TT: more functions defined than expected"),Ne.hintsValid=!1;return}for(var qe=0,Ve=Ne.functionsUsed.length;qe<Ve;qe++){if(qe>Me){(0,g.warn)("TT: invalid function id: "+qe),Ne.hintsValid=!1;return}if(Ne.functionsUsed[qe]&&!Ne.functionsDefined[qe]){(0,g.warn)("TT: undefined function: "+qe),Ne.hintsValid=!1;return}}}}function Ue(Ne,Me){if(Me.length>1){var qe=0,Ve,We;for(Ve=0,We=Me.length;Ve<We;Ve++)qe+=Me[Ve].length;qe=qe+3&-4;var Ke=new Uint8Array(qe),Je=0;for(Ve=0,We=Me.length;Ve<We;Ve++)Ke.set(Me[Ve],Je),Je+=Me[Ve].length;Ne.data=Ke,Ne.length=qe}}function Ge(Ne,Me,qe,Ve){var We={functionsDefined:[],functionsUsed:[],functionsStackDeltas:[],tooComplexToFollowFunctions:!1,hintsValid:!0};if(Ne&&Ie(Ne,We),Me&&Ie(Me,We),Ne&&He(We,Ve),qe&&qe.length&1){var Ke=new Uint8Array(qe.length+1);Ke.set(qe.data),qe.data=Ke}return We.hintsValid}ge=new u.Stream(new Uint8Array(ge.getBytes()));let je,Oe;if(te(ge)){const Ne=Ee(ge,this.name);je=Ne.header,Oe=Ne.tables}else je=De(ge),Oe=Fe(ge,je.numTables);let $e,tt;var Ye=!Oe["CFF "];if(Ye){if(!Oe.loca)throw new g.FormatError('Required "loca" table is not found');Oe.glyf||((0,g.warn)('Required "glyf" table is not found -- trying to recover.'),Oe.glyf={tag:"glyf",data:new Uint8Array(0)}),this.isOpenType=!1}else{const Ne=Ae.composite&&((Ae.cidToGidMap||[]).length>0||!(Ae.cMap instanceof m.IdentityCMap));if(je.version==="OTTO"&&!Ne||!Oe.head||!Oe.hhea||!Oe.maxp||!Oe.post)return tt=new u.Stream(Oe["CFF "].data),$e=new B(tt,Ae),A(Ae),this.convert(xe,$e,Ae);delete Oe.glyf,delete Oe.loca,delete Oe.fpgm,delete Oe.prep,delete Oe["cvt "],this.isOpenType=!0}if(!Oe.maxp)throw new g.FormatError('Required "maxp" table is not found');ge.pos=(ge.start||0)+Oe.maxp.offset;var Xe=ge.getInt32();const rt=ge.getUint16();let Ze=rt+1,ct=!0;Ze>65535&&(ct=!1,Ze=rt,(0,g.warn)("Not enough space in glyfs to duplicate first glyph."));var pt=0,wt=0;if(Xe>=65536&&Oe.maxp.length>=22){ge.pos+=8;var Ct=ge.getUint16();Ct>2&&(Oe.maxp.data[14]=0,Oe.maxp.data[15]=2),ge.pos+=4,pt=ge.getUint16(),ge.pos+=4,wt=ge.getUint16()}Oe.maxp.data[4]=Ze>>8,Oe.maxp.data[5]=Ze&255;var ot=Ge(Oe.fpgm,Oe.prep,Oe["cvt "],pt);if(ot||(delete Oe.fpgm,delete Oe.prep,delete Oe["cvt "]),pe(ge,Oe.hhea,Oe.hmtx,Ze,ct),!Oe.head)throw new g.FormatError('Required "head" table is not found');ye(Oe.head,rt,Ye?Oe.loca.length:0);var ut=Object.create(null);if(Ye){var Ft=z(Oe.head.data[50],Oe.head.data[51]),vt=Te(Oe.loca,Oe.glyf,rt,Ft,ot,ct,wt);ut=vt.missingGlyphs,Xe>=65536&&Oe.maxp.length>=22&&(Oe.maxp.data[26]=vt.maxSizeOfInstructions>>8,Oe.maxp.data[27]=vt.maxSizeOfInstructions&255)}if(!Oe.hhea)throw new g.FormatError('Required "hhea" table is not found');Oe.hhea.data[10]===0&&Oe.hhea.data[11]===0&&(Oe.hhea.data[10]=255,Oe.hhea.data[11]=255);var Et={unitsPerEm:z(Oe.head.data[18],Oe.head.data[19]),yMax:z(Oe.head.data[42],Oe.head.data[43]),yMin:$(Oe.head.data[38],Oe.head.data[39]),ascent:z(Oe.hhea.data[4],Oe.hhea.data[5]),descent:$(Oe.hhea.data[6],Oe.hhea.data[7])};this.ascent=Et.ascent/Et.unitsPerEm,this.descent=Et.descent/Et.unitsPerEm,Oe.post&&Pe(Oe.post,Ae,rt),Oe.post={tag:"post",data:me(Ae)};const Dt=[];function Rt(Ne){return!ut[Ne]}if(Ae.composite){var Bt=Ae.cidToGidMap||[],Gt=Bt.length===0;Ae.cMap.forEach(function(Ne,Me){if(Me>65535)throw new g.FormatError("Max size of CID is 65,535");var qe=-1;Gt?qe=Me:Bt[Me]!==void 0&&(qe=Bt[Me]),qe>=0&&qe<rt&&Rt(qe)&&(Dt[Ne]=qe)})}else{var Ut=ke(Oe.cmap,ge,this.isSymbolicFont,Ae.hasEncoding),_t=Ut.platformId,Nt=Ut.encodingId,It=Ut.mappings,$t=It.length;if(Ae.hasEncoding&&(_t===3&&Nt===1||_t===1&&Nt===0)||_t===-1&&Nt===-1&&!!(0,a.getEncoding)(Ae.baseEncodingName)){var zt=[];(Ae.baseEncodingName==="MacRomanEncoding"||Ae.baseEncodingName==="WinAnsiEncoding")&&(zt=(0,a.getEncoding)(Ae.baseEncodingName));var Xt=(0,J.getGlyphsUnicode)();for(let Ne=0;Ne<256;Ne++){var Lt,qt;if(this.differences&&Ne in this.differences?Lt=this.differences[Ne]:Ne in zt&&zt[Ne]!==""?Lt=zt[Ne]:Lt=a.StandardEncoding[Ne],!!Lt){qt=D(Lt,Xt);var Wt;_t===3&&Nt===1?Wt=Xt[qt]:_t===1&&Nt===0&&(Wt=a.MacRomanEncoding.indexOf(qt));var Yt=!1;for(let Me=0;Me<$t;++Me)if(It[Me].charCode===Wt){Dt[Ne]=It[Me].glyphId,Yt=!0;break}if(!Yt&&Ae.glyphNames){var Ht=Ae.glyphNames.indexOf(Lt);Ht===-1&&qt!==Lt&&(Ht=Ae.glyphNames.indexOf(qt)),Ht>0&&Rt(Ht)&&(Dt[Ne]=Ht)}}}}else if(_t===0&&Nt===0)for(let Ne=0;Ne<$t;++Ne)Dt[It[Ne].charCode]=It[Ne].glyphId;else for(let Ne=0;Ne<$t;++Ne){let Me=It[Ne].charCode;_t===3&&Me>=61440&&Me<=61695&&(Me&=255),Dt[Me]=It[Ne].glyphId}}Dt.length===0&&(Dt[0]=0);let Kt=Ze-1;ct||(Kt=0);var jt=le(Dt,Rt,Kt);if(this.toFontChar=jt.toFontChar,Oe.cmap={tag:"cmap",data:he(jt.charCodeToGlyphId,Ze)},(!Oe["OS/2"]||!de(Oe["OS/2"],ge))&&(Oe["OS/2"]={tag:"OS/2",data:ve(Ae,jt.charCodeToGlyphId,Et)}),!Ye)try{tt=new u.Stream(Oe["CFF "].data);var Zt=new O.CFFParser(tt,Ae,X);$e=Zt.parse(),$e.duplicateFirstGlyph();var er=new O.CFFCompiler($e);Oe["CFF "].data=er.compile()}catch{(0,g.warn)("Failed to compile font "+Ae.loadedName)}if(!Oe.name)Oe.name={tag:"name",data:Se(this.name)};else{var tr=Le(Oe.name);Oe.name.data=Se(xe,tr)}var Qt=new y(je.version);for(var Jt in Oe)Qt.addTable(Jt,Oe[Jt].data);return Qt.toArray()},convert:function(xe,ge,Ae){Ae.fixedPitch=!1,Ae.builtInEncoding&&_(Ae,Ae.builtInEncoding);let we=1;ge instanceof B&&(we=ge.numGlyphs-1);var Fe=ge.getGlyphMapping(Ae),_e=le(Fe,ge.hasGlyphId.bind(ge),we);this.toFontChar=_e.toFontChar;var De=ge.numGlyphs;function Be(rt,Ze){var ct=null;for(var pt in rt)Ze===rt[pt]&&(ct||(ct=[]),ct.push(pt|0));return ct}function Ee(rt,Ze){for(var ct in rt)if(Ze===rt[ct])return ct|0;return _e.charCodeToGlyphId[_e.nextAvailableFontCharCode]=Ze,_e.nextAvailableFontCharCode++}var ke=ge.seacs;if(ke&&ke.length){var pe=Ae.fontMatrix||g.FONT_IDENTITY_MATRIX,be=ge.getCharset(),ye=Object.create(null);for(var Te in ke){Te|=0;var Pe=ke[Te],Le=a.StandardEncoding[Pe[2]],Re=a.StandardEncoding[Pe[3]],Ie=be.indexOf(Le),He=be.indexOf(Re);if(!(Ie<0||He<0)){var Ue={x:Pe[0]*pe[0]+Pe[1]*pe[2]+pe[4],y:Pe[0]*pe[1]+Pe[1]*pe[3]+pe[5]},Ge=Be(Fe,Te);if(!!Ge)for(let rt=0,Ze=Ge.length;rt<Ze;rt++){var je=Ge[rt],Oe=_e.charCodeToGlyphId,$e=Ee(Oe,Ie),tt=Ee(Oe,He);ye[je]={baseFontCharCode:$e,accentFontCharCode:tt,accentOffset:Ue}}}}Ae.seacMap=ye}var Ye=1/(Ae.fontMatrix||g.FONT_IDENTITY_MATRIX)[0],Xe=new y("OTTO");return Xe.addTable("CFF ",ge.data),Xe.addTable("OS/2",ve(Ae,_e.charCodeToGlyphId)),Xe.addTable("cmap",he(_e.charCodeToGlyphId,De)),Xe.addTable("head","\0\0\0\0\0\0\0\0\0\0_<\xF5\0\0"+K(Ye)+"\0\0\0\0\x9E\v~'\0\0\0\0\x9E\v~'\0\0"+K(Ae.descent)+"\xFF"+K(Ae.ascent)+q(Ae.italicAngle?2:0)+"\0\0\0\0\0\0\0"),Xe.addTable("hhea","\0\0\0"+K(Ae.ascent)+K(Ae.descent)+"\0\0\xFF\xFF\0\0\0\0\0\0"+K(Ae.capHeight)+K(Math.tan(Ae.italicAngle)*Ae.xHeight)+"\0\0\0\0\0\0\0\0\0\0\0\0"+q(De)),Xe.addTable("hmtx",function(){var Ze=ge.charstrings,ct=ge.cff?ge.cff.widths:null,pt="\0\0\0\0";for(let ot=1,ut=De;ot<ut;ot++){var wt=0;if(Ze){var Ct=Ze[ot-1];wt="width"in Ct?Ct.width:0}else ct&&(wt=Math.ceil(ct[ot]||0));pt+=q(wt)+q(0)}return pt}()),Xe.addTable("maxp","\0\0P\0"+q(De)),Xe.addTable("name",Se(xe)),Xe.addTable("post",me(Ae)),Xe.toArray()},get spaceWidth(){for(var Ce=["space","minus","one","i","I"],xe,ge=0,Ae=Ce.length;ge<Ae;ge++){var we=Ce[ge];if(we in this.widths){xe=this.widths[we];break}var Fe=(0,J.getGlyphsUnicode)(),_e=Fe[we],De=0;if(this.composite&&this.cMap.contains(_e)&&(De=this.cMap.lookup(_e)),!De&&this.toUnicode&&(De=this.toUnicode.charCodeOf(_e)),De<=0&&(De=_e),xe=this.widths[De],xe)break}return xe=xe||this.defaultWidth,(0,g.shadow)(this,"spaceWidth",xe)},charToGlyph:function(xe,ge){var Ae,we,Fe,_e=xe;this.cMap&&this.cMap.contains(xe)&&(_e=this.cMap.lookup(xe)),we=this.widths[_e],we=(0,g.isNum)(we)?we:this.defaultWidth;var De=this.vmetrics&&this.vmetrics[_e];let Be=this.toUnicode.get(xe)||this.fallbackToUnicode.get(xe)||xe;typeof Be=="number"&&(Be=String.fromCharCode(Be));var Ee=xe in this.toFontChar;if(Ae=this.toFontChar[xe]||xe,this.missingFile){const Te=this.differences[xe]||this.defaultEncoding[xe];(Te===".notdef"||Te==="")&&this.type==="Type1"&&(Ae=32),Ae=(0,H.mapSpecialUnicodeValues)(Ae)}this.isType3Font&&(Fe=Ae);var ke=null;if(this.seacMap&&this.seacMap[xe]){Ee=!0;var pe=this.seacMap[xe];Ae=pe.baseFontCharCode,ke={fontChar:String.fromCodePoint(pe.accentFontCharCode),offset:pe.accentOffset}}let be="";typeof Ae=="number"&&(Ae<=1114111?be=String.fromCodePoint(Ae):(0,g.warn)(`charToGlyph - invalid fontCharCode: ${Ae}`));var ye=this.glyphCache[xe];return(!ye||!ye.matchesForCache(be,Be,ke,we,De,Fe,ge,Ee))&&(ye=new L(be,Be,ke,we,De,Fe,ge,Ee),this.glyphCache[xe]=ye),ye},charsToGlyphs:function(xe){var ge=this.charsCache,Ae,we,Fe;if(ge&&(Ae=ge[xe],Ae))return Ae;ge||(ge=this.charsCache=Object.create(null)),Ae=[];var _e=xe,De=0,Be;if(this.cMap)for(var Ee=Object.create(null);De<xe.length;){this.cMap.readCharCode(xe,De,Ee),Fe=Ee.charcode;var ke=Ee.length;De+=ke;var pe=ke===1&&xe.charCodeAt(De-1)===32;we=this.charToGlyph(Fe,pe),Ae.push(we)}else for(De=0,Be=xe.length;De<Be;++De)Fe=xe.charCodeAt(De),we=this.charToGlyph(Fe,Fe===32),Ae.push(we);return ge[_e]=Ae},get glyphCacheValues(){return Object.values(this.glyphCache)}},Q}();d.Font=b;var C=function(){function Q(z){this.error=z,this.loadedName="g_font_error",this.missingFile=!0}return Q.prototype={charsToGlyphs:function(){return[]},exportData(z=!1){return{error:this.error}}},Q}();d.ErrorFont=C;function w(N,Q,z){var j=Object.create(null),$,M,q,K=!!(N.flags&P.Symbolic);if(N.baseEncodingName)for(q=(0,a.getEncoding)(N.baseEncodingName),M=0;M<q.length;M++)$=z.indexOf(q[M]),$>=0?j[M]=$:j[M]=0;else if(K)for(M in Q)j[M]=Q[M];else for(q=a.StandardEncoding,M=0;M<q.length;M++)$=z.indexOf(q[M]),$>=0?j[M]=$:j[M]=0;var Z=N.differences,te;if(Z)for(M in Z){var oe=Z[M];if($=z.indexOf(oe),$===-1){te||(te=(0,J.getGlyphsUnicode)());var ae=D(oe,te);ae!==oe&&($=z.indexOf(ae))}$>=0?j[M]=$:j[M]=0}return j}var T=function(){function Q(M,q,K){for(var Z=M.length,te=q.length,oe=Z-te,ae=K,ce,fe=!1;ae<oe;){for(ce=0;ce<te&&M[ae+ce]===q[ce];)ce++;if(ce>=te){for(ae+=ce;ae<Z&&(0,ee.isWhiteSpace)(M[ae]);)ae++;fe=!0;break}ae++}return{found:fe,length:ae}}function z(M,q){var K=[101,101,120,101,99],Z=M.pos,te,oe,ae;try{te=M.getBytes(q),oe=te.length}catch(le){if(le instanceof ee.MissingDataException)throw le}if(oe===q&&(ae=Q(te,K,q-2*K.length),ae.found&&ae.length===q))return{stream:new u.Stream(te),length:q};(0,g.warn)('Invalid "Length1" property in Type1 font -- trying to recover.'),M.pos=Z;for(var ce=2048,fe;;){var ne=M.peekBytes(ce);if(ae=Q(ne,K,0),ae.length===0)break;if(M.pos+=ae.length,ae.found){fe=M.pos-Z;break}}return M.pos=Z,fe?{stream:new u.Stream(M.getBytes(fe)),length:fe}:((0,g.warn)('Unable to recover "Length1" property in Type1 font -- using as is.'),{stream:new u.Stream(M.getBytes(q)),length:q})}function j(M,q){var K=M.getBytes();return{stream:new u.Stream(K),length:K.length}}function $(M,q,K){var Z=6,te=K.length1;K.length2;var oe=q.peekBytes(Z),ae=oe[0]===128&&oe[1]===1;ae&&(q.skip(Z),te=oe[5]<<24|oe[4]<<16|oe[3]<<8|oe[2]);var ce=z(q,te),fe=new Y.Type1Parser(ce.stream,!1,X);fe.extractFontHeader(K),ae&&(oe=q.getBytes(Z),oe[5]<<24|oe[4]<<16|oe[3]<<8|oe[2]);var ne=j(q),le=new Y.Type1Parser(ne.stream,!0,X),ue=le.extractFontProgram(K);for(const me in ue.properties)K[me]=ue.properties[me];var he=ue.charstrings,de=this.getType2Charstrings(he),ve=this.getType2Subrs(ue.subrs);this.charstrings=he,this.data=this.wrap(M,de,this.charstrings,ve,K),this.seacs=this.getSeacs(ue.charstrings)}return $.prototype={get numGlyphs(){return this.charstrings.length+1},getCharset:function(){for(var q=[".notdef"],K=this.charstrings,Z=0;Z<K.length;Z++)q.push(K[Z].glyphName);return q},getGlyphMapping:function(q){var K=this.charstrings;if(q.composite){const fe=Object.create(null);for(let ne=0,le=K.length;ne<le;ne++){const ue=q.cMap.charCodeOf(ne);fe[ue]=ne+1}return fe}var Z=[".notdef"],te;for(te=0;te<K.length;te++)Z.push(K[te].glyphName);var oe=q.builtInEncoding;if(oe){var ae=Object.create(null);for(var ce in oe)te=Z.indexOf(oe[ce]),te>=0&&(ae[ce]=te)}return w(q,ae,Z)},hasGlyphId:function(q){if(q<0||q>=this.numGlyphs)return!1;if(q===0)return!0;var K=this.charstrings[q-1];return K.charstring.length>0},getSeacs:function(q){var K,Z,te=[];for(K=0,Z=q.length;K<Z;K++){var oe=q[K];oe.seac&&(te[K+1]=oe.seac)}return te},getType2Charstrings:function(q){for(var K=[],Z=0,te=q.length;Z<te;Z++)K.push(q[Z].charstring);return K},getType2Subrs:function(q){var K=0,Z=q.length;Z<1133?K=107:Z<33769?K=1131:K=32768;var te=[],oe;for(oe=0;oe<K;oe++)te.push([11]);for(oe=0;oe<Z;oe++)te.push(q[oe]);return te},wrap:function(q,K,Z,te,oe){var ae=new O.CFF;ae.header=new O.CFFHeader(1,0,4,4),ae.names=[q];var ce=new O.CFFTopDict;ce.setByName("version",391),ce.setByName("Notice",392),ce.setByName("FullName",393),ce.setByName("FamilyName",394),ce.setByName("Weight",395),ce.setByName("Encoding",null),ce.setByName("FontMatrix",oe.fontMatrix),ce.setByName("FontBBox",oe.bbox),ce.setByName("charset",null),ce.setByName("CharStrings",null),ce.setByName("Private",null),ae.topDict=ce;var fe=new O.CFFStrings;fe.add("Version 0.11"),fe.add("See original notice"),fe.add(q),fe.add(q),fe.add("Medium"),ae.strings=fe,ae.globalSubrIndex=new O.CFFIndex;var ne=K.length,le=[".notdef"],ue,he;for(ue=0;ue<ne;ue++){const we=Z[ue].glyphName;O.CFFStandardStrings.indexOf(we)===-1&&fe.add(we),le.push(we)}ae.charset=new O.CFFCharset(!1,0,le);var de=new O.CFFIndex;for(de.add([139,14]),ue=0;ue<ne;ue++)de.add(K[ue]);ae.charStrings=de;var ve=new O.CFFPrivateDict;ve.setByName("Subrs",null);var me=["BlueValues","OtherBlues","FamilyBlues","FamilyOtherBlues","StemSnapH","StemSnapV","BlueShift","BlueFuzz","BlueScale","LanguageGroup","ExpansionFactor","ForceBold","StdHW","StdVW"];for(ue=0,he=me.length;ue<he;ue++){var Se=me[ue];if(Se in oe.privateData){var Ce=oe.privateData[Se];if(Array.isArray(Ce))for(var xe=Ce.length-1;xe>0;xe--)Ce[xe]-=Ce[xe-1];ve.setByName(Se,Ce)}}ae.topDict.privateDict=ve;var ge=new O.CFFIndex;for(ue=0,he=te.length;ue<he;ue++)ge.add(te[ue]);ve.subrsIndex=ge;var Ae=new O.CFFCompiler(ae);return Ae.compile()}},$}(),B=function(){function Q(z,j){this.properties=j;var $=new O.CFFParser(z,j,X);this.cff=$.parse(),this.cff.duplicateFirstGlyph();var M=new O.CFFCompiler(this.cff);this.seacs=this.cff.seacs;try{this.data=M.compile()}catch{(0,g.warn)("Failed to compile font "+j.loadedName),this.data=z}}return Q.prototype={get numGlyphs(){return this.cff.charStrings.count},getCharset:function(){return this.cff.charset.charset},getGlyphMapping:function(){var j=this.cff,$=this.properties,M=j.charset.charset,q,K;if($.composite){q=Object.create(null);let oe;if(j.isCIDFont)for(K=0;K<M.length;K++){var Z=M[K];oe=$.cMap.charCodeOf(Z),q[oe]=K}else for(K=0;K<j.charStrings.count;K++)oe=$.cMap.charCodeOf(K),q[oe]=K;return q}var te=j.encoding?j.encoding.encoding:null;return q=w($,te,M),q},hasGlyphId:function(j){return this.cff.hasGlyphId(j)}},Q}()},function(S,d,R){Object.defineProperty(d,"__esModule",{value:!0}),d.CFFFDSelect=d.CFFCompiler=d.CFFPrivateDict=d.CFFTopDict=d.CFFCharset=d.CFFIndex=d.CFFStrings=d.CFFHeader=d.CFF=d.CFFParser=d.CFFStandardStrings=void 0;var g=R(2),O=R(31),J=R(32),a=10,se=[".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"];d.CFFStandardStrings=se;const H=391;var ee=function(){var D=[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}],L=[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:function(y,b){y[b-2]=y[b-2]+y[b-1]}},{id:"sub",min:2,stackDelta:-1,stackFn:function(y,b){y[b-2]=y[b-2]-y[b-1]}},{id:"div",min:2,stackDelta:-1,stackFn:function(y,b){y[b-2]=y[b-2]/y[b-1]}},null,{id:"neg",min:1,stackDelta:0,stackFn:function(y,b){y[b-1]=-y[b-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:function(y,b){y[b-2]=y[b-2]*y[b-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}];function k(v,y,b){this.bytes=v.getBytes(),this.properties=y,this.seacAnalysisEnabled=!!b}return k.prototype={parse:function(){var y=this.properties,b=new ie;this.cff=b;var C=this.parseHeader(),w=this.parseIndex(C.endPos),T=this.parseIndex(w.endPos),B=this.parseIndex(T.endPos),N=this.parseIndex(B.endPos),Q=this.parseDict(T.obj.get(0)),z=this.createDict(U,Q,b.strings);b.header=C.obj,b.names=this.parseNameIndex(w.obj),b.strings=this.parseStringIndex(B.obj),b.topDict=z,b.globalSubrIndex=N.obj,this.parsePrivateDict(b.topDict),b.isCIDFont=z.hasName("ROS");var j=z.getByName("CharStrings"),$=this.parseIndex(j).obj,M=z.getByName("FontMatrix");M&&(y.fontMatrix=M);var q=z.getByName("FontBBox");q&&(y.ascent=Math.max(q[3],q[1]),y.descent=Math.min(q[1],q[3]),y.ascentScaled=!0);var K,Z;if(b.isCIDFont){for(var te=this.parseIndex(z.getByName("FDArray")).obj,oe=0,ae=te.count;oe<ae;++oe){var ce=te.get(oe),fe=this.createDict(U,this.parseDict(ce),b.strings);this.parsePrivateDict(fe),b.fdArray.push(fe)}Z=null,K=this.parseCharsets(z.getByName("charset"),$.count,b.strings,!0),b.fdSelect=this.parseFDSelect(z.getByName("FDSelect"),$.count)}else K=this.parseCharsets(z.getByName("charset"),$.count,b.strings,!1),Z=this.parseEncoding(z.getByName("Encoding"),y,b.strings,K.charset);b.charset=K,b.encoding=Z;var ne=this.parseCharStrings({charStrings:$,localSubrIndex:z.privateDict.subrsIndex,globalSubrIndex:N.obj,fdSelect:b.fdSelect,fdArray:b.fdArray,privateDict:z.privateDict});return b.charStrings=ne.charStrings,b.seacs=ne.seacs,b.widths=ne.widths,b},parseHeader:function(){for(var y=this.bytes,b=y.length,C=0;C<b&&y[C]!==1;)++C;if(C>=b)throw new g.FormatError("Invalid CFF header");C!==0&&((0,g.info)("cff data is shifted"),y=y.subarray(C),this.bytes=y);var w=y[0],T=y[1],B=y[2],N=y[3],Q=new m(w,T,B,N);return{obj:Q,endPos:B}},parseDict:function(y){var b=0;function C(){var z=y[b++];return z===30?w():z===28?(z=y[b++],z=(z<<24|y[b++]<<16)>>16,z):z===29?(z=y[b++],z=z<<8|y[b++],z=z<<8|y[b++],z=z<<8|y[b++],z):z>=32&&z<=246?z-139:z>=247&&z<=250?(z-247)*256+y[b++]+108:z>=251&&z<=254?-((z-251)*256)-y[b++]-108:((0,g.warn)('CFFParser_parseDict: "'+z+'" is a reserved command.'),NaN)}function w(){var z="",j=15;const $=["0","1","2","3","4","5","6","7","8","9",".","E","E-",null,"-"];for(var M=y.length;b<M;){var q=y[b++],K=q>>4,Z=q&15;if(K===j||(z+=$[K],Z===j))break;z+=$[Z]}return parseFloat(z)}var T=[],B=[];b=0;for(var N=y.length;b<N;){var Q=y[b];Q<=21?(Q===12&&(Q=Q<<8|y[++b]),B.push([Q,T]),T=[],++b):T.push(C())}return B},parseIndex:function(y){var b=new Y,C=this.bytes,w=C[y++]<<8|C[y++],T=[],B=y,N,Q;if(w!==0){var z=C[y++],j=y+(w+1)*z-1;for(N=0,Q=w+1;N<Q;++N){for(var $=0,M=0;M<z;++M)$<<=8,$+=C[y++];T.push(j+$)}B=T[w]}for(N=0,Q=T.length-1;N<Q;++N){var q=T[N],K=T[N+1];b.add(C.subarray(q,K))}return{obj:b,endPos:B}},parseNameIndex:function(y){for(var b=[],C=0,w=y.count;C<w;++C){var T=y.get(C);b.push((0,g.bytesToString)(T))}return b},parseStringIndex:function(y){for(var b=new u,C=0,w=y.count;C<w;++C){var T=y.get(C);b.add((0,g.bytesToString)(T))}return b},createDict:function(y,b,C){for(var w=new y(C),T=0,B=b.length;T<B;++T){var N=b[T],Q=N[0],z=N[1];w.setByKey(Q,z)}return w},parseCharString:function(y,b,C,w){if(!b||y.callDepth>a)return!1;for(var T=y.stackSize,B=y.stack,N=b.length,Q=0;Q<N;){var z=b[Q++],j=null;if(z===12){var $=b[Q++];$===0?(b[Q-2]=139,b[Q-1]=22,T=0):j=L[$]}else if(z===28)B[T]=(b[Q]<<24|b[Q+1]<<16)>>16,Q+=2,T++;else if(z===14){if(T>=4&&(T-=4,this.seacAnalysisEnabled))return y.seac=B.slice(T,T+4),!1;j=D[z]}else if(z>=32&&z<=246)B[T]=z-139,T++;else if(z>=247&&z<=254)B[T]=z<251?(z-247<<8)+b[Q]+108:-(z-251<<8)-b[Q]-108,Q++,T++;else if(z===255)B[T]=(b[Q]<<24|b[Q+1]<<16|b[Q+2]<<8|b[Q+3])/65536,Q+=4,T++;else if(z===19||z===20)y.hints+=T>>1,Q+=y.hints+7>>3,T%=2,j=D[z];else if(z===10||z===29){var M;if(z===10?M=C:M=w,!M)return j=D[z],(0,g.warn)("Missing subrsIndex for "+j.id),!1;var q=32768;M.count<1240?q=107:M.count<33900&&(q=1131);var K=B[--T]+q;if(K<0||K>=M.count||isNaN(K))return j=D[z],(0,g.warn)("Out of bounds subrIndex for "+j.id),!1;y.stackSize=T,y.callDepth++;var Z=this.parseCharString(y,M.get(K),C,w);if(!Z)return!1;y.callDepth--,T=y.stackSize;continue}else{if(z===11)return y.stackSize=T,!0;j=D[z]}if(j){if(j.stem&&(y.hints+=T>>1,z===3||z===23?y.hasVStems=!0:y.hasVStems&&(z===1||z===18)&&((0,g.warn)("CFF stem hints are in wrong order"),b[Q-1]=z===1?3:23)),"min"in j&&!y.undefStack&&T<j.min)return(0,g.warn)("Not enough parameters for "+j.id+"; actual: "+T+", expected: "+j.min),!1;y.firstStackClearing&&j.stackClearing&&(y.firstStackClearing=!1,T-=j.min,T>=2&&j.stem?T%=2:T>1&&(0,g.warn)("Found too many parameters for stack-clearing command"),T>0&&B[T-1]>=0&&(y.width=B[T-1])),"stackDelta"in j?("stackFn"in j&&j.stackFn(B,T),T+=j.stackDelta):j.stackClearing?T=0:j.resetStack?(T=0,y.undefStack=!1):j.undefStack&&(T=0,y.undefStack=!0,y.firstStackClearing=!1)}}return y.stackSize=T,!0},parseCharStrings({charStrings:v,localSubrIndex:y,globalSubrIndex:b,fdSelect:C,fdArray:w,privateDict:T}){for(var B=[],N=[],Q=v.count,z=0;z<Q;z++){var j=v.get(z),$={callDepth:0,stackSize:0,stack:[],undefStack:!0,hints:0,firstStackClearing:!0,seac:null,width:null,hasVStems:!1},M=!0,q=null,K=T;if(C&&w.length){var Z=C.getFDIndex(z);Z===-1&&((0,g.warn)("Glyph index is not in fd select."),M=!1),Z>=w.length&&((0,g.warn)("Invalid fd index for glyph index."),M=!1),M&&(K=w[Z].privateDict,q=K.subrsIndex)}else y&&(q=y);if(M&&(M=this.parseCharString($,j,q,b)),$.width!==null){const te=K.getByName("nominalWidthX");N[z]=te+$.width}else{const te=K.getByName("defaultWidthX");N[z]=te}$.seac!==null&&(B[z]=$.seac),M||v.set(z,new Uint8Array([14]))}return{charStrings:v,seacs:B,widths:N}},emptyPrivateDictionary:function(y){var b=this.createDict(X,[],y.strings);y.setByKey(18,[0,0]),y.privateDict=b},parsePrivateDict:function(y){if(!y.hasName("Private")){this.emptyPrivateDictionary(y);return}var b=y.getByName("Private");if(!Array.isArray(b)||b.length!==2){y.removeByName("Private");return}var C=b[0],w=b[1];if(C===0||w>=this.bytes.length){this.emptyPrivateDictionary(y);return}var T=w+C,B=this.bytes.subarray(w,T),N=this.parseDict(B),Q=this.createDict(X,N,y.strings);if(y.privateDict=Q,!!Q.getByName("Subrs")){var z=Q.getByName("Subrs"),j=w+z;if(z===0||j>=this.bytes.length){this.emptyPrivateDictionary(y);return}var $=this.parseIndex(j);Q.subrsIndex=$.obj}},parseCharsets:function(y,b,C,w){if(y===0)return new G(!0,W.ISO_ADOBE,O.ISOAdobeCharset);if(y===1)return new G(!0,W.EXPERT,O.ExpertCharset);if(y===2)return new G(!0,W.EXPERT_SUBSET,O.ExpertSubsetCharset);var T=this.bytes,B=y,N=T[y++];const Q=[w?0:".notdef"];var z,j,$;switch(b-=1,N){case 0:for($=0;$<b;$++)z=T[y++]<<8|T[y++],Q.push(w?z:C.get(z));break;case 1:for(;Q.length<=b;)for(z=T[y++]<<8|T[y++],j=T[y++],$=0;$<=j;$++)Q.push(w?z++:C.get(z++));break;case 2:for(;Q.length<=b;)for(z=T[y++]<<8|T[y++],j=T[y++]<<8|T[y++],$=0;$<=j;$++)Q.push(w?z++:C.get(z++));break;default:throw new g.FormatError("Unknown charset format")}var M=y,q=T.subarray(B,M);return new G(!1,N,Q,q)},parseEncoding:function(y,b,C,w){var T=Object.create(null),B=this.bytes,N=!1,Q,z,j,$=null;function M(){var ue=B[y++];for(z=0;z<ue;z++){var he=B[y++],de=(B[y++]<<8)+(B[y++]&255);T[he]=w.indexOf(C.get(de))}}if(y===0||y===1){N=!0,Q=y;var q=y?J.ExpertEncoding:J.StandardEncoding;for(z=0,j=w.length;z<j;z++){var K=q.indexOf(w[z]);K!==-1&&(T[K]=z)}}else{var Z=y;switch(Q=B[y++],Q&127){case 0:var te=B[y++];for(z=1;z<=te;z++)T[B[y++]]=z;break;case 1:var oe=B[y++],ae=1;for(z=0;z<oe;z++)for(var ce=B[y++],fe=B[y++],ne=ce;ne<=ce+fe;ne++)T[ne]=ae++;break;default:throw new g.FormatError(`Unknown encoding format: ${Q} in CFF`)}var le=y;Q&128&&(B[Z]&=127,M()),$=B.subarray(Z,le)}return Q=Q&127,new P(N,Q,T,$)},parseFDSelect:function(y,b){var C=this.bytes,w=C[y++],T=[],B;switch(w){case 0:for(B=0;B<b;++B){var N=C[y++];T.push(N)}break;case 3:var Q=C[y++]<<8|C[y++];for(B=0;B<Q;++B){var z=C[y++]<<8|C[y++];B===0&&z!==0&&((0,g.warn)("parseFDSelect: The first range must have a first GID of 0 -- trying to recover."),z=0);for(var j=C[y++],$=C[y]<<8|C[y+1],M=z;M<$;++M)T.push(j)}y+=2;break;default:throw new g.FormatError(`parseFDSelect: Unknown format "${w}".`)}if(T.length!==b)throw new g.FormatError("parseFDSelect: Invalid font data.");return new E(w,T)}},k}();d.CFFParser=ee;var ie=function(){function D(){this.header=null,this.names=[],this.topDict=null,this.strings=new u,this.globalSubrIndex=null,this.encoding=null,this.charset=null,this.charStrings=null,this.fdArray=[],this.fdSelect=null,this.isCIDFont=!1}return D.prototype={duplicateFirstGlyph:function(){if(this.charStrings.count>=65535){(0,g.warn)("Not enough space in charstrings to duplicate first glyph.");return}var k=this.charStrings.get(0);this.charStrings.add(k),this.isCIDFont&&this.fdSelect.fdSelect.push(this.fdSelect.fdSelect[0])},hasGlyphId:function(k){if(k<0||k>=this.charStrings.count)return!1;var v=this.charStrings.get(k);return v.length>0}},D}();d.CFF=ie;var m=function(){function D(L,k,v,y){this.major=L,this.minor=k,this.hdrSize=v,this.offSize=y}return D}();d.CFFHeader=m;var u=function(){function D(){this.strings=[]}return D.prototype={get:function(k){return k>=0&&k<=H-1?se[k]:k-H<=this.strings.length?this.strings[k-H]:se[0]},getSID:function(k){let v=se.indexOf(k);return v!==-1?v:(v=this.strings.indexOf(k),v!==-1?v+H:-1)},add:function(k){this.strings.push(k)},get count(){return this.strings.length}},D}();d.CFFStrings=u;var Y=function(){function D(){this.objects=[],this.length=0}return D.prototype={add:function(k){this.length+=k.length,this.objects.push(k)},set:function(k,v){this.length+=v.length-this.objects[k].length,this.objects[k]=v},get:function(k){return this.objects[k]},get count(){return this.objects.length}},D}();d.CFFIndex=Y;var re=function(){function D(L,k){this.keyToNameMap=L.keyToNameMap,this.nameToKeyMap=L.nameToKeyMap,this.defaults=L.defaults,this.types=L.types,this.opcodes=L.opcodes,this.order=L.order,this.strings=k,this.values=Object.create(null)}return D.prototype={setByKey:function(k,v){if(!(k in this.keyToNameMap))return!1;var y=v.length;if(y===0)return!0;for(var b=0;b<y;b++)if(isNaN(v[b]))return(0,g.warn)('Invalid CFFDict value: "'+v+'" for key "'+k+'".'),!0;var C=this.types[k];return(C==="num"||C==="sid"||C==="offset")&&(v=v[0]),this.values[k]=v,!0},setByName:function(k,v){if(!(k in this.nameToKeyMap))throw new g.FormatError(`Invalid dictionary name "${k}"`);this.values[this.nameToKeyMap[k]]=v},hasName:function(k){return this.nameToKeyMap[k]in this.values},getByName:function(k){if(!(k in this.nameToKeyMap))throw new g.FormatError(`Invalid dictionary name ${k}"`);var v=this.nameToKeyMap[k];return v in this.values?this.values[v]:this.defaults[v]},removeByName:function(k){delete this.values[this.nameToKeyMap[k]]}},D.createTables=function(k){for(var v={keyToNameMap:{},nameToKeyMap:{},defaults:{},types:{},opcodes:{},order:[]},y=0,b=k.length;y<b;++y){var C=k[y],w=Array.isArray(C[0])?(C[0][0]<<8)+C[0][1]:C[0];v.keyToNameMap[w]=C[1],v.nameToKeyMap[C[1]]=w,v.types[w]=C[2],v.defaults[w]=C[3],v.opcodes[w]=Array.isArray(C[0])?C[0]:[C[0]],v.order.push(w)}return v},D}(),U=function(){var D=[[[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]],L=null;function k(v){L===null&&(L=re.createTables(D)),re.call(this,L,v),this.privateDict=null}return k.prototype=Object.create(re.prototype),k}();d.CFFTopDict=U;var X=function(){var D=[[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]],L=null;function k(v){L===null&&(L=re.createTables(D)),re.call(this,L,v),this.subrsIndex=null}return k.prototype=Object.create(re.prototype),k}();d.CFFPrivateDict=X;var W={ISO_ADOBE:0,EXPERT:1,EXPERT_SUBSET:2},G=function(){function D(L,k,v,y){this.predefined=L,this.format=k,this.charset=v,this.raw=y}return D}();d.CFFCharset=G;var P=function(){function D(L,k,v,y){this.predefined=L,this.format=k,this.encoding=v,this.raw=y}return D}(),E=function(){function D(L,k){this.format=L,this.fdSelect=k}return D.prototype={getFDIndex:function(k){return k<0||k>=this.fdSelect.length?-1:this.fdSelect[k]}},D}();d.CFFFDSelect=E;var A=function(){function D(){this.offsets=Object.create(null)}return D.prototype={isTracking:function(k){return k in this.offsets},track:function(k,v){if(k in this.offsets)throw new g.FormatError(`Already tracking location of ${k}`);this.offsets[k]=v},offset:function(k){for(var v in this.offsets)this.offsets[v]+=k},setEntryLocation:function(k,v,y){if(!(k in this.offsets))throw new g.FormatError(`Not tracking location of ${k}`);for(var b=y.data,C=this.offsets[k],w=5,T=0,B=v.length;T<B;++T){var N=T*w+C,Q=N+1,z=N+2,j=N+3,$=N+4;if(b[N]!==29||b[Q]!==0||b[z]!==0||b[j]!==0||b[$]!==0)throw new g.FormatError("writing to an offset that is not empty");var M=v[T];b[N]=29,b[Q]=M>>24&255,b[z]=M>>16&255,b[j]=M>>8&255,b[$]=M&255}}},D}(),_=function(){function D(L){this.cff=L}return D.prototype={compile:function(){var k=this.cff,v={data:[],length:0,add:function(ae){this.data=this.data.concat(ae),this.length=this.data.length}},y=this.compileHeader(k.header);v.add(y);var b=this.compileNameIndex(k.names);if(v.add(b),k.isCIDFont&&k.topDict.hasName("FontMatrix")){var C=k.topDict.getByName("FontMatrix");k.topDict.removeByName("FontMatrix");for(var w=0,T=k.fdArray.length;w<T;w++){var B=k.fdArray[w],N=C.slice(0);B.hasName("FontMatrix")&&(N=g.Util.transform(N,B.getByName("FontMatrix"))),B.setByName("FontMatrix",N)}}k.topDict.setByName("charset",0);var Q=this.compileTopDicts([k.topDict],v.length,k.isCIDFont);v.add(Q.output);var z=Q.trackers[0],j=this.compileStringIndex(k.strings.strings);v.add(j);var $=this.compileIndex(k.globalSubrIndex);if(v.add($),k.encoding&&k.topDict.hasName("Encoding"))if(k.encoding.predefined)z.setEntryLocation("Encoding",[k.encoding.format],v);else{var M=this.compileEncoding(k.encoding);z.setEntryLocation("Encoding",[v.length],v),v.add(M)}var q=this.compileCharset(k.charset,k.charStrings.count,k.strings,k.isCIDFont);z.setEntryLocation("charset",[v.length],v),v.add(q);var K=this.compileCharStrings(k.charStrings);if(z.setEntryLocation("CharStrings",[v.length],v),v.add(K),k.isCIDFont){z.setEntryLocation("FDSelect",[v.length],v);var Z=this.compileFDSelect(k.fdSelect);v.add(Z),Q=this.compileTopDicts(k.fdArray,v.length,!0),z.setEntryLocation("FDArray",[v.length],v),v.add(Q.output);var te=Q.trackers;this.compilePrivateDicts(k.fdArray,te,v)}return this.compilePrivateDicts([k.topDict],[z],v),v.add([0]),v.data},encodeNumber:function(k){return parseFloat(k)===parseInt(k,10)&&!isNaN(k)?this.encodeInteger(k):this.encodeFloat(k)},encodeFloat:function(k){var v=k.toString(),y=/\.(\d*?)(?:9{5,20}|0{5,20})\d{0,2}(?:e(.+)|$)/.exec(v);if(y){var b=parseFloat("1e"+((y[2]?+y[2]:0)+y[1].length));v=(Math.round(k*b)/b).toString()}var C="",w,T;for(w=0,T=v.length;w<T;++w){var B=v[w];B==="e"?C+=v[++w]==="-"?"c":"b":B==="."?C+="a":B==="-"?C+="e":C+=B}C+=C.length&1?"f":"ff";var N=[30];for(w=0,T=C.length;w<T;w+=2)N.push(parseInt(C.substring(w,w+2),16));return N},encodeInteger:function(k){var v;return k>=-107&&k<=107?v=[k+139]:k>=108&&k<=1131?(k=k-108,v=[(k>>8)+247,k&255]):k>=-1131&&k<=-108?(k=-k-108,v=[(k>>8)+251,k&255]):k>=-32768&&k<=32767?v=[28,k>>8&255,k&255]:v=[29,k>>24&255,k>>16&255,k>>8&255,k&255],v},compileHeader:function(k){return[k.major,k.minor,k.hdrSize,k.offSize]},compileNameIndex:function(k){for(var v=new Y,y=0,b=k.length;y<b;++y){for(var C=k[y],w=Math.min(C.length,127),T=new Array(w),B=0;B<w;B++){var N=C[B];(N<"!"||N>"~"||N==="["||N==="]"||N==="("||N===")"||N==="{"||N==="}"||N==="<"||N===">"||N==="/"||N==="%")&&(N="_"),T[B]=N}T=T.join(""),T===""&&(T="Bad_Font_Name"),v.add((0,g.stringToBytes)(T))}return this.compileIndex(v)},compileTopDicts:function(k,v,y){for(var b=[],C=new Y,w=0,T=k.length;w<T;++w){var B=k[w];y&&(B.removeByName("CIDFontVersion"),B.removeByName("CIDFontRevision"),B.removeByName("CIDFontType"),B.removeByName("CIDCount"),B.removeByName("UIDBase"));var N=new A,Q=this.compileDict(B,N);b.push(N),C.add(Q),N.offset(v)}return C=this.compileIndex(C,b),{trackers:b,output:C}},compilePrivateDicts:function(k,v,y){for(var b=0,C=k.length;b<C;++b){var w=k[b],T=w.privateDict;if(!T||!w.hasName("Private"))throw new g.FormatError("There must be a private dictionary.");var B=new A,N=this.compileDict(T,B),Q=y.length;if(B.offset(Q),N.length||(Q=0),v[b].setEntryLocation("Private",[N.length,Q],y),y.add(N),T.subrsIndex&&T.hasName("Subrs")){var z=this.compileIndex(T.subrsIndex);B.setEntryLocation("Subrs",[N.length],y),y.add(z)}}},compileDict:function(k,v){for(var y=[],b=k.order,C=0;C<b.length;++C){var w=b[C];if(w in k.values){var T=k.values[w],B=k.types[w];if(Array.isArray(B)||(B=[B]),Array.isArray(T)||(T=[T]),T.length!==0){for(var N=0,Q=B.length;N<Q;++N){var z=B[N],j=T[N];switch(z){case"num":case"sid":y=y.concat(this.encodeNumber(j));break;case"offset":var $=k.keyToNameMap[w];v.isTracking($)||v.track($,y.length),y=y.concat([29,0,0,0,0]);break;case"array":case"delta":y=y.concat(this.encodeNumber(j));for(var M=1,q=T.length;M<q;++M)y=y.concat(this.encodeNumber(T[M]));break;default:throw new g.FormatError(`Unknown data type of ${z}`)}}y=y.concat(k.opcodes[w])}}}return y},compileStringIndex:function(k){for(var v=new Y,y=0,b=k.length;y<b;++y)v.add((0,g.stringToBytes)(k[y]));return this.compileIndex(v)},compileGlobalSubrIndex:function(){var k=this.cff.globalSubrIndex;this.out.writeByteArray(this.compileIndex(k))},compileCharStrings:function(k){for(var v=new Y,y=0;y<k.count;y++){var b=k.get(y);if(b.length===0){v.add(new Uint8Array([139,14]));continue}v.add(b)}return this.compileIndex(v)},compileCharset:function(k,v,y,b){let C;const w=v-1;if(b)C=new Uint8Array([2,0,0,w>>8&255,w&255]);else{const T=1+w*2;C=new Uint8Array(T),C[0]=0;let B=0;const N=k.charset.length;let Q=!1;for(let z=1;z<C.length;z+=2){let j=0;if(B<N){const $=k.charset[B++];j=y.getSID($),j===-1&&(j=0,Q||(Q=!0,(0,g.warn)(`Couldn't find ${$} in CFF strings`)))}C[z]=j>>8&255,C[z+1]=j&255}}return this.compileTypedArray(C)},compileEncoding:function(k){return this.compileTypedArray(k.raw)},compileFDSelect:function(k){const v=k.format;let y,b;switch(v){case 0:for(y=new Uint8Array(1+k.fdSelect.length),y[0]=v,b=0;b<k.fdSelect.length;b++)y[b+1]=k.fdSelect[b];break;case 3:const C=0;let w=k.fdSelect[0];const T=[v,0,0,C>>8&255,C&255,w];for(b=1;b<k.fdSelect.length;b++){const N=k.fdSelect[b];N!==w&&(T.push(b>>8&255,b&255,N),w=N)}const B=(T.length-3)/3;T[1]=B>>8&255,T[2]=B&255,T.push(b>>8&255,b&255),y=new Uint8Array(T);break}return this.compileTypedArray(y)},compileTypedArray:function(k){for(var v=[],y=0,b=k.length;y<b;++y)v[y]=k[y];return v},compileIndex:function(k,v){v=v||[];var y=k.objects,b=y.length;if(b===0)return[0,0,0];var C=[b>>8&255,b&255],w=1,T;for(T=0;T<b;++T)w+=y[T].length;var B;w<256?B=1:w<65536?B=2:w<16777216?B=3:B=4,C.push(B);var N=1;for(T=0;T<b+1;T++)B===1?C.push(N&255):B===2?C.push(N>>8&255,N&255):B===3?C.push(N>>16&255,N>>8&255,N&255):C.push(N>>>24&255,N>>16&255,N>>8&255,N&255),y[T]&&(N+=y[T].length);for(T=0;T<b;T++){v[T]&&v[T].offset(C.length);for(var Q=0,z=y[T].length;Q<z;Q++)C.push(y[T][Q])}return C}},D}();d.CFFCompiler=_},function(S,d,R){Object.defineProperty(d,"__esModule",{value:!0}),d.ExpertSubsetCharset=d.ExpertCharset=d.ISOAdobeCharset=void 0;const g=[".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"];d.ISOAdobeCharset=g;const O=[".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"];d.ExpertCharset=O;const J=[".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"];d.ExpertSubsetCharset=J},function(S,d,R){Object.defineProperty(d,"__esModule",{value:!0}),d.getEncoding=ie,d.ExpertEncoding=d.ZapfDingbatsEncoding=d.SymbolSetEncoding=d.MacRomanEncoding=d.StandardEncoding=d.WinAnsiEncoding=void 0;const g=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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"];d.ExpertEncoding=g;const O=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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","","","",""],J=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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"];d.MacRomanEncoding=J;const a=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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","","","",""];d.StandardEncoding=a;const se=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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"];d.WinAnsiEncoding=se;const H=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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",""];d.SymbolSetEncoding=H;const ee=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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",""];d.ZapfDingbatsEncoding=ee;function ie(m){switch(m){case"WinAnsiEncoding":return se;case"StandardEncoding":return a;case"MacRomanEncoding":return J;case"SymbolSetEncoding":return H;case"ZapfDingbatsEncoding":return ee;case"ExpertEncoding":return g;case"MacExpertEncoding":return O;default:return null}}},function(S,d,R){var g=R(8).getLookupTableFactory,O=g(function(a){a.A=65,a.AE=198,a.AEacute=508,a.AEmacron=482,a.AEsmall=63462,a.Aacute=193,a.Aacutesmall=63457,a.Abreve=258,a.Abreveacute=7854,a.Abrevecyrillic=1232,a.Abrevedotbelow=7862,a.Abrevegrave=7856,a.Abrevehookabove=7858,a.Abrevetilde=7860,a.Acaron=461,a.Acircle=9398,a.Acircumflex=194,a.Acircumflexacute=7844,a.Acircumflexdotbelow=7852,a.Acircumflexgrave=7846,a.Acircumflexhookabove=7848,a.Acircumflexsmall=63458,a.Acircumflextilde=7850,a.Acute=63177,a.Acutesmall=63412,a.Acyrillic=1040,a.Adblgrave=512,a.Adieresis=196,a.Adieresiscyrillic=1234,a.Adieresismacron=478,a.Adieresissmall=63460,a.Adotbelow=7840,a.Adotmacron=480,a.Agrave=192,a.Agravesmall=63456,a.Ahookabove=7842,a.Aiecyrillic=1236,a.Ainvertedbreve=514,a.Alpha=913,a.Alphatonos=902,a.Amacron=256,a.Amonospace=65313,a.Aogonek=260,a.Aring=197,a.Aringacute=506,a.Aringbelow=7680,a.Aringsmall=63461,a.Asmall=63329,a.Atilde=195,a.Atildesmall=63459,a.Aybarmenian=1329,a.B=66,a.Bcircle=9399,a.Bdotaccent=7682,a.Bdotbelow=7684,a.Becyrillic=1041,a.Benarmenian=1330,a.Beta=914,a.Bhook=385,a.Blinebelow=7686,a.Bmonospace=65314,a.Brevesmall=63220,a.Bsmall=63330,a.Btopbar=386,a.C=67,a.Caarmenian=1342,a.Cacute=262,a.Caron=63178,a.Caronsmall=63221,a.Ccaron=268,a.Ccedilla=199,a.Ccedillaacute=7688,a.Ccedillasmall=63463,a.Ccircle=9400,a.Ccircumflex=264,a.Cdot=266,a.Cdotaccent=266,a.Cedillasmall=63416,a.Chaarmenian=1353,a.Cheabkhasiancyrillic=1212,a.Checyrillic=1063,a.Chedescenderabkhasiancyrillic=1214,a.Chedescendercyrillic=1206,a.Chedieresiscyrillic=1268,a.Cheharmenian=1347,a.Chekhakassiancyrillic=1227,a.Cheverticalstrokecyrillic=1208,a.Chi=935,a.Chook=391,a.Circumflexsmall=63222,a.Cmonospace=65315,a.Coarmenian=1361,a.Csmall=63331,a.D=68,a.DZ=497,a.DZcaron=452,a.Daarmenian=1332,a.Dafrican=393,a.Dcaron=270,a.Dcedilla=7696,a.Dcircle=9401,a.Dcircumflexbelow=7698,a.Dcroat=272,a.Ddotaccent=7690,a.Ddotbelow=7692,a.Decyrillic=1044,a.Deicoptic=1006,a.Delta=8710,a.Deltagreek=916,a.Dhook=394,a.Dieresis=63179,a.DieresisAcute=63180,a.DieresisGrave=63181,a.Dieresissmall=63400,a.Digammagreek=988,a.Djecyrillic=1026,a.Dlinebelow=7694,a.Dmonospace=65316,a.Dotaccentsmall=63223,a.Dslash=272,a.Dsmall=63332,a.Dtopbar=395,a.Dz=498,a.Dzcaron=453,a.Dzeabkhasiancyrillic=1248,a.Dzecyrillic=1029,a.Dzhecyrillic=1039,a.E=69,a.Eacute=201,a.Eacutesmall=63465,a.Ebreve=276,a.Ecaron=282,a.Ecedillabreve=7708,a.Echarmenian=1333,a.Ecircle=9402,a.Ecircumflex=202,a.Ecircumflexacute=7870,a.Ecircumflexbelow=7704,a.Ecircumflexdotbelow=7878,a.Ecircumflexgrave=7872,a.Ecircumflexhookabove=7874,a.Ecircumflexsmall=63466,a.Ecircumflextilde=7876,a.Ecyrillic=1028,a.Edblgrave=516,a.Edieresis=203,a.Edieresissmall=63467,a.Edot=278,a.Edotaccent=278,a.Edotbelow=7864,a.Efcyrillic=1060,a.Egrave=200,a.Egravesmall=63464,a.Eharmenian=1335,a.Ehookabove=7866,a.Eightroman=8551,a.Einvertedbreve=518,a.Eiotifiedcyrillic=1124,a.Elcyrillic=1051,a.Elevenroman=8554,a.Emacron=274,a.Emacronacute=7702,a.Emacrongrave=7700,a.Emcyrillic=1052,a.Emonospace=65317,a.Encyrillic=1053,a.Endescendercyrillic=1186,a.Eng=330,a.Enghecyrillic=1188,a.Enhookcyrillic=1223,a.Eogonek=280,a.Eopen=400,a.Epsilon=917,a.Epsilontonos=904,a.Ercyrillic=1056,a.Ereversed=398,a.Ereversedcyrillic=1069,a.Escyrillic=1057,a.Esdescendercyrillic=1194,a.Esh=425,a.Esmall=63333,a.Eta=919,a.Etarmenian=1336,a.Etatonos=905,a.Eth=208,a.Ethsmall=63472,a.Etilde=7868,a.Etildebelow=7706,a.Euro=8364,a.Ezh=439,a.Ezhcaron=494,a.Ezhreversed=440,a.F=70,a.Fcircle=9403,a.Fdotaccent=7710,a.Feharmenian=1366,a.Feicoptic=996,a.Fhook=401,a.Fitacyrillic=1138,a.Fiveroman=8548,a.Fmonospace=65318,a.Fourroman=8547,a.Fsmall=63334,a.G=71,a.GBsquare=13191,a.Gacute=500,a.Gamma=915,a.Gammaafrican=404,a.Gangiacoptic=1002,a.Gbreve=286,a.Gcaron=486,a.Gcedilla=290,a.Gcircle=9404,a.Gcircumflex=284,a.Gcommaaccent=290,a.Gdot=288,a.Gdotaccent=288,a.Gecyrillic=1043,a.Ghadarmenian=1346,a.Ghemiddlehookcyrillic=1172,a.Ghestrokecyrillic=1170,a.Gheupturncyrillic=1168,a.Ghook=403,a.Gimarmenian=1331,a.Gjecyrillic=1027,a.Gmacron=7712,a.Gmonospace=65319,a.Grave=63182,a.Gravesmall=63328,a.Gsmall=63335,a.Gsmallhook=667,a.Gstroke=484,a.H=72,a.H18533=9679,a.H18543=9642,a.H18551=9643,a.H22073=9633,a.HPsquare=13259,a.Haabkhasiancyrillic=1192,a.Hadescendercyrillic=1202,a.Hardsigncyrillic=1066,a.Hbar=294,a.Hbrevebelow=7722,a.Hcedilla=7720,a.Hcircle=9405,a.Hcircumflex=292,a.Hdieresis=7718,a.Hdotaccent=7714,a.Hdotbelow=7716,a.Hmonospace=65320,a.Hoarmenian=1344,a.Horicoptic=1e3,a.Hsmall=63336,a.Hungarumlaut=63183,a.Hungarumlautsmall=63224,a.Hzsquare=13200,a.I=73,a.IAcyrillic=1071,a.IJ=306,a.IUcyrillic=1070,a.Iacute=205,a.Iacutesmall=63469,a.Ibreve=300,a.Icaron=463,a.Icircle=9406,a.Icircumflex=206,a.Icircumflexsmall=63470,a.Icyrillic=1030,a.Idblgrave=520,a.Idieresis=207,a.Idieresisacute=7726,a.Idieresiscyrillic=1252,a.Idieresissmall=63471,a.Idot=304,a.Idotaccent=304,a.Idotbelow=7882,a.Iebrevecyrillic=1238,a.Iecyrillic=1045,a.Ifraktur=8465,a.Igrave=204,a.Igravesmall=63468,a.Ihookabove=7880,a.Iicyrillic=1048,a.Iinvertedbreve=522,a.Iishortcyrillic=1049,a.Imacron=298,a.Imacroncyrillic=1250,a.Imonospace=65321,a.Iniarmenian=1339,a.Iocyrillic=1025,a.Iogonek=302,a.Iota=921,a.Iotaafrican=406,a.Iotadieresis=938,a.Iotatonos=906,a.Ismall=63337,a.Istroke=407,a.Itilde=296,a.Itildebelow=7724,a.Izhitsacyrillic=1140,a.Izhitsadblgravecyrillic=1142,a.J=74,a.Jaarmenian=1345,a.Jcircle=9407,a.Jcircumflex=308,a.Jecyrillic=1032,a.Jheharmenian=1355,a.Jmonospace=65322,a.Jsmall=63338,a.K=75,a.KBsquare=13189,a.KKsquare=13261,a.Kabashkircyrillic=1184,a.Kacute=7728,a.Kacyrillic=1050,a.Kadescendercyrillic=1178,a.Kahookcyrillic=1219,a.Kappa=922,a.Kastrokecyrillic=1182,a.Kaverticalstrokecyrillic=1180,a.Kcaron=488,a.Kcedilla=310,a.Kcircle=9408,a.Kcommaaccent=310,a.Kdotbelow=7730,a.Keharmenian=1364,a.Kenarmenian=1343,a.Khacyrillic=1061,a.Kheicoptic=998,a.Khook=408,a.Kjecyrillic=1036,a.Klinebelow=7732,a.Kmonospace=65323,a.Koppacyrillic=1152,a.Koppagreek=990,a.Ksicyrillic=1134,a.Ksmall=63339,a.L=76,a.LJ=455,a.LL=63167,a.Lacute=313,a.Lambda=923,a.Lcaron=317,a.Lcedilla=315,a.Lcircle=9409,a.Lcircumflexbelow=7740,a.Lcommaaccent=315,a.Ldot=319,a.Ldotaccent=319,a.Ldotbelow=7734,a.Ldotbelowmacron=7736,a.Liwnarmenian=1340,a.Lj=456,a.Ljecyrillic=1033,a.Llinebelow=7738,a.Lmonospace=65324,a.Lslash=321,a.Lslashsmall=63225,a.Lsmall=63340,a.M=77,a.MBsquare=13190,a.Macron=63184,a.Macronsmall=63407,a.Macute=7742,a.Mcircle=9410,a.Mdotaccent=7744,a.Mdotbelow=7746,a.Menarmenian=1348,a.Mmonospace=65325,a.Msmall=63341,a.Mturned=412,a.Mu=924,a.N=78,a.NJ=458,a.Nacute=323,a.Ncaron=327,a.Ncedilla=325,a.Ncircle=9411,a.Ncircumflexbelow=7754,a.Ncommaaccent=325,a.Ndotaccent=7748,a.Ndotbelow=7750,a.Nhookleft=413,a.Nineroman=8552,a.Nj=459,a.Njecyrillic=1034,a.Nlinebelow=7752,a.Nmonospace=65326,a.Nowarmenian=1350,a.Nsmall=63342,a.Ntilde=209,a.Ntildesmall=63473,a.Nu=925,a.O=79,a.OE=338,a.OEsmall=63226,a.Oacute=211,a.Oacutesmall=63475,a.Obarredcyrillic=1256,a.Obarreddieresiscyrillic=1258,a.Obreve=334,a.Ocaron=465,a.Ocenteredtilde=415,a.Ocircle=9412,a.Ocircumflex=212,a.Ocircumflexacute=7888,a.Ocircumflexdotbelow=7896,a.Ocircumflexgrave=7890,a.Ocircumflexhookabove=7892,a.Ocircumflexsmall=63476,a.Ocircumflextilde=7894,a.Ocyrillic=1054,a.Odblacute=336,a.Odblgrave=524,a.Odieresis=214,a.Odieresiscyrillic=1254,a.Odieresissmall=63478,a.Odotbelow=7884,a.Ogoneksmall=63227,a.Ograve=210,a.Ogravesmall=63474,a.Oharmenian=1365,a.Ohm=8486,a.Ohookabove=7886,a.Ohorn=416,a.Ohornacute=7898,a.Ohorndotbelow=7906,a.Ohorngrave=7900,a.Ohornhookabove=7902,a.Ohorntilde=7904,a.Ohungarumlaut=336,a.Oi=418,a.Oinvertedbreve=526,a.Omacron=332,a.Omacronacute=7762,a.Omacrongrave=7760,a.Omega=8486,a.Omegacyrillic=1120,a.Omegagreek=937,a.Omegaroundcyrillic=1146,a.Omegatitlocyrillic=1148,a.Omegatonos=911,a.Omicron=927,a.Omicrontonos=908,a.Omonospace=65327,a.Oneroman=8544,a.Oogonek=490,a.Oogonekmacron=492,a.Oopen=390,a.Oslash=216,a.Oslashacute=510,a.Oslashsmall=63480,a.Osmall=63343,a.Ostrokeacute=510,a.Otcyrillic=1150,a.Otilde=213,a.Otildeacute=7756,a.Otildedieresis=7758,a.Otildesmall=63477,a.P=80,a.Pacute=7764,a.Pcircle=9413,a.Pdotaccent=7766,a.Pecyrillic=1055,a.Peharmenian=1354,a.Pemiddlehookcyrillic=1190,a.Phi=934,a.Phook=420,a.Pi=928,a.Piwrarmenian=1363,a.Pmonospace=65328,a.Psi=936,a.Psicyrillic=1136,a.Psmall=63344,a.Q=81,a.Qcircle=9414,a.Qmonospace=65329,a.Qsmall=63345,a.R=82,a.Raarmenian=1356,a.Racute=340,a.Rcaron=344,a.Rcedilla=342,a.Rcircle=9415,a.Rcommaaccent=342,a.Rdblgrave=528,a.Rdotaccent=7768,a.Rdotbelow=7770,a.Rdotbelowmacron=7772,a.Reharmenian=1360,a.Rfraktur=8476,a.Rho=929,a.Ringsmall=63228,a.Rinvertedbreve=530,a.Rlinebelow=7774,a.Rmonospace=65330,a.Rsmall=63346,a.Rsmallinverted=641,a.Rsmallinvertedsuperior=694,a.S=83,a.SF010000=9484,a.SF020000=9492,a.SF030000=9488,a.SF040000=9496,a.SF050000=9532,a.SF060000=9516,a.SF070000=9524,a.SF080000=9500,a.SF090000=9508,a.SF100000=9472,a.SF110000=9474,a.SF190000=9569,a.SF200000=9570,a.SF210000=9558,a.SF220000=9557,a.SF230000=9571,a.SF240000=9553,a.SF250000=9559,a.SF260000=9565,a.SF270000=9564,a.SF280000=9563,a.SF360000=9566,a.SF370000=9567,a.SF380000=9562,a.SF390000=9556,a.SF400000=9577,a.SF410000=9574,a.SF420000=9568,a.SF430000=9552,a.SF440000=9580,a.SF450000=9575,a.SF460000=9576,a.SF470000=9572,a.SF480000=9573,a.SF490000=9561,a.SF500000=9560,a.SF510000=9554,a.SF520000=9555,a.SF530000=9579,a.SF540000=9578,a.Sacute=346,a.Sacutedotaccent=7780,a.Sampigreek=992,a.Scaron=352,a.Scarondotaccent=7782,a.Scaronsmall=63229,a.Scedilla=350,a.Schwa=399,a.Schwacyrillic=1240,a.Schwadieresiscyrillic=1242,a.Scircle=9416,a.Scircumflex=348,a.Scommaaccent=536,a.Sdotaccent=7776,a.Sdotbelow=7778,a.Sdotbelowdotaccent=7784,a.Seharmenian=1357,a.Sevenroman=8550,a.Shaarmenian=1351,a.Shacyrillic=1064,a.Shchacyrillic=1065,a.Sheicoptic=994,a.Shhacyrillic=1210,a.Shimacoptic=1004,a.Sigma=931,a.Sixroman=8549,a.Smonospace=65331,a.Softsigncyrillic=1068,a.Ssmall=63347,a.Stigmagreek=986,a.T=84,a.Tau=932,a.Tbar=358,a.Tcaron=356,a.Tcedilla=354,a.Tcircle=9417,a.Tcircumflexbelow=7792,a.Tcommaaccent=354,a.Tdotaccent=7786,a.Tdotbelow=7788,a.Tecyrillic=1058,a.Tedescendercyrillic=1196,a.Tenroman=8553,a.Tetsecyrillic=1204,a.Theta=920,a.Thook=428,a.Thorn=222,a.Thornsmall=63486,a.Threeroman=8546,a.Tildesmall=63230,a.Tiwnarmenian=1359,a.Tlinebelow=7790,a.Tmonospace=65332,a.Toarmenian=1337,a.Tonefive=444,a.Tonesix=388,a.Tonetwo=423,a.Tretroflexhook=430,a.Tsecyrillic=1062,a.Tshecyrillic=1035,a.Tsmall=63348,a.Twelveroman=8555,a.Tworoman=8545,a.U=85,a.Uacute=218,a.Uacutesmall=63482,a.Ubreve=364,a.Ucaron=467,a.Ucircle=9418,a.Ucircumflex=219,a.Ucircumflexbelow=7798,a.Ucircumflexsmall=63483,a.Ucyrillic=1059,a.Udblacute=368,a.Udblgrave=532,a.Udieresis=220,a.Udieresisacute=471,a.Udieresisbelow=7794,a.Udieresiscaron=473,a.Udieresiscyrillic=1264,a.Udieresisgrave=475,a.Udieresismacron=469,a.Udieresissmall=63484,a.Udotbelow=7908,a.Ugrave=217,a.Ugravesmall=63481,a.Uhookabove=7910,a.Uhorn=431,a.Uhornacute=7912,a.Uhorndotbelow=7920,a.Uhorngrave=7914,a.Uhornhookabove=7916,a.Uhorntilde=7918,a.Uhungarumlaut=368,a.Uhungarumlautcyrillic=1266,a.Uinvertedbreve=534,a.Ukcyrillic=1144,a.Umacron=362,a.Umacroncyrillic=1262,a.Umacrondieresis=7802,a.Umonospace=65333,a.Uogonek=370,a.Upsilon=933,a.Upsilon1=978,a.Upsilonacutehooksymbolgreek=979,a.Upsilonafrican=433,a.Upsilondieresis=939,a.Upsilondieresishooksymbolgreek=980,a.Upsilonhooksymbol=978,a.Upsilontonos=910,a.Uring=366,a.Ushortcyrillic=1038,a.Usmall=63349,a.Ustraightcyrillic=1198,a.Ustraightstrokecyrillic=1200,a.Utilde=360,a.Utildeacute=7800,a.Utildebelow=7796,a.V=86,a.Vcircle=9419,a.Vdotbelow=7806,a.Vecyrillic=1042,a.Vewarmenian=1358,a.Vhook=434,a.Vmonospace=65334,a.Voarmenian=1352,a.Vsmall=63350,a.Vtilde=7804,a.W=87,a.Wacute=7810,a.Wcircle=9420,a.Wcircumflex=372,a.Wdieresis=7812,a.Wdotaccent=7814,a.Wdotbelow=7816,a.Wgrave=7808,a.Wmonospace=65335,a.Wsmall=63351,a.X=88,a.Xcircle=9421,a.Xdieresis=7820,a.Xdotaccent=7818,a.Xeharmenian=1341,a.Xi=926,a.Xmonospace=65336,a.Xsmall=63352,a.Y=89,a.Yacute=221,a.Yacutesmall=63485,a.Yatcyrillic=1122,a.Ycircle=9422,a.Ycircumflex=374,a.Ydieresis=376,a.Ydieresissmall=63487,a.Ydotaccent=7822,a.Ydotbelow=7924,a.Yericyrillic=1067,a.Yerudieresiscyrillic=1272,a.Ygrave=7922,a.Yhook=435,a.Yhookabove=7926,a.Yiarmenian=1349,a.Yicyrillic=1031,a.Yiwnarmenian=1362,a.Ymonospace=65337,a.Ysmall=63353,a.Ytilde=7928,a.Yusbigcyrillic=1130,a.Yusbigiotifiedcyrillic=1132,a.Yuslittlecyrillic=1126,a.Yuslittleiotifiedcyrillic=1128,a.Z=90,a.Zaarmenian=1334,a.Zacute=377,a.Zcaron=381,a.Zcaronsmall=63231,a.Zcircle=9423,a.Zcircumflex=7824,a.Zdot=379,a.Zdotaccent=379,a.Zdotbelow=7826,a.Zecyrillic=1047,a.Zedescendercyrillic=1176,a.Zedieresiscyrillic=1246,a.Zeta=918,a.Zhearmenian=1338,a.Zhebrevecyrillic=1217,a.Zhecyrillic=1046,a.Zhedescendercyrillic=1174,a.Zhedieresiscyrillic=1244,a.Zlinebelow=7828,a.Zmonospace=65338,a.Zsmall=63354,a.Zstroke=437,a.a=97,a.aabengali=2438,a.aacute=225,a.aadeva=2310,a.aagujarati=2694,a.aagurmukhi=2566,a.aamatragurmukhi=2622,a.aarusquare=13059,a.aavowelsignbengali=2494,a.aavowelsigndeva=2366,a.aavowelsigngujarati=2750,a.abbreviationmarkarmenian=1375,a.abbreviationsigndeva=2416,a.abengali=2437,a.abopomofo=12570,a.abreve=259,a.abreveacute=7855,a.abrevecyrillic=1233,a.abrevedotbelow=7863,a.abrevegrave=7857,a.abrevehookabove=7859,a.abrevetilde=7861,a.acaron=462,a.acircle=9424,a.acircumflex=226,a.acircumflexacute=7845,a.acircumflexdotbelow=7853,a.acircumflexgrave=7847,a.acircumflexhookabove=7849,a.acircumflextilde=7851,a.acute=180,a.acutebelowcmb=791,a.acutecmb=769,a.acutecomb=769,a.acutedeva=2388,a.acutelowmod=719,a.acutetonecmb=833,a.acyrillic=1072,a.adblgrave=513,a.addakgurmukhi=2673,a.adeva=2309,a.adieresis=228,a.adieresiscyrillic=1235,a.adieresismacron=479,a.adotbelow=7841,a.adotmacron=481,a.ae=230,a.aeacute=509,a.aekorean=12624,a.aemacron=483,a.afii00208=8213,a.afii08941=8356,a.afii10017=1040,a.afii10018=1041,a.afii10019=1042,a.afii10020=1043,a.afii10021=1044,a.afii10022=1045,a.afii10023=1025,a.afii10024=1046,a.afii10025=1047,a.afii10026=1048,a.afii10027=1049,a.afii10028=1050,a.afii10029=1051,a.afii10030=1052,a.afii10031=1053,a.afii10032=1054,a.afii10033=1055,a.afii10034=1056,a.afii10035=1057,a.afii10036=1058,a.afii10037=1059,a.afii10038=1060,a.afii10039=1061,a.afii10040=1062,a.afii10041=1063,a.afii10042=1064,a.afii10043=1065,a.afii10044=1066,a.afii10045=1067,a.afii10046=1068,a.afii10047=1069,a.afii10048=1070,a.afii10049=1071,a.afii10050=1168,a.afii10051=1026,a.afii10052=1027,a.afii10053=1028,a.afii10054=1029,a.afii10055=1030,a.afii10056=1031,a.afii10057=1032,a.afii10058=1033,a.afii10059=1034,a.afii10060=1035,a.afii10061=1036,a.afii10062=1038,a.afii10063=63172,a.afii10064=63173,a.afii10065=1072,a.afii10066=1073,a.afii10067=1074,a.afii10068=1075,a.afii10069=1076,a.afii10070=1077,a.afii10071=1105,a.afii10072=1078,a.afii10073=1079,a.afii10074=1080,a.afii10075=1081,a.afii10076=1082,a.afii10077=1083,a.afii10078=1084,a.afii10079=1085,a.afii10080=1086,a.afii10081=1087,a.afii10082=1088,a.afii10083=1089,a.afii10084=1090,a.afii10085=1091,a.afii10086=1092,a.afii10087=1093,a.afii10088=1094,a.afii10089=1095,a.afii10090=1096,a.afii10091=1097,a.afii10092=1098,a.afii10093=1099,a.afii10094=1100,a.afii10095=1101,a.afii10096=1102,a.afii10097=1103,a.afii10098=1169,a.afii10099=1106,a.afii10100=1107,a.afii10101=1108,a.afii10102=1109,a.afii10103=1110,a.afii10104=1111,a.afii10105=1112,a.afii10106=1113,a.afii10107=1114,a.afii10108=1115,a.afii10109=1116,a.afii10110=1118,a.afii10145=1039,a.afii10146=1122,a.afii10147=1138,a.afii10148=1140,a.afii10192=63174,a.afii10193=1119,a.afii10194=1123,a.afii10195=1139,a.afii10196=1141,a.afii10831=63175,a.afii10832=63176,a.afii10846=1241,a.afii299=8206,a.afii300=8207,a.afii301=8205,a.afii57381=1642,a.afii57388=1548,a.afii57392=1632,a.afii57393=1633,a.afii57394=1634,a.afii57395=1635,a.afii57396=1636,a.afii57397=1637,a.afii57398=1638,a.afii57399=1639,a.afii57400=1640,a.afii57401=1641,a.afii57403=1563,a.afii57407=1567,a.afii57409=1569,a.afii57410=1570,a.afii57411=1571,a.afii57412=1572,a.afii57413=1573,a.afii57414=1574,a.afii57415=1575,a.afii57416=1576,a.afii57417=1577,a.afii57418=1578,a.afii57419=1579,a.afii57420=1580,a.afii57421=1581,a.afii57422=1582,a.afii57423=1583,a.afii57424=1584,a.afii57425=1585,a.afii57426=1586,a.afii57427=1587,a.afii57428=1588,a.afii57429=1589,a.afii57430=1590,a.afii57431=1591,a.afii57432=1592,a.afii57433=1593,a.afii57434=1594,a.afii57440=1600,a.afii57441=1601,a.afii57442=1602,a.afii57443=1603,a.afii57444=1604,a.afii57445=1605,a.afii57446=1606,a.afii57448=1608,a.afii57449=1609,a.afii57450=1610,a.afii57451=1611,a.afii57452=1612,a.afii57453=1613,a.afii57454=1614,a.afii57455=1615,a.afii57456=1616,a.afii57457=1617,a.afii57458=1618,a.afii57470=1607,a.afii57505=1700,a.afii57506=1662,a.afii57507=1670,a.afii57508=1688,a.afii57509=1711,a.afii57511=1657,a.afii57512=1672,a.afii57513=1681,a.afii57514=1722,a.afii57519=1746,a.afii57534=1749,a.afii57636=8362,a.afii57645=1470,a.afii57658=1475,a.afii57664=1488,a.afii57665=1489,a.afii57666=1490,a.afii57667=1491,a.afii57668=1492,a.afii57669=1493,a.afii57670=1494,a.afii57671=1495,a.afii57672=1496,a.afii57673=1497,a.afii57674=1498,a.afii57675=1499,a.afii57676=1500,a.afii57677=1501,a.afii57678=1502,a.afii57679=1503,a.afii57680=1504,a.afii57681=1505,a.afii57682=1506,a.afii57683=1507,a.afii57684=1508,a.afii57685=1509,a.afii57686=1510,a.afii57687=1511,a.afii57688=1512,a.afii57689=1513,a.afii57690=1514,a.afii57694=64298,a.afii57695=64299,a.afii57700=64331,a.afii57705=64287,a.afii57716=1520,a.afii57717=1521,a.afii57718=1522,a.afii57723=64309,a.afii57793=1460,a.afii57794=1461,a.afii57795=1462,a.afii57796=1467,a.afii57797=1464,a.afii57798=1463,a.afii57799=1456,a.afii57800=1458,a.afii57801=1457,a.afii57802=1459,a.afii57803=1474,a.afii57804=1473,a.afii57806=1465,a.afii57807=1468,a.afii57839=1469,a.afii57841=1471,a.afii57842=1472,a.afii57929=700,a.afii61248=8453,a.afii61289=8467,a.afii61352=8470,a.afii61573=8236,a.afii61574=8237,a.afii61575=8238,a.afii61664=8204,a.afii63167=1645,a.afii64937=701,a.agrave=224,a.agujarati=2693,a.agurmukhi=2565,a.ahiragana=12354,a.ahookabove=7843,a.aibengali=2448,a.aibopomofo=12574,a.aideva=2320,a.aiecyrillic=1237,a.aigujarati=2704,a.aigurmukhi=2576,a.aimatragurmukhi=2632,a.ainarabic=1593,a.ainfinalarabic=65226,a.aininitialarabic=65227,a.ainmedialarabic=65228,a.ainvertedbreve=515,a.aivowelsignbengali=2504,a.aivowelsigndeva=2376,a.aivowelsigngujarati=2760,a.akatakana=12450,a.akatakanahalfwidth=65393,a.akorean=12623,a.alef=1488,a.alefarabic=1575,a.alefdageshhebrew=64304,a.aleffinalarabic=65166,a.alefhamzaabovearabic=1571,a.alefhamzaabovefinalarabic=65156,a.alefhamzabelowarabic=1573,a.alefhamzabelowfinalarabic=65160,a.alefhebrew=1488,a.aleflamedhebrew=64335,a.alefmaddaabovearabic=1570,a.alefmaddaabovefinalarabic=65154,a.alefmaksuraarabic=1609,a.alefmaksurafinalarabic=65264,a.alefmaksurainitialarabic=65267,a.alefmaksuramedialarabic=65268,a.alefpatahhebrew=64302,a.alefqamatshebrew=64303,a.aleph=8501,a.allequal=8780,a.alpha=945,a.alphatonos=940,a.amacron=257,a.amonospace=65345,a.ampersand=38,a.ampersandmonospace=65286,a.ampersandsmall=63270,a.amsquare=13250,a.anbopomofo=12578,a.angbopomofo=12580,a.angbracketleft=12296,a.angbracketright=12297,a.angkhankhuthai=3674,a.angle=8736,a.anglebracketleft=12296,a.anglebracketleftvertical=65087,a.anglebracketright=12297,a.anglebracketrightvertical=65088,a.angleleft=9001,a.angleright=9002,a.angstrom=8491,a.anoteleia=903,a.anudattadeva=2386,a.anusvarabengali=2434,a.anusvaradeva=2306,a.anusvaragujarati=2690,a.aogonek=261,a.apaatosquare=13056,a.aparen=9372,a.apostrophearmenian=1370,a.apostrophemod=700,a.apple=63743,a.approaches=8784,a.approxequal=8776,a.approxequalorimage=8786,a.approximatelyequal=8773,a.araeaekorean=12686,a.araeakorean=12685,a.arc=8978,a.arighthalfring=7834,a.aring=229,a.aringacute=507,a.aringbelow=7681,a.arrowboth=8596,a.arrowdashdown=8675,a.arrowdashleft=8672,a.arrowdashright=8674,a.arrowdashup=8673,a.arrowdblboth=8660,a.arrowdbldown=8659,a.arrowdblleft=8656,a.arrowdblright=8658,a.arrowdblup=8657,a.arrowdown=8595,a.arrowdownleft=8601,a.arrowdownright=8600,a.arrowdownwhite=8681,a.arrowheaddownmod=709,a.arrowheadleftmod=706,a.arrowheadrightmod=707,a.arrowheadupmod=708,a.arrowhorizex=63719,a.arrowleft=8592,a.arrowleftdbl=8656,a.arrowleftdblstroke=8653,a.arrowleftoverright=8646,a.arrowleftwhite=8678,a.arrowright=8594,a.arrowrightdblstroke=8655,a.arrowrightheavy=10142,a.arrowrightoverleft=8644,a.arrowrightwhite=8680,a.arrowtableft=8676,a.arrowtabright=8677,a.arrowup=8593,a.arrowupdn=8597,a.arrowupdnbse=8616,a.arrowupdownbase=8616,a.arrowupleft=8598,a.arrowupleftofdown=8645,a.arrowupright=8599,a.arrowupwhite=8679,a.arrowvertex=63718,a.asciicircum=94,a.asciicircummonospace=65342,a.asciitilde=126,a.asciitildemonospace=65374,a.ascript=593,a.ascriptturned=594,a.asmallhiragana=12353,a.asmallkatakana=12449,a.asmallkatakanahalfwidth=65383,a.asterisk=42,a.asteriskaltonearabic=1645,a.asteriskarabic=1645,a.asteriskmath=8727,a.asteriskmonospace=65290,a.asterisksmall=65121,a.asterism=8258,a.asuperior=63209,a.asymptoticallyequal=8771,a.at=64,a.atilde=227,a.atmonospace=65312,a.atsmall=65131,a.aturned=592,a.aubengali=2452,a.aubopomofo=12576,a.audeva=2324,a.augujarati=2708,a.augurmukhi=2580,a.aulengthmarkbengali=2519,a.aumatragurmukhi=2636,a.auvowelsignbengali=2508,a.auvowelsigndeva=2380,a.auvowelsigngujarati=2764,a.avagrahadeva=2365,a.aybarmenian=1377,a.ayin=1506,a.ayinaltonehebrew=64288,a.ayinhebrew=1506,a.b=98,a.babengali=2476,a.backslash=92,a.backslashmonospace=65340,a.badeva=2348,a.bagujarati=2732,a.bagurmukhi=2604,a.bahiragana=12400,a.bahtthai=3647,a.bakatakana=12496,a.bar=124,a.barmonospace=65372,a.bbopomofo=12549,a.bcircle=9425,a.bdotaccent=7683,a.bdotbelow=7685,a.beamedsixteenthnotes=9836,a.because=8757,a.becyrillic=1073,a.beharabic=1576,a.behfinalarabic=65168,a.behinitialarabic=65169,a.behiragana=12409,a.behmedialarabic=65170,a.behmeeminitialarabic=64671,a.behmeemisolatedarabic=64520,a.behnoonfinalarabic=64621,a.bekatakana=12505,a.benarmenian=1378,a.bet=1489,a.beta=946,a.betasymbolgreek=976,a.betdagesh=64305,a.betdageshhebrew=64305,a.bethebrew=1489,a.betrafehebrew=64332,a.bhabengali=2477,a.bhadeva=2349,a.bhagujarati=2733,a.bhagurmukhi=2605,a.bhook=595,a.bihiragana=12403,a.bikatakana=12499,a.bilabialclick=664,a.bindigurmukhi=2562,a.birusquare=13105,a.blackcircle=9679,a.blackdiamond=9670,a.blackdownpointingtriangle=9660,a.blackleftpointingpointer=9668,a.blackleftpointingtriangle=9664,a.blacklenticularbracketleft=12304,a.blacklenticularbracketleftvertical=65083,a.blacklenticularbracketright=12305,a.blacklenticularbracketrightvertical=65084,a.blacklowerlefttriangle=9699,a.blacklowerrighttriangle=9698,a.blackrectangle=9644,a.blackrightpointingpointer=9658,a.blackrightpointingtriangle=9654,a.blacksmallsquare=9642,a.blacksmilingface=9787,a.blacksquare=9632,a.blackstar=9733,a.blackupperlefttriangle=9700,a.blackupperrighttriangle=9701,a.blackuppointingsmalltriangle=9652,a.blackuppointingtriangle=9650,a.blank=9251,a.blinebelow=7687,a.block=9608,a.bmonospace=65346,a.bobaimaithai=3610,a.bohiragana=12412,a.bokatakana=12508,a.bparen=9373,a.bqsquare=13251,a.braceex=63732,a.braceleft=123,a.braceleftbt=63731,a.braceleftmid=63730,a.braceleftmonospace=65371,a.braceleftsmall=65115,a.bracelefttp=63729,a.braceleftvertical=65079,a.braceright=125,a.bracerightbt=63742,a.bracerightmid=63741,a.bracerightmonospace=65373,a.bracerightsmall=65116,a.bracerighttp=63740,a.bracerightvertical=65080,a.bracketleft=91,a.bracketleftbt=63728,a.bracketleftex=63727,a.bracketleftmonospace=65339,a.bracketlefttp=63726,a.bracketright=93,a.bracketrightbt=63739,a.bracketrightex=63738,a.bracketrightmonospace=65341,a.bracketrighttp=63737,a.breve=728,a.brevebelowcmb=814,a.brevecmb=774,a.breveinvertedbelowcmb=815,a.breveinvertedcmb=785,a.breveinverteddoublecmb=865,a.bridgebelowcmb=810,a.bridgeinvertedbelowcmb=826,a.brokenbar=166,a.bstroke=384,a.bsuperior=63210,a.btopbar=387,a.buhiragana=12406,a.bukatakana=12502,a.bullet=8226,a.bulletinverse=9688,a.bulletoperator=8729,a.bullseye=9678,a.c=99,a.caarmenian=1390,a.cabengali=2458,a.cacute=263,a.cadeva=2330,a.cagujarati=2714,a.cagurmukhi=2586,a.calsquare=13192,a.candrabindubengali=2433,a.candrabinducmb=784,a.candrabindudeva=2305,a.candrabindugujarati=2689,a.capslock=8682,a.careof=8453,a.caron=711,a.caronbelowcmb=812,a.caroncmb=780,a.carriagereturn=8629,a.cbopomofo=12568,a.ccaron=269,a.ccedilla=231,a.ccedillaacute=7689,a.ccircle=9426,a.ccircumflex=265,a.ccurl=597,a.cdot=267,a.cdotaccent=267,a.cdsquare=13253,a.cedilla=184,a.cedillacmb=807,a.cent=162,a.centigrade=8451,a.centinferior=63199,a.centmonospace=65504,a.centoldstyle=63394,a.centsuperior=63200,a.chaarmenian=1401,a.chabengali=2459,a.chadeva=2331,a.chagujarati=2715,a.chagurmukhi=2587,a.chbopomofo=12564,a.cheabkhasiancyrillic=1213,a.checkmark=10003,a.checyrillic=1095,a.chedescenderabkhasiancyrillic=1215,a.chedescendercyrillic=1207,a.chedieresiscyrillic=1269,a.cheharmenian=1395,a.chekhakassiancyrillic=1228,a.cheverticalstrokecyrillic=1209,a.chi=967,a.chieuchacirclekorean=12919,a.chieuchaparenkorean=12823,a.chieuchcirclekorean=12905,a.chieuchkorean=12618,a.chieuchparenkorean=12809,a.chochangthai=3594,a.chochanthai=3592,a.chochingthai=3593,a.chochoethai=3596,a.chook=392,a.cieucacirclekorean=12918,a.cieucaparenkorean=12822,a.cieuccirclekorean=12904,a.cieuckorean=12616,a.cieucparenkorean=12808,a.cieucuparenkorean=12828,a.circle=9675,a.circlecopyrt=169,a.circlemultiply=8855,a.circleot=8857,a.circleplus=8853,a.circlepostalmark=12342,a.circlewithlefthalfblack=9680,a.circlewithrighthalfblack=9681,a.circumflex=710,a.circumflexbelowcmb=813,a.circumflexcmb=770,a.clear=8999,a.clickalveolar=450,a.clickdental=448,a.clicklateral=449,a.clickretroflex=451,a.club=9827,a.clubsuitblack=9827,a.clubsuitwhite=9831,a.cmcubedsquare=13220,a.cmonospace=65347,a.cmsquaredsquare=13216,a.coarmenian=1409,a.colon=58,a.colonmonetary=8353,a.colonmonospace=65306,a.colonsign=8353,a.colonsmall=65109,a.colontriangularhalfmod=721,a.colontriangularmod=720,a.comma=44,a.commaabovecmb=787,a.commaaboverightcmb=789,a.commaaccent=63171,a.commaarabic=1548,a.commaarmenian=1373,a.commainferior=63201,a.commamonospace=65292,a.commareversedabovecmb=788,a.commareversedmod=701,a.commasmall=65104,a.commasuperior=63202,a.commaturnedabovecmb=786,a.commaturnedmod=699,a.compass=9788,a.congruent=8773,a.contourintegral=8750,a.control=8963,a.controlACK=6,a.controlBEL=7,a.controlBS=8,a.controlCAN=24,a.controlCR=13,a.controlDC1=17,a.controlDC2=18,a.controlDC3=19,a.controlDC4=20,a.controlDEL=127,a.controlDLE=16,a.controlEM=25,a.controlENQ=5,a.controlEOT=4,a.controlESC=27,a.controlETB=23,a.controlETX=3,a.controlFF=12,a.controlFS=28,a.controlGS=29,a.controlHT=9,a.controlLF=10,a.controlNAK=21,a.controlNULL=0,a.controlRS=30,a.controlSI=15,a.controlSO=14,a.controlSOT=2,a.controlSTX=1,a.controlSUB=26,a.controlSYN=22,a.controlUS=31,a.controlVT=11,a.copyright=169,a.copyrightsans=63721,a.copyrightserif=63193,a.cornerbracketleft=12300,a.cornerbracketlefthalfwidth=65378,a.cornerbracketleftvertical=65089,a.cornerbracketright=12301,a.cornerbracketrighthalfwidth=65379,a.cornerbracketrightvertical=65090,a.corporationsquare=13183,a.cosquare=13255,a.coverkgsquare=13254,a.cparen=9374,a.cruzeiro=8354,a.cstretched=663,a.curlyand=8911,a.curlyor=8910,a.currency=164,a.cyrBreve=63185,a.cyrFlex=63186,a.cyrbreve=63188,a.cyrflex=63189,a.d=100,a.daarmenian=1380,a.dabengali=2470,a.dadarabic=1590,a.dadeva=2342,a.dadfinalarabic=65214,a.dadinitialarabic=65215,a.dadmedialarabic=65216,a.dagesh=1468,a.dageshhebrew=1468,a.dagger=8224,a.daggerdbl=8225,a.dagujarati=2726,a.dagurmukhi=2598,a.dahiragana=12384,a.dakatakana=12480,a.dalarabic=1583,a.dalet=1491,a.daletdagesh=64307,a.daletdageshhebrew=64307,a.dalethebrew=1491,a.dalfinalarabic=65194,a.dammaarabic=1615,a.dammalowarabic=1615,a.dammatanaltonearabic=1612,a.dammatanarabic=1612,a.danda=2404,a.dargahebrew=1447,a.dargalefthebrew=1447,a.dasiapneumatacyrilliccmb=1157,a.dblGrave=63187,a.dblanglebracketleft=12298,a.dblanglebracketleftvertical=65085,a.dblanglebracketright=12299,a.dblanglebracketrightvertical=65086,a.dblarchinvertedbelowcmb=811,a.dblarrowleft=8660,a.dblarrowright=8658,a.dbldanda=2405,a.dblgrave=63190,a.dblgravecmb=783,a.dblintegral=8748,a.dbllowline=8215,a.dbllowlinecmb=819,a.dbloverlinecmb=831,a.dblprimemod=698,a.dblverticalbar=8214,a.dblverticallineabovecmb=782,a.dbopomofo=12553,a.dbsquare=13256,a.dcaron=271,a.dcedilla=7697,a.dcircle=9427,a.dcircumflexbelow=7699,a.dcroat=273,a.ddabengali=2465,a.ddadeva=2337,a.ddagujarati=2721,a.ddagurmukhi=2593,a.ddalarabic=1672,a.ddalfinalarabic=64393,a.dddhadeva=2396,a.ddhabengali=2466,a.ddhadeva=2338,a.ddhagujarati=2722,a.ddhagurmukhi=2594,a.ddotaccent=7691,a.ddotbelow=7693,a.decimalseparatorarabic=1643,a.decimalseparatorpersian=1643,a.decyrillic=1076,a.degree=176,a.dehihebrew=1453,a.dehiragana=12391,a.deicoptic=1007,a.dekatakana=12487,a.deleteleft=9003,a.deleteright=8998,a.delta=948,a.deltaturned=397,a.denominatorminusonenumeratorbengali=2552,a.dezh=676,a.dhabengali=2471,a.dhadeva=2343,a.dhagujarati=2727,a.dhagurmukhi=2599,a.dhook=599,a.dialytikatonos=901,a.dialytikatonoscmb=836,a.diamond=9830,a.diamondsuitwhite=9826,a.dieresis=168,a.dieresisacute=63191,a.dieresisbelowcmb=804,a.dieresiscmb=776,a.dieresisgrave=63192,a.dieresistonos=901,a.dihiragana=12386,a.dikatakana=12482,a.dittomark=12291,a.divide=247,a.divides=8739,a.divisionslash=8725,a.djecyrillic=1106,a.dkshade=9619,a.dlinebelow=7695,a.dlsquare=13207,a.dmacron=273,a.dmonospace=65348,a.dnblock=9604,a.dochadathai=3598,a.dodekthai=3604,a.dohiragana=12393,a.dokatakana=12489,a.dollar=36,a.dollarinferior=63203,a.dollarmonospace=65284,a.dollaroldstyle=63268,a.dollarsmall=65129,a.dollarsuperior=63204,a.dong=8363,a.dorusquare=13094,a.dotaccent=729,a.dotaccentcmb=775,a.dotbelowcmb=803,a.dotbelowcomb=803,a.dotkatakana=12539,a.dotlessi=305,a.dotlessj=63166,a.dotlessjstrokehook=644,a.dotmath=8901,a.dottedcircle=9676,a.doubleyodpatah=64287,a.doubleyodpatahhebrew=64287,a.downtackbelowcmb=798,a.downtackmod=725,a.dparen=9375,a.dsuperior=63211,a.dtail=598,a.dtopbar=396,a.duhiragana=12389,a.dukatakana=12485,a.dz=499,a.dzaltone=675,a.dzcaron=454,a.dzcurl=677,a.dzeabkhasiancyrillic=1249,a.dzecyrillic=1109,a.dzhecyrillic=1119,a.e=101,a.eacute=233,a.earth=9793,a.ebengali=2447,a.ebopomofo=12572,a.ebreve=277,a.ecandradeva=2317,a.ecandragujarati=2701,a.ecandravowelsigndeva=2373,a.ecandravowelsigngujarati=2757,a.ecaron=283,a.ecedillabreve=7709,a.echarmenian=1381,a.echyiwnarmenian=1415,a.ecircle=9428,a.ecircumflex=234,a.ecircumflexacute=7871,a.ecircumflexbelow=7705,a.ecircumflexdotbelow=7879,a.ecircumflexgrave=7873,a.ecircumflexhookabove=7875,a.ecircumflextilde=7877,a.ecyrillic=1108,a.edblgrave=517,a.edeva=2319,a.edieresis=235,a.edot=279,a.edotaccent=279,a.edotbelow=7865,a.eegurmukhi=2575,a.eematragurmukhi=2631,a.efcyrillic=1092,a.egrave=232,a.egujarati=2703,a.eharmenian=1383,a.ehbopomofo=12573,a.ehiragana=12360,a.ehookabove=7867,a.eibopomofo=12575,a.eight=56,a.eightarabic=1640,a.eightbengali=2542,a.eightcircle=9319,a.eightcircleinversesansserif=10129,a.eightdeva=2414,a.eighteencircle=9329,a.eighteenparen=9349,a.eighteenperiod=9369,a.eightgujarati=2798,a.eightgurmukhi=2670,a.eighthackarabic=1640,a.eighthangzhou=12328,a.eighthnotebeamed=9835,a.eightideographicparen=12839,a.eightinferior=8328,a.eightmonospace=65304,a.eightoldstyle=63288,a.eightparen=9339,a.eightperiod=9359,a.eightpersian=1784,a.eightroman=8567,a.eightsuperior=8312,a.eightthai=3672,a.einvertedbreve=519,a.eiotifiedcyrillic=1125,a.ekatakana=12456,a.ekatakanahalfwidth=65396,a.ekonkargurmukhi=2676,a.ekorean=12628,a.elcyrillic=1083,a.element=8712,a.elevencircle=9322,a.elevenparen=9342,a.elevenperiod=9362,a.elevenroman=8570,a.ellipsis=8230,a.ellipsisvertical=8942,a.emacron=275,a.emacronacute=7703,a.emacrongrave=7701,a.emcyrillic=1084,a.emdash=8212,a.emdashvertical=65073,a.emonospace=65349,a.emphasismarkarmenian=1371,a.emptyset=8709,a.enbopomofo=12579,a.encyrillic=1085,a.endash=8211,a.endashvertical=65074,a.endescendercyrillic=1187,a.eng=331,a.engbopomofo=12581,a.enghecyrillic=1189,a.enhookcyrillic=1224,a.enspace=8194,a.eogonek=281,a.eokorean=12627,a.eopen=603,a.eopenclosed=666,a.eopenreversed=604,a.eopenreversedclosed=606,a.eopenreversedhook=605,a.eparen=9376,a.epsilon=949,a.epsilontonos=941,a.equal=61,a.equalmonospace=65309,a.equalsmall=65126,a.equalsuperior=8316,a.equivalence=8801,a.erbopomofo=12582,a.ercyrillic=1088,a.ereversed=600,a.ereversedcyrillic=1101,a.escyrillic=1089,a.esdescendercyrillic=1195,a.esh=643,a.eshcurl=646,a.eshortdeva=2318,a.eshortvowelsigndeva=2374,a.eshreversedloop=426,a.eshsquatreversed=645,a.esmallhiragana=12359,a.esmallkatakana=12455,a.esmallkatakanahalfwidth=65386,a.estimated=8494,a.esuperior=63212,a.eta=951,a.etarmenian=1384,a.etatonos=942,a.eth=240,a.etilde=7869,a.etildebelow=7707,a.etnahtafoukhhebrew=1425,a.etnahtafoukhlefthebrew=1425,a.etnahtahebrew=1425,a.etnahtalefthebrew=1425,a.eturned=477,a.eukorean=12641,a.euro=8364,a.evowelsignbengali=2503,a.evowelsigndeva=2375,a.evowelsigngujarati=2759,a.exclam=33,a.exclamarmenian=1372,a.exclamdbl=8252,a.exclamdown=161,a.exclamdownsmall=63393,a.exclammonospace=65281,a.exclamsmall=63265,a.existential=8707,a.ezh=658,a.ezhcaron=495,a.ezhcurl=659,a.ezhreversed=441,a.ezhtail=442,a.f=102,a.fadeva=2398,a.fagurmukhi=2654,a.fahrenheit=8457,a.fathaarabic=1614,a.fathalowarabic=1614,a.fathatanarabic=1611,a.fbopomofo=12552,a.fcircle=9429,a.fdotaccent=7711,a.feharabic=1601,a.feharmenian=1414,a.fehfinalarabic=65234,a.fehinitialarabic=65235,a.fehmedialarabic=65236,a.feicoptic=997,a.female=9792,a.ff=64256,a.f_f=64256,a.ffi=64259,a.ffl=64260,a.fi=64257,a.fifteencircle=9326,a.fifteenparen=9346,a.fifteenperiod=9366,a.figuredash=8210,a.filledbox=9632,a.filledrect=9644,a.finalkaf=1498,a.finalkafdagesh=64314,a.finalkafdageshhebrew=64314,a.finalkafhebrew=1498,a.finalmem=1501,a.finalmemhebrew=1501,a.finalnun=1503,a.finalnunhebrew=1503,a.finalpe=1507,a.finalpehebrew=1507,a.finaltsadi=1509,a.finaltsadihebrew=1509,a.firsttonechinese=713,a.fisheye=9673,a.fitacyrillic=1139,a.five=53,a.fivearabic=1637,a.fivebengali=2539,a.fivecircle=9316,a.fivecircleinversesansserif=10126,a.fivedeva=2411,a.fiveeighths=8541,a.fivegujarati=2795,a.fivegurmukhi=2667,a.fivehackarabic=1637,a.fivehangzhou=12325,a.fiveideographicparen=12836,a.fiveinferior=8325,a.fivemonospace=65301,a.fiveoldstyle=63285,a.fiveparen=9336,a.fiveperiod=9356,a.fivepersian=1781,a.fiveroman=8564,a.fivesuperior=8309,a.fivethai=3669,a.fl=64258,a.florin=402,a.fmonospace=65350,a.fmsquare=13209,a.fofanthai=3615,a.fofathai=3613,a.fongmanthai=3663,a.forall=8704,a.four=52,a.fourarabic=1636,a.fourbengali=2538,a.fourcircle=9315,a.fourcircleinversesansserif=10125,a.fourdeva=2410,a.fourgujarati=2794,a.fourgurmukhi=2666,a.fourhackarabic=1636,a.fourhangzhou=12324,a.fourideographicparen=12835,a.fourinferior=8324,a.fourmonospace=65300,a.fournumeratorbengali=2551,a.fouroldstyle=63284,a.fourparen=9335,a.fourperiod=9355,a.fourpersian=1780,a.fourroman=8563,a.foursuperior=8308,a.fourteencircle=9325,a.fourteenparen=9345,a.fourteenperiod=9365,a.fourthai=3668,a.fourthtonechinese=715,a.fparen=9377,a.fraction=8260,a.franc=8355,a.g=103,a.gabengali=2455,a.gacute=501,a.gadeva=2327,a.gafarabic=1711,a.gaffinalarabic=64403,a.gafinitialarabic=64404,a.gafmedialarabic=64405,a.gagujarati=2711,a.gagurmukhi=2583,a.gahiragana=12364,a.gakatakana=12460,a.gamma=947,a.gammalatinsmall=611,a.gammasuperior=736,a.gangiacoptic=1003,a.gbopomofo=12557,a.gbreve=287,a.gcaron=487,a.gcedilla=291,a.gcircle=9430,a.gcircumflex=285,a.gcommaaccent=291,a.gdot=289,a.gdotaccent=289,a.gecyrillic=1075,a.gehiragana=12370,a.gekatakana=12466,a.geometricallyequal=8785,a.gereshaccenthebrew=1436,a.gereshhebrew=1523,a.gereshmuqdamhebrew=1437,a.germandbls=223,a.gershayimaccenthebrew=1438,a.gershayimhebrew=1524,a.getamark=12307,a.ghabengali=2456,a.ghadarmenian=1394,a.ghadeva=2328,a.ghagujarati=2712,a.ghagurmukhi=2584,a.ghainarabic=1594,a.ghainfinalarabic=65230,a.ghaininitialarabic=65231,a.ghainmedialarabic=65232,a.ghemiddlehookcyrillic=1173,a.ghestrokecyrillic=1171,a.gheupturncyrillic=1169,a.ghhadeva=2394,a.ghhagurmukhi=2650,a.ghook=608,a.ghzsquare=13203,a.gihiragana=12366,a.gikatakana=12462,a.gimarmenian=1379,a.gimel=1490,a.gimeldagesh=64306,a.gimeldageshhebrew=64306,a.gimelhebrew=1490,a.gjecyrillic=1107,a.glottalinvertedstroke=446,a.glottalstop=660,a.glottalstopinverted=662,a.glottalstopmod=704,a.glottalstopreversed=661,a.glottalstopreversedmod=705,a.glottalstopreversedsuperior=740,a.glottalstopstroke=673,a.glottalstopstrokereversed=674,a.gmacron=7713,a.gmonospace=65351,a.gohiragana=12372,a.gokatakana=12468,a.gparen=9378,a.gpasquare=13228,a.gradient=8711,a.grave=96,a.gravebelowcmb=790,a.gravecmb=768,a.gravecomb=768,a.gravedeva=2387,a.gravelowmod=718,a.gravemonospace=65344,a.gravetonecmb=832,a.greater=62,a.greaterequal=8805,a.greaterequalorless=8923,a.greatermonospace=65310,a.greaterorequivalent=8819,a.greaterorless=8823,a.greateroverequal=8807,a.greatersmall=65125,a.gscript=609,a.gstroke=485,a.guhiragana=12368,a.guillemotleft=171,a.guillemotright=187,a.guilsinglleft=8249,a.guilsinglright=8250,a.gukatakana=12464,a.guramusquare=13080,a.gysquare=13257,a.h=104,a.haabkhasiancyrillic=1193,a.haaltonearabic=1729,a.habengali=2489,a.hadescendercyrillic=1203,a.hadeva=2361,a.hagujarati=2745,a.hagurmukhi=2617,a.haharabic=1581,a.hahfinalarabic=65186,a.hahinitialarabic=65187,a.hahiragana=12399,a.hahmedialarabic=65188,a.haitusquare=13098,a.hakatakana=12495,a.hakatakanahalfwidth=65418,a.halantgurmukhi=2637,a.hamzaarabic=1569,a.hamzalowarabic=1569,a.hangulfiller=12644,a.hardsigncyrillic=1098,a.harpoonleftbarbup=8636,a.harpoonrightbarbup=8640,a.hasquare=13258,a.hatafpatah=1458,a.hatafpatah16=1458,a.hatafpatah23=1458,a.hatafpatah2f=1458,a.hatafpatahhebrew=1458,a.hatafpatahnarrowhebrew=1458,a.hatafpatahquarterhebrew=1458,a.hatafpatahwidehebrew=1458,a.hatafqamats=1459,a.hatafqamats1b=1459,a.hatafqamats28=1459,a.hatafqamats34=1459,a.hatafqamatshebrew=1459,a.hatafqamatsnarrowhebrew=1459,a.hatafqamatsquarterhebrew=1459,a.hatafqamatswidehebrew=1459,a.hatafsegol=1457,a.hatafsegol17=1457,a.hatafsegol24=1457,a.hatafsegol30=1457,a.hatafsegolhebrew=1457,a.hatafsegolnarrowhebrew=1457,a.hatafsegolquarterhebrew=1457,a.hatafsegolwidehebrew=1457,a.hbar=295,a.hbopomofo=12559,a.hbrevebelow=7723,a.hcedilla=7721,a.hcircle=9431,a.hcircumflex=293,a.hdieresis=7719,a.hdotaccent=7715,a.hdotbelow=7717,a.he=1492,a.heart=9829,a.heartsuitblack=9829,a.heartsuitwhite=9825,a.hedagesh=64308,a.hedageshhebrew=64308,a.hehaltonearabic=1729,a.heharabic=1607,a.hehebrew=1492,a.hehfinalaltonearabic=64423,a.hehfinalalttwoarabic=65258,a.hehfinalarabic=65258,a.hehhamzaabovefinalarabic=64421,a.hehhamzaaboveisolatedarabic=64420,a.hehinitialaltonearabic=64424,a.hehinitialarabic=65259,a.hehiragana=12408,a.hehmedialaltonearabic=64425,a.hehmedialarabic=65260,a.heiseierasquare=13179,a.hekatakana=12504,a.hekatakanahalfwidth=65421,a.hekutaarusquare=13110,a.henghook=615,a.herutusquare=13113,a.het=1495,a.hethebrew=1495,a.hhook=614,a.hhooksuperior=689,a.hieuhacirclekorean=12923,a.hieuhaparenkorean=12827,a.hieuhcirclekorean=12909,a.hieuhkorean=12622,a.hieuhparenkorean=12813,a.hihiragana=12402,a.hikatakana=12498,a.hikatakanahalfwidth=65419,a.hiriq=1460,a.hiriq14=1460,a.hiriq21=1460,a.hiriq2d=1460,a.hiriqhebrew=1460,a.hiriqnarrowhebrew=1460,a.hiriqquarterhebrew=1460,a.hiriqwidehebrew=1460,a.hlinebelow=7830,a.hmonospace=65352,a.hoarmenian=1392,a.hohipthai=3627,a.hohiragana=12411,a.hokatakana=12507,a.hokatakanahalfwidth=65422,a.holam=1465,a.holam19=1465,a.holam26=1465,a.holam32=1465,a.holamhebrew=1465,a.holamnarrowhebrew=1465,a.holamquarterhebrew=1465,a.holamwidehebrew=1465,a.honokhukthai=3630,a.hookabovecomb=777,a.hookcmb=777,a.hookpalatalizedbelowcmb=801,a.hookretroflexbelowcmb=802,a.hoonsquare=13122,a.horicoptic=1001,a.horizontalbar=8213,a.horncmb=795,a.hotsprings=9832,a.house=8962,a.hparen=9379,a.hsuperior=688,a.hturned=613,a.huhiragana=12405,a.huiitosquare=13107,a.hukatakana=12501,a.hukatakanahalfwidth=65420,a.hungarumlaut=733,a.hungarumlautcmb=779,a.hv=405,a.hyphen=45,a.hypheninferior=63205,a.hyphenmonospace=65293,a.hyphensmall=65123,a.hyphensuperior=63206,a.hyphentwo=8208,a.i=105,a.iacute=237,a.iacyrillic=1103,a.ibengali=2439,a.ibopomofo=12583,a.ibreve=301,a.icaron=464,a.icircle=9432,a.icircumflex=238,a.icyrillic=1110,a.idblgrave=521,a.ideographearthcircle=12943,a.ideographfirecircle=12939,a.ideographicallianceparen=12863,a.ideographiccallparen=12858,a.ideographiccentrecircle=12965,a.ideographicclose=12294,a.ideographiccomma=12289,a.ideographiccommaleft=65380,a.ideographiccongratulationparen=12855,a.ideographiccorrectcircle=12963,a.ideographicearthparen=12847,a.ideographicenterpriseparen=12861,a.ideographicexcellentcircle=12957,a.ideographicfestivalparen=12864,a.ideographicfinancialcircle=12950,a.ideographicfinancialparen=12854,a.ideographicfireparen=12843,a.ideographichaveparen=12850,a.ideographichighcircle=12964,a.ideographiciterationmark=12293,a.ideographiclaborcircle=12952,a.ideographiclaborparen=12856,a.ideographicleftcircle=12967,a.ideographiclowcircle=12966,a.ideographicmedicinecircle=12969,a.ideographicmetalparen=12846,a.ideographicmoonparen=12842,a.ideographicnameparen=12852,a.ideographicperiod=12290,a.ideographicprintcircle=12958,a.ideographicreachparen=12867,a.ideographicrepresentparen=12857,a.ideographicresourceparen=12862,a.ideographicrightcircle=12968,a.ideographicsecretcircle=12953,a.ideographicselfparen=12866,a.ideographicsocietyparen=12851,a.ideographicspace=12288,a.ideographicspecialparen=12853,a.ideographicstockparen=12849,a.ideographicstudyparen=12859,a.ideographicsunparen=12848,a.ideographicsuperviseparen=12860,a.ideographicwaterparen=12844,a.ideographicwoodparen=12845,a.ideographiczero=12295,a.ideographmetalcircle=12942,a.ideographmooncircle=12938,a.ideographnamecircle=12948,a.ideographsuncircle=12944,a.ideographwatercircle=12940,a.ideographwoodcircle=12941,a.ideva=2311,a.idieresis=239,a.idieresisacute=7727,a.idieresiscyrillic=1253,a.idotbelow=7883,a.iebrevecyrillic=1239,a.iecyrillic=1077,a.ieungacirclekorean=12917,a.ieungaparenkorean=12821,a.ieungcirclekorean=12903,a.ieungkorean=12615,a.ieungparenkorean=12807,a.igrave=236,a.igujarati=2695,a.igurmukhi=2567,a.ihiragana=12356,a.ihookabove=7881,a.iibengali=2440,a.iicyrillic=1080,a.iideva=2312,a.iigujarati=2696,a.iigurmukhi=2568,a.iimatragurmukhi=2624,a.iinvertedbreve=523,a.iishortcyrillic=1081,a.iivowelsignbengali=2496,a.iivowelsigndeva=2368,a.iivowelsigngujarati=2752,a.ij=307,a.ikatakana=12452,a.ikatakanahalfwidth=65394,a.ikorean=12643,a.ilde=732,a.iluyhebrew=1452,a.imacron=299,a.imacroncyrillic=1251,a.imageorapproximatelyequal=8787,a.imatragurmukhi=2623,a.imonospace=65353,a.increment=8710,a.infinity=8734,a.iniarmenian=1387,a.integral=8747,a.integralbottom=8993,a.integralbt=8993,a.integralex=63733,a.integraltop=8992,a.integraltp=8992,a.intersection=8745,a.intisquare=13061,a.invbullet=9688,a.invcircle=9689,a.invsmileface=9787,a.iocyrillic=1105,a.iogonek=303,a.iota=953,a.iotadieresis=970,a.iotadieresistonos=912,a.iotalatin=617,a.iotatonos=943,a.iparen=9380,a.irigurmukhi=2674,a.ismallhiragana=12355,a.ismallkatakana=12451,a.ismallkatakanahalfwidth=65384,a.issharbengali=2554,a.istroke=616,a.isuperior=63213,a.iterationhiragana=12445,a.iterationkatakana=12541,a.itilde=297,a.itildebelow=7725,a.iubopomofo=12585,a.iucyrillic=1102,a.ivowelsignbengali=2495,a.ivowelsigndeva=2367,a.ivowelsigngujarati=2751,a.izhitsacyrillic=1141,a.izhitsadblgravecyrillic=1143,a.j=106,a.jaarmenian=1393,a.jabengali=2460,a.jadeva=2332,a.jagujarati=2716,a.jagurmukhi=2588,a.jbopomofo=12560,a.jcaron=496,a.jcircle=9433,a.jcircumflex=309,a.jcrossedtail=669,a.jdotlessstroke=607,a.jecyrillic=1112,a.jeemarabic=1580,a.jeemfinalarabic=65182,a.jeeminitialarabic=65183,a.jeemmedialarabic=65184,a.jeharabic=1688,a.jehfinalarabic=64395,a.jhabengali=2461,a.jhadeva=2333,a.jhagujarati=2717,a.jhagurmukhi=2589,a.jheharmenian=1403,a.jis=12292,a.jmonospace=65354,a.jparen=9381,a.jsuperior=690,a.k=107,a.kabashkircyrillic=1185,a.kabengali=2453,a.kacute=7729,a.kacyrillic=1082,a.kadescendercyrillic=1179,a.kadeva=2325,a.kaf=1499,a.kafarabic=1603,a.kafdagesh=64315,a.kafdageshhebrew=64315,a.kaffinalarabic=65242,a.kafhebrew=1499,a.kafinitialarabic=65243,a.kafmedialarabic=65244,a.kafrafehebrew=64333,a.kagujarati=2709,a.kagurmukhi=2581,a.kahiragana=12363,a.kahookcyrillic=1220,a.kakatakana=12459,a.kakatakanahalfwidth=65398,a.kappa=954,a.kappasymbolgreek=1008,a.kapyeounmieumkorean=12657,a.kapyeounphieuphkorean=12676,a.kapyeounpieupkorean=12664,a.kapyeounssangpieupkorean=12665,a.karoriisquare=13069,a.kashidaautoarabic=1600,a.kashidaautonosidebearingarabic=1600,a.kasmallkatakana=12533,a.kasquare=13188,a.kasraarabic=1616,a.kasratanarabic=1613,a.kastrokecyrillic=1183,a.katahiraprolongmarkhalfwidth=65392,a.kaverticalstrokecyrillic=1181,a.kbopomofo=12558,a.kcalsquare=13193,a.kcaron=489,a.kcedilla=311,a.kcircle=9434,a.kcommaaccent=311,a.kdotbelow=7731,a.keharmenian=1412,a.kehiragana=12369,a.kekatakana=12465,a.kekatakanahalfwidth=65401,a.kenarmenian=1391,a.kesmallkatakana=12534,a.kgreenlandic=312,a.khabengali=2454,a.khacyrillic=1093,a.khadeva=2326,a.khagujarati=2710,a.khagurmukhi=2582,a.khaharabic=1582,a.khahfinalarabic=65190,a.khahinitialarabic=65191,a.khahmedialarabic=65192,a.kheicoptic=999,a.khhadeva=2393,a.khhagurmukhi=2649,a.khieukhacirclekorean=12920,a.khieukhaparenkorean=12824,a.khieukhcirclekorean=12906,a.khieukhkorean=12619,a.khieukhparenkorean=12810,a.khokhaithai=3586,a.khokhonthai=3589,a.khokhuatthai=3587,a.khokhwaithai=3588,a.khomutthai=3675,a.khook=409,a.khorakhangthai=3590,a.khzsquare=13201,a.kihiragana=12365,a.kikatakana=12461,a.kikatakanahalfwidth=65399,a.kiroguramusquare=13077,a.kiromeetorusquare=13078,a.kirosquare=13076,a.kiyeokacirclekorean=12910,a.kiyeokaparenkorean=12814,a.kiyeokcirclekorean=12896,a.kiyeokkorean=12593,a.kiyeokparenkorean=12800,a.kiyeoksioskorean=12595,a.kjecyrillic=1116,a.klinebelow=7733,a.klsquare=13208,a.kmcubedsquare=13222,a.kmonospace=65355,a.kmsquaredsquare=13218,a.kohiragana=12371,a.kohmsquare=13248,a.kokaithai=3585,a.kokatakana=12467,a.kokatakanahalfwidth=65402,a.kooposquare=13086,a.koppacyrillic=1153,a.koreanstandardsymbol=12927,a.koroniscmb=835,a.kparen=9382,a.kpasquare=13226,a.ksicyrillic=1135,a.ktsquare=13263,a.kturned=670,a.kuhiragana=12367,a.kukatakana=12463,a.kukatakanahalfwidth=65400,a.kvsquare=13240,a.kwsquare=13246,a.l=108,a.labengali=2482,a.lacute=314,a.ladeva=2354,a.lagujarati=2738,a.lagurmukhi=2610,a.lakkhangyaothai=3653,a.lamaleffinalarabic=65276,a.lamalefhamzaabovefinalarabic=65272,a.lamalefhamzaaboveisolatedarabic=65271,a.lamalefhamzabelowfinalarabic=65274,a.lamalefhamzabelowisolatedarabic=65273,a.lamalefisolatedarabic=65275,a.lamalefmaddaabovefinalarabic=65270,a.lamalefmaddaaboveisolatedarabic=65269,a.lamarabic=1604,a.lambda=955,a.lambdastroke=411,a.lamed=1500,a.lameddagesh=64316,a.lameddageshhebrew=64316,a.lamedhebrew=1500,a.lamfinalarabic=65246,a.lamhahinitialarabic=64714,a.laminitialarabic=65247,a.lamjeeminitialarabic=64713,a.lamkhahinitialarabic=64715,a.lamlamhehisolatedarabic=65010,a.lammedialarabic=65248,a.lammeemhahinitialarabic=64904,a.lammeeminitialarabic=64716,a.largecircle=9711,a.lbar=410,a.lbelt=620,a.lbopomofo=12556,a.lcaron=318,a.lcedilla=316,a.lcircle=9435,a.lcircumflexbelow=7741,a.lcommaaccent=316,a.ldot=320,a.ldotaccent=320,a.ldotbelow=7735,a.ldotbelowmacron=7737,a.leftangleabovecmb=794,a.lefttackbelowcmb=792,a.less=60,a.lessequal=8804,a.lessequalorgreater=8922,a.lessmonospace=65308,a.lessorequivalent=8818,a.lessorgreater=8822,a.lessoverequal=8806,a.lesssmall=65124,a.lezh=622,a.lfblock=9612,a.lhookretroflex=621,a.lira=8356,a.liwnarmenian=1388,a.lj=457,a.ljecyrillic=1113,a.ll=63168,a.lladeva=2355,a.llagujarati=2739,a.llinebelow=7739,a.llladeva=2356,a.llvocalicbengali=2529,a.llvocalicdeva=2401,a.llvocalicvowelsignbengali=2531,a.llvocalicvowelsigndeva=2403,a.lmiddletilde=619,a.lmonospace=65356,a.lmsquare=13264,a.lochulathai=3628,a.logicaland=8743,a.logicalnot=172,a.logicalnotreversed=8976,a.logicalor=8744,a.lolingthai=3621,a.longs=383,a.lowlinecenterline=65102,a.lowlinecmb=818,a.lowlinedashed=65101,a.lozenge=9674,a.lparen=9383,a.lslash=322,a.lsquare=8467,a.lsuperior=63214,a.ltshade=9617,a.luthai=3622,a.lvocalicbengali=2444,a.lvocalicdeva=2316,a.lvocalicvowelsignbengali=2530,a.lvocalicvowelsigndeva=2402,a.lxsquare=13267,a.m=109,a.mabengali=2478,a.macron=175,a.macronbelowcmb=817,a.macroncmb=772,a.macronlowmod=717,a.macronmonospace=65507,a.macute=7743,a.madeva=2350,a.magujarati=2734,a.magurmukhi=2606,a.mahapakhhebrew=1444,a.mahapakhlefthebrew=1444,a.mahiragana=12414,a.maichattawalowleftthai=63637,a.maichattawalowrightthai=63636,a.maichattawathai=3659,a.maichattawaupperleftthai=63635,a.maieklowleftthai=63628,a.maieklowrightthai=63627,a.maiekthai=3656,a.maiekupperleftthai=63626,a.maihanakatleftthai=63620,a.maihanakatthai=3633,a.maitaikhuleftthai=63625,a.maitaikhuthai=3655,a.maitholowleftthai=63631,a.maitholowrightthai=63630,a.maithothai=3657,a.maithoupperleftthai=63629,a.maitrilowleftthai=63634,a.maitrilowrightthai=63633,a.maitrithai=3658,a.maitriupperleftthai=63632,a.maiyamokthai=3654,a.makatakana=12510,a.makatakanahalfwidth=65423,a.male=9794,a.mansyonsquare=13127,a.maqafhebrew=1470,a.mars=9794,a.masoracirclehebrew=1455,a.masquare=13187,a.mbopomofo=12551,a.mbsquare=13268,a.mcircle=9436,a.mcubedsquare=13221,a.mdotaccent=7745,a.mdotbelow=7747,a.meemarabic=1605,a.meemfinalarabic=65250,a.meeminitialarabic=65251,a.meemmedialarabic=65252,a.meemmeeminitialarabic=64721,a.meemmeemisolatedarabic=64584,a.meetorusquare=13133,a.mehiragana=12417,a.meizierasquare=13182,a.mekatakana=12513,a.mekatakanahalfwidth=65426,a.mem=1502,a.memdagesh=64318,a.memdageshhebrew=64318,a.memhebrew=1502,a.menarmenian=1396,a.merkhahebrew=1445,a.merkhakefulahebrew=1446,a.merkhakefulalefthebrew=1446,a.merkhalefthebrew=1445,a.mhook=625,a.mhzsquare=13202,a.middledotkatakanahalfwidth=65381,a.middot=183,a.mieumacirclekorean=12914,a.mieumaparenkorean=12818,a.mieumcirclekorean=12900,a.mieumkorean=12609,a.mieumpansioskorean=12656,a.mieumparenkorean=12804,a.mieumpieupkorean=12654,a.mieumsioskorean=12655,a.mihiragana=12415,a.mikatakana=12511,a.mikatakanahalfwidth=65424,a.minus=8722,a.minusbelowcmb=800,a.minuscircle=8854,a.minusmod=727,a.minusplus=8723,a.minute=8242,a.miribaarusquare=13130,a.mirisquare=13129,a.mlonglegturned=624,a.mlsquare=13206,a.mmcubedsquare=13219,a.mmonospace=65357,a.mmsquaredsquare=13215,a.mohiragana=12418,a.mohmsquare=13249,a.mokatakana=12514,a.mokatakanahalfwidth=65427,a.molsquare=13270,a.momathai=3617,a.moverssquare=13223,a.moverssquaredsquare=13224,a.mparen=9384,a.mpasquare=13227,a.mssquare=13235,a.msuperior=63215,a.mturned=623,a.mu=181,a.mu1=181,a.muasquare=13186,a.muchgreater=8811,a.muchless=8810,a.mufsquare=13196,a.mugreek=956,a.mugsquare=13197,a.muhiragana=12416,a.mukatakana=12512,a.mukatakanahalfwidth=65425,a.mulsquare=13205,a.multiply=215,a.mumsquare=13211,a.munahhebrew=1443,a.munahlefthebrew=1443,a.musicalnote=9834,a.musicalnotedbl=9835,a.musicflatsign=9837,a.musicsharpsign=9839,a.mussquare=13234,a.muvsquare=13238,a.muwsquare=13244,a.mvmegasquare=13241,a.mvsquare=13239,a.mwmegasquare=13247,a.mwsquare=13245,a.n=110,a.nabengali=2472,a.nabla=8711,a.nacute=324,a.nadeva=2344,a.nagujarati=2728,a.nagurmukhi=2600,a.nahiragana=12394,a.nakatakana=12490,a.nakatakanahalfwidth=65413,a.napostrophe=329,a.nasquare=13185,a.nbopomofo=12555,a.nbspace=160,a.ncaron=328,a.ncedilla=326,a.ncircle=9437,a.ncircumflexbelow=7755,a.ncommaaccent=326,a.ndotaccent=7749,a.ndotbelow=7751,a.nehiragana=12397,a.nekatakana=12493,a.nekatakanahalfwidth=65416,a.newsheqelsign=8362,a.nfsquare=13195,a.ngabengali=2457,a.ngadeva=2329,a.ngagujarati=2713,a.ngagurmukhi=2585,a.ngonguthai=3591,a.nhiragana=12435,a.nhookleft=626,a.nhookretroflex=627,a.nieunacirclekorean=12911,a.nieunaparenkorean=12815,a.nieuncieuckorean=12597,a.nieuncirclekorean=12897,a.nieunhieuhkorean=12598,a.nieunkorean=12596,a.nieunpansioskorean=12648,a.nieunparenkorean=12801,a.nieunsioskorean=12647,a.nieuntikeutkorean=12646,a.nihiragana=12395,a.nikatakana=12491,a.nikatakanahalfwidth=65414,a.nikhahitleftthai=63641,a.nikhahitthai=3661,a.nine=57,a.ninearabic=1641,a.ninebengali=2543,a.ninecircle=9320,a.ninecircleinversesansserif=10130,a.ninedeva=2415,a.ninegujarati=2799,a.ninegurmukhi=2671,a.ninehackarabic=1641,a.ninehangzhou=12329,a.nineideographicparen=12840,a.nineinferior=8329,a.ninemonospace=65305,a.nineoldstyle=63289,a.nineparen=9340,a.nineperiod=9360,a.ninepersian=1785,a.nineroman=8568,a.ninesuperior=8313,a.nineteencircle=9330,a.nineteenparen=9350,a.nineteenperiod=9370,a.ninethai=3673,a.nj=460,a.njecyrillic=1114,a.nkatakana=12531,a.nkatakanahalfwidth=65437,a.nlegrightlong=414,a.nlinebelow=7753,a.nmonospace=65358,a.nmsquare=13210,a.nnabengali=2467,a.nnadeva=2339,a.nnagujarati=2723,a.nnagurmukhi=2595,a.nnnadeva=2345,a.nohiragana=12398,a.nokatakana=12494,a.nokatakanahalfwidth=65417,a.nonbreakingspace=160,a.nonenthai=3603,a.nonuthai=3609,a.noonarabic=1606,a.noonfinalarabic=65254,a.noonghunnaarabic=1722,a.noonghunnafinalarabic=64415,a.nooninitialarabic=65255,a.noonjeeminitialarabic=64722,a.noonjeemisolatedarabic=64587,a.noonmedialarabic=65256,a.noonmeeminitialarabic=64725,a.noonmeemisolatedarabic=64590,a.noonnoonfinalarabic=64653,a.notcontains=8716,a.notelement=8713,a.notelementof=8713,a.notequal=8800,a.notgreater=8815,a.notgreaternorequal=8817,a.notgreaternorless=8825,a.notidentical=8802,a.notless=8814,a.notlessnorequal=8816,a.notparallel=8742,a.notprecedes=8832,a.notsubset=8836,a.notsucceeds=8833,a.notsuperset=8837,a.nowarmenian=1398,a.nparen=9385,a.nssquare=13233,a.nsuperior=8319,a.ntilde=241,a.nu=957,a.nuhiragana=12396,a.nukatakana=12492,a.nukatakanahalfwidth=65415,a.nuktabengali=2492,a.nuktadeva=2364,a.nuktagujarati=2748,a.nuktagurmukhi=2620,a.numbersign=35,a.numbersignmonospace=65283,a.numbersignsmall=65119,a.numeralsigngreek=884,a.numeralsignlowergreek=885,a.numero=8470,a.nun=1504,a.nundagesh=64320,a.nundageshhebrew=64320,a.nunhebrew=1504,a.nvsquare=13237,a.nwsquare=13243,a.nyabengali=2462,a.nyadeva=2334,a.nyagujarati=2718,a.nyagurmukhi=2590,a.o=111,a.oacute=243,a.oangthai=3629,a.obarred=629,a.obarredcyrillic=1257,a.obarreddieresiscyrillic=1259,a.obengali=2451,a.obopomofo=12571,a.obreve=335,a.ocandradeva=2321,a.ocandragujarati=2705,a.ocandravowelsigndeva=2377,a.ocandravowelsigngujarati=2761,a.ocaron=466,a.ocircle=9438,a.ocircumflex=244,a.ocircumflexacute=7889,a.ocircumflexdotbelow=7897,a.ocircumflexgrave=7891,a.ocircumflexhookabove=7893,a.ocircumflextilde=7895,a.ocyrillic=1086,a.odblacute=337,a.odblgrave=525,a.odeva=2323,a.odieresis=246,a.odieresiscyrillic=1255,a.odotbelow=7885,a.oe=339,a.oekorean=12634,a.ogonek=731,a.ogonekcmb=808,a.ograve=242,a.ogujarati=2707,a.oharmenian=1413,a.ohiragana=12362,a.ohookabove=7887,a.ohorn=417,a.ohornacute=7899,a.ohorndotbelow=7907,a.ohorngrave=7901,a.ohornhookabove=7903,a.ohorntilde=7905,a.ohungarumlaut=337,a.oi=419,a.oinvertedbreve=527,a.okatakana=12458,a.okatakanahalfwidth=65397,a.okorean=12631,a.olehebrew=1451,a.omacron=333,a.omacronacute=7763,a.omacrongrave=7761,a.omdeva=2384,a.omega=969,a.omega1=982,a.omegacyrillic=1121,a.omegalatinclosed=631,a.omegaroundcyrillic=1147,a.omegatitlocyrillic=1149,a.omegatonos=974,a.omgujarati=2768,a.omicron=959,a.omicrontonos=972,a.omonospace=65359,a.one=49,a.onearabic=1633,a.onebengali=2535,a.onecircle=9312,a.onecircleinversesansserif=10122,a.onedeva=2407,a.onedotenleader=8228,a.oneeighth=8539,a.onefitted=63196,a.onegujarati=2791,a.onegurmukhi=2663,a.onehackarabic=1633,a.onehalf=189,a.onehangzhou=12321,a.oneideographicparen=12832,a.oneinferior=8321,a.onemonospace=65297,a.onenumeratorbengali=2548,a.oneoldstyle=63281,a.oneparen=9332,a.oneperiod=9352,a.onepersian=1777,a.onequarter=188,a.oneroman=8560,a.onesuperior=185,a.onethai=3665,a.onethird=8531,a.oogonek=491,a.oogonekmacron=493,a.oogurmukhi=2579,a.oomatragurmukhi=2635,a.oopen=596,a.oparen=9386,a.openbullet=9702,a.option=8997,a.ordfeminine=170,a.ordmasculine=186,a.orthogonal=8735,a.oshortdeva=2322,a.oshortvowelsigndeva=2378,a.oslash=248,a.oslashacute=511,a.osmallhiragana=12361,a.osmallkatakana=12457,a.osmallkatakanahalfwidth=65387,a.ostrokeacute=511,a.osuperior=63216,a.otcyrillic=1151,a.otilde=245,a.otildeacute=7757,a.otildedieresis=7759,a.oubopomofo=12577,a.overline=8254,a.overlinecenterline=65098,a.overlinecmb=773,a.overlinedashed=65097,a.overlinedblwavy=65100,a.overlinewavy=65099,a.overscore=175,a.ovowelsignbengali=2507,a.ovowelsigndeva=2379,a.ovowelsigngujarati=2763,a.p=112,a.paampssquare=13184,a.paasentosquare=13099,a.pabengali=2474,a.pacute=7765,a.padeva=2346,a.pagedown=8671,a.pageup=8670,a.pagujarati=2730,a.pagurmukhi=2602,a.pahiragana=12401,a.paiyannoithai=3631,a.pakatakana=12497,a.palatalizationcyrilliccmb=1156,a.palochkacyrillic=1216,a.pansioskorean=12671,a.paragraph=182,a.parallel=8741,a.parenleft=40,a.parenleftaltonearabic=64830,a.parenleftbt=63725,a.parenleftex=63724,a.parenleftinferior=8333,a.parenleftmonospace=65288,a.parenleftsmall=65113,a.parenleftsuperior=8317,a.parenlefttp=63723,a.parenleftvertical=65077,a.parenright=41,a.parenrightaltonearabic=64831,a.parenrightbt=63736,a.parenrightex=63735,a.parenrightinferior=8334,a.parenrightmonospace=65289,a.parenrightsmall=65114,a.parenrightsuperior=8318,a.parenrighttp=63734,a.parenrightvertical=65078,a.partialdiff=8706,a.paseqhebrew=1472,a.pashtahebrew=1433,a.pasquare=13225,a.patah=1463,a.patah11=1463,a.patah1d=1463,a.patah2a=1463,a.patahhebrew=1463,a.patahnarrowhebrew=1463,a.patahquarterhebrew=1463,a.patahwidehebrew=1463,a.pazerhebrew=1441,a.pbopomofo=12550,a.pcircle=9439,a.pdotaccent=7767,a.pe=1508,a.pecyrillic=1087,a.pedagesh=64324,a.pedageshhebrew=64324,a.peezisquare=13115,a.pefinaldageshhebrew=64323,a.peharabic=1662,a.peharmenian=1402,a.pehebrew=1508,a.pehfinalarabic=64343,a.pehinitialarabic=64344,a.pehiragana=12410,a.pehmedialarabic=64345,a.pekatakana=12506,a.pemiddlehookcyrillic=1191,a.perafehebrew=64334,a.percent=37,a.percentarabic=1642,a.percentmonospace=65285,a.percentsmall=65130,a.period=46,a.periodarmenian=1417,a.periodcentered=183,a.periodhalfwidth=65377,a.periodinferior=63207,a.periodmonospace=65294,a.periodsmall=65106,a.periodsuperior=63208,a.perispomenigreekcmb=834,a.perpendicular=8869,a.perthousand=8240,a.peseta=8359,a.pfsquare=13194,a.phabengali=2475,a.phadeva=2347,a.phagujarati=2731,a.phagurmukhi=2603,a.phi=966,a.phi1=981,a.phieuphacirclekorean=12922,a.phieuphaparenkorean=12826,a.phieuphcirclekorean=12908,a.phieuphkorean=12621,a.phieuphparenkorean=12812,a.philatin=632,a.phinthuthai=3642,a.phisymbolgreek=981,a.phook=421,a.phophanthai=3614,a.phophungthai=3612,a.phosamphaothai=3616,a.pi=960,a.pieupacirclekorean=12915,a.pieupaparenkorean=12819,a.pieupcieuckorean=12662,a.pieupcirclekorean=12901,a.pieupkiyeokkorean=12658,a.pieupkorean=12610,a.pieupparenkorean=12805,a.pieupsioskiyeokkorean=12660,a.pieupsioskorean=12612,a.pieupsiostikeutkorean=12661,a.pieupthieuthkorean=12663,a.pieuptikeutkorean=12659,a.pihiragana=12404,a.pikatakana=12500,a.pisymbolgreek=982,a.piwrarmenian=1411,a.plus=43,a.plusbelowcmb=799,a.pluscircle=8853,a.plusminus=177,a.plusmod=726,a.plusmonospace=65291,a.plussmall=65122,a.plussuperior=8314,a.pmonospace=65360,a.pmsquare=13272,a.pohiragana=12413,a.pointingindexdownwhite=9759,a.pointingindexleftwhite=9756,a.pointingindexrightwhite=9758,a.pointingindexupwhite=9757,a.pokatakana=12509,a.poplathai=3611,a.postalmark=12306,a.postalmarkface=12320,a.pparen=9387,a.precedes=8826,a.prescription=8478,a.primemod=697,a.primereversed=8245,a.product=8719,a.projective=8965,a.prolongedkana=12540,a.propellor=8984,a.propersubset=8834,a.propersuperset=8835,a.proportion=8759,a.proportional=8733,a.psi=968,a.psicyrillic=1137,a.psilipneumatacyrilliccmb=1158,a.pssquare=13232,a.puhiragana=12407,a.pukatakana=12503,a.pvsquare=13236,a.pwsquare=13242,a.q=113,a.qadeva=2392,a.qadmahebrew=1448,a.qafarabic=1602,a.qaffinalarabic=65238,a.qafinitialarabic=65239,a.qafmedialarabic=65240,a.qamats=1464,a.qamats10=1464,a.qamats1a=1464,a.qamats1c=1464,a.qamats27=1464,a.qamats29=1464,a.qamats33=1464,a.qamatsde=1464,a.qamatshebrew=1464,a.qamatsnarrowhebrew=1464,a.qamatsqatanhebrew=1464,a.qamatsqatannarrowhebrew=1464,a.qamatsqatanquarterhebrew=1464,a.qamatsqatanwidehebrew=1464,a.qamatsquarterhebrew=1464,a.qamatswidehebrew=1464,a.qarneyparahebrew=1439,a.qbopomofo=12561,a.qcircle=9440,a.qhook=672,a.qmonospace=65361,a.qof=1511,a.qofdagesh=64327,a.qofdageshhebrew=64327,a.qofhebrew=1511,a.qparen=9388,a.quarternote=9833,a.qubuts=1467,a.qubuts18=1467,a.qubuts25=1467,a.qubuts31=1467,a.qubutshebrew=1467,a.qubutsnarrowhebrew=1467,a.qubutsquarterhebrew=1467,a.qubutswidehebrew=1467,a.question=63,a.questionarabic=1567,a.questionarmenian=1374,a.questiondown=191,a.questiondownsmall=63423,a.questiongreek=894,a.questionmonospace=65311,a.questionsmall=63295,a.quotedbl=34,a.quotedblbase=8222,a.quotedblleft=8220,a.quotedblmonospace=65282,a.quotedblprime=12318,a.quotedblprimereversed=12317,a.quotedblright=8221,a.quoteleft=8216,a.quoteleftreversed=8219,a.quotereversed=8219,a.quoteright=8217,a.quoterightn=329,a.quotesinglbase=8218,a.quotesingle=39,a.quotesinglemonospace=65287,a.r=114,a.raarmenian=1404,a.rabengali=2480,a.racute=341,a.radeva=2352,a.radical=8730,a.radicalex=63717,a.radoverssquare=13230,a.radoverssquaredsquare=13231,a.radsquare=13229,a.rafe=1471,a.rafehebrew=1471,a.ragujarati=2736,a.ragurmukhi=2608,a.rahiragana=12425,a.rakatakana=12521,a.rakatakanahalfwidth=65431,a.ralowerdiagonalbengali=2545,a.ramiddlediagonalbengali=2544,a.ramshorn=612,a.ratio=8758,a.rbopomofo=12566,a.rcaron=345,a.rcedilla=343,a.rcircle=9441,a.rcommaaccent=343,a.rdblgrave=529,a.rdotaccent=7769,a.rdotbelow=7771,a.rdotbelowmacron=7773,a.referencemark=8251,a.reflexsubset=8838,a.reflexsuperset=8839,a.registered=174,a.registersans=63720,a.registerserif=63194,a.reharabic=1585,a.reharmenian=1408,a.rehfinalarabic=65198,a.rehiragana=12428,a.rekatakana=12524,a.rekatakanahalfwidth=65434,a.resh=1512,a.reshdageshhebrew=64328,a.reshhebrew=1512,a.reversedtilde=8765,a.reviahebrew=1431,a.reviamugrashhebrew=1431,a.revlogicalnot=8976,a.rfishhook=638,a.rfishhookreversed=639,a.rhabengali=2525,a.rhadeva=2397,a.rho=961,a.rhook=637,a.rhookturned=635,a.rhookturnedsuperior=693,a.rhosymbolgreek=1009,a.rhotichookmod=734,a.rieulacirclekorean=12913,a.rieulaparenkorean=12817,a.rieulcirclekorean=12899,a.rieulhieuhkorean=12608,a.rieulkiyeokkorean=12602,a.rieulkiyeoksioskorean=12649,a.rieulkorean=12601,a.rieulmieumkorean=12603,a.rieulpansioskorean=12652,a.rieulparenkorean=12803,a.rieulphieuphkorean=12607,a.rieulpieupkorean=12604,a.rieulpieupsioskorean=12651,a.rieulsioskorean=12605,a.rieulthieuthkorean=12606,a.rieultikeutkorean=12650,a.rieulyeorinhieuhkorean=12653,a.rightangle=8735,a.righttackbelowcmb=793,a.righttriangle=8895,a.rihiragana=12426,a.rikatakana=12522,a.rikatakanahalfwidth=65432,a.ring=730,a.ringbelowcmb=805,a.ringcmb=778,a.ringhalfleft=703,a.ringhalfleftarmenian=1369,a.ringhalfleftbelowcmb=796,a.ringhalfleftcentered=723,a.ringhalfright=702,a.ringhalfrightbelowcmb=825,a.ringhalfrightcentered=722,a.rinvertedbreve=531,a.rittorusquare=13137,a.rlinebelow=7775,a.rlongleg=636,a.rlonglegturned=634,a.rmonospace=65362,a.rohiragana=12429,a.rokatakana=12525,a.rokatakanahalfwidth=65435,a.roruathai=3619,a.rparen=9389,a.rrabengali=2524,a.rradeva=2353,a.rragurmukhi=2652,a.rreharabic=1681,a.rrehfinalarabic=64397,a.rrvocalicbengali=2528,a.rrvocalicdeva=2400,a.rrvocalicgujarati=2784,a.rrvocalicvowelsignbengali=2500,a.rrvocalicvowelsigndeva=2372,a.rrvocalicvowelsigngujarati=2756,a.rsuperior=63217,a.rtblock=9616,a.rturned=633,a.rturnedsuperior=692,a.ruhiragana=12427,a.rukatakana=12523,a.rukatakanahalfwidth=65433,a.rupeemarkbengali=2546,a.rupeesignbengali=2547,a.rupiah=63197,a.ruthai=3620,a.rvocalicbengali=2443,a.rvocalicdeva=2315,a.rvocalicgujarati=2699,a.rvocalicvowelsignbengali=2499,a.rvocalicvowelsigndeva=2371,a.rvocalicvowelsigngujarati=2755,a.s=115,a.sabengali=2488,a.sacute=347,a.sacutedotaccent=7781,a.sadarabic=1589,a.sadeva=2360,a.sadfinalarabic=65210,a.sadinitialarabic=65211,a.sadmedialarabic=65212,a.sagujarati=2744,a.sagurmukhi=2616,a.sahiragana=12373,a.sakatakana=12469,a.sakatakanahalfwidth=65403,a.sallallahoualayhewasallamarabic=65018,a.samekh=1505,a.samekhdagesh=64321,a.samekhdageshhebrew=64321,a.samekhhebrew=1505,a.saraaathai=3634,a.saraaethai=3649,a.saraaimaimalaithai=3652,a.saraaimaimuanthai=3651,a.saraamthai=3635,a.saraathai=3632,a.saraethai=3648,a.saraiileftthai=63622,a.saraiithai=3637,a.saraileftthai=63621,a.saraithai=3636,a.saraothai=3650,a.saraueeleftthai=63624,a.saraueethai=3639,a.saraueleftthai=63623,a.sarauethai=3638,a.sarauthai=3640,a.sarauuthai=3641,a.sbopomofo=12569,a.scaron=353,a.scarondotaccent=7783,a.scedilla=351,a.schwa=601,a.schwacyrillic=1241,a.schwadieresiscyrillic=1243,a.schwahook=602,a.scircle=9442,a.scircumflex=349,a.scommaaccent=537,a.sdotaccent=7777,a.sdotbelow=7779,a.sdotbelowdotaccent=7785,a.seagullbelowcmb=828,a.second=8243,a.secondtonechinese=714,a.section=167,a.seenarabic=1587,a.seenfinalarabic=65202,a.seeninitialarabic=65203,a.seenmedialarabic=65204,a.segol=1462,a.segol13=1462,a.segol1f=1462,a.segol2c=1462,a.segolhebrew=1462,a.segolnarrowhebrew=1462,a.segolquarterhebrew=1462,a.segoltahebrew=1426,a.segolwidehebrew=1462,a.seharmenian=1405,a.sehiragana=12379,a.sekatakana=12475,a.sekatakanahalfwidth=65406,a.semicolon=59,a.semicolonarabic=1563,a.semicolonmonospace=65307,a.semicolonsmall=65108,a.semivoicedmarkkana=12444,a.semivoicedmarkkanahalfwidth=65439,a.sentisquare=13090,a.sentosquare=13091,a.seven=55,a.sevenarabic=1639,a.sevenbengali=2541,a.sevencircle=9318,a.sevencircleinversesansserif=10128,a.sevendeva=2413,a.seveneighths=8542,a.sevengujarati=2797,a.sevengurmukhi=2669,a.sevenhackarabic=1639,a.sevenhangzhou=12327,a.sevenideographicparen=12838,a.seveninferior=8327,a.sevenmonospace=65303,a.sevenoldstyle=63287,a.sevenparen=9338,a.sevenperiod=9358,a.sevenpersian=1783,a.sevenroman=8566,a.sevensuperior=8311,a.seventeencircle=9328,a.seventeenparen=9348,a.seventeenperiod=9368,a.seventhai=3671,a.sfthyphen=173,a.shaarmenian=1399,a.shabengali=2486,a.shacyrillic=1096,a.shaddaarabic=1617,a.shaddadammaarabic=64609,a.shaddadammatanarabic=64606,a.shaddafathaarabic=64608,a.shaddakasraarabic=64610,a.shaddakasratanarabic=64607,a.shade=9618,a.shadedark=9619,a.shadelight=9617,a.shademedium=9618,a.shadeva=2358,a.shagujarati=2742,a.shagurmukhi=2614,a.shalshelethebrew=1427,a.shbopomofo=12565,a.shchacyrillic=1097,a.sheenarabic=1588,a.sheenfinalarabic=65206,a.sheeninitialarabic=65207,a.sheenmedialarabic=65208,a.sheicoptic=995,a.sheqel=8362,a.sheqelhebrew=8362,a.sheva=1456,a.sheva115=1456,a.sheva15=1456,a.sheva22=1456,a.sheva2e=1456,a.shevahebrew=1456,a.shevanarrowhebrew=1456,a.shevaquarterhebrew=1456,a.shevawidehebrew=1456,a.shhacyrillic=1211,a.shimacoptic=1005,a.shin=1513,a.shindagesh=64329,a.shindageshhebrew=64329,a.shindageshshindot=64300,a.shindageshshindothebrew=64300,a.shindageshsindot=64301,a.shindageshsindothebrew=64301,a.shindothebrew=1473,a.shinhebrew=1513,a.shinshindot=64298,a.shinshindothebrew=64298,a.shinsindot=64299,a.shinsindothebrew=64299,a.shook=642,a.sigma=963,a.sigma1=962,a.sigmafinal=962,a.sigmalunatesymbolgreek=1010,a.sihiragana=12375,a.sikatakana=12471,a.sikatakanahalfwidth=65404,a.siluqhebrew=1469,a.siluqlefthebrew=1469,a.similar=8764,a.sindothebrew=1474,a.siosacirclekorean=12916,a.siosaparenkorean=12820,a.sioscieuckorean=12670,a.sioscirclekorean=12902,a.sioskiyeokkorean=12666,a.sioskorean=12613,a.siosnieunkorean=12667,a.siosparenkorean=12806,a.siospieupkorean=12669,a.siostikeutkorean=12668,a.six=54,a.sixarabic=1638,a.sixbengali=2540,a.sixcircle=9317,a.sixcircleinversesansserif=10127,a.sixdeva=2412,a.sixgujarati=2796,a.sixgurmukhi=2668,a.sixhackarabic=1638,a.sixhangzhou=12326,a.sixideographicparen=12837,a.sixinferior=8326,a.sixmonospace=65302,a.sixoldstyle=63286,a.sixparen=9337,a.sixperiod=9357,a.sixpersian=1782,a.sixroman=8565,a.sixsuperior=8310,a.sixteencircle=9327,a.sixteencurrencydenominatorbengali=2553,a.sixteenparen=9347,a.sixteenperiod=9367,a.sixthai=3670,a.slash=47,a.slashmonospace=65295,a.slong=383,a.slongdotaccent=7835,a.smileface=9786,a.smonospace=65363,a.sofpasuqhebrew=1475,a.softhyphen=173,a.softsigncyrillic=1100,a.sohiragana=12381,a.sokatakana=12477,a.sokatakanahalfwidth=65407,a.soliduslongoverlaycmb=824,a.solidusshortoverlaycmb=823,a.sorusithai=3625,a.sosalathai=3624,a.sosothai=3595,a.sosuathai=3626,a.space=32,a.spacehackarabic=32,a.spade=9824,a.spadesuitblack=9824,a.spadesuitwhite=9828,a.sparen=9390,a.squarebelowcmb=827,a.squarecc=13252,a.squarecm=13213,a.squarediagonalcrosshatchfill=9641,a.squarehorizontalfill=9636,a.squarekg=13199,a.squarekm=13214,a.squarekmcapital=13262,a.squareln=13265,a.squarelog=13266,a.squaremg=13198,a.squaremil=13269,a.squaremm=13212,a.squaremsquared=13217,a.squareorthogonalcrosshatchfill=9638,a.squareupperlefttolowerrightfill=9639,a.squareupperrighttolowerleftfill=9640,a.squareverticalfill=9637,a.squarewhitewithsmallblack=9635,a.srsquare=13275,a.ssabengali=2487,a.ssadeva=2359,a.ssagujarati=2743,a.ssangcieuckorean=12617,a.ssanghieuhkorean=12677,a.ssangieungkorean=12672,a.ssangkiyeokkorean=12594,a.ssangnieunkorean=12645,a.ssangpieupkorean=12611,a.ssangsioskorean=12614,a.ssangtikeutkorean=12600,a.ssuperior=63218,a.sterling=163,a.sterlingmonospace=65505,a.strokelongoverlaycmb=822,a.strokeshortoverlaycmb=821,a.subset=8834,a.subsetnotequal=8842,a.subsetorequal=8838,a.succeeds=8827,a.suchthat=8715,a.suhiragana=12377,a.sukatakana=12473,a.sukatakanahalfwidth=65405,a.sukunarabic=1618,a.summation=8721,a.sun=9788,a.superset=8835,a.supersetnotequal=8843,a.supersetorequal=8839,a.svsquare=13276,a.syouwaerasquare=13180,a.t=116,a.tabengali=2468,a.tackdown=8868,a.tackleft=8867,a.tadeva=2340,a.tagujarati=2724,a.tagurmukhi=2596,a.taharabic=1591,a.tahfinalarabic=65218,a.tahinitialarabic=65219,a.tahiragana=12383,a.tahmedialarabic=65220,a.taisyouerasquare=13181,a.takatakana=12479,a.takatakanahalfwidth=65408,a.tatweelarabic=1600,a.tau=964,a.tav=1514,a.tavdages=64330,a.tavdagesh=64330,a.tavdageshhebrew=64330,a.tavhebrew=1514,a.tbar=359,a.tbopomofo=12554,a.tcaron=357,a.tccurl=680,a.tcedilla=355,a.tcheharabic=1670,a.tchehfinalarabic=64379,a.tchehinitialarabic=64380,a.tchehmedialarabic=64381,a.tcircle=9443,a.tcircumflexbelow=7793,a.tcommaaccent=355,a.tdieresis=7831,a.tdotaccent=7787,a.tdotbelow=7789,a.tecyrillic=1090,a.tedescendercyrillic=1197,a.teharabic=1578,a.tehfinalarabic=65174,a.tehhahinitialarabic=64674,a.tehhahisolatedarabic=64524,a.tehinitialarabic=65175,a.tehiragana=12390,a.tehjeeminitialarabic=64673,a.tehjeemisolatedarabic=64523,a.tehmarbutaarabic=1577,a.tehmarbutafinalarabic=65172,a.tehmedialarabic=65176,a.tehmeeminitialarabic=64676,a.tehmeemisolatedarabic=64526,a.tehnoonfinalarabic=64627,a.tekatakana=12486,a.tekatakanahalfwidth=65411,a.telephone=8481,a.telephoneblack=9742,a.telishagedolahebrew=1440,a.telishaqetanahebrew=1449,a.tencircle=9321,a.tenideographicparen=12841,a.tenparen=9341,a.tenperiod=9361,a.tenroman=8569,a.tesh=679,a.tet=1496,a.tetdagesh=64312,a.tetdageshhebrew=64312,a.tethebrew=1496,a.tetsecyrillic=1205,a.tevirhebrew=1435,a.tevirlefthebrew=1435,a.thabengali=2469,a.thadeva=2341,a.thagujarati=2725,a.thagurmukhi=2597,a.thalarabic=1584,a.thalfinalarabic=65196,a.thanthakhatlowleftthai=63640,a.thanthakhatlowrightthai=63639,a.thanthakhatthai=3660,a.thanthakhatupperleftthai=63638,a.theharabic=1579,a.thehfinalarabic=65178,a.thehinitialarabic=65179,a.thehmedialarabic=65180,a.thereexists=8707,a.therefore=8756,a.theta=952,a.theta1=977,a.thetasymbolgreek=977,a.thieuthacirclekorean=12921,a.thieuthaparenkorean=12825,a.thieuthcirclekorean=12907,a.thieuthkorean=12620,a.thieuthparenkorean=12811,a.thirteencircle=9324,a.thirteenparen=9344,a.thirteenperiod=9364,a.thonangmonthothai=3601,a.thook=429,a.thophuthaothai=3602,a.thorn=254,a.thothahanthai=3607,a.thothanthai=3600,a.thothongthai=3608,a.thothungthai=3606,a.thousandcyrillic=1154,a.thousandsseparatorarabic=1644,a.thousandsseparatorpersian=1644,a.three=51,a.threearabic=1635,a.threebengali=2537,a.threecircle=9314,a.threecircleinversesansserif=10124,a.threedeva=2409,a.threeeighths=8540,a.threegujarati=2793,a.threegurmukhi=2665,a.threehackarabic=1635,a.threehangzhou=12323,a.threeideographicparen=12834,a.threeinferior=8323,a.threemonospace=65299,a.threenumeratorbengali=2550,a.threeoldstyle=63283,a.threeparen=9334,a.threeperiod=9354,a.threepersian=1779,a.threequarters=190,a.threequartersemdash=63198,a.threeroman=8562,a.threesuperior=179,a.threethai=3667,a.thzsquare=13204,a.tihiragana=12385,a.tikatakana=12481,a.tikatakanahalfwidth=65409,a.tikeutacirclekorean=12912,a.tikeutaparenkorean=12816,a.tikeutcirclekorean=12898,a.tikeutkorean=12599,a.tikeutparenkorean=12802,a.tilde=732,a.tildebelowcmb=816,a.tildecmb=771,a.tildecomb=771,a.tildedoublecmb=864,a.tildeoperator=8764,a.tildeoverlaycmb=820,a.tildeverticalcmb=830,a.timescircle=8855,a.tipehahebrew=1430,a.tipehalefthebrew=1430,a.tippigurmukhi=2672,a.titlocyrilliccmb=1155,a.tiwnarmenian=1407,a.tlinebelow=7791,a.tmonospace=65364,a.toarmenian=1385,a.tohiragana=12392,a.tokatakana=12488,a.tokatakanahalfwidth=65412,a.tonebarextrahighmod=741,a.tonebarextralowmod=745,a.tonebarhighmod=742,a.tonebarlowmod=744,a.tonebarmidmod=743,a.tonefive=445,a.tonesix=389,a.tonetwo=424,a.tonos=900,a.tonsquare=13095,a.topatakthai=3599,a.tortoiseshellbracketleft=12308,a.tortoiseshellbracketleftsmall=65117,a.tortoiseshellbracketleftvertical=65081,a.tortoiseshellbracketright=12309,a.tortoiseshellbracketrightsmall=65118,a.tortoiseshellbracketrightvertical=65082,a.totaothai=3605,a.tpalatalhook=427,a.tparen=9391,a.trademark=8482,a.trademarksans=63722,a.trademarkserif=63195,a.tretroflexhook=648,a.triagdn=9660,a.triaglf=9668,a.triagrt=9658,a.triagup=9650,a.ts=678,a.tsadi=1510,a.tsadidagesh=64326,a.tsadidageshhebrew=64326,a.tsadihebrew=1510,a.tsecyrillic=1094,a.tsere=1461,a.tsere12=1461,a.tsere1e=1461,a.tsere2b=1461,a.tserehebrew=1461,a.tserenarrowhebrew=1461,a.tserequarterhebrew=1461,a.tserewidehebrew=1461,a.tshecyrillic=1115,a.tsuperior=63219,a.ttabengali=2463,a.ttadeva=2335,a.ttagujarati=2719,a.ttagurmukhi=2591,a.tteharabic=1657,a.ttehfinalarabic=64359,a.ttehinitialarabic=64360,a.ttehmedialarabic=64361,a.tthabengali=2464,a.tthadeva=2336,a.tthagujarati=2720,a.tthagurmukhi=2592,a.tturned=647,a.tuhiragana=12388,a.tukatakana=12484,a.tukatakanahalfwidth=65410,a.tusmallhiragana=12387,a.tusmallkatakana=12483,a.tusmallkatakanahalfwidth=65391,a.twelvecircle=9323,a.twelveparen=9343,a.twelveperiod=9363,a.twelveroman=8571,a.twentycircle=9331,a.twentyhangzhou=21316,a.twentyparen=9351,a.twentyperiod=9371,a.two=50,a.twoarabic=1634,a.twobengali=2536,a.twocircle=9313,a.twocircleinversesansserif=10123,a.twodeva=2408,a.twodotenleader=8229,a.twodotleader=8229,a.twodotleadervertical=65072,a.twogujarati=2792,a.twogurmukhi=2664,a.twohackarabic=1634,a.twohangzhou=12322,a.twoideographicparen=12833,a.twoinferior=8322,a.twomonospace=65298,a.twonumeratorbengali=2549,a.twooldstyle=63282,a.twoparen=9333,a.twoperiod=9353,a.twopersian=1778,a.tworoman=8561,a.twostroke=443,a.twosuperior=178,a.twothai=3666,a.twothirds=8532,a.u=117,a.uacute=250,a.ubar=649,a.ubengali=2441,a.ubopomofo=12584,a.ubreve=365,a.ucaron=468,a.ucircle=9444,a.ucircumflex=251,a.ucircumflexbelow=7799,a.ucyrillic=1091,a.udattadeva=2385,a.udblacute=369,a.udblgrave=533,a.udeva=2313,a.udieresis=252,a.udieresisacute=472,a.udieresisbelow=7795,a.udieresiscaron=474,a.udieresiscyrillic=1265,a.udieresisgrave=476,a.udieresismacron=470,a.udotbelow=7909,a.ugrave=249,a.ugujarati=2697,a.ugurmukhi=2569,a.uhiragana=12358,a.uhookabove=7911,a.uhorn=432,a.uhornacute=7913,a.uhorndotbelow=7921,a.uhorngrave=7915,a.uhornhookabove=7917,a.uhorntilde=7919,a.uhungarumlaut=369,a.uhungarumlautcyrillic=1267,a.uinvertedbreve=535,a.ukatakana=12454,a.ukatakanahalfwidth=65395,a.ukcyrillic=1145,a.ukorean=12636,a.umacron=363,a.umacroncyrillic=1263,a.umacrondieresis=7803,a.umatragurmukhi=2625,a.umonospace=65365,a.underscore=95,a.underscoredbl=8215,a.underscoremonospace=65343,a.underscorevertical=65075,a.underscorewavy=65103,a.union=8746,a.universal=8704,a.uogonek=371,a.uparen=9392,a.upblock=9600,a.upperdothebrew=1476,a.upsilon=965,a.upsilondieresis=971,a.upsilondieresistonos=944,a.upsilonlatin=650,a.upsilontonos=973,a.uptackbelowcmb=797,a.uptackmod=724,a.uragurmukhi=2675,a.uring=367,a.ushortcyrillic=1118,a.usmallhiragana=12357,a.usmallkatakana=12453,a.usmallkatakanahalfwidth=65385,a.ustraightcyrillic=1199,a.ustraightstrokecyrillic=1201,a.utilde=361,a.utildeacute=7801,a.utildebelow=7797,a.uubengali=2442,a.uudeva=2314,a.uugujarati=2698,a.uugurmukhi=2570,a.uumatragurmukhi=2626,a.uuvowelsignbengali=2498,a.uuvowelsigndeva=2370,a.uuvowelsigngujarati=2754,a.uvowelsignbengali=2497,a.uvowelsigndeva=2369,a.uvowelsigngujarati=2753,a.v=118,a.vadeva=2357,a.vagujarati=2741,a.vagurmukhi=2613,a.vakatakana=12535,a.vav=1493,a.vavdagesh=64309,a.vavdagesh65=64309,a.vavdageshhebrew=64309,a.vavhebrew=1493,a.vavholam=64331,a.vavholamhebrew=64331,a.vavvavhebrew=1520,a.vavyodhebrew=1521,a.vcircle=9445,a.vdotbelow=7807,a.vecyrillic=1074,a.veharabic=1700,a.vehfinalarabic=64363,a.vehinitialarabic=64364,a.vehmedialarabic=64365,a.vekatakana=12537,a.venus=9792,a.verticalbar=124,a.verticallineabovecmb=781,a.verticallinebelowcmb=809,a.verticallinelowmod=716,a.verticallinemod=712,a.vewarmenian=1406,a.vhook=651,a.vikatakana=12536,a.viramabengali=2509,a.viramadeva=2381,a.viramagujarati=2765,a.visargabengali=2435,a.visargadeva=2307,a.visargagujarati=2691,a.vmonospace=65366,a.voarmenian=1400,a.voicediterationhiragana=12446,a.voicediterationkatakana=12542,a.voicedmarkkana=12443,a.voicedmarkkanahalfwidth=65438,a.vokatakana=12538,a.vparen=9393,a.vtilde=7805,a.vturned=652,a.vuhiragana=12436,a.vukatakana=12532,a.w=119,a.wacute=7811,a.waekorean=12633,a.wahiragana=12431,a.wakatakana=12527,a.wakatakanahalfwidth=65436,a.wakorean=12632,a.wasmallhiragana=12430,a.wasmallkatakana=12526,a.wattosquare=13143,a.wavedash=12316,a.wavyunderscorevertical=65076,a.wawarabic=1608,a.wawfinalarabic=65262,a.wawhamzaabovearabic=1572,a.wawhamzaabovefinalarabic=65158,a.wbsquare=13277,a.wcircle=9446,a.wcircumflex=373,a.wdieresis=7813,a.wdotaccent=7815,a.wdotbelow=7817,a.wehiragana=12433,a.weierstrass=8472,a.wekatakana=12529,a.wekorean=12638,a.weokorean=12637,a.wgrave=7809,a.whitebullet=9702,a.whitecircle=9675,a.whitecircleinverse=9689,a.whitecornerbracketleft=12302,a.whitecornerbracketleftvertical=65091,a.whitecornerbracketright=12303,a.whitecornerbracketrightvertical=65092,a.whitediamond=9671,a.whitediamondcontainingblacksmalldiamond=9672,a.whitedownpointingsmalltriangle=9663,a.whitedownpointingtriangle=9661,a.whiteleftpointingsmalltriangle=9667,a.whiteleftpointingtriangle=9665,a.whitelenticularbracketleft=12310,a.whitelenticularbracketright=12311,a.whiterightpointingsmalltriangle=9657,a.whiterightpointingtriangle=9655,a.whitesmallsquare=9643,a.whitesmilingface=9786,a.whitesquare=9633,a.whitestar=9734,a.whitetelephone=9743,a.whitetortoiseshellbracketleft=12312,a.whitetortoiseshellbracketright=12313,a.whiteuppointingsmalltriangle=9653,a.whiteuppointingtriangle=9651,a.wihiragana=12432,a.wikatakana=12528,a.wikorean=12639,a.wmonospace=65367,a.wohiragana=12434,a.wokatakana=12530,a.wokatakanahalfwidth=65382,a.won=8361,a.wonmonospace=65510,a.wowaenthai=3623,a.wparen=9394,a.wring=7832,a.wsuperior=695,a.wturned=653,a.wynn=447,a.x=120,a.xabovecmb=829,a.xbopomofo=12562,a.xcircle=9447,a.xdieresis=7821,a.xdotaccent=7819,a.xeharmenian=1389,a.xi=958,a.xmonospace=65368,a.xparen=9395,a.xsuperior=739,a.y=121,a.yaadosquare=13134,a.yabengali=2479,a.yacute=253,a.yadeva=2351,a.yaekorean=12626,a.yagujarati=2735,a.yagurmukhi=2607,a.yahiragana=12420,a.yakatakana=12516,a.yakatakanahalfwidth=65428,a.yakorean=12625,a.yamakkanthai=3662,a.yasmallhiragana=12419,a.yasmallkatakana=12515,a.yasmallkatakanahalfwidth=65388,a.yatcyrillic=1123,a.ycircle=9448,a.ycircumflex=375,a.ydieresis=255,a.ydotaccent=7823,a.ydotbelow=7925,a.yeharabic=1610,a.yehbarreearabic=1746,a.yehbarreefinalarabic=64431,a.yehfinalarabic=65266,a.yehhamzaabovearabic=1574,a.yehhamzaabovefinalarabic=65162,a.yehhamzaaboveinitialarabic=65163,a.yehhamzaabovemedialarabic=65164,a.yehinitialarabic=65267,a.yehmedialarabic=65268,a.yehmeeminitialarabic=64733,a.yehmeemisolatedarabic=64600,a.yehnoonfinalarabic=64660,a.yehthreedotsbelowarabic=1745,a.yekorean=12630,a.yen=165,a.yenmonospace=65509,a.yeokorean=12629,a.yeorinhieuhkorean=12678,a.yerahbenyomohebrew=1450,a.yerahbenyomolefthebrew=1450,a.yericyrillic=1099,a.yerudieresiscyrillic=1273,a.yesieungkorean=12673,a.yesieungpansioskorean=12675,a.yesieungsioskorean=12674,a.yetivhebrew=1434,a.ygrave=7923,a.yhook=436,a.yhookabove=7927,a.yiarmenian=1397,a.yicyrillic=1111,a.yikorean=12642,a.yinyang=9775,a.yiwnarmenian=1410,a.ymonospace=65369,a.yod=1497,a.yoddagesh=64313,a.yoddageshhebrew=64313,a.yodhebrew=1497,a.yodyodhebrew=1522,a.yodyodpatahhebrew=64287,a.yohiragana=12424,a.yoikorean=12681,a.yokatakana=12520,a.yokatakanahalfwidth=65430,a.yokorean=12635,a.yosmallhiragana=12423,a.yosmallkatakana=12519,a.yosmallkatakanahalfwidth=65390,a.yotgreek=1011,a.yoyaekorean=12680,a.yoyakorean=12679,a.yoyakthai=3618,a.yoyingthai=3597,a.yparen=9396,a.ypogegrammeni=890,a.ypogegrammenigreekcmb=837,a.yr=422,a.yring=7833,a.ysuperior=696,a.ytilde=7929,a.yturned=654,a.yuhiragana=12422,a.yuikorean=12684,a.yukatakana=12518,a.yukatakanahalfwidth=65429,a.yukorean=12640,a.yusbigcyrillic=1131,a.yusbigiotifiedcyrillic=1133,a.yuslittlecyrillic=1127,a.yuslittleiotifiedcyrillic=1129,a.yusmallhiragana=12421,a.yusmallkatakana=12517,a.yusmallkatakanahalfwidth=65389,a.yuyekorean=12683,a.yuyeokorean=12682,a.yyabengali=2527,a.yyadeva=2399,a.z=122,a.zaarmenian=1382,a.zacute=378,a.zadeva=2395,a.zagurmukhi=2651,a.zaharabic=1592,a.zahfinalarabic=65222,a.zahinitialarabic=65223,a.zahiragana=12374,a.zahmedialarabic=65224,a.zainarabic=1586,a.zainfinalarabic=65200,a.zakatakana=12470,a.zaqefgadolhebrew=1429,a.zaqefqatanhebrew=1428,a.zarqahebrew=1432,a.zayin=1494,a.zayindagesh=64310,a.zayindageshhebrew=64310,a.zayinhebrew=1494,a.zbopomofo=12567,a.zcaron=382,a.zcircle=9449,a.zcircumflex=7825,a.zcurl=657,a.zdot=380,a.zdotaccent=380,a.zdotbelow=7827,a.zecyrillic=1079,a.zedescendercyrillic=1177,a.zedieresiscyrillic=1247,a.zehiragana=12380,a.zekatakana=12476,a.zero=48,a.zeroarabic=1632,a.zerobengali=2534,a.zerodeva=2406,a.zerogujarati=2790,a.zerogurmukhi=2662,a.zerohackarabic=1632,a.zeroinferior=8320,a.zeromonospace=65296,a.zerooldstyle=63280,a.zeropersian=1776,a.zerosuperior=8304,a.zerothai=3664,a.zerowidthjoiner=65279,a.zerowidthnonjoiner=8204,a.zerowidthspace=8203,a.zeta=950,a.zhbopomofo=12563,a.zhearmenian=1386,a.zhebrevecyrillic=1218,a.zhecyrillic=1078,a.zhedescendercyrillic=1175,a.zhedieresiscyrillic=1245,a.zihiragana=12376,a.zikatakana=12472,a.zinorhebrew=1454,a.zlinebelow=7829,a.zmonospace=65370,a.zohiragana=12382,a.zokatakana=12478,a.zparen=9397,a.zretroflexhook=656,a.zstroke=438,a.zuhiragana=12378,a.zukatakana=12474,a[".notdef"]=0,a.angbracketleftbig=9001,a.angbracketleftBig=9001,a.angbracketleftbigg=9001,a.angbracketleftBigg=9001,a.angbracketrightBig=9002,a.angbracketrightbig=9002,a.angbracketrightBigg=9002,a.angbracketrightbigg=9002,a.arrowhookleft=8618,a.arrowhookright=8617,a.arrowlefttophalf=8636,a.arrowleftbothalf=8637,a.arrownortheast=8599,a.arrownorthwest=8598,a.arrowrighttophalf=8640,a.arrowrightbothalf=8641,a.arrowsoutheast=8600,a.arrowsouthwest=8601,a.backslashbig=8726,a.backslashBig=8726,a.backslashBigg=8726,a.backslashbigg=8726,a.bardbl=8214,a.bracehtipdownleft=65079,a.bracehtipdownright=65079,a.bracehtipupleft=65080,a.bracehtipupright=65080,a.braceleftBig=123,a.braceleftbig=123,a.braceleftbigg=123,a.braceleftBigg=123,a.bracerightBig=125,a.bracerightbig=125,a.bracerightbigg=125,a.bracerightBigg=125,a.bracketleftbig=91,a.bracketleftBig=91,a.bracketleftbigg=91,a.bracketleftBigg=91,a.bracketrightBig=93,a.bracketrightbig=93,a.bracketrightbigg=93,a.bracketrightBigg=93,a.ceilingleftbig=8968,a.ceilingleftBig=8968,a.ceilingleftBigg=8968,a.ceilingleftbigg=8968,a.ceilingrightbig=8969,a.ceilingrightBig=8969,a.ceilingrightbigg=8969,a.ceilingrightBigg=8969,a.circledotdisplay=8857,a.circledottext=8857,a.circlemultiplydisplay=8855,a.circlemultiplytext=8855,a.circleplusdisplay=8853,a.circleplustext=8853,a.contintegraldisplay=8750,a.contintegraltext=8750,a.coproductdisplay=8720,a.coproducttext=8720,a.floorleftBig=8970,a.floorleftbig=8970,a.floorleftbigg=8970,a.floorleftBigg=8970,a.floorrightbig=8971,a.floorrightBig=8971,a.floorrightBigg=8971,a.floorrightbigg=8971,a.hatwide=770,a.hatwider=770,a.hatwidest=770,a.intercal=7488,a.integraldisplay=8747,a.integraltext=8747,a.intersectiondisplay=8898,a.intersectiontext=8898,a.logicalanddisplay=8743,a.logicalandtext=8743,a.logicalordisplay=8744,a.logicalortext=8744,a.parenleftBig=40,a.parenleftbig=40,a.parenleftBigg=40,a.parenleftbigg=40,a.parenrightBig=41,a.parenrightbig=41,a.parenrightBigg=41,a.parenrightbigg=41,a.prime=8242,a.productdisplay=8719,a.producttext=8719,a.radicalbig=8730,a.radicalBig=8730,a.radicalBigg=8730,a.radicalbigg=8730,a.radicalbt=8730,a.radicaltp=8730,a.radicalvertex=8730,a.slashbig=47,a.slashBig=47,a.slashBigg=47,a.slashbigg=47,a.summationdisplay=8721,a.summationtext=8721,a.tildewide=732,a.tildewider=732,a.tildewidest=732,a.uniondisplay=8899,a.unionmultidisplay=8846,a.unionmultitext=8846,a.unionsqdisplay=8852,a.unionsqtext=8852,a.uniontext=8899,a.vextenddouble=8741,a.vextendsingle=8739}),J=g(function(a){a.space=32,a.a1=9985,a.a2=9986,a.a202=9987,a.a3=9988,a.a4=9742,a.a5=9990,a.a119=9991,a.a118=9992,a.a117=9993,a.a11=9755,a.a12=9758,a.a13=9996,a.a14=9997,a.a15=9998,a.a16=9999,a.a105=1e4,a.a17=10001,a.a18=10002,a.a19=10003,a.a20=10004,a.a21=10005,a.a22=10006,a.a23=10007,a.a24=10008,a.a25=10009,a.a26=10010,a.a27=10011,a.a28=10012,a.a6=10013,a.a7=10014,a.a8=10015,a.a9=10016,a.a10=10017,a.a29=10018,a.a30=10019,a.a31=10020,a.a32=10021,a.a33=10022,a.a34=10023,a.a35=9733,a.a36=10025,a.a37=10026,a.a38=10027,a.a39=10028,a.a40=10029,a.a41=10030,a.a42=10031,a.a43=10032,a.a44=10033,a.a45=10034,a.a46=10035,a.a47=10036,a.a48=10037,a.a49=10038,a.a50=10039,a.a51=10040,a.a52=10041,a.a53=10042,a.a54=10043,a.a55=10044,a.a56=10045,a.a57=10046,a.a58=10047,a.a59=10048,a.a60=10049,a.a61=10050,a.a62=10051,a.a63=10052,a.a64=10053,a.a65=10054,a.a66=10055,a.a67=10056,a.a68=10057,a.a69=10058,a.a70=10059,a.a71=9679,a.a72=10061,a.a73=9632,a.a74=10063,a.a203=10064,a.a75=10065,a.a204=10066,a.a76=9650,a.a77=9660,a.a78=9670,a.a79=10070,a.a81=9687,a.a82=10072,a.a83=10073,a.a84=10074,a.a97=10075,a.a98=10076,a.a99=10077,a.a100=10078,a.a101=10081,a.a102=10082,a.a103=10083,a.a104=10084,a.a106=10085,a.a107=10086,a.a108=10087,a.a112=9827,a.a111=9830,a.a110=9829,a.a109=9824,a.a120=9312,a.a121=9313,a.a122=9314,a.a123=9315,a.a124=9316,a.a125=9317,a.a126=9318,a.a127=9319,a.a128=9320,a.a129=9321,a.a130=10102,a.a131=10103,a.a132=10104,a.a133=10105,a.a134=10106,a.a135=10107,a.a136=10108,a.a137=10109,a.a138=10110,a.a139=10111,a.a140=10112,a.a141=10113,a.a142=10114,a.a143=10115,a.a144=10116,a.a145=10117,a.a146=10118,a.a147=10119,a.a148=10120,a.a149=10121,a.a150=10122,a.a151=10123,a.a152=10124,a.a153=10125,a.a154=10126,a.a155=10127,a.a156=10128,a.a157=10129,a.a158=10130,a.a159=10131,a.a160=10132,a.a161=8594,a.a163=8596,a.a164=8597,a.a196=10136,a.a165=10137,a.a192=10138,a.a166=10139,a.a167=10140,a.a168=10141,a.a169=10142,a.a170=10143,a.a171=10144,a.a172=10145,a.a173=10146,a.a162=10147,a.a174=10148,a.a175=10149,a.a176=10150,a.a177=10151,a.a178=10152,a.a179=10153,a.a193=10154,a.a180=10155,a.a199=10156,a.a181=10157,a.a200=10158,a.a182=10159,a.a201=10161,a.a183=10162,a.a184=10163,a.a197=10164,a.a185=10165,a.a194=10166,a.a198=10167,a.a186=10168,a.a195=10169,a.a187=10170,a.a188=10171,a.a189=10172,a.a190=10173,a.a191=10174,a.a89=10088,a.a90=10089,a.a93=10090,a.a94=10091,a.a91=10092,a.a92=10093,a.a205=10094,a.a85=10095,a.a206=10096,a.a86=10097,a.a87=10098,a.a88=10099,a.a95=10100,a.a96=10101,a[".notdef"]=0});d.getGlyphsUnicode=O,d.getDingbatsGlyphsUnicode=J},function(S,d,R){Object.defineProperty(d,"__esModule",{value:!0}),d.getSupplementalGlyphMapForCalibri=d.getSupplementalGlyphMapForArialBlack=d.getGlyphMapForStandardFonts=d.getSymbolsFonts=d.getSerifFonts=d.getNonStdFontMap=d.getStdFontMap=void 0;var g=R(8);const O=(0,g.getLookupTableFactory)(function(m){m.ArialNarrow="Helvetica",m["ArialNarrow-Bold"]="Helvetica-Bold",m["ArialNarrow-BoldItalic"]="Helvetica-BoldOblique",m["ArialNarrow-Italic"]="Helvetica-Oblique",m.ArialBlack="Helvetica",m["ArialBlack-Bold"]="Helvetica-Bold",m["ArialBlack-BoldItalic"]="Helvetica-BoldOblique",m["ArialBlack-Italic"]="Helvetica-Oblique",m["Arial-Black"]="Helvetica",m["Arial-Black-Bold"]="Helvetica-Bold",m["Arial-Black-BoldItalic"]="Helvetica-BoldOblique",m["Arial-Black-Italic"]="Helvetica-Oblique",m.Arial="Helvetica",m["Arial-Bold"]="Helvetica-Bold",m["Arial-BoldItalic"]="Helvetica-BoldOblique",m["Arial-Italic"]="Helvetica-Oblique",m["Arial-BoldItalicMT"]="Helvetica-BoldOblique",m["Arial-BoldMT"]="Helvetica-Bold",m["Arial-ItalicMT"]="Helvetica-Oblique",m.ArialMT="Helvetica",m["Courier-Bold"]="Courier-Bold",m["Courier-BoldItalic"]="Courier-BoldOblique",m["Courier-Italic"]="Courier-Oblique",m.CourierNew="Courier",m["CourierNew-Bold"]="Courier-Bold",m["CourierNew-BoldItalic"]="Courier-BoldOblique",m["CourierNew-Italic"]="Courier-Oblique",m["CourierNewPS-BoldItalicMT"]="Courier-BoldOblique",m["CourierNewPS-BoldMT"]="Courier-Bold",m["CourierNewPS-ItalicMT"]="Courier-Oblique",m.CourierNewPSMT="Courier",m.Helvetica="Helvetica",m["Helvetica-Bold"]="Helvetica-Bold",m["Helvetica-BoldItalic"]="Helvetica-BoldOblique",m["Helvetica-BoldOblique"]="Helvetica-BoldOblique",m["Helvetica-Italic"]="Helvetica-Oblique",m["Helvetica-Oblique"]="Helvetica-Oblique",m["Symbol-Bold"]="Symbol",m["Symbol-BoldItalic"]="Symbol",m["Symbol-Italic"]="Symbol",m.TimesNewRoman="Times-Roman",m["TimesNewRoman-Bold"]="Times-Bold",m["TimesNewRoman-BoldItalic"]="Times-BoldItalic",m["TimesNewRoman-Italic"]="Times-Italic",m.TimesNewRomanPS="Times-Roman",m["TimesNewRomanPS-Bold"]="Times-Bold",m["TimesNewRomanPS-BoldItalic"]="Times-BoldItalic",m["TimesNewRomanPS-BoldItalicMT"]="Times-BoldItalic",m["TimesNewRomanPS-BoldMT"]="Times-Bold",m["TimesNewRomanPS-Italic"]="Times-Italic",m["TimesNewRomanPS-ItalicMT"]="Times-Italic",m.TimesNewRomanPSMT="Times-Roman",m["TimesNewRomanPSMT-Bold"]="Times-Bold",m["TimesNewRomanPSMT-BoldItalic"]="Times-BoldItalic",m["TimesNewRomanPSMT-Italic"]="Times-Italic"});d.getStdFontMap=O;const J=(0,g.getLookupTableFactory)(function(m){m.Calibri="Helvetica",m["Calibri-Bold"]="Helvetica-Bold",m["Calibri-BoldItalic"]="Helvetica-BoldOblique",m["Calibri-Italic"]="Helvetica-Oblique",m.CenturyGothic="Helvetica",m["CenturyGothic-Bold"]="Helvetica-Bold",m["CenturyGothic-BoldItalic"]="Helvetica-BoldOblique",m["CenturyGothic-Italic"]="Helvetica-Oblique",m.ComicSansMS="Comic Sans MS",m["ComicSansMS-Bold"]="Comic Sans MS-Bold",m["ComicSansMS-BoldItalic"]="Comic Sans MS-BoldItalic",m["ComicSansMS-Italic"]="Comic Sans MS-Italic",m.LucidaConsole="Courier",m["LucidaConsole-Bold"]="Courier-Bold",m["LucidaConsole-BoldItalic"]="Courier-BoldOblique",m["LucidaConsole-Italic"]="Courier-Oblique",m["LucidaSans-Demi"]="Helvetica-Bold",m["MS-Gothic"]="MS Gothic",m["MS-Gothic-Bold"]="MS Gothic-Bold",m["MS-Gothic-BoldItalic"]="MS Gothic-BoldItalic",m["MS-Gothic-Italic"]="MS Gothic-Italic",m["MS-Mincho"]="MS Mincho",m["MS-Mincho-Bold"]="MS Mincho-Bold",m["MS-Mincho-BoldItalic"]="MS Mincho-BoldItalic",m["MS-Mincho-Italic"]="MS Mincho-Italic",m["MS-PGothic"]="MS PGothic",m["MS-PGothic-Bold"]="MS PGothic-Bold",m["MS-PGothic-BoldItalic"]="MS PGothic-BoldItalic",m["MS-PGothic-Italic"]="MS PGothic-Italic",m["MS-PMincho"]="MS PMincho",m["MS-PMincho-Bold"]="MS PMincho-Bold",m["MS-PMincho-BoldItalic"]="MS PMincho-BoldItalic",m["MS-PMincho-Italic"]="MS PMincho-Italic",m.NuptialScript="Times-Italic",m.SegoeUISymbol="Helvetica",m.Wingdings="ZapfDingbats",m["Wingdings-Regular"]="ZapfDingbats"});d.getNonStdFontMap=J;const a=(0,g.getLookupTableFactory)(function(m){m["Adobe Jenson"]=!0,m["Adobe Text"]=!0,m.Albertus=!0,m.Aldus=!0,m.Alexandria=!0,m.Algerian=!0,m["American Typewriter"]=!0,m.Antiqua=!0,m.Apex=!0,m.Arno=!0,m.Aster=!0,m.Aurora=!0,m.Baskerville=!0,m.Bell=!0,m.Bembo=!0,m["Bembo Schoolbook"]=!0,m.Benguiat=!0,m["Berkeley Old Style"]=!0,m["Bernhard Modern"]=!0,m["Berthold City"]=!0,m.Bodoni=!0,m["Bauer Bodoni"]=!0,m["Book Antiqua"]=!0,m.Bookman=!0,m["Bordeaux Roman"]=!0,m["Californian FB"]=!0,m.Calisto=!0,m.Calvert=!0,m.Capitals=!0,m.Cambria=!0,m.Cartier=!0,m.Caslon=!0,m.Catull=!0,m.Centaur=!0,m["Century Old Style"]=!0,m["Century Schoolbook"]=!0,m.Chaparral=!0,m["Charis SIL"]=!0,m.Cheltenham=!0,m["Cholla Slab"]=!0,m.Clarendon=!0,m.Clearface=!0,m.Cochin=!0,m.Colonna=!0,m["Computer Modern"]=!0,m["Concrete Roman"]=!0,m.Constantia=!0,m["Cooper Black"]=!0,m.Corona=!0,m.Ecotype=!0,m.Egyptienne=!0,m.Elephant=!0,m.Excelsior=!0,m.Fairfield=!0,m["FF Scala"]=!0,m.Folkard=!0,m.Footlight=!0,m.FreeSerif=!0,m["Friz Quadrata"]=!0,m.Garamond=!0,m.Gentium=!0,m.Georgia=!0,m.Gloucester=!0,m["Goudy Old Style"]=!0,m["Goudy Schoolbook"]=!0,m["Goudy Pro Font"]=!0,m.Granjon=!0,m["Guardian Egyptian"]=!0,m.Heather=!0,m.Hercules=!0,m["High Tower Text"]=!0,m.Hiroshige=!0,m["Hoefler Text"]=!0,m["Humana Serif"]=!0,m.Imprint=!0,m["Ionic No. 5"]=!0,m.Janson=!0,m.Joanna=!0,m.Korinna=!0,m.Lexicon=!0,m["Liberation Serif"]=!0,m["Linux Libertine"]=!0,m.Literaturnaya=!0,m.Lucida=!0,m["Lucida Bright"]=!0,m.Melior=!0,m.Memphis=!0,m.Miller=!0,m.Minion=!0,m.Modern=!0,m["Mona Lisa"]=!0,m["Mrs Eaves"]=!0,m["MS Serif"]=!0,m["Museo Slab"]=!0,m["New York"]=!0,m["Nimbus Roman"]=!0,m["NPS Rawlinson Roadway"]=!0,m.NuptialScript=!0,m.Palatino=!0,m.Perpetua=!0,m.Plantin=!0,m["Plantin Schoolbook"]=!0,m.Playbill=!0,m["Poor Richard"]=!0,m["Rawlinson Roadway"]=!0,m.Renault=!0,m.Requiem=!0,m.Rockwell=!0,m.Roman=!0,m["Rotis Serif"]=!0,m.Sabon=!0,m.Scala=!0,m.Seagull=!0,m.Sistina=!0,m.Souvenir=!0,m.STIX=!0,m["Stone Informal"]=!0,m["Stone Serif"]=!0,m.Sylfaen=!0,m.Times=!0,m.Trajan=!0,m.Trinit\u00E9=!0,m["Trump Mediaeval"]=!0,m.Utopia=!0,m["Vale Type"]=!0,m["Bitstream Vera"]=!0,m["Vera Serif"]=!0,m.Versailles=!0,m.Wanted=!0,m.Weiss=!0,m["Wide Latin"]=!0,m.Windsor=!0,m.XITS=!0});d.getSerifFonts=a;const se=(0,g.getLookupTableFactory)(function(m){m.Dingbats=!0,m.Symbol=!0,m.ZapfDingbats=!0});d.getSymbolsFonts=se;const H=(0,g.getLookupTableFactory)(function(m){m[2]=10,m[3]=32,m[4]=33,m[5]=34,m[6]=35,m[7]=36,m[8]=37,m[9]=38,m[10]=39,m[11]=40,m[12]=41,m[13]=42,m[14]=43,m[15]=44,m[16]=45,m[17]=46,m[18]=47,m[19]=48,m[20]=49,m[21]=50,m[22]=51,m[23]=52,m[24]=53,m[25]=54,m[26]=55,m[27]=56,m[28]=57,m[29]=58,m[30]=894,m[31]=60,m[32]=61,m[33]=62,m[34]=63,m[35]=64,m[36]=65,m[37]=66,m[38]=67,m[39]=68,m[40]=69,m[41]=70,m[42]=71,m[43]=72,m[44]=73,m[45]=74,m[46]=75,m[47]=76,m[48]=77,m[49]=78,m[50]=79,m[51]=80,m[52]=81,m[53]=82,m[54]=83,m[55]=84,m[56]=85,m[57]=86,m[58]=87,m[59]=88,m[60]=89,m[61]=90,m[62]=91,m[63]=92,m[64]=93,m[65]=94,m[66]=95,m[67]=96,m[68]=97,m[69]=98,m[70]=99,m[71]=100,m[72]=101,m[73]=102,m[74]=103,m[75]=104,m[76]=105,m[77]=106,m[78]=107,m[79]=108,m[80]=109,m[81]=110,m[82]=111,m[83]=112,m[84]=113,m[85]=114,m[86]=115,m[87]=116,m[88]=117,m[89]=118,m[90]=119,m[91]=120,m[92]=121,m[93]=122,m[94]=123,m[95]=124,m[96]=125,m[97]=126,m[98]=196,m[99]=197,m[100]=199,m[101]=201,m[102]=209,m[103]=214,m[104]=220,m[105]=225,m[106]=224,m[107]=226,m[108]=228,m[109]=227,m[110]=229,m[111]=231,m[112]=233,m[113]=232,m[114]=234,m[115]=235,m[116]=237,m[117]=236,m[118]=238,m[119]=239,m[120]=241,m[121]=243,m[122]=242,m[123]=244,m[124]=246,m[125]=245,m[126]=250,m[127]=249,m[128]=251,m[129]=252,m[130]=8224,m[131]=176,m[132]=162,m[133]=163,m[134]=167,m[135]=8226,m[136]=182,m[137]=223,m[138]=174,m[139]=169,m[140]=8482,m[141]=180,m[142]=168,m[143]=8800,m[144]=198,m[145]=216,m[146]=8734,m[147]=177,m[148]=8804,m[149]=8805,m[150]=165,m[151]=181,m[152]=8706,m[153]=8721,m[154]=8719,m[156]=8747,m[157]=170,m[158]=186,m[159]=8486,m[160]=230,m[161]=248,m[162]=191,m[163]=161,m[164]=172,m[165]=8730,m[166]=402,m[167]=8776,m[168]=8710,m[169]=171,m[170]=187,m[171]=8230,m[210]=218,m[223]=711,m[224]=321,m[225]=322,m[227]=353,m[229]=382,m[234]=253,m[252]=263,m[253]=268,m[254]=269,m[258]=258,m[260]=260,m[261]=261,m[265]=280,m[266]=281,m[268]=283,m[269]=313,m[275]=323,m[276]=324,m[278]=328,m[284]=345,m[285]=346,m[286]=347,m[292]=367,m[295]=377,m[296]=378,m[298]=380,m[305]=963,m[306]=964,m[307]=966,m[308]=8215,m[309]=8252,m[310]=8319,m[311]=8359,m[312]=8592,m[313]=8593,m[337]=9552,m[493]=1039,m[494]=1040,m[705]=1524,m[706]=8362,m[710]=64288,m[711]=64298,m[759]=1617,m[761]=1776,m[763]=1778,m[775]=1652,m[777]=1764,m[778]=1780,m[779]=1781,m[780]=1782,m[782]=771,m[783]=64726,m[786]=8363,m[788]=8532,m[790]=768,m[791]=769,m[792]=768,m[795]=803,m[797]=64336,m[798]=64337,m[799]=64342,m[800]=64343,m[801]=64344,m[802]=64345,m[803]=64362,m[804]=64363,m[805]=64364,m[2424]=7821,m[2425]=7822,m[2426]=7823,m[2427]=7824,m[2428]=7825,m[2429]=7826,m[2430]=7827,m[2433]=7682,m[2678]=8045,m[2679]=8046,m[2830]=1552,m[2838]=686,m[2840]=751,m[2842]=753,m[2843]=754,m[2844]=755,m[2846]=757,m[2856]=767,m[2857]=848,m[2858]=849,m[2862]=853,m[2863]=854,m[2864]=855,m[2865]=861,m[2866]=862,m[2906]=7460,m[2908]=7462,m[2909]=7463,m[2910]=7464,m[2912]=7466,m[2913]=7467,m[2914]=7468,m[2916]=7470,m[2917]=7471,m[2918]=7472,m[2920]=7474,m[2921]=7475,m[2922]=7476,m[2924]=7478,m[2925]=7479,m[2926]=7480,m[2928]=7482,m[2929]=7483,m[2930]=7484,m[2932]=7486,m[2933]=7487,m[2934]=7488,m[2936]=7490,m[2937]=7491,m[2938]=7492,m[2940]=7494,m[2941]=7495,m[2942]=7496,m[2944]=7498,m[2946]=7500,m[2948]=7502,m[2950]=7504,m[2951]=7505,m[2952]=7506,m[2954]=7508,m[2955]=7509,m[2956]=7510,m[2958]=7512,m[2959]=7513,m[2960]=7514,m[2962]=7516,m[2963]=7517,m[2964]=7518,m[2966]=7520,m[2967]=7521,m[2968]=7522,m[2970]=7524,m[2971]=7525,m[2972]=7526,m[2974]=7528,m[2975]=7529,m[2976]=7530,m[2978]=1537,m[2979]=1538,m[2980]=1539,m[2982]=1549,m[2983]=1551,m[2984]=1552,m[2986]=1554,m[2987]=1555,m[2988]=1556,m[2990]=1623,m[2991]=1624,m[2995]=1775,m[2999]=1791,m[3002]=64290,m[3003]=64291,m[3004]=64292,m[3006]=64294,m[3007]=64295,m[3008]=64296,m[3011]=1900,m[3014]=8223,m[3015]=8244,m[3017]=7532,m[3018]=7533,m[3019]=7534,m[3075]=7590,m[3076]=7591,m[3079]=7594,m[3080]=7595,m[3083]=7598,m[3084]=7599,m[3087]=7602,m[3088]=7603,m[3091]=7606,m[3092]=7607,m[3095]=7610,m[3096]=7611,m[3099]=7614,m[3100]=7615,m[3103]=7618,m[3104]=7619,m[3107]=8337,m[3108]=8338,m[3116]=1884,m[3119]=1885,m[3120]=1885,m[3123]=1886,m[3124]=1886,m[3127]=1887,m[3128]=1887,m[3131]=1888,m[3132]=1888,m[3135]=1889,m[3136]=1889,m[3139]=1890,m[3140]=1890,m[3143]=1891,m[3144]=1891,m[3147]=1892,m[3148]=1892,m[3153]=580,m[3154]=581,m[3157]=584,m[3158]=585,m[3161]=588,m[3162]=589,m[3165]=891,m[3166]=892,m[3169]=1274,m[3170]=1275,m[3173]=1278,m[3174]=1279,m[3181]=7622,m[3182]=7623,m[3282]=11799,m[3316]=578,m[3379]=42785,m[3393]=1159,m[3416]=8377});d.getGlyphMapForStandardFonts=H;const ee=(0,g.getLookupTableFactory)(function(m){m[227]=322,m[264]=261,m[291]=346});d.getSupplementalGlyphMapForArialBlack=ee;const ie=(0,g.getLookupTableFactory)(function(m){m[1]=32,m[4]=65,m[17]=66,m[18]=67,m[24]=68,m[28]=69,m[38]=70,m[39]=71,m[44]=72,m[47]=73,m[58]=74,m[60]=75,m[62]=76,m[68]=77,m[69]=78,m[75]=79,m[87]=80,m[89]=81,m[90]=82,m[94]=83,m[100]=84,m[104]=85,m[115]=86,m[116]=87,m[121]=88,m[122]=89,m[127]=90,m[258]=97,m[268]=261,m[271]=98,m[272]=99,m[273]=263,m[282]=100,m[286]=101,m[295]=281,m[296]=102,m[336]=103,m[346]=104,m[349]=105,m[361]=106,m[364]=107,m[367]=108,m[371]=322,m[373]=109,m[374]=110,m[381]=111,m[383]=243,m[393]=112,m[395]=113,m[396]=114,m[400]=115,m[401]=347,m[410]=116,m[437]=117,m[448]=118,m[449]=119,m[454]=120,m[455]=121,m[460]=122,m[463]=380,m[853]=44,m[855]=58,m[856]=46,m[876]=47,m[878]=45,m[882]=45,m[894]=40,m[895]=41,m[896]=91,m[897]=93,m[923]=64,m[1004]=48,m[1005]=49,m[1006]=50,m[1007]=51,m[1008]=52,m[1009]=53,m[1010]=54,m[1011]=55,m[1012]=56,m[1013]=57,m[1081]=37,m[1085]=43,m[1086]=45});d.getSupplementalGlyphMapForCalibri=ie},function(S,d,R){var g=R(8).getLookupTableFactory,O=g(function(u){u[63721]=169,u[63193]=169,u[63720]=174,u[63194]=174,u[63722]=8482,u[63195]=8482,u[63729]=9127,u[63730]=9128,u[63731]=9129,u[63740]=9131,u[63741]=9132,u[63742]=9133,u[63726]=9121,u[63727]=9122,u[63728]=9123,u[63737]=9124,u[63738]=9125,u[63739]=9126,u[63723]=9115,u[63724]=9116,u[63725]=9117,u[63734]=9118,u[63735]=9119,u[63736]=9120});function J(u){return u>=65520&&u<=65535?0:u>=62976&&u<=63743?O()[u]||u:u===173?45:u}function a(u,Y){var re=Y[u];if(re!==void 0)return re;if(!u)return-1;if(u[0]==="u"){var U=u.length,X;if(U===7&&u[1]==="n"&&u[2]==="i")X=u.substring(3);else if(U>=5&&U<=7)X=u.substring(1);else return-1;if(X===X.toUpperCase()&&(re=parseInt(X,16),re>=0))return re}return-1}var se=[{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}];function H(u){for(var Y=0,re=se.length;Y<re;Y++){var U=se[Y];if(u>=U.begin&&u<U.end)return Y}return-1}function ee(u){var Y=se[13];return u>=Y.begin&&u<Y.end||(Y=se[11],u>=Y.begin&&u<Y.end)}var ie=g(function(u){u["\xA8"]=" \u0308",u["\xAF"]=" \u0304",u["\xB4"]=" \u0301",u.\u00B5="\u03BC",u["\xB8"]=" \u0327",u.\u0132="IJ",u.\u0133="ij",u.\u013F="L\xB7",u.\u0140="l\xB7",u.\u0149="\u02BCn",u.\u017F="s",u.\u01C4="D\u017D",u.\u01C5="D\u017E",u.\u01C6="d\u017E",u.\u01C7="LJ",u.\u01C8="Lj",u.\u01C9="lj",u.\u01CA="NJ",u.\u01CB="Nj",u.\u01CC="nj",u.\u01F1="DZ",u.\u01F2="Dz",u.\u01F3="dz",u["\u02D8"]=" \u0306",u["\u02D9"]=" \u0307",u["\u02DA"]=" \u030A",u["\u02DB"]=" \u0328",u["\u02DC"]=" \u0303",u["\u02DD"]=" \u030B",u.\u037A=" \u0345",u["\u0384"]=" \u0301",u.\u03D0="\u03B2",u.\u03D1="\u03B8",u.\u03D2="\u03A5",u.\u03D5="\u03C6",u.\u03D6="\u03C0",u.\u03F0="\u03BA",u.\u03F1="\u03C1",u.\u03F2="\u03C2",u["\u03F4"]="\u0398",u["\u03F5"]="\u03B5",u["\u03F9"]="\u03A3",u.\u0587="\u0565\u0582",u.\u0675="\u0627\u0674",u.\u0676="\u0648\u0674",u.\u0677="\u06C7\u0674",u.\u0678="\u064A\u0674",u.\u0E33="\u0E4D\u0E32",u.\u0EB3="\u0ECD\u0EB2",u.\u0EDC="\u0EAB\u0E99",u.\u0EDD="\u0EAB\u0EA1",u["\u0F77"]="\u0FB2\u0F81",u["\u0F79"]="\u0FB3\u0F81",u.\u1E9A="a\u02BE",u["\u1FBD"]=" \u0313",u["\u1FBF"]=" \u0313",u["\u1FC0"]=" \u0342",u["\u1FFE"]=" \u0314",u["\u2002"]=" ",u["\u2003"]=" ",u["\u2004"]=" ",u["\u2005"]=" ",u["\u2006"]=" ",u["\u2008"]=" ",u["\u2009"]=" ",u["\u200A"]=" ",u["\u2017"]=" \u0333",u["\u2024"]=".",u["\u2025"]="..",u["\u2026"]="...",u["\u2033"]="\u2032\u2032",u["\u2034"]="\u2032\u2032\u2032",u["\u2036"]="\u2035\u2035",u["\u2037"]="\u2035\u2035\u2035",u["\u203C"]="!!",u["\u203E"]=" \u0305",u["\u2047"]="??",u["\u2048"]="?!",u["\u2049"]="!?",u["\u2057"]="\u2032\u2032\u2032\u2032",u["\u205F"]=" ",u["\u20A8"]="Rs",u["\u2100"]="a/c",u["\u2101"]="a/s",u["\u2103"]="\xB0C",u["\u2105"]="c/o",u["\u2106"]="c/u",u.\u2107="\u0190",u["\u2109"]="\xB0F",u["\u2116"]="No",u["\u2121"]="TEL",u.\u2135="\u05D0",u.\u2136="\u05D1",u.\u2137="\u05D2",u.\u2138="\u05D3",u["\u213B"]="FAX",u["\u2160"]="I",u["\u2161"]="II",u["\u2162"]="III",u["\u2163"]="IV",u["\u2164"]="V",u["\u2165"]="VI",u["\u2166"]="VII",u["\u2167"]="VIII",u["\u2168"]="IX",u["\u2169"]="X",u["\u216A"]="XI",u["\u216B"]="XII",u["\u216C"]="L",u["\u216D"]="C",u["\u216E"]="D",u["\u216F"]="M",u["\u2170"]="i",u["\u2171"]="ii",u["\u2172"]="iii",u["\u2173"]="iv",u["\u2174"]="v",u["\u2175"]="vi",u["\u2176"]="vii",u["\u2177"]="viii",u["\u2178"]="ix",u["\u2179"]="x",u["\u217A"]="xi",u["\u217B"]="xii",u["\u217C"]="l",u["\u217D"]="c",u["\u217E"]="d",u["\u217F"]="m",u["\u222C"]="\u222B\u222B",u["\u222D"]="\u222B\u222B\u222B",u["\u222F"]="\u222E\u222E",u["\u2230"]="\u222E\u222E\u222E",u["\u2474"]="(1)",u["\u2475"]="(2)",u["\u2476"]="(3)",u["\u2477"]="(4)",u["\u2478"]="(5)",u["\u2479"]="(6)",u["\u247A"]="(7)",u["\u247B"]="(8)",u["\u247C"]="(9)",u["\u247D"]="(10)",u["\u247E"]="(11)",u["\u247F"]="(12)",u["\u2480"]="(13)",u["\u2481"]="(14)",u["\u2482"]="(15)",u["\u2483"]="(16)",u["\u2484"]="(17)",u["\u2485"]="(18)",u["\u2486"]="(19)",u["\u2487"]="(20)",u["\u2488"]="1.",u["\u2489"]="2.",u["\u248A"]="3.",u["\u248B"]="4.",u["\u248C"]="5.",u["\u248D"]="6.",u["\u248E"]="7.",u["\u248F"]="8.",u["\u2490"]="9.",u["\u2491"]="10.",u["\u2492"]="11.",u["\u2493"]="12.",u["\u2494"]="13.",u["\u2495"]="14.",u["\u2496"]="15.",u["\u2497"]="16.",u["\u2498"]="17.",u["\u2499"]="18.",u["\u249A"]="19.",u["\u249B"]="20.",u["\u249C"]="(a)",u["\u249D"]="(b)",u["\u249E"]="(c)",u["\u249F"]="(d)",u["\u24A0"]="(e)",u["\u24A1"]="(f)",u["\u24A2"]="(g)",u["\u24A3"]="(h)",u["\u24A4"]="(i)",u["\u24A5"]="(j)",u["\u24A6"]="(k)",u["\u24A7"]="(l)",u["\u24A8"]="(m)",u["\u24A9"]="(n)",u["\u24AA"]="(o)",u["\u24AB"]="(p)",u["\u24AC"]="(q)",u["\u24AD"]="(r)",u["\u24AE"]="(s)",u["\u24AF"]="(t)",u["\u24B0"]="(u)",u["\u24B1"]="(v)",u["\u24B2"]="(w)",u["\u24B3"]="(x)",u["\u24B4"]="(y)",u["\u24B5"]="(z)",u["\u2A0C"]="\u222B\u222B\u222B\u222B",u["\u2A74"]="::=",u["\u2A75"]="==",u["\u2A76"]="===",u["\u2E9F"]="\u6BCD",u["\u2EF3"]="\u9F9F",u["\u2F00"]="\u4E00",u["\u2F01"]="\u4E28",u["\u2F02"]="\u4E36",u["\u2F03"]="\u4E3F",u["\u2F04"]="\u4E59",u["\u2F05"]="\u4E85",u["\u2F06"]="\u4E8C",u["\u2F07"]="\u4EA0",u["\u2F08"]="\u4EBA",u["\u2F09"]="\u513F",u["\u2F0A"]="\u5165",u["\u2F0B"]="\u516B",u["\u2F0C"]="\u5182",u["\u2F0D"]="\u5196",u["\u2F0E"]="\u51AB",u["\u2F0F"]="\u51E0",u["\u2F10"]="\u51F5",u["\u2F11"]="\u5200",u["\u2F12"]="\u529B",u["\u2F13"]="\u52F9",u["\u2F14"]="\u5315",u["\u2F15"]="\u531A",u["\u2F16"]="\u5338",u["\u2F17"]="\u5341",u["\u2F18"]="\u535C",u["\u2F19"]="\u5369",u["\u2F1A"]="\u5382",u["\u2F1B"]="\u53B6",u["\u2F1C"]="\u53C8",u["\u2F1D"]="\u53E3",u["\u2F1E"]="\u56D7",u["\u2F1F"]="\u571F",u["\u2F20"]="\u58EB",u["\u2F21"]="\u5902",u["\u2F22"]="\u590A",u["\u2F23"]="\u5915",u["\u2F24"]="\u5927",u["\u2F25"]="\u5973",u["\u2F26"]="\u5B50",u["\u2F27"]="\u5B80",u["\u2F28"]="\u5BF8",u["\u2F29"]="\u5C0F",u["\u2F2A"]="\u5C22",u["\u2F2B"]="\u5C38",u["\u2F2C"]="\u5C6E",u["\u2F2D"]="\u5C71",u["\u2F2E"]="\u5DDB",u["\u2F2F"]="\u5DE5",u["\u2F30"]="\u5DF1",u["\u2F31"]="\u5DFE",u["\u2F32"]="\u5E72",u["\u2F33"]="\u5E7A",u["\u2F34"]="\u5E7F",u["\u2F35"]="\u5EF4",u["\u2F36"]="\u5EFE",u["\u2F37"]="\u5F0B",u["\u2F38"]="\u5F13",u["\u2F39"]="\u5F50",u["\u2F3A"]="\u5F61",u["\u2F3B"]="\u5F73",u["\u2F3C"]="\u5FC3",u["\u2F3D"]="\u6208",u["\u2F3E"]="\u6236",u["\u2F3F"]="\u624B",u["\u2F40"]="\u652F",u["\u2F41"]="\u6534",u["\u2F42"]="\u6587",u["\u2F43"]="\u6597",u["\u2F44"]="\u65A4",u["\u2F45"]="\u65B9",u["\u2F46"]="\u65E0",u["\u2F47"]="\u65E5",u["\u2F48"]="\u66F0",u["\u2F49"]="\u6708",u["\u2F4A"]="\u6728",u["\u2F4B"]="\u6B20",u["\u2F4C"]="\u6B62",u["\u2F4D"]="\u6B79",u["\u2F4E"]="\u6BB3",u["\u2F4F"]="\u6BCB",u["\u2F50"]="\u6BD4",u["\u2F51"]="\u6BDB",u["\u2F52"]="\u6C0F",u["\u2F53"]="\u6C14",u["\u2F54"]="\u6C34",u["\u2F55"]="\u706B",u["\u2F56"]="\u722A",u["\u2F57"]="\u7236",u["\u2F58"]="\u723B",u["\u2F59"]="\u723F",u["\u2F5A"]="\u7247",u["\u2F5B"]="\u7259",u["\u2F5C"]="\u725B",u["\u2F5D"]="\u72AC",u["\u2F5E"]="\u7384",u["\u2F5F"]="\u7389",u["\u2F60"]="\u74DC",u["\u2F61"]="\u74E6",u["\u2F62"]="\u7518",u["\u2F63"]="\u751F",u["\u2F64"]="\u7528",u["\u2F65"]="\u7530",u["\u2F66"]="\u758B",u["\u2F67"]="\u7592",u["\u2F68"]="\u7676",u["\u2F69"]="\u767D",u["\u2F6A"]="\u76AE",u["\u2F6B"]="\u76BF",u["\u2F6C"]="\u76EE",u["\u2F6D"]="\u77DB",u["\u2F6E"]="\u77E2",u["\u2F6F"]="\u77F3",u["\u2F70"]="\u793A",u["\u2F71"]="\u79B8",u["\u2F72"]="\u79BE",u["\u2F73"]="\u7A74",u["\u2F74"]="\u7ACB",u["\u2F75"]="\u7AF9",u["\u2F76"]="\u7C73",u["\u2F77"]="\u7CF8",u["\u2F78"]="\u7F36",u["\u2F79"]="\u7F51",u["\u2F7A"]="\u7F8A",u["\u2F7B"]="\u7FBD",u["\u2F7C"]="\u8001",u["\u2F7D"]="\u800C",u["\u2F7E"]="\u8012",u["\u2F7F"]="\u8033",u["\u2F80"]="\u807F",u["\u2F81"]="\u8089",u["\u2F82"]="\u81E3",u["\u2F83"]="\u81EA",u["\u2F84"]="\u81F3",u["\u2F85"]="\u81FC",u["\u2F86"]="\u820C",u["\u2F87"]="\u821B",u["\u2F88"]="\u821F",u["\u2F89"]="\u826E",u["\u2F8A"]="\u8272",u["\u2F8B"]="\u8278",u["\u2F8C"]="\u864D",u["\u2F8D"]="\u866B",u["\u2F8E"]="\u8840",u["\u2F8F"]="\u884C",u["\u2F90"]="\u8863",u["\u2F91"]="\u897E",u["\u2F92"]="\u898B",u["\u2F93"]="\u89D2",u["\u2F94"]="\u8A00",u["\u2F95"]="\u8C37",u["\u2F96"]="\u8C46",u["\u2F97"]="\u8C55",u["\u2F98"]="\u8C78",u["\u2F99"]="\u8C9D",u["\u2F9A"]="\u8D64",u["\u2F9B"]="\u8D70",u["\u2F9C"]="\u8DB3",u["\u2F9D"]="\u8EAB",u["\u2F9E"]="\u8ECA",u["\u2F9F"]="\u8F9B",u["\u2FA0"]="\u8FB0",u["\u2FA1"]="\u8FB5",u["\u2FA2"]="\u9091",u["\u2FA3"]="\u9149",u["\u2FA4"]="\u91C6",u["\u2FA5"]="\u91CC",u["\u2FA6"]="\u91D1",u["\u2FA7"]="\u9577",u["\u2FA8"]="\u9580",u["\u2FA9"]="\u961C",u["\u2FAA"]="\u96B6",u["\u2FAB"]="\u96B9",u["\u2FAC"]="\u96E8",u["\u2FAD"]="\u9751",u["\u2FAE"]="\u975E",u["\u2FAF"]="\u9762",u["\u2FB0"]="\u9769",u["\u2FB1"]="\u97CB",u["\u2FB2"]="\u97ED",u["\u2FB3"]="\u97F3",u["\u2FB4"]="\u9801",u["\u2FB5"]="\u98A8",u["\u2FB6"]="\u98DB",u["\u2FB7"]="\u98DF",u["\u2FB8"]="\u9996",u["\u2FB9"]="\u9999",u["\u2FBA"]="\u99AC",u["\u2FBB"]="\u9AA8",u["\u2FBC"]="\u9AD8",u["\u2FBD"]="\u9ADF",u["\u2FBE"]="\u9B25",u["\u2FBF"]="\u9B2F",u["\u2FC0"]="\u9B32",u["\u2FC1"]="\u9B3C",u["\u2FC2"]="\u9B5A",u["\u2FC3"]="\u9CE5",u["\u2FC4"]="\u9E75",u["\u2FC5"]="\u9E7F",u["\u2FC6"]="\u9EA5",u["\u2FC7"]="\u9EBB",u["\u2FC8"]="\u9EC3",u["\u2FC9"]="\u9ECD",u["\u2FCA"]="\u9ED1",u["\u2FCB"]="\u9EF9",u["\u2FCC"]="\u9EFD",u["\u2FCD"]="\u9F0E",u["\u2FCE"]="\u9F13",u["\u2FCF"]="\u9F20",u["\u2FD0"]="\u9F3B",u["\u2FD1"]="\u9F4A",u["\u2FD2"]="\u9F52",u["\u2FD3"]="\u9F8D",u["\u2FD4"]="\u9F9C",u["\u2FD5"]="\u9FA0",u["\u3036"]="\u3012",u["\u3038"]="\u5341",u["\u3039"]="\u5344",u["\u303A"]="\u5345",u["\u309B"]=" \u3099",u["\u309C"]=" \u309A",u.\u3131="\u1100",u.\u3132="\u1101",u.\u3133="\u11AA",u.\u3134="\u1102",u.\u3135="\u11AC",u.\u3136="\u11AD",u.\u3137="\u1103",u.\u3138="\u1104",u.\u3139="\u1105",u.\u313A="\u11B0",u.\u313B="\u11B1",u.\u313C="\u11B2",u.\u313D="\u11B3",u.\u313E="\u11B4",u.\u313F="\u11B5",u.\u3140="\u111A",u.\u3141="\u1106",u.\u3142="\u1107",u.\u3143="\u1108",u.\u3144="\u1121",u.\u3145="\u1109",u.\u3146="\u110A",u.\u3147="\u110B",u.\u3148="\u110C",u.\u3149="\u110D",u.\u314A="\u110E",u.\u314B="\u110F",u.\u314C="\u1110",u.\u314D="\u1111",u.\u314E="\u1112",u.\u314F="\u1161",u.\u3150="\u1162",u.\u3151="\u1163",u.\u3152="\u1164",u.\u3153="\u1165",u.\u3154="\u1166",u.\u3155="\u1167",u.\u3156="\u1168",u.\u3157="\u1169",u.\u3158="\u116A",u.\u3159="\u116B",u.\u315A="\u116C",u.\u315B="\u116D",u.\u315C="\u116E",u.\u315D="\u116F",u.\u315E="\u1170",u.\u315F="\u1171",u.\u3160="\u1172",u.\u3161="\u1173",u.\u3162="\u1174",u.\u3163="\u1175",u.\u3164="\u1160",u.\u3165="\u1114",u.\u3166="\u1115",u.\u3167="\u11C7",u.\u3168="\u11C8",u.\u3169="\u11CC",u.\u316A="\u11CE",u.\u316B="\u11D3",u.\u316C="\u11D7",u.\u316D="\u11D9",u.\u316E="\u111C",u.\u316F="\u11DD",u.\u3170="\u11DF",u.\u3171="\u111D",u.\u3172="\u111E",u.\u3173="\u1120",u.\u3174="\u1122",u.\u3175="\u1123",u.\u3176="\u1127",u.\u3177="\u1129",u.\u3178="\u112B",u.\u3179="\u112C",u.\u317A="\u112D",u.\u317B="\u112E",u.\u317C="\u112F",u.\u317D="\u1132",u.\u317E="\u1136",u.\u317F="\u1140",u.\u3180="\u1147",u.\u3181="\u114C",u.\u3182="\u11F1",u.\u3183="\u11F2",u.\u3184="\u1157",u.\u3185="\u1158",u.\u3186="\u1159",u.\u3187="\u1184",u.\u3188="\u1185",u.\u3189="\u1188",u.\u318A="\u1191",u.\u318B="\u1192",u.\u318C="\u1194",u.\u318D="\u119E",u.\u318E="\u11A1",u["\u3200"]="(\u1100)",u["\u3201"]="(\u1102)",u["\u3202"]="(\u1103)",u["\u3203"]="(\u1105)",u["\u3204"]="(\u1106)",u["\u3205"]="(\u1107)",u["\u3206"]="(\u1109)",u["\u3207"]="(\u110B)",u["\u3208"]="(\u110C)",u["\u3209"]="(\u110E)",u["\u320A"]="(\u110F)",u["\u320B"]="(\u1110)",u["\u320C"]="(\u1111)",u["\u320D"]="(\u1112)",u["\u320E"]="(\u1100\u1161)",u["\u320F"]="(\u1102\u1161)",u["\u3210"]="(\u1103\u1161)",u["\u3211"]="(\u1105\u1161)",u["\u3212"]="(\u1106\u1161)",u["\u3213"]="(\u1107\u1161)",u["\u3214"]="(\u1109\u1161)",u["\u3215"]="(\u110B\u1161)",u["\u3216"]="(\u110C\u1161)",u["\u3217"]="(\u110E\u1161)",u["\u3218"]="(\u110F\u1161)",u["\u3219"]="(\u1110\u1161)",u["\u321A"]="(\u1111\u1161)",u["\u321B"]="(\u1112\u1161)",u["\u321C"]="(\u110C\u116E)",u["\u321D"]="(\u110B\u1169\u110C\u1165\u11AB)",u["\u321E"]="(\u110B\u1169\u1112\u116E)",u["\u3220"]="(\u4E00)",u["\u3221"]="(\u4E8C)",u["\u3222"]="(\u4E09)",u["\u3223"]="(\u56DB)",u["\u3224"]="(\u4E94)",u["\u3225"]="(\u516D)",u["\u3226"]="(\u4E03)",u["\u3227"]="(\u516B)",u["\u3228"]="(\u4E5D)",u["\u3229"]="(\u5341)",u["\u322A"]="(\u6708)",u["\u322B"]="(\u706B)",u["\u322C"]="(\u6C34)",u["\u322D"]="(\u6728)",u["\u322E"]="(\u91D1)",u["\u322F"]="(\u571F)",u["\u3230"]="(\u65E5)",u["\u3231"]="(\u682A)",u["\u3232"]="(\u6709)",u["\u3233"]="(\u793E)",u["\u3234"]="(\u540D)",u["\u3235"]="(\u7279)",u["\u3236"]="(\u8CA1)",u["\u3237"]="(\u795D)",u["\u3238"]="(\u52B4)",u["\u3239"]="(\u4EE3)",u["\u323A"]="(\u547C)",u["\u323B"]="(\u5B66)",u["\u323C"]="(\u76E3)",u["\u323D"]="(\u4F01)",u["\u323E"]="(\u8CC7)",u["\u323F"]="(\u5354)",u["\u3240"]="(\u796D)",u["\u3241"]="(\u4F11)",u["\u3242"]="(\u81EA)",u["\u3243"]="(\u81F3)",u["\u32C0"]="1\u6708",u["\u32C1"]="2\u6708",u["\u32C2"]="3\u6708",u["\u32C3"]="4\u6708",u["\u32C4"]="5\u6708",u["\u32C5"]="6\u6708",u["\u32C6"]="7\u6708",u["\u32C7"]="8\u6708",u["\u32C8"]="9\u6708",u["\u32C9"]="10\u6708",u["\u32CA"]="11\u6708",u["\u32CB"]="12\u6708",u["\u3358"]="0\u70B9",u["\u3359"]="1\u70B9",u["\u335A"]="2\u70B9",u["\u335B"]="3\u70B9",u["\u335C"]="4\u70B9",u["\u335D"]="5\u70B9",u["\u335E"]="6\u70B9",u["\u335F"]="7\u70B9",u["\u3360"]="8\u70B9",u["\u3361"]="9\u70B9",u["\u3362"]="10\u70B9",u["\u3363"]="11\u70B9",u["\u3364"]="12\u70B9",u["\u3365"]="13\u70B9",u["\u3366"]="14\u70B9",u["\u3367"]="15\u70B9",u["\u3368"]="16\u70B9",u["\u3369"]="17\u70B9",u["\u336A"]="18\u70B9",u["\u336B"]="19\u70B9",u["\u336C"]="20\u70B9",u["\u336D"]="21\u70B9",u["\u336E"]="22\u70B9",u["\u336F"]="23\u70B9",u["\u3370"]="24\u70B9",u["\u33E0"]="1\u65E5",u["\u33E1"]="2\u65E5",u["\u33E2"]="3\u65E5",u["\u33E3"]="4\u65E5",u["\u33E4"]="5\u65E5",u["\u33E5"]="6\u65E5",u["\u33E6"]="7\u65E5",u["\u33E7"]="8\u65E5",u["\u33E8"]="9\u65E5",u["\u33E9"]="10\u65E5",u["\u33EA"]="11\u65E5",u["\u33EB"]="12\u65E5",u["\u33EC"]="13\u65E5",u["\u33ED"]="14\u65E5",u["\u33EE"]="15\u65E5",u["\u33EF"]="16\u65E5",u["\u33F0"]="17\u65E5",u["\u33F1"]="18\u65E5",u["\u33F2"]="19\u65E5",u["\u33F3"]="20\u65E5",u["\u33F4"]="21\u65E5",u["\u33F5"]="22\u65E5",u["\u33F6"]="23\u65E5",u["\u33F7"]="24\u65E5",u["\u33F8"]="25\u65E5",u["\u33F9"]="26\u65E5",u["\u33FA"]="27\u65E5",u["\u33FB"]="28\u65E5",u["\u33FC"]="29\u65E5",u["\u33FD"]="30\u65E5",u["\u33FE"]="31\u65E5",u.\uFB00="ff",u.\uFB01="fi",u.\uFB02="fl",u.\uFB03="ffi",u.\uFB04="ffl",u.\uFB05="\u017Ft",u.\uFB06="st",u.\uFB13="\u0574\u0576",u.\uFB14="\u0574\u0565",u.\uFB15="\u0574\u056B",u.\uFB16="\u057E\u0576",u.\uFB17="\u0574\u056D",u.\uFB4F="\u05D0\u05DC",u.\uFB50="\u0671",u.\uFB51="\u0671",u.\uFB52="\u067B",u.\uFB53="\u067B",u.\uFB54="\u067B",u.\uFB55="\u067B",u.\uFB56="\u067E",u.\uFB57="\u067E",u.\uFB58="\u067E",u.\uFB59="\u067E",u.\uFB5A="\u0680",u.\uFB5B="\u0680",u.\uFB5C="\u0680",u.\uFB5D="\u0680",u.\uFB5E="\u067A",u.\uFB5F="\u067A",u.\uFB60="\u067A",u.\uFB61="\u067A",u.\uFB62="\u067F",u.\uFB63="\u067F",u.\uFB64="\u067F",u.\uFB65="\u067F",u.\uFB66="\u0679",u.\uFB67="\u0679",u.\uFB68="\u0679",u.\uFB69="\u0679",u.\uFB6A="\u06A4",u.\uFB6B="\u06A4",u.\uFB6C="\u06A4",u.\uFB6D="\u06A4",u.\uFB6E="\u06A6",u.\uFB6F="\u06A6",u.\uFB70="\u06A6",u.\uFB71="\u06A6",u.\uFB72="\u0684",u.\uFB73="\u0684",u.\uFB74="\u0684",u.\uFB75="\u0684",u.\uFB76="\u0683",u.\uFB77="\u0683",u.\uFB78="\u0683",u.\uFB79="\u0683",u.\uFB7A="\u0686",u.\uFB7B="\u0686",u.\uFB7C="\u0686",u.\uFB7D="\u0686",u.\uFB7E="\u0687",u.\uFB7F="\u0687",u.\uFB80="\u0687",u.\uFB81="\u0687",u.\uFB82="\u068D",u.\uFB83="\u068D",u.\uFB84="\u068C",u.\uFB85="\u068C",u.\uFB86="\u068E",u.\uFB87="\u068E",u.\uFB88="\u0688",u.\uFB89="\u0688",u.\uFB8A="\u0698",u.\uFB8B="\u0698",u.\uFB8C="\u0691",u.\uFB8D="\u0691",u.\uFB8E="\u06A9",u.\uFB8F="\u06A9",u.\uFB90="\u06A9",u.\uFB91="\u06A9",u.\uFB92="\u06AF",u.\uFB93="\u06AF",u.\uFB94="\u06AF",u.\uFB95="\u06AF",u.\uFB96="\u06B3",u.\uFB97="\u06B3",u.\uFB98="\u06B3",u.\uFB99="\u06B3",u.\uFB9A="\u06B1",u.\uFB9B="\u06B1",u.\uFB9C="\u06B1",u.\uFB9D="\u06B1",u.\uFB9E="\u06BA",u.\uFB9F="\u06BA",u.\uFBA0="\u06BB",u.\uFBA1="\u06BB",u.\uFBA2="\u06BB",u.\uFBA3="\u06BB",u.\uFBA4="\u06C0",u.\uFBA5="\u06C0",u.\uFBA6="\u06C1",u.\uFBA7="\u06C1",u.\uFBA8="\u06C1",u.\uFBA9="\u06C1",u.\uFBAA="\u06BE",u.\uFBAB="\u06BE",u.\uFBAC="\u06BE",u.\uFBAD="\u06BE",u.\uFBAE="\u06D2",u.\uFBAF="\u06D2",u.\uFBB0="\u06D3",u.\uFBB1="\u06D3",u.\uFBD3="\u06AD",u.\uFBD4="\u06AD",u.\uFBD5="\u06AD",u.\uFBD6="\u06AD",u.\uFBD7="\u06C7",u.\uFBD8="\u06C7",u.\uFBD9="\u06C6",u.\uFBDA="\u06C6",u.\uFBDB="\u06C8",u.\uFBDC="\u06C8",u.\uFBDD="\u0677",u.\uFBDE="\u06CB",u.\uFBDF="\u06CB",u.\uFBE0="\u06C5",u.\uFBE1="\u06C5",u.\uFBE2="\u06C9",u.\uFBE3="\u06C9",u.\uFBE4="\u06D0",u.\uFBE5="\u06D0",u.\uFBE6="\u06D0",u.\uFBE7="\u06D0",u.\uFBE8="\u0649",u.\uFBE9="\u0649",u.\uFBEA="\u0626\u0627",u.\uFBEB="\u0626\u0627",u.\uFBEC="\u0626\u06D5",u.\uFBED="\u0626\u06D5",u.\uFBEE="\u0626\u0648",u.\uFBEF="\u0626\u0648",u.\uFBF0="\u0626\u06C7",u.\uFBF1="\u0626\u06C7",u.\uFBF2="\u0626\u06C6",u.\uFBF3="\u0626\u06C6",u.\uFBF4="\u0626\u06C8",u.\uFBF5="\u0626\u06C8",u.\uFBF6="\u0626\u06D0",u.\uFBF7="\u0626\u06D0",u.\uFBF8="\u0626\u06D0",u.\uFBF9="\u0626\u0649",u.\uFBFA="\u0626\u0649",u.\uFBFB="\u0626\u0649",u.\uFBFC="\u06CC",u.\uFBFD="\u06CC",u.\uFBFE="\u06CC",u.\uFBFF="\u06CC",u.\uFC00="\u0626\u062C",u.\uFC01="\u0626\u062D",u.\uFC02="\u0626\u0645",u.\uFC03="\u0626\u0649",u.\uFC04="\u0626\u064A",u.\uFC05="\u0628\u062C",u.\uFC06="\u0628\u062D",u.\uFC07="\u0628\u062E",u.\uFC08="\u0628\u0645",u.\uFC09="\u0628\u0649",u.\uFC0A="\u0628\u064A",u.\uFC0B="\u062A\u062C",u.\uFC0C="\u062A\u062D",u.\uFC0D="\u062A\u062E",u.\uFC0E="\u062A\u0645",u.\uFC0F="\u062A\u0649",u.\uFC10="\u062A\u064A",u.\uFC11="\u062B\u062C",u.\uFC12="\u062B\u0645",u.\uFC13="\u062B\u0649",u.\uFC14="\u062B\u064A",u.\uFC15="\u062C\u062D",u.\uFC16="\u062C\u0645",u.\uFC17="\u062D\u062C",u.\uFC18="\u062D\u0645",u.\uFC19="\u062E\u062C",u.\uFC1A="\u062E\u062D",u.\uFC1B="\u062E\u0645",u.\uFC1C="\u0633\u062C",u.\uFC1D="\u0633\u062D",u.\uFC1E="\u0633\u062E",u.\uFC1F="\u0633\u0645",u.\uFC20="\u0635\u062D",u.\uFC21="\u0635\u0645",u.\uFC22="\u0636\u062C",u.\uFC23="\u0636\u062D",u.\uFC24="\u0636\u062E",u.\uFC25="\u0636\u0645",u.\uFC26="\u0637\u062D",u.\uFC27="\u0637\u0645",u.\uFC28="\u0638\u0645",u.\uFC29="\u0639\u062C",u.\uFC2A="\u0639\u0645",u.\uFC2B="\u063A\u062C",u.\uFC2C="\u063A\u0645",u.\uFC2D="\u0641\u062C",u.\uFC2E="\u0641\u062D",u.\uFC2F="\u0641\u062E",u.\uFC30="\u0641\u0645",u.\uFC31="\u0641\u0649",u.\uFC32="\u0641\u064A",u.\uFC33="\u0642\u062D",u.\uFC34="\u0642\u0645",u.\uFC35="\u0642\u0649",u.\uFC36="\u0642\u064A",u.\uFC37="\u0643\u0627",u.\uFC38="\u0643\u062C",u.\uFC39="\u0643\u062D",u.\uFC3A="\u0643\u062E",u.\uFC3B="\u0643\u0644",u.\uFC3C="\u0643\u0645",u.\uFC3D="\u0643\u0649",u.\uFC3E="\u0643\u064A",u.\uFC3F="\u0644\u062C",u.\uFC40="\u0644\u062D",u.\uFC41="\u0644\u062E",u.\uFC42="\u0644\u0645",u.\uFC43="\u0644\u0649",u.\uFC44="\u0644\u064A",u.\uFC45="\u0645\u062C",u.\uFC46="\u0645\u062D",u.\uFC47="\u0645\u062E",u.\uFC48="\u0645\u0645",u.\uFC49="\u0645\u0649",u.\uFC4A="\u0645\u064A",u.\uFC4B="\u0646\u062C",u.\uFC4C="\u0646\u062D",u.\uFC4D="\u0646\u062E",u.\uFC4E="\u0646\u0645",u.\uFC4F="\u0646\u0649",u.\uFC50="\u0646\u064A",u.\uFC51="\u0647\u062C",u.\uFC52="\u0647\u0645",u.\uFC53="\u0647\u0649",u.\uFC54="\u0647\u064A",u.\uFC55="\u064A\u062C",u.\uFC56="\u064A\u062D",u.\uFC57="\u064A\u062E",u.\uFC58="\u064A\u0645",u.\uFC59="\u064A\u0649",u.\uFC5A="\u064A\u064A",u.\uFC5B="\u0630\u0670",u.\uFC5C="\u0631\u0670",u.\uFC5D="\u0649\u0670",u.\uFC5E=" \u064C\u0651",u.\uFC5F=" \u064D\u0651",u.\uFC60=" \u064E\u0651",u.\uFC61=" \u064F\u0651",u.\uFC62=" \u0650\u0651",u.\uFC63=" \u0651\u0670",u.\uFC64="\u0626\u0631",u.\uFC65="\u0626\u0632",u.\uFC66="\u0626\u0645",u.\uFC67="\u0626\u0646",u.\uFC68="\u0626\u0649",u.\uFC69="\u0626\u064A",u.\uFC6A="\u0628\u0631",u.\uFC6B="\u0628\u0632",u.\uFC6C="\u0628\u0645",u.\uFC6D="\u0628\u0646",u.\uFC6E="\u0628\u0649",u.\uFC6F="\u0628\u064A",u.\uFC70="\u062A\u0631",u.\uFC71="\u062A\u0632",u.\uFC72="\u062A\u0645",u.\uFC73="\u062A\u0646",u.\uFC74="\u062A\u0649",u.\uFC75="\u062A\u064A",u.\uFC76="\u062B\u0631",u.\uFC77="\u062B\u0632",u.\uFC78="\u062B\u0645",u.\uFC79="\u062B\u0646",u.\uFC7A="\u062B\u0649",u.\uFC7B="\u062B\u064A",u.\uFC7C="\u0641\u0649",u.\uFC7D="\u0641\u064A",u.\uFC7E="\u0642\u0649",u.\uFC7F="\u0642\u064A",u.\uFC80="\u0643\u0627",u.\uFC81="\u0643\u0644",u.\uFC82="\u0643\u0645",u.\uFC83="\u0643\u0649",u.\uFC84="\u0643\u064A",u.\uFC85="\u0644\u0645",u.\uFC86="\u0644\u0649",u.\uFC87="\u0644\u064A",u.\uFC88="\u0645\u0627",u.\uFC89="\u0645\u0645",u.\uFC8A="\u0646\u0631",u.\uFC8B="\u0646\u0632",u.\uFC8C="\u0646\u0645",u.\uFC8D="\u0646\u0646",u.\uFC8E="\u0646\u0649",u.\uFC8F="\u0646\u064A",u.\uFC90="\u0649\u0670",u.\uFC91="\u064A\u0631",u.\uFC92="\u064A\u0632",u.\uFC93="\u064A\u0645",u.\uFC94="\u064A\u0646",u.\uFC95="\u064A\u0649",u.\uFC96="\u064A\u064A",u.\uFC97="\u0626\u062C",u.\uFC98="\u0626\u062D",u.\uFC99="\u0626\u062E",u.\uFC9A="\u0626\u0645",u.\uFC9B="\u0626\u0647",u.\uFC9C="\u0628\u062C",u.\uFC9D="\u0628\u062D",u.\uFC9E="\u0628\u062E",u.\uFC9F="\u0628\u0645",u.\uFCA0="\u0628\u0647",u.\uFCA1="\u062A\u062C",u.\uFCA2="\u062A\u062D",u.\uFCA3="\u062A\u062E",u.\uFCA4="\u062A\u0645",u.\uFCA5="\u062A\u0647",u.\uFCA6="\u062B\u0645",u.\uFCA7="\u062C\u062D",u.\uFCA8="\u062C\u0645",u.\uFCA9="\u062D\u062C",u.\uFCAA="\u062D\u0645",u.\uFCAB="\u062E\u062C",u.\uFCAC="\u062E\u0645",u.\uFCAD="\u0633\u062C",u.\uFCAE="\u0633\u062D",u.\uFCAF="\u0633\u062E",u.\uFCB0="\u0633\u0645",u.\uFCB1="\u0635\u062D",u.\uFCB2="\u0635\u062E",u.\uFCB3="\u0635\u0645",u.\uFCB4="\u0636\u062C",u.\uFCB5="\u0636\u062D",u.\uFCB6="\u0636\u062E",u.\uFCB7="\u0636\u0645",u.\uFCB8="\u0637\u062D",u.\uFCB9="\u0638\u0645",u.\uFCBA="\u0639\u062C",u.\uFCBB="\u0639\u0645",u.\uFCBC="\u063A\u062C",u.\uFCBD="\u063A\u0645",u.\uFCBE="\u0641\u062C",u.\uFCBF="\u0641\u062D",u.\uFCC0="\u0641\u062E",u.\uFCC1="\u0641\u0645",u.\uFCC2="\u0642\u062D",u.\uFCC3="\u0642\u0645",u.\uFCC4="\u0643\u062C",u.\uFCC5="\u0643\u062D",u.\uFCC6="\u0643\u062E",u.\uFCC7="\u0643\u0644",u.\uFCC8="\u0643\u0645",u.\uFCC9="\u0644\u062C",u.\uFCCA="\u0644\u062D",u.\uFCCB="\u0644\u062E",u.\uFCCC="\u0644\u0645",u.\uFCCD="\u0644\u0647",u.\uFCCE="\u0645\u062C",u.\uFCCF="\u0645\u062D",u.\uFCD0="\u0645\u062E",u.\uFCD1="\u0645\u0645",u.\uFCD2="\u0646\u062C",u.\uFCD3="\u0646\u062D",u.\uFCD4="\u0646\u062E",u.\uFCD5="\u0646\u0645",u.\uFCD6="\u0646\u0647",u.\uFCD7="\u0647\u062C",u.\uFCD8="\u0647\u0645",u.\uFCD9="\u0647\u0670",u.\uFCDA="\u064A\u062C",u.\uFCDB="\u064A\u062D",u.\uFCDC="\u064A\u062E",u.\uFCDD="\u064A\u0645",u.\uFCDE="\u064A\u0647",u.\uFCDF="\u0626\u0645",u.\uFCE0="\u0626\u0647",u.\uFCE1="\u0628\u0645",u.\uFCE2="\u0628\u0647",u.\uFCE3="\u062A\u0645",u.\uFCE4="\u062A\u0647",u.\uFCE5="\u062B\u0645",u.\uFCE6="\u062B\u0647",u.\uFCE7="\u0633\u0645",u.\uFCE8="\u0633\u0647",u.\uFCE9="\u0634\u0645",u.\uFCEA="\u0634\u0647",u.\uFCEB="\u0643\u0644",u.\uFCEC="\u0643\u0645",u.\uFCED="\u0644\u0645",u.\uFCEE="\u0646\u0645",u.\uFCEF="\u0646\u0647",u.\uFCF0="\u064A\u0645",u.\uFCF1="\u064A\u0647",u.\uFCF2="\u0640\u064E\u0651",u.\uFCF3="\u0640\u064F\u0651",u.\uFCF4="\u0640\u0650\u0651",u.\uFCF5="\u0637\u0649",u.\uFCF6="\u0637\u064A",u.\uFCF7="\u0639\u0649",u.\uFCF8="\u0639\u064A",u.\uFCF9="\u063A\u0649",u.\uFCFA="\u063A\u064A",u.\uFCFB="\u0633\u0649",u.\uFCFC="\u0633\u064A",u.\uFCFD="\u0634\u0649",u.\uFCFE="\u0634\u064A",u.\uFCFF="\u062D\u0649",u.\uFD00="\u062D\u064A",u.\uFD01="\u062C\u0649",u.\uFD02="\u062C\u064A",u.\uFD03="\u062E\u0649",u.\uFD04="\u062E\u064A",u.\uFD05="\u0635\u0649",u.\uFD06="\u0635\u064A",u.\uFD07="\u0636\u0649",u.\uFD08="\u0636\u064A",u.\uFD09="\u0634\u062C",u.\uFD0A="\u0634\u062D",u.\uFD0B="\u0634\u062E",u.\uFD0C="\u0634\u0645",u.\uFD0D="\u0634\u0631",u.\uFD0E="\u0633\u0631",u.\uFD0F="\u0635\u0631",u.\uFD10="\u0636\u0631",u.\uFD11="\u0637\u0649",u.\uFD12="\u0637\u064A",u.\uFD13="\u0639\u0649",u.\uFD14="\u0639\u064A",u.\uFD15="\u063A\u0649",u.\uFD16="\u063A\u064A",u.\uFD17="\u0633\u0649",u.\uFD18="\u0633\u064A",u.\uFD19="\u0634\u0649",u.\uFD1A="\u0634\u064A",u.\uFD1B="\u062D\u0649",u.\uFD1C="\u062D\u064A",u.\uFD1D="\u062C\u0649",u.\uFD1E="\u062C\u064A",u.\uFD1F="\u062E\u0649",u.\uFD20="\u062E\u064A",u.\uFD21="\u0635\u0649",u.\uFD22="\u0635\u064A",u.\uFD23="\u0636\u0649",u.\uFD24="\u0636\u064A",u.\uFD25="\u0634\u062C",u.\uFD26="\u0634\u062D",u.\uFD27="\u0634\u062E",u.\uFD28="\u0634\u0645",u.\uFD29="\u0634\u0631",u.\uFD2A="\u0633\u0631",u.\uFD2B="\u0635\u0631",u.\uFD2C="\u0636\u0631",u.\uFD2D="\u0634\u062C",u.\uFD2E="\u0634\u062D",u.\uFD2F="\u0634\u062E",u.\uFD30="\u0634\u0645",u.\uFD31="\u0633\u0647",u.\uFD32="\u0634\u0647",u.\uFD33="\u0637\u0645",u.\uFD34="\u0633\u062C",u.\uFD35="\u0633\u062D",u.\uFD36="\u0633\u062E",u.\uFD37="\u0634\u062C",u.\uFD38="\u0634\u062D",u.\uFD39="\u0634\u062E",u.\uFD3A="\u0637\u0645",u.\uFD3B="\u0638\u0645",u.\uFD3C="\u0627\u064B",u.\uFD3D="\u0627\u064B",u.\uFD50="\u062A\u062C\u0645",u.\uFD51="\u062A\u062D\u062C",u.\uFD52="\u062A\u062D\u062C",u.\uFD53="\u062A\u062D\u0645",u.\uFD54="\u062A\u062E\u0645",u.\uFD55="\u062A\u0645\u062C",u.\uFD56="\u062A\u0645\u062D",u.\uFD57="\u062A\u0645\u062E",u.\uFD58="\u062C\u0645\u062D",u.\uFD59="\u062C\u0645\u062D",u.\uFD5A="\u062D\u0645\u064A",u.\uFD5B="\u062D\u0645\u0649",u.\uFD5C="\u0633\u062D\u062C",u.\uFD5D="\u0633\u062C\u062D",u.\uFD5E="\u0633\u062C\u0649",u.\uFD5F="\u0633\u0645\u062D",u.\uFD60="\u0633\u0645\u062D",u.\uFD61="\u0633\u0645\u062C",u.\uFD62="\u0633\u0645\u0645",u.\uFD63="\u0633\u0645\u0645",u.\uFD64="\u0635\u062D\u062D",u.\uFD65="\u0635\u062D\u062D",u.\uFD66="\u0635\u0645\u0645",u.\uFD67="\u0634\u062D\u0645",u.\uFD68="\u0634\u062D\u0645",u.\uFD69="\u0634\u062C\u064A",u.\uFD6A="\u0634\u0645\u062E",u.\uFD6B="\u0634\u0645\u062E",u.\uFD6C="\u0634\u0645\u0645",u.\uFD6D="\u0634\u0645\u0645",u.\uFD6E="\u0636\u062D\u0649",u.\uFD6F="\u0636\u062E\u0645",u.\uFD70="\u0636\u062E\u0645",u.\uFD71="\u0637\u0645\u062D",u.\uFD72="\u0637\u0645\u062D",u.\uFD73="\u0637\u0645\u0645",u.\uFD74="\u0637\u0645\u064A",u.\uFD75="\u0639\u062C\u0645",u.\uFD76="\u0639\u0645\u0645",u.\uFD77="\u0639\u0645\u0645",u.\uFD78="\u0639\u0645\u0649",u.\uFD79="\u063A\u0645\u0645",u.\uFD7A="\u063A\u0645\u064A",u.\uFD7B="\u063A\u0645\u0649",u.\uFD7C="\u0641\u062E\u0645",u.\uFD7D="\u0641\u062E\u0645",u.\uFD7E="\u0642\u0645\u062D",u.\uFD7F="\u0642\u0645\u0645",u.\uFD80="\u0644\u062D\u0645",u.\uFD81="\u0644\u062D\u064A",u.\uFD82="\u0644\u062D\u0649",u.\uFD83="\u0644\u062C\u062C",u.\uFD84="\u0644\u062C\u062C",u.\uFD85="\u0644\u062E\u0645",u.\uFD86="\u0644\u062E\u0645",u.\uFD87="\u0644\u0645\u062D",u.\uFD88="\u0644\u0645\u062D",u.\uFD89="\u0645\u062D\u062C",u.\uFD8A="\u0645\u062D\u0645",u.\uFD8B="\u0645\u062D\u064A",u.\uFD8C="\u0645\u062C\u062D",u.\uFD8D="\u0645\u062C\u0645",u.\uFD8E="\u0645\u062E\u062C",u.\uFD8F="\u0645\u062E\u0645",u.\uFD92="\u0645\u062C\u062E",u.\uFD93="\u0647\u0645\u062C",u.\uFD94="\u0647\u0645\u0645",u.\uFD95="\u0646\u062D\u0645",u.\uFD96="\u0646\u062D\u0649",u.\uFD97="\u0646\u062C\u0645",u.\uFD98="\u0646\u062C\u0645",u.\uFD99="\u0646\u062C\u0649",u.\uFD9A="\u0646\u0645\u064A",u.\uFD9B="\u0646\u0645\u0649",u.\uFD9C="\u064A\u0645\u0645",u.\uFD9D="\u064A\u0645\u0645",u.\uFD9E="\u0628\u062E\u064A",u.\uFD9F="\u062A\u062C\u064A",u.\uFDA0="\u062A\u062C\u0649",u.\uFDA1="\u062A\u062E\u064A",u.\uFDA2="\u062A\u062E\u0649",u.\uFDA3="\u062A\u0645\u064A",u.\uFDA4="\u062A\u0645\u0649",u.\uFDA5="\u062C\u0645\u064A",u.\uFDA6="\u062C\u062D\u0649",u.\uFDA7="\u062C\u0645\u0649",u.\uFDA8="\u0633\u062E\u0649",u.\uFDA9="\u0635\u062D\u064A",u.\uFDAA="\u0634\u062D\u064A",u.\uFDAB="\u0636\u062D\u064A",u.\uFDAC="\u0644\u062C\u064A",u.\uFDAD="\u0644\u0645\u064A",u.\uFDAE="\u064A\u062D\u064A",u.\uFDAF="\u064A\u062C\u064A",u.\uFDB0="\u064A\u0645\u064A",u.\uFDB1="\u0645\u0645\u064A",u.\uFDB2="\u0642\u0645\u064A",u.\uFDB3="\u0646\u062D\u064A",u.\uFDB4="\u0642\u0645\u062D",u.\uFDB5="\u0644\u062D\u0645",u.\uFDB6="\u0639\u0645\u064A",u.\uFDB7="\u0643\u0645\u064A",u.\uFDB8="\u0646\u062C\u062D",u.\uFDB9="\u0645\u062E\u064A",u.\uFDBA="\u0644\u062C\u0645",u.\uFDBB="\u0643\u0645\u0645",u.\uFDBC="\u0644\u062C\u0645",u.\uFDBD="\u0646\u062C\u062D",u.\uFDBE="\u062C\u062D\u064A",u.\uFDBF="\u062D\u062C\u064A",u.\uFDC0="\u0645\u062C\u064A",u.\uFDC1="\u0641\u0645\u064A",u.\uFDC2="\u0628\u062D\u064A",u.\uFDC3="\u0643\u0645\u0645",u.\uFDC4="\u0639\u062C\u0645",u.\uFDC5="\u0635\u0645\u0645",u.\uFDC6="\u0633\u062E\u064A",u.\uFDC7="\u0646\u062C\u064A",u["\uFE49"]="\u203E",u["\uFE4A"]="\u203E",u["\uFE4B"]="\u203E",u["\uFE4C"]="\u203E",u["\uFE4D"]="_",u["\uFE4E"]="_",u["\uFE4F"]="_",u.\uFE80="\u0621",u.\uFE81="\u0622",u.\uFE82="\u0622",u.\uFE83="\u0623",u.\uFE84="\u0623",u.\uFE85="\u0624",u.\uFE86="\u0624",u.\uFE87="\u0625",u.\uFE88="\u0625",u.\uFE89="\u0626",u.\uFE8A="\u0626",u.\uFE8B="\u0626",u.\uFE8C="\u0626",u.\uFE8D="\u0627",u.\uFE8E="\u0627",u.\uFE8F="\u0628",u.\uFE90="\u0628",u.\uFE91="\u0628",u.\uFE92="\u0628",u.\uFE93="\u0629",u.\uFE94="\u0629",u.\uFE95="\u062A",u.\uFE96="\u062A",u.\uFE97="\u062A",u.\uFE98="\u062A",u.\uFE99="\u062B",u.\uFE9A="\u062B",u.\uFE9B="\u062B",u.\uFE9C="\u062B",u.\uFE9D="\u062C",u.\uFE9E="\u062C",u.\uFE9F="\u062C",u.\uFEA0="\u062C",u.\uFEA1="\u062D",u.\uFEA2="\u062D",u.\uFEA3="\u062D",u.\uFEA4="\u062D",u.\uFEA5="\u062E",u.\uFEA6="\u062E",u.\uFEA7="\u062E",u.\uFEA8="\u062E",u.\uFEA9="\u062F",u.\uFEAA="\u062F",u.\uFEAB="\u0630",u.\uFEAC="\u0630",u.\uFEAD="\u0631",u.\uFEAE="\u0631",u.\uFEAF="\u0632",u.\uFEB0="\u0632",u.\uFEB1="\u0633",u.\uFEB2="\u0633",u.\uFEB3="\u0633",u.\uFEB4="\u0633",u.\uFEB5="\u0634",u.\uFEB6="\u0634",u.\uFEB7="\u0634",u.\uFEB8="\u0634",u.\uFEB9="\u0635",u.\uFEBA="\u0635",u.\uFEBB="\u0635",u.\uFEBC="\u0635",u.\uFEBD="\u0636",u.\uFEBE="\u0636",u.\uFEBF="\u0636",u.\uFEC0="\u0636",u.\uFEC1="\u0637",u.\uFEC2="\u0637",u.\uFEC3="\u0637",u.\uFEC4="\u0637",u.\uFEC5="\u0638",u.\uFEC6="\u0638",u.\uFEC7="\u0638",u.\uFEC8="\u0638",u.\uFEC9="\u0639",u.\uFECA="\u0639",u.\uFECB="\u0639",u.\uFECC="\u0639",u.\uFECD="\u063A",u.\uFECE="\u063A",u.\uFECF="\u063A",u.\uFED0="\u063A",u.\uFED1="\u0641",u.\uFED2="\u0641",u.\uFED3="\u0641",u.\uFED4="\u0641",u.\uFED5="\u0642",u.\uFED6="\u0642",u.\uFED7="\u0642",u.\uFED8="\u0642",u.\uFED9="\u0643",u.\uFEDA="\u0643",u.\uFEDB="\u0643",u.\uFEDC="\u0643",u.\uFEDD="\u0644",u.\uFEDE="\u0644",u.\uFEDF="\u0644",u.\uFEE0="\u0644",u.\uFEE1="\u0645",u.\uFEE2="\u0645",u.\uFEE3="\u0645",u.\uFEE4="\u0645",u.\uFEE5="\u0646",u.\uFEE6="\u0646",u.\uFEE7="\u0646",u.\uFEE8="\u0646",u.\uFEE9="\u0647",u.\uFEEA="\u0647",u.\uFEEB="\u0647",u.\uFEEC="\u0647",u.\uFEED="\u0648",u.\uFEEE="\u0648",u.\uFEEF="\u0649",u.\uFEF0="\u0649",u.\uFEF1="\u064A",u.\uFEF2="\u064A",u.\uFEF3="\u064A",u.\uFEF4="\u064A",u.\uFEF5="\u0644\u0622",u.\uFEF6="\u0644\u0622",u.\uFEF7="\u0644\u0623",u.\uFEF8="\u0644\u0623",u.\uFEF9="\u0644\u0625",u.\uFEFA="\u0644\u0625",u.\uFEFB="\u0644\u0627",u.\uFEFC="\u0644\u0627"});function m(u){var Y=u.length;if(Y<=1||!ee(u.charCodeAt(0)))return u;for(var re="",U=Y-1;U>=0;U--)re+=u[U];return re}d.mapSpecialUnicodeValues=J,d.reverseIfRtl=m,d.getUnicodeRangeFor=H,d.getNormalizedUnicodes=ie,d.getUnicodeForGlyph=a},function(S,d,R){Object.defineProperty(d,"__esModule",{value:!0}),d.FontRendererFactory=void 0;var g=R(2),O=R(30),J=R(33),a=R(32),se=R(12),H=function(){function ie(F,D){return F[D]<<24|F[D+1]<<16|F[D+2]<<8|F[D+3]}function m(F,D){return F[D]<<8|F[D+1]}function u(F){const D=F.length;let L=32768;return D<1240?L=107:D<33900&&(L=1131),L}function Y(F,D,L){var k=m(F,D+2)===1?ie(F,D+8):ie(F,D+16),v=m(F,D+k),y,b,C;if(v===4){m(F,D+k+2);var w=m(F,D+k+6)>>1;for(b=D+k+14,y=[],C=0;C<w;C++,b+=2)y[C]={end:m(F,b)};for(b+=2,C=0;C<w;C++,b+=2)y[C].start=m(F,b);for(C=0;C<w;C++,b+=2)y[C].idDelta=m(F,b);for(C=0;C<w;C++,b+=2){var T=m(F,b);if(T!==0){y[C].ids=[];for(var B=0,N=y[C].end-y[C].start+1;B<N;B++)y[C].ids[B]=m(F,b+T),T+=2}}return y}else if(v===12){ie(F,D+k+4);var Q=ie(F,D+k+12);for(b=D+k+16,y=[],C=0;C<Q;C++)y.push({start:ie(F,b),end:ie(F,b+4),idDelta:ie(F,b+8)-ie(F,b)}),b+=12;return y}throw new g.FormatError(`unsupported cmap: ${v}`)}function re(F,D,L,k){var v={},y=new O.CFFParser(new se.Stream(F,D,L-D),v,k),b=y.parse();return{glyphs:b.charStrings.objects,subrs:b.topDict.privateDict&&b.topDict.privateDict.subrsIndex&&b.topDict.privateDict.subrsIndex.objects,gsubrs:b.globalSubrIndex&&b.globalSubrIndex.objects,isCFFCIDFont:b.isCIDFont,fdSelect:b.fdSelect,fdArray:b.fdArray}}function U(F,D,L){var k,v;L?(k=4,v=function(B,N){return B[N]<<24|B[N+1]<<16|B[N+2]<<8|B[N+3]}):(k=2,v=function(B,N){return B[N]<<9|B[N+1]<<1});for(var y=[],b=v(D,0),C=k;C<D.length;C+=k){var w=v(D,C);y.push(F.subarray(b,w)),b=w}return y}function X(F,D){for(var L=D.codePointAt(0),k=0,v=0,y=F.length-1;v<y;){var b=v+y+1>>1;L<F[b].start?y=b-1:v=b}return F[v].start<=L&&L<=F[v].end&&(k=F[v].idDelta+(F[v].ids?F[v].ids[L-F[v].start]:L)&65535),{charCode:L,glyphId:k}}function W(F,D,L){function k(ve,me){D.push({cmd:"moveTo",args:[ve,me]})}function v(ve,me){D.push({cmd:"lineTo",args:[ve,me]})}function y(ve,me,Se,Ce){D.push({cmd:"quadraticCurveTo",args:[ve,me,Se,Ce]})}var b=0,C=(F[b]<<24|F[b+1]<<16)>>16,w,T=0,B=0;if(b+=10,C<0)do{w=F[b]<<8|F[b+1];var N=F[b+2]<<8|F[b+3];b+=4;var Q,z;w&1?(Q=(F[b]<<24|F[b+1]<<16)>>16,z=(F[b+2]<<24|F[b+3]<<16)>>16,b+=4):(Q=F[b++],z=F[b++]),w&2?(T=Q,B=z):(T=0,B=0);var j=1,$=1,M=0,q=0;w&8?(j=$=(F[b]<<24|F[b+1]<<16)/1073741824,b+=2):w&64?(j=(F[b]<<24|F[b+1]<<16)/1073741824,$=(F[b+2]<<24|F[b+3]<<16)/1073741824,b+=4):w&128&&(j=(F[b]<<24|F[b+1]<<16)/1073741824,M=(F[b+2]<<24|F[b+3]<<16)/1073741824,q=(F[b+4]<<24|F[b+5]<<16)/1073741824,$=(F[b+6]<<24|F[b+7]<<16)/1073741824,b+=8);var K=L.glyphs[N];K&&(D.push({cmd:"save"}),D.push({cmd:"transform",args:[j,M,q,$,T,B]}),W(K,D,L),D.push({cmd:"restore"}))}while(w&32);else{var Z=[],te,oe;for(te=0;te<C;te++)Z.push(F[b]<<8|F[b+1]),b+=2;var ae=F[b]<<8|F[b+1];b+=2+ae;for(var ce=Z[Z.length-1]+1,fe=[];fe.length<ce;){w=F[b++];var ne=1;for(w&8&&(ne+=F[b++]);ne-- >0;)fe.push({flags:w})}for(te=0;te<ce;te++){switch(fe[te].flags&18){case 0:T+=(F[b]<<24|F[b+1]<<16)>>16,b+=2;break;case 2:T-=F[b++];break;case 18:T+=F[b++];break}fe[te].x=T}for(te=0;te<ce;te++){switch(fe[te].flags&36){case 0:B+=(F[b]<<24|F[b+1]<<16)>>16,b+=2;break;case 4:B-=F[b++];break;case 36:B+=F[b++];break}fe[te].y=B}var le=0;for(b=0;b<C;b++){var ue=Z[b],he=fe.slice(le,ue+1);if(he[0].flags&1)he.push(he[0]);else if(he[he.length-1].flags&1)he.unshift(he[he.length-1]);else{var de={flags:1,x:(he[0].x+he[he.length-1].x)/2,y:(he[0].y+he[he.length-1].y)/2};he.unshift(de),he.push(de)}for(k(he[0].x,he[0].y),te=1,oe=he.length;te<oe;te++)he[te].flags&1?v(he[te].x,he[te].y):he[te+1].flags&1?(y(he[te].x,he[te].y,he[te+1].x,he[te+1].y),te++):y(he[te].x,he[te].y,(he[te].x+he[te+1].x)/2,(he[te].y+he[te+1].y)/2);le=ue+1}}}function G(F,D,L,k){function v(Q,z){D.push({cmd:"moveTo",args:[Q,z]})}function y(Q,z){D.push({cmd:"lineTo",args:[Q,z]})}function b(Q,z,j,$,M,q){D.push({cmd:"bezierCurveTo",args:[Q,z,j,$,M,q]})}var C=[],w=0,T=0,B=0;function N(Q){for(var z=0;z<Q.length;){var j=!1,$=Q[z++],M,q,K,Z,te,oe,ae,ce,fe;switch($){case 1:B+=C.length>>1,j=!0;break;case 3:B+=C.length>>1,j=!0;break;case 4:T+=C.pop(),v(w,T),j=!0;break;case 5:for(;C.length>0;)w+=C.shift(),T+=C.shift(),y(w,T);break;case 6:for(;C.length>0&&(w+=C.shift(),y(w,T),C.length!==0);)T+=C.shift(),y(w,T);break;case 7:for(;C.length>0&&(T+=C.shift(),y(w,T),C.length!==0);)w+=C.shift(),y(w,T);break;case 8:for(;C.length>0;)M=w+C.shift(),K=T+C.shift(),q=M+C.shift(),Z=K+C.shift(),w=q+C.shift(),T=Z+C.shift(),b(M,K,q,Z,w,T);break;case 10:if(ce=C.pop(),fe=null,L.isCFFCIDFont){const ve=L.fdSelect.getFDIndex(k);if(ve>=0&&ve<L.fdArray.length){const me=L.fdArray[ve];let Se;me.privateDict&&me.privateDict.subrsIndex&&(Se=me.privateDict.subrsIndex.objects),Se&&(ce+=u(Se),fe=Se[ce])}else(0,g.warn)("Invalid fd index for glyph index.")}else fe=L.subrs[ce+L.subrsBias];fe&&N(fe);break;case 11:return;case 12:switch($=Q[z++],$){case 34:M=w+C.shift(),q=M+C.shift(),te=T+C.shift(),w=q+C.shift(),b(M,T,q,te,w,te),M=w+C.shift(),q=M+C.shift(),w=q+C.shift(),b(M,te,q,T,w,T);break;case 35:M=w+C.shift(),K=T+C.shift(),q=M+C.shift(),Z=K+C.shift(),w=q+C.shift(),T=Z+C.shift(),b(M,K,q,Z,w,T),M=w+C.shift(),K=T+C.shift(),q=M+C.shift(),Z=K+C.shift(),w=q+C.shift(),T=Z+C.shift(),b(M,K,q,Z,w,T),C.pop();break;case 36:M=w+C.shift(),te=T+C.shift(),q=M+C.shift(),oe=te+C.shift(),w=q+C.shift(),b(M,te,q,oe,w,oe),M=w+C.shift(),q=M+C.shift(),ae=oe+C.shift(),w=q+C.shift(),b(M,oe,q,ae,w,T);break;case 37:var ne=w,le=T;M=w+C.shift(),K=T+C.shift(),q=M+C.shift(),Z=K+C.shift(),w=q+C.shift(),T=Z+C.shift(),b(M,K,q,Z,w,T),M=w+C.shift(),K=T+C.shift(),q=M+C.shift(),Z=K+C.shift(),w=q,T=Z,Math.abs(w-ne)>Math.abs(T-le)?w+=C.shift():T+=C.shift(),b(M,K,q,Z,w,T);break;default:throw new g.FormatError(`unknown operator: 12 ${$}`)}break;case 14:if(C.length>=4){var ue=C.pop(),he=C.pop();T=C.pop(),w=C.pop(),D.push({cmd:"save"}),D.push({cmd:"translate",args:[w,T]});var de=X(L.cmap,String.fromCharCode(L.glyphNameMap[a.StandardEncoding[ue]]));G(L.glyphs[de.glyphId],D,L,de.glyphId),D.push({cmd:"restore"}),de=X(L.cmap,String.fromCharCode(L.glyphNameMap[a.StandardEncoding[he]])),G(L.glyphs[de.glyphId],D,L,de.glyphId)}return;case 18:B+=C.length>>1,j=!0;break;case 19:B+=C.length>>1,z+=B+7>>3,j=!0;break;case 20:B+=C.length>>1,z+=B+7>>3,j=!0;break;case 21:T+=C.pop(),w+=C.pop(),v(w,T),j=!0;break;case 22:w+=C.pop(),v(w,T),j=!0;break;case 23:B+=C.length>>1,j=!0;break;case 24:for(;C.length>2;)M=w+C.shift(),K=T+C.shift(),q=M+C.shift(),Z=K+C.shift(),w=q+C.shift(),T=Z+C.shift(),b(M,K,q,Z,w,T);w+=C.shift(),T+=C.shift(),y(w,T);break;case 25:for(;C.length>6;)w+=C.shift(),T+=C.shift(),y(w,T);M=w+C.shift(),K=T+C.shift(),q=M+C.shift(),Z=K+C.shift(),w=q+C.shift(),T=Z+C.shift(),b(M,K,q,Z,w,T);break;case 26:for(C.length%2&&(w+=C.shift());C.length>0;)M=w,K=T+C.shift(),q=M+C.shift(),Z=K+C.shift(),w=q,T=Z+C.shift(),b(M,K,q,Z,w,T);break;case 27:for(C.length%2&&(T+=C.shift());C.length>0;)M=w+C.shift(),K=T,q=M+C.shift(),Z=K+C.shift(),w=q+C.shift(),T=Z,b(M,K,q,Z,w,T);break;case 28:C.push((Q[z]<<24|Q[z+1]<<16)>>16),z+=2;break;case 29:ce=C.pop()+L.gsubrsBias,fe=L.gsubrs[ce],fe&&N(fe);break;case 30:for(;C.length>0&&(M=w,K=T+C.shift(),q=M+C.shift(),Z=K+C.shift(),w=q+C.shift(),T=Z+(C.length===1?C.shift():0),b(M,K,q,Z,w,T),C.length!==0);)M=w+C.shift(),K=T,q=M+C.shift(),Z=K+C.shift(),T=Z+C.shift(),w=q+(C.length===1?C.shift():0),b(M,K,q,Z,w,T);break;case 31:for(;C.length>0&&(M=w+C.shift(),K=T,q=M+C.shift(),Z=K+C.shift(),T=Z+C.shift(),w=q+(C.length===1?C.shift():0),b(M,K,q,Z,w,T),C.length!==0);)M=w,K=T+C.shift(),q=M+C.shift(),Z=K+C.shift(),w=q+C.shift(),T=Z+(C.length===1?C.shift():0),b(M,K,q,Z,w,T);break;default:if($<32)throw new g.FormatError(`unknown operator: ${$}`);$<247?C.push($-139):$<251?C.push(($-247)*256+Q[z++]+108):$<255?C.push(-($-251)*256-Q[z++]-108):(C.push((Q[z]<<24|Q[z+1]<<16|Q[z+2]<<8|Q[z+3])/65536),z+=4);break}j&&(C.length=0)}}N(F)}const P=[];class E{constructor(D){this.constructor===E&&(0,g.unreachable)("Cannot initialize CompiledFont."),this.fontMatrix=D,this.compiledGlyphs=Object.create(null),this.compiledCharCodeToGlyphId=Object.create(null)}getPathJs(D){const L=X(this.cmap,D);let k=this.compiledGlyphs[L.glyphId];return k||(k=this.compileGlyph(this.glyphs[L.glyphId],L.glyphId),this.compiledGlyphs[L.glyphId]=k),this.compiledCharCodeToGlyphId[L.charCode]===void 0&&(this.compiledCharCodeToGlyphId[L.charCode]=L.glyphId),k}compileGlyph(D,L){if(!D||D.length===0||D[0]===14)return P;let k=this.fontMatrix;if(this.isCFFCIDFont){const y=this.fdSelect.getFDIndex(L);y>=0&&y<this.fdArray.length?k=this.fdArray[y].getByName("FontMatrix")||g.FONT_IDENTITY_MATRIX:(0,g.warn)("Invalid fd index for glyph index.")}const v=[];return v.push({cmd:"save"}),v.push({cmd:"transform",args:k.slice()}),v.push({cmd:"scale",args:["size","-size"]}),this.compileGlyphImpl(D,v,L),v.push({cmd:"restore"}),v}compileGlyphImpl(){(0,g.unreachable)("Children classes should implement this.")}hasBuiltPath(D){const L=X(this.cmap,D);return this.compiledGlyphs[L.glyphId]!==void 0&&this.compiledCharCodeToGlyphId[L.charCode]!==void 0}}class A extends E{constructor(D,L,k){super(k||[488e-6,0,0,488e-6,0,0]),this.glyphs=D,this.cmap=L}compileGlyphImpl(D,L){W(D,L,this)}}class _ extends E{constructor(D,L,k,v){super(k||[.001,0,0,.001,0,0]),this.glyphs=D.glyphs,this.gsubrs=D.gsubrs||[],this.subrs=D.subrs||[],this.cmap=L,this.glyphNameMap=v||(0,J.getGlyphsUnicode)(),this.gsubrsBias=u(this.gsubrs),this.subrsBias=u(this.subrs),this.isCFFCIDFont=D.isCFFCIDFont,this.fdSelect=D.fdSelect,this.fdArray=D.fdArray}compileGlyphImpl(D,L,k){G(D,L,this,k)}}return{create:function(D,L){for(var k=new Uint8Array(D.data),v,y,b,C,w,T,B=m(k,4),N=0,Q=12;N<B;N++,Q+=16){var z=(0,g.bytesToString)(k.subarray(Q,Q+4)),j=ie(k,Q+8),$=ie(k,Q+12);switch(z){case"cmap":v=Y(k,j);break;case"glyf":y=k.subarray(j,j+$);break;case"loca":b=k.subarray(j,j+$);break;case"head":T=m(k,j+18),w=m(k,j+50);break;case"CFF ":C=re(k,j,j+$,L);break}}if(y){var M=T?[1/T,0,0,1/T,0,0]:D.fontMatrix;return new A(U(y,b,w),v,M)}return new _(C,v,D.fontMatrix,D.glyphNameMap)}}}();d.FontRendererFactory=H},function(S,d,R){Object.defineProperty(d,"__esModule",{value:!0}),d.Type1Parser=void 0;var g=R(32),O=R(8),J=R(12),a=R(2),se=!1,H=function(){var m={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]};function u(){this.width=0,this.lsb=0,this.flexing=!1,this.output=[],this.stack=[]}return u.prototype={convert:function(re,U,X){for(var W=re.length,G=!1,P,E,A,_=0;_<W;_++){var F=re[_];if(F<32){switch(F===12&&(F=(F<<8)+re[++_]),F){case 1:{this.stack=[];break}case 3:{this.stack=[];break}case 4:if(this.flexing){if(this.stack.length<1){G=!0;break}var D=this.stack.pop();this.stack.push(0,D);break}G=this.executeCommand(1,m.vmoveto);break;case 5:G=this.executeCommand(2,m.rlineto);break;case 6:G=this.executeCommand(1,m.hlineto);break;case 7:G=this.executeCommand(1,m.vlineto);break;case 8:G=this.executeCommand(6,m.rrcurveto);break;case 9:this.stack=[];break;case 10:if(this.stack.length<1){G=!0;break}if(A=this.stack.pop(),!U[A]){G=!0;break}G=this.convert(U[A],U,X);break;case 11:return G;case 13:if(this.stack.length<2){G=!0;break}P=this.stack.pop(),E=this.stack.pop(),this.lsb=E,this.width=P,this.stack.push(P,E),G=this.executeCommand(2,m.hmoveto);break;case 14:this.output.push(m.endchar[0]);break;case 21:if(this.flexing)break;G=this.executeCommand(2,m.rmoveto);break;case 22:if(this.flexing){this.stack.push(0);break}G=this.executeCommand(1,m.hmoveto);break;case 30:G=this.executeCommand(4,m.vhcurveto);break;case 31:G=this.executeCommand(4,m.hvcurveto);break;case(12<<8)+0:this.stack=[];break;case(12<<8)+1:{this.stack=[];break}case(12<<8)+2:{this.stack=[];break}case(12<<8)+6:X?(this.seac=this.stack.splice(-4,4),G=this.executeCommand(0,m.endchar)):G=this.executeCommand(4,m.endchar);break;case(12<<8)+7:if(this.stack.length<4){G=!0;break}this.stack.pop(),P=this.stack.pop();var L=this.stack.pop();E=this.stack.pop(),this.lsb=E,this.width=P,this.stack.push(P,E,L),G=this.executeCommand(3,m.rmoveto);break;case(12<<8)+12:if(this.stack.length<2){G=!0;break}var k=this.stack.pop(),v=this.stack.pop();this.stack.push(v/k);break;case(12<<8)+16:if(this.stack.length<2){G=!0;break}A=this.stack.pop();var y=this.stack.pop();if(A===0&&y===3){var b=this.stack.splice(this.stack.length-17,17);this.stack.push(b[2]+b[0],b[3]+b[1],b[4],b[5],b[6],b[7],b[8],b[9],b[10],b[11],b[12],b[13],b[14]),G=this.executeCommand(13,m.flex,!0),this.flexing=!1,this.stack.push(b[15],b[16])}else A===1&&y===0&&(this.flexing=!0);break;case(12<<8)+17:break;case(12<<8)+33:this.stack=[];break;default:(0,a.warn)('Unknown type 1 charstring command of "'+F+'"');break}if(G)break;continue}else F<=246?F=F-139:F<=250?F=(F-247)*256+re[++_]+108:F<=254?F=-((F-251)*256)-re[++_]-108:F=(re[++_]&255)<<24|(re[++_]&255)<<16|(re[++_]&255)<<8|(re[++_]&255)<<0;this.stack.push(F)}return G},executeCommand(Y,re,U){var X=this.stack.length;if(Y>X)return!0;for(var W=X-Y,G=W;G<X;G++){var P=this.stack[G];Number.isInteger(P)?this.output.push(28,P>>8&255,P&255):(P=65536*P|0,this.output.push(255,P>>24&255,P>>16&255,P>>8&255,P&255))}return this.output.push.apply(this.output,re),U?this.stack.splice(W,Y):this.stack.length=0,!1}},u}(),ee=function(){var m=55665,u=4330;function Y(G){return G>=48&&G<=57||G>=65&&G<=70||G>=97&&G<=102}function re(G,P,E){if(E>=G.length)return new Uint8Array(0);var A=P|0,_=52845,F=22719,D,L;for(D=0;D<E;D++)A=(G[D]+A)*_+F&(1<<16)-1;var k=G.length-E,v=new Uint8Array(k);for(D=E,L=0;L<k;D++,L++){var y=G[D];v[L]=y^A>>8,A=(y+A)*_+F&(1<<16)-1}return v}function U(G,P,E){var A=P|0,_=52845,F=22719,D=G.length,L=D>>>1,k=new Uint8Array(L),v,y;for(v=0,y=0;v<D;v++){var b=G[v];if(!!Y(b)){v++;for(var C;v<D&&!Y(C=G[v]);)v++;if(v<D){var w=parseInt(String.fromCharCode(b,C),16);k[y++]=w^A>>8,A=(w+A)*_+F&(1<<16)-1}}}return k.slice(E,y)}function X(G){return G===47||G===91||G===93||G===123||G===125||G===40||G===41}function W(G,P,E){if(P){var A=G.getBytes(),_=!((Y(A[0])||(0,O.isWhiteSpace)(A[0]))&&Y(A[1])&&Y(A[2])&&Y(A[3])&&Y(A[4])&&Y(A[5])&&Y(A[6])&&Y(A[7]));G=new J.Stream(_?re(A,m,4):U(A,m,4))}this.seacAnalysisEnabled=!!E,this.stream=G,this.nextChar()}return W.prototype={readNumberArray:function(){this.getToken();for(var P=[];;){var E=this.getToken();if(E===null||E==="]"||E==="}")break;P.push(parseFloat(E||0))}return P},readNumber:function(){var P=this.getToken();return parseFloat(P||0)},readInt:function(){var P=this.getToken();return parseInt(P||0,10)|0},readBoolean:function(){var P=this.getToken();return P==="true"?1:0},nextChar:function(){return this.currentChar=this.stream.getByte()},getToken:function(){for(var P=!1,E=this.currentChar;;){if(E===-1)return null;if(P)(E===10||E===13)&&(P=!1);else if(E===37)P=!0;else if(!(0,O.isWhiteSpace)(E))break;E=this.nextChar()}if(X(E))return this.nextChar(),String.fromCharCode(E);var A="";do A+=String.fromCharCode(E),E=this.nextChar();while(E>=0&&!(0,O.isWhiteSpace)(E)&&!X(E));return A},readCharStrings:function(P,E){return E===-1?P:re(P,u,E)},extractFontProgram:function(P){var E=this.stream,A=[],_=[],F=Object.create(null);F.lenIV=4;for(var D={subrs:[],charstrings:[],properties:{privateData:F}},L,k,v,y,b;(L=this.getToken())!==null;)if(L==="/")switch(L=this.getToken(),L){case"CharStrings":for(this.getToken(),this.getToken(),this.getToken(),this.getToken();L=this.getToken(),!(L===null||L==="end");)if(L==="/"){var C=this.getToken();k=this.readInt(),this.getToken(),v=k>0?E.getBytes(k):new Uint8Array(0),y=D.properties.privateData.lenIV,b=this.readCharStrings(v,y),this.nextChar(),L=this.getToken(),L==="noaccess"&&this.getToken(),_.push({glyph:C,encoded:b})}break;case"Subrs":for(this.readInt(),this.getToken();this.getToken()==="dup";){const z=this.readInt();k=this.readInt(),this.getToken(),v=k>0?E.getBytes(k):new Uint8Array(0),y=D.properties.privateData.lenIV,b=this.readCharStrings(v,y),this.nextChar(),L=this.getToken(),L==="noaccess"&&this.getToken(),A[z]=b}break;case"BlueValues":case"OtherBlues":case"FamilyBlues":case"FamilyOtherBlues":var w=this.readNumberArray();w.length>0&&w.length%2===0&&se&&(D.properties.privateData[L]=w);break;case"StemSnapH":case"StemSnapV":D.properties.privateData[L]=this.readNumberArray();break;case"StdHW":case"StdVW":D.properties.privateData[L]=this.readNumberArray()[0];break;case"BlueShift":case"lenIV":case"BlueFuzz":case"BlueScale":case"LanguageGroup":case"ExpansionFactor":D.properties.privateData[L]=this.readNumber();break;case"ForceBold":D.properties.privateData[L]=this.readBoolean();break}for(var T=0;T<_.length;T++){C=_[T].glyph,b=_[T].encoded;var B=new H,N=B.convert(b,A,this.seacAnalysisEnabled),Q=B.output;N&&(Q=[14]);const z={glyphName:C,charstring:Q,width:B.width,lsb:B.lsb,seac:B.seac};if(C===".notdef"?D.charstrings.unshift(z):D.charstrings.push(z),P.builtInEncoding){const j=P.builtInEncoding.indexOf(C);j>-1&&P.widths[j]===void 0&&j>=P.firstChar&&j<=P.lastChar&&(P.widths[j]=B.width)}}return D},extractFontHeader:function(P){for(var E;(E=this.getToken())!==null;)if(E==="/")switch(E=this.getToken(),E){case"FontMatrix":var A=this.readNumberArray();P.fontMatrix=A;break;case"Encoding":var _=this.getToken(),F;if(!/^\d+$/.test(_))F=(0,g.getEncoding)(_);else{F=[];var D=parseInt(_,10)|0;this.getToken();for(var L=0;L<D;L++){for(E=this.getToken();E!=="dup"&&E!=="def";)if(E=this.getToken(),E===null)return;if(E==="def")break;var k=this.readInt();this.getToken();var v=this.getToken();F[k]=v,this.getToken()}}P.builtInEncoding=F;break;case"FontBBox":var y=this.readNumberArray();P.ascent=Math.max(y[3],y[1]),P.descent=Math.min(y[1],y[3]),P.ascentScaled=!0;break}}},W}();d.Type1Parser=ee},function(S,d,R){Object.defineProperty(d,"__esModule",{value:!0}),d.getTilingPatternIR=ie,d.Pattern=void 0;var g=R(2),O=R(23),J=R(5),a=R(8),se={FUNCTION_BASED:1,AXIAL:2,RADIAL:3,FREE_FORM_MESH:4,LATTICE_FORM_MESH:5,COONS_PATCH_MESH:6,TENSOR_PATCH_MESH:7},H=function(){function u(){(0,g.unreachable)("should not call Pattern constructor")}return u.prototype={getPattern:function(re){(0,g.unreachable)(`Should not call Pattern.getStyle: ${re}`)}},u.parseShading=function(Y,re,U,X,W,G){var P=(0,J.isStream)(Y)?Y.dict:Y,E=P.get("ShadingType");try{switch(E){case se.AXIAL:case se.RADIAL:return new ee.RadialAxial(P,re,U,X,G);case se.FREE_FORM_MESH:case se.LATTICE_FORM_MESH:case se.COONS_PATCH_MESH:case se.TENSOR_PATCH_MESH:return new ee.Mesh(Y,re,U,X,G);default:throw new g.FormatError("Unsupported ShadingType: "+E)}}catch(A){if(A instanceof a.MissingDataException)throw A;return W.send("UnsupportedFeature",{featureId:g.UNSUPPORTED_FEATURES.shadingPattern}),(0,g.warn)(A),new ee.Dummy}},u}();d.Pattern=H;var ee={};ee.SMALL_NUMBER=1e-6,ee.RadialAxial=function(){function u(Y,re,U,X,W){this.matrix=re,this.coordsArr=Y.getArray("Coords"),this.shadingType=Y.get("ShadingType"),this.type="Pattern";var G=Y.get("ColorSpace","CS");G=O.ColorSpace.parse(G,U,X,W),this.cs=G;const P=Y.getArray("BBox");Array.isArray(P)&&P.length===4?this.bbox=g.Util.normalizeRect(P):this.bbox=null;var E=0,A=1;if(Y.has("Domain")){var _=Y.getArray("Domain");E=_[0],A=_[1]}var F=!1,D=!1;if(Y.has("Extend")){var L=Y.getArray("Extend");F=L[0],D=L[1]}if(this.shadingType===se.RADIAL&&(!F||!D)){var k=this.coordsArr[0],v=this.coordsArr[1],y=this.coordsArr[2],b=this.coordsArr[3],C=this.coordsArr[4],w=this.coordsArr[5],T=Math.sqrt((k-b)*(k-b)+(v-C)*(v-C));y<=w+T&&w<=y+T&&(0,g.warn)("Unsupported radial gradient.")}this.extendStart=F,this.extendEnd=D;var B=Y.get("Function"),N=W.createFromArray(B);const Q=10,z=(A-E)/Q;var j=this.colorStops=[];if(E>=A||z<=0){(0,g.info)("Bad shading domain.");return}var $=new Float32Array(G.numComps),M=new Float32Array(1),q;for(let te=0;te<=Q;te++){M[0]=E+te*z,N(M,0,$,0),q=G.getRgb($,0);var K=g.Util.makeCssRgb(q[0],q[1],q[2]);j.push([te/Q,K])}var Z="transparent";Y.has("Background")&&(q=G.getRgb(Y.get("Background"),0),Z=g.Util.makeCssRgb(q[0],q[1],q[2])),F||(j.unshift([0,Z]),j[1][0]+=ee.SMALL_NUMBER),D||(j[j.length-1][0]-=ee.SMALL_NUMBER,j.push([1,Z])),this.colorStops=j}return u.prototype={getIR:function(){var re=this.coordsArr,U=this.shadingType,X,W,G,P,E;U===se.AXIAL?(W=[re[0],re[1]],G=[re[2],re[3]],P=null,E=null,X="axial"):U===se.RADIAL?(W=[re[0],re[1]],G=[re[3],re[4]],P=re[2],E=re[5],X="radial"):(0,g.unreachable)(`getPattern type unknown: ${U}`);var A=this.matrix;if(A&&(W=g.Util.applyTransform(W,A),G=g.Util.applyTransform(G,A),U===se.RADIAL)){var _=g.Util.singularValueDecompose2dScale(A);P*=_[0],E*=_[1]}return["RadialAxial",X,this.bbox,this.colorStops,W,G,P,E]}},u}(),ee.Mesh=function(){function u(L,k){this.stream=L,this.context=k,this.buffer=0,this.bufferLength=0;var v=k.numComps;this.tmpCompsBuf=new Float32Array(v);var y=k.colorSpace.numComps;this.tmpCsCompsBuf=k.colorFn?new Float32Array(y):this.tmpCompsBuf}u.prototype={get hasData(){if(this.stream.end)return this.stream.pos<this.stream.end;if(this.bufferLength>0)return!0;var L=this.stream.getByte();return L<0?!1:(this.buffer=L,this.bufferLength=8,!0)},readBits:function(k){var v=this.buffer,y=this.bufferLength;if(k===32){if(y===0)return(this.stream.getByte()<<24|this.stream.getByte()<<16|this.stream.getByte()<<8|this.stream.getByte())>>>0;v=v<<24|this.stream.getByte()<<16|this.stream.getByte()<<8|this.stream.getByte();var b=this.stream.getByte();return this.buffer=b&(1<<y)-1,(v<<8-y|(b&255)>>y)>>>0}if(k===8&&y===0)return this.stream.getByte();for(;y<k;)v=v<<8|this.stream.getByte(),y+=8;return y-=k,this.bufferLength=y,this.buffer=v&(1<<y)-1,v>>y},align:function(){this.buffer=0,this.bufferLength=0},readFlag:function(){return this.readBits(this.context.bitsPerFlag)},readCoordinate:function(){var k=this.context.bitsPerCoordinate,v=this.readBits(k),y=this.readBits(k),b=this.context.decode,C=k<32?1/((1<<k)-1):23283064365386963e-26;return[v*C*(b[1]-b[0])+b[0],y*C*(b[3]-b[2])+b[2]]},readComponents:function(){for(var k=this.context.numComps,v=this.context.bitsPerComponent,y=v<32?1/((1<<v)-1):23283064365386963e-26,b=this.context.decode,C=this.tmpCompsBuf,w=0,T=4;w<k;w++,T+=2){var B=this.readBits(v);C[w]=B*y*(b[T+1]-b[T])+b[T]}var N=this.tmpCsCompsBuf;return this.context.colorFn&&this.context.colorFn(C,0,N,0),this.context.colorSpace.getRgb(N,0)}};function Y(L,k){for(var v=L.coords,y=L.colors,b=[],C=0;k.hasData;){var w=k.readFlag(),T=k.readCoordinate(),B=k.readComponents();if(C===0){if(!(0<=w&&w<=2))throw new g.FormatError("Unknown type4 flag");switch(w){case 0:C=3;break;case 1:b.push(b[b.length-2],b[b.length-1]),C=1;break;case 2:b.push(b[b.length-3],b[b.length-1]),C=1;break}}b.push(v.length),v.push(T),y.push(B),C--,k.align()}L.figures.push({type:"triangles",coords:new Int32Array(b),colors:new Int32Array(b)})}function re(L,k,v){for(var y=L.coords,b=L.colors,C=[];k.hasData;){var w=k.readCoordinate(),T=k.readComponents();C.push(y.length),y.push(w),b.push(T)}L.figures.push({type:"lattice",coords:new Int32Array(C),colors:new Int32Array(C),verticesPerRow:v})}var U=3,X=20,W=20,G=function(){function k(y){for(var b=[],C=0;C<=y;C++){var w=C/y,T=1-w;b.push(new Float32Array([T*T*T,3*w*T*T,3*w*w*T,w*w*w]))}return b}var v=[];return function(b){return v[b]||(v[b]=k(b)),v[b]}}();function P(L,k){var v=L.figures[k];(0,g.assert)(v.type==="patch","Unexpected patch mesh figure");var y=L.coords,b=L.colors,C=v.coords,w=v.colors,T=Math.min(y[C[0]][0],y[C[3]][0],y[C[12]][0],y[C[15]][0]),B=Math.min(y[C[0]][1],y[C[3]][1],y[C[12]][1],y[C[15]][1]),N=Math.max(y[C[0]][0],y[C[3]][0],y[C[12]][0],y[C[15]][0]),Q=Math.max(y[C[0]][1],y[C[3]][1],y[C[12]][1],y[C[15]][1]),z=Math.ceil((N-T)*W/(L.bounds[2]-L.bounds[0]));z=Math.max(U,Math.min(X,z));var j=Math.ceil((Q-B)*W/(L.bounds[3]-L.bounds[1]));j=Math.max(U,Math.min(X,j));for(var $=z+1,M=new Int32Array((j+1)*$),q=new Int32Array((j+1)*$),K=0,Z=new Uint8Array(3),te=new Uint8Array(3),oe=b[w[0]],ae=b[w[1]],ce=b[w[2]],fe=b[w[3]],ne=G(j),le=G(z),ue=0;ue<=j;ue++){Z[0]=(oe[0]*(j-ue)+ce[0]*ue)/j|0,Z[1]=(oe[1]*(j-ue)+ce[1]*ue)/j|0,Z[2]=(oe[2]*(j-ue)+ce[2]*ue)/j|0,te[0]=(ae[0]*(j-ue)+fe[0]*ue)/j|0,te[1]=(ae[1]*(j-ue)+fe[1]*ue)/j|0,te[2]=(ae[2]*(j-ue)+fe[2]*ue)/j|0;for(var he=0;he<=z;he++,K++)if(!((ue===0||ue===j)&&(he===0||he===z))){for(var de=0,ve=0,me=0,Se=0;Se<=3;Se++)for(var Ce=0;Ce<=3;Ce++,me++){var xe=ne[ue][Se]*le[he][Ce];de+=y[C[me]][0]*xe,ve+=y[C[me]][1]*xe}M[K]=y.length,y.push([de,ve]),q[K]=b.length;var ge=new Uint8Array(3);ge[0]=(Z[0]*(z-he)+te[0]*he)/z|0,ge[1]=(Z[1]*(z-he)+te[1]*he)/z|0,ge[2]=(Z[2]*(z-he)+te[2]*he)/z|0,b.push(ge)}}M[0]=C[0],q[0]=w[0],M[z]=C[3],q[z]=w[1],M[$*j]=C[12],q[$*j]=w[2],M[$*j+z]=C[15],q[$*j+z]=w[3],L.figures[k]={type:"lattice",coords:M,colors:q,verticesPerRow:$}}function E(L,k){for(var v=L.coords,y=L.colors,b=new Int32Array(16),C=new Int32Array(4);k.hasData;){var w=k.readFlag();if(!(0<=w&&w<=3))throw new g.FormatError("Unknown type6 flag");var T,B,N=v.length;for(T=0,B=w!==0?8:12;T<B;T++)v.push(k.readCoordinate());var Q=y.length;for(T=0,B=w!==0?2:4;T<B;T++)y.push(k.readComponents());var z,j,$,M;switch(w){case 0:b[12]=N+3,b[13]=N+4,b[14]=N+5,b[15]=N+6,b[8]=N+2,b[11]=N+7,b[4]=N+1,b[7]=N+8,b[0]=N,b[1]=N+11,b[2]=N+10,b[3]=N+9,C[2]=Q+1,C[3]=Q+2,C[0]=Q,C[1]=Q+3;break;case 1:z=b[12],j=b[13],$=b[14],M=b[15],b[12]=M,b[13]=N+0,b[14]=N+1,b[15]=N+2,b[8]=$,b[11]=N+3,b[4]=j,b[7]=N+4,b[0]=z,b[1]=N+7,b[2]=N+6,b[3]=N+5,z=C[2],j=C[3],C[2]=j,C[3]=Q,C[0]=z,C[1]=Q+1;break;case 2:z=b[15],j=b[11],b[12]=b[3],b[13]=N+0,b[14]=N+1,b[15]=N+2,b[8]=b[7],b[11]=N+3,b[4]=j,b[7]=N+4,b[0]=z,b[1]=N+7,b[2]=N+6,b[3]=N+5,z=C[3],C[2]=C[1],C[3]=Q,C[0]=z,C[1]=Q+1;break;case 3:b[12]=b[0],b[13]=N+0,b[14]=N+1,b[15]=N+2,b[8]=b[1],b[11]=N+3,b[4]=b[2],b[7]=N+4,b[0]=b[3],b[1]=N+7,b[2]=N+6,b[3]=N+5,C[2]=C[0],C[3]=Q,C[0]=C[1],C[1]=Q+1;break}b[5]=v.length,v.push([(-4*v[b[0]][0]-v[b[15]][0]+6*(v[b[4]][0]+v[b[1]][0])-2*(v[b[12]][0]+v[b[3]][0])+3*(v[b[13]][0]+v[b[7]][0]))/9,(-4*v[b[0]][1]-v[b[15]][1]+6*(v[b[4]][1]+v[b[1]][1])-2*(v[b[12]][1]+v[b[3]][1])+3*(v[b[13]][1]+v[b[7]][1]))/9]),b[6]=v.length,v.push([(-4*v[b[3]][0]-v[b[12]][0]+6*(v[b[2]][0]+v[b[7]][0])-2*(v[b[0]][0]+v[b[15]][0])+3*(v[b[4]][0]+v[b[14]][0]))/9,(-4*v[b[3]][1]-v[b[12]][1]+6*(v[b[2]][1]+v[b[7]][1])-2*(v[b[0]][1]+v[b[15]][1])+3*(v[b[4]][1]+v[b[14]][1]))/9]),b[9]=v.length,v.push([(-4*v[b[12]][0]-v[b[3]][0]+6*(v[b[8]][0]+v[b[13]][0])-2*(v[b[0]][0]+v[b[15]][0])+3*(v[b[11]][0]+v[b[1]][0]))/9,(-4*v[b[12]][1]-v[b[3]][1]+6*(v[b[8]][1]+v[b[13]][1])-2*(v[b[0]][1]+v[b[15]][1])+3*(v[b[11]][1]+v[b[1]][1]))/9]),b[10]=v.length,v.push([(-4*v[b[15]][0]-v[b[0]][0]+6*(v[b[11]][0]+v[b[14]][0])-2*(v[b[12]][0]+v[b[3]][0])+3*(v[b[2]][0]+v[b[8]][0]))/9,(-4*v[b[15]][1]-v[b[0]][1]+6*(v[b[11]][1]+v[b[14]][1])-2*(v[b[12]][1]+v[b[3]][1])+3*(v[b[2]][1]+v[b[8]][1]))/9]),L.figures.push({type:"patch",coords:new Int32Array(b),colors:new Int32Array(C)})}}function A(L,k){for(var v=L.coords,y=L.colors,b=new Int32Array(16),C=new Int32Array(4);k.hasData;){var w=k.readFlag();if(!(0<=w&&w<=3))throw new g.FormatError("Unknown type7 flag");var T,B,N=v.length;for(T=0,B=w!==0?12:16;T<B;T++)v.push(k.readCoordinate());var Q=y.length;for(T=0,B=w!==0?2:4;T<B;T++)y.push(k.readComponents());var z,j,$,M;switch(w){case 0:b[12]=N+3,b[13]=N+4,b[14]=N+5,b[15]=N+6,b[8]=N+2,b[9]=N+13,b[10]=N+14,b[11]=N+7,b[4]=N+1,b[5]=N+12,b[6]=N+15,b[7]=N+8,b[0]=N,b[1]=N+11,b[2]=N+10,b[3]=N+9,C[2]=Q+1,C[3]=Q+2,C[0]=Q,C[1]=Q+3;break;case 1:z=b[12],j=b[13],$=b[14],M=b[15],b[12]=M,b[13]=N+0,b[14]=N+1,b[15]=N+2,b[8]=$,b[9]=N+9,b[10]=N+10,b[11]=N+3,b[4]=j,b[5]=N+8,b[6]=N+11,b[7]=N+4,b[0]=z,b[1]=N+7,b[2]=N+6,b[3]=N+5,z=C[2],j=C[3],C[2]=j,C[3]=Q,C[0]=z,C[1]=Q+1;break;case 2:z=b[15],j=b[11],b[12]=b[3],b[13]=N+0,b[14]=N+1,b[15]=N+2,b[8]=b[7],b[9]=N+9,b[10]=N+10,b[11]=N+3,b[4]=j,b[5]=N+8,b[6]=N+11,b[7]=N+4,b[0]=z,b[1]=N+7,b[2]=N+6,b[3]=N+5,z=C[3],C[2]=C[1],C[3]=Q,C[0]=z,C[1]=Q+1;break;case 3:b[12]=b[0],b[13]=N+0,b[14]=N+1,b[15]=N+2,b[8]=b[1],b[9]=N+9,b[10]=N+10,b[11]=N+3,b[4]=b[2],b[5]=N+8,b[6]=N+11,b[7]=N+4,b[0]=b[3],b[1]=N+7,b[2]=N+6,b[3]=N+5,C[2]=C[0],C[3]=Q,C[0]=C[1],C[1]=Q+1;break}L.figures.push({type:"patch",coords:new Int32Array(b),colors:new Int32Array(C)})}}function _(L){for(var k=L.coords[0][0],v=L.coords[0][1],y=k,b=v,C=1,w=L.coords.length;C<w;C++){var T=L.coords[C][0],B=L.coords[C][1];k=k>T?T:k,v=v>B?B:v,y=y<T?T:y,b=b<B?B:b}L.bounds=[k,v,y,b]}function F(L){var k,v,y,b,C=L.coords,w=new Float32Array(C.length*2);for(k=0,y=0,v=C.length;k<v;k++){var T=C[k];w[y++]=T[0],w[y++]=T[1]}L.coords=w;var B=L.colors,N=new Uint8Array(B.length*3);for(k=0,y=0,v=B.length;k<v;k++){var Q=B[k];N[y++]=Q[0],N[y++]=Q[1],N[y++]=Q[2]}L.colors=N;var z=L.figures;for(k=0,v=z.length;k<v;k++){var j=z[k],$=j.coords,M=j.colors;for(y=0,b=$.length;y<b;y++)$[y]*=2,M[y]*=3}}function D(L,k,v,y,b){if(!(0,J.isStream)(L))throw new g.FormatError("Mesh data is not a stream");var C=L.dict;this.matrix=k,this.shadingType=C.get("ShadingType"),this.type="Pattern";const w=C.getArray("BBox");Array.isArray(w)&&w.length===4?this.bbox=g.Util.normalizeRect(w):this.bbox=null;var T=C.get("ColorSpace","CS");T=O.ColorSpace.parse(T,v,y,b),this.cs=T,this.background=C.has("Background")?T.getRgb(C.get("Background"),0):null;var B=C.get("Function"),N=B?b.createFromArray(B):null;this.coords=[],this.colors=[],this.figures=[];var Q={bitsPerCoordinate:C.get("BitsPerCoordinate"),bitsPerComponent:C.get("BitsPerComponent"),bitsPerFlag:C.get("BitsPerFlag"),decode:C.getArray("Decode"),colorFn:N,colorSpace:T,numComps:N?1:T.numComps},z=new u(L,Q),j=!1;switch(this.shadingType){case se.FREE_FORM_MESH:Y(this,z);break;case se.LATTICE_FORM_MESH:var $=C.get("VerticesPerRow")|0;if($<2)throw new g.FormatError("Invalid VerticesPerRow");re(this,z,$);break;case se.COONS_PATCH_MESH:E(this,z),j=!0;break;case se.TENSOR_PATCH_MESH:A(this,z),j=!0;break;default:(0,g.unreachable)("Unsupported mesh type.");break}if(j){_(this);for(var M=0,q=this.figures.length;M<q;M++)P(this,M)}_(this),F(this)}return D.prototype={getIR:function(){return["Mesh",this.shadingType,this.coords,this.colors,this.figures,this.bounds,this.matrix,this.bbox,this.background]}},D}(),ee.Dummy=function(){function u(){this.type="Pattern"}return u.prototype={getIR:function(){return["Dummy"]}},u}();function ie(m,u,Y){const re=u.getArray("Matrix"),U=g.Util.normalizeRect(u.getArray("BBox")),X=u.get("XStep"),W=u.get("YStep"),G=u.get("PaintType"),P=u.get("TilingType");if(U[2]-U[0]===0||U[3]-U[1]===0)throw new g.FormatError(`Invalid getTilingPatternIR /BBox array: [${U}].`);return["TilingPattern",Y,m,re,U,X,W,G,P]}},function(S,d,R){Object.defineProperty(d,"__esModule",{value:!0}),d.bidi=re;var g=R(2),O=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","ON","ON","ET","ET","ET","ON","ON","ON","ON","ON","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","ON","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","ON","ON","ON","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","ON","ET","ET","ET","ET","ON","ON","ON","ON","L","ON","ON","BN","ON","ON","ET","ET","EN","EN","ON","L","ON","ON","ON","EN","L","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","L","L","L","L","L","L","L","L"],J=["AN","AN","AN","AN","AN","AN","ON","ON","AL","ET","ET","AL","CS","AL","ON","ON","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","ON","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","ON","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL"];function a(U){return(U&1)!==0}function se(U){return(U&1)===0}function H(U,X,W){for(var G=X,P=U.length;G<P;++G)if(U[G]!==W)return G;return G}function ee(U,X,W,G){for(var P=X;P<W;++P)U[P]=G}function ie(U,X,W){for(var G=X,P=W-1;G<P;++G,--P){var E=U[G];U[G]=U[P],U[P]=E}}function m(U,X,W=!1){let G="ltr";return W?G="ttb":X||(G="rtl"),{str:U,dir:G}}var u=[],Y=[];function re(U,X,W){var G=!0,P=U.length;if(P===0||W)return m(U,G,W);u.length=P,Y.length=P;var E=0,A,_;for(A=0;A<P;++A){u[A]=U.charAt(A);var F=U.charCodeAt(A),D="L";F<=255?D=O[F]:1424<=F&&F<=1524?D="R":1536<=F&&F<=1791?(D=J[F&255],D||(0,g.warn)("Bidi: invalid Unicode character "+F.toString(16))):1792<=F&&F<=2220&&(D="AL"),(D==="R"||D==="AL"||D==="AN")&&E++,Y[A]=D}if(E===0)return G=!0,m(U,G);X===-1&&(E/P<.3?(G=!0,X=0):(G=!1,X=1));var L=[];for(A=0;A<P;++A)L[A]=X;var k=a(X)?"R":"L",v=k,y=v,b=v;for(A=0;A<P;++A)Y[A]==="NSM"?Y[A]=b:b=Y[A];b=v;var C;for(A=0;A<P;++A)C=Y[A],C==="EN"?Y[A]=b==="AL"?"AN":"EN":(C==="R"||C==="L"||C==="AL")&&(b=C);for(A=0;A<P;++A)C=Y[A],C==="AL"&&(Y[A]="R");for(A=1;A<P-1;++A)Y[A]==="ES"&&Y[A-1]==="EN"&&Y[A+1]==="EN"&&(Y[A]="EN"),Y[A]==="CS"&&(Y[A-1]==="EN"||Y[A-1]==="AN")&&Y[A+1]===Y[A-1]&&(Y[A]=Y[A-1]);for(A=0;A<P;++A)if(Y[A]==="EN"){var w;for(w=A-1;w>=0&&Y[w]==="ET";--w)Y[w]="EN";for(w=A+1;w<P&&Y[w]==="ET";++w)Y[w]="EN"}for(A=0;A<P;++A)C=Y[A],(C==="WS"||C==="ES"||C==="ET"||C==="CS")&&(Y[A]="ON");for(b=v,A=0;A<P;++A)C=Y[A],C==="EN"?Y[A]=b==="L"?"L":"EN":(C==="R"||C==="L")&&(b=C);for(A=0;A<P;++A)if(Y[A]==="ON"){var T=H(Y,A+1,"ON"),B=v;A>0&&(B=Y[A-1]);var N=y;T+1<P&&(N=Y[T+1]),B!=="L"&&(B="R"),N!=="L"&&(N="R"),B===N&&ee(Y,A,T,B),A=T-1}for(A=0;A<P;++A)Y[A]==="ON"&&(Y[A]=k);for(A=0;A<P;++A)C=Y[A],se(L[A])?C==="R"?L[A]+=1:(C==="AN"||C==="EN")&&(L[A]+=2):(C==="L"||C==="AN"||C==="EN")&&(L[A]+=1);var Q=-1,z=99,j;for(A=0,_=L.length;A<_;++A)j=L[A],Q<j&&(Q=j),z>j&&a(j)&&(z=j);for(j=Q;j>=z;--j){var $=-1;for(A=0,_=L.length;A<_;++A)L[A]<j?$>=0&&(ie(u,$,A),$=-1):$<0&&($=A);$>=0&&ie(u,$,L.length)}for(A=0,_=u.length;A<_;++A){var M=u[A];(M==="<"||M===">")&&(u[A]="")}return m(u.join(""),G)}},function(S,d,R){Object.defineProperty(d,"__esModule",{value:!0}),d.getMetrics=void 0;var g=R(8),O=(0,g.getLookupTableFactory)(function(J){J.Courier=600,J["Courier-Bold"]=600,J["Courier-BoldOblique"]=600,J["Courier-Oblique"]=600,J.Helvetica=(0,g.getLookupTableFactory)(function(a){a.space=278,a.exclam=278,a.quotedbl=355,a.numbersign=556,a.dollar=556,a.percent=889,a.ampersand=667,a.quoteright=222,a.parenleft=333,a.parenright=333,a.asterisk=389,a.plus=584,a.comma=278,a.hyphen=333,a.period=278,a.slash=278,a.zero=556,a.one=556,a.two=556,a.three=556,a.four=556,a.five=556,a.six=556,a.seven=556,a.eight=556,a.nine=556,a.colon=278,a.semicolon=278,a.less=584,a.equal=584,a.greater=584,a.question=556,a.at=1015,a.A=667,a.B=667,a.C=722,a.D=722,a.E=667,a.F=611,a.G=778,a.H=722,a.I=278,a.J=500,a.K=667,a.L=556,a.M=833,a.N=722,a.O=778,a.P=667,a.Q=778,a.R=722,a.S=667,a.T=611,a.U=722,a.V=667,a.W=944,a.X=667,a.Y=667,a.Z=611,a.bracketleft=278,a.backslash=278,a.bracketright=278,a.asciicircum=469,a.underscore=556,a.quoteleft=222,a.a=556,a.b=556,a.c=500,a.d=556,a.e=556,a.f=278,a.g=556,a.h=556,a.i=222,a.j=222,a.k=500,a.l=222,a.m=833,a.n=556,a.o=556,a.p=556,a.q=556,a.r=333,a.s=500,a.t=278,a.u=556,a.v=500,a.w=722,a.x=500,a.y=500,a.z=500,a.braceleft=334,a.bar=260,a.braceright=334,a.asciitilde=584,a.exclamdown=333,a.cent=556,a.sterling=556,a.fraction=167,a.yen=556,a.florin=556,a.section=556,a.currency=556,a.quotesingle=191,a.quotedblleft=333,a.guillemotleft=556,a.guilsinglleft=333,a.guilsinglright=333,a.fi=500,a.fl=500,a.endash=556,a.dagger=556,a.daggerdbl=556,a.periodcentered=278,a.paragraph=537,a.bullet=350,a.quotesinglbase=222,a.quotedblbase=333,a.quotedblright=333,a.guillemotright=556,a.ellipsis=1e3,a.perthousand=1e3,a.questiondown=611,a.grave=333,a.acute=333,a.circumflex=333,a.tilde=333,a.macron=333,a.breve=333,a.dotaccent=333,a.dieresis=333,a.ring=333,a.cedilla=333,a.hungarumlaut=333,a.ogonek=333,a.caron=333,a.emdash=1e3,a.AE=1e3,a.ordfeminine=370,a.Lslash=556,a.Oslash=778,a.OE=1e3,a.ordmasculine=365,a.ae=889,a.dotlessi=278,a.lslash=222,a.oslash=611,a.oe=944,a.germandbls=611,a.Idieresis=278,a.eacute=556,a.abreve=556,a.uhungarumlaut=556,a.ecaron=556,a.Ydieresis=667,a.divide=584,a.Yacute=667,a.Acircumflex=667,a.aacute=556,a.Ucircumflex=722,a.yacute=500,a.scommaaccent=500,a.ecircumflex=556,a.Uring=722,a.Udieresis=722,a.aogonek=556,a.Uacute=722,a.uogonek=556,a.Edieresis=667,a.Dcroat=722,a.commaaccent=250,a.copyright=737,a.Emacron=667,a.ccaron=500,a.aring=556,a.Ncommaaccent=722,a.lacute=222,a.agrave=556,a.Tcommaaccent=611,a.Cacute=722,a.atilde=556,a.Edotaccent=667,a.scaron=500,a.scedilla=500,a.iacute=278,a.lozenge=471,a.Rcaron=722,a.Gcommaaccent=778,a.ucircumflex=556,a.acircumflex=556,a.Amacron=667,a.rcaron=333,a.ccedilla=500,a.Zdotaccent=611,a.Thorn=667,a.Omacron=778,a.Racute=722,a.Sacute=667,a.dcaron=643,a.Umacron=722,a.uring=556,a.threesuperior=333,a.Ograve=778,a.Agrave=667,a.Abreve=667,a.multiply=584,a.uacute=556,a.Tcaron=611,a.partialdiff=476,a.ydieresis=500,a.Nacute=722,a.icircumflex=278,a.Ecircumflex=667,a.adieresis=556,a.edieresis=556,a.cacute=500,a.nacute=556,a.umacron=556,a.Ncaron=722,a.Iacute=278,a.plusminus=584,a.brokenbar=260,a.registered=737,a.Gbreve=778,a.Idotaccent=278,a.summation=600,a.Egrave=667,a.racute=333,a.omacron=556,a.Zacute=611,a.Zcaron=611,a.greaterequal=549,a.Eth=722,a.Ccedilla=722,a.lcommaaccent=222,a.tcaron=317,a.eogonek=556,a.Uogonek=722,a.Aacute=667,a.Adieresis=667,a.egrave=556,a.zacute=500,a.iogonek=222,a.Oacute=778,a.oacute=556,a.amacron=556,a.sacute=500,a.idieresis=278,a.Ocircumflex=778,a.Ugrave=722,a.Delta=612,a.thorn=556,a.twosuperior=333,a.Odieresis=778,a.mu=556,a.igrave=278,a.ohungarumlaut=556,a.Eogonek=667,a.dcroat=556,a.threequarters=834,a.Scedilla=667,a.lcaron=299,a.Kcommaaccent=667,a.Lacute=556,a.trademark=1e3,a.edotaccent=556,a.Igrave=278,a.Imacron=278,a.Lcaron=556,a.onehalf=834,a.lessequal=549,a.ocircumflex=556,a.ntilde=556,a.Uhungarumlaut=722,a.Eacute=667,a.emacron=556,a.gbreve=556,a.onequarter=834,a.Scaron=667,a.Scommaaccent=667,a.Ohungarumlaut=778,a.degree=400,a.ograve=556,a.Ccaron=722,a.ugrave=556,a.radical=453,a.Dcaron=722,a.rcommaaccent=333,a.Ntilde=722,a.otilde=556,a.Rcommaaccent=722,a.Lcommaaccent=556,a.Atilde=667,a.Aogonek=667,a.Aring=667,a.Otilde=778,a.zdotaccent=500,a.Ecaron=667,a.Iogonek=278,a.kcommaaccent=500,a.minus=584,a.Icircumflex=278,a.ncaron=556,a.tcommaaccent=278,a.logicalnot=584,a.odieresis=556,a.udieresis=556,a.notequal=549,a.gcommaaccent=556,a.eth=556,a.zcaron=500,a.ncommaaccent=556,a.onesuperior=333,a.imacron=278,a.Euro=556}),J["Helvetica-Bold"]=(0,g.getLookupTableFactory)(function(a){a.space=278,a.exclam=333,a.quotedbl=474,a.numbersign=556,a.dollar=556,a.percent=889,a.ampersand=722,a.quoteright=278,a.parenleft=333,a.parenright=333,a.asterisk=389,a.plus=584,a.comma=278,a.hyphen=333,a.period=278,a.slash=278,a.zero=556,a.one=556,a.two=556,a.three=556,a.four=556,a.five=556,a.six=556,a.seven=556,a.eight=556,a.nine=556,a.colon=333,a.semicolon=333,a.less=584,a.equal=584,a.greater=584,a.question=611,a.at=975,a.A=722,a.B=722,a.C=722,a.D=722,a.E=667,a.F=611,a.G=778,a.H=722,a.I=278,a.J=556,a.K=722,a.L=611,a.M=833,a.N=722,a.O=778,a.P=667,a.Q=778,a.R=722,a.S=667,a.T=611,a.U=722,a.V=667,a.W=944,a.X=667,a.Y=667,a.Z=611,a.bracketleft=333,a.backslash=278,a.bracketright=333,a.asciicircum=584,a.underscore=556,a.quoteleft=278,a.a=556,a.b=611,a.c=556,a.d=611,a.e=556,a.f=333,a.g=611,a.h=611,a.i=278,a.j=278,a.k=556,a.l=278,a.m=889,a.n=611,a.o=611,a.p=611,a.q=611,a.r=389,a.s=556,a.t=333,a.u=611,a.v=556,a.w=778,a.x=556,a.y=556,a.z=500,a.braceleft=389,a.bar=280,a.braceright=389,a.asciitilde=584,a.exclamdown=333,a.cent=556,a.sterling=556,a.fraction=167,a.yen=556,a.florin=556,a.section=556,a.currency=556,a.quotesingle=238,a.quotedblleft=500,a.guillemotleft=556,a.guilsinglleft=333,a.guilsinglright=333,a.fi=611,a.fl=611,a.endash=556,a.dagger=556,a.daggerdbl=556,a.periodcentered=278,a.paragraph=556,a.bullet=350,a.quotesinglbase=278,a.quotedblbase=500,a.quotedblright=500,a.guillemotright=556,a.ellipsis=1e3,a.perthousand=1e3,a.questiondown=611,a.grave=333,a.acute=333,a.circumflex=333,a.tilde=333,a.macron=333,a.breve=333,a.dotaccent=333,a.dieresis=333,a.ring=333,a.cedilla=333,a.hungarumlaut=333,a.ogonek=333,a.caron=333,a.emdash=1e3,a.AE=1e3,a.ordfeminine=370,a.Lslash=611,a.Oslash=778,a.OE=1e3,a.ordmasculine=365,a.ae=889,a.dotlessi=278,a.lslash=278,a.oslash=611,a.oe=944,a.germandbls=611,a.Idieresis=278,a.eacute=556,a.abreve=556,a.uhungarumlaut=611,a.ecaron=556,a.Ydieresis=667,a.divide=584,a.Yacute=667,a.Acircumflex=722,a.aacute=556,a.Ucircumflex=722,a.yacute=556,a.scommaaccent=556,a.ecircumflex=556,a.Uring=722,a.Udieresis=722,a.aogonek=556,a.Uacute=722,a.uogonek=611,a.Edieresis=667,a.Dcroat=722,a.commaaccent=250,a.copyright=737,a.Emacron=667,a.ccaron=556,a.aring=556,a.Ncommaaccent=722,a.lacute=278,a.agrave=556,a.Tcommaaccent=611,a.Cacute=722,a.atilde=556,a.Edotaccent=667,a.scaron=556,a.scedilla=556,a.iacute=278,a.lozenge=494,a.Rcaron=722,a.Gcommaaccent=778,a.ucircumflex=611,a.acircumflex=556,a.Amacron=722,a.rcaron=389,a.ccedilla=556,a.Zdotaccent=611,a.Thorn=667,a.Omacron=778,a.Racute=722,a.Sacute=667,a.dcaron=743,a.Umacron=722,a.uring=611,a.threesuperior=333,a.Ograve=778,a.Agrave=722,a.Abreve=722,a.multiply=584,a.uacute=611,a.Tcaron=611,a.partialdiff=494,a.ydieresis=556,a.Nacute=722,a.icircumflex=278,a.Ecircumflex=667,a.adieresis=556,a.edieresis=556,a.cacute=556,a.nacute=611,a.umacron=611,a.Ncaron=722,a.Iacute=278,a.plusminus=584,a.brokenbar=280,a.registered=737,a.Gbreve=778,a.Idotaccent=278,a.summation=600,a.Egrave=667,a.racute=389,a.omacron=611,a.Zacute=611,a.Zcaron=611,a.greaterequal=549,a.Eth=722,a.Ccedilla=722,a.lcommaaccent=278,a.tcaron=389,a.eogonek=556,a.Uogonek=722,a.Aacute=722,a.Adieresis=722,a.egrave=556,a.zacute=500,a.iogonek=278,a.Oacute=778,a.oacute=611,a.amacron=556,a.sacute=556,a.idieresis=278,a.Ocircumflex=778,a.Ugrave=722,a.Delta=612,a.thorn=611,a.twosuperior=333,a.Odieresis=778,a.mu=611,a.igrave=278,a.ohungarumlaut=611,a.Eogonek=667,a.dcroat=611,a.threequarters=834,a.Scedilla=667,a.lcaron=400,a.Kcommaaccent=722,a.Lacute=611,a.trademark=1e3,a.edotaccent=556,a.Igrave=278,a.Imacron=278,a.Lcaron=611,a.onehalf=834,a.lessequal=549,a.ocircumflex=611,a.ntilde=611,a.Uhungarumlaut=722,a.Eacute=667,a.emacron=556,a.gbreve=611,a.onequarter=834,a.Scaron=667,a.Scommaaccent=667,a.Ohungarumlaut=778,a.degree=400,a.ograve=611,a.Ccaron=722,a.ugrave=611,a.radical=549,a.Dcaron=722,a.rcommaaccent=389,a.Ntilde=722,a.otilde=611,a.Rcommaaccent=722,a.Lcommaaccent=611,a.Atilde=722,a.Aogonek=722,a.Aring=722,a.Otilde=778,a.zdotaccent=500,a.Ecaron=667,a.Iogonek=278,a.kcommaaccent=556,a.minus=584,a.Icircumflex=278,a.ncaron=611,a.tcommaaccent=333,a.logicalnot=584,a.odieresis=611,a.udieresis=611,a.notequal=549,a.gcommaaccent=611,a.eth=611,a.zcaron=500,a.ncommaaccent=611,a.onesuperior=333,a.imacron=278,a.Euro=556}),J["Helvetica-BoldOblique"]=(0,g.getLookupTableFactory)(function(a){a.space=278,a.exclam=333,a.quotedbl=474,a.numbersign=556,a.dollar=556,a.percent=889,a.ampersand=722,a.quoteright=278,a.parenleft=333,a.parenright=333,a.asterisk=389,a.plus=584,a.comma=278,a.hyphen=333,a.period=278,a.slash=278,a.zero=556,a.one=556,a.two=556,a.three=556,a.four=556,a.five=556,a.six=556,a.seven=556,a.eight=556,a.nine=556,a.colon=333,a.semicolon=333,a.less=584,a.equal=584,a.greater=584,a.question=611,a.at=975,a.A=722,a.B=722,a.C=722,a.D=722,a.E=667,a.F=611,a.G=778,a.H=722,a.I=278,a.J=556,a.K=722,a.L=611,a.M=833,a.N=722,a.O=778,a.P=667,a.Q=778,a.R=722,a.S=667,a.T=611,a.U=722,a.V=667,a.W=944,a.X=667,a.Y=667,a.Z=611,a.bracketleft=333,a.backslash=278,a.bracketright=333,a.asciicircum=584,a.underscore=556,a.quoteleft=278,a.a=556,a.b=611,a.c=556,a.d=611,a.e=556,a.f=333,a.g=611,a.h=611,a.i=278,a.j=278,a.k=556,a.l=278,a.m=889,a.n=611,a.o=611,a.p=611,a.q=611,a.r=389,a.s=556,a.t=333,a.u=611,a.v=556,a.w=778,a.x=556,a.y=556,a.z=500,a.braceleft=389,a.bar=280,a.braceright=389,a.asciitilde=584,a.exclamdown=333,a.cent=556,a.sterling=556,a.fraction=167,a.yen=556,a.florin=556,a.section=556,a.currency=556,a.quotesingle=238,a.quotedblleft=500,a.guillemotleft=556,a.guilsinglleft=333,a.guilsinglright=333,a.fi=611,a.fl=611,a.endash=556,a.dagger=556,a.daggerdbl=556,a.periodcentered=278,a.paragraph=556,a.bullet=350,a.quotesinglbase=278,a.quotedblbase=500,a.quotedblright=500,a.guillemotright=556,a.ellipsis=1e3,a.perthousand=1e3,a.questiondown=611,a.grave=333,a.acute=333,a.circumflex=333,a.tilde=333,a.macron=333,a.breve=333,a.dotaccent=333,a.dieresis=333,a.ring=333,a.cedilla=333,a.hungarumlaut=333,a.ogonek=333,a.caron=333,a.emdash=1e3,a.AE=1e3,a.ordfeminine=370,a.Lslash=611,a.Oslash=778,a.OE=1e3,a.ordmasculine=365,a.ae=889,a.dotlessi=278,a.lslash=278,a.oslash=611,a.oe=944,a.germandbls=611,a.Idieresis=278,a.eacute=556,a.abreve=556,a.uhungarumlaut=611,a.ecaron=556,a.Ydieresis=667,a.divide=584,a.Yacute=667,a.Acircumflex=722,a.aacute=556,a.Ucircumflex=722,a.yacute=556,a.scommaaccent=556,a.ecircumflex=556,a.Uring=722,a.Udieresis=722,a.aogonek=556,a.Uacute=722,a.uogonek=611,a.Edieresis=667,a.Dcroat=722,a.commaaccent=250,a.copyright=737,a.Emacron=667,a.ccaron=556,a.aring=556,a.Ncommaaccent=722,a.lacute=278,a.agrave=556,a.Tcommaaccent=611,a.Cacute=722,a.atilde=556,a.Edotaccent=667,a.scaron=556,a.scedilla=556,a.iacute=278,a.lozenge=494,a.Rcaron=722,a.Gcommaaccent=778,a.ucircumflex=611,a.acircumflex=556,a.Amacron=722,a.rcaron=389,a.ccedilla=556,a.Zdotaccent=611,a.Thorn=667,a.Omacron=778,a.Racute=722,a.Sacute=667,a.dcaron=743,a.Umacron=722,a.uring=611,a.threesuperior=333,a.Ograve=778,a.Agrave=722,a.Abreve=722,a.multiply=584,a.uacute=611,a.Tcaron=611,a.partialdiff=494,a.ydieresis=556,a.Nacute=722,a.icircumflex=278,a.Ecircumflex=667,a.adieresis=556,a.edieresis=556,a.cacute=556,a.nacute=611,a.umacron=611,a.Ncaron=722,a.Iacute=278,a.plusminus=584,a.brokenbar=280,a.registered=737,a.Gbreve=778,a.Idotaccent=278,a.summation=600,a.Egrave=667,a.racute=389,a.omacron=611,a.Zacute=611,a.Zcaron=611,a.greaterequal=549,a.Eth=722,a.Ccedilla=722,a.lcommaaccent=278,a.tcaron=389,a.eogonek=556,a.Uogonek=722,a.Aacute=722,a.Adieresis=722,a.egrave=556,a.zacute=500,a.iogonek=278,a.Oacute=778,a.oacute=611,a.amacron=556,a.sacute=556,a.idieresis=278,a.Ocircumflex=778,a.Ugrave=722,a.Delta=612,a.thorn=611,a.twosuperior=333,a.Odieresis=778,a.mu=611,a.igrave=278,a.ohungarumlaut=611,a.Eogonek=667,a.dcroat=611,a.threequarters=834,a.Scedilla=667,a.lcaron=400,a.Kcommaaccent=722,a.Lacute=611,a.trademark=1e3,a.edotaccent=556,a.Igrave=278,a.Imacron=278,a.Lcaron=611,a.onehalf=834,a.lessequal=549,a.ocircumflex=611,a.ntilde=611,a.Uhungarumlaut=722,a.Eacute=667,a.emacron=556,a.gbreve=611,a.onequarter=834,a.Scaron=667,a.Scommaaccent=667,a.Ohungarumlaut=778,a.degree=400,a.ograve=611,a.Ccaron=722,a.ugrave=611,a.radical=549,a.Dcaron=722,a.rcommaaccent=389,a.Ntilde=722,a.otilde=611,a.Rcommaaccent=722,a.Lcommaaccent=611,a.Atilde=722,a.Aogonek=722,a.Aring=722,a.Otilde=778,a.zdotaccent=500,a.Ecaron=667,a.Iogonek=278,a.kcommaaccent=556,a.minus=584,a.Icircumflex=278,a.ncaron=611,a.tcommaaccent=333,a.logicalnot=584,a.odieresis=611,a.udieresis=611,a.notequal=549,a.gcommaaccent=611,a.eth=611,a.zcaron=500,a.ncommaaccent=611,a.onesuperior=333,a.imacron=278,a.Euro=556}),J["Helvetica-Oblique"]=(0,g.getLookupTableFactory)(function(a){a.space=278,a.exclam=278,a.quotedbl=355,a.numbersign=556,a.dollar=556,a.percent=889,a.ampersand=667,a.quoteright=222,a.parenleft=333,a.parenright=333,a.asterisk=389,a.plus=584,a.comma=278,a.hyphen=333,a.period=278,a.slash=278,a.zero=556,a.one=556,a.two=556,a.three=556,a.four=556,a.five=556,a.six=556,a.seven=556,a.eight=556,a.nine=556,a.colon=278,a.semicolon=278,a.less=584,a.equal=584,a.greater=584,a.question=556,a.at=1015,a.A=667,a.B=667,a.C=722,a.D=722,a.E=667,a.F=611,a.G=778,a.H=722,a.I=278,a.J=500,a.K=667,a.L=556,a.M=833,a.N=722,a.O=778,a.P=667,a.Q=778,a.R=722,a.S=667,a.T=611,a.U=722,a.V=667,a.W=944,a.X=667,a.Y=667,a.Z=611,a.bracketleft=278,a.backslash=278,a.bracketright=278,a.asciicircum=469,a.underscore=556,a.quoteleft=222,a.a=556,a.b=556,a.c=500,a.d=556,a.e=556,a.f=278,a.g=556,a.h=556,a.i=222,a.j=222,a.k=500,a.l=222,a.m=833,a.n=556,a.o=556,a.p=556,a.q=556,a.r=333,a.s=500,a.t=278,a.u=556,a.v=500,a.w=722,a.x=500,a.y=500,a.z=500,a.braceleft=334,a.bar=260,a.braceright=334,a.asciitilde=584,a.exclamdown=333,a.cent=556,a.sterling=556,a.fraction=167,a.yen=556,a.florin=556,a.section=556,a.currency=556,a.quotesingle=191,a.quotedblleft=333,a.guillemotleft=556,a.guilsinglleft=333,a.guilsinglright=333,a.fi=500,a.fl=500,a.endash=556,a.dagger=556,a.daggerdbl=556,a.periodcentered=278,a.paragraph=537,a.bullet=350,a.quotesinglbase=222,a.quotedblbase=333,a.quotedblright=333,a.guillemotright=556,a.ellipsis=1e3,a.perthousand=1e3,a.questiondown=611,a.grave=333,a.acute=333,a.circumflex=333,a.tilde=333,a.macron=333,a.breve=333,a.dotaccent=333,a.dieresis=333,a.ring=333,a.cedilla=333,a.hungarumlaut=333,a.ogonek=333,a.caron=333,a.emdash=1e3,a.AE=1e3,a.ordfeminine=370,a.Lslash=556,a.Oslash=778,a.OE=1e3,a.ordmasculine=365,a.ae=889,a.dotlessi=278,a.lslash=222,a.oslash=611,a.oe=944,a.germandbls=611,a.Idieresis=278,a.eacute=556,a.abreve=556,a.uhungarumlaut=556,a.ecaron=556,a.Ydieresis=667,a.divide=584,a.Yacute=667,a.Acircumflex=667,a.aacute=556,a.Ucircumflex=722,a.yacute=500,a.scommaaccent=500,a.ecircumflex=556,a.Uring=722,a.Udieresis=722,a.aogonek=556,a.Uacute=722,a.uogonek=556,a.Edieresis=667,a.Dcroat=722,a.commaaccent=250,a.copyright=737,a.Emacron=667,a.ccaron=500,a.aring=556,a.Ncommaaccent=722,a.lacute=222,a.agrave=556,a.Tcommaaccent=611,a.Cacute=722,a.atilde=556,a.Edotaccent=667,a.scaron=500,a.scedilla=500,a.iacute=278,a.lozenge=471,a.Rcaron=722,a.Gcommaaccent=778,a.ucircumflex=556,a.acircumflex=556,a.Amacron=667,a.rcaron=333,a.ccedilla=500,a.Zdotaccent=611,a.Thorn=667,a.Omacron=778,a.Racute=722,a.Sacute=667,a.dcaron=643,a.Umacron=722,a.uring=556,a.threesuperior=333,a.Ograve=778,a.Agrave=667,a.Abreve=667,a.multiply=584,a.uacute=556,a.Tcaron=611,a.partialdiff=476,a.ydieresis=500,a.Nacute=722,a.icircumflex=278,a.Ecircumflex=667,a.adieresis=556,a.edieresis=556,a.cacute=500,a.nacute=556,a.umacron=556,a.Ncaron=722,a.Iacute=278,a.plusminus=584,a.brokenbar=260,a.registered=737,a.Gbreve=778,a.Idotaccent=278,a.summation=600,a.Egrave=667,a.racute=333,a.omacron=556,a.Zacute=611,a.Zcaron=611,a.greaterequal=549,a.Eth=722,a.Ccedilla=722,a.lcommaaccent=222,a.tcaron=317,a.eogonek=556,a.Uogonek=722,a.Aacute=667,a.Adieresis=667,a.egrave=556,a.zacute=500,a.iogonek=222,a.Oacute=778,a.oacute=556,a.amacron=556,a.sacute=500,a.idieresis=278,a.Ocircumflex=778,a.Ugrave=722,a.Delta=612,a.thorn=556,a.twosuperior=333,a.Odieresis=778,a.mu=556,a.igrave=278,a.ohungarumlaut=556,a.Eogonek=667,a.dcroat=556,a.threequarters=834,a.Scedilla=667,a.lcaron=299,a.Kcommaaccent=667,a.Lacute=556,a.trademark=1e3,a.edotaccent=556,a.Igrave=278,a.Imacron=278,a.Lcaron=556,a.onehalf=834,a.lessequal=549,a.ocircumflex=556,a.ntilde=556,a.Uhungarumlaut=722,a.Eacute=667,a.emacron=556,a.gbreve=556,a.onequarter=834,a.Scaron=667,a.Scommaaccent=667,a.Ohungarumlaut=778,a.degree=400,a.ograve=556,a.Ccaron=722,a.ugrave=556,a.radical=453,a.Dcaron=722,a.rcommaaccent=333,a.Ntilde=722,a.otilde=556,a.Rcommaaccent=722,a.Lcommaaccent=556,a.Atilde=667,a.Aogonek=667,a.Aring=667,a.Otilde=778,a.zdotaccent=500,a.Ecaron=667,a.Iogonek=278,a.kcommaaccent=500,a.minus=584,a.Icircumflex=278,a.ncaron=556,a.tcommaaccent=278,a.logicalnot=584,a.odieresis=556,a.udieresis=556,a.notequal=549,a.gcommaaccent=556,a.eth=556,a.zcaron=500,a.ncommaaccent=556,a.onesuperior=333,a.imacron=278,a.Euro=556}),J.Symbol=(0,g.getLookupTableFactory)(function(a){a.space=250,a.exclam=333,a.universal=713,a.numbersign=500,a.existential=549,a.percent=833,a.ampersand=778,a.suchthat=439,a.parenleft=333,a.parenright=333,a.asteriskmath=500,a.plus=549,a.comma=250,a.minus=549,a.period=250,a.slash=278,a.zero=500,a.one=500,a.two=500,a.three=500,a.four=500,a.five=500,a.six=500,a.seven=500,a.eight=500,a.nine=500,a.colon=278,a.semicolon=278,a.less=549,a.equal=549,a.greater=549,a.question=444,a.congruent=549,a.Alpha=722,a.Beta=667,a.Chi=722,a.Delta=612,a.Epsilon=611,a.Phi=763,a.Gamma=603,a.Eta=722,a.Iota=333,a.theta1=631,a.Kappa=722,a.Lambda=686,a.Mu=889,a.Nu=722,a.Omicron=722,a.Pi=768,a.Theta=741,a.Rho=556,a.Sigma=592,a.Tau=611,a.Upsilon=690,a.sigma1=439,a.Omega=768,a.Xi=645,a.Psi=795,a.Zeta=611,a.bracketleft=333,a.therefore=863,a.bracketright=333,a.perpendicular=658,a.underscore=500,a.radicalex=500,a.alpha=631,a.beta=549,a.chi=549,a.delta=494,a.epsilon=439,a.phi=521,a.gamma=411,a.eta=603,a.iota=329,a.phi1=603,a.kappa=549,a.lambda=549,a.mu=576,a.nu=521,a.omicron=549,a.pi=549,a.theta=521,a.rho=549,a.sigma=603,a.tau=439,a.upsilon=576,a.omega1=713,a.omega=686,a.xi=493,a.psi=686,a.zeta=494,a.braceleft=480,a.bar=200,a.braceright=480,a.similar=549,a.Euro=750,a.Upsilon1=620,a.minute=247,a.lessequal=549,a.fraction=167,a.infinity=713,a.florin=500,a.club=753,a.diamond=753,a.heart=753,a.spade=753,a.arrowboth=1042,a.arrowleft=987,a.arrowup=603,a.arrowright=987,a.arrowdown=603,a.degree=400,a.plusminus=549,a.second=411,a.greaterequal=549,a.multiply=549,a.proportional=713,a.partialdiff=494,a.bullet=460,a.divide=549,a.notequal=549,a.equivalence=549,a.approxequal=549,a.ellipsis=1e3,a.arrowvertex=603,a.arrowhorizex=1e3,a.carriagereturn=658,a.aleph=823,a.Ifraktur=686,a.Rfraktur=795,a.weierstrass=987,a.circlemultiply=768,a.circleplus=768,a.emptyset=823,a.intersection=768,a.union=768,a.propersuperset=713,a.reflexsuperset=713,a.notsubset=713,a.propersubset=713,a.reflexsubset=713,a.element=713,a.notelement=713,a.angle=768,a.gradient=713,a.registerserif=790,a.copyrightserif=790,a.trademarkserif=890,a.product=823,a.radical=549,a.dotmath=250,a.logicalnot=713,a.logicaland=603,a.logicalor=603,a.arrowdblboth=1042,a.arrowdblleft=987,a.arrowdblup=603,a.arrowdblright=987,a.arrowdbldown=603,a.lozenge=494,a.angleleft=329,a.registersans=790,a.copyrightsans=790,a.trademarksans=786,a.summation=713,a.parenlefttp=384,a.parenleftex=384,a.parenleftbt=384,a.bracketlefttp=384,a.bracketleftex=384,a.bracketleftbt=384,a.bracelefttp=494,a.braceleftmid=494,a.braceleftbt=494,a.braceex=494,a.angleright=329,a.integral=274,a.integraltp=686,a.integralex=686,a.integralbt=686,a.parenrighttp=384,a.parenrightex=384,a.parenrightbt=384,a.bracketrighttp=384,a.bracketrightex=384,a.bracketrightbt=384,a.bracerighttp=494,a.bracerightmid=494,a.bracerightbt=494,a.apple=790}),J["Times-Roman"]=(0,g.getLookupTableFactory)(function(a){a.space=250,a.exclam=333,a.quotedbl=408,a.numbersign=500,a.dollar=500,a.percent=833,a.ampersand=778,a.quoteright=333,a.parenleft=333,a.parenright=333,a.asterisk=500,a.plus=564,a.comma=250,a.hyphen=333,a.period=250,a.slash=278,a.zero=500,a.one=500,a.two=500,a.three=500,a.four=500,a.five=500,a.six=500,a.seven=500,a.eight=500,a.nine=500,a.colon=278,a.semicolon=278,a.less=564,a.equal=564,a.greater=564,a.question=444,a.at=921,a.A=722,a.B=667,a.C=667,a.D=722,a.E=611,a.F=556,a.G=722,a.H=722,a.I=333,a.J=389,a.K=722,a.L=611,a.M=889,a.N=722,a.O=722,a.P=556,a.Q=722,a.R=667,a.S=556,a.T=611,a.U=722,a.V=722,a.W=944,a.X=722,a.Y=722,a.Z=611,a.bracketleft=333,a.backslash=278,a.bracketright=333,a.asciicircum=469,a.underscore=500,a.quoteleft=333,a.a=444,a.b=500,a.c=444,a.d=500,a.e=444,a.f=333,a.g=500,a.h=500,a.i=278,a.j=278,a.k=500,a.l=278,a.m=778,a.n=500,a.o=500,a.p=500,a.q=500,a.r=333,a.s=389,a.t=278,a.u=500,a.v=500,a.w=722,a.x=500,a.y=500,a.z=444,a.braceleft=480,a.bar=200,a.braceright=480,a.asciitilde=541,a.exclamdown=333,a.cent=500,a.sterling=500,a.fraction=167,a.yen=500,a.florin=500,a.section=500,a.currency=500,a.quotesingle=180,a.quotedblleft=444,a.guillemotleft=500,a.guilsinglleft=333,a.guilsinglright=333,a.fi=556,a.fl=556,a.endash=500,a.dagger=500,a.daggerdbl=500,a.periodcentered=250,a.paragraph=453,a.bullet=350,a.quotesinglbase=333,a.quotedblbase=444,a.quotedblright=444,a.guillemotright=500,a.ellipsis=1e3,a.perthousand=1e3,a.questiondown=444,a.grave=333,a.acute=333,a.circumflex=333,a.tilde=333,a.macron=333,a.breve=333,a.dotaccent=333,a.dieresis=333,a.ring=333,a.cedilla=333,a.hungarumlaut=333,a.ogonek=333,a.caron=333,a.emdash=1e3,a.AE=889,a.ordfeminine=276,a.Lslash=611,a.Oslash=722,a.OE=889,a.ordmasculine=310,a.ae=667,a.dotlessi=278,a.lslash=278,a.oslash=500,a.oe=722,a.germandbls=500,a.Idieresis=333,a.eacute=444,a.abreve=444,a.uhungarumlaut=500,a.ecaron=444,a.Ydieresis=722,a.divide=564,a.Yacute=722,a.Acircumflex=722,a.aacute=444,a.Ucircumflex=722,a.yacute=500,a.scommaaccent=389,a.ecircumflex=444,a.Uring=722,a.Udieresis=722,a.aogonek=444,a.Uacute=722,a.uogonek=500,a.Edieresis=611,a.Dcroat=722,a.commaaccent=250,a.copyright=760,a.Emacron=611,a.ccaron=444,a.aring=444,a.Ncommaaccent=722,a.lacute=278,a.agrave=444,a.Tcommaaccent=611,a.Cacute=667,a.atilde=444,a.Edotaccent=611,a.scaron=389,a.scedilla=389,a.iacute=278,a.lozenge=471,a.Rcaron=667,a.Gcommaaccent=722,a.ucircumflex=500,a.acircumflex=444,a.Amacron=722,a.rcaron=333,a.ccedilla=444,a.Zdotaccent=611,a.Thorn=556,a.Omacron=722,a.Racute=667,a.Sacute=556,a.dcaron=588,a.Umacron=722,a.uring=500,a.threesuperior=300,a.Ograve=722,a.Agrave=722,a.Abreve=722,a.multiply=564,a.uacute=500,a.Tcaron=611,a.partialdiff=476,a.ydieresis=500,a.Nacute=722,a.icircumflex=278,a.Ecircumflex=611,a.adieresis=444,a.edieresis=444,a.cacute=444,a.nacute=500,a.umacron=500,a.Ncaron=722,a.Iacute=333,a.plusminus=564,a.brokenbar=200,a.registered=760,a.Gbreve=722,a.Idotaccent=333,a.summation=600,a.Egrave=611,a.racute=333,a.omacron=500,a.Zacute=611,a.Zcaron=611,a.greaterequal=549,a.Eth=722,a.Ccedilla=667,a.lcommaaccent=278,a.tcaron=326,a.eogonek=444,a.Uogonek=722,a.Aacute=722,a.Adieresis=722,a.egrave=444,a.zacute=444,a.iogonek=278,a.Oacute=722,a.oacute=500,a.amacron=444,a.sacute=389,a.idieresis=278,a.Ocircumflex=722,a.Ugrave=722,a.Delta=612,a.thorn=500,a.twosuperior=300,a.Odieresis=722,a.mu=500,a.igrave=278,a.ohungarumlaut=500,a.Eogonek=611,a.dcroat=500,a.threequarters=750,a.Scedilla=556,a.lcaron=344,a.Kcommaaccent=722,a.Lacute=611,a.trademark=980,a.edotaccent=444,a.Igrave=333,a.Imacron=333,a.Lcaron=611,a.onehalf=750,a.lessequal=549,a.ocircumflex=500,a.ntilde=500,a.Uhungarumlaut=722,a.Eacute=611,a.emacron=444,a.gbreve=500,a.onequarter=750,a.Scaron=556,a.Scommaaccent=556,a.Ohungarumlaut=722,a.degree=400,a.ograve=500,a.Ccaron=667,a.ugrave=500,a.radical=453,a.Dcaron=722,a.rcommaaccent=333,a.Ntilde=722,a.otilde=500,a.Rcommaaccent=667,a.Lcommaaccent=611,a.Atilde=722,a.Aogonek=722,a.Aring=722,a.Otilde=722,a.zdotaccent=444,a.Ecaron=611,a.Iogonek=333,a.kcommaaccent=500,a.minus=564,a.Icircumflex=333,a.ncaron=500,a.tcommaaccent=278,a.logicalnot=564,a.odieresis=500,a.udieresis=500,a.notequal=549,a.gcommaaccent=500,a.eth=500,a.zcaron=444,a.ncommaaccent=500,a.onesuperior=300,a.imacron=278,a.Euro=500}),J["Times-Bold"]=(0,g.getLookupTableFactory)(function(a){a.space=250,a.exclam=333,a.quotedbl=555,a.numbersign=500,a.dollar=500,a.percent=1e3,a.ampersand=833,a.quoteright=333,a.parenleft=333,a.parenright=333,a.asterisk=500,a.plus=570,a.comma=250,a.hyphen=333,a.period=250,a.slash=278,a.zero=500,a.one=500,a.two=500,a.three=500,a.four=500,a.five=500,a.six=500,a.seven=500,a.eight=500,a.nine=500,a.colon=333,a.semicolon=333,a.less=570,a.equal=570,a.greater=570,a.question=500,a.at=930,a.A=722,a.B=667,a.C=722,a.D=722,a.E=667,a.F=611,a.G=778,a.H=778,a.I=389,a.J=500,a.K=778,a.L=667,a.M=944,a.N=722,a.O=778,a.P=611,a.Q=778,a.R=722,a.S=556,a.T=667,a.U=722,a.V=722,a.W=1e3,a.X=722,a.Y=722,a.Z=667,a.bracketleft=333,a.backslash=278,a.bracketright=333,a.asciicircum=581,a.underscore=500,a.quoteleft=333,a.a=500,a.b=556,a.c=444,a.d=556,a.e=444,a.f=333,a.g=500,a.h=556,a.i=278,a.j=333,a.k=556,a.l=278,a.m=833,a.n=556,a.o=500,a.p=556,a.q=556,a.r=444,a.s=389,a.t=333,a.u=556,a.v=500,a.w=722,a.x=500,a.y=500,a.z=444,a.braceleft=394,a.bar=220,a.braceright=394,a.asciitilde=520,a.exclamdown=333,a.cent=500,a.sterling=500,a.fraction=167,a.yen=500,a.florin=500,a.section=500,a.currency=500,a.quotesingle=278,a.quotedblleft=500,a.guillemotleft=500,a.guilsinglleft=333,a.guilsinglright=333,a.fi=556,a.fl=556,a.endash=500,a.dagger=500,a.daggerdbl=500,a.periodcentered=250,a.paragraph=540,a.bullet=350,a.quotesinglbase=333,a.quotedblbase=500,a.quotedblright=500,a.guillemotright=500,a.ellipsis=1e3,a.perthousand=1e3,a.questiondown=500,a.grave=333,a.acute=333,a.circumflex=333,a.tilde=333,a.macron=333,a.breve=333,a.dotaccent=333,a.dieresis=333,a.ring=333,a.cedilla=333,a.hungarumlaut=333,a.ogonek=333,a.caron=333,a.emdash=1e3,a.AE=1e3,a.ordfeminine=300,a.Lslash=667,a.Oslash=778,a.OE=1e3,a.ordmasculine=330,a.ae=722,a.dotlessi=278,a.lslash=278,a.oslash=500,a.oe=722,a.germandbls=556,a.Idieresis=389,a.eacute=444,a.abreve=500,a.uhungarumlaut=556,a.ecaron=444,a.Ydieresis=722,a.divide=570,a.Yacute=722,a.Acircumflex=722,a.aacute=500,a.Ucircumflex=722,a.yacute=500,a.scommaaccent=389,a.ecircumflex=444,a.Uring=722,a.Udieresis=722,a.aogonek=500,a.Uacute=722,a.uogonek=556,a.Edieresis=667,a.Dcroat=722,a.commaaccent=250,a.copyright=747,a.Emacron=667,a.ccaron=444,a.aring=500,a.Ncommaaccent=722,a.lacute=278,a.agrave=500,a.Tcommaaccent=667,a.Cacute=722,a.atilde=500,a.Edotaccent=667,a.scaron=389,a.scedilla=389,a.iacute=278,a.lozenge=494,a.Rcaron=722,a.Gcommaaccent=778,a.ucircumflex=556,a.acircumflex=500,a.Amacron=722,a.rcaron=444,a.ccedilla=444,a.Zdotaccent=667,a.Thorn=611,a.Omacron=778,a.Racute=722,a.Sacute=556,a.dcaron=672,a.Umacron=722,a.uring=556,a.threesuperior=300,a.Ograve=778,a.Agrave=722,a.Abreve=722,a.multiply=570,a.uacute=556,a.Tcaron=667,a.partialdiff=494,a.ydieresis=500,a.Nacute=722,a.icircumflex=278,a.Ecircumflex=667,a.adieresis=500,a.edieresis=444,a.cacute=444,a.nacute=556,a.umacron=556,a.Ncaron=722,a.Iacute=389,a.plusminus=570,a.brokenbar=220,a.registered=747,a.Gbreve=778,a.Idotaccent=389,a.summation=600,a.Egrave=667,a.racute=444,a.omacron=500,a.Zacute=667,a.Zcaron=667,a.greaterequal=549,a.Eth=722,a.Ccedilla=722,a.lcommaaccent=278,a.tcaron=416,a.eogonek=444,a.Uogonek=722,a.Aacute=722,a.Adieresis=722,a.egrave=444,a.zacute=444,a.iogonek=278,a.Oacute=778,a.oacute=500,a.amacron=500,a.sacute=389,a.idieresis=278,a.Ocircumflex=778,a.Ugrave=722,a.Delta=612,a.thorn=556,a.twosuperior=300,a.Odieresis=778,a.mu=556,a.igrave=278,a.ohungarumlaut=500,a.Eogonek=667,a.dcroat=556,a.threequarters=750,a.Scedilla=556,a.lcaron=394,a.Kcommaaccent=778,a.Lacute=667,a.trademark=1e3,a.edotaccent=444,a.Igrave=389,a.Imacron=389,a.Lcaron=667,a.onehalf=750,a.lessequal=549,a.ocircumflex=500,a.ntilde=556,a.Uhungarumlaut=722,a.Eacute=667,a.emacron=444,a.gbreve=500,a.onequarter=750,a.Scaron=556,a.Scommaaccent=556,a.Ohungarumlaut=778,a.degree=400,a.ograve=500,a.Ccaron=722,a.ugrave=556,a.radical=549,a.Dcaron=722,a.rcommaaccent=444,a.Ntilde=722,a.otilde=500,a.Rcommaaccent=722,a.Lcommaaccent=667,a.Atilde=722,a.Aogonek=722,a.Aring=722,a.Otilde=778,a.zdotaccent=444,a.Ecaron=667,a.Iogonek=389,a.kcommaaccent=556,a.minus=570,a.Icircumflex=389,a.ncaron=556,a.tcommaaccent=333,a.logicalnot=570,a.odieresis=500,a.udieresis=556,a.notequal=549,a.gcommaaccent=500,a.eth=500,a.zcaron=444,a.ncommaaccent=556,a.onesuperior=300,a.imacron=278,a.Euro=500}),J["Times-BoldItalic"]=(0,g.getLookupTableFactory)(function(a){a.space=250,a.exclam=389,a.quotedbl=555,a.numbersign=500,a.dollar=500,a.percent=833,a.ampersand=778,a.quoteright=333,a.parenleft=333,a.parenright=333,a.asterisk=500,a.plus=570,a.comma=250,a.hyphen=333,a.period=250,a.slash=278,a.zero=500,a.one=500,a.two=500,a.three=500,a.four=500,a.five=500,a.six=500,a.seven=500,a.eight=500,a.nine=500,a.colon=333,a.semicolon=333,a.less=570,a.equal=570,a.greater=570,a.question=500,a.at=832,a.A=667,a.B=667,a.C=667,a.D=722,a.E=667,a.F=667,a.G=722,a.H=778,a.I=389,a.J=500,a.K=667,a.L=611,a.M=889,a.N=722,a.O=722,a.P=611,a.Q=722,a.R=667,a.S=556,a.T=611,a.U=722,a.V=667,a.W=889,a.X=667,a.Y=611,a.Z=611,a.bracketleft=333,a.backslash=278,a.bracketright=333,a.asciicircum=570,a.underscore=500,a.quoteleft=333,a.a=500,a.b=500,a.c=444,a.d=500,a.e=444,a.f=333,a.g=500,a.h=556,a.i=278,a.j=278,a.k=500,a.l=278,a.m=778,a.n=556,a.o=500,a.p=500,a.q=500,a.r=389,a.s=389,a.t=278,a.u=556,a.v=444,a.w=667,a.x=500,a.y=444,a.z=389,a.braceleft=348,a.bar=220,a.braceright=348,a.asciitilde=570,a.exclamdown=389,a.cent=500,a.sterling=500,a.fraction=167,a.yen=500,a.florin=500,a.section=500,a.currency=500,a.quotesingle=278,a.quotedblleft=500,a.guillemotleft=500,a.guilsinglleft=333,a.guilsinglright=333,a.fi=556,a.fl=556,a.endash=500,a.dagger=500,a.daggerdbl=500,a.periodcentered=250,a.paragraph=500,a.bullet=350,a.quotesinglbase=333,a.quotedblbase=500,a.quotedblright=500,a.guillemotright=500,a.ellipsis=1e3,a.perthousand=1e3,a.questiondown=500,a.grave=333,a.acute=333,a.circumflex=333,a.tilde=333,a.macron=333,a.breve=333,a.dotaccent=333,a.dieresis=333,a.ring=333,a.cedilla=333,a.hungarumlaut=333,a.ogonek=333,a.caron=333,a.emdash=1e3,a.AE=944,a.ordfeminine=266,a.Lslash=611,a.Oslash=722,a.OE=944,a.ordmasculine=300,a.ae=722,a.dotlessi=278,a.lslash=278,a.oslash=500,a.oe=722,a.germandbls=500,a.Idieresis=389,a.eacute=444,a.abreve=500,a.uhungarumlaut=556,a.ecaron=444,a.Ydieresis=611,a.divide=570,a.Yacute=611,a.Acircumflex=667,a.aacute=500,a.Ucircumflex=722,a.yacute=444,a.scommaaccent=389,a.ecircumflex=444,a.Uring=722,a.Udieresis=722,a.aogonek=500,a.Uacute=722,a.uogonek=556,a.Edieresis=667,a.Dcroat=722,a.commaaccent=250,a.copyright=747,a.Emacron=667,a.ccaron=444,a.aring=500,a.Ncommaaccent=722,a.lacute=278,a.agrave=500,a.Tcommaaccent=611,a.Cacute=667,a.atilde=500,a.Edotaccent=667,a.scaron=389,a.scedilla=389,a.iacute=278,a.lozenge=494,a.Rcaron=667,a.Gcommaaccent=722,a.ucircumflex=556,a.acircumflex=500,a.Amacron=667,a.rcaron=389,a.ccedilla=444,a.Zdotaccent=611,a.Thorn=611,a.Omacron=722,a.Racute=667,a.Sacute=556,a.dcaron=608,a.Umacron=722,a.uring=556,a.threesuperior=300,a.Ograve=722,a.Agrave=667,a.Abreve=667,a.multiply=570,a.uacute=556,a.Tcaron=611,a.partialdiff=494,a.ydieresis=444,a.Nacute=722,a.icircumflex=278,a.Ecircumflex=667,a.adieresis=500,a.edieresis=444,a.cacute=444,a.nacute=556,a.umacron=556,a.Ncaron=722,a.Iacute=389,a.plusminus=570,a.brokenbar=220,a.registered=747,a.Gbreve=722,a.Idotaccent=389,a.summation=600,a.Egrave=667,a.racute=389,a.omacron=500,a.Zacute=611,a.Zcaron=611,a.greaterequal=549,a.Eth=722,a.Ccedilla=667,a.lcommaaccent=278,a.tcaron=366,a.eogonek=444,a.Uogonek=722,a.Aacute=667,a.Adieresis=667,a.egrave=444,a.zacute=389,a.iogonek=278,a.Oacute=722,a.oacute=500,a.amacron=500,a.sacute=389,a.idieresis=278,a.Ocircumflex=722,a.Ugrave=722,a.Delta=612,a.thorn=500,a.twosuperior=300,a.Odieresis=722,a.mu=576,a.igrave=278,a.ohungarumlaut=500,a.Eogonek=667,a.dcroat=500,a.threequarters=750,a.Scedilla=556,a.lcaron=382,a.Kcommaaccent=667,a.Lacute=611,a.trademark=1e3,a.edotaccent=444,a.Igrave=389,a.Imacron=389,a.Lcaron=611,a.onehalf=750,a.lessequal=549,a.ocircumflex=500,a.ntilde=556,a.Uhungarumlaut=722,a.Eacute=667,a.emacron=444,a.gbreve=500,a.onequarter=750,a.Scaron=556,a.Scommaaccent=556,a.Ohungarumlaut=722,a.degree=400,a.ograve=500,a.Ccaron=667,a.ugrave=556,a.radical=549,a.Dcaron=722,a.rcommaaccent=389,a.Ntilde=722,a.otilde=500,a.Rcommaaccent=667,a.Lcommaaccent=611,a.Atilde=667,a.Aogonek=667,a.Aring=667,a.Otilde=722,a.zdotaccent=389,a.Ecaron=667,a.Iogonek=389,a.kcommaaccent=500,a.minus=606,a.Icircumflex=389,a.ncaron=556,a.tcommaaccent=278,a.logicalnot=606,a.odieresis=500,a.udieresis=556,a.notequal=549,a.gcommaaccent=500,a.eth=500,a.zcaron=389,a.ncommaaccent=556,a.onesuperior=300,a.imacron=278,a.Euro=500}),J["Times-Italic"]=(0,g.getLookupTableFactory)(function(a){a.space=250,a.exclam=333,a.quotedbl=420,a.numbersign=500,a.dollar=500,a.percent=833,a.ampersand=778,a.quoteright=333,a.parenleft=333,a.parenright=333,a.asterisk=500,a.plus=675,a.comma=250,a.hyphen=333,a.period=250,a.slash=278,a.zero=500,a.one=500,a.two=500,a.three=500,a.four=500,a.five=500,a.six=500,a.seven=500,a.eight=500,a.nine=500,a.colon=333,a.semicolon=333,a.less=675,a.equal=675,a.greater=675,a.question=500,a.at=920,a.A=611,a.B=611,a.C=667,a.D=722,a.E=611,a.F=611,a.G=722,a.H=722,a.I=333,a.J=444,a.K=667,a.L=556,a.M=833,a.N=667,a.O=722,a.P=611,a.Q=722,a.R=611,a.S=500,a.T=556,a.U=722,a.V=611,a.W=833,a.X=611,a.Y=556,a.Z=556,a.bracketleft=389,a.backslash=278,a.bracketright=389,a.asciicircum=422,a.underscore=500,a.quoteleft=333,a.a=500,a.b=500,a.c=444,a.d=500,a.e=444,a.f=278,a.g=500,a.h=500,a.i=278,a.j=278,a.k=444,a.l=278,a.m=722,a.n=500,a.o=500,a.p=500,a.q=500,a.r=389,a.s=389,a.t=278,a.u=500,a.v=444,a.w=667,a.x=444,a.y=444,a.z=389,a.braceleft=400,a.bar=275,a.braceright=400,a.asciitilde=541,a.exclamdown=389,a.cent=500,a.sterling=500,a.fraction=167,a.yen=500,a.florin=500,a.section=500,a.currency=500,a.quotesingle=214,a.quotedblleft=556,a.guillemotleft=500,a.guilsinglleft=333,a.guilsinglright=333,a.fi=500,a.fl=500,a.endash=500,a.dagger=500,a.daggerdbl=500,a.periodcentered=250,a.paragraph=523,a.bullet=350,a.quotesinglbase=333,a.quotedblbase=556,a.quotedblright=556,a.guillemotright=500,a.ellipsis=889,a.perthousand=1e3,a.questiondown=500,a.grave=333,a.acute=333,a.circumflex=333,a.tilde=333,a.macron=333,a.breve=333,a.dotaccent=333,a.dieresis=333,a.ring=333,a.cedilla=333,a.hungarumlaut=333,a.ogonek=333,a.caron=333,a.emdash=889,a.AE=889,a.ordfeminine=276,a.Lslash=556,a.Oslash=722,a.OE=944,a.ordmasculine=310,a.ae=667,a.dotlessi=278,a.lslash=278,a.oslash=500,a.oe=667,a.germandbls=500,a.Idieresis=333,a.eacute=444,a.abreve=500,a.uhungarumlaut=500,a.ecaron=444,a.Ydieresis=556,a.divide=675,a.Yacute=556,a.Acircumflex=611,a.aacute=500,a.Ucircumflex=722,a.yacute=444,a.scommaaccent=389,a.ecircumflex=444,a.Uring=722,a.Udieresis=722,a.aogonek=500,a.Uacute=722,a.uogonek=500,a.Edieresis=611,a.Dcroat=722,a.commaaccent=250,a.copyright=760,a.Emacron=611,a.ccaron=444,a.aring=500,a.Ncommaaccent=667,a.lacute=278,a.agrave=500,a.Tcommaaccent=556,a.Cacute=667,a.atilde=500,a.Edotaccent=611,a.scaron=389,a.scedilla=389,a.iacute=278,a.lozenge=471,a.Rcaron=611,a.Gcommaaccent=722,a.ucircumflex=500,a.acircumflex=500,a.Amacron=611,a.rcaron=389,a.ccedilla=444,a.Zdotaccent=556,a.Thorn=611,a.Omacron=722,a.Racute=611,a.Sacute=500,a.dcaron=544,a.Umacron=722,a.uring=500,a.threesuperior=300,a.Ograve=722,a.Agrave=611,a.Abreve=611,a.multiply=675,a.uacute=500,a.Tcaron=556,a.partialdiff=476,a.ydieresis=444,a.Nacute=667,a.icircumflex=278,a.Ecircumflex=611,a.adieresis=500,a.edieresis=444,a.cacute=444,a.nacute=500,a.umacron=500,a.Ncaron=667,a.Iacute=333,a.plusminus=675,a.brokenbar=275,a.registered=760,a.Gbreve=722,a.Idotaccent=333,a.summation=600,a.Egrave=611,a.racute=389,a.omacron=500,a.Zacute=556,a.Zcaron=556,a.greaterequal=549,a.Eth=722,a.Ccedilla=667,a.lcommaaccent=278,a.tcaron=300,a.eogonek=444,a.Uogonek=722,a.Aacute=611,a.Adieresis=611,a.egrave=444,a.zacute=389,a.iogonek=278,a.Oacute=722,a.oacute=500,a.amacron=500,a.sacute=389,a.idieresis=278,a.Ocircumflex=722,a.Ugrave=722,a.Delta=612,a.thorn=500,a.twosuperior=300,a.Odieresis=722,a.mu=500,a.igrave=278,a.ohungarumlaut=500,a.Eogonek=611,a.dcroat=500,a.threequarters=750,a.Scedilla=500,a.lcaron=300,a.Kcommaaccent=667,a.Lacute=556,a.trademark=980,a.edotaccent=444,a.Igrave=333,a.Imacron=333,a.Lcaron=611,a.onehalf=750,a.lessequal=549,a.ocircumflex=500,a.ntilde=500,a.Uhungarumlaut=722,a.Eacute=611,a.emacron=444,a.gbreve=500,a.onequarter=750,a.Scaron=500,a.Scommaaccent=500,a.Ohungarumlaut=722,a.degree=400,a.ograve=500,a.Ccaron=667,a.ugrave=500,a.radical=453,a.Dcaron=722,a.rcommaaccent=389,a.Ntilde=667,a.otilde=500,a.Rcommaaccent=611,a.Lcommaaccent=556,a.Atilde=611,a.Aogonek=611,a.Aring=611,a.Otilde=722,a.zdotaccent=389,a.Ecaron=611,a.Iogonek=333,a.kcommaaccent=444,a.minus=675,a.Icircumflex=333,a.ncaron=500,a.tcommaaccent=278,a.logicalnot=675,a.odieresis=500,a.udieresis=500,a.notequal=549,a.gcommaaccent=500,a.eth=500,a.zcaron=389,a.ncommaaccent=500,a.onesuperior=300,a.imacron=278,a.Euro=500}),J.ZapfDingbats=(0,g.getLookupTableFactory)(function(a){a.space=278,a.a1=974,a.a2=961,a.a202=974,a.a3=980,a.a4=719,a.a5=789,a.a119=790,a.a118=791,a.a117=690,a.a11=960,a.a12=939,a.a13=549,a.a14=855,a.a15=911,a.a16=933,a.a105=911,a.a17=945,a.a18=974,a.a19=755,a.a20=846,a.a21=762,a.a22=761,a.a23=571,a.a24=677,a.a25=763,a.a26=760,a.a27=759,a.a28=754,a.a6=494,a.a7=552,a.a8=537,a.a9=577,a.a10=692,a.a29=786,a.a30=788,a.a31=788,a.a32=790,a.a33=793,a.a34=794,a.a35=816,a.a36=823,a.a37=789,a.a38=841,a.a39=823,a.a40=833,a.a41=816,a.a42=831,a.a43=923,a.a44=744,a.a45=723,a.a46=749,a.a47=790,a.a48=792,a.a49=695,a.a50=776,a.a51=768,a.a52=792,a.a53=759,a.a54=707,a.a55=708,a.a56=682,a.a57=701,a.a58=826,a.a59=815,a.a60=789,a.a61=789,a.a62=707,a.a63=687,a.a64=696,a.a65=689,a.a66=786,a.a67=787,a.a68=713,a.a69=791,a.a70=785,a.a71=791,a.a72=873,a.a73=761,a.a74=762,a.a203=762,a.a75=759,a.a204=759,a.a76=892,a.a77=892,a.a78=788,a.a79=784,a.a81=438,a.a82=138,a.a83=277,a.a84=415,a.a97=392,a.a98=392,a.a99=668,a.a100=668,a.a89=390,a.a90=390,a.a93=317,a.a94=317,a.a91=276,a.a92=276,a.a205=509,a.a85=509,a.a206=410,a.a86=410,a.a87=234,a.a88=234,a.a95=334,a.a96=334,a.a101=732,a.a102=544,a.a103=544,a.a104=910,a.a106=667,a.a107=760,a.a108=760,a.a112=776,a.a111=595,a.a110=694,a.a109=626,a.a120=788,a.a121=788,a.a122=788,a.a123=788,a.a124=788,a.a125=788,a.a126=788,a.a127=788,a.a128=788,a.a129=788,a.a130=788,a.a131=788,a.a132=788,a.a133=788,a.a134=788,a.a135=788,a.a136=788,a.a137=788,a.a138=788,a.a139=788,a.a140=788,a.a141=788,a.a142=788,a.a143=788,a.a144=788,a.a145=788,a.a146=788,a.a147=788,a.a148=788,a.a149=788,a.a150=788,a.a151=788,a.a152=788,a.a153=788,a.a154=788,a.a155=788,a.a156=788,a.a157=788,a.a158=788,a.a159=788,a.a160=894,a.a161=838,a.a163=1016,a.a164=458,a.a196=748,a.a165=924,a.a192=748,a.a166=918,a.a167=927,a.a168=928,a.a169=928,a.a170=834,a.a171=873,a.a172=828,a.a173=924,a.a162=924,a.a174=917,a.a175=930,a.a176=931,a.a177=463,a.a178=883,a.a179=836,a.a193=836,a.a180=867,a.a199=867,a.a181=696,a.a200=696,a.a182=874,a.a201=874,a.a183=760,a.a184=946,a.a197=771,a.a185=865,a.a194=771,a.a198=888,a.a186=967,a.a195=888,a.a187=831,a.a188=873,a.a189=927,a.a190=970,a.a191=918})});d.getMetrics=O},function(S,d,R){Object.defineProperty(d,"__esModule",{value:!0}),d.isPDFFunction=ee,d.PostScriptCompiler=d.PostScriptEvaluator=d.PDFFunctionFactory=void 0;var g=R(2),O=R(5),J=R(42);class a{constructor({xref:re,isEvalSupported:U=!0}){this.xref=re,this.isEvalSupported=U!==!1}create(re){return H.parse({xref:this.xref,isEvalSupported:this.isEvalSupported,fn:re})}createFromArray(re){return H.parseArray({xref:this.xref,isEvalSupported:this.isEvalSupported,fnObj:re})}}d.PDFFunctionFactory=a;function se(Y){if(!Array.isArray(Y))return null;const re=Y.length;for(let U=0;U<re;U++)if(typeof Y[U]!="number"){const X=new Array(re);for(let W=0;W<re;W++)X[W]=+Y[W];return X}return Y}var H=function(){return{getSampleArray(G,P,E,A){var _,F,D=1;for(_=0,F=G.length;_<F;_++)D*=G[_];D*=P;var L=new Array(D),k=0,v=0,y=1/(2**E-1),b=A.getBytes((D*E+7)/8),C=0;for(_=0;_<D;_++){for(;k<E;)v<<=8,v|=b[C++],k+=8;k-=E,L[_]=(v>>k)*y,v&=(1<<k)-1}return L},getIR({xref:G,isEvalSupported:P,fn:E}){var A=E.dict;A||(A=E);var _=[this.constructSampled,null,this.constructInterpolated,this.constructStiched,this.constructPostScript],F=A.get("FunctionType"),D=_[F];if(!D)throw new g.FormatError("Unknown type of function");return D.call(this,{xref:G,isEvalSupported:P,fn:E,dict:A})},fromIR({xref:G,isEvalSupported:P,IR:E}){var A=E[0];switch(A){case 0:return this.constructSampledFromIR({xref:G,isEvalSupported:P,IR:E});case 2:return this.constructInterpolatedFromIR({xref:G,isEvalSupported:P,IR:E});case 3:return this.constructStichedFromIR({xref:G,isEvalSupported:P,IR:E});default:return this.constructPostScriptFromIR({xref:G,isEvalSupported:P,IR:E})}},parse({xref:G,isEvalSupported:P,fn:E}){const A=this.getIR({xref:G,isEvalSupported:P,fn:E});return this.fromIR({xref:G,isEvalSupported:P,IR:A})},parseArray({xref:G,isEvalSupported:P,fnObj:E}){if(!Array.isArray(E))return this.parse({xref:G,isEvalSupported:P,fn:E});for(var A=[],_=0,F=E.length;_<F;_++)A.push(this.parse({xref:G,isEvalSupported:P,fn:G.fetchIfRef(E[_])}));return function(D,L,k,v){for(var y=0,b=A.length;y<b;y++)A[y](D,L,k,v+y)}},constructSampled({xref:G,isEvalSupported:P,fn:E,dict:A}){function _(N){for(var Q=N.length,z=[],j=0,$=0;$<Q;$+=2)z[j]=[N[$],N[$+1]],++j;return z}var F=se(A.getArray("Domain")),D=se(A.getArray("Range"));if(!F||!D)throw new g.FormatError("No domain or range");var L=F.length/2,k=D.length/2;F=_(F),D=_(D);var v=se(A.getArray("Size")),y=A.get("BitsPerSample"),b=A.get("Order")||1;b!==1&&(0,g.info)("No support for cubic spline interpolation: "+b);var C=se(A.getArray("Encode"));if(C)C=_(C);else{C=[];for(var w=0;w<L;++w)C.push([0,v[w]-1])}var T=se(A.getArray("Decode"));T?T=_(T):T=D;var B=this.getSampleArray(v,k,y,E);return[0,L,F,C,T,B,v,k,2**y-1,D]},constructSampledFromIR({xref:G,isEvalSupported:P,IR:E}){function A(_,F,D,L,k){return L+(_-F)*((k-L)/(D-F))}return function(F,D,L,k){var v=E[1],y=E[2],b=E[3],C=E[4],w=E[5],T=E[6],B=E[7],N=E[9],Q=1<<v,z=new Float64Array(Q),j=new Uint32Array(Q),$,M;for(M=0;M<Q;M++)z[M]=1;var q=B,K=1;for($=0;$<v;++$){var Z=y[$][0],te=y[$][1],oe=Math.min(Math.max(F[D+$],Z),te),ae=A(oe,Z,te,b[$][0],b[$][1]),ce=T[$];ae=Math.min(Math.max(ae,0),ce-1);var fe=ae<ce-1?Math.floor(ae):ae-1,ne=fe+1-ae,le=ae-fe,ue=fe*q,he=ue+q;for(M=0;M<Q;M++)M&K?(z[M]*=le,j[M]+=he):(z[M]*=ne,j[M]+=ue);q*=ce,K<<=1}for(M=0;M<B;++M){var de=0;for($=0;$<Q;$++)de+=w[j[$]+M]*z[$];de=A(de,0,1,C[M][0],C[M][1]),L[k+M]=Math.min(Math.max(de,N[M][0]),N[M][1])}}},constructInterpolated({xref:G,isEvalSupported:P,fn:E,dict:A}){for(var _=se(A.getArray("C0"))||[0],F=se(A.getArray("C1"))||[1],D=A.get("N"),L=_.length,k=[],v=0;v<L;++v)k.push(F[v]-_[v]);return[2,_,k,D]},constructInterpolatedFromIR({xref:G,isEvalSupported:P,IR:E}){var A=E[1],_=E[2],F=E[3],D=_.length;return function(k,v,y,b){for(var C=F===1?k[v]:k[v]**F,w=0;w<D;++w)y[b+w]=A[w]+C*_[w]}},constructStiched({xref:G,isEvalSupported:P,fn:E,dict:A}){var _=se(A.getArray("Domain"));if(!_)throw new g.FormatError("No domain");var F=_.length/2;if(F!==1)throw new g.FormatError("Bad domain for stiched function");for(var D=A.get("Functions"),L=[],k=0,v=D.length;k<v;++k)L.push(this.parse({xref:G,isEvalSupported:P,fn:G.fetchIfRef(D[k])}));var y=se(A.getArray("Bounds")),b=se(A.getArray("Encode"));return[3,_,y,b,L]},constructStichedFromIR({xref:G,isEvalSupported:P,IR:E}){var A=E[1],_=E[2],F=E[3],D=E[4],L=new Float32Array(1);return function(v,y,b,C){for(var w=function(q,K,Z){return q>Z?q=Z:q<K&&(q=K),q},T=w(v[y],A[0],A[1]),B=0,N=_.length;B<N&&!(T<_[B]);++B);var Q=A[0];B>0&&(Q=_[B-1]);var z=A[1];B<_.length&&(z=_[B]);var j=F[2*B],$=F[2*B+1];L[0]=Q===z?j:j+(T-Q)*($-j)/(z-Q),D[B](L,0,b,C)}},constructPostScript({xref:G,isEvalSupported:P,fn:E,dict:A}){var _=se(A.getArray("Domain")),F=se(A.getArray("Range"));if(!_)throw new g.FormatError("No domain.");if(!F)throw new g.FormatError("No range.");var D=new J.PostScriptLexer(E),L=new J.PostScriptParser(D),k=L.parse();return[4,_,F,k]},constructPostScriptFromIR({xref:G,isEvalSupported:P,IR:E}){var A=E[1],_=E[2],F=E[3];if(P&&g.IsEvalSupportedCached.value){const w=new u().compile(F,A,_);if(w)return new Function("src","srcOffset","dest","destOffset",w)}(0,g.info)("Unable to compile PS function");var D=_.length>>1,L=A.length>>1,k=new m(F),v=Object.create(null),y=2048*4,b=y,C=new Float32Array(L);return function(T,B,N,Q){var z,j,$="",M=C;for(z=0;z<L;z++)j=T[B+z],M[z]=j,$+=j+"_";var q=v[$];if(q!==void 0){N.set(q,Q);return}var K=new Float32Array(D),Z=k.execute(M),te=Z.length-D;for(z=0;z<D;z++){j=Z[te+z];var oe=_[z*2];j<oe?j=oe:(oe=_[z*2+1],j>oe&&(j=oe)),K[z]=j}b>0&&(b--,v[$]=K),N.set(K,Q)}}}}();function ee(Y){var re;if(typeof Y!="object")return!1;if((0,O.isDict)(Y))re=Y;else if((0,O.isStream)(Y))re=Y.dict;else return!1;return re.has("FunctionType")}var ie=function(){var re=100;function U(X){this.stack=X?Array.prototype.slice.call(X,0):[]}return U.prototype={push:function(W){if(this.stack.length>=re)throw new Error("PostScript function stack overflow.");this.stack.push(W)},pop:function(){if(this.stack.length<=0)throw new Error("PostScript function stack underflow.");return this.stack.pop()},copy:function(W){if(this.stack.length+W>=re)throw new Error("PostScript function stack overflow.");for(var G=this.stack,P=G.length-W,E=W-1;E>=0;E--,P++)G.push(G[P])},index:function(W){this.push(this.stack[this.stack.length-W-1])},roll:function(W,G){var P=this.stack,E=P.length-W,A=P.length-1,_=E+(G-Math.floor(G/W)*W),F,D,L;for(F=E,D=A;F<D;F++,D--)L=P[F],P[F]=P[D],P[D]=L;for(F=E,D=_-1;F<D;F++,D--)L=P[F],P[F]=P[D],P[D]=L;for(F=_,D=A;F<D;F++,D--)L=P[F],P[F]=P[D],P[D]=L}},U}(),m=function(){function re(U){this.operators=U}return re.prototype={execute:function(X){for(var W=new ie(X),G=0,P=this.operators,E=P.length,A,_,F;G<E;){if(A=P[G++],typeof A=="number"){W.push(A);continue}switch(A){case"jz":F=W.pop(),_=W.pop(),_||(G=F);break;case"j":_=W.pop(),G=_;break;case"abs":_=W.pop(),W.push(Math.abs(_));break;case"add":F=W.pop(),_=W.pop(),W.push(_+F);break;case"and":F=W.pop(),_=W.pop(),(0,g.isBool)(_)&&(0,g.isBool)(F)?W.push(_&&F):W.push(_&F);break;case"atan":_=W.pop(),W.push(Math.atan(_));break;case"bitshift":F=W.pop(),_=W.pop(),_>0?W.push(_<<F):W.push(_>>F);break;case"ceiling":_=W.pop(),W.push(Math.ceil(_));break;case"copy":_=W.pop(),W.copy(_);break;case"cos":_=W.pop(),W.push(Math.cos(_));break;case"cvi":_=W.pop()|0,W.push(_);break;case"cvr":break;case"div":F=W.pop(),_=W.pop(),W.push(_/F);break;case"dup":W.copy(1);break;case"eq":F=W.pop(),_=W.pop(),W.push(_===F);break;case"exch":W.roll(2,1);break;case"exp":F=W.pop(),_=W.pop(),W.push(_**F);break;case"false":W.push(!1);break;case"floor":_=W.pop(),W.push(Math.floor(_));break;case"ge":F=W.pop(),_=W.pop(),W.push(_>=F);break;case"gt":F=W.pop(),_=W.pop(),W.push(_>F);break;case"idiv":F=W.pop(),_=W.pop(),W.push(_/F|0);break;case"index":_=W.pop(),W.index(_);break;case"le":F=W.pop(),_=W.pop(),W.push(_<=F);break;case"ln":_=W.pop(),W.push(Math.log(_));break;case"log":_=W.pop(),W.push(Math.log(_)/Math.LN10);break;case"lt":F=W.pop(),_=W.pop(),W.push(_<F);break;case"mod":F=W.pop(),_=W.pop(),W.push(_%F);break;case"mul":F=W.pop(),_=W.pop(),W.push(_*F);break;case"ne":F=W.pop(),_=W.pop(),W.push(_!==F);break;case"neg":_=W.pop(),W.push(-_);break;case"not":_=W.pop(),(0,g.isBool)(_)?W.push(!_):W.push(~_);break;case"or":F=W.pop(),_=W.pop(),(0,g.isBool)(_)&&(0,g.isBool)(F)?W.push(_||F):W.push(_|F);break;case"pop":W.pop();break;case"roll":F=W.pop(),_=W.pop(),W.roll(_,F);break;case"round":_=W.pop(),W.push(Math.round(_));break;case"sin":_=W.pop(),W.push(Math.sin(_));break;case"sqrt":_=W.pop(),W.push(Math.sqrt(_));break;case"sub":F=W.pop(),_=W.pop(),W.push(_-F);break;case"true":W.push(!0);break;case"truncate":_=W.pop(),_=_<0?Math.ceil(_):Math.floor(_),W.push(_);break;case"xor":F=W.pop(),_=W.pop(),(0,g.isBool)(_)&&(0,g.isBool)(F)?W.push(_!==F):W.push(_^F);break;default:throw new g.FormatError(`Unknown operator ${A}`)}}return W.stack}},re}();d.PostScriptEvaluator=m;var u=function(){function re(v){this.type=v}re.prototype.visit=function(v){(0,g.unreachable)("abstract method")};function U(v,y,b){re.call(this,"args"),this.index=v,this.min=y,this.max=b}U.prototype=Object.create(re.prototype),U.prototype.visit=function(v){v.visitArgument(this)};function X(v){re.call(this,"literal"),this.number=v,this.min=v,this.max=v}X.prototype=Object.create(re.prototype),X.prototype.visit=function(v){v.visitLiteral(this)};function W(v,y,b,C,w){re.call(this,"binary"),this.op=v,this.arg1=y,this.arg2=b,this.min=C,this.max=w}W.prototype=Object.create(re.prototype),W.prototype.visit=function(v){v.visitBinaryOperation(this)};function G(v,y){re.call(this,"max"),this.arg=v,this.min=v.min,this.max=y}G.prototype=Object.create(re.prototype),G.prototype.visit=function(v){v.visitMin(this)};function P(v,y,b){re.call(this,"var"),this.index=v,this.min=y,this.max=b}P.prototype=Object.create(re.prototype),P.prototype.visit=function(v){v.visitVariable(this)};function E(v,y){re.call(this,"definition"),this.variable=v,this.arg=y}E.prototype=Object.create(re.prototype),E.prototype.visit=function(v){v.visitVariableDefinition(this)};function A(){this.parts=[]}A.prototype={visitArgument(v){this.parts.push("Math.max(",v.min,", Math.min(",v.max,", src[srcOffset + ",v.index,"]))")},visitVariable(v){this.parts.push("v",v.index)},visitLiteral(v){this.parts.push(v.number)},visitBinaryOperation(v){this.parts.push("("),v.arg1.visit(this),this.parts.push(" ",v.op," "),v.arg2.visit(this),this.parts.push(")")},visitVariableDefinition(v){this.parts.push("var "),v.variable.visit(this),this.parts.push(" = "),v.arg.visit(this),this.parts.push(";")},visitMin(v){this.parts.push("Math.min("),v.arg.visit(this),this.parts.push(", ",v.max,")")},toString(){return this.parts.join("")}};function _(v,y){return y.type==="literal"&&y.number===0?v:v.type==="literal"&&v.number===0?y:y.type==="literal"&&v.type==="literal"?new X(v.number+y.number):new W("+",v,y,v.min+y.min,v.max+y.max)}function F(v,y){if(y.type==="literal"){if(y.number===0)return new X(0);if(y.number===1)return v;if(v.type==="literal")return new X(v.number*y.number)}if(v.type==="literal"){if(v.number===0)return new X(0);if(v.number===1)return y}var b=Math.min(v.min*y.min,v.min*y.max,v.max*y.min,v.max*y.max),C=Math.max(v.min*y.min,v.min*y.max,v.max*y.min,v.max*y.max);return new W("*",v,y,b,C)}function D(v,y){if(y.type==="literal"){if(y.number===0)return v;if(v.type==="literal")return new X(v.number-y.number)}return y.type==="binary"&&y.op==="-"&&v.type==="literal"&&v.number===1&&y.arg1.type==="literal"&&y.arg1.number===1?y.arg2:new W("-",v,y,v.min-y.max,v.max-y.min)}function L(v,y){return v.min>=y?new X(y):v.max<=y?v:new G(v,y)}function k(){}return k.prototype={compile:function(y,b,C){var w=[],T=[],B=b.length>>1,N=C.length>>1,Q=0,z,j,$,M,q,K,Z,te;for(let ae=0;ae<B;ae++)w.push(new U(ae,b[ae*2],b[ae*2+1]));for(let ae=0,ce=y.length;ae<ce;ae++){if(te=y[ae],typeof te=="number"){w.push(new X(te));continue}switch(te){case"add":if(w.length<2)return null;M=w.pop(),$=w.pop(),w.push(_($,M));break;case"cvr":if(w.length<1)return null;break;case"mul":if(w.length<2)return null;M=w.pop(),$=w.pop(),w.push(F($,M));break;case"sub":if(w.length<2)return null;M=w.pop(),$=w.pop(),w.push(D($,M));break;case"exch":if(w.length<2)return null;q=w.pop(),K=w.pop(),w.push(q,K);break;case"pop":if(w.length<1)return null;w.pop();break;case"index":if(w.length<1||($=w.pop(),$.type!=="literal")||(z=$.number,z<0||!Number.isInteger(z)||w.length<z))return null;if(q=w[w.length-z-1],q.type==="literal"||q.type==="var"){w.push(q);break}Z=new P(Q++,q.min,q.max),w[w.length-z-1]=Z,w.push(Z),T.push(new E(Z,q));break;case"dup":if(w.length<1)return null;if(typeof y[ae+1]=="number"&&y[ae+2]==="gt"&&y[ae+3]===ae+7&&y[ae+4]==="jz"&&y[ae+5]==="pop"&&y[ae+6]===y[ae+1]){$=w.pop(),w.push(L($,y[ae+1])),ae+=6;break}if(q=w[w.length-1],q.type==="literal"||q.type==="var"){w.push(q);break}Z=new P(Q++,q.min,q.max),w[w.length-1]=Z,w.push(Z),T.push(new E(Z,q));break;case"roll":if(w.length<2||(M=w.pop(),$=w.pop(),M.type!=="literal"||$.type!=="literal")||(j=M.number,z=$.number,z<=0||!Number.isInteger(z)||!Number.isInteger(j)||w.length<z))return null;if(j=(j%z+z)%z,j===0)break;Array.prototype.push.apply(w,w.splice(w.length-z,z-j));break;default:return null}}if(w.length!==N)return null;var oe=[];return T.forEach(function(ae){var ce=new A;ae.visit(ce),oe.push(ce.toString())}),w.forEach(function(ae,ce){var fe=new A;ae.visit(fe);var ne=C[ce*2],le=C[ce*2+1],ue=[fe.toString()];ne>ae.min&&(ue.unshift("Math.max(",ne,", "),ue.push(")")),le<ae.max&&(ue.unshift("Math.min(",le,", "),ue.push(")")),ue.unshift("dest[destOffset + ",ce,"] = "),ue.push(";"),oe.push(ue.join(""))}),oe.join(`
55
- `)}},k}();d.PostScriptCompiler=u},function(S,d,R){Object.defineProperty(d,"__esModule",{value:!0}),d.PostScriptParser=d.PostScriptLexer=void 0;var g=R(2),O=R(5),J=R(8);class a{constructor(m){this.lexer=m,this.operators=[],this.token=null,this.prev=null}nextToken(){this.prev=this.token,this.token=this.lexer.getToken()}accept(m){return this.token.type===m?(this.nextToken(),!0):!1}expect(m){if(this.accept(m))return!0;throw new g.FormatError(`Unexpected symbol: found ${this.token.type} expected ${m}.`)}parse(){return this.nextToken(),this.expect(se.LBRACE),this.parseBlock(),this.expect(se.RBRACE),this.operators}parseBlock(){for(;;)if(this.accept(se.NUMBER))this.operators.push(this.prev.value);else if(this.accept(se.OPERATOR))this.operators.push(this.prev.value);else if(this.accept(se.LBRACE))this.parseCondition();else return}parseCondition(){const m=this.operators.length;if(this.operators.push(null,null),this.parseBlock(),this.expect(se.RBRACE),this.accept(se.IF))this.operators[m]=this.operators.length,this.operators[m+1]="jz";else if(this.accept(se.LBRACE)){const u=this.operators.length;this.operators.push(null,null);const Y=this.operators.length;this.parseBlock(),this.expect(se.RBRACE),this.expect(se.IFELSE),this.operators[u]=this.operators.length,this.operators[u+1]="j",this.operators[m]=Y,this.operators[m+1]="jz"}else throw new g.FormatError("PS Function: error parsing conditional.")}}d.PostScriptParser=a;const se={LBRACE:0,RBRACE:1,NUMBER:2,OPERATOR:3,IF:4,IFELSE:5},H=function(){const m=Object.create(null);class u{constructor(re,U){this.type=re,this.value=U}static getOperator(re){const U=m[re];return U||(m[re]=new u(se.OPERATOR,re))}static get LBRACE(){return(0,g.shadow)(this,"LBRACE",new u(se.LBRACE,"{"))}static get RBRACE(){return(0,g.shadow)(this,"RBRACE",new u(se.RBRACE,"}"))}static get IF(){return(0,g.shadow)(this,"IF",new u(se.IF,"IF"))}static get IFELSE(){return(0,g.shadow)(this,"IFELSE",new u(se.IFELSE,"IFELSE"))}}return u}();class ee{constructor(m){this.stream=m,this.nextChar(),this.strBuf=[]}nextChar(){return this.currentChar=this.stream.getByte()}getToken(){let m=!1,u=this.currentChar;for(;;){if(u<0)return O.EOF;if(m)(u===10||u===13)&&(m=!1);else if(u===37)m=!0;else if(!(0,J.isWhiteSpace)(u))break;u=this.nextChar()}switch(u|0){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 43:case 45:case 46:return new H(se.NUMBER,this.getNumber());case 123:return this.nextChar(),H.LBRACE;case 125:return this.nextChar(),H.RBRACE}const Y=this.strBuf;for(Y.length=0,Y[0]=String.fromCharCode(u);(u=this.nextChar())>=0&&(u>=65&&u<=90||u>=97&&u<=122);)Y.push(String.fromCharCode(u));const re=Y.join("");switch(re.toLowerCase()){case"if":return H.IF;case"ifelse":return H.IFELSE;default:return H.getOperator(re)}}getNumber(){let m=this.currentChar;const u=this.strBuf;for(u.length=0,u[0]=String.fromCharCode(m);(m=this.nextChar())>=0&&(m>=48&&m<=57||m===45||m===46);)u.push(String.fromCharCode(m));const Y=parseFloat(u.join(""));if(isNaN(Y))throw new g.FormatError(`Invalid floating point number: ${Y}`);return Y}}d.PostScriptLexer=ee},function(S,d,R){Object.defineProperty(d,"__esModule",{value:!0}),d.MurmurHash3_64=void 0;var g=R(2);const O=3285377520,J=4294901760,a=65535;class se{constructor(ee){this.h1=ee?ee&4294967295:O,this.h2=ee?ee&4294967295:O}update(ee){let ie,m;if((0,g.isString)(ee)){ie=new Uint8Array(ee.length*2),m=0;for(let F=0,D=ee.length;F<D;F++){const L=ee.charCodeAt(F);L<=255?ie[m++]=L:(ie[m++]=L>>>8,ie[m++]=L&255)}}else if((0,g.isArrayBuffer)(ee))ie=ee,m=ie.byteLength;else throw new Error("Wrong data format in MurmurHash3_64_update. Input must be a string or array.");const u=m>>2,Y=m-u*4,re=new Uint32Array(ie.buffer,0,u);let U=0,X=0,W=this.h1,G=this.h2;const P=3432918353,E=461845907,A=P&a,_=E&a;for(let F=0;F<u;F++)F&1?(U=re[F],U=U*P&J|U*A&a,U=U<<15|U>>>17,U=U*E&J|U*_&a,W^=U,W=W<<13|W>>>19,W=W*5+3864292196):(X=re[F],X=X*P&J|X*A&a,X=X<<15|X>>>17,X=X*E&J|X*_&a,G^=X,G=G<<13|G>>>19,G=G*5+3864292196);switch(U=0,Y){case 3:U^=ie[u*4+2]<<16;case 2:U^=ie[u*4+1]<<8;case 1:U^=ie[u*4],U=U*P&J|U*A&a,U=U<<15|U>>>17,U=U*E&J|U*_&a,u&1?W^=U:G^=U}this.h1=W,this.h2=G}hexdigest(){let ee=this.h1,ie=this.h2;ee^=ie>>>1,ee=ee*3981806797&J|ee*36045&a,ie=ie*4283543511&J|((ie<<16|ee>>>16)*2950163797&J)>>>16,ee^=ie>>>1,ee=ee*444984403&J|ee*60499&a,ie=ie*3301882366&J|((ie<<16|ee>>>16)*3120437893&J)>>>16,ee^=ie>>>1;const m=(ee>>>0).toString(16),u=(ie>>>0).toString(16);return m.padStart(8,"0")+u.padStart(8,"0")}}d.MurmurHash3_64=se},function(S,d,R){Object.defineProperty(d,"__esModule",{value:!0}),d.PDFImage=void 0;var g=R(2),O=R(5),J=R(23),a=R(12),se=R(18),H=R(21),ee=function(){function m(re,U,X,W){return re=U+re*X,re<0?re=0:re>W&&(re=W),re}function u(re,U,X,W,G,P){var E=G*P;let A;U<=8?A=new Uint8Array(E):U<=16?A=new Uint16Array(E):A=new Uint32Array(E);var _=X/G,F=W/P,D,L,k,v=0,y,b=new Uint16Array(G),C=X;for(D=0;D<G;D++)b[D]=Math.floor(D*_);for(D=0;D<P;D++)for(k=Math.floor(D*F)*C,L=0;L<G;L++)y=k+b[L],A[v++]=re[y];return A}function Y({xref:re,res:U,image:X,isInline:W=!1,smask:G=null,mask:P=null,isMask:E=!1,pdfFunctionFactory:A}){this.image=X;var _=X.dict;const F=_.get("Filter");if((0,O.isName)(F))switch(F.name){case"JPXDecode":var D=new H.JpxImage;D.parseImageProperties(X.stream),X.stream.reset(),X.width=D.width,X.height=D.height,X.bitsPerComponent=D.bitsPerComponent,X.numComps=D.componentsCount;break;case"JBIG2Decode":X.bitsPerComponent=1,X.numComps=1;break}let L=_.get("Width","W"),k=_.get("Height","H");if(Number.isInteger(X.width)&&X.width>0&&Number.isInteger(X.height)&&X.height>0&&(X.width!==L||X.height!==k)&&((0,g.warn)("PDFImage - using the Width/Height of the image data, rather than the image dictionary."),L=X.width,k=X.height),L<1||k<1)throw new g.FormatError(`Invalid image width: ${L} or height: ${k}`);this.width=L,this.height=k,this.interpolate=_.get("Interpolate","I")||!1,this.imageMask=_.get("ImageMask","IM")||!1,this.matte=_.get("Matte")||!1;var v=X.bitsPerComponent;if(!v&&(v=_.get("BitsPerComponent","BPC"),!v))if(this.imageMask)v=1;else throw new g.FormatError(`Bits per component missing in image: ${this.imageMask}`);if(this.bpc=v,!this.imageMask){var y=_.get("ColorSpace","CS");if(!y)switch((0,g.info)("JPX images (which do not require color spaces)"),X.numComps){case 1:y=O.Name.get("DeviceGray");break;case 3:y=O.Name.get("DeviceRGB");break;case 4:y=O.Name.get("DeviceCMYK");break;default:throw new Error(`JPX images with ${X.numComps} color components not supported.`)}const z=W?U:null;this.colorSpace=J.ColorSpace.parse(y,re,z,A),this.numComps=this.colorSpace.numComps}if(this.decode=_.getArray("Decode","D"),this.needsDecode=!1,this.decode&&(this.colorSpace&&!this.colorSpace.isDefaultDecode(this.decode,v)||E&&!J.ColorSpace.isDefaultDecode(this.decode,1))){this.needsDecode=!0;var b=(1<<v)-1;this.decodeCoefficients=[],this.decodeAddends=[];const z=this.colorSpace&&this.colorSpace.name==="Indexed";for(var C=0,w=0;C<this.decode.length;C+=2,++w){var T=this.decode[C],B=this.decode[C+1];this.decodeCoefficients[w]=z?(B-T)/b:B-T,this.decodeAddends[w]=z?T:b*T}}if(G)this.smask=new Y({xref:re,res:U,image:G,isInline:W,pdfFunctionFactory:A});else if(P)if((0,O.isStream)(P)){var N=P.dict,Q=N.get("ImageMask","IM");Q?this.mask=new Y({xref:re,res:U,image:P,isInline:W,isMask:!0,pdfFunctionFactory:A}):(0,g.warn)("Ignoring /Mask in image without /ImageMask.")}else this.mask=P}return Y.buildImage=function({xref:re,res:U,image:X,isInline:W=!1,pdfFunctionFactory:G}){const P=X;let E=null,A=null;const _=X.dict.get("SMask"),F=X.dict.get("Mask");return _?E=_:F&&((0,O.isStream)(F)||Array.isArray(F)?A=F:(0,g.warn)("Unsupported mask format.")),Promise.resolve(new Y({xref:re,res:U,image:P,isInline:W,smask:E,mask:A,pdfFunctionFactory:G}))},Y.createMask=function({imgArray:re,width:U,height:X,imageIsFromDecodeStream:W,inverseDecode:G}){var P=(U+7>>3)*X,E=re.byteLength,A=P===E,_,F;if(W&&(!G||A))_=re;else if(!G)_=new Uint8ClampedArray(E),_.set(re);else for(_=new Uint8ClampedArray(P),_.set(re),F=E;F<P;F++)_[F]=255;if(G)for(F=0;F<E;F++)_[F]^=255;return{data:_,width:U,height:X}},Y.prototype={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(re){var U=this.bpc,X=this.numComps,W=this.decodeAddends,G=this.decodeCoefficients,P=(1<<U)-1,E,A;if(U===1){for(E=0,A=re.length;E<A;E++)re[E]=+!re[E];return}var _=0;for(E=0,A=this.width*this.height;E<A;E++)for(var F=0;F<X;F++)re[_]=m(re[_],W[F],G[F],P),_++},getComponents(re){var U=this.bpc;if(U===8)return re;var X=this.width,W=this.height,G=this.numComps,P=X*W*G,E=0;let A;U<=8?A=new Uint8Array(P):U<=16?A=new Uint16Array(P):A=new Uint32Array(P);var _=X*G,F=(1<<U)-1,D=0,L,k;if(U===1)for(var v,y,b,C=0;C<W;C++){for(y=D+(_&-8),b=D+_;D<y;)k=re[E++],A[D]=k>>7&1,A[D+1]=k>>6&1,A[D+2]=k>>5&1,A[D+3]=k>>4&1,A[D+4]=k>>3&1,A[D+5]=k>>2&1,A[D+6]=k>>1&1,A[D+7]=k&1,D+=8;if(D<b)for(k=re[E++],v=128;D<b;)A[D++]=+!!(k&v),v>>=1}else{var w=0;for(k=0,D=0,L=P;D<L;++D){for(D%_===0&&(k=0,w=0);w<U;)k=k<<8|re[E++],w+=8;var T=w-U;let B=k>>T;B<0?B=0:B>F&&(B=F),A[D]=B,k=k&(1<<T)-1,w=T}}return A},fillOpacity(re,U,X,W,G){var P=this.smask,E=this.mask,A,_,F,D,L,k;if(P)_=P.width,F=P.height,A=new Uint8ClampedArray(_*F),P.fillGrayBuffer(A),(_!==U||F!==X)&&(A=u(A,P.bpc,_,F,U,X));else if(E)if(E instanceof Y){for(_=E.width,F=E.height,A=new Uint8ClampedArray(_*F),E.numComps=1,E.fillGrayBuffer(A),D=0,L=_*F;D<L;++D)A[D]=255-A[D];(_!==U||F!==X)&&(A=u(A,E.bpc,_,F,U,X))}else if(Array.isArray(E)){A=new Uint8ClampedArray(U*X);var v=this.numComps;for(D=0,L=U*X;D<L;++D){var y=0,b=D*v;for(k=0;k<v;++k){var C=G[b+k],w=k*2;if(C<E[w]||C>E[w+1]){y=255;break}}A[D]=y}}else throw new g.FormatError("Unknown mask format.");if(A)for(D=0,k=3,L=U*W;D<L;++D,k+=4)re[k]=A[D];else for(D=0,k=3,L=U*W;D<L;++D,k+=4)re[k]=255},undoPreblend(re,U,X){var W=this.smask&&this.smask.matte;if(!!W)for(var G=this.colorSpace.getRgb(W,0),P=G[0],E=G[1],A=G[2],_=U*X*4,F=0;F<_;F+=4){var D=re[F+3];if(D===0){re[F]=255,re[F+1]=255,re[F+2]=255;continue}var L=255/D;re[F]=(re[F]-P)*L+P,re[F+1]=(re[F+1]-E)*L+E,re[F+2]=(re[F+2]-A)*L+A}},createImageData(re=!1){var U=this.drawWidth,X=this.drawHeight,W={width:U,height:X,kind:0,data:null},G=this.numComps,P=this.width,E=this.height,A=this.bpc,_=P*G*A+7>>3,F;if(!re){var D;if(this.colorSpace.name==="DeviceGray"&&A===1?D=g.ImageKind.GRAYSCALE_1BPP:this.colorSpace.name==="DeviceRGB"&&A===8&&!this.needsDecode&&(D=g.ImageKind.RGB_24BPP),D&&!this.smask&&!this.mask&&U===P&&X===E){if(W.kind=D,F=this.getImageBytes(E*_),this.image instanceof a.DecodeStream)W.data=F;else{var L=new Uint8ClampedArray(F.length);L.set(F),W.data=L}if(this.needsDecode){(0,g.assert)(D===g.ImageKind.GRAYSCALE_1BPP,"PDFImage.createImageData: The image must be grayscale.");for(var k=W.data,v=0,y=k.length;v<y;v++)k[v]^=255}return W}if(this.image instanceof se.JpegStream&&!this.smask&&!this.mask){let B=E*_;switch(this.colorSpace.name){case"DeviceGray":B*=3;case"DeviceRGB":case"DeviceCMYK":return W.kind=g.ImageKind.RGB_24BPP,W.data=this.getImageBytes(B,U,X,!0),W}}}F=this.getImageBytes(E*_);var b=0|F.length/_*X/E,C=this.getComponents(F),w,T;return!re&&!this.smask&&!this.mask?(W.kind=g.ImageKind.RGB_24BPP,W.data=new Uint8ClampedArray(U*X*3),w=0,T=!1):(W.kind=g.ImageKind.RGBA_32BPP,W.data=new Uint8ClampedArray(U*X*4),w=1,T=!0,this.fillOpacity(W.data,U,X,b,C)),this.needsDecode&&this.decodeBuffer(C),this.colorSpace.fillRgb(W.data,P,E,U,X,b,A,C,w),T&&this.undoPreblend(W.data,U,b),W},fillGrayBuffer(re){var U=this.numComps;if(U!==1)throw new g.FormatError(`Reading gray scale from a color image: ${U}`);var X=this.width,W=this.height,G=this.bpc,P=X*U*G+7>>3,E=this.getImageBytes(W*P),A=this.getComponents(E),_,F;if(G===1){if(F=X*W,this.needsDecode)for(_=0;_<F;++_)re[_]=A[_]-1&255;else for(_=0;_<F;++_)re[_]=-A[_]&255;return}this.needsDecode&&this.decodeBuffer(A),F=X*W;var D=255/((1<<G)-1);for(_=0;_<F;++_)re[_]=D*A[_]},getImageBytes(re,U,X,W=!1){return this.image.reset(),this.image.drawWidth=U||this.width,this.image.drawHeight=X||this.height,this.image.forceRGB=!!W,this.image.getBytes(re,!0)}},Y}();d.PDFImage=ee},function(S,d,R){Object.defineProperty(d,"__esModule",{value:!0}),d.MessageHandler=void 0;var g=R(2);const O={UNKNOWN:0,DATA:1,ERROR:2},J={UNKNOWN:0,CANCEL:1,CANCEL_COMPLETE:2,CLOSE:3,ENQUEUE:4,ERROR:5,PULL:6,PULL_COMPLETE:7,START_COMPLETE:8};function a(H){if(typeof H!="object"||H===null)return H;switch(H.name){case"AbortException":return new g.AbortException(H.message);case"MissingPDFException":return new g.MissingPDFException(H.message);case"UnexpectedResponseException":return new g.UnexpectedResponseException(H.message,H.status);case"UnknownErrorException":return new g.UnknownErrorException(H.message,H.details);default:return new g.UnknownErrorException(H.message,H.toString())}}class se{constructor(ee,ie,m){this.sourceName=ee,this.targetName=ie,this.comObj=m,this.callbackId=1,this.streamId=1,this.postMessageTransfers=!0,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=u=>{const Y=u.data;if(Y.targetName!==this.sourceName)return;if(Y.stream){this._processStreamMessage(Y);return}if(Y.callback){const U=Y.callbackId,X=this.callbackCapabilities[U];if(!X)throw new Error(`Cannot resolve callback ${U}`);if(delete this.callbackCapabilities[U],Y.callback===O.DATA)X.resolve(Y.data);else if(Y.callback===O.ERROR)X.reject(a(Y.reason));else throw new Error("Unexpected callback case");return}const re=this.actionHandler[Y.action];if(!re)throw new Error(`Unknown action from worker: ${Y.action}`);if(Y.callbackId){const U=this.sourceName,X=Y.sourceName;new Promise(function(W){W(re(Y.data))}).then(function(W){m.postMessage({sourceName:U,targetName:X,callback:O.DATA,callbackId:Y.callbackId,data:W})},function(W){m.postMessage({sourceName:U,targetName:X,callback:O.ERROR,callbackId:Y.callbackId,reason:a(W)})});return}if(Y.streamId){this._createStreamSink(Y);return}re(Y.data)},m.addEventListener("message",this._onComObjOnMessage)}on(ee,ie){const m=this.actionHandler;if(m[ee])throw new Error(`There is already an actionName called "${ee}"`);m[ee]=ie}send(ee,ie,m){this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:ee,data:ie},m)}sendWithPromise(ee,ie,m){const u=this.callbackId++,Y=(0,g.createPromiseCapability)();this.callbackCapabilities[u]=Y;try{this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:ee,callbackId:u,data:ie},m)}catch(re){Y.reject(re)}return Y.promise}sendWithStream(ee,ie,m,u){const Y=this.streamId++,re=this.sourceName,U=this.targetName,X=this.comObj;return new ReadableStream({start:W=>{const G=(0,g.createPromiseCapability)();return this.streamControllers[Y]={controller:W,startCall:G,pullCall:null,cancelCall:null,isClosed:!1},this._postMessage({sourceName:re,targetName:U,action:ee,streamId:Y,data:ie,desiredSize:W.desiredSize},u),G.promise},pull:W=>{const G=(0,g.createPromiseCapability)();return this.streamControllers[Y].pullCall=G,X.postMessage({sourceName:re,targetName:U,stream:J.PULL,streamId:Y,desiredSize:W.desiredSize}),G.promise},cancel:W=>{(0,g.assert)(W instanceof Error,"cancel must have a valid reason");const G=(0,g.createPromiseCapability)();return this.streamControllers[Y].cancelCall=G,this.streamControllers[Y].isClosed=!0,X.postMessage({sourceName:re,targetName:U,stream:J.CANCEL,streamId:Y,reason:a(W)}),G.promise}},m)}_createStreamSink(ee){const ie=this,m=this.actionHandler[ee.action],u=ee.streamId,Y=this.sourceName,re=ee.sourceName,U=this.comObj,X={enqueue(W,G=1,P){if(this.isCancelled)return;const E=this.desiredSize;this.desiredSize-=G,E>0&&this.desiredSize<=0&&(this.sinkCapability=(0,g.createPromiseCapability)(),this.ready=this.sinkCapability.promise),ie._postMessage({sourceName:Y,targetName:re,stream:J.ENQUEUE,streamId:u,chunk:W},P)},close(){this.isCancelled||(this.isCancelled=!0,U.postMessage({sourceName:Y,targetName:re,stream:J.CLOSE,streamId:u}),delete ie.streamSinks[u])},error(W){(0,g.assert)(W instanceof Error,"error must have a valid reason"),!this.isCancelled&&(this.isCancelled=!0,U.postMessage({sourceName:Y,targetName:re,stream:J.ERROR,streamId:u,reason:a(W)}))},sinkCapability:(0,g.createPromiseCapability)(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:ee.desiredSize,ready:null};X.sinkCapability.resolve(),X.ready=X.sinkCapability.promise,this.streamSinks[u]=X,new Promise(function(W){W(m(ee.data,X))}).then(function(){U.postMessage({sourceName:Y,targetName:re,stream:J.START_COMPLETE,streamId:u,success:!0})},function(W){U.postMessage({sourceName:Y,targetName:re,stream:J.START_COMPLETE,streamId:u,reason:a(W)})})}_processStreamMessage(ee){const ie=ee.streamId,m=this.sourceName,u=ee.sourceName,Y=this.comObj;switch(ee.stream){case J.START_COMPLETE:ee.success?this.streamControllers[ie].startCall.resolve():this.streamControllers[ie].startCall.reject(a(ee.reason));break;case J.PULL_COMPLETE:ee.success?this.streamControllers[ie].pullCall.resolve():this.streamControllers[ie].pullCall.reject(a(ee.reason));break;case J.PULL:if(!this.streamSinks[ie]){Y.postMessage({sourceName:m,targetName:u,stream:J.PULL_COMPLETE,streamId:ie,success:!0});break}this.streamSinks[ie].desiredSize<=0&&ee.desiredSize>0&&this.streamSinks[ie].sinkCapability.resolve(),this.streamSinks[ie].desiredSize=ee.desiredSize;const{onPull:re}=this.streamSinks[ee.streamId];new Promise(function(X){X(re&&re())}).then(function(){Y.postMessage({sourceName:m,targetName:u,stream:J.PULL_COMPLETE,streamId:ie,success:!0})},function(X){Y.postMessage({sourceName:m,targetName:u,stream:J.PULL_COMPLETE,streamId:ie,reason:a(X)})});break;case J.ENQUEUE:if((0,g.assert)(this.streamControllers[ie],"enqueue should have stream controller"),this.streamControllers[ie].isClosed)break;this.streamControllers[ie].controller.enqueue(ee.chunk);break;case J.CLOSE:if((0,g.assert)(this.streamControllers[ie],"close should have stream controller"),this.streamControllers[ie].isClosed)break;this.streamControllers[ie].isClosed=!0,this.streamControllers[ie].controller.close(),this._deleteStreamController(ie);break;case J.ERROR:(0,g.assert)(this.streamControllers[ie],"error should have stream controller"),this.streamControllers[ie].controller.error(a(ee.reason)),this._deleteStreamController(ie);break;case J.CANCEL_COMPLETE:ee.success?this.streamControllers[ie].cancelCall.resolve():this.streamControllers[ie].cancelCall.reject(a(ee.reason)),this._deleteStreamController(ie);break;case J.CANCEL:if(!this.streamSinks[ie])break;const{onCancel:U}=this.streamSinks[ee.streamId];new Promise(function(X){X(U&&U(a(ee.reason)))}).then(function(){Y.postMessage({sourceName:m,targetName:u,stream:J.CANCEL_COMPLETE,streamId:ie,success:!0})},function(X){Y.postMessage({sourceName:m,targetName:u,stream:J.CANCEL_COMPLETE,streamId:ie,reason:a(X)})}),this.streamSinks[ie].sinkCapability.reject(a(ee.reason)),this.streamSinks[ie].isCancelled=!0,delete this.streamSinks[ie];break;default:throw new Error("Unexpected stream case")}}async _deleteStreamController(ee){await Promise.allSettled([this.streamControllers[ee].startCall,this.streamControllers[ee].pullCall,this.streamControllers[ee].cancelCall].map(function(ie){return ie&&ie.promise})),delete this.streamControllers[ee]}_postMessage(ee,ie){ie&&this.postMessageTransfers?this.comObj.postMessage(ee,ie):this.comObj.postMessage(ee)}destroy(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}d.MessageHandler=se},function(S,d,R){Object.defineProperty(d,"__esModule",{value:!0}),d.PDFWorkerStream=void 0;var g=R(2);class O{constructor(H){this._msgHandler=H,this._contentLength=null,this._fullRequestReader=null,this._rangeRequestReaders=[]}getFullReader(){return(0,g.assert)(!this._fullRequestReader,"PDFWorkerStream.getFullReader can only be called once."),this._fullRequestReader=new J(this._msgHandler),this._fullRequestReader}getRangeReader(H,ee){const ie=new a(H,ee,this._msgHandler);return this._rangeRequestReaders.push(ie),ie}cancelAllRequests(H){this._fullRequestReader&&this._fullRequestReader.cancel(H),this._rangeRequestReaders.slice(0).forEach(function(ie){ie.cancel(H)})}}d.PDFWorkerStream=O;class J{constructor(H){this._msgHandler=H,this.onProgress=null,this._contentLength=null,this._isRangeSupported=!1,this._isStreamingSupported=!1;const ee=this._msgHandler.sendWithStream("GetReader");this._reader=ee.getReader(),this._headersReady=this._msgHandler.sendWithPromise("ReaderHeadersReady").then(ie=>{this._isStreamingSupported=ie.isStreamingSupported,this._isRangeSupported=ie.isRangeSupported,this._contentLength=ie.contentLength})}get headersReady(){return this._headersReady}get contentLength(){return this._contentLength}get isStreamingSupported(){return this._isStreamingSupported}get isRangeSupported(){return this._isRangeSupported}async read(){const{value:H,done:ee}=await this._reader.read();return ee?{value:void 0,done:!0}:{value:H.buffer,done:!1}}cancel(H){this._reader.cancel(H)}}class a{constructor(H,ee,ie){this._msgHandler=ie,this.onProgress=null;const m=this._msgHandler.sendWithStream("GetRangeReader",{begin:H,end:ee});this._reader=m.getReader()}get isStreamingSupported(){return!1}async read(){const{value:H,done:ee}=await this._reader.read();return ee?{value:void 0,done:!0}:{value:H.buffer,done:!1}}cancel(H){this._reader.cancel(H)}}}])})})(pdf_worker);(typeof window!="undefined"?window:{}).pdfjsWorker=pdf_worker.exports;var pdf_viewer={exports:{}};(function(p,f){(function(d,R){p.exports=R()})(commonjsGlobal,function(){return function(S){var d={};function R(g){if(d[g])return d[g].exports;var O=d[g]={i:g,l:!1,exports:{}};return S[g].call(O.exports,O,O.exports,R),O.l=!0,O.exports}return R.m=S,R.c=d,R.d=function(g,O,J){R.o(g,O)||Object.defineProperty(g,O,{enumerable:!0,get:J})},R.r=function(g){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(g,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(g,"__esModule",{value:!0})},R.t=function(g,O){if(O&1&&(g=R(g)),O&8||O&4&&typeof g=="object"&&g&&g.__esModule)return g;var J=Object.create(null);if(R.r(J),Object.defineProperty(J,"default",{enumerable:!0,value:g}),O&2&&typeof g!="string")for(var a in g)R.d(J,a,function(se){return g[se]}.bind(null,a));return J},R.n=function(g){var O=g&&g.__esModule?function(){return g.default}:function(){return g};return R.d(O,"a",O),O},R.o=function(g,O){return Object.prototype.hasOwnProperty.call(g,O)},R.p="",R(R.s=0)}([function(S,d,R){Object.defineProperty(d,"__esModule",{value:!0}),Object.defineProperty(d,"AnnotationLayerBuilder",{enumerable:!0,get:function(){return g.AnnotationLayerBuilder}}),Object.defineProperty(d,"DefaultAnnotationLayerFactory",{enumerable:!0,get:function(){return g.DefaultAnnotationLayerFactory}}),Object.defineProperty(d,"DefaultTextLayerFactory",{enumerable:!0,get:function(){return O.DefaultTextLayerFactory}}),Object.defineProperty(d,"TextLayerBuilder",{enumerable:!0,get:function(){return O.TextLayerBuilder}}),Object.defineProperty(d,"EventBus",{enumerable:!0,get:function(){return J.EventBus}}),Object.defineProperty(d,"NullL10n",{enumerable:!0,get:function(){return J.NullL10n}}),Object.defineProperty(d,"ProgressBar",{enumerable:!0,get:function(){return J.ProgressBar}}),Object.defineProperty(d,"PDFLinkService",{enumerable:!0,get:function(){return a.PDFLinkService}}),Object.defineProperty(d,"SimpleLinkService",{enumerable:!0,get:function(){return a.SimpleLinkService}}),Object.defineProperty(d,"DownloadManager",{enumerable:!0,get:function(){return se.DownloadManager}}),Object.defineProperty(d,"GenericL10n",{enumerable:!0,get:function(){return H.GenericL10n}}),Object.defineProperty(d,"PDFFindController",{enumerable:!0,get:function(){return ee.PDFFindController}}),Object.defineProperty(d,"PDFHistory",{enumerable:!0,get:function(){return ie.PDFHistory}}),Object.defineProperty(d,"PDFPageView",{enumerable:!0,get:function(){return m.PDFPageView}}),Object.defineProperty(d,"PDFSinglePageViewer",{enumerable:!0,get:function(){return u.PDFSinglePageViewer}}),Object.defineProperty(d,"PDFViewer",{enumerable:!0,get:function(){return Y.PDFViewer}});var g=R(1),O=R(5),J=R(3),a=R(4),se=R(6),H=R(8),ee=R(10),ie=R(12),m=R(13),u=R(15),Y=R(17)},function(S,d,R){Object.defineProperty(d,"__esModule",{value:!0}),d.DefaultAnnotationLayerFactory=d.AnnotationLayerBuilder=void 0;var g=R(2),O=R(3),J=R(4);class a{constructor({pageDiv:ee,pdfPage:ie,linkService:m,downloadManager:u,imageResourcesPath:Y="",renderInteractiveForms:re=!1,l10n:U=O.NullL10n}){this.pageDiv=ee,this.pdfPage=ie,this.linkService=m,this.downloadManager=u,this.imageResourcesPath=Y,this.renderInteractiveForms=re,this.l10n=U,this.div=null,this._cancelled=!1}render(ee,ie="display"){this.pdfPage.getAnnotations({intent:ie}).then(m=>{if(this._cancelled)return;const u={viewport:ee.clone({dontFlip:!0}),div:this.div,annotations:m,page:this.pdfPage,imageResourcesPath:this.imageResourcesPath,renderInteractiveForms:this.renderInteractiveForms,linkService:this.linkService,downloadManager:this.downloadManager};if(this.div)g.AnnotationLayer.update(u);else{if(m.length===0)return;this.div=document.createElement("div"),this.div.className="annotationLayer",this.pageDiv.appendChild(this.div),u.div=this.div,g.AnnotationLayer.render(u),this.l10n.translate(this.div)}})}cancel(){this._cancelled=!0}hide(){!this.div||this.div.setAttribute("hidden","true")}}d.AnnotationLayerBuilder=a;class se{createAnnotationLayerBuilder(ee,ie,m="",u=!1,Y=O.NullL10n){return new a({pageDiv:ee,pdfPage:ie,imageResourcesPath:m,renderInteractiveForms:u,linkService:new J.SimpleLinkService,l10n:Y})}}d.DefaultAnnotationLayerFactory=se},function(S,d,R){let g;typeof window!="undefined"&&window["pdfjs-dist/build/pdf"]?g=window["pdfjs-dist/build/pdf"]:g=pdf$1.exports,S.exports=g},function(S,d,R){Object.defineProperty(d,"__esModule",{value:!0}),d.isValidRotation=N,d.isValidScrollMode=Q,d.isValidSpreadMode=z,d.isPortraitOrientation=j,d.clamp=Z,d.getPDFFileNameFromURL=T,d.noContextMenuHandler=C,d.parseQueryString=F,d.backtrackBeforeAllVisibleElements=y,d.getVisibleElements=b,d.roundToDivide=k,d.getPageSizeInches=v,d.approximateFraction=L,d.getOutputScale=E,d.scrollIntoView=A,d.watchScroll=_,d.binarySearchFirstItem=D,d.normalizeWheelEventDelta=B,d.waitOnEventOrTimeout=M,d.moveToEndOfArray=oe,d.WaitOnType=d.animationStarted=d.ProgressBar=d.EventBus=d.NullL10n=d.SpreadMode=d.ScrollMode=d.TextLayerMode=d.RendererType=d.PresentationModeState=d.VERTICAL_PADDING=d.SCROLLBAR_PADDING=d.MAX_AUTO_SCALE=d.UNKNOWN_SCALE=d.MAX_SCALE=d.MIN_SCALE=d.DEFAULT_SCALE=d.DEFAULT_SCALE_VALUE=d.CSS_UNITS=d.AutoPrintRegExp=void 0;const g=96/72;d.CSS_UNITS=g;const O="auto";d.DEFAULT_SCALE_VALUE=O;const J=1;d.DEFAULT_SCALE=J;const a=.1;d.MIN_SCALE=a;const se=10;d.MAX_SCALE=se;const H=0;d.UNKNOWN_SCALE=H;const ee=1.25;d.MAX_AUTO_SCALE=ee;const ie=40;d.SCROLLBAR_PADDING=ie;const m=5;d.VERTICAL_PADDING=m;const u={UNKNOWN:0,NORMAL:1,CHANGING:2,FULLSCREEN:3};d.PresentationModeState=u;const Y={CANVAS:"canvas",SVG:"svg"};d.RendererType=Y;const re={DISABLE:0,ENABLE:1,ENABLE_ENHANCE:2};d.TextLayerMode=re;const U={UNKNOWN:-1,VERTICAL:0,HORIZONTAL:1,WRAPPED:2};d.ScrollMode=U;const X={UNKNOWN:-1,NONE:0,ODD:1,EVEN:2};d.SpreadMode=X;const W=/\bprint\s*\(/;d.AutoPrintRegExp=W;function G(ae,ce){return ce?ae.replace(/\{\{\s*(\w+)\s*\}\}/g,(fe,ne)=>ne in ce?ce[ne]:"{{"+ne+"}}"):ae}const P={async getLanguage(){return"en-us"},async getDirection(){return"ltr"},async get(ae,ce,fe){return G(fe,ce)},async translate(ae){}};d.NullL10n=P;function E(ae){const ce=window.devicePixelRatio||1,fe=ae.webkitBackingStorePixelRatio||ae.mozBackingStorePixelRatio||ae.msBackingStorePixelRatio||ae.oBackingStorePixelRatio||ae.backingStorePixelRatio||1,ne=ce/fe;return{sx:ne,sy:ne,scaled:ne!==1}}function A(ae,ce,fe=!1){let ne=ae.offsetParent;if(!ne){console.error("offsetParent is not set -- cannot scroll");return}let le=ae.offsetTop+ae.clientTop,ue=ae.offsetLeft+ae.clientLeft;for(;ne.clientHeight===ne.scrollHeight&&ne.clientWidth===ne.scrollWidth||fe&&getComputedStyle(ne).overflow==="hidden";)if(ne.dataset._scaleY&&(le/=ne.dataset._scaleY,ue/=ne.dataset._scaleX),le+=ne.offsetTop,ue+=ne.offsetLeft,ne=ne.offsetParent,!ne)return;ce&&(ce.top!==void 0&&(le+=ce.top),ce.left!==void 0&&(ue+=ce.left,ne.scrollLeft=ue)),ne.scrollTop=le}function _(ae,ce){const fe=function(ue){le||(le=window.requestAnimationFrame(function(){le=null;const de=ae.scrollLeft,ve=ne.lastX;de!==ve&&(ne.right=de>ve),ne.lastX=de;const me=ae.scrollTop,Se=ne.lastY;me!==Se&&(ne.down=me>Se),ne.lastY=me,ce(ne)}))},ne={right:!0,down:!0,lastX:ae.scrollLeft,lastY:ae.scrollTop,_eventHandler:fe};let le=null;return ae.addEventListener("scroll",fe,!0),ne}function F(ae){const ce=ae.split("&"),fe=Object.create(null);for(let ne=0,le=ce.length;ne<le;++ne){const ue=ce[ne].split("="),he=ue[0].toLowerCase(),de=ue.length>1?ue[1]:null;fe[decodeURIComponent(he)]=decodeURIComponent(de)}return fe}function D(ae,ce){let fe=0,ne=ae.length-1;if(ne<0||!ce(ae[ne]))return ae.length;if(ce(ae[fe]))return fe;for(;fe<ne;){const le=fe+ne>>1,ue=ae[le];ce(ue)?ne=le:fe=le+1}return fe}function L(ae){if(Math.floor(ae)===ae)return[ae,1];const ce=1/ae,fe=8;if(ce>fe)return[1,fe];if(Math.floor(ce)===ce)return[1,ce];const ne=ae>1?ce:ae;let le=0,ue=1,he=1,de=1;for(;;){const me=le+he,Se=ue+de;if(Se>fe)break;ne<=me/Se?(he=me,de=Se):(le=me,ue=Se)}let ve;return ne-le/ue<he/de-ne?ve=ne===ae?[le,ue]:[ue,le]:ve=ne===ae?[he,de]:[de,he],ve}function k(ae,ce){const fe=ae%ce;return fe===0?ae:Math.round(ae-fe+ce)}function v({view:ae,userUnit:ce,rotate:fe}){const[ne,le,ue,he]=ae,de=fe%180!==0,ve=(ue-ne)/72*ce,me=(he-le)/72*ce;return{width:de?me:ve,height:de?ve:me}}function y(ae,ce,fe){if(ae<2)return ae;let ne=ce[ae].div,le=ne.offsetTop+ne.clientTop;le>=fe&&(ne=ce[ae-1].div,le=ne.offsetTop+ne.clientTop);for(let ue=ae-2;ue>=0&&(ne=ce[ue].div,!(ne.offsetTop+ne.clientTop+ne.clientHeight<=le));--ue)ae=ue;return ae}function b(ae,ce,fe=!1,ne=!1){const le=ae.scrollTop,ue=le+ae.clientHeight,he=ae.scrollLeft,de=he+ae.clientWidth;function ve(Fe){const _e=Fe.div;return _e.offsetTop+_e.clientTop+_e.clientHeight>le}function me(Fe){const _e=Fe.div;return _e.offsetLeft+_e.clientLeft+_e.clientWidth>he}const Se=[],Ce=ce.length;let xe=Ce===0?0:D(ce,ne?me:ve);xe>0&&xe<Ce&&!ne&&(xe=y(xe,ce,le));let ge=ne?de:-1;for(let Fe=xe;Fe<Ce;Fe++){const _e=ce[Fe],De=_e.div,Be=De.offsetLeft+De.clientLeft,Ee=De.offsetTop+De.clientTop,ke=De.clientWidth,pe=De.clientHeight,be=Be+ke,ye=Ee+pe;if(ge===-1)ye>=ue&&(ge=ye);else if((ne?Be:Ee)>ge)break;if(ye<=le||Ee>=ue||be<=he||Be>=de)continue;const Te=Math.max(0,le-Ee)+Math.max(0,ye-ue),Pe=Math.max(0,he-Be)+Math.max(0,be-de),Le=(pe-Te)*(ke-Pe)*100/pe/ke|0;Se.push({id:_e.id,x:Be,y:Ee,view:_e,percent:Le})}const Ae=Se[0],we=Se[Se.length-1];return fe&&Se.sort(function(Fe,_e){const De=Fe.percent-_e.percent;return Math.abs(De)>.001?-De:Fe.id-_e.id}),{first:Ae,last:we,views:Se}}function C(ae){ae.preventDefault()}function w(ae){let ce=0;const fe=ae.length;for(;ce<fe&&ae[ce].trim()==="";)ce++;return ae.substring(ce,ce+5).toLowerCase()==="data:"}function T(ae,ce="document.pdf"){if(typeof ae!="string")return ce;if(w(ae))return console.warn('getPDFFileNameFromURL: ignoring "data:" URL for performance reasons.'),ce;const fe=/^(?:(?:[^:]+:)?\/\/[^\/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/,ne=/[^\/?#=]+\.pdf\b(?!.*\.pdf\b)/i,le=fe.exec(ae);let ue=ne.exec(le[1])||ne.exec(le[2])||ne.exec(le[3]);if(ue&&(ue=ue[0],ue.includes("%")))try{ue=ne.exec(decodeURIComponent(ue))[0]}catch{}return ue||ce}function B(ae){let ce=Math.sqrt(ae.deltaX*ae.deltaX+ae.deltaY*ae.deltaY);const fe=Math.atan2(ae.deltaY,ae.deltaX);-.25*Math.PI<fe&&fe<.75*Math.PI&&(ce=-ce);const ne=0,le=1,ue=30,he=30;return ae.deltaMode===ne?ce/=ue*he:ae.deltaMode===le&&(ce/=he),ce}function N(ae){return Number.isInteger(ae)&&ae%90===0}function Q(ae){return Number.isInteger(ae)&&Object.values(U).includes(ae)&&ae!==U.UNKNOWN}function z(ae){return Number.isInteger(ae)&&Object.values(X).includes(ae)&&ae!==X.UNKNOWN}function j(ae){return ae.width<=ae.height}const $={EVENT:"event",TIMEOUT:"timeout"};d.WaitOnType=$;function M({target:ae,name:ce,delay:fe=0}){return new Promise(function(ne,le){if(typeof ae!="object"||!(ce&&typeof ce=="string")||!(Number.isInteger(fe)&&fe>=0))throw new Error("waitOnEventOrTimeout - invalid parameters.");function ue(me){ae instanceof K?ae._off(ce,he):ae.removeEventListener(ce,he),ve&&clearTimeout(ve),ne(me)}const he=ue.bind(null,$.EVENT);ae instanceof K?ae._on(ce,he):ae.addEventListener(ce,he);const de=ue.bind(null,$.TIMEOUT),ve=setTimeout(de,fe)})}const q=new Promise(function(ae){window.requestAnimationFrame(ae)});d.animationStarted=q;class K{constructor(ce){this._listeners=Object.create(null)}on(ce,fe){this._on(ce,fe,{external:!0})}off(ce,fe){this._off(ce,fe,{external:!0})}dispatch(ce){const fe=this._listeners[ce];if(!fe||fe.length===0)return;const ne=Array.prototype.slice.call(arguments,1);let le;fe.slice(0).forEach(function({listener:ue,external:he}){if(he){le||(le=[]),le.push(ue);return}ue.apply(null,ne)}),le&&(le.forEach(function(ue){ue.apply(null,ne)}),le=null)}_on(ce,fe,ne=null){let le=this._listeners[ce];le||(this._listeners[ce]=le=[]),le.push({listener:fe,external:(ne&&ne.external)===!0})}_off(ce,fe,ne=null){const le=this._listeners[ce];if(!!le){for(let ue=0,he=le.length;ue<he;ue++)if(le[ue].listener===fe){le.splice(ue,1);return}}}}d.EventBus=K;function Z(ae,ce,fe){return Math.min(Math.max(ae,ce),fe)}class te{constructor(ce,{height:fe,width:ne,units:le}={}){this.visible=!0,this.div=document.querySelector(ce+" .progress"),this.bar=this.div.parentNode,this.height=fe||100,this.width=ne||100,this.units=le||"%",this.div.style.height=this.height+this.units,this.percent=0}_updateBar(){if(this._indeterminate){this.div.classList.add("indeterminate"),this.div.style.width=this.width+this.units;return}this.div.classList.remove("indeterminate");const ce=this.width*this._percent/100;this.div.style.width=ce+this.units}get percent(){return this._percent}set percent(ce){this._indeterminate=isNaN(ce),this._percent=Z(ce,0,100),this._updateBar()}setWidth(ce){if(!ce)return;const ne=ce.parentNode.offsetWidth-ce.offsetWidth;ne>0&&(this.bar.style.width=`calc(100% - ${ne}px)`)}hide(){!this.visible||(this.visible=!1,this.bar.classList.add("hidden"),document.body.classList.remove("loadingInProgress"))}show(){this.visible||(this.visible=!0,document.body.classList.add("loadingInProgress"),this.bar.classList.remove("hidden"))}}d.ProgressBar=te;function oe(ae,ce){const fe=[],ne=ae.length;let le=0;for(let ue=0;ue<ne;++ue)ce(ae[ue])?fe.push(ae[ue]):(ae[le]=ae[ue],++le);for(let ue=0;le<ne;++ue,++le)ae[le]=fe[ue]}},function(S,d,R){Object.defineProperty(d,"__esModule",{value:!0}),d.SimpleLinkService=d.PDFLinkService=void 0;var g=R(3);class O{constructor({eventBus:H,externalLinkTarget:ee=null,externalLinkRel:ie=null,externalLinkEnabled:m=!0,ignoreDestinationZoom:u=!1}={}){this.eventBus=H,this.externalLinkTarget=ee,this.externalLinkRel=ie,this.externalLinkEnabled=m,this._ignoreDestinationZoom=u,this.baseUrl=null,this.pdfDocument=null,this.pdfViewer=null,this.pdfHistory=null,this._pagesRefCache=null}setDocument(H,ee=null){this.baseUrl=ee,this.pdfDocument=H,this._pagesRefCache=Object.create(null)}setViewer(H){this.pdfViewer=H}setHistory(H){this.pdfHistory=H}get pagesCount(){return this.pdfDocument?this.pdfDocument.numPages:0}get page(){return this.pdfViewer.currentPageNumber}set page(H){this.pdfViewer.currentPageNumber=H}get rotation(){return this.pdfViewer.pagesRotation}set rotation(H){this.pdfViewer.pagesRotation=H}navigateTo(H){const ee=({namedDest:ie,explicitDest:m})=>{const u=m[0];let Y;if(u instanceof Object){if(Y=this._cachedPageNumber(u),Y===null){this.pdfDocument.getPageIndex(u).then(re=>{this.cachePageRef(re+1,u),ee({namedDest:ie,explicitDest:m})}).catch(()=>{console.error(`PDFLinkService.navigateTo: "${u}" is not a valid page reference, for dest="${H}".`)});return}}else if(Number.isInteger(u))Y=u+1;else{console.error(`PDFLinkService.navigateTo: "${u}" is not a valid destination reference, for dest="${H}".`);return}if(!Y||Y<1||Y>this.pagesCount){console.error(`PDFLinkService.navigateTo: "${Y}" is not a valid page number, for dest="${H}".`);return}this.pdfHistory&&(this.pdfHistory.pushCurrentPosition(),this.pdfHistory.push({namedDest:ie,explicitDest:m,pageNumber:Y})),this.pdfViewer.scrollPageIntoView({pageNumber:Y,destArray:m,ignoreDestinationZoom:this._ignoreDestinationZoom})};new Promise((ie,m)=>{if(typeof H=="string"){this.pdfDocument.getDestination(H).then(u=>{ie({namedDest:H,explicitDest:u})});return}ie({namedDest:"",explicitDest:H})}).then(ie=>{if(!Array.isArray(ie.explicitDest)){console.error(`PDFLinkService.navigateTo: "${ie.explicitDest}" is not a valid destination array, for dest="${H}".`);return}ee(ie)})}getDestinationHash(H){if(typeof H=="string")return this.getAnchorUrl("#"+escape(H));if(Array.isArray(H)){const ee=JSON.stringify(H);return this.getAnchorUrl("#"+escape(ee))}return this.getAnchorUrl("")}getAnchorUrl(H){return(this.baseUrl||"")+H}setHash(H){let ee,ie;if(H.includes("=")){const m=(0,g.parseQueryString)(H);if("search"in m&&this.eventBus.dispatch("findfromurlhash",{source:this,query:m.search.replace(/"/g,""),phraseSearch:m.phrase==="true"}),"page"in m&&(ee=m.page|0||1),"zoom"in m){const u=m.zoom.split(","),Y=u[0],re=parseFloat(Y);Y.includes("Fit")?Y==="Fit"||Y==="FitB"?ie=[null,{name:Y}]:Y==="FitH"||Y==="FitBH"||Y==="FitV"||Y==="FitBV"?ie=[null,{name:Y},u.length>1?u[1]|0:null]:Y==="FitR"?u.length!==5?console.error('PDFLinkService.setHash: Not enough parameters for "FitR".'):ie=[null,{name:Y},u[1]|0,u[2]|0,u[3]|0,u[4]|0]:console.error(`PDFLinkService.setHash: "${Y}" is not a valid zoom value.`):ie=[null,{name:"XYZ"},u.length>1?u[1]|0:null,u.length>2?u[2]|0:null,re?re/100:Y]}ie?this.pdfViewer.scrollPageIntoView({pageNumber:ee||this.page,destArray:ie,allowNegativeOffset:!0}):ee&&(this.page=ee),"pagemode"in m&&this.eventBus.dispatch("pagemode",{source:this,mode:m.pagemode}),"nameddest"in m&&this.navigateTo(m.nameddest)}else{ie=unescape(H);try{ie=JSON.parse(ie),Array.isArray(ie)||(ie=ie.toString())}catch{}if(typeof ie=="string"||J(ie)){this.navigateTo(ie);return}console.error(`PDFLinkService.setHash: "${unescape(H)}" is not a valid destination.`)}}executeNamedAction(H){switch(H){case"GoBack":this.pdfHistory&&this.pdfHistory.back();break;case"GoForward":this.pdfHistory&&this.pdfHistory.forward();break;case"NextPage":this.page<this.pagesCount&&this.page++;break;case"PrevPage":this.page>1&&this.page--;break;case"LastPage":this.page=this.pagesCount;break;case"FirstPage":this.page=1;break}this.eventBus.dispatch("namedaction",{source:this,action:H})}cachePageRef(H,ee){if(!ee)return;const ie=ee.gen===0?`${ee.num}R`:`${ee.num}R${ee.gen}`;this._pagesRefCache[ie]=H}_cachedPageNumber(H){const ee=H.gen===0?`${H.num}R`:`${H.num}R${H.gen}`;return this._pagesRefCache&&this._pagesRefCache[ee]||null}isPageVisible(H){return this.pdfViewer.isPageVisible(H)}}d.PDFLinkService=O;function J(se){if(!Array.isArray(se))return!1;const H=se.length;if(H<2)return!1;const ee=se[0];if(!(typeof ee=="object"&&Number.isInteger(ee.num)&&Number.isInteger(ee.gen))&&!(Number.isInteger(ee)&&ee>=0))return!1;const ie=se[1];if(!(typeof ie=="object"&&typeof ie.name=="string"))return!1;let m=!0;switch(ie.name){case"XYZ":if(H!==5)return!1;break;case"Fit":case"FitB":return H===2;case"FitH":case"FitBH":case"FitV":case"FitBV":if(H!==3)return!1;break;case"FitR":if(H!==6)return!1;m=!1;break;default:return!1}for(let u=2;u<H;u++){const Y=se[u];if(!(typeof Y=="number"||m&&Y===null))return!1}return!0}class a{constructor(){this.externalLinkTarget=null,this.externalLinkRel=null,this.externalLinkEnabled=!0,this._ignoreDestinationZoom=!1}get pagesCount(){return 0}get page(){return 0}set page(H){}get rotation(){return 0}set rotation(H){}navigateTo(H){}getDestinationHash(H){return"#"}getAnchorUrl(H){return"#"}setHash(H){}executeNamedAction(H){}cachePageRef(H,ee){}isPageVisible(H){return!0}}d.SimpleLinkService=a},function(S,d,R){Object.defineProperty(d,"__esModule",{value:!0}),d.DefaultTextLayerFactory=d.TextLayerBuilder=void 0;var g=R(2);const O=300;class J{constructor({textLayerDiv:H,eventBus:ee,pageIndex:ie,viewport:m,findController:u=null,enhanceTextSelection:Y=!1}){this.textLayerDiv=H,this.eventBus=ee,this.textContent=null,this.textContentItemsStr=[],this.textContentStream=null,this.renderingDone=!1,this.pageIdx=ie,this.pageNumber=this.pageIdx+1,this.matches=[],this.viewport=m,this.textDivs=[],this.findController=u,this.textLayerRenderTask=null,this.enhanceTextSelection=Y,this._onUpdateTextLayerMatches=null,this._bindMouse()}_finishRendering(){if(this.renderingDone=!0,!this.enhanceTextSelection){const H=document.createElement("div");H.className="endOfContent",this.textLayerDiv.appendChild(H)}this.eventBus.dispatch("textlayerrendered",{source:this,pageNumber:this.pageNumber,numTextDivs:this.textDivs.length})}render(H=0){if(!(this.textContent||this.textContentStream)||this.renderingDone)return;this.cancel(),this.textDivs=[];const ee=document.createDocumentFragment();this.textLayerRenderTask=(0,g.renderTextLayer)({textContent:this.textContent,textContentStream:this.textContentStream,container:ee,viewport:this.viewport,textDivs:this.textDivs,textContentItemsStr:this.textContentItemsStr,timeout:H,enhanceTextSelection:this.enhanceTextSelection}),this.textLayerRenderTask.promise.then(()=>{this.textLayerDiv.appendChild(ee),this._finishRendering(),this._updateMatches()},function(ie){}),this._onUpdateTextLayerMatches||(this._onUpdateTextLayerMatches=ie=>{(ie.pageIndex===this.pageIdx||ie.pageIndex===-1)&&this._updateMatches()},this.eventBus._on("updatetextlayermatches",this._onUpdateTextLayerMatches))}cancel(){this.textLayerRenderTask&&(this.textLayerRenderTask.cancel(),this.textLayerRenderTask=null),this._onUpdateTextLayerMatches&&(this.eventBus._off("updatetextlayermatches",this._onUpdateTextLayerMatches),this._onUpdateTextLayerMatches=null)}setTextContentStream(H){this.cancel(),this.textContentStream=H}setTextContent(H){this.cancel(),this.textContent=H}_convertMatches(H,ee){if(!H)return[];const{findController:ie,textContentItemsStr:m}=this;let u=0,Y=0;const re=m.length-1,U=ie.state.query.length,X=[];for(let W=0,G=H.length;W<G;W++){let P=H[W];for(;u!==re&&P>=Y+m[u].length;)Y+=m[u].length,u++;u===m.length&&console.error("Could not find a matching mapping");const E={begin:{divIdx:u,offset:P-Y}};for(ee?P+=ee[W]:P+=U;u!==re&&P>Y+m[u].length;)Y+=m[u].length,u++;E.end={divIdx:u,offset:P-Y},X.push(E)}return X}_renderMatches(H){if(H.length===0)return;const{findController:ee,pageIdx:ie,textContentItemsStr:m,textDivs:u}=this,Y=ie===ee.selected.pageIdx,re=ee.selected.matchIdx,U=ee.state.highlightAll;let X=null;const W={divIdx:-1,offset:void 0};function G(_,F){const D=_.divIdx;u[D].textContent="",P(D,0,_.offset,F)}function P(_,F,D,L){const k=u[_],v=m[_].substring(F,D),y=document.createTextNode(v);if(L){const b=document.createElement("span");b.className=L,b.appendChild(y),k.appendChild(b);return}k.appendChild(y)}let E=re,A=E+1;if(U)E=0,A=H.length;else if(!Y)return;for(let _=E;_<A;_++){const F=H[_],D=F.begin,L=F.end,k=Y&&_===re,v=k?" selected":"";if(k&&ee.scrollMatchIntoView({element:u[D.divIdx],pageIndex:ie,matchIndex:re}),!X||D.divIdx!==X.divIdx?(X!==null&&P(X.divIdx,X.offset,W.offset),G(D)):P(X.divIdx,X.offset,D.offset),D.divIdx===L.divIdx)P(D.divIdx,D.offset,L.offset,"highlight"+v);else{P(D.divIdx,D.offset,W.offset,"highlight begin"+v);for(let y=D.divIdx+1,b=L.divIdx;y<b;y++)u[y].className="highlight middle"+v;G(L,"highlight end"+v)}X=L}X&&P(X.divIdx,X.offset,W.offset)}_updateMatches(){if(!this.renderingDone)return;const{findController:H,matches:ee,pageIdx:ie,textContentItemsStr:m,textDivs:u}=this;let Y=-1;for(let X=0,W=ee.length;X<W;X++){const G=ee[X],P=Math.max(Y,G.begin.divIdx);for(let E=P,A=G.end.divIdx;E<=A;E++){const _=u[E];_.textContent=m[E],_.className=""}Y=G.end.divIdx+1}if(!H||!H.highlightMatches)return;const re=H.pageMatches[ie]||null,U=H.pageMatchesLength[ie]||null;this.matches=this._convertMatches(re,U),this._renderMatches(this.matches)}_bindMouse(){const H=this.textLayerDiv;let ee=null;H.addEventListener("mousedown",ie=>{if(this.enhanceTextSelection&&this.textLayerRenderTask){this.textLayerRenderTask.expandTextDivs(!0),ee&&(clearTimeout(ee),ee=null);return}const m=H.querySelector(".endOfContent");if(!m)return;let u=ie.target!==H;if(u=u&&window.getComputedStyle(m).getPropertyValue("-moz-user-select")!=="none",u){const Y=H.getBoundingClientRect(),re=Math.max(0,(ie.pageY-Y.top)/Y.height);m.style.top=(re*100).toFixed(2)+"%"}m.classList.add("active")}),H.addEventListener("mouseup",()=>{if(this.enhanceTextSelection&&this.textLayerRenderTask){ee=setTimeout(()=>{this.textLayerRenderTask&&this.textLayerRenderTask.expandTextDivs(!1),ee=null},O);return}const ie=H.querySelector(".endOfContent");!ie||(ie.style.top="",ie.classList.remove("active"))})}}d.TextLayerBuilder=J;class a{createTextLayerBuilder(H,ee,ie,m=!1,u){return new J({textLayerDiv:H,pageIndex:ee,viewport:ie,enhanceTextSelection:m,eventBus:u})}}d.DefaultTextLayerFactory=a},function(S,d,R){Object.defineProperty(d,"__esModule",{value:!0}),d.DownloadManager=void 0;var g=R(2),O=R(7);const J=O.viewerCompatibilityParams.disableCreateObjectURL||!1;function a(H,ee){const ie=document.createElement("a");if(!ie.click)throw new Error('DownloadManager: "a.click()" is not supported.');ie.href=H,ie.target="_parent","download"in ie&&(ie.download=ee),(document.body||document.documentElement).appendChild(ie),ie.click(),ie.remove()}class se{constructor({disableCreateObjectURL:ee=J}){this.disableCreateObjectURL=ee}downloadUrl(ee,ie){!(0,g.createValidAbsoluteUrl)(ee,"http://example.com")||a(ee+"#pdfjs.action=download",ie)}downloadData(ee,ie,m){if(navigator.msSaveBlob){navigator.msSaveBlob(new Blob([ee],{type:m}),ie);return}const u=(0,g.createObjectURL)(ee,m,this.disableCreateObjectURL);a(u,ie)}download(ee,ie,m){if(navigator.msSaveBlob){navigator.msSaveBlob(ee,m)||this.downloadUrl(ie,m);return}if(this.disableCreateObjectURL){this.downloadUrl(ie,m);return}const u=URL.createObjectURL(ee);a(u,m)}}d.DownloadManager=se},function(S,d,R){Object.defineProperty(d,"__esModule",{value:!0}),d.viewerCompatibilityParams=void 0;const g=Object.create(null);{const J=typeof navigator!="undefined"&&navigator.userAgent||"",a=typeof navigator!="undefined"&&navigator.platform||"",se=typeof navigator!="undefined"&&navigator.maxTouchPoints||1,H=/Android/.test(J),ee=/Trident/.test(J),ie=/\b(iPad|iPhone|iPod)(?=;)/.test(J)||a==="MacIntel"&&se>1,m=/CriOS/.test(J);(function(){(ee||m)&&(g.disableCreateObjectURL=!0)})(),function(){(ie||H)&&(g.maxCanvasPixels=5242880)}()}const O=Object.freeze(g);d.viewerCompatibilityParams=O},function(S,d,R){Object.defineProperty(d,"__esModule",{value:!0}),d.GenericL10n=void 0,R(9);const g=document.webL10n;class O{constructor(a){this._lang=a,this._ready=new Promise((se,H)=>{g.setLanguage(a,()=>{se(g)})})}async getLanguage(){return(await this._ready).getLanguage()}async getDirection(){return(await this._ready).getDirection()}async get(a,se,H){return(await this._ready).get(a,se,H)}async translate(a){return(await this._ready).translate(a)}}d.GenericL10n=O},function(S,d,R){document.webL10n=function(g,O,J){var a={},se="",H="textContent",ee="",ie={},m="loading",u=!0;function Y(){return O.querySelectorAll('link[type="application/l10n"]')}function re(){var y=O.querySelector('script[type="application/l10n"]');return y?JSON.parse(y.innerHTML):null}function U(y){return y?y.querySelectorAll("*[data-l10n-id]"):[]}function X(y){if(!y)return{};var b=y.getAttribute("data-l10n-id"),C=y.getAttribute("data-l10n-args"),w={};if(C)try{w=JSON.parse(C)}catch{console.warn("could not parse arguments for #"+b)}return{id:b,args:w}}function W(y,b,C){b=b||function(B){},C=C||function(){};var w=new XMLHttpRequest;w.open("GET",y,u),w.overrideMimeType&&w.overrideMimeType("text/plain; charset=utf-8"),w.onreadystatechange=function(){w.readyState==4&&(w.status==200||w.status===0?b(w.responseText):C())},w.onerror=C,w.ontimeout=C;try{w.send(null)}catch{C()}}function G(y,b,C,w){var T=y.replace(/[^\/]*$/,"")||"./";function B(Q){return Q.lastIndexOf("\\")<0?Q:Q.replace(/\\\\/g,"\\").replace(/\\n/g,`
56
- `).replace(/\\r/g,"\r").replace(/\\t/g," ").replace(/\\b/g,"\b").replace(/\\f/g,"\f").replace(/\\{/g,"{").replace(/\\}/g,"}").replace(/\\"/g,'"').replace(/\\'/g,"'")}function N(Q,z){var j={},$=/^\s*|\s*$/,M=/^\s*#|^\s*$/,q=/^\s*\[(.*)\]\s*$/,K=/^\s*@import\s+url\((.*)\)\s*$/i,Z=/^([^=\s]*)\s*=\s*(.+)$/;function te(ae,ce,fe){var ne=ae.replace($,"").split(/[\r\n]+/),le="*",ue=b.split("-",1)[0],he=!1,de="";function ve(){for(;;){if(!ne.length){fe();return}var me=ne.shift();if(!M.test(me)){if(ce){if(de=q.exec(me),de){le=de[1].toLowerCase(),he=le!=="*"&&le!==b&&le!==ue;continue}else if(he)continue;if(de=K.exec(me),de){oe(T+de[1],ve);return}}var Se=me.match(Z);Se&&Se.length==3&&(j[Se[1]]=B(Se[2]))}}}ve()}function oe(ae,ce){W(ae,function(fe){te(fe,!1,ce)},function(){console.warn(ae+" not found."),ce()})}te(Q,!0,function(){z(j)})}W(y,function(Q){se+=Q,N(Q,function(z){for(var j in z){var $,M,q=j.lastIndexOf(".");q>0?($=j.substring(0,q),M=j.substring(q+1)):($=j,M=H),a[$]||(a[$]={}),a[$][M]=z[j]}C&&C()})},w)}function P(y,b){y&&(y=y.toLowerCase()),b=b||function(){},E(),ee=y;var C=Y(),w=C.length;if(w===0){var T=re();if(T&&T.locales&&T.default_locale){if(console.log("using the embedded JSON directory, early way out"),a=T.locales[y],!a){var B=T.default_locale.toLowerCase();for(var N in T.locales)if(N=N.toLowerCase(),N===y){a=T.locales[y];break}else N===B&&(a=T.locales[B])}b()}else console.log("no resource to load, early way out");m="complete";return}var Q=null,z=0;Q=function(){z++,z>=w&&(b(),m="complete")};function j(q){var K=q.href;this.load=function(Z,te){G(K,Z,te,function(){console.warn(K+" not found."),console.warn('"'+Z+'" resource not found'),ee="",te()})}}for(var $=0;$<w;$++){var M=new j(C[$]);M.load(y,Q)}}function E(){a={},se="",ee=""}function A(y){var b={af:3,ak:4,am:4,ar:1,asa:3,az:0,be:11,bem:3,bez:3,bg:3,bh:4,bm:0,bn:3,bo:0,br:20,brx:3,bs:11,ca:3,cgg:3,chr:3,cs:12,cy:17,da:3,de:3,dv:3,dz:0,ee:3,el:3,en:3,eo:3,es:3,et:3,eu:3,fa:0,ff:5,fi:3,fil:4,fo:3,fr:5,fur:3,fy:3,ga:8,gd:24,gl:3,gsw:3,gu:3,guw:4,gv:23,ha:3,haw:3,he:2,hi:4,hr:11,hu:0,id:0,ig:0,ii:0,is:3,it:3,iu:7,ja:0,jmc:3,jv:0,ka:0,kab:5,kaj:3,kcg:3,kde:0,kea:0,kk:3,kl:3,km:0,kn:0,ko:0,ksb:3,ksh:21,ku:3,kw:7,lag:18,lb:3,lg:3,ln:4,lo:0,lt:10,lv:6,mas:3,mg:4,mk:16,ml:3,mn:3,mo:9,mr:3,ms:0,mt:15,my:0,nah:3,naq:7,nb:3,nd:3,ne:3,nl:3,nn:3,no:3,nr:3,nso:4,ny:3,nyn:3,om:3,or:3,pa:3,pap:3,pl:13,ps:3,pt:3,rm:3,ro:9,rof:3,ru:11,rwk:3,sah:0,saq:3,se:7,seh:3,ses:0,sg:0,sh:11,shi:19,sk:12,sl:14,sma:7,smi:7,smj:7,smn:7,sms:7,sn:3,so:3,sq:3,sr:11,ss:3,ssy:3,st:3,sv:3,sw:3,syr:3,ta:3,te:3,teo:3,th:0,ti:4,tig:3,tk:3,tl:4,tn:3,to:0,tr:0,ts:3,tzm:22,uk:11,ur:3,ve:3,vi:0,vun:3,wa:4,wae:3,wo:0,xh:3,xog:3,yo:0,zh:0,zu:3};function C(N,Q){return Q.indexOf(N)!==-1}function w(N,Q,z){return Q<=N&&N<=z}var T={0:function(N){return"other"},1:function(N){return w(N%100,3,10)?"few":N===0?"zero":w(N%100,11,99)?"many":N==2?"two":N==1?"one":"other"},2:function(N){return N!==0&&N%10===0?"many":N==2?"two":N==1?"one":"other"},3:function(N){return N==1?"one":"other"},4:function(N){return w(N,0,1)?"one":"other"},5:function(N){return w(N,0,2)&&N!=2?"one":"other"},6:function(N){return N===0?"zero":N%10==1&&N%100!=11?"one":"other"},7:function(N){return N==2?"two":N==1?"one":"other"},8:function(N){return w(N,3,6)?"few":w(N,7,10)?"many":N==2?"two":N==1?"one":"other"},9:function(N){return N===0||N!=1&&w(N%100,1,19)?"few":N==1?"one":"other"},10:function(N){return w(N%10,2,9)&&!w(N%100,11,19)?"few":N%10==1&&!w(N%100,11,19)?"one":"other"},11:function(N){return w(N%10,2,4)&&!w(N%100,12,14)?"few":N%10===0||w(N%10,5,9)||w(N%100,11,14)?"many":N%10==1&&N%100!=11?"one":"other"},12:function(N){return w(N,2,4)?"few":N==1?"one":"other"},13:function(N){return w(N%10,2,4)&&!w(N%100,12,14)?"few":N!=1&&w(N%10,0,1)||w(N%10,5,9)||w(N%100,12,14)?"many":N==1?"one":"other"},14:function(N){return w(N%100,3,4)?"few":N%100==2?"two":N%100==1?"one":"other"},15:function(N){return N===0||w(N%100,2,10)?"few":w(N%100,11,19)?"many":N==1?"one":"other"},16:function(N){return N%10==1&&N!=11?"one":"other"},17:function(N){return N==3?"few":N===0?"zero":N==6?"many":N==2?"two":N==1?"one":"other"},18:function(N){return N===0?"zero":w(N,0,2)&&N!==0&&N!=2?"one":"other"},19:function(N){return w(N,2,10)?"few":w(N,0,1)?"one":"other"},20:function(N){return(w(N%10,3,4)||N%10==9)&&!(w(N%100,10,19)||w(N%100,70,79)||w(N%100,90,99))?"few":N%1e6===0&&N!==0?"many":N%10==2&&!C(N%100,[12,72,92])?"two":N%10==1&&!C(N%100,[11,71,91])?"one":"other"},21:function(N){return N===0?"zero":N==1?"one":"other"},22:function(N){return w(N,0,1)||w(N,11,99)?"one":"other"},23:function(N){return w(N%10,1,2)||N%20===0?"one":"other"},24:function(N){return w(N,3,10)||w(N,13,19)?"few":C(N,[2,12])?"two":C(N,[1,11])?"one":"other"}},B=b[y.replace(/-.*$/,"")];return B in T?T[B]:(console.warn("plural form unknown for ["+y+"]"),function(){return"other"})}ie.plural=function(y,b,C,w){var T=parseFloat(b);if(isNaN(T)||w!=H)return y;ie._pluralRules||(ie._pluralRules=A(ee));var B="["+ie._pluralRules(T)+"]";return T===0&&C+"[zero]"in a?y=a[C+"[zero]"][w]:T==1&&C+"[one]"in a?y=a[C+"[one]"][w]:T==2&&C+"[two]"in a?y=a[C+"[two]"][w]:C+B in a?y=a[C+B][w]:C+"[other]"in a&&(y=a[C+"[other]"][w]),y};function _(y,b,C){var w=a[y];if(!w){if(console.warn("#"+y+" is undefined."),!C)return null;w=C}var T={};for(var B in w){var N=w[B];N=F(N,b,y,B),N=D(N,b,y),T[B]=N}return T}function F(y,b,C,w){var T=/\{\[\s*([a-zA-Z]+)\(([a-zA-Z]+)\)\s*\]\}/,B=T.exec(y);if(!B||!B.length)return y;var N=B[1],Q=B[2],z;if(b&&Q in b?z=b[Q]:Q in a&&(z=a[Q]),N in ie){var j=ie[N];y=j(y,z,C,w)}return y}function D(y,b,C){var w=/\{\{\s*(.+?)\s*\}\}/g;return y.replace(w,function(T,B){return b&&B in b?b[B]:B in a?a[B]:(console.log("argument {{"+B+"}} for #"+C+" is undefined."),T)})}function L(y){var b=X(y);if(!!b.id){var C=_(b.id,b.args);if(!C){console.warn("#"+b.id+" is undefined.");return}if(C[H]){if(k(y)===0)y[H]=C[H];else{for(var w=y.childNodes,T=!1,B=0,N=w.length;B<N;B++)w[B].nodeType===3&&/\S/.test(w[B].nodeValue)&&(T?w[B].nodeValue="":(w[B].nodeValue=C[H],T=!0));if(!T){var Q=O.createTextNode(C[H]);y.insertBefore(Q,y.firstChild)}}delete C[H]}for(var z in C)y[z]=C[z]}}function k(y){if(y.children)return y.children.length;if(typeof y.childElementCount!="undefined")return y.childElementCount;for(var b=0,C=0;C<y.childNodes.length;C++)b+=y.nodeType===1?1:0;return b}function v(y){y=y||O.documentElement;for(var b=U(y),C=b.length,w=0;w<C;w++)L(b[w]);L(y)}return{get:function(y,b,C){var w=y.lastIndexOf("."),T=H;w>0&&(T=y.substring(w+1),y=y.substring(0,w));var B;C&&(B={},B[T]=C);var N=_(y,b,B);return N&&T in N?N[T]:"{{"+y+"}}"},getData:function(){return a},getText:function(){return se},getLanguage:function(){return ee},setLanguage:function(y,b){P(y,function(){b&&b()})},getDirection:function(){var y=["ar","he","fa","ps","ur"],b=ee.split("-",1)[0];return y.indexOf(b)>=0?"rtl":"ltr"},translate:v,getReadyState:function(){return m},ready:function(y){if(y)m=="complete"||m=="interactive"?g.setTimeout(function(){y()}):O.addEventListener&&O.addEventListener("localized",function b(){O.removeEventListener("localized",b),y()});else return}}}(window,document)},function(S,d,R){Object.defineProperty(d,"__esModule",{value:!0}),d.PDFFindController=d.FindState=void 0;var g=R(2),O=R(11),J=R(3);const a={FOUND:0,NOT_FOUND:1,WRAPPED:2,PENDING:3};d.FindState=a;const se=250,H=-50,ee=-400,ie={"\u2018":"'","\u2019":"'","\u201A":"'","\u201B":"'","\u201C":'"',"\u201D":'"',"\u201E":'"',"\u201F":'"',"\xBC":"1/4","\xBD":"1/2","\xBE":"3/4"};let m=null;function u(re){if(!m){const U=Object.keys(ie).join("");m=new RegExp(`[${U}]`,"g")}return re.replace(m,function(U){return ie[U]})}class Y{constructor({linkService:U,eventBus:X}){this._linkService=U,this._eventBus=X,this._reset(),X._on("findbarclose",this._onFindBarClose.bind(this))}get highlightMatches(){return this._highlightMatches}get pageMatches(){return this._pageMatches}get pageMatchesLength(){return this._pageMatchesLength}get selected(){return this._selected}get state(){return this._state}setDocument(U){this._pdfDocument&&this._reset(),U&&(this._pdfDocument=U,this._firstPageCapability.resolve())}executeCommand(U,X){if(!X)return;const W=this._pdfDocument;(this._state===null||this._shouldDirtyMatch(U,X))&&(this._dirtyMatch=!0),this._state=X,U!=="findhighlightallchange"&&this._updateUIState(a.PENDING),this._firstPageCapability.promise.then(()=>{if(!this._pdfDocument||W&&this._pdfDocument!==W)return;this._extractText();const G=!this._highlightMatches,P=!!this._findTimeout;this._findTimeout&&(clearTimeout(this._findTimeout),this._findTimeout=null),U==="find"?this._findTimeout=setTimeout(()=>{this._nextMatch(),this._findTimeout=null},se):this._dirtyMatch?this._nextMatch():U==="findagain"?(this._nextMatch(),G&&this._state.highlightAll&&this._updateAllPages()):U==="findhighlightallchange"?(P?this._nextMatch():this._highlightMatches=!0,this._updateAllPages()):this._nextMatch()})}scrollMatchIntoView({element:U=null,pageIndex:X=-1,matchIndex:W=-1}){if(!this._scrollMatches||!U)return;if(W===-1||W!==this._selected.matchIdx)return;if(X===-1||X!==this._selected.pageIdx)return;this._scrollMatches=!1;const G={top:H,left:ee};(0,J.scrollIntoView)(U,G,!0)}_reset(){this._highlightMatches=!1,this._scrollMatches=!1,this._pdfDocument=null,this._pageMatches=[],this._pageMatchesLength=[],this._state=null,this._selected={pageIdx:-1,matchIdx:-1},this._offset={pageIdx:null,matchIdx:null,wrapped:!1},this._extractTextPromises=[],this._pageContents=[],this._matchesCountTotal=0,this._pagesToSearch=null,this._pendingFindMatches=Object.create(null),this._resumePageIdx=null,this._dirtyMatch=!1,clearTimeout(this._findTimeout),this._findTimeout=null,this._firstPageCapability=(0,g.createPromiseCapability)()}get _query(){return this._state.query!==this._rawQuery&&(this._rawQuery=this._state.query,this._normalizedQuery=u(this._state.query)),this._normalizedQuery}_shouldDirtyMatch(U,X){if(X.query!==this._state.query)return!0;switch(U){case"findagain":const W=this._selected.pageIdx+1,G=this._linkService;return W>=1&&W<=G.pagesCount&&W!==G.page&&!G.isPageVisible(W);case"findhighlightallchange":return!1}return!0}_prepareMatches(U,X,W){function G(P){const E=U[P],A=U[P+1];if(P<U.length-1&&E.match===A.match)return E.skipped=!0,!0;for(let _=P-1;_>=0;_--){const F=U[_];if(!F.skipped){if(F.match+F.matchLength<E.match)break;if(F.match+F.matchLength>=E.match+E.matchLength)return E.skipped=!0,!0}}return!1}U.sort(function(P,E){return P.match===E.match?P.matchLength-E.matchLength:P.match-E.match});for(let P=0,E=U.length;P<E;P++)G(P)||(X.push(U[P].match),W.push(U[P].matchLength))}_isEntireWord(U,X,W){if(X>0){const P=U.charCodeAt(X),E=U.charCodeAt(X-1);if((0,O.getCharacterType)(P)===(0,O.getCharacterType)(E))return!1}const G=X+W-1;if(G<U.length-1){const P=U.charCodeAt(G),E=U.charCodeAt(G+1);if((0,O.getCharacterType)(P)===(0,O.getCharacterType)(E))return!1}return!0}_calculatePhraseMatch(U,X,W,G){const P=[],E=U.length;let A=-E;for(;A=W.indexOf(U,A+E),A!==-1;)G&&!this._isEntireWord(W,A,E)||P.push(A);this._pageMatches[X]=P}_calculateWordMatch(U,X,W,G){const P=[],E=U.match(/\S+/g);for(let A=0,_=E.length;A<_;A++){const F=E[A],D=F.length;let L=-D;for(;L=W.indexOf(F,L+D),L!==-1;)G&&!this._isEntireWord(W,L,D)||P.push({match:L,matchLength:D,skipped:!1})}this._pageMatchesLength[X]=[],this._pageMatches[X]=[],this._prepareMatches(P,this._pageMatches[X],this._pageMatchesLength[X])}_calculateMatch(U){let X=this._pageContents[U],W=this._query;const{caseSensitive:G,entireWord:P,phraseSearch:E}=this._state;if(W.length===0)return;G||(X=X.toLowerCase(),W=W.toLowerCase()),E?this._calculatePhraseMatch(W,U,X,P):this._calculateWordMatch(W,U,X,P),this._state.highlightAll&&this._updatePage(U),this._resumePageIdx===U&&(this._resumePageIdx=null,this._nextPageMatch());const A=this._pageMatches[U].length;A>0&&(this._matchesCountTotal+=A,this._updateUIResultsCount())}_extractText(){if(this._extractTextPromises.length>0)return;let U=Promise.resolve();for(let X=0,W=this._linkService.pagesCount;X<W;X++){const G=(0,g.createPromiseCapability)();this._extractTextPromises[X]=G.promise,U=U.then(()=>this._pdfDocument.getPage(X+1).then(P=>P.getTextContent({normalizeWhitespace:!0})).then(P=>{const E=P.items,A=[];for(let _=0,F=E.length;_<F;_++)A.push(E[_].str);this._pageContents[X]=u(A.join("")),G.resolve(X)},P=>{console.error(`Unable to get text content for page ${X+1}`,P),this._pageContents[X]="",G.resolve(X)}))}}_updatePage(U){this._scrollMatches&&this._selected.pageIdx===U&&(this._linkService.page=U+1),this._eventBus.dispatch("updatetextlayermatches",{source:this,pageIndex:U})}_updateAllPages(){this._eventBus.dispatch("updatetextlayermatches",{source:this,pageIndex:-1})}_nextMatch(){const U=this._state.findPrevious,X=this._linkService.page-1,W=this._linkService.pagesCount;if(this._highlightMatches=!0,this._dirtyMatch){this._dirtyMatch=!1,this._selected.pageIdx=this._selected.matchIdx=-1,this._offset.pageIdx=X,this._offset.matchIdx=null,this._offset.wrapped=!1,this._resumePageIdx=null,this._pageMatches.length=0,this._pageMatchesLength.length=0,this._matchesCountTotal=0,this._updateAllPages();for(let P=0;P<W;P++)this._pendingFindMatches[P]!==!0&&(this._pendingFindMatches[P]=!0,this._extractTextPromises[P].then(E=>{delete this._pendingFindMatches[E],this._calculateMatch(E)}))}if(this._query===""){this._updateUIState(a.FOUND);return}if(this._resumePageIdx)return;const G=this._offset;if(this._pagesToSearch=W,G.matchIdx!==null){const P=this._pageMatches[G.pageIdx].length;if(!U&&G.matchIdx+1<P||U&&G.matchIdx>0){G.matchIdx=U?G.matchIdx-1:G.matchIdx+1,this._updateMatch(!0);return}this._advanceOffsetPage(U)}this._nextPageMatch()}_matchesReady(U){const X=this._offset,W=U.length,G=this._state.findPrevious;return W?(X.matchIdx=G?W-1:0,this._updateMatch(!0),!0):(this._advanceOffsetPage(G),X.wrapped&&(X.matchIdx=null,this._pagesToSearch<0)?(this._updateMatch(!1),!0):!1)}_nextPageMatch(){this._resumePageIdx!==null&&console.error("There can only be one pending page.");let U=null;do{const X=this._offset.pageIdx;if(U=this._pageMatches[X],!U){this._resumePageIdx=X;break}}while(!this._matchesReady(U))}_advanceOffsetPage(U){const X=this._offset,W=this._linkService.pagesCount;X.pageIdx=U?X.pageIdx-1:X.pageIdx+1,X.matchIdx=null,this._pagesToSearch--,(X.pageIdx>=W||X.pageIdx<0)&&(X.pageIdx=U?W-1:0,X.wrapped=!0)}_updateMatch(U=!1){let X=a.NOT_FOUND;const W=this._offset.wrapped;if(this._offset.wrapped=!1,U){const G=this._selected.pageIdx;this._selected.pageIdx=this._offset.pageIdx,this._selected.matchIdx=this._offset.matchIdx,X=W?a.WRAPPED:a.FOUND,G!==-1&&G!==this._selected.pageIdx&&this._updatePage(G)}this._updateUIState(X,this._state.findPrevious),this._selected.pageIdx!==-1&&(this._scrollMatches=!0,this._updatePage(this._selected.pageIdx))}_onFindBarClose(U){const X=this._pdfDocument;this._firstPageCapability.promise.then(()=>{!this._pdfDocument||X&&this._pdfDocument!==X||(this._findTimeout&&(clearTimeout(this._findTimeout),this._findTimeout=null),this._resumePageIdx&&(this._resumePageIdx=null,this._dirtyMatch=!0),this._updateUIState(a.FOUND),this._highlightMatches=!1,this._updateAllPages())})}_requestMatchesCount(){const{pageIdx:U,matchIdx:X}=this._selected;let W=0,G=this._matchesCountTotal;if(X!==-1){for(let P=0;P<U;P++)W+=this._pageMatches[P]&&this._pageMatches[P].length||0;W+=X+1}return(W<1||W>G)&&(W=G=0),{current:W,total:G}}_updateUIResultsCount(){this._eventBus.dispatch("updatefindmatchescount",{source:this,matchesCount:this._requestMatchesCount()})}_updateUIState(U,X){this._eventBus.dispatch("updatefindcontrolstate",{source:this,state:U,previous:X,matchesCount:this._requestMatchesCount()})}}d.PDFFindController=Y},function(S,d,R){Object.defineProperty(d,"__esModule",{value:!0}),d.getCharacterType=re,d.CharacterType=void 0;const g={SPACE:0,ALPHA_LETTER:1,PUNCT:2,HAN_LETTER:3,KATAKANA_LETTER:4,HIRAGANA_LETTER:5,HALFWIDTH_KATAKANA_LETTER:6,THAI_LETTER:7};d.CharacterType=g;function O(U){return U<11904}function J(U){return(U&65408)===0}function a(U){return U>=97&&U<=122||U>=65&&U<=90}function se(U){return U>=48&&U<=57}function H(U){return U===32||U===9||U===13||U===10}function ee(U){return U>=13312&&U<=40959||U>=63744&&U<=64255}function ie(U){return U>=12448&&U<=12543}function m(U){return U>=12352&&U<=12447}function u(U){return U>=65376&&U<=65439}function Y(U){return(U&65408)===3584}function re(U){return O(U)?J(U)?H(U)?g.SPACE:a(U)||se(U)||U===95?g.ALPHA_LETTER:g.PUNCT:Y(U)?g.THAI_LETTER:U===160?g.SPACE:g.ALPHA_LETTER:ee(U)?g.HAN_LETTER:ie(U)?g.KATAKANA_LETTER:m(U)?g.HIRAGANA_LETTER:u(U)?g.HALFWIDTH_KATAKANA_LETTER:g.ALPHA_LETTER}},function(S,d,R){Object.defineProperty(d,"__esModule",{value:!0}),d.isDestHashesEqual=ee,d.isDestArraysEqual=ie,d.PDFHistory=void 0;var g=R(3);const O=1e3,J=50,a=1e3;function se(){return document.location.hash}class H{constructor({linkService:u,eventBus:Y}){this.linkService=u,this.eventBus=Y,this._initialized=!1,this._fingerprint="",this.reset(),this._boundEvents=null,this._isViewerInPresentationMode=!1,this.eventBus._on("presentationmodechanged",re=>{this._isViewerInPresentationMode=re.active||re.switchInProgress}),this.eventBus._on("pagesinit",()=>{this._isPagesLoaded=!1;const re=U=>{this.eventBus._off("pagesloaded",re),this._isPagesLoaded=!!U.pagesCount};this.eventBus._on("pagesloaded",re)})}initialize({fingerprint:u,resetHistory:Y=!1,updateUrl:re=!1}){if(!u||typeof u!="string"){console.error('PDFHistory.initialize: The "fingerprint" must be a non-empty string.');return}this._initialized&&this.reset();const U=this._fingerprint!==""&&this._fingerprint!==u;this._fingerprint=u,this._updateUrl=re===!0,this._initialized=!0,this._bindEvents();const X=window.history.state;if(this._popStateInProgress=!1,this._blockHashChange=0,this._currentHash=se(),this._numPositionUpdates=0,this._uid=this._maxUid=0,this._destination=null,this._position=null,!this._isValidState(X,!0)||Y){const{hash:G,page:P,rotation:E}=this._parseCurrentHash(!0);if(!G||U||Y){this._pushOrReplaceState(null,!0);return}this._pushOrReplaceState({hash:G,page:P,rotation:E},!0);return}const W=X.destination;this._updateInternalState(W,X.uid,!0),this._uid>this._maxUid&&(this._maxUid=this._uid),W.rotation!==void 0&&(this._initialRotation=W.rotation),W.dest?(this._initialBookmark=JSON.stringify(W.dest),this._destination.page=null):W.hash?this._initialBookmark=W.hash:W.page&&(this._initialBookmark=`page=${W.page}`)}reset(){this._initialized&&(this._pageHide(),this._initialized=!1,this._unbindEvents()),this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),this._initialBookmark=null,this._initialRotation=null}push({namedDest:u=null,explicitDest:Y,pageNumber:re}){if(!this._initialized)return;if(u&&typeof u!="string"){console.error(`PDFHistory.push: "${u}" is not a valid namedDest parameter.`);return}else if(Array.isArray(Y)){if(!(Number.isInteger(re)&&re>0&&re<=this.linkService.pagesCount)&&(re!==null||this._destination)){console.error(`PDFHistory.push: "${re}" is not a valid pageNumber parameter.`);return}}else{console.error(`PDFHistory.push: "${Y}" is not a valid explicitDest parameter.`);return}const U=u||JSON.stringify(Y);if(!U)return;let X=!1;if(this._destination&&(ee(this._destination.hash,U)||ie(this._destination.dest,Y))){if(this._destination.page)return;X=!0}this._popStateInProgress&&!X||(this._pushOrReplaceState({dest:Y,hash:U,page:re,rotation:this.linkService.rotation},X),this._popStateInProgress||(this._popStateInProgress=!0,Promise.resolve().then(()=>{this._popStateInProgress=!1})))}pushCurrentPosition(){!this._initialized||this._popStateInProgress||this._tryPushCurrentPosition()}back(){if(!this._initialized||this._popStateInProgress)return;const u=window.history.state;this._isValidState(u)&&u.uid>0&&window.history.back()}forward(){if(!this._initialized||this._popStateInProgress)return;const u=window.history.state;this._isValidState(u)&&u.uid<this._maxUid&&window.history.forward()}get popStateInProgress(){return this._initialized&&(this._popStateInProgress||this._blockHashChange>0)}get initialBookmark(){return this._initialized?this._initialBookmark:null}get initialRotation(){return this._initialized?this._initialRotation:null}_pushOrReplaceState(u,Y=!1){const re=Y||!this._destination,U={fingerprint:this._fingerprint,uid:re?this._uid:this._uid+1,destination:u};this._updateInternalState(u,U.uid);let X;if(this._updateUrl&&u&&u.hash){const W=document.location.href.split("#")[0];W.startsWith("file://")||(X=`${W}#${u.hash}`)}re?window.history.replaceState(U,"",X):(this._maxUid=this._uid,window.history.pushState(U,"",X))}_tryPushCurrentPosition(u=!1){if(!this._position)return;let Y=this._position;if(u&&(Y=Object.assign(Object.create(null),this._position),Y.temporary=!0),!this._destination){this._pushOrReplaceState(Y);return}if(this._destination.temporary){this._pushOrReplaceState(Y,!0);return}if(this._destination.hash===Y.hash||!this._destination.page&&this._numPositionUpdates<=J)return;let re=!1;if(this._destination.page>=Y.first&&this._destination.page<=Y.page){if(this._destination.dest||!this._destination.first)return;re=!0}this._pushOrReplaceState(Y,re)}_isValidState(u,Y=!1){if(!u)return!1;if(u.fingerprint!==this._fingerprint)if(Y){if(typeof u.fingerprint!="string"||u.fingerprint.length!==this._fingerprint.length)return!1;const[re]=performance.getEntriesByType("navigation");if(!re||re.type!=="reload")return!1}else return!1;return!(!Number.isInteger(u.uid)||u.uid<0||u.destination===null||typeof u.destination!="object")}_updateInternalState(u,Y,re=!1){this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),re&&u&&u.temporary&&delete u.temporary,this._destination=u,this._uid=Y,this._numPositionUpdates=0}_parseCurrentHash(u=!1){const Y=unescape(se()).substring(1),re=(0,g.parseQueryString)(Y),U=re.nameddest||"";let X=re.page|0;return(!(Number.isInteger(X)&&X>0&&X<=this.linkService.pagesCount)||u&&U.length>0)&&(X=null),{hash:Y,page:X,rotation:this.linkService.rotation}}_updateViewarea({location:u}){this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),this._position={hash:this._isViewerInPresentationMode?`page=${u.pageNumber}`:u.pdfOpenParams.substring(1),page:this.linkService.page,first:u.pageNumber,rotation:u.rotation},!this._popStateInProgress&&(this._isPagesLoaded&&this._destination&&!this._destination.page&&this._numPositionUpdates++,this._updateViewareaTimeout=setTimeout(()=>{this._popStateInProgress||this._tryPushCurrentPosition(!0),this._updateViewareaTimeout=null},a))}_popState({state:u}){const Y=se(),re=this._currentHash!==Y;if(this._currentHash=Y,!u){this._uid++;const{hash:X,page:W,rotation:G}=this._parseCurrentHash();this._pushOrReplaceState({hash:X,page:W,rotation:G},!0);return}if(!this._isValidState(u))return;this._popStateInProgress=!0,re&&(this._blockHashChange++,(0,g.waitOnEventOrTimeout)({target:window,name:"hashchange",delay:O}).then(()=>{this._blockHashChange--}));const U=u.destination;this._updateInternalState(U,u.uid,!0),this._uid>this._maxUid&&(this._maxUid=this._uid),(0,g.isValidRotation)(U.rotation)&&(this.linkService.rotation=U.rotation),U.dest?this.linkService.navigateTo(U.dest):U.hash?this.linkService.setHash(U.hash):U.page&&(this.linkService.page=U.page),Promise.resolve().then(()=>{this._popStateInProgress=!1})}_pageHide(){(!this._destination||this._destination.temporary)&&this._tryPushCurrentPosition()}_bindEvents(){this._boundEvents||(this._boundEvents={updateViewarea:this._updateViewarea.bind(this),popState:this._popState.bind(this),pageHide:this._pageHide.bind(this)},this.eventBus._on("updateviewarea",this._boundEvents.updateViewarea),window.addEventListener("popstate",this._boundEvents.popState),window.addEventListener("pagehide",this._boundEvents.pageHide))}_unbindEvents(){!this._boundEvents||(this.eventBus._off("updateviewarea",this._boundEvents.updateViewarea),window.removeEventListener("popstate",this._boundEvents.popState),window.removeEventListener("pagehide",this._boundEvents.pageHide),this._boundEvents=null)}}d.PDFHistory=H;function ee(m,u){if(typeof m!="string"||typeof u!="string")return!1;if(m===u)return!0;const{nameddest:Y}=(0,g.parseQueryString)(m);return Y===u}function ie(m,u){function Y(re,U){if(typeof re!=typeof U||Array.isArray(re)||Array.isArray(U))return!1;if(re!==null&&typeof re=="object"&&U!==null){if(Object.keys(re).length!==Object.keys(U).length)return!1;for(const X in re)if(!Y(re[X],U[X]))return!1;return!0}return re===U||Number.isNaN(re)&&Number.isNaN(U)}if(!(Array.isArray(m)&&Array.isArray(u))||m.length!==u.length)return!1;for(let re=0,U=m.length;re<U;re++)if(!Y(m[re],u[re]))return!1;return!0}},function(S,d,R){Object.defineProperty(d,"__esModule",{value:!0}),d.PDFPageView=void 0;var g=R(3),O=R(2),J=R(14),a=R(7);const se=a.viewerCompatibilityParams.maxCanvasPixels||16777216;class H{constructor(ie){const m=ie.container,u=ie.defaultViewport;this.id=ie.id,this.renderingId="page"+this.id,this.pdfPage=null,this.pageLabel=null,this.rotation=0,this.scale=ie.scale||g.DEFAULT_SCALE,this.viewport=u,this.pdfPageRotate=u.rotation,this.hasRestrictedScaling=!1,this.textLayerMode=Number.isInteger(ie.textLayerMode)?ie.textLayerMode:g.TextLayerMode.ENABLE,this.imageResourcesPath=ie.imageResourcesPath||"",this.renderInteractiveForms=ie.renderInteractiveForms||!1,this.useOnlyCssZoom=ie.useOnlyCssZoom||!1,this.maxCanvasPixels=ie.maxCanvasPixels||se,this.eventBus=ie.eventBus,this.renderingQueue=ie.renderingQueue,this.textLayerFactory=ie.textLayerFactory,this.annotationLayerFactory=ie.annotationLayerFactory,this.renderer=ie.renderer||g.RendererType.CANVAS,this.enableWebGL=ie.enableWebGL||!1,this.l10n=ie.l10n||g.NullL10n,this.paintTask=null,this.paintedViewportMap=new WeakMap,this.renderingState=J.RenderingStates.INITIAL,this.resume=null,this.error=null,this.annotationLayer=null,this.textLayer=null,this.zoomLayer=null;const Y=document.createElement("div");Y.className="page",Y.style.width=Math.floor(this.viewport.width)+"px",Y.style.height=Math.floor(this.viewport.height)+"px",Y.setAttribute("data-page-number",this.id),this.div=Y,m.appendChild(Y)}setPdfPage(ie){this.pdfPage=ie,this.pdfPageRotate=ie.rotate;const m=(this.rotation+this.pdfPageRotate)%360;this.viewport=ie.getViewport({scale:this.scale*g.CSS_UNITS,rotation:m}),this.stats=ie.stats,this.reset()}destroy(){this.reset(),this.pdfPage&&this.pdfPage.cleanup()}_resetZoomLayer(ie=!1){if(!this.zoomLayer)return;const m=this.zoomLayer.firstChild;this.paintedViewportMap.delete(m),m.width=0,m.height=0,ie&&this.zoomLayer.remove(),this.zoomLayer=null}reset(ie=!1,m=!1){this.cancelRendering(m),this.renderingState=J.RenderingStates.INITIAL;const u=this.div;u.style.width=Math.floor(this.viewport.width)+"px",u.style.height=Math.floor(this.viewport.height)+"px";const Y=u.childNodes,re=ie&&this.zoomLayer||null,U=m&&this.annotationLayer&&this.annotationLayer.div||null;for(let X=Y.length-1;X>=0;X--){const W=Y[X];re===W||U===W||u.removeChild(W)}u.removeAttribute("data-loaded"),U?this.annotationLayer.hide():this.annotationLayer&&(this.annotationLayer.cancel(),this.annotationLayer=null),re||(this.canvas&&(this.paintedViewportMap.delete(this.canvas),this.canvas.width=0,this.canvas.height=0,delete this.canvas),this._resetZoomLayer()),this.svg&&(this.paintedViewportMap.delete(this.svg),delete this.svg),this.loadingIconDiv=document.createElement("div"),this.loadingIconDiv.className="loadingIcon",u.appendChild(this.loadingIconDiv)}update(ie,m){this.scale=ie||this.scale,typeof m!="undefined"&&(this.rotation=m);const u=(this.rotation+this.pdfPageRotate)%360;if(this.viewport=this.viewport.clone({scale:this.scale*g.CSS_UNITS,rotation:u}),this.svg){this.cssTransform(this.svg,!0),this.eventBus.dispatch("pagerendered",{source:this,pageNumber:this.id,cssTransform:!0,timestamp:performance.now()});return}let Y=!1;if(this.canvas&&this.maxCanvasPixels>0){const re=this.outputScale;(Math.floor(this.viewport.width)*re.sx|0)*(Math.floor(this.viewport.height)*re.sy|0)>this.maxCanvasPixels&&(Y=!0)}if(this.canvas){if(this.useOnlyCssZoom||this.hasRestrictedScaling&&Y){this.cssTransform(this.canvas,!0),this.eventBus.dispatch("pagerendered",{source:this,pageNumber:this.id,cssTransform:!0,timestamp:performance.now()});return}!this.zoomLayer&&!this.canvas.hasAttribute("hidden")&&(this.zoomLayer=this.canvas.parentNode,this.zoomLayer.style.position="absolute")}this.zoomLayer&&this.cssTransform(this.zoomLayer.firstChild),this.reset(!0,!0)}cancelRendering(ie=!1){this.paintTask&&(this.paintTask.cancel(),this.paintTask=null),this.resume=null,this.textLayer&&(this.textLayer.cancel(),this.textLayer=null),!ie&&this.annotationLayer&&(this.annotationLayer.cancel(),this.annotationLayer=null)}cssTransform(ie,m=!1){const u=this.viewport.width,Y=this.viewport.height,re=this.div;ie.style.width=ie.parentNode.style.width=re.style.width=Math.floor(u)+"px",ie.style.height=ie.parentNode.style.height=re.style.height=Math.floor(Y)+"px";const U=this.viewport.rotation-this.paintedViewportMap.get(ie).rotation,X=Math.abs(U);let W=1,G=1;(X===90||X===270)&&(W=Y/u,G=u/Y);const P="rotate("+U+"deg) scale("+W+","+G+")";if(ie.style.transform=P,this.textLayer){const E=this.textLayer.viewport,A=this.viewport.rotation-E.rotation,_=Math.abs(A);let F=u/E.width;(_===90||_===270)&&(F=u/E.height);const D=this.textLayer.textLayerDiv;let L,k;switch(_){case 0:L=k=0;break;case 90:L=0,k="-"+D.style.height;break;case 180:L="-"+D.style.width,k="-"+D.style.height;break;case 270:L="-"+D.style.width,k=0;break;default:console.error("Bad rotation value.");break}D.style.transform="rotate("+_+"deg) scale("+F+", "+F+") translate("+L+", "+k+")",D.style.transformOrigin="0% 0%"}m&&this.annotationLayer&&this.annotationLayer.render(this.viewport,"display")}get width(){return this.viewport.width}get height(){return this.viewport.height}getPagePoint(ie,m){return this.viewport.convertToPdfPoint(ie,m)}draw(){this.renderingState!==J.RenderingStates.INITIAL&&(console.error("Must be in new state before drawing"),this.reset());const{div:ie,pdfPage:m}=this;if(!m)return this.renderingState=J.RenderingStates.FINISHED,this.loadingIconDiv&&(ie.removeChild(this.loadingIconDiv),delete this.loadingIconDiv),Promise.reject(new Error("pdfPage is not loaded"));this.renderingState=J.RenderingStates.RUNNING;const u=document.createElement("div");u.style.width=ie.style.width,u.style.height=ie.style.height,u.classList.add("canvasWrapper"),this.annotationLayer&&this.annotationLayer.div?ie.insertBefore(u,this.annotationLayer.div):ie.appendChild(u);let Y=null;if(this.textLayerMode!==g.TextLayerMode.DISABLE&&this.textLayerFactory){const G=document.createElement("div");G.className="textLayer",G.style.width=u.style.width,G.style.height=u.style.height,this.annotationLayer&&this.annotationLayer.div?ie.insertBefore(G,this.annotationLayer.div):ie.appendChild(G),Y=this.textLayerFactory.createTextLayerBuilder(G,this.id-1,this.viewport,this.textLayerMode===g.TextLayerMode.ENABLE_ENHANCE,this.eventBus)}this.textLayer=Y;let re=null;this.renderingQueue&&(re=G=>{if(!this.renderingQueue.isHighestPriority(this)){this.renderingState=J.RenderingStates.PAUSED,this.resume=()=>{this.renderingState=J.RenderingStates.RUNNING,G()};return}G()});const U=async G=>{if(X===this.paintTask&&(this.paintTask=null),G instanceof O.RenderingCancelledException){this.error=null;return}if(this.renderingState=J.RenderingStates.FINISHED,this.loadingIconDiv&&(ie.removeChild(this.loadingIconDiv),delete this.loadingIconDiv),this._resetZoomLayer(!0),this.error=G,this.stats=m.stats,this.eventBus.dispatch("pagerendered",{source:this,pageNumber:this.id,cssTransform:!1,timestamp:performance.now()}),G)throw G},X=this.renderer===g.RendererType.SVG?this.paintOnSvg(u):this.paintOnCanvas(u);X.onRenderContinue=re,this.paintTask=X;const W=X.promise.then(function(){return U(null).then(function(){if(Y){const G=m.streamTextContent({normalizeWhitespace:!0});Y.setTextContentStream(G),Y.render()}})},function(G){return U(G)});return this.annotationLayerFactory&&(this.annotationLayer||(this.annotationLayer=this.annotationLayerFactory.createAnnotationLayerBuilder(ie,m,this.imageResourcesPath,this.renderInteractiveForms,this.l10n)),this.annotationLayer.render(this.viewport,"display")),ie.setAttribute("data-loaded",!0),this.eventBus.dispatch("pagerender",{source:this,pageNumber:this.id}),W}paintOnCanvas(ie){const m=(0,O.createPromiseCapability)(),u={promise:m.promise,onRenderContinue(D){D()},cancel(){F.cancel()}},Y=this.viewport,re=document.createElement("canvas");this.l10n.get("page_canvas",{page:this.id},"Page {{page}}").then(D=>{re.setAttribute("aria-label",D)}),re.setAttribute("hidden","hidden");let U=!0;const X=function(){U&&(re.removeAttribute("hidden"),U=!1)};ie.appendChild(re),this.canvas=re,re.mozOpaque=!0;const W=re.getContext("2d",{alpha:!1}),G=(0,g.getOutputScale)(W);if(this.outputScale=G,this.useOnlyCssZoom){const D=Y.clone({scale:g.CSS_UNITS});G.sx*=D.width/Y.width,G.sy*=D.height/Y.height,G.scaled=!0}if(this.maxCanvasPixels>0){const D=Y.width*Y.height,L=Math.sqrt(this.maxCanvasPixels/D);G.sx>L||G.sy>L?(G.sx=L,G.sy=L,G.scaled=!0,this.hasRestrictedScaling=!0):this.hasRestrictedScaling=!1}const P=(0,g.approximateFraction)(G.sx),E=(0,g.approximateFraction)(G.sy);re.width=(0,g.roundToDivide)(Y.width*G.sx,P[0]),re.height=(0,g.roundToDivide)(Y.height*G.sy,E[0]),re.style.width=(0,g.roundToDivide)(Y.width,P[1])+"px",re.style.height=(0,g.roundToDivide)(Y.height,E[1])+"px",this.paintedViewportMap.set(re,Y);const A=G.scaled?[G.sx,0,0,G.sy,0,0]:null,_={canvasContext:W,transform:A,viewport:this.viewport,enableWebGL:this.enableWebGL,renderInteractiveForms:this.renderInteractiveForms},F=this.pdfPage.render(_);return F.onContinue=function(D){X(),u.onRenderContinue?u.onRenderContinue(D):D()},F.promise.then(function(){X(),m.resolve(void 0)},function(D){X(),m.reject(D)}),u}paintOnSvg(ie){let m=!1;const u=()=>{if(m)throw new O.RenderingCancelledException(`Rendering cancelled, page ${this.id}`,"svg")},Y=this.pdfPage,re=this.viewport.clone({scale:g.CSS_UNITS});return{promise:Y.getOperatorList().then(X=>(u(),new O.SVGGraphics(Y.commonObjs,Y.objs).getSVG(X,re).then(G=>{u(),this.svg=G,this.paintedViewportMap.set(G,re),G.style.width=ie.style.width,G.style.height=ie.style.height,this.renderingState=J.RenderingStates.FINISHED,ie.appendChild(G)}))),onRenderContinue(X){X()},cancel(){m=!0}}}setPageLabel(ie){this.pageLabel=typeof ie=="string"?ie:null,this.pageLabel!==null?this.div.setAttribute("data-page-label",this.pageLabel):this.div.removeAttribute("data-page-label")}}d.PDFPageView=H},function(S,d,R){Object.defineProperty(d,"__esModule",{value:!0}),d.PDFRenderingQueue=d.RenderingStates=void 0;const g=3e4,O={INITIAL:0,RUNNING:1,PAUSED:2,FINISHED:3};d.RenderingStates=O;class J{constructor(){this.pdfViewer=null,this.pdfThumbnailViewer=null,this.onIdle=null,this.highestPriorityPage=null,this.idleTimeout=null,this.printing=!1,this.isThumbnailViewEnabled=!1}setViewer(se){this.pdfViewer=se}setThumbnailViewer(se){this.pdfThumbnailViewer=se}isHighestPriority(se){return this.highestPriorityPage===se.renderingId}renderHighestPriority(se){this.idleTimeout&&(clearTimeout(this.idleTimeout),this.idleTimeout=null),!this.pdfViewer.forceRendering(se)&&(this.pdfThumbnailViewer&&this.isThumbnailViewEnabled&&this.pdfThumbnailViewer.forceRendering()||this.printing||this.onIdle&&(this.idleTimeout=setTimeout(this.onIdle.bind(this),g)))}getHighestPriority(se,H,ee){const ie=se.views,m=ie.length;if(m===0)return null;for(let u=0;u<m;++u){const Y=ie[u].view;if(!this.isViewFinished(Y))return Y}if(ee){const u=se.last.id;if(H[u]&&!this.isViewFinished(H[u]))return H[u]}else{const u=se.first.id-2;if(H[u]&&!this.isViewFinished(H[u]))return H[u]}return null}isViewFinished(se){return se.renderingState===O.FINISHED}renderView(se){switch(se.renderingState){case O.FINISHED:return!1;case O.PAUSED:this.highestPriorityPage=se.renderingId,se.resume();break;case O.RUNNING:this.highestPriorityPage=se.renderingId;break;case O.INITIAL:this.highestPriorityPage=se.renderingId,se.draw().finally(()=>{this.renderHighestPriority()}).catch(H=>{console.error(`renderView: "${H}"`)});break}return!0}}d.PDFRenderingQueue=J},function(S,d,R){Object.defineProperty(d,"__esModule",{value:!0}),d.PDFSinglePageViewer=void 0;var g=R(16),O=R(2);class J extends g.BaseViewer{constructor(se){super(se),this.eventBus._on("pagesinit",H=>{this._ensurePageViewVisible()})}get _viewerElement(){return(0,O.shadow)(this,"_viewerElement",this._shadowViewer)}_resetView(){super._resetView(),this._previousPageNumber=1,this._shadowViewer=document.createDocumentFragment(),this._updateScrollDown=null}_ensurePageViewVisible(){const se=this._pages[this._currentPageNumber-1],H=this._pages[this._previousPageNumber-1],ee=this.viewer.childNodes;switch(ee.length){case 0:this.viewer.appendChild(se.div);break;case 1:if(ee[0]!==H.div)throw new Error("_ensurePageViewVisible: Unexpected previously visible page.");if(se===H)break;this._shadowViewer.appendChild(H.div),this.viewer.appendChild(se.div),this.container.scrollTop=0;break;default:throw new Error("_ensurePageViewVisible: Only one page should be visible at a time.")}this._previousPageNumber=this._currentPageNumber}_scrollUpdate(){this._updateScrollDown&&this._updateScrollDown(),super._scrollUpdate()}_scrollIntoView({pageDiv:se,pageSpot:H=null,pageNumber:ee=null}){ee&&this._setCurrentPageNumber(ee);const ie=this._currentPageNumber>=this._previousPageNumber;this._ensurePageViewVisible(),this.update(),super._scrollIntoView({pageDiv:se,pageSpot:H,pageNumber:ee}),this._updateScrollDown=()=>{this.scroll.down=ie,this._updateScrollDown=null}}_getVisiblePages(){return this._getCurrentVisiblePage()}_updateHelper(se){}get _isScrollModeHorizontal(){return(0,O.shadow)(this,"_isScrollModeHorizontal",!1)}_updateScrollMode(){}_updateSpreadMode(){}}d.PDFSinglePageViewer=J},function(S,d,R){Object.defineProperty(d,"__esModule",{value:!0}),d.BaseViewer=void 0;var g=R(3),O=R(14),J=R(1),a=R(2),se=R(13),H=R(4),ee=R(5);const ie=10;function m(re){const U=[];this.push=function(X){const W=U.indexOf(X);W>=0&&U.splice(W,1),U.push(X),U.length>re&&U.shift().destroy()},this.resize=function(X,W){if(re=X,W){const G=new Set;for(let P=0,E=W.length;P<E;++P)G.add(W[P].id);(0,g.moveToEndOfArray)(U,function(P){return G.has(P.id)})}for(;U.length>re;)U.shift().destroy()}}function u(re,U){return U===re||Math.abs(U-re)<1e-15}class Y{constructor(U){if(this.constructor===Y)throw new Error("Cannot initialize BaseViewer.");this._name=this.constructor.name,this.container=U.container,this.viewer=U.viewer||U.container.firstElementChild,this.eventBus=U.eventBus,this.linkService=U.linkService||new H.SimpleLinkService,this.downloadManager=U.downloadManager||null,this.findController=U.findController||null,this.removePageBorders=U.removePageBorders||!1,this.textLayerMode=Number.isInteger(U.textLayerMode)?U.textLayerMode:g.TextLayerMode.ENABLE,this.imageResourcesPath=U.imageResourcesPath||"",this.renderInteractiveForms=U.renderInteractiveForms||!1,this.enablePrintAutoRotate=U.enablePrintAutoRotate||!1,this.renderer=U.renderer||g.RendererType.CANVAS,this.enableWebGL=U.enableWebGL||!1,this.useOnlyCssZoom=U.useOnlyCssZoom||!1,this.maxCanvasPixels=U.maxCanvasPixels,this.l10n=U.l10n||g.NullL10n,this.defaultRenderingQueue=!U.renderingQueue,this.defaultRenderingQueue?(this.renderingQueue=new O.PDFRenderingQueue,this.renderingQueue.setViewer(this)):this.renderingQueue=U.renderingQueue,this.scroll=(0,g.watchScroll)(this.container,this._scrollUpdate.bind(this)),this.presentationModeState=g.PresentationModeState.UNKNOWN,this._onBeforeDraw=this._onAfterDraw=null,this._resetView(),this.removePageBorders&&this.viewer.classList.add("removePageBorders"),Promise.resolve().then(()=>{this.eventBus.dispatch("baseviewerinit",{source:this})})}get pagesCount(){return this._pages.length}getPageView(U){return this._pages[U]}get pageViewsReady(){return this._pagesCapability.settled?this._pages.every(function(U){return U&&U.pdfPage}):!1}get currentPageNumber(){return this._currentPageNumber}set currentPageNumber(U){if(!Number.isInteger(U))throw new Error("Invalid page number.");!this.pdfDocument||this._setCurrentPageNumber(U,!0)||console.error(`${this._name}.currentPageNumber: "${U}" is not a valid page.`)}_setCurrentPageNumber(U,X=!1){return this._currentPageNumber===U?(X&&this._resetCurrentPageView(),!0):0<U&&U<=this.pagesCount?(this._currentPageNumber=U,this.eventBus.dispatch("pagechanging",{source:this,pageNumber:U,pageLabel:this._pageLabels&&this._pageLabels[U-1]}),X&&this._resetCurrentPageView(),!0):!1}get currentPageLabel(){return this._pageLabels&&this._pageLabels[this._currentPageNumber-1]}set currentPageLabel(U){if(!this.pdfDocument)return;let X=U|0;if(this._pageLabels){const W=this._pageLabels.indexOf(U);W>=0&&(X=W+1)}this._setCurrentPageNumber(X,!0)||console.error(`${this._name}.currentPageLabel: "${U}" is not a valid page.`)}get currentScale(){return this._currentScale!==g.UNKNOWN_SCALE?this._currentScale:g.DEFAULT_SCALE}set currentScale(U){if(isNaN(U))throw new Error("Invalid numeric scale.");!this.pdfDocument||this._setScale(U,!1)}get currentScaleValue(){return this._currentScaleValue}set currentScaleValue(U){!this.pdfDocument||this._setScale(U,!1)}get pagesRotation(){return this._pagesRotation}set pagesRotation(U){if(!(0,g.isValidRotation)(U))throw new Error("Invalid pages rotation angle.");if(!this.pdfDocument||this._pagesRotation===U)return;this._pagesRotation=U;const X=this._currentPageNumber;for(let W=0,G=this._pages.length;W<G;W++){const P=this._pages[W];P.update(P.scale,U)}this._currentScaleValue&&this._setScale(this._currentScaleValue,!0),this.eventBus.dispatch("rotationchanging",{source:this,pagesRotation:U,pageNumber:X}),this.defaultRenderingQueue&&this.update()}get firstPagePromise(){return this.pdfDocument?this._firstPageCapability.promise:null}get onePageRendered(){return this.pdfDocument?this._onePageRenderedCapability.promise:null}get pagesPromise(){return this.pdfDocument?this._pagesCapability.promise:null}get _viewerElement(){throw new Error("Not implemented: _viewerElement")}_onePageRenderedOrForceFetch(){return!this.container.offsetParent||this._getVisiblePages().views.length===0?Promise.resolve():this._onePageRenderedCapability.promise}setDocument(U){if(this.pdfDocument&&(this._cancelRendering(),this._resetView(),this.findController&&this.findController.setDocument(null)),this.pdfDocument=U,!U)return;const X=U.numPages,W=U.getPage(1);this._pagesCapability.promise.then(()=>{this.eventBus.dispatch("pagesloaded",{source:this,pagesCount:X})}),this._onBeforeDraw=G=>{const P=this._pages[G.pageNumber-1];!P||this._buffer.push(P)},this.eventBus._on("pagerender",this._onBeforeDraw),this._onAfterDraw=G=>{G.cssTransform||this._onePageRenderedCapability.settled||(this._onePageRenderedCapability.resolve(),this.eventBus._off("pagerendered",this._onAfterDraw),this._onAfterDraw=null)},this.eventBus._on("pagerendered",this._onAfterDraw),W.then(G=>{this._firstPageCapability.resolve(G);const P=this.currentScale,E=G.getViewport({scale:P*g.CSS_UNITS}),A=this.textLayerMode!==g.TextLayerMode.DISABLE?this:null;for(let F=1;F<=X;++F){const D=new se.PDFPageView({container:this._viewerElement,eventBus:this.eventBus,id:F,scale:P,defaultViewport:E.clone(),renderingQueue:this.renderingQueue,textLayerFactory:A,textLayerMode:this.textLayerMode,annotationLayerFactory:this,imageResourcesPath:this.imageResourcesPath,renderInteractiveForms:this.renderInteractiveForms,renderer:this.renderer,enableWebGL:this.enableWebGL,useOnlyCssZoom:this.useOnlyCssZoom,maxCanvasPixels:this.maxCanvasPixels,l10n:this.l10n});this._pages.push(D)}const _=this._pages[0];_&&(_.setPdfPage(G),this.linkService.cachePageRef(1,G.ref)),this._spreadMode!==g.SpreadMode.NONE&&this._updateSpreadMode(),this._onePageRenderedOrForceFetch().then(()=>{if(this.findController&&this.findController.setDocument(U),U.loadingParams.disableAutoFetch||X>7500){this._pagesCapability.resolve();return}let F=X-1;if(F<=0){this._pagesCapability.resolve();return}for(let D=2;D<=X;++D)U.getPage(D).then(L=>{const k=this._pages[D-1];k.pdfPage||k.setPdfPage(L),this.linkService.cachePageRef(D,L.ref),--F===0&&this._pagesCapability.resolve()},L=>{console.error(`Unable to get page ${D} to initialize viewer`,L),--F===0&&this._pagesCapability.resolve()})}),this.eventBus.dispatch("pagesinit",{source:this}),this.defaultRenderingQueue&&this.update()}).catch(G=>{console.error("Unable to initialize viewer",G)})}setPageLabels(U){if(!!this.pdfDocument){U?Array.isArray(U)&&this.pdfDocument.numPages===U.length?this._pageLabels=U:(this._pageLabels=null,console.error(`${this._name}.setPageLabels: Invalid page labels.`)):this._pageLabels=null;for(let X=0,W=this._pages.length;X<W;X++){const G=this._pages[X],P=this._pageLabels&&this._pageLabels[X];G.setPageLabel(P)}}}_resetView(){this._pages=[],this._currentPageNumber=1,this._currentScale=g.UNKNOWN_SCALE,this._currentScaleValue=null,this._pageLabels=null,this._buffer=new m(ie),this._location=null,this._pagesRotation=0,this._pagesRequests=new WeakMap,this._firstPageCapability=(0,a.createPromiseCapability)(),this._onePageRenderedCapability=(0,a.createPromiseCapability)(),this._pagesCapability=(0,a.createPromiseCapability)(),this._scrollMode=g.ScrollMode.VERTICAL,this._spreadMode=g.SpreadMode.NONE,this._onBeforeDraw&&(this.eventBus._off("pagerender",this._onBeforeDraw),this._onBeforeDraw=null),this._onAfterDraw&&(this.eventBus._off("pagerendered",this._onAfterDraw),this._onAfterDraw=null),this.viewer.textContent="",this._updateScrollMode()}_scrollUpdate(){this.pagesCount!==0&&this.update()}_scrollIntoView({pageDiv:U,pageSpot:X=null,pageNumber:W=null}){(0,g.scrollIntoView)(U,X)}_setScaleUpdatePages(U,X,W=!1,G=!1){if(this._currentScaleValue=X.toString(),u(this._currentScale,U)){G&&this.eventBus.dispatch("scalechanging",{source:this,scale:U,presetValue:X});return}for(let P=0,E=this._pages.length;P<E;P++)this._pages[P].update(U);if(this._currentScale=U,!W){let P=this._currentPageNumber,E;this._location&&!(this.isInPresentationMode||this.isChangingPresentationMode)&&(P=this._location.pageNumber,E=[null,{name:"XYZ"},this._location.left,this._location.top,null]),this.scrollPageIntoView({pageNumber:P,destArray:E,allowNegativeOffset:!0})}this.eventBus.dispatch("scalechanging",{source:this,scale:U,presetValue:G?X:void 0}),this.defaultRenderingQueue&&this.update()}_setScale(U,X=!1){let W=parseFloat(U);if(W>0)this._setScaleUpdatePages(W,U,X,!1);else{const G=this._pages[this._currentPageNumber-1];if(!G)return;const P=this.isInPresentationMode||this.removePageBorders;let E=P?0:g.SCROLLBAR_PADDING,A=P?0:g.VERTICAL_PADDING;!P&&this._isScrollModeHorizontal&&([E,A]=[A,E]);const _=(this.container.clientWidth-E)/G.width*G.scale,F=(this.container.clientHeight-A)/G.height*G.scale;switch(U){case"page-actual":W=1;break;case"page-width":W=_;break;case"page-height":W=F;break;case"page-fit":W=Math.min(_,F);break;case"auto":const D=(0,g.isPortraitOrientation)(G)?_:Math.min(F,_);W=Math.min(g.MAX_AUTO_SCALE,D);break;default:console.error(`${this._name}._setScale: "${U}" is an unknown zoom value.`);return}this._setScaleUpdatePages(W,U,X,!0)}}_resetCurrentPageView(){this.isInPresentationMode&&this._setScale(this._currentScaleValue,!0);const U=this._pages[this._currentPageNumber-1];this._scrollIntoView({pageDiv:U.div})}scrollPageIntoView({pageNumber:U,destArray:X=null,allowNegativeOffset:W=!1,ignoreDestinationZoom:G=!1}){if(!this.pdfDocument)return;const P=Number.isInteger(U)&&this._pages[U-1];if(!P){console.error(`${this._name}.scrollPageIntoView: "${U}" is not a valid pageNumber parameter.`);return}if(this.isInPresentationMode||!X){this._setCurrentPageNumber(U,!0);return}let E=0,A=0,_=0,F=0,D,L;const k=P.rotation%180!==0,v=(k?P.height:P.width)/P.scale/g.CSS_UNITS,y=(k?P.width:P.height)/P.scale/g.CSS_UNITS;let b=0;switch(X[1].name){case"XYZ":E=X[2],A=X[3],b=X[4],E=E!==null?E:0,A=A!==null?A:y;break;case"Fit":case"FitB":b="page-fit";break;case"FitH":case"FitBH":A=X[2],b="page-width",A===null&&this._location&&(E=this._location.left,A=this._location.top);break;case"FitV":case"FitBV":E=X[2],_=v,F=y,b="page-height";break;case"FitR":E=X[2],A=X[3],_=X[4]-E,F=X[5]-A;const B=this.removePageBorders?0:g.SCROLLBAR_PADDING,N=this.removePageBorders?0:g.VERTICAL_PADDING;D=(this.container.clientWidth-B)/_/g.CSS_UNITS,L=(this.container.clientHeight-N)/F/g.CSS_UNITS,b=Math.min(Math.abs(D),Math.abs(L));break;default:console.error(`${this._name}.scrollPageIntoView: "${X[1].name}" is not a valid destination type.`);return}if(G||(b&&b!==this._currentScale?this.currentScaleValue=b:this._currentScale===g.UNKNOWN_SCALE&&(this.currentScaleValue=g.DEFAULT_SCALE_VALUE)),b==="page-fit"&&!X[4]){this._scrollIntoView({pageDiv:P.div,pageNumber:U});return}const C=[P.viewport.convertToViewportPoint(E,A),P.viewport.convertToViewportPoint(E+_,A+F)];let w=Math.min(C[0][0],C[1][0]),T=Math.min(C[0][1],C[1][1]);W||(w=Math.max(w,0),T=Math.max(T,0)),this._scrollIntoView({pageDiv:P.div,pageSpot:{left:w,top:T},pageNumber:U})}_updateLocation(U){const X=this._currentScale,W=this._currentScaleValue,G=parseFloat(W)===X?Math.round(X*1e4)/100:W,P=U.id;let E="#page="+P;E+="&zoom="+G;const A=this._pages[P-1],_=this.container,F=A.getPagePoint(_.scrollLeft-U.x,_.scrollTop-U.y),D=Math.round(F[0]),L=Math.round(F[1]);E+=","+D+","+L,this._location={pageNumber:P,scale:G,top:L,left:D,rotation:this._pagesRotation,pdfOpenParams:E}}_updateHelper(U){throw new Error("Not implemented: _updateHelper")}update(){const U=this._getVisiblePages(),X=U.views,W=X.length;if(W===0)return;const G=Math.max(ie,2*W+1);this._buffer.resize(G,X),this.renderingQueue.renderHighestPriority(U),this._updateHelper(X),this._updateLocation(U.first),this.eventBus.dispatch("updateviewarea",{source:this,location:this._location})}containsElement(U){return this.container.contains(U)}focus(){this.container.focus()}get _isScrollModeHorizontal(){return this.isInPresentationMode?!1:this._scrollMode===g.ScrollMode.HORIZONTAL}get isInPresentationMode(){return this.presentationModeState===g.PresentationModeState.FULLSCREEN}get isChangingPresentationMode(){return this.presentationModeState===g.PresentationModeState.CHANGING}get isHorizontalScrollbarEnabled(){return this.isInPresentationMode?!1:this.container.scrollWidth>this.container.clientWidth}get isVerticalScrollbarEnabled(){return this.isInPresentationMode?!1:this.container.scrollHeight>this.container.clientHeight}_getCurrentVisiblePage(){if(!this.pagesCount)return{views:[]};const U=this._pages[this._currentPageNumber-1],X=U.div,W={id:U.id,x:X.offsetLeft+X.clientLeft,y:X.offsetTop+X.clientTop,view:U};return{first:W,last:W,views:[W]}}_getVisiblePages(){return(0,g.getVisibleElements)(this.container,this._pages,!0,this._isScrollModeHorizontal)}isPageVisible(U){return this.pdfDocument?U<1||U>this.pagesCount?(console.error(`${this._name}.isPageVisible: "${U}" is out of bounds.`),!1):this._getVisiblePages().views.some(function(X){return X.id===U}):!1}cleanup(){for(let U=0,X=this._pages.length;U<X;U++)this._pages[U]&&this._pages[U].renderingState!==O.RenderingStates.FINISHED&&this._pages[U].reset()}_cancelRendering(){for(let U=0,X=this._pages.length;U<X;U++)this._pages[U]&&this._pages[U].cancelRendering()}_ensurePdfPageLoaded(U){if(U.pdfPage)return Promise.resolve(U.pdfPage);if(this._pagesRequests.has(U))return this._pagesRequests.get(U);const X=this.pdfDocument.getPage(U.id).then(W=>(U.pdfPage||U.setPdfPage(W),this._pagesRequests.delete(U),W)).catch(W=>{console.error("Unable to get page for page view",W),this._pagesRequests.delete(U)});return this._pagesRequests.set(U,X),X}forceRendering(U){const X=U||this._getVisiblePages(),W=this._isScrollModeHorizontal?this.scroll.right:this.scroll.down,G=this.renderingQueue.getHighestPriority(X,this._pages,W);return G?(this._ensurePdfPageLoaded(G).then(()=>{this.renderingQueue.renderView(G)}),!0):!1}createTextLayerBuilder(U,X,W,G=!1,P){return new ee.TextLayerBuilder({textLayerDiv:U,eventBus:P,pageIndex:X,viewport:W,findController:this.isInPresentationMode?null:this.findController,enhanceTextSelection:this.isInPresentationMode?!1:G})}createAnnotationLayerBuilder(U,X,W="",G=!1,P=g.NullL10n){return new J.AnnotationLayerBuilder({pageDiv:U,pdfPage:X,imageResourcesPath:W,renderInteractiveForms:G,linkService:this.linkService,downloadManager:this.downloadManager,l10n:P})}get hasEqualPageSizes(){const U=this._pages[0];for(let X=1,W=this._pages.length;X<W;++X){const G=this._pages[X];if(G.width!==U.width||G.height!==U.height)return!1}return!0}getPagesOverview(){const U=this._pages.map(function(W){const G=W.pdfPage.getViewport({scale:1});return{width:G.width,height:G.height,rotation:G.rotation}});if(!this.enablePrintAutoRotate)return U;const X=(0,g.isPortraitOrientation)(U[0]);return U.map(function(W){return X===(0,g.isPortraitOrientation)(W)?W:{width:W.height,height:W.width,rotation:(W.rotation+90)%360}})}get scrollMode(){return this._scrollMode}set scrollMode(U){if(this._scrollMode!==U){if(!(0,g.isValidScrollMode)(U))throw new Error(`Invalid scroll mode: ${U}`);this._scrollMode=U,this.eventBus.dispatch("scrollmodechanged",{source:this,mode:U}),this._updateScrollMode(this._currentPageNumber)}}_updateScrollMode(U=null){const X=this._scrollMode,W=this.viewer;W.classList.toggle("scrollHorizontal",X===g.ScrollMode.HORIZONTAL),W.classList.toggle("scrollWrapped",X===g.ScrollMode.WRAPPED),!(!this.pdfDocument||!U)&&(this._currentScaleValue&&isNaN(this._currentScaleValue)&&this._setScale(this._currentScaleValue,!0),this._setCurrentPageNumber(U,!0),this.update())}get spreadMode(){return this._spreadMode}set spreadMode(U){if(this._spreadMode!==U){if(!(0,g.isValidSpreadMode)(U))throw new Error(`Invalid spread mode: ${U}`);this._spreadMode=U,this.eventBus.dispatch("spreadmodechanged",{source:this,mode:U}),this._updateSpreadMode(this._currentPageNumber)}}_updateSpreadMode(U=null){if(!this.pdfDocument)return;const X=this.viewer,W=this._pages;if(X.textContent="",this._spreadMode===g.SpreadMode.NONE)for(let G=0,P=W.length;G<P;++G)X.appendChild(W[G].div);else{const G=this._spreadMode-1;let P=null;for(let E=0,A=W.length;E<A;++E)P===null?(P=document.createElement("div"),P.className="spread",X.appendChild(P)):E%2===G&&(P=P.cloneNode(!1),X.appendChild(P)),P.appendChild(W[E].div)}!U||(this._setCurrentPageNumber(U,!0),this.update())}}d.BaseViewer=Y},function(S,d,R){Object.defineProperty(d,"__esModule",{value:!0}),d.PDFViewer=void 0;var g=R(16),O=R(2);class J extends g.BaseViewer{get _viewerElement(){return(0,O.shadow)(this,"_viewerElement",this.viewer)}_scrollIntoView({pageDiv:se,pageSpot:H=null,pageNumber:ee=null}){if(!H&&!this.isInPresentationMode){const ie=se.offsetLeft+se.clientLeft,m=ie+se.clientWidth,{scrollLeft:u,clientWidth:Y}=this.container;(this._isScrollModeHorizontal||ie<u||m>u+Y)&&(H={left:0,top:0})}super._scrollIntoView({pageDiv:se,pageSpot:H,pageNumber:ee})}_getVisiblePages(){return this.isInPresentationMode?this._getCurrentVisiblePage():super._getVisiblePages()}_updateHelper(se){if(this.isInPresentationMode)return;let H=this._currentPageNumber,ee=!1;for(const ie of se){if(ie.percent<100)break;if(ie.id===H){ee=!0;break}}ee||(H=se[0].id),this._setCurrentPageNumber(H)}}d.PDFViewer=J}])})})(pdf_viewer);var resize_vue_vue_type_style_index_0_lang="";const _sfc_main$7={props:{initial:{type:Boolean,default:!1}},data:function(){return{size:{width:-1,height:-1}}},methods:{reset:function(){var p=this.$el.firstChild,f=this.$el.lastChild;p.scrollLeft=1e5,p.scrollTop=1e5,f.scrollLeft=1e5,f.scrollTop=1e5},update:function(){this.size.width=this.$el.offsetWidth,this.size.height=this.$el.offsetHeight}},watch:{size:{deep:!0,handler:function(p){this.reset(),this.$emit("resize",{width:this.size.width,height:this.size.height})}}},render:function(){var p="position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow: hidden; z-index: -1; visibility: hidden;",f="position: absolute; left: 0; top: 0;";return h("div",{style:p+"animation-name: resizeSensorVisibility;",onanimationstart:this.update},[h("div",{style:p,onScroll:this.update},[h("div",{style:f+"width: 100000px; height: 100000px;"})]),h("div",{style:p,onScroll:this.update},[h("div",{style:f+"width: 200%; height: 200%;"})])])},beforeDestroy:function(){this.$emit("resize",{width:0,height:0}),this.$emit("resizeSensorBeforeDestroy")},mounted:function(){if(this.initial===!0&&this.$nextTick(this.update),this.$el.offsetParent!==this.$el.parentNode&&(this.$el.parentNode.style.position="relative"),"attachEvent"in this.$el&&!("AnimationEvent"in window)){var p=function(){this.update(),f()}.bind(this),f=function(){this.$el.detachEvent("onresize",p),this.$off("resizeSensorBeforeDestroy",f)}.bind(this);this.$el.attachEvent("onresize",p),this.$on("resizeSensorBeforeDestroy",f),this.reset()}}};var pdf_viewer_css_vue_type_style_index_0_src_f48af30e_lang="";function isPDFDocumentLoadingTask(p){return typeof p=="object"&&p!==null&&p.__PDFDocumentLoadingTask===!0}function createLoadingTask(p,f){let S;if(typeof p=="string")S={url:p};else if(typeof p=="object"&&p!==null)S=Object.assign({},p);else throw new TypeError("invalid src type");const d=pdf$1.exports.getDocument(S).promise;return d.__PDFDocumentLoadingTask=!0,f!=null&&f.onPassword&&(d.onPassword=f.onPassword),f!=null&&f.onProgress&&(d.onProgress=f.onProgress),d}const _sfc_main$6={createLoadingTask,components:{resizeSensor:_sfc_main$7},props:{src:{type:[String,Object,Promise],default:""},page:{type:Number,default:1},rotate:{type:Number,default:0},scale:{type:[Number,String],default:"page-width"},resize:{type:Boolean,default:!1},annotation:{type:Boolean,default:!1},text:{type:Boolean,default:!0}},data:function(){return{internalSrc:this.src,pdf:null,pdfViewer:null,loading:!0}},watch:{pdf:function(p){const f=p.pdfInfo||p._pdfInfo;this.$emit("numpages",f.numPages)},page:function(p){this.pdf.getPage(p).then(f=>{this.pdfViewer.setPdfPage(f),this.pdfViewer.draw()})},scale:function(p){this.drawScaled(p)},rotate:function(p){this.pdfViewer&&(this.pdfViewer.update(this.scale,p),this.pdfViewer.draw())}},mounted:function(){isPDFDocumentLoadingTask(this.internalSrc)||(this.internalSrc=createLoadingTask(this.internalSrc),this.$emit("loading",!0));const p=this.$refs.container,f=new pdf_viewer.exports.EventBus;this.pdfLinkService=new pdf_viewer.exports.PDFLinkService({eventBus:f,externalLinkTarget:2}),this.pdfFindController=new pdf_viewer.exports.PDFFindController({eventBus:f,linkService:this.pdfLinkService});let S,d;this.annotation&&(S=new pdf_viewer.exports.DefaultAnnotationLayerFactory),this.text&&(d=new pdf_viewer.exports.DefaultTextLayerFactory),this.internalSrc.then(R=>(this.pdf=R,R.getPage(this.page))).then(R=>{this.pdfViewer=new pdf_viewer.exports.PDFPageView({container:p,id:this.page,scale:1,defaultViewport:R.getViewport({scale:1}),eventBus:f,textLayerFactory:d,annotationLayerFactory:S}),this.pdfViewer.setPdfPage(R);const g={scrollPageIntoView:O=>{this.$emit("link-clicked",O)}};this.pdfLinkService.setDocument(this.pdf),this.pdfLinkService.setViewer(g),this.pdfFindController.setDocument(this.pdf),this.drawScaled(this.scale),this.loading=!1,this.$emit("loading",!1)}).catch(R=>{this.$emit("error",R),this.loading=!1,this.$emit("loading",!1)})},beforeUnmount(){this.pdfViewer&&(this.pdfViewer.destroy(),this.pdfViewer=null)},methods:{calculateScale:function(p=-1,f=-1){return this.pdfViewer.update(1,this.rotate),p===-1&&f===-1&&(p=this.$refs.container.offsetWidth),p/this.pdfViewer.viewport.width},calculateScaleHeight:function(){this.pdfViewer.update(1,this.rotate);const p=this.$refs.container.offsetHeight;return this.$refs.container.parentElement.parentElement.offsetHeight/p},drawScaled:function(p){this.pdfViewer&&(p==="page-width"?(p=this.calculateScale(),this.$emit("update:scale",p)):p==="page-height"&&(p=this.calculateScaleHeight(),this.$emit("update:scale",p)),this.pdfViewer.update(p,this.rotate),this.annotation&&(this.pdfViewer.annotationLayer=this.pdfViewer.annotationLayerFactory.createAnnotationLayerBuilder(this.pdfViewer.div,this.pdfViewer.pdfPage),this.pdfViewer.annotationLayer.linkService=this.pdfLinkService),this.pdfViewer.draw(),this.text&&(this.pdfViewer.textLayer.findController=this.pdfFindController),this.loading=!1,this.$emit("loading",!1))},resizeScale:function(){this.resize&&this.drawScaled("page-width")}}},_hoisted_1$4={id:"viewerContainer",ref:"container"};function _sfc_render$6(p,f,S,d,R,g){const O=resolveComponent("resizeSensor");return openBlock(),createElementBlock("div",null,[p.loading?renderSlot(p.$slots,"loading",{key:0}):createCommentVNode("",!0),createBaseVNode("div",_hoisted_1$4,[f[0]||(f[0]=createBaseVNode("div",{id:"viewer",class:"pdfViewer"},null,-1)),createVNode(O,{initial:!0,onResize:g.resizeScale},null,8,["onResize"])],512)])}var pdf=_export_sfc(_sfc_main$6,[["render",_sfc_render$6]]),PdfViewer_vue_vue_type_style_index_0_scoped_true_lang="";const _sfc_main$5={components:{pdf},props:["pdfUrl"],data(){return{page:1,numPages:0,pdfdata:void 0,errors:[],scale:"page-width"}},mounted(){this.getPdf()},methods:{getPdf(){this.pdfdata=pdf.createLoadingTask(this.pdfUrl),this.pdfdata.then(p=>{this.numPages=p.numPages})}}},_hoisted_1$3={id:"pdfvuer"};function _sfc_render$5(p,f,S,d,R,g){const O=resolveComponent("pdf");return openBlock(),createElementBlock("div",_hoisted_1$3,[(openBlock(!0),createElementBlock(Fragment,null,renderList(R.numPages,J=>(openBlock(),createBlock(O,{src:R.pdfdata,key:J,id:J,page:J,scale:R.scale,"onUpdate:scale":f[0]||(f[0]=a=>R.scale=a),style:{width:"100%",margin:"20px auto"},annotation:!0,resize:!0},{loading:withCtx(()=>f[1]||(f[1]=[createTextVNode(" loading content here... ")])),_:2},1032,["src","id","page","scale"]))),128))])}var PdfViewer=_export_sfc(_sfc_main$5,[["render",_sfc_render$5],["__scopeId","data-v-f14388a6"]]),u8=Uint8Array,u16=Uint16Array,i32=Int32Array,fleb=new u8([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),fdeb=new u8([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),clim=new u8([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),freb=function(p,f){for(var S=new u16(31),d=0;d<31;++d)S[d]=f+=1<<p[d-1];for(var R=new i32(S[30]),d=1;d<30;++d)for(var g=S[d];g<S[d+1];++g)R[g]=g-S[d]<<5|d;return{b:S,r:R}},_a=freb(fleb,2),fl=_a.b,revfl=_a.r;fl[28]=258,revfl[258]=28;var _b=freb(fdeb,0),fd=_b.b,rev=new u16(32768);for(var i=0;i<32768;++i){var x=(i&43690)>>1|(i&21845)<<1;x=(x&52428)>>2|(x&13107)<<2,x=(x&61680)>>4|(x&3855)<<4,rev[i]=((x&65280)>>8|(x&255)<<8)>>1}var hMap=function(p,f,S){for(var d=p.length,R=0,g=new u16(f);R<d;++R)p[R]&&++g[p[R]-1];var O=new u16(f);for(R=1;R<f;++R)O[R]=O[R-1]+g[R-1]<<1;var J;if(S){J=new u16(1<<f);var a=15-f;for(R=0;R<d;++R)if(p[R])for(var se=R<<4|p[R],H=f-p[R],ee=O[p[R]-1]++<<H,ie=ee|(1<<H)-1;ee<=ie;++ee)J[rev[ee]>>a]=se}else for(J=new u16(d),R=0;R<d;++R)p[R]&&(J[R]=rev[O[p[R]-1]++]>>15-p[R]);return J},flt=new u8(288);for(var i=0;i<144;++i)flt[i]=8;for(var i=144;i<256;++i)flt[i]=9;for(var i=256;i<280;++i)flt[i]=7;for(var i=280;i<288;++i)flt[i]=8;var fdt=new u8(32);for(var i=0;i<32;++i)fdt[i]=5;var flrm=hMap(flt,9,1),fdrm=hMap(fdt,5,1),max=function(p){for(var f=p[0],S=1;S<p.length;++S)p[S]>f&&(f=p[S]);return f},bits=function(p,f,S){var d=f/8|0;return(p[d]|p[d+1]<<8)>>(f&7)&S},bits16=function(p,f){var S=f/8|0;return(p[S]|p[S+1]<<8|p[S+2]<<16)>>(f&7)},shft=function(p){return(p+7)/8|0},slc=function(p,f,S){return(f==null||f<0)&&(f=0),(S==null||S>p.length)&&(S=p.length),new u8(p.subarray(f,S))},ec=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],err=function(p,f,S){var d=new Error(f||ec[p]);if(d.code=p,Error.captureStackTrace&&Error.captureStackTrace(d,err),!S)throw d;return d},inflt=function(p,f,S,d){var R=p.length,g=d?d.length:0;if(!R||f.f&&!f.l)return S||new u8(0);var O=!S,J=O||f.i!=2,a=f.i;O&&(S=new u8(R*3));var se=function(ae){var ce=S.length;if(ae>ce){var fe=new u8(Math.max(ce*2,ae));fe.set(S),S=fe}},H=f.f||0,ee=f.p||0,ie=f.b||0,m=f.l,u=f.d,Y=f.m,re=f.n,U=R*8;do{if(!m){H=bits(p,ee,1);var X=bits(p,ee+1,3);if(ee+=3,X)if(X==1)m=flrm,u=fdrm,Y=9,re=5;else if(X==2){var E=bits(p,ee,31)+257,A=bits(p,ee+10,15)+4,_=E+bits(p,ee+5,31)+1;ee+=14;for(var F=new u8(_),D=new u8(19),L=0;L<A;++L)D[clim[L]]=bits(p,ee+L*3,7);ee+=A*3;for(var k=max(D),v=(1<<k)-1,y=hMap(D,k,1),L=0;L<_;){var b=y[bits(p,ee,v)];ee+=b&15;var W=b>>4;if(W<16)F[L++]=W;else{var C=0,w=0;for(W==16?(w=3+bits(p,ee,3),ee+=2,C=F[L-1]):W==17?(w=3+bits(p,ee,7),ee+=3):W==18&&(w=11+bits(p,ee,127),ee+=7);w--;)F[L++]=C}}var T=F.subarray(0,E),B=F.subarray(E);Y=max(T),re=max(B),m=hMap(T,Y,1),u=hMap(B,re,1)}else err(1);else{var W=shft(ee)+4,G=p[W-4]|p[W-3]<<8,P=W+G;if(P>R){a&&err(0);break}J&&se(ie+G),S.set(p.subarray(W,P),ie),f.b=ie+=G,f.p=ee=P*8,f.f=H;continue}if(ee>U){a&&err(0);break}}J&&se(ie+131072);for(var N=(1<<Y)-1,Q=(1<<re)-1,z=ee;;z=ee){var C=m[bits16(p,ee)&N],j=C>>4;if(ee+=C&15,ee>U){a&&err(0);break}if(C||err(2),j<256)S[ie++]=j;else if(j==256){z=ee,m=null;break}else{var $=j-254;if(j>264){var L=j-257,M=fleb[L];$=bits(p,ee,(1<<M)-1)+fl[L],ee+=M}var q=u[bits16(p,ee)&Q],K=q>>4;q||err(3),ee+=q&15;var B=fd[K];if(K>3){var M=fdeb[K];B+=bits16(p,ee)&(1<<M)-1,ee+=M}if(ee>U){a&&err(0);break}J&&se(ie+131072);var Z=ie+$;if(ie<B){var te=g-B,oe=Math.min(B,Z);for(te+ie<0&&err(3);ie<oe;++ie)S[ie]=d[te+ie]}for(;ie<Z;++ie)S[ie]=S[ie-B]}}f.l=m,f.p=z,f.b=ie,f.f=H,m&&(H=1,f.m=Y,f.d=u,f.n=re)}while(!H);return ie!=S.length&&O?slc(S,0,ie):S.subarray(0,ie)},et=new u8(0),gzs=function(p){(p[0]!=31||p[1]!=139||p[2]!=8)&&err(6,"invalid gzip data");var f=p[3],S=10;f&4&&(S+=(p[10]|p[11]<<8)+2);for(var d=(f>>3&1)+(f>>4&1);d>0;d-=!p[S++]);return S+(f&2)},gzl=function(p){var f=p.length;return(p[f-4]|p[f-3]<<8|p[f-2]<<16|p[f-1]<<24)>>>0},zls=function(p,f){return((p[0]&15)!=8||p[0]>>4>7||(p[0]<<8|p[1])%31)&&err(6,"invalid zlib data"),(p[1]>>5&1)==+!f&&err(6,"invalid zlib data: "+(p[1]&32?"need":"unexpected")+" dictionary"),(p[1]>>3&4)+2};function inflateSync(p,f){return inflt(p,{i:2},f&&f.out,f&&f.dictionary)}function gunzipSync(p,f){var S=gzs(p);return S+8>p.length&&err(6,"invalid gzip data"),inflt(p.subarray(S,-8),{i:2},f&&f.out||new u8(gzl(p)),f&&f.dictionary)}function unzlibSync(p,f){return inflt(p.subarray(zls(p,f&&f.dictionary),-4),{i:2},f&&f.out,f&&f.dictionary)}function decompressSync(p,f){return p[0]==31&&p[1]==139&&p[2]==8?gunzipSync(p,f):(p[0]&15)!=8||p[0]>>4>7||(p[0]<<8|p[1])%31?inflateSync(p,f):unzlibSync(p,f)}var td=typeof TextDecoder!="undefined"&&new TextDecoder,tds=0;try{td.decode(et,{stream:!0}),tds=1}catch(p){}var dutf8=function(p){for(var f="",S=0;;){var d=p[S++],R=(d>127)+(d>223)+(d>239);if(S+R>p.length)return{s:f,r:slc(p,S-1)};R?R==3?(d=((d&15)<<18|(p[S++]&63)<<12|(p[S++]&63)<<6|p[S++]&63)-65536,f+=String.fromCharCode(55296|d>>10,56320|d&1023)):R&1?f+=String.fromCharCode((d&31)<<6|p[S++]&63):f+=String.fromCharCode((d&15)<<12|(p[S++]&63)<<6|p[S++]&63):f+=String.fromCharCode(d)}};function strFromU8(p,f){if(f){for(var S="",d=0;d<p.length;d+=16384)S+=String.fromCharCode.apply(null,p.subarray(d,d+16384));return S}else{if(td)return td.decode(p);var R=dutf8(p),g=R.s,S=R.r;return S.length&&err(8),g}}const _sfc_main$4={props:["filedata"],data:()=>({data:null}),mounted(){const p=new Uint8Array(this.filedata),f=decompressSync(p),S=strFromU8(f);this.data=S.split(`
57
- `).map(d=>{try{return JSON.stringify(JSON.parse(d),null,2)}catch{return d}})}},_hoisted_1$2=["innerHTML"];function _sfc_render$4(p,f,S,d,R,g){return p.data?(openBlock(!0),createElementBlock(Fragment,{key:0},renderList(p.data,(O,J)=>(openBlock(),createElementBlock("pre",{key:J,innerHTML:O},null,8,_hoisted_1$2))),128)):createCommentVNode("",!0)}var LogGz=_export_sfc(_sfc_main$4,[["render",_sfc_render$4]]);const replaceRegex=(p,f)=>S=>S.replace(p,f),codeBlockRegex=/((\n\t)(.*))+/g,inlineCodeRegex=/(`)(.*?)\1/g,imageRegex=/!\[([^\[]+)\]\(([^\)]+)\)/g,linkRegex=/\[([^\[]+)\]\(([^\)]+)\)/g,headingRegex=/\n(#+\s*)(.*)/g,boldItalicsRegex=/(\*{1,2})(.*?)\1/g,strikethroughRegex=/(\~\~)(.*?)\1/g,blockquoteRegex=/\n(&gt;|\>)(.*)/g,horizontalRuleRegex=/\n((\-{3,})|(={3,}))/g,unorderedListRegex=/(\n\s*(\-|\+)\s.*)+/g,orderedListRegex=/(\n\s*([0-9]+\.)\s.*)+/g,paragraphRegex=/\n+(?!<pre>)(?!<h)(?!<ul>)(?!<blockquote)(?!<hr)(?!\t)([^\n]+)\n/g,codeBlockReplacer=p=>`
58
- <pre>${p}</pre>`,inlineCodeReplacer=(p,f,S)=>`<code>${S}</code>`,imageReplacer=(p,f,S)=>`<img src="${S}" alt="${f}" />`,linkReplacer=(p,f,S)=>`<a href="${S}">${f}</a>`,headingReplacer=(p,f,S)=>`
59
- <h${f.trim().length}>${S}</h${f.trim().length}>`,boldItalicsReplacer=(p,f,S)=>`<${f.trim().length===1?"em":"strong"}>${S}</${f.trim().length===1?"em":"strong"}>`,strikethroughReplacer=(p,f,S)=>`<del>${S}</del>`,blockquoteReplacer=(p,f,S)=>`
60
- <blockquote>${S}</blockquote>`,horizontalRuleReplacer=p=>`
61
- <hr />`,unorderedListReplacer=p=>{let f="";return p.trim().split(`
62
- `).forEach(S=>{f+=`<li>${S.substring(2)}</li>`}),`
63
- <ul>${f}</ul>`},orderedListReplacer=p=>{let f="";return p.trim().split(`
64
- `).forEach(S=>{f+=`<li>${S.substring(S.indexOf(".")+2)}</li>`}),`
65
- <ol>${f}</ol>`},paragraphReplacer=(p,f)=>`<p>${f}</p>`,replaceCodeBlocks=replaceRegex(codeBlockRegex,codeBlockReplacer),replaceInlineCodes=replaceRegex(inlineCodeRegex,inlineCodeReplacer),replaceImages=replaceRegex(imageRegex,imageReplacer),replaceLinks=replaceRegex(linkRegex,linkReplacer),replaceHeadings=replaceRegex(headingRegex,headingReplacer),replaceBoldItalics=replaceRegex(boldItalicsRegex,boldItalicsReplacer),replaceceStrikethrough=replaceRegex(strikethroughRegex,strikethroughReplacer),replaceBlockquotes=replaceRegex(blockquoteRegex,blockquoteReplacer),replaceHorizontalRules=replaceRegex(horizontalRuleRegex,horizontalRuleReplacer),replaceUnorderedLists=replaceRegex(unorderedListRegex,unorderedListReplacer),replaceOrderedLists=replaceRegex(orderedListRegex,orderedListReplacer),replaceParagraphs=replaceRegex(paragraphRegex,paragraphReplacer),codeBlockFixRegex=/\n(<pre>)((\n|.)*)(<\/pre>)/g,codeBlockFixer=(p,f,S,d,R)=>{let g="";return S.split(`
66
- `).forEach(O=>{g+=`${O.substring(1)}
67
- `}),f+g+R},fixCodeBlocks=replaceRegex(codeBlockFixRegex,codeBlockFixer),replaceMarkdown=p=>replaceParagraphs(replaceOrderedLists(replaceUnorderedLists(replaceHorizontalRules(replaceBlockquotes(replaceceStrikethrough(replaceBoldItalics(replaceHeadings(replaceLinks(replaceImages(replaceInlineCodes(replaceCodeBlocks(p)))))))))))),parseMarkdown=p=>fixCodeBlocks(replaceMarkdown(`
68
- ${p}
69
- `)).trim();var FilePreview_vue_vue_type_style_index_0_lang="";const _sfc_main$3={components:{LogGz,PdfViewer,EmailViewer},data:()=>({open:!1,editMode:!1,downloadProgress:0,abortControl:void 0,type:void 0,file:void 0,filename:void 0,fileData:void 0,fileDataEdited:void 0,previewConfig:[{extensions:["png","jpg","jpeg","webp","avif"],type:"image",downloadType:"objectUrl"},{extensions:["mp3"],type:"audio",downloadType:"objectUrl"},{extensions:["mp4","ogg"],type:"video",downloadType:"objectUrl"},{extensions:["pdf"],type:"pdf",downloadType:"objectUrl"},{extensions:["txt"],type:"text",downloadType:"text"},{extensions:["md"],type:"markdown",downloadType:"text"},{extensions:["csv"],type:"csv",downloadType:"text"},{extensions:["json"],type:"json",downloadType:"text"},{extensions:["html"],type:"html",downloadType:"text"},{extensions:["log.gz"],type:"logs",downloadType:"blob"},{extensions:["eml"],type:"email",downloadType:"text"}]}),methods:{getType(p){for(const f of this.previewConfig)for(const S of f.extensions)if(p.endsWith(S))return{type:f.type,downloadType:f.downloadType};return{type:"unknown",downloadType:"text"}},async openFile(p){if(bytesToMegabytes(p.size)>200){this.q.notify({message:"File is too big to preview.",color:"orange"});return}const f=this.getType(p.name);if(this.abortControl=new AbortController,await this.$router.push({name:"files-file",params:{bucket:this.$route.params.bucket,folder:this.$route.params.folder||ROOT_FOLDER,file:p.nameHash}}),this.filename=p.name,this.file=p,this.open=!0,f){this.type=f.type;const S=await apiHandler.downloadFile(this.$route.params.bucket,p.key,f,R=>{this.downloadProgress=R.loaded/R.total},this.abortControl);let d;if(f.downloadType==="objectUrl"){const R=new Blob([S.data]);d=URL.createObjectURL(R)}else f.downloadType,d=S.data;this.fileData=d}},close(){this.abortControl&&this.abortControl.abort(),this.cancelEdit(),this.$route.params.file&&(this.$route.params.folder===ROOT_FOLDER?this.$router.push({name:"files-home",params:{bucket:this.$route.params.bucket}}):this.$router.push({name:"files-folder",params:{bucket:this.$route.params.bucket,folder:this.$route.params.folder}})),this.type=void 0,this.fileData=void 0,this.filename=void 0,this.abortControl=void 0,this.downloadProgress=0},markdownParser(p){return parseMarkdown(p)},csvParser:p=>{let f="";const S=p.split(`
70
- `);if(S.length===0)return"<h2>Empty csv</h2>";for(const[d,R]of S.entries()){let g="";const O=R.split(/(\s*"[^"]+"\s*|\s*[^,]+|,)(?=,|$)/g).filter(J=>J!==""&&J!==",");for(const J of O)d===0?g+=`<th>${J.replaceAll('"',"")}</th>`:g+=`<td>${J.replaceAll('"',"")}</td>`;f+=`<tr>${g}</tr>`}return`<table class="table">${f}</table>`},enableEdit:function(){typeof this.fileData=="object"?this.fileDataEdited=JSON.stringify(this.fileData,null,2):this.fileDataEdited=this.fileData,this.editMode=!0},cancelEdit:function(){this.editMode=!1,this.fileDataEdited=void 0},validateEdit:(p,f)=>{if(p==="json")try{return JSON.parse(f),!0}catch{return!1}return!0},saveEdit:async function(){var R,g;if(!this.validateEdit(this.type,this.fileDataEdited)){this.q.notify({type:"negative",message:`Content is not valid ${this.type}.`});return}const f=this.q.notify({group:!1,spinner:!0,message:"Updating file...",caption:"0%",timeout:0}),S={};(R=this.file.httpMetadata)!=null&&R.contentType&&(S.type=(g=this.file.httpMetadata)==null?void 0:g.contentType);const d=new Blob([this.fileDataEdited],S);await apiHandler.uploadObjects(d,this.file.key,this.selectedBucket,O=>{f({caption:`${Number.parseInt(O.loaded*100/d.size)}%`})}),f({icon:"done",spinner:!1,caption:"100%",message:"File updated!",timeout:5e3}),this.cancelEdit(),this.openFile(this.file)}},computed:{selectedBucket:function(){return this.$route.params.bucket}},setup(){return{q:useQuasar()}}},_hoisted_1$1={class:"text-center q-my-lg"},_hoisted_2$1={class:"text-center q-my-lg"},_hoisted_3$1={key:0,class:"flex column",style:{height:"100%"}},_hoisted_4$1={class:"file-edit"},_hoisted_5$1=["src"],_hoisted_6$1={key:3,class:"text-center"},_hoisted_7$1={controls:""},_hoisted_8=["src"],_hoisted_9={key:4,class:"text-center"},_hoisted_10={controls:"",style:{"max-width":"100%",height:"auto"}},_hoisted_11=["src"],_hoisted_12=["innerHTML"],_hoisted_13=["innerHTML"],_hoisted_14=["innerHTML"],_hoisted_15=["innerHTML"],_hoisted_16=["innerHTML"],_hoisted_17={key:12,class:"flex column",style:{height:"100%","flex-wrap":"nowrap","max-width":"100%","line-break":"anywhere"}},_hoisted_18={class:"file-edit"},_hoisted_19=["innerHTML"];function _sfc_render$3(p,f,S,d,R,g){const O=resolveComponent("pdf-viewer"),J=resolveComponent("log-gz"),a=resolveComponent("email-viewer");return openBlock(),createBlock(QDialog,{modelValue:p.open,"onUpdate:modelValue":f[1]||(f[1]=se=>p.open=se),"full-width":"","full-height":"",onHide:g.close},{default:withCtx(()=>[createVNode(QCard,{class:"flex column"},{default:withCtx(()=>[createVNode(QCardSection,{class:"row items-center q-p-sm bg-grey-3",style:{"font-size":"20px"}},{default:withCtx(()=>[createBaseVNode("div",null,toDisplayString(p.filename),1),p.editMode?(openBlock(),createElementBlock(Fragment,{key:0},[createVNode(QBtn,{icon:"delete",label:"Cancel",size:"md",class:"q-ml-md",color:"red",dense:"",onClick:g.cancelEdit},null,8,["onClick"]),createVNode(QBtn,{icon:"save",label:"Save",size:"md",class:"q-ml-md",color:"green",dense:"",onClick:g.saveEdit},null,8,["onClick"])],64)):(openBlock(),createBlock(QBtn,{key:1,icon:"edit",label:"edit",size:"md",class:"q-ml-md",color:"orange",dense:"",onClick:g.enableEdit},null,8,["onClick"])),createVNode(QSpace),withDirectives(createVNode(QBtn,{icon:"close",size:"md",round:"",dense:""},null,512),[[ClosePopup]])]),_:1}),createVNode(QCardSection,{class:"scroll",style:{flex:"1"}},{default:withCtx(()=>[p.fileData===void 0&&p.type?(openBlock(),createElementBlock(Fragment,{key:0},[createBaseVNode("div",_hoisted_1$1,[createVNode(QSpinner,{color:"primary",size:"3em"})]),createBaseVNode("div",_hoisted_2$1,[createVNode(QLinearProgress,{stripe:"",size:"10px",value:p.downloadProgress},null,8,["value"])])],64)):(openBlock(),createElementBlock(Fragment,{key:1},[p.editMode?(openBlock(),createElementBlock("div",_hoisted_3$1,[createVNode(QCard,{class:"bg-orange-2",flat:"",square:""},{default:withCtx(()=>[createVNode(QCardSection,null,{default:withCtx(()=>f[2]||(f[2]=[createTextVNode(" File editing is still in tests! ")])),_:1})]),_:1}),createBaseVNode("div",_hoisted_4$1,[createVNode(QInput,{modelValue:p.fileDataEdited,"onUpdate:modelValue":f[0]||(f[0]=se=>p.fileDataEdited=se),filled:"",outlined:"",type:"textarea"},null,8,["modelValue"])])])):p.type==="pdf"?(openBlock(),createBlock(O,{key:1,pdfUrl:p.fileData},null,8,["pdfUrl"])):p.type==="image"?(openBlock(),createElementBlock("img",{key:2,src:p.fileData,class:"preview-image"},null,8,_hoisted_5$1)):p.type==="audio"?(openBlock(),createElementBlock("div",_hoisted_6$1,[createBaseVNode("audio",_hoisted_7$1,[createBaseVNode("source",{src:p.fileData},null,8,_hoisted_8),f[3]||(f[3]=createTextVNode(" Your browser does not support the audio element. "))])])):p.type==="video"?(openBlock(),createElementBlock("div",_hoisted_9,[createBaseVNode("video",_hoisted_10,[createBaseVNode("source",{src:p.fileData},null,8,_hoisted_11),f[4]||(f[4]=createTextVNode(" Your browser does not support the video tag. "))])])):p.type==="text"?(openBlock(),createElementBlock("div",{key:5,innerHTML:p.fileData.replaceAll(`
71
- `,"<br>")},null,8,_hoisted_12)):p.type==="json"?(openBlock(),createElementBlock("pre",{key:6,innerHTML:JSON.stringify(p.fileData,null,2)},null,8,_hoisted_13)):p.type==="html"?(openBlock(),createElementBlock("pre",{key:7,innerHTML:p.fileData},null,8,_hoisted_14)):p.type==="markdown"?(openBlock(),createElementBlock("div",{key:8,class:"markdown",innerHTML:g.markdownParser(p.fileData)},null,8,_hoisted_15)):p.type==="csv"?(openBlock(),createElementBlock("div",{key:9,class:"markdown",innerHTML:g.csvParser(p.fileData)},null,8,_hoisted_16)):p.type==="logs"?(openBlock(),createBlock(J,{key:10,filedata:p.fileData},null,8,["filedata"])):p.type==="email"?(openBlock(),createBlock(a,{key:11,filedata:p.fileData},null,8,["filedata"])):p.fileData?(openBlock(),createElementBlock("div",_hoisted_17,[createVNode(QCard,{class:"bg-orange-2",flat:"",square:""},{default:withCtx(()=>[createVNode(QCardSection,null,{default:withCtx(()=>f[5]||(f[5]=[createTextVNode(" This in a unknown file type, opening as text. ")])),_:1})]),_:1}),createBaseVNode("div",_hoisted_18,[createBaseVNode("div",{innerHTML:p.fileData.replaceAll(`
72
- `,"<br>")},null,8,_hoisted_19)])])):createCommentVNode("",!0)],64))]),_:1})]),_:1})]),_:1},8,["modelValue","onHide"])}var FilePreview=_export_sfc(_sfc_main$3,[["render",_sfc_render$3]]),DragAndDrop_vue_vue_type_style_index_0_scoped_true_lang="";const _sfc_main$2={data:()=>({isHover:!1,filelist:[],dragContainer:{top:0,bottom:0,left:0,right:0}}),computed:{selectedBucket:function(){return this.$route.params.bucket},selectedFolder:function(){return this.$route.params.folder&&this.$route.params.folder!==ROOT_FOLDER?decode(this.$route.params.folder):""}},methods:{openFilesUploader(){this.$refs.filesUploader.click()},openFoldersUploader(){this.$refs.foldersUploader.click()},dragover(p){if(this.mainStore.apiReadonly||this.isHover===!0)return;const f=this.$refs.dragContainer.getBoundingClientRect();this.dragContainer={top:f.top,bottom:f.bottom,left:f.left,right:f.right},this.isHover=!0},dragleave(p){this.isHover!==!1&&(p.clientX<this.dragContainer.left||p.clientX>this.dragContainer.right||p.clientY>this.dragContainer.bottom||p.clientY<this.dragContainer.top)&&(this.isHover=!1)},inputFiles(p){this.uploadFiles({"":p.target.files})},inputFolders(p){const f={};for(const S of p.target.files){const d=S.webkitRelativePath.lastIndexOf("/"),R=S.webkitRelativePath.slice(0,d);f[R]===void 0&&(f[R]=[]),f[R].push(S)}this.uploadFiles(f)},async uploadFiles(p){let f=0,S=0;const d=[];for(const[J,a]of Object.entries(p)){if(J!==""){const se=`${this.selectedFolder+J}/`;await apiHandler.createFolder(se,this.selectedBucket)}f+=a.length;for(const se of a)d.push(se.name),S+=se.size}this.$bus.emit("fetchFiles");const R=this.q.notify({group:!1,spinner:!0,message:`Uploading files 1/${d.length}...`,caption:"0%",timeout:0});let g=0,O=0;for(const[J,a]of Object.entries(p)){R({message:`Uploading files ${g+1}/${d.length}...`,caption:`${Number.parseInt((g+1)*100/d.length)}%`});let se=this.selectedFolder+J;se.length>0&&se.slice(-1)!=="/"&&(se+="/"),(se==="/"||se===ROOT_FOLDER)&&(se="");for(const H of a){g+=1;const ee=se+H.name,ie=95*1024*1024;if(H.size>ie){const{uploadId:m}=(await apiHandler.multipartCreate(H,ee,this.selectedBucket)).data;let u=1;const Y=[];for(let re=0;re<H.size;re+=ie){const U=Math.min(re+ie,H.size),X=H.slice(re,U),{data:W}=await apiHandler.multipartUpload(m,u,this.selectedBucket,ee,X,G=>{R({caption:`${Number.parseInt((O+re+G.loaded)*100/S)}%`})});Y.push(W),u+=1}await apiHandler.multipartComplete(H,ee,this.selectedBucket,Y,m)}else await apiHandler.uploadObjects(H,ee,this.selectedBucket,m=>{R({caption:`${Number.parseInt((O+m.loaded)*100/S)}%`})});O+=H.size}}R({icon:"done",spinner:!1,caption:"100%",message:"Files Uploaded!",timeout:5e3}),this.$bus.emit("fetchFiles")},async traverseFileTree(p,f,S,d){if(f=f||"",p.isFile&&d>0)await new Promise((g,O)=>{p.file(J=>{S[f].push(J),g()})});else if(p.isDirectory){const R=f?`${f}/${p.name}`:p.name;S[R]===void 0&&(S[R]=[]);const g=p.createReader();await new Promise((J,a)=>{g.readEntries(async se=>{for(let H=0;H<se.length;H++)await this.traverseFileTree(se[H],R,S,d+1);J()})})}},async drop(p){if(!this.isHover)return;const f=p.dataTransfer.files,S=await p.dataTransfer.items,d={};for(const g of S){const O=g.webkitGetAsEntry();O&&await this.traverseFileTree(O,"",d,0)}const R=[];for(const g of f)d[g.name]===void 0&&R.push(g);d[""]=R,this.uploadFiles(d),this.isHover=!1}},mounted(){this.$bus.on("openFilesUploader",this.openFilesUploader),this.$bus.on("openFoldersUploader",this.openFoldersUploader)},beforeUnmount(){this.$bus.off("openFilesUploader"),this.$bus.off("openFoldersUploader")},setup(){return{mainStore:useMainStore(),q:useQuasar()}}};function _sfc_render$2(p,f,S,d,R,g){return openBlock(),createElementBlock(Fragment,null,[createBaseVNode("div",{ref:"dragContainer",class:normalizeClass(["upload-box",{active:p.isHover}]),onDragover:f[0]||(f[0]=withModifiers((...O)=>g.dragover&&g.dragover(...O),["prevent"])),onDragleave:f[1]||(f[1]=withModifiers((...O)=>g.dragleave&&g.dragleave(...O),["prevent"])),onDrop:f[2]||(f[2]=withModifiers((...O)=>g.drop&&g.drop(...O),["prevent"]))},[renderSlot(p.$slots,"default",{},void 0,!0),f[5]||(f[5]=createBaseVNode("div",{class:"drop-files"},[createBaseVNode("div",{class:"box"},[createBaseVNode("h3",null,"Drop files to upload"),createBaseVNode("span",{class:"font-28"},[createBaseVNode("i",{class:"bi bi-cloud-upload-fill"})])])],-1))],34),createBaseVNode("input",{style:{display:"none"},onChange:f[3]||(f[3]=(...O)=>g.inputFiles&&g.inputFiles(...O)),type:"file",name:"files[]",ref:"filesUploader",multiple:""},null,544),createBaseVNode("input",{style:{display:"none"},onChange:f[4]||(f[4]=(...O)=>g.inputFolders&&g.inputFolders(...O)),type:"file",webkitdirectory:"",name:"files[]",ref:"foldersUploader",multiple:""},null,544)],64)}var DragAndDrop=_export_sfc(_sfc_main$2,[["render",_sfc_render$2],["__scopeId","data-v-8e99a572"]]);const _sfc_main$1={name:"FileContextMenu",props:{prop:{}},computed:{selectedBucket:function(){return this.$route.params.bucket},selectedFolder:function(){return this.$route.params.folder&&this.$route.params.folder!==ROOT_FOLDER?decode(this.$route.params.folder):""}},methods:{renameObject:function(){this.$emit("renameObject",this.prop.row)},openObject:function(){this.$emit("openObject",this.prop.row)},deleteObject:function(){this.$emit("deleteObject",this.prop.row)},shareObject:async function(){let p;this.prop.row.type==="folder"?p=window.location.origin+this.$router.resolve({name:"files-folder",params:{bucket:this.selectedBucket,folder:encode(this.prop.row.key)}}).href:p=window.location.origin+this.$router.resolve({name:"files-file",params:{bucket:this.selectedBucket,folder:this.selectedFolder?encode(this.selectedFolder):ROOT_FOLDER,file:this.prop.row.nameHash}}).href;try{await navigator.clipboard.writeText(p),this.q.notify({message:"Link to file copied to clipboard!",timeout:5e3,type:"positive"})}catch(f){this.q.notify({message:`Failed to copy: ${f}`,timeout:5e3,type:"negative"})}},downloadObject:function(){const p=document.createElement("a");p.download=this.prop.row.name,p.href=`${this.mainStore.serverUrl}/api/buckets/${this.selectedBucket}/${encode(this.prop.row.key)}`,document.body.appendChild(p),p.click(),document.body.removeChild(p)}},setup(){return{mainStore:useMainStore(),q:useQuasar()}}};function _sfc_render$1(p,f,S,d,R,g){return openBlock(),createBlock(QList,{style:{"min-width":"100px"}},{default:withCtx(()=>[withDirectives((openBlock(),createBlock(QItem,{clickable:"",onClick:g.openObject},{default:withCtx(()=>[createVNode(QItemSection,null,{default:withCtx(()=>f[0]||(f[0]=[createTextVNode("Open")])),_:1})]),_:1},8,["onClick"])),[[ClosePopup]]),S.prop.row.type==="file"?withDirectives((openBlock(),createBlock(QItem,{key:0,clickable:"",onClick:g.downloadObject},{default:withCtx(()=>[createVNode(QItemSection,null,{default:withCtx(()=>f[1]||(f[1]=[createTextVNode("Download")])),_:1})]),_:1},8,["onClick"])),[[ClosePopup]]):createCommentVNode("",!0),S.prop.row.type==="file"?withDirectives((openBlock(),createBlock(QItem,{key:1,clickable:"",onClick:g.renameObject},{default:withCtx(()=>[createVNode(QItemSection,null,{default:withCtx(()=>f[2]||(f[2]=[createTextVNode("Rename")])),_:1})]),_:1},8,["onClick"])),[[ClosePopup]]):createCommentVNode("",!0),withDirectives((openBlock(),createBlock(QItem,{clickable:"",onClick:g.shareObject},{default:withCtx(()=>[createVNode(QItemSection,null,{default:withCtx(()=>f[3]||(f[3]=[createTextVNode("Get sharable link")])),_:1})]),_:1},8,["onClick"])),[[ClosePopup]]),withDirectives((openBlock(),createBlock(QItem,{clickable:"",onClick:g.deleteObject},{default:withCtx(()=>[createVNode(QItemSection,null,{default:withCtx(()=>f[4]||(f[4]=[createTextVNode("Delete")])),_:1})]),_:1},8,["onClick"])),[[ClosePopup]])]),_:1})}var FileContextMenu=_export_sfc(_sfc_main$1,[["render",_sfc_render$1]]),FilesFolderPage_vue_vue_type_style_index_0_lang="";const _sfc_main=defineComponent({name:"FilesIndexPage",components:{FileContextMenu,FileOptions,DragAndDrop,FilePreview},data:()=>({loading:!1,rows:[],columns:[{name:"name",required:!0,label:"Name",align:"left",field:"name",sortable:!0,sort:(p,f,S,d)=>S.type==="folder"?d.type==="folder"?p.localeCompare(f):1:d.type==="folder"?-1:p.localeCompare(f)},{name:"lastModified",required:!0,label:"Last Modified",align:"left",field:"lastModified",sortable:!0,sort:(p,f,S,d)=>S.timestamp-d.timestamp},{name:"size",required:!0,label:"Size",align:"left",field:"size",sortable:!0,sort:(p,f,S,d)=>S.sizeRaw-d.sizeRaw},{name:"options",label:"",sortable:!1}]}),computed:{selectedBucket:function(){return this.$route.params.bucket},selectedFolder:function(){return this.$route.params.folder&&this.$route.params.folder!==ROOT_FOLDER?decode(this.$route.params.folder):""},breadcrumbs:function(){return this.selectedFolder?[{name:this.selectedBucket,path:"/"},...this.selectedFolder.split("/").filter(p=>p!=="").map((p,f,S)=>({name:p,path:`${S.slice(0,f+1).join("/").replace("Home/","")}/`}))]:[{name:this.selectedBucket,path:"/"}]}},watch:{selectedBucket(p){this.fetchFiles()},selectedFolder(p){this.fetchFiles()}},methods:{openRowClick:function(p,f,S){p.preventDefault(),this.openObject(f)},openRowDlbClick:function(p,f,S){p.preventDefault(),this.$bus.emit("openFileDetails",f)},breadcrumbsClick:function(p){this.$router.push({name:"files-folder",params:{bucket:this.selectedBucket,folder:encode(p.path)}})},rowClick:function(p,f){f.type==="folder"?this.$router.push({name:"files-folder",params:{bucket:this.selectedBucket,folder:encode(f.key)}}):this.$refs.preview.openFile(f)},openObject:function(p){p.type==="folder"?this.$router.push({name:"files-folder",params:{bucket:this.selectedBucket,folder:encode(p.key)}}):this.$refs.preview.openFile(p)},renameObject:function(p){p.type==="folder"?this.$router.push({name:"files-folder",params:{bucket:this.selectedBucket,folder:encode(p.key)}}):this.$refs.preview.openFile(p)},fetchFiles:async function(){this.loading=!0,this.rows=await apiHandler.fetchFile(this.selectedBucket,this.selectedFolder,"/"),this.loading=!1},openPreviewFromKey:async function(){let p=`${decode(this.$route.params.file)}`;this.selectedFolder&&this.selectedFolder!==ROOT_FOLDER&&(p=`${this.selectedFolder}${decode(this.$route.params.file)}`);const f=await apiHandler.headFile(this.selectedBucket,p);this.$refs.preview.openFile(f)}},created(){this.fetchFiles()},mounted(){this.$refs.table.sort("name"),this.$bus.on("fetchFiles",this.fetchFiles),this.$route.params.file&&this.openPreviewFromKey()},beforeUnmount(){this.$bus.off("fetchFiles")},setup(){return{mainStore:useMainStore(),q:useQuasar()}}}),_hoisted_1={class:"q-pa-md"},_hoisted_2={class:"full-width q-my-lg"},_hoisted_3={class:"flex items-center justify-center"},_hoisted_4={key:0,class:"full-width q-my-lg"},_hoisted_5={class:"flex items-center justify-center"},_hoisted_6={class:"flex",style:{"align-items":"center"}},_hoisted_7={class:"text-right"};function _sfc_render(p,f,S,d,R,g){const O=resolveComponent("FileContextMenu"),J=resolveComponent("drag-and-drop"),a=resolveComponent("file-preview"),se=resolveComponent("file-options");return openBlock(),createElementBlock(Fragment,null,[createVNode(QPage,{class:""},{default:withCtx(()=>[createBaseVNode("div",_hoisted_1,[createVNode(QBreadcrumbs,null,{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(p.breadcrumbs,H=>(openBlock(),createBlock(QBreadcrumbsEl,{style:{cursor:"pointer"},key:H.name,label:H.name,onClick:ee=>p.breadcrumbsClick(H)},null,8,["label","onClick"]))),128))]),_:1}),createVNode(J,{ref:"uploader"},{default:withCtx(()=>[createVNode(QTable,{ref:"table",rows:p.rows,columns:p.columns,"row-key":"name",loading:p.loading,"hide-pagination":!0,"rows-per-page-options":[0],"column-sort-order":"da",flat:!0,"table-class":"file-list",onRowDblclick:p.openRowClick,onRowClick:p.openRowDlbClick},{loading:withCtx(()=>[createBaseVNode("div",_hoisted_2,[createBaseVNode("h6",_hoisted_3,[createVNode(QSpinner,{color:"primary",size:"xl"})])])]),"no-data":withCtx(()=>[p.loading?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_4,[createBaseVNode("h6",_hoisted_5,[createVNode(QIcon,{name:"folder",color:"orange",size:"lg"}),f[0]||(f[0]=createTextVNode("This folder is empty"))])]))]),"body-cell-name":withCtx(H=>[createBaseVNode("td",_hoisted_6,[createVNode(QIcon,{name:H.row.icon,size:"sm",color:H.row.color,class:"q-mr-xs"},null,8,["name","color"]),createTextVNode(" "+toDisplayString(H.row.name),1)])]),"body-cell":withCtx(H=>[createVNode(QTd,{props:H},{default:withCtx(()=>[createTextVNode(toDisplayString(H.value),1)]),_:2},1032,["props"]),createVNode(QMenu,{"touch-position":"","context-menu":""},{default:withCtx(()=>[createVNode(O,{prop:H,onOpenObject:p.openObject,onDeleteObject:p.$refs.options.deleteObject,onRenameObject:p.$refs.options.renameObject},null,8,["prop","onOpenObject","onDeleteObject","onRenameObject"])]),_:2},1024)]),"body-cell-options":withCtx(H=>[createBaseVNode("td",_hoisted_7,[createVNode(QBtn,{round:"",flat:"",icon:"more_vert",size:"sm"},{default:withCtx(()=>[createVNode(QMenu,null,{default:withCtx(()=>[createVNode(O,{prop:H,onOpenObject:p.openObject,onDeleteObject:p.$refs.options.deleteObject,onRenameObject:p.$refs.options.renameObject},null,8,["prop","onOpenObject","onDeleteObject","onRenameObject"])]),_:2},1024)]),_:2},1024)])]),_:1},8,["rows","columns","loading","onRowDblclick","onRowClick"])]),_:1},512)])]),_:1}),createVNode(a,{ref:"preview"},null,512),createVNode(se,{ref:"options"},null,512)],64)}var FilesFolderPage=_export_sfc(_sfc_main,[["render",_sfc_render]]);export{FilesFolderPage as default};