file-viewer-demo/public/file-viewer3/assets/pdf.worker-909112bf.js

67 lines
1.1 MiB
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(function(){"use strict";var qn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function fr(en){if(en.__esModule)return en;var rn=en.default;if(typeof rn=="function"){var Gt=function At(){if(this instanceof At){var Yt=[null];Yt.push.apply(Yt,arguments);var mn=Function.bind.apply(rn,Yt);return new mn}return rn.apply(this,arguments)};Gt.prototype=rn.prototype}else Gt={};return Object.defineProperty(Gt,"__esModule",{value:!0}),Object.keys(en).forEach(function(At){var Yt=Object.getOwnPropertyDescriptor(en,At);Object.defineProperty(Gt,At,Yt.get?Yt:{enumerable:!0,get:function(){return en[At]}})}),Gt}var Na={},dr={get exports(){return Na},set exports(en){Na=en}},gr={},mr=Object.freeze({__proto__:null,default:gr}),La=fr(mr),$a={},Ua;function xr(){return Ua||(Ua=1,function(){function en(i,O,P){if(P||arguments.length===2)for(var e,N=0,D=O.length;N<D;N++)!e&&N in O||(e||(e=Array.prototype.slice.call(O,0,N)),e[N]=O[N]);return i.concat(e||Array.prototype.slice.call(O))}var rn={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},Gt=/([astvzqmhlc])([^astvzqmhlc]*)/gi,At=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;function Yt(i){var O=[],P=String(i).trim();return P[0]!=="M"&&P[0]!=="m"||P.replace(Gt,function(e,N,D){var L=function(g){var n=g.match(At);return n?n.map(Number):[]}(D),k=N.toLowerCase(),x=N;if(k==="m"&&L.length>2&&(O.push(en([x],L.splice(0,2),!0)),k="l",x=x==="m"?"l":"L"),L.length<rn[k])return"";for(O.push(en([x],L.splice(0,rn[k]),!0));L.length>=rn[k]&&L.length&&rn[k];)O.push(en([x],L.splice(0,rn[k]),!0));return""}),O}function mn(i,O){var P=i.x*Math.cos(O)-i.y*Math.sin(O),e=i.y*Math.cos(O)+i.x*Math.sin(O);i.x=P,i.y=e}function he(i,O){i.x*=O,i.y*=O}var l=function(){function i(O){var P;this.commands=[],O&&O instanceof i?(P=this.commands).push.apply(P,O.commands):O&&(this.commands=Yt(O))}return i.prototype.addPath=function(O){var P;O&&O instanceof i&&(P=this.commands).push.apply(P,O.commands)},i.prototype.moveTo=function(O,P){this.commands.push(["M",O,P])},i.prototype.lineTo=function(O,P){this.commands.push(["L",O,P])},i.prototype.arc=function(O,P,e,N,D,L){this.commands.push(["AC",O,P,e,N,D,!!L])},i.prototype.arcTo=function(O,P,e,N,D){this.commands.push(["AT",O,P,e,N,D])},i.prototype.ellipse=function(O,P,e,N,D,L,k,x){this.commands.push(["E",O,P,e,N,D,L,k,!!x])},i.prototype.closePath=function(){this.commands.push(["Z"])},i.prototype.bezierCurveTo=function(O,P,e,N,D,L){this.commands.push(["C",O,P,e,N,D,L])},i.prototype.quadraticCurveTo=function(O,P,e,N){this.commands.push(["Q",O,P,e,N])},i.prototype.rect=function(O,P,e,N){this.commands.push(["R",O,P,e,N])},i.prototype.roundRect=function(O,P,e,N,D){D===void 0?this.commands.push(["RR",O,P,e,N,0]):this.commands.push(["RR",O,P,e,N,D])},i}();function w(i,O){var P,e,N,D,L,k,x,g,n,I,B,h,c,C,u,m,X,f,F,s,d,S,r,o,A=0,p=0,v=null,R=null,T=null,y=null,H=null,z=null;i.beginPath();for(var $=0;$<O.length;++$){(f=O[$][0])!=="S"&&f!=="s"&&f!=="C"&&f!=="c"&&(v=null,R=null),f!=="T"&&f!=="t"&&f!=="Q"&&f!=="q"&&(T=null,y=null);var j=void 0;switch(f){case"m":case"M":j=O[$],f==="m"?(A+=j[1],p+=j[2]):(A=j[1],p=j[2]),f!=="M"&&H||(H={x:A,y:p}),i.moveTo(A,p);break;case"l":A+=(j=O[$])[1],p+=j[2],i.lineTo(A,p);break;case"L":A=(j=O[$])[1],p=j[2],i.lineTo(A,p);break;case"H":A=(j=O[$])[1],i.lineTo(A,p);break;case"h":A+=(j=O[$])[1],i.lineTo(A,p);break;case"V":p=(j=O[$])[1],i.lineTo(A,p);break;case"v":p+=(j=O[$])[1],i.lineTo(A,p);break;case"a":case"A":if(j=O[$],z===null)throw new Error("This should never happen");f==="a"?(A+=j[6],p+=j[7]):(A=j[6],p=j[7]),C=j[1],u=j[2],x=j[3]*Math.PI/180,N=!!j[4],D=!!j[5],L={x:A,y:p},mn(k={x:(z.x-L.x)/2,y:(z.y-L.y)/2},-x),(g=k.x*k.x/(C*C)+k.y*k.y/(u*u))>1&&(C*=g=Math.sqrt(g),u*=g),n=C*C*u*u,I=C*C*k.y*k.y+u*u*k.x*k.x,he(F={x:C*k.y/u,y:-u*k.x/C},D!==N?Math.sqrt((n-I)/I)||0:-Math.sqrt((n-I)/I)||0),e=Math.atan2((k.y-F.y)/u,(k.x-F.x)/C),P=Math.atan2(-(k.y+F.y)/u,-(k.x+F.x)/C),mn(F,x),S=F,r=(L.x+z.x)/2,o=(L.y+z.y)/2,S.x+=r,S.y+=o,i.save(),i.translate(F.x,F.y),i.rotate(x),i.scale(C,u),i.arc(0,0,1,e,P,!D),i.restore();break;case"C":v=(j=O[$])[3],R=j[4],A=j[5],p=j[6],i.bezierCurveTo(j[1],j[2],v,R,A,p);break;case"c":j=O[$],i.bezierCurveTo(j[1]+A,j[2]+p,j[3]+A,j[4]+p,j[5]+A,j[6]+p),v=j[3]+A,R=j[4]+p,A+=j[5],p+=j[6];break;case"S":j=O[$],v!==null&&R!==null||(v=A,R=p),i.bezierCurveTo(2*A-v,2*p-R,j[1],j[2],j[3],j[4]),v=j[1],R=j[2],A=j[3],p=j[4];break;case"s":j=O[$],v!==null&&R!==null||(v=A,R=p),i.bezierCurveTo(2*A-v,2*p-R,j[1]+A,j[2]+p,j[3]+A,j[4]+p),v=j[1]+A,R=j[2]+p,A+=j[3],p+=j[4];break;case"Q":T=(j=O[$])[1],y=j[2],A=j[3],p=j[4],i.quadraticCurveTo(T,y,A,p);break;case"q":T=(j=O[$])[1]+A,y=j[2]+p,A+=j[3],p+=j[4],i.quadraticCurveTo(T,y,A,p);break;case"T":T!==null&&y!==null||(T=A,y=p),T=2*A-T,y=2*p-y,A=(j=O[$])[1],p=j[2],i.quadraticCurveTo(T,y,A,p);break;case"t":T!==null&&y!==null||(T=A,y=p),T=2*A-T,y=2*p-y,A+=(j=O[$])[1],p+=j[2],i.quadraticCurveTo(T,y,A,p);break;case"z":case"Z":H&&(A=H.x,p=H.y),H=null,i.closePath();break;case"AC":A=(j=O[$])[1],p=j[2],c=j[3],e=j[4],P=j[5],s=j[6],i.arc(A,p,c,e,P,s);break;case"AT":B=(j=O[$])[1],h=j[2],A=j[3],p=j[4],c=j[5],i.arcTo(B,h,A,p,c);break;case"E":A=(j=O[$])[1],p=j[2],C=j[3],u=j[4],x=j[5],e=j[6],P=j[7],s=j[8],i.save(),i.translate(A,p),i.rotate(x),i.scale(C,u),i.arc(0,0,1,e,P,s),i.restore();break;case"R":A=(j=O[$])[1],p=j[2],m=j[3],X=j[4],H={x:A,y:p},i.rect(A,p,m,X);break;case"RR":A=(j=O[$])[1],p=j[2],m=j[3],X=j[4],d=j[5],H={x:A,y:p},i.roundRect(A,p,m,X,d)}z?(z.x=A,z.y=p):z={x:A,y:p}}}function t(i,O,P,e,N){var D=this;if(N===void 0&&(N=0),typeof N=="number"&&(N=[N]),Array.isArray(N)){if(N.length===0||N.length>4)throw new RangeError("Failed to execute 'roundRect' on '".concat(this.constructor.name,"': ").concat(N.length," radii provided. Between one and four radii are necessary."));if(N.forEach(function(I){if(I<0)throw new RangeError("Failed to execute 'roundRect' on '".concat(D.constructor.name,"': Radius value ").concat(I," is negative."))}),N.length===1&&N[0]===0)return this.rect(i,O,P,e);var L,k,x,g=Math.min(P,e)/2,n=L=k=x=Math.min(g,N[0]);N.length===2&&(L=x=Math.min(g,N[1])),N.length===3&&(L=x=Math.min(g,N[1]),k=Math.min(g,N[2])),N.length===4&&(L=Math.min(g,N[1]),k=Math.min(g,N[2]),x=Math.min(g,N[3])),this.moveTo(i,O+e-x),this.arcTo(i,O,i+n,O,n),this.arcTo(i+P,O,i+P,O+L,L),this.arcTo(i+P,O+e,i+P-k,O+e,k),this.arcTo(i,O+e,i,O+e-x,x),this.moveTo(i,O)}}(function(i){if(i&&i.CanvasRenderingContext2D&&!i.Path2D){var O=i.CanvasRenderingContext2D,P=O.prototype.fill,e=O.prototype.stroke,N=O.prototype.isPointInPath;O.prototype.fill=function(){for(var D=[],L=0;L<arguments.length;L++)D[L]=arguments[L];if(!(D[0]instanceof l))return x=D[0]||"nonzero",P.apply(this,[x]);var k=D[0],x=D[1]||"nonzero";w(this,k.commands),P.apply(this,[x])},O.prototype.stroke=function(D){D&&w(this,D.commands),e.apply(this)},O.prototype.isPointInPath=function(){for(var D=[],L=0;L<arguments.length;L++)D[L]=arguments[L];if(D[0]instanceof l){var k=D[0],x=D[1],g=D[2],n=D[3]||"nonzero";return w(this,k.commands),N.apply(this,[x,g,n])}return N.apply(this,D)},i.Path2D=l}})(window),function(i){if(i&&i.CanvasRenderingContext2D){var O=i.CanvasRenderingContext2D,P=i.Path2D;O&&!O.prototype.roundRect&&(O.prototype.roundRect=t),P&&!P.prototype.roundRect&&(P.prototype.roundRect=t)}}(window)}()),$a}var Kn={},pr={get exports(){return Kn},set exports(en){Kn=en}},ja;function br(){return ja||(ja=1,function(en,rn){(function(Gt,At){At(rn)})(qn,function(Gt){var At=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol:function(b){return"Symbol("+b+")"};function Yt(){}function mn(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof qn<"u")return qn}var he=mn();function l(b){return typeof b=="object"&&b!==null||typeof b=="function"}var w=Yt,t=Promise,i=Promise.prototype.then,O=Promise.resolve.bind(t),P=Promise.reject.bind(t);function e(b){return new t(b)}function N(b){return O(b)}function D(b){return P(b)}function L(b,q,le){return i.call(b,q,le)}function k(b,q,le){L(L(b,q,le),void 0,w)}function x(b,q){k(b,q)}function g(b,q){k(b,void 0,q)}function n(b,q,le){return L(b,q,le)}function I(b){L(b,void 0,w)}var B=function(){var b=he&&he.queueMicrotask;if(typeof b=="function")return b;var q=N(void 0);return function(le){return L(q,le)}}();function h(b,q,le){if(typeof b!="function")throw new TypeError("Argument is not a function");return Function.prototype.apply.call(b,q,le)}function c(b,q,le){try{return N(h(b,q,le))}catch(Se){return D(Se)}}var C=16384,u=function(){function b(){this._cursor=0,this._size=0,this._front={_elements:[],_next:void 0},this._back=this._front,this._cursor=0,this._size=0}return Object.defineProperty(b.prototype,"length",{get:function(){return this._size},enumerable:!1,configurable:!0}),b.prototype.push=function(q){var le=this._back,Se=le;le._elements.length===C-1&&(Se={_elements:[],_next:void 0}),le._elements.push(q),Se!==le&&(this._back=Se,le._next=Se),++this._size},b.prototype.shift=function(){var q=this._front,le=q,Se=this._cursor,Pe=Se+1,Ve=q._elements,at=Ve[Se];return Pe===C&&(le=q._next,Pe=0),--this._size,this._cursor=Pe,q!==le&&(this._front=le),Ve[Se]=void 0,at},b.prototype.forEach=function(q){for(var le=this._cursor,Se=this._front,Pe=Se._elements;(le!==Pe.length||Se._next!==void 0)&&!(le===Pe.length&&(Se=Se._next,Pe=Se._elements,le=0,Pe.length===0));)q(Pe[le]),++le},b.prototype.peek=function(){var q=this._front,le=this._cursor;return q._elements[le]},b}();function m(b,q){b._ownerReadableStream=q,q._reader=b,q._state==="readable"?s(b):q._state==="closed"?S(b):d(b,q._storedError)}function X(b,q){var le=b._ownerReadableStream;return cn(le,q)}function f(b){b._ownerReadableStream._state==="readable"?r(b,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):o(b,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")),b._ownerReadableStream._reader=void 0,b._ownerReadableStream=void 0}function F(b){return new TypeError("Cannot "+b+" a stream using a released reader")}function s(b){b._closedPromise=e(function(q,le){b._closedPromise_resolve=q,b._closedPromise_reject=le})}function d(b,q){s(b),r(b,q)}function S(b){s(b),A(b)}function r(b,q){b._closedPromise_reject!==void 0&&(I(b._closedPromise),b._closedPromise_reject(q),b._closedPromise_resolve=void 0,b._closedPromise_reject=void 0)}function o(b,q){d(b,q)}function A(b){b._closedPromise_resolve!==void 0&&(b._closedPromise_resolve(void 0),b._closedPromise_resolve=void 0,b._closedPromise_reject=void 0)}var p=At("[[AbortSteps]]"),v=At("[[ErrorSteps]]"),R=At("[[CancelSteps]]"),T=At("[[PullSteps]]"),y=Number.isFinite||function(b){return typeof b=="number"&&isFinite(b)},H=Math.trunc||function(b){return b<0?Math.ceil(b):Math.floor(b)};function z(b){return typeof b=="object"||typeof b=="function"}function $(b,q){if(b!==void 0&&!z(b))throw new TypeError(q+" is not an object.")}function j(b,q){if(typeof b!="function")throw new TypeError(q+" is not a function.")}function V(b){return typeof b=="object"&&b!==null||typeof b=="function"}function ee(b,q){if(!V(b))throw new TypeError(q+" is not an object.")}function U(b,q,le){if(b===void 0)throw new TypeError("Parameter "+q+" is required in '"+le+"'.")}function G(b,q,le){if(b===void 0)throw new TypeError(q+" is required in '"+le+"'.")}function Y(b){return Number(b)}function oe(b){return b===0?0:b}function se(b){return oe(H(b))}function Q(b,q){var le=0,Se=Number.MAX_SAFE_INTEGER,Pe=Number(b);if(Pe=oe(Pe),!y(Pe))throw new TypeError(q+" is not a finite number");if(Pe=se(Pe),Pe<le||Pe>Se)throw new TypeError(q+" is outside the accepted range of "+le+" to "+Se+", inclusive");return!y(Pe)||Pe===0?0:Pe}function E(b,q){if(!En(b))throw new TypeError(q+" is not a ReadableStream.")}function M(b){return new Z(b)}function _(b,q){b._reader._readRequests.push(q)}function J(b,q,le){var Se=b._reader,Pe=Se._readRequests.shift();le?Pe._closeSteps():Pe._chunkSteps(q)}function K(b){return b._reader._readRequests.length}function te(b){var q=b._reader;return!(q===void 0||!ce(q))}var Z=function(){function b(q){if(U(q,1,"ReadableStreamDefaultReader"),E(q,"First parameter"),On(q))throw new TypeError("This stream has already been locked for exclusive reading by another reader");m(this,q),this._readRequests=new u}return Object.defineProperty(b.prototype,"closed",{get:function(){return ce(this)?this._closedPromise:D(re("closed"))},enumerable:!1,configurable:!0}),b.prototype.cancel=function(q){return q===void 0&&(q=void 0),ce(this)?this._ownerReadableStream===void 0?D(F("cancel")):X(this,q):D(re("cancel"))},b.prototype.read=function(){if(!ce(this))return D(re("read"));if(this._ownerReadableStream===void 0)return D(F("read from"));var q,le,Se=e(function(Ve,at){q=Ve,le=at}),Pe={_chunkSteps:function(Ve){return q({value:Ve,done:!1})},_closeSteps:function(){return q({value:void 0,done:!0})},_errorSteps:function(Ve){return le(Ve)}};return ne(this,Pe),Se},b.prototype.releaseLock=function(){if(!ce(this))throw re("releaseLock");if(this._ownerReadableStream!==void 0){if(this._readRequests.length>0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");f(this)}},b}();Object.defineProperties(Z.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),typeof At.toStringTag=="symbol"&&Object.defineProperty(Z.prototype,At.toStringTag,{value:"ReadableStreamDefaultReader",configurable:!0});function ce(b){return!l(b)||!Object.prototype.hasOwnProperty.call(b,"_readRequests")?!1:b instanceof Z}function ne(b,q){var le=b._ownerReadableStream;le._disturbed=!0,le._state==="closed"?q._closeSteps():le._state==="errored"?q._errorSteps(le._storedError):le._readableStreamController[T](q)}function re(b){return new TypeError("ReadableStreamDefaultReader.prototype."+b+" can only be used on a ReadableStreamDefaultReader")}var ie,ae;typeof At.asyncIterator=="symbol"&&(ae=(ie={},ie[At.asyncIterator]=function(){return this},ie),Object.defineProperty(ae,At.asyncIterator,{enumerable:!1}));var ue=function(){function b(q,le){this._ongoingPromise=void 0,this._isFinished=!1,this._reader=q,this._preventCancel=le}return b.prototype.next=function(){var q=this,le=function(){return q._nextSteps()};return this._ongoingPromise=this._ongoingPromise?n(this._ongoingPromise,le,le):le(),this._ongoingPromise},b.prototype.return=function(q){var le=this,Se=function(){return le._returnSteps(q)};return this._ongoingPromise?n(this._ongoingPromise,Se,Se):Se()},b.prototype._nextSteps=function(){var q=this;if(this._isFinished)return Promise.resolve({value:void 0,done:!0});var le=this._reader;if(le._ownerReadableStream===void 0)return D(F("iterate"));var Se,Pe,Ve=e(function(mt,Pt){Se=mt,Pe=Pt}),at={_chunkSteps:function(mt){q._ongoingPromise=void 0,B(function(){return Se({value:mt,done:!1})})},_closeSteps:function(){q._ongoingPromise=void 0,q._isFinished=!0,f(le),Se({value:void 0,done:!0})},_errorSteps:function(mt){q._ongoingPromise=void 0,q._isFinished=!0,f(le),Pe(mt)}};return ne(le,at),Ve},b.prototype._returnSteps=function(q){if(this._isFinished)return Promise.resolve({value:q,done:!0});this._isFinished=!0;var le=this._reader;if(le._ownerReadableStream===void 0)return D(F("finish iterating"));if(!this._preventCancel){var Se=X(le,q);return f(le),n(Se,function(){return{value:q,done:!0}})}return f(le),N({value:q,done:!0})},b}(),fe={next:function(){return Fe(this)?this._asyncIteratorImpl.next():D(pe("next"))},return:function(b){return Fe(this)?this._asyncIteratorImpl.return(b):D(pe("return"))}};ae!==void 0&&Object.setPrototypeOf(fe,ae);function me(b,q){var le=M(b),Se=new ue(le,q),Pe=Object.create(fe);return Pe._asyncIteratorImpl=Se,Pe}function Fe(b){if(!l(b)||!Object.prototype.hasOwnProperty.call(b,"_asyncIteratorImpl"))return!1;try{return b._asyncIteratorImpl instanceof ue}catch{return!1}}function pe(b){return new TypeError("ReadableStreamAsyncIterator."+b+" can only be used on a ReadableSteamAsyncIterator")}var Ce=Number.isNaN||function(b){return b!==b};function be(b){return b.slice()}function Ie(b,q,le,Se,Pe){new Uint8Array(b).set(new Uint8Array(le,Se,Pe),q)}function ye(b){return b}function de(b){return!1}function ge(b,q,le){if(b.slice)return b.slice(q,le);var Se=le-q,Pe=new ArrayBuffer(Se);return Ie(Pe,0,b,q,Se),Pe}function xe(b){return!(typeof b!="number"||Ce(b)||b<0)}function Oe(b){var q=ge(b.buffer,b.byteOffset,b.byteOffset+b.byteLength);return new Uint8Array(q)}function je(b){var q=b._queue.shift();return b._queueTotalSize-=q.size,b._queueTotalSize<0&&(b._queueTotalSize=0),q.value}function it(b,q,le){if(!xe(le)||le===1/0)throw new RangeError("Size must be a finite, non-NaN, non-negative number.");b._queue.push({value:q,size:le}),b._queueTotalSize+=le}function ke(b){var q=b._queue.peek();return q.value}function $e(b){b._queue=new u,b._queueTotalSize=0}var Ge=function(){function b(){throw new TypeError("Illegal constructor")}return Object.defineProperty(b.prototype,"view",{get:function(){if(!Ne(this))throw Be("view");return this._view},enumerable:!1,configurable:!0}),b.prototype.respond=function(q){if(!Ne(this))throw Be("respond");if(U(q,1,"respond"),q=Q(q,"First parameter"),this._associatedReadableByteStreamController===void 0)throw new TypeError("This BYOB request has been invalidated");de(this._view.buffer),qe(this._associatedReadableByteStreamController,q)},b.prototype.respondWithNewView=function(q){if(!Ne(this))throw Be("respondWithNewView");if(U(q,1,"respondWithNewView"),!ArrayBuffer.isView(q))throw new TypeError("You can only respond with array buffer views");if(this._associatedReadableByteStreamController===void 0)throw new TypeError("This BYOB request has been invalidated");de(q.buffer),dt(this._associatedReadableByteStreamController,q)},b}();Object.defineProperties(Ge.prototype,{respond:{enumerable:!0},respondWithNewView:{enumerable:!0},view:{enumerable:!0}}),typeof At.toStringTag=="symbol"&&Object.defineProperty(Ge.prototype,At.toStringTag,{value:"ReadableStreamBYOBRequest",configurable:!0});var Qe=function(){function b(){throw new TypeError("Illegal constructor")}return Object.defineProperty(b.prototype,"byobRequest",{get:function(){if(!ve(this))throw Ye("byobRequest");return lt(this)},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"desiredSize",{get:function(){if(!ve(this))throw Ye("desiredSize");return Ze(this)},enumerable:!1,configurable:!0}),b.prototype.close=function(){if(!ve(this))throw Ye("close");if(this._closeRequested)throw new TypeError("The stream has already been closed; do not close it again!");var q=this._controlledReadableByteStream._state;if(q!=="readable")throw new TypeError("The stream (in "+q+" state) is not in the readable state and cannot be closed");Ue(this)},b.prototype.enqueue=function(q){if(!ve(this))throw Ye("enqueue");if(U(q,1,"enqueue"),!ArrayBuffer.isView(q))throw new TypeError("chunk must be an array buffer view");if(q.byteLength===0)throw new TypeError("chunk must have non-zero byteLength");if(q.buffer.byteLength===0)throw new TypeError("chunk's buffer must have non-zero byteLength");if(this._closeRequested)throw new TypeError("stream is closed or draining");var le=this._controlledReadableByteStream._state;if(le!=="readable")throw new TypeError("The stream (in "+le+" state) is not in the readable state and cannot be enqueued to");Ke(this,q)},b.prototype.error=function(q){if(q===void 0&&(q=void 0),!ve(this))throw Ye("error");He(this,q)},b.prototype[R]=function(q){nt(this),$e(this);var le=this._cancelAlgorithm(q);return Re(this),le},b.prototype[T]=function(q){var le=this._controlledReadableByteStream;if(this._queueTotalSize>0){var Se=this._queue.shift();this._queueTotalSize-=Se.byteLength,pt(this);var Pe=new Uint8Array(Se.buffer,Se.byteOffset,Se.byteLength);q._chunkSteps(Pe);return}var Ve=this._autoAllocateChunkSize;if(Ve!==void 0){var at=void 0;try{at=new ArrayBuffer(Ve)}catch(Pt){q._errorSteps(Pt);return}var mt={buffer:at,bufferByteLength:Ve,byteOffset:0,byteLength:Ve,bytesFilled:0,elementSize:1,viewConstructor:Uint8Array,readerType:"default"};this._pendingPullIntos.push(mt)}_(le,q),Me(this)},b}();Object.defineProperties(Qe.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},byobRequest:{enumerable:!0},desiredSize:{enumerable:!0}}),typeof At.toStringTag=="symbol"&&Object.defineProperty(Qe.prototype,At.toStringTag,{value:"ReadableByteStreamController",configurable:!0});function ve(b){return!l(b)||!Object.prototype.hasOwnProperty.call(b,"_controlledReadableByteStream")?!1:b instanceof Qe}function Ne(b){return!l(b)||!Object.prototype.hasOwnProperty.call(b,"_associatedReadableByteStreamController")?!1:b instanceof Ge}function Me(b){var q=Le(b);if(q){if(b._pulling){b._pullAgain=!0;return}b._pulling=!0;var le=b._pullAlgorithm();k(le,function(){b._pulling=!1,b._pullAgain&&(b._pullAgain=!1,Me(b))},function(Se){He(b,Se)})}}function nt(b){xt(b),b._pendingPullIntos=new u}function _e(b,q){var le=!1;b._state==="closed"&&(le=!0);var Se=rt(q);q.readerType==="default"?J(b,Se,le):tt(b,Se,le)}function rt(b){var q=b.bytesFilled,le=b.elementSize;return new b.viewConstructor(b.buffer,b.byteOffset,q/le)}function Xe(b,q,le,Se){b._queue.push({buffer:q,byteOffset:le,byteLength:Se}),b._queueTotalSize+=Se}function Je(b,q){var le=q.elementSize,Se=q.bytesFilled-q.bytesFilled%le,Pe=Math.min(b._queueTotalSize,q.byteLength-q.bytesFilled),Ve=q.bytesFilled+Pe,at=Ve-Ve%le,mt=Pe,Pt=!1;at>Se&&(mt=at-q.bytesFilled,Pt=!0);for(var Dt=b._queue;mt>0;){var Rt=Dt.peek(),$t=Math.min(mt,Rt.byteLength),Jt=q.byteOffset+q.bytesFilled;Ie(q.buffer,Jt,Rt.buffer,Rt.byteOffset,$t),Rt.byteLength===$t?Dt.shift():(Rt.byteOffset+=$t,Rt.byteLength-=$t),b._queueTotalSize-=$t,et(b,$t,q),mt-=$t}return Pt}function et(b,q,le){le.bytesFilled+=q}function pt(b){b._queueTotalSize===0&&b._closeRequested?(Re(b),oa(b._controlledReadableByteStream)):Me(b)}function xt(b){b._byobRequest!==null&&(b._byobRequest._associatedReadableByteStreamController=void 0,b._byobRequest._view=null,b._byobRequest=null)}function Ot(b){for(;b._pendingPullIntos.length>0;){if(b._queueTotalSize===0)return;var q=b._pendingPullIntos.peek();Je(b,q)&&(Tt(b),_e(b._controlledReadableByteStream,q))}}function st(b,q,le){var Se=b._controlledReadableByteStream,Pe=1;q.constructor!==DataView&&(Pe=q.constructor.BYTES_PER_ELEMENT);var Ve=q.constructor,at=q.buffer,mt={buffer:at,bufferByteLength:at.byteLength,byteOffset:q.byteOffset,byteLength:q.byteLength,bytesFilled:0,elementSize:Pe,viewConstructor:Ve,readerType:"byob"};if(b._pendingPullIntos.length>0){b._pendingPullIntos.push(mt),ct(Se,le);return}if(Se._state==="closed"){var Pt=new Ve(mt.buffer,mt.byteOffset,0);le._closeSteps(Pt);return}if(b._queueTotalSize>0){if(Je(b,mt)){var Dt=rt(mt);pt(b),le._chunkSteps(Dt);return}if(b._closeRequested){var Rt=new TypeError("Insufficient bytes to fill elements in the given buffer");He(b,Rt),le._errorSteps(Rt);return}}b._pendingPullIntos.push(mt),ct(Se,le),Me(b)}function Nt(b,q){var le=b._controlledReadableByteStream;if(bt(le))for(;ut(le)>0;){var Se=Tt(b);_e(le,Se)}}function Ut(b,q,le){if(et(b,q,le),!(le.bytesFilled<le.elementSize)){Tt(b);var Se=le.bytesFilled%le.elementSize;if(Se>0){var Pe=le.byteOffset+le.bytesFilled,Ve=ge(le.buffer,Pe-Se,Pe);Xe(b,Ve,0,Ve.byteLength)}le.bytesFilled-=Se,_e(b._controlledReadableByteStream,le),Ot(b)}}function _t(b,q){var le=b._pendingPullIntos.peek();xt(b);var Se=b._controlledReadableByteStream._state;Se==="closed"?Nt(b):Ut(b,q,le),Me(b)}function Tt(b){var q=b._pendingPullIntos.shift();return q}function Le(b){var q=b._controlledReadableByteStream;if(q._state!=="readable"||b._closeRequested||!b._started)return!1;if(te(q)&&K(q)>0||bt(q)&&ut(q)>0)return!0;var le=Ze(b);return le>0}function Re(b){b._pullAlgorithm=void 0,b._cancelAlgorithm=void 0}function Ue(b){var q=b._controlledReadableByteStream;if(!(b._closeRequested||q._state!=="readable")){if(b._queueTotalSize>0){b._closeRequested=!0;return}if(b._pendingPullIntos.length>0){var le=b._pendingPullIntos.peek();if(le.bytesFilled>0){var Se=new TypeError("Insufficient bytes to fill elements in the given buffer");throw He(b,Se),Se}}Re(b),oa(q)}}function Ke(b,q){var le=b._controlledReadableByteStream;if(!(b._closeRequested||le._state!=="readable")){var Se=q.buffer,Pe=q.byteOffset,Ve=q.byteLength,at=Se;if(b._pendingPullIntos.length>0){var mt=b._pendingPullIntos.peek();de(mt.buffer),mt.buffer=mt.buffer}if(xt(b),te(le))if(K(le)===0)Xe(b,at,Pe,Ve);else{b._pendingPullIntos.length>0&&Tt(b);var Pt=new Uint8Array(at,Pe,Ve);J(le,Pt,!1)}else bt(le)?(Xe(b,at,Pe,Ve),Ot(b)):Xe(b,at,Pe,Ve);Me(b)}}function He(b,q){var le=b._controlledReadableByteStream;le._state==="readable"&&(nt(b),$e(b),Re(b),Za(le,q))}function lt(b){if(b._byobRequest===null&&b._pendingPullIntos.length>0){var q=b._pendingPullIntos.peek(),le=new Uint8Array(q.buffer,q.byteOffset+q.bytesFilled,q.byteLength-q.bytesFilled),Se=Object.create(Ge.prototype);Te(Se,b,le),b._byobRequest=Se}return b._byobRequest}function Ze(b){var q=b._controlledReadableByteStream._state;return q==="errored"?null:q==="closed"?0:b._strategyHWM-b._queueTotalSize}function qe(b,q){var le=b._pendingPullIntos.peek(),Se=b._controlledReadableByteStream._state;if(Se==="closed"){if(q!==0)throw new TypeError("bytesWritten must be 0 when calling respond() on a closed stream")}else{if(q===0)throw new TypeError("bytesWritten must be greater than 0 when calling respond() on a readable stream");if(le.bytesFilled+q>le.byteLength)throw new RangeError("bytesWritten out of range")}le.buffer=le.buffer,_t(b,q)}function dt(b,q){var le=b._pendingPullIntos.peek(),Se=b._controlledReadableByteStream._state;if(Se==="closed"){if(q.byteLength!==0)throw new TypeError("The view's length must be 0 when calling respondWithNewView() on a closed stream")}else if(q.byteLength===0)throw new TypeError("The view's length must be greater than 0 when calling respondWithNewView() on a readable stream");if(le.byteOffset+le.bytesFilled!==q.byteOffset)throw new RangeError("The region specified by view does not match byobRequest");if(le.bufferByteLength!==q.buffer.byteLength)throw new RangeError("The buffer of view has different capacity than byobRequest");if(le.bytesFilled+q.byteLength>le.byteLength)throw new RangeError("The region specified by view is larger than byobRequest");var Pe=q.byteLength;le.buffer=q.buffer,_t(b,Pe)}function gt(b,q,le,Se,Pe,Ve,at){q._controlledReadableByteStream=b,q._pullAgain=!1,q._pulling=!1,q._byobRequest=null,q._queue=q._queueTotalSize=void 0,$e(q),q._closeRequested=!1,q._started=!1,q._strategyHWM=Ve,q._pullAlgorithm=Se,q._cancelAlgorithm=Pe,q._autoAllocateChunkSize=at,q._pendingPullIntos=new u,b._readableStreamController=q;var mt=le();k(N(mt),function(){q._started=!0,Me(q)},function(Pt){He(q,Pt)})}function we(b,q,le){var Se=Object.create(Qe.prototype),Pe=function(){},Ve=function(){return N(void 0)},at=function(){return N(void 0)};q.start!==void 0&&(Pe=function(){return q.start(Se)}),q.pull!==void 0&&(Ve=function(){return q.pull(Se)}),q.cancel!==void 0&&(at=function(Pt){return q.cancel(Pt)});var mt=q.autoAllocateChunkSize;if(mt===0)throw new TypeError("autoAllocateChunkSize must be greater than 0");gt(b,Se,Pe,Ve,at,le,mt)}function Te(b,q,le){b._associatedReadableByteStreamController=q,b._view=le}function Be(b){return new TypeError("ReadableStreamBYOBRequest.prototype."+b+" can only be used on a ReadableStreamBYOBRequest")}function Ye(b){return new TypeError("ReadableByteStreamController.prototype."+b+" can only be used on a ReadableByteStreamController")}function We(b){return new jt(b)}function ct(b,q){b._reader._readIntoRequests.push(q)}function tt(b,q,le){var Se=b._reader,Pe=Se._readIntoRequests.shift();le?Pe._closeSteps(q):Pe._chunkSteps(q)}function ut(b){return b._reader._readIntoRequests.length}function bt(b){var q=b._reader;return!(q===void 0||!yt(q))}var jt=function(){function b(q){if(U(q,1,"ReadableStreamBYOBReader"),E(q,"First parameter"),On(q))throw new TypeError("This stream has already been locked for exclusive reading by another reader");if(!ve(q._readableStreamController))throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");m(this,q),this._readIntoRequests=new u}return Object.defineProperty(b.prototype,"closed",{get:function(){return yt(this)?this._closedPromise:D(Mt("closed"))},enumerable:!1,configurable:!0}),b.prototype.cancel=function(q){return q===void 0&&(q=void 0),yt(this)?this._ownerReadableStream===void 0?D(F("cancel")):X(this,q):D(Mt("cancel"))},b.prototype.read=function(q){if(!yt(this))return D(Mt("read"));if(!ArrayBuffer.isView(q))return D(new TypeError("view must be an array buffer view"));if(q.byteLength===0)return D(new TypeError("view must have non-zero byteLength"));if(q.buffer.byteLength===0)return D(new TypeError("view's buffer must have non-zero byteLength"));if(de(q.buffer),this._ownerReadableStream===void 0)return D(F("read from"));var le,Se,Pe=e(function(at,mt){le=at,Se=mt}),Ve={_chunkSteps:function(at){return le({value:at,done:!1})},_closeSteps:function(at){return le({value:at,done:!0})},_errorSteps:function(at){return Se(at)}};return wt(this,q,Ve),Pe},b.prototype.releaseLock=function(){if(!yt(this))throw Mt("releaseLock");if(this._ownerReadableStream!==void 0){if(this._readIntoRequests.length>0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");f(this)}},b}();Object.defineProperties(jt.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),typeof At.toStringTag=="symbol"&&Object.defineProperty(jt.prototype,At.toStringTag,{value:"ReadableStreamBYOBReader",configurable:!0});function yt(b){return!l(b)||!Object.prototype.hasOwnProperty.call(b,"_readIntoRequests")?!1:b instanceof jt}function wt(b,q,le){var Se=b._ownerReadableStream;Se._disturbed=!0,Se._state==="errored"?le._errorSteps(Se._storedError):st(Se._readableStreamController,q,le)}function Mt(b){return new TypeError("ReadableStreamBYOBReader.prototype."+b+" can only be used on a ReadableStreamBYOBReader")}function Ht(b,q){var le=b.highWaterMark;if(le===void 0)return q;if(Ce(le)||le<0)throw new RangeError("Invalid highWaterMark");return le}function nn(b){var q=b.size;return q||function(){return 1}}function Sn(b,q){$(b,q);var le=b==null?void 0:b.highWaterMark,Se=b==null?void 0:b.size;return{highWaterMark:le===void 0?void 0:Y(le),size:Se===void 0?void 0:Un(Se,q+" has member 'size' that")}}function Un(b,q){return j(b,q),function(le){return Y(b(le))}}function Yn(b,q){$(b,q);var le=b==null?void 0:b.abort,Se=b==null?void 0:b.close,Pe=b==null?void 0:b.start,Ve=b==null?void 0:b.type,at=b==null?void 0:b.write;return{abort:le===void 0?void 0:Jn(le,b,q+" has member 'abort' that"),close:Se===void 0?void 0:Zn(Se,b,q+" has member 'close' that"),start:Pe===void 0?void 0:Qn(Pe,b,q+" has member 'start' that"),write:at===void 0?void 0:ea(at,b,q+" has member 'write' that"),type:Ve}}function Jn(b,q,le){return j(b,le),function(Se){return c(b,q,[Se])}}function Zn(b,q,le){return j(b,le),function(){return c(b,q,[])}}function Qn(b,q,le){return j(b,le),function(Se){return h(b,q,[Se])}}function ea(b,q,le){return j(b,le),function(Se,Pe){return c(b,q,[Se,Pe])}}function jn(b,q){if(!on(b))throw new TypeError(q+" is not a WritableStream.")}function Xn(b){if(typeof b!="object"||b===null)return!1;try{return typeof b.aborted=="boolean"}catch{return!1}}var Pn=typeof AbortController=="function";function ta(){if(Pn)return new AbortController}var xn=function(){function b(q,le){q===void 0&&(q={}),le===void 0&&(le={}),q===void 0?q=null:ee(q,"First parameter");var Se=Sn(le,"Second parameter"),Pe=Yn(q,"First parameter");Rn(this);var Ve=Pe.type;if(Ve!==void 0)throw new RangeError("Invalid type is specified");var at=nn(Se),mt=Ht(Se,1);hn(this,Pe,mt,at)}return Object.defineProperty(b.prototype,"locked",{get:function(){if(!on(this))throw ua("locked");return un(this)},enumerable:!1,configurable:!0}),b.prototype.abort=function(q){return q===void 0&&(q=void 0),on(this)?un(this)?D(new TypeError("Cannot abort a stream that already has a writer")):vn(this,q):D(ua("abort"))},b.prototype.close=function(){return on(this)?un(this)?D(new TypeError("Cannot close a stream that already has a writer")):a(this)?D(new TypeError("Cannot close an already-closing stream")):zn(this):D(ua("close"))},b.prototype.getWriter=function(){if(!on(this))throw ua("getWriter");return Hn(this)},b}();Object.defineProperties(xn.prototype,{abort:{enumerable:!0},close:{enumerable:!0},getWriter:{enumerable:!0},locked:{enumerable:!0}}),typeof At.toStringTag=="symbol"&&Object.defineProperty(xn.prototype,At.toStringTag,{value:"WritableStream",configurable:!0});function Hn(b){return new ot(b)}function Dn(b,q,le,Se,Pe,Ve){Pe===void 0&&(Pe=1),Ve===void 0&&(Ve=function(){return 1});var at=Object.create(xn.prototype);Rn(at);var mt=Object.create(Et.prototype);return kt(at,mt,b,q,le,Se,Pe,Ve),at}function Rn(b){b._state="writable",b._storedError=void 0,b._writer=void 0,b._writableStreamController=void 0,b._writeRequests=new u,b._inFlightWriteRequest=void 0,b._closeRequest=void 0,b._inFlightCloseRequest=void 0,b._pendingAbortRequest=void 0,b._backpressure=!1}function on(b){return!l(b)||!Object.prototype.hasOwnProperty.call(b,"_writableStreamController")?!1:b instanceof xn}function un(b){return b._writer!==void 0}function vn(b,q){var le;if(b._state==="closed"||b._state==="errored")return N(void 0);b._writableStreamController._abortReason=q,(le=b._writableStreamController._abortController)===null||le===void 0||le.abort();var Se=b._state;if(Se==="closed"||Se==="errored")return N(void 0);if(b._pendingAbortRequest!==void 0)return b._pendingAbortRequest._promise;var Pe=!1;Se==="erroring"&&(Pe=!0,q=void 0);var Ve=e(function(at,mt){b._pendingAbortRequest={_promise:void 0,_resolve:at,_reject:mt,_reason:q,_wasAlreadyErroring:Pe}});return b._pendingAbortRequest._promise=Ve,Pe||pn(b,q),Ve}function zn(b){var q=b._state;if(q==="closed"||q==="errored")return D(new TypeError("The stream (in "+q+" state) is not in the writable state and cannot be closed"));var le=e(function(Pe,Ve){var at={_resolve:Pe,_reject:Ve};b._closeRequest=at}),Se=b._writer;return Se!==void 0&&b._backpressure&&q==="writable"&&Pa(Se),Qt(b._writableStreamController),le}function na(b){var q=e(function(le,Se){var Pe={_resolve:le,_reject:Se};b._writeRequests.push(Pe)});return q}function Bn(b,q){var le=b._state;if(le==="writable"){pn(b,q);return}Mn(b)}function pn(b,q){var le=b._writableStreamController;b._state="erroring",b._storedError=q;var Se=b._writer;Se!==void 0&&zt(Se,q),!W(b)&&le._started&&Mn(b)}function Mn(b){b._state="errored",b._writableStreamController[v]();var q=b._storedError;if(b._writeRequests.forEach(function(Pe){Pe._reject(q)}),b._writeRequests=new u,b._pendingAbortRequest===void 0){ze(b);return}var le=b._pendingAbortRequest;if(b._pendingAbortRequest=void 0,le._wasAlreadyErroring){le._reject(q),ze(b);return}var Se=b._writableStreamController[p](le._reason);k(Se,function(){le._resolve(),ze(b)},function(Pe){le._reject(Pe),ze(b)})}function Cn(b){b._inFlightWriteRequest._resolve(void 0),b._inFlightWriteRequest=void 0}function aa(b,q){b._inFlightWriteRequest._reject(q),b._inFlightWriteRequest=void 0,Bn(b,q)}function An(b){b._inFlightCloseRequest._resolve(void 0),b._inFlightCloseRequest=void 0;var q=b._state;q==="erroring"&&(b._storedError=void 0,b._pendingAbortRequest!==void 0&&(b._pendingAbortRequest._resolve(),b._pendingAbortRequest=void 0)),b._state="closed";var le=b._writer;le!==void 0&&za(le)}function Ee(b,q){b._inFlightCloseRequest._reject(q),b._inFlightCloseRequest=void 0,b._pendingAbortRequest!==void 0&&(b._pendingAbortRequest._reject(q),b._pendingAbortRequest=void 0),Bn(b,q)}function a(b){return!(b._closeRequest===void 0&&b._inFlightCloseRequest===void 0)}function W(b){return!(b._inFlightWriteRequest===void 0&&b._inFlightCloseRequest===void 0)}function Ae(b){b._inFlightCloseRequest=b._closeRequest,b._closeRequest=void 0}function De(b){b._inFlightWriteRequest=b._writeRequests.shift()}function ze(b){b._closeRequest!==void 0&&(b._closeRequest._reject(b._storedError),b._closeRequest=void 0);var q=b._writer;q!==void 0&&Ta(q,b._storedError)}function ht(b,q){var le=b._writer;le!==void 0&&q!==b._backpressure&&(q?Cr(le):Pa(le)),b._backpressure=q}var ot=function(){function b(q){if(U(q,1,"WritableStreamDefaultWriter"),jn(q,"First parameter"),un(q))throw new TypeError("This stream has already been locked for exclusive writing by another writer");this._ownerWritableStream=q,q._writer=this;var le=q._state;if(le==="writable")!a(q)&&q._backpressure?fa(this):Wa(this),ha(this);else if(le==="erroring")Ia(this,q._storedError),ha(this);else if(le==="closed")Wa(this),Sr(this);else{var Se=q._storedError;Ia(this,Se),Ha(this,Se)}}return Object.defineProperty(b.prototype,"closed",{get:function(){return ft(this)?this._closedPromise:D(Ln("closed"))},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"desiredSize",{get:function(){if(!ft(this))throw Ln("desiredSize");if(this._ownerWritableStream===void 0)throw ra("desiredSize");return Wt(this)},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"ready",{get:function(){return ft(this)?this._readyPromise:D(Ln("ready"))},enumerable:!1,configurable:!0}),b.prototype.abort=function(q){return q===void 0&&(q=void 0),ft(this)?this._ownerWritableStream===void 0?D(ra("abort")):St(this,q):D(Ln("abort"))},b.prototype.close=function(){if(!ft(this))return D(Ln("close"));var q=this._ownerWritableStream;return q===void 0?D(ra("close")):a(q)?D(new TypeError("Cannot close an already-closing stream")):It(this)},b.prototype.releaseLock=function(){if(!ft(this))throw Ln("releaseLock");var q=this._ownerWritableStream;q!==void 0&&vt(this)},b.prototype.write=function(q){return q===void 0&&(q=void 0),ft(this)?this._ownerWritableStream===void 0?D(ra("write to")):Vt(this,q):D(Ln("write"))},b}();Object.defineProperties(ot.prototype,{abort:{enumerable:!0},close:{enumerable:!0},releaseLock:{enumerable:!0},write:{enumerable:!0},closed:{enumerable:!0},desiredSize:{enumerable:!0},ready:{enumerable:!0}}),typeof At.toStringTag=="symbol"&&Object.defineProperty(ot.prototype,At.toStringTag,{value:"WritableStreamDefaultWriter",configurable:!0});function ft(b){return!l(b)||!Object.prototype.hasOwnProperty.call(b,"_ownerWritableStream")?!1:b instanceof ot}function St(b,q){var le=b._ownerWritableStream;return vn(le,q)}function It(b){var q=b._ownerWritableStream;return zn(q)}function Lt(b){var q=b._ownerWritableStream,le=q._state;return a(q)||le==="closed"?N(void 0):le==="errored"?D(q._storedError):It(b)}function Bt(b,q){b._closedPromiseState==="pending"?Ta(b,q):vr(b,q)}function zt(b,q){b._readyPromiseState==="pending"?Ga(b,q):Ar(b,q)}function Wt(b){var q=b._ownerWritableStream,le=q._state;return le==="errored"||le==="erroring"?null:le==="closed"?0:bn(q._writableStreamController)}function vt(b){var q=b._ownerWritableStream,le=new TypeError("Writer was released and can no longer be used to monitor the stream's closedness");zt(b,le),Bt(b,le),q._writer=void 0,b._ownerWritableStream=void 0}function Vt(b,q){var le=b._ownerWritableStream,Se=le._writableStreamController,Pe=Nn(Se,q);if(le!==b._ownerWritableStream)return D(ra("write to"));var Ve=le._state;if(Ve==="errored")return D(le._storedError);if(a(le)||Ve==="closed")return D(new TypeError("The stream is closing or closed and cannot be written to"));if(Ve==="erroring")return D(le._storedError);var at=na(le);return Fa(Se,q,Pe),at}var Ct={},Et=function(){function b(){throw new TypeError("Illegal constructor")}return Object.defineProperty(b.prototype,"abortReason",{get:function(){if(!Zt(this))throw Oa("abortReason");return this._abortReason},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"signal",{get:function(){if(!Zt(this))throw Oa("signal");if(this._abortController===void 0)throw new TypeError("WritableStreamDefaultController.prototype.signal is not supported");return this._abortController.signal},enumerable:!1,configurable:!0}),b.prototype.error=function(q){if(q===void 0&&(q=void 0),!Zt(this))throw Oa("error");var le=this._controlledWritableStream._state;le==="writable"&&Xa(this,q)},b.prototype[p]=function(q){var le=this._abortAlgorithm(q);return an(this),le},b.prototype[v]=function(){$e(this)},b}();Object.defineProperties(Et.prototype,{abortReason:{enumerable:!0},signal:{enumerable:!0},error:{enumerable:!0}}),typeof At.toStringTag=="symbol"&&Object.defineProperty(Et.prototype,At.toStringTag,{value:"WritableStreamDefaultController",configurable:!0});function Zt(b){return!l(b)||!Object.prototype.hasOwnProperty.call(b,"_controlledWritableStream")?!1:b instanceof Et}function kt(b,q,le,Se,Pe,Ve,at,mt){q._controlledWritableStream=b,b._writableStreamController=q,q._queue=void 0,q._queueTotalSize=void 0,$e(q),q._abortReason=void 0,q._abortController=ta(),q._started=!1,q._strategySizeAlgorithm=mt,q._strategyHWM=at,q._writeAlgorithm=Se,q._closeAlgorithm=Pe,q._abortAlgorithm=Ve;var Pt=Ea(q);ht(b,Pt);var Dt=le(),Rt=N(Dt);k(Rt,function(){q._started=!0,yn(q)},function($t){q._started=!0,Bn(b,$t)})}function hn(b,q,le,Se){var Pe=Object.create(Et.prototype),Ve=function(){},at=function(){return N(void 0)},mt=function(){return N(void 0)},Pt=function(){return N(void 0)};q.start!==void 0&&(Ve=function(){return q.start(Pe)}),q.write!==void 0&&(at=function(Dt){return q.write(Dt,Pe)}),q.close!==void 0&&(mt=function(){return q.close()}),q.abort!==void 0&&(Pt=function(Dt){return q.abort(Dt)}),kt(b,Pe,Ve,at,mt,Pt,le,Se)}function an(b){b._writeAlgorithm=void 0,b._closeAlgorithm=void 0,b._abortAlgorithm=void 0,b._strategySizeAlgorithm=void 0}function Qt(b){it(b,Ct,0),yn(b)}function Nn(b,q){try{return b._strategySizeAlgorithm(q)}catch(le){return ka(b,le),1}}function bn(b){return b._strategyHWM-b._queueTotalSize}function Fa(b,q,le){try{it(b,q,le)}catch(Ve){ka(b,Ve);return}var Se=b._controlledWritableStream;if(!a(Se)&&Se._state==="writable"){var Pe=Ea(b);ht(Se,Pe)}yn(b)}function yn(b){var q=b._controlledWritableStream;if(b._started&&q._inFlightWriteRequest===void 0){var le=q._state;if(le==="erroring"){Mn(q);return}if(b._queue.length!==0){var Se=ke(b);Se===Ct?yr(b):wr(b,Se)}}}function ka(b,q){b._controlledWritableStream._state==="writable"&&Xa(b,q)}function yr(b){var q=b._controlledWritableStream;Ae(q),je(b);var le=b._closeAlgorithm();an(b),k(le,function(){An(q)},function(Se){Ee(q,Se)})}function wr(b,q){var le=b._controlledWritableStream;De(le);var Se=b._writeAlgorithm(q);k(Se,function(){Cn(le);var Pe=le._state;if(je(b),!a(le)&&Pe==="writable"){var Ve=Ea(b);ht(le,Ve)}yn(b)},function(Pe){le._state==="writable"&&an(b),aa(le,Pe)})}function Ea(b){var q=bn(b);return q<=0}function Xa(b,q){var le=b._controlledWritableStream;an(b),pn(le,q)}function ua(b){return new TypeError("WritableStream.prototype."+b+" can only be used on a WritableStream")}function Oa(b){return new TypeError("WritableStreamDefaultController.prototype."+b+" can only be used on a WritableStreamDefaultController")}function Ln(b){return new TypeError("WritableStreamDefaultWriter.prototype."+b+" can only be used on a WritableStreamDefaultWriter")}function ra(b){return new TypeError("Cannot "+b+" a stream using a released writer")}function ha(b){b._closedPromise=e(function(q,le){b._closedPromise_resolve=q,b._closedPromise_reject=le,b._closedPromiseState="pending"})}function Ha(b,q){ha(b),Ta(b,q)}function Sr(b){ha(b),za(b)}function Ta(b,q){b._closedPromise_reject!==void 0&&(I(b._closedPromise),b._closedPromise_reject(q),b._closedPromise_resolve=void 0,b._closedPromise_reject=void 0,b._closedPromiseState="rejected")}function vr(b,q){Ha(b,q)}function za(b){b._closedPromise_resolve!==void 0&&(b._closedPromise_resolve(void 0),b._closedPromise_resolve=void 0,b._closedPromise_reject=void 0,b._closedPromiseState="resolved")}function fa(b){b._readyPromise=e(function(q,le){b._readyPromise_resolve=q,b._readyPromise_reject=le}),b._readyPromiseState="pending"}function Ia(b,q){fa(b),Ga(b,q)}function Wa(b){fa(b),Pa(b)}function Ga(b,q){b._readyPromise_reject!==void 0&&(I(b._readyPromise),b._readyPromise_reject(q),b._readyPromise_resolve=void 0,b._readyPromise_reject=void 0,b._readyPromiseState="rejected")}function Cr(b){fa(b)}function Ar(b,q){Ia(b,q)}function Pa(b){b._readyPromise_resolve!==void 0&&(b._readyPromise_resolve(void 0),b._readyPromise_resolve=void 0,b._readyPromise_reject=void 0,b._readyPromiseState="fulfilled")}var _a=typeof DOMException<"u"?DOMException:void 0;function Fr(b){if(!(typeof b=="function"||typeof b=="object"))return!1;try{return new b,!0}catch{return!1}}function kr(){var b=function(le,Se){this.message=le||"",this.name=Se||"Error",Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)};return b.prototype=Object.create(Error.prototype),Object.defineProperty(b.prototype,"constructor",{value:b,writable:!0,configurable:!0}),b}var Er=Fr(_a)?_a:kr();function Va(b,q,le,Se,Pe,Ve){var at=M(b),mt=Hn(q);b._disturbed=!0;var Pt=!1,Dt=N(void 0);return e(function(Rt,$t){var Jt;if(Ve!==void 0){if(Jt=function(){var Ft=new Er("Aborted","AbortError"),Xt=[];Se||Xt.push(function(){return q._state==="writable"?vn(q,Ft):N(void 0)}),Pe||Xt.push(function(){return b._state==="readable"?cn(b,Ft):N(void 0)}),sn(function(){return Promise.all(Xt.map(function(Kt){return Kt()}))},!0,Ft)},Ve.aborted){Jt();return}Ve.addEventListener("abort",Jt)}function ln(){return e(function(Ft,Xt){function Kt(gn){gn?Ft():L(_n(),Kt,Xt)}Kt(!1)})}function _n(){return Pt?N(!0):L(mt._readyPromise,function(){return e(function(Ft,Xt){ne(at,{_chunkSteps:function(Kt){Dt=L(Vt(mt,Kt),void 0,Yt),Ft(!1)},_closeSteps:function(){return Ft(!0)},_errorSteps:Xt})})})}if(tn(b,at._closedPromise,function(Ft){Se?wn(!0,Ft):sn(function(){return vn(q,Ft)},!0,Ft)}),tn(q,mt._closedPromise,function(Ft){Pe?wn(!0,Ft):sn(function(){return cn(b,Ft)},!0,Ft)}),dn(b,at._closedPromise,function(){le?wn():sn(function(){return Lt(mt)})}),a(q)||q._state==="closed"){var Tn=new TypeError("the destination writable stream closed before all data could be piped to it");Pe?wn(!0,Tn):sn(function(){return cn(b,Tn)},!0,Tn)}I(ln());function fn(){var Ft=Dt;return L(Dt,function(){return Ft!==Dt?fn():void 0})}function tn(Ft,Xt,Kt){Ft._state==="errored"?Kt(Ft._storedError):g(Xt,Kt)}function dn(Ft,Xt,Kt){Ft._state==="closed"?Kt():x(Xt,Kt)}function sn(Ft,Xt,Kt){if(Pt)return;Pt=!0,q._state==="writable"&&!a(q)?x(fn(),gn):gn();function gn(){k(Ft(),function(){return qt(Xt,Kt)},function(In){return qt(!0,In)})}}function wn(Ft,Xt){Pt||(Pt=!0,q._state==="writable"&&!a(q)?x(fn(),function(){return qt(Ft,Xt)}):qt(Ft,Xt))}function qt(Ft,Xt){vt(mt),f(at),Ve!==void 0&&Ve.removeEventListener("abort",Jt),Ft?$t(Xt):Rt(void 0)}})}var Wn=function(){function b(){throw new TypeError("Illegal constructor")}return Object.defineProperty(b.prototype,"desiredSize",{get:function(){if(!da(this))throw xa("desiredSize");return Da(this)},enumerable:!1,configurable:!0}),b.prototype.close=function(){if(!da(this))throw xa("close");if(!Gn(this))throw new TypeError("The stream is not in a state that permits close");sa(this)},b.prototype.enqueue=function(q){if(q===void 0&&(q=void 0),!da(this))throw xa("enqueue");if(!Gn(this))throw new TypeError("The stream is not in a state that permits enqueue");return ma(this,q)},b.prototype.error=function(q){if(q===void 0&&(q=void 0),!da(this))throw xa("error");Fn(this,q)},b.prototype[R]=function(q){$e(this);var le=this._cancelAlgorithm(q);return ga(this),le},b.prototype[T]=function(q){var le=this._controlledReadableStream;if(this._queue.length>0){var Se=je(this);this._closeRequested&&this._queue.length===0?(ga(this),oa(le)):ia(this),q._chunkSteps(Se)}else _(le,q),ia(this)},b}();Object.defineProperties(Wn.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},desiredSize:{enumerable:!0}}),typeof At.toStringTag=="symbol"&&Object.defineProperty(Wn.prototype,At.toStringTag,{value:"ReadableStreamDefaultController",configurable:!0});function da(b){return!l(b)||!Object.prototype.hasOwnProperty.call(b,"_controlledReadableStream")?!1:b instanceof Wn}function ia(b){var q=qa(b);if(q){if(b._pulling){b._pullAgain=!0;return}b._pulling=!0;var le=b._pullAlgorithm();k(le,function(){b._pulling=!1,b._pullAgain&&(b._pullAgain=!1,ia(b))},function(Se){Fn(b,Se)})}}function qa(b){var q=b._controlledReadableStream;if(!Gn(b)||!b._started)return!1;if(On(q)&&K(q)>0)return!0;var le=Da(b);return le>0}function ga(b){b._pullAlgorithm=void 0,b._cancelAlgorithm=void 0,b._strategySizeAlgorithm=void 0}function sa(b){if(Gn(b)){var q=b._controlledReadableStream;b._closeRequested=!0,b._queue.length===0&&(ga(b),oa(q))}}function ma(b,q){if(Gn(b)){var le=b._controlledReadableStream;if(On(le)&&K(le)>0)J(le,q,!1);else{var Se=void 0;try{Se=b._strategySizeAlgorithm(q)}catch(Pe){throw Fn(b,Pe),Pe}try{it(b,q,Se)}catch(Pe){throw Fn(b,Pe),Pe}}ia(b)}}function Fn(b,q){var le=b._controlledReadableStream;le._state==="readable"&&($e(b),ga(b),Za(le,q))}function Da(b){var q=b._controlledReadableStream._state;return q==="errored"?null:q==="closed"?0:b._strategyHWM-b._queueTotalSize}function Or(b){return!qa(b)}function Gn(b){var q=b._controlledReadableStream._state;return!b._closeRequested&&q==="readable"}function Ka(b,q,le,Se,Pe,Ve,at){q._controlledReadableStream=b,q._queue=void 0,q._queueTotalSize=void 0,$e(q),q._started=!1,q._closeRequested=!1,q._pullAgain=!1,q._pulling=!1,q._strategySizeAlgorithm=at,q._strategyHWM=Ve,q._pullAlgorithm=Se,q._cancelAlgorithm=Pe,b._readableStreamController=q;var mt=le();k(N(mt),function(){q._started=!0,ia(q)},function(Pt){Fn(q,Pt)})}function Tr(b,q,le,Se){var Pe=Object.create(Wn.prototype),Ve=function(){},at=function(){return N(void 0)},mt=function(){return N(void 0)};q.start!==void 0&&(Ve=function(){return q.start(Pe)}),q.pull!==void 0&&(at=function(){return q.pull(Pe)}),q.cancel!==void 0&&(mt=function(Pt){return q.cancel(Pt)}),Ka(b,Pe,Ve,at,mt,le,Se)}function xa(b){return new TypeError("ReadableStreamDefaultController.prototype."+b+" can only be used on a ReadableStreamDefaultController")}function Ir(b,q){return ve(b._readableStreamController)?Dr(b):Pr(b)}function Pr(b,q){var le=M(b),Se=!1,Pe=!1,Ve=!1,at=!1,mt,Pt,Dt,Rt,$t,Jt=e(function(tn){$t=tn});function ln(){if(Se)return Pe=!0,N(void 0);Se=!0;var tn={_chunkSteps:function(dn){B(function(){Pe=!1;var sn=dn,wn=dn;Ve||ma(Dt._readableStreamController,sn),at||ma(Rt._readableStreamController,wn),Se=!1,Pe&&ln()})},_closeSteps:function(){Se=!1,Ve||sa(Dt._readableStreamController),at||sa(Rt._readableStreamController),(!Ve||!at)&&$t(void 0)},_errorSteps:function(){Se=!1}};return ne(le,tn),N(void 0)}function _n(tn){if(Ve=!0,mt=tn,at){var dn=be([mt,Pt]),sn=cn(b,dn);$t(sn)}return Jt}function Tn(tn){if(at=!0,Pt=tn,Ve){var dn=be([mt,Pt]),sn=cn(b,dn);$t(sn)}return Jt}function fn(){}return Dt=Ra(fn,ln,_n),Rt=Ra(fn,ln,Tn),g(le._closedPromise,function(tn){Fn(Dt._readableStreamController,tn),Fn(Rt._readableStreamController,tn),(!Ve||!at)&&$t(void 0)}),[Dt,Rt]}function Dr(b){var q=M(b),le=!1,Se=!1,Pe=!1,Ve=!1,at=!1,mt,Pt,Dt,Rt,$t,Jt=e(function(qt){$t=qt});function ln(qt){g(qt._closedPromise,function(Ft){qt===q&&(He(Dt._readableStreamController,Ft),He(Rt._readableStreamController,Ft),(!Ve||!at)&&$t(void 0))})}function _n(){yt(q)&&(f(q),q=M(b),ln(q));var qt={_chunkSteps:function(Ft){B(function(){Se=!1,Pe=!1;var Xt=Ft,Kt=Ft;if(!Ve&&!at)try{Kt=Oe(Ft)}catch(gn){He(Dt._readableStreamController,gn),He(Rt._readableStreamController,gn),$t(cn(b,gn));return}Ve||Ke(Dt._readableStreamController,Xt),at||Ke(Rt._readableStreamController,Kt),le=!1,Se?fn():Pe&&tn()})},_closeSteps:function(){le=!1,Ve||Ue(Dt._readableStreamController),at||Ue(Rt._readableStreamController),Dt._readableStreamController._pendingPullIntos.length>0&&qe(Dt._readableStreamController,0),Rt._readableStreamController._pendingPullIntos.length>0&&qe(Rt._readableStreamController,0),(!Ve||!at)&&$t(void 0)},_errorSteps:function(){le=!1}};ne(q,qt)}function Tn(qt,Ft){ce(q)&&(f(q),q=We(b),ln(q));var Xt=Ft?Rt:Dt,Kt=Ft?Dt:Rt,gn={_chunkSteps:function(In){B(function(){Se=!1,Pe=!1;var Vn=Ft?at:Ve,la=Ft?Ve:at;if(la)Vn||dt(Xt._readableStreamController,In);else{var hr=void 0;try{hr=Oe(In)}catch(Ma){He(Xt._readableStreamController,Ma),He(Kt._readableStreamController,Ma),$t(cn(b,Ma));return}Vn||dt(Xt._readableStreamController,In),Ke(Kt._readableStreamController,hr)}le=!1,Se?fn():Pe&&tn()})},_closeSteps:function(In){le=!1;var Vn=Ft?at:Ve,la=Ft?Ve:at;Vn||Ue(Xt._readableStreamController),la||Ue(Kt._readableStreamController),In!==void 0&&(Vn||dt(Xt._readableStreamController,In),!la&&Kt._readableStreamController._pendingPullIntos.length>0&&qe(Kt._readableStreamController,0)),(!Vn||!la)&&$t(void 0)},_errorSteps:function(){le=!1}};wt(q,qt,gn)}function fn(){if(le)return Se=!0,N(void 0);le=!0;var qt=lt(Dt._readableStreamController);return qt===null?_n():Tn(qt._view,!1),N(void 0)}function tn(){if(le)return Pe=!0,N(void 0);le=!0;var qt=lt(Rt._readableStreamController);return qt===null?_n():Tn(qt._view,!0),N(void 0)}function dn(qt){if(Ve=!0,mt=qt,at){var Ft=be([mt,Pt]),Xt=cn(b,Ft);$t(Xt)}return Jt}function sn(qt){if(at=!0,Pt=qt,Ve){var Ft=be([mt,Pt]),Xt=cn(b,Ft);$t(Xt)}return Jt}function wn(){}return Dt=Ja(wn,fn,dn),Rt=Ja(wn,tn,sn),ln(q),[Dt,Rt]}function Rr(b,q){$(b,q);var le=b,Se=le==null?void 0:le.autoAllocateChunkSize,Pe=le==null?void 0:le.cancel,Ve=le==null?void 0:le.pull,at=le==null?void 0:le.start,mt=le==null?void 0:le.type;return{autoAllocateChunkSize:Se===void 0?void 0:Q(Se,q+" has member 'autoAllocateChunkSize' that"),cancel:Pe===void 0?void 0:Br(Pe,le,q+" has member 'cancel' that"),pull:Ve===void 0?void 0:Mr(Ve,le,q+" has member 'pull' that"),start:at===void 0?void 0:Nr(at,le,q+" has member 'start' that"),type:mt===void 0?void 0:Lr(mt,q+" has member 'type' that")}}function Br(b,q,le){return j(b,le),function(Se){return c(b,q,[Se])}}function Mr(b,q,le){return j(b,le),function(Se){return c(b,q,[Se])}}function Nr(b,q,le){return j(b,le),function(Se){return h(b,q,[Se])}}function Lr(b,q){if(b=""+b,b!=="bytes")throw new TypeError(q+" '"+b+"' is not a valid enumeration value for ReadableStreamType");return b}function $r(b,q){$(b,q);var le=b==null?void 0:b.mode;return{mode:le===void 0?void 0:Ur(le,q+" has member 'mode' that")}}function Ur(b,q){if(b=""+b,b!=="byob")throw new TypeError(q+" '"+b+"' is not a valid enumeration value for ReadableStreamReaderMode");return b}function jr(b,q){$(b,q);var le=b==null?void 0:b.preventCancel;return{preventCancel:!!le}}function Ya(b,q){$(b,q);var le=b==null?void 0:b.preventAbort,Se=b==null?void 0:b.preventCancel,Pe=b==null?void 0:b.preventClose,Ve=b==null?void 0:b.signal;return Ve!==void 0&&Xr(Ve,q+" has member 'signal' that"),{preventAbort:!!le,preventCancel:!!Se,preventClose:!!Pe,signal:Ve}}function Xr(b,q){if(!Xn(b))throw new TypeError(q+" is not an AbortSignal.")}function Hr(b,q){$(b,q);var le=b==null?void 0:b.readable;G(le,"readable","ReadableWritablePair"),E(le,q+" has member 'readable' that");var Se=b==null?void 0:b.writable;return G(Se,"writable","ReadableWritablePair"),jn(Se,q+" has member 'writable' that"),{readable:le,writable:Se}}var kn=function(){function b(q,le){q===void 0&&(q={}),le===void 0&&(le={}),q===void 0?q=null:ee(q,"First parameter");var Se=Sn(le,"Second parameter"),Pe=Rr(q,"First parameter");if(Ba(this),Pe.type==="bytes"){if(Se.size!==void 0)throw new RangeError("The strategy for a byte stream cannot have a size function");var Ve=Ht(Se,0);we(this,Pe,Ve)}else{var at=nn(Se),Ve=Ht(Se,1);Tr(this,Pe,Ve,at)}}return Object.defineProperty(b.prototype,"locked",{get:function(){if(!En(this))throw $n("locked");return On(this)},enumerable:!1,configurable:!0}),b.prototype.cancel=function(q){return q===void 0&&(q=void 0),En(this)?On(this)?D(new TypeError("Cannot cancel a stream that already has a reader")):cn(this,q):D($n("cancel"))},b.prototype.getReader=function(q){if(q===void 0&&(q=void 0),!En(this))throw $n("getReader");var le=$r(q,"First parameter");return le.mode===void 0?M(this):We(this)},b.prototype.pipeThrough=function(q,le){if(le===void 0&&(le={}),!En(this))throw $n("pipeThrough");U(q,1,"pipeThrough");var Se=Hr(q,"First parameter"),Pe=Ya(le,"Second parameter");if(On(this))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");if(un(Se.writable))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");var Ve=Va(this,Se.writable,Pe.preventClose,Pe.preventAbort,Pe.preventCancel,Pe.signal);return I(Ve),Se.readable},b.prototype.pipeTo=function(q,le){if(le===void 0&&(le={}),!En(this))return D($n("pipeTo"));if(q===void 0)return D("Parameter 1 is required in 'pipeTo'.");if(!on(q))return D(new TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream"));var Se;try{Se=Ya(le,"Second parameter")}catch(Pe){return D(Pe)}return On(this)?D(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")):un(q)?D(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")):Va(this,q,Se.preventClose,Se.preventAbort,Se.preventCancel,Se.signal)},b.prototype.tee=function(){if(!En(this))throw $n("tee");var q=Ir(this);return be(q)},b.prototype.values=function(q){if(q===void 0&&(q=void 0),!En(this))throw $n("values");var le=jr(q,"First parameter");return me(this,le.preventCancel)},b}();Object.defineProperties(kn.prototype,{cancel:{enumerable:!0},getReader:{enumerable:!0},pipeThrough:{enumerable:!0},pipeTo:{enumerable:!0},tee:{enumerable:!0},values:{enumerable:!0},locked:{enumerable:!0}}),typeof At.toStringTag=="symbol"&&Object.defineProperty(kn.prototype,At.toStringTag,{value:"ReadableStream",configurable:!0}),typeof At.asyncIterator=="symbol"&&Object.defineProperty(kn.prototype,At.asyncIterator,{value:kn.prototype.values,writable:!0,configurable:!0});function Ra(b,q,le,Se,Pe){Se===void 0&&(Se=1),Pe===void 0&&(Pe=function(){return 1});var Ve=Object.create(kn.prototype);Ba(Ve);var at=Object.create(Wn.prototype);return Ka(Ve,at,b,q,le,Se,Pe),Ve}function Ja(b,q,le){var Se=Object.create(kn.prototype);Ba(Se);var Pe=Object.create(Qe.prototype);return gt(Se,Pe,b,q,le,0,void 0),Se}function Ba(b){b._state="readable",b._reader=void 0,b._storedError=void 0,b._disturbed=!1}function En(b){return!l(b)||!Object.prototype.hasOwnProperty.call(b,"_readableStreamController")?!1:b instanceof kn}function On(b){return b._reader!==void 0}function cn(b,q){if(b._disturbed=!0,b._state==="closed")return N(void 0);if(b._state==="errored")return D(b._storedError);oa(b);var le=b._reader;le!==void 0&&yt(le)&&(le._readIntoRequests.forEach(function(Pe){Pe._closeSteps(void 0)}),le._readIntoRequests=new u);var Se=b._readableStreamController[R](q);return n(Se,Yt)}function oa(b){b._state="closed";var q=b._reader;q!==void 0&&(A(q),ce(q)&&(q._readRequests.forEach(function(le){le._closeSteps()}),q._readRequests=new u))}function Za(b,q){b._state="errored",b._storedError=q;var le=b._reader;le!==void 0&&(r(le,q),ce(le)?(le._readRequests.forEach(function(Se){Se._errorSteps(q)}),le._readRequests=new u):(le._readIntoRequests.forEach(function(Se){Se._errorSteps(q)}),le._readIntoRequests=new u))}function $n(b){return new TypeError("ReadableStream.prototype."+b+" can only be used on a ReadableStream")}function Qa(b,q){$(b,q);var le=b==null?void 0:b.highWaterMark;return G(le,"highWaterMark","QueuingStrategyInit"),{highWaterMark:Y(le)}}var er=function(b){return b.byteLength};try{Object.defineProperty(er,"name",{value:"size",configurable:!0})}catch{}var pa=function(){function b(q){U(q,1,"ByteLengthQueuingStrategy"),q=Qa(q,"First parameter"),this._byteLengthQueuingStrategyHighWaterMark=q.highWaterMark}return Object.defineProperty(b.prototype,"highWaterMark",{get:function(){if(!nr(this))throw tr("highWaterMark");return this._byteLengthQueuingStrategyHighWaterMark},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"size",{get:function(){if(!nr(this))throw tr("size");return er},enumerable:!1,configurable:!0}),b}();Object.defineProperties(pa.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}}),typeof At.toStringTag=="symbol"&&Object.defineProperty(pa.prototype,At.toStringTag,{value:"ByteLengthQueuingStrategy",configurable:!0});function tr(b){return new TypeError("ByteLengthQueuingStrategy.prototype."+b+" can only be used on a ByteLengthQueuingStrategy")}function nr(b){return!l(b)||!Object.prototype.hasOwnProperty.call(b,"_byteLengthQueuingStrategyHighWaterMark")?!1:b instanceof pa}var ar=function(){return 1};try{Object.defineProperty(ar,"name",{value:"size",configurable:!0})}catch{}var ba=function(){function b(q){U(q,1,"CountQueuingStrategy"),q=Qa(q,"First parameter"),this._countQueuingStrategyHighWaterMark=q.highWaterMark}return Object.defineProperty(b.prototype,"highWaterMark",{get:function(){if(!ir(this))throw rr("highWaterMark");return this._countQueuingStrategyHighWaterMark},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"size",{get:function(){if(!ir(this))throw rr("size");return ar},enumerable:!1,configurable:!0}),b}();Object.defineProperties(ba.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}}),typeof At.toStringTag=="symbol"&&Object.defineProperty(ba.prototype,At.toStringTag,{value:"CountQueuingStrategy",configurable:!0});function rr(b){return new TypeError("CountQueuingStrategy.prototype."+b+" can only be used on a CountQueuingStrategy")}function ir(b){return!l(b)||!Object.prototype.hasOwnProperty.call(b,"_countQueuingStrategyHighWaterMark")?!1:b instanceof ba}function zr(b,q){$(b,q);var le=b==null?void 0:b.flush,Se=b==null?void 0:b.readableType,Pe=b==null?void 0:b.start,Ve=b==null?void 0:b.transform,at=b==null?void 0:b.writableType;return{flush:le===void 0?void 0:Wr(le,b,q+" has member 'flush' that"),readableType:Se,start:Pe===void 0?void 0:Gr(Pe,b,q+" has member 'start' that"),transform:Ve===void 0?void 0:_r(Ve,b,q+" has member 'transform' that"),writableType:at}}function Wr(b,q,le){return j(b,le),function(Se){return c(b,q,[Se])}}function Gr(b,q,le){return j(b,le),function(Se){return h(b,q,[Se])}}function _r(b,q,le){return j(b,le),function(Se,Pe){return c(b,q,[Se,Pe])}}var ya=function(){function b(q,le,Se){q===void 0&&(q={}),le===void 0&&(le={}),Se===void 0&&(Se={}),q===void 0&&(q=null);var Pe=Sn(le,"Second parameter"),Ve=Sn(Se,"Third parameter"),at=zr(q,"First parameter");if(at.readableType!==void 0)throw new RangeError("Invalid readableType specified");if(at.writableType!==void 0)throw new RangeError("Invalid writableType specified");var mt=Ht(Ve,0),Pt=nn(Ve),Dt=Ht(Pe,1),Rt=nn(Pe),$t,Jt=e(function(ln){$t=ln});Vr(this,Jt,Dt,Rt,mt,Pt),Kr(this,at),at.start!==void 0?$t(at.start(this._transformStreamController)):$t(void 0)}return Object.defineProperty(b.prototype,"readable",{get:function(){if(!sr(this))throw ur("readable");return this._readable},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"writable",{get:function(){if(!sr(this))throw ur("writable");return this._writable},enumerable:!1,configurable:!0}),b}();Object.defineProperties(ya.prototype,{readable:{enumerable:!0},writable:{enumerable:!0}}),typeof At.toStringTag=="symbol"&&Object.defineProperty(ya.prototype,At.toStringTag,{value:"TransformStream",configurable:!0});function Vr(b,q,le,Se,Pe,Ve){function at(){return q}function mt(Jt){return Zr(b,Jt)}function Pt(Jt){return Qr(b,Jt)}function Dt(){return ei(b)}b._writable=Dn(at,mt,Dt,Pt,le,Se);function Rt(){return ti(b)}function $t(Jt){return Sa(b,Jt),N(void 0)}b._readable=Ra(at,Rt,$t,Pe,Ve),b._backpressure=void 0,b._backpressureChangePromise=void 0,b._backpressureChangePromise_resolve=void 0,va(b,!0),b._transformStreamController=void 0}function sr(b){return!l(b)||!Object.prototype.hasOwnProperty.call(b,"_transformStreamController")?!1:b instanceof ya}function wa(b,q){Fn(b._readable._readableStreamController,q),Sa(b,q)}function Sa(b,q){or(b._transformStreamController),ka(b._writable._writableStreamController,q),b._backpressure&&va(b,!1)}function va(b,q){b._backpressureChangePromise!==void 0&&b._backpressureChangePromise_resolve(),b._backpressureChangePromise=e(function(le){b._backpressureChangePromise_resolve=le}),b._backpressure=q}var ca=function(){function b(){throw new TypeError("Illegal constructor")}return Object.defineProperty(b.prototype,"desiredSize",{get:function(){if(!Ca(this))throw Aa("desiredSize");var q=this._controlledTransformStream._readable._readableStreamController;return Da(q)},enumerable:!1,configurable:!0}),b.prototype.enqueue=function(q){if(q===void 0&&(q=void 0),!Ca(this))throw Aa("enqueue");cr(this,q)},b.prototype.error=function(q){if(q===void 0&&(q=void 0),!Ca(this))throw Aa("error");Yr(this,q)},b.prototype.terminate=function(){if(!Ca(this))throw Aa("terminate");Jr(this)},b}();Object.defineProperties(ca.prototype,{enqueue:{enumerable:!0},error:{enumerable:!0},terminate:{enumerable:!0},desiredSize:{enumerable:!0}}),typeof At.toStringTag=="symbol"&&Object.defineProperty(ca.prototype,At.toStringTag,{value:"TransformStreamDefaultController",configurable:!0});function Ca(b){return!l(b)||!Object.prototype.hasOwnProperty.call(b,"_controlledTransformStream")?!1:b instanceof ca}function qr(b,q,le,Se){q._controlledTransformStream=b,b._transformStreamController=q,q._transformAlgorithm=le,q._flushAlgorithm=Se}function Kr(b,q){var le=Object.create(ca.prototype),Se=function(Ve){try{return cr(le,Ve),N(void 0)}catch(at){return D(at)}},Pe=function(){return N(void 0)};q.transform!==void 0&&(Se=function(Ve){return q.transform(Ve,le)}),q.flush!==void 0&&(Pe=function(){return q.flush(le)}),qr(b,le,Se,Pe)}function or(b){b._transformAlgorithm=void 0,b._flushAlgorithm=void 0}function cr(b,q){var le=b._controlledTransformStream,Se=le._readable._readableStreamController;if(!Gn(Se))throw new TypeError("Readable side is not in a state that permits enqueue");try{ma(Se,q)}catch(Ve){throw Sa(le,Ve),le._readable._storedError}var Pe=Or(Se);Pe!==le._backpressure&&va(le,!0)}function Yr(b,q){wa(b._controlledTransformStream,q)}function lr(b,q){var le=b._transformAlgorithm(q);return n(le,void 0,function(Se){throw wa(b._controlledTransformStream,Se),Se})}function Jr(b){var q=b._controlledTransformStream,le=q._readable._readableStreamController;sa(le);var Se=new TypeError("TransformStream terminated");Sa(q,Se)}function Zr(b,q){var le=b._transformStreamController;if(b._backpressure){var Se=b._backpressureChangePromise;return n(Se,function(){var Pe=b._writable,Ve=Pe._state;if(Ve==="erroring")throw Pe._storedError;return lr(le,q)})}return lr(le,q)}function Qr(b,q){return wa(b,q),N(void 0)}function ei(b){var q=b._readable,le=b._transformStreamController,Se=le._flushAlgorithm();return or(le),n(Se,function(){if(q._state==="errored")throw q._storedError;sa(q._readableStreamController)},function(Pe){throw wa(b,Pe),q._storedError})}function ti(b){return va(b,!1),b._backpressureChangePromise}function Aa(b){return new TypeError("TransformStreamDefaultController.prototype."+b+" can only be used on a TransformStreamDefaultController")}function ur(b){return new TypeError("TransformStream.prototype."+b+" can only be used on a TransformStream")}Gt.ByteLengthQueuingStrategy=pa,Gt.CountQueuingStrategy=ba,Gt.ReadableByteStreamController=Qe,Gt.ReadableStream=kn,Gt.ReadableStreamBYOBReader=jt,Gt.ReadableStreamBYOBRequest=Ge,Gt.ReadableStreamDefaultController=Wn,Gt.ReadableStreamDefaultReader=Z,Gt.TransformStream=ya,Gt.TransformStreamDefaultController=ca,Gt.WritableStream=xn,Gt.WritableStreamDefaultController=Et,Gt.WritableStreamDefaultWriter=ot,Object.defineProperty(Gt,"__esModule",{value:!0})})}(pr,Kn)),Kn}(function(en,rn){(function(At,Yt){en.exports=Yt()})(globalThis,()=>(()=>{var Gt=[,(he,l,w)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.WorkerTask=l.WorkerMessageHandler=void 0;var t=w(2),i=w(136),O=w(137),P=w(139),e=w(202),N=w(196),D=w(4),L=w(233),k=w(234);class x{constructor(B){this.name=B,this.terminated=!1,this._capability=(0,t.createPromiseCapability)()}get finished(){return this._capability.promise}finish(){this._capability.resolve()}terminate(){this.terminated=!0}ensureNotTerminated(){if(this.terminated)throw new Error("Worker task was terminated")}}l.WorkerTask=x;class g{static setup(B,h){let c=!1;B.on("test",function(C){c||(c=!0,B.send("test",C instanceof Uint8Array))}),B.on("configure",function(C){(0,t.setVerbosityLevel)(C.verbosity)}),B.on("GetDocRequest",function(C){return g.createDocumentHandler(C,h)})}static createDocumentHandler(B,h){let c,C=!1,u=null;const m=new Set,X=(0,t.getVerbosityLevel)(),{docId:f,apiVersion:F}=B,s="3.4.120";if(F!==s)throw new Error(`The API version "${F}" does not match the Worker version "${s}".`);const d=[];for(const y in[])d.push(y);if(d.length)throw new Error("The `Array.prototype` contains unexpected enumerable properties: "+d.join(", ")+"; thus breaking e.g. `for...in` iteration of `Array`s.");if(typeof ReadableStream>"u"){const y="The browser/environment lacks native support for critical functionality used by the PDF.js library (e.g. `ReadableStream`); ";throw D.isNodeJS?new Error(y+"please use a `legacy`-build instead."):new Error(y+"please update to a supported browser.")}const S=f+"_worker";let r=new L.MessageHandler(S,f,h);function o(){if(C)throw new Error("Worker was terminated")}function A(y){m.add(y)}function p(y){y.finish(),m.delete(y)}async function v(y){await c.ensureDoc("checkHeader"),await c.ensureDoc("parseStartXRef"),await c.ensureDoc("parse",[y]),await c.ensureDoc("checkFirstPage",[y]),await c.ensureDoc("checkLastPage",[y]);const H=await c.ensureDoc("isPureXfa");if(H){const V=new x("loadXfaFonts");A(V),await Promise.all([c.loadXfaFonts(r,V).catch(ee=>{}).then(()=>p(V)),c.loadXfaImages()])}const[z,$]=await Promise.all([c.ensureDoc("numPages"),c.ensureDoc("fingerprints")]),j=H?await c.ensureDoc("htmlForXfa"):null;return{numPages:z,fingerprints:$,htmlForXfa:j}}function R(y){let{data:H,password:z,disableAutoFetch:$,rangeChunkSize:j,length:V,docBaseUrl:ee,enableXfa:U,evaluatorOptions:G}=y;const Y={source:null,disableAutoFetch:$,docBaseUrl:ee,docId:f,enableXfa:U,evaluatorOptions:G,handler:r,length:V,password:z,rangeChunkSize:j},oe=(0,t.createPromiseCapability)();let se;if(H){try{Y.source=H,se=new P.LocalPdfManager(Y),oe.resolve(se)}catch(K){oe.reject(K)}return oe.promise}let Q,E=[];try{Q=new k.PDFWorkerStream(r)}catch(K){return oe.reject(K),oe.promise}const M=Q.getFullReader();M.headersReady.then(function(){if(M.isRangeSupported){Y.source=Q,Y.length=M.contentLength,Y.disableAutoFetch=Y.disableAutoFetch||M.isStreamingSupported,se=new P.NetworkPdfManager(Y);for(const K of E)se.sendProgressiveData(K);E=[],oe.resolve(se),u=null}}).catch(function(K){oe.reject(K),u=null});let _=0;const J=function(){const K=(0,i.arrayBuffersToBytes)(E);V&&K.length!==V&&(0,t.warn)("reported HTTP length is different from actual");try{Y.source=K,se=new P.LocalPdfManager(Y),oe.resolve(se)}catch(te){oe.reject(te)}E=[]};return new Promise(function(K,te){const Z=function(ce){let{value:ne,done:re}=ce;try{if(o(),re){se||J(),u=null;return}_+=ne.byteLength,M.isStreamingSupported||r.send("DocProgress",{loaded:_,total:Math.max(_,M.contentLength||0)}),se?se.sendProgressiveData(ne):E.push(ne),M.read().then(Z,te)}catch(ie){te(ie)}};M.read().then(Z,te)}).catch(function(K){oe.reject(K),u=null}),u=function(K){Q.cancelAllRequests(K)},oe.promise}function T(y){function H(j){o(),r.send("GetDoc",{pdfInfo:j})}function z(j){if(o(),j instanceof t.PasswordException){const V=new x(`PasswordException: response ${j.code}`);A(V),r.sendWithPromise("PasswordRequest",j).then(function(ee){let{password:U}=ee;p(V),c.updatePassword(U),$()}).catch(function(){p(V),r.send("DocException",j)})}else j instanceof t.InvalidPDFException||j instanceof t.MissingPDFException||j instanceof t.UnexpectedResponseException||j instanceof t.UnknownErrorException?r.send("DocException",j):r.send("DocException",new t.UnknownErrorException(j.message,j.toString()))}function $(){o(),v(!1).then(H,function(j){if(o(),!(j instanceof i.XRefParseException)){z(j);return}c.requestLoadedStream().then(function(){o(),v(!0).then(H,z)})})}o(),R(y).then(function(j){if(C)throw j.terminate(new t.AbortException("Worker was terminated.")),new Error("Worker was terminated");c=j,c.requestLoadedStream(!0).then(V=>{r.send("DataLoaded",{length:V.bytes.byteLength})})}).then($,z)}return r.on("GetPage",function(y){return c.getPage(y.pageIndex).then(function(H){return Promise.all([c.ensure(H,"rotate"),c.ensure(H,"ref"),c.ensure(H,"userUnit"),c.ensure(H,"view")]).then(function(z){let[$,j,V,ee]=z;return{rotate:$,ref:j,userUnit:V,view:ee}})})}),r.on("GetPageIndex",function(y){const H=O.Ref.get(y.num,y.gen);return c.ensureCatalog("getPageIndex",[H])}),r.on("GetDestinations",function(y){return c.ensureCatalog("destinations")}),r.on("GetDestination",function(y){return c.ensureCatalog("getDestination",[y.id])}),r.on("GetPageLabels",function(y){return c.ensureCatalog("pageLabels")}),r.on("GetPageLayout",function(y){return c.ensureCatalog("pageLayout")}),r.on("GetPageMode",function(y){return c.ensureCatalog("pageMode")}),r.on("GetViewerPreferences",function(y){return c.ensureCatalog("viewerPreferences")}),r.on("GetOpenAction",function(y){return c.ensureCatalog("openAction")}),r.on("GetAttachments",function(y){return c.ensureCatalog("attachments")}),r.on("GetJavaScript",function(y){return c.ensureCatalog("javaScript")}),r.on("GetDocJSActions",function(y){return c.ensureCatalog("jsActions")}),r.on("GetPageJSActions",function(y){let{pageIndex:H}=y;return c.getPage(H).then(function(z){return c.ensure(z,"jsActions")})}),r.on("GetOutline",function(y){return c.ensureCatalog("documentOutline")}),r.on("GetOptionalContentConfig",function(y){return c.ensureCatalog("optionalContentConfig")}),r.on("GetPermissions",function(y){return c.ensureCatalog("permissions")}),r.on("GetMetadata",function(y){return Promise.all([c.ensureDoc("documentInfo"),c.ensureCatalog("metadata")])}),r.on("GetMarkInfo",function(y){return c.ensureCatalog("markInfo")}),r.on("GetData",function(y){return c.requestLoadedStream().then(function(H){return H.bytes})}),r.on("GetAnnotations",function(y){let{pageIndex:H,intent:z}=y;return c.getPage(H).then(function($){const j=new x(`GetAnnotations: page ${H}`);return A(j),$.getAnnotationsData(r,j,z).then(V=>(p(j),V),V=>{throw p(j),V})})}),r.on("GetFieldObjects",function(y){return c.ensureDoc("fieldObjects")}),r.on("HasJSActions",function(y){return c.ensureDoc("hasJSActions")}),r.on("GetCalculationOrderIds",function(y){return c.ensureDoc("calculationOrderIds")}),r.on("SaveDocument",function(y){let{isPureXfa:H,numPages:z,annotationStorage:$,filename:j}=y;const V=[c.requestLoadedStream(),c.ensureCatalog("acroForm"),c.ensureCatalog("acroFormRef"),c.ensureDoc("xref"),c.ensureDoc("startXRef")],ee=H?null:(0,i.getNewAnnotationsMap)($);if(ee)for(const[U,G]of ee)V.push(c.getPage(U).then(Y=>{const oe=new x(`Save (editor): page ${U}`);return Y.saveNewAnnotations(r,oe,G).finally(function(){p(oe)})}));if(H)V.push(c.serializeXfaData($));else for(let U=0;U<z;U++)V.push(c.getPage(U).then(function(G){const Y=new x(`Save: page ${U}`);return G.save(r,Y,$).finally(function(){p(Y)})}));return Promise.all(V).then(function(U){let[G,Y,oe,se,Q,...E]=U,M=[],_=null;if(H){if(_=E[0],!_)return G.bytes}else if(M=E.flat(2),M.length===0)return G.bytes;const J=oe&&Y instanceof O.Dict&&M.some(ne=>ne.needAppearances),K=Y instanceof O.Dict&&Y.get("XFA")||null;let te=null,Z=!1;if(Array.isArray(K)){for(let ne=0,re=K.length;ne<re;ne+=2)K[ne]==="datasets"&&(te=K[ne+1],Z=!0);te===null&&(te=se.getNewTemporaryRef())}else K&&(0,t.warn)("Unsupported XFA type.");let ce=Object.create(null);if(se.trailer){const ne=Object.create(null),re=se.trailer.get("Info")||null;re instanceof O.Dict&&re.forEach((ie,ae)=>{typeof ae=="string"&&(ne[ie]=(0,t.stringToPDFString)(ae))}),ce={rootRef:se.trailer.getRaw("Root")||null,encryptRef:se.trailer.getRaw("Encrypt")||null,newRef:se.getNewTemporaryRef(),infoRef:se.trailer.getRaw("Info")||null,info:ne,fileIds:se.trailer.get("ID")||null,startXRef:Q,filename:j}}try{return(0,N.incrementalUpdate)({originalData:G.bytes,xrefInfo:ce,newRefs:M,xref:se,hasXfa:!!K,xfaDatasetsRef:te,hasXfaDatasetsEntry:Z,needAppearances:J,acroFormRef:oe,acroForm:Y,xfaData:_})}finally{se.resetNewTemporaryRef()}})}),r.on("GetOperatorList",function(y,H){const z=y.pageIndex;c.getPage(z).then(function($){const j=new x(`GetOperatorList: page ${z}`);A(j);const V=X>=t.VerbosityLevel.INFOS?Date.now():0;$.getOperatorList({handler:r,sink:H,task:j,intent:y.intent,cacheKey:y.cacheKey,annotationStorage:y.annotationStorage}).then(function(ee){p(j),V&&(0,t.info)(`page=${z+1} - getOperatorList: time=${Date.now()-V}ms, len=${ee.length}`),H.close()},function(ee){p(j),!j.terminated&&H.error(ee)})})}),r.on("GetTextContent",function(y,H){const z=y.pageIndex;c.getPage(z).then(function($){const j=new x("GetTextContent: page "+z);A(j);const V=X>=t.VerbosityLevel.INFOS?Date.now():0;$.extractTextContent({handler:r,task:j,sink:H,includeMarkedContent:y.includeMarkedContent,combineTextItems:y.combineTextItems}).then(function(){p(j),V&&(0,t.info)(`page=${z+1} - getTextContent: time=${Date.now()-V}ms`),H.close()},function(ee){p(j),!j.terminated&&H.error(ee)})})}),r.on("GetStructTree",function(y){return c.getPage(y.pageIndex).then(function(H){return c.ensure(H,"getStructTree")})}),r.on("FontFallback",function(y){return c.fontFallback(y.id,r)}),r.on("Cleanup",function(y){return c.cleanup(!0)}),r.on("Terminate",function(y){C=!0;const H=[];if(c){c.terminate(new t.AbortException("Worker was terminated."));const z=c.cleanup();H.push(z),c=null}else(0,e.clearGlobalCaches)();u&&u(new t.AbortException("Worker was terminated."));for(const z of m)H.push(z.finished),z.terminate();return Promise.all(H).then(function(){r.destroy(),r=null})}),r.on("Ready",function(y){T(B),B=null}),S}static initializeFromPort(B){const h=new L.MessageHandler("worker","main",B);g.setup(h,B),h.send("ready",null)}}l.WorkerMessageHandler=g;function n(I){return typeof I.postMessage=="function"&&"onmessage"in I}typeof window>"u"&&!D.isNodeJS&&typeof self<"u"&&n(self)&&g.initializeFromPort(self)},(he,l,w)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.VerbosityLevel=l.Util=l.UnknownErrorException=l.UnexpectedResponseException=l.UNSUPPORTED_FEATURES=l.TextRenderingMode=l.RenderingIntentFlag=l.PermissionFlag=l.PasswordResponses=l.PasswordException=l.PageActionEventType=l.OPS=l.MissingPDFException=l.LINE_FACTOR=l.LINE_DESCENT_FACTOR=l.InvalidPDFException=l.ImageKind=l.IDENTITY_MATRIX=l.FormatError=l.FeatureTest=l.FONT_IDENTITY_MATRIX=l.DocumentActionEventType=l.CMapCompressionType=l.BaseException=l.BASELINE_FACTOR=l.AnnotationType=l.AnnotationStateModelType=l.AnnotationReviewState=l.AnnotationReplyType=l.AnnotationMode=l.AnnotationMarkedState=l.AnnotationFlag=l.AnnotationFieldFlag=l.AnnotationEditorType=l.AnnotationEditorPrefix=l.AnnotationEditorParamsType=l.AnnotationBorderStyleType=l.AnnotationActionEventType=l.AbortException=void 0,l.assert=$,l.bytesToString=_,l.createPromiseCapability=Ie,l.createValidAbsoluteUrl=V,l.getModificationDate=be,l.getVerbosityLevel=T,l.info=y,l.isArrayBuffer=pe,l.isArrayEqual=Ce,l.objectFromMap=Z,l.objectSize=te,l.setVerbosityLevel=R,l.shadow=ee,l.string32=K,l.stringToBytes=J,l.stringToPDFString=fe,l.stringToUTF8String=me,l.unreachable=z,l.utf8StringToString=Fe,l.warn=H,globalThis._pdfjsCompatibilityChecked||(globalThis._pdfjsCompatibilityChecked=!0,w(3));const t=[1,0,0,1,0,0];l.IDENTITY_MATRIX=t;const i=[.001,0,0,.001,0,0];l.FONT_IDENTITY_MATRIX=i;const O=1.35;l.LINE_FACTOR=O;const P=.35;l.LINE_DESCENT_FACTOR=P;const e=P/O;l.BASELINE_FACTOR=e;const N={ANY:1,DISPLAY:2,PRINT:4,SAVE:8,ANNOTATIONS_FORMS:16,ANNOTATIONS_STORAGE:32,ANNOTATIONS_DISABLE:64,OPLIST:256};l.RenderingIntentFlag=N;const D={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3};l.AnnotationMode=D;const L="pdfjs_internal_editor_";l.AnnotationEditorPrefix=L;const k={DISABLE:-1,NONE:0,FREETEXT:3,INK:15};l.AnnotationEditorType=k;const x={FREETEXT_SIZE:1,FREETEXT_COLOR:2,FREETEXT_OPACITY:3,INK_COLOR:11,INK_THICKNESS:12,INK_OPACITY:13};l.AnnotationEditorParamsType=x;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};l.PermissionFlag=g;const n={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};l.TextRenderingMode=n;const I={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3};l.ImageKind=I;const B={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};l.AnnotationType=B;const h={MARKED:"Marked",REVIEW:"Review"};l.AnnotationStateModelType=h;const c={MARKED:"Marked",UNMARKED:"Unmarked"};l.AnnotationMarkedState=c;const C={ACCEPTED:"Accepted",REJECTED:"Rejected",CANCELLED:"Cancelled",COMPLETED:"Completed",NONE:"None"};l.AnnotationReviewState=C;const u={GROUP:"Group",REPLY:"R"};l.AnnotationReplyType=u;const m={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512};l.AnnotationFlag=m;const X={READONLY:1,REQUIRED:2,NOEXPORT:4,MULTILINE:4096,PASSWORD:8192,NOTOGGLETOOFF:16384,RADIO:32768,PUSHBUTTON:65536,COMBO:131072,EDIT:262144,SORT:524288,FILESELECT:1048576,MULTISELECT:2097152,DONOTSPELLCHECK:4194304,DONOTSCROLL:8388608,COMB:16777216,RICHTEXT:33554432,RADIOSINUNISON:33554432,COMMITONSELCHANGE:67108864};l.AnnotationFieldFlag=X;const f={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5};l.AnnotationBorderStyleType=f;const F={E:"Mouse Enter",X:"Mouse Exit",D:"Mouse Down",U:"Mouse Up",Fo:"Focus",Bl:"Blur",PO:"PageOpen",PC:"PageClose",PV:"PageVisible",PI:"PageInvisible",K:"Keystroke",F:"Format",V:"Validate",C:"Calculate"};l.AnnotationActionEventType=F;const s={WC:"WillClose",WS:"WillSave",DS:"DidSave",WP:"WillPrint",DP:"DidPrint"};l.DocumentActionEventType=s;const d={O:"PageOpen",C:"PageClose"};l.PageActionEventType=d;const S={ERRORS:0,WARNINGS:1,INFOS:5};l.VerbosityLevel=S;const r={NONE:0,BINARY:1};l.CMapCompressionType=r;const o={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotation:80,endAnnotation:81,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91};l.OPS=o;const A={forms:"forms",javaScript:"javaScript",signatures:"signatures",smask:"smask",shadingPattern:"shadingPattern",errorTilingPattern:"errorTilingPattern",errorExtGState:"errorExtGState",errorXObject:"errorXObject",errorFontLoadType3:"errorFontLoadType3",errorFontState:"errorFontState",errorFontMissing:"errorFontMissing",errorFontTranslate:"errorFontTranslate",errorColorSpace:"errorColorSpace",errorOperatorList:"errorOperatorList",errorFontToUnicode:"errorFontToUnicode",errorFontLoadNative:"errorFontLoadNative",errorFontBuildPath:"errorFontBuildPath",errorFontGetPath:"errorFontGetPath",errorMarkedContent:"errorMarkedContent",errorContentSubStream:"errorContentSubStream"};l.UNSUPPORTED_FEATURES=A;const p={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};l.PasswordResponses=p;let v=S.WARNINGS;function R(ye){Number.isInteger(ye)&&(v=ye)}function T(){return v}function y(ye){v>=S.INFOS&&console.log(`Info: ${ye}`)}function H(ye){v>=S.WARNINGS&&console.log(`Warning: ${ye}`)}function z(ye){throw new Error(ye)}function $(ye,de){ye||z(de)}function j(ye){if(!ye)return!1;switch(ye.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}function V(ye){let de=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,ge=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!ye)return null;try{if(ge&&typeof ye=="string"){if(ge.addDefaultProtocol&&ye.startsWith("www.")){const Oe=ye.match(/\./g);Oe&&Oe.length>=2&&(ye=`http://${ye}`)}if(ge.tryConvertEncoding)try{ye=me(ye)}catch{}}const xe=de?new URL(ye,de):new URL(ye);if(j(xe))return xe}catch{}return null}function ee(ye,de,ge){let xe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return Object.defineProperty(ye,de,{value:ge,enumerable:!xe,configurable:!0,writable:!1}),ge}const U=function(){function de(ge,xe){this.constructor===de&&z("Cannot initialize BaseException."),this.message=ge,this.name=xe}return de.prototype=new Error,de.constructor=de,de}();l.BaseException=U;class G extends U{constructor(de,ge){super(de,"PasswordException"),this.code=ge}}l.PasswordException=G;class Y extends U{constructor(de,ge){super(de,"UnknownErrorException"),this.details=ge}}l.UnknownErrorException=Y;class oe extends U{constructor(de){super(de,"InvalidPDFException")}}l.InvalidPDFException=oe;class se extends U{constructor(de){super(de,"MissingPDFException")}}l.MissingPDFException=se;class Q extends U{constructor(de,ge){super(de,"UnexpectedResponseException"),this.status=ge}}l.UnexpectedResponseException=Q;class E extends U{constructor(de){super(de,"FormatError")}}l.FormatError=E;class M extends U{constructor(de){super(de,"AbortException")}}l.AbortException=M;function _(ye){(typeof ye!="object"||ye===null||ye.length===void 0)&&z("Invalid argument for bytesToString");const de=ye.length,ge=8192;if(de<ge)return String.fromCharCode.apply(null,ye);const xe=[];for(let Oe=0;Oe<de;Oe+=ge){const je=Math.min(Oe+ge,de),it=ye.subarray(Oe,je);xe.push(String.fromCharCode.apply(null,it))}return xe.join("")}function J(ye){typeof ye!="string"&&z("Invalid argument for stringToBytes");const de=ye.length,ge=new Uint8Array(de);for(let xe=0;xe<de;++xe)ge[xe]=ye.charCodeAt(xe)&255;return ge}function K(ye){return String.fromCharCode(ye>>24&255,ye>>16&255,ye>>8&255,ye&255)}function te(ye){return Object.keys(ye).length}function Z(ye){const de=Object.create(null);for(const[ge,xe]of ye)de[ge]=xe;return de}function ce(){const ye=new Uint8Array(4);return ye[0]=1,new Uint32Array(ye.buffer,0,1)[0]===1}function ne(){try{return new Function(""),!0}catch{return!1}}class re{static get isLittleEndian(){return ee(this,"isLittleEndian",ce())}static get isEvalSupported(){return ee(this,"isEvalSupported",ne())}static get isOffscreenCanvasSupported(){return ee(this,"isOffscreenCanvasSupported",typeof OffscreenCanvas<"u")}static get platform(){return typeof navigator>"u"?ee(this,"platform",{isWin:!1,isMac:!1}):ee(this,"platform",{isWin:navigator.platform.includes("Win"),isMac:navigator.platform.includes("Mac")})}}l.FeatureTest=re;const ie=[...Array(256).keys()].map(ye=>ye.toString(16).padStart(2,"0"));class ae{static makeHexColor(de,ge,xe){return`#${ie[de]}${ie[ge]}${ie[xe]}`}static scaleMinMax(de,ge){let xe;de[0]?(de[0]<0&&(xe=ge[0],ge[0]=ge[1],ge[1]=xe),ge[0]*=de[0],ge[1]*=de[0],de[3]<0&&(xe=ge[2],ge[2]=ge[3],ge[3]=xe),ge[2]*=de[3],ge[3]*=de[3]):(xe=ge[0],ge[0]=ge[2],ge[2]=xe,xe=ge[1],ge[1]=ge[3],ge[3]=xe,de[1]<0&&(xe=ge[2],ge[2]=ge[3],ge[3]=xe),ge[2]*=de[1],ge[3]*=de[1],de[2]<0&&(xe=ge[0],ge[0]=ge[1],ge[1]=xe),ge[0]*=de[2],ge[1]*=de[2]),ge[0]+=de[4],ge[1]+=de[4],ge[2]+=de[5],ge[3]+=de[5]}static transform(de,ge){return[de[0]*ge[0]+de[2]*ge[1],de[1]*ge[0]+de[3]*ge[1],de[0]*ge[2]+de[2]*ge[3],de[1]*ge[2]+de[3]*ge[3],de[0]*ge[4]+de[2]*ge[5]+de[4],de[1]*ge[4]+de[3]*ge[5]+de[5]]}static applyTransform(de,ge){const xe=de[0]*ge[0]+de[1]*ge[2]+ge[4],Oe=de[0]*ge[1]+de[1]*ge[3]+ge[5];return[xe,Oe]}static applyInverseTransform(de,ge){const xe=ge[0]*ge[3]-ge[1]*ge[2],Oe=(de[0]*ge[3]-de[1]*ge[2]+ge[2]*ge[5]-ge[4]*ge[3])/xe,je=(-de[0]*ge[1]+de[1]*ge[0]+ge[4]*ge[1]-ge[5]*ge[0])/xe;return[Oe,je]}static getAxialAlignedBoundingBox(de,ge){const xe=ae.applyTransform(de,ge),Oe=ae.applyTransform(de.slice(2,4),ge),je=ae.applyTransform([de[0],de[3]],ge),it=ae.applyTransform([de[2],de[1]],ge);return[Math.min(xe[0],Oe[0],je[0],it[0]),Math.min(xe[1],Oe[1],je[1],it[1]),Math.max(xe[0],Oe[0],je[0],it[0]),Math.max(xe[1],Oe[1],je[1],it[1])]}static inverseTransform(de){const ge=de[0]*de[3]-de[1]*de[2];return[de[3]/ge,-de[1]/ge,-de[2]/ge,de[0]/ge,(de[2]*de[5]-de[4]*de[3])/ge,(de[4]*de[1]-de[5]*de[0])/ge]}static singularValueDecompose2dScale(de){const ge=[de[0],de[2],de[1],de[3]],xe=de[0]*ge[0]+de[1]*ge[2],Oe=de[0]*ge[1]+de[1]*ge[3],je=de[2]*ge[0]+de[3]*ge[2],it=de[2]*ge[1]+de[3]*ge[3],ke=(xe+it)/2,$e=Math.sqrt((xe+it)**2-4*(xe*it-je*Oe))/2,Ge=ke+$e||1,Qe=ke-$e||1;return[Math.sqrt(Ge),Math.sqrt(Qe)]}static normalizeRect(de){const ge=de.slice(0);return de[0]>de[2]&&(ge[0]=de[2],ge[2]=de[0]),de[1]>de[3]&&(ge[1]=de[3],ge[3]=de[1]),ge}static intersect(de,ge){const xe=Math.max(Math.min(de[0],de[2]),Math.min(ge[0],ge[2])),Oe=Math.min(Math.max(de[0],de[2]),Math.max(ge[0],ge[2]));if(xe>Oe)return null;const je=Math.max(Math.min(de[1],de[3]),Math.min(ge[1],ge[3])),it=Math.min(Math.max(de[1],de[3]),Math.max(ge[1],ge[3]));return je>it?null:[xe,je,Oe,it]}static bezierBoundingBox(de,ge,xe,Oe,je,it,ke,$e){const Ge=[],Qe=[[],[]];let ve,Ne,Me,nt,_e,rt,Xe,Je;for(let Ot=0;Ot<2;++Ot){if(Ot===0?(Ne=6*de-12*xe+6*je,ve=-3*de+9*xe-9*je+3*ke,Me=3*xe-3*de):(Ne=6*ge-12*Oe+6*it,ve=-3*ge+9*Oe-9*it+3*$e,Me=3*Oe-3*ge),Math.abs(ve)<1e-12){if(Math.abs(Ne)<1e-12)continue;nt=-Me/Ne,0<nt&&nt<1&&Ge.push(nt);continue}Xe=Ne*Ne-4*Me*ve,Je=Math.sqrt(Xe),!(Xe<0)&&(_e=(-Ne+Je)/(2*ve),0<_e&&_e<1&&Ge.push(_e),rt=(-Ne-Je)/(2*ve),0<rt&&rt<1&&Ge.push(rt))}let et=Ge.length,pt;const xt=et;for(;et--;)nt=Ge[et],pt=1-nt,Qe[0][et]=pt*pt*pt*de+3*pt*pt*nt*xe+3*pt*nt*nt*je+nt*nt*nt*ke,Qe[1][et]=pt*pt*pt*ge+3*pt*pt*nt*Oe+3*pt*nt*nt*it+nt*nt*nt*$e;return Qe[0][xt]=de,Qe[1][xt]=ge,Qe[0][xt+1]=ke,Qe[1][xt+1]=$e,Qe[0].length=Qe[1].length=xt+2,[Math.min(...Qe[0]),Math.min(...Qe[1]),Math.max(...Qe[0]),Math.max(...Qe[1])]}}l.Util=ae;const ue=[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 fe(ye){if(ye[0]>="ï"){let ge;if(ye[0]==="þ"&&ye[1]==="ÿ"?ge="utf-16be":ye[0]==="ÿ"&&ye[1]==="þ"?ge="utf-16le":ye[0]==="ï"&&ye[1]==="»"&&ye[2]==="¿"&&(ge="utf-8"),ge)try{const xe=new TextDecoder(ge,{fatal:!0}),Oe=J(ye);return xe.decode(Oe)}catch(xe){H(`stringToPDFString: "${xe}".`)}}const de=[];for(let ge=0,xe=ye.length;ge<xe;ge++){const Oe=ue[ye.charCodeAt(ge)];de.push(Oe?String.fromCharCode(Oe):ye.charAt(ge))}return de.join("")}function me(ye){return decodeURIComponent(escape(ye))}function Fe(ye){return unescape(encodeURIComponent(ye))}function pe(ye){return typeof ye=="object"&&ye!==null&&ye.byteLength!==void 0}function Ce(ye,de){if(ye.length!==de.length)return!1;for(let ge=0,xe=ye.length;ge<xe;ge++)if(ye[ge]!==de[ge])return!1;return!0}function be(){let ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Date;return[ye.getUTCFullYear().toString(),(ye.getUTCMonth()+1).toString().padStart(2,"0"),ye.getUTCDate().toString().padStart(2,"0"),ye.getUTCHours().toString().padStart(2,"0"),ye.getUTCMinutes().toString().padStart(2,"0"),ye.getUTCSeconds().toString().padStart(2,"0")].join("")}function Ie(){const ye=Object.create(null);let de=!1;return Object.defineProperty(ye,"settled",{get(){return de}}),ye.promise=new Promise(function(ge,xe){ye.resolve=function(Oe){de=!0,ge(Oe)},ye.reject=function(Oe){de=!0,xe(Oe)}}),ye}},(he,l,w)=>{var t=w(4);(function(){globalThis.btoa||!t.isNodeJS||(globalThis.btoa=function(O){return Buffer.from(O,"binary").toString("base64")})})(),function(){globalThis.atob||!t.isNodeJS||(globalThis.atob=function(O){return Buffer.from(O,"base64").toString("binary")})}(),function(){globalThis.DOMMatrix||!t.isNodeJS||(globalThis.DOMMatrix=La.DOMMatrix)}(),function(){if(globalThis.Path2D||!t.isNodeJS)return;const{CanvasRenderingContext2D:O}=La,{polyfillPath2D:P}=xr();globalThis.CanvasRenderingContext2D=O,P(globalThis)}(),function(){globalThis.ReadableStream||!t.isNodeJS||(globalThis.ReadableStream=br().ReadableStream)}(),function(){Array.prototype.at||w(5)}(),function(){Uint8Array.prototype.at||w(79)}(),function(){globalThis.structuredClone||w(89)}()},(he,l)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.isNodeJS=void 0;const w=typeof process=="object"&&process+""=="[object process]"&&!process.versions.nw&&!(process.versions.electron&&process.type&&process.type!=="browser");l.isNodeJS=w},(he,l,w)=>{w(6);var t=w(78);he.exports=t("Array","at")},(he,l,w)=>{var t=w(7),i=w(44),O=w(68),P=w(66),e=w(73);t({target:"Array",proto:!0},{at:function(D){var L=i(this),k=O(L),x=P(D),g=x>=0?x:k+x;return g<0||g>=k?void 0:L[g]}}),e("at")},(he,l,w)=>{var t=w(8),i=w(9).f,O=w(48),P=w(52),e=w(42),N=w(60),D=w(72);he.exports=function(L,k){var x=L.target,g=L.global,n=L.stat,I,B,h,c,C,u;if(g?B=t:n?B=t[x]||e(x,{}):B=(t[x]||{}).prototype,B)for(h in k){if(C=k[h],L.dontCallGetSet?(u=i(B,h),c=u&&u.value):c=B[h],I=D(g?h:x+(n?".":"#")+h,L.forced),!I&&c!==void 0){if(typeof C==typeof c)continue;N(C,c)}(L.sham||c&&c.sham)&&O(C,"sham",!0),P(B,h,C,L)}}},he=>{var l=function(w){return w&&w.Math==Math&&w};he.exports=l(typeof globalThis=="object"&&globalThis)||l(typeof window=="object"&&window)||l(typeof self=="object"&&self)||l(typeof qn=="object"&&qn)||function(){return this}()||Function("return this")()},(he,l,w)=>{var t=w(10),i=w(12),O=w(14),P=w(15),e=w(16),N=w(22),D=w(43),L=w(46),k=Object.getOwnPropertyDescriptor;l.f=t?k:function(g,n){if(g=e(g),n=N(n),L)try{return k(g,n)}catch{}if(D(g,n))return P(!i(O.f,g,n),g[n])}},(he,l,w)=>{var t=w(11);he.exports=!t(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},he=>{he.exports=function(l){try{return!!l()}catch{return!0}}},(he,l,w)=>{var t=w(13),i=Function.prototype.call;he.exports=t?i.bind(i):function(){return i.apply(i,arguments)}},(he,l,w)=>{var t=w(11);he.exports=!t(function(){var i=function(){}.bind();return typeof i!="function"||i.hasOwnProperty("prototype")})},(he,l)=>{var w={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,i=t&&!w.call({1:2},1);l.f=i?function(P){var e=t(this,P);return!!e&&e.enumerable}:w},he=>{he.exports=function(l,w){return{enumerable:!(l&1),configurable:!(l&2),writable:!(l&4),value:w}}},(he,l,w)=>{var t=w(17),i=w(20);he.exports=function(O){return t(i(O))}},(he,l,w)=>{var t=w(18),i=w(11),O=w(19),P=Object,e=t("".split);he.exports=i(function(){return!P("z").propertyIsEnumerable(0)})?function(N){return O(N)=="String"?e(N,""):P(N)}:P},(he,l,w)=>{var t=w(13),i=Function.prototype,O=i.call,P=t&&i.bind.bind(O,O);he.exports=t?P:function(e){return function(){return O.apply(e,arguments)}}},(he,l,w)=>{var t=w(18),i=t({}.toString),O=t("".slice);he.exports=function(P){return O(i(P),8,-1)}},(he,l,w)=>{var t=w(21),i=TypeError;he.exports=function(O){if(t(O))throw i("Can't call method on "+O);return O}},he=>{he.exports=function(l){return l==null}},(he,l,w)=>{var t=w(23),i=w(27);he.exports=function(O){var P=t(O,"string");return i(P)?P:P+""}},(he,l,w)=>{var t=w(12),i=w(24),O=w(27),P=w(34),e=w(37),N=w(38),D=TypeError,L=N("toPrimitive");he.exports=function(k,x){if(!i(k)||O(k))return k;var g=P(k,L),n;if(g){if(x===void 0&&(x="default"),n=t(g,k,x),!i(n)||O(n))return n;throw D("Can't convert object to primitive value")}return x===void 0&&(x="number"),e(k,x)}},(he,l,w)=>{var t=w(25),i=w(26),O=i.all;he.exports=i.IS_HTMLDDA?function(P){return typeof P=="object"?P!==null:t(P)||P===O}:function(P){return typeof P=="object"?P!==null:t(P)}},(he,l,w)=>{var t=w(26),i=t.all;he.exports=t.IS_HTMLDDA?function(O){return typeof O=="function"||O===i}:function(O){return typeof O=="function"}},he=>{var l=typeof document=="object"&&document.all,w=typeof l>"u"&&l!==void 0;he.exports={all:l,IS_HTMLDDA:w}},(he,l,w)=>{var t=w(28),i=w(25),O=w(29),P=w(30),e=Object;he.exports=P?function(N){return typeof N=="symbol"}:function(N){var D=t("Symbol");return i(D)&&O(D.prototype,e(N))}},(he,l,w)=>{var t=w(8),i=w(25),O=function(P){return i(P)?P:void 0};he.exports=function(P,e){return arguments.length<2?O(t[P]):t[P]&&t[P][e]}},(he,l,w)=>{var t=w(18);he.exports=t({}.isPrototypeOf)},(he,l,w)=>{var t=w(31);he.exports=t&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},(he,l,w)=>{var t=w(32),i=w(11);he.exports=!!Object.getOwnPropertySymbols&&!i(function(){var O=Symbol();return!String(O)||!(Object(O)instanceof Symbol)||!Symbol.sham&&t&&t<41})},(he,l,w)=>{var t=w(8),i=w(33),O=t.process,P=t.Deno,e=O&&O.versions||P&&P.version,N=e&&e.v8,D,L;N&&(D=N.split("."),L=D[0]>0&&D[0]<4?1:+(D[0]+D[1])),!L&&i&&(D=i.match(/Edge\/(\d+)/),(!D||D[1]>=74)&&(D=i.match(/Chrome\/(\d+)/),D&&(L=+D[1]))),he.exports=L},he=>{he.exports=typeof navigator<"u"&&String(navigator.userAgent)||""},(he,l,w)=>{var t=w(35),i=w(21);he.exports=function(O,P){var e=O[P];return i(e)?void 0:t(e)}},(he,l,w)=>{var t=w(25),i=w(36),O=TypeError;he.exports=function(P){if(t(P))return P;throw O(i(P)+" is not a function")}},he=>{var l=String;he.exports=function(w){try{return l(w)}catch{return"Object"}}},(he,l,w)=>{var t=w(12),i=w(25),O=w(24),P=TypeError;he.exports=function(e,N){var D,L;if(N==="string"&&i(D=e.toString)&&!O(L=t(D,e))||i(D=e.valueOf)&&!O(L=t(D,e))||N!=="string"&&i(D=e.toString)&&!O(L=t(D,e)))return L;throw P("Can't convert object to primitive value")}},(he,l,w)=>{var t=w(8),i=w(39),O=w(43),P=w(45),e=w(31),N=w(30),D=t.Symbol,L=i("wks"),k=N?D.for||D:D&&D.withoutSetter||P;he.exports=function(x){return O(L,x)||(L[x]=e&&O(D,x)?D[x]:k("Symbol."+x)),L[x]}},(he,l,w)=>{var t=w(40),i=w(41);(he.exports=function(O,P){return i[O]||(i[O]=P!==void 0?P:{})})("versions",[]).push({version:"3.27.2",mode:t?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.27.2/LICENSE",source:"https://github.com/zloirock/core-js"})},he=>{he.exports=!1},(he,l,w)=>{var t=w(8),i=w(42),O="__core-js_shared__",P=t[O]||i(O,{});he.exports=P},(he,l,w)=>{var t=w(8),i=Object.defineProperty;he.exports=function(O,P){try{i(t,O,{value:P,configurable:!0,writable:!0})}catch{t[O]=P}return P}},(he,l,w)=>{var t=w(18),i=w(44),O=t({}.hasOwnProperty);he.exports=Object.hasOwn||function(e,N){return O(i(e),N)}},(he,l,w)=>{var t=w(20),i=Object;he.exports=function(O){return i(t(O))}},(he,l,w)=>{var t=w(18),i=0,O=Math.random(),P=t(1 .toString);he.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+P(++i+O,36)}},(he,l,w)=>{var t=w(10),i=w(11),O=w(47);he.exports=!t&&!i(function(){return Object.defineProperty(O("div"),"a",{get:function(){return 7}}).a!=7})},(he,l,w)=>{var t=w(8),i=w(24),O=t.document,P=i(O)&&i(O.createElement);he.exports=function(e){return P?O.createElement(e):{}}},(he,l,w)=>{var t=w(10),i=w(49),O=w(15);he.exports=t?function(P,e,N){return i.f(P,e,O(1,N))}:function(P,e,N){return P[e]=N,P}},(he,l,w)=>{var t=w(10),i=w(46),O=w(50),P=w(51),e=w(22),N=TypeError,D=Object.defineProperty,L=Object.getOwnPropertyDescriptor,k="enumerable",x="configurable",g="writable";l.f=t?O?function(I,B,h){if(P(I),B=e(B),P(h),typeof I=="function"&&B==="prototype"&&"value"in h&&g in h&&!h[g]){var c=L(I,B);c&&c[g]&&(I[B]=h.value,h={configurable:x in h?h[x]:c[x],enumerable:k in h?h[k]:c[k],writable:!1})}return D(I,B,h)}:D:function(I,B,h){if(P(I),B=e(B),P(h),i)try{return D(I,B,h)}catch{}if("get"in h||"set"in h)throw N("Accessors not supported");return"value"in h&&(I[B]=h.value),I}},(he,l,w)=>{var t=w(10),i=w(11);he.exports=t&&i(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})},(he,l,w)=>{var t=w(24),i=String,O=TypeError;he.exports=function(P){if(t(P))return P;throw O(i(P)+" is not an object")}},(he,l,w)=>{var t=w(25),i=w(49),O=w(53),P=w(42);he.exports=function(e,N,D,L){L||(L={});var k=L.enumerable,x=L.name!==void 0?L.name:N;if(t(D)&&O(D,x,L),L.global)k?e[N]=D:P(N,D);else{try{L.unsafe?e[N]&&(k=!0):delete e[N]}catch{}k?e[N]=D:i.f(e,N,{value:D,enumerable:!1,configurable:!L.nonConfigurable,writable:!L.nonWritable})}return e}},(he,l,w)=>{var t=w(18),i=w(11),O=w(25),P=w(43),e=w(10),N=w(54).CONFIGURABLE,D=w(55),L=w(56),k=L.enforce,x=L.get,g=String,n=Object.defineProperty,I=t("".slice),B=t("".replace),h=t([].join),c=e&&!i(function(){return n(function(){},"length",{value:8}).length!==8}),C=String(String).split("String"),u=he.exports=function(m,X,f){I(g(X),0,7)==="Symbol("&&(X="["+B(g(X),/^Symbol\(([^)]*)\)/,"$1")+"]"),f&&f.getter&&(X="get "+X),f&&f.setter&&(X="set "+X),(!P(m,"name")||N&&m.name!==X)&&(e?n(m,"name",{value:X,configurable:!0}):m.name=X),c&&f&&P(f,"arity")&&m.length!==f.arity&&n(m,"length",{value:f.arity});try{f&&P(f,"constructor")&&f.constructor?e&&n(m,"prototype",{writable:!1}):m.prototype&&(m.prototype=void 0)}catch{}var F=k(m);return P(F,"source")||(F.source=h(C,typeof X=="string"?X:"")),m};Function.prototype.toString=u(function(){return O(this)&&x(this).source||D(this)},"toString")},(he,l,w)=>{var t=w(10),i=w(43),O=Function.prototype,P=t&&Object.getOwnPropertyDescriptor,e=i(O,"name"),N=e&&function(){}.name==="something",D=e&&(!t||t&&P(O,"name").configurable);he.exports={EXISTS:e,PROPER:N,CONFIGURABLE:D}},(he,l,w)=>{var t=w(18),i=w(25),O=w(41),P=t(Function.toString);i(O.inspectSource)||(O.inspectSource=function(e){return P(e)}),he.exports=O.inspectSource},(he,l,w)=>{var t=w(57),i=w(8),O=w(24),P=w(48),e=w(43),N=w(41),D=w(58),L=w(59),k="Object already initialized",x=i.TypeError,g=i.WeakMap,n,I,B,h=function(m){return B(m)?I(m):n(m,{})},c=function(m){return function(X){var f;if(!O(X)||(f=I(X)).type!==m)throw x("Incompatible receiver, "+m+" required");return f}};if(t||N.state){var C=N.state||(N.state=new g);C.get=C.get,C.has=C.has,C.set=C.set,n=function(m,X){if(C.has(m))throw x(k);return X.facade=m,C.set(m,X),X},I=function(m){return C.get(m)||{}},B=function(m){return C.has(m)}}else{var u=D("state");L[u]=!0,n=function(m,X){if(e(m,u))throw x(k);return X.facade=m,P(m,u,X),X},I=function(m){return e(m,u)?m[u]:{}},B=function(m){return e(m,u)}}he.exports={set:n,get:I,has:B,enforce:h,getterFor:c}},(he,l,w)=>{var t=w(8),i=w(25),O=t.WeakMap;he.exports=i(O)&&/native code/.test(String(O))},(he,l,w)=>{var t=w(39),i=w(45),O=t("keys");he.exports=function(P){return O[P]||(O[P]=i(P))}},he=>{he.exports={}},(he,l,w)=>{var t=w(43),i=w(61),O=w(9),P=w(49);he.exports=function(e,N,D){for(var L=i(N),k=P.f,x=O.f,g=0;g<L.length;g++){var n=L[g];!t(e,n)&&!(D&&t(D,n))&&k(e,n,x(N,n))}}},(he,l,w)=>{var t=w(28),i=w(18),O=w(62),P=w(71),e=w(51),N=i([].concat);he.exports=t("Reflect","ownKeys")||function(L){var k=O.f(e(L)),x=P.f;return x?N(k,x(L)):k}},(he,l,w)=>{var t=w(63),i=w(70),O=i.concat("length","prototype");l.f=Object.getOwnPropertyNames||function(e){return t(e,O)}},(he,l,w)=>{var t=w(18),i=w(43),O=w(16),P=w(64).indexOf,e=w(59),N=t([].push);he.exports=function(D,L){var k=O(D),x=0,g=[],n;for(n in k)!i(e,n)&&i(k,n)&&N(g,n);for(;L.length>x;)i(k,n=L[x++])&&(~P(g,n)||N(g,n));return g}},(he,l,w)=>{var t=w(16),i=w(65),O=w(68),P=function(e){return function(N,D,L){var k=t(N),x=O(k),g=i(L,x),n;if(e&&D!=D){for(;x>g;)if(n=k[g++],n!=n)return!0}else for(;x>g;g++)if((e||g in k)&&k[g]===D)return e||g||0;return!e&&-1}};he.exports={includes:P(!0),indexOf:P(!1)}},(he,l,w)=>{var t=w(66),i=Math.max,O=Math.min;he.exports=function(P,e){var N=t(P);return N<0?i(N+e,0):O(N,e)}},(he,l,w)=>{var t=w(67);he.exports=function(i){var O=+i;return O!==O||O===0?0:t(O)}},he=>{var l=Math.ceil,w=Math.floor;he.exports=Math.trunc||function(i){var O=+i;return(O>0?w:l)(O)}},(he,l,w)=>{var t=w(69);he.exports=function(i){return t(i.length)}},(he,l,w)=>{var t=w(66),i=Math.min;he.exports=function(O){return O>0?i(t(O),9007199254740991):0}},he=>{he.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},(he,l)=>{l.f=Object.getOwnPropertySymbols},(he,l,w)=>{var t=w(11),i=w(25),O=/#|\.prototype\./,P=function(k,x){var g=N[e(k)];return g==L?!0:g==D?!1:i(x)?t(x):!!x},e=P.normalize=function(k){return String(k).replace(O,".").toLowerCase()},N=P.data={},D=P.NATIVE="N",L=P.POLYFILL="P";he.exports=P},(he,l,w)=>{var t=w(38),i=w(74),O=w(49).f,P=t("unscopables"),e=Array.prototype;e[P]==null&&O(e,P,{configurable:!0,value:i(null)}),he.exports=function(N){e[P][N]=!0}},(he,l,w)=>{var t=w(51),i=w(75),O=w(70),P=w(59),e=w(77),N=w(47),D=w(58),L=">",k="<",x="prototype",g="script",n=D("IE_PROTO"),I=function(){},B=function(m){return k+g+L+m+k+"/"+g+L},h=function(m){m.write(B("")),m.close();var X=m.parentWindow.Object;return m=null,X},c=function(){var m=N("iframe"),X="java"+g+":",f;return m.style.display="none",e.appendChild(m),m.src=String(X),f=m.contentWindow.document,f.open(),f.write(B("document.F=Object")),f.close(),f.F},C,u=function(){try{C=new ActiveXObject("htmlfile")}catch{}u=typeof document<"u"?document.domain&&C?h(C):c():h(C);for(var m=O.length;m--;)delete u[x][O[m]];return u()};P[n]=!0,he.exports=Object.create||function(X,f){var F;return X!==null?(I[x]=t(X),F=new I,I[x]=null,F[n]=X):F=u(),f===void 0?F:i.f(F,f)}},(he,l,w)=>{var t=w(10),i=w(50),O=w(49),P=w(51),e=w(16),N=w(76);l.f=t&&!i?Object.defineProperties:function(L,k){P(L);for(var x=e(k),g=N(k),n=g.length,I=0,B;n>I;)O.f(L,B=g[I++],x[B]);return L}},(he,l,w)=>{var t=w(63),i=w(70);he.exports=Object.keys||function(P){return t(P,i)}},(he,l,w)=>{var t=w(28);he.exports=t("document","documentElement")},(he,l,w)=>{var t=w(8),i=w(18);he.exports=function(O,P){return i(t[O].prototype[P])}},(he,l,w)=>{w(80)},(he,l,w)=>{var t=w(81),i=w(68),O=w(66),P=t.aTypedArray,e=t.exportTypedArrayMethod;e("at",function(D){var L=P(this),k=i(L),x=O(D),g=x>=0?x:k+x;return g<0||g>=k?void 0:L[g]})},(he,l,w)=>{var t=w(82),i=w(10),O=w(8),P=w(25),e=w(24),N=w(43),D=w(83),L=w(36),k=w(48),x=w(52),g=w(49).f,n=w(29),I=w(85),B=w(87),h=w(38),c=w(45),C=w(56),u=C.enforce,m=C.get,X=O.Int8Array,f=X&&X.prototype,F=O.Uint8ClampedArray,s=F&&F.prototype,d=X&&I(X),S=f&&I(f),r=Object.prototype,o=O.TypeError,A=h("toStringTag"),p=c("TYPED_ARRAY_TAG"),v="TypedArrayConstructor",R=t&&!!B&&D(O.opera)!=="Opera",T=!1,y,H,z,$={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},j={BigInt64Array:8,BigUint64Array:8},V=function(E){if(!e(E))return!1;var M=D(E);return M==="DataView"||N($,M)||N(j,M)},ee=function(Q){var E=I(Q);if(e(E)){var M=m(E);return M&&N(M,v)?M[v]:ee(E)}},U=function(Q){if(!e(Q))return!1;var E=D(Q);return N($,E)||N(j,E)},G=function(Q){if(U(Q))return Q;throw o("Target is not a typed array")},Y=function(Q){if(P(Q)&&(!B||n(d,Q)))return Q;throw o(L(Q)+" is not a typed array constructor")},oe=function(Q,E,M,_){if(i){if(M)for(var J in $){var K=O[J];if(K&&N(K.prototype,Q))try{delete K.prototype[Q]}catch{try{K.prototype[Q]=E}catch{}}}(!S[Q]||M)&&x(S,Q,M?E:R&&f[Q]||E,_)}},se=function(Q,E,M){var _,J;if(i){if(B){if(M){for(_ in $)if(J=O[_],J&&N(J,Q))try{delete J[Q]}catch{}}if(!d[Q]||M)try{return x(d,Q,M?E:R&&d[Q]||E)}catch{}else return}for(_ in $)J=O[_],J&&(!J[Q]||M)&&x(J,Q,E)}};for(y in $)H=O[y],z=H&&H.prototype,z?u(z)[v]=H:R=!1;for(y in j)H=O[y],z=H&&H.prototype,z&&(u(z)[v]=H);if((!R||!P(d)||d===Function.prototype)&&(d=function(){throw o("Incorrect invocation")},R))for(y in $)O[y]&&B(O[y],d);if((!R||!S||S===r)&&(S=d.prototype,R))for(y in $)O[y]&&B(O[y].prototype,S);if(R&&I(s)!==S&&B(s,S),i&&!N(S,A)){T=!0,g(S,A,{get:function(){return e(this)?this[p]:void 0}});for(y in $)O[y]&&k(O[y],p,y)}he.exports={NATIVE_ARRAY_BUFFER_VIEWS:R,TYPED_ARRAY_TAG:T&&p,aTypedArray:G,aTypedArrayConstructor:Y,exportTypedArrayMethod:oe,exportTypedArrayStaticMethod:se,getTypedArrayConstructor:ee,isView:V,isTypedArray:U,TypedArray:d,TypedArrayPrototype:S}},he=>{he.exports=typeof ArrayBuffer<"u"&&typeof DataView<"u"},(he,l,w)=>{var t=w(84),i=w(25),O=w(19),P=w(38),e=P("toStringTag"),N=Object,D=O(function(){return arguments}())=="Arguments",L=function(k,x){try{return k[x]}catch{}};he.exports=t?O:function(k){var x,g,n;return k===void 0?"Undefined":k===null?"Null":typeof(g=L(x=N(k),e))=="string"?g:D?O(x):(n=O(x))=="Object"&&i(x.callee)?"Arguments":n}},(he,l,w)=>{var t=w(38),i=t("toStringTag"),O={};O[i]="z",he.exports=String(O)==="[object z]"},(he,l,w)=>{var t=w(43),i=w(25),O=w(44),P=w(58),e=w(86),N=P("IE_PROTO"),D=Object,L=D.prototype;he.exports=e?D.getPrototypeOf:function(k){var x=O(k);if(t(x,N))return x[N];var g=x.constructor;return i(g)&&x instanceof g?g.prototype:x instanceof D?L:null}},(he,l,w)=>{var t=w(11);he.exports=!t(function(){function i(){}return i.prototype.constructor=null,Object.getPrototypeOf(new i)!==i.prototype})},(he,l,w)=>{var t=w(18),i=w(51),O=w(88);he.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var P=!1,e={},N;try{N=t(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),N(e,[]),P=e instanceof Array}catch{}return function(L,k){return i(L),O(k),P?N(L,k):L.__proto__=k,L}}():void 0)},(he,l,w)=>{var t=w(25),i=String,O=TypeError;he.exports=function(P){if(typeof P=="object"||t(P))return P;throw O("Can't set "+i(P)+" as a prototype")}},(he,l,w)=>{w(90),w(97),w(99),w(122),w(124);var t=w(135);he.exports=t.structuredClone},(he,l,w)=>{var t=w(16),i=w(73),O=w(91),P=w(56),e=w(49).f,N=w(92),D=w(96),L=w(40),k=w(10),x="Array Iterator",g=P.set,n=P.getterFor(x);he.exports=N(Array,"Array",function(B,h){g(this,{type:x,target:t(B),index:0,kind:h})},function(){var B=n(this),h=B.target,c=B.kind,C=B.index++;return!h||C>=h.length?(B.target=void 0,D(void 0,!0)):c=="keys"?D(C,!1):c=="values"?D(h[C],!1):D([C,h[C]],!1)},"values");var I=O.Arguments=O.Array;if(i("keys"),i("values"),i("entries"),!L&&k&&I.name!=="values")try{e(I,"name",{value:"values"})}catch{}},he=>{he.exports={}},(he,l,w)=>{var t=w(7),i=w(12),O=w(40),P=w(54),e=w(25),N=w(93),D=w(85),L=w(87),k=w(95),x=w(48),g=w(52),n=w(38),I=w(91),B=w(94),h=P.PROPER,c=P.CONFIGURABLE,C=B.IteratorPrototype,u=B.BUGGY_SAFARI_ITERATORS,m=n("iterator"),X="keys",f="values",F="entries",s=function(){return this};he.exports=function(d,S,r,o,A,p,v){N(r,S,o);var R=function(G){if(G===A&&$)return $;if(!u&&G in H)return H[G];switch(G){case X:return function(){return new r(this,G)};case f:return function(){return new r(this,G)};case F:return function(){return new r(this,G)}}return function(){return new r(this)}},T=S+" Iterator",y=!1,H=d.prototype,z=H[m]||H["@@iterator"]||A&&H[A],$=!u&&z||R(A),j=S=="Array"&&H.entries||z,V,ee,U;if(j&&(V=D(j.call(new d)),V!==Object.prototype&&V.next&&(!O&&D(V)!==C&&(L?L(V,C):e(V[m])||g(V,m,s)),k(V,T,!0,!0),O&&(I[T]=s))),h&&A==f&&z&&z.name!==f&&(!O&&c?x(H,"name",f):(y=!0,$=function(){return i(z,this)})),A)if(ee={values:R(f),keys:p?$:R(X),entries:R(F)},v)for(U in ee)(u||y||!(U in H))&&g(H,U,ee[U]);else t({target:S,proto:!0,forced:u||y},ee);return(!O||v)&&H[m]!==$&&g(H,m,$,{name:A}),I[S]=$,ee}},(he,l,w)=>{var t=w(94).IteratorPrototype,i=w(74),O=w(15),P=w(95),e=w(91),N=function(){return this};he.exports=function(D,L,k,x){var g=L+" Iterator";return D.prototype=i(t,{next:O(+!x,k)}),P(D,g,!1,!0),e[g]=N,D}},(he,l,w)=>{var t=w(11),i=w(25),O=w(24),P=w(74),e=w(85),N=w(52),D=w(38),L=w(40),k=D("iterator"),x=!1,g,n,I;[].keys&&(I=[].keys(),"next"in I?(n=e(e(I)),n!==Object.prototype&&(g=n)):x=!0);var B=!O(g)||t(function(){var h={};return g[k].call(h)!==h});B?g={}:L&&(g=P(g)),i(g[k])||N(g,k,function(){return this}),he.exports={IteratorPrototype:g,BUGGY_SAFARI_ITERATORS:x}},(he,l,w)=>{var t=w(49).f,i=w(43),O=w(38),P=O("toStringTag");he.exports=function(e,N,D){e&&!D&&(e=e.prototype),e&&!i(e,P)&&t(e,P,{configurable:!0,value:N})}},he=>{he.exports=function(l,w){return{value:l,done:w}}},(he,l,w)=>{var t=w(84),i=w(52),O=w(98);t||i(Object.prototype,"toString",O,{unsafe:!0})},(he,l,w)=>{var t=w(84),i=w(83);he.exports=t?{}.toString:function(){return"[object "+i(this)+"]"}},(he,l,w)=>{w(100)},(he,l,w)=>{var t=w(101),i=w(119);t("Map",function(O){return function(){return O(this,arguments.length?arguments[0]:void 0)}},i)},(he,l,w)=>{var t=w(7),i=w(8),O=w(18),P=w(72),e=w(52),N=w(102),D=w(109),L=w(116),k=w(25),x=w(21),g=w(24),n=w(11),I=w(117),B=w(95),h=w(118);he.exports=function(c,C,u){var m=c.indexOf("Map")!==-1,X=c.indexOf("Weak")!==-1,f=m?"set":"add",F=i[c],s=F&&F.prototype,d=F,S={},r=function(y){var H=O(s[y]);e(s,y,y=="add"?function($){return H(this,$===0?0:$),this}:y=="delete"?function(z){return X&&!g(z)?!1:H(this,z===0?0:z)}:y=="get"?function($){return X&&!g($)?void 0:H(this,$===0?0:$)}:y=="has"?function($){return X&&!g($)?!1:H(this,$===0?0:$)}:function($,j){return H(this,$===0?0:$,j),this})},o=P(c,!k(F)||!(X||s.forEach&&!n(function(){new F().entries().next()})));if(o)d=u.getConstructor(C,c,m,f),N.enable();else if(P(c,!0)){var A=new d,p=A[f](X?{}:-0,1)!=A,v=n(function(){A.has(1)}),R=I(function(y){new F(y)}),T=!X&&n(function(){for(var y=new F,H=5;H--;)y[f](H,H);return!y.has(-0)});R||(d=C(function(y,H){L(y,s);var z=h(new F,y,d);return x(H)||D(H,z[f],{that:z,AS_ENTRIES:m}),z}),d.prototype=s,s.constructor=d),(v||T)&&(r("delete"),r("has"),m&&r("get")),(T||p)&&r(f),X&&s.clear&&delete s.clear}return S[c]=d,t({global:!0,constructor:!0,forced:d!=F},S),B(d,c),X||u.setStrong(d,c,m),d}},(he,l,w)=>{var t=w(7),i=w(18),O=w(59),P=w(24),e=w(43),N=w(49).f,D=w(62),L=w(103),k=w(106),x=w(45),g=w(108),n=!1,I=x("meta"),B=0,h=function(f){N(f,I,{value:{objectID:"O"+B++,weakData:{}}})},c=function(f,F){if(!P(f))return typeof f=="symbol"?f:(typeof f=="string"?"S":"P")+f;if(!e(f,I)){if(!k(f))return"F";if(!F)return"E";h(f)}return f[I].objectID},C=function(f,F){if(!e(f,I)){if(!k(f))return!0;if(!F)return!1;h(f)}return f[I].weakData},u=function(f){return g&&n&&k(f)&&!e(f,I)&&h(f),f},m=function(){X.enable=function(){},n=!0;var f=D.f,F=i([].splice),s={};s[I]=1,f(s).length&&(D.f=function(d){for(var S=f(d),r=0,o=S.length;r<o;r++)if(S[r]===I){F(S,r,1);break}return S},t({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:L.f}))},X=he.exports={enable:m,fastKey:c,getWeakData:C,onFreeze:u};O[I]=!0},(he,l,w)=>{var t=w(19),i=w(16),O=w(62).f,P=w(104),e=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],N=function(D){try{return O(D)}catch{return P(e)}};he.exports.f=function(L){return e&&t(L)=="Window"?N(L):O(i(L))}},(he,l,w)=>{var t=w(65),i=w(68),O=w(105),P=Array,e=Math.max;he.exports=function(N,D,L){for(var k=i(N),x=t(D,k),g=t(L===void 0?k:L,k),n=P(e(g-x,0)),I=0;x<g;x++,I++)O(n,I,N[x]);return n.length=I,n}},(he,l,w)=>{var t=w(22),i=w(49),O=w(15);he.exports=function(P,e,N){var D=t(e);D in P?i.f(P,D,O(0,N)):P[D]=N}},(he,l,w)=>{var t=w(11),i=w(24),O=w(19),P=w(107),e=Object.isExtensible,N=t(function(){});he.exports=N||P?function(L){return!i(L)||P&&O(L)=="ArrayBuffer"?!1:e?e(L):!0}:e},(he,l,w)=>{var t=w(11);he.exports=t(function(){if(typeof ArrayBuffer=="function"){var i=new ArrayBuffer(8);Object.isExtensible(i)&&Object.defineProperty(i,"a",{value:8})}})},(he,l,w)=>{var t=w(11);he.exports=!t(function(){return Object.isExtensible(Object.preventExtensions({}))})},(he,l,w)=>{var t=w(110),i=w(12),O=w(51),P=w(36),e=w(112),N=w(68),D=w(29),L=w(113),k=w(114),x=w(115),g=TypeError,n=function(B,h){this.stopped=B,this.result=h},I=n.prototype;he.exports=function(B,h,c){var C=c&&c.that,u=!!(c&&c.AS_ENTRIES),m=!!(c&&c.IS_RECORD),X=!!(c&&c.IS_ITERATOR),f=!!(c&&c.INTERRUPTED),F=t(h,C),s,d,S,r,o,A,p,v=function(T){return s&&x(s,"normal",T),new n(!0,T)},R=function(T){return u?(O(T),f?F(T[0],T[1],v):F(T[0],T[1])):f?F(T,v):F(T)};if(m)s=B.iterator;else if(X)s=B;else{if(d=k(B),!d)throw g(P(B)+" is not iterable");if(e(d)){for(S=0,r=N(B);r>S;S++)if(o=R(B[S]),o&&D(I,o))return o;return new n(!1)}s=L(B,d)}for(A=m?B.next:s.next;!(p=i(A,s)).done;){try{o=R(p.value)}catch(T){x(s,"throw",T)}if(typeof o=="object"&&o&&D(I,o))return o}return new n(!1)}},(he,l,w)=>{var t=w(111),i=w(35),O=w(13),P=t(t.bind);he.exports=function(e,N){return i(e),N===void 0?e:O?P(e,N):function(){return e.apply(N,arguments)}}},(he,l,w)=>{var t=w(19),i=w(18);he.exports=function(O){if(t(O)==="Function")return i(O)}},(he,l,w)=>{var t=w(38),i=w(91),O=t("iterator"),P=Array.prototype;he.exports=function(e){return e!==void 0&&(i.Array===e||P[O]===e)}},(he,l,w)=>{var t=w(12),i=w(35),O=w(51),P=w(36),e=w(114),N=TypeError;he.exports=function(D,L){var k=arguments.length<2?e(D):L;if(i(k))return O(t(k,D));throw N(P(D)+" is not iterable")}},(he,l,w)=>{var t=w(83),i=w(34),O=w(21),P=w(91),e=w(38),N=e("iterator");he.exports=function(D){if(!O(D))return i(D,N)||i(D,"@@iterator")||P[t(D)]}},(he,l,w)=>{var t=w(12),i=w(51),O=w(34);he.exports=function(P,e,N){var D,L;i(P);try{if(D=O(P,"return"),!D){if(e==="throw")throw N;return N}D=t(D,P)}catch(k){L=!0,D=k}if(e==="throw")throw N;if(L)throw D;return i(D),N}},(he,l,w)=>{var t=w(29),i=TypeError;he.exports=function(O,P){if(t(P,O))return O;throw i("Incorrect invocation")}},(he,l,w)=>{var t=w(38),i=t("iterator"),O=!1;try{var P=0,e={next:function(){return{done:!!P++}},return:function(){O=!0}};e[i]=function(){return this},Array.from(e,function(){throw 2})}catch{}he.exports=function(N,D){if(!D&&!O)return!1;var L=!1;try{var k={};k[i]=function(){return{next:function(){return{done:L=!0}}}},N(k)}catch{}return L}},(he,l,w)=>{var t=w(25),i=w(24),O=w(87);he.exports=function(P,e,N){var D,L;return O&&t(D=e.constructor)&&D!==N&&i(L=D.prototype)&&L!==N.prototype&&O(P,L),P}},(he,l,w)=>{var t=w(49).f,i=w(74),O=w(120),P=w(110),e=w(116),N=w(21),D=w(109),L=w(92),k=w(96),x=w(121),g=w(10),n=w(102).fastKey,I=w(56),B=I.set,h=I.getterFor;he.exports={getConstructor:function(c,C,u,m){var X=c(function(S,r){e(S,f),B(S,{type:C,index:i(null),first:void 0,last:void 0,size:0}),g||(S.size=0),N(r)||D(r,S[m],{that:S,AS_ENTRIES:u})}),f=X.prototype,F=h(C),s=function(S,r,o){var A=F(S),p=d(S,r),v,R;return p?p.value=o:(A.last=p={index:R=n(r,!0),key:r,value:o,previous:v=A.last,next:void 0,removed:!1},A.first||(A.first=p),v&&(v.next=p),g?A.size++:S.size++,R!=="F"&&(A.index[R]=p)),S},d=function(S,r){var o=F(S),A=n(r),p;if(A!=="F")return o.index[A];for(p=o.first;p;p=p.next)if(p.key==r)return p};return O(f,{clear:function(){for(var r=this,o=F(r),A=o.index,p=o.first;p;)p.removed=!0,p.previous&&(p.previous=p.previous.next=void 0),delete A[p.index],p=p.next;o.first=o.last=void 0,g?o.size=0:r.size=0},delete:function(S){var r=this,o=F(r),A=d(r,S);if(A){var p=A.next,v=A.previous;delete o.index[A.index],A.removed=!0,v&&(v.next=p),p&&(p.previous=v),o.first==A&&(o.first=p),o.last==A&&(o.last=v),g?o.size--:r.size--}return!!A},forEach:function(r){for(var o=F(this),A=P(r,arguments.length>1?arguments[1]:void 0),p;p=p?p.next:o.first;)for(A(p.value,p.key,this);p&&p.removed;)p=p.previous},has:function(r){return!!d(this,r)}}),O(f,u?{get:function(r){var o=d(this,r);return o&&o.value},set:function(r,o){return s(this,r===0?0:r,o)}}:{add:function(r){return s(this,r=r===0?0:r,r)}}),g&&t(f,"size",{get:function(){return F(this).size}}),X},setStrong:function(c,C,u){var m=C+" Iterator",X=h(C),f=h(m);L(c,C,function(F,s){B(this,{type:m,target:F,state:X(F),kind:s,last:void 0})},function(){for(var F=f(this),s=F.kind,d=F.last;d&&d.removed;)d=d.previous;return!F.target||!(F.last=d=d?d.next:F.state.first)?(F.target=void 0,k(void 0,!0)):s=="keys"?k(d.key,!1):s=="values"?k(d.value,!1):k([d.key,d.value],!1)},u?"entries":"values",!u,!0),x(C)}}},(he,l,w)=>{var t=w(52);he.exports=function(i,O,P){for(var e in O)t(i,e,O[e],P);return i}},(he,l,w)=>{var t=w(28),i=w(49),O=w(38),P=w(10),e=O("species");he.exports=function(N){var D=t(N),L=i.f;P&&D&&!D[e]&&L(D,e,{configurable:!0,get:function(){return this}})}},(he,l,w)=>{w(123)},(he,l,w)=>{var t=w(101),i=w(119);t("Set",function(O){return function(){return O(this,arguments.length?arguments[0]:void 0)}},i)},(he,l,w)=>{var t=w(40),i=w(7),O=w(8),P=w(28),e=w(18),N=w(11),D=w(45),L=w(25),k=w(125),x=w(21),g=w(24),n=w(27),I=w(109),B=w(51),h=w(83),c=w(43),C=w(105),u=w(48),m=w(68),X=w(126),f=w(127),F=w(129),s=w(130),d=w(131),S=w(32),r=w(132),o=w(133),A=w(134),p=O.Object,v=O.Array,R=O.Date,T=O.Error,y=O.EvalError,H=O.RangeError,z=O.ReferenceError,$=O.SyntaxError,j=O.TypeError,V=O.URIError,ee=O.PerformanceMark,U=O.WebAssembly,G=U&&U.CompileError||T,Y=U&&U.LinkError||T,oe=U&&U.RuntimeError||T,se=P("DOMException"),Q=F.Map,E=F.has,M=F.get,_=F.set,J=s.Set,K=s.add,te=P("Object","keys"),Z=e([].push),ce=e((!0).valueOf),ne=e(1 .valueOf),re=e("".valueOf),ie=e(R.prototype.getTime),ae=D("structuredClone"),ue="DataCloneError",fe="Transferring",me=function(ke){return!N(function(){var $e=new O.Set([7]),Ge=ke($e),Qe=ke(p(7));return Ge==$e||!Ge.has(7)||typeof Qe!="object"||Qe!=7})&&ke},Fe=function(ke,$e){return!N(function(){var Ge=new $e,Qe=ke({a:Ge,b:Ge});return!(Qe&&Qe.a===Qe.b&&Qe.a instanceof $e&&Qe.a.stack===Ge.stack)})},pe=function(ke){return!N(function(){var $e=ke(new O.AggregateError([1],ae,{cause:3}));return $e.name!="AggregateError"||$e.errors[0]!=1||$e.message!=ae||$e.cause!=3})},Ce=O.structuredClone,be=t||!Fe(Ce,T)||!Fe(Ce,se)||!pe(Ce),Ie=!Ce&&me(function(ke){return new ee(ae,{detail:ke}).detail}),ye=me(Ce)||Ie,de=function(ke){throw new se("Uncloneable type: "+ke,ue)},ge=function(ke,$e){throw new se(($e||"Cloning")+" of "+ke+" cannot be properly polyfilled in this engine",ue)},xe=function(){var ke;try{ke=new O.DataTransfer}catch{try{ke=new O.ClipboardEvent("").clipboardData}catch{}}return ke&&ke.items&&ke.files?ke:null},Oe=function(ke,$e){if(n(ke)&&de("Symbol"),!g(ke))return ke;if($e){if(E($e,ke))return M($e,ke)}else $e=new Q;var Ge=h(ke),Qe=!1,ve,Ne,Me,nt,_e,rt,Xe,Je,et,pt;switch(Ge){case"Array":Me=v(m(ke)),Qe=!0;break;case"Object":Me={},Qe=!0;break;case"Map":Me=new Q,Qe=!0;break;case"Set":Me=new J,Qe=!0;break;case"RegExp":Me=new RegExp(ke.source,f(ke));break;case"Error":switch(Ne=ke.name,Ne){case"AggregateError":Me=P("AggregateError")([]);break;case"EvalError":Me=y();break;case"RangeError":Me=H();break;case"ReferenceError":Me=z();break;case"SyntaxError":Me=$();break;case"TypeError":Me=j();break;case"URIError":Me=V();break;case"CompileError":Me=G();break;case"LinkError":Me=Y();break;case"RuntimeError":Me=oe();break;default:Me=T()}Qe=!0;break;case"DOMException":Me=new se(ke.message,ke.name),Qe=!0;break;case"DataView":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":ve=O[Ge],g(ve)||ge(Ge),Me=new ve(Oe(ke.buffer,$e),ke.byteOffset,Ge==="DataView"?ke.byteLength:ke.length);break;case"DOMQuad":try{Me=new DOMQuad(Oe(ke.p1,$e),Oe(ke.p2,$e),Oe(ke.p3,$e),Oe(ke.p4,$e))}catch{ye?Me=ye(ke):ge(Ge)}break;case"FileList":if(nt=xe(),nt){for(_e=0,rt=m(ke);_e<rt;_e++)nt.items.add(Oe(ke[_e],$e));Me=nt.files}else ye?Me=ye(ke):ge(Ge);break;case"ImageData":try{Me=new ImageData(Oe(ke.data,$e),ke.width,ke.height,{colorSpace:ke.colorSpace})}catch{ye?Me=ye(ke):ge(Ge)}break;default:if(ye)Me=ye(ke);else switch(Ge){case"BigInt":Me=p(ke.valueOf());break;case"Boolean":Me=p(ce(ke));break;case"Number":Me=p(ne(ke));break;case"String":Me=p(re(ke));break;case"Date":Me=new R(ie(ke));break;case"ArrayBuffer":ve=O.DataView,!ve&&typeof ke.slice!="function"&&ge(Ge);try{if(typeof ke.slice=="function")Me=ke.slice(0);else for(rt=ke.byteLength,Me=new ArrayBuffer(rt),et=new ve(ke),pt=new ve(Me),_e=0;_e<rt;_e++)pt.setUint8(_e,et.getUint8(_e))}catch{throw new se("ArrayBuffer is detached",ue)}break;case"SharedArrayBuffer":Me=ke;break;case"Blob":try{Me=ke.slice(0,ke.size,ke.type)}catch{ge(Ge)}break;case"DOMPoint":case"DOMPointReadOnly":ve=O[Ge];try{Me=ve.fromPoint?ve.fromPoint(ke):new ve(ke.x,ke.y,ke.z,ke.w)}catch{ge(Ge)}break;case"DOMRect":case"DOMRectReadOnly":ve=O[Ge];try{Me=ve.fromRect?ve.fromRect(ke):new ve(ke.x,ke.y,ke.width,ke.height)}catch{ge(Ge)}break;case"DOMMatrix":case"DOMMatrixReadOnly":ve=O[Ge];try{Me=ve.fromMatrix?ve.fromMatrix(ke):new ve(ke)}catch{ge(Ge)}break;case"AudioData":case"VideoFrame":L(ke.clone)||ge(Ge);try{Me=ke.clone()}catch{de(Ge)}break;case"File":try{Me=new File([ke],ke.name,ke)}catch{ge(Ge)}break;case"CropTarget":case"CryptoKey":case"FileSystemDirectoryHandle":case"FileSystemFileHandle":case"FileSystemHandle":case"GPUCompilationInfo":case"GPUCompilationMessage":case"ImageBitmap":case"RTCCertificate":case"WebAssembly.Module":ge(Ge);default:de(Ge)}}if(_($e,ke,Me),Qe)switch(Ge){case"Array":case"Object":for(Xe=te(ke),_e=0,rt=m(Xe);_e<rt;_e++)Je=Xe[_e],C(Me,Je,Oe(ke[Je],$e));break;case"Map":ke.forEach(function(xt,Ot){_(Me,Oe(Ot,$e),Oe(xt,$e))});break;case"Set":ke.forEach(function(xt){K(Me,Oe(xt,$e))});break;case"Error":u(Me,"message",Oe(ke.message,$e)),c(ke,"cause")&&u(Me,"cause",Oe(ke.cause,$e)),Ne=="AggregateError"&&(Me.errors=Oe(ke.errors,$e));case"DOMException":d&&u(Me,"stack",Oe(ke.stack,$e))}return Me},je=Ce&&!N(function(){if(o&&S>92||A&&S>94||r&&S>97)return!1;var ke=new ArrayBuffer(8),$e=Ce(ke,{transfer:[ke]});return ke.byteLength!=0||$e.byteLength!=8}),it=function(ke,$e){if(!g(ke))throw j("Transfer option cannot be converted to a sequence");var Ge=[];I(ke,function(et){Z(Ge,B(et))});var Qe=0,ve=m(Ge),Ne,Me,nt,_e,rt,Xe,Je;if(je)for(_e=Ce(Ge,{transfer:Ge});Qe<ve;)_($e,Ge[Qe],_e[Qe++]);else for(;Qe<ve;){if(Ne=Ge[Qe++],E($e,Ne))throw new se("Duplicate transferable",ue);switch(Me=h(Ne),Me){case"ImageBitmap":nt=O.OffscreenCanvas,k(nt)||ge(Me,fe);try{Xe=new nt(Ne.width,Ne.height),Je=Xe.getContext("bitmaprenderer"),Je.transferFromImageBitmap(Ne),rt=Xe.transferToImageBitmap()}catch{}break;case"AudioData":case"VideoFrame":(!L(Ne.clone)||!L(Ne.close))&&ge(Me,fe);try{rt=Ne.clone(),Ne.close()}catch{}break;case"ArrayBuffer":case"MediaSourceHandle":case"MessagePort":case"OffscreenCanvas":case"ReadableStream":case"TransformStream":case"WritableStream":ge(Me,fe)}if(rt===void 0)throw new se("This object cannot be transferred: "+Me,ue);_($e,Ne,rt)}};i({global:!0,enumerable:!0,sham:!je,forced:be},{structuredClone:function($e){var Ge=X(arguments.length,1)>1&&!x(arguments[1])?B(arguments[1]):void 0,Qe=Ge?Ge.transfer:void 0,ve;return Qe!==void 0&&(ve=new Q,it(Qe,ve)),Oe($e,ve)}})},(he,l,w)=>{var t=w(18),i=w(11),O=w(25),P=w(83),e=w(28),N=w(55),D=function(){},L=[],k=e("Reflect","construct"),x=/^\s*(?:class|function)\b/,g=t(x.exec),n=!x.exec(D),I=function(c){if(!O(c))return!1;try{return k(D,L,c),!0}catch{return!1}},B=function(c){if(!O(c))return!1;switch(P(c)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return n||!!g(x,N(c))}catch{return!0}};B.sham=!0,he.exports=!k||i(function(){var h;return I(I.call)||!I(Object)||!I(function(){h=!0})||h})?B:I},he=>{var l=TypeError;he.exports=function(w,t){if(w<t)throw l("Not enough arguments");return w}},(he,l,w)=>{var t=w(12),i=w(43),O=w(29),P=w(128),e=RegExp.prototype;he.exports=function(N){var D=N.flags;return D===void 0&&!("flags"in e)&&!i(N,"flags")&&O(e,N)?t(P,N):D}},(he,l,w)=>{var t=w(51);he.exports=function(){var i=t(this),O="";return i.hasIndices&&(O+="d"),i.global&&(O+="g"),i.ignoreCase&&(O+="i"),i.multiline&&(O+="m"),i.dotAll&&(O+="s"),i.unicode&&(O+="u"),i.unicodeSets&&(O+="v"),i.sticky&&(O+="y"),O}},(he,l,w)=>{var t=w(18),i=Map.prototype;he.exports={Map,set:t(i.set),get:t(i.get),has:t(i.has),remove:t(i.delete),proto:i}},(he,l,w)=>{var t=w(18),i=Set.prototype;he.exports={Set,add:t(i.add),has:t(i.has),remove:t(i.delete),proto:i,$has:i.has,$keys:i.keys}},(he,l,w)=>{var t=w(11),i=w(15);he.exports=!t(function(){var O=Error("a");return"stack"in O?(Object.defineProperty(O,"stack",i(1,7)),O.stack!==7):!0})},(he,l,w)=>{var t=w(133),i=w(134);he.exports=!t&&!i&&typeof window=="object"&&typeof document=="object"},he=>{he.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},(he,l,w)=>{var t=w(19);he.exports=typeof process<"u"&&t(process)=="process"},(he,l,w)=>{var t=w(8);he.exports=t},(he,l,w)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.XRefParseException=l.XRefEntryException=l.ParserEOFException=l.PDF_VERSION_REGEXP=l.MissingDataException=void 0,l.arrayBuffersToBytes=g,l.collectActions=d,l.encodeToXmlString=r,l.escapePDFName=f,l.escapeString=F,l.getArrayLookupTableFactory=N,l.getInheritableProperty=n,l.getLookupTableFactory=e,l.getNewAnnotationsMap=v,l.getRotationMatrix=H,l.isAscii=R,l.isWhiteSpace=m,l.log2=h,l.numberToString=p,l.parseXFAPath=X,l.readInt8=c,l.readUint16=C,l.readUint32=u,l.recoverJsURL=A,l.stringToUTF16HexString=T,l.stringToUTF16String=y,l.toRomanNumerals=B,l.validateCSSFont=o;var t=w(2),i=w(137),O=w(138);const P=/^[1-9]\.\d$/;l.PDF_VERSION_REGEXP=P;function e(z){let $;return function(){return z&&($=Object.create(null),z($),z=null),$}}function N(z){let $;return function(){if(z){let j=z();z=null,$=Object.create(null);for(let V=0,ee=j.length;V<ee;V+=2)$[j[V]]=j[V+1];j=null}return $}}class D extends t.BaseException{constructor($,j){super(`Missing data [${$}, ${j})`,"MissingDataException"),this.begin=$,this.end=j}}l.MissingDataException=D;class L extends t.BaseException{constructor($){super($,"ParserEOFException")}}l.ParserEOFException=L;class k extends t.BaseException{constructor($){super($,"XRefEntryException")}}l.XRefEntryException=k;class x extends t.BaseException{constructor($){super($,"XRefParseException")}}l.XRefParseException=x;function g(z){const $=z.length;if($===0)return new Uint8Array(0);if($===1)return new Uint8Array(z[0]);let j=0;for(let U=0;U<$;U++)j+=z[U].byteLength;const V=new Uint8Array(j);let ee=0;for(let U=0;U<$;U++){const G=new Uint8Array(z[U]);V.set(G,ee),ee+=G.byteLength}return V}function n(z){let{dict:$,key:j,getArray:V=!1,stopWhenFound:ee=!0}=z,U;const G=new i.RefSet;for(;$ instanceof i.Dict&&!($.objId&&G.has($.objId));){$.objId&&G.put($.objId);const Y=V?$.getArray(j):$.get(j);if(Y!==void 0){if(ee)return Y;U||(U=[]),U.push(Y)}$=$.get("Parent")}return U}const I=["","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 B(z){let $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;(0,t.assert)(Number.isInteger(z)&&z>0,"The number should be a positive integer.");const j=[];let V;for(;z>=1e3;)z-=1e3,j.push("M");V=z/100|0,z%=100,j.push(I[V]),V=z/10|0,z%=10,j.push(I[10+V]),j.push(I[20+z]);const ee=j.join("");return $?ee.toLowerCase():ee}function h(z){return z<=0?0:Math.ceil(Math.log2(z))}function c(z,$){return z[$]<<24>>24}function C(z,$){return z[$]<<8|z[$+1]}function u(z,$){return(z[$]<<24|z[$+1]<<16|z[$+2]<<8|z[$+3])>>>0}function m(z){return z===32||z===9||z===13||z===10}function X(z){const $=/(.+)\[(\d+)\]$/;return z.split(".").map(j=>{const V=j.match($);return V?{name:V[1],pos:parseInt(V[2],10)}:{name:j,pos:0}})}function f(z){const $=[];let j=0;for(let V=0,ee=z.length;V<ee;V++){const U=z.charCodeAt(V);(U<33||U>126||U===35||U===40||U===41||U===60||U===62||U===91||U===93||U===123||U===125||U===47||U===37)&&(j<V&&$.push(z.substring(j,V)),$.push(`#${U.toString(16)}`),j=V+1)}return $.length===0?z:(j<z.length&&$.push(z.substring(j,z.length)),$.join(""))}function F(z){return z.replace(/([()\\\n\r])/g,$=>$===`
`?"\\n":$==="\r"?"\\r":`\\${$}`)}function s(z,$,j,V){if(!z)return;let ee=null;if(z instanceof i.Ref){if(V.has(z))return;ee=z,V.put(ee),z=$.fetch(z)}if(Array.isArray(z))for(const U of z)s(U,$,j,V);else if(z instanceof i.Dict){if((0,i.isName)(z.get("S"),"JavaScript")){const U=z.get("JS");let G;U instanceof O.BaseStream?G=U.getString():typeof U=="string"&&(G=U),G=G&&(0,t.stringToPDFString)(G).replace(/\u0000/g,""),G&&j.push(G)}s(z.getRaw("Next"),$,j,V)}ee&&V.remove(ee)}function d(z,$,j){const V=Object.create(null),ee=n({dict:$,key:"AA",stopWhenFound:!1});if(ee)for(let U=ee.length-1;U>=0;U--){const G=ee[U];if(G instanceof i.Dict)for(const Y of G.getKeys()){const oe=j[Y];if(!oe)continue;const se=G.getRaw(Y),Q=new i.RefSet,E=[];s(se,z,E,Q),E.length>0&&(V[oe]=E)}}if($.has("A")){const U=$.get("A"),G=new i.RefSet,Y=[];s(U,z,Y,G),Y.length>0&&(V.Action=Y)}return(0,t.objectSize)(V)>0?V:null}const S={60:"&lt;",62:"&gt;",38:"&amp;",34:"&quot;",39:"&apos;"};function r(z){const $=[];let j=0;for(let V=0,ee=z.length;V<ee;V++){const U=z.codePointAt(V);if(32<=U&&U<=126){const G=S[U];G&&(j<V&&$.push(z.substring(j,V)),$.push(G),j=V+1)}else j<V&&$.push(z.substring(j,V)),$.push(`&#x${U.toString(16).toUpperCase()};`),U>55295&&(U<57344||U>65533)&&V++,j=V+1}return $.length===0?z:(j<z.length&&$.push(z.substring(j,z.length)),$.join(""))}function o(z){const $="14",j="400",V=new Set(["100","200","300","400","500","600","700","800","900","1000","normal","bold","bolder","lighter"]),{fontFamily:ee,fontWeight:U,italicAngle:G}=z;if(/^".*"$/.test(ee)){if(/[^\\]"/.test(ee.slice(1,ee.length-1)))return(0,t.warn)(`XFA - FontFamily contains some unescaped ": ${ee}.`),!1}else if(/^'.*'$/.test(ee)){if(/[^\\]'/.test(ee.slice(1,ee.length-1)))return(0,t.warn)(`XFA - FontFamily contains some unescaped ': ${ee}.`),!1}else for(const se of ee.split(/[ \t]+/))if(/^(\d|(-(\d|-)))/.test(se)||!/^[\w-\\]+$/.test(se))return(0,t.warn)(`XFA - FontFamily contains some invalid <custom-ident>: ${ee}.`),!1;const Y=U?U.toString():"";z.fontWeight=V.has(Y)?Y:j;const oe=parseFloat(G);return z.italicAngle=isNaN(oe)||oe<-90||oe>90?$:G.toString(),!0}function A(z){const $=["app.launchURL","window.open","xfa.host.gotoURL"],V=new RegExp("^\\s*("+$.join("|").split(".").join("\\.")+`)\\((?:'|")([^'"]*)(?:'|")(?:,\\s*(\\w+)\\)|\\))`,"i").exec(z);if(V&&V[2]){const ee=V[2];let U=!1;return V[3]==="true"&&V[1]==="app.launchURL"&&(U=!0),{url:ee,newWindow:U}}return null}function p(z){if(Number.isInteger(z))return z.toString();const $=Math.round(z*100);return $%100===0?($/100).toString():$%10===0?z.toFixed(1):z.toFixed(2)}function v(z){if(!z)return null;const $=new Map;for(const[j,V]of z){if(!j.startsWith(t.AnnotationEditorPrefix))continue;let ee=$.get(V.pageIndex);ee||(ee=[],$.set(V.pageIndex,ee)),ee.push(V)}return $.size>0?$:null}function R(z){return/^[\x00-\x7F]*$/.test(z)}function T(z){const $=[];for(let j=0,V=z.length;j<V;j++){const ee=z.charCodeAt(j);$.push((ee>>8&255).toString(16).padStart(2,"0"),(ee&255).toString(16).padStart(2,"0"))}return $.join("")}function y(z){let $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const j=[];$&&j.push("þÿ");for(let V=0,ee=z.length;V<ee;V++){const U=z.charCodeAt(V);j.push(String.fromCharCode(U>>8&255),String.fromCharCode(U&255))}return j.join("")}function H(z,$,j){switch(z){case 90:return[0,1,-1,0,$,0];case 180:return[-1,0,0,-1,$,j];case 270:return[0,-1,1,0,0,j];default:throw new Error("Invalid rotation")}}},(he,l,w)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.RefSetCache=l.RefSet=l.Ref=l.Name=l.EOF=l.Dict=l.Cmd=l.CIRCULAR_REF=void 0,l.clearPrimitiveCaches=h,l.isCmd=n,l.isDict=I,l.isName=g,l.isRefsEqual=B;var t=w(2);const i=Symbol("CIRCULAR_REF");l.CIRCULAR_REF=i;const O=Symbol("EOF");l.EOF=O;const P=function(){let C=Object.create(null);class u{constructor(X){this.name=X}static get(X){return C[X]||(C[X]=new u(X))}static _clearCache(){C=Object.create(null)}}return u}();l.Name=P;const e=function(){let C=Object.create(null);class u{constructor(X){this.cmd=X}static get(X){return C[X]||(C[X]=new u(X))}static _clearCache(){C=Object.create(null)}}return u}();l.Cmd=e;const N=function(){return N};class D{constructor(){let C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;this._map=Object.create(null),this.xref=C,this.objId=null,this.suppressEncryption=!1,this.__nonSerializable__=N}assignXref(C){this.xref=C}get size(){return Object.keys(this._map).length}get(C,u,m){let X=this._map[C];return X===void 0&&u!==void 0&&(X=this._map[u],X===void 0&&m!==void 0&&(X=this._map[m])),X instanceof L&&this.xref?this.xref.fetch(X,this.suppressEncryption):X}async getAsync(C,u,m){let X=this._map[C];return X===void 0&&u!==void 0&&(X=this._map[u],X===void 0&&m!==void 0&&(X=this._map[m])),X instanceof L&&this.xref?this.xref.fetchAsync(X,this.suppressEncryption):X}getArray(C,u,m){let X=this._map[C];if(X===void 0&&u!==void 0&&(X=this._map[u],X===void 0&&m!==void 0&&(X=this._map[m])),X instanceof L&&this.xref&&(X=this.xref.fetch(X,this.suppressEncryption)),Array.isArray(X)){X=X.slice();for(let f=0,F=X.length;f<F;f++)X[f]instanceof L&&this.xref&&(X[f]=this.xref.fetch(X[f],this.suppressEncryption))}return X}getRaw(C){return this._map[C]}getKeys(){return Object.keys(this._map)}getRawValues(){return Object.values(this._map)}set(C,u){this._map[C]=u}has(C){return this._map[C]!==void 0}forEach(C){for(const u in this._map)C(u,this.get(u))}static get empty(){const C=new D(null);return C.set=(u,m)=>{(0,t.unreachable)("Should not call `set` on the empty dictionary.")},(0,t.shadow)(this,"empty",C)}static merge(C){let{xref:u,dictArray:m,mergeSubDicts:X=!1}=C;const f=new D(u),F=new Map;for(const s of m)if(s instanceof D)for(const[d,S]of Object.entries(s._map)){let r=F.get(d);if(r===void 0)r=[],F.set(d,r);else if(!X||!(S instanceof D))continue;r.push(S)}for(const[s,d]of F){if(d.length===1||!(d[0]instanceof D)){f._map[s]=d[0];continue}const S=new D(u);for(const r of d)for(const[o,A]of Object.entries(r._map))S._map[o]===void 0&&(S._map[o]=A);S.size>0&&(f._map[s]=S)}return F.clear(),f.size>0?f:D.empty}}l.Dict=D;const L=function(){let C=Object.create(null);class u{constructor(X,f){this.num=X,this.gen=f}toString(){return this.gen===0?`${this.num}R`:`${this.num}R${this.gen}`}static get(X,f){const F=f===0?`${X}R`:`${X}R${f}`;return C[F]||(C[F]=new u(X,f))}static _clearCache(){C=Object.create(null)}}return u}();l.Ref=L;class k{constructor(){let C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;this._set=new Set(C&&C._set)}has(C){return this._set.has(C.toString())}put(C){this._set.add(C.toString())}remove(C){this._set.delete(C.toString())}[Symbol.iterator](){return this._set.values()}clear(){this._set.clear()}}l.RefSet=k;class x{constructor(){this._map=new Map}get size(){return this._map.size}get(C){return this._map.get(C.toString())}has(C){return this._map.has(C.toString())}put(C,u){this._map.set(C.toString(),u)}putAlias(C,u){this._map.set(C.toString(),this.get(u))}[Symbol.iterator](){return this._map.values()}clear(){this._map.clear()}}l.RefSetCache=x;function g(c,C){return c instanceof P&&(C===void 0||c.name===C)}function n(c,C){return c instanceof e&&(C===void 0||c.cmd===C)}function I(c,C){return c instanceof D&&(C===void 0||g(c.get("Type"),C))}function B(c,C){return c.num===C.num&&c.gen===C.gen}function h(){e._clearCache(),P._clearCache(),L._clearCache()}},(he,l,w)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.BaseStream=void 0;var t=w(2);class i{constructor(){this.constructor===i&&(0,t.unreachable)("Cannot initialize BaseStream.")}get length(){(0,t.unreachable)("Abstract getter `length` accessed")}get isEmpty(){(0,t.unreachable)("Abstract getter `isEmpty` accessed")}get isDataLoaded(){return(0,t.shadow)(this,"isDataLoaded",!0)}getByte(){(0,t.unreachable)("Abstract method `getByte` called")}getBytes(P){(0,t.unreachable)("Abstract method `getBytes` called")}peekByte(){const P=this.getByte();return P!==-1&&this.pos--,P}peekBytes(P){const e=this.getBytes(P);return this.pos-=e.length,e}getUint16(){const P=this.getByte(),e=this.getByte();return P===-1||e===-1?-1:(P<<8)+e}getInt32(){const P=this.getByte(),e=this.getByte(),N=this.getByte(),D=this.getByte();return(P<<24)+(e<<16)+(N<<8)+D}getByteRange(P,e){(0,t.unreachable)("Abstract method `getByteRange` called")}getString(P){return(0,t.bytesToString)(this.getBytes(P))}skip(P){this.pos+=P||1}reset(){(0,t.unreachable)("Abstract method `reset` called")}moveStart(){(0,t.unreachable)("Abstract method `moveStart` called")}makeSubStream(P,e){(0,t.unreachable)("Abstract method `makeSubStream` called")}getBaseStreams(){return null}}l.BaseStream=i},(he,l,w)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.NetworkPdfManager=l.LocalPdfManager=void 0;var t=w(2),i=w(140),O=w(136),P=w(142),e=w(141);function N(x){if(x){const g=(0,t.createValidAbsoluteUrl)(x);if(g)return g.href;(0,t.warn)(`Invalid absolute docBaseUrl: "${x}".`)}return null}class D{constructor(g){this.constructor===D&&(0,t.unreachable)("Cannot initialize BasePdfManager."),this._docBaseUrl=N(g.docBaseUrl),this._docId=g.docId,this._password=g.password,this.enableXfa=g.enableXfa,this.evaluatorOptions=g.evaluatorOptions}get docId(){return this._docId}get password(){return this._password}get docBaseUrl(){const g=this.pdfDocument.catalog;return(0,t.shadow)(this,"docBaseUrl",g.baseUrl||this._docBaseUrl)}ensureDoc(g,n){return this.ensure(this.pdfDocument,g,n)}ensureXRef(g,n){return this.ensure(this.pdfDocument.xref,g,n)}ensureCatalog(g,n){return this.ensure(this.pdfDocument.catalog,g,n)}getPage(g){return this.pdfDocument.getPage(g)}fontFallback(g,n){return this.pdfDocument.fontFallback(g,n)}loadXfaFonts(g,n){return this.pdfDocument.loadXfaFonts(g,n)}loadXfaImages(){return this.pdfDocument.loadXfaImages()}serializeXfaData(g){return this.pdfDocument.serializeXfaData(g)}cleanup(){let g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return this.pdfDocument.cleanup(g)}async ensure(g,n,I){(0,t.unreachable)("Abstract method `ensure` called")}requestRange(g,n){(0,t.unreachable)("Abstract method `requestRange` called")}requestLoadedStream(){(0,t.unreachable)("Abstract method `requestLoadedStream` called")}sendProgressiveData(g){(0,t.unreachable)("Abstract method `sendProgressiveData` called")}updatePassword(g){this._password=g}terminate(g){(0,t.unreachable)("Abstract method `terminate` called")}}class L extends D{constructor(g){super(g);const n=new e.Stream(g.source);this.pdfDocument=new P.PDFDocument(this,n),this._loadedStreamPromise=Promise.resolve(n)}async ensure(g,n,I){const B=g[n];return typeof B=="function"?B.apply(g,I):B}requestRange(g,n){return Promise.resolve()}requestLoadedStream(){return this._loadedStreamPromise}terminate(g){}}l.LocalPdfManager=L;class k extends D{constructor(g){super(g),this.streamManager=new i.ChunkedStreamManager(g.source,{msgHandler:g.handler,length:g.length,disableAutoFetch:g.disableAutoFetch,rangeChunkSize:g.rangeChunkSize}),this.pdfDocument=new P.PDFDocument(this,this.streamManager.getStream())}async ensure(g,n,I){try{const B=g[n];return typeof B=="function"?B.apply(g,I):B}catch(B){if(!(B instanceof O.MissingDataException))throw B;return await this.requestRange(B.begin,B.end),this.ensure(g,n,I)}}requestRange(g,n){return this.streamManager.requestRange(g,n)}requestLoadedStream(){let g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return this.streamManager.requestAllChunks(g)}sendProgressiveData(g){this.streamManager.onReceiveData({chunk:g})}terminate(g){this.streamManager.abort(g)}}l.NetworkPdfManager=k},(he,l,w)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.ChunkedStreamManager=l.ChunkedStream=void 0;var t=w(136),i=w(2),O=w(141);class P extends O.Stream{constructor(D,L,k){super(new Uint8Array(D),0,D,null),this.chunkSize=L,this._loadedChunks=new Set,this.numChunks=Math.ceil(D/L),this.manager=k,this.progressiveDataLength=0,this.lastSuccessfulEnsureByteChunk=-1}getMissingChunks(){const D=[];for(let L=0,k=this.numChunks;L<k;++L)this._loadedChunks.has(L)||D.push(L);return D}get numChunksLoaded(){return this._loadedChunks.size}get isDataLoaded(){return this.numChunksLoaded===this.numChunks}onReceiveData(D,L){const k=this.chunkSize;if(D%k!==0)throw new Error(`Bad begin offset: ${D}`);const x=D+L.byteLength;if(x%k!==0&&x!==this.bytes.length)throw new Error(`Bad end offset: ${x}`);this.bytes.set(new Uint8Array(L),D);const g=Math.floor(D/k),n=Math.floor((x-1)/k)+1;for(let I=g;I<n;++I)this._loadedChunks.add(I)}onReceiveProgressiveData(D){let L=this.progressiveDataLength;const k=Math.floor(L/this.chunkSize);this.bytes.set(new Uint8Array(D),L),L+=D.byteLength,this.progressiveDataLength=L;const x=L>=this.end?this.numChunks:Math.floor(L/this.chunkSize);for(let g=k;g<x;++g)this._loadedChunks.add(g)}ensureByte(D){if(D<this.progressiveDataLength)return;const L=Math.floor(D/this.chunkSize);if(!(L>this.numChunks)&&L!==this.lastSuccessfulEnsureByteChunk){if(!this._loadedChunks.has(L))throw new t.MissingDataException(D,D+1);this.lastSuccessfulEnsureByteChunk=L}}ensureRange(D,L){if(D>=L||L<=this.progressiveDataLength)return;const k=Math.floor(D/this.chunkSize);if(k>this.numChunks)return;const x=Math.min(Math.floor((L-1)/this.chunkSize)+1,this.numChunks);for(let g=k;g<x;++g)if(!this._loadedChunks.has(g))throw new t.MissingDataException(D,L)}nextEmptyChunk(D){const L=this.numChunks;for(let k=0;k<L;++k){const x=(D+k)%L;if(!this._loadedChunks.has(x))return x}return null}hasChunk(D){return this._loadedChunks.has(D)}getByte(){const D=this.pos;return D>=this.end?-1:(D>=this.progressiveDataLength&&this.ensureByte(D),this.bytes[this.pos++])}getBytes(D){const L=this.bytes,k=this.pos,x=this.end;if(!D)return x>this.progressiveDataLength&&this.ensureRange(k,x),L.subarray(k,x);let g=k+D;return g>x&&(g=x),g>this.progressiveDataLength&&this.ensureRange(k,g),this.pos=g,L.subarray(k,g)}getByteRange(D,L){return D<0&&(D=0),L>this.end&&(L=this.end),L>this.progressiveDataLength&&this.ensureRange(D,L),this.bytes.subarray(D,L)}makeSubStream(D,L){let k=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;L?D+L>this.progressiveDataLength&&this.ensureRange(D,D+L):D>=this.progressiveDataLength&&this.ensureByte(D);function x(){}x.prototype=Object.create(this),x.prototype.getMissingChunks=function(){const n=this.chunkSize,I=Math.floor(this.start/n),B=Math.floor((this.end-1)/n)+1,h=[];for(let c=I;c<B;++c)this._loadedChunks.has(c)||h.push(c);return h},Object.defineProperty(x.prototype,"isDataLoaded",{get(){return this.numChunksLoaded===this.numChunks?!0:this.getMissingChunks().length===0},configurable:!0});const g=new x;return g.pos=g.start=D,g.end=D+L||this.end,g.dict=k,g}getBaseStreams(){return[this]}}l.ChunkedStream=P;class e{constructor(D,L){this.length=L.length,this.chunkSize=L.rangeChunkSize,this.stream=new P(this.length,this.chunkSize,this),this.pdfNetworkStream=D,this.disableAutoFetch=L.disableAutoFetch,this.msgHandler=L.msgHandler,this.currRequestId=0,this._chunksNeededByRequest=new Map,this._requestsByChunk=new Map,this._promisesByRequest=new Map,this.progressiveDataLength=0,this.aborted=!1,this._loadedStreamCapability=(0,i.createPromiseCapability)()}sendRequest(D,L){const k=this.pdfNetworkStream.getRangeReader(D,L);k.isStreamingSupported||(k.onProgress=this.onProgress.bind(this));let x=[],g=0;return new Promise((n,I)=>{const B=h=>{let{value:c,done:C}=h;try{if(C){const u=(0,t.arrayBuffersToBytes)(x);x=null,n(u);return}g+=c.byteLength,k.isStreamingSupported&&this.onProgress({loaded:g}),x.push(c),k.read().then(B,I)}catch(u){I(u)}};k.read().then(B,I)}).then(n=>{this.aborted||this.onReceiveData({chunk:n,begin:D})})}requestAllChunks(){if(!(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)){const L=this.stream.getMissingChunks();this._requestChunks(L)}return this._loadedStreamCapability.promise}_requestChunks(D){const L=this.currRequestId++,k=new Set;this._chunksNeededByRequest.set(L,k);for(const n of D)this.stream.hasChunk(n)||k.add(n);if(k.size===0)return Promise.resolve();const x=(0,i.createPromiseCapability)();this._promisesByRequest.set(L,x);const g=[];for(const n of k){let I=this._requestsByChunk.get(n);I||(I=[],this._requestsByChunk.set(n,I),g.push(n)),I.push(L)}if(g.length>0){const n=this.groupChunks(g);for(const I of n){const B=I.beginChunk*this.chunkSize,h=Math.min(I.endChunk*this.chunkSize,this.length);this.sendRequest(B,h).catch(x.reject)}}return x.promise.catch(n=>{if(!this.aborted)throw n})}getStream(){return this.stream}requestRange(D,L){L=Math.min(L,this.length);const k=this.getBeginChunk(D),x=this.getEndChunk(L),g=[];for(let n=k;n<x;++n)g.push(n);return this._requestChunks(g)}requestRanges(){let D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const L=[];for(const k of D){const x=this.getBeginChunk(k.begin),g=this.getEndChunk(k.end);for(let n=x;n<g;++n)L.includes(n)||L.push(n)}return L.sort(function(k,x){return k-x}),this._requestChunks(L)}groupChunks(D){const L=[];let k=-1,x=-1;for(let g=0,n=D.length;g<n;++g){const I=D[g];k<0&&(k=I),x>=0&&x+1!==I&&(L.push({beginChunk:k,endChunk:x+1}),k=I),g+1===D.length&&L.push({beginChunk:k,endChunk:I+1}),x=I}return L}onProgress(D){this.msgHandler.send("DocProgress",{loaded:this.stream.numChunksLoaded*this.chunkSize+D.loaded,total:this.length})}onReceiveData(D){const L=D.chunk,k=D.begin===void 0,x=k?this.progressiveDataLength:D.begin,g=x+L.byteLength,n=Math.floor(x/this.chunkSize),I=g<this.length?Math.floor(g/this.chunkSize):Math.ceil(g/this.chunkSize);k?(this.stream.onReceiveProgressiveData(L),this.progressiveDataLength=g):this.stream.onReceiveData(x,L),this.stream.isDataLoaded&&this._loadedStreamCapability.resolve(this.stream);const B=[];for(let h=n;h<I;++h){const c=this._requestsByChunk.get(h);if(c){this._requestsByChunk.delete(h);for(const C of c){const u=this._chunksNeededByRequest.get(C);u.has(h)&&u.delete(h),!(u.size>0)&&B.push(C)}}}if(!this.disableAutoFetch&&this._requestsByChunk.size===0){let h;if(this.stream.numChunksLoaded===1){const c=this.stream.numChunks-1;this.stream.hasChunk(c)||(h=c)}else h=this.stream.nextEmptyChunk(I);Number.isInteger(h)&&this._requestChunks([h])}for(const h of B){const c=this._promisesByRequest.get(h);this._promisesByRequest.delete(h),c.resolve()}this.msgHandler.send("DocProgress",{loaded:this.stream.numChunksLoaded*this.chunkSize,total:this.length})}onError(D){this._loadedStreamCapability.reject(D)}getBeginChunk(D){return Math.floor(D/this.chunkSize)}getEndChunk(D){return Math.floor((D-1)/this.chunkSize)+1}abort(D){this.aborted=!0,this.pdfNetworkStream&&this.pdfNetworkStream.cancelAllRequests(D);for(const L of this._promisesByRequest.values())L.reject(D)}}l.ChunkedStreamManager=e},(he,l,w)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.StringStream=l.Stream=l.NullStream=void 0;var t=w(138),i=w(2);class O extends t.BaseStream{constructor(D,L,k,x){super(),this.bytes=D instanceof Uint8Array?D:new Uint8Array(D),this.start=L||0,this.pos=this.start,this.end=L+k||this.bytes.length,this.dict=x}get length(){return this.end-this.start}get isEmpty(){return this.length===0}getByte(){return this.pos>=this.end?-1:this.bytes[this.pos++]}getBytes(D){const L=this.bytes,k=this.pos,x=this.end;if(!D)return L.subarray(k,x);let g=k+D;return g>x&&(g=x),this.pos=g,L.subarray(k,g)}getByteRange(D,L){return D<0&&(D=0),L>this.end&&(L=this.end),this.bytes.subarray(D,L)}reset(){this.pos=this.start}moveStart(){this.start=this.pos}makeSubStream(D,L){let k=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;return new O(this.bytes.buffer,D,L,k)}}l.Stream=O;class P extends O{constructor(D){super((0,i.stringToBytes)(D))}}l.StringStream=P;class e extends O{constructor(){super(new Uint8Array(0))}}l.NullStream=e},(he,l,w)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.Page=l.PDFDocument=void 0;var t=w(143),i=w(2),O=w(136),P=w(137),e=w(182),N=w(138),D=w(198),L=w(200),k=w(202),x=w(231),g=w(148),n=w(141),I=w(206),B=w(193),h=w(146),c=w(150),C=w(205),u=w(196),m=w(207),X=w(232);const f=1,F=[0,0,612,792];class s{constructor(T){let{pdfManager:y,xref:H,pageIndex:z,pageDict:$,ref:j,globalIdFactory:V,fontCache:ee,builtInCMapCache:U,standardFontDataCache:G,globalImageCache:Y,nonBlendModesSet:oe,xfaFactory:se}=T;this.pdfManager=y,this.pageIndex=z,this.pageDict=$,this.xref=H,this.ref=j,this.fontCache=ee,this.builtInCMapCache=U,this.standardFontDataCache=G,this.globalImageCache=Y,this.nonBlendModesSet=oe,this.evaluatorOptions=y.evaluatorOptions,this.resourcesPromise=null,this.xfaFactory=se;const Q={obj:0};this._localIdFactory=class extends V{static createObjId(){return`p${z}_${++Q.obj}`}static getPageObjId(){return`page${j.toString()}`}}}_getInheritableProperty(T){let y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const H=(0,O.getInheritableProperty)({dict:this.pageDict,key:T,getArray:y,stopWhenFound:!1});return Array.isArray(H)?H.length===1||!(H[0]instanceof P.Dict)?H[0]:P.Dict.merge({xref:this.xref,dictArray:H}):H}get content(){return this.pageDict.getArray("Contents")}get resources(){const T=this._getInheritableProperty("Resources");return(0,i.shadow)(this,"resources",T instanceof P.Dict?T:P.Dict.empty)}_getBoundingBox(T){if(this.xfaData)return this.xfaData.bbox;let y=this._getInheritableProperty(T,!0);if(Array.isArray(y)&&y.length===4){if(y=i.Util.normalizeRect(y),y[2]-y[0]>0&&y[3]-y[1]>0)return y;(0,i.warn)(`Empty, or invalid, /${T} entry.`)}return null}get mediaBox(){return(0,i.shadow)(this,"mediaBox",this._getBoundingBox("MediaBox")||F)}get cropBox(){return(0,i.shadow)(this,"cropBox",this._getBoundingBox("CropBox")||this.mediaBox)}get userUnit(){let T=this.pageDict.get("UserUnit");return(typeof T!="number"||T<=0)&&(T=f),(0,i.shadow)(this,"userUnit",T)}get view(){const{cropBox:T,mediaBox:y}=this;if(T!==y&&!(0,i.isArrayEqual)(T,y)){const H=i.Util.intersect(T,y);if(H&&H[2]-H[0]>0&&H[3]-H[1]>0)return(0,i.shadow)(this,"view",H);(0,i.warn)("Empty /CropBox and /MediaBox intersection.")}return(0,i.shadow)(this,"view",y)}get rotate(){let T=this._getInheritableProperty("Rotate")||0;return T%90!==0?T=0:T>=360?T%=360:T<0&&(T=(T%360+360)%360),(0,i.shadow)(this,"rotate",T)}_onSubStreamError(T,y,H){if(this.evaluatorOptions.ignoreErrors){T.send("UnsupportedFeature",{featureId:i.UNSUPPORTED_FEATURES.errorContentSubStream}),(0,i.warn)(`getContentStream - ignoring sub-stream (${H}): "${y}".`);return}throw y}getContentStream(T){return this.pdfManager.ensure(this,"content").then(y=>y instanceof N.BaseStream?y:Array.isArray(y)?new c.StreamsSequenceStream(y,this._onSubStreamError.bind(this,T)):new n.NullStream)}get xfaData(){return(0,i.shadow)(this,"xfaData",this.xfaFactory?{bbox:this.xfaFactory.getBoundingBox(this.pageIndex)}:null)}async saveNewAnnotations(T,y,H){if(this.xfaFactory)throw new Error("XFA: Cannot save new annotations.");const z=new h.PartialEvaluator({xref:this.xref,handler:T,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,options:this.evaluatorOptions}),$=this.pageDict,j=this.annotations.slice(),V=await t.AnnotationFactory.saveNewAnnotations(z,y,H);for(const{ref:oe}of V.annotations)j.push(oe);const ee=$.get("Annots");$.set("Annots",j);const U=[];let G=null;this.xref.encrypt&&(G=this.xref.encrypt.createCipherTransform(this.ref.num,this.ref.gen)),(0,u.writeObject)(this.ref,$,U,G),ee&&$.set("Annots",ee);const Y=V.dependencies;return Y.push({ref:this.ref,data:U.join("")},...V.annotations),Y}save(T,y,H){const z=new h.PartialEvaluator({xref:this.xref,handler:T,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,options:this.evaluatorOptions});return this._parsedAnnotations.then(function($){const j=[];for(const V of $)V.mustBePrinted(H)&&j.push(V.save(z,y,H).catch(function(ee){return(0,i.warn)(`save - ignoring annotation data during "${y.name}" task: "${ee}".`),null}));return Promise.all(j).then(function(V){return V.filter(ee=>!!ee)})})}loadResources(T){return this.resourcesPromise||(this.resourcesPromise=this.pdfManager.ensure(this,"resources")),this.resourcesPromise.then(()=>new I.ObjectLoader(this.resources,T,this.xref).load())}getOperatorList(T){let{handler:y,sink:H,task:z,intent:$,cacheKey:j,annotationStorage:V=null}=T;const ee=this.getContentStream(y),U=this.loadResources(["ColorSpace","ExtGState","Font","Pattern","Properties","Shading","XObject"]),G=new h.PartialEvaluator({xref:this.xref,handler:y,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,options:this.evaluatorOptions}),Y=this.xfaFactory?null:(0,O.getNewAnnotationsMap)(V);let oe=Promise.resolve(null);if(Y){const E=Y.get(this.pageIndex);E&&(oe=t.AnnotationFactory.printNewAnnotations(G,z,E))}const Q=Promise.all([ee,U]).then(E=>{let[M]=E;const _=new B.OperatorList($,H);return y.send("StartRenderPage",{transparency:G.hasBlendModes(this.resources,this.nonBlendModesSet),pageIndex:this.pageIndex,cacheKey:j}),G.getOperatorList({stream:M,task:z,resources:this.resources,operatorList:_}).then(function(){return _})});return Promise.all([Q,this._parsedAnnotations,oe]).then(function(E){let[M,_,J]=E;if(J&&(_=_.concat(J)),_.length===0||$&i.RenderingIntentFlag.ANNOTATIONS_DISABLE)return M.flush(!0),{length:M.totalLength};const K=!!($&i.RenderingIntentFlag.ANNOTATIONS_FORMS),te=!!($&i.RenderingIntentFlag.ANY),Z=!!($&i.RenderingIntentFlag.DISPLAY),ce=!!($&i.RenderingIntentFlag.PRINT),ne=[];for(const re of _)(te||Z&&re.mustBeViewed(V)||ce&&re.mustBePrinted(V))&&ne.push(re.getOperatorList(G,z,$,K,V).catch(function(ie){return(0,i.warn)(`getOperatorList - ignoring annotation data during "${z.name}" task: "${ie}".`),{opList:null,separateForm:!1,separateCanvas:!1}}));return Promise.all(ne).then(function(re){let ie=!1,ae=!1;for(const{opList:ue,separateForm:fe,separateCanvas:me}of re)M.addOpList(ue),fe&&(ie=fe),me&&(ae=me);return M.flush(!0,{form:ie,canvas:ae}),{length:M.totalLength}})})}extractTextContent(T){let{handler:y,task:H,includeMarkedContent:z,sink:$,combineTextItems:j}=T;const V=this.getContentStream(y),ee=this.loadResources(["ExtGState","Font","Properties","XObject"]);return Promise.all([V,ee]).then(G=>{let[Y]=G;return new h.PartialEvaluator({xref:this.xref,handler:y,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,options:this.evaluatorOptions}).getTextContent({stream:Y,task:H,resources:this.resources,includeMarkedContent:z,combineTextItems:j,sink:$,viewBox:this.view})})}async getStructTree(){const T=await this.pdfManager.ensureCatalog("structTreeRoot");return T?(await this.pdfManager.ensure(this,"_parseStructTree",[T])).serializable:null}_parseStructTree(T){const y=new C.StructTreePage(T,this.pageDict);return y.parse(),y}async getAnnotationsData(T,y,H){const z=await this._parsedAnnotations;if(z.length===0)return[];const $=[],j=[];let V;const ee=!!(H&i.RenderingIntentFlag.ANY),U=!!(H&i.RenderingIntentFlag.DISPLAY),G=!!(H&i.RenderingIntentFlag.PRINT);for(const Y of z){const oe=ee||U&&Y.viewable;(oe||G&&Y.printable)&&j.push(Y.data),Y.hasTextContent&&oe&&(V||(V=new h.PartialEvaluator({xref:this.xref,handler:T,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,options:this.evaluatorOptions})),$.push(Y.extractTextContent(V,y,this.view).catch(function(se){(0,i.warn)(`getAnnotationsData - ignoring textContent during "${y.name}" task: "${se}".`)})))}return await Promise.all($),j}get annotations(){const T=this._getInheritableProperty("Annots");return(0,i.shadow)(this,"annotations",Array.isArray(T)?T:[])}get _parsedAnnotations(){const T=this.pdfManager.ensure(this,"annotations").then(()=>{const y=[];for(const H of this.annotations)y.push(t.AnnotationFactory.create(this.xref,H,this.pdfManager,this._localIdFactory,!1).catch(function(z){return(0,i.warn)(`_parsedAnnotations: "${z}".`),null}));return Promise.all(y).then(function(H){if(H.length===0)return H;const z=[];let $;for(const j of H)if(j){if(j instanceof t.PopupAnnotation){$||($=[]),$.push(j);continue}z.push(j)}return $&&z.push(...$),z})});return(0,i.shadow)(this,"_parsedAnnotations",T)}get jsActions(){const T=(0,O.collectActions)(this.xref,this.pageDict,i.PageActionEventType);return(0,i.shadow)(this,"jsActions",T)}}l.Page=s;const d=new Uint8Array([37,80,68,70,45]),S=new Uint8Array([115,116,97,114,116,120,114,101,102]),r=new Uint8Array([101,110,100,111,98,106]),o=1024,A="\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0";function p(R,T){let y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1024,H=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;const z=T.length,$=R.peekBytes(y),j=$.length-z;if(j<=0)return!1;if(H){const V=z-1;let ee=$.length-1;for(;ee>=V;){let U=0;for(;U<z&&$[ee-U]===T[V-U];)U++;if(U>=z)return R.pos+=ee-V,!0;ee--}}else{let V=0;for(;V<=j;){let ee=0;for(;ee<z&&$[V+ee]===T[ee];)ee++;if(ee>=z)return R.pos+=V,!0;V++}}return!1}class v{constructor(T,y){if(y.length<=0)throw new i.InvalidPDFException("The PDF file is empty, i.e. its size is zero bytes.");this.pdfManager=T,this.stream=y,this.xref=new X.XRef(y,T),this._pagePromises=new Map,this._version=null;const H={font:0};this._globalIdFactory=class{static getDocId(){return`g_${T.docId}`}static createFontId(){return`f${++H.font}`}static createObjId(){(0,i.unreachable)("Abstract method `createObjId` called.")}static getPageObjId(){(0,i.unreachable)("Abstract method `getPageObjId` called.")}}}parse(T){this.xref.parse(T),this.catalog=new L.Catalog(this.pdfManager,this.xref)}get linearization(){let T=null;try{T=g.Linearization.create(this.stream)}catch(y){if(y instanceof O.MissingDataException)throw y;(0,i.info)(y)}return(0,i.shadow)(this,"linearization",T)}get startXRef(){const T=this.stream;let y=0;if(this.linearization)T.reset(),p(T,r)&&(y=T.pos+6-T.start);else{const z=S.length;let $=!1,j=T.end;for(;!$&&j>0;)j-=1024-z,j<0&&(j=0),T.pos=j,$=p(T,S,1024,!0);if($){T.skip(9);let V;do V=T.getByte();while((0,O.isWhiteSpace)(V));let ee="";for(;V>=32&&V<=57;)ee+=String.fromCharCode(V),V=T.getByte();y=parseInt(ee,10),isNaN(y)&&(y=0)}}return(0,i.shadow)(this,"startXRef",y)}checkHeader(){const T=this.stream;if(T.reset(),!p(T,d))return;T.moveStart(),T.skip(d.length);let y="",H;for(;(H=T.getByte())>32&&y.length<7;)y+=String.fromCharCode(H);O.PDF_VERSION_REGEXP.test(y)?this._version=y:(0,i.warn)(`Invalid PDF header version: ${y}`)}parseStartXRef(){this.xref.setStartXRef(this.startXRef)}get numPages(){let T=0;return this.catalog.hasActualNumPages?T=this.catalog.numPages:this.xfaFactory?T=this.xfaFactory.getNumPages():this.linearization?T=this.linearization.numPages:T=this.catalog.numPages,(0,i.shadow)(this,"numPages",T)}_hasOnlyDocumentSignatures(T){let y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const H=10;return Array.isArray(T)?T.every(z=>{if(z=this.xref.fetchIfRef(z),!(z instanceof P.Dict))return!1;if(z.has("Kids"))return++y>H?((0,i.warn)("_hasOnlyDocumentSignatures: maximum recursion depth reached"),!1):this._hasOnlyDocumentSignatures(z.get("Kids"),y);const $=(0,P.isName)(z.get("FT"),"Sig"),j=z.get("Rect"),V=Array.isArray(j)&&j.every(ee=>ee===0);return $&&V}):!1}get _xfaStreams(){const T=this.catalog.acroForm;if(!T)return null;const y=T.get("XFA"),H={"xdp:xdp":"",template:"",datasets:"",config:"",connectionSet:"",localeSet:"",stylesheet:"","/xdp:xdp":""};if(y instanceof N.BaseStream&&!y.isEmpty)return H["xdp:xdp"]=y,H;if(!Array.isArray(y)||y.length===0)return null;for(let z=0,$=y.length;z<$;z+=2){let j;if(z===0?j="xdp:xdp":z===$-2?j="/xdp:xdp":j=y[z],!H.hasOwnProperty(j))continue;const V=this.xref.fetchIfRef(y[z+1]);!(V instanceof N.BaseStream)||V.isEmpty||(H[j]=V)}return H}get xfaDatasets(){const T=this._xfaStreams;if(!T)return(0,i.shadow)(this,"xfaDatasets",null);for(const y of["datasets","xdp:xdp"]){const H=T[y];if(H)try{const z=(0,i.stringToUTF8String)(H.getString()),$={[y]:z};return(0,i.shadow)(this,"xfaDatasets",new x.DatasetReader($))}catch{(0,i.warn)("XFA - Invalid utf-8 string.");break}}return(0,i.shadow)(this,"xfaDatasets",null)}get xfaData(){const T=this._xfaStreams;if(!T)return null;const y=Object.create(null);for(const[H,z]of Object.entries(T))if(z)try{y[H]=(0,i.stringToUTF8String)(z.getString())}catch{return(0,i.warn)("XFA - Invalid utf-8 string."),null}return y}get xfaFactory(){let T;return this.pdfManager.enableXfa&&this.catalog.needsRendering&&this.formInfo.hasXfa&&!this.formInfo.hasAcroForm&&(T=this.xfaData),(0,i.shadow)(this,"xfaFactory",T?new m.XFAFactory(T):null)}get isPureXfa(){return this.xfaFactory?this.xfaFactory.isValid():!1}get htmlForXfa(){return this.xfaFactory?this.xfaFactory.getPages():null}async loadXfaImages(){const T=await this.pdfManager.ensureCatalog("xfaImages");if(!T)return;const y=T.getKeys();await new I.ObjectLoader(T,y,this.xref).load();const z=new Map;for(const $ of y){const j=T.get($);j instanceof N.BaseStream&&z.set($,j.getBytes())}this.xfaFactory.setImages(z)}async loadXfaFonts(T,y){const H=await this.pdfManager.ensureCatalog("acroForm");if(!H)return;const z=await H.getAsync("DR");if(!(z instanceof P.Dict))return;await new I.ObjectLoader(z,["Font"],this.xref).load();const j=z.get("Font");if(!(j instanceof P.Dict))return;const V=Object.assign(Object.create(null),this.pdfManager.evaluatorOptions);V.useSystemFonts=!1;const ee=new h.PartialEvaluator({xref:this.xref,handler:T,pageIndex:-1,idFactory:this._globalIdFactory,fontCache:this.catalog.fontCache,builtInCMapCache:this.catalog.builtInCMapCache,standardFontDataCache:this.catalog.standardFontDataCache,options:V}),U=new B.OperatorList,G=[],Y={get font(){return G.at(-1)},set font(M){G.push(M)},clone(){return this}},oe=new Map;j.forEach((M,_)=>{oe.set(M,_)});const se=[];for(const[M,_]of oe){const J=_.get("FontDescriptor");if(!(J instanceof P.Dict))continue;let K=J.get("FontFamily");K=K.replace(/[ ]+(\d)/g,"$1");const te=J.get("FontWeight"),Z=-J.get("ItalicAngle"),ce={fontFamily:K,fontWeight:te,italicAngle:Z};(0,O.validateCSSFont)(ce)&&se.push(ee.handleSetFont(z,[P.Name.get(M),1],null,U,y,Y,null,ce).catch(function(ne){return(0,i.warn)(`loadXfaFonts: "${ne}".`),null}))}await Promise.all(se);const Q=this.xfaFactory.setFonts(G);if(!Q)return;V.ignoreErrors=!0,se.length=0,G.length=0;const E=new Set;for(const M of Q)(0,e.getXfaFontName)(`${M}-Regular`)||E.add(M);E.size&&Q.push("PdfJS-Fallback");for(const M of Q)if(!E.has(M))for(const _ of[{name:"Regular",fontWeight:400,italicAngle:0},{name:"Bold",fontWeight:700,italicAngle:0},{name:"Italic",fontWeight:400,italicAngle:12},{name:"BoldItalic",fontWeight:700,italicAngle:12}]){const J=`${M}-${_.name}`,K=(0,e.getXfaFontDict)(J);se.push(ee.handleSetFont(z,[P.Name.get(J),1],null,U,y,Y,K,{fontFamily:M,fontWeight:_.fontWeight,italicAngle:_.italicAngle}).catch(function(te){return(0,i.warn)(`loadXfaFonts: "${te}".`),null}))}await Promise.all(se),this.xfaFactory.appendFonts(G,E)}async serializeXfaData(T){return this.xfaFactory?this.xfaFactory.serializeData(T):null}get version(){return this.catalog.version||this._version}get formInfo(){const T={hasFields:!1,hasAcroForm:!1,hasXfa:!1,hasSignatures:!1},y=this.catalog.acroForm;if(!y)return(0,i.shadow)(this,"formInfo",T);try{const H=y.get("Fields"),z=Array.isArray(H)&&H.length>0;T.hasFields=z;const $=y.get("XFA");T.hasXfa=Array.isArray($)&&$.length>0||$ instanceof N.BaseStream&&!$.isEmpty;const V=!!(y.get("SigFlags")&1),ee=V&&this._hasOnlyDocumentSignatures(H);T.hasAcroForm=z&&!ee,T.hasSignatures=V}catch(H){if(H instanceof O.MissingDataException)throw H;(0,i.warn)(`Cannot fetch form information: "${H}".`)}return(0,i.shadow)(this,"formInfo",T)}get documentInfo(){const T={PDFFormatVersion:this.version,Language:this.catalog.lang,EncryptFilterName:this.xref.encrypt?this.xref.encrypt.filterName:null,IsLinearized:!!this.linearization,IsAcroFormPresent:this.formInfo.hasAcroForm,IsXFAPresent:this.formInfo.hasXfa,IsCollectionPresent:!!this.catalog.collection,IsSignaturesPresent:this.formInfo.hasSignatures};let y;try{y=this.xref.trailer.get("Info")}catch(H){if(H instanceof O.MissingDataException)throw H;(0,i.info)("The document information dictionary is invalid.")}if(!(y instanceof P.Dict))return(0,i.shadow)(this,"documentInfo",T);for(const H of y.getKeys()){const z=y.get(H);switch(H){case"Title":case"Author":case"Subject":case"Keywords":case"Creator":case"Producer":case"CreationDate":case"ModDate":if(typeof z=="string"){T[H]=(0,i.stringToPDFString)(z);continue}break;case"Trapped":if(z instanceof P.Name){T[H]=z;continue}break;default:let $;switch(typeof z){case"string":$=(0,i.stringToPDFString)(z);break;case"number":case"boolean":$=z;break;default:z instanceof P.Name&&($=z);break}if($===void 0){(0,i.warn)(`Bad value, for custom key "${H}", in Info: ${z}.`);continue}T.Custom||(T.Custom=Object.create(null)),T.Custom[H]=$;continue}(0,i.warn)(`Bad value, for key "${H}", in Info: ${z}.`)}return(0,i.shadow)(this,"documentInfo",T)}get fingerprints(){function T(j){return typeof j=="string"&&j.length>0&&j!==A}function y(j){const V=[];for(const ee of j){const U=ee.toString(16);V.push(U.padStart(2,"0"))}return V.join("")}const H=this.xref.trailer.get("ID");let z,$;return Array.isArray(H)&&T(H[0])?(z=(0,i.stringToBytes)(H[0]),H[1]!==H[0]&&T(H[1])&&($=(0,i.stringToBytes)(H[1]))):z=(0,D.calculateMD5)(this.stream.getByteRange(0,o),0,o),(0,i.shadow)(this,"fingerprints",[y(z),$?y($):null])}async _getLinearizationPage(T){const{catalog:y,linearization:H,xref:z}=this,$=P.Ref.get(H.objectNumberFirst,0);try{const j=await z.fetchAsync($);if(j instanceof P.Dict){let V=j.getRaw("Type");if(V instanceof P.Ref&&(V=await z.fetchAsync(V)),(0,P.isName)(V,"Page")||!j.has("Type")&&!j.has("Kids"))return y.pageKidsCountCache.has($)||y.pageKidsCountCache.put($,1),y.pageIndexCache.has($)||y.pageIndexCache.put($,0),[j,$]}throw new i.FormatError("The Linearization dictionary doesn't point to a valid Page dictionary.")}catch(j){return(0,i.warn)(`_getLinearizationPage: "${j.message}".`),y.getPageDict(T)}}getPage(T){const y=this._pagePromises.get(T);if(y)return y;const{catalog:H,linearization:z,xfaFactory:$}=this;let j;return $?j=Promise.resolve([P.Dict.empty,null]):z&&z.pageFirst===T?j=this._getLinearizationPage(T):j=H.getPageDict(T),j=j.then(V=>{let[ee,U]=V;return new s({pdfManager:this.pdfManager,xref:this.xref,pageIndex:T,pageDict:ee,ref:U,globalIdFactory:this._globalIdFactory,fontCache:H.fontCache,builtInCMapCache:H.builtInCMapCache,standardFontDataCache:H.standardFontDataCache,globalImageCache:H.globalImageCache,nonBlendModesSet:H.nonBlendModesSet,xfaFactory:$})}),this._pagePromises.set(T,j),j}async checkFirstPage(){if(!(arguments.length>0&&arguments[0]!==void 0&&arguments[0]))try{await this.getPage(0)}catch(y){if(y instanceof O.XRefEntryException)throw this._pagePromises.delete(0),await this.cleanup(),new O.XRefParseException}}async checkLastPage(){let T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const{catalog:y,pdfManager:H}=this;y.setActualNumPages();let z;try{if(await Promise.all([H.ensureDoc("xfaFactory"),H.ensureDoc("linearization"),H.ensureCatalog("numPages")]),this.xfaFactory)return;if(this.linearization?z=this.linearization.numPages:z=y.numPages,Number.isInteger(z)){if(z<=1)return}else throw new i.FormatError("Page count is not an integer.");await this.getPage(z-1)}catch($){if(this._pagePromises.delete(z-1),await this.cleanup(),$ instanceof O.XRefEntryException&&!T)throw new O.XRefParseException;(0,i.warn)(`checkLastPage - invalid /Pages tree /Count: ${z}.`);let j;try{j=await y.getAllPageDicts(T)}catch(V){if(V instanceof O.XRefEntryException&&!T)throw new O.XRefParseException;y.setActualNumPages(1);return}for(const[V,[ee,U]]of j){let G;ee instanceof Error?(G=Promise.reject(ee),G.catch(()=>{})):G=Promise.resolve(new s({pdfManager:H,xref:this.xref,pageIndex:V,pageDict:ee,ref:U,globalIdFactory:this._globalIdFactory,fontCache:y.fontCache,builtInCMapCache:y.builtInCMapCache,standardFontDataCache:y.standardFontDataCache,globalImageCache:y.globalImageCache,nonBlendModesSet:y.nonBlendModesSet,xfaFactory:null})),this._pagePromises.set(V,G)}y.setActualNumPages(j.size)}}fontFallback(T,y){return this.catalog.fontFallback(T,y)}async cleanup(){let T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return this.catalog?this.catalog.cleanup(T):(0,k.clearGlobalCaches)()}_collectFieldObjects(T,y,H){const z=this.xref.fetchIfRef(y);if(z.has("T")){const $=(0,i.stringToPDFString)(z.get("T"));T===""?T=$:T=`${T}.${$}`}if(H.has(T)||H.set(T,[]),H.get(T).push(t.AnnotationFactory.create(this.xref,y,this.pdfManager,this._localIdFactory,!0).then($=>$&&$.getFieldObject()).catch(function($){return(0,i.warn)(`_collectFieldObjects: "${$}".`),null})),z.has("Kids")){const $=z.get("Kids");for(const j of $)this._collectFieldObjects(T,j,H)}}get fieldObjects(){if(!this.formInfo.hasFields)return(0,i.shadow)(this,"fieldObjects",Promise.resolve(null));const T=Object.create(null),y=new Map;for(const z of this.catalog.acroForm.get("Fields"))this._collectFieldObjects("",z,y);const H=[];for(const[z,$]of y)H.push(Promise.all($).then(j=>{j=j.filter(V=>!!V),j.length>0&&(T[z]=j)}));return(0,i.shadow)(this,"fieldObjects",Promise.all(H).then(()=>T))}get hasJSActions(){const T=this.pdfManager.ensureDoc("_parseHasJSActions");return(0,i.shadow)(this,"hasJSActions",T)}async _parseHasJSActions(){const[T,y]=await Promise.all([this.pdfManager.ensureCatalog("jsActions"),this.pdfManager.ensureDoc("fieldObjects")]);return T?!0:y?Object.values(y).some(H=>H.some(z=>z.actions!==null)):!1}get calculationOrderIds(){const T=this.catalog.acroForm;if(!T||!T.has("CO"))return(0,i.shadow)(this,"calculationOrderIds",null);const y=T.get("CO");if(!Array.isArray(y)||y.length===0)return(0,i.shadow)(this,"calculationOrderIds",null);const H=[];for(const z of y)z instanceof P.Ref&&H.push(z.toString());return H.length===0?(0,i.shadow)(this,"calculationOrderIds",null):(0,i.shadow)(this,"calculationOrderIds",H)}}l.PDFDocument=v},(he,l,w)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.PopupAnnotation=l.MarkupAnnotation=l.AnnotationFactory=l.AnnotationBorderStyle=l.Annotation=void 0,l.getQuadPoints=u;var t=w(2),i=w(136),O=w(144),P=w(137),e=w(196),N=w(138),D=w(191),L=w(200),k=w(145),x=w(203),g=w(206),n=w(193),I=w(141),B=w(207);class h{static create(E,M,_,J,K){return Promise.all([_.ensureCatalog("acroForm"),_.ensureCatalog("baseUrl"),_.ensureCatalog("attachments"),_.ensureDoc("xfaDatasets"),K?this._getPageIndex(E,M,_):-1]).then(te=>{let[Z,ce,ne,re,ie]=te;return _.ensure(this,"_create",[E,M,_,J,Z,ne,re,K,ie])})}static _create(E,M,_,J,K){let te=arguments.length>5&&arguments[5]!==void 0?arguments[5]:null,Z=arguments.length>6?arguments[6]:void 0,ce=arguments.length>7?arguments[7]:void 0,ne=arguments.length>8&&arguments[8]!==void 0?arguments[8]:-1;const re=E.fetchIfRef(M);if(!(re instanceof P.Dict))return;const ie=M instanceof P.Ref?M.toString():`annot_${J.createObjId()}`;let ae=re.get("Subtype");ae=ae instanceof P.Name?ae.name:null;const ue=K instanceof P.Dict?K:P.Dict.empty,fe={xref:E,ref:M,dict:re,subtype:ae,id:ie,pdfManager:_,acroForm:ue,attachments:te,xfaDatasets:Z,collectFields:ce,needAppearances:!ce&&ue.get("NeedAppearances")===!0,pageIndex:ne,isOffscreenCanvasSupported:t.FeatureTest.isOffscreenCanvasSupported&&_.evaluatorOptions.isOffscreenCanvasSupported};switch(ae){case"Link":return new p(fe);case"Text":return new A(fe);case"Widget":let me=(0,i.getInheritableProperty)({dict:re,key:"FT"});switch(me=me instanceof P.Name?me.name:null,me){case"Tx":return new d(fe);case"Btn":return new S(fe);case"Ch":return new r(fe);case"Sig":return new o(fe)}return(0,t.warn)(`Unimplemented widget field type "${me}", falling back to base field type.`),new s(fe);case"Popup":return new v(fe);case"FreeText":return new R(fe);case"Line":return new T(fe);case"Square":return new y(fe);case"Circle":return new H(fe);case"PolyLine":return new z(fe);case"Polygon":return new $(fe);case"Caret":return new j(fe);case"Ink":return new V(fe);case"Highlight":return new ee(fe);case"Underline":return new U(fe);case"Squiggly":return new G(fe);case"StrikeOut":return new Y(fe);case"Stamp":return new oe(fe);case"FileAttachment":return new se(fe);default:return ce||(ae?(0,t.warn)(`Unimplemented annotation type "${ae}", falling back to base annotation.`):(0,t.warn)("Annotation is missing the required /Subtype.")),new X(fe)}}static async _getPageIndex(E,M,_){try{const J=await E.fetchIfRefAsync(M);if(!(J instanceof P.Dict))return-1;const K=J.getRaw("P");return K instanceof P.Ref?await _.ensureCatalog("getPageIndex",[K]):-1}catch(J){return(0,t.warn)(`_getPageIndex: "${J}".`),-1}}static async saveNewAnnotations(E,M,_){const J=E.xref;let K;const te=[],Z=[];for(const ce of _)switch(ce.annotationType){case t.AnnotationEditorType.FREETEXT:if(!K){const ne=new P.Dict(J);ne.set("BaseFont",P.Name.get("Helvetica")),ne.set("Type",P.Name.get("Font")),ne.set("Subtype",P.Name.get("Type1")),ne.set("Encoding",P.Name.get("WinAnsiEncoding"));const re=[];K=J.getNewTemporaryRef(),(0,e.writeObject)(K,ne,re,null),te.push({ref:K,data:re.join("")})}Z.push(R.createNewAnnotation(J,ce,te,{evaluator:E,task:M,baseFontRef:K}));break;case t.AnnotationEditorType.INK:Z.push(V.createNewAnnotation(J,ce,te))}return{annotations:await Promise.all(Z),dependencies:te}}static async printNewAnnotations(E,M,_){if(!_)return null;const J=E.xref,K=[],te=t.FeatureTest.isOffscreenCanvasSupported&&E.options.isOffscreenCanvasSupported;for(const Z of _)switch(Z.annotationType){case t.AnnotationEditorType.FREETEXT:K.push(R.createNewPrintAnnotation(J,Z,{evaluator:E,task:M,isOffscreenCanvasSupported:te}));break;case t.AnnotationEditorType.INK:K.push(V.createNewPrintAnnotation(J,Z,{isOffscreenCanvasSupported:te}));break}return Promise.all(K)}}l.AnnotationFactory=h;function c(Q){let E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new Uint8ClampedArray(3);if(!Array.isArray(Q))return E;const M=E||new Uint8ClampedArray(3);switch(Q.length){case 0:return null;case 1:return k.ColorSpace.singletons.gray.getRgbItem(Q,0,M,0),M;case 3:return k.ColorSpace.singletons.rgb.getRgbItem(Q,0,M,0),M;case 4:return k.ColorSpace.singletons.cmyk.getRgbItem(Q,0,M,0),M;default:return E}}function C(Q){return Array.from(Q,E=>E/255)}function u(Q,E){const M=Q.getArray("QuadPoints");if(!Array.isArray(M)||M.length===0||M.length%8>0)return null;const _=[];for(let J=0,K=M.length/8;J<K;J++){let te=1/0,Z=-1/0,ce=1/0,ne=-1/0;for(let re=J*8,ie=J*8+8;re<ie;re+=2){const ae=M[re],ue=M[re+1];te=Math.min(ae,te),Z=Math.max(ae,Z),ce=Math.min(ue,ce),ne=Math.max(ue,ne)}if(E!==null&&(te<E[0]||Z>E[2]||ce<E[1]||ne>E[3]))return null;_.push([{x:te,y:ne},{x:Z,y:ne},{x:te,y:ce},{x:Z,y:ce}])}return _}function m(Q,E,M){const[_,J,K,te]=t.Util.getAxialAlignedBoundingBox(E,M);if(_===K||J===te)return[1,0,0,1,Q[0],Q[1]];const Z=(Q[2]-Q[0])/(K-_),ce=(Q[3]-Q[1])/(te-J);return[Z,0,0,ce,Q[0]-_*Z,Q[1]-J*ce]}class X{constructor(E){const{dict:M,xref:_}=E;this.setTitle(M.get("T")),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.setOptionalContent(M);const J=M.get("MK");if(this.setBorderAndBackgroundColors(J),this.setRotation(J),this._streams=[],this.appearance&&this._streams.push(this.appearance),this.data={annotationFlags:this.flags,borderStyle:this.borderStyle,color:this.color,backgroundColor:this.backgroundColor,borderColor:this.borderColor,rotation:this.rotation,contentsObj:this._contents,hasAppearance:!!this.appearance,id:E.id,modificationDate:this.modificationDate,rect:this.rectangle,subtype:E.subtype,hasOwnCanvas:!1},E.collectFields){const K=M.get("Kids");if(Array.isArray(K)){const te=[];for(const Z of K)Z instanceof P.Ref&&te.push(Z.toString());te.length!==0&&(this.data.kidIds=te)}this.data.actions=(0,i.collectActions)(_,M,t.AnnotationActionEventType),this.data.fieldName=this._constructFieldName(M),this.data.pageIndex=E.pageIndex}this._isOffscreenCanvasSupported=E.isOffscreenCanvasSupported,this._fallbackFontDict=null,this._needAppearances=!1}_hasFlag(E,M){return!!(E&M)}_isViewable(E){return!this._hasFlag(E,t.AnnotationFlag.INVISIBLE)&&!this._hasFlag(E,t.AnnotationFlag.NOVIEW)}_isPrintable(E){return this._hasFlag(E,t.AnnotationFlag.PRINT)&&!this._hasFlag(E,t.AnnotationFlag.INVISIBLE)}mustBeViewed(E){const M=E&&E.get(this.data.id);return M&&M.hidden!==void 0?!M.hidden:this.viewable&&!this._hasFlag(this.flags,t.AnnotationFlag.HIDDEN)}mustBePrinted(E){const M=E&&E.get(this.data.id);return M&&M.print!==void 0?M.print:this.printable}get viewable(){return this.data.quadPoints===null?!1:this.flags===0?!0:this._isViewable(this.flags)}get printable(){return this.data.quadPoints===null||this.flags===0?!1:this._isPrintable(this.flags)}_parseStringHelper(E){const M=typeof E=="string"?(0,t.stringToPDFString)(E):"",_=M&&(0,D.bidi)(M).dir==="rtl"?"rtl":"ltr";return{str:M,dir:_}}setDefaultAppearance(E){const M=(0,i.getInheritableProperty)({dict:E.dict,key:"DA"})||E.acroForm.get("DA");this._defaultAppearance=typeof M=="string"?M:"",this.data.defaultAppearanceData=(0,O.parseDefaultAppearance)(this._defaultAppearance)}setTitle(E){this._title=this._parseStringHelper(E)}setContents(E){this._contents=this._parseStringHelper(E)}setModificationDate(E){this.modificationDate=typeof E=="string"?E:null}setFlags(E){this.flags=Number.isInteger(E)&&E>0?E:0}hasFlag(E){return this._hasFlag(this.flags,E)}setRectangle(E){Array.isArray(E)&&E.length===4?this.rectangle=t.Util.normalizeRect(E):this.rectangle=[0,0,0,0]}setColor(E){this.color=c(E)}setLineEndings(E){if(this.lineEndings=["None","None"],Array.isArray(E)&&E.length===2)for(let M=0;M<2;M++){const _=E[M];if(_ instanceof P.Name)switch(_.name){case"None":continue;case"Square":case"Circle":case"Diamond":case"OpenArrow":case"ClosedArrow":case"Butt":case"ROpenArrow":case"RClosedArrow":case"Slash":this.lineEndings[M]=_.name;continue}(0,t.warn)(`Ignoring invalid lineEnding: ${_}`)}}setRotation(E){if(this.rotation=0,E instanceof P.Dict){let M=E.get("R")||0;Number.isInteger(M)&&M!==0&&(M%=360,M<0&&(M+=360),M%90===0&&(this.rotation=M))}}setBorderAndBackgroundColors(E){E instanceof P.Dict?(this.borderColor=c(E.getArray("BC"),null),this.backgroundColor=c(E.getArray("BG"),null)):this.borderColor=this.backgroundColor=null}setBorderStyle(E){if(this.borderStyle=new f,E instanceof P.Dict)if(E.has("BS")){const M=E.get("BS"),_=M.get("Type");(!_||(0,P.isName)(_,"Border"))&&(this.borderStyle.setWidth(M.get("W"),this.rectangle),this.borderStyle.setStyle(M.get("S")),this.borderStyle.setDashArray(M.getArray("D")))}else if(E.has("Border")){const M=E.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],!0))}else this.borderStyle.setWidth(0)}setAppearance(E){this.appearance=null;const M=E.get("AP");if(!(M instanceof P.Dict))return;const _=M.get("N");if(_ instanceof N.BaseStream){this.appearance=_;return}if(!(_ instanceof P.Dict))return;const J=E.get("AS");if(!(J instanceof P.Name)||!_.has(J.name))return;const K=_.get(J.name);K instanceof N.BaseStream&&(this.appearance=K)}setOptionalContent(E){this.oc=null;const M=E.get("OC");M instanceof P.Name?(0,t.warn)("setOptionalContent: Support for /Name-entry is not implemented."):M instanceof P.Dict&&(this.oc=M)}loadResources(E,M){return M.dict.getAsync("Resources").then(_=>_?new g.ObjectLoader(_,E,_.xref).load().then(function(){return _}):void 0)}async getOperatorList(E,M,_,J,K){const te=this.data;let Z=this.appearance;const ce=!!(this.data.hasOwnCanvas&&_&t.RenderingIntentFlag.DISPLAY);if(!Z){if(!ce)return{opList:new n.OperatorList,separateForm:!1,separateCanvas:!1};Z=new I.StringStream(""),Z.dict=new P.Dict}const ne=Z.dict,re=await this.loadResources(["ExtGState","ColorSpace","Pattern","Shading","XObject","Font"],Z),ie=ne.getArray("BBox")||[0,0,1,1],ae=ne.getArray("Matrix")||[1,0,0,1,0,0],ue=m(te.rect,ie,ae),fe=new n.OperatorList;let me;return this.oc&&(me=await E.parseMarkedContentProps(this.oc,null)),me!==void 0&&fe.addOp(t.OPS.beginMarkedContentProps,["OC",me]),fe.addOp(t.OPS.beginAnnotation,[te.id,te.rect,ue,ae,ce]),await E.getOperatorList({stream:Z,task:M,resources:re,operatorList:fe,fallbackFontDict:this._fallbackFontDict}),fe.addOp(t.OPS.endAnnotation,[]),me!==void 0&&fe.addOp(t.OPS.endMarkedContent,[]),this.reset(),{opList:fe,separateForm:!1,separateCanvas:ce}}async save(E,M,_){return null}get hasTextContent(){return!1}async extractTextContent(E,M,_){if(!this.appearance)return;const J=await this.loadResources(["ExtGState","Font","Properties","XObject"],this.appearance),K=[],te=[],Z={desiredSize:Math.Infinity,ready:!0,enqueue(ce,ne){for(const re of ce.items)te.push(re.str),re.hasEOL&&(K.push(te.join("")),te.length=0)}};await E.getTextContent({stream:this.appearance,task:M,resources:J,includeMarkedContent:!0,combineTextItems:!0,sink:Z,viewBox:_}),this.reset(),te.length&&K.push(te.join("")),K.length>0&&(this.data.textContent=K)}getFieldObject(){return this.data.kidIds?{id:this.data.id,actions:this.data.actions,name:this.data.fieldName,strokeColor:this.data.borderColor,fillColor:this.data.backgroundColor,type:"",kidIds:this.data.kidIds,page:this.data.pageIndex,rotation:this.rotation}:null}reset(){for(const E of this._streams)E.reset()}_constructFieldName(E){if(!E.has("T")&&!E.has("Parent"))return(0,t.warn)("Unknown field name, falling back to empty field name."),"";if(!E.has("Parent"))return(0,t.stringToPDFString)(E.get("T"));const M=[];E.has("T")&&M.unshift((0,t.stringToPDFString)(E.get("T")));let _=E;const J=new P.RefSet;for(E.objId&&J.put(E.objId);_.has("Parent")&&(_=_.get("Parent"),!(!(_ instanceof P.Dict)||_.objId&&J.has(_.objId)));)if(_.objId&&J.put(_.objId),_.has("T")){const K=(0,t.stringToPDFString)(_.get("T"));K.startsWith("#")||M.unshift(K)}return M.join(".")}}l.Annotation=X;class f{constructor(){this.width=1,this.style=t.AnnotationBorderStyleType.SOLID,this.dashArray=[3],this.horizontalCornerRadius=0,this.verticalCornerRadius=0}setWidth(E){let M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[0,0,0,0];if(E instanceof P.Name){this.width=0;return}if(typeof E=="number"){if(E>0){const _=(M[2]-M[0])/2,J=(M[3]-M[1])/2;_>0&&J>0&&(E>_||E>J)&&((0,t.warn)(`AnnotationBorderStyle.setWidth - ignoring width: ${E}`),E=1)}this.width=E}}setStyle(E){if(E instanceof P.Name)switch(E.name){case"S":this.style=t.AnnotationBorderStyleType.SOLID;break;case"D":this.style=t.AnnotationBorderStyleType.DASHED;break;case"B":this.style=t.AnnotationBorderStyleType.BEVELED;break;case"I":this.style=t.AnnotationBorderStyleType.INSET;break;case"U":this.style=t.AnnotationBorderStyleType.UNDERLINE;break}}setDashArray(E){let M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Array.isArray(E)&&E.length>0){let _=!0,J=!0;for(const K of E)if(+K>=0)K>0&&(J=!1);else{_=!1;break}_&&!J?(this.dashArray=E,M&&this.setStyle(P.Name.get("D"))):this.width=0}else E&&(this.width=0)}setHorizontalCornerRadius(E){Number.isInteger(E)&&(this.horizontalCornerRadius=E)}setVerticalCornerRadius(E){Number.isInteger(E)&&(this.verticalCornerRadius=E)}}l.AnnotationBorderStyle=f;class F extends X{constructor(E){super(E);const{dict:M}=E;if(M.has("IRT")){const _=M.getRaw("IRT");this.data.inReplyTo=_ instanceof P.Ref?_.toString():null;const J=M.get("RT");this.data.replyType=J instanceof P.Name?J.name:t.AnnotationReplyType.REPLY}if(this.data.replyType===t.AnnotationReplyType.GROUP){const _=M.get("IRT");this.setTitle(_.get("T")),this.data.titleObj=this._title,this.setContents(_.get("Contents")),this.data.contentsObj=this._contents,_.has("CreationDate")?(this.setCreationDate(_.get("CreationDate")),this.data.creationDate=this.creationDate):this.data.creationDate=null,_.has("M")?(this.setModificationDate(_.get("M")),this.data.modificationDate=this.modificationDate):this.data.modificationDate=null,this.data.hasPopup=_.has("Popup"),_.has("C")?(this.setColor(_.getArray("C")),this.data.color=this.color):this.data.color=null}else this.data.titleObj=this._title,this.setCreationDate(M.get("CreationDate")),this.data.creationDate=this.creationDate,this.data.hasPopup=M.has("Popup"),M.has("C")||(this.data.color=null);M.has("RC")&&(this.data.richText=B.XFAFactory.getRichTextAsHtml(M.get("RC")))}setCreationDate(E){this.creationDate=typeof E=="string"?E:null}_setDefaultAppearance(E){let{xref:M,extra:_,strokeColor:J,fillColor:K,blendMode:te,strokeAlpha:Z,fillAlpha:ce,pointsCallback:ne}=E,re=Number.MAX_VALUE,ie=Number.MAX_VALUE,ae=Number.MIN_VALUE,ue=Number.MIN_VALUE;const fe=["q"];_&&fe.push(_),J&&fe.push(`${J[0]} ${J[1]} ${J[2]} RG`),K&&fe.push(`${K[0]} ${K[1]} ${K[2]} rg`);let me=this.data.quadPoints;me||(me=[[{x:this.rectangle[0],y:this.rectangle[3]},{x:this.rectangle[2],y:this.rectangle[3]},{x:this.rectangle[0],y:this.rectangle[1]},{x:this.rectangle[2],y:this.rectangle[1]}]]);for(const xe of me){const[Oe,je,it,ke]=ne(fe,xe);re=Math.min(re,Oe),ae=Math.max(ae,je),ie=Math.min(ie,it),ue=Math.max(ue,ke)}fe.push("Q");const Fe=new P.Dict(M),pe=new P.Dict(M);pe.set("Subtype",P.Name.get("Form"));const Ce=new I.StringStream(fe.join(" "));Ce.dict=pe,Fe.set("Fm0",Ce);const be=new P.Dict(M);te&&be.set("BM",P.Name.get(te)),typeof Z=="number"&&be.set("CA",Z),typeof ce=="number"&&be.set("ca",ce);const Ie=new P.Dict(M);Ie.set("GS0",be);const ye=new P.Dict(M);ye.set("ExtGState",Ie),ye.set("XObject",Fe);const de=new P.Dict(M);de.set("Resources",ye);const ge=this.data.rect=[re,ie,ae,ue];de.set("BBox",ge),this.appearance=new I.StringStream("/GS0 gs /Fm0 Do"),this.appearance.dict=de,this._streams.push(this.appearance,Ce)}static async createNewAnnotation(E,M,_,J){const K=E.getNewTemporaryRef(),te=await this.createNewAppearanceStream(M,E,J),Z=[];let ce;if(te){const re=E.getNewTemporaryRef();ce=this.createNewDict(M,E,{apRef:re});const ie=E.encrypt?E.encrypt.createCipherTransform(re.num,re.gen):null;(0,e.writeObject)(re,te,Z,ie),_.push({ref:re,data:Z.join("")})}else ce=this.createNewDict(M,E,{});Z.length=0;const ne=E.encrypt?E.encrypt.createCipherTransform(K.num,K.gen):null;return(0,e.writeObject)(K,ce,Z,ne),{ref:K,data:Z.join("")}}static async createNewPrintAnnotation(E,M,_){const J=await this.createNewAppearanceStream(M,E,_),K=this.createNewDict(M,E,{ap:J});return new this.prototype.constructor({dict:K,xref:E,isOffscreenCanvasSupported:_.isOffscreenCanvasSupported})}}l.MarkupAnnotation=F;class s extends X{constructor(E){super(E);const{dict:M,xref:_}=E,J=this.data;this.ref=E.ref,this._needAppearances=E.needAppearances,J.annotationType=t.AnnotationType.WIDGET,J.fieldName===void 0&&(J.fieldName=this._constructFieldName(M)),J.actions===void 0&&(J.actions=(0,i.collectActions)(_,M,t.AnnotationActionEventType));let K=(0,i.getInheritableProperty)({dict:M,key:"V",getArray:!0});J.fieldValue=this._decodeFormValue(K);const te=(0,i.getInheritableProperty)({dict:M,key:"DV",getArray:!0});if(J.defaultFieldValue=this._decodeFormValue(te),K===void 0&&E.xfaDatasets){const ie=this._title.str;ie&&(this._hasValueFromXFA=!0,J.fieldValue=K=E.xfaDatasets.getValue(ie))}K===void 0&&J.defaultFieldValue!==null&&(J.fieldValue=J.defaultFieldValue),J.alternativeText=(0,t.stringToPDFString)(M.get("TU")||""),this.setDefaultAppearance(E),J.hasAppearance=this._needAppearances&&J.fieldValue!==void 0&&J.fieldValue!==null||J.hasAppearance;const Z=(0,i.getInheritableProperty)({dict:M,key:"FT"});J.fieldType=Z instanceof P.Name?Z.name:null;const ce=(0,i.getInheritableProperty)({dict:M,key:"DR"}),ne=E.acroForm.get("DR"),re=this.appearance&&this.appearance.dict.get("Resources");this._fieldResources={localResources:ce,acroFormResources:ne,appearanceResources:re,mergedResources:P.Dict.merge({xref:_,dictArray:[ce,re,ne],mergeSubDicts:!0})},J.fieldFlags=(0,i.getInheritableProperty)({dict:M,key:"Ff"}),(!Number.isInteger(J.fieldFlags)||J.fieldFlags<0)&&(J.fieldFlags=0),J.readOnly=this.hasFieldFlag(t.AnnotationFieldFlag.READONLY),J.required=this.hasFieldFlag(t.AnnotationFieldFlag.REQUIRED),J.hidden=this._hasFlag(J.annotationFlags,t.AnnotationFlag.HIDDEN)}_decodeFormValue(E){return Array.isArray(E)?E.filter(M=>typeof M=="string").map(M=>(0,t.stringToPDFString)(M)):E instanceof P.Name?(0,t.stringToPDFString)(E.name):typeof E=="string"?(0,t.stringToPDFString)(E):null}hasFieldFlag(E){return!!(this.data.fieldFlags&E)}getRotationMatrix(E){const M=E?E.get(this.data.id):void 0;let _=M&&M.rotation;if(_===void 0&&(_=this.rotation),_===0)return t.IDENTITY_MATRIX;const J=this.data.rect[2]-this.data.rect[0],K=this.data.rect[3]-this.data.rect[1];return(0,i.getRotationMatrix)(_,J,K)}getBorderAndBackgroundAppearances(E){const M=E?E.get(this.data.id):void 0;let _=M&&M.rotation;if(_===void 0&&(_=this.rotation),!this.backgroundColor&&!this.borderColor)return"";const J=this.data.rect[2]-this.data.rect[0],K=this.data.rect[3]-this.data.rect[1],te=_===0||_===180?`0 0 ${J} ${K} re`:`0 0 ${K} ${J} re`;let Z="";if(this.backgroundColor&&(Z=`${(0,O.getPdfColor)(this.backgroundColor,!0)} ${te} f `),this.borderColor){const ce=this.borderStyle.width||1;Z+=`${ce} w ${(0,O.getPdfColor)(this.borderColor,!1)} ${te} S `}return Z}async getOperatorList(E,M,_,J,K){if(J&&!(this instanceof o))return{opList:new n.OperatorList,separateForm:!0,separateCanvas:!1};if(!this._hasText)return super.getOperatorList(E,M,_,J,K);const te=await this._getAppearance(E,M,_,K);if(this.appearance&&te===null)return super.getOperatorList(E,M,_,J,K);const Z=new n.OperatorList;if(!this._defaultAppearance||te===null)return{opList:Z,separateForm:!1,separateCanvas:!1};const ce=[1,0,0,1,0,0],ne=[0,0,this.data.rect[2]-this.data.rect[0],this.data.rect[3]-this.data.rect[1]],re=m(this.data.rect,ne,ce);let ie;this.oc&&(ie=await E.parseMarkedContentProps(this.oc,null)),ie!==void 0&&Z.addOp(t.OPS.beginMarkedContentProps,["OC",ie]),Z.addOp(t.OPS.beginAnnotation,[this.data.id,this.data.rect,re,this.getRotationMatrix(K),!1]);const ae=new I.StringStream(te);return await E.getOperatorList({stream:ae,task:M,resources:this._fieldResources.mergedResources,operatorList:Z}),Z.addOp(t.OPS.endAnnotation,[]),ie!==void 0&&Z.addOp(t.OPS.endMarkedContent,[]),{opList:Z,separateForm:!1,separateCanvas:!1}}_getMKDict(E){const M=new P.Dict(null);return E&&M.set("R",E),this.borderColor&&M.set("BC",C(this.borderColor)),this.backgroundColor&&M.set("BG",C(this.backgroundColor)),M.size>0?M:null}amendSavedDict(E,M){}async save(E,M,_){const J=_?_.get(this.data.id):void 0;let K=J&&J.value,te=J&&J.rotation;if(K===this.data.fieldValue||K===void 0){if(!this._hasValueFromXFA&&te===void 0)return null;K=K||this.data.fieldValue}if(te===void 0&&!this._hasValueFromXFA&&Array.isArray(K)&&Array.isArray(this.data.fieldValue)&&K.length===this.data.fieldValue.length&&K.every((be,Ie)=>be===this.data.fieldValue[Ie]))return null;te===void 0&&(te=this.rotation);let Z=null;if(!this._needAppearances&&(Z=await this._getAppearance(E,M,t.RenderingIntentFlag.SAVE,_),Z===null))return null;let ce=!1;Z&&Z.needAppearances&&(ce=!0,Z=null);const{xref:ne}=E,re=ne.fetchIfRef(this.ref);if(!(re instanceof P.Dict))return null;const ie=new P.Dict(ne);for(const be of re.getKeys())be!=="AP"&&ie.set(be,re.getRaw(be));const ae={path:this.data.fieldName,value:K},ue=be=>(0,i.isAscii)(be)?be:(0,i.stringToUTF16String)(be,!0);ie.set("V",Array.isArray(K)?K.map(ue):ue(K)),this.amendSavedDict(_,ie);const fe=this._getMKDict(te);fe&&ie.set("MK",fe);const me=ne.encrypt,Fe=me?me.createCipherTransform(this.ref.num,this.ref.gen):null,pe=[],Ce=[{ref:this.ref,data:"",xfa:ae,needAppearances:ce}];if(Z!==null){const be=ne.getNewTemporaryRef(),Ie=new P.Dict(ne);ie.set("AP",Ie),Ie.set("N",be);let ye=null;me&&(ye=me.createCipherTransform(be.num,be.gen));const de=this._getSaveFieldResources(ne),ge=new I.StringStream(Z),xe=ge.dict=new P.Dict(ne);xe.set("Subtype",P.Name.get("Form")),xe.set("Resources",de),xe.set("BBox",[0,0,this.data.rect[2]-this.data.rect[0],this.data.rect[3]-this.data.rect[1]]);const Oe=this.getRotationMatrix(_);Oe!==t.IDENTITY_MATRIX&&xe.set("Matrix",Oe),(0,e.writeObject)(be,ge,pe,ye),Ce.push({ref:be,data:pe.join(""),xfa:null,needAppearances:!1}),pe.length=0}return ie.set("M",`D:${(0,t.getModificationDate)()}`),(0,e.writeObject)(this.ref,ie,pe,Fe),Ce[0].data=pe.join(""),Ce}async _getAppearance(E,M,_,J){if(this.hasFieldFlag(t.AnnotationFieldFlag.PASSWORD))return null;const te=J?J.get(this.data.id):void 0;let Z,ce;if(te&&(Z=te.formattedValue||te.value,ce=te.rotation),ce===void 0&&Z===void 0&&!this._needAppearances&&(!this._hasValueFromXFA||this.appearance))return null;const ne=this.getBorderAndBackgroundAppearances(J);if(Z===void 0&&(Z=this.data.fieldValue,!Z))return`/Tx BMC q ${ne}Q EMC`;if(Array.isArray(Z)&&Z.length===1&&(Z=Z[0]),(0,t.assert)(typeof Z=="string","Expected `value` to be a string."),Z=Z.trim(),this.data.combo){const ke=this.data.options.find($e=>{let{exportValue:Ge}=$e;return Z===Ge});Z=ke&&ke.displayValue||Z}if(Z==="")return`/Tx BMC q ${ne}Q EMC`;ce===void 0&&(ce=this.rotation);let re=-1,ie;this.data.multiLine?(ie=Z.split(/\r\n?|\n/).map(ke=>ke.normalize("NFC")),re=ie.length):ie=[Z.replace(/\r\n?|\n/,"").normalize("NFC")];const ae=1,ue=2;let fe=this.data.rect[3]-this.data.rect[1],me=this.data.rect[2]-this.data.rect[0];(ce===90||ce===270)&&([me,fe]=[fe,me]),this._defaultAppearance||(this.data.defaultAppearanceData=(0,O.parseDefaultAppearance)(this._defaultAppearance="/Helvetica 0 Tf 0 g"));let Fe=await s._getFontData(E,M,this.data.defaultAppearanceData,this._fieldResources.mergedResources),pe,Ce,be;const Ie=[];let ye=!1;for(const ke of ie){const $e=Fe.encodeString(ke);$e.length>1&&(ye=!0),Ie.push($e.join(""))}if(ye&&_&t.RenderingIntentFlag.SAVE)return{needAppearances:!0};if(ye&&this._isOffscreenCanvasSupported){const ke=this.data.comb?"monospace":"sans-serif",$e=new O.FakeUnicodeFont(E.xref,ke),Ge=$e.createFontResources(ie.join("")),Qe=Ge.getRaw("Font");if(this._fieldResources.mergedResources.has("Font")){const Me=this._fieldResources.mergedResources.get("Font");for(const nt of Qe.getKeys())Me.set(nt,Qe.getRaw(nt))}else this._fieldResources.mergedResources.set("Font",Qe);const ve=$e.fontName.name;Fe=await s._getFontData(E,M,{fontName:ve,fontSize:0},Ge);for(let Me=0,nt=Ie.length;Me<nt;Me++)Ie[Me]=(0,i.stringToUTF16String)(ie[Me]);const Ne=Object.assign(Object.create(null),this.data.defaultAppearanceData);this.data.defaultAppearanceData.fontSize=0,this.data.defaultAppearanceData.fontName=ve,[pe,Ce,be]=this._computeFontSize(fe-2*ae,me-2*ue,Z,Fe,re),this.data.defaultAppearanceData=Ne}else this._isOffscreenCanvasSupported||(0,t.warn)("_getAppearance: OffscreenCanvas is not supported, annotation may not render correctly."),[pe,Ce,be]=this._computeFontSize(fe-2*ae,me-2*ue,Z,Fe,re);let de=Fe.descent;isNaN(de)?de=t.BASELINE_FACTOR*be:de=Math.max(t.BASELINE_FACTOR*be,Math.abs(de)*Ce);const ge=Math.min(Math.floor((fe-Ce)/2),ae),xe=this.data.textAlignment;if(this.data.multiLine)return this._getMultilineAppearance(pe,Ie,Fe,Ce,me,fe,xe,ue,ge,de,be,J);if(this.data.comb)return this._getCombAppearance(pe,Fe,Ie[0],Ce,me,fe,ue,ge,de,be,J);const Oe=ge+de;if(xe===0||xe>2)return`/Tx BMC q ${ne}BT `+pe+` 1 0 0 1 ${(0,i.numberToString)(ue)} ${(0,i.numberToString)(Oe)} Tm (${(0,i.escapeString)(Ie[0])}) Tj ET Q EMC`;const je={shift:0},it=this._renderText(Ie[0],Fe,Ce,me,xe,je,ue,Oe);return`/Tx BMC q ${ne}BT `+pe+` 1 0 0 1 0 0 Tm ${it} ET Q EMC`}static async _getFontData(E,M,_,J){const K=new n.OperatorList,te={font:null,clone(){return this}},{fontName:Z,fontSize:ce}=_;return await E.handleSetFont(J,[Z&&P.Name.get(Z),ce],null,K,M,te,null),te.font}_getTextWidth(E,M){return M.charsToGlyphs(E).reduce((_,J)=>_+J.width,0)/1e3}_computeFontSize(E,M,_,J,K){let{fontSize:te}=this.data.defaultAppearanceData,Z=(te||12)*t.LINE_FACTOR,ce=Math.round(E/Z);if(!te){const ne=ae=>Math.floor(ae*100)/100;if(K===-1){const ae=this._getTextWidth(_,J);te=ne(Math.min(E/t.LINE_FACTOR,ae>M?M/ae:1/0)),ce=1}else{const ae=_.split(/\r\n?|\n/),ue=[];for(const me of ae){const Fe=J.encodeString(me).join(""),pe=J.charsToGlyphs(Fe),Ce=J.getCharPositions(Fe);ue.push({line:Fe,glyphs:pe,positions:Ce})}const fe=me=>{let Fe=0;for(const pe of ue){const Ce=this._splitLine(null,J,me,M,pe);if(Fe+=Ce.length*me,Fe>E)return!0}return!1};for(ce=Math.max(ce,K);;){if(Z=E/ce,te=ne(Z/t.LINE_FACTOR),fe(te)){ce++;continue}break}}const{fontName:re,fontColor:ie}=this.data.defaultAppearanceData;this._defaultAppearance=(0,O.createDefaultAppearance)({fontSize:te,fontName:re,fontColor:ie})}return[this._defaultAppearance,te,E/ce]}_renderText(E,M,_,J,K,te,Z,ce){let ne;if(K===1){const ie=this._getTextWidth(E,M)*_;ne=(J-ie)/2}else if(K===2){const ie=this._getTextWidth(E,M)*_;ne=J-ie-Z}else ne=Z;const re=(0,i.numberToString)(ne-te.shift);return te.shift=ne,ce=(0,i.numberToString)(ce),`${re} ${ce} Td (${(0,i.escapeString)(E)}) Tj`}_getSaveFieldResources(E){const{localResources:M,appearanceResources:_,acroFormResources:J}=this._fieldResources,K=this.data.defaultAppearanceData&&this.data.defaultAppearanceData.fontName;if(!K)return M||P.Dict.empty;for(const te of[M,_])if(te instanceof P.Dict){const Z=te.get("Font");if(Z instanceof P.Dict&&Z.has(K))return te}if(J instanceof P.Dict){const te=J.get("Font");if(te instanceof P.Dict&&te.has(K)){const Z=new P.Dict(E);Z.set(K,te.getRaw(K));const ce=new P.Dict(E);return ce.set("Font",Z),P.Dict.merge({xref:E,dictArray:[ce,M],mergeSubDicts:!0})}}return M||P.Dict.empty}getFieldObject(){return null}}class d extends s{constructor(E){super(E),this._hasText=!0;const M=E.dict;typeof this.data.fieldValue!="string"&&(this.data.fieldValue="");let _=(0,i.getInheritableProperty)({dict:M,key:"Q"});(!Number.isInteger(_)||_<0||_>2)&&(_=null),this.data.textAlignment=_;let J=(0,i.getInheritableProperty)({dict:M,key:"MaxLen"});(!Number.isInteger(J)||J<0)&&(J=0),this.data.maxLen=J,this.data.multiLine=this.hasFieldFlag(t.AnnotationFieldFlag.MULTILINE),this.data.comb=this.hasFieldFlag(t.AnnotationFieldFlag.COMB)&&!this.hasFieldFlag(t.AnnotationFieldFlag.MULTILINE)&&!this.hasFieldFlag(t.AnnotationFieldFlag.PASSWORD)&&!this.hasFieldFlag(t.AnnotationFieldFlag.FILESELECT)&&this.data.maxLen!==0,this.data.doNotScroll=this.hasFieldFlag(t.AnnotationFieldFlag.DONOTSCROLL)}_getCombAppearance(E,M,_,J,K,te,Z,ce,ne,re,ie){const ae=K/this.data.maxLen,ue=this.getBorderAndBackgroundAppearances(ie),fe=[],me=M.getCharPositions(_);for(const[pe,Ce]of me)fe.push(`(${(0,i.escapeString)(_.substring(pe,Ce))}) Tj`);const Fe=fe.join(` ${(0,i.numberToString)(ae)} 0 Td `);return`/Tx BMC q ${ue}BT `+E+` 1 0 0 1 ${(0,i.numberToString)(Z)} ${(0,i.numberToString)(ce+ne)} Tm ${Fe} ET Q EMC`}_getMultilineAppearance(E,M,_,J,K,te,Z,ce,ne,re,ie,ae){const ue=[],fe=K-2*ce,me={shift:0};for(let Ce=0,be=M.length;Ce<be;Ce++){const Ie=M[Ce],ye=this._splitLine(Ie,_,J,fe);for(let de=0,ge=ye.length;de<ge;de++){const xe=ye[de],Oe=Ce===0&&de===0?-ne-(ie-re):-ie;ue.push(this._renderText(xe,_,J,K,Z,me,ce,Oe))}}const Fe=this.getBorderAndBackgroundAppearances(ae),pe=ue.join(`
`);return`/Tx BMC q ${Fe}BT `+E+` 1 0 0 1 0 ${(0,i.numberToString)(te)} Tm ${pe} ET Q EMC`}_splitLine(E,M,_,J){let K=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{};E=K.line||E;const te=K.glyphs||M.charsToGlyphs(E);if(te.length<=1)return[E];const Z=K.positions||M.getCharPositions(E),ce=_/1e3,ne=[];let re=-1,ie=-1,ae=-1,ue=0,fe=0;for(let me=0,Fe=te.length;me<Fe;me++){const[pe,Ce]=Z[me],be=te[me],Ie=be.width*ce;be.unicode===" "?fe+Ie>J?(ne.push(E.substring(ue,pe)),ue=pe,fe=Ie,re=-1,ae=-1):(fe+=Ie,re=pe,ie=Ce,ae=me):fe+Ie>J?re!==-1?(ne.push(E.substring(ue,ie)),ue=ie,me=ae+1,re=-1,fe=0):(ne.push(E.substring(ue,pe)),ue=pe,fe=Ie):fe+=Ie}return ue<E.length&&ne.push(E.substring(ue,E.length)),ne}getFieldObject(){return{id:this.data.id,value:this.data.fieldValue,defaultValue:this.data.defaultFieldValue||"",multiline:this.data.multiLine,password:this.hasFieldFlag(t.AnnotationFieldFlag.PASSWORD),charLimit:this.data.maxLen,comb:this.data.comb,editable:!this.data.readOnly,hidden:this.data.hidden,name:this.data.fieldName,rect:this.data.rect,actions:this.data.actions,page:this.data.pageIndex,strokeColor:this.data.borderColor,fillColor:this.data.backgroundColor,rotation:this.rotation,type:"text"}}}class S extends s{constructor(E){super(E),this.checkedAppearance=null,this.uncheckedAppearance=null,this.data.checkBox=!this.hasFieldFlag(t.AnnotationFieldFlag.RADIO)&&!this.hasFieldFlag(t.AnnotationFieldFlag.PUSHBUTTON),this.data.radioButton=this.hasFieldFlag(t.AnnotationFieldFlag.RADIO)&&!this.hasFieldFlag(t.AnnotationFieldFlag.PUSHBUTTON),this.data.pushButton=this.hasFieldFlag(t.AnnotationFieldFlag.PUSHBUTTON),this.data.isTooltipOnly=!1,this.data.checkBox?this._processCheckBox(E):this.data.radioButton?this._processRadioButton(E):this.data.pushButton?(this.data.hasOwnCanvas=!0,this._processPushButton(E)):(0,t.warn)("Invalid field flags for button widget annotation")}async getOperatorList(E,M,_,J,K){if(this.data.pushButton)return super.getOperatorList(E,M,_,!1,K);let te=null,Z=null;if(K){const ne=K.get(this.data.id);te=ne?ne.value:null,Z=ne?ne.rotation:null}if(te===null&&this.appearance)return super.getOperatorList(E,M,_,J,K);te==null&&(this.data.checkBox?te=this.data.fieldValue===this.data.exportValue:te=this.data.fieldValue===this.data.buttonValue);const ce=te?this.checkedAppearance:this.uncheckedAppearance;if(ce){const ne=this.appearance,re=ce.dict.getArray("Matrix")||t.IDENTITY_MATRIX;Z&&ce.dict.set("Matrix",this.getRotationMatrix(K)),this.appearance=ce;const ie=super.getOperatorList(E,M,_,J,K);return this.appearance=ne,ce.dict.set("Matrix",re),ie}return{opList:new n.OperatorList,separateForm:!1,separateCanvas:!1}}async save(E,M,_){return this.data.checkBox?this._saveCheckbox(E,M,_):this.data.radioButton?this._saveRadioButton(E,M,_):null}async _saveCheckbox(E,M,_){if(!_)return null;const J=_.get(this.data.id);let K=J&&J.rotation,te=J&&J.value;if(K===void 0&&(te===void 0||this.data.fieldValue===this.data.exportValue===te))return null;const Z=E.xref.fetchIfRef(this.ref);if(!(Z instanceof P.Dict))return null;K===void 0&&(K=this.rotation),te===void 0&&(te=this.data.fieldValue===this.data.exportValue);const ce={path:this.data.fieldName,value:te?this.data.exportValue:""},ne=P.Name.get(te?this.data.exportValue:"Off");Z.set("V",ne),Z.set("AS",ne),Z.set("M",`D:${(0,t.getModificationDate)()}`);const re=this._getMKDict(K);re&&Z.set("MK",re);const ie=E.xref.encrypt;let ae=null;ie&&(ae=ie.createCipherTransform(this.ref.num,this.ref.gen));const ue=[`${this.ref.num} ${this.ref.gen} obj
`];return(0,e.writeDict)(Z,ue,ae),ue.push(`
endobj
`),[{ref:this.ref,data:ue.join(""),xfa:ce}]}async _saveRadioButton(E,M,_){if(!_)return null;const J=_.get(this.data.id);let K=J&&J.rotation,te=J&&J.value;if(K===void 0&&(te===void 0||this.data.fieldValue===this.data.buttonValue===te))return null;const Z=E.xref.fetchIfRef(this.ref);if(!(Z instanceof P.Dict))return null;te===void 0&&(te=this.data.fieldValue===this.data.buttonValue),K===void 0&&(K=this.rotation);const ce={path:this.data.fieldName,value:te?this.data.buttonValue:""},ne=P.Name.get(te?this.data.buttonValue:"Off");let re=null;const ie=E.xref.encrypt;if(te)if(this.parent instanceof P.Ref){const Fe=E.xref.fetch(this.parent);let pe=null;ie&&(pe=ie.createCipherTransform(this.parent.num,this.parent.gen)),Fe.set("V",ne),re=[`${this.parent.num} ${this.parent.gen} obj
`],(0,e.writeDict)(Fe,re,pe),re.push(`
endobj
`)}else this.parent instanceof P.Dict&&this.parent.set("V",ne);Z.set("AS",ne),Z.set("M",`D:${(0,t.getModificationDate)()}`);const ae=this._getMKDict(K);ae&&Z.set("MK",ae);let ue=null;ie&&(ue=ie.createCipherTransform(this.ref.num,this.ref.gen));const fe=[`${this.ref.num} ${this.ref.gen} obj
`];(0,e.writeDict)(Z,fe,ue),fe.push(`
endobj
`);const me=[{ref:this.ref,data:fe.join(""),xfa:ce}];return re!==null&&me.push({ref:this.parent,data:re.join(""),xfa:null}),me}_getDefaultCheckedAppearance(E,M){const _=this.data.rect[2]-this.data.rect[0],J=this.data.rect[3]-this.data.rect[1],K=[0,0,_,J],te=.8,Z=Math.min(_,J)*te;let ce,ne;M==="check"?(ce={width:.755*Z,height:.705*Z},ne="3"):M==="disc"?(ce={width:.791*Z,height:.705*Z},ne="l"):(0,t.unreachable)(`_getDefaultCheckedAppearance - unsupported type: ${M}`);const re=(0,i.numberToString)((_-ce.width)/2),ie=(0,i.numberToString)((J-ce.height)/2),ae=`q BT /PdfJsZaDb ${Z} Tf 0 g ${re} ${ie} Td (${ne}) Tj ET Q`,ue=new P.Dict(E.xref);ue.set("FormType",1),ue.set("Subtype",P.Name.get("Form")),ue.set("Type",P.Name.get("XObject")),ue.set("BBox",K),ue.set("Matrix",[1,0,0,1,0,0]),ue.set("Length",ae.length);const fe=new P.Dict(E.xref),me=new P.Dict(E.xref);me.set("PdfJsZaDb",this.fallbackFontDict),fe.set("Font",me),ue.set("Resources",fe),this.checkedAppearance=new I.StringStream(ae),this.checkedAppearance.dict=ue,this._streams.push(this.checkedAppearance)}_processCheckBox(E){const M=E.dict.get("AP");if(!(M instanceof P.Dict))return;const _=M.get("N");if(!(_ instanceof P.Dict))return;const J=this._decodeFormValue(E.dict.get("AS"));typeof J=="string"&&(this.data.fieldValue=J);const K=this.data.fieldValue!==null&&this.data.fieldValue!=="Off"?this.data.fieldValue:"Yes",te=_.getKeys();if(te.length===0)te.push("Off",K);else if(te.length===1)te[0]==="Off"?te.push(K):te.unshift("Off");else if(te.includes(K))te.length=0,te.push("Off",K);else{const ne=te.find(re=>re!=="Off");te.length=0,te.push("Off",ne)}te.includes(this.data.fieldValue)||(this.data.fieldValue="Off"),this.data.exportValue=te[1];const Z=_.get(this.data.exportValue);this.checkedAppearance=Z instanceof N.BaseStream?Z:null;const ce=_.get("Off");this.uncheckedAppearance=ce instanceof N.BaseStream?ce:null,this.checkedAppearance?this._streams.push(this.checkedAppearance):this._getDefaultCheckedAppearance(E,"check"),this.uncheckedAppearance&&this._streams.push(this.uncheckedAppearance),this._fallbackFontDict=this.fallbackFontDict}_processRadioButton(E){this.data.fieldValue=this.data.buttonValue=null;const M=E.dict.get("Parent");if(M instanceof P.Dict){this.parent=E.dict.getRaw("Parent");const Z=M.get("V");Z instanceof P.Name&&(this.data.fieldValue=this._decodeFormValue(Z))}const _=E.dict.get("AP");if(!(_ instanceof P.Dict))return;const J=_.get("N");if(!(J instanceof P.Dict))return;for(const Z of J.getKeys())if(Z!=="Off"){this.data.buttonValue=this._decodeFormValue(Z);break}const K=J.get(this.data.buttonValue);this.checkedAppearance=K instanceof N.BaseStream?K:null;const te=J.get("Off");this.uncheckedAppearance=te instanceof N.BaseStream?te:null,this.checkedAppearance?this._streams.push(this.checkedAppearance):this._getDefaultCheckedAppearance(E,"disc"),this.uncheckedAppearance&&this._streams.push(this.uncheckedAppearance),this._fallbackFontDict=this.fallbackFontDict}_processPushButton(E){if(!E.dict.has("A")&&!E.dict.has("AA")&&!this.data.alternativeText){(0,t.warn)("Push buttons without action dictionaries are not supported");return}this.data.isTooltipOnly=!E.dict.has("A")&&!E.dict.has("AA"),L.Catalog.parseDestDictionary({destDict:E.dict,resultObj:this.data,docBaseUrl:E.pdfManager.docBaseUrl,docAttachments:E.attachments})}getFieldObject(){let E="button",M;return this.data.checkBox?(E="checkbox",M=this.data.exportValue):this.data.radioButton&&(E="radiobutton",M=this.data.buttonValue),{id:this.data.id,value:this.data.fieldValue||"Off",defaultValue:this.data.defaultFieldValue,exportValues:M,editable:!this.data.readOnly,name:this.data.fieldName,rect:this.data.rect,hidden:this.data.hidden,actions:this.data.actions,page:this.data.pageIndex,strokeColor:this.data.borderColor,fillColor:this.data.backgroundColor,rotation:this.rotation,type:E}}get fallbackFontDict(){const E=new P.Dict;return E.set("BaseFont",P.Name.get("ZapfDingbats")),E.set("Type",P.Name.get("FallbackType")),E.set("Subtype",P.Name.get("FallbackType")),E.set("Encoding",P.Name.get("ZapfDingbatsEncoding")),(0,t.shadow)(this,"fallbackFontDict",E)}}class r extends s{constructor(E){super(E);const{dict:M,xref:_}=E;this.indices=M.getArray("I"),this.hasIndices=Array.isArray(this.indices)&&this.indices.length>0,this.data.options=[];const J=(0,i.getInheritableProperty)({dict:M,key:"Opt"});if(Array.isArray(J))for(let K=0,te=J.length;K<te;K++){const Z=_.fetchIfRef(J[K]),ce=Array.isArray(Z);this.data.options[K]={exportValue:this._decodeFormValue(ce?_.fetchIfRef(Z[0]):Z),displayValue:this._decodeFormValue(ce?_.fetchIfRef(Z[1]):Z)}}if(!this.hasIndices)typeof this.data.fieldValue=="string"?this.data.fieldValue=[this.data.fieldValue]:this.data.fieldValue||(this.data.fieldValue=[]);else{this.data.fieldValue=[];const K=this.data.options.length;for(const te of this.indices)Number.isInteger(te)&&te>=0&&te<K&&this.data.fieldValue.push(this.data.options[te].exportValue)}this.data.combo=this.hasFieldFlag(t.AnnotationFieldFlag.COMBO),this.data.multiSelect=this.hasFieldFlag(t.AnnotationFieldFlag.MULTISELECT),this._hasText=!0}getFieldObject(){const E=this.data.combo?"combobox":"listbox",M=this.data.fieldValue.length>0?this.data.fieldValue[0]:null;return{id:this.data.id,value:M,defaultValue:this.data.defaultFieldValue,editable:!this.data.readOnly,name:this.data.fieldName,rect:this.data.rect,numItems:this.data.fieldValue.length,multipleSelection:this.data.multiSelect,hidden:this.data.hidden,actions:this.data.actions,items:this.data.options,page:this.data.pageIndex,strokeColor:this.data.borderColor,fillColor:this.data.backgroundColor,rotation:this.rotation,type:E}}amendSavedDict(E,M){if(!this.hasIndices)return;const _=E?E.get(this.data.id):void 0;let J=_&&_.value;Array.isArray(J)||(J=[J]);const K=[],{options:te}=this.data;for(let Z=0,ce=0,ne=te.length;Z<ne;Z++)te[Z].exportValue===J[ce]&&(K.push(Z),ce+=1);M.set("I",K)}async _getAppearance(E,M,_,J){if(this.data.combo)return super._getAppearance(E,M,_,J);let K,te;const Z=J?J.get(this.data.id):void 0;if(Z&&(te=Z.rotation,K=Z.value),te===void 0&&K===void 0&&!this._needAppearances)return null;K===void 0?K=this.data.fieldValue:Array.isArray(K)||(K=[K]);const ce=1,ne=2;let re=this.data.rect[3]-this.data.rect[1],ie=this.data.rect[2]-this.data.rect[0];(te===90||te===270)&&([ie,re]=[re,ie]);const ae=this.data.options.length,ue=[];for(let xe=0;xe<ae;xe++){const{exportValue:Oe}=this.data.options[xe];K.includes(Oe)&&ue.push(xe)}this._defaultAppearance||(this.data.defaultAppearanceData=(0,O.parseDefaultAppearance)(this._defaultAppearance="/Helvetica 0 Tf 0 g"));const fe=await s._getFontData(E,M,this.data.defaultAppearanceData,this._fieldResources.mergedResources);let me,{fontSize:Fe}=this.data.defaultAppearanceData;if(Fe)me=this._defaultAppearance;else{const xe=(re-ce)/ae;let Oe=-1,je;for(const{displayValue:it}of this.data.options){const ke=this._getTextWidth(it,fe);ke>Oe&&(Oe=ke,je=it)}[me,Fe]=this._computeFontSize(xe,ie-2*ne,je,fe,-1)}const pe=Fe*t.LINE_FACTOR,Ce=(pe-Fe)/2,be=Math.floor(re/pe);let Ie;if(ue.length===1){const xe=ue[0],Oe=xe%be;Ie=xe-Oe}else Ie=ue.length?ue[0]:0;const ye=Math.min(Ie+be+1,ae),de=["/Tx BMC q",`1 1 ${ie} ${re} re W n`];if(ue.length){de.push("0.600006 0.756866 0.854904 rg");for(const xe of ue)Ie<=xe&&xe<ye&&de.push(`1 ${re-(xe-Ie+1)*pe} ${ie} ${pe} re f`)}de.push("BT",me,`1 0 0 1 0 ${re} Tm`);const ge={shift:0};for(let xe=Ie;xe<ye;xe++){const{displayValue:Oe}=this.data.options[xe],je=xe===Ie?Ce:0;de.push(this._renderText(Oe,fe,Fe,ie,0,ge,ne,-pe+je))}return de.push("ET Q EMC"),de.join(`
`)}}class o extends s{constructor(E){super(E),this.data.fieldValue=null}getFieldObject(){return{id:this.data.id,value:null,page:this.data.pageIndex,type:"signature"}}}class A extends F{constructor(E){super(E);const{dict:_}=E;this.data.annotationType=t.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=_.has("Name")?_.get("Name").name:"Note"),_.has("State")?(this.data.state=_.get("State")||null,this.data.stateModel=_.get("StateModel")||null):(this.data.state=null,this.data.stateModel=null)}}class p extends X{constructor(E){super(E),this.data.annotationType=t.AnnotationType.LINK;const M=u(E.dict,this.rectangle);M&&(this.data.quadPoints=M),this.data.borderColor=this.data.borderColor||this.data.color,L.Catalog.parseDestDictionary({destDict:E.dict,resultObj:this.data,docBaseUrl:E.pdfManager.docBaseUrl,docAttachments:E.attachments})}}class v extends X{constructor(E){super(E);const{dict:M}=E;this.data.annotationType=t.AnnotationType.POPUP;let _=M.get("Parent");if(!_){(0,t.warn)("Popup annotation has a missing or invalid parent annotation.");return}const J=_.get("Subtype");this.data.parentType=J instanceof P.Name?J.name:null;const K=M.getRaw("Parent");this.data.parentId=K instanceof P.Ref?K.toString():null;const te=_.getArray("Rect");Array.isArray(te)&&te.length===4?this.data.parentRect=t.Util.normalizeRect(te):this.data.parentRect=[0,0,0,0];const Z=_.get("RT");if((0,P.isName)(Z,t.AnnotationReplyType.GROUP)&&(_=_.get("IRT")),_.has("M")?(this.setModificationDate(_.get("M")),this.data.modificationDate=this.modificationDate):this.data.modificationDate=null,_.has("C")?(this.setColor(_.getArray("C")),this.data.color=this.color):this.data.color=null,!this.viewable){const ce=_.get("F");this._isViewable(ce)&&this.setFlags(ce)}this.setTitle(_.get("T")),this.data.titleObj=this._title,this.setContents(_.get("Contents")),this.data.contentsObj=this._contents,_.has("RC")&&(this.data.richText=B.XFAFactory.getRichTextAsHtml(_.get("RC")))}}l.PopupAnnotation=v;class R extends F{constructor(E){super(E);const{xref:M}=E;if(this.data.annotationType=t.AnnotationType.FREETEXT,this.setDefaultAppearance(E),!this.appearance&&this._isOffscreenCanvasSupported){const _=E.dict.get("CA"),J=new O.FakeUnicodeFont(M,"sans-serif"),K=this.data.defaultAppearanceData;this.appearance=J.createAppearance(this._contents.str,this.rectangle,this.rotation,K.fontSize||10,K.fontColor,_),this._streams.push(this.appearance,O.FakeUnicodeFont.toUnicodeStream)}else this._isOffscreenCanvasSupported||(0,t.warn)("FreeTextAnnotation: OffscreenCanvas is not supported, annotation may not render correctly.")}get hasTextContent(){return!!this.appearance}static createNewDict(E,M,_){let{apRef:J,ap:K}=_;const{color:te,fontSize:Z,rect:ce,rotation:ne,user:re,value:ie}=E,ae=new P.Dict(M);ae.set("Type",P.Name.get("Annot")),ae.set("Subtype",P.Name.get("FreeText")),ae.set("CreationDate",`D:${(0,t.getModificationDate)()}`),ae.set("Rect",ce);const ue=`/Helv ${Z} Tf ${(0,O.getPdfColor)(te,!0)}`;if(ae.set("DA",ue),ae.set("Contents",(0,i.isAscii)(ie)?ie:(0,i.stringToUTF16String)(ie,!0)),ae.set("F",4),ae.set("Border",[0,0,0]),ae.set("Rotate",ne),re&&ae.set("T",(0,i.isAscii)(re)?re:(0,i.stringToUTF16String)(re,!0)),J||K){const fe=new P.Dict(M);ae.set("AP",fe),J?fe.set("N",J):fe.set("N",K)}return ae}static async createNewAppearanceStream(E,M,_){const{baseFontRef:J,evaluator:K,task:te}=_,{color:Z,fontSize:ce,rect:ne,rotation:re,value:ie}=E,ae=new P.Dict(M),ue=new P.Dict(M);if(J)ue.set("Helv",J);else{const rt=new P.Dict(M);rt.set("BaseFont",P.Name.get("Helvetica")),rt.set("Type",P.Name.get("Font")),rt.set("Subtype",P.Name.get("Type1")),rt.set("Encoding",P.Name.get("WinAnsiEncoding")),ue.set("Helv",rt)}ae.set("Font",ue);const fe=await s._getFontData(K,te,{fontName:"Helvetica",fontSize:ce},ae),[me,Fe,pe,Ce]=ne;let be=pe-me,Ie=Ce-Fe;re%180!==0&&([be,Ie]=[Ie,be]);const ye=ie.split(`
`),de=ce/1e3;let ge=-1/0;const xe=[];for(let rt of ye){const Xe=fe.encodeString(rt);if(Xe.length>1)return null;rt=Xe.join(""),xe.push(rt);let Je=0;const et=fe.charsToGlyphs(rt);for(const pt of et)Je+=pt.width*de;ge=Math.max(ge,Je)}let Oe=1;ge>be&&(Oe=be/ge);let je=1;const it=t.LINE_FACTOR*ce,ke=t.LINE_DESCENT_FACTOR*ce,$e=it*ye.length;$e>Ie&&(je=Ie/$e);const Ge=Math.min(Oe,je),Qe=ce*Ge,ve=["q",`0 0 ${(0,i.numberToString)(be)} ${(0,i.numberToString)(Ie)} re W n`,"BT",`1 0 0 1 0 ${(0,i.numberToString)(Ie+ke)} Tm 0 Tc ${(0,O.getPdfColor)(Z,!0)}`,`/Helv ${(0,i.numberToString)(Qe)} Tf`],Ne=(0,i.numberToString)(it);for(const rt of xe)ve.push(`0 -${Ne} Td (${(0,i.escapeString)(rt)}) Tj`);ve.push("ET","Q");const Me=ve.join(`
`),nt=new P.Dict(M);if(nt.set("FormType",1),nt.set("Subtype",P.Name.get("Form")),nt.set("Type",P.Name.get("XObject")),nt.set("BBox",[0,0,be,Ie]),nt.set("Resources",ae),re){const rt=(0,i.getRotationMatrix)(re,be,Ie);nt.set("Matrix",rt)}const _e=new I.StringStream(Me);return _e.dict=nt,_e}}class T extends F{constructor(E){super(E);const{dict:M,xref:_}=E;this.data.annotationType=t.AnnotationType.LINE;const J=M.getArray("L");if(this.data.lineCoordinates=t.Util.normalizeRect(J),this.setLineEndings(M.getArray("LE")),this.data.lineEndings=this.lineEndings,!this.appearance){const K=this.color?C(this.color):[0,0,0],te=M.get("CA"),Z=c(M.getArray("IC"),null),ce=Z?C(Z):null,ne=ce?te:null,re=this.borderStyle.width||1,ie=2*re,ae=[this.data.lineCoordinates[0]-ie,this.data.lineCoordinates[1]-ie,this.data.lineCoordinates[2]+ie,this.data.lineCoordinates[3]+ie];t.Util.intersect(this.rectangle,ae)||(this.rectangle=ae),this._setDefaultAppearance({xref:_,extra:`${re} w`,strokeColor:K,fillColor:ce,strokeAlpha:te,fillAlpha:ne,pointsCallback:(ue,fe)=>(ue.push(`${J[0]} ${J[1]} m`,`${J[2]} ${J[3]} l`,"S"),[fe[0].x-re,fe[1].x+re,fe[3].y-re,fe[1].y+re])})}}}class y extends F{constructor(E){super(E);const{dict:M,xref:_}=E;if(this.data.annotationType=t.AnnotationType.SQUARE,!this.appearance){const J=this.color?C(this.color):[0,0,0],K=M.get("CA"),te=c(M.getArray("IC"),null),Z=te?C(te):null,ce=Z?K:null;if(this.borderStyle.width===0&&!Z)return;this._setDefaultAppearance({xref:_,extra:`${this.borderStyle.width} w`,strokeColor:J,fillColor:Z,strokeAlpha:K,fillAlpha:ce,pointsCallback:(ne,re)=>{const ie=re[2].x+this.borderStyle.width/2,ae=re[2].y+this.borderStyle.width/2,ue=re[3].x-re[2].x-this.borderStyle.width,fe=re[1].y-re[3].y-this.borderStyle.width;return ne.push(`${ie} ${ae} ${ue} ${fe} re`),Z?ne.push("B"):ne.push("S"),[re[0].x,re[1].x,re[3].y,re[1].y]}})}}}class H extends F{constructor(E){super(E);const{dict:M,xref:_}=E;if(this.data.annotationType=t.AnnotationType.CIRCLE,!this.appearance){const J=this.color?C(this.color):[0,0,0],K=M.get("CA"),te=c(M.getArray("IC"),null),Z=te?C(te):null,ce=Z?K:null;if(this.borderStyle.width===0&&!Z)return;const ne=4/3*Math.tan(Math.PI/(2*4));this._setDefaultAppearance({xref:_,extra:`${this.borderStyle.width} w`,strokeColor:J,fillColor:Z,strokeAlpha:K,fillAlpha:ce,pointsCallback:(re,ie)=>{const ae=ie[0].x+this.borderStyle.width/2,ue=ie[0].y-this.borderStyle.width/2,fe=ie[3].x-this.borderStyle.width/2,me=ie[3].y+this.borderStyle.width/2,Fe=ae+(fe-ae)/2,pe=ue+(me-ue)/2,Ce=(fe-ae)/2*ne,be=(me-ue)/2*ne;return re.push(`${Fe} ${me} m`,`${Fe+Ce} ${me} ${fe} ${pe+be} ${fe} ${pe} c`,`${fe} ${pe-be} ${Fe+Ce} ${ue} ${Fe} ${ue} c`,`${Fe-Ce} ${ue} ${ae} ${pe-be} ${ae} ${pe} c`,`${ae} ${pe+be} ${Fe-Ce} ${me} ${Fe} ${me} c`,"h"),Z?re.push("B"):re.push("S"),[ie[0].x,ie[1].x,ie[3].y,ie[1].y]}})}}}class z extends F{constructor(E){super(E);const{dict:M,xref:_}=E;this.data.annotationType=t.AnnotationType.POLYLINE,this.data.vertices=[],this instanceof $||(this.setLineEndings(M.getArray("LE")),this.data.lineEndings=this.lineEndings);const J=M.getArray("Vertices");if(Array.isArray(J)){for(let K=0,te=J.length;K<te;K+=2)this.data.vertices.push({x:J[K],y:J[K+1]});if(!this.appearance){const K=this.color?C(this.color):[0,0,0],te=M.get("CA"),Z=this.borderStyle.width||1,ce=2*Z,ne=[1/0,1/0,-1/0,-1/0];for(const re of this.data.vertices)ne[0]=Math.min(ne[0],re.x-ce),ne[1]=Math.min(ne[1],re.y-ce),ne[2]=Math.max(ne[2],re.x+ce),ne[3]=Math.max(ne[3],re.y+ce);t.Util.intersect(this.rectangle,ne)||(this.rectangle=ne),this._setDefaultAppearance({xref:_,extra:`${Z} w`,strokeColor:K,strokeAlpha:te,pointsCallback:(re,ie)=>{const ae=this.data.vertices;for(let ue=0,fe=ae.length;ue<fe;ue++)re.push(`${ae[ue].x} ${ae[ue].y} ${ue===0?"m":"l"}`);return re.push("S"),[ie[0].x,ie[1].x,ie[3].y,ie[1].y]}})}}}}class $ extends z{constructor(E){super(E),this.data.annotationType=t.AnnotationType.POLYGON}}class j extends F{constructor(E){super(E),this.data.annotationType=t.AnnotationType.CARET}}class V extends F{constructor(E){super(E);const{dict:M,xref:_}=E;this.data.annotationType=t.AnnotationType.INK,this.data.inkLists=[];const J=M.getArray("InkList");if(Array.isArray(J)){for(let K=0,te=J.length;K<te;++K){this.data.inkLists.push([]);for(let Z=0,ce=J[K].length;Z<ce;Z+=2)this.data.inkLists[K].push({x:_.fetchIfRef(J[K][Z]),y:_.fetchIfRef(J[K][Z+1])})}if(!this.appearance){const K=this.color?C(this.color):[0,0,0],te=M.get("CA"),Z=this.borderStyle.width||1,ce=2*Z,ne=[1/0,1/0,-1/0,-1/0];for(const re of this.data.inkLists)for(const ie of re)ne[0]=Math.min(ne[0],ie.x-ce),ne[1]=Math.min(ne[1],ie.y-ce),ne[2]=Math.max(ne[2],ie.x+ce),ne[3]=Math.max(ne[3],ie.y+ce);t.Util.intersect(this.rectangle,ne)||(this.rectangle=ne),this._setDefaultAppearance({xref:_,extra:`${Z} w`,strokeColor:K,strokeAlpha:te,pointsCallback:(re,ie)=>{for(const ae of this.data.inkLists){for(let ue=0,fe=ae.length;ue<fe;ue++)re.push(`${ae[ue].x} ${ae[ue].y} ${ue===0?"m":"l"}`);re.push("S")}return[ie[0].x,ie[1].x,ie[3].y,ie[1].y]}})}}}static createNewDict(E,M,_){let{apRef:J,ap:K}=_;const{paths:te,rect:Z,rotation:ce}=E,ne=new P.Dict(M);ne.set("Type",P.Name.get("Annot")),ne.set("Subtype",P.Name.get("Ink")),ne.set("CreationDate",`D:${(0,t.getModificationDate)()}`),ne.set("Rect",Z),ne.set("InkList",te.map(ie=>ie.points)),ne.set("F",4),ne.set("Border",[0,0,0]),ne.set("Rotate",ce);const re=new P.Dict(M);return ne.set("AP",re),J?re.set("N",J):re.set("N",K),ne}static async createNewAppearanceStream(E,M,_){const{color:J,rect:K,rotation:te,paths:Z,thickness:ce,opacity:ne}=E,[re,ie,ae,ue]=K;let fe=ae-re,me=ue-ie;te%180!==0&&([fe,me]=[me,fe]);const Fe=[`${ce} w 1 J 1 j`,`${(0,O.getPdfColor)(J,!1)}`];ne!==1&&Fe.push("/R0 gs");const pe=[];for(const{bezier:ye}of Z){pe.length=0,pe.push(`${(0,i.numberToString)(ye[0])} ${(0,i.numberToString)(ye[1])} m`);for(let de=2,ge=ye.length;de<ge;de+=6){const xe=ye.slice(de,de+6).map(i.numberToString).join(" ");pe.push(`${xe} c`)}pe.push("S"),Fe.push(pe.join(`
`))}const Ce=Fe.join(`
`),be=new P.Dict(M);if(be.set("FormType",1),be.set("Subtype",P.Name.get("Form")),be.set("Type",P.Name.get("XObject")),be.set("BBox",[0,0,fe,me]),be.set("Length",Ce.length),te){const ye=(0,i.getRotationMatrix)(te,fe,me);be.set("Matrix",ye)}if(ne!==1){const ye=new P.Dict(M),de=new P.Dict(M),ge=new P.Dict(M);ge.set("CA",ne),ge.set("Type",P.Name.get("ExtGState")),de.set("R0",ge),ye.set("ExtGState",de),be.set("Resources",ye)}const Ie=new I.StringStream(Ce);return Ie.dict=be,Ie}}class ee extends F{constructor(E){super(E);const{dict:M,xref:_}=E;if(this.data.annotationType=t.AnnotationType.HIGHLIGHT,this.data.quadPoints=u(M,null)){const K=this.appearance&&this.appearance.dict.get("Resources");if(!this.appearance||!(K&&K.has("ExtGState"))){this.appearance&&(0,t.warn)("HighlightAnnotation - ignoring built-in appearance stream.");const te=this.color?C(this.color):[1,1,0],Z=M.get("CA");this._setDefaultAppearance({xref:_,fillColor:te,blendMode:"Multiply",fillAlpha:Z,pointsCallback:(ce,ne)=>(ce.push(`${ne[0].x} ${ne[0].y} m`,`${ne[1].x} ${ne[1].y} l`,`${ne[3].x} ${ne[3].y} l`,`${ne[2].x} ${ne[2].y} l`,"f"),[ne[0].x,ne[1].x,ne[3].y,ne[1].y])})}}else this.data.hasPopup=!1}}class U extends F{constructor(E){super(E);const{dict:M,xref:_}=E;if(this.data.annotationType=t.AnnotationType.UNDERLINE,this.data.quadPoints=u(M,null)){if(!this.appearance){const K=this.color?C(this.color):[0,0,0],te=M.get("CA");this._setDefaultAppearance({xref:_,extra:"[] 0 d 1 w",strokeColor:K,strokeAlpha:te,pointsCallback:(Z,ce)=>(Z.push(`${ce[2].x} ${ce[2].y} m`,`${ce[3].x} ${ce[3].y} l`,"S"),[ce[0].x,ce[1].x,ce[3].y,ce[1].y])})}}else this.data.hasPopup=!1}}class G extends F{constructor(E){super(E);const{dict:M,xref:_}=E;if(this.data.annotationType=t.AnnotationType.SQUIGGLY,this.data.quadPoints=u(M,null)){if(!this.appearance){const K=this.color?C(this.color):[0,0,0],te=M.get("CA");this._setDefaultAppearance({xref:_,extra:"[] 0 d 1 w",strokeColor:K,strokeAlpha:te,pointsCallback:(Z,ce)=>{const ne=(ce[0].y-ce[2].y)/6;let re=ne,ie=ce[2].x;const ae=ce[2].y,ue=ce[3].x;Z.push(`${ie} ${ae+re} m`);do ie+=2,re=re===0?ne:0,Z.push(`${ie} ${ae+re} l`);while(ie<ue);return Z.push("S"),[ce[2].x,ue,ae-2*ne,ae+2*ne]}})}}else this.data.hasPopup=!1}}class Y extends F{constructor(E){super(E);const{dict:M,xref:_}=E;if(this.data.annotationType=t.AnnotationType.STRIKEOUT,this.data.quadPoints=u(M,null)){if(!this.appearance){const K=this.color?C(this.color):[0,0,0],te=M.get("CA");this._setDefaultAppearance({xref:_,extra:"[] 0 d 1 w",strokeColor:K,strokeAlpha:te,pointsCallback:(Z,ce)=>(Z.push(`${(ce[0].x+ce[2].x)/2} ${(ce[0].y+ce[2].y)/2} m`,`${(ce[1].x+ce[3].x)/2} ${(ce[1].y+ce[3].y)/2} l`,"S"),[ce[0].x,ce[1].x,ce[3].y,ce[1].y])})}}else this.data.hasPopup=!1}}class oe extends F{constructor(E){super(E),this.data.annotationType=t.AnnotationType.STAMP}}class se extends F{constructor(E){super(E);const{dict:M,xref:_}=E,J=new x.FileSpec(M.get("FS"),_);this.data.annotationType=t.AnnotationType.FILEATTACHMENT,this.data.file=J.serializable;const K=M.get("Name");this.data.name=K instanceof P.Name?(0,t.stringToPDFString)(K.name):"PushPin"}}},(he,l,w)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.FakeUnicodeFont=void 0,l.createDefaultAppearance=x,l.getPdfColor=k,l.parseDefaultAppearance=L;var t=w(137),i=w(136),O=w(2),P=w(145),e=w(146),N=w(141);class D extends e.EvaluatorPreprocessor{constructor(I){super(new N.StringStream(I))}parse(){const I={fn:0,args:[]},B={fontSize:0,fontName:"",fontColor:new Uint8ClampedArray(3)};try{for(;I.args.length=0,!!this.read(I);){if(this.savedStatesDepth!==0)continue;const{fn:h,args:c}=I;switch(h|0){case O.OPS.setFont:const[C,u]=c;C instanceof t.Name&&(B.fontName=C.name),typeof u=="number"&&u>0&&(B.fontSize=u);break;case O.OPS.setFillRGBColor:P.ColorSpace.singletons.rgb.getRgbItem(c,0,B.fontColor,0);break;case O.OPS.setFillGray:P.ColorSpace.singletons.gray.getRgbItem(c,0,B.fontColor,0);break;case O.OPS.setFillColorSpace:P.ColorSpace.singletons.cmyk.getRgbItem(c,0,B.fontColor,0);break}}}catch(h){(0,O.warn)(`parseDefaultAppearance - ignoring errors: "${h}".`)}return B}}function L(n){return new D(n).parse()}function k(n,I){if(n[0]===n[1]&&n[1]===n[2]){const B=n[0]/255;return`${(0,i.numberToString)(B)} ${I?"g":"G"}`}return Array.from(n,B=>(0,i.numberToString)(B/255)).join(" ")+` ${I?"rg":"RG"}`}function x(n){let{fontSize:I,fontName:B,fontColor:h}=n;return`/${(0,i.escapePDFName)(B)} ${I} Tf ${k(h,!0)}`}class g{constructor(I,B){this.xref=I,this.widths=null,this.firstChar=1/0,this.lastChar=-1/0,this.fontFamily=B;const h=new OffscreenCanvas(1,1);this.ctxMeasure=h.getContext("2d"),g._fontNameId||(g._fontNameId=1),this.fontName=t.Name.get(`InvalidPDFjsFont_${B}_${g._fontNameId++}`)}get toUnicodeRef(){if(!g._toUnicodeRef){const I=`/CIDInit /ProcSet findresource begin
12 dict begin
begincmap
/CIDSystemInfo
<< /Registry (Adobe)
/Ordering (UCS) /Supplement 0 >> def
/CMapName /Adobe-Identity-UCS def
/CMapType 2 def
1 begincodespacerange
<0000> <FFFF>
endcodespacerange
1 beginbfrange
<0000> <FFFF> <0000>
endbfrange
endcmap CMapName currentdict /CMap defineresource pop end end`,B=g.toUnicodeStream=new N.StringStream(I),h=new t.Dict(this.xref);B.dict=h,h.set("Length",I.length),g._toUnicodeRef=this.xref.getNewPersistentRef(B)}return g._toUnicodeRef}get fontDescriptorRef(){if(!g._fontDescriptorRef){const I=new t.Dict(this.xref);I.set("Type",t.Name.get("FontDescriptor")),I.set("FontName",this.fontName),I.set("FontFamily","MyriadPro Regular"),I.set("FontBBox",[0,0,0,0]),I.set("FontStretch",t.Name.get("Normal")),I.set("FontWeight",400),I.set("ItalicAngle",0),g._fontDescriptorRef=this.xref.getNewPersistentRef(I)}return g._fontDescriptorRef}get descendantFontRef(){const I=new t.Dict(this.xref);I.set("BaseFont",this.fontName),I.set("Type",t.Name.get("Font")),I.set("Subtype",t.Name.get("CIDFontType0")),I.set("CIDToGIDMap",t.Name.get("Identity")),I.set("FirstChar",this.firstChar),I.set("LastChar",this.lastChar),I.set("FontDescriptor",this.fontDescriptorRef),I.set("DW",1e3);const B=[],h=[...this.widths.entries()].sort();let c=null,C=null;for(const[m,X]of h){if(!c){c=m,C=[X];continue}m===c+C.length?C.push(X):(B.push(c,C),c=m,C=[X])}c&&B.push(c,C),I.set("W",B);const u=new t.Dict(this.xref);return u.set("Ordering","Identity"),u.set("Registry","Adobe"),u.set("Supplement",0),I.set("CIDSystemInfo",u),this.xref.getNewPersistentRef(I)}get baseFontRef(){const I=new t.Dict(this.xref);return I.set("BaseFont",this.fontName),I.set("Type",t.Name.get("Font")),I.set("Subtype",t.Name.get("Type0")),I.set("Encoding",t.Name.get("Identity-H")),I.set("DescendantFonts",[this.descendantFontRef]),I.set("ToUnicode",this.toUnicodeRef),this.xref.getNewPersistentRef(I)}get resources(){const I=new t.Dict(this.xref),B=new t.Dict(this.xref);return B.set(this.fontName.name,this.baseFontRef),I.set("Font",B),I}_createContext(){return this.widths=new Map,this.ctxMeasure.font=`1000px ${this.fontFamily}`,this.ctxMeasure}createFontResources(I){const B=this._createContext();for(const h of I.split(/\r\n?|\n/))for(const c of h.split("")){const C=c.charCodeAt(0);if(this.widths.has(C))continue;const u=B.measureText(c),m=Math.ceil(u.width);this.widths.set(C,m),this.firstChar=Math.min(C,this.firstChar),this.lastChar=Math.max(C,this.lastChar)}return this.resources}createAppearance(I,B,h,c,C,u){const m=this._createContext(),X=[];let f=-1/0;for(const G of I.split(/\r\n?|\n/)){X.push(G);const Y=m.measureText(G).width;f=Math.max(f,Y);for(const oe of G.split("")){const se=oe.charCodeAt(0);let Q=this.widths.get(se);if(Q===void 0){const E=m.measureText(oe);Q=Math.ceil(E.width),this.widths.set(se,Q),this.firstChar=Math.min(se,this.firstChar),this.lastChar=Math.max(se,this.lastChar)}}}f*=c/1e3;const[F,s,d,S]=B;let r=d-F,o=S-s;h%180!==0&&([r,o]=[o,r]);let A=1;f>r&&(A=r/f);let p=1;const v=O.LINE_FACTOR*c,R=O.LINE_DESCENT_FACTOR*c,T=v*X.length;T>o&&(p=o/T);const y=Math.min(A,p),H=c*y,z=["q",`0 0 ${(0,i.numberToString)(r)} ${(0,i.numberToString)(o)} re W n`,"BT",`1 0 0 1 0 ${(0,i.numberToString)(o+R)} Tm 0 Tc ${k(C,!0)}`,`/${this.fontName.name} ${(0,i.numberToString)(H)} Tf`],{resources:$}=this;if(u=typeof u=="number"&&u>=0&&u<=1?u:1,u!==1){z.push("/R0 gs");const G=new t.Dict(this.xref),Y=new t.Dict(this.xref);Y.set("ca",u),Y.set("CA",u),Y.set("Type",t.Name.get("ExtGState")),G.set("R0",Y),$.set("ExtGState",G)}const j=(0,i.numberToString)(v);for(const G of X)z.push(`0 -${j} Td <${(0,i.stringToUTF16HexString)(G)}> Tj`);z.push("ET","Q");const V=z.join(`
`),ee=new t.Dict(this.xref);if(ee.set("Subtype",t.Name.get("Form")),ee.set("Type",t.Name.get("XObject")),ee.set("BBox",[0,0,r,o]),ee.set("Length",V.length),ee.set("Resources",$),h){const G=(0,i.getRotationMatrix)(h,r,o);ee.set("Matrix",G)}const U=new N.StringStream(V);return U.dict=ee,U}}l.FakeUnicodeFont=g},(he,l,w)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.ColorSpace=void 0;var t=w(2),i=w(137),O=w(138),P=w(136);function e(c,C,u,m,X,f,F){F=F!==1?0:F;const d=u/X,S=m/f;let r=0,o;const A=new Uint16Array(X),p=u*3;for(let v=0;v<X;v++)A[v]=Math.floor(v*d)*3;for(let v=0;v<f;v++){const R=Math.floor(v*S)*p;for(let T=0;T<X;T++)o=R+A[T],C[r++]=c[o++],C[r++]=c[o++],C[r++]=c[o++],r+=F}}class N{constructor(C,u){this.constructor===N&&(0,t.unreachable)("Cannot initialize ColorSpace."),this.name=C,this.numComps=u}getRgb(C,u){const m=new Uint8ClampedArray(3);return this.getRgbItem(C,u,m,0),m}getRgbItem(C,u,m,X){(0,t.unreachable)("Should not call ColorSpace.getRgbItem")}getRgbBuffer(C,u,m,X,f,F,s){(0,t.unreachable)("Should not call ColorSpace.getRgbBuffer")}getOutputLength(C,u){(0,t.unreachable)("Should not call ColorSpace.getOutputLength")}isPassthrough(C){return!1}isDefaultDecode(C,u){return N.isDefaultDecode(C,this.numComps)}fillRgb(C,u,m,X,f,F,s,d,S){const r=u*m;let o=null;const A=1<<s,p=m!==f||u!==X;if(this.isPassthrough(s))o=d;else if(this.numComps===1&&r>A&&this.name!=="DeviceGray"&&this.name!=="DeviceRGB"){const v=s<=8?new Uint8Array(A):new Uint16Array(A);for(let T=0;T<A;T++)v[T]=T;const R=new Uint8ClampedArray(A*3);if(this.getRgbBuffer(v,0,A,R,0,s,0),p){o=new Uint8Array(r*3);let T=0;for(let y=0;y<r;++y){const H=d[y]*3;o[T++]=R[H],o[T++]=R[H+1],o[T++]=R[H+2]}}else{let T=0;for(let y=0;y<r;++y){const H=d[y]*3;C[T++]=R[H],C[T++]=R[H+1],C[T++]=R[H+2],T+=S}}}else p?(o=new Uint8ClampedArray(r*3),this.getRgbBuffer(d,0,r,o,0,s,0)):this.getRgbBuffer(d,0,X*F,C,0,s,S);if(o)if(p)e(o,C,u,m,X,f,S);else{let v=0,R=0;for(let T=0,y=X*F;T<y;T++)C[v++]=o[R++],C[v++]=o[R++],C[v++]=o[R++],v+=S}}get usesZeroToOneRange(){return(0,t.shadow)(this,"usesZeroToOneRange",!0)}static _cache(C,u,m,X){if(!m)throw new Error('ColorSpace._cache - expected "localColorSpaceCache" argument.');if(!X)throw new Error('ColorSpace._cache - expected "parsedColorSpace" argument.');let f,F;C instanceof i.Ref&&(F=C,C=u.fetch(C)),C instanceof i.Name&&(f=C.name),(f||F)&&m.set(f,F,X)}static getCached(C,u,m){if(!m)throw new Error('ColorSpace.getCached - expected "localColorSpaceCache" argument.');if(C instanceof i.Ref){const X=m.getByRef(C);if(X)return X;try{C=u.fetch(C)}catch(f){if(f instanceof P.MissingDataException)throw f}}if(C instanceof i.Name){const X=m.getByName(C.name);if(X)return X}return null}static async parseAsync(C){let{cs:u,xref:m,resources:X=null,pdfFunctionFactory:f,localColorSpaceCache:F}=C;const s=this._parse(u,m,X,f);return this._cache(u,m,F,s),s}static parse(C){let{cs:u,xref:m,resources:X=null,pdfFunctionFactory:f,localColorSpaceCache:F}=C;const s=this.getCached(u,m,F);if(s)return s;const d=this._parse(u,m,X,f);return this._cache(u,m,F,d),d}static _parse(C,u){let m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,X=arguments.length>3?arguments[3]:void 0;if(C=u.fetchIfRef(C),C instanceof i.Name)switch(C.name){case"G":case"DeviceGray":return this.singletons.gray;case"RGB":case"DeviceRGB":return this.singletons.rgb;case"CMYK":case"DeviceCMYK":return this.singletons.cmyk;case"Pattern":return new L(null);default:if(m instanceof i.Dict){const f=m.get("ColorSpace");if(f instanceof i.Dict){const F=f.get(C.name);if(F){if(F instanceof i.Name)return this._parse(F,u,m,X);C=F;break}}}throw new t.FormatError(`Unrecognized ColorSpace: ${C.name}`)}if(Array.isArray(C)){const f=u.fetchIfRef(C[0]).name;let F,s,d,S,r,o;switch(f){case"G":case"DeviceGray":return this.singletons.gray;case"RGB":case"DeviceRGB":return this.singletons.rgb;case"CMYK":case"DeviceCMYK":return this.singletons.cmyk;case"CalGray":return F=u.fetchIfRef(C[1]),S=F.getArray("WhitePoint"),r=F.getArray("BlackPoint"),o=F.get("Gamma"),new I(S,r,o);case"CalRGB":F=u.fetchIfRef(C[1]),S=F.getArray("WhitePoint"),r=F.getArray("BlackPoint"),o=F.getArray("Gamma");const A=F.getArray("Matrix");return new B(S,r,o,A);case"ICCBased":const v=u.fetchIfRef(C[1]).dict;s=v.get("N");const R=v.get("Alternate");if(R){const j=this._parse(R,u,m,X);if(j.numComps===s)return j;(0,t.warn)("ICCBased color space: Ignoring incorrect /Alternate entry.")}if(s===1)return this.singletons.gray;if(s===3)return this.singletons.rgb;if(s===4)return this.singletons.cmyk;break;case"Pattern":return d=C[1]||null,d&&(d=this._parse(d,u,m,X)),new L(d);case"I":case"Indexed":d=this._parse(C[1],u,m,X);const T=u.fetchIfRef(C[2])+1,y=u.fetchIfRef(C[3]);return new k(d,T,y);case"Separation":case"DeviceN":const H=u.fetchIfRef(C[1]);s=Array.isArray(H)?H.length:1,d=this._parse(C[2],u,m,X);const z=X.create(C[3]);return new D(s,d,z);case"Lab":F=u.fetchIfRef(C[1]),S=F.getArray("WhitePoint"),r=F.getArray("BlackPoint");const $=F.getArray("Range");return new h(S,r,$);default:throw new t.FormatError(`Unimplemented ColorSpace object: ${f}`)}}throw new t.FormatError(`Unrecognized ColorSpace object: ${C}`)}static isDefaultDecode(C,u){if(!Array.isArray(C))return!0;if(u*2!==C.length)return(0,t.warn)("The decode map is not the correct length"),!0;for(let m=0,X=C.length;m<X;m+=2)if(C[m]!==0||C[m+1]!==1)return!1;return!0}static get singletons(){return(0,t.shadow)(this,"singletons",{get gray(){return(0,t.shadow)(this,"gray",new x)},get rgb(){return(0,t.shadow)(this,"rgb",new g)},get cmyk(){return(0,t.shadow)(this,"cmyk",new n)}})}}l.ColorSpace=N;class D extends N{constructor(C,u,m){super("Alternate",C),this.base=u,this.tintFn=m,this.tmpBuf=new Float32Array(u.numComps)}getRgbItem(C,u,m,X){const f=this.tmpBuf;this.tintFn(C,u,f,0),this.base.getRgbItem(f,0,m,X)}getRgbBuffer(C,u,m,X,f,F,s){const d=this.tintFn,S=this.base,r=1/((1<<F)-1),o=S.numComps,A=S.usesZeroToOneRange,p=(S.isPassthrough(8)||!A)&&s===0;let v=p?f:0;const R=p?X:new Uint8ClampedArray(o*m),T=this.numComps,y=new Float32Array(T),H=new Float32Array(o);let z,$;for(z=0;z<m;z++){for($=0;$<T;$++)y[$]=C[u++]*r;if(d(y,0,H,0),A)for($=0;$<o;$++)R[v++]=H[$]*255;else S.getRgbItem(H,0,R,v),v+=o}p||S.getRgbBuffer(R,0,m,X,f,8,s)}getOutputLength(C,u){return this.base.getOutputLength(C*this.base.numComps/this.numComps,u)}}class L extends N{constructor(C){super("Pattern",null),this.base=C}isDefaultDecode(C,u){(0,t.unreachable)("Should not call PatternCS.isDefaultDecode")}}class k extends N{constructor(C,u,m){super("Indexed",1),this.base=C,this.highVal=u;const X=C.numComps*u;if(this.lookup=new Uint8Array(X),m instanceof O.BaseStream){const f=m.getBytes(X);this.lookup.set(f)}else if(typeof m=="string")for(let f=0;f<X;++f)this.lookup[f]=m.charCodeAt(f)&255;else throw new t.FormatError(`IndexedCS - unrecognized lookup table: ${m}`)}getRgbItem(C,u,m,X){const f=this.base.numComps,F=C[u]*f;this.base.getRgbBuffer(this.lookup,F,1,m,X,8,0)}getRgbBuffer(C,u,m,X,f,F,s){const d=this.base,S=d.numComps,r=d.getOutputLength(S,s),o=this.lookup;for(let A=0;A<m;++A){const p=C[u++]*S;d.getRgbBuffer(o,p,1,X,f,8,s),f+=r}}getOutputLength(C,u){return this.base.getOutputLength(C*this.base.numComps,u)}isDefaultDecode(C,u){return Array.isArray(C)?C.length!==2?((0,t.warn)("Decode map length is not correct"),!0):!Number.isInteger(u)||u<1?((0,t.warn)("Bits per component is not correct"),!0):C[0]===0&&C[1]===(1<<u)-1:!0}}class x extends N{constructor(){super("DeviceGray",1)}getRgbItem(C,u,m,X){const f=C[u]*255;m[X]=m[X+1]=m[X+2]=f}getRgbBuffer(C,u,m,X,f,F,s){const d=255/((1<<F)-1);let S=u,r=f;for(let o=0;o<m;++o){const A=d*C[S++];X[r++]=A,X[r++]=A,X[r++]=A,r+=s}}getOutputLength(C,u){return C*(3+u)}}class g extends N{constructor(){super("DeviceRGB",3)}getRgbItem(C,u,m,X){m[X]=C[u]*255,m[X+1]=C[u+1]*255,m[X+2]=C[u+2]*255}getRgbBuffer(C,u,m,X,f,F,s){if(F===8&&s===0){X.set(C.subarray(u,u+m*3),f);return}const d=255/((1<<F)-1);let S=u,r=f;for(let o=0;o<m;++o)X[r++]=d*C[S++],X[r++]=d*C[S++],X[r++]=d*C[S++],r+=s}getOutputLength(C,u){return C*(3+u)/3|0}isPassthrough(C){return C===8}}const n=function(){function C(m,X,f,F,s){const d=m[X]*f,S=m[X+1]*f,r=m[X+2]*f,o=m[X+3]*f;F[s]=255+d*(-4.387332384609988*d+54.48615194189176*S+18.82290502165302*r+212.25662451639585*o+-285.2331026137004)+S*(1.7149763477362134*S-5.6096736904047315*r+-17.873870861415444*o-5.497006427196366)+r*(-2.5217340131683033*r-21.248923337353073*o+17.5119270841813)+o*(-21.86122147463605*o-189.48180835922747),F[s+1]=255+d*(8.841041422036149*d+60.118027045597366*S+6.871425592049007*r+31.159100130055922*o+-79.2970844816548)+S*(-15.310361306967817*S+17.575251261109482*r+131.35250912493976*o-190.9453302588951)+r*(4.444339102852739*r+9.8632861493405*o-24.86741582555878)+o*(-20.737325471181034*o-187.80453709719578),F[s+2]=255+d*(.8842522430003296*d+8.078677503112928*S+30.89978309703729*r-.23883238689178934*o+-14.183576799673286)+S*(10.49593273432072*S+63.02378494754052*r+50.606957656360734*o-112.23884253719248)+r*(.03296041114873217*r+115.60384449646641*o+-193.58209356861505)+o*(-22.33816807309886*o-180.12613974708367)}class u extends N{constructor(){super("DeviceCMYK",4)}getRgbItem(X,f,F,s){C(X,f,1,F,s)}getRgbBuffer(X,f,F,s,d,S,r){const o=1/((1<<S)-1);for(let A=0;A<F;A++)C(X,f,o,s,d),f+=4,d+=3+r}getOutputLength(X,f){return X/4*(3+f)|0}}return u}(),I=function(){function C(m,X,f,F,s,d){const r=(X[f]*d)**m.G,o=m.YW*r,A=Math.max(295.8*o**.3333333333333333-40.8,0);F[s]=A,F[s+1]=A,F[s+2]=A}class u extends N{constructor(X,f,F){if(super("CalGray",1),!X)throw new t.FormatError("WhitePoint missing - required for color space CalGray");if(f=f||[0,0,0],F=F||1,this.XW=X[0],this.YW=X[1],this.ZW=X[2],this.XB=f[0],this.YB=f[1],this.ZB=f[2],this.G=F,this.XW<0||this.ZW<0||this.YW!==1)throw new t.FormatError(`Invalid WhitePoint components for ${this.name}, no fallback available`);(this.XB<0||this.YB<0||this.ZB<0)&&((0,t.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,t.warn)(`${this.name}, BlackPoint: XB: ${this.XB}, YB: ${this.YB}, ZB: ${this.ZB}, only default values are supported.`),this.G<1&&((0,t.info)(`Invalid Gamma: ${this.G} for ${this.name}, falling back to default.`),this.G=1)}getRgbItem(X,f,F,s){C(this,X,f,F,s,1)}getRgbBuffer(X,f,F,s,d,S,r){const o=1/((1<<S)-1);for(let A=0;A<F;++A)C(this,X,f,s,d,o),f+=1,d+=3+r}getOutputLength(X,f){return X*(3+f)}}return u}(),B=function(){const C=new Float32Array([.8951,.2664,-.1614,-.7502,1.7135,.0367,.0389,-.0685,1.0296]),u=new Float32Array([.9869929,-.1470543,.1599627,.4323053,.5183603,.0492912,-.0085287,.0400428,.9684867]),m=new Float32Array([3.2404542,-1.5371385,-.4985314,-.969266,1.8760108,.041556,.0556434,-.2040259,1.0572252]),X=new Float32Array([1,1,1]),f=new Float32Array(3),F=new Float32Array(3),s=new Float32Array(3),d=((8+16)/116)**3/8;function S($,j,V){V[0]=$[0]*j[0]+$[1]*j[1]+$[2]*j[2],V[1]=$[3]*j[0]+$[4]*j[1]+$[5]*j[2],V[2]=$[6]*j[0]+$[7]*j[1]+$[8]*j[2]}function r($,j,V){V[0]=j[0]*1/$[0],V[1]=j[1]*1/$[1],V[2]=j[2]*1/$[2]}function o($,j,V){V[0]=j[0]*.95047/$[0],V[1]=j[1]*1/$[1],V[2]=j[2]*1.08883/$[2]}function A($){return $<=.0031308?p(0,1,12.92*$):$>=.99554525?1:p(0,1,(1+.055)*$**(1/2.4)-.055)}function p($,j,V){return Math.max($,Math.min(j,V))}function v($){return $<0?-v(-$):$>8?(($+16)/116)**3:$*d}function R($,j,V){if($[0]===0&&$[1]===0&&$[2]===0){V[0]=j[0],V[1]=j[1],V[2]=j[2];return}const ee=v(0),U=ee,G=v($[0]),Y=ee,oe=v($[1]),se=ee,Q=v($[2]),E=(1-U)/(1-G),M=1-E,_=(1-Y)/(1-oe),J=1-_,K=(1-se)/(1-Q),te=1-K;V[0]=j[0]*E+M,V[1]=j[1]*_+J,V[2]=j[2]*K+te}function T($,j,V){if($[0]===1&&$[2]===1){V[0]=j[0],V[1]=j[1],V[2]=j[2];return}const ee=V;S(C,j,ee);const U=f;r($,ee,U),S(u,U,V)}function y($,j,V){const ee=V;S(C,j,ee);const U=f;o($,ee,U),S(u,U,V)}function H($,j,V,ee,U,G){const Y=p(0,1,j[V]*G),oe=p(0,1,j[V+1]*G),se=p(0,1,j[V+2]*G),Q=Y===1?1:Y**$.GR,E=oe===1?1:oe**$.GG,M=se===1?1:se**$.GB,_=$.MXA*Q+$.MXB*E+$.MXC*M,J=$.MYA*Q+$.MYB*E+$.MYC*M,K=$.MZA*Q+$.MZB*E+$.MZC*M,te=F;te[0]=_,te[1]=J,te[2]=K;const Z=s;T($.whitePoint,te,Z);const ce=F;R($.blackPoint,Z,ce);const ne=s;y(X,ce,ne);const re=F;S(m,ne,re),ee[U]=A(re[0])*255,ee[U+1]=A(re[1])*255,ee[U+2]=A(re[2])*255}class z extends N{constructor(j,V,ee,U){if(super("CalRGB",3),!j)throw new t.FormatError("WhitePoint missing - required for color space CalRGB");V=V||new Float32Array(3),ee=ee||new Float32Array([1,1,1]),U=U||new Float32Array([1,0,0,0,1,0,0,0,1]);const G=j[0],Y=j[1],oe=j[2];this.whitePoint=j;const se=V[0],Q=V[1],E=V[2];if(this.blackPoint=V,this.GR=ee[0],this.GG=ee[1],this.GB=ee[2],this.MXA=U[0],this.MYA=U[1],this.MZA=U[2],this.MXB=U[3],this.MYB=U[4],this.MZB=U[5],this.MXC=U[6],this.MYC=U[7],this.MZC=U[8],G<0||oe<0||Y!==1)throw new t.FormatError(`Invalid WhitePoint components for ${this.name}, no fallback available`);(se<0||Q<0||E<0)&&((0,t.info)(`Invalid BlackPoint for ${this.name} [${se}, ${Q}, ${E}], falling back to default.`),this.blackPoint=new Float32Array(3)),(this.GR<0||this.GG<0||this.GB<0)&&((0,t.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,V,ee,U){H(this,j,V,ee,U,1)}getRgbBuffer(j,V,ee,U,G,Y,oe){const se=1/((1<<Y)-1);for(let Q=0;Q<ee;++Q)H(this,j,V,U,G,se),V+=3,G+=3+oe}getOutputLength(j,V){return j*(3+V)/3|0}}return z}(),h=function(){function C(f){let F;return f>=6/29?F=f**3:F=108/841*(f-4/29),F}function u(f,F,s,d){return s+f*(d-s)/F}function m(f,F,s,d,S,r){let o=F[s],A=F[s+1],p=F[s+2];d!==!1&&(o=u(o,d,0,100),A=u(A,d,f.amin,f.amax),p=u(p,d,f.bmin,f.bmax)),A>f.amax?A=f.amax:A<f.amin&&(A=f.amin),p>f.bmax?p=f.bmax:p<f.bmin&&(p=f.bmin);const v=(o+16)/116,R=v+A/500,T=v-p/200,y=f.XW*C(R),H=f.YW*C(v),z=f.ZW*C(T);let $,j,V;f.ZW<1?($=y*3.1339+H*-1.617+z*-.4906,j=y*-.9785+H*1.916+z*.0333,V=y*.072+H*-.229+z*1.4057):($=y*3.2406+H*-1.5372+z*-.4986,j=y*-.9689+H*1.8758+z*.0415,V=y*.0557+H*-.204+z*1.057),S[r]=Math.sqrt($)*255,S[r+1]=Math.sqrt(j)*255,S[r+2]=Math.sqrt(V)*255}class X extends N{constructor(F,s,d){if(super("Lab",3),!F)throw new t.FormatError("WhitePoint missing - required for color space Lab");if(s=s||[0,0,0],d=d||[-100,100,-100,100],this.XW=F[0],this.YW=F[1],this.ZW=F[2],this.amin=d[0],this.amax=d[1],this.bmin=d[2],this.bmax=d[3],this.XB=s[0],this.YB=s[1],this.ZB=s[2],this.XW<0||this.ZW<0||this.YW!==1)throw new t.FormatError("Invalid WhitePoint components, no fallback available");(this.XB<0||this.YB<0||this.ZB<0)&&((0,t.info)("Invalid BlackPoint, falling back to default"),this.XB=this.YB=this.ZB=0),(this.amin>this.amax||this.bmin>this.bmax)&&((0,t.info)("Invalid Range, falling back to defaults"),this.amin=-100,this.amax=100,this.bmin=-100,this.bmax=100)}getRgbItem(F,s,d,S){m(this,F,s,!1,d,S)}getRgbBuffer(F,s,d,S,r,o,A){const p=(1<<o)-1;for(let v=0;v<d;v++)m(this,F,s,p,S,r),s+=3,r+=3+A}getOutputLength(F,s){return F*(3+s)/3|0}isDefaultDecode(F,s){return!0}get usesZeroToOneRange(){return(0,t.shadow)(this,"usesZeroToOneRange",!1)}}return X}()},(he,l,w)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.PartialEvaluator=l.EvaluatorPreprocessor=void 0;var t=w(2),i=w(147),O=w(137),P=w(165),e=w(168),N=w(172),D=w(181),L=w(182),k=w(173),x=w(188),g=w(148),n=w(190),I=w(141),B=w(138),h=w(191),c=w(145),C=w(150),u=w(169),m=w(170),X=w(136),f=w(176),F=w(171),s=w(192),d=w(193),S=w(194);const r=Object.freeze({maxImageSize:-1,disableFontFace:!1,ignoreErrors:!1,isEvalSupported:!0,isOffscreenCanvasSupported:!0,fontExtraProperties:!1,useSystemFonts:!0,cMapUrl:null,standardFontDataUrl:null}),o={TILING:1,SHADING:2},A=10,p=Promise.resolve();function v(ee){let U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Array.isArray(ee)){for(const G of ee){const Y=v(G,!0);if(Y)return Y}return(0,t.warn)(`Unsupported blend mode Array: ${ee}`),"source-over"}if(!(ee instanceof O.Name))return U?null:"source-over";switch(ee.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 U?null:((0,t.warn)(`Unsupported blend mode: ${ee.name}`),"source-over")}function R(ee){ee.fn===t.OPS.paintImageMaskXObject&&ee.args[0]&&ee.args[0].count>0&&ee.args[0].count++}class T{static get TIME_SLOT_DURATION_MS(){return(0,t.shadow)(this,"TIME_SLOT_DURATION_MS",20)}static get CHECK_TIME_EVERY(){return(0,t.shadow)(this,"CHECK_TIME_EVERY",100)}constructor(){this.reset()}check(){return++this.checked<T.CHECK_TIME_EVERY?!1:(this.checked=0,this.endTime<=Date.now())}reset(){this.endTime=Date.now()+T.TIME_SLOT_DURATION_MS,this.checked=0}}class y{constructor(U){let{xref:G,handler:Y,pageIndex:oe,idFactory:se,fontCache:Q,builtInCMapCache:E,standardFontDataCache:M,globalImageCache:_,options:J=null}=U;this.xref=G,this.handler=Y,this.pageIndex=oe,this.idFactory=se,this.fontCache=Q,this.builtInCMapCache=E,this.standardFontDataCache=M,this.globalImageCache=_,this.options=J||r,this.parsingType3Font=!1,this._fetchBuiltInCMapBound=this.fetchBuiltInCMap.bind(this)}get _pdfFunctionFactory(){const U=new x.PDFFunctionFactory({xref:this.xref,isEvalSupported:this.options.isEvalSupported});return(0,t.shadow)(this,"_pdfFunctionFactory",U)}clone(){let U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;const G=Object.create(this);return G.options=Object.assign(Object.create(null),this.options,U),G}hasBlendModes(U,G){if(!(U instanceof O.Dict)||U.objId&&G.has(U.objId))return!1;const Y=new O.RefSet(G);U.objId&&Y.put(U.objId);const oe=[U],se=this.xref;for(;oe.length;){const Q=oe.shift(),E=Q.get("ExtGState");if(E instanceof O.Dict)for(let _ of E.getRawValues()){if(_ instanceof O.Ref){if(Y.has(_))continue;try{_=se.fetch(_)}catch(K){Y.put(_),(0,t.info)(`hasBlendModes - ignoring ExtGState: "${K}".`);continue}}if(!(_ instanceof O.Dict))continue;_.objId&&Y.put(_.objId);const J=_.get("BM");if(J instanceof O.Name){if(J.name!=="Normal")return!0;continue}if(J!==void 0&&Array.isArray(J)){for(const K of J)if(K instanceof O.Name&&K.name!=="Normal")return!0}}const M=Q.get("XObject");if(M instanceof O.Dict)for(let _ of M.getRawValues()){if(_ instanceof O.Ref){if(Y.has(_))continue;try{_=se.fetch(_)}catch(K){Y.put(_),(0,t.info)(`hasBlendModes - ignoring XObject: "${K}".`);continue}}if(!(_ instanceof B.BaseStream))continue;_.dict.objId&&Y.put(_.dict.objId);const J=_.dict.get("Resources");J instanceof O.Dict&&(J.objId&&Y.has(J.objId)||(oe.push(J),J.objId&&Y.put(J.objId)))}}for(const Q of Y)G.put(Q);return!1}async fetchBuiltInCMap(U){const G=this.builtInCMapCache.get(U);if(G)return G;let Y;if(this.options.cMapUrl!==null){const oe=`${this.options.cMapUrl}${U}.bcmap`,se=await fetch(oe);if(!se.ok)throw new Error(`fetchBuiltInCMap: failed to fetch file "${oe}" with "${se.statusText}".`);Y={cMapData:new Uint8Array(await se.arrayBuffer()),compressionType:t.CMapCompressionType.BINARY}}else Y=await this.handler.sendWithPromise("FetchBuiltInCMap",{name:U});return Y.compressionType!==t.CMapCompressionType.NONE&&this.builtInCMapCache.set(U,Y),Y}async fetchStandardFontData(U){const G=this.standardFontDataCache.get(U);if(G)return new I.Stream(G);if(this.options.useSystemFonts&&U!=="Symbol"&&U!=="ZapfDingbats")return null;const Y=(0,N.getFontNameToFileMap)(),oe=Y[U];let se;if(this.options.standardFontDataUrl!==null){const Q=`${this.options.standardFontDataUrl}${oe}`,E=await fetch(Q);E.ok?se=await E.arrayBuffer():(0,t.warn)(`fetchStandardFontData: failed to fetch file "${Q}" with "${E.statusText}".`)}else try{se=await this.handler.sendWithPromise("FetchStandardFontData",{filename:oe})}catch(Q){(0,t.warn)(`fetchStandardFontData: failed to fetch file "${oe}" with "${Q}".`)}return se?(this.standardFontDataCache.set(U,se),new I.Stream(se)):null}async buildFormXObject(U,G,Y,oe,se,Q,E){const M=G.dict,_=M.getArray("Matrix");let J=M.getArray("BBox");Array.isArray(J)&&J.length===4?J=t.Util.normalizeRect(J):J=null;let K,te;M.has("OC")&&(K=await this.parseMarkedContentProps(M.get("OC"),U)),K!==void 0&&oe.addOp(t.OPS.beginMarkedContentProps,["OC",K]);const Z=M.get("Group");if(Z){te={matrix:_,bbox:J,smask:Y,isolated:!1,knockout:!1};const ne=Z.get("S");let re=null;if((0,O.isName)(ne,"Transparency")&&(te.isolated=Z.get("I")||!1,te.knockout=Z.get("K")||!1,Z.has("CS"))){const ie=Z.getRaw("CS"),ae=c.ColorSpace.getCached(ie,this.xref,E);ae?re=ae:re=await this.parseColorSpace({cs:ie,resources:U,localColorSpaceCache:E})}Y&&Y.backdrop&&(re=re||c.ColorSpace.singletons.rgb,Y.backdrop=re.getRgb(Y.backdrop,0)),oe.addOp(t.OPS.beginGroup,[te])}const ce=Z?[_,null]:[_,J];return oe.addOp(t.OPS.paintFormXObjectBegin,ce),this.getOperatorList({stream:G,task:se,resources:M.get("Resources")||U,operatorList:oe,initialState:Q}).then(function(){oe.addOp(t.OPS.paintFormXObjectEnd,[]),Z&&oe.addOp(t.OPS.endGroup,[te]),K!==void 0&&oe.addOp(t.OPS.endMarkedContent,[])})}_sendImgData(U,G){let Y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const oe=G?[G.bitmap||G.data.buffer]:null;return this.parsingType3Font||Y?this.handler.send("commonobj",[U,"Image",G],oe):this.handler.send("obj",[U,this.pageIndex,"Image",G],oe)}async buildPaintImageXObject(U){let{resources:G,image:Y,isInline:oe=!1,operatorList:se,cacheKey:Q,localImageCache:E,localColorSpaceCache:M}=U;const _=Y.dict,J=_.objId,K=_.get("W","Width"),te=_.get("H","Height");if(!(K&&typeof K=="number")||!(te&&typeof te=="number")){(0,t.warn)("Image dimensions are missing, or not numbers.");return}const Z=this.options.maxImageSize;if(Z!==-1&&K*te>Z){const pe="Image exceeded maximum allowed size and was removed.";if(this.options.ignoreErrors){(0,t.warn)(pe);return}throw new Error(pe)}let ce;_.has("OC")&&(ce=await this.parseMarkedContentProps(_.get("OC"),G));const ne=_.get("IM","ImageMask")||!1;let re,ie;if(ne){const pe=_.get("I","Interpolate"),Ce=K+7>>3,be=Y.getBytes(Ce*te),Ie=_.getArray("D","Decode");if(this.parsingType3Font){re=S.PDFImage.createRawMask({imgArray:be,width:K,height:te,imageIsFromDecodeStream:Y instanceof C.DecodeStream,inverseDecode:!!Ie&&Ie[0]>0,interpolate:pe}),re.cached=!!Q,ie=[re],se.addImageOps(t.OPS.paintImageMaskXObject,ie,ce),Q&&E.set(Q,J,{fn:t.OPS.paintImageMaskXObject,args:ie,optionalContent:ce});return}if(re=S.PDFImage.createMask({imgArray:be,width:K,height:te,imageIsFromDecodeStream:Y instanceof C.DecodeStream,inverseDecode:!!Ie&&Ie[0]>0,interpolate:pe,isOffscreenCanvasSupported:this.options.isOffscreenCanvasSupported}),re.isSingleOpaquePixel){se.addImageOps(t.OPS.paintSolidColorImageMask,[],ce),Q&&E.set(Q,J,{fn:t.OPS.paintSolidColorImageMask,args:[],optionalContent:ce});return}const ye=`mask_${this.idFactory.createObjId()}`;se.addDependency(ye),this._sendImgData(ye,re),ie=[{data:ye,width:re.width,height:re.height,interpolate:re.interpolate,count:1}],se.addImageOps(t.OPS.paintImageMaskXObject,ie,ce),Q&&E.set(Q,J,{fn:t.OPS.paintImageMaskXObject,args:ie,optionalContent:ce});return}const ae=_.get("SM","SMask")||!1,ue=_.get("Mask")||!1,fe=200;if(oe&&!ae&&!ue&&K+te<fe){re=new S.PDFImage({xref:this.xref,res:G,image:Y,isInline:oe,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:M}).createImageData(!0),se.addImageOps(t.OPS.paintInlineImageXObject,[re],ce);return}let me=`img_${this.idFactory.createObjId()}`,Fe=!1;this.parsingType3Font?me=`${this.idFactory.getDocId()}_type3_${me}`:J&&(Fe=this.globalImageCache.shouldCache(J,this.pageIndex),Fe&&(me=`${this.idFactory.getDocId()}_${me}`)),se.addDependency(me),ie=[me,K,te],S.PDFImage.buildImage({xref:this.xref,res:G,image:Y,isInline:oe,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:M}).then(pe=>(re=pe.createImageData(!1),Q&&J&&Fe&&this.globalImageCache.addByteSize(J,re.data.length),this._sendImgData(me,re,Fe))).catch(pe=>((0,t.warn)(`Unable to decode image "${me}": "${pe}".`),this._sendImgData(me,null,Fe))),se.addImageOps(t.OPS.paintImageXObject,ie,ce),Q&&(E.set(Q,J,{fn:t.OPS.paintImageXObject,args:ie,optionalContent:ce}),J&&((0,t.assert)(!oe,"Cannot cache an inline image globally."),this.globalImageCache.addPageIndex(J,this.pageIndex),Fe&&this.globalImageCache.setData(J,{objId:me,fn:t.OPS.paintImageXObject,args:ie,optionalContent:ce,byteSize:0})))}handleSMask(U,G,Y,oe,se,Q){const E=U.get("G"),M={subtype:U.get("S").name,backdrop:U.get("BC")},_=U.get("TR");if((0,x.isPDFFunction)(_)){const J=this._pdfFunctionFactory.create(_),K=new Uint8Array(256),te=new Float32Array(1);for(let Z=0;Z<256;Z++)te[0]=Z/255,J(te,0,te,0),K[Z]=te[0]*255|0;M.transferMap=K}return this.buildFormXObject(G,E,M,Y,oe,se.state.clone(),Q)}handleTransferFunction(U){let G;if(Array.isArray(U))G=U;else if((0,x.isPDFFunction)(U))G=[U];else return null;const Y=[];let oe=0,se=0;for(const Q of G){const E=this.xref.fetchIfRef(Q);if(oe++,(0,O.isName)(E,"Identity")){Y.push(null);continue}else if(!(0,x.isPDFFunction)(E))return null;const M=this._pdfFunctionFactory.create(E),_=new Uint8Array(256),J=new Float32Array(1);for(let K=0;K<256;K++)J[0]=K/255,M(J,0,J,0),_[K]=J[0]*255|0;Y.push(_),se++}return!(oe===1||oe===4)||se===0?null:Y}handleTilingType(U,G,Y,oe,se,Q,E,M){const _=new d.OperatorList,J=O.Dict.merge({xref:this.xref,dictArray:[se.get("Resources"),Y]});return this.getOperatorList({stream:oe,task:E,resources:J,operatorList:_}).then(function(){const K=_.getIR(),te=(0,D.getTilingPatternIR)(K,se,G);Q.addDependencies(_.dependencies),Q.addOp(U,te),se.objId&&M.set(null,se.objId,{operatorListIR:K,dict:se})}).catch(K=>{if(!(K instanceof t.AbortException)){if(this.options.ignoreErrors){this.handler.send("UnsupportedFeature",{featureId:t.UNSUPPORTED_FEATURES.errorTilingPattern}),(0,t.warn)(`handleTilingType - ignoring pattern: "${K}".`);return}throw K}})}handleSetFont(U,G,Y,oe,se,Q){let E=arguments.length>6&&arguments[6]!==void 0?arguments[6]:null,M=arguments.length>7&&arguments[7]!==void 0?arguments[7]:null;const _=G&&G[0]instanceof O.Name?G[0].name:null;return this.loadFont(_,Y,U,E,M).then(J=>J.font.isType3Font?J.loadType3Data(this,U,se).then(function(){return oe.addDependencies(J.type3Dependencies),J}).catch(K=>(this.handler.send("UnsupportedFeature",{featureId:t.UNSUPPORTED_FEATURES.errorFontLoadType3}),new H({loadedName:"g_font_error",font:new P.ErrorFont(`Type3 font load error: ${K}`),dict:J.font,evaluatorOptions:this.options}))):J).then(J=>(Q.font=J.font,J.send(this.handler),J.loadedName))}handleText(U,G){const Y=G.font,oe=Y.charsToGlyphs(U);return Y.data&&(G.textRenderingMode&t.TextRenderingMode.ADD_TO_PATH_FLAG||G.fillColorSpace.name==="Pattern"||Y.disableFontFace||this.options.disableFontFace)&&y.buildFontPaths(Y,oe,this.handler,this.options),oe}ensureStateFont(U){if(U.font)return;const G=new t.FormatError("Missing setFont (Tf) operator before text rendering operator.");if(this.options.ignoreErrors){this.handler.send("UnsupportedFeature",{featureId:t.UNSUPPORTED_FEATURES.errorFontState}),(0,t.warn)(`ensureStateFont: "${G}".`);return}throw G}async setGState(U){let{resources:G,gState:Y,operatorList:oe,cacheKey:se,task:Q,stateManager:E,localGStateCache:M,localColorSpaceCache:_}=U;const J=Y.objId;let K=!0;const te=[];let Z=Promise.resolve();for(const ce of Y.getKeys()){const ne=Y.get(ce);switch(ce){case"Type":break;case"LW":case"LC":case"LJ":case"ML":case"D":case"RI":case"FL":case"CA":case"ca":te.push([ce,ne]);break;case"Font":K=!1,Z=Z.then(()=>this.handleSetFont(G,null,ne[0],oe,Q,E.state).then(function(ie){oe.addDependency(ie),te.push([ce,[ie,ne[1]]])}));break;case"BM":te.push([ce,v(ne)]);break;case"SMask":if((0,O.isName)(ne,"None")){te.push([ce,!1]);break}ne instanceof O.Dict?(K=!1,Z=Z.then(()=>this.handleSMask(ne,G,oe,Q,E,_)),te.push([ce,!0])):(0,t.warn)("Unsupported SMask type");break;case"TR":const re=this.handleTransferFunction(ne);te.push([ce,re]);break;case"OP":case"op":case"OPM":case"BG":case"BG2":case"UCR":case"UCR2":case"TR2":case"HT":case"SM":case"SA":case"AIS":case"TK":(0,t.info)("graphic state operator "+ce);break;default:(0,t.info)("Unknown graphic state operator "+ce);break}}return Z.then(function(){te.length>0&&oe.addOp(t.OPS.setGState,[te]),K&&M.set(se,J,te)})}loadFont(U,G,Y){let oe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,se=arguments.length>4&&arguments[4]!==void 0?arguments[4]:null;const Q=async()=>new H({loadedName:"g_font_error",font:new P.ErrorFont(`Font "${U}" is not available.`),dict:G,evaluatorOptions:this.options}),E=this.xref;let M;if(G)G instanceof O.Ref&&(M=G);else{const ne=Y.get("Font");ne&&(M=ne.getRaw(U))}if(!M){const ne=`Font "${U||G&&G.toString()}" is not available`;if(!this.options.ignoreErrors&&!this.parsingType3Font)return(0,t.warn)(`${ne}.`),Q();this.handler.send("UnsupportedFeature",{featureId:t.UNSUPPORTED_FEATURES.errorFontMissing}),(0,t.warn)(`${ne} -- attempting to fallback to a default font.`),oe?M=oe:M=y.fallbackFontDict}if(this.parsingType3Font&&this.type3FontRefs.has(M))return Q();if(this.fontCache.has(M))return this.fontCache.get(M);if(G=E.fetchIfRef(M),!(G instanceof O.Dict))return Q();if(G.cacheKey&&this.fontCache.has(G.cacheKey))return this.fontCache.get(G.cacheKey);const _=(0,t.createPromiseCapability)();let J;try{J=this.preEvaluateFont(G),J.cssFontInfo=se}catch(ne){return(0,t.warn)(`loadFont - preEvaluateFont failed: "${ne}".`),Q()}const{descriptor:K,hash:te}=J,Z=M instanceof O.Ref;let ce;if(Z&&(ce=`f${M.toString()}`),te&&K instanceof O.Dict){K.fontAliases||(K.fontAliases=Object.create(null));const ne=K.fontAliases;if(ne[te]){const re=ne[te].aliasRef;if(Z&&re&&this.fontCache.has(re))return this.fontCache.putAlias(M,re),this.fontCache.get(M)}else ne[te]={fontID:this.idFactory.createFontId()};Z&&(ne[te].aliasRef=M),ce=ne[te].fontID}return Z?this.fontCache.put(M,_.promise):(ce||(ce=this.idFactory.createFontId()),G.cacheKey=`cacheKey_${ce}`,this.fontCache.put(G.cacheKey,_.promise)),(0,t.assert)(ce&&ce.startsWith("f"),'The "fontID" must be (correctly) defined.'),G.loadedName=`${this.idFactory.getDocId()}_${ce}`,this.translateFont(J).then(ne=>{_.resolve(new H({loadedName:G.loadedName,font:ne,dict:G,evaluatorOptions:this.options}))}).catch(ne=>{this.handler.send("UnsupportedFeature",{featureId:t.UNSUPPORTED_FEATURES.errorFontTranslate}),(0,t.warn)(`loadFont - translateFont failed: "${ne}".`),_.resolve(new H({loadedName:G.loadedName,font:new P.ErrorFont(ne instanceof Error?ne.message:ne),dict:G,evaluatorOptions:this.options}))}),_.promise}buildPath(U,G,Y){let oe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;const se=U.length-1;if(Y||(Y=[]),se<0||U.fnArray[se]!==t.OPS.constructPath){oe&&((0,t.warn)(`Encountered path operator "${G}" inside of a text object.`),U.addOp(t.OPS.save,null));let Q;switch(G){case t.OPS.rectangle:const E=Y[0]+Y[2],M=Y[1]+Y[3];Q=[Math.min(Y[0],E),Math.max(Y[0],E),Math.min(Y[1],M),Math.max(Y[1],M)];break;case t.OPS.moveTo:case t.OPS.lineTo:Q=[Y[0],Y[0],Y[1],Y[1]];break;default:Q=[1/0,-1/0,1/0,-1/0];break}U.addOp(t.OPS.constructPath,[[G],Y,Q]),oe&&U.addOp(t.OPS.restore,null)}else{const Q=U.argsArray[se];Q[0].push(G),Q[1].push(...Y);const E=Q[2];switch(G){case t.OPS.rectangle:const M=Y[0]+Y[2],_=Y[1]+Y[3];E[0]=Math.min(E[0],Y[0],M),E[1]=Math.max(E[1],Y[0],M),E[2]=Math.min(E[2],Y[1],_),E[3]=Math.max(E[3],Y[1],_);break;case t.OPS.moveTo:case t.OPS.lineTo:E[0]=Math.min(E[0],Y[0]),E[1]=Math.max(E[1],Y[0]),E[2]=Math.min(E[2],Y[1]),E[3]=Math.max(E[3],Y[1]);break}}}parseColorSpace(U){let{cs:G,resources:Y,localColorSpaceCache:oe}=U;return c.ColorSpace.parseAsync({cs:G,xref:this.xref,resources:Y,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:oe}).catch(se=>{if(se instanceof t.AbortException)return null;if(this.options.ignoreErrors)return this.handler.send("UnsupportedFeature",{featureId:t.UNSUPPORTED_FEATURES.errorColorSpace}),(0,t.warn)(`parseColorSpace - ignoring ColorSpace: "${se}".`),null;throw se})}parseShading(U){let{shading:G,resources:Y,localColorSpaceCache:oe,localShadingPatternCache:se}=U,Q=se.get(G);if(!Q){var E=D.Pattern.parseShading(G,this.xref,Y,this.handler,this._pdfFunctionFactory,oe);const M=E.getIR();Q=`pattern_${this.idFactory.createObjId()}`,se.set(G,Q),this.handler.send("obj",[Q,this.pageIndex,"Pattern",M])}return Q}handleColorN(U,G,Y,oe,se,Q,E,M,_,J){const K=Y.pop();if(K instanceof O.Name){const te=se.getRaw(K.name),Z=te instanceof O.Ref&&_.getByRef(te);if(Z)try{const ne=oe.base?oe.base.getRgb(Y,0):null,re=(0,D.getTilingPatternIR)(Z.operatorListIR,Z.dict,ne);U.addOp(G,re);return}catch{}const ce=this.xref.fetchIfRef(te);if(ce){const ne=ce instanceof B.BaseStream?ce.dict:ce,re=ne.get("PatternType");if(re===o.TILING){const ie=oe.base?oe.base.getRgb(Y,0):null;return this.handleTilingType(G,ie,Q,ce,ne,U,E,_)}else if(re===o.SHADING){const ie=ne.get("Shading"),ae=ne.getArray("Matrix"),ue=this.parseShading({shading:ie,resources:Q,localColorSpaceCache:M,localShadingPatternCache:J});U.addOp(G,["Shading",ue,ae]);return}throw new t.FormatError(`Unknown PatternType: ${re}`)}}throw new t.FormatError(`Unknown PatternName: ${K}`)}_parseVisibilityExpression(U,G,Y){if(++G>10){(0,t.warn)("Visibility expression is too deeply nested");return}const se=U.length,Q=this.xref.fetchIfRef(U[0]);if(se<2||!(Q instanceof O.Name)){(0,t.warn)("Invalid visibility expression");return}switch(Q.name){case"And":case"Or":case"Not":Y.push(Q.name);break;default:(0,t.warn)(`Invalid operator ${Q.name} in visibility expression`);return}for(let E=1;E<se;E++){const M=U[E],_=this.xref.fetchIfRef(M);if(Array.isArray(_)){const J=[];Y.push(J),this._parseVisibilityExpression(_,G,J)}else M instanceof O.Ref&&Y.push(M.toString())}}async parseMarkedContentProps(U,G){let Y;if(U instanceof O.Name)Y=G.get("Properties").get(U.name);else if(U instanceof O.Dict)Y=U;else throw new t.FormatError("Optional content properties malformed.");const oe=Y.get("Type").name;if(oe==="OCG")return{type:oe,id:Y.objId};if(oe==="OCMD"){const se=Y.get("VE");if(Array.isArray(se)){const E=[];if(this._parseVisibilityExpression(se,0,E),E.length>0)return{type:"OCMD",expression:E}}const Q=Y.get("OCGs");if(Array.isArray(Q)||Q instanceof O.Dict){const E=[];if(Array.isArray(Q))for(const M of Q)E.push(M.toString());else E.push(Q.objId);return{type:oe,ids:E,policy:Y.get("P")instanceof O.Name?Y.get("P").name:null,expression:null}}else if(Q instanceof O.Ref)return{type:oe,id:Q.toString()}}return null}getOperatorList(U){let{stream:G,task:Y,resources:oe,operatorList:se,initialState:Q=null,fallbackFontDict:E=null}=U;if(oe=oe||O.Dict.empty,Q=Q||new j,!se)throw new Error('getOperatorList: missing "operatorList" parameter');const M=this,_=this.xref;let J=!1;const K=new n.LocalImageCache,te=new n.LocalColorSpaceCache,Z=new n.LocalGStateCache,ce=new n.LocalTilingPatternCache,ne=new Map,re=oe.get("XObject")||O.Dict.empty,ie=oe.get("Pattern")||O.Dict.empty,ae=new z(Q),ue=new V(G,_,ae),fe=new T;function me(Fe){for(let pe=0,Ce=ue.savedStatesDepth;pe<Ce;pe++)se.addOp(t.OPS.restore,[])}return new Promise(function Fe(pe,Ce){const be=function(Ne){Promise.all([Ne,se.ready]).then(function(){try{Fe(pe,Ce)}catch(Me){Ce(Me)}},Ce)};Y.ensureNotTerminated(),fe.reset();const Ie={};let ye,de,ge,xe,Oe,je;for(;!(ye=fe.check())&&(Ie.args=null,!!ue.read(Ie));){let Ne=Ie.args,Me=Ie.fn;switch(Me|0){case t.OPS.paintXObject:if(je=Ne[0]instanceof O.Name,Oe=Ne[0].name,je){const _e=K.getByName(Oe);if(_e){se.addImageOps(_e.fn,_e.args,_e.optionalContent),R(_e),Ne=null;continue}}be(new Promise(function(_e,rt){if(!je)throw new t.FormatError("XObject must be referred to by name.");let Xe=re.getRaw(Oe);if(Xe instanceof O.Ref){const et=K.getByRef(Xe);if(et){se.addImageOps(et.fn,et.args,et.optionalContent),R(et),_e();return}const pt=M.globalImageCache.getData(Xe,M.pageIndex);if(pt){se.addDependency(pt.objId),se.addImageOps(pt.fn,pt.args,pt.optionalContent),_e();return}Xe=_.fetch(Xe)}if(!(Xe instanceof B.BaseStream))throw new t.FormatError("XObject should be a stream");const Je=Xe.dict.get("Subtype");if(!(Je instanceof O.Name))throw new t.FormatError("XObject should have a Name subtype");if(Je.name==="Form"){ae.save(),M.buildFormXObject(oe,Xe,null,se,Y,ae.state.clone(),te).then(function(){ae.restore(),_e()},rt);return}else if(Je.name==="Image"){M.buildPaintImageXObject({resources:oe,image:Xe,operatorList:se,cacheKey:Oe,localImageCache:K,localColorSpaceCache:te}).then(_e,rt);return}else if(Je.name==="PS")(0,t.info)("Ignored XObject subtype PS");else throw new t.FormatError(`Unhandled XObject subtype ${Je.name}`);_e()}).catch(function(_e){if(!(_e instanceof t.AbortException)){if(M.options.ignoreErrors){M.handler.send("UnsupportedFeature",{featureId:t.UNSUPPORTED_FEATURES.errorXObject}),(0,t.warn)(`getOperatorList - ignoring XObject: "${_e}".`);return}throw _e}}));return;case t.OPS.setFont:var it=Ne[1];be(M.handleSetFont(oe,Ne,null,se,Y,ae.state,E).then(function(_e){se.addDependency(_e),se.addOp(t.OPS.setFont,[_e,it])}));return;case t.OPS.beginText:J=!0;break;case t.OPS.endText:J=!1;break;case t.OPS.endInlineImage:var ke=Ne[0].cacheKey;if(ke){const _e=K.getByName(ke);if(_e){se.addImageOps(_e.fn,_e.args,_e.optionalContent),R(_e),Ne=null;continue}}be(M.buildPaintImageXObject({resources:oe,image:Ne[0],isInline:!0,operatorList:se,cacheKey:ke,localImageCache:K,localColorSpaceCache:te}));return;case t.OPS.showText:if(!ae.state.font){M.ensureStateFont(ae.state);continue}Ne[0]=M.handleText(Ne[0],ae.state);break;case t.OPS.showSpacedText:if(!ae.state.font){M.ensureStateFont(ae.state);continue}var $e=[],Ge=ae.state;for(const _e of Ne[0])typeof _e=="string"?$e.push(...M.handleText(_e,Ge)):typeof _e=="number"&&$e.push(_e);Ne[0]=$e,Me=t.OPS.showText;break;case t.OPS.nextLineShowText:if(!ae.state.font){M.ensureStateFont(ae.state);continue}se.addOp(t.OPS.nextLine),Ne[0]=M.handleText(Ne[0],ae.state),Me=t.OPS.showText;break;case t.OPS.nextLineSetSpacingShowText:if(!ae.state.font){M.ensureStateFont(ae.state);continue}se.addOp(t.OPS.nextLine),se.addOp(t.OPS.setWordSpacing,[Ne.shift()]),se.addOp(t.OPS.setCharSpacing,[Ne.shift()]),Ne[0]=M.handleText(Ne[0],ae.state),Me=t.OPS.showText;break;case t.OPS.setTextRenderingMode:ae.state.textRenderingMode=Ne[0];break;case t.OPS.setFillColorSpace:{const _e=c.ColorSpace.getCached(Ne[0],_,te);if(_e){ae.state.fillColorSpace=_e;continue}be(M.parseColorSpace({cs:Ne[0],resources:oe,localColorSpaceCache:te}).then(function(rt){rt&&(ae.state.fillColorSpace=rt)}));return}case t.OPS.setStrokeColorSpace:{const _e=c.ColorSpace.getCached(Ne[0],_,te);if(_e){ae.state.strokeColorSpace=_e;continue}be(M.parseColorSpace({cs:Ne[0],resources:oe,localColorSpaceCache:te}).then(function(rt){rt&&(ae.state.strokeColorSpace=rt)}));return}case t.OPS.setFillColor:xe=ae.state.fillColorSpace,Ne=xe.getRgb(Ne,0),Me=t.OPS.setFillRGBColor;break;case t.OPS.setStrokeColor:xe=ae.state.strokeColorSpace,Ne=xe.getRgb(Ne,0),Me=t.OPS.setStrokeRGBColor;break;case t.OPS.setFillGray:ae.state.fillColorSpace=c.ColorSpace.singletons.gray,Ne=c.ColorSpace.singletons.gray.getRgb(Ne,0),Me=t.OPS.setFillRGBColor;break;case t.OPS.setStrokeGray:ae.state.strokeColorSpace=c.ColorSpace.singletons.gray,Ne=c.ColorSpace.singletons.gray.getRgb(Ne,0),Me=t.OPS.setStrokeRGBColor;break;case t.OPS.setFillCMYKColor:ae.state.fillColorSpace=c.ColorSpace.singletons.cmyk,Ne=c.ColorSpace.singletons.cmyk.getRgb(Ne,0),Me=t.OPS.setFillRGBColor;break;case t.OPS.setStrokeCMYKColor:ae.state.strokeColorSpace=c.ColorSpace.singletons.cmyk,Ne=c.ColorSpace.singletons.cmyk.getRgb(Ne,0),Me=t.OPS.setStrokeRGBColor;break;case t.OPS.setFillRGBColor:ae.state.fillColorSpace=c.ColorSpace.singletons.rgb,Ne=c.ColorSpace.singletons.rgb.getRgb(Ne,0);break;case t.OPS.setStrokeRGBColor:ae.state.strokeColorSpace=c.ColorSpace.singletons.rgb,Ne=c.ColorSpace.singletons.rgb.getRgb(Ne,0);break;case t.OPS.setFillColorN:if(xe=ae.state.fillColorSpace,xe.name==="Pattern"){be(M.handleColorN(se,t.OPS.setFillColorN,Ne,xe,ie,oe,Y,te,ce,ne));return}Ne=xe.getRgb(Ne,0),Me=t.OPS.setFillRGBColor;break;case t.OPS.setStrokeColorN:if(xe=ae.state.strokeColorSpace,xe.name==="Pattern"){be(M.handleColorN(se,t.OPS.setStrokeColorN,Ne,xe,ie,oe,Y,te,ce,ne));return}Ne=xe.getRgb(Ne,0),Me=t.OPS.setStrokeRGBColor;break;case t.OPS.shadingFill:var Qe=oe.get("Shading");if(!Qe)throw new t.FormatError("No shading resource found");var ve=Qe.get(Ne[0].name);if(!ve)throw new t.FormatError("No shading object found");Ne=[M.parseShading({shading:ve,resources:oe,localColorSpaceCache:te,localShadingPatternCache:ne})],Me=t.OPS.shadingFill;break;case t.OPS.setGState:if(je=Ne[0]instanceof O.Name,Oe=Ne[0].name,je){const _e=Z.getByName(Oe);if(_e){_e.length>0&&se.addOp(t.OPS.setGState,[_e]),Ne=null;continue}}be(new Promise(function(_e,rt){if(!je)throw new t.FormatError("GState must be referred to by name.");const Xe=oe.get("ExtGState");if(!(Xe instanceof O.Dict))throw new t.FormatError("ExtGState should be a dictionary.");const Je=Xe.get(Oe);if(!(Je instanceof O.Dict))throw new t.FormatError("GState should be a dictionary.");M.setGState({resources:oe,gState:Je,operatorList:se,cacheKey:Oe,task:Y,stateManager:ae,localGStateCache:Z,localColorSpaceCache:te}).then(_e,rt)}).catch(function(_e){if(!(_e instanceof t.AbortException)){if(M.options.ignoreErrors){M.handler.send("UnsupportedFeature",{featureId:t.UNSUPPORTED_FEATURES.errorExtGState}),(0,t.warn)(`getOperatorList - ignoring ExtGState: "${_e}".`);return}throw _e}}));return;case t.OPS.moveTo:case t.OPS.lineTo:case t.OPS.curveTo:case t.OPS.curveTo2:case t.OPS.curveTo3:case t.OPS.closePath:case t.OPS.rectangle:M.buildPath(se,Me,Ne,J);continue;case t.OPS.markPoint:case t.OPS.markPointProps:case t.OPS.beginCompat:case t.OPS.endCompat:continue;case t.OPS.beginMarkedContentProps:if(!(Ne[0]instanceof O.Name)){(0,t.warn)(`Expected name for beginMarkedContentProps arg0=${Ne[0]}`);continue}if(Ne[0].name==="OC"){be(M.parseMarkedContentProps(Ne[1],oe).then(_e=>{se.addOp(t.OPS.beginMarkedContentProps,["OC",_e])}).catch(_e=>{if(!(_e instanceof t.AbortException)){if(M.options.ignoreErrors){M.handler.send("UnsupportedFeature",{featureId:t.UNSUPPORTED_FEATURES.errorMarkedContent}),(0,t.warn)(`getOperatorList - ignoring beginMarkedContentProps: "${_e}".`);return}throw _e}}));return}Ne=[Ne[0].name,Ne[1]instanceof O.Dict?Ne[1].get("MCID"):null];break;case t.OPS.beginMarkedContent:case t.OPS.endMarkedContent:default:if(Ne!==null){for(de=0,ge=Ne.length;de<ge&&!(Ne[de]instanceof O.Dict);de++);if(de<ge){(0,t.warn)("getOperatorList - ignoring operator: "+Me);continue}}}se.addOp(Me,Ne)}if(ye){be(p);return}me(),pe()}).catch(Fe=>{if(!(Fe instanceof t.AbortException)){if(this.options.ignoreErrors){this.handler.send("UnsupportedFeature",{featureId:t.UNSUPPORTED_FEATURES.errorOperatorList}),(0,t.warn)(`getOperatorList - ignoring errors during "${Y.name}" task: "${Fe}".`),me();return}throw Fe}})}getTextContent(U){let{stream:G,task:Y,resources:oe,stateManager:se=null,combineTextItems:Q=!1,includeMarkedContent:E=!1,sink:M,seenStyles:_=new Set,viewBox:J,markedContentData:K=null}=U;oe=oe||O.Dict.empty,se=se||new z(new $),E&&(K=K||{level:0});const te={items:[],styles:Object.create(null)},Z={initialized:!1,str:[],totalWidth:0,totalHeight:0,width:0,height:0,vertical:!1,prevTransform:null,textAdvanceScale:0,spaceInFlowMin:0,spaceInFlowMax:0,trackingSpaceMin:1/0,negativeSpaceMax:-1/0,notASpace:-1/0,transform:null,fontName:null,hasEOL:!1},ce=[" "," "];let ne=0;function re(Xe){const Je=(ne+1)%2,et=ce[ne]!==" "&&ce[Je]===" ";return ce[ne]=Xe,ne=Je,et}function ie(){ce[0]=ce[1]=" ",ne=0}const ae=.1,ue=.03,fe=-.2,me=.1,Fe=.6,pe=this,Ce=this.xref,be=[];let Ie=null;const ye=new n.LocalImageCache,de=new n.LocalGStateCache,ge=new V(G,Ce,se);let xe;function Oe(){const Xe=xe.font,Je=[xe.fontSize*xe.textHScale,0,0,xe.fontSize,0,xe.textRise];if(Xe.isType3Font&&(xe.fontSize<=1||Xe.isCharBBox)&&!(0,t.isArrayEqual)(xe.fontMatrix,t.FONT_IDENTITY_MATRIX)){const et=Xe.bbox[3]-Xe.bbox[1];et>0&&(Je[3]*=et*xe.fontMatrix[3])}return t.Util.transform(xe.ctm,t.Util.transform(xe.textMatrix,Je))}function je(){if(Z.initialized)return Z;const{font:Xe,loadedName:Je}=xe;_.has(Je)||(_.add(Je),te.styles[Je]={fontFamily:Xe.fallbackName,ascent:Xe.ascent,descent:Xe.descent,vertical:Xe.vertical}),Z.fontName=Je;const et=Z.transform=Oe();Xe.vertical?(Z.width=Z.totalWidth=Math.hypot(et[0],et[1]),Z.height=Z.totalHeight=0,Z.vertical=!0):(Z.width=Z.totalWidth=0,Z.height=Z.totalHeight=Math.hypot(et[2],et[3]),Z.vertical=!1);const pt=Math.hypot(xe.textLineMatrix[0],xe.textLineMatrix[1]),xt=Math.hypot(xe.ctm[0],xe.ctm[1]);return Z.textAdvanceScale=xt*pt,Z.trackingSpaceMin=xe.fontSize*ae,Z.notASpace=xe.fontSize*ue,Z.negativeSpaceMax=xe.fontSize*fe,Z.spaceInFlowMin=xe.fontSize*me,Z.spaceInFlowMax=xe.fontSize*Fe,Z.hasEOL=!1,Z.initialized=!0,Z}function it(){if(!Z.initialized)return;const Xe=Math.hypot(xe.textLineMatrix[0],xe.textLineMatrix[1]),et=Math.hypot(xe.ctm[0],xe.ctm[1])*Xe;et!==Z.textAdvanceScale&&(Z.vertical?(Z.totalHeight+=Z.height*Z.textAdvanceScale,Z.height=0):(Z.totalWidth+=Z.width*Z.textAdvanceScale,Z.width=0),Z.textAdvanceScale=et)}function ke(Xe){const Je=Xe.str.join(""),et=(0,h.bidi)(Je,-1,Xe.vertical);return{str:et.str,dir:et.dir,width:Math.abs(Xe.totalWidth),height:Math.abs(Xe.totalHeight),transform:Xe.transform,fontName:Xe.fontName,hasEOL:Xe.hasEOL}}function $e(Xe,Je){return pe.loadFont(Xe,Je,oe).then(function(et){return et.font.isType3Font?et.loadType3Data(pe,oe,Y).catch(function(){}).then(function(){return et}):et}).then(function(et){xe.loadedName=et.loadedName,xe.font=et.font,xe.fontMatrix=et.font.fontMatrix||t.FONT_IDENTITY_MATRIX})}function Ge(Xe,Je,et){const pt=Math.hypot(et[0],et[1]);return[(et[0]*Xe+et[1]*Je)/pt,(et[2]*Xe+et[3]*Je)/pt]}function Qe(){const Xe=Oe();let Je=Xe[4],et=Xe[5];const pt=Je-J[0],xt=et-J[1];if(pt<0||pt>J[2]||xt<0||xt>J[3])return!1;if(!Q||!xe.font||!Z.prevTransform)return!0;let Ot=Z.prevTransform[4],st=Z.prevTransform[5];if(Ot===Je&&st===et)return!0;let Nt=-1;switch(Xe[0]&&Xe[1]===0&&Xe[2]===0?Nt=Xe[0]>0?0:180:Xe[1]&&Xe[0]===0&&Xe[3]===0&&(Nt=Xe[1]>0?90:270),Nt){case 0:break;case 90:[Je,et]=[et,Je],[Ot,st]=[st,Ot];break;case 180:[Je,et,Ot,st]=[-Je,-et,-Ot,-st];break;case 270:[Je,et]=[-et,-Je],[Ot,st]=[-st,-Ot];break;default:[Je,et]=Ge(Je,et,Xe),[Ot,st]=Ge(Ot,st,Z.prevTransform)}if(xe.font.vertical){const Le=(st-et)/Z.textAdvanceScale,Re=Je-Ot,Ue=Math.sign(Z.height);return Le<Ue*Z.negativeSpaceMax?Math.abs(Re)>.5*Z.width?(Ne(),!0):(ie(),nt(),!0):Math.abs(Re)>Z.width?(Ne(),!0):(Le<=Ue*Z.notASpace&&ie(),Le<=Ue*Z.trackingSpaceMin?Z.height+=Le:Me(Le,Z.prevTransform,Ue)||(Z.str.length===0?(ie(),te.items.push({str:" ",dir:"ltr",width:0,height:Math.abs(Le),transform:Z.prevTransform,fontName:Z.fontName,hasEOL:!1})):Z.height+=Le),!0)}const Ut=(Je-Ot)/Z.textAdvanceScale,_t=et-st,Tt=Math.sign(Z.width);return Ut<Tt*Z.negativeSpaceMax?Math.abs(_t)>.5*Z.height?(Ne(),!0):(ie(),nt(),!0):Math.abs(_t)>Z.height?(Ne(),!0):(Ut<=Tt*Z.notASpace&&ie(),Ut<=Tt*Z.trackingSpaceMin?Z.width+=Ut:Me(Ut,Z.prevTransform,Tt)||(Z.str.length===0?(ie(),te.items.push({str:" ",dir:"ltr",width:Math.abs(Ut),height:0,transform:Z.prevTransform,fontName:Z.fontName,hasEOL:!1})):Z.width+=Ut),!0)}function ve(Xe){let{chars:Je,extraSpacing:et}=Xe;const pt=xe.font;if(!Je){const st=xe.charSpacing+et;st&&(pt.vertical?xe.translateTextMatrix(0,-st):xe.translateTextMatrix(st*xe.textHScale,0));return}const xt=pt.charsToGlyphs(Je),Ot=xe.fontMatrix[0]*xe.fontSize;for(let st=0,Nt=xt.length;st<Nt;st++){const Ut=xt[st],{category:_t}=Ut;if(_t.isInvisibleFormatMark)continue;let Tt=xe.charSpacing+(st+1===Nt?et:0),Le=Ut.width;pt.vertical&&(Le=Ut.vmetric?Ut.vmetric[0]:-Le);let Re=Le*Ot;if(_t.isWhitespace){pt.vertical?(Tt+=-Re+xe.wordSpacing,xe.translateTextMatrix(0,-Tt)):(Tt+=Re+xe.wordSpacing,xe.translateTextMatrix(Tt*xe.textHScale,0)),re(" ");continue}if(!_t.isZeroWidthDiacritic&&!Qe())continue;const Ue=je();_t.isZeroWidthDiacritic&&(Re=0),pt.vertical?(xe.translateTextMatrix(0,Re),Re=Math.abs(Re),Ue.height+=Re):(Re*=xe.textHScale,xe.translateTextMatrix(Re,0),Ue.width+=Re),Re&&(Ue.prevTransform=Oe());const Ke=Ut.normalizedUnicode;re(Ke)&&Ue.str.push(" "),Ue.str.push(Ke),Tt&&(pt.vertical?xe.translateTextMatrix(0,-Tt):xe.translateTextMatrix(Tt*xe.textHScale,0))}}function Ne(){ie(),Z.initialized?(Z.hasEOL=!0,nt()):te.items.push({str:"",dir:"ltr",width:0,height:0,transform:Oe(),fontName:xe.loadedName,hasEOL:!0})}function Me(Xe,Je,et){if(et*Z.spaceInFlowMin<=Xe&&Xe<=et*Z.spaceInFlowMax)return Z.initialized&&(ie(),Z.str.push(" ")),!1;const pt=Z.fontName;let xt=0;return Z.vertical&&(xt=Xe,Xe=0),nt(),ie(),te.items.push({str:" ",dir:"ltr",width:Math.abs(Xe),height:Math.abs(xt),transform:Je||Oe(),fontName:pt,hasEOL:!1}),!0}function nt(){!Z.initialized||!Z.str||(Z.vertical?Z.totalHeight+=Z.height*Z.textAdvanceScale:Z.totalWidth+=Z.width*Z.textAdvanceScale,te.items.push(ke(Z)),Z.initialized=!1,Z.str.length=0)}function _e(){let Xe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const Je=te.items.length;Je!==0&&(Xe&&Je<A||(M.enqueue(te,Je),te.items=[],te.styles=Object.create(null)))}const rt=new T;return new Promise(function Xe(Je,et){const pt=function(Le){_e(!0),Promise.all([Le,M.ready]).then(function(){try{Xe(Je,et)}catch(Re){et(Re)}},et)};Y.ensureNotTerminated(),rt.reset();const xt={};let Ot,st=[];for(;!(Ot=rt.check())&&(st.length=0,xt.args=st,!!ge.read(xt));){xe=se.state;const Le=xt.fn;switch(st=xt.args,Le|0){case t.OPS.setFont:var Nt=st[0].name,Ut=st[1];if(xe.font&&Nt===xe.fontName&&Ut===xe.fontSize)break;nt(),xe.fontName=Nt,xe.fontSize=Ut,pt($e(Nt,null));return;case t.OPS.setTextRise:xe.textRise=st[0];break;case t.OPS.setHScale:xe.textHScale=st[0]/100;break;case t.OPS.setLeading:xe.leading=st[0];break;case t.OPS.moveText:xe.translateTextLineMatrix(st[0],st[1]),xe.textMatrix=xe.textLineMatrix.slice();break;case t.OPS.setLeadingMoveText:xe.leading=-st[1],xe.translateTextLineMatrix(st[0],st[1]),xe.textMatrix=xe.textLineMatrix.slice();break;case t.OPS.nextLine:xe.carriageReturn();break;case t.OPS.setTextMatrix:xe.setTextMatrix(st[0],st[1],st[2],st[3],st[4],st[5]),xe.setTextLineMatrix(st[0],st[1],st[2],st[3],st[4],st[5]),it();break;case t.OPS.setCharSpacing:xe.charSpacing=st[0];break;case t.OPS.setWordSpacing:xe.wordSpacing=st[0];break;case t.OPS.beginText:xe.textMatrix=t.IDENTITY_MATRIX.slice(),xe.textLineMatrix=t.IDENTITY_MATRIX.slice();break;case t.OPS.showSpacedText:if(!se.state.font){pe.ensureStateFont(se.state);continue}const Re=(xe.font.vertical?1:-1)*xe.fontSize/1e3,Ue=st[0];for(let He=0,lt=Ue.length;He<lt-1;He++){const Ze=Ue[He];if(typeof Ze=="string")be.push(Ze);else if(typeof Ze=="number"&&Ze!==0){const qe=be.join("");be.length=0,ve({chars:qe,extraSpacing:Ze*Re})}}const Ke=Ue.at(-1);if(typeof Ke=="string"&&be.push(Ke),be.length>0){const He=be.join("");be.length=0,ve({chars:He,extraSpacing:0})}break;case t.OPS.showText:if(!se.state.font){pe.ensureStateFont(se.state);continue}ve({chars:st[0],extraSpacing:0});break;case t.OPS.nextLineShowText:if(!se.state.font){pe.ensureStateFont(se.state);continue}xe.carriageReturn(),ve({chars:st[0],extraSpacing:0});break;case t.OPS.nextLineSetSpacingShowText:if(!se.state.font){pe.ensureStateFont(se.state);continue}xe.wordSpacing=st[0],xe.charSpacing=st[1],xe.carriageReturn(),ve({chars:st[2],extraSpacing:0});break;case t.OPS.paintXObject:nt(),Ie||(Ie=oe.get("XObject")||O.Dict.empty);var _t=st[0]instanceof O.Name,Tt=st[0].name;if(_t&&ye.getByName(Tt))break;pt(new Promise(function(He,lt){if(!_t)throw new t.FormatError("XObject must be referred to by name.");let Ze=Ie.getRaw(Tt);if(Ze instanceof O.Ref){if(ye.getByRef(Ze)){He();return}if(pe.globalImageCache.getData(Ze,pe.pageIndex)){He();return}Ze=Ce.fetch(Ze)}if(!(Ze instanceof B.BaseStream))throw new t.FormatError("XObject should be a stream");const qe=Ze.dict.get("Subtype");if(!(qe instanceof O.Name))throw new t.FormatError("XObject should have a Name subtype");if(qe.name!=="Form"){ye.set(Tt,Ze.dict.objId,!0),He();return}const dt=se.state.clone(),gt=new z(dt),we=Ze.dict.getArray("Matrix");Array.isArray(we)&&we.length===6&&gt.transform(we),_e();const Te={enqueueInvoked:!1,enqueue(Be,Ye){this.enqueueInvoked=!0,M.enqueue(Be,Ye)},get desiredSize(){return M.desiredSize},get ready(){return M.ready}};pe.getTextContent({stream:Ze,task:Y,resources:Ze.dict.get("Resources")||oe,stateManager:gt,combineTextItems:Q,includeMarkedContent:E,sink:Te,seenStyles:_,viewBox:J,markedContentData:K}).then(function(){Te.enqueueInvoked||ye.set(Tt,Ze.dict.objId,!0),He()},lt)}).catch(function(He){if(!(He instanceof t.AbortException)){if(pe.options.ignoreErrors){(0,t.warn)(`getTextContent - ignoring XObject: "${He}".`);return}throw He}}));return;case t.OPS.setGState:if(_t=st[0]instanceof O.Name,Tt=st[0].name,_t&&de.getByName(Tt))break;pt(new Promise(function(He,lt){if(!_t)throw new t.FormatError("GState must be referred to by name.");const Ze=oe.get("ExtGState");if(!(Ze instanceof O.Dict))throw new t.FormatError("ExtGState should be a dictionary.");const qe=Ze.get(Tt);if(!(qe instanceof O.Dict))throw new t.FormatError("GState should be a dictionary.");const dt=qe.get("Font");if(!dt){de.set(Tt,qe.objId,!0),He();return}nt(),xe.fontName=null,xe.fontSize=dt[1],$e(null,dt[0]).then(He,lt)}).catch(function(He){if(!(He instanceof t.AbortException)){if(pe.options.ignoreErrors){(0,t.warn)(`getTextContent - ignoring ExtGState: "${He}".`);return}throw He}}));return;case t.OPS.beginMarkedContent:nt(),E&&(K.level++,te.items.push({type:"beginMarkedContent",tag:st[0]instanceof O.Name?st[0].name:null}));break;case t.OPS.beginMarkedContentProps:if(nt(),E){K.level++;let He=null;st[1]instanceof O.Dict&&(He=st[1].get("MCID")),te.items.push({type:"beginMarkedContentProps",id:Number.isInteger(He)?`${pe.idFactory.getPageObjId()}_mcid${He}`:null,tag:st[0]instanceof O.Name?st[0].name:null})}break;case t.OPS.endMarkedContent:if(nt(),E){if(K.level===0)break;K.level--,te.items.push({type:"endMarkedContent"})}break}if(te.items.length>=M.desiredSize){Ot=!0;break}}if(Ot){pt(p);return}nt(),_e(),Je()}).catch(Xe=>{if(!(Xe instanceof t.AbortException)){if(this.options.ignoreErrors){(0,t.warn)(`getTextContent - ignoring errors during "${Y.name}" task: "${Xe}".`),nt(),_e();return}throw Xe}})}extractDataStructures(U,G,Y){const oe=this.xref;let se;const Q=this.readToUnicode(Y.toUnicode||U.get("ToUnicode")||G.get("ToUnicode"));if(Y.composite){const J=U.get("CIDSystemInfo");J instanceof O.Dict&&(Y.cidSystemInfo={registry:(0,t.stringToPDFString)(J.get("Registry")),ordering:(0,t.stringToPDFString)(J.get("Ordering")),supplement:J.get("Supplement")});try{const K=U.get("CIDToGIDMap");K instanceof B.BaseStream&&(se=K.getBytes())}catch(K){if(!this.options.ignoreErrors)throw K;(0,t.warn)(`extractDataStructures - ignoring CIDToGIDMap data: "${K}".`)}}const E=[];let M=null,_;if(U.has("Encoding")){if(_=U.get("Encoding"),_ instanceof O.Dict){if(M=_.get("BaseEncoding"),M=M instanceof O.Name?M.name:null,_.has("Differences")){const J=_.get("Differences");let K=0;for(const te of J){const Z=oe.fetchIfRef(te);if(typeof Z=="number")K=Z;else if(Z instanceof O.Name)E[K++]=Z.name;else throw new t.FormatError(`Invalid entry in 'Differences' array: ${Z}`)}}}else if(_ instanceof O.Name)M=_.name;else{const J="Encoding is not a Name nor a Dict";if(!this.options.ignoreErrors)throw new t.FormatError(J);(0,t.warn)(J)}M!=="MacRomanEncoding"&&M!=="MacExpertEncoding"&&M!=="WinAnsiEncoding"&&(M=null)}if(M)Y.defaultEncoding=(0,e.getEncoding)(M);else{const J=!!(Y.flags&u.FontFlags.Symbolic),K=!!(Y.flags&u.FontFlags.Nonsymbolic);_=e.StandardEncoding,Y.type==="TrueType"&&!K&&(_=e.WinAnsiEncoding),J&&(_=e.MacRomanEncoding,(!Y.file||Y.isInternalFont)&&(/Symbol/i.test(Y.name)?_=e.SymbolSetEncoding:/Dingbats|Wingdings/i.test(Y.name)&&(_=e.ZapfDingbatsEncoding))),Y.defaultEncoding=_}return Y.differences=E,Y.baseEncodingName=M,Y.hasEncoding=!!M||E.length>0,Y.dict=U,Q.then(J=>(Y.toUnicode=J,this.buildToUnicode(Y))).then(J=>(Y.toUnicode=J,se&&(Y.cidToGidMap=this.readCidToGidMap(se,J)),Y))}_simpleFontToUnicode(U){let G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;(0,t.assert)(!U.composite,"Must be a simple font.");const Y=[],oe=U.defaultEncoding.slice(),se=U.baseEncodingName,Q=U.differences;for(const M in Q){const _=Q[M];_!==".notdef"&&(oe[M]=_)}const E=(0,m.getGlyphsUnicode)();for(const M in oe){let _=oe[M];if(_==="")continue;let J=E[_];if(J!==void 0){Y[M]=String.fromCharCode(J);continue}let K=0;switch(_[0]){case"G":_.length===3&&(K=parseInt(_.substring(1),16));break;case"g":_.length===5&&(K=parseInt(_.substring(1),16));break;case"C":case"c":if(_.length>=3&&_.length<=4){const te=_.substring(1);if(G){K=parseInt(te,16);break}if(K=+te,Number.isNaN(K)&&Number.isInteger(parseInt(te,16)))return this._simpleFontToUnicode(U,!0)}break;case"u":J=(0,F.getUnicodeForGlyph)(_,E),J!==-1&&(K=J);break}if(K>0&&K<=1114111&&Number.isInteger(K)){if(se&&K===+M){const te=(0,e.getEncoding)(se);if(te&&(_=te[M])){Y[M]=String.fromCharCode(E[_]);continue}}Y[M]=String.fromCodePoint(K)}}return Y}async buildToUnicode(U){if(U.hasIncludedToUnicodeMap=!!U.toUnicode&&U.toUnicode.length>0,U.hasIncludedToUnicodeMap)return!U.composite&&U.hasEncoding&&(U.fallbackToUnicode=this._simpleFontToUnicode(U)),U.toUnicode;if(!U.composite)return new k.ToUnicodeMap(this._simpleFontToUnicode(U));if(U.composite&&(U.cMap.builtInCMap&&!(U.cMap instanceof i.IdentityCMap)||U.cidSystemInfo.registry==="Adobe"&&(U.cidSystemInfo.ordering==="GB1"||U.cidSystemInfo.ordering==="CNS1"||U.cidSystemInfo.ordering==="Japan1"||U.cidSystemInfo.ordering==="Korea1"))){const{registry:G,ordering:Y}=U.cidSystemInfo,oe=O.Name.get(`${G}-${Y}-UCS2`),se=await i.CMapFactory.create({encoding:oe,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null}),Q=[];return U.cMap.forEach(function(E,M){if(M>65535)throw new t.FormatError("Max size of CID is 65,535");const _=se.lookup(M);_&&(Q[E]=String.fromCharCode((_.charCodeAt(0)<<8)+_.charCodeAt(1)))}),new k.ToUnicodeMap(Q)}return new k.IdentityToUnicodeMap(U.firstChar,U.lastChar)}readToUnicode(U){return U?U instanceof O.Name?i.CMapFactory.create({encoding:U,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null}).then(function(G){return G instanceof i.IdentityCMap?new k.IdentityToUnicodeMap(0,65535):new k.ToUnicodeMap(G.getMap())}):U instanceof B.BaseStream?i.CMapFactory.create({encoding:U,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null}).then(function(G){if(G instanceof i.IdentityCMap)return new k.IdentityToUnicodeMap(0,65535);const Y=new Array(G.length);return G.forEach(function(oe,se){if(typeof se=="number"){Y[oe]=String.fromCodePoint(se);return}const Q=[];for(let E=0;E<se.length;E+=2){const M=se.charCodeAt(E)<<8|se.charCodeAt(E+1);if((M&63488)!==55296){Q.push(M);continue}E+=2;const _=se.charCodeAt(E)<<8|se.charCodeAt(E+1);Q.push(((M&1023)<<10)+(_&1023)+65536)}Y[oe]=String.fromCodePoint(...Q)}),new k.ToUnicodeMap(Y)},G=>{if(G instanceof t.AbortException)return null;if(this.options.ignoreErrors)return this.handler.send("UnsupportedFeature",{featureId:t.UNSUPPORTED_FEATURES.errorFontToUnicode}),(0,t.warn)(`readToUnicode - ignoring ToUnicode data: "${G}".`),null;throw G}):Promise.resolve(null):Promise.resolve(null)}readCidToGidMap(U,G){const Y=[];for(let oe=0,se=U.length;oe<se;oe++){const Q=U[oe++]<<8|U[oe],E=oe>>1;Q===0&&!G.has(E)||(Y[E]=Q)}return Y}extractWidths(U,G,Y){const oe=this.xref;let se=[],Q=0;const E=[];let M,_,J,K,te,Z,ce,ne;if(Y.composite){if(Q=U.has("DW")?U.get("DW"):1e3,ne=U.get("W"),ne)for(_=0,J=ne.length;_<J;_++)if(Z=oe.fetchIfRef(ne[_++]),ce=oe.fetchIfRef(ne[_]),Array.isArray(ce))for(K=0,te=ce.length;K<te;K++)se[Z++]=oe.fetchIfRef(ce[K]);else{const ae=oe.fetchIfRef(ne[++_]);for(K=Z;K<=ce;K++)se[K]=ae}if(Y.vertical){let ae=U.getArray("DW2")||[880,-1e3];if(M=[ae[1],Q*.5,ae[0]],ae=U.get("W2"),ae)for(_=0,J=ae.length;_<J;_++)if(Z=oe.fetchIfRef(ae[_++]),ce=oe.fetchIfRef(ae[_]),Array.isArray(ce))for(K=0,te=ce.length;K<te;K++)E[Z++]=[oe.fetchIfRef(ce[K++]),oe.fetchIfRef(ce[K++]),oe.fetchIfRef(ce[K])];else{const ue=[oe.fetchIfRef(ae[++_]),oe.fetchIfRef(ae[++_]),oe.fetchIfRef(ae[++_])];for(K=Z;K<=ce;K++)E[K]=ue}}}else{const ae=Y.firstChar;if(ne=U.get("Widths"),ne){for(K=ae,_=0,J=ne.length;_<J;_++)se[K++]=oe.fetchIfRef(ne[_]);Q=parseFloat(G.get("MissingWidth"))||0}else{const ue=U.get("BaseFont");if(ue instanceof O.Name){const fe=this.getBaseFontMetrics(ue.name);se=this.buildCharCodeToWidth(fe.widths,Y),Q=fe.defaultWidth}}}let re=!0,ie=Q;for(const ae in se){const ue=se[ae];if(ue){if(!ie){ie=ue;continue}if(ie!==ue){re=!1;break}}}re&&(Y.flags|=u.FontFlags.FixedPitch),Y.defaultWidth=Q,Y.widths=se,Y.defaultVMetrics=M,Y.vmetrics=E}isSerifFont(U){const G=U.split("-")[0];return G in(0,N.getSerifFonts)()||/serif/gi.test(G)}getBaseFontMetrics(U){let G=0,Y=Object.create(null),oe=!1,Q=(0,N.getStdFontMap)()[U]||U;const E=(0,f.getMetrics)();Q in E||(this.isSerifFont(U)?Q="Times-Roman":Q="Helvetica");const M=E[Q];return typeof M=="number"?(G=M,oe=!0):Y=M(),{defaultWidth:G,monospace:oe,widths:Y}}buildCharCodeToWidth(U,G){const Y=Object.create(null),oe=G.differences,se=G.defaultEncoding;for(let Q=0;Q<256;Q++){if(Q in oe&&U[oe[Q]]){Y[Q]=U[oe[Q]];continue}if(Q in se&&U[se[Q]]){Y[Q]=U[se[Q]];continue}}return Y}preEvaluateFont(U){const G=U;let Y=U.get("Subtype");if(!(Y instanceof O.Name))throw new t.FormatError("invalid font Subtype");let oe=!1,se,Q;if(Y.name==="Type0"){const J=U.get("DescendantFonts");if(!J)throw new t.FormatError("Descendant fonts are not specified");if(U=Array.isArray(J)?this.xref.fetchIfRef(J[0]):J,!(U instanceof O.Dict))throw new t.FormatError("Descendant font is not a dictionary.");if(Y=U.get("Subtype"),!(Y instanceof O.Name))throw new t.FormatError("invalid font Subtype");oe=!0}const E=U.get("FirstChar")||0,M=U.get("LastChar")||(oe?65535:255),_=U.get("FontDescriptor");if(_){se=new s.MurmurHash3_64;const J=G.getRaw("Encoding");if(J instanceof O.Name)se.update(J.name);else if(J instanceof O.Ref)se.update(J.toString());else if(J instanceof O.Dict){for(const te of J.getRawValues())if(te instanceof O.Name)se.update(te.name);else if(te instanceof O.Ref)se.update(te.toString());else if(Array.isArray(te)){const Z=te.length,ce=new Array(Z);for(let ne=0;ne<Z;ne++){const re=te[ne];re instanceof O.Name?ce[ne]=re.name:(typeof re=="number"||re instanceof O.Ref)&&(ce[ne]=re.toString())}se.update(ce.join())}}if(se.update(`${E}-${M}`),Q=U.get("ToUnicode")||G.get("ToUnicode"),Q instanceof B.BaseStream){const te=Q.str||Q,Z=te.buffer?new Uint8Array(te.buffer.buffer,0,te.bufferLength):new Uint8Array(te.bytes.buffer,te.start,te.end-te.start);se.update(Z)}else Q instanceof O.Name&&se.update(Q.name);const K=U.get("Widths")||G.get("Widths");if(Array.isArray(K)){const te=[];for(const Z of K)(typeof Z=="number"||Z instanceof O.Ref)&&te.push(Z.toString());se.update(te.join())}if(oe){se.update("compositeFont");const te=U.get("W")||G.get("W");if(Array.isArray(te)){const ce=[];for(const ne of te)if(typeof ne=="number"||ne instanceof O.Ref)ce.push(ne.toString());else if(Array.isArray(ne)){const re=[];for(const ie of ne)(typeof ie=="number"||ie instanceof O.Ref)&&re.push(ie.toString());ce.push(`[${re.join()}]`)}se.update(ce.join())}const Z=U.getRaw("CIDToGIDMap")||G.getRaw("CIDToGIDMap");Z instanceof O.Name?se.update(Z.name):Z instanceof O.Ref?se.update(Z.toString()):Z instanceof B.BaseStream&&se.update(Z.peekBytes())}}return{descriptor:_,dict:U,baseDict:G,composite:oe,type:Y.name,firstChar:E,lastChar:M,toUnicode:Q,hash:se?se.hexdigest():""}}async translateFont(U){let{descriptor:G,dict:Y,baseDict:oe,composite:se,type:Q,firstChar:E,lastChar:M,toUnicode:_,cssFontInfo:J}=U;const K=Q==="Type3";let te;if(!G)if(K)G=new O.Dict(null),G.set("FontName",O.Name.get(Q)),G.set("FontBBox",Y.getArray("FontBBox")||[0,0,0,0]);else{let pe=Y.get("BaseFont");if(!(pe instanceof O.Name))throw new t.FormatError("Base font is not specified");pe=pe.name.replace(/[,_]/g,"-");const Ce=this.getBaseFontMetrics(pe),be=pe.split("-")[0],Ie=(this.isSerifFont(be)?u.FontFlags.Serif:0)|(Ce.monospace?u.FontFlags.FixedPitch:0)|((0,N.getSymbolsFonts)()[be]?u.FontFlags.Symbolic:u.FontFlags.Nonsymbolic);te={type:Q,name:pe,loadedName:oe.loadedName,widths:Ce.widths,defaultWidth:Ce.defaultWidth,isSimulatedFlags:!0,flags:Ie,firstChar:E,lastChar:M,toUnicode:_,xHeight:0,capHeight:0,italicAngle:0,isType3Font:K};const ye=Y.get("Widths"),de=(0,N.getStandardFontName)(pe);let ge=null;return de&&(te.isStandardFont=!0,ge=await this.fetchStandardFontData(de),te.isInternalFont=!!ge),this.extractDataStructures(Y,Y,te).then(xe=>{if(ye){const Oe=[];let je=E;for(const it of ye)Oe[je++]=this.xref.fetchIfRef(it);xe.widths=Oe}else xe.widths=this.buildCharCodeToWidth(Ce.widths,xe);return new P.Font(pe,ge,xe)})}let Z=G.get("FontName"),ce=Y.get("BaseFont");if(typeof Z=="string"&&(Z=O.Name.get(Z)),typeof ce=="string"&&(ce=O.Name.get(ce)),!K){const pe=Z&&Z.name,Ce=ce&&ce.name;pe!==Ce&&((0,t.info)(`The FontDescriptor's FontName is "${pe}" but should be the same as the Font's BaseFont "${Ce}".`),pe&&Ce&&Ce.startsWith(pe)&&(Z=ce))}if(Z=Z||ce,!(Z instanceof O.Name))throw new t.FormatError("invalid font name");let ne,re,ie,ae,ue;try{ne=G.get("FontFile","FontFile2","FontFile3")}catch(pe){if(!this.options.ignoreErrors)throw pe;(0,t.warn)(`translateFont - fetching "${Z.name}" font file: "${pe}".`),ne=new I.NullStream}let fe=!1,me=!1,Fe=null;if(ne){if(ne.dict){const pe=ne.dict.get("Subtype");pe instanceof O.Name&&(re=pe.name),ie=ne.dict.get("Length1"),ae=ne.dict.get("Length2"),ue=ne.dict.get("Length3")}}else if(J){const pe=(0,L.getXfaFontName)(Z.name);pe&&(J.fontFamily=`${J.fontFamily}-PdfJS-XFA`,J.metrics=pe.metrics||null,Fe=pe.factors||null,ne=await this.fetchStandardFontData(pe.name),me=!!ne,oe=Y=(0,L.getXfaFontDict)(Z.name),se=!0)}else if(!K){const pe=(0,N.getStandardFontName)(Z.name);pe&&(fe=!0,ne=await this.fetchStandardFontData(pe),me=!!ne)}if(te={type:Q,name:Z.name,subtype:re,file:ne,length1:ie,length2:ae,length3:ue,isStandardFont:fe,isInternalFont:me,loadedName:oe.loadedName,composite:se,fixedPitch:!1,fontMatrix:Y.getArray("FontMatrix")||t.FONT_IDENTITY_MATRIX,firstChar:E,lastChar:M,toUnicode:_,bbox:G.getArray("FontBBox")||Y.getArray("FontBBox"),ascent:G.get("Ascent"),descent:G.get("Descent"),xHeight:G.get("XHeight")||0,capHeight:G.get("CapHeight")||0,flags:G.get("Flags"),italicAngle:G.get("ItalicAngle")||0,isType3Font:K,cssFontInfo:J,scaleFactors:Fe},se){const pe=oe.get("Encoding");pe instanceof O.Name&&(te.cidEncoding=pe.name);const Ce=await i.CMapFactory.create({encoding:pe,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null});te.cMap=Ce,te.vertical=te.cMap.vertical}return this.extractDataStructures(Y,oe,te).then(pe=>(this.extractWidths(Y,G,pe),new P.Font(Z.name,ne,pe)))}static buildFontPaths(U,G,Y,oe){function se(Q){const E=`${U.loadedName}_path_${Q}`;try{if(U.renderer.hasBuiltPath(Q))return;Y.send("commonobj",[E,"FontPath",U.renderer.getPathJs(Q)])}catch(M){if(oe.ignoreErrors){Y.send("UnsupportedFeature",{featureId:t.UNSUPPORTED_FEATURES.errorFontBuildPath}),(0,t.warn)(`buildFontPaths - ignoring ${E} glyph: "${M}".`);return}throw M}}for(const Q of G){se(Q.fontChar);const E=Q.accent;E&&E.fontChar&&se(E.fontChar)}}static get fallbackFontDict(){const U=new O.Dict;return U.set("BaseFont",O.Name.get("PDFJS-FallbackFont")),U.set("Type",O.Name.get("FallbackType")),U.set("Subtype",O.Name.get("FallbackType")),U.set("Encoding",O.Name.get("WinAnsiEncoding")),(0,t.shadow)(this,"fallbackFontDict",U)}}l.PartialEvaluator=y;class H{constructor(U){let{loadedName:G,font:Y,dict:oe,evaluatorOptions:se}=U;this.loadedName=G,this.font=Y,this.dict=oe,this._evaluatorOptions=se||r,this.type3Loaded=null,this.type3Dependencies=Y.isType3Font?new Set:null,this.sent=!1}send(U){this.sent||(this.sent=!0,U.send("commonobj",[this.loadedName,"Font",this.font.exportData(this._evaluatorOptions.fontExtraProperties)]))}fallback(U){this.font.data&&(this.font.disableFontFace=!0,y.buildFontPaths(this.font,this.font.glyphCacheValues,U,this._evaluatorOptions))}loadType3Data(U,G,Y){if(this.type3Loaded)return this.type3Loaded;if(!this.font.isType3Font)throw new Error("Must be a Type3 font.");const oe=U.clone({ignoreErrors:!1});oe.parsingType3Font=!0;const se=new O.RefSet(U.type3FontRefs);this.dict.objId&&!se.has(this.dict.objId)&&se.put(this.dict.objId),oe.type3FontRefs=se;const Q=this.font,E=this.type3Dependencies;let M=Promise.resolve();const _=this.dict.get("CharProcs"),J=this.dict.get("Resources")||G,K=Object.create(null),te=t.Util.normalizeRect(Q.bbox||[0,0,0,0]),Z=te[2]-te[0],ce=te[3]-te[1],ne=Math.hypot(Z,ce);for(const re of _.getKeys())M=M.then(()=>{const ie=_.get(re),ae=new d.OperatorList;return oe.getOperatorList({stream:ie,task:Y,resources:J,operatorList:ae}).then(()=>{ae.fnArray[0]===t.OPS.setCharWidthAndBounds&&this._removeType3ColorOperators(ae,ne),K[re]=ae.getIR();for(const ue of ae.dependencies)E.add(ue)}).catch(function(ue){(0,t.warn)(`Type3 font resource "${re}" is not available.`);const fe=new d.OperatorList;K[re]=fe.getIR()})});return this.type3Loaded=M.then(()=>{Q.charProcOperatorList=K,this._bbox&&(Q.isCharBBox=!0,Q.bbox=this._bbox)}),this.type3Loaded}_removeType3ColorOperators(U){let G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:NaN;const Y=t.Util.normalizeRect(U.argsArray[0].slice(2)),oe=Y[2]-Y[0],se=Y[3]-Y[1],Q=Math.hypot(oe,se);oe===0||se===0?(U.fnArray.splice(0,1),U.argsArray.splice(0,1)):(G===0||Math.round(Q/G)>=10)&&(this._bbox||(this._bbox=[1/0,1/0,-1/0,-1/0]),this._bbox[0]=Math.min(this._bbox[0],Y[0]),this._bbox[1]=Math.min(this._bbox[1],Y[1]),this._bbox[2]=Math.max(this._bbox[2],Y[2]),this._bbox[3]=Math.max(this._bbox[3],Y[3]));let E=0,M=U.length;for(;E<M;){switch(U.fnArray[E]){case t.OPS.setCharWidthAndBounds:break;case t.OPS.setStrokeColorSpace:case t.OPS.setFillColorSpace:case t.OPS.setStrokeColor:case t.OPS.setStrokeColorN:case t.OPS.setFillColor:case t.OPS.setFillColorN:case t.OPS.setStrokeGray:case t.OPS.setFillGray:case t.OPS.setStrokeRGBColor:case t.OPS.setFillRGBColor:case t.OPS.setStrokeCMYKColor:case t.OPS.setFillCMYKColor:case t.OPS.shadingFill:case t.OPS.setRenderingIntent:U.fnArray.splice(E,1),U.argsArray.splice(E,1),M--;continue;case t.OPS.setGState:const[_]=U.argsArray[E];let J=0,K=_.length;for(;J<K;){const[te]=_[J];switch(te){case"TR":case"TR2":case"HT":case"BG":case"BG2":case"UCR":case"UCR2":_.splice(J,1),K--;continue}J++}break}E++}}}class z{constructor(){let U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new j;this.state=U,this.stateStack=[]}save(){const U=this.state;this.stateStack.push(this.state),this.state=U.clone()}restore(){const U=this.stateStack.pop();U&&(this.state=U)}transform(U){this.state.ctm=t.Util.transform(this.state.ctm,U)}}class ${constructor(){this.ctm=new Float32Array(t.IDENTITY_MATRIX),this.fontName=null,this.fontSize=0,this.loadedName=null,this.font=null,this.fontMatrix=t.FONT_IDENTITY_MATRIX,this.textMatrix=t.IDENTITY_MATRIX.slice(),this.textLineMatrix=t.IDENTITY_MATRIX.slice(),this.charSpacing=0,this.wordSpacing=0,this.leading=0,this.textHScale=1,this.textRise=0}setTextMatrix(U,G,Y,oe,se,Q){const E=this.textMatrix;E[0]=U,E[1]=G,E[2]=Y,E[3]=oe,E[4]=se,E[5]=Q}setTextLineMatrix(U,G,Y,oe,se,Q){const E=this.textLineMatrix;E[0]=U,E[1]=G,E[2]=Y,E[3]=oe,E[4]=se,E[5]=Q}translateTextMatrix(U,G){const Y=this.textMatrix;Y[4]=Y[0]*U+Y[2]*G+Y[4],Y[5]=Y[1]*U+Y[3]*G+Y[5]}translateTextLineMatrix(U,G){const Y=this.textLineMatrix;Y[4]=Y[0]*U+Y[2]*G+Y[4],Y[5]=Y[1]*U+Y[3]*G+Y[5]}carriageReturn(){this.translateTextLineMatrix(0,-this.leading),this.textMatrix=this.textLineMatrix.slice()}clone(){const U=Object.create(this);return U.textMatrix=this.textMatrix.slice(),U.textLineMatrix=this.textLineMatrix.slice(),U.fontMatrix=this.fontMatrix.slice(),U}}class j{constructor(){this.ctm=new Float32Array(t.IDENTITY_MATRIX),this.font=null,this.textRenderingMode=t.TextRenderingMode.FILL,this.fillColorSpace=c.ColorSpace.singletons.gray,this.strokeColorSpace=c.ColorSpace.singletons.gray}clone(){return Object.create(this)}}class V{static get opMap(){const U=(0,X.getLookupTableFactory)(function(G){G.w={id:t.OPS.setLineWidth,numArgs:1,variableArgs:!1},G.J={id:t.OPS.setLineCap,numArgs:1,variableArgs:!1},G.j={id:t.OPS.setLineJoin,numArgs:1,variableArgs:!1},G.M={id:t.OPS.setMiterLimit,numArgs:1,variableArgs:!1},G.d={id:t.OPS.setDash,numArgs:2,variableArgs:!1},G.ri={id:t.OPS.setRenderingIntent,numArgs:1,variableArgs:!1},G.i={id:t.OPS.setFlatness,numArgs:1,variableArgs:!1},G.gs={id:t.OPS.setGState,numArgs:1,variableArgs:!1},G.q={id:t.OPS.save,numArgs:0,variableArgs:!1},G.Q={id:t.OPS.restore,numArgs:0,variableArgs:!1},G.cm={id:t.OPS.transform,numArgs:6,variableArgs:!1},G.m={id:t.OPS.moveTo,numArgs:2,variableArgs:!1},G.l={id:t.OPS.lineTo,numArgs:2,variableArgs:!1},G.c={id:t.OPS.curveTo,numArgs:6,variableArgs:!1},G.v={id:t.OPS.curveTo2,numArgs:4,variableArgs:!1},G.y={id:t.OPS.curveTo3,numArgs:4,variableArgs:!1},G.h={id:t.OPS.closePath,numArgs:0,variableArgs:!1},G.re={id:t.OPS.rectangle,numArgs:4,variableArgs:!1},G.S={id:t.OPS.stroke,numArgs:0,variableArgs:!1},G.s={id:t.OPS.closeStroke,numArgs:0,variableArgs:!1},G.f={id:t.OPS.fill,numArgs:0,variableArgs:!1},G.F={id:t.OPS.fill,numArgs:0,variableArgs:!1},G["f*"]={id:t.OPS.eoFill,numArgs:0,variableArgs:!1},G.B={id:t.OPS.fillStroke,numArgs:0,variableArgs:!1},G["B*"]={id:t.OPS.eoFillStroke,numArgs:0,variableArgs:!1},G.b={id:t.OPS.closeFillStroke,numArgs:0,variableArgs:!1},G["b*"]={id:t.OPS.closeEOFillStroke,numArgs:0,variableArgs:!1},G.n={id:t.OPS.endPath,numArgs:0,variableArgs:!1},G.W={id:t.OPS.clip,numArgs:0,variableArgs:!1},G["W*"]={id:t.OPS.eoClip,numArgs:0,variableArgs:!1},G.BT={id:t.OPS.beginText,numArgs:0,variableArgs:!1},G.ET={id:t.OPS.endText,numArgs:0,variableArgs:!1},G.Tc={id:t.OPS.setCharSpacing,numArgs:1,variableArgs:!1},G.Tw={id:t.OPS.setWordSpacing,numArgs:1,variableArgs:!1},G.Tz={id:t.OPS.setHScale,numArgs:1,variableArgs:!1},G.TL={id:t.OPS.setLeading,numArgs:1,variableArgs:!1},G.Tf={id:t.OPS.setFont,numArgs:2,variableArgs:!1},G.Tr={id:t.OPS.setTextRenderingMode,numArgs:1,variableArgs:!1},G.Ts={id:t.OPS.setTextRise,numArgs:1,variableArgs:!1},G.Td={id:t.OPS.moveText,numArgs:2,variableArgs:!1},G.TD={id:t.OPS.setLeadingMoveText,numArgs:2,variableArgs:!1},G.Tm={id:t.OPS.setTextMatrix,numArgs:6,variableArgs:!1},G["T*"]={id:t.OPS.nextLine,numArgs:0,variableArgs:!1},G.Tj={id:t.OPS.showText,numArgs:1,variableArgs:!1},G.TJ={id:t.OPS.showSpacedText,numArgs:1,variableArgs:!1},G["'"]={id:t.OPS.nextLineShowText,numArgs:1,variableArgs:!1},G['"']={id:t.OPS.nextLineSetSpacingShowText,numArgs:3,variableArgs:!1},G.d0={id:t.OPS.setCharWidth,numArgs:2,variableArgs:!1},G.d1={id:t.OPS.setCharWidthAndBounds,numArgs:6,variableArgs:!1},G.CS={id:t.OPS.setStrokeColorSpace,numArgs:1,variableArgs:!1},G.cs={id:t.OPS.setFillColorSpace,numArgs:1,variableArgs:!1},G.SC={id:t.OPS.setStrokeColor,numArgs:4,variableArgs:!0},G.SCN={id:t.OPS.setStrokeColorN,numArgs:33,variableArgs:!0},G.sc={id:t.OPS.setFillColor,numArgs:4,variableArgs:!0},G.scn={id:t.OPS.setFillColorN,numArgs:33,variableArgs:!0},G.G={id:t.OPS.setStrokeGray,numArgs:1,variableArgs:!1},G.g={id:t.OPS.setFillGray,numArgs:1,variableArgs:!1},G.RG={id:t.OPS.setStrokeRGBColor,numArgs:3,variableArgs:!1},G.rg={id:t.OPS.setFillRGBColor,numArgs:3,variableArgs:!1},G.K={id:t.OPS.setStrokeCMYKColor,numArgs:4,variableArgs:!1},G.k={id:t.OPS.setFillCMYKColor,numArgs:4,variableArgs:!1},G.sh={id:t.OPS.shadingFill,numArgs:1,variableArgs:!1},G.BI={id:t.OPS.beginInlineImage,numArgs:0,variableArgs:!1},G.ID={id:t.OPS.beginImageData,numArgs:0,variableArgs:!1},G.EI={id:t.OPS.endInlineImage,numArgs:1,variableArgs:!1},G.Do={id:t.OPS.paintXObject,numArgs:1,variableArgs:!1},G.MP={id:t.OPS.markPoint,numArgs:1,variableArgs:!1},G.DP={id:t.OPS.markPointProps,numArgs:2,variableArgs:!1},G.BMC={id:t.OPS.beginMarkedContent,numArgs:1,variableArgs:!1},G.BDC={id:t.OPS.beginMarkedContentProps,numArgs:2,variableArgs:!1},G.EMC={id:t.OPS.endMarkedContent,numArgs:0,variableArgs:!1},G.BX={id:t.OPS.beginCompat,numArgs:0,variableArgs:!1},G.EX={id:t.OPS.endCompat,numArgs:0,variableArgs:!1},G.BM=null,G.BD=null,G.true=null,G.fa=null,G.fal=null,G.fals=null,G.false=null,G.nu=null,G.nul=null,G.null=null});return(0,t.shadow)(this,"opMap",U())}static get MAX_INVALID_PATH_OPS(){return(0,t.shadow)(this,"MAX_INVALID_PATH_OPS",10)}constructor(U,G){let Y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:new z;this.parser=new g.Parser({lexer:new g.Lexer(U,V.opMap),xref:G}),this.stateManager=Y,this.nonProcessedArgs=[],this._isPathOp=!1,this._numInvalidPathOPS=0}get savedStatesDepth(){return this.stateManager.stateStack.length}read(U){let G=U.args;for(;;){const Y=this.parser.getObj();if(Y instanceof O.Cmd){const oe=Y.cmd,se=V.opMap[oe];if(!se){(0,t.warn)(`Unknown command "${oe}".`);continue}const Q=se.id,E=se.numArgs;let M=G!==null?G.length:0;if(this._isPathOp||(this._numInvalidPathOPS=0),this._isPathOp=Q>=t.OPS.moveTo&&Q<=t.OPS.endPath,se.variableArgs)M>E&&(0,t.info)(`Command ${oe}: expected [0, ${E}] args, but received ${M} args.`);else{if(M!==E){const _=this.nonProcessedArgs;for(;M>E;)_.push(G.shift()),M--;for(;M<E&&_.length!==0;)G===null&&(G=[]),G.unshift(_.pop()),M++}if(M<E){const _=`command ${oe}: expected ${E} args, but received ${M} args.`;if(this._isPathOp&&++this._numInvalidPathOPS>V.MAX_INVALID_PATH_OPS)throw new t.FormatError(`Invalid ${_}`);(0,t.warn)(`Skipping ${_}`),G!==null&&(G.length=0);continue}}return this.preprocessCommand(Q,G),U.fn=Q,U.args=G,!0}if(Y===O.EOF)return!1;if(Y!==null&&(G===null&&(G=[]),G.push(Y),G.length>33))throw new t.FormatError("Too many arguments")}}preprocessCommand(U,G){switch(U|0){case t.OPS.save:this.stateManager.save();break;case t.OPS.restore:this.stateManager.restore();break;case t.OPS.transform:this.stateManager.transform(G);break}}}l.EvaluatorPreprocessor=V},(he,l,w)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.IdentityCMap=l.CMapFactory=l.CMap=void 0;var t=w(2),i=w(137),O=w(138),P=w(148),e=w(136),N=w(141);const D=["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"],L=2**24-1;class k{constructor(){let B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;this.codespaceRanges=[[],[],[],[]],this.numCodespaceRanges=0,this._map=[],this.name="",this.vertical=!1,this.useCMap=null,this.builtInCMap=B}addCodespaceRange(B,h,c){this.codespaceRanges[B-1].push(h,c),this.numCodespaceRanges++}mapCidRange(B,h,c){if(h-B>L)throw new Error("mapCidRange - ignoring data above MAX_MAP_RANGE.");for(;B<=h;)this._map[B++]=c++}mapBfRange(B,h,c){if(h-B>L)throw new Error("mapBfRange - ignoring data above MAX_MAP_RANGE.");const C=c.length-1;for(;B<=h;){this._map[B++]=c;const u=c.charCodeAt(C)+1;if(u>255){c=c.substring(0,C-1)+String.fromCharCode(c.charCodeAt(C-1)+1)+"\0";continue}c=c.substring(0,C)+String.fromCharCode(u)}}mapBfRangeToArray(B,h,c){if(h-B>L)throw new Error("mapBfRangeToArray - ignoring data above MAX_MAP_RANGE.");const C=c.length;let u=0;for(;B<=h&&u<C;)this._map[B]=c[u++],++B}mapOne(B,h){this._map[B]=h}lookup(B){return this._map[B]}contains(B){return this._map[B]!==void 0}forEach(B){const h=this._map,c=h.length;if(c<=65536)for(let C=0;C<c;C++)h[C]!==void 0&&B(C,h[C]);else for(const C in h)B(C,h[C])}charCodeOf(B){const h=this._map;if(h.length<=65536)return h.indexOf(B);for(const c in h)if(h[c]===B)return c|0;return-1}getMap(){return this._map}readCharCode(B,h,c){let C=0;const u=this.codespaceRanges;for(let m=0,X=u.length;m<X;m++){C=(C<<8|B.charCodeAt(h+m))>>>0;const f=u[m];for(let F=0,s=f.length;F<s;){const d=f[F++],S=f[F++];if(C>=d&&C<=S){c.charcode=C,c.length=m+1;return}}}c.charcode=0,c.length=1}getCharCodeLength(B){const h=this.codespaceRanges;for(let c=0,C=h.length;c<C;c++){const u=h[c];for(let m=0,X=u.length;m<X;){const f=u[m++],F=u[m++];if(B>=f&&B<=F)return c+1}}return 1}get length(){return this._map.length}get isIdentityCMap(){if(!(this.name==="Identity-H"||this.name==="Identity-V")||this._map.length!==65536)return!1;for(let B=0;B<65536;B++)if(this._map[B]!==B)return!1;return!0}}l.CMap=k;class x extends k{constructor(B,h){super(),this.vertical=B,this.addCodespaceRange(h,0,65535)}mapCidRange(B,h,c){(0,t.unreachable)("should not call mapCidRange")}mapBfRange(B,h,c){(0,t.unreachable)("should not call mapBfRange")}mapBfRangeToArray(B,h,c){(0,t.unreachable)("should not call mapBfRangeToArray")}mapOne(B,h){(0,t.unreachable)("should not call mapCidOne")}lookup(B){return Number.isInteger(B)&&B<=65535?B:void 0}contains(B){return Number.isInteger(B)&&B<=65535}forEach(B){for(let h=0;h<=65535;h++)B(h,h)}charCodeOf(B){return Number.isInteger(B)&&B<=65535?B:-1}getMap(){const B=new Array(65536);for(let h=0;h<=65535;h++)B[h]=h;return B}get length(){return 65536}get isIdentityCMap(){(0,t.unreachable)("should not access .isIdentityCMap")}}l.IdentityCMap=x;const g=function(){function B(F,s){let d=0;for(let S=0;S<=s;S++)d=d<<8|F[S];return d>>>0}function h(F,s){return s===1?String.fromCharCode(F[0],F[1]):s===3?String.fromCharCode(F[0],F[1],F[2],F[3]):String.fromCharCode.apply(null,F.subarray(0,s+1))}function c(F,s,d){let S=0;for(let r=d;r>=0;r--)S+=F[r]+s[r],F[r]=S&255,S>>=8}function C(F,s){let d=1;for(let S=s;S>=0&&d>0;S--)d+=F[S],F[S]=d&255,d>>=8}const u=16,m=19;class X{constructor(s){this.buffer=s,this.pos=0,this.end=s.length,this.tmpBuf=new Uint8Array(m)}readByte(){return this.pos>=this.end?-1:this.buffer[this.pos++]}readNumber(){let s=0,d;do{const S=this.readByte();if(S<0)throw new t.FormatError("unexpected EOF in bcmap");d=!(S&128),s=s<<7|S&127}while(!d);return s}readSigned(){const s=this.readNumber();return s&1?~(s>>>1):s>>>1}readHex(s,d){s.set(this.buffer.subarray(this.pos,this.pos+d+1)),this.pos+=d+1}readHexNumber(s,d){let S;const r=this.tmpBuf;let o=0;do{const R=this.readByte();if(R<0)throw new t.FormatError("unexpected EOF in bcmap");S=!(R&128),r[o++]=R&127}while(!S);let A=d,p=0,v=0;for(;A>=0;){for(;v<8&&r.length>0;)p|=r[--o]<<v,v+=7;s[A]=p&255,A--,p>>=8,v-=8}}readHexSigned(s,d){this.readHexNumber(s,d);const S=s[d]&1?255:0;let r=0;for(let o=0;o<=d;o++)r=(r&1)<<8|s[o],s[o]=r>>1^S}readString(){const s=this.readNumber();let d="";for(let S=0;S<s;S++)d+=String.fromCharCode(this.readNumber());return d}}class f{async process(s,d,S){const r=new X(s),o=r.readByte();d.vertical=!!(o&1);let A=null;const p=new Uint8Array(u),v=new Uint8Array(u),R=new Uint8Array(u),T=new Uint8Array(u),y=new Uint8Array(u);let H,z;for(;(z=r.readByte())>=0;){const $=z>>5;if($===7){switch(z&31){case 0:r.readString();break;case 1:A=r.readString();break}continue}const j=!!(z&16),V=z&15;if(V+1>u)throw new Error("BinaryCMapReader.process: Invalid dataSize.");const ee=1,U=r.readNumber();switch($){case 0:r.readHex(p,V),r.readHexNumber(v,V),c(v,p,V),d.addCodespaceRange(V+1,B(p,V),B(v,V));for(let G=1;G<U;G++)C(v,V),r.readHexNumber(p,V),c(p,v,V),r.readHexNumber(v,V),c(v,p,V),d.addCodespaceRange(V+1,B(p,V),B(v,V));break;case 1:r.readHex(p,V),r.readHexNumber(v,V),c(v,p,V),r.readNumber();for(let G=1;G<U;G++)C(v,V),r.readHexNumber(p,V),c(p,v,V),r.readHexNumber(v,V),c(v,p,V),r.readNumber();break;case 2:r.readHex(R,V),H=r.readNumber(),d.mapOne(B(R,V),H);for(let G=1;G<U;G++)C(R,V),j||(r.readHexNumber(y,V),c(R,y,V)),H=r.readSigned()+(H+1),d.mapOne(B(R,V),H);break;case 3:r.readHex(p,V),r.readHexNumber(v,V),c(v,p,V),H=r.readNumber(),d.mapCidRange(B(p,V),B(v,V),H);for(let G=1;G<U;G++)C(v,V),j?p.set(v):(r.readHexNumber(p,V),c(p,v,V)),r.readHexNumber(v,V),c(v,p,V),H=r.readNumber(),d.mapCidRange(B(p,V),B(v,V),H);break;case 4:r.readHex(R,ee),r.readHex(T,V),d.mapOne(B(R,ee),h(T,V));for(let G=1;G<U;G++)C(R,ee),j||(r.readHexNumber(y,ee),c(R,y,ee)),C(T,V),r.readHexSigned(y,V),c(T,y,V),d.mapOne(B(R,ee),h(T,V));break;case 5:r.readHex(p,ee),r.readHexNumber(v,ee),c(v,p,ee),r.readHex(T,V),d.mapBfRange(B(p,ee),B(v,ee),h(T,V));for(let G=1;G<U;G++)C(v,ee),j?p.set(v):(r.readHexNumber(p,ee),c(p,v,ee)),r.readHexNumber(v,ee),c(v,p,ee),r.readHex(T,V),d.mapBfRange(B(p,ee),B(v,ee),h(T,V));break;default:throw new Error(`BinaryCMapReader.process - unknown type: ${$}`)}}return A?S(A):d}}return f}(),n=function(){function B(o){let A=0;for(let p=0;p<o.length;p++)A=A<<8|o.charCodeAt(p);return A>>>0}function h(o){if(typeof o!="string")throw new t.FormatError("Malformed CMap: expected string.")}function c(o){if(!Number.isInteger(o))throw new t.FormatError("Malformed CMap: expected int.")}function C(o,A){for(;;){let p=A.getObj();if(p===i.EOF)break;if((0,i.isCmd)(p,"endbfchar"))return;h(p);const v=B(p);p=A.getObj(),h(p);const R=p;o.mapOne(v,R)}}function u(o,A){for(;;){let p=A.getObj();if(p===i.EOF)break;if((0,i.isCmd)(p,"endbfrange"))return;h(p);const v=B(p);p=A.getObj(),h(p);const R=B(p);if(p=A.getObj(),Number.isInteger(p)||typeof p=="string"){const T=Number.isInteger(p)?String.fromCharCode(p):p;o.mapBfRange(v,R,T)}else if((0,i.isCmd)(p,"[")){p=A.getObj();const T=[];for(;!(0,i.isCmd)(p,"]")&&p!==i.EOF;)T.push(p),p=A.getObj();o.mapBfRangeToArray(v,R,T)}else break}throw new t.FormatError("Invalid bf range.")}function m(o,A){for(;;){let p=A.getObj();if(p===i.EOF)break;if((0,i.isCmd)(p,"endcidchar"))return;h(p);const v=B(p);p=A.getObj(),c(p);const R=p;o.mapOne(v,R)}}function X(o,A){for(;;){let p=A.getObj();if(p===i.EOF)break;if((0,i.isCmd)(p,"endcidrange"))return;h(p);const v=B(p);p=A.getObj(),h(p);const R=B(p);p=A.getObj(),c(p);const T=p;o.mapCidRange(v,R,T)}}function f(o,A){for(;;){let p=A.getObj();if(p===i.EOF)break;if((0,i.isCmd)(p,"endcodespacerange"))return;if(typeof p!="string")break;const v=B(p);if(p=A.getObj(),typeof p!="string")break;const R=B(p);o.addCodespaceRange(p.length,v,R)}throw new t.FormatError("Invalid codespace range.")}function F(o,A){const p=A.getObj();Number.isInteger(p)&&(o.vertical=!!p)}function s(o,A){const p=A.getObj();p instanceof i.Name&&(o.name=p.name)}async function d(o,A,p,v){let R,T;e:for(;;)try{const y=A.getObj();if(y===i.EOF)break;if(y instanceof i.Name)y.name==="WMode"?F(o,A):y.name==="CMapName"&&s(o,A),R=y;else if(y instanceof i.Cmd)switch(y.cmd){case"endcmap":break e;case"usecmap":R instanceof i.Name&&(T=R.name);break;case"begincodespacerange":f(o,A);break;case"beginbfchar":C(o,A);break;case"begincidchar":m(o,A);break;case"beginbfrange":u(o,A);break;case"begincidrange":X(o,A);break}}catch(y){if(y instanceof e.MissingDataException)throw y;(0,t.warn)("Invalid cMap data: "+y);continue}return!v&&T&&(v=T),v?S(o,p,v):o}async function S(o,A,p){if(o.useCMap=await r(p,A),o.numCodespaceRanges===0){const v=o.useCMap.codespaceRanges;for(let R=0;R<v.length;R++)o.codespaceRanges[R]=v[R].slice();o.numCodespaceRanges=o.useCMap.numCodespaceRanges}return o.useCMap.forEach(function(v,R){o.contains(v)||o.mapOne(v,o.useCMap.lookup(v))}),o}async function r(o,A){if(o==="Identity-H")return new x(!1,2);if(o==="Identity-V")return new x(!0,2);if(!D.includes(o))throw new Error("Unknown CMap name: "+o);if(!A)throw new Error("Built-in CMap parameters are not provided.");const{cMapData:p,compressionType:v}=await A(o),R=new k(!0);if(v===t.CMapCompressionType.BINARY)return new g().process(p,R,T=>S(R,A,T));if(v===t.CMapCompressionType.NONE){const T=new P.Lexer(new N.Stream(p));return d(R,T,A,null)}throw new Error(`Invalid CMap "compressionType" value: ${v}`)}return{async create(o){const A=o.encoding,p=o.fetchBuiltInCMap,v=o.useCMap;if(A instanceof i.Name)return r(A.name,p);if(A instanceof O.BaseStream){const R=await d(new k,new P.Lexer(A),p,v);return R.isIdentityCMap?r(R.name,p):R}throw new Error("Encoding required.")}}}();l.CMapFactory=n},(he,l,w)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.Parser=l.Linearization=l.Lexer=void 0;var t=w(2),i=w(137),O=w(136),P=w(149),e=w(151),N=w(152),D=w(154),L=w(155),k=w(158),x=w(160),g=w(162),n=w(141),I=w(163),B=w(164);const h=1e3;function c(F){const s=[],d=F.length;let S=0;for(;S<d-1;)s.push(F[S++]<<8|F[S++]);return S<d&&s.push(F[S]),d+"_"+String.fromCharCode.apply(null,s)}class C{constructor(s){let{lexer:d,xref:S,allowStreams:r=!1,recoveryMode:o=!1}=s;this.lexer=d,this.xref=S,this.allowStreams=r,this.recoveryMode=o,this.imageCache=Object.create(null),this._imageId=0,this.refill()}refill(){this.buf1=this.lexer.getObj(),this.buf2=this.lexer.getObj()}shift(){this.buf2 instanceof i.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(s){if(s instanceof O.MissingDataException)throw s;return!1}}getObj(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;const d=this.buf1;if(this.shift(),d instanceof i.Cmd)switch(d.cmd){case"BI":return this.makeInlineImage(s);case"[":const S=[];for(;!(0,i.isCmd)(this.buf1,"]")&&this.buf1!==i.EOF;)S.push(this.getObj(s));if(this.buf1===i.EOF){if(this.recoveryMode)return S;throw new O.ParserEOFException("End of file inside array.")}return this.shift(),S;case"<<":const r=new i.Dict(this.xref);for(;!(0,i.isCmd)(this.buf1,">>")&&this.buf1!==i.EOF;){if(!(this.buf1 instanceof i.Name)){(0,t.info)("Malformed dictionary: key must be a name object"),this.shift();continue}const o=this.buf1.name;if(this.shift(),this.buf1===i.EOF)break;r.set(o,this.getObj(s))}if(this.buf1===i.EOF){if(this.recoveryMode)return r;throw new O.ParserEOFException("End of file inside dictionary.")}return(0,i.isCmd)(this.buf2,"stream")?this.allowStreams?this.makeStream(r,s):r:(this.shift(),r);default:return d}if(Number.isInteger(d)){if(Number.isInteger(this.buf1)&&(0,i.isCmd)(this.buf2,"R")){const S=i.Ref.get(d,this.buf1);return this.shift(),this.shift(),S}return d}return typeof d=="string"&&s?s.decryptString(d):d}findDefaultInlineStreamEnd(s){const v=this.lexer,R=s.pos,T=10;let y=0,H,z;for(;(H=s.getByte())!==-1;)if(y===0)y=H===69?1:0;else if(y===1)y=H===73?2:0;else if(H===32||H===10||H===13){z=s.pos;const j=s.peekBytes(T);for(let V=0,ee=j.length;V<ee;V++)if(H=j[V],!(H===0&&j[V+1]!==0)&&H!==10&&H!==13&&(H<32||H>127)){y=0;break}if(y!==2)continue;if(v.knownCommands){const V=v.peekObj();V instanceof i.Cmd&&!v.knownCommands[V.cmd]&&(y=0)}else(0,t.warn)("findDefaultInlineStreamEnd - `lexer.knownCommands` is undefined.");if(y===2)break}else y=0;H===-1&&((0,t.warn)("findDefaultInlineStreamEnd: Reached the end of the stream without finding a valid EI marker"),z&&((0,t.warn)('... trying to recover by using the last "EI" occurrence.'),s.skip(-(s.pos-z))));let $=4;return s.skip(-$),H=s.peekByte(),s.skip($),(0,O.isWhiteSpace)(H)||$--,s.pos-$-R}findDCTDecodeInlineStreamEnd(s){const d=s.pos;let S=!1,r,o;for(;(r=s.getByte())!==-1;)if(r===255){switch(s.getByte()){case 0:break;case 255:s.skip(-1);break;case 217:S=!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:o=s.getUint16(),o>2?s.skip(o-2):s.skip(-2);break}if(S)break}const A=s.pos-d;return r===-1?((0,t.warn)("Inline DCTDecode image stream: EOI marker not found, searching for /EI/ instead."),s.skip(-A),this.findDefaultInlineStreamEnd(s)):(this.inlineStreamSkipEI(s),A)}findASCII85DecodeInlineStreamEnd(s){const r=s.pos;let o;for(;(o=s.getByte())!==-1;)if(o===126){const p=s.pos;for(o=s.peekByte();(0,O.isWhiteSpace)(o);)s.skip(),o=s.peekByte();if(o===62){s.skip();break}if(s.pos>p){const v=s.peekBytes(2);if(v[0]===69&&v[1]===73)break}}const A=s.pos-r;return o===-1?((0,t.warn)("Inline ASCII85Decode image stream: EOD marker not found, searching for /EI/ instead."),s.skip(-A),this.findDefaultInlineStreamEnd(s)):(this.inlineStreamSkipEI(s),A)}findASCIIHexDecodeInlineStreamEnd(s){const S=s.pos;let r;for(;(r=s.getByte())!==-1&&r!==62;);const o=s.pos-S;return r===-1?((0,t.warn)("Inline ASCIIHexDecode image stream: EOD marker not found, searching for /EI/ instead."),s.skip(-o),this.findDefaultInlineStreamEnd(s)):(this.inlineStreamSkipEI(s),o)}inlineStreamSkipEI(s){let r=0,o;for(;(o=s.getByte())!==-1;)if(r===0)r=o===69?1:0;else if(r===1)r=o===73?2:0;else if(r===2)break}makeInlineImage(s){const d=this.lexer,S=d.stream,r=Object.create(null);let o;for(;!(0,i.isCmd)(this.buf1,"ID")&&this.buf1!==i.EOF;){if(!(this.buf1 instanceof i.Name))throw new t.FormatError("Dictionary key must be a name object");const z=this.buf1.name;if(this.shift(),this.buf1===i.EOF)break;r[z]=this.getObj(s)}d.beginInlineImagePos!==-1&&(o=S.pos-d.beginInlineImagePos);const A=this.xref.fetchIfRef(r.F||r.Filter);let p;if(A instanceof i.Name)p=A.name;else if(Array.isArray(A)){const z=this.xref.fetchIfRef(A[0]);z instanceof i.Name&&(p=z.name)}const v=S.pos;let R;switch(p){case"DCT":case"DCTDecode":R=this.findDCTDecodeInlineStreamEnd(S);break;case"A85":case"ASCII85Decode":R=this.findASCII85DecodeInlineStreamEnd(S);break;case"AHx":case"ASCIIHexDecode":R=this.findASCIIHexDecodeInlineStreamEnd(S);break;default:R=this.findDefaultInlineStreamEnd(S)}let T;if(R<h&&o>0){const z=S.pos;S.pos=d.beginInlineImagePos,T=c(S.getBytes(o+R)),S.pos=z;const $=this.imageCache[T];if($!==void 0)return this.buf2=i.Cmd.get("EI"),this.shift(),$.reset(),$}const y=new i.Dict(this.xref);for(const z in r)y.set(z,r[z]);let H=S.makeSubStream(v,R,y);return s&&(H=s.createStream(H,R)),H=this.filter(H,y,R),H.dict=y,T!==void 0&&(H.cacheKey=`inline_img_${++this._imageId}`,this.imageCache[T]=H),this.buf2=i.Cmd.get("EI"),this.shift(),H}_findStreamLength(s,d){const{stream:S}=this.lexer;S.pos=s;const r=2048,o=d.length;for(;S.pos<S.end;){const A=S.peekBytes(r),p=A.length-o;if(p<=0)break;let v=0;for(;v<p;){let R=0;for(;R<o&&A[v+R]===d[R];)R++;if(R>=o)return S.pos+=v,S.pos-s;v++}S.pos+=p}return-1}makeStream(s,d){const S=this.lexer;let r=S.stream;S.skipToNextLine();const o=r.pos-1;let A=s.get("Length");if(Number.isInteger(A)||((0,t.info)(`Bad length "${A&&A.toString()}" in stream.`),A=0),r.pos=o+A,S.nextChar(),this.tryShift()&&(0,i.isCmd)(this.buf2,"endstream"))this.shift();else{const p=new Uint8Array([101,110,100,115,116,114,101,97,109]);let v=this._findStreamLength(o,p);if(v<0){for(let T=1;T<=1;T++){const y=p.length-T,H=p.slice(0,y),z=this._findStreamLength(o,H);if(z>=0){const $=r.peekBytes(y+1)[y];if(!(0,O.isWhiteSpace)($))break;(0,t.info)(`Found "${(0,t.bytesToString)(H)}" when searching for endstream command.`),v=z;break}}if(v<0)throw new t.FormatError("Missing endstream command.")}A=v,S.nextChar(),this.shift(),this.shift()}return this.shift(),r=r.makeSubStream(o,A,s),d&&(r=d.createStream(r,A)),r=this.filter(r,s,A),r.dict=s,r}filter(s,d,S){let r=d.get("F","Filter"),o=d.get("DP","DecodeParms");if(r instanceof i.Name)return Array.isArray(o)&&(0,t.warn)("/DecodeParms should not be an Array, when /Filter is a Name."),this.makeFilter(s,r.name,S,o);let A=S;if(Array.isArray(r)){const p=r,v=o;for(let R=0,T=p.length;R<T;++R){if(r=this.xref.fetchIfRef(p[R]),!(r instanceof i.Name))throw new t.FormatError(`Bad filter name "${r}"`);o=null,Array.isArray(v)&&R in v&&(o=this.xref.fetchIfRef(v[R])),s=this.makeFilter(s,r.name,A,o),A=null}}return s}makeFilter(s,d,S,r){if(S===0)return(0,t.warn)(`Empty "${d}" stream.`),new n.NullStream;try{switch(d){case"Fl":case"FlateDecode":return r?new I.PredictorStream(new D.FlateStream(s,S),S,r):new D.FlateStream(s,S);case"LZW":case"LZWDecode":let o=1;return r?(r.has("EarlyChange")&&(o=r.get("EarlyChange")),new I.PredictorStream(new g.LZWStream(s,S,o),S,r)):new g.LZWStream(s,S,o);case"DCT":case"DCTDecode":return new k.JpegStream(s,S,r);case"JPX":case"JPXDecode":return new x.JpxStream(s,S,r);case"A85":case"ASCII85Decode":return new P.Ascii85Stream(s,S);case"AHx":case"ASCIIHexDecode":return new e.AsciiHexStream(s,S);case"CCF":case"CCITTFaxDecode":return new N.CCITTFaxStream(s,S,r);case"RL":case"RunLengthDecode":return new B.RunLengthStream(s,S);case"JBIG2Decode":return new L.Jbig2Stream(s,S,r)}return(0,t.warn)(`Filter "${d}" is not supported.`),s}catch(o){if(o instanceof O.MissingDataException)throw o;return(0,t.warn)(`Invalid stream: "${o}"`),new n.NullStream}}}l.Parser=C;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 m(F){return F>=48&&F<=57?F&15:F>=65&&F<=70||F>=97&&F<=102?(F&15)+9:-1}class X{constructor(s){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.stream=s,this.nextChar(),this.strBuf=[],this.knownCommands=d,this._hexStringNumWarn=0,this.beginInlineImagePos=-1}nextChar(){return this.currentChar=this.stream.getByte()}peekChar(){return this.stream.peekByte()}getNumber(){let s=this.currentChar,d=!1,S=0,r=0;if(s===45?(r=-1,s=this.nextChar(),s===45&&(s=this.nextChar())):s===43&&(r=1,s=this.nextChar()),s===10||s===13)do s=this.nextChar();while(s===10||s===13);if(s===46&&(S=10,s=this.nextChar()),s<48||s>57){const v=`Invalid number: ${String.fromCharCode(s)} (charCode ${s})`;if((0,O.isWhiteSpace)(s)||s===-1)return(0,t.info)(`Lexer.getNumber - "${v}".`),0;throw new t.FormatError(v)}r=r||1;let o=s-48,A=0,p=1;for(;(s=this.nextChar())>=0;)if(s>=48&&s<=57){const v=s-48;d?A=A*10+v:(S!==0&&(S*=10),o=o*10+v)}else if(s===46)if(S===0)S=1;else break;else if(s===45)(0,t.warn)("Badly formatted number: minus sign in the middle");else if(s===69||s===101){if(s=this.peekChar(),s===43||s===45)p=s===45?-1:1,this.nextChar();else if(s<48||s>57)break;d=!0}else break;return S!==0&&(o/=S),d&&(o*=10**(p*A)),r*o}getString(){let s=1,d=!1;const S=this.strBuf;S.length=0;let r=this.nextChar();for(;;){let o=!1;switch(r|0){case-1:(0,t.warn)("Unterminated string"),d=!0;break;case 40:++s,S.push("(");break;case 41:--s===0?(this.nextChar(),d=!0):S.push(")");break;case 92:switch(r=this.nextChar(),r){case-1:(0,t.warn)("Unterminated string"),d=!0;break;case 110:S.push(`
`);break;case 114:S.push("\r");break;case 116:S.push(" ");break;case 98:S.push("\b");break;case 102:S.push("\f");break;case 92:case 40:case 41:S.push(String.fromCharCode(r));break;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:let A=r&15;r=this.nextChar(),o=!0,r>=48&&r<=55&&(A=(A<<3)+(r&15),r=this.nextChar(),r>=48&&r<=55&&(o=!1,A=(A<<3)+(r&15))),S.push(String.fromCharCode(A));break;case 13:this.peekChar()===10&&this.nextChar();break;case 10:break;default:S.push(String.fromCharCode(r));break}break;default:S.push(String.fromCharCode(r));break}if(d)break;o||(r=this.nextChar())}return S.join("")}getName(){let s,d;const S=this.strBuf;for(S.length=0;(s=this.nextChar())>=0&&!u[s];)if(s===35){if(s=this.nextChar(),u[s]){(0,t.warn)("Lexer_getName: NUMBER SIGN (#) should be followed by a hexadecimal number."),S.push("#");break}const r=m(s);if(r!==-1){d=s,s=this.nextChar();const o=m(s);if(o===-1){if((0,t.warn)(`Lexer_getName: Illegal digit (${String.fromCharCode(s)}) in hexadecimal number.`),S.push("#",String.fromCharCode(d)),u[s])break;S.push(String.fromCharCode(s));continue}S.push(String.fromCharCode(r<<4|o))}else S.push("#",String.fromCharCode(s))}else S.push(String.fromCharCode(s));return S.length>127&&(0,t.warn)(`Name token is longer than allowed by the spec: ${S.length}`),i.Name.get(S.join(""))}_hexStringWarn(s){if(this._hexStringNumWarn++===5){(0,t.warn)("getHexString - ignoring additional invalid characters.");return}this._hexStringNumWarn>5||(0,t.warn)(`getHexString - ignoring invalid character: ${s}`)}getHexString(){const s=this.strBuf;s.length=0;let d=this.currentChar,S=!0,r,o;for(this._hexStringNumWarn=0;;)if(d<0){(0,t.warn)("Unterminated hex string");break}else if(d===62){this.nextChar();break}else if(u[d]===1){d=this.nextChar();continue}else{if(S){if(r=m(d),r===-1){this._hexStringWarn(d),d=this.nextChar();continue}}else{if(o=m(d),o===-1){this._hexStringWarn(d),d=this.nextChar();continue}s.push(String.fromCharCode(r<<4|o))}S=!S,d=this.nextChar()}return s.join("")}getObj(){let s=!1,d=this.currentChar;for(;;){if(d<0)return i.EOF;if(s)(d===10||d===13)&&(s=!1);else if(d===37)s=!0;else if(u[d]!==1)break;d=this.nextChar()}switch(d|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(),i.Cmd.get("[");case 93:return this.nextChar(),i.Cmd.get("]");case 60:return d=this.nextChar(),d===60?(this.nextChar(),i.Cmd.get("<<")):this.getHexString();case 62:return d=this.nextChar(),d===62?(this.nextChar(),i.Cmd.get(">>")):i.Cmd.get(">");case 123:return this.nextChar(),i.Cmd.get("{");case 125:return this.nextChar(),i.Cmd.get("}");case 41:throw this.nextChar(),new t.FormatError(`Illegal character: ${d}`)}let S=String.fromCharCode(d);if(d<32||d>127){const A=this.peekChar();if(A>=32&&A<=127)return this.nextChar(),i.Cmd.get(S)}const r=this.knownCommands;let o=r&&r[S]!==void 0;for(;(d=this.nextChar())>=0&&!u[d];){const A=S+String.fromCharCode(d);if(o&&r[A]===void 0)break;if(S.length===128)throw new t.FormatError(`Command token too long: ${S.length}`);S=A,o=r&&r[S]!==void 0}return S==="true"?!0:S==="false"?!1:S==="null"?null:(S==="BI"&&(this.beginInlineImagePos=this.stream.pos),i.Cmd.get(S))}peekObj(){const s=this.stream.pos,d=this.currentChar,S=this.beginInlineImagePos;let r;try{r=this.getObj()}catch(o){if(o instanceof O.MissingDataException)throw o;(0,t.warn)(`peekObj: ${o}`)}return this.stream.pos=s,this.currentChar=d,this.beginInlineImagePos=S,r}skipToNextLine(){let s=this.currentChar;for(;s>=0;){if(s===13){s=this.nextChar(),s===10&&this.nextChar();break}else if(s===10){this.nextChar();break}s=this.nextChar()}}}l.Lexer=X;class f{static create(s){function d(y,H){let z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const $=y.get(H);if(Number.isInteger($)&&(z?$>=0:$>0))return $;throw new Error(`The "${H}" parameter in the linearization dictionary is invalid.`)}function S(y){const H=y.get("H");let z;if(Array.isArray(H)&&((z=H.length)===2||z===4)){for(let $=0;$<z;$++){const j=H[$];if(!(Number.isInteger(j)&&j>0))throw new Error(`Hint (${$}) in the linearization dictionary is invalid.`)}return H}throw new Error("Hint array in the linearization dictionary is invalid.")}const r=new C({lexer:new X(s),xref:null}),o=r.getObj(),A=r.getObj(),p=r.getObj(),v=r.getObj();let R,T;if(Number.isInteger(o)&&Number.isInteger(A)&&(0,i.isCmd)(p,"obj")&&v instanceof i.Dict&&typeof(R=v.get("Linearized"))=="number"&&R>0){if((T=d(v,"L"))!==s.length)throw new Error('The "L" parameter in the linearization dictionary does not equal the stream length.')}else return null;return{length:T,hints:S(v),objectNumberFirst:d(v,"O"),endFirst:d(v,"E"),numPages:d(v,"N"),mainXRefEntriesOffset:d(v,"T"),pageFirst:v.has("P")?d(v,"P",!0):0}}}l.Linearization=f},(he,l,w)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.Ascii85Stream=void 0;var t=w(150),i=w(136);class O extends t.DecodeStream{constructor(e,N){N&&(N*=.8),super(N),this.str=e,this.dict=e.dict,this.input=new Uint8Array(5)}readBlock(){const L=this.str;let k=L.getByte();for(;(0,i.isWhiteSpace)(k);)k=L.getByte();if(k===-1||k===126){this.eof=!0;return}const x=this.bufferLength;let g,n;if(k===122){for(g=this.ensureBuffer(x+4),n=0;n<4;++n)g[x+n]=0;this.bufferLength+=4}else{const I=this.input;for(I[0]=k,n=1;n<5;++n){for(k=L.getByte();(0,i.isWhiteSpace)(k);)k=L.getByte();if(I[n]=k,k===-1||k===126)break}if(g=this.ensureBuffer(x+n-1),this.bufferLength+=n-1,n<5){for(;n<5;++n)I[n]=117;this.eof=!0}let B=0;for(n=0;n<5;++n)B=B*85+(I[n]-33);for(n=3;n>=0;--n)g[x+n]=B&255,B>>=8}}}l.Ascii85Stream=O},(he,l,w)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.StreamsSequenceStream=l.DecodeStream=void 0;var t=w(138),i=w(141);const O=new Uint8Array(0);class P extends t.BaseStream{constructor(D){if(super(),this._rawMinBufferLength=D||0,this.pos=0,this.bufferLength=0,this.eof=!1,this.buffer=O,this.minBufferLength=512,D)for(;this.minBufferLength<D;)this.minBufferLength*=2}get isEmpty(){for(;!this.eof&&this.bufferLength===0;)this.readBlock();return this.bufferLength===0}ensureBuffer(D){const L=this.buffer;if(D<=L.byteLength)return L;let k=this.minBufferLength;for(;k<D;)k*=2;const x=new Uint8Array(k);return x.set(L),this.buffer=x}getByte(){const D=this.pos;for(;this.bufferLength<=D;){if(this.eof)return-1;this.readBlock()}return this.buffer[this.pos++]}getBytes(D){const L=this.pos;let k;if(D){for(this.ensureBuffer(L+D),k=L+D;!this.eof&&this.bufferLength<k;)this.readBlock();const x=this.bufferLength;k>x&&(k=x)}else{for(;!this.eof;)this.readBlock();k=this.bufferLength}return this.pos=k,this.buffer.subarray(L,k)}reset(){this.pos=0}makeSubStream(D,L){let k=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(L===void 0)for(;!this.eof;)this.readBlock();else{const x=D+L;for(;this.bufferLength<=x&&!this.eof;)this.readBlock()}return new i.Stream(this.buffer,D,L,k)}getBaseStreams(){return this.str?this.str.getBaseStreams():null}}l.DecodeStream=P;class e extends P{constructor(D){let L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,k=0;for(const x of D)k+=x instanceof P?x._rawMinBufferLength:x.length;super(k),this.streams=D,this._onError=L}readBlock(){const D=this.streams;if(D.length===0){this.eof=!0;return}const L=D.shift();let k;try{k=L.getBytes()}catch(I){if(this._onError){this._onError(I,L.dict&&L.dict.objId);return}throw I}const x=this.bufferLength,g=x+k.length;this.ensureBuffer(g).set(k,x),this.bufferLength=g}getBaseStreams(){const D=[];for(const L of this.streams){const k=L.getBaseStreams();k&&D.push(...k)}return D.length>0?D:null}}l.StreamsSequenceStream=e},(he,l,w)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.AsciiHexStream=void 0;var t=w(150);class i extends t.DecodeStream{constructor(P,e){e&&(e*=.5),super(e),this.str=P,this.dict=P.dict,this.firstDigit=-1}readBlock(){const e=this.str.getBytes(8e3);if(!e.length){this.eof=!0;return}const N=e.length+1>>1,D=this.ensureBuffer(this.bufferLength+N);let L=this.bufferLength,k=this.firstDigit;for(const x of e){let g;if(x>=48&&x<=57)g=x&15;else if(x>=65&&x<=70||x>=97&&x<=102)g=(x&15)+9;else if(x===62){this.eof=!0;break}else continue;k<0?k=g:(D[L++]=k<<4|g,k=-1)}k>=0&&this.eof&&(D[L++]=k<<4,k=-1),this.firstDigit=k,this.bufferLength=L}}l.AsciiHexStream=i},(he,l,w)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.CCITTFaxStream=void 0;var t=w(153),i=w(150),O=w(137);class P extends i.DecodeStream{constructor(N,D,L){super(D),this.str=N,this.dict=N.dict,L instanceof O.Dict||(L=O.Dict.empty);const k={next(){return N.getByte()}};this.ccittFaxDecoder=new t.CCITTFaxDecoder(k,{K:L.get("K"),EndOfLine:L.get("EndOfLine"),EncodedByteAlign:L.get("EncodedByteAlign"),Columns:L.get("Columns"),Rows:L.get("Rows"),EndOfBlock:L.get("EndOfBlock"),BlackIs1:L.get("BlackIs1")})}readBlock(){for(;!this.eof;){const N=this.ccittFaxDecoder.readNextChar();if(N===-1){this.eof=!0;return}this.ensureBuffer(this.bufferLength+1),this.buffer[this.bufferLength++]=N}}}l.CCITTFaxStream=P},(he,l,w)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.CCITTFaxDecoder=void 0;var t=w(2);const i=-2,O=-1,P=0,e=1,N=2,D=3,L=4,k=5,x=6,g=7,n=8,I=[[-1,-1],[-1,-1],[7,n],[7,g],[6,x],[6,x],[6,k],[6,k],[4,P],[4,P],[4,P],[4,P],[4,P],[4,P],[4,P],[4,P],[3,e],[3,e],[3,e],[3,e],[3,e],[3,e],[3,e],[3,e],[3,e],[3,e],[3,e],[3,e],[3,e],[3,e],[3,e],[3,e],[3,L],[3,L],[3,L],[3,L],[3,L],[3,L],[3,L],[3,L],[3,L],[3,L],[3,L],[3,L],[3,L],[3,L],[3,L],[3,L],[3,D],[3,D],[3,D],[3,D],[3,D],[3,D],[3,D],[3,D],[3,D],[3,D],[3,D],[3,D],[3,D],[3,D],[3,D],[3,D],[1,N],[1,N],[1,N],[1,N],[1,N],[1,N],[1,N],[1,N],[1,N],[1,N],[1,N],[1,N],[1,N],[1,N],[1,N],[1,N],[1,N],[1,N],[1,N],[1,N],[1,N],[1,N],[1,N],[1,N],[1,N],[1,N],[1,N],[1,N],[1,N],[1,N],[1,N],[1,N],[1,N],[1,N],[1,N],[1,N],[1,N],[1,N],[1,N],[1,N],[1,N],[1,N],[1,N],[1,N],[1,N],[1,N],[1,N],[1,N],[1,N],[1,N],[1,N],[1,N],[1,N],[1,N],[1,N],[1,N],[1,N],[1,N],[1,N],[1,N],[1,N],[1,N],[1,N],[1,N]],B=[[-1,-1],[12,i],[-1,-1],[-1,-1],[-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]],h=[[-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]],c=[[-1,-1],[-1,-1],[12,i],[12,i],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-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]],C=[[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]],u=[[-1,-1],[-1,-1],[-1,-1],[-1,-1],[6,9],[6,8],[5,7],[5,7],[4,6],[4,6],[4,6],[4,6],[4,5],[4,5],[4,5],[4,5],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2]];class m{constructor(f){let F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!f||typeof f.next!="function")throw new Error('CCITTFaxDecoder - invalid "source" parameter.');this.source=f,this.eof=!1,this.encoding=F.K||0,this.eoline=F.EndOfLine||!1,this.byteAlign=F.EncodedByteAlign||!1,this.columns=F.Columns||1728,this.rows=F.Rows||0;let s=F.EndOfBlock;s==null&&(s=!0),this.eoblock=s,this.black=F.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 d;for(;(d=this._lookBits(12))===0;)this._eatBits(1);d===1&&this._eatBits(12),this.encoding>0&&(this.nextLine2D=!this._lookBits(1),this._eatBits(1))}readNextChar(){if(this.eof)return-1;const f=this.refLine,F=this.codingLine,s=this.columns;let d,S,r,o;if(this.outputBits===0){if(this.rowsDone&&(this.eof=!0),this.eof)return-1;this.err=!1;let p,v,R;if(this.nextLine2D){for(o=0;F[o]<s;++o)f[o]=F[o];for(f[o++]=s,f[o]=s,F[0]=0,this.codingPos=0,d=0,S=0;F[this.codingPos]<s;)switch(p=this._getTwoDimCode(),p){case P:this._addPixels(f[d+1],S),f[d+1]<s&&(d+=2);break;case e:if(p=v=0,S){do p+=R=this._getBlackCode();while(R>=64);do v+=R=this._getWhiteCode();while(R>=64)}else{do p+=R=this._getWhiteCode();while(R>=64);do v+=R=this._getBlackCode();while(R>=64)}for(this._addPixels(F[this.codingPos]+p,S),F[this.codingPos]<s&&this._addPixels(F[this.codingPos]+v,S^1);f[d]<=F[this.codingPos]&&f[d]<s;)d+=2;break;case g:if(this._addPixels(f[d]+3,S),S^=1,F[this.codingPos]<s)for(++d;f[d]<=F[this.codingPos]&&f[d]<s;)d+=2;break;case k:if(this._addPixels(f[d]+2,S),S^=1,F[this.codingPos]<s)for(++d;f[d]<=F[this.codingPos]&&f[d]<s;)d+=2;break;case D:if(this._addPixels(f[d]+1,S),S^=1,F[this.codingPos]<s)for(++d;f[d]<=F[this.codingPos]&&f[d]<s;)d+=2;break;case N:if(this._addPixels(f[d],S),S^=1,F[this.codingPos]<s)for(++d;f[d]<=F[this.codingPos]&&f[d]<s;)d+=2;break;case n:if(this._addPixelsNeg(f[d]-3,S),S^=1,F[this.codingPos]<s)for(d>0?--d:++d;f[d]<=F[this.codingPos]&&f[d]<s;)d+=2;break;case x:if(this._addPixelsNeg(f[d]-2,S),S^=1,F[this.codingPos]<s)for(d>0?--d:++d;f[d]<=F[this.codingPos]&&f[d]<s;)d+=2;break;case L:if(this._addPixelsNeg(f[d]-1,S),S^=1,F[this.codingPos]<s)for(d>0?--d:++d;f[d]<=F[this.codingPos]&&f[d]<s;)d+=2;break;case O:this._addPixels(s,0),this.eof=!0;break;default:(0,t.info)("bad 2d code"),this._addPixels(s,0),this.err=!0}}else for(F[0]=0,this.codingPos=0,S=0;F[this.codingPos]<s;){if(p=0,S)do p+=R=this._getBlackCode();while(R>=64);else do p+=R=this._getWhiteCode();while(R>=64);this._addPixels(F[this.codingPos]+p,S),S^=1}let T=!1;if(this.byteAlign&&(this.inputBits&=-8),!this.eoblock&&this.row===this.rows-1)this.rowsDone=!0;else{if(p=this._lookBits(12),this.eoline)for(;p!==O&&p!==1;)this._eatBits(1),p=this._lookBits(12);else for(;p===0;)this._eatBits(1),p=this._lookBits(12);p===1?(this._eatBits(12),T=!0):p===O&&(this.eof=!0)}if(!this.eof&&this.encoding>0&&!this.rowsDone&&(this.nextLine2D=!this._lookBits(1),this._eatBits(1)),this.eoblock&&T&&this.byteAlign){if(p=this._lookBits(12),p===1){if(this._eatBits(12),this.encoding>0&&(this._lookBits(1),this._eatBits(1)),this.encoding>=0)for(o=0;o<4;++o)p=this._lookBits(12),p!==1&&(0,t.info)("bad rtc code: "+p),this._eatBits(12),this.encoding>0&&(this._lookBits(1),this._eatBits(1));this.eof=!0}}else if(this.err&&this.eoline){for(;;){if(p=this._lookBits(13),p===O)return this.eof=!0,-1;if(p>>1===1)break;this._eatBits(1)}this._eatBits(12),this.encoding>0&&(this._eatBits(1),this.nextLine2D=!(p&1))}F[0]>0?this.outputBits=F[this.codingPos=0]:this.outputBits=F[this.codingPos=1],this.row++}let A;if(this.outputBits>=8)A=this.codingPos&1?0:255,this.outputBits-=8,this.outputBits===0&&F[this.codingPos]<s&&(this.codingPos++,this.outputBits=F[this.codingPos]-F[this.codingPos-1]);else{r=8,A=0;do{if(typeof this.outputBits!="number")throw new t.FormatError('Invalid /CCITTFaxDecode data, "outputBits" must be a number.');this.outputBits>r?(A<<=r,this.codingPos&1||(A|=255>>8-r),this.outputBits-=r,r=0):(A<<=this.outputBits,this.codingPos&1||(A|=255>>8-this.outputBits),r-=this.outputBits,this.outputBits=0,F[this.codingPos]<s?(this.codingPos++,this.outputBits=F[this.codingPos]-F[this.codingPos-1]):r>0&&(A<<=r,r=0))}while(r)}return this.black&&(A^=255),A}_addPixels(f,F){const s=this.codingLine;let d=this.codingPos;f>s[d]&&(f>this.columns&&((0,t.info)("row is wrong length"),this.err=!0,f=this.columns),d&1^F&&++d,s[d]=f),this.codingPos=d}_addPixelsNeg(f,F){const s=this.codingLine;let d=this.codingPos;if(f>s[d])f>this.columns&&((0,t.info)("row is wrong length"),this.err=!0,f=this.columns),d&1^F&&++d,s[d]=f;else if(f<s[d]){for(f<0&&((0,t.info)("invalid code"),this.err=!0,f=0);d>0&&f<s[d-1];)--d;s[d]=f}this.codingPos=d}_findTableCode(f,F,s,d){const S=d||0;for(let r=f;r<=F;++r){let o=this._lookBits(r);if(o===O)return[!0,1,!1];if(r<F&&(o<<=F-r),!S||o>=S){const A=s[o-S];if(A[0]===r)return this._eatBits(r),[!0,A[1],!0]}}return[!1,0,!1]}_getTwoDimCode(){let f=0,F;if(this.eoblock){if(f=this._lookBits(7),F=I[f],F&&F[0]>0)return this._eatBits(F[0]),F[1]}else{const s=this._findTableCode(1,7,I);if(s[0]&&s[2])return s[1]}return(0,t.info)("Bad two dim code"),O}_getWhiteCode(){let f=0,F;if(this.eoblock){if(f=this._lookBits(12),f===O)return 1;if(f>>5?F=h[f>>3]:F=B[f],F[0]>0)return this._eatBits(F[0]),F[1]}else{let s=this._findTableCode(1,9,h);if(s[0]||(s=this._findTableCode(11,12,B),s[0]))return s[1]}return(0,t.info)("bad white code"),this._eatBits(1),1}_getBlackCode(){let f,F;if(this.eoblock){if(f=this._lookBits(13),f===O)return 1;if(f>>7?!(f>>9)&&f>>7?F=C[(f>>1)-64]:F=u[f>>7]:F=c[f],F[0]>0)return this._eatBits(F[0]),F[1]}else{let s=this._findTableCode(2,6,u);if(s[0]||(s=this._findTableCode(7,12,C,64),s[0])||(s=this._findTableCode(10,13,c),s[0]))return s[1]}return(0,t.info)("bad black code"),this._eatBits(1),1}_lookBits(f){let F;for(;this.inputBits<f;){if((F=this.source.next())===-1)return this.inputBits===0?O:this.inputBuf<<f-this.inputBits&65535>>16-f;this.inputBuf=this.inputBuf<<8|F,this.inputBits+=8}return this.inputBuf>>this.inputBits-f&65535>>16-f}_eatBits(f){(this.inputBits-=f)<0&&(this.inputBits=0)}}l.CCITTFaxDecoder=m},(he,l,w)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.FlateStream=void 0;var t=w(150),i=w(2);const O=new Int32Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),P=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]),e=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]),N=[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],D=[new Int32Array([327680,327696,327688,327704,327684,327700,327692,327708,327682,327698,327690,327706,327686,327702,327694,0,327681,327697,327689,327705,327685,327701,327693,327709,327683,327699,327691,327707,327687,327703,327695,0]),5];class L extends t.DecodeStream{constructor(x,g){super(g),this.str=x,this.dict=x.dict;const n=x.getByte(),I=x.getByte();if(n===-1||I===-1)throw new i.FormatError(`Invalid header in flate stream: ${n}, ${I}`);if((n&15)!==8)throw new i.FormatError(`Unknown compression method in flate stream: ${n}, ${I}`);if(((n<<8)+I)%31!==0)throw new i.FormatError(`Bad FCHECK in flate stream: ${n}, ${I}`);if(I&32)throw new i.FormatError(`FDICT bit set in flate stream: ${n}, ${I}`);this.codeSize=0,this.codeBuf=0}getBits(x){const g=this.str;let n=this.codeSize,I=this.codeBuf,B;for(;n<x;){if((B=g.getByte())===-1)throw new i.FormatError("Bad encoding in flate stream");I|=B<<n,n+=8}return B=I&(1<<x)-1,this.codeBuf=I>>x,this.codeSize=n-=x,B}getCode(x){const g=this.str,n=x[0],I=x[1];let B=this.codeSize,h=this.codeBuf,c;for(;B<I&&(c=g.getByte())!==-1;)h|=c<<B,B+=8;const C=n[h&(1<<I)-1],u=C>>16,m=C&65535;if(u<1||B<u)throw new i.FormatError("Bad encoding in flate stream");return this.codeBuf=h>>u,this.codeSize=B-u,m}generateHuffmanTable(x){const g=x.length;let n=0,I;for(I=0;I<g;++I)x[I]>n&&(n=x[I]);const B=1<<n,h=new Int32Array(B);for(let c=1,C=0,u=2;c<=n;++c,C<<=1,u<<=1)for(let m=0;m<g;++m)if(x[m]===c){let X=0,f=C;for(I=0;I<c;++I)X=X<<1|f&1,f>>=1;for(I=X;I<B;I+=u)h[I]=c<<16|m;++C}return[h,n]}readBlock(){let x,g;const n=this.str;let I=this.getBits(3);if(I&1&&(this.eof=!0),I>>=1,I===0){let u;if((u=n.getByte())===-1)throw new i.FormatError("Bad block header in flate stream");let m=u;if((u=n.getByte())===-1)throw new i.FormatError("Bad block header in flate stream");if(m|=u<<8,(u=n.getByte())===-1)throw new i.FormatError("Bad block header in flate stream");let X=u;if((u=n.getByte())===-1)throw new i.FormatError("Bad block header in flate stream");if(X|=u<<8,X!==(~m&65535)&&(m!==0||X!==0))throw new i.FormatError("Bad uncompressed block length in flate stream");this.codeBuf=0,this.codeSize=0;const f=this.bufferLength,F=f+m;if(x=this.ensureBuffer(F),this.bufferLength=F,m===0)n.peekByte()===-1&&(this.eof=!0);else{const s=n.getBytes(m);x.set(s,f),s.length<m&&(this.eof=!0)}return}let B,h;if(I===1)B=N,h=D;else if(I===2){const u=this.getBits(5)+257,m=this.getBits(5)+1,X=this.getBits(4)+4,f=new Uint8Array(O.length);let F;for(F=0;F<X;++F)f[O[F]]=this.getBits(3);const s=this.generateHuffmanTable(f);g=0,F=0;const d=u+m,S=new Uint8Array(d);let r,o,A;for(;F<d;){const p=this.getCode(s);if(p===16)r=2,o=3,A=g;else if(p===17)r=3,o=3,A=g=0;else if(p===18)r=7,o=11,A=g=0;else{S[F++]=g=p;continue}let v=this.getBits(r)+o;for(;v-- >0;)S[F++]=A}B=this.generateHuffmanTable(S.subarray(0,u)),h=this.generateHuffmanTable(S.subarray(u,d))}else throw new i.FormatError("Unknown block type in flate stream");x=this.buffer;let c=x?x.length:0,C=this.bufferLength;for(;;){let u=this.getCode(B);if(u<256){C+1>=c&&(x=this.ensureBuffer(C+1),c=x.length),x[C++]=u;continue}if(u===256){this.bufferLength=C;return}u-=257,u=P[u];let m=u>>16;m>0&&(m=this.getBits(m)),g=(u&65535)+m,u=this.getCode(h),u=e[u],m=u>>16,m>0&&(m=this.getBits(m));const X=(u&65535)+m;C+g>=c&&(x=this.ensureBuffer(C+g),c=x.length);for(let f=0;f<g;++f,++C)x[C]=x[C-X]}}}l.FlateStream=L},(he,l,w)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.Jbig2Stream=void 0;var t=w(138),i=w(150),O=w(137),P=w(156),e=w(2);class N extends i.DecodeStream{constructor(L,k,x){super(k),this.stream=L,this.dict=L.dict,this.maybeLength=k,this.params=x}get bytes(){return(0,e.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))}ensureBuffer(L){}readBlock(){if(this.eof)return;const L=new P.Jbig2Image,k=[];if(this.params instanceof O.Dict){const n=this.params.get("JBIG2Globals");if(n instanceof t.BaseStream){const I=n.getBytes();k.push({data:I,start:0,end:I.length})}}k.push({data:this.bytes,start:0,end:this.bytes.length});const x=L.parseChunks(k),g=x.length;for(let n=0;n<g;n++)x[n]^=255;this.buffer=x,this.bufferLength=g,this.eof=!0}}l.Jbig2Stream=N},(he,l,w)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.Jbig2Image=void 0;var t=w(2),i=w(136),O=w(157),P=w(153);class e extends t.BaseException{constructor(E){super(`JBIG2 error: ${E}`,"Jbig2Error")}}class N{getContexts(E){return E in this?this[E]:this[E]=new Int8Array(65536)}}class D{constructor(E,M,_){this.data=E,this.start=M,this.end=_}get decoder(){const E=new O.ArithmeticDecoder(this.data,this.start,this.end);return(0,t.shadow)(this,"decoder",E)}get contextCache(){const E=new N;return(0,t.shadow)(this,"contextCache",E)}}const L=2**31-1,k=-(2**31);function x(Q,E,M){const _=Q.getContexts(E);let J=1;function K(ne){let re=0;for(let ie=0;ie<ne;ie++){const ae=M.readBit(_,J);J=J<256?J<<1|ae:(J<<1|ae)&511|256,re=re<<1|ae}return re>>>0}const te=K(1),Z=K(1)?K(1)?K(1)?K(1)?K(1)?K(32)+4436:K(12)+340:K(8)+84:K(6)+20:K(4)+4:K(2);let ce;return te===0?ce=Z:Z>0&&(ce=-Z),ce>=k&&ce<=L?ce:null}function g(Q,E,M){const _=Q.getContexts("IAID");let J=1;for(let K=0;K<M;K++){const te=E.readBit(_,J);J=J<<1|te}return M<31?J&(1<<M)-1:J&2147483647}const n=["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"],I=[[{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}]],B=[{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}]}],h=[39717,1941,229,405],c=[32,8];function C(Q,E,M){const _=M.decoder,J=M.contextCache.getContexts("GB"),K=[];let te,Z,ce,ne,re,ie,ae;const ue=31735;for(Z=0;Z<E;Z++)for(re=K[Z]=new Uint8Array(Q),ie=Z<1?re:K[Z-1],ae=Z<2?re:K[Z-2],te=ae[0]<<13|ae[1]<<12|ae[2]<<11|ie[0]<<7|ie[1]<<6|ie[2]<<5|ie[3]<<4,ce=0;ce<Q;ce++)re[ce]=ne=_.readBit(J,te),te=(te&ue)<<1|(ce+3<Q?ae[ce+3]<<11:0)|(ce+4<Q?ie[ce+4]<<4:0)|ne;return K}function u(Q,E,M,_,J,K,te,Z){if(Q){const Je=new V(Z.data,Z.start,Z.end);return oe(Je,E,M,!1)}if(_===0&&!K&&!J&&te.length===4&&te[0].x===3&&te[0].y===-1&&te[1].x===-3&&te[1].y===-1&&te[2].x===2&&te[2].y===-2&&te[3].x===-2&&te[3].y===-2)return C(E,M,Z);const ce=!!K,ne=I[_].concat(te);ne.sort(function(Je,et){return Je.y-et.y||Je.x-et.x});const re=ne.length,ie=new Int8Array(re),ae=new Int8Array(re),ue=[];let fe=0,me=0,Fe=0,pe=0,Ce,be;for(be=0;be<re;be++)ie[be]=ne[be].x,ae[be]=ne[be].y,me=Math.min(me,ne[be].x),Fe=Math.max(Fe,ne[be].x),pe=Math.min(pe,ne[be].y),be<re-1&&ne[be].y===ne[be+1].y&&ne[be].x===ne[be+1].x-1?fe|=1<<re-1-be:ue.push(be);const Ie=ue.length,ye=new Int8Array(Ie),de=new Int8Array(Ie),ge=new Uint16Array(Ie);for(Ce=0;Ce<Ie;Ce++)be=ue[Ce],ye[Ce]=ne[be].x,de[Ce]=ne[be].y,ge[Ce]=1<<re-1-be;const xe=-me,Oe=-pe,je=E-Fe,it=h[_];let ke=new Uint8Array(E);const $e=[],Ge=Z.decoder,Qe=Z.contextCache.getContexts("GB");let ve=0,Ne,Me,nt,_e=0,rt,Xe;for(let Je=0;Je<M;Je++){if(J){const et=Ge.readBit(Qe,it);if(ve^=et,ve){$e.push(ke);continue}}for(ke=new Uint8Array(ke),$e.push(ke),Ne=0;Ne<E;Ne++){if(ce&&K[Je][Ne]){ke[Ne]=0;continue}if(Ne>=xe&&Ne<je&&Je>=Oe)for(_e=_e<<1&fe,be=0;be<Ie;be++)Me=Je+de[be],nt=Ne+ye[be],rt=$e[Me][nt],rt&&(rt=ge[be],_e|=rt);else for(_e=0,Xe=re-1,be=0;be<re;be++,Xe--)nt=Ne+ie[be],nt>=0&&nt<E&&(Me=Je+ae[be],Me>=0&&(rt=$e[Me][nt],rt&&(_e|=rt<<Xe)));const et=Ge.readBit(Qe,_e);ke[Ne]=et}}return $e}function m(Q,E,M,_,J,K,te,Z,ce){let ne=B[M].coding;M===0&&(ne=ne.concat([Z[0]]));const re=ne.length,ie=new Int32Array(re),ae=new Int32Array(re);let ue;for(ue=0;ue<re;ue++)ie[ue]=ne[ue].x,ae[ue]=ne[ue].y;let fe=B[M].reference;M===0&&(fe=fe.concat([Z[1]]));const me=fe.length,Fe=new Int32Array(me),pe=new Int32Array(me);for(ue=0;ue<me;ue++)Fe[ue]=fe[ue].x,pe[ue]=fe[ue].y;const Ce=_[0].length,be=_.length,Ie=c[M],ye=[],de=ce.decoder,ge=ce.contextCache.getContexts("GR");let xe=0;for(let Oe=0;Oe<E;Oe++){if(te){const it=de.readBit(ge,Ie);if(xe^=it,xe)throw new e("prediction is not supported")}const je=new Uint8Array(Q);ye.push(je);for(let it=0;it<Q;it++){let ke,$e,Ge=0;for(ue=0;ue<re;ue++)ke=Oe+ae[ue],$e=it+ie[ue],ke<0||$e<0||$e>=Q?Ge<<=1:Ge=Ge<<1|ye[ke][$e];for(ue=0;ue<me;ue++)ke=Oe+pe[ue]-K,$e=it+Fe[ue]-J,ke<0||ke>=be||$e<0||$e>=Ce?Ge<<=1:Ge=Ge<<1|_[ke][$e];const Qe=de.readBit(ge,Ge);je[it]=Qe}}return ye}function X(Q,E,M,_,J,K,te,Z,ce,ne,re,ie){if(Q&&E)throw new e("symbol refinement with Huffman is not supported");const ae=[];let ue=0,fe=(0,i.log2)(M.length+_);const me=re.decoder,Fe=re.contextCache;let pe,Ce;for(Q&&(pe=j(1),Ce=[],fe=Math.max(fe,1));ae.length<_;){const Oe=Q?K.tableDeltaHeight.decode(ie):x(Fe,"IADH",me);ue+=Oe;let je=0,it=0;const ke=Q?Ce.length:0;for(;;){const $e=Q?K.tableDeltaWidth.decode(ie):x(Fe,"IADW",me);if($e===null)break;je+=$e,it+=je;let Ge;if(E){const Qe=x(Fe,"IAAI",me);if(Qe>1)Ge=f(Q,E,je,ue,0,Qe,1,M.concat(ae),fe,0,0,1,0,K,ce,ne,re,0,ie);else{const ve=g(Fe,me,fe),Ne=x(Fe,"IARDX",me),Me=x(Fe,"IARDY",me),nt=ve<M.length?M[ve]:ae[ve-M.length];Ge=m(je,ue,ce,nt,Ne,Me,!1,ne,re)}ae.push(Ge)}else Q?Ce.push(je):(Ge=u(!1,je,ue,te,!1,null,Z,re),ae.push(Ge))}if(Q&&!E){const $e=K.tableBitmapSize.decode(ie);ie.byteAlign();let Ge;if($e===0)Ge=Y(ie,it,ue);else{const ve=ie.end,Ne=ie.position+$e;ie.end=Ne,Ge=oe(ie,it,ue,!1),ie.end=ve,ie.position=Ne}const Qe=Ce.length;if(ke===Qe-1)ae.push(Ge);else{let ve,Ne,Me=0,nt,_e,rt;for(ve=ke;ve<Qe;ve++){for(_e=Ce[ve],nt=Me+_e,rt=[],Ne=0;Ne<ue;Ne++)rt.push(Ge[Ne].subarray(Me,nt));ae.push(rt),Me=nt}}}}const be=[],Ie=[];let ye=!1,de,ge;const xe=M.length+_;for(;Ie.length<xe;){let Oe=Q?pe.decode(ie):x(Fe,"IAEX",me);for(;Oe--;)Ie.push(ye);ye=!ye}for(de=0,ge=M.length;de<ge;de++)Ie[de]&&be.push(M[de]);for(let Oe=0;Oe<_;de++,Oe++)Ie[de]&&be.push(ae[Oe]);return be}function f(Q,E,M,_,J,K,te,Z,ce,ne,re,ie,ae,ue,fe,me,Fe,pe,Ce){if(Q&&E)throw new e("refinement with Huffman is not supported");const be=[];let Ie,ye;for(Ie=0;Ie<_;Ie++){if(ye=new Uint8Array(M),J)for(let je=0;je<M;je++)ye[je]=J;be.push(ye)}const de=Fe.decoder,ge=Fe.contextCache;let xe=Q?-ue.tableDeltaT.decode(Ce):-x(ge,"IADT",de),Oe=0;for(Ie=0;Ie<K;){const je=Q?ue.tableDeltaT.decode(Ce):x(ge,"IADT",de);xe+=je;const it=Q?ue.tableFirstS.decode(Ce):x(ge,"IAFS",de);Oe+=it;let ke=Oe;do{let $e=0;te>1&&($e=Q?Ce.readBits(pe):x(ge,"IAIT",de));const Ge=te*xe+$e,Qe=Q?ue.symbolIDTable.decode(Ce):g(ge,de,ce),ve=E&&(Q?Ce.readBit():x(ge,"IARI",de));let Ne=Z[Qe],Me=Ne[0].length,nt=Ne.length;if(ve){const xt=x(ge,"IARDW",de),Ot=x(ge,"IARDH",de),st=x(ge,"IARDX",de),Nt=x(ge,"IARDY",de);Me+=xt,nt+=Ot,Ne=m(Me,nt,fe,Ne,(xt>>1)+st,(Ot>>1)+Nt,!1,me,Fe)}const _e=Ge-(ie&1?0:nt-1),rt=ke-(ie&2?Me-1:0);let Xe,Je,et;if(ne){for(Xe=0;Xe<nt;Xe++){if(ye=be[rt+Xe],!ye)continue;et=Ne[Xe];const xt=Math.min(M-_e,Me);switch(ae){case 0:for(Je=0;Je<xt;Je++)ye[_e+Je]|=et[Je];break;case 2:for(Je=0;Je<xt;Je++)ye[_e+Je]^=et[Je];break;default:throw new e(`operator ${ae} is not supported`)}}ke+=nt-1}else{for(Je=0;Je<nt;Je++)if(ye=be[_e+Je],!!ye)switch(et=Ne[Je],ae){case 0:for(Xe=0;Xe<Me;Xe++)ye[rt+Xe]|=et[Xe];break;case 2:for(Xe=0;Xe<Me;Xe++)ye[rt+Xe]^=et[Xe];break;default:throw new e(`operator ${ae} is not supported`)}ke+=Me-1}Ie++;const pt=Q?ue.tableDeltaS.decode(Ce):x(ge,"IADS",de);if(pt===null)break;ke+=pt+re}while(!0)}return be}function F(Q,E,M,_,J,K){const te=[];Q||(te.push({x:-E,y:0}),J===0&&te.push({x:-3,y:-1},{x:2,y:-2},{x:-2,y:-2}));const Z=(_+1)*E,ce=u(Q,Z,M,J,!1,null,te,K),ne=[];for(let re=0;re<=_;re++){const ie=[],ae=E*re,ue=ae+E;for(let fe=0;fe<M;fe++)ie.push(ce[fe].subarray(ae,ue));ne.push(ie)}return ne}function s(Q,E,M,_,J,K,te,Z,ce,ne,re,ie,ae,ue,fe){if(te)throw new e("skip is not supported");if(Z!==0)throw new e(`operator "${Z}" is not supported in halftone region`);const Fe=[];let pe,Ce,be;for(pe=0;pe<J;pe++){if(be=new Uint8Array(_),K)for(Ce=0;Ce<_;Ce++)be[Ce]=K;Fe.push(be)}const Ie=E.length,ye=E[0],de=ye[0].length,ge=ye.length,xe=(0,i.log2)(Ie),Oe=[];Q||(Oe.push({x:M<=1?3:2,y:-1}),M===0&&Oe.push({x:-3,y:-1},{x:2,y:-2},{x:-2,y:-2}));const je=[];let it,ke;for(Q&&(it=new V(fe.data,fe.start,fe.end)),pe=xe-1;pe>=0;pe--)Q?ke=oe(it,ce,ne,!0):ke=u(!1,ce,ne,M,!1,null,Oe,fe),je[pe]=ke;let $e,Ge,Qe,ve,Ne,Me,nt,_e,rt;for($e=0;$e<ne;$e++)for(Ge=0;Ge<ce;Ge++){for(Qe=0,ve=0,Ce=xe-1;Ce>=0;Ce--)Qe^=je[Ce][$e][Ge],ve|=Qe<<Ce;if(Ne=E[ve],Me=re+$e*ue+Ge*ae>>8,nt=ie+$e*ae-Ge*ue>>8,Me>=0&&Me+de<=_&&nt>=0&&nt+ge<=J)for(pe=0;pe<ge;pe++)for(rt=Fe[nt+pe],_e=Ne[pe],Ce=0;Ce<de;Ce++)rt[Me+Ce]|=_e[Ce];else{let Xe,Je;for(pe=0;pe<ge;pe++)if(Je=nt+pe,!(Je<0||Je>=J))for(rt=Fe[Je],_e=Ne[pe],Ce=0;Ce<de;Ce++)Xe=Me+Ce,Xe>=0&&Xe<_&&(rt[Xe]|=_e[Ce])}}return Fe}function d(Q,E){const M={};M.number=(0,i.readUint32)(Q,E);const _=Q[E+4],J=_&63;if(!n[J])throw new e("invalid segment type: "+J);M.type=J,M.typeName=n[J],M.deferredNonRetain=!!(_&128);const K=!!(_&64),te=Q[E+5];let Z=te>>5&7;const ce=[te&31];let ne=E+6;if(te===7){Z=(0,i.readUint32)(Q,ne-1)&536870911,ne+=3;let fe=Z+7>>3;for(ce[0]=Q[ne++];--fe>0;)ce.push(Q[ne++])}else if(te===5||te===6)throw new e("invalid referred-to flags");M.retainBits=ce;let re=4;M.number<=256?re=1:M.number<=65536&&(re=2);const ie=[];let ae,ue;for(ae=0;ae<Z;ae++){let fe;re===1?fe=Q[ne]:re===2?fe=(0,i.readUint16)(Q,ne):fe=(0,i.readUint32)(Q,ne),ie.push(fe),ne+=re}if(M.referredTo=ie,K?(M.pageAssociation=(0,i.readUint32)(Q,ne),ne+=4):M.pageAssociation=Q[ne++],M.length=(0,i.readUint32)(Q,ne),ne+=4,M.length===4294967295)if(J===38){const fe=r(Q,ne),Fe=!!(Q[ne+o]&1),pe=6,Ce=new Uint8Array(pe);for(Fe||(Ce[0]=255,Ce[1]=172),Ce[2]=fe.height>>>24&255,Ce[3]=fe.height>>16&255,Ce[4]=fe.height>>8&255,Ce[5]=fe.height&255,ae=ne,ue=Q.length;ae<ue;ae++){let be=0;for(;be<pe&&Ce[be]===Q[ae+be];)be++;if(be===pe){M.length=ae+pe;break}}if(M.length===4294967295)throw new e("segment end was not found")}else throw new e("invalid unknown segment length");return M.headerEnd=ne,M}function S(Q,E,M,_){const J=[];let K=M;for(;K<_;){const te=d(E,K);K=te.headerEnd;const Z={header:te,data:E};if(Q.randomAccess||(Z.start=K,K+=te.length,Z.end=K),J.push(Z),te.type===51)break}if(Q.randomAccess)for(let te=0,Z=J.length;te<Z;te++)J[te].start=K,K+=J[te].header.length,J[te].end=K;return J}function r(Q,E){return{width:(0,i.readUint32)(Q,E),height:(0,i.readUint32)(Q,E+4),x:(0,i.readUint32)(Q,E+8),y:(0,i.readUint32)(Q,E+12),combinationOperator:Q[E+16]&7}}const o=17;function A(Q,E){const M=Q.header,_=Q.data,J=Q.end;let K=Q.start,te,Z,ce,ne;switch(M.type){case 0:const ie={},ae=(0,i.readUint16)(_,K);if(ie.huffman=!!(ae&1),ie.refinement=!!(ae&2),ie.huffmanDHSelector=ae>>2&3,ie.huffmanDWSelector=ae>>4&3,ie.bitmapSizeSelector=ae>>6&1,ie.aggregationInstancesSelector=ae>>7&1,ie.bitmapCodingContextUsed=!!(ae&256),ie.bitmapCodingContextRetained=!!(ae&512),ie.template=ae>>10&3,ie.refinementTemplate=ae>>12&1,K+=2,!ie.huffman){for(ne=ie.template===0?4:1,Z=[],ce=0;ce<ne;ce++)Z.push({x:(0,i.readInt8)(_,K),y:(0,i.readInt8)(_,K+1)}),K+=2;ie.at=Z}if(ie.refinement&&!ie.refinementTemplate){for(Z=[],ce=0;ce<2;ce++)Z.push({x:(0,i.readInt8)(_,K),y:(0,i.readInt8)(_,K+1)}),K+=2;ie.refinementAt=Z}ie.numberOfExportedSymbols=(0,i.readUint32)(_,K),K+=4,ie.numberOfNewSymbols=(0,i.readUint32)(_,K),K+=4,te=[ie,M.number,M.referredTo,_,K,J];break;case 6:case 7:const ue={};ue.info=r(_,K),K+=o;const fe=(0,i.readUint16)(_,K);if(K+=2,ue.huffman=!!(fe&1),ue.refinement=!!(fe&2),ue.logStripSize=fe>>2&3,ue.stripSize=1<<ue.logStripSize,ue.referenceCorner=fe>>4&3,ue.transposed=!!(fe&64),ue.combinationOperator=fe>>7&3,ue.defaultPixelValue=fe>>9&1,ue.dsOffset=fe<<17>>27,ue.refinementTemplate=fe>>15&1,ue.huffman){const ge=(0,i.readUint16)(_,K);K+=2,ue.huffmanFS=ge&3,ue.huffmanDS=ge>>2&3,ue.huffmanDT=ge>>4&3,ue.huffmanRefinementDW=ge>>6&3,ue.huffmanRefinementDH=ge>>8&3,ue.huffmanRefinementDX=ge>>10&3,ue.huffmanRefinementDY=ge>>12&3,ue.huffmanRefinementSizeSelector=!!(ge&16384)}if(ue.refinement&&!ue.refinementTemplate){for(Z=[],ce=0;ce<2;ce++)Z.push({x:(0,i.readInt8)(_,K),y:(0,i.readInt8)(_,K+1)}),K+=2;ue.refinementAt=Z}ue.numberOfSymbolInstances=(0,i.readUint32)(_,K),K+=4,te=[ue,M.referredTo,_,K,J];break;case 16:const me={},Fe=_[K++];me.mmr=!!(Fe&1),me.template=Fe>>1&3,me.patternWidth=_[K++],me.patternHeight=_[K++],me.maxPatternIndex=(0,i.readUint32)(_,K),K+=4,te=[me,M.number,_,K,J];break;case 22:case 23:const pe={};pe.info=r(_,K),K+=o;const Ce=_[K++];pe.mmr=!!(Ce&1),pe.template=Ce>>1&3,pe.enableSkip=!!(Ce&8),pe.combinationOperator=Ce>>4&7,pe.defaultPixelValue=Ce>>7&1,pe.gridWidth=(0,i.readUint32)(_,K),K+=4,pe.gridHeight=(0,i.readUint32)(_,K),K+=4,pe.gridOffsetX=(0,i.readUint32)(_,K)&4294967295,K+=4,pe.gridOffsetY=(0,i.readUint32)(_,K)&4294967295,K+=4,pe.gridVectorX=(0,i.readUint16)(_,K),K+=2,pe.gridVectorY=(0,i.readUint16)(_,K),K+=2,te=[pe,M.referredTo,_,K,J];break;case 38:case 39:const be={};be.info=r(_,K),K+=o;const Ie=_[K++];if(be.mmr=!!(Ie&1),be.template=Ie>>1&3,be.prediction=!!(Ie&8),!be.mmr){for(ne=be.template===0?4:1,Z=[],ce=0;ce<ne;ce++)Z.push({x:(0,i.readInt8)(_,K),y:(0,i.readInt8)(_,K+1)}),K+=2;be.at=Z}te=[be,_,K,J];break;case 48:const ye={width:(0,i.readUint32)(_,K),height:(0,i.readUint32)(_,K+4),resolutionX:(0,i.readUint32)(_,K+8),resolutionY:(0,i.readUint32)(_,K+12)};ye.height===4294967295&&delete ye.height;const de=_[K+16];(0,i.readUint16)(_,K+17),ye.lossless=!!(de&1),ye.refinement=!!(de&2),ye.defaultPixelValue=de>>2&1,ye.combinationOperator=de>>3&3,ye.requiresBuffer=!!(de&32),ye.combinationOperatorOverride=!!(de&64),te=[ye];break;case 49:break;case 50:break;case 51:break;case 53:te=[M.number,_,K,J];break;case 62:break;default:throw new e(`segment type ${M.typeName}(${M.type}) is not implemented`)}const re="on"+M.typeName;re in E&&E[re].apply(E,te)}function p(Q,E){for(let M=0,_=Q.length;M<_;M++)A(Q[M],E)}function v(Q){const E=new R;for(let M=0,_=Q.length;M<_;M++){const J=Q[M],K=S({},J.data,J.start,J.end);p(K,E)}return E.buffer}class R{onPageInformation(E){this.currentPageInfo=E;const M=E.width+7>>3,_=new Uint8ClampedArray(M*E.height);E.defaultPixelValue&&_.fill(255),this.buffer=_}drawBitmap(E,M){const _=this.currentPageInfo,J=E.width,K=E.height,te=_.width+7>>3,Z=_.combinationOperatorOverride?E.combinationOperator:_.combinationOperator,ce=this.buffer,ne=128>>(E.x&7);let re=E.y*te+(E.x>>3),ie,ae,ue,fe;switch(Z){case 0:for(ie=0;ie<K;ie++){for(ue=ne,fe=re,ae=0;ae<J;ae++)M[ie][ae]&&(ce[fe]|=ue),ue>>=1,ue||(ue=128,fe++);re+=te}break;case 2:for(ie=0;ie<K;ie++){for(ue=ne,fe=re,ae=0;ae<J;ae++)M[ie][ae]&&(ce[fe]^=ue),ue>>=1,ue||(ue=128,fe++);re+=te}break;default:throw new e(`operator ${Z} is not supported`)}}onImmediateGenericRegion(E,M,_,J){const K=E.info,te=new D(M,_,J),Z=u(E.mmr,K.width,K.height,E.template,E.prediction,null,E.at,te);this.drawBitmap(K,Z)}onImmediateLosslessGenericRegion(){this.onImmediateGenericRegion(...arguments)}onSymbolDictionary(E,M,_,J,K,te){let Z,ce;E.huffman&&(Z=G(E,_,this.customTables),ce=new V(J,K,te));let ne=this.symbols;ne||(this.symbols=ne={});const re=[];for(const ae of _){const ue=ne[ae];ue&&re.push(...ue)}const ie=new D(J,K,te);ne[M]=X(E.huffman,E.refinement,re,E.numberOfNewSymbols,E.numberOfExportedSymbols,Z,E.template,E.at,E.refinementTemplate,E.refinementAt,ie,ce)}onImmediateTextRegion(E,M,_,J,K){const te=E.info;let Z,ce;const ne=this.symbols,re=[];for(const fe of M){const me=ne[fe];me&&re.push(...me)}const ie=(0,i.log2)(re.length);E.huffman&&(ce=new V(_,J,K),Z=U(E,M,this.customTables,re.length,ce));const ae=new D(_,J,K),ue=f(E.huffman,E.refinement,te.width,te.height,E.defaultPixelValue,E.numberOfSymbolInstances,E.stripSize,re,ie,E.transposed,E.dsOffset,E.referenceCorner,E.combinationOperator,Z,E.refinementTemplate,E.refinementAt,ae,E.logStripSize,ce);this.drawBitmap(te,ue)}onImmediateLosslessTextRegion(){this.onImmediateTextRegion(...arguments)}onPatternDictionary(E,M,_,J,K){let te=this.patterns;te||(this.patterns=te={});const Z=new D(_,J,K);te[M]=F(E.mmr,E.patternWidth,E.patternHeight,E.maxPatternIndex,E.template,Z)}onImmediateHalftoneRegion(E,M,_,J,K){const te=this.patterns[M[0]],Z=E.info,ce=new D(_,J,K),ne=s(E.mmr,te,E.template,Z.width,Z.height,E.defaultPixelValue,E.enableSkip,E.combinationOperator,E.gridWidth,E.gridHeight,E.gridOffsetX,E.gridOffsetY,E.gridVectorX,E.gridVectorY,ce);this.drawBitmap(Z,ne)}onImmediateLosslessHalftoneRegion(){this.onImmediateHalftoneRegion(...arguments)}onTables(E,M,_,J){let K=this.customTables;K||(this.customTables=K={}),K[E]=z(M,_,J)}}class T{constructor(E){E.length===2?(this.isOOB=!0,this.rangeLow=0,this.prefixLength=E[0],this.rangeLength=0,this.prefixCode=E[1],this.isLowerRange=!1):(this.isOOB=!1,this.rangeLow=E[0],this.prefixLength=E[1],this.rangeLength=E[2],this.prefixCode=E[3],this.isLowerRange=E[4]==="lower")}}class y{constructor(E){this.children=[],E?(this.isLeaf=!0,this.rangeLength=E.rangeLength,this.rangeLow=E.rangeLow,this.isLowerRange=E.isLowerRange,this.isOOB=E.isOOB):this.isLeaf=!1}buildTree(E,M){const _=E.prefixCode>>M&1;if(M<=0)this.children[_]=new y(E);else{let J=this.children[_];J||(this.children[_]=J=new y(null)),J.buildTree(E,M-1)}}decodeNode(E){if(this.isLeaf){if(this.isOOB)return null;const _=E.readBits(this.rangeLength);return this.rangeLow+(this.isLowerRange?-_:_)}const M=this.children[E.readBit()];if(!M)throw new e("invalid Huffman data");return M.decodeNode(E)}}class H{constructor(E,M){M||this.assignPrefixCodes(E),this.rootNode=new y(null);for(let _=0,J=E.length;_<J;_++){const K=E[_];K.prefixLength>0&&this.rootNode.buildTree(K,K.prefixLength-1)}}decode(E){return this.rootNode.decodeNode(E)}assignPrefixCodes(E){const M=E.length;let _=0;for(let re=0;re<M;re++)_=Math.max(_,E[re].prefixLength);const J=new Uint32Array(_+1);for(let re=0;re<M;re++)J[E[re].prefixLength]++;let K=1,te=0,Z,ce,ne;for(J[0]=0;K<=_;){for(te=te+J[K-1]<<1,Z=te,ce=0;ce<M;)ne=E[ce],ne.prefixLength===K&&(ne.prefixCode=Z,Z++),ce++;K++}}}function z(Q,E,M){const _=Q[E],J=(0,i.readUint32)(Q,E+1)&4294967295,K=(0,i.readUint32)(Q,E+5)&4294967295,te=new V(Q,E+9,M),Z=(_>>1&7)+1,ce=(_>>4&7)+1,ne=[];let re,ie,ae=J;do re=te.readBits(Z),ie=te.readBits(ce),ne.push(new T([ae,re,ie,0])),ae+=1<<ie;while(ae<K);return re=te.readBits(Z),ne.push(new T([J-1,re,32,0,"lower"])),re=te.readBits(Z),ne.push(new T([K,re,32,0])),_&1&&(re=te.readBits(Z),ne.push(new T([re,0]))),new H(ne,!1)}const $={};function j(Q){let E=$[Q];if(E)return E;let M;switch(Q){case 1:M=[[0,1,4,0],[16,2,8,2],[272,3,16,6],[65808,3,32,7]];break;case 2:M=[[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:M=[[-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:M=[[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:M=[[-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:M=[[-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:M=[[-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:M=[[-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:M=[[-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:M=[[-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:M=[[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:M=[[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:M=[[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:M=[[-2,3,0,4],[-1,3,0,5],[0,1,0,0],[1,3,0,6],[2,3,0,7]];break;case 15:M=[[-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 e(`standard table B.${Q} does not exist`)}for(let _=0,J=M.length;_<J;_++)M[_]=new T(M[_]);return E=new H(M,!0),$[Q]=E,E}class V{constructor(E,M,_){this.data=E,this.start=M,this.end=_,this.position=M,this.shift=-1,this.currentByte=0}readBit(){if(this.shift<0){if(this.position>=this.end)throw new e("end of data while reading bit");this.currentByte=this.data[this.position++],this.shift=7}const E=this.currentByte>>this.shift&1;return this.shift--,E}readBits(E){let M=0,_;for(_=E-1;_>=0;_--)M|=this.readBit()<<_;return M}byteAlign(){this.shift=-1}next(){return this.position>=this.end?-1:this.data[this.position++]}}function ee(Q,E,M){let _=0;for(let J=0,K=E.length;J<K;J++){const te=M[E[J]];if(te){if(Q===_)return te;_++}}throw new e("can't find custom Huffman table")}function U(Q,E,M,_,J){const K=[];for(let ae=0;ae<=34;ae++){const ue=J.readBits(4);K.push(new T([ae,ue,0,0]))}const te=new H(K,!1);K.length=0;for(let ae=0;ae<_;){const ue=te.decode(J);if(ue>=32){let fe,me,Fe;switch(ue){case 32:if(ae===0)throw new e("no previous value in symbol ID table");me=J.readBits(2)+3,fe=K[ae-1].prefixLength;break;case 33:me=J.readBits(3)+3,fe=0;break;case 34:me=J.readBits(7)+11,fe=0;break;default:throw new e("invalid code length in symbol ID table")}for(Fe=0;Fe<me;Fe++)K.push(new T([ae,fe,0,0])),ae++}else K.push(new T([ae,ue,0,0])),ae++}J.byteAlign();const Z=new H(K,!1);let ce=0,ne,re,ie;switch(Q.huffmanFS){case 0:case 1:ne=j(Q.huffmanFS+6);break;case 3:ne=ee(ce,E,M),ce++;break;default:throw new e("invalid Huffman FS selector")}switch(Q.huffmanDS){case 0:case 1:case 2:re=j(Q.huffmanDS+8);break;case 3:re=ee(ce,E,M),ce++;break;default:throw new e("invalid Huffman DS selector")}switch(Q.huffmanDT){case 0:case 1:case 2:ie=j(Q.huffmanDT+11);break;case 3:ie=ee(ce,E,M),ce++;break;default:throw new e("invalid Huffman DT selector")}if(Q.refinement)throw new e("refinement with Huffman is not supported");return{symbolIDTable:Z,tableFirstS:ne,tableDeltaS:re,tableDeltaT:ie}}function G(Q,E,M){let _=0,J,K;switch(Q.huffmanDHSelector){case 0:case 1:J=j(Q.huffmanDHSelector+4);break;case 3:J=ee(_,E,M),_++;break;default:throw new e("invalid Huffman DH selector")}switch(Q.huffmanDWSelector){case 0:case 1:K=j(Q.huffmanDWSelector+2);break;case 3:K=ee(_,E,M),_++;break;default:throw new e("invalid Huffman DW selector")}let te,Z;return Q.bitmapSizeSelector?(te=ee(_,E,M),_++):te=j(1),Q.aggregationInstancesSelector?Z=ee(_,E,M):Z=j(1),{tableDeltaHeight:J,tableDeltaWidth:K,tableBitmapSize:te,tableAggregateInstances:Z}}function Y(Q,E,M){const _=[];for(let J=0;J<M;J++){const K=new Uint8Array(E);_.push(K);for(let te=0;te<E;te++)K[te]=Q.readBit();Q.byteAlign()}return _}function oe(Q,E,M,_){const J={K:-1,Columns:E,Rows:M,BlackIs1:!0,EndOfBlock:_},K=new P.CCITTFaxDecoder(Q,J),te=[];let Z,ce=!1;for(let ne=0;ne<M;ne++){const re=new Uint8Array(E);te.push(re);let ie=-1;for(let ae=0;ae<E;ae++)ie<0&&(Z=K.readNextChar(),Z===-1&&(Z=0,ce=!0),ie=7),re[ae]=Z>>ie&1,ie--}if(_&&!ce)for(let re=0;re<5&&K.readNextChar()!==-1;re++);return te}class se{parseChunks(E){return v(E)}parse(E){throw new Error("Not implemented: Jbig2Image.parse")}}l.Jbig2Image=se},(he,l)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.ArithmeticDecoder=void 0;const w=[{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 t{constructor(O,P,e){this.data=O,this.bp=P,this.dataEnd=e,this.chigh=O[P],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 O=this.data;let P=this.bp;O[P]===255?O[P+1]>143?(this.clow+=65280,this.ct=8):(P++,this.clow+=O[P]<<9,this.ct=7,this.bp=P):(P++,this.clow+=P<this.dataEnd?O[P]<<8:65280,this.ct=8,this.bp=P),this.clow>65535&&(this.chigh+=this.clow>>16,this.clow&=65535)}readBit(O,P){let e=O[P]>>1,N=O[P]&1;const D=w[e],L=D.qe;let k,x=this.a-L;if(this.chigh<L)x<L?(x=L,k=N,e=D.nmps):(x=L,k=1^N,D.switchFlag===1&&(N=k),e=D.nlps);else{if(this.chigh-=L,x&32768)return this.a=x,N;x<L?(k=1^N,D.switchFlag===1&&(N=k),e=D.nlps):(k=N,e=D.nmps)}do this.ct===0&&this.byteIn(),x<<=1,this.chigh=this.chigh<<1&65535|this.clow>>15&1,this.clow=this.clow<<1&65535,this.ct--;while(!(x&32768));return this.a=x,O[P]=e<<1|N,k}}l.ArithmeticDecoder=t},(he,l,w)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.JpegStream=void 0;var t=w(150),i=w(137),O=w(159),P=w(2);class e extends t.DecodeStream{constructor(D,L,k){let x;for(;(x=D.getByte())!==-1;)if(x===255){D.skip(-1);break}super(L),this.stream=D,this.dict=D.dict,this.maybeLength=L,this.params=k}get bytes(){return(0,P.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))}ensureBuffer(D){}readBlock(){if(this.eof)return;const D={decodeTransform:void 0,colorTransform:void 0},L=this.dict.getArray("D","Decode");if(this.forceRGB&&Array.isArray(L)){const g=this.dict.get("BPC","BitsPerComponent")||8,n=L.length,I=new Int32Array(n);let B=!1;const h=(1<<g)-1;for(let c=0;c<n;c+=2)I[c]=(L[c+1]-L[c])*256|0,I[c+1]=L[c]*h|0,(I[c]!==256||I[c+1]!==0)&&(B=!0);B&&(D.decodeTransform=I)}if(this.params instanceof i.Dict){const g=this.params.get("ColorTransform");Number.isInteger(g)&&(D.colorTransform=g)}const k=new O.JpegImage(D);k.parse(this.bytes);const x=k.getData({width:this.drawWidth,height:this.drawHeight,forceRGB:this.forceRGB,isSourcePDF:!0});this.buffer=x,this.bufferLength=x.length,this.eof=!0}}l.JpegStream=e},(he,l,w)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.JpegImage=void 0;var t=w(2),i=w(136);class O extends t.BaseException{constructor(s){super(`JPEG error: ${s}`,"JpegError")}}class P extends t.BaseException{constructor(s,d){super(s,"DNLMarkerError"),this.scanLines=d}}class e extends t.BaseException{constructor(s){super(s,"EOIMarkerError")}}const N=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]),D=4017,L=799,k=3406,x=2276,g=1567,n=3784,I=5793,B=2896;function h(F,s){let d=0,S,r,o=16;for(;o>0&&!F[o-1];)o--;const A=[{children:[],index:0}];let p=A[0],v;for(S=0;S<o;S++){for(r=0;r<F[S];r++){for(p=A.pop(),p.children[p.index]=s[d];p.index>0;)p=A.pop();for(p.index++,A.push(p);A.length<=S;)A.push(v={children:[],index:0}),p.children[p.index]=v.children,p=v;d++}S+1<o&&(A.push(v={children:[],index:0}),p.children[p.index]=v.children,p=v)}return A[0].children}function c(F,s,d){return 64*((F.blocksPerLine+1)*s+d)}function C(F,s,d,S,r,o,A,p,v){let R=arguments.length>9&&arguments[9]!==void 0?arguments[9]:!1;const T=d.mcusPerLine,y=d.progressive,H=s;let z=0,$=0;function j(){if($>0)return $--,z>>$&1;if(z=F[s++],z===255){const be=F[s++];if(be){if(be===220&&R){s+=2;const Ie=(0,i.readUint16)(F,s);if(s+=2,Ie>0&&Ie!==d.scanLines)throw new P("Found DNL marker (0xFFDC) while parsing scan data",Ie)}else if(be===217){if(R){const Ie=J*(d.precision===8?8:0);if(Ie>0&&Math.round(d.scanLines/Ie)>=5)throw new P("Found EOI marker (0xFFD9) while parsing scan data, possibly caused by incorrect `scanLines` parameter",Ie)}throw new e("Found EOI marker (0xFFD9) while parsing scan data")}throw new O(`unexpected marker ${(z<<8|be).toString(16)}`)}}return $=7,z>>>7}function V(be){let Ie=be;for(;;){switch(Ie=Ie[j()],typeof Ie){case"number":return Ie;case"object":continue}throw new O("invalid huffman sequence")}}function ee(be){let Ie=0;for(;be>0;)Ie=Ie<<1|j(),be--;return Ie}function U(be){if(be===1)return j()===1?1:-1;const Ie=ee(be);return Ie>=1<<be-1?Ie:Ie+(-1<<be)+1}function G(be,Ie){const ye=V(be.huffmanTableDC),de=ye===0?0:U(ye);be.blockData[Ie]=be.pred+=de;let ge=1;for(;ge<64;){const xe=V(be.huffmanTableAC),Oe=xe&15,je=xe>>4;if(Oe===0){if(je<15)break;ge+=16;continue}ge+=je;const it=N[ge];be.blockData[Ie+it]=U(Oe),ge++}}function Y(be,Ie){const ye=V(be.huffmanTableDC),de=ye===0?0:U(ye)<<v;be.blockData[Ie]=be.pred+=de}function oe(be,Ie){be.blockData[Ie]|=j()<<v}let se=0;function Q(be,Ie){if(se>0){se--;return}let ye=o;const de=A;for(;ye<=de;){const ge=V(be.huffmanTableAC),xe=ge&15,Oe=ge>>4;if(xe===0){if(Oe<15){se=ee(Oe)+(1<<Oe)-1;break}ye+=16;continue}ye+=Oe;const je=N[ye];be.blockData[Ie+je]=U(xe)*(1<<v),ye++}}let E=0,M;function _(be,Ie){let ye=o;const de=A;let ge=0,xe,Oe;for(;ye<=de;){const je=Ie+N[ye],it=be.blockData[je]<0?-1:1;switch(E){case 0:if(Oe=V(be.huffmanTableAC),xe=Oe&15,ge=Oe>>4,xe===0)ge<15?(se=ee(ge)+(1<<ge),E=4):(ge=16,E=1);else{if(xe!==1)throw new O("invalid ACn encoding");M=U(xe),E=ge?2:3}continue;case 1:case 2:be.blockData[je]?be.blockData[je]+=it*(j()<<v):(ge--,ge===0&&(E=E===2?3:0));break;case 3:be.blockData[je]?be.blockData[je]+=it*(j()<<v):(be.blockData[je]=M<<v,E=0);break;case 4:be.blockData[je]&&(be.blockData[je]+=it*(j()<<v));break}ye++}E===4&&(se--,se===0&&(E=0))}let J=0;function K(be,Ie,ye,de,ge){const xe=ye/T|0,Oe=ye%T;J=xe*be.v+de;const je=Oe*be.h+ge,it=c(be,J,je);Ie(be,it)}function te(be,Ie,ye){J=ye/be.blocksPerLine|0;const de=ye%be.blocksPerLine,ge=c(be,J,de);Ie(be,ge)}const Z=S.length;let ce,ne,re,ie,ae,ue;y?o===0?ue=p===0?Y:oe:ue=p===0?Q:_:ue=G;let fe=0,me,Fe;Z===1?Fe=S[0].blocksPerLine*S[0].blocksPerColumn:Fe=T*d.mcusPerColumn;let pe,Ce;for(;fe<=Fe;){const be=r?Math.min(Fe-fe,r):Fe;if(be>0){for(ne=0;ne<Z;ne++)S[ne].pred=0;if(se=0,Z===1)for(ce=S[0],ae=0;ae<be;ae++)te(ce,ue,fe),fe++;else for(ae=0;ae<be;ae++){for(ne=0;ne<Z;ne++)for(ce=S[ne],pe=ce.h,Ce=ce.v,re=0;re<Ce;re++)for(ie=0;ie<pe;ie++)K(ce,ue,fe,re,ie);fe++}}if($=0,me=X(F,s),!me)break;if(me.invalid){const Ie=be>0?"unexpected":"excessive";(0,t.warn)(`decodeScan - ${Ie} MCU data, current marker is: ${me.invalid}`),s=me.offset}if(me.marker>=65488&&me.marker<=65495)s+=2;else break}return s-H}function u(F,s,d){const S=F.quantizationTable,r=F.blockData;let o,A,p,v,R,T,y,H,z,$,j,V,ee,U,G,Y,oe;if(!S)throw new O("missing required Quantization Table.");for(let se=0;se<64;se+=8){if(z=r[s+se],$=r[s+se+1],j=r[s+se+2],V=r[s+se+3],ee=r[s+se+4],U=r[s+se+5],G=r[s+se+6],Y=r[s+se+7],z*=S[se],!($|j|V|ee|U|G|Y)){oe=I*z+512>>10,d[se]=oe,d[se+1]=oe,d[se+2]=oe,d[se+3]=oe,d[se+4]=oe,d[se+5]=oe,d[se+6]=oe,d[se+7]=oe;continue}$*=S[se+1],j*=S[se+2],V*=S[se+3],ee*=S[se+4],U*=S[se+5],G*=S[se+6],Y*=S[se+7],o=I*z+128>>8,A=I*ee+128>>8,p=j,v=G,R=B*($-Y)+128>>8,H=B*($+Y)+128>>8,T=V<<4,y=U<<4,o=o+A+1>>1,A=o-A,oe=p*n+v*g+128>>8,p=p*g-v*n+128>>8,v=oe,R=R+y+1>>1,y=R-y,H=H+T+1>>1,T=H-T,o=o+v+1>>1,v=o-v,A=A+p+1>>1,p=A-p,oe=R*x+H*k+2048>>12,R=R*k-H*x+2048>>12,H=oe,oe=T*L+y*D+2048>>12,T=T*D-y*L+2048>>12,y=oe,d[se]=o+H,d[se+7]=o-H,d[se+1]=A+y,d[se+6]=A-y,d[se+2]=p+T,d[se+5]=p-T,d[se+3]=v+R,d[se+4]=v-R}for(let se=0;se<8;++se){if(z=d[se],$=d[se+8],j=d[se+16],V=d[se+24],ee=d[se+32],U=d[se+40],G=d[se+48],Y=d[se+56],!($|j|V|ee|U|G|Y)){oe=I*z+8192>>14,oe<-2040?oe=0:oe>=2024?oe=255:oe=oe+2056>>4,r[s+se]=oe,r[s+se+8]=oe,r[s+se+16]=oe,r[s+se+24]=oe,r[s+se+32]=oe,r[s+se+40]=oe,r[s+se+48]=oe,r[s+se+56]=oe;continue}o=I*z+2048>>12,A=I*ee+2048>>12,p=j,v=G,R=B*($-Y)+2048>>12,H=B*($+Y)+2048>>12,T=V,y=U,o=(o+A+1>>1)+4112,A=o-A,oe=p*n+v*g+2048>>12,p=p*g-v*n+2048>>12,v=oe,R=R+y+1>>1,y=R-y,H=H+T+1>>1,T=H-T,o=o+v+1>>1,v=o-v,A=A+p+1>>1,p=A-p,oe=R*x+H*k+2048>>12,R=R*k-H*x+2048>>12,H=oe,oe=T*L+y*D+2048>>12,T=T*D-y*L+2048>>12,y=oe,z=o+H,Y=o-H,$=A+y,G=A-y,j=p+T,U=p-T,V=v+R,ee=v-R,z<16?z=0:z>=4080?z=255:z>>=4,$<16?$=0:$>=4080?$=255:$>>=4,j<16?j=0:j>=4080?j=255:j>>=4,V<16?V=0:V>=4080?V=255:V>>=4,ee<16?ee=0:ee>=4080?ee=255:ee>>=4,U<16?U=0:U>=4080?U=255:U>>=4,G<16?G=0:G>=4080?G=255:G>>=4,Y<16?Y=0:Y>=4080?Y=255:Y>>=4,r[s+se]=z,r[s+se+8]=$,r[s+se+16]=j,r[s+se+24]=V,r[s+se+32]=ee,r[s+se+40]=U,r[s+se+48]=G,r[s+se+56]=Y}}function m(F,s){const d=s.blocksPerLine,S=s.blocksPerColumn,r=new Int16Array(64);for(let o=0;o<S;o++)for(let A=0;A<d;A++){const p=c(s,o,A);u(s,p,r)}return s.blockData}function X(F,s){let d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:s;const S=F.length-1;let r=d<s?d:s;if(s>=S)return null;const o=(0,i.readUint16)(F,s);if(o>=65472&&o<=65534)return{invalid:null,marker:o,offset:s};let A=(0,i.readUint16)(F,r);for(;!(A>=65472&&A<=65534);){if(++r>=S)return null;A=(0,i.readUint16)(F,r)}return{invalid:o.toString(16),marker:A,offset:r}}class f{constructor(){let{decodeTransform:s=null,colorTransform:d=-1}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this._decodeTransform=s,this._colorTransform=d}parse(s){let{dnlScanLines:d=null}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};function S(){const j=(0,i.readUint16)(s,o);o+=2;let V=o+j-2;const ee=X(s,V,o);ee&&ee.invalid&&((0,t.warn)("readDataBlock - incorrect length, current marker is: "+ee.invalid),V=ee.offset);const U=s.subarray(o,V);return o+=U.length,U}function r(j){const V=Math.ceil(j.samplesPerLine/8/j.maxH),ee=Math.ceil(j.scanLines/8/j.maxV);for(const U of j.components){const G=Math.ceil(Math.ceil(j.samplesPerLine/8)*U.h/j.maxH),Y=Math.ceil(Math.ceil(j.scanLines/8)*U.v/j.maxV),oe=V*U.h,Q=64*(ee*U.v)*(oe+1);U.blockData=new Int16Array(Q),U.blocksPerLine=G,U.blocksPerColumn=Y}j.mcusPerLine=V,j.mcusPerColumn=ee}let o=0,A=null,p=null,v,R,T=0;const y=[],H=[],z=[];let $=(0,i.readUint16)(s,o);if(o+=2,$!==65496)throw new O("SOI not found");$=(0,i.readUint16)(s,o),o+=2;e:for(;$!==65497;){let j,V,ee;switch($){case 65504:case 65505:case 65506:case 65507:case 65508:case 65509:case 65510:case 65511:case 65512:case 65513:case 65514:case 65515:case 65516:case 65517:case 65518:case 65519:case 65534:const U=S();$===65504&&U[0]===74&&U[1]===70&&U[2]===73&&U[3]===70&&U[4]===0&&(A={version:{major:U[5],minor:U[6]},densityUnits:U[7],xDensity:U[8]<<8|U[9],yDensity:U[10]<<8|U[11],thumbWidth:U[12],thumbHeight:U[13],thumbData:U.subarray(14,14+3*U[12]*U[13])}),$===65518&&U[0]===65&&U[1]===100&&U[2]===111&&U[3]===98&&U[4]===101&&(p={version:U[5]<<8|U[6],flags0:U[7]<<8|U[8],flags1:U[9]<<8|U[10],transformCode:U[11]});break;case 65499:const G=(0,i.readUint16)(s,o);o+=2;const Y=G+o-2;let oe;for(;o<Y;){const ie=s[o++],ae=new Uint16Array(64);if(ie>>4)if(ie>>4===1)for(V=0;V<64;V++)oe=N[V],ae[oe]=(0,i.readUint16)(s,o),o+=2;else throw new O("DQT - invalid table spec");else for(V=0;V<64;V++)oe=N[V],ae[oe]=s[o++];y[ie&15]=ae}break;case 65472:case 65473:case 65474:if(v)throw new O("Only single frame JPEGs supported");o+=2,v={},v.extended=$===65473,v.progressive=$===65474,v.precision=s[o++];const se=(0,i.readUint16)(s,o);o+=2,v.scanLines=d||se,v.samplesPerLine=(0,i.readUint16)(s,o),o+=2,v.components=[],v.componentIds={};const Q=s[o++];let E=0,M=0;for(j=0;j<Q;j++){const ie=s[o],ae=s[o+1]>>4,ue=s[o+1]&15;E<ae&&(E=ae),M<ue&&(M=ue);const fe=s[o+2];ee=v.components.push({h:ae,v:ue,quantizationId:fe,quantizationTable:null}),v.componentIds[ie]=ee-1,o+=3}v.maxH=E,v.maxV=M,r(v);break;case 65476:const _=(0,i.readUint16)(s,o);for(o+=2,j=2;j<_;){const ie=s[o++],ae=new Uint8Array(16);let ue=0;for(V=0;V<16;V++,o++)ue+=ae[V]=s[o];const fe=new Uint8Array(ue);for(V=0;V<ue;V++,o++)fe[V]=s[o];j+=17+ue,(ie>>4?H:z)[ie&15]=h(ae,fe)}break;case 65501:o+=2,R=(0,i.readUint16)(s,o),o+=2;break;case 65498:const J=++T===1&&!d;o+=2;const K=s[o++],te=[];for(j=0;j<K;j++){const ie=s[o++],ae=v.componentIds[ie],ue=v.components[ae];ue.index=ie;const fe=s[o++];ue.huffmanTableDC=z[fe>>4],ue.huffmanTableAC=H[fe&15],te.push(ue)}const Z=s[o++],ce=s[o++],ne=s[o++];try{const ie=C(s,o,v,te,R,Z,ce,ne>>4,ne&15,J);o+=ie}catch(ie){if(ie instanceof P)return(0,t.warn)(`${ie.message} -- attempting to re-parse the JPEG image.`),this.parse(s,{dnlScanLines:ie.scanLines});if(ie instanceof e){(0,t.warn)(`${ie.message} -- ignoring the rest of the image data.`);break e}throw ie}break;case 65500:o+=4;break;case 65535:s[o]!==255&&o--;break;default:const re=X(s,o-2,o-3);if(re&&re.invalid){(0,t.warn)("JpegImage.parse - unexpected data, current marker is: "+re.invalid),o=re.offset;break}if(!re||o>=s.length-1){(0,t.warn)("JpegImage.parse - reached the end of the image data without finding an EOI marker (0xFFD9).");break e}throw new O("JpegImage.parse - unknown marker: "+$.toString(16))}$=(0,i.readUint16)(s,o),o+=2}this.width=v.samplesPerLine,this.height=v.scanLines,this.jfif=A,this.adobe=p,this.components=[];for(const j of v.components){const V=y[j.quantizationId];V&&(j.quantizationTable=V),this.components.push({index:j.index,output:m(v,j),scaleX:j.h/v.maxH,scaleY:j.v/v.maxV,blocksPerLine:j.blocksPerLine,blocksPerColumn:j.blocksPerColumn})}this.numComponents=this.components.length}_getLinearizedBlockData(s,d){let S=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const r=this.width/s,o=this.height/d;let A,p,v,R,T,y,H,z,$,j,V=0,ee;const U=this.components.length,G=s*d*U,Y=new Uint8ClampedArray(G),oe=new Uint32Array(s),se=4294967288;let Q;for(H=0;H<U;H++){if(A=this.components[H],p=A.scaleX*r,v=A.scaleY*o,V=H,ee=A.output,R=A.blocksPerLine+1<<3,p!==Q){for(T=0;T<s;T++)z=0|T*p,oe[T]=(z&se)<<3|z&7;Q=p}for(y=0;y<d;y++)for(z=0|y*v,j=R*(z&se)|(z&7)<<3,T=0;T<s;T++)Y[V]=ee[j+oe[T]],V+=U}let E=this._decodeTransform;if(!S&&U===4&&!E&&(E=new Int32Array([-256,255,-256,255,-256,255,-256,255])),E)for(H=0;H<G;)for(z=0,$=0;z<U;z++,H++,$+=2)Y[H]=(Y[H]*E[$]>>8)+E[$+1];return Y}get _isColorConversionNeeded(){return this.adobe?!!this.adobe.transformCode:this.numComponents===3?this._colorTransform===0?!1:!(this.components[0].index===82&&this.components[1].index===71&&this.components[2].index===66):this._colorTransform===1}_convertYccToRgb(s){let d,S,r;for(let o=0,A=s.length;o<A;o+=3)d=s[o],S=s[o+1],r=s[o+2],s[o]=d-179.456+1.402*r,s[o+1]=d+135.459-.344*S-.714*r,s[o+2]=d-226.816+1.772*S;return s}_convertYcckToRgb(s){let d,S,r,o,A=0;for(let p=0,v=s.length;p<v;p+=4)d=s[p],S=s[p+1],r=s[p+2],o=s[p+3],s[A++]=-122.67195406894+S*(-660635669420364e-19*S+.000437130475926232*r-54080610064599e-18*d+.00048449797120281*o-.154362151871126)+r*(-.000957964378445773*r+.000817076911346625*d-.00477271405408747*o+1.53380253221734)+d*(.000961250184130688*d-.00266257332283933*o+.48357088451265)+o*(-.000336197177618394*o+.484791561490776),s[A++]=107.268039397724+S*(219927104525741e-19*S-.000640992018297945*r+.000659397001245577*d+.000426105652938837*o-.176491792462875)+r*(-.000778269941513683*r+.00130872261408275*d+.000770482631801132*o-.151051492775562)+d*(.00126935368114843*d-.00265090189010898*o+.25802910206845)+o*(-.000318913117588328*o-.213742400323665),s[A++]=-20.810012546947+S*(-.000570115196973677*S-263409051004589e-19*r+.0020741088115012*d-.00288260236853442*o+.814272968359295)+r*(-153496057440975e-19*r-.000132689043961446*d+.000560833691242812*o-.195152027534049)+d*(.00174418132927582*d-.00255243321439347*o+.116935020465145)+o*(-.000343531996510555*o+.24165260232407);return s.subarray(0,A)}_convertYcckToCmyk(s){let d,S,r;for(let o=0,A=s.length;o<A;o+=4)d=s[o],S=s[o+1],r=s[o+2],s[o]=434.456-d-1.402*r,s[o+1]=119.541-d+.344*S+.714*r,s[o+2]=481.816-d-1.772*S;return s}_convertCmykToRgb(s){let d,S,r,o,A=0;for(let p=0,v=s.length;p<v;p+=4)d=s[p],S=s[p+1],r=s[p+2],o=s[p+3],s[A++]=255+d*(-6747147073602441e-20*d+.0008379262121013727*S+.0002894718188643294*r+.003264231057537806*o-1.1185611867203937)+S*(26374107616089405e-21*S-8626949158638572e-20*r-.0002748769067499491*o-.02155688794978967)+r*(-3878099212869363e-20*r-.0003267808279485286*o+.0686742238595345)-o*(.0003361971776183937*o+.7430659151342254),s[A++]=255+d*(.00013596372813588848*d+.000924537132573585*S+.00010567359618683593*r+.0004791864687436512*o-.3109689587515875)+S*(-.00023545346108370344*S+.0002702845253534714*r+.0020200308977307156*o-.7488052167015494)+r*(6834815998235662e-20*r+.00015168452363460973*o-.09751927774728933)-o*(.0003189131175883281*o+.7364883807733168),s[A++]=255+d*(13598650411385307e-21*d+.00012423956175490851*S+.0004751985097583589*r-36729317476630422e-22*o-.05562186980264034)+S*(.00016141380598724676*S+.0009692239130725186*r+.0007782692450036253*o-.44015232367526463)+r*(5068882914068769e-22*r+.0017778369011375071*o-.7591454649749609)-o*(.0003435319965105553*o+.7063770186160144);return s.subarray(0,A)}getData(s){let{width:d,height:S,forceRGB:r=!1,isSourcePDF:o=!1}=s;if(this.numComponents>4)throw new O("Unsupported color mode");const A=this._getLinearizedBlockData(d,S,o);if(this.numComponents===1&&r){const p=new Uint8ClampedArray(A.length*3);let v=0;for(const R of A)p[v++]=R,p[v++]=R,p[v++]=R;return p}else{if(this.numComponents===3&&this._isColorConversionNeeded)return this._convertYccToRgb(A);if(this.numComponents===4){if(this._isColorConversionNeeded)return r?this._convertYcckToRgb(A):this._convertYcckToCmyk(A);if(r)return this._convertCmykToRgb(A)}}return A}}l.JpegImage=f},(he,l,w)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.JpxStream=void 0;var t=w(150),i=w(161),O=w(2);class P extends t.DecodeStream{constructor(N,D,L){super(D),this.stream=N,this.dict=N.dict,this.maybeLength=D,this.params=L}get bytes(){return(0,O.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))}ensureBuffer(N){}readBlock(){if(this.eof)return;const N=new i.JpxImage;N.parse(this.bytes);const D=N.width,L=N.height,k=N.componentsCount,x=N.tiles.length;if(x===1)this.buffer=N.tiles[0].items;else{const g=new Uint8ClampedArray(D*L*k);for(let n=0;n<x;n++){const I=N.tiles[n],B=I.width,h=I.height,c=I.left,C=I.top,u=I.items;let m=0,X=(D*C+c)*k;const f=D*k,F=B*k;for(let s=0;s<h;s++){const d=u.subarray(m,m+F);g.set(d,X),m+=F,X+=f}}this.buffer=g}this.bufferLength=this.buffer.length,this.eof=!0}}l.JpxStream=P},(he,l,w)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.JpxImage=void 0;var t=w(2),i=w(136),O=w(157);class P extends t.BaseException{constructor(y){super(`JPX error: ${y}`,"JpxError")}}const e={LL:0,LH:1,HL:1,HH:2};class N{constructor(){this.failOnCorruptedImage=!1}parse(y){if((0,i.readUint16)(y,0)===65359){this.parseCodestream(y,0,y.length);return}const z=y.length;let $=0;for(;$<z;){let j=8,V=(0,i.readUint32)(y,$);const ee=(0,i.readUint32)(y,$+4);if($+=j,V===1&&(V=(0,i.readUint32)(y,$)*4294967296+(0,i.readUint32)(y,$+4),$+=8,j+=8),V===0&&(V=z-$+j),V<j)throw new P("Invalid box field size");const U=V-j;let G=!0;switch(ee){case 1785737832:G=!1;break;case 1668246642:const Y=y[$];if(Y===1){const se=(0,i.readUint32)(y,$+3);switch(se){case 16:case 17:case 18:break;default:(0,t.warn)("Unknown colorspace "+se);break}}else Y===2&&(0,t.info)("ICC profile not supported");break;case 1785737827:this.parseCodestream(y,$,$+U);break;case 1783636e3:(0,i.readUint32)(y,$)!==218793738&&(0,t.warn)("Invalid JP2 signature");break;case 1783634458:case 1718909296:case 1920099697:case 1919251232:case 1768449138:break;default:const oe=String.fromCharCode(ee>>24&255,ee>>16&255,ee>>8&255,ee&255);(0,t.warn)(`Unsupported header type ${ee} (${oe}).`);break}G&&($+=U)}}parseImageProperties(y){let H=y.getByte();for(;H>=0;){const z=H;if(H=y.getByte(),(z<<8|H)===65361){y.skip(4);const j=y.getInt32()>>>0,V=y.getInt32()>>>0,ee=y.getInt32()>>>0,U=y.getInt32()>>>0;y.skip(16);const G=y.getUint16();this.width=j-ee,this.height=V-U,this.componentsCount=G,this.bitsPerComponent=8;return}}throw new P("No size marker found in JPX stream")}parseCodestream(y,H,z){const $={};let j=!1;try{let V=H;for(;V+1<z;){const ee=(0,i.readUint16)(y,V);V+=2;let U=0,G,Y,oe,se,Q,E;switch(ee){case 65359:$.mainHeader=!0;break;case 65497:break;case 65361:U=(0,i.readUint16)(y,V);const M={};M.Xsiz=(0,i.readUint32)(y,V+4),M.Ysiz=(0,i.readUint32)(y,V+8),M.XOsiz=(0,i.readUint32)(y,V+12),M.YOsiz=(0,i.readUint32)(y,V+16),M.XTsiz=(0,i.readUint32)(y,V+20),M.YTsiz=(0,i.readUint32)(y,V+24),M.XTOsiz=(0,i.readUint32)(y,V+28),M.YTOsiz=(0,i.readUint32)(y,V+32);const _=(0,i.readUint16)(y,V+36);M.Csiz=_;const J=[];G=V+38;for(let ae=0;ae<_;ae++){const ue={precision:(y[G]&127)+1,isSigned:!!(y[G]&128),XRsiz:y[G+1],YRsiz:y[G+2]};G+=3,D(ue,M),J.push(ue)}$.SIZ=M,$.components=J,L($,J),$.QCC=[],$.COC=[];break;case 65372:U=(0,i.readUint16)(y,V);const K={};switch(G=V+2,Y=y[G++],Y&31){case 0:se=8,Q=!0;break;case 1:se=16,Q=!1;break;case 2:se=16,Q=!0;break;default:throw new Error("Invalid SQcd value "+Y)}for(K.noQuantization=se===8,K.scalarExpounded=Q,K.guardBits=Y>>5,oe=[];G<U+V;){const ae={};se===8?(ae.epsilon=y[G++]>>3,ae.mu=0):(ae.epsilon=y[G]>>3,ae.mu=(y[G]&7)<<8|y[G+1],G+=2),oe.push(ae)}K.SPqcds=oe,$.mainHeader?$.QCD=K:($.currentTile.QCD=K,$.currentTile.QCC=[]);break;case 65373:U=(0,i.readUint16)(y,V);const te={};G=V+2;let Z;switch($.SIZ.Csiz<257?Z=y[G++]:(Z=(0,i.readUint16)(y,G),G+=2),Y=y[G++],Y&31){case 0:se=8,Q=!0;break;case 1:se=16,Q=!1;break;case 2:se=16,Q=!0;break;default:throw new Error("Invalid SQcd value "+Y)}for(te.noQuantization=se===8,te.scalarExpounded=Q,te.guardBits=Y>>5,oe=[];G<U+V;){const ae={};se===8?(ae.epsilon=y[G++]>>3,ae.mu=0):(ae.epsilon=y[G]>>3,ae.mu=(y[G]&7)<<8|y[G+1],G+=2),oe.push(ae)}te.SPqcds=oe,$.mainHeader?$.QCC[Z]=te:$.currentTile.QCC[Z]=te;break;case 65362:U=(0,i.readUint16)(y,V);const ce={};G=V+2;const ne=y[G++];ce.entropyCoderWithCustomPrecincts=!!(ne&1),ce.sopMarkerUsed=!!(ne&2),ce.ephMarkerUsed=!!(ne&4),ce.progressionOrder=y[G++],ce.layersCount=(0,i.readUint16)(y,G),G+=2,ce.multipleComponentTransform=y[G++],ce.decompositionLevelsCount=y[G++],ce.xcb=(y[G++]&15)+2,ce.ycb=(y[G++]&15)+2;const re=y[G++];if(ce.selectiveArithmeticCodingBypass=!!(re&1),ce.resetContextProbabilities=!!(re&2),ce.terminationOnEachCodingPass=!!(re&4),ce.verticallyStripe=!!(re&8),ce.predictableTermination=!!(re&16),ce.segmentationSymbolUsed=!!(re&32),ce.reversibleTransformation=y[G++],ce.entropyCoderWithCustomPrecincts){const ae=[];for(;G<U+V;){const ue=y[G++];ae.push({PPx:ue&15,PPy:ue>>4})}ce.precinctsSizes=ae}const ie=[];ce.selectiveArithmeticCodingBypass&&ie.push("selectiveArithmeticCodingBypass"),ce.terminationOnEachCodingPass&&ie.push("terminationOnEachCodingPass"),ce.verticallyStripe&&ie.push("verticallyStripe"),ce.predictableTermination&&ie.push("predictableTermination"),ie.length>0&&(j=!0,(0,t.warn)(`JPX: Unsupported COD options (${ie.join(", ")}).`)),$.mainHeader?$.COD=ce:($.currentTile.COD=ce,$.currentTile.COC=[]);break;case 65424:U=(0,i.readUint16)(y,V),E={},E.index=(0,i.readUint16)(y,V+2),E.length=(0,i.readUint32)(y,V+4),E.dataEnd=E.length+V-2,E.partIndex=y[V+8],E.partsCount=y[V+9],$.mainHeader=!1,E.partIndex===0&&(E.COD=$.COD,E.COC=$.COC.slice(0),E.QCD=$.QCD,E.QCC=$.QCC.slice(0)),$.currentTile=E;break;case 65427:E=$.currentTile,E.partIndex===0&&(S($,E.index),X($)),U=E.dataEnd-V,f($,y,V,U);break;case 65363:(0,t.warn)("JPX: Codestream code 0xFF53 (COC) is not implemented.");case 65365:case 65367:case 65368:case 65380:U=(0,i.readUint16)(y,V);break;default:throw new Error("Unknown codestream code: "+ee.toString(16))}V+=U}}catch(V){if(j||this.failOnCorruptedImage)throw new P(V.message);(0,t.warn)(`JPX: Trying to recover from: "${V.message}".`)}this.tiles=d($),this.width=$.SIZ.Xsiz-$.SIZ.XOsiz,this.height=$.SIZ.Ysiz-$.SIZ.YOsiz,this.componentsCount=$.SIZ.Csiz}}l.JpxImage=N;function D(T,y){T.x0=Math.ceil(y.XOsiz/T.XRsiz),T.x1=Math.ceil(y.Xsiz/T.XRsiz),T.y0=Math.ceil(y.YOsiz/T.YRsiz),T.y1=Math.ceil(y.Ysiz/T.YRsiz),T.width=T.x1-T.x0,T.height=T.y1-T.y0}function L(T,y){const H=T.SIZ,z=[];let $;const j=Math.ceil((H.Xsiz-H.XTOsiz)/H.XTsiz),V=Math.ceil((H.Ysiz-H.YTOsiz)/H.YTsiz);for(let U=0;U<V;U++)for(let G=0;G<j;G++)$={},$.tx0=Math.max(H.XTOsiz+G*H.XTsiz,H.XOsiz),$.ty0=Math.max(H.YTOsiz+U*H.YTsiz,H.YOsiz),$.tx1=Math.min(H.XTOsiz+(G+1)*H.XTsiz,H.Xsiz),$.ty1=Math.min(H.YTOsiz+(U+1)*H.YTsiz,H.Ysiz),$.width=$.tx1-$.tx0,$.height=$.ty1-$.ty0,$.components=[],z.push($);T.tiles=z;const ee=H.Csiz;for(let U=0,G=ee;U<G;U++){const Y=y[U];for(let oe=0,se=z.length;oe<se;oe++){const Q={};$=z[oe],Q.tcx0=Math.ceil($.tx0/Y.XRsiz),Q.tcy0=Math.ceil($.ty0/Y.YRsiz),Q.tcx1=Math.ceil($.tx1/Y.XRsiz),Q.tcy1=Math.ceil($.ty1/Y.YRsiz),Q.width=Q.tcx1-Q.tcx0,Q.height=Q.tcy1-Q.tcy0,$.components[U]=Q}}}function k(T,y,H){const z=y.codingStyleParameters,$={};return z.entropyCoderWithCustomPrecincts?($.PPx=z.precinctsSizes[H].PPx,$.PPy=z.precinctsSizes[H].PPy):($.PPx=15,$.PPy=15),$.xcb_=H>0?Math.min(z.xcb,$.PPx-1):Math.min(z.xcb,$.PPx),$.ycb_=H>0?Math.min(z.ycb,$.PPy-1):Math.min(z.ycb,$.PPy),$}function x(T,y,H){const z=1<<H.PPx,$=1<<H.PPy,j=y.resLevel===0,V=1<<H.PPx+(j?0:-1),ee=1<<H.PPy+(j?0:-1),U=y.trx1>y.trx0?Math.ceil(y.trx1/z)-Math.floor(y.trx0/z):0,G=y.try1>y.try0?Math.ceil(y.try1/$)-Math.floor(y.try0/$):0,Y=U*G;y.precinctParameters={precinctWidth:z,precinctHeight:$,numprecinctswide:U,numprecinctshigh:G,numprecincts:Y,precinctWidthInSubband:V,precinctHeightInSubband:ee}}function g(T,y,H){const z=H.xcb_,$=H.ycb_,j=1<<z,V=1<<$,ee=y.tbx0>>z,U=y.tby0>>$,G=y.tbx1+j-1>>z,Y=y.tby1+V-1>>$,oe=y.resolution.precinctParameters,se=[],Q=[];let E,M,_,J;for(M=U;M<Y;M++)for(E=ee;E<G;E++){_={cbx:E,cby:M,tbx0:j*E,tby0:V*M,tbx1:j*(E+1),tby1:V*(M+1)},_.tbx0_=Math.max(y.tbx0,_.tbx0),_.tby0_=Math.max(y.tby0,_.tby0),_.tbx1_=Math.min(y.tbx1,_.tbx1),_.tby1_=Math.min(y.tby1,_.tby1);const K=Math.floor((_.tbx0_-y.tbx0)/oe.precinctWidthInSubband),te=Math.floor((_.tby0_-y.tby0)/oe.precinctHeightInSubband);if(J=K+te*oe.numprecinctswide,_.precinctNumber=J,_.subbandType=y.type,_.Lblock=3,_.tbx1_<=_.tbx0_||_.tby1_<=_.tby0_)continue;se.push(_);let Z=Q[J];Z!==void 0?(E<Z.cbxMin?Z.cbxMin=E:E>Z.cbxMax&&(Z.cbxMax=E),M<Z.cbyMin?Z.cbxMin=M:M>Z.cbyMax&&(Z.cbyMax=M)):Q[J]=Z={cbxMin:E,cbyMin:M,cbxMax:E,cbyMax:M},_.precinct=Z}y.codeblockParameters={codeblockWidth:z,codeblockHeight:$,numcodeblockwide:G-ee+1,numcodeblockhigh:Y-U+1},y.codeblocks=se,y.precincts=Q}function n(T,y,H){const z=[],$=T.subbands;for(let j=0,V=$.length;j<V;j++){const U=$[j].codeblocks;for(let G=0,Y=U.length;G<Y;G++){const oe=U[G];oe.precinctNumber===y&&z.push(oe)}}return{layerNumber:H,codeblocks:z}}function I(T){const y=T.SIZ,H=T.currentTile.index,z=T.tiles[H],$=z.codingStyleDefaultParameters.layersCount,j=y.Csiz;let V=0;for(let oe=0;oe<j;oe++)V=Math.max(V,z.components[oe].codingStyleParameters.decompositionLevelsCount);let ee=0,U=0,G=0,Y=0;this.nextPacket=function(){for(;ee<$;ee++){for(;U<=V;U++){for(;G<j;G++){const se=z.components[G];if(U>se.codingStyleParameters.decompositionLevelsCount)continue;const Q=se.resolutions[U],E=Q.precinctParameters.numprecincts;for(;Y<E;){const M=n(Q,Y,ee);return Y++,M}Y=0}G=0}U=0}throw new P("Out of packets")}}function B(T){const y=T.SIZ,H=T.currentTile.index,z=T.tiles[H],$=z.codingStyleDefaultParameters.layersCount,j=y.Csiz;let V=0;for(let oe=0;oe<j;oe++)V=Math.max(V,z.components[oe].codingStyleParameters.decompositionLevelsCount);let ee=0,U=0,G=0,Y=0;this.nextPacket=function(){for(;ee<=V;ee++){for(;U<$;U++){for(;G<j;G++){const se=z.components[G];if(ee>se.codingStyleParameters.decompositionLevelsCount)continue;const Q=se.resolutions[ee],E=Q.precinctParameters.numprecincts;for(;Y<E;){const M=n(Q,Y,U);return Y++,M}Y=0}G=0}U=0}throw new P("Out of packets")}}function h(T){const y=T.SIZ,H=T.currentTile.index,z=T.tiles[H],$=z.codingStyleDefaultParameters.layersCount,j=y.Csiz;let V,ee,U,G,Y=0;for(U=0;U<j;U++){const se=z.components[U];Y=Math.max(Y,se.codingStyleParameters.decompositionLevelsCount)}const oe=new Int32Array(Y+1);for(ee=0;ee<=Y;++ee){let se=0;for(U=0;U<j;++U){const Q=z.components[U].resolutions;ee<Q.length&&(se=Math.max(se,Q[ee].precinctParameters.numprecincts))}oe[ee]=se}V=0,ee=0,U=0,G=0,this.nextPacket=function(){for(;ee<=Y;ee++){for(;G<oe[ee];G++){for(;U<j;U++){const Q=z.components[U];if(ee>Q.codingStyleParameters.decompositionLevelsCount)continue;const E=Q.resolutions[ee],M=E.precinctParameters.numprecincts;if(!(G>=M)){for(;V<$;){const _=n(E,G,V);return V++,_}V=0}}U=0}G=0}throw new P("Out of packets")}}function c(T){const y=T.SIZ,H=T.currentTile.index,z=T.tiles[H],$=z.codingStyleDefaultParameters.layersCount,j=y.Csiz,V=m(z),ee=V;let U=0,G=0,Y=0,oe=0,se=0;this.nextPacket=function(){for(;se<ee.maxNumHigh;se++){for(;oe<ee.maxNumWide;oe++){for(;Y<j;Y++){const E=z.components[Y],M=E.codingStyleParameters.decompositionLevelsCount;for(;G<=M;G++){const _=E.resolutions[G],J=V.components[Y].resolutions[G],K=u(oe,se,J,ee,_);if(K!==null){for(;U<$;){const te=n(_,K,U);return U++,te}U=0}}G=0}Y=0}oe=0}throw new P("Out of packets")}}function C(T){const y=T.SIZ,H=T.currentTile.index,z=T.tiles[H],$=z.codingStyleDefaultParameters.layersCount,j=y.Csiz,V=m(z);let ee=0,U=0,G=0,Y=0,oe=0;this.nextPacket=function(){for(;G<j;++G){const Q=z.components[G],E=V.components[G],M=Q.codingStyleParameters.decompositionLevelsCount;for(;oe<E.maxNumHigh;oe++){for(;Y<E.maxNumWide;Y++){for(;U<=M;U++){const _=Q.resolutions[U],J=E.resolutions[U],K=u(Y,oe,J,E,_);if(K!==null){for(;ee<$;){const te=n(_,K,ee);return ee++,te}ee=0}}U=0}Y=0}oe=0}throw new P("Out of packets")}}function u(T,y,H,z,$){const j=T*z.minWidth,V=y*z.minHeight;if(j%H.width!==0||V%H.height!==0)return null;const ee=V/H.width*$.precinctParameters.numprecinctswide;return j/H.height+ee}function m(T){const y=T.components.length;let H=Number.MAX_VALUE,z=Number.MAX_VALUE,$=0,j=0;const V=new Array(y);for(let ee=0;ee<y;ee++){const U=T.components[ee],G=U.codingStyleParameters.decompositionLevelsCount,Y=new Array(G+1);let oe=Number.MAX_VALUE,se=Number.MAX_VALUE,Q=0,E=0,M=1;for(let _=G;_>=0;--_){const J=U.resolutions[_],K=M*J.precinctParameters.precinctWidth,te=M*J.precinctParameters.precinctHeight;oe=Math.min(oe,K),se=Math.min(se,te),Q=Math.max(Q,J.precinctParameters.numprecinctswide),E=Math.max(E,J.precinctParameters.numprecinctshigh),Y[_]={width:K,height:te},M<<=1}H=Math.min(H,oe),z=Math.min(z,se),$=Math.max($,Q),j=Math.max(j,E),V[ee]={resolutions:Y,minWidth:oe,minHeight:se,maxNumWide:Q,maxNumHigh:E}}return{components:V,minWidth:H,minHeight:z,maxNumWide:$,maxNumHigh:j}}function X(T){const y=T.SIZ,H=T.currentTile.index,z=T.tiles[H],$=y.Csiz;for(let V=0;V<$;V++){const ee=z.components[V],U=ee.codingStyleParameters.decompositionLevelsCount,G=[],Y=[];for(let oe=0;oe<=U;oe++){const se=k(T,ee,oe),Q={},E=1<<U-oe;Q.trx0=Math.ceil(ee.tcx0/E),Q.try0=Math.ceil(ee.tcy0/E),Q.trx1=Math.ceil(ee.tcx1/E),Q.try1=Math.ceil(ee.tcy1/E),Q.resLevel=oe,x(T,Q,se),G.push(Q);let M;if(oe===0)M={},M.type="LL",M.tbx0=Math.ceil(ee.tcx0/E),M.tby0=Math.ceil(ee.tcy0/E),M.tbx1=Math.ceil(ee.tcx1/E),M.tby1=Math.ceil(ee.tcy1/E),M.resolution=Q,g(T,M,se),Y.push(M),Q.subbands=[M];else{const _=1<<U-oe+1,J=[];M={},M.type="HL",M.tbx0=Math.ceil(ee.tcx0/_-.5),M.tby0=Math.ceil(ee.tcy0/_),M.tbx1=Math.ceil(ee.tcx1/_-.5),M.tby1=Math.ceil(ee.tcy1/_),M.resolution=Q,g(T,M,se),Y.push(M),J.push(M),M={},M.type="LH",M.tbx0=Math.ceil(ee.tcx0/_),M.tby0=Math.ceil(ee.tcy0/_-.5),M.tbx1=Math.ceil(ee.tcx1/_),M.tby1=Math.ceil(ee.tcy1/_-.5),M.resolution=Q,g(T,M,se),Y.push(M),J.push(M),M={},M.type="HH",M.tbx0=Math.ceil(ee.tcx0/_-.5),M.tby0=Math.ceil(ee.tcy0/_-.5),M.tbx1=Math.ceil(ee.tcx1/_-.5),M.tby1=Math.ceil(ee.tcy1/_-.5),M.resolution=Q,g(T,M,se),Y.push(M),J.push(M),Q.subbands=J}}ee.resolutions=G,ee.subbands=Y}const j=z.codingStyleDefaultParameters.progressionOrder;switch(j){case 0:z.packetsIterator=new I(T);break;case 1:z.packetsIterator=new B(T);break;case 2:z.packetsIterator=new h(T);break;case 3:z.packetsIterator=new c(T);break;case 4:z.packetsIterator=new C(T);break;default:throw new P(`Unsupported progression order ${j}`)}}function f(T,y,H,z){let $=0,j,V=0,ee=!1;function U(K){for(;V<K;){const te=y[H+$];$++,ee?(j=j<<7|te,V+=7,ee=!1):(j=j<<8|te,V+=8),te===255&&(ee=!0)}return V-=K,j>>>V&(1<<K)-1}function G(K){return y[H+$-1]===255&&y[H+$]===K?(Y(1),!0):y[H+$]===255&&y[H+$+1]===K?(Y(2),!0):!1}function Y(K){$+=K}function oe(){V=0,ee&&($++,ee=!1)}function se(){if(U(1)===0)return 1;if(U(1)===0)return 2;let K=U(2);return K<3?K+3:(K=U(5),K<31?K+6:(K=U(7),K+37))}const Q=T.currentTile.index,E=T.tiles[Q],M=T.COD.sopMarkerUsed,_=T.COD.ephMarkerUsed,J=E.packetsIterator;for(;$<z;){oe(),M&&G(145)&&Y(4);const K=J.nextPacket();if(!U(1))continue;const te=K.layerNumber,Z=[];let ce;for(let ne=0,re=K.codeblocks.length;ne<re;ne++){ce=K.codeblocks[ne];let ie=ce.precinct;const ae=ce.cbx-ie.cbxMin,ue=ce.cby-ie.cbyMin;let fe=!1,me=!1,Fe,pe;if(ce.included!==void 0)fe=!!U(1);else{ie=ce.precinct;let de;if(ie.inclusionTree!==void 0)de=ie.inclusionTree;else{const ge=ie.cbxMax-ie.cbxMin+1,xe=ie.cbyMax-ie.cbyMin+1;de=new o(ge,xe,te),pe=new r(ge,xe),ie.inclusionTree=de,ie.zeroBitPlanesTree=pe;for(let Oe=0;Oe<te;Oe++)if(U(1)!==0)throw new P("Invalid tag tree")}if(de.reset(ae,ue,te))for(;;)if(U(1)){if(Fe=!de.nextLevel(),Fe){ce.included=!0,fe=me=!0;break}}else{de.incrementValue(te);break}}if(!fe)continue;if(me){for(pe=ie.zeroBitPlanesTree,pe.reset(ae,ue);;)if(U(1)){if(Fe=!pe.nextLevel(),Fe)break}else pe.incrementValue();ce.zeroBitPlanes=pe.value}const Ce=se();for(;U(1);)ce.Lblock++;const be=(0,i.log2)(Ce),Ie=(Ce<1<<be?be-1:be)+ce.Lblock,ye=U(Ie);Z.push({codeblock:ce,codingpasses:Ce,dataLength:ye})}for(oe(),_&&G(146);Z.length>0;){const ne=Z.shift();ce=ne.codeblock,ce.data===void 0&&(ce.data=[]),ce.data.push({data:y,start:H+$,end:H+$+ne.dataLength,codingpasses:ne.codingpasses}),$+=ne.dataLength}}return $}function F(T,y,H,z,$,j,V,ee,U){const G=z.tbx0,Y=z.tby0,oe=z.tbx1-z.tbx0,se=z.codeblocks,Q=z.type.charAt(0)==="H"?1:0,E=z.type.charAt(1)==="H"?y:0;for(let M=0,_=se.length;M<_;++M){const J=se[M],K=J.tbx1_-J.tbx0_,te=J.tby1_-J.tby0_;if(K===0||te===0||J.data===void 0)continue;const Z=new A(K,te,J.subbandType,J.zeroBitPlanes,j);let ce=2;const ne=J.data;let re=0,ie=0,ae,ue,fe;for(ae=0,ue=ne.length;ae<ue;ae++)fe=ne[ae],re+=fe.end-fe.start,ie+=fe.codingpasses;const me=new Uint8Array(re);let Fe=0;for(ae=0,ue=ne.length;ae<ue;ae++){fe=ne[ae];const it=fe.data.subarray(fe.start,fe.end);me.set(it,Fe),Fe+=it.length}const pe=new O.ArithmeticDecoder(me,0,re);for(Z.setDecoder(pe),ae=0;ae<ie;ae++){switch(ce){case 0:Z.runSignificancePropagationPass();break;case 1:Z.runMagnitudeRefinementPass();break;case 2:Z.runCleanupPass(),ee&&Z.checkSegmentationSymbol();break}U&&Z.reset(),ce=(ce+1)%3}let Ce=J.tbx0_-G+(J.tby0_-Y)*oe;const be=Z.coefficentsSign,Ie=Z.coefficentsMagnitude,ye=Z.bitsDecoded,de=V?0:.5;let ge,xe,Oe;Fe=0;const je=z.type!=="LL";for(ae=0;ae<te;ae++){const ke=2*(Ce/oe|0)*(y-oe)+Q+E;for(ge=0;ge<K;ge++){if(xe=Ie[Fe],xe!==0){xe=(xe+de)*$,be[Fe]!==0&&(xe=-xe),Oe=ye[Fe];const $e=je?ke+(Ce<<1):Ce;V&&Oe>=j?T[$e]=xe:T[$e]=xe*(1<<j-Oe)}Ce++,Fe++}Ce+=oe-K}}}function s(T,y,H){const z=y.components[H],$=z.codingStyleParameters,j=z.quantizationParameters,V=$.decompositionLevelsCount,ee=j.SPqcds,U=j.scalarExpounded,G=j.guardBits,Y=$.segmentationSymbolUsed,oe=$.resetContextProbabilities,se=T.components[H].precision,Q=$.reversibleTransformation,E=Q?new R:new v,M=[];let _=0;for(let K=0;K<=V;K++){const te=z.resolutions[K],Z=te.trx1-te.trx0,ce=te.try1-te.try0,ne=new Float32Array(Z*ce);for(let re=0,ie=te.subbands.length;re<ie;re++){let ae,ue;U?(ae=ee[_].mu,ue=ee[_].epsilon,_++):(ae=ee[0].mu,ue=ee[0].epsilon+(K>0?1-K:0));const fe=te.subbands[re],me=e[fe.type],Fe=Q?1:2**(se+me-ue)*(1+ae/2048),pe=G+ue-1;F(ne,Z,ce,fe,Fe,pe,Q,Y,oe)}M.push({width:Z,height:ce,items:ne})}const J=E.calculate(M,z.tcx0,z.tcy0);return{left:z.tcx0,top:z.tcy0,width:J.width,height:J.height,items:J.items}}function d(T){const y=T.SIZ,H=T.components,z=y.Csiz,$=[];for(let j=0,V=T.tiles.length;j<V;j++){const ee=T.tiles[j],U=[];for(let Z=0;Z<z;Z++)U[Z]=s(T,ee,Z);const G=U[0],Y=new Uint8ClampedArray(G.items.length*z),oe={left:G.left,top:G.top,width:G.width,height:G.height,items:Y};let se,Q,E=0,M,_,J,K,te;if(ee.codingStyleDefaultParameters.multipleComponentTransform){const Z=z===4,ce=U[0].items,ne=U[1].items,re=U[2].items,ie=Z?U[3].items:null;se=H[0].precision-8,Q=(128<<se)+.5;const ae=ee.components[0],ue=z-3;if(_=ce.length,ae.codingStyleParameters.reversibleTransformation)for(M=0;M<_;M++,E+=ue){J=ce[M]+Q,K=ne[M],te=re[M];const fe=J-(te+K>>2);Y[E++]=fe+te>>se,Y[E++]=fe>>se,Y[E++]=fe+K>>se}else for(M=0;M<_;M++,E+=ue)J=ce[M]+Q,K=ne[M],te=re[M],Y[E++]=J+1.402*te>>se,Y[E++]=J-.34413*K-.71414*te>>se,Y[E++]=J+1.772*K>>se;if(Z)for(M=0,E=3;M<_;M++,E+=4)Y[E]=ie[M]+Q>>se}else for(let Z=0;Z<z;Z++){const ce=U[Z].items;for(se=H[Z].precision-8,Q=(128<<se)+.5,E=Z,M=0,_=ce.length;M<_;M++)Y[E]=ce[M]+Q>>se,E+=z}$.push(oe)}return $}function S(T,y){const z=T.SIZ.Csiz,$=T.tiles[y];for(let j=0;j<z;j++){const V=$.components[j],ee=T.currentTile.QCC[j]!==void 0?T.currentTile.QCC[j]:T.currentTile.QCD;V.quantizationParameters=ee;const U=T.currentTile.COC[j]!==void 0?T.currentTile.COC[j]:T.currentTile.COD;V.codingStyleParameters=U}$.codingStyleDefaultParameters=T.currentTile.COD}class r{constructor(y,H){const z=(0,i.log2)(Math.max(y,H))+1;this.levels=[];for(let $=0;$<z;$++){const j={width:y,height:H,items:[]};this.levels.push(j),y=Math.ceil(y/2),H=Math.ceil(H/2)}}reset(y,H){let z=0,$=0,j;for(;z<this.levels.length;){j=this.levels[z];const V=y+H*j.width;if(j.items[V]!==void 0){$=j.items[V];break}j.index=V,y>>=1,H>>=1,z++}z--,j=this.levels[z],j.items[j.index]=$,this.currentLevel=z,delete this.value}incrementValue(){const y=this.levels[this.currentLevel];y.items[y.index]++}nextLevel(){let y=this.currentLevel,H=this.levels[y];const z=H.items[H.index];return y--,y<0?(this.value=z,!1):(this.currentLevel=y,H=this.levels[y],H.items[H.index]=z,!0)}}class o{constructor(y,H,z){const $=(0,i.log2)(Math.max(y,H))+1;this.levels=[];for(let j=0;j<$;j++){const V=new Uint8Array(y*H);for(let U=0,G=V.length;U<G;U++)V[U]=z;const ee={width:y,height:H,items:V};this.levels.push(ee),y=Math.ceil(y/2),H=Math.ceil(H/2)}}reset(y,H,z){let $=0;for(;$<this.levels.length;){const j=this.levels[$],V=y+H*j.width;j.index=V;const ee=j.items[V];if(ee===255)break;if(ee>z)return this.currentLevel=$,this.propagateValues(),!1;y>>=1,H>>=1,$++}return this.currentLevel=$-1,!0}incrementValue(y){const H=this.levels[this.currentLevel];H.items[H.index]=y+1,this.propagateValues()}propagateValues(){let y=this.currentLevel,H=this.levels[y];const z=H.items[H.index];for(;--y>=0;)H=this.levels[y],H.items[H.index]=z}nextLevel(){let y=this.currentLevel,H=this.levels[y];const z=H.items[H.index];return H.items[H.index]=255,y--,y<0?!1:(this.currentLevel=y,H=this.levels[y],H.items[H.index]=z,!0)}}const A=function(){const z=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]),$=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]),j=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]);class V{constructor(U,G,Y,oe,se){this.width=U,this.height=G;let Q;Y==="HH"?Q=j:Y==="HL"?Q=$:Q=z,this.contextLabelTable=Q;const E=U*G;this.neighborsSignificance=new Uint8Array(E),this.coefficentsSign=new Uint8Array(E);let M;se>14?M=new Uint32Array(E):se>6?M=new Uint16Array(E):M=new Uint8Array(E),this.coefficentsMagnitude=M,this.processingFlags=new Uint8Array(E);const _=new Uint8Array(E);if(oe!==0)for(let J=0;J<E;J++)_[J]=oe;this.bitsDecoded=_,this.reset()}setDecoder(U){this.decoder=U}reset(){this.contexts=new Int8Array(19),this.contexts[0]=4<<1|0,this.contexts[17]=46<<1|0,this.contexts[18]=3<<1|0}setNeighborsSignificance(U,G,Y){const oe=this.neighborsSignificance,se=this.width,Q=this.height,E=G>0,M=G+1<se;let _;U>0&&(_=Y-se,E&&(oe[_-1]+=16),M&&(oe[_+1]+=16),oe[_]+=4),U+1<Q&&(_=Y+se,E&&(oe[_-1]+=16),M&&(oe[_+1]+=16),oe[_]+=4),E&&(oe[Y-1]+=1),M&&(oe[Y+1]+=1),oe[Y]|=128}runSignificancePropagationPass(){const U=this.decoder,G=this.width,Y=this.height,oe=this.coefficentsMagnitude,se=this.coefficentsSign,Q=this.neighborsSignificance,E=this.processingFlags,M=this.contexts,_=this.contextLabelTable,J=this.bitsDecoded,K=-2,te=1,Z=2;for(let ce=0;ce<Y;ce+=4)for(let ne=0;ne<G;ne++){let re=ce*G+ne;for(let ie=0;ie<4;ie++,re+=G){const ae=ce+ie;if(ae>=Y)break;if(E[re]&=K,oe[re]||!Q[re])continue;const ue=_[Q[re]];if(U.readBit(M,ue)){const me=this.decodeSignBit(ae,ne,re);se[re]=me,oe[re]=1,this.setNeighborsSignificance(ae,ne,re),E[re]|=Z}J[re]++,E[re]|=te}}}decodeSignBit(U,G,Y){const oe=this.width,se=this.height,Q=this.coefficentsMagnitude,E=this.coefficentsSign;let M,_,J,K,te,Z;K=G>0&&Q[Y-1]!==0,G+1<oe&&Q[Y+1]!==0?(J=E[Y+1],K?(_=E[Y-1],M=1-J-_):M=1-J-J):K?(_=E[Y-1],M=1-_-_):M=0;const ce=3*M;return K=U>0&&Q[Y-oe]!==0,U+1<se&&Q[Y+oe]!==0?(J=E[Y+oe],K?(_=E[Y-oe],M=1-J-_+ce):M=1-J-J+ce):K?(_=E[Y-oe],M=1-_-_+ce):M=ce,M>=0?(te=9+M,Z=this.decoder.readBit(this.contexts,te)):(te=9-M,Z=this.decoder.readBit(this.contexts,te)^1),Z}runMagnitudeRefinementPass(){const U=this.decoder,G=this.width,Y=this.height,oe=this.coefficentsMagnitude,se=this.neighborsSignificance,Q=this.contexts,E=this.bitsDecoded,M=this.processingFlags,_=1,J=2,K=G*Y,te=G*4;for(let Z=0,ce;Z<K;Z=ce){ce=Math.min(K,Z+te);for(let ne=0;ne<G;ne++)for(let re=Z+ne;re<ce;re+=G){if(!oe[re]||M[re]&_)continue;let ie=16;M[re]&J&&(M[re]^=J,ie=(se[re]&127)===0?15:14);const ae=U.readBit(Q,ie);oe[re]=oe[re]<<1|ae,E[re]++,M[re]|=_}}}runCleanupPass(){const U=this.decoder,G=this.width,Y=this.height,oe=this.neighborsSignificance,se=this.coefficentsMagnitude,Q=this.coefficentsSign,E=this.contexts,M=this.contextLabelTable,_=this.bitsDecoded,J=this.processingFlags,K=1,te=2,Z=G,ce=G*2,ne=G*3;let re;for(let ie=0;ie<Y;ie=re){re=Math.min(ie+4,Y);const ae=ie*G,ue=ie+3<Y;for(let fe=0;fe<G;fe++){const me=ae+fe,Fe=ue&&J[me]===0&&J[me+Z]===0&&J[me+ce]===0&&J[me+ne]===0&&oe[me]===0&&oe[me+Z]===0&&oe[me+ce]===0&&oe[me+ne]===0;let pe=0,Ce=me,be=ie,Ie;if(Fe){if(!U.readBit(E,18)){_[me]++,_[me+Z]++,_[me+ce]++,_[me+ne]++;continue}pe=U.readBit(E,17)<<1|U.readBit(E,17),pe!==0&&(be=ie+pe,Ce+=pe*G),Ie=this.decodeSignBit(be,fe,Ce),Q[Ce]=Ie,se[Ce]=1,this.setNeighborsSignificance(be,fe,Ce),J[Ce]|=te,Ce=me;for(let de=ie;de<=be;de++,Ce+=G)_[Ce]++;pe++}for(be=ie+pe;be<re;be++,Ce+=G){if(se[Ce]||J[Ce]&K)continue;const ye=M[oe[Ce]];U.readBit(E,ye)===1&&(Ie=this.decodeSignBit(be,fe,Ce),Q[Ce]=Ie,se[Ce]=1,this.setNeighborsSignificance(be,fe,Ce),J[Ce]|=te),_[Ce]++}}}}checkSegmentationSymbol(){const U=this.decoder,G=this.contexts;if((U.readBit(G,17)<<3|U.readBit(G,17)<<2|U.readBit(G,17)<<1|U.readBit(G,17))!==10)throw new P("Invalid segmentation symbol")}}return V}();class p{constructor(){this.constructor===p&&(0,t.unreachable)("Cannot initialize Transform.")}calculate(y,H,z){let $=y[0];for(let j=1,V=y.length;j<V;j++)$=this.iterate($,y[j],H,z);return $}extend(y,H,z){let $=H-1,j=H+1,V=H+z-2,ee=H+z;y[$--]=y[j++],y[ee++]=y[V--],y[$--]=y[j++],y[ee++]=y[V--],y[$--]=y[j++],y[ee++]=y[V--],y[$]=y[j],y[ee]=y[V]}filter(y,H,z){(0,t.unreachable)("Abstract method `filter` called")}iterate(y,H,z,$){const j=y.width,V=y.height;let ee=y.items;const U=H.width,G=H.height,Y=H.items;let oe,se,Q,E,M,_;for(Q=0,oe=0;oe<V;oe++)for(E=oe*2*U,se=0;se<j;se++,Q++,E+=2)Y[E]=ee[Q];ee=y.items=null;const J=4,K=new Float32Array(U+2*J);if(U===1){if(z&1)for(_=0,Q=0;_<G;_++,Q+=U)Y[Q]*=.5}else for(_=0,Q=0;_<G;_++,Q+=U)K.set(Y.subarray(Q,Q+U),J),this.extend(K,J,U),this.filter(K,J,U),Y.set(K.subarray(J,J+U),Q);let te=16;const Z=[];for(oe=0;oe<te;oe++)Z.push(new Float32Array(G+2*J));let ce,ne=0;if(y=J+G,G===1){if($&1)for(M=0;M<U;M++)Y[M]*=.5}else for(M=0;M<U;M++){if(ne===0){for(te=Math.min(U-M,te),Q=M,E=J;E<y;Q+=U,E++)for(ce=0;ce<te;ce++)Z[ce][E]=Y[Q+ce];ne=te}ne--;const re=Z[ne];if(this.extend(re,J,G),this.filter(re,J,G),ne===0)for(Q=M-te+1,E=J;E<y;Q+=U,E++)for(ce=0;ce<te;ce++)Y[Q+ce]=Z[ce][E]}return{width:U,height:G,items:Y}}}class v extends p{filter(y,H,z){const $=z>>1;H|=0;let j,V,ee,U;const G=-1.586134342059924,Y=-.052980118572961,oe=.882911075530934,se=.443506852043971,Q=1.230174104914001,E=1/Q;for(j=H-3,V=$+4;V--;j+=2)y[j]*=E;for(j=H-2,ee=se*y[j-1],V=$+3;V--&&(U=se*y[j+1],y[j]=Q*y[j]-ee-U,V--);j+=2)j+=2,ee=se*y[j+1],y[j]=Q*y[j]-ee-U;for(j=H-1,ee=oe*y[j-1],V=$+2;V--&&(U=oe*y[j+1],y[j]-=ee+U,V--);j+=2)j+=2,ee=oe*y[j+1],y[j]-=ee+U;for(j=H,ee=Y*y[j-1],V=$+1;V--&&(U=Y*y[j+1],y[j]-=ee+U,V--);j+=2)j+=2,ee=Y*y[j+1],y[j]-=ee+U;if($!==0)for(j=H+1,ee=G*y[j-1],V=$;V--&&(U=G*y[j+1],y[j]-=ee+U,V--);j+=2)j+=2,ee=G*y[j+1],y[j]-=ee+U}}class R extends p{filter(y,H,z){const $=z>>1;H|=0;let j,V;for(j=H,V=$+1;V--;j+=2)y[j]-=y[j-1]+y[j+1]+2>>2;for(j=H+1,V=$;V--;j+=2)y[j]+=y[j-1]+y[j+1]>>1}}},(he,l,w)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.LZWStream=void 0;var t=w(150);class i extends t.DecodeStream{constructor(P,e,N){super(e),this.str=P,this.dict=P.dict,this.cachedData=0,this.bitsCached=0;const D=4096,L={earlyChange:N,codeLength:9,nextCode:258,dictionaryValues:new Uint8Array(D),dictionaryLengths:new Uint16Array(D),dictionaryPrevCodes:new Uint16Array(D),currentSequence:new Uint8Array(D),currentSequenceLength:0};for(let k=0;k<256;++k)L.dictionaryValues[k]=k,L.dictionaryLengths[k]=1;this.lzwState=L}readBits(P){let e=this.bitsCached,N=this.cachedData;for(;e<P;){const D=this.str.getByte();if(D===-1)return this.eof=!0,null;N=N<<8|D,e+=8}return this.bitsCached=e-=P,this.cachedData=N,this.lastCode=null,N>>>e&(1<<P)-1}readBlock(){let N=1024,D,L,k;const x=this.lzwState;if(!x)return;const g=x.earlyChange;let n=x.nextCode;const I=x.dictionaryValues,B=x.dictionaryLengths,h=x.dictionaryPrevCodes;let c=x.codeLength,C=x.prevCode;const u=x.currentSequence;let m=x.currentSequenceLength,X=0,f=this.bufferLength,F=this.ensureBuffer(this.bufferLength+N);for(D=0;D<512;D++){const s=this.readBits(c),d=m>0;if(s<256)u[0]=s,m=1;else if(s>=258)if(s<n)for(m=B[s],L=m-1,k=s;L>=0;L--)u[L]=I[k],k=h[k];else u[m++]=u[0];else if(s===256){c=9,n=258,m=0;continue}else{this.eof=!0,delete this.lzwState;break}if(d&&(h[n]=C,B[n]=B[C]+1,I[n]=u[0],n++,c=n+g&n+g-1?c:Math.min(Math.log(n+g)/.6931471805599453+1,12)|0),C=s,X+=m,N<X){do N+=512;while(N<X);F=this.ensureBuffer(this.bufferLength+N)}for(L=0;L<m;L++)F[f++]=u[L]}x.nextCode=n,x.codeLength=c,x.prevCode=C,x.currentSequenceLength=m,this.bufferLength=f}}l.LZWStream=i},(he,l,w)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.PredictorStream=void 0;var t=w(150),i=w(137),O=w(2);class P extends t.DecodeStream{constructor(N,D,L){if(super(D),!(L instanceof i.Dict))return N;const k=this.predictor=L.get("Predictor")||1;if(k<=1)return N;if(k!==2&&(k<10||k>15))throw new O.FormatError(`Unsupported predictor: ${k}`);k===2?this.readBlock=this.readBlockTiff:this.readBlock=this.readBlockPng,this.str=N,this.dict=N.dict;const x=this.colors=L.get("Colors")||1,g=this.bits=L.get("BPC","BitsPerComponent")||8,n=this.columns=L.get("Columns")||1;return this.pixBytes=x*g+7>>3,this.rowBytes=n*x*g+7>>3,this}readBlockTiff(){const N=this.rowBytes,D=this.bufferLength,L=this.ensureBuffer(D+N),k=this.bits,x=this.colors,g=this.str.getBytes(N);if(this.eof=!g.length,this.eof)return;let n=0,I=0,B=0,h=0,c=D,C;if(k===1&&x===1)for(C=0;C<N;++C){let u=g[C]^n;u^=u>>1,u^=u>>2,u^=u>>4,n=(u&1)<<7,L[c++]=u}else if(k===8){for(C=0;C<x;++C)L[c++]=g[C];for(;C<N;++C)L[c]=L[c-x]+g[C],c++}else if(k===16){const u=x*2;for(C=0;C<u;++C)L[c++]=g[C];for(;C<N;C+=2){const m=((g[C]&255)<<8)+(g[C+1]&255)+((L[c-u]&255)<<8)+(L[c-u+1]&255);L[c++]=m>>8&255,L[c++]=m&255}}else{const u=new Uint8Array(x+1),m=(1<<k)-1;let X=0,f=D;const F=this.columns;for(C=0;C<F;++C)for(let s=0;s<x;++s)B<k&&(n=n<<8|g[X++]&255,B+=8),u[s]=u[s]+(n>>B-k)&m,B-=k,I=I<<k|u[s],h+=k,h>=8&&(L[f++]=I>>h-8&255,h-=8);h>0&&(L[f++]=(I<<8-h)+(n&(1<<8-h)-1))}this.bufferLength+=N}readBlockPng(){const N=this.rowBytes,D=this.pixBytes,L=this.str.getByte(),k=this.str.getBytes(N);if(this.eof=!k.length,this.eof)return;const x=this.bufferLength,g=this.ensureBuffer(x+N);let n=g.subarray(x-N,x);n.length===0&&(n=new Uint8Array(N));let I,B=x,h,c;switch(L){case 0:for(I=0;I<N;++I)g[B++]=k[I];break;case 1:for(I=0;I<D;++I)g[B++]=k[I];for(;I<N;++I)g[B]=g[B-D]+k[I]&255,B++;break;case 2:for(I=0;I<N;++I)g[B++]=n[I]+k[I]&255;break;case 3:for(I=0;I<D;++I)g[B++]=(n[I]>>1)+k[I];for(;I<N;++I)g[B]=(n[I]+g[B-D]>>1)+k[I]&255,B++;break;case 4:for(I=0;I<D;++I)h=n[I],c=k[I],g[B++]=h+c;for(;I<N;++I){h=n[I];const C=n[I-D],u=g[B-D],m=u+h-C;let X=m-u;X<0&&(X=-X);let f=m-h;f<0&&(f=-f);let F=m-C;F<0&&(F=-F),c=k[I],X<=f&&X<=F?g[B++]=u+c:f<=F?g[B++]=h+c:g[B++]=C+c}break;default:throw new O.FormatError(`Unsupported predictor: ${L}`)}this.bufferLength+=N}}l.PredictorStream=P},(he,l,w)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.RunLengthStream=void 0;var t=w(150);class i extends t.DecodeStream{constructor(P,e){super(e),this.str=P,this.dict=P.dict}readBlock(){const P=this.str.getBytes(2);if(!P||P.length<2||P[0]===128){this.eof=!0;return}let e,N=this.bufferLength,D=P[0];if(D<128){if(e=this.ensureBuffer(N+D+1),e[N++]=P[1],D>0){const L=this.str.getBytes(D);e.set(L,N),N+=D}}else{D=257-D;const L=P[1];e=this.ensureBuffer(N+D+1);for(let k=0;k<D;k++)e[N++]=L}this.bufferLength=N}}l.RunLengthStream=i},(he,l,w)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.Font=l.ErrorFont=void 0;var t=w(2),i=w(166),O=w(169),P=w(171),e=w(170),N=w(168),D=w(172),L=w(173),k=w(174),x=w(175),g=w(176),n=w(177),I=w(147),B=w(178),h=w(136),c=w(141),C=w(179);const u=[[57344,63743],[1048576,1114109]],m=1e3,X=["ascent","bbox","black","bold","charProcOperatorList","composite","cssFontInfo","data","defaultVMetrics","defaultWidth","descent","fallbackName","fontMatrix","isInvalidPDFjsFont","isType3Font","italic","loadedName","mimetype","missingFile","name","remeasure","subtype","type","vertical"],f=["cMap","defaultEncoding","differences","isMonospace","isSerifFont","isSymbolicFont","seacMap","toFontChar","toUnicode","vmetrics","widths"];function F(ne){if(!ne.fontMatrix||ne.fontMatrix[0]===t.FONT_IDENTITY_MATRIX[0])return;const re=.001/ne.fontMatrix[0],ie=ne.widths;for(const ae in ie)ie[ae]*=re;ne.defaultWidth*=re}function s(ne,re,ie){if(ne.isInternalFont||ne.hasIncludedToUnicodeMap||ne.hasEncoding||ne.toUnicode instanceof L.IdentityToUnicodeMap||!re||ie.length===0||ne.defaultEncoding===N.WinAnsiEncoding)return;for(const me of ie)if(!Y(me))return;const ae=N.WinAnsiEncoding,ue=[],fe=(0,e.getGlyphsUnicode)();for(const me in ae){const Fe=ae[me];if(Fe==="")continue;const pe=fe[Fe];pe!==void 0&&(ue[me]=String.fromCharCode(pe))}ue.length>0&&ne.toUnicode.amend(ue)}function d(ne,re){if(ne.isInternalFont||ne.hasIncludedToUnicodeMap||re===ne.defaultEncoding||ne.toUnicode instanceof L.IdentityToUnicodeMap)return;const ie=[],ae=(0,e.getGlyphsUnicode)();for(const ue in re){if(ne.hasEncoding&&(ne.baseEncodingName||ne.differences[ue]!==void 0))continue;const fe=re[ue],me=(0,P.getUnicodeForGlyph)(fe,ae);me!==-1&&(ie[ue]=String.fromCharCode(me))}ie.length>0&&ne.toUnicode.amend(ie)}function S(ne){if(!ne.fallbackToUnicode||ne.toUnicode instanceof L.IdentityToUnicodeMap)return;const re=[];for(const ie in ne.fallbackToUnicode)ne.toUnicode.has(ie)||(re[ie]=ne.fallbackToUnicode[ie]);re.length>0&&ne.toUnicode.amend(re)}class r{constructor(re,ie,ae,ue,fe,me,Fe,pe,Ce){this.originalCharCode=re,this.fontChar=ie,this.unicode=ae,this.accent=ue,this.width=fe,this.vmetric=me,this.operatorListId=Fe,this.isSpace=pe,this.isInFont=Ce}get category(){return(0,t.shadow)(this,"category",(0,P.getCharUnicodeCategory)(this.unicode),!0)}get normalizedUnicode(){return(0,t.shadow)(this,"normalizedUnicode",(0,P.reverseIfRtl)(r._NormalizedUnicodes[this.unicode]||this.unicode),!0)}static get _NormalizedUnicodes(){return(0,t.shadow)(this,"_NormalizedUnicodes",(0,P.getNormalizedUnicodes)())}}function o(ne,re){return(ne<<8)+re}function A(ne,re,ie){ne[re+1]=ie,ne[re]=ie>>>8}function p(ne,re){const ie=(ne<<8)+re;return ie&32768?ie-65536:ie}function v(ne,re,ie,ae){return(ne<<24)+(re<<16)+(ie<<8)+ae}function R(ne){return String.fromCharCode(ne>>8&255,ne&255)}function T(ne){return ne>32767?ne=32767:ne<-32768&&(ne=-32768),String.fromCharCode(ne>>8&255,ne&255)}function y(ne){const re=ne.peekBytes(4);return(0,h.readUint32)(re,0)===65536||(0,t.bytesToString)(re)==="true"}function H(ne){const re=ne.peekBytes(4);return(0,t.bytesToString)(re)==="ttcf"}function z(ne){const re=ne.peekBytes(4);return(0,t.bytesToString)(re)==="OTTO"}function $(ne){const re=ne.peekBytes(2);return re[0]===37&&re[1]===33||re[0]===128&&re[1]===1}function j(ne){const re=ne.peekBytes(4);return re[0]>=1&&re[3]>=1&&re[3]<=4}function V(ne,re){let{type:ie,subtype:ae,composite:ue}=re,fe,me;return y(ne)||H(ne)?ue?fe="CIDFontType2":fe="TrueType":z(ne)?ue?fe="CIDFontType2":fe="OpenType":$(ne)?ue?fe="CIDFontType0":fe=ie==="MMType1"?"MMType1":"Type1":j(ne)?ue?(fe="CIDFontType0",me="CIDFontType0C"):(fe=ie==="MMType1"?"MMType1":"Type1",me="Type1C"):((0,t.warn)("getFontFileType: Unable to detect correct font file Type/Subtype."),fe=ie,me=ae),[fe,me]}function ee(ne,re){for(const ie in re)ne[+ie]=re[ie]}function U(ne,re,ie){const ae=[];let ue;for(let fe=0,me=ne.length;fe<me;fe++)ue=(0,P.getUnicodeForGlyph)(ne[fe],re),ue!==-1&&(ae[fe]=ue);for(const fe in ie)ue=(0,P.getUnicodeForGlyph)(ie[fe],re),ue!==-1&&(ae[+fe]=ue);return ae}function G(ne){return ne.platform===1&&ne.encoding===0&&ne.language===0}function Y(ne){return ne.platform===3&&ne.encoding===1&&ne.language===1033}function oe(ne,re){let ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;switch(re.length){case 1:return re.charCodeAt(0);case 2:return re.charCodeAt(0)<<8|re.charCodeAt(1)}const ae=`Unsupported CID string (charCode ${ne}): "${re}".`;if(ie)throw new t.FormatError(ae);return(0,t.warn)(ae),re}function se(ne,re,ie,ae){const ue=Object.create(null),fe=new Map,me=[],Fe=new Set;let pe=0;const Ce=u[pe][0];let be=Ce,Ie=u[pe][1];for(let ye in ne){ye|=0;let de=ne[ye];if(!re(de))continue;if(be>Ie){if(pe++,pe>=u.length){(0,t.warn)("Ran out of space in font private use area.");break}be=u[pe][0],Ie=u[pe][1]}const ge=be++;de===0&&(de=ie);let xe=ae.get(ye);typeof xe=="string"&&(xe=xe.codePointAt(0)),xe&&xe<Ce&&!Fe.has(de)&&(fe.set(xe,de),Fe.add(de)),ue[ge]=de,me[ye]=ge}return{toFontChar:me,charCodeToGlyphId:ue,toUnicodeExtraMap:fe,nextAvailableFontCharCode:be}}function Q(ne,re,ie){const ae=[];for(const me in ne)ne[me]>=ie||ae.push({fontCharCode:me|0,glyphId:ne[me]});if(re)for(const[me,Fe]of re)Fe>=ie||ae.push({fontCharCode:me,glyphId:Fe});ae.length===0&&ae.push({fontCharCode:0,glyphId:0}),ae.sort(function(Fe,pe){return Fe.fontCharCode-pe.fontCharCode});const ue=[],fe=ae.length;for(let me=0;me<fe;){const Fe=ae[me].fontCharCode,pe=[ae[me].glyphId];++me;let Ce=Fe;for(;me<fe&&Ce+1===ae[me].fontCharCode&&(pe.push(ae[me].glyphId),++Ce,++me,Ce!==65535););ue.push([Fe,Ce,pe])}return ue}function E(ne,re,ie){const ae=Q(ne,re,ie),ue=ae.at(-1)[1]>65535?2:1;let fe="\0\0"+R(ue)+"\0\0"+(0,t.string32)(4+ue*8),me,Fe,pe,Ce;for(me=ae.length-1;me>=0&&!(ae[me][0]<=65535);--me);const be=me+1;ae[me][0]<65535&&ae[me][1]===65535&&(ae[me][1]=65534);const Ie=ae[me][1]<65535?1:0,ye=be+Ie,de=B.OpenTypeFileBuilder.getSearchParams(ye,2);let ge="",xe="",Oe="",je="",it="",ke=0,$e,Ge,Qe,ve;for(me=0,Fe=be;me<Fe;me++){$e=ae[me],Ge=$e[0],Qe=$e[1],ge+=R(Ge),xe+=R(Qe),ve=$e[2];let _e=!0;for(pe=1,Ce=ve.length;pe<Ce;++pe)if(ve[pe]!==ve[pe-1]+1){_e=!1;break}if(_e){const rt=ve[0];Oe+=R(rt-Ge&65535),je+=R(0)}else{const rt=(ye-me)*2+ke*2;for(ke+=Qe-Ge+1,Oe+=R(0),je+=R(rt),pe=0,Ce=ve.length;pe<Ce;++pe)it+=R(ve[pe])}}Ie>0&&(xe+="ÿÿ",ge+="ÿÿ",Oe+="\0",je+="\0\0");const Ne="\0\0"+R(2*ye)+R(de.range)+R(de.entry)+R(de.rangeShift)+xe+"\0\0"+ge+Oe+je+it;let Me="",nt="";if(ue>1){for(fe+=`\0\0
`+(0,t.string32)(4+ue*8+4+Ne.length),Me="",me=0,Fe=ae.length;me<Fe;me++){$e=ae[me],Ge=$e[0],ve=$e[2];let _e=ve[0];for(pe=1,Ce=ve.length;pe<Ce;++pe)ve[pe]!==ve[pe-1]+1&&(Qe=$e[0]+pe-1,Me+=(0,t.string32)(Ge)+(0,t.string32)(Qe)+(0,t.string32)(_e),Ge=Qe+1,_e=ve[pe]);Me+=(0,t.string32)(Ge)+(0,t.string32)($e[1])+(0,t.string32)(_e)}nt="\0\f\0\0"+(0,t.string32)(Me.length+16)+"\0\0\0\0"+(0,t.string32)(Me.length/12)}return fe+"\0"+R(Ne.length+4)+Ne+nt+Me}function M(ne,re){re.pos=(re.start||0)+ne.offset;const ie=re.getUint16();re.skip(60);const ae=re.getUint16();if(ie<4&&ae&768)return!1;const ue=re.getUint16(),fe=re.getUint16();return ue>fe||(re.skip(6),re.getUint16()===0)?!1:(ne.data[8]=ne.data[9]=0,!0)}function _(ne,re,ie){ie=ie||{unitsPerEm:0,yMax:0,yMin:0,ascent:0,descent:0};let ae=0,ue=0,fe=0,me=0,Fe=null,pe=0;if(re){for(let Oe in re){Oe|=0,(Fe>Oe||!Fe)&&(Fe=Oe),pe<Oe&&(pe=Oe);const je=(0,P.getUnicodeRangeFor)(Oe);if(je<32)ae|=1<<je;else if(je<64)ue|=1<<je-32;else if(je<96)fe|=1<<je-64;else if(je<123)me|=1<<je-96;else throw new t.FormatError("Unicode ranges Bits > 123 are reserved for internal usage")}pe>65535&&(pe=65535)}else Fe=0,pe=255;const Ce=ne.bbox||[0,0,0,0],be=ie.unitsPerEm||1/(ne.fontMatrix||t.FONT_IDENTITY_MATRIX)[0],Ie=ne.ascentScaled?1:be/m,ye=ie.ascent||Math.round(Ie*(ne.ascent||Ce[3]));let de=ie.descent||Math.round(Ie*(ne.descent||Ce[1]));de>0&&ne.descent>0&&Ce[1]<0&&(de=-de);const ge=ie.yMax||ye,xe=-ie.yMin||-de;return"\0$ô\0\0\0Š»\0\0\0ŒŠ»\0\0ß\x001\0\0\0\0"+String.fromCharCode(ne.fixedPitch?9:0)+"\0\0\0\0\0\0"+(0,t.string32)(ae)+(0,t.string32)(ue)+(0,t.string32)(fe)+(0,t.string32)(me)+"*21*"+R(ne.italicAngle?1:0)+R(Fe||ne.firstChar)+R(pe||ne.lastChar)+R(ye)+R(de)+"\0d"+R(ge)+R(xe)+"\0\0\0\0\0\0\0\0"+R(ne.xHeight)+R(ne.capHeight)+R(0)+R(Fe||ne.firstChar)+"\0"}function J(ne){const re=Math.floor(ne.italicAngle*65536);return"\0\0\0"+(0,t.string32)(re)+"\0\0\0\0"+(0,t.string32)(ne.fixedPitch?1:0)+"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"}function K(ne){return ne.replace(/[^\x21-\x7E]|[[\](){}<>/%]/g,"").slice(0,63)}function te(ne,re){re||(re=[[],[]]);const ie=[re[0][0]||"Original licence",re[0][1]||ne,re[0][2]||"Unknown",re[0][3]||"uniqueID",re[0][4]||ne,re[0][5]||"Version 0.11",re[0][6]||K(ne),re[0][7]||"Unknown",re[0][8]||"Unknown",re[0][9]||"Unknown"],ae=[];let ue,fe,me,Fe,pe;for(ue=0,fe=ie.length;ue<fe;ue++){pe=re[1][ue]||ie[ue];const Oe=[];for(me=0,Fe=pe.length;me<Fe;me++)Oe.push(R(pe.charCodeAt(me)));ae.push(Oe.join(""))}const Ce=[ie,ae],be=["\0","\0"],Ie=["\0\0","\0"],ye=["\0\0"," "],de=ie.length*be.length;let ge="\0\0"+R(de)+R(de*12+6),xe=0;for(ue=0,fe=be.length;ue<fe;ue++){const Oe=Ce[ue];for(me=0,Fe=Oe.length;me<Fe;me++){pe=Oe[me];const je=be[ue]+Ie[ue]+ye[ue]+R(me)+R(pe.length)+R(xe);ge+=je,xe+=pe.length}}return ge+=ie.join("")+ae.join(""),ge}class Z{constructor(re,ie,ae){this.name=re,this.psName=null,this.mimetype=null,this.disableFontFace=!1,this.loadedName=ae.loadedName,this.isType3Font=ae.isType3Font,this.missingFile=!1,this.cssFontInfo=ae.cssFontInfo,this._charsCache=Object.create(null),this._glyphCache=Object.create(null);let ue=!!(ae.flags&O.FontFlags.Serif);if(!ue&&!ae.isSimulatedFlags){const Ce=re.replace(/[,_]/g,"-").split("-")[0],be=(0,D.getSerifFonts)();for(const Ie of Ce.split("+"))if(be[Ie]){ue=!0;break}}this.isSerifFont=ue,this.isSymbolicFont=!!(ae.flags&O.FontFlags.Symbolic),this.isMonospace=!!(ae.flags&O.FontFlags.FixedPitch);let{type:fe,subtype:me}=ae;this.type=fe,this.subtype=me;const Fe=re.match(/^InvalidPDFjsFont_(.*)_\d+$/);if(this.isInvalidPDFjsFont=!!Fe,this.isInvalidPDFjsFont?this.fallbackName=Fe[1]:this.isMonospace?this.fallbackName="monospace":this.isSerifFont?this.fallbackName="serif":this.fallbackName="sans-serif",this.differences=ae.differences,this.widths=ae.widths,this.defaultWidth=ae.defaultWidth,this.composite=ae.composite,this.cMap=ae.cMap,this.capHeight=ae.capHeight/m,this.ascent=ae.ascent/m,this.descent=ae.descent/m,this.lineHeight=this.ascent-this.descent,this.fontMatrix=ae.fontMatrix,this.bbox=ae.bbox,this.defaultEncoding=ae.defaultEncoding,this.toUnicode=ae.toUnicode,this.toFontChar=[],ae.type==="Type3"){for(let Ce=0;Ce<256;Ce++)this.toFontChar[Ce]=this.differences[Ce]||ae.defaultEncoding[Ce];return}if(this.cidEncoding=ae.cidEncoding||"",this.vertical=!!ae.vertical,this.vertical&&(this.vmetrics=ae.vmetrics,this.defaultVMetrics=ae.defaultVMetrics),!ie||ie.isEmpty){ie&&(0,t.warn)('Font file is empty in "'+re+'" ('+this.loadedName+")"),this.fallbackToSystemFont(ae);return}[fe,me]=V(ie,ae),(fe!==this.type||me!==this.subtype)&&(0,t.info)(`Inconsistent font file Type/SubType, expected: ${this.type}/${this.subtype} but found: ${fe}/${me}.`);let pe;try{switch(fe){case"MMType1":(0,t.info)("MMType1 font ("+re+"), falling back to Type1.");case"Type1":case"CIDFontType0":this.mimetype="font/opentype";const Ce=me==="Type1C"||me==="CIDFontType0C"?new k.CFFFont(ie,ae):new C.Type1Font(re,ie,ae);F(ae),pe=this.convert(re,Ce,ae);break;case"OpenType":case"TrueType":case"CIDFontType2":this.mimetype="font/opentype",pe=this.checkAndRepair(re,ie,ae),this.isOpenType&&(F(ae),fe="OpenType");break;default:throw new t.FormatError(`Font ${fe} is not supported`)}}catch(Ce){(0,t.warn)(Ce),this.fallbackToSystemFont(ae);return}S(ae),this.data=pe,this.type=fe,this.subtype=me,this.fontMatrix=ae.fontMatrix,this.widths=ae.widths,this.defaultWidth=ae.defaultWidth,this.toUnicode=ae.toUnicode,this.seacMap=ae.seacMap}get renderer(){const re=x.FontRendererFactory.create(this,O.SEAC_ANALYSIS_ENABLED);return(0,t.shadow)(this,"renderer",re)}exportData(){const ie=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)?[...X,...f]:X,ae=Object.create(null);let ue,fe;for(ue of ie)fe=this[ue],fe!==void 0&&(ae[ue]=fe);return ae}fallbackToSystemFont(re){this.missingFile=!0;const{name:ie,type:ae}=this;let ue=(0,O.normalizeFontName)(ie);const fe=(0,D.getStdFontMap)(),me=(0,D.getNonStdFontMap)(),Fe=!!fe[ue],pe=!!(me[ue]&&fe[me[ue]]);ue=fe[ue]||me[ue]||ue;const be=(0,g.getFontBasicMetrics)()[ue];be&&(isNaN(this.ascent)&&(this.ascent=be.ascent/m),isNaN(this.descent)&&(this.descent=be.descent/m),isNaN(this.capHeight)&&(this.capHeight=be.capHeight/m)),this.bold=/bold/gi.test(ue),this.italic=/oblique|italic/gi.test(ue),this.black=/Black/g.test(ie);const Ie=/Narrow/g.test(ie);if(this.remeasure=(!Fe||Ie)&&Object.keys(this.widths).length>0,(Fe||pe)&&ae==="CIDFontType2"&&this.cidEncoding.startsWith("Identity-")){const ye=re.cidToGidMap,de=[];if(ee(de,(0,D.getGlyphMapForStandardFonts)()),/Arial-?Black/i.test(ie)?ee(de,(0,D.getSupplementalGlyphMapForArialBlack)()):/Calibri/i.test(ie)&&ee(de,(0,D.getSupplementalGlyphMapForCalibri)()),ye){for(const ge in de){const xe=de[ge];ye[xe]!==void 0&&(de[+ge]=ye[xe])}ye.length!==this.toUnicode.length&&re.hasIncludedToUnicodeMap&&this.toUnicode instanceof L.IdentityToUnicodeMap&&this.toUnicode.forEach(function(ge,xe){const Oe=de[ge];ye[Oe]===void 0&&(de[+ge]=xe)})}this.toUnicode instanceof L.IdentityToUnicodeMap||this.toUnicode.forEach(function(ge,xe){de[+ge]=xe}),this.toFontChar=de,this.toUnicode=new L.ToUnicodeMap(de)}else if(/Symbol/i.test(ue))this.toFontChar=U(N.SymbolSetEncoding,(0,e.getGlyphsUnicode)(),this.differences);else if(/Dingbats/i.test(ue))/Wingdings/i.test(ie)&&(0,t.warn)("Non-embedded Wingdings font, falling back to ZapfDingbats."),this.toFontChar=U(N.ZapfDingbatsEncoding,(0,e.getDingbatsGlyphsUnicode)(),this.differences);else if(Fe){const ye=U(this.defaultEncoding,(0,e.getGlyphsUnicode)(),this.differences);ae==="CIDFontType2"&&!this.cidEncoding.startsWith("Identity-")&&!(this.toUnicode instanceof L.IdentityToUnicodeMap)&&this.toUnicode.forEach(function(de,ge){ye[+de]=ge}),this.toFontChar=ye}else{const ye=(0,e.getGlyphsUnicode)(),de=[];this.toUnicode.forEach((ge,xe)=>{if(!this.composite){const Oe=this.differences[ge]||this.defaultEncoding[ge],je=(0,P.getUnicodeForGlyph)(Oe,ye);je!==-1&&(xe=je)}de[+ge]=xe}),this.composite&&this.toUnicode instanceof L.IdentityToUnicodeMap&&/Tahoma|Verdana/i.test(ie)&&ee(de,(0,D.getGlyphMapForStandardFonts)()),this.toFontChar=de}S(re),this.loadedName=ue.split("-")[0]}checkAndRepair(re,ie,ae){const ue=["OS/2","cmap","head","hhea","hmtx","maxp","name","post","loca","glyf","fpgm","prep","cvt ","CFF "];function fe(Le,Re){const Ue=Object.create(null);Ue["OS/2"]=null,Ue.cmap=null,Ue.head=null,Ue.hhea=null,Ue.hmtx=null,Ue.maxp=null,Ue.name=null,Ue.post=null;for(let Ke=0;Ke<Re;Ke++){const He=me(Le);ue.includes(He.tag)&&He.length!==0&&(Ue[He.tag]=He)}return Ue}function me(Le){const Re=Le.getString(4),Ue=Le.getInt32()>>>0,Ke=Le.getInt32()>>>0,He=Le.getInt32()>>>0,lt=Le.pos;Le.pos=Le.start||0,Le.skip(Ke);const Ze=Le.getBytes(He);return Le.pos=lt,Re==="head"&&(Ze[8]=Ze[9]=Ze[10]=Ze[11]=0,Ze[17]|=32),{tag:Re,checksum:Ue,length:He,offset:Ke,data:Ze}}function Fe(Le){return{version:Le.getString(4),numTables:Le.getUint16(),searchRange:Le.getUint16(),entrySelector:Le.getUint16(),rangeShift:Le.getUint16()}}function pe(Le){const Re=Le.getString(4);(0,t.assert)(Re==="ttcf","Must be a TrueType Collection font.");const Ue=Le.getUint16(),Ke=Le.getUint16(),He=Le.getInt32()>>>0,lt=[];for(let qe=0;qe<He;qe++)lt.push(Le.getInt32()>>>0);const Ze={ttcTag:Re,majorVersion:Ue,minorVersion:Ke,numFonts:He,offsetTable:lt};switch(Ue){case 1:return Ze;case 2:return Ze.dsigTag=Le.getInt32()>>>0,Ze.dsigLength=Le.getInt32()>>>0,Ze.dsigOffset=Le.getInt32()>>>0,Ze}throw new t.FormatError(`Invalid TrueType Collection majorVersion: ${Ue}.`)}function Ce(Le,Re){const{numFonts:Ue,offsetTable:Ke}=pe(Le),He=Re.split("+");let lt;for(let Ze=0;Ze<Ue;Ze++){Le.pos=(Le.start||0)+Ke[Ze];const qe=Fe(Le),dt=fe(Le,qe.numTables);if(!dt.name)throw new t.FormatError('TrueType Collection font must contain a "name" table.');const[gt]=Oe(dt.name);for(let we=0,Te=gt.length;we<Te;we++)for(let Be=0,Ye=gt[we].length;Be<Ye;Be++){const We=gt[we][Be]&&gt[we][Be].replace(/\s/g,"");if(We){if(We===Re)return{header:qe,tables:dt};if(!(He.length<2))for(const ct of He)We===ct&&(lt={name:ct,header:qe,tables:dt})}}}if(lt)return(0,t.warn)(`TrueType Collection does not contain "${Re}" font, falling back to "${lt.name}" font instead.`),{header:lt.header,tables:lt.tables};throw new t.FormatError(`TrueType Collection does not contain "${Re}" font.`)}function be(Le,Re,Ue,Ke){if(!Le)return(0,t.warn)("No cmap table available."),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};let He,lt=(Re.start||0)+Le.offset;Re.pos=lt,Re.skip(2);const Ze=Re.getUint16();let qe,dt=!1;for(let We=0;We<Ze;We++){const ct=Re.getUint16(),tt=Re.getUint16(),ut=Re.getInt32()>>>0;let bt=!1;if(!(qe&&qe.platformId===ct&&qe.encodingId===tt)){if(ct===0&&(tt===0||tt===1||tt===3))bt=!0;else if(ct===1&&tt===0)bt=!0;else if(ct===3&&tt===1&&(Ke||!qe))bt=!0,Ue||(dt=!0);else if(Ue&&ct===3&&tt===0){bt=!0;let jt=!0;if(We<Ze-1){const yt=Re.peekBytes(2);o(yt[0],yt[1])<ct&&(jt=!1)}jt&&(dt=!0)}if(bt&&(qe={platformId:ct,encodingId:tt,offset:ut}),dt)break}}if(qe&&(Re.pos=lt+qe.offset),!qe||Re.peekByte()===-1)return(0,t.warn)("Could not find a preferred cmap table."),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};const gt=Re.getUint16();let we=!1;const Te=[];let Be,Ye;if(gt===0){for(Re.skip(4),Be=0;Be<256;Be++){const We=Re.getByte();We&&Te.push({charCode:Be,glyphId:We})}we=!0}else if(gt===2){Re.skip(4);const We=[];let ct=0;for(let ut=0;ut<256;ut++){const bt=Re.getUint16()>>3;We.push(bt),ct=Math.max(bt,ct)}const tt=[];for(let ut=0;ut<=ct;ut++)tt.push({firstCode:Re.getUint16(),entryCount:Re.getUint16(),idDelta:p(Re.getByte(),Re.getByte()),idRangePos:Re.pos+Re.getUint16()});for(let ut=0;ut<256;ut++)if(We[ut]===0)Re.pos=tt[0].idRangePos+2*ut,Ye=Re.getUint16(),Te.push({charCode:ut,glyphId:Ye});else{const bt=tt[We[ut]];for(Be=0;Be<bt.entryCount;Be++){const jt=(ut<<8)+Be+bt.firstCode;Re.pos=bt.idRangePos+2*Be,Ye=Re.getUint16(),Ye!==0&&(Ye=(Ye+bt.idDelta)%65536),Te.push({charCode:jt,glyphId:Ye})}}}else if(gt===4){Re.skip(4);const We=Re.getUint16()>>1;Re.skip(6);const ct=[];let tt;for(tt=0;tt<We;tt++)ct.push({end:Re.getUint16()});for(Re.skip(2),tt=0;tt<We;tt++)ct[tt].start=Re.getUint16();for(tt=0;tt<We;tt++)ct[tt].delta=Re.getUint16();let ut=0,bt;for(tt=0;tt<We;tt++){He=ct[tt];const yt=Re.getUint16();if(!yt){He.offsetIndex=-1;continue}bt=(yt>>1)-(We-tt),He.offsetIndex=bt,ut=Math.max(ut,bt+He.end-He.start+1)}const jt=[];for(Be=0;Be<ut;Be++)jt.push(Re.getUint16());for(tt=0;tt<We;tt++){He=ct[tt],lt=He.start;const yt=He.end,wt=He.delta;for(bt=He.offsetIndex,Be=lt;Be<=yt;Be++)Be!==65535&&(Ye=bt<0?Be:jt[bt+Be-lt],Ye=Ye+wt&65535,Te.push({charCode:Be,glyphId:Ye}))}}else if(gt===6){Re.skip(4);const We=Re.getUint16(),ct=Re.getUint16();for(Be=0;Be<ct;Be++){Ye=Re.getUint16();const tt=We+Be;Te.push({charCode:tt,glyphId:Ye})}}else if(gt===12){Re.skip(10);const We=Re.getInt32()>>>0;for(Be=0;Be<We;Be++){const ct=Re.getInt32()>>>0,tt=Re.getInt32()>>>0;let ut=Re.getInt32()>>>0;for(let bt=ct;bt<=tt;bt++)Te.push({charCode:bt,glyphId:ut++})}}else return(0,t.warn)("cmap table has unsupported format: "+gt),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};Te.sort(function(We,ct){return We.charCode-ct.charCode});for(let We=1;We<Te.length;We++)Te[We-1].charCode===Te[We].charCode&&(Te.splice(We,1),We--);return{platformId:qe.platformId,encodingId:qe.encodingId,mappings:Te,hasShortCmap:we}}function Ie(Le,Re,Ue,Ke,He,lt){if(!Re){Ue&&(Ue.data=null);return}Le.pos=(Le.start||0)+Re.offset,Le.pos+=4,Le.pos+=2,Le.pos+=2,Le.pos+=2,Le.pos+=2,Le.pos+=2,Le.pos+=2,Le.pos+=2,Le.pos+=2,Le.pos+=2;const Ze=Le.getUint16();Le.pos+=8,Le.pos+=2;let qe=Le.getUint16();Ze!==0&&(o(Ke.data[44],Ke.data[45])&2||(Re.data[22]=0,Re.data[23]=0)),qe>He&&((0,t.info)(`The numOfMetrics (${qe}) should not be greater than the numGlyphs (${He}).`),qe=He,Re.data[34]=(qe&65280)>>8,Re.data[35]=qe&255);const gt=He-qe-(Ue.length-qe*4>>1);if(gt>0){const we=new Uint8Array(Ue.length+gt*2);we.set(Ue.data),lt&&(we[Ue.length]=Ue.data[2],we[Ue.length+1]=Ue.data[3]),Ue.data=we}}function ye(Le,Re,Ue,Ke,He,lt){const Ze={length:0,sizeOfInstructions:0};if(Ue-Re<=12)return Ze;const qe=Le.subarray(Re,Ue);let dt=p(qe[0],qe[1]);if(dt<0)return dt=-1,A(qe,0,dt),Ke.set(qe,He),Ze.length=qe.length,Ze;let gt,we=10,Te=0;for(gt=0;gt<dt;gt++)Te=(qe[we]<<8|qe[we+1])+1,we+=2;const Be=we,Ye=qe[we]<<8|qe[we+1];Ze.sizeOfInstructions=Ye,we+=2+Ye;const We=we;let ct=0;for(gt=0;gt<Te;gt++){const ut=qe[we++];ut&192&&(qe[we-1]=ut&63);let bt=2;ut&2?bt=1:ut&16&&(bt=0);let jt=2;ut&4?jt=1:ut&32&&(jt=0);const yt=bt+jt;if(ct+=yt,ut&8){const wt=qe[we++];gt+=wt,ct+=wt*yt}}if(ct===0)return Ze;let tt=we+ct;return tt>qe.length?Ze:!lt&&Ye>0?(Ke.set(qe.subarray(0,Be),He),Ke.set([0,0],He+Be),Ke.set(qe.subarray(We,tt),He+Be+2),tt-=Ye,qe.length-tt>3&&(tt=tt+3&-4),Ze.length=tt,Ze):qe.length-tt>3?(tt=tt+3&-4,Ke.set(qe.subarray(0,tt),He),Ze.length=tt,Ze):(Ke.set(qe,He),Ze.length=qe.length,Ze)}function de(Le,Re,Ue){const Ke=Le.data,He=v(Ke[0],Ke[1],Ke[2],Ke[3]);He>>16!==1&&((0,t.info)("Attempting to fix invalid version in head table: "+He),Ke[0]=0,Ke[1]=1,Ke[2]=0,Ke[3]=0);const lt=o(Ke[50],Ke[51]);if(lt<0||lt>1){(0,t.info)("Attempting to fix invalid indexToLocFormat in head table: "+lt);const Ze=Re+1;if(Ue===Ze<<1)Ke[50]=0,Ke[51]=0;else if(Ue===Ze<<2)Ke[50]=0,Ke[51]=1;else throw new t.FormatError("Could not fix indexToLocFormat: "+lt)}}function ge(Le,Re,Ue,Ke,He,lt,Ze){let qe,dt,gt;Ke?(qe=4,dt=function(Mt,Ht){return Mt[Ht]<<24|Mt[Ht+1]<<16|Mt[Ht+2]<<8|Mt[Ht+3]},gt=function(Mt,Ht,nn){Mt[Ht]=nn>>>24&255,Mt[Ht+1]=nn>>16&255,Mt[Ht+2]=nn>>8&255,Mt[Ht+3]=nn&255}):(qe=2,dt=function(Mt,Ht){return Mt[Ht]<<9|Mt[Ht+1]<<1},gt=function(Mt,Ht,nn){Mt[Ht]=nn>>9&255,Mt[Ht+1]=nn>>1&255});const we=lt?Ue+1:Ue,Te=qe*(1+we),Be=new Uint8Array(Te);Be.set(Le.data.subarray(0,Te)),Le.data=Be;const Ye=Re.data,We=Ye.length,ct=new Uint8Array(We);let tt,ut;const bt=[];for(tt=0,ut=0;tt<Ue+1;tt++,ut+=qe){let wt=dt(Be,ut);wt>We&&(wt=We),bt.push({index:tt,offset:wt,endOffset:0})}for(bt.sort((wt,Mt)=>wt.offset-Mt.offset),tt=0;tt<Ue;tt++)bt[tt].endOffset=bt[tt+1].offset;for(bt.sort((wt,Mt)=>wt.index-Mt.index),tt=0;tt<Ue;tt++){const{offset:wt,endOffset:Mt}=bt[tt];if(wt!==0||Mt!==0)break;const Ht=bt[tt+1].offset;if(Ht!==0){bt[tt].endOffset=Ht;break}}const jt=Object.create(null);let yt=0;for(gt(Be,0,yt),tt=0,ut=qe;tt<Ue;tt++,ut+=qe){const wt=ye(Ye,bt[tt].offset,bt[tt].endOffset,ct,yt,He),Mt=wt.length;Mt===0&&(jt[tt]=!0),wt.sizeOfInstructions>Ze&&(Ze=wt.sizeOfInstructions),yt+=Mt,gt(Be,ut,yt)}if(yt===0){const wt=new Uint8Array([0,1,0,0,0,0,0,0,0,0,0,0,0,0,49,0]);for(tt=0,ut=qe;tt<we;tt++,ut+=qe)gt(Be,ut,wt.length);Re.data=wt}else if(lt){const wt=dt(Be,qe);ct.length>wt+yt?Re.data=ct.subarray(0,wt+yt):(Re.data=new Uint8Array(wt+yt),Re.data.set(ct.subarray(0,yt))),Re.data.set(ct.subarray(0,wt),yt),gt(Le.data,Be.length-qe,yt+wt)}else Re.data=ct.subarray(0,yt);return{missingGlyphs:jt,maxSizeOfInstructions:Ze}}function xe(Le,Re,Ue){const Ke=(ie.start||0)+Le.offset;ie.pos=Ke;const He=Le.length,lt=Ke+He,Ze=ie.getInt32();ie.skip(28);let qe,dt=!0,gt;switch(Ze){case 65536:qe=O.MacStandardGlyphOrdering;break;case 131072:const we=ie.getUint16();if(we!==Ue){dt=!1;break}const Te=[];for(gt=0;gt<we;++gt){const We=ie.getUint16();if(We>=32768){dt=!1;break}Te.push(We)}if(!dt)break;const Be=[],Ye=[];for(;ie.pos<lt;){const We=ie.getByte();for(Ye.length=We,gt=0;gt<We;++gt)Ye[gt]=String.fromCharCode(ie.getByte());Be.push(Ye.join(""))}for(qe=[],gt=0;gt<we;++gt){const We=Te[gt];if(We<258){qe.push(O.MacStandardGlyphOrdering[We]);continue}qe.push(Be[We-258])}break;case 196608:break;default:(0,t.warn)("Unknown/unsupported post table version "+Ze),dt=!1,Re.defaultEncoding&&(qe=Re.defaultEncoding);break}return Re.glyphNames=qe,dt}function Oe(Le){const Re=(ie.start||0)+Le.offset;ie.pos=Re;const Ue=[[],[]],Ke=[],He=Le.length,lt=Re+He;if(ie.getUint16()!==0||He<6)return[Ue,Ke];const dt=ie.getUint16(),gt=ie.getUint16(),we=12;let Te,Be;for(Te=0;Te<dt&&ie.pos+we<=lt;Te++){const Ye={platform:ie.getUint16(),encoding:ie.getUint16(),language:ie.getUint16(),name:ie.getUint16(),length:ie.getUint16(),offset:ie.getUint16()};(G(Ye)||Y(Ye))&&Ke.push(Ye)}for(Te=0,Be=Ke.length;Te<Be;Te++){const Ye=Ke[Te];if(Ye.length<=0)continue;const We=Re+gt+Ye.offset;if(We+Ye.length>lt)continue;ie.pos=We;const ct=Ye.name;if(Ye.encoding){let tt="";for(let ut=0,bt=Ye.length;ut<bt;ut+=2)tt+=String.fromCharCode(ie.getUint16());Ue[1][ct]=tt}else Ue[0][ct]=ie.getString(Ye.length)}return[Ue,Ke]}const je=[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 it(Le,Re){let Ue=Le.data,Ke=0,He,lt,Ze,qe,dt,gt=0,we=0;const Te=[],Be=[],Ye=[];let We=Re.tooComplexToFollowFunctions,ct=!1,tt=0,ut=0;for(let jt=Ue.length;Ke<jt;){const yt=Ue[Ke++];if(yt===64)if(lt=Ue[Ke++],ct||ut)Ke+=lt;else for(He=0;He<lt;He++)Te.push(Ue[Ke++]);else if(yt===65)if(lt=Ue[Ke++],ct||ut)Ke+=lt*2;else for(He=0;He<lt;He++)Ze=Ue[Ke++],Te.push(Ze<<8|Ue[Ke++]);else if((yt&248)===176)if(lt=yt-176+1,ct||ut)Ke+=lt;else for(He=0;He<lt;He++)Te.push(Ue[Ke++]);else if((yt&248)===184)if(lt=yt-184+1,ct||ut)Ke+=lt*2;else for(He=0;He<lt;He++)Ze=Ue[Ke++],Te.push(Ze<<8|Ue[Ke++]);else if(yt===43&&!We){if(!ct&&!ut){if(qe=Te.at(-1),isNaN(qe))(0,t.info)("TT: CALL empty stack (or invalid entry).");else if(Re.functionsUsed[qe]=!0,qe in Re.functionsStackDeltas){const wt=Te.length+Re.functionsStackDeltas[qe];if(wt<0){(0,t.warn)("TT: CALL invalid functions stack delta."),Re.hintsValid=!1;return}Te.length=wt}else if(qe in Re.functionsDefined&&!Ye.includes(qe)){if(Be.push({data:Ue,i:Ke,stackTop:Te.length-1}),Ye.push(qe),dt=Re.functionsDefined[qe],!dt){(0,t.warn)("TT: CALL non-existent function"),Re.hintsValid=!1;return}Ue=dt.data,Ke=dt.i}}}else if(yt===44&&!We)(ct||ut)&&((0,t.warn)("TT: nested FDEFs not allowed"),We=!0),ct=!0,we=Ke,qe=Te.pop(),Re.functionsDefined[qe]={data:Ue,i:Ke};else if(yt===45)if(ct)ct=!1,gt=Ke;else{if(dt=Be.pop(),!dt){(0,t.warn)("TT: ENDF bad stack"),Re.hintsValid=!1;return}qe=Ye.pop(),Ue=dt.data,Ke=dt.i,Re.functionsStackDeltas[qe]=Te.length-dt.stackTop}else if(yt===137)(ct||ut)&&((0,t.warn)("TT: nested IDEFs not allowed"),We=!0),ct=!0,we=Ke;else if(yt===88)++tt;else if(yt===27)ut=tt;else if(yt===89)ut===tt&&(ut=0),--tt;else if(yt===28&&!ct&&!ut){const wt=Te.at(-1);wt>0&&(Ke+=wt-1)}if(!ct&&!ut){let wt=0;for(yt<=142?wt=je[yt]:yt>=192&&yt<=223?wt=-1:yt>=224&&(wt=-2),yt>=113&&yt<=117&&(lt=Te.pop(),isNaN(lt)||(wt=-lt*2));wt<0&&Te.length>0;)Te.pop(),wt++;for(;wt>0;)Te.push(NaN),wt--}}Re.tooComplexToFollowFunctions=We;const bt=[Ue];Ke>Ue.length&&bt.push(new Uint8Array(Ke-Ue.length)),we>gt&&((0,t.warn)("TT: complementing a missing function tail"),bt.push(new Uint8Array([34,45]))),$e(Le,bt)}function ke(Le,Re){if(!Le.tooComplexToFollowFunctions){if(Le.functionsDefined.length>Re){(0,t.warn)("TT: more functions defined than expected"),Le.hintsValid=!1;return}for(let Ue=0,Ke=Le.functionsUsed.length;Ue<Ke;Ue++){if(Ue>Re){(0,t.warn)("TT: invalid function id: "+Ue),Le.hintsValid=!1;return}if(Le.functionsUsed[Ue]&&!Le.functionsDefined[Ue]){(0,t.warn)("TT: undefined function: "+Ue),Le.hintsValid=!1;return}}}}function $e(Le,Re){if(Re.length>1){let Ue=0,Ke,He;for(Ke=0,He=Re.length;Ke<He;Ke++)Ue+=Re[Ke].length;Ue=Ue+3&-4;const lt=new Uint8Array(Ue);let Ze=0;for(Ke=0,He=Re.length;Ke<He;Ke++)lt.set(Re[Ke],Ze),Ze+=Re[Ke].length;Le.data=lt,Le.length=Ue}}function Ge(Le,Re,Ue,Ke){const He={functionsDefined:[],functionsUsed:[],functionsStackDeltas:[],tooComplexToFollowFunctions:!1,hintsValid:!0};if(Le&&it(Le,He),Re&&it(Re,He),Le&&ke(He,Ke),Ue&&Ue.length&1){const lt=new Uint8Array(Ue.length+1);lt.set(Ue.data),Ue.data=lt}return He.hintsValid}ie=new c.Stream(new Uint8Array(ie.getBytes()));let Qe,ve;if(H(ie)){const Le=Ce(ie,this.name);Qe=Le.header,ve=Le.tables}else Qe=Fe(ie),ve=fe(ie,Qe.numTables);let Ne,Me;const nt=!ve["CFF "];if(nt){if(!ve.loca)throw new t.FormatError('Required "loca" table is not found');ve.glyf||((0,t.warn)('Required "glyf" table is not found -- trying to recover.'),ve.glyf={tag:"glyf",data:new Uint8Array(0)}),this.isOpenType=!1}else{const Le=ae.composite&&((ae.cidToGidMap||[]).length>0||!(ae.cMap instanceof I.IdentityCMap));if(Qe.version==="OTTO"&&!Le||!ve.head||!ve.hhea||!ve.maxp||!ve.post)return Me=new c.Stream(ve["CFF "].data),Ne=new k.CFFFont(Me,ae),F(ae),this.convert(re,Ne,ae);delete ve.glyf,delete ve.loca,delete ve.fpgm,delete ve.prep,delete ve["cvt "],this.isOpenType=!0}if(!ve.maxp)throw new t.FormatError('Required "maxp" table is not found');ie.pos=(ie.start||0)+ve.maxp.offset;const _e=ie.getInt32(),rt=ie.getUint16();if(ae.scaleFactors&&ae.scaleFactors.length===rt&&nt){const{scaleFactors:Le}=ae,Re=o(ve.head.data[50],ve.head.data[51]),Ue=new n.GlyfTable({glyfTable:ve.glyf.data,isGlyphLocationsLong:Re,locaTable:ve.loca.data,numGlyphs:rt});Ue.scale(Le);const{glyf:Ke,loca:He,isLocationLong:lt}=Ue.write();ve.glyf.data=Ke,ve.loca.data=He,lt!==!!Re&&(ve.head.data[50]=0,ve.head.data[51]=lt?1:0);const Ze=ve.hmtx.data;for(let qe=0;qe<rt;qe++){const dt=4*qe,gt=Math.round(Le[qe]*o(Ze[dt],Ze[dt+1]));Ze[dt]=gt>>8&255,Ze[dt+1]=gt&255;const we=Math.round(Le[qe]*p(Ze[dt+2],Ze[dt+3]));A(Ze,dt+2,we)}}let Xe=rt+1,Je=!0;Xe>65535&&(Je=!1,Xe=rt,(0,t.warn)("Not enough space in glyfs to duplicate first glyph."));let et=0,pt=0;_e>=65536&&ve.maxp.length>=22&&(ie.pos+=8,ie.getUint16()>2&&(ve.maxp.data[14]=0,ve.maxp.data[15]=2),ie.pos+=4,et=ie.getUint16(),ie.pos+=4,pt=ie.getUint16()),ve.maxp.data[4]=Xe>>8,ve.maxp.data[5]=Xe&255;const xt=Ge(ve.fpgm,ve.prep,ve["cvt "],et);if(xt||(delete ve.fpgm,delete ve.prep,delete ve["cvt "]),Ie(ie,ve.hhea,ve.hmtx,ve.head,Xe,Je),!ve.head)throw new t.FormatError('Required "head" table is not found');de(ve.head,rt,nt?ve.loca.length:0);let Ot=Object.create(null);if(nt){const Le=o(ve.head.data[50],ve.head.data[51]),Re=ge(ve.loca,ve.glyf,rt,Le,xt,Je,pt);Ot=Re.missingGlyphs,_e>=65536&&ve.maxp.length>=22&&(ve.maxp.data[26]=Re.maxSizeOfInstructions>>8,ve.maxp.data[27]=Re.maxSizeOfInstructions&255)}if(!ve.hhea)throw new t.FormatError('Required "hhea" table is not found');ve.hhea.data[10]===0&&ve.hhea.data[11]===0&&(ve.hhea.data[10]=255,ve.hhea.data[11]=255);const st={unitsPerEm:o(ve.head.data[18],ve.head.data[19]),yMax:o(ve.head.data[42],ve.head.data[43]),yMin:p(ve.head.data[38],ve.head.data[39]),ascent:p(ve.hhea.data[4],ve.hhea.data[5]),descent:p(ve.hhea.data[6],ve.hhea.data[7]),lineGap:p(ve.hhea.data[8],ve.hhea.data[9])};this.ascent=st.ascent/st.unitsPerEm,this.descent=st.descent/st.unitsPerEm,this.lineGap=st.lineGap/st.unitsPerEm,this.cssFontInfo&&this.cssFontInfo.lineHeight?(this.lineHeight=this.cssFontInfo.metrics.lineHeight,this.lineGap=this.cssFontInfo.metrics.lineGap):this.lineHeight=this.ascent-this.descent+this.lineGap,ve.post&&xe(ve.post,ae,rt),ve.post={tag:"post",data:J(ae)};const Nt=[];function Ut(Le){return!Ot[Le]}if(ae.composite){const Le=ae.cidToGidMap||[],Re=Le.length===0;ae.cMap.forEach(function(Ue,Ke){if(typeof Ke=="string"&&(Ke=oe(Ue,Ke,!0)),Ke>65535)throw new t.FormatError("Max size of CID is 65,535");let He=-1;Re?He=Ke:Le[Ke]!==void 0&&(He=Le[Ke]),He>=0&&He<rt&&Ut(He)&&(Nt[Ue]=He)})}else{const Le=be(ve.cmap,ie,this.isSymbolicFont,ae.hasEncoding),Re=Le.platformId,Ue=Le.encodingId,Ke=Le.mappings;let He=[],lt=!1;if(ae.hasEncoding&&(ae.baseEncodingName==="MacRomanEncoding"||ae.baseEncodingName==="WinAnsiEncoding")&&(He=(0,N.getEncoding)(ae.baseEncodingName)),ae.hasEncoding&&!this.isSymbolicFont&&(Re===3&&Ue===1||Re===1&&Ue===0)){const Ze=(0,e.getGlyphsUnicode)();for(let qe=0;qe<256;qe++){let dt;if(this.differences[qe]!==void 0?dt=this.differences[qe]:He.length&&He[qe]!==""?dt=He[qe]:dt=N.StandardEncoding[qe],!dt)continue;const gt=(0,O.recoverGlyphName)(dt,Ze);let we;if(Re===3&&Ue===1?we=Ze[gt]:Re===1&&Ue===0&&(we=N.MacRomanEncoding.indexOf(gt)),we===void 0){if(!ae.glyphNames&&ae.hasIncludedToUnicodeMap&&!(this.toUnicode instanceof L.IdentityToUnicodeMap)){const Te=this.toUnicode.get(qe);Te&&(we=Te.codePointAt(0))}if(we===void 0)continue}for(const Te of Ke)if(Te.charCode===we){Nt[qe]=Te.glyphId;break}}}else if(Re===0){for(const Ze of Ke)Nt[Ze.charCode]=Ze.glyphId;lt=!0}else for(const Ze of Ke){let qe=Ze.charCode;Re===3&&qe>=61440&&qe<=61695&&(qe&=255),Nt[qe]=Ze.glyphId}if(ae.glyphNames&&(He.length||this.differences.length))for(let Ze=0;Ze<256;++Ze){if(!lt&&Nt[Ze]!==void 0)continue;const qe=this.differences[Ze]||He[Ze];if(!qe)continue;const dt=ae.glyphNames.indexOf(qe);dt>0&&Ut(dt)&&(Nt[Ze]=dt)}}Nt.length===0&&(Nt[0]=0);let _t=Xe-1;if(Je||(_t=0),!ae.cssFontInfo){const Le=se(Nt,Ut,_t,this.toUnicode);this.toFontChar=Le.toFontChar,ve.cmap={tag:"cmap",data:E(Le.charCodeToGlyphId,Le.toUnicodeExtraMap,Xe)},(!ve["OS/2"]||!M(ve["OS/2"],ie))&&(ve["OS/2"]={tag:"OS/2",data:_(ae,Le.charCodeToGlyphId,st)})}if(!nt)try{Me=new c.Stream(ve["CFF "].data),Ne=new i.CFFParser(Me,ae,O.SEAC_ANALYSIS_ENABLED).parse(),Ne.duplicateFirstGlyph();const Re=new i.CFFCompiler(Ne);ve["CFF "].data=Re.compile()}catch{(0,t.warn)("Failed to compile font "+ae.loadedName)}if(!ve.name)ve.name={tag:"name",data:te(this.name)};else{const[Le,Re]=Oe(ve.name);ve.name.data=te(re,Le),this.psName=Le[0][6]||null,ae.composite||s(ae,this.isSymbolicFont,Re)}const Tt=new B.OpenTypeFileBuilder(Qe.version);for(const Le in ve)Tt.addTable(Le,ve[Le].data);return Tt.toArray()}convert(re,ie,ae){ae.fixedPitch=!1,ae.builtInEncoding&&d(ae,ae.builtInEncoding);let ue=1;ie instanceof k.CFFFont&&(ue=ie.numGlyphs-1);const fe=ie.getGlyphMapping(ae);let me=null,Fe=fe,pe=null;ae.cssFontInfo||(me=se(fe,ie.hasGlyphId.bind(ie),ue,this.toUnicode),this.toFontChar=me.toFontChar,Fe=me.charCodeToGlyphId,pe=me.toUnicodeExtraMap);const Ce=ie.numGlyphs;function be(xe,Oe){let je=null;for(const it in xe)Oe===xe[it]&&(je||(je=[]),je.push(it|0));return je}function Ie(xe,Oe){for(const je in xe)if(Oe===xe[je])return je|0;return me.charCodeToGlyphId[me.nextAvailableFontCharCode]=Oe,me.nextAvailableFontCharCode++}const ye=ie.seacs;if(me&&O.SEAC_ANALYSIS_ENABLED&&ye&&ye.length){const xe=ae.fontMatrix||t.FONT_IDENTITY_MATRIX,Oe=ie.getCharset(),je=Object.create(null);for(let it in ye){it|=0;const ke=ye[it],$e=N.StandardEncoding[ke[2]],Ge=N.StandardEncoding[ke[3]],Qe=Oe.indexOf($e),ve=Oe.indexOf(Ge);if(Qe<0||ve<0)continue;const Ne={x:ke[0]*xe[0]+ke[1]*xe[2]+xe[4],y:ke[0]*xe[1]+ke[1]*xe[3]+xe[5]},Me=be(fe,it);if(Me)for(const nt of Me){const _e=me.charCodeToGlyphId,rt=Ie(_e,Qe),Xe=Ie(_e,ve);je[nt]={baseFontCharCode:rt,accentFontCharCode:Xe,accentOffset:Ne}}}ae.seacMap=je}const de=1/(ae.fontMatrix||t.FONT_IDENTITY_MATRIX)[0],ge=new B.OpenTypeFileBuilder("OTTO");return ge.addTable("CFF ",ie.data),ge.addTable("OS/2",_(ae,Fe)),ge.addTable("cmap",E(Fe,pe,Ce)),ge.addTable("head","\0\0\0\0\0\0\0\0\0\0_<õ\0\0"+T(de)+"\0\0\0\0ž\v~'\0\0\0\0ž\v~'\0\0"+T(ae.descent)+"ÿ"+T(ae.ascent)+R(ae.italicAngle?2:0)+"\0\0\0\0\0\0\0"),ge.addTable("hhea","\0\0\0"+T(ae.ascent)+T(ae.descent)+"\0\0ÿÿ\0\0\0\0\0\0"+T(ae.capHeight)+T(Math.tan(ae.italicAngle)*ae.xHeight)+"\0\0\0\0\0\0\0\0\0\0\0\0"+R(Ce)),ge.addTable("hmtx",function(){const Oe=ie.charstrings,je=ie.cff?ie.cff.widths:null;let it="\0\0\0\0";for(let ke=1,$e=Ce;ke<$e;ke++){let Ge=0;if(Oe){const Qe=Oe[ke-1];Ge="width"in Qe?Qe.width:0}else je&&(Ge=Math.ceil(je[ke]||0));it+=R(Ge)+R(0)}return it}()),ge.addTable("maxp","\0\0P\0"+R(Ce)),ge.addTable("name",te(re)),ge.addTable("post",J(ae)),ge.toArray()}get spaceWidth(){const re=["space","minus","one","i","I"];let ie;for(const ae of re){if(ae in this.widths){ie=this.widths[ae];break}const fe=(0,e.getGlyphsUnicode)()[ae];let me=0;if(this.composite&&this.cMap.contains(fe)&&(me=this.cMap.lookup(fe),typeof me=="string"&&(me=oe(fe,me))),!me&&this.toUnicode&&(me=this.toUnicode.charCodeOf(fe)),me<=0&&(me=fe),ie=this.widths[me],ie)break}return ie=ie||this.defaultWidth,(0,t.shadow)(this,"spaceWidth",ie)}_charToGlyph(re){let ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ae=this._glyphCache[re];if(ae&&ae.isSpace===ie)return ae;let ue,fe,me,Fe=re;this.cMap&&this.cMap.contains(re)&&(Fe=this.cMap.lookup(re),typeof Fe=="string"&&(Fe=oe(re,Fe))),fe=this.widths[Fe],typeof fe!="number"&&(fe=this.defaultWidth);const pe=this.vmetrics&&this.vmetrics[Fe];let Ce=this.toUnicode.get(re)||re;typeof Ce=="number"&&(Ce=String.fromCharCode(Ce));let be=this.toFontChar[re]!==void 0;if(ue=this.toFontChar[re]||re,this.missingFile){const de=this.differences[re]||this.defaultEncoding[re];(de===".notdef"||de==="")&&this.type==="Type1"&&(ue=32),ue=(0,P.mapSpecialUnicodeValues)(ue)}this.isType3Font&&(me=ue);let Ie=null;if(this.seacMap&&this.seacMap[re]){be=!0;const de=this.seacMap[re];ue=de.baseFontCharCode,Ie={fontChar:String.fromCodePoint(de.accentFontCharCode),offset:de.accentOffset}}let ye="";return typeof ue=="number"&&(ue<=1114111?ye=String.fromCodePoint(ue):(0,t.warn)(`charToGlyph - invalid fontCharCode: ${ue}`)),ae=new r(re,ye,Ce,Ie,fe,pe,me,ie,be),this._glyphCache[re]=ae}charsToGlyphs(re){let ie=this._charsCache[re];if(ie)return ie;if(ie=[],this.cMap){const ae=Object.create(null),ue=re.length;let fe=0;for(;fe<ue;){this.cMap.readCharCode(re,fe,ae);const{charcode:me,length:Fe}=ae;fe+=Fe;const pe=this._charToGlyph(me,Fe===1&&re.charCodeAt(fe-1)===32);ie.push(pe)}}else for(let ae=0,ue=re.length;ae<ue;++ae){const fe=re.charCodeAt(ae),me=this._charToGlyph(fe,fe===32);ie.push(me)}return this._charsCache[re]=ie}getCharPositions(re){const ie=[];if(this.cMap){const ae=Object.create(null);let ue=0;for(;ue<re.length;){this.cMap.readCharCode(re,ue,ae);const fe=ae.length;ie.push([ue,ue+fe]),ue+=fe}}else for(let ae=0,ue=re.length;ae<ue;++ae)ie.push([ae,ae+1]);return ie}get glyphCacheValues(){return Object.values(this._glyphCache)}encodeString(re){const ie=[],ae=[],ue=()=>ie.length%2===1,fe=this.toUnicode instanceof L.IdentityToUnicodeMap?me=>this.toUnicode.charCodeOf(me):me=>this.toUnicode.charCodeOf(String.fromCodePoint(me));for(let me=0,Fe=re.length;me<Fe;me++){const pe=re.codePointAt(me);if(pe>55295&&(pe<57344||pe>65533)&&me++,this.toUnicode){const Ce=fe(pe);if(Ce!==-1){ue()&&(ie.push(ae.join("")),ae.length=0);const be=this.cMap?this.cMap.getCharCodeLength(Ce):1;for(let Ie=be-1;Ie>=0;Ie--)ae.push(String.fromCharCode(Ce>>8*Ie&255));continue}}ue()||(ie.push(ae.join("")),ae.length=0),ae.push(String.fromCodePoint(pe))}return ie.push(ae.join("")),ie}}l.Font=Z;class ce{constructor(re){this.error=re,this.loadedName="g_font_error",this.missingFile=!0}charsToGlyphs(){return[]}encodeString(re){return[re]}exportData(){return{error:this.error}}}l.ErrorFont=ce},(he,l,w)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.CFFTopDict=l.CFFStrings=l.CFFStandardStrings=l.CFFPrivateDict=l.CFFParser=l.CFFIndex=l.CFFHeader=l.CFFFDSelect=l.CFFCompiler=l.CFFCharset=l.CFF=void 0;var t=w(2),i=w(167),O=w(168);const P=10,e=[".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"];l.CFFStandardStrings=e;const N=391,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(S,r){S[r-2]=S[r-2]+S[r-1]}},{id:"sub",min:2,stackDelta:-1,stackFn(S,r){S[r-2]=S[r-2]-S[r-1]}},{id:"div",min:2,stackDelta:-1,stackFn(S,r){S[r-2]=S[r-2]/S[r-1]}},null,{id:"neg",min:1,stackDelta:0,stackFn(S,r){S[r-1]=-S[r-1]}},{id:"eq",min:2,stackDelta:-1},null,null,{id:"drop",min:1,stackDelta:-1},null,{id:"put",min:2,stackDelta:-2},{id:"get",min:1,stackDelta:0},{id:"ifelse",min:4,stackDelta:-3},{id:"random",min:0,stackDelta:1},{id:"mul",min:2,stackDelta:-1,stackFn(S,r){S[r-2]=S[r-2]*S[r-1]}},null,{id:"sqrt",min:1,stackDelta:0},{id:"dup",min:1,stackDelta:1},{id:"exch",min:2,stackDelta:0},{id:"index",min:2,stackDelta:0},{id:"roll",min:3,stackDelta:-2},null,null,null,{id:"hflex",min:7,resetStack:!0},{id:"flex",min:13,resetStack:!0},{id:"hflex1",min:9,resetStack:!0},{id:"flex1",min:11,resetStack:!0}];class k{constructor(r,o,A){this.bytes=r.getBytes(),this.properties=o,this.seacAnalysisEnabled=!!A}parse(){const r=this.properties,o=new x;this.cff=o;const A=this.parseHeader(),p=this.parseIndex(A.endPos),v=this.parseIndex(p.endPos),R=this.parseIndex(v.endPos),T=this.parseIndex(R.endPos),y=this.parseDict(v.obj.get(0)),H=this.createDict(c,y,o.strings);o.header=A.obj,o.names=this.parseNameIndex(p.obj),o.strings=this.parseStringIndex(R.obj),o.topDict=H,o.globalSubrIndex=T.obj,this.parsePrivateDict(o.topDict),o.isCIDFont=H.hasName("ROS");const z=H.getByName("CharStrings"),$=this.parseIndex(z).obj,j=H.getByName("FontMatrix");j&&(r.fontMatrix=j);const V=H.getByName("FontBBox");V&&(r.ascent=Math.max(V[3],V[1]),r.descent=Math.min(V[1],V[3]),r.ascentScaled=!0);let ee,U;if(o.isCIDFont){const Y=this.parseIndex(H.getByName("FDArray")).obj;for(let oe=0,se=Y.count;oe<se;++oe){const Q=Y.get(oe),E=this.createDict(c,this.parseDict(Q),o.strings);this.parsePrivateDict(E),o.fdArray.push(E)}U=null,ee=this.parseCharsets(H.getByName("charset"),$.count,o.strings,!0),o.fdSelect=this.parseFDSelect(H.getByName("FDSelect"),$.count)}else ee=this.parseCharsets(H.getByName("charset"),$.count,o.strings,!1),U=this.parseEncoding(H.getByName("Encoding"),r,o.strings,ee.charset);o.charset=ee,o.encoding=U;const G=this.parseCharStrings({charStrings:$,localSubrIndex:H.privateDict.subrsIndex,globalSubrIndex:T.obj,fdSelect:o.fdSelect,fdArray:o.fdArray,privateDict:H.privateDict});return o.charStrings=G.charStrings,o.seacs=G.seacs,o.widths=G.widths,o}parseHeader(){let r=this.bytes;const o=r.length;let A=0;for(;A<o&&r[A]!==1;)++A;if(A>=o)throw new t.FormatError("Invalid CFF header");A!==0&&((0,t.info)("cff data is shifted"),r=r.subarray(A),this.bytes=r);const p=r[0],v=r[1],R=r[2],T=r[3];return{obj:new g(p,v,R,T),endPos:R}}parseDict(r){let o=0;function A(){let y=r[o++];return y===30?p():y===28?(y=r[o++],y=(y<<24|r[o++]<<16)>>16,y):y===29?(y=r[o++],y=y<<8|r[o++],y=y<<8|r[o++],y=y<<8|r[o++],y):y>=32&&y<=246?y-139:y>=247&&y<=250?(y-247)*256+r[o++]+108:y>=251&&y<=254?-((y-251)*256)-r[o++]-108:((0,t.warn)('CFFParser_parseDict: "'+y+'" is a reserved command.'),NaN)}function p(){let y="";const z=["0","1","2","3","4","5","6","7","8","9",".","E","E-",null,"-"],$=r.length;for(;o<$;){const j=r[o++],V=j>>4,ee=j&15;if(V===15||(y+=z[V],ee===15))break;y+=z[ee]}return parseFloat(y)}let v=[];const R=[];o=0;const T=r.length;for(;o<T;){let y=r[o];y<=21?(y===12&&(y=y<<8|r[++o]),R.push([y,v]),v=[],++o):v.push(A())}return R}parseIndex(r){const o=new I,A=this.bytes,p=A[r++]<<8|A[r++],v=[];let R=r,T,y;if(p!==0){const H=A[r++],z=r+(p+1)*H-1;for(T=0,y=p+1;T<y;++T){let $=0;for(let j=0;j<H;++j)$<<=8,$+=A[r++];v.push(z+$)}R=v[p]}for(T=0,y=v.length-1;T<y;++T){const H=v[T],z=v[T+1];o.add(A.subarray(H,z))}return{obj:o,endPos:R}}parseNameIndex(r){const o=[];for(let A=0,p=r.count;A<p;++A){const v=r.get(A);o.push((0,t.bytesToString)(v))}return o}parseStringIndex(r){const o=new n;for(let A=0,p=r.count;A<p;++A){const v=r.get(A);o.add((0,t.bytesToString)(v))}return o}createDict(r,o,A){const p=new r(A);for(const[v,R]of o)p.setByKey(v,R);return p}parseCharString(r,o,A,p){if(!o||r.callDepth>P)return!1;let v=r.stackSize;const R=r.stack;let T=o.length;for(let y=0;y<T;){const H=o[y++];let z=null;if(H===12){const $=o[y++];$===0?(o[y-2]=139,o[y-1]=22,v=0):z=L[$]}else if(H===28)R[v]=(o[y]<<24|o[y+1]<<16)>>16,y+=2,v++;else if(H===14){if(v>=4&&(v-=4,this.seacAnalysisEnabled))return r.seac=R.slice(v,v+4),!1;z=D[H]}else if(H>=32&&H<=246)R[v]=H-139,v++;else if(H>=247&&H<=254)R[v]=H<251?(H-247<<8)+o[y]+108:-(H-251<<8)-o[y]-108,y++,v++;else if(H===255)R[v]=(o[y]<<24|o[y+1]<<16|o[y+2]<<8|o[y+3])/65536,y+=4,v++;else if(H===19||H===20)r.hints+=v>>1,y+=r.hints+7>>3,v%=2,z=D[H];else if(H===10||H===29){let $;if(H===10?$=A:$=p,!$)return z=D[H],(0,t.warn)("Missing subrsIndex for "+z.id),!1;let j=32768;$.count<1240?j=107:$.count<33900&&(j=1131);const V=R[--v]+j;if(V<0||V>=$.count||isNaN(V))return z=D[H],(0,t.warn)("Out of bounds subrIndex for "+z.id),!1;if(r.stackSize=v,r.callDepth++,!this.parseCharString(r,$.get(V),A,p))return!1;r.callDepth--,v=r.stackSize;continue}else{if(H===11)return r.stackSize=v,!0;if(H===0&&y===o.length)o[y-1]=14,z=D[14];else if(H===9){o.copyWithin(y-1,y,-1),y-=1,T-=1;continue}else z=D[H]}if(z){if(z.stem&&(r.hints+=v>>1,H===3||H===23?r.hasVStems=!0:r.hasVStems&&(H===1||H===18)&&((0,t.warn)("CFF stem hints are in wrong order"),o[y-1]=H===1?3:23)),"min"in z&&!r.undefStack&&v<z.min)return(0,t.warn)("Not enough parameters for "+z.id+"; actual: "+v+", expected: "+z.min),v===0?(o[y-1]=14,!0):!1;r.firstStackClearing&&z.stackClearing&&(r.firstStackClearing=!1,v-=z.min,v>=2&&z.stem?v%=2:v>1&&(0,t.warn)("Found too many parameters for stack-clearing command"),v>0&&(r.width=R[v-1])),"stackDelta"in z?("stackFn"in z&&z.stackFn(R,v),v+=z.stackDelta):z.stackClearing?v=0:z.resetStack?(v=0,r.undefStack=!1):z.undefStack&&(v=0,r.undefStack=!0,r.firstStackClearing=!1)}}return T<o.length&&o.fill(14,T),r.stackSize=v,!0}parseCharStrings(r){let{charStrings:o,localSubrIndex:A,globalSubrIndex:p,fdSelect:v,fdArray:R,privateDict:T}=r;const y=[],H=[],z=o.count;for(let $=0;$<z;$++){const j=o.get($),V={callDepth:0,stackSize:0,stack:[],undefStack:!0,hints:0,firstStackClearing:!0,seac:null,width:null,hasVStems:!1};let ee=!0,U=null,G=T;if(v&&R.length){const Y=v.getFDIndex($);Y===-1&&((0,t.warn)("Glyph index is not in fd select."),ee=!1),Y>=R.length&&((0,t.warn)("Invalid fd index for glyph index."),ee=!1),ee&&(G=R[Y].privateDict,U=G.subrsIndex)}else A&&(U=A);if(ee&&(ee=this.parseCharString(V,j,U,p)),V.width!==null){const Y=G.getByName("nominalWidthX");H[$]=Y+V.width}else{const Y=G.getByName("defaultWidthX");H[$]=Y}V.seac!==null&&(y[$]=V.seac),ee||o.set($,new Uint8Array([14]))}return{charStrings:o,seacs:y,widths:H}}emptyPrivateDictionary(r){const o=this.createDict(u,[],r.strings);r.setByKey(18,[0,0]),r.privateDict=o}parsePrivateDict(r){if(!r.hasName("Private")){this.emptyPrivateDictionary(r);return}const o=r.getByName("Private");if(!Array.isArray(o)||o.length!==2){r.removeByName("Private");return}const A=o[0],p=o[1];if(A===0||p>=this.bytes.length){this.emptyPrivateDictionary(r);return}const v=p+A,R=this.bytes.subarray(p,v),T=this.parseDict(R),y=this.createDict(u,T,r.strings);if(r.privateDict=y,y.getByName("ExpansionFactor")===0&&y.setByName("ExpansionFactor",.06),!y.getByName("Subrs"))return;const H=y.getByName("Subrs"),z=p+H;if(H===0||z>=this.bytes.length){this.emptyPrivateDictionary(r);return}const $=this.parseIndex(z);y.subrsIndex=$.obj}parseCharsets(r,o,A,p){if(r===0)return new X(!0,m.ISO_ADOBE,i.ISOAdobeCharset);if(r===1)return new X(!0,m.EXPERT,i.ExpertCharset);if(r===2)return new X(!0,m.EXPERT_SUBSET,i.ExpertSubsetCharset);const v=this.bytes,R=r,T=v[r++],y=[p?0:".notdef"];let H,z,$;switch(o-=1,T){case 0:for($=0;$<o;$++)H=v[r++]<<8|v[r++],y.push(p?H:A.get(H));break;case 1:for(;y.length<=o;)for(H=v[r++]<<8|v[r++],z=v[r++],$=0;$<=z;$++)y.push(p?H++:A.get(H++));break;case 2:for(;y.length<=o;)for(H=v[r++]<<8|v[r++],z=v[r++]<<8|v[r++],$=0;$<=z;$++)y.push(p?H++:A.get(H++));break;default:throw new t.FormatError("Unknown charset format")}const j=r,V=v.subarray(R,j);return new X(!1,T,y,V)}parseEncoding(r,o,A,p){const v=Object.create(null),R=this.bytes;let T=!1,y,H,z,$=null;function j(){const V=R[r++];for(H=0;H<V;H++){const ee=R[r++],U=(R[r++]<<8)+(R[r++]&255);v[ee]=p.indexOf(A.get(U))}}if(r===0||r===1){T=!0,y=r;const V=r?O.ExpertEncoding:O.StandardEncoding;for(H=0,z=p.length;H<z;H++){const ee=V.indexOf(p[H]);ee!==-1&&(v[ee]=H)}}else{const V=r;switch(y=R[r++],y&127){case 0:const U=R[r++];for(H=1;H<=U;H++)v[R[r++]]=H;break;case 1:const G=R[r++];let Y=1;for(H=0;H<G;H++){const oe=R[r++],se=R[r++];for(let Q=oe;Q<=oe+se;Q++)v[Q]=Y++}break;default:throw new t.FormatError(`Unknown encoding format: ${y} in CFF`)}const ee=r;y&128&&(R[V]&=127,j()),$=R.subarray(V,ee)}return y&=127,new f(T,y,v,$)}parseFDSelect(r,o){const A=this.bytes,p=A[r++],v=[];let R;switch(p){case 0:for(R=0;R<o;++R){const y=A[r++];v.push(y)}break;case 3:const T=A[r++]<<8|A[r++];for(R=0;R<T;++R){let y=A[r++]<<8|A[r++];R===0&&y!==0&&((0,t.warn)("parseFDSelect: The first range must have a first GID of 0 -- trying to recover."),y=0);const H=A[r++],z=A[r]<<8|A[r+1];for(let $=y;$<z;++$)v.push(H)}r+=2;break;default:throw new t.FormatError(`parseFDSelect: Unknown format "${p}".`)}if(v.length!==o)throw new t.FormatError("parseFDSelect: Invalid font data.");return new F(p,v)}}l.CFFParser=k;class x{constructor(){this.header=null,this.names=[],this.topDict=null,this.strings=new n,this.globalSubrIndex=null,this.encoding=null,this.charset=null,this.charStrings=null,this.fdArray=[],this.fdSelect=null,this.isCIDFont=!1}duplicateFirstGlyph(){if(this.charStrings.count>=65535){(0,t.warn)("Not enough space in charstrings to duplicate first glyph.");return}const r=this.charStrings.get(0);this.charStrings.add(r),this.isCIDFont&&this.fdSelect.fdSelect.push(this.fdSelect.fdSelect[0])}hasGlyphId(r){return r<0||r>=this.charStrings.count?!1:this.charStrings.get(r).length>0}}l.CFF=x;class g{constructor(r,o,A,p){this.major=r,this.minor=o,this.hdrSize=A,this.offSize=p}}l.CFFHeader=g;class n{constructor(){this.strings=[]}get(r){return r>=0&&r<=N-1?e[r]:r-N<=this.strings.length?this.strings[r-N]:e[0]}getSID(r){let o=e.indexOf(r);return o!==-1?o:(o=this.strings.indexOf(r),o!==-1?o+N:-1)}add(r){this.strings.push(r)}get count(){return this.strings.length}}l.CFFStrings=n;class I{constructor(){this.objects=[],this.length=0}add(r){this.length+=r.length,this.objects.push(r)}set(r,o){this.length+=o.length-this.objects[r].length,this.objects[r]=o}get(r){return this.objects[r]}get count(){return this.objects.length}}l.CFFIndex=I;class B{constructor(r,o){this.keyToNameMap=r.keyToNameMap,this.nameToKeyMap=r.nameToKeyMap,this.defaults=r.defaults,this.types=r.types,this.opcodes=r.opcodes,this.order=r.order,this.strings=o,this.values=Object.create(null)}setByKey(r,o){if(!(r in this.keyToNameMap))return!1;if(o.length===0)return!0;for(const p of o)if(isNaN(p))return(0,t.warn)(`Invalid CFFDict value: "${o}" for key "${r}".`),!0;const A=this.types[r];return(A==="num"||A==="sid"||A==="offset")&&(o=o[0]),this.values[r]=o,!0}setByName(r,o){if(!(r in this.nameToKeyMap))throw new t.FormatError(`Invalid dictionary name "${r}"`);this.values[this.nameToKeyMap[r]]=o}hasName(r){return this.nameToKeyMap[r]in this.values}getByName(r){if(!(r in this.nameToKeyMap))throw new t.FormatError(`Invalid dictionary name ${r}"`);const o=this.nameToKeyMap[r];return o in this.values?this.values[o]:this.defaults[o]}removeByName(r){delete this.values[this.nameToKeyMap[r]]}static createTables(r){const o={keyToNameMap:{},nameToKeyMap:{},defaults:{},types:{},opcodes:{},order:[]};for(const A of r){const p=Array.isArray(A[0])?(A[0][0]<<8)+A[0][1]:A[0];o.keyToNameMap[p]=A[1],o.nameToKeyMap[A[1]]=p,o.types[p]=A[2],o.defaults[p]=A[3],o.opcodes[p]=Array.isArray(A[0])?A[0]:[A[0]],o.order.push(p)}return o}}const h=[[[12,30],"ROS",["sid","sid","num"],null],[[12,20],"SyntheticBase","num",null],[0,"version","sid",null],[1,"Notice","sid",null],[[12,0],"Copyright","sid",null],[2,"FullName","sid",null],[3,"FamilyName","sid",null],[4,"Weight","sid",null],[[12,1],"isFixedPitch","num",0],[[12,2],"ItalicAngle","num",0],[[12,3],"UnderlinePosition","num",-100],[[12,4],"UnderlineThickness","num",50],[[12,5],"PaintType","num",0],[[12,6],"CharstringType","num",2],[[12,7],"FontMatrix",["num","num","num","num","num","num"],[.001,0,0,.001,0,0]],[13,"UniqueID","num",null],[5,"FontBBox",["num","num","num","num"],[0,0,0,0]],[[12,8],"StrokeWidth","num",0],[14,"XUID","array",null],[15,"charset","offset",0],[16,"Encoding","offset",0],[17,"CharStrings","offset",0],[18,"Private",["offset","offset"],null],[[12,21],"PostScript","sid",null],[[12,22],"BaseFontName","sid",null],[[12,23],"BaseFontBlend","delta",null],[[12,31],"CIDFontVersion","num",0],[[12,32],"CIDFontRevision","num",0],[[12,33],"CIDFontType","num",0],[[12,34],"CIDCount","num",8720],[[12,35],"UIDBase","num",null],[[12,37],"FDSelect","offset",null],[[12,36],"FDArray","offset",null],[[12,38],"FontName","sid",null]];class c extends B{static get tables(){return(0,t.shadow)(this,"tables",this.createTables(h))}constructor(r){super(c.tables,r),this.privateDict=null}}l.CFFTopDict=c;const C=[[6,"BlueValues","delta",null],[7,"OtherBlues","delta",null],[8,"FamilyBlues","delta",null],[9,"FamilyOtherBlues","delta",null],[[12,9],"BlueScale","num",.039625],[[12,10],"BlueShift","num",7],[[12,11],"BlueFuzz","num",1],[10,"StdHW","num",null],[11,"StdVW","num",null],[[12,12],"StemSnapH","delta",null],[[12,13],"StemSnapV","delta",null],[[12,14],"ForceBold","num",0],[[12,17],"LanguageGroup","num",0],[[12,18],"ExpansionFactor","num",.06],[[12,19],"initialRandomSeed","num",0],[20,"defaultWidthX","num",0],[21,"nominalWidthX","num",0],[19,"Subrs","offset",null]];class u extends B{static get tables(){return(0,t.shadow)(this,"tables",this.createTables(C))}constructor(r){super(u.tables,r),this.subrsIndex=null}}l.CFFPrivateDict=u;const m={ISO_ADOBE:0,EXPERT:1,EXPERT_SUBSET:2};class X{constructor(r,o,A,p){this.predefined=r,this.format=o,this.charset=A,this.raw=p}}l.CFFCharset=X;class f{constructor(r,o,A,p){this.predefined=r,this.format=o,this.encoding=A,this.raw=p}}class F{constructor(r,o){this.format=r,this.fdSelect=o}getFDIndex(r){return r<0||r>=this.fdSelect.length?-1:this.fdSelect[r]}}l.CFFFDSelect=F;class s{constructor(){this.offsets=Object.create(null)}isTracking(r){return r in this.offsets}track(r,o){if(r in this.offsets)throw new t.FormatError(`Already tracking location of ${r}`);this.offsets[r]=o}offset(r){for(const o in this.offsets)this.offsets[o]+=r}setEntryLocation(r,o,A){if(!(r in this.offsets))throw new t.FormatError(`Not tracking location of ${r}`);const p=A.data,v=this.offsets[r],R=5;for(let T=0,y=o.length;T<y;++T){const H=T*R+v,z=H+1,$=H+2,j=H+3,V=H+4;if(p[H]!==29||p[z]!==0||p[$]!==0||p[j]!==0||p[V]!==0)throw new t.FormatError("writing to an offset that is not empty");const ee=o[T];p[H]=29,p[z]=ee>>24&255,p[$]=ee>>16&255,p[j]=ee>>8&255,p[V]=ee&255}}}class d{constructor(r){this.cff=r}compile(){const r=this.cff,o={data:[],length:0,add(j){this.data=this.data.concat(j),this.length=this.data.length}},A=this.compileHeader(r.header);o.add(A);const p=this.compileNameIndex(r.names);if(o.add(p),r.isCIDFont&&r.topDict.hasName("FontMatrix")){const j=r.topDict.getByName("FontMatrix");r.topDict.removeByName("FontMatrix");for(const V of r.fdArray){let ee=j.slice(0);V.hasName("FontMatrix")&&(ee=t.Util.transform(ee,V.getByName("FontMatrix"))),V.setByName("FontMatrix",ee)}}const v=r.topDict.getByName("XUID");v&&v.length>16&&r.topDict.removeByName("XUID"),r.topDict.setByName("charset",0);let R=this.compileTopDicts([r.topDict],o.length,r.isCIDFont);o.add(R.output);const T=R.trackers[0],y=this.compileStringIndex(r.strings.strings);o.add(y);const H=this.compileIndex(r.globalSubrIndex);if(o.add(H),r.encoding&&r.topDict.hasName("Encoding"))if(r.encoding.predefined)T.setEntryLocation("Encoding",[r.encoding.format],o);else{const j=this.compileEncoding(r.encoding);T.setEntryLocation("Encoding",[o.length],o),o.add(j)}const z=this.compileCharset(r.charset,r.charStrings.count,r.strings,r.isCIDFont);T.setEntryLocation("charset",[o.length],o),o.add(z);const $=this.compileCharStrings(r.charStrings);if(T.setEntryLocation("CharStrings",[o.length],o),o.add($),r.isCIDFont){T.setEntryLocation("FDSelect",[o.length],o);const j=this.compileFDSelect(r.fdSelect);o.add(j),R=this.compileTopDicts(r.fdArray,o.length,!0),T.setEntryLocation("FDArray",[o.length],o),o.add(R.output);const V=R.trackers;this.compilePrivateDicts(r.fdArray,V,o)}return this.compilePrivateDicts([r.topDict],[T],o),o.add([0]),o.data}encodeNumber(r){return Number.isInteger(r)?this.encodeInteger(r):this.encodeFloat(r)}static get EncodeFloatRegExp(){return(0,t.shadow)(this,"EncodeFloatRegExp",/\.(\d*?)(?:9{5,20}|0{5,20})\d{0,2}(?:e(.+)|$)/)}encodeFloat(r){let o=r.toString();const A=d.EncodeFloatRegExp.exec(o);if(A){const y=parseFloat("1e"+((A[2]?+A[2]:0)+A[1].length));o=(Math.round(r*y)/y).toString()}let p="",v,R;for(v=0,R=o.length;v<R;++v){const y=o[v];y==="e"?p+=o[++v]==="-"?"c":"b":y==="."?p+="a":y==="-"?p+="e":p+=y}p+=p.length&1?"f":"ff";const T=[30];for(v=0,R=p.length;v<R;v+=2)T.push(parseInt(p.substring(v,v+2),16));return T}encodeInteger(r){let o;return r>=-107&&r<=107?o=[r+139]:r>=108&&r<=1131?(r-=108,o=[(r>>8)+247,r&255]):r>=-1131&&r<=-108?(r=-r-108,o=[(r>>8)+251,r&255]):r>=-32768&&r<=32767?o=[28,r>>8&255,r&255]:o=[29,r>>24&255,r>>16&255,r>>8&255,r&255],o}compileHeader(r){return[r.major,r.minor,4,r.offSize]}compileNameIndex(r){const o=new I;for(const A of r){const p=Math.min(A.length,127);let v=new Array(p);for(let R=0;R<p;R++){let T=A[R];(T<"!"||T>"~"||T==="["||T==="]"||T==="("||T===")"||T==="{"||T==="}"||T==="<"||T===">"||T==="/"||T==="%")&&(T="_"),v[R]=T}v=v.join(""),v===""&&(v="Bad_Font_Name"),o.add((0,t.stringToBytes)(v))}return this.compileIndex(o)}compileTopDicts(r,o,A){const p=[];let v=new I;for(const R of r){A&&(R.removeByName("CIDFontVersion"),R.removeByName("CIDFontRevision"),R.removeByName("CIDFontType"),R.removeByName("CIDCount"),R.removeByName("UIDBase"));const T=new s,y=this.compileDict(R,T);p.push(T),v.add(y),T.offset(o)}return v=this.compileIndex(v,p),{trackers:p,output:v}}compilePrivateDicts(r,o,A){for(let p=0,v=r.length;p<v;++p){const R=r[p],T=R.privateDict;if(!T||!R.hasName("Private"))throw new t.FormatError("There must be a private dictionary.");const y=new s,H=this.compileDict(T,y);let z=A.length;if(y.offset(z),H.length||(z=0),o[p].setEntryLocation("Private",[H.length,z],A),A.add(H),T.subrsIndex&&T.hasName("Subrs")){const $=this.compileIndex(T.subrsIndex);y.setEntryLocation("Subrs",[H.length],A),A.add($)}}}compileDict(r,o){const A=[];for(const p of r.order){if(!(p in r.values))continue;let v=r.values[p],R=r.types[p];if(Array.isArray(R)||(R=[R]),Array.isArray(v)||(v=[v]),v.length!==0){for(let T=0,y=R.length;T<y;++T){const H=R[T],z=v[T];switch(H){case"num":case"sid":A.push(...this.encodeNumber(z));break;case"offset":const $=r.keyToNameMap[p];o.isTracking($)||o.track($,A.length),A.push(29,0,0,0,0);break;case"array":case"delta":A.push(...this.encodeNumber(z));for(let j=1,V=v.length;j<V;++j)A.push(...this.encodeNumber(v[j]));break;default:throw new t.FormatError(`Unknown data type of ${H}`)}}A.push(...r.opcodes[p])}}return A}compileStringIndex(r){const o=new I;for(const A of r)o.add((0,t.stringToBytes)(A));return this.compileIndex(o)}compileGlobalSubrIndex(){const r=this.cff.globalSubrIndex;this.out.writeByteArray(this.compileIndex(r))}compileCharStrings(r){const o=new I;for(let A=0;A<r.count;A++){const p=r.get(A);if(p.length===0){o.add(new Uint8Array([139,14]));continue}o.add(p)}return this.compileIndex(o)}compileCharset(r,o,A,p){let v;const R=o-1;if(p)v=new Uint8Array([2,0,0,R>>8&255,R&255]);else{const T=1+R*2;v=new Uint8Array(T),v[0]=0;let y=0;const H=r.charset.length;let z=!1;for(let $=1;$<v.length;$+=2){let j=0;if(y<H){const V=r.charset[y++];j=A.getSID(V),j===-1&&(j=0,z||(z=!0,(0,t.warn)(`Couldn't find ${V} in CFF strings`)))}v[$]=j>>8&255,v[$+1]=j&255}}return this.compileTypedArray(v)}compileEncoding(r){return this.compileTypedArray(r.raw)}compileFDSelect(r){const o=r.format;let A,p;switch(o){case 0:for(A=new Uint8Array(1+r.fdSelect.length),A[0]=o,p=0;p<r.fdSelect.length;p++)A[p+1]=r.fdSelect[p];break;case 3:const v=0;let R=r.fdSelect[0];const T=[o,0,0,v>>8&255,v&255,R];for(p=1;p<r.fdSelect.length;p++){const H=r.fdSelect[p];H!==R&&(T.push(p>>8&255,p&255,H),R=H)}const y=(T.length-3)/3;T[1]=y>>8&255,T[2]=y&255,T.push(p>>8&255,p&255),A=new Uint8Array(T);break}return this.compileTypedArray(A)}compileTypedArray(r){const o=[];for(let A=0,p=r.length;A<p;++A)o[A]=r[A];return o}compileIndex(r){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const A=r.objects,p=A.length;if(p===0)return[0,0];const v=[p>>8&255,p&255];let R=1,T;for(T=0;T<p;++T)R+=A[T].length;let y;R<256?y=1:R<65536?y=2:R<16777216?y=3:y=4,v.push(y);let H=1;for(T=0;T<p+1;T++)y===1?v.push(H&255):y===2?v.push(H>>8&255,H&255):y===3?v.push(H>>16&255,H>>8&255,H&255):v.push(H>>>24&255,H>>16&255,H>>8&255,H&255),A[T]&&(H+=A[T].length);for(T=0;T<p;T++)o[T]&&o[T].offset(v.length),v.push(...A[T]);return v}}l.CFFCompiler=d},(he,l)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.ISOAdobeCharset=l.ExpertSubsetCharset=l.ExpertCharset=void 0;const w=[".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"];l.ISOAdobeCharset=w;const t=[".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"];l.ExpertCharset=t;const i=[".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"];l.ExpertSubsetCharset=i},(he,l)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.ZapfDingbatsEncoding=l.WinAnsiEncoding=l.SymbolSetEncoding=l.StandardEncoding=l.MacRomanEncoding=l.ExpertEncoding=void 0,l.getEncoding=D;const w=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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"];l.ExpertEncoding=w;const t=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclamsmall","Hungarumlautsmall","centoldstyle","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","","threequartersemdash","","questionsmall","","","","","Ethsmall","","","onequarter","onehalf","threequarters","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","","","","","","","ff","fi","fl","ffi","ffl","parenleftinferior","","parenrightinferior","Circumflexsmall","hypheninferior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","","","asuperior","centsuperior","","","","","Aacutesmall","Agravesmall","Acircumflexsmall","Adieresissmall","Atildesmall","Aringsmall","Ccedillasmall","Eacutesmall","Egravesmall","Ecircumflexsmall","Edieresissmall","Iacutesmall","Igravesmall","Icircumflexsmall","Idieresissmall","Ntildesmall","Oacutesmall","Ogravesmall","Ocircumflexsmall","Odieresissmall","Otildesmall","Uacutesmall","Ugravesmall","Ucircumflexsmall","Udieresissmall","","eightsuperior","fourinferior","threeinferior","sixinferior","eightinferior","seveninferior","Scaronsmall","","centinferior","twoinferior","","Dieresissmall","","Caronsmall","osuperior","fiveinferior","","commainferior","periodinferior","Yacutesmall","","dollarinferior","","","Thornsmall","","nineinferior","zeroinferior","Zcaronsmall","AEsmall","Oslashsmall","questiondownsmall","oneinferior","Lslashsmall","","","","","","","Cedillasmall","","","","","","OEsmall","figuredash","hyphensuperior","","","","","exclamdownsmall","","Ydieresissmall","","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","ninesuperior","zerosuperior","","esuperior","rsuperior","tsuperior","","","isuperior","ssuperior","dsuperior","","","","","","lsuperior","Ogoneksmall","Brevesmall","Macronsmall","bsuperior","nsuperior","msuperior","commasuperior","periodsuperior","Dotaccentsmall","Ringsmall","","","",""],i=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","","Adieresis","Aring","Ccedilla","Eacute","Ntilde","Odieresis","Udieresis","aacute","agrave","acircumflex","adieresis","atilde","aring","ccedilla","eacute","egrave","ecircumflex","edieresis","iacute","igrave","icircumflex","idieresis","ntilde","oacute","ograve","ocircumflex","odieresis","otilde","uacute","ugrave","ucircumflex","udieresis","dagger","degree","cent","sterling","section","bullet","paragraph","germandbls","registered","copyright","trademark","acute","dieresis","notequal","AE","Oslash","infinity","plusminus","lessequal","greaterequal","yen","mu","partialdiff","summation","product","pi","integral","ordfeminine","ordmasculine","Omega","ae","oslash","questiondown","exclamdown","logicalnot","radical","florin","approxequal","Delta","guillemotleft","guillemotright","ellipsis","space","Agrave","Atilde","Otilde","OE","oe","endash","emdash","quotedblleft","quotedblright","quoteleft","quoteright","divide","lozenge","ydieresis","Ydieresis","fraction","currency","guilsinglleft","guilsinglright","fi","fl","daggerdbl","periodcentered","quotesinglbase","quotedblbase","perthousand","Acircumflex","Ecircumflex","Aacute","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Oacute","Ocircumflex","apple","Ograve","Uacute","Ucircumflex","Ugrave","dotlessi","circumflex","tilde","macron","breve","dotaccent","ring","cedilla","hungarumlaut","ogonek","caron"];l.MacRomanEncoding=i;const O=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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","","","",""];l.StandardEncoding=O;const P=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","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"];l.WinAnsiEncoding=P;const e=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","universal","numbersign","existential","percent","ampersand","suchthat","parenleft","parenright","asteriskmath","plus","comma","minus","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","congruent","Alpha","Beta","Chi","Delta","Epsilon","Phi","Gamma","Eta","Iota","theta1","Kappa","Lambda","Mu","Nu","Omicron","Pi","Theta","Rho","Sigma","Tau","Upsilon","sigma1","Omega","Xi","Psi","Zeta","bracketleft","therefore","bracketright","perpendicular","underscore","radicalex","alpha","beta","chi","delta","epsilon","phi","gamma","eta","iota","phi1","kappa","lambda","mu","nu","omicron","pi","theta","rho","sigma","tau","upsilon","omega1","omega","xi","psi","zeta","braceleft","bar","braceright","similar","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Euro","Upsilon1","minute","lessequal","fraction","infinity","florin","club","diamond","heart","spade","arrowboth","arrowleft","arrowup","arrowright","arrowdown","degree","plusminus","second","greaterequal","multiply","proportional","partialdiff","bullet","divide","notequal","equivalence","approxequal","ellipsis","arrowvertex","arrowhorizex","carriagereturn","aleph","Ifraktur","Rfraktur","weierstrass","circlemultiply","circleplus","emptyset","intersection","union","propersuperset","reflexsuperset","notsubset","propersubset","reflexsubset","element","notelement","angle","gradient","registerserif","copyrightserif","trademarkserif","product","radical","dotmath","logicalnot","logicaland","logicalor","arrowdblboth","arrowdblleft","arrowdblup","arrowdblright","arrowdbldown","lozenge","angleleft","registersans","copyrightsans","trademarksans","summation","parenlefttp","parenleftex","parenleftbt","bracketlefttp","bracketleftex","bracketleftbt","bracelefttp","braceleftmid","braceleftbt","braceex","","angleright","integral","integraltp","integralex","integralbt","parenrighttp","parenrightex","parenrightbt","bracketrighttp","bracketrightex","bracketrightbt","bracerighttp","bracerightmid","bracerightbt",""];l.SymbolSetEncoding=e;const N=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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",""];l.ZapfDingbatsEncoding=N;function D(L){switch(L){case"WinAnsiEncoding":return P;case"StandardEncoding":return O;case"MacRomanEncoding":return i;case"SymbolSetEncoding":return e;case"ZapfDingbatsEncoding":return N;case"ExpertEncoding":return w;case"MacExpertEncoding":return t;default:return null}}},(he,l,w)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.SEAC_ANALYSIS_ENABLED=l.MacStandardGlyphOrdering=l.FontFlags=void 0,l.normalizeFontName=x,l.recoverGlyphName=L,l.type1FontGlyphMapping=k;var t=w(168),i=w(170),O=w(171),P=w(2);const e=!0;l.SEAC_ANALYSIS_ENABLED=e;const N={FixedPitch:1,Serif:2,Symbolic:4,Script:8,Nonsymbolic:32,Italic:64,AllCap:65536,SmallCap:131072,ForceBold:262144};l.FontFlags=N;const D=[".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"];l.MacStandardGlyphOrdering=D;function L(g,n){if(n[g]!==void 0)return g;const I=(0,O.getUnicodeForGlyph)(g,n);if(I!==-1){for(const B in n)if(n[B]===I)return B}return(0,P.info)("Unable to recover a standard glyph name for: "+g),g}function k(g,n,I){const B=Object.create(null);let h,c,C;const u=!!(g.flags&N.Symbolic);if(g.isInternalFont)for(C=n,c=0;c<C.length;c++)h=I.indexOf(C[c]),h>=0?B[c]=h:B[c]=0;else if(g.baseEncodingName)for(C=(0,t.getEncoding)(g.baseEncodingName),c=0;c<C.length;c++)h=I.indexOf(C[c]),h>=0?B[c]=h:B[c]=0;else if(u)for(c in n)B[c]=n[c];else for(C=t.StandardEncoding,c=0;c<C.length;c++)h=I.indexOf(C[c]),h>=0?B[c]=h:B[c]=0;const m=g.differences;let X;if(m)for(c in m){const f=m[c];if(h=I.indexOf(f),h===-1){X||(X=(0,i.getGlyphsUnicode)());const F=L(f,X);F!==f&&(h=I.indexOf(F))}h>=0?B[c]=h:B[c]=0}return B}function x(g){return g.replace(/[,_]/g,"-").replace(/\s/g,"")}},(he,l,w)=>{w.r(l),w.d(l,{getDingbatsGlyphsUnicode:()=>O,getGlyphsUnicode:()=>i});var t=w(136);const i=(0,t.getArrayLookupTableFactory)(function(){return["A",65,"AE",198,"AEacute",508,"AEmacron",482,"AEsmall",63462,"Aacute",193,"Aacutesmall",63457,"Abreve",258,"Abreveacute",7854,"Abrevecyrillic",1232,"Abrevedotbelow",7862,"Abrevegrave",7856,"Abrevehookabove",7858,"Abrevetilde",7860,"Acaron",461,"Acircle",9398,"Acircumflex",194,"Acircumflexacute",7844,"Acircumflexdotbelow",7852,"Acircumflexgrave",7846,"Acircumflexhookabove",7848,"Acircumflexsmall",63458,"Acircumflextilde",7850,"Acute",63177,"Acutesmall",63412,"Acyrillic",1040,"Adblgrave",512,"Adieresis",196,"Adieresiscyrillic",1234,"Adieresismacron",478,"Adieresissmall",63460,"Adotbelow",7840,"Adotmacron",480,"Agrave",192,"Agravesmall",63456,"Ahookabove",7842,"Aiecyrillic",1236,"Ainvertedbreve",514,"Alpha",913,"Alphatonos",902,"Amacron",256,"Amonospace",65313,"Aogonek",260,"Aring",197,"Aringacute",506,"Aringbelow",7680,"Aringsmall",63461,"Asmall",63329,"Atilde",195,"Atildesmall",63459,"Aybarmenian",1329,"B",66,"Bcircle",9399,"Bdotaccent",7682,"Bdotbelow",7684,"Becyrillic",1041,"Benarmenian",1330,"Beta",914,"Bhook",385,"Blinebelow",7686,"Bmonospace",65314,"Brevesmall",63220,"Bsmall",63330,"Btopbar",386,"C",67,"Caarmenian",1342,"Cacute",262,"Caron",63178,"Caronsmall",63221,"Ccaron",268,"Ccedilla",199,"Ccedillaacute",7688,"Ccedillasmall",63463,"Ccircle",9400,"Ccircumflex",264,"Cdot",266,"Cdotaccent",266,"Cedillasmall",63416,"Chaarmenian",1353,"Cheabkhasiancyrillic",1212,"Checyrillic",1063,"Chedescenderabkhasiancyrillic",1214,"Chedescendercyrillic",1206,"Chedieresiscyrillic",1268,"Cheharmenian",1347,"Chekhakassiancyrillic",1227,"Cheverticalstrokecyrillic",1208,"Chi",935,"Chook",391,"Circumflexsmall",63222,"Cmonospace",65315,"Coarmenian",1361,"Csmall",63331,"D",68,"DZ",497,"DZcaron",452,"Daarmenian",1332,"Dafrican",393,"Dcaron",270,"Dcedilla",7696,"Dcircle",9401,"Dcircumflexbelow",7698,"Dcroat",272,"Ddotaccent",7690,"Ddotbelow",7692,"Decyrillic",1044,"Deicoptic",1006,"Delta",8710,"Deltagreek",916,"Dhook",394,"Dieresis",63179,"DieresisAcute",63180,"DieresisGrave",63181,"Dieresissmall",63400,"Digammagreek",988,"Djecyrillic",1026,"Dlinebelow",7694,"Dmonospace",65316,"Dotaccentsmall",63223,"Dslash",272,"Dsmall",63332,"Dtopbar",395,"Dz",498,"Dzcaron",453,"Dzeabkhasiancyrillic",1248,"Dzecyrillic",1029,"Dzhecyrillic",1039,"E",69,"Eacute",201,"Eacutesmall",63465,"Ebreve",276,"Ecaron",282,"Ecedillabreve",7708,"Echarmenian",1333,"Ecircle",9402,"Ecircumflex",202,"Ecircumflexacute",7870,"Ecircumflexbelow",7704,"Ecircumflexdotbelow",7878,"Ecircumflexgrave",7872,"Ecircumflexhookabove",7874,"Ecircumflexsmall",63466,"Ecircumflextilde",7876,"Ecyrillic",1028,"Edblgrave",516,"Edieresis",203,"Edieresissmall",63467,"Edot",278,"Edotaccent",278,"Edotbelow",7864,"Efcyrillic",1060,"Egrave",200,"Egravesmall",63464,"Eharmenian",1335,"Ehookabove",7866,"Eightroman",8551,"Einvertedbreve",518,"Eiotifiedcyrillic",1124,"Elcyrillic",1051,"Elevenroman",8554,"Emacron",274,"Emacronacute",7702,"Emacrongrave",7700,"Emcyrillic",1052,"Emonospace",65317,"Encyrillic",1053,"Endescendercyrillic",1186,"Eng",330,"Enghecyrillic",1188,"Enhookcyrillic",1223,"Eogonek",280,"Eopen",400,"Epsilon",917,"Epsilontonos",904,"Ercyrillic",1056,"Ereversed",398,"Ereversedcyrillic",1069,"Escyrillic",1057,"Esdescendercyrillic",1194,"Esh",425,"Esmall",63333,"Eta",919,"Etarmenian",1336,"Etatonos",905,"Eth",208,"Ethsmall",63472,"Etilde",7868,"Etildebelow",7706,"Euro",8364,"Ezh",439,"Ezhcaron",494,"Ezhreversed",440,"F",70,"Fcircle",9403,"Fdotaccent",7710,"Feharmenian",1366,"Feicoptic",996,"Fhook",401,"Fitacyrillic",1138,"Fiveroman",8548,"Fmonospace",65318,"Fourroman",8547,"Fsmall",63334,"G",71,"GBsquare",13191,"Gacute",500,"Gamma",915,"Gammaafrican",404,"Gangiacoptic",1002,"Gbreve",286,"Gcaron",486,"Gcedilla",290,"Gcircle",9404,"Gcircumflex",284,"Gcommaaccent",290,"Gdot",288,"Gdotaccent",288,"Gecyrillic",1043,"Ghadarmenian",1346,"Ghemiddlehookcyrillic",1172,"Ghestrokecyrillic",1170,"Gheupturncyrillic",1168,"Ghook",403,"Gimarmenian",1331,"Gjecyrillic",1027,"Gmacron",7712,"Gmonospace",65319,"Grave",63182,"Gravesmall",63328,"Gsmall",63335,"Gsmallhook",667,"Gstroke",484,"H",72,"H18533",9679,"H18543",9642,"H18551",9643,"H22073",9633,"HPsquare",13259,"Haabkhasiancyrillic",1192,"Hadescendercyrillic",1202,"Hardsigncyrillic",1066,"Hbar",294,"Hbrevebelow",7722,"Hcedilla",7720,"Hcircle",9405,"Hcircumflex",292,"Hdieresis",7718,"Hdotaccent",7714,"Hdotbelow",7716,"Hmonospace",65320,"Hoarmenian",1344,"Horicoptic",1e3,"Hsmall",63336,"Hungarumlaut",63183,"Hungarumlautsmall",63224,"Hzsquare",13200,"I",73,"IAcyrillic",1071,"IJ",306,"IUcyrillic",1070,"Iacute",205,"Iacutesmall",63469,"Ibreve",300,"Icaron",463,"Icircle",9406,"Icircumflex",206,"Icircumflexsmall",63470,"Icyrillic",1030,"Idblgrave",520,"Idieresis",207,"Idieresisacute",7726,"Idieresiscyrillic",1252,"Idieresissmall",63471,"Idot",304,"Idotaccent",304,"Idotbelow",7882,"Iebrevecyrillic",1238,"Iecyrillic",1045,"Ifraktur",8465,"Igrave",204,"Igravesmall",63468,"Ihookabove",7880,"Iicyrillic",1048,"Iinvertedbreve",522,"Iishortcyrillic",1049,"Imacron",298,"Imacroncyrillic",1250,"Imonospace",65321,"Iniarmenian",1339,"Iocyrillic",1025,"Iogonek",302,"Iota",921,"Iotaafrican",406,"Iotadieresis",938,"Iotatonos",906,"Ismall",63337,"Istroke",407,"Itilde",296,"Itildebelow",7724,"Izhitsacyrillic",1140,"Izhitsadblgravecyrillic",1142,"J",74,"Jaarmenian",1345,"Jcircle",9407,"Jcircumflex",308,"Jecyrillic",1032,"Jheharmenian",1355,"Jmonospace",65322,"Jsmall",63338,"K",75,"KBsquare",13189,"KKsquare",13261,"Kabashkircyrillic",1184,"Kacute",7728,"Kacyrillic",1050,"Kadescendercyrillic",1178,"Kahookcyrillic",1219,"Kappa",922,"Kastrokecyrillic",1182,"Kaverticalstrokecyrillic",1180,"Kcaron",488,"Kcedilla",310,"Kcircle",9408,"Kcommaaccent",310,"Kdotbelow",7730,"Keharmenian",1364,"Kenarmenian",1343,"Khacyrillic",1061,"Kheicoptic",998,"Khook",408,"Kjecyrillic",1036,"Klinebelow",7732,"Kmonospace",65323,"Koppacyrillic",1152,"Koppagreek",990,"Ksicyrillic",1134,"Ksmall",63339,"L",76,"LJ",455,"LL",63167,"Lacute",313,"Lambda",923,"Lcaron",317,"Lcedilla",315,"Lcircle",9409,"Lcircumflexbelow",7740,"Lcommaaccent",315,"Ldot",319,"Ldotaccent",319,"Ldotbelow",7734,"Ldotbelowmacron",7736,"Liwnarmenian",1340,"Lj",456,"Ljecyrillic",1033,"Llinebelow",7738,"Lmonospace",65324,"Lslash",321,"Lslashsmall",63225,"Lsmall",63340,"M",77,"MBsquare",13190,"Macron",63184,"Macronsmall",63407,"Macute",7742,"Mcircle",9410,"Mdotaccent",7744,"Mdotbelow",7746,"Menarmenian",1348,"Mmonospace",65325,"Msmall",63341,"Mturned",412,"Mu",924,"N",78,"NJ",458,"Nacute",323,"Ncaron",327,"Ncedilla",325,"Ncircle",9411,"Ncircumflexbelow",7754,"Ncommaaccent",325,"Ndotaccent",7748,"Ndotbelow",7750,"Nhookleft",413,"Nineroman",8552,"Nj",459,"Njecyrillic",1034,"Nlinebelow",7752,"Nmonospace",65326,"Nowarmenian",1350,"Nsmall",63342,"Ntilde",209,"Ntildesmall",63473,"Nu",925,"O",79,"OE",338,"OEsmall",63226,"Oacute",211,"Oacutesmall",63475,"Obarredcyrillic",1256,"Obarreddieresiscyrillic",1258,"Obreve",334,"Ocaron",465,"Ocenteredtilde",415,"Ocircle",9412,"Ocircumflex",212,"Ocircumflexacute",7888,"Ocircumflexdotbelow",7896,"Ocircumflexgrave",7890,"Ocircumflexhookabove",7892,"Ocircumflexsmall",63476,"Ocircumflextilde",7894,"Ocyrillic",1054,"Odblacute",336,"Odblgrave",524,"Odieresis",214,"Odieresiscyrillic",1254,"Odieresissmall",63478,"Odotbelow",7884,"Ogoneksmall",63227,"Ograve",210,"Ogravesmall",63474,"Oharmenian",1365,"Ohm",8486,"Ohookabove",7886,"Ohorn",416,"Ohornacute",7898,"Ohorndotbelow",7906,"Ohorngrave",7900,"Ohornhookabove",7902,"Ohorntilde",7904,"Ohungarumlaut",336,"Oi",418,"Oinvertedbreve",526,"Omacron",332,"Omacronacute",7762,"Omacrongrave",7760,"Omega",8486,"Omegacyrillic",1120,"Omegagreek",937,"Omegaroundcyrillic",1146,"Omegatitlocyrillic",1148,"Omegatonos",911,"Omicron",927,"Omicrontonos",908,"Omonospace",65327,"Oneroman",8544,"Oogonek",490,"Oogonekmacron",492,"Oopen",390,"Oslash",216,"Oslashacute",510,"Oslashsmall",63480,"Osmall",63343,"Ostrokeacute",510,"Otcyrillic",1150,"Otilde",213,"Otildeacute",7756,"Otildedieresis",7758,"Otildesmall",63477,"P",80,"Pacute",7764,"Pcircle",9413,"Pdotaccent",7766,"Pecyrillic",1055,"Peharmenian",1354,"Pemiddlehookcyrillic",1190,"Phi",934,"Phook",420,"Pi",928,"Piwrarmenian",1363,"Pmonospace",65328,"Psi",936,"Psicyrillic",1136,"Psmall",63344,"Q",81,"Qcircle",9414,"Qmonospace",65329,"Qsmall",63345,"R",82,"Raarmenian",1356,"Racute",340,"Rcaron",344,"Rcedilla",342,"Rcircle",9415,"Rcommaaccent",342,"Rdblgrave",528,"Rdotaccent",7768,"Rdotbelow",7770,"Rdotbelowmacron",7772,"Reharmenian",1360,"Rfraktur",8476,"Rho",929,"Ringsmall",63228,"Rinvertedbreve",530,"Rlinebelow",7774,"Rmonospace",65330,"Rsmall",63346,"Rsmallinverted",641,"Rsmallinvertedsuperior",694,"S",83,"SF010000",9484,"SF020000",9492,"SF030000",9488,"SF040000",9496,"SF050000",9532,"SF060000",9516,"SF070000",9524,"SF080000",9500,"SF090000",9508,"SF100000",9472,"SF110000",9474,"SF190000",9569,"SF200000",9570,"SF210000",9558,"SF220000",9557,"SF230000",9571,"SF240000",9553,"SF250000",9559,"SF260000",9565,"SF270000",9564,"SF280000",9563,"SF360000",9566,"SF370000",9567,"SF380000",9562,"SF390000",9556,"SF400000",9577,"SF410000",9574,"SF420000",9568,"SF430000",9552,"SF440000",9580,"SF450000",9575,"SF460000",9576,"SF470000",9572,"SF480000",9573,"SF490000",9561,"SF500000",9560,"SF510000",9554,"SF520000",9555,"SF530000",9579,"SF540000",9578,"Sacute",346,"Sacutedotaccent",7780,"Sampigreek",992,"Scaron",352,"Scarondotaccent",7782,"Scaronsmall",63229,"Scedilla",350,"Schwa",399,"Schwacyrillic",1240,"Schwadieresiscyrillic",1242,"Scircle",9416,"Scircumflex",348,"Scommaaccent",536,"Sdotaccent",7776,"Sdotbelow",7778,"Sdotbelowdotaccent",7784,"Seharmenian",1357,"Sevenroman",8550,"Shaarmenian",1351,"Shacyrillic",1064,"Shchacyrillic",1065,"Sheicoptic",994,"Shhacyrillic",1210,"Shimacoptic",1004,"Sigma",931,"Sixroman",8549,"Smonospace",65331,"Softsigncyrillic",1068,"Ssmall",63347,"Stigmagreek",986,"T",84,"Tau",932,"Tbar",358,"Tcaron",356,"Tcedilla",354,"Tcircle",9417,"Tcircumflexbelow",7792,"Tcommaaccent",354,"Tdotaccent",7786,"Tdotbelow",7788,"Tecyrillic",1058,"Tedescendercyrillic",1196,"Tenroman",8553,"Tetsecyrillic",1204,"Theta",920,"Thook",428,"Thorn",222,"Thornsmall",63486,"Threeroman",8546,"Tildesmall",63230,"Tiwnarmenian",1359,"Tlinebelow",7790,"Tmonospace",65332,"Toarmenian",1337,"Tonefive",444,"Tonesix",388,"Tonetwo",423,"Tretroflexhook",430,"Tsecyrillic",1062,"Tshecyrillic",1035,"Tsmall",63348,"Twelveroman",8555,"Tworoman",8545,"U",85,"Uacute",218,"Uacutesmall",63482,"Ubreve",364,"Ucaron",467,"Ucircle",9418,"Ucircumflex",219,"Ucircumflexbelow",7798,"Ucircumflexsmall",63483,"Ucyrillic",1059,"Udblacute",368,"Udblgrave",532,"Udieresis",220,"Udieresisacute",471,"Udieresisbelow",7794,"Udieresiscaron",473,"Udieresiscyrillic",1264,"Udieresisgrave",475,"Udieresismacron",469,"Udieresissmall",63484,"Udotbelow",7908,"Ugrave",217,"Ugravesmall",63481,"Uhookabove",7910,"Uhorn",431,"Uhornacute",7912,"Uhorndotbelow",7920,"Uhorngrave",7914,"Uhornhookabove",7916,"Uhorntilde",7918,"Uhungarumlaut",368,"Uhungarumlautcyrillic",1266,"Uinvertedbreve",534,"Ukcyrillic",1144,"Umacron",362,"Umacroncyrillic",1262,"Umacrondieresis",7802,"Umonospace",65333,"Uogonek",370,"Upsilon",933,"Upsilon1",978,"Upsilonacutehooksymbolgreek",979,"Upsilonafrican",433,"Upsilondieresis",939,"Upsilondieresishooksymbolgreek",980,"Upsilonhooksymbol",978,"Upsilontonos",910,"Uring",366,"Ushortcyrillic",1038,"Usmall",63349,"Ustraightcyrillic",1198,"Ustraightstrokecyrillic",1200,"Utilde",360,"Utildeacute",7800,"Utildebelow",7796,"V",86,"Vcircle",9419,"Vdotbelow",7806,"Vecyrillic",1042,"Vewarmenian",1358,"Vhook",434,"Vmonospace",65334,"Voarmenian",1352,"Vsmall",63350,"Vtilde",7804,"W",87,"Wacute",7810,"Wcircle",9420,"Wcircumflex",372,"Wdieresis",7812,"Wdotaccent",7814,"Wdotbelow",7816,"Wgrave",7808,"Wmonospace",65335,"Wsmall",63351,"X",88,"Xcircle",9421,"Xdieresis",7820,"Xdotaccent",7818,"Xeharmenian",1341,"Xi",926,"Xmonospace",65336,"Xsmall",63352,"Y",89,"Yacute",221,"Yacutesmall",63485,"Yatcyrillic",1122,"Ycircle",9422,"Ycircumflex",374,"Ydieresis",376,"Ydieresissmall",63487,"Ydotaccent",7822,"Ydotbelow",7924,"Yericyrillic",1067,"Yerudieresiscyrillic",1272,"Ygrave",7922,"Yhook",435,"Yhookabove",7926,"Yiarmenian",1349,"Yicyrillic",1031,"Yiwnarmenian",1362,"Ymonospace",65337,"Ysmall",63353,"Ytilde",7928,"Yusbigcyrillic",1130,"Yusbigiotifiedcyrillic",1132,"Yuslittlecyrillic",1126,"Yuslittleiotifiedcyrillic",1128,"Z",90,"Zaarmenian",1334,"Zacute",377,"Zcaron",381,"Zcaronsmall",63231,"Zcircle",9423,"Zcircumflex",7824,"Zdot",379,"Zdotaccent",379,"Zdotbelow",7826,"Zecyrillic",1047,"Zedescendercyrillic",1176,"Zedieresiscyrillic",1246,"Zeta",918,"Zhearmenian",1338,"Zhebrevecyrillic",1217,"Zhecyrillic",1046,"Zhedescendercyrillic",1174,"Zhedieresiscyrillic",1244,"Zlinebelow",7828,"Zmonospace",65338,"Zsmall",63354,"Zstroke",437,"a",97,"aabengali",2438,"aacute",225,"aadeva",2310,"aagujarati",2694,"aagurmukhi",2566,"aamatragurmukhi",2622,"aarusquare",13059,"aavowelsignbengali",2494,"aavowelsigndeva",2366,"aavowelsigngujarati",2750,"abbreviationmarkarmenian",1375,"abbreviationsigndeva",2416,"abengali",2437,"abopomofo",12570,"abreve",259,"abreveacute",7855,"abrevecyrillic",1233,"abrevedotbelow",7863,"abrevegrave",7857,"abrevehookabove",7859,"abrevetilde",7861,"acaron",462,"acircle",9424,"acircumflex",226,"acircumflexacute",7845,"acircumflexdotbelow",7853,"acircumflexgrave",7847,"acircumflexhookabove",7849,"acircumflextilde",7851,"acute",180,"acutebelowcmb",791,"acutecmb",769,"acutecomb",769,"acutedeva",2388,"acutelowmod",719,"acutetonecmb",833,"acyrillic",1072,"adblgrave",513,"addakgurmukhi",2673,"adeva",2309,"adieresis",228,"adieresiscyrillic",1235,"adieresismacron",479,"adotbelow",7841,"adotmacron",481,"ae",230,"aeacute",509,"aekorean",12624,"aemacron",483,"afii00208",8213,"afii08941",8356,"afii10017",1040,"afii10018",1041,"afii10019",1042,"afii10020",1043,"afii10021",1044,"afii10022",1045,"afii10023",1025,"afii10024",1046,"afii10025",1047,"afii10026",1048,"afii10027",1049,"afii10028",1050,"afii10029",1051,"afii10030",1052,"afii10031",1053,"afii10032",1054,"afii10033",1055,"afii10034",1056,"afii10035",1057,"afii10036",1058,"afii10037",1059,"afii10038",1060,"afii10039",1061,"afii10040",1062,"afii10041",1063,"afii10042",1064,"afii10043",1065,"afii10044",1066,"afii10045",1067,"afii10046",1068,"afii10047",1069,"afii10048",1070,"afii10049",1071,"afii10050",1168,"afii10051",1026,"afii10052",1027,"afii10053",1028,"afii10054",1029,"afii10055",1030,"afii10056",1031,"afii10057",1032,"afii10058",1033,"afii10059",1034,"afii10060",1035,"afii10061",1036,"afii10062",1038,"afii10063",63172,"afii10064",63173,"afii10065",1072,"afii10066",1073,"afii10067",1074,"afii10068",1075,"afii10069",1076,"afii10070",1077,"afii10071",1105,"afii10072",1078,"afii10073",1079,"afii10074",1080,"afii10075",1081,"afii10076",1082,"afii10077",1083,"afii10078",1084,"afii10079",1085,"afii10080",1086,"afii10081",1087,"afii10082",1088,"afii10083",1089,"afii10084",1090,"afii10085",1091,"afii10086",1092,"afii10087",1093,"afii10088",1094,"afii10089",1095,"afii10090",1096,"afii10091",1097,"afii10092",1098,"afii10093",1099,"afii10094",1100,"afii10095",1101,"afii10096",1102,"afii10097",1103,"afii10098",1169,"afii10099",1106,"afii10100",1107,"afii10101",1108,"afii10102",1109,"afii10103",1110,"afii10104",1111,"afii10105",1112,"afii10106",1113,"afii10107",1114,"afii10108",1115,"afii10109",1116,"afii10110",1118,"afii10145",1039,"afii10146",1122,"afii10147",1138,"afii10148",1140,"afii10192",63174,"afii10193",1119,"afii10194",1123,"afii10195",1139,"afii10196",1141,"afii10831",63175,"afii10832",63176,"afii10846",1241,"afii299",8206,"afii300",8207,"afii301",8205,"afii57381",1642,"afii57388",1548,"afii57392",1632,"afii57393",1633,"afii57394",1634,"afii57395",1635,"afii57396",1636,"afii57397",1637,"afii57398",1638,"afii57399",1639,"afii57400",1640,"afii57401",1641,"afii57403",1563,"afii57407",1567,"afii57409",1569,"afii57410",1570,"afii57411",1571,"afii57412",1572,"afii57413",1573,"afii57414",1574,"afii57415",1575,"afii57416",1576,"afii57417",1577,"afii57418",1578,"afii57419",1579,"afii57420",1580,"afii57421",1581,"afii57422",1582,"afii57423",1583,"afii57424",1584,"afii57425",1585,"afii57426",1586,"afii57427",1587,"afii57428",1588,"afii57429",1589,"afii57430",1590,"afii57431",1591,"afii57432",1592,"afii57433",1593,"afii57434",1594,"afii57440",1600,"afii57441",1601,"afii57442",1602,"afii57443",1603,"afii57444",1604,"afii57445",1605,"afii57446",1606,"afii57448",1608,"afii57449",1609,"afii57450",1610,"afii57451",1611,"afii57452",1612,"afii57453",1613,"afii57454",1614,"afii57455",1615,"afii57456",1616,"afii57457",1617,"afii57458",1618,"afii57470",1607,"afii57505",1700,"afii57506",1662,"afii57507",1670,"afii57508",1688,"afii57509",1711,"afii57511",1657,"afii57512",1672,"afii57513",1681,"afii57514",1722,"afii57519",1746,"afii57534",1749,"afii57636",8362,"afii57645",1470,"afii57658",1475,"afii57664",1488,"afii57665",1489,"afii57666",1490,"afii57667",1491,"afii57668",1492,"afii57669",1493,"afii57670",1494,"afii57671",1495,"afii57672",1496,"afii57673",1497,"afii57674",1498,"afii57675",1499,"afii57676",1500,"afii57677",1501,"afii57678",1502,"afii57679",1503,"afii57680",1504,"afii57681",1505,"afii57682",1506,"afii57683",1507,"afii57684",1508,"afii57685",1509,"afii57686",1510,"afii57687",1511,"afii57688",1512,"afii57689",1513,"afii57690",1514,"afii57694",64298,"afii57695",64299,"afii57700",64331,"afii57705",64287,"afii57716",1520,"afii57717",1521,"afii57718",1522,"afii57723",64309,"afii57793",1460,"afii57794",1461,"afii57795",1462,"afii57796",1467,"afii57797",1464,"afii57798",1463,"afii57799",1456,"afii57800",1458,"afii57801",1457,"afii57802",1459,"afii57803",1474,"afii57804",1473,"afii57806",1465,"afii57807",1468,"afii57839",1469,"afii57841",1471,"afii57842",1472,"afii57929",700,"afii61248",8453,"afii61289",8467,"afii61352",8470,"afii61573",8236,"afii61574",8237,"afii61575",8238,"afii61664",8204,"afii63167",1645,"afii64937",701,"agrave",224,"agujarati",2693,"agurmukhi",2565,"ahiragana",12354,"ahookabove",7843,"aibengali",2448,"aibopomofo",12574,"aideva",2320,"aiecyrillic",1237,"aigujarati",2704,"aigurmukhi",2576,"aimatragurmukhi",2632,"ainarabic",1593,"ainfinalarabic",65226,"aininitialarabic",65227,"ainmedialarabic",65228,"ainvertedbreve",515,"aivowelsignbengali",2504,"aivowelsigndeva",2376,"aivowelsigngujarati",2760,"akatakana",12450,"akatakanahalfwidth",65393,"akorean",12623,"alef",1488,"alefarabic",1575,"alefdageshhebrew",64304,"aleffinalarabic",65166,"alefhamzaabovearabic",1571,"alefhamzaabovefinalarabic",65156,"alefhamzabelowarabic",1573,"alefhamzabelowfinalarabic",65160,"alefhebrew",1488,"aleflamedhebrew",64335,"alefmaddaabovearabic",1570,"alefmaddaabovefinalarabic",65154,"alefmaksuraarabic",1609,"alefmaksurafinalarabic",65264,"alefmaksurainitialarabic",65267,"alefmaksuramedialarabic",65268,"alefpatahhebrew",64302,"alefqamatshebrew",64303,"aleph",8501,"allequal",8780,"alpha",945,"alphatonos",940,"amacron",257,"amonospace",65345,"ampersand",38,"ampersandmonospace",65286,"ampersandsmall",63270,"amsquare",13250,"anbopomofo",12578,"angbopomofo",12580,"angbracketleft",12296,"angbracketright",12297,"angkhankhuthai",3674,"angle",8736,"anglebracketleft",12296,"anglebracketleftvertical",65087,"anglebracketright",12297,"anglebracketrightvertical",65088,"angleleft",9001,"angleright",9002,"angstrom",8491,"anoteleia",903,"anudattadeva",2386,"anusvarabengali",2434,"anusvaradeva",2306,"anusvaragujarati",2690,"aogonek",261,"apaatosquare",13056,"aparen",9372,"apostrophearmenian",1370,"apostrophemod",700,"apple",63743,"approaches",8784,"approxequal",8776,"approxequalorimage",8786,"approximatelyequal",8773,"araeaekorean",12686,"araeakorean",12685,"arc",8978,"arighthalfring",7834,"aring",229,"aringacute",507,"aringbelow",7681,"arrowboth",8596,"arrowdashdown",8675,"arrowdashleft",8672,"arrowdashright",8674,"arrowdashup",8673,"arrowdblboth",8660,"arrowdbldown",8659,"arrowdblleft",8656,"arrowdblright",8658,"arrowdblup",8657,"arrowdown",8595,"arrowdownleft",8601,"arrowdownright",8600,"arrowdownwhite",8681,"arrowheaddownmod",709,"arrowheadleftmod",706,"arrowheadrightmod",707,"arrowheadupmod",708,"arrowhorizex",63719,"arrowleft",8592,"arrowleftdbl",8656,"arrowleftdblstroke",8653,"arrowleftoverright",8646,"arrowleftwhite",8678,"arrowright",8594,"arrowrightdblstroke",8655,"arrowrightheavy",10142,"arrowrightoverleft",8644,"arrowrightwhite",8680,"arrowtableft",8676,"arrowtabright",8677,"arrowup",8593,"arrowupdn",8597,"arrowupdnbse",8616,"arrowupdownbase",8616,"arrowupleft",8598,"arrowupleftofdown",8645,"arrowupright",8599,"arrowupwhite",8679,"arrowvertex",63718,"asciicircum",94,"asciicircummonospace",65342,"asciitilde",126,"asciitildemonospace",65374,"ascript",593,"ascriptturned",594,"asmallhiragana",12353,"asmallkatakana",12449,"asmallkatakanahalfwidth",65383,"asterisk",42,"asteriskaltonearabic",1645,"asteriskarabic",1645,"asteriskmath",8727,"asteriskmonospace",65290,"asterisksmall",65121,"asterism",8258,"asuperior",63209,"asymptoticallyequal",8771,"at",64,"atilde",227,"atmonospace",65312,"atsmall",65131,"aturned",592,"aubengali",2452,"aubopomofo",12576,"audeva",2324,"augujarati",2708,"augurmukhi",2580,"aulengthmarkbengali",2519,"aumatragurmukhi",2636,"auvowelsignbengali",2508,"auvowelsigndeva",2380,"auvowelsigngujarati",2764,"avagrahadeva",2365,"aybarmenian",1377,"ayin",1506,"ayinaltonehebrew",64288,"ayinhebrew",1506,"b",98,"babengali",2476,"backslash",92,"backslashmonospace",65340,"badeva",2348,"bagujarati",2732,"bagurmukhi",2604,"bahiragana",12400,"bahtthai",3647,"bakatakana",12496,"bar",124,"barmonospace",65372,"bbopomofo",12549,"bcircle",9425,"bdotaccent",7683,"bdotbelow",7685,"beamedsixteenthnotes",9836,"because",8757,"becyrillic",1073,"beharabic",1576,"behfinalarabic",65168,"behinitialarabic",65169,"behiragana",12409,"behmedialarabic",65170,"behmeeminitialarabic",64671,"behmeemisolatedarabic",64520,"behnoonfinalarabic",64621,"bekatakana",12505,"benarmenian",1378,"bet",1489,"beta",946,"betasymbolgreek",976,"betdagesh",64305,"betdageshhebrew",64305,"bethebrew",1489,"betrafehebrew",64332,"bhabengali",2477,"bhadeva",2349,"bhagujarati",2733,"bhagurmukhi",2605,"bhook",595,"bihiragana",12403,"bikatakana",12499,"bilabialclick",664,"bindigurmukhi",2562,"birusquare",13105,"blackcircle",9679,"blackdiamond",9670,"blackdownpointingtriangle",9660,"blackleftpointingpointer",9668,"blackleftpointingtriangle",9664,"blacklenticularbracketleft",12304,"blacklenticularbracketleftvertical",65083,"blacklenticularbracketright",12305,"blacklenticularbracketrightvertical",65084,"blacklowerlefttriangle",9699,"blacklowerrighttriangle",9698,"blackrectangle",9644,"blackrightpointingpointer",9658,"blackrightpointingtriangle",9654,"blacksmallsquare",9642,"blacksmilingface",9787,"blacksquare",9632,"blackstar",9733,"blackupperlefttriangle",9700,"blackupperrighttriangle",9701,"blackuppointingsmalltriangle",9652,"blackuppointingtriangle",9650,"blank",9251,"blinebelow",7687,"block",9608,"bmonospace",65346,"bobaimaithai",3610,"bohiragana",12412,"bokatakana",12508,"bparen",9373,"bqsquare",13251,"braceex",63732,"braceleft",123,"braceleftbt",63731,"braceleftmid",63730,"braceleftmonospace",65371,"braceleftsmall",65115,"bracelefttp",63729,"braceleftvertical",65079,"braceright",125,"bracerightbt",63742,"bracerightmid",63741,"bracerightmonospace",65373,"bracerightsmall",65116,"bracerighttp",63740,"bracerightvertical",65080,"bracketleft",91,"bracketleftbt",63728,"bracketleftex",63727,"bracketleftmonospace",65339,"bracketlefttp",63726,"bracketright",93,"bracketrightbt",63739,"bracketrightex",63738,"bracketrightmonospace",65341,"bracketrighttp",63737,"breve",728,"brevebelowcmb",814,"brevecmb",774,"breveinvertedbelowcmb",815,"breveinvertedcmb",785,"breveinverteddoublecmb",865,"bridgebelowcmb",810,"bridgeinvertedbelowcmb",826,"brokenbar",166,"bstroke",384,"bsuperior",63210,"btopbar",387,"buhiragana",12406,"bukatakana",12502,"bullet",8226,"bulletinverse",9688,"bulletoperator",8729,"bullseye",9678,"c",99,"caarmenian",1390,"cabengali",2458,"cacute",263,"cadeva",2330,"cagujarati",2714,"cagurmukhi",2586,"calsquare",13192,"candrabindubengali",2433,"candrabinducmb",784,"candrabindudeva",2305,"candrabindugujarati",2689,"capslock",8682,"careof",8453,"caron",711,"caronbelowcmb",812,"caroncmb",780,"carriagereturn",8629,"cbopomofo",12568,"ccaron",269,"ccedilla",231,"ccedillaacute",7689,"ccircle",9426,"ccircumflex",265,"ccurl",597,"cdot",267,"cdotaccent",267,"cdsquare",13253,"cedilla",184,"cedillacmb",807,"cent",162,"centigrade",8451,"centinferior",63199,"centmonospace",65504,"centoldstyle",63394,"centsuperior",63200,"chaarmenian",1401,"chabengali",2459,"chadeva",2331,"chagujarati",2715,"chagurmukhi",2587,"chbopomofo",12564,"cheabkhasiancyrillic",1213,"checkmark",10003,"checyrillic",1095,"chedescenderabkhasiancyrillic",1215,"chedescendercyrillic",1207,"chedieresiscyrillic",1269,"cheharmenian",1395,"chekhakassiancyrillic",1228,"cheverticalstrokecyrillic",1209,"chi",967,"chieuchacirclekorean",12919,"chieuchaparenkorean",12823,"chieuchcirclekorean",12905,"chieuchkorean",12618,"chieuchparenkorean",12809,"chochangthai",3594,"chochanthai",3592,"chochingthai",3593,"chochoethai",3596,"chook",392,"cieucacirclekorean",12918,"cieucaparenkorean",12822,"cieuccirclekorean",12904,"cieuckorean",12616,"cieucparenkorean",12808,"cieucuparenkorean",12828,"circle",9675,"circlecopyrt",169,"circlemultiply",8855,"circleot",8857,"circleplus",8853,"circlepostalmark",12342,"circlewithlefthalfblack",9680,"circlewithrighthalfblack",9681,"circumflex",710,"circumflexbelowcmb",813,"circumflexcmb",770,"clear",8999,"clickalveolar",450,"clickdental",448,"clicklateral",449,"clickretroflex",451,"club",9827,"clubsuitblack",9827,"clubsuitwhite",9831,"cmcubedsquare",13220,"cmonospace",65347,"cmsquaredsquare",13216,"coarmenian",1409,"colon",58,"colonmonetary",8353,"colonmonospace",65306,"colonsign",8353,"colonsmall",65109,"colontriangularhalfmod",721,"colontriangularmod",720,"comma",44,"commaabovecmb",787,"commaaboverightcmb",789,"commaaccent",63171,"commaarabic",1548,"commaarmenian",1373,"commainferior",63201,"commamonospace",65292,"commareversedabovecmb",788,"commareversedmod",701,"commasmall",65104,"commasuperior",63202,"commaturnedabovecmb",786,"commaturnedmod",699,"compass",9788,"congruent",8773,"contourintegral",8750,"control",8963,"controlACK",6,"controlBEL",7,"controlBS",8,"controlCAN",24,"controlCR",13,"controlDC1",17,"controlDC2",18,"controlDC3",19,"controlDC4",20,"controlDEL",127,"controlDLE",16,"controlEM",25,"controlENQ",5,"controlEOT",4,"controlESC",27,"controlETB",23,"controlETX",3,"controlFF",12,"controlFS",28,"controlGS",29,"controlHT",9,"controlLF",10,"controlNAK",21,"controlNULL",0,"controlRS",30,"controlSI",15,"controlSO",14,"controlSOT",2,"controlSTX",1,"controlSUB",26,"controlSYN",22,"controlUS",31,"controlVT",11,"copyright",169,"copyrightsans",63721,"copyrightserif",63193,"cornerbracketleft",12300,"cornerbracketlefthalfwidth",65378,"cornerbracketleftvertical",65089,"cornerbracketright",12301,"cornerbracketrighthalfwidth",65379,"cornerbracketrightvertical",65090,"corporationsquare",13183,"cosquare",13255,"coverkgsquare",13254,"cparen",9374,"cruzeiro",8354,"cstretched",663,"curlyand",8911,"curlyor",8910,"currency",164,"cyrBreve",63185,"cyrFlex",63186,"cyrbreve",63188,"cyrflex",63189,"d",100,"daarmenian",1380,"dabengali",2470,"dadarabic",1590,"dadeva",2342,"dadfinalarabic",65214,"dadinitialarabic",65215,"dadmedialarabic",65216,"dagesh",1468,"dageshhebrew",1468,"dagger",8224,"daggerdbl",8225,"dagujarati",2726,"dagurmukhi",2598,"dahiragana",12384,"dakatakana",12480,"dalarabic",1583,"dalet",1491,"daletdagesh",64307,"daletdageshhebrew",64307,"dalethebrew",1491,"dalfinalarabic",65194,"dammaarabic",1615,"dammalowarabic",1615,"dammatanaltonearabic",1612,"dammatanarabic",1612,"danda",2404,"dargahebrew",1447,"dargalefthebrew",1447,"dasiapneumatacyrilliccmb",1157,"dblGrave",63187,"dblanglebracketleft",12298,"dblanglebracketleftvertical",65085,"dblanglebracketright",12299,"dblanglebracketrightvertical",65086,"dblarchinvertedbelowcmb",811,"dblarrowleft",8660,"dblarrowright",8658,"dbldanda",2405,"dblgrave",63190,"dblgravecmb",783,"dblintegral",8748,"dbllowline",8215,"dbllowlinecmb",819,"dbloverlinecmb",831,"dblprimemod",698,"dblverticalbar",8214,"dblverticallineabovecmb",782,"dbopomofo",12553,"dbsquare",13256,"dcaron",271,"dcedilla",7697,"dcircle",9427,"dcircumflexbelow",7699,"dcroat",273,"ddabengali",2465,"ddadeva",2337,"ddagujarati",2721,"ddagurmukhi",2593,"ddalarabic",1672,"ddalfinalarabic",64393,"dddhadeva",2396,"ddhabengali",2466,"ddhadeva",2338,"ddhagujarati",2722,"ddhagurmukhi",2594,"ddotaccent",7691,"ddotbelow",7693,"decimalseparatorarabic",1643,"decimalseparatorpersian",1643,"decyrillic",1076,"degree",176,"dehihebrew",1453,"dehiragana",12391,"deicoptic",1007,"dekatakana",12487,"deleteleft",9003,"deleteright",8998,"delta",948,"deltaturned",397,"denominatorminusonenumeratorbengali",2552,"dezh",676,"dhabengali",2471,"dhadeva",2343,"dhagujarati",2727,"dhagurmukhi",2599,"dhook",599,"dialytikatonos",901,"dialytikatonoscmb",836,"diamond",9830,"diamondsuitwhite",9826,"dieresis",168,"dieresisacute",63191,"dieresisbelowcmb",804,"dieresiscmb",776,"dieresisgrave",63192,"dieresistonos",901,"dihiragana",12386,"dikatakana",12482,"dittomark",12291,"divide",247,"divides",8739,"divisionslash",8725,"djecyrillic",1106,"dkshade",9619,"dlinebelow",7695,"dlsquare",13207,"dmacron",273,"dmonospace",65348,"dnblock",9604,"dochadathai",3598,"dodekthai",3604,"dohiragana",12393,"dokatakana",12489,"dollar",36,"dollarinferior",63203,"dollarmonospace",65284,"dollaroldstyle",63268,"dollarsmall",65129,"dollarsuperior",63204,"dong",8363,"dorusquare",13094,"dotaccent",729,"dotaccentcmb",775,"dotbelowcmb",803,"dotbelowcomb",803,"dotkatakana",12539,"dotlessi",305,"dotlessj",63166,"dotlessjstrokehook",644,"dotmath",8901,"dottedcircle",9676,"doubleyodpatah",64287,"doubleyodpatahhebrew",64287,"downtackbelowcmb",798,"downtackmod",725,"dparen",9375,"dsuperior",63211,"dtail",598,"dtopbar",396,"duhiragana",12389,"dukatakana",12485,"dz",499,"dzaltone",675,"dzcaron",454,"dzcurl",677,"dzeabkhasiancyrillic",1249,"dzecyrillic",1109,"dzhecyrillic",1119,"e",101,"eacute",233,"earth",9793,"ebengali",2447,"ebopomofo",12572,"ebreve",277,"ecandradeva",2317,"ecandragujarati",2701,"ecandravowelsigndeva",2373,"ecandravowelsigngujarati",2757,"ecaron",283,"ecedillabreve",7709,"echarmenian",1381,"echyiwnarmenian",1415,"ecircle",9428,"ecircumflex",234,"ecircumflexacute",7871,"ecircumflexbelow",7705,"ecircumflexdotbelow",7879,"ecircumflexgrave",7873,"ecircumflexhookabove",7875,"ecircumflextilde",7877,"ecyrillic",1108,"edblgrave",517,"edeva",2319,"edieresis",235,"edot",279,"edotaccent",279,"edotbelow",7865,"eegurmukhi",2575,"eematragurmukhi",2631,"efcyrillic",1092,"egrave",232,"egujarati",2703,"eharmenian",1383,"ehbopomofo",12573,"ehiragana",12360,"ehookabove",7867,"eibopomofo",12575,"eight",56,"eightarabic",1640,"eightbengali",2542,"eightcircle",9319,"eightcircleinversesansserif",10129,"eightdeva",2414,"eighteencircle",9329,"eighteenparen",9349,"eighteenperiod",9369,"eightgujarati",2798,"eightgurmukhi",2670,"eighthackarabic",1640,"eighthangzhou",12328,"eighthnotebeamed",9835,"eightideographicparen",12839,"eightinferior",8328,"eightmonospace",65304,"eightoldstyle",63288,"eightparen",9339,"eightperiod",9359,"eightpersian",1784,"eightroman",8567,"eightsuperior",8312,"eightthai",3672,"einvertedbreve",519,"eiotifiedcyrillic",1125,"ekatakana",12456,"ekatakanahalfwidth",65396,"ekonkargurmukhi",2676,"ekorean",12628,"elcyrillic",1083,"element",8712,"elevencircle",9322,"elevenparen",9342,"elevenperiod",9362,"elevenroman",8570,"ellipsis",8230,"ellipsisvertical",8942,"emacron",275,"emacronacute",7703,"emacrongrave",7701,"emcyrillic",1084,"emdash",8212,"emdashvertical",65073,"emonospace",65349,"emphasismarkarmenian",1371,"emptyset",8709,"enbopomofo",12579,"encyrillic",1085,"endash",8211,"endashvertical",65074,"endescendercyrillic",1187,"eng",331,"engbopomofo",12581,"enghecyrillic",1189,"enhookcyrillic",1224,"enspace",8194,"eogonek",281,"eokorean",12627,"eopen",603,"eopenclosed",666,"eopenreversed",604,"eopenreversedclosed",606,"eopenreversedhook",605,"eparen",9376,"epsilon",949,"epsilontonos",941,"equal",61,"equalmonospace",65309,"equalsmall",65126,"equalsuperior",8316,"equivalence",8801,"erbopomofo",12582,"ercyrillic",1088,"ereversed",600,"ereversedcyrillic",1101,"escyrillic",1089,"esdescendercyrillic",1195,"esh",643,"eshcurl",646,"eshortdeva",2318,"eshortvowelsigndeva",2374,"eshreversedloop",426,"eshsquatreversed",645,"esmallhiragana",12359,"esmallkatakana",12455,"esmallkatakanahalfwidth",65386,"estimated",8494,"esuperior",63212,"eta",951,"etarmenian",1384,"etatonos",942,"eth",240,"etilde",7869,"etildebelow",7707,"etnahtafoukhhebrew",1425,"etnahtafoukhlefthebrew",1425,"etnahtahebrew",1425,"etnahtalefthebrew",1425,"eturned",477,"eukorean",12641,"euro",8364,"evowelsignbengali",2503,"evowelsigndeva",2375,"evowelsigngujarati",2759,"exclam",33,"exclamarmenian",1372,"exclamdbl",8252,"exclamdown",161,"exclamdownsmall",63393,"exclammonospace",65281,"exclamsmall",63265,"existential",8707,"ezh",658,"ezhcaron",495,"ezhcurl",659,"ezhreversed",441,"ezhtail",442,"f",102,"fadeva",2398,"fagurmukhi",2654,"fahrenheit",8457,"fathaarabic",1614,"fathalowarabic",1614,"fathatanarabic",1611,"fbopomofo",12552,"fcircle",9429,"fdotaccent",7711,"feharabic",1601,"feharmenian",1414,"fehfinalarabic",65234,"fehinitialarabic",65235,"fehmedialarabic",65236,"feicoptic",997,"female",9792,"ff",64256,"f_f",64256,"ffi",64259,"f_f_i",64259,"ffl",64260,"f_f_l",64260,"fi",64257,"f_i",64257,"fifteencircle",9326,"fifteenparen",9346,"fifteenperiod",9366,"figuredash",8210,"filledbox",9632,"filledrect",9644,"finalkaf",1498,"finalkafdagesh",64314,"finalkafdageshhebrew",64314,"finalkafhebrew",1498,"finalmem",1501,"finalmemhebrew",1501,"finalnun",1503,"finalnunhebrew",1503,"finalpe",1507,"finalpehebrew",1507,"finaltsadi",1509,"finaltsadihebrew",1509,"firsttonechinese",713,"fisheye",9673,"fitacyrillic",1139,"five",53,"fivearabic",1637,"fivebengali",2539,"fivecircle",9316,"fivecircleinversesansserif",10126,"fivedeva",2411,"fiveeighths",8541,"fivegujarati",2795,"fivegurmukhi",2667,"fivehackarabic",1637,"fivehangzhou",12325,"fiveideographicparen",12836,"fiveinferior",8325,"fivemonospace",65301,"fiveoldstyle",63285,"fiveparen",9336,"fiveperiod",9356,"fivepersian",1781,"fiveroman",8564,"fivesuperior",8309,"fivethai",3669,"fl",64258,"f_l",64258,"florin",402,"fmonospace",65350,"fmsquare",13209,"fofanthai",3615,"fofathai",3613,"fongmanthai",3663,"forall",8704,"four",52,"fourarabic",1636,"fourbengali",2538,"fourcircle",9315,"fourcircleinversesansserif",10125,"fourdeva",2410,"fourgujarati",2794,"fourgurmukhi",2666,"fourhackarabic",1636,"fourhangzhou",12324,"fourideographicparen",12835,"fourinferior",8324,"fourmonospace",65300,"fournumeratorbengali",2551,"fouroldstyle",63284,"fourparen",9335,"fourperiod",9355,"fourpersian",1780,"fourroman",8563,"foursuperior",8308,"fourteencircle",9325,"fourteenparen",9345,"fourteenperiod",9365,"fourthai",3668,"fourthtonechinese",715,"fparen",9377,"fraction",8260,"franc",8355,"g",103,"gabengali",2455,"gacute",501,"gadeva",2327,"gafarabic",1711,"gaffinalarabic",64403,"gafinitialarabic",64404,"gafmedialarabic",64405,"gagujarati",2711,"gagurmukhi",2583,"gahiragana",12364,"gakatakana",12460,"gamma",947,"gammalatinsmall",611,"gammasuperior",736,"gangiacoptic",1003,"gbopomofo",12557,"gbreve",287,"gcaron",487,"gcedilla",291,"gcircle",9430,"gcircumflex",285,"gcommaaccent",291,"gdot",289,"gdotaccent",289,"gecyrillic",1075,"gehiragana",12370,"gekatakana",12466,"geometricallyequal",8785,"gereshaccenthebrew",1436,"gereshhebrew",1523,"gereshmuqdamhebrew",1437,"germandbls",223,"gershayimaccenthebrew",1438,"gershayimhebrew",1524,"getamark",12307,"ghabengali",2456,"ghadarmenian",1394,"ghadeva",2328,"ghagujarati",2712,"ghagurmukhi",2584,"ghainarabic",1594,"ghainfinalarabic",65230,"ghaininitialarabic",65231,"ghainmedialarabic",65232,"ghemiddlehookcyrillic",1173,"ghestrokecyrillic",1171,"gheupturncyrillic",1169,"ghhadeva",2394,"ghhagurmukhi",2650,"ghook",608,"ghzsquare",13203,"gihiragana",12366,"gikatakana",12462,"gimarmenian",1379,"gimel",1490,"gimeldagesh",64306,"gimeldageshhebrew",64306,"gimelhebrew",1490,"gjecyrillic",1107,"glottalinvertedstroke",446,"glottalstop",660,"glottalstopinverted",662,"glottalstopmod",704,"glottalstopreversed",661,"glottalstopreversedmod",705,"glottalstopreversedsuperior",740,"glottalstopstroke",673,"glottalstopstrokereversed",674,"gmacron",7713,"gmonospace",65351,"gohiragana",12372,"gokatakana",12468,"gparen",9378,"gpasquare",13228,"gradient",8711,"grave",96,"gravebelowcmb",790,"gravecmb",768,"gravecomb",768,"gravedeva",2387,"gravelowmod",718,"gravemonospace",65344,"gravetonecmb",832,"greater",62,"greaterequal",8805,"greaterequalorless",8923,"greatermonospace",65310,"greaterorequivalent",8819,"greaterorless",8823,"greateroverequal",8807,"greatersmall",65125,"gscript",609,"gstroke",485,"guhiragana",12368,"guillemotleft",171,"guillemotright",187,"guilsinglleft",8249,"guilsinglright",8250,"gukatakana",12464,"guramusquare",13080,"gysquare",13257,"h",104,"haabkhasiancyrillic",1193,"haaltonearabic",1729,"habengali",2489,"hadescendercyrillic",1203,"hadeva",2361,"hagujarati",2745,"hagurmukhi",2617,"haharabic",1581,"hahfinalarabic",65186,"hahinitialarabic",65187,"hahiragana",12399,"hahmedialarabic",65188,"haitusquare",13098,"hakatakana",12495,"hakatakanahalfwidth",65418,"halantgurmukhi",2637,"hamzaarabic",1569,"hamzalowarabic",1569,"hangulfiller",12644,"hardsigncyrillic",1098,"harpoonleftbarbup",8636,"harpoonrightbarbup",8640,"hasquare",13258,"hatafpatah",1458,"hatafpatah16",1458,"hatafpatah23",1458,"hatafpatah2f",1458,"hatafpatahhebrew",1458,"hatafpatahnarrowhebrew",1458,"hatafpatahquarterhebrew",1458,"hatafpatahwidehebrew",1458,"hatafqamats",1459,"hatafqamats1b",1459,"hatafqamats28",1459,"hatafqamats34",1459,"hatafqamatshebrew",1459,"hatafqamatsnarrowhebrew",1459,"hatafqamatsquarterhebrew",1459,"hatafqamatswidehebrew",1459,"hatafsegol",1457,"hatafsegol17",1457,"hatafsegol24",1457,"hatafsegol30",1457,"hatafsegolhebrew",1457,"hatafsegolnarrowhebrew",1457,"hatafsegolquarterhebrew",1457,"hatafsegolwidehebrew",1457,"hbar",295,"hbopomofo",12559,"hbrevebelow",7723,"hcedilla",7721,"hcircle",9431,"hcircumflex",293,"hdieresis",7719,"hdotaccent",7715,"hdotbelow",7717,"he",1492,"heart",9829,"heartsuitblack",9829,"heartsuitwhite",9825,"hedagesh",64308,"hedageshhebrew",64308,"hehaltonearabic",1729,"heharabic",1607,"hehebrew",1492,"hehfinalaltonearabic",64423,"hehfinalalttwoarabic",65258,"hehfinalarabic",65258,"hehhamzaabovefinalarabic",64421,"hehhamzaaboveisolatedarabic",64420,"hehinitialaltonearabic",64424,"hehinitialarabic",65259,"hehiragana",12408,"hehmedialaltonearabic",64425,"hehmedialarabic",65260,"heiseierasquare",13179,"hekatakana",12504,"hekatakanahalfwidth",65421,"hekutaarusquare",13110,"henghook",615,"herutusquare",13113,"het",1495,"hethebrew",1495,"hhook",614,"hhooksuperior",689,"hieuhacirclekorean",12923,"hieuhaparenkorean",12827,"hieuhcirclekorean",12909,"hieuhkorean",12622,"hieuhparenkorean",12813,"hihiragana",12402,"hikatakana",12498,"hikatakanahalfwidth",65419,"hiriq",1460,"hiriq14",1460,"hiriq21",1460,"hiriq2d",1460,"hiriqhebrew",1460,"hiriqnarrowhebrew",1460,"hiriqquarterhebrew",1460,"hiriqwidehebrew",1460,"hlinebelow",7830,"hmonospace",65352,"hoarmenian",1392,"hohipthai",3627,"hohiragana",12411,"hokatakana",12507,"hokatakanahalfwidth",65422,"holam",1465,"holam19",1465,"holam26",1465,"holam32",1465,"holamhebrew",1465,"holamnarrowhebrew",1465,"holamquarterhebrew",1465,"holamwidehebrew",1465,"honokhukthai",3630,"hookabovecomb",777,"hookcmb",777,"hookpalatalizedbelowcmb",801,"hookretroflexbelowcmb",802,"hoonsquare",13122,"horicoptic",1001,"horizontalbar",8213,"horncmb",795,"hotsprings",9832,"house",8962,"hparen",9379,"hsuperior",688,"hturned",613,"huhiragana",12405,"huiitosquare",13107,"hukatakana",12501,"hukatakanahalfwidth",65420,"hungarumlaut",733,"hungarumlautcmb",779,"hv",405,"hyphen",45,"hypheninferior",63205,"hyphenmonospace",65293,"hyphensmall",65123,"hyphensuperior",63206,"hyphentwo",8208,"i",105,"iacute",237,"iacyrillic",1103,"ibengali",2439,"ibopomofo",12583,"ibreve",301,"icaron",464,"icircle",9432,"icircumflex",238,"icyrillic",1110,"idblgrave",521,"ideographearthcircle",12943,"ideographfirecircle",12939,"ideographicallianceparen",12863,"ideographiccallparen",12858,"ideographiccentrecircle",12965,"ideographicclose",12294,"ideographiccomma",12289,"ideographiccommaleft",65380,"ideographiccongratulationparen",12855,"ideographiccorrectcircle",12963,"ideographicearthparen",12847,"ideographicenterpriseparen",12861,"ideographicexcellentcircle",12957,"ideographicfestivalparen",12864,"ideographicfinancialcircle",12950,"ideographicfinancialparen",12854,"ideographicfireparen",12843,"ideographichaveparen",12850,"ideographichighcircle",12964,"ideographiciterationmark",12293,"ideographiclaborcircle",12952,"ideographiclaborparen",12856,"ideographicleftcircle",12967,"ideographiclowcircle",12966,"ideographicmedicinecircle",12969,"ideographicmetalparen",12846,"ideographicmoonparen",12842,"ideographicnameparen",12852,"ideographicperiod",12290,"ideographicprintcircle",12958,"ideographicreachparen",12867,"ideographicrepresentparen",12857,"ideographicresourceparen",12862,"ideographicrightcircle",12968,"ideographicsecretcircle",12953,"ideographicselfparen",12866,"ideographicsocietyparen",12851,"ideographicspace",12288,"ideographicspecialparen",12853,"ideographicstockparen",12849,"ideographicstudyparen",12859,"ideographicsunparen",12848,"ideographicsuperviseparen",12860,"ideographicwaterparen",12844,"ideographicwoodparen",12845,"ideographiczero",12295,"ideographmetalcircle",12942,"ideographmooncircle",12938,"ideographnamecircle",12948,"ideographsuncircle",12944,"ideographwatercircle",12940,"ideographwoodcircle",12941,"ideva",2311,"idieresis",239,"idieresisacute",7727,"idieresiscyrillic",1253,"idotbelow",7883,"iebrevecyrillic",1239,"iecyrillic",1077,"ieungacirclekorean",12917,"ieungaparenkorean",12821,"ieungcirclekorean",12903,"ieungkorean",12615,"ieungparenkorean",12807,"igrave",236,"igujarati",2695,"igurmukhi",2567,"ihiragana",12356,"ihookabove",7881,"iibengali",2440,"iicyrillic",1080,"iideva",2312,"iigujarati",2696,"iigurmukhi",2568,"iimatragurmukhi",2624,"iinvertedbreve",523,"iishortcyrillic",1081,"iivowelsignbengali",2496,"iivowelsigndeva",2368,"iivowelsigngujarati",2752,"ij",307,"ikatakana",12452,"ikatakanahalfwidth",65394,"ikorean",12643,"ilde",732,"iluyhebrew",1452,"imacron",299,"imacroncyrillic",1251,"imageorapproximatelyequal",8787,"imatragurmukhi",2623,"imonospace",65353,"increment",8710,"infinity",8734,"iniarmenian",1387,"integral",8747,"integralbottom",8993,"integralbt",8993,"integralex",63733,"integraltop",8992,"integraltp",8992,"intersection",8745,"intisquare",13061,"invbullet",9688,"invcircle",9689,"invsmileface",9787,"iocyrillic",1105,"iogonek",303,"iota",953,"iotadieresis",970,"iotadieresistonos",912,"iotalatin",617,"iotatonos",943,"iparen",9380,"irigurmukhi",2674,"ismallhiragana",12355,"ismallkatakana",12451,"ismallkatakanahalfwidth",65384,"issharbengali",2554,"istroke",616,"isuperior",63213,"iterationhiragana",12445,"iterationkatakana",12541,"itilde",297,"itildebelow",7725,"iubopomofo",12585,"iucyrillic",1102,"ivowelsignbengali",2495,"ivowelsigndeva",2367,"ivowelsigngujarati",2751,"izhitsacyrillic",1141,"izhitsadblgravecyrillic",1143,"j",106,"jaarmenian",1393,"jabengali",2460,"jadeva",2332,"jagujarati",2716,"jagurmukhi",2588,"jbopomofo",12560,"jcaron",496,"jcircle",9433,"jcircumflex",309,"jcrossedtail",669,"jdotlessstroke",607,"jecyrillic",1112,"jeemarabic",1580,"jeemfinalarabic",65182,"jeeminitialarabic",65183,"jeemmedialarabic",65184,"jeharabic",1688,"jehfinalarabic",64395,"jhabengali",2461,"jhadeva",2333,"jhagujarati",2717,"jhagurmukhi",2589,"jheharmenian",1403,"jis",12292,"jmonospace",65354,"jparen",9381,"jsuperior",690,"k",107,"kabashkircyrillic",1185,"kabengali",2453,"kacute",7729,"kacyrillic",1082,"kadescendercyrillic",1179,"kadeva",2325,"kaf",1499,"kafarabic",1603,"kafdagesh",64315,"kafdageshhebrew",64315,"kaffinalarabic",65242,"kafhebrew",1499,"kafinitialarabic",65243,"kafmedialarabic",65244,"kafrafehebrew",64333,"kagujarati",2709,"kagurmukhi",2581,"kahiragana",12363,"kahookcyrillic",1220,"kakatakana",12459,"kakatakanahalfwidth",65398,"kappa",954,"kappasymbolgreek",1008,"kapyeounmieumkorean",12657,"kapyeounphieuphkorean",12676,"kapyeounpieupkorean",12664,"kapyeounssangpieupkorean",12665,"karoriisquare",13069,"kashidaautoarabic",1600,"kashidaautonosidebearingarabic",1600,"kasmallkatakana",12533,"kasquare",13188,"kasraarabic",1616,"kasratanarabic",1613,"kastrokecyrillic",1183,"katahiraprolongmarkhalfwidth",65392,"kaverticalstrokecyrillic",1181,"kbopomofo",12558,"kcalsquare",13193,"kcaron",489,"kcedilla",311,"kcircle",9434,"kcommaaccent",311,"kdotbelow",7731,"keharmenian",1412,"kehiragana",12369,"kekatakana",12465,"kekatakanahalfwidth",65401,"kenarmenian",1391,"kesmallkatakana",12534,"kgreenlandic",312,"khabengali",2454,"khacyrillic",1093,"khadeva",2326,"khagujarati",2710,"khagurmukhi",2582,"khaharabic",1582,"khahfinalarabic",65190,"khahinitialarabic",65191,"khahmedialarabic",65192,"kheicoptic",999,"khhadeva",2393,"khhagurmukhi",2649,"khieukhacirclekorean",12920,"khieukhaparenkorean",12824,"khieukhcirclekorean",12906,"khieukhkorean",12619,"khieukhparenkorean",12810,"khokhaithai",3586,"khokhonthai",3589,"khokhuatthai",3587,"khokhwaithai",3588,"khomutthai",3675,"khook",409,"khorakhangthai",3590,"khzsquare",13201,"kihiragana",12365,"kikatakana",12461,"kikatakanahalfwidth",65399,"kiroguramusquare",13077,"kiromeetorusquare",13078,"kirosquare",13076,"kiyeokacirclekorean",12910,"kiyeokaparenkorean",12814,"kiyeokcirclekorean",12896,"kiyeokkorean",12593,"kiyeokparenkorean",12800,"kiyeoksioskorean",12595,"kjecyrillic",1116,"klinebelow",7733,"klsquare",13208,"kmcubedsquare",13222,"kmonospace",65355,"kmsquaredsquare",13218,"kohiragana",12371,"kohmsquare",13248,"kokaithai",3585,"kokatakana",12467,"kokatakanahalfwidth",65402,"kooposquare",13086,"koppacyrillic",1153,"koreanstandardsymbol",12927,"koroniscmb",835,"kparen",9382,"kpasquare",13226,"ksicyrillic",1135,"ktsquare",13263,"kturned",670,"kuhiragana",12367,"kukatakana",12463,"kukatakanahalfwidth",65400,"kvsquare",13240,"kwsquare",13246,"l",108,"labengali",2482,"lacute",314,"ladeva",2354,"lagujarati",2738,"lagurmukhi",2610,"lakkhangyaothai",3653,"lamaleffinalarabic",65276,"lamalefhamzaabovefinalarabic",65272,"lamalefhamzaaboveisolatedarabic",65271,"lamalefhamzabelowfinalarabic",65274,"lamalefhamzabelowisolatedarabic",65273,"lamalefisolatedarabic",65275,"lamalefmaddaabovefinalarabic",65270,"lamalefmaddaaboveisolatedarabic",65269,"lamarabic",1604,"lambda",955,"lambdastroke",411,"lamed",1500,"lameddagesh",64316,"lameddageshhebrew",64316,"lamedhebrew",1500,"lamfinalarabic",65246,"lamhahinitialarabic",64714,"laminitialarabic",65247,"lamjeeminitialarabic",64713,"lamkhahinitialarabic",64715,"lamlamhehisolatedarabic",65010,"lammedialarabic",65248,"lammeemhahinitialarabic",64904,"lammeeminitialarabic",64716,"largecircle",9711,"lbar",410,"lbelt",620,"lbopomofo",12556,"lcaron",318,"lcedilla",316,"lcircle",9435,"lcircumflexbelow",7741,"lcommaaccent",316,"ldot",320,"ldotaccent",320,"ldotbelow",7735,"ldotbelowmacron",7737,"leftangleabovecmb",794,"lefttackbelowcmb",792,"less",60,"lessequal",8804,"lessequalorgreater",8922,"lessmonospace",65308,"lessorequivalent",8818,"lessorgreater",8822,"lessoverequal",8806,"lesssmall",65124,"lezh",622,"lfblock",9612,"lhookretroflex",621,"lira",8356,"liwnarmenian",1388,"lj",457,"ljecyrillic",1113,"ll",63168,"lladeva",2355,"llagujarati",2739,"llinebelow",7739,"llladeva",2356,"llvocalicbengali",2529,"llvocalicdeva",2401,"llvocalicvowelsignbengali",2531,"llvocalicvowelsigndeva",2403,"lmiddletilde",619,"lmonospace",65356,"lmsquare",13264,"lochulathai",3628,"logicaland",8743,"logicalnot",172,"logicalnotreversed",8976,"logicalor",8744,"lolingthai",3621,"longs",383,"lowlinecenterline",65102,"lowlinecmb",818,"lowlinedashed",65101,"lozenge",9674,"lparen",9383,"lslash",322,"lsquare",8467,"lsuperior",63214,"ltshade",9617,"luthai",3622,"lvocalicbengali",2444,"lvocalicdeva",2316,"lvocalicvowelsignbengali",2530,"lvocalicvowelsigndeva",2402,"lxsquare",13267,"m",109,"mabengali",2478,"macron",175,"macronbelowcmb",817,"macroncmb",772,"macronlowmod",717,"macronmonospace",65507,"macute",7743,"madeva",2350,"magujarati",2734,"magurmukhi",2606,"mahapakhhebrew",1444,"mahapakhlefthebrew",1444,"mahiragana",12414,"maichattawalowleftthai",63637,"maichattawalowrightthai",63636,"maichattawathai",3659,"maichattawaupperleftthai",63635,"maieklowleftthai",63628,"maieklowrightthai",63627,"maiekthai",3656,"maiekupperleftthai",63626,"maihanakatleftthai",63620,"maihanakatthai",3633,"maitaikhuleftthai",63625,"maitaikhuthai",3655,"maitholowleftthai",63631,"maitholowrightthai",63630,"maithothai",3657,"maithoupperleftthai",63629,"maitrilowleftthai",63634,"maitrilowrightthai",63633,"maitrithai",3658,"maitriupperleftthai",63632,"maiyamokthai",3654,"makatakana",12510,"makatakanahalfwidth",65423,"male",9794,"mansyonsquare",13127,"maqafhebrew",1470,"mars",9794,"masoracirclehebrew",1455,"masquare",13187,"mbopomofo",12551,"mbsquare",13268,"mcircle",9436,"mcubedsquare",13221,"mdotaccent",7745,"mdotbelow",7747,"meemarabic",1605,"meemfinalarabic",65250,"meeminitialarabic",65251,"meemmedialarabic",65252,"meemmeeminitialarabic",64721,"meemmeemisolatedarabic",64584,"meetorusquare",13133,"mehiragana",12417,"meizierasquare",13182,"mekatakana",12513,"mekatakanahalfwidth",65426,"mem",1502,"memdagesh",64318,"memdageshhebrew",64318,"memhebrew",1502,"menarmenian",1396,"merkhahebrew",1445,"merkhakefulahebrew",1446,"merkhakefulalefthebrew",1446,"merkhalefthebrew",1445,"mhook",625,"mhzsquare",13202,"middledotkatakanahalfwidth",65381,"middot",183,"mieumacirclekorean",12914,"mieumaparenkorean",12818,"mieumcirclekorean",12900,"mieumkorean",12609,"mieumpansioskorean",12656,"mieumparenkorean",12804,"mieumpieupkorean",12654,"mieumsioskorean",12655,"mihiragana",12415,"mikatakana",12511,"mikatakanahalfwidth",65424,"minus",8722,"minusbelowcmb",800,"minuscircle",8854,"minusmod",727,"minusplus",8723,"minute",8242,"miribaarusquare",13130,"mirisquare",13129,"mlonglegturned",624,"mlsquare",13206,"mmcubedsquare",13219,"mmonospace",65357,"mmsquaredsquare",13215,"mohiragana",12418,"mohmsquare",13249,"mokatakana",12514,"mokatakanahalfwidth",65427,"molsquare",13270,"momathai",3617,"moverssquare",13223,"moverssquaredsquare",13224,"mparen",9384,"mpasquare",13227,"mssquare",13235,"msuperior",63215,"mturned",623,"mu",181,"mu1",181,"muasquare",13186,"muchgreater",8811,"muchless",8810,"mufsquare",13196,"mugreek",956,"mugsquare",13197,"muhiragana",12416,"mukatakana",12512,"mukatakanahalfwidth",65425,"mulsquare",13205,"multiply",215,"mumsquare",13211,"munahhebrew",1443,"munahlefthebrew",1443,"musicalnote",9834,"musicalnotedbl",9835,"musicflatsign",9837,"musicsharpsign",9839,"mussquare",13234,"muvsquare",13238,"muwsquare",13244,"mvmegasquare",13241,"mvsquare",13239,"mwmegasquare",13247,"mwsquare",13245,"n",110,"nabengali",2472,"nabla",8711,"nacute",324,"nadeva",2344,"nagujarati",2728,"nagurmukhi",2600,"nahiragana",12394,"nakatakana",12490,"nakatakanahalfwidth",65413,"napostrophe",329,"nasquare",13185,"nbopomofo",12555,"nbspace",160,"ncaron",328,"ncedilla",326,"ncircle",9437,"ncircumflexbelow",7755,"ncommaaccent",326,"ndotaccent",7749,"ndotbelow",7751,"nehiragana",12397,"nekatakana",12493,"nekatakanahalfwidth",65416,"newsheqelsign",8362,"nfsquare",13195,"ngabengali",2457,"ngadeva",2329,"ngagujarati",2713,"ngagurmukhi",2585,"ngonguthai",3591,"nhiragana",12435,"nhookleft",626,"nhookretroflex",627,"nieunacirclekorean",12911,"nieunaparenkorean",12815,"nieuncieuckorean",12597,"nieuncirclekorean",12897,"nieunhieuhkorean",12598,"nieunkorean",12596,"nieunpansioskorean",12648,"nieunparenkorean",12801,"nieunsioskorean",12647,"nieuntikeutkorean",12646,"nihiragana",12395,"nikatakana",12491,"nikatakanahalfwidth",65414,"nikhahitleftthai",63641,"nikhahitthai",3661,"nine",57,"ninearabic",1641,"ninebengali",2543,"ninecircle",9320,"ninecircleinversesansserif",10130,"ninedeva",2415,"ninegujarati",2799,"ninegurmukhi",2671,"ninehackarabic",1641,"ninehangzhou",12329,"nineideographicparen",12840,"nineinferior",8329,"ninemonospace",65305,"nineoldstyle",63289,"nineparen",9340,"nineperiod",9360,"ninepersian",1785,"nineroman",8568,"ninesuperior",8313,"nineteencircle",9330,"nineteenparen",9350,"nineteenperiod",9370,"ninethai",3673,"nj",460,"njecyrillic",1114,"nkatakana",12531,"nkatakanahalfwidth",65437,"nlegrightlong",414,"nlinebelow",7753,"nmonospace",65358,"nmsquare",13210,"nnabengali",2467,"nnadeva",2339,"nnagujarati",2723,"nnagurmukhi",2595,"nnnadeva",2345,"nohiragana",12398,"nokatakana",12494,"nokatakanahalfwidth",65417,"nonbreakingspace",160,"nonenthai",3603,"nonuthai",3609,"noonarabic",1606,"noonfinalarabic",65254,"noonghunnaarabic",1722,"noonghunnafinalarabic",64415,"nooninitialarabic",65255,"noonjeeminitialarabic",64722,"noonjeemisolatedarabic",64587,"noonmedialarabic",65256,"noonmeeminitialarabic",64725,"noonmeemisolatedarabic",64590,"noonnoonfinalarabic",64653,"notcontains",8716,"notelement",8713,"notelementof",8713,"notequal",8800,"notgreater",8815,"notgreaternorequal",8817,"notgreaternorless",8825,"notidentical",8802,"notless",8814,"notlessnorequal",8816,"notparallel",8742,"notprecedes",8832,"notsubset",8836,"notsucceeds",8833,"notsuperset",8837,"nowarmenian",1398,"nparen",9385,"nssquare",13233,"nsuperior",8319,"ntilde",241,"nu",957,"nuhiragana",12396,"nukatakana",12492,"nukatakanahalfwidth",65415,"nuktabengali",2492,"nuktadeva",2364,"nuktagujarati",2748,"nuktagurmukhi",2620,"numbersign",35,"numbersignmonospace",65283,"numbersignsmall",65119,"numeralsigngreek",884,"numeralsignlowergreek",885,"numero",8470,"nun",1504,"nundagesh",64320,"nundageshhebrew",64320,"nunhebrew",1504,"nvsquare",13237,"nwsquare",13243,"nyabengali",2462,"nyadeva",2334,"nyagujarati",2718,"nyagurmukhi",2590,"o",111,"oacute",243,"oangthai",3629,"obarred",629,"obarredcyrillic",1257,"obarreddieresiscyrillic",1259,"obengali",2451,"obopomofo",12571,"obreve",335,"ocandradeva",2321,"ocandragujarati",2705,"ocandravowelsigndeva",2377,"ocandravowelsigngujarati",2761,"ocaron",466,"ocircle",9438,"ocircumflex",244,"ocircumflexacute",7889,"ocircumflexdotbelow",7897,"ocircumflexgrave",7891,"ocircumflexhookabove",7893,"ocircumflextilde",7895,"ocyrillic",1086,"odblacute",337,"odblgrave",525,"odeva",2323,"odieresis",246,"odieresiscyrillic",1255,"odotbelow",7885,"oe",339,"oekorean",12634,"ogonek",731,"ogonekcmb",808,"ograve",242,"ogujarati",2707,"oharmenian",1413,"ohiragana",12362,"ohookabove",7887,"ohorn",417,"ohornacute",7899,"ohorndotbelow",7907,"ohorngrave",7901,"ohornhookabove",7903,"ohorntilde",7905,"ohungarumlaut",337,"oi",419,"oinvertedbreve",527,"okatakana",12458,"okatakanahalfwidth",65397,"okorean",12631,"olehebrew",1451,"omacron",333,"omacronacute",7763,"omacrongrave",7761,"omdeva",2384,"omega",969,"omega1",982,"omegacyrillic",1121,"omegalatinclosed",631,"omegaroundcyrillic",1147,"omegatitlocyrillic",1149,"omegatonos",974,"omgujarati",2768,"omicron",959,"omicrontonos",972,"omonospace",65359,"one",49,"onearabic",1633,"onebengali",2535,"onecircle",9312,"onecircleinversesansserif",10122,"onedeva",2407,"onedotenleader",8228,"oneeighth",8539,"onefitted",63196,"onegujarati",2791,"onegurmukhi",2663,"onehackarabic",1633,"onehalf",189,"onehangzhou",12321,"oneideographicparen",12832,"oneinferior",8321,"onemonospace",65297,"onenumeratorbengali",2548,"oneoldstyle",63281,"oneparen",9332,"oneperiod",9352,"onepersian",1777,"onequarter",188,"oneroman",8560,"onesuperior",185,"onethai",3665,"onethird",8531,"oogonek",491,"oogonekmacron",493,"oogurmukhi",2579,"oomatragurmukhi",2635,"oopen",596,"oparen",9386,"openbullet",9702,"option",8997,"ordfeminine",170,"ordmasculine",186,"orthogonal",8735,"oshortdeva",2322,"oshortvowelsigndeva",2378,"oslash",248,"oslashacute",511,"osmallhiragana",12361,"osmallkatakana",12457,"osmallkatakanahalfwidth",65387,"ostrokeacute",511,"osuperior",63216,"otcyrillic",1151,"otilde",245,"otildeacute",7757,"otildedieresis",7759,"oubopomofo",12577,"overline",8254,"overlinecenterline",65098,"overlinecmb",773,"overlinedashed",65097,"overlinedblwavy",65100,"overlinewavy",65099,"overscore",175,"ovowelsignbengali",2507,"ovowelsigndeva",2379,"ovowelsigngujarati",2763,"p",112,"paampssquare",13184,"paasentosquare",13099,"pabengali",2474,"pacute",7765,"padeva",2346,"pagedown",8671,"pageup",8670,"pagujarati",2730,"pagurmukhi",2602,"pahiragana",12401,"paiyannoithai",3631,"pakatakana",12497,"palatalizationcyrilliccmb",1156,"palochkacyrillic",1216,"pansioskorean",12671,"paragraph",182,"parallel",8741,"parenleft",40,"parenleftaltonearabic",64830,"parenleftbt",63725,"parenleftex",63724,"parenleftinferior",8333,"parenleftmonospace",65288,"parenleftsmall",65113,"parenleftsuperior",8317,"parenlefttp",63723,"parenleftvertical",65077,"parenright",41,"parenrightaltonearabic",64831,"parenrightbt",63736,"parenrightex",63735,"parenrightinferior",8334,"parenrightmonospace",65289,"parenrightsmall",65114,"parenrightsuperior",8318,"parenrighttp",63734,"parenrightvertical",65078,"partialdiff",8706,"paseqhebrew",1472,"pashtahebrew",1433,"pasquare",13225,"patah",1463,"patah11",1463,"patah1d",1463,"patah2a",1463,"patahhebrew",1463,"patahnarrowhebrew",1463,"patahquarterhebrew",1463,"patahwidehebrew",1463,"pazerhebrew",1441,"pbopomofo",12550,"pcircle",9439,"pdotaccent",7767,"pe",1508,"pecyrillic",1087,"pedagesh",64324,"pedageshhebrew",64324,"peezisquare",13115,"pefinaldageshhebrew",64323,"peharabic",1662,"peharmenian",1402,"pehebrew",1508,"pehfinalarabic",64343,"pehinitialarabic",64344,"pehiragana",12410,"pehmedialarabic",64345,"pekatakana",12506,"pemiddlehookcyrillic",1191,"perafehebrew",64334,"percent",37,"percentarabic",1642,"percentmonospace",65285,"percentsmall",65130,"period",46,"periodarmenian",1417,"periodcentered",183,"periodhalfwidth",65377,"periodinferior",63207,"periodmonospace",65294,"periodsmall",65106,"periodsuperior",63208,"perispomenigreekcmb",834,"perpendicular",8869,"perthousand",8240,"peseta",8359,"pfsquare",13194,"phabengali",2475,"phadeva",2347,"phagujarati",2731,"phagurmukhi",2603,"phi",966,"phi1",981,"phieuphacirclekorean",12922,"phieuphaparenkorean",12826,"phieuphcirclekorean",12908,"phieuphkorean",12621,"phieuphparenkorean",12812,"philatin",632,"phinthuthai",3642,"phisymbolgreek",981,"phook",421,"phophanthai",3614,"phophungthai",3612,"phosamphaothai",3616,"pi",960,"pieupacirclekorean",12915,"pieupaparenkorean",12819,"pieupcieuckorean",12662,"pieupcirclekorean",12901,"pieupkiyeokkorean",12658,"pieupkorean",12610,"pieupparenkorean",12805,"pieupsioskiyeokkorean",12660,"pieupsioskorean",12612,"pieupsiostikeutkorean",12661,"pieupthieuthkorean",12663,"pieuptikeutkorean",12659,"pihiragana",12404,"pikatakana",12500,"pisymbolgreek",982,"piwrarmenian",1411,"plus",43,"plusbelowcmb",799,"pluscircle",8853,"plusminus",177,"plusmod",726,"plusmonospace",65291,"plussmall",65122,"plussuperior",8314,"pmonospace",65360,"pmsquare",13272,"pohiragana",12413,"pointingindexdownwhite",9759,"pointingindexleftwhite",9756,"pointingindexrightwhite",9758,"pointingindexupwhite",9757,"pokatakana",12509,"poplathai",3611,"postalmark",12306,"postalmarkface",12320,"pparen",9387,"precedes",8826,"prescription",8478,"primemod",697,"primereversed",8245,"product",8719,"projective",8965,"prolongedkana",12540,"propellor",8984,"propersubset",8834,"propersuperset",8835,"proportion",8759,"proportional",8733,"psi",968,"psicyrillic",1137,"psilipneumatacyrilliccmb",1158,"pssquare",13232,"puhiragana",12407,"pukatakana",12503,"pvsquare",13236,"pwsquare",13242,"q",113,"qadeva",2392,"qadmahebrew",1448,"qafarabic",1602,"qaffinalarabic",65238,"qafinitialarabic",65239,"qafmedialarabic",65240,"qamats",1464,"qamats10",1464,"qamats1a",1464,"qamats1c",1464,"qamats27",1464,"qamats29",1464,"qamats33",1464,"qamatsde",1464,"qamatshebrew",1464,"qamatsnarrowhebrew",1464,"qamatsqatanhebrew",1464,"qamatsqatannarrowhebrew",1464,"qamatsqatanquarterhebrew",1464,"qamatsqatanwidehebrew",1464,"qamatsquarterhebrew",1464,"qamatswidehebrew",1464,"qarneyparahebrew",1439,"qbopomofo",12561,"qcircle",9440,"qhook",672,"qmonospace",65361,"qof",1511,"qofdagesh",64327,"qofdageshhebrew",64327,"qofhebrew",1511,"qparen",9388,"quarternote",9833,"qubuts",1467,"qubuts18",1467,"qubuts25",1467,"qubuts31",1467,"qubutshebrew",1467,"qubutsnarrowhebrew",1467,"qubutsquarterhebrew",1467,"qubutswidehebrew",1467,"question",63,"questionarabic",1567,"questionarmenian",1374,"questiondown",191,"questiondownsmall",63423,"questiongreek",894,"questionmonospace",65311,"questionsmall",63295,"quotedbl",34,"quotedblbase",8222,"quotedblleft",8220,"quotedblmonospace",65282,"quotedblprime",12318,"quotedblprimereversed",12317,"quotedblright",8221,"quoteleft",8216,"quoteleftreversed",8219,"quotereversed",8219,"quoteright",8217,"quoterightn",329,"quotesinglbase",8218,"quotesingle",39,"quotesinglemonospace",65287,"r",114,"raarmenian",1404,"rabengali",2480,"racute",341,"radeva",2352,"radical",8730,"radicalex",63717,"radoverssquare",13230,"radoverssquaredsquare",13231,"radsquare",13229,"rafe",1471,"rafehebrew",1471,"ragujarati",2736,"ragurmukhi",2608,"rahiragana",12425,"rakatakana",12521,"rakatakanahalfwidth",65431,"ralowerdiagonalbengali",2545,"ramiddlediagonalbengali",2544,"ramshorn",612,"ratio",8758,"rbopomofo",12566,"rcaron",345,"rcedilla",343,"rcircle",9441,"rcommaaccent",343,"rdblgrave",529,"rdotaccent",7769,"rdotbelow",7771,"rdotbelowmacron",7773,"referencemark",8251,"reflexsubset",8838,"reflexsuperset",8839,"registered",174,"registersans",63720,"registerserif",63194,"reharabic",1585,"reharmenian",1408,"rehfinalarabic",65198,"rehiragana",12428,"rekatakana",12524,"rekatakanahalfwidth",65434,"resh",1512,"reshdageshhebrew",64328,"reshhebrew",1512,"reversedtilde",8765,"reviahebrew",1431,"reviamugrashhebrew",1431,"revlogicalnot",8976,"rfishhook",638,"rfishhookreversed",639,"rhabengali",2525,"rhadeva",2397,"rho",961,"rhook",637,"rhookturned",635,"rhookturnedsuperior",693,"rhosymbolgreek",1009,"rhotichookmod",734,"rieulacirclekorean",12913,"rieulaparenkorean",12817,"rieulcirclekorean",12899,"rieulhieuhkorean",12608,"rieulkiyeokkorean",12602,"rieulkiyeoksioskorean",12649,"rieulkorean",12601,"rieulmieumkorean",12603,"rieulpansioskorean",12652,"rieulparenkorean",12803,"rieulphieuphkorean",12607,"rieulpieupkorean",12604,"rieulpieupsioskorean",12651,"rieulsioskorean",12605,"rieulthieuthkorean",12606,"rieultikeutkorean",12650,"rieulyeorinhieuhkorean",12653,"rightangle",8735,"righttackbelowcmb",793,"righttriangle",8895,"rihiragana",12426,"rikatakana",12522,"rikatakanahalfwidth",65432,"ring",730,"ringbelowcmb",805,"ringcmb",778,"ringhalfleft",703,"ringhalfleftarmenian",1369,"ringhalfleftbelowcmb",796,"ringhalfleftcentered",723,"ringhalfright",702,"ringhalfrightbelowcmb",825,"ringhalfrightcentered",722,"rinvertedbreve",531,"rittorusquare",13137,"rlinebelow",7775,"rlongleg",636,"rlonglegturned",634,"rmonospace",65362,"rohiragana",12429,"rokatakana",12525,"rokatakanahalfwidth",65435,"roruathai",3619,"rparen",9389,"rrabengali",2524,"rradeva",2353,"rragurmukhi",2652,"rreharabic",1681,"rrehfinalarabic",64397,"rrvocalicbengali",2528,"rrvocalicdeva",2400,"rrvocalicgujarati",2784,"rrvocalicvowelsignbengali",2500,"rrvocalicvowelsigndeva",2372,"rrvocalicvowelsigngujarati",2756,"rsuperior",63217,"rtblock",9616,"rturned",633,"rturnedsuperior",692,"ruhiragana",12427,"rukatakana",12523,"rukatakanahalfwidth",65433,"rupeemarkbengali",2546,"rupeesignbengali",2547,"rupiah",63197,"ruthai",3620,"rvocalicbengali",2443,"rvocalicdeva",2315,"rvocalicgujarati",2699,"rvocalicvowelsignbengali",2499,"rvocalicvowelsigndeva",2371,"rvocalicvowelsigngujarati",2755,"s",115,"sabengali",2488,"sacute",347,"sacutedotaccent",7781,"sadarabic",1589,"sadeva",2360,"sadfinalarabic",65210,"sadinitialarabic",65211,"sadmedialarabic",65212,"sagujarati",2744,"sagurmukhi",2616,"sahiragana",12373,"sakatakana",12469,"sakatakanahalfwidth",65403,"sallallahoualayhewasallamarabic",65018,"samekh",1505,"samekhdagesh",64321,"samekhdageshhebrew",64321,"samekhhebrew",1505,"saraaathai",3634,"saraaethai",3649,"saraaimaimalaithai",3652,"saraaimaimuanthai",3651,"saraamthai",3635,"saraathai",3632,"saraethai",3648,"saraiileftthai",63622,"saraiithai",3637,"saraileftthai",63621,"saraithai",3636,"saraothai",3650,"saraueeleftthai",63624,"saraueethai",3639,"saraueleftthai",63623,"sarauethai",3638,"sarauthai",3640,"sarauuthai",3641,"sbopomofo",12569,"scaron",353,"scarondotaccent",7783,"scedilla",351,"schwa",601,"schwacyrillic",1241,"schwadieresiscyrillic",1243,"schwahook",602,"scircle",9442,"scircumflex",349,"scommaaccent",537,"sdotaccent",7777,"sdotbelow",7779,"sdotbelowdotaccent",7785,"seagullbelowcmb",828,"second",8243,"secondtonechinese",714,"section",167,"seenarabic",1587,"seenfinalarabic",65202,"seeninitialarabic",65203,"seenmedialarabic",65204,"segol",1462,"segol13",1462,"segol1f",1462,"segol2c",1462,"segolhebrew",1462,"segolnarrowhebrew",1462,"segolquarterhebrew",1462,"segoltahebrew",1426,"segolwidehebrew",1462,"seharmenian",1405,"sehiragana",12379,"sekatakana",12475,"sekatakanahalfwidth",65406,"semicolon",59,"semicolonarabic",1563,"semicolonmonospace",65307,"semicolonsmall",65108,"semivoicedmarkkana",12444,"semivoicedmarkkanahalfwidth",65439,"sentisquare",13090,"sentosquare",13091,"seven",55,"sevenarabic",1639,"sevenbengali",2541,"sevencircle",9318,"sevencircleinversesansserif",10128,"sevendeva",2413,"seveneighths",8542,"sevengujarati",2797,"sevengurmukhi",2669,"sevenhackarabic",1639,"sevenhangzhou",12327,"sevenideographicparen",12838,"seveninferior",8327,"sevenmonospace",65303,"sevenoldstyle",63287,"sevenparen",9338,"sevenperiod",9358,"sevenpersian",1783,"sevenroman",8566,"sevensuperior",8311,"seventeencircle",9328,"seventeenparen",9348,"seventeenperiod",9368,"seventhai",3671,"sfthyphen",173,"shaarmenian",1399,"shabengali",2486,"shacyrillic",1096,"shaddaarabic",1617,"shaddadammaarabic",64609,"shaddadammatanarabic",64606,"shaddafathaarabic",64608,"shaddakasraarabic",64610,"shaddakasratanarabic",64607,"shade",9618,"shadedark",9619,"shadelight",9617,"shademedium",9618,"shadeva",2358,"shagujarati",2742,"shagurmukhi",2614,"shalshelethebrew",1427,"shbopomofo",12565,"shchacyrillic",1097,"sheenarabic",1588,"sheenfinalarabic",65206,"sheeninitialarabic",65207,"sheenmedialarabic",65208,"sheicoptic",995,"sheqel",8362,"sheqelhebrew",8362,"sheva",1456,"sheva115",1456,"sheva15",1456,"sheva22",1456,"sheva2e",1456,"shevahebrew",1456,"shevanarrowhebrew",1456,"shevaquarterhebrew",1456,"shevawidehebrew",1456,"shhacyrillic",1211,"shimacoptic",1005,"shin",1513,"shindagesh",64329,"shindageshhebrew",64329,"shindageshshindot",64300,"shindageshshindothebrew",64300,"shindageshsindot",64301,"shindageshsindothebrew",64301,"shindothebrew",1473,"shinhebrew",1513,"shinshindot",64298,"shinshindothebrew",64298,"shinsindot",64299,"shinsindothebrew",64299,"shook",642,"sigma",963,"sigma1",962,"sigmafinal",962,"sigmalunatesymbolgreek",1010,"sihiragana",12375,"sikatakana",12471,"sikatakanahalfwidth",65404,"siluqhebrew",1469,"siluqlefthebrew",1469,"similar",8764,"sindothebrew",1474,"siosacirclekorean",12916,"siosaparenkorean",12820,"sioscieuckorean",12670,"sioscirclekorean",12902,"sioskiyeokkorean",12666,"sioskorean",12613,"siosnieunkorean",12667,"siosparenkorean",12806,"siospieupkorean",12669,"siostikeutkorean",12668,"six",54,"sixarabic",1638,"sixbengali",2540,"sixcircle",9317,"sixcircleinversesansserif",10127,"sixdeva",2412,"sixgujarati",2796,"sixgurmukhi",2668,"sixhackarabic",1638,"sixhangzhou",12326,"sixideographicparen",12837,"sixinferior",8326,"sixmonospace",65302,"sixoldstyle",63286,"sixparen",9337,"sixperiod",9357,"sixpersian",1782,"sixroman",8565,"sixsuperior",8310,"sixteencircle",9327,"sixteencurrencydenominatorbengali",2553,"sixteenparen",9347,"sixteenperiod",9367,"sixthai",3670,"slash",47,"slashmonospace",65295,"slong",383,"slongdotaccent",7835,"smileface",9786,"smonospace",65363,"sofpasuqhebrew",1475,"softhyphen",173,"softsigncyrillic",1100,"sohiragana",12381,"sokatakana",12477,"sokatakanahalfwidth",65407,"soliduslongoverlaycmb",824,"solidusshortoverlaycmb",823,"sorusithai",3625,"sosalathai",3624,"sosothai",3595,"sosuathai",3626,"space",32,"spacehackarabic",32,"spade",9824,"spadesuitblack",9824,"spadesuitwhite",9828,"sparen",9390,"squarebelowcmb",827,"squarecc",13252,"squarecm",13213,"squarediagonalcrosshatchfill",9641,"squarehorizontalfill",9636,"squarekg",13199,"squarekm",13214,"squarekmcapital",13262,"squareln",13265,"squarelog",13266,"squaremg",13198,"squaremil",13269,"squaremm",13212,"squaremsquared",13217,"squareorthogonalcrosshatchfill",9638,"squareupperlefttolowerrightfill",9639,"squareupperrighttolowerleftfill",9640,"squareverticalfill",9637,"squarewhitewithsmallblack",9635,"srsquare",13275,"ssabengali",2487,"ssadeva",2359,"ssagujarati",2743,"ssangcieuckorean",12617,"ssanghieuhkorean",12677,"ssangieungkorean",12672,"ssangkiyeokkorean",12594,"ssangnieunkorean",12645,"ssangpieupkorean",12611,"ssangsioskorean",12614,"ssangtikeutkorean",12600,"ssuperior",63218,"sterling",163,"sterlingmonospace",65505,"strokelongoverlaycmb",822,"strokeshortoverlaycmb",821,"subset",8834,"subsetnotequal",8842,"subsetorequal",8838,"succeeds",8827,"suchthat",8715,"suhiragana",12377,"sukatakana",12473,"sukatakanahalfwidth",65405,"sukunarabic",1618,"summation",8721,"sun",9788,"superset",8835,"supersetnotequal",8843,"supersetorequal",8839,"svsquare",13276,"syouwaerasquare",13180,"t",116,"tabengali",2468,"tackdown",8868,"tackleft",8867,"tadeva",2340,"tagujarati",2724,"tagurmukhi",2596,"taharabic",1591,"tahfinalarabic",65218,"tahinitialarabic",65219,"tahiragana",12383,"tahmedialarabic",65220,"taisyouerasquare",13181,"takatakana",12479,"takatakanahalfwidth",65408,"tatweelarabic",1600,"tau",964,"tav",1514,"tavdages",64330,"tavdagesh",64330,"tavdageshhebrew",64330,"tavhebrew",1514,"tbar",359,"tbopomofo",12554,"tcaron",357,"tccurl",680,"tcedilla",355,"tcheharabic",1670,"tchehfinalarabic",64379,"tchehinitialarabic",64380,"tchehmedialarabic",64381,"tcircle",9443,"tcircumflexbelow",7793,"tcommaaccent",355,"tdieresis",7831,"tdotaccent",7787,"tdotbelow",7789,"tecyrillic",1090,"tedescendercyrillic",1197,"teharabic",1578,"tehfinalarabic",65174,"tehhahinitialarabic",64674,"tehhahisolatedarabic",64524,"tehinitialarabic",65175,"tehiragana",12390,"tehjeeminitialarabic",64673,"tehjeemisolatedarabic",64523,"tehmarbutaarabic",1577,"tehmarbutafinalarabic",65172,"tehmedialarabic",65176,"tehmeeminitialarabic",64676,"tehmeemisolatedarabic",64526,"tehnoonfinalarabic",64627,"tekatakana",12486,"tekatakanahalfwidth",65411,"telephone",8481,"telephoneblack",9742,"telishagedolahebrew",1440,"telishaqetanahebrew",1449,"tencircle",9321,"tenideographicparen",12841,"tenparen",9341,"tenperiod",9361,"tenroman",8569,"tesh",679,"tet",1496,"tetdagesh",64312,"tetdageshhebrew",64312,"tethebrew",1496,"tetsecyrillic",1205,"tevirhebrew",1435,"tevirlefthebrew",1435,"thabengali",2469,"thadeva",2341,"thagujarati",2725,"thagurmukhi",2597,"thalarabic",1584,"thalfinalarabic",65196,"thanthakhatlowleftthai",63640,"thanthakhatlowrightthai",63639,"thanthakhatthai",3660,"thanthakhatupperleftthai",63638,"theharabic",1579,"thehfinalarabic",65178,"thehinitialarabic",65179,"thehmedialarabic",65180,"thereexists",8707,"therefore",8756,"theta",952,"theta1",977,"thetasymbolgreek",977,"thieuthacirclekorean",12921,"thieuthaparenkorean",12825,"thieuthcirclekorean",12907,"thieuthkorean",12620,"thieuthparenkorean",12811,"thirteencircle",9324,"thirteenparen",9344,"thirteenperiod",9364,"thonangmonthothai",3601,"thook",429,"thophuthaothai",3602,"thorn",254,"thothahanthai",3607,"thothanthai",3600,"thothongthai",3608,"thothungthai",3606,"thousandcyrillic",1154,"thousandsseparatorarabic",1644,"thousandsseparatorpersian",1644,"three",51,"threearabic",1635,"threebengali",2537,"threecircle",9314,"threecircleinversesansserif",10124,"threedeva",2409,"threeeighths",8540,"threegujarati",2793,"threegurmukhi",2665,"threehackarabic",1635,"threehangzhou",12323,"threeideographicparen",12834,"threeinferior",8323,"threemonospace",65299,"threenumeratorbengali",2550,"threeoldstyle",63283,"threeparen",9334,"threeperiod",9354,"threepersian",1779,"threequarters",190,"threequartersemdash",63198,"threeroman",8562,"threesuperior",179,"threethai",3667,"thzsquare",13204,"tihiragana",12385,"tikatakana",12481,"tikatakanahalfwidth",65409,"tikeutacirclekorean",12912,"tikeutaparenkorean",12816,"tikeutcirclekorean",12898,"tikeutkorean",12599,"tikeutparenkorean",12802,"tilde",732,"tildebelowcmb",816,"tildecmb",771,"tildecomb",771,"tildedoublecmb",864,"tildeoperator",8764,"tildeoverlaycmb",820,"tildeverticalcmb",830,"timescircle",8855,"tipehahebrew",1430,"tipehalefthebrew",1430,"tippigurmukhi",2672,"titlocyrilliccmb",1155,"tiwnarmenian",1407,"tlinebelow",7791,"tmonospace",65364,"toarmenian",1385,"tohiragana",12392,"tokatakana",12488,"tokatakanahalfwidth",65412,"tonebarextrahighmod",741,"tonebarextralowmod",745,"tonebarhighmod",742,"tonebarlowmod",744,"tonebarmidmod",743,"tonefive",445,"tonesix",389,"tonetwo",424,"tonos",900,"tonsquare",13095,"topatakthai",3599,"tortoiseshellbracketleft",12308,"tortoiseshellbracketleftsmall",65117,"tortoiseshellbracketleftvertical",65081,"tortoiseshellbracketright",12309,"tortoiseshellbracketrightsmall",65118,"tortoiseshellbracketrightvertical",65082,"totaothai",3605,"tpalatalhook",427,"tparen",9391,"trademark",8482,"trademarksans",63722,"trademarkserif",63195,"tretroflexhook",648,"triagdn",9660,"triaglf",9668,"triagrt",9658,"triagup",9650,"ts",678,"tsadi",1510,"tsadidagesh",64326,"tsadidageshhebrew",64326,"tsadihebrew",1510,"tsecyrillic",1094,"tsere",1461,"tsere12",1461,"tsere1e",1461,"tsere2b",1461,"tserehebrew",1461,"tserenarrowhebrew",1461,"tserequarterhebrew",1461,"tserewidehebrew",1461,"tshecyrillic",1115,"tsuperior",63219,"ttabengali",2463,"ttadeva",2335,"ttagujarati",2719,"ttagurmukhi",2591,"tteharabic",1657,"ttehfinalarabic",64359,"ttehinitialarabic",64360,"ttehmedialarabic",64361,"tthabengali",2464,"tthadeva",2336,"tthagujarati",2720,"tthagurmukhi",2592,"tturned",647,"tuhiragana",12388,"tukatakana",12484,"tukatakanahalfwidth",65410,"tusmallhiragana",12387,"tusmallkatakana",12483,"tusmallkatakanahalfwidth",65391,"twelvecircle",9323,"twelveparen",9343,"twelveperiod",9363,"twelveroman",8571,"twentycircle",9331,"twentyhangzhou",21316,"twentyparen",9351,"twentyperiod",9371,"two",50,"twoarabic",1634,"twobengali",2536,"twocircle",9313,"twocircleinversesansserif",10123,"twodeva",2408,"twodotenleader",8229,"twodotleader",8229,"twodotleadervertical",65072,"twogujarati",2792,"twogurmukhi",2664,"twohackarabic",1634,"twohangzhou",12322,"twoideographicparen",12833,"twoinferior",8322,"twomonospace",65298,"twonumeratorbengali",2549,"twooldstyle",63282,"twoparen",9333,"twoperiod",9353,"twopersian",1778,"tworoman",8561,"twostroke",443,"twosuperior",178,"twothai",3666,"twothirds",8532,"u",117,"uacute",250,"ubar",649,"ubengali",2441,"ubopomofo",12584,"ubreve",365,"ucaron",468,"ucircle",9444,"ucircumflex",251,"ucircumflexbelow",7799,"ucyrillic",1091,"udattadeva",2385,"udblacute",369,"udblgrave",533,"udeva",2313,"udieresis",252,"udieresisacute",472,"udieresisbelow",7795,"udieresiscaron",474,"udieresiscyrillic",1265,"udieresisgrave",476,"udieresismacron",470,"udotbelow",7909,"ugrave",249,"ugujarati",2697,"ugurmukhi",2569,"uhiragana",12358,"uhookabove",7911,"uhorn",432,"uhornacute",7913,"uhorndotbelow",7921,"uhorngrave",7915,"uhornhookabove",7917,"uhorntilde",7919,"uhungarumlaut",369,"uhungarumlautcyrillic",1267,"uinvertedbreve",535,"ukatakana",12454,"ukatakanahalfwidth",65395,"ukcyrillic",1145,"ukorean",12636,"umacron",363,"umacroncyrillic",1263,"umacrondieresis",7803,"umatragurmukhi",2625,"umonospace",65365,"underscore",95,"underscoredbl",8215,"underscoremonospace",65343,"underscorevertical",65075,"underscorewavy",65103,"union",8746,"universal",8704,"uogonek",371,"uparen",9392,"upblock",9600,"upperdothebrew",1476,"upsilon",965,"upsilondieresis",971,"upsilondieresistonos",944,"upsilonlatin",650,"upsilontonos",973,"uptackbelowcmb",797,"uptackmod",724,"uragurmukhi",2675,"uring",367,"ushortcyrillic",1118,"usmallhiragana",12357,"usmallkatakana",12453,"usmallkatakanahalfwidth",65385,"ustraightcyrillic",1199,"ustraightstrokecyrillic",1201,"utilde",361,"utildeacute",7801,"utildebelow",7797,"uubengali",2442,"uudeva",2314,"uugujarati",2698,"uugurmukhi",2570,"uumatragurmukhi",2626,"uuvowelsignbengali",2498,"uuvowelsigndeva",2370,"uuvowelsigngujarati",2754,"uvowelsignbengali",2497,"uvowelsigndeva",2369,"uvowelsigngujarati",2753,"v",118,"vadeva",2357,"vagujarati",2741,"vagurmukhi",2613,"vakatakana",12535,"vav",1493,"vavdagesh",64309,"vavdagesh65",64309,"vavdageshhebrew",64309,"vavhebrew",1493,"vavholam",64331,"vavholamhebrew",64331,"vavvavhebrew",1520,"vavyodhebrew",1521,"vcircle",9445,"vdotbelow",7807,"vecyrillic",1074,"veharabic",1700,"vehfinalarabic",64363,"vehinitialarabic",64364,"vehmedialarabic",64365,"vekatakana",12537,"venus",9792,"verticalbar",124,"verticallineabovecmb",781,"verticallinebelowcmb",809,"verticallinelowmod",716,"verticallinemod",712,"vewarmenian",1406,"vhook",651,"vikatakana",12536,"viramabengali",2509,"viramadeva",2381,"viramagujarati",2765,"visargabengali",2435,"visargadeva",2307,"visargagujarati",2691,"vmonospace",65366,"voarmenian",1400,"voicediterationhiragana",12446,"voicediterationkatakana",12542,"voicedmarkkana",12443,"voicedmarkkanahalfwidth",65438,"vokatakana",12538,"vparen",9393,"vtilde",7805,"vturned",652,"vuhiragana",12436,"vukatakana",12532,"w",119,"wacute",7811,"waekorean",12633,"wahiragana",12431,"wakatakana",12527,"wakatakanahalfwidth",65436,"wakorean",12632,"wasmallhiragana",12430,"wasmallkatakana",12526,"wattosquare",13143,"wavedash",12316,"wavyunderscorevertical",65076,"wawarabic",1608,"wawfinalarabic",65262,"wawhamzaabovearabic",1572,"wawhamzaabovefinalarabic",65158,"wbsquare",13277,"wcircle",9446,"wcircumflex",373,"wdieresis",7813,"wdotaccent",7815,"wdotbelow",7817,"wehiragana",12433,"weierstrass",8472,"wekatakana",12529,"wekorean",12638,"weokorean",12637,"wgrave",7809,"whitebullet",9702,"whitecircle",9675,"whitecircleinverse",9689,"whitecornerbracketleft",12302,"whitecornerbracketleftvertical",65091,"whitecornerbracketright",12303,"whitecornerbracketrightvertical",65092,"whitediamond",9671,"whitediamondcontainingblacksmalldiamond",9672,"whitedownpointingsmalltriangle",9663,"whitedownpointingtriangle",9661,"whiteleftpointingsmalltriangle",9667,"whiteleftpointingtriangle",9665,"whitelenticularbracketleft",12310,"whitelenticularbracketright",12311,"whiterightpointingsmalltriangle",9657,"whiterightpointingtriangle",9655,"whitesmallsquare",9643,"whitesmilingface",9786,"whitesquare",9633,"whitestar",9734,"whitetelephone",9743,"whitetortoiseshellbracketleft",12312,"whitetortoiseshellbracketright",12313,"whiteuppointingsmalltriangle",9653,"whiteuppointingtriangle",9651,"wihiragana",12432,"wikatakana",12528,"wikorean",12639,"wmonospace",65367,"wohiragana",12434,"wokatakana",12530,"wokatakanahalfwidth",65382,"won",8361,"wonmonospace",65510,"wowaenthai",3623,"wparen",9394,"wring",7832,"wsuperior",695,"wturned",653,"wynn",447,"x",120,"xabovecmb",829,"xbopomofo",12562,"xcircle",9447,"xdieresis",7821,"xdotaccent",7819,"xeharmenian",1389,"xi",958,"xmonospace",65368,"xparen",9395,"xsuperior",739,"y",121,"yaadosquare",13134,"yabengali",2479,"yacute",253,"yadeva",2351,"yaekorean",12626,"yagujarati",2735,"yagurmukhi",2607,"yahiragana",12420,"yakatakana",12516,"yakatakanahalfwidth",65428,"yakorean",12625,"yamakkanthai",3662,"yasmallhiragana",12419,"yasmallkatakana",12515,"yasmallkatakanahalfwidth",65388,"yatcyrillic",1123,"ycircle",9448,"ycircumflex",375,"ydieresis",255,"ydotaccent",7823,"ydotbelow",7925,"yeharabic",1610,"yehbarreearabic",1746,"yehbarreefinalarabic",64431,"yehfinalarabic",65266,"yehhamzaabovearabic",1574,"yehhamzaabovefinalarabic",65162,"yehhamzaaboveinitialarabic",65163,"yehhamzaabovemedialarabic",65164,"yehinitialarabic",65267,"yehmedialarabic",65268,"yehmeeminitialarabic",64733,"yehmeemisolatedarabic",64600,"yehnoonfinalarabic",64660,"yehthreedotsbelowarabic",1745,"yekorean",12630,"yen",165,"yenmonospace",65509,"yeokorean",12629,"yeorinhieuhkorean",12678,"yerahbenyomohebrew",1450,"yerahbenyomolefthebrew",1450,"yericyrillic",1099,"yerudieresiscyrillic",1273,"yesieungkorean",12673,"yesieungpansioskorean",12675,"yesieungsioskorean",12674,"yetivhebrew",1434,"ygrave",7923,"yhook",436,"yhookabove",7927,"yiarmenian",1397,"yicyrillic",1111,"yikorean",12642,"yinyang",9775,"yiwnarmenian",1410,"ymonospace",65369,"yod",1497,"yoddagesh",64313,"yoddageshhebrew",64313,"yodhebrew",1497,"yodyodhebrew",1522,"yodyodpatahhebrew",64287,"yohiragana",12424,"yoikorean",12681,"yokatakana",12520,"yokatakanahalfwidth",65430,"yokorean",12635,"yosmallhiragana",12423,"yosmallkatakana",12519,"yosmallkatakanahalfwidth",65390,"yotgreek",1011,"yoyaekorean",12680,"yoyakorean",12679,"yoyakthai",3618,"yoyingthai",3597,"yparen",9396,"ypogegrammeni",890,"ypogegrammenigreekcmb",837,"yr",422,"yring",7833,"ysuperior",696,"ytilde",7929,"yturned",654,"yuhiragana",12422,"yuikorean",12684,"yukatakana",12518,"yukatakanahalfwidth",65429,"yukorean",12640,"yusbigcyrillic",1131,"yusbigiotifiedcyrillic",1133,"yuslittlecyrillic",1127,"yuslittleiotifiedcyrillic",1129,"yusmallhiragana",12421,"yusmallkatakana",12517,"yusmallkatakanahalfwidth",65389,"yuyekorean",12683,"yuyeokorean",12682,"yyabengali",2527,"yyadeva",2399,"z",122,"zaarmenian",1382,"zacute",378,"zadeva",2395,"zagurmukhi",2651,"zaharabic",1592,"zahfinalarabic",65222,"zahinitialarabic",65223,"zahiragana",12374,"zahmedialarabic",65224,"zainarabic",1586,"zainfinalarabic",65200,"zakatakana",12470,"zaqefgadolhebrew",1429,"zaqefqatanhebrew",1428,"zarqahebrew",1432,"zayin",1494,"zayindagesh",64310,"zayindageshhebrew",64310,"zayinhebrew",1494,"zbopomofo",12567,"zcaron",382,"zcircle",9449,"zcircumflex",7825,"zcurl",657,"zdot",380,"zdotaccent",380,"zdotbelow",7827,"zecyrillic",1079,"zedescendercyrillic",1177,"zedieresiscyrillic",1247,"zehiragana",12380,"zekatakana",12476,"zero",48,"zeroarabic",1632,"zerobengali",2534,"zerodeva",2406,"zerogujarati",2790,"zerogurmukhi",2662,"zerohackarabic",1632,"zeroinferior",8320,"zeromonospace",65296,"zerooldstyle",63280,"zeropersian",1776,"zerosuperior",8304,"zerothai",3664,"zerowidthjoiner",65279,"zerowidthnonjoiner",8204,"zerowidthspace",8203,"zeta",950,"zhbopomofo",12563,"zhearmenian",1386,"zhebrevecyrillic",1218,"zhecyrillic",1078,"zhedescendercyrillic",1175,"zhedieresiscyrillic",1245,"zihiragana",12376,"zikatakana",12472,"zinorhebrew",1454,"zlinebelow",7829,"zmonospace",65370,"zohiragana",12382,"zokatakana",12478,"zparen",9397,"zretroflexhook",656,"zstroke",438,"zuhiragana",12378,"zukatakana",12474,".notdef",0,"angbracketleftbig",9001,"angbracketleftBig",9001,"angbracketleftbigg",9001,"angbracketleftBigg",9001,"angbracketrightBig",9002,"angbracketrightbig",9002,"angbracketrightBigg",9002,"angbracketrightbigg",9002,"arrowhookleft",8618,"arrowhookright",8617,"arrowlefttophalf",8636,"arrowleftbothalf",8637,"arrownortheast",8599,"arrownorthwest",8598,"arrowrighttophalf",8640,"arrowrightbothalf",8641,"arrowsoutheast",8600,"arrowsouthwest",8601,"backslashbig",8726,"backslashBig",8726,"backslashBigg",8726,"backslashbigg",8726,"bardbl",8214,"bracehtipdownleft",65079,"bracehtipdownright",65079,"bracehtipupleft",65080,"bracehtipupright",65080,"braceleftBig",123,"braceleftbig",123,"braceleftbigg",123,"braceleftBigg",123,"bracerightBig",125,"bracerightbig",125,"bracerightbigg",125,"bracerightBigg",125,"bracketleftbig",91,"bracketleftBig",91,"bracketleftbigg",91,"bracketleftBigg",91,"bracketrightBig",93,"bracketrightbig",93,"bracketrightbigg",93,"bracketrightBigg",93,"ceilingleftbig",8968,"ceilingleftBig",8968,"ceilingleftBigg",8968,"ceilingleftbigg",8968,"ceilingrightbig",8969,"ceilingrightBig",8969,"ceilingrightbigg",8969,"ceilingrightBigg",8969,"circledotdisplay",8857,"circledottext",8857,"circlemultiplydisplay",8855,"circlemultiplytext",8855,"circleplusdisplay",8853,"circleplustext",8853,"contintegraldisplay",8750,"contintegraltext",8750,"coproductdisplay",8720,"coproducttext",8720,"floorleftBig",8970,"floorleftbig",8970,"floorleftbigg",8970,"floorleftBigg",8970,"floorrightbig",8971,"floorrightBig",8971,"floorrightBigg",8971,"floorrightbigg",8971,"hatwide",770,"hatwider",770,"hatwidest",770,"intercal",7488,"integraldisplay",8747,"integraltext",8747,"intersectiondisplay",8898,"intersectiontext",8898,"logicalanddisplay",8743,"logicalandtext",8743,"logicalordisplay",8744,"logicalortext",8744,"parenleftBig",40,"parenleftbig",40,"parenleftBigg",40,"parenleftbigg",40,"parenrightBig",41,"parenrightbig",41,"parenrightBigg",41,"parenrightbigg",41,"prime",8242,"productdisplay",8719,"producttext",8719,"radicalbig",8730,"radicalBig",8730,"radicalBigg",8730,"radicalbigg",8730,"radicalbt",8730,"radicaltp",8730,"radicalvertex",8730,"slashbig",47,"slashBig",47,"slashBigg",47,"slashbigg",47,"summationdisplay",8721,"summationtext",8721,"tildewide",732,"tildewider",732,"tildewidest",732,"uniondisplay",8899,"unionmultidisplay",8846,"unionmultitext",8846,"unionsqdisplay",8852,"unionsqtext",8852,"uniontext",8899,"vextenddouble",8741,"vextendsingle",8739]}),O=(0,t.getArrayLookupTableFactory)(function(){return["space",32,"a1",9985,"a2",9986,"a202",9987,"a3",9988,"a4",9742,"a5",9990,"a119",9991,"a118",9992,"a117",9993,"a11",9755,"a12",9758,"a13",9996,"a14",9997,"a15",9998,"a16",9999,"a105",1e4,"a17",10001,"a18",10002,"a19",10003,"a20",10004,"a21",10005,"a22",10006,"a23",10007,"a24",10008,"a25",10009,"a26",10010,"a27",10011,"a28",10012,"a6",10013,"a7",10014,"a8",10015,"a9",10016,"a10",10017,"a29",10018,"a30",10019,"a31",10020,"a32",10021,"a33",10022,"a34",10023,"a35",9733,"a36",10025,"a37",10026,"a38",10027,"a39",10028,"a40",10029,"a41",10030,"a42",10031,"a43",10032,"a44",10033,"a45",10034,"a46",10035,"a47",10036,"a48",10037,"a49",10038,"a50",10039,"a51",10040,"a52",10041,"a53",10042,"a54",10043,"a55",10044,"a56",10045,"a57",10046,"a58",10047,"a59",10048,"a60",10049,"a61",10050,"a62",10051,"a63",10052,"a64",10053,"a65",10054,"a66",10055,"a67",10056,"a68",10057,"a69",10058,"a70",10059,"a71",9679,"a72",10061,"a73",9632,"a74",10063,"a203",10064,"a75",10065,"a204",10066,"a76",9650,"a77",9660,"a78",9670,"a79",10070,"a81",9687,"a82",10072,"a83",10073,"a84",10074,"a97",10075,"a98",10076,"a99",10077,"a100",10078,"a101",10081,"a102",10082,"a103",10083,"a104",10084,"a106",10085,"a107",10086,"a108",10087,"a112",9827,"a111",9830,"a110",9829,"a109",9824,"a120",9312,"a121",9313,"a122",9314,"a123",9315,"a124",9316,"a125",9317,"a126",9318,"a127",9319,"a128",9320,"a129",9321,"a130",10102,"a131",10103,"a132",10104,"a133",10105,"a134",10106,"a135",10107,"a136",10108,"a137",10109,"a138",10110,"a139",10111,"a140",10112,"a141",10113,"a142",10114,"a143",10115,"a144",10116,"a145",10117,"a146",10118,"a147",10119,"a148",10120,"a149",10121,"a150",10122,"a151",10123,"a152",10124,"a153",10125,"a154",10126,"a155",10127,"a156",10128,"a157",10129,"a158",10130,"a159",10131,"a160",10132,"a161",8594,"a163",8596,"a164",8597,"a196",10136,"a165",10137,"a192",10138,"a166",10139,"a167",10140,"a168",10141,"a169",10142,"a170",10143,"a171",10144,"a172",10145,"a173",10146,"a162",10147,"a174",10148,"a175",10149,"a176",10150,"a177",10151,"a178",10152,"a179",10153,"a193",10154,"a180",10155,"a199",10156,"a181",10157,"a200",10158,"a182",10159,"a201",10161,"a183",10162,"a184",10163,"a197",10164,"a185",10165,"a194",10166,"a198",10167,"a186",10168,"a195",10169,"a187",10170,"a188",10171,"a189",10172,"a190",10173,"a191",10174,"a89",10088,"a90",10089,"a93",10090,"a94",10091,"a91",10092,"a92",10093,"a205",10094,"a85",10095,"a206",10096,"a86",10097,"a87",10098,"a88",10099,"a95",10100,"a96",10101,".notdef",0]})},(he,l,w)=>{w.r(l),w.d(l,{clearUnicodeCaches:()=>I,getCharUnicodeCategory:()=>n,getNormalizedUnicodes:()=>L,getUnicodeForGlyph:()=>P,getUnicodeRangeFor:()=>N,mapSpecialUnicodeValues:()=>O,reverseIfRtl:()=>k});var t=w(136);const i=(0,t.getLookupTableFactory)(function(B){B[63721]=169,B[63193]=169,B[63720]=174,B[63194]=174,B[63722]=8482,B[63195]=8482,B[63729]=9127,B[63730]=9128,B[63731]=9129,B[63740]=9131,B[63741]=9132,B[63742]=9133,B[63726]=9121,B[63727]=9122,B[63728]=9123,B[63737]=9124,B[63738]=9125,B[63739]=9126,B[63723]=9115,B[63724]=9116,B[63725]=9117,B[63734]=9118,B[63735]=9119,B[63736]=9120});function O(B){return B>=65520&&B<=65535?0:B>=62976&&B<=63743?i()[B]||B:B===173?45:B}function P(B,h){let c=h[B];if(c!==void 0)return c;if(!B)return-1;if(B[0]==="u"){const C=B.length;let u;if(C===7&&B[1]==="n"&&B[2]==="i")u=B.substring(3);else if(C>=5&&C<=7)u=B.substring(1);else return-1;if(u===u.toUpperCase()&&(c=parseInt(u,16),c>=0))return c}return-1}const e=[{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 N(B){for(let h=0,c=e.length;h<c;h++){const C=e[h];if(B>=C.begin&&B<C.end)return h}return-1}function D(B){let h=e[13];return B>=h.begin&&B<h.end||(h=e[11],B>=h.begin&&B<h.end)}const L=(0,t.getArrayLookupTableFactory)(function(){return["¨"," ̈","¯"," ̄","´"," ́","µ","μ","¸"," ̧","IJ","IJ","ij","ij","Ŀ","L·","ŀ","l·","ʼn","ʼn","ſ","s","DŽ","DŽ","Dž","Dž","dž","dž","LJ","LJ","Lj","Lj","lj","lj","NJ","NJ","Nj","Nj","nj","nj","DZ","DZ","Dz","Dz","dz","dz","˘"," ̆","˙"," ̇","˚"," ̊","˛"," ̨","˜"," ̃","˝"," ̋","ͺ"," ͅ","΄"," ́","ϐ","β","ϑ","θ","ϒ","Υ","ϕ","φ","ϖ","π","ϰ","κ","ϱ","ρ","ϲ","ς","ϴ","Θ","ϵ","ε","Ϲ","Σ","և","եւ","ٵ","اٴ","ٶ","وٴ","ٷ","ۇٴ","ٸ","يٴ","ำ","ํา","ຳ","ໍາ","ໜ","ຫນ","ໝ","ຫມ","ཷ","ྲཱྀ","ཹ","ླཱྀ","ẚ","aʾ",""," ̓","᾿"," ̓",""," ͂",""," ̔",""," ",""," ",""," ",""," ",""," ",""," ",""," ",""," ","‗"," ̳","",".","‥","..","…","...","″","","‴","","‶","","‷","","‼","!!","‾"," ̅","⁇","??","⁈","?!","⁉","!?","⁗","",""," ","₨","Rs","℀","a/c","℁","a/s","℃","°C","℅","c/o","℆","c/u","ℇ","Ɛ","℉","°F","№","No","℡","TEL","ℵ","א","ℶ","ב","ℷ","ג","ℸ","ד","℻","FAX","","I","Ⅱ","II","Ⅲ","III","Ⅳ","IV","","V","Ⅵ","VI","Ⅶ","VII","Ⅷ","VIII","Ⅸ","IX","","X","Ⅺ","XI","Ⅻ","XII","","L","","C","","D","","M","","i","ⅱ","ii","ⅲ","iii","ⅳ","iv","","v","ⅵ","vi","ⅶ","vii","ⅷ","viii","ⅸ","ix","","x","ⅺ","xi","ⅻ","xii","","l","","c","","d","ⅿ","m","∬","∫∫","∭","∫∫∫","∯","∮∮","∰","∮∮∮","⑴","(1)","⑵","(2)","⑶","(3)","⑷","(4)","⑸","(5)","⑹","(6)","⑺","(7)","⑻","(8)","⑼","(9)","⑽","(10)","⑾","(11)","⑿","(12)","⒀","(13)","⒁","(14)","⒂","(15)","⒃","(16)","⒄","(17)","⒅","(18)","⒆","(19)","⒇","(20)","⒈","1.","⒉","2.","⒊","3.","⒋","4.","⒌","5.","⒍","6.","⒎","7.","⒏","8.","⒐","9.","⒑","10.","⒒","11.","⒓","12.","⒔","13.","⒕","14.","⒖","15.","⒗","16.","⒘","17.","⒙","18.","⒚","19.","⒛","20.","⒜","(a)","⒝","(b)","⒞","(c)","⒟","(d)","⒠","(e)","⒡","(f)","⒢","(g)","⒣","(h)","⒤","(i)","⒥","(j)","⒦","(k)","⒧","(l)","⒨","(m)","⒩","(n)","⒪","(o)","⒫","(p)","⒬","(q)","⒭","(r)","⒮","(s)","⒯","(t)","⒰","(u)","⒱","(v)","⒲","(w)","⒳","(x)","⒴","(y)","⒵","(z)","⨌","∫∫∫∫","⩴","::=","⩵","==","⩶","===","⺟","母","⻳","龟","⼀","一","⼁","丨","","","","丿","⼄","乙","⼅","亅","⼆","二","⼇","亠","⼈","人","⼉","儿","⼊","入","⼋","八","⼌","冂","⼍","冖","⼎","冫","⼏","几","⼐","凵","⼑","刀","⼒","力","⼓","勹","⼔","匕","⼕","匚","⼖","匸","⼗","十","⼘","卜","⼙","卩","⼚","厂","⼛","厶","⼜","又","⼝","口","⼞","囗","⼟","土","⼠","士","⼡","夂","⼢","夊","⼣","夕","⼤","大","⼥","女","⼦","子","⼧","宀","⼨","寸","⼩","小","⼪","尢","⼫","尸","⼬","屮","⼭","山","⼮","巛","⼯","工","⼰","己","⼱","巾","⼲","干","⼳","幺","⼴","广","⼵","廴","⼶","廾","⼷","弋","⼸","弓","⼹","彐","⼺","彡","⼻","彳","⼼","心","⼽","戈","⼾","戶","⼿","手","⽀","支","⽁","攴","⽂","文","⽃","斗","⽄","斤","⽅","方","⽆","无","⽇","日","⽈","曰","⽉","月","⽊","木","⽋","欠","⽌","止","⽍","歹","⽎","殳","⽏","毋","⽐","比","⽑","毛","⽒","氏","⽓","气","⽔","水","⽕","火","⽖","爪","⽗","父","⽘","爻","⽙","爿","⽚","片","⽛","牙","⽜","牛","⽝","犬","⽞","玄","⽟","玉","⽠","瓜","⽡","瓦","⽢","甘","⽣","生","⽤","用","⽥","田","⽦","疋","⽧","疒","⽨","癶","⽩","白","⽪","皮","⽫","皿","⽬","目","⽭","矛","⽮","矢","⽯","石","⽰","示","⽱","禸","⽲","禾","⽳","穴","⽴","立","⽵","竹","⽶","米","⽷","糸","⽸","缶","⽹","网","⽺","羊","⽻","羽","⽼","老","⽽","而","⽾","耒","⽿","耳","⾀","聿","⾁","肉","⾂","臣","⾃","自","⾄","至","⾅","臼","⾆","舌","⾇","舛","⾈","舟","⾉","艮","⾊","色","⾋","艸","⾌","虍","⾍","虫","⾎","血","⾏","行","⾐","衣","⾑","襾","⾒","見","⾓","角","⾔","言","⾕","谷","⾖","豆","⾗","豕","⾘","豸","⾙","貝","⾚","赤","⾛","走","⾜","足","⾝","身","⾞","車","⾟","辛","⾠","辰","⾡","辵","⾢","邑","⾣","酉","⾤","釆","⾥","里","⾦","金","⾧","長","⾨","門","⾩","阜","⾪","隶","⾫","隹","⾬","雨","⾭","靑","⾮","非","⾯","面","⾰","革","⾱","韋","⾲","韭","⾳","音","⾴","頁","⾵","風","⾶","飛","⾷","食","⾸","首","⾹","香","⾺","馬","⾻","骨","⾼","高","⾽","髟","⾾","鬥","⾿","鬯","⿀","鬲","⿁","鬼","⿂","魚","⿃","鳥","⿄","鹵","⿅","鹿","⿆","麥","⿇","麻","⿈","黃","⿉","黍","⿊","黑","⿋","黹","⿌","黽","⿍","鼎","⿎","鼓","⿏","鼠","⿐","鼻","⿑","齊","⿒","齒","⿓","龍","⿔","龜","⿕","龠","〶","〒","〸","十","〹","卄","〺","卅","゛"," ゙","゜"," ゚","ㄱ","ᄀ","ㄲ","ᄁ","ㄳ","ᆪ","ㄴ","ᄂ","ㄵ","ᆬ","ㄶ","ᆭ","ㄷ","ᄃ","ㄸ","ᄄ","ㄹ","ᄅ","ㄺ","ᆰ","ㄻ","ᆱ","ㄼ","ᆲ","ㄽ","ᆳ","ㄾ","ᆴ","ㄿ","ᆵ","ㅀ","ᄚ","ㅁ","ᄆ","ㅂ","ᄇ","ㅃ","ᄈ","ㅄ","ᄡ","ㅅ","ᄉ","ㅆ","ᄊ","ㅇ","ᄋ","ㅈ","ᄌ","ㅉ","ᄍ","ㅊ","ᄎ","ㅋ","ᄏ","ㅌ","ᄐ","ㅍ","ᄑ","ㅎ","ᄒ","ㅏ","ᅡ","ㅐ","ᅢ","ㅑ","ᅣ","ㅒ","ᅤ","ㅓ","ᅥ","ㅔ","ᅦ","ㅕ","ᅧ","ㅖ","ᅨ","ㅗ","ᅩ","ㅘ","ᅪ","ㅙ","ᅫ","ㅚ","ᅬ","ㅛ","ᅭ","ㅜ","ᅮ","ㅝ","ᅯ","ㅞ","ᅰ","ㅟ","ᅱ","ㅠ","ᅲ","ㅡ","ᅳ","ㅢ","ᅴ","ㅣ","ᅵ","","","ㅥ","ᄔ","ㅦ","ᄕ","ㅧ","ᇇ","ㅨ","ᇈ","ㅩ","ᇌ","ㅪ","ᇎ","ㅫ","ᇓ","ㅬ","ᇗ","ㅭ","ᇙ","ㅮ","ᄜ","ㅯ","ᇝ","ㅰ","ᇟ","ㅱ","ᄝ","ㅲ","ᄞ","ㅳ","ᄠ","ㅴ","ᄢ","ㅵ","ᄣ","ㅶ","ᄧ","ㅷ","ᄩ","ㅸ","ᄫ","ㅹ","ᄬ","ㅺ","ᄭ","ㅻ","ᄮ","ㅼ","ᄯ","ㅽ","ᄲ","ㅾ","ᄶ","ㅿ","ᅀ","ㆀ","ᅇ","ㆁ","ᅌ","ㆂ","ᇱ","ㆃ","ᇲ","ㆄ","ᅗ","ㆅ","ᅘ","ㆆ","ᅙ","ㆇ","ᆄ","ㆈ","ᆅ","ㆉ","ᆈ","ㆊ","ᆑ","ㆋ","ᆒ","ㆌ","ᆔ","ㆍ","ᆞ","ㆎ","ᆡ","㈀","(ᄀ)","㈁","(ᄂ)","㈂","(ᄃ)","㈃","(ᄅ)","㈄","(ᄆ)","㈅","(ᄇ)","㈆","(ᄉ)","㈇","(ᄋ)","㈈","(ᄌ)","㈉","(ᄎ)","㈊","(ᄏ)","㈋","(ᄐ)","㈌","(ᄑ)","㈍","(ᄒ)","㈎","(가)","㈏","(나)","㈐","(다)","㈑","(라)","㈒","(마)","㈓","(바)","㈔","(사)","㈕","(아)","㈖","(자)","㈗","(차)","㈘","(카)","㈙","(타)","㈚","(파)","㈛","(하)","㈜","(주)","㈝","(오전)","㈞","(오후)","㈠","(一)","㈡","(二)","㈢","(三)","㈣","(四)","㈤","(五)","㈥","(六)","㈦","(七)","㈧","(八)","㈨","(九)","㈩","(十)","㈪","(月)","㈫","(火)","㈬","(水)","㈭","(木)","㈮","(金)","㈯","(土)","㈰","(日)","㈱","(株)","㈲","(有)","㈳","(社)","㈴","(名)","㈵","(特)","㈶","(財)","㈷","(祝)","㈸","(労)","㈹","(代)","㈺","(呼)","㈻","(学)","㈼","(監)","㈽","(企)","㈾","(資)","㈿","(協)","㉀","(祭)","㉁","(休)","㉂","(自)","㉃","(至)","㋀","1月","㋁","2月","㋂","3月","㋃","4月","㋄","5月","㋅","6月","㋆","7月","㋇","8月","㋈","9月","㋉","10月","㋊","11月","㋋","12月","㍘","0点","㍙","1点","㍚","2点","㍛","3点","㍜","4点","㍝","5点","㍞","6点","㍟","7点","㍠","8点","㍡","9点","㍢","10点","㍣","11点","㍤","12点","㍥","13点","㍦","14点","㍧","15点","㍨","16点","㍩","17点","㍪","18点","㍫","19点","㍬","20点","㍭","21点","㍮","22点","㍯","23点","㍰","24点","㏠","1日","㏡","2日","㏢","3日","㏣","4日","㏤","5日","㏥","6日","㏦","7日","㏧","8日","㏨","9日","㏩","10日","㏪","11日","㏫","12日","㏬","13日","㏭","14日","㏮","15日","㏯","16日","㏰","17日","㏱","18日","㏲","19日","㏳","20日","㏴","21日","㏵","22日","㏶","23日","㏷","24日","㏸","25日","㏹","26日","㏺","27日","㏻","28日","㏼","29日","㏽","30日","㏾","31日","ff","ff","fi","fi","fl","fl","ffi","ffi","ffl","ffl","ſt","ſt","st","st","ﬓ","մն","ﬔ","մե","ﬕ","մի","ﬖ","վն","ﬗ","մխ","ﭏ","אל","ﭐ","ٱ","ﭑ","ٱ","ﭒ","ٻ","ﭓ","ٻ","ﭔ","ٻ","ﭕ","ٻ","ﭖ","پ","ﭗ","پ","ﭘ","پ","ﭙ","پ","ﭚ","ڀ","ﭛ","ڀ","ﭜ","ڀ","ﭝ","ڀ","ﭞ","ٺ","ﭟ","ٺ","ﭠ","ٺ","ﭡ","ٺ","ﭢ","ٿ","ﭣ","ٿ","ﭤ","ٿ","ﭥ","ٿ","ﭦ","ٹ","ﭧ","ٹ","ﭨ","ٹ","ﭩ","ٹ","ﭪ","ڤ","ﭫ","ڤ","ﭬ","ڤ","ﭭ","ڤ","ﭮ","ڦ","ﭯ","ڦ","ﭰ","ڦ","ﭱ","ڦ","ﭲ","ڄ","ﭳ","ڄ","ﭴ","ڄ","ﭵ","ڄ","ﭶ","ڃ","ﭷ","ڃ","ﭸ","ڃ","ﭹ","ڃ","ﭺ","چ","ﭻ","چ","ﭼ","چ","ﭽ","چ","ﭾ","ڇ","ﭿ","ڇ","ﮀ","ڇ","ﮁ","ڇ","ﮂ","ڍ","ﮃ","ڍ","ﮄ","ڌ","ﮅ","ڌ","ﮆ","ڎ","ﮇ","ڎ","ﮈ","ڈ","ﮉ","ڈ","ﮊ","ژ","ﮋ","ژ","ﮌ","ڑ","ﮍ","ڑ","ﮎ","ک","ﮏ","ک","ﮐ","ک","ﮑ","ک","ﮒ","گ","ﮓ","گ","ﮔ","گ","ﮕ","گ","ﮖ","ڳ","ﮗ","ڳ","ﮘ","ڳ","ﮙ","ڳ","ﮚ","ڱ","ﮛ","ڱ","ﮜ","ڱ","ﮝ","ڱ","ﮞ","ں","ﮟ","ں","ﮠ","ڻ","ﮡ","ڻ","ﮢ","ڻ","ﮣ","ڻ","ﮤ","ۀ","ﮥ","ۀ","","ہ","","ہ","","ہ","","ہ","","ھ","","ھ","","ھ","","ھ","ﮮ","ے","ﮯ","ے","ﮰ","ۓ","ﮱ","ۓ","ﯓ","ڭ","ﯔ","ڭ","ﯕ","ڭ","ﯖ","ڭ","ﯗ","ۇ","ﯘ","ۇ","ﯙ","ۆ","ﯚ","ۆ","ﯛ","ۈ","ﯜ","ۈ","ﯝ","ٷ","ﯞ","ۋ","ﯟ","ۋ","ﯠ","ۅ","ﯡ","ۅ","ﯢ","ۉ","ﯣ","ۉ","ﯤ","ې","ﯥ","ې","ﯦ","ې","ﯧ","ې","ﯨ","ى","ﯩ","ى","ﯪ","ئا","ﯫ","ئا","ﯬ","ئە","ﯭ","ئە","ﯮ","ئو","ﯯ","ئو","ﯰ","ئۇ","ﯱ","ئۇ","ﯲ","ئۆ","ﯳ","ئۆ","ﯴ","ئۈ","ﯵ","ئۈ","ﯶ","ئې","ﯷ","ئې","ﯸ","ئې","ﯹ","ئى","ﯺ","ئى","ﯻ","ئى","ﯼ","ی","ﯽ","ی","ﯾ","ی","ﯿ","ی","ﰀ","ئج","ﰁ","ئح","ﰂ","ئم","ﰃ","ئى","ﰄ","ئي","ﰅ","بج","ﰆ","بح","ﰇ","بخ","ﰈ","بم","ﰉ","بى","ﰊ","بي","ﰋ","تج","ﰌ","تح","ﰍ","تخ","ﰎ","تم","ﰏ","تى","ﰐ","تي","ﰑ","ثج","ﰒ","ثم","ﰓ","ثى","ﰔ","ثي","ﰕ","جح","ﰖ","جم","ﰗ","حج","ﰘ","حم","ﰙ","خج","ﰚ","خح","ﰛ","خم","ﰜ","سج","ﰝ","سح","ﰞ","سخ","ﰟ","سم","ﰠ","صح","ﰡ","صم","ﰢ","ضج","ﰣ","ضح","ﰤ","ضخ","ﰥ","ضم","ﰦ","طح","ﰧ","طم","ﰨ","ظم","ﰩ","عج","ﰪ","عم","ﰫ","غج","ﰬ","غم","ﰭ","فج","ﰮ","فح","ﰯ","فخ","ﰰ","فم","ﰱ","فى","ﰲ","في","ﰳ","قح","ﰴ","قم","ﰵ","قى","ﰶ","قي","ﰷ","كا","ﰸ","كج","ﰹ","كح","ﰺ","كخ","ﰻ","كل","ﰼ","كم","ﰽ","كى","ﰾ","كي","ﰿ","لج","ﱀ","لح","ﱁ","لخ","ﱂ","لم","ﱃ","لى","ﱄ","لي","ﱅ","مج","ﱆ","مح","ﱇ","مخ","ﱈ","مم","ﱉ","مى","ﱊ","مي","ﱋ","نج","ﱌ","نح","ﱍ","نخ","ﱎ","نم","ﱏ","نى","ﱐ","ني","ﱑ","هج","ﱒ","هم","ﱓ","هى","ﱔ","هي","ﱕ","يج","ﱖ","يح","ﱗ","يخ","ﱘ","يم","ﱙ","يى","ﱚ","يي","ﱛ","ذٰ","ﱜ","رٰ","ﱝ","ىٰ","ﱞ"," ٌّ","ﱟ"," ٍّ","ﱠ"," َّ","ﱡ"," ُّ","ﱢ"," ِّ","ﱣ"," ّٰ","ﱤ","ئر","ﱥ","ئز","ﱦ","ئم","ﱧ","ئن","ﱨ","ئى","ﱩ","ئي","ﱪ","بر","ﱫ","بز","ﱬ","بم","ﱭ","بن","ﱮ","بى","ﱯ","بي","ﱰ","تر","ﱱ","تز","ﱲ","تم","ﱳ","تن","ﱴ","تى","ﱵ","تي","ﱶ","ثر","ﱷ","ثز","ﱸ","ثم","ﱹ","ثن","ﱺ","ثى","ﱻ","ثي","ﱼ","فى","ﱽ","في","ﱾ","قى","ﱿ","قي","ﲀ","كا","ﲁ","كل","ﲂ","كم","ﲃ","كى","ﲄ","كي","ﲅ","لم","ﲆ","لى","ﲇ","لي","ﲈ","ما","ﲉ","مم","ﲊ","نر","ﲋ","نز","ﲌ","نم","ﲍ","نن","ﲎ","نى","ﲏ","ني","ﲐ","ىٰ","ﲑ","ير","ﲒ","يز","ﲓ","يم","ﲔ","ين","ﲕ","يى","ﲖ","يي","ﲗ","ئج","ﲘ","ئح","ﲙ","ئخ","ﲚ","ئم","ﲛ","ئه","ﲜ","بج","ﲝ","بح","ﲞ","بخ","ﲟ","بم","ﲠ","به","ﲡ","تج","ﲢ","تح","ﲣ","تخ","ﲤ","تم","ﲥ","ته","ﲦ","ثم","ﲧ","جح","ﲨ","جم","ﲩ","حج","ﲪ","حم","ﲫ","خج","ﲬ","خم","ﲭ","سج","ﲮ","سح","ﲯ","سخ","ﲰ","سم","ﲱ","صح","ﲲ","صخ","ﲳ","صم","ﲴ","ضج","ﲵ","ضح","ﲶ","ضخ","ﲷ","ضم","ﲸ","طح","ﲹ","ظم","ﲺ","عج","ﲻ","عم","ﲼ","غج","ﲽ","غم","ﲾ","فج","ﲿ","فح","ﳀ","فخ","ﳁ","فم","ﳂ","قح","ﳃ","قم","ﳄ","كج","ﳅ","كح","ﳆ","كخ","ﳇ","كل","ﳈ","كم","ﳉ","لج","ﳊ","لح","ﳋ","لخ","ﳌ","لم","ﳍ","له","ﳎ","مج","ﳏ","مح","ﳐ","مخ","ﳑ","مم","ﳒ","نج","ﳓ","نح","ﳔ","نخ","ﳕ","نم","ﳖ","نه","ﳗ","هج","ﳘ","هم","ﳙ","هٰ","ﳚ","يج","ﳛ","يح","ﳜ","يخ","ﳝ","يم","ﳞ","يه","ﳟ","ئم","ﳠ","ئه","ﳡ","بم","ﳢ","به","ﳣ","تم","ﳤ","ته","ﳥ","ثم","ﳦ","ثه","ﳧ","سم","ﳨ","سه","ﳩ","شم","ﳪ","شه","ﳫ","كل","ﳬ","كم","ﳭ","لم","ﳮ","نم","ﳯ","نه","ﳰ","يم","ﳱ","يه","ﳲ","ـَّ","ﳳ","ـُّ","ﳴ","ـِّ","ﳵ","طى","ﳶ","طي","ﳷ","عى","ﳸ","عي","ﳹ","غى","ﳺ","غي","ﳻ","سى","ﳼ","سي","ﳽ","شى","ﳾ","شي","ﳿ","حى","ﴀ","حي","ﴁ","جى","ﴂ","جي","ﴃ","خى","ﴄ","خي","ﴅ","صى","ﴆ","صي","ﴇ","ضى","ﴈ","ضي","ﴉ","شج","ﴊ","شح","ﴋ","شخ","ﴌ","شم","ﴍ","شر","ﴎ","سر","ﴏ","صر","ﴐ","ضر","ﴑ","طى","ﴒ","طي","ﴓ","عى","ﴔ","عي","ﴕ","غى","ﴖ","غي","ﴗ","سى","ﴘ","سي","ﴙ","شى","ﴚ","شي","ﴛ","حى","ﴜ","حي","ﴝ","جى","ﴞ","جي","ﴟ","خى","ﴠ","خي","ﴡ","صى","ﴢ","صي","ﴣ","ضى","ﴤ","ضي","ﴥ","شج","ﴦ","شح","ﴧ","شخ","ﴨ","شم","ﴩ","شر","ﴪ","سر","ﴫ","صر","ﴬ","ضر","ﴭ","شج","ﴮ","شح","ﴯ","شخ","ﴰ","شم","ﴱ","سه","ﴲ","شه","ﴳ","طم","ﴴ","سج","ﴵ","سح","ﴶ","سخ","ﴷ","شج","ﴸ","شح","ﴹ","شخ","ﴺ","طم","ﴻ","ظم","ﴼ","اً","ﴽ","اً","ﵐ","تجم","ﵑ","تحج","ﵒ","تحج","ﵓ","تحم","ﵔ","تخم","ﵕ","تمج","ﵖ","تمح","ﵗ","تمخ","ﵘ","جمح","ﵙ","جمح","ﵚ","حمي","ﵛ","حمى","ﵜ","سحج","ﵝ","سجح","ﵞ","سجى","ﵟ","سمح","ﵠ","سمح","ﵡ","سمج","ﵢ","سمم","ﵣ","سمم","ﵤ","صحح","ﵥ","صحح","ﵦ","صمم","ﵧ","شحم","ﵨ","شحم","ﵩ","شجي","ﵪ","شمخ","ﵫ","شمخ","ﵬ","شمم","ﵭ","شمم","ﵮ","ضحى","ﵯ","ضخم","ﵰ","ضخم","ﵱ","طمح","ﵲ","طمح","ﵳ","طمم","ﵴ","طمي","ﵵ","عجم","ﵶ","عمم","ﵷ","عمم","ﵸ","عمى","ﵹ","غمم","ﵺ","غمي","ﵻ","غمى","ﵼ","فخم","ﵽ","فخم","ﵾ","قمح","ﵿ","قمم","ﶀ","لحم","ﶁ","لحي","ﶂ","لحى","ﶃ","لجج","ﶄ","لجج","ﶅ","لخم","ﶆ","لخم","ﶇ","لمح","ﶈ","لمح","ﶉ","محج","ﶊ","محم","ﶋ","محي","ﶌ","مجح","ﶍ","مجم","ﶎ","مخج","ﶏ","مخم","ﶒ","مجخ","ﶓ","همج","ﶔ","همم","ﶕ","نحم","ﶖ","نحى","ﶗ","نجم","ﶘ","نجم","ﶙ","نجى","ﶚ","نمي","ﶛ","نمى","ﶜ","يمم","ﶝ","يمم","ﶞ","بخي","ﶟ","تجي","ﶠ","تجى","ﶡ","تخي","ﶢ","تخى","ﶣ","تمي","ﶤ","تمى","ﶥ","جمي","ﶦ","جحى","ﶧ","جمى","ﶨ","سخى","ﶩ","صحي","ﶪ","شحي","ﶫ","ضحي","ﶬ","لجي","ﶭ","لمي","ﶮ","يحي","ﶯ","يجي","ﶰ","يمي","ﶱ","ممي","ﶲ","قمي","ﶳ","نحي","ﶴ","قمح","ﶵ","لحم","ﶶ","عمي","ﶷ","كمي","ﶸ","نجح","ﶹ","مخي","ﶺ","لجم","ﶻ","كمم","ﶼ","لجم","ﶽ","نجح","ﶾ","جحي","ﶿ","حجي","ﷀ","مجي","ﷁ","فمي","ﷂ","بحي","ﷃ","كمم","ﷄ","عجم","ﷅ","صمم","ﷆ","سخي","ﷇ","نجي","﹉","‾","﹊","‾","﹋","‾","﹌","‾","","_","","_","","_","ﺀ","ء","ﺁ","آ","ﺂ","آ","ﺃ","أ","ﺄ","أ","ﺅ","ؤ","ﺆ","ؤ","ﺇ","إ","ﺈ","إ","ﺉ","ئ","ﺊ","ئ","ﺋ","ئ","ﺌ","ئ","","ا","","ا","ﺏ","ب","ﺐ","ب","ﺑ","ب","ﺒ","ب","ﺓ","ة","ﺔ","ة","ﺕ","ت","ﺖ","ت","ﺗ","ت","ﺘ","ت","ﺙ","ث","ﺚ","ث","ﺛ","ث","ﺜ","ث","ﺝ","ج","ﺞ","ج","ﺟ","ج","ﺠ","ج","ﺡ","ح","ﺢ","ح","ﺣ","ح","ﺤ","ح","ﺥ","خ","ﺦ","خ","ﺧ","خ","ﺨ","خ","ﺩ","د","ﺪ","د","ﺫ","ذ","ﺬ","ذ","ﺭ","ر","ﺮ","ر","ﺯ","ز","ﺰ","ز","ﺱ","س","ﺲ","س","ﺳ","س","ﺴ","س","ﺵ","ش","ﺶ","ش","ﺷ","ش","ﺸ","ش","ﺹ","ص","ﺺ","ص","ﺻ","ص","ﺼ","ص","ﺽ","ض","ﺾ","ض","ﺿ","ض","ﻀ","ض","ﻁ","ط","ﻂ","ط","ﻃ","ط","ﻄ","ط","ﻅ","ظ","ﻆ","ظ","ﻇ","ظ","ﻈ","ظ","ﻉ","ع","ﻊ","ع","ﻋ","ع","ﻌ","ع","ﻍ","غ","ﻎ","غ","ﻏ","غ","ﻐ","غ","ﻑ","ف","ﻒ","ف","ﻓ","ف","ﻔ","ف","ﻕ","ق","ﻖ","ق","ﻗ","ق","ﻘ","ق","ﻙ","ك","ﻚ","ك","ﻛ","ك","ﻜ","ك","ﻝ","ل","ﻞ","ل","ﻟ","ل","ﻠ","ل","ﻡ","م","ﻢ","م","ﻣ","م","ﻤ","م","ﻥ","ن","ﻦ","ن","ﻧ","ن","ﻨ","ن","","ه","","ه","","ه","","ه","ﻭ","و","ﻮ","و","ﻯ","ى","ﻰ","ى","ﻱ","ي","ﻲ","ي","ﻳ","ي","ﻴ","ي","ﻵ","لآ","ﻶ","لآ","ﻷ","لأ","ﻸ","لأ","ﻹ","لإ","ﻺ","لإ","ﻻ","لا","ﻼ","لا"]});function k(B){const h=B.length;if(h<=1||!D(B.charCodeAt(0)))return B;const c=[];for(let C=h-1;C>=0;C--)c.push(B[C]);return c.join("")}const x=new RegExp("^(\\s)|(\\p{Mn})|(\\p{Cf})$","u"),g=new Map;function n(B){const h=g.get(B);if(h)return h;const c=B.match(x),C={isWhitespace:!!(c&&c[1]),isZeroWidthDiacritic:!!(c&&c[2]),isInvisibleFormatMark:!!(c&&c[3])};return g.set(B,C),C}function I(){g.clear()}},(he,l,w)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.getSerifFonts=l.getNonStdFontMap=l.getGlyphMapForStandardFonts=l.getFontNameToFileMap=void 0,l.getStandardFontName=g,l.getSymbolsFonts=l.getSupplementalGlyphMapForCalibri=l.getSupplementalGlyphMapForArialBlack=l.getStdFontMap=void 0;var t=w(136),i=w(169);const O=(0,t.getLookupTableFactory)(function(n){n["Times-Roman"]="Times-Roman",n.Helvetica="Helvetica",n.Courier="Courier",n.Symbol="Symbol",n["Times-Bold"]="Times-Bold",n["Helvetica-Bold"]="Helvetica-Bold",n["Courier-Bold"]="Courier-Bold",n.ZapfDingbats="ZapfDingbats",n["Times-Italic"]="Times-Italic",n["Helvetica-Oblique"]="Helvetica-Oblique",n["Courier-Oblique"]="Courier-Oblique",n["Times-BoldItalic"]="Times-BoldItalic",n["Helvetica-BoldOblique"]="Helvetica-BoldOblique",n["Courier-BoldOblique"]="Courier-BoldOblique",n.ArialNarrow="Helvetica",n["ArialNarrow-Bold"]="Helvetica-Bold",n["ArialNarrow-BoldItalic"]="Helvetica-BoldOblique",n["ArialNarrow-Italic"]="Helvetica-Oblique",n.ArialBlack="Helvetica",n["ArialBlack-Bold"]="Helvetica-Bold",n["ArialBlack-BoldItalic"]="Helvetica-BoldOblique",n["ArialBlack-Italic"]="Helvetica-Oblique",n["Arial-Black"]="Helvetica",n["Arial-Black-Bold"]="Helvetica-Bold",n["Arial-Black-BoldItalic"]="Helvetica-BoldOblique",n["Arial-Black-Italic"]="Helvetica-Oblique",n.Arial="Helvetica",n["Arial-Bold"]="Helvetica-Bold",n["Arial-BoldItalic"]="Helvetica-BoldOblique",n["Arial-Italic"]="Helvetica-Oblique",n.ArialMT="Helvetica",n["Arial-BoldItalicMT"]="Helvetica-BoldOblique",n["Arial-BoldMT"]="Helvetica-Bold",n["Arial-ItalicMT"]="Helvetica-Oblique",n.ArialUnicodeMS="Helvetica",n["ArialUnicodeMS-Bold"]="Helvetica-Bold",n["ArialUnicodeMS-BoldItalic"]="Helvetica-BoldOblique",n["ArialUnicodeMS-Italic"]="Helvetica-Oblique",n["Courier-BoldItalic"]="Courier-BoldOblique",n["Courier-Italic"]="Courier-Oblique",n.CourierNew="Courier",n["CourierNew-Bold"]="Courier-Bold",n["CourierNew-BoldItalic"]="Courier-BoldOblique",n["CourierNew-Italic"]="Courier-Oblique",n["CourierNewPS-BoldItalicMT"]="Courier-BoldOblique",n["CourierNewPS-BoldMT"]="Courier-Bold",n["CourierNewPS-ItalicMT"]="Courier-Oblique",n.CourierNewPSMT="Courier",n["Helvetica-BoldItalic"]="Helvetica-BoldOblique",n["Helvetica-Italic"]="Helvetica-Oblique",n["Symbol-Bold"]="Symbol",n["Symbol-BoldItalic"]="Symbol",n["Symbol-Italic"]="Symbol",n.TimesNewRoman="Times-Roman",n["TimesNewRoman-Bold"]="Times-Bold",n["TimesNewRoman-BoldItalic"]="Times-BoldItalic",n["TimesNewRoman-Italic"]="Times-Italic",n.TimesNewRomanPS="Times-Roman",n["TimesNewRomanPS-Bold"]="Times-Bold",n["TimesNewRomanPS-BoldItalic"]="Times-BoldItalic",n["TimesNewRomanPS-BoldItalicMT"]="Times-BoldItalic",n["TimesNewRomanPS-BoldMT"]="Times-Bold",n["TimesNewRomanPS-Italic"]="Times-Italic",n["TimesNewRomanPS-ItalicMT"]="Times-Italic",n.TimesNewRomanPSMT="Times-Roman",n["TimesNewRomanPSMT-Bold"]="Times-Bold",n["TimesNewRomanPSMT-BoldItalic"]="Times-BoldItalic",n["TimesNewRomanPSMT-Italic"]="Times-Italic"});l.getStdFontMap=O;const P=(0,t.getLookupTableFactory)(function(n){n.Courier="FoxitFixed.pfb",n["Courier-Bold"]="FoxitFixedBold.pfb",n["Courier-BoldOblique"]="FoxitFixedBoldItalic.pfb",n["Courier-Oblique"]="FoxitFixedItalic.pfb",n.Helvetica="FoxitSans.pfb",n["Helvetica-Bold"]="FoxitSansBold.pfb",n["Helvetica-BoldOblique"]="FoxitSansBoldItalic.pfb",n["Helvetica-Oblique"]="FoxitSansItalic.pfb",n["Times-Roman"]="FoxitSerif.pfb",n["Times-Bold"]="FoxitSerifBold.pfb",n["Times-BoldItalic"]="FoxitSerifBoldItalic.pfb",n["Times-Italic"]="FoxitSerifItalic.pfb",n.Symbol="FoxitSymbol.pfb",n.ZapfDingbats="FoxitDingbats.pfb",n["LiberationSans-Regular"]="LiberationSans-Regular.ttf",n["LiberationSans-Bold"]="LiberationSans-Bold.ttf",n["LiberationSans-Italic"]="LiberationSans-Italic.ttf",n["LiberationSans-BoldItalic"]="LiberationSans-BoldItalic.ttf"});l.getFontNameToFileMap=P;const e=(0,t.getLookupTableFactory)(function(n){n.Calibri="Helvetica",n["Calibri-Bold"]="Helvetica-Bold",n["Calibri-BoldItalic"]="Helvetica-BoldOblique",n["Calibri-Italic"]="Helvetica-Oblique",n.CenturyGothic="Helvetica",n["CenturyGothic-Bold"]="Helvetica-Bold",n["CenturyGothic-BoldItalic"]="Helvetica-BoldOblique",n["CenturyGothic-Italic"]="Helvetica-Oblique",n.ComicSansMS="Comic Sans MS",n["ComicSansMS-Bold"]="Comic Sans MS-Bold",n["ComicSansMS-BoldItalic"]="Comic Sans MS-BoldItalic",n["ComicSansMS-Italic"]="Comic Sans MS-Italic",n["ItcSymbol-Bold"]="Helvetica-Bold",n["ItcSymbol-BoldItalic"]="Helvetica-BoldOblique",n["ItcSymbol-Book"]="Helvetica",n["ItcSymbol-BookItalic"]="Helvetica-Oblique",n["ItcSymbol-Medium"]="Helvetica",n["ItcSymbol-MediumItalic"]="Helvetica-Oblique",n.LucidaConsole="Courier",n["LucidaConsole-Bold"]="Courier-Bold",n["LucidaConsole-BoldItalic"]="Courier-BoldOblique",n["LucidaConsole-Italic"]="Courier-Oblique",n["LucidaSans-Demi"]="Helvetica-Bold",n["MS-Gothic"]="MS Gothic",n["MS-Gothic-Bold"]="MS Gothic-Bold",n["MS-Gothic-BoldItalic"]="MS Gothic-BoldItalic",n["MS-Gothic-Italic"]="MS Gothic-Italic",n["MS-Mincho"]="MS Mincho",n["MS-Mincho-Bold"]="MS Mincho-Bold",n["MS-Mincho-BoldItalic"]="MS Mincho-BoldItalic",n["MS-Mincho-Italic"]="MS Mincho-Italic",n["MS-PGothic"]="MS PGothic",n["MS-PGothic-Bold"]="MS PGothic-Bold",n["MS-PGothic-BoldItalic"]="MS PGothic-BoldItalic",n["MS-PGothic-Italic"]="MS PGothic-Italic",n["MS-PMincho"]="MS PMincho",n["MS-PMincho-Bold"]="MS PMincho-Bold",n["MS-PMincho-BoldItalic"]="MS PMincho-BoldItalic",n["MS-PMincho-Italic"]="MS PMincho-Italic",n.NuptialScript="Times-Italic",n.SegoeUISymbol="Helvetica",n.Wingdings="ZapfDingbats",n["Wingdings-Regular"]="ZapfDingbats"});l.getNonStdFontMap=e;const N=(0,t.getLookupTableFactory)(function(n){n["Adobe Jenson"]=!0,n["Adobe Text"]=!0,n.Albertus=!0,n.Aldus=!0,n.Alexandria=!0,n.Algerian=!0,n["American Typewriter"]=!0,n.Antiqua=!0,n.Apex=!0,n.Arno=!0,n.Aster=!0,n.Aurora=!0,n.Baskerville=!0,n.Bell=!0,n.Bembo=!0,n["Bembo Schoolbook"]=!0,n.Benguiat=!0,n["Berkeley Old Style"]=!0,n["Bernhard Modern"]=!0,n["Berthold City"]=!0,n.Bodoni=!0,n["Bauer Bodoni"]=!0,n["Book Antiqua"]=!0,n.Bookman=!0,n["Bordeaux Roman"]=!0,n["Californian FB"]=!0,n.Calisto=!0,n.Calvert=!0,n.Capitals=!0,n.Cambria=!0,n.Cartier=!0,n.Caslon=!0,n.Catull=!0,n.Centaur=!0,n["Century Old Style"]=!0,n["Century Schoolbook"]=!0,n.Chaparral=!0,n["Charis SIL"]=!0,n.Cheltenham=!0,n["Cholla Slab"]=!0,n.Clarendon=!0,n.Clearface=!0,n.Cochin=!0,n.Colonna=!0,n["Computer Modern"]=!0,n["Concrete Roman"]=!0,n.Constantia=!0,n["Cooper Black"]=!0,n.Corona=!0,n.Ecotype=!0,n.Egyptienne=!0,n.Elephant=!0,n.Excelsior=!0,n.Fairfield=!0,n["FF Scala"]=!0,n.Folkard=!0,n.Footlight=!0,n.FreeSerif=!0,n["Friz Quadrata"]=!0,n.Garamond=!0,n.Gentium=!0,n.Georgia=!0,n.Gloucester=!0,n["Goudy Old Style"]=!0,n["Goudy Schoolbook"]=!0,n["Goudy Pro Font"]=!0,n.Granjon=!0,n["Guardian Egyptian"]=!0,n.Heather=!0,n.Hercules=!0,n["High Tower Text"]=!0,n.Hiroshige=!0,n["Hoefler Text"]=!0,n["Humana Serif"]=!0,n.Imprint=!0,n["Ionic No. 5"]=!0,n.Janson=!0,n.Joanna=!0,n.Korinna=!0,n.Lexicon=!0,n.LiberationSerif=!0,n["Liberation Serif"]=!0,n["Linux Libertine"]=!0,n.Literaturnaya=!0,n.Lucida=!0,n["Lucida Bright"]=!0,n.Melior=!0,n.Memphis=!0,n.Miller=!0,n.Minion=!0,n.Modern=!0,n["Mona Lisa"]=!0,n["Mrs Eaves"]=!0,n["MS Serif"]=!0,n["Museo Slab"]=!0,n["New York"]=!0,n["Nimbus Roman"]=!0,n["NPS Rawlinson Roadway"]=!0,n.NuptialScript=!0,n.Palatino=!0,n.Perpetua=!0,n.Plantin=!0,n["Plantin Schoolbook"]=!0,n.Playbill=!0,n["Poor Richard"]=!0,n["Rawlinson Roadway"]=!0,n.Renault=!0,n.Requiem=!0,n.Rockwell=!0,n.Roman=!0,n["Rotis Serif"]=!0,n.Sabon=!0,n.Scala=!0,n.Seagull=!0,n.Sistina=!0,n.Souvenir=!0,n.STIX=!0,n["Stone Informal"]=!0,n["Stone Serif"]=!0,n.Sylfaen=!0,n.Times=!0,n.Trajan=!0,n.Trinité=!0,n["Trump Mediaeval"]=!0,n.Utopia=!0,n["Vale Type"]=!0,n["Bitstream Vera"]=!0,n["Vera Serif"]=!0,n.Versailles=!0,n.Wanted=!0,n.Weiss=!0,n["Wide Latin"]=!0,n.Windsor=!0,n.XITS=!0});l.getSerifFonts=N;const D=(0,t.getLookupTableFactory)(function(n){n.Dingbats=!0,n.Symbol=!0,n.ZapfDingbats=!0});l.getSymbolsFonts=D;const L=(0,t.getLookupTableFactory)(function(n){n[2]=10,n[3]=32,n[4]=33,n[5]=34,n[6]=35,n[7]=36,n[8]=37,n[9]=38,n[10]=39,n[11]=40,n[12]=41,n[13]=42,n[14]=43,n[15]=44,n[16]=45,n[17]=46,n[18]=47,n[19]=48,n[20]=49,n[21]=50,n[22]=51,n[23]=52,n[24]=53,n[25]=54,n[26]=55,n[27]=56,n[28]=57,n[29]=58,n[30]=894,n[31]=60,n[32]=61,n[33]=62,n[34]=63,n[35]=64,n[36]=65,n[37]=66,n[38]=67,n[39]=68,n[40]=69,n[41]=70,n[42]=71,n[43]=72,n[44]=73,n[45]=74,n[46]=75,n[47]=76,n[48]=77,n[49]=78,n[50]=79,n[51]=80,n[52]=81,n[53]=82,n[54]=83,n[55]=84,n[56]=85,n[57]=86,n[58]=87,n[59]=88,n[60]=89,n[61]=90,n[62]=91,n[63]=92,n[64]=93,n[65]=94,n[66]=95,n[67]=96,n[68]=97,n[69]=98,n[70]=99,n[71]=100,n[72]=101,n[73]=102,n[74]=103,n[75]=104,n[76]=105,n[77]=106,n[78]=107,n[79]=108,n[80]=109,n[81]=110,n[82]=111,n[83]=112,n[84]=113,n[85]=114,n[86]=115,n[87]=116,n[88]=117,n[89]=118,n[90]=119,n[91]=120,n[92]=121,n[93]=122,n[94]=123,n[95]=124,n[96]=125,n[97]=126,n[98]=196,n[99]=197,n[100]=199,n[101]=201,n[102]=209,n[103]=214,n[104]=220,n[105]=225,n[106]=224,n[107]=226,n[108]=228,n[109]=227,n[110]=229,n[111]=231,n[112]=233,n[113]=232,n[114]=234,n[115]=235,n[116]=237,n[117]=236,n[118]=238,n[119]=239,n[120]=241,n[121]=243,n[122]=242,n[123]=244,n[124]=246,n[125]=245,n[126]=250,n[127]=249,n[128]=251,n[129]=252,n[130]=8224,n[131]=176,n[132]=162,n[133]=163,n[134]=167,n[135]=8226,n[136]=182,n[137]=223,n[138]=174,n[139]=169,n[140]=8482,n[141]=180,n[142]=168,n[143]=8800,n[144]=198,n[145]=216,n[146]=8734,n[147]=177,n[148]=8804,n[149]=8805,n[150]=165,n[151]=181,n[152]=8706,n[153]=8721,n[154]=8719,n[156]=8747,n[157]=170,n[158]=186,n[159]=8486,n[160]=230,n[161]=248,n[162]=191,n[163]=161,n[164]=172,n[165]=8730,n[166]=402,n[167]=8776,n[168]=8710,n[169]=171,n[170]=187,n[171]=8230,n[179]=8220,n[180]=8221,n[181]=8216,n[182]=8217,n[200]=193,n[203]=205,n[207]=211,n[210]=218,n[223]=711,n[224]=321,n[225]=322,n[226]=352,n[227]=353,n[228]=381,n[229]=382,n[233]=221,n[234]=253,n[252]=263,n[253]=268,n[254]=269,n[258]=258,n[260]=260,n[261]=261,n[265]=280,n[266]=281,n[267]=282,n[268]=283,n[269]=313,n[275]=323,n[276]=324,n[278]=328,n[283]=344,n[284]=345,n[285]=346,n[286]=347,n[292]=367,n[295]=377,n[296]=378,n[298]=380,n[305]=963,n[306]=964,n[307]=966,n[308]=8215,n[309]=8252,n[310]=8319,n[311]=8359,n[312]=8592,n[313]=8593,n[337]=9552,n[493]=1039,n[494]=1040,n[672]=1488,n[673]=1489,n[674]=1490,n[675]=1491,n[676]=1492,n[677]=1493,n[678]=1494,n[679]=1495,n[680]=1496,n[681]=1497,n[682]=1498,n[683]=1499,n[684]=1500,n[685]=1501,n[686]=1502,n[687]=1503,n[688]=1504,n[689]=1505,n[690]=1506,n[691]=1507,n[692]=1508,n[693]=1509,n[694]=1510,n[695]=1511,n[696]=1512,n[697]=1513,n[698]=1514,n[705]=1524,n[706]=8362,n[710]=64288,n[711]=64298,n[759]=1617,n[761]=1776,n[763]=1778,n[775]=1652,n[777]=1764,n[778]=1780,n[779]=1781,n[780]=1782,n[782]=771,n[783]=64726,n[786]=8363,n[788]=8532,n[790]=768,n[791]=769,n[792]=768,n[795]=803,n[797]=64336,n[798]=64337,n[799]=64342,n[800]=64343,n[801]=64344,n[802]=64345,n[803]=64362,n[804]=64363,n[805]=64364,n[2424]=7821,n[2425]=7822,n[2426]=7823,n[2427]=7824,n[2428]=7825,n[2429]=7826,n[2430]=7827,n[2433]=7682,n[2678]=8045,n[2679]=8046,n[2830]=1552,n[2838]=686,n[2840]=751,n[2842]=753,n[2843]=754,n[2844]=755,n[2846]=757,n[2856]=767,n[2857]=848,n[2858]=849,n[2862]=853,n[2863]=854,n[2864]=855,n[2865]=861,n[2866]=862,n[2906]=7460,n[2908]=7462,n[2909]=7463,n[2910]=7464,n[2912]=7466,n[2913]=7467,n[2914]=7468,n[2916]=7470,n[2917]=7471,n[2918]=7472,n[2920]=7474,n[2921]=7475,n[2922]=7476,n[2924]=7478,n[2925]=7479,n[2926]=7480,n[2928]=7482,n[2929]=7483,n[2930]=7484,n[2932]=7486,n[2933]=7487,n[2934]=7488,n[2936]=7490,n[2937]=7491,n[2938]=7492,n[2940]=7494,n[2941]=7495,n[2942]=7496,n[2944]=7498,n[2946]=7500,n[2948]=7502,n[2950]=7504,n[2951]=7505,n[2952]=7506,n[2954]=7508,n[2955]=7509,n[2956]=7510,n[2958]=7512,n[2959]=7513,n[2960]=7514,n[2962]=7516,n[2963]=7517,n[2964]=7518,n[2966]=7520,n[2967]=7521,n[2968]=7522,n[2970]=7524,n[2971]=7525,n[2972]=7526,n[2974]=7528,n[2975]=7529,n[2976]=7530,n[2978]=1537,n[2979]=1538,n[2980]=1539,n[2982]=1549,n[2983]=1551,n[2984]=1552,n[2986]=1554,n[2987]=1555,n[2988]=1556,n[2990]=1623,n[2991]=1624,n[2995]=1775,n[2999]=1791,n[3002]=64290,n[3003]=64291,n[3004]=64292,n[3006]=64294,n[3007]=64295,n[3008]=64296,n[3011]=1900,n[3014]=8223,n[3015]=8244,n[3017]=7532,n[3018]=7533,n[3019]=7534,n[3075]=7590,n[3076]=7591,n[3079]=7594,n[3080]=7595,n[3083]=7598,n[3084]=7599,n[3087]=7602,n[3088]=7603,n[3091]=7606,n[3092]=7607,n[3095]=7610,n[3096]=7611,n[3099]=7614,n[3100]=7615,n[3103]=7618,n[3104]=7619,n[3107]=8337,n[3108]=8338,n[3116]=1884,n[3119]=1885,n[3120]=1885,n[3123]=1886,n[3124]=1886,n[3127]=1887,n[3128]=1887,n[3131]=1888,n[3132]=1888,n[3135]=1889,n[3136]=1889,n[3139]=1890,n[3140]=1890,n[3143]=1891,n[3144]=1891,n[3147]=1892,n[3148]=1892,n[3153]=580,n[3154]=581,n[3157]=584,n[3158]=585,n[3161]=588,n[3162]=589,n[3165]=891,n[3166]=892,n[3169]=1274,n[3170]=1275,n[3173]=1278,n[3174]=1279,n[3181]=7622,n[3182]=7623,n[3282]=11799,n[3316]=578,n[3379]=42785,n[3393]=1159,n[3416]=8377});l.getGlyphMapForStandardFonts=L;const k=(0,t.getLookupTableFactory)(function(n){n[227]=322,n[264]=261,n[291]=346});l.getSupplementalGlyphMapForArialBlack=k;const x=(0,t.getLookupTableFactory)(function(n){n[1]=32,n[4]=65,n[5]=192,n[6]=193,n[9]=196,n[17]=66,n[18]=67,n[21]=268,n[24]=68,n[28]=69,n[29]=200,n[30]=201,n[32]=282,n[38]=70,n[39]=71,n[44]=72,n[47]=73,n[48]=204,n[49]=205,n[58]=74,n[60]=75,n[62]=76,n[68]=77,n[69]=78,n[75]=79,n[76]=210,n[80]=214,n[87]=80,n[89]=81,n[90]=82,n[92]=344,n[94]=83,n[97]=352,n[100]=84,n[104]=85,n[109]=220,n[115]=86,n[116]=87,n[121]=88,n[122]=89,n[124]=221,n[127]=90,n[129]=381,n[258]=97,n[259]=224,n[260]=225,n[263]=228,n[268]=261,n[271]=98,n[272]=99,n[273]=263,n[275]=269,n[282]=100,n[286]=101,n[287]=232,n[288]=233,n[290]=283,n[295]=281,n[296]=102,n[336]=103,n[346]=104,n[349]=105,n[350]=236,n[351]=237,n[361]=106,n[364]=107,n[367]=108,n[371]=322,n[373]=109,n[374]=110,n[381]=111,n[382]=242,n[383]=243,n[386]=246,n[393]=112,n[395]=113,n[396]=114,n[398]=345,n[400]=115,n[401]=347,n[403]=353,n[410]=116,n[437]=117,n[442]=252,n[448]=118,n[449]=119,n[454]=120,n[455]=121,n[457]=253,n[460]=122,n[462]=382,n[463]=380,n[853]=44,n[855]=58,n[856]=46,n[876]=47,n[878]=45,n[882]=45,n[894]=40,n[895]=41,n[896]=91,n[897]=93,n[923]=64,n[1004]=48,n[1005]=49,n[1006]=50,n[1007]=51,n[1008]=52,n[1009]=53,n[1010]=54,n[1011]=55,n[1012]=56,n[1013]=57,n[1081]=37,n[1085]=43,n[1086]=45});l.getSupplementalGlyphMapForCalibri=x;function g(n){const I=(0,i.normalizeFontName)(n);return O()[I]}},(he,l,w)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.ToUnicodeMap=l.IdentityToUnicodeMap=void 0;var t=w(2);class i{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];this._map=e}get length(){return this._map.length}forEach(e){for(const N in this._map)e(N,this._map[N].charCodeAt(0))}has(e){return this._map[e]!==void 0}get(e){return this._map[e]}charCodeOf(e){const N=this._map;if(N.length<=65536)return N.indexOf(e);for(const D in N)if(N[D]===e)return D|0;return-1}amend(e){for(const N in e)this._map[N]=e[N]}}l.ToUnicodeMap=i;class O{constructor(e,N){this.firstChar=e,this.lastChar=N}get length(){return this.lastChar+1-this.firstChar}forEach(e){for(let N=this.firstChar,D=this.lastChar;N<=D;N++)e(N,N)}has(e){return this.firstChar<=e&&e<=this.lastChar}get(e){if(this.firstChar<=e&&e<=this.lastChar)return String.fromCharCode(e)}charCodeOf(e){return Number.isInteger(e)&&e>=this.firstChar&&e<=this.lastChar?e:-1}amend(e){(0,t.unreachable)("Should not call amend()")}}l.IdentityToUnicodeMap=O},(he,l,w)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.CFFFont=void 0;var t=w(166),i=w(169),O=w(2);class P{constructor(N,D){this.properties=D;const L=new t.CFFParser(N,D,i.SEAC_ANALYSIS_ENABLED);this.cff=L.parse(),this.cff.duplicateFirstGlyph();const k=new t.CFFCompiler(this.cff);this.seacs=this.cff.seacs;try{this.data=k.compile()}catch{(0,O.warn)("Failed to compile font "+D.loadedName),this.data=N}this._createBuiltInEncoding()}get numGlyphs(){return this.cff.charStrings.count}getCharset(){return this.cff.charset.charset}getGlyphMapping(){const N=this.cff,D=this.properties,{cidToGidMap:L,cMap:k}=D,x=N.charset.charset;let g,n;if(D.composite){let B;if(L&&L.length>0){B=Object.create(null);for(let c=0,C=L.length;c<C;c++){const u=L[c];u!==void 0&&(B[u]=c)}}g=Object.create(null);let h;if(N.isCIDFont)for(n=0;n<x.length;n++){const c=x[n];h=k.charCodeOf(c),B&&B[h]!==void 0&&(h=B[h]),g[h]=n}else for(n=0;n<N.charStrings.count;n++)h=k.charCodeOf(n),g[h]=n;return g}let I=N.encoding?N.encoding.encoding:null;return D.isInternalFont&&(I=D.defaultEncoding),g=(0,i.type1FontGlyphMapping)(D,I,x),g}hasGlyphId(N){return this.cff.hasGlyphId(N)}_createBuiltInEncoding(){const{charset:N,encoding:D}=this.cff;if(!N||!D)return;const L=N.charset,k=D.encoding,x=[];for(const g in k){const n=k[g];if(n>=0){const I=L[n];I&&(x[g]=I)}}x.length>0&&(this.properties.builtInEncoding=x)}}l.CFFFont=P},(he,l,w)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.FontRendererFactory=void 0;var t=w(2),i=w(166),O=w(170),P=w(168),e=w(141);function N(s,d){return(s[d]<<24|s[d+1]<<16|s[d+2]<<8|s[d+3])>>>0}function D(s,d){return s[d]<<8|s[d+1]}function L(s,d){return(s[d]<<24|s[d+1]<<16)>>16}function k(s,d){return s[d]<<24>>24}function x(s,d){return L(s,d)/16384}function g(s){const d=s.length;let S=32768;return d<1240?S=107:d<33900&&(S=1131),S}function n(s,d,S){const r=D(s,d+2)===1?N(s,d+8):N(s,d+16),o=D(s,d+r);let A,p,v;if(o===4){D(s,d+r+2);const R=D(s,d+r+6)>>1;for(p=d+r+14,A=[],v=0;v<R;v++,p+=2)A[v]={end:D(s,p)};for(p+=2,v=0;v<R;v++,p+=2)A[v].start=D(s,p);for(v=0;v<R;v++,p+=2)A[v].idDelta=D(s,p);for(v=0;v<R;v++,p+=2){let T=D(s,p);if(T!==0){A[v].ids=[];for(let y=0,H=A[v].end-A[v].start+1;y<H;y++)A[v].ids[y]=D(s,p+T),T+=2}}return A}else if(o===12){const R=N(s,d+r+12);for(p=d+r+16,A=[],v=0;v<R;v++)d=N(s,p),A.push({start:d,end:N(s,p+4),idDelta:N(s,p+8)-d}),p+=12;return A}throw new t.FormatError(`unsupported cmap: ${o}`)}function I(s,d,S,r){const o={},p=new i.CFFParser(new e.Stream(s,d,S-d),o,r).parse();return{glyphs:p.charStrings.objects,subrs:p.topDict.privateDict&&p.topDict.privateDict.subrsIndex&&p.topDict.privateDict.subrsIndex.objects,gsubrs:p.globalSubrIndex&&p.globalSubrIndex.objects,isCFFCIDFont:p.isCIDFont,fdSelect:p.fdSelect,fdArray:p.fdArray}}function B(s,d,S){let r,o;S?(r=4,o=N):(r=2,o=(v,R)=>2*D(v,R));const A=[];let p=o(d,0);for(let v=r;v<d.length;v+=r){const R=o(d,v);A.push(s.subarray(p,R)),p=R}return A}function h(s,d){const S=d.codePointAt(0);let r=0,o=0,A=s.length-1;for(;o<A;){const p=o+A+1>>1;S<s[p].start?A=p-1:o=p}return s[o].start<=S&&S<=s[o].end&&(r=s[o].idDelta+(s[o].ids?s[o].ids[S-s[o].start]:S)&65535),{charCode:S,glyphId:r}}function c(s,d,S){function r(H,z){d.push({cmd:"moveTo",args:[H,z]})}function o(H,z){d.push({cmd:"lineTo",args:[H,z]})}function A(H,z,$,j){d.push({cmd:"quadraticCurveTo",args:[H,z,$,j]})}let p=0;const v=L(s,p);let R,T=0,y=0;if(p+=10,v<0)do{R=D(s,p);const H=D(s,p+2);p+=4;let z,$;R&1?(R&2?(z=L(s,p),$=L(s,p+2)):(z=D(s,p),$=D(s,p+2)),p+=4):R&2?(z=k(s,p++),$=k(s,p++)):(z=s[p++],$=s[p++]),R&2?(T=z,y=$):(T=0,y=0);let j=1,V=1,ee=0,U=0;R&8?(j=V=x(s,p),p+=2):R&64?(j=x(s,p),V=x(s,p+2),p+=4):R&128&&(j=x(s,p),ee=x(s,p+2),U=x(s,p+4),V=x(s,p+6),p+=8);const G=S.glyphs[H];G&&(d.push({cmd:"save"},{cmd:"transform",args:[j,ee,U,V,T,y]}),c(G,d,S),d.push({cmd:"restore"}))}while(R&32);else{const H=[];let z,$;for(z=0;z<v;z++)H.push(D(s,p)),p+=2;const j=D(s,p);p+=2+j;const V=H.at(-1)+1,ee=[];for(;ee.length<V;){R=s[p++];let G=1;for(R&8&&(G+=s[p++]);G-- >0;)ee.push({flags:R})}for(z=0;z<V;z++){switch(ee[z].flags&18){case 0:T+=L(s,p),p+=2;break;case 2:T-=s[p++];break;case 18:T+=s[p++];break}ee[z].x=T}for(z=0;z<V;z++){switch(ee[z].flags&36){case 0:y+=L(s,p),p+=2;break;case 4:y-=s[p++];break;case 36:y+=s[p++];break}ee[z].y=y}let U=0;for(p=0;p<v;p++){const G=H[p],Y=ee.slice(U,G+1);if(Y[0].flags&1)Y.push(Y[0]);else if(Y.at(-1).flags&1)Y.unshift(Y.at(-1));else{const oe={flags:1,x:(Y[0].x+Y.at(-1).x)/2,y:(Y[0].y+Y.at(-1).y)/2};Y.unshift(oe),Y.push(oe)}for(r(Y[0].x,Y[0].y),z=1,$=Y.length;z<$;z++)Y[z].flags&1?o(Y[z].x,Y[z].y):Y[z+1].flags&1?(A(Y[z].x,Y[z].y,Y[z+1].x,Y[z+1].y),z++):A(Y[z].x,Y[z].y,(Y[z].x+Y[z+1].x)/2,(Y[z].y+Y[z+1].y)/2);U=G+1}}}function C(s,d,S,r){function o(z,$){d.push({cmd:"moveTo",args:[z,$]})}function A(z,$){d.push({cmd:"lineTo",args:[z,$]})}function p(z,$,j,V,ee,U){d.push({cmd:"bezierCurveTo",args:[z,$,j,V,ee,U]})}const v=[];let R=0,T=0,y=0;function H(z){let $=0;for(;$<z.length;){let j=!1,V=z[$++],ee,U,G,Y,oe,se,Q,E,M;switch(V){case 1:y+=v.length>>1,j=!0;break;case 3:y+=v.length>>1,j=!0;break;case 4:T+=v.pop(),o(R,T),j=!0;break;case 5:for(;v.length>0;)R+=v.shift(),T+=v.shift(),A(R,T);break;case 6:for(;v.length>0&&(R+=v.shift(),A(R,T),v.length!==0);)T+=v.shift(),A(R,T);break;case 7:for(;v.length>0&&(T+=v.shift(),A(R,T),v.length!==0);)R+=v.shift(),A(R,T);break;case 8:for(;v.length>0;)ee=R+v.shift(),G=T+v.shift(),U=ee+v.shift(),Y=G+v.shift(),R=U+v.shift(),T=Y+v.shift(),p(ee,G,U,Y,R,T);break;case 10:if(E=v.pop(),M=null,S.isCFFCIDFont){const _=S.fdSelect.getFDIndex(r);if(_>=0&&_<S.fdArray.length){const J=S.fdArray[_];let K;J.privateDict&&J.privateDict.subrsIndex&&(K=J.privateDict.subrsIndex.objects),K&&(E+=g(K),M=K[E])}else(0,t.warn)("Invalid fd index for glyph index.")}else M=S.subrs[E+S.subrsBias];M&&H(M);break;case 11:return;case 12:switch(V=z[$++],V){case 34:ee=R+v.shift(),U=ee+v.shift(),oe=T+v.shift(),R=U+v.shift(),p(ee,T,U,oe,R,oe),ee=R+v.shift(),U=ee+v.shift(),R=U+v.shift(),p(ee,oe,U,T,R,T);break;case 35:ee=R+v.shift(),G=T+v.shift(),U=ee+v.shift(),Y=G+v.shift(),R=U+v.shift(),T=Y+v.shift(),p(ee,G,U,Y,R,T),ee=R+v.shift(),G=T+v.shift(),U=ee+v.shift(),Y=G+v.shift(),R=U+v.shift(),T=Y+v.shift(),p(ee,G,U,Y,R,T),v.pop();break;case 36:ee=R+v.shift(),oe=T+v.shift(),U=ee+v.shift(),se=oe+v.shift(),R=U+v.shift(),p(ee,oe,U,se,R,se),ee=R+v.shift(),U=ee+v.shift(),Q=se+v.shift(),R=U+v.shift(),p(ee,se,U,Q,R,T);break;case 37:const _=R,J=T;ee=R+v.shift(),G=T+v.shift(),U=ee+v.shift(),Y=G+v.shift(),R=U+v.shift(),T=Y+v.shift(),p(ee,G,U,Y,R,T),ee=R+v.shift(),G=T+v.shift(),U=ee+v.shift(),Y=G+v.shift(),R=U,T=Y,Math.abs(R-_)>Math.abs(T-J)?R+=v.shift():T+=v.shift(),p(ee,G,U,Y,R,T);break;default:throw new t.FormatError(`unknown operator: 12 ${V}`)}break;case 14:if(v.length>=4){const _=v.pop(),J=v.pop();T=v.pop(),R=v.pop(),d.push({cmd:"save"},{cmd:"translate",args:[R,T]});let K=h(S.cmap,String.fromCharCode(S.glyphNameMap[P.StandardEncoding[_]]));C(S.glyphs[K.glyphId],d,S,K.glyphId),d.push({cmd:"restore"}),K=h(S.cmap,String.fromCharCode(S.glyphNameMap[P.StandardEncoding[J]])),C(S.glyphs[K.glyphId],d,S,K.glyphId)}return;case 18:y+=v.length>>1,j=!0;break;case 19:y+=v.length>>1,$+=y+7>>3,j=!0;break;case 20:y+=v.length>>1,$+=y+7>>3,j=!0;break;case 21:T+=v.pop(),R+=v.pop(),o(R,T),j=!0;break;case 22:R+=v.pop(),o(R,T),j=!0;break;case 23:y+=v.length>>1,j=!0;break;case 24:for(;v.length>2;)ee=R+v.shift(),G=T+v.shift(),U=ee+v.shift(),Y=G+v.shift(),R=U+v.shift(),T=Y+v.shift(),p(ee,G,U,Y,R,T);R+=v.shift(),T+=v.shift(),A(R,T);break;case 25:for(;v.length>6;)R+=v.shift(),T+=v.shift(),A(R,T);ee=R+v.shift(),G=T+v.shift(),U=ee+v.shift(),Y=G+v.shift(),R=U+v.shift(),T=Y+v.shift(),p(ee,G,U,Y,R,T);break;case 26:for(v.length%2&&(R+=v.shift());v.length>0;)ee=R,G=T+v.shift(),U=ee+v.shift(),Y=G+v.shift(),R=U,T=Y+v.shift(),p(ee,G,U,Y,R,T);break;case 27:for(v.length%2&&(T+=v.shift());v.length>0;)ee=R+v.shift(),G=T,U=ee+v.shift(),Y=G+v.shift(),R=U+v.shift(),T=Y,p(ee,G,U,Y,R,T);break;case 28:v.push((z[$]<<24|z[$+1]<<16)>>16),$+=2;break;case 29:E=v.pop()+S.gsubrsBias,M=S.gsubrs[E],M&&H(M);break;case 30:for(;v.length>0&&(ee=R,G=T+v.shift(),U=ee+v.shift(),Y=G+v.shift(),R=U+v.shift(),T=Y+(v.length===1?v.shift():0),p(ee,G,U,Y,R,T),v.length!==0);)ee=R+v.shift(),G=T,U=ee+v.shift(),Y=G+v.shift(),T=Y+v.shift(),R=U+(v.length===1?v.shift():0),p(ee,G,U,Y,R,T);break;case 31:for(;v.length>0&&(ee=R+v.shift(),G=T,U=ee+v.shift(),Y=G+v.shift(),T=Y+v.shift(),R=U+(v.length===1?v.shift():0),p(ee,G,U,Y,R,T),v.length!==0);)ee=R,G=T+v.shift(),U=ee+v.shift(),Y=G+v.shift(),R=U+v.shift(),T=Y+(v.length===1?v.shift():0),p(ee,G,U,Y,R,T);break;default:if(V<32)throw new t.FormatError(`unknown operator: ${V}`);V<247?v.push(V-139):V<251?v.push((V-247)*256+z[$++]+108):V<255?v.push(-(V-251)*256-z[$++]-108):(v.push((z[$]<<24|z[$+1]<<16|z[$+2]<<8|z[$+3])/65536),$+=4);break}j&&(v.length=0)}}H(s)}const u=[];class m{constructor(d){this.constructor===m&&(0,t.unreachable)("Cannot initialize CompiledFont."),this.fontMatrix=d,this.compiledGlyphs=Object.create(null),this.compiledCharCodeToGlyphId=Object.create(null)}getPathJs(d){const{charCode:S,glyphId:r}=h(this.cmap,d);let o=this.compiledGlyphs[r];if(!o)try{o=this.compileGlyph(this.glyphs[r],r),this.compiledGlyphs[r]=o}catch(A){throw this.compiledGlyphs[r]=u,this.compiledCharCodeToGlyphId[S]===void 0&&(this.compiledCharCodeToGlyphId[S]=r),A}return this.compiledCharCodeToGlyphId[S]===void 0&&(this.compiledCharCodeToGlyphId[S]=r),o}compileGlyph(d,S){if(!d||d.length===0||d[0]===14)return u;let r=this.fontMatrix;if(this.isCFFCIDFont){const A=this.fdSelect.getFDIndex(S);A>=0&&A<this.fdArray.length?r=this.fdArray[A].getByName("FontMatrix")||t.FONT_IDENTITY_MATRIX:(0,t.warn)("Invalid fd index for glyph index.")}const o=[{cmd:"save"},{cmd:"transform",args:r.slice()},{cmd:"scale",args:["size","-size"]}];return this.compileGlyphImpl(d,o,S),o.push({cmd:"restore"}),o}compileGlyphImpl(){(0,t.unreachable)("Children classes should implement this.")}hasBuiltPath(d){const{charCode:S,glyphId:r}=h(this.cmap,d);return this.compiledGlyphs[r]!==void 0&&this.compiledCharCodeToGlyphId[S]!==void 0}}class X extends m{constructor(d,S,r){super(r||[488e-6,0,0,488e-6,0,0]),this.glyphs=d,this.cmap=S}compileGlyphImpl(d,S){c(d,S,this)}}class f extends m{constructor(d,S,r,o){super(r||[.001,0,0,.001,0,0]),this.glyphs=d.glyphs,this.gsubrs=d.gsubrs||[],this.subrs=d.subrs||[],this.cmap=S,this.glyphNameMap=o||(0,O.getGlyphsUnicode)(),this.gsubrsBias=g(this.gsubrs),this.subrsBias=g(this.subrs),this.isCFFCIDFont=d.isCFFCIDFont,this.fdSelect=d.fdSelect,this.fdArray=d.fdArray}compileGlyphImpl(d,S,r){C(d,S,this,r)}}class F{static create(d,S){const r=new Uint8Array(d.data);let o,A,p,v,R,T;const y=D(r,4);for(let H=0,z=12;H<y;H++,z+=16){const $=(0,t.bytesToString)(r.subarray(z,z+4)),j=N(r,z+8),V=N(r,z+12);switch($){case"cmap":o=n(r,j);break;case"glyf":A=r.subarray(j,j+V);break;case"loca":p=r.subarray(j,j+V);break;case"head":T=D(r,j+18),R=D(r,j+50);break;case"CFF ":v=I(r,j,j+V,S);break}}if(A){const H=T?[1/T,0,0,1/T,0,0]:d.fontMatrix;return new X(B(A,p,R),o,H)}return new f(v,o,d.fontMatrix,d.glyphNameMap)}}l.FontRendererFactory=F},(he,l,w)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.getMetrics=l.getFontBasicMetrics=void 0;var t=w(136);const i=(0,t.getLookupTableFactory)(function(P){P.Courier=600,P["Courier-Bold"]=600,P["Courier-BoldOblique"]=600,P["Courier-Oblique"]=600,P.Helvetica=(0,t.getLookupTableFactory)(function(e){e.space=278,e.exclam=278,e.quotedbl=355,e.numbersign=556,e.dollar=556,e.percent=889,e.ampersand=667,e.quoteright=222,e.parenleft=333,e.parenright=333,e.asterisk=389,e.plus=584,e.comma=278,e.hyphen=333,e.period=278,e.slash=278,e.zero=556,e.one=556,e.two=556,e.three=556,e.four=556,e.five=556,e.six=556,e.seven=556,e.eight=556,e.nine=556,e.colon=278,e.semicolon=278,e.less=584,e.equal=584,e.greater=584,e.question=556,e.at=1015,e.A=667,e.B=667,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=722,e.I=278,e.J=500,e.K=667,e.L=556,e.M=833,e.N=722,e.O=778,e.P=667,e.Q=778,e.R=722,e.S=667,e.T=611,e.U=722,e.V=667,e.W=944,e.X=667,e.Y=667,e.Z=611,e.bracketleft=278,e.backslash=278,e.bracketright=278,e.asciicircum=469,e.underscore=556,e.quoteleft=222,e.a=556,e.b=556,e.c=500,e.d=556,e.e=556,e.f=278,e.g=556,e.h=556,e.i=222,e.j=222,e.k=500,e.l=222,e.m=833,e.n=556,e.o=556,e.p=556,e.q=556,e.r=333,e.s=500,e.t=278,e.u=556,e.v=500,e.w=722,e.x=500,e.y=500,e.z=500,e.braceleft=334,e.bar=260,e.braceright=334,e.asciitilde=584,e.exclamdown=333,e.cent=556,e.sterling=556,e.fraction=167,e.yen=556,e.florin=556,e.section=556,e.currency=556,e.quotesingle=191,e.quotedblleft=333,e.guillemotleft=556,e.guilsinglleft=333,e.guilsinglright=333,e.fi=500,e.fl=500,e.endash=556,e.dagger=556,e.daggerdbl=556,e.periodcentered=278,e.paragraph=537,e.bullet=350,e.quotesinglbase=222,e.quotedblbase=333,e.quotedblright=333,e.guillemotright=556,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=611,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=370,e.Lslash=556,e.Oslash=778,e.OE=1e3,e.ordmasculine=365,e.ae=889,e.dotlessi=278,e.lslash=222,e.oslash=611,e.oe=944,e.germandbls=611,e.Idieresis=278,e.eacute=556,e.abreve=556,e.uhungarumlaut=556,e.ecaron=556,e.Ydieresis=667,e.divide=584,e.Yacute=667,e.Acircumflex=667,e.aacute=556,e.Ucircumflex=722,e.yacute=500,e.scommaaccent=500,e.ecircumflex=556,e.Uring=722,e.Udieresis=722,e.aogonek=556,e.Uacute=722,e.uogonek=556,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=737,e.Emacron=667,e.ccaron=500,e.aring=556,e.Ncommaaccent=722,e.lacute=222,e.agrave=556,e.Tcommaaccent=611,e.Cacute=722,e.atilde=556,e.Edotaccent=667,e.scaron=500,e.scedilla=500,e.iacute=278,e.lozenge=471,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=556,e.acircumflex=556,e.Amacron=667,e.rcaron=333,e.ccedilla=500,e.Zdotaccent=611,e.Thorn=667,e.Omacron=778,e.Racute=722,e.Sacute=667,e.dcaron=643,e.Umacron=722,e.uring=556,e.threesuperior=333,e.Ograve=778,e.Agrave=667,e.Abreve=667,e.multiply=584,e.uacute=556,e.Tcaron=611,e.partialdiff=476,e.ydieresis=500,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=556,e.edieresis=556,e.cacute=500,e.nacute=556,e.umacron=556,e.Ncaron=722,e.Iacute=278,e.plusminus=584,e.brokenbar=260,e.registered=737,e.Gbreve=778,e.Idotaccent=278,e.summation=600,e.Egrave=667,e.racute=333,e.omacron=556,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=222,e.tcaron=317,e.eogonek=556,e.Uogonek=722,e.Aacute=667,e.Adieresis=667,e.egrave=556,e.zacute=500,e.iogonek=222,e.Oacute=778,e.oacute=556,e.amacron=556,e.sacute=500,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=556,e.twosuperior=333,e.Odieresis=778,e.mu=556,e.igrave=278,e.ohungarumlaut=556,e.Eogonek=667,e.dcroat=556,e.threequarters=834,e.Scedilla=667,e.lcaron=299,e.Kcommaaccent=667,e.Lacute=556,e.trademark=1e3,e.edotaccent=556,e.Igrave=278,e.Imacron=278,e.Lcaron=556,e.onehalf=834,e.lessequal=549,e.ocircumflex=556,e.ntilde=556,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=556,e.gbreve=556,e.onequarter=834,e.Scaron=667,e.Scommaaccent=667,e.Ohungarumlaut=778,e.degree=400,e.ograve=556,e.Ccaron=722,e.ugrave=556,e.radical=453,e.Dcaron=722,e.rcommaaccent=333,e.Ntilde=722,e.otilde=556,e.Rcommaaccent=722,e.Lcommaaccent=556,e.Atilde=667,e.Aogonek=667,e.Aring=667,e.Otilde=778,e.zdotaccent=500,e.Ecaron=667,e.Iogonek=278,e.kcommaaccent=500,e.minus=584,e.Icircumflex=278,e.ncaron=556,e.tcommaaccent=278,e.logicalnot=584,e.odieresis=556,e.udieresis=556,e.notequal=549,e.gcommaaccent=556,e.eth=556,e.zcaron=500,e.ncommaaccent=556,e.onesuperior=333,e.imacron=278,e.Euro=556}),P["Helvetica-Bold"]=(0,t.getLookupTableFactory)(function(e){e.space=278,e.exclam=333,e.quotedbl=474,e.numbersign=556,e.dollar=556,e.percent=889,e.ampersand=722,e.quoteright=278,e.parenleft=333,e.parenright=333,e.asterisk=389,e.plus=584,e.comma=278,e.hyphen=333,e.period=278,e.slash=278,e.zero=556,e.one=556,e.two=556,e.three=556,e.four=556,e.five=556,e.six=556,e.seven=556,e.eight=556,e.nine=556,e.colon=333,e.semicolon=333,e.less=584,e.equal=584,e.greater=584,e.question=611,e.at=975,e.A=722,e.B=722,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=722,e.I=278,e.J=556,e.K=722,e.L=611,e.M=833,e.N=722,e.O=778,e.P=667,e.Q=778,e.R=722,e.S=667,e.T=611,e.U=722,e.V=667,e.W=944,e.X=667,e.Y=667,e.Z=611,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=584,e.underscore=556,e.quoteleft=278,e.a=556,e.b=611,e.c=556,e.d=611,e.e=556,e.f=333,e.g=611,e.h=611,e.i=278,e.j=278,e.k=556,e.l=278,e.m=889,e.n=611,e.o=611,e.p=611,e.q=611,e.r=389,e.s=556,e.t=333,e.u=611,e.v=556,e.w=778,e.x=556,e.y=556,e.z=500,e.braceleft=389,e.bar=280,e.braceright=389,e.asciitilde=584,e.exclamdown=333,e.cent=556,e.sterling=556,e.fraction=167,e.yen=556,e.florin=556,e.section=556,e.currency=556,e.quotesingle=238,e.quotedblleft=500,e.guillemotleft=556,e.guilsinglleft=333,e.guilsinglright=333,e.fi=611,e.fl=611,e.endash=556,e.dagger=556,e.daggerdbl=556,e.periodcentered=278,e.paragraph=556,e.bullet=350,e.quotesinglbase=278,e.quotedblbase=500,e.quotedblright=500,e.guillemotright=556,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=611,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=370,e.Lslash=611,e.Oslash=778,e.OE=1e3,e.ordmasculine=365,e.ae=889,e.dotlessi=278,e.lslash=278,e.oslash=611,e.oe=944,e.germandbls=611,e.Idieresis=278,e.eacute=556,e.abreve=556,e.uhungarumlaut=611,e.ecaron=556,e.Ydieresis=667,e.divide=584,e.Yacute=667,e.Acircumflex=722,e.aacute=556,e.Ucircumflex=722,e.yacute=556,e.scommaaccent=556,e.ecircumflex=556,e.Uring=722,e.Udieresis=722,e.aogonek=556,e.Uacute=722,e.uogonek=611,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=737,e.Emacron=667,e.ccaron=556,e.aring=556,e.Ncommaaccent=722,e.lacute=278,e.agrave=556,e.Tcommaaccent=611,e.Cacute=722,e.atilde=556,e.Edotaccent=667,e.scaron=556,e.scedilla=556,e.iacute=278,e.lozenge=494,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=611,e.acircumflex=556,e.Amacron=722,e.rcaron=389,e.ccedilla=556,e.Zdotaccent=611,e.Thorn=667,e.Omacron=778,e.Racute=722,e.Sacute=667,e.dcaron=743,e.Umacron=722,e.uring=611,e.threesuperior=333,e.Ograve=778,e.Agrave=722,e.Abreve=722,e.multiply=584,e.uacute=611,e.Tcaron=611,e.partialdiff=494,e.ydieresis=556,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=556,e.edieresis=556,e.cacute=556,e.nacute=611,e.umacron=611,e.Ncaron=722,e.Iacute=278,e.plusminus=584,e.brokenbar=280,e.registered=737,e.Gbreve=778,e.Idotaccent=278,e.summation=600,e.Egrave=667,e.racute=389,e.omacron=611,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=278,e.tcaron=389,e.eogonek=556,e.Uogonek=722,e.Aacute=722,e.Adieresis=722,e.egrave=556,e.zacute=500,e.iogonek=278,e.Oacute=778,e.oacute=611,e.amacron=556,e.sacute=556,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=611,e.twosuperior=333,e.Odieresis=778,e.mu=611,e.igrave=278,e.ohungarumlaut=611,e.Eogonek=667,e.dcroat=611,e.threequarters=834,e.Scedilla=667,e.lcaron=400,e.Kcommaaccent=722,e.Lacute=611,e.trademark=1e3,e.edotaccent=556,e.Igrave=278,e.Imacron=278,e.Lcaron=611,e.onehalf=834,e.lessequal=549,e.ocircumflex=611,e.ntilde=611,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=556,e.gbreve=611,e.onequarter=834,e.Scaron=667,e.Scommaaccent=667,e.Ohungarumlaut=778,e.degree=400,e.ograve=611,e.Ccaron=722,e.ugrave=611,e.radical=549,e.Dcaron=722,e.rcommaaccent=389,e.Ntilde=722,e.otilde=611,e.Rcommaaccent=722,e.Lcommaaccent=611,e.Atilde=722,e.Aogonek=722,e.Aring=722,e.Otilde=778,e.zdotaccent=500,e.Ecaron=667,e.Iogonek=278,e.kcommaaccent=556,e.minus=584,e.Icircumflex=278,e.ncaron=611,e.tcommaaccent=333,e.logicalnot=584,e.odieresis=611,e.udieresis=611,e.notequal=549,e.gcommaaccent=611,e.eth=611,e.zcaron=500,e.ncommaaccent=611,e.onesuperior=333,e.imacron=278,e.Euro=556}),P["Helvetica-BoldOblique"]=(0,t.getLookupTableFactory)(function(e){e.space=278,e.exclam=333,e.quotedbl=474,e.numbersign=556,e.dollar=556,e.percent=889,e.ampersand=722,e.quoteright=278,e.parenleft=333,e.parenright=333,e.asterisk=389,e.plus=584,e.comma=278,e.hyphen=333,e.period=278,e.slash=278,e.zero=556,e.one=556,e.two=556,e.three=556,e.four=556,e.five=556,e.six=556,e.seven=556,e.eight=556,e.nine=556,e.colon=333,e.semicolon=333,e.less=584,e.equal=584,e.greater=584,e.question=611,e.at=975,e.A=722,e.B=722,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=722,e.I=278,e.J=556,e.K=722,e.L=611,e.M=833,e.N=722,e.O=778,e.P=667,e.Q=778,e.R=722,e.S=667,e.T=611,e.U=722,e.V=667,e.W=944,e.X=667,e.Y=667,e.Z=611,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=584,e.underscore=556,e.quoteleft=278,e.a=556,e.b=611,e.c=556,e.d=611,e.e=556,e.f=333,e.g=611,e.h=611,e.i=278,e.j=278,e.k=556,e.l=278,e.m=889,e.n=611,e.o=611,e.p=611,e.q=611,e.r=389,e.s=556,e.t=333,e.u=611,e.v=556,e.w=778,e.x=556,e.y=556,e.z=500,e.braceleft=389,e.bar=280,e.braceright=389,e.asciitilde=584,e.exclamdown=333,e.cent=556,e.sterling=556,e.fraction=167,e.yen=556,e.florin=556,e.section=556,e.currency=556,e.quotesingle=238,e.quotedblleft=500,e.guillemotleft=556,e.guilsinglleft=333,e.guilsinglright=333,e.fi=611,e.fl=611,e.endash=556,e.dagger=556,e.daggerdbl=556,e.periodcentered=278,e.paragraph=556,e.bullet=350,e.quotesinglbase=278,e.quotedblbase=500,e.quotedblright=500,e.guillemotright=556,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=611,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=370,e.Lslash=611,e.Oslash=778,e.OE=1e3,e.ordmasculine=365,e.ae=889,e.dotlessi=278,e.lslash=278,e.oslash=611,e.oe=944,e.germandbls=611,e.Idieresis=278,e.eacute=556,e.abreve=556,e.uhungarumlaut=611,e.ecaron=556,e.Ydieresis=667,e.divide=584,e.Yacute=667,e.Acircumflex=722,e.aacute=556,e.Ucircumflex=722,e.yacute=556,e.scommaaccent=556,e.ecircumflex=556,e.Uring=722,e.Udieresis=722,e.aogonek=556,e.Uacute=722,e.uogonek=611,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=737,e.Emacron=667,e.ccaron=556,e.aring=556,e.Ncommaaccent=722,e.lacute=278,e.agrave=556,e.Tcommaaccent=611,e.Cacute=722,e.atilde=556,e.Edotaccent=667,e.scaron=556,e.scedilla=556,e.iacute=278,e.lozenge=494,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=611,e.acircumflex=556,e.Amacron=722,e.rcaron=389,e.ccedilla=556,e.Zdotaccent=611,e.Thorn=667,e.Omacron=778,e.Racute=722,e.Sacute=667,e.dcaron=743,e.Umacron=722,e.uring=611,e.threesuperior=333,e.Ograve=778,e.Agrave=722,e.Abreve=722,e.multiply=584,e.uacute=611,e.Tcaron=611,e.partialdiff=494,e.ydieresis=556,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=556,e.edieresis=556,e.cacute=556,e.nacute=611,e.umacron=611,e.Ncaron=722,e.Iacute=278,e.plusminus=584,e.brokenbar=280,e.registered=737,e.Gbreve=778,e.Idotaccent=278,e.summation=600,e.Egrave=667,e.racute=389,e.omacron=611,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=278,e.tcaron=389,e.eogonek=556,e.Uogonek=722,e.Aacute=722,e.Adieresis=722,e.egrave=556,e.zacute=500,e.iogonek=278,e.Oacute=778,e.oacute=611,e.amacron=556,e.sacute=556,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=611,e.twosuperior=333,e.Odieresis=778,e.mu=611,e.igrave=278,e.ohungarumlaut=611,e.Eogonek=667,e.dcroat=611,e.threequarters=834,e.Scedilla=667,e.lcaron=400,e.Kcommaaccent=722,e.Lacute=611,e.trademark=1e3,e.edotaccent=556,e.Igrave=278,e.Imacron=278,e.Lcaron=611,e.onehalf=834,e.lessequal=549,e.ocircumflex=611,e.ntilde=611,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=556,e.gbreve=611,e.onequarter=834,e.Scaron=667,e.Scommaaccent=667,e.Ohungarumlaut=778,e.degree=400,e.ograve=611,e.Ccaron=722,e.ugrave=611,e.radical=549,e.Dcaron=722,e.rcommaaccent=389,e.Ntilde=722,e.otilde=611,e.Rcommaaccent=722,e.Lcommaaccent=611,e.Atilde=722,e.Aogonek=722,e.Aring=722,e.Otilde=778,e.zdotaccent=500,e.Ecaron=667,e.Iogonek=278,e.kcommaaccent=556,e.minus=584,e.Icircumflex=278,e.ncaron=611,e.tcommaaccent=333,e.logicalnot=584,e.odieresis=611,e.udieresis=611,e.notequal=549,e.gcommaaccent=611,e.eth=611,e.zcaron=500,e.ncommaaccent=611,e.onesuperior=333,e.imacron=278,e.Euro=556}),P["Helvetica-Oblique"]=(0,t.getLookupTableFactory)(function(e){e.space=278,e.exclam=278,e.quotedbl=355,e.numbersign=556,e.dollar=556,e.percent=889,e.ampersand=667,e.quoteright=222,e.parenleft=333,e.parenright=333,e.asterisk=389,e.plus=584,e.comma=278,e.hyphen=333,e.period=278,e.slash=278,e.zero=556,e.one=556,e.two=556,e.three=556,e.four=556,e.five=556,e.six=556,e.seven=556,e.eight=556,e.nine=556,e.colon=278,e.semicolon=278,e.less=584,e.equal=584,e.greater=584,e.question=556,e.at=1015,e.A=667,e.B=667,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=722,e.I=278,e.J=500,e.K=667,e.L=556,e.M=833,e.N=722,e.O=778,e.P=667,e.Q=778,e.R=722,e.S=667,e.T=611,e.U=722,e.V=667,e.W=944,e.X=667,e.Y=667,e.Z=611,e.bracketleft=278,e.backslash=278,e.bracketright=278,e.asciicircum=469,e.underscore=556,e.quoteleft=222,e.a=556,e.b=556,e.c=500,e.d=556,e.e=556,e.f=278,e.g=556,e.h=556,e.i=222,e.j=222,e.k=500,e.l=222,e.m=833,e.n=556,e.o=556,e.p=556,e.q=556,e.r=333,e.s=500,e.t=278,e.u=556,e.v=500,e.w=722,e.x=500,e.y=500,e.z=500,e.braceleft=334,e.bar=260,e.braceright=334,e.asciitilde=584,e.exclamdown=333,e.cent=556,e.sterling=556,e.fraction=167,e.yen=556,e.florin=556,e.section=556,e.currency=556,e.quotesingle=191,e.quotedblleft=333,e.guillemotleft=556,e.guilsinglleft=333,e.guilsinglright=333,e.fi=500,e.fl=500,e.endash=556,e.dagger=556,e.daggerdbl=556,e.periodcentered=278,e.paragraph=537,e.bullet=350,e.quotesinglbase=222,e.quotedblbase=333,e.quotedblright=333,e.guillemotright=556,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=611,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=370,e.Lslash=556,e.Oslash=778,e.OE=1e3,e.ordmasculine=365,e.ae=889,e.dotlessi=278,e.lslash=222,e.oslash=611,e.oe=944,e.germandbls=611,e.Idieresis=278,e.eacute=556,e.abreve=556,e.uhungarumlaut=556,e.ecaron=556,e.Ydieresis=667,e.divide=584,e.Yacute=667,e.Acircumflex=667,e.aacute=556,e.Ucircumflex=722,e.yacute=500,e.scommaaccent=500,e.ecircumflex=556,e.Uring=722,e.Udieresis=722,e.aogonek=556,e.Uacute=722,e.uogonek=556,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=737,e.Emacron=667,e.ccaron=500,e.aring=556,e.Ncommaaccent=722,e.lacute=222,e.agrave=556,e.Tcommaaccent=611,e.Cacute=722,e.atilde=556,e.Edotaccent=667,e.scaron=500,e.scedilla=500,e.iacute=278,e.lozenge=471,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=556,e.acircumflex=556,e.Amacron=667,e.rcaron=333,e.ccedilla=500,e.Zdotaccent=611,e.Thorn=667,e.Omacron=778,e.Racute=722,e.Sacute=667,e.dcaron=643,e.Umacron=722,e.uring=556,e.threesuperior=333,e.Ograve=778,e.Agrave=667,e.Abreve=667,e.multiply=584,e.uacute=556,e.Tcaron=611,e.partialdiff=476,e.ydieresis=500,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=556,e.edieresis=556,e.cacute=500,e.nacute=556,e.umacron=556,e.Ncaron=722,e.Iacute=278,e.plusminus=584,e.brokenbar=260,e.registered=737,e.Gbreve=778,e.Idotaccent=278,e.summation=600,e.Egrave=667,e.racute=333,e.omacron=556,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=222,e.tcaron=317,e.eogonek=556,e.Uogonek=722,e.Aacute=667,e.Adieresis=667,e.egrave=556,e.zacute=500,e.iogonek=222,e.Oacute=778,e.oacute=556,e.amacron=556,e.sacute=500,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=556,e.twosuperior=333,e.Odieresis=778,e.mu=556,e.igrave=278,e.ohungarumlaut=556,e.Eogonek=667,e.dcroat=556,e.threequarters=834,e.Scedilla=667,e.lcaron=299,e.Kcommaaccent=667,e.Lacute=556,e.trademark=1e3,e.edotaccent=556,e.Igrave=278,e.Imacron=278,e.Lcaron=556,e.onehalf=834,e.lessequal=549,e.ocircumflex=556,e.ntilde=556,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=556,e.gbreve=556,e.onequarter=834,e.Scaron=667,e.Scommaaccent=667,e.Ohungarumlaut=778,e.degree=400,e.ograve=556,e.Ccaron=722,e.ugrave=556,e.radical=453,e.Dcaron=722,e.rcommaaccent=333,e.Ntilde=722,e.otilde=556,e.Rcommaaccent=722,e.Lcommaaccent=556,e.Atilde=667,e.Aogonek=667,e.Aring=667,e.Otilde=778,e.zdotaccent=500,e.Ecaron=667,e.Iogonek=278,e.kcommaaccent=500,e.minus=584,e.Icircumflex=278,e.ncaron=556,e.tcommaaccent=278,e.logicalnot=584,e.odieresis=556,e.udieresis=556,e.notequal=549,e.gcommaaccent=556,e.eth=556,e.zcaron=500,e.ncommaaccent=556,e.onesuperior=333,e.imacron=278,e.Euro=556}),P.Symbol=(0,t.getLookupTableFactory)(function(e){e.space=250,e.exclam=333,e.universal=713,e.numbersign=500,e.existential=549,e.percent=833,e.ampersand=778,e.suchthat=439,e.parenleft=333,e.parenright=333,e.asteriskmath=500,e.plus=549,e.comma=250,e.minus=549,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=278,e.semicolon=278,e.less=549,e.equal=549,e.greater=549,e.question=444,e.congruent=549,e.Alpha=722,e.Beta=667,e.Chi=722,e.Delta=612,e.Epsilon=611,e.Phi=763,e.Gamma=603,e.Eta=722,e.Iota=333,e.theta1=631,e.Kappa=722,e.Lambda=686,e.Mu=889,e.Nu=722,e.Omicron=722,e.Pi=768,e.Theta=741,e.Rho=556,e.Sigma=592,e.Tau=611,e.Upsilon=690,e.sigma1=439,e.Omega=768,e.Xi=645,e.Psi=795,e.Zeta=611,e.bracketleft=333,e.therefore=863,e.bracketright=333,e.perpendicular=658,e.underscore=500,e.radicalex=500,e.alpha=631,e.beta=549,e.chi=549,e.delta=494,e.epsilon=439,e.phi=521,e.gamma=411,e.eta=603,e.iota=329,e.phi1=603,e.kappa=549,e.lambda=549,e.mu=576,e.nu=521,e.omicron=549,e.pi=549,e.theta=521,e.rho=549,e.sigma=603,e.tau=439,e.upsilon=576,e.omega1=713,e.omega=686,e.xi=493,e.psi=686,e.zeta=494,e.braceleft=480,e.bar=200,e.braceright=480,e.similar=549,e.Euro=750,e.Upsilon1=620,e.minute=247,e.lessequal=549,e.fraction=167,e.infinity=713,e.florin=500,e.club=753,e.diamond=753,e.heart=753,e.spade=753,e.arrowboth=1042,e.arrowleft=987,e.arrowup=603,e.arrowright=987,e.arrowdown=603,e.degree=400,e.plusminus=549,e.second=411,e.greaterequal=549,e.multiply=549,e.proportional=713,e.partialdiff=494,e.bullet=460,e.divide=549,e.notequal=549,e.equivalence=549,e.approxequal=549,e.ellipsis=1e3,e.arrowvertex=603,e.arrowhorizex=1e3,e.carriagereturn=658,e.aleph=823,e.Ifraktur=686,e.Rfraktur=795,e.weierstrass=987,e.circlemultiply=768,e.circleplus=768,e.emptyset=823,e.intersection=768,e.union=768,e.propersuperset=713,e.reflexsuperset=713,e.notsubset=713,e.propersubset=713,e.reflexsubset=713,e.element=713,e.notelement=713,e.angle=768,e.gradient=713,e.registerserif=790,e.copyrightserif=790,e.trademarkserif=890,e.product=823,e.radical=549,e.dotmath=250,e.logicalnot=713,e.logicaland=603,e.logicalor=603,e.arrowdblboth=1042,e.arrowdblleft=987,e.arrowdblup=603,e.arrowdblright=987,e.arrowdbldown=603,e.lozenge=494,e.angleleft=329,e.registersans=790,e.copyrightsans=790,e.trademarksans=786,e.summation=713,e.parenlefttp=384,e.parenleftex=384,e.parenleftbt=384,e.bracketlefttp=384,e.bracketleftex=384,e.bracketleftbt=384,e.bracelefttp=494,e.braceleftmid=494,e.braceleftbt=494,e.braceex=494,e.angleright=329,e.integral=274,e.integraltp=686,e.integralex=686,e.integralbt=686,e.parenrighttp=384,e.parenrightex=384,e.parenrightbt=384,e.bracketrighttp=384,e.bracketrightex=384,e.bracketrightbt=384,e.bracerighttp=494,e.bracerightmid=494,e.bracerightbt=494,e.apple=790}),P["Times-Roman"]=(0,t.getLookupTableFactory)(function(e){e.space=250,e.exclam=333,e.quotedbl=408,e.numbersign=500,e.dollar=500,e.percent=833,e.ampersand=778,e.quoteright=333,e.parenleft=333,e.parenright=333,e.asterisk=500,e.plus=564,e.comma=250,e.hyphen=333,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=278,e.semicolon=278,e.less=564,e.equal=564,e.greater=564,e.question=444,e.at=921,e.A=722,e.B=667,e.C=667,e.D=722,e.E=611,e.F=556,e.G=722,e.H=722,e.I=333,e.J=389,e.K=722,e.L=611,e.M=889,e.N=722,e.O=722,e.P=556,e.Q=722,e.R=667,e.S=556,e.T=611,e.U=722,e.V=722,e.W=944,e.X=722,e.Y=722,e.Z=611,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=469,e.underscore=500,e.quoteleft=333,e.a=444,e.b=500,e.c=444,e.d=500,e.e=444,e.f=333,e.g=500,e.h=500,e.i=278,e.j=278,e.k=500,e.l=278,e.m=778,e.n=500,e.o=500,e.p=500,e.q=500,e.r=333,e.s=389,e.t=278,e.u=500,e.v=500,e.w=722,e.x=500,e.y=500,e.z=444,e.braceleft=480,e.bar=200,e.braceright=480,e.asciitilde=541,e.exclamdown=333,e.cent=500,e.sterling=500,e.fraction=167,e.yen=500,e.florin=500,e.section=500,e.currency=500,e.quotesingle=180,e.quotedblleft=444,e.guillemotleft=500,e.guilsinglleft=333,e.guilsinglright=333,e.fi=556,e.fl=556,e.endash=500,e.dagger=500,e.daggerdbl=500,e.periodcentered=250,e.paragraph=453,e.bullet=350,e.quotesinglbase=333,e.quotedblbase=444,e.quotedblright=444,e.guillemotright=500,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=444,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=889,e.ordfeminine=276,e.Lslash=611,e.Oslash=722,e.OE=889,e.ordmasculine=310,e.ae=667,e.dotlessi=278,e.lslash=278,e.oslash=500,e.oe=722,e.germandbls=500,e.Idieresis=333,e.eacute=444,e.abreve=444,e.uhungarumlaut=500,e.ecaron=444,e.Ydieresis=722,e.divide=564,e.Yacute=722,e.Acircumflex=722,e.aacute=444,e.Ucircumflex=722,e.yacute=500,e.scommaaccent=389,e.ecircumflex=444,e.Uring=722,e.Udieresis=722,e.aogonek=444,e.Uacute=722,e.uogonek=500,e.Edieresis=611,e.Dcroat=722,e.commaaccent=250,e.copyright=760,e.Emacron=611,e.ccaron=444,e.aring=444,e.Ncommaaccent=722,e.lacute=278,e.agrave=444,e.Tcommaaccent=611,e.Cacute=667,e.atilde=444,e.Edotaccent=611,e.scaron=389,e.scedilla=389,e.iacute=278,e.lozenge=471,e.Rcaron=667,e.Gcommaaccent=722,e.ucircumflex=500,e.acircumflex=444,e.Amacron=722,e.rcaron=333,e.ccedilla=444,e.Zdotaccent=611,e.Thorn=556,e.Omacron=722,e.Racute=667,e.Sacute=556,e.dcaron=588,e.Umacron=722,e.uring=500,e.threesuperior=300,e.Ograve=722,e.Agrave=722,e.Abreve=722,e.multiply=564,e.uacute=500,e.Tcaron=611,e.partialdiff=476,e.ydieresis=500,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=611,e.adieresis=444,e.edieresis=444,e.cacute=444,e.nacute=500,e.umacron=500,e.Ncaron=722,e.Iacute=333,e.plusminus=564,e.brokenbar=200,e.registered=760,e.Gbreve=722,e.Idotaccent=333,e.summation=600,e.Egrave=611,e.racute=333,e.omacron=500,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=667,e.lcommaaccent=278,e.tcaron=326,e.eogonek=444,e.Uogonek=722,e.Aacute=722,e.Adieresis=722,e.egrave=444,e.zacute=444,e.iogonek=278,e.Oacute=722,e.oacute=500,e.amacron=444,e.sacute=389,e.idieresis=278,e.Ocircumflex=722,e.Ugrave=722,e.Delta=612,e.thorn=500,e.twosuperior=300,e.Odieresis=722,e.mu=500,e.igrave=278,e.ohungarumlaut=500,e.Eogonek=611,e.dcroat=500,e.threequarters=750,e.Scedilla=556,e.lcaron=344,e.Kcommaaccent=722,e.Lacute=611,e.trademark=980,e.edotaccent=444,e.Igrave=333,e.Imacron=333,e.Lcaron=611,e.onehalf=750,e.lessequal=549,e.ocircumflex=500,e.ntilde=500,e.Uhungarumlaut=722,e.Eacute=611,e.emacron=444,e.gbreve=500,e.onequarter=750,e.Scaron=556,e.Scommaaccent=556,e.Ohungarumlaut=722,e.degree=400,e.ograve=500,e.Ccaron=667,e.ugrave=500,e.radical=453,e.Dcaron=722,e.rcommaaccent=333,e.Ntilde=722,e.otilde=500,e.Rcommaaccent=667,e.Lcommaaccent=611,e.Atilde=722,e.Aogonek=722,e.Aring=722,e.Otilde=722,e.zdotaccent=444,e.Ecaron=611,e.Iogonek=333,e.kcommaaccent=500,e.minus=564,e.Icircumflex=333,e.ncaron=500,e.tcommaaccent=278,e.logicalnot=564,e.odieresis=500,e.udieresis=500,e.notequal=549,e.gcommaaccent=500,e.eth=500,e.zcaron=444,e.ncommaaccent=500,e.onesuperior=300,e.imacron=278,e.Euro=500}),P["Times-Bold"]=(0,t.getLookupTableFactory)(function(e){e.space=250,e.exclam=333,e.quotedbl=555,e.numbersign=500,e.dollar=500,e.percent=1e3,e.ampersand=833,e.quoteright=333,e.parenleft=333,e.parenright=333,e.asterisk=500,e.plus=570,e.comma=250,e.hyphen=333,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=333,e.semicolon=333,e.less=570,e.equal=570,e.greater=570,e.question=500,e.at=930,e.A=722,e.B=667,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=778,e.I=389,e.J=500,e.K=778,e.L=667,e.M=944,e.N=722,e.O=778,e.P=611,e.Q=778,e.R=722,e.S=556,e.T=667,e.U=722,e.V=722,e.W=1e3,e.X=722,e.Y=722,e.Z=667,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=581,e.underscore=500,e.quoteleft=333,e.a=500,e.b=556,e.c=444,e.d=556,e.e=444,e.f=333,e.g=500,e.h=556,e.i=278,e.j=333,e.k=556,e.l=278,e.m=833,e.n=556,e.o=500,e.p=556,e.q=556,e.r=444,e.s=389,e.t=333,e.u=556,e.v=500,e.w=722,e.x=500,e.y=500,e.z=444,e.braceleft=394,e.bar=220,e.braceright=394,e.asciitilde=520,e.exclamdown=333,e.cent=500,e.sterling=500,e.fraction=167,e.yen=500,e.florin=500,e.section=500,e.currency=500,e.quotesingle=278,e.quotedblleft=500,e.guillemotleft=500,e.guilsinglleft=333,e.guilsinglright=333,e.fi=556,e.fl=556,e.endash=500,e.dagger=500,e.daggerdbl=500,e.periodcentered=250,e.paragraph=540,e.bullet=350,e.quotesinglbase=333,e.quotedblbase=500,e.quotedblright=500,e.guillemotright=500,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=500,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=300,e.Lslash=667,e.Oslash=778,e.OE=1e3,e.ordmasculine=330,e.ae=722,e.dotlessi=278,e.lslash=278,e.oslash=500,e.oe=722,e.germandbls=556,e.Idieresis=389,e.eacute=444,e.abreve=500,e.uhungarumlaut=556,e.ecaron=444,e.Ydieresis=722,e.divide=570,e.Yacute=722,e.Acircumflex=722,e.aacute=500,e.Ucircumflex=722,e.yacute=500,e.scommaaccent=389,e.ecircumflex=444,e.Uring=722,e.Udieresis=722,e.aogonek=500,e.Uacute=722,e.uogonek=556,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=747,e.Emacron=667,e.ccaron=444,e.aring=500,e.Ncommaaccent=722,e.lacute=278,e.agrave=500,e.Tcommaaccent=667,e.Cacute=722,e.atilde=500,e.Edotaccent=667,e.scaron=389,e.scedilla=389,e.iacute=278,e.lozenge=494,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=556,e.acircumflex=500,e.Amacron=722,e.rcaron=444,e.ccedilla=444,e.Zdotaccent=667,e.Thorn=611,e.Omacron=778,e.Racute=722,e.Sacute=556,e.dcaron=672,e.Umacron=722,e.uring=556,e.threesuperior=300,e.Ograve=778,e.Agrave=722,e.Abreve=722,e.multiply=570,e.uacute=556,e.Tcaron=667,e.partialdiff=494,e.ydieresis=500,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=500,e.edieresis=444,e.cacute=444,e.nacute=556,e.umacron=556,e.Ncaron=722,e.Iacute=389,e.plusminus=570,e.brokenbar=220,e.registered=747,e.Gbreve=778,e.Idotaccent=389,e.summation=600,e.Egrave=667,e.racute=444,e.omacron=500,e.Zacute=667,e.Zcaron=667,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=278,e.tcaron=416,e.eogonek=444,e.Uogonek=722,e.Aacute=722,e.Adieresis=722,e.egrave=444,e.zacute=444,e.iogonek=278,e.Oacute=778,e.oacute=500,e.amacron=500,e.sacute=389,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=556,e.twosuperior=300,e.Odieresis=778,e.mu=556,e.igrave=278,e.ohungarumlaut=500,e.Eogonek=667,e.dcroat=556,e.threequarters=750,e.Scedilla=556,e.lcaron=394,e.Kcommaaccent=778,e.Lacute=667,e.trademark=1e3,e.edotaccent=444,e.Igrave=389,e.Imacron=389,e.Lcaron=667,e.onehalf=750,e.lessequal=549,e.ocircumflex=500,e.ntilde=556,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=444,e.gbreve=500,e.onequarter=750,e.Scaron=556,e.Scommaaccent=556,e.Ohungarumlaut=778,e.degree=400,e.ograve=500,e.Ccaron=722,e.ugrave=556,e.radical=549,e.Dcaron=722,e.rcommaaccent=444,e.Ntilde=722,e.otilde=500,e.Rcommaaccent=722,e.Lcommaaccent=667,e.Atilde=722,e.Aogonek=722,e.Aring=722,e.Otilde=778,e.zdotaccent=444,e.Ecaron=667,e.Iogonek=389,e.kcommaaccent=556,e.minus=570,e.Icircumflex=389,e.ncaron=556,e.tcommaaccent=333,e.logicalnot=570,e.odieresis=500,e.udieresis=556,e.notequal=549,e.gcommaaccent=500,e.eth=500,e.zcaron=444,e.ncommaaccent=556,e.onesuperior=300,e.imacron=278,e.Euro=500}),P["Times-BoldItalic"]=(0,t.getLookupTableFactory)(function(e){e.space=250,e.exclam=389,e.quotedbl=555,e.numbersign=500,e.dollar=500,e.percent=833,e.ampersand=778,e.quoteright=333,e.parenleft=333,e.parenright=333,e.asterisk=500,e.plus=570,e.comma=250,e.hyphen=333,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=333,e.semicolon=333,e.less=570,e.equal=570,e.greater=570,e.question=500,e.at=832,e.A=667,e.B=667,e.C=667,e.D=722,e.E=667,e.F=667,e.G=722,e.H=778,e.I=389,e.J=500,e.K=667,e.L=611,e.M=889,e.N=722,e.O=722,e.P=611,e.Q=722,e.R=667,e.S=556,e.T=611,e.U=722,e.V=667,e.W=889,e.X=667,e.Y=611,e.Z=611,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=570,e.underscore=500,e.quoteleft=333,e.a=500,e.b=500,e.c=444,e.d=500,e.e=444,e.f=333,e.g=500,e.h=556,e.i=278,e.j=278,e.k=500,e.l=278,e.m=778,e.n=556,e.o=500,e.p=500,e.q=500,e.r=389,e.s=389,e.t=278,e.u=556,e.v=444,e.w=667,e.x=500,e.y=444,e.z=389,e.braceleft=348,e.bar=220,e.braceright=348,e.asciitilde=570,e.exclamdown=389,e.cent=500,e.sterling=500,e.fraction=167,e.yen=500,e.florin=500,e.section=500,e.currency=500,e.quotesingle=278,e.quotedblleft=500,e.guillemotleft=500,e.guilsinglleft=333,e.guilsinglright=333,e.fi=556,e.fl=556,e.endash=500,e.dagger=500,e.daggerdbl=500,e.periodcentered=250,e.paragraph=500,e.bullet=350,e.quotesinglbase=333,e.quotedblbase=500,e.quotedblright=500,e.guillemotright=500,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=500,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=944,e.ordfeminine=266,e.Lslash=611,e.Oslash=722,e.OE=944,e.ordmasculine=300,e.ae=722,e.dotlessi=278,e.lslash=278,e.oslash=500,e.oe=722,e.germandbls=500,e.Idieresis=389,e.eacute=444,e.abreve=500,e.uhungarumlaut=556,e.ecaron=444,e.Ydieresis=611,e.divide=570,e.Yacute=611,e.Acircumflex=667,e.aacute=500,e.Ucircumflex=722,e.yacute=444,e.scommaaccent=389,e.ecircumflex=444,e.Uring=722,e.Udieresis=722,e.aogonek=500,e.Uacute=722,e.uogonek=556,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=747,e.Emacron=667,e.ccaron=444,e.aring=500,e.Ncommaaccent=722,e.lacute=278,e.agrave=500,e.Tcommaaccent=611,e.Cacute=667,e.atilde=500,e.Edotaccent=667,e.scaron=389,e.scedilla=389,e.iacute=278,e.lozenge=494,e.Rcaron=667,e.Gcommaaccent=722,e.ucircumflex=556,e.acircumflex=500,e.Amacron=667,e.rcaron=389,e.ccedilla=444,e.Zdotaccent=611,e.Thorn=611,e.Omacron=722,e.Racute=667,e.Sacute=556,e.dcaron=608,e.Umacron=722,e.uring=556,e.threesuperior=300,e.Ograve=722,e.Agrave=667,e.Abreve=667,e.multiply=570,e.uacute=556,e.Tcaron=611,e.partialdiff=494,e.ydieresis=444,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=500,e.edieresis=444,e.cacute=444,e.nacute=556,e.umacron=556,e.Ncaron=722,e.Iacute=389,e.plusminus=570,e.brokenbar=220,e.registered=747,e.Gbreve=722,e.Idotaccent=389,e.summation=600,e.Egrave=667,e.racute=389,e.omacron=500,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=667,e.lcommaaccent=278,e.tcaron=366,e.eogonek=444,e.Uogonek=722,e.Aacute=667,e.Adieresis=667,e.egrave=444,e.zacute=389,e.iogonek=278,e.Oacute=722,e.oacute=500,e.amacron=500,e.sacute=389,e.idieresis=278,e.Ocircumflex=722,e.Ugrave=722,e.Delta=612,e.thorn=500,e.twosuperior=300,e.Odieresis=722,e.mu=576,e.igrave=278,e.ohungarumlaut=500,e.Eogonek=667,e.dcroat=500,e.threequarters=750,e.Scedilla=556,e.lcaron=382,e.Kcommaaccent=667,e.Lacute=611,e.trademark=1e3,e.edotaccent=444,e.Igrave=389,e.Imacron=389,e.Lcaron=611,e.onehalf=750,e.lessequal=549,e.ocircumflex=500,e.ntilde=556,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=444,e.gbreve=500,e.onequarter=750,e.Scaron=556,e.Scommaaccent=556,e.Ohungarumlaut=722,e.degree=400,e.ograve=500,e.Ccaron=667,e.ugrave=556,e.radical=549,e.Dcaron=722,e.rcommaaccent=389,e.Ntilde=722,e.otilde=500,e.Rcommaaccent=667,e.Lcommaaccent=611,e.Atilde=667,e.Aogonek=667,e.Aring=667,e.Otilde=722,e.zdotaccent=389,e.Ecaron=667,e.Iogonek=389,e.kcommaaccent=500,e.minus=606,e.Icircumflex=389,e.ncaron=556,e.tcommaaccent=278,e.logicalnot=606,e.odieresis=500,e.udieresis=556,e.notequal=549,e.gcommaaccent=500,e.eth=500,e.zcaron=389,e.ncommaaccent=556,e.onesuperior=300,e.imacron=278,e.Euro=500}),P["Times-Italic"]=(0,t.getLookupTableFactory)(function(e){e.space=250,e.exclam=333,e.quotedbl=420,e.numbersign=500,e.dollar=500,e.percent=833,e.ampersand=778,e.quoteright=333,e.parenleft=333,e.parenright=333,e.asterisk=500,e.plus=675,e.comma=250,e.hyphen=333,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=333,e.semicolon=333,e.less=675,e.equal=675,e.greater=675,e.question=500,e.at=920,e.A=611,e.B=611,e.C=667,e.D=722,e.E=611,e.F=611,e.G=722,e.H=722,e.I=333,e.J=444,e.K=667,e.L=556,e.M=833,e.N=667,e.O=722,e.P=611,e.Q=722,e.R=611,e.S=500,e.T=556,e.U=722,e.V=611,e.W=833,e.X=611,e.Y=556,e.Z=556,e.bracketleft=389,e.backslash=278,e.bracketright=389,e.asciicircum=422,e.underscore=500,e.quoteleft=333,e.a=500,e.b=500,e.c=444,e.d=500,e.e=444,e.f=278,e.g=500,e.h=500,e.i=278,e.j=278,e.k=444,e.l=278,e.m=722,e.n=500,e.o=500,e.p=500,e.q=500,e.r=389,e.s=389,e.t=278,e.u=500,e.v=444,e.w=667,e.x=444,e.y=444,e.z=389,e.braceleft=400,e.bar=275,e.braceright=400,e.asciitilde=541,e.exclamdown=389,e.cent=500,e.sterling=500,e.fraction=167,e.yen=500,e.florin=500,e.section=500,e.currency=500,e.quotesingle=214,e.quotedblleft=556,e.guillemotleft=500,e.guilsinglleft=333,e.guilsinglright=333,e.fi=500,e.fl=500,e.endash=500,e.dagger=500,e.daggerdbl=500,e.periodcentered=250,e.paragraph=523,e.bullet=350,e.quotesinglbase=333,e.quotedblbase=556,e.quotedblright=556,e.guillemotright=500,e.ellipsis=889,e.perthousand=1e3,e.questiondown=500,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=889,e.AE=889,e.ordfeminine=276,e.Lslash=556,e.Oslash=722,e.OE=944,e.ordmasculine=310,e.ae=667,e.dotlessi=278,e.lslash=278,e.oslash=500,e.oe=667,e.germandbls=500,e.Idieresis=333,e.eacute=444,e.abreve=500,e.uhungarumlaut=500,e.ecaron=444,e.Ydieresis=556,e.divide=675,e.Yacute=556,e.Acircumflex=611,e.aacute=500,e.Ucircumflex=722,e.yacute=444,e.scommaaccent=389,e.ecircumflex=444,e.Uring=722,e.Udieresis=722,e.aogonek=500,e.Uacute=722,e.uogonek=500,e.Edieresis=611,e.Dcroat=722,e.commaaccent=250,e.copyright=760,e.Emacron=611,e.ccaron=444,e.aring=500,e.Ncommaaccent=667,e.lacute=278,e.agrave=500,e.Tcommaaccent=556,e.Cacute=667,e.atilde=500,e.Edotaccent=611,e.scaron=389,e.scedilla=389,e.iacute=278,e.lozenge=471,e.Rcaron=611,e.Gcommaaccent=722,e.ucircumflex=500,e.acircumflex=500,e.Amacron=611,e.rcaron=389,e.ccedilla=444,e.Zdotaccent=556,e.Thorn=611,e.Omacron=722,e.Racute=611,e.Sacute=500,e.dcaron=544,e.Umacron=722,e.uring=500,e.threesuperior=300,e.Ograve=722,e.Agrave=611,e.Abreve=611,e.multiply=675,e.uacute=500,e.Tcaron=556,e.partialdiff=476,e.ydieresis=444,e.Nacute=667,e.icircumflex=278,e.Ecircumflex=611,e.adieresis=500,e.edieresis=444,e.cacute=444,e.nacute=500,e.umacron=500,e.Ncaron=667,e.Iacute=333,e.plusminus=675,e.brokenbar=275,e.registered=760,e.Gbreve=722,e.Idotaccent=333,e.summation=600,e.Egrave=611,e.racute=389,e.omacron=500,e.Zacute=556,e.Zcaron=556,e.greaterequal=549,e.Eth=722,e.Ccedilla=667,e.lcommaaccent=278,e.tcaron=300,e.eogonek=444,e.Uogonek=722,e.Aacute=611,e.Adieresis=611,e.egrave=444,e.zacute=389,e.iogonek=278,e.Oacute=722,e.oacute=500,e.amacron=500,e.sacute=389,e.idieresis=278,e.Ocircumflex=722,e.Ugrave=722,e.Delta=612,e.thorn=500,e.twosuperior=300,e.Odieresis=722,e.mu=500,e.igrave=278,e.ohungarumlaut=500,e.Eogonek=611,e.dcroat=500,e.threequarters=750,e.Scedilla=500,e.lcaron=300,e.Kcommaaccent=667,e.Lacute=556,e.trademark=980,e.edotaccent=444,e.Igrave=333,e.Imacron=333,e.Lcaron=611,e.onehalf=750,e.lessequal=549,e.ocircumflex=500,e.ntilde=500,e.Uhungarumlaut=722,e.Eacute=611,e.emacron=444,e.gbreve=500,e.onequarter=750,e.Scaron=500,e.Scommaaccent=500,e.Ohungarumlaut=722,e.degree=400,e.ograve=500,e.Ccaron=667,e.ugrave=500,e.radical=453,e.Dcaron=722,e.rcommaaccent=389,e.Ntilde=667,e.otilde=500,e.Rcommaaccent=611,e.Lcommaaccent=556,e.Atilde=611,e.Aogonek=611,e.Aring=611,e.Otilde=722,e.zdotaccent=389,e.Ecaron=611,e.Iogonek=333,e.kcommaaccent=444,e.minus=675,e.Icircumflex=333,e.ncaron=500,e.tcommaaccent=278,e.logicalnot=675,e.odieresis=500,e.udieresis=500,e.notequal=549,e.gcommaaccent=500,e.eth=500,e.zcaron=389,e.ncommaaccent=500,e.onesuperior=300,e.imacron=278,e.Euro=500}),P.ZapfDingbats=(0,t.getLookupTableFactory)(function(e){e.space=278,e.a1=974,e.a2=961,e.a202=974,e.a3=980,e.a4=719,e.a5=789,e.a119=790,e.a118=791,e.a117=690,e.a11=960,e.a12=939,e.a13=549,e.a14=855,e.a15=911,e.a16=933,e.a105=911,e.a17=945,e.a18=974,e.a19=755,e.a20=846,e.a21=762,e.a22=761,e.a23=571,e.a24=677,e.a25=763,e.a26=760,e.a27=759,e.a28=754,e.a6=494,e.a7=552,e.a8=537,e.a9=577,e.a10=692,e.a29=786,e.a30=788,e.a31=788,e.a32=790,e.a33=793,e.a34=794,e.a35=816,e.a36=823,e.a37=789,e.a38=841,e.a39=823,e.a40=833,e.a41=816,e.a42=831,e.a43=923,e.a44=744,e.a45=723,e.a46=749,e.a47=790,e.a48=792,e.a49=695,e.a50=776,e.a51=768,e.a52=792,e.a53=759,e.a54=707,e.a55=708,e.a56=682,e.a57=701,e.a58=826,e.a59=815,e.a60=789,e.a61=789,e.a62=707,e.a63=687,e.a64=696,e.a65=689,e.a66=786,e.a67=787,e.a68=713,e.a69=791,e.a70=785,e.a71=791,e.a72=873,e.a73=761,e.a74=762,e.a203=762,e.a75=759,e.a204=759,e.a76=892,e.a77=892,e.a78=788,e.a79=784,e.a81=438,e.a82=138,e.a83=277,e.a84=415,e.a97=392,e.a98=392,e.a99=668,e.a100=668,e.a89=390,e.a90=390,e.a93=317,e.a94=317,e.a91=276,e.a92=276,e.a205=509,e.a85=509,e.a206=410,e.a86=410,e.a87=234,e.a88=234,e.a95=334,e.a96=334,e.a101=732,e.a102=544,e.a103=544,e.a104=910,e.a106=667,e.a107=760,e.a108=760,e.a112=776,e.a111=595,e.a110=694,e.a109=626,e.a120=788,e.a121=788,e.a122=788,e.a123=788,e.a124=788,e.a125=788,e.a126=788,e.a127=788,e.a128=788,e.a129=788,e.a130=788,e.a131=788,e.a132=788,e.a133=788,e.a134=788,e.a135=788,e.a136=788,e.a137=788,e.a138=788,e.a139=788,e.a140=788,e.a141=788,e.a142=788,e.a143=788,e.a144=788,e.a145=788,e.a146=788,e.a147=788,e.a148=788,e.a149=788,e.a150=788,e.a151=788,e.a152=788,e.a153=788,e.a154=788,e.a155=788,e.a156=788,e.a157=788,e.a158=788,e.a159=788,e.a160=894,e.a161=838,e.a163=1016,e.a164=458,e.a196=748,e.a165=924,e.a192=748,e.a166=918,e.a167=927,e.a168=928,e.a169=928,e.a170=834,e.a171=873,e.a172=828,e.a173=924,e.a162=924,e.a174=917,e.a175=930,e.a176=931,e.a177=463,e.a178=883,e.a179=836,e.a193=836,e.a180=867,e.a199=867,e.a181=696,e.a200=696,e.a182=874,e.a201=874,e.a183=760,e.a184=946,e.a197=771,e.a185=865,e.a194=771,e.a198=888,e.a186=967,e.a195=888,e.a187=831,e.a188=873,e.a189=927,e.a190=970,e.a191=918})});l.getMetrics=i;const O=(0,t.getLookupTableFactory)(function(P){P.Courier={ascent:629,descent:-157,capHeight:562,xHeight:-426},P["Courier-Bold"]={ascent:629,descent:-157,capHeight:562,xHeight:439},P["Courier-Oblique"]={ascent:629,descent:-157,capHeight:562,xHeight:426},P["Courier-BoldOblique"]={ascent:629,descent:-157,capHeight:562,xHeight:426},P.Helvetica={ascent:718,descent:-207,capHeight:718,xHeight:523},P["Helvetica-Bold"]={ascent:718,descent:-207,capHeight:718,xHeight:532},P["Helvetica-Oblique"]={ascent:718,descent:-207,capHeight:718,xHeight:523},P["Helvetica-BoldOblique"]={ascent:718,descent:-207,capHeight:718,xHeight:532},P["Times-Roman"]={ascent:683,descent:-217,capHeight:662,xHeight:450},P["Times-Bold"]={ascent:683,descent:-217,capHeight:676,xHeight:461},P["Times-Italic"]={ascent:683,descent:-217,capHeight:653,xHeight:441},P["Times-BoldItalic"]={ascent:683,descent:-217,capHeight:669,xHeight:462},P.Symbol={ascent:Math.NaN,descent:Math.NaN,capHeight:Math.NaN,xHeight:Math.NaN},P.ZapfDingbats={ascent:Math.NaN,descent:Math.NaN,capHeight:Math.NaN,xHeight:Math.NaN}});l.getFontBasicMetrics=O},(he,l)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.GlyfTable=void 0;const w=1<<0,t=1<<1,i=1<<2,O=1<<3,P=1<<4,e=1<<5,N=1<<6,D=1<<0,L=1<<1,k=1<<3,x=1<<5,g=1<<6,n=1<<7,I=1<<8;class B{constructor(f){let{glyfTable:F,isGlyphLocationsLong:s,locaTable:d,numGlyphs:S}=f;this.glyphs=[];const r=new DataView(d.buffer,d.byteOffset,d.byteLength),o=new DataView(F.buffer,F.byteOffset,F.byteLength),A=s?4:2;let p=s?r.getUint32(0):2*r.getUint16(0),v=0;for(let R=0;R<S;R++){v+=A;const T=s?r.getUint32(v):2*r.getUint16(v);if(T===p){this.glyphs.push(new h({}));continue}const y=h.parse(p,o);this.glyphs.push(y),p=T}}getSize(){return this.glyphs.reduce((f,F)=>{const s=F.getSize();return f+(s+3&-4)},0)}write(){const f=this.getSize(),F=new DataView(new ArrayBuffer(f)),s=f>131070,d=s?4:2,S=new DataView(new ArrayBuffer((this.glyphs.length+1)*d));s?S.setUint32(0,0):S.setUint16(0,0);let r=0,o=0;for(const A of this.glyphs)r+=A.write(r,F),r=r+3&-4,o+=d,s?S.setUint32(o,r):S.setUint16(o,r>>1);return{isLocationLong:s,loca:new Uint8Array(S.buffer),glyf:new Uint8Array(F.buffer)}}scale(f){for(let F=0,s=this.glyphs.length;F<s;F++)this.glyphs[F].scale(f[F])}}l.GlyfTable=B;class h{constructor(f){let{header:F=null,simple:s=null,composites:d=null}=f;this.header=F,this.simple=s,this.composites=d}static parse(f,F){const[s,d]=c.parse(f,F);if(f+=s,d.numberOfContours<0){const r=[];for(;;){const[o,A]=m.parse(f,F);if(f+=o,r.push(A),!(A.flags&x))break}return new h({header:d,composites:r})}const S=u.parse(f,F,d.numberOfContours);return new h({header:d,simple:S})}getSize(){if(!this.header)return 0;const f=this.simple?this.simple.getSize():this.composites.reduce((F,s)=>F+s.getSize(),0);return this.header.getSize()+f}write(f,F){if(!this.header)return 0;const s=f;if(f+=this.header.write(f,F),this.simple)f+=this.simple.write(f,F);else for(const d of this.composites)f+=d.write(f,F);return f-s}scale(f){if(!this.header)return;const F=(this.header.xMin+this.header.xMax)/2;if(this.header.scale(F,f),this.simple)this.simple.scale(F,f);else for(const s of this.composites)s.scale(F,f)}}class c{constructor(f){let{numberOfContours:F,xMin:s,yMin:d,xMax:S,yMax:r}=f;this.numberOfContours=F,this.xMin=s,this.yMin=d,this.xMax=S,this.yMax=r}static parse(f,F){return[10,new c({numberOfContours:F.getInt16(f),xMin:F.getInt16(f+2),yMin:F.getInt16(f+4),xMax:F.getInt16(f+6),yMax:F.getInt16(f+8)})]}getSize(){return 10}write(f,F){return F.setInt16(f,this.numberOfContours),F.setInt16(f+2,this.xMin),F.setInt16(f+4,this.yMin),F.setInt16(f+6,this.xMax),F.setInt16(f+8,this.yMax),10}scale(f,F){this.xMin=Math.round(f+(this.xMin-f)*F),this.xMax=Math.round(f+(this.xMax-f)*F)}}class C{constructor(f){let{flags:F,xCoordinates:s,yCoordinates:d}=f;this.xCoordinates=s,this.yCoordinates=d,this.flags=F}}class u{constructor(f){let{contours:F,instructions:s}=f;this.contours=F,this.instructions=s}static parse(f,F,s){const d=[];for(let $=0;$<s;$++){const j=F.getUint16(f);f+=2,d.push(j)}const S=d[s-1]+1,r=F.getUint16(f);f+=2;const o=new Uint8Array(F).slice(f,f+r);f+=r;const A=[];for(let $=0;$<S;f++,$++){let j=F.getUint8(f);if(A.push(j),j&O){const V=F.getUint8(++f);j^=O;for(let ee=0;ee<V;ee++)A.push(j);$+=V}}const p=[];let v=[],R=[],T=[];const y=[];let H=0,z=0;for(let $=0;$<S;$++){const j=A[$];if(j&t){const V=F.getUint8(f++);z+=j&P?V:-V,v.push(z)}else j&P||(z+=F.getInt16(f),f+=2),v.push(z);d[H]===$&&(H++,p.push(v),v=[])}z=0,H=0;for(let $=0;$<S;$++){const j=A[$];if(j&i){const V=F.getUint8(f++);z+=j&e?V:-V,R.push(z)}else j&e||(z+=F.getInt16(f),f+=2),R.push(z);T.push(j&w|j&N),d[H]===$&&(v=p[H],H++,y.push(new C({flags:T,xCoordinates:v,yCoordinates:R})),R=[],T=[])}return new u({contours:y,instructions:o})}getSize(){let f=this.contours.length*2+2+this.instructions.length,F=0,s=0;for(const d of this.contours){f+=d.flags.length;for(let S=0,r=d.xCoordinates.length;S<r;S++){const o=d.xCoordinates[S],A=d.yCoordinates[S];let p=Math.abs(o-F);p>255?f+=2:p>0&&(f+=1),F=o,p=Math.abs(A-s),p>255?f+=2:p>0&&(f+=1),s=A}}return f}write(f,F){const s=f,d=[],S=[],r=[];let o=0,A=0;for(const p of this.contours){for(let v=0,R=p.xCoordinates.length;v<R;v++){let T=p.flags[v];const y=p.xCoordinates[v];let H=y-o;if(H===0)T|=P,d.push(0);else{const $=Math.abs(H);$<=255?(T|=H>=0?t|P:t,d.push($)):d.push(H)}o=y;const z=p.yCoordinates[v];if(H=z-A,H===0)T|=e,S.push(0);else{const $=Math.abs(H);$<=255?(T|=H>=0?i|e:i,S.push($)):S.push(H)}A=z,r.push(T)}F.setUint16(f,d.length-1),f+=2}F.setUint16(f,this.instructions.length),f+=2,this.instructions.length&&(new Uint8Array(F.buffer,0,F.buffer.byteLength).set(this.instructions,f),f+=this.instructions.length);for(const p of r)F.setUint8(f++,p);for(let p=0,v=d.length;p<v;p++){const R=d[p],T=r[p];T&t?F.setUint8(f++,R):T&P||(F.setInt16(f,R),f+=2)}for(let p=0,v=S.length;p<v;p++){const R=S[p],T=r[p];T&i?F.setUint8(f++,R):T&e||(F.setInt16(f,R),f+=2)}return f-s}scale(f,F){for(const s of this.contours)if(s.xCoordinates.length!==0)for(let d=0,S=s.xCoordinates.length;d<S;d++)s.xCoordinates[d]=Math.round(f+(s.xCoordinates[d]-f)*F)}}class m{constructor(f){let{flags:F,glyphIndex:s,argument1:d,argument2:S,transf:r,instructions:o}=f;this.flags=F,this.glyphIndex=s,this.argument1=d,this.argument2=S,this.transf=r,this.instructions=o}static parse(f,F){const s=f,d=[];let S=F.getUint16(f);const r=F.getUint16(f+2);f+=4;let o,A;S&D?(S&L?(o=F.getInt16(f),A=F.getInt16(f+2)):(o=F.getUint16(f),A=F.getUint16(f+2)),f+=4,S^=D):(S&L?(o=F.getInt8(f),A=F.getInt8(f+1)):(o=F.getUint8(f),A=F.getUint8(f+1)),f+=2),S&k?(d.push(F.getUint16(f)),f+=2):S&g?(d.push(F.getUint16(f),F.getUint16(f+2)),f+=4):S&n&&(d.push(F.getUint16(f),F.getUint16(f+2),F.getUint16(f+4),F.getUint16(f+6)),f+=8);let p=null;if(S&I){const v=F.getUint16(f);f+=2,p=new Uint8Array(F).slice(f,f+v),f+=v}return[f-s,new m({flags:S,glyphIndex:r,argument1:o,argument2:A,transf:d,instructions:p})]}getSize(){let f=4+this.transf.length*2;return this.flags&I&&(f+=2+this.instructions.length),f+=2,this.flags&2?this.argument1>=-128&&this.argument1<=127&&this.argument2>=-128&&this.argument2<=127||(f+=2):this.argument1>=0&&this.argument1<=255&&this.argument2>=0&&this.argument2<=255||(f+=2),f}write(f,F){const s=f;return this.flags&L?this.argument1>=-128&&this.argument1<=127&&this.argument2>=-128&&this.argument2<=127||(this.flags|=D):this.argument1>=0&&this.argument1<=255&&this.argument2>=0&&this.argument2<=255||(this.flags|=D),F.setUint16(f,this.flags),F.setUint16(f+2,this.glyphIndex),f+=4,this.flags&D?(this.flags&L?(F.setInt16(f,this.argument1),F.setInt16(f+2,this.argument2)):(F.setUint16(f,this.argument1),F.setUint16(f+2,this.argument2)),f+=4):(F.setUint8(f,this.argument1),F.setUint8(f+1,this.argument2),f+=2),this.flags&I&&(F.setUint16(f,this.instructions.length),f+=2,this.instructions.length&&(new Uint8Array(F.buffer,0,F.buffer.byteLength).set(this.instructions,f),f+=this.instructions.length)),f-s}scale(f,F){}}},(he,l,w)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.OpenTypeFileBuilder=void 0;var t=w(136),i=w(2);function O(k,x,g){k[x]=g>>8&255,k[x+1]=g&255}function P(k,x,g){k[x]=g>>24&255,k[x+1]=g>>16&255,k[x+2]=g>>8&255,k[x+3]=g&255}function e(k,x,g){if(g instanceof Uint8Array)k.set(g,x);else if(typeof g=="string")for(let n=0,I=g.length;n<I;n++)k[x++]=g.charCodeAt(n)&255;else for(const n of g)k[x++]=n&255}const N=12,D=16;class L{constructor(x){this.sfnt=x,this.tables=Object.create(null)}static getSearchParams(x,g){let n=1,I=0;for(;(n^x)>n;)n<<=1,I++;const B=n*g;return{range:B,entry:I,rangeShift:g*x-B}}toArray(){let x=this.sfnt;const g=this.tables,n=Object.keys(g);n.sort();const I=n.length;let B,h,c,C,u,m=N+I*D;const X=[m];for(B=0;B<I;B++){C=g[n[B]];const s=(C.length+3&-4)>>>0;m+=s,X.push(m)}const f=new Uint8Array(m);for(B=0;B<I;B++)C=g[n[B]],e(f,X[B],C);x==="true"&&(x=(0,i.string32)(65536)),f[0]=x.charCodeAt(0)&255,f[1]=x.charCodeAt(1)&255,f[2]=x.charCodeAt(2)&255,f[3]=x.charCodeAt(3)&255,O(f,4,I);const F=L.getSearchParams(I,16);for(O(f,6,F.range),O(f,8,F.entry),O(f,10,F.rangeShift),m=N,B=0;B<I;B++){u=n[B],f[m]=u.charCodeAt(0)&255,f[m+1]=u.charCodeAt(1)&255,f[m+2]=u.charCodeAt(2)&255,f[m+3]=u.charCodeAt(3)&255;let s=0;for(h=X[B],c=X[B+1];h<c;h+=4){const d=(0,t.readUint32)(f,h);s=s+d>>>0}P(f,m+4,s),P(f,m+8,X[B]),P(f,m+12,g[u].length),m+=D}return f}addTable(x,g){if(x in this.tables)throw new Error("Table "+x+" already exists");this.tables[x]=g}}l.OpenTypeFileBuilder=L},(he,l,w)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.Type1Font=void 0;var t=w(166),i=w(2),O=w(169),P=w(136),e=w(141),N=w(180);function D(g,n,I){const B=g.length,h=n.length,c=B-h;let C=I,u=!1;for(;C<c;){let m=0;for(;m<h&&g[C+m]===n[m];)m++;if(m>=h){for(C+=m;C<B&&(0,P.isWhiteSpace)(g[C]);)C++;u=!0;break}C++}return{found:u,length:C}}function L(g,n){const I=[101,101,120,101,99],B=g.pos;let h,c,C;try{h=g.getBytes(n),c=h.length}catch{}if(c===n&&(C=D(h,I,n-2*I.length),C.found&&C.length===n))return{stream:new e.Stream(h),length:n};(0,i.warn)('Invalid "Length1" property in Type1 font -- trying to recover.'),g.pos=B;const u=2048;let m;for(;;){const X=g.peekBytes(u);if(C=D(X,I,0),C.length===0)break;if(g.pos+=C.length,C.found){m=g.pos-B;break}}return g.pos=B,m?{stream:new e.Stream(g.getBytes(m)),length:m}:((0,i.warn)('Unable to recover "Length1" property in Type1 font -- using as is.'),{stream:new e.Stream(g.getBytes(n)),length:n})}function k(g,n){const I=g.getBytes();if(I.length===0)throw new i.FormatError("getEexecBlock - no font program found.");return{stream:new e.Stream(I),length:I.length}}class x{constructor(n,I,B){let c=B.length1;B.length2;let C=I.peekBytes(6);const u=C[0]===128&&C[1]===1;u&&(I.skip(6),c=C[5]<<24|C[4]<<16|C[3]<<8|C[2]);const m=L(I,c);new N.Type1Parser(m.stream,!1,O.SEAC_ANALYSIS_ENABLED).extractFontHeader(B),u&&(C=I.getBytes(6),C[5]<<24|C[4]<<16|C[3]<<8|C[2]);const f=k(I),s=new N.Type1Parser(f.stream,!0,O.SEAC_ANALYSIS_ENABLED).extractFontProgram(B);for(const o in s.properties)B[o]=s.properties[o];const d=s.charstrings,S=this.getType2Charstrings(d),r=this.getType2Subrs(s.subrs);this.charstrings=d,this.data=this.wrap(n,S,this.charstrings,r,B),this.seacs=this.getSeacs(s.charstrings)}get numGlyphs(){return this.charstrings.length+1}getCharset(){const n=[".notdef"];for(const{glyphName:I}of this.charstrings)n.push(I);return n}getGlyphMapping(n){const I=this.charstrings;if(n.composite){const u=Object.create(null);for(let m=0,X=I.length;m<X;m++){const f=n.cMap.charCodeOf(m);u[f]=m+1}return u}const B=[".notdef"];let h,c;for(c=0;c<I.length;c++)B.push(I[c].glyphName);const C=n.builtInEncoding;if(C){h=Object.create(null);for(const u in C)c=B.indexOf(C[u]),c>=0&&(h[u]=c)}return(0,O.type1FontGlyphMapping)(n,h,B)}hasGlyphId(n){return n<0||n>=this.numGlyphs?!1:n===0?!0:this.charstrings[n-1].charstring.length>0}getSeacs(n){const I=[];for(let B=0,h=n.length;B<h;B++){const c=n[B];c.seac&&(I[B+1]=c.seac)}return I}getType2Charstrings(n){const I=[];for(const B of n)I.push(B.charstring);return I}getType2Subrs(n){let I=0;const B=n.length;B<1133?I=107:B<33769?I=1131:I=32768;const h=[];let c;for(c=0;c<I;c++)h.push([11]);for(c=0;c<B;c++)h.push(n[c]);return h}wrap(n,I,B,h,c){const C=new t.CFF;C.header=new t.CFFHeader(1,0,4,4),C.names=[n];const u=new t.CFFTopDict;u.setByName("version",391),u.setByName("Notice",392),u.setByName("FullName",393),u.setByName("FamilyName",394),u.setByName("Weight",395),u.setByName("Encoding",null),u.setByName("FontMatrix",c.fontMatrix),u.setByName("FontBBox",c.bbox),u.setByName("charset",null),u.setByName("CharStrings",null),u.setByName("Private",null),C.topDict=u;const m=new t.CFFStrings;m.add("Version 0.11"),m.add("See original notice"),m.add(n),m.add(n),m.add("Medium"),C.strings=m,C.globalSubrIndex=new t.CFFIndex;const X=I.length,f=[".notdef"];let F,s;for(F=0;F<X;F++){const p=B[F].glyphName;t.CFFStandardStrings.indexOf(p)===-1&&m.add(p),f.push(p)}C.charset=new t.CFFCharset(!1,0,f);const d=new t.CFFIndex;for(d.add([139,14]),F=0;F<X;F++)d.add(I[F]);C.charStrings=d;const S=new t.CFFPrivateDict;S.setByName("Subrs",null);const r=["BlueValues","OtherBlues","FamilyBlues","FamilyOtherBlues","StemSnapH","StemSnapV","BlueShift","BlueFuzz","BlueScale","LanguageGroup","ExpansionFactor","ForceBold","StdHW","StdVW"];for(F=0,s=r.length;F<s;F++){const p=r[F];if(!(p in c.privateData))continue;const v=c.privateData[p];if(Array.isArray(v))for(let R=v.length-1;R>0;R--)v[R]-=v[R-1];S.setByName(p,v)}C.topDict.privateDict=S;const o=new t.CFFIndex;for(F=0,s=h.length;F<s;F++)o.add(h[F]);return S.subrsIndex=o,new t.CFFCompiler(C).compile()}}l.Type1Font=x},(he,l,w)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.Type1Parser=void 0;var t=w(168),i=w(136),O=w(141),P=w(2);const e=!1,N={hstem:[1],vstem:[3],vmoveto:[4],rlineto:[5],hlineto:[6],vlineto:[7],rrcurveto:[8],callsubr:[10],flex:[12,35],drop:[12,18],endchar:[14],rmoveto:[21],hmoveto:[22],vhcurveto:[30],hvcurveto:[31]};class D{constructor(){this.width=0,this.lsb=0,this.flexing=!1,this.output=[],this.stack=[]}convert(c,C,u){const m=c.length;let X=!1,f,F,s;for(let d=0;d<m;d++){let S=c[d];if(S<32){switch(S===12&&(S=(S<<8)+c[++d]),S){case 1:{this.stack=[];break}case 3:{this.stack=[];break}case 4:if(this.flexing){if(this.stack.length<1){X=!0;break}const v=this.stack.pop();this.stack.push(0,v);break}X=this.executeCommand(1,N.vmoveto);break;case 5:X=this.executeCommand(2,N.rlineto);break;case 6:X=this.executeCommand(1,N.hlineto);break;case 7:X=this.executeCommand(1,N.vlineto);break;case 8:X=this.executeCommand(6,N.rrcurveto);break;case 9:this.stack=[];break;case 10:if(this.stack.length<1){X=!0;break}if(s=this.stack.pop(),!C[s]){X=!0;break}X=this.convert(C[s],C,u);break;case 11:return X;case 13:if(this.stack.length<2){X=!0;break}f=this.stack.pop(),F=this.stack.pop(),this.lsb=F,this.width=f,this.stack.push(f,F),X=this.executeCommand(2,N.hmoveto);break;case 14:this.output.push(N.endchar[0]);break;case 21:if(this.flexing)break;X=this.executeCommand(2,N.rmoveto);break;case 22:if(this.flexing){this.stack.push(0);break}X=this.executeCommand(1,N.hmoveto);break;case 30:X=this.executeCommand(4,N.vhcurveto);break;case 31:X=this.executeCommand(4,N.hvcurveto);break;case 3072:this.stack=[];break;case 3073:{this.stack=[];break}case 3074:{this.stack=[];break}case 3078:if(u){const v=this.stack.at(-5);this.seac=this.stack.splice(-4,4),this.seac[0]+=this.lsb-v,X=this.executeCommand(0,N.endchar)}else X=this.executeCommand(4,N.endchar);break;case 3079:if(this.stack.length<4){X=!0;break}this.stack.pop(),f=this.stack.pop();const r=this.stack.pop();F=this.stack.pop(),this.lsb=F,this.width=f,this.stack.push(f,F,r),X=this.executeCommand(3,N.rmoveto);break;case 3084:if(this.stack.length<2){X=!0;break}const o=this.stack.pop(),A=this.stack.pop();this.stack.push(A/o);break;case 3088:if(this.stack.length<2){X=!0;break}s=this.stack.pop();const p=this.stack.pop();if(s===0&&p===3){const v=this.stack.splice(this.stack.length-17,17);this.stack.push(v[2]+v[0],v[3]+v[1],v[4],v[5],v[6],v[7],v[8],v[9],v[10],v[11],v[12],v[13],v[14]),X=this.executeCommand(13,N.flex,!0),this.flexing=!1,this.stack.push(v[15],v[16])}else s===1&&p===0&&(this.flexing=!0);break;case 3089:break;case 3105:this.stack=[];break;default:(0,P.warn)('Unknown type 1 charstring command of "'+S+'"');break}if(X)break;continue}else S<=246?S-=139:S<=250?S=(S-247)*256+c[++d]+108:S<=254?S=-((S-251)*256)-c[++d]-108:S=(c[++d]&255)<<24|(c[++d]&255)<<16|(c[++d]&255)<<8|(c[++d]&255)<<0;this.stack.push(S)}return X}executeCommand(c,C,u){const m=this.stack.length;if(c>m)return!0;const X=m-c;for(let f=X;f<m;f++){let F=this.stack[f];Number.isInteger(F)?this.output.push(28,F>>8&255,F&255):(F=65536*F|0,this.output.push(255,F>>24&255,F>>16&255,F>>8&255,F&255))}return this.output.push(...C),u?this.stack.splice(X,c):this.stack.length=0,!1}}const L=55665,k=4330;function x(h){return h>=48&&h<=57||h>=65&&h<=70||h>=97&&h<=102}function g(h,c,C){if(C>=h.length)return new Uint8Array(0);const u=52845,m=22719;let X=c|0,f,F;for(f=0;f<C;f++)X=(h[f]+X)*u+m&65535;const s=h.length-C,d=new Uint8Array(s);for(f=C,F=0;F<s;f++,F++){const S=h[f];d[F]=S^X>>8,X=(S+X)*u+m&65535}return d}function n(h,c,C){let X=c|0;const f=h.length,F=f>>>1,s=new Uint8Array(F);let d,S;for(d=0,S=0;d<f;d++){const r=h[d];if(!x(r))continue;d++;let o;for(;d<f&&!x(o=h[d]);)d++;if(d<f){const A=parseInt(String.fromCharCode(r,o),16);s[S++]=A^X>>8,X=(A+X)*52845+22719&65535}}return s.slice(C,S)}function I(h){return h===47||h===91||h===93||h===123||h===125||h===40||h===41}class B{constructor(c,C,u){if(C){const m=c.getBytes(),X=!((x(m[0])||(0,i.isWhiteSpace)(m[0]))&&x(m[1])&&x(m[2])&&x(m[3])&&x(m[4])&&x(m[5])&&x(m[6])&&x(m[7]));c=new O.Stream(X?g(m,L,4):n(m,L,4))}this.seacAnalysisEnabled=!!u,this.stream=c,this.nextChar()}readNumberArray(){this.getToken();const c=[];for(;;){const C=this.getToken();if(C===null||C==="]"||C==="}")break;c.push(parseFloat(C||0))}return c}readNumber(){const c=this.getToken();return parseFloat(c||0)}readInt(){const c=this.getToken();return parseInt(c||0,10)|0}readBoolean(){return this.getToken()==="true"?1:0}nextChar(){return this.currentChar=this.stream.getByte()}prevChar(){return this.stream.skip(-2),this.currentChar=this.stream.getByte()}getToken(){let c=!1,C=this.currentChar;for(;;){if(C===-1)return null;if(c)(C===10||C===13)&&(c=!1);else if(C===37)c=!0;else if(!(0,i.isWhiteSpace)(C))break;C=this.nextChar()}if(I(C))return this.nextChar(),String.fromCharCode(C);let u="";do u+=String.fromCharCode(C),C=this.nextChar();while(C>=0&&!(0,i.isWhiteSpace)(C)&&!I(C));return u}readCharStrings(c,C){return C===-1?c:g(c,k,C)}extractFontProgram(c){const C=this.stream,u=[],m=[],X=Object.create(null);X.lenIV=4;const f={subrs:[],charstrings:[],properties:{privateData:X}};let F,s,d,S;for(;(F=this.getToken())!==null;)if(F==="/")switch(F=this.getToken(),F){case"CharStrings":for(this.getToken(),this.getToken(),this.getToken(),this.getToken();F=this.getToken(),!(F===null||F==="end");){if(F!=="/")continue;const o=this.getToken();s=this.readInt(),this.getToken(),d=s>0?C.getBytes(s):new Uint8Array(0),S=f.properties.privateData.lenIV;const A=this.readCharStrings(d,S);this.nextChar(),F=this.getToken(),F==="noaccess"?this.getToken():F==="/"&&this.prevChar(),m.push({glyph:o,encoded:A})}break;case"Subrs":for(this.readInt(),this.getToken();this.getToken()==="dup";){const o=this.readInt();s=this.readInt(),this.getToken(),d=s>0?C.getBytes(s):new Uint8Array(0),S=f.properties.privateData.lenIV;const A=this.readCharStrings(d,S);this.nextChar(),F=this.getToken(),F==="noaccess"&&this.getToken(),u[o]=A}break;case"BlueValues":case"OtherBlues":case"FamilyBlues":case"FamilyOtherBlues":const r=this.readNumberArray();r.length>0&&r.length%2===0&&e&&(f.properties.privateData[F]=r);break;case"StemSnapH":case"StemSnapV":f.properties.privateData[F]=this.readNumberArray();break;case"StdHW":case"StdVW":f.properties.privateData[F]=this.readNumberArray()[0];break;case"BlueShift":case"lenIV":case"BlueFuzz":case"BlueScale":case"LanguageGroup":f.properties.privateData[F]=this.readNumber();break;case"ExpansionFactor":f.properties.privateData[F]=this.readNumber()||.06;break;case"ForceBold":f.properties.privateData[F]=this.readBoolean();break}for(const{encoded:r,glyph:o}of m){const A=new D,p=A.convert(r,u,this.seacAnalysisEnabled);let v=A.output;p&&(v=[14]);const R={glyphName:o,charstring:v,width:A.width,lsb:A.lsb,seac:A.seac};if(o===".notdef"?f.charstrings.unshift(R):f.charstrings.push(R),c.builtInEncoding){const T=c.builtInEncoding.indexOf(o);T>-1&&c.widths[T]===void 0&&T>=c.firstChar&&T<=c.lastChar&&(c.widths[T]=A.width)}}return f}extractFontHeader(c){let C;for(;(C=this.getToken())!==null;)if(C==="/")switch(C=this.getToken(),C){case"FontMatrix":const u=this.readNumberArray();c.fontMatrix=u;break;case"Encoding":const m=this.getToken();let X;if(!/^\d+$/.test(m))X=(0,t.getEncoding)(m);else{X=[];const F=parseInt(m,10)|0;this.getToken();for(let s=0;s<F;s++){for(C=this.getToken();C!=="dup"&&C!=="def";)if(C=this.getToken(),C===null)return;if(C==="def")break;const d=this.readInt();this.getToken();const S=this.getToken();X[d]=S,this.getToken()}}c.builtInEncoding=X;break;case"FontBBox":const f=this.readNumberArray();c.ascent=Math.max(f[3],f[1]),c.descent=Math.min(f[1],f[3]),c.ascentScaled=!0;break}}}l.Type1Parser=B},(he,l,w)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.Pattern=void 0,l.getTilingPatternIR=I;var t=w(2),i=w(138),O=w(145),P=w(136);const e={FUNCTION_BASED:1,AXIAL:2,RADIAL:3,FREE_FORM_MESH:4,LATTICE_FORM_MESH:5,COONS_PATCH_MESH:6,TENSOR_PATCH_MESH:7};class N{constructor(){(0,t.unreachable)("Cannot initialize Pattern.")}static parseShading(h,c,C,u,m,X){const f=h instanceof i.BaseStream?h.dict:h,F=f.get("ShadingType");try{switch(F){case e.AXIAL:case e.RADIAL:return new L(f,c,C,m,X);case e.FREE_FORM_MESH:case e.LATTICE_FORM_MESH:case e.COONS_PATCH_MESH:case e.TENSOR_PATCH_MESH:return new g(h,c,C,m,X);default:throw new t.FormatError("Unsupported ShadingType: "+F)}}catch(s){if(s instanceof P.MissingDataException)throw s;return u.send("UnsupportedFeature",{featureId:t.UNSUPPORTED_FEATURES.shadingPattern}),(0,t.warn)(s),new n}}}l.Pattern=N;class D{static get SMALL_NUMBER(){return(0,t.shadow)(this,"SMALL_NUMBER",1e-6)}constructor(){this.constructor===D&&(0,t.unreachable)("Cannot initialize BaseShading.")}getIR(){(0,t.unreachable)("Abstract method `getIR` called.")}}class L extends D{constructor(h,c,C,u,m){super(),this.coordsArr=h.getArray("Coords"),this.shadingType=h.get("ShadingType");const X=O.ColorSpace.parse({cs:h.getRaw("CS")||h.getRaw("ColorSpace"),xref:c,resources:C,pdfFunctionFactory:u,localColorSpaceCache:m}),f=h.getArray("BBox");Array.isArray(f)&&f.length===4?this.bbox=t.Util.normalizeRect(f):this.bbox=null;let F=0,s=1;if(h.has("Domain")){const z=h.getArray("Domain");F=z[0],s=z[1]}let d=!1,S=!1;if(h.has("Extend")){const z=h.getArray("Extend");d=z[0],S=z[1]}if(this.shadingType===e.RADIAL&&(!d||!S)){const[z,$,j,V,ee,U]=this.coordsArr,G=Math.hypot(z-V,$-ee);j<=U+G&&U<=j+G&&(0,t.warn)("Unsupported radial gradient.")}this.extendStart=d,this.extendEnd=S;const r=h.getRaw("Function"),o=u.createFromArray(r),A=10,p=(s-F)/A,v=this.colorStops=[];if(F>=s||p<=0){(0,t.info)("Bad shading domain.");return}const R=new Float32Array(X.numComps),T=new Float32Array(1);let y;for(let z=0;z<=A;z++){T[0]=F+z*p,o(T,0,R,0),y=X.getRgb(R,0);const $=t.Util.makeHexColor(y[0],y[1],y[2]);v.push([z/A,$])}let H="transparent";h.has("Background")&&(y=X.getRgb(h.get("Background"),0),H=t.Util.makeHexColor(y[0],y[1],y[2])),d||(v.unshift([0,H]),v[1][0]+=D.SMALL_NUMBER),S||(v.at(-1)[0]-=D.SMALL_NUMBER,v.push([1,H])),this.colorStops=v}getIR(){const h=this.coordsArr,c=this.shadingType;let C,u,m,X,f;return c===e.AXIAL?(u=[h[0],h[1]],m=[h[2],h[3]],X=null,f=null,C="axial"):c===e.RADIAL?(u=[h[0],h[1]],m=[h[3],h[4]],X=h[2],f=h[5],C="radial"):(0,t.unreachable)(`getPattern type unknown: ${c}`),["RadialAxial",C,this.bbox,this.colorStops,u,m,X,f]}}class k{constructor(h,c){this.stream=h,this.context=c,this.buffer=0,this.bufferLength=0;const C=c.numComps;this.tmpCompsBuf=new Float32Array(C);const u=c.colorSpace.numComps;this.tmpCsCompsBuf=c.colorFn?new Float32Array(u):this.tmpCompsBuf}get hasData(){if(this.stream.end)return this.stream.pos<this.stream.end;if(this.bufferLength>0)return!0;const h=this.stream.getByte();return h<0?!1:(this.buffer=h,this.bufferLength=8,!0)}readBits(h){let c=this.buffer,C=this.bufferLength;if(h===32){if(C===0)return(this.stream.getByte()<<24|this.stream.getByte()<<16|this.stream.getByte()<<8|this.stream.getByte())>>>0;c=c<<24|this.stream.getByte()<<16|this.stream.getByte()<<8|this.stream.getByte();const u=this.stream.getByte();return this.buffer=u&(1<<C)-1,(c<<8-C|(u&255)>>C)>>>0}if(h===8&&C===0)return this.stream.getByte();for(;C<h;)c=c<<8|this.stream.getByte(),C+=8;return C-=h,this.bufferLength=C,this.buffer=c&(1<<C)-1,c>>C}align(){this.buffer=0,this.bufferLength=0}readFlag(){return this.readBits(this.context.bitsPerFlag)}readCoordinate(){const h=this.context.bitsPerCoordinate,c=this.readBits(h),C=this.readBits(h),u=this.context.decode,m=h<32?1/((1<<h)-1):23283064365386963e-26;return[c*m*(u[1]-u[0])+u[0],C*m*(u[3]-u[2])+u[2]]}readComponents(){const h=this.context.numComps,c=this.context.bitsPerComponent,C=c<32?1/((1<<c)-1):23283064365386963e-26,u=this.context.decode,m=this.tmpCompsBuf;for(let f=0,F=4;f<h;f++,F+=2){const s=this.readBits(c);m[f]=s*C*(u[F+1]-u[F])+u[F]}const X=this.tmpCsCompsBuf;return this.context.colorFn&&this.context.colorFn(m,0,X,0),this.context.colorSpace.getRgb(X,0)}}const x=function(){function h(C){const u=[];for(let m=0;m<=C;m++){const X=m/C,f=1-X;u.push(new Float32Array([f*f*f,3*X*f*f,3*X*X*f,X*X*X]))}return u}const c=[];return function(C){return c[C]||(c[C]=h(C)),c[C]}}();class g extends D{static get MIN_SPLIT_PATCH_CHUNKS_AMOUNT(){return(0,t.shadow)(this,"MIN_SPLIT_PATCH_CHUNKS_AMOUNT",3)}static get MAX_SPLIT_PATCH_CHUNKS_AMOUNT(){return(0,t.shadow)(this,"MAX_SPLIT_PATCH_CHUNKS_AMOUNT",20)}static get TRIANGLE_DENSITY(){return(0,t.shadow)(this,"TRIANGLE_DENSITY",20)}constructor(h,c,C,u,m){if(super(),!(h instanceof i.BaseStream))throw new t.FormatError("Mesh data is not a stream");const X=h.dict;this.shadingType=X.get("ShadingType");const f=X.getArray("BBox");Array.isArray(f)&&f.length===4?this.bbox=t.Util.normalizeRect(f):this.bbox=null;const F=O.ColorSpace.parse({cs:X.getRaw("CS")||X.getRaw("ColorSpace"),xref:c,resources:C,pdfFunctionFactory:u,localColorSpaceCache:m});this.background=X.has("Background")?F.getRgb(X.get("Background"),0):null;const s=X.getRaw("Function"),d=s?u.createFromArray(s):null;this.coords=[],this.colors=[],this.figures=[];const S={bitsPerCoordinate:X.get("BitsPerCoordinate"),bitsPerComponent:X.get("BitsPerComponent"),bitsPerFlag:X.get("BitsPerFlag"),decode:X.getArray("Decode"),colorFn:d,colorSpace:F,numComps:d?1:F.numComps},r=new k(h,S);let o=!1;switch(this.shadingType){case e.FREE_FORM_MESH:this._decodeType4Shading(r);break;case e.LATTICE_FORM_MESH:const A=X.get("VerticesPerRow")|0;if(A<2)throw new t.FormatError("Invalid VerticesPerRow");this._decodeType5Shading(r,A);break;case e.COONS_PATCH_MESH:this._decodeType6Shading(r),o=!0;break;case e.TENSOR_PATCH_MESH:this._decodeType7Shading(r),o=!0;break;default:(0,t.unreachable)("Unsupported mesh type.");break}if(o){this._updateBounds();for(let A=0,p=this.figures.length;A<p;A++)this._buildFigureFromPatch(A)}this._updateBounds(),this._packData()}_decodeType4Shading(h){const c=this.coords,C=this.colors,u=[];let m=0;for(;h.hasData;){const X=h.readFlag(),f=h.readCoordinate(),F=h.readComponents();if(m===0){if(!(0<=X&&X<=2))throw new t.FormatError("Unknown type4 flag");switch(X){case 0:m=3;break;case 1:u.push(u.at(-2),u.at(-1)),m=1;break;case 2:u.push(u.at(-3),u.at(-1)),m=1;break}}u.push(c.length),c.push(f),C.push(F),m--,h.align()}this.figures.push({type:"triangles",coords:new Int32Array(u),colors:new Int32Array(u)})}_decodeType5Shading(h,c){const C=this.coords,u=this.colors,m=[];for(;h.hasData;){const X=h.readCoordinate(),f=h.readComponents();m.push(C.length),C.push(X),u.push(f)}this.figures.push({type:"lattice",coords:new Int32Array(m),colors:new Int32Array(m),verticesPerRow:c})}_decodeType6Shading(h){const c=this.coords,C=this.colors,u=new Int32Array(16),m=new Int32Array(4);for(;h.hasData;){const X=h.readFlag();if(!(0<=X&&X<=3))throw new t.FormatError("Unknown type6 flag");const f=c.length;for(let o=0,A=X!==0?8:12;o<A;o++)c.push(h.readCoordinate());const F=C.length;for(let o=0,A=X!==0?2:4;o<A;o++)C.push(h.readComponents());let s,d,S,r;switch(X){case 0:u[12]=f+3,u[13]=f+4,u[14]=f+5,u[15]=f+6,u[8]=f+2,u[11]=f+7,u[4]=f+1,u[7]=f+8,u[0]=f,u[1]=f+11,u[2]=f+10,u[3]=f+9,m[2]=F+1,m[3]=F+2,m[0]=F,m[1]=F+3;break;case 1:s=u[12],d=u[13],S=u[14],r=u[15],u[12]=r,u[13]=f+0,u[14]=f+1,u[15]=f+2,u[8]=S,u[11]=f+3,u[4]=d,u[7]=f+4,u[0]=s,u[1]=f+7,u[2]=f+6,u[3]=f+5,s=m[2],d=m[3],m[2]=d,m[3]=F,m[0]=s,m[1]=F+1;break;case 2:s=u[15],d=u[11],u[12]=u[3],u[13]=f+0,u[14]=f+1,u[15]=f+2,u[8]=u[7],u[11]=f+3,u[4]=d,u[7]=f+4,u[0]=s,u[1]=f+7,u[2]=f+6,u[3]=f+5,s=m[3],m[2]=m[1],m[3]=F,m[0]=s,m[1]=F+1;break;case 3:u[12]=u[0],u[13]=f+0,u[14]=f+1,u[15]=f+2,u[8]=u[1],u[11]=f+3,u[4]=u[2],u[7]=f+4,u[0]=u[3],u[1]=f+7,u[2]=f+6,u[3]=f+5,m[2]=m[0],m[3]=F,m[0]=m[1],m[1]=F+1;break}u[5]=c.length,c.push([(-4*c[u[0]][0]-c[u[15]][0]+6*(c[u[4]][0]+c[u[1]][0])-2*(c[u[12]][0]+c[u[3]][0])+3*(c[u[13]][0]+c[u[7]][0]))/9,(-4*c[u[0]][1]-c[u[15]][1]+6*(c[u[4]][1]+c[u[1]][1])-2*(c[u[12]][1]+c[u[3]][1])+3*(c[u[13]][1]+c[u[7]][1]))/9]),u[6]=c.length,c.push([(-4*c[u[3]][0]-c[u[12]][0]+6*(c[u[2]][0]+c[u[7]][0])-2*(c[u[0]][0]+c[u[15]][0])+3*(c[u[4]][0]+c[u[14]][0]))/9,(-4*c[u[3]][1]-c[u[12]][1]+6*(c[u[2]][1]+c[u[7]][1])-2*(c[u[0]][1]+c[u[15]][1])+3*(c[u[4]][1]+c[u[14]][1]))/9]),u[9]=c.length,c.push([(-4*c[u[12]][0]-c[u[3]][0]+6*(c[u[8]][0]+c[u[13]][0])-2*(c[u[0]][0]+c[u[15]][0])+3*(c[u[11]][0]+c[u[1]][0]))/9,(-4*c[u[12]][1]-c[u[3]][1]+6*(c[u[8]][1]+c[u[13]][1])-2*(c[u[0]][1]+c[u[15]][1])+3*(c[u[11]][1]+c[u[1]][1]))/9]),u[10]=c.length,c.push([(-4*c[u[15]][0]-c[u[0]][0]+6*(c[u[11]][0]+c[u[14]][0])-2*(c[u[12]][0]+c[u[3]][0])+3*(c[u[2]][0]+c[u[8]][0]))/9,(-4*c[u[15]][1]-c[u[0]][1]+6*(c[u[11]][1]+c[u[14]][1])-2*(c[u[12]][1]+c[u[3]][1])+3*(c[u[2]][1]+c[u[8]][1]))/9]),this.figures.push({type:"patch",coords:new Int32Array(u),colors:new Int32Array(m)})}}_decodeType7Shading(h){const c=this.coords,C=this.colors,u=new Int32Array(16),m=new Int32Array(4);for(;h.hasData;){const X=h.readFlag();if(!(0<=X&&X<=3))throw new t.FormatError("Unknown type7 flag");const f=c.length;for(let o=0,A=X!==0?12:16;o<A;o++)c.push(h.readCoordinate());const F=C.length;for(let o=0,A=X!==0?2:4;o<A;o++)C.push(h.readComponents());let s,d,S,r;switch(X){case 0:u[12]=f+3,u[13]=f+4,u[14]=f+5,u[15]=f+6,u[8]=f+2,u[9]=f+13,u[10]=f+14,u[11]=f+7,u[4]=f+1,u[5]=f+12,u[6]=f+15,u[7]=f+8,u[0]=f,u[1]=f+11,u[2]=f+10,u[3]=f+9,m[2]=F+1,m[3]=F+2,m[0]=F,m[1]=F+3;break;case 1:s=u[12],d=u[13],S=u[14],r=u[15],u[12]=r,u[13]=f+0,u[14]=f+1,u[15]=f+2,u[8]=S,u[9]=f+9,u[10]=f+10,u[11]=f+3,u[4]=d,u[5]=f+8,u[6]=f+11,u[7]=f+4,u[0]=s,u[1]=f+7,u[2]=f+6,u[3]=f+5,s=m[2],d=m[3],m[2]=d,m[3]=F,m[0]=s,m[1]=F+1;break;case 2:s=u[15],d=u[11],u[12]=u[3],u[13]=f+0,u[14]=f+1,u[15]=f+2,u[8]=u[7],u[9]=f+9,u[10]=f+10,u[11]=f+3,u[4]=d,u[5]=f+8,u[6]=f+11,u[7]=f+4,u[0]=s,u[1]=f+7,u[2]=f+6,u[3]=f+5,s=m[3],m[2]=m[1],m[3]=F,m[0]=s,m[1]=F+1;break;case 3:u[12]=u[0],u[13]=f+0,u[14]=f+1,u[15]=f+2,u[8]=u[1],u[9]=f+9,u[10]=f+10,u[11]=f+3,u[4]=u[2],u[5]=f+8,u[6]=f+11,u[7]=f+4,u[0]=u[3],u[1]=f+7,u[2]=f+6,u[3]=f+5,m[2]=m[0],m[3]=F,m[0]=m[1],m[1]=F+1;break}this.figures.push({type:"patch",coords:new Int32Array(u),colors:new Int32Array(m)})}}_buildFigureFromPatch(h){const c=this.figures[h];(0,t.assert)(c.type==="patch","Unexpected patch mesh figure");const C=this.coords,u=this.colors,m=c.coords,X=c.colors,f=Math.min(C[m[0]][0],C[m[3]][0],C[m[12]][0],C[m[15]][0]),F=Math.min(C[m[0]][1],C[m[3]][1],C[m[12]][1],C[m[15]][1]),s=Math.max(C[m[0]][0],C[m[3]][0],C[m[12]][0],C[m[15]][0]),d=Math.max(C[m[0]][1],C[m[3]][1],C[m[12]][1],C[m[15]][1]);let S=Math.ceil((s-f)*g.TRIANGLE_DENSITY/(this.bounds[2]-this.bounds[0]));S=Math.max(g.MIN_SPLIT_PATCH_CHUNKS_AMOUNT,Math.min(g.MAX_SPLIT_PATCH_CHUNKS_AMOUNT,S));let r=Math.ceil((d-F)*g.TRIANGLE_DENSITY/(this.bounds[3]-this.bounds[1]));r=Math.max(g.MIN_SPLIT_PATCH_CHUNKS_AMOUNT,Math.min(g.MAX_SPLIT_PATCH_CHUNKS_AMOUNT,r));const o=S+1,A=new Int32Array((r+1)*o),p=new Int32Array((r+1)*o);let v=0;const R=new Uint8Array(3),T=new Uint8Array(3),y=u[X[0]],H=u[X[1]],z=u[X[2]],$=u[X[3]],j=x(r),V=x(S);for(let ee=0;ee<=r;ee++){R[0]=(y[0]*(r-ee)+z[0]*ee)/r|0,R[1]=(y[1]*(r-ee)+z[1]*ee)/r|0,R[2]=(y[2]*(r-ee)+z[2]*ee)/r|0,T[0]=(H[0]*(r-ee)+$[0]*ee)/r|0,T[1]=(H[1]*(r-ee)+$[1]*ee)/r|0,T[2]=(H[2]*(r-ee)+$[2]*ee)/r|0;for(let U=0;U<=S;U++,v++){if((ee===0||ee===r)&&(U===0||U===S))continue;let G=0,Y=0,oe=0;for(let Q=0;Q<=3;Q++)for(let E=0;E<=3;E++,oe++){const M=j[ee][Q]*V[U][E];G+=C[m[oe]][0]*M,Y+=C[m[oe]][1]*M}A[v]=C.length,C.push([G,Y]),p[v]=u.length;const se=new Uint8Array(3);se[0]=(R[0]*(S-U)+T[0]*U)/S|0,se[1]=(R[1]*(S-U)+T[1]*U)/S|0,se[2]=(R[2]*(S-U)+T[2]*U)/S|0,u.push(se)}}A[0]=m[0],p[0]=X[0],A[S]=m[3],p[S]=X[1],A[o*r]=m[12],p[o*r]=X[2],A[o*r+S]=m[15],p[o*r+S]=X[3],this.figures[h]={type:"lattice",coords:A,colors:p,verticesPerRow:o}}_updateBounds(){let h=this.coords[0][0],c=this.coords[0][1],C=h,u=c;for(let m=1,X=this.coords.length;m<X;m++){const f=this.coords[m][0],F=this.coords[m][1];h=h>f?f:h,c=c>F?F:c,C=C<f?f:C,u=u<F?F:u}this.bounds=[h,c,C,u]}_packData(){let h,c,C,u;const m=this.coords,X=new Float32Array(m.length*2);for(h=0,C=0,c=m.length;h<c;h++){const d=m[h];X[C++]=d[0],X[C++]=d[1]}this.coords=X;const f=this.colors,F=new Uint8Array(f.length*3);for(h=0,C=0,c=f.length;h<c;h++){const d=f[h];F[C++]=d[0],F[C++]=d[1],F[C++]=d[2]}this.colors=F;const s=this.figures;for(h=0,c=s.length;h<c;h++){const d=s[h],S=d.coords,r=d.colors;for(C=0,u=S.length;C<u;C++)S[C]*=2,r[C]*=3}}getIR(){return["Mesh",this.shadingType,this.coords,this.colors,this.figures,this.bounds,this.bbox,this.background]}}class n extends D{getIR(){return["Dummy"]}}function I(B,h,c){const C=h.getArray("Matrix"),u=t.Util.normalizeRect(h.getArray("BBox")),m=h.get("XStep"),X=h.get("YStep"),f=h.get("PaintType"),F=h.get("TilingType");if(u[2]-u[0]===0||u[3]-u[1]===0)throw new t.FormatError(`Invalid getTilingPatternIR /BBox array: [${u}].`);return["TilingPattern",c,B,C,u,m,X,f,F]}},(he,l,w)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.getXfaFontDict=n,l.getXfaFontName=x;var t=w(183),i=w(137),O=w(184),P=w(185),e=w(186),N=w(187),D=w(136),L=w(169);const k=(0,D.getLookupTableFactory)(function(I){I["MyriadPro-Regular"]=I["PdfJS-Fallback-Regular"]={name:"LiberationSans-Regular",factors:e.MyriadProRegularFactors,baseWidths:P.LiberationSansRegularWidths,baseMapping:P.LiberationSansRegularMapping,metrics:e.MyriadProRegularMetrics},I["MyriadPro-Bold"]=I["PdfJS-Fallback-Bold"]={name:"LiberationSans-Bold",factors:e.MyriadProBoldFactors,baseWidths:P.LiberationSansBoldWidths,baseMapping:P.LiberationSansBoldMapping,metrics:e.MyriadProBoldMetrics},I["MyriadPro-It"]=I["MyriadPro-Italic"]=I["PdfJS-Fallback-Italic"]={name:"LiberationSans-Italic",factors:e.MyriadProItalicFactors,baseWidths:P.LiberationSansItalicWidths,baseMapping:P.LiberationSansItalicMapping,metrics:e.MyriadProItalicMetrics},I["MyriadPro-BoldIt"]=I["MyriadPro-BoldItalic"]=I["PdfJS-Fallback-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:e.MyriadProBoldItalicFactors,baseWidths:P.LiberationSansBoldItalicWidths,baseMapping:P.LiberationSansBoldItalicMapping,metrics:e.MyriadProBoldItalicMetrics},I.ArialMT=I.Arial=I["Arial-Regular"]={name:"LiberationSans-Regular",baseWidths:P.LiberationSansRegularWidths,baseMapping:P.LiberationSansRegularMapping},I["Arial-BoldMT"]=I["Arial-Bold"]={name:"LiberationSans-Bold",baseWidths:P.LiberationSansBoldWidths,baseMapping:P.LiberationSansBoldMapping},I["Arial-ItalicMT"]=I["Arial-Italic"]={name:"LiberationSans-Italic",baseWidths:P.LiberationSansItalicWidths,baseMapping:P.LiberationSansItalicMapping},I["Arial-BoldItalicMT"]=I["Arial-BoldItalic"]={name:"LiberationSans-BoldItalic",baseWidths:P.LiberationSansBoldItalicWidths,baseMapping:P.LiberationSansBoldItalicMapping},I["Calibri-Regular"]={name:"LiberationSans-Regular",factors:t.CalibriRegularFactors,baseWidths:P.LiberationSansRegularWidths,baseMapping:P.LiberationSansRegularMapping,metrics:t.CalibriRegularMetrics},I["Calibri-Bold"]={name:"LiberationSans-Bold",factors:t.CalibriBoldFactors,baseWidths:P.LiberationSansBoldWidths,baseMapping:P.LiberationSansBoldMapping,metrics:t.CalibriBoldMetrics},I["Calibri-Italic"]={name:"LiberationSans-Italic",factors:t.CalibriItalicFactors,baseWidths:P.LiberationSansItalicWidths,baseMapping:P.LiberationSansItalicMapping,metrics:t.CalibriItalicMetrics},I["Calibri-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:t.CalibriBoldItalicFactors,baseWidths:P.LiberationSansBoldItalicWidths,baseMapping:P.LiberationSansBoldItalicMapping,metrics:t.CalibriBoldItalicMetrics},I["Segoeui-Regular"]={name:"LiberationSans-Regular",factors:N.SegoeuiRegularFactors,baseWidths:P.LiberationSansRegularWidths,baseMapping:P.LiberationSansRegularMapping,metrics:N.SegoeuiRegularMetrics},I["Segoeui-Bold"]={name:"LiberationSans-Bold",factors:N.SegoeuiBoldFactors,baseWidths:P.LiberationSansBoldWidths,baseMapping:P.LiberationSansBoldMapping,metrics:N.SegoeuiBoldMetrics},I["Segoeui-Italic"]={name:"LiberationSans-Italic",factors:N.SegoeuiItalicFactors,baseWidths:P.LiberationSansItalicWidths,baseMapping:P.LiberationSansItalicMapping,metrics:N.SegoeuiItalicMetrics},I["Segoeui-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:N.SegoeuiBoldItalicFactors,baseWidths:P.LiberationSansBoldItalicWidths,baseMapping:P.LiberationSansBoldItalicMapping,metrics:N.SegoeuiBoldItalicMetrics},I["Helvetica-Regular"]=I.Helvetica={name:"LiberationSans-Regular",factors:O.HelveticaRegularFactors,baseWidths:P.LiberationSansRegularWidths,baseMapping:P.LiberationSansRegularMapping,metrics:O.HelveticaRegularMetrics},I["Helvetica-Bold"]={name:"LiberationSans-Bold",factors:O.HelveticaBoldFactors,baseWidths:P.LiberationSansBoldWidths,baseMapping:P.LiberationSansBoldMapping,metrics:O.HelveticaBoldMetrics},I["Helvetica-Italic"]={name:"LiberationSans-Italic",factors:O.HelveticaItalicFactors,baseWidths:P.LiberationSansItalicWidths,baseMapping:P.LiberationSansItalicMapping,metrics:O.HelveticaItalicMetrics},I["Helvetica-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:O.HelveticaBoldItalicFactors,baseWidths:P.LiberationSansBoldItalicWidths,baseMapping:P.LiberationSansBoldItalicMapping,metrics:O.HelveticaBoldItalicMetrics}});function x(I){const B=(0,L.normalizeFontName)(I);return k()[B]}function g(I){const B=x(I);if(!B)return null;const{baseWidths:h,baseMapping:c,factors:C}=B;let u;C?u=h.map((F,s)=>F*C[s]):u=h;let m=-2,X;const f=[];for(const[F,s]of c.map((d,S)=>[d,S]).sort((d,S)=>{let[r]=d,[o]=S;return r-o}))F!==-1&&(F===m+1?(X.push(u[s]),m+=1):(m=F,X=[u[s]],f.push(F,X)));return f}function n(I){const B=g(I),h=new i.Dict(null);h.set("BaseFont",i.Name.get(I)),h.set("Type",i.Name.get("Font")),h.set("Subtype",i.Name.get("CIDFontType2")),h.set("Encoding",i.Name.get("Identity-H")),h.set("CIDToGIDMap",i.Name.get("Identity")),h.set("W",B),h.set("FirstChar",B[0]),h.set("LastChar",B.at(-2)+B.at(-1).length-1);const c=new i.Dict(null);h.set("FontDescriptor",c);const C=new i.Dict(null);return C.set("Ordering","Identity"),C.set("Registry","Adobe"),C.set("Supplement",0),h.set("CIDSystemInfo",C),h}},(he,l)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.CalibriRegularMetrics=l.CalibriRegularFactors=l.CalibriItalicMetrics=l.CalibriItalicFactors=l.CalibriBoldMetrics=l.CalibriBoldItalicMetrics=l.CalibriBoldItalicFactors=l.CalibriBoldFactors=void 0;const w=[1.3877,1,1,1,.97801,.92482,.89552,.91133,.81988,.97566,.98152,.93548,.93548,1.2798,.85284,.92794,1,.96134,1.54657,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.82845,.82845,.85284,.85284,.85284,.75859,.92138,.83908,.7762,.73293,.87289,.73133,.7514,.81921,.87356,.95958,.59526,.75727,.69225,1.04924,.9121,.86943,.79795,.88198,.77958,.70864,.81055,.90399,.88653,.96017,.82577,.77892,.78257,.97507,1.54657,.97507,.85284,.89552,.90176,.88762,.8785,.75241,.8785,.90518,.95015,.77618,.8785,.88401,.91916,.86304,.88401,.91488,.8785,.8801,.8785,.8785,.91343,.7173,1.04106,.8785,.85075,.95794,.82616,.85162,.79492,.88331,1.69808,.88331,.85284,.97801,.89552,.91133,.89552,.91133,1.7801,.89552,1.24487,1.13254,1.12401,.96839,.85284,.68787,.70645,.85592,.90747,1.01466,1.0088,.90323,1,1.07463,1,.91056,.75806,1.19118,.96839,.78864,.82845,.84133,.75859,.83908,.83908,.83908,.83908,.83908,.83908,.77539,.73293,.73133,.73133,.73133,.73133,.95958,.95958,.95958,.95958,.88506,.9121,.86943,.86943,.86943,.86943,.86943,.85284,.87508,.90399,.90399,.90399,.90399,.77892,.79795,.90807,.88762,.88762,.88762,.88762,.88762,.88762,.8715,.75241,.90518,.90518,.90518,.90518,.88401,.88401,.88401,.88401,.8785,.8785,.8801,.8801,.8801,.8801,.8801,.90747,.89049,.8785,.8785,.8785,.8785,.85162,.8785,.85162,.83908,.88762,.83908,.88762,.83908,.88762,.73293,.75241,.73293,.75241,.73293,.75241,.73293,.75241,.87289,.83016,.88506,.93125,.73133,.90518,.73133,.90518,.73133,.90518,.73133,.90518,.73133,.90518,.81921,.77618,.81921,.77618,.81921,.77618,1,1,.87356,.8785,.91075,.89608,.95958,.88401,.95958,.88401,.95958,.88401,.95958,.88401,.95958,.88401,.76229,.90167,.59526,.91916,1,1,.86304,.69225,.88401,1,1,.70424,.79468,.91926,.88175,.70823,.94903,.9121,.8785,1,1,.9121,.8785,.87802,.88656,.8785,.86943,.8801,.86943,.8801,.86943,.8801,.87402,.89291,.77958,.91343,1,1,.77958,.91343,.70864,.7173,.70864,.7173,.70864,.7173,.70864,.7173,1,1,.81055,.75841,.81055,1.06452,.90399,.8785,.90399,.8785,.90399,.8785,.90399,.8785,.90399,.8785,.90399,.8785,.96017,.95794,.77892,.85162,.77892,.78257,.79492,.78257,.79492,.78257,.79492,.9297,.56892,.83908,.88762,.77539,.8715,.87508,.89049,1,1,.81055,1.04106,1.20528,1.20528,1,1.15543,.70674,.98387,.94721,1.33431,1.45894,.95161,1.06303,.83908,.80352,.57184,.6965,.56289,.82001,.56029,.81235,1.02988,.83908,.7762,.68156,.80367,.73133,.78257,.87356,.86943,.95958,.75727,.89019,1.04924,.9121,.7648,.86943,.87356,.79795,.78275,.81055,.77892,.9762,.82577,.99819,.84896,.95958,.77892,.96108,1.01407,.89049,1.02988,.94211,.96108,.8936,.84021,.87842,.96399,.79109,.89049,1.00813,1.02988,.86077,.87445,.92099,.84723,.86513,.8801,.75638,.85714,.78216,.79586,.87965,.94211,.97747,.78287,.97926,.84971,1.02988,.94211,.8801,.94211,.84971,.73133,1,1,1,1,1,1,1,1,1,1,1,1,.90264,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.90518,1,1,1,1,1,1,1,1,1,1,1,1,.90548,1,1,1,1,1,1,.96017,.95794,.96017,.95794,.96017,.95794,.77892,.85162,1,1,.89552,.90527,1,.90363,.92794,.92794,.92794,.92794,.87012,.87012,.87012,.89552,.89552,1.42259,.71143,1.06152,1,1,1.03372,1.03372,.97171,1.4956,2.2807,.93835,.83406,.91133,.84107,.91133,1,1,1,.72021,1,1.23108,.83489,.88525,.88525,.81499,.90527,1.81055,.90527,1.81055,1.31006,1.53711,.94434,1.08696,1,.95018,.77192,.85284,.90747,1.17534,.69825,.9716,1.37077,.90747,.90747,.85356,.90747,.90747,1.44947,.85284,.8941,.8941,.70572,.8,.70572,.70572,.70572,.70572,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.99862,.99862,1,1,1,1,1,1.08004,.91027,1,1,1,.99862,1,1,1,1,1,1,1,1,1,1,1,1,.90727,.90727,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];l.CalibriBoldFactors=w;const t={lineHeight:1.2207,lineGap:.2207};l.CalibriBoldMetrics=t;const i=[1.3877,1,1,1,.97801,.92482,.89552,.91133,.81988,.97566,.98152,.93548,.93548,1.2798,.85284,.92794,1,.96134,1.56239,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.82845,.82845,.85284,.85284,.85284,.75859,.92138,.83908,.7762,.71805,.87289,.73133,.7514,.81921,.87356,.95958,.59526,.75727,.69225,1.04924,.90872,.85938,.79795,.87068,.77958,.69766,.81055,.90399,.88653,.96068,.82577,.77892,.78257,.97507,1.529,.97507,.85284,.89552,.90176,.94908,.86411,.74012,.86411,.88323,.95015,.86411,.86331,.88401,.91916,.86304,.88401,.9039,.86331,.86331,.86411,.86411,.90464,.70852,1.04106,.86331,.84372,.95794,.82616,.84548,.79492,.88331,1.69808,.88331,.85284,.97801,.89552,.91133,.89552,.91133,1.7801,.89552,1.24487,1.13254,1.19129,.96839,.85284,.68787,.70645,.85592,.90747,1.01466,1.0088,.90323,1,1.07463,1,.91056,.75806,1.19118,.96839,.78864,.82845,.84133,.75859,.83908,.83908,.83908,.83908,.83908,.83908,.77539,.71805,.73133,.73133,.73133,.73133,.95958,.95958,.95958,.95958,.88506,.90872,.85938,.85938,.85938,.85938,.85938,.85284,.87068,.90399,.90399,.90399,.90399,.77892,.79795,.90807,.94908,.94908,.94908,.94908,.94908,.94908,.85887,.74012,.88323,.88323,.88323,.88323,.88401,.88401,.88401,.88401,.8785,.86331,.86331,.86331,.86331,.86331,.86331,.90747,.89049,.86331,.86331,.86331,.86331,.84548,.86411,.84548,.83908,.94908,.83908,.94908,.83908,.94908,.71805,.74012,.71805,.74012,.71805,.74012,.71805,.74012,.87289,.79538,.88506,.92726,.73133,.88323,.73133,.88323,.73133,.88323,.73133,.88323,.73133,.88323,.81921,.86411,.81921,.86411,.81921,.86411,1,1,.87356,.86331,.91075,.8777,.95958,.88401,.95958,.88401,.95958,.88401,.95958,.88401,.95958,.88401,.76467,.90167,.59526,.91916,1,1,.86304,.69225,.88401,1,1,.70424,.77312,.91926,.88175,.70823,.94903,.90872,.86331,1,1,.90872,.86331,.86906,.88116,.86331,.85938,.86331,.85938,.86331,.85938,.86331,.87402,.86549,.77958,.90464,1,1,.77958,.90464,.69766,.70852,.69766,.70852,.69766,.70852,.69766,.70852,1,1,.81055,.75841,.81055,1.06452,.90399,.86331,.90399,.86331,.90399,.86331,.90399,.86331,.90399,.86331,.90399,.86331,.96068,.95794,.77892,.84548,.77892,.78257,.79492,.78257,.79492,.78257,.79492,.9297,.56892,.83908,.94908,.77539,.85887,.87068,.89049,1,1,.81055,1.04106,1.20528,1.20528,1,1.15543,.70088,.98387,.94721,1.33431,1.45894,.95161,1.48387,.83908,.80352,.57118,.6965,.56347,.79179,.55853,.80346,1.02988,.83908,.7762,.67174,.86036,.73133,.78257,.87356,.86441,.95958,.75727,.89019,1.04924,.90872,.74889,.85938,.87891,.79795,.7957,.81055,.77892,.97447,.82577,.97466,.87179,.95958,.77892,.94252,.95612,.8753,1.02988,.92733,.94252,.87411,.84021,.8728,.95612,.74081,.8753,1.02189,1.02988,.84814,.87445,.91822,.84723,.85668,.86331,.81344,.87581,.76422,.82046,.96057,.92733,.99375,.78022,.95452,.86015,1.02988,.92733,.86331,.92733,.86015,.73133,1,1,1,1,1,1,1,1,1,1,1,1,.90631,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.88323,1,1,1,1,1,1,1,1,1,1,1,1,.85174,1,1,1,1,1,1,.96068,.95794,.96068,.95794,.96068,.95794,.77892,.84548,1,1,.89552,.90527,1,.90363,.92794,.92794,.92794,.89807,.87012,.87012,.87012,.89552,.89552,1.42259,.71094,1.06152,1,1,1.03372,1.03372,.97171,1.4956,2.2807,.92972,.83406,.91133,.83326,.91133,1,1,1,.72021,1,1.23108,.83489,.88525,.88525,.81499,.90616,1.81055,.90527,1.81055,1.3107,1.53711,.94434,1.08696,1,.95018,.77192,.85284,.90747,1.17534,.69825,.9716,1.37077,.90747,.90747,.85356,.90747,.90747,1.44947,.85284,.8941,.8941,.70572,.8,.70572,.70572,.70572,.70572,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.99862,.99862,1,1,1,1,1,1.08004,.91027,1,1,1,.99862,1,1,1,1,1,1,1,1,1,1,1,1,.90727,.90727,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];l.CalibriBoldItalicFactors=i;const O={lineHeight:1.2207,lineGap:.2207};l.CalibriBoldItalicMetrics=O;const P=[1.3877,1,1,1,1.17223,1.1293,.89552,.91133,.80395,1.02269,1.15601,.91056,.91056,1.2798,.85284,.89807,1,.90861,1.39543,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.96309,.96309,.85284,.85284,.85284,.83319,.88071,.8675,.81552,.72346,.85193,.73206,.7522,.81105,.86275,.90685,.6377,.77892,.75593,1.02638,.89249,.84118,.77452,.85374,.75186,.67789,.79776,.88844,.85066,.94309,.77818,.7306,.76659,1.10369,1.38313,1.10369,1.06139,.89552,.8739,.9245,.9245,.83203,.9245,.85865,1.09842,.9245,.9245,1.03297,1.07692,.90918,1.03297,.94959,.9245,.92274,.9245,.9245,1.02933,.77832,1.20562,.9245,.8916,.98986,.86621,.89453,.79004,.94152,1.77256,.94152,.85284,.97801,.89552,.91133,.89552,.91133,1.91729,.89552,1.17889,1.13254,1.16359,.92098,.85284,.68787,.71353,.84737,.90747,1.0088,1.0044,.87683,1,1.09091,1,.92229,.739,1.15642,.92098,.76288,.80504,.80972,.75859,.8675,.8675,.8675,.8675,.8675,.8675,.76318,.72346,.73206,.73206,.73206,.73206,.90685,.90685,.90685,.90685,.86477,.89249,.84118,.84118,.84118,.84118,.84118,.85284,.84557,.88844,.88844,.88844,.88844,.7306,.77452,.86331,.9245,.9245,.9245,.9245,.9245,.9245,.84843,.83203,.85865,.85865,.85865,.85865,.82601,.82601,.82601,.82601,.94469,.9245,.92274,.92274,.92274,.92274,.92274,.90747,.86651,.9245,.9245,.9245,.9245,.89453,.9245,.89453,.8675,.9245,.8675,.9245,.8675,.9245,.72346,.83203,.72346,.83203,.72346,.83203,.72346,.83203,.85193,.8875,.86477,.99034,.73206,.85865,.73206,.85865,.73206,.85865,.73206,.85865,.73206,.85865,.81105,.9245,.81105,.9245,.81105,.9245,1,1,.86275,.9245,.90872,.93591,.90685,.82601,.90685,.82601,.90685,.82601,.90685,1.03297,.90685,.82601,.77896,1.05611,.6377,1.07692,1,1,.90918,.75593,1.03297,1,1,.76032,.9375,.98156,.93407,.77261,1.11429,.89249,.9245,1,1,.89249,.9245,.92534,.86698,.9245,.84118,.92274,.84118,.92274,.84118,.92274,.8667,.86291,.75186,1.02933,1,1,.75186,1.02933,.67789,.77832,.67789,.77832,.67789,.77832,.67789,.77832,1,1,.79776,.97655,.79776,1.23023,.88844,.9245,.88844,.9245,.88844,.9245,.88844,.9245,.88844,.9245,.88844,.9245,.94309,.98986,.7306,.89453,.7306,.76659,.79004,.76659,.79004,.76659,.79004,1.09231,.54873,.8675,.9245,.76318,.84843,.84557,.86651,1,1,.79776,1.20562,1.18622,1.18622,1,1.1437,.67009,.96334,.93695,1.35191,1.40909,.95161,1.48387,.8675,.90861,.6192,.7363,.64824,.82411,.56321,.85696,1.23516,.8675,.81552,.7286,.84134,.73206,.76659,.86275,.84369,.90685,.77892,.85871,1.02638,.89249,.75828,.84118,.85984,.77452,.76466,.79776,.7306,.90782,.77818,.903,.87291,.90685,.7306,.99058,1.03667,.94635,1.23516,.9849,.99058,.92393,.8916,.942,1.03667,.75026,.94635,1.0297,1.23516,.90918,.94048,.98217,.89746,.84153,.92274,.82507,.88832,.84438,.88178,1.03525,.9849,1.00225,.78086,.97248,.89404,1.23516,.9849,.92274,.9849,.89404,.73206,1,1,1,1,1,1,1,1,1,1,1,1,.89693,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.85865,1,1,1,1,1,1,1,1,1,1,1,1,.90933,1,1,1,1,1,1,.94309,.98986,.94309,.98986,.94309,.98986,.7306,.89453,1,1,.89552,.90527,1,.90186,1.12308,1.12308,1.12308,1.12308,1.2566,1.2566,1.2566,.89552,.89552,1.42259,.68994,1.03809,1,1,1.0176,1.0176,1.11523,1.4956,2.01462,.97858,.82616,.91133,.83437,.91133,1,1,1,.70508,1,1.23108,.79801,.84426,.84426,.774,.90572,1.81055,.90749,1.81055,1.28809,1.55469,.94434,1.07806,1,.97094,.7589,.85284,.90747,1.19658,.69825,.97622,1.33512,.90747,.90747,.85284,.90747,.90747,1.44947,.85284,.8941,.8941,.70572,.8,.70572,.70572,.70572,.70572,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.99862,.99862,1,1,1,1,1,1.0336,.91027,1,1,1,.99862,1,1,1,1,1,1,1,1,1,1,1,1,1.05859,1.05859,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];l.CalibriItalicFactors=P;const e={lineHeight:1.2207,lineGap:.2207};l.CalibriItalicMetrics=e;const N=[1.3877,1,1,1,1.17223,1.1293,.89552,.91133,.80395,1.02269,1.15601,.91056,.91056,1.2798,.85284,.89807,1,.90861,1.39016,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.96309,.96309,.85284,.85284,.85284,.83319,.88071,.8675,.81552,.73834,.85193,.73206,.7522,.81105,.86275,.90685,.6377,.77892,.75593,1.02638,.89385,.85122,.77452,.86503,.75186,.68887,.79776,.88844,.85066,.94258,.77818,.7306,.76659,1.10369,1.39016,1.10369,1.06139,.89552,.8739,.86128,.94469,.8457,.94469,.89464,1.09842,.84636,.94469,1.03297,1.07692,.90918,1.03297,.95897,.94469,.9482,.94469,.94469,1.04692,.78223,1.20562,.94469,.90332,.98986,.86621,.90527,.79004,.94152,1.77256,.94152,.85284,.97801,.89552,.91133,.89552,.91133,1.91729,.89552,1.17889,1.13254,1.08707,.92098,.85284,.68787,.71353,.84737,.90747,1.0088,1.0044,.87683,1,1.09091,1,.92229,.739,1.15642,.92098,.76288,.80504,.80972,.75859,.8675,.8675,.8675,.8675,.8675,.8675,.76318,.73834,.73206,.73206,.73206,.73206,.90685,.90685,.90685,.90685,.86477,.89385,.85122,.85122,.85122,.85122,.85122,.85284,.85311,.88844,.88844,.88844,.88844,.7306,.77452,.86331,.86128,.86128,.86128,.86128,.86128,.86128,.8693,.8457,.89464,.89464,.89464,.89464,.82601,.82601,.82601,.82601,.94469,.94469,.9482,.9482,.9482,.9482,.9482,.90747,.86651,.94469,.94469,.94469,.94469,.90527,.94469,.90527,.8675,.86128,.8675,.86128,.8675,.86128,.73834,.8457,.73834,.8457,.73834,.8457,.73834,.8457,.85193,.92454,.86477,.9921,.73206,.89464,.73206,.89464,.73206,.89464,.73206,.89464,.73206,.89464,.81105,.84636,.81105,.84636,.81105,.84636,1,1,.86275,.94469,.90872,.95786,.90685,.82601,.90685,.82601,.90685,.82601,.90685,1.03297,.90685,.82601,.77741,1.05611,.6377,1.07692,1,1,.90918,.75593,1.03297,1,1,.76032,.90452,.98156,1.11842,.77261,1.11429,.89385,.94469,1,1,.89385,.94469,.95877,.86901,.94469,.85122,.9482,.85122,.9482,.85122,.9482,.8667,.90016,.75186,1.04692,1,1,.75186,1.04692,.68887,.78223,.68887,.78223,.68887,.78223,.68887,.78223,1,1,.79776,.92188,.79776,1.23023,.88844,.94469,.88844,.94469,.88844,.94469,.88844,.94469,.88844,.94469,.88844,.94469,.94258,.98986,.7306,.90527,.7306,.76659,.79004,.76659,.79004,.76659,.79004,1.09231,.54873,.8675,.86128,.76318,.8693,.85311,.86651,1,1,.79776,1.20562,1.18622,1.18622,1,1.1437,.67742,.96334,.93695,1.35191,1.40909,.95161,1.48387,.86686,.90861,.62267,.74359,.65649,.85498,.56963,.88254,1.23516,.8675,.81552,.75443,.84503,.73206,.76659,.86275,.85122,.90685,.77892,.85746,1.02638,.89385,.75657,.85122,.86275,.77452,.74171,.79776,.7306,.95165,.77818,.89772,.88831,.90685,.7306,.98142,1.02191,.96576,1.23516,.99018,.98142,.9236,.89258,.94035,1.02191,.78848,.96576,.9561,1.23516,.90918,.92578,.95424,.89746,.83969,.9482,.80113,.89442,.85208,.86155,.98022,.99018,1.00452,.81209,.99247,.89181,1.23516,.99018,.9482,.99018,.89181,.73206,1,1,1,1,1,1,1,1,1,1,1,1,.88844,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.89464,1,1,1,1,1,1,1,1,1,1,1,1,.96766,1,1,1,1,1,1,.94258,.98986,.94258,.98986,.94258,.98986,.7306,.90527,1,1,.89552,.90527,1,.90186,1.12308,1.12308,1.12308,1.12308,1.2566,1.2566,1.2566,.89552,.89552,1.42259,.69043,1.03809,1,1,1.0176,1.0176,1.11523,1.4956,2.01462,.99331,.82616,.91133,.84286,.91133,1,1,1,.70508,1,1.23108,.79801,.84426,.84426,.774,.90527,1.81055,.90527,1.81055,1.28809,1.55469,.94434,1.07806,1,.97094,.7589,.85284,.90747,1.19658,.69825,.97622,1.33512,.90747,.90747,.85356,.90747,.90747,1.44947,.85284,.8941,.8941,.70572,.8,.70572,.70572,.70572,.70572,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.99862,.99862,1,1,1,1,1,1.0336,.91027,1,1,1,.99862,1,1,1,1,1,1,1,1,1,1,1,1,1.05859,1.05859,1,1,1,1.07185,.99413,.96334,1.08065,1,1,1,1,1,1,1,1,1,1,1];l.CalibriRegularFactors=N;const D={lineHeight:1.2207,lineGap:.2207};l.CalibriRegularMetrics=D},(he,l)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.HelveticaRegularMetrics=l.HelveticaRegularFactors=l.HelveticaItalicMetrics=l.HelveticaItalicFactors=l.HelveticaBoldMetrics=l.HelveticaBoldItalicMetrics=l.HelveticaBoldItalicFactors=l.HelveticaBoldFactors=void 0;const w=[.76116,1,1,1.0006,.99998,.99974,.99973,.99973,.99982,.99977,1.00087,.99998,.99998,.99959,1.00003,1.0006,.99998,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99998,1,1.00003,1.00003,1.00003,1.00026,.9999,.99977,.99977,.99977,.99977,1.00001,1.00026,1.00022,.99977,1.0006,.99973,.99977,1.00026,.99999,.99977,1.00022,1.00001,1.00022,.99977,1.00001,1.00026,.99977,1.00001,1.00016,1.00001,1.00001,1.00026,.99998,1.0006,.99998,1.00003,.99973,.99998,.99973,1.00026,.99973,1.00026,.99973,.99998,1.00026,1.00026,1.0006,1.0006,.99973,1.0006,.99982,1.00026,1.00026,1.00026,1.00026,.99959,.99973,.99998,1.00026,.99973,1.00022,.99973,.99973,1,.99959,1.00077,.99959,1.00003,.99998,.99973,.99973,.99973,.99973,1.00077,.99973,.99998,1.00025,.99968,.99973,1.00003,1.00025,.60299,1.00024,1.06409,1,1,.99998,1,.99973,1.0006,.99998,1,.99936,.99973,1.00002,1.00002,1.00002,1.00026,.99977,.99977,.99977,.99977,.99977,.99977,1,.99977,1.00001,1.00001,1.00001,1.00001,1.0006,1.0006,1.0006,1.0006,.99977,.99977,1.00022,1.00022,1.00022,1.00022,1.00022,1.00003,1.00022,.99977,.99977,.99977,.99977,1.00001,1.00001,1.00026,.99973,.99973,.99973,.99973,.99973,.99973,.99982,.99973,.99973,.99973,.99973,.99973,1.0006,1.0006,1.0006,1.0006,1.00026,1.00026,1.00026,1.00026,1.00026,1.00026,1.00026,1.06409,1.00026,1.00026,1.00026,1.00026,1.00026,.99973,1.00026,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,1.03374,.99977,1.00026,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,.99977,1.00026,.99977,1.00026,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.00042,.99973,.99973,1.0006,.99977,.99973,.99973,1.00026,1.0006,1.00026,1.0006,1.00026,1.03828,1.00026,.99999,1.00026,1.0006,.99977,1.00026,.99977,1.00026,.99977,1.00026,.9993,.9998,1.00026,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,1,1.00016,.99977,.99959,.99977,.99959,.99977,.99959,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00026,.99998,1.00026,.8121,1.00026,.99998,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,1.00016,1.00022,1.00001,.99973,1.00001,1.00026,1,1.00026,1,1.00026,1,1.0006,.99973,.99977,.99973,1,.99982,1.00022,1.00026,1.00001,.99973,1.00026,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,1.00034,.99977,1,.99997,1.00026,1.00078,1.00036,.99973,1.00013,1.0006,.99977,.99977,.99988,.85148,1.00001,1.00026,.99977,1.00022,1.0006,.99977,1.00001,.99999,.99977,1.00069,1.00022,.99977,1.00001,.99984,1.00026,1.00001,1.00024,1.00001,.9999,1,1.0006,1.00001,1.00041,.99962,1.00026,1.0006,.99995,1.00041,.99942,.99973,.99927,1.00082,.99902,1.00026,1.00087,1.0006,1.00069,.99973,.99867,.99973,.9993,1.00026,1.00049,1.00056,1,.99988,.99935,.99995,.99954,1.00055,.99945,1.00032,1.0006,.99995,1.00026,.99995,1.00032,1.00001,1.00008,.99971,1.00019,.9994,1.00001,1.0006,1.00044,.99973,1.00023,1.00047,1,.99942,.99561,.99989,1.00035,.99977,1.00035,.99977,1.00019,.99944,1.00001,1.00021,.99926,1.00035,1.00035,.99942,1.00048,.99999,.99977,1.00022,1.00035,1.00001,.99977,1.00026,.99989,1.00057,1.00001,.99936,1.00052,1.00012,.99996,1.00043,1,1.00035,.9994,.99976,1.00035,.99973,1.00052,1.00041,1.00119,1.00037,.99973,1.00002,.99986,1.00041,1.00041,.99902,.9996,1.00034,.99999,1.00026,.99999,1.00026,.99973,1.00052,.99973,1,.99973,1.00041,1.00075,.9994,1.0003,.99999,1,1.00041,.99955,1,.99915,.99973,.99973,1.00026,1.00119,.99955,.99973,1.0006,.99911,1.0006,1.00026,.99972,1.00026,.99902,1.00041,.99973,.99999,1,1,1.00038,1.0005,1.00016,1.00022,1.00016,1.00022,1.00016,1.00022,1.00001,.99973,1,1,.99973,1,1,.99955,1.0006,1.0006,1.0006,1.0006,1,1,1,.99973,.99973,.99972,1,1,1.00106,.99999,.99998,.99998,.99999,.99998,1.66475,1,.99973,.99973,1.00023,.99973,.99971,1.00047,1.00023,1,.99991,.99984,1.00002,1.00002,1.00002,1.00002,1,1,1,1,1,1,1,.99972,1,1.20985,1.39713,1.00003,1.00031,1.00015,1,.99561,1.00027,1.00031,1.00031,.99915,1.00031,1.00031,.99999,1.00003,.99999,.99999,1.41144,1.6,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.40579,1.40579,1.36625,.99999,1,.99861,.99861,1,1.00026,1.00026,1.00026,1.00026,.99972,.99999,.99999,.99999,.99999,1.40483,1,.99977,1.00054,1,1,.99953,.99962,1.00042,.9995,1,1,1,1,1,1,1,1,.99998,.99998,.99998,.99998,1,1,1,1,1,1,1,1,1,1,1];l.HelveticaBoldFactors=w;const t={lineHeight:1.2,lineGap:.2};l.HelveticaBoldMetrics=t;const i=[.76116,1,1,1.0006,.99998,.99974,.99973,.99973,.99982,.99977,1.00087,.99998,.99998,.99959,1.00003,1.0006,.99998,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99998,1,1.00003,1.00003,1.00003,1.00026,.9999,.99977,.99977,.99977,.99977,1.00001,1.00026,1.00022,.99977,1.0006,.99973,.99977,1.00026,.99999,.99977,1.00022,1.00001,1.00022,.99977,1.00001,1.00026,.99977,1.00001,1.00016,1.00001,1.00001,1.00026,.99998,1.0006,.99998,1.00003,.99973,.99998,.99973,1.00026,.99973,1.00026,.99973,.99998,1.00026,1.00026,1.0006,1.0006,.99973,1.0006,.99982,1.00026,1.00026,1.00026,1.00026,.99959,.99973,.99998,1.00026,.99973,1.00022,.99973,.99973,1,.99959,1.00077,.99959,1.00003,.99998,.99973,.99973,.99973,.99973,1.00077,.99973,.99998,1.00025,.99968,.99973,1.00003,1.00025,.60299,1.00024,1.06409,1,1,.99998,1,.99973,1.0006,.99998,1,.99936,.99973,1.00002,1.00002,1.00002,1.00026,.99977,.99977,.99977,.99977,.99977,.99977,1,.99977,1.00001,1.00001,1.00001,1.00001,1.0006,1.0006,1.0006,1.0006,.99977,.99977,1.00022,1.00022,1.00022,1.00022,1.00022,1.00003,1.00022,.99977,.99977,.99977,.99977,1.00001,1.00001,1.00026,.99973,.99973,.99973,.99973,.99973,.99973,.99982,.99973,.99973,.99973,.99973,.99973,1.0006,1.0006,1.0006,1.0006,1.00026,1.00026,1.00026,1.00026,1.00026,1.00026,1.00026,1.06409,1.00026,1.00026,1.00026,1.00026,1.00026,.99973,1.00026,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,1.0044,.99977,1.00026,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,.99977,1.00026,.99977,1.00026,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,.99971,.99973,.99973,1.0006,.99977,.99973,.99973,1.00026,1.0006,1.00026,1.0006,1.00026,1.01011,1.00026,.99999,1.00026,1.0006,.99977,1.00026,.99977,1.00026,.99977,1.00026,.9993,.9998,1.00026,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,1,1.00016,.99977,.99959,.99977,.99959,.99977,.99959,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00026,.99998,1.00026,.8121,1.00026,.99998,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,1.00016,1.00022,1.00001,.99973,1.00001,1.00026,1,1.00026,1,1.00026,1,1.0006,.99973,.99977,.99973,1,.99982,1.00022,1.00026,1.00001,.99973,1.00026,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99977,1,1,1.00026,.99969,.99972,.99981,.9998,1.0006,.99977,.99977,1.00022,.91155,1.00001,1.00026,.99977,1.00022,1.0006,.99977,1.00001,.99999,.99977,.99966,1.00022,1.00032,1.00001,.99944,1.00026,1.00001,.99968,1.00001,1.00047,1,1.0006,1.00001,.99981,1.00101,1.00026,1.0006,.99948,.99981,1.00064,.99973,.99942,1.00101,1.00061,1.00026,1.00069,1.0006,1.00014,.99973,1.01322,.99973,1.00065,1.00026,1.00012,.99923,1,1.00064,1.00076,.99948,1.00055,1.00063,1.00007,.99943,1.0006,.99948,1.00026,.99948,.99943,1.00001,1.00001,1.00029,1.00038,1.00035,1.00001,1.0006,1.0006,.99973,.99978,1.00001,1.00057,.99989,.99967,.99964,.99967,.99977,.99999,.99977,1.00038,.99977,1.00001,.99973,1.00066,.99967,.99967,1.00041,.99998,.99999,.99977,1.00022,.99967,1.00001,.99977,1.00026,.99964,1.00031,1.00001,.99999,.99999,1,1.00023,1,1,.99999,1.00035,1.00001,.99999,.99973,.99977,.99999,1.00058,.99973,.99973,.99955,.9995,1.00026,1.00026,1.00032,.99989,1.00034,.99999,1.00026,1.00026,1.00026,.99973,.45998,.99973,1.00026,.99973,1.00001,.99999,.99982,.99994,.99996,1,1.00042,1.00044,1.00029,1.00023,.99973,.99973,1.00026,.99949,1.00002,.99973,1.0006,1.0006,1.0006,.99975,1.00026,1.00026,1.00032,.98685,.99973,1.00026,1,1,.99966,1.00044,1.00016,1.00022,1.00016,1.00022,1.00016,1.00022,1.00001,.99973,1,1,.99973,1,1,.99955,1.0006,1.0006,1.0006,1.0006,1,1,1,.99973,.99973,.99972,1,1,1.00106,.99999,.99998,.99998,.99999,.99998,1.66475,1,.99973,.99973,1,.99973,.99971,.99978,1,1,.99991,.99984,1.00002,1.00002,1.00002,1.00002,1.00098,1,1,1,1.00049,1,1,.99972,1,1.20985,1.39713,1.00003,1.00031,1.00015,1,.99561,1.00027,1.00031,1.00031,.99915,1.00031,1.00031,.99999,1.00003,.99999,.99999,1.41144,1.6,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.40579,1.40579,1.36625,.99999,1,.99861,.99861,1,1.00026,1.00026,1.00026,1.00026,.99972,.99999,.99999,.99999,.99999,1.40483,1,.99977,1.00054,1,1,.99953,.99962,1.00042,.9995,1,1,1,1,1,1,1,1,.99998,.99998,.99998,.99998,1,1,1,1,1,1,1,1,1,1,1];l.HelveticaBoldItalicFactors=i;const O={lineHeight:1.35,lineGap:.2};l.HelveticaBoldItalicMetrics=O;const P=[.76116,1,1,1.0006,1.0006,1.00006,.99973,.99973,.99982,1.00001,1.00043,.99998,.99998,.99959,1.00003,1.0006,.99998,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,1.0006,1,1.00003,1.00003,1.00003,.99973,.99987,1.00001,1.00001,.99977,.99977,1.00001,1.00026,1.00022,.99977,1.0006,1,1.00001,.99973,.99999,.99977,1.00022,1.00001,1.00022,.99977,1.00001,1.00026,.99977,1.00001,1.00016,1.00001,1.00001,1.00026,1.0006,1.0006,1.0006,.99949,.99973,.99998,.99973,.99973,1,.99973,.99973,1.0006,.99973,.99973,.99924,.99924,1,.99924,.99999,.99973,.99973,.99973,.99973,.99998,1,1.0006,.99973,1,.99977,1,1,1,1.00005,1.0009,1.00005,1.00003,.99998,.99973,.99973,.99973,.99973,1.0009,.99973,.99998,1.00025,.99968,.99973,1.00003,1.00025,.60299,1.00024,1.06409,1,1,.99998,1,.9998,1.0006,.99998,1,.99936,.99973,1.00002,1.00002,1.00002,1.00026,1.00001,1.00001,1.00001,1.00001,1.00001,1.00001,1,.99977,1.00001,1.00001,1.00001,1.00001,1.0006,1.0006,1.0006,1.0006,.99977,.99977,1.00022,1.00022,1.00022,1.00022,1.00022,1.00003,1.00022,.99977,.99977,.99977,.99977,1.00001,1.00001,1.00026,.99973,.99973,.99973,.99973,.99973,.99973,.99982,1,.99973,.99973,.99973,.99973,1.0006,1.0006,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,1.06409,1.00026,.99973,.99973,.99973,.99973,1,.99973,1,1.00001,.99973,1.00001,.99973,1.00001,.99973,.99977,1,.99977,1,.99977,1,.99977,1,.99977,1.0288,.99977,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,.99977,.99973,.99977,.99973,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,.99924,1.0006,1.0006,.99946,1.00034,1,.99924,1.00001,1,1,.99973,.99924,.99973,.99924,.99973,1.06311,.99973,1.00024,.99973,.99924,.99977,.99973,.99977,.99973,.99977,.99973,1.00041,.9998,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,1,1.00016,.99977,.99998,.99977,.99998,.99977,.99998,1.00001,1,1.00001,1,1.00001,1,1.00001,1,1.00026,1.0006,1.00026,.89547,1.00026,1.0006,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,1.00016,.99977,1.00001,1,1.00001,1.00026,1,1.00026,1,1.00026,1,.99924,.99973,1.00001,.99973,1,.99982,1.00022,1.00026,1.00001,1,1.00026,1.0006,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,1.00001,1,1.00054,.99977,1.00084,1.00007,.99973,1.00013,.99924,1.00001,1.00001,.99945,.91221,1.00001,1.00026,.99977,1.00022,1.0006,1.00001,1.00001,.99999,.99977,.99933,1.00022,1.00054,1.00001,1.00065,1.00026,1.00001,1.0001,1.00001,1.00052,1,1.0006,1.00001,.99945,.99897,.99968,.99924,1.00036,.99945,.99949,1,1.0006,.99897,.99918,.99968,.99911,.99924,1,.99962,1.01487,1,1.0005,.99973,1.00012,1.00043,1,.99995,.99994,1.00036,.99947,1.00019,1.00063,1.00025,.99924,1.00036,.99973,1.00036,1.00025,1.00001,1.00001,1.00027,1.0001,1.00068,1.00001,1.0006,1.0006,1,1.00008,.99957,.99972,.9994,.99954,.99975,1.00051,1.00001,1.00019,1.00001,1.0001,.99986,1.00001,1.00001,1.00038,.99954,.99954,.9994,1.00066,.99999,.99977,1.00022,1.00054,1.00001,.99977,1.00026,.99975,1.0001,1.00001,.99993,.9995,.99955,1.00016,.99978,.99974,1.00019,1.00022,.99955,1.00053,.99973,1.00089,1.00005,.99967,1.00048,.99973,1.00002,1.00034,.99973,.99973,.99964,1.00006,1.00066,.99947,.99973,.98894,.99973,1,.44898,1,.99946,1,1.00039,1.00082,.99991,.99991,.99985,1.00022,1.00023,1.00061,1.00006,.99966,.99973,.99973,.99973,1.00019,1.0008,1,.99924,.99924,.99924,.99983,1.00044,.99973,.99964,.98332,1,.99973,1,1,.99962,.99895,1.00016,.99977,1.00016,.99977,1.00016,.99977,1.00001,1,1,1,.99973,1,1,.99955,.99924,.99924,.99924,.99924,.99998,.99998,.99998,.99973,.99973,.99972,1,1,1.00267,.99999,.99998,.99998,1,.99998,1.66475,1,.99973,.99973,1.00023,.99973,1.00423,.99925,.99999,1,.99991,.99984,1.00002,1.00002,1.00002,1.00002,1.00049,1,1.00245,1,1,1,1,.96329,1,1.20985,1.39713,1.00003,.8254,1.00015,1,1.00035,1.00027,1.00031,1.00031,1.00003,1.00031,1.00031,.99999,1.00003,.99999,.99999,1.41144,1.6,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.40579,1.40579,1.36625,.99999,1,.99861,.99861,1,1.00026,1.00026,1.00026,1.00026,.95317,.99999,.99999,.99999,.99999,1.40483,1,.99977,1.00054,1,1,.99953,.99962,1.00042,.9995,1,1,1,1,1,1,1,1,.99998,.99998,.99998,.99998,1,1,1,1,1,1,1,1,1,1,1];l.HelveticaItalicFactors=P;const e={lineHeight:1.35,lineGap:.2};l.HelveticaItalicMetrics=e;const N=[.76116,1,1,1.0006,1.0006,1.00006,.99973,.99973,.99982,1.00001,1.00043,.99998,.99998,.99959,1.00003,1.0006,.99998,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,1.0006,1,1.00003,1.00003,1.00003,.99973,.99987,1.00001,1.00001,.99977,.99977,1.00001,1.00026,1.00022,.99977,1.0006,1,1.00001,.99973,.99999,.99977,1.00022,1.00001,1.00022,.99977,1.00001,1.00026,.99977,1.00001,1.00016,1.00001,1.00001,1.00026,1.0006,1.0006,1.0006,.99949,.99973,.99998,.99973,.99973,1,.99973,.99973,1.0006,.99973,.99973,.99924,.99924,1,.99924,.99999,.99973,.99973,.99973,.99973,.99998,1,1.0006,.99973,1,.99977,1,1,1,1.00005,1.0009,1.00005,1.00003,.99998,.99973,.99973,.99973,.99973,1.0009,.99973,.99998,1.00025,.99968,.99973,1.00003,1.00025,.60299,1.00024,1.06409,1,1,.99998,1,.9998,1.0006,.99998,1,.99936,.99973,1.00002,1.00002,1.00002,1.00026,1.00001,1.00001,1.00001,1.00001,1.00001,1.00001,1,.99977,1.00001,1.00001,1.00001,1.00001,1.0006,1.0006,1.0006,1.0006,.99977,.99977,1.00022,1.00022,1.00022,1.00022,1.00022,1.00003,1.00022,.99977,.99977,.99977,.99977,1.00001,1.00001,1.00026,.99973,.99973,.99973,.99973,.99973,.99973,.99982,1,.99973,.99973,.99973,.99973,1.0006,1.0006,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,1.06409,1.00026,.99973,.99973,.99973,.99973,1,.99973,1,1.00001,.99973,1.00001,.99973,1.00001,.99973,.99977,1,.99977,1,.99977,1,.99977,1,.99977,1.04596,.99977,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,.99977,.99973,.99977,.99973,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,.99924,1.0006,1.0006,1.00019,1.00034,1,.99924,1.00001,1,1,.99973,.99924,.99973,.99924,.99973,1.02572,.99973,1.00005,.99973,.99924,.99977,.99973,.99977,.99973,.99977,.99973,.99999,.9998,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,1,1.00016,.99977,.99998,.99977,.99998,.99977,.99998,1.00001,1,1.00001,1,1.00001,1,1.00001,1,1.00026,1.0006,1.00026,.84533,1.00026,1.0006,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,1.00016,.99977,1.00001,1,1.00001,1.00026,1,1.00026,1,1.00026,1,.99924,.99973,1.00001,.99973,1,.99982,1.00022,1.00026,1.00001,1,1.00026,1.0006,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99928,1,.99977,1.00013,1.00055,.99947,.99945,.99941,.99924,1.00001,1.00001,1.0004,.91621,1.00001,1.00026,.99977,1.00022,1.0006,1.00001,1.00005,.99999,.99977,1.00015,1.00022,.99977,1.00001,.99973,1.00026,1.00001,1.00019,1.00001,.99946,1,1.0006,1.00001,.99978,1.00045,.99973,.99924,1.00023,.99978,.99966,1,1.00065,1.00045,1.00019,.99973,.99973,.99924,1,1,.96499,1,1.00055,.99973,1.00008,1.00027,1,.9997,.99995,1.00023,.99933,1.00019,1.00015,1.00031,.99924,1.00023,.99973,1.00023,1.00031,1.00001,.99928,1.00029,1.00092,1.00035,1.00001,1.0006,1.0006,1,.99988,.99975,1,1.00082,.99561,.9996,1.00035,1.00001,.99962,1.00001,1.00092,.99964,1.00001,.99963,.99999,1.00035,1.00035,1.00082,.99962,.99999,.99977,1.00022,1.00035,1.00001,.99977,1.00026,.9996,.99967,1.00001,1.00034,1.00074,1.00054,1.00053,1.00063,.99971,.99962,1.00035,.99975,.99977,.99973,1.00043,.99953,1.0007,.99915,.99973,1.00008,.99892,1.00073,1.00073,1.00114,.99915,1.00073,.99955,.99973,1.00092,.99973,1,.99998,1,1.0003,1,1.00043,1.00001,.99969,1.0003,1,1.00035,1.00001,.9995,1,1.00092,.99973,.99973,.99973,1.0007,.9995,1,.99924,1.0006,.99924,.99972,1.00062,.99973,1.00114,1.00073,1,.99955,1,1,1.00047,.99968,1.00016,.99977,1.00016,.99977,1.00016,.99977,1.00001,1,1,1,.99973,1,1,.99955,.99924,.99924,.99924,.99924,.99998,.99998,.99998,.99973,.99973,.99972,1,1,1.00267,.99999,.99998,.99998,1,.99998,1.66475,1,.99973,.99973,1.00023,.99973,.99971,.99925,1.00023,1,.99991,.99984,1.00002,1.00002,1.00002,1.00002,1,1,1,1,1,1,1,.96329,1,1.20985,1.39713,1.00003,.8254,1.00015,1,1.00035,1.00027,1.00031,1.00031,.99915,1.00031,1.00031,.99999,1.00003,.99999,.99999,1.41144,1.6,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.40579,1.40579,1.36625,.99999,1,.99861,.99861,1,1.00026,1.00026,1.00026,1.00026,.95317,.99999,.99999,.99999,.99999,1.40483,1,.99977,1.00054,1,1,.99953,.99962,1.00042,.9995,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];l.HelveticaRegularFactors=N;const D={lineHeight:1.2,lineGap:.2};l.HelveticaRegularMetrics=D},(he,l)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.LiberationSansRegularWidths=l.LiberationSansRegularMapping=l.LiberationSansItalicWidths=l.LiberationSansItalicMapping=l.LiberationSansBoldWidths=l.LiberationSansBoldMapping=l.LiberationSansBoldItalicWidths=l.LiberationSansBoldItalicMapping=void 0;const w=[365,0,333,278,333,474,556,556,889,722,238,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,333,333,584,584,584,611,975,722,722,722,722,667,611,778,722,278,556,722,611,833,722,778,667,778,722,667,611,722,667,944,667,667,611,333,278,333,584,556,333,556,611,556,611,556,333,611,611,278,278,556,278,889,611,611,611,611,389,556,333,611,556,778,556,556,500,389,280,389,584,333,556,556,556,556,280,556,333,737,370,556,584,737,552,400,549,333,333,333,576,556,278,333,333,365,556,834,834,834,611,722,722,722,722,722,722,1e3,722,667,667,667,667,278,278,278,278,722,722,778,778,778,778,778,584,778,722,722,722,722,667,667,611,556,556,556,556,556,556,889,556,556,556,556,556,278,278,278,278,611,611,611,611,611,611,611,549,611,611,611,611,611,556,611,556,722,556,722,556,722,556,722,556,722,556,722,556,722,556,722,719,722,611,667,556,667,556,667,556,667,556,667,556,778,611,778,611,778,611,778,611,722,611,722,611,278,278,278,278,278,278,278,278,278,278,785,556,556,278,722,556,556,611,278,611,278,611,385,611,479,611,278,722,611,722,611,722,611,708,723,611,778,611,778,611,778,611,1e3,944,722,389,722,389,722,389,667,556,667,556,667,556,667,556,611,333,611,479,611,333,722,611,722,611,722,611,722,611,722,611,722,611,944,778,667,556,667,611,500,611,500,611,500,278,556,722,556,1e3,889,778,611,667,556,611,333,333,333,333,333,333,333,333,333,333,333,465,722,333,853,906,474,825,927,838,278,722,722,601,719,667,611,722,778,278,722,667,833,722,644,778,722,667,600,611,667,821,667,809,802,278,667,615,451,611,278,582,615,610,556,606,475,460,611,541,278,558,556,612,556,445,611,766,619,520,684,446,582,715,576,753,845,278,582,611,582,845,667,669,885,567,711,667,278,276,556,1094,1062,875,610,722,622,719,722,719,722,567,712,667,904,626,719,719,610,702,833,722,778,719,667,722,611,622,854,667,730,703,1005,1019,870,979,719,711,1031,719,556,618,615,417,635,556,709,497,615,615,500,635,740,604,611,604,611,556,490,556,875,556,615,581,833,844,729,854,615,552,854,583,556,556,611,417,552,556,278,281,278,969,906,611,500,615,556,604,778,611,487,447,944,778,944,778,944,778,667,556,333,333,556,1e3,1e3,552,278,278,278,278,500,500,500,556,556,350,1e3,1e3,240,479,333,333,604,333,167,396,556,556,1094,556,885,489,1115,1e3,768,600,834,834,834,834,1e3,500,1e3,500,1e3,500,500,494,612,823,713,584,549,713,979,722,274,549,549,583,549,549,604,584,604,604,708,625,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,729,604,604,354,354,1e3,990,990,990,990,494,604,604,604,604,354,1021,1052,917,750,750,531,656,594,510,500,750,750,611,611,333,333,333,333,333,333,333,333,222,222,333,333,333,333,333,333,333,333];l.LiberationSansBoldWidths=w;const t=[-1,-1,-1,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,161,162,163,164,165,166,167,168,169,170,171,172,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,402,506,507,508,509,510,511,536,537,538,539,710,711,713,728,729,730,731,732,733,900,901,902,903,904,905,906,908,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1138,1139,1168,1169,7808,7809,7810,7811,7812,7813,7922,7923,8208,8209,8211,8212,8213,8215,8216,8217,8218,8219,8220,8221,8222,8224,8225,8226,8230,8240,8242,8243,8249,8250,8252,8254,8260,8319,8355,8356,8359,8364,8453,8467,8470,8482,8486,8494,8539,8540,8541,8542,8592,8593,8594,8595,8596,8597,8616,8706,8710,8719,8721,8722,8730,8734,8735,8745,8747,8776,8800,8801,8804,8805,8962,8976,8992,8993,9472,9474,9484,9488,9492,9496,9500,9508,9516,9524,9532,9552,9553,9554,9555,9556,9557,9558,9559,9560,9561,9562,9563,9564,9565,9566,9567,9568,9569,9570,9571,9572,9573,9574,9575,9576,9577,9578,9579,9580,9600,9604,9608,9612,9616,9617,9618,9619,9632,9633,9642,9643,9644,9650,9658,9660,9668,9674,9675,9679,9688,9689,9702,9786,9787,9788,9792,9794,9824,9827,9829,9830,9834,9835,9836,61441,61442,61445,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1];l.LiberationSansBoldMapping=t;const i=[365,0,333,278,333,474,556,556,889,722,238,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,333,333,584,584,584,611,975,722,722,722,722,667,611,778,722,278,556,722,611,833,722,778,667,778,722,667,611,722,667,944,667,667,611,333,278,333,584,556,333,556,611,556,611,556,333,611,611,278,278,556,278,889,611,611,611,611,389,556,333,611,556,778,556,556,500,389,280,389,584,333,556,556,556,556,280,556,333,737,370,556,584,737,552,400,549,333,333,333,576,556,278,333,333,365,556,834,834,834,611,722,722,722,722,722,722,1e3,722,667,667,667,667,278,278,278,278,722,722,778,778,778,778,778,584,778,722,722,722,722,667,667,611,556,556,556,556,556,556,889,556,556,556,556,556,278,278,278,278,611,611,611,611,611,611,611,549,611,611,611,611,611,556,611,556,722,556,722,556,722,556,722,556,722,556,722,556,722,556,722,740,722,611,667,556,667,556,667,556,667,556,667,556,778,611,778,611,778,611,778,611,722,611,722,611,278,278,278,278,278,278,278,278,278,278,782,556,556,278,722,556,556,611,278,611,278,611,396,611,479,611,278,722,611,722,611,722,611,708,723,611,778,611,778,611,778,611,1e3,944,722,389,722,389,722,389,667,556,667,556,667,556,667,556,611,333,611,479,611,333,722,611,722,611,722,611,722,611,722,611,722,611,944,778,667,556,667,611,500,611,500,611,500,278,556,722,556,1e3,889,778,611,667,556,611,333,333,333,333,333,333,333,333,333,333,333,333,722,333,854,906,473,844,930,847,278,722,722,610,671,667,611,722,778,278,722,667,833,722,657,778,718,667,590,611,667,822,667,829,781,278,667,620,479,611,278,591,620,621,556,610,479,492,611,558,278,566,556,603,556,450,611,712,605,532,664,409,591,704,578,773,834,278,591,611,591,834,667,667,886,614,719,667,278,278,556,1094,1042,854,622,719,677,719,722,708,722,614,722,667,927,643,719,719,615,687,833,722,778,719,667,722,611,677,781,667,729,708,979,989,854,1e3,708,719,1042,729,556,619,604,534,618,556,736,510,611,611,507,622,740,604,611,611,611,556,889,556,885,556,646,583,889,935,707,854,594,552,865,589,556,556,611,469,563,556,278,278,278,969,906,611,507,619,556,611,778,611,575,467,944,778,944,778,944,778,667,556,333,333,556,1e3,1e3,552,278,278,278,278,500,500,500,556,556,350,1e3,1e3,240,479,333,333,604,333,167,396,556,556,1104,556,885,516,1146,1e3,768,600,834,834,834,834,999,500,1e3,500,1e3,500,500,494,612,823,713,584,549,713,979,722,274,549,549,583,549,549,604,584,604,604,708,625,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,729,604,604,354,354,1e3,990,990,990,990,494,604,604,604,604,354,1021,1052,917,750,750,531,656,594,510,500,750,750,611,611,333,333,333,333,333,333,333,333,222,222,333,333,333,333,333,333,333,333];l.LiberationSansBoldItalicWidths=i;const O=[-1,-1,-1,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,161,162,163,164,165,166,167,168,169,170,171,172,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,402,506,507,508,509,510,511,536,537,538,539,710,711,713,728,729,730,731,732,733,900,901,902,903,904,905,906,908,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1138,1139,1168,1169,7808,7809,7810,7811,7812,7813,7922,7923,8208,8209,8211,8212,8213,8215,8216,8217,8218,8219,8220,8221,8222,8224,8225,8226,8230,8240,8242,8243,8249,8250,8252,8254,8260,8319,8355,8356,8359,8364,8453,8467,8470,8482,8486,8494,8539,8540,8541,8542,8592,8593,8594,8595,8596,8597,8616,8706,8710,8719,8721,8722,8730,8734,8735,8745,8747,8776,8800,8801,8804,8805,8962,8976,8992,8993,9472,9474,9484,9488,9492,9496,9500,9508,9516,9524,9532,9552,9553,9554,9555,9556,9557,9558,9559,9560,9561,9562,9563,9564,9565,9566,9567,9568,9569,9570,9571,9572,9573,9574,9575,9576,9577,9578,9579,9580,9600,9604,9608,9612,9616,9617,9618,9619,9632,9633,9642,9643,9644,9650,9658,9660,9668,9674,9675,9679,9688,9689,9702,9786,9787,9788,9792,9794,9824,9827,9829,9830,9834,9835,9836,61441,61442,61445,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1];l.LiberationSansBoldItalicMapping=O;const P=[365,0,333,278,278,355,556,556,889,667,191,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,278,278,584,584,584,556,1015,667,667,722,722,667,611,778,722,278,500,667,556,833,722,778,667,778,722,667,611,722,667,944,667,667,611,278,278,278,469,556,333,556,556,500,556,556,278,556,556,222,222,500,222,833,556,556,556,556,333,500,278,556,500,722,500,500,500,334,260,334,584,333,556,556,556,556,260,556,333,737,370,556,584,737,552,400,549,333,333,333,576,537,278,333,333,365,556,834,834,834,611,667,667,667,667,667,667,1e3,722,667,667,667,667,278,278,278,278,722,722,778,778,778,778,778,584,778,722,722,722,722,667,667,611,556,556,556,556,556,556,889,500,556,556,556,556,278,278,278,278,556,556,556,556,556,556,556,549,611,556,556,556,556,500,556,500,667,556,667,556,667,556,722,500,722,500,722,500,722,500,722,625,722,556,667,556,667,556,667,556,667,556,667,556,778,556,778,556,778,556,778,556,722,556,722,556,278,278,278,278,278,278,278,222,278,278,733,444,500,222,667,500,500,556,222,556,222,556,281,556,400,556,222,722,556,722,556,722,556,615,723,556,778,556,778,556,778,556,1e3,944,722,333,722,333,722,333,667,500,667,500,667,500,667,500,611,278,611,354,611,278,722,556,722,556,722,556,722,556,722,556,722,556,944,722,667,500,667,611,500,611,500,611,500,222,556,667,556,1e3,889,778,611,667,500,611,278,333,333,333,333,333,333,333,333,333,333,333,667,278,789,846,389,794,865,775,222,667,667,570,671,667,611,722,778,278,667,667,833,722,648,778,725,667,600,611,667,837,667,831,761,278,667,570,439,555,222,550,570,571,500,556,439,463,555,542,222,500,492,548,500,447,556,670,573,486,603,374,550,652,546,728,779,222,550,556,550,779,667,667,843,544,708,667,278,278,500,1066,982,844,589,715,639,724,667,651,667,544,704,667,917,614,715,715,589,686,833,722,778,725,667,722,611,639,795,667,727,673,920,923,805,886,651,694,1022,682,556,562,522,493,553,556,688,465,556,556,472,564,686,550,556,556,556,500,833,500,835,500,572,518,830,851,621,736,526,492,752,534,556,556,556,378,496,500,222,222,222,910,828,556,472,565,500,556,778,556,492,339,944,722,944,722,944,722,667,500,333,333,556,1e3,1e3,552,222,222,222,222,333,333,333,556,556,350,1e3,1e3,188,354,333,333,500,333,167,365,556,556,1094,556,885,323,1083,1e3,768,600,834,834,834,834,1e3,500,998,500,1e3,500,500,494,612,823,713,584,549,713,979,719,274,549,549,584,549,549,604,584,604,604,708,625,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,729,604,604,354,354,1e3,990,990,990,990,494,604,604,604,604,354,1021,1052,917,750,750,531,656,594,510,500,750,750,500,500,333,333,333,333,333,333,333,333,222,222,294,294,324,324,316,328,398,285];l.LiberationSansItalicWidths=P;const e=[-1,-1,-1,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,161,162,163,164,165,166,167,168,169,170,171,172,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,402,506,507,508,509,510,511,536,537,538,539,710,711,713,728,729,730,731,732,733,900,901,902,903,904,905,906,908,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1138,1139,1168,1169,7808,7809,7810,7811,7812,7813,7922,7923,8208,8209,8211,8212,8213,8215,8216,8217,8218,8219,8220,8221,8222,8224,8225,8226,8230,8240,8242,8243,8249,8250,8252,8254,8260,8319,8355,8356,8359,8364,8453,8467,8470,8482,8486,8494,8539,8540,8541,8542,8592,8593,8594,8595,8596,8597,8616,8706,8710,8719,8721,8722,8730,8734,8735,8745,8747,8776,8800,8801,8804,8805,8962,8976,8992,8993,9472,9474,9484,9488,9492,9496,9500,9508,9516,9524,9532,9552,9553,9554,9555,9556,9557,9558,9559,9560,9561,9562,9563,9564,9565,9566,9567,9568,9569,9570,9571,9572,9573,9574,9575,9576,9577,9578,9579,9580,9600,9604,9608,9612,9616,9617,9618,9619,9632,9633,9642,9643,9644,9650,9658,9660,9668,9674,9675,9679,9688,9689,9702,9786,9787,9788,9792,9794,9824,9827,9829,9830,9834,9835,9836,61441,61442,61445,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1];l.LiberationSansItalicMapping=e;const N=[365,0,333,278,278,355,556,556,889,667,191,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,278,278,584,584,584,556,1015,667,667,722,722,667,611,778,722,278,500,667,556,833,722,778,667,778,722,667,611,722,667,944,667,667,611,278,278,278,469,556,333,556,556,500,556,556,278,556,556,222,222,500,222,833,556,556,556,556,333,500,278,556,500,722,500,500,500,334,260,334,584,333,556,556,556,556,260,556,333,737,370,556,584,737,552,400,549,333,333,333,576,537,278,333,333,365,556,834,834,834,611,667,667,667,667,667,667,1e3,722,667,667,667,667,278,278,278,278,722,722,778,778,778,778,778,584,778,722,722,722,722,667,667,611,556,556,556,556,556,556,889,500,556,556,556,556,278,278,278,278,556,556,556,556,556,556,556,549,611,556,556,556,556,500,556,500,667,556,667,556,667,556,722,500,722,500,722,500,722,500,722,615,722,556,667,556,667,556,667,556,667,556,667,556,778,556,778,556,778,556,778,556,722,556,722,556,278,278,278,278,278,278,278,222,278,278,735,444,500,222,667,500,500,556,222,556,222,556,292,556,334,556,222,722,556,722,556,722,556,604,723,556,778,556,778,556,778,556,1e3,944,722,333,722,333,722,333,667,500,667,500,667,500,667,500,611,278,611,375,611,278,722,556,722,556,722,556,722,556,722,556,722,556,944,722,667,500,667,611,500,611,500,611,500,222,556,667,556,1e3,889,778,611,667,500,611,278,333,333,333,333,333,333,333,333,333,333,333,667,278,784,838,384,774,855,752,222,667,667,551,668,667,611,722,778,278,667,668,833,722,650,778,722,667,618,611,667,798,667,835,748,278,667,578,446,556,222,547,578,575,500,557,446,441,556,556,222,500,500,576,500,448,556,690,569,482,617,395,547,648,525,713,781,222,547,556,547,781,667,667,865,542,719,667,278,278,500,1057,1010,854,583,722,635,719,667,656,667,542,677,667,923,604,719,719,583,656,833,722,778,719,667,722,611,635,760,667,740,667,917,938,792,885,656,719,1010,722,556,573,531,365,583,556,669,458,559,559,438,583,688,552,556,542,556,500,458,500,823,500,573,521,802,823,625,719,521,510,750,542,556,556,556,365,510,500,222,278,222,906,812,556,438,559,500,552,778,556,489,411,944,722,944,722,944,722,667,500,333,333,556,1e3,1e3,552,222,222,222,222,333,333,333,556,556,350,1e3,1e3,188,354,333,333,500,333,167,365,556,556,1094,556,885,323,1073,1e3,768,600,834,834,834,834,1e3,500,1e3,500,1e3,500,500,494,612,823,713,584,549,713,979,719,274,549,549,583,549,549,604,584,604,604,708,625,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,729,604,604,354,354,1e3,990,990,990,990,494,604,604,604,604,354,1021,1052,917,750,750,531,656,594,510,500,750,750,500,500,333,333,333,333,333,333,333,333,222,222,294,294,324,324,316,328,398,285];l.LiberationSansRegularWidths=N;const D=[-1,-1,-1,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,161,162,163,164,165,166,167,168,169,170,171,172,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,402,506,507,508,509,510,511,536,537,538,539,710,711,713,728,729,730,731,732,733,900,901,902,903,904,905,906,908,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1138,1139,1168,1169,7808,7809,7810,7811,7812,7813,7922,7923,8208,8209,8211,8212,8213,8215,8216,8217,8218,8219,8220,8221,8222,8224,8225,8226,8230,8240,8242,8243,8249,8250,8252,8254,8260,8319,8355,8356,8359,8364,8453,8467,8470,8482,8486,8494,8539,8540,8541,8542,8592,8593,8594,8595,8596,8597,8616,8706,8710,8719,8721,8722,8730,8734,8735,8745,8747,8776,8800,8801,8804,8805,8962,8976,8992,8993,9472,9474,9484,9488,9492,9496,9500,9508,9516,9524,9532,9552,9553,9554,9555,9556,9557,9558,9559,9560,9561,9562,9563,9564,9565,9566,9567,9568,9569,9570,9571,9572,9573,9574,9575,9576,9577,9578,9579,9580,9600,9604,9608,9612,9616,9617,9618,9619,9632,9633,9642,9643,9644,9650,9658,9660,9668,9674,9675,9679,9688,9689,9702,9786,9787,9788,9792,9794,9824,9827,9829,9830,9834,9835,9836,61441,61442,61445,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1];l.LiberationSansRegularMapping=D},(he,l)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.MyriadProRegularMetrics=l.MyriadProRegularFactors=l.MyriadProItalicMetrics=l.MyriadProItalicFactors=l.MyriadProBoldMetrics=l.MyriadProBoldItalicMetrics=l.MyriadProBoldItalicFactors=l.MyriadProBoldFactors=void 0;const w=[1.36898,1,1,.72706,.80479,.83734,.98894,.99793,.9897,.93884,.86209,.94292,.94292,1.16661,1.02058,.93582,.96694,.93582,1.19137,.99793,.99793,.99793,.99793,.99793,.99793,.99793,.99793,.99793,.99793,.78076,.78076,1.02058,1.02058,1.02058,.72851,.78966,.90838,.83637,.82391,.96376,.80061,.86275,.8768,.95407,1.0258,.73901,.85022,.83655,1.0156,.95546,.92179,.87107,.92179,.82114,.8096,.89713,.94438,.95353,.94083,.91905,.90406,.9446,.94292,1.18777,.94292,1.02058,.89903,.90088,.94938,.97898,.81093,.97571,.94938,1.024,.9577,.95933,.98621,1.0474,.97455,.98981,.9672,.95933,.9446,.97898,.97407,.97646,.78036,1.10208,.95442,.95298,.97579,.9332,.94039,.938,.80687,1.01149,.80687,1.02058,.80479,.99793,.99793,.99793,.99793,1.01149,1.00872,.90088,.91882,1.0213,.8361,1.02058,.62295,.54324,.89022,1.08595,1,1,.90088,1,.97455,.93582,.90088,1,1.05686,.8361,.99642,.99642,.99642,.72851,.90838,.90838,.90838,.90838,.90838,.90838,.868,.82391,.80061,.80061,.80061,.80061,1.0258,1.0258,1.0258,1.0258,.97484,.95546,.92179,.92179,.92179,.92179,.92179,1.02058,.92179,.94438,.94438,.94438,.94438,.90406,.86958,.98225,.94938,.94938,.94938,.94938,.94938,.94938,.9031,.81093,.94938,.94938,.94938,.94938,.98621,.98621,.98621,.98621,.93969,.95933,.9446,.9446,.9446,.9446,.9446,1.08595,.9446,.95442,.95442,.95442,.95442,.94039,.97898,.94039,.90838,.94938,.90838,.94938,.90838,.94938,.82391,.81093,.82391,.81093,.82391,.81093,.82391,.81093,.96376,.84313,.97484,.97571,.80061,.94938,.80061,.94938,.80061,.94938,.80061,.94938,.80061,.94938,.8768,.9577,.8768,.9577,.8768,.9577,1,1,.95407,.95933,.97069,.95933,1.0258,.98621,1.0258,.98621,1.0258,.98621,1.0258,.98621,1.0258,.98621,.887,1.01591,.73901,1.0474,1,1,.97455,.83655,.98981,1,1,.83655,.73977,.83655,.73903,.84638,1.033,.95546,.95933,1,1,.95546,.95933,.8271,.95417,.95933,.92179,.9446,.92179,.9446,.92179,.9446,.936,.91964,.82114,.97646,1,1,.82114,.97646,.8096,.78036,.8096,.78036,1,1,.8096,.78036,1,1,.89713,.77452,.89713,1.10208,.94438,.95442,.94438,.95442,.94438,.95442,.94438,.95442,.94438,.95442,.94438,.95442,.94083,.97579,.90406,.94039,.90406,.9446,.938,.9446,.938,.9446,.938,1,.99793,.90838,.94938,.868,.9031,.92179,.9446,1,1,.89713,1.10208,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90989,.9358,.91945,.83181,.75261,.87992,.82976,.96034,.83689,.97268,1.0078,.90838,.83637,.8019,.90157,.80061,.9446,.95407,.92436,1.0258,.85022,.97153,1.0156,.95546,.89192,.92179,.92361,.87107,.96318,.89713,.93704,.95638,.91905,.91709,.92796,1.0258,.93704,.94836,1.0373,.95933,1.0078,.95871,.94836,.96174,.92601,.9498,.98607,.95776,.95933,1.05453,1.0078,.98275,.9314,.95617,.91701,1.05993,.9446,.78367,.9553,1,.86832,1.0128,.95871,.99394,.87548,.96361,.86774,1.0078,.95871,.9446,.95871,.86774,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.94083,.97579,.94083,.97579,.94083,.97579,.90406,.94039,.96694,1,.89903,1,1,1,.93582,.93582,.93582,1,.908,.908,.918,.94219,.94219,.96544,1,1.285,1,1,.81079,.81079,1,1,.74854,1,1,1,1,.99793,1,1,1,.65,1,1.36145,1,1,1,1,1,1,1,1,1,1,1,1.17173,1,.80535,.76169,1.02058,1.0732,1.05486,1,1,1.30692,1.08595,1.08595,1,1.08595,1.08595,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.16161,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];l.MyriadProBoldFactors=w;const t={lineHeight:1.2,lineGap:.2};l.MyriadProBoldMetrics=t;const i=[1.36898,1,1,.66227,.80779,.81625,.97276,.97276,.97733,.92222,.83266,.94292,.94292,1.16148,1.02058,.93582,.96694,.93582,1.17337,.97276,.97276,.97276,.97276,.97276,.97276,.97276,.97276,.97276,.97276,.78076,.78076,1.02058,1.02058,1.02058,.71541,.76813,.85576,.80591,.80729,.94299,.77512,.83655,.86523,.92222,.98621,.71743,.81698,.79726,.98558,.92222,.90637,.83809,.90637,.80729,.76463,.86275,.90699,.91605,.9154,.85308,.85458,.90531,.94292,1.21296,.94292,1.02058,.89903,1.18616,.99613,.91677,.78216,.91677,.90083,.98796,.9135,.92168,.95381,.98981,.95298,.95381,.93459,.92168,.91513,.92004,.91677,.95077,.748,1.04502,.91677,.92061,.94236,.89544,.89364,.9,.80687,.8578,.80687,1.02058,.80779,.97276,.97276,.97276,.97276,.8578,.99973,1.18616,.91339,1.08074,.82891,1.02058,.55509,.71526,.89022,1.08595,1,1,1.18616,1,.96736,.93582,1.18616,1,1.04864,.82711,.99043,.99043,.99043,.71541,.85576,.85576,.85576,.85576,.85576,.85576,.845,.80729,.77512,.77512,.77512,.77512,.98621,.98621,.98621,.98621,.95961,.92222,.90637,.90637,.90637,.90637,.90637,1.02058,.90251,.90699,.90699,.90699,.90699,.85458,.83659,.94951,.99613,.99613,.99613,.99613,.99613,.99613,.85811,.78216,.90083,.90083,.90083,.90083,.95381,.95381,.95381,.95381,.9135,.92168,.91513,.91513,.91513,.91513,.91513,1.08595,.91677,.91677,.91677,.91677,.91677,.89364,.92332,.89364,.85576,.99613,.85576,.99613,.85576,.99613,.80729,.78216,.80729,.78216,.80729,.78216,.80729,.78216,.94299,.76783,.95961,.91677,.77512,.90083,.77512,.90083,.77512,.90083,.77512,.90083,.77512,.90083,.86523,.9135,.86523,.9135,.86523,.9135,1,1,.92222,.92168,.92222,.92168,.98621,.95381,.98621,.95381,.98621,.95381,.98621,.95381,.98621,.95381,.86036,.97096,.71743,.98981,1,1,.95298,.79726,.95381,1,1,.79726,.6894,.79726,.74321,.81691,1.0006,.92222,.92168,1,1,.92222,.92168,.79464,.92098,.92168,.90637,.91513,.90637,.91513,.90637,.91513,.909,.87514,.80729,.95077,1,1,.80729,.95077,.76463,.748,.76463,.748,1,1,.76463,.748,1,1,.86275,.72651,.86275,1.04502,.90699,.91677,.90699,.91677,.90699,.91677,.90699,.91677,.90699,.91677,.90699,.91677,.9154,.94236,.85458,.89364,.85458,.90531,.9,.90531,.9,.90531,.9,1,.97276,.85576,.99613,.845,.85811,.90251,.91677,1,1,.86275,1.04502,1.18616,1.18616,1.18616,1.18616,1.18616,1.18616,1.18616,1.18616,1.18616,1.00899,1.30628,.85576,.80178,.66862,.7927,.69323,.88127,.72459,.89711,.95381,.85576,.80591,.7805,.94729,.77512,.90531,.92222,.90637,.98621,.81698,.92655,.98558,.92222,.85359,.90637,.90976,.83809,.94523,.86275,.83509,.93157,.85308,.83392,.92346,.98621,.83509,.92886,.91324,.92168,.95381,.90646,.92886,.90557,.86847,.90276,.91324,.86842,.92168,.99531,.95381,.9224,.85408,.92699,.86847,1.0051,.91513,.80487,.93481,1,.88159,1.05214,.90646,.97355,.81539,.89398,.85923,.95381,.90646,.91513,.90646,.85923,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.9154,.94236,.9154,.94236,.9154,.94236,.85458,.89364,.96694,1,.89903,1,1,1,.91782,.91782,.91782,1,.896,.896,.896,.9332,.9332,.95973,1,1.26,1,1,.80479,.80178,1,1,.85633,1,1,1,1,.97276,1,1,1,.698,1,1.36145,1,1,1,1,1,1,1,1,1,1,1,1.14542,1,.79199,.78694,1.02058,1.03493,1.05486,1,1,1.23026,1.08595,1.08595,1,1.08595,1.08595,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.20006,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];l.MyriadProBoldItalicFactors=i;const O={lineHeight:1.2,lineGap:.2};l.MyriadProBoldItalicMetrics=O;const P=[1.36898,1,1,.65507,.84943,.85639,.88465,.88465,.86936,.88307,.86948,.85283,.85283,1.06383,1.02058,.75945,.9219,.75945,1.17337,.88465,.88465,.88465,.88465,.88465,.88465,.88465,.88465,.88465,.88465,.75945,.75945,1.02058,1.02058,1.02058,.69046,.70926,.85158,.77812,.76852,.89591,.70466,.76125,.80094,.86822,.83864,.728,.77212,.79475,.93637,.87514,.8588,.76013,.8588,.72421,.69866,.77598,.85991,.80811,.87832,.78112,.77512,.8562,1.0222,1.18417,1.0222,1.27014,.89903,1.15012,.93859,.94399,.846,.94399,.81453,1.0186,.94219,.96017,1.03075,1.02175,.912,1.03075,.96998,.96017,.93859,.94399,.94399,.95493,.746,1.12658,.94578,.91,.979,.882,.882,.83,.85034,.83537,.85034,1.02058,.70869,.88465,.88465,.88465,.88465,.83537,.90083,1.15012,.9161,.94565,.73541,1.02058,.53609,.69353,.79519,1.08595,1,1,1.15012,1,.91974,.75945,1.15012,1,.9446,.73361,.9005,.9005,.9005,.62864,.85158,.85158,.85158,.85158,.85158,.85158,.773,.76852,.70466,.70466,.70466,.70466,.83864,.83864,.83864,.83864,.90561,.87514,.8588,.8588,.8588,.8588,.8588,1.02058,.85751,.85991,.85991,.85991,.85991,.77512,.76013,.88075,.93859,.93859,.93859,.93859,.93859,.93859,.8075,.846,.81453,.81453,.81453,.81453,.82424,.82424,.82424,.82424,.9278,.96017,.93859,.93859,.93859,.93859,.93859,1.08595,.8562,.94578,.94578,.94578,.94578,.882,.94578,.882,.85158,.93859,.85158,.93859,.85158,.93859,.76852,.846,.76852,.846,.76852,.846,.76852,.846,.89591,.8544,.90561,.94399,.70466,.81453,.70466,.81453,.70466,.81453,.70466,.81453,.70466,.81453,.80094,.94219,.80094,.94219,.80094,.94219,1,1,.86822,.96017,.86822,.96017,.83864,.82424,.83864,.82424,.83864,.82424,.83864,1.03075,.83864,.82424,.81402,1.02738,.728,1.02175,1,1,.912,.79475,1.03075,1,1,.79475,.83911,.79475,.66266,.80553,1.06676,.87514,.96017,1,1,.87514,.96017,.86865,.87396,.96017,.8588,.93859,.8588,.93859,.8588,.93859,.867,.84759,.72421,.95493,1,1,.72421,.95493,.69866,.746,.69866,.746,1,1,.69866,.746,1,1,.77598,.88417,.77598,1.12658,.85991,.94578,.85991,.94578,.85991,.94578,.85991,.94578,.85991,.94578,.85991,.94578,.87832,.979,.77512,.882,.77512,.8562,.83,.8562,.83,.8562,.83,1,.88465,.85158,.93859,.773,.8075,.85751,.8562,1,1,.77598,1.12658,1.15012,1.15012,1.15012,1.15012,1.15012,1.15313,1.15012,1.15012,1.15012,1.08106,1.03901,.85158,.77025,.62264,.7646,.65351,.86026,.69461,.89947,1.03075,.85158,.77812,.76449,.88836,.70466,.8562,.86822,.8588,.83864,.77212,.85308,.93637,.87514,.82352,.8588,.85701,.76013,.89058,.77598,.8156,.82565,.78112,.77899,.89386,.83864,.8156,.9486,.92388,.96186,1.03075,.91123,.9486,.93298,.878,.93942,.92388,.84596,.96186,.95119,1.03075,.922,.88787,.95829,.88,.93559,.93859,.78815,.93758,1,.89217,1.03737,.91123,.93969,.77487,.85769,.86799,1.03075,.91123,.93859,.91123,.86799,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.87832,.979,.87832,.979,.87832,.979,.77512,.882,.9219,1,.89903,1,1,1,.87321,.87321,.87321,1,1.027,1.027,1.027,.86847,.86847,.79121,1,1.124,1,1,.73572,.73572,1,1,.85034,1,1,1,1,.88465,1,1,1,.669,1,1.36145,1,1,1,1,1,1,1,1,1,1,1,1.04828,1,.74948,.75187,1.02058,.98391,1.02119,1,1,1.06233,1.08595,1.08595,1,1.08595,1.08595,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.05233,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];l.MyriadProItalicFactors=P;const e={lineHeight:1.2,lineGap:.2};l.MyriadProItalicMetrics=e;const N=[1.36898,1,1,.76305,.82784,.94935,.89364,.92241,.89073,.90706,.98472,.85283,.85283,1.0664,1.02058,.74505,.9219,.74505,1.23456,.92241,.92241,.92241,.92241,.92241,.92241,.92241,.92241,.92241,.92241,.74505,.74505,1.02058,1.02058,1.02058,.73002,.72601,.91755,.8126,.80314,.92222,.73764,.79726,.83051,.90284,.86023,.74,.8126,.84869,.96518,.91115,.8858,.79761,.8858,.74498,.73914,.81363,.89591,.83659,.89633,.85608,.8111,.90531,1.0222,1.22736,1.0222,1.27014,.89903,.90088,.86667,1.0231,.896,1.01411,.90083,1.05099,1.00512,.99793,1.05326,1.09377,.938,1.06226,1.00119,.99793,.98714,1.0231,1.01231,.98196,.792,1.19137,.99074,.962,1.01915,.926,.942,.856,.85034,.92006,.85034,1.02058,.69067,.92241,.92241,.92241,.92241,.92006,.9332,.90088,.91882,.93484,.75339,1.02058,.56866,.54324,.79519,1.08595,1,1,.90088,1,.95325,.74505,.90088,1,.97198,.75339,.91009,.91009,.91009,.66466,.91755,.91755,.91755,.91755,.91755,.91755,.788,.80314,.73764,.73764,.73764,.73764,.86023,.86023,.86023,.86023,.92915,.91115,.8858,.8858,.8858,.8858,.8858,1.02058,.8858,.89591,.89591,.89591,.89591,.8111,.79611,.89713,.86667,.86667,.86667,.86667,.86667,.86667,.86936,.896,.90083,.90083,.90083,.90083,.84224,.84224,.84224,.84224,.97276,.99793,.98714,.98714,.98714,.98714,.98714,1.08595,.89876,.99074,.99074,.99074,.99074,.942,1.0231,.942,.91755,.86667,.91755,.86667,.91755,.86667,.80314,.896,.80314,.896,.80314,.896,.80314,.896,.92222,.93372,.92915,1.01411,.73764,.90083,.73764,.90083,.73764,.90083,.73764,.90083,.73764,.90083,.83051,1.00512,.83051,1.00512,.83051,1.00512,1,1,.90284,.99793,.90976,.99793,.86023,.84224,.86023,.84224,.86023,.84224,.86023,1.05326,.86023,.84224,.82873,1.07469,.74,1.09377,1,1,.938,.84869,1.06226,1,1,.84869,.83704,.84869,.81441,.85588,1.08927,.91115,.99793,1,1,.91115,.99793,.91887,.90991,.99793,.8858,.98714,.8858,.98714,.8858,.98714,.894,.91434,.74498,.98196,1,1,.74498,.98196,.73914,.792,.73914,.792,1,1,.73914,.792,1,1,.81363,.904,.81363,1.19137,.89591,.99074,.89591,.99074,.89591,.99074,.89591,.99074,.89591,.99074,.89591,.99074,.89633,1.01915,.8111,.942,.8111,.90531,.856,.90531,.856,.90531,.856,1,.92241,.91755,.86667,.788,.86936,.8858,.89876,1,1,.81363,1.19137,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90388,1.03901,.92138,.78105,.7154,.86169,.80513,.94007,.82528,.98612,1.06226,.91755,.8126,.81884,.92819,.73764,.90531,.90284,.8858,.86023,.8126,.91172,.96518,.91115,.83089,.8858,.87791,.79761,.89297,.81363,.88157,.89992,.85608,.81992,.94307,.86023,.88157,.95308,.98699,.99793,1.06226,.95817,.95308,.97358,.928,.98088,.98699,.92761,.99793,.96017,1.06226,.986,.944,.95978,.938,.96705,.98714,.80442,.98972,1,.89762,1.04552,.95817,.99007,.87064,.91879,.88888,1.06226,.95817,.98714,.95817,.88888,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.89633,1.01915,.89633,1.01915,.89633,1.01915,.8111,.942,.9219,1,.89903,1,1,1,.93173,.93173,.93173,1,1.06304,1.06304,1.06904,.89903,.89903,.80549,1,1.156,1,1,.76575,.76575,1,1,.72458,1,1,1,1,.92241,1,1,1,.619,1,1.36145,1,1,1,1,1,1,1,1,1,1,1,1.07257,1,.74705,.71119,1.02058,1.024,1.02119,1,1,1.1536,1.08595,1.08595,1,1.08595,1.08595,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.05638,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];l.MyriadProRegularFactors=N;const D={lineHeight:1.2,lineGap:.2};l.MyriadProRegularMetrics=D},(he,l)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.SegoeuiRegularMetrics=l.SegoeuiRegularFactors=l.SegoeuiItalicMetrics=l.SegoeuiItalicFactors=l.SegoeuiBoldMetrics=l.SegoeuiBoldItalicMetrics=l.SegoeuiBoldItalicFactors=l.SegoeuiBoldFactors=void 0;const w=[1.76738,1,1,.99297,.9824,1.04016,1.06497,1.03424,.97529,1.17647,1.23203,1.1085,1.1085,1.16939,1.2107,.9754,1.21408,.9754,1.59578,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,.81378,.81378,1.2107,1.2107,1.2107,.71703,.97847,.97363,.88776,.8641,1.02096,.79795,.85132,.914,1.06085,1.1406,.8007,.89858,.83693,1.14889,1.09398,.97489,.92094,.97489,.90399,.84041,.95923,1.00135,1,1.06467,.98243,.90996,.99361,1.1085,1.56942,1.1085,1.2107,.74627,.94282,.96752,1.01519,.86304,1.01359,.97278,1.15103,1.01359,.98561,1.02285,1.02285,1.00527,1.02285,1.0302,.99041,1.0008,1.01519,1.01359,1.02258,.79104,1.16862,.99041,.97454,1.02511,.99298,.96752,.95801,.94856,1.16579,.94856,1.2107,.9824,1.03424,1.03424,1,1.03424,1.16579,.8727,1.3871,1.18622,1.10818,1.04478,1.2107,1.18622,.75155,.94994,1.28826,1.21408,1.21408,.91056,1,.91572,.9754,.64663,1.18328,1.24866,1.04478,1.14169,1.15749,1.17389,.71703,.97363,.97363,.97363,.97363,.97363,.97363,.93506,.8641,.79795,.79795,.79795,.79795,1.1406,1.1406,1.1406,1.1406,1.02096,1.09398,.97426,.97426,.97426,.97426,.97426,1.2107,.97489,1.00135,1.00135,1.00135,1.00135,.90996,.92094,1.02798,.96752,.96752,.96752,.96752,.96752,.96752,.93136,.86304,.97278,.97278,.97278,.97278,1.02285,1.02285,1.02285,1.02285,.97122,.99041,1,1,1,1,1,1.28826,1.0008,.99041,.99041,.99041,.99041,.96752,1.01519,.96752,.97363,.96752,.97363,.96752,.97363,.96752,.8641,.86304,.8641,.86304,.8641,.86304,.8641,.86304,1.02096,1.03057,1.02096,1.03517,.79795,.97278,.79795,.97278,.79795,.97278,.79795,.97278,.79795,.97278,.914,1.01359,.914,1.01359,.914,1.01359,1,1,1.06085,.98561,1.06085,1.00879,1.1406,1.02285,1.1406,1.02285,1.1406,1.02285,1.1406,1.02285,1.1406,1.02285,.97138,1.08692,.8007,1.02285,1,1,1.00527,.83693,1.02285,1,1,.83693,.9455,.83693,.90418,.83693,1.13005,1.09398,.99041,1,1,1.09398,.99041,.96692,1.09251,.99041,.97489,1.0008,.97489,1.0008,.97489,1.0008,.93994,.97931,.90399,1.02258,1,1,.90399,1.02258,.84041,.79104,.84041,.79104,.84041,.79104,.84041,.79104,1,1,.95923,1.07034,.95923,1.16862,1.00135,.99041,1.00135,.99041,1.00135,.99041,1.00135,.99041,1.00135,.99041,1.00135,.99041,1.06467,1.02511,.90996,.96752,.90996,.99361,.95801,.99361,.95801,.99361,.95801,1.07733,1.03424,.97363,.96752,.93506,.93136,.97489,1.0008,1,1,.95923,1.16862,1.15103,1.15103,1.01173,1.03959,.75953,.81378,.79912,1.15103,1.21994,.95161,.87815,1.01149,.81525,.7676,.98167,1.01134,1.02546,.84097,1.03089,1.18102,.97363,.88776,.85134,.97826,.79795,.99361,1.06085,.97489,1.1406,.89858,1.0388,1.14889,1.09398,.86039,.97489,1.0595,.92094,.94793,.95923,.90996,.99346,.98243,1.02112,.95493,1.1406,.90996,1.03574,1.02597,1.0008,1.18102,1.06628,1.03574,1.0192,1.01932,1.00886,.97531,1.0106,1.0008,1.13189,1.18102,1.02277,.98683,1.0016,.99561,1.07237,1.0008,.90434,.99921,.93803,.8965,1.23085,1.06628,1.04983,.96268,1.0499,.98439,1.18102,1.06628,1.0008,1.06628,.98439,.79795,1,1,1,1,1,1,1,1,1,1,1,1,1.09466,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.97278,1,1,1,1,1,1,1,1,1,1,1,1,1.02065,1,1,1,1,1,1,1.06467,1.02511,1.06467,1.02511,1.06467,1.02511,.90996,.96752,1,1.21408,.89903,1,1,.75155,1.04394,1.04394,1.04394,1.04394,.98633,.98633,.98633,.73047,.73047,1.20642,.91211,1.25635,1.222,1.02956,1.03372,1.03372,.96039,1.24633,1,1.12454,.93503,1.03424,1.19687,1.03424,1,1,1,.771,1,1,1.15749,1.15749,1.15749,1.10948,.86279,.94434,.86279,.94434,.86182,1,1,1.16897,1,.96085,.90137,1.2107,1.18416,1.13973,.69825,.9716,2.10339,1.29004,1.29004,1.21172,1.29004,1.29004,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.42603,1,.99862,.99862,1,.87025,.87025,.87025,.87025,1.18874,1.42603,1,1.42603,1.42603,.99862,1,1,1,1,1,1.2886,1.04315,1.15296,1.34163,1,1,1,1.09193,1.09193,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];l.SegoeuiBoldFactors=w;const t={lineHeight:1.33008,lineGap:0};l.SegoeuiBoldMetrics=t;const i=[1.76738,1,1,.98946,1.03959,1.04016,1.02809,1.036,.97639,1.10953,1.23203,1.11144,1.11144,1.16939,1.21237,.9754,1.21261,.9754,1.59754,1.036,1.036,1.036,1.036,1.036,1.036,1.036,1.036,1.036,1.036,.81378,.81378,1.21237,1.21237,1.21237,.73541,.97847,.97363,.89723,.87897,1.0426,.79429,.85292,.91149,1.05815,1.1406,.79631,.90128,.83853,1.04396,1.10615,.97552,.94436,.97552,.88641,.80527,.96083,1.00135,1,1.06777,.9817,.91142,.99361,1.11144,1.57293,1.11144,1.21237,.74627,1.31818,1.06585,.97042,.83055,.97042,.93503,1.1261,.97042,.97922,1.14236,.94552,1.01054,1.14236,1.02471,.97922,.94165,.97042,.97042,1.0276,.78929,1.1261,.97922,.95874,1.02197,.98507,.96752,.97168,.95107,1.16579,.95107,1.21237,1.03959,1.036,1.036,1,1.036,1.16579,.87357,1.31818,1.18754,1.26781,1.05356,1.21237,1.18622,.79487,.94994,1.29004,1.24047,1.24047,1.31818,1,.91484,.9754,1.31818,1.1349,1.24866,1.05356,1.13934,1.15574,1.17389,.73541,.97363,.97363,.97363,.97363,.97363,.97363,.94385,.87897,.79429,.79429,.79429,.79429,1.1406,1.1406,1.1406,1.1406,1.0426,1.10615,.97552,.97552,.97552,.97552,.97552,1.21237,.97552,1.00135,1.00135,1.00135,1.00135,.91142,.94436,.98721,1.06585,1.06585,1.06585,1.06585,1.06585,1.06585,.96705,.83055,.93503,.93503,.93503,.93503,1.14236,1.14236,1.14236,1.14236,.93125,.97922,.94165,.94165,.94165,.94165,.94165,1.29004,.94165,.97922,.97922,.97922,.97922,.96752,.97042,.96752,.97363,1.06585,.97363,1.06585,.97363,1.06585,.87897,.83055,.87897,.83055,.87897,.83055,.87897,.83055,1.0426,1.0033,1.0426,.97042,.79429,.93503,.79429,.93503,.79429,.93503,.79429,.93503,.79429,.93503,.91149,.97042,.91149,.97042,.91149,.97042,1,1,1.05815,.97922,1.05815,.97922,1.1406,1.14236,1.1406,1.14236,1.1406,1.14236,1.1406,1.14236,1.1406,1.14236,.97441,1.04302,.79631,1.01582,1,1,1.01054,.83853,1.14236,1,1,.83853,1.09125,.83853,.90418,.83853,1.19508,1.10615,.97922,1,1,1.10615,.97922,1.01034,1.10466,.97922,.97552,.94165,.97552,.94165,.97552,.94165,.91602,.91981,.88641,1.0276,1,1,.88641,1.0276,.80527,.78929,.80527,.78929,.80527,.78929,.80527,.78929,1,1,.96083,1.05403,.95923,1.16862,1.00135,.97922,1.00135,.97922,1.00135,.97922,1.00135,.97922,1.00135,.97922,1.00135,.97922,1.06777,1.02197,.91142,.96752,.91142,.99361,.97168,.99361,.97168,.99361,.97168,1.23199,1.036,.97363,1.06585,.94385,.96705,.97552,.94165,1,1,.96083,1.1261,1.31818,1.31818,1.31818,1.31818,1.31818,1.31818,1.31818,1.31818,1.31818,.95161,1.27126,1.00811,.83284,.77702,.99137,.95253,1.0347,.86142,1.07205,1.14236,.97363,.89723,.86869,1.09818,.79429,.99361,1.05815,.97552,1.1406,.90128,1.06662,1.04396,1.10615,.84918,.97552,1.04694,.94436,.98015,.96083,.91142,1.00356,.9817,1.01945,.98999,1.1406,.91142,1.04961,.9898,1.00639,1.14236,1.07514,1.04961,.99607,1.02897,1.008,.9898,.95134,1.00639,1.11121,1.14236,1.00518,.97981,1.02186,1,1.08578,.94165,.99314,.98387,.93028,.93377,1.35125,1.07514,1.10687,.93491,1.04232,1.00351,1.14236,1.07514,.94165,1.07514,1.00351,.79429,1,1,1,1,1,1,1,1,1,1,1,1,1.09097,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.93503,1,1,1,1,1,1,1,1,1,1,1,1,.96609,1,1,1,1,1,1,1.06777,1.02197,1.06777,1.02197,1.06777,1.02197,.91142,.96752,1,1.21261,.89903,1,1,.75155,1.04745,1.04745,1.04745,1.04394,.98633,.98633,.98633,.72959,.72959,1.20502,.91406,1.26514,1.222,1.02956,1.03372,1.03372,.96039,1.24633,1,1.09125,.93327,1.03336,1.16541,1.036,1,1,1,.771,1,1,1.15574,1.15574,1.15574,1.15574,.86364,.94434,.86279,.94434,.86224,1,1,1.16798,1,.96085,.90068,1.21237,1.18416,1.13904,.69825,.9716,2.10339,1.29004,1.29004,1.21339,1.29004,1.29004,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.42603,1,.99862,.99862,1,.87025,.87025,.87025,.87025,1.18775,1.42603,1,1.42603,1.42603,.99862,1,1,1,1,1,1.2886,1.04315,1.15296,1.34163,1,1,1,1.13269,1.13269,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];l.SegoeuiBoldItalicFactors=i;const O={lineHeight:1.33008,lineGap:0};l.SegoeuiBoldItalicMetrics=O;const P=[1.76738,1,1,.98946,1.14763,1.05365,1.06234,.96927,.92586,1.15373,1.18414,.91349,.91349,1.07403,1.17308,.78383,1.20088,.78383,1.42531,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.78383,.78383,1.17308,1.17308,1.17308,.77349,.94565,.94729,.85944,.88506,.9858,.74817,.80016,.88449,.98039,.95782,.69238,.89898,.83231,.98183,1.03989,.96924,.86237,.96924,.80595,.74524,.86091,.95402,.94143,.98448,.8858,.83089,.93285,1.0949,1.39016,1.0949,1.45994,.74627,1.04839,.97454,.97454,.87207,.97454,.87533,1.06151,.97454,1.00176,1.16484,1.08132,.98047,1.16484,1.02989,1.01054,.96225,.97454,.97454,1.06598,.79004,1.16344,1.00351,.94629,.9973,.91016,.96777,.9043,.91082,.92481,.91082,1.17308,.95748,.96927,.96927,1,.96927,.92481,.80597,1.04839,1.23393,1.1781,.9245,1.17308,1.20808,.63218,.94261,1.24822,1.09971,1.09971,1.04839,1,.85273,.78032,1.04839,1.09971,1.22326,.9245,1.09836,1.13525,1.15222,.70424,.94729,.94729,.94729,.94729,.94729,.94729,.85498,.88506,.74817,.74817,.74817,.74817,.95782,.95782,.95782,.95782,.9858,1.03989,.96924,.96924,.96924,.96924,.96924,1.17308,.96924,.95402,.95402,.95402,.95402,.83089,.86237,.88409,.97454,.97454,.97454,.97454,.97454,.97454,.92916,.87207,.87533,.87533,.87533,.87533,.93146,.93146,.93146,.93146,.93854,1.01054,.96225,.96225,.96225,.96225,.96225,1.24822,.8761,1.00351,1.00351,1.00351,1.00351,.96777,.97454,.96777,.94729,.97454,.94729,.97454,.94729,.97454,.88506,.87207,.88506,.87207,.88506,.87207,.88506,.87207,.9858,.95391,.9858,.97454,.74817,.87533,.74817,.87533,.74817,.87533,.74817,.87533,.74817,.87533,.88449,.97454,.88449,.97454,.88449,.97454,1,1,.98039,1.00176,.98039,1.00176,.95782,.93146,.95782,.93146,.95782,.93146,.95782,1.16484,.95782,.93146,.84421,1.12761,.69238,1.08132,1,1,.98047,.83231,1.16484,1,1,.84723,1.04861,.84723,.78755,.83231,1.23736,1.03989,1.01054,1,1,1.03989,1.01054,.9857,1.03849,1.01054,.96924,.96225,.96924,.96225,.96924,.96225,.92383,.90171,.80595,1.06598,1,1,.80595,1.06598,.74524,.79004,.74524,.79004,.74524,.79004,.74524,.79004,1,1,.86091,1.02759,.85771,1.16344,.95402,1.00351,.95402,1.00351,.95402,1.00351,.95402,1.00351,.95402,1.00351,.95402,1.00351,.98448,.9973,.83089,.96777,.83089,.93285,.9043,.93285,.9043,.93285,.9043,1.31868,.96927,.94729,.97454,.85498,.92916,.96924,.8761,1,1,.86091,1.16344,1.04839,1.04839,1.04839,1.04839,1.04839,1.04839,1.04839,1.04839,1.04839,.81965,.81965,.94729,.78032,.71022,.90883,.84171,.99877,.77596,1.05734,1.2,.94729,.85944,.82791,.9607,.74817,.93285,.98039,.96924,.95782,.89898,.98316,.98183,1.03989,.78614,.96924,.97642,.86237,.86075,.86091,.83089,.90082,.8858,.97296,1.01284,.95782,.83089,1.0976,1.04,1.03342,1.2,1.0675,1.0976,.98205,1.03809,1.05097,1.04,.95364,1.03342,1.05401,1.2,1.02148,1.0119,1.04724,1.0127,1.02732,.96225,.8965,.97783,.93574,.94818,1.30679,1.0675,1.11826,.99821,1.0557,1.0326,1.2,1.0675,.96225,1.0675,1.0326,.74817,1,1,1,1,1,1,1,1,1,1,1,1,1.03754,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.87533,1,1,1,1,1,1,1,1,1,1,1,1,.98705,1,1,1,1,1,1,.98448,.9973,.98448,.9973,.98448,.9973,.83089,.96777,1,1.20088,.89903,1,1,.75155,.94945,.94945,.94945,.94945,1.12317,1.12317,1.12317,.67603,.67603,1.15621,.73584,1.21191,1.22135,1.06483,.94868,.94868,.95996,1.24633,1,1.07497,.87709,.96927,1.01473,.96927,1,1,1,.77295,1,1,1.09836,1.09836,1.09836,1.01522,.86321,.94434,.8649,.94434,.86182,1,1,1.083,1,.91578,.86438,1.17308,1.18416,1.14589,.69825,.97622,1.96791,1.24822,1.24822,1.17308,1.24822,1.24822,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.42603,1,.99862,.99862,1,.87025,.87025,.87025,.87025,1.17984,1.42603,1,1.42603,1.42603,.99862,1,1,1,1,1,1.2886,1.04315,1.15296,1.34163,1,1,1,1.10742,1.10742,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];l.SegoeuiItalicFactors=P;const e={lineHeight:1.33008,lineGap:0};l.SegoeuiItalicMetrics=e;const N=[1.76738,1,1,.98594,1.02285,1.10454,1.06234,.96927,.92037,1.19985,1.2046,.90616,.90616,1.07152,1.1714,.78032,1.20088,.78032,1.40246,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.78032,.78032,1.1714,1.1714,1.1714,.80597,.94084,.96706,.85944,.85734,.97093,.75842,.79936,.88198,.9831,.95782,.71387,.86969,.84636,1.07796,1.03584,.96924,.83968,.96924,.82826,.79649,.85771,.95132,.93119,.98965,.88433,.8287,.93365,1.08612,1.3638,1.08612,1.45786,.74627,.80499,.91484,1.05707,.92383,1.05882,.9403,1.12654,1.05882,1.01756,1.09011,1.09011,.99414,1.09011,1.034,1.01756,1.05356,1.05707,1.05882,1.04399,.84863,1.21968,1.01756,.95801,1.00068,.91797,.96777,.9043,.90351,.92105,.90351,1.1714,.85337,.96927,.96927,.99912,.96927,.92105,.80597,1.2434,1.20808,1.05937,.90957,1.1714,1.20808,.75155,.94261,1.24644,1.09971,1.09971,.84751,1,.85273,.78032,.61584,1.05425,1.17914,.90957,1.08665,1.11593,1.14169,.73381,.96706,.96706,.96706,.96706,.96706,.96706,.86035,.85734,.75842,.75842,.75842,.75842,.95782,.95782,.95782,.95782,.97093,1.03584,.96924,.96924,.96924,.96924,.96924,1.1714,.96924,.95132,.95132,.95132,.95132,.8287,.83968,.89049,.91484,.91484,.91484,.91484,.91484,.91484,.93575,.92383,.9403,.9403,.9403,.9403,.8717,.8717,.8717,.8717,1.00527,1.01756,1.05356,1.05356,1.05356,1.05356,1.05356,1.24644,.95923,1.01756,1.01756,1.01756,1.01756,.96777,1.05707,.96777,.96706,.91484,.96706,.91484,.96706,.91484,.85734,.92383,.85734,.92383,.85734,.92383,.85734,.92383,.97093,1.0969,.97093,1.05882,.75842,.9403,.75842,.9403,.75842,.9403,.75842,.9403,.75842,.9403,.88198,1.05882,.88198,1.05882,.88198,1.05882,1,1,.9831,1.01756,.9831,1.01756,.95782,.8717,.95782,.8717,.95782,.8717,.95782,1.09011,.95782,.8717,.84784,1.11551,.71387,1.09011,1,1,.99414,.84636,1.09011,1,1,.84636,1.0536,.84636,.94298,.84636,1.23297,1.03584,1.01756,1,1,1.03584,1.01756,1.00323,1.03444,1.01756,.96924,1.05356,.96924,1.05356,.96924,1.05356,.93066,.98293,.82826,1.04399,1,1,.82826,1.04399,.79649,.84863,.79649,.84863,.79649,.84863,.79649,.84863,1,1,.85771,1.17318,.85771,1.21968,.95132,1.01756,.95132,1.01756,.95132,1.01756,.95132,1.01756,.95132,1.01756,.95132,1.01756,.98965,1.00068,.8287,.96777,.8287,.93365,.9043,.93365,.9043,.93365,.9043,1.08571,.96927,.96706,.91484,.86035,.93575,.96924,.95923,1,1,.85771,1.21968,1.11437,1.11437,.93109,.91202,.60411,.84164,.55572,1.01173,.97361,.81818,.81818,.96635,.78032,.72727,.92366,.98601,1.03405,.77968,1.09799,1.2,.96706,.85944,.85638,.96491,.75842,.93365,.9831,.96924,.95782,.86969,.94152,1.07796,1.03584,.78437,.96924,.98715,.83968,.83491,.85771,.8287,.94492,.88433,.9287,1.0098,.95782,.8287,1.0625,.98248,1.03424,1.2,1.01071,1.0625,.95246,1.03809,1.04912,.98248,1.00221,1.03424,1.05443,1.2,1.04785,.99609,1.00169,1.05176,.99346,1.05356,.9087,1.03004,.95542,.93117,1.23362,1.01071,1.07831,1.02512,1.05205,1.03502,1.2,1.01071,1.05356,1.01071,1.03502,.75842,1,1,1,1,1,1,1,1,1,1,1,1,1.03719,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.9403,1,1,1,1,1,1,1,1,1,1,1,1,1.04021,1,1,1,1,1,1,.98965,1.00068,.98965,1.00068,.98965,1.00068,.8287,.96777,1,1.20088,.89903,1,1,.75155,1.03077,1.03077,1.03077,1.03077,1.13196,1.13196,1.13196,.67428,.67428,1.16039,.73291,1.20996,1.22135,1.06483,.94868,.94868,.95996,1.24633,1,1.07497,.87796,.96927,1.01518,.96927,1,1,1,.77295,1,1,1.10539,1.10539,1.11358,1.06967,.86279,.94434,.86279,.94434,.86182,1,1,1.083,1,.91578,.86507,1.1714,1.18416,1.14589,.69825,.97622,1.9697,1.24822,1.24822,1.17238,1.24822,1.24822,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.42603,1,.99862,.99862,1,.87025,.87025,.87025,.87025,1.18083,1.42603,1,1.42603,1.42603,.99862,1,1,1,1,1,1.2886,1.04315,1.15296,1.34163,1,1,1,1.10938,1.10938,1,1,1,1.05425,1.09971,1.09971,1.09971,1,1,1,1,1,1,1,1,1,1,1];l.SegoeuiRegularFactors=N;const D={lineHeight:1.33008,lineGap:0};l.SegoeuiRegularMetrics=D},(he,l,w)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.PostScriptEvaluator=l.PostScriptCompiler=l.PDFFunctionFactory=void 0,l.isPDFFunction=k;var t=w(137),i=w(2),O=w(189),P=w(138),e=w(190);class N{constructor(r){let{xref:o,isEvalSupported:A=!0}=r;this.xref=o,this.isEvalSupported=A!==!1}create(r){const o=this.getCached(r);if(o)return o;const A=L.parse({xref:this.xref,isEvalSupported:this.isEvalSupported,fn:r instanceof t.Ref?this.xref.fetch(r):r});return this._cache(r,A),A}createFromArray(r){const o=this.getCached(r);if(o)return o;const A=L.parseArray({xref:this.xref,isEvalSupported:this.isEvalSupported,fnObj:r instanceof t.Ref?this.xref.fetch(r):r});return this._cache(r,A),A}getCached(r){let o;if(r instanceof t.Ref?o=r:r instanceof t.Dict?o=r.objId:r instanceof P.BaseStream&&(o=r.dict&&r.dict.objId),o){const A=this._localFunctionCache.getByRef(o);if(A)return A}return null}_cache(r,o){if(!o)throw new Error('PDFFunctionFactory._cache - expected "parsedFunction" argument.');let A;r instanceof t.Ref?A=r:r instanceof t.Dict?A=r.objId:r instanceof P.BaseStream&&(A=r.dict&&r.dict.objId),A&&this._localFunctionCache.set(null,A,o)}get _localFunctionCache(){return(0,i.shadow)(this,"_localFunctionCache",new e.LocalFunctionCache)}}l.PDFFunctionFactory=N;function D(S){if(!Array.isArray(S))return null;const r=S.length;for(let o=0;o<r;o++)if(typeof S[o]!="number"){const A=new Array(r);for(let p=0;p<r;p++)A[p]=+S[p];return A}return S}class L{static getSampleArray(r,o,A,p){let v,R,T=1;for(v=0,R=r.length;v<R;v++)T*=r[v];T*=o;const y=new Array(T);let H=0,z=0;const $=1/(2**A-1),j=p.getBytes((T*A+7)/8);let V=0;for(v=0;v<T;v++){for(;H<A;)z<<=8,z|=j[V++],H+=8;H-=A,y[v]=(z>>H)*$,z&=(1<<H)-1}return y}static parse(r){let{xref:o,isEvalSupported:A,fn:p}=r;const v=p.dict||p;switch(v.get("FunctionType")){case 0:return this.constructSampled({xref:o,isEvalSupported:A,fn:p,dict:v});case 1:break;case 2:return this.constructInterpolated({xref:o,isEvalSupported:A,dict:v});case 3:return this.constructStiched({xref:o,isEvalSupported:A,dict:v});case 4:return this.constructPostScript({xref:o,isEvalSupported:A,fn:p,dict:v})}throw new i.FormatError("Unknown type of function")}static parseArray(r){let{xref:o,isEvalSupported:A,fnObj:p}=r;if(!Array.isArray(p))return this.parse({xref:o,isEvalSupported:A,fn:p});const v=[];for(const R of p)v.push(this.parse({xref:o,isEvalSupported:A,fn:o.fetchIfRef(R)}));return function(R,T,y,H){for(let z=0,$=v.length;z<$;z++)v[z](R,T,y,H+z)}}static constructSampled(r){let{xref:o,isEvalSupported:A,fn:p,dict:v}=r;function R(oe){const se=oe.length,Q=[];let E=0;for(let M=0;M<se;M+=2)Q[E++]=[oe[M],oe[M+1]];return Q}function T(oe,se,Q,E,M){return E+(oe-se)*((M-E)/(Q-se))}let y=D(v.getArray("Domain")),H=D(v.getArray("Range"));if(!y||!H)throw new i.FormatError("No domain or range");const z=y.length/2,$=H.length/2;y=R(y),H=R(H);const j=D(v.getArray("Size")),V=v.get("BitsPerSample"),ee=v.get("Order")||1;ee!==1&&(0,i.info)("No support for cubic spline interpolation: "+ee);let U=D(v.getArray("Encode"));if(U)U=R(U);else{U=[];for(let oe=0;oe<z;++oe)U.push([0,j[oe]-1])}let G=D(v.getArray("Decode"));G?G=R(G):G=H;const Y=this.getSampleArray(j,$,V,p);return function(se,Q,E,M){const _=1<<z,J=new Float64Array(_),K=new Uint32Array(_);let te,Z;for(Z=0;Z<_;Z++)J[Z]=1;let ce=$,ne=1;for(te=0;te<z;++te){const re=y[te][0],ie=y[te][1],ae=Math.min(Math.max(se[Q+te],re),ie);let ue=T(ae,re,ie,U[te][0],U[te][1]);const fe=j[te];ue=Math.min(Math.max(ue,0),fe-1);const me=ue<fe-1?Math.floor(ue):ue-1,Fe=me+1-ue,pe=ue-me,Ce=me*ce,be=Ce+ce;for(Z=0;Z<_;Z++)Z&ne?(J[Z]*=pe,K[Z]+=be):(J[Z]*=Fe,K[Z]+=Ce);ce*=fe,ne<<=1}for(Z=0;Z<$;++Z){let re=0;for(te=0;te<_;te++)re+=Y[K[te]+Z]*J[te];re=T(re,0,1,G[Z][0],G[Z][1]),E[M+Z]=Math.min(Math.max(re,H[Z][0]),H[Z][1])}}}static constructInterpolated(r){let{xref:o,isEvalSupported:A,dict:p}=r;const v=D(p.getArray("C0"))||[0],R=D(p.getArray("C1"))||[1],T=p.get("N"),y=[];for(let z=0,$=v.length;z<$;++z)y.push(R[z]-v[z]);const H=y.length;return function($,j,V,ee){const U=T===1?$[j]:$[j]**T;for(let G=0;G<H;++G)V[ee+G]=v[G]+U*y[G]}}static constructStiched(r){let{xref:o,isEvalSupported:A,dict:p}=r;const v=D(p.getArray("Domain"));if(!v)throw new i.FormatError("No domain");if(v.length/2!==1)throw new i.FormatError("Bad domain for stiched function");const T=[];for(const $ of p.get("Functions"))T.push(this.parse({xref:o,isEvalSupported:A,fn:o.fetchIfRef($)}));const y=D(p.getArray("Bounds")),H=D(p.getArray("Encode")),z=new Float32Array(1);return function(j,V,ee,U){const Y=function(K,te,Z){return K>Z?K=Z:K<te&&(K=te),K}(j[V],v[0],v[1]),oe=y.length;let se;for(se=0;se<oe&&!(Y<y[se]);++se);let Q=v[0];se>0&&(Q=y[se-1]);let E=v[1];se<y.length&&(E=y[se]);const M=H[2*se],_=H[2*se+1];z[0]=Q===E?M:M+(Y-Q)*(_-M)/(E-Q),T[se](z,0,ee,U)}}static constructPostScript(r){let{xref:o,isEvalSupported:A,fn:p,dict:v}=r;const R=D(v.getArray("Domain")),T=D(v.getArray("Range"));if(!R)throw new i.FormatError("No domain.");if(!T)throw new i.FormatError("No range.");const y=new O.PostScriptLexer(p),z=new O.PostScriptParser(y).parse();if(A&&i.FeatureTest.isEvalSupported){const oe=new d().compile(z,R,T);if(oe)return new Function("src","srcOffset","dest","destOffset",oe)}(0,i.info)("Unable to compile PS function");const $=T.length>>1,j=R.length>>1,V=new g(z),ee=Object.create(null);let G=2048*4;const Y=new Float32Array(j);return function(se,Q,E,M){let _,J,K="";const te=Y;for(_=0;_<j;_++)J=se[Q+_],te[_]=J,K+=J+"_";const Z=ee[K];if(Z!==void 0){E.set(Z,M);return}const ce=new Float32Array($),ne=V.execute(te),re=ne.length-$;for(_=0;_<$;_++){J=ne[re+_];let ie=T[_*2];J<ie?J=ie:(ie=T[_*2+1],J>ie&&(J=ie)),ce[_]=J}G>0&&(G--,ee[K]=ce),E.set(ce,M)}}}function k(S){let r;if(typeof S!="object")return!1;if(S instanceof t.Dict)r=S;else if(S instanceof P.BaseStream)r=S.dict;else return!1;return r.has("FunctionType")}class x{static get MAX_STACK_SIZE(){return(0,i.shadow)(this,"MAX_STACK_SIZE",100)}constructor(r){this.stack=r?Array.from(r):[]}push(r){if(this.stack.length>=x.MAX_STACK_SIZE)throw new Error("PostScript function stack overflow.");this.stack.push(r)}pop(){if(this.stack.length<=0)throw new Error("PostScript function stack underflow.");return this.stack.pop()}copy(r){if(this.stack.length+r>=x.MAX_STACK_SIZE)throw new Error("PostScript function stack overflow.");const o=this.stack;for(let A=o.length-r,p=r-1;p>=0;p--,A++)o.push(o[A])}index(r){this.push(this.stack[this.stack.length-r-1])}roll(r,o){const A=this.stack,p=A.length-r,v=A.length-1,R=p+(o-Math.floor(o/r)*r);for(let T=p,y=v;T<y;T++,y--){const H=A[T];A[T]=A[y],A[y]=H}for(let T=p,y=R-1;T<y;T++,y--){const H=A[T];A[T]=A[y],A[y]=H}for(let T=R,y=v;T<y;T++,y--){const H=A[T];A[T]=A[y],A[y]=H}}}class g{constructor(r){this.operators=r}execute(r){const o=new x(r);let A=0;const p=this.operators,v=p.length;let R,T,y;for(;A<v;){if(R=p[A++],typeof R=="number"){o.push(R);continue}switch(R){case"jz":y=o.pop(),T=o.pop(),T||(A=y);break;case"j":T=o.pop(),A=T;break;case"abs":T=o.pop(),o.push(Math.abs(T));break;case"add":y=o.pop(),T=o.pop(),o.push(T+y);break;case"and":y=o.pop(),T=o.pop(),typeof T=="boolean"&&typeof y=="boolean"?o.push(T&&y):o.push(T&y);break;case"atan":T=o.pop(),o.push(Math.atan(T));break;case"bitshift":y=o.pop(),T=o.pop(),T>0?o.push(T<<y):o.push(T>>y);break;case"ceiling":T=o.pop(),o.push(Math.ceil(T));break;case"copy":T=o.pop(),o.copy(T);break;case"cos":T=o.pop(),o.push(Math.cos(T));break;case"cvi":T=o.pop()|0,o.push(T);break;case"cvr":break;case"div":y=o.pop(),T=o.pop(),o.push(T/y);break;case"dup":o.copy(1);break;case"eq":y=o.pop(),T=o.pop(),o.push(T===y);break;case"exch":o.roll(2,1);break;case"exp":y=o.pop(),T=o.pop(),o.push(T**y);break;case"false":o.push(!1);break;case"floor":T=o.pop(),o.push(Math.floor(T));break;case"ge":y=o.pop(),T=o.pop(),o.push(T>=y);break;case"gt":y=o.pop(),T=o.pop(),o.push(T>y);break;case"idiv":y=o.pop(),T=o.pop(),o.push(T/y|0);break;case"index":T=o.pop(),o.index(T);break;case"le":y=o.pop(),T=o.pop(),o.push(T<=y);break;case"ln":T=o.pop(),o.push(Math.log(T));break;case"log":T=o.pop(),o.push(Math.log(T)/Math.LN10);break;case"lt":y=o.pop(),T=o.pop(),o.push(T<y);break;case"mod":y=o.pop(),T=o.pop(),o.push(T%y);break;case"mul":y=o.pop(),T=o.pop(),o.push(T*y);break;case"ne":y=o.pop(),T=o.pop(),o.push(T!==y);break;case"neg":T=o.pop(),o.push(-T);break;case"not":T=o.pop(),typeof T=="boolean"?o.push(!T):o.push(~T);break;case"or":y=o.pop(),T=o.pop(),typeof T=="boolean"&&typeof y=="boolean"?o.push(T||y):o.push(T|y);break;case"pop":o.pop();break;case"roll":y=o.pop(),T=o.pop(),o.roll(T,y);break;case"round":T=o.pop(),o.push(Math.round(T));break;case"sin":T=o.pop(),o.push(Math.sin(T));break;case"sqrt":T=o.pop(),o.push(Math.sqrt(T));break;case"sub":y=o.pop(),T=o.pop(),o.push(T-y);break;case"true":o.push(!0);break;case"truncate":T=o.pop(),T=T<0?Math.ceil(T):Math.floor(T),o.push(T);break;case"xor":y=o.pop(),T=o.pop(),typeof T=="boolean"&&typeof y=="boolean"?o.push(T!==y):o.push(T^y);break;default:throw new i.FormatError(`Unknown operator ${R}`)}}return o.stack}}l.PostScriptEvaluator=g;class n{constructor(r){this.type=r}visit(r){(0,i.unreachable)("abstract method")}}class I extends n{constructor(r,o,A){super("args"),this.index=r,this.min=o,this.max=A}visit(r){r.visitArgument(this)}}class B extends n{constructor(r){super("literal"),this.number=r,this.min=r,this.max=r}visit(r){r.visitLiteral(this)}}class h extends n{constructor(r,o,A,p,v){super("binary"),this.op=r,this.arg1=o,this.arg2=A,this.min=p,this.max=v}visit(r){r.visitBinaryOperation(this)}}class c extends n{constructor(r,o){super("max"),this.arg=r,this.min=r.min,this.max=o}visit(r){r.visitMin(this)}}class C extends n{constructor(r,o,A){super("var"),this.index=r,this.min=o,this.max=A}visit(r){r.visitVariable(this)}}class u extends n{constructor(r,o){super("definition"),this.variable=r,this.arg=o}visit(r){r.visitVariableDefinition(this)}}class m{constructor(){this.parts=[]}visitArgument(r){this.parts.push("Math.max(",r.min,", Math.min(",r.max,", src[srcOffset + ",r.index,"]))")}visitVariable(r){this.parts.push("v",r.index)}visitLiteral(r){this.parts.push(r.number)}visitBinaryOperation(r){this.parts.push("("),r.arg1.visit(this),this.parts.push(" ",r.op," "),r.arg2.visit(this),this.parts.push(")")}visitVariableDefinition(r){this.parts.push("var "),r.variable.visit(this),this.parts.push(" = "),r.arg.visit(this),this.parts.push(";")}visitMin(r){this.parts.push("Math.min("),r.arg.visit(this),this.parts.push(", ",r.max,")")}toString(){return this.parts.join("")}}function X(S,r){return r.type==="literal"&&r.number===0?S:S.type==="literal"&&S.number===0?r:r.type==="literal"&&S.type==="literal"?new B(S.number+r.number):new h("+",S,r,S.min+r.min,S.max+r.max)}function f(S,r){if(r.type==="literal"){if(r.number===0)return new B(0);if(r.number===1)return S;if(S.type==="literal")return new B(S.number*r.number)}if(S.type==="literal"){if(S.number===0)return new B(0);if(S.number===1)return r}const o=Math.min(S.min*r.min,S.min*r.max,S.max*r.min,S.max*r.max),A=Math.max(S.min*r.min,S.min*r.max,S.max*r.min,S.max*r.max);return new h("*",S,r,o,A)}function F(S,r){if(r.type==="literal"){if(r.number===0)return S;if(S.type==="literal")return new B(S.number-r.number)}return r.type==="binary"&&r.op==="-"&&S.type==="literal"&&S.number===1&&r.arg1.type==="literal"&&r.arg1.number===1?r.arg2:new h("-",S,r,S.min-r.max,S.max-r.min)}function s(S,r){return S.min>=r?new B(r):S.max<=r?S:new c(S,r)}class d{compile(r,o,A){const p=[],v=[],R=o.length>>1,T=A.length>>1;let y=0,H,z,$,j,V,ee,U,G;for(let oe=0;oe<R;oe++)p.push(new I(oe,o[oe*2],o[oe*2+1]));for(let oe=0,se=r.length;oe<se;oe++){if(G=r[oe],typeof G=="number"){p.push(new B(G));continue}switch(G){case"add":if(p.length<2)return null;j=p.pop(),$=p.pop(),p.push(X($,j));break;case"cvr":if(p.length<1)return null;break;case"mul":if(p.length<2)return null;j=p.pop(),$=p.pop(),p.push(f($,j));break;case"sub":if(p.length<2)return null;j=p.pop(),$=p.pop(),p.push(F($,j));break;case"exch":if(p.length<2)return null;V=p.pop(),ee=p.pop(),p.push(V,ee);break;case"pop":if(p.length<1)return null;p.pop();break;case"index":if(p.length<1||($=p.pop(),$.type!=="literal")||(H=$.number,H<0||!Number.isInteger(H)||p.length<H))return null;if(V=p[p.length-H-1],V.type==="literal"||V.type==="var"){p.push(V);break}U=new C(y++,V.min,V.max),p[p.length-H-1]=U,p.push(U),v.push(new u(U,V));break;case"dup":if(p.length<1)return null;if(typeof r[oe+1]=="number"&&r[oe+2]==="gt"&&r[oe+3]===oe+7&&r[oe+4]==="jz"&&r[oe+5]==="pop"&&r[oe+6]===r[oe+1]){$=p.pop(),p.push(s($,r[oe+1])),oe+=6;break}if(V=p.at(-1),V.type==="literal"||V.type==="var"){p.push(V);break}U=new C(y++,V.min,V.max),p[p.length-1]=U,p.push(U),v.push(new u(U,V));break;case"roll":if(p.length<2||(j=p.pop(),$=p.pop(),j.type!=="literal"||$.type!=="literal")||(z=j.number,H=$.number,H<=0||!Number.isInteger(H)||!Number.isInteger(z)||p.length<H))return null;if(z=(z%H+H)%H,z===0)break;p.push(...p.splice(p.length-H,H-z));break;default:return null}}if(p.length!==T)return null;const Y=[];for(const oe of v){const se=new m;oe.visit(se),Y.push(se.toString())}for(let oe=0,se=p.length;oe<se;oe++){const Q=p[oe],E=new m;Q.visit(E);const M=A[oe*2],_=A[oe*2+1],J=[E.toString()];M>Q.min&&(J.unshift("Math.max(",M,", "),J.push(")")),_<Q.max&&(J.unshift("Math.min(",_,", "),J.push(")")),J.unshift("dest[destOffset + ",oe,"] = "),J.push(";"),Y.push(J.join(""))}return Y.join(`
`)}}l.PostScriptCompiler=d},(he,l,w)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.PostScriptParser=l.PostScriptLexer=void 0;var t=w(2),i=w(137),O=w(136);class P{constructor(k){this.lexer=k,this.operators=[],this.token=null,this.prev=null}nextToken(){this.prev=this.token,this.token=this.lexer.getToken()}accept(k){return this.token.type===k?(this.nextToken(),!0):!1}expect(k){if(this.accept(k))return!0;throw new t.FormatError(`Unexpected symbol: found ${this.token.type} expected ${k}.`)}parse(){return this.nextToken(),this.expect(e.LBRACE),this.parseBlock(),this.expect(e.RBRACE),this.operators}parseBlock(){for(;;)if(this.accept(e.NUMBER))this.operators.push(this.prev.value);else if(this.accept(e.OPERATOR))this.operators.push(this.prev.value);else if(this.accept(e.LBRACE))this.parseCondition();else return}parseCondition(){const k=this.operators.length;if(this.operators.push(null,null),this.parseBlock(),this.expect(e.RBRACE),this.accept(e.IF))this.operators[k]=this.operators.length,this.operators[k+1]="jz";else if(this.accept(e.LBRACE)){const x=this.operators.length;this.operators.push(null,null);const g=this.operators.length;this.parseBlock(),this.expect(e.RBRACE),this.expect(e.IFELSE),this.operators[x]=this.operators.length,this.operators[x+1]="j",this.operators[k]=g,this.operators[k+1]="jz"}else throw new t.FormatError("PS Function: error parsing conditional.")}}l.PostScriptParser=P;const e={LBRACE:0,RBRACE:1,NUMBER:2,OPERATOR:3,IF:4,IFELSE:5};class N{static get opCache(){return(0,t.shadow)(this,"opCache",Object.create(null))}constructor(k,x){this.type=k,this.value=x}static getOperator(k){const x=N.opCache[k];return x||(N.opCache[k]=new N(e.OPERATOR,k))}static get LBRACE(){return(0,t.shadow)(this,"LBRACE",new N(e.LBRACE,"{"))}static get RBRACE(){return(0,t.shadow)(this,"RBRACE",new N(e.RBRACE,"}"))}static get IF(){return(0,t.shadow)(this,"IF",new N(e.IF,"IF"))}static get IFELSE(){return(0,t.shadow)(this,"IFELSE",new N(e.IFELSE,"IFELSE"))}}class D{constructor(k){this.stream=k,this.nextChar(),this.strBuf=[]}nextChar(){return this.currentChar=this.stream.getByte()}getToken(){let k=!1,x=this.currentChar;for(;;){if(x<0)return i.EOF;if(k)(x===10||x===13)&&(k=!1);else if(x===37)k=!0;else if(!(0,O.isWhiteSpace)(x))break;x=this.nextChar()}switch(x|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 N(e.NUMBER,this.getNumber());case 123:return this.nextChar(),N.LBRACE;case 125:return this.nextChar(),N.RBRACE}const g=this.strBuf;for(g.length=0,g[0]=String.fromCharCode(x);(x=this.nextChar())>=0&&(x>=65&&x<=90||x>=97&&x<=122);)g.push(String.fromCharCode(x));const n=g.join("");switch(n.toLowerCase()){case"if":return N.IF;case"ifelse":return N.IFELSE;default:return N.getOperator(n)}}getNumber(){let k=this.currentChar;const x=this.strBuf;for(x.length=0,x[0]=String.fromCharCode(k);(k=this.nextChar())>=0&&(k>=48&&k<=57||k===45||k===46);)x.push(String.fromCharCode(k));const g=parseFloat(x.join(""));if(isNaN(g))throw new t.FormatError(`Invalid floating point number: ${g}`);return g}}l.PostScriptLexer=D},(he,l,w)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.LocalTilingPatternCache=l.LocalImageCache=l.LocalGStateCache=l.LocalFunctionCache=l.LocalColorSpaceCache=l.GlobalImageCache=void 0;var t=w(2),i=w(137);class O{constructor(g){this.constructor===O&&(0,t.unreachable)("Cannot initialize BaseLocalCache."),this._onlyRefs=(g&&g.onlyRefs)===!0,this._onlyRefs||(this._nameRefMap=new Map,this._imageMap=new Map),this._imageCache=new i.RefSetCache}getByName(g){this._onlyRefs&&(0,t.unreachable)("Should not call `getByName` method.");const n=this._nameRefMap.get(g);return n?this.getByRef(n):this._imageMap.get(g)||null}getByRef(g){return this._imageCache.get(g)||null}set(g,n,I){(0,t.unreachable)("Abstract method `set` called.")}}class P extends O{set(g){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,I=arguments.length>2?arguments[2]:void 0;if(typeof g!="string")throw new Error('LocalImageCache.set - expected "name" argument.');if(n){if(this._imageCache.has(n))return;this._nameRefMap.set(g,n),this._imageCache.put(n,I);return}this._imageMap.has(g)||this._imageMap.set(g,I)}}l.LocalImageCache=P;class e extends O{set(){let g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,I=arguments.length>2?arguments[2]:void 0;if(typeof g!="string"&&!n)throw new Error('LocalColorSpaceCache.set - expected "name" and/or "ref" argument.');if(n){if(this._imageCache.has(n))return;g!==null&&this._nameRefMap.set(g,n),this._imageCache.put(n,I);return}this._imageMap.has(g)||this._imageMap.set(g,I)}}l.LocalColorSpaceCache=e;class N extends O{constructor(g){super({onlyRefs:!0})}set(){let g=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;if(!g)throw new Error('LocalFunctionCache.set - expected "ref" argument.');this._imageCache.has(g)||this._imageCache.put(g,n)}}l.LocalFunctionCache=N;class D extends O{set(g){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,I=arguments.length>2?arguments[2]:void 0;if(typeof g!="string")throw new Error('LocalGStateCache.set - expected "name" argument.');if(n){if(this._imageCache.has(n))return;this._nameRefMap.set(g,n),this._imageCache.put(n,I);return}this._imageMap.has(g)||this._imageMap.set(g,I)}}l.LocalGStateCache=D;class L extends O{constructor(g){super({onlyRefs:!0})}set(){let g=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;if(!g)throw new Error('LocalTilingPatternCache.set - expected "ref" argument.');this._imageCache.has(g)||this._imageCache.put(g,n)}}l.LocalTilingPatternCache=L;class k{static get NUM_PAGES_THRESHOLD(){return(0,t.shadow)(this,"NUM_PAGES_THRESHOLD",2)}static get MIN_IMAGES_TO_CACHE(){return(0,t.shadow)(this,"MIN_IMAGES_TO_CACHE",10)}static get MAX_BYTE_SIZE(){return(0,t.shadow)(this,"MAX_BYTE_SIZE",4e7)}constructor(){this._refCache=new i.RefSetCache,this._imageCache=new i.RefSetCache}get _byteSize(){let g=0;for(const n of this._imageCache)g+=n.byteSize;return g}get _cacheLimitReached(){return!(this._imageCache.size<k.MIN_IMAGES_TO_CACHE||this._byteSize<k.MAX_BYTE_SIZE)}shouldCache(g,n){const I=this._refCache.get(g);return!((I?I.size+(I.has(n)?0:1):1)<k.NUM_PAGES_THRESHOLD||!this._imageCache.has(g)&&this._cacheLimitReached)}addPageIndex(g,n){let I=this._refCache.get(g);I||(I=new Set,this._refCache.put(g,I)),I.add(n)}addByteSize(g,n){const I=this._imageCache.get(g);I&&(I.byteSize||(I.byteSize=n))}getData(g,n){const I=this._refCache.get(g);if(!I||I.size<k.NUM_PAGES_THRESHOLD)return null;const B=this._imageCache.get(g);return B?(I.add(n),B):null}setData(g,n){if(!this._refCache.has(g))throw new Error('GlobalImageCache.setData - expected "addPageIndex" to have been called.');if(!this._imageCache.has(g)){if(this._cacheLimitReached){(0,t.warn)("GlobalImageCache.setData - cache limit reached.");return}this._imageCache.put(g,n)}}clear(){(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)||this._refCache.clear(),this._imageCache.clear()}}l.GlobalImageCache=k},(he,l,w)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.bidi=n;var t=w(2);const i=["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"],O=["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 P(I){return(I&1)!==0}function e(I){return(I&1)===0}function N(I,B,h){let c,C;for(c=B,C=I.length;c<C;++c)if(I[c]!==h)return c;return c}function D(I,B,h,c){for(let C=B;C<h;++C)I[C]=c}function L(I,B,h){for(let c=B,C=h-1;c<C;++c,--C){const u=I[c];I[c]=I[C],I[C]=u}}function k(I,B){let h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,c="ltr";return h?c="ttb":B||(c="rtl"),{str:I,dir:c}}const x=[],g=[];function n(I){let B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:-1,h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,c=!0;const C=I.length;if(C===0||h)return k(I,c,h);x.length=C,g.length=C;let u=0,m,X;for(m=0;m<C;++m){x[m]=I.charAt(m);const v=I.charCodeAt(m);let R="L";v<=255?R=i[v]:1424<=v&&v<=1524?R="R":1536<=v&&v<=1791?(R=O[v&255],R||(0,t.warn)("Bidi: invalid Unicode character "+v.toString(16))):1792<=v&&v<=2220&&(R="AL"),(R==="R"||R==="AL"||R==="AN")&&u++,g[m]=R}if(u===0)return c=!0,k(I,c);B===-1&&(u/C<.3&&C>4?(c=!0,B=0):(c=!1,B=1));const f=[];for(m=0;m<C;++m)f[m]=B;const F=P(B)?"R":"L",s=F,d=s;let S=s;for(m=0;m<C;++m)g[m]==="NSM"?g[m]=S:S=g[m];S=s;let r;for(m=0;m<C;++m)r=g[m],r==="EN"?g[m]=S==="AL"?"AN":"EN":(r==="R"||r==="L"||r==="AL")&&(S=r);for(m=0;m<C;++m)r=g[m],r==="AL"&&(g[m]="R");for(m=1;m<C-1;++m)g[m]==="ES"&&g[m-1]==="EN"&&g[m+1]==="EN"&&(g[m]="EN"),g[m]==="CS"&&(g[m-1]==="EN"||g[m-1]==="AN")&&g[m+1]===g[m-1]&&(g[m]=g[m-1]);for(m=0;m<C;++m)if(g[m]==="EN"){for(let v=m-1;v>=0&&g[v]==="ET";--v)g[v]="EN";for(let v=m+1;v<C&&g[v]==="ET";++v)g[v]="EN"}for(m=0;m<C;++m)r=g[m],(r==="WS"||r==="ES"||r==="ET"||r==="CS")&&(g[m]="ON");for(S=s,m=0;m<C;++m)r=g[m],r==="EN"?g[m]=S==="L"?"L":"EN":(r==="R"||r==="L")&&(S=r);for(m=0;m<C;++m)if(g[m]==="ON"){const v=N(g,m+1,"ON");let R=s;m>0&&(R=g[m-1]);let T=d;v+1<C&&(T=g[v+1]),R!=="L"&&(R="R"),T!=="L"&&(T="R"),R===T&&D(g,m,v,R),m=v-1}for(m=0;m<C;++m)g[m]==="ON"&&(g[m]=F);for(m=0;m<C;++m)r=g[m],e(f[m])?r==="R"?f[m]+=1:(r==="AN"||r==="EN")&&(f[m]+=2):(r==="L"||r==="AN"||r==="EN")&&(f[m]+=1);let o=-1,A=99,p;for(m=0,X=f.length;m<X;++m)p=f[m],o<p&&(o=p),A>p&&P(p)&&(A=p);for(p=o;p>=A;--p){let v=-1;for(m=0,X=f.length;m<X;++m)f[m]<p?v>=0&&(L(x,v,m),v=-1):v<0&&(v=m);v>=0&&L(x,v,f.length)}for(m=0,X=x.length;m<X;++m){const v=x[m];(v==="<"||v===">")&&(x[m]="")}return k(x.join(""),c)}},(he,l,w)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.MurmurHash3_64=void 0;var t=w(2);const i=3285377520,O=4294901760,P=65535;class e{constructor(D){this.h1=D?D&4294967295:i,this.h2=D?D&4294967295:i}update(D){let L,k;if(typeof D=="string"){L=new Uint8Array(D.length*2),k=0;for(let f=0,F=D.length;f<F;f++){const s=D.charCodeAt(f);s<=255?L[k++]=s:(L[k++]=s>>>8,L[k++]=s&255)}}else if((0,t.isArrayBuffer)(D))L=D.slice(),k=L.byteLength;else throw new Error("Wrong data format in MurmurHash3_64_update. Input must be a string or array.");const x=k>>2,g=k-x*4,n=new Uint32Array(L.buffer,0,x);let I=0,B=0,h=this.h1,c=this.h2;const C=3432918353,u=461845907,m=C&P,X=u&P;for(let f=0;f<x;f++)f&1?(I=n[f],I=I*C&O|I*m&P,I=I<<15|I>>>17,I=I*u&O|I*X&P,h^=I,h=h<<13|h>>>19,h=h*5+3864292196):(B=n[f],B=B*C&O|B*m&P,B=B<<15|B>>>17,B=B*u&O|B*X&P,c^=B,c=c<<13|c>>>19,c=c*5+3864292196);switch(I=0,g){case 3:I^=L[x*4+2]<<16;case 2:I^=L[x*4+1]<<8;case 1:I^=L[x*4],I=I*C&O|I*m&P,I=I<<15|I>>>17,I=I*u&O|I*X&P,x&1?h^=I:c^=I}this.h1=h,this.h2=c}hexdigest(){let D=this.h1,L=this.h2;return D^=L>>>1,D=D*3981806797&O|D*36045&P,L=L*4283543511&O|((L<<16|D>>>16)*2950163797&O)>>>16,D^=L>>>1,D=D*444984403&O|D*60499&P,L=L*3301882366&O|((L<<16|D>>>16)*3120437893&O)>>>16,D^=L>>>1,(D>>>0).toString(16).padStart(8,"0")+(L>>>0).toString(16).padStart(8,"0")}}l.MurmurHash3_64=e},(he,l,w)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.OperatorList=void 0;var t=w(2);function i(D,L,k,x,g){let n=D;for(let I=0,B=L.length-1;I<B;I++){const h=L[I];n=n[h]||(n[h]=[])}n[L.at(-1)]={checkFn:k,iterateFn:x,processFn:g}}const O=[];i(O,[t.OPS.save,t.OPS.transform,t.OPS.paintInlineImageXObject,t.OPS.restore],null,function(L,k){const x=L.fnArray,g=L.iCurr-3,n=(k-g)%4;switch(n){case 0:return x[k]===t.OPS.save;case 1:return x[k]===t.OPS.transform;case 2:return x[k]===t.OPS.paintInlineImageXObject;case 3:return x[k]===t.OPS.restore}throw new Error(`iterateInlineImageGroup - invalid pos: ${n}`)},function(L,k){const B=L.fnArray,h=L.argsArray,c=L.iCurr,C=c-3,u=c-2,m=c-1,X=Math.min(Math.floor((k-C)/4),200);if(X<10)return k-(k-C)%4;let f=0;const F=[];let s=0,d=1,S=1;for(let v=0;v<X;v++){const R=h[u+(v<<2)],T=h[m+(v<<2)][0];d+T.width>1e3&&(f=Math.max(f,d),S+=s+2,d=0,s=0),F.push({transform:R,x:d,y:S,w:T.width,h:T.height}),d+=T.width+2,s=Math.max(s,T.height)}const r=Math.max(f,d)+1,o=S+s+1,A=new Uint8Array(r*o*4),p=r<<2;for(let v=0;v<X;v++){const R=h[m+(v<<2)][0].data,T=F[v].w<<2;let y=0,H=F[v].x+F[v].y*r<<2;A.set(R.subarray(0,T),H-p);for(let z=0,$=F[v].h;z<$;z++)A.set(R.subarray(y,y+T),H),y+=T,H+=p;for(A.set(R.subarray(y-T,y),H);H>=0;)R[H-4]=R[H],R[H-3]=R[H+1],R[H-2]=R[H+2],R[H-1]=R[H+3],R[H+T]=R[H+T-4],R[H+T+1]=R[H+T-3],R[H+T+2]=R[H+T-2],R[H+T+3]=R[H+T-1],H-=p}return B.splice(C,X*4,t.OPS.paintInlineImageXObjectGroup),h.splice(C,X*4,[{width:r,height:o,kind:t.ImageKind.RGBA_32BPP,data:A},F]),C+1}),i(O,[t.OPS.save,t.OPS.transform,t.OPS.paintImageMaskXObject,t.OPS.restore],null,function(L,k){const x=L.fnArray,g=L.iCurr-3,n=(k-g)%4;switch(n){case 0:return x[k]===t.OPS.save;case 1:return x[k]===t.OPS.transform;case 2:return x[k]===t.OPS.paintImageMaskXObject;case 3:return x[k]===t.OPS.restore}throw new Error(`iterateImageMaskGroup - invalid pos: ${n}`)},function(L,k){const I=L.fnArray,B=L.argsArray,h=L.iCurr,c=h-3,C=h-2,u=h-1;let m=Math.floor((k-c)/4);if(m<10)return k-(k-c)%4;let X=!1,f,F;const s=B[u][0],d=B[C][0],S=B[C][1],r=B[C][2],o=B[C][3];if(S===r){X=!0,f=C+4;let A=u+4;for(let p=1;p<m;p++,f+=4,A+=4)if(F=B[f],B[A][0]!==s||F[0]!==d||F[1]!==S||F[2]!==r||F[3]!==o){p<10?X=!1:m=p;break}}if(X){m=Math.min(m,1e3);const A=new Float32Array(m*2);f=C;for(let p=0;p<m;p++,f+=4)F=B[f],A[p<<1]=F[4],A[(p<<1)+1]=F[5];I.splice(c,m*4,t.OPS.paintImageMaskXObjectRepeat),B.splice(c,m*4,[s,d,S,r,o,A])}else{m=Math.min(m,100);const A=[];for(let p=0;p<m;p++){F=B[C+(p<<2)];const v=B[u+(p<<2)][0];A.push({data:v.data,width:v.width,height:v.height,interpolate:v.interpolate,count:v.count,transform:F})}I.splice(c,m*4,t.OPS.paintImageMaskXObjectGroup),B.splice(c,m*4,[A])}return c+1}),i(O,[t.OPS.save,t.OPS.transform,t.OPS.paintImageXObject,t.OPS.restore],function(D){const L=D.argsArray,k=D.iCurr-2;return L[k][1]===0&&L[k][2]===0},function(L,k){const x=L.fnArray,g=L.argsArray,n=L.iCurr-3,I=(k-n)%4;switch(I){case 0:return x[k]===t.OPS.save;case 1:if(x[k]!==t.OPS.transform)return!1;const B=L.iCurr-2,h=g[B][0],c=g[B][3];return!(g[k][0]!==h||g[k][1]!==0||g[k][2]!==0||g[k][3]!==c);case 2:if(x[k]!==t.OPS.paintImageXObject)return!1;const C=L.iCurr-1,u=g[C][0];return g[k][0]===u;case 3:return x[k]===t.OPS.restore}throw new Error(`iterateImageGroup - invalid pos: ${I}`)},function(D,L){const g=D.fnArray,n=D.argsArray,I=D.iCurr,B=I-3,h=I-2,c=I-1,C=n[c][0],u=n[h][0],m=n[h][3],X=Math.min(Math.floor((L-B)/4),1e3);if(X<3)return L-(L-B)%4;const f=new Float32Array(X*2);let F=h;for(let d=0;d<X;d++,F+=4){const S=n[F];f[d<<1]=S[4],f[(d<<1)+1]=S[5]}const s=[C,u,m,f];return g.splice(B,X*4,t.OPS.paintImageXObjectRepeat),n.splice(B,X*4,s),B+1}),i(O,[t.OPS.beginText,t.OPS.setFont,t.OPS.setTextMatrix,t.OPS.showText,t.OPS.endText],null,function(L,k){const x=L.fnArray,g=L.argsArray,n=L.iCurr-4,I=(k-n)%5;switch(I){case 0:return x[k]===t.OPS.beginText;case 1:return x[k]===t.OPS.setFont;case 2:return x[k]===t.OPS.setTextMatrix;case 3:if(x[k]!==t.OPS.showText)return!1;const B=L.iCurr-3,h=g[B][0],c=g[B][1];return!(g[k][0]!==h||g[k][1]!==c);case 4:return x[k]===t.OPS.endText}throw new Error(`iterateShowTextGroup - invalid pos: ${I}`)},function(D,L){const g=D.fnArray,n=D.argsArray,I=D.iCurr,B=I-4,h=I-3,c=I-2,C=I-1,u=I,m=n[h][0],X=n[h][1];let f=Math.min(Math.floor((L-B)/5),1e3);if(f<3)return L-(L-B)%5;let F=B;B>=4&&g[B-4]===g[h]&&g[B-3]===g[c]&&g[B-2]===g[C]&&g[B-1]===g[u]&&n[B-4][0]===m&&n[B-4][1]===X&&(f++,F-=5);let s=F+4;for(let d=1;d<f;d++)g.splice(s,3),n.splice(s,3),s+=2;return s+1});class P{constructor(L){this.queue=L}_optimize(){}push(L,k){this.queue.fnArray.push(L),this.queue.argsArray.push(k),this._optimize()}flush(){}reset(){}}class e extends P{constructor(L){super(L),this.state=null,this.context={iCurr:0,fnArray:L.fnArray,argsArray:L.argsArray},this.match=null,this.lastProcessed=0}_optimize(){const L=this.queue.fnArray;let k=this.lastProcessed,x=L.length,g=this.state,n=this.match;if(!g&&!n&&k+1===x&&!O[L[k]]){this.lastProcessed=x;return}const I=this.context;for(;k<x;){if(n){if((0,n.iterateFn)(I,k)){k++;continue}if(k=(0,n.processFn)(I,k+1),x=L.length,n=null,g=null,k>=x)break}if(g=(g||O)[L[k]],!g||Array.isArray(g)){k++;continue}if(I.iCurr=k,k++,g.checkFn&&!(0,g.checkFn)(I)){g=null;continue}n=g,g=null}this.state=g,this.match=n,this.lastProcessed=k}flush(){for(;this.match;){const L=this.queue.fnArray.length;this.lastProcessed=(0,this.match.processFn)(this.context,L),this.match=null,this.state=null,this._optimize()}}reset(){this.state=null,this.match=null,this.lastProcessed=0}}class N{static get CHUNK_SIZE(){return(0,t.shadow)(this,"CHUNK_SIZE",1e3)}static get CHUNK_SIZE_ABOUT(){return(0,t.shadow)(this,"CHUNK_SIZE_ABOUT",this.CHUNK_SIZE-5)}constructor(){let L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,k=arguments.length>1?arguments[1]:void 0;this._streamSink=k,this.fnArray=[],this.argsArray=[],k&&!(L&t.RenderingIntentFlag.OPLIST)?this.optimizer=new e(this):this.optimizer=new P(this),this.dependencies=new Set,this._totalLength=0,this.weight=0,this._resolved=k?null:Promise.resolve()}get length(){return this.argsArray.length}get ready(){return this._resolved||this._streamSink.ready}get totalLength(){return this._totalLength+this.length}addOp(L,k){this.optimizer.push(L,k),this.weight++,this._streamSink&&(this.weight>=N.CHUNK_SIZE?this.flush():this.weight>=N.CHUNK_SIZE_ABOUT&&(L===t.OPS.restore||L===t.OPS.endText)&&this.flush())}addImageOps(L,k,x){x!==void 0&&this.addOp(t.OPS.beginMarkedContentProps,["OC",x]),this.addOp(L,k),x!==void 0&&this.addOp(t.OPS.endMarkedContent,[])}addDependency(L){this.dependencies.has(L)||(this.dependencies.add(L),this.addOp(t.OPS.dependency,[L]))}addDependencies(L){for(const k of L)this.addDependency(k)}addOpList(L){if(!(L instanceof N)){(0,t.warn)('addOpList - ignoring invalid "opList" parameter.');return}for(const k of L.dependencies)this.dependencies.add(k);for(let k=0,x=L.length;k<x;k++)this.addOp(L.fnArray[k],L.argsArray[k])}getIR(){return{fnArray:this.fnArray,argsArray:this.argsArray,length:this.length}}get _transfers(){const L=[],{fnArray:k,argsArray:x,length:g}=this;for(let n=0;n<g;n++)switch(k[n]){case t.OPS.paintInlineImageXObject:case t.OPS.paintInlineImageXObjectGroup:case t.OPS.paintImageMaskXObject:const I=x[n][0];!I.cached&&I.data&&I.data.buffer instanceof ArrayBuffer&&L.push(I.data.buffer);break}return L}flush(){let L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.optimizer.flush();const x=this.length;this._totalLength+=x,this._streamSink.enqueue({fnArray:this.fnArray,argsArray:this.argsArray,lastChunk:L,separateAnnots:k,length:x},1,this._transfers),this.dependencies.clear(),this.fnArray.length=0,this.argsArray.length=0,this.weight=0,this.optimizer.reset()}}l.OperatorList=N},(he,l,w)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.PDFImage=void 0;var t=w(2),i=w(195),O=w(138),P=w(145),e=w(150),N=w(158),D=w(161),L=w(137);function k(n,I,B,h){return n=I+n*B,n<0?n=0:n>h&&(n=h),n}function x(n,I,B,h,c,C){const u=c*C;let m;I<=8?m=new Uint8Array(u):I<=16?m=new Uint16Array(u):m=new Uint32Array(u);const X=B/c,f=h/C;let F,s,d,S=0,r;const o=new Uint16Array(c),A=B;for(F=0;F<c;F++)o[F]=Math.floor(F*X);for(F=0;F<C;F++)for(d=Math.floor(F*f)*A,s=0;s<c;s++)r=d+o[s],m[S++]=n[r];return m}class g{constructor(I){let{xref:B,res:h,image:c,isInline:C=!1,smask:u=null,mask:m=null,isMask:X=!1,pdfFunctionFactory:f,localColorSpaceCache:F}=I;this.image=c;const s=c.dict,d=s.get("F","Filter");let S;if(d instanceof L.Name)S=d.name;else if(Array.isArray(d)){const p=B.fetchIfRef(d[0]);p instanceof L.Name&&(S=p.name)}switch(S){case"JPXDecode":const p=new D.JpxImage;p.parseImageProperties(c.stream),c.stream.reset(),c.width=p.width,c.height=p.height,c.bitsPerComponent=p.bitsPerComponent,c.numComps=p.componentsCount;break;case"JBIG2Decode":c.bitsPerComponent=1,c.numComps=1;break}let r=s.get("W","Width"),o=s.get("H","Height");if(Number.isInteger(c.width)&&c.width>0&&Number.isInteger(c.height)&&c.height>0&&(c.width!==r||c.height!==o)&&((0,t.warn)("PDFImage - using the Width/Height of the image data, rather than the image dictionary."),r=c.width,o=c.height),r<1||o<1)throw new t.FormatError(`Invalid image width: ${r} or height: ${o}`);this.width=r,this.height=o,this.interpolate=s.get("I","Interpolate"),this.imageMask=s.get("IM","ImageMask")||!1,this.matte=s.get("Matte")||!1;let A=c.bitsPerComponent;if(!A&&(A=s.get("BPC","BitsPerComponent"),!A))if(this.imageMask)A=1;else throw new t.FormatError(`Bits per component missing in image: ${this.imageMask}`);if(this.bpc=A,!this.imageMask){let p=s.getRaw("CS")||s.getRaw("ColorSpace");if(!p)switch((0,t.info)("JPX images (which do not require color spaces)"),c.numComps){case 1:p=L.Name.get("DeviceGray");break;case 3:p=L.Name.get("DeviceRGB");break;case 4:p=L.Name.get("DeviceCMYK");break;default:throw new Error(`JPX images with ${c.numComps} color components not supported.`)}this.colorSpace=P.ColorSpace.parse({cs:p,xref:B,resources:C?h:null,pdfFunctionFactory:f,localColorSpaceCache:F}),this.numComps=this.colorSpace.numComps}if(this.decode=s.getArray("D","Decode"),this.needsDecode=!1,this.decode&&(this.colorSpace&&!this.colorSpace.isDefaultDecode(this.decode,A)||X&&!P.ColorSpace.isDefaultDecode(this.decode,1))){this.needsDecode=!0;const p=(1<<A)-1;this.decodeCoefficients=[],this.decodeAddends=[];const v=this.colorSpace&&this.colorSpace.name==="Indexed";for(let R=0,T=0;R<this.decode.length;R+=2,++T){const y=this.decode[R],H=this.decode[R+1];this.decodeCoefficients[T]=v?(H-y)/p:H-y,this.decodeAddends[T]=v?y:p*y}}u?this.smask=new g({xref:B,res:h,image:u,isInline:C,pdfFunctionFactory:f,localColorSpaceCache:F}):m&&(m instanceof O.BaseStream?m.dict.get("IM","ImageMask")?this.mask=new g({xref:B,res:h,image:m,isInline:C,isMask:!0,pdfFunctionFactory:f,localColorSpaceCache:F}):(0,t.warn)("Ignoring /Mask in image without /ImageMask."):this.mask=m)}static async buildImage(I){let{xref:B,res:h,image:c,isInline:C=!1,pdfFunctionFactory:u,localColorSpaceCache:m}=I;const X=c;let f=null,F=null;const s=c.dict.get("SMask"),d=c.dict.get("Mask");return s?s instanceof O.BaseStream?f=s:(0,t.warn)("Unsupported /SMask format."):d&&(d instanceof O.BaseStream||Array.isArray(d)?F=d:(0,t.warn)("Unsupported /Mask format.")),new g({xref:B,res:h,image:X,isInline:C,smask:f,mask:F,pdfFunctionFactory:u,localColorSpaceCache:m})}static createRawMask(I){let{imgArray:B,width:h,height:c,imageIsFromDecodeStream:C,inverseDecode:u,interpolate:m}=I;const X=(h+7>>3)*c,f=B.byteLength,F=X===f;let s,d;if(C&&(!u||F)?s=B:u?(s=new Uint8Array(X),s.set(B),s.fill(255,f)):s=new Uint8Array(B),u)for(d=0;d<f;d++)s[d]^=255;return{data:s,width:h,height:c,interpolate:m}}static createMask(I){let{imgArray:B,width:h,height:c,imageIsFromDecodeStream:C,inverseDecode:u,interpolate:m,isOffscreenCanvasSupported:X=!0}=I;const f=h===1&&c===1&&u===(B.length===0||!!(B[0]&128));if(f)return{isSingleOpaquePixel:f};if(X&&t.FeatureTest.isOffscreenCanvasSupported){const F=new OffscreenCanvas(h,c),s=F.getContext("2d"),d=s.createImageData(h,c);(0,i.applyMaskImageData)({src:B,dest:d.data,width:h,height:c,inverseDecode:u}),s.putImageData(d,0,0);const S=F.transferToImageBitmap();return{data:null,width:h,height:c,interpolate:m,bitmap:S}}return this.createRawMask({imgArray:B,width:h,height:c,inverseDecode:u,imageIsFromDecodeStream:C,interpolate:m})}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(I){const B=this.bpc,h=this.numComps,c=this.decodeAddends,C=this.decodeCoefficients,u=(1<<B)-1;let m,X;if(B===1){for(m=0,X=I.length;m<X;m++)I[m]=+!I[m];return}let f=0;for(m=0,X=this.width*this.height;m<X;m++)for(let F=0;F<h;F++)I[f]=k(I[f],c[F],C[F],u),f++}getComponents(I){const B=this.bpc;if(B===8)return I;const h=this.width,c=this.height,C=this.numComps,u=h*c*C;let m=0,X;B<=8?X=new Uint8Array(u):B<=16?X=new Uint16Array(u):X=new Uint32Array(u);const f=h*C,F=(1<<B)-1;let s=0,d,S;if(B===1){let r,o,A;for(let p=0;p<c;p++){for(o=s+(f&-8),A=s+f;s<o;)S=I[m++],X[s]=S>>7&1,X[s+1]=S>>6&1,X[s+2]=S>>5&1,X[s+3]=S>>4&1,X[s+4]=S>>3&1,X[s+5]=S>>2&1,X[s+6]=S>>1&1,X[s+7]=S&1,s+=8;if(s<A)for(S=I[m++],r=128;s<A;)X[s++]=+!!(S&r),r>>=1}}else{let r=0;for(S=0,s=0,d=u;s<d;++s){for(s%f===0&&(S=0,r=0);r<B;)S=S<<8|I[m++],r+=8;const o=r-B;let A=S>>o;A<0?A=0:A>F&&(A=F),X[s]=A,S&=(1<<o)-1,r=o}}return X}fillOpacity(I,B,h,c,C){const u=this.smask,m=this.mask;let X,f,F,s,d,S;if(u)f=u.width,F=u.height,X=new Uint8ClampedArray(f*F),u.fillGrayBuffer(X),(f!==B||F!==h)&&(X=x(X,u.bpc,f,F,B,h));else if(m)if(m instanceof g){for(f=m.width,F=m.height,X=new Uint8ClampedArray(f*F),m.numComps=1,m.fillGrayBuffer(X),s=0,d=f*F;s<d;++s)X[s]=255-X[s];(f!==B||F!==h)&&(X=x(X,m.bpc,f,F,B,h))}else if(Array.isArray(m)){X=new Uint8ClampedArray(B*h);const r=this.numComps;for(s=0,d=B*h;s<d;++s){let o=0;const A=s*r;for(S=0;S<r;++S){const p=C[A+S],v=S*2;if(p<m[v]||p>m[v+1]){o=255;break}}X[s]=o}}else throw new t.FormatError("Unknown mask format.");if(X)for(s=0,S=3,d=B*c;s<d;++s,S+=4)I[S]=X[s];else for(s=0,S=3,d=B*c;s<d;++s,S+=4)I[S]=255}undoPreblend(I,B,h){const c=this.smask&&this.smask.matte;if(!c)return;const C=this.colorSpace.getRgb(c,0),u=C[0],m=C[1],X=C[2],f=B*h*4;for(let F=0;F<f;F+=4){const s=I[F+3];if(s===0){I[F]=255,I[F+1]=255,I[F+2]=255;continue}const d=255/s;I[F]=(I[F]-u)*d+u,I[F+1]=(I[F+1]-m)*d+m,I[F+2]=(I[F+2]-X)*d+X}}createImageData(){let I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const B=this.drawWidth,h=this.drawHeight,c={width:B,height:h,interpolate:this.interpolate,kind:0,data:null},C=this.numComps,u=this.width,m=this.height,X=this.bpc,f=u*C*X+7>>3;if(!I){let o;if(this.colorSpace.name==="DeviceGray"&&X===1?o=t.ImageKind.GRAYSCALE_1BPP:this.colorSpace.name==="DeviceRGB"&&X===8&&!this.needsDecode&&(o=t.ImageKind.RGB_24BPP),o&&!this.smask&&!this.mask&&B===u&&h===m){if(c.kind=o,c.data=this.getImageBytes(m*f,{}),this.needsDecode){(0,t.assert)(o===t.ImageKind.GRAYSCALE_1BPP,"PDFImage.createImageData: The image must be grayscale.");const A=c.data;for(let p=0,v=A.length;p<v;p++)A[p]^=255}return c}if(this.image instanceof N.JpegStream&&!this.smask&&!this.mask){let A=m*f;switch(this.colorSpace.name){case"DeviceGray":A*=3;case"DeviceRGB":case"DeviceCMYK":return c.kind=t.ImageKind.RGB_24BPP,c.data=this.getImageBytes(A,{drawWidth:B,drawHeight:h,forceRGB:!0}),c}}}const F=this.getImageBytes(m*f,{internal:!0}),s=0|F.length/f*h/m,d=this.getComponents(F);let S,r;return!I&&!this.smask&&!this.mask?(c.kind=t.ImageKind.RGB_24BPP,c.data=new Uint8ClampedArray(B*h*3),S=0,r=!1):(c.kind=t.ImageKind.RGBA_32BPP,c.data=new Uint8ClampedArray(B*h*4),S=1,r=!0,this.fillOpacity(c.data,B,h,s,d)),this.needsDecode&&this.decodeBuffer(d),this.colorSpace.fillRgb(c.data,u,m,B,h,s,X,d,S),r&&this.undoPreblend(c.data,B,s),c}fillGrayBuffer(I){const B=this.numComps;if(B!==1)throw new t.FormatError(`Reading gray scale from a color image: ${B}`);const h=this.width,c=this.height,C=this.bpc,u=h*B*C+7>>3,m=this.getImageBytes(c*u,{internal:!0}),X=this.getComponents(m);let f,F;if(C===1){if(F=h*c,this.needsDecode)for(f=0;f<F;++f)I[f]=X[f]-1&255;else for(f=0;f<F;++f)I[f]=-X[f]&255;return}this.needsDecode&&this.decodeBuffer(X),F=h*c;const s=255/((1<<C)-1);for(f=0;f<F;++f)I[f]=s*X[f]}getImageBytes(I,B){let{drawWidth:h,drawHeight:c,forceRGB:C=!1,internal:u=!1}=B;this.image.reset(),this.image.drawWidth=h||this.width,this.image.drawHeight=c||this.height,this.image.forceRGB=!!C;const m=this.image.getBytes(I);return u||this.image instanceof e.DecodeStream?m:((0,t.assert)(m instanceof Uint8Array,'PDFImage.getImageBytes: Unsupported "imageBytes" type.'),new Uint8Array(m))}}l.PDFImage=g},(he,l,w)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.applyMaskImageData=i;var t=w(2);function i(O){let{src:P,srcPos:e=0,dest:N,destPos:D=0,width:L,height:k,inverseDecode:x=!1}=O;const g=t.FeatureTest.isLittleEndian?4278190080:255,[n,I]=x?[0,g]:[g,0],B=L>>3,h=L&7,c=P.length;N=new Uint32Array(N.buffer);for(let C=0;C<k;C++){for(const m=e+B;e<m;e++){const X=e<c?P[e]:255;N[D++]=X&128?I:n,N[D++]=X&64?I:n,N[D++]=X&32?I:n,N[D++]=X&16?I:n,N[D++]=X&8?I:n,N[D++]=X&4?I:n,N[D++]=X&2?I:n,N[D++]=X&1?I:n}if(h===0)continue;const u=e<c?P[e++]:255;for(let m=0;m<h;m++)N[D++]=u&1<<7-m?I:n}return{srcPos:e,destPos:D}}},(he,l,w)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.incrementalUpdate=u,l.writeDict=L,l.writeObject=D;var t=w(2),i=w(137),O=w(136),P=w(197),e=w(138),N=w(198);function D(m,X,f,F){f.push(`${m.num} ${m.gen} obj
`),X instanceof i.Dict?L(X,f,F):X instanceof e.BaseStream&&k(X,f,F),f.push(`
endobj
`)}function L(m,X,f){X.push("<<");for(const F of m.getKeys())X.push(` /${(0,O.escapePDFName)(F)} `),g(m.getRaw(F),X,f);X.push(">>")}function k(m,X,f){let F=m.getString();f!==null&&(F=f.encryptString(F)),m.dict.set("Length",F.length),L(m.dict,X,f),X.push(` stream
`,F,`
endstream`)}function x(m,X,f){X.push("[");let F=!0;for(const s of m)F?F=!1:X.push(" "),g(s,X,f);X.push("]")}function g(m,X,f){m instanceof i.Name?X.push(`/${(0,O.escapePDFName)(m.name)}`):m instanceof i.Ref?X.push(`${m.num} ${m.gen} R`):Array.isArray(m)?x(m,X,f):typeof m=="string"?(f!==null&&(m=f.encryptString(m)),X.push(`(${(0,O.escapeString)(m)})`)):typeof m=="number"?X.push((0,O.numberToString)(m)):typeof m=="boolean"?X.push(m.toString()):m instanceof i.Dict?L(m,X,f):m instanceof e.BaseStream?k(m,X,f):m===null?X.push("null"):(0,t.warn)(`Unhandled value in writer: ${typeof m}, please file a bug.`)}function n(m,X,f,F){for(let s=X+f-1;s>f-1;s--)F[s]=m&255,m>>=8;return f+X}function I(m,X,f){for(let F=0,s=m.length;F<s;F++)f[X+F]=m.charCodeAt(F)&255}function B(m,X){const f=Math.floor(Date.now()/1e3),F=X.filename||"",s=[f.toString(),F,m.toString()];let d=s.reduce((o,A)=>o+A.length,0);for(const o of Object.values(X.info))s.push(o),d+=o.length;const S=new Uint8Array(d);let r=0;for(const o of s)I(o,r,S),r+=o.length;return(0,t.bytesToString)((0,N.calculateMD5)(S))}function h(m,X){const f=new P.SimpleXMLParser({hasAttributes:!0}).parseFromString(m);for(const{xfa:s}of X){if(!s)continue;const{path:d,value:S}=s;if(!d)continue;const r=(0,O.parseXFAPath)(d);let o=f.documentElement.searchNode(r,0);!o&&r.length>1&&(o=f.documentElement.searchNode([r.at(-1)],0)),o?Array.isArray(S)?o.childNodes=S.map(A=>new P.SimpleDOMNode("value",A)):o.childNodes=[new P.SimpleDOMNode("#text",S)]:(0,t.warn)(`Node not found for path: ${d}`)}const F=[];return f.documentElement.dump(F),F.join("")}function c(m){let{xref:X,acroForm:f,acroFormRef:F,hasXfa:s,hasXfaDatasetsEntry:d,xfaDatasetsRef:S,needAppearances:r,newRefs:o}=m;if(s&&!d&&!S&&(0,t.warn)("XFA - Cannot save it"),!r&&(!s||!S))return;const A=new i.Dict(X);for(const T of f.getKeys())A.set(T,f.getRaw(T));if(s&&!d){const T=f.get("XFA").slice();T.splice(2,0,"datasets"),T.splice(3,0,S),A.set("XFA",T)}r&&A.set("NeedAppearances",!0);const p=X.encrypt;let v=null;p&&(v=p.createCipherTransform(F.num,F.gen));const R=[];D(F,A,R,v),o.push({ref:F,data:R.join("")})}function C(m){let{xfaData:X,xfaDatasetsRef:f,newRefs:F,xref:s}=m;if(X===null){const r=s.fetchIfRef(f);X=h(r.getString(),F)}const d=s.encrypt;d&&(X=d.createCipherTransform(f.num,f.gen).encryptString(X));const S=`${f.num} ${f.gen} obj
<< /Type /EmbeddedFile /Length ${X.length}>>
stream
`+X+`
endstream
endobj
`;F.push({ref:f,data:S})}function u(m){let{originalData:X,xrefInfo:f,newRefs:F,xref:s=null,hasXfa:d=!1,xfaDatasetsRef:S=null,hasXfaDatasetsEntry:r=!1,needAppearances:o,acroFormRef:A=null,acroForm:p=null,xfaData:v=null}=m;c({xref:s,acroForm:p,acroFormRef:A,hasXfa:d,hasXfaDatasetsEntry:r,xfaDatasetsRef:S,needAppearances:o,newRefs:F}),d&&C({xfaData:v,xfaDatasetsRef:S,newRefs:F,xref:s});const R=new i.Dict(null),T=f.newRef;let y,H;const z=X.at(-1);z===10||z===13?(y=[],H=X.length):(y=[`
`],H=X.length+1),R.set("Size",T.num+1),R.set("Prev",f.startXRef),R.set("Type",i.Name.get("XRef")),f.rootRef!==null&&R.set("Root",f.rootRef),f.infoRef!==null&&R.set("Info",f.infoRef),f.encryptRef!==null&&R.set("Encrypt",f.encryptRef),F.push({ref:T,data:""}),F=F.sort((M,_)=>M.ref.num-_.ref.num);const $=[[0,1,65535]],j=[0,1];let V=0;for(const{ref:M,data:_}of F)V=Math.max(V,H),$.push([1,H,Math.min(M.gen,65535)]),H+=_.length,j.push(M.num,1),y.push(_);if(R.set("Index",j),Array.isArray(f.fileIds)&&f.fileIds.length>0){const M=B(H,f);R.set("ID",[f.fileIds[0],M])}const U=[1,Math.ceil(Math.log2(V)/8),2],Y=(U[0]+U[1]+U[2])*$.length;R.set("W",U),R.set("Length",Y),y.push(`${T.num} ${T.gen} obj
`),L(R,y,null),y.push(` stream
`);const oe=y.reduce((M,_)=>M+_.length,0),se=`
endstream
endobj
startxref
${H}
%%EOF
`,Q=new Uint8Array(X.length+oe+Y+se.length);Q.set(X);let E=X.length;for(const M of y)I(M,E,Q),E+=M.length;for(const[M,_,J]of $)E=n(M,U[0],E,Q),E=n(_,U[1],E,Q),E=n(J,U[2],E,Q);return I(se,E,Q),Q}},(he,l,w)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.XMLParserErrorCode=l.XMLParserBase=l.SimpleXMLParser=l.SimpleDOMNode=void 0;var t=w(136);const i={NoError:0,EndOfDocument:-1,UnterminatedCdat:-2,UnterminatedXmlDeclaration:-3,UnterminatedDoctypeDeclaration:-4,UnterminatedComment:-5,MalformedElement:-6,OutOfMemory:-7,UnterminatedAttributeValue:-8,UnterminatedElement:-9,ElementNeverBegun:-10};l.XMLParserErrorCode=i;function O(L,k){const x=L[k];return x===" "||x===`
`||x==="\r"||x===" "}function P(L){for(let k=0,x=L.length;k<x;k++)if(!O(L,k))return!1;return!0}class e{_resolveEntities(k){return k.replace(/&([^;]+);/g,(x,g)=>{if(g.substring(0,2)==="#x")return String.fromCodePoint(parseInt(g.substring(2),16));if(g.substring(0,1)==="#")return String.fromCodePoint(parseInt(g.substring(1),10));switch(g){case"lt":return"<";case"gt":return">";case"amp":return"&";case"quot":return'"';case"apos":return"'"}return this.onResolveEntity(g)})}_parseContent(k,x){const g=[];let n=x;function I(){for(;n<k.length&&O(k,n);)++n}for(;n<k.length&&!O(k,n)&&k[n]!==">"&&k[n]!=="/";)++n;const B=k.substring(x,n);for(I();n<k.length&&k[n]!==">"&&k[n]!=="/"&&k[n]!=="?";){I();let h="",c="";for(;n<k.length&&!O(k,n)&&k[n]!=="=";)h+=k[n],++n;if(I(),k[n]!=="=")return null;++n,I();const C=k[n];if(C!=='"'&&C!=="'")return null;const u=k.indexOf(C,++n);if(u<0)return null;c=k.substring(n,u),g.push({name:h,value:this._resolveEntities(c)}),n=u+1,I()}return{name:B,attributes:g,parsed:n-x}}_parseProcessingInstruction(k,x){let g=x;function n(){for(;g<k.length&&O(k,g);)++g}for(;g<k.length&&!O(k,g)&&k[g]!==">"&&k[g]!=="?"&&k[g]!=="/";)++g;const I=k.substring(x,g);n();const B=g;for(;g<k.length&&(k[g]!=="?"||k[g+1]!==">");)++g;const h=k.substring(B,g);return{name:I,value:h,parsed:g-x}}parseXml(k){let x=0;for(;x<k.length;){const g=k[x];let n=x;if(g==="<"){++n;const I=k[n];let B;switch(I){case"/":if(++n,B=k.indexOf(">",n),B<0){this.onError(i.UnterminatedElement);return}this.onEndElement(k.substring(n,B)),n=B+1;break;case"?":++n;const h=this._parseProcessingInstruction(k,n);if(k.substring(n+h.parsed,n+h.parsed+2)!=="?>"){this.onError(i.UnterminatedXmlDeclaration);return}this.onPi(h.name,h.value),n+=h.parsed+2;break;case"!":if(k.substring(n+1,n+3)==="--"){if(B=k.indexOf("-->",n+3),B<0){this.onError(i.UnterminatedComment);return}this.onComment(k.substring(n+3,B)),n=B+3}else if(k.substring(n+1,n+8)==="[CDATA["){if(B=k.indexOf("]]>",n+8),B<0){this.onError(i.UnterminatedCdat);return}this.onCdata(k.substring(n+8,B)),n=B+3}else if(k.substring(n+1,n+8)==="DOCTYPE"){const u=k.indexOf("[",n+8);let m=!1;if(B=k.indexOf(">",n+8),B<0){this.onError(i.UnterminatedDoctypeDeclaration);return}if(u>0&&B>u){if(B=k.indexOf("]>",n+8),B<0){this.onError(i.UnterminatedDoctypeDeclaration);return}m=!0}const X=k.substring(n+8,B+(m?1:0));this.onDoctype(X),n=B+(m?2:1)}else{this.onError(i.MalformedElement);return}break;default:const c=this._parseContent(k,n);if(c===null){this.onError(i.MalformedElement);return}let C=!1;if(k.substring(n+c.parsed,n+c.parsed+2)==="/>")C=!0;else if(k.substring(n+c.parsed,n+c.parsed+1)!==">"){this.onError(i.UnterminatedElement);return}this.onBeginElement(c.name,c.attributes,C),n+=c.parsed+(C?2:1);break}}else{for(;n<k.length&&k[n]!=="<";)n++;const I=k.substring(x,n);this.onText(this._resolveEntities(I))}x=n}}onResolveEntity(k){return`&${k};`}onPi(k,x){}onComment(k){}onCdata(k){}onDoctype(k){}onText(k){}onBeginElement(k,x,g){}onEndElement(k){}onError(k){}}l.XMLParserBase=e;class N{constructor(k,x){this.nodeName=k,this.nodeValue=x,Object.defineProperty(this,"parentNode",{value:null,writable:!0})}get firstChild(){return this.childNodes&&this.childNodes[0]}get nextSibling(){const k=this.parentNode.childNodes;if(!k)return;const x=k.indexOf(this);if(x!==-1)return k[x+1]}get textContent(){return this.childNodes?this.childNodes.map(function(k){return k.textContent}).join(""):this.nodeValue||""}get children(){return this.childNodes||[]}hasChildNodes(){return this.childNodes&&this.childNodes.length>0}searchNode(k,x){if(x>=k.length)return this;const g=k[x],n=[];let I=this;for(;;){if(g.name===I.nodeName)if(g.pos===0){const B=I.searchNode(k,x+1);if(B!==null)return B}else{if(n.length===0)return null;{const[B]=n.pop();let h=0;for(const c of B.childNodes)if(g.name===c.nodeName){if(h===g.pos)return c.searchNode(k,x+1);h++}return I.searchNode(k,x+1)}}if(I.childNodes&&I.childNodes.length!==0)n.push([I,0]),I=I.childNodes[0];else{if(n.length===0)return null;for(;n.length!==0;){const[B,h]=n.pop(),c=h+1;if(c<B.childNodes.length){n.push([B,c]),I=B.childNodes[c];break}}if(n.length===0)return null}}}dump(k){if(this.nodeName==="#text"){k.push((0,t.encodeToXmlString)(this.nodeValue));return}if(k.push(`<${this.nodeName}`),this.attributes)for(const x of this.attributes)k.push(` ${x.name}="${(0,t.encodeToXmlString)(x.value)}"`);if(this.hasChildNodes()){k.push(">");for(const x of this.childNodes)x.dump(k);k.push(`</${this.nodeName}>`)}else this.nodeValue?k.push(`>${(0,t.encodeToXmlString)(this.nodeValue)}</${this.nodeName}>`):k.push("/>")}}l.SimpleDOMNode=N;class D extends e{constructor(k){let{hasAttributes:x=!1,lowerCaseName:g=!1}=k;super(),this._currentFragment=null,this._stack=null,this._errorCode=i.NoError,this._hasAttributes=x,this._lowerCaseName=g}parseFromString(k){if(this._currentFragment=[],this._stack=[],this._errorCode=i.NoError,this.parseXml(k),this._errorCode!==i.NoError)return;const[x]=this._currentFragment;if(x)return{documentElement:x}}onText(k){if(P(k))return;const x=new N("#text",k);this._currentFragment.push(x)}onCdata(k){const x=new N("#text",k);this._currentFragment.push(x)}onBeginElement(k,x,g){this._lowerCaseName&&(k=k.toLowerCase());const n=new N(k);n.childNodes=[],this._hasAttributes&&(n.attributes=x),this._currentFragment.push(n),!g&&(this._stack.push(this._currentFragment),this._currentFragment=n.childNodes)}onEndElement(k){this._currentFragment=this._stack.pop()||[];const x=this._currentFragment.at(-1);if(!x)return null;for(const g of x.childNodes)g.parentNode=x;return x}onError(k){this._errorCode=k}}l.SimpleXMLParser=D},(he,l,w)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.calculateSHA256=l.calculateMD5=l.PDF20=l.PDF17=l.CipherTransformFactory=l.ARCFourCipher=l.AES256Cipher=l.AES128Cipher=void 0,l.calculateSHA384=k,l.calculateSHA512=void 0;var t=w(2),i=w(137),O=w(199);class P{constructor(m){this.a=0,this.b=0;const X=new Uint8Array(256),f=m.length;for(let F=0;F<256;++F)X[F]=F;for(let F=0,s=0;F<256;++F){const d=X[F];s=s+d+m[F%f]&255,X[F]=X[s],X[s]=d}this.s=X}encryptBlock(m){let X=this.a,f=this.b;const F=this.s,s=m.length,d=new Uint8Array(s);for(let S=0;S<s;++S){X=X+1&255;const r=F[X];f=f+r&255;const o=F[f];F[X]=o,F[f]=r,d[S]=m[S]^F[r+o&255]}return this.a=X,this.b=f,d}decryptBlock(m){return this.encryptBlock(m)}encrypt(m){return this.encryptBlock(m)}}l.ARCFourCipher=P;const e=function(){const m=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]),X=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(F,s,d){let S=1732584193,r=-271733879,o=-1732584194,A=271733878;const p=d+72&-64,v=new Uint8Array(p);let R,T;for(R=0;R<d;++R)v[R]=F[s++];v[R++]=128;const y=p-8;for(;R<y;)v[R++]=0;v[R++]=d<<3&255,v[R++]=d>>5&255,v[R++]=d>>13&255,v[R++]=d>>21&255,v[R++]=d>>>29&255,v[R++]=0,v[R++]=0,v[R++]=0;const H=new Int32Array(16);for(R=0;R<p;){for(T=0;T<16;++T,R+=4)H[T]=v[R]|v[R+1]<<8|v[R+2]<<16|v[R+3]<<24;let z=S,$=r,j=o,V=A,ee,U;for(T=0;T<64;++T){T<16?(ee=$&j|~$&V,U=T):T<32?(ee=V&$|~V&j,U=5*T+1&15):T<48?(ee=$^j^V,U=3*T+5&15):(ee=j^($|~V),U=7*T&15);const G=V,Y=z+ee+X[T]+H[U]|0,oe=m[T];V=j,j=$,$=$+(Y<<oe|Y>>>32-oe)|0,z=G}S=S+z|0,r=r+$|0,o=o+j|0,A=A+V|0}return new Uint8Array([S&255,S>>8&255,S>>16&255,S>>>24&255,r&255,r>>8&255,r>>16&255,r>>>24&255,o&255,o>>8&255,o>>16&255,o>>>24&255,A&255,A>>8&255,A>>16&255,A>>>24&255])}return f}();l.calculateMD5=e;class N{constructor(m,X){this.high=m|0,this.low=X|0}and(m){this.high&=m.high,this.low&=m.low}xor(m){this.high^=m.high,this.low^=m.low}or(m){this.high|=m.high,this.low|=m.low}shiftRight(m){m>=32?(this.low=this.high>>>m-32|0,this.high=0):(this.low=this.low>>>m|this.high<<32-m,this.high=this.high>>>m|0)}shiftLeft(m){m>=32?(this.high=this.low<<m-32,this.low=0):(this.high=this.high<<m|this.low>>>32-m,this.low<<=m)}rotateRight(m){let X,f;m&32?(f=this.low,X=this.high):(X=this.low,f=this.high),m&=31,this.low=X>>>m|f<<32-m,this.high=f>>>m|X<<32-m}not(){this.high=~this.high,this.low=~this.low}add(m){const X=(this.low>>>0)+(m.low>>>0);let f=(this.high>>>0)+(m.high>>>0);X>4294967295&&(f+=1),this.low=X|0,this.high=f|0}copyTo(m,X){m[X]=this.high>>>24&255,m[X+1]=this.high>>16&255,m[X+2]=this.high>>8&255,m[X+3]=this.high&255,m[X+4]=this.low>>>24&255,m[X+5]=this.low>>16&255,m[X+6]=this.low>>8&255,m[X+7]=this.low&255}assign(m){this.high=m.high,this.low=m.low}}const D=function(){function m(A,p){return A>>>p|A<<32-p}function X(A,p,v){return A&p^~A&v}function f(A,p,v){return A&p^A&v^p&v}function F(A){return m(A,2)^m(A,13)^m(A,22)}function s(A){return m(A,6)^m(A,11)^m(A,25)}function d(A){return m(A,7)^m(A,18)^A>>>3}function S(A){return m(A,17)^m(A,19)^A>>>10}const r=[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 o(A,p,v){let R=1779033703,T=3144134277,y=1013904242,H=2773480762,z=1359893119,$=2600822924,j=528734635,V=1541459225;const ee=Math.ceil((v+9)/64)*64,U=new Uint8Array(ee);let G,Y;for(G=0;G<v;++G)U[G]=A[p++];U[G++]=128;const oe=ee-8;for(;G<oe;)U[G++]=0;U[G++]=0,U[G++]=0,U[G++]=0,U[G++]=v>>>29&255,U[G++]=v>>21&255,U[G++]=v>>13&255,U[G++]=v>>5&255,U[G++]=v<<3&255;const se=new Uint32Array(64);for(G=0;G<ee;){for(Y=0;Y<16;++Y)se[Y]=U[G]<<24|U[G+1]<<16|U[G+2]<<8|U[G+3],G+=4;for(Y=16;Y<64;++Y)se[Y]=S(se[Y-2])+se[Y-7]+d(se[Y-15])+se[Y-16]|0;let Q=R,E=T,M=y,_=H,J=z,K=$,te=j,Z=V,ce,ne;for(Y=0;Y<64;++Y)ce=Z+s(J)+X(J,K,te)+r[Y]+se[Y],ne=F(Q)+f(Q,E,M),Z=te,te=K,K=J,J=_+ce|0,_=M,M=E,E=Q,Q=ce+ne|0;R=R+Q|0,T=T+E|0,y=y+M|0,H=H+_|0,z=z+J|0,$=$+K|0,j=j+te|0,V=V+Z|0}return new Uint8Array([R>>24&255,R>>16&255,R>>8&255,R&255,T>>24&255,T>>16&255,T>>8&255,T&255,y>>24&255,y>>16&255,y>>8&255,y&255,H>>24&255,H>>16&255,H>>8&255,H&255,z>>24&255,z>>16&255,z>>8&255,z&255,$>>24&255,$>>16&255,$>>8&255,$&255,j>>24&255,j>>16&255,j>>8&255,j&255,V>>24&255,V>>16&255,V>>8&255,V&255])}return o}();l.calculateSHA256=D;const L=function(){function m(o,A,p,v,R){o.assign(A),o.and(p),R.assign(A),R.not(),R.and(v),o.xor(R)}function X(o,A,p,v,R){o.assign(A),o.and(p),R.assign(A),R.and(v),o.xor(R),R.assign(p),R.and(v),o.xor(R)}function f(o,A,p){o.assign(A),o.rotateRight(28),p.assign(A),p.rotateRight(34),o.xor(p),p.assign(A),p.rotateRight(39),o.xor(p)}function F(o,A,p){o.assign(A),o.rotateRight(14),p.assign(A),p.rotateRight(18),o.xor(p),p.assign(A),p.rotateRight(41),o.xor(p)}function s(o,A,p){o.assign(A),o.rotateRight(1),p.assign(A),p.rotateRight(8),o.xor(p),p.assign(A),p.shiftRight(7),o.xor(p)}function d(o,A,p){o.assign(A),o.rotateRight(19),p.assign(A),p.rotateRight(61),o.xor(p),p.assign(A),p.shiftRight(6),o.xor(p)}const S=[new N(1116352408,3609767458),new N(1899447441,602891725),new N(3049323471,3964484399),new N(3921009573,2173295548),new N(961987163,4081628472),new N(1508970993,3053834265),new N(2453635748,2937671579),new N(2870763221,3664609560),new N(3624381080,2734883394),new N(310598401,1164996542),new N(607225278,1323610764),new N(1426881987,3590304994),new N(1925078388,4068182383),new N(2162078206,991336113),new N(2614888103,633803317),new N(3248222580,3479774868),new N(3835390401,2666613458),new N(4022224774,944711139),new N(264347078,2341262773),new N(604807628,2007800933),new N(770255983,1495990901),new N(1249150122,1856431235),new N(1555081692,3175218132),new N(1996064986,2198950837),new N(2554220882,3999719339),new N(2821834349,766784016),new N(2952996808,2566594879),new N(3210313671,3203337956),new N(3336571891,1034457026),new N(3584528711,2466948901),new N(113926993,3758326383),new N(338241895,168717936),new N(666307205,1188179964),new N(773529912,1546045734),new N(1294757372,1522805485),new N(1396182291,2643833823),new N(1695183700,2343527390),new N(1986661051,1014477480),new N(2177026350,1206759142),new N(2456956037,344077627),new N(2730485921,1290863460),new N(2820302411,3158454273),new N(3259730800,3505952657),new N(3345764771,106217008),new N(3516065817,3606008344),new N(3600352804,1432725776),new N(4094571909,1467031594),new N(275423344,851169720),new N(430227734,3100823752),new N(506948616,1363258195),new N(659060556,3750685593),new N(883997877,3785050280),new N(958139571,3318307427),new N(1322822218,3812723403),new N(1537002063,2003034995),new N(1747873779,3602036899),new N(1955562222,1575990012),new N(2024104815,1125592928),new N(2227730452,2716904306),new N(2361852424,442776044),new N(2428436474,593698344),new N(2756734187,3733110249),new N(3204031479,2999351573),new N(3329325298,3815920427),new N(3391569614,3928383900),new N(3515267271,566280711),new N(3940187606,3454069534),new N(4118630271,4000239992),new N(116418474,1914138554),new N(174292421,2731055270),new N(289380356,3203993006),new N(460393269,320620315),new N(685471733,587496836),new N(852142971,1086792851),new N(1017036298,365543100),new N(1126000580,2618297676),new N(1288033470,3409855158),new N(1501505948,4234509866),new N(1607167915,987167468),new N(1816402316,1246189591)];function r(o,A,p){let v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,R,T,y,H,z,$,j,V;v?(R=new N(3418070365,3238371032),T=new N(1654270250,914150663),y=new N(2438529370,812702999),H=new N(355462360,4144912697),z=new N(1731405415,4290775857),$=new N(2394180231,1750603025),j=new N(3675008525,1694076839),V=new N(1203062813,3204075428)):(R=new N(1779033703,4089235720),T=new N(3144134277,2227873595),y=new N(1013904242,4271175723),H=new N(2773480762,1595750129),z=new N(1359893119,2917565137),$=new N(2600822924,725511199),j=new N(528734635,4215389547),V=new N(1541459225,327033209));const ee=Math.ceil((p+17)/128)*128,U=new Uint8Array(ee);let G,Y;for(G=0;G<p;++G)U[G]=o[A++];U[G++]=128;const oe=ee-16;for(;G<oe;)U[G++]=0;U[G++]=0,U[G++]=0,U[G++]=0,U[G++]=0,U[G++]=0,U[G++]=0,U[G++]=0,U[G++]=0,U[G++]=0,U[G++]=0,U[G++]=0,U[G++]=p>>>29&255,U[G++]=p>>21&255,U[G++]=p>>13&255,U[G++]=p>>5&255,U[G++]=p<<3&255;const se=new Array(80);for(G=0;G<80;G++)se[G]=new N(0,0);let Q=new N(0,0),E=new N(0,0),M=new N(0,0),_=new N(0,0),J=new N(0,0),K=new N(0,0),te=new N(0,0),Z=new N(0,0);const ce=new N(0,0),ne=new N(0,0),re=new N(0,0),ie=new N(0,0);let ae;for(G=0;G<ee;){for(Y=0;Y<16;++Y)se[Y].high=U[G]<<24|U[G+1]<<16|U[G+2]<<8|U[G+3],se[Y].low=U[G+4]<<24|U[G+5]<<16|U[G+6]<<8|U[G+7],G+=8;for(Y=16;Y<80;++Y)ae=se[Y],d(ae,se[Y-2],ie),ae.add(se[Y-7]),s(re,se[Y-15],ie),ae.add(re),ae.add(se[Y-16]);for(Q.assign(R),E.assign(T),M.assign(y),_.assign(H),J.assign(z),K.assign($),te.assign(j),Z.assign(V),Y=0;Y<80;++Y)ce.assign(Z),F(re,J,ie),ce.add(re),m(re,J,K,te,ie),ce.add(re),ce.add(S[Y]),ce.add(se[Y]),f(ne,Q,ie),X(re,Q,E,M,ie),ne.add(re),ae=Z,Z=te,te=K,K=J,_.add(ce),J=_,_=M,M=E,E=Q,ae.assign(ce),ae.add(ne),Q=ae;R.add(Q),T.add(E),y.add(M),H.add(_),z.add(J),$.add(K),j.add(te),V.add(Z)}let ue;return v?(ue=new Uint8Array(48),R.copyTo(ue,0),T.copyTo(ue,8),y.copyTo(ue,16),H.copyTo(ue,24),z.copyTo(ue,32),$.copyTo(ue,40)):(ue=new Uint8Array(64),R.copyTo(ue,0),T.copyTo(ue,8),y.copyTo(ue,16),H.copyTo(ue,24),z.copyTo(ue,32),$.copyTo(ue,40),j.copyTo(ue,48),V.copyTo(ue,56)),ue}return r}();l.calculateSHA512=L;function k(u,m,X){return L(u,m,X,!0)}class x{decryptBlock(m){return m}encrypt(m){return m}}class g{constructor(){this.constructor===g&&(0,t.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 m=0;m<256;m++)m<128?this._mixCol[m]=m<<1:this._mixCol[m]=m<<1^27;this.buffer=new Uint8Array(16),this.bufferPosition=0}_expandKey(m){(0,t.unreachable)("Cannot call `_expandKey` on the base class")}_decrypt(m,X){let f,F,s;const d=new Uint8Array(16);d.set(m);for(let S=0,r=this._keySize;S<16;++S,++r)d[S]^=X[r];for(let S=this._cyclesOfRepetition-1;S>=1;--S){f=d[13],d[13]=d[9],d[9]=d[5],d[5]=d[1],d[1]=f,f=d[14],F=d[10],d[14]=d[6],d[10]=d[2],d[6]=f,d[2]=F,f=d[15],F=d[11],s=d[7],d[15]=d[3],d[11]=f,d[7]=F,d[3]=s;for(let r=0;r<16;++r)d[r]=this._inv_s[d[r]];for(let r=0,o=S*16;r<16;++r,++o)d[r]^=X[o];for(let r=0;r<16;r+=4){const o=this._mix[d[r]],A=this._mix[d[r+1]],p=this._mix[d[r+2]],v=this._mix[d[r+3]];f=o^A>>>8^A<<24^p>>>16^p<<16^v>>>24^v<<8,d[r]=f>>>24&255,d[r+1]=f>>16&255,d[r+2]=f>>8&255,d[r+3]=f&255}}f=d[13],d[13]=d[9],d[9]=d[5],d[5]=d[1],d[1]=f,f=d[14],F=d[10],d[14]=d[6],d[10]=d[2],d[6]=f,d[2]=F,f=d[15],F=d[11],s=d[7],d[15]=d[3],d[11]=f,d[7]=F,d[3]=s;for(let S=0;S<16;++S)d[S]=this._inv_s[d[S]],d[S]^=X[S];return d}_encrypt(m,X){const f=this._s;let F,s,d;const S=new Uint8Array(16);S.set(m);for(let r=0;r<16;++r)S[r]^=X[r];for(let r=1;r<this._cyclesOfRepetition;r++){for(let o=0;o<16;++o)S[o]=f[S[o]];d=S[1],S[1]=S[5],S[5]=S[9],S[9]=S[13],S[13]=d,d=S[2],s=S[6],S[2]=S[10],S[6]=S[14],S[10]=d,S[14]=s,d=S[3],s=S[7],F=S[11],S[3]=S[15],S[7]=d,S[11]=s,S[15]=F;for(let o=0;o<16;o+=4){const A=S[o+0],p=S[o+1],v=S[o+2],R=S[o+3];F=A^p^v^R,S[o+0]^=F^this._mixCol[A^p],S[o+1]^=F^this._mixCol[p^v],S[o+2]^=F^this._mixCol[v^R],S[o+3]^=F^this._mixCol[R^A]}for(let o=0,A=r*16;o<16;++o,++A)S[o]^=X[A]}for(let r=0;r<16;++r)S[r]=f[S[r]];d=S[1],S[1]=S[5],S[5]=S[9],S[9]=S[13],S[13]=d,d=S[2],s=S[6],S[2]=S[10],S[6]=S[14],S[10]=d,S[14]=s,d=S[3],s=S[7],F=S[11],S[3]=S[15],S[7]=d,S[11]=s,S[15]=F;for(let r=0,o=this._keySize;r<16;++r,++o)S[r]^=X[o];return S}_decryptBlock2(m,X){const f=m.length;let F=this.buffer,s=this.bufferPosition;const d=[];let S=this.iv;for(let A=0;A<f;++A){if(F[s]=m[A],++s,s<16)continue;const p=this._decrypt(F,this._key);for(let v=0;v<16;++v)p[v]^=S[v];S=F,d.push(p),F=new Uint8Array(16),s=0}if(this.buffer=F,this.bufferLength=s,this.iv=S,d.length===0)return new Uint8Array(0);let r=16*d.length;if(X){const A=d.at(-1);let p=A[15];if(p<=16){for(let v=15,R=16-p;v>=R;--v)if(A[v]!==p){p=0;break}r-=p,d[d.length-1]=A.subarray(0,16-p)}}const o=new Uint8Array(r);for(let A=0,p=0,v=d.length;A<v;++A,p+=16)o.set(d[A],p);return o}decryptBlock(m,X){let f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;const F=m.length,s=this.buffer;let d=this.bufferPosition;if(f)this.iv=f;else{for(let S=0;d<16&&S<F;++S,++d)s[d]=m[S];if(d<16)return this.bufferLength=d,new Uint8Array(0);this.iv=s,m=m.subarray(16)}return this.buffer=new Uint8Array(16),this.bufferLength=0,this.decryptBlock=this._decryptBlock2,this.decryptBlock(m,X)}encrypt(m,X){const f=m.length;let F=this.buffer,s=this.bufferPosition;const d=[];X||(X=new Uint8Array(16));for(let o=0;o<f;++o){if(F[s]=m[o],++s,s<16)continue;for(let p=0;p<16;++p)F[p]^=X[p];const A=this._encrypt(F,this._key);X=A,d.push(A),F=new Uint8Array(16),s=0}if(this.buffer=F,this.bufferLength=s,this.iv=X,d.length===0)return new Uint8Array(0);const S=16*d.length,r=new Uint8Array(S);for(let o=0,A=0,p=d.length;o<p;++o,A+=16)r.set(d[o],A);return r}}class n extends g{constructor(m){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(m)}_expandKey(m){const f=this._s,F=this._rcon,s=new Uint8Array(176);s.set(m);for(let d=16,S=1;d<176;++S){let r=s[d-3],o=s[d-2],A=s[d-1],p=s[d-4];r=f[r],o=f[o],A=f[A],p=f[p],r^=F[S];for(let v=0;v<4;++v)s[d]=r^=s[d-16],d++,s[d]=o^=s[d-16],d++,s[d]=A^=s[d-16],d++,s[d]=p^=s[d-16],d++}return s}}l.AES128Cipher=n;class I extends g{constructor(m){super(),this._cyclesOfRepetition=14,this._keySize=224,this._key=this._expandKey(m)}_expandKey(m){const f=this._s,F=new Uint8Array(240);F.set(m);let s=1,d,S,r,o;for(let A=32,p=1;A<240;++p){A%32===16?(d=f[d],S=f[S],r=f[r],o=f[o]):A%32===0&&(d=F[A-3],S=F[A-2],r=F[A-1],o=F[A-4],d=f[d],S=f[S],r=f[r],o=f[o],d^=s,(s<<=1)>=256&&(s=(s^27)&255));for(let v=0;v<4;++v)F[A]=d^=F[A-32],A++,F[A]=S^=F[A-32],A++,F[A]=r^=F[A-32],A++,F[A]=o^=F[A-32],A++}return F}}l.AES256Cipher=I;class B{checkOwnerPassword(m,X,f,F){const s=new Uint8Array(m.length+56);s.set(m,0),s.set(X,m.length),s.set(f,m.length+X.length);const d=D(s,0,s.length);return(0,t.isArrayEqual)(d,F)}checkUserPassword(m,X,f){const F=new Uint8Array(m.length+8);F.set(m,0),F.set(X,m.length);const s=D(F,0,F.length);return(0,t.isArrayEqual)(s,f)}getOwnerKey(m,X,f,F){const s=new Uint8Array(m.length+56);s.set(m,0),s.set(X,m.length),s.set(f,m.length+X.length);const d=D(s,0,s.length);return new I(d).decryptBlock(F,!1,new Uint8Array(16))}getUserKey(m,X,f){const F=new Uint8Array(m.length+8);F.set(m,0),F.set(X,m.length);const s=D(F,0,F.length);return new I(s).decryptBlock(f,!1,new Uint8Array(16))}}l.PDF17=B;const h=function(){function m(f,F,s){let d=D(F,0,F.length).subarray(0,32),S=[0],r=0;for(;r<64||S.at(-1)>r-32;){const o=f.length+d.length+s.length,A=new Uint8Array(o);let p=0;A.set(f,p),p+=f.length,A.set(d,p),p+=d.length,A.set(s,p);const v=new Uint8Array(o*64);for(let y=0,H=0;y<64;y++,H+=o)v.set(A,H);S=new n(d.subarray(0,16)).encrypt(v,d.subarray(16,32));const T=S.slice(0,16).reduce((y,H)=>y+H,0)%3;T===0?d=D(S,0,S.length):T===1?d=k(S,0,S.length):T===2&&(d=L(S,0,S.length)),r++}return d.subarray(0,32)}class X{hash(F,s,d){return m(F,s,d)}checkOwnerPassword(F,s,d,S){const r=new Uint8Array(F.length+56);r.set(F,0),r.set(s,F.length),r.set(d,F.length+s.length);const o=m(F,r,d);return(0,t.isArrayEqual)(o,S)}checkUserPassword(F,s,d){const S=new Uint8Array(F.length+8);S.set(F,0),S.set(s,F.length);const r=m(F,S,[]);return(0,t.isArrayEqual)(r,d)}getOwnerKey(F,s,d,S){const r=new Uint8Array(F.length+56);r.set(F,0),r.set(s,F.length),r.set(d,F.length+s.length);const o=m(F,r,d);return new I(o).decryptBlock(S,!1,new Uint8Array(16))}getUserKey(F,s,d){const S=new Uint8Array(F.length+8);S.set(F,0),S.set(s,F.length);const r=m(F,S,[]);return new I(r).decryptBlock(d,!1,new Uint8Array(16))}}return X}();l.PDF20=h;class c{constructor(m,X){this.StringCipherConstructor=m,this.StreamCipherConstructor=X}createStream(m,X){const f=new this.StreamCipherConstructor;return new O.DecryptStream(m,X,function(s,d){return f.decryptBlock(s,d)})}decryptString(m){const X=new this.StringCipherConstructor;let f=(0,t.stringToBytes)(m);return f=X.decryptBlock(f,!0),(0,t.bytesToString)(f)}encryptString(m){const X=new this.StringCipherConstructor;if(X instanceof g){const s=16-m.length%16;m+=String.fromCharCode(s).repeat(s);const d=new Uint8Array(16);if(typeof crypto<"u")crypto.getRandomValues(d);else for(let o=0;o<16;o++)d[o]=Math.floor(256*Math.random());let S=(0,t.stringToBytes)(m);S=X.encrypt(S,d);const r=new Uint8Array(16+S.length);return r.set(d),r.set(S,16),(0,t.bytesToString)(r)}let f=(0,t.stringToBytes)(m);return f=X.encrypt(f),(0,t.bytesToString)(f)}}const C=function(){const m=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 X(o,A,p,v,R,T,y,H,z,$,j,V){if(A){const U=Math.min(127,A.length);A=A.subarray(0,U)}else A=[];let ee;return o===6?ee=new h:ee=new B,ee.checkUserPassword(A,H,y)?ee.getUserKey(A,z,j):A.length&&ee.checkOwnerPassword(A,v,T,p)?ee.getOwnerKey(A,R,T,$):null}function f(o,A,p,v,R,T,y,H){const z=40+p.length+o.length,$=new Uint8Array(z);let j=0,V,ee;if(A)for(ee=Math.min(32,A.length);j<ee;++j)$[j]=A[j];for(V=0;j<32;)$[j++]=m[V++];for(V=0,ee=p.length;V<ee;++V)$[j++]=p[V];for($[j++]=R&255,$[j++]=R>>8&255,$[j++]=R>>16&255,$[j++]=R>>>24&255,V=0,ee=o.length;V<ee;++V)$[j++]=o[V];T>=4&&!H&&($[j++]=255,$[j++]=255,$[j++]=255,$[j++]=255);let U=e($,0,j);const G=y>>3;if(T>=3)for(V=0;V<50;++V)U=e(U,0,G);const Y=U.subarray(0,G);let oe,se;if(T>=3){for(j=0;j<32;++j)$[j]=m[j];for(V=0,ee=o.length;V<ee;++V)$[j++]=o[V];oe=new P(Y),se=oe.encryptBlock(e($,0,j)),ee=Y.length;const Q=new Uint8Array(ee);for(V=1;V<=19;++V){for(let E=0;E<ee;++E)Q[E]=Y[E]^V;oe=new P(Q),se=oe.encryptBlock(se)}for(V=0,ee=se.length;V<ee;++V)if(v[V]!==se[V])return null}else for(oe=new P(Y),se=oe.encryptBlock(m),V=0,ee=se.length;V<ee;++V)if(v[V]!==se[V])return null;return Y}function F(o,A,p,v){const R=new Uint8Array(32);let T=0;const y=Math.min(32,o.length);for(;T<y;++T)R[T]=o[T];let H=0;for(;T<32;)R[T++]=m[H++];let z=e(R,0,T);const $=v>>3;if(p>=3)for(H=0;H<50;++H)z=e(z,0,z.length);let j,V;if(p>=3){V=A;const ee=new Uint8Array($);for(H=19;H>=0;H--){for(let U=0;U<$;++U)ee[U]=z[U]^H;j=new P(ee),V=j.encryptBlock(V)}}else j=new P(z.subarray(0,$)),V=j.encryptBlock(A);return V}const s=i.Name.get("Identity");function d(o,A,p){let v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;const R=new Uint8Array(p.length+9),T=p.length;let y;for(y=0;y<T;++y)R[y]=p[y];return R[y++]=o&255,R[y++]=o>>8&255,R[y++]=o>>16&255,R[y++]=A&255,R[y++]=A>>8&255,v&&(R[y++]=115,R[y++]=65,R[y++]=108,R[y++]=84),e(R,0,y).subarray(0,Math.min(p.length+5,16))}function S(o,A,p,v,R){if(!(A instanceof i.Name))throw new t.FormatError("Invalid crypt filter name.");const T=o.get(A.name);let y;if(T!=null&&(y=T.get("CFM")),!y||y.name==="None")return function(){return new x};if(y.name==="V2")return function(){return new P(d(p,v,R,!1))};if(y.name==="AESV2")return function(){return new n(d(p,v,R,!0))};if(y.name==="AESV3")return function(){return new I(R)};throw new t.FormatError("Unknown crypto method")}class r{constructor(A,p,v){const R=A.get("Filter");if(!(0,i.isName)(R,"Standard"))throw new t.FormatError("unknown encryption method");this.filterName=R.name,this.dict=A;const T=A.get("V");if(!Number.isInteger(T)||T!==1&&T!==2&&T!==4&&T!==5)throw new t.FormatError("unsupported encryption algorithm");this.algorithm=T;let y=A.get("Length");if(!y)if(T<=3)y=40;else{const Y=A.get("CF"),oe=A.get("StmF");if(Y instanceof i.Dict&&oe instanceof i.Name){Y.suppressEncryption=!0;const se=Y.get(oe.name);y=se&&se.get("Length")||128,y<40&&(y<<=3)}}if(!Number.isInteger(y)||y<40||y%8!==0)throw new t.FormatError("invalid key length");const H=(0,t.stringToBytes)(A.get("O")).subarray(0,32),z=(0,t.stringToBytes)(A.get("U")).subarray(0,32),$=A.get("P"),j=A.get("R"),V=(T===4||T===5)&&A.get("EncryptMetadata")!==!1;this.encryptMetadata=V;const ee=(0,t.stringToBytes)(p);let U;if(v){if(j===6)try{v=(0,t.utf8StringToString)(v)}catch{(0,t.warn)("CipherTransformFactory: Unable to convert UTF8 encoded password.")}U=(0,t.stringToBytes)(v)}let G;if(T!==5)G=f(ee,U,H,z,$,j,y,V);else{const Y=(0,t.stringToBytes)(A.get("O")).subarray(32,40),oe=(0,t.stringToBytes)(A.get("O")).subarray(40,48),se=(0,t.stringToBytes)(A.get("U")).subarray(0,48),Q=(0,t.stringToBytes)(A.get("U")).subarray(32,40),E=(0,t.stringToBytes)(A.get("U")).subarray(40,48),M=(0,t.stringToBytes)(A.get("OE")),_=(0,t.stringToBytes)(A.get("UE"));(0,t.stringToBytes)(A.get("Perms")),G=X(j,U,H,Y,oe,se,z,Q,E,M,_)}if(!G&&!v)throw new t.PasswordException("No password given",t.PasswordResponses.NEED_PASSWORD);if(!G&&v){const Y=F(U,H,j,y);G=f(ee,Y,H,z,$,j,y,V)}if(!G)throw new t.PasswordException("Incorrect Password",t.PasswordResponses.INCORRECT_PASSWORD);if(this.encryptionKey=G,T>=4){const Y=A.get("CF");Y instanceof i.Dict&&(Y.suppressEncryption=!0),this.cf=Y,this.stmf=A.get("StmF")||s,this.strf=A.get("StrF")||s,this.eff=A.get("EFF")||this.stmf}}createCipherTransform(A,p){if(this.algorithm===4||this.algorithm===5)return new c(S(this.cf,this.strf,A,p,this.encryptionKey),S(this.cf,this.stmf,A,p,this.encryptionKey));const v=d(A,p,this.encryptionKey,!1),R=function(){return new P(v)};return new c(R,R)}}return r}();l.CipherTransformFactory=C},(he,l,w)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.DecryptStream=void 0;var t=w(150);const i=512;class O extends t.DecodeStream{constructor(e,N,D){super(N),this.str=e,this.dict=e.dict,this.decrypt=D,this.nextChunk=null,this.initialized=!1}readBlock(){let e;if(this.initialized?e=this.nextChunk:(e=this.str.getBytes(i),this.initialized=!0),!e||e.length===0){this.eof=!0;return}this.nextChunk=this.str.getBytes(i);const N=this.nextChunk&&this.nextChunk.length>0,D=this.decrypt;e=D(e,!N);const L=this.bufferLength,k=L+e.length;this.ensureBuffer(k).set(e,L),this.bufferLength=k}}l.DecryptStream=O},(he,l,w)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.Catalog=void 0;var t=w(136),i=w(2),O=w(137),P=w(201),e=w(138),N=w(202),D=w(145),L=w(203),k=w(190),x=w(204),g=w(205);function n(B){return B instanceof O.Dict&&(B=B.get("D")),Array.isArray(B)?B:null}class I{constructor(h,c){if(this.pdfManager=h,this.xref=c,this._catDict=c.getCatalogObj(),!(this._catDict instanceof O.Dict))throw new i.FormatError("Catalog object is not a dictionary.");this.toplevelPagesDict,this._actualNumPages=null,this.fontCache=new O.RefSetCache,this.builtInCMapCache=new Map,this.standardFontDataCache=new Map,this.globalImageCache=new k.GlobalImageCache,this.pageKidsCountCache=new O.RefSetCache,this.pageIndexCache=new O.RefSetCache,this.nonBlendModesSet=new O.RefSet}get version(){const h=this._catDict.get("Version");if(h instanceof O.Name){if(t.PDF_VERSION_REGEXP.test(h.name))return(0,i.shadow)(this,"version",h.name);(0,i.warn)(`Invalid PDF catalog version: ${h.name}`)}return(0,i.shadow)(this,"version",null)}get lang(){const h=this._catDict.get("Lang");return(0,i.shadow)(this,"lang",typeof h=="string"?(0,i.stringToPDFString)(h):null)}get needsRendering(){const h=this._catDict.get("NeedsRendering");return(0,i.shadow)(this,"needsRendering",typeof h=="boolean"?h:!1)}get collection(){let h=null;try{const c=this._catDict.get("Collection");c instanceof O.Dict&&c.size>0&&(h=c)}catch(c){if(c instanceof t.MissingDataException)throw c;(0,i.info)("Cannot fetch Collection entry; assuming no collection is present.")}return(0,i.shadow)(this,"collection",h)}get acroForm(){let h=null;try{const c=this._catDict.get("AcroForm");c instanceof O.Dict&&c.size>0&&(h=c)}catch(c){if(c instanceof t.MissingDataException)throw c;(0,i.info)("Cannot fetch AcroForm entry; assuming no forms are present.")}return(0,i.shadow)(this,"acroForm",h)}get acroFormRef(){const h=this._catDict.getRaw("AcroForm");return(0,i.shadow)(this,"acroFormRef",h instanceof O.Ref?h:null)}get metadata(){const h=this._catDict.getRaw("Metadata");if(!(h instanceof O.Ref))return(0,i.shadow)(this,"metadata",null);let c=null;try{const C=!(this.xref.encrypt&&this.xref.encrypt.encryptMetadata),u=this.xref.fetch(h,C);if(u instanceof e.BaseStream&&u.dict instanceof O.Dict){const m=u.dict.get("Type"),X=u.dict.get("Subtype");if((0,O.isName)(m,"Metadata")&&(0,O.isName)(X,"XML")){const f=(0,i.stringToUTF8String)(u.getString());f&&(c=new x.MetadataParser(f).serializable)}}}catch(C){if(C instanceof t.MissingDataException)throw C;(0,i.info)(`Skipping invalid Metadata: "${C}".`)}return(0,i.shadow)(this,"metadata",c)}get markInfo(){let h=null;try{h=this._readMarkInfo()}catch(c){if(c instanceof t.MissingDataException)throw c;(0,i.warn)("Unable to read mark info.")}return(0,i.shadow)(this,"markInfo",h)}_readMarkInfo(){const h=this._catDict.get("MarkInfo");if(!(h instanceof O.Dict))return null;const c={Marked:!1,UserProperties:!1,Suspects:!1};for(const C in c){const u=h.get(C);typeof u=="boolean"&&(c[C]=u)}return c}get structTreeRoot(){let h=null;try{h=this._readStructTreeRoot()}catch(c){if(c instanceof t.MissingDataException)throw c;(0,i.warn)("Unable read to structTreeRoot info.")}return(0,i.shadow)(this,"structTreeRoot",h)}_readStructTreeRoot(){const h=this._catDict.get("StructTreeRoot");if(!(h instanceof O.Dict))return null;const c=new g.StructTreeRoot(h);return c.init(),c}get toplevelPagesDict(){const h=this._catDict.get("Pages");if(!(h instanceof O.Dict))throw new i.FormatError("Invalid top-level pages dictionary.");return(0,i.shadow)(this,"toplevelPagesDict",h)}get documentOutline(){let h=null;try{h=this._readDocumentOutline()}catch(c){if(c instanceof t.MissingDataException)throw c;(0,i.warn)("Unable to read document outline.")}return(0,i.shadow)(this,"documentOutline",h)}_readDocumentOutline(){let h=this._catDict.get("Outlines");if(!(h instanceof O.Dict)||(h=h.getRaw("First"),!(h instanceof O.Ref)))return null;const c={items:[]},C=[{obj:h,parent:c}],u=new O.RefSet;u.put(h);const m=this.xref,X=new Uint8ClampedArray(3);for(;C.length>0;){const f=C.shift(),F=m.fetchIfRef(f.obj);if(F===null)continue;if(!F.has("Title"))throw new i.FormatError("Invalid outline item encountered.");const s={url:null,dest:null,action:null};I.parseDestDictionary({destDict:F,resultObj:s,docBaseUrl:this.pdfManager.docBaseUrl,docAttachments:this.attachments});const d=F.get("Title"),S=F.get("F")||0,r=F.getArray("C"),o=F.get("Count");let A=X;Array.isArray(r)&&r.length===3&&(r[0]!==0||r[1]!==0||r[2]!==0)&&(A=D.ColorSpace.singletons.rgb.getRgb(r,0));const p={action:s.action,attachment:s.attachment,dest:s.dest,url:s.url,unsafeUrl:s.unsafeUrl,newWindow:s.newWindow,setOCGState:s.setOCGState,title:(0,i.stringToPDFString)(d),color:A,count:Number.isInteger(o)?o:void 0,bold:!!(S&2),italic:!!(S&1),items:[]};f.parent.items.push(p),h=F.getRaw("First"),h instanceof O.Ref&&!u.has(h)&&(C.push({obj:h,parent:p}),u.put(h)),h=F.getRaw("Next"),h instanceof O.Ref&&!u.has(h)&&(C.push({obj:h,parent:f.parent}),u.put(h))}return c.items.length>0?c.items:null}get permissions(){let h=null;try{h=this._readPermissions()}catch(c){if(c instanceof t.MissingDataException)throw c;(0,i.warn)("Unable to read permissions.")}return(0,i.shadow)(this,"permissions",h)}_readPermissions(){const h=this.xref.trailer.get("Encrypt");if(!(h instanceof O.Dict))return null;let c=h.get("P");if(typeof c!="number")return null;c+=4294967296;const C=[];for(const u in i.PermissionFlag){const m=i.PermissionFlag[u];c&m&&C.push(m)}return C}get optionalContentConfig(){let h=null;try{const c=this._catDict.get("OCProperties");if(!c)return(0,i.shadow)(this,"optionalContentConfig",null);const C=c.get("D");if(!C)return(0,i.shadow)(this,"optionalContentConfig",null);const u=c.get("OCGs");if(!Array.isArray(u))return(0,i.shadow)(this,"optionalContentConfig",null);const m=[],X=[];for(const f of u){if(!(f instanceof O.Ref))continue;X.push(f);const F=this.xref.fetchIfRef(f);m.push({id:f.toString(),name:typeof F.get("Name")=="string"?(0,i.stringToPDFString)(F.get("Name")):null,intent:typeof F.get("Intent")=="string"?(0,i.stringToPDFString)(F.get("Intent")):null})}h=this._readOptionalContentConfig(C,X),h.groups=m}catch(c){if(c instanceof t.MissingDataException)throw c;(0,i.warn)(`Unable to read optional content config: ${c}`)}return(0,i.shadow)(this,"optionalContentConfig",h)}_readOptionalContentConfig(h,c){function C(s){const d=[];if(Array.isArray(s))for(const S of s)S instanceof O.Ref&&c.includes(S)&&d.push(S.toString());return d}function u(s){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(!Array.isArray(s))return null;const S=[];for(const o of s){if(o instanceof O.Ref&&c.includes(o)){f.put(o),S.push(o.toString());continue}const A=m(o,d);A&&S.push(A)}if(d>0)return S;const r=[];for(const o of c)f.has(o)||r.push(o.toString());return r.length&&S.push({name:null,order:r}),S}function m(s,d){if(++d>F)return(0,i.warn)("parseNestedOrder - reached MAX_NESTED_LEVELS."),null;const S=X.fetchIfRef(s);if(!Array.isArray(S))return null;const r=X.fetchIfRef(S[0]);if(typeof r!="string")return null;const o=u(S.slice(1),d);return!o||!o.length?null:{name:(0,i.stringToPDFString)(r),order:o}}const X=this.xref,f=new O.RefSet,F=10;return{name:typeof h.get("Name")=="string"?(0,i.stringToPDFString)(h.get("Name")):null,creator:typeof h.get("Creator")=="string"?(0,i.stringToPDFString)(h.get("Creator")):null,baseState:h.get("BaseState")instanceof O.Name?h.get("BaseState").name:null,on:C(h.get("ON")),off:C(h.get("OFF")),order:u(h.get("Order")),groups:null}}setActualNumPages(){let h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;this._actualNumPages=h}get hasActualNumPages(){return this._actualNumPages!==null}get _pagesCount(){const h=this.toplevelPagesDict.get("Count");if(!Number.isInteger(h))throw new i.FormatError("Page count in top-level pages dictionary is not an integer.");return(0,i.shadow)(this,"_pagesCount",h)}get numPages(){return this.hasActualNumPages?this._actualNumPages:this._pagesCount}get destinations(){const h=this._readDests(),c=Object.create(null);if(h instanceof P.NameTree)for(const[C,u]of h.getAll()){const m=n(u);m&&(c[(0,i.stringToPDFString)(C)]=m)}else h instanceof O.Dict&&h.forEach(function(C,u){const m=n(u);m&&(c[C]=m)});return(0,i.shadow)(this,"destinations",c)}getDestination(h){const c=this._readDests();if(c instanceof P.NameTree){const C=n(c.get(h));if(C)return C;const u=this.destinations[h];if(u)return(0,i.warn)(`Found "${h}" at an incorrect position in the NameTree.`),u}else if(c instanceof O.Dict){const C=n(c.get(h));if(C)return C}return null}_readDests(){const h=this._catDict.get("Names");if(h&&h.has("Dests"))return new P.NameTree(h.getRaw("Dests"),this.xref);if(this._catDict.has("Dests"))return this._catDict.get("Dests")}get pageLabels(){let h=null;try{h=this._readPageLabels()}catch(c){if(c instanceof t.MissingDataException)throw c;(0,i.warn)("Unable to read page labels.")}return(0,i.shadow)(this,"pageLabels",h)}_readPageLabels(){const h=this._catDict.getRaw("PageLabels");if(!h)return null;const c=new Array(this.numPages);let C=null,u="";const X=new P.NumberTree(h,this.xref).getAll();let f="",F=1;for(let s=0,d=this.numPages;s<d;s++){const S=X.get(s);if(S!==void 0){if(!(S instanceof O.Dict))throw new i.FormatError("PageLabel is not a dictionary.");if(S.has("Type")&&!(0,O.isName)(S.get("Type"),"PageLabel"))throw new i.FormatError("Invalid type in PageLabel dictionary.");if(S.has("S")){const r=S.get("S");if(!(r instanceof O.Name))throw new i.FormatError("Invalid style in PageLabel dictionary.");C=r.name}else C=null;if(S.has("P")){const r=S.get("P");if(typeof r!="string")throw new i.FormatError("Invalid prefix in PageLabel dictionary.");u=(0,i.stringToPDFString)(r)}else u="";if(S.has("St")){const r=S.get("St");if(!(Number.isInteger(r)&&r>=1))throw new i.FormatError("Invalid start in PageLabel dictionary.");F=r}else F=1}switch(C){case"D":f=F;break;case"R":case"r":f=(0,t.toRomanNumerals)(F,C==="r");break;case"A":case"a":const r=26,p=C==="a"?97:65,v=F-1;f=String.fromCharCode(p+v%r).repeat(Math.floor(v/r)+1);break;default:if(C)throw new i.FormatError(`Invalid style "${C}" in PageLabel dictionary.`);f=""}c[s]=u+f,F++}return c}get pageLayout(){const h=this._catDict.get("PageLayout");let c="";if(h instanceof O.Name)switch(h.name){case"SinglePage":case"OneColumn":case"TwoColumnLeft":case"TwoColumnRight":case"TwoPageLeft":case"TwoPageRight":c=h.name}return(0,i.shadow)(this,"pageLayout",c)}get pageMode(){const h=this._catDict.get("PageMode");let c="UseNone";if(h instanceof O.Name)switch(h.name){case"UseNone":case"UseOutlines":case"UseThumbs":case"FullScreen":case"UseOC":case"UseAttachments":c=h.name}return(0,i.shadow)(this,"pageMode",c)}get viewerPreferences(){const h=this._catDict.get("ViewerPreferences");if(!(h instanceof O.Dict))return(0,i.shadow)(this,"viewerPreferences",null);let c=null;for(const C of h.getKeys()){const u=h.get(C);let m;switch(C){case"HideToolbar":case"HideMenubar":case"HideWindowUI":case"FitWindow":case"CenterWindow":case"DisplayDocTitle":case"PickTrayByPDFSize":typeof u=="boolean"&&(m=u);break;case"NonFullScreenPageMode":if(u instanceof O.Name)switch(u.name){case"UseNone":case"UseOutlines":case"UseThumbs":case"UseOC":m=u.name;break;default:m="UseNone"}break;case"Direction":if(u instanceof O.Name)switch(u.name){case"L2R":case"R2L":m=u.name;break;default:m="L2R"}break;case"ViewArea":case"ViewClip":case"PrintArea":case"PrintClip":if(u instanceof O.Name)switch(u.name){case"MediaBox":case"CropBox":case"BleedBox":case"TrimBox":case"ArtBox":m=u.name;break;default:m="CropBox"}break;case"PrintScaling":if(u instanceof O.Name)switch(u.name){case"None":case"AppDefault":m=u.name;break;default:m="AppDefault"}break;case"Duplex":if(u instanceof O.Name)switch(u.name){case"Simplex":case"DuplexFlipShortEdge":case"DuplexFlipLongEdge":m=u.name;break;default:m="None"}break;case"PrintPageRange":Array.isArray(u)&&u.length%2===0&&u.every((f,F,s)=>Number.isInteger(f)&&f>0&&(F===0||f>=s[F-1])&&f<=this.numPages)&&(m=u);break;case"NumCopies":Number.isInteger(u)&&u>0&&(m=u);break;default:(0,i.warn)(`Ignoring non-standard key in ViewerPreferences: ${C}.`);continue}if(m===void 0){(0,i.warn)(`Bad value, for key "${C}", in ViewerPreferences: ${u}.`);continue}c||(c=Object.create(null)),c[C]=m}return(0,i.shadow)(this,"viewerPreferences",c)}get openAction(){const h=this._catDict.get("OpenAction"),c=Object.create(null);if(h instanceof O.Dict){const C=new O.Dict(this.xref);C.set("A",h);const u={url:null,dest:null,action:null};I.parseDestDictionary({destDict:C,resultObj:u}),Array.isArray(u.dest)?c.dest=u.dest:u.action&&(c.action=u.action)}else Array.isArray(h)&&(c.dest=h);return(0,i.shadow)(this,"openAction",(0,i.objectSize)(c)>0?c:null)}get attachments(){const h=this._catDict.get("Names");let c=null;if(h instanceof O.Dict&&h.has("EmbeddedFiles")){const C=new P.NameTree(h.getRaw("EmbeddedFiles"),this.xref);for(const[u,m]of C.getAll()){const X=new L.FileSpec(m,this.xref);c||(c=Object.create(null)),c[(0,i.stringToPDFString)(u)]=X.serializable}}return(0,i.shadow)(this,"attachments",c)}get xfaImages(){const h=this._catDict.get("Names");let c=null;if(h instanceof O.Dict&&h.has("XFAImages")){const C=new P.NameTree(h.getRaw("XFAImages"),this.xref);for(const[u,m]of C.getAll())c||(c=new O.Dict(this.xref)),c.set((0,i.stringToPDFString)(u),m)}return(0,i.shadow)(this,"xfaImages",c)}_collectJavaScript(){const h=this._catDict.get("Names");let c=null;function C(m,X){if(!(X instanceof O.Dict)||!(0,O.isName)(X.get("S"),"JavaScript"))return;let f=X.get("JS");if(f instanceof e.BaseStream)f=f.getString();else if(typeof f!="string")return;c===null&&(c=new Map),f=(0,i.stringToPDFString)(f).replace(/\u0000/g,""),c.set(m,f)}if(h instanceof O.Dict&&h.has("JavaScript")){const m=new P.NameTree(h.getRaw("JavaScript"),this.xref);for(const[X,f]of m.getAll())C((0,i.stringToPDFString)(X),f)}const u=this._catDict.get("OpenAction");return u&&C("OpenAction",u),c}get javaScript(){const h=this._collectJavaScript();return(0,i.shadow)(this,"javaScript",h?[...h.values()]:null)}get jsActions(){const h=this._collectJavaScript();let c=(0,t.collectActions)(this.xref,this._catDict,i.DocumentActionEventType);if(h){c||(c=Object.create(null));for(const[C,u]of h)C in c?c[C].push(u):c[C]=[u]}return(0,i.shadow)(this,"jsActions",c)}async fontFallback(h,c){const C=await Promise.all(this.fontCache);for(const u of C)if(u.loadedName===h){u.fallback(c);return}}async cleanup(){let h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;(0,N.clearGlobalCaches)(),this.globalImageCache.clear(h),this.pageKidsCountCache.clear(),this.pageIndexCache.clear(),this.nonBlendModesSet.clear();const c=await Promise.all(this.fontCache);for(const{dict:C}of c)delete C.cacheKey;this.fontCache.clear(),this.builtInCMapCache.clear(),this.standardFontDataCache.clear()}async getPageDict(h){const c=[this.toplevelPagesDict],C=new O.RefSet,u=this._catDict.getRaw("Pages");u instanceof O.Ref&&C.put(u);const m=this.xref,X=this.pageKidsCountCache,f=this.pageIndexCache;let F=0;for(;c.length;){const s=c.pop();if(s instanceof O.Ref){const o=X.get(s);if(o>=0&&F+o<=h){F+=o;continue}if(C.has(s))throw new i.FormatError("Pages tree contains circular reference.");C.put(s);const A=await m.fetchAsync(s);if(A instanceof O.Dict){let p=A.getRaw("Type");if(p instanceof O.Ref&&(p=await m.fetchAsync(p)),(0,O.isName)(p,"Page")||!A.has("Kids")){if(X.has(s)||X.put(s,1),f.has(s)||f.put(s,F),F===h)return[A,s];F++;continue}}c.push(A);continue}if(!(s instanceof O.Dict))throw new i.FormatError("Page dictionary kid reference points to wrong type of object.");const{objId:d}=s;let S=s.getRaw("Count");if(S instanceof O.Ref&&(S=await m.fetchAsync(S)),Number.isInteger(S)&&S>=0&&(d&&!X.has(d)&&X.put(d,S),F+S<=h)){F+=S;continue}let r=s.getRaw("Kids");if(r instanceof O.Ref&&(r=await m.fetchAsync(r)),!Array.isArray(r)){let o=s.getRaw("Type");if(o instanceof O.Ref&&(o=await m.fetchAsync(o)),(0,O.isName)(o,"Page")||!s.has("Kids")){if(F===h)return[s,null];F++;continue}throw new i.FormatError("Page dictionary kids object is not an array.")}for(let o=r.length-1;o>=0;o--)c.push(r[o])}throw new Error(`Page index ${h} not found.`)}async getAllPageDicts(){let h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const{ignoreErrors:c}=this.pdfManager.evaluatorOptions,C=[{currentNode:this.toplevelPagesDict,posInKids:0}],u=new O.RefSet,m=this._catDict.getRaw("Pages");m instanceof O.Ref&&u.put(m);const X=new Map,f=this.xref,F=this.pageIndexCache;let s=0;function d(r,o){o&&!F.has(o)&&F.put(o,s),X.set(s++,[r,o])}function S(r){if(r instanceof t.XRefEntryException&&!h)throw r;h&&c&&s===0&&((0,i.warn)(`getAllPageDicts - Skipping invalid first page: "${r}".`),r=O.Dict.empty),X.set(s++,[r,null])}for(;C.length>0;){const r=C.at(-1),{currentNode:o,posInKids:A}=r;let p=o.getRaw("Kids");if(p instanceof O.Ref)try{p=await f.fetchAsync(p)}catch(y){S(y);break}if(!Array.isArray(p)){S(new i.FormatError("Page dictionary kids object is not an array."));break}if(A>=p.length){C.pop();continue}const v=p[A];let R;if(v instanceof O.Ref){if(u.has(v)){S(new i.FormatError("Pages tree contains circular reference."));break}u.put(v);try{R=await f.fetchAsync(v)}catch(y){S(y);break}}else R=v;if(!(R instanceof O.Dict)){S(new i.FormatError("Page dictionary kid reference points to wrong type of object."));break}let T=R.getRaw("Type");if(T instanceof O.Ref)try{T=await f.fetchAsync(T)}catch(y){S(y);break}(0,O.isName)(T,"Page")||!R.has("Kids")?d(R,v instanceof O.Ref?v:null):C.push({currentNode:R,posInKids:0}),r.posInKids++}return X}getPageIndex(h){const c=this.pageIndexCache.get(h);if(c!==void 0)return Promise.resolve(c);const C=this.xref;function u(f){let F=0,s;return C.fetchAsync(f).then(function(d){if((0,O.isRefsEqual)(f,h)&&!(0,O.isDict)(d,"Page")&&!(d instanceof O.Dict&&!d.has("Type")&&d.has("Contents")))throw new i.FormatError("The reference does not point to a /Page dictionary.");if(!d)return null;if(!(d instanceof O.Dict))throw new i.FormatError("Node must be a dictionary.");return s=d.getRaw("Parent"),d.getAsync("Parent")}).then(function(d){if(!d)return null;if(!(d instanceof O.Dict))throw new i.FormatError("Parent must be a dictionary.");return d.getAsync("Kids")}).then(function(d){if(!d)return null;const S=[];let r=!1;for(const o of d){if(!(o instanceof O.Ref))throw new i.FormatError("Kid must be a reference.");if((0,O.isRefsEqual)(o,f)){r=!0;break}S.push(C.fetchAsync(o).then(function(A){if(!(A instanceof O.Dict))throw new i.FormatError("Kid node must be a dictionary.");A.has("Count")?F+=A.get("Count"):F++}))}if(!r)throw new i.FormatError("Kid reference not found in parent's kids.");return Promise.all(S).then(function(){return[F,s]})})}let m=0;const X=f=>u(f).then(F=>{if(!F)return this.pageIndexCache.put(h,m),m;const[s,d]=F;return m+=s,X(d)});return X(h)}get baseUrl(){const h=this._catDict.get("URI");if(h instanceof O.Dict){const c=h.get("Base");if(typeof c=="string"){const C=(0,i.createValidAbsoluteUrl)(c,null,{tryConvertEncoding:!0});if(C)return(0,i.shadow)(this,"baseUrl",C.href)}}return(0,i.shadow)(this,"baseUrl",null)}static parseDestDictionary(h){const c=h.destDict;if(!(c instanceof O.Dict)){(0,i.warn)("parseDestDictionary: `destDict` must be a dictionary.");return}const C=h.resultObj;if(typeof C!="object"){(0,i.warn)("parseDestDictionary: `resultObj` must be an object.");return}const u=h.docBaseUrl||null,m=h.docAttachments||null;let X=c.get("A"),f,F;if(X instanceof O.Dict||(c.has("Dest")?X=c.get("Dest"):(X=c.get("AA"),X instanceof O.Dict&&(X.has("D")?X=X.get("D"):X.has("U")&&(X=X.get("U"))))),X instanceof O.Dict){const s=X.get("S");if(!(s instanceof O.Name)){(0,i.warn)("parseDestDictionary: Invalid type in Action dictionary.");return}const d=s.name;switch(d){case"ResetForm":const S=X.get("Flags"),r=((typeof S=="number"?S:0)&1)===0,o=[],A=[];for(const G of X.get("Fields")||[])G instanceof O.Ref?A.push(G.toString()):typeof G=="string"&&o.push((0,i.stringToPDFString)(G));C.resetForm={fields:o,refs:A,include:r};break;case"URI":f=X.get("URI"),f instanceof O.Name&&(f="/"+f.name);break;case"GoTo":F=X.get("D");break;case"Launch":case"GoToR":const p=X.get("F");p instanceof O.Dict?f=p.get("F")||null:typeof p=="string"&&(f=p);let v=X.get("D");if(v&&(v instanceof O.Name&&(v=v.name),typeof f=="string")){const G=f.split("#")[0];typeof v=="string"?f=G+"#"+v:Array.isArray(v)&&(f=G+"#"+JSON.stringify(v))}const R=X.get("NewWindow");typeof R=="boolean"&&(C.newWindow=R);break;case"GoToE":const T=X.get("T");let y;if(m&&T instanceof O.Dict){const G=T.get("R"),Y=T.get("N");(0,O.isName)(G,"C")&&typeof Y=="string"&&(y=m[(0,i.stringToPDFString)(Y)])}y?C.attachment=y:(0,i.warn)('parseDestDictionary - unimplemented "GoToE" action.');break;case"Named":const H=X.get("N");H instanceof O.Name&&(C.action=H.name);break;case"SetOCGState":const z=X.get("State"),$=X.get("PreserveRB");if(!Array.isArray(z)||z.length===0)break;const j=[];for(const G of z)if(G instanceof O.Name)switch(G.name){case"ON":case"OFF":case"Toggle":j.push(G.name);break}else G instanceof O.Ref&&j.push(G.toString());if(j.length!==z.length)break;C.setOCGState={state:j,preserveRB:typeof $=="boolean"?$:!0};break;case"JavaScript":const V=X.get("JS");let ee;V instanceof e.BaseStream?ee=V.getString():typeof V=="string"&&(ee=V);const U=ee&&(0,t.recoverJsURL)((0,i.stringToPDFString)(ee));if(U){f=U.url,C.newWindow=U.newWindow;break}default:if(d==="JavaScript"||d==="SubmitForm")break;(0,i.warn)(`parseDestDictionary - unsupported action: "${d}".`);break}}else c.has("Dest")&&(F=c.get("Dest"));if(typeof f=="string"){const s=(0,i.createValidAbsoluteUrl)(f,u,{addDefaultProtocol:!0,tryConvertEncoding:!0});s&&(C.url=s.href),C.unsafeUrl=f}F&&(F instanceof O.Name&&(F=F.name),typeof F=="string"?C.dest=(0,i.stringToPDFString)(F):Array.isArray(F)&&(C.dest=F))}}l.Catalog=I},(he,l,w)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.NumberTree=l.NameTree=void 0;var t=w(137),i=w(2);class O{constructor(D,L,k){this.constructor===O&&(0,i.unreachable)("Cannot initialize NameOrNumberTree."),this.root=D,this.xref=L,this._type=k}getAll(){const D=new Map;if(!this.root)return D;const L=this.xref,k=new t.RefSet;k.put(this.root);const x=[this.root];for(;x.length>0;){const g=L.fetchIfRef(x.shift());if(!(g instanceof t.Dict))continue;if(g.has("Kids")){const I=g.get("Kids");if(!Array.isArray(I))continue;for(const B of I){if(k.has(B))throw new i.FormatError(`Duplicate entry in "${this._type}" tree.`);x.push(B),k.put(B)}continue}const n=g.get(this._type);if(Array.isArray(n))for(let I=0,B=n.length;I<B;I+=2)D.set(L.fetchIfRef(n[I]),L.fetchIfRef(n[I+1]))}return D}get(D){if(!this.root)return null;const L=this.xref;let k=L.fetchIfRef(this.root),x=0;const g=10;for(;k.has("Kids");){if(++x>g)return(0,i.warn)(`Search depth limit reached for "${this._type}" tree.`),null;const I=k.get("Kids");if(!Array.isArray(I))return null;let B=0,h=I.length-1;for(;B<=h;){const c=B+h>>1,C=L.fetchIfRef(I[c]),u=C.get("Limits");if(D<L.fetchIfRef(u[0]))h=c-1;else if(D>L.fetchIfRef(u[1]))B=c+1;else{k=C;break}}if(B>h)return null}const n=k.get(this._type);if(Array.isArray(n)){let I=0,B=n.length-2;for(;I<=B;){const h=I+B>>1,c=h+(h&1),C=L.fetchIfRef(n[c]);if(D<C)B=c-2;else if(D>C)I=c+2;else return L.fetchIfRef(n[c+1])}}return null}}class P extends O{constructor(D,L){super(D,L,"Names")}}l.NameTree=P;class e extends O{constructor(D,L){super(D,L,"Nums")}}l.NumberTree=e},(he,l,w)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.clearGlobalCaches=O;var t=w(137),i=w(171);function O(){(0,t.clearPrimitiveCaches)(),(0,i.clearUnicodeCaches)()}},(he,l,w)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.FileSpec=void 0;var t=w(2),i=w(138),O=w(137);function P(N){return N.has("UF")?N.get("UF"):N.has("F")?N.get("F"):N.has("Unix")?N.get("Unix"):N.has("Mac")?N.get("Mac"):N.has("DOS")?N.get("DOS"):null}class e{constructor(D,L){D instanceof O.Dict&&(this.xref=L,this.root=D,D.has("FS")&&(this.fs=D.get("FS")),this.description=D.has("Desc")?(0,t.stringToPDFString)(D.get("Desc")):"",D.has("RF")&&(0,t.warn)("Related file specifications are not supported"),this.contentAvailable=!0,D.has("EF")||(this.contentAvailable=!1,(0,t.warn)("Non-embedded file specifications are not supported")))}get filename(){if(!this._filename&&this.root){const D=P(this.root)||"unnamed";this._filename=(0,t.stringToPDFString)(D).replace(/\\\\/g,"\\").replace(/\\\//g,"/").replace(/\\/g,"/")}return this._filename}get content(){if(!this.contentAvailable)return null;!this.contentRef&&this.root&&(this.contentRef=P(this.root.get("EF")));let D=null;if(this.contentRef){const L=this.xref.fetchIfRef(this.contentRef);L instanceof i.BaseStream?D=L.getBytes():(0,t.warn)("Embedded file specification points to non-existing/invalid content")}else(0,t.warn)("Embedded file specification does not have a content");return D}get serializable(){return{filename:this.filename,content:this.content}}}l.FileSpec=e},(he,l,w)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.MetadataParser=void 0;var t=w(197);class i{constructor(P){P=this._repair(P);const N=new t.SimpleXMLParser({lowerCaseName:!0}).parseFromString(P);this._metadataMap=new Map,this._data=P,N&&this._parse(N)}_repair(P){return P.replace(/^[^<]+/,"").replace(/>\\376\\377([^<]+)/g,function(e,N){const D=N.replace(/\\([0-3])([0-7])([0-7])/g,function(k,x,g,n){return String.fromCharCode(x*64+g*8+n*1)}).replace(/&(amp|apos|gt|lt|quot);/g,function(k,x){switch(x){case"amp":return"&";case"apos":return"'";case"gt":return">";case"lt":return"<";case"quot":return'"'}throw new Error(`_repair: ${x} isn't defined.`)}),L=[">"];for(let k=0,x=D.length;k<x;k+=2){const g=D.charCodeAt(k)*256+D.charCodeAt(k+1);g>=32&&g<127&&g!==60&&g!==62&&g!==38?L.push(String.fromCharCode(g)):L.push("&#x"+(65536+g).toString(16).substring(1)+";")}return L.join("")})}_getSequence(P){const e=P.nodeName;return e!=="rdf:bag"&&e!=="rdf:seq"&&e!=="rdf:alt"?null:P.childNodes.filter(N=>N.nodeName==="rdf:li")}_parseArray(P){if(!P.hasChildNodes())return;const[e]=P.childNodes,N=this._getSequence(e)||[];this._metadataMap.set(P.nodeName,N.map(D=>D.textContent.trim()))}_parse(P){let e=P.documentElement;if(e.nodeName!=="rdf:rdf")for(e=e.firstChild;e&&e.nodeName!=="rdf:rdf";)e=e.nextSibling;if(!(!e||e.nodeName!=="rdf:rdf"||!e.hasChildNodes())){for(const N of e.childNodes)if(N.nodeName==="rdf:description")for(const D of N.childNodes){const L=D.nodeName;switch(L){case"#text":continue;case"dc:creator":case"dc:subject":this._parseArray(D);continue}this._metadataMap.set(L,D.textContent.trim())}}}get serializable(){return{parsedData:this._metadataMap,rawData:this._data}}}l.MetadataParser=i},(he,l,w)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.StructTreeRoot=l.StructTreePage=void 0;var t=w(137),i=w(2),O=w(201);const P=40,e={PAGE_CONTENT:"PAGE_CONTENT",STREAM_CONTENT:"STREAM_CONTENT",OBJECT:"OBJECT",ELEMENT:"ELEMENT"};class N{constructor(g){this.dict=g,this.roleMap=new Map}init(){this.readRoleMap()}readRoleMap(){const g=this.dict.get("RoleMap");g instanceof t.Dict&&g.forEach((n,I)=>{I instanceof t.Name&&this.roleMap.set(n,I.name)})}}l.StructTreeRoot=N;class D{constructor(g,n){this.tree=g,this.dict=n,this.kids=[],this.parseKids()}get role(){const g=this.dict.get("S"),n=g instanceof t.Name?g.name:"",{root:I}=this.tree;return I.roleMap.has(n)?I.roleMap.get(n):n}parseKids(){let g=null;const n=this.dict.getRaw("Pg");n instanceof t.Ref&&(g=n.toString());const I=this.dict.get("K");if(Array.isArray(I))for(const B of I){const h=this.parseKid(g,B);h&&this.kids.push(h)}else{const B=this.parseKid(g,I);B&&this.kids.push(B)}}parseKid(g,n){if(Number.isInteger(n))return this.tree.pageDict.objId!==g?null:new L({type:e.PAGE_CONTENT,mcid:n,pageObjId:g});let I=null;if(n instanceof t.Ref?I=this.dict.xref.fetch(n):n instanceof t.Dict&&(I=n),!I)return null;const B=I.getRaw("Pg");B instanceof t.Ref&&(g=B.toString());const h=I.get("Type")instanceof t.Name?I.get("Type").name:null;return h==="MCR"?this.tree.pageDict.objId!==g?null:new L({type:e.STREAM_CONTENT,refObjId:I.getRaw("Stm")instanceof t.Ref?I.getRaw("Stm").toString():null,pageObjId:g,mcid:I.get("MCID")}):h==="OBJR"?this.tree.pageDict.objId!==g?null:new L({type:e.OBJECT,refObjId:I.getRaw("Obj")instanceof t.Ref?I.getRaw("Obj").toString():null,pageObjId:g}):new L({type:e.ELEMENT,dict:I})}}class L{constructor(g){let{type:n,dict:I=null,mcid:B=null,pageObjId:h=null,refObjId:c=null}=g;this.type=n,this.dict=I,this.mcid=B,this.pageObjId=h,this.refObjId=c,this.parentNode=null}}class k{constructor(g,n){this.root=g,this.rootDict=g?g.dict:null,this.pageDict=n,this.nodes=[]}parse(){if(!this.root||!this.rootDict)return;const g=this.rootDict.get("ParentTree");if(!g)return;const n=this.pageDict.get("StructParents");if(!Number.isInteger(n))return;const B=new O.NumberTree(g,this.rootDict.xref).get(n);if(!Array.isArray(B))return;const h=new Map;for(const c of B)c instanceof t.Ref&&this.addNode(this.rootDict.xref.fetch(c),h)}addNode(g,n){let I=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(I>P)return(0,i.warn)("StructTree MAX_DEPTH reached."),null;if(n.has(g))return n.get(g);const B=new D(this,g);n.set(g,B);const h=g.get("P");if(!h||(0,t.isName)(h.get("Type"),"StructTreeRoot"))return this.addTopLevelNode(g,B)||n.delete(g),B;const c=this.addNode(h,n,I+1);if(!c)return B;let C=!1;for(const u of c.kids)u.type===e.ELEMENT&&u.dict===g&&(u.parentNode=B,C=!0);return C||n.delete(g),B}addTopLevelNode(g,n){const I=this.rootDict.get("K");if(!I)return!1;if(I instanceof t.Dict)return I.objId!==g.objId?!1:(this.nodes[0]=n,!0);if(!Array.isArray(I))return!0;let B=!1;for(let h=0;h<I.length;h++){const c=I[h];c&&c.toString()===g.objId&&(this.nodes[h]=n,B=!0)}return B}get serializable(){function g(I,B){let h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(h>P){(0,i.warn)("StructTree too deep to be fully serialized.");return}const c=Object.create(null);c.role=I.role,c.children=[],B.children.push(c);const C=I.dict.get("Alt");typeof C=="string"&&(c.alt=(0,i.stringToPDFString)(C));const u=I.dict.get("Lang");typeof u=="string"&&(c.lang=(0,i.stringToPDFString)(u));for(const m of I.kids){const X=m.type===e.ELEMENT?m.parentNode:null;if(X){g(X,c,h+1);continue}else m.type===e.PAGE_CONTENT||m.type===e.STREAM_CONTENT?c.children.push({type:"content",id:`page${m.pageObjId}_mcid${m.mcid}`}):m.type===e.OBJECT&&c.children.push({type:"object",id:m.refObjId})}}const n=Object.create(null);n.children=[],n.role="Root";for(const I of this.nodes)I&&g(I,n);return n}}l.StructTreePage=k},(he,l,w)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.ObjectLoader=void 0;var t=w(137),i=w(138),O=w(136),P=w(2);function e(L){return L instanceof t.Ref||L instanceof t.Dict||L instanceof i.BaseStream||Array.isArray(L)}function N(L,k){if(L instanceof t.Dict)L=L.getRawValues();else if(L instanceof i.BaseStream)L=L.dict.getRawValues();else if(!Array.isArray(L))return;for(const x of L)e(x)&&k.push(x)}class D{constructor(k,x,g){this.dict=k,this.keys=x,this.xref=g,this.refSet=null}async load(){if(this.xref.stream.isDataLoaded)return;const{keys:k,dict:x}=this;this.refSet=new t.RefSet;const g=[];for(const n of k){const I=x.getRaw(n);I!==void 0&&g.push(I)}return this._walk(g)}async _walk(k){const x=[],g=[];for(;k.length;){let n=k.pop();if(n instanceof t.Ref){if(this.refSet.has(n))continue;try{this.refSet.put(n),n=this.xref.fetch(n)}catch(I){if(!(I instanceof O.MissingDataException)){(0,P.warn)(`ObjectLoader._walk - requesting all data: "${I}".`),this.refSet=null;const{manager:B}=this.xref.stream;return B.requestAllChunks()}x.push(n),g.push({begin:I.begin,end:I.end})}}if(n instanceof i.BaseStream){const I=n.getBaseStreams();if(I){let B=!1;for(const h of I)h.isDataLoaded||(B=!0,g.push({begin:h.start,end:h.end}));B&&x.push(n)}}N(n,k)}if(g.length){await this.xref.stream.manager.requestRanges(g);for(const n of x)n instanceof t.Ref&&this.refSet.remove(n);return this._walk(x)}this.refSet=null}}l.ObjectLoader=D},(he,l,w)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.XFAFactory=void 0;var t=w(208),i=w(212),O=w(218),P=w(216),e=w(209),N=w(2),D=w(219),L=w(229);class k{constructor(g){try{this.root=new D.XFAParser().parse(k._createDocument(g));const n=new i.Binder(this.root);this.form=n.bind(),this.dataHandler=new O.DataHandler(this.root,n.getData()),this.form[t.$globalData].template=this.form}catch(n){(0,N.warn)(`XFA - an error occurred during parsing and binding: ${n}`)}}isValid(){return this.root&&this.form}_createPagesHelper(){const g=this.form[t.$toPages]();return new Promise((n,I)=>{const B=()=>{try{const h=g.next();h.done?n(h.value):setTimeout(B,0)}catch(h){I(h)}};setTimeout(B,0)})}async _createPages(){try{this.pages=await this._createPagesHelper(),this.dims=this.pages.children.map(g=>{const{width:n,height:I}=g.attributes.style;return[0,0,parseInt(n),parseInt(I)]})}catch(g){(0,N.warn)(`XFA - an error occurred during layout: ${g}`)}}getBoundingBox(g){return this.dims[g]}async getNumPages(){return this.pages||await this._createPages(),this.dims.length}setImages(g){this.form[t.$globalData].images=g}setFonts(g){this.form[t.$globalData].fontFinder=new P.FontFinder(g);const n=[];for(let I of this.form[t.$globalData].usedTypefaces)I=(0,e.stripQuotes)(I),this.form[t.$globalData].fontFinder.find(I)||n.push(I);return n.length>0?n:null}appendFonts(g,n){this.form[t.$globalData].fontFinder.add(g,n)}async getPages(){this.pages||await this._createPages();const g=this.pages;return this.pages=null,g}serializeData(g){return this.dataHandler.serialize(g)}static _createDocument(g){return g["/xdp:xdp"]?Object.values(g).join(""):g["xdp:xdp"]}static getRichTextAsHtml(g){if(!g||typeof g!="string")return null;try{let n=new D.XFAParser(L.XhtmlNamespace,!0).parse(g);if(!["body","xhtml"].includes(n[t.$nodeName])){const c=L.XhtmlNamespace.body({});c[t.$appendChild](n),n=c}const I=n[t.$toHTML]();if(!I.success)return null;const{html:B}=I,{attributes:h}=B;return h&&(h.class&&(h.class=h.class.filter(c=>!c.startsWith("xfa"))),h.dir="auto"),{html:B,str:n[t.$text]()}}catch(n){(0,N.warn)(`XFA - an error occurred during parsing of rich text: ${n}`)}return null}}l.XFAFactory=k},(he,l,w)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.XmlObject=l.XFAObjectArray=l.XFAObject=l.XFAAttribute=l.StringObject=l.OptionObject=l.Option10=l.Option01=l.IntegerObject=l.ContentObject=l.$uid=l.$toStyle=l.$toString=l.$toPages=l.$toHTML=l.$text=l.$tabIndex=l.$setValue=l.$setSetAttributes=l.$setId=l.$searchNode=l.$root=l.$resolvePrototypes=l.$removeChild=l.$pushPara=l.$pushGlyphs=l.$popPara=l.$onText=l.$onChildCheck=l.$onChild=l.$nsAttributes=l.$nodeName=l.$namespaceId=l.$isUsable=l.$isTransparent=l.$isThereMoreWidth=l.$isSplittable=l.$isNsAgnostic=l.$isDescendent=l.$isDataValue=l.$isCDATAXml=l.$isBindable=l.$insertAt=l.$indexOf=l.$ids=l.$hasSettableValue=l.$globalData=l.$getTemplateRoot=l.$getSubformParent=l.$getRealChildrenByNameIt=l.$getParent=l.$getNextPage=l.$getExtra=l.$getDataValue=l.$getContainedChildren=l.$getChildrenByNameIt=l.$getChildrenByName=l.$getChildrenByClass=l.$getChildren=l.$getAvailableSpace=l.$getAttributes=l.$getAttributeIt=l.$flushHTML=l.$finalize=l.$extra=l.$dump=l.$data=l.$content=l.$consumed=l.$clone=l.$cleanup=l.$cleanPage=l.$clean=l.$childrenToHTML=l.$appendChild=l.$addHTML=l.$acceptWhitespace=void 0;var t=w(209),i=w(2),O=w(136),P=w(210),e=w(211);const N=Symbol();l.$acceptWhitespace=N;const D=Symbol();l.$addHTML=D;const L=Symbol();l.$appendChild=L;const k=Symbol();l.$childrenToHTML=k;const x=Symbol();l.$clean=x;const g=Symbol();l.$cleanPage=g;const n=Symbol();l.$cleanup=n;const I=Symbol();l.$clone=I;const B=Symbol();l.$consumed=B;const h=Symbol("content");l.$content=h;const c=Symbol("data");l.$data=c;const C=Symbol();l.$dump=C;const u=Symbol("extra");l.$extra=u;const m=Symbol();l.$finalize=m;const X=Symbol();l.$flushHTML=X;const f=Symbol();l.$getAttributeIt=f;const F=Symbol();l.$getAttributes=F;const s=Symbol();l.$getAvailableSpace=s;const d=Symbol();l.$getChildrenByClass=d;const S=Symbol();l.$getChildrenByName=S;const r=Symbol();l.$getChildrenByNameIt=r;const o=Symbol();l.$getDataValue=o;const A=Symbol();l.$getExtra=A;const p=Symbol();l.$getRealChildrenByNameIt=p;const v=Symbol();l.$getChildren=v;const R=Symbol();l.$getContainedChildren=R;const T=Symbol();l.$getNextPage=T;const y=Symbol();l.$getSubformParent=y;const H=Symbol();l.$getParent=H;const z=Symbol();l.$getTemplateRoot=z;const $=Symbol();l.$globalData=$;const j=Symbol();l.$hasSettableValue=j;const V=Symbol();l.$ids=V;const ee=Symbol();l.$indexOf=ee;const U=Symbol();l.$insertAt=U;const G=Symbol();l.$isCDATAXml=G;const Y=Symbol();l.$isBindable=Y;const oe=Symbol();l.$isDataValue=oe;const se=Symbol();l.$isDescendent=se;const Q=Symbol();l.$isNsAgnostic=Q;const E=Symbol();l.$isSplittable=E;const M=Symbol();l.$isThereMoreWidth=M;const _=Symbol();l.$isTransparent=_;const J=Symbol();l.$isUsable=J;const K=Symbol(),te=Symbol("namespaceId");l.$namespaceId=te;const Z=Symbol("nodeName");l.$nodeName=Z;const ce=Symbol();l.$nsAttributes=ce;const ne=Symbol();l.$onChild=ne;const re=Symbol();l.$onChildCheck=re;const ie=Symbol();l.$onText=ie;const ae=Symbol();l.$pushGlyphs=ae;const ue=Symbol();l.$popPara=ue;const fe=Symbol();l.$pushPara=fe;const me=Symbol();l.$removeChild=me;const Fe=Symbol("root");l.$root=Fe;const pe=Symbol();l.$resolvePrototypes=pe;const Ce=Symbol();l.$searchNode=Ce;const be=Symbol();l.$setId=be;const Ie=Symbol();l.$setSetAttributes=Ie;const ye=Symbol();l.$setValue=ye;const de=Symbol();l.$tabIndex=de;const ge=Symbol();l.$text=ge;const xe=Symbol();l.$toPages=xe;const Oe=Symbol();l.$toHTML=Oe;const je=Symbol();l.$toString=je;const it=Symbol();l.$toStyle=it;const ke=Symbol("uid");l.$uid=ke;const $e=Symbol(),Ge=Symbol(),Qe=Symbol(),ve=Symbol("_children"),Ne=Symbol(),Me=Symbol(),nt=Symbol(),_e=Symbol(),rt=Symbol(),Xe=Symbol(),Je=Symbol(),et=Symbol(),pt=Symbol(),xt=Symbol("parent"),Ot=Symbol(),st=Symbol(),Nt=Symbol();let Ut=0;const _t=P.NamespaceIds.datasets.id;class Tt{constructor(we,Te){let Be=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;this[te]=we,this[Z]=Te,this[Je]=Be,this[xt]=null,this[ve]=[],this[ke]=`${Te}${Ut++}`,this[$]=null}[ne](we){if(!this[Je]||!this[re](we))return!1;const Te=we[Z],Be=this[Te];if(Be instanceof Le){if(Be.push(we))return this[L](we),!0}else return Be!==null&&this[me](Be),this[Te]=we,this[L](we),!0;let Ye="";return this.id?Ye=` (id: ${this.id})`:this.name&&(Ye=` (name: ${this.name} ${this.h.value})`),(0,i.warn)(`XFA - node "${this[Z]}"${Ye} has already enough "${Te}"!`),!1}[re](we){return this.hasOwnProperty(we[Z])&&we[te]===this[te]}[Q](){return!1}[N](){return!1}[G](){return!1}[Y](){return!1}[ue](){this.para&&this[z]()[u].paraStack.pop()}[fe](){this[z]()[u].paraStack.push(this.para)}[be](we){this.id&&this[te]===P.NamespaceIds.template.id&&we.set(this.id,this)}[z](){return this[$].template}[E](){return!1}[M](){return!1}[L](we){we[xt]=this,this[ve].push(we),!we[$]&&this[$]&&(we[$]=this[$])}[me](we){const Te=this[ve].indexOf(we);this[ve].splice(Te,1)}[j](){return this.hasOwnProperty("value")}[ye](we){}[ie](we){}[m](){}[x](we){delete this[Je],this[n]&&(we.clean(this[n]),delete this[n])}[ee](we){return this[ve].indexOf(we)}[U](we,Te){Te[xt]=this,this[ve].splice(we,0,Te),!Te[$]&&this[$]&&(Te[$]=this[$])}[_](){return!this.name}[K](){return""}[ge](){return this[ve].length===0?this[h]:this[ve].map(we=>we[ge]()).join("")}get[Qe](){const we=Object.getPrototypeOf(this);if(!we._attributes){const Te=we._attributes=new Set;for(const Be of Object.getOwnPropertyNames(this)){if(this[Be]===null||this[Be]instanceof Tt||this[Be]instanceof Le)break;Te.add(Be)}}return(0,i.shadow)(this,Qe,we._attributes)}[se](we){let Te=this;for(;Te;){if(Te===we)return!0;Te=Te[H]()}return!1}[H](){return this[xt]}[y](){return this[H]()}[v](){let we=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return we?this[we]:this[ve]}[C](){const we=Object.create(null);this[h]&&(we.$content=this[h]);for(const Te of Object.getOwnPropertyNames(this)){const Be=this[Te];Be!==null&&(Be instanceof Tt?we[Te]=Be[C]():Be instanceof Le?Be.isEmpty()||(we[Te]=Be.dump()):we[Te]=Be)}return we}[it](){return null}[Oe](){return t.HTMLResult.EMPTY}*[R](){for(const we of this[v]())yield we}*[_e](we,Te){for(const Be of this[R]())if(!we||Te===we.has(Be[Z])){const Ye=this[s](),We=Be[Oe](Ye);We.success||(this[u].failingNode=Be),yield We}}[X](){return null}[D](we,Te){this[u].children.push(we)}[s](){}[k](we){let{filter:Te=null,include:Be=!0}=we;if(!this[u].generator)this[u].generator=this[_e](Te,Be);else{const Ye=this[s](),We=this[u].failingNode[Oe](Ye);if(!We.success)return We;We.html&&this[D](We.html,We.bbox),delete this[u].failingNode}for(;;){const Ye=this[u].generator.next();if(Ye.done)break;const We=Ye.value;if(!We.success)return We;We.html&&this[D](We.html,We.bbox)}return this[u].generator=null,t.HTMLResult.EMPTY}[Ie](we){this[st]=new Set(Object.keys(we))}[Xe](we){const Te=this[Qe],Be=this[st];return[...we].filter(Ye=>Te.has(Ye)&&!Be.has(Ye))}[pe](we){let Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new Set;for(const Be of this[ve])Be[Ot](we,Te)}[Ot](we,Te){const Be=this[rt](we,Te);Be?this[$e](Be,we,Te):this[pe](we,Te)}[rt](we,Te){const{use:Be,usehref:Ye}=this;if(!Be&&!Ye)return null;let We=null,ct=null,tt=null,ut=Be;if(Ye?(ut=Ye,Ye.startsWith("#som(")&&Ye.endsWith(")")?ct=Ye.slice(5,Ye.length-1):Ye.startsWith(".#som(")&&Ye.endsWith(")")?ct=Ye.slice(6,Ye.length-1):Ye.startsWith("#")?tt=Ye.slice(1):Ye.startsWith(".#")&&(tt=Ye.slice(2))):Be.startsWith("#")?tt=Be.slice(1):ct=Be,this.use=this.usehref="",tt?We=we.get(tt):(We=(0,e.searchNode)(we.get(Fe),this,ct,!0,!1),We&&(We=We[0])),!We)return(0,i.warn)(`XFA - Invalid prototype reference: ${ut}.`),null;if(We[Z]!==this[Z])return(0,i.warn)(`XFA - Incompatible prototype: ${We[Z]} !== ${this[Z]}.`),null;if(Te.has(We))return(0,i.warn)("XFA - Cycle detected in prototypes use."),null;Te.add(We);const bt=We[rt](we,Te);return bt&&We[$e](bt,we,Te),We[pe](we,Te),Te.delete(We),We}[$e](we,Te,Be){if(Be.has(we)){(0,i.warn)("XFA - Cycle detected in prototypes use.");return}!this[h]&&we[h]&&(this[h]=we[h]),new Set(Be).add(we);for(const We of this[Xe](we[st]))this[We]=we[We],this[st]&&this[st].add(We);for(const We of Object.getOwnPropertyNames(this)){if(this[Qe].has(We))continue;const ct=this[We],tt=we[We];if(ct instanceof Le){for(const ut of ct[ve])ut[Ot](Te,Be);for(let ut=ct[ve].length,bt=tt[ve].length;ut<bt;ut++){const jt=we[ve][ut][I]();if(ct.push(jt))jt[xt]=this,this[ve].push(jt),jt[Ot](Te,Be);else break}continue}if(ct!==null){ct[pe](Te,Be),tt&&ct[$e](tt,Te,Be);continue}if(tt!==null){const ut=tt[I]();ut[xt]=this,this[We]=ut,this[ve].push(ut),ut[Ot](Te,Be)}}}static[Ne](we){return Array.isArray(we)?we.map(Te=>Tt[Ne](Te)):typeof we=="object"&&we!==null?Object.assign({},we):we}[I](){const we=Object.create(Object.getPrototypeOf(this));for(const Te of Object.getOwnPropertySymbols(this))try{we[Te]=this[Te]}catch{(0,i.shadow)(we,Te,this[Te])}we[ke]=`${we[Z]}${Ut++}`,we[ve]=[];for(const Te of Object.getOwnPropertyNames(this)){if(this[Qe].has(Te)){we[Te]=Tt[Ne](this[Te]);continue}const Be=this[Te];Be instanceof Le?we[Te]=new Le(Be[et]):we[Te]=null}for(const Te of this[ve]){const Be=Te[Z],Ye=Te[I]();we[ve].push(Ye),Ye[xt]=we,we[Be]===null?we[Be]=Ye:we[Be][ve].push(Ye)}return we}[v](){let we=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return we?this[ve].filter(Te=>Te[Z]===we):this[ve]}[d](we){return this[we]}[S](we,Te){let Be=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return Array.from(this[r](we,Te,Be))}[r](we,Te){var Be=this;let Ye=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return function*(){if(we==="parent"){yield Be[xt];return}for(const We of Be[ve])We[Z]===we&&(yield We),We.name===we&&(yield We),(Te||We[_]())&&(yield*We[r](we,Te,!1));Ye&&Be[Qe].has(we)&&(yield new Re(Be,we,Be[we]))}()}}l.XFAObject=Tt;class Le{constructor(){let we=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1/0;this[et]=we,this[ve]=[]}push(we){return this[ve].length<=this[et]?(this[ve].push(we),!0):((0,i.warn)(`XFA - node "${we[Z]}" accepts no more than ${this[et]} children`),!1)}isEmpty(){return this[ve].length===0}dump(){return this[ve].length===1?this[ve][0][C]():this[ve].map(we=>we[C]())}[I](){const we=new Le(this[et]);return we[ve]=this[ve].map(Te=>Te[I]()),we}get children(){return this[ve]}clear(){this[ve].length=0}}l.XFAObjectArray=Le;class Re{constructor(we,Te,Be){this[xt]=we,this[Z]=Te,this[h]=Be,this[B]=!1,this[ke]=`attribute${Ut++}`}[H](){return this[xt]}[oe](){return!0}[o](){return this[h].trim()}[ye](we){we=we.value||"",this[h]=we.toString()}[ge](){return this[h]}[se](we){return this[xt]===we||this[xt][se](we)}}l.XFAAttribute=Re;class Ue extends Tt{constructor(we,Te){let Be=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(super(we,Te),this[h]="",this[Me]=null,Te!=="#text"){const Ye=new Map;this[Ge]=Ye;for(const[We,ct]of Object.entries(Be))Ye.set(We,new Re(this,We,ct));if(Be.hasOwnProperty(ce)){const We=Be[ce].xfa.dataNode;We!==void 0&&(We==="dataGroup"?this[Me]=!1:We==="dataValue"&&(this[Me]=!0))}}this[B]=!1}[je](we){const Te=this[Z];if(Te==="#text"){we.push((0,O.encodeToXmlString)(this[h]));return}const Be=(0,i.utf8StringToString)(Te),Ye=this[te]===_t?"xfa:":"";we.push(`<${Ye}${Be}`);for(const[We,ct]of this[Ge].entries()){const tt=(0,i.utf8StringToString)(We);we.push(` ${tt}="${(0,O.encodeToXmlString)(ct[h])}"`)}if(this[Me]!==null&&(this[Me]?we.push(' xfa:dataNode="dataValue"'):we.push(' xfa:dataNode="dataGroup"')),!this[h]&&this[ve].length===0){we.push("/>");return}if(we.push(">"),this[h])typeof this[h]=="string"?we.push((0,O.encodeToXmlString)(this[h])):this[h][je](we);else for(const We of this[ve])We[je](we);we.push(`</${Ye}${Be}>`)}[ne](we){if(this[h]){const Te=new Ue(this[te],"#text");this[L](Te),Te[h]=this[h],this[h]=""}return this[L](we),!0}[ie](we){this[h]+=we}[m](){if(this[h]&&this[ve].length>0){const we=new Ue(this[te],"#text");this[L](we),we[h]=this[h],delete this[h]}}[Oe](){return this[Z]==="#text"?t.HTMLResult.success({name:"#text",value:this[h]}):t.HTMLResult.EMPTY}[v](){let we=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return we?this[ve].filter(Te=>Te[Z]===we):this[ve]}[F](){return this[Ge]}[d](we){const Te=this[Ge].get(we);return Te!==void 0?Te:this[v](we)}*[r](we,Te){const Be=this[Ge].get(we);Be&&(yield Be);for(const Ye of this[ve])Ye[Z]===we&&(yield Ye),Te&&(yield*Ye[r](we,Te))}*[f](we,Te){const Be=this[Ge].get(we);Be&&(!Te||!Be[B])&&(yield Be);for(const Ye of this[ve])yield*Ye[f](we,Te)}*[p](we,Te,Be){for(const Ye of this[ve])Ye[Z]===we&&(!Be||!Ye[B])&&(yield Ye),Te&&(yield*Ye[p](we,Te,Be))}[oe](){return this[Me]===null?this[ve].length===0||this[ve][0][te]===P.NamespaceIds.xhtml.id:this[Me]}[o](){return this[Me]===null?this[ve].length===0?this[h].trim():this[ve][0][te]===P.NamespaceIds.xhtml.id?this[ve][0][ge]().trim():null:this[h].trim()}[ye](we){we=we.value||"",this[h]=we.toString()}[C](){let we=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const Te=Object.create(null);we&&(Te.$ns=this[te]),this[h]&&(Te.$content=this[h]),Te.$name=this[Z],Te.children=[];for(const Be of this[ve])Te.children.push(Be[C](we));Te.attributes=Object.create(null);for(const[Be,Ye]of this[Ge])Te.attributes[Be]=Ye[h];return Te}}l.XmlObject=Ue;class Ke extends Tt{constructor(we,Te){super(we,Te),this[h]=""}[ie](we){this[h]+=we}[m](){}}l.ContentObject=Ke;class He extends Ke{constructor(we,Te,Be){super(we,Te),this[pt]=Be}[m](){this[h]=(0,t.getKeyword)({data:this[h],defaultValue:this[pt][0],validate:we=>this[pt].includes(we)})}[x](we){super[x](we),delete this[pt]}}l.OptionObject=He;class lt extends Ke{[m](){this[h]=this[h].trim()}}l.StringObject=lt;class Ze extends Ke{constructor(we,Te,Be,Ye){super(we,Te),this[nt]=Be,this[Nt]=Ye}[m](){this[h]=(0,t.getInteger)({data:this[h],defaultValue:this[nt],validate:this[Nt]})}[x](we){super[x](we),delete this[nt],delete this[Nt]}}l.IntegerObject=Ze;class qe extends Ze{constructor(we,Te){super(we,Te,0,Be=>Be===1)}}l.Option01=qe;class dt extends Ze{constructor(we,Te){super(we,Te,1,Be=>Be===0)}}l.Option10=dt},(he,l,w)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.HTMLResult=void 0,l.getBBox=I,l.getColor=n,l.getFloat=N,l.getInteger=e,l.getKeyword=D,l.getMeasurement=k,l.getRatio=x,l.getRelevant=g,l.getStringOption=L,l.stripQuotes=P;var t=w(2);const i={pt:h=>h,cm:h=>h/2.54*72,mm:h=>h/(10*2.54)*72,in:h=>h*72,px:h=>h},O=/([+-]?\d+\.?\d*)(.*)/;function P(h){return h.startsWith("'")||h.startsWith('"')?h.slice(1,h.length-1):h}function e(h){let{data:c,defaultValue:C,validate:u}=h;if(!c)return C;c=c.trim();const m=parseInt(c,10);return!isNaN(m)&&u(m)?m:C}function N(h){let{data:c,defaultValue:C,validate:u}=h;if(!c)return C;c=c.trim();const m=parseFloat(c);return!isNaN(m)&&u(m)?m:C}function D(h){let{data:c,defaultValue:C,validate:u}=h;return c?(c=c.trim(),u(c)?c:C):C}function L(h,c){return D({data:h,defaultValue:c[0],validate:C=>c.includes(C)})}function k(h){let c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0";if(c=c||"0",!h)return k(c);const C=h.trim().match(O);if(!C)return k(c);const[,u,m]=C,X=parseFloat(u);if(isNaN(X))return k(c);if(X===0)return 0;const f=i[m];return f?f(X):X}function x(h){if(!h)return{num:1,den:1};const c=h.trim().split(/\s*:\s*/).map(m=>parseFloat(m)).filter(m=>!isNaN(m));if(c.length===1&&c.push(1),c.length===0)return{num:1,den:1};const[C,u]=c;return{num:C,den:u}}function g(h){return h?h.trim().split(/\s+/).map(c=>({excluded:c[0]==="-",viewname:c.substring(1)})):[]}function n(h){let c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[0,0,0],[C,u,m]=c;if(!h)return{r:C,g:u,b:m};const X=h.trim().split(/\s*,\s*/).map(f=>Math.min(Math.max(0,parseInt(f.trim(),10)),255)).map(f=>isNaN(f)?0:f);return X.length<3?{r:C,g:u,b:m}:([C,u,m]=X,{r:C,g:u,b:m})}function I(h){if(!h)return{x:-1,y:-1,width:-1,height:-1};const C=h.trim().split(/\s*,\s*/).map(F=>k(F,"-1"));if(C.length<4||C[2]<0||C[3]<0)return{x:-1,y:-1,width:-1,height:-1};const[u,m,X,f]=C;return{x:u,y:m,width:X,height:f}}class B{static get FAILURE(){return(0,t.shadow)(this,"FAILURE",new B(!1,null,null,null))}static get EMPTY(){return(0,t.shadow)(this,"EMPTY",new B(!0,null,null,null))}constructor(c,C,u,m){this.success=c,this.html=C,this.bbox=u,this.breakNode=m}isBreak(){return!!this.breakNode}static breakNode(c){return new B(!1,null,null,c)}static success(c){let C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return new B(!0,c,C,null)}}l.HTMLResult=B},(he,l)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.NamespaceIds=l.$buildXFAObject=void 0;const w=Symbol();l.$buildXFAObject=w;const t={config:{id:0,check:i=>i.startsWith("http://www.xfa.org/schema/xci/")},connectionSet:{id:1,check:i=>i.startsWith("http://www.xfa.org/schema/xfa-connection-set/")},datasets:{id:2,check:i=>i.startsWith("http://www.xfa.org/schema/xfa-data/")},form:{id:3,check:i=>i.startsWith("http://www.xfa.org/schema/xfa-form/")},localeSet:{id:4,check:i=>i.startsWith("http://www.xfa.org/schema/xfa-locale-set/")},pdf:{id:5,check:i=>i==="http://ns.adobe.com/xdp/pdf/"},signature:{id:6,check:i=>i==="http://www.w3.org/2000/09/xmldsig#"},sourceSet:{id:7,check:i=>i.startsWith("http://www.xfa.org/schema/xfa-source-set/")},stylesheet:{id:8,check:i=>i==="http://www.w3.org/1999/XSL/Transform"},template:{id:9,check:i=>i.startsWith("http://www.xfa.org/schema/xfa-template/")},xdc:{id:10,check:i=>i.startsWith("http://www.xfa.org/schema/xdc/")},xdp:{id:11,check:i=>i==="http://ns.adobe.com/xdp/"},xfdf:{id:12,check:i=>i==="http://ns.adobe.com/xfdf/"},xhtml:{id:13,check:i=>i==="http://www.w3.org/1999/xhtml"},xmpmeta:{id:14,check:i=>i==="http://ns.adobe.com/xmpmeta/"}};l.NamespaceIds=t},(he,l,w)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.createDataNode=B,l.searchNode=n;var t=w(208),i=w(210),O=w(2);const P=/^[^.[]+/,e=/^[^\]]+/,N={dot:0,dotDot:1,dotHash:2,dotBracket:3,dotParen:4},D=new Map([["$data",(h,c)=>h.datasets?h.datasets.data:h],["$record",(h,c)=>(h.datasets?h.datasets.data:h)[t.$getChildren]()[0]],["$template",(h,c)=>h.template],["$connectionSet",(h,c)=>h.connectionSet],["$form",(h,c)=>h.form],["$layout",(h,c)=>h.layout],["$host",(h,c)=>h.host],["$dataWindow",(h,c)=>h.dataWindow],["$event",(h,c)=>h.event],["!",(h,c)=>h.datasets],["$xfa",(h,c)=>h],["xfa",(h,c)=>h],["$",(h,c)=>c]]),L=new WeakMap,k=i.NamespaceIds.datasets.id;function x(h){return h=h.trim(),h==="*"?1/0:parseInt(h,10)||0}function g(h,c){let C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,u=h.match(P);if(!u)return null;let[m]=u;const X=[{name:m,cacheName:"."+m,index:0,js:null,formCalc:null,operator:N.dot}];let f=m.length;for(;f<h.length;){const F=f;if(h.charAt(f++)==="["){if(u=h.slice(f).match(e),!u)return(0,O.warn)("XFA - Invalid index in SOM expression"),null;X.at(-1).index=x(u[0]),f+=u[0].length+1;continue}let d;switch(h.charAt(f)){case".":if(!c)return null;f++,d=N.dotDot;break;case"#":f++,d=N.dotHash;break;case"[":if(C)return(0,O.warn)("XFA - SOM expression contains a FormCalc subexpression which is not supported for now."),null;d=N.dotBracket;break;case"(":if(C)return(0,O.warn)("XFA - SOM expression contains a JavaScript subexpression which is not supported for now."),null;d=N.dotParen;break;default:d=N.dot;break}if(u=h.slice(f).match(P),!u)break;[m]=u,f+=m.length,X.push({name:m,cacheName:h.slice(F,f),operator:d,index:0,js:null,formCalc:null})}return X}function n(h,c,C){let u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,m=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0;const X=g(C,u);if(!X)return null;const f=D.get(X[0].name);let F=0,s;f?(s=!0,h=[f(h,c)],F=1):(s=c===null,h=[c||h]);for(let d=X.length;F<d;F++){const{name:S,cacheName:r,operator:o,index:A}=X[F],p=[];for(const v of h){if(!(v instanceof t.XFAObject))continue;let R,T;if(m&&(T=L.get(v),T||(T=new Map,L.set(v,T)),R=T.get(r)),!R){switch(o){case N.dot:R=v[t.$getChildrenByName](S,!1);break;case N.dotDot:R=v[t.$getChildrenByName](S,!0);break;case N.dotHash:R=v[t.$getChildrenByClass](S),R instanceof t.XFAObjectArray?R=R.children:R=[R];break}m&&T.set(r,R)}R.length>0&&p.push(R)}if(p.length===0&&!s&&F===0){if(c=c[t.$getParent](),!c)return null;F=-1,h=[c];continue}isFinite(A)?h=p.filter(v=>A<v.length).map(v=>v[A]):h=p.flat()}return h.length===0?null:h}function I(h,c){let C=null;for(const{name:u,index:m}of c){for(let X=0,f=isFinite(m)?m:0;X<=f;X++){const F=h[t.$namespaceId]===k?-1:h[t.$namespaceId];C=new t.XmlObject(F,u),h[t.$appendChild](C)}h=C}return C}function B(h,c,C){const u=g(C);if(!u||u.some(f=>f.operator===N.dotDot))return null;const m=D.get(u[0].name);let X=0;m?(h=m(h,c),X=1):h=c||h;for(let f=u.length;X<f;X++){const{name:F,operator:s,index:d}=u[X];if(!isFinite(d))return u[X].index=0,I(h,u.slice(X));let S;switch(s){case N.dot:S=h[t.$getChildrenByName](F,!1);break;case N.dotDot:S=h[t.$getChildrenByName](F,!0);break;case N.dotHash:S=h[t.$getChildrenByClass](F),S instanceof t.XFAObjectArray?S=S.children:S=[S];break}if(S.length===0)return I(h,u.slice(X));if(d<S.length){const r=S[d];if(!(r instanceof t.XFAObject))return(0,O.warn)("XFA - Cannot create a node."),null;h=r}else return u[X].index=d-S.length,I(h,u.slice(X))}return null}},(he,l,w)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.Binder=void 0;var t=w(208),i=w(213),O=w(211),P=w(210),e=w(2);const N=P.NamespaceIds.datasets.id;function D(k){const x=new i.Text({});return x[t.$content]=k,x}class L{constructor(x){this.root=x,this.datasets=x.datasets,x.datasets&&x.datasets.data?this.data=x.datasets.data:this.data=new t.XmlObject(P.NamespaceIds.datasets.id,"data"),this.emptyMerge=this.data[t.$getChildren]().length===0,this.root.form=this.form=x.template[t.$clone]()}_isConsumeData(){return!this.emptyMerge&&this._mergeMode}_isMatchTemplate(){return!this._isConsumeData()}bind(){return this._bindElement(this.form,this.data),this.form}getData(){return this.data}_bindValue(x,g,n){if(x[t.$data]=g,x[t.$hasSettableValue]())if(g[t.$isDataValue]()){const I=g[t.$getDataValue]();x[t.$setValue](D(I))}else if(x instanceof i.Field&&x.ui&&x.ui.choiceList&&x.ui.choiceList.open==="multiSelect"){const I=g[t.$getChildren]().map(B=>B[t.$content].trim()).join(`
`);x[t.$setValue](D(I))}else this._isConsumeData()&&(0,e.warn)("XFA - Nodes haven't the same type.");else!g[t.$isDataValue]()||this._isMatchTemplate()?this._bindElement(x,g):(0,e.warn)("XFA - Nodes haven't the same type.")}_findDataByNameToConsume(x,g,n,I){if(!x)return null;let B,h;for(let c=0;c<3;c++){for(B=n[t.$getRealChildrenByNameIt](x,!1,!0);h=B.next().value,!!h;)if(g===h[t.$isDataValue]())return h;if(n[t.$namespaceId]===P.NamespaceIds.datasets.id&&n[t.$nodeName]==="data")break;n=n[t.$getParent]()}return I?(B=this.data[t.$getRealChildrenByNameIt](x,!0,!1),h=B.next().value,h||(B=this.data[t.$getAttributeIt](x,!0),h=B.next().value,h&&h[t.$isDataValue]())?h:null):null}_setProperties(x,g){if(x.hasOwnProperty("setProperty"))for(const{ref:n,target:I,connection:B}of x.setProperty.children){if(B||!n)continue;const h=(0,O.searchNode)(this.root,g,n,!1,!1);if(!h){(0,e.warn)(`XFA - Invalid reference: ${n}.`);continue}const[c]=h;if(!c[t.$isDescendent](this.data)){(0,e.warn)("XFA - Invalid node: must be a data node.");continue}const C=(0,O.searchNode)(this.root,x,I,!1,!1);if(!C){(0,e.warn)(`XFA - Invalid target: ${I}.`);continue}const[u]=C;if(!u[t.$isDescendent](x)){(0,e.warn)("XFA - Invalid target: must be a property or subproperty.");continue}const m=u[t.$getParent]();if(u instanceof i.SetProperty||m instanceof i.SetProperty){(0,e.warn)("XFA - Invalid target: cannot be a setProperty or one of its properties.");continue}if(u instanceof i.BindItems||m instanceof i.BindItems){(0,e.warn)("XFA - Invalid target: cannot be a bindItems or one of its properties.");continue}const X=c[t.$text](),f=u[t.$nodeName];if(u instanceof t.XFAAttribute){const F=Object.create(null);F[f]=X;const s=Reflect.construct(Object.getPrototypeOf(m).constructor,[F]);m[f]=s[f];continue}if(!u.hasOwnProperty(t.$content)){(0,e.warn)("XFA - Invalid node to use in setProperty");continue}u[t.$data]=c,u[t.$content]=X,u[t.$finalize]()}}_bindItems(x,g){if(!x.hasOwnProperty("items")||!x.hasOwnProperty("bindItems")||x.bindItems.isEmpty())return;for(const B of x.items.children)x[t.$removeChild](B);x.items.clear();const n=new i.Items({}),I=new i.Items({});x[t.$appendChild](n),x.items.push(n),x[t.$appendChild](I),x.items.push(I);for(const{ref:B,labelRef:h,valueRef:c,connection:C}of x.bindItems.children){if(C||!B)continue;const u=(0,O.searchNode)(this.root,g,B,!1,!1);if(!u){(0,e.warn)(`XFA - Invalid reference: ${B}.`);continue}for(const m of u){if(!m[t.$isDescendent](this.datasets)){(0,e.warn)(`XFA - Invalid ref (${B}): must be a datasets child.`);continue}const X=(0,O.searchNode)(this.root,m,h,!0,!1);if(!X){(0,e.warn)(`XFA - Invalid label: ${h}.`);continue}const[f]=X;if(!f[t.$isDescendent](this.datasets)){(0,e.warn)("XFA - Invalid label: must be a datasets child.");continue}const F=(0,O.searchNode)(this.root,m,c,!0,!1);if(!F){(0,e.warn)(`XFA - Invalid value: ${c}.`);continue}const[s]=F;if(!s[t.$isDescendent](this.datasets)){(0,e.warn)("XFA - Invalid value: must be a datasets child.");continue}const d=D(f[t.$text]()),S=D(s[t.$text]());n[t.$appendChild](d),n.text.push(d),I[t.$appendChild](S),I.text.push(S)}}}_bindOccurrences(x,g,n){let I;if(g.length>1&&(I=x[t.$clone](),I[t.$removeChild](I.occur),I.occur=null),this._bindValue(x,g[0],n),this._setProperties(x,g[0]),this._bindItems(x,g[0]),g.length===1)return;const B=x[t.$getParent](),h=x[t.$nodeName],c=B[t.$indexOf](x);for(let C=1,u=g.length;C<u;C++){const m=g[C],X=I[t.$clone]();B[h].push(X),B[t.$insertAt](c+C,X),this._bindValue(X,m,n),this._setProperties(X,m),this._bindItems(X,m)}}_createOccurrences(x){if(!this.emptyMerge)return;const{occur:g}=x;if(!g||g.initial<=1)return;const n=x[t.$getParent](),I=x[t.$nodeName];if(!(n[I]instanceof t.XFAObjectArray))return;let B;x.name?B=n[I].children.filter(C=>C.name===x.name).length:B=n[I].children.length;const h=n[t.$indexOf](x)+1,c=g.initial-B;if(c){const C=x[t.$clone]();C[t.$removeChild](C.occur),C.occur=null,n[I].push(C),n[t.$insertAt](h,C);for(let u=1;u<c;u++){const m=C[t.$clone]();n[I].push(m),n[t.$insertAt](h+u,m)}}}_getOccurInfo(x){const{name:g,occur:n}=x;if(!n||!g)return[1,1];const I=n.max===-1?1/0:n.max;return[n.min,I]}_setAndBind(x,g){this._setProperties(x,g),this._bindItems(x,g),this._bindElement(x,g)}_bindElement(x,g){const n=[];this._createOccurrences(x);for(const I of x[t.$getChildren]()){if(I[t.$data])continue;if(this._mergeMode===void 0&&I[t.$nodeName]==="subform"){this._mergeMode=I.mergeMode==="consumeData";const X=g[t.$getChildren]();if(X.length>0)this._bindOccurrences(I,[X[0]],null);else if(this.emptyMerge){const f=g[t.$namespaceId]===N?-1:g[t.$namespaceId],F=I[t.$data]=new t.XmlObject(f,I.name||"root");g[t.$appendChild](F),this._bindElement(I,F)}continue}if(!I[t.$isBindable]())continue;let B=!1,h=null,c=null,C=null;if(I.bind){switch(I.bind.match){case"none":this._setAndBind(I,g);continue;case"global":B=!0;break;case"dataRef":if(!I.bind.ref){(0,e.warn)(`XFA - ref is empty in node ${I[t.$nodeName]}.`),this._setAndBind(I,g);continue}c=I.bind.ref;break}I.bind.picture&&(h=I.bind.picture[t.$content])}const[u,m]=this._getOccurInfo(I);if(c)if(C=(0,O.searchNode)(this.root,g,c,!0,!1),C===null){if(C=(0,O.createDataNode)(this.data,g,c),!C)continue;this._isConsumeData()&&(C[t.$consumed]=!0),this._setAndBind(I,C);continue}else this._isConsumeData()&&(C=C.filter(X=>!X[t.$consumed])),C.length>m?C=C.slice(0,m):C.length===0&&(C=null),C&&this._isConsumeData()&&C.forEach(X=>{X[t.$consumed]=!0});else{if(!I.name){this._setAndBind(I,g);continue}if(this._isConsumeData()){const X=[];for(;X.length<m;){const f=this._findDataByNameToConsume(I.name,I[t.$hasSettableValue](),g,B);if(!f)break;f[t.$consumed]=!0,X.push(f)}C=X.length>0?X:null}else{if(C=g[t.$getRealChildrenByNameIt](I.name,!1,this.emptyMerge).next().value,!C){if(u===0){n.push(I);continue}const X=g[t.$namespaceId]===N?-1:g[t.$namespaceId];C=I[t.$data]=new t.XmlObject(X,I.name),this.emptyMerge&&(C[t.$consumed]=!0),g[t.$appendChild](C),this._setAndBind(I,C);continue}this.emptyMerge&&(C[t.$consumed]=!0),C=[C]}}C?this._bindOccurrences(I,C,h):u>0?this._setAndBind(I,g):n.push(I)}n.forEach(I=>I[t.$getParent]()[t.$removeChild](I))}}l.Binder=L},(he,l,w)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.Value=l.Text=l.TemplateNamespace=l.Template=l.SetProperty=l.Items=l.Field=l.BindItems=void 0;var t=w(208),i=w(210),O=w(214),P=w(215),e=w(209),N=w(2),D=w(216),L=w(136),k=w(211);const x=i.NamespaceIds.template.id,g="http://www.w3.org/2000/svg",n=2,I=3,B=5e3,h=/^H(\d+)$/,c=new Set(["image/gif","image/jpeg","image/jpg","image/pjpeg","image/png","image/apng","image/x-png","image/bmp","image/x-ms-bmp","image/tiff","image/tif","application/octet-stream"]),C=[[[66,77],"image/bmp"],[[255,216,255],"image/jpeg"],[[73,73,42,0],"image/tiff"],[[77,77,0,42],"image/tiff"],[[71,73,70,56,57,97],"image/gif"],[[137,80,78,71,13,10,26,10],"image/png"]];function u(Ee){if(!Ee||!Ee.border)return{w:0,h:0};const a=Ee.border[t.$getExtra]();return a?{w:a.widths[0]+a.widths[2]+a.insets[0]+a.insets[2],h:a.widths[1]+a.widths[3]+a.insets[1]+a.insets[3]}:{w:0,h:0}}function m(Ee){return Ee.margin&&(Ee.margin.topInset||Ee.margin.rightInset||Ee.margin.bottomInset||Ee.margin.leftInset)}function X(Ee,a){if(!Ee.value){const W=new Cn({});Ee[t.$appendChild](W),Ee.value=W}Ee.value[t.$setValue](a)}function*f(Ee){for(const a of Ee[t.$getChildren]()){if(a instanceof Pn){yield*a[t.$getContainedChildren]();continue}yield a}}function F(Ee){return Ee.validate&&Ee.validate.nullTest==="error"}function s(Ee){for(;Ee;){if(!Ee.traversal){Ee[t.$tabIndex]=Ee[t.$getParent]()[t.$tabIndex];return}if(Ee[t.$tabIndex])return;let a=null;for(const De of Ee.traversal[t.$getChildren]())if(De.operation==="next"){a=De;break}if(!a||!a.ref){Ee[t.$tabIndex]=Ee[t.$getParent]()[t.$tabIndex];return}const W=Ee[t.$getTemplateRoot]();Ee[t.$tabIndex]=++W[t.$tabIndex];const Ae=W[t.$searchNode](a.ref,Ee);if(!Ae)return;Ee=Ae[0]}}function d(Ee,a){const W=Ee.assist;if(W){const Ae=W[t.$toHTML]();Ae&&(a.title=Ae);const ze=W.role.match(h);if(ze){const ht="heading",ot=ze[1];a.role=ht,a["aria-level"]=ot}}if(Ee.layout==="table")a.role="table";else if(Ee.layout==="row")a.role="row";else{const Ae=Ee[t.$getParent]();Ae.layout==="row"&&(Ae.assist&&Ae.assist.role==="TH"?a.role="columnheader":a.role="cell")}}function S(Ee){if(!Ee.assist)return null;const a=Ee.assist;return a.speak&&a.speak[t.$content]!==""?a.speak[t.$content]:a.toolTip?a.toolTip[t.$content]:null}function r(Ee){return e.HTMLResult.success({name:"div",attributes:{class:["xfaRich"],style:Object.create(null)},children:[{name:"span",attributes:{style:Object.create(null)},value:Ee}]})}function o(Ee){const a=Ee[t.$getTemplateRoot]();a[t.$extra].firstUnsplittable===null&&(a[t.$extra].firstUnsplittable=Ee,a[t.$extra].noLayoutFailure=!0)}function A(Ee){const a=Ee[t.$getTemplateRoot]();a[t.$extra].firstUnsplittable===Ee&&(a[t.$extra].noLayoutFailure=!1)}function p(Ee){if(Ee[t.$extra]||(Ee[t.$extra]=Object.create(null),Ee.targetType==="auto"))return!1;const a=Ee[t.$getTemplateRoot]();let W=null;if(Ee.target){if(W=a[t.$searchNode](Ee.target,Ee[t.$getParent]()),!W)return!1;W=W[0]}const{currentPageArea:Ae,currentContentArea:De}=a[t.$extra];if(Ee.targetType==="pageArea")return W instanceof Ye||(W=null),Ee.startNew?(Ee[t.$extra].target=W||Ae,!0):W&&W!==Ae?(Ee[t.$extra].target=W,!0):!1;W instanceof ne||(W=null);const ze=W&&W[t.$getParent]();let ht,ot=ze;if(Ee.startNew)if(W){const ft=ze.contentArea.children,St=ft.indexOf(De),It=ft.indexOf(W);St!==-1&&St<It&&(ot=null),ht=It-1}else ht=Ae.contentArea.children.indexOf(De);else if(W&&W!==De)ht=ze.contentArea.children.indexOf(W)-1,ot=ze===Ae?null:ze;else return!1;return Ee[t.$extra].target=ot,Ee[t.$extra].index=ht,!0}function v(Ee,a,W){const Ae=Ee[t.$getTemplateRoot](),De=Ae[t.$extra].noLayoutFailure,ze=a[t.$getSubformParent];a[t.$getSubformParent]=()=>Ee,Ae[t.$extra].noLayoutFailure=!0;const ht=a[t.$toHTML](W);Ee[t.$addHTML](ht.html,ht.bbox),Ae[t.$extra].noLayoutFailure=De,a[t.$getSubformParent]=ze}class R extends t.StringObject{constructor(a){super(x,"appearanceFilter"),this.id=a.id||"",this.type=(0,e.getStringOption)(a.type,["optional","required"]),this.use=a.use||"",this.usehref=a.usehref||""}}class T extends t.XFAObject{constructor(a){super(x,"arc",!0),this.circular=(0,e.getInteger)({data:a.circular,defaultValue:0,validate:W=>W===1}),this.hand=(0,e.getStringOption)(a.hand,["even","left","right"]),this.id=a.id||"",this.startAngle=(0,e.getFloat)({data:a.startAngle,defaultValue:0,validate:W=>!0}),this.sweepAngle=(0,e.getFloat)({data:a.sweepAngle,defaultValue:360,validate:W=>!0}),this.use=a.use||"",this.usehref=a.usehref||"",this.edge=null,this.fill=null}[t.$toHTML](){const a=this.edge||new Ie({}),W=a[t.$toStyle](),Ae=Object.create(null);this.fill&&this.fill.presence==="visible"?Object.assign(Ae,this.fill[t.$toStyle]()):Ae.fill="transparent",Ae.strokeWidth=(0,P.measureToString)(a.presence==="visible"?a.thickness:0),Ae.stroke=W.color;let De;const ze={xmlns:g,style:{width:"100%",height:"100%",overflow:"visible"}};if(this.sweepAngle===360)De={name:"ellipse",attributes:{xmlns:g,cx:"50%",cy:"50%",rx:"50%",ry:"50%",style:Ae}};else{const ft=this.startAngle*Math.PI/180,St=this.sweepAngle*Math.PI/180,It=this.sweepAngle>180?1:0,[Lt,Bt,zt,Wt]=[50*(1+Math.cos(ft)),50*(1-Math.sin(ft)),50*(1+Math.cos(ft+St)),50*(1-Math.sin(ft+St))];De={name:"path",attributes:{xmlns:g,d:`M ${Lt} ${Bt} A 50 50 0 ${It} 0 ${zt} ${Wt}`,vectorEffect:"non-scaling-stroke",style:Ae}},Object.assign(ze,{viewBox:"0 0 100 100",preserveAspectRatio:"none"})}const ht={name:"svg",children:[De],attributes:ze},ot=this[t.$getParent]()[t.$getParent]();return m(ot)?e.HTMLResult.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[ht]}):(ht.attributes.style.position="absolute",e.HTMLResult.success(ht))}}class y extends t.XFAObject{constructor(a){super(x,"area",!0),this.colSpan=(0,e.getInteger)({data:a.colSpan,defaultValue:1,validate:W=>W>=1||W===-1}),this.id=a.id||"",this.name=a.name||"",this.relevant=(0,e.getRelevant)(a.relevant),this.use=a.use||"",this.usehref=a.usehref||"",this.x=(0,e.getMeasurement)(a.x,"0pt"),this.y=(0,e.getMeasurement)(a.y,"0pt"),this.desc=null,this.extras=null,this.area=new t.XFAObjectArray,this.draw=new t.XFAObjectArray,this.exObject=new t.XFAObjectArray,this.exclGroup=new t.XFAObjectArray,this.field=new t.XFAObjectArray,this.subform=new t.XFAObjectArray,this.subformSet=new t.XFAObjectArray}*[t.$getContainedChildren](){yield*f(this)}[t.$isTransparent](){return!0}[t.$isBindable](){return!0}[t.$addHTML](a,W){const[Ae,De,ze,ht]=W;this[t.$extra].width=Math.max(this[t.$extra].width,Ae+ze),this[t.$extra].height=Math.max(this[t.$extra].height,De+ht),this[t.$extra].children.push(a)}[t.$getAvailableSpace](){return this[t.$extra].availableSpace}[t.$toHTML](a){const W=(0,P.toStyle)(this,"position"),Ae={style:W,id:this[t.$uid],class:["xfaArea"]};(0,P.isPrintOnly)(this)&&Ae.class.push("xfaPrintOnly"),this.name&&(Ae.xfaName=this.name);const De=[];this[t.$extra]={children:De,width:0,height:0,availableSpace:a};const ze=this[t.$childrenToHTML]({filter:new Set(["area","draw","field","exclGroup","subform","subformSet"]),include:!0});if(!ze.success)return ze.isBreak()?ze:(delete this[t.$extra],e.HTMLResult.FAILURE);W.width=(0,P.measureToString)(this[t.$extra].width),W.height=(0,P.measureToString)(this[t.$extra].height);const ht={name:"div",attributes:Ae,children:De},ot=[this.x,this.y,this[t.$extra].width,this[t.$extra].height];return delete this[t.$extra],e.HTMLResult.success(ht,ot)}}class H extends t.XFAObject{constructor(a){super(x,"assist",!0),this.id=a.id||"",this.role=a.role||"",this.use=a.use||"",this.usehref=a.usehref||"",this.speak=null,this.toolTip=null}[t.$toHTML](){return this.toolTip&&this.toolTip[t.$content]?this.toolTip[t.$content]:null}}class z extends t.XFAObject{constructor(a){super(x,"barcode",!0),this.charEncoding=(0,e.getKeyword)({data:a.charEncoding?a.charEncoding.toLowerCase():"",defaultValue:"",validate:W=>["utf-8","big-five","fontspecific","gbk","gb-18030","gb-2312","ksc-5601","none","shift-jis","ucs-2","utf-16"].includes(W)||W.match(/iso-8859-\d{2}/)}),this.checksum=(0,e.getStringOption)(a.checksum,["none","1mod10","1mod10_1mod11","2mod10","auto"]),this.dataColumnCount=(0,e.getInteger)({data:a.dataColumnCount,defaultValue:-1,validate:W=>W>=0}),this.dataLength=(0,e.getInteger)({data:a.dataLength,defaultValue:-1,validate:W=>W>=0}),this.dataPrep=(0,e.getStringOption)(a.dataPrep,["none","flateCompress"]),this.dataRowCount=(0,e.getInteger)({data:a.dataRowCount,defaultValue:-1,validate:W=>W>=0}),this.endChar=a.endChar||"",this.errorCorrectionLevel=(0,e.getInteger)({data:a.errorCorrectionLevel,defaultValue:-1,validate:W=>W>=0&&W<=8}),this.id=a.id||"",this.moduleHeight=(0,e.getMeasurement)(a.moduleHeight,"5mm"),this.moduleWidth=(0,e.getMeasurement)(a.moduleWidth,"0.25mm"),this.printCheckDigit=(0,e.getInteger)({data:a.printCheckDigit,defaultValue:0,validate:W=>W===1}),this.rowColumnRatio=(0,e.getRatio)(a.rowColumnRatio),this.startChar=a.startChar||"",this.textLocation=(0,e.getStringOption)(a.textLocation,["below","above","aboveEmbedded","belowEmbedded","none"]),this.truncate=(0,e.getInteger)({data:a.truncate,defaultValue:0,validate:W=>W===1}),this.type=(0,e.getStringOption)(a.type?a.type.toLowerCase():"",["aztec","codabar","code2of5industrial","code2of5interleaved","code2of5matrix","code2of5standard","code3of9","code3of9extended","code11","code49","code93","code128","code128a","code128b","code128c","code128sscc","datamatrix","ean8","ean8add2","ean8add5","ean13","ean13add2","ean13add5","ean13pwcd","fim","logmars","maxicode","msi","pdf417","pdf417macro","plessey","postauscust2","postauscust3","postausreplypaid","postausstandard","postukrm4scc","postusdpbc","postusimb","postusstandard","postus5zip","qrcode","rfid","rss14","rss14expanded","rss14limited","rss14stacked","rss14stackedomni","rss14truncated","telepen","ucc128","ucc128random","ucc128sscc","upca","upcaadd2","upcaadd5","upcapwcd","upce","upceadd2","upceadd5","upcean2","upcean5","upsmaxicode"]),this.upsMode=(0,e.getStringOption)(a.upsMode,["usCarrier","internationalCarrier","secureSymbol","standardSymbol"]),this.use=a.use||"",this.usehref=a.usehref||"",this.wideNarrowRatio=(0,e.getRatio)(a.wideNarrowRatio),this.encrypt=null,this.extras=null}}class $ extends t.XFAObject{constructor(a){super(x,"bind",!0),this.match=(0,e.getStringOption)(a.match,["once","dataRef","global","none"]),this.ref=a.ref||"",this.picture=null}}class j extends t.XFAObject{constructor(a){super(x,"bindItems"),this.connection=a.connection||"",this.labelRef=a.labelRef||"",this.ref=a.ref||"",this.valueRef=a.valueRef||""}}l.BindItems=j;class V extends t.XFAObject{constructor(a){super(x,"bookend"),this.id=a.id||"",this.leader=a.leader||"",this.trailer=a.trailer||"",this.use=a.use||"",this.usehref=a.usehref||""}}class ee extends t.Option01{constructor(a){super(x,"boolean"),this.id=a.id||"",this.name=a.name||"",this.use=a.use||"",this.usehref=a.usehref||""}[t.$toHTML](a){return r(this[t.$content]===1?"1":"0")}}class U extends t.XFAObject{constructor(a){super(x,"border",!0),this.break=(0,e.getStringOption)(a.break,["close","open"]),this.hand=(0,e.getStringOption)(a.hand,["even","left","right"]),this.id=a.id||"",this.presence=(0,e.getStringOption)(a.presence,["visible","hidden","inactive","invisible"]),this.relevant=(0,e.getRelevant)(a.relevant),this.use=a.use||"",this.usehref=a.usehref||"",this.corner=new t.XFAObjectArray(4),this.edge=new t.XFAObjectArray(4),this.extras=null,this.fill=null,this.margin=null}[t.$getExtra](){if(!this[t.$extra]){const a=this.edge.children.slice();if(a.length<4){const De=a.at(-1)||new Ie({});for(let ze=a.length;ze<4;ze++)a.push(De)}const W=a.map(De=>De.thickness),Ae=[0,0,0,0];this.margin&&(Ae[0]=this.margin.topInset,Ae[1]=this.margin.rightInset,Ae[2]=this.margin.bottomInset,Ae[3]=this.margin.leftInset),this[t.$extra]={widths:W,insets:Ae,edges:a}}return this[t.$extra]}[t.$toStyle](){const{edges:a}=this[t.$getExtra](),W=a.map(De=>{const ze=De[t.$toStyle]();return ze.color=ze.color||"#000000",ze}),Ae=Object.create(null);if(this.margin&&Object.assign(Ae,this.margin[t.$toStyle]()),this.fill&&this.fill.presence==="visible"&&Object.assign(Ae,this.fill[t.$toStyle]()),this.corner.children.some(De=>De.radius!==0)){const De=this.corner.children.map(ze=>ze[t.$toStyle]());if(De.length===2||De.length===3){const ze=De.at(-1);for(let ht=De.length;ht<4;ht++)De.push(ze)}Ae.borderRadius=De.map(ze=>ze.radius).join(" ")}switch(this.presence){case"invisible":case"hidden":Ae.borderStyle="";break;case"inactive":Ae.borderStyle="none";break;default:Ae.borderStyle=W.map(De=>De.style).join(" ");break}return Ae.borderWidth=W.map(De=>De.width).join(" "),Ae.borderColor=W.map(De=>De.color).join(" "),Ae}}class G extends t.XFAObject{constructor(a){super(x,"break",!0),this.after=(0,e.getStringOption)(a.after,["auto","contentArea","pageArea","pageEven","pageOdd"]),this.afterTarget=a.afterTarget||"",this.before=(0,e.getStringOption)(a.before,["auto","contentArea","pageArea","pageEven","pageOdd"]),this.beforeTarget=a.beforeTarget||"",this.bookendLeader=a.bookendLeader||"",this.bookendTrailer=a.bookendTrailer||"",this.id=a.id||"",this.overflowLeader=a.overflowLeader||"",this.overflowTarget=a.overflowTarget||"",this.overflowTrailer=a.overflowTrailer||"",this.startNew=(0,e.getInteger)({data:a.startNew,defaultValue:0,validate:W=>W===1}),this.use=a.use||"",this.usehref=a.usehref||"",this.extras=null}}class Y extends t.XFAObject{constructor(a){super(x,"breakAfter",!0),this.id=a.id||"",this.leader=a.leader||"",this.startNew=(0,e.getInteger)({data:a.startNew,defaultValue:0,validate:W=>W===1}),this.target=a.target||"",this.targetType=(0,e.getStringOption)(a.targetType,["auto","contentArea","pageArea"]),this.trailer=a.trailer||"",this.use=a.use||"",this.usehref=a.usehref||"",this.script=null}}class oe extends t.XFAObject{constructor(a){super(x,"breakBefore",!0),this.id=a.id||"",this.leader=a.leader||"",this.startNew=(0,e.getInteger)({data:a.startNew,defaultValue:0,validate:W=>W===1}),this.target=a.target||"",this.targetType=(0,e.getStringOption)(a.targetType,["auto","contentArea","pageArea"]),this.trailer=a.trailer||"",this.use=a.use||"",this.usehref=a.usehref||"",this.script=null}[t.$toHTML](a){return this[t.$extra]={},e.HTMLResult.FAILURE}}class se extends t.XFAObject{constructor(a){super(x,"button",!0),this.highlight=(0,e.getStringOption)(a.highlight,["inverted","none","outline","push"]),this.id=a.id||"",this.use=a.use||"",this.usehref=a.usehref||"",this.extras=null}[t.$toHTML](a){const Ae=this[t.$getParent]()[t.$getParent](),De={name:"button",attributes:{id:this[t.$uid],class:["xfaButton"],style:{}},children:[]};for(const ze of Ae.event.children){if(ze.activity!=="click"||!ze.script)continue;const ht=(0,L.recoverJsURL)(ze.script[t.$content]);if(!ht)continue;const ot=(0,P.fixURL)(ht.url);ot&&De.children.push({name:"a",attributes:{id:"link"+this[t.$uid],href:ot,newWindow:ht.newWindow,class:["xfaLink"],style:{}},children:[]})}return e.HTMLResult.success(De)}}class Q extends t.XFAObject{constructor(a){super(x,"calculate",!0),this.id=a.id||"",this.override=(0,e.getStringOption)(a.override,["disabled","error","ignore","warning"]),this.use=a.use||"",this.usehref=a.usehref||"",this.extras=null,this.message=null,this.script=null}}class E extends t.XFAObject{constructor(a){super(x,"caption",!0),this.id=a.id||"",this.placement=(0,e.getStringOption)(a.placement,["left","bottom","inline","right","top"]),this.presence=(0,e.getStringOption)(a.presence,["visible","hidden","inactive","invisible"]),this.reserve=Math.ceil((0,e.getMeasurement)(a.reserve)),this.use=a.use||"",this.usehref=a.usehref||"",this.extras=null,this.font=null,this.margin=null,this.para=null,this.value=null}[t.$setValue](a){X(this,a)}[t.$getExtra](a){if(!this[t.$extra]){let{width:W,height:Ae}=a;switch(this.placement){case"left":case"right":case"inline":W=this.reserve<=0?W:this.reserve;break;case"top":case"bottom":Ae=this.reserve<=0?Ae:this.reserve;break}this[t.$extra]=(0,P.layoutNode)(this,{width:W,height:Ae})}return this[t.$extra]}[t.$toHTML](a){if(!this.value)return e.HTMLResult.EMPTY;this[t.$pushPara]();const W=this.value[t.$toHTML](a).html;if(!W)return this[t.$popPara](),e.HTMLResult.EMPTY;const Ae=this.reserve;if(this.reserve<=0){const{w:ht,h:ot}=this[t.$getExtra](a);switch(this.placement){case"left":case"right":case"inline":this.reserve=ht;break;case"top":case"bottom":this.reserve=ot;break}}const De=[];typeof W=="string"?De.push({name:"#text",value:W}):De.push(W);const ze=(0,P.toStyle)(this,"font","margin","visibility");switch(this.placement){case"left":case"right":this.reserve>0&&(ze.width=(0,P.measureToString)(this.reserve));break;case"top":case"bottom":this.reserve>0&&(ze.height=(0,P.measureToString)(this.reserve));break}return(0,P.setPara)(this,null,W),this[t.$popPara](),this.reserve=Ae,e.HTMLResult.success({name:"div",attributes:{style:ze,class:["xfaCaption"]},children:De})}}class M extends t.StringObject{constructor(a){super(x,"certificate"),this.id=a.id||"",this.name=a.name||"",this.use=a.use||"",this.usehref=a.usehref||""}}class _ extends t.XFAObject{constructor(a){super(x,"certificates",!0),this.credentialServerPolicy=(0,e.getStringOption)(a.credentialServerPolicy,["optional","required"]),this.id=a.id||"",this.url=a.url||"",this.urlPolicy=a.urlPolicy||"",this.use=a.use||"",this.usehref=a.usehref||"",this.encryption=null,this.issuers=null,this.keyUsage=null,this.oids=null,this.signing=null,this.subjectDNs=null}}class J extends t.XFAObject{constructor(a){super(x,"checkButton",!0),this.id=a.id||"",this.mark=(0,e.getStringOption)(a.mark,["default","check","circle","cross","diamond","square","star"]),this.shape=(0,e.getStringOption)(a.shape,["square","round"]),this.size=(0,e.getMeasurement)(a.size,"10pt"),this.use=a.use||"",this.usehref=a.usehref||"",this.border=null,this.extras=null,this.margin=null}[t.$toHTML](a){const W=(0,P.toStyle)("margin"),Ae=(0,P.measureToString)(this.size);W.width=W.height=Ae;let De,ze,ht;const ot=this[t.$getParent]()[t.$getParent](),ft=ot.items.children.length&&ot.items.children[0][t.$toHTML]().html||[],St={on:(ft[0]!==void 0?ft[0]:"on").toString(),off:(ft[1]!==void 0?ft[1]:"off").toString()},Lt=(ot.value&&ot.value[t.$text]()||"off")===St.on||void 0,Bt=ot[t.$getSubformParent](),zt=ot[t.$uid];let Wt;Bt instanceof Qe?(ht=Bt[t.$uid],De="radio",ze="xfaRadio",Wt=Bt[t.$data]&&Bt[t.$data][t.$uid]||Bt[t.$uid]):(De="checkbox",ze="xfaCheckbox",Wt=ot[t.$data]&&ot[t.$data][t.$uid]||ot[t.$uid]);const vt={name:"input",attributes:{class:[ze],style:W,fieldId:zt,dataId:Wt,type:De,checked:Lt,xfaOn:St.on,xfaOff:St.off,"aria-label":S(ot),"aria-required":!1}};return ht&&(vt.attributes.name=ht),F(ot)&&(vt.attributes["aria-required"]=!0,vt.attributes.required=!0),e.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[vt]})}}class K extends t.XFAObject{constructor(a){super(x,"choiceList",!0),this.commitOn=(0,e.getStringOption)(a.commitOn,["select","exit"]),this.id=a.id||"",this.open=(0,e.getStringOption)(a.open,["userControl","always","multiSelect","onEntry"]),this.textEntry=(0,e.getInteger)({data:a.textEntry,defaultValue:0,validate:W=>W===1}),this.use=a.use||"",this.usehref=a.usehref||"",this.border=null,this.extras=null,this.margin=null}[t.$toHTML](a){const W=(0,P.toStyle)(this,"border","margin"),De=this[t.$getParent]()[t.$getParent](),ht={fontSize:`calc(${De.font&&De.font.size||10}px * var(--scale-factor))`},ot=[];if(De.items.children.length>0){const St=De.items;let It=0,Lt=0;St.children.length===2&&(It=St.children[0].save,Lt=1-It);const Bt=St.children[It][t.$toHTML]().html,zt=St.children[Lt][t.$toHTML]().html;let Wt=!1;const vt=De.value&&De.value[t.$text]()||"";for(let Vt=0,Ct=Bt.length;Vt<Ct;Vt++){const Et={name:"option",attributes:{value:zt[Vt]||Bt[Vt],style:ht},value:Bt[Vt]};zt[Vt]===vt&&(Et.attributes.selected=Wt=!0),ot.push(Et)}Wt||ot.splice(0,0,{name:"option",attributes:{hidden:!0,selected:!0},value:" "})}const ft={class:["xfaSelect"],fieldId:De[t.$uid],dataId:De[t.$data]&&De[t.$data][t.$uid]||De[t.$uid],style:W,"aria-label":S(De),"aria-required":!1};return F(De)&&(ft["aria-required"]=!0,ft.required=!0),this.open==="multiSelect"&&(ft.multiple=!0),e.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[{name:"select",children:ot,attributes:ft}]})}}class te extends t.XFAObject{constructor(a){super(x,"color",!0),this.cSpace=(0,e.getStringOption)(a.cSpace,["SRGB"]),this.id=a.id||"",this.use=a.use||"",this.usehref=a.usehref||"",this.value=a.value?(0,e.getColor)(a.value):"",this.extras=null}[t.$hasSettableValue](){return!1}[t.$toStyle](){return this.value?N.Util.makeHexColor(this.value.r,this.value.g,this.value.b):null}}class Z extends t.XFAObject{constructor(a){super(x,"comb"),this.id=a.id||"",this.numberOfCells=(0,e.getInteger)({data:a.numberOfCells,defaultValue:0,validate:W=>W>=0}),this.use=a.use||"",this.usehref=a.usehref||""}}class ce extends t.XFAObject{constructor(a){super(x,"connect",!0),this.connection=a.connection||"",this.id=a.id||"",this.ref=a.ref||"",this.usage=(0,e.getStringOption)(a.usage,["exportAndImport","exportOnly","importOnly"]),this.use=a.use||"",this.usehref=a.usehref||"",this.picture=null}}class ne extends t.XFAObject{constructor(a){super(x,"contentArea",!0),this.h=(0,e.getMeasurement)(a.h),this.id=a.id||"",this.name=a.name||"",this.relevant=(0,e.getRelevant)(a.relevant),this.use=a.use||"",this.usehref=a.usehref||"",this.w=(0,e.getMeasurement)(a.w),this.x=(0,e.getMeasurement)(a.x,"0pt"),this.y=(0,e.getMeasurement)(a.y,"0pt"),this.desc=null,this.extras=null}[t.$toHTML](a){const W=(0,P.measureToString)(this.x),Ae=(0,P.measureToString)(this.y),De={left:W,top:Ae,width:(0,P.measureToString)(this.w),height:(0,P.measureToString)(this.h)},ze=["xfaContentarea"];return(0,P.isPrintOnly)(this)&&ze.push("xfaPrintOnly"),e.HTMLResult.success({name:"div",children:[],attributes:{style:De,class:ze,id:this[t.$uid]}})}}class re extends t.XFAObject{constructor(a){super(x,"corner",!0),this.id=a.id||"",this.inverted=(0,e.getInteger)({data:a.inverted,defaultValue:0,validate:W=>W===1}),this.join=(0,e.getStringOption)(a.join,["square","round"]),this.presence=(0,e.getStringOption)(a.presence,["visible","hidden","inactive","invisible"]),this.radius=(0,e.getMeasurement)(a.radius),this.stroke=(0,e.getStringOption)(a.stroke,["solid","dashDot","dashDotDot","dashed","dotted","embossed","etched","lowered","raised"]),this.thickness=(0,e.getMeasurement)(a.thickness,"0.5pt"),this.use=a.use||"",this.usehref=a.usehref||"",this.color=null,this.extras=null}[t.$toStyle](){const a=(0,P.toStyle)(this,"visibility");return a.radius=(0,P.measureToString)(this.join==="square"?0:this.radius),a}}class ie extends t.ContentObject{constructor(a){super(x,"date"),this.id=a.id||"",this.name=a.name||"",this.use=a.use||"",this.usehref=a.usehref||""}[t.$finalize](){const a=this[t.$content].trim();this[t.$content]=a?new Date(a):null}[t.$toHTML](a){return r(this[t.$content]?this[t.$content].toString():"")}}class ae extends t.ContentObject{constructor(a){super(x,"dateTime"),this.id=a.id||"",this.name=a.name||"",this.use=a.use||"",this.usehref=a.usehref||""}[t.$finalize](){const a=this[t.$content].trim();this[t.$content]=a?new Date(a):null}[t.$toHTML](a){return r(this[t.$content]?this[t.$content].toString():"")}}class ue extends t.XFAObject{constructor(a){super(x,"dateTimeEdit",!0),this.hScrollPolicy=(0,e.getStringOption)(a.hScrollPolicy,["auto","off","on"]),this.id=a.id||"",this.picker=(0,e.getStringOption)(a.picker,["host","none"]),this.use=a.use||"",this.usehref=a.usehref||"",this.border=null,this.comb=null,this.extras=null,this.margin=null}[t.$toHTML](a){const W=(0,P.toStyle)(this,"border","font","margin"),Ae=this[t.$getParent]()[t.$getParent](),De={name:"input",attributes:{type:"text",fieldId:Ae[t.$uid],dataId:Ae[t.$data]&&Ae[t.$data][t.$uid]||Ae[t.$uid],class:["xfaTextfield"],style:W,"aria-label":S(Ae),"aria-required":!1}};return F(Ae)&&(De.attributes["aria-required"]=!0,De.attributes.required=!0),e.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[De]})}}class fe extends t.ContentObject{constructor(a){super(x,"decimal"),this.fracDigits=(0,e.getInteger)({data:a.fracDigits,defaultValue:2,validate:W=>!0}),this.id=a.id||"",this.leadDigits=(0,e.getInteger)({data:a.leadDigits,defaultValue:-1,validate:W=>!0}),this.name=a.name||"",this.use=a.use||"",this.usehref=a.usehref||""}[t.$finalize](){const a=parseFloat(this[t.$content].trim());this[t.$content]=isNaN(a)?null:a}[t.$toHTML](a){return r(this[t.$content]!==null?this[t.$content].toString():"")}}class me extends t.XFAObject{constructor(a){super(x,"defaultUi",!0),this.id=a.id||"",this.use=a.use||"",this.usehref=a.usehref||"",this.extras=null}}class Fe extends t.XFAObject{constructor(a){super(x,"desc",!0),this.id=a.id||"",this.use=a.use||"",this.usehref=a.usehref||"",this.boolean=new t.XFAObjectArray,this.date=new t.XFAObjectArray,this.dateTime=new t.XFAObjectArray,this.decimal=new t.XFAObjectArray,this.exData=new t.XFAObjectArray,this.float=new t.XFAObjectArray,this.image=new t.XFAObjectArray,this.integer=new t.XFAObjectArray,this.text=new t.XFAObjectArray,this.time=new t.XFAObjectArray}}class pe extends t.OptionObject{constructor(a){super(x,"digestMethod",["","SHA1","SHA256","SHA512","RIPEMD160"]),this.id=a.id||"",this.use=a.use||"",this.usehref=a.usehref||""}}class Ce extends t.XFAObject{constructor(a){super(x,"digestMethods",!0),this.id=a.id||"",this.type=(0,e.getStringOption)(a.type,["optional","required"]),this.use=a.use||"",this.usehref=a.usehref||"",this.digestMethod=new t.XFAObjectArray}}class be extends t.XFAObject{constructor(a){super(x,"draw",!0),this.anchorType=(0,e.getStringOption)(a.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]),this.colSpan=(0,e.getInteger)({data:a.colSpan,defaultValue:1,validate:W=>W>=1||W===-1}),this.h=a.h?(0,e.getMeasurement)(a.h):"",this.hAlign=(0,e.getStringOption)(a.hAlign,["left","center","justify","justifyAll","radix","right"]),this.id=a.id||"",this.locale=a.locale||"",this.maxH=(0,e.getMeasurement)(a.maxH,"0pt"),this.maxW=(0,e.getMeasurement)(a.maxW,"0pt"),this.minH=(0,e.getMeasurement)(a.minH,"0pt"),this.minW=(0,e.getMeasurement)(a.minW,"0pt"),this.name=a.name||"",this.presence=(0,e.getStringOption)(a.presence,["visible","hidden","inactive","invisible"]),this.relevant=(0,e.getRelevant)(a.relevant),this.rotate=(0,e.getInteger)({data:a.rotate,defaultValue:0,validate:W=>W%90===0}),this.use=a.use||"",this.usehref=a.usehref||"",this.w=a.w?(0,e.getMeasurement)(a.w):"",this.x=(0,e.getMeasurement)(a.x,"0pt"),this.y=(0,e.getMeasurement)(a.y,"0pt"),this.assist=null,this.border=null,this.caption=null,this.desc=null,this.extras=null,this.font=null,this.keep=null,this.margin=null,this.para=null,this.traversal=null,this.ui=null,this.value=null,this.setProperty=new t.XFAObjectArray}[t.$setValue](a){X(this,a)}[t.$toHTML](a){if(s(this),this.presence==="hidden"||this.presence==="inactive")return e.HTMLResult.EMPTY;(0,P.fixDimensions)(this),this[t.$pushPara]();const W=this.w,Ae=this.h,{w:De,h:ze,isBroken:ht}=(0,P.layoutNode)(this,a);if(De&&this.w===""){if(ht&&this[t.$getSubformParent]()[t.$isThereMoreWidth]())return this[t.$popPara](),e.HTMLResult.FAILURE;this.w=De}if(ze&&this.h===""&&(this.h=ze),o(this),!(0,O.checkDimensions)(this,a))return this.w=W,this.h=Ae,this[t.$popPara](),e.HTMLResult.FAILURE;A(this);const ot=(0,P.toStyle)(this,"font","hAlign","dimensions","position","presence","rotate","anchorType","border","margin");(0,P.setMinMaxDimensions)(this,ot),ot.margin&&(ot.padding=ot.margin,delete ot.margin);const ft=["xfaDraw"];this.font&&ft.push("xfaFont"),(0,P.isPrintOnly)(this)&&ft.push("xfaPrintOnly");const St={style:ot,id:this[t.$uid],class:ft};this.name&&(St.xfaName=this.name);const It={name:"div",attributes:St,children:[]};d(this,St);const Lt=(0,P.computeBbox)(this,It,a),Bt=this.value?this.value[t.$toHTML](a).html:null;return Bt===null?(this.w=W,this.h=Ae,this[t.$popPara](),e.HTMLResult.success((0,P.createWrapper)(this,It),Lt)):(It.children.push(Bt),(0,P.setPara)(this,ot,Bt),this.w=W,this.h=Ae,this[t.$popPara](),e.HTMLResult.success((0,P.createWrapper)(this,It),Lt))}}class Ie extends t.XFAObject{constructor(a){super(x,"edge",!0),this.cap=(0,e.getStringOption)(a.cap,["square","butt","round"]),this.id=a.id||"",this.presence=(0,e.getStringOption)(a.presence,["visible","hidden","inactive","invisible"]),this.stroke=(0,e.getStringOption)(a.stroke,["solid","dashDot","dashDotDot","dashed","dotted","embossed","etched","lowered","raised"]),this.thickness=(0,e.getMeasurement)(a.thickness,"0.5pt"),this.use=a.use||"",this.usehref=a.usehref||"",this.color=null,this.extras=null}[t.$toStyle](){const a=(0,P.toStyle)(this,"visibility");if(Object.assign(a,{linecap:this.cap,width:(0,P.measureToString)(this.thickness),color:this.color?this.color[t.$toStyle]():"#000000",style:""}),this.presence!=="visible")a.style="none";else switch(this.stroke){case"solid":a.style="solid";break;case"dashDot":a.style="dashed";break;case"dashDotDot":a.style="dashed";break;case"dashed":a.style="dashed";break;case"dotted":a.style="dotted";break;case"embossed":a.style="ridge";break;case"etched":a.style="groove";break;case"lowered":a.style="inset";break;case"raised":a.style="outset";break}return a}}class ye extends t.OptionObject{constructor(a){super(x,"encoding",["adbe.x509.rsa_sha1","adbe.pkcs7.detached","adbe.pkcs7.sha1"]),this.id=a.id||"",this.use=a.use||"",this.usehref=a.usehref||""}}class de extends t.XFAObject{constructor(a){super(x,"encodings",!0),this.id=a.id||"",this.type=(0,e.getStringOption)(a.type,["optional","required"]),this.use=a.use||"",this.usehref=a.usehref||"",this.encoding=new t.XFAObjectArray}}class ge extends t.XFAObject{constructor(a){super(x,"encrypt",!0),this.id=a.id||"",this.use=a.use||"",this.usehref=a.usehref||"",this.certificate=null}}class xe extends t.XFAObject{constructor(a){super(x,"encryptData",!0),this.id=a.id||"",this.operation=(0,e.getStringOption)(a.operation,["encrypt","decrypt"]),this.target=a.target||"",this.use=a.use||"",this.usehref=a.usehref||"",this.filter=null,this.manifest=null}}class Oe extends t.XFAObject{constructor(a){super(x,"encryption",!0),this.id=a.id||"",this.type=(0,e.getStringOption)(a.type,["optional","required"]),this.use=a.use||"",this.usehref=a.usehref||"",this.certificate=new t.XFAObjectArray}}class je extends t.OptionObject{constructor(a){super(x,"encryptionMethod",["","AES256-CBC","TRIPLEDES-CBC","AES128-CBC","AES192-CBC"]),this.id=a.id||"",this.use=a.use||"",this.usehref=a.usehref||""}}class it extends t.XFAObject{constructor(a){super(x,"encryptionMethods",!0),this.id=a.id||"",this.type=(0,e.getStringOption)(a.type,["optional","required"]),this.use=a.use||"",this.usehref=a.usehref||"",this.encryptionMethod=new t.XFAObjectArray}}class ke extends t.XFAObject{constructor(a){super(x,"event",!0),this.activity=(0,e.getStringOption)(a.activity,["click","change","docClose","docReady","enter","exit","full","indexChange","initialize","mouseDown","mouseEnter","mouseExit","mouseUp","postExecute","postOpen","postPrint","postSave","postSign","postSubmit","preExecute","preOpen","prePrint","preSave","preSign","preSubmit","ready","validationState"]),this.id=a.id||"",this.listen=(0,e.getStringOption)(a.listen,["refOnly","refAndDescendents"]),this.name=a.name||"",this.ref=a.ref||"",this.use=a.use||"",this.usehref=a.usehref||"",this.extras=null,this.encryptData=null,this.execute=null,this.script=null,this.signData=null,this.submit=null}}class $e extends t.ContentObject{constructor(a){super(x,"exData"),this.contentType=a.contentType||"",this.href=a.href||"",this.id=a.id||"",this.maxLength=(0,e.getInteger)({data:a.maxLength,defaultValue:-1,validate:W=>W>=-1}),this.name=a.name||"",this.rid=a.rid||"",this.transferEncoding=(0,e.getStringOption)(a.transferEncoding,["none","base64","package"]),this.use=a.use||"",this.usehref=a.usehref||""}[t.$isCDATAXml](){return this.contentType==="text/html"}[t.$onChild](a){return this.contentType==="text/html"&&a[t.$namespaceId]===i.NamespaceIds.xhtml.id?(this[t.$content]=a,!0):this.contentType==="text/xml"?(this[t.$content]=a,!0):!1}[t.$toHTML](a){return this.contentType!=="text/html"||!this[t.$content]?e.HTMLResult.EMPTY:this[t.$content][t.$toHTML](a)}}class Ge extends t.XFAObject{constructor(a){super(x,"exObject",!0),this.archive=a.archive||"",this.classId=a.classId||"",this.codeBase=a.codeBase||"",this.codeType=a.codeType||"",this.id=a.id||"",this.name=a.name||"",this.use=a.use||"",this.usehref=a.usehref||"",this.extras=null,this.boolean=new t.XFAObjectArray,this.date=new t.XFAObjectArray,this.dateTime=new t.XFAObjectArray,this.decimal=new t.XFAObjectArray,this.exData=new t.XFAObjectArray,this.exObject=new t.XFAObjectArray,this.float=new t.XFAObjectArray,this.image=new t.XFAObjectArray,this.integer=new t.XFAObjectArray,this.text=new t.XFAObjectArray,this.time=new t.XFAObjectArray}}class Qe extends t.XFAObject{constructor(a){super(x,"exclGroup",!0),this.access=(0,e.getStringOption)(a.access,["open","nonInteractive","protected","readOnly"]),this.accessKey=a.accessKey||"",this.anchorType=(0,e.getStringOption)(a.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]),this.colSpan=(0,e.getInteger)({data:a.colSpan,defaultValue:1,validate:W=>W>=1||W===-1}),this.h=a.h?(0,e.getMeasurement)(a.h):"",this.hAlign=(0,e.getStringOption)(a.hAlign,["left","center","justify","justifyAll","radix","right"]),this.id=a.id||"",this.layout=(0,e.getStringOption)(a.layout,["position","lr-tb","rl-row","rl-tb","row","table","tb"]),this.maxH=(0,e.getMeasurement)(a.maxH,"0pt"),this.maxW=(0,e.getMeasurement)(a.maxW,"0pt"),this.minH=(0,e.getMeasurement)(a.minH,"0pt"),this.minW=(0,e.getMeasurement)(a.minW,"0pt"),this.name=a.name||"",this.presence=(0,e.getStringOption)(a.presence,["visible","hidden","inactive","invisible"]),this.relevant=(0,e.getRelevant)(a.relevant),this.use=a.use||"",this.usehref=a.usehref||"",this.w=a.w?(0,e.getMeasurement)(a.w):"",this.x=(0,e.getMeasurement)(a.x,"0pt"),this.y=(0,e.getMeasurement)(a.y,"0pt"),this.assist=null,this.bind=null,this.border=null,this.calculate=null,this.caption=null,this.desc=null,this.extras=null,this.margin=null,this.para=null,this.traversal=null,this.validate=null,this.connect=new t.XFAObjectArray,this.event=new t.XFAObjectArray,this.field=new t.XFAObjectArray,this.setProperty=new t.XFAObjectArray}[t.$isBindable](){return!0}[t.$hasSettableValue](){return!0}[t.$setValue](a){for(const W of this.field.children){if(!W.value){const Ae=new Cn({});W[t.$appendChild](Ae),W.value=Ae}W.value[t.$setValue](a)}}[t.$isThereMoreWidth](){return this.layout.endsWith("-tb")&&this[t.$extra].attempt===0&&this[t.$extra].numberInLine>0||this[t.$getParent]()[t.$isThereMoreWidth]()}[t.$isSplittable](){const a=this[t.$getSubformParent]();return a[t.$isSplittable]()?this[t.$extra]._isSplittable!==void 0?this[t.$extra]._isSplittable:this.layout==="position"||this.layout.includes("row")?(this[t.$extra]._isSplittable=!1,!1):a.layout&&a.layout.endsWith("-tb")&&a[t.$extra].numberInLine!==0?!1:(this[t.$extra]._isSplittable=!0,!0):!1}[t.$flushHTML](){return(0,O.flushHTML)(this)}[t.$addHTML](a,W){(0,O.addHTML)(this,a,W)}[t.$getAvailableSpace](){return(0,O.getAvailableSpace)(this)}[t.$toHTML](a){if(s(this),this.presence==="hidden"||this.presence==="inactive"||this.h===0||this.w===0)return e.HTMLResult.EMPTY;(0,P.fixDimensions)(this);const W=[],Ae={id:this[t.$uid],class:[]};(0,P.setAccess)(this,Ae.class),this[t.$extra]||(this[t.$extra]=Object.create(null)),Object.assign(this[t.$extra],{children:W,attributes:Ae,attempt:0,line:null,numberInLine:0,availableSpace:{width:Math.min(this.w||1/0,a.width),height:Math.min(this.h||1/0,a.height)},width:0,height:0,prevHeight:0,currentWidth:0});const De=this[t.$isSplittable]();if(De||o(this),!(0,O.checkDimensions)(this,a))return e.HTMLResult.FAILURE;const ze=new Set(["field"]);if(this.layout.includes("row")){const Ct=this[t.$getSubformParent]().columnWidths;Array.isArray(Ct)&&Ct.length>0&&(this[t.$extra].columnWidths=Ct,this[t.$extra].currentColumn=0)}const ht=(0,P.toStyle)(this,"anchorType","dimensions","position","presence","border","margin","hAlign"),ot=["xfaExclgroup"],ft=(0,P.layoutClass)(this);ft&&ot.push(ft),(0,P.isPrintOnly)(this)&&ot.push("xfaPrintOnly"),Ae.style=ht,Ae.class=ot,this.name&&(Ae.xfaName=this.name),this[t.$pushPara]();const St=this.layout==="lr-tb"||this.layout==="rl-tb",It=St?n:1;for(;this[t.$extra].attempt<It;this[t.$extra].attempt++){St&&this[t.$extra].attempt===n-1&&(this[t.$extra].numberInLine=0);const Ct=this[t.$childrenToHTML]({filter:ze,include:!0});if(Ct.success)break;if(Ct.isBreak())return this[t.$popPara](),Ct;if(St&&this[t.$extra].attempt===0&&this[t.$extra].numberInLine===0&&!this[t.$getTemplateRoot]()[t.$extra].noLayoutFailure){this[t.$extra].attempt=It;break}}if(this[t.$popPara](),De||A(this),this[t.$extra].attempt===It)return De||delete this[t.$extra],e.HTMLResult.FAILURE;let Lt=0,Bt=0;this.margin&&(Lt=this.margin.leftInset+this.margin.rightInset,Bt=this.margin.topInset+this.margin.bottomInset);const zt=Math.max(this[t.$extra].width+Lt,this.w||0),Wt=Math.max(this[t.$extra].height+Bt,this.h||0),vt=[this.x,this.y,zt,Wt];this.w===""&&(ht.width=(0,P.measureToString)(zt)),this.h===""&&(ht.height=(0,P.measureToString)(Wt));const Vt={name:"div",attributes:Ae,children:W};return d(this,Ae),delete this[t.$extra],e.HTMLResult.success((0,P.createWrapper)(this,Vt),vt)}}class ve extends t.XFAObject{constructor(a){super(x,"execute"),this.connection=a.connection||"",this.executeType=(0,e.getStringOption)(a.executeType,["import","remerge"]),this.id=a.id||"",this.runAt=(0,e.getStringOption)(a.runAt,["client","both","server"]),this.use=a.use||"",this.usehref=a.usehref||""}}class Ne extends t.XFAObject{constructor(a){super(x,"extras",!0),this.id=a.id||"",this.name=a.name||"",this.use=a.use||"",this.usehref=a.usehref||"",this.boolean=new t.XFAObjectArray,this.date=new t.XFAObjectArray,this.dateTime=new t.XFAObjectArray,this.decimal=new t.XFAObjectArray,this.exData=new t.XFAObjectArray,this.extras=new t.XFAObjectArray,this.float=new t.XFAObjectArray,this.image=new t.XFAObjectArray,this.integer=new t.XFAObjectArray,this.text=new t.XFAObjectArray,this.time=new t.XFAObjectArray}}class Me extends t.XFAObject{constructor(a){super(x,"field",!0),this.access=(0,e.getStringOption)(a.access,["open","nonInteractive","protected","readOnly"]),this.accessKey=a.accessKey||"",this.anchorType=(0,e.getStringOption)(a.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]),this.colSpan=(0,e.getInteger)({data:a.colSpan,defaultValue:1,validate:W=>W>=1||W===-1}),this.h=a.h?(0,e.getMeasurement)(a.h):"",this.hAlign=(0,e.getStringOption)(a.hAlign,["left","center","justify","justifyAll","radix","right"]),this.id=a.id||"",this.locale=a.locale||"",this.maxH=(0,e.getMeasurement)(a.maxH,"0pt"),this.maxW=(0,e.getMeasurement)(a.maxW,"0pt"),this.minH=(0,e.getMeasurement)(a.minH,"0pt"),this.minW=(0,e.getMeasurement)(a.minW,"0pt"),this.name=a.name||"",this.presence=(0,e.getStringOption)(a.presence,["visible","hidden","inactive","invisible"]),this.relevant=(0,e.getRelevant)(a.relevant),this.rotate=(0,e.getInteger)({data:a.rotate,defaultValue:0,validate:W=>W%90===0}),this.use=a.use||"",this.usehref=a.usehref||"",this.w=a.w?(0,e.getMeasurement)(a.w):"",this.x=(0,e.getMeasurement)(a.x,"0pt"),this.y=(0,e.getMeasurement)(a.y,"0pt"),this.assist=null,this.bind=null,this.border=null,this.calculate=null,this.caption=null,this.desc=null,this.extras=null,this.font=null,this.format=null,this.items=new t.XFAObjectArray(2),this.keep=null,this.margin=null,this.para=null,this.traversal=null,this.ui=null,this.validate=null,this.value=null,this.bindItems=new t.XFAObjectArray,this.connect=new t.XFAObjectArray,this.event=new t.XFAObjectArray,this.setProperty=new t.XFAObjectArray}[t.$isBindable](){return!0}[t.$setValue](a){X(this,a)}[t.$toHTML](a){if(s(this),!this.ui){this.ui=new pn({}),this.ui[t.$globalData]=this[t.$globalData],this[t.$appendChild](this.ui);let Ct;switch(this.items.children.length){case 0:Ct=new on({}),this.ui.textEdit=Ct;break;case 1:Ct=new J({}),this.ui.checkButton=Ct;break;case 2:Ct=new K({}),this.ui.choiceList=Ct;break}this.ui[t.$appendChild](Ct)}if(!this.ui||this.presence==="hidden"||this.presence==="inactive"||this.h===0||this.w===0)return e.HTMLResult.EMPTY;this.caption&&delete this.caption[t.$extra],this[t.$pushPara]();const W=this.caption?this.caption[t.$toHTML](a).html:null,Ae=this.w,De=this.h;let ze=0,ht=0;this.margin&&(ze=this.margin.leftInset+this.margin.rightInset,ht=this.margin.topInset+this.margin.bottomInset);let ot=null;if(this.w===""||this.h===""){let Ct=null,Et=null,Zt=0,kt=0;if(this.ui.checkButton)Zt=kt=this.ui.checkButton.size;else{const{w:hn,h:an}=(0,P.layoutNode)(this,a);hn!==null?(Zt=hn,kt=an):kt=(0,D.getMetrics)(this.font,!0).lineNoGap}if(ot=u(this.ui[t.$getExtra]()),Zt+=ot.w,kt+=ot.h,this.caption){const{w:hn,h:an,isBroken:Qt}=this.caption[t.$getExtra](a);if(Qt&&this[t.$getSubformParent]()[t.$isThereMoreWidth]())return this[t.$popPara](),e.HTMLResult.FAILURE;switch(Ct=hn,Et=an,this.caption.placement){case"left":case"right":case"inline":Ct+=Zt;break;case"top":case"bottom":Et+=kt;break}}else Ct=Zt,Et=kt;Ct&&this.w===""&&(Ct+=ze,this.w=Math.min(this.maxW<=0?1/0:this.maxW,this.minW+1<Ct?Ct:this.minW)),Et&&this.h===""&&(Et+=ht,this.h=Math.min(this.maxH<=0?1/0:this.maxH,this.minH+1<Et?Et:this.minH))}if(this[t.$popPara](),(0,P.fixDimensions)(this),o(this),!(0,O.checkDimensions)(this,a))return this.w=Ae,this.h=De,this[t.$popPara](),e.HTMLResult.FAILURE;A(this);const ft=(0,P.toStyle)(this,"font","dimensions","position","rotate","anchorType","presence","margin","hAlign");(0,P.setMinMaxDimensions)(this,ft);const St=["xfaField"];this.font&&St.push("xfaFont"),(0,P.isPrintOnly)(this)&&St.push("xfaPrintOnly");const It={style:ft,id:this[t.$uid],class:St};ft.margin&&(ft.padding=ft.margin,delete ft.margin),(0,P.setAccess)(this,St),this.name&&(It.xfaName=this.name);const Lt=[],Bt={name:"div",attributes:It,children:Lt};d(this,It);const zt=this.border?this.border[t.$toStyle]():null,Wt=(0,P.computeBbox)(this,Bt,a),vt=this.ui[t.$toHTML]().html;if(!vt)return Object.assign(ft,zt),e.HTMLResult.success((0,P.createWrapper)(this,Bt),Wt);this[t.$tabIndex]&&(vt.children&&vt.children[0]?vt.children[0].attributes.tabindex=this[t.$tabIndex]:vt.attributes.tabindex=this[t.$tabIndex]),vt.attributes.style||(vt.attributes.style=Object.create(null));let Vt=null;if(this.ui.button?(vt.children.length===1&&([Vt]=vt.children.splice(0,1)),Object.assign(vt.attributes.style,zt)):Object.assign(ft,zt),Lt.push(vt),this.value){if(this.ui.imageEdit)vt.children.push(this.value[t.$toHTML]().html);else if(!this.ui.button){let Ct="";if(this.value.exData)Ct=this.value.exData[t.$text]();else if(this.value.text)Ct=this.value.text[t.$getExtra]();else{const Et=this.value[t.$toHTML]().html;Et!==null&&(Ct=Et.children[0].value)}this.ui.textEdit&&this.value.text&&this.value.text.maxChars&&(vt.children[0].attributes.maxLength=this.value.text.maxChars),Ct&&(this.ui.numericEdit&&(Ct=parseFloat(Ct),Ct=isNaN(Ct)?"":Ct.toString()),vt.children[0].name==="textarea"?vt.children[0].attributes.textContent=Ct:vt.children[0].attributes.value=Ct)}}if(!this.ui.imageEdit&&vt.children&&vt.children[0]&&this.h){ot=ot||u(this.ui[t.$getExtra]());let Ct=0;if(this.caption&&["top","bottom"].includes(this.caption.placement)){Ct=this.caption.reserve,Ct<=0&&(Ct=this.caption[t.$getExtra](a).h);const Et=this.h-Ct-ht-ot.h;vt.children[0].attributes.style.height=(0,P.measureToString)(Et)}else vt.children[0].attributes.style.height="100%"}if(Vt&&vt.children.push(Vt),!W)return vt.attributes.class&&vt.attributes.class.push("xfaLeft"),this.w=Ae,this.h=De,e.HTMLResult.success((0,P.createWrapper)(this,Bt),Wt);if(this.ui.button)return ft.padding&&delete ft.padding,W.name==="div"&&(W.name="span"),vt.children.push(W),e.HTMLResult.success(Bt,Wt);switch(this.ui.checkButton&&(W.attributes.class[0]="xfaCaptionForCheckButton"),vt.attributes.class||(vt.attributes.class=[]),vt.children.splice(0,0,W),this.caption.placement){case"left":vt.attributes.class.push("xfaLeft");break;case"right":vt.attributes.class.push("xfaRight");break;case"top":vt.attributes.class.push("xfaTop");break;case"bottom":vt.attributes.class.push("xfaBottom");break;case"inline":vt.attributes.class.push("xfaLeft");break}return this.w=Ae,this.h=De,e.HTMLResult.success((0,P.createWrapper)(this,Bt),Wt)}}l.Field=Me;class nt extends t.XFAObject{constructor(a){super(x,"fill",!0),this.id=a.id||"",this.presence=(0,e.getStringOption)(a.presence,["visible","hidden","inactive","invisible"]),this.use=a.use||"",this.usehref=a.usehref||"",this.color=null,this.extras=null,this.linear=null,this.pattern=null,this.radial=null,this.solid=null,this.stipple=null}[t.$toStyle](){const a=this[t.$getParent](),Ae=a[t.$getParent]()[t.$getParent](),De=Object.create(null);let ze="color",ht=ze;a instanceof U&&(ze="background-color",ht="background",Ae instanceof pn&&(De.backgroundColor="white")),(a instanceof Ht||a instanceof T)&&(ze=ht="fill",De.fill="white");for(const ot of Object.getOwnPropertyNames(this)){if(ot==="extras"||ot==="color")continue;const ft=this[ot];if(!(ft instanceof t.XFAObject))continue;const St=ft[t.$toStyle](this.color);return St&&(De[St.startsWith("#")?ze:ht]=St),De}if(this.color&&this.color.value){const ot=this.color[t.$toStyle]();De[ot.startsWith("#")?ze:ht]=ot}return De}}class _e extends t.XFAObject{constructor(a){super(x,"filter",!0),this.addRevocationInfo=(0,e.getStringOption)(a.addRevocationInfo,["","required","optional","none"]),this.id=a.id||"",this.name=a.name||"",this.use=a.use||"",this.usehref=a.usehref||"",this.version=(0,e.getInteger)({data:this.version,defaultValue:5,validate:W=>W>=1&&W<=5}),this.appearanceFilter=null,this.certificates=null,this.digestMethods=null,this.encodings=null,this.encryptionMethods=null,this.handler=null,this.lockDocument=null,this.mdp=null,this.reasons=null,this.timeStamp=null}}class rt extends t.ContentObject{constructor(a){super(x,"float"),this.id=a.id||"",this.name=a.name||"",this.use=a.use||"",this.usehref=a.usehref||""}[t.$finalize](){const a=parseFloat(this[t.$content].trim());this[t.$content]=isNaN(a)?null:a}[t.$toHTML](a){return r(this[t.$content]!==null?this[t.$content].toString():"")}}class Xe extends t.XFAObject{constructor(a){super(x,"font",!0),this.baselineShift=(0,e.getMeasurement)(a.baselineShift),this.fontHorizontalScale=(0,e.getFloat)({data:a.fontHorizontalScale,defaultValue:100,validate:W=>W>=0}),this.fontVerticalScale=(0,e.getFloat)({data:a.fontVerticalScale,defaultValue:100,validate:W=>W>=0}),this.id=a.id||"",this.kerningMode=(0,e.getStringOption)(a.kerningMode,["none","pair"]),this.letterSpacing=(0,e.getMeasurement)(a.letterSpacing,"0"),this.lineThrough=(0,e.getInteger)({data:a.lineThrough,defaultValue:0,validate:W=>W===1||W===2}),this.lineThroughPeriod=(0,e.getStringOption)(a.lineThroughPeriod,["all","word"]),this.overline=(0,e.getInteger)({data:a.overline,defaultValue:0,validate:W=>W===1||W===2}),this.overlinePeriod=(0,e.getStringOption)(a.overlinePeriod,["all","word"]),this.posture=(0,e.getStringOption)(a.posture,["normal","italic"]),this.size=(0,e.getMeasurement)(a.size,"10pt"),this.typeface=a.typeface||"Courier",this.underline=(0,e.getInteger)({data:a.underline,defaultValue:0,validate:W=>W===1||W===2}),this.underlinePeriod=(0,e.getStringOption)(a.underlinePeriod,["all","word"]),this.use=a.use||"",this.usehref=a.usehref||"",this.weight=(0,e.getStringOption)(a.weight,["normal","bold"]),this.extras=null,this.fill=null}[t.$clean](a){super[t.$clean](a),this[t.$globalData].usedTypefaces.add(this.typeface)}[t.$toStyle](){const a=(0,P.toStyle)(this,"fill"),W=a.color;return W&&(W==="#000000"?delete a.color:W.startsWith("#")||(a.background=W,a.backgroundClip="text",a.color="transparent")),this.baselineShift&&(a.verticalAlign=(0,P.measureToString)(this.baselineShift)),a.fontKerning=this.kerningMode==="none"?"none":"normal",a.letterSpacing=(0,P.measureToString)(this.letterSpacing),this.lineThrough!==0&&(a.textDecoration="line-through",this.lineThrough===2&&(a.textDecorationStyle="double")),this.overline!==0&&(a.textDecoration="overline",this.overline===2&&(a.textDecorationStyle="double")),a.fontStyle=this.posture,a.fontSize=(0,P.measureToString)(.99*this.size),(0,P.setFontFamily)(this,this,this[t.$globalData].fontFinder,a),this.underline!==0&&(a.textDecoration="underline",this.underline===2&&(a.textDecorationStyle="double")),a.fontWeight=this.weight,a}}class Je extends t.XFAObject{constructor(a){super(x,"format",!0),this.id=a.id||"",this.use=a.use||"",this.usehref=a.usehref||"",this.extras=null,this.picture=null}}class et extends t.StringObject{constructor(a){super(x,"handler"),this.id=a.id||"",this.type=(0,e.getStringOption)(a.type,["optional","required"]),this.use=a.use||"",this.usehref=a.usehref||""}}class pt extends t.XFAObject{constructor(a){super(x,"hyphenation"),this.excludeAllCaps=(0,e.getInteger)({data:a.excludeAllCaps,defaultValue:0,validate:W=>W===1}),this.excludeInitialCap=(0,e.getInteger)({data:a.excludeInitialCap,defaultValue:0,validate:W=>W===1}),this.hyphenate=(0,e.getInteger)({data:a.hyphenate,defaultValue:0,validate:W=>W===1}),this.id=a.id||"",this.pushCharacterCount=(0,e.getInteger)({data:a.pushCharacterCount,defaultValue:3,validate:W=>W>=0}),this.remainCharacterCount=(0,e.getInteger)({data:a.remainCharacterCount,defaultValue:3,validate:W=>W>=0}),this.use=a.use||"",this.usehref=a.usehref||"",this.wordCharacterCount=(0,e.getInteger)({data:a.wordCharacterCount,defaultValue:7,validate:W=>W>=0})}}class xt extends t.StringObject{constructor(a){super(x,"image"),this.aspect=(0,e.getStringOption)(a.aspect,["fit","actual","height","none","width"]),this.contentType=a.contentType||"",this.href=a.href||"",this.id=a.id||"",this.name=a.name||"",this.transferEncoding=(0,e.getStringOption)(a.transferEncoding,["base64","none","package"]),this.use=a.use||"",this.usehref=a.usehref||""}[t.$toHTML](){if(this.contentType&&!c.has(this.contentType.toLowerCase()))return e.HTMLResult.EMPTY;let a=this[t.$globalData].images&&this[t.$globalData].images.get(this.href);if(!a&&(this.href||!this[t.$content])||(!a&&this.transferEncoding==="base64"&&(a=(0,N.stringToBytes)(atob(this[t.$content]))),!a))return e.HTMLResult.EMPTY;if(!this.contentType){for(const[ze,ht]of C)if(a.length>ze.length&&ze.every((ot,ft)=>ot===a[ft])){this.contentType=ht;break}if(!this.contentType)return e.HTMLResult.EMPTY}const W=new Blob([a],{type:this.contentType});let Ae;switch(this.aspect){case"fit":case"actual":break;case"height":Ae={height:"100%",objectFit:"fill"};break;case"none":Ae={width:"100%",height:"100%",objectFit:"fill"};break;case"width":Ae={width:"100%",objectFit:"fill"};break}const De=this[t.$getParent]();return e.HTMLResult.success({name:"img",attributes:{class:["xfaImage"],style:Ae,src:URL.createObjectURL(W),alt:De?S(De[t.$getParent]()):null}})}}class Ot extends t.XFAObject{constructor(a){super(x,"imageEdit",!0),this.data=(0,e.getStringOption)(a.data,["link","embed"]),this.id=a.id||"",this.use=a.use||"",this.usehref=a.usehref||"",this.border=null,this.extras=null,this.margin=null}[t.$toHTML](a){return this.data==="embed"?e.HTMLResult.success({name:"div",children:[],attributes:{}}):e.HTMLResult.EMPTY}}class st extends t.ContentObject{constructor(a){super(x,"integer"),this.id=a.id||"",this.name=a.name||"",this.use=a.use||"",this.usehref=a.usehref||""}[t.$finalize](){const a=parseInt(this[t.$content].trim(),10);this[t.$content]=isNaN(a)?null:a}[t.$toHTML](a){return r(this[t.$content]!==null?this[t.$content].toString():"")}}class Nt extends t.XFAObject{constructor(a){super(x,"issuers",!0),this.id=a.id||"",this.type=(0,e.getStringOption)(a.type,["optional","required"]),this.use=a.use||"",this.usehref=a.usehref||"",this.certificate=new t.XFAObjectArray}}class Ut extends t.XFAObject{constructor(a){super(x,"items",!0),this.id=a.id||"",this.name=a.name||"",this.presence=(0,e.getStringOption)(a.presence,["visible","hidden","inactive","invisible"]),this.ref=a.ref||"",this.save=(0,e.getInteger)({data:a.save,defaultValue:0,validate:W=>W===1}),this.use=a.use||"",this.usehref=a.usehref||"",this.boolean=new t.XFAObjectArray,this.date=new t.XFAObjectArray,this.dateTime=new t.XFAObjectArray,this.decimal=new t.XFAObjectArray,this.exData=new t.XFAObjectArray,this.float=new t.XFAObjectArray,this.image=new t.XFAObjectArray,this.integer=new t.XFAObjectArray,this.text=new t.XFAObjectArray,this.time=new t.XFAObjectArray}[t.$toHTML](){const a=[];for(const W of this[t.$getChildren]())a.push(W[t.$text]());return e.HTMLResult.success(a)}}l.Items=Ut;class _t extends t.XFAObject{constructor(a){super(x,"keep",!0),this.id=a.id||"";const W=["none","contentArea","pageArea"];this.intact=(0,e.getStringOption)(a.intact,W),this.next=(0,e.getStringOption)(a.next,W),this.previous=(0,e.getStringOption)(a.previous,W),this.use=a.use||"",this.usehref=a.usehref||"",this.extras=null}}class Tt extends t.XFAObject{constructor(a){super(x,"keyUsage");const W=["","yes","no"];this.crlSign=(0,e.getStringOption)(a.crlSign,W),this.dataEncipherment=(0,e.getStringOption)(a.dataEncipherment,W),this.decipherOnly=(0,e.getStringOption)(a.decipherOnly,W),this.digitalSignature=(0,e.getStringOption)(a.digitalSignature,W),this.encipherOnly=(0,e.getStringOption)(a.encipherOnly,W),this.id=a.id||"",this.keyAgreement=(0,e.getStringOption)(a.keyAgreement,W),this.keyCertSign=(0,e.getStringOption)(a.keyCertSign,W),this.keyEncipherment=(0,e.getStringOption)(a.keyEncipherment,W),this.nonRepudiation=(0,e.getStringOption)(a.nonRepudiation,W),this.type=(0,e.getStringOption)(a.type,["optional","required"]),this.use=a.use||"",this.usehref=a.usehref||""}}class Le extends t.XFAObject{constructor(a){super(x,"line",!0),this.hand=(0,e.getStringOption)(a.hand,["even","left","right"]),this.id=a.id||"",this.slope=(0,e.getStringOption)(a.slope,["\\","/"]),this.use=a.use||"",this.usehref=a.usehref||"",this.edge=null}[t.$toHTML](){const a=this[t.$getParent]()[t.$getParent](),W=this.edge||new Ie({}),Ae=W[t.$toStyle](),De=Object.create(null),ze=W.presence==="visible"?W.thickness:0;De.strokeWidth=(0,P.measureToString)(ze),De.stroke=Ae.color;let ht,ot,ft,St,It="100%",Lt="100%";a.w<=ze?([ht,ot,ft,St]=["50%",0,"50%","100%"],It=De.strokeWidth):a.h<=ze?([ht,ot,ft,St]=[0,"50%","100%","50%"],Lt=De.strokeWidth):this.slope==="\\"?[ht,ot,ft,St]=[0,0,"100%","100%"]:[ht,ot,ft,St]=[0,"100%","100%",0];const zt={name:"svg",children:[{name:"line",attributes:{xmlns:g,x1:ht,y1:ot,x2:ft,y2:St,style:De}}],attributes:{xmlns:g,width:It,height:Lt,style:{overflow:"visible"}}};return m(a)?e.HTMLResult.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[zt]}):(zt.attributes.style.position="absolute",e.HTMLResult.success(zt))}}class Re extends t.XFAObject{constructor(a){super(x,"linear",!0),this.id=a.id||"",this.type=(0,e.getStringOption)(a.type,["toRight","toBottom","toLeft","toTop"]),this.use=a.use||"",this.usehref=a.usehref||"",this.color=null,this.extras=null}[t.$toStyle](a){a=a?a[t.$toStyle]():"#FFFFFF";const W=this.type.replace(/([RBLT])/," $1").toLowerCase(),Ae=this.color?this.color[t.$toStyle]():"#000000";return`linear-gradient(${W}, ${a}, ${Ae})`}}class Ue extends t.ContentObject{constructor(a){super(x,"lockDocument"),this.id=a.id||"",this.type=(0,e.getStringOption)(a.type,["optional","required"]),this.use=a.use||"",this.usehref=a.usehref||""}[t.$finalize](){this[t.$content]=(0,e.getStringOption)(this[t.$content],["auto","0","1"])}}class Ke extends t.XFAObject{constructor(a){super(x,"manifest",!0),this.action=(0,e.getStringOption)(a.action,["include","all","exclude"]),this.id=a.id||"",this.name=a.name||"",this.use=a.use||"",this.usehref=a.usehref||"",this.extras=null,this.ref=new t.XFAObjectArray}}class He extends t.XFAObject{constructor(a){super(x,"margin",!0),this.bottomInset=(0,e.getMeasurement)(a.bottomInset,"0"),this.id=a.id||"",this.leftInset=(0,e.getMeasurement)(a.leftInset,"0"),this.rightInset=(0,e.getMeasurement)(a.rightInset,"0"),this.topInset=(0,e.getMeasurement)(a.topInset,"0"),this.use=a.use||"",this.usehref=a.usehref||"",this.extras=null}[t.$toStyle](){return{margin:(0,P.measureToString)(this.topInset)+" "+(0,P.measureToString)(this.rightInset)+" "+(0,P.measureToString)(this.bottomInset)+" "+(0,P.measureToString)(this.leftInset)}}}class lt extends t.XFAObject{constructor(a){super(x,"mdp"),this.id=a.id||"",this.permissions=(0,e.getInteger)({data:a.permissions,defaultValue:2,validate:W=>W===1||W===3}),this.signatureType=(0,e.getStringOption)(a.signatureType,["filler","author"]),this.use=a.use||"",this.usehref=a.usehref||""}}class Ze extends t.XFAObject{constructor(a){super(x,"medium"),this.id=a.id||"",this.imagingBBox=(0,e.getBBox)(a.imagingBBox),this.long=(0,e.getMeasurement)(a.long),this.orientation=(0,e.getStringOption)(a.orientation,["portrait","landscape"]),this.short=(0,e.getMeasurement)(a.short),this.stock=a.stock||"",this.trayIn=(0,e.getStringOption)(a.trayIn,["auto","delegate","pageFront"]),this.trayOut=(0,e.getStringOption)(a.trayOut,["auto","delegate"]),this.use=a.use||"",this.usehref=a.usehref||""}}class qe extends t.XFAObject{constructor(a){super(x,"message",!0),this.id=a.id||"",this.use=a.use||"",this.usehref=a.usehref||"",this.text=new t.XFAObjectArray}}class dt extends t.XFAObject{constructor(a){super(x,"numericEdit",!0),this.hScrollPolicy=(0,e.getStringOption)(a.hScrollPolicy,["auto","off","on"]),this.id=a.id||"",this.use=a.use||"",this.usehref=a.usehref||"",this.border=null,this.comb=null,this.extras=null,this.margin=null}[t.$toHTML](a){const W=(0,P.toStyle)(this,"border","font","margin"),Ae=this[t.$getParent]()[t.$getParent](),De={name:"input",attributes:{type:"text",fieldId:Ae[t.$uid],dataId:Ae[t.$data]&&Ae[t.$data][t.$uid]||Ae[t.$uid],class:["xfaTextfield"],style:W,"aria-label":S(Ae),"aria-required":!1}};return F(Ae)&&(De.attributes["aria-required"]=!0,De.attributes.required=!0),e.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[De]})}}class gt extends t.XFAObject{constructor(a){super(x,"occur",!0),this.id=a.id||"",this.initial=a.initial!==""?(0,e.getInteger)({data:a.initial,defaultValue:"",validate:W=>!0}):"",this.max=a.max!==""?(0,e.getInteger)({data:a.max,defaultValue:1,validate:W=>!0}):"",this.min=a.min!==""?(0,e.getInteger)({data:a.min,defaultValue:1,validate:W=>!0}):"",this.use=a.use||"",this.usehref=a.usehref||"",this.extras=null}[t.$clean](){const a=this[t.$getParent](),W=this.min;this.min===""&&(this.min=a instanceof Ye||a instanceof We?0:1),this.max===""&&(W===""?this.max=a instanceof Ye||a instanceof We?-1:1:this.max=this.min),this.max!==-1&&this.max<this.min&&(this.max=this.min),this.initial===""&&(this.initial=a instanceof Dn?1:this.min)}}class we extends t.StringObject{constructor(a){super(x,"oid"),this.id=a.id||"",this.name=a.name||"",this.use=a.use||"",this.usehref=a.usehref||""}}class Te extends t.XFAObject{constructor(a){super(x,"oids",!0),this.id=a.id||"",this.type=(0,e.getStringOption)(a.type,["optional","required"]),this.use=a.use||"",this.usehref=a.usehref||"",this.oid=new t.XFAObjectArray}}class Be extends t.XFAObject{constructor(a){super(x,"overflow"),this.id=a.id||"",this.leader=a.leader||"",this.target=a.target||"",this.trailer=a.trailer||"",this.use=a.use||"",this.usehref=a.usehref||""}[t.$getExtra](){if(!this[t.$extra]){const a=this[t.$getParent](),W=this[t.$getTemplateRoot](),Ae=W[t.$searchNode](this.target,a),De=W[t.$searchNode](this.leader,a),ze=W[t.$searchNode](this.trailer,a);this[t.$extra]={target:Ae&&Ae[0]||null,leader:De&&De[0]||null,trailer:ze&&ze[0]||null,addLeader:!1,addTrailer:!1}}return this[t.$extra]}}class Ye extends t.XFAObject{constructor(a){super(x,"pageArea",!0),this.blankOrNotBlank=(0,e.getStringOption)(a.blankOrNotBlank,["any","blank","notBlank"]),this.id=a.id||"",this.initialNumber=(0,e.getInteger)({data:a.initialNumber,defaultValue:1,validate:W=>!0}),this.name=a.name||"",this.numbered=(0,e.getInteger)({data:a.numbered,defaultValue:1,validate:W=>!0}),this.oddOrEven=(0,e.getStringOption)(a.oddOrEven,["any","even","odd"]),this.pagePosition=(0,e.getStringOption)(a.pagePosition,["any","first","last","only","rest"]),this.relevant=(0,e.getRelevant)(a.relevant),this.use=a.use||"",this.usehref=a.usehref||"",this.desc=null,this.extras=null,this.medium=null,this.occur=null,this.area=new t.XFAObjectArray,this.contentArea=new t.XFAObjectArray,this.draw=new t.XFAObjectArray,this.exclGroup=new t.XFAObjectArray,this.field=new t.XFAObjectArray,this.subform=new t.XFAObjectArray}[t.$isUsable](){return this[t.$extra]?!this.occur||this.occur.max===-1||this[t.$extra].numberOfUse<this.occur.max:(this[t.$extra]={numberOfUse:0},!0)}[t.$cleanPage](){delete this[t.$extra]}[t.$getNextPage](){this[t.$extra]||(this[t.$extra]={numberOfUse:0});const a=this[t.$getParent]();return a.relation==="orderedOccurrence"&&this[t.$isUsable]()?(this[t.$extra].numberOfUse+=1,this):a[t.$getNextPage]()}[t.$getAvailableSpace](){return this[t.$extra].space||{width:0,height:0}}[t.$toHTML](){this[t.$extra]||(this[t.$extra]={numberOfUse:1});const a=[];this[t.$extra].children=a;const W=Object.create(null);if(this.medium&&this.medium.short&&this.medium.long){if(W.width=(0,P.measureToString)(this.medium.short),W.height=(0,P.measureToString)(this.medium.long),this[t.$extra].space={width:this.medium.short,height:this.medium.long},this.medium.orientation==="landscape"){const Ae=W.width;W.width=W.height,W.height=Ae,this[t.$extra].space={width:this.medium.long,height:this.medium.short}}}else(0,N.warn)("XFA - No medium specified in pageArea: please file a bug.");return this[t.$childrenToHTML]({filter:new Set(["area","draw","field","subform"]),include:!0}),this[t.$childrenToHTML]({filter:new Set(["contentArea"]),include:!0}),e.HTMLResult.success({name:"div",children:a,attributes:{class:["xfaPage"],id:this[t.$uid],style:W,xfaName:this.name}})}}class We extends t.XFAObject{constructor(a){super(x,"pageSet",!0),this.duplexImposition=(0,e.getStringOption)(a.duplexImposition,["longEdge","shortEdge"]),this.id=a.id||"",this.name=a.name||"",this.relation=(0,e.getStringOption)(a.relation,["orderedOccurrence","duplexPaginated","simplexPaginated"]),this.relevant=(0,e.getRelevant)(a.relevant),this.use=a.use||"",this.usehref=a.usehref||"",this.extras=null,this.occur=null,this.pageArea=new t.XFAObjectArray,this.pageSet=new t.XFAObjectArray}[t.$cleanPage](){for(const a of this.pageArea.children)a[t.$cleanPage]();for(const a of this.pageSet.children)a[t.$cleanPage]()}[t.$isUsable](){return!this.occur||this.occur.max===-1||this[t.$extra].numberOfUse<this.occur.max}[t.$getNextPage](){if(this[t.$extra]||(this[t.$extra]={numberOfUse:1,pageIndex:-1,pageSetIndex:-1}),this.relation==="orderedOccurrence"){if(this[t.$extra].pageIndex+1<this.pageArea.children.length)return this[t.$extra].pageIndex+=1,this.pageArea.children[this[t.$extra].pageIndex][t.$getNextPage]();if(this[t.$extra].pageSetIndex+1<this.pageSet.children.length)return this[t.$extra].pageSetIndex+=1,this.pageSet.children[this[t.$extra].pageSetIndex][t.$getNextPage]();if(this[t.$isUsable]())return this[t.$extra].numberOfUse+=1,this[t.$extra].pageIndex=-1,this[t.$extra].pageSetIndex=-1,this[t.$getNextPage]();const ze=this[t.$getParent]();return ze instanceof We?ze[t.$getNextPage]():(this[t.$cleanPage](),this[t.$getNextPage]())}const a=this[t.$getTemplateRoot]()[t.$extra].pageNumber,W=a%2===0?"even":"odd",Ae=a===0?"first":"rest";let De=this.pageArea.children.find(ze=>ze.oddOrEven===W&&ze.pagePosition===Ae);return De||(De=this.pageArea.children.find(ze=>ze.oddOrEven==="any"&&ze.pagePosition===Ae),De)||(De=this.pageArea.children.find(ze=>ze.oddOrEven==="any"&&ze.pagePosition==="any"),De)?De:this.pageArea.children[0]}}class ct extends t.XFAObject{constructor(a){super(x,"para",!0),this.hAlign=(0,e.getStringOption)(a.hAlign,["left","center","justify","justifyAll","radix","right"]),this.id=a.id||"",this.lineHeight=a.lineHeight?(0,e.getMeasurement)(a.lineHeight,"0pt"):"",this.marginLeft=a.marginLeft?(0,e.getMeasurement)(a.marginLeft,"0pt"):"",this.marginRight=a.marginRight?(0,e.getMeasurement)(a.marginRight,"0pt"):"",this.orphans=(0,e.getInteger)({data:a.orphans,defaultValue:0,validate:W=>W>=0}),this.preserve=a.preserve||"",this.radixOffset=a.radixOffset?(0,e.getMeasurement)(a.radixOffset,"0pt"):"",this.spaceAbove=a.spaceAbove?(0,e.getMeasurement)(a.spaceAbove,"0pt"):"",this.spaceBelow=a.spaceBelow?(0,e.getMeasurement)(a.spaceBelow,"0pt"):"",this.tabDefault=a.tabDefault?(0,e.getMeasurement)(this.tabDefault):"",this.tabStops=(a.tabStops||"").trim().split(/\s+/).map((W,Ae)=>Ae%2===1?(0,e.getMeasurement)(W):W),this.textIndent=a.textIndent?(0,e.getMeasurement)(a.textIndent,"0pt"):"",this.use=a.use||"",this.usehref=a.usehref||"",this.vAlign=(0,e.getStringOption)(a.vAlign,["top","bottom","middle"]),this.widows=(0,e.getInteger)({data:a.widows,defaultValue:0,validate:W=>W>=0}),this.hyphenation=null}[t.$toStyle](){const a=(0,P.toStyle)(this,"hAlign");return this.marginLeft!==""&&(a.paddingLeft=(0,P.measureToString)(this.marginLeft)),this.marginRight!==""&&(a.paddingight=(0,P.measureToString)(this.marginRight)),this.spaceAbove!==""&&(a.paddingTop=(0,P.measureToString)(this.spaceAbove)),this.spaceBelow!==""&&(a.paddingBottom=(0,P.measureToString)(this.spaceBelow)),this.textIndent!==""&&(a.textIndent=(0,P.measureToString)(this.textIndent),(0,P.fixTextIndent)(a)),this.lineHeight>0&&(a.lineHeight=(0,P.measureToString)(this.lineHeight)),this.tabDefault!==""&&(a.tabSize=(0,P.measureToString)(this.tabDefault)),this.tabStops.length>0,this.hyphenatation&&Object.assign(a,this.hyphenatation[t.$toStyle]()),a}}class tt extends t.XFAObject{constructor(a){super(x,"passwordEdit",!0),this.hScrollPolicy=(0,e.getStringOption)(a.hScrollPolicy,["auto","off","on"]),this.id=a.id||"",this.passwordChar=a.passwordChar||"*",this.use=a.use||"",this.usehref=a.usehref||"",this.border=null,this.extras=null,this.margin=null}}class ut extends t.XFAObject{constructor(a){super(x,"pattern",!0),this.id=a.id||"",this.type=(0,e.getStringOption)(a.type,["crossHatch","crossDiagonal","diagonalLeft","diagonalRight","horizontal","vertical"]),this.use=a.use||"",this.usehref=a.usehref||"",this.color=null,this.extras=null}[t.$toStyle](a){a=a?a[t.$toStyle]():"#FFFFFF";const W=this.color?this.color[t.$toStyle]():"#000000",Ae=5,De="repeating-linear-gradient",ze=`${a},${a} ${Ae}px,${W} ${Ae}px,${W} ${2*Ae}px`;switch(this.type){case"crossHatch":return`${De}(to top,${ze}) ${De}(to right,${ze})`;case"crossDiagonal":return`${De}(45deg,${ze}) ${De}(-45deg,${ze})`;case"diagonalLeft":return`${De}(45deg,${ze})`;case"diagonalRight":return`${De}(-45deg,${ze})`;case"horizontal":return`${De}(to top,${ze})`;case"vertical":return`${De}(to right,${ze})`}return""}}class bt extends t.StringObject{constructor(a){super(x,"picture"),this.id=a.id||"",this.use=a.use||"",this.usehref=a.usehref||""}}class jt extends t.XFAObject{constructor(a){super(x,"proto",!0),this.appearanceFilter=new t.XFAObjectArray,this.arc=new t.XFAObjectArray,this.area=new t.XFAObjectArray,this.assist=new t.XFAObjectArray,this.barcode=new t.XFAObjectArray,this.bindItems=new t.XFAObjectArray,this.bookend=new t.XFAObjectArray,this.boolean=new t.XFAObjectArray,this.border=new t.XFAObjectArray,this.break=new t.XFAObjectArray,this.breakAfter=new t.XFAObjectArray,this.breakBefore=new t.XFAObjectArray,this.button=new t.XFAObjectArray,this.calculate=new t.XFAObjectArray,this.caption=new t.XFAObjectArray,this.certificate=new t.XFAObjectArray,this.certificates=new t.XFAObjectArray,this.checkButton=new t.XFAObjectArray,this.choiceList=new t.XFAObjectArray,this.color=new t.XFAObjectArray,this.comb=new t.XFAObjectArray,this.connect=new t.XFAObjectArray,this.contentArea=new t.XFAObjectArray,this.corner=new t.XFAObjectArray,this.date=new t.XFAObjectArray,this.dateTime=new t.XFAObjectArray,this.dateTimeEdit=new t.XFAObjectArray,this.decimal=new t.XFAObjectArray,this.defaultUi=new t.XFAObjectArray,this.desc=new t.XFAObjectArray,this.digestMethod=new t.XFAObjectArray,this.digestMethods=new t.XFAObjectArray,this.draw=new t.XFAObjectArray,this.edge=new t.XFAObjectArray,this.encoding=new t.XFAObjectArray,this.encodings=new t.XFAObjectArray,this.encrypt=new t.XFAObjectArray,this.encryptData=new t.XFAObjectArray,this.encryption=new t.XFAObjectArray,this.encryptionMethod=new t.XFAObjectArray,this.encryptionMethods=new t.XFAObjectArray,this.event=new t.XFAObjectArray,this.exData=new t.XFAObjectArray,this.exObject=new t.XFAObjectArray,this.exclGroup=new t.XFAObjectArray,this.execute=new t.XFAObjectArray,this.extras=new t.XFAObjectArray,this.field=new t.XFAObjectArray,this.fill=new t.XFAObjectArray,this.filter=new t.XFAObjectArray,this.float=new t.XFAObjectArray,this.font=new t.XFAObjectArray,this.format=new t.XFAObjectArray,this.handler=new t.XFAObjectArray,this.hyphenation=new t.XFAObjectArray,this.image=new t.XFAObjectArray,this.imageEdit=new t.XFAObjectArray,this.integer=new t.XFAObjectArray,this.issuers=new t.XFAObjectArray,this.items=new t.XFAObjectArray,this.keep=new t.XFAObjectArray,this.keyUsage=new t.XFAObjectArray,this.line=new t.XFAObjectArray,this.linear=new t.XFAObjectArray,this.lockDocument=new t.XFAObjectArray,this.manifest=new t.XFAObjectArray,this.margin=new t.XFAObjectArray,this.mdp=new t.XFAObjectArray,this.medium=new t.XFAObjectArray,this.message=new t.XFAObjectArray,this.numericEdit=new t.XFAObjectArray,this.occur=new t.XFAObjectArray,this.oid=new t.XFAObjectArray,this.oids=new t.XFAObjectArray,this.overflow=new t.XFAObjectArray,this.pageArea=new t.XFAObjectArray,this.pageSet=new t.XFAObjectArray,this.para=new t.XFAObjectArray,this.passwordEdit=new t.XFAObjectArray,this.pattern=new t.XFAObjectArray,this.picture=new t.XFAObjectArray,this.radial=new t.XFAObjectArray,this.reason=new t.XFAObjectArray,this.reasons=new t.XFAObjectArray,this.rectangle=new t.XFAObjectArray,this.ref=new t.XFAObjectArray,this.script=new t.XFAObjectArray,this.setProperty=new t.XFAObjectArray,this.signData=new t.XFAObjectArray,this.signature=new t.XFAObjectArray,this.signing=new t.XFAObjectArray,this.solid=new t.XFAObjectArray,this.speak=new t.XFAObjectArray,this.stipple=new t.XFAObjectArray,this.subform=new t.XFAObjectArray,this.subformSet=new t.XFAObjectArray,this.subjectDN=new t.XFAObjectArray,this.subjectDNs=new t.XFAObjectArray,this.submit=new t.XFAObjectArray,this.text=new t.XFAObjectArray,this.textEdit=new t.XFAObjectArray,this.time=new t.XFAObjectArray,this.timeStamp=new t.XFAObjectArray,this.toolTip=new t.XFAObjectArray,this.traversal=new t.XFAObjectArray,this.traverse=new t.XFAObjectArray,this.ui=new t.XFAObjectArray,this.validate=new t.XFAObjectArray,this.value=new t.XFAObjectArray,this.variables=new t.XFAObjectArray}}class yt extends t.XFAObject{constructor(a){super(x,"radial",!0),this.id=a.id||"",this.type=(0,e.getStringOption)(a.type,["toEdge","toCenter"]),this.use=a.use||"",this.usehref=a.usehref||"",this.color=null,this.extras=null}[t.$toStyle](a){a=a?a[t.$toStyle]():"#FFFFFF";const W=this.color?this.color[t.$toStyle]():"#000000";return`radial-gradient(circle at center, ${this.type==="toEdge"?`${a},${W}`:`${W},${a}`})`}}class wt extends t.StringObject{constructor(a){super(x,"reason"),this.id=a.id||"",this.name=a.name||"",this.use=a.use||"",this.usehref=a.usehref||""}}class Mt extends t.XFAObject{constructor(a){super(x,"reasons",!0),this.id=a.id||"",this.type=(0,e.getStringOption)(a.type,["optional","required"]),this.use=a.use||"",this.usehref=a.usehref||"",this.reason=new t.XFAObjectArray}}class Ht extends t.XFAObject{constructor(a){super(x,"rectangle",!0),this.hand=(0,e.getStringOption)(a.hand,["even","left","right"]),this.id=a.id||"",this.use=a.use||"",this.usehref=a.usehref||"",this.corner=new t.XFAObjectArray(4),this.edge=new t.XFAObjectArray(4),this.fill=null}[t.$toHTML](){const a=this.edge.children.length?this.edge.children[0]:new Ie({}),W=a[t.$toStyle](),Ae=Object.create(null);this.fill&&this.fill.presence==="visible"?Object.assign(Ae,this.fill[t.$toStyle]()):Ae.fill="transparent",Ae.strokeWidth=(0,P.measureToString)(a.presence==="visible"?a.thickness:0),Ae.stroke=W.color;const ze=(this.corner.children.length?this.corner.children[0]:new re({}))[t.$toStyle](),ot={name:"svg",children:[{name:"rect",attributes:{xmlns:g,width:"100%",height:"100%",x:0,y:0,rx:ze.radius,ry:ze.radius,style:Ae}}],attributes:{xmlns:g,style:{overflow:"visible"},width:"100%",height:"100%"}},ft=this[t.$getParent]()[t.$getParent]();return m(ft)?e.HTMLResult.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[ot]}):(ot.attributes.style.position="absolute",e.HTMLResult.success(ot))}}class nn extends t.StringObject{constructor(a){super(x,"ref"),this.id=a.id||"",this.use=a.use||"",this.usehref=a.usehref||""}}class Sn extends t.StringObject{constructor(a){super(x,"script"),this.binding=a.binding||"",this.contentType=a.contentType||"",this.id=a.id||"",this.name=a.name||"",this.runAt=(0,e.getStringOption)(a.runAt,["client","both","server"]),this.use=a.use||"",this.usehref=a.usehref||""}}class Un extends t.XFAObject{constructor(a){super(x,"setProperty"),this.connection=a.connection||"",this.ref=a.ref||"",this.target=a.target||""}}l.SetProperty=Un;class Yn extends t.XFAObject{constructor(a){super(x,"signData",!0),this.id=a.id||"",this.operation=(0,e.getStringOption)(a.operation,["sign","clear","verify"]),this.ref=a.ref||"",this.target=a.target||"",this.use=a.use||"",this.usehref=a.usehref||"",this.filter=null,this.manifest=null}}class Jn extends t.XFAObject{constructor(a){super(x,"signature",!0),this.id=a.id||"",this.type=(0,e.getStringOption)(a.type,["PDF1.3","PDF1.6"]),this.use=a.use||"",this.usehref=a.usehref||"",this.border=null,this.extras=null,this.filter=null,this.manifest=null,this.margin=null}}class Zn extends t.XFAObject{constructor(a){super(x,"signing",!0),this.id=a.id||"",this.type=(0,e.getStringOption)(a.type,["optional","required"]),this.use=a.use||"",this.usehref=a.usehref||"",this.certificate=new t.XFAObjectArray}}class Qn extends t.XFAObject{constructor(a){super(x,"solid",!0),this.id=a.id||"",this.use=a.use||"",this.usehref=a.usehref||"",this.extras=null}[t.$toStyle](a){return a?a[t.$toStyle]():"#FFFFFF"}}class ea extends t.StringObject{constructor(a){super(x,"speak"),this.disable=(0,e.getInteger)({data:a.disable,defaultValue:0,validate:W=>W===1}),this.id=a.id||"",this.priority=(0,e.getStringOption)(a.priority,["custom","caption","name","toolTip"]),this.rid=a.rid||"",this.use=a.use||"",this.usehref=a.usehref||""}}class jn extends t.XFAObject{constructor(a){super(x,"stipple",!0),this.id=a.id||"",this.rate=(0,e.getInteger)({data:a.rate,defaultValue:50,validate:W=>W>=0&&W<=100}),this.use=a.use||"",this.usehref=a.usehref||"",this.color=null,this.extras=null}[t.$toStyle](a){const W=this.rate/100;return N.Util.makeHexColor(Math.round(a.value.r*(1-W)+this.value.r*W),Math.round(a.value.g*(1-W)+this.value.g*W),Math.round(a.value.b*(1-W)+this.value.b*W))}}class Xn extends t.XFAObject{constructor(a){super(x,"subform",!0),this.access=(0,e.getStringOption)(a.access,["open","nonInteractive","protected","readOnly"]),this.allowMacro=(0,e.getInteger)({data:a.allowMacro,defaultValue:0,validate:W=>W===1}),this.anchorType=(0,e.getStringOption)(a.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]),this.colSpan=(0,e.getInteger)({data:a.colSpan,defaultValue:1,validate:W=>W>=1||W===-1}),this.columnWidths=(a.columnWidths||"").trim().split(/\s+/).map(W=>W==="-1"?-1:(0,e.getMeasurement)(W)),this.h=a.h?(0,e.getMeasurement)(a.h):"",this.hAlign=(0,e.getStringOption)(a.hAlign,["left","center","justify","justifyAll","radix","right"]),this.id=a.id||"",this.layout=(0,e.getStringOption)(a.layout,["position","lr-tb","rl-row","rl-tb","row","table","tb"]),this.locale=a.locale||"",this.maxH=(0,e.getMeasurement)(a.maxH,"0pt"),this.maxW=(0,e.getMeasurement)(a.maxW,"0pt"),this.mergeMode=(0,e.getStringOption)(a.mergeMode,["consumeData","matchTemplate"]),this.minH=(0,e.getMeasurement)(a.minH,"0pt"),this.minW=(0,e.getMeasurement)(a.minW,"0pt"),this.name=a.name||"",this.presence=(0,e.getStringOption)(a.presence,["visible","hidden","inactive","invisible"]),this.relevant=(0,e.getRelevant)(a.relevant),this.restoreState=(0,e.getStringOption)(a.restoreState,["manual","auto"]),this.scope=(0,e.getStringOption)(a.scope,["name","none"]),this.use=a.use||"",this.usehref=a.usehref||"",this.w=a.w?(0,e.getMeasurement)(a.w):"",this.x=(0,e.getMeasurement)(a.x,"0pt"),this.y=(0,e.getMeasurement)(a.y,"0pt"),this.assist=null,this.bind=null,this.bookend=null,this.border=null,this.break=null,this.calculate=null,this.desc=null,this.extras=null,this.keep=null,this.margin=null,this.occur=null,this.overflow=null,this.pageSet=null,this.para=null,this.traversal=null,this.validate=null,this.variables=null,this.area=new t.XFAObjectArray,this.breakAfter=new t.XFAObjectArray,this.breakBefore=new t.XFAObjectArray,this.connect=new t.XFAObjectArray,this.draw=new t.XFAObjectArray,this.event=new t.XFAObjectArray,this.exObject=new t.XFAObjectArray,this.exclGroup=new t.XFAObjectArray,this.field=new t.XFAObjectArray,this.proto=new t.XFAObjectArray,this.setProperty=new t.XFAObjectArray,this.subform=new t.XFAObjectArray,this.subformSet=new t.XFAObjectArray}[t.$getSubformParent](){const a=this[t.$getParent]();return a instanceof Pn?a[t.$getSubformParent]():a}[t.$isBindable](){return!0}[t.$isThereMoreWidth](){return this.layout.endsWith("-tb")&&this[t.$extra].attempt===0&&this[t.$extra].numberInLine>0||this[t.$getParent]()[t.$isThereMoreWidth]()}*[t.$getContainedChildren](){yield*f(this)}[t.$flushHTML](){return(0,O.flushHTML)(this)}[t.$addHTML](a,W){(0,O.addHTML)(this,a,W)}[t.$getAvailableSpace](){return(0,O.getAvailableSpace)(this)}[t.$isSplittable](){const a=this[t.$getSubformParent]();return a[t.$isSplittable]()?this[t.$extra]._isSplittable!==void 0?this[t.$extra]._isSplittable:this.layout==="position"||this.layout.includes("row")?(this[t.$extra]._isSplittable=!1,!1):this.keep&&this.keep.intact!=="none"?(this[t.$extra]._isSplittable=!1,!1):a.layout&&a.layout.endsWith("-tb")&&a[t.$extra].numberInLine!==0?!1:(this[t.$extra]._isSplittable=!0,!0):!1}[t.$toHTML](a){if(s(this),this.break){if(this.break.after!=="auto"||this.break.afterTarget!==""){const kt=new Y({targetType:this.break.after,target:this.break.afterTarget,startNew:this.break.startNew.toString()});kt[t.$globalData]=this[t.$globalData],this[t.$appendChild](kt),this.breakAfter.push(kt)}if(this.break.before!=="auto"||this.break.beforeTarget!==""){const kt=new oe({targetType:this.break.before,target:this.break.beforeTarget,startNew:this.break.startNew.toString()});kt[t.$globalData]=this[t.$globalData],this[t.$appendChild](kt),this.breakBefore.push(kt)}if(this.break.overflowTarget!==""){const kt=new Be({target:this.break.overflowTarget,leader:this.break.overflowLeader,trailer:this.break.overflowTrailer});kt[t.$globalData]=this[t.$globalData],this[t.$appendChild](kt),this.overflow.push(kt)}this[t.$removeChild](this.break),this.break=null}if(this.presence==="hidden"||this.presence==="inactive")return e.HTMLResult.EMPTY;if((this.breakBefore.children.length>1||this.breakAfter.children.length>1)&&(0,N.warn)("XFA - Several breakBefore or breakAfter in subforms: please file a bug."),this.breakBefore.children.length>=1){const kt=this.breakBefore.children[0];if(p(kt))return e.HTMLResult.breakNode(kt)}if(this[t.$extra]&&this[t.$extra].afterBreakAfter)return e.HTMLResult.EMPTY;(0,P.fixDimensions)(this);const W=[],Ae={id:this[t.$uid],class:[]};(0,P.setAccess)(this,Ae.class),this[t.$extra]||(this[t.$extra]=Object.create(null)),Object.assign(this[t.$extra],{children:W,line:null,attributes:Ae,attempt:0,numberInLine:0,availableSpace:{width:Math.min(this.w||1/0,a.width),height:Math.min(this.h||1/0,a.height)},width:0,height:0,prevHeight:0,currentWidth:0});const De=this[t.$getTemplateRoot](),ze=De[t.$extra].noLayoutFailure,ht=this[t.$isSplittable]();if(ht||o(this),!(0,O.checkDimensions)(this,a))return e.HTMLResult.FAILURE;const ot=new Set(["area","draw","exclGroup","field","subform","subformSet"]);if(this.layout.includes("row")){const kt=this[t.$getSubformParent]().columnWidths;Array.isArray(kt)&&kt.length>0&&(this[t.$extra].columnWidths=kt,this[t.$extra].currentColumn=0)}const ft=(0,P.toStyle)(this,"anchorType","dimensions","position","presence","border","margin","hAlign"),St=["xfaSubform"],It=(0,P.layoutClass)(this);if(It&&St.push(It),Ae.style=ft,Ae.class=St,this.name&&(Ae.xfaName=this.name),this.overflow){const kt=this.overflow[t.$getExtra]();kt.addLeader&&(kt.addLeader=!1,v(this,kt.leader,a))}this[t.$pushPara]();const Lt=this.layout==="lr-tb"||this.layout==="rl-tb",Bt=Lt?n:1;for(;this[t.$extra].attempt<Bt;this[t.$extra].attempt++){Lt&&this[t.$extra].attempt===n-1&&(this[t.$extra].numberInLine=0);const kt=this[t.$childrenToHTML]({filter:ot,include:!0});if(kt.success)break;if(kt.isBreak())return this[t.$popPara](),kt;if(Lt&&this[t.$extra].attempt===0&&this[t.$extra].numberInLine===0&&!De[t.$extra].noLayoutFailure){this[t.$extra].attempt=Bt;break}}if(this[t.$popPara](),ht||A(this),De[t.$extra].noLayoutFailure=ze,this[t.$extra].attempt===Bt)return this.overflow&&(this[t.$getTemplateRoot]()[t.$extra].overflowNode=this.overflow),ht||delete this[t.$extra],e.HTMLResult.FAILURE;if(this.overflow){const kt=this.overflow[t.$getExtra]();kt.addTrailer&&(kt.addTrailer=!1,v(this,kt.trailer,a))}let zt=0,Wt=0;this.margin&&(zt=this.margin.leftInset+this.margin.rightInset,Wt=this.margin.topInset+this.margin.bottomInset);const vt=Math.max(this[t.$extra].width+zt,this.w||0),Vt=Math.max(this[t.$extra].height+Wt,this.h||0),Ct=[this.x,this.y,vt,Vt];if(this.w===""&&(ft.width=(0,P.measureToString)(vt)),this.h===""&&(ft.height=(0,P.measureToString)(Vt)),(ft.width==="0px"||ft.height==="0px")&&W.length===0)return e.HTMLResult.EMPTY;const Et={name:"div",attributes:Ae,children:W};d(this,Ae);const Zt=e.HTMLResult.success((0,P.createWrapper)(this,Et),Ct);if(this.breakAfter.children.length>=1){const kt=this.breakAfter.children[0];if(p(kt))return this[t.$extra].afterBreakAfter=Zt,e.HTMLResult.breakNode(kt)}return delete this[t.$extra],Zt}}class Pn extends t.XFAObject{constructor(a){super(x,"subformSet",!0),this.id=a.id||"",this.name=a.name||"",this.relation=(0,e.getStringOption)(a.relation,["ordered","choice","unordered"]),this.relevant=(0,e.getRelevant)(a.relevant),this.use=a.use||"",this.usehref=a.usehref||"",this.bookend=null,this.break=null,this.desc=null,this.extras=null,this.occur=null,this.overflow=null,this.breakAfter=new t.XFAObjectArray,this.breakBefore=new t.XFAObjectArray,this.subform=new t.XFAObjectArray,this.subformSet=new t.XFAObjectArray}*[t.$getContainedChildren](){yield*f(this)}[t.$getSubformParent](){let a=this[t.$getParent]();for(;!(a instanceof Xn);)a=a[t.$getParent]();return a}[t.$isBindable](){return!0}}class ta extends t.ContentObject{constructor(a){super(x,"subjectDN"),this.delimiter=a.delimiter||",",this.id=a.id||"",this.name=a.name||"",this.use=a.use||"",this.usehref=a.usehref||""}[t.$finalize](){this[t.$content]=new Map(this[t.$content].split(this.delimiter).map(a=>(a=a.split("=",2),a[0]=a[0].trim(),a)))}}class xn extends t.XFAObject{constructor(a){super(x,"subjectDNs",!0),this.id=a.id||"",this.type=(0,e.getStringOption)(a.type,["optional","required"]),this.use=a.use||"",this.usehref=a.usehref||"",this.subjectDN=new t.XFAObjectArray}}class Hn extends t.XFAObject{constructor(a){super(x,"submit",!0),this.embedPDF=(0,e.getInteger)({data:a.embedPDF,defaultValue:0,validate:W=>W===1}),this.format=(0,e.getStringOption)(a.format,["xdp","formdata","pdf","urlencoded","xfd","xml"]),this.id=a.id||"",this.target=a.target||"",this.textEncoding=(0,e.getKeyword)({data:a.textEncoding?a.textEncoding.toLowerCase():"",defaultValue:"",validate:W=>["utf-8","big-five","fontspecific","gbk","gb-18030","gb-2312","ksc-5601","none","shift-jis","ucs-2","utf-16"].includes(W)||W.match(/iso-8859-\d{2}/)}),this.use=a.use||"",this.usehref=a.usehref||"",this.xdpContent=a.xdpContent||"",this.encrypt=null,this.encryptData=new t.XFAObjectArray,this.signData=new t.XFAObjectArray}}class Dn extends t.XFAObject{constructor(a){super(x,"template",!0),this.baseProfile=(0,e.getStringOption)(a.baseProfile,["full","interactiveForms"]),this.extras=null,this.subform=new t.XFAObjectArray}[t.$finalize](){this.subform.children.length===0&&(0,N.warn)("XFA - No subforms in template node."),this.subform.children.length>=2&&(0,N.warn)("XFA - Several subforms in template node: please file a bug."),this[t.$tabIndex]=B}[t.$isSplittable](){return!0}[t.$searchNode](a,W){return a.startsWith("#")?[this[t.$ids].get(a.slice(1))]:(0,k.searchNode)(this,W,a,!0,!0)}*[t.$toPages](){if(!this.subform.children.length)return e.HTMLResult.success({name:"div",children:[]});this[t.$extra]={overflowNode:null,firstUnsplittable:null,currentContentArea:null,currentPageArea:null,noLayoutFailure:!1,pageNumber:1,pagePosition:"first",oddOrEven:"odd",blankOrNotBlank:"nonBlank",paraStack:[]};const a=this.subform.children[0];a.pageSet[t.$cleanPage]();const W=a.pageSet.pageArea.children,Ae={name:"div",children:[]};let De=null,ze=null,ht=null;if(a.breakBefore.children.length>=1?(ze=a.breakBefore.children[0],ht=ze.target):a.subform.children.length>=1&&a.subform.children[0].breakBefore.children.length>=1?(ze=a.subform.children[0].breakBefore.children[0],ht=ze.target):a.break&&a.break.beforeTarget?(ze=a.break,ht=ze.beforeTarget):a.subform.children.length>=1&&a.subform.children[0].break&&a.subform.children[0].break.beforeTarget&&(ze=a.subform.children[0].break,ht=ze.beforeTarget),ze){const Wt=this[t.$searchNode](ht,ze[t.$getParent]());Wt instanceof Ye&&(De=Wt,ze[t.$extra]={})}De||(De=W[0]),De[t.$extra]={numberOfUse:1};const ot=De[t.$getParent]();ot[t.$extra]={numberOfUse:1,pageIndex:ot.pageArea.children.indexOf(De),pageSetIndex:0};let ft,St=null,It=null,Lt=!0,Bt=0,zt=0;for(;;){if(Lt)Bt=0;else if(Ae.children.pop(),++Bt===I)return(0,N.warn)("XFA - Something goes wrong: please file a bug."),Ae;ft=null,this[t.$extra].currentPageArea=De;const Wt=De[t.$toHTML]().html;Ae.children.push(Wt),St&&(this[t.$extra].noLayoutFailure=!0,Wt.children.push(St[t.$toHTML](De[t.$extra].space).html),St=null),It&&(this[t.$extra].noLayoutFailure=!0,Wt.children.push(It[t.$toHTML](De[t.$extra].space).html),It=null);const vt=De.contentArea.children,Vt=Wt.children.filter(Et=>Et.attributes.class.includes("xfaContentarea"));Lt=!1,this[t.$extra].firstUnsplittable=null,this[t.$extra].noLayoutFailure=!1;const Ct=Et=>{const Zt=a[t.$flushHTML]();Zt&&(Lt=Lt||Zt.children&&Zt.children.length!==0,Vt[Et].children.push(Zt))};for(let Et=zt,Zt=vt.length;Et<Zt;Et++){const kt=this[t.$extra].currentContentArea=vt[Et],hn={width:kt.w,height:kt.h};zt=0,St&&(Vt[Et].children.push(St[t.$toHTML](hn).html),St=null),It&&(Vt[Et].children.push(It[t.$toHTML](hn).html),It=null);const an=a[t.$toHTML](hn);if(an.success)return an.html?(Lt=Lt||an.html.children&&an.html.children.length!==0,Vt[Et].children.push(an.html)):!Lt&&Ae.children.length>1&&Ae.children.pop(),Ae;if(an.isBreak()){const Qt=an.breakNode;if(Ct(Et),Qt.targetType==="auto")continue;Qt.leader&&(St=this[t.$searchNode](Qt.leader,Qt[t.$getParent]()),St=St?St[0]:null),Qt.trailer&&(It=this[t.$searchNode](Qt.trailer,Qt[t.$getParent]()),It=It?It[0]:null),Qt.targetType==="pageArea"?(ft=Qt[t.$extra].target,Et=1/0):Qt[t.$extra].target?(ft=Qt[t.$extra].target,zt=Qt[t.$extra].index+1,Et=1/0):Et=Qt[t.$extra].index;continue}if(this[t.$extra].overflowNode){const Qt=this[t.$extra].overflowNode;this[t.$extra].overflowNode=null;const Nn=Qt[t.$getExtra](),bn=Nn.target;Nn.addLeader=Nn.leader!==null,Nn.addTrailer=Nn.trailer!==null,Ct(Et);const Fa=Et;if(Et=1/0,bn instanceof Ye)ft=bn;else if(bn instanceof ne){const yn=vt.indexOf(bn);yn!==-1?yn>Fa?Et=yn-1:zt=yn:(ft=bn[t.$getParent](),zt=ft.contentArea.children.indexOf(bn))}continue}Ct(Et)}this[t.$extra].pageNumber+=1,ft&&(ft[t.$isUsable]()?ft[t.$extra].numberOfUse+=1:ft=null),De=ft||De[t.$getNextPage](),yield null}}}l.Template=Dn;class Rn extends t.ContentObject{constructor(a){super(x,"text"),this.id=a.id||"",this.maxChars=(0,e.getInteger)({data:a.maxChars,defaultValue:0,validate:W=>W>=0}),this.name=a.name||"",this.rid=a.rid||"",this.use=a.use||"",this.usehref=a.usehref||""}[t.$acceptWhitespace](){return!0}[t.$onChild](a){return a[t.$namespaceId]===i.NamespaceIds.xhtml.id?(this[t.$content]=a,!0):((0,N.warn)(`XFA - Invalid content in Text: ${a[t.$nodeName]}.`),!1)}[t.$onText](a){this[t.$content]instanceof t.XFAObject||super[t.$onText](a)}[t.$finalize](){typeof this[t.$content]=="string"&&(this[t.$content]=this[t.$content].replace(/\r\n/g,`
`))}[t.$getExtra](){return typeof this[t.$content]=="string"?this[t.$content].split(/[\u2029\u2028\n]/).reduce((a,W)=>(W&&a.push(W),a),[]).join(`
`):this[t.$content][t.$text]()}[t.$toHTML](a){if(typeof this[t.$content]=="string"){const W=r(this[t.$content]).html;return this[t.$content].includes("\u2029")?(W.name="div",W.children=[],this[t.$content].split("\u2029").map(Ae=>Ae.split(/[\u2028\n]/).reduce((De,ze)=>(De.push({name:"span",value:ze},{name:"br"}),De),[])).forEach(Ae=>{W.children.push({name:"p",children:Ae})})):/[\u2028\n]/.test(this[t.$content])&&(W.name="div",W.children=[],this[t.$content].split(/[\u2028\n]/).forEach(Ae=>{W.children.push({name:"span",value:Ae},{name:"br"})})),e.HTMLResult.success(W)}return this[t.$content][t.$toHTML](a)}}l.Text=Rn;class on extends t.XFAObject{constructor(a){super(x,"textEdit",!0),this.allowRichText=(0,e.getInteger)({data:a.allowRichText,defaultValue:0,validate:W=>W===1}),this.hScrollPolicy=(0,e.getStringOption)(a.hScrollPolicy,["auto","off","on"]),this.id=a.id||"",this.multiLine=(0,e.getInteger)({data:a.multiLine,defaultValue:"",validate:W=>W===0||W===1}),this.use=a.use||"",this.usehref=a.usehref||"",this.vScrollPolicy=(0,e.getStringOption)(a.vScrollPolicy,["auto","off","on"]),this.border=null,this.comb=null,this.extras=null,this.margin=null}[t.$toHTML](a){const W=(0,P.toStyle)(this,"border","font","margin");let Ae;const De=this[t.$getParent]()[t.$getParent]();return this.multiLine===""&&(this.multiLine=De instanceof be?1:0),this.multiLine===1?Ae={name:"textarea",attributes:{dataId:De[t.$data]&&De[t.$data][t.$uid]||De[t.$uid],fieldId:De[t.$uid],class:["xfaTextfield"],style:W,"aria-label":S(De),"aria-required":!1}}:Ae={name:"input",attributes:{type:"text",dataId:De[t.$data]&&De[t.$data][t.$uid]||De[t.$uid],fieldId:De[t.$uid],class:["xfaTextfield"],style:W,"aria-label":S(De),"aria-required":!1}},F(De)&&(Ae.attributes["aria-required"]=!0,Ae.attributes.required=!0),e.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[Ae]})}}class un extends t.StringObject{constructor(a){super(x,"time"),this.id=a.id||"",this.name=a.name||"",this.use=a.use||"",this.usehref=a.usehref||""}[t.$finalize](){const a=this[t.$content].trim();this[t.$content]=a?new Date(a):null}[t.$toHTML](a){return r(this[t.$content]?this[t.$content].toString():"")}}class vn extends t.XFAObject{constructor(a){super(x,"timeStamp"),this.id=a.id||"",this.server=a.server||"",this.type=(0,e.getStringOption)(a.type,["optional","required"]),this.use=a.use||"",this.usehref=a.usehref||""}}class zn extends t.StringObject{constructor(a){super(x,"toolTip"),this.id=a.id||"",this.rid=a.rid||"",this.use=a.use||"",this.usehref=a.usehref||""}}class na extends t.XFAObject{constructor(a){super(x,"traversal",!0),this.id=a.id||"",this.use=a.use||"",this.usehref=a.usehref||"",this.extras=null,this.traverse=new t.XFAObjectArray}}class Bn extends t.XFAObject{constructor(a){super(x,"traverse",!0),this.id=a.id||"",this.operation=(0,e.getStringOption)(a.operation,["next","back","down","first","left","right","up"]),this.ref=a.ref||"",this.use=a.use||"",this.usehref=a.usehref||"",this.extras=null,this.script=null}get name(){return this.operation}[t.$isTransparent](){return!1}}class pn extends t.XFAObject{constructor(a){super(x,"ui",!0),this.id=a.id||"",this.use=a.use||"",this.usehref=a.usehref||"",this.extras=null,this.picture=null,this.barcode=null,this.button=null,this.checkButton=null,this.choiceList=null,this.dateTimeEdit=null,this.defaultUi=null,this.imageEdit=null,this.numericEdit=null,this.passwordEdit=null,this.signature=null,this.textEdit=null}[t.$getExtra](){if(this[t.$extra]===void 0){for(const a of Object.getOwnPropertyNames(this)){if(a==="extras"||a==="picture")continue;const W=this[a];if(W instanceof t.XFAObject)return this[t.$extra]=W,W}this[t.$extra]=null}return this[t.$extra]}[t.$toHTML](a){const W=this[t.$getExtra]();return W?W[t.$toHTML](a):e.HTMLResult.EMPTY}}class Mn extends t.XFAObject{constructor(a){super(x,"validate",!0),this.formatTest=(0,e.getStringOption)(a.formatTest,["warning","disabled","error"]),this.id=a.id||"",this.nullTest=(0,e.getStringOption)(a.nullTest,["disabled","error","warning"]),this.scriptTest=(0,e.getStringOption)(a.scriptTest,["error","disabled","warning"]),this.use=a.use||"",this.usehref=a.usehref||"",this.extras=null,this.message=null,this.picture=null,this.script=null}}class Cn extends t.XFAObject{constructor(a){super(x,"value",!0),this.id=a.id||"",this.override=(0,e.getInteger)({data:a.override,defaultValue:0,validate:W=>W===1}),this.relevant=(0,e.getRelevant)(a.relevant),this.use=a.use||"",this.usehref=a.usehref||"",this.arc=null,this.boolean=null,this.date=null,this.dateTime=null,this.decimal=null,this.exData=null,this.float=null,this.image=null,this.integer=null,this.line=null,this.rectangle=null,this.text=null,this.time=null}[t.$setValue](a){const W=this[t.$getParent]();if(W instanceof Me&&W.ui&&W.ui.imageEdit){this.image||(this.image=new xt({}),this[t.$appendChild](this.image)),this.image[t.$content]=a[t.$content];return}const Ae=a[t.$nodeName];if(this[Ae]!==null){this[Ae][t.$content]=a[t.$content];return}for(const De of Object.getOwnPropertyNames(this)){const ze=this[De];ze instanceof t.XFAObject&&(this[De]=null,this[t.$removeChild](ze))}this[a[t.$nodeName]]=a,this[t.$appendChild](a)}[t.$text](){if(this.exData)return typeof this.exData[t.$content]=="string"?this.exData[t.$content].trim():this.exData[t.$content][t.$text]().trim();for(const a of Object.getOwnPropertyNames(this)){if(a==="image")continue;const W=this[a];if(W instanceof t.XFAObject)return(W[t.$content]||"").toString().trim()}return null}[t.$toHTML](a){for(const W of Object.getOwnPropertyNames(this)){const Ae=this[W];if(Ae instanceof t.XFAObject)return Ae[t.$toHTML](a)}return e.HTMLResult.EMPTY}}l.Value=Cn;class aa extends t.XFAObject{constructor(a){super(x,"variables",!0),this.id=a.id||"",this.use=a.use||"",this.usehref=a.usehref||"",this.boolean=new t.XFAObjectArray,this.date=new t.XFAObjectArray,this.dateTime=new t.XFAObjectArray,this.decimal=new t.XFAObjectArray,this.exData=new t.XFAObjectArray,this.float=new t.XFAObjectArray,this.image=new t.XFAObjectArray,this.integer=new t.XFAObjectArray,this.manifest=new t.XFAObjectArray,this.script=new t.XFAObjectArray,this.text=new t.XFAObjectArray,this.time=new t.XFAObjectArray}[t.$isTransparent](){return!0}}class An{static[i.$buildXFAObject](a,W){if(An.hasOwnProperty(a)){const Ae=An[a](W);return Ae[t.$setSetAttributes](W),Ae}}static appearanceFilter(a){return new R(a)}static arc(a){return new T(a)}static area(a){return new y(a)}static assist(a){return new H(a)}static barcode(a){return new z(a)}static bind(a){return new $(a)}static bindItems(a){return new j(a)}static bookend(a){return new V(a)}static boolean(a){return new ee(a)}static border(a){return new U(a)}static break(a){return new G(a)}static breakAfter(a){return new Y(a)}static breakBefore(a){return new oe(a)}static button(a){return new se(a)}static calculate(a){return new Q(a)}static caption(a){return new E(a)}static certificate(a){return new M(a)}static certificates(a){return new _(a)}static checkButton(a){return new J(a)}static choiceList(a){return new K(a)}static color(a){return new te(a)}static comb(a){return new Z(a)}static connect(a){return new ce(a)}static contentArea(a){return new ne(a)}static corner(a){return new re(a)}static date(a){return new ie(a)}static dateTime(a){return new ae(a)}static dateTimeEdit(a){return new ue(a)}static decimal(a){return new fe(a)}static defaultUi(a){return new me(a)}static desc(a){return new Fe(a)}static digestMethod(a){return new pe(a)}static digestMethods(a){return new Ce(a)}static draw(a){return new be(a)}static edge(a){return new Ie(a)}static encoding(a){return new ye(a)}static encodings(a){return new de(a)}static encrypt(a){return new ge(a)}static encryptData(a){return new xe(a)}static encryption(a){return new Oe(a)}static encryptionMethod(a){return new je(a)}static encryptionMethods(a){return new it(a)}static event(a){return new ke(a)}static exData(a){return new $e(a)}static exObject(a){return new Ge(a)}static exclGroup(a){return new Qe(a)}static execute(a){return new ve(a)}static extras(a){return new Ne(a)}static field(a){return new Me(a)}static fill(a){return new nt(a)}static filter(a){return new _e(a)}static float(a){return new rt(a)}static font(a){return new Xe(a)}static format(a){return new Je(a)}static handler(a){return new et(a)}static hyphenation(a){return new pt(a)}static image(a){return new xt(a)}static imageEdit(a){return new Ot(a)}static integer(a){return new st(a)}static issuers(a){return new Nt(a)}static items(a){return new Ut(a)}static keep(a){return new _t(a)}static keyUsage(a){return new Tt(a)}static line(a){return new Le(a)}static linear(a){return new Re(a)}static lockDocument(a){return new Ue(a)}static manifest(a){return new Ke(a)}static margin(a){return new He(a)}static mdp(a){return new lt(a)}static medium(a){return new Ze(a)}static message(a){return new qe(a)}static numericEdit(a){return new dt(a)}static occur(a){return new gt(a)}static oid(a){return new we(a)}static oids(a){return new Te(a)}static overflow(a){return new Be(a)}static pageArea(a){return new Ye(a)}static pageSet(a){return new We(a)}static para(a){return new ct(a)}static passwordEdit(a){return new tt(a)}static pattern(a){return new ut(a)}static picture(a){return new bt(a)}static proto(a){return new jt(a)}static radial(a){return new yt(a)}static reason(a){return new wt(a)}static reasons(a){return new Mt(a)}static rectangle(a){return new Ht(a)}static ref(a){return new nn(a)}static script(a){return new Sn(a)}static setProperty(a){return new Un(a)}static signData(a){return new Yn(a)}static signature(a){return new Jn(a)}static signing(a){return new Zn(a)}static solid(a){return new Qn(a)}static speak(a){return new ea(a)}static stipple(a){return new jn(a)}static subform(a){return new Xn(a)}static subformSet(a){return new Pn(a)}static subjectDN(a){return new ta(a)}static subjectDNs(a){return new xn(a)}static submit(a){return new Hn(a)}static template(a){return new Dn(a)}static text(a){return new Rn(a)}static textEdit(a){return new on(a)}static time(a){return new un(a)}static timeStamp(a){return new vn(a)}static toolTip(a){return new zn(a)}static traversal(a){return new na(a)}static traverse(a){return new Bn(a)}static ui(a){return new pn(a)}static validate(a){return new Mn(a)}static value(a){return new Cn(a)}static variables(a){return new aa(a)}}l.TemplateNamespace=An},(he,l,w)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.addHTML=e,l.checkDimensions=L,l.flushHTML=P,l.getAvailableSpace=N;var t=w(208),i=w(215);function O(k,x){return{name:"div",attributes:{class:[k.layout==="lr-tb"?"xfaLr":"xfaRl"]},children:x}}function P(k){if(!k[t.$extra])return null;const g={name:"div",attributes:k[t.$extra].attributes,children:k[t.$extra].children};if(k[t.$extra].failingNode){const n=k[t.$extra].failingNode[t.$flushHTML]();n&&(k.layout.endsWith("-tb")?g.children.push(O(k,[n])):g.children.push(n))}return g.children.length===0?null:g}function e(k,x,g){const n=k[t.$extra],I=n.availableSpace,[B,h,c,C]=g;switch(k.layout){case"position":{n.width=Math.max(n.width,B+c),n.height=Math.max(n.height,h+C),n.children.push(x);break}case"lr-tb":case"rl-tb":(!n.line||n.attempt===1)&&(n.line=O(k,[]),n.children.push(n.line),n.numberInLine=0),n.numberInLine+=1,n.line.children.push(x),n.attempt===0?(n.currentWidth+=c,n.height=Math.max(n.height,n.prevHeight+C)):(n.currentWidth=c,n.prevHeight=n.height,n.height+=C,n.attempt=0),n.width=Math.max(n.width,n.currentWidth);break;case"rl-row":case"row":{n.children.push(x),n.width+=c,n.height=Math.max(n.height,C);const u=(0,i.measureToString)(n.height);for(const m of n.children)m.attributes.style.height=u;break}case"table":{n.width=Math.min(I.width,Math.max(n.width,c)),n.height+=C,n.children.push(x);break}case"tb":{n.width=Math.min(I.width,Math.max(n.width,c)),n.height+=C,n.children.push(x);break}}}function N(k){const x=k[t.$extra].availableSpace,g=k.margin?k.margin.topInset+k.margin.bottomInset:0,n=k.margin?k.margin.leftInset+k.margin.rightInset:0;switch(k.layout){case"lr-tb":case"rl-tb":return k[t.$extra].attempt===0?{width:x.width-n-k[t.$extra].currentWidth,height:x.height-g-k[t.$extra].prevHeight}:{width:x.width-n,height:x.height-g-k[t.$extra].height};case"rl-row":case"row":return{width:k[t.$extra].columnWidths.slice(k[t.$extra].currentColumn).reduce((B,h)=>B+h),height:x.height-n};case"table":case"tb":return{width:x.width-n,height:x.height-g-k[t.$extra].height};case"position":default:return x}}function D(k){let x=k.w===""?NaN:k.w,g=k.h===""?NaN:k.h,[n,I]=[0,0];switch(k.anchorType||""){case"bottomCenter":[n,I]=[x/2,g];break;case"bottomLeft":[n,I]=[0,g];break;case"bottomRight":[n,I]=[x,g];break;case"middleCenter":[n,I]=[x/2,g/2];break;case"middleLeft":[n,I]=[0,g/2];break;case"middleRight":[n,I]=[x,g/2];break;case"topCenter":[n,I]=[x/2,0];break;case"topRight":[n,I]=[x,0];break}let B,h;switch(k.rotate||0){case 0:[B,h]=[-n,-I];break;case 90:[B,h]=[-I,n],[x,g]=[g,-x];break;case 180:[B,h]=[n,I],[x,g]=[-x,-g];break;case 270:[B,h]=[I,-n],[x,g]=[-g,x];break}return[k.x+B+Math.min(0,x),k.y+h+Math.min(0,g),Math.abs(x),Math.abs(g)]}function L(k,x){if(k[t.$getTemplateRoot]()[t.$extra].firstUnsplittable===null||k.w===0||k.h===0)return!0;const g=2,n=k[t.$getSubformParent](),I=n[t.$extra]&&n[t.$extra].attempt||0,[,B,h,c]=D(k);switch(n.layout){case"lr-tb":case"rl-tb":return I===0?k[t.$getTemplateRoot]()[t.$extra].noLayoutFailure?k.w!==""?Math.round(h-x.width)<=g:x.width>g:k.h!==""&&Math.round(c-x.height)>g?!1:k.w!==""?Math.round(h-x.width)<=g?!0:n[t.$extra].numberInLine===0?x.height>g:!1:x.width>g:k[t.$getTemplateRoot]()[t.$extra].noLayoutFailure?!0:k.h!==""&&Math.round(c-x.height)>g?!1:k.w===""||Math.round(h-x.width)<=g?x.height>g:n[t.$isThereMoreWidth]()?!1:x.height>g;case"table":case"tb":return k[t.$getTemplateRoot]()[t.$extra].noLayoutFailure?!0:k.h!==""&&!k[t.$isSplittable]()?Math.round(c-x.height)<=g:k.w===""||Math.round(h-x.width)<=g?x.height>g:n[t.$isThereMoreWidth]()?!1:x.height>g;case"position":if(k[t.$getTemplateRoot]()[t.$extra].noLayoutFailure||k.h===""||Math.round(c+B-x.height)<=g)return!0;const C=k[t.$getTemplateRoot]()[t.$extra].currentContentArea;return c+B>C.h;case"rl-row":case"row":return k[t.$getTemplateRoot]()[t.$extra].noLayoutFailure?!0:k.h!==""?Math.round(c-x.height)<=g:!0;default:return!0}}},(he,l,w)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.computeBbox=g,l.createWrapper=h,l.fixDimensions=n,l.fixTextIndent=c,l.fixURL=F,l.isPrintOnly=u,l.layoutClass=I,l.layoutNode=x,l.measureToString=N,l.setAccess=C,l.setFontFamily=f,l.setMinMaxDimensions=L,l.setPara=X,l.toStyle=B;var t=w(208),i=w(2),O=w(209),P=w(216),e=w(217);function N(s){return typeof s=="string"?"0px":Number.isInteger(s)?`${s}px`:`${s.toFixed(2)}px`}const D={anchorType(s,d){const S=s[t.$getSubformParent]();if(!(!S||S.layout&&S.layout!=="position"))switch("transform"in d||(d.transform=""),s.anchorType){case"bottomCenter":d.transform+="translate(-50%, -100%)";break;case"bottomLeft":d.transform+="translate(0,-100%)";break;case"bottomRight":d.transform+="translate(-100%,-100%)";break;case"middleCenter":d.transform+="translate(-50%,-50%)";break;case"middleLeft":d.transform+="translate(0,-50%)";break;case"middleRight":d.transform+="translate(-100%,-50%)";break;case"topCenter":d.transform+="translate(-50%,0)";break;case"topRight":d.transform+="translate(-100%,0)";break}},dimensions(s,d){const S=s[t.$getSubformParent]();let r=s.w;const o=s.h;if(S.layout&&S.layout.includes("row")){const A=S[t.$extra],p=s.colSpan;let v;p===-1?(v=A.columnWidths.slice(A.currentColumn).reduce((R,T)=>R+T,0),A.currentColumn=0):(v=A.columnWidths.slice(A.currentColumn,A.currentColumn+p).reduce((R,T)=>R+T,0),A.currentColumn=(A.currentColumn+s.colSpan)%A.columnWidths.length),isNaN(v)||(r=s.w=v)}r!==""?d.width=N(r):d.width="auto",o!==""?d.height=N(o):d.height="auto"},position(s,d){const S=s[t.$getSubformParent]();S&&S.layout&&S.layout!=="position"||(d.position="absolute",d.left=N(s.x),d.top=N(s.y))},rotate(s,d){s.rotate&&("transform"in d||(d.transform=""),d.transform+=`rotate(-${s.rotate}deg)`,d.transformOrigin="top left")},presence(s,d){switch(s.presence){case"invisible":d.visibility="hidden";break;case"hidden":case"inactive":d.display="none";break}},hAlign(s,d){if(s[t.$nodeName]==="para")switch(s.hAlign){case"justifyAll":d.textAlign="justify-all";break;case"radix":d.textAlign="left";break;default:d.textAlign=s.hAlign}else switch(s.hAlign){case"left":d.alignSelf="start";break;case"center":d.alignSelf="center";break;case"right":d.alignSelf="end";break}},margin(s,d){s.margin&&(d.margin=s.margin[t.$toStyle]().margin)}};function L(s,d){s[t.$getSubformParent]().layout==="position"&&(s.minW>0&&(d.minWidth=N(s.minW)),s.maxW>0&&(d.maxWidth=N(s.maxW)),s.minH>0&&(d.minHeight=N(s.minH)),s.maxH>0&&(d.maxHeight=N(s.maxH)))}function k(s,d,S,r,o,A){const p=new e.TextMeasure(d,S,r,o);return typeof s=="string"?p.addString(s):s[t.$pushGlyphs](p),p.compute(A)}function x(s,d){let S=null,r=null,o=!1;if((!s.w||!s.h)&&s.value){let A=0,p=0;s.margin&&(A=s.margin.leftInset+s.margin.rightInset,p=s.margin.topInset+s.margin.bottomInset);let v=null,R=null;s.para&&(R=Object.create(null),v=s.para.lineHeight===""?null:s.para.lineHeight,R.top=s.para.spaceAbove===""?0:s.para.spaceAbove,R.bottom=s.para.spaceBelow===""?0:s.para.spaceBelow,R.left=s.para.marginLeft===""?0:s.para.marginLeft,R.right=s.para.marginRight===""?0:s.para.marginRight);let T=s.font;if(!T){const z=s[t.$getTemplateRoot]();let $=s[t.$getParent]();for(;$&&$!==z;){if($.font){T=$.font;break}$=$[t.$getParent]()}}const y=(s.w||d.width)-A,H=s[t.$globalData].fontFinder;if(s.value.exData&&s.value.exData[t.$content]&&s.value.exData.contentType==="text/html"){const z=k(s.value.exData[t.$content],T,R,v,H,y);r=z.width,S=z.height,o=z.isBroken}else{const z=s.value[t.$text]();if(z){const $=k(z,T,R,v,H,y);r=$.width,S=$.height,o=$.isBroken}}r!==null&&!s.w&&(r+=A),S!==null&&!s.h&&(S+=p)}return{w:r,h:S,isBroken:o}}function g(s,d,S){let r;if(s.w!==""&&s.h!=="")r=[s.x,s.y,s.w,s.h];else{if(!S)return null;let o=s.w;if(o===""){if(s.maxW===0){const p=s[t.$getSubformParent]();p.layout==="position"&&p.w!==""?o=0:o=s.minW}else o=Math.min(s.maxW,S.width);d.attributes.style.width=N(o)}let A=s.h;if(A===""){if(s.maxH===0){const p=s[t.$getSubformParent]();p.layout==="position"&&p.h!==""?A=0:A=s.minH}else A=Math.min(s.maxH,S.height);d.attributes.style.height=N(A)}r=[s.x,s.y,o,A]}return r}function n(s){const d=s[t.$getSubformParent]();if(d.layout&&d.layout.includes("row")){const S=d[t.$extra],r=s.colSpan;let o;r===-1?o=S.columnWidths.slice(S.currentColumn).reduce((A,p)=>A+p,0):o=S.columnWidths.slice(S.currentColumn,S.currentColumn+r).reduce((A,p)=>A+p,0),isNaN(o)||(s.w=o)}d.layout&&d.layout!=="position"&&(s.x=s.y=0),s.layout==="table"&&s.w===""&&Array.isArray(s.columnWidths)&&(s.w=s.columnWidths.reduce((S,r)=>S+r,0))}function I(s){switch(s.layout){case"position":return"xfaPosition";case"lr-tb":return"xfaLrTb";case"rl-row":return"xfaRlRow";case"rl-tb":return"xfaRlTb";case"row":return"xfaRow";case"table":return"xfaTable";case"tb":return"xfaTb";default:return"xfaPosition"}}function B(s){const d=Object.create(null);for(var S=arguments.length,r=new Array(S>1?S-1:0),o=1;o<S;o++)r[o-1]=arguments[o];for(const A of r){const p=s[A];if(p!==null){if(D.hasOwnProperty(A)){D[A](s,d);continue}if(p instanceof t.XFAObject){const v=p[t.$toStyle]();v?Object.assign(d,v):(0,i.warn)(`(DEBUG) - XFA - style for ${A} not implemented yet`)}}}return d}function h(s,d){const{attributes:S}=d,{style:r}=S,o={name:"div",attributes:{class:["xfaWrapper"],style:Object.create(null)},children:[]};if(S.class.push("xfaWrapped"),s.border){const{widths:A,insets:p}=s.border[t.$extra];let v,R,T=p[0],y=p[3];const H=p[0]+p[2],z=p[1]+p[3];switch(s.border.hand){case"even":T-=A[0]/2,y-=A[3]/2,v=`calc(100% + ${(A[1]+A[3])/2-z}px)`,R=`calc(100% + ${(A[0]+A[2])/2-H}px)`;break;case"left":T-=A[0],y-=A[3],v=`calc(100% + ${A[1]+A[3]-z}px)`,R=`calc(100% + ${A[0]+A[2]-H}px)`;break;case"right":v=z?`calc(100% - ${z}px)`:"100%",R=H?`calc(100% - ${H}px)`:"100%";break}const $=["xfaBorder"];u(s.border)&&$.push("xfaPrintOnly");const j={name:"div",attributes:{class:$,style:{top:`${T}px`,left:`${y}px`,width:v,height:R}},children:[]};for(const V of["border","borderWidth","borderColor","borderRadius","borderStyle"])r[V]!==void 0&&(j.attributes.style[V]=r[V],delete r[V]);o.children.push(j,d)}else o.children.push(d);for(const A of["background","backgroundClip","top","left","width","height","minWidth","minHeight","maxWidth","maxHeight","transform","transformOrigin","visibility"])r[A]!==void 0&&(o.attributes.style[A]=r[A],delete r[A]);return r.position==="absolute"?o.attributes.style.position="absolute":o.attributes.style.position="relative",delete r.position,r.alignSelf&&(o.attributes.style.alignSelf=r.alignSelf,delete r.alignSelf),o}function c(s){const d=(0,O.getMeasurement)(s.textIndent,"0px");if(d>=0)return;const r="padding"+((s.textAlign==="right"?"right":"left")==="left"?"Left":"Right"),o=(0,O.getMeasurement)(s[r],"0px");s[r]=`${o-d}px`}function C(s,d){switch(s.access){case"nonInteractive":d.push("xfaNonInteractive");break;case"readOnly":d.push("xfaReadOnly");break;case"protected":d.push("xfaDisabled");break}}function u(s){return s.relevant.length>0&&!s.relevant[0].excluded&&s.relevant[0].viewname==="print"}function m(s){const d=s[t.$getTemplateRoot]()[t.$extra].paraStack;return d.length?d.at(-1):null}function X(s,d,S){if(S.attributes.class&&S.attributes.class.includes("xfaRich")){d&&(s.h===""&&(d.height="auto"),s.w===""&&(d.width="auto"));const r=m(s);if(r){const o=S.attributes.style;switch(o.display="flex",o.flexDirection="column",r.vAlign){case"top":o.justifyContent="start";break;case"bottom":o.justifyContent="end";break;case"middle":o.justifyContent="center";break}const A=r[t.$toStyle]();for(const[p,v]of Object.entries(A))p in o||(o[p]=v)}}}function f(s,d,S,r){if(!S){delete r.fontFamily;return}const o=(0,O.stripQuotes)(s.typeface);r.fontFamily=`"${o}"`;const A=S.find(o);if(A){const{fontFamily:p}=A.regular.cssFontInfo;p!==o&&(r.fontFamily=`"${p}"`);const v=m(d);if(v&&v.lineHeight!==""||r.lineHeight)return;const R=(0,P.selectFont)(s,A);R&&(r.lineHeight=Math.max(1.2,R.lineHeight))}}function F(s){const d=(0,i.createValidAbsoluteUrl)(s,null,{addDefaultProtocol:!0,tryConvertEncoding:!0});return d?d.href:null}},(he,l,w)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.FontFinder=void 0,l.getMetrics=N,l.selectFont=e;var t=w(208),i=w(209),O=w(2);class P{constructor(L){this.fonts=new Map,this.cache=new Map,this.warned=new Set,this.defaultFont=null,this.add(L)}add(L){let k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;for(const g of L)this.addPdfFont(g);for(const g of this.fonts.values())g.regular||(g.regular=g.italic||g.bold||g.bolditalic);if(!k||k.size===0)return;const x=this.fonts.get("PdfJS-Fallback-PdfJS-XFA");for(const g of k)this.fonts.set(g,x)}addPdfFont(L){const k=L.cssFontInfo,x=k.fontFamily;let g=this.fonts.get(x);g||(g=Object.create(null),this.fonts.set(x,g),this.defaultFont||(this.defaultFont=g));let n="";const I=parseFloat(k.fontWeight);parseFloat(k.italicAngle)!==0?n=I>=700?"bolditalic":"italic":I>=700&&(n="bold"),n||((L.name.includes("Bold")||L.psName&&L.psName.includes("Bold"))&&(n="bold"),(L.name.includes("Italic")||L.name.endsWith("It")||L.psName&&(L.psName.includes("Italic")||L.psName.endsWith("It")))&&(n+="italic")),n||(n="regular"),g[n]=L}getDefault(){return this.defaultFont}find(L){let k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,x=this.fonts.get(L)||this.cache.get(L);if(x)return x;const g=/,|-|_| |bolditalic|bold|italic|regular|it/gi;let n=L.replace(g,"");if(x=this.fonts.get(n),x)return this.cache.set(L,x),x;n=n.toLowerCase();const I=[];for(const[B,h]of this.fonts.entries())B.replace(g,"").toLowerCase().startsWith(n)&&I.push(h);if(I.length===0)for(const[,B]of this.fonts.entries())B.regular.name&&B.regular.name.replace(g,"").toLowerCase().startsWith(n)&&I.push(B);if(I.length===0){n=n.replace(/psmt|mt/gi,"");for(const[B,h]of this.fonts.entries())B.replace(g,"").toLowerCase().startsWith(n)&&I.push(h)}if(I.length===0)for(const B of this.fonts.values())B.regular.name&&B.regular.name.replace(g,"").toLowerCase().startsWith(n)&&I.push(B);return I.length>=1?(I.length!==1&&k&&(0,O.warn)(`XFA - Too many choices to guess the correct font: ${L}`),this.cache.set(L,I[0]),I[0]):(k&&!this.warned.has(L)&&(this.warned.add(L),(0,O.warn)(`XFA - Cannot find the font: ${L}`)),null)}}l.FontFinder=P;function e(D,L){return D.posture==="italic"?D.weight==="bold"?L.bolditalic:L.italic:D.weight==="bold"?L.bold:L.regular}function N(D){let L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,k=null;if(D){const I=(0,i.stripQuotes)(D.typeface),B=D[t.$globalData].fontFinder.find(I);k=e(D,B)}if(!k)return{lineHeight:12,lineGap:2,lineNoGap:10};const x=D.size||10,g=k.lineHeight?Math.max(L?0:1.2,k.lineHeight):1.2,n=k.lineGap===void 0?.2:k.lineGap;return{lineHeight:g*x,lineGap:n*x,lineNoGap:Math.max(1,g-n)*x}}},(he,l,w)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.TextMeasure=void 0;var t=w(216);const i=1.02;class O{constructor(D,L,k,x){if(this.lineHeight=k,this.paraMargin=L||{top:0,bottom:0,left:0,right:0},!D){[this.pdfFont,this.xfaFont]=this.defaultFont(x);return}this.xfaFont={typeface:D.typeface,posture:D.posture,weight:D.weight,size:D.size,letterSpacing:D.letterSpacing};const g=x.find(D.typeface);if(!g){[this.pdfFont,this.xfaFont]=this.defaultFont(x);return}this.pdfFont=(0,t.selectFont)(D,g),this.pdfFont||([this.pdfFont,this.xfaFont]=this.defaultFont(x))}defaultFont(D){const L=D.find("Helvetica",!1)||D.find("Myriad Pro",!1)||D.find("Arial",!1)||D.getDefault();if(L&&L.regular){const x=L.regular,n={typeface:x.cssFontInfo.fontFamily,posture:"normal",weight:"normal",size:10,letterSpacing:0};return[x,n]}return[null,{typeface:"Courier",posture:"normal",weight:"normal",size:10,letterSpacing:0}]}}class P{constructor(D,L,k,x){this.fontFinder=x,this.stack=[new O(D,L,k,x)]}pushData(D,L,k){const x=this.stack.at(-1);for(const n of["typeface","posture","weight","size","letterSpacing"])D[n]||(D[n]=x.xfaFont[n]);for(const n of["top","bottom","left","right"])isNaN(L[n])&&(L[n]=x.paraMargin[n]);const g=new O(D,L,k||x.lineHeight,this.fontFinder);g.pdfFont||(g.pdfFont=x.pdfFont),this.stack.push(g)}popFont(){this.stack.pop()}topFont(){return this.stack.at(-1)}}class e{constructor(D,L,k,x){this.glyphs=[],this.fontSelector=new P(D,L,k,x),this.extraHeight=0}pushData(D,L,k){this.fontSelector.pushData(D,L,k)}popFont(D){return this.fontSelector.popFont()}addPara(){const D=this.fontSelector.topFont();this.extraHeight+=D.paraMargin.top+D.paraMargin.bottom}addString(D){if(!D)return;const L=this.fontSelector.topFont(),k=L.xfaFont.size;if(L.pdfFont){const x=L.xfaFont.letterSpacing,g=L.pdfFont,n=g.lineHeight||1.2,I=L.lineHeight||Math.max(1.2,n)*k,B=g.lineGap===void 0?.2:g.lineGap,h=n-B,c=Math.max(1,h)*k,C=k/1e3,u=g.defaultWidth||g.charsToGlyphs(" ")[0].width;for(const m of D.split(/[\u2029\n]/)){const X=g.encodeString(m).join(""),f=g.charsToGlyphs(X);for(const F of f){const s=F.width||u;this.glyphs.push([s*C+x,I,c,F.unicode,!1])}this.glyphs.push([0,0,0,`
`,!0])}this.glyphs.pop();return}for(const x of D.split(/[\u2029\n]/)){for(const g of x.split(""))this.glyphs.push([k,1.2*k,k,g,!1]);this.glyphs.push([0,0,0,`
`,!0])}this.glyphs.pop()}compute(D){let L=-1,k=0,x=0,g=0,n=0,I=0,B=!1,h=!0;for(let c=0,C=this.glyphs.length;c<C;c++){const[u,m,X,f,F]=this.glyphs[c],s=f===" ",d=h?X:m;if(F){x=Math.max(x,n),n=0,g+=I,I=d,L=-1,k=0,h=!1;continue}if(s){n+u>D?(x=Math.max(x,n),n=0,g+=I,I=d,L=-1,k=0,B=!0,h=!1):(I=Math.max(d,I),k=n,n+=u,L=c);continue}if(n+u>D){g+=I,I=d,L!==-1?(c=L,x=Math.max(x,k),n=0,L=-1,k=0):(x=Math.max(x,n),n=u),B=!0,h=!1;continue}n+=u,I=Math.max(d,I)}return x=Math.max(x,n),g+=I+this.extraHeight,{width:i*x,height:g,isBroken:B}}}l.TextMeasure=e},(he,l,w)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.DataHandler=void 0;var t=w(208);class i{constructor(P,e){this.data=e,this.dataset=P.datasets||null}serialize(P){const e=[[-1,this.data[t.$getChildren]()]];for(;e.length>0;){const D=e.at(-1),[L,k]=D;if(L+1===k.length){e.pop();continue}const x=k[++D[0]],g=P.get(x[t.$uid]);if(g)x[t.$setValue](g);else{const I=x[t.$getAttributes]();for(const B of I.values()){const h=P.get(B[t.$uid]);if(h){B[t.$setValue](h);break}}}const n=x[t.$getChildren]();n.length>0&&e.push([-1,n])}const N=['<xfa:datasets xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/">'];if(this.dataset)for(const D of this.dataset[t.$getChildren]())D[t.$nodeName]!=="data"&&D[t.$toString](N);return this.data[t.$toString](N),N.push("</xfa:datasets>"),N.join("")}}l.DataHandler=i},(he,l,w)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.XFAParser=void 0;var t=w(208),i=w(197),O=w(220),P=w(2);class e extends i.XMLParserBase{constructor(){let D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;super(),this._builder=new O.Builder(D),this._stack=[],this._globalData={usedTypefaces:new Set},this._ids=new Map,this._current=this._builder.buildRoot(this._ids),this._errorCode=i.XMLParserErrorCode.NoError,this._whiteRegex=/^\s+$/,this._nbsps=/\xa0+/g,this._richText=L}parse(D){if(this.parseXml(D),this._errorCode===i.XMLParserErrorCode.NoError)return this._current[t.$finalize](),this._current.element}onText(D){if(D=D.replace(this._nbsps,L=>L.slice(1)+" "),this._richText||this._current[t.$acceptWhitespace]()){this._current[t.$onText](D,this._richText);return}this._whiteRegex.test(D)||this._current[t.$onText](D.trim())}onCdata(D){this._current[t.$onText](D)}_mkAttributes(D,L){let k=null,x=null;const g=Object.create({});for(const{name:n,value:I}of D)if(n==="xmlns")k?(0,P.warn)(`XFA - multiple namespace definition in <${L}>`):k=I;else if(n.startsWith("xmlns:")){const B=n.substring(6);x||(x=[]),x.push({prefix:B,value:I})}else{const B=n.indexOf(":");if(B===-1)g[n]=I;else{let h=g[t.$nsAttributes];h||(h=g[t.$nsAttributes]=Object.create(null));const[c,C]=[n.slice(0,B),n.slice(B+1)];let u=h[c];u||(u=h[c]=Object.create(null)),u[C]=I}}return[k,x,g]}_getNameAndPrefix(D,L){const k=D.indexOf(":");return k===-1?[D,null]:[D.substring(k+1),L?"":D.substring(0,k)]}onBeginElement(D,L,k){const[x,g,n]=this._mkAttributes(L,D),[I,B]=this._getNameAndPrefix(D,this._builder.isNsAgnostic()),h=this._builder.build({nsPrefix:B,name:I,attributes:n,namespace:x,prefixes:g});if(h[t.$globalData]=this._globalData,k){h[t.$finalize](),this._current[t.$onChild](h)&&h[t.$setId](this._ids),h[t.$clean](this._builder);return}this._stack.push(this._current),this._current=h}onEndElement(D){const L=this._current;if(L[t.$isCDATAXml]()&&typeof L[t.$content]=="string"){const k=new e;k._globalData=this._globalData;const x=k.parse(L[t.$content]);L[t.$content]=null,L[t.$onChild](x)}L[t.$finalize](),this._current=this._stack.pop(),this._current[t.$onChild](L)&&L[t.$setId](this._ids),L[t.$clean](this._builder)}onError(D){this._errorCode=D}}l.XFAParser=e},(he,l,w)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.Builder=void 0;var t=w(210),i=w(208),O=w(221),P=w(213),e=w(230),N=w(2);class D extends i.XFAObject{constructor(g){super(-1,"root",Object.create(null)),this.element=null,this[i.$ids]=g}[i.$onChild](g){return this.element=g,!0}[i.$finalize](){super[i.$finalize](),this.element.template instanceof P.Template&&(this[i.$ids].set(i.$root,this.element),this.element.template[i.$resolvePrototypes](this[i.$ids]),this.element.template[i.$ids]=this[i.$ids])}}class L extends i.XFAObject{constructor(){super(-1,"",Object.create(null))}[i.$onChild](g){return!1}}class k{constructor(){let g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;this._namespaceStack=[],this._nsAgnosticLevel=0,this._namespacePrefixes=new Map,this._namespaces=new Map,this._nextNsId=Math.max(...Object.values(t.NamespaceIds).map(n=>{let{id:I}=n;return I})),this._currentNamespace=g||new e.UnknownNamespace(++this._nextNsId)}buildRoot(g){return new D(g)}build(g){let{nsPrefix:n,name:I,attributes:B,namespace:h,prefixes:c}=g;const C=h!==null;if(C&&(this._namespaceStack.push(this._currentNamespace),this._currentNamespace=this._searchNamespace(h)),c&&this._addNamespacePrefix(c),B.hasOwnProperty(i.$nsAttributes)){const X=O.NamespaceSetUp.datasets,f=B[i.$nsAttributes];let F=null;for(const[s,d]of Object.entries(f))if(this._getNamespaceToUse(s)===X){F={xfa:d};break}F?B[i.$nsAttributes]=F:delete B[i.$nsAttributes]}const u=this._getNamespaceToUse(n),m=u&&u[t.$buildXFAObject](I,B)||new L;return m[i.$isNsAgnostic]()&&this._nsAgnosticLevel++,(C||c||m[i.$isNsAgnostic]())&&(m[i.$cleanup]={hasNamespace:C,prefixes:c,nsAgnostic:m[i.$isNsAgnostic]()}),m}isNsAgnostic(){return this._nsAgnosticLevel>0}_searchNamespace(g){let n=this._namespaces.get(g);if(n)return n;for(const[I,{check:B}]of Object.entries(t.NamespaceIds))if(B(g)){if(n=O.NamespaceSetUp[I],n)return this._namespaces.set(g,n),n;break}return n=new e.UnknownNamespace(++this._nextNsId),this._namespaces.set(g,n),n}_addNamespacePrefix(g){for(const{prefix:n,value:I}of g){const B=this._searchNamespace(I);let h=this._namespacePrefixes.get(n);h||(h=[],this._namespacePrefixes.set(n,h)),h.push(B)}}_getNamespaceToUse(g){if(!g)return this._currentNamespace;const n=this._namespacePrefixes.get(g);return n&&n.length>0?n.at(-1):((0,N.warn)(`Unknown namespace prefix: ${g}.`),null)}clean(g){const{hasNamespace:n,prefixes:I,nsAgnostic:B}=g;n&&(this._currentNamespace=this._namespaceStack.pop()),I&&I.forEach(h=>{let{prefix:c}=h;this._namespacePrefixes.get(c).pop()}),B&&this._nsAgnosticLevel--}}l.Builder=k},(he,l,w)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.NamespaceSetUp=void 0;var t=w(222),i=w(223),O=w(224),P=w(225),e=w(226),N=w(227),D=w(213),L=w(228),k=w(229);const x={config:t.ConfigNamespace,connection:i.ConnectionSetNamespace,datasets:O.DatasetsNamespace,localeSet:P.LocaleSetNamespace,signature:e.SignatureNamespace,stylesheet:N.StylesheetNamespace,template:D.TemplateNamespace,xdp:L.XdpNamespace,xhtml:k.XhtmlNamespace};l.NamespaceSetUp=x},(he,l,w)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.ConfigNamespace=void 0;var t=w(210),i=w(208),O=w(209),P=w(2);const e=t.NamespaceIds.config.id;class N extends i.XFAObject{constructor(W){super(e,"acrobat",!0),this.acrobat7=null,this.autoSave=null,this.common=null,this.validate=null,this.validateApprovalSignatures=null,this.submitUrl=new i.XFAObjectArray}}class D extends i.XFAObject{constructor(W){super(e,"acrobat7",!0),this.dynamicRender=null}}class L extends i.OptionObject{constructor(W){super(e,"ADBE_JSConsole",["delegate","Enable","Disable"])}}class k extends i.OptionObject{constructor(W){super(e,"ADBE_JSDebugger",["delegate","Enable","Disable"])}}class x extends i.Option01{constructor(W){super(e,"addSilentPrint")}}class g extends i.Option01{constructor(W){super(e,"addViewerPreferences")}}class n extends i.Option10{constructor(W){super(e,"adjustData")}}class I extends i.IntegerObject{constructor(W){super(e,"adobeExtensionLevel",0,Ae=>Ae>=1&&Ae<=8)}}class B extends i.XFAObject{constructor(W){super(e,"agent",!0),this.name=W.name?W.name.trim():"",this.common=new i.XFAObjectArray}}class h extends i.ContentObject{constructor(W){super(e,"alwaysEmbed")}}class c extends i.StringObject{constructor(W){super(e,"amd")}}class C extends i.XFAObject{constructor(W){super(e,"area"),this.level=(0,O.getInteger)({data:W.level,defaultValue:0,validate:Ae=>Ae>=1&&Ae<=3}),this.name=(0,O.getStringOption)(W.name,["","barcode","coreinit","deviceDriver","font","general","layout","merge","script","signature","sourceSet","templateCache"])}}class u extends i.OptionObject{constructor(W){super(e,"attributes",["preserve","delegate","ignore"])}}class m extends i.OptionObject{constructor(W){super(e,"autoSave",["disabled","enabled"])}}class X extends i.StringObject{constructor(W){super(e,"base")}}class f extends i.XFAObject{constructor(W){super(e,"batchOutput"),this.format=(0,O.getStringOption)(W.format,["none","concat","zip","zipCompress"])}}class F extends i.ContentObject{constructor(W){super(e,"behaviorOverride")}[i.$finalize](){this[i.$content]=new Map(this[i.$content].trim().split(/\s+/).filter(W=>W.includes(":")).map(W=>W.split(":",2)))}}class s extends i.XFAObject{constructor(W){super(e,"cache",!0),this.templateCache=null}}class d extends i.Option01{constructor(W){super(e,"change")}}class S extends i.XFAObject{constructor(W){super(e,"common",!0),this.data=null,this.locale=null,this.localeSet=null,this.messaging=null,this.suppressBanner=null,this.template=null,this.validationMessaging=null,this.versionControl=null,this.log=new i.XFAObjectArray}}class r extends i.XFAObject{constructor(W){super(e,"compress"),this.scope=(0,O.getStringOption)(W.scope,["imageOnly","document"])}}class o extends i.Option01{constructor(W){super(e,"compressLogicalStructure")}}class A extends i.Option10{constructor(W){super(e,"compressObjectStream")}}class p extends i.XFAObject{constructor(W){super(e,"compression",!0),this.compressLogicalStructure=null,this.compressObjectStream=null,this.level=null,this.type=null}}class v extends i.XFAObject{constructor(W){super(e,"config",!0),this.acrobat=null,this.present=null,this.trace=null,this.agent=new i.XFAObjectArray}}class R extends i.OptionObject{constructor(W){super(e,"conformance",["A","B"])}}class T extends i.Option01{constructor(W){super(e,"contentCopy")}}class y extends i.IntegerObject{constructor(W){super(e,"copies",1,Ae=>Ae>=1)}}class H extends i.StringObject{constructor(W){super(e,"creator")}}class z extends i.IntegerObject{constructor(W){super(e,"currentPage",0,Ae=>Ae>=0)}}class $ extends i.XFAObject{constructor(W){super(e,"data",!0),this.adjustData=null,this.attributes=null,this.incrementalLoad=null,this.outputXSL=null,this.range=null,this.record=null,this.startNode=null,this.uri=null,this.window=null,this.xsl=null,this.excludeNS=new i.XFAObjectArray,this.transform=new i.XFAObjectArray}}class j extends i.XFAObject{constructor(W){super(e,"debug",!0),this.uri=null}}class V extends i.ContentObject{constructor(W){super(e,"defaultTypeface"),this.writingScript=(0,O.getStringOption)(W.writingScript,["*","Arabic","Cyrillic","EastEuropeanRoman","Greek","Hebrew","Japanese","Korean","Roman","SimplifiedChinese","Thai","TraditionalChinese","Vietnamese"])}}class ee extends i.OptionObject{constructor(W){super(e,"destination",["pdf","pcl","ps","webClient","zpl"])}}class U extends i.Option01{constructor(W){super(e,"documentAssembly")}}class G extends i.XFAObject{constructor(W){super(e,"driver",!0),this.name=W.name?W.name.trim():"",this.fontInfo=null,this.xdc=null}}class Y extends i.OptionObject{constructor(W){super(e,"duplexOption",["simplex","duplexFlipLongEdge","duplexFlipShortEdge"])}}class oe extends i.OptionObject{constructor(W){super(e,"dynamicRender",["forbidden","required"])}}class se extends i.Option01{constructor(W){super(e,"embed")}}class Q extends i.Option01{constructor(W){super(e,"encrypt")}}class E extends i.XFAObject{constructor(W){super(e,"encryption",!0),this.encrypt=null,this.encryptionLevel=null,this.permissions=null}}class M extends i.OptionObject{constructor(W){super(e,"encryptionLevel",["40bit","128bit"])}}class _ extends i.StringObject{constructor(W){super(e,"enforce")}}class J extends i.XFAObject{constructor(W){super(e,"equate"),this.force=(0,O.getInteger)({data:W.force,defaultValue:1,validate:Ae=>Ae===0}),this.from=W.from||"",this.to=W.to||""}}class K extends i.XFAObject{constructor(W){super(e,"equateRange"),this.from=W.from||"",this.to=W.to||"",this._unicodeRange=W.unicodeRange||""}get unicodeRange(){const W=[],Ae=/U\+([0-9a-fA-F]+)/,De=this._unicodeRange;for(let ze of De.split(",").map(ht=>ht.trim()).filter(ht=>!!ht))ze=ze.split("-",2).map(ht=>{const ot=ht.match(Ae);return ot?parseInt(ot[1],16):0}),ze.length===1&&ze.push(ze[0]),W.push(ze);return(0,P.shadow)(this,"unicodeRange",W)}}class te extends i.ContentObject{constructor(W){super(e,"exclude")}[i.$finalize](){this[i.$content]=this[i.$content].trim().split(/\s+/).filter(W=>W&&["calculate","close","enter","exit","initialize","ready","validate"].includes(W))}}class Z extends i.StringObject{constructor(W){super(e,"excludeNS")}}class ce extends i.OptionObject{constructor(W){super(e,"flipLabel",["usePrinterSetting","on","off"])}}class ne extends i.XFAObject{constructor(W){super(e,"fontInfo",!0),this.embed=null,this.map=null,this.subsetBelow=null,this.alwaysEmbed=new i.XFAObjectArray,this.defaultTypeface=new i.XFAObjectArray,this.neverEmbed=new i.XFAObjectArray}}class re extends i.Option01{constructor(W){super(e,"formFieldFilling")}}class ie extends i.StringObject{constructor(W){super(e,"groupParent")}}class ae extends i.OptionObject{constructor(W){super(e,"ifEmpty",["dataValue","dataGroup","ignore","remove"])}}class ue extends i.StringObject{constructor(W){super(e,"includeXDPContent")}}class fe extends i.OptionObject{constructor(W){super(e,"incrementalLoad",["none","forwardOnly"])}}class me extends i.Option01{constructor(W){super(e,"incrementalMerge")}}class Fe extends i.Option01{constructor(W){super(e,"interactive")}}class pe extends i.OptionObject{constructor(W){super(e,"jog",["usePrinterSetting","none","pageSet"])}}class Ce extends i.XFAObject{constructor(W){super(e,"labelPrinter",!0),this.name=(0,O.getStringOption)(W.name,["zpl","dpl","ipl","tcpl"]),this.batchOutput=null,this.flipLabel=null,this.fontInfo=null,this.xdc=null}}class be extends i.OptionObject{constructor(W){super(e,"layout",["paginate","panel"])}}class Ie extends i.IntegerObject{constructor(W){super(e,"level",0,Ae=>Ae>0)}}class ye extends i.Option01{constructor(W){super(e,"linearized")}}class de extends i.StringObject{constructor(W){super(e,"locale")}}class ge extends i.StringObject{constructor(W){super(e,"localeSet")}}class xe extends i.XFAObject{constructor(W){super(e,"log",!0),this.mode=null,this.threshold=null,this.to=null,this.uri=null}}class Oe extends i.XFAObject{constructor(W){super(e,"map",!0),this.equate=new i.XFAObjectArray,this.equateRange=new i.XFAObjectArray}}class je extends i.XFAObject{constructor(W){super(e,"mediumInfo",!0),this.map=null}}class it extends i.XFAObject{constructor(W){super(e,"message",!0),this.msgId=null,this.severity=null}}class ke extends i.XFAObject{constructor(W){super(e,"messaging",!0),this.message=new i.XFAObjectArray}}class $e extends i.OptionObject{constructor(W){super(e,"mode",["append","overwrite"])}}class Ge extends i.Option01{constructor(W){super(e,"modifyAnnots")}}class Qe extends i.IntegerObject{constructor(W){super(e,"msgId",1,Ae=>Ae>=1)}}class ve extends i.StringObject{constructor(W){super(e,"nameAttr")}}class Ne extends i.ContentObject{constructor(W){super(e,"neverEmbed")}}class Me extends i.IntegerObject{constructor(W){super(e,"numberOfCopies",null,Ae=>Ae>=2&&Ae<=5)}}class nt extends i.XFAObject{constructor(W){super(e,"openAction",!0),this.destination=null}}class _e extends i.XFAObject{constructor(W){super(e,"output",!0),this.to=null,this.type=null,this.uri=null}}class rt extends i.StringObject{constructor(W){super(e,"outputBin")}}class Xe extends i.XFAObject{constructor(W){super(e,"outputXSL",!0),this.uri=null}}class Je extends i.OptionObject{constructor(W){super(e,"overprint",["none","both","draw","field"])}}class et extends i.StringObject{constructor(W){super(e,"packets")}[i.$finalize](){this[i.$content]!=="*"&&(this[i.$content]=this[i.$content].trim().split(/\s+/).filter(W=>["config","datasets","template","xfdf","xslt"].includes(W)))}}class pt extends i.XFAObject{constructor(W){super(e,"pageOffset"),this.x=(0,O.getInteger)({data:W.x,defaultValue:"useXDCSetting",validate:Ae=>!0}),this.y=(0,O.getInteger)({data:W.y,defaultValue:"useXDCSetting",validate:Ae=>!0})}}class xt extends i.StringObject{constructor(W){super(e,"pageRange")}[i.$finalize](){const W=this[i.$content].trim().split(/\s+/).map(De=>parseInt(De,10)),Ae=[];for(let De=0,ze=W.length;De<ze;De+=2)Ae.push(W.slice(De,De+2));this[i.$content]=Ae}}class Ot extends i.OptionObject{constructor(W){super(e,"pagination",["simplex","duplexShortEdge","duplexLongEdge"])}}class st extends i.OptionObject{constructor(W){super(e,"paginationOverride",["none","forceDuplex","forceDuplexLongEdge","forceDuplexShortEdge","forceSimplex"])}}class Nt extends i.IntegerObject{constructor(W){super(e,"part",1,Ae=>!1)}}class Ut extends i.XFAObject{constructor(W){super(e,"pcl",!0),this.name=W.name||"",this.batchOutput=null,this.fontInfo=null,this.jog=null,this.mediumInfo=null,this.outputBin=null,this.pageOffset=null,this.staple=null,this.xdc=null}}class _t extends i.XFAObject{constructor(W){super(e,"pdf",!0),this.name=W.name||"",this.adobeExtensionLevel=null,this.batchOutput=null,this.compression=null,this.creator=null,this.encryption=null,this.fontInfo=null,this.interactive=null,this.linearized=null,this.openAction=null,this.pdfa=null,this.producer=null,this.renderPolicy=null,this.scriptModel=null,this.silentPrint=null,this.submitFormat=null,this.tagged=null,this.version=null,this.viewerPreferences=null,this.xdc=null}}class Tt extends i.XFAObject{constructor(W){super(e,"pdfa",!0),this.amd=null,this.conformance=null,this.includeXDPContent=null,this.part=null}}class Le extends i.XFAObject{constructor(W){super(e,"permissions",!0),this.accessibleContent=null,this.change=null,this.contentCopy=null,this.documentAssembly=null,this.formFieldFilling=null,this.modifyAnnots=null,this.plaintextMetadata=null,this.print=null,this.printHighQuality=null}}class Re extends i.Option01{constructor(W){super(e,"pickTrayByPDFSize")}}class Ue extends i.StringObject{constructor(W){super(e,"picture")}}class Ke extends i.Option01{constructor(W){super(e,"plaintextMetadata")}}class He extends i.OptionObject{constructor(W){super(e,"presence",["preserve","dissolve","dissolveStructure","ignore","remove"])}}class lt extends i.XFAObject{constructor(W){super(e,"present",!0),this.behaviorOverride=null,this.cache=null,this.common=null,this.copies=null,this.destination=null,this.incrementalMerge=null,this.layout=null,this.output=null,this.overprint=null,this.pagination=null,this.paginationOverride=null,this.script=null,this.validate=null,this.xdp=null,this.driver=new i.XFAObjectArray,this.labelPrinter=new i.XFAObjectArray,this.pcl=new i.XFAObjectArray,this.pdf=new i.XFAObjectArray,this.ps=new i.XFAObjectArray,this.submitUrl=new i.XFAObjectArray,this.webClient=new i.XFAObjectArray,this.zpl=new i.XFAObjectArray}}class Ze extends i.Option01{constructor(W){super(e,"print")}}class qe extends i.Option01{constructor(W){super(e,"printHighQuality")}}class dt extends i.OptionObject{constructor(W){super(e,"printScaling",["appdefault","noScaling"])}}class gt extends i.StringObject{constructor(W){super(e,"printerName")}}class we extends i.StringObject{constructor(W){super(e,"producer")}}class Te extends i.XFAObject{constructor(W){super(e,"ps",!0),this.name=W.name||"",this.batchOutput=null,this.fontInfo=null,this.jog=null,this.mediumInfo=null,this.outputBin=null,this.staple=null,this.xdc=null}}class Be extends i.ContentObject{constructor(W){super(e,"range")}[i.$finalize](){this[i.$content]=this[i.$content].trim().split(/\s*,\s*/,2).map(W=>W.split("-").map(Ae=>parseInt(Ae.trim(),10))).filter(W=>W.every(Ae=>!isNaN(Ae))).map(W=>(W.length===1&&W.push(W[0]),W))}}class Ye extends i.ContentObject{constructor(W){super(e,"record")}[i.$finalize](){this[i.$content]=this[i.$content].trim();const W=parseInt(this[i.$content],10);!isNaN(W)&&W>=0&&(this[i.$content]=W)}}class We extends i.ContentObject{constructor(W){super(e,"relevant")}[i.$finalize](){this[i.$content]=this[i.$content].trim().split(/\s+/)}}class ct extends i.ContentObject{constructor(W){super(e,"rename")}[i.$finalize](){this[i.$content]=this[i.$content].trim(),(this[i.$content].toLowerCase().startsWith("xml")||new RegExp("[\\p{L}_][\\p{L}\\d._\\p{M}-]*","u").test(this[i.$content]))&&(0,P.warn)("XFA - Rename: invalid XFA name")}}class tt extends i.OptionObject{constructor(W){super(e,"renderPolicy",["server","client"])}}class ut extends i.OptionObject{constructor(W){super(e,"runScripts",["both","client","none","server"])}}class bt extends i.XFAObject{constructor(W){super(e,"script",!0),this.currentPage=null,this.exclude=null,this.runScripts=null}}class jt extends i.OptionObject{constructor(W){super(e,"scriptModel",["XFA","none"])}}class yt extends i.OptionObject{constructor(W){super(e,"severity",["ignore","error","information","trace","warning"])}}class wt extends i.XFAObject{constructor(W){super(e,"silentPrint",!0),this.addSilentPrint=null,this.printerName=null}}class Mt extends i.XFAObject{constructor(W){super(e,"staple"),this.mode=(0,O.getStringOption)(W.mode,["usePrinterSetting","on","off"])}}class Ht extends i.StringObject{constructor(W){super(e,"startNode")}}class nn extends i.IntegerObject{constructor(W){super(e,"startPage",0,Ae=>!0)}}class Sn extends i.OptionObject{constructor(W){super(e,"submitFormat",["html","delegate","fdf","xml","pdf"])}}class Un extends i.StringObject{constructor(W){super(e,"submitUrl")}}class Yn extends i.IntegerObject{constructor(W){super(e,"subsetBelow",100,Ae=>Ae>=0&&Ae<=100)}}class Jn extends i.Option01{constructor(W){super(e,"suppressBanner")}}class Zn extends i.Option01{constructor(W){super(e,"tagged")}}class Qn extends i.XFAObject{constructor(W){super(e,"template",!0),this.base=null,this.relevant=null,this.startPage=null,this.uri=null,this.xsl=null}}class ea extends i.OptionObject{constructor(W){super(e,"threshold",["trace","error","information","warning"])}}class jn extends i.OptionObject{constructor(W){super(e,"to",["null","memory","stderr","stdout","system","uri"])}}class Xn extends i.XFAObject{constructor(W){super(e,"templateCache"),this.maxEntries=(0,O.getInteger)({data:W.maxEntries,defaultValue:5,validate:Ae=>Ae>=0})}}class Pn extends i.XFAObject{constructor(W){super(e,"trace",!0),this.area=new i.XFAObjectArray}}class ta extends i.XFAObject{constructor(W){super(e,"transform",!0),this.groupParent=null,this.ifEmpty=null,this.nameAttr=null,this.picture=null,this.presence=null,this.rename=null,this.whitespace=null}}class xn extends i.OptionObject{constructor(W){super(e,"type",["none","ascii85","asciiHex","ccittfax","flate","lzw","runLength","native","xdp","mergedXDP"])}}class Hn extends i.StringObject{constructor(W){super(e,"uri")}}class Dn extends i.OptionObject{constructor(W){super(e,"validate",["preSubmit","prePrint","preExecute","preSave"])}}class Rn extends i.ContentObject{constructor(W){super(e,"validateApprovalSignatures")}[i.$finalize](){this[i.$content]=this[i.$content].trim().split(/\s+/).filter(W=>["docReady","postSign"].includes(W))}}class on extends i.OptionObject{constructor(W){super(e,"validationMessaging",["allMessagesIndividually","allMessagesTogether","firstMessageOnly","noMessages"])}}class un extends i.OptionObject{constructor(W){super(e,"version",["1.7","1.6","1.5","1.4","1.3","1.2"])}}class vn extends i.XFAObject{constructor(W){super(e,"VersionControl"),this.outputBelow=(0,O.getStringOption)(W.outputBelow,["warn","error","update"]),this.sourceAbove=(0,O.getStringOption)(W.sourceAbove,["warn","error"]),this.sourceBelow=(0,O.getStringOption)(W.sourceBelow,["update","maintain"])}}class zn extends i.XFAObject{constructor(W){super(e,"viewerPreferences",!0),this.ADBE_JSConsole=null,this.ADBE_JSDebugger=null,this.addViewerPreferences=null,this.duplexOption=null,this.enforce=null,this.numberOfCopies=null,this.pageRange=null,this.pickTrayByPDFSize=null,this.printScaling=null}}class na extends i.XFAObject{constructor(W){super(e,"webClient",!0),this.name=W.name?W.name.trim():"",this.fontInfo=null,this.xdc=null}}class Bn extends i.OptionObject{constructor(W){super(e,"whitespace",["preserve","ltrim","normalize","rtrim","trim"])}}class pn extends i.ContentObject{constructor(W){super(e,"window")}[i.$finalize](){const W=this[i.$content].trim().split(/\s*,\s*/,2).map(Ae=>parseInt(Ae,10));if(W.some(Ae=>isNaN(Ae))){this[i.$content]=[0,0];return}W.length===1&&W.push(W[0]),this[i.$content]=W}}class Mn extends i.XFAObject{constructor(W){super(e,"xdc",!0),this.uri=new i.XFAObjectArray,this.xsl=new i.XFAObjectArray}}class Cn extends i.XFAObject{constructor(W){super(e,"xdp",!0),this.packets=null}}class aa extends i.XFAObject{constructor(W){super(e,"xsl",!0),this.debug=null,this.uri=null}}class An extends i.XFAObject{constructor(W){super(e,"zpl",!0),this.name=W.name?W.name.trim():"",this.batchOutput=null,this.flipLabel=null,this.fontInfo=null,this.xdc=null}}class Ee{static[t.$buildXFAObject](W,Ae){if(Ee.hasOwnProperty(W))return Ee[W](Ae)}static acrobat(W){return new N(W)}static acrobat7(W){return new D(W)}static ADBE_JSConsole(W){return new L(W)}static ADBE_JSDebugger(W){return new k(W)}static addSilentPrint(W){return new x(W)}static addViewerPreferences(W){return new g(W)}static adjustData(W){return new n(W)}static adobeExtensionLevel(W){return new I(W)}static agent(W){return new B(W)}static alwaysEmbed(W){return new h(W)}static amd(W){return new c(W)}static area(W){return new C(W)}static attributes(W){return new u(W)}static autoSave(W){return new m(W)}static base(W){return new X(W)}static batchOutput(W){return new f(W)}static behaviorOverride(W){return new F(W)}static cache(W){return new s(W)}static change(W){return new d(W)}static common(W){return new S(W)}static compress(W){return new r(W)}static compressLogicalStructure(W){return new o(W)}static compressObjectStream(W){return new A(W)}static compression(W){return new p(W)}static config(W){return new v(W)}static conformance(W){return new R(W)}static contentCopy(W){return new T(W)}static copies(W){return new y(W)}static creator(W){return new H(W)}static currentPage(W){return new z(W)}static data(W){return new $(W)}static debug(W){return new j(W)}static defaultTypeface(W){return new V(W)}static destination(W){return new ee(W)}static documentAssembly(W){return new U(W)}static driver(W){return new G(W)}static duplexOption(W){return new Y(W)}static dynamicRender(W){return new oe(W)}static embed(W){return new se(W)}static encrypt(W){return new Q(W)}static encryption(W){return new E(W)}static encryptionLevel(W){return new M(W)}static enforce(W){return new _(W)}static equate(W){return new J(W)}static equateRange(W){return new K(W)}static exclude(W){return new te(W)}static excludeNS(W){return new Z(W)}static flipLabel(W){return new ce(W)}static fontInfo(W){return new ne(W)}static formFieldFilling(W){return new re(W)}static groupParent(W){return new ie(W)}static ifEmpty(W){return new ae(W)}static includeXDPContent(W){return new ue(W)}static incrementalLoad(W){return new fe(W)}static incrementalMerge(W){return new me(W)}static interactive(W){return new Fe(W)}static jog(W){return new pe(W)}static labelPrinter(W){return new Ce(W)}static layout(W){return new be(W)}static level(W){return new Ie(W)}static linearized(W){return new ye(W)}static locale(W){return new de(W)}static localeSet(W){return new ge(W)}static log(W){return new xe(W)}static map(W){return new Oe(W)}static mediumInfo(W){return new je(W)}static message(W){return new it(W)}static messaging(W){return new ke(W)}static mode(W){return new $e(W)}static modifyAnnots(W){return new Ge(W)}static msgId(W){return new Qe(W)}static nameAttr(W){return new ve(W)}static neverEmbed(W){return new Ne(W)}static numberOfCopies(W){return new Me(W)}static openAction(W){return new nt(W)}static output(W){return new _e(W)}static outputBin(W){return new rt(W)}static outputXSL(W){return new Xe(W)}static overprint(W){return new Je(W)}static packets(W){return new et(W)}static pageOffset(W){return new pt(W)}static pageRange(W){return new xt(W)}static pagination(W){return new Ot(W)}static paginationOverride(W){return new st(W)}static part(W){return new Nt(W)}static pcl(W){return new Ut(W)}static pdf(W){return new _t(W)}static pdfa(W){return new Tt(W)}static permissions(W){return new Le(W)}static pickTrayByPDFSize(W){return new Re(W)}static picture(W){return new Ue(W)}static plaintextMetadata(W){return new Ke(W)}static presence(W){return new He(W)}static present(W){return new lt(W)}static print(W){return new Ze(W)}static printHighQuality(W){return new qe(W)}static printScaling(W){return new dt(W)}static printerName(W){return new gt(W)}static producer(W){return new we(W)}static ps(W){return new Te(W)}static range(W){return new Be(W)}static record(W){return new Ye(W)}static relevant(W){return new We(W)}static rename(W){return new ct(W)}static renderPolicy(W){return new tt(W)}static runScripts(W){return new ut(W)}static script(W){return new bt(W)}static scriptModel(W){return new jt(W)}static severity(W){return new yt(W)}static silentPrint(W){return new wt(W)}static staple(W){return new Mt(W)}static startNode(W){return new Ht(W)}static startPage(W){return new nn(W)}static submitFormat(W){return new Sn(W)}static submitUrl(W){return new Un(W)}static subsetBelow(W){return new Yn(W)}static suppressBanner(W){return new Jn(W)}static tagged(W){return new Zn(W)}static template(W){return new Qn(W)}static templateCache(W){return new Xn(W)}static threshold(W){return new ea(W)}static to(W){return new jn(W)}static trace(W){return new Pn(W)}static transform(W){return new ta(W)}static type(W){return new xn(W)}static uri(W){return new Hn(W)}static validate(W){return new Dn(W)}static validateApprovalSignatures(W){return new Rn(W)}static validationMessaging(W){return new on(W)}static version(W){return new un(W)}static versionControl(W){return new vn(W)}static viewerPreferences(W){return new zn(W)}static webClient(W){return new na(W)}static whitespace(W){return new Bn(W)}static window(W){return new pn(W)}static xdc(W){return new Mn(W)}static xdp(W){return new Cn(W)}static xsl(W){return new aa(W)}static zpl(W){return new An(W)}}l.ConfigNamespace=Ee},(he,l,w)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.ConnectionSetNamespace=void 0;var t=w(210),i=w(208);const O=t.NamespaceIds.connectionSet.id;class P extends i.XFAObject{constructor(u){super(O,"connectionSet",!0),this.wsdlConnection=new i.XFAObjectArray,this.xmlConnection=new i.XFAObjectArray,this.xsdConnection=new i.XFAObjectArray}}class e extends i.XFAObject{constructor(u){super(O,"effectiveInputPolicy"),this.id=u.id||"",this.name=u.name||"",this.use=u.use||"",this.usehref=u.usehref||""}}class N extends i.XFAObject{constructor(u){super(O,"effectiveOutputPolicy"),this.id=u.id||"",this.name=u.name||"",this.use=u.use||"",this.usehref=u.usehref||""}}class D extends i.StringObject{constructor(u){super(O,"operation"),this.id=u.id||"",this.input=u.input||"",this.name=u.name||"",this.output=u.output||"",this.use=u.use||"",this.usehref=u.usehref||""}}class L extends i.StringObject{constructor(u){super(O,"rootElement"),this.id=u.id||"",this.name=u.name||"",this.use=u.use||"",this.usehref=u.usehref||""}}class k extends i.StringObject{constructor(u){super(O,"soapAction"),this.id=u.id||"",this.name=u.name||"",this.use=u.use||"",this.usehref=u.usehref||""}}class x extends i.StringObject{constructor(u){super(O,"soapAddress"),this.id=u.id||"",this.name=u.name||"",this.use=u.use||"",this.usehref=u.usehref||""}}class g extends i.StringObject{constructor(u){super(O,"uri"),this.id=u.id||"",this.name=u.name||"",this.use=u.use||"",this.usehref=u.usehref||""}}class n extends i.StringObject{constructor(u){super(O,"wsdlAddress"),this.id=u.id||"",this.name=u.name||"",this.use=u.use||"",this.usehref=u.usehref||""}}class I extends i.XFAObject{constructor(u){super(O,"wsdlConnection",!0),this.dataDescription=u.dataDescription||"",this.name=u.name||"",this.effectiveInputPolicy=null,this.effectiveOutputPolicy=null,this.operation=null,this.soapAction=null,this.soapAddress=null,this.wsdlAddress=null}}class B extends i.XFAObject{constructor(u){super(O,"xmlConnection",!0),this.dataDescription=u.dataDescription||"",this.name=u.name||"",this.uri=null}}class h extends i.XFAObject{constructor(u){super(O,"xsdConnection",!0),this.dataDescription=u.dataDescription||"",this.name=u.name||"",this.rootElement=null,this.uri=null}}class c{static[t.$buildXFAObject](u,m){if(c.hasOwnProperty(u))return c[u](m)}static connectionSet(u){return new P(u)}static effectiveInputPolicy(u){return new e(u)}static effectiveOutputPolicy(u){return new N(u)}static operation(u){return new D(u)}static rootElement(u){return new L(u)}static soapAction(u){return new k(u)}static soapAddress(u){return new x(u)}static uri(u){return new g(u)}static wsdlAddress(u){return new n(u)}static wsdlConnection(u){return new I(u)}static xmlConnection(u){return new B(u)}static xsdConnection(u){return new h(u)}}l.ConnectionSetNamespace=c},(he,l,w)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.DatasetsNamespace=void 0;var t=w(208),i=w(210);const O=i.NamespaceIds.datasets.id;class P extends t.XmlObject{constructor(L){super(O,"data",L)}[t.$isNsAgnostic](){return!0}}class e extends t.XFAObject{constructor(L){super(O,"datasets",!0),this.data=null,this.Signature=null}[t.$onChild](L){const k=L[t.$nodeName];(k==="data"&&L[t.$namespaceId]===O||k==="Signature"&&L[t.$namespaceId]===i.NamespaceIds.signature.id)&&(this[k]=L),this[t.$appendChild](L)}}class N{static[i.$buildXFAObject](L,k){if(N.hasOwnProperty(L))return N[L](k)}static datasets(L){return new e(L)}static data(L){return new P(L)}}l.DatasetsNamespace=N},(he,l,w)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.LocaleSetNamespace=void 0;var t=w(210),i=w(208),O=w(209);const P=t.NamespaceIds.localeSet.id;class e extends i.XFAObject{constructor(R){super(P,"calendarSymbols",!0),this.name="gregorian",this.dayNames=new i.XFAObjectArray(2),this.eraNames=null,this.meridiemNames=null,this.monthNames=new i.XFAObjectArray(2)}}class N extends i.StringObject{constructor(R){super(P,"currencySymbol"),this.name=(0,O.getStringOption)(R.name,["symbol","isoname","decimal"])}}class D extends i.XFAObject{constructor(R){super(P,"currencySymbols",!0),this.currencySymbol=new i.XFAObjectArray(3)}}class L extends i.StringObject{constructor(R){super(P,"datePattern"),this.name=(0,O.getStringOption)(R.name,["full","long","med","short"])}}class k extends i.XFAObject{constructor(R){super(P,"datePatterns",!0),this.datePattern=new i.XFAObjectArray(4)}}class x extends i.ContentObject{constructor(R){super(P,"dateTimeSymbols")}}class g extends i.StringObject{constructor(R){super(P,"day")}}class n extends i.XFAObject{constructor(R){super(P,"dayNames",!0),this.abbr=(0,O.getInteger)({data:R.abbr,defaultValue:0,validate:T=>T===1}),this.day=new i.XFAObjectArray(7)}}class I extends i.StringObject{constructor(R){super(P,"era")}}class B extends i.XFAObject{constructor(R){super(P,"eraNames",!0),this.era=new i.XFAObjectArray(2)}}class h extends i.XFAObject{constructor(R){super(P,"locale",!0),this.desc=R.desc||"",this.name="isoname",this.calendarSymbols=null,this.currencySymbols=null,this.datePatterns=null,this.dateTimeSymbols=null,this.numberPatterns=null,this.numberSymbols=null,this.timePatterns=null,this.typeFaces=null}}class c extends i.XFAObject{constructor(R){super(P,"localeSet",!0),this.locale=new i.XFAObjectArray}}class C extends i.StringObject{constructor(R){super(P,"meridiem")}}class u extends i.XFAObject{constructor(R){super(P,"meridiemNames",!0),this.meridiem=new i.XFAObjectArray(2)}}class m extends i.StringObject{constructor(R){super(P,"month")}}class X extends i.XFAObject{constructor(R){super(P,"monthNames",!0),this.abbr=(0,O.getInteger)({data:R.abbr,defaultValue:0,validate:T=>T===1}),this.month=new i.XFAObjectArray(12)}}class f extends i.StringObject{constructor(R){super(P,"numberPattern"),this.name=(0,O.getStringOption)(R.name,["full","long","med","short"])}}class F extends i.XFAObject{constructor(R){super(P,"numberPatterns",!0),this.numberPattern=new i.XFAObjectArray(4)}}class s extends i.StringObject{constructor(R){super(P,"numberSymbol"),this.name=(0,O.getStringOption)(R.name,["decimal","grouping","percent","minus","zero"])}}class d extends i.XFAObject{constructor(R){super(P,"numberSymbols",!0),this.numberSymbol=new i.XFAObjectArray(5)}}class S extends i.StringObject{constructor(R){super(P,"timePattern"),this.name=(0,O.getStringOption)(R.name,["full","long","med","short"])}}class r extends i.XFAObject{constructor(R){super(P,"timePatterns",!0),this.timePattern=new i.XFAObjectArray(4)}}class o extends i.XFAObject{constructor(R){super(P,"typeFace",!0),this.name=R.name|""}}class A extends i.XFAObject{constructor(R){super(P,"typeFaces",!0),this.typeFace=new i.XFAObjectArray}}class p{static[t.$buildXFAObject](R,T){if(p.hasOwnProperty(R))return p[R](T)}static calendarSymbols(R){return new e(R)}static currencySymbol(R){return new N(R)}static currencySymbols(R){return new D(R)}static datePattern(R){return new L(R)}static datePatterns(R){return new k(R)}static dateTimeSymbols(R){return new x(R)}static day(R){return new g(R)}static dayNames(R){return new n(R)}static era(R){return new I(R)}static eraNames(R){return new B(R)}static locale(R){return new h(R)}static localeSet(R){return new c(R)}static meridiem(R){return new C(R)}static meridiemNames(R){return new u(R)}static month(R){return new m(R)}static monthNames(R){return new X(R)}static numberPattern(R){return new f(R)}static numberPatterns(R){return new F(R)}static numberSymbol(R){return new s(R)}static numberSymbols(R){return new d(R)}static timePattern(R){return new S(R)}static timePatterns(R){return new r(R)}static typeFace(R){return new o(R)}static typeFaces(R){return new A(R)}}l.LocaleSetNamespace=p},(he,l,w)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.SignatureNamespace=void 0;var t=w(210),i=w(208);const O=t.NamespaceIds.signature.id;class P extends i.XFAObject{constructor(D){super(O,"signature",!0)}}class e{static[t.$buildXFAObject](D,L){if(e.hasOwnProperty(D))return e[D](L)}static signature(D){return new P(D)}}l.SignatureNamespace=e},(he,l,w)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.StylesheetNamespace=void 0;var t=w(210),i=w(208);const O=t.NamespaceIds.stylesheet.id;class P extends i.XFAObject{constructor(D){super(O,"stylesheet",!0)}}class e{static[t.$buildXFAObject](D,L){if(e.hasOwnProperty(D))return e[D](L)}static stylesheet(D){return new P(D)}}l.StylesheetNamespace=e},(he,l,w)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.XdpNamespace=void 0;var t=w(210),i=w(208);const O=t.NamespaceIds.xdp.id;class P extends i.XFAObject{constructor(D){super(O,"xdp",!0),this.uuid=D.uuid||"",this.timeStamp=D.timeStamp||"",this.config=null,this.connectionSet=null,this.datasets=null,this.localeSet=null,this.stylesheet=new i.XFAObjectArray,this.template=null}[i.$onChildCheck](D){const L=t.NamespaceIds[D[i.$nodeName]];return L&&D[i.$namespaceId]===L.id}}class e{static[t.$buildXFAObject](D,L){if(e.hasOwnProperty(D))return e[D](L)}static xdp(D){return new P(D)}}l.XdpNamespace=e},(he,l,w)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.XhtmlNamespace=void 0;var t=w(208),i=w(210),O=w(215),P=w(209);const e=i.NamespaceIds.xhtml.id,N=Symbol(),D=new Set(["color","font","font-family","font-size","font-stretch","font-style","font-weight","margin","margin-bottom","margin-left","margin-right","margin-top","letter-spacing","line-height","orphans","page-break-after","page-break-before","page-break-inside","tab-interval","tab-stop","text-align","text-decoration","text-indent","vertical-align","widows","kerning-mode","xfa-font-horizontal-scale","xfa-font-vertical-scale","xfa-spacerun","xfa-tab-stops"]),L=new Map([["page-break-after","breakAfter"],["page-break-before","breakBefore"],["page-break-inside","breakInside"],["kerning-mode",v=>v==="none"?"none":"normal"],["xfa-font-horizontal-scale",v=>`scaleX(${Math.max(0,Math.min(parseInt(v)/100)).toFixed(2)})`],["xfa-font-vertical-scale",v=>`scaleY(${Math.max(0,Math.min(parseInt(v)/100)).toFixed(2)})`],["xfa-spacerun",""],["xfa-tab-stops",""],["font-size",(v,R)=>(v=R.fontSize=(0,P.getMeasurement)(v),(0,O.measureToString)(.99*v))],["letter-spacing",v=>(0,O.measureToString)((0,P.getMeasurement)(v))],["line-height",v=>(0,O.measureToString)((0,P.getMeasurement)(v))],["margin",v=>(0,O.measureToString)((0,P.getMeasurement)(v))],["margin-bottom",v=>(0,O.measureToString)((0,P.getMeasurement)(v))],["margin-left",v=>(0,O.measureToString)((0,P.getMeasurement)(v))],["margin-right",v=>(0,O.measureToString)((0,P.getMeasurement)(v))],["margin-top",v=>(0,O.measureToString)((0,P.getMeasurement)(v))],["text-indent",v=>(0,O.measureToString)((0,P.getMeasurement)(v))],["font-family",v=>v],["vertical-align",v=>(0,O.measureToString)((0,P.getMeasurement)(v))]]),k=/\s+/g,x=/[\r\n]+/g,g=/\r\n?/g;function n(v,R,T){const y=Object.create(null);if(!v)return y;const H=Object.create(null);for(const[z,$]of v.split(";").map(j=>j.split(":",2))){const j=L.get(z);if(j==="")continue;let V=$;j&&(typeof j=="string"?V=j:V=j($,H)),z.endsWith("scale")?y.transform?y.transform=`${y[z]} ${V}`:y.transform=V:y[z.replaceAll(/-([a-zA-Z])/g,(ee,U)=>U.toUpperCase())]=V}if(y.fontFamily&&(0,O.setFontFamily)({typeface:y.fontFamily,weight:y.fontWeight||"normal",posture:y.fontStyle||"normal",size:H.fontSize||0},R,R[t.$globalData].fontFinder,y),T&&y.verticalAlign&&y.verticalAlign!=="0px"&&y.fontSize){const j=(0,P.getMeasurement)(y.fontSize);y.fontSize=(0,O.measureToString)(j*.583),y.verticalAlign=(0,O.measureToString)(Math.sign((0,P.getMeasurement)(y.verticalAlign))*j*.333)}return T&&y.fontSize&&(y.fontSize=`calc(${y.fontSize} * var(--scale-factor))`),(0,O.fixTextIndent)(y),y}function I(v){return v.style?v.style.trim().split(/\s*;\s*/).filter(R=>!!R).map(R=>R.split(/\s*:\s*/,2)).filter(R=>{let[T,y]=R;return T==="font-family"&&v[t.$globalData].usedTypefaces.add(y),D.has(T)}).map(R=>R.join(":")).join(";"):""}const B=new Set(["body","html"]);class h extends t.XmlObject{constructor(R,T){super(e,T),this[N]=!1,this.style=R.style||""}[t.$clean](R){super[t.$clean](R),this.style=I(this)}[t.$acceptWhitespace](){return!B.has(this[t.$nodeName])}[t.$onText](R){(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)?this[N]=!0:(R=R.replace(x,""),this.style.includes("xfa-spacerun:yes")||(R=R.replace(k," "))),R&&(this[t.$content]+=R)}[t.$pushGlyphs](R){let T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const y=Object.create(null),H={top:NaN,bottom:NaN,left:NaN,right:NaN};let z=null;for(const[$,j]of this.style.split(";").map(V=>V.split(":",2)))switch($){case"font-family":y.typeface=(0,P.stripQuotes)(j);break;case"font-size":y.size=(0,P.getMeasurement)(j);break;case"font-weight":y.weight=j;break;case"font-style":y.posture=j;break;case"letter-spacing":y.letterSpacing=(0,P.getMeasurement)(j);break;case"margin":const V=j.split(/ \t/).map(ee=>(0,P.getMeasurement)(ee));switch(V.length){case 1:H.top=H.bottom=H.left=H.right=V[0];break;case 2:H.top=H.bottom=V[0],H.left=H.right=V[1];break;case 3:H.top=V[0],H.bottom=V[2],H.left=H.right=V[1];break;case 4:H.top=V[0],H.left=V[1],H.bottom=V[2],H.right=V[3];break}break;case"margin-top":H.top=(0,P.getMeasurement)(j);break;case"margin-bottom":H.bottom=(0,P.getMeasurement)(j);break;case"margin-left":H.left=(0,P.getMeasurement)(j);break;case"margin-right":H.right=(0,P.getMeasurement)(j);break;case"line-height":z=(0,P.getMeasurement)(j);break}if(R.pushData(y,H,z),this[t.$content])R.addString(this[t.$content]);else for(const $ of this[t.$getChildren]()){if($[t.$nodeName]==="#text"){R.addString($[t.$content]);continue}$[t.$pushGlyphs](R)}T&&R.popFont()}[t.$toHTML](R){const T=[];if(this[t.$extra]={children:T},this[t.$childrenToHTML]({}),T.length===0&&!this[t.$content])return P.HTMLResult.EMPTY;let y;return this[N]?y=this[t.$content]?this[t.$content].replace(g,`
`):void 0:y=this[t.$content]||void 0,P.HTMLResult.success({name:this[t.$nodeName],attributes:{href:this.href,style:n(this.style,this,this[N])},children:T,value:y})}}class c extends h{constructor(R){super(R,"a"),this.href=(0,O.fixURL)(R.href)||""}}class C extends h{constructor(R){super(R,"b")}[t.$pushGlyphs](R){R.pushFont({weight:"bold"}),super[t.$pushGlyphs](R),R.popFont()}}class u extends h{constructor(R){super(R,"body")}[t.$toHTML](R){const T=super[t.$toHTML](R),{html:y}=T;return y?(y.name="div",y.attributes.class=["xfaRich"],T):P.HTMLResult.EMPTY}}class m extends h{constructor(R){super(R,"br")}[t.$text](){return`
`}[t.$pushGlyphs](R){R.addString(`
`)}[t.$toHTML](R){return P.HTMLResult.success({name:"br"})}}class X extends h{constructor(R){super(R,"html")}[t.$toHTML](R){const T=[];if(this[t.$extra]={children:T},this[t.$childrenToHTML]({}),T.length===0)return P.HTMLResult.success({name:"div",attributes:{class:["xfaRich"],style:{}},value:this[t.$content]||""});if(T.length===1){const y=T[0];if(y.attributes&&y.attributes.class.includes("xfaRich"))return P.HTMLResult.success(y)}return P.HTMLResult.success({name:"div",attributes:{class:["xfaRich"],style:{}},children:T})}}class f extends h{constructor(R){super(R,"i")}[t.$pushGlyphs](R){R.pushFont({posture:"italic"}),super[t.$pushGlyphs](R),R.popFont()}}class F extends h{constructor(R){super(R,"li")}}class s extends h{constructor(R){super(R,"ol")}}class d extends h{constructor(R){super(R,"p")}[t.$pushGlyphs](R){super[t.$pushGlyphs](R,!1),R.addString(`
`),R.addPara(),R.popFont()}[t.$text](){return this[t.$getParent]()[t.$getChildren]().at(-1)===this?super[t.$text]():super[t.$text]()+`
`}}class S extends h{constructor(R){super(R,"span")}}class r extends h{constructor(R){super(R,"sub")}}class o extends h{constructor(R){super(R,"sup")}}class A extends h{constructor(R){super(R,"ul")}}class p{static[i.$buildXFAObject](R,T){if(p.hasOwnProperty(R))return p[R](T)}static a(R){return new c(R)}static b(R){return new C(R)}static body(R){return new u(R)}static br(R){return new m(R)}static html(R){return new X(R)}static i(R){return new f(R)}static li(R){return new F(R)}static ol(R){return new s(R)}static p(R){return new d(R)}static span(R){return new S(R)}static sub(R){return new r(R)}static sup(R){return new o(R)}static ul(R){return new A(R)}}l.XhtmlNamespace=p},(he,l,w)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.UnknownNamespace=void 0;var t=w(210),i=w(208);class O{constructor(e){this.namespaceId=e}[t.$buildXFAObject](e,N){return new i.XmlObject(this.namespaceId,e,N)}}l.UnknownNamespace=O},(he,l,w)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.DatasetReader=void 0;var t=w(2),i=w(136),O=w(197);function P(D){try{return(0,t.stringToUTF8String)(D)}catch(L){return(0,t.warn)(`UTF-8 decoding failed: "${L}".`),D}}class e extends O.SimpleXMLParser{constructor(L){super(L),this.node=null}onEndElement(L){const k=super.onEndElement(L);if(k&&L==="xfa:datasets")throw this.node=k,new Error("Aborting DatasetXMLParser.")}}class N{constructor(L){if(L.datasets)this.node=new O.SimpleXMLParser({hasAttributes:!0}).parseFromString(L.datasets).documentElement;else{const k=new e({hasAttributes:!0});try{k.parseFromString(L["xdp:xdp"])}catch{}this.node=k.node}}getValue(L){if(!this.node||!L)return"";const k=this.node.searchNode((0,i.parseXFAPath)(L),0);if(!k)return"";const x=k.firstChild;return x&&x.nodeName==="value"?k.children.map(g=>P(g.textContent)):P(k.textContent)}}l.DatasetReader=N},(he,l,w)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.XRef=void 0;var t=w(2),i=w(137),O=w(148),P=w(136),e=w(138),N=w(198);class D{constructor(k,x){this.stream=k,this.pdfManager=x,this.entries=[],this.xrefstms=Object.create(null),this._cacheMap=new Map,this._pendingRefs=new i.RefSet,this._newPersistentRefNum=null,this._newTemporaryRefNum=null}getNewPersistentRef(k){this._newPersistentRefNum===null&&(this._newPersistentRefNum=this.entries.length||1);const x=this._newPersistentRefNum++;return this._cacheMap.set(x,k),i.Ref.get(x,0)}getNewTemporaryRef(){return this._newTemporaryRefNum===null&&(this._newTemporaryRefNum=this.entries.length||1),i.Ref.get(this._newTemporaryRefNum++,0)}resetNewTemporaryRef(){this._newTemporaryRefNum=null}setStartXRef(k){this.startXRefQueue=[k]}parse(){let k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,x;k?((0,t.warn)("Indexing all PDF objects"),x=this.indexObjects()):x=this.readXRef(),x.assignXref(this),this.trailer=x;let g;try{g=x.get("Encrypt")}catch(I){if(I instanceof P.MissingDataException)throw I;(0,t.warn)(`XRef.parse - Invalid "Encrypt" reference: "${I}".`)}if(g instanceof i.Dict){const I=x.get("ID"),B=I&&I.length?I[0]:"";g.suppressEncryption=!0,this.encrypt=new N.CipherTransformFactory(g,B,this.pdfManager.password)}let n;try{n=x.get("Root")}catch(I){if(I instanceof P.MissingDataException)throw I;(0,t.warn)(`XRef.parse - Invalid "Root" reference: "${I}".`)}if(n instanceof i.Dict)try{if(n.get("Pages")instanceof i.Dict){this.root=n;return}}catch(I){if(I instanceof P.MissingDataException)throw I;(0,t.warn)(`XRef.parse - Invalid "Pages" reference: "${I}".`)}throw k?new t.InvalidPDFException("Invalid Root reference."):new P.XRefParseException}processXRefTable(k){"tableState"in this||(this.tableState={entryNum:0,streamPos:k.lexer.stream.pos,parserBuf1:k.buf1,parserBuf2:k.buf2});const x=this.readXRefTable(k);if(!(0,i.isCmd)(x,"trailer"))throw new t.FormatError("Invalid XRef table: could not find trailer dictionary");let g=k.getObj();if(!(g instanceof i.Dict)&&g.dict&&(g=g.dict),!(g instanceof i.Dict))throw new t.FormatError("Invalid XRef table: could not parse trailer dictionary");return delete this.tableState,g}readXRefTable(k){const x=k.lexer.stream,g=this.tableState;x.pos=g.streamPos,k.buf1=g.parserBuf1,k.buf2=g.parserBuf2;let n;for(;;){if(!("firstEntryNum"in g)||!("entryCount"in g)){if((0,i.isCmd)(n=k.getObj(),"trailer"))break;g.firstEntryNum=n,g.entryCount=k.getObj()}let I=g.firstEntryNum;const B=g.entryCount;if(!Number.isInteger(I)||!Number.isInteger(B))throw new t.FormatError("Invalid XRef table: wrong types in subsection header");for(let h=g.entryNum;h<B;h++){g.streamPos=x.pos,g.entryNum=h,g.parserBuf1=k.buf1,g.parserBuf2=k.buf2;const c={};c.offset=k.getObj(),c.gen=k.getObj();const C=k.getObj();if(C instanceof i.Cmd)switch(C.cmd){case"f":c.free=!0;break;case"n":c.uncompressed=!0;break}if(!Number.isInteger(c.offset)||!Number.isInteger(c.gen)||!(c.free||c.uncompressed))throw new t.FormatError(`Invalid entry in XRef subsection: ${I}, ${B}`);h===0&&c.free&&I===1&&(I=0),this.entries[h+I]||(this.entries[h+I]=c)}g.entryNum=0,g.streamPos=x.pos,g.parserBuf1=k.buf1,g.parserBuf2=k.buf2,delete g.firstEntryNum,delete g.entryCount}if(this.entries[0]&&!this.entries[0].free)throw new t.FormatError("Invalid XRef table: unexpected first object");return n}processXRefStream(k){if(!("streamState"in this)){const x=k.dict,g=x.get("W");let n=x.get("Index");n||(n=[0,x.get("Size")]),this.streamState={entryRanges:n,byteWidths:g,entryNum:0,streamPos:k.pos}}return this.readXRefStream(k),delete this.streamState,k.dict}readXRefStream(k){const x=this.streamState;k.pos=x.streamPos;const[g,n,I]=x.byteWidths,B=x.entryRanges;for(;B.length>0;){const[h,c]=B;if(!Number.isInteger(h)||!Number.isInteger(c))throw new t.FormatError(`Invalid XRef range fields: ${h}, ${c}`);if(!Number.isInteger(g)||!Number.isInteger(n)||!Number.isInteger(I))throw new t.FormatError(`Invalid XRef entry fields length: ${h}, ${c}`);for(let C=x.entryNum;C<c;++C){x.entryNum=C,x.streamPos=k.pos;let u=0,m=0,X=0;for(let F=0;F<g;++F){const s=k.getByte();if(s===-1)throw new t.FormatError("Invalid XRef byteWidths 'type'.");u=u<<8|s}g===0&&(u=1);for(let F=0;F<n;++F){const s=k.getByte();if(s===-1)throw new t.FormatError("Invalid XRef byteWidths 'offset'.");m=m<<8|s}for(let F=0;F<I;++F){const s=k.getByte();if(s===-1)throw new t.FormatError("Invalid XRef byteWidths 'generation'.");X=X<<8|s}const f={};switch(f.offset=m,f.gen=X,u){case 0:f.free=!0;break;case 1:f.uncompressed=!0;break;case 2:break;default:throw new t.FormatError(`Invalid XRef entry type: ${u}`)}this.entries[h+C]||(this.entries[h+C]=f)}x.entryNum=0,x.streamPos=k.pos,B.splice(0,2)}}indexObjects(){function h(H,z){let $="",j=H[z];for(;j!==10&&j!==13&&j!==60&&!(++z>=H.length);)$+=String.fromCharCode(j),j=H[z];return $}function c(H,z,$){const j=$.length,V=H.length;let ee=0;for(;z<V;){let U=0;for(;U<j&&H[z+U]===$[U];)++U;if(U>=j)break;z++,ee++}return ee}const C=/\b(endobj|\d+\s+\d+\s+obj|xref|trailer)\b/g,u=/\b(startxref|\d+\s+\d+\s+obj)\b/g,m=/^(\d+)\s+(\d+)\s+obj\b/,X=new Uint8Array([116,114,97,105,108,101,114]),f=new Uint8Array([115,116,97,114,116,120,114,101,102]),F=new Uint8Array([47,88,82,101,102]);this.entries.length=0,this._cacheMap.clear();const s=this.stream;s.pos=0;const d=s.getBytes(),S=(0,t.bytesToString)(d),r=d.length;let o=s.start;const A=[],p=[];for(;o<r;){let H=d[o];if(H===9||H===10||H===13||H===32){++o;continue}if(H===37){do{if(++o,o>=r)break;H=d[o]}while(H!==10&&H!==13);continue}const z=h(d,o);let $;if(z.startsWith("xref")&&(z.length===4||/\s/.test(z[4])))o+=c(d,o,X),A.push(o),o+=c(d,o,f);else if($=m.exec(z)){const j=$[1]|0,V=$[2]|0,ee=o+z.length;let U,G=!1;if(!this.entries[j])G=!0;else if(this.entries[j].gen===V)try{new O.Parser({lexer:new O.Lexer(s.makeSubStream(ee))}).getObj(),G=!0}catch(Q){Q instanceof P.ParserEOFException?(0,t.warn)(`indexObjects -- checking object (${z}): "${Q}".`):G=!0}G&&(this.entries[j]={offset:o-s.start,gen:V,uncompressed:!0}),C.lastIndex=ee;const Y=C.exec(S);Y?(U=C.lastIndex+1-o,Y[1]!=="endobj"&&((0,t.warn)(`indexObjects: Found "${Y[1]}" inside of another "obj", caused by missing "endobj" -- trying to recover.`),U-=Y[1].length+1)):U=r-o;const oe=d.subarray(o,o+U),se=c(oe,0,F);se<U&&oe[se+5]<64&&(p.push(o-s.start),this.xrefstms[o-s.start]=1),o+=U}else if(z.startsWith("trailer")&&(z.length===7||/\s/.test(z[7]))){A.push(o);const j=o+z.length;let V;u.lastIndex=j;const ee=u.exec(S);ee?(V=u.lastIndex+1-o,ee[1]!=="startxref"&&((0,t.warn)(`indexObjects: Found "${ee[1]}" after "trailer", caused by missing "startxref" -- trying to recover.`),V-=ee[1].length+1)):V=r-o,o+=V}else o+=z.length+1}for(const H of p)this.startXRefQueue.push(H),this.readXRef(!0);const v=[];let R=!1;for(const H of A){s.pos=H;const z=new O.Parser({lexer:new O.Lexer(s),xref:this,allowStreams:!0,recoveryMode:!0}),$=z.getObj();if(!(0,i.isCmd)($,"trailer"))continue;const j=z.getObj();j instanceof i.Dict&&(v.push(j),j.has("Encrypt")&&(R=!0))}let T,y;for(const H of[...v,"genFallback",...v]){if(H==="genFallback"){if(!y)break;this._generationFallback=!0;continue}let z=!1;try{const $=H.get("Root");if(!($ instanceof i.Dict))continue;const j=$.get("Pages");if(!(j instanceof i.Dict))continue;const V=j.get("Count");Number.isInteger(V)&&(z=!0)}catch($){y=$;continue}if(z&&(!R||H.has("Encrypt"))&&H.has("ID"))return H;T=H}if(T)return T;if(this.topDict)return this.topDict;throw new t.InvalidPDFException("Invalid PDF structure.")}readXRef(){let k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const x=this.stream,g=new Set;for(;this.startXRefQueue.length;){try{const n=this.startXRefQueue[0];if(g.has(n)){(0,t.warn)("readXRef - skipping XRef table since it was already parsed."),this.startXRefQueue.shift();continue}g.add(n),x.pos=n+x.start;const I=new O.Parser({lexer:new O.Lexer(x),xref:this,allowStreams:!0});let B=I.getObj(),h;if((0,i.isCmd)(B,"xref")){if(h=this.processXRefTable(I),this.topDict||(this.topDict=h),B=h.get("XRefStm"),Number.isInteger(B)){const c=B;c in this.xrefstms||(this.xrefstms[c]=1,this.startXRefQueue.push(c))}}else if(Number.isInteger(B)){if(!Number.isInteger(I.getObj())||!(0,i.isCmd)(I.getObj(),"obj")||!((B=I.getObj())instanceof e.BaseStream))throw new t.FormatError("Invalid XRef stream");if(h=this.processXRefStream(B),this.topDict||(this.topDict=h),!h)throw new t.FormatError("Failed to read XRef stream")}else throw new t.FormatError("Invalid XRef stream header");B=h.get("Prev"),Number.isInteger(B)?this.startXRefQueue.push(B):B instanceof i.Ref&&this.startXRefQueue.push(B.num)}catch(n){if(n instanceof P.MissingDataException)throw n;(0,t.info)("(while reading XRef): "+n)}this.startXRefQueue.shift()}if(this.topDict)return this.topDict;if(!k)throw new P.XRefParseException}getEntry(k){const x=this.entries[k];return x&&!x.free&&x.offset?x:null}fetchIfRef(k){let x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return k instanceof i.Ref?this.fetch(k,x):k}fetch(k){let x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!(k instanceof i.Ref))throw new Error("ref object is not a reference");const g=k.num,n=this._cacheMap.get(g);if(n!==void 0)return n instanceof i.Dict&&!n.objId&&(n.objId=k.toString()),n;let I=this.getEntry(g);if(I===null)return this._cacheMap.set(g,I),I;if(this._pendingRefs.has(k))return this._pendingRefs.remove(k),(0,t.warn)(`Ignoring circular reference: ${k}.`),i.CIRCULAR_REF;this._pendingRefs.put(k);try{I.uncompressed?I=this.fetchUncompressed(k,I,x):I=this.fetchCompressed(k,I,x),this._pendingRefs.remove(k)}catch(B){throw this._pendingRefs.remove(k),B}return I instanceof i.Dict?I.objId=k.toString():I instanceof e.BaseStream&&(I.dict.objId=k.toString()),I}fetchUncompressed(k,x){let g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const n=k.gen;let I=k.num;if(x.gen!==n){const m=`Inconsistent generation in XRef: ${k}`;if(this._generationFallback&&x.gen<n)return(0,t.warn)(m),this.fetchUncompressed(i.Ref.get(I,x.gen),x,g);throw new P.XRefEntryException(m)}const B=this.stream.makeSubStream(x.offset+this.stream.start),h=new O.Parser({lexer:new O.Lexer(B),xref:this,allowStreams:!0}),c=h.getObj(),C=h.getObj(),u=h.getObj();if(c!==I||C!==n||!(u instanceof i.Cmd))throw new P.XRefEntryException(`Bad (uncompressed) XRef entry: ${k}`);if(u.cmd!=="obj"){if(u.cmd.startsWith("obj")&&(I=parseInt(u.cmd.substring(3),10),!Number.isNaN(I)))return I;throw new P.XRefEntryException(`Bad (uncompressed) XRef entry: ${k}`)}return this.encrypt&&!g?x=h.getObj(this.encrypt.createCipherTransform(I,n)):x=h.getObj(),x instanceof e.BaseStream||this._cacheMap.set(I,x),x}fetchCompressed(k,x){const g=x.offset,n=this.fetch(i.Ref.get(g,0));if(!(n instanceof e.BaseStream))throw new t.FormatError("bad ObjStm stream");const I=n.dict.get("First"),B=n.dict.get("N");if(!Number.isInteger(I)||!Number.isInteger(B))throw new t.FormatError("invalid first and n parameters for ObjStm stream");let h=new O.Parser({lexer:new O.Lexer(n),xref:this,allowStreams:!0});const c=new Array(B),C=new Array(B);for(let X=0;X<B;++X){const f=h.getObj();if(!Number.isInteger(f))throw new t.FormatError(`invalid object number in the ObjStm stream: ${f}`);const F=h.getObj();if(!Number.isInteger(F))throw new t.FormatError(`invalid object offset in the ObjStm stream: ${F}`);c[X]=f,C[X]=F}const u=(n.start||0)+I,m=new Array(B);for(let X=0;X<B;++X){const f=X<B-1?C[X+1]-C[X]:void 0;if(f<0)throw new t.FormatError("Invalid offset in the ObjStm stream.");h=new O.Parser({lexer:new O.Lexer(n.makeSubStream(u+C[X],f,n.dict)),xref:this,allowStreams:!0});const F=h.getObj();if(m[X]=F,F instanceof e.BaseStream)continue;const s=c[X],d=this.entries[s];d&&d.offset===g&&d.gen===X&&this._cacheMap.set(s,F)}if(x=m[x.gen],x===void 0)throw new P.XRefEntryException(`Bad (compressed) XRef entry: ${k}`);return x}async fetchIfRefAsync(k,x){return k instanceof i.Ref?this.fetchAsync(k,x):k}async fetchAsync(k,x){try{return this.fetch(k,x)}catch(g){if(!(g instanceof P.MissingDataException))throw g;return await this.pdfManager.requestRange(g.begin,g.end),this.fetchAsync(k,x)}}getCatalogObj(){return this.root}}l.XRef=D},(he,l,w)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.MessageHandler=void 0;var t=w(2);const i={UNKNOWN:0,DATA:1,ERROR:2},O={UNKNOWN:0,CANCEL:1,CANCEL_COMPLETE:2,CLOSE:3,ENQUEUE:4,ERROR:5,PULL:6,PULL_COMPLETE:7,START_COMPLETE:8};function P(N){switch(N instanceof Error||typeof N=="object"&&N!==null||(0,t.unreachable)('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),N.name){case"AbortException":return new t.AbortException(N.message);case"MissingPDFException":return new t.MissingPDFException(N.message);case"PasswordException":return new t.PasswordException(N.message,N.code);case"UnexpectedResponseException":return new t.UnexpectedResponseException(N.message,N.status);case"UnknownErrorException":return new t.UnknownErrorException(N.message,N.details);default:return new t.UnknownErrorException(N.message,N.toString())}}class e{constructor(D,L,k){this.sourceName=D,this.targetName=L,this.comObj=k,this.callbackId=1,this.streamId=1,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=x=>{const g=x.data;if(g.targetName!==this.sourceName)return;if(g.stream){this._processStreamMessage(g);return}if(g.callback){const I=g.callbackId,B=this.callbackCapabilities[I];if(!B)throw new Error(`Cannot resolve callback ${I}`);if(delete this.callbackCapabilities[I],g.callback===i.DATA)B.resolve(g.data);else if(g.callback===i.ERROR)B.reject(P(g.reason));else throw new Error("Unexpected callback case");return}const n=this.actionHandler[g.action];if(!n)throw new Error(`Unknown action from worker: ${g.action}`);if(g.callbackId){const I=this.sourceName,B=g.sourceName;new Promise(function(h){h(n(g.data))}).then(function(h){k.postMessage({sourceName:I,targetName:B,callback:i.DATA,callbackId:g.callbackId,data:h})},function(h){k.postMessage({sourceName:I,targetName:B,callback:i.ERROR,callbackId:g.callbackId,reason:P(h)})});return}if(g.streamId){this._createStreamSink(g);return}n(g.data)},k.addEventListener("message",this._onComObjOnMessage)}on(D,L){const k=this.actionHandler;if(k[D])throw new Error(`There is already an actionName called "${D}"`);k[D]=L}send(D,L,k){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:D,data:L},k)}sendWithPromise(D,L,k){const x=this.callbackId++,g=(0,t.createPromiseCapability)();this.callbackCapabilities[x]=g;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:D,callbackId:x,data:L},k)}catch(n){g.reject(n)}return g.promise}sendWithStream(D,L,k,x){const g=this.streamId++,n=this.sourceName,I=this.targetName,B=this.comObj;return new ReadableStream({start:h=>{const c=(0,t.createPromiseCapability)();return this.streamControllers[g]={controller:h,startCall:c,pullCall:null,cancelCall:null,isClosed:!1},B.postMessage({sourceName:n,targetName:I,action:D,streamId:g,data:L,desiredSize:h.desiredSize},x),c.promise},pull:h=>{const c=(0,t.createPromiseCapability)();return this.streamControllers[g].pullCall=c,B.postMessage({sourceName:n,targetName:I,stream:O.PULL,streamId:g,desiredSize:h.desiredSize}),c.promise},cancel:h=>{(0,t.assert)(h instanceof Error,"cancel must have a valid reason");const c=(0,t.createPromiseCapability)();return this.streamControllers[g].cancelCall=c,this.streamControllers[g].isClosed=!0,B.postMessage({sourceName:n,targetName:I,stream:O.CANCEL,streamId:g,reason:P(h)}),c.promise}},k)}_createStreamSink(D){const L=D.streamId,k=this.sourceName,x=D.sourceName,g=this.comObj,n=this,I=this.actionHandler[D.action],B={enqueue(h){let c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,C=arguments.length>2?arguments[2]:void 0;if(this.isCancelled)return;const u=this.desiredSize;this.desiredSize-=c,u>0&&this.desiredSize<=0&&(this.sinkCapability=(0,t.createPromiseCapability)(),this.ready=this.sinkCapability.promise),g.postMessage({sourceName:k,targetName:x,stream:O.ENQUEUE,streamId:L,chunk:h},C)},close(){this.isCancelled||(this.isCancelled=!0,g.postMessage({sourceName:k,targetName:x,stream:O.CLOSE,streamId:L}),delete n.streamSinks[L])},error(h){(0,t.assert)(h instanceof Error,"error must have a valid reason"),!this.isCancelled&&(this.isCancelled=!0,g.postMessage({sourceName:k,targetName:x,stream:O.ERROR,streamId:L,reason:P(h)}))},sinkCapability:(0,t.createPromiseCapability)(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:D.desiredSize,ready:null};B.sinkCapability.resolve(),B.ready=B.sinkCapability.promise,this.streamSinks[L]=B,new Promise(function(h){h(I(D.data,B))}).then(function(){g.postMessage({sourceName:k,targetName:x,stream:O.START_COMPLETE,streamId:L,success:!0})},function(h){g.postMessage({sourceName:k,targetName:x,stream:O.START_COMPLETE,streamId:L,reason:P(h)})})}_processStreamMessage(D){const L=D.streamId,k=this.sourceName,x=D.sourceName,g=this.comObj,n=this.streamControllers[L],I=this.streamSinks[L];switch(D.stream){case O.START_COMPLETE:D.success?n.startCall.resolve():n.startCall.reject(P(D.reason));break;case O.PULL_COMPLETE:D.success?n.pullCall.resolve():n.pullCall.reject(P(D.reason));break;case O.PULL:if(!I){g.postMessage({sourceName:k,targetName:x,stream:O.PULL_COMPLETE,streamId:L,success:!0});break}I.desiredSize<=0&&D.desiredSize>0&&I.sinkCapability.resolve(),I.desiredSize=D.desiredSize,new Promise(function(B){B(I.onPull&&I.onPull())}).then(function(){g.postMessage({sourceName:k,targetName:x,stream:O.PULL_COMPLETE,streamId:L,success:!0})},function(B){g.postMessage({sourceName:k,targetName:x,stream:O.PULL_COMPLETE,streamId:L,reason:P(B)})});break;case O.ENQUEUE:if((0,t.assert)(n,"enqueue should have stream controller"),n.isClosed)break;n.controller.enqueue(D.chunk);break;case O.CLOSE:if((0,t.assert)(n,"close should have stream controller"),n.isClosed)break;n.isClosed=!0,n.controller.close(),this._deleteStreamController(n,L);break;case O.ERROR:(0,t.assert)(n,"error should have stream controller"),n.controller.error(P(D.reason)),this._deleteStreamController(n,L);break;case O.CANCEL_COMPLETE:D.success?n.cancelCall.resolve():n.cancelCall.reject(P(D.reason)),this._deleteStreamController(n,L);break;case O.CANCEL:if(!I)break;new Promise(function(B){B(I.onCancel&&I.onCancel(P(D.reason)))}).then(function(){g.postMessage({sourceName:k,targetName:x,stream:O.CANCEL_COMPLETE,streamId:L,success:!0})},function(B){g.postMessage({sourceName:k,targetName:x,stream:O.CANCEL_COMPLETE,streamId:L,reason:P(B)})}),I.sinkCapability.reject(P(D.reason)),I.isCancelled=!0,delete this.streamSinks[L];break;default:throw new Error("Unexpected stream case")}}async _deleteStreamController(D,L){await Promise.allSettled([D.startCall&&D.startCall.promise,D.pullCall&&D.pullCall.promise,D.cancelCall&&D.cancelCall.promise]),delete this.streamControllers[L]}destroy(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}l.MessageHandler=e},(he,l,w)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.PDFWorkerStream=void 0;var t=w(2);class i{constructor(N){this._msgHandler=N,this._contentLength=null,this._fullRequestReader=null,this._rangeRequestReaders=[]}getFullReader(){return(0,t.assert)(!this._fullRequestReader,"PDFWorkerStream.getFullReader can only be called once."),this._fullRequestReader=new O(this._msgHandler),this._fullRequestReader}getRangeReader(N,D){const L=new P(N,D,this._msgHandler);return this._rangeRequestReaders.push(L),L}cancelAllRequests(N){this._fullRequestReader&&this._fullRequestReader.cancel(N);for(const D of this._rangeRequestReaders.slice(0))D.cancel(N)}}l.PDFWorkerStream=i;class O{constructor(N){this._msgHandler=N,this.onProgress=null,this._contentLength=null,this._isRangeSupported=!1,this._isStreamingSupported=!1;const D=this._msgHandler.sendWithStream("GetReader");this._reader=D.getReader(),this._headersReady=this._msgHandler.sendWithPromise("ReaderHeadersReady").then(L=>{this._isStreamingSupported=L.isStreamingSupported,this._isRangeSupported=L.isRangeSupported,this._contentLength=L.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:N,done:D}=await this._reader.read();return D?{value:void 0,done:!0}:{value:N.buffer,done:!1}}cancel(N){this._reader.cancel(N)}}class P{constructor(N,D,L){this._msgHandler=L,this.onProgress=null;const k=this._msgHandler.sendWithStream("GetRangeReader",{begin:N,end:D});this._reader=k.getReader()}get isStreamingSupported(){return!1}async read(){const{value:N,done:D}=await this._reader.read();return D?{value:void 0,done:!0}:{value:N.buffer,done:!1}}cancel(N){this._reader.cancel(N)}}}],At={};function Yt(he){var l=At[he];if(l!==void 0)return l.exports;var w=At[he]={exports:{}};return Gt[he](w,w.exports,Yt),w.exports}Yt.d=(he,l)=>{for(var w in l)Yt.o(l,w)&&!Yt.o(he,w)&&Object.defineProperty(he,w,{enumerable:!0,get:l[w]})},Yt.o=(he,l)=>Object.prototype.hasOwnProperty.call(he,l),Yt.r=he=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(he,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(he,"__esModule",{value:!0})};var mn={};return(()=>{var he=mn;Object.defineProperty(he,"__esModule",{value:!0}),Object.defineProperty(he,"WorkerMessageHandler",{enumerable:!0,get:function(){return l.WorkerMessageHandler}});var l=Yt(1)})(),mn})())})(dr)})();