var t,a;"function"==typeof(t=globalThis.define)&&(a=t,t=null),function(a,r,i,n,s){var o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},l="function"==typeof o[n]&&o[n],c=l.cache||{},h="undefined"!=typeof module&&"function"==typeof module.require&&module.require.bind(module);function u(t,r){if(!c[t]){if(!a[t]){var i="function"==typeof o[n]&&o[n];if(!r&&i)return i(t,!0);if(l)return l(t,!0);if(h&&"string"==typeof t)return h(t);var s=Error("Cannot find module '"+t+"'");throw s.code="MODULE_NOT_FOUND",s}d.resolve=function(r){var i=a[t][1][r];return null!=i?i:r},d.cache={};var f=c[t]=new u.Module(t);a[t][0].call(f.exports,d,f,f.exports,this)}return c[t].exports;function d(t){var a=d.resolve(t);return!1===a?{}:u(a)}}u.isParcelRequire=!0,u.Module=function(t){this.id=t,this.bundle=u,this.exports={}},u.modules=a,u.cache=c,u.parent=l,u.register=function(t,r){a[t]=[function(t,a){a.exports=r},{}]},Object.defineProperty(u,"root",{get:function(){return o[n]}}),o[n]=u;for(var f=0;f<r.length;f++)u(r[f]);if(i){var d=u(i);"object"==typeof exports&&"undefined"!=typeof module?module.exports=d:"function"==typeof t&&t.amd?t(function(){return d}):s&&(this[s]=d)}}({hsvzv:[function(t,a,r){let i;/**
 * @licstart The following is the entire license notice for the
 * JavaScript code in this page
 *
 * Copyright 2024 Mozilla Foundation
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * @licend The above is the entire license notice for the
 * JavaScript code in this page
 */var n=t("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"WorkerMessageHandler",()=>pJ);var s=arguments[3],o=t("819e2b127f8973ba"),l={34:(t,a,r)=>{var i=r(4901);t.exports=function(t){return"object"==typeof t?null!==t:i(t)}},81:(t,a,r)=>{var i=r(9565),n=r(9306),s=r(8551),o=r(6823),l=r(851),c=TypeError;t.exports=function(t,a){var r=arguments.length<2?l(t):a;if(n(r))return s(i(r,t));throw new c(o(t)+" is not iterable")}},116:(t,a,r)=>{var i=r(6518),n=r(9565),s=r(2652),o=r(9306),l=r(8551),c=r(1767),h=r(9539),u=r(4549)("find",TypeError);i({target:"Iterator",proto:!0,real:!0,forced:u},{find:function(t){l(this);try{o(t)}catch(t){h(this,"throw",t)}if(u)return n(u,this,t);var a=c(this),r=0;return s(a,function(a,i){if(t(a,r++))return i(a)},{IS_RECORD:!0,INTERRUPTED:!0}).result}})},283:(t,a,r)=>{var i=r(9504),n=r(9039),s=r(4901),o=r(9297),l=r(3724),c=r(350).CONFIGURABLE,h=r(3706),u=r(1181),f=u.enforce,d=u.get,g=String,p=Object.defineProperty,m=i("".slice),b=i("".replace),y=i([].join),w=l&&!n(function(){return 8!==p(function(){},"length",{value:8}).length}),x=String(String).split("String"),k=t.exports=function(t,a,r){"Symbol("===m(g(a),0,7)&&(a="["+b(g(a),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(a="get "+a),r&&r.setter&&(a="set "+a),(!o(t,"name")||c&&t.name!==a)&&(l?p(t,"name",{value:a,configurable:!0}):t.name=a),w&&r&&o(r,"arity")&&t.length!==r.arity&&p(t,"length",{value:r.arity});try{r&&o(r,"constructor")&&r.constructor?l&&p(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var i=f(t);return o(i,"source")||(i.source=y(x,"string"==typeof a?a:"")),t};Function.prototype.toString=k(function(){return s(this)&&d(this).source||h(this)},"toString")},350:(t,a,r)=>{var i=r(3724),n=r(9297),s=Function.prototype,o=i&&Object.getOwnPropertyDescriptor,l=n(s,"name"),c=l&&(!i||i&&o(s,"name").configurable);t.exports={EXISTS:l,PROPER:l&&"something"===(function(){}).name,CONFIGURABLE:c}},397:(t,a,r)=>{var i=r(7751);t.exports=i("document","documentElement")},421:t=>{t.exports={}},456:(t,a,r)=>{var i=r(6518),n=r(4576),s=r(9504),o=r(4154),l=r(5169),c=s(1.1.toString),h=n.Uint8Array,u=!h||!h.prototype.toHex||!function(){try{return"ffffffffffffffff"===new h([255,255,255,255,255,255,255,255]).toHex()}catch(t){return!1}}();h&&i({target:"Uint8Array",proto:!0,forced:u},{toHex:function(){o(this),l(this.buffer);for(var t="",a=0,r=this.length;a<r;a++){var i=c(this[a],16);t+=1===i.length?"0"+i:i}return t}})},507:(t,a,r)=>{var i=r(9565);t.exports=function(t,a,r){for(var n,s,o=r?t:t.iterator,l=t.next;!(n=i(l,o)).done;)if(void 0!==(s=a(n.value)))return s}},531:(t,a,r)=>{var i=r(6518),n=r(9565),s=r(9306),o=r(8551),l=r(1767),c=r(8646),h=r(9462),u=r(9539),f=r(6395),d=r(684),g=r(4549),p=!f&&!d("flatMap",function(){}),m=!f&&!p&&g("flatMap",TypeError),b=f||p||m,y=h(function(){for(var t,a,r=this.iterator,i=this.mapper;;){if(a=this.inner)try{if(!(t=o(n(a.next,a.iterator))).done)return t.value;this.inner=null}catch(t){u(r,"throw",t)}if(t=o(n(this.next,r)),this.done=!!t.done)return;try{this.inner=c(i(t.value,this.counter++),!1)}catch(t){u(r,"throw",t)}}});i({target:"Iterator",proto:!0,real:!0,forced:b},{flatMap:function(t){o(this);try{s(t)}catch(t){u(this,"throw",t)}return m?n(m,this,t):new y(l(this),{mapper:t,inner:null})}})},616:(t,a,r)=>{var i=r(9039);t.exports=!i(function(){var t=(function(){}).bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})},655:(t,a,r)=>{var i=r(6955),n=String;t.exports=function(t){if("Symbol"===i(t))throw TypeError("Cannot convert a Symbol value to a string");return n(t)}},679:(t,a,r)=>{var i=r(1625),n=TypeError;t.exports=function(t,a){if(i(a,t))return t;throw new n("Incorrect invocation")}},684:t=>{t.exports=function(t,a){var r="function"==typeof Iterator&&Iterator.prototype[t];if(r)try{r.call({next:null},a).next()}catch(t){return!0}}},741:t=>{var a=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(t){var i=+t;return(i>0?r:a)(i)}},757:(t,a,r)=>{var i=r(7751),n=r(4901),s=r(1625),o=r(7040),l=Object;t.exports=o?function(t){return"symbol"==typeof t}:function(t){var a=i("Symbol");return n(a)&&s(a.prototype,l(t))}},851:(t,a,r)=>{var i=r(6955),n=r(5966),s=r(4117),o=r(6269),l=r(8227)("iterator");t.exports=function(t){if(!s(t))return n(t,l)||n(t,"@@iterator")||o[i(t)]}},944:t=>{var a=TypeError;t.exports=function(t){var r=t&&t.alphabet;if(void 0===r||"base64"===r||"base64url"===r)return r||"base64";throw new a("Incorrect `alphabet` option")}},1072:(t,a,r)=>{var i=r(1828),n=r(8727);t.exports=Object.keys||function(t){return i(t,n)}},1103:t=>{t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},1108:(t,a,r)=>{var i=r(6955);t.exports=function(t){var a=i(t);return"BigInt64Array"===a||"BigUint64Array"===a}},1148:(t,a,r)=>{var i=r(6518),n=r(9565),s=r(2652),o=r(9306),l=r(8551),c=r(1767),h=r(9539),u=r(4549)("every",TypeError);i({target:"Iterator",proto:!0,real:!0,forced:u},{every:function(t){l(this);try{o(t)}catch(t){h(this,"throw",t)}if(u)return n(u,this,t);var a=c(this),r=0;return!s(a,function(a,i){if(!t(a,r++))return i()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},1181:(t,a,r)=>{var i,n,s,o=r(8622),l=r(4576),c=r(34),h=r(6699),u=r(9297),f=r(7629),d=r(6119),g=r(421),p="Object already initialized",m=l.TypeError,b=l.WeakMap;if(o||f.state){var y=f.state||(f.state=new b);y.get=y.get,y.has=y.has,y.set=y.set,i=function(t,a){if(y.has(t))throw new m(p);return a.facade=t,y.set(t,a),a},n=function(t){return y.get(t)||{}},s=function(t){return y.has(t)}}else{var w=d("state");g[w]=!0,i=function(t,a){if(u(t,w))throw new m(p);return a.facade=t,h(t,w,a),a},n=function(t){return u(t,w)?t[w]:{}},s=function(t){return u(t,w)}}t.exports={set:i,get:n,has:s,enforce:function(t){return s(t)?n(t):i(t,{})},getterFor:function(t){return function(a){var r;if(!c(a)||(r=n(a)).type!==t)throw new m("Incompatible receiver, "+t+" required");return r}}}},1291:(t,a,r)=>{var i=r(741);t.exports=function(t){var a=+t;return a!=a||0===a?0:i(a)}},1385:(t,a,r)=>{var i=r(9539);t.exports=function(t,a,r){for(var n=t.length-1;n>=0;n--)if(void 0!==t[n])try{r=i(t[n].iterator,a,r)}catch(t){a="throw",r=t}if("throw"===a)throw r;return r}},1548:(t,a,r)=>{var i=r(4576),n=r(9039),s=r(9519),o=r(4215),l=i.structuredClone;t.exports=!!l&&!n(function(){if("DENO"===o&&s>92||"NODE"===o&&s>94||"BROWSER"===o&&s>97)return!1;var t=new ArrayBuffer(8),a=l(t,{transfer:[t]});return 0!==t.byteLength||8!==a.byteLength})},1549:(t,a,r)=>{r(6632)},1625:(t,a,r)=>{var i=r(9504);t.exports=i({}.isPrototypeOf)},1689:(t,a,r)=>{var i=r(6518),n=r(4576),s=r(8745),o=r(7680),l=r(6043),c=r(9306),h=r(1103),u=n.Promise,f=!1;i({target:"Promise",stat:!0,forced:!u||!u.try||h(function(){u.try(function(t){f=8===t},8)}).error||!f},{try:function(t){var a=arguments.length>1?o(arguments,1):[],r=l.f(this),i=h(function(){return s(c(t),void 0,a)});return(i.error?r.reject:r.resolve)(i.value),r.promise}})},1698:(t,a,r)=>{var i=r(6518),n=r(4204),s=r(9835);i({target:"Set",proto:!0,real:!0,forced:!r(4916)("union")||!s("union")},{union:n})},1701:(t,a,r)=>{var i=r(6518),n=r(9565),s=r(9306),o=r(8551),l=r(1767),c=r(9462),h=r(6319),u=r(9539),f=r(684),d=r(4549),g=r(6395),p=!g&&!f("map",function(){}),m=!g&&!p&&d("map",TypeError),b=g||p||m,y=c(function(){var t=this.iterator,a=o(n(this.next,t));if(!(this.done=!!a.done))return h(t,this.mapper,[a.value,this.counter++],!0)});i({target:"Iterator",proto:!0,real:!0,forced:b},{map:function(t){o(this);try{s(t)}catch(t){u(this,"throw",t)}return m?n(m,this,t):new y(l(this),{mapper:t})}})},1767:t=>{t.exports=function(t){return{iterator:t,next:t.next,done:!1}}},1806:(t,a,r)=>{var i=r(6518),n=r(8551),s=r(2652),o=r(1767),l=[].push;i({target:"Iterator",proto:!0,real:!0},{toArray:function(){var t=[];return s(o(n(this)),l,{that:t,IS_RECORD:!0}),t}})},1828:(t,a,r)=>{var i=r(9504),n=r(9297),s=r(5397),o=r(9617).indexOf,l=r(421),c=i([].push);t.exports=function(t,a){var r,i=s(t),h=0,u=[];for(r in i)!n(l,r)&&n(i,r)&&c(u,r);for(;a.length>h;)n(i,r=a[h++])&&(~o(u,r)||c(u,r));return u}},2106:(t,a,r)=>{var i=r(283),n=r(4913);t.exports=function(t,a,r){return r.get&&i(r.get,a,{getter:!0}),r.set&&i(r.set,a,{setter:!0}),n.f(t,a,r)}},2140:(t,a,r)=>{var i={};i[r(8227)("toStringTag")]="z",t.exports="[object z]"===String(i)},2195:(t,a,r)=>{var i=r(9504),n=i({}.toString),s=i("".slice);t.exports=function(t){return s(n(t),8,-1)}},2211:(t,a,r)=>{var i=r(9039);t.exports=!i(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})},2303:(t,a,r)=>{var i=r(4576),n=r(9504),s=i.Uint8Array,o=i.SyntaxError,l=i.parseInt,c=Math.min,h=/[^\da-f]/i,u=n(h.exec),f=n("".slice);t.exports=function(t,a){var r=t.length;if(r%2!=0)throw new o("String should be an even number of characters");for(var i=a?c(a.length,r/2):r/2,n=a||new s(i),d=0,g=0;g<i;){var p=f(t,d,d+=2);if(u(h,p))throw new o("String should only contain hex characters");n[g++]=l(p,16)}return{bytes:n,read:d}}},2360:(t,a,r)=>{var i,n=r(8551),s=r(6801),o=r(8727),l=r(421),c=r(397),h=r(4055),u=r(6119),f="prototype",d="script",g=u("IE_PROTO"),p=function(){},m=function(t){return"<"+d+">"+t+"</"+d+">"},b=function(t){t.write(m("")),t.close();var a=t.parentWindow.Object;return t=null,a},y=function(){try{i=new ActiveXObject("htmlfile")}catch(t){}y="undefined"!=typeof document?document.domain&&i?b(i):((a=h("iframe")).style.display="none",c.appendChild(a),a.src=String("java"+d+":"),(t=a.contentWindow.document).open(),t.write(m("document.F=Object")),t.close(),t.F):b(i);for(var t,a,r=o.length;r--;)delete y[f][o[r]];return y()};l[g]=!0,t.exports=Object.create||function(t,a){var r;return null!==t?(p[f]=n(t),r=new p,p[f]=null,r[g]=t):r=y(),void 0===a?r:s.f(r,a)}},2475:(t,a,r)=>{var i=r(6518),n=r(8527);i({target:"Set",proto:!0,real:!0,forced:!r(4916)("isSupersetOf",function(t){return!t})},{isSupersetOf:n})},2489:(t,a,r)=>{var i=r(6518),n=r(9565),s=r(9306),o=r(8551),l=r(1767),c=r(9462),h=r(6319),u=r(6395),f=r(9539),d=r(684),g=r(4549),p=!u&&!d("filter",function(){}),m=!u&&!p&&g("filter",TypeError),b=u||p||m,y=c(function(){for(var t,a,r=this.iterator,i=this.predicate,s=this.next;;){if(t=o(n(s,r)),this.done=!!t.done)return;if(h(r,i,[a=t.value,this.counter++],!0))return a}});i({target:"Iterator",proto:!0,real:!0,forced:b},{filter:function(t){o(this);try{s(t)}catch(t){f(this,"throw",t)}return m?n(m,this,t):new y(l(this),{predicate:t})}})},2529:t=>{t.exports=function(t,a){return{value:t,done:a}}},2603:(t,a,r)=>{var i=r(655);t.exports=function(t,a){return void 0===t?arguments.length<2?"":a:i(t)}},2652:(t,a,r)=>{var i=r(6080),n=r(9565),s=r(8551),o=r(6823),l=r(4209),c=r(6198),h=r(1625),u=r(81),f=r(851),d=r(9539),g=TypeError,p=function(t,a){this.stopped=t,this.result=a},m=p.prototype;t.exports=function(t,a,r){var b,y,w,x,k,v,A,C=r&&r.that,S=!(!r||!r.AS_ENTRIES),I=!(!r||!r.IS_RECORD),T=!(!r||!r.IS_ITERATOR),B=!(!r||!r.INTERRUPTED),F=i(a,C),M=function(t){return b&&d(b,"normal"),new p(!0,t)},R=function(t){return S?(s(t),B?F(t[0],t[1],M):F(t[0],t[1])):B?F(t,M):F(t)};if(I)b=t.iterator;else if(T)b=t;else{if(!(y=f(t)))throw new g(o(t)+" is not iterable");if(l(y)){for(w=0,x=c(t);x>w;w++)if((k=R(t[w]))&&h(m,k))return k;return new p(!1)}b=u(t,y)}for(v=I?t.next:b.next;!(A=n(v,b)).done;){try{k=R(A.value)}catch(t){d(b,"throw",t)}if("object"==typeof k&&k&&h(m,k))return k}return new p(!1)}},2777:(t,a,r)=>{var i=r(9565),n=r(34),s=r(757),o=r(5966),l=r(4270),c=r(8227),h=TypeError,u=c("toPrimitive");t.exports=function(t,a){if(!n(t)||s(t))return t;var r,c=o(t,u);if(c){if(void 0===a&&(a="default"),!n(r=i(c,t,a))||s(r))return r;throw new h("Can't convert object to primitive value")}return void 0===a&&(a="number"),l(t,a)}},2787:(t,a,r)=>{var i=r(9297),n=r(4901),s=r(8981),o=r(6119),l=r(2211),c=o("IE_PROTO"),h=Object,u=h.prototype;t.exports=l?h.getPrototypeOf:function(t){var a=s(t);if(i(a,c))return a[c];var r=a.constructor;return n(r)&&a instanceof r?r.prototype:a instanceof h?u:null}},2796:(t,a,r)=>{var i=r(9039),n=r(4901),s=/#|\.prototype\./,o=function(t,a){var r=c[l(t)];return r===u||r!==h&&(n(a)?i(a):!!a)},l=o.normalize=function(t){return String(t).replace(s,".").toLowerCase()},c=o.data={},h=o.NATIVE="N",u=o.POLYFILL="P";t.exports=o},2804:t=>{var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=a+"+/",i=a+"-_",n=function(t){for(var a={},r=0;r<64;r++)a[t.charAt(r)]=r;return a};t.exports={i2c:r,c2i:n(r),i2cUrl:i,c2iUrl:n(i)}},2812:t=>{var a=TypeError;t.exports=function(t,r){if(t<r)throw new a("Not enough arguments");return t}},2839:(t,a,r)=>{var i=r(4576).navigator,n=i&&i.userAgent;t.exports=n?String(n):""},2967:(t,a,r)=>{var i=r(6706),n=r(34),s=r(7750),o=r(3506);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,a=!1,r={};try{(t=i(Object.prototype,"__proto__","set"))(r,[]),a=r instanceof Array}catch(t){}return function(r,i){return s(r),o(i),n(r)&&(a?t(r,i):r.__proto__=i),r}}():void 0)},3068:(t,a,r)=>{var i=r(6518),n=r(9504),s=r(2652),o=RangeError,l=TypeError,c=1/0,h=Math.abs,u=Math.pow,f=n([].push),d=u(2,1023),g=u(2,53)-1,p=Number.MAX_VALUE,m=u(2,971),b={},y={},w={},x={},k={},v=function(t,a){var r=t+a;return{hi:r,lo:a-(r-t)}};i({target:"Math",stat:!0},{sumPrecise:function(t){var a=[],r=0,i=x;switch(s(t,function(t){if(++r>=g)throw new o("Maximum allowed index exceeded");if("number"!=typeof t)throw new l("Value is not a number");i===b||(t!=t?i=b:t===c?i=i===y?b:w:t===-1/0?i=i===w?b:y:0===t&&1/t!==c||i!==x&&i!==k||(i=k,f(a,t)))}),i){case b:return NaN;case y:return-1/0;case w:return c;case x:return -0}for(var n,u,A,C,S,I,T=[],B=0,F=0;F<a.length;F++){n=a[F];for(var M=0,R=0;R<T.length;R++){if(u=T[R],h(n)<h(u)&&(I=n,n=u,u=I),C=(A=v(n,u)).hi,S=A.lo,h(C)===c){var N=C===c?1:-1;B+=N,h(n=n-N*d-N*d)<h(u)&&(I=n,n=u,u=I),C=(A=v(n,u)).hi,S=A.lo}0!==S&&(T[M++]=S),n=C}T.length=M,0!==n&&f(T,n)}var O=T.length-1;if(C=0,S=0,0!==B){var D=O>=0?T[O]:0;if(O--,h(B)>1||B>0&&D>0||B<0&&D<0)return B>0?c:-1/0;if(C=(A=v(B*d,D/2)).hi,S=2*A.lo,h(2*C)===c)return C>0?C===d&&S===-m/2&&O>=0&&T[O]<0?p:c:C===-d&&S===m/2&&O>=0&&T[O]>0?-p:-1/0;0!==S&&(T[++O]=S,S=0),C*=2}for(;O>=0&&(C=(A=v(C,T[O--])).hi,0===(S=A.lo)););return O>=0&&(S<0&&T[O]<0||S>0&&T[O]>0)&&(u=2*S)==(n=C+u)-C&&(C=n),C}})},3167:(t,a,r)=>{var i=r(4901),n=r(34),s=r(2967);t.exports=function(t,a,r){var o,l;return s&&i(o=a.constructor)&&o!==r&&n(l=o.prototype)&&l!==r.prototype&&s(t,l),t}},3238:(t,a,r)=>{var i=r(4576),n=r(7811),s=r(7394),o=i.DataView;t.exports=function(t){if(!n||0!==s(t))return!1;try{return new o(t),!1}catch(t){return!0}}},3392:(t,a,r)=>{var i=r(9504),n=0,s=Math.random(),o=i(1.1.toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+o(++n+s,36)}},3440:(t,a,r)=>{var i=r(7080),n=r(4402),s=r(9286),o=r(5170),l=r(3789),c=r(8469),h=r(507),u=n.has,f=n.remove;t.exports=function(t){var a=i(this),r=l(t),n=s(a);return o(a)<=r.size?c(a,function(t){r.includes(t)&&f(n,t)}):h(r.getIterator(),function(t){u(n,t)&&f(n,t)}),n}},3463:t=>{var a=TypeError;t.exports=function(t){if("string"==typeof t)return t;throw new a("Argument is not a string")}},3506:(t,a,r)=>{var i=r(3925),n=String,s=TypeError;t.exports=function(t){if(i(t))return t;throw new s("Can't set "+n(t)+" as a prototype")}},3579:(t,a,r)=>{var i=r(6518),n=r(9565),s=r(2652),o=r(9306),l=r(8551),c=r(1767),h=r(9539),u=r(4549)("some",TypeError);i({target:"Iterator",proto:!0,real:!0,forced:u},{some:function(t){l(this);try{o(t)}catch(t){h(this,"throw",t)}if(u)return n(u,this,t);var a=c(this),r=0;return s(a,function(a,i){if(t(a,r++))return i()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},3611:(t,a,r)=>{var i=r(6518),n=r(4576),s=r(2106),o=r(3724),l=TypeError,c=Object.defineProperty,h=n.self!==n;try{if(o){var u=Object.getOwnPropertyDescriptor(n,"self");!h&&u&&u.get&&u.enumerable||s(n,"self",{get:function(){return n},set:function(t){if(this!==n)throw new l("Illegal invocation");c(n,"self",{value:t,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}else i({global:!0,simple:!0,forced:h},{self:n})}catch(t){}},3650:(t,a,r)=>{var i=r(7080),n=r(4402),s=r(9286),o=r(3789),l=r(507),c=n.add,h=n.has,u=n.remove;t.exports=function(t){var a=i(this),r=o(t).getIterator(),n=s(a);return l(r,function(t){h(a,t)?u(n,t):c(n,t)}),n}},3706:(t,a,r)=>{var i=r(9504),n=r(4901),s=r(7629),o=i(Function.toString);n(s.inspectSource)||(s.inspectSource=function(t){return o(t)}),t.exports=s.inspectSource},3717:(t,a)=>{a.f=Object.getOwnPropertySymbols},3724:(t,a,r)=>{var i=r(9039);t.exports=!i(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},3789:(t,a,r)=>{var i=r(9306),n=r(8551),s=r(9565),o=r(1291),l=r(1767),c="Invalid size",h=RangeError,u=TypeError,f=Math.max,d=function(t,a){this.set=t,this.size=f(a,0),this.has=i(t.has),this.keys=i(t.keys)};d.prototype={getIterator:function(){return l(n(s(this.keys,this.set)))},includes:function(t){return s(this.has,this.set,t)}},t.exports=function(t){n(t);var a=+t.size;if(a!=a)throw new u(c);var r=o(a);if(r<0)throw new h(c);return new d(t,r)}},3838:(t,a,r)=>{var i=r(7080),n=r(5170),s=r(8469),o=r(3789);t.exports=function(t){var a=i(this),r=o(t);return!(n(a)>r.size)&&!1!==s(a,function(t){if(!r.includes(t))return!1},!0)}},3853:(t,a,r)=>{var i=r(6518),n=r(4449);i({target:"Set",proto:!0,real:!0,forced:!r(4916)("isDisjointFrom",function(t){return!t})},{isDisjointFrom:n})},3925:(t,a,r)=>{var i=r(34);t.exports=function(t){return i(t)||null===t}},3972:(t,a,r)=>{var i=r(34),n=String,s=TypeError;t.exports=function(t){if(void 0===t||i(t))return t;throw new s(n(t)+" is not an object or undefined")}},4055:(t,a,r)=>{var i=r(4576),n=r(34),s=i.document,o=n(s)&&n(s.createElement);t.exports=function(t){return o?s.createElement(t):{}}},4114:(t,a,r)=>{var i=r(6518),n=r(8981),s=r(6198),o=r(4527),l=r(6837);i({target:"Array",proto:!0,arity:1,forced:r(9039)(function(){return 4294967297!==[].push.call({length:4294967296},1)})||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}()},{push:function(t){var a=n(this),r=s(a),i=arguments.length;l(r+i);for(var c=0;c<i;c++)a[r]=arguments[c],r++;return o(a,r),r}})},4117:t=>{t.exports=function(t){return null==t}},4154:(t,a,r)=>{var i=r(6955),n=TypeError;t.exports=function(t){if("Uint8Array"===i(t))return t;throw new n("Argument is not an Uint8Array")}},4204:(t,a,r)=>{var i=r(7080),n=r(4402).add,s=r(9286),o=r(3789),l=r(507);t.exports=function(t){var a=i(this),r=o(t).getIterator(),c=s(a);return l(r,function(t){n(c,t)}),c}},4209:(t,a,r)=>{var i=r(8227),n=r(6269),s=i("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(n.Array===t||o[s]===t)}},4215:(t,a,r)=>{var i=r(4576),n=r(2839),s=r(2195),o=function(t){return n.slice(0,t.length)===t};t.exports=o("Bun/")?"BUN":o("Cloudflare-Workers")?"CLOUDFLARE":o("Deno/")?"DENO":o("Node.js/")?"NODE":i.Bun&&"string"==typeof Bun.version?"BUN":i.Deno&&"object"==typeof Deno.version?"DENO":"process"===s(i.process)?"NODE":i.window&&i.document?"BROWSER":"REST"},4226:(t,a,r)=>{var i=r(6518),n=r(4576),s=r(3463),o=r(4154),l=r(5169),c=r(2303);n.Uint8Array&&i({target:"Uint8Array",proto:!0},{setFromHex:function(t){o(this),s(t),l(this.buffer);var a=c(t,this).read;return{read:a,written:a/2}}})},4235:(t,a,r)=>{r(3068)},4270:(t,a,r)=>{var i=r(9565),n=r(4901),s=r(34),o=TypeError;t.exports=function(t,a){var r,l;if("string"===a&&n(r=t.toString)&&!s(l=i(r,t))||n(r=t.valueOf)&&!s(l=i(r,t))||"string"!==a&&n(r=t.toString)&&!s(l=i(r,t)))return l;throw new o("Can't convert object to primitive value")}},4376:(t,a,r)=>{var i=r(2195);t.exports=Array.isArray||function(t){return"Array"===i(t)}},4402:(t,a,r)=>{var i=r(9504),n=Set.prototype;t.exports={Set,add:i(n.add),has:i(n.has),remove:i(n.delete),proto:n}},4449:(t,a,r)=>{var i=r(7080),n=r(4402).has,s=r(5170),o=r(3789),l=r(8469),c=r(507),h=r(9539);t.exports=function(t){var a=i(this),r=o(t);if(s(a)<=r.size)return!1!==l(a,function(t){if(r.includes(t))return!1},!0);var u=r.getIterator();return!1!==c(u,function(t){if(n(a,t))return h(u,"normal",!1)})}},4483:(t,a,r)=>{var i,n,s,o,l=r(4576),c=r(9429),h=r(1548),u=l.structuredClone,f=l.ArrayBuffer,d=l.MessageChannel,g=!1;if(h)g=function(t){u(t,{transfer:[t]})};else if(f)try{d||(i=c("worker_threads"))&&(d=i.MessageChannel),d&&(n=new d,s=new f(2),o=function(t){n.port1.postMessage(null,[t])},2===s.byteLength&&(o(s),0===s.byteLength&&(g=o)))}catch(t){}t.exports=g},4495:(t,a,r)=>{var i=r(9519),n=r(9039),s=r(4576).String;t.exports=!!Object.getOwnPropertySymbols&&!n(function(){var t=Symbol("symbol detection");return!s(t)||!(Object(t) instanceof Symbol)||!Symbol.sham&&i&&i<41})},4527:(t,a,r)=>{var i=r(3724),n=r(4376),s=TypeError,o=Object.getOwnPropertyDescriptor,l=i&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=l?function(t,a){if(n(t)&&!o(t,"length").writable)throw new s("Cannot set read only .length");return t.length=a}:function(t,a){return t.length=a}},4549:(t,a,r)=>{var i=r(4576);t.exports=function(t,a){var r=i.Iterator,n=r&&r.prototype,s=n&&n[t],o=!1;if(s)try{s.call({next:function(){return{done:!0}},return:function(){o=!0}},-1)}catch(t){t instanceof a||(o=!1)}if(!o)return s}},4576:function(t){var a=function(t){return t&&t.Math===Math&&t};t.exports=a("object"==typeof globalThis&&globalThis)||a("object"==typeof window&&window)||a("object"==typeof self&&self)||a("object"==typeof s&&s)||a("object"==typeof this&&this)||function(){return this}()||Function("return this")()},4603:(t,a,r)=>{var i=r(6840),n=r(9504),s=r(655),o=r(2812),l=URLSearchParams,c=l.prototype,h=n(c.append),u=n(c.delete),f=n(c.forEach),d=n([].push),g=new l("a=1&a=2&b=3");g.delete("a",1),g.delete("b",void 0),g+""!="a=2"&&i(c,"delete",function(t){var a=arguments.length,r=a<2?void 0:arguments[1];if(a&&void 0===r)return u(this,t);var i=[];f(this,function(t,a){d(i,{key:a,value:t})}),o(a,1);for(var n,l=s(t),c=s(r),g=0,p=0,m=!1,b=i.length;g<b;)n=i[g++],m||n.key===l?(m=!0,u(this,n.key)):p++;for(;p<b;)(n=i[p++]).key===l&&n.value===c||h(this,n.key,n.value)},{enumerable:!0,unsafe:!0})},4628:(t,a,r)=>{var i=r(6518),n=r(6043);i({target:"Promise",stat:!0},{withResolvers:function(){var t=n.f(this);return{promise:t.promise,resolve:t.resolve,reject:t.reject}}})},4644:(t,a,r)=>{var i,n,s,o=r(7811),l=r(3724),c=r(4576),h=r(4901),u=r(34),f=r(9297),d=r(6955),g=r(6823),p=r(6699),m=r(6840),b=r(2106),y=r(1625),w=r(2787),x=r(2967),k=r(8227),v=r(3392),A=r(1181),C=A.enforce,S=A.get,I=c.Int8Array,T=I&&I.prototype,B=c.Uint8ClampedArray,F=B&&B.prototype,M=I&&w(I),R=T&&w(T),N=Object.prototype,O=c.TypeError,D=k("toStringTag"),E=v("TYPED_ARRAY_TAG"),P="TypedArrayConstructor",_=o&&!!x&&"Opera"!==d(c.opera),L=!1,U={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},j={BigInt64Array:8,BigUint64Array:8},q=function(t){var a=w(t);if(u(a)){var r=S(a);return r&&f(r,P)?r[P]:q(a)}},H=function(t){if(!u(t))return!1;var a=d(t);return f(U,a)||f(j,a)};for(i in U)(s=(n=c[i])&&n.prototype)?C(s)[P]=n:_=!1;for(i in j)(s=(n=c[i])&&n.prototype)&&(C(s)[P]=n);if((!_||!h(M)||M===Function.prototype)&&(M=function(){throw new O("Incorrect invocation")},_))for(i in U)c[i]&&x(c[i],M);if((!_||!R||R===N)&&(R=M.prototype,_))for(i in U)c[i]&&x(c[i].prototype,R);if(_&&w(F)!==R&&x(F,R),l&&!f(R,D))for(i in L=!0,b(R,D,{configurable:!0,get:function(){return u(this)?this[E]:void 0}}),U)c[i]&&p(c[i],E,i);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:_,TYPED_ARRAY_TAG:L&&E,aTypedArray:function(t){if(H(t))return t;throw new O("Target is not a typed array")},aTypedArrayConstructor:function(t){if(h(t)&&(!x||y(M,t)))return t;throw new O(g(t)+" is not a typed array constructor")},exportTypedArrayMethod:function(t,a,r,i){if(l){if(r)for(var n in U){var s=c[n];if(s&&f(s.prototype,t))try{delete s.prototype[t]}catch(r){try{s.prototype[t]=a}catch(t){}}}R[t]&&!r||m(R,t,r?a:_&&T[t]||a,i)}},exportTypedArrayStaticMethod:function(t,a,r){var i,n;if(l){if(x){if(r){for(i in U)if((n=c[i])&&f(n,t))try{delete n[t]}catch(t){}}if(M[t]&&!r)return;try{return m(M,t,r?a:_&&M[t]||a)}catch(t){}}for(i in U)(n=c[i])&&(!n[t]||r)&&m(n,t,a)}},getTypedArrayConstructor:q,isView:function(t){if(!u(t))return!1;var a=d(t);return"DataView"===a||f(U,a)||f(j,a)},isTypedArray:H,TypedArray:M,TypedArrayPrototype:R}},4659:(t,a,r)=>{var i=r(3724),n=r(4913),s=r(6980);t.exports=function(t,a,r){i?n.f(t,a,s(0,r)):t[a]=r}},4901:t=>{var a="object"==typeof document&&document.all;t.exports=void 0===a&&void 0!==a?function(t){return"function"==typeof t||t===a}:function(t){return"function"==typeof t}},4913:(t,a,r)=>{var i=r(3724),n=r(5917),s=r(8686),o=r(8551),l=r(6969),c=TypeError,h=Object.defineProperty,u=Object.getOwnPropertyDescriptor,f="enumerable",d="configurable",g="writable";a.f=i?s?function(t,a,r){if(o(t),a=l(a),o(r),"function"==typeof t&&"prototype"===a&&"value"in r&&g in r&&!r[g]){var i=u(t,a);i&&i[g]&&(t[a]=r.value,r={configurable:d in r?r[d]:i[d],enumerable:f in r?r[f]:i[f],writable:!1})}return h(t,a,r)}:h:function(t,a,r){if(o(t),a=l(a),o(r),n)try{return h(t,a,r)}catch(t){}if("get"in r||"set"in r)throw new c("Accessors not supported");return"value"in r&&(t[a]=r.value),t}},4916:(t,a,r)=>{var i=r(7751),n=function(t){return{size:t,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},s=function(t){return{size:t,has:function(){return!0},keys:function(){throw Error("e")}}};t.exports=function(t,a){var r=i("Set");try{(new r)[t](n(0));try{return(new r)[t](n(-1)),!1}catch(i){if(!a)return!0;try{return(new r)[t](s(-1/0)),!1}catch(i){var o=new r;return o.add(1),o.add(2),a(o[t](s(1/0)))}}}catch(t){return!1}}},4979:(t,a,r)=>{var i=r(6518),n=r(4576),s=r(7751),o=r(6980),l=r(4913).f,c=r(9297),h=r(679),u=r(3167),f=r(2603),d=r(5002),g=r(8574),p=r(3724),m=r(6395),b="DOMException",y=s("Error"),w=s(b),x=function(){h(this,k);var t=arguments.length,a=f(t<1?void 0:arguments[0]),r=f(t<2?void 0:arguments[1],"Error"),i=new w(a,r),n=new y(a);return n.name=b,l(i,"stack",o(1,g(n.stack,1))),u(i,this,x),i},k=x.prototype=w.prototype,v="stack"in new y(b),A="stack"in new w(1,2),C=w&&p&&Object.getOwnPropertyDescriptor(n,b),S=!(!C||C.writable&&C.configurable),I=v&&!S&&!A;i({global:!0,constructor:!0,forced:m||I},{DOMException:I?x:w});var T=s(b),B=T.prototype;if(B.constructor!==T){for(var F in m||l(B,"constructor",o(1,T)),d)if(c(d,F)){var M=d[F],R=M.s;c(T,R)||l(T,R,o(6,M.c))}}},5002:t=>{t.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},5024:(t,a,r)=>{var i=r(6518),n=r(3650),s=r(9835);i({target:"Set",proto:!0,real:!0,forced:!r(4916)("symmetricDifference")||!s("symmetricDifference")},{symmetricDifference:n})},5031:(t,a,r)=>{var i=r(7751),n=r(9504),s=r(8480),o=r(3717),l=r(8551),c=n([].concat);t.exports=i("Reflect","ownKeys")||function(t){var a=s.f(l(t)),r=o.f;return r?c(a,r(t)):a}},5169:(t,a,r)=>{var i=r(3238),n=TypeError;t.exports=function(t){if(i(t))throw new n("ArrayBuffer is detached");return t}},5170:(t,a,r)=>{var i=r(6706),n=r(4402);t.exports=i(n.proto,"size","get")||function(t){return t.size}},5213:(t,a,r)=>{var i=r(6518),n=r(4576),s=r(5370),o=r(9143),l=n.Uint8Array,c=!l||!l.fromBase64||!function(){try{l.fromBase64("a");return}catch(t){}try{l.fromBase64("",null)}catch(t){return!0}}();l&&i({target:"Uint8Array",stat:!0,forced:c},{fromBase64:function(t){var a=o(t,arguments.length>1?arguments[1]:void 0,null,9007199254740991);return s(l,a.bytes)}})},5370:(t,a,r)=>{var i=r(6198);t.exports=function(t,a,r){for(var n=0,s=arguments.length>2?r:i(a),o=new t(s);s>n;)o[n]=a[n++];return o}},5397:(t,a,r)=>{var i=r(7055),n=r(7750);t.exports=function(t){return i(n(t))}},5610:(t,a,r)=>{var i=r(1291),n=Math.max,s=Math.min;t.exports=function(t,a){var r=i(t);return r<0?n(r+a,0):s(r,a)}},5623:(t,a,r)=>{r(456)},5636:(t,a,r)=>{var i=r(4576),n=r(9504),s=r(6706),o=r(7696),l=r(5169),c=r(7394),h=r(4483),u=r(1548),f=i.structuredClone,d=i.ArrayBuffer,g=i.DataView,p=Math.min,m=d.prototype,b=g.prototype,y=n(m.slice),w=s(m,"resizable","get"),x=s(m,"maxByteLength","get"),k=n(b.getInt8),v=n(b.setInt8);t.exports=(u||h)&&function(t,a,r){var i,n=c(t),s=void 0===a?n:o(a),m=!w||!w(t);if(l(t),u&&(t=f(t,{transfer:[t]}),n===s&&(r||m)))return t;if(n>=s&&(!r||m))i=y(t,0,s);else{i=new d(s,r&&!m&&x?{maxByteLength:x(t)}:void 0);for(var b=new g(t),A=new g(i),C=p(s,n),S=0;S<C;S++)v(A,S,k(b,S))}return u||h(t),i}},5745:(t,a,r)=>{var i=r(7629);t.exports=function(t,a){return i[t]||(i[t]=a||{})}},5781:(t,a,r)=>{var i=r(6518),n=r(7751),s=r(2812),o=r(655),l=r(7416),c=n("URL");i({target:"URL",stat:!0,forced:!l},{parse:function(t){var a=s(arguments.length,1),r=o(t),i=a<2||void 0===arguments[1]?void 0:o(arguments[1]);try{return new c(r,i)}catch(t){return null}}})},5854:(t,a,r)=>{var i=r(2777),n=TypeError;t.exports=function(t){var a=i(t,"number");if("number"==typeof a)throw new n("Can't convert number to bigint");return BigInt(a)}},5876:(t,a,r)=>{var i=r(6518),n=r(3838);i({target:"Set",proto:!0,real:!0,forced:!r(4916)("isSubsetOf",function(t){return t})},{isSubsetOf:n})},5917:(t,a,r)=>{var i=r(3724),n=r(9039),s=r(4055);t.exports=!i&&!n(function(){return 7!==Object.defineProperty(s("div"),"a",{get:function(){return 7}}).a})},5966:(t,a,r)=>{var i=r(9306),n=r(4117);t.exports=function(t,a){var r=t[a];return n(r)?void 0:i(r)}},6043:(t,a,r)=>{var i=r(9306),n=TypeError,s=function(t){var a,r;this.promise=new t(function(t,i){if(void 0!==a||void 0!==r)throw new n("Bad Promise constructor");a=t,r=i}),this.resolve=i(a),this.reject=i(r)};t.exports.f=function(t){return new s(t)}},6080:(t,a,r)=>{var i=r(7476),n=r(9306),s=r(616),o=i(i.bind);t.exports=function(t,a){return n(t),void 0===a?t:s?o(t,a):function(){return t.apply(a,arguments)}}},6119:(t,a,r)=>{var i=r(5745),n=r(3392),s=i("keys");t.exports=function(t){return s[t]||(s[t]=n(t))}},6193:(t,a,r)=>{var i=r(4215);t.exports="NODE"===i},6198:(t,a,r)=>{var i=r(8014);t.exports=function(t){return i(t.length)}},6269:t=>{t.exports={}},6279:(t,a,r)=>{var i=r(6840);t.exports=function(t,a,r){for(var n in a)i(t,n,a[n],r);return t}},6319:(t,a,r)=>{var i=r(8551),n=r(9539);t.exports=function(t,a,r,s){try{return s?a(i(r)[0],r[1]):a(r)}catch(a){n(t,"throw",a)}}},6395:t=>{t.exports=!1},6518:(t,a,r)=>{var i=r(4576),n=r(7347).f,s=r(6699),o=r(6840),l=r(9433),c=r(7740),h=r(2796);t.exports=function(t,a){var r,u,f,d,g,p=t.target,m=t.global,b=t.stat;if(r=m?i:b?i[p]||l(p,{}):i[p]&&i[p].prototype)for(u in a){if(d=a[u],f=t.dontCallGetSet?(g=n(r,u))&&g.value:r[u],!h(m?u:p+(b?".":"#")+u,t.forced)&&void 0!==f){if(typeof d==typeof f)continue;c(d,f)}(t.sham||f&&f.sham)&&s(d,"sham",!0),o(r,u,d,t)}}},6573:(t,a,r)=>{var i=r(3724),n=r(2106),s=r(3238),o=ArrayBuffer.prototype;!i||"detached"in o||n(o,"detached",{configurable:!0,get:function(){return s(this)}})},6632:(t,a,r)=>{var i=r(6518),n=r(4576),s=r(9143),o=r(4154),l=n.Uint8Array,c=!l||!l.prototype.setFromBase64||!function(){var t=new l([255,255,255,255,255]);try{t.setFromBase64("",null);return}catch(t){}try{t.setFromBase64("a");return}catch(t){}try{t.setFromBase64("MjYyZg===")}catch(a){return 50===t[0]&&54===t[1]&&50===t[2]&&255===t[3]&&255===t[4]}}();l&&i({target:"Uint8Array",proto:!0,forced:c},{setFromBase64:function(t){o(this);var a=s(t,arguments.length>1?arguments[1]:void 0,this,this.length);return{read:a.read,written:a.written}}})},6699:(t,a,r)=>{var i=r(3724),n=r(4913),s=r(6980);t.exports=i?function(t,a,r){return n.f(t,a,s(1,r))}:function(t,a,r){return t[a]=r,t}},6706:(t,a,r)=>{var i=r(9504),n=r(9306);t.exports=function(t,a,r){try{return i(n(Object.getOwnPropertyDescriptor(t,a)[r]))}catch(t){}}},6801:(t,a,r)=>{var i=r(3724),n=r(8686),s=r(4913),o=r(8551),l=r(5397),c=r(1072);a.f=i&&!n?Object.defineProperties:function(t,a){o(t);for(var r,i=l(a),n=c(a),h=n.length,u=0;h>u;)s.f(t,r=n[u++],i[r]);return t}},6823:t=>{var a=String;t.exports=function(t){try{return a(t)}catch(t){return"Object"}}},6837:t=>{var a=TypeError;t.exports=function(t){if(t>9007199254740991)throw a("Maximum allowed index exceeded");return t}},6840:(t,a,r)=>{var i=r(4901),n=r(4913),s=r(283),o=r(9433);t.exports=function(t,a,r,l){l||(l={});var c=l.enumerable,h=void 0!==l.name?l.name:a;if(i(r)&&s(r,h,l),l.global)c?t[a]=r:o(a,r);else{try{l.unsafe?t[a]&&(c=!0):delete t[a]}catch(t){}c?t[a]=r:n.f(t,a,{value:r,enumerable:!1,configurable:!l.nonConfigurable,writable:!l.nonWritable})}return t}},6955:(t,a,r)=>{var i=r(2140),n=r(4901),s=r(2195),o=r(8227)("toStringTag"),l=Object,c="Arguments"===s(function(){return arguments}());t.exports=i?s:function(t){var a,r,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,a){try{return t[a]}catch(t){}}(a=l(t),o))?r:c?s(a):"Object"===(i=s(a))&&n(a.callee)?"Arguments":i}},6969:(t,a,r)=>{var i=r(2777),n=r(757);t.exports=function(t){var a=i(t,"string");return n(a)?a:a+""}},6980:t=>{t.exports=function(t,a){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:a}}},7040:(t,a,r)=>{var i=r(4495);t.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},7055:(t,a,r)=>{var i=r(9504),n=r(9039),s=r(2195),o=Object,l=i("".split);t.exports=n(function(){return!o("z").propertyIsEnumerable(0)})?function(t){return"String"===s(t)?l(t,""):o(t)}:o},7080:(t,a,r)=>{var i=r(4402).has;t.exports=function(t){return i(t),t}},7347:(t,a,r)=>{var i=r(3724),n=r(9565),s=r(8773),o=r(6980),l=r(5397),c=r(6969),h=r(9297),u=r(5917),f=Object.getOwnPropertyDescriptor;a.f=i?f:function(t,a){if(t=l(t),a=c(a),u)try{return f(t,a)}catch(t){}if(h(t,a))return o(!n(s.f,t,a),t[a])}},7394:(t,a,r)=>{var i=r(4576),n=r(6706),s=r(2195),o=i.ArrayBuffer,l=i.TypeError;t.exports=o&&n(o.prototype,"byteLength","get")||function(t){if("ArrayBuffer"!==s(t))throw new l("ArrayBuffer expected");return t.byteLength}},7416:(t,a,r)=>{var i=r(9039),n=r(8227),s=r(3724),o=r(6395),l=n("iterator");t.exports=!i(function(){var t=new URL("b?a=1&b=2&c=3","https://a"),a=t.searchParams,r=new URLSearchParams("a=1&a=2&b=3"),i="";return t.pathname="c%20d",a.forEach(function(t,r){a.delete("b"),i+=r+t}),r.delete("a",2),r.delete("b",void 0),o&&(!t.toJSON||!r.has("a",1)||r.has("a",2)||!r.has("a",void 0)||r.has("b"))||!a.size&&(o||!s)||!a.sort||"https://a/c%20d?a=1&c=3"!==t.href||"3"!==a.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!a[l]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("https://\u0442\u0435\u0441\u0442").host||"#%D0%B1"!==new URL("https://a#\u0431").hash||"a1c3"!==i||"x"!==new URL("https://x",void 0).host})},7476:(t,a,r)=>{var i=r(2195),n=r(9504);t.exports=function(t){if("Function"===i(t))return n(t)}},7566:(t,a,r)=>{var i=r(6840),n=r(9504),s=r(655),o=r(2812),l=URLSearchParams,c=l.prototype,h=n(c.getAll),u=n(c.has),f=new l("a=1");!f.has("a",2)&&f.has("a",void 0)||i(c,"has",function(t){var a=arguments.length,r=a<2?void 0:arguments[1];if(a&&void 0===r)return u(this,t);var i=h(this,t);o(a,1);for(var n=s(r),l=0;l<i.length;)if(i[l++]===n)return!0;return!1},{enumerable:!0,unsafe:!0})},7588:(t,a,r)=>{var i=r(6518),n=r(9565),s=r(2652),o=r(9306),l=r(8551),c=r(1767),h=r(9539),u=r(4549)("forEach",TypeError);i({target:"Iterator",proto:!0,real:!0,forced:u},{forEach:function(t){l(this);try{o(t)}catch(t){h(this,"throw",t)}if(u)return n(u,this,t);var a=c(this),r=0;s(a,function(a){t(a,r++)},{IS_RECORD:!0})}})},7594:(t,a,r)=>{var i=r(4576),n=r(9039),s=i.RegExp,o=!n(function(){var t=!0;try{s(".","d")}catch(a){t=!1}var a={},r="",i=t?"dgimsy":"gimsy",n=function(t,i){Object.defineProperty(a,t,{get:function(){return r+=i,!0}})},o={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var l in t&&(o.hasIndices="d"),o)n(l,o[l]);return Object.getOwnPropertyDescriptor(s.prototype,"flags").get.call(a)!==i||r!==i});t.exports={correct:o}},7629:(t,a,r)=>{var i=r(6395),n=r(4576),s=r(9433),o="__core-js_shared__",l=t.exports=n[o]||s(o,{});(l.versions||(l.versions=[])).push({version:"3.46.0",mode:i?"pure":"global",copyright:"\xa9 2014-2025 Denis Pushkarev (zloirock.ru), 2025 CoreJS Company (core-js.io)",license:"https://github.com/zloirock/core-js/blob/v3.46.0/LICENSE",source:"https://github.com/zloirock/core-js"})},7642:(t,a,r)=>{var i=r(6518),n=r(3440),s=r(9039);i({target:"Set",proto:!0,real:!0,forced:!r(4916)("difference",function(t){return 0===t.size})||s(function(){var t=new Set([1,2,3,4]);return 3!==t.difference({size:1,has:function(){return!0},keys:function(){var a=0;return{next:function(){var r=a++>1;return t.has(1)&&t.clear(),{done:r,value:2}}}}}).size})},{difference:n})},7657:(t,a,r)=>{var i,n,s,o=r(9039),l=r(4901),c=r(34),h=r(2360),u=r(2787),f=r(6840),d=r(8227),g=r(6395),p=d("iterator"),m=!1;[].keys&&("next"in(s=[].keys())?(n=u(u(s)))!==Object.prototype&&(i=n):m=!0),!c(i)||o(function(){var t={};return i[p].call(t)!==t})?i={}:g&&(i=h(i)),l(i[p])||f(i,p,function(){return this}),t.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:m}},7680:(t,a,r)=>{var i=r(9504);t.exports=i([].slice)},7696:(t,a,r)=>{var i=r(1291),n=r(8014),s=RangeError;t.exports=function(t){if(void 0===t)return 0;var a=i(t),r=n(a);if(a!==r)throw new s("Wrong length or index");return r}},7740:(t,a,r)=>{var i=r(9297),n=r(5031),s=r(7347),o=r(4913);t.exports=function(t,a,r){for(var l=n(a),c=o.f,h=s.f,u=0;u<l.length;u++){var f=l[u];i(t,f)||r&&i(r,f)||c(t,f,h(a,f))}}},7750:(t,a,r)=>{var i=r(4117),n=TypeError;t.exports=function(t){if(i(t))throw new n("Can't call method on "+t);return t}},7751:(t,a,r)=>{var i=r(4576),n=r(4901);t.exports=function(t,a){var r;return arguments.length<2?n(r=i[t])?r:void 0:i[t]&&i[t][a]}},7811:t=>{t.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},7936:(t,a,r)=>{var i=r(6518),n=r(5636);n&&i({target:"ArrayBuffer",proto:!0},{transferToFixedLength:function(){return n(this,arguments.length?arguments[0]:void 0,!1)}})},7979:(t,a,r)=>{var i=r(8551);t.exports=function(){var t=i(this),a="";return t.hasIndices&&(a+="d"),t.global&&(a+="g"),t.ignoreCase&&(a+="i"),t.multiline&&(a+="m"),t.dotAll&&(a+="s"),t.unicode&&(a+="u"),t.unicodeSets&&(a+="v"),t.sticky&&(a+="y"),a}},8004:(t,a,r)=>{var i=r(6518),n=r(9039),s=r(8750);i({target:"Set",proto:!0,real:!0,forced:!r(4916)("intersection",function(t){return 2===t.size&&t.has(1)&&t.has(2)})||n(function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))})},{intersection:s})},8014:(t,a,r)=>{var i=r(1291),n=Math.min;t.exports=function(t){var a=i(t);return a>0?n(a,9007199254740991):0}},8100:(t,a,r)=>{var i=r(6518),n=r(5636);n&&i({target:"ArrayBuffer",proto:!0},{transfer:function(){return n(this,arguments.length?arguments[0]:void 0,!0)}})},8111:(t,a,r)=>{var i=r(6518),n=r(4576),s=r(679),o=r(8551),l=r(4901),c=r(2787),h=r(2106),u=r(4659),f=r(9039),d=r(9297),g=r(8227),p=r(7657).IteratorPrototype,m=r(3724),b=r(6395),y="constructor",w="Iterator",x=g("toStringTag"),k=TypeError,v=n[w],A=b||!l(v)||v.prototype!==p||!f(function(){v({})}),C=function(){if(s(this,p),c(this)===p)throw new k("Abstract class Iterator not directly constructable")},S=function(t,a){m?h(p,t,{configurable:!0,get:function(){return a},set:function(a){if(o(this),this===p)throw new k("You can't redefine this property");d(this,t)?this[t]=a:u(this,t,a)}}):p[t]=a};d(p,x)||S(x,w),!A&&d(p,y)&&p[y]!==Object||S(y,C),C.prototype=p,i({global:!0,constructor:!0,forced:A},{Iterator:C})},8227:(t,a,r)=>{var i=r(4576),n=r(5745),s=r(9297),o=r(3392),l=r(4495),c=r(7040),h=i.Symbol,u=n("wks"),f=c?h.for||h:h&&h.withoutSetter||o;t.exports=function(t){return s(u,t)||(u[t]=l&&s(h,t)?h[t]:f("Symbol."+t)),u[t]}},8237:(t,a,r)=>{var i=r(6518),n=r(2652),s=r(9306),o=r(8551),l=r(1767),c=r(9539),h=r(4549),u=r(8745),f=r(9039),d=TypeError,g=f(function(){[].keys().reduce(function(){},void 0)}),p=!g&&h("reduce",d);i({target:"Iterator",proto:!0,real:!0,forced:g||p},{reduce:function(t){o(this);try{s(t)}catch(t){c(this,"throw",t)}var a=arguments.length<2,r=a?void 0:arguments[1];if(p)return u(p,this,a?[t]:[t,r]);var i=l(this),h=0;if(n(i,function(i){a?(a=!1,r=i):r=t(r,i,h),h++},{IS_RECORD:!0}),a)throw new d("Reduce of empty iterator with no initial value");return r}})},8469:(t,a,r)=>{var i=r(9504),n=r(507),s=r(4402),o=s.Set,l=s.proto,c=i(l.forEach),h=i(l.keys),u=h(new o).next;t.exports=function(t,a,r){return r?n({iterator:h(t),next:u},a):c(t,a)}},8480:(t,a,r)=>{var i=r(1828),n=r(8727).concat("length","prototype");a.f=Object.getOwnPropertyNames||function(t){return i(t,n)}},8527:(t,a,r)=>{var i=r(7080),n=r(4402).has,s=r(5170),o=r(3789),l=r(507),c=r(9539);t.exports=function(t){var a=i(this),r=o(t);if(s(a)<r.size)return!1;var h=r.getIterator();return!1!==l(h,function(t){if(!n(a,t))return c(h,"normal",!1)})}},8551:(t,a,r)=>{var i=r(34),n=String,s=TypeError;t.exports=function(t){if(i(t))return t;throw new s(n(t)+" is not an object")}},8574:(t,a,r)=>{var i=r(9504),n=Error,s=i("".replace),o=String(new n("zxcasd").stack),l=/\n\s*at [^:]*:[^\n]*/,c=l.test(o);t.exports=function(t,a){if(c&&"string"==typeof t&&!n.prepareStackTrace)for(;a--;)t=s(t,l,"");return t}},8622:(t,a,r)=>{var i=r(4576),n=r(4901),s=i.WeakMap;t.exports=n(s)&&/native code/.test(String(s))},8646:(t,a,r)=>{var i=r(9565),n=r(8551),s=r(1767),o=r(851);t.exports=function(t,a){a&&"string"==typeof t||n(t);var r=o(t);return s(n(void 0!==r?i(r,t):t))}},8686:(t,a,r)=>{var i=r(3724),n=r(9039);t.exports=i&&n(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},8721:(t,a,r)=>{var i=r(3724),n=r(9504),s=r(2106),o=URLSearchParams.prototype,l=n(o.forEach);!i||"size"in o||s(o,"size",{get:function(){var t=0;return l(this,function(){t++}),t},configurable:!0,enumerable:!0})},8727:t=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},8745:(t,a,r)=>{var i=r(616),n=Function.prototype,s=n.apply,o=n.call;t.exports="object"==typeof Reflect&&Reflect.apply||(i?o.bind(s):function(){return o.apply(s,arguments)})},8750:(t,a,r)=>{var i=r(7080),n=r(4402),s=r(5170),o=r(3789),l=r(8469),c=r(507),h=n.Set,u=n.add,f=n.has;t.exports=function(t){var a=i(this),r=o(t),n=new h;return s(a)>r.size?c(r.getIterator(),function(t){f(a,t)&&u(n,t)}):l(a,function(t){r.includes(t)&&u(n,t)}),n}},8773:(t,a)=>{var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,n=i&&!r.call({1:2},1);a.f=n?function(t){var a=i(this,t);return!!a&&a.enumerable}:r},8981:(t,a,r)=>{var i=r(7750),n=Object;t.exports=function(t){return n(i(t))}},9039:t=>{t.exports=function(t){try{return!!t()}catch(t){return!0}}},9143:(t,a,r)=>{var i=r(4576),n=r(9504),s=r(3972),o=r(3463),l=r(9297),c=r(2804),h=r(944),u=r(5169),f=c.c2i,d=c.c2iUrl,g=i.SyntaxError,p=i.TypeError,m=n("".charAt),b=function(t,a){for(var r=t.length;a<r;a++){var i=m(t,a);if(" "!==i&&"	"!==i&&"\n"!==i&&"\f"!==i&&"\r"!==i)break}return a},y=function(t,a,r){var i=t.length;i<4&&(t+=2===i?"AA":"A");var n=(a[m(t,0)]<<18)+(a[m(t,1)]<<12)+(a[m(t,2)]<<6)+a[m(t,3)],s=[n>>16&255,n>>8&255,255&n];if(2===i){if(r&&0!==s[1])throw new g("Extra bits");return[s[0]]}if(3===i){if(r&&0!==s[2])throw new g("Extra bits");return[s[0],s[1]]}return s},w=function(t,a,r){for(var i=a.length,n=0;n<i;n++)t[r+n]=a[n];return r+i};t.exports=function(t,a,r,i){o(t),s(a);var n="base64"===h(a)?f:d,c=a?a.lastChunkHandling:void 0;if(void 0===c&&(c="loose"),"loose"!==c&&"strict"!==c&&"stop-before-partial"!==c)throw new p("Incorrect `lastChunkHandling` option");r&&u(r.buffer);var x=t.length,k=r||[],v=0,A=0,C="",S=0;if(i)for(;;){if((S=b(t,S))===x){if(C.length>0){if("stop-before-partial"===c)break;if("loose"!==c)throw new g("Missing padding");if(1===C.length)throw new g("Malformed padding: exactly one additional character");v=w(k,y(C,n,!1),v)}A=x;break}var I=m(t,S);if(++S,"="===I){if(C.length<2)throw new g("Padding is too early");if(S=b(t,S),2===C.length){if(S===x){if("stop-before-partial"===c)break;throw new g("Malformed padding: only one =")}"="===m(t,S)&&(S=b(t,++S))}if(S<x)throw new g("Unexpected character after padding");v=w(k,y(C,n,"strict"===c),v),A=x;break}if(!l(n,I))throw new g("Unexpected character");var T=i-v;if(1===T&&2===C.length||2===T&&3===C.length||4===(C+=I).length&&(v=w(k,y(C,n,!1),v),C="",A=S,v===i))break}return{bytes:k,read:A,written:v}}},9286:(t,a,r)=>{var i=r(4402),n=r(8469),s=i.Set,o=i.add;t.exports=function(t){var a=new s;return n(t,function(t){o(a,t)}),a}},9297:(t,a,r)=>{var i=r(9504),n=r(8981),s=i({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,a){return s(n(t),a)}},9306:(t,a,r)=>{var i=r(4901),n=r(6823),s=TypeError;t.exports=function(t){if(i(t))return t;throw new s(n(t)+" is not a function")}},9429:(t,a,r)=>{var i=r(4576),n=r(6193);t.exports=function(t){if(n){try{return i.process.getBuiltinModule(t)}catch(t){}try{return Function('return require("'+t+'")')()}catch(t){}}}},9432:(t,a,r)=>{r(5213)},9433:(t,a,r)=>{var i=r(4576),n=Object.defineProperty;t.exports=function(t,a){try{n(i,t,{value:a,configurable:!0,writable:!0})}catch(r){i[t]=a}return a}},9462:(t,a,r)=>{var i=r(9565),n=r(2360),s=r(6699),o=r(6279),l=r(8227),c=r(1181),h=r(5966),u=r(7657).IteratorPrototype,f=r(2529),d=r(9539),g=r(1385),p=l("toStringTag"),m="IteratorHelper",b="WrapForValidIterator",y="normal",w="throw",x=c.set,k=function(t){var a=c.getterFor(t?b:m);return o(n(u),{next:function(){var r=a(this);if(t)return r.nextHandler();if(r.done)return f(void 0,!0);try{var i=r.nextHandler();return r.returnHandlerResult?i:f(i,r.done)}catch(t){throw r.done=!0,t}},return:function(){var r=a(this),n=r.iterator;if(r.done=!0,t){var s=h(n,"return");return s?i(s,n):f(void 0,!0)}if(r.inner)try{d(r.inner.iterator,y)}catch(t){return d(n,w,t)}if(r.openIters)try{g(r.openIters,y)}catch(t){return d(n,w,t)}return n&&d(n,y),f(void 0,!0)}})},v=k(!0),A=k(!1);s(A,p,"Iterator Helper"),t.exports=function(t,a,r){var i=function(i,n){n?(n.iterator=i.iterator,n.next=i.next):n=i,n.type=a?b:m,n.returnHandlerResult=!!r,n.nextHandler=t,n.counter=0,n.done=!1,x(this,n)};return i.prototype=a?v:A,i}},9479:(t,a,r)=>{var i=r(3724),n=r(2106),s=r(7594),o=r(7979);i&&!s.correct&&(n(RegExp.prototype,"flags",{configurable:!0,get:o}),s.correct=!0)},9486:(t,a,r)=>{var i=r(6518),n=r(4576),s=r(9504),o=r(3972),l=r(4154),c=r(5169),h=r(2804),u=r(944),f=h.i2c,d=h.i2cUrl,g=s("".charAt),p=n.Uint8Array,m=!p||!p.prototype.toBase64||!function(){try{(new p).toBase64(null)}catch(t){return!0}}();p&&i({target:"Uint8Array",proto:!0,forced:m},{toBase64:function(){var t=l(this),a=arguments.length?o(arguments[0]):void 0,r="base64"===u(a)?f:d,i=!!a&&!!a.omitPadding;c(this.buffer);for(var n,s="",h=0,p=t.length,m=function(t){return g(r,n>>6*t&63)};h+2<p;h+=3)n=(t[h]<<16)+(t[h+1]<<8)+t[h+2],s+=m(3)+m(2)+m(1)+m(0);return h+2===p?(n=(t[h]<<16)+(t[h+1]<<8),s+=m(3)+m(2)+m(1)+(i?"":"=")):h+1===p&&(n=t[h]<<16,s+=m(3)+m(2)+(i?"":"==")),s}})},9504:(t,a,r)=>{var i=r(616),n=Function.prototype,s=n.call,o=i&&n.bind.bind(s,s);t.exports=i?o:function(t){return function(){return s.apply(t,arguments)}}},9519:(t,a,r)=>{var i,n,s=r(4576),o=r(2839),l=s.process,c=s.Deno,h=l&&l.versions||c&&c.version,u=h&&h.v8;u&&(n=(i=u.split("."))[0]>0&&i[0]<4?1:+(i[0]+i[1])),!n&&o&&(!(i=o.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=o.match(/Chrome\/(\d+)/))&&(n=+i[1]),t.exports=n},9539:(t,a,r)=>{var i=r(9565),n=r(8551),s=r(5966);t.exports=function(t,a,r){var o,l;n(t);try{if(!(o=s(t,"return"))){if("throw"===a)throw r;return r}o=i(o,t)}catch(t){l=!0,o=t}if("throw"===a)throw r;if(l)throw o;return n(o),r}},9565:(t,a,r)=>{var i=r(616),n=Function.prototype.call;t.exports=i?n.bind(n):function(){return n.apply(n,arguments)}},9577:(t,a,r)=>{var i=r(9928),n=r(4644),s=r(1108),o=r(1291),l=r(5854),c=n.aTypedArray,h=n.getTypedArrayConstructor,u=n.exportTypedArrayMethod,f=function(){try{new Int8Array(1).with(2,{valueOf:function(){throw 8}})}catch(t){return 8===t}}(),d=f&&function(){try{new Int8Array(1).with(-.5,1)}catch(t){return!0}}();u("with",{with:function(t,a){var r=c(this),n=o(t),u=s(r)?l(a):+a;return i(r,h(r),n,u)}}.with,!f||d)},9617:(t,a,r)=>{var i=r(5397),n=r(5610),s=r(6198),o=function(t){return function(a,r,o){var l=i(a),c=s(l);if(0===c)return!t&&-1;var h,u=n(o,c);if(t&&r!=r){for(;c>u;)if((h=l[u++])!=h)return!0}else for(;c>u;u++)if((t||u in l)&&l[u]===r)return t||u||0;return!t&&-1}};t.exports={includes:o(!0),indexOf:o(!1)}},9631:(t,a,r)=>{r(9486)},9797:(t,a,r)=>{r(4226)},9835:t=>{t.exports=function(t){try{var a=new Set,r=a[t]({size:0,has:function(){return!0},keys:function(){return Object.defineProperty({},"next",{get:function(){return a.clear(),a.add(4),function(){return{done:!0}}}})}});return 1===r.size&&4===r.values().next().value}catch(t){return!1}}},9928:(t,a,r)=>{var i=r(6198),n=r(1291),s=RangeError;t.exports=function(t,a,r,o){var l=i(t),c=n(r),h=c<0?l+c:c;if(h>=l||h<0)throw new s("Incorrect index");for(var u=new a(l),f=0;f<l;f++)u[f]=f===h?o:t[f];return u}}},c={};function h(t){var a=c[t];if(void 0!==a)return a.exports;var r=c[t]={exports:{}};return l[t].call(r.exports,r,r.exports,h),r.exports}h.d=(t,a)=>{for(var r in a)h.o(a,r)&&!h.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:a[r]})},h.o=(t,a)=>Object.prototype.hasOwnProperty.call(t,a),h(4114),h(6573),h(8100),h(7936),h(8111),h(2489),h(1701),h(3579),h(4628),h(7642),h(8004),h(3853),h(5876),h(2475),h(5024),h(1698),h(9577),h(1549),h(9797),h(9631),h(5623),h(3611),h(8237),h(1689),h(4235),h(9432),h(4979),h(5781);let u=!("object"!=typeof o||o+""!="[object process]"||o.versions.nw||o.versions.electron&&o.type&&"browser"!==o.type),f=[.001,0,0,.001,0,0],d="pdfjs_internal_editor_",g={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048},p={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},m="Group",b={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"},y={WC:"WillClose",WS:"WillSave",DS:"DidSave",WP:"WillPrint",DP:"DidPrint"},w={O:"PageOpen",C:"PageClose"},x=1;function k(t){x>=5&&console.info(`Info: ${t}`)}function v(t){x>=1&&console.warn(`Warning: ${t}`)}function A(t){throw Error(t)}function C(t,a){t||A(a)}function S(t,a=null,r=null){if(!t)return null;if(r&&"string"==typeof t){if(r.addDefaultProtocol&&t.startsWith("www.")){let a=t.match(/\./g);a?.length>=2&&(t=`http://${t}`)}if(r.tryConvertEncoding)try{t=$(t)}catch{}}let i=a?URL.parse(t,a):URL.parse(t);return!function(t){switch(t?.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}(i)?null:i}function I(t,a,r,i=!1){return Object.defineProperty(t,a,{value:r,enumerable:!i,configurable:!0,writable:!1}),r}let T=function(){function t(t,a){this.message=t,this.name=a}return t.prototype=Error(),t.constructor=t,t}();class B extends T{constructor(t,a){super(t,"PasswordException"),this.code=a}}class F extends T{constructor(t,a){super(t,"UnknownErrorException"),this.details=a}}class M extends T{constructor(t){super(t,"InvalidPDFException")}}class R extends T{constructor(t,a,r){super(t,"ResponseException"),this.status=a,this.missing=r}}class N extends T{constructor(t){super(t,"FormatError")}}class O extends T{constructor(t){super(t,"AbortException")}}function D(t){"object"==typeof t&&void 0!==t?.length||A("Invalid argument for bytesToString");let a=t.length;if(a<8192)return String.fromCharCode.apply(null,t);let r=[];for(let i=0;i<a;i+=8192){let n=Math.min(i+8192,a),s=t.subarray(i,n);r.push(String.fromCharCode.apply(null,s))}return r.join("")}function E(t){"string"!=typeof t&&A("Invalid argument for stringToBytes");let a=t.length,r=new Uint8Array(a);for(let i=0;i<a;++i)r[i]=255&t.charCodeAt(i);return r}function P(t){return String.fromCharCode(t>>24&255,t>>16&255,t>>8&255,255&t)}function _(t){return Object.keys(t).length}class L{static get isLittleEndian(){return I(this,"isLittleEndian",function(){let t=new Uint8Array(4);return t[0]=1,1===new Uint32Array(t.buffer,0,1)[0]}())}static get isEvalSupported(){return I(this,"isEvalSupported",function(){try{return Function(""),!0}catch{return!1}}())}static get isOffscreenCanvasSupported(){return I(this,"isOffscreenCanvasSupported","undefined"!=typeof OffscreenCanvas)}static get isImageDecoderSupported(){return I(this,"isImageDecoderSupported","undefined"!=typeof ImageDecoder)}static get isFloat16ArraySupported(){return I(this,"isFloat16ArraySupported","undefined"!=typeof Float16Array)}static get isSanitizerSupported(){return I(this,"isSanitizerSupported","undefined"!=typeof Sanitizer)}static get platform(){let{platform:t,userAgent:a}=navigator;return I(this,"platform",{isAndroid:a.includes("Android"),isLinux:t.includes("Linux"),isMac:t.includes("Mac"),isWindows:t.includes("Win"),isFirefox:a.includes("Firefox")})}static get isCSSRoundSupported(){return I(this,"isCSSRoundSupported",globalThis.CSS?.supports?.("width: round(1.5px, 1px)"))}}let U=Array.from(Array(256).keys(),t=>t.toString(16).padStart(2,"0"));class j{static makeHexColor(t,a,r){return`#${U[t]}${U[a]}${U[r]}`}static domMatrixToTransform(t){return[t.a,t.b,t.c,t.d,t.e,t.f]}static scaleMinMax(t,a){let r;t[0]?(t[0]<0&&(r=a[0],a[0]=a[2],a[2]=r),a[0]*=t[0],a[2]*=t[0],t[3]<0&&(r=a[1],a[1]=a[3],a[3]=r),a[1]*=t[3],a[3]*=t[3]):(r=a[0],a[0]=a[1],a[1]=r,r=a[2],a[2]=a[3],a[3]=r,t[1]<0&&(r=a[1],a[1]=a[3],a[3]=r),a[1]*=t[1],a[3]*=t[1],t[2]<0&&(r=a[0],a[0]=a[2],a[2]=r),a[0]*=t[2],a[2]*=t[2]),a[0]+=t[4],a[1]+=t[5],a[2]+=t[4],a[3]+=t[5]}static transform(t,a){return[t[0]*a[0]+t[2]*a[1],t[1]*a[0]+t[3]*a[1],t[0]*a[2]+t[2]*a[3],t[1]*a[2]+t[3]*a[3],t[0]*a[4]+t[2]*a[5]+t[4],t[1]*a[4]+t[3]*a[5]+t[5]]}static multiplyByDOMMatrix(t,a){return[t[0]*a.a+t[2]*a.b,t[1]*a.a+t[3]*a.b,t[0]*a.c+t[2]*a.d,t[1]*a.c+t[3]*a.d,t[0]*a.e+t[2]*a.f+t[4],t[1]*a.e+t[3]*a.f+t[5]]}static applyTransform(t,a,r=0){let i=t[r],n=t[r+1];t[r]=i*a[0]+n*a[2]+a[4],t[r+1]=i*a[1]+n*a[3]+a[5]}static applyTransformToBezier(t,a,r=0){let i=a[0],n=a[1],s=a[2],o=a[3],l=a[4],c=a[5];for(let a=0;a<6;a+=2){let h=t[r+a],u=t[r+a+1];t[r+a]=h*i+u*s+l,t[r+a+1]=h*n+u*o+c}}static applyInverseTransform(t,a){let r=t[0],i=t[1],n=a[0]*a[3]-a[1]*a[2];t[0]=(r*a[3]-i*a[2]+a[2]*a[5]-a[4]*a[3])/n,t[1]=(-r*a[1]+i*a[0]+a[4]*a[1]-a[5]*a[0])/n}static axialAlignedBoundingBox(t,a,r){let i=a[0],n=a[1],s=a[2],o=a[3],l=a[4],c=a[5],h=t[0],u=t[1],f=t[2],d=t[3],g=i*h+l,p=g,m=i*f+l,b=m,y=o*u+c,w=y,x=o*d+c,k=x;if(0!==n||0!==s){let t=n*h,a=n*f,r=s*u,i=s*d;g+=r,b+=r,m+=i,p+=i,y+=t,k+=t,x+=a,w+=a}r[0]=Math.min(r[0],g,m,p,b),r[1]=Math.min(r[1],y,x,w,k),r[2]=Math.max(r[2],g,m,p,b),r[3]=Math.max(r[3],y,x,w,k)}static inverseTransform(t){let a=t[0]*t[3]-t[1]*t[2];return[t[3]/a,-t[1]/a,-t[2]/a,t[0]/a,(t[2]*t[5]-t[4]*t[3])/a,(t[4]*t[1]-t[5]*t[0])/a]}static singularValueDecompose2dScale(t,a){let r=t[0],i=t[1],n=t[2],s=t[3],o=r**2+i**2,l=n**2+s**2,c=(o+l)/2,h=Math.sqrt(c**2-(o*l-(r*n+i*s)**2));a[0]=Math.sqrt(c+h||1),a[1]=Math.sqrt(c-h||1)}static normalizeRect(t){let a=t.slice(0);return t[0]>t[2]&&(a[0]=t[2],a[2]=t[0]),t[1]>t[3]&&(a[1]=t[3],a[3]=t[1]),a}static intersect(t,a){let r=Math.max(Math.min(t[0],t[2]),Math.min(a[0],a[2])),i=Math.min(Math.max(t[0],t[2]),Math.max(a[0],a[2]));if(r>i)return null;let n=Math.max(Math.min(t[1],t[3]),Math.min(a[1],a[3])),s=Math.min(Math.max(t[1],t[3]),Math.max(a[1],a[3]));return n>s?null:[r,n,i,s]}static pointBoundingBox(t,a,r){r[0]=Math.min(r[0],t),r[1]=Math.min(r[1],a),r[2]=Math.max(r[2],t),r[3]=Math.max(r[3],a)}static rectBoundingBox(t,a,r,i,n){n[0]=Math.min(n[0],t,r),n[1]=Math.min(n[1],a,i),n[2]=Math.max(n[2],t,r),n[3]=Math.max(n[3],a,i)}static #e(t,a,r,i,n,s,o,l,c,h){if(c<=0||c>=1)return;let u=1-c,f=c*c,d=f*c,g=u*(u*(u*t+3*c*a)+3*f*r)+d*i,p=u*(u*(u*n+3*c*s)+3*f*o)+d*l;h[0]=Math.min(h[0],g),h[1]=Math.min(h[1],p),h[2]=Math.max(h[2],g),h[3]=Math.max(h[3],p)}static #t(t,a,r,i,n,s,o,l,c,h,u,f){if(1e-12>Math.abs(c)){Math.abs(h)>=1e-12&&this.#e(t,a,r,i,n,s,o,l,-u/h,f);return}let d=h**2-4*u*c;if(d<0)return;let g=Math.sqrt(d),p=2*c;this.#e(t,a,r,i,n,s,o,l,(-h+g)/p,f),this.#e(t,a,r,i,n,s,o,l,(-h-g)/p,f)}static bezierBoundingBox(t,a,r,i,n,s,o,l,c){c[0]=Math.min(c[0],t,o),c[1]=Math.min(c[1],a,l),c[2]=Math.max(c[2],t,o),c[3]=Math.max(c[3],a,l),this.#t(t,r,n,o,a,i,s,l,3*(3*(r-n)-t+o),6*(t-2*r+n),3*(r-t),c),this.#t(t,r,n,o,a,i,s,l,3*(3*(i-s)-a+l),6*(a-2*i+s),3*(i-a),c)}}let q=[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 H(t,a=!1){if(t[0]>="\xef"){let r;if("\xfe"===t[0]&&"\xff"===t[1]?(r="utf-16be",t.length%2==1&&(t=t.slice(0,-1))):"\xff"===t[0]&&"\xfe"===t[1]?(r="utf-16le",t.length%2==1&&(t=t.slice(0,-1))):"\xef"===t[0]&&"\xbb"===t[1]&&"\xbf"===t[2]&&(r="utf-8"),r)try{let i=new TextDecoder(r,{fatal:!0}),n=E(t),s=i.decode(n);return a||!s.includes("\x1b")?s:s.replaceAll(/\x1b[^\x1b]*(?:\x1b|$)/g,"")}catch(t){v(`stringToPDFString: "${t}".`)}}let r=[];for(let i=0,n=t.length;i<n;i++){let s=t.charCodeAt(i);if(!a&&27===s){for(;++i<n&&27!==t.charCodeAt(i););continue}let o=q[s];r.push(o?String.fromCharCode(o):t.charAt(i))}return r.join("")}function $(t){return decodeURIComponent(escape(t))}function z(t){return unescape(encodeURIComponent(t))}function G(t,a){if(t.length!==a.length)return!1;for(let r=0,i=t.length;r<i;r++)if(t[r]!==a[r])return!1;return!0}function W(t=new Date){return t instanceof Date||(t=new Date(t)),[t.getUTCFullYear().toString(),(t.getUTCMonth()+1).toString().padStart(2,"0"),t.getUTCDate().toString().padStart(2,"0"),t.getUTCHours().toString().padStart(2,"0"),t.getUTCMinutes().toString().padStart(2,"0"),t.getUTCSeconds().toString().padStart(2,"0")].join("")}let V=null,X=null;function K(t,a,r){return Math.min(Math.max(t,a),r)}function Y(t){return Uint8Array.prototype.toHex?t.toHex():Array.from(t,t=>U[t]).join("")}"function"!=typeof Math.sumPrecise&&(Math.sumPrecise=function(t){return t.reduce((t,a)=>t+a,0)}),"function"!=typeof AbortSignal.any&&(AbortSignal.any=function(t){let a=new AbortController,{signal:r}=a;for(let i of t)if(i.aborted)return a.abort(i.reason),r;for(let i of t)i.addEventListener("abort",()=>{a.abort(i.reason)},{signal:r});return r}),h(1148);let J=Symbol("CIRCULAR_REF"),Z=Symbol("EOF"),Q=Object.create(null),ee=Object.create(null),et=Object.create(null);class ea{constructor(t){this.name=t}static get(t){return ee[t]||=new ea(t)}}class er{constructor(t){this.cmd=t}static get(t){return Q[t]||=new er(t)}}let ei=function(){return ei};class en{constructor(t=null){this._map=new Map,this.xref=t,this.objId=null,this.suppressEncryption=!1,this.__nonSerializable__=ei}assignXref(t){this.xref=t}get size(){return this._map.size}get(t,a,r){let i=this._map.get(t);return void 0===i&&void 0!==a&&void 0===(i=this._map.get(a))&&void 0!==r&&(i=this._map.get(r)),i instanceof es&&this.xref?this.xref.fetch(i,this.suppressEncryption):i}async getAsync(t,a,r){let i=this._map.get(t);return void 0===i&&void 0!==a&&void 0===(i=this._map.get(a))&&void 0!==r&&(i=this._map.get(r)),i instanceof es&&this.xref?this.xref.fetchAsync(i,this.suppressEncryption):i}getArray(t,a,r){let i=this._map.get(t);if(void 0===i&&void 0!==a&&void 0===(i=this._map.get(a))&&void 0!==r&&(i=this._map.get(r)),i instanceof es&&this.xref&&(i=this.xref.fetch(i,this.suppressEncryption)),Array.isArray(i)){i=i.slice();for(let t=0,a=i.length;t<a;t++)i[t]instanceof es&&this.xref&&(i[t]=this.xref.fetch(i[t],this.suppressEncryption))}return i}getRaw(t){return this._map.get(t)}getKeys(){return[...this._map.keys()]}getRawValues(){return[...this._map.values()]}getRawEntries(){return this._map.entries()}set(t,a){this._map.set(t,a)}setIfNotExists(t,a){this.has(t)||this.set(t,a)}setIfNumber(t,a){"number"==typeof a&&this.set(t,a)}setIfArray(t,a){(Array.isArray(a)||ArrayBuffer.isView(a))&&this.set(t,a)}setIfDefined(t,a){null!=a&&this.set(t,a)}setIfName(t,a){"string"==typeof a?this.set(t,ea.get(a)):a instanceof ea&&this.set(t,a)}setIfDict(t,a){a instanceof en&&this.set(t,a)}has(t){return this._map.has(t)}*[Symbol.iterator](){for(let[t,a]of this._map)yield[t,a instanceof es&&this.xref?this.xref.fetch(a,this.suppressEncryption):a]}static get empty(){let t=new en(null);return t.set=(t,a)=>{A("Should not call `set` on the empty dictionary.")},I(this,"empty",t)}static merge({xref:t,dictArray:a,mergeSubDicts:r=!1}){let i=new en(t),n=new Map;for(let t of a)if(t instanceof en)for(let[a,i]of t._map){let t=n.get(a);if(void 0===t)t=[],n.set(a,t);else if(!(r&&i instanceof en))continue;t.push(i)}for(let[a,r]of n){if(1===r.length||!(r[0]instanceof en)){i._map.set(a,r[0]);continue}let n=new en(t);for(let t of r)for(let[a,r]of t._map)n._map.has(a)||n._map.set(a,r);n.size>0&&i._map.set(a,n)}return n.clear(),i.size>0?i:en.empty}clone(){let t=new en(this.xref);for(let a of this.getKeys())t.set(a,this.getRaw(a));return t}delete(t){this._map.delete(t)}}class es{constructor(t,a){this.num=t,this.gen=a}toString(){return 0===this.gen?`${this.num}R`:`${this.num}R${this.gen}`}static fromString(t){let a=et[t];if(a)return a;let r=/^(\d+)R(\d*)$/.exec(t);return r&&"0"!==r[1]?et[t]=new es(parseInt(r[1]),r[2]?parseInt(r[2]):0):null}static get(t,a){let r=0===a?`${t}R`:`${t}R${a}`;return et[r]||=new es(t,a)}}class eo{constructor(t=null){this._set=new Set(t?._set)}has(t){return this._set.has(t.toString())}put(t){this._set.add(t.toString())}remove(t){this._set.delete(t.toString())}[Symbol.iterator](){return this._set.values()}clear(){this._set.clear()}}class el{constructor(){this._map=new Map}get size(){return this._map.size}get(t){return this._map.get(t.toString())}has(t){return this._map.has(t.toString())}put(t,a){this._map.set(t.toString(),a)}putAlias(t,a){this._map.set(t.toString(),this.get(a))}[Symbol.iterator](){return this._map.values()}clear(){this._map.clear()}*values(){yield*this._map.values()}*items(){for(let[t,a]of this._map)yield[es.fromString(t),a]}*keys(){for(let t of this._map.keys())yield es.fromString(t)}}function ec(t,a){return t instanceof ea&&(void 0===a||t.name===a)}function eh(t,a){return t instanceof er&&(void 0===a||t.cmd===a)}function eu(t,a){return t instanceof en&&(void 0===a||ec(t.get("Type"),a))}function ef(t,a){return t.num===a.num&&t.gen===a.gen}class ed{get length(){A("Abstract getter `length` accessed")}get isEmpty(){A("Abstract getter `isEmpty` accessed")}get isDataLoaded(){return I(this,"isDataLoaded",!0)}getByte(){A("Abstract method `getByte` called")}getBytes(t){A("Abstract method `getBytes` called")}async getImageData(t,a){return this.getBytes(t,a)}async asyncGetBytes(){A("Abstract method `asyncGetBytes` called")}get isAsync(){return!1}get isAsyncDecoder(){return!1}get canAsyncDecodeImageFromBuffer(){return!1}async getTransferableImage(){return null}peekByte(){let t=this.getByte();return -1!==t&&this.pos--,t}peekBytes(t){let a=this.getBytes(t);return this.pos-=a.length,a}getUint16(){let t=this.getByte(),a=this.getByte();return -1===t||-1===a?-1:(t<<8)+a}getInt32(){return(this.getByte()<<24)+(this.getByte()<<16)+(this.getByte()<<8)+this.getByte()}getByteRange(t,a){A("Abstract method `getByteRange` called")}getString(t){return D(this.getBytes(t))}skip(t){this.pos+=t||1}reset(){A("Abstract method `reset` called")}moveStart(){A("Abstract method `moveStart` called")}makeSubStream(t,a,r=null){A("Abstract method `makeSubStream` called")}getBaseStreams(){return null}getOriginalStream(){return this.stream?.getOriginalStream()||this}}let eg=/^[1-9]\.\d$/,ep=2147483648-1,em=[1,0,0,1,0,0],eb=["ColorSpace","ExtGState","Font","Pattern","Properties","Shading","XObject"],ey=["ExtGState","Font","Properties","XObject"];function ew(t){let a;return function(){return t&&(a=Object.create(null),t(a),t=null),a}}class ex extends T{constructor(t,a){super(`Missing data [${t}, ${a})`,"MissingDataException"),this.begin=t,this.end=a}}class ek extends T{constructor(t){super(t,"ParserEOFException")}}class ev extends T{constructor(t){super(t,"XRefEntryException")}}class eA extends T{constructor(t){super(t,"XRefParseException")}}function eC(t){let a=t.length;if(0===a)return new Uint8Array(0);if(1===a)return new Uint8Array(t[0]);let r=0;for(let i=0;i<a;i++)r+=t[i].byteLength;let i=new Uint8Array(r),n=0;for(let r=0;r<a;r++){let a=new Uint8Array(t[r]);i.set(a,n),n+=a.byteLength}return i}async function eS(t){let a=await fetch(t);if(!a.ok)throw Error(`Failed to fetch file "${t}" with "${a.statusText}".`);return new Uint8Array(await a.arrayBuffer())}function eI({dict:t,key:a,getArray:r=!1,stopWhenFound:i=!0}){let n;let s=new eo;for(;t instanceof en&&(!t.objId||!s.has(t.objId));){t.objId&&s.put(t.objId);let o=r?t.getArray(a):t.get(a);if(void 0!==o){if(i)return o;(n||=[]).push(o)}t=t.get("Parent")}return n}let eT=["","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 eB(t){return t>0?Math.ceil(Math.log2(t)):0}function eF(t,a){return t[a]<<24>>24}function eM(t,a){return(t[a]<<24|t[a+1]<<16)>>16}function eR(t,a){return t[a]<<8|t[a+1]}function eN(t,a){return(t[a]<<24|t[a+1]<<16|t[a+2]<<8|t[a+3])>>>0}function eO(t){return 32===t||9===t||13===t||10===t}function eD(t,a){return Array.isArray(t)?(null===a||t.length===a)&&t.every(t=>"number"==typeof t):ArrayBuffer.isView(t)&&!(t instanceof BigInt64Array||t instanceof BigUint64Array)&&(null===a||t.length===a)}function eE(t,a){return eD(t,6)?t:a}function eP(t,a){return eD(t,4)?t:a}function e_(t,a){return eD(t,4)?j.normalizeRect(t):a}function eL(t){let a=/(.+)\[(\d+)\]$/;return t.split(".").map(t=>{let r=t.match(a);return r?{name:r[1],pos:parseInt(r[2],10)}:{name:t,pos:0}})}function eU(t){let a=[],r=0;for(let i=0,n=t.length;i<n;i++){let n=t.charCodeAt(i);(n<33||n>126||35===n||40===n||41===n||60===n||62===n||91===n||93===n||123===n||125===n||47===n||37===n)&&(r<i&&a.push(t.substring(r,i)),a.push(`#${n.toString(16)}`),r=i+1)}return 0===a.length?t:(r<t.length&&a.push(t.substring(r,t.length)),a.join(""))}function ej(t){return t.replaceAll(/([()\\\n\r])/g,t=>"\n"===t?"\\n":"\r"===t?"\\r":`\\${t}`)}function eq(t,a,r,i){if(!t)return;let n=null;if(t instanceof es){if(i.has(t))return;n=t,i.put(n),t=a.fetch(t)}if(Array.isArray(t))for(let n of t)eq(n,a,r,i);else if(t instanceof en){if(ec(t.get("S"),"JavaScript")){let a;let i=t.get("JS");i instanceof ed?a=i.getString():"string"==typeof i&&(a=i),(a&&=H(a,!0).replaceAll("\x00",""))&&r.push(a.trim())}eq(t.getRaw("Next"),a,r,i)}n&&i.remove(n)}function eH(t,a,r){let i=Object.create(null),n=eI({dict:a,key:"AA",stopWhenFound:!1});if(n)for(let a=n.length-1;a>=0;a--){let s=n[a];if(s instanceof en)for(let a of s.getKeys()){let n=r[a];if(!n)continue;let o=[];eq(s.getRaw(a),t,o,new eo),o.length>0&&(i[n]=o)}}if(a.has("A")){let r=[];eq(a.get("A"),t,r,new eo),r.length>0&&(i.Action=r)}return _(i)>0?i:null}let e$={60:"&lt;",62:"&gt;",38:"&amp;",34:"&quot;",39:"&apos;"};function ez(t){let a=[],r=0;for(let i=0,n=t.length;i<n;i++){let n=t.codePointAt(i);if(32<=n&&n<=126){let s=e$[n];s&&(r<i&&a.push(t.substring(r,i)),a.push(s),r=i+1)}else r<i&&a.push(t.substring(r,i)),a.push(`&#x${n.toString(16).toUpperCase()};`),n>55295&&(n<57344||n>65533)&&i++,r=i+1}return 0===a.length?t:(r<t.length&&a.push(t.substring(r,t.length)),a.join(""))}function eG(t,a=!1){let r=/^("|').*("|')$/.exec(t);if(r&&r[1]===r[2]){if(RegExp(`[^\\\\]${r[1]}`).test(t.slice(1,-1)))return a&&v(`FontFamily contains unescaped ${r[1]}: ${t}.`),!1}else for(let r of t.split(/[ \t]+/))if(/^(\d|(-(\d|-)))/.test(r)||!/^[\w-\\]+$/.test(r))return a&&v(`FontFamily contains invalid <custom-ident>: ${t}.`),!1;return!0}function eW(t){let a=RegExp("^\\s*("+"app.launchURL|window.open|xfa.host.gotoURL".replaceAll(".","\\.")+")\\((?:'|\")([^'\"]*)(?:'|\")(?:,\\s*(\\w+)\\)|\\))","i").exec(t);return a?.[2]?{url:a[2],newWindow:"app.launchURL"===a[1]&&"true"===a[3]}:null}function eV(t){if(Number.isInteger(t))return t.toString();let a=Math.round(100*t);return a%100==0?(a/100).toString():a%10==0?t.toFixed(1):t.toFixed(2)}function eX(t){if(!t)return null;let a=new Map;for(let[r,i]of t){if(!r.startsWith(d))continue;let t=a.get(i.pageIndex);t||(t=[],a.set(i.pageIndex,t)),t.push(i)}return a.size>0?a:null}function eK(t){return null==t||"string"==typeof t&&(!t||/^[\x00-\x7F]*$/.test(t))?t:eY(t,!0)}function eY(t,a=!1){let r=[];a&&r.push("\xfe\xff");for(let a=0,i=t.length;a<i;a++){let i=t.charCodeAt(a);r.push(String.fromCharCode(i>>8&255),String.fromCharCode(255&i))}return r.join("")}function eJ(t,a,r){switch(t){case 90:return[0,1,-1,0,a,0];case 180:return[-1,0,0,-1,a,r];case 270:return[0,-1,1,0,0,r];default:throw Error("Invalid rotation")}}function eZ(t){return Math.ceil(Math.ceil(Math.log2(1+t))/8)}h(4603),h(7566),h(8721);class eQ{static #a=null;static _memory=null;static _mustAddAlpha=!1;static _destBuffer=null;static _destOffset=0;static _destLength=0;static _cssColor="";static _makeHexColor=null;static get _memoryArray(){let t=this.#a;return t?.byteLength?t:this.#a=new Uint8Array(this._memory.buffer)}}let e1="undefined"!=typeof TextDecoder?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}};"undefined"!=typeof TextDecoder&&e1.decode();let e0=null;function e2(){return null!==e0&&0!==e0.byteLength||(e0=new Uint8Array(i.memory.buffer)),e0}let e9=0;function e5(t,a){let r=a(1*t.length,1)>>>0;return e2().set(t,r/1),e9=t.length,r}let e3=Object.freeze({RGB8:0,0:"RGB8",RGBA8:1,1:"RGBA8",BGRA8:2,2:"BGRA8",Gray8:3,3:"Gray8",GrayA8:4,4:"GrayA8",CMYK:5,5:"CMYK"}),e6=Object.freeze({Perceptual:0,0:"Perceptual",RelativeColorimetric:1,1:"RelativeColorimetric",Saturation:2,2:"Saturation",AbsoluteColorimetric:3,3:"AbsoluteColorimetric"});function e7(){let t={wbg:{}};return t.wbg.__wbg_copyresult_b08ee7d273f295dd=function(t,a){!function(t,a){let{_mustAddAlpha:r,_destBuffer:i,_destOffset:n,_destLength:s,_memoryArray:o}=eQ;if(a!==s){if(r)for(let r=t,s=t+a,l=n;r<s;r+=3,l+=4)i[l]=o[r],i[l+1]=o[r+1],i[l+2]=o[r+2],i[l+3]=255;else for(let r=t,s=t+a,l=n;r<s;r+=3,l+=4)i[l]=o[r],i[l+1]=o[r+1],i[l+2]=o[r+2]}else i.set(o.subarray(t,t+a),n)}(t>>>0,a>>>0)},t.wbg.__wbg_copyrgb_d60ce17bb05d9b67=function(t){!function(t){let{_destBuffer:a,_destOffset:r,_memoryArray:i}=eQ;a[r]=i[t],a[r+1]=i[t+1],a[r+2]=i[t+2]}(t>>>0)},t.wbg.__wbg_makecssRGB_893bf0cd9fdb302d=function(t){!function(t){let{_memoryArray:a}=eQ;eQ._cssColor=eQ._makeHexColor(a[t],a[t+1],a[t+2])}(t>>>0)},t.wbg.__wbindgen_init_externref_table=function(){let t=i.__wbindgen_export_0,a=t.grow(4);t.set(0,void 0),t.set(a+0,void 0),t.set(a+1,null),t.set(a+2,!0),t.set(a+3,!1)},t.wbg.__wbindgen_throw=function(t,a){var r;throw Error((r=t>>>0,e1.decode(e2().subarray(r,r+a))))},t}function e8(t,a){return i=t.exports,e4.__wbindgen_wasm_module=a,e0=null,i.__wbindgen_start(),i}async function e4(t){if(void 0!==i)return i;void 0!==t&&(Object.getPrototypeOf(t)===Object.prototype?{module_or_path:t}=t:console.warn("using deprecated parameters for the initialization function; pass a single object instead"));let a=e7();("string"==typeof t||"function"==typeof Request&&t instanceof Request||"function"==typeof URL&&t instanceof URL)&&(t=fetch(t));let{instance:r,module:n}=await async function(t,a){if("function"==typeof Response&&t instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return await WebAssembly.instantiateStreaming(t,a)}catch(a){if("application/wasm"==t.headers.get("Content-Type"))throw a;console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",a)}let r=await t.arrayBuffer();return await WebAssembly.instantiate(r,a)}{let r=await WebAssembly.instantiate(t,a);return r instanceof WebAssembly.Instance?{instance:r,module:t}:r}}(await t,a);return e8(r,n)}class te{static #r=new Uint8ClampedArray(3);constructor(t,a){this.name=t,this.numComps=a}getRgb(t,a,r=new Uint8ClampedArray(3)){return this.getRgbItem(t,a,r,0),r}getRgbHex(t,a){let r=this.getRgb(t,a,te.#r);return j.makeHexColor(r[0],r[1],r[2])}getRgbItem(t,a,r,i){A("Should not call ColorSpace.getRgbItem")}getRgbBuffer(t,a,r,i,n,s,o){A("Should not call ColorSpace.getRgbBuffer")}getOutputLength(t,a){A("Should not call ColorSpace.getOutputLength")}isPassthrough(t){return!1}isDefaultDecode(t,a){return te.isDefaultDecode(t,this.numComps)}fillRgb(t,a,r,i,n,s,o,l,c){let h=a*r,u=null,f=1<<o,d=r!==n||a!==i;if(this.isPassthrough(o))u=l;else if(1===this.numComps&&h>f&&"DeviceGray"!==this.name&&"DeviceRGB"!==this.name){let a=o<=8?new Uint8Array(f):new Uint16Array(f);for(let t=0;t<f;t++)a[t]=t;let r=new Uint8ClampedArray(3*f);if(this.getRgbBuffer(a,0,f,r,0,o,0),d){u=new Uint8Array(3*h);let t=0;for(let a=0;a<h;++a){let i=3*l[a];u[t++]=r[i],u[t++]=r[i+1],u[t++]=r[i+2]}}else{let a=0;for(let i=0;i<h;++i){let n=3*l[i];t[a++]=r[n],t[a++]=r[n+1],t[a++]=r[n+2],a+=c}}}else d?(u=new Uint8ClampedArray(3*h),this.getRgbBuffer(l,0,h,u,0,o,0)):this.getRgbBuffer(l,0,i*s,t,0,o,c);if(u){if(d)!function(t,a,r,i,n,s,o){o=1!==o?0:o;let l=r/n,c=i/s,h,u=0,f=new Uint16Array(n),d=3*r;for(let t=0;t<n;t++)f[t]=3*Math.floor(t*l);for(let r=0;r<s;r++){let i=Math.floor(r*c)*d;for(let r=0;r<n;r++)h=i+f[r],a[u++]=t[h++],a[u++]=t[h++],a[u++]=t[h++],u+=o}}(u,t,a,r,i,n,c);else{let a=0,r=0;for(let n=0,o=i*s;n<o;n++)t[a++]=u[r++],t[a++]=u[r++],t[a++]=u[r++],a+=c}}}get usesZeroToOneRange(){return I(this,"usesZeroToOneRange",!0)}static isDefaultDecode(t,a){if(!Array.isArray(t))return!0;if(2*a!==t.length)return v("The decode map is not the correct length"),!0;for(let a=0,r=t.length;a<r;a+=2)if(0!==t[a]||1!==t[a+1])return!1;return!0}}class tt extends te{constructor(t,a,r){super("Alternate",t),this.base=a,this.tintFn=r,this.tmpBuf=new Float32Array(a.numComps)}getRgbItem(t,a,r,i){let n=this.tmpBuf;this.tintFn(t,a,n,0),this.base.getRgbItem(n,0,r,i)}getRgbBuffer(t,a,r,i,n,s,o){let l,c;let h=this.tintFn,u=this.base,f=1/((1<<s)-1),d=u.numComps,g=u.usesZeroToOneRange,p=(u.isPassthrough(8)||!g)&&0===o,m=p?n:0,b=p?i:new Uint8ClampedArray(d*r),y=this.numComps,w=new Float32Array(y),x=new Float32Array(d);for(l=0;l<r;l++){for(c=0;c<y;c++)w[c]=t[a++]*f;if(h(w,0,x,0),g)for(c=0;c<d;c++)b[m++]=255*x[c];else u.getRgbItem(x,0,b,m),m+=d}p||u.getRgbBuffer(b,0,r,i,n,8,o)}getOutputLength(t,a){return this.base.getOutputLength(t*this.base.numComps/this.numComps,a)}}class ta extends te{constructor(t){super("Pattern",null),this.base=t}isDefaultDecode(t,a){A("Should not call PatternCS.isDefaultDecode")}}class tr extends te{constructor(t,a,r){super("Indexed",1),this.base=t,this.highVal=a;let i=t.numComps*(a+1);if(this.lookup=new Uint8Array(i),r instanceof ed){let t=r.getBytes(i);this.lookup.set(t)}else{if("string"!=typeof r)throw new N(`IndexedCS - unrecognized lookup table: ${r}`);for(let t=0;t<i;++t)this.lookup[t]=255&r.charCodeAt(t)}}getRgbItem(t,a,r,i){let{base:n,highVal:s,lookup:o}=this,l=K(Math.round(t[a]),0,s)*n.numComps;n.getRgbBuffer(o,l,1,r,i,8,0)}getRgbBuffer(t,a,r,i,n,s,o){let{base:l,highVal:c,lookup:h}=this,{numComps:u}=l,f=l.getOutputLength(u,o);for(let s=0;s<r;++s){let r=K(Math.round(t[a++]),0,c)*u;l.getRgbBuffer(h,r,1,i,n,8,o),n+=f}}getOutputLength(t,a){return this.base.getOutputLength(t*this.base.numComps,a)}isDefaultDecode(t,a){return!Array.isArray(t)||(2!==t.length?(v("Decode map length is not correct"),!0):!Number.isInteger(a)||a<1?(v("Bits per component is not correct"),!0):0===t[0]&&t[1]===(1<<a)-1)}}class ti extends te{constructor(){super("DeviceGray",1)}getRgbItem(t,a,r,i){let n=255*t[a];r[i]=r[i+1]=r[i+2]=n}getRgbBuffer(t,a,r,i,n,s,o){let l=255/((1<<s)-1),c=a,h=n;for(let a=0;a<r;++a){let a=l*t[c++];i[h++]=a,i[h++]=a,i[h++]=a,h+=o}}getOutputLength(t,a){return t*(3+a)}}class tn extends te{constructor(){super("DeviceRGB",3)}getRgbItem(t,a,r,i){r[i]=255*t[a],r[i+1]=255*t[a+1],r[i+2]=255*t[a+2]}getRgbBuffer(t,a,r,i,n,s,o){if(8===s&&0===o){i.set(t.subarray(a,a+3*r),n);return}let l=255/((1<<s)-1),c=a,h=n;for(let a=0;a<r;++a)i[h++]=l*t[c++],i[h++]=l*t[c++],i[h++]=l*t[c++],h+=o}getOutputLength(t,a){return t*(3+a)/3|0}isPassthrough(t){return 8===t}}class ts extends te{constructor(){super("DeviceRGBA",4)}getOutputLength(t,a){return 4*t}isPassthrough(t){return 8===t}fillRgb(t,a,r,i,n,s,o,l,c){r!==n||a!==i?function(t,a,r,i,n,s,o){let l=r/n,c=i/s,h=0,u=new Uint16Array(n);if(1===o){for(let t=0;t<n;t++)u[t]=Math.floor(t*l);let i=new Uint32Array(t.buffer),o=new Uint32Array(a.buffer),f=L.isLittleEndian?16777215:4294967040;for(let t=0;t<s;t++){let a=i.subarray(Math.floor(t*c)*r);for(let t=0;t<n;t++)o[h++]|=a[u[t]]&f}}else{let i=4*r;for(let t=0;t<n;t++)u[t]=4*Math.floor(t*l);for(let r=0;r<s;r++){let s=t.subarray(Math.floor(r*c)*i);for(let t=0;t<n;t++){let r=u[t];a[h++]=s[r],a[h++]=s[r+1],a[h++]=s[r+2]}}}}(l,t,a,r,i,n,c):function(t,a,r){if(1===r){let r=new Uint32Array(t.buffer),i=new Uint32Array(a.buffer),n=L.isLittleEndian?16777215:4294967040;for(let t=0,a=r.length;t<a;t++)i[t]|=r[t]&n}else{let r=0;for(let i=0,n=t.length;i<n;i+=4)a[r++]=t[i],a[r++]=t[i+1],a[r++]=t[i+2]}}(l,t,c)}}class to extends te{constructor(){super("DeviceCMYK",4)}#i(t,a,r,i,n){let s=t[a]*r,o=t[a+1]*r,l=t[a+2]*r,c=t[a+3]*r;i[n]=255+s*(-4.387332384609988*s+54.48615194189176*o+18.82290502165302*l+212.25662451639585*c-285.2331026137004)+o*(1.7149763477362134*o-5.6096736904047315*l+-17.873870861415444*c-5.497006427196366)+l*(-2.5217340131683033*l-21.248923337353073*c+17.5119270841813)+c*(-21.86122147463605*c-189.48180835922747),i[n+1]=255+s*(8.841041422036149*s+60.118027045597366*o+6.871425592049007*l+31.159100130055922*c-79.2970844816548)+o*(-15.310361306967817*o+17.575251261109482*l+131.35250912493976*c-190.9453302588951)+l*(4.444339102852739*l+9.8632861493405*c-24.86741582555878)+c*(-20.737325471181034*c-187.80453709719578),i[n+2]=255+s*(.8842522430003296*s+8.078677503112928*o+30.89978309703729*l-.23883238689178934*c-14.183576799673286)+o*(10.49593273432072*o+63.02378494754052*l+50.606957656360734*c-112.23884253719248)+l*(.03296041114873217*l+115.60384449646641*c-193.58209356861505)+c*(-22.33816807309886*c-180.12613974708367)}getRgbItem(t,a,r,i){this.#i(t,a,1,r,i)}getRgbBuffer(t,a,r,i,n,s,o){let l=1/((1<<s)-1);for(let s=0;s<r;s++)this.#i(t,a,l,i,n),a+=4,n+=3+o}getOutputLength(t,a){return t/4*(3+a)|0}}class tl extends te{constructor(t,a,r){if(super("CalGray",1),!t)throw new N("WhitePoint missing - required for color space CalGray");if([this.XW,this.YW,this.ZW]=t,[this.XB,this.YB,this.ZB]=a||[0,0,0],this.G=r||1,this.XW<0||this.ZW<0||1!==this.YW)throw new N(`Invalid WhitePoint components for ${this.name}, no fallback available`);(this.XB<0||this.YB<0||this.ZB<0)&&(k(`Invalid BlackPoint for ${this.name}, falling back to default.`),this.XB=this.YB=this.ZB=0),0===this.XB&&0===this.YB&&0===this.ZB||v(`${this.name}, BlackPoint: XB: ${this.XB}, YB: ${this.YB}, ZB: ${this.ZB}, only default values are supported.`),this.G<1&&(k(`Invalid Gamma: ${this.G} for ${this.name}, falling back to default.`),this.G=1)}#i(t,a,r,i,n){let s=(t[a]*n)**this.G,o=this.YW*s,l=Math.max(295.8*o**.3333333333333333-40.8,0);r[i]=l,r[i+1]=l,r[i+2]=l}getRgbItem(t,a,r,i){this.#i(t,a,r,i,1)}getRgbBuffer(t,a,r,i,n,s,o){let l=1/((1<<s)-1);for(let s=0;s<r;++s)this.#i(t,a,i,n,l),a+=1,n+=3+o}getOutputLength(t,a){return t*(3+a)}}class tc extends te{static #n=new Float32Array([.8951,.2664,-.1614,-.7502,1.7135,.0367,.0389,-.0685,1.0296]);static #s=new Float32Array([.9869929,-.1470543,.1599627,.4323053,.5183603,.0492912,-.0085287,.0400428,.9684867]);static #o=new Float32Array([3.2404542,-1.5371385,-.4985314,-.969266,1.8760108,.041556,.0556434,-.2040259,1.0572252]);static #l=new Float32Array([1,1,1]);static #c=new Float32Array(3);static #h=new Float32Array(3);static #u=new Float32Array(3);static #f=(24/116)**3/8;constructor(t,a,r,i){if(super("CalRGB",3),!t)throw new N("WhitePoint missing - required for color space CalRGB");let[n,s,o]=this.whitePoint=t,[l,c,h]=this.blackPoint=a||new Float32Array(3);if([this.GR,this.GG,this.GB]=r||new Float32Array([1,1,1]),[this.MXA,this.MYA,this.MZA,this.MXB,this.MYB,this.MZB,this.MXC,this.MYC,this.MZC]=i||new Float32Array([1,0,0,0,1,0,0,0,1]),n<0||o<0||1!==s)throw new N(`Invalid WhitePoint components for ${this.name}, no fallback available`);(l<0||c<0||h<0)&&(k(`Invalid BlackPoint for ${this.name} [${l}, ${c}, ${h}], falling back to default.`),this.blackPoint=new Float32Array(3)),(this.GR<0||this.GG<0||this.GB<0)&&(k(`Invalid Gamma [${this.GR}, ${this.GG}, ${this.GB}] for ${this.name}, falling back to default.`),this.GR=this.GG=this.GB=1)}#d(t,a,r){r[0]=t[0]*a[0]+t[1]*a[1]+t[2]*a[2],r[1]=t[3]*a[0]+t[4]*a[1]+t[5]*a[2],r[2]=t[6]*a[0]+t[7]*a[1]+t[8]*a[2]}#g(t,a,r){r[0]=1*a[0]/t[0],r[1]=1*a[1]/t[1],r[2]=1*a[2]/t[2]}#p(t,a,r){r[0]=.95047*a[0]/t[0],r[1]=1*a[1]/t[1],r[2]=1.08883*a[2]/t[2]}#m(t){return t<=.0031308?K(12.92*t,0,1):t>=.99554525?1:K(1.055*t**(1/2.4)-.055,0,1)}#b(t){return t<0?-this.#b(-t):t>8?((t+16)/116)**3:t*tc.#f}#y(t,a,r){if(0===t[0]&&0===t[1]&&0===t[2]){r[0]=a[0],r[1]=a[1],r[2]=a[2];return}let i=this.#b(0),n=(1-i)/(1-this.#b(t[0])),s=(1-i)/(1-this.#b(t[1])),o=(1-i)/(1-this.#b(t[2]));r[0]=a[0]*n+(1-n),r[1]=a[1]*s+(1-s),r[2]=a[2]*o+(1-o)}#w(t,a,r){if(1===t[0]&&1===t[2]){r[0]=a[0],r[1]=a[1],r[2]=a[2];return}this.#d(tc.#n,a,r);let i=tc.#c;this.#g(t,r,i),this.#d(tc.#s,i,r)}#x(t,a,r){this.#d(tc.#n,a,r);let i=tc.#c;this.#p(t,r,i),this.#d(tc.#s,i,r)}#i(t,a,r,i,n){let s=K(t[a]*n,0,1),o=K(t[a+1]*n,0,1),l=K(t[a+2]*n,0,1),c=1===s?1:s**this.GR,h=1===o?1:o**this.GG,u=1===l?1:l**this.GB,f=this.MXA*c+this.MXB*h+this.MXC*u,d=this.MYA*c+this.MYB*h+this.MYC*u,g=this.MZA*c+this.MZB*h+this.MZC*u,p=tc.#h;p[0]=f,p[1]=d,p[2]=g;let m=tc.#u;this.#w(this.whitePoint,p,m);let b=tc.#h;this.#y(this.blackPoint,m,b);let y=tc.#u;this.#x(tc.#l,b,y);let w=tc.#h;this.#d(tc.#o,y,w),r[i]=255*this.#m(w[0]),r[i+1]=255*this.#m(w[1]),r[i+2]=255*this.#m(w[2])}getRgbItem(t,a,r,i){this.#i(t,a,r,i,1)}getRgbBuffer(t,a,r,i,n,s,o){let l=1/((1<<s)-1);for(let s=0;s<r;++s)this.#i(t,a,i,n,l),a+=3,n+=3+o}getOutputLength(t,a){return t*(3+a)/3|0}}class th extends te{constructor(t,a,r){if(super("Lab",3),!t)throw new N("WhitePoint missing - required for color space Lab");if([this.XW,this.YW,this.ZW]=t,[this.amin,this.amax,this.bmin,this.bmax]=r||[-100,100,-100,100],[this.XB,this.YB,this.ZB]=a||[0,0,0],this.XW<0||this.ZW<0||1!==this.YW)throw new N("Invalid WhitePoint components, no fallback available");(this.XB<0||this.YB<0||this.ZB<0)&&(k("Invalid BlackPoint, falling back to default"),this.XB=this.YB=this.ZB=0),(this.amin>this.amax||this.bmin>this.bmax)&&(k("Invalid Range, falling back to defaults"),this.amin=-100,this.amax=100,this.bmin=-100,this.bmax=100)}#k(t){return t>=6/29?t**3:108/841*(t-4/29)}#v(t,a,r,i){return r+t*(i-r)/a}#i(t,a,r,i,n){let s,o,l,c=t[a],h=t[a+1],u=t[a+2];!1!==r&&(c=this.#v(c,r,0,100),h=this.#v(h,r,this.amin,this.amax),u=this.#v(u,r,this.bmin,this.bmax)),h>this.amax?h=this.amax:h<this.amin&&(h=this.amin),u>this.bmax?u=this.bmax:u<this.bmin&&(u=this.bmin);let f=(c+16)/116,d=f+h/500,g=f-u/200,p=this.XW*this.#k(d),m=this.YW*this.#k(f),b=this.ZW*this.#k(g);this.ZW<1?(s=3.1339*p+-1.617*m+-.4906*b,o=-.9785*p+1.916*m+.0333*b,l=.072*p+-.229*m+1.4057*b):(s=3.2406*p+-1.5372*m+-.4986*b,o=-.9689*p+1.8758*m+.0415*b,l=.0557*p+-.204*m+1.057*b),i[n]=255*Math.sqrt(s),i[n+1]=255*Math.sqrt(o),i[n+2]=255*Math.sqrt(l)}getRgbItem(t,a,r,i){this.#i(t,a,!1,r,i)}getRgbBuffer(t,a,r,i,n,s,o){let l=(1<<s)-1;for(let s=0;s<r;s++)this.#i(t,a,l,i,n),a+=3,n+=3+o}getOutputLength(t,a){return t*(3+a)/3|0}isDefaultDecode(t,a){return!0}get usesZeroToOneRange(){return I(this,"usesZeroToOneRange",!1)}}function tu(t){let a=new XMLHttpRequest;return a.open("GET",t,!1),a.responseType="arraybuffer",a.send(null),a.response}class tf extends te{#A;#C;static #S=!0;static #I=null;static #T=null;constructor(t,a,r){let n;if(!tf.isUsable)throw Error("No ICC color space support");switch(super(a,r),r){case 1:n=e3.Gray8,this.#C=(t,a,r)=>{var n,s;return n=this.#A,s=255*t[a],void i.qcms_convert_one(n,s,r)};break;case 3:n=e3.RGB8,this.#C=(t,a,r)=>{var n,s,o,l;return n=this.#A,s=255*t[a],o=255*t[a+1],l=255*t[a+2],void i.qcms_convert_three(n,s,o,l,r)};break;case 4:n=e3.CMYK,this.#C=(t,a,r)=>{var n,s,o,l,c;return n=this.#A,s=255*t[a],o=255*t[a+1],l=255*t[a+2],c=255*t[a+3],void i.qcms_convert_four(n,s,o,l,c,r)};break;default:throw Error(`Unsupported number of components: ${r}`)}if(this.#A=function(t,a,r){let n=e5(t,i.__wbindgen_malloc),s=e9;return i.qcms_transformer_from_memory(n,s,a,r)>>>0}(t,n,e6.Perceptual),!this.#A)throw Error("Failed to create ICC color space");tf.#T||=new FinalizationRegistry(t=>{i.qcms_drop_transformer(t)}),tf.#T.register(this,this.#A)}getRgbHex(t,a){return this.#C(t,a,!0),eQ._cssColor}getRgbItem(t,a,r,i){eQ._destBuffer=r,eQ._destOffset=i,eQ._destLength=3,this.#C(t,a,!1),eQ._destBuffer=null}getRgbBuffer(t,a,r,n,s,o,l){if(t=t.subarray(a,a+r*this.numComps),8!==o){let a=255/((1<<o)-1);for(let r=0,i=t.length;r<i;r++)t[r]*=a}eQ._mustAddAlpha=l&&n.buffer===t.buffer,eQ._destBuffer=n,eQ._destOffset=s,eQ._destLength=r*(3+l),function(t,a){let r=e5(a,i.__wbindgen_malloc),n=e9;i.qcms_convert_array(t,r,n)}(this.#A,t),eQ._mustAddAlpha=!1,eQ._destBuffer=null}getOutputLength(t,a){return t/this.numComps*(3+a)|0}static setOptions({useWasm:t,useWorkerFetch:a,wasmUrl:r}){a?(this.#S=t,this.#I=r):this.#S=!1}static get isUsable(){let t=!1;if(this.#S){if(this.#I)try{this._module=function(t){if(void 0!==i)return i;void 0!==t&&(Object.getPrototypeOf(t)===Object.prototype?{module:t}=t:console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));let a=e7();return t instanceof WebAssembly.Module||(t=new WebAssembly.Module(t)),e8(new WebAssembly.Instance(t,a),t)}({module:tu(`${this.#I}qcms_bg.wasm`)}),t=!!this._module,eQ._memory=this._module.memory,eQ._makeHexColor=j.makeHexColor}catch(t){v(`ICCBased color space: "${t}".`)}else v("No ICC color space support due to missing `wasmUrl` API option")}return I(this,"isUsable",t)}}class td extends tf{static #B;constructor(){super(new Uint8Array(tu(`${td.#B}CGATS001Compat-v2-micro.icc`)),"DeviceCMYK",4)}static setOptions({iccUrl:t}){this.#B=t}static get isUsable(){let t=!1;return tf.isUsable&&(this.#B?t=!0:v("No CMYK ICC profile support due to missing `iccUrl` API option")),I(this,"isUsable",t)}}class tg extends ed{constructor(t,a,r,i){super(),this.bytes=t instanceof Uint8Array?t:new Uint8Array(t),this.start=a||0,this.pos=this.start,this.end=a+r||this.bytes.length,this.dict=i}get length(){return this.end-this.start}get isEmpty(){return 0===this.length}getByte(){return this.pos>=this.end?-1:this.bytes[this.pos++]}getBytes(t){let a=this.bytes,r=this.pos,i=this.end;if(!t)return a.subarray(r,i);let n=r+t;return n>i&&(n=i),this.pos=n,a.subarray(r,n)}getByteRange(t,a){return t<0&&(t=0),a>this.end&&(a=this.end),this.bytes.subarray(t,a)}reset(){this.pos=this.start}moveStart(){this.start=this.pos}makeSubStream(t,a,r=null){return new tg(this.bytes.buffer,t,a,r)}clone(){return new tg(this.bytes.buffer,this.start,this.end-this.start,this.dict.clone())}}class tp extends tg{constructor(t){super(E(t))}}class tm extends tg{constructor(){super(new Uint8Array(0))}}class tb extends tg{constructor(t,a,r){super(new Uint8Array(t),0,t,null),this.chunkSize=a,this._loadedChunks=new Set,this.numChunks=Math.ceil(t/a),this.manager=r,this.progressiveDataLength=0,this.lastSuccessfulEnsureByteChunk=-1}getMissingChunks(){let t=[];for(let a=0,r=this.numChunks;a<r;++a)this._loadedChunks.has(a)||t.push(a);return t}get numChunksLoaded(){return this._loadedChunks.size}get isDataLoaded(){return this.numChunksLoaded===this.numChunks}onReceiveData(t,a){let r=this.chunkSize;if(t%r!=0)throw Error(`Bad begin offset: ${t}`);let i=t+a.byteLength;if(i%r!=0&&i!==this.bytes.length)throw Error(`Bad end offset: ${i}`);this.bytes.set(new Uint8Array(a),t);let n=Math.floor(t/r),s=Math.floor((i-1)/r)+1;for(let t=n;t<s;++t)this._loadedChunks.add(t)}onReceiveProgressiveData(t){let a=this.progressiveDataLength,r=Math.floor(a/this.chunkSize);this.bytes.set(new Uint8Array(t),a),a+=t.byteLength,this.progressiveDataLength=a;let i=a>=this.end?this.numChunks:Math.floor(a/this.chunkSize);for(let t=r;t<i;++t)this._loadedChunks.add(t)}ensureByte(t){if(t<this.progressiveDataLength)return;let a=Math.floor(t/this.chunkSize);if(!(a>this.numChunks)&&a!==this.lastSuccessfulEnsureByteChunk){if(!this._loadedChunks.has(a))throw new ex(t,t+1);this.lastSuccessfulEnsureByteChunk=a}}ensureRange(t,a){if(t>=a||a<=this.progressiveDataLength)return;let r=Math.floor(t/this.chunkSize);if(r>this.numChunks)return;let i=Math.min(Math.floor((a-1)/this.chunkSize)+1,this.numChunks);for(let n=r;n<i;++n)if(!this._loadedChunks.has(n))throw new ex(t,a)}nextEmptyChunk(t){let a=this.numChunks;for(let r=0;r<a;++r){let i=(t+r)%a;if(!this._loadedChunks.has(i))return i}return null}hasChunk(t){return this._loadedChunks.has(t)}getByte(){let t=this.pos;return t>=this.end?-1:(t>=this.progressiveDataLength&&this.ensureByte(t),this.bytes[this.pos++])}getBytes(t){let a=this.bytes,r=this.pos,i=this.end;if(!t)return i>this.progressiveDataLength&&this.ensureRange(r,i),a.subarray(r,i);let n=r+t;return n>i&&(n=i),n>this.progressiveDataLength&&this.ensureRange(r,n),this.pos=n,a.subarray(r,n)}getByteRange(t,a){return t<0&&(t=0),a>this.end&&(a=this.end),a>this.progressiveDataLength&&this.ensureRange(t,a),this.bytes.subarray(t,a)}makeSubStream(t,a,r=null){function i(){}a?t+a>this.progressiveDataLength&&this.ensureRange(t,t+a):t>=this.progressiveDataLength&&this.ensureByte(t),i.prototype=Object.create(this),i.prototype.getMissingChunks=function(){let t=this.chunkSize,a=Math.floor(this.start/t),r=Math.floor((this.end-1)/t)+1,i=[];for(let t=a;t<r;++t)this._loadedChunks.has(t)||i.push(t);return i},Object.defineProperty(i.prototype,"isDataLoaded",{get(){return this.numChunksLoaded===this.numChunks||0===this.getMissingChunks().length},configurable:!0});let n=new i;return n.pos=n.start=t,n.end=t+a||this.end,n.dict=r,n}getBaseStreams(){return[this]}}class ty{constructor(t,a){this.length=a.length,this.chunkSize=a.rangeChunkSize,this.stream=new tb(this.length,this.chunkSize,this),this.pdfNetworkStream=t,this.disableAutoFetch=a.disableAutoFetch,this.msgHandler=a.msgHandler,this.currRequestId=0,this._chunksNeededByRequest=new Map,this._requestsByChunk=new Map,this._promisesByRequest=new Map,this.progressiveDataLength=0,this.aborted=!1,this._loadedStreamCapability=Promise.withResolvers()}sendRequest(t,a){let r=this.pdfNetworkStream.getRangeReader(t,a);r.isStreamingSupported||(r.onProgress=this.onProgress.bind(this));let i=[],n=0;return new Promise((t,a)=>{let s=({value:o,done:l})=>{try{if(l){let a=eC(i);i=null,t(a);return}n+=o.byteLength,r.isStreamingSupported&&this.onProgress({loaded:n}),i.push(o),r.read().then(s,a)}catch(t){a(t)}};r.read().then(s,a)}).then(a=>{this.aborted||this.onReceiveData({chunk:a,begin:t})})}requestAllChunks(t=!1){if(!t){let t=this.stream.getMissingChunks();this._requestChunks(t)}return this._loadedStreamCapability.promise}_requestChunks(t){let a=this.currRequestId++,r=new Set;for(let i of(this._chunksNeededByRequest.set(a,r),t))this.stream.hasChunk(i)||r.add(i);if(0===r.size)return Promise.resolve();let i=Promise.withResolvers();this._promisesByRequest.set(a,i);let n=[];for(let t of r){let r=this._requestsByChunk.get(t);r||(r=[],this._requestsByChunk.set(t,r),n.push(t)),r.push(a)}if(n.length>0){let t=this.groupChunks(n);for(let a of t){let t=a.beginChunk*this.chunkSize,r=Math.min(a.endChunk*this.chunkSize,this.length);this.sendRequest(t,r).catch(i.reject)}}return i.promise.catch(t=>{if(!this.aborted)throw t})}getStream(){return this.stream}requestRange(t,a){a=Math.min(a,this.length);let r=this.getBeginChunk(t),i=this.getEndChunk(a),n=[];for(let t=r;t<i;++t)n.push(t);return this._requestChunks(n)}requestRanges(t=[]){let a=[];for(let r of t){let t=this.getBeginChunk(r.begin),i=this.getEndChunk(r.end);for(let r=t;r<i;++r)a.includes(r)||a.push(r)}return a.sort((t,a)=>t-a),this._requestChunks(a)}groupChunks(t){let a=[],r=-1,i=-1;for(let n=0,s=t.length;n<s;++n){let s=t[n];r<0&&(r=s),i>=0&&i+1!==s&&(a.push({beginChunk:r,endChunk:i+1}),r=s),n+1===t.length&&a.push({beginChunk:r,endChunk:s+1}),i=s}return a}onProgress(t){this.msgHandler.send("DocProgress",{loaded:this.stream.numChunksLoaded*this.chunkSize+t.loaded,total:this.length})}onReceiveData(t){let a=t.chunk,r=void 0===t.begin,i=r?this.progressiveDataLength:t.begin,n=i+a.byteLength,s=Math.floor(i/this.chunkSize),o=n<this.length?Math.floor(n/this.chunkSize):Math.ceil(n/this.chunkSize);r?(this.stream.onReceiveProgressiveData(a),this.progressiveDataLength=n):this.stream.onReceiveData(i,a),this.stream.isDataLoaded&&this._loadedStreamCapability.resolve(this.stream);let l=[];for(let t=s;t<o;++t){let a=this._requestsByChunk.get(t);if(a)for(let r of(this._requestsByChunk.delete(t),a)){let a=this._chunksNeededByRequest.get(r);a.has(t)&&a.delete(t),a.size>0||l.push(r)}}if(!this.disableAutoFetch&&0===this._requestsByChunk.size){let t;if(1===this.stream.numChunksLoaded){let a=this.stream.numChunks-1;this.stream.hasChunk(a)||(t=a)}else t=this.stream.nextEmptyChunk(o);Number.isInteger(t)&&this._requestChunks([t])}for(let t of l){let a=this._promisesByRequest.get(t);this._promisesByRequest.delete(t),a.resolve()}this.msgHandler.send("DocProgress",{loaded:this.stream.numChunksLoaded*this.chunkSize,total:this.length})}onError(t){this._loadedStreamCapability.reject(t)}getBeginChunk(t){return Math.floor(t/this.chunkSize)}getEndChunk(t){return Math.floor((t-1)/this.chunkSize)+1}abort(t){for(let a of(this.aborted=!0,this.pdfNetworkStream?.cancelAllRequests(t),this._promisesByRequest.values()))a.reject(t)}}function tw(t){switch(t.kind){case 1:return tx(t);case 2:return function({src:t,srcPos:a=0,dest:r,destPos:i=0,width:n,height:s}){let o=0,l=n*s*3,c=l>>2,h=new Uint32Array(t.buffer,a,c);if(L.isLittleEndian){for(;o<c-2;o+=3,i+=4){let t=h[o],a=h[o+1],n=h[o+2];r[i]=4278190080|t,r[i+1]=t>>>24|a<<8|4278190080,r[i+2]=a>>>16|n<<16|4278190080,r[i+3]=n>>>8|4278190080}for(let n=4*o,s=a+l;n<s;n+=3)r[i++]=t[n]|t[n+1]<<8|t[n+2]<<16|4278190080}else{for(;o<c-2;o+=3,i+=4){let t=h[o],a=h[o+1],n=h[o+2];r[i]=255|t,r[i+1]=t<<24|a>>>8|255,r[i+2]=a<<16|n>>>16|255,r[i+3]=n<<8|255}for(let n=4*o,s=a+l;n<s;n+=3)r[i++]=t[n]<<24|t[n+1]<<16|t[n+2]<<8|255}return{srcPos:a+l,destPos:i}}(t)}return null}function tx({src:t,srcPos:a=0,dest:r,width:i,height:n,nonBlackColor:s=4294967295,inverseDecode:o=!1}){let l=L.isLittleEndian?4278190080:255,[c,h]=o?[s,l]:[l,s],u=i>>3,f=7&i,d=t.length;r=new Uint32Array(r.buffer);let g=0;for(let i=0;i<n;i++){for(let i=a+u;a<i;a++){let i=a<d?t[a]:255;r[g++]=128&i?h:c,r[g++]=64&i?h:c,r[g++]=32&i?h:c,r[g++]=16&i?h:c,r[g++]=8&i?h:c,r[g++]=4&i?h:c,r[g++]=2&i?h:c,r[g++]=1&i?h:c}if(0===f)continue;let i=a<d?t[a++]:255;for(let t=0;t<f;t++)r[g++]=i&1<<7-t?h:c}return{srcPos:a,destPos:g}}class tk{static #F=2048;static #M=L.isImageDecoderSupported;constructor(t,a){this._imgData=t,this._isMask=a}static get canUseImageDecoder(){return I(this,"canUseImageDecoder",this.#M?ImageDecoder.isTypeSupported("image/bmp"):Promise.resolve(!1))}static needsToBeResized(t,a){if(t<=this.#F&&a<=this.#F)return!1;let{MAX_DIM:r}=this;if(t>r||a>r)return!0;let i=t*a;return this._hasMaxArea?i>this.MAX_AREA:!(i<this.#F**2)&&(this._areGoodDims(t,a)?(this.#F=Math.max(this.#F,Math.floor(Math.sqrt(t*a))),!1):(this.#F=this._guessMax(this.#F,r,128,0),i>(this.MAX_AREA=this.#F**2)))}static getReducePowerForJPX(t,a,r){let i=t*a,n=1073741824/(4*r);if(!this.needsToBeResized(t,a))return i>n?Math.ceil(Math.log2(i/n)):0;let{MAX_DIM:s,MAX_AREA:o}=this,l=Math.max(t/s,a/s,Math.sqrt(i/Math.min(n,o)));return Math.ceil(Math.log2(l))}static get MAX_DIM(){return I(this,"MAX_DIM",this._guessMax(2048,65537,0,1))}static get MAX_AREA(){return this._hasMaxArea=!0,I(this,"MAX_AREA",this._guessMax(this.#F,this.MAX_DIM,128,0)**2)}static set MAX_AREA(t){t>=0&&(this._hasMaxArea=!0,I(this,"MAX_AREA",t))}static setOptions({canvasMaxAreaInBytes:t=-1,isImageDecoderSupported:a=!1}){this._hasMaxArea||(this.MAX_AREA=t>>2),this.#M=a}static _areGoodDims(t,a){try{let r=new OffscreenCanvas(t,a),i=r.getContext("2d");i.fillRect(0,0,1,1);let n=i.getImageData(0,0,1,1).data[3];return r.width=r.height=1,0!==n}catch{return!1}}static _guessMax(t,a,r,i){for(;t+r+1<a;){let r=Math.floor((t+a)/2),n=i||r;this._areGoodDims(r,n)?t=r:a=r}return t}static async createImage(t,a=!1){return new tk(t,a)._createImage()}async _createImage(){let t,a;let{_imgData:r}=this,{width:i,height:n}=r;if(i*n*4>ep){let t=this.#R();if(t)return t}let s=this._encodeBMP();a=await tk.canUseImageDecoder?(t=new ImageDecoder({data:s,type:"image/bmp",preferAnimation:!1,transfer:[s.buffer]})).decode().catch(t=>(v(`BMP image decoding failed: ${t}`),createImageBitmap(new Blob([this._encodeBMP().buffer],{type:"image/bmp"})))).finally(()=>{t.close()}):createImageBitmap(new Blob([s.buffer],{type:"image/bmp"}));let{MAX_AREA:o,MAX_DIM:l}=tk,c=Math.max(i/l,n/l,Math.sqrt(i*n/o)),h=Math.max(c,2),u=Math.round(10*(c+1.25))/10/h,f=Math.floor(Math.log2(u)),d=Array(f+2).fill(2);d[0]=h,d.splice(-1,1,u/(1<<f));let g=i,p=n,m=await a,b=m.image||m;for(let t of d){let a=g,r=p;g=Math.floor(g/t)-1,p=Math.floor(p/t)-1;let i=new OffscreenCanvas(g,p);i.getContext("2d").drawImage(b,0,0,a,r,0,0,g,p),b.close(),b=i.transferToImageBitmap()}return r.data=null,r.bitmap=b,r.width=g,r.height=p,r}#R(){let{_imgData:t}=this,{data:a,width:r,height:i,kind:n}=t,s=r*i*4,o=Math.ceil(Math.log2(s/ep)),l=r>>o,c=i>>o,h,u=i;try{h=new Uint8Array(s)}catch{let t=Math.floor(Math.log2(s+1));for(;;)try{h=new Uint8Array(2**t-1);break}catch{t-=1}u=Math.floor((2**t-1)/(4*r));let a=r*u*4;a<h.length&&(h=new Uint8Array(a))}let f=new Uint32Array(h.buffer),d=new Uint32Array(l*c),g=0,p=0,m=Math.ceil(i/u),b=i%u==0?i:i%u;for(let t=0;t<m;t++){let i=t<m-1?u:b;({srcPos:g}=tw({kind:n,src:a,dest:f,width:r,height:i,inverseDecode:this._isMask,srcPos:g}));for(let t=0,a=i>>o;t<a;t++){let a=f.subarray((t<<o)*r);for(let t=0;t<l;t++)d[p++]=a[t<<o]}}if(tk.needsToBeResized(l,c))return t.data=d,t.width=l,t.height=c,t.kind=3,null;let y=new OffscreenCanvas(l,c);return y.getContext("2d",{willReadFrequently:!0}).putImageData(new ImageData(new Uint8ClampedArray(d.buffer),l,c),0,0),t.data=null,t.bitmap=y.transferToImageBitmap(),t.width=l,t.height=c,t}_encodeBMP(){let{width:t,height:a,kind:r}=this._imgData,i,n=this._imgData.data,s=new Uint8Array(0),o=s,l=0;switch(r){case 1:{i=1,s=new Uint8Array(this._isMask?[255,255,255,255,0,0,0,0]:[0,0,0,0,255,255,255,255]);let r=t+7>>3,o=r+3&-4;if(r!==o){let t=new Uint8Array(o*a),i=0;for(let s=0,l=a*r;s<l;s+=r,i+=o)t.set(n.subarray(s,s+r),i);n=t}break}case 2:if(i=24,3&t){let r=3*t,i=r+3&-4,s=i-r,o=new Uint8Array(i*a),l=0;for(let t=0,i=a*r;t<i;t+=r){let a=n.subarray(t,t+r);for(let t=0;t<r;t+=3)o[l++]=a[t+2],o[l++]=a[t+1],o[l++]=a[t];l+=s}n=o}else for(let t=0,a=n.length;t<a;t+=3){let a=n[t];n[t]=n[t+2],n[t+2]=a}break;case 3:i=32,l=3,o=new Uint8Array(68);let c=new DataView(o.buffer);L.isLittleEndian?(c.setUint32(0,255,!0),c.setUint32(4,65280,!0),c.setUint32(8,16711680,!0),c.setUint32(12,4278190080,!0)):(c.setUint32(0,4278190080,!0),c.setUint32(4,16711680,!0),c.setUint32(8,65280,!0),c.setUint32(12,255,!0));break;default:throw Error("invalid format")}let h=0,u=40+o.length,f=14+u+s.length+n.length,d=new Uint8Array(f),g=new DataView(d.buffer);return g.setUint16(h,19778,!0),h+=2,g.setUint32(h,f,!0),h+=4,g.setUint32(h,0,!0),h+=4,g.setUint32(h,14+u+s.length,!0),h+=4,g.setUint32(h,u,!0),h+=4,g.setInt32(h,t,!0),h+=4,g.setInt32(h,-a,!0),h+=4,g.setUint16(h,1,!0),h+=2,g.setUint16(h,i,!0),h+=2,g.setUint32(h,l,!0),h+=4,g.setUint32(h,0,!0),h+=4,g.setInt32(h,0,!0),h+=4,g.setInt32(h,0,!0),h+=4,g.setUint32(h,s.length/4,!0),h+=4,g.setUint32(h,0,!0),h+=4,d.set(o,h),h+=o.length,d.set(s,h),h+=s.length,d.set(n,h),d}}let tv=new Uint8Array(0);class tA extends ed{constructor(t){if(super(),this._rawMinBufferLength=t||0,this.pos=0,this.bufferLength=0,this.eof=!1,this.buffer=tv,this.minBufferLength=512,t)for(;this.minBufferLength<t;)this.minBufferLength*=2}get isEmpty(){for(;!this.eof&&0===this.bufferLength;)this.readBlock();return 0===this.bufferLength}ensureBuffer(t){let a=this.buffer;if(t<=a.byteLength)return a;let r=this.minBufferLength;for(;r<t;)r*=2;let i=new Uint8Array(r);return i.set(a),this.buffer=i}getByte(){let t=this.pos;for(;this.bufferLength<=t;){if(this.eof)return -1;this.readBlock()}return this.buffer[this.pos++]}getBytes(t,a=null){let r;let i=this.pos;if(t){for(this.ensureBuffer(i+t),r=i+t;!this.eof&&this.bufferLength<r;)this.readBlock(a);let n=this.bufferLength;r>n&&(r=n)}else{for(;!this.eof;)this.readBlock(a);r=this.bufferLength}return this.pos=r,this.buffer.subarray(i,r)}async getImageData(t,a){if(!this.canAsyncDecodeImageFromBuffer)return this.isAsyncDecoder?this.decodeImage(null,a):this.getBytes(t,a);let r=await this.stream.asyncGetBytes();return this.decodeImage(r,a)}reset(){this.pos=0}makeSubStream(t,a,r=null){if(void 0===a)for(;!this.eof;)this.readBlock();else{let r=t+a;for(;this.bufferLength<=r&&!this.eof;)this.readBlock()}return new tg(this.buffer,t,a,r)}getBaseStreams(){return this.stream?this.stream.getBaseStreams():null}clone(){for(;!this.eof;)this.readBlock();return new tg(this.buffer,this.start,this.end-this.start,this.dict.clone())}}class tC extends tA{constructor(t,a=null){t=t.filter(t=>t instanceof ed);let r=0;for(let a of t)r+=a instanceof tA?a._rawMinBufferLength:a.length;super(r),this.streams=t,this._onError=a}readBlock(){let t;let a=this.streams;if(0===a.length){this.eof=!0;return}let r=a.shift();try{t=r.getBytes()}catch(t){if(this._onError){this._onError(t,r.dict?.objId);return}throw t}let i=this.bufferLength,n=i+t.length;this.ensureBuffer(n).set(t,i),this.bufferLength=n}getBaseStreams(){let t=[];for(let a of this.streams){let r=a.getBaseStreams();r&&t.push(...r)}return t.length>0?t:null}}class tS{static parse({cs:t,xref:a,resources:r=null,pdfFunctionFactory:i,globalColorSpaceCache:n,localColorSpaceCache:s,asyncIfNotCached:o=!1}){let l,c,h;if(t instanceof es){c=t;let r=n.getByRef(c)||s.getByRef(c);if(r)return r;t=a.fetch(t)}if(t instanceof ea){l=t.name;let a=s.getByName(l);if(a)return a}try{h=this.#N(t,{xref:a,resources:r,pdfFunctionFactory:i,globalColorSpaceCache:n,localColorSpaceCache:s})}catch(t){if(o&&!(t instanceof ex))return Promise.reject(t);throw t}return(l||c)&&(s.set(l,c,h),c&&n.set(null,c,h)),o?Promise.resolve(h):h}static #O(t,a){let r;let{globalColorSpaceCache:i}=a;if(t instanceof es){r=t;let a=i.getByRef(r);if(a)return a}let n=this.#N(t,a);return r&&i.set(null,r,n),n}static #N(t,a){let{xref:r,resources:i,pdfFunctionFactory:n,globalColorSpaceCache:s}=a;if((t=r.fetchIfRef(t))instanceof ea)switch(t.name){case"G":case"DeviceGray":return this.gray;case"RGB":case"DeviceRGB":return this.rgb;case"DeviceRGBA":return this.rgba;case"CMYK":case"DeviceCMYK":return this.cmyk;case"Pattern":return new ta(null);default:if(i instanceof en){let r=i.get("ColorSpace");if(r instanceof en){let i=r.get(t.name);if(i){if(i instanceof ea)return this.#N(i,a);t=i;break}}}return v(`Unrecognized ColorSpace: ${t.name}`),this.gray}if(Array.isArray(t)){let i,o,l,c,h,u;let f=r.fetchIfRef(t[0]).name;switch(f){case"G":case"DeviceGray":return this.gray;case"RGB":case"DeviceRGB":return this.rgb;case"CMYK":case"DeviceCMYK":return this.cmyk;case"CalGray":return new tl(c=(i=r.fetchIfRef(t[1])).getArray("WhitePoint"),h=i.getArray("BlackPoint"),u=i.get("Gamma"));case"CalRGB":c=(i=r.fetchIfRef(t[1])).getArray("WhitePoint"),h=i.getArray("BlackPoint"),u=i.getArray("Gamma");let d=i.getArray("Matrix");return new tc(c,h,u,d);case"ICCBased":let g=t[1]instanceof es;if(g){let a=s.getByRef(t[1]);if(a)return a}let p=r.fetchIfRef(t[1]),m=p.dict;if(o=m.get("N"),tf.isUsable)try{let a=new tf(p.getBytes(),"ICCBased",o);return g&&s.set(null,t[1],a),a}catch(a){if(a instanceof ex)throw a;v(`ICCBased color space (${t[1]}): "${a}".`)}let b=m.getRaw("Alternate");if(b){let t=this.#O(b,a);if(t.numComps===o)return t;v("ICCBased color space: Ignoring incorrect /Alternate entry.")}if(1===o)return this.gray;if(3===o)return this.rgb;if(4===o)return this.cmyk;break;case"Pattern":return(l=t[1]||null)&&(l=this.#O(l,a)),new ta(l);case"I":case"Indexed":l=this.#O(t[1],a);let y=K(r.fetchIfRef(t[2]),0,255),w=r.fetchIfRef(t[3]);return new tr(l,y,w);case"Separation":case"DeviceN":let x=r.fetchIfRef(t[1]);o=Array.isArray(x)?x.length:1,l=this.#O(t[2],a);let k=n.create(t[3]);return new tt(o,l,k);case"Lab":c=(i=r.fetchIfRef(t[1])).getArray("WhitePoint"),h=i.getArray("BlackPoint");let A=i.getArray("Range");return new th(c,h,A);default:return v(`Unimplemented ColorSpace object: ${f}`),this.gray}}return v(`Unrecognized ColorSpace object: ${t}`),this.gray}static get gray(){return I(this,"gray",new ti)}static get rgb(){return I(this,"rgb",new tn)}static get rgba(){return I(this,"rgba",new ts)}static get cmyk(){if(td.isUsable)try{return I(this,"cmyk",new td)}catch{v("CMYK fallback: DeviceCMYK")}return I(this,"cmyk",new to)}}class tI extends T{constructor(t){super(t,"JpegError")}}class tT extends T{constructor(t,a){super(t,"DNLMarkerError"),this.scanLines=a}}class tB extends T{constructor(t){super(t,"EOIMarkerError")}}let tF=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]);function tM(t,a,r){return 64*((t.blocksPerLine+1)*a+r)}function tR(t,a,r=a){let i=t.length-1,n=r<a?r:a;if(a>=i)return null;let s=eR(t,a);if(s>=65472&&s<=65534)return{invalid:null,marker:s,offset:a};let o=eR(t,n);for(;!(o>=65472&&o<=65534);){if(++n>=i)return null;o=eR(t,n)}return{invalid:s.toString(16),marker:o,offset:n}}function tN(t,a){let r=eR(t,a),i=(a+=2)+r-2,n=tR(t,i,a);n?.invalid&&(v("readDataBlock - incorrect length, current marker is: "+n.invalid),i=n.offset);let s=t.subarray(a,i);return{appData:s,oldOffset:a,newOffset:a+s.length}}class tO{constructor({decodeTransform:t=null,colorTransform:a=-1}={}){this._decodeTransform=t,this._colorTransform=a}static canUseImageDecoder(t,a=-1){let r=null,i=0,n=null,s=eR(t,0);if(i+=2,65496!==s)throw new tI("SOI not found");s=eR(t,i),i+=2;e:for(;65497!==s;){switch(s){case 65505:let{appData:a,oldOffset:o,newOffset:l}=tN(t,i);if(i=l,69===a[0]&&120===a[1]&&105===a[2]&&102===a[3]&&0===a[4]&&0===a[5]){if(r)throw new tI("Duplicate EXIF-blocks found.");r={exifStart:o+6,exifEnd:l}}s=eR(t,i),i+=2;continue;case 65472:case 65473:case 65474:n=t[i+7];break e;case 65535:255!==t[i]&&i--}i=function(t,a){let r=eR(t,a),i=(a+=2)+r-2,n=tR(t,i,a);return n?.invalid?n.offset:i}(t,i),s=eR(t,i),i+=2}return 4===n||3===n&&0===a?null:r||{}}parse(t,{dnlScanLines:a=null}={}){let r,i,n=0,s=null,o=null,l=0,c=[],h=[],u=[],f=eR(t,n);if(n+=2,65496!==f)throw new tI("SOI not found");f=eR(t,n),n+=2;e:for(;65497!==f;){let d,g,p;switch(f){case 65504:case 65505:case 65506:case 65507:case 65508:case 65509:case 65510:case 65511:case 65512:case 65513:case 65514:case 65515:case 65516:case 65517:case 65518:case 65519:case 65534:let{appData:m,newOffset:b}=tN(t,n);n=b,65504===f&&74===m[0]&&70===m[1]&&73===m[2]&&70===m[3]&&0===m[4]&&(s={version:{major:m[5],minor:m[6]},densityUnits:m[7],xDensity:m[8]<<8|m[9],yDensity:m[10]<<8|m[11],thumbWidth:m[12],thumbHeight:m[13],thumbData:m.subarray(14,14+3*m[12]*m[13])}),65518===f&&65===m[0]&&100===m[1]&&111===m[2]&&98===m[3]&&101===m[4]&&(o={version:m[5]<<8|m[6],flags0:m[7]<<8|m[8],flags1:m[9]<<8|m[10],transformCode:m[11]});break;case 65499:let y=eR(t,n);n+=2;let w=y+n-2;for(;n<w;){let a=t[n++],r=new Uint16Array(64);if(a>>4){if(a>>4!=1)throw new tI("DQT - invalid table spec");for(g=0;g<64;g++)r[tF[g]]=eR(t,n),n+=2}else for(g=0;g<64;g++)r[tF[g]]=t[n++];c[15&a]=r}break;case 65472:case 65473:case 65474:if(r)throw new tI("Only single frame JPEGs supported");n+=2,(r={}).extended=65473===f,r.progressive=65474===f,r.precision=t[n++];let x=eR(t,n);n+=2,r.scanLines=a||x,r.samplesPerLine=eR(t,n),n+=2,r.components=[],r.componentIds={};let k=t[n++],A=0,C=0;for(d=0;d<k;d++){let a=t[n],i=t[n+1]>>4,s=15&t[n+1];A<i&&(A=i),C<s&&(C=s);let o=t[n+2];p=r.components.push({h:i,v:s,quantizationId:o,quantizationTable:null}),r.componentIds[a]=p-1,n+=3}r.maxH=A,r.maxV=C,function(t){let a=Math.ceil(t.samplesPerLine/8/t.maxH),r=Math.ceil(t.scanLines/8/t.maxV);for(let i of t.components){let n=Math.ceil(Math.ceil(t.samplesPerLine/8)*i.h/t.maxH),s=Math.ceil(Math.ceil(t.scanLines/8)*i.v/t.maxV),o=a*i.h,l=64*(r*i.v)*(o+1);i.blockData=new Int16Array(l),i.blocksPerLine=n,i.blocksPerColumn=s}t.mcusPerLine=a,t.mcusPerColumn=r}(r);break;case 65476:let S=eR(t,n);for(n+=2,d=2;d<S;){let a=t[n++],r=new Uint8Array(16),i=0;for(g=0;g<16;g++,n++)i+=r[g]=t[n];let s=new Uint8Array(i);for(g=0;g<i;g++,n++)s[g]=t[n];d+=17+i,(a>>4?h:u)[15&a]=function(t,a){let r,i,n=0,s=16;for(;s>0&&!t[s-1];)s--;let o=[{children:[],index:0}],l,c=o[0];for(r=0;r<s;r++){for(i=0;i<t[r];i++){for((c=o.pop()).children[c.index]=a[n];c.index>0;)c=o.pop();for(c.index++,o.push(c);o.length<=r;)o.push(l={children:[],index:0}),c.children[c.index]=l.children,c=l;n++}r+1<s&&(o.push(l={children:[],index:0}),c.children[c.index]=l.children,c=l)}return o[0].children}(r,s)}break;case 65501:n+=2,i=eR(t,n),n+=2;break;case 65498:let I=1==++l&&!a;n+=2;let T=t[n++],B=[];for(d=0;d<T;d++){let a=t[n++],i=r.componentIds[a],s=r.components[i];s.index=a;let o=t[n++];s.huffmanTableDC=u[o>>4],s.huffmanTableAC=h[15&o],B.push(s)}let F=t[n++],M=t[n++],R=t[n++];try{n+=function(t,a,r,i,n,s,o,l,c,h=!1){let u,f,d,g,p,m,b,y;let w=r.mcusPerLine,x=r.progressive,k=a,A=0,C=0;function S(){if(C>0)return C--,A>>C&1;if(255===(A=t[a++])){let i=t[a++];if(i){if(220===i&&h){let i=eR(t,a+=2);if(a+=2,i>0&&i!==r.scanLines)throw new tT("Found DNL marker (0xFFDC) while parsing scan data",i)}else if(217===i){if(h){let t=N*(8===r.precision?8:0);if(t>0&&Math.round(r.scanLines/t)>=5)throw new tT("Found EOI marker (0xFFD9) while parsing scan data, possibly caused by incorrect `scanLines` parameter",t)}throw new tB("Found EOI marker (0xFFD9) while parsing scan data")}throw new tI(`unexpected marker ${(A<<8|i).toString(16)}`)}}return C=7,A>>>7}function I(t){let a=t;for(;;){switch(typeof(a=a[S()])){case"number":return a;case"object":continue}throw new tI("invalid huffman sequence")}}function T(t){let a=0;for(;t>0;)a=a<<1|S(),t--;return a}function B(t){if(1===t)return 1===S()?1:-1;let a=T(t);return a>=1<<t-1?a:a+(-1<<t)+1}let F=0,M,R=0,N=0,O=i.length;m=x?0===s?0===l?function(t,a){let r=I(t.huffmanTableDC),i=0===r?0:B(r)<<c;t.blockData[a]=t.pred+=i}:function(t,a){t.blockData[a]|=S()<<c}:0===l?function(t,a){if(F>0){F--;return}let r=s;for(;r<=o;){let i=I(t.huffmanTableAC),n=15&i,s=i>>4;if(0===n){if(s<15){F=T(s)+(1<<s)-1;break}r+=16;continue}r+=s;let o=tF[r];t.blockData[a+o]=B(n)*(1<<c),r++}}:function(t,a){let r=s,i,n,l=0;for(;r<=o;){let s=a+tF[r],o=t.blockData[s]<0?-1:1;switch(R){case 0:if(i=15&(n=I(t.huffmanTableAC)),l=n>>4,0===i)l<15?(F=T(l)+(1<<l),R=4):(l=16,R=1);else{if(1!==i)throw new tI("invalid ACn encoding");M=B(i),R=l?2:3}continue;case 1:case 2:t.blockData[s]?t.blockData[s]+=o*(S()<<c):0==--l&&(R=2===R?3:0);break;case 3:t.blockData[s]?t.blockData[s]+=o*(S()<<c):(t.blockData[s]=M<<c,R=0);break;case 4:t.blockData[s]&&(t.blockData[s]+=o*(S()<<c))}r++}4===R&&0==--F&&(R=0)}:function(t,a){let r=I(t.huffmanTableDC),i=0===r?0:B(r);t.blockData[a]=t.pred+=i;let n=1;for(;n<64;){let r=I(t.huffmanTableAC),i=15&r,s=r>>4;if(0===i){if(s<15)break;n+=16;continue}n+=s;let o=tF[n];t.blockData[a+o]=B(i),n++}};let D,E=0,P=1===O?i[0].blocksPerLine*i[0].blocksPerColumn:w*r.mcusPerColumn;for(;E<=P;){let r=n?Math.min(P-E,n):P;if(r>0){for(f=0;f<O;f++)i[f].pred=0;if(F=0,1===O)for(p=0,u=i[0];p<r;p++)(function(t,a,r){N=r/t.blocksPerLine|0;let i=r%t.blocksPerLine;a(t,tM(t,N,i))})(u,m,E),E++;else for(p=0;p<r;p++){for(f=0;f<O;f++)for(d=0,b=(u=i[f]).h,y=u.v;d<y;d++)for(g=0;g<b;g++)!function(t,a,r,i,n){N=(r/w|0)*t.v+i;let s=r%w*t.h+n;a(t,tM(t,N,s))}(u,m,E,d,g);E++}}if(C=0,!(D=tR(t,a))||(D.invalid&&(v(`decodeScan - ${r>0?"unexpected":"excessive"} MCU data, current marker is: ${D.invalid}`),a=D.offset),!(D.marker>=65488&&D.marker<=65495)))break;a+=2}return a-k}(t,n,r,B,i,F,M,R>>4,15&R,I)}catch(a){if(a instanceof tT)return v(`${a.message} -- attempting to re-parse the JPEG image.`),this.parse(t,{dnlScanLines:a.scanLines});if(a instanceof tB){v(`${a.message} -- ignoring the rest of the image data.`);break e}throw a}break;case 65500:n+=4;break;case 65535:255!==t[n]&&n--;break;default:let N=tR(t,n-2,n-3);if(N?.invalid){v("JpegImage.parse - unexpected data, current marker is: "+N.invalid),n=N.offset;break}if(!N||n>=t.length-1){v("JpegImage.parse - reached the end of the image data without finding an EOI marker (0xFFD9).");break e}throw new tI("JpegImage.parse - unknown marker: "+f.toString(16))}f=eR(t,n),n+=2}if(!r)throw new tI("JpegImage.parse - no frame data found.");for(let t of(this.width=r.samplesPerLine,this.height=r.scanLines,this.jfif=s,this.adobe=o,this.components=[],r.components)){let a=c[t.quantizationId];a&&(t.quantizationTable=a),this.components.push({index:t.index,output:function(t,a){let r=a.blocksPerLine,i=a.blocksPerColumn,n=new Int16Array(64);for(let t=0;t<i;t++)for(let i=0;i<r;i++)!function(t,a,r){let i,n,s,o,l,c,h,u,f,d,g,p,m,b,y,w,x;let k=t.quantizationTable,v=t.blockData;if(!k)throw new tI("missing required Quantization Table.");for(let t=0;t<64;t+=8)f=v[a+t],d=v[a+t+1],g=v[a+t+2],p=v[a+t+3],m=v[a+t+4],b=v[a+t+5],y=v[a+t+6],w=v[a+t+7],f*=k[t],0!=(d|g|p|m|b|y|w)?(d*=k[t+1],g*=k[t+2],p*=k[t+3],m*=k[t+4],b*=k[t+5],y*=k[t+6],w*=k[t+7],i=5793*f+128>>8,n=5793*m+128>>8,s=g,o=y,l=2896*(d-w)+128>>8,u=2896*(d+w)+128>>8,c=p<<4,h=b<<4,n=(i=i+n+1>>1)-n,x=3784*s+1567*o+128>>8,s=1567*s-3784*o+128>>8,o=x,h=(l=l+h+1>>1)-h,c=(u=u+c+1>>1)-c,o=(i=i+o+1>>1)-o,s=(n=n+s+1>>1)-s,x=2276*l+3406*u+2048>>12,l=3406*l-2276*u+2048>>12,u=x,x=799*c+4017*h+2048>>12,c=4017*c-799*h+2048>>12,h=x,r[t]=i+u,r[t+7]=i-u,r[t+1]=n+h,r[t+6]=n-h,r[t+2]=s+c,r[t+5]=s-c,r[t+3]=o+l,r[t+4]=o-l):(x=5793*f+512>>10,r[t]=x,r[t+1]=x,r[t+2]=x,r[t+3]=x,r[t+4]=x,r[t+5]=x,r[t+6]=x,r[t+7]=x);for(let t=0;t<8;++t)f=r[t],d=r[t+8],g=r[t+16],p=r[t+24],m=r[t+32],0!=(d|g|p|m|(b=r[t+40])|(y=r[t+48])|(w=r[t+56]))?(i=5793*f+2048>>12,n=5793*m+2048>>12,s=g,o=y,l=2896*(d-w)+2048>>12,u=2896*(d+w)+2048>>12,c=p,h=b,n=(i=4112+(i+n+1>>1))-n,x=3784*s+1567*o+2048>>12,s=1567*s-3784*o+2048>>12,o=x,h=(l=l+h+1>>1)-h,c=(u=u+c+1>>1)-c,o=(i=i+o+1>>1)-o,s=(n=n+s+1>>1)-s,x=2276*l+3406*u+2048>>12,l=3406*l-2276*u+2048>>12,u=x,x=799*c+4017*h+2048>>12,c=4017*c-799*h+2048>>12,h=x,f=i+u,w=i-u,d=n+h,y=n-h,g=s+c,b=s-c,f<16?f=0:f>=4080?f=255:f>>=4,d<16?d=0:d>=4080?d=255:d>>=4,g<16?g=0:g>=4080?g=255:g>>=4,(p=o+l)<16?p=0:p>=4080?p=255:p>>=4,(m=o-l)<16?m=0:m>=4080?m=255:m>>=4,b<16?b=0:b>=4080?b=255:b>>=4,y<16?y=0:y>=4080?y=255:y>>=4,w<16?w=0:w>=4080?w=255:w>>=4,v[a+t]=f,v[a+t+8]=d,v[a+t+16]=g,v[a+t+24]=p,v[a+t+32]=m,v[a+t+40]=b,v[a+t+48]=y,v[a+t+56]=w):(x=(x=5793*f+8192>>14)<-2040?0:x>=2024?255:x+2056>>4,v[a+t]=x,v[a+t+8]=x,v[a+t+16]=x,v[a+t+24]=x,v[a+t+32]=x,v[a+t+40]=x,v[a+t+48]=x,v[a+t+56]=x)}(a,tM(a,t,i),n);return a.blockData}(0,t),scaleX:t.h/r.maxH,scaleY:t.v/r.maxV,blocksPerLine:t.blocksPerLine,blocksPerColumn:t.blocksPerColumn})}this.numComponents=this.components.length}_getLinearizedBlockData(t,a,r=!1){let i;let n=this.width/t,s=this.height/a,o,l,c,h,u,f,d,g,p,m,b,y=0,w=this.components.length,x=t*a*w,k=new Uint8ClampedArray(x),v=new Uint32Array(t);for(d=0;d<w;d++){if(l=(o=this.components[d]).scaleX*n,c=o.scaleY*s,y=d,b=o.output,h=o.blocksPerLine+1<<3,l!==i){for(u=0;u<t;u++)g=0|u*l,v[u]=(4294967288&g)<<3|7&g;i=l}for(f=0;f<a;f++)for(u=0,m=h*(4294967288&(g=0|f*c))|(7&g)<<3;u<t;u++)k[y]=b[m+v[u]],y+=w}let A=this._decodeTransform;if(r||4!==w||A||(A=new Int32Array([-256,255,-256,255,-256,255,-256,255])),A)for(d=0;d<x;)for(g=0,p=0;g<w;g++,d++,p+=2)k[d]=(k[d]*A[p]>>8)+A[p+1];return k}get _isColorConversionNeeded(){return this.adobe?!!this.adobe.transformCode:3===this.numComponents?0!==this._colorTransform&&(82!==this.components[0].index||71!==this.components[1].index||66!==this.components[2].index):1===this._colorTransform}_convertYccToRgb(t){let a,r,i;for(let n=0,s=t.length;n<s;n+=3)a=t[n],r=t[n+1],i=t[n+2],t[n]=a-179.456+1.402*i,t[n+1]=a+135.459-.344*r-.714*i,t[n+2]=a-226.816+1.772*r;return t}_convertYccToRgba(t,a){for(let r=0,i=0,n=t.length;r<n;r+=3,i+=4){let n=t[r],s=t[r+1],o=t[r+2];a[i]=n-179.456+1.402*o,a[i+1]=n+135.459-.344*s-.714*o,a[i+2]=n-226.816+1.772*s,a[i+3]=255}return a}_convertYcckToRgb(t){return this._convertYcckToCmyk(t),this._convertCmykToRgb(t)}_convertYcckToRgba(t){return this._convertYcckToCmyk(t),this._convertCmykToRgba(t)}_convertYcckToCmyk(t){let a,r,i;for(let n=0,s=t.length;n<s;n+=4)a=t[n],r=t[n+1],i=t[n+2],t[n]=434.456-a-1.402*i,t[n+1]=119.541-a+.344*r+.714*i,t[n+2]=481.816-a-1.772*r;return t}_convertCmykToRgb(t){let a=t.length/4;return tS.cmyk.getRgbBuffer(t,0,a,t,0,8,0),t.subarray(0,3*a)}_convertCmykToRgba(t){if(tS.cmyk.getRgbBuffer(t,0,t.length/4,t,0,8,1),tS.cmyk instanceof to)for(let a=3,r=t.length;a<r;a+=4)t[a]=255;return t}getData({width:t,height:a,forceRGBA:r=!1,forceRGB:i=!1,isSourcePDF:n=!1}){if(this.numComponents>4)throw new tI("Unsupported color mode");let s=this._getLinearizedBlockData(t,a,n);if(1===this.numComponents&&(r||i)){let t=s.length*(r?4:3),a=new Uint8ClampedArray(t),i=0;if(r)!function(t,a){if(L.isLittleEndian)for(let r=0,i=t.length;r<i;r++)a[r]=65793*t[r]|4278190080;else for(let r=0,i=t.length;r<i;r++)a[r]=16843008*t[r]|255}(s,new Uint32Array(a.buffer));else for(let t of s)a[i++]=t,a[i++]=t,a[i++]=t;return a}if(3===this.numComponents&&this._isColorConversionNeeded){if(r){let t=new Uint8ClampedArray(s.length/3*4);return this._convertYccToRgba(s,t)}return this._convertYccToRgb(s)}if(4===this.numComponents){if(this._isColorConversionNeeded)return r?this._convertYcckToRgba(s):i?this._convertYcckToRgb(s):this._convertYcckToCmyk(s);if(r)return this._convertCmykToRgba(s);if(i)return this._convertCmykToRgb(s)}return s}}class tD extends tA{static #M=L.isImageDecoderSupported;constructor(t,a,r){super(a),this.stream=t,this.dict=t.dict,this.maybeLength=a,this.params=r}static get canUseImageDecoder(){return I(this,"canUseImageDecoder",this.#M?ImageDecoder.isTypeSupported("image/jpeg"):Promise.resolve(!1))}static setOptions({isImageDecoderSupported:t=!1}){this.#M=t}get bytes(){return I(this,"bytes",this.stream.getBytes(this.maybeLength))}ensureBuffer(t){}readBlock(){this.decodeImage()}get jpegOptions(){let t={decodeTransform:void 0,colorTransform:void 0},a=this.dict.getArray("D","Decode");if((this.forceRGBA||this.forceRGB)&&Array.isArray(a)){let r=this.dict.get("BPC","BitsPerComponent")||8,i=a.length,n=new Int32Array(i),s=!1,o=(1<<r)-1;for(let t=0;t<i;t+=2)n[t]=256*(a[t+1]-a[t])|0,n[t+1]=a[t]*o|0,256===n[t]&&0===n[t+1]||(s=!0);s&&(t.decodeTransform=n)}if(this.params instanceof en){let a=this.params.get("ColorTransform");Number.isInteger(a)&&(t.colorTransform=a)}return I(this,"jpegOptions",t)}#D(t){for(let a=0,r=t.length-1;a<r;a++)if(255===t[a]&&216===t[a+1]){a>0&&(t=t.subarray(a));break}return t}decodeImage(t){if(this.eof)return this.buffer;t=this.#D(t||this.bytes);let a=new tO(this.jpegOptions);a.parse(t);let r=a.getData({width:this.drawWidth,height:this.drawHeight,forceRGBA:this.forceRGBA,forceRGB:this.forceRGB,isSourcePDF:!0});return this.buffer=r,this.bufferLength=r.length,this.eof=!0,this.buffer}get canAsyncDecodeImageFromBuffer(){return this.stream.isAsync}async getTransferableImage(){let t;if(!await tD.canUseImageDecoder)return null;let a=this.jpegOptions;if(a.decodeTransform)return null;try{let r=this.canAsyncDecodeImageFromBuffer&&await this.stream.asyncGetBytes()||this.bytes;if(!r)return null;let i=this.#D(r),n=tO.canUseImageDecoder(i,a.colorTransform);if(!n)return null;return n.exifStart&&(i=i.slice()).fill(0,n.exifStart,n.exifEnd),t=new ImageDecoder({data:i,type:"image/jpeg",preferAnimation:!1}),(await t.decode()).image}catch(t){return v(`getTransferableImage - failed: "${t}".`),null}finally{t?.close()}}}let tE=async function(t={}){var a="./this.program",r=(t,a)=>{throw a};try{new URL(".","file:///node_modules/.pnpm/pdfjs-dist@5.4.449/node_modules/pdfjs-dist/legacy/build/pdf.worker.min.mjs").href}catch{}var i,n,s,o,l,c,h,u,f=console.log.bind(console),d=console.error.bind(console),g=!1,p=!1;function m(){var t=o.buffer;l=new Int8Array(t),new Int16Array(t),c=new Uint8Array(t),new Uint16Array(t),h=new Int32Array(t),u=new Uint32Array(t),new Float32Array(t),new Float64Array(t),new BigInt64Array(t),new BigUint64Array(t)}class b{name="ExitStatus";constructor(t){this.message=`Program terminated with exit(${t})`,this.status=t}}var y,w=a=>{for(;a.length>0;)a.shift()(t)},x=[],k=t=>x.push(t),v=[],A=t=>v.push(t),C=!0,S=0,I={},T=t=>{if(t instanceof b||"unwind"==t)return i;r(0,t)},B=()=>C||S>0,F=a=>{i=a,B()||(t.onExit?.(a),g=!0),r(0,new b(a))},M=(t,a)=>{i=t,F(t)},R=t=>{if(!g)try{t(),(()=>{if(!B())try{M(i)}catch(t){T(t)}})()}catch(t){T(t)}},N=(t,a)=>Math.ceil(t/a)*a,O=t=>{var a=(t-o.buffer.byteLength+65535)/65536|0;try{return o.grow(a),m(),1}catch(t){}},D={},E=()=>{if(!E.strings){var t={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.language||"C").replace("-","_")+".UTF-8",_:a||"./this.program"};for(var r in D)void 0===D[r]?delete t[r]:t[r]=D[r];var i=[];for(var r in t)i.push(`${r}=${t[r]}`);E.strings=i}return E.strings},P=(t,a,r)=>((t,a,r,i)=>{if(!(i>0))return 0;for(var n=r,s=r+i-1,o=0;o<t.length;++o){var l=t.codePointAt(o);if(l<=127){if(r>=s)break;a[r++]=l}else if(l<=2047){if(r+1>=s)break;a[r++]=192|l>>6,a[r++]=128|63&l}else if(l<=65535){if(r+2>=s)break;a[r++]=224|l>>12,a[r++]=128|l>>6&63,a[r++]=128|63&l}else{if(r+3>=s)break;a[r++]=240|l>>18,a[r++]=128|l>>12&63,a[r++]=128|l>>6&63,a[r++]=128|63&l,o++}}return a[r]=0,r-n})(t,c,a,r),_=t=>{for(var a=0,r=0;r<t.length;++r){var i=t.charCodeAt(r);i<=127?a++:i<=2047?a+=2:i>=55296&&i<=57343?(a+=4,++r):a+=3}return a},L=[null,[],[]],U="undefined"!=typeof TextDecoder?new TextDecoder:void 0,j=(t,a=0,r,i)=>{var n=((t,a,r,i)=>{var n=a+r;if(i)return n;for(;t[a]&&!(a>=n);)++a;return a})(t,a,r,i);if(n-a>16&&t.buffer&&U)return U.decode(t.subarray(a,n));for(var s="";a<n;){var o=t[a++];if(128&o){var l=63&t[a++];if(192!=(224&o)){var c=63&t[a++];if((o=224==(240&o)?(15&o)<<12|l<<6|c:(7&o)<<18|l<<12|c<<6|63&t[a++])<65536)s+=String.fromCharCode(o);else{var h=o-65536;s+=String.fromCharCode(55296|h>>10,56320|1023&h)}}else s+=String.fromCharCode((31&o)<<6|l)}else s+=String.fromCharCode(o)}return s},q=(t,a)=>{var r=L[t];0===a||10===a?((1===t?f:d)(j(r)),r.length=0):r.push(a)},H=(t,a,r)=>t?j(c,t,a,r):"";if(t.noExitRuntime&&(C=t.noExitRuntime),t.print&&(f=t.print),t.printErr&&(d=t.printErr),t.wasmBinary&&t.wasmBinary,t.arguments&&t.arguments,t.thisProgram&&(a=t.thisProgram),t.preInit)for("function"==typeof t.preInit&&(t.preInit=[t.preInit]);t.preInit.length>0;)t.preInit.shift()();t.writeArrayToMemory=(t,a)=>{l.set(t,a)};var $,z={k:()=>(function(a){t.onAbort?.(a),d(a="Aborted("+a+")"),g=!0,a+=". Build with -sASSERTIONS for more info.";var r=new WebAssembly.RuntimeError(a);throw s?.(r),r})(""),j:()=>{C=!1,S=0},l:(t,a)=>{if(I[t]&&(clearTimeout(I[t].id),delete I[t]),!a)return 0;var r=setTimeout(()=>{delete I[t],R(()=>y(t,performance.now()))},a);return I[t]={id:r,timeout_ms:a},0},f:function(a,r){a>>=2;let i=t.imageData=new Uint8ClampedArray(r),n=h.subarray(a,a+r);i.set(n)},e:function(a,r,i,n){a>>=2,r>>=2,i>>=2;let s=t.imageData=new Uint8ClampedArray(3*n),o=h.subarray(a,a+n),l=h.subarray(r,r+n),c=h.subarray(i,i+n);for(let t=0;t<n;t++)s[3*t]=o[t],s[3*t+1]=l[t],s[3*t+2]=c[t]},d:function(a,r,i,n,s){a>>=2,r>>=2,i>>=2,n>>=2;let o=t.imageData=new Uint8ClampedArray(4*s),l=h.subarray(a,a+s),c=h.subarray(r,r+s),u=h.subarray(i,i+s),f=h.subarray(n,n+s);for(let t=0;t<s;t++)o[4*t]=l[t],o[4*t+1]=c[t],o[4*t+2]=u[t],o[4*t+3]=f[t]},m:t=>{var a=c.length;if((t>>>=0)>2147483648)return!1;for(var r=1;r<=4;r*=2){var i=a*(1+.2/r);if(i=Math.min(i,t+100663296),O(Math.min(2147483648,N(Math.max(t,i),65536))))return!0}return!1},o:(t,a)=>{var r=0,i=0;for(var n of E()){var s=a+r;u[t+i>>2]=s,r+=P(n,s,1/0)+1,i+=4}return 0},p:(t,a)=>{var r=E();u[t>>2]=r.length;var i=0;for(var n of r)i+=_(n)+1;return u[a>>2]=i,0},n:function(t,a,r,i){var n;return a=(n=a)<-9007199254740992||n>9007199254740992?NaN:Number(n),70},b:(t,a,r,i)=>{for(var n=0,s=0;s<r;s++){var o=u[a>>2],l=u[a+4>>2];a+=8;for(var h=0;h<l;h++)q(t,c[o+h]);n+=l}return u[i>>2]=n,0},q:function(a,r){a>>=2;let i=t.imageData=new Uint8ClampedArray(4*r),n=h.subarray(a,a+r);for(let t=0;t<r;t++)i[4*t]=i[4*t+1]=i[4*t+2]=n[t],i[4*t+3]=255},h:function(a,r,i){a>>=2,r>>=2;let n=t.imageData=new Uint8ClampedArray(4*i),s=h.subarray(a,a+i),o=h.subarray(r,r+i);for(let t=0;t<i;t++)n[4*t]=n[4*t+1]=n[4*t+2]=s[t],n[4*t+3]=o[t]},c:function(a){let r=H(a);(t.warn||console.warn)(`OpenJPEG: ${r}`)},i:F,g:function(a,r,i,n){a>>=2,r>>=2,i>>=2;let s=t.imageData=new Uint8ClampedArray(4*n),o=h.subarray(a,a+n),l=h.subarray(r,r+n),c=h.subarray(i,i+n);for(let t=0;t<n;t++)s[4*t]=o[t],s[4*t+1]=l[t],s[4*t+2]=c[t],s[4*t+3]=255},a:function(a){let r=H(a);t.errorMessages?t.errorMessages+="\n"+r:t.errorMessages=r}};return $=await async function(){var a={a:z};return new Promise((r,i)=>{t.instantiateWasm(a,(a,i)=>{var n;r((o=($=a.exports).r,m(),n=$,t._malloc=n.t,t._free=n.u,t._jp2_decode=n.v,y=n.w,$))})})}(),function(){function a(){t.calledRun=!0,g||(p=!0,$.s(),n?.(t),t.onRuntimeInitialized?.(),function(){if(t.postRun)for("function"==typeof t.postRun&&(t.postRun=[t.postRun]);t.postRun.length;)k(t.postRun.shift());w(x)}())}(function(){if(t.preRun)for("function"==typeof t.preRun&&(t.preRun=[t.preRun]);t.preRun.length;)A(t.preRun.shift());w(v)})(),t.setStatus?(t.setStatus("Running..."),setTimeout(()=>{setTimeout(()=>t.setStatus(""),1),a()},1)):a()}(),p?t:new Promise((t,a)=>{n=t,s=a})};class tP extends T{constructor(t){super(t,"JpxError")}}class t_{static #E=null;static #P=null;static #_=null;static #S=!0;static #L=!0;static #I=null;static setOptions({handler:t,useWasm:a,useWorkerFetch:r,wasmUrl:i}){this.#S=a,this.#L=r,this.#I=i,r||(this.#P=t)}static async #U(a){let r=`${this.#I}openjpeg_nowasm_fallback.js`,i=null;try{i=(await t(r)).default()}catch(t){v(`JpxImage#getJsModule: ${t}`)}a(i)}static async #j(t,a,r){let i="openjpeg.wasm";try{return this.#E||(this.#L?this.#E=await eS(`${this.#I}${i}`):this.#E=await this.#P.sendWithPromise("FetchBinaryData",{type:"wasmFactory",filename:i})),r((await WebAssembly.instantiate(this.#E,a)).instance)}catch(a){return v(`JpxImage#instantiateWasm: ${a}`),this.#U(t),null}finally{this.#P=null}}static async decode(t,{numComponents:a=4,isIndexedColormap:r=!1,smaskInData:i=!1,reducePower:n=0}={}){let s;if(!this.#_){let{promise:t,resolve:a}=Promise.withResolvers(),r=[t];this.#S?r.push(tE({warn:v,instantiateWasm:this.#j.bind(this,a)})):this.#U(a),this.#_=Promise.race(r)}let o=await this.#_;if(!o)throw new tP("OpenJPEG failed to initialize");try{let l=t.length;if(s=o._malloc(l),o.writeArrayToMemory(t,s),o._jp2_decode(s,l,a>0?a:0,!!r,!!i,n)){let{errorMessages:t}=o;if(t)throw delete o.errorMessages,new tP(t);throw new tP("Unknown error")}let{imageData:c}=o;return o.imageData=null,c}finally{s&&o._free(s)}}static cleanup(){this.#_=null}static parseImageProperties(t){let a=t.getByte();for(;a>=0;){let r=a;if(65361==(r<<8|(a=t.getByte()))){t.skip(4);let a=t.getInt32()>>>0,r=t.getInt32()>>>0,i=t.getInt32()>>>0,n=t.getInt32()>>>0;return t.skip(16),{width:a-i,height:r-n,bitsPerComponent:8,componentsCount:t.getUint16()}}}throw new tP("No size marker found in JPX stream")}}function tL(t,a,r,i,n){let s=t;for(let t=0,r=a.length-1;t<r;t++){let r=a[t];s=s[r]||=[]}s[a.at(-1)]={checkFn:r,iterateFn:i,processFn:n}}let tU=[];tL(tU,[10,12,86,11],null,function(t,a){let r=t.fnArray,i=(a-(t.iCurr-3))%4;switch(i){case 0:return 10===r[a];case 1:return 12===r[a];case 2:return 86===r[a];case 3:return 11===r[a]}throw Error(`iterateInlineImageGroup - invalid pos: ${i}`)},function(t,a){let r=t.fnArray,i=t.argsArray,n=t.iCurr,s=n-3,o=n-2,l=n-1,c=Math.min(Math.floor((a-s)/4),200);if(c<10)return a-(a-s)%4;let h=0,u=[],f=0,d=1,g=1;for(let t=0;t<c;t++){let a=i[o+(t<<2)],r=i[l+(t<<2)][0];d+r.width>1e3&&(h=Math.max(h,d),g+=f+2,d=0,f=0),u.push({transform:a,x:d,y:g,w:r.width,h:r.height}),d+=r.width+2,f=Math.max(f,r.height)}let p=Math.max(h,d)+1,m=g+f+1,b=new Uint8Array(p*m*4),y=p<<2;for(let t=0;t<c;t++){let a=i[l+(t<<2)][0].data,r=u[t].w<<2,n=0,s=u[t].x+u[t].y*p<<2;b.set(a.subarray(0,r),s-y);for(let i=0,o=u[t].h;i<o;i++)b.set(a.subarray(n,n+r),s),n+=r,s+=y;for(b.set(a.subarray(n-r,n),s);s>=0;)a[s-4]=a[s],a[s-3]=a[s+1],a[s-2]=a[s+2],a[s-1]=a[s+3],a[s+r]=a[s+r-4],a[s+r+1]=a[s+r-3],a[s+r+2]=a[s+r-2],a[s+r+3]=a[s+r-1],s-=y}let w={width:p,height:m};if(t.isOffscreenCanvasSupported){let t=new OffscreenCanvas(p,m);t.getContext("2d").putImageData(new ImageData(new Uint8ClampedArray(b.buffer),p,m),0,0),w.bitmap=t.transferToImageBitmap(),w.data=null}else w.kind=3,w.data=b;return r.splice(s,4*c,87),i.splice(s,4*c,[w,u]),s+1}),tL(tU,[10,12,83,11],null,function(t,a){let r=t.fnArray,i=(a-(t.iCurr-3))%4;switch(i){case 0:return 10===r[a];case 1:return 12===r[a];case 2:return 83===r[a];case 3:return 11===r[a]}throw Error(`iterateImageMaskGroup - invalid pos: ${i}`)},function(t,a){let r=t.fnArray,i=t.argsArray,n=t.iCurr,s=n-3,o=n-2,l=n-1,c=Math.floor((a-s)/4);if(c<10)return a-(a-s)%4;let h,u,f=!1,d=i[l][0],g=i[o][0],p=i[o][1],m=i[o][2],b=i[o][3];if(p===m){f=!0,h=o+4;let t=l+4;for(let a=1;a<c;a++,h+=4,t+=4)if(u=i[h],i[t][0]!==d||u[0]!==g||u[1]!==p||u[2]!==m||u[3]!==b){a<10?f=!1:c=a;break}}if(f){c=Math.min(c,1e3);let t=new Float32Array(2*c);h=o;for(let a=0;a<c;a++,h+=4)u=i[h],t[a<<1]=u[4],t[1+(a<<1)]=u[5];r.splice(s,4*c,89),i.splice(s,4*c,[d,g,p,m,b,t])}else{c=Math.min(c,100);let t=[];for(let a=0;a<c;a++){u=i[o+(a<<2)];let r=i[l+(a<<2)][0];t.push({data:r.data,width:r.width,height:r.height,interpolate:r.interpolate,count:r.count,transform:u})}r.splice(s,4*c,84),i.splice(s,4*c,[t])}return s+1}),tL(tU,[10,12,85,11],function(t){let a=t.argsArray,r=t.iCurr-2;return 0===a[r][1]&&0===a[r][2]},function(t,a){let r=t.fnArray,i=t.argsArray,n=(a-(t.iCurr-3))%4;switch(n){case 0:return 10===r[a];case 1:if(12!==r[a])return!1;let s=t.iCurr-2,o=i[s][0],l=i[s][3];return i[a][0]===o&&0===i[a][1]&&0===i[a][2]&&i[a][3]===l;case 2:if(85!==r[a])return!1;let c=i[t.iCurr-1][0];return i[a][0]===c;case 3:return 11===r[a]}throw Error(`iterateImageGroup - invalid pos: ${n}`)},function(t,a){let r=t.fnArray,i=t.argsArray,n=t.iCurr,s=n-3,o=n-2,l=i[n-1][0],c=i[o][0],h=i[o][3],u=Math.min(Math.floor((a-s)/4),1e3);if(u<3)return a-(a-s)%4;let f=new Float32Array(2*u),d=o;for(let t=0;t<u;t++,d+=4){let a=i[d];f[t<<1]=a[4],f[1+(t<<1)]=a[5]}let g=[l,c,h,f];return r.splice(s,4*u,88),i.splice(s,4*u,g),s+1}),tL(tU,[31,37,42,44,32],null,function(t,a){let r=t.fnArray,i=t.argsArray,n=(a-(t.iCurr-4))%5;switch(n){case 0:return 31===r[a];case 1:return 37===r[a];case 2:return 42===r[a];case 3:if(44!==r[a])return!1;let s=t.iCurr-3,o=i[s][0],l=i[s][1];return i[a][0]===o&&i[a][1]===l;case 4:return 32===r[a]}throw Error(`iterateShowTextGroup - invalid pos: ${n}`)},function(t,a){let r=t.fnArray,i=t.argsArray,n=t.iCurr,s=n-4,o=n-3,l=i[o][0],c=i[o][1],h=Math.min(Math.floor((a-s)/5),1e3);if(h<3)return a-(a-s)%5;let u=s;s>=4&&r[s-4]===r[o]&&r[s-3]===r[n-2]&&r[s-2]===r[n-1]&&r[s-1]===r[n]&&i[s-4][0]===l&&i[s-4][1]===c&&(h++,u-=5);let f=u+4;for(let t=1;t<h;t++)r.splice(f,3),i.splice(f,3),f+=2;return f+1}),tL(tU,[10,12,91,11],t=>{let a=t.argsArray,r=a[t.iCurr-1][0];if(20!==r&&21!==r&&24!==r&&25!==r&&26!==r&&27!==r)return!0;let i=a[t.iCurr-2];return 1===i[0]&&0===i[1]&&0===i[2]&&1===i[3]},()=>!1,(t,a)=>{let{fnArray:r,argsArray:i}=t,n=t.iCurr,s=n-3,o=i[n-1],l=i[n-2],[,[c],h]=o;if(h){j.scaleMinMax(l,h);for(let t=0,a=c.length;t<a;)switch(c[t++]){case 0:case 1:j.applyTransform(c,l,t),t+=2;break;case 2:j.applyTransformToBezier(c,l,t),t+=6}}return r.splice(s,4,91),i.splice(s,4,o),s+1});class tj{constructor(t){this.queue=t}_optimize(){}push(t,a){this.queue.fnArray.push(t),this.queue.argsArray.push(a),this._optimize()}flush(){}reset(){}}class tq extends tj{constructor(t){super(t),this.state=null,this.context={iCurr:0,fnArray:t.fnArray,argsArray:t.argsArray,isOffscreenCanvasSupported:tH.isOffscreenCanvasSupported},this.match=null,this.lastProcessed=0}_optimize(){let t=this.queue.fnArray,a=this.lastProcessed,r=t.length,i=this.state,n=this.match;if(!i&&!n&&a+1===r&&!tU[t[a]]){this.lastProcessed=r;return}let s=this.context;for(;a<r;){if(n){if((0,n.iterateFn)(s,a)){a++;continue}if(a=(0,n.processFn)(s,a+1),r=t.length,n=null,i=null,a>=r)break}(i=(i||tU)[t[a]])&&!Array.isArray(i)?(s.iCurr=a,a++,(!i.checkFn||(0,i.checkFn)(s))&&(n=i),i=null):a++}this.state=i,this.match=n,this.lastProcessed=a}flush(){for(;this.match;){let t=this.queue.fnArray.length;this.lastProcessed=(0,this.match.processFn)(this.context,t),this.match=null,this.state=null,this._optimize()}}reset(){this.state=null,this.match=null,this.lastProcessed=0}}class tH{static CHUNK_SIZE=1e3;static CHUNK_SIZE_ABOUT=this.CHUNK_SIZE-5;static isOffscreenCanvasSupported=!1;constructor(t=0,a){this._streamSink=a,this.fnArray=[],this.argsArray=[],this.optimizer=!a||256&t?new tj(this):new tq(this),this.dependencies=new Set,this._totalLength=0,this.weight=0,this._resolved=a?null:Promise.resolve()}static setOptions({isOffscreenCanvasSupported:t}){this.isOffscreenCanvasSupported=t}get length(){return this.argsArray.length}get ready(){return this._resolved||this._streamSink.ready}get totalLength(){return this._totalLength+this.length}addOp(t,a){this.optimizer.push(t,a),this.weight++,this._streamSink&&(this.weight>=tH.CHUNK_SIZE||this.weight>=tH.CHUNK_SIZE_ABOUT&&(11===t||32===t))&&this.flush()}addImageOps(t,a,r,i=!1){i&&(this.addOp(10),this.addOp(9,[[["SMask",!1]]])),void 0!==r&&this.addOp(70,["OC",r]),this.addOp(t,a),void 0!==r&&this.addOp(71,[]),i&&this.addOp(11)}addDependency(t){this.dependencies.has(t)||(this.dependencies.add(t),this.addOp(1,[t]))}addDependencies(t){for(let a of t)this.addDependency(a)}addOpList(t){if(t instanceof tH){for(let a of t.dependencies)this.dependencies.add(a);for(let a=0,r=t.length;a<r;a++)this.addOp(t.fnArray[a],t.argsArray[a])}else v('addOpList - ignoring invalid "opList" parameter.')}getIR(){return{fnArray:this.fnArray,argsArray:this.argsArray,length:this.length}}get _transfers(){let t=[],{fnArray:a,argsArray:r,length:i}=this;for(let n=0;n<i;n++)switch(a[n]){case 86:case 87:case 83:{let{bitmap:a,data:i}=r[n][0];(a||i?.buffer)&&t.push(a||i.buffer);break}case 91:{let[,[a],i]=r[n];a&&t.push(a.buffer,i.buffer);break}case 74:let[i,s]=r[n];i&&t.push(i.buffer),s&&t.push(s.buffer);break;case 42:t.push(r[n][0].buffer)}return t}flush(t=!1,a=null){this.optimizer.flush();let r=this.length;this._totalLength+=r,this._streamSink.enqueue({fnArray:this.fnArray,argsArray:this.argsArray,lastChunk:t,separateAnnots:a,length:r},1,this._transfers),this.dependencies.clear(),this.fnArray.length=0,this.argsArray.length=0,this.weight=0,this.optimizer.reset()}}function t$(t,a){let r=0;for(let i=0;i<=a;i++)r=r<<8|t[i];return r>>>0}function tz(t,a){return 1===a?String.fromCharCode(t[0],t[1]):3===a?String.fromCharCode(t[0],t[1],t[2],t[3]):String.fromCharCode(...t.subarray(0,a+1))}function tG(t,a,r){let i=0;for(let n=r;n>=0;n--)i+=t[n]+a[n],t[n]=255&i,i>>=8}function tW(t,a){let r=1;for(let i=a;i>=0&&r>0;i--)r+=t[i],t[i]=255&r,r>>=8}h(116),h(9479),h(7588);class tV{constructor(t){this.buffer=t,this.pos=0,this.end=t.length,this.tmpBuf=new Uint8Array(19)}readByte(){return this.pos>=this.end?-1:this.buffer[this.pos++]}readNumber(){let t,a=0;do{let r=this.readByte();if(r<0)throw new N("unexpected EOF in bcmap");t=!(128&r),a=a<<7|127&r}while(!t)return a}readSigned(){let t=this.readNumber();return 1&t?~(t>>>1):t>>>1}readHex(t,a){t.set(this.buffer.subarray(this.pos,this.pos+a+1)),this.pos+=a+1}readHexNumber(t,a){let r;let i=this.tmpBuf,n=0;do{let t=this.readByte();if(t<0)throw new N("unexpected EOF in bcmap");r=!(128&t),i[n++]=127&t}while(!r)let s=a,o=0,l=0;for(;s>=0;){for(;l<8&&i.length>0;)o|=i[--n]<<l,l+=7;t[s]=255&o,s--,o>>=8,l-=8}}readHexSigned(t,a){this.readHexNumber(t,a);let r=1&t[a]?255:0,i=0;for(let n=0;n<=a;n++)i=(1&i)<<8|t[n],t[n]=i>>1^r}readString(){let t=this.readNumber(),a=Array(t);for(let r=0;r<t;r++)a[r]=this.readNumber();return String.fromCharCode(...a)}}class tX{async process(t,a,r){let i,n;let s=new tV(t),o=s.readByte();a.vertical=!!(1&o);let l=null,c=new Uint8Array(16),h=new Uint8Array(16),u=new Uint8Array(16),f=new Uint8Array(16),d=new Uint8Array(16);for(;(n=s.readByte())>=0;){let t=n>>5;if(7===t){switch(31&n){case 0:s.readString();break;case 1:l=s.readString()}continue}let r=!!(16&n),o=15&n;if(o+1>16)throw Error("BinaryCMapReader.process: Invalid dataSize.");let g=s.readNumber();switch(t){case 0:s.readHex(c,o),s.readHexNumber(h,o),tG(h,c,o),a.addCodespaceRange(o+1,t$(c,o),t$(h,o));for(let t=1;t<g;t++)tW(h,o),s.readHexNumber(c,o),tG(c,h,o),s.readHexNumber(h,o),tG(h,c,o),a.addCodespaceRange(o+1,t$(c,o),t$(h,o));break;case 1:s.readHex(c,o),s.readHexNumber(h,o),tG(h,c,o),s.readNumber();for(let t=1;t<g;t++)tW(h,o),s.readHexNumber(c,o),tG(c,h,o),s.readHexNumber(h,o),tG(h,c,o),s.readNumber();break;case 2:s.readHex(u,o),i=s.readNumber(),a.mapOne(t$(u,o),i);for(let t=1;t<g;t++)tW(u,o),r||(s.readHexNumber(d,o),tG(u,d,o)),i=s.readSigned()+(i+1),a.mapOne(t$(u,o),i);break;case 3:s.readHex(c,o),s.readHexNumber(h,o),tG(h,c,o),i=s.readNumber(),a.mapCidRange(t$(c,o),t$(h,o),i);for(let t=1;t<g;t++)tW(h,o),r?c.set(h):(s.readHexNumber(c,o),tG(c,h,o)),s.readHexNumber(h,o),tG(h,c,o),i=s.readNumber(),a.mapCidRange(t$(c,o),t$(h,o),i);break;case 4:s.readHex(u,1),s.readHex(f,o),a.mapOne(t$(u,1),tz(f,o));for(let t=1;t<g;t++)tW(u,1),r||(s.readHexNumber(d,1),tG(u,d,1)),tW(f,o),s.readHexSigned(d,o),tG(f,d,o),a.mapOne(t$(u,1),tz(f,o));break;case 5:s.readHex(c,1),s.readHexNumber(h,1),tG(h,c,1),s.readHex(f,o),a.mapBfRange(t$(c,1),t$(h,1),tz(f,o));for(let t=1;t<g;t++)tW(h,1),r?c.set(h):(s.readHexNumber(c,1),tG(c,h,1)),s.readHexNumber(h,1),tG(h,c,1),s.readHex(f,o),a.mapBfRange(t$(c,1),t$(h,1),tz(f,o));break;default:throw Error(`BinaryCMapReader.process - unknown type: ${t}`)}}return l?r(l):a}}class tK extends tA{constructor(t,a){a&&(a*=.8),super(a),this.stream=t,this.dict=t.dict,this.input=new Uint8Array(5)}readBlock(){let t,a;let r=this.stream,i=r.getByte();for(;eO(i);)i=r.getByte();if(-1===i||126===i){this.eof=!0;return}let n=this.bufferLength;if(122===i){for(a=0,t=this.ensureBuffer(n+4);a<4;++a)t[n+a]=0;this.bufferLength+=4}else{let s=this.input;for(a=1,s[0]=i;a<5;++a){for(i=r.getByte();eO(i);)i=r.getByte();if(s[a]=i,-1===i||126===i)break}if(t=this.ensureBuffer(n+a-1),this.bufferLength+=a-1,a<5){for(;a<5;++a)s[a]=117;this.eof=!0}let o=0;for(a=0;a<5;++a)o=85*o+(s[a]-33);for(a=3;a>=0;--a)t[n+a]=255&o,o>>=8}}}class tY extends tA{constructor(t,a){a&&(a*=.5),super(a),this.stream=t,this.dict=t.dict,this.firstDigit=-1}readBlock(){let t=this.stream.getBytes(8e3);if(!t.length){this.eof=!0;return}let a=t.length+1>>1,r=this.ensureBuffer(this.bufferLength+a),i=this.bufferLength,n=this.firstDigit;for(let a of t){let t;if(a>=48&&a<=57)t=15&a;else{if(!(a>=65&&a<=70||a>=97&&a<=102)){if(62===a){this.eof=!0;break}continue}t=9+(15&a)}n<0?n=t:(r[i++]=n<<4|t,n=-1)}n>=0&&this.eof&&(r[i++]=n<<4,n=-1),this.firstDigit=n,this.bufferLength=i}}let tJ=[[-1,-1],[-1,-1],[7,8],[7,7],[6,6],[6,6],[6,5],[6,5],[4,0],[4,0],[4,0],[4,0],[4,0],[4,0],[4,0],[4,0],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2]],tZ=[[-1,-1],[12,-2],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[11,1792],[11,1792],[12,1984],[12,2048],[12,2112],[12,2176],[12,2240],[12,2304],[11,1856],[11,1856],[11,1920],[11,1920],[12,2368],[12,2432],[12,2496],[12,2560]],tQ=[[-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]],t1=[[-1,-1],[-1,-1],[12,-2],[12,-2],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[11,1792],[11,1792],[11,1792],[11,1792],[12,1984],[12,1984],[12,2048],[12,2048],[12,2112],[12,2112],[12,2176],[12,2176],[12,2240],[12,2240],[12,2304],[12,2304],[11,1856],[11,1856],[11,1856],[11,1856],[11,1920],[11,1920],[11,1920],[11,1920],[12,2368],[12,2368],[12,2432],[12,2432],[12,2496],[12,2496],[12,2560],[12,2560],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[12,52],[12,52],[13,640],[13,704],[13,768],[13,832],[12,55],[12,55],[12,56],[12,56],[13,1280],[13,1344],[13,1408],[13,1472],[12,59],[12,59],[12,60],[12,60],[13,1536],[13,1600],[11,24],[11,24],[11,24],[11,24],[11,25],[11,25],[11,25],[11,25],[13,1664],[13,1728],[12,320],[12,320],[12,384],[12,384],[12,448],[12,448],[13,512],[13,576],[12,53],[12,53],[12,54],[12,54],[13,896],[13,960],[13,1024],[13,1088],[13,1152],[13,1216],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64]],t0=[[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]],t2=[[-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 t9{constructor(t,a={}){let r;if("function"!=typeof t?.next)throw Error('CCITTFaxDecoder - invalid "source" parameter.');for(this.source=t,this.eof=!1,this.encoding=a.K||0,this.eoline=a.EndOfLine||!1,this.byteAlign=a.EncodedByteAlign||!1,this.columns=a.Columns||1728,this.rows=a.Rows||0,this.eoblock=a.EndOfBlock??!0,this.black=a.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;0===(r=this._lookBits(12));)this._eatBits(1);1===r&&this._eatBits(12),this.encoding>0&&(this.nextLine2D=!this._lookBits(1),this._eatBits(1))}readNextChar(){let t,a,r,i,n;if(this.eof)return -1;let s=this.refLine,o=this.codingLine,l=this.columns;if(0===this.outputBits){let r,n,c;if(this.rowsDone&&(this.eof=!0),this.eof)return -1;if(this.err=!1,this.nextLine2D){for(i=0;o[i]<l;++i)s[i]=o[i];for(s[i++]=l,s[i]=l,o[0]=0,this.codingPos=0,t=0,a=0;o[this.codingPos]<l;)switch(r=this._getTwoDimCode()){case 0:this._addPixels(s[t+1],a),s[t+1]<l&&(t+=2);break;case 1:if(r=n=0,a){do r+=c=this._getBlackCode();while(c>=64)do n+=c=this._getWhiteCode();while(c>=64)}else{do r+=c=this._getWhiteCode();while(c>=64)do n+=c=this._getBlackCode();while(c>=64)}for(this._addPixels(o[this.codingPos]+r,a),o[this.codingPos]<l&&this._addPixels(o[this.codingPos]+n,1^a);s[t]<=o[this.codingPos]&&s[t]<l;)t+=2;break;case 7:if(this._addPixels(s[t]+3,a),a^=1,o[this.codingPos]<l)for(++t;s[t]<=o[this.codingPos]&&s[t]<l;)t+=2;break;case 5:if(this._addPixels(s[t]+2,a),a^=1,o[this.codingPos]<l)for(++t;s[t]<=o[this.codingPos]&&s[t]<l;)t+=2;break;case 3:if(this._addPixels(s[t]+1,a),a^=1,o[this.codingPos]<l)for(++t;s[t]<=o[this.codingPos]&&s[t]<l;)t+=2;break;case 2:if(this._addPixels(s[t],a),a^=1,o[this.codingPos]<l)for(++t;s[t]<=o[this.codingPos]&&s[t]<l;)t+=2;break;case 8:if(this._addPixelsNeg(s[t]-3,a),a^=1,o[this.codingPos]<l)for(t>0?--t:++t;s[t]<=o[this.codingPos]&&s[t]<l;)t+=2;break;case 6:if(this._addPixelsNeg(s[t]-2,a),a^=1,o[this.codingPos]<l)for(t>0?--t:++t;s[t]<=o[this.codingPos]&&s[t]<l;)t+=2;break;case 4:if(this._addPixelsNeg(s[t]-1,a),a^=1,o[this.codingPos]<l)for(t>0?--t:++t;s[t]<=o[this.codingPos]&&s[t]<l;)t+=2;break;case -1:this._addPixels(l,0),this.eof=!0;break;default:k("bad 2d code"),this._addPixels(l,0),this.err=!0}}else for(o[0]=0,this.codingPos=0,a=0;o[this.codingPos]<l;){if(r=0,a)do r+=c=this._getBlackCode();while(c>=64)else do r+=c=this._getWhiteCode();while(c>=64)this._addPixels(o[this.codingPos]+r,a),a^=1}let h=!1;if(this.byteAlign&&(this.inputBits&=-8),this.eoblock||this.row!==this.rows-1){if(r=this._lookBits(12),this.eoline)for(;-1!==r&&1!==r;)this._eatBits(1),r=this._lookBits(12);else for(;0===r;)this._eatBits(1),r=this._lookBits(12);1===r?(this._eatBits(12),h=!0):-1===r&&(this.eof=!0)}else this.rowsDone=!0;if(this.eof||!(this.encoding>0)||this.rowsDone||(this.nextLine2D=!this._lookBits(1),this._eatBits(1)),this.eoblock&&h&&this.byteAlign){if(1===(r=this._lookBits(12))){if(this._eatBits(12),this.encoding>0&&(this._lookBits(1),this._eatBits(1)),this.encoding>=0)for(i=0;i<4;++i)1!==(r=this._lookBits(12))&&k("bad rtc code: "+r),this._eatBits(12),this.encoding>0&&(this._lookBits(1),this._eatBits(1));this.eof=!0}}else if(this.err&&this.eoline){for(;;){if(-1===(r=this._lookBits(13)))return this.eof=!0,-1;if(r>>1==1)break;this._eatBits(1)}this._eatBits(12),this.encoding>0&&(this._eatBits(1),this.nextLine2D=!(1&r))}this.outputBits=o[0]>0?o[this.codingPos=0]:o[this.codingPos=1],this.row++}if(this.outputBits>=8)n=1&this.codingPos?0:255,this.outputBits-=8,0===this.outputBits&&o[this.codingPos]<l&&(this.codingPos++,this.outputBits=o[this.codingPos]-o[this.codingPos-1]);else{r=8,n=0;do{if("number"!=typeof this.outputBits)throw new N('Invalid /CCITTFaxDecode data, "outputBits" must be a number.');this.outputBits>r?(n<<=r,1&this.codingPos||(n|=255>>8-r),this.outputBits-=r,r=0):(n<<=this.outputBits,1&this.codingPos||(n|=255>>8-this.outputBits),r-=this.outputBits,this.outputBits=0,o[this.codingPos]<l?(this.codingPos++,this.outputBits=o[this.codingPos]-o[this.codingPos-1]):r>0&&(n<<=r,r=0))}while(r)}return this.black&&(n^=255),n}_addPixels(t,a){let r=this.codingLine,i=this.codingPos;t>r[i]&&(t>this.columns&&(k("row is wrong length"),this.err=!0,t=this.columns),1&i^a&&++i,r[i]=t),this.codingPos=i}_addPixelsNeg(t,a){let r=this.codingLine,i=this.codingPos;if(t>r[i])t>this.columns&&(k("row is wrong length"),this.err=!0,t=this.columns),1&i^a&&++i,r[i]=t;else if(t<r[i]){for(t<0&&(k("invalid code"),this.err=!0,t=0);i>0&&t<r[i-1];)--i;r[i]=t}this.codingPos=i}_findTableCode(t,a,r,i){let n=i||0;for(let i=t;i<=a;++i){let t=this._lookBits(i);if(-1===t)return[!0,1,!1];if(i<a&&(t<<=a-i),!n||t>=n){let a=r[t-n];if(a[0]===i)return this._eatBits(i),[!0,a[1],!0]}}return[!1,0,!1]}_getTwoDimCode(){let t;if(this.eoblock){if(t=tJ[this._lookBits(7)],t?.[0]>0)return this._eatBits(t[0]),t[1]}else{let t=this._findTableCode(1,7,tJ);if(t[0]&&t[2])return t[1]}return k("Bad two dim code"),-1}_getWhiteCode(){let t,a=0;if(this.eoblock){if(-1===(a=this._lookBits(12)))return 1;if((t=a>>5?tQ[a>>3]:tZ[a])[0]>0)return this._eatBits(t[0]),t[1]}else{let t=this._findTableCode(1,9,tQ);if(t[0]||(t=this._findTableCode(11,12,tZ))[0])return t[1]}return k("bad white code"),this._eatBits(1),1}_getBlackCode(){let t,a;if(this.eoblock){if(-1===(t=this._lookBits(13)))return 1;if((a=t>>7?!(t>>9)&&t>>7?t0[(t>>1)-64]:t2[t>>7]:t1[t])[0]>0)return this._eatBits(a[0]),a[1]}else{let t=this._findTableCode(2,6,t2);if(t[0]||(t=this._findTableCode(7,12,t0,64))[0]||(t=this._findTableCode(10,13,t1))[0])return t[1]}return k("bad black code"),this._eatBits(1),1}_lookBits(t){let a;for(;this.inputBits<t;){if(-1===(a=this.source.next()))return 0===this.inputBits?-1:this.inputBuf<<t-this.inputBits&65535>>16-t;this.inputBuf=this.inputBuf<<8|a,this.inputBits+=8}return this.inputBuf>>this.inputBits-t&65535>>16-t}_eatBits(t){(this.inputBits-=t)<0&&(this.inputBits=0)}}class t5 extends tA{constructor(t,a,r){super(a),this.stream=t,this.dict=t.dict,r instanceof en||(r=en.empty),this.ccittFaxDecoder=new t9({next:()=>t.getByte()},{K:r.get("K"),EndOfLine:r.get("EndOfLine"),EncodedByteAlign:r.get("EncodedByteAlign"),Columns:r.get("Columns"),Rows:r.get("Rows"),EndOfBlock:r.get("EndOfBlock"),BlackIs1:r.get("BlackIs1")})}readBlock(){for(;!this.eof;){let t=this.ccittFaxDecoder.readNextChar();if(-1===t){this.eof=!0;return}this.ensureBuffer(this.bufferLength+1),this.buffer[this.bufferLength++]=t}}}let t3=new Int32Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),t6=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]),t7=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]),t8=[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],t4=[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 ae extends tA{constructor(t,a){super(a),this.stream=t,this.dict=t.dict;let r=t.getByte(),i=t.getByte();if(-1===r||-1===i)throw new N(`Invalid header in flate stream: ${r}, ${i}`);if(8!=(15&r))throw new N(`Unknown compression method in flate stream: ${r}, ${i}`);if(((r<<8)+i)%31!=0)throw new N(`Bad FCHECK in flate stream: ${r}, ${i}`);if(32&i)throw new N(`FDICT bit set in flate stream: ${r}, ${i}`);this.codeSize=0,this.codeBuf=0}async getImageData(t,a){let r=await this.asyncGetBytes();return r?r.length<=t?r:r.subarray(0,t):this.getBytes(t)}async asyncGetBytes(){this.stream.reset();let t=this.stream.getBytes();try{let{readable:a,writable:r}=new DecompressionStream("deflate"),i=r.getWriter();await i.ready,i.write(t).then(async()=>{await i.ready,await i.close()}).catch(()=>{});let n=[],s=0;for await(let t of a)n.push(t),s+=t.byteLength;let o=new Uint8Array(s),l=0;for(let t of n)o.set(t,l),l+=t.byteLength;return o}catch{return this.stream=new tg(t,2,t.length,this.stream.dict),this.reset(),null}}get isAsync(){return!0}getBits(t){let a=this.stream,r,i=this.codeSize,n=this.codeBuf;for(;i<t;){if(-1===(r=a.getByte()))throw new N("Bad encoding in flate stream");n|=r<<i,i+=8}return r=n&(1<<t)-1,this.codeBuf=n>>t,this.codeSize=i-=t,r}getCode(t){let a=this.stream,r=t[0],i=t[1],n,s=this.codeSize,o=this.codeBuf;for(;s<i&&-1!==(n=a.getByte());)o|=n<<s,s+=8;let l=r[o&(1<<i)-1],c=l>>16;if(c<1||s<c)throw new N("Bad encoding in flate stream");return this.codeBuf=o>>c,this.codeSize=s-c,65535&l}generateHuffmanTable(t){let a=t.length,r,i=0;for(r=0;r<a;++r)t[r]>i&&(i=t[r]);let n=1<<i,s=new Int32Array(n);for(let o=1,l=0,c=2;o<=i;++o,l<<=1,c<<=1)for(let i=0;i<a;++i)if(t[i]===o){let t=0,a=l;for(r=0;r<o;++r)t=t<<1|1&a,a>>=1;for(r=t;r<n;r+=c)s[r]=o<<16|i;++l}return[s,i]}#q(t){k(t),this.eof=!0}readBlock(){let t,a,r,i,n;let s=this.stream;try{a=this.getBits(3)}catch(t){this.#q(t.message);return}if(1&a&&(this.eof=!0),0==(a>>=1)){let a;if(-1===(a=s.getByte())){this.#q("Bad block header in flate stream");return}let r=a;if(-1===(a=s.getByte())||(r|=a<<8,-1===(a=s.getByte()))){this.#q("Bad block header in flate stream");return}let i=a;if(-1===(a=s.getByte())){this.#q("Bad block header in flate stream");return}if((i|=a<<8)!=(65535&~r)&&(0!==r||0!==i))throw new N("Bad uncompressed block length in flate stream");this.codeBuf=0,this.codeSize=0;let n=this.bufferLength,o=n+r;if(t=this.ensureBuffer(o),this.bufferLength=o,0===r)-1===s.peekByte()&&(this.eof=!0);else{let a=s.getBytes(r);t.set(a,n),a.length<r&&(this.eof=!0)}return}if(1===a)i=t8,n=t4;else{if(2!==a)throw new N("Unknown block type in flate stream");{let t,a,s,o;let l=this.getBits(5)+257,c=this.getBits(5)+1,h=this.getBits(4)+4,u=new Uint8Array(t3.length);for(t=0;t<h;++t)u[t3[t]]=this.getBits(3);let f=this.generateHuffmanTable(u);r=0,t=0;let d=l+c,g=new Uint8Array(d);for(;t<d;){let i=this.getCode(f);if(16===i)a=2,s=3,o=r;else if(17===i)a=3,s=3,o=r=0;else{if(18!==i){g[t++]=r=i;continue}a=7,s=11,o=r=0}let n=this.getBits(a)+s;for(;n-- >0;)g[t++]=o}i=this.generateHuffmanTable(g.subarray(0,l)),n=this.generateHuffmanTable(g.subarray(l,d))}}let o=(t=this.buffer)?t.length:0,l=this.bufferLength;for(;;){let a=this.getCode(i);if(a<256){l+1>=o&&(o=(t=this.ensureBuffer(l+1)).length),t[l++]=a;continue}if(256===a){this.bufferLength=l;return}a-=257;let s=(a=t6[a])>>16;s>0&&(s=this.getBits(s)),r=(65535&a)+s,(s=(a=t7[a=this.getCode(n)])>>16)>0&&(s=this.getBits(s));let c=(65535&a)+s;l+r>=o&&(o=(t=this.ensureBuffer(l+r)).length);for(let a=0;a<r;++a,++l)t[l]=t[l-c]}}}let at=[{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 aa{constructor(t,a,r){this.data=t,this.bp=a,this.dataEnd=r,this.chigh=t[a],this.clow=0,this.byteIn(),this.chigh=this.chigh<<7&65535|this.clow>>9&127,this.clow=this.clow<<7&65535,this.ct-=7,this.a=32768}byteIn(){let t=this.data,a=this.bp;255===t[a]?t[a+1]>143?(this.clow+=65280,this.ct=8):(a++,this.clow+=t[a]<<9,this.ct=7,this.bp=a):(a++,this.clow+=a<this.dataEnd?t[a]<<8:65280,this.ct=8,this.bp=a),this.clow>65535&&(this.chigh+=this.clow>>16,this.clow&=65535)}readBit(t,a){let r=t[a]>>1,i=1&t[a],n=at[r],s=n.qe,o,l=this.a-s;if(this.chigh<s)l<s?(l=s,o=i,r=n.nmps):(l=s,o=1^i,1===n.switchFlag&&(i=o),r=n.nlps);else{if(this.chigh-=s,32768&l)return this.a=l,i;l<s?(o=1^i,1===n.switchFlag&&(i=o),r=n.nlps):(o=i,r=n.nmps)}do 0===this.ct&&this.byteIn(),l<<=1,this.chigh=this.chigh<<1&65535|this.clow>>15&1,this.clow=this.clow<<1&65535,this.ct--;while(!(32768&l))return this.a=l,t[a]=r<<1|i,o}}class ar extends T{constructor(t){super(t,"Jbig2Error")}}class ai{getContexts(t){return t in this?this[t]:this[t]=new Int8Array(65536)}}class an{constructor(t,a,r){this.data=t,this.start=a,this.end=r}get decoder(){return I(this,"decoder",new aa(this.data,this.start,this.end))}get contextCache(){return I(this,"contextCache",new ai)}}function as(t,a,r){let i;let n=t.getContexts(a),s=1;function o(t){let a=0;for(let i=0;i<t;i++){let t=r.readBit(n,s);s=s<256?s<<1|t:511&(s<<1|t)|256,a=a<<1|t}return a>>>0}let l=o(1),c=o(1)?o(1)?o(1)?o(1)?o(1)?o(32)+4436:o(12)+340:o(8)+84:o(6)+20:o(4)+4:o(2);return 0===l?i=c:c>0&&(i=-c),i>=-2147483648&&i<=ep?i:null}function ao(t,a,r){let i=t.getContexts("IAID"),n=1;for(let t=0;t<r;t++)n=n<<1|a.readBit(i,n);return r<31?n&(1<<r)-1:2147483647&n}let al=["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"],ac=[[{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}]],ah=[{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}]}],au=[39717,1941,229,405],af=[32,8];function ad(t,a,r,i,n,s,o,l){if(t)return aS(new aA(l.data,l.start,l.end),a,r,!1);if(0===i&&!s&&!n&&4===o.length&&3===o[0].x&&-1===o[0].y&&-3===o[1].x&&-1===o[1].y&&2===o[2].x&&-2===o[2].y&&-2===o[3].x&&-2===o[3].y)return function(t,a,r){let i,n,s,o,l,c,h;let u=r.decoder,f=r.contextCache.getContexts("GB"),d=[];for(n=0;n<a;n++)for(s=0,l=d[n]=new Uint8Array(t),c=n<1?l:d[n-1],i=(h=n<2?l:d[n-2])[0]<<13|h[1]<<12|h[2]<<11|c[0]<<7|c[1]<<6|c[2]<<5|c[3]<<4;s<t;s++)l[s]=o=u.readBit(f,i),i=(31735&i)<<1|(s+3<t?h[s+3]<<11:0)|(s+4<t?c[s+4]<<4:0)|o;return d}(a,r,l);let c=!!s,h=ac[i].concat(o);h.sort((t,a)=>t.y-a.y||t.x-a.x);let u=h.length,f=new Int8Array(u),d=new Int8Array(u),g=[],p,m,b=0,y=0,w=0,x=0;for(m=0;m<u;m++)f[m]=h[m].x,d[m]=h[m].y,y=Math.min(y,h[m].x),w=Math.max(w,h[m].x),x=Math.min(x,h[m].y),m<u-1&&h[m].y===h[m+1].y&&h[m].x===h[m+1].x-1?b|=1<<u-1-m:g.push(m);let k=g.length,v=new Int8Array(k),A=new Int8Array(k),C=new Uint16Array(k);for(p=0;p<k;p++)m=g[p],v[p]=h[m].x,A[p]=h[m].y,C[p]=1<<u-1-m;let S=-y,I=-x,T=a-w,B=au[i],F=new Uint8Array(a),M=[],R=l.decoder,N=l.contextCache.getContexts("GB"),O,D,E,P,_,L=0,U=0;for(let t=0;t<r;t++){if(n&&(L^=R.readBit(N,B))){M.push(F);continue}for(F=new Uint8Array(F),M.push(F),O=0;O<a;O++){if(c&&s[t][O]){F[O]=0;continue}if(O>=S&&O<T&&t>=I)for(m=0,U=U<<1&b;m<k;m++)D=t+A[m],E=O+v[m],(P=M[D][E])&&(U|=P=C[m]);else for(m=0,U=0,_=u-1;m<u;m++,_--)(E=O+f[m])>=0&&E<a&&(D=t+d[m])>=0&&(P=M[D][E])&&(U|=P<<_);let r=R.readBit(N,U);F[O]=r}}return M}function ag(t,a,r,i,n,s,o,l,c){let h,u=ah[r].coding;0===r&&(u=u.concat([l[0]]));let f=u.length,d=new Int32Array(f),g=new Int32Array(f);for(h=0;h<f;h++)d[h]=u[h].x,g[h]=u[h].y;let p=ah[r].reference;0===r&&(p=p.concat([l[1]]));let m=p.length,b=new Int32Array(m),y=new Int32Array(m);for(h=0;h<m;h++)b[h]=p[h].x,y[h]=p[h].y;let w=i[0].length,x=i.length,k=af[r],v=[],A=c.decoder,C=c.contextCache.getContexts("GR"),S=0;for(let r=0;r<a;r++){if(o&&(S^=A.readBit(C,k)))throw new ar("prediction is not supported");let a=new Uint8Array(t);v.push(a);for(let o=0;o<t;o++){let l,c,u=0;for(h=0;h<f;h++)l=r+g[h],c=o+d[h],l<0||c<0||c>=t?u<<=1:u=u<<1|v[l][c];for(h=0;h<m;h++)l=r+y[h]-s,c=o+b[h]-n,l<0||l>=x||c<0||c>=w?u<<=1:u=u<<1|i[l][c];let p=A.readBit(C,u);a[o]=p}}return v}function ap(t,a,r,i,n,s,o,l,c,h,u,f,d,g,p,m,b,y,w){let x,k;if(t&&a)throw new ar("refinement with Huffman is not supported");let v=[];for(x=0;x<i;x++)k=new Uint8Array(r),n&&k.fill(n),v.push(k);let A=b.decoder,C=b.contextCache,S=t?-g.tableDeltaT.decode(w):-as(C,"IADT",A),I=0;for(x=0;x<s;){S+=t?g.tableDeltaT.decode(w):as(C,"IADT",A);let i=I+=t?g.tableFirstS.decode(w):as(C,"IAFS",A);for(;;){let n,s,I,T=0;o>1&&(T=t?w.readBits(y):as(C,"IAIT",A));let B=o*S+T,F=t?g.symbolIDTable.decode(w):ao(C,A,c),M=a&&(t?w.readBit():as(C,"IARI",A)),R=l[F],N=R[0].length,O=R.length;if(M){let t=as(C,"IARDW",A),a=as(C,"IARDH",A);N+=t,O+=a,R=ag(N,O,p,R,(t>>1)+as(C,"IARDX",A),(a>>1)+as(C,"IARDY",A),!1,m,b)}let D=0;h?1&f?D=O-1:i+=O-1:f>1?i+=N-1:D=N-1;let E=B-(1&f?0:O-1),P=i-(2&f?N-1:0);if(h)for(n=0;n<O;n++){if(!(k=v[P+n]))continue;I=R[n];let t=Math.min(r-E,N);switch(d){case 0:for(s=0;s<t;s++)k[E+s]|=I[s];break;case 2:for(s=0;s<t;s++)k[E+s]^=I[s];break;default:throw new ar(`operator ${d} is not supported`)}}else for(s=0;s<O;s++)if(k=v[E+s])switch(I=R[s],d){case 0:for(n=0;n<N;n++)k[P+n]|=I[n];break;case 2:for(n=0;n<N;n++)k[P+n]^=I[n];break;default:throw new ar(`operator ${d} is not supported`)}x++;let _=t?g.tableDeltaS.decode(w):as(C,"IADS",A);if(null===_)break;i+=D+_+u}}return v}function am(t,a){return{width:eN(t,a),height:eN(t,a+4),x:eN(t,a+8),y:eN(t,a+12),combinationOperator:7&t[a+16]}}class ab{onPageInformation(t){this.currentPageInfo=t;let a=t.width+7>>3,r=new Uint8ClampedArray(a*t.height);t.defaultPixelValue&&r.fill(255),this.buffer=r}drawBitmap(t,a){let r=this.currentPageInfo,i=t.width,n=t.height,s=r.width+7>>3,o=r.combinationOperatorOverride?t.combinationOperator:r.combinationOperator,l=this.buffer,c=128>>(7&t.x),h,u,f,d,g=t.y*s+(t.x>>3);switch(o){case 0:for(h=0;h<n;h++){for(u=0,f=c,d=g;u<i;u++)a[h][u]&&(l[d]|=f),!(f>>=1)&&(f=128,d++);g+=s}break;case 2:for(h=0;h<n;h++){for(u=0,f=c,d=g;u<i;u++)a[h][u]&&(l[d]^=f),!(f>>=1)&&(f=128,d++);g+=s}break;default:throw new ar(`operator ${o} is not supported`)}}onImmediateGenericRegion(t,a,r,i){let n=t.info,s=new an(a,r,i),o=ad(t.mmr,n.width,n.height,t.template,t.prediction,null,t.at,s);this.drawBitmap(n,o)}onImmediateLosslessGenericRegion(){this.onImmediateGenericRegion(...arguments)}onSymbolDictionary(t,a,r,i,n,s){let o,l;t.huffman&&(o=function(t,a,r){let i,n,s,o=0;switch(t.huffmanDHSelector){case 0:case 1:i=av(t.huffmanDHSelector+4);break;case 3:i=aC(o,a,r),o++;break;default:throw new ar("invalid Huffman DH selector")}switch(t.huffmanDWSelector){case 0:case 1:n=av(t.huffmanDWSelector+2);break;case 3:n=aC(o,a,r),o++;break;default:throw new ar("invalid Huffman DW selector")}return t.bitmapSizeSelector?(s=aC(o,a,r),o++):s=av(1),{tableDeltaHeight:i,tableDeltaWidth:n,tableBitmapSize:s,tableAggregateInstances:t.aggregationInstancesSelector?aC(o,a,r):av(1)}}(t,r,this.customTables),l=new aA(i,n,s));let c=this.symbols;c||(this.symbols=c={});let h=[];for(let t of r){let a=c[t];a&&h.push(...a)}let u=new an(i,n,s);c[a]=function(t,a,r,i,n,s,o,l,c,h,u,f){let d,g;if(t&&a)throw new ar("symbol refinement with Huffman is not supported");let p=[],m=0,b=eB(r.length+i),y=u.decoder,w=u.contextCache;for(t&&(d=av(1),g=[],b=Math.max(b,1));p.length<i;){m+=t?s.tableDeltaHeight.decode(f):as(w,"IADH",y);let i=0,n=0,d=t?g.length:0;for(;;){let d;let x=t?s.tableDeltaWidth.decode(f):as(w,"IADW",y);if(null===x)break;if(i+=x,n+=i,a){let n=as(w,"IAAI",y);if(n>1)d=ap(t,a,i,m,0,n,1,r.concat(p),b,0,0,1,0,s,c,h,u,0,f);else{let t=ao(w,y,b),a=as(w,"IARDX",y),n=as(w,"IARDY",y);d=ag(i,m,c,t<r.length?r[t]:p[t-r.length],a,n,!1,h,u)}p.push(d)}else t?g.push(i):(d=ad(!1,i,m,o,!1,null,l,u),p.push(d))}if(t&&!a){let t;let a=s.tableBitmapSize.decode(f);if(f.byteAlign(),0===a)t=function(t,a,r){let i=[];for(let n=0;n<r;n++){let r=new Uint8Array(a);i.push(r);for(let i=0;i<a;i++)r[i]=t.readBit();t.byteAlign()}return i}(f,n,m);else{let r=f.end,i=f.position+a;f.end=i,t=aS(f,n,m,!1),f.end=r,f.position=i}let r=g.length;if(d===r-1)p.push(t);else{let a,i,n,s,o=0;for(a=d;a<r;a++){for(i=0,n=o+g[a],s=[];i<m;i++)s.push(t[i].subarray(o,n));p.push(s),o=n}}}}let x=[],k=[],v,A,C=!1,S=r.length+i;for(;k.length<S;){let a=t?d.decode(f):as(w,"IAEX",y);for(;a--;)k.push(C);C=!C}for(v=0,A=r.length;v<A;v++)k[v]&&x.push(r[v]);for(let t=0;t<i;v++,t++)k[v]&&x.push(p[t]);return x}(t.huffman,t.refinement,h,t.numberOfNewSymbols,t.numberOfExportedSymbols,o,t.template,t.at,t.refinementTemplate,t.refinementAt,u,l)}onImmediateTextRegion(t,a,r,i,n){let s,o;let l=t.info,c=this.symbols,h=[];for(let t of a){let a=c[t];a&&h.push(...a)}let u=eB(h.length);t.huffman&&(o=new aA(r,i,n),s=function(t,a,r,i,n){let s=[];for(let t=0;t<=34;t++){let a=n.readBits(4);s.push(new ay([t,a,0,0]))}let o=new ax(s,!1);s.length=0;for(let t=0;t<i;){let a=o.decode(n);if(a>=32){let r,i,o;switch(a){case 32:if(0===t)throw new ar("no previous value in symbol ID table");i=n.readBits(2)+3,r=s[t-1].prefixLength;break;case 33:i=n.readBits(3)+3,r=0;break;case 34:i=n.readBits(7)+11,r=0;break;default:throw new ar("invalid code length in symbol ID table")}for(o=0;o<i;o++)s.push(new ay([t,r,0,0])),t++}else s.push(new ay([t,a,0,0])),t++}n.byteAlign();let l=new ax(s,!1),c,h,u,f=0;switch(t.huffmanFS){case 0:case 1:c=av(t.huffmanFS+6);break;case 3:c=aC(f,a,r),f++;break;default:throw new ar("invalid Huffman FS selector")}switch(t.huffmanDS){case 0:case 1:case 2:h=av(t.huffmanDS+8);break;case 3:h=aC(f,a,r),f++;break;default:throw new ar("invalid Huffman DS selector")}switch(t.huffmanDT){case 0:case 1:case 2:u=av(t.huffmanDT+11);break;case 3:u=aC(f,a,r),f++;break;default:throw new ar("invalid Huffman DT selector")}if(t.refinement)throw new ar("refinement with Huffman is not supported");return{symbolIDTable:l,tableFirstS:c,tableDeltaS:h,tableDeltaT:u}}(t,a,this.customTables,h.length,o));let f=new an(r,i,n),d=ap(t.huffman,t.refinement,l.width,l.height,t.defaultPixelValue,t.numberOfSymbolInstances,t.stripSize,h,u,t.transposed,t.dsOffset,t.referenceCorner,t.combinationOperator,s,t.refinementTemplate,t.refinementAt,f,t.logStripSize,o);this.drawBitmap(l,d)}onImmediateLosslessTextRegion(){this.onImmediateTextRegion(...arguments)}onPatternDictionary(t,a,r,i,n){let s=this.patterns;s||(this.patterns=s={});let o=new an(r,i,n);s[a]=function(t,a,r,i,n,s){let o=[];t||(o.push({x:-a,y:0}),0===n&&o.push({x:-3,y:-1},{x:2,y:-2},{x:-2,y:-2}));let l=ad(t,(i+1)*a,r,n,!1,null,o,s),c=[];for(let t=0;t<=i;t++){let i=[],n=a*t,s=n+a;for(let t=0;t<r;t++)i.push(l[t].subarray(n,s));c.push(i)}return c}(t.mmr,t.patternWidth,t.patternHeight,t.maxPatternIndex,t.template,o)}onImmediateHalftoneRegion(t,a,r,i,n){let s=this.patterns[a[0]],o=t.info,l=new an(r,i,n),c=function(t,a,r,i,n,s,o,l,c,h,u,f,d,g,p){let m,b,y,w,x,k,v,A,C,S,I,T,B,F;if(o)throw new ar("skip is not supported");if(0!==l)throw new ar(`operator "${l}" is not supported in halftone region`);let M=[];for(m=0;m<n;m++)y=new Uint8Array(i),s&&y.fill(s),M.push(y);let R=a.length,N=a[0],O=N[0].length,D=N.length,E=eB(R),P=[];t||(P.push({x:r<=1?3:2,y:-1}),0===r&&P.push({x:-3,y:-1},{x:2,y:-2},{x:-2,y:-2}));let _=[];for(t&&(w=new aA(p.data,p.start,p.end)),m=E-1;m>=0;m--)x=t?aS(w,c,h,!0):ad(!1,c,h,r,!1,null,P,p),_[m]=x;for(k=0;k<h;k++)for(v=0;v<c;v++){for(A=0,C=0,b=E-1;b>=0;b--)A^=_[b][k][v],C|=A<<b;if(S=a[C],I=u+k*g+v*d>>8,T=f+k*d-v*g>>8,I>=0&&I+O<=i&&T>=0&&T+D<=n)for(m=0;m<D;m++)for(b=0,F=M[T+m],B=S[m];b<O;b++)F[I+b]|=B[b];else{let t,a;for(m=0;m<D;m++)if(!((a=T+m)<0||a>=n))for(b=0,F=M[a],B=S[m];b<O;b++)(t=I+b)>=0&&t<i&&(F[t]|=B[b])}}return M}(t.mmr,s,t.template,o.width,o.height,t.defaultPixelValue,t.enableSkip,t.combinationOperator,t.gridWidth,t.gridHeight,t.gridOffsetX,t.gridOffsetY,t.gridVectorX,t.gridVectorY,l);this.drawBitmap(o,c)}onImmediateLosslessHalftoneRegion(){this.onImmediateHalftoneRegion(...arguments)}onTables(t,a,r,i){let n=this.customTables;n||(this.customTables=n={}),n[t]=function(t,a,r){let i=t[a],n=4294967295&eN(t,a+1),s=4294967295&eN(t,a+5),o=new aA(t,a+9,r),l=1+(i>>1&7),c=1+(i>>4&7),h=[],u,f,d=n;do u=o.readBits(l),f=o.readBits(c),h.push(new ay([d,u,f,0])),d+=1<<f;while(d<s)return u=o.readBits(l),h.push(new ay([n-1,u,32,0,"lower"])),u=o.readBits(l),h.push(new ay([s,u,32,0])),1&i&&(u=o.readBits(l),h.push(new ay([u,0]))),new ax(h,!1)}(a,r,i)}}class ay{constructor(t){2===t.length?(this.isOOB=!0,this.rangeLow=0,this.prefixLength=t[0],this.rangeLength=0,this.prefixCode=t[1],this.isLowerRange=!1):(this.isOOB=!1,this.rangeLow=t[0],this.prefixLength=t[1],this.rangeLength=t[2],this.prefixCode=t[3],this.isLowerRange="lower"===t[4])}}class aw{constructor(t){this.children=[],t?(this.isLeaf=!0,this.rangeLength=t.rangeLength,this.rangeLow=t.rangeLow,this.isLowerRange=t.isLowerRange,this.isOOB=t.isOOB):this.isLeaf=!1}buildTree(t,a){let r=t.prefixCode>>a&1;if(a<=0)this.children[r]=new aw(t);else{let i=this.children[r];i||(this.children[r]=i=new aw(null)),i.buildTree(t,a-1)}}decodeNode(t){if(this.isLeaf){if(this.isOOB)return null;let a=t.readBits(this.rangeLength);return this.rangeLow+(this.isLowerRange?-a:a)}let a=this.children[t.readBit()];if(!a)throw new ar("invalid Huffman data");return a.decodeNode(t)}}class ax{constructor(t,a){a||this.assignPrefixCodes(t),this.rootNode=new aw(null);for(let a=0,r=t.length;a<r;a++){let r=t[a];r.prefixLength>0&&this.rootNode.buildTree(r,r.prefixLength-1)}}decode(t){return this.rootNode.decodeNode(t)}assignPrefixCodes(t){let a=t.length,r=0;for(let i=0;i<a;i++)r=Math.max(r,t[i].prefixLength);let i=new Uint32Array(r+1);for(let r=0;r<a;r++)i[t[r].prefixLength]++;let n,s,o,l=1,c=0;for(i[0]=0;l<=r;){for(n=c=c+i[l-1]<<1,s=0;s<a;)(o=t[s]).prefixLength===l&&(o.prefixCode=n,n++),s++;l++}}}let ak={};function av(t){let a,r=ak[t];if(r)return r;switch(t){case 1:a=[[0,1,4,0],[16,2,8,2],[272,3,16,6],[65808,3,32,7]];break;case 2:a=[[0,1,0,0],[1,2,0,2],[2,3,0,6],[3,4,3,14],[11,5,6,30],[75,6,32,62],[6,63]];break;case 3:a=[[-256,8,8,254],[0,1,0,0],[1,2,0,2],[2,3,0,6],[3,4,3,14],[11,5,6,30],[-257,8,32,255,"lower"],[75,7,32,126],[6,62]];break;case 4:a=[[1,1,0,0],[2,2,0,2],[3,3,0,6],[4,4,3,14],[12,5,6,30],[76,5,32,31]];break;case 5:a=[[-255,7,8,126],[1,1,0,0],[2,2,0,2],[3,3,0,6],[4,4,3,14],[12,5,6,30],[-256,7,32,127,"lower"],[76,6,32,62]];break;case 6:a=[[-2048,5,10,28],[-1024,4,9,8],[-512,4,8,9],[-256,4,7,10],[-128,5,6,29],[-64,5,5,30],[-32,4,5,11],[0,2,7,0],[128,3,7,2],[256,3,8,3],[512,4,9,12],[1024,4,10,13],[-2049,6,32,62,"lower"],[2048,6,32,63]];break;case 7:a=[[-1024,4,9,8],[-512,3,8,0],[-256,4,7,9],[-128,5,6,26],[-64,5,5,27],[-32,4,5,10],[0,4,5,11],[32,5,5,28],[64,5,6,29],[128,4,7,12],[256,3,8,1],[512,3,9,2],[1024,3,10,3],[-1025,5,32,30,"lower"],[2048,5,32,31]];break;case 8:a=[[-15,8,3,252],[-7,9,1,508],[-5,8,1,253],[-3,9,0,509],[-2,7,0,124],[-1,4,0,10],[0,2,1,0],[2,5,0,26],[3,6,0,58],[4,3,4,4],[20,6,1,59],[22,4,4,11],[38,4,5,12],[70,5,6,27],[134,5,7,28],[262,6,7,60],[390,7,8,125],[646,6,10,61],[-16,9,32,510,"lower"],[1670,9,32,511],[2,1]];break;case 9:a=[[-31,8,4,252],[-15,9,2,508],[-11,8,2,253],[-7,9,1,509],[-5,7,1,124],[-3,4,1,10],[-1,3,1,2],[1,3,1,3],[3,5,1,26],[5,6,1,58],[7,3,5,4],[39,6,2,59],[43,4,5,11],[75,4,6,12],[139,5,7,27],[267,5,8,28],[523,6,8,60],[779,7,9,125],[1291,6,11,61],[-32,9,32,510,"lower"],[3339,9,32,511],[2,0]];break;case 10:a=[[-21,7,4,122],[-5,8,0,252],[-4,7,0,123],[-3,5,0,24],[-2,2,2,0],[2,5,0,25],[3,6,0,54],[4,7,0,124],[5,8,0,253],[6,2,6,1],[70,5,5,26],[102,6,5,55],[134,6,6,56],[198,6,7,57],[326,6,8,58],[582,6,9,59],[1094,6,10,60],[2118,7,11,125],[-22,8,32,254,"lower"],[4166,8,32,255],[2,2]];break;case 11:a=[[1,1,0,0],[2,2,1,2],[4,4,0,12],[5,4,1,13],[7,5,1,28],[9,5,2,29],[13,6,2,60],[17,7,2,122],[21,7,3,123],[29,7,4,124],[45,7,5,125],[77,7,6,126],[141,7,32,127]];break;case 12:a=[[1,1,0,0],[2,2,0,2],[3,3,1,6],[5,5,0,28],[6,5,1,29],[8,6,1,60],[10,7,0,122],[11,7,1,123],[13,7,2,124],[17,7,3,125],[25,7,4,126],[41,8,5,254],[73,8,32,255]];break;case 13:a=[[1,1,0,0],[2,3,0,4],[3,4,0,12],[4,5,0,28],[5,4,1,13],[7,3,3,5],[15,6,1,58],[17,6,2,59],[21,6,3,60],[29,6,4,61],[45,6,5,62],[77,7,6,126],[141,7,32,127]];break;case 14:a=[[-2,3,0,4],[-1,3,0,5],[0,1,0,0],[1,3,0,6],[2,3,0,7]];break;case 15:a=[[-24,7,4,124],[-8,6,2,60],[-4,5,1,28],[-2,4,0,12],[-1,3,0,4],[0,1,0,0],[1,3,0,5],[2,4,0,13],[3,5,1,29],[5,6,2,61],[9,7,4,125],[-25,7,32,126,"lower"],[25,7,32,127]];break;default:throw new ar(`standard table B.${t} does not exist`)}for(let t=0,r=a.length;t<r;t++)a[t]=new ay(a[t]);return r=new ax(a,!0),ak[t]=r,r}class aA{constructor(t,a,r){this.data=t,this.start=a,this.end=r,this.position=a,this.shift=-1,this.currentByte=0}readBit(){if(this.shift<0){if(this.position>=this.end)throw new ar("end of data while reading bit");this.currentByte=this.data[this.position++],this.shift=7}let t=this.currentByte>>this.shift&1;return this.shift--,t}readBits(t){let a,r=0;for(a=t-1;a>=0;a--)r|=this.readBit()<<a;return r}byteAlign(){this.shift=-1}next(){return this.position>=this.end?-1:this.data[this.position++]}}function aC(t,a,r){let i=0;for(let n=0,s=a.length;n<s;n++){let s=r[a[n]];if(s){if(t===i)return s;i++}}throw new ar("can't find custom Huffman table")}function aS(t,a,r,i){let n=new t9(t,{K:-1,Columns:a,Rows:r,BlackIs1:!0,EndOfBlock:i}),s=[],o,l=!1;for(let t=0;t<r;t++){let t=new Uint8Array(a);s.push(t);let r=-1;for(let i=0;i<a;i++)r<0&&(-1===(o=n.readNextChar())&&(o=0,l=!0),r=7),t[i]=o>>r&1,r--}if(i&&!l)for(let t=0;t<5&&-1!==n.readNextChar();t++);return s}class aI{parseChunks(t){return function(t){let a=new ab;for(let r=0,i=t.length;r<i;r++){let i=t[r];!function(t,a){for(let r=0,i=t.length;r<i;r++)!function(t,a){let r=t.header,i=t.data,n=t.end,s,o,l,c,h=t.start;switch(r.type){case 0:let u={},f=eR(i,h);if(u.huffman=!!(1&f),u.refinement=!!(2&f),u.huffmanDHSelector=f>>2&3,u.huffmanDWSelector=f>>4&3,u.bitmapSizeSelector=f>>6&1,u.aggregationInstancesSelector=f>>7&1,u.bitmapCodingContextUsed=!!(256&f),u.bitmapCodingContextRetained=!!(512&f),u.template=f>>10&3,u.refinementTemplate=f>>12&1,h+=2,!u.huffman){for(l=0,c=0===u.template?4:1,o=[];l<c;l++)o.push({x:eF(i,h),y:eF(i,h+1)}),h+=2;u.at=o}if(u.refinement&&!u.refinementTemplate){for(l=0,o=[];l<2;l++)o.push({x:eF(i,h),y:eF(i,h+1)}),h+=2;u.refinementAt=o}u.numberOfExportedSymbols=eN(i,h),h+=4,u.numberOfNewSymbols=eN(i,h),h+=4,s=[u,r.number,r.referredTo,i,h,n];break;case 6:case 7:let d={};d.info=am(i,h),h+=17;let g=eR(i,h);if(h+=2,d.huffman=!!(1&g),d.refinement=!!(2&g),d.logStripSize=g>>2&3,d.stripSize=1<<d.logStripSize,d.referenceCorner=g>>4&3,d.transposed=!!(64&g),d.combinationOperator=g>>7&3,d.defaultPixelValue=g>>9&1,d.dsOffset=g<<17>>27,d.refinementTemplate=g>>15&1,d.huffman){let t=eR(i,h);h+=2,d.huffmanFS=3&t,d.huffmanDS=t>>2&3,d.huffmanDT=t>>4&3,d.huffmanRefinementDW=t>>6&3,d.huffmanRefinementDH=t>>8&3,d.huffmanRefinementDX=t>>10&3,d.huffmanRefinementDY=t>>12&3,d.huffmanRefinementSizeSelector=!!(16384&t)}if(d.refinement&&!d.refinementTemplate){for(l=0,o=[];l<2;l++)o.push({x:eF(i,h),y:eF(i,h+1)}),h+=2;d.refinementAt=o}d.numberOfSymbolInstances=eN(i,h),h+=4,s=[d,r.referredTo,i,h,n];break;case 16:let p={},m=i[h++];p.mmr=!!(1&m),p.template=m>>1&3,p.patternWidth=i[h++],p.patternHeight=i[h++],p.maxPatternIndex=eN(i,h),h+=4,s=[p,r.number,i,h,n];break;case 22:case 23:let b={};b.info=am(i,h),h+=17;let y=i[h++];b.mmr=!!(1&y),b.template=y>>1&3,b.enableSkip=!!(8&y),b.combinationOperator=y>>4&7,b.defaultPixelValue=y>>7&1,b.gridWidth=eN(i,h),h+=4,b.gridHeight=eN(i,h),h+=4,b.gridOffsetX=4294967295&eN(i,h),h+=4,b.gridOffsetY=4294967295&eN(i,h),h+=4,b.gridVectorX=eR(i,h),h+=2,b.gridVectorY=eR(i,h),h+=2,s=[b,r.referredTo,i,h,n];break;case 38:case 39:let w={};w.info=am(i,h),h+=17;let x=i[h++];if(w.mmr=!!(1&x),w.template=x>>1&3,w.prediction=!!(8&x),!w.mmr){for(l=0,c=0===w.template?4:1,o=[];l<c;l++)o.push({x:eF(i,h),y:eF(i,h+1)}),h+=2;w.at=o}s=[w,i,h,n];break;case 48:let k={width:eN(i,h),height:eN(i,h+4),resolutionX:eN(i,h+8),resolutionY:eN(i,h+12)};4294967295===k.height&&delete k.height;let v=i[h+16];eR(i,h+17),k.lossless=!!(1&v),k.refinement=!!(2&v),k.defaultPixelValue=v>>2&1,k.combinationOperator=v>>3&3,k.requiresBuffer=!!(32&v),k.combinationOperatorOverride=!!(64&v),s=[k];break;case 49:case 50:case 51:case 62:break;case 53:s=[r.number,i,h,n];break;default:throw new ar(`segment type ${r.typeName}(${r.type}) is not implemented`)}let A="on"+r.typeName;A in a&&a[A].apply(a,s)}(t[r],a)}(function(t,a,r,i){let n=[],s=r;for(;s<i;){let r=function(t,a){let r,i;let n={};n.number=eN(t,a);let s=t[a+4],o=63&s;if(!al[o])throw new ar("invalid segment type: "+o);n.type=o,n.typeName=al[o],n.deferredNonRetain=!!(128&s);let l=t[a+5],c=l>>5&7,h=[31&l],u=a+6;if(7===l){c=536870911&eN(t,u-1),u+=3;let a=c+7>>3;for(h[0]=t[u++];--a>0;)h.push(t[u++])}else if(5===l||6===l)throw new ar("invalid referred-to flags");n.retainBits=h;let f=4;n.number<=256?f=1:n.number<=65536&&(f=2);let d=[];for(r=0;r<c;r++){let a;a=1===f?t[u]:2===f?eR(t,u):eN(t,u),d.push(a),u+=f}if(n.referredTo=d,64&s?(n.pageAssociation=eN(t,u),u+=4):n.pageAssociation=t[u++],n.length=eN(t,u),u+=4,4294967295===n.length){if(38!==o)throw new ar("invalid unknown segment length");{let a=am(t,u),s=!!(1&t[u+17]),o=new Uint8Array(6);for(s||(o[0]=255,o[1]=172),o[2]=a.height>>>24&255,o[3]=a.height>>16&255,o[4]=a.height>>8&255,o[5]=255&a.height,r=u,i=t.length;r<i;r++){let a=0;for(;a<6&&o[a]===t[r+a];)a++;if(6===a){n.length=r+6;break}}if(4294967295===n.length)throw new ar("segment end was not found")}}return n.headerEnd=u,n}(a,s);s=r.headerEnd;let i={header:r,data:a};if(t.randomAccess||(i.start=s,s+=r.length,i.end=s),n.push(i),51===r.type)break}if(t.randomAccess)for(let t=0,a=n.length;t<a;t++)n[t].start=s,s+=n[t].header.length,n[t].end=s;return n}({},i.data,i.start,i.end),a)}return a.buffer}(t)}parse(t){throw Error("Not implemented: Jbig2Image.parse")}}class aT extends tA{constructor(t,a,r){super(a),this.stream=t,this.dict=t.dict,this.maybeLength=a,this.params=r}get bytes(){return I(this,"bytes",this.stream.getBytes(this.maybeLength))}ensureBuffer(t){}readBlock(){this.decodeImage()}decodeImage(t){if(this.eof)return this.buffer;t||=this.bytes;let a=new aI,r=[];if(this.params instanceof en){let t=this.params.get("JBIG2Globals");if(t instanceof ed){let a=t.getBytes();r.push({data:a,start:0,end:a.length})}}r.push({data:t,start:0,end:t.length});let i=a.parseChunks(r),n=i.length;for(let t=0;t<n;t++)i[t]^=255;return this.buffer=i,this.bufferLength=n,this.eof=!0,this.buffer}get canAsyncDecodeImageFromBuffer(){return this.stream.isAsync}}class aB extends tA{constructor(t,a,r){super(a),this.stream=t,this.dict=t.dict,this.maybeLength=a,this.params=r}get bytes(){return I(this,"bytes",this.stream.getBytes(this.maybeLength))}ensureBuffer(t){}readBlock(t){A("JpxStream.readBlock")}get isAsyncDecoder(){return!0}async decodeImage(t,a){return this.eof||(t||=this.bytes,this.buffer=await t_.decode(t,a),this.bufferLength=this.buffer.length,this.eof=!0),this.buffer}get canAsyncDecodeImageFromBuffer(){return this.stream.isAsync}}class aF extends tA{constructor(t,a,r){super(a),this.stream=t,this.dict=t.dict,this.cachedData=0,this.bitsCached=0;let i={earlyChange:r,codeLength:9,nextCode:258,dictionaryValues:new Uint8Array(4096),dictionaryLengths:new Uint16Array(4096),dictionaryPrevCodes:new Uint16Array(4096),currentSequence:new Uint8Array(4096),currentSequenceLength:0};for(let t=0;t<256;++t)i.dictionaryValues[t]=t,i.dictionaryLengths[t]=1;this.lzwState=i}readBits(t){let a=this.bitsCached,r=this.cachedData;for(;a<t;){let t=this.stream.getByte();if(-1===t)return this.eof=!0,null;r=r<<8|t,a+=8}return this.bitsCached=a-=t,this.cachedData=r,this.lastCode=null,r>>>a&(1<<t)-1}readBlock(){let t,a,r,i=1024,n=this.lzwState;if(!n)return;let s=n.earlyChange,o=n.nextCode,l=n.dictionaryValues,c=n.dictionaryLengths,h=n.dictionaryPrevCodes,u=n.codeLength,f=n.prevCode,d=n.currentSequence,g=n.currentSequenceLength,p=0,m=this.bufferLength,b=this.ensureBuffer(this.bufferLength+i);for(t=0;t<512;t++){let t=this.readBits(u),n=g>0;if(t<256)d[0]=t,g=1;else{if(!(t>=258)){if(256===t){u=9,o=258,g=0;continue}this.eof=!0,delete this.lzwState;break}if(t<o)for(a=(g=c[t])-1,r=t;a>=0;a--)d[a]=l[r],r=h[r];else d[g++]=d[0]}if(n&&(h[o]=f,c[o]=c[f]+1,l[o]=d[0],u=++o+s&o+s-1?u:0|Math.min(Math.log(o+s)/.6931471805599453+1,12)),f=t,i<(p+=g)){do i+=512;while(i<p)b=this.ensureBuffer(this.bufferLength+i)}for(a=0;a<g;a++)b[m++]=d[a]}n.nextCode=o,n.codeLength=u,n.prevCode=f,n.currentSequenceLength=g,this.bufferLength=m}}class aM extends tA{constructor(t,a,r){if(super(a),!(r instanceof en))return t;let i=this.predictor=r.get("Predictor")||1;if(i<=1)return t;if(2!==i&&(i<10||i>15))throw new N(`Unsupported predictor: ${i}`);this.readBlock=2===i?this.readBlockTiff:this.readBlockPng,this.stream=t,this.dict=t.dict;let n=this.colors=r.get("Colors")||1,s=this.bits=r.get("BPC","BitsPerComponent")||8,o=this.columns=r.get("Columns")||1;return this.pixBytes=n*s+7>>3,this.rowBytes=o*n*s+7>>3,this}readBlockTiff(){let t=this.rowBytes,a=this.bufferLength,r=this.ensureBuffer(a+t),i=this.bits,n=this.colors,s=this.stream.getBytes(t);if(this.eof=!s.length,this.eof)return;let o,l=0,c=0,h=0,u=0,f=a;if(1===i&&1===n)for(o=0;o<t;++o){let t=s[o]^l;t^=t>>1,t^=t>>2,t^=t>>4,l=(1&t)<<7,r[f++]=t}else if(8===i){for(o=0;o<n;++o)r[f++]=s[o];for(;o<t;++o)r[f]=r[f-n]+s[o],f++}else if(16===i){let a=2*n;for(o=0;o<a;++o)r[f++]=s[o];for(;o<t;o+=2){let t=((255&s[o])<<8)+(255&s[o+1])+((255&r[f-a])<<8)+(255&r[f-a+1]);r[f++]=t>>8&255,r[f++]=255&t}}else{let t=new Uint8Array(n+1),f=(1<<i)-1,d=0,g=a,p=this.columns;for(o=0;o<p;++o)for(let a=0;a<n;++a)h<i&&(l=l<<8|255&s[d++],h+=8),t[a]=t[a]+(l>>h-i)&f,h-=i,c=c<<i|t[a],(u+=i)>=8&&(r[g++]=c>>u-8&255,u-=8);u>0&&(r[g++]=(c<<8-u)+(l&(1<<8-u)-1))}this.bufferLength+=t}readBlockPng(){let t=this.rowBytes,a=this.pixBytes,r=this.stream.getByte(),i=this.stream.getBytes(t);if(this.eof=!i.length,this.eof)return;let n=this.bufferLength,s=this.ensureBuffer(n+t),o=s.subarray(n-t,n);0===o.length&&(o=new Uint8Array(t));let l,c,h,u=n;switch(r){case 0:for(l=0;l<t;++l)s[u++]=i[l];break;case 1:for(l=0;l<a;++l)s[u++]=i[l];for(;l<t;++l)s[u]=s[u-a]+i[l]&255,u++;break;case 2:for(l=0;l<t;++l)s[u++]=o[l]+i[l]&255;break;case 3:for(l=0;l<a;++l)s[u++]=(o[l]>>1)+i[l];for(;l<t;++l)s[u]=(o[l]+s[u-a]>>1)+i[l]&255,u++;break;case 4:for(l=0;l<a;++l)c=o[l],h=i[l],s[u++]=c+h;for(;l<t;++l){c=o[l];let t=o[l-a],r=s[u-a],n=r+c-t,f=n-r;f<0&&(f=-f);let d=n-c;d<0&&(d=-d);let g=n-t;g<0&&(g=-g),h=i[l],s[u++]=f<=d&&f<=g?r+h:d<=g?c+h:t+h}break;default:throw new N(`Unsupported predictor: ${r}`)}this.bufferLength+=t}}class aR extends tA{constructor(t,a){super(a),this.stream=t,this.dict=t.dict}readBlock(){let t=this.stream.getBytes(2);if(!t||t.length<2||128===t[0]){this.eof=!0;return}let a,r=this.bufferLength,i=t[0];if(i<128){if((a=this.ensureBuffer(r+i+1))[r++]=t[1],i>0){let t=this.stream.getBytes(i);a.set(t,r),r+=i}}else i=257-i,(a=this.ensureBuffer(r+i+1)).fill(t[1],r,r+i),r+=i;this.bufferLength=r}}class aN{constructor({lexer:t,xref:a,allowStreams:r=!1,recoveryMode:i=!1}){this.lexer=t,this.xref=a,this.allowStreams=r,this.recoveryMode=i,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 er&&"ID"===this.buf2.cmd?(this.buf1=this.buf2,this.buf2=null):(this.buf1=this.buf2,this.buf2=this.lexer.getObj())}tryShift(){try{return this.shift(),!0}catch(t){if(t instanceof ex)throw t;return!1}}getObj(t=null){let a=this.buf1;if(this.shift(),a instanceof er)switch(a.cmd){case"BI":return this.makeInlineImage(t);case"[":let r=[];for(;!eh(this.buf1,"]")&&this.buf1!==Z;)r.push(this.getObj(t));if(this.buf1===Z){if(this.recoveryMode)return r;throw new ek("End of file inside array.")}return this.shift(),r;case"<<":let i=new en(this.xref);for(;!eh(this.buf1,">>")&&this.buf1!==Z;){if(!(this.buf1 instanceof ea)){k("Malformed dictionary: key must be a name object"),this.shift();continue}let a=this.buf1.name;if(this.shift(),this.buf1===Z)break;i.set(a,this.getObj(t))}if(this.buf1===Z){if(this.recoveryMode)return i;throw new ek("End of file inside dictionary.")}if(eh(this.buf2,"stream"))return this.allowStreams?this.makeStream(i,t):i;return this.shift(),i;default:return a}if(Number.isInteger(a)){if(Number.isInteger(this.buf1)&&eh(this.buf2,"R")){let t=es.get(a,this.buf1);return this.shift(),this.shift(),t}return a}return"string"==typeof a&&t?t.decryptString(a):a}findDefaultInlineStreamEnd(t){let{knownCommands:a}=this.lexer,r=t.pos,i,n,s=0;for(;-1!==(i=t.getByte());)if(0===s)s=69===i?1:0;else if(1===s)s=73===i?2:0;else if(32===i||10===i||13===i){n=t.pos;let r=t.peekBytes(15),o=r.length;if(0===o)break;for(let t=0;t<o;t++)if((0!==(i=r[t])||0===r[t+1])&&10!==i&&13!==i&&(i<32||i>127)){s=0;break}if(2!==s)continue;if(!a){v("findDefaultInlineStreamEnd - `lexer.knownCommands` is undefined.");continue}let l=new aE(new tg(t.peekBytes(75)),a);l._hexStringWarn=()=>{};let c=0;for(;;){let t=l.getObj();if(t===Z){s=0;break}if(t instanceof er){let r=a[t.cmd];if(!r){s=0;break}if(r.variableArgs?c<=r.numArgs:c===r.numArgs)break;c=0;continue}c++}if(2===s)break}else s=0;-1===i&&(v("findDefaultInlineStreamEnd: Reached the end of the stream without finding a valid EI marker"),n&&(v('... trying to recover by using the last "EI" occurrence.'),t.skip(-(t.pos-n))));let o=4;return t.skip(-o),i=t.peekByte(),t.skip(o),eO(i)||o--,t.pos-o-r}findDCTDecodeInlineStreamEnd(t){let a=t.pos,r,i,n=!1;for(;-1!==(r=t.getByte());)if(255===r){switch(t.getByte()){case 0:break;case 255:t.skip(-1);break;case 217:n=!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:(i=t.getUint16())>2?t.skip(i-2):t.skip(-2)}if(n)break}let s=t.pos-a;return -1===r?(v("Inline DCTDecode image stream: EOI marker not found, searching for /EI/ instead."),t.skip(-s),this.findDefaultInlineStreamEnd(t)):(this.inlineStreamSkipEI(t),s)}findASCII85DecodeInlineStreamEnd(t){let a;let r=t.pos;for(;-1!==(a=t.getByte());)if(126===a){let r=t.pos;for(a=t.peekByte();eO(a);)t.skip(),a=t.peekByte();if(62===a){t.skip();break}if(t.pos>r){let a=t.peekBytes(2);if(69===a[0]&&73===a[1])break}}let i=t.pos-r;return -1===a?(v("Inline ASCII85Decode image stream: EOD marker not found, searching for /EI/ instead."),t.skip(-i),this.findDefaultInlineStreamEnd(t)):(this.inlineStreamSkipEI(t),i)}findASCIIHexDecodeInlineStreamEnd(t){let a;let r=t.pos;for(;-1!==(a=t.getByte())&&62!==a;);let i=t.pos-r;return -1===a?(v("Inline ASCIIHexDecode image stream: EOD marker not found, searching for /EI/ instead."),t.skip(-i),this.findDefaultInlineStreamEnd(t)):(this.inlineStreamSkipEI(t),i)}inlineStreamSkipEI(t){let a,r=0;for(;-1!==(a=t.getByte());)if(0===r)r=69===a?1:0;else if(1===r)r=73===a?2:0;else if(2===r)break}makeInlineImage(t){let a,r,i,n;let s=this.lexer,o=s.stream,l=Object.create(null);for(;!eh(this.buf1,"ID")&&this.buf1!==Z;){if(!(this.buf1 instanceof ea))throw new N("Dictionary key must be a name object");let a=this.buf1.name;if(this.shift(),this.buf1===Z)break;l[a]=this.getObj(t)}-1!==s.beginInlineImagePos&&(a=o.pos-s.beginInlineImagePos);let c=this.xref.fetchIfRef(l.F||l.Filter);if(c instanceof ea)r=c.name;else if(Array.isArray(c)){let t=this.xref.fetchIfRef(c[0]);t instanceof ea&&(r=t.name)}let h=o.pos;switch(r){case"DCT":case"DCTDecode":i=this.findDCTDecodeInlineStreamEnd(o);break;case"A85":case"ASCII85Decode":i=this.findASCII85DecodeInlineStreamEnd(o);break;case"AHx":case"ASCIIHexDecode":i=this.findASCIIHexDecodeInlineStreamEnd(o);break;default:i=this.findDefaultInlineStreamEnd(o)}if(i<1e3&&a>0){let t=o.pos;o.pos=s.beginInlineImagePos,n=function(t){let a=[],r=t.length,i=0;for(;i<r-1;)a.push(t[i++]<<8|t[i++]);return i<r&&a.push(t[i]),r+"_"+String.fromCharCode.apply(null,a)}(o.getBytes(a+i)),o.pos=t;let r=this.imageCache[n];if(void 0!==r)return this.buf2=er.get("EI"),this.shift(),r.reset(),r}let u=new en(this.xref);for(let t in l)u.set(t,l[t]);let f=o.makeSubStream(h,i,u);return t&&(f=t.createStream(f,i)),(f=this.filter(f,u,i)).dict=u,void 0!==n&&(f.cacheKey="inline_img_"+ ++this._imageId,this.imageCache[n]=f),this.buf2=er.get("EI"),this.shift(),f}#H(t){let{stream:a}=this.lexer;a.pos=t;let r=new Uint8Array([101,110,100]),i=r.length,n=[new Uint8Array([115,116,114,101,97,109]),new Uint8Array([115,116,101,97,109]),new Uint8Array([115,116,114,101,97])],s=9-i;for(;a.pos<a.end;){let o=a.peekBytes(2048),l=o.length-9;if(l<=0)break;let c=0;for(;c<l;){let l=0;for(;l<i&&o[c+l]===r[l];)l++;if(l>=i){let i=!1;for(let t of n){let a=t.length,n=0;for(;n<a&&o[c+l+n]===t[n];)n++;if(n>=s){i=!0;break}if(n>=a){eO(o[c+l+n])&&(k(`Found "${D([...r,...t])}" when searching for endstream command.`),i=!0);break}}if(i)return a.pos+=c,a.pos-t}c++}a.pos+=l}return -1}makeStream(t,a){let r=this.lexer,i=r.stream;r.skipToNextLine();let n=i.pos-1,s=t.get("Length");if(Number.isInteger(s)||(k(`Bad length "${s&&s.toString()}" in stream.`),s=0),i.pos=n+s,r.nextChar(),this.tryShift()&&eh(this.buf2,"endstream"))this.shift();else{if((s=this.#H(n))<0)throw new N("Missing endstream command.");r.nextChar(),this.shift(),this.shift()}return this.shift(),i=i.makeSubStream(n,s,t),a&&(i=a.createStream(i,s)),(i=this.filter(i,t,s)).dict=t,i}filter(t,a,r){let i=a.get("F","Filter"),n=a.get("DP","DecodeParms");if(i instanceof ea)return Array.isArray(n)&&v("/DecodeParms should not be an Array, when /Filter is a Name."),this.makeFilter(t,i.name,r,n);let s=r;if(Array.isArray(i)){let a=i,r=n;for(let o=0,l=a.length;o<l;++o){if(!((i=this.xref.fetchIfRef(a[o]))instanceof ea))throw new N(`Bad filter name "${i}"`);n=null,Array.isArray(r)&&o in r&&(n=this.xref.fetchIfRef(r[o])),t=this.makeFilter(t,i.name,s,n),s=null}}return t}makeFilter(t,a,r,i){if(0===r)return v(`Empty "${a}" stream.`),new tm;try{switch(a){case"Fl":case"FlateDecode":return i?new aM(new ae(t,r),r,i):new ae(t,r);case"LZW":case"LZWDecode":let n=1;if(i)return i.has("EarlyChange")&&(n=i.get("EarlyChange")),new aM(new aF(t,r,n),r,i);return new aF(t,r,n);case"DCT":case"DCTDecode":return new tD(t,r,i);case"JPX":case"JPXDecode":return new aB(t,r,i);case"A85":case"ASCII85Decode":return new tK(t,r);case"AHx":case"ASCIIHexDecode":return new tY(t,r);case"CCF":case"CCITTFaxDecode":return new t5(t,r,i);case"RL":case"RunLengthDecode":return new aR(t,r);case"JBIG2Decode":return new aT(t,r,i)}return v(`Filter "${a}" is not supported.`),t}catch(t){if(t instanceof ex)throw t;return v(`Invalid stream: "${t}"`),new tm}}}let aO=[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 aD(t){return t>=48&&t<=57?15&t:t>=65&&t<=70||t>=97&&t<=102?9+(15&t):-1}class aE{constructor(t,a=null){this.stream=t,this.nextChar(),this.strBuf=[],this.knownCommands=a,this._hexStringNumWarn=0,this.beginInlineImagePos=-1}nextChar(){return this.currentChar=this.stream.getByte()}peekChar(){return this.stream.peekByte()}getNumber(){let t=this.currentChar,a=!1,r=0,i=1;if(45===t?(i=-1,45===(t=this.nextChar())&&(t=this.nextChar())):43===t&&(t=this.nextChar()),10===t||13===t)do t=this.nextChar();while(10===t||13===t)if(46===t&&(r=10,t=this.nextChar()),t<48||t>57){let a=`Invalid number: ${String.fromCharCode(t)} (charCode ${t})`;if(eO(t)||40===t||60===t||-1===t)return k(`Lexer.getNumber - "${a}".`),0;throw new N(a)}let n=t-48,s=0,o=1;for(;(t=this.nextChar())>=0;)if(t>=48&&t<=57){let i=t-48;a?s=10*s+i:(0!==r&&(r*=10),n=10*n+i)}else if(46===t){if(0!==r)break;r=1}else if(45===t)v("Badly formatted number: minus sign in the middle");else{if(69!==t&&101!==t)break;if(43===(t=this.peekChar())||45===t)o=45===t?-1:1,this.nextChar();else if(t<48||t>57)break;a=!0}return 0!==r&&(n/=r),a&&(n*=10**(o*s)),i*n}getString(){let t=1,a=!1,r=this.strBuf;r.length=0;let i=this.nextChar();for(;;){let n=!1;switch(0|i){case -1:v("Unterminated string"),a=!0;break;case 40:++t,r.push("(");break;case 41:0==--t?(this.nextChar(),a=!0):r.push(")");break;case 92:switch(i=this.nextChar()){case -1:v("Unterminated string"),a=!0;break;case 110:r.push("\n");break;case 114:r.push("\r");break;case 116:r.push("	");break;case 98:r.push("\b");break;case 102:r.push("\f");break;case 92:case 40:case 41:default:r.push(String.fromCharCode(i));break;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:let s=15&i;i=this.nextChar(),n=!0,i>=48&&i<=55&&(s=(s<<3)+(15&i),(i=this.nextChar())>=48&&i<=55&&(n=!1,s=(s<<3)+(15&i))),r.push(String.fromCharCode(s));break;case 13:10===this.peekChar()&&this.nextChar();case 10:}break;default:r.push(String.fromCharCode(i))}if(a)break;n||(i=this.nextChar())}return r.join("")}getName(){let t,a;let r=this.strBuf;for(r.length=0;(t=this.nextChar())>=0&&!aO[t];)if(35===t){if(aO[t=this.nextChar()]){v("Lexer_getName: NUMBER SIGN (#) should be followed by a hexadecimal number."),r.push("#");break}let i=aD(t);if(-1!==i){a=t,t=this.nextChar();let n=aD(t);if(-1===n){if(v(`Lexer_getName: Illegal digit (${String.fromCharCode(t)}) in hexadecimal number.`),r.push("#",String.fromCharCode(a)),aO[t])break;r.push(String.fromCharCode(t));continue}r.push(String.fromCharCode(i<<4|n))}else r.push("#",String.fromCharCode(t))}else r.push(String.fromCharCode(t));return r.length>127&&v(`Name token is longer than allowed by the spec: ${r.length}`),ea.get(r.join(""))}_hexStringWarn(t){5!=this._hexStringNumWarn++?this._hexStringNumWarn>5||v(`getHexString - ignoring invalid character: ${t}`):v("getHexString - ignoring additional invalid characters.")}getHexString(){let t=this.strBuf;t.length=0;let a=this.currentChar,r=-1,i=-1;for(this._hexStringNumWarn=0;;){if(a<0){v("Unterminated hex string");break}if(62===a){this.nextChar();break}1!==aO[a]&&(-1===(i=aD(a))?this._hexStringWarn(a):-1===r?r=i:(t.push(String.fromCharCode(r<<4|i)),r=-1)),a=this.nextChar()}return -1!==r&&t.push(String.fromCharCode(r<<4)),t.join("")}getObj(){let t=!1,a=this.currentChar;for(;;){if(a<0)return Z;if(t)10!==a&&13!==a||(t=!1);else if(37===a)t=!0;else if(1!==aO[a])break;a=this.nextChar()}switch(0|a){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(),er.get("[");case 93:return this.nextChar(),er.get("]");case 60:if(60===(a=this.nextChar()))return this.nextChar(),er.get("<<");return this.getHexString();case 62:if(62===(a=this.nextChar()))return this.nextChar(),er.get(">>");return er.get(">");case 123:return this.nextChar(),er.get("{");case 125:return this.nextChar(),er.get("}");case 41:throw this.nextChar(),new N(`Illegal character: ${a}`)}let r=String.fromCharCode(a);if(a<32||a>127){let t=this.peekChar();if(t>=32&&t<=127)return this.nextChar(),er.get(r)}let i=this.knownCommands,n=void 0!==i?.[r];for(;(a=this.nextChar())>=0&&!aO[a];){let t=r+String.fromCharCode(a);if(n&&void 0===i[t])break;if(128===r.length)throw new N(`Command token too long: ${r.length}`);r=t,n=void 0!==i?.[r]}return"true"===r||"false"!==r&&("null"===r?null:("BI"===r&&(this.beginInlineImagePos=this.stream.pos),er.get(r)))}skipToNextLine(){let t=this.currentChar;for(;t>=0;){if(13===t){10===(t=this.nextChar())&&this.nextChar();break}if(10===t){this.nextChar();break}t=this.nextChar()}}}class aP{static create(t){let a,r;function i(t,a,r=!1){let i=t.get(a);if(Number.isInteger(i)&&(r?i>=0:i>0))return i;throw Error(`The "${a}" parameter in the linearization dictionary is invalid.`)}let n=new aN({lexer:new aE(t),xref:null}),s=n.getObj(),o=n.getObj(),l=n.getObj(),c=n.getObj();if(!(Number.isInteger(s)&&Number.isInteger(o)&&eh(l,"obj")&&c instanceof en&&"number"==typeof(a=c.get("Linearized"))&&a>0))return null;if((r=i(c,"L"))!==t.length)throw Error('The "L" parameter in the linearization dictionary does not equal the stream length.');return{length:r,hints:function(t){let a;let r=t.get("H");if(Array.isArray(r)&&(2===(a=r.length)||4===a)){for(let t=0;t<a;t++){let a=r[t];if(!(Number.isInteger(a)&&a>0))throw Error(`Hint (${t}) in the linearization dictionary is invalid.`)}return r}throw Error("Hint array in the linearization dictionary is invalid.")}(c),objectNumberFirst:i(c,"O"),endFirst:i(c,"E"),numPages:i(c,"N"),mainXRefEntriesOffset:i(c,"T"),pageFirst:c.has("P")?i(c,"P",!0):0}}}let a_=["Adobe-GB1-UCS2","Adobe-CNS1-UCS2","Adobe-Japan1-UCS2","Adobe-Korea1-UCS2","78-EUC-H","78-EUC-V","78-H","78-RKSJ-H","78-RKSJ-V","78-V","78ms-RKSJ-H","78ms-RKSJ-V","83pv-RKSJ-H","90ms-RKSJ-H","90ms-RKSJ-V","90msp-RKSJ-H","90msp-RKSJ-V","90pv-RKSJ-H","90pv-RKSJ-V","Add-H","Add-RKSJ-H","Add-RKSJ-V","Add-V","Adobe-CNS1-0","Adobe-CNS1-1","Adobe-CNS1-2","Adobe-CNS1-3","Adobe-CNS1-4","Adobe-CNS1-5","Adobe-CNS1-6","Adobe-GB1-0","Adobe-GB1-1","Adobe-GB1-2","Adobe-GB1-3","Adobe-GB1-4","Adobe-GB1-5","Adobe-Japan1-0","Adobe-Japan1-1","Adobe-Japan1-2","Adobe-Japan1-3","Adobe-Japan1-4","Adobe-Japan1-5","Adobe-Japan1-6","Adobe-Korea1-0","Adobe-Korea1-1","Adobe-Korea1-2","B5-H","B5-V","B5pc-H","B5pc-V","CNS-EUC-H","CNS-EUC-V","CNS1-H","CNS1-V","CNS2-H","CNS2-V","ETHK-B5-H","ETHK-B5-V","ETen-B5-H","ETen-B5-V","ETenms-B5-H","ETenms-B5-V","EUC-H","EUC-V","Ext-H","Ext-RKSJ-H","Ext-RKSJ-V","Ext-V","GB-EUC-H","GB-EUC-V","GB-H","GB-V","GBK-EUC-H","GBK-EUC-V","GBK2K-H","GBK2K-V","GBKp-EUC-H","GBKp-EUC-V","GBT-EUC-H","GBT-EUC-V","GBT-H","GBT-V","GBTpc-EUC-H","GBTpc-EUC-V","GBpc-EUC-H","GBpc-EUC-V","H","HKdla-B5-H","HKdla-B5-V","HKdlb-B5-H","HKdlb-B5-V","HKgccs-B5-H","HKgccs-B5-V","HKm314-B5-H","HKm314-B5-V","HKm471-B5-H","HKm471-B5-V","HKscs-B5-H","HKscs-B5-V","Hankaku","Hiragana","KSC-EUC-H","KSC-EUC-V","KSC-H","KSC-Johab-H","KSC-Johab-V","KSC-V","KSCms-UHC-H","KSCms-UHC-HW-H","KSCms-UHC-HW-V","KSCms-UHC-V","KSCpc-EUC-H","KSCpc-EUC-V","Katakana","NWP-H","NWP-V","RKSJ-H","RKSJ-V","Roman","UniCNS-UCS2-H","UniCNS-UCS2-V","UniCNS-UTF16-H","UniCNS-UTF16-V","UniCNS-UTF32-H","UniCNS-UTF32-V","UniCNS-UTF8-H","UniCNS-UTF8-V","UniGB-UCS2-H","UniGB-UCS2-V","UniGB-UTF16-H","UniGB-UTF16-V","UniGB-UTF32-H","UniGB-UTF32-V","UniGB-UTF8-H","UniGB-UTF8-V","UniJIS-UCS2-H","UniJIS-UCS2-HW-H","UniJIS-UCS2-HW-V","UniJIS-UCS2-V","UniJIS-UTF16-H","UniJIS-UTF16-V","UniJIS-UTF32-H","UniJIS-UTF32-V","UniJIS-UTF8-H","UniJIS-UTF8-V","UniJIS2004-UTF16-H","UniJIS2004-UTF16-V","UniJIS2004-UTF32-H","UniJIS2004-UTF32-V","UniJIS2004-UTF8-H","UniJIS2004-UTF8-V","UniJISPro-UCS2-HW-V","UniJISPro-UCS2-V","UniJISPro-UTF8-V","UniJISX0213-UTF32-H","UniJISX0213-UTF32-V","UniJISX02132004-UTF32-H","UniJISX02132004-UTF32-V","UniKS-UCS2-H","UniKS-UCS2-V","UniKS-UTF16-H","UniKS-UTF16-V","UniKS-UTF32-H","UniKS-UTF32-V","UniKS-UTF8-H","UniKS-UTF8-V","V","WP-Symbol"];class aL{constructor(t=!1){this.codespaceRanges=[[],[],[],[]],this.numCodespaceRanges=0,this._map=[],this.name="",this.vertical=!1,this.useCMap=null,this.builtInCMap=t}addCodespaceRange(t,a,r){this.codespaceRanges[t-1].push(a,r),this.numCodespaceRanges++}mapCidRange(t,a,r){if(a-t>16777215)throw Error("mapCidRange - ignoring data above MAX_MAP_RANGE.");for(;t<=a;)this._map[t++]=r++}mapBfRange(t,a,r){if(a-t>16777215)throw Error("mapBfRange - ignoring data above MAX_MAP_RANGE.");let i=r.length-1;for(;t<=a;){this._map[t++]=r;let a=r.charCodeAt(i)+1;r=a>255?r.substring(0,i-1)+String.fromCharCode(r.charCodeAt(i-1)+1)+"\x00":r.substring(0,i)+String.fromCharCode(a)}}mapBfRangeToArray(t,a,r){if(a-t>16777215)throw Error("mapBfRangeToArray - ignoring data above MAX_MAP_RANGE.");let i=r.length,n=0;for(;t<=a&&n<i;)this._map[t]=r[n++],++t}mapOne(t,a){this._map[t]=a}lookup(t){return this._map[t]}contains(t){return void 0!==this._map[t]}forEach(t){let a=this._map,r=a.length;if(r<=65536)for(let i=0;i<r;i++)void 0!==a[i]&&t(i,a[i]);else for(let r in a)t(r,a[r])}charCodeOf(t){let a=this._map;if(a.length<=65536)return a.indexOf(t);for(let r in a)if(a[r]===t)return 0|r;return -1}getMap(){return this._map}readCharCode(t,a,r){let i=0,n=this.codespaceRanges;for(let s=0,o=n.length;s<o;s++){i=(i<<8|t.charCodeAt(a+s))>>>0;let o=n[s];for(let t=0,a=o.length;t<a;){let a=o[t++],n=o[t++];if(i>=a&&i<=n){r.charcode=i,r.length=s+1;return}}}r.charcode=0,r.length=1}getCharCodeLength(t){let a=this.codespaceRanges;for(let r=0,i=a.length;r<i;r++){let i=a[r];for(let a=0,n=i.length;a<n;){let n=i[a++],s=i[a++];if(t>=n&&t<=s)return r+1}}return 1}get length(){return this._map.length}get isIdentityCMap(){if("Identity-H"!==this.name&&"Identity-V"!==this.name||65536!==this._map.length)return!1;for(let t=0;t<65536;t++)if(this._map[t]!==t)return!1;return!0}}class aU extends aL{constructor(t,a){super(),this.vertical=t,this.addCodespaceRange(a,0,65535)}mapCidRange(t,a,r){A("should not call mapCidRange")}mapBfRange(t,a,r){A("should not call mapBfRange")}mapBfRangeToArray(t,a,r){A("should not call mapBfRangeToArray")}mapOne(t,a){A("should not call mapCidOne")}lookup(t){return Number.isInteger(t)&&t<=65535?t:void 0}contains(t){return Number.isInteger(t)&&t<=65535}forEach(t){for(let a=0;a<=65535;a++)t(a,a)}charCodeOf(t){return Number.isInteger(t)&&t<=65535?t:-1}getMap(){let t=Array(65536);for(let a=0;a<=65535;a++)t[a]=a;return t}get length(){return 65536}get isIdentityCMap(){A("should not access .isIdentityCMap")}}function aj(t){let a=0;for(let r=0;r<t.length;r++)a=a<<8|t.charCodeAt(r);return a>>>0}function aq(t){if("string"!=typeof t)throw new N("Malformed CMap: expected string.")}function aH(t){if(!Number.isInteger(t))throw new N("Malformed CMap: expected int.")}async function a$(t,a,r,i){let n,s;e:for(;;)try{let r=a.getObj();if(r===Z)break;if(r instanceof ea)"WMode"===r.name?function(t,a){let r=a.getObj();Number.isInteger(r)&&(t.vertical=!!r)}(t,a):"CMapName"===r.name&&function(t,a){let r=a.getObj();r instanceof ea&&(t.name=r.name)}(t,a),n=r;else if(r instanceof er)switch(r.cmd){case"endcmap":break e;case"usecmap":n instanceof ea&&(s=n.name);break;case"begincodespacerange":!function(t,a){for(;;){let r=a.getObj();if(r===Z)break;if(eh(r,"endcodespacerange"))return;if("string"!=typeof r)break;let i=aj(r);if("string"!=typeof(r=a.getObj()))break;let n=aj(r);t.addCodespaceRange(r.length,i,n)}throw new N("Invalid codespace range.")}(t,a);break;case"beginbfchar":!function(t,a){for(;;){let r=a.getObj();if(r===Z)break;if(eh(r,"endbfchar"))return;aq(r);let i=aj(r);aq(r=a.getObj());let n=r;t.mapOne(i,n)}}(t,a);break;case"begincidchar":!function(t,a){for(;;){let r=a.getObj();if(r===Z)break;if(eh(r,"endcidchar"))return;aq(r);let i=aj(r);aH(r=a.getObj());let n=r;t.mapOne(i,n)}}(t,a);break;case"beginbfrange":!function(t,a){for(;;){let r=a.getObj();if(r===Z)break;if(eh(r,"endbfrange"))return;aq(r);let i=aj(r);aq(r=a.getObj());let n=aj(r);if(Number.isInteger(r=a.getObj())||"string"==typeof r){let a=Number.isInteger(r)?String.fromCharCode(r):r;t.mapBfRange(i,n,a)}else{if(!eh(r,"["))break;{r=a.getObj();let s=[];for(;!eh(r,"]")&&r!==Z;)s.push(r),r=a.getObj();t.mapBfRangeToArray(i,n,s)}}}throw new N("Invalid bf range.")}(t,a);break;case"begincidrange":!function(t,a){for(;;){let r=a.getObj();if(r===Z)break;if(eh(r,"endcidrange"))return;aq(r);let i=aj(r);aq(r=a.getObj());let n=aj(r);aH(r=a.getObj());let s=r;t.mapCidRange(i,n,s)}}(t,a)}}catch(t){if(t instanceof ex)throw t;v("Invalid cMap data: "+t);continue}return!i&&s&&(i=s),i?az(t,r,i):t}async function az(t,a,r){if(t.useCMap=await aG(r,a),0===t.numCodespaceRanges){let a=t.useCMap.codespaceRanges;for(let r=0;r<a.length;r++)t.codespaceRanges[r]=a[r].slice();t.numCodespaceRanges=t.useCMap.numCodespaceRanges}return t.useCMap.forEach(function(a,r){t.contains(a)||t.mapOne(a,r)}),t}async function aG(t,a){if("Identity-H"===t)return new aU(!1,2);if("Identity-V"===t)return new aU(!0,2);if(!a_.includes(t))throw Error("Unknown CMap name: "+t);if(!a)throw Error("Built-in CMap parameters are not provided.");let{cMapData:r,isCompressed:i}=await a(t),n=new aL(!0);if(i)return(new tX).process(r,n,t=>az(n,a,t));let s=new aE(new tg(r));return a$(n,s,a,null)}class aW{static async create({encoding:t,fetchBuiltInCMap:a,useCMap:r}){if(t instanceof ea)return aG(t.name,a);if(t instanceof ed){let i=await a$(new aL,new aE(t),a,r);return i.isIdentityCMap?aG(i.name,a):i}throw Error("Encoding required.")}}let aV=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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"],aX=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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","","","",""],aK=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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"],aY=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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","","","",""],aJ=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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"],aZ=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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",""],aQ=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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",""];function a1(t){switch(t){case"WinAnsiEncoding":return aJ;case"StandardEncoding":return aY;case"MacRomanEncoding":return aK;case"SymbolSetEncoding":return aZ;case"ZapfDingbatsEncoding":return aQ;case"ExpertEncoding":return aV;case"MacExpertEncoding":return aX;default:return null}}let a0=ew(function(t){t.A=65,t.AE=198,t.AEacute=508,t.AEmacron=482,t.AEsmall=63462,t.Aacute=193,t.Aacutesmall=63457,t.Abreve=258,t.Abreveacute=7854,t.Abrevecyrillic=1232,t.Abrevedotbelow=7862,t.Abrevegrave=7856,t.Abrevehookabove=7858,t.Abrevetilde=7860,t.Acaron=461,t.Acircle=9398,t.Acircumflex=194,t.Acircumflexacute=7844,t.Acircumflexdotbelow=7852,t.Acircumflexgrave=7846,t.Acircumflexhookabove=7848,t.Acircumflexsmall=63458,t.Acircumflextilde=7850,t.Acute=63177,t.Acutesmall=63412,t.Acyrillic=1040,t.Adblgrave=512,t.Adieresis=196,t.Adieresiscyrillic=1234,t.Adieresismacron=478,t.Adieresissmall=63460,t.Adotbelow=7840,t.Adotmacron=480,t.Agrave=192,t.Agravesmall=63456,t.Ahookabove=7842,t.Aiecyrillic=1236,t.Ainvertedbreve=514,t.Alpha=913,t.Alphatonos=902,t.Amacron=256,t.Amonospace=65313,t.Aogonek=260,t.Aring=197,t.Aringacute=506,t.Aringbelow=7680,t.Aringsmall=63461,t.Asmall=63329,t.Atilde=195,t.Atildesmall=63459,t.Aybarmenian=1329,t.B=66,t.Bcircle=9399,t.Bdotaccent=7682,t.Bdotbelow=7684,t.Becyrillic=1041,t.Benarmenian=1330,t.Beta=914,t.Bhook=385,t.Blinebelow=7686,t.Bmonospace=65314,t.Brevesmall=63220,t.Bsmall=63330,t.Btopbar=386,t.C=67,t.Caarmenian=1342,t.Cacute=262,t.Caron=63178,t.Caronsmall=63221,t.Ccaron=268,t.Ccedilla=199,t.Ccedillaacute=7688,t.Ccedillasmall=63463,t.Ccircle=9400,t.Ccircumflex=264,t.Cdot=266,t.Cdotaccent=266,t.Cedillasmall=63416,t.Chaarmenian=1353,t.Cheabkhasiancyrillic=1212,t.Checyrillic=1063,t.Chedescenderabkhasiancyrillic=1214,t.Chedescendercyrillic=1206,t.Chedieresiscyrillic=1268,t.Cheharmenian=1347,t.Chekhakassiancyrillic=1227,t.Cheverticalstrokecyrillic=1208,t.Chi=935,t.Chook=391,t.Circumflexsmall=63222,t.Cmonospace=65315,t.Coarmenian=1361,t.Csmall=63331,t.D=68,t.DZ=497,t.DZcaron=452,t.Daarmenian=1332,t.Dafrican=393,t.Dcaron=270,t.Dcedilla=7696,t.Dcircle=9401,t.Dcircumflexbelow=7698,t.Dcroat=272,t.Ddotaccent=7690,t.Ddotbelow=7692,t.Decyrillic=1044,t.Deicoptic=1006,t.Delta=8710,t.Deltagreek=916,t.Dhook=394,t.Dieresis=63179,t.DieresisAcute=63180,t.DieresisGrave=63181,t.Dieresissmall=63400,t.Digammagreek=988,t.Djecyrillic=1026,t.Dlinebelow=7694,t.Dmonospace=65316,t.Dotaccentsmall=63223,t.Dslash=272,t.Dsmall=63332,t.Dtopbar=395,t.Dz=498,t.Dzcaron=453,t.Dzeabkhasiancyrillic=1248,t.Dzecyrillic=1029,t.Dzhecyrillic=1039,t.E=69,t.Eacute=201,t.Eacutesmall=63465,t.Ebreve=276,t.Ecaron=282,t.Ecedillabreve=7708,t.Echarmenian=1333,t.Ecircle=9402,t.Ecircumflex=202,t.Ecircumflexacute=7870,t.Ecircumflexbelow=7704,t.Ecircumflexdotbelow=7878,t.Ecircumflexgrave=7872,t.Ecircumflexhookabove=7874,t.Ecircumflexsmall=63466,t.Ecircumflextilde=7876,t.Ecyrillic=1028,t.Edblgrave=516,t.Edieresis=203,t.Edieresissmall=63467,t.Edot=278,t.Edotaccent=278,t.Edotbelow=7864,t.Efcyrillic=1060,t.Egrave=200,t.Egravesmall=63464,t.Eharmenian=1335,t.Ehookabove=7866,t.Eightroman=8551,t.Einvertedbreve=518,t.Eiotifiedcyrillic=1124,t.Elcyrillic=1051,t.Elevenroman=8554,t.Emacron=274,t.Emacronacute=7702,t.Emacrongrave=7700,t.Emcyrillic=1052,t.Emonospace=65317,t.Encyrillic=1053,t.Endescendercyrillic=1186,t.Eng=330,t.Enghecyrillic=1188,t.Enhookcyrillic=1223,t.Eogonek=280,t.Eopen=400,t.Epsilon=917,t.Epsilontonos=904,t.Ercyrillic=1056,t.Ereversed=398,t.Ereversedcyrillic=1069,t.Escyrillic=1057,t.Esdescendercyrillic=1194,t.Esh=425,t.Esmall=63333,t.Eta=919,t.Etarmenian=1336,t.Etatonos=905,t.Eth=208,t.Ethsmall=63472,t.Etilde=7868,t.Etildebelow=7706,t.Euro=8364,t.Ezh=439,t.Ezhcaron=494,t.Ezhreversed=440,t.F=70,t.Fcircle=9403,t.Fdotaccent=7710,t.Feharmenian=1366,t.Feicoptic=996,t.Fhook=401,t.Fitacyrillic=1138,t.Fiveroman=8548,t.Fmonospace=65318,t.Fourroman=8547,t.Fsmall=63334,t.G=71,t.GBsquare=13191,t.Gacute=500,t.Gamma=915,t.Gammaafrican=404,t.Gangiacoptic=1002,t.Gbreve=286,t.Gcaron=486,t.Gcedilla=290,t.Gcircle=9404,t.Gcircumflex=284,t.Gcommaaccent=290,t.Gdot=288,t.Gdotaccent=288,t.Gecyrillic=1043,t.Ghadarmenian=1346,t.Ghemiddlehookcyrillic=1172,t.Ghestrokecyrillic=1170,t.Gheupturncyrillic=1168,t.Ghook=403,t.Gimarmenian=1331,t.Gjecyrillic=1027,t.Gmacron=7712,t.Gmonospace=65319,t.Grave=63182,t.Gravesmall=63328,t.Gsmall=63335,t.Gsmallhook=667,t.Gstroke=484,t.H=72,t.H18533=9679,t.H18543=9642,t.H18551=9643,t.H22073=9633,t.HPsquare=13259,t.Haabkhasiancyrillic=1192,t.Hadescendercyrillic=1202,t.Hardsigncyrillic=1066,t.Hbar=294,t.Hbrevebelow=7722,t.Hcedilla=7720,t.Hcircle=9405,t.Hcircumflex=292,t.Hdieresis=7718,t.Hdotaccent=7714,t.Hdotbelow=7716,t.Hmonospace=65320,t.Hoarmenian=1344,t.Horicoptic=1e3,t.Hsmall=63336,t.Hungarumlaut=63183,t.Hungarumlautsmall=63224,t.Hzsquare=13200,t.I=73,t.IAcyrillic=1071,t.IJ=306,t.IUcyrillic=1070,t.Iacute=205,t.Iacutesmall=63469,t.Ibreve=300,t.Icaron=463,t.Icircle=9406,t.Icircumflex=206,t.Icircumflexsmall=63470,t.Icyrillic=1030,t.Idblgrave=520,t.Idieresis=207,t.Idieresisacute=7726,t.Idieresiscyrillic=1252,t.Idieresissmall=63471,t.Idot=304,t.Idotaccent=304,t.Idotbelow=7882,t.Iebrevecyrillic=1238,t.Iecyrillic=1045,t.Ifraktur=8465,t.Igrave=204,t.Igravesmall=63468,t.Ihookabove=7880,t.Iicyrillic=1048,t.Iinvertedbreve=522,t.Iishortcyrillic=1049,t.Imacron=298,t.Imacroncyrillic=1250,t.Imonospace=65321,t.Iniarmenian=1339,t.Iocyrillic=1025,t.Iogonek=302,t.Iota=921,t.Iotaafrican=406,t.Iotadieresis=938,t.Iotatonos=906,t.Ismall=63337,t.Istroke=407,t.Itilde=296,t.Itildebelow=7724,t.Izhitsacyrillic=1140,t.Izhitsadblgravecyrillic=1142,t.J=74,t.Jaarmenian=1345,t.Jcircle=9407,t.Jcircumflex=308,t.Jecyrillic=1032,t.Jheharmenian=1355,t.Jmonospace=65322,t.Jsmall=63338,t.K=75,t.KBsquare=13189,t.KKsquare=13261,t.Kabashkircyrillic=1184,t.Kacute=7728,t.Kacyrillic=1050,t.Kadescendercyrillic=1178,t.Kahookcyrillic=1219,t.Kappa=922,t.Kastrokecyrillic=1182,t.Kaverticalstrokecyrillic=1180,t.Kcaron=488,t.Kcedilla=310,t.Kcircle=9408,t.Kcommaaccent=310,t.Kdotbelow=7730,t.Keharmenian=1364,t.Kenarmenian=1343,t.Khacyrillic=1061,t.Kheicoptic=998,t.Khook=408,t.Kjecyrillic=1036,t.Klinebelow=7732,t.Kmonospace=65323,t.Koppacyrillic=1152,t.Koppagreek=990,t.Ksicyrillic=1134,t.Ksmall=63339,t.L=76,t.LJ=455,t.LL=63167,t.Lacute=313,t.Lambda=923,t.Lcaron=317,t.Lcedilla=315,t.Lcircle=9409,t.Lcircumflexbelow=7740,t.Lcommaaccent=315,t.Ldot=319,t.Ldotaccent=319,t.Ldotbelow=7734,t.Ldotbelowmacron=7736,t.Liwnarmenian=1340,t.Lj=456,t.Ljecyrillic=1033,t.Llinebelow=7738,t.Lmonospace=65324,t.Lslash=321,t.Lslashsmall=63225,t.Lsmall=63340,t.M=77,t.MBsquare=13190,t.Macron=63184,t.Macronsmall=63407,t.Macute=7742,t.Mcircle=9410,t.Mdotaccent=7744,t.Mdotbelow=7746,t.Menarmenian=1348,t.Mmonospace=65325,t.Msmall=63341,t.Mturned=412,t.Mu=924,t.N=78,t.NJ=458,t.Nacute=323,t.Ncaron=327,t.Ncedilla=325,t.Ncircle=9411,t.Ncircumflexbelow=7754,t.Ncommaaccent=325,t.Ndotaccent=7748,t.Ndotbelow=7750,t.Nhookleft=413,t.Nineroman=8552,t.Nj=459,t.Njecyrillic=1034,t.Nlinebelow=7752,t.Nmonospace=65326,t.Nowarmenian=1350,t.Nsmall=63342,t.Ntilde=209,t.Ntildesmall=63473,t.Nu=925,t.O=79,t.OE=338,t.OEsmall=63226,t.Oacute=211,t.Oacutesmall=63475,t.Obarredcyrillic=1256,t.Obarreddieresiscyrillic=1258,t.Obreve=334,t.Ocaron=465,t.Ocenteredtilde=415,t.Ocircle=9412,t.Ocircumflex=212,t.Ocircumflexacute=7888,t.Ocircumflexdotbelow=7896,t.Ocircumflexgrave=7890,t.Ocircumflexhookabove=7892,t.Ocircumflexsmall=63476,t.Ocircumflextilde=7894,t.Ocyrillic=1054,t.Odblacute=336,t.Odblgrave=524,t.Odieresis=214,t.Odieresiscyrillic=1254,t.Odieresissmall=63478,t.Odotbelow=7884,t.Ogoneksmall=63227,t.Ograve=210,t.Ogravesmall=63474,t.Oharmenian=1365,t.Ohm=8486,t.Ohookabove=7886,t.Ohorn=416,t.Ohornacute=7898,t.Ohorndotbelow=7906,t.Ohorngrave=7900,t.Ohornhookabove=7902,t.Ohorntilde=7904,t.Ohungarumlaut=336,t.Oi=418,t.Oinvertedbreve=526,t.Omacron=332,t.Omacronacute=7762,t.Omacrongrave=7760,t.Omega=8486,t.Omegacyrillic=1120,t.Omegagreek=937,t.Omegaroundcyrillic=1146,t.Omegatitlocyrillic=1148,t.Omegatonos=911,t.Omicron=927,t.Omicrontonos=908,t.Omonospace=65327,t.Oneroman=8544,t.Oogonek=490,t.Oogonekmacron=492,t.Oopen=390,t.Oslash=216,t.Oslashacute=510,t.Oslashsmall=63480,t.Osmall=63343,t.Ostrokeacute=510,t.Otcyrillic=1150,t.Otilde=213,t.Otildeacute=7756,t.Otildedieresis=7758,t.Otildesmall=63477,t.P=80,t.Pacute=7764,t.Pcircle=9413,t.Pdotaccent=7766,t.Pecyrillic=1055,t.Peharmenian=1354,t.Pemiddlehookcyrillic=1190,t.Phi=934,t.Phook=420,t.Pi=928,t.Piwrarmenian=1363,t.Pmonospace=65328,t.Psi=936,t.Psicyrillic=1136,t.Psmall=63344,t.Q=81,t.Qcircle=9414,t.Qmonospace=65329,t.Qsmall=63345,t.R=82,t.Raarmenian=1356,t.Racute=340,t.Rcaron=344,t.Rcedilla=342,t.Rcircle=9415,t.Rcommaaccent=342,t.Rdblgrave=528,t.Rdotaccent=7768,t.Rdotbelow=7770,t.Rdotbelowmacron=7772,t.Reharmenian=1360,t.Rfraktur=8476,t.Rho=929,t.Ringsmall=63228,t.Rinvertedbreve=530,t.Rlinebelow=7774,t.Rmonospace=65330,t.Rsmall=63346,t.Rsmallinverted=641,t.Rsmallinvertedsuperior=694,t.S=83,t.SF010000=9484,t.SF020000=9492,t.SF030000=9488,t.SF040000=9496,t.SF050000=9532,t.SF060000=9516,t.SF070000=9524,t.SF080000=9500,t.SF090000=9508,t.SF100000=9472,t.SF110000=9474,t.SF190000=9569,t.SF200000=9570,t.SF210000=9558,t.SF220000=9557,t.SF230000=9571,t.SF240000=9553,t.SF250000=9559,t.SF260000=9565,t.SF270000=9564,t.SF280000=9563,t.SF360000=9566,t.SF370000=9567,t.SF380000=9562,t.SF390000=9556,t.SF400000=9577,t.SF410000=9574,t.SF420000=9568,t.SF430000=9552,t.SF440000=9580,t.SF450000=9575,t.SF460000=9576,t.SF470000=9572,t.SF480000=9573,t.SF490000=9561,t.SF500000=9560,t.SF510000=9554,t.SF520000=9555,t.SF530000=9579,t.SF540000=9578,t.Sacute=346,t.Sacutedotaccent=7780,t.Sampigreek=992,t.Scaron=352,t.Scarondotaccent=7782,t.Scaronsmall=63229,t.Scedilla=350,t.Schwa=399,t.Schwacyrillic=1240,t.Schwadieresiscyrillic=1242,t.Scircle=9416,t.Scircumflex=348,t.Scommaaccent=536,t.Sdotaccent=7776,t.Sdotbelow=7778,t.Sdotbelowdotaccent=7784,t.Seharmenian=1357,t.Sevenroman=8550,t.Shaarmenian=1351,t.Shacyrillic=1064,t.Shchacyrillic=1065,t.Sheicoptic=994,t.Shhacyrillic=1210,t.Shimacoptic=1004,t.Sigma=931,t.Sixroman=8549,t.Smonospace=65331,t.Softsigncyrillic=1068,t.Ssmall=63347,t.Stigmagreek=986,t.T=84,t.Tau=932,t.Tbar=358,t.Tcaron=356,t.Tcedilla=354,t.Tcircle=9417,t.Tcircumflexbelow=7792,t.Tcommaaccent=354,t.Tdotaccent=7786,t.Tdotbelow=7788,t.Tecyrillic=1058,t.Tedescendercyrillic=1196,t.Tenroman=8553,t.Tetsecyrillic=1204,t.Theta=920,t.Thook=428,t.Thorn=222,t.Thornsmall=63486,t.Threeroman=8546,t.Tildesmall=63230,t.Tiwnarmenian=1359,t.Tlinebelow=7790,t.Tmonospace=65332,t.Toarmenian=1337,t.Tonefive=444,t.Tonesix=388,t.Tonetwo=423,t.Tretroflexhook=430,t.Tsecyrillic=1062,t.Tshecyrillic=1035,t.Tsmall=63348,t.Twelveroman=8555,t.Tworoman=8545,t.U=85,t.Uacute=218,t.Uacutesmall=63482,t.Ubreve=364,t.Ucaron=467,t.Ucircle=9418,t.Ucircumflex=219,t.Ucircumflexbelow=7798,t.Ucircumflexsmall=63483,t.Ucyrillic=1059,t.Udblacute=368,t.Udblgrave=532,t.Udieresis=220,t.Udieresisacute=471,t.Udieresisbelow=7794,t.Udieresiscaron=473,t.Udieresiscyrillic=1264,t.Udieresisgrave=475,t.Udieresismacron=469,t.Udieresissmall=63484,t.Udotbelow=7908,t.Ugrave=217,t.Ugravesmall=63481,t.Uhookabove=7910,t.Uhorn=431,t.Uhornacute=7912,t.Uhorndotbelow=7920,t.Uhorngrave=7914,t.Uhornhookabove=7916,t.Uhorntilde=7918,t.Uhungarumlaut=368,t.Uhungarumlautcyrillic=1266,t.Uinvertedbreve=534,t.Ukcyrillic=1144,t.Umacron=362,t.Umacroncyrillic=1262,t.Umacrondieresis=7802,t.Umonospace=65333,t.Uogonek=370,t.Upsilon=933,t.Upsilon1=978,t.Upsilonacutehooksymbolgreek=979,t.Upsilonafrican=433,t.Upsilondieresis=939,t.Upsilondieresishooksymbolgreek=980,t.Upsilonhooksymbol=978,t.Upsilontonos=910,t.Uring=366,t.Ushortcyrillic=1038,t.Usmall=63349,t.Ustraightcyrillic=1198,t.Ustraightstrokecyrillic=1200,t.Utilde=360,t.Utildeacute=7800,t.Utildebelow=7796,t.V=86,t.Vcircle=9419,t.Vdotbelow=7806,t.Vecyrillic=1042,t.Vewarmenian=1358,t.Vhook=434,t.Vmonospace=65334,t.Voarmenian=1352,t.Vsmall=63350,t.Vtilde=7804,t.W=87,t.Wacute=7810,t.Wcircle=9420,t.Wcircumflex=372,t.Wdieresis=7812,t.Wdotaccent=7814,t.Wdotbelow=7816,t.Wgrave=7808,t.Wmonospace=65335,t.Wsmall=63351,t.X=88,t.Xcircle=9421,t.Xdieresis=7820,t.Xdotaccent=7818,t.Xeharmenian=1341,t.Xi=926,t.Xmonospace=65336,t.Xsmall=63352,t.Y=89,t.Yacute=221,t.Yacutesmall=63485,t.Yatcyrillic=1122,t.Ycircle=9422,t.Ycircumflex=374,t.Ydieresis=376,t.Ydieresissmall=63487,t.Ydotaccent=7822,t.Ydotbelow=7924,t.Yericyrillic=1067,t.Yerudieresiscyrillic=1272,t.Ygrave=7922,t.Yhook=435,t.Yhookabove=7926,t.Yiarmenian=1349,t.Yicyrillic=1031,t.Yiwnarmenian=1362,t.Ymonospace=65337,t.Ysmall=63353,t.Ytilde=7928,t.Yusbigcyrillic=1130,t.Yusbigiotifiedcyrillic=1132,t.Yuslittlecyrillic=1126,t.Yuslittleiotifiedcyrillic=1128,t.Z=90,t.Zaarmenian=1334,t.Zacute=377,t.Zcaron=381,t.Zcaronsmall=63231,t.Zcircle=9423,t.Zcircumflex=7824,t.Zdot=379,t.Zdotaccent=379,t.Zdotbelow=7826,t.Zecyrillic=1047,t.Zedescendercyrillic=1176,t.Zedieresiscyrillic=1246,t.Zeta=918,t.Zhearmenian=1338,t.Zhebrevecyrillic=1217,t.Zhecyrillic=1046,t.Zhedescendercyrillic=1174,t.Zhedieresiscyrillic=1244,t.Zlinebelow=7828,t.Zmonospace=65338,t.Zsmall=63354,t.Zstroke=437,t.a=97,t.aabengali=2438,t.aacute=225,t.aadeva=2310,t.aagujarati=2694,t.aagurmukhi=2566,t.aamatragurmukhi=2622,t.aarusquare=13059,t.aavowelsignbengali=2494,t.aavowelsigndeva=2366,t.aavowelsigngujarati=2750,t.abbreviationmarkarmenian=1375,t.abbreviationsigndeva=2416,t.abengali=2437,t.abopomofo=12570,t.abreve=259,t.abreveacute=7855,t.abrevecyrillic=1233,t.abrevedotbelow=7863,t.abrevegrave=7857,t.abrevehookabove=7859,t.abrevetilde=7861,t.acaron=462,t.acircle=9424,t.acircumflex=226,t.acircumflexacute=7845,t.acircumflexdotbelow=7853,t.acircumflexgrave=7847,t.acircumflexhookabove=7849,t.acircumflextilde=7851,t.acute=180,t.acutebelowcmb=791,t.acutecmb=769,t.acutecomb=769,t.acutedeva=2388,t.acutelowmod=719,t.acutetonecmb=833,t.acyrillic=1072,t.adblgrave=513,t.addakgurmukhi=2673,t.adeva=2309,t.adieresis=228,t.adieresiscyrillic=1235,t.adieresismacron=479,t.adotbelow=7841,t.adotmacron=481,t.ae=230,t.aeacute=509,t.aekorean=12624,t.aemacron=483,t.afii00208=8213,t.afii08941=8356,t.afii10017=1040,t.afii10018=1041,t.afii10019=1042,t.afii10020=1043,t.afii10021=1044,t.afii10022=1045,t.afii10023=1025,t.afii10024=1046,t.afii10025=1047,t.afii10026=1048,t.afii10027=1049,t.afii10028=1050,t.afii10029=1051,t.afii10030=1052,t.afii10031=1053,t.afii10032=1054,t.afii10033=1055,t.afii10034=1056,t.afii10035=1057,t.afii10036=1058,t.afii10037=1059,t.afii10038=1060,t.afii10039=1061,t.afii10040=1062,t.afii10041=1063,t.afii10042=1064,t.afii10043=1065,t.afii10044=1066,t.afii10045=1067,t.afii10046=1068,t.afii10047=1069,t.afii10048=1070,t.afii10049=1071,t.afii10050=1168,t.afii10051=1026,t.afii10052=1027,t.afii10053=1028,t.afii10054=1029,t.afii10055=1030,t.afii10056=1031,t.afii10057=1032,t.afii10058=1033,t.afii10059=1034,t.afii10060=1035,t.afii10061=1036,t.afii10062=1038,t.afii10063=63172,t.afii10064=63173,t.afii10065=1072,t.afii10066=1073,t.afii10067=1074,t.afii10068=1075,t.afii10069=1076,t.afii10070=1077,t.afii10071=1105,t.afii10072=1078,t.afii10073=1079,t.afii10074=1080,t.afii10075=1081,t.afii10076=1082,t.afii10077=1083,t.afii10078=1084,t.afii10079=1085,t.afii10080=1086,t.afii10081=1087,t.afii10082=1088,t.afii10083=1089,t.afii10084=1090,t.afii10085=1091,t.afii10086=1092,t.afii10087=1093,t.afii10088=1094,t.afii10089=1095,t.afii10090=1096,t.afii10091=1097,t.afii10092=1098,t.afii10093=1099,t.afii10094=1100,t.afii10095=1101,t.afii10096=1102,t.afii10097=1103,t.afii10098=1169,t.afii10099=1106,t.afii10100=1107,t.afii10101=1108,t.afii10102=1109,t.afii10103=1110,t.afii10104=1111,t.afii10105=1112,t.afii10106=1113,t.afii10107=1114,t.afii10108=1115,t.afii10109=1116,t.afii10110=1118,t.afii10145=1039,t.afii10146=1122,t.afii10147=1138,t.afii10148=1140,t.afii10192=63174,t.afii10193=1119,t.afii10194=1123,t.afii10195=1139,t.afii10196=1141,t.afii10831=63175,t.afii10832=63176,t.afii10846=1241,t.afii299=8206,t.afii300=8207,t.afii301=8205,t.afii57381=1642,t.afii57388=1548,t.afii57392=1632,t.afii57393=1633,t.afii57394=1634,t.afii57395=1635,t.afii57396=1636,t.afii57397=1637,t.afii57398=1638,t.afii57399=1639,t.afii57400=1640,t.afii57401=1641,t.afii57403=1563,t.afii57407=1567,t.afii57409=1569,t.afii57410=1570,t.afii57411=1571,t.afii57412=1572,t.afii57413=1573,t.afii57414=1574,t.afii57415=1575,t.afii57416=1576,t.afii57417=1577,t.afii57418=1578,t.afii57419=1579,t.afii57420=1580,t.afii57421=1581,t.afii57422=1582,t.afii57423=1583,t.afii57424=1584,t.afii57425=1585,t.afii57426=1586,t.afii57427=1587,t.afii57428=1588,t.afii57429=1589,t.afii57430=1590,t.afii57431=1591,t.afii57432=1592,t.afii57433=1593,t.afii57434=1594,t.afii57440=1600,t.afii57441=1601,t.afii57442=1602,t.afii57443=1603,t.afii57444=1604,t.afii57445=1605,t.afii57446=1606,t.afii57448=1608,t.afii57449=1609,t.afii57450=1610,t.afii57451=1611,t.afii57452=1612,t.afii57453=1613,t.afii57454=1614,t.afii57455=1615,t.afii57456=1616,t.afii57457=1617,t.afii57458=1618,t.afii57470=1607,t.afii57505=1700,t.afii57506=1662,t.afii57507=1670,t.afii57508=1688,t.afii57509=1711,t.afii57511=1657,t.afii57512=1672,t.afii57513=1681,t.afii57514=1722,t.afii57519=1746,t.afii57534=1749,t.afii57636=8362,t.afii57645=1470,t.afii57658=1475,t.afii57664=1488,t.afii57665=1489,t.afii57666=1490,t.afii57667=1491,t.afii57668=1492,t.afii57669=1493,t.afii57670=1494,t.afii57671=1495,t.afii57672=1496,t.afii57673=1497,t.afii57674=1498,t.afii57675=1499,t.afii57676=1500,t.afii57677=1501,t.afii57678=1502,t.afii57679=1503,t.afii57680=1504,t.afii57681=1505,t.afii57682=1506,t.afii57683=1507,t.afii57684=1508,t.afii57685=1509,t.afii57686=1510,t.afii57687=1511,t.afii57688=1512,t.afii57689=1513,t.afii57690=1514,t.afii57694=64298,t.afii57695=64299,t.afii57700=64331,t.afii57705=64287,t.afii57716=1520,t.afii57717=1521,t.afii57718=1522,t.afii57723=64309,t.afii57793=1460,t.afii57794=1461,t.afii57795=1462,t.afii57796=1467,t.afii57797=1464,t.afii57798=1463,t.afii57799=1456,t.afii57800=1458,t.afii57801=1457,t.afii57802=1459,t.afii57803=1474,t.afii57804=1473,t.afii57806=1465,t.afii57807=1468,t.afii57839=1469,t.afii57841=1471,t.afii57842=1472,t.afii57929=700,t.afii61248=8453,t.afii61289=8467,t.afii61352=8470,t.afii61573=8236,t.afii61574=8237,t.afii61575=8238,t.afii61664=8204,t.afii63167=1645,t.afii64937=701,t.agrave=224,t.agujarati=2693,t.agurmukhi=2565,t.ahiragana=12354,t.ahookabove=7843,t.aibengali=2448,t.aibopomofo=12574,t.aideva=2320,t.aiecyrillic=1237,t.aigujarati=2704,t.aigurmukhi=2576,t.aimatragurmukhi=2632,t.ainarabic=1593,t.ainfinalarabic=65226,t.aininitialarabic=65227,t.ainmedialarabic=65228,t.ainvertedbreve=515,t.aivowelsignbengali=2504,t.aivowelsigndeva=2376,t.aivowelsigngujarati=2760,t.akatakana=12450,t.akatakanahalfwidth=65393,t.akorean=12623,t.alef=1488,t.alefarabic=1575,t.alefdageshhebrew=64304,t.aleffinalarabic=65166,t.alefhamzaabovearabic=1571,t.alefhamzaabovefinalarabic=65156,t.alefhamzabelowarabic=1573,t.alefhamzabelowfinalarabic=65160,t.alefhebrew=1488,t.aleflamedhebrew=64335,t.alefmaddaabovearabic=1570,t.alefmaddaabovefinalarabic=65154,t.alefmaksuraarabic=1609,t.alefmaksurafinalarabic=65264,t.alefmaksurainitialarabic=65267,t.alefmaksuramedialarabic=65268,t.alefpatahhebrew=64302,t.alefqamatshebrew=64303,t.aleph=8501,t.allequal=8780,t.alpha=945,t.alphatonos=940,t.amacron=257,t.amonospace=65345,t.ampersand=38,t.ampersandmonospace=65286,t.ampersandsmall=63270,t.amsquare=13250,t.anbopomofo=12578,t.angbopomofo=12580,t.angbracketleft=12296,t.angbracketright=12297,t.angkhankhuthai=3674,t.angle=8736,t.anglebracketleft=12296,t.anglebracketleftvertical=65087,t.anglebracketright=12297,t.anglebracketrightvertical=65088,t.angleleft=9001,t.angleright=9002,t.angstrom=8491,t.anoteleia=903,t.anudattadeva=2386,t.anusvarabengali=2434,t.anusvaradeva=2306,t.anusvaragujarati=2690,t.aogonek=261,t.apaatosquare=13056,t.aparen=9372,t.apostrophearmenian=1370,t.apostrophemod=700,t.apple=63743,t.approaches=8784,t.approxequal=8776,t.approxequalorimage=8786,t.approximatelyequal=8773,t.araeaekorean=12686,t.araeakorean=12685,t.arc=8978,t.arighthalfring=7834,t.aring=229,t.aringacute=507,t.aringbelow=7681,t.arrowboth=8596,t.arrowdashdown=8675,t.arrowdashleft=8672,t.arrowdashright=8674,t.arrowdashup=8673,t.arrowdblboth=8660,t.arrowdbldown=8659,t.arrowdblleft=8656,t.arrowdblright=8658,t.arrowdblup=8657,t.arrowdown=8595,t.arrowdownleft=8601,t.arrowdownright=8600,t.arrowdownwhite=8681,t.arrowheaddownmod=709,t.arrowheadleftmod=706,t.arrowheadrightmod=707,t.arrowheadupmod=708,t.arrowhorizex=63719,t.arrowleft=8592,t.arrowleftdbl=8656,t.arrowleftdblstroke=8653,t.arrowleftoverright=8646,t.arrowleftwhite=8678,t.arrowright=8594,t.arrowrightdblstroke=8655,t.arrowrightheavy=10142,t.arrowrightoverleft=8644,t.arrowrightwhite=8680,t.arrowtableft=8676,t.arrowtabright=8677,t.arrowup=8593,t.arrowupdn=8597,t.arrowupdnbse=8616,t.arrowupdownbase=8616,t.arrowupleft=8598,t.arrowupleftofdown=8645,t.arrowupright=8599,t.arrowupwhite=8679,t.arrowvertex=63718,t.asciicircum=94,t.asciicircummonospace=65342,t.asciitilde=126,t.asciitildemonospace=65374,t.ascript=593,t.ascriptturned=594,t.asmallhiragana=12353,t.asmallkatakana=12449,t.asmallkatakanahalfwidth=65383,t.asterisk=42,t.asteriskaltonearabic=1645,t.asteriskarabic=1645,t.asteriskmath=8727,t.asteriskmonospace=65290,t.asterisksmall=65121,t.asterism=8258,t.asuperior=63209,t.asymptoticallyequal=8771,t.at=64,t.atilde=227,t.atmonospace=65312,t.atsmall=65131,t.aturned=592,t.aubengali=2452,t.aubopomofo=12576,t.audeva=2324,t.augujarati=2708,t.augurmukhi=2580,t.aulengthmarkbengali=2519,t.aumatragurmukhi=2636,t.auvowelsignbengali=2508,t.auvowelsigndeva=2380,t.auvowelsigngujarati=2764,t.avagrahadeva=2365,t.aybarmenian=1377,t.ayin=1506,t.ayinaltonehebrew=64288,t.ayinhebrew=1506,t.b=98,t.babengali=2476,t.backslash=92,t.backslashmonospace=65340,t.badeva=2348,t.bagujarati=2732,t.bagurmukhi=2604,t.bahiragana=12400,t.bahtthai=3647,t.bakatakana=12496,t.bar=124,t.barmonospace=65372,t.bbopomofo=12549,t.bcircle=9425,t.bdotaccent=7683,t.bdotbelow=7685,t.beamedsixteenthnotes=9836,t.because=8757,t.becyrillic=1073,t.beharabic=1576,t.behfinalarabic=65168,t.behinitialarabic=65169,t.behiragana=12409,t.behmedialarabic=65170,t.behmeeminitialarabic=64671,t.behmeemisolatedarabic=64520,t.behnoonfinalarabic=64621,t.bekatakana=12505,t.benarmenian=1378,t.bet=1489,t.beta=946,t.betasymbolgreek=976,t.betdagesh=64305,t.betdageshhebrew=64305,t.bethebrew=1489,t.betrafehebrew=64332,t.bhabengali=2477,t.bhadeva=2349,t.bhagujarati=2733,t.bhagurmukhi=2605,t.bhook=595,t.bihiragana=12403,t.bikatakana=12499,t.bilabialclick=664,t.bindigurmukhi=2562,t.birusquare=13105,t.blackcircle=9679,t.blackdiamond=9670,t.blackdownpointingtriangle=9660,t.blackleftpointingpointer=9668,t.blackleftpointingtriangle=9664,t.blacklenticularbracketleft=12304,t.blacklenticularbracketleftvertical=65083,t.blacklenticularbracketright=12305,t.blacklenticularbracketrightvertical=65084,t.blacklowerlefttriangle=9699,t.blacklowerrighttriangle=9698,t.blackrectangle=9644,t.blackrightpointingpointer=9658,t.blackrightpointingtriangle=9654,t.blacksmallsquare=9642,t.blacksmilingface=9787,t.blacksquare=9632,t.blackstar=9733,t.blackupperlefttriangle=9700,t.blackupperrighttriangle=9701,t.blackuppointingsmalltriangle=9652,t.blackuppointingtriangle=9650,t.blank=9251,t.blinebelow=7687,t.block=9608,t.bmonospace=65346,t.bobaimaithai=3610,t.bohiragana=12412,t.bokatakana=12508,t.bparen=9373,t.bqsquare=13251,t.braceex=63732,t.braceleft=123,t.braceleftbt=63731,t.braceleftmid=63730,t.braceleftmonospace=65371,t.braceleftsmall=65115,t.bracelefttp=63729,t.braceleftvertical=65079,t.braceright=125,t.bracerightbt=63742,t.bracerightmid=63741,t.bracerightmonospace=65373,t.bracerightsmall=65116,t.bracerighttp=63740,t.bracerightvertical=65080,t.bracketleft=91,t.bracketleftbt=63728,t.bracketleftex=63727,t.bracketleftmonospace=65339,t.bracketlefttp=63726,t.bracketright=93,t.bracketrightbt=63739,t.bracketrightex=63738,t.bracketrightmonospace=65341,t.bracketrighttp=63737,t.breve=728,t.brevebelowcmb=814,t.brevecmb=774,t.breveinvertedbelowcmb=815,t.breveinvertedcmb=785,t.breveinverteddoublecmb=865,t.bridgebelowcmb=810,t.bridgeinvertedbelowcmb=826,t.brokenbar=166,t.bstroke=384,t.bsuperior=63210,t.btopbar=387,t.buhiragana=12406,t.bukatakana=12502,t.bullet=8226,t.bulletinverse=9688,t.bulletoperator=8729,t.bullseye=9678,t.c=99,t.caarmenian=1390,t.cabengali=2458,t.cacute=263,t.cadeva=2330,t.cagujarati=2714,t.cagurmukhi=2586,t.calsquare=13192,t.candrabindubengali=2433,t.candrabinducmb=784,t.candrabindudeva=2305,t.candrabindugujarati=2689,t.capslock=8682,t.careof=8453,t.caron=711,t.caronbelowcmb=812,t.caroncmb=780,t.carriagereturn=8629,t.cbopomofo=12568,t.ccaron=269,t.ccedilla=231,t.ccedillaacute=7689,t.ccircle=9426,t.ccircumflex=265,t.ccurl=597,t.cdot=267,t.cdotaccent=267,t.cdsquare=13253,t.cedilla=184,t.cedillacmb=807,t.cent=162,t.centigrade=8451,t.centinferior=63199,t.centmonospace=65504,t.centoldstyle=63394,t.centsuperior=63200,t.chaarmenian=1401,t.chabengali=2459,t.chadeva=2331,t.chagujarati=2715,t.chagurmukhi=2587,t.chbopomofo=12564,t.cheabkhasiancyrillic=1213,t.checkmark=10003,t.checyrillic=1095,t.chedescenderabkhasiancyrillic=1215,t.chedescendercyrillic=1207,t.chedieresiscyrillic=1269,t.cheharmenian=1395,t.chekhakassiancyrillic=1228,t.cheverticalstrokecyrillic=1209,t.chi=967,t.chieuchacirclekorean=12919,t.chieuchaparenkorean=12823,t.chieuchcirclekorean=12905,t.chieuchkorean=12618,t.chieuchparenkorean=12809,t.chochangthai=3594,t.chochanthai=3592,t.chochingthai=3593,t.chochoethai=3596,t.chook=392,t.cieucacirclekorean=12918,t.cieucaparenkorean=12822,t.cieuccirclekorean=12904,t.cieuckorean=12616,t.cieucparenkorean=12808,t.cieucuparenkorean=12828,t.circle=9675,t.circlecopyrt=169,t.circlemultiply=8855,t.circleot=8857,t.circleplus=8853,t.circlepostalmark=12342,t.circlewithlefthalfblack=9680,t.circlewithrighthalfblack=9681,t.circumflex=710,t.circumflexbelowcmb=813,t.circumflexcmb=770,t.clear=8999,t.clickalveolar=450,t.clickdental=448,t.clicklateral=449,t.clickretroflex=451,t.club=9827,t.clubsuitblack=9827,t.clubsuitwhite=9831,t.cmcubedsquare=13220,t.cmonospace=65347,t.cmsquaredsquare=13216,t.coarmenian=1409,t.colon=58,t.colonmonetary=8353,t.colonmonospace=65306,t.colonsign=8353,t.colonsmall=65109,t.colontriangularhalfmod=721,t.colontriangularmod=720,t.comma=44,t.commaabovecmb=787,t.commaaboverightcmb=789,t.commaaccent=63171,t.commaarabic=1548,t.commaarmenian=1373,t.commainferior=63201,t.commamonospace=65292,t.commareversedabovecmb=788,t.commareversedmod=701,t.commasmall=65104,t.commasuperior=63202,t.commaturnedabovecmb=786,t.commaturnedmod=699,t.compass=9788,t.congruent=8773,t.contourintegral=8750,t.control=8963,t.controlACK=6,t.controlBEL=7,t.controlBS=8,t.controlCAN=24,t.controlCR=13,t.controlDC1=17,t.controlDC2=18,t.controlDC3=19,t.controlDC4=20,t.controlDEL=127,t.controlDLE=16,t.controlEM=25,t.controlENQ=5,t.controlEOT=4,t.controlESC=27,t.controlETB=23,t.controlETX=3,t.controlFF=12,t.controlFS=28,t.controlGS=29,t.controlHT=9,t.controlLF=10,t.controlNAK=21,t.controlNULL=0,t.controlRS=30,t.controlSI=15,t.controlSO=14,t.controlSOT=2,t.controlSTX=1,t.controlSUB=26,t.controlSYN=22,t.controlUS=31,t.controlVT=11,t.copyright=169,t.copyrightsans=63721,t.copyrightserif=63193,t.cornerbracketleft=12300,t.cornerbracketlefthalfwidth=65378,t.cornerbracketleftvertical=65089,t.cornerbracketright=12301,t.cornerbracketrighthalfwidth=65379,t.cornerbracketrightvertical=65090,t.corporationsquare=13183,t.cosquare=13255,t.coverkgsquare=13254,t.cparen=9374,t.cruzeiro=8354,t.cstretched=663,t.curlyand=8911,t.curlyor=8910,t.currency=164,t.cyrBreve=63185,t.cyrFlex=63186,t.cyrbreve=63188,t.cyrflex=63189,t.d=100,t.daarmenian=1380,t.dabengali=2470,t.dadarabic=1590,t.dadeva=2342,t.dadfinalarabic=65214,t.dadinitialarabic=65215,t.dadmedialarabic=65216,t.dagesh=1468,t.dageshhebrew=1468,t.dagger=8224,t.daggerdbl=8225,t.dagujarati=2726,t.dagurmukhi=2598,t.dahiragana=12384,t.dakatakana=12480,t.dalarabic=1583,t.dalet=1491,t.daletdagesh=64307,t.daletdageshhebrew=64307,t.dalethebrew=1491,t.dalfinalarabic=65194,t.dammaarabic=1615,t.dammalowarabic=1615,t.dammatanaltonearabic=1612,t.dammatanarabic=1612,t.danda=2404,t.dargahebrew=1447,t.dargalefthebrew=1447,t.dasiapneumatacyrilliccmb=1157,t.dblGrave=63187,t.dblanglebracketleft=12298,t.dblanglebracketleftvertical=65085,t.dblanglebracketright=12299,t.dblanglebracketrightvertical=65086,t.dblarchinvertedbelowcmb=811,t.dblarrowleft=8660,t.dblarrowright=8658,t.dbldanda=2405,t.dblgrave=63190,t.dblgravecmb=783,t.dblintegral=8748,t.dbllowline=8215,t.dbllowlinecmb=819,t.dbloverlinecmb=831,t.dblprimemod=698,t.dblverticalbar=8214,t.dblverticallineabovecmb=782,t.dbopomofo=12553,t.dbsquare=13256,t.dcaron=271,t.dcedilla=7697,t.dcircle=9427,t.dcircumflexbelow=7699,t.dcroat=273,t.ddabengali=2465,t.ddadeva=2337,t.ddagujarati=2721,t.ddagurmukhi=2593,t.ddalarabic=1672,t.ddalfinalarabic=64393,t.dddhadeva=2396,t.ddhabengali=2466,t.ddhadeva=2338,t.ddhagujarati=2722,t.ddhagurmukhi=2594,t.ddotaccent=7691,t.ddotbelow=7693,t.decimalseparatorarabic=1643,t.decimalseparatorpersian=1643,t.decyrillic=1076,t.degree=176,t.dehihebrew=1453,t.dehiragana=12391,t.deicoptic=1007,t.dekatakana=12487,t.deleteleft=9003,t.deleteright=8998,t.delta=948,t.deltaturned=397,t.denominatorminusonenumeratorbengali=2552,t.dezh=676,t.dhabengali=2471,t.dhadeva=2343,t.dhagujarati=2727,t.dhagurmukhi=2599,t.dhook=599,t.dialytikatonos=901,t.dialytikatonoscmb=836,t.diamond=9830,t.diamondsuitwhite=9826,t.dieresis=168,t.dieresisacute=63191,t.dieresisbelowcmb=804,t.dieresiscmb=776,t.dieresisgrave=63192,t.dieresistonos=901,t.dihiragana=12386,t.dikatakana=12482,t.dittomark=12291,t.divide=247,t.divides=8739,t.divisionslash=8725,t.djecyrillic=1106,t.dkshade=9619,t.dlinebelow=7695,t.dlsquare=13207,t.dmacron=273,t.dmonospace=65348,t.dnblock=9604,t.dochadathai=3598,t.dodekthai=3604,t.dohiragana=12393,t.dokatakana=12489,t.dollar=36,t.dollarinferior=63203,t.dollarmonospace=65284,t.dollaroldstyle=63268,t.dollarsmall=65129,t.dollarsuperior=63204,t.dong=8363,t.dorusquare=13094,t.dotaccent=729,t.dotaccentcmb=775,t.dotbelowcmb=803,t.dotbelowcomb=803,t.dotkatakana=12539,t.dotlessi=305,t.dotlessj=63166,t.dotlessjstrokehook=644,t.dotmath=8901,t.dottedcircle=9676,t.doubleyodpatah=64287,t.doubleyodpatahhebrew=64287,t.downtackbelowcmb=798,t.downtackmod=725,t.dparen=9375,t.dsuperior=63211,t.dtail=598,t.dtopbar=396,t.duhiragana=12389,t.dukatakana=12485,t.dz=499,t.dzaltone=675,t.dzcaron=454,t.dzcurl=677,t.dzeabkhasiancyrillic=1249,t.dzecyrillic=1109,t.dzhecyrillic=1119,t.e=101,t.eacute=233,t.earth=9793,t.ebengali=2447,t.ebopomofo=12572,t.ebreve=277,t.ecandradeva=2317,t.ecandragujarati=2701,t.ecandravowelsigndeva=2373,t.ecandravowelsigngujarati=2757,t.ecaron=283,t.ecedillabreve=7709,t.echarmenian=1381,t.echyiwnarmenian=1415,t.ecircle=9428,t.ecircumflex=234,t.ecircumflexacute=7871,t.ecircumflexbelow=7705,t.ecircumflexdotbelow=7879,t.ecircumflexgrave=7873,t.ecircumflexhookabove=7875,t.ecircumflextilde=7877,t.ecyrillic=1108,t.edblgrave=517,t.edeva=2319,t.edieresis=235,t.edot=279,t.edotaccent=279,t.edotbelow=7865,t.eegurmukhi=2575,t.eematragurmukhi=2631,t.efcyrillic=1092,t.egrave=232,t.egujarati=2703,t.eharmenian=1383,t.ehbopomofo=12573,t.ehiragana=12360,t.ehookabove=7867,t.eibopomofo=12575,t.eight=56,t.eightarabic=1640,t.eightbengali=2542,t.eightcircle=9319,t.eightcircleinversesansserif=10129,t.eightdeva=2414,t.eighteencircle=9329,t.eighteenparen=9349,t.eighteenperiod=9369,t.eightgujarati=2798,t.eightgurmukhi=2670,t.eighthackarabic=1640,t.eighthangzhou=12328,t.eighthnotebeamed=9835,t.eightideographicparen=12839,t.eightinferior=8328,t.eightmonospace=65304,t.eightoldstyle=63288,t.eightparen=9339,t.eightperiod=9359,t.eightpersian=1784,t.eightroman=8567,t.eightsuperior=8312,t.eightthai=3672,t.einvertedbreve=519,t.eiotifiedcyrillic=1125,t.ekatakana=12456,t.ekatakanahalfwidth=65396,t.ekonkargurmukhi=2676,t.ekorean=12628,t.elcyrillic=1083,t.element=8712,t.elevencircle=9322,t.elevenparen=9342,t.elevenperiod=9362,t.elevenroman=8570,t.ellipsis=8230,t.ellipsisvertical=8942,t.emacron=275,t.emacronacute=7703,t.emacrongrave=7701,t.emcyrillic=1084,t.emdash=8212,t.emdashvertical=65073,t.emonospace=65349,t.emphasismarkarmenian=1371,t.emptyset=8709,t.enbopomofo=12579,t.encyrillic=1085,t.endash=8211,t.endashvertical=65074,t.endescendercyrillic=1187,t.eng=331,t.engbopomofo=12581,t.enghecyrillic=1189,t.enhookcyrillic=1224,t.enspace=8194,t.eogonek=281,t.eokorean=12627,t.eopen=603,t.eopenclosed=666,t.eopenreversed=604,t.eopenreversedclosed=606,t.eopenreversedhook=605,t.eparen=9376,t.epsilon=949,t.epsilontonos=941,t.equal=61,t.equalmonospace=65309,t.equalsmall=65126,t.equalsuperior=8316,t.equivalence=8801,t.erbopomofo=12582,t.ercyrillic=1088,t.ereversed=600,t.ereversedcyrillic=1101,t.escyrillic=1089,t.esdescendercyrillic=1195,t.esh=643,t.eshcurl=646,t.eshortdeva=2318,t.eshortvowelsigndeva=2374,t.eshreversedloop=426,t.eshsquatreversed=645,t.esmallhiragana=12359,t.esmallkatakana=12455,t.esmallkatakanahalfwidth=65386,t.estimated=8494,t.esuperior=63212,t.eta=951,t.etarmenian=1384,t.etatonos=942,t.eth=240,t.etilde=7869,t.etildebelow=7707,t.etnahtafoukhhebrew=1425,t.etnahtafoukhlefthebrew=1425,t.etnahtahebrew=1425,t.etnahtalefthebrew=1425,t.eturned=477,t.eukorean=12641,t.euro=8364,t.evowelsignbengali=2503,t.evowelsigndeva=2375,t.evowelsigngujarati=2759,t.exclam=33,t.exclamarmenian=1372,t.exclamdbl=8252,t.exclamdown=161,t.exclamdownsmall=63393,t.exclammonospace=65281,t.exclamsmall=63265,t.existential=8707,t.ezh=658,t.ezhcaron=495,t.ezhcurl=659,t.ezhreversed=441,t.ezhtail=442,t.f=102,t.fadeva=2398,t.fagurmukhi=2654,t.fahrenheit=8457,t.fathaarabic=1614,t.fathalowarabic=1614,t.fathatanarabic=1611,t.fbopomofo=12552,t.fcircle=9429,t.fdotaccent=7711,t.feharabic=1601,t.feharmenian=1414,t.fehfinalarabic=65234,t.fehinitialarabic=65235,t.fehmedialarabic=65236,t.feicoptic=997,t.female=9792,t.ff=64256,t.f_f=64256,t.ffi=64259,t.f_f_i=64259,t.ffl=64260,t.f_f_l=64260,t.fi=64257,t.f_i=64257,t.fifteencircle=9326,t.fifteenparen=9346,t.fifteenperiod=9366,t.figuredash=8210,t.filledbox=9632,t.filledrect=9644,t.finalkaf=1498,t.finalkafdagesh=64314,t.finalkafdageshhebrew=64314,t.finalkafhebrew=1498,t.finalmem=1501,t.finalmemhebrew=1501,t.finalnun=1503,t.finalnunhebrew=1503,t.finalpe=1507,t.finalpehebrew=1507,t.finaltsadi=1509,t.finaltsadihebrew=1509,t.firsttonechinese=713,t.fisheye=9673,t.fitacyrillic=1139,t.five=53,t.fivearabic=1637,t.fivebengali=2539,t.fivecircle=9316,t.fivecircleinversesansserif=10126,t.fivedeva=2411,t.fiveeighths=8541,t.fivegujarati=2795,t.fivegurmukhi=2667,t.fivehackarabic=1637,t.fivehangzhou=12325,t.fiveideographicparen=12836,t.fiveinferior=8325,t.fivemonospace=65301,t.fiveoldstyle=63285,t.fiveparen=9336,t.fiveperiod=9356,t.fivepersian=1781,t.fiveroman=8564,t.fivesuperior=8309,t.fivethai=3669,t.fl=64258,t.f_l=64258,t.florin=402,t.fmonospace=65350,t.fmsquare=13209,t.fofanthai=3615,t.fofathai=3613,t.fongmanthai=3663,t.forall=8704,t.four=52,t.fourarabic=1636,t.fourbengali=2538,t.fourcircle=9315,t.fourcircleinversesansserif=10125,t.fourdeva=2410,t.fourgujarati=2794,t.fourgurmukhi=2666,t.fourhackarabic=1636,t.fourhangzhou=12324,t.fourideographicparen=12835,t.fourinferior=8324,t.fourmonospace=65300,t.fournumeratorbengali=2551,t.fouroldstyle=63284,t.fourparen=9335,t.fourperiod=9355,t.fourpersian=1780,t.fourroman=8563,t.foursuperior=8308,t.fourteencircle=9325,t.fourteenparen=9345,t.fourteenperiod=9365,t.fourthai=3668,t.fourthtonechinese=715,t.fparen=9377,t.fraction=8260,t.franc=8355,t.g=103,t.gabengali=2455,t.gacute=501,t.gadeva=2327,t.gafarabic=1711,t.gaffinalarabic=64403,t.gafinitialarabic=64404,t.gafmedialarabic=64405,t.gagujarati=2711,t.gagurmukhi=2583,t.gahiragana=12364,t.gakatakana=12460,t.gamma=947,t.gammalatinsmall=611,t.gammasuperior=736,t.gangiacoptic=1003,t.gbopomofo=12557,t.gbreve=287,t.gcaron=487,t.gcedilla=291,t.gcircle=9430,t.gcircumflex=285,t.gcommaaccent=291,t.gdot=289,t.gdotaccent=289,t.gecyrillic=1075,t.gehiragana=12370,t.gekatakana=12466,t.geometricallyequal=8785,t.gereshaccenthebrew=1436,t.gereshhebrew=1523,t.gereshmuqdamhebrew=1437,t.germandbls=223,t.gershayimaccenthebrew=1438,t.gershayimhebrew=1524,t.getamark=12307,t.ghabengali=2456,t.ghadarmenian=1394,t.ghadeva=2328,t.ghagujarati=2712,t.ghagurmukhi=2584,t.ghainarabic=1594,t.ghainfinalarabic=65230,t.ghaininitialarabic=65231,t.ghainmedialarabic=65232,t.ghemiddlehookcyrillic=1173,t.ghestrokecyrillic=1171,t.gheupturncyrillic=1169,t.ghhadeva=2394,t.ghhagurmukhi=2650,t.ghook=608,t.ghzsquare=13203,t.gihiragana=12366,t.gikatakana=12462,t.gimarmenian=1379,t.gimel=1490,t.gimeldagesh=64306,t.gimeldageshhebrew=64306,t.gimelhebrew=1490,t.gjecyrillic=1107,t.glottalinvertedstroke=446,t.glottalstop=660,t.glottalstopinverted=662,t.glottalstopmod=704,t.glottalstopreversed=661,t.glottalstopreversedmod=705,t.glottalstopreversedsuperior=740,t.glottalstopstroke=673,t.glottalstopstrokereversed=674,t.gmacron=7713,t.gmonospace=65351,t.gohiragana=12372,t.gokatakana=12468,t.gparen=9378,t.gpasquare=13228,t.gradient=8711,t.grave=96,t.gravebelowcmb=790,t.gravecmb=768,t.gravecomb=768,t.gravedeva=2387,t.gravelowmod=718,t.gravemonospace=65344,t.gravetonecmb=832,t.greater=62,t.greaterequal=8805,t.greaterequalorless=8923,t.greatermonospace=65310,t.greaterorequivalent=8819,t.greaterorless=8823,t.greateroverequal=8807,t.greatersmall=65125,t.gscript=609,t.gstroke=485,t.guhiragana=12368,t.guillemotleft=171,t.guillemotright=187,t.guilsinglleft=8249,t.guilsinglright=8250,t.gukatakana=12464,t.guramusquare=13080,t.gysquare=13257,t.h=104,t.haabkhasiancyrillic=1193,t.haaltonearabic=1729,t.habengali=2489,t.hadescendercyrillic=1203,t.hadeva=2361,t.hagujarati=2745,t.hagurmukhi=2617,t.haharabic=1581,t.hahfinalarabic=65186,t.hahinitialarabic=65187,t.hahiragana=12399,t.hahmedialarabic=65188,t.haitusquare=13098,t.hakatakana=12495,t.hakatakanahalfwidth=65418,t.halantgurmukhi=2637,t.hamzaarabic=1569,t.hamzalowarabic=1569,t.hangulfiller=12644,t.hardsigncyrillic=1098,t.harpoonleftbarbup=8636,t.harpoonrightbarbup=8640,t.hasquare=13258,t.hatafpatah=1458,t.hatafpatah16=1458,t.hatafpatah23=1458,t.hatafpatah2f=1458,t.hatafpatahhebrew=1458,t.hatafpatahnarrowhebrew=1458,t.hatafpatahquarterhebrew=1458,t.hatafpatahwidehebrew=1458,t.hatafqamats=1459,t.hatafqamats1b=1459,t.hatafqamats28=1459,t.hatafqamats34=1459,t.hatafqamatshebrew=1459,t.hatafqamatsnarrowhebrew=1459,t.hatafqamatsquarterhebrew=1459,t.hatafqamatswidehebrew=1459,t.hatafsegol=1457,t.hatafsegol17=1457,t.hatafsegol24=1457,t.hatafsegol30=1457,t.hatafsegolhebrew=1457,t.hatafsegolnarrowhebrew=1457,t.hatafsegolquarterhebrew=1457,t.hatafsegolwidehebrew=1457,t.hbar=295,t.hbopomofo=12559,t.hbrevebelow=7723,t.hcedilla=7721,t.hcircle=9431,t.hcircumflex=293,t.hdieresis=7719,t.hdotaccent=7715,t.hdotbelow=7717,t.he=1492,t.heart=9829,t.heartsuitblack=9829,t.heartsuitwhite=9825,t.hedagesh=64308,t.hedageshhebrew=64308,t.hehaltonearabic=1729,t.heharabic=1607,t.hehebrew=1492,t.hehfinalaltonearabic=64423,t.hehfinalalttwoarabic=65258,t.hehfinalarabic=65258,t.hehhamzaabovefinalarabic=64421,t.hehhamzaaboveisolatedarabic=64420,t.hehinitialaltonearabic=64424,t.hehinitialarabic=65259,t.hehiragana=12408,t.hehmedialaltonearabic=64425,t.hehmedialarabic=65260,t.heiseierasquare=13179,t.hekatakana=12504,t.hekatakanahalfwidth=65421,t.hekutaarusquare=13110,t.henghook=615,t.herutusquare=13113,t.het=1495,t.hethebrew=1495,t.hhook=614,t.hhooksuperior=689,t.hieuhacirclekorean=12923,t.hieuhaparenkorean=12827,t.hieuhcirclekorean=12909,t.hieuhkorean=12622,t.hieuhparenkorean=12813,t.hihiragana=12402,t.hikatakana=12498,t.hikatakanahalfwidth=65419,t.hiriq=1460,t.hiriq14=1460,t.hiriq21=1460,t.hiriq2d=1460,t.hiriqhebrew=1460,t.hiriqnarrowhebrew=1460,t.hiriqquarterhebrew=1460,t.hiriqwidehebrew=1460,t.hlinebelow=7830,t.hmonospace=65352,t.hoarmenian=1392,t.hohipthai=3627,t.hohiragana=12411,t.hokatakana=12507,t.hokatakanahalfwidth=65422,t.holam=1465,t.holam19=1465,t.holam26=1465,t.holam32=1465,t.holamhebrew=1465,t.holamnarrowhebrew=1465,t.holamquarterhebrew=1465,t.holamwidehebrew=1465,t.honokhukthai=3630,t.hookabovecomb=777,t.hookcmb=777,t.hookpalatalizedbelowcmb=801,t.hookretroflexbelowcmb=802,t.hoonsquare=13122,t.horicoptic=1001,t.horizontalbar=8213,t.horncmb=795,t.hotsprings=9832,t.house=8962,t.hparen=9379,t.hsuperior=688,t.hturned=613,t.huhiragana=12405,t.huiitosquare=13107,t.hukatakana=12501,t.hukatakanahalfwidth=65420,t.hungarumlaut=733,t.hungarumlautcmb=779,t.hv=405,t.hyphen=45,t.hypheninferior=63205,t.hyphenmonospace=65293,t.hyphensmall=65123,t.hyphensuperior=63206,t.hyphentwo=8208,t.i=105,t.iacute=237,t.iacyrillic=1103,t.ibengali=2439,t.ibopomofo=12583,t.ibreve=301,t.icaron=464,t.icircle=9432,t.icircumflex=238,t.icyrillic=1110,t.idblgrave=521,t.ideographearthcircle=12943,t.ideographfirecircle=12939,t.ideographicallianceparen=12863,t.ideographiccallparen=12858,t.ideographiccentrecircle=12965,t.ideographicclose=12294,t.ideographiccomma=12289,t.ideographiccommaleft=65380,t.ideographiccongratulationparen=12855,t.ideographiccorrectcircle=12963,t.ideographicearthparen=12847,t.ideographicenterpriseparen=12861,t.ideographicexcellentcircle=12957,t.ideographicfestivalparen=12864,t.ideographicfinancialcircle=12950,t.ideographicfinancialparen=12854,t.ideographicfireparen=12843,t.ideographichaveparen=12850,t.ideographichighcircle=12964,t.ideographiciterationmark=12293,t.ideographiclaborcircle=12952,t.ideographiclaborparen=12856,t.ideographicleftcircle=12967,t.ideographiclowcircle=12966,t.ideographicmedicinecircle=12969,t.ideographicmetalparen=12846,t.ideographicmoonparen=12842,t.ideographicnameparen=12852,t.ideographicperiod=12290,t.ideographicprintcircle=12958,t.ideographicreachparen=12867,t.ideographicrepresentparen=12857,t.ideographicresourceparen=12862,t.ideographicrightcircle=12968,t.ideographicsecretcircle=12953,t.ideographicselfparen=12866,t.ideographicsocietyparen=12851,t.ideographicspace=12288,t.ideographicspecialparen=12853,t.ideographicstockparen=12849,t.ideographicstudyparen=12859,t.ideographicsunparen=12848,t.ideographicsuperviseparen=12860,t.ideographicwaterparen=12844,t.ideographicwoodparen=12845,t.ideographiczero=12295,t.ideographmetalcircle=12942,t.ideographmooncircle=12938,t.ideographnamecircle=12948,t.ideographsuncircle=12944,t.ideographwatercircle=12940,t.ideographwoodcircle=12941,t.ideva=2311,t.idieresis=239,t.idieresisacute=7727,t.idieresiscyrillic=1253,t.idotbelow=7883,t.iebrevecyrillic=1239,t.iecyrillic=1077,t.ieungacirclekorean=12917,t.ieungaparenkorean=12821,t.ieungcirclekorean=12903,t.ieungkorean=12615,t.ieungparenkorean=12807,t.igrave=236,t.igujarati=2695,t.igurmukhi=2567,t.ihiragana=12356,t.ihookabove=7881,t.iibengali=2440,t.iicyrillic=1080,t.iideva=2312,t.iigujarati=2696,t.iigurmukhi=2568,t.iimatragurmukhi=2624,t.iinvertedbreve=523,t.iishortcyrillic=1081,t.iivowelsignbengali=2496,t.iivowelsigndeva=2368,t.iivowelsigngujarati=2752,t.ij=307,t.ikatakana=12452,t.ikatakanahalfwidth=65394,t.ikorean=12643,t.ilde=732,t.iluyhebrew=1452,t.imacron=299,t.imacroncyrillic=1251,t.imageorapproximatelyequal=8787,t.imatragurmukhi=2623,t.imonospace=65353,t.increment=8710,t.infinity=8734,t.iniarmenian=1387,t.integral=8747,t.integralbottom=8993,t.integralbt=8993,t.integralex=63733,t.integraltop=8992,t.integraltp=8992,t.intersection=8745,t.intisquare=13061,t.invbullet=9688,t.invcircle=9689,t.invsmileface=9787,t.iocyrillic=1105,t.iogonek=303,t.iota=953,t.iotadieresis=970,t.iotadieresistonos=912,t.iotalatin=617,t.iotatonos=943,t.iparen=9380,t.irigurmukhi=2674,t.ismallhiragana=12355,t.ismallkatakana=12451,t.ismallkatakanahalfwidth=65384,t.issharbengali=2554,t.istroke=616,t.isuperior=63213,t.iterationhiragana=12445,t.iterationkatakana=12541,t.itilde=297,t.itildebelow=7725,t.iubopomofo=12585,t.iucyrillic=1102,t.ivowelsignbengali=2495,t.ivowelsigndeva=2367,t.ivowelsigngujarati=2751,t.izhitsacyrillic=1141,t.izhitsadblgravecyrillic=1143,t.j=106,t.jaarmenian=1393,t.jabengali=2460,t.jadeva=2332,t.jagujarati=2716,t.jagurmukhi=2588,t.jbopomofo=12560,t.jcaron=496,t.jcircle=9433,t.jcircumflex=309,t.jcrossedtail=669,t.jdotlessstroke=607,t.jecyrillic=1112,t.jeemarabic=1580,t.jeemfinalarabic=65182,t.jeeminitialarabic=65183,t.jeemmedialarabic=65184,t.jeharabic=1688,t.jehfinalarabic=64395,t.jhabengali=2461,t.jhadeva=2333,t.jhagujarati=2717,t.jhagurmukhi=2589,t.jheharmenian=1403,t.jis=12292,t.jmonospace=65354,t.jparen=9381,t.jsuperior=690,t.k=107,t.kabashkircyrillic=1185,t.kabengali=2453,t.kacute=7729,t.kacyrillic=1082,t.kadescendercyrillic=1179,t.kadeva=2325,t.kaf=1499,t.kafarabic=1603,t.kafdagesh=64315,t.kafdageshhebrew=64315,t.kaffinalarabic=65242,t.kafhebrew=1499,t.kafinitialarabic=65243,t.kafmedialarabic=65244,t.kafrafehebrew=64333,t.kagujarati=2709,t.kagurmukhi=2581,t.kahiragana=12363,t.kahookcyrillic=1220,t.kakatakana=12459,t.kakatakanahalfwidth=65398,t.kappa=954,t.kappasymbolgreek=1008,t.kapyeounmieumkorean=12657,t.kapyeounphieuphkorean=12676,t.kapyeounpieupkorean=12664,t.kapyeounssangpieupkorean=12665,t.karoriisquare=13069,t.kashidaautoarabic=1600,t.kashidaautonosidebearingarabic=1600,t.kasmallkatakana=12533,t.kasquare=13188,t.kasraarabic=1616,t.kasratanarabic=1613,t.kastrokecyrillic=1183,t.katahiraprolongmarkhalfwidth=65392,t.kaverticalstrokecyrillic=1181,t.kbopomofo=12558,t.kcalsquare=13193,t.kcaron=489,t.kcedilla=311,t.kcircle=9434,t.kcommaaccent=311,t.kdotbelow=7731,t.keharmenian=1412,t.kehiragana=12369,t.kekatakana=12465,t.kekatakanahalfwidth=65401,t.kenarmenian=1391,t.kesmallkatakana=12534,t.kgreenlandic=312,t.khabengali=2454,t.khacyrillic=1093,t.khadeva=2326,t.khagujarati=2710,t.khagurmukhi=2582,t.khaharabic=1582,t.khahfinalarabic=65190,t.khahinitialarabic=65191,t.khahmedialarabic=65192,t.kheicoptic=999,t.khhadeva=2393,t.khhagurmukhi=2649,t.khieukhacirclekorean=12920,t.khieukhaparenkorean=12824,t.khieukhcirclekorean=12906,t.khieukhkorean=12619,t.khieukhparenkorean=12810,t.khokhaithai=3586,t.khokhonthai=3589,t.khokhuatthai=3587,t.khokhwaithai=3588,t.khomutthai=3675,t.khook=409,t.khorakhangthai=3590,t.khzsquare=13201,t.kihiragana=12365,t.kikatakana=12461,t.kikatakanahalfwidth=65399,t.kiroguramusquare=13077,t.kiromeetorusquare=13078,t.kirosquare=13076,t.kiyeokacirclekorean=12910,t.kiyeokaparenkorean=12814,t.kiyeokcirclekorean=12896,t.kiyeokkorean=12593,t.kiyeokparenkorean=12800,t.kiyeoksioskorean=12595,t.kjecyrillic=1116,t.klinebelow=7733,t.klsquare=13208,t.kmcubedsquare=13222,t.kmonospace=65355,t.kmsquaredsquare=13218,t.kohiragana=12371,t.kohmsquare=13248,t.kokaithai=3585,t.kokatakana=12467,t.kokatakanahalfwidth=65402,t.kooposquare=13086,t.koppacyrillic=1153,t.koreanstandardsymbol=12927,t.koroniscmb=835,t.kparen=9382,t.kpasquare=13226,t.ksicyrillic=1135,t.ktsquare=13263,t.kturned=670,t.kuhiragana=12367,t.kukatakana=12463,t.kukatakanahalfwidth=65400,t.kvsquare=13240,t.kwsquare=13246,t.l=108,t.labengali=2482,t.lacute=314,t.ladeva=2354,t.lagujarati=2738,t.lagurmukhi=2610,t.lakkhangyaothai=3653,t.lamaleffinalarabic=65276,t.lamalefhamzaabovefinalarabic=65272,t.lamalefhamzaaboveisolatedarabic=65271,t.lamalefhamzabelowfinalarabic=65274,t.lamalefhamzabelowisolatedarabic=65273,t.lamalefisolatedarabic=65275,t.lamalefmaddaabovefinalarabic=65270,t.lamalefmaddaaboveisolatedarabic=65269,t.lamarabic=1604,t.lambda=955,t.lambdastroke=411,t.lamed=1500,t.lameddagesh=64316,t.lameddageshhebrew=64316,t.lamedhebrew=1500,t.lamfinalarabic=65246,t.lamhahinitialarabic=64714,t.laminitialarabic=65247,t.lamjeeminitialarabic=64713,t.lamkhahinitialarabic=64715,t.lamlamhehisolatedarabic=65010,t.lammedialarabic=65248,t.lammeemhahinitialarabic=64904,t.lammeeminitialarabic=64716,t.largecircle=9711,t.lbar=410,t.lbelt=620,t.lbopomofo=12556,t.lcaron=318,t.lcedilla=316,t.lcircle=9435,t.lcircumflexbelow=7741,t.lcommaaccent=316,t.ldot=320,t.ldotaccent=320,t.ldotbelow=7735,t.ldotbelowmacron=7737,t.leftangleabovecmb=794,t.lefttackbelowcmb=792,t.less=60,t.lessequal=8804,t.lessequalorgreater=8922,t.lessmonospace=65308,t.lessorequivalent=8818,t.lessorgreater=8822,t.lessoverequal=8806,t.lesssmall=65124,t.lezh=622,t.lfblock=9612,t.lhookretroflex=621,t.lira=8356,t.liwnarmenian=1388,t.lj=457,t.ljecyrillic=1113,t.ll=63168,t.lladeva=2355,t.llagujarati=2739,t.llinebelow=7739,t.llladeva=2356,t.llvocalicbengali=2529,t.llvocalicdeva=2401,t.llvocalicvowelsignbengali=2531,t.llvocalicvowelsigndeva=2403,t.lmiddletilde=619,t.lmonospace=65356,t.lmsquare=13264,t.lochulathai=3628,t.logicaland=8743,t.logicalnot=172,t.logicalnotreversed=8976,t.logicalor=8744,t.lolingthai=3621,t.longs=383,t.lowlinecenterline=65102,t.lowlinecmb=818,t.lowlinedashed=65101,t.lozenge=9674,t.lparen=9383,t.lslash=322,t.lsquare=8467,t.lsuperior=63214,t.ltshade=9617,t.luthai=3622,t.lvocalicbengali=2444,t.lvocalicdeva=2316,t.lvocalicvowelsignbengali=2530,t.lvocalicvowelsigndeva=2402,t.lxsquare=13267,t.m=109,t.mabengali=2478,t.macron=175,t.macronbelowcmb=817,t.macroncmb=772,t.macronlowmod=717,t.macronmonospace=65507,t.macute=7743,t.madeva=2350,t.magujarati=2734,t.magurmukhi=2606,t.mahapakhhebrew=1444,t.mahapakhlefthebrew=1444,t.mahiragana=12414,t.maichattawalowleftthai=63637,t.maichattawalowrightthai=63636,t.maichattawathai=3659,t.maichattawaupperleftthai=63635,t.maieklowleftthai=63628,t.maieklowrightthai=63627,t.maiekthai=3656,t.maiekupperleftthai=63626,t.maihanakatleftthai=63620,t.maihanakatthai=3633,t.maitaikhuleftthai=63625,t.maitaikhuthai=3655,t.maitholowleftthai=63631,t.maitholowrightthai=63630,t.maithothai=3657,t.maithoupperleftthai=63629,t.maitrilowleftthai=63634,t.maitrilowrightthai=63633,t.maitrithai=3658,t.maitriupperleftthai=63632,t.maiyamokthai=3654,t.makatakana=12510,t.makatakanahalfwidth=65423,t.male=9794,t.mansyonsquare=13127,t.maqafhebrew=1470,t.mars=9794,t.masoracirclehebrew=1455,t.masquare=13187,t.mbopomofo=12551,t.mbsquare=13268,t.mcircle=9436,t.mcubedsquare=13221,t.mdotaccent=7745,t.mdotbelow=7747,t.meemarabic=1605,t.meemfinalarabic=65250,t.meeminitialarabic=65251,t.meemmedialarabic=65252,t.meemmeeminitialarabic=64721,t.meemmeemisolatedarabic=64584,t.meetorusquare=13133,t.mehiragana=12417,t.meizierasquare=13182,t.mekatakana=12513,t.mekatakanahalfwidth=65426,t.mem=1502,t.memdagesh=64318,t.memdageshhebrew=64318,t.memhebrew=1502,t.menarmenian=1396,t.merkhahebrew=1445,t.merkhakefulahebrew=1446,t.merkhakefulalefthebrew=1446,t.merkhalefthebrew=1445,t.mhook=625,t.mhzsquare=13202,t.middledotkatakanahalfwidth=65381,t.middot=183,t.mieumacirclekorean=12914,t.mieumaparenkorean=12818,t.mieumcirclekorean=12900,t.mieumkorean=12609,t.mieumpansioskorean=12656,t.mieumparenkorean=12804,t.mieumpieupkorean=12654,t.mieumsioskorean=12655,t.mihiragana=12415,t.mikatakana=12511,t.mikatakanahalfwidth=65424,t.minus=8722,t.minusbelowcmb=800,t.minuscircle=8854,t.minusmod=727,t.minusplus=8723,t.minute=8242,t.miribaarusquare=13130,t.mirisquare=13129,t.mlonglegturned=624,t.mlsquare=13206,t.mmcubedsquare=13219,t.mmonospace=65357,t.mmsquaredsquare=13215,t.mohiragana=12418,t.mohmsquare=13249,t.mokatakana=12514,t.mokatakanahalfwidth=65427,t.molsquare=13270,t.momathai=3617,t.moverssquare=13223,t.moverssquaredsquare=13224,t.mparen=9384,t.mpasquare=13227,t.mssquare=13235,t.msuperior=63215,t.mturned=623,t.mu=181,t.mu1=181,t.muasquare=13186,t.muchgreater=8811,t.muchless=8810,t.mufsquare=13196,t.mugreek=956,t.mugsquare=13197,t.muhiragana=12416,t.mukatakana=12512,t.mukatakanahalfwidth=65425,t.mulsquare=13205,t.multiply=215,t.mumsquare=13211,t.munahhebrew=1443,t.munahlefthebrew=1443,t.musicalnote=9834,t.musicalnotedbl=9835,t.musicflatsign=9837,t.musicsharpsign=9839,t.mussquare=13234,t.muvsquare=13238,t.muwsquare=13244,t.mvmegasquare=13241,t.mvsquare=13239,t.mwmegasquare=13247,t.mwsquare=13245,t.n=110,t.nabengali=2472,t.nabla=8711,t.nacute=324,t.nadeva=2344,t.nagujarati=2728,t.nagurmukhi=2600,t.nahiragana=12394,t.nakatakana=12490,t.nakatakanahalfwidth=65413,t.napostrophe=329,t.nasquare=13185,t.nbopomofo=12555,t.nbspace=160,t.ncaron=328,t.ncedilla=326,t.ncircle=9437,t.ncircumflexbelow=7755,t.ncommaaccent=326,t.ndotaccent=7749,t.ndotbelow=7751,t.nehiragana=12397,t.nekatakana=12493,t.nekatakanahalfwidth=65416,t.newsheqelsign=8362,t.nfsquare=13195,t.ngabengali=2457,t.ngadeva=2329,t.ngagujarati=2713,t.ngagurmukhi=2585,t.ngonguthai=3591,t.nhiragana=12435,t.nhookleft=626,t.nhookretroflex=627,t.nieunacirclekorean=12911,t.nieunaparenkorean=12815,t.nieuncieuckorean=12597,t.nieuncirclekorean=12897,t.nieunhieuhkorean=12598,t.nieunkorean=12596,t.nieunpansioskorean=12648,t.nieunparenkorean=12801,t.nieunsioskorean=12647,t.nieuntikeutkorean=12646,t.nihiragana=12395,t.nikatakana=12491,t.nikatakanahalfwidth=65414,t.nikhahitleftthai=63641,t.nikhahitthai=3661,t.nine=57,t.ninearabic=1641,t.ninebengali=2543,t.ninecircle=9320,t.ninecircleinversesansserif=10130,t.ninedeva=2415,t.ninegujarati=2799,t.ninegurmukhi=2671,t.ninehackarabic=1641,t.ninehangzhou=12329,t.nineideographicparen=12840,t.nineinferior=8329,t.ninemonospace=65305,t.nineoldstyle=63289,t.nineparen=9340,t.nineperiod=9360,t.ninepersian=1785,t.nineroman=8568,t.ninesuperior=8313,t.nineteencircle=9330,t.nineteenparen=9350,t.nineteenperiod=9370,t.ninethai=3673,t.nj=460,t.njecyrillic=1114,t.nkatakana=12531,t.nkatakanahalfwidth=65437,t.nlegrightlong=414,t.nlinebelow=7753,t.nmonospace=65358,t.nmsquare=13210,t.nnabengali=2467,t.nnadeva=2339,t.nnagujarati=2723,t.nnagurmukhi=2595,t.nnnadeva=2345,t.nohiragana=12398,t.nokatakana=12494,t.nokatakanahalfwidth=65417,t.nonbreakingspace=160,t.nonenthai=3603,t.nonuthai=3609,t.noonarabic=1606,t.noonfinalarabic=65254,t.noonghunnaarabic=1722,t.noonghunnafinalarabic=64415,t.nooninitialarabic=65255,t.noonjeeminitialarabic=64722,t.noonjeemisolatedarabic=64587,t.noonmedialarabic=65256,t.noonmeeminitialarabic=64725,t.noonmeemisolatedarabic=64590,t.noonnoonfinalarabic=64653,t.notcontains=8716,t.notelement=8713,t.notelementof=8713,t.notequal=8800,t.notgreater=8815,t.notgreaternorequal=8817,t.notgreaternorless=8825,t.notidentical=8802,t.notless=8814,t.notlessnorequal=8816,t.notparallel=8742,t.notprecedes=8832,t.notsubset=8836,t.notsucceeds=8833,t.notsuperset=8837,t.nowarmenian=1398,t.nparen=9385,t.nssquare=13233,t.nsuperior=8319,t.ntilde=241,t.nu=957,t.nuhiragana=12396,t.nukatakana=12492,t.nukatakanahalfwidth=65415,t.nuktabengali=2492,t.nuktadeva=2364,t.nuktagujarati=2748,t.nuktagurmukhi=2620,t.numbersign=35,t.numbersignmonospace=65283,t.numbersignsmall=65119,t.numeralsigngreek=884,t.numeralsignlowergreek=885,t.numero=8470,t.nun=1504,t.nundagesh=64320,t.nundageshhebrew=64320,t.nunhebrew=1504,t.nvsquare=13237,t.nwsquare=13243,t.nyabengali=2462,t.nyadeva=2334,t.nyagujarati=2718,t.nyagurmukhi=2590,t.o=111,t.oacute=243,t.oangthai=3629,t.obarred=629,t.obarredcyrillic=1257,t.obarreddieresiscyrillic=1259,t.obengali=2451,t.obopomofo=12571,t.obreve=335,t.ocandradeva=2321,t.ocandragujarati=2705,t.ocandravowelsigndeva=2377,t.ocandravowelsigngujarati=2761,t.ocaron=466,t.ocircle=9438,t.ocircumflex=244,t.ocircumflexacute=7889,t.ocircumflexdotbelow=7897,t.ocircumflexgrave=7891,t.ocircumflexhookabove=7893,t.ocircumflextilde=7895,t.ocyrillic=1086,t.odblacute=337,t.odblgrave=525,t.odeva=2323,t.odieresis=246,t.odieresiscyrillic=1255,t.odotbelow=7885,t.oe=339,t.oekorean=12634,t.ogonek=731,t.ogonekcmb=808,t.ograve=242,t.ogujarati=2707,t.oharmenian=1413,t.ohiragana=12362,t.ohookabove=7887,t.ohorn=417,t.ohornacute=7899,t.ohorndotbelow=7907,t.ohorngrave=7901,t.ohornhookabove=7903,t.ohorntilde=7905,t.ohungarumlaut=337,t.oi=419,t.oinvertedbreve=527,t.okatakana=12458,t.okatakanahalfwidth=65397,t.okorean=12631,t.olehebrew=1451,t.omacron=333,t.omacronacute=7763,t.omacrongrave=7761,t.omdeva=2384,t.omega=969,t.omega1=982,t.omegacyrillic=1121,t.omegalatinclosed=631,t.omegaroundcyrillic=1147,t.omegatitlocyrillic=1149,t.omegatonos=974,t.omgujarati=2768,t.omicron=959,t.omicrontonos=972,t.omonospace=65359,t.one=49,t.onearabic=1633,t.onebengali=2535,t.onecircle=9312,t.onecircleinversesansserif=10122,t.onedeva=2407,t.onedotenleader=8228,t.oneeighth=8539,t.onefitted=63196,t.onegujarati=2791,t.onegurmukhi=2663,t.onehackarabic=1633,t.onehalf=189,t.onehangzhou=12321,t.oneideographicparen=12832,t.oneinferior=8321,t.onemonospace=65297,t.onenumeratorbengali=2548,t.oneoldstyle=63281,t.oneparen=9332,t.oneperiod=9352,t.onepersian=1777,t.onequarter=188,t.oneroman=8560,t.onesuperior=185,t.onethai=3665,t.onethird=8531,t.oogonek=491,t.oogonekmacron=493,t.oogurmukhi=2579,t.oomatragurmukhi=2635,t.oopen=596,t.oparen=9386,t.openbullet=9702,t.option=8997,t.ordfeminine=170,t.ordmasculine=186,t.orthogonal=8735,t.oshortdeva=2322,t.oshortvowelsigndeva=2378,t.oslash=248,t.oslashacute=511,t.osmallhiragana=12361,t.osmallkatakana=12457,t.osmallkatakanahalfwidth=65387,t.ostrokeacute=511,t.osuperior=63216,t.otcyrillic=1151,t.otilde=245,t.otildeacute=7757,t.otildedieresis=7759,t.oubopomofo=12577,t.overline=8254,t.overlinecenterline=65098,t.overlinecmb=773,t.overlinedashed=65097,t.overlinedblwavy=65100,t.overlinewavy=65099,t.overscore=175,t.ovowelsignbengali=2507,t.ovowelsigndeva=2379,t.ovowelsigngujarati=2763,t.p=112,t.paampssquare=13184,t.paasentosquare=13099,t.pabengali=2474,t.pacute=7765,t.padeva=2346,t.pagedown=8671,t.pageup=8670,t.pagujarati=2730,t.pagurmukhi=2602,t.pahiragana=12401,t.paiyannoithai=3631,t.pakatakana=12497,t.palatalizationcyrilliccmb=1156,t.palochkacyrillic=1216,t.pansioskorean=12671,t.paragraph=182,t.parallel=8741,t.parenleft=40,t.parenleftaltonearabic=64830,t.parenleftbt=63725,t.parenleftex=63724,t.parenleftinferior=8333,t.parenleftmonospace=65288,t.parenleftsmall=65113,t.parenleftsuperior=8317,t.parenlefttp=63723,t.parenleftvertical=65077,t.parenright=41,t.parenrightaltonearabic=64831,t.parenrightbt=63736,t.parenrightex=63735,t.parenrightinferior=8334,t.parenrightmonospace=65289,t.parenrightsmall=65114,t.parenrightsuperior=8318,t.parenrighttp=63734,t.parenrightvertical=65078,t.partialdiff=8706,t.paseqhebrew=1472,t.pashtahebrew=1433,t.pasquare=13225,t.patah=1463,t.patah11=1463,t.patah1d=1463,t.patah2a=1463,t.patahhebrew=1463,t.patahnarrowhebrew=1463,t.patahquarterhebrew=1463,t.patahwidehebrew=1463,t.pazerhebrew=1441,t.pbopomofo=12550,t.pcircle=9439,t.pdotaccent=7767,t.pe=1508,t.pecyrillic=1087,t.pedagesh=64324,t.pedageshhebrew=64324,t.peezisquare=13115,t.pefinaldageshhebrew=64323,t.peharabic=1662,t.peharmenian=1402,t.pehebrew=1508,t.pehfinalarabic=64343,t.pehinitialarabic=64344,t.pehiragana=12410,t.pehmedialarabic=64345,t.pekatakana=12506,t.pemiddlehookcyrillic=1191,t.perafehebrew=64334,t.percent=37,t.percentarabic=1642,t.percentmonospace=65285,t.percentsmall=65130,t.period=46,t.periodarmenian=1417,t.periodcentered=183,t.periodhalfwidth=65377,t.periodinferior=63207,t.periodmonospace=65294,t.periodsmall=65106,t.periodsuperior=63208,t.perispomenigreekcmb=834,t.perpendicular=8869,t.perthousand=8240,t.peseta=8359,t.pfsquare=13194,t.phabengali=2475,t.phadeva=2347,t.phagujarati=2731,t.phagurmukhi=2603,t.phi=966,t.phi1=981,t.phieuphacirclekorean=12922,t.phieuphaparenkorean=12826,t.phieuphcirclekorean=12908,t.phieuphkorean=12621,t.phieuphparenkorean=12812,t.philatin=632,t.phinthuthai=3642,t.phisymbolgreek=981,t.phook=421,t.phophanthai=3614,t.phophungthai=3612,t.phosamphaothai=3616,t.pi=960,t.pieupacirclekorean=12915,t.pieupaparenkorean=12819,t.pieupcieuckorean=12662,t.pieupcirclekorean=12901,t.pieupkiyeokkorean=12658,t.pieupkorean=12610,t.pieupparenkorean=12805,t.pieupsioskiyeokkorean=12660,t.pieupsioskorean=12612,t.pieupsiostikeutkorean=12661,t.pieupthieuthkorean=12663,t.pieuptikeutkorean=12659,t.pihiragana=12404,t.pikatakana=12500,t.pisymbolgreek=982,t.piwrarmenian=1411,t.planckover2pi=8463,t.planckover2pi1=8463,t.plus=43,t.plusbelowcmb=799,t.pluscircle=8853,t.plusminus=177,t.plusmod=726,t.plusmonospace=65291,t.plussmall=65122,t.plussuperior=8314,t.pmonospace=65360,t.pmsquare=13272,t.pohiragana=12413,t.pointingindexdownwhite=9759,t.pointingindexleftwhite=9756,t.pointingindexrightwhite=9758,t.pointingindexupwhite=9757,t.pokatakana=12509,t.poplathai=3611,t.postalmark=12306,t.postalmarkface=12320,t.pparen=9387,t.precedes=8826,t.prescription=8478,t.primemod=697,t.primereversed=8245,t.product=8719,t.projective=8965,t.prolongedkana=12540,t.propellor=8984,t.propersubset=8834,t.propersuperset=8835,t.proportion=8759,t.proportional=8733,t.psi=968,t.psicyrillic=1137,t.psilipneumatacyrilliccmb=1158,t.pssquare=13232,t.puhiragana=12407,t.pukatakana=12503,t.pvsquare=13236,t.pwsquare=13242,t.q=113,t.qadeva=2392,t.qadmahebrew=1448,t.qafarabic=1602,t.qaffinalarabic=65238,t.qafinitialarabic=65239,t.qafmedialarabic=65240,t.qamats=1464,t.qamats10=1464,t.qamats1a=1464,t.qamats1c=1464,t.qamats27=1464,t.qamats29=1464,t.qamats33=1464,t.qamatsde=1464,t.qamatshebrew=1464,t.qamatsnarrowhebrew=1464,t.qamatsqatanhebrew=1464,t.qamatsqatannarrowhebrew=1464,t.qamatsqatanquarterhebrew=1464,t.qamatsqatanwidehebrew=1464,t.qamatsquarterhebrew=1464,t.qamatswidehebrew=1464,t.qarneyparahebrew=1439,t.qbopomofo=12561,t.qcircle=9440,t.qhook=672,t.qmonospace=65361,t.qof=1511,t.qofdagesh=64327,t.qofdageshhebrew=64327,t.qofhebrew=1511,t.qparen=9388,t.quarternote=9833,t.qubuts=1467,t.qubuts18=1467,t.qubuts25=1467,t.qubuts31=1467,t.qubutshebrew=1467,t.qubutsnarrowhebrew=1467,t.qubutsquarterhebrew=1467,t.qubutswidehebrew=1467,t.question=63,t.questionarabic=1567,t.questionarmenian=1374,t.questiondown=191,t.questiondownsmall=63423,t.questiongreek=894,t.questionmonospace=65311,t.questionsmall=63295,t.quotedbl=34,t.quotedblbase=8222,t.quotedblleft=8220,t.quotedblmonospace=65282,t.quotedblprime=12318,t.quotedblprimereversed=12317,t.quotedblright=8221,t.quoteleft=8216,t.quoteleftreversed=8219,t.quotereversed=8219,t.quoteright=8217,t.quoterightn=329,t.quotesinglbase=8218,t.quotesingle=39,t.quotesinglemonospace=65287,t.r=114,t.raarmenian=1404,t.rabengali=2480,t.racute=341,t.radeva=2352,t.radical=8730,t.radicalex=63717,t.radoverssquare=13230,t.radoverssquaredsquare=13231,t.radsquare=13229,t.rafe=1471,t.rafehebrew=1471,t.ragujarati=2736,t.ragurmukhi=2608,t.rahiragana=12425,t.rakatakana=12521,t.rakatakanahalfwidth=65431,t.ralowerdiagonalbengali=2545,t.ramiddlediagonalbengali=2544,t.ramshorn=612,t.ratio=8758,t.rbopomofo=12566,t.rcaron=345,t.rcedilla=343,t.rcircle=9441,t.rcommaaccent=343,t.rdblgrave=529,t.rdotaccent=7769,t.rdotbelow=7771,t.rdotbelowmacron=7773,t.referencemark=8251,t.reflexsubset=8838,t.reflexsuperset=8839,t.registered=174,t.registersans=63720,t.registerserif=63194,t.reharabic=1585,t.reharmenian=1408,t.rehfinalarabic=65198,t.rehiragana=12428,t.rekatakana=12524,t.rekatakanahalfwidth=65434,t.resh=1512,t.reshdageshhebrew=64328,t.reshhebrew=1512,t.reversedtilde=8765,t.reviahebrew=1431,t.reviamugrashhebrew=1431,t.revlogicalnot=8976,t.rfishhook=638,t.rfishhookreversed=639,t.rhabengali=2525,t.rhadeva=2397,t.rho=961,t.rhook=637,t.rhookturned=635,t.rhookturnedsuperior=693,t.rhosymbolgreek=1009,t.rhotichookmod=734,t.rieulacirclekorean=12913,t.rieulaparenkorean=12817,t.rieulcirclekorean=12899,t.rieulhieuhkorean=12608,t.rieulkiyeokkorean=12602,t.rieulkiyeoksioskorean=12649,t.rieulkorean=12601,t.rieulmieumkorean=12603,t.rieulpansioskorean=12652,t.rieulparenkorean=12803,t.rieulphieuphkorean=12607,t.rieulpieupkorean=12604,t.rieulpieupsioskorean=12651,t.rieulsioskorean=12605,t.rieulthieuthkorean=12606,t.rieultikeutkorean=12650,t.rieulyeorinhieuhkorean=12653,t.rightangle=8735,t.righttackbelowcmb=793,t.righttriangle=8895,t.rihiragana=12426,t.rikatakana=12522,t.rikatakanahalfwidth=65432,t.ring=730,t.ringbelowcmb=805,t.ringcmb=778,t.ringhalfleft=703,t.ringhalfleftarmenian=1369,t.ringhalfleftbelowcmb=796,t.ringhalfleftcentered=723,t.ringhalfright=702,t.ringhalfrightbelowcmb=825,t.ringhalfrightcentered=722,t.rinvertedbreve=531,t.rittorusquare=13137,t.rlinebelow=7775,t.rlongleg=636,t.rlonglegturned=634,t.rmonospace=65362,t.rohiragana=12429,t.rokatakana=12525,t.rokatakanahalfwidth=65435,t.roruathai=3619,t.rparen=9389,t.rrabengali=2524,t.rradeva=2353,t.rragurmukhi=2652,t.rreharabic=1681,t.rrehfinalarabic=64397,t.rrvocalicbengali=2528,t.rrvocalicdeva=2400,t.rrvocalicgujarati=2784,t.rrvocalicvowelsignbengali=2500,t.rrvocalicvowelsigndeva=2372,t.rrvocalicvowelsigngujarati=2756,t.rsuperior=63217,t.rtblock=9616,t.rturned=633,t.rturnedsuperior=692,t.ruhiragana=12427,t.rukatakana=12523,t.rukatakanahalfwidth=65433,t.rupeemarkbengali=2546,t.rupeesignbengali=2547,t.rupiah=63197,t.ruthai=3620,t.rvocalicbengali=2443,t.rvocalicdeva=2315,t.rvocalicgujarati=2699,t.rvocalicvowelsignbengali=2499,t.rvocalicvowelsigndeva=2371,t.rvocalicvowelsigngujarati=2755,t.s=115,t.sabengali=2488,t.sacute=347,t.sacutedotaccent=7781,t.sadarabic=1589,t.sadeva=2360,t.sadfinalarabic=65210,t.sadinitialarabic=65211,t.sadmedialarabic=65212,t.sagujarati=2744,t.sagurmukhi=2616,t.sahiragana=12373,t.sakatakana=12469,t.sakatakanahalfwidth=65403,t.sallallahoualayhewasallamarabic=65018,t.samekh=1505,t.samekhdagesh=64321,t.samekhdageshhebrew=64321,t.samekhhebrew=1505,t.saraaathai=3634,t.saraaethai=3649,t.saraaimaimalaithai=3652,t.saraaimaimuanthai=3651,t.saraamthai=3635,t.saraathai=3632,t.saraethai=3648,t.saraiileftthai=63622,t.saraiithai=3637,t.saraileftthai=63621,t.saraithai=3636,t.saraothai=3650,t.saraueeleftthai=63624,t.saraueethai=3639,t.saraueleftthai=63623,t.sarauethai=3638,t.sarauthai=3640,t.sarauuthai=3641,t.sbopomofo=12569,t.scaron=353,t.scarondotaccent=7783,t.scedilla=351,t.schwa=601,t.schwacyrillic=1241,t.schwadieresiscyrillic=1243,t.schwahook=602,t.scircle=9442,t.scircumflex=349,t.scommaaccent=537,t.sdotaccent=7777,t.sdotbelow=7779,t.sdotbelowdotaccent=7785,t.seagullbelowcmb=828,t.second=8243,t.secondtonechinese=714,t.section=167,t.seenarabic=1587,t.seenfinalarabic=65202,t.seeninitialarabic=65203,t.seenmedialarabic=65204,t.segol=1462,t.segol13=1462,t.segol1f=1462,t.segol2c=1462,t.segolhebrew=1462,t.segolnarrowhebrew=1462,t.segolquarterhebrew=1462,t.segoltahebrew=1426,t.segolwidehebrew=1462,t.seharmenian=1405,t.sehiragana=12379,t.sekatakana=12475,t.sekatakanahalfwidth=65406,t.semicolon=59,t.semicolonarabic=1563,t.semicolonmonospace=65307,t.semicolonsmall=65108,t.semivoicedmarkkana=12444,t.semivoicedmarkkanahalfwidth=65439,t.sentisquare=13090,t.sentosquare=13091,t.seven=55,t.sevenarabic=1639,t.sevenbengali=2541,t.sevencircle=9318,t.sevencircleinversesansserif=10128,t.sevendeva=2413,t.seveneighths=8542,t.sevengujarati=2797,t.sevengurmukhi=2669,t.sevenhackarabic=1639,t.sevenhangzhou=12327,t.sevenideographicparen=12838,t.seveninferior=8327,t.sevenmonospace=65303,t.sevenoldstyle=63287,t.sevenparen=9338,t.sevenperiod=9358,t.sevenpersian=1783,t.sevenroman=8566,t.sevensuperior=8311,t.seventeencircle=9328,t.seventeenparen=9348,t.seventeenperiod=9368,t.seventhai=3671,t.sfthyphen=173,t.shaarmenian=1399,t.shabengali=2486,t.shacyrillic=1096,t.shaddaarabic=1617,t.shaddadammaarabic=64609,t.shaddadammatanarabic=64606,t.shaddafathaarabic=64608,t.shaddakasraarabic=64610,t.shaddakasratanarabic=64607,t.shade=9618,t.shadedark=9619,t.shadelight=9617,t.shademedium=9618,t.shadeva=2358,t.shagujarati=2742,t.shagurmukhi=2614,t.shalshelethebrew=1427,t.shbopomofo=12565,t.shchacyrillic=1097,t.sheenarabic=1588,t.sheenfinalarabic=65206,t.sheeninitialarabic=65207,t.sheenmedialarabic=65208,t.sheicoptic=995,t.sheqel=8362,t.sheqelhebrew=8362,t.sheva=1456,t.sheva115=1456,t.sheva15=1456,t.sheva22=1456,t.sheva2e=1456,t.shevahebrew=1456,t.shevanarrowhebrew=1456,t.shevaquarterhebrew=1456,t.shevawidehebrew=1456,t.shhacyrillic=1211,t.shimacoptic=1005,t.shin=1513,t.shindagesh=64329,t.shindageshhebrew=64329,t.shindageshshindot=64300,t.shindageshshindothebrew=64300,t.shindageshsindot=64301,t.shindageshsindothebrew=64301,t.shindothebrew=1473,t.shinhebrew=1513,t.shinshindot=64298,t.shinshindothebrew=64298,t.shinsindot=64299,t.shinsindothebrew=64299,t.shook=642,t.sigma=963,t.sigma1=962,t.sigmafinal=962,t.sigmalunatesymbolgreek=1010,t.sihiragana=12375,t.sikatakana=12471,t.sikatakanahalfwidth=65404,t.siluqhebrew=1469,t.siluqlefthebrew=1469,t.similar=8764,t.sindothebrew=1474,t.siosacirclekorean=12916,t.siosaparenkorean=12820,t.sioscieuckorean=12670,t.sioscirclekorean=12902,t.sioskiyeokkorean=12666,t.sioskorean=12613,t.siosnieunkorean=12667,t.siosparenkorean=12806,t.siospieupkorean=12669,t.siostikeutkorean=12668,t.six=54,t.sixarabic=1638,t.sixbengali=2540,t.sixcircle=9317,t.sixcircleinversesansserif=10127,t.sixdeva=2412,t.sixgujarati=2796,t.sixgurmukhi=2668,t.sixhackarabic=1638,t.sixhangzhou=12326,t.sixideographicparen=12837,t.sixinferior=8326,t.sixmonospace=65302,t.sixoldstyle=63286,t.sixparen=9337,t.sixperiod=9357,t.sixpersian=1782,t.sixroman=8565,t.sixsuperior=8310,t.sixteencircle=9327,t.sixteencurrencydenominatorbengali=2553,t.sixteenparen=9347,t.sixteenperiod=9367,t.sixthai=3670,t.slash=47,t.slashmonospace=65295,t.slong=383,t.slongdotaccent=7835,t.smileface=9786,t.smonospace=65363,t.sofpasuqhebrew=1475,t.softhyphen=173,t.softsigncyrillic=1100,t.sohiragana=12381,t.sokatakana=12477,t.sokatakanahalfwidth=65407,t.soliduslongoverlaycmb=824,t.solidusshortoverlaycmb=823,t.sorusithai=3625,t.sosalathai=3624,t.sosothai=3595,t.sosuathai=3626,t.space=32,t.spacehackarabic=32,t.spade=9824,t.spadesuitblack=9824,t.spadesuitwhite=9828,t.sparen=9390,t.squarebelowcmb=827,t.squarecc=13252,t.squarecm=13213,t.squarediagonalcrosshatchfill=9641,t.squarehorizontalfill=9636,t.squarekg=13199,t.squarekm=13214,t.squarekmcapital=13262,t.squareln=13265,t.squarelog=13266,t.squaremg=13198,t.squaremil=13269,t.squaremm=13212,t.squaremsquared=13217,t.squareorthogonalcrosshatchfill=9638,t.squareupperlefttolowerrightfill=9639,t.squareupperrighttolowerleftfill=9640,t.squareverticalfill=9637,t.squarewhitewithsmallblack=9635,t.srsquare=13275,t.ssabengali=2487,t.ssadeva=2359,t.ssagujarati=2743,t.ssangcieuckorean=12617,t.ssanghieuhkorean=12677,t.ssangieungkorean=12672,t.ssangkiyeokkorean=12594,t.ssangnieunkorean=12645,t.ssangpieupkorean=12611,t.ssangsioskorean=12614,t.ssangtikeutkorean=12600,t.ssuperior=63218,t.sterling=163,t.sterlingmonospace=65505,t.strokelongoverlaycmb=822,t.strokeshortoverlaycmb=821,t.subset=8834,t.subsetnotequal=8842,t.subsetorequal=8838,t.succeeds=8827,t.suchthat=8715,t.suhiragana=12377,t.sukatakana=12473,t.sukatakanahalfwidth=65405,t.sukunarabic=1618,t.summation=8721,t.sun=9788,t.superset=8835,t.supersetnotequal=8843,t.supersetorequal=8839,t.svsquare=13276,t.syouwaerasquare=13180,t.t=116,t.tabengali=2468,t.tackdown=8868,t.tackleft=8867,t.tadeva=2340,t.tagujarati=2724,t.tagurmukhi=2596,t.taharabic=1591,t.tahfinalarabic=65218,t.tahinitialarabic=65219,t.tahiragana=12383,t.tahmedialarabic=65220,t.taisyouerasquare=13181,t.takatakana=12479,t.takatakanahalfwidth=65408,t.tatweelarabic=1600,t.tau=964,t.tav=1514,t.tavdages=64330,t.tavdagesh=64330,t.tavdageshhebrew=64330,t.tavhebrew=1514,t.tbar=359,t.tbopomofo=12554,t.tcaron=357,t.tccurl=680,t.tcedilla=355,t.tcheharabic=1670,t.tchehfinalarabic=64379,t.tchehinitialarabic=64380,t.tchehmedialarabic=64381,t.tcircle=9443,t.tcircumflexbelow=7793,t.tcommaaccent=355,t.tdieresis=7831,t.tdotaccent=7787,t.tdotbelow=7789,t.tecyrillic=1090,t.tedescendercyrillic=1197,t.teharabic=1578,t.tehfinalarabic=65174,t.tehhahinitialarabic=64674,t.tehhahisolatedarabic=64524,t.tehinitialarabic=65175,t.tehiragana=12390,t.tehjeeminitialarabic=64673,t.tehjeemisolatedarabic=64523,t.tehmarbutaarabic=1577,t.tehmarbutafinalarabic=65172,t.tehmedialarabic=65176,t.tehmeeminitialarabic=64676,t.tehmeemisolatedarabic=64526,t.tehnoonfinalarabic=64627,t.tekatakana=12486,t.tekatakanahalfwidth=65411,t.telephone=8481,t.telephoneblack=9742,t.telishagedolahebrew=1440,t.telishaqetanahebrew=1449,t.tencircle=9321,t.tenideographicparen=12841,t.tenparen=9341,t.tenperiod=9361,t.tenroman=8569,t.tesh=679,t.tet=1496,t.tetdagesh=64312,t.tetdageshhebrew=64312,t.tethebrew=1496,t.tetsecyrillic=1205,t.tevirhebrew=1435,t.tevirlefthebrew=1435,t.thabengali=2469,t.thadeva=2341,t.thagujarati=2725,t.thagurmukhi=2597,t.thalarabic=1584,t.thalfinalarabic=65196,t.thanthakhatlowleftthai=63640,t.thanthakhatlowrightthai=63639,t.thanthakhatthai=3660,t.thanthakhatupperleftthai=63638,t.theharabic=1579,t.thehfinalarabic=65178,t.thehinitialarabic=65179,t.thehmedialarabic=65180,t.thereexists=8707,t.therefore=8756,t.theta=952,t.theta1=977,t.thetasymbolgreek=977,t.thieuthacirclekorean=12921,t.thieuthaparenkorean=12825,t.thieuthcirclekorean=12907,t.thieuthkorean=12620,t.thieuthparenkorean=12811,t.thirteencircle=9324,t.thirteenparen=9344,t.thirteenperiod=9364,t.thonangmonthothai=3601,t.thook=429,t.thophuthaothai=3602,t.thorn=254,t.thothahanthai=3607,t.thothanthai=3600,t.thothongthai=3608,t.thothungthai=3606,t.thousandcyrillic=1154,t.thousandsseparatorarabic=1644,t.thousandsseparatorpersian=1644,t.three=51,t.threearabic=1635,t.threebengali=2537,t.threecircle=9314,t.threecircleinversesansserif=10124,t.threedeva=2409,t.threeeighths=8540,t.threegujarati=2793,t.threegurmukhi=2665,t.threehackarabic=1635,t.threehangzhou=12323,t.threeideographicparen=12834,t.threeinferior=8323,t.threemonospace=65299,t.threenumeratorbengali=2550,t.threeoldstyle=63283,t.threeparen=9334,t.threeperiod=9354,t.threepersian=1779,t.threequarters=190,t.threequartersemdash=63198,t.threeroman=8562,t.threesuperior=179,t.threethai=3667,t.thzsquare=13204,t.tihiragana=12385,t.tikatakana=12481,t.tikatakanahalfwidth=65409,t.tikeutacirclekorean=12912,t.tikeutaparenkorean=12816,t.tikeutcirclekorean=12898,t.tikeutkorean=12599,t.tikeutparenkorean=12802,t.tilde=732,t.tildebelowcmb=816,t.tildecmb=771,t.tildecomb=771,t.tildedoublecmb=864,t.tildeoperator=8764,t.tildeoverlaycmb=820,t.tildeverticalcmb=830,t.timescircle=8855,t.tipehahebrew=1430,t.tipehalefthebrew=1430,t.tippigurmukhi=2672,t.titlocyrilliccmb=1155,t.tiwnarmenian=1407,t.tlinebelow=7791,t.tmonospace=65364,t.toarmenian=1385,t.tohiragana=12392,t.tokatakana=12488,t.tokatakanahalfwidth=65412,t.tonebarextrahighmod=741,t.tonebarextralowmod=745,t.tonebarhighmod=742,t.tonebarlowmod=744,t.tonebarmidmod=743,t.tonefive=445,t.tonesix=389,t.tonetwo=424,t.tonos=900,t.tonsquare=13095,t.topatakthai=3599,t.tortoiseshellbracketleft=12308,t.tortoiseshellbracketleftsmall=65117,t.tortoiseshellbracketleftvertical=65081,t.tortoiseshellbracketright=12309,t.tortoiseshellbracketrightsmall=65118,t.tortoiseshellbracketrightvertical=65082,t.totaothai=3605,t.tpalatalhook=427,t.tparen=9391,t.trademark=8482,t.trademarksans=63722,t.trademarkserif=63195,t.tretroflexhook=648,t.triagdn=9660,t.triaglf=9668,t.triagrt=9658,t.triagup=9650,t.ts=678,t.tsadi=1510,t.tsadidagesh=64326,t.tsadidageshhebrew=64326,t.tsadihebrew=1510,t.tsecyrillic=1094,t.tsere=1461,t.tsere12=1461,t.tsere1e=1461,t.tsere2b=1461,t.tserehebrew=1461,t.tserenarrowhebrew=1461,t.tserequarterhebrew=1461,t.tserewidehebrew=1461,t.tshecyrillic=1115,t.tsuperior=63219,t.ttabengali=2463,t.ttadeva=2335,t.ttagujarati=2719,t.ttagurmukhi=2591,t.tteharabic=1657,t.ttehfinalarabic=64359,t.ttehinitialarabic=64360,t.ttehmedialarabic=64361,t.tthabengali=2464,t.tthadeva=2336,t.tthagujarati=2720,t.tthagurmukhi=2592,t.tturned=647,t.tuhiragana=12388,t.tukatakana=12484,t.tukatakanahalfwidth=65410,t.tusmallhiragana=12387,t.tusmallkatakana=12483,t.tusmallkatakanahalfwidth=65391,t.twelvecircle=9323,t.twelveparen=9343,t.twelveperiod=9363,t.twelveroman=8571,t.twentycircle=9331,t.twentyhangzhou=21316,t.twentyparen=9351,t.twentyperiod=9371,t.two=50,t.twoarabic=1634,t.twobengali=2536,t.twocircle=9313,t.twocircleinversesansserif=10123,t.twodeva=2408,t.twodotenleader=8229,t.twodotleader=8229,t.twodotleadervertical=65072,t.twogujarati=2792,t.twogurmukhi=2664,t.twohackarabic=1634,t.twohangzhou=12322,t.twoideographicparen=12833,t.twoinferior=8322,t.twomonospace=65298,t.twonumeratorbengali=2549,t.twooldstyle=63282,t.twoparen=9333,t.twoperiod=9353,t.twopersian=1778,t.tworoman=8561,t.twostroke=443,t.twosuperior=178,t.twothai=3666,t.twothirds=8532,t.u=117,t.uacute=250,t.ubar=649,t.ubengali=2441,t.ubopomofo=12584,t.ubreve=365,t.ucaron=468,t.ucircle=9444,t.ucircumflex=251,t.ucircumflexbelow=7799,t.ucyrillic=1091,t.udattadeva=2385,t.udblacute=369,t.udblgrave=533,t.udeva=2313,t.udieresis=252,t.udieresisacute=472,t.udieresisbelow=7795,t.udieresiscaron=474,t.udieresiscyrillic=1265,t.udieresisgrave=476,t.udieresismacron=470,t.udotbelow=7909,t.ugrave=249,t.ugujarati=2697,t.ugurmukhi=2569,t.uhiragana=12358,t.uhookabove=7911,t.uhorn=432,t.uhornacute=7913,t.uhorndotbelow=7921,t.uhorngrave=7915,t.uhornhookabove=7917,t.uhorntilde=7919,t.uhungarumlaut=369,t.uhungarumlautcyrillic=1267,t.uinvertedbreve=535,t.ukatakana=12454,t.ukatakanahalfwidth=65395,t.ukcyrillic=1145,t.ukorean=12636,t.umacron=363,t.umacroncyrillic=1263,t.umacrondieresis=7803,t.umatragurmukhi=2625,t.umonospace=65365,t.underscore=95,t.underscoredbl=8215,t.underscoremonospace=65343,t.underscorevertical=65075,t.underscorewavy=65103,t.union=8746,t.universal=8704,t.uogonek=371,t.uparen=9392,t.upblock=9600,t.upperdothebrew=1476,t.upsilon=965,t.upsilondieresis=971,t.upsilondieresistonos=944,t.upsilonlatin=650,t.upsilontonos=973,t.uptackbelowcmb=797,t.uptackmod=724,t.uragurmukhi=2675,t.uring=367,t.ushortcyrillic=1118,t.usmallhiragana=12357,t.usmallkatakana=12453,t.usmallkatakanahalfwidth=65385,t.ustraightcyrillic=1199,t.ustraightstrokecyrillic=1201,t.utilde=361,t.utildeacute=7801,t.utildebelow=7797,t.uubengali=2442,t.uudeva=2314,t.uugujarati=2698,t.uugurmukhi=2570,t.uumatragurmukhi=2626,t.uuvowelsignbengali=2498,t.uuvowelsigndeva=2370,t.uuvowelsigngujarati=2754,t.uvowelsignbengali=2497,t.uvowelsigndeva=2369,t.uvowelsigngujarati=2753,t.v=118,t.vadeva=2357,t.vagujarati=2741,t.vagurmukhi=2613,t.vakatakana=12535,t.vav=1493,t.vavdagesh=64309,t.vavdagesh65=64309,t.vavdageshhebrew=64309,t.vavhebrew=1493,t.vavholam=64331,t.vavholamhebrew=64331,t.vavvavhebrew=1520,t.vavyodhebrew=1521,t.vcircle=9445,t.vdotbelow=7807,t.vecyrillic=1074,t.veharabic=1700,t.vehfinalarabic=64363,t.vehinitialarabic=64364,t.vehmedialarabic=64365,t.vekatakana=12537,t.venus=9792,t.verticalbar=124,t.verticallineabovecmb=781,t.verticallinebelowcmb=809,t.verticallinelowmod=716,t.verticallinemod=712,t.vewarmenian=1406,t.vhook=651,t.vikatakana=12536,t.viramabengali=2509,t.viramadeva=2381,t.viramagujarati=2765,t.visargabengali=2435,t.visargadeva=2307,t.visargagujarati=2691,t.vmonospace=65366,t.voarmenian=1400,t.voicediterationhiragana=12446,t.voicediterationkatakana=12542,t.voicedmarkkana=12443,t.voicedmarkkanahalfwidth=65438,t.vokatakana=12538,t.vparen=9393,t.vtilde=7805,t.vturned=652,t.vuhiragana=12436,t.vukatakana=12532,t.w=119,t.wacute=7811,t.waekorean=12633,t.wahiragana=12431,t.wakatakana=12527,t.wakatakanahalfwidth=65436,t.wakorean=12632,t.wasmallhiragana=12430,t.wasmallkatakana=12526,t.wattosquare=13143,t.wavedash=12316,t.wavyunderscorevertical=65076,t.wawarabic=1608,t.wawfinalarabic=65262,t.wawhamzaabovearabic=1572,t.wawhamzaabovefinalarabic=65158,t.wbsquare=13277,t.wcircle=9446,t.wcircumflex=373,t.wdieresis=7813,t.wdotaccent=7815,t.wdotbelow=7817,t.wehiragana=12433,t.weierstrass=8472,t.wekatakana=12529,t.wekorean=12638,t.weokorean=12637,t.wgrave=7809,t.whitebullet=9702,t.whitecircle=9675,t.whitecircleinverse=9689,t.whitecornerbracketleft=12302,t.whitecornerbracketleftvertical=65091,t.whitecornerbracketright=12303,t.whitecornerbracketrightvertical=65092,t.whitediamond=9671,t.whitediamondcontainingblacksmalldiamond=9672,t.whitedownpointingsmalltriangle=9663,t.whitedownpointingtriangle=9661,t.whiteleftpointingsmalltriangle=9667,t.whiteleftpointingtriangle=9665,t.whitelenticularbracketleft=12310,t.whitelenticularbracketright=12311,t.whiterightpointingsmalltriangle=9657,t.whiterightpointingtriangle=9655,t.whitesmallsquare=9643,t.whitesmilingface=9786,t.whitesquare=9633,t.whitestar=9734,t.whitetelephone=9743,t.whitetortoiseshellbracketleft=12312,t.whitetortoiseshellbracketright=12313,t.whiteuppointingsmalltriangle=9653,t.whiteuppointingtriangle=9651,t.wihiragana=12432,t.wikatakana=12528,t.wikorean=12639,t.wmonospace=65367,t.wohiragana=12434,t.wokatakana=12530,t.wokatakanahalfwidth=65382,t.won=8361,t.wonmonospace=65510,t.wowaenthai=3623,t.wparen=9394,t.wring=7832,t.wsuperior=695,t.wturned=653,t.wynn=447,t.x=120,t.xabovecmb=829,t.xbopomofo=12562,t.xcircle=9447,t.xdieresis=7821,t.xdotaccent=7819,t.xeharmenian=1389,t.xi=958,t.xmonospace=65368,t.xparen=9395,t.xsuperior=739,t.y=121,t.yaadosquare=13134,t.yabengali=2479,t.yacute=253,t.yadeva=2351,t.yaekorean=12626,t.yagujarati=2735,t.yagurmukhi=2607,t.yahiragana=12420,t.yakatakana=12516,t.yakatakanahalfwidth=65428,t.yakorean=12625,t.yamakkanthai=3662,t.yasmallhiragana=12419,t.yasmallkatakana=12515,t.yasmallkatakanahalfwidth=65388,t.yatcyrillic=1123,t.ycircle=9448,t.ycircumflex=375,t.ydieresis=255,t.ydotaccent=7823,t.ydotbelow=7925,t.yeharabic=1610,t.yehbarreearabic=1746,t.yehbarreefinalarabic=64431,t.yehfinalarabic=65266,t.yehhamzaabovearabic=1574,t.yehhamzaabovefinalarabic=65162,t.yehhamzaaboveinitialarabic=65163,t.yehhamzaabovemedialarabic=65164,t.yehinitialarabic=65267,t.yehmedialarabic=65268,t.yehmeeminitialarabic=64733,t.yehmeemisolatedarabic=64600,t.yehnoonfinalarabic=64660,t.yehthreedotsbelowarabic=1745,t.yekorean=12630,t.yen=165,t.yenmonospace=65509,t.yeokorean=12629,t.yeorinhieuhkorean=12678,t.yerahbenyomohebrew=1450,t.yerahbenyomolefthebrew=1450,t.yericyrillic=1099,t.yerudieresiscyrillic=1273,t.yesieungkorean=12673,t.yesieungpansioskorean=12675,t.yesieungsioskorean=12674,t.yetivhebrew=1434,t.ygrave=7923,t.yhook=436,t.yhookabove=7927,t.yiarmenian=1397,t.yicyrillic=1111,t.yikorean=12642,t.yinyang=9775,t.yiwnarmenian=1410,t.ymonospace=65369,t.yod=1497,t.yoddagesh=64313,t.yoddageshhebrew=64313,t.yodhebrew=1497,t.yodyodhebrew=1522,t.yodyodpatahhebrew=64287,t.yohiragana=12424,t.yoikorean=12681,t.yokatakana=12520,t.yokatakanahalfwidth=65430,t.yokorean=12635,t.yosmallhiragana=12423,t.yosmallkatakana=12519,t.yosmallkatakanahalfwidth=65390,t.yotgreek=1011,t.yoyaekorean=12680,t.yoyakorean=12679,t.yoyakthai=3618,t.yoyingthai=3597,t.yparen=9396,t.ypogegrammeni=890,t.ypogegrammenigreekcmb=837,t.yr=422,t.yring=7833,t.ysuperior=696,t.ytilde=7929,t.yturned=654,t.yuhiragana=12422,t.yuikorean=12684,t.yukatakana=12518,t.yukatakanahalfwidth=65429,t.yukorean=12640,t.yusbigcyrillic=1131,t.yusbigiotifiedcyrillic=1133,t.yuslittlecyrillic=1127,t.yuslittleiotifiedcyrillic=1129,t.yusmallhiragana=12421,t.yusmallkatakana=12517,t.yusmallkatakanahalfwidth=65389,t.yuyekorean=12683,t.yuyeokorean=12682,t.yyabengali=2527,t.yyadeva=2399,t.z=122,t.zaarmenian=1382,t.zacute=378,t.zadeva=2395,t.zagurmukhi=2651,t.zaharabic=1592,t.zahfinalarabic=65222,t.zahinitialarabic=65223,t.zahiragana=12374,t.zahmedialarabic=65224,t.zainarabic=1586,t.zainfinalarabic=65200,t.zakatakana=12470,t.zaqefgadolhebrew=1429,t.zaqefqatanhebrew=1428,t.zarqahebrew=1432,t.zayin=1494,t.zayindagesh=64310,t.zayindageshhebrew=64310,t.zayinhebrew=1494,t.zbopomofo=12567,t.zcaron=382,t.zcircle=9449,t.zcircumflex=7825,t.zcurl=657,t.zdot=380,t.zdotaccent=380,t.zdotbelow=7827,t.zecyrillic=1079,t.zedescendercyrillic=1177,t.zedieresiscyrillic=1247,t.zehiragana=12380,t.zekatakana=12476,t.zero=48,t.zeroarabic=1632,t.zerobengali=2534,t.zerodeva=2406,t.zerogujarati=2790,t.zerogurmukhi=2662,t.zerohackarabic=1632,t.zeroinferior=8320,t.zeromonospace=65296,t.zerooldstyle=63280,t.zeropersian=1776,t.zerosuperior=8304,t.zerothai=3664,t.zerowidthjoiner=65279,t.zerowidthnonjoiner=8204,t.zerowidthspace=8203,t.zeta=950,t.zhbopomofo=12563,t.zhearmenian=1386,t.zhebrevecyrillic=1218,t.zhecyrillic=1078,t.zhedescendercyrillic=1175,t.zhedieresiscyrillic=1245,t.zihiragana=12376,t.zikatakana=12472,t.zinorhebrew=1454,t.zlinebelow=7829,t.zmonospace=65370,t.zohiragana=12382,t.zokatakana=12478,t.zparen=9397,t.zretroflexhook=656,t.zstroke=438,t.zuhiragana=12378,t.zukatakana=12474,t[".notdef"]=0,t.angbracketleftbig=9001,t.angbracketleftBig=9001,t.angbracketleftbigg=9001,t.angbracketleftBigg=9001,t.angbracketrightBig=9002,t.angbracketrightbig=9002,t.angbracketrightBigg=9002,t.angbracketrightbigg=9002,t.arrowhookleft=8618,t.arrowhookright=8617,t.arrowlefttophalf=8636,t.arrowleftbothalf=8637,t.arrownortheast=8599,t.arrownorthwest=8598,t.arrowrighttophalf=8640,t.arrowrightbothalf=8641,t.arrowsoutheast=8600,t.arrowsouthwest=8601,t.backslashbig=8726,t.backslashBig=8726,t.backslashBigg=8726,t.backslashbigg=8726,t.bardbl=8214,t.bracehtipdownleft=65079,t.bracehtipdownright=65079,t.bracehtipupleft=65080,t.bracehtipupright=65080,t.braceleftBig=123,t.braceleftbig=123,t.braceleftbigg=123,t.braceleftBigg=123,t.bracerightBig=125,t.bracerightbig=125,t.bracerightbigg=125,t.bracerightBigg=125,t.bracketleftbig=91,t.bracketleftBig=91,t.bracketleftbigg=91,t.bracketleftBigg=91,t.bracketrightBig=93,t.bracketrightbig=93,t.bracketrightbigg=93,t.bracketrightBigg=93,t.ceilingleftbig=8968,t.ceilingleftBig=8968,t.ceilingleftBigg=8968,t.ceilingleftbigg=8968,t.ceilingrightbig=8969,t.ceilingrightBig=8969,t.ceilingrightbigg=8969,t.ceilingrightBigg=8969,t.circledotdisplay=8857,t.circledottext=8857,t.circlemultiplydisplay=8855,t.circlemultiplytext=8855,t.circleplusdisplay=8853,t.circleplustext=8853,t.contintegraldisplay=8750,t.contintegraltext=8750,t.coproductdisplay=8720,t.coproducttext=8720,t.floorleftBig=8970,t.floorleftbig=8970,t.floorleftbigg=8970,t.floorleftBigg=8970,t.floorrightbig=8971,t.floorrightBig=8971,t.floorrightBigg=8971,t.floorrightbigg=8971,t.hatwide=770,t.hatwider=770,t.hatwidest=770,t.intercal=7488,t.integraldisplay=8747,t.integraltext=8747,t.intersectiondisplay=8898,t.intersectiontext=8898,t.logicalanddisplay=8743,t.logicalandtext=8743,t.logicalordisplay=8744,t.logicalortext=8744,t.parenleftBig=40,t.parenleftbig=40,t.parenleftBigg=40,t.parenleftbigg=40,t.parenrightBig=41,t.parenrightbig=41,t.parenrightBigg=41,t.parenrightbigg=41,t.prime=8242,t.productdisplay=8719,t.producttext=8719,t.radicalbig=8730,t.radicalBig=8730,t.radicalBigg=8730,t.radicalbigg=8730,t.radicalbt=8730,t.radicaltp=8730,t.radicalvertex=8730,t.slashbig=47,t.slashBig=47,t.slashBigg=47,t.slashbigg=47,t.summationdisplay=8721,t.summationtext=8721,t.tildewide=732,t.tildewider=732,t.tildewidest=732,t.uniondisplay=8899,t.unionmultidisplay=8846,t.unionmultitext=8846,t.unionsqdisplay=8852,t.unionsqtext=8852,t.uniontext=8899,t.vextenddouble=8741,t.vextendsingle=8739}),a2=ew(function(t){t.space=32,t.a1=9985,t.a2=9986,t.a202=9987,t.a3=9988,t.a4=9742,t.a5=9990,t.a119=9991,t.a118=9992,t.a117=9993,t.a11=9755,t.a12=9758,t.a13=9996,t.a14=9997,t.a15=9998,t.a16=9999,t.a105=1e4,t.a17=10001,t.a18=10002,t.a19=10003,t.a20=10004,t.a21=10005,t.a22=10006,t.a23=10007,t.a24=10008,t.a25=10009,t.a26=10010,t.a27=10011,t.a28=10012,t.a6=10013,t.a7=10014,t.a8=10015,t.a9=10016,t.a10=10017,t.a29=10018,t.a30=10019,t.a31=10020,t.a32=10021,t.a33=10022,t.a34=10023,t.a35=9733,t.a36=10025,t.a37=10026,t.a38=10027,t.a39=10028,t.a40=10029,t.a41=10030,t.a42=10031,t.a43=10032,t.a44=10033,t.a45=10034,t.a46=10035,t.a47=10036,t.a48=10037,t.a49=10038,t.a50=10039,t.a51=10040,t.a52=10041,t.a53=10042,t.a54=10043,t.a55=10044,t.a56=10045,t.a57=10046,t.a58=10047,t.a59=10048,t.a60=10049,t.a61=10050,t.a62=10051,t.a63=10052,t.a64=10053,t.a65=10054,t.a66=10055,t.a67=10056,t.a68=10057,t.a69=10058,t.a70=10059,t.a71=9679,t.a72=10061,t.a73=9632,t.a74=10063,t.a203=10064,t.a75=10065,t.a204=10066,t.a76=9650,t.a77=9660,t.a78=9670,t.a79=10070,t.a81=9687,t.a82=10072,t.a83=10073,t.a84=10074,t.a97=10075,t.a98=10076,t.a99=10077,t.a100=10078,t.a101=10081,t.a102=10082,t.a103=10083,t.a104=10084,t.a106=10085,t.a107=10086,t.a108=10087,t.a112=9827,t.a111=9830,t.a110=9829,t.a109=9824,t.a120=9312,t.a121=9313,t.a122=9314,t.a123=9315,t.a124=9316,t.a125=9317,t.a126=9318,t.a127=9319,t.a128=9320,t.a129=9321,t.a130=10102,t.a131=10103,t.a132=10104,t.a133=10105,t.a134=10106,t.a135=10107,t.a136=10108,t.a137=10109,t.a138=10110,t.a139=10111,t.a140=10112,t.a141=10113,t.a142=10114,t.a143=10115,t.a144=10116,t.a145=10117,t.a146=10118,t.a147=10119,t.a148=10120,t.a149=10121,t.a150=10122,t.a151=10123,t.a152=10124,t.a153=10125,t.a154=10126,t.a155=10127,t.a156=10128,t.a157=10129,t.a158=10130,t.a159=10131,t.a160=10132,t.a161=8594,t.a163=8596,t.a164=8597,t.a196=10136,t.a165=10137,t.a192=10138,t.a166=10139,t.a167=10140,t.a168=10141,t.a169=10142,t.a170=10143,t.a171=10144,t.a172=10145,t.a173=10146,t.a162=10147,t.a174=10148,t.a175=10149,t.a176=10150,t.a177=10151,t.a178=10152,t.a179=10153,t.a193=10154,t.a180=10155,t.a199=10156,t.a181=10157,t.a200=10158,t.a182=10159,t.a201=10161,t.a183=10162,t.a184=10163,t.a197=10164,t.a185=10165,t.a194=10166,t.a198=10167,t.a186=10168,t.a195=10169,t.a187=10170,t.a188=10171,t.a189=10172,t.a190=10173,t.a191=10174,t.a89=10088,t.a90=10089,t.a93=10090,t.a94=10091,t.a91=10092,t.a92=10093,t.a205=10094,t.a85=10095,t.a206=10096,t.a86=10097,t.a87=10098,t.a88=10099,t.a95=10100,t.a96=10101,t[".notdef"]=0}),a9=ew(function(t){t[63721]=169,t[63193]=169,t[63720]=174,t[63194]=174,t[63722]=8482,t[63195]=8482,t[63729]=9127,t[63730]=9128,t[63731]=9129,t[63740]=9131,t[63741]=9132,t[63742]=9133,t[63726]=9121,t[63727]=9122,t[63728]=9123,t[63737]=9124,t[63738]=9125,t[63739]=9126,t[63723]=9115,t[63724]=9116,t[63725]=9117,t[63734]=9118,t[63735]=9119,t[63736]=9120});function a5(t,a){let r=a[t];if(void 0!==r)return r;if(!t)return -1;if("u"===t[0]){let a;let i=t.length;if(7===i&&"n"===t[1]&&"i"===t[2])a=t.substring(3);else{if(!(i>=5&&i<=7))return -1;a=t.substring(1)}if(a===a.toUpperCase()&&(r=parseInt(a,16))>=0)return r}return -1}let a3=[[0,127],[128,255],[256,383],[384,591],[592,687,7424,7551,7552,7615],[688,767,42752,42783],[768,879,7616,7679],[880,1023],[11392,11519],[1024,1279,1280,1327,11744,11775,42560,42655],[1328,1423],[1424,1535],[42240,42559],[1536,1791,1872,1919],[1984,2047],[2304,2431],[2432,2559],[2560,2687],[2688,2815],[2816,2943],[2944,3071],[3072,3199],[3200,3327],[3328,3455],[3584,3711],[3712,3839],[4256,4351,11520,11567],[6912,7039],[4352,4607],[7680,7935,11360,11391,42784,43007],[7936,8191],[8192,8303,11776,11903],[8304,8351],[8352,8399],[8400,8447],[8448,8527],[8528,8591],[8592,8703,10224,10239,10496,10623,11008,11263],[8704,8959,10752,11007,10176,10223,10624,10751],[8960,9215],[9216,9279],[9280,9311],[9312,9471],[9472,9599],[9600,9631],[9632,9727],[9728,9983],[9984,10175],[12288,12351],[12352,12447],[12448,12543,12784,12799],[12544,12591,12704,12735],[12592,12687],[43072,43135],[12800,13055],[13056,13311],[44032,55215],[55296,57343],[67840,67871],[19968,40959,11904,12031,12032,12255,12272,12287,13312,19903,131072,173791,12688,12703],[57344,63743],[12736,12783,63744,64255,194560,195103],[64256,64335],[64336,65023],[65056,65071],[65040,65055],[65104,65135],[65136,65279],[65280,65519],[65520,65535],[3840,4095],[1792,1871],[1920,1983],[3456,3583],[4096,4255],[4608,4991,4992,5023,11648,11743],[5024,5119],[5120,5759],[5760,5791],[5792,5887],[6016,6143],[6144,6319],[10240,10495],[40960,42127],[5888,5919,5920,5951,5952,5983,5984,6015],[66304,66351],[66352,66383],[66560,66639],[118784,119039,119040,119295,119296,119375],[119808,120831],[1044480,1048573],[65024,65039,917760,917999],[917504,917631],[6400,6479],[6480,6527],[6528,6623],[6656,6687],[11264,11359],[11568,11647],[19904,19967],[43008,43055],[65536,65663,65664,65791,65792,65855],[65856,65935],[66432,66463],[66464,66527],[66640,66687],[66688,66735],[67584,67647],[68096,68191],[119552,119647],[73728,74751,74752,74879],[119648,119679],[7040,7103],[7168,7247],[7248,7295],[43136,43231],[43264,43311],[43312,43359],[43520,43615],[65936,65999],[66e3,66047],[66208,66271,66176,66207,67872,67903],[127024,127135,126976,127023]],a6=RegExp("^(\\s)|(\\p{Mn})|(\\p{Cf})$","u"),a7=new Map,a8=[".notdef",".null","nonmarkingreturn","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","Adieresis","Aring","Ccedilla","Eacute","Ntilde","Odieresis","Udieresis","aacute","agrave","acircumflex","adieresis","atilde","aring","ccedilla","eacute","egrave","ecircumflex","edieresis","iacute","igrave","icircumflex","idieresis","ntilde","oacute","ograve","ocircumflex","odieresis","otilde","uacute","ugrave","ucircumflex","udieresis","dagger","degree","cent","sterling","section","bullet","paragraph","germandbls","registered","copyright","trademark","acute","dieresis","notequal","AE","Oslash","infinity","plusminus","lessequal","greaterequal","yen","mu","partialdiff","summation","product","pi","integral","ordfeminine","ordmasculine","Omega","ae","oslash","questiondown","exclamdown","logicalnot","radical","florin","approxequal","Delta","guillemotleft","guillemotright","ellipsis","nonbreakingspace","Agrave","Atilde","Otilde","OE","oe","endash","emdash","quotedblleft","quotedblright","quoteleft","quoteright","divide","lozenge","ydieresis","Ydieresis","fraction","currency","guilsinglleft","guilsinglright","fi","fl","daggerdbl","periodcentered","quotesinglbase","quotedblbase","perthousand","Acircumflex","Ecircumflex","Aacute","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Oacute","Ocircumflex","apple","Ograve","Uacute","Ucircumflex","Ugrave","dotlessi","circumflex","tilde","macron","breve","dotaccent","ring","cedilla","hungarumlaut","ogonek","caron","Lslash","lslash","Scaron","scaron","Zcaron","zcaron","brokenbar","Eth","eth","Yacute","yacute","Thorn","thorn","minus","multiply","onesuperior","twosuperior","threesuperior","onehalf","onequarter","threequarters","franc","Gbreve","gbreve","Idotaccent","Scedilla","scedilla","Cacute","cacute","Ccaron","ccaron","dcroat"];function a4(t,a){if(void 0!==a[t])return t;let r=a5(t,a);if(-1!==r){for(let t in a)if(a[t]===r)return t}return k("Unable to recover a standard glyph name for: "+t),t}function re(t,a,r){let i,n,s,o;let l=Object.create(null),c=!!(4&t.flags);if(t.isInternalFont)for(n=0,s=a;n<s.length;n++)i=r.indexOf(s[n]),l[n]=i>=0?i:0;else if(t.baseEncodingName)for(n=0,s=a1(t.baseEncodingName);n<s.length;n++)i=r.indexOf(s[n]),l[n]=i>=0?i:0;else if(c)for(n in a)l[n]=a[n];else for(n=0,s=aY;n<s.length;n++)i=r.indexOf(s[n]),l[n]=i>=0?i:0;let h=t.differences;if(h)for(n in h){let t=h[n];if(-1===(i=r.indexOf(t))){o||(o=a0());let a=a4(t,o);a!==t&&(i=r.indexOf(a))}l[n]=i>=0?i:0}return l}function rt(t){return t.replaceAll(/[,_]/g,"-").replaceAll(/\s/g,"")}let ra=ew(t=>{t[8211]=65074,t[8212]=65073,t[8229]=65072,t[8230]=65049,t[12289]=65041,t[12290]=65042,t[12296]=65087,t[12297]=65088,t[12298]=65085,t[12299]=65086,t[12300]=65089,t[12301]=65090,t[12302]=65091,t[12303]=65092,t[12304]=65083,t[12305]=65084,t[12308]=65081,t[12309]=65082,t[12310]=65047,t[12311]=65048,t[65103]=65076,t[65281]=65045,t[65288]=65077,t[65289]=65078,t[65292]=65040,t[65306]=65043,t[65307]=65044,t[65311]=65046,t[65339]=65095,t[65341]=65096,t[65343]=65075,t[65371]=65079,t[65373]=65080});h(1806);let rr=[".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"],ri=[".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"],rn=[".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"],rs=[".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"],ro=[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}],rl=[null,null,null,{id:"and",min:2,stackDelta:-1},{id:"or",min:2,stackDelta:-1},{id:"not",min:1,stackDelta:0},null,null,null,{id:"abs",min:1,stackDelta:0},{id:"add",min:2,stackDelta:-1,stackFn(t,a){t[a-2]=t[a-2]+t[a-1]}},{id:"sub",min:2,stackDelta:-1,stackFn(t,a){t[a-2]=t[a-2]-t[a-1]}},{id:"div",min:2,stackDelta:-1,stackFn(t,a){t[a-2]=t[a-2]/t[a-1]}},null,{id:"neg",min:1,stackDelta:0,stackFn(t,a){t[a-1]=-t[a-1]}},{id:"eq",min:2,stackDelta:-1},null,null,{id:"drop",min:1,stackDelta:-1},null,{id:"put",min:2,stackDelta:-2},{id:"get",min:1,stackDelta:0},{id:"ifelse",min:4,stackDelta:-3},{id:"random",min:0,stackDelta:1},{id:"mul",min:2,stackDelta:-1,stackFn(t,a){t[a-2]=t[a-2]*t[a-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 rc{constructor(t,a,r){this.bytes=t.getBytes(),this.properties=a,this.seacAnalysisEnabled=!!r}parse(){let t,a;let r=this.properties,i=new rh;this.cff=i;let n=this.parseHeader(),s=this.parseIndex(n.endPos),o=this.parseIndex(s.endPos),l=this.parseIndex(o.endPos),c=this.parseIndex(l.endPos),h=this.parseDict(o.obj.get(0)),u=this.createDict(rm,h,i.strings);i.header=n.obj,i.names=this.parseNameIndex(s.obj),i.strings=this.parseStringIndex(l.obj),i.topDict=u,i.globalSubrIndex=c.obj,this.parsePrivateDict(i.topDict),i.isCIDFont=u.hasName("ROS");let f=u.getByName("CharStrings"),d=this.parseIndex(f).obj,g=u.getByName("FontMatrix");g&&(r.fontMatrix=g);let p=u.getByName("FontBBox");if(p&&(r.ascent=Math.max(p[3],p[1]),r.descent=Math.min(p[1],p[3]),r.ascentScaled=!0),i.isCIDFont){let r=this.parseIndex(u.getByName("FDArray")).obj;for(let t=0,a=r.count;t<a;++t){let a=r.get(t),n=this.createDict(rm,this.parseDict(a),i.strings);this.parsePrivateDict(n),i.fdArray.push(n)}a=null,t=this.parseCharsets(u.getByName("charset"),d.count,i.strings,!0),i.fdSelect=this.parseFDSelect(u.getByName("FDSelect"),d.count)}else t=this.parseCharsets(u.getByName("charset"),d.count,i.strings,!1),a=this.parseEncoding(u.getByName("Encoding"),r,i.strings,t.charset);i.charset=t,i.encoding=a;let m=this.parseCharStrings({charStrings:d,localSubrIndex:u.privateDict.subrsIndex,globalSubrIndex:c.obj,fdSelect:i.fdSelect,fdArray:i.fdArray,privateDict:u.privateDict});return i.charStrings=m.charStrings,i.seacs=m.seacs,i.widths=m.widths,i}parseHeader(){let t=this.bytes,a=t.length,r=0;for(;r<a&&1!==t[r];)++r;if(r>=a)throw new N("Invalid CFF header");0!==r&&(k("cff data is shifted"),t=t.subarray(r),this.bytes=t);let i=t[0],n=t[1],s=t[2],o=t[3];return{obj:new ru(i,n,s,o),endPos:s}}parseDict(t){let a=0,r=[],i=[];a=0;let n=t.length;for(;a<n;){let n=t[a];n<=21?(12===n&&(n=n<<8|t[++a]),i.push([n,r]),r=[],++a):r.push(function(){let r=t[a++];return 30===r?function(){let r="",i=["0","1","2","3","4","5","6","7","8","9",".","E","E-",null,"-"],n=t.length;for(;a<n;){let n=t[a++],s=n>>4,o=15&n;if(15===s||(r+=i[s],15===o))break;r+=i[o]}return parseFloat(r)}():28===r?(r=eM(t,a),a+=2,r):29===r?r=(r=(r=(r=t[a++])<<8|t[a++])<<8|t[a++])<<8|t[a++]:r>=32&&r<=246?r-139:r>=247&&r<=250?256*(r-247)+t[a++]+108:r>=251&&r<=254?-256*(r-251)-t[a++]-108:(v('CFFParser_parseDict: "'+r+'" is a reserved command.'),NaN)}())}return i}parseIndex(t){let a=new rd,r=this.bytes,i=r[t++]<<8|r[t++],n=[],s,o,l=t;if(0!==i){let a=r[t++],c=t+(i+1)*a-1;for(s=0,o=i+1;s<o;++s){let i=0;for(let n=0;n<a;++n)i<<=8,i+=r[t++];n.push(c+i)}l=n[i]}for(s=0,o=n.length-1;s<o;++s){let t=n[s],i=n[s+1];a.add(r.subarray(t,i))}return{obj:a,endPos:l}}parseNameIndex(t){let a=[];for(let r=0,i=t.count;r<i;++r){let i=t.get(r);a.push(D(i))}return a}parseStringIndex(t){let a=new rf;for(let r=0,i=t.count;r<i;++r){let i=t.get(r);a.add(D(i))}return a}createDict(t,a,r){let i=new t(r);for(let[t,r]of a)i.setByKey(t,r);return i}parseCharString(t,a,r,i){if(!a||t.callDepth>10)return!1;let n=t.stackSize,s=t.stack,o=a.length;for(let l=0;l<o;){let c=a[l++],h=null;if(12===c){let t=a[l++];0===t?(a[l-2]=139,a[l-1]=22,n=0):h=rl[t]}else if(28===c)s[n]=eM(a,l),l+=2,n++;else if(14===c){if(n>=4&&(n-=4,this.seacAnalysisEnabled))return t.seac=s.slice(n,n+4),!1;h=ro[c]}else if(c>=32&&c<=246)s[n]=c-139,n++;else if(c>=247&&c<=254)s[n]=c<251?(c-247<<8)+a[l]+108:-(c-251<<8)-a[l]-108,l++,n++;else if(255===c)s[n]=(a[l]<<24|a[l+1]<<16|a[l+2]<<8|a[l+3])/65536,l+=4,n++;else if(19===c||20===c){if(t.hints+=n>>1,0===t.hints){a.copyWithin(l-1,l,-1),l-=1,o-=1;continue}l+=t.hints+7>>3,n%=2,h=ro[c]}else{if(10===c||29===c){let a=10===c?r:i;if(!a)return v("Missing subrsIndex for "+(h=ro[c]).id),!1;let o=32768;a.count<1240?o=107:a.count<33900&&(o=1131);let l=s[--n]+o;if(l<0||l>=a.count||isNaN(l))return v("Out of bounds subrIndex for "+(h=ro[c]).id),!1;if(t.stackSize=n,t.callDepth++,!this.parseCharString(t,a.get(l),r,i))return!1;t.callDepth--,n=t.stackSize;continue}if(11===c)return t.stackSize=n,!0;if(0===c&&l===a.length)a[l-1]=14,h=ro[14];else{if(9===c){a.copyWithin(l-1,l,-1),l-=1,o-=1;continue}h=ro[c]}}if(h){if(h.stem&&(t.hints+=n>>1,3===c||23===c?t.hasVStems=!0:t.hasVStems&&(1===c||18===c)&&(v("CFF stem hints are in wrong order"),a[l-1]=1===c?3:23)),"min"in h&&!t.undefStack&&n<h.min){if(v("Not enough parameters for "+h.id+"; actual: "+n+", expected: "+h.min),0===n)return a[l-1]=14,!0;return!1}t.firstStackClearing&&h.stackClearing&&(t.firstStackClearing=!1,(n-=h.min)>=2&&h.stem?n%=2:n>1&&v("Found too many parameters for stack-clearing command"),n>0&&(t.width=s[n-1])),"stackDelta"in h?("stackFn"in h&&h.stackFn(s,n),n+=h.stackDelta):h.stackClearing?n=0:h.resetStack?(n=0,t.undefStack=!1):h.undefStack&&(n=0,t.undefStack=!0,t.firstStackClearing=!1)}}return o<a.length&&a.fill(14,o),t.stackSize=n,!0}parseCharStrings({charStrings:t,localSubrIndex:a,globalSubrIndex:r,fdSelect:i,fdArray:n,privateDict:s}){let o=[],l=[],c=t.count;for(let h=0;h<c;h++){let c=t.get(h),u={callDepth:0,stackSize:0,stack:[],undefStack:!0,hints:0,firstStackClearing:!0,seac:null,width:null,hasVStems:!1},f=!0,d=null,g=s;if(i&&n.length){let t=i.getFDIndex(h);-1===t&&(v("Glyph index is not in fd select."),f=!1),t>=n.length&&(v("Invalid fd index for glyph index."),f=!1),f&&(d=(g=n[t].privateDict).subrsIndex)}else a&&(d=a);if(f&&(f=this.parseCharString(u,c,d,r)),null!==u.width){let t=g.getByName("nominalWidthX");l[h]=t+u.width}else{let t=g.getByName("defaultWidthX");l[h]=t}null!==u.seac&&(o[h]=u.seac),f||t.set(h,new Uint8Array([14]))}return{charStrings:t,seacs:o,widths:l}}emptyPrivateDictionary(t){let a=this.createDict(ry,[],t.strings);t.setByKey(18,[0,0]),t.privateDict=a}parsePrivateDict(t){if(!t.hasName("Private")){this.emptyPrivateDictionary(t);return}let a=t.getByName("Private");if(!Array.isArray(a)||2!==a.length){t.removeByName("Private");return}let r=a[0],i=a[1];if(0===r||i>=this.bytes.length){this.emptyPrivateDictionary(t);return}let n=this.bytes.subarray(i,i+r),s=this.parseDict(n),o=this.createDict(ry,s,t.strings);if(t.privateDict=o,0===o.getByName("ExpansionFactor")&&o.setByName("ExpansionFactor",.06),!o.getByName("Subrs"))return;let l=o.getByName("Subrs"),c=i+l;if(0===l||c>=this.bytes.length){this.emptyPrivateDictionary(t);return}let h=this.parseIndex(c);o.subrsIndex=h.obj}parseCharsets(t,a,r,i){let n,s,o;if(0===t)return new rx(!0,rw.ISO_ADOBE,rr);if(1===t)return new rx(!0,rw.EXPERT,ri);if(2===t)return new rx(!0,rw.EXPERT_SUBSET,rn);let l=this.bytes,c=t,h=l[t++],u=[i?0:".notdef"];switch(a-=1,h){case 0:for(o=0;o<a;o++)n=l[t++]<<8|l[t++],u.push(i?n:r.get(n));break;case 1:for(;u.length<=a;)for(o=0,n=l[t++]<<8|l[t++],s=l[t++];o<=s;o++)u.push(i?n++:r.get(n++));break;case 2:for(;u.length<=a;)for(o=0,n=l[t++]<<8|l[t++],s=l[t++]<<8|l[t++];o<=s;o++)u.push(i?n++:r.get(n++));break;default:throw new N("Unknown charset format")}let f=t,d=l.subarray(c,f);return new rx(!1,h,u,d)}parseEncoding(t,a,r,i){let n=Object.create(null),s=this.bytes,o,l,c,h=!1,u=null;if(0===t||1===t){h=!0,o=t;let a=t?aV:aY;for(l=0,c=i.length;l<c;l++){let t=a.indexOf(i[l]);-1!==t&&(n[t]=l)}}else{let a=t;switch(127&(o=s[t++])){case 0:let c=s[t++];for(l=1;l<=c;l++)n[s[t++]]=l;break;case 1:let h=s[t++],f=1;for(l=0;l<h;l++){let a=s[t++],r=s[t++];for(let t=a;t<=a+r;t++)n[t]=f++}break;default:throw new N(`Unknown encoding format: ${o} in CFF`)}let d=t;128&o&&(s[a]&=127,function(){let a=s[t++];for(l=0;l<a;l++){let a=s[t++],o=(s[t++]<<8)+(255&s[t++]);n[a]=i.indexOf(r.get(o))}}()),u=s.subarray(a,d)}return new rk(h,o&=127,n,u)}parseFDSelect(t,a){let r;let i=this.bytes,n=i[t++],s=[];switch(n){case 0:for(r=0;r<a;++r){let a=i[t++];s.push(a)}break;case 3:let o=i[t++]<<8|i[t++];for(r=0;r<o;++r){let a=i[t++]<<8|i[t++];0===r&&0!==a&&(v("parseFDSelect: The first range must have a first GID of 0 -- trying to recover."),a=0);let n=i[t++],o=i[t]<<8|i[t+1];for(let t=a;t<o;++t)s.push(n)}t+=2;break;default:throw new N(`parseFDSelect: Unknown format "${n}".`)}if(s.length!==a)throw new N("parseFDSelect: Invalid font data.");return new rv(n,s)}}class rh{constructor(){this.header=null,this.names=[],this.topDict=null,this.strings=new rf,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){v("Not enough space in charstrings to duplicate first glyph.");return}let t=this.charStrings.get(0);this.charStrings.add(t),this.isCIDFont&&this.fdSelect.fdSelect.push(this.fdSelect.fdSelect[0])}hasGlyphId(t){return!(t<0)&&!(t>=this.charStrings.count)&&this.charStrings.get(t).length>0}}class ru{constructor(t,a,r,i){this.major=t,this.minor=a,this.hdrSize=r,this.offSize=i}}class rf{constructor(){this.strings=[]}get(t){return t>=0&&t<=390?rs[t]:t-391<=this.strings.length?this.strings[t-391]:rs[0]}getSID(t){let a=rs.indexOf(t);return -1!==a?a:-1!==(a=this.strings.indexOf(t))?a+391:-1}add(t){this.strings.push(t)}get count(){return this.strings.length}}class rd{constructor(){this.objects=[],this.length=0}add(t){this.length+=t.length,this.objects.push(t)}set(t,a){this.length+=a.length-this.objects[t].length,this.objects[t]=a}get(t){return this.objects[t]}get count(){return this.objects.length}}class rg{constructor(t,a){this.keyToNameMap=t.keyToNameMap,this.nameToKeyMap=t.nameToKeyMap,this.defaults=t.defaults,this.types=t.types,this.opcodes=t.opcodes,this.order=t.order,this.strings=a,this.values=Object.create(null)}setByKey(t,a){if(!(t in this.keyToNameMap))return!1;if(0===a.length)return!0;for(let r of a)if(isNaN(r))return v(`Invalid CFFDict value: "${a}" for key "${t}".`),!0;let r=this.types[t];return"num"!==r&&"sid"!==r&&"offset"!==r||(a=a[0]),this.values[t]=a,!0}setByName(t,a){if(!(t in this.nameToKeyMap))throw new N(`Invalid dictionary name "${t}"`);this.values[this.nameToKeyMap[t]]=a}hasName(t){return this.nameToKeyMap[t]in this.values}getByName(t){if(!(t in this.nameToKeyMap))throw new N(`Invalid dictionary name ${t}"`);let a=this.nameToKeyMap[t];return a in this.values?this.values[a]:this.defaults[a]}removeByName(t){delete this.values[this.nameToKeyMap[t]]}static createTables(t){let a={keyToNameMap:{},nameToKeyMap:{},defaults:{},types:{},opcodes:{},order:[]};for(let r of t){let t=Array.isArray(r[0])?(r[0][0]<<8)+r[0][1]:r[0];a.keyToNameMap[t]=r[1],a.nameToKeyMap[r[1]]=t,a.types[t]=r[2],a.defaults[t]=r[3],a.opcodes[t]=Array.isArray(r[0])?r[0]:[r[0]],a.order.push(t)}return a}}let rp=[[[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 rm extends rg{static get tables(){return I(this,"tables",this.createTables(rp))}constructor(t){super(rm.tables,t),this.privateDict=null}}let rb=[[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 ry extends rg{static get tables(){return I(this,"tables",this.createTables(rb))}constructor(t){super(ry.tables,t),this.subrsIndex=null}}let rw={ISO_ADOBE:0,EXPERT:1,EXPERT_SUBSET:2};class rx{constructor(t,a,r,i){this.predefined=t,this.format=a,this.charset=r,this.raw=i}}class rk{constructor(t,a,r,i){this.predefined=t,this.format=a,this.encoding=r,this.raw=i}}class rv{constructor(t,a){this.format=t,this.fdSelect=a}getFDIndex(t){return t<0||t>=this.fdSelect.length?-1:this.fdSelect[t]}}class rA{constructor(){this.offsets=Object.create(null)}isTracking(t){return t in this.offsets}track(t,a){if(t in this.offsets)throw new N(`Already tracking location of ${t}`);this.offsets[t]=a}offset(t){for(let a in this.offsets)this.offsets[a]+=t}setEntryLocation(t,a,r){if(!(t in this.offsets))throw new N(`Not tracking location of ${t}`);let i=r.data,n=this.offsets[t];for(let t=0,r=a.length;t<r;++t){let r=5*t+n,s=r+1,o=r+2,l=r+3,c=r+4;if(29!==i[r]||0!==i[s]||0!==i[o]||0!==i[l]||0!==i[c])throw new N("writing to an offset that is not empty");let h=a[t];i[r]=29,i[s]=h>>24&255,i[o]=h>>16&255,i[l]=h>>8&255,i[c]=255&h}}}class rC{constructor(t){this.cff=t}compile(){let t=this.cff,a={data:[],length:0,add(t){try{this.data.push(...t)}catch{this.data=this.data.concat(t)}this.length=this.data.length}},r=this.compileHeader(t.header);a.add(r);let i=this.compileNameIndex(t.names);if(a.add(i),t.isCIDFont&&t.topDict.hasName("FontMatrix")){let a=t.topDict.getByName("FontMatrix");for(let r of(t.topDict.removeByName("FontMatrix"),t.fdArray)){let t=a.slice(0);r.hasName("FontMatrix")&&(t=j.transform(t,r.getByName("FontMatrix"))),r.setByName("FontMatrix",t)}}let n=t.topDict.getByName("XUID");n?.length>16&&t.topDict.removeByName("XUID"),t.topDict.setByName("charset",0);let s=this.compileTopDicts([t.topDict],a.length,t.isCIDFont);a.add(s.output);let o=s.trackers[0],l=this.compileStringIndex(t.strings.strings);a.add(l);let c=this.compileIndex(t.globalSubrIndex);if(a.add(c),t.encoding&&t.topDict.hasName("Encoding")){if(t.encoding.predefined)o.setEntryLocation("Encoding",[t.encoding.format],a);else{let r=this.compileEncoding(t.encoding);o.setEntryLocation("Encoding",[a.length],a),a.add(r)}}let h=this.compileCharset(t.charset,t.charStrings.count,t.strings,t.isCIDFont);o.setEntryLocation("charset",[a.length],a),a.add(h);let u=this.compileCharStrings(t.charStrings);if(o.setEntryLocation("CharStrings",[a.length],a),a.add(u),t.isCIDFont){o.setEntryLocation("FDSelect",[a.length],a);let r=this.compileFDSelect(t.fdSelect);a.add(r),s=this.compileTopDicts(t.fdArray,a.length,!0),o.setEntryLocation("FDArray",[a.length],a),a.add(s.output);let i=s.trackers;this.compilePrivateDicts(t.fdArray,i,a)}return this.compilePrivateDicts([t.topDict],[o],a),a.add([0]),a.data}encodeNumber(t){return Number.isInteger(t)?this.encodeInteger(t):this.encodeFloat(t)}static get EncodeFloatRegExp(){return I(this,"EncodeFloatRegExp",/\.(\d*?)(?:9{5,20}|0{5,20})\d{0,2}(?:e(.+)|$)/)}encodeFloat(t){let a=t.toString(),r=rC.EncodeFloatRegExp.exec(a);if(r){let i=parseFloat("1e"+((r[2]?+r[2]:0)+r[1].length));a=(Math.round(t*i)/i).toString()}let i,n,s="";for(i=0,n=a.length;i<n;++i){let t=a[i];s+="e"===t?"-"===a[++i]?"c":"b":"."===t?"a":"-"===t?"e":t}s+=1&s.length?"f":"ff";let o=[30];for(i=0,n=s.length;i<n;i+=2)o.push(parseInt(s.substring(i,i+2),16));return o}encodeInteger(t){return t>=-107&&t<=107?[t+139]:t>=108&&t<=1131?[247+((t-=108)>>8),255&t]:t>=-1131&&t<=-108?[251+((t=-t-108)>>8),255&t]:t>=-32768&&t<=32767?[28,t>>8&255,255&t]:[29,t>>24&255,t>>16&255,t>>8&255,255&t]}compileHeader(t){return[t.major,t.minor,4,t.offSize]}compileNameIndex(t){let a=new rd;for(let r of t){let t=Math.min(r.length,127),i=Array(t);for(let a=0;a<t;a++){let t=r[a];(t<"!"||t>"~"||"["===t||"]"===t||"("===t||")"===t||"{"===t||"}"===t||"<"===t||">"===t||"/"===t||"%"===t)&&(t="_"),i[a]=t}""===(i=i.join(""))&&(i="Bad_Font_Name"),a.add(E(i))}return this.compileIndex(a)}compileTopDicts(t,a,r){let i=[],n=new rd;for(let s of t){r&&(s.removeByName("CIDFontVersion"),s.removeByName("CIDFontRevision"),s.removeByName("CIDFontType"),s.removeByName("CIDCount"),s.removeByName("UIDBase"));let t=new rA,o=this.compileDict(s,t);i.push(t),n.add(o),t.offset(a)}return n=this.compileIndex(n,i),{trackers:i,output:n}}compilePrivateDicts(t,a,r){for(let i=0,n=t.length;i<n;++i){let n=t[i],s=n.privateDict;if(!s||!n.hasName("Private"))throw new N("There must be a private dictionary.");let o=new rA,l=this.compileDict(s,o),c=r.length;if(o.offset(c),l.length||(c=0),a[i].setEntryLocation("Private",[l.length,c],r),r.add(l),s.subrsIndex&&s.hasName("Subrs")){let t=this.compileIndex(s.subrsIndex);o.setEntryLocation("Subrs",[l.length],r),r.add(t)}}}compileDict(t,a){let r=[];for(let i of t.order){if(!(i in t.values))continue;let n=t.values[i],s=t.types[i];if(Array.isArray(s)||(s=[s]),Array.isArray(n)||(n=[n]),0!==n.length){for(let o=0,l=s.length;o<l;++o){let l=s[o],c=n[o];switch(l){case"num":case"sid":r.push(...this.encodeNumber(c));break;case"offset":let h=t.keyToNameMap[i];a.isTracking(h)||a.track(h,r.length),r.push(29,0,0,0,0);break;case"array":case"delta":r.push(...this.encodeNumber(c));for(let t=1,a=n.length;t<a;++t)r.push(...this.encodeNumber(n[t]));break;default:throw new N(`Unknown data type of ${l}`)}}r.push(...t.opcodes[i])}}return r}compileStringIndex(t){let a=new rd;for(let r of t)a.add(E(r));return this.compileIndex(a)}compileCharStrings(t){let a=new rd;for(let r=0;r<t.count;r++){let i=t.get(r);0!==i.length?a.add(i):a.add(new Uint8Array([139,14]))}return this.compileIndex(a)}compileCharset(t,a,r,i){let n;let s=a-1;if(i){let t=s-1;n=new Uint8Array([2,0,1,t>>8&255,255&t])}else{(n=new Uint8Array(1+2*s))[0]=0;let a=0,i=t.charset.length,o=!1;for(let s=1;s<n.length;s+=2){let l=0;if(a<i){let i=t.charset[a++];-1!==(l=r.getSID(i))||(l=0,o||(o=!0,v(`Couldn't find ${i} in CFF strings`)))}n[s]=l>>8&255,n[s+1]=255&l}}return this.compileTypedArray(n)}compileEncoding(t){return this.compileTypedArray(t.raw)}compileFDSelect(t){let a,r;let i=t.format;switch(i){case 0:for(r=0,(a=new Uint8Array(1+t.fdSelect.length))[0]=i;r<t.fdSelect.length;r++)a[r+1]=t.fdSelect[r];break;case 3:let n=t.fdSelect[0],s=[i,0,0,0,0,n];for(r=1;r<t.fdSelect.length;r++){let a=t.fdSelect[r];a!==n&&(s.push(r>>8&255,255&r,a),n=a)}let o=(s.length-3)/3;s[1]=o>>8&255,s[2]=255&o,s.push(r>>8&255,255&r),a=new Uint8Array(s)}return this.compileTypedArray(a)}compileTypedArray(t){return Array.from(t)}compileIndex(t,a=[]){let r=t.objects,i=r.length;if(0===i)return[0,0];let n=[i>>8&255,255&i],s,o,l=1;for(s=0;s<i;++s)l+=r[s].length;n.push(o=l<256?1:l<65536?2:l<16777216?3:4);let c=1;for(s=0;s<i+1;s++)1===o?n.push(255&c):2===o?n.push(c>>8&255,255&c):3===o?n.push(c>>16&255,c>>8&255,255&c):n.push(c>>>24&255,c>>16&255,c>>8&255,255&c),r[s]&&(c+=r[s].length);for(s=0;s<i;s++)a[s]&&a[s].offset(n.length),n.push(...r[s]);return n}}let rS=ew(function(t){t["Times-Roman"]="Times-Roman",t.Helvetica="Helvetica",t.Courier="Courier",t.Symbol="Symbol",t["Times-Bold"]="Times-Bold",t["Helvetica-Bold"]="Helvetica-Bold",t["Courier-Bold"]="Courier-Bold",t.ZapfDingbats="ZapfDingbats",t["Times-Italic"]="Times-Italic",t["Helvetica-Oblique"]="Helvetica-Oblique",t["Courier-Oblique"]="Courier-Oblique",t["Times-BoldItalic"]="Times-BoldItalic",t["Helvetica-BoldOblique"]="Helvetica-BoldOblique",t["Courier-BoldOblique"]="Courier-BoldOblique",t.ArialNarrow="Helvetica",t["ArialNarrow-Bold"]="Helvetica-Bold",t["ArialNarrow-BoldItalic"]="Helvetica-BoldOblique",t["ArialNarrow-Italic"]="Helvetica-Oblique",t.ArialBlack="Helvetica",t["ArialBlack-Bold"]="Helvetica-Bold",t["ArialBlack-BoldItalic"]="Helvetica-BoldOblique",t["ArialBlack-Italic"]="Helvetica-Oblique",t["Arial-Black"]="Helvetica",t["Arial-Black-Bold"]="Helvetica-Bold",t["Arial-Black-BoldItalic"]="Helvetica-BoldOblique",t["Arial-Black-Italic"]="Helvetica-Oblique",t.Arial="Helvetica",t["Arial-Bold"]="Helvetica-Bold",t["Arial-BoldItalic"]="Helvetica-BoldOblique",t["Arial-Italic"]="Helvetica-Oblique",t.ArialMT="Helvetica",t["Arial-BoldItalicMT"]="Helvetica-BoldOblique",t["Arial-BoldMT"]="Helvetica-Bold",t["Arial-ItalicMT"]="Helvetica-Oblique",t["Arial-BoldItalicMT-BoldItalic"]="Helvetica-BoldOblique",t["Arial-BoldMT-Bold"]="Helvetica-Bold",t["Arial-ItalicMT-Italic"]="Helvetica-Oblique",t.ArialUnicodeMS="Helvetica",t["ArialUnicodeMS-Bold"]="Helvetica-Bold",t["ArialUnicodeMS-BoldItalic"]="Helvetica-BoldOblique",t["ArialUnicodeMS-Italic"]="Helvetica-Oblique",t["Courier-BoldItalic"]="Courier-BoldOblique",t["Courier-Italic"]="Courier-Oblique",t.CourierNew="Courier",t["CourierNew-Bold"]="Courier-Bold",t["CourierNew-BoldItalic"]="Courier-BoldOblique",t["CourierNew-Italic"]="Courier-Oblique",t["CourierNewPS-BoldItalicMT"]="Courier-BoldOblique",t["CourierNewPS-BoldMT"]="Courier-Bold",t["CourierNewPS-ItalicMT"]="Courier-Oblique",t.CourierNewPSMT="Courier",t["Helvetica-BoldItalic"]="Helvetica-BoldOblique",t["Helvetica-Italic"]="Helvetica-Oblique",t["HelveticaLTStd-Bold"]="Helvetica-Bold",t["Symbol-Bold"]="Symbol",t["Symbol-BoldItalic"]="Symbol",t["Symbol-Italic"]="Symbol",t.TimesNewRoman="Times-Roman",t["TimesNewRoman-Bold"]="Times-Bold",t["TimesNewRoman-BoldItalic"]="Times-BoldItalic",t["TimesNewRoman-Italic"]="Times-Italic",t.TimesNewRomanPS="Times-Roman",t["TimesNewRomanPS-Bold"]="Times-Bold",t["TimesNewRomanPS-BoldItalic"]="Times-BoldItalic",t["TimesNewRomanPS-BoldItalicMT"]="Times-BoldItalic",t["TimesNewRomanPS-BoldMT"]="Times-Bold",t["TimesNewRomanPS-Italic"]="Times-Italic",t["TimesNewRomanPS-ItalicMT"]="Times-Italic",t.TimesNewRomanPSMT="Times-Roman",t["TimesNewRomanPSMT-Bold"]="Times-Bold",t["TimesNewRomanPSMT-BoldItalic"]="Times-BoldItalic",t["TimesNewRomanPSMT-Italic"]="Times-Italic"}),rI=ew(function(t){t.Courier="FoxitFixed.pfb",t["Courier-Bold"]="FoxitFixedBold.pfb",t["Courier-BoldOblique"]="FoxitFixedBoldItalic.pfb",t["Courier-Oblique"]="FoxitFixedItalic.pfb",t.Helvetica="LiberationSans-Regular.ttf",t["Helvetica-Bold"]="LiberationSans-Bold.ttf",t["Helvetica-BoldOblique"]="LiberationSans-BoldItalic.ttf",t["Helvetica-Oblique"]="LiberationSans-Italic.ttf",t["Times-Roman"]="FoxitSerif.pfb",t["Times-Bold"]="FoxitSerifBold.pfb",t["Times-BoldItalic"]="FoxitSerifBoldItalic.pfb",t["Times-Italic"]="FoxitSerifItalic.pfb",t.Symbol="FoxitSymbol.pfb",t.ZapfDingbats="FoxitDingbats.pfb",t["LiberationSans-Regular"]="LiberationSans-Regular.ttf",t["LiberationSans-Bold"]="LiberationSans-Bold.ttf",t["LiberationSans-Italic"]="LiberationSans-Italic.ttf",t["LiberationSans-BoldItalic"]="LiberationSans-BoldItalic.ttf"}),rT=ew(function(t){t.Calibri="Helvetica",t["Calibri-Bold"]="Helvetica-Bold",t["Calibri-BoldItalic"]="Helvetica-BoldOblique",t["Calibri-Italic"]="Helvetica-Oblique",t.CenturyGothic="Helvetica",t["CenturyGothic-Bold"]="Helvetica-Bold",t["CenturyGothic-BoldItalic"]="Helvetica-BoldOblique",t["CenturyGothic-Italic"]="Helvetica-Oblique",t.ComicSansMS="Comic Sans MS",t["ComicSansMS-Bold"]="Comic Sans MS-Bold",t["ComicSansMS-BoldItalic"]="Comic Sans MS-BoldItalic",t["ComicSansMS-Italic"]="Comic Sans MS-Italic",t.GillSansMT="Helvetica",t["GillSansMT-Bold"]="Helvetica-Bold",t["GillSansMT-BoldItalic"]="Helvetica-BoldOblique",t["GillSansMT-Italic"]="Helvetica-Oblique",t.Impact="Helvetica",t["ItcSymbol-Bold"]="Helvetica-Bold",t["ItcSymbol-BoldItalic"]="Helvetica-BoldOblique",t["ItcSymbol-Book"]="Helvetica",t["ItcSymbol-BookItalic"]="Helvetica-Oblique",t["ItcSymbol-Medium"]="Helvetica",t["ItcSymbol-MediumItalic"]="Helvetica-Oblique",t.LucidaConsole="Courier",t["LucidaConsole-Bold"]="Courier-Bold",t["LucidaConsole-BoldItalic"]="Courier-BoldOblique",t["LucidaConsole-Italic"]="Courier-Oblique",t["LucidaSans-Demi"]="Helvetica-Bold",t["MS-Gothic"]="MS Gothic",t["MS-Gothic-Bold"]="MS Gothic-Bold",t["MS-Gothic-BoldItalic"]="MS Gothic-BoldItalic",t["MS-Gothic-Italic"]="MS Gothic-Italic",t["MS-Mincho"]="MS Mincho",t["MS-Mincho-Bold"]="MS Mincho-Bold",t["MS-Mincho-BoldItalic"]="MS Mincho-BoldItalic",t["MS-Mincho-Italic"]="MS Mincho-Italic",t["MS-PGothic"]="MS PGothic",t["MS-PGothic-Bold"]="MS PGothic-Bold",t["MS-PGothic-BoldItalic"]="MS PGothic-BoldItalic",t["MS-PGothic-Italic"]="MS PGothic-Italic",t["MS-PMincho"]="MS PMincho",t["MS-PMincho-Bold"]="MS PMincho-Bold",t["MS-PMincho-BoldItalic"]="MS PMincho-BoldItalic",t["MS-PMincho-Italic"]="MS PMincho-Italic",t.NuptialScript="Times-Italic",t.SegoeUISymbol="Helvetica"}),rB=ew(function(t){t["Adobe Jenson"]=!0,t["Adobe Text"]=!0,t.Albertus=!0,t.Aldus=!0,t.Alexandria=!0,t.Algerian=!0,t["American Typewriter"]=!0,t.Antiqua=!0,t.Apex=!0,t.Arno=!0,t.Aster=!0,t.Aurora=!0,t.Baskerville=!0,t.Bell=!0,t.Bembo=!0,t["Bembo Schoolbook"]=!0,t.Benguiat=!0,t["Berkeley Old Style"]=!0,t["Bernhard Modern"]=!0,t["Berthold City"]=!0,t.Bodoni=!0,t["Bauer Bodoni"]=!0,t["Book Antiqua"]=!0,t.Bookman=!0,t["Bordeaux Roman"]=!0,t["Californian FB"]=!0,t.Calisto=!0,t.Calvert=!0,t.Capitals=!0,t.Cambria=!0,t.Cartier=!0,t.Caslon=!0,t.Catull=!0,t.Centaur=!0,t["Century Old Style"]=!0,t["Century Schoolbook"]=!0,t.Chaparral=!0,t["Charis SIL"]=!0,t.Cheltenham=!0,t["Cholla Slab"]=!0,t.Clarendon=!0,t.Clearface=!0,t.Cochin=!0,t.Colonna=!0,t["Computer Modern"]=!0,t["Concrete Roman"]=!0,t.Constantia=!0,t["Cooper Black"]=!0,t.Corona=!0,t.Ecotype=!0,t.Egyptienne=!0,t.Elephant=!0,t.Excelsior=!0,t.Fairfield=!0,t["FF Scala"]=!0,t.Folkard=!0,t.Footlight=!0,t.FreeSerif=!0,t["Friz Quadrata"]=!0,t.Garamond=!0,t.Gentium=!0,t.Georgia=!0,t.Gloucester=!0,t["Goudy Old Style"]=!0,t["Goudy Schoolbook"]=!0,t["Goudy Pro Font"]=!0,t.Granjon=!0,t["Guardian Egyptian"]=!0,t.Heather=!0,t.Hercules=!0,t["High Tower Text"]=!0,t.Hiroshige=!0,t["Hoefler Text"]=!0,t["Humana Serif"]=!0,t.Imprint=!0,t["Ionic No. 5"]=!0,t.Janson=!0,t.Joanna=!0,t.Korinna=!0,t.Lexicon=!0,t.LiberationSerif=!0,t["Liberation Serif"]=!0,t["Linux Libertine"]=!0,t.Literaturnaya=!0,t.Lucida=!0,t["Lucida Bright"]=!0,t.Melior=!0,t.Memphis=!0,t.Miller=!0,t.Minion=!0,t.Modern=!0,t["Mona Lisa"]=!0,t["Mrs Eaves"]=!0,t["MS Serif"]=!0,t["Museo Slab"]=!0,t["New York"]=!0,t["Nimbus Roman"]=!0,t["NPS Rawlinson Roadway"]=!0,t.NuptialScript=!0,t.Palatino=!0,t.Perpetua=!0,t.Plantin=!0,t["Plantin Schoolbook"]=!0,t.Playbill=!0,t["Poor Richard"]=!0,t["Rawlinson Roadway"]=!0,t.Renault=!0,t.Requiem=!0,t.Rockwell=!0,t.Roman=!0,t["Rotis Serif"]=!0,t.Sabon=!0,t.Scala=!0,t.Seagull=!0,t.Sistina=!0,t.Souvenir=!0,t.STIX=!0,t["Stone Informal"]=!0,t["Stone Serif"]=!0,t.Sylfaen=!0,t.Times=!0,t.Trajan=!0,t["Trinit\xe9"]=!0,t["Trump Mediaeval"]=!0,t.Utopia=!0,t["Vale Type"]=!0,t["Bitstream Vera"]=!0,t["Vera Serif"]=!0,t.Versailles=!0,t.Wanted=!0,t.Weiss=!0,t["Wide Latin"]=!0,t.Windsor=!0,t.XITS=!0}),rF=ew(function(t){t.Dingbats=!0,t.Symbol=!0,t.ZapfDingbats=!0,t.Wingdings=!0,t["Wingdings-Bold"]=!0,t["Wingdings-Regular"]=!0}),rM=ew(function(t){t[2]=10,t[3]=32,t[4]=33,t[5]=34,t[6]=35,t[7]=36,t[8]=37,t[9]=38,t[10]=39,t[11]=40,t[12]=41,t[13]=42,t[14]=43,t[15]=44,t[16]=45,t[17]=46,t[18]=47,t[19]=48,t[20]=49,t[21]=50,t[22]=51,t[23]=52,t[24]=53,t[25]=54,t[26]=55,t[27]=56,t[28]=57,t[29]=58,t[30]=894,t[31]=60,t[32]=61,t[33]=62,t[34]=63,t[35]=64,t[36]=65,t[37]=66,t[38]=67,t[39]=68,t[40]=69,t[41]=70,t[42]=71,t[43]=72,t[44]=73,t[45]=74,t[46]=75,t[47]=76,t[48]=77,t[49]=78,t[50]=79,t[51]=80,t[52]=81,t[53]=82,t[54]=83,t[55]=84,t[56]=85,t[57]=86,t[58]=87,t[59]=88,t[60]=89,t[61]=90,t[62]=91,t[63]=92,t[64]=93,t[65]=94,t[66]=95,t[67]=96,t[68]=97,t[69]=98,t[70]=99,t[71]=100,t[72]=101,t[73]=102,t[74]=103,t[75]=104,t[76]=105,t[77]=106,t[78]=107,t[79]=108,t[80]=109,t[81]=110,t[82]=111,t[83]=112,t[84]=113,t[85]=114,t[86]=115,t[87]=116,t[88]=117,t[89]=118,t[90]=119,t[91]=120,t[92]=121,t[93]=122,t[94]=123,t[95]=124,t[96]=125,t[97]=126,t[98]=196,t[99]=197,t[100]=199,t[101]=201,t[102]=209,t[103]=214,t[104]=220,t[105]=225,t[106]=224,t[107]=226,t[108]=228,t[109]=227,t[110]=229,t[111]=231,t[112]=233,t[113]=232,t[114]=234,t[115]=235,t[116]=237,t[117]=236,t[118]=238,t[119]=239,t[120]=241,t[121]=243,t[122]=242,t[123]=244,t[124]=246,t[125]=245,t[126]=250,t[127]=249,t[128]=251,t[129]=252,t[130]=8224,t[131]=176,t[132]=162,t[133]=163,t[134]=167,t[135]=8226,t[136]=182,t[137]=223,t[138]=174,t[139]=169,t[140]=8482,t[141]=180,t[142]=168,t[143]=8800,t[144]=198,t[145]=216,t[146]=8734,t[147]=177,t[148]=8804,t[149]=8805,t[150]=165,t[151]=181,t[152]=8706,t[153]=8721,t[154]=8719,t[156]=8747,t[157]=170,t[158]=186,t[159]=8486,t[160]=230,t[161]=248,t[162]=191,t[163]=161,t[164]=172,t[165]=8730,t[166]=402,t[167]=8776,t[168]=8710,t[169]=171,t[170]=187,t[171]=8230,t[179]=8220,t[180]=8221,t[181]=8216,t[182]=8217,t[200]=193,t[203]=205,t[207]=211,t[210]=218,t[223]=711,t[224]=321,t[225]=322,t[226]=352,t[227]=353,t[228]=381,t[229]=382,t[233]=221,t[234]=253,t[252]=263,t[253]=268,t[254]=269,t[258]=258,t[260]=260,t[261]=261,t[265]=280,t[266]=281,t[267]=282,t[268]=283,t[269]=313,t[275]=323,t[276]=324,t[278]=328,t[283]=344,t[284]=345,t[285]=346,t[286]=347,t[292]=367,t[295]=377,t[296]=378,t[298]=380,t[305]=963,t[306]=964,t[307]=966,t[308]=8215,t[309]=8252,t[310]=8319,t[311]=8359,t[312]=8592,t[313]=8593,t[337]=9552,t[493]=1039,t[494]=1040,t[570]=1040,t[571]=1041,t[572]=1042,t[573]=1043,t[574]=1044,t[575]=1045,t[576]=1046,t[577]=1047,t[578]=1048,t[579]=1049,t[580]=1050,t[581]=1051,t[582]=1052,t[583]=1053,t[584]=1054,t[585]=1055,t[586]=1056,t[587]=1057,t[588]=1058,t[589]=1059,t[590]=1060,t[591]=1061,t[592]=1062,t[593]=1063,t[594]=1064,t[595]=1065,t[596]=1066,t[597]=1067,t[598]=1068,t[599]=1069,t[600]=1070,t[672]=1488,t[673]=1489,t[674]=1490,t[675]=1491,t[676]=1492,t[677]=1493,t[678]=1494,t[679]=1495,t[680]=1496,t[681]=1497,t[682]=1498,t[683]=1499,t[684]=1500,t[685]=1501,t[686]=1502,t[687]=1503,t[688]=1504,t[689]=1505,t[690]=1506,t[691]=1507,t[692]=1508,t[693]=1509,t[694]=1510,t[695]=1511,t[696]=1512,t[697]=1513,t[698]=1514,t[705]=1524,t[706]=8362,t[710]=64288,t[711]=64298,t[759]=1617,t[761]=1776,t[763]=1778,t[775]=1652,t[777]=1764,t[778]=1780,t[779]=1781,t[780]=1782,t[782]=771,t[783]=64726,t[786]=8363,t[788]=8532,t[790]=768,t[791]=769,t[792]=768,t[795]=803,t[797]=64336,t[798]=64337,t[799]=64342,t[800]=64343,t[801]=64344,t[802]=64345,t[803]=64362,t[804]=64363,t[805]=64364,t[2424]=7821,t[2425]=7822,t[2426]=7823,t[2427]=7824,t[2428]=7825,t[2429]=7826,t[2430]=7827,t[2433]=7682,t[2678]=8045,t[2679]=8046,t[2830]=1552,t[2838]=686,t[2840]=751,t[2842]=753,t[2843]=754,t[2844]=755,t[2846]=757,t[2856]=767,t[2857]=848,t[2858]=849,t[2862]=853,t[2863]=854,t[2864]=855,t[2865]=861,t[2866]=862,t[2906]=7460,t[2908]=7462,t[2909]=7463,t[2910]=7464,t[2912]=7466,t[2913]=7467,t[2914]=7468,t[2916]=7470,t[2917]=7471,t[2918]=7472,t[2920]=7474,t[2921]=7475,t[2922]=7476,t[2924]=7478,t[2925]=7479,t[2926]=7480,t[2928]=7482,t[2929]=7483,t[2930]=7484,t[2932]=7486,t[2933]=7487,t[2934]=7488,t[2936]=7490,t[2937]=7491,t[2938]=7492,t[2940]=7494,t[2941]=7495,t[2942]=7496,t[2944]=7498,t[2946]=7500,t[2948]=7502,t[2950]=7504,t[2951]=7505,t[2952]=7506,t[2954]=7508,t[2955]=7509,t[2956]=7510,t[2958]=7512,t[2959]=7513,t[2960]=7514,t[2962]=7516,t[2963]=7517,t[2964]=7518,t[2966]=7520,t[2967]=7521,t[2968]=7522,t[2970]=7524,t[2971]=7525,t[2972]=7526,t[2974]=7528,t[2975]=7529,t[2976]=7530,t[2978]=1537,t[2979]=1538,t[2980]=1539,t[2982]=1549,t[2983]=1551,t[2984]=1552,t[2986]=1554,t[2987]=1555,t[2988]=1556,t[2990]=1623,t[2991]=1624,t[2995]=1775,t[2999]=1791,t[3002]=64290,t[3003]=64291,t[3004]=64292,t[3006]=64294,t[3007]=64295,t[3008]=64296,t[3011]=1900,t[3014]=8223,t[3015]=8244,t[3017]=7532,t[3018]=7533,t[3019]=7534,t[3075]=7590,t[3076]=7591,t[3079]=7594,t[3080]=7595,t[3083]=7598,t[3084]=7599,t[3087]=7602,t[3088]=7603,t[3091]=7606,t[3092]=7607,t[3095]=7610,t[3096]=7611,t[3099]=7614,t[3100]=7615,t[3103]=7618,t[3104]=7619,t[3107]=8337,t[3108]=8338,t[3116]=1884,t[3119]=1885,t[3120]=1885,t[3123]=1886,t[3124]=1886,t[3127]=1887,t[3128]=1887,t[3131]=1888,t[3132]=1888,t[3135]=1889,t[3136]=1889,t[3139]=1890,t[3140]=1890,t[3143]=1891,t[3144]=1891,t[3147]=1892,t[3148]=1892,t[3153]=580,t[3154]=581,t[3157]=584,t[3158]=585,t[3161]=588,t[3162]=589,t[3165]=891,t[3166]=892,t[3169]=1274,t[3170]=1275,t[3173]=1278,t[3174]=1279,t[3181]=7622,t[3182]=7623,t[3282]=11799,t[3316]=578,t[3379]=42785,t[3393]=1159,t[3416]=8377}),rR=ew(function(t){t[227]=322,t[264]=261,t[291]=346}),rN=ew(function(t){t[1]=32,t[4]=65,t[5]=192,t[6]=193,t[9]=196,t[17]=66,t[18]=67,t[21]=268,t[24]=68,t[28]=69,t[29]=200,t[30]=201,t[32]=282,t[38]=70,t[39]=71,t[44]=72,t[47]=73,t[48]=204,t[49]=205,t[58]=74,t[60]=75,t[62]=76,t[68]=77,t[69]=78,t[75]=79,t[76]=210,t[80]=214,t[87]=80,t[89]=81,t[90]=82,t[92]=344,t[94]=83,t[97]=352,t[100]=84,t[104]=85,t[109]=220,t[115]=86,t[116]=87,t[121]=88,t[122]=89,t[124]=221,t[127]=90,t[129]=381,t[258]=97,t[259]=224,t[260]=225,t[263]=228,t[268]=261,t[271]=98,t[272]=99,t[273]=263,t[275]=269,t[282]=100,t[286]=101,t[287]=232,t[288]=233,t[290]=283,t[295]=281,t[296]=102,t[336]=103,t[346]=104,t[349]=105,t[350]=236,t[351]=237,t[361]=106,t[364]=107,t[367]=108,t[371]=322,t[373]=109,t[374]=110,t[381]=111,t[382]=242,t[383]=243,t[386]=246,t[393]=112,t[395]=113,t[396]=114,t[398]=345,t[400]=115,t[401]=347,t[403]=353,t[410]=116,t[437]=117,t[442]=252,t[448]=118,t[449]=119,t[454]=120,t[455]=121,t[457]=253,t[460]=122,t[462]=382,t[463]=380,t[853]=44,t[855]=58,t[856]=46,t[876]=47,t[878]=45,t[882]=45,t[894]=40,t[895]=41,t[896]=91,t[897]=93,t[923]=64,t[940]=163,t[1004]=48,t[1005]=49,t[1006]=50,t[1007]=51,t[1008]=52,t[1009]=53,t[1010]=54,t[1011]=55,t[1012]=56,t[1013]=57,t[1081]=37,t[1085]=43,t[1086]=45});function rO(t){let a=rt(t);return rS()[a]}function rD(t){let a=rt(t);return!!(rS()[a]||rT()[a]||rB()[a]||rF()[a])}class rE{constructor(t=[]){this._map=t}get length(){return this._map.length}forEach(t){for(let a in this._map)t(a,this._map[a].codePointAt(0))}has(t){return void 0!==this._map[t]}get(t){return this._map[t]}charCodeOf(t){let a=this._map;if(a.length<=65536)return a.indexOf(t);for(let r in a)if(a[r]===t)return 0|r;return -1}amend(t){for(let a in t)this._map[a]=t[a]}}class rP{constructor(t,a){this.firstChar=t,this.lastChar=a}get length(){return this.lastChar+1-this.firstChar}forEach(t){for(let a=this.firstChar,r=this.lastChar;a<=r;a++)t(a,a)}has(t){return this.firstChar<=t&&t<=this.lastChar}get(t){if(this.firstChar<=t&&t<=this.lastChar)return String.fromCharCode(t)}charCodeOf(t){return Number.isInteger(t)&&t>=this.firstChar&&t<=this.lastChar?t:-1}amend(t){A("Should not call amend()")}}class r_{constructor(t,a){this.properties=a;let r=new rc(t,a,!0);this.cff=r.parse(),this.cff.duplicateFirstGlyph();let i=new rC(this.cff);this.seacs=this.cff.seacs;try{this.data=i.compile()}catch{v("Failed to compile font "+a.loadedName),this.data=t}this._createBuiltInEncoding()}get numGlyphs(){return this.cff.charStrings.count}getCharset(){return this.cff.charset.charset}getGlyphMapping(){let t,a;let r=this.cff,i=this.properties,{cidToGidMap:n,cMap:s}=i,o=r.charset.charset;if(i.composite){let i,l;if(n?.length>0){i=Object.create(null);for(let t=0,a=n.length;t<a;t++){let a=n[t];void 0!==a&&(i[a]=t)}}if(t=Object.create(null),r.isCIDFont)for(a=0;a<o.length;a++){let r=o[a];l=s.charCodeOf(r),void 0!==i?.[l]&&(l=i[l]),t[l]=a}else for(a=0;a<r.charStrings.count;a++)t[l=s.charCodeOf(a)]=a;return t}let l=r.encoding?r.encoding.encoding:null;return i.isInternalFont&&(l=i.defaultEncoding),t=re(i,l,o)}hasGlyphId(t){return this.cff.hasGlyphId(t)}_createBuiltInEncoding(){let{charset:t,encoding:a}=this.cff;if(!t||!a)return;let r=t.charset,i=a.encoding,n=[];for(let t in i){let a=i[t];if(a>=0){let i=r[a];i&&(n[t]=i)}}n.length>0&&(this.properties.builtInEncoding=n)}}function rL(t,a){return eM(t,a)/16384}function rU(t){let a=t.length,r=32768;return a<1240?r=107:a<33900&&(r=1131),r}function rj(t,a){let r=a.codePointAt(0),i=0,n=0,s=t.length-1;for(;n<s;){let a=n+s+1>>1;r<t[a].start?s=a-1:n=a}return t[n].start<=r&&r<=t[n].end&&(i=t[n].idDelta+(t[n].ids?t[n].ids[r-t[n].start]:r)&65535),{charCode:r,glyphId:i}}class rq{cmds=[];transformStack=[];currentTransform=[1,0,0,1,0,0];add(t,a){if(a){let{currentTransform:r}=this;for(let t=0,i=a.length;t<i;t+=2)j.applyTransform(a,r,t);this.cmds.push(t,...a)}else this.cmds.push(t)}transform(t){this.currentTransform=j.transform(this.currentTransform,t)}translate(t,a){this.transform([1,0,0,1,t,a])}save(){this.transformStack.push(this.currentTransform.slice())}restore(){this.currentTransform=this.transformStack.pop()||[1,0,0,1,0,0]}getPath(){return new(L.isFloat16ArraySupported?Float16Array:Float32Array)(this.cmds)}}class rH{constructor(t){this.fontMatrix=t,this.compiledGlyphs=Object.create(null),this.compiledCharCodeToGlyphId=Object.create(null)}getPathJs(t){let{charCode:a,glyphId:r}=rj(this.cmap,t),i,n=this.compiledGlyphs[r];if(void 0===n){try{n=this.compileGlyph(this.glyphs[r],r)}catch(t){n="",i=t}this.compiledGlyphs[r]=n}if(this.compiledCharCodeToGlyphId[a]??=r,i)throw i;return n}compileGlyph(t,a){if(!t?.length||14===t[0])return"";let r=this.fontMatrix;if(this.isCFFCIDFont){let t=this.fdSelect.getFDIndex(a);t>=0&&t<this.fdArray.length?r=this.fdArray[t].getByName("FontMatrix")||f:v("Invalid fd index for glyph index.")}C(eD(r,6),"Expected a valid fontMatrix.");let i=new rq;return i.transform(r.slice()),this.compileGlyphImpl(t,i,a),i.add(4),i.getPath()}compileGlyphImpl(){A("Children classes should implement this.")}hasBuiltPath(t){let{charCode:a,glyphId:r}=rj(this.cmap,t);return void 0!==this.compiledGlyphs[r]&&void 0!==this.compiledCharCodeToGlyphId[a]}}class r$ extends rH{constructor(t,a,r){super(r||[488e-6,0,0,488e-6,0,0]),this.glyphs=t,this.cmap=a}compileGlyphImpl(t,a){!function t(a,r,i){function n(t,a,i,n){r.add(3,[t,a,i,n])}let s=0,o=eM(a,s),l,c=null,h=0,u=0;if(s+=10,o<0)do{let n,o;l=eR(a,s);let c=eR(a,s+2);s+=4,1&l?(2&l?(n=eM(a,s),o=eM(a,s+2)):(n=eR(a,s),o=eR(a,s+2)),s+=4):2&l?(n=eF(a,s++),o=eF(a,s++)):(n=a[s++],o=a[s++]),2&l?(h=n,u=o):(h=0,u=0);let f=1,d=1,g=0,p=0;8&l?(f=d=rL(a,s),s+=2):64&l?(f=rL(a,s),d=rL(a,s+2),s+=4):128&l&&(f=rL(a,s),g=rL(a,s+2),p=rL(a,s+4),d=rL(a,s+6),s+=8);let m=i.glyphs[c];m&&(r.save(),r.transform([f,g,p,d,h,u]),t(m,r,i),r.restore())}while(32&l)else{let t,i;let m=[];for(t=0;t<o;t++)m.push(eR(a,s)),s+=2;s+=2+eR(a,s);let b=m.at(-1)+1,y=[];for(;y.length<b;){l=a[s++];let t=1;for(8&l&&(t+=a[s++]);t-- >0;)y.push({flags:l})}for(t=0;t<b;t++){switch(18&y[t].flags){case 0:h+=eM(a,s),s+=2;break;case 2:h-=a[s++];break;case 18:h+=a[s++]}y[t].x=h}for(t=0;t<b;t++){switch(36&y[t].flags){case 0:u+=eM(a,s),s+=2;break;case 4:u-=a[s++];break;case 36:u+=a[s++]}y[t].y=u}let w=0;for(s=0;s<o;s++){var f,d,g,p;let a=m[s],o=y.slice(w,a+1);if(1&o[0].flags)o.push(o[0]);else if(1&o.at(-1).flags)o.unshift(o.at(-1));else{let t={flags:1,x:(o[0].x+o.at(-1).x)/2,y:(o[0].y+o.at(-1).y)/2};o.unshift(t),o.push(t)}for(f=o[0].x,d=o[0].y,c&&r.add(1,c),c=[f,d],r.add(0,[f,d]),t=1,i=o.length;t<i;t++)1&o[t].flags?(g=o[t].x,p=o[t].y,r.add(1,[g,p])):1&o[t+1].flags?(n(o[t].x,o[t].y,o[t+1].x,o[t+1].y),t++):n(o[t].x,o[t].y,(o[t].x+o[t+1].x)/2,(o[t].y+o[t+1].y)/2);w=a+1}}}(t,a,this)}}class rz extends rH{constructor(t,a,r){super(r||[.001,0,0,.001,0,0]),this.glyphs=t.glyphs,this.gsubrs=t.gsubrs||[],this.subrs=t.subrs||[],this.cmap=a,this.glyphNameMap=a0(),this.gsubrsBias=rU(this.gsubrs),this.subrsBias=rU(this.subrs),this.isCFFCIDFont=t.isCFFCIDFont,this.fdSelect=t.fdSelect,this.fdArray=t.fdArray}compileGlyphImpl(t,a,r){!function t(a,r,i,n){function s(t,a){d&&r.add(1,d),d=[t,a],r.add(0,[t,a])}function o(t,a){r.add(1,[t,a])}function l(t,a,i,n,s,o){r.add(2,[t,a,i,n,s,o])}let c=[],h=0,u=0,f=0,d=null;!function a(d){let g=0;for(;g<d.length;){let p,m,b,y,w,x,k,A,C,S=!1,I=d[g++];switch(I){case 1:case 3:case 18:case 23:f+=c.length>>1,S=!0;break;case 4:u+=c.pop(),s(h,u),S=!0;break;case 5:for(;c.length>0;)h+=c.shift(),u+=c.shift(),o(h,u);break;case 6:for(;c.length>0&&(o(h+=c.shift(),u),0!==c.length);)u+=c.shift(),o(h,u);break;case 7:for(;c.length>0&&(u+=c.shift(),o(h,u),0!==c.length);)o(h+=c.shift(),u);break;case 8:for(;c.length>0;)p=h+c.shift(),b=u+c.shift(),m=p+c.shift(),y=b+c.shift(),h=m+c.shift(),u=y+c.shift(),l(p,b,m,y,h,u);break;case 10:if(A=c.pop(),C=null,i.isCFFCIDFont){let t=i.fdSelect.getFDIndex(n);if(t>=0&&t<i.fdArray.length){let a;let r=i.fdArray[t];r.privateDict?.subrsIndex&&(a=r.privateDict.subrsIndex.objects),a&&(A+=rU(a),C=a[A])}else v("Invalid fd index for glyph index.")}else C=i.subrs[A+i.subrsBias];C&&a(C);break;case 11:return;case 12:switch(I=d[g++]){case 34:m=(p=h+c.shift())+c.shift(),w=u+c.shift(),h=m+c.shift(),l(p,u,m,w,h,w),h=(m=(p=h+c.shift())+c.shift())+c.shift(),l(p,w,m,u,h,u);break;case 35:p=h+c.shift(),b=u+c.shift(),m=p+c.shift(),y=b+c.shift(),h=m+c.shift(),u=y+c.shift(),l(p,b,m,y,h,u),p=h+c.shift(),b=u+c.shift(),m=p+c.shift(),y=b+c.shift(),h=m+c.shift(),u=y+c.shift(),l(p,b,m,y,h,u),c.pop();break;case 36:p=h+c.shift(),w=u+c.shift(),m=p+c.shift(),x=w+c.shift(),h=m+c.shift(),l(p,w,m,x,h,x),m=(p=h+c.shift())+c.shift(),k=x+c.shift(),h=m+c.shift(),l(p,x,m,k,h,u);break;case 37:let T=h,B=u;p=h+c.shift(),b=u+c.shift(),m=p+c.shift(),y=b+c.shift(),h=m+c.shift(),u=y+c.shift(),l(p,b,m,y,h,u),p=h+c.shift(),b=u+c.shift(),m=p+c.shift(),y=b+c.shift(),Math.abs((h=m)-T)>Math.abs((u=y)-B)?h+=c.shift():u+=c.shift(),l(p,b,m,y,h,u);break;default:throw new N(`unknown operator: 12 ${I}`)}break;case 14:if(c.length>=4){let a=c.pop(),n=c.pop();u=c.pop(),h=c.pop(),r.save(),r.translate(h,u);let s=rj(i.cmap,String.fromCharCode(i.glyphNameMap[aY[a]]));t(i.glyphs[s.glyphId],r,i,s.glyphId),r.restore(),s=rj(i.cmap,String.fromCharCode(i.glyphNameMap[aY[n]])),t(i.glyphs[s.glyphId],r,i,s.glyphId)}return;case 19:case 20:f+=c.length>>1,g+=f+7>>3,S=!0;break;case 21:u+=c.pop(),s(h+=c.pop(),u),S=!0;break;case 22:s(h+=c.pop(),u),S=!0;break;case 24:for(;c.length>2;)p=h+c.shift(),b=u+c.shift(),m=p+c.shift(),y=b+c.shift(),h=m+c.shift(),u=y+c.shift(),l(p,b,m,y,h,u);h+=c.shift(),u+=c.shift(),o(h,u);break;case 25:for(;c.length>6;)h+=c.shift(),u+=c.shift(),o(h,u);p=h+c.shift(),b=u+c.shift(),m=p+c.shift(),y=b+c.shift(),h=m+c.shift(),u=y+c.shift(),l(p,b,m,y,h,u);break;case 26:for(c.length%2&&(h+=c.shift());c.length>0;)p=h,b=u+c.shift(),m=p+c.shift(),y=b+c.shift(),h=m,u=y+c.shift(),l(p,b,m,y,h,u);break;case 27:for(c.length%2&&(u+=c.shift());c.length>0;)p=h+c.shift(),b=u,m=p+c.shift(),y=b+c.shift(),h=m+c.shift(),u=y,l(p,b,m,y,h,u);break;case 28:c.push(eM(d,g)),g+=2;break;case 29:A=c.pop()+i.gsubrsBias,(C=i.gsubrs[A])&&a(C);break;case 30:for(;c.length>0&&(p=h,b=u+c.shift(),m=p+c.shift(),y=b+c.shift(),h=m+c.shift(),u=y+(1===c.length?c.shift():0),l(p,b,m,y,h,u),0!==c.length);)p=h+c.shift(),b=u,m=p+c.shift(),u=(y=b+c.shift())+c.shift(),h=m+(1===c.length?c.shift():0),l(p,b,m,y,h,u);break;case 31:for(;c.length>0&&(p=h+c.shift(),b=u,m=p+c.shift(),u=(y=b+c.shift())+c.shift(),h=m+(1===c.length?c.shift():0),l(p,b,m,y,h,u),0!==c.length);)p=h,b=u+c.shift(),m=p+c.shift(),y=b+c.shift(),h=m+c.shift(),u=y+(1===c.length?c.shift():0),l(p,b,m,y,h,u);break;default:if(I<32)throw new N(`unknown operator: ${I}`);I<247?c.push(I-139):I<251?c.push(256*(I-247)+d[g++]+108):I<255?c.push(-(256*(I-251))-d[g++]-108):(c.push((d[g]<<24|d[g+1]<<16|d[g+2]<<8|d[g+3])/65536),g+=4)}S&&(c.length=0)}}(a)}(t,a,this,r)}}class rG{static create(t,a){let r,i,n,s,o,l;let c=new Uint8Array(t.data),h=eR(c,4);for(let t=0,u=12;t<h;t++,u+=16){let t=D(c.subarray(u,u+4)),h=eN(c,u+8),f=eN(c,u+12);switch(t){case"cmap":r=function(t,a,r){let i,n,s;let o=1===eR(t,a+2)?eN(t,a+8):eN(t,a+16),l=eR(t,a+o);if(4===l){eR(t,a+o+2);let r=eR(t,a+o+6)>>1;for(s=0,n=a+o+14,i=[];s<r;s++,n+=2)i[s]={end:eR(t,n)};for(n+=2,s=0;s<r;s++,n+=2)i[s].start=eR(t,n);for(s=0;s<r;s++,n+=2)i[s].idDelta=eR(t,n);for(s=0;s<r;s++,n+=2){let a=eR(t,n);if(0!==a){i[s].ids=[];for(let r=0,o=i[s].end-i[s].start+1;r<o;r++)i[s].ids[r]=eR(t,n+a),a+=2}}return i}if(12===l){let r=eN(t,a+o+12);for(s=0,n=a+o+16,i=[];s<r;s++)a=eN(t,n),i.push({start:a,end:eN(t,n+4),idDelta:eN(t,n+8)-a}),n+=12;return i}throw new N(`unsupported cmap: ${l}`)}(c,h);break;case"glyf":i=c.subarray(h,h+f);break;case"loca":n=c.subarray(h,h+f);break;case"head":l=eR(c,h+18),o=eR(c,h+50);break;case"CFF ":s=function(t,a,r,i){let n=new rc(new tg(t,a,r-a),{},i).parse();return{glyphs:n.charStrings.objects,subrs:n.topDict.privateDict?.subrsIndex?.objects,gsubrs:n.globalSubrIndex?.objects,isCFFCIDFont:n.isCIDFont,fdSelect:n.fdSelect,fdArray:n.fdArray}}(c,h,h+f,a)}}if(i){let a=l?[1/l,0,0,1/l,0,0]:t.fontMatrix;return new r$(function(t,a,r){let i,n;r?(i=4,n=eN):(i=2,n=(t,a)=>2*eR(t,a));let s=[],o=n(a,0);for(let r=i;r<a.length;r+=i){let i=n(a,r);s.push(t.subarray(o,i)),o=i}return s}(i,n,o),r,a)}return new rz(s,r,t.fontMatrix)}}let rW=ew(function(t){t.Courier=600,t["Courier-Bold"]=600,t["Courier-BoldOblique"]=600,t["Courier-Oblique"]=600,t.Helvetica=ew(function(t){t.space=278,t.exclam=278,t.quotedbl=355,t.numbersign=556,t.dollar=556,t.percent=889,t.ampersand=667,t.quoteright=222,t.parenleft=333,t.parenright=333,t.asterisk=389,t.plus=584,t.comma=278,t.hyphen=333,t.period=278,t.slash=278,t.zero=556,t.one=556,t.two=556,t.three=556,t.four=556,t.five=556,t.six=556,t.seven=556,t.eight=556,t.nine=556,t.colon=278,t.semicolon=278,t.less=584,t.equal=584,t.greater=584,t.question=556,t.at=1015,t.A=667,t.B=667,t.C=722,t.D=722,t.E=667,t.F=611,t.G=778,t.H=722,t.I=278,t.J=500,t.K=667,t.L=556,t.M=833,t.N=722,t.O=778,t.P=667,t.Q=778,t.R=722,t.S=667,t.T=611,t.U=722,t.V=667,t.W=944,t.X=667,t.Y=667,t.Z=611,t.bracketleft=278,t.backslash=278,t.bracketright=278,t.asciicircum=469,t.underscore=556,t.quoteleft=222,t.a=556,t.b=556,t.c=500,t.d=556,t.e=556,t.f=278,t.g=556,t.h=556,t.i=222,t.j=222,t.k=500,t.l=222,t.m=833,t.n=556,t.o=556,t.p=556,t.q=556,t.r=333,t.s=500,t.t=278,t.u=556,t.v=500,t.w=722,t.x=500,t.y=500,t.z=500,t.braceleft=334,t.bar=260,t.braceright=334,t.asciitilde=584,t.exclamdown=333,t.cent=556,t.sterling=556,t.fraction=167,t.yen=556,t.florin=556,t.section=556,t.currency=556,t.quotesingle=191,t.quotedblleft=333,t.guillemotleft=556,t.guilsinglleft=333,t.guilsinglright=333,t.fi=500,t.fl=500,t.endash=556,t.dagger=556,t.daggerdbl=556,t.periodcentered=278,t.paragraph=537,t.bullet=350,t.quotesinglbase=222,t.quotedblbase=333,t.quotedblright=333,t.guillemotright=556,t.ellipsis=1e3,t.perthousand=1e3,t.questiondown=611,t.grave=333,t.acute=333,t.circumflex=333,t.tilde=333,t.macron=333,t.breve=333,t.dotaccent=333,t.dieresis=333,t.ring=333,t.cedilla=333,t.hungarumlaut=333,t.ogonek=333,t.caron=333,t.emdash=1e3,t.AE=1e3,t.ordfeminine=370,t.Lslash=556,t.Oslash=778,t.OE=1e3,t.ordmasculine=365,t.ae=889,t.dotlessi=278,t.lslash=222,t.oslash=611,t.oe=944,t.germandbls=611,t.Idieresis=278,t.eacute=556,t.abreve=556,t.uhungarumlaut=556,t.ecaron=556,t.Ydieresis=667,t.divide=584,t.Yacute=667,t.Acircumflex=667,t.aacute=556,t.Ucircumflex=722,t.yacute=500,t.scommaaccent=500,t.ecircumflex=556,t.Uring=722,t.Udieresis=722,t.aogonek=556,t.Uacute=722,t.uogonek=556,t.Edieresis=667,t.Dcroat=722,t.commaaccent=250,t.copyright=737,t.Emacron=667,t.ccaron=500,t.aring=556,t.Ncommaaccent=722,t.lacute=222,t.agrave=556,t.Tcommaaccent=611,t.Cacute=722,t.atilde=556,t.Edotaccent=667,t.scaron=500,t.scedilla=500,t.iacute=278,t.lozenge=471,t.Rcaron=722,t.Gcommaaccent=778,t.ucircumflex=556,t.acircumflex=556,t.Amacron=667,t.rcaron=333,t.ccedilla=500,t.Zdotaccent=611,t.Thorn=667,t.Omacron=778,t.Racute=722,t.Sacute=667,t.dcaron=643,t.Umacron=722,t.uring=556,t.threesuperior=333,t.Ograve=778,t.Agrave=667,t.Abreve=667,t.multiply=584,t.uacute=556,t.Tcaron=611,t.partialdiff=476,t.ydieresis=500,t.Nacute=722,t.icircumflex=278,t.Ecircumflex=667,t.adieresis=556,t.edieresis=556,t.cacute=500,t.nacute=556,t.umacron=556,t.Ncaron=722,t.Iacute=278,t.plusminus=584,t.brokenbar=260,t.registered=737,t.Gbreve=778,t.Idotaccent=278,t.summation=600,t.Egrave=667,t.racute=333,t.omacron=556,t.Zacute=611,t.Zcaron=611,t.greaterequal=549,t.Eth=722,t.Ccedilla=722,t.lcommaaccent=222,t.tcaron=317,t.eogonek=556,t.Uogonek=722,t.Aacute=667,t.Adieresis=667,t.egrave=556,t.zacute=500,t.iogonek=222,t.Oacute=778,t.oacute=556,t.amacron=556,t.sacute=500,t.idieresis=278,t.Ocircumflex=778,t.Ugrave=722,t.Delta=612,t.thorn=556,t.twosuperior=333,t.Odieresis=778,t.mu=556,t.igrave=278,t.ohungarumlaut=556,t.Eogonek=667,t.dcroat=556,t.threequarters=834,t.Scedilla=667,t.lcaron=299,t.Kcommaaccent=667,t.Lacute=556,t.trademark=1e3,t.edotaccent=556,t.Igrave=278,t.Imacron=278,t.Lcaron=556,t.onehalf=834,t.lessequal=549,t.ocircumflex=556,t.ntilde=556,t.Uhungarumlaut=722,t.Eacute=667,t.emacron=556,t.gbreve=556,t.onequarter=834,t.Scaron=667,t.Scommaaccent=667,t.Ohungarumlaut=778,t.degree=400,t.ograve=556,t.Ccaron=722,t.ugrave=556,t.radical=453,t.Dcaron=722,t.rcommaaccent=333,t.Ntilde=722,t.otilde=556,t.Rcommaaccent=722,t.Lcommaaccent=556,t.Atilde=667,t.Aogonek=667,t.Aring=667,t.Otilde=778,t.zdotaccent=500,t.Ecaron=667,t.Iogonek=278,t.kcommaaccent=500,t.minus=584,t.Icircumflex=278,t.ncaron=556,t.tcommaaccent=278,t.logicalnot=584,t.odieresis=556,t.udieresis=556,t.notequal=549,t.gcommaaccent=556,t.eth=556,t.zcaron=500,t.ncommaaccent=556,t.onesuperior=333,t.imacron=278,t.Euro=556}),t["Helvetica-Bold"]=ew(function(t){t.space=278,t.exclam=333,t.quotedbl=474,t.numbersign=556,t.dollar=556,t.percent=889,t.ampersand=722,t.quoteright=278,t.parenleft=333,t.parenright=333,t.asterisk=389,t.plus=584,t.comma=278,t.hyphen=333,t.period=278,t.slash=278,t.zero=556,t.one=556,t.two=556,t.three=556,t.four=556,t.five=556,t.six=556,t.seven=556,t.eight=556,t.nine=556,t.colon=333,t.semicolon=333,t.less=584,t.equal=584,t.greater=584,t.question=611,t.at=975,t.A=722,t.B=722,t.C=722,t.D=722,t.E=667,t.F=611,t.G=778,t.H=722,t.I=278,t.J=556,t.K=722,t.L=611,t.M=833,t.N=722,t.O=778,t.P=667,t.Q=778,t.R=722,t.S=667,t.T=611,t.U=722,t.V=667,t.W=944,t.X=667,t.Y=667,t.Z=611,t.bracketleft=333,t.backslash=278,t.bracketright=333,t.asciicircum=584,t.underscore=556,t.quoteleft=278,t.a=556,t.b=611,t.c=556,t.d=611,t.e=556,t.f=333,t.g=611,t.h=611,t.i=278,t.j=278,t.k=556,t.l=278,t.m=889,t.n=611,t.o=611,t.p=611,t.q=611,t.r=389,t.s=556,t.t=333,t.u=611,t.v=556,t.w=778,t.x=556,t.y=556,t.z=500,t.braceleft=389,t.bar=280,t.braceright=389,t.asciitilde=584,t.exclamdown=333,t.cent=556,t.sterling=556,t.fraction=167,t.yen=556,t.florin=556,t.section=556,t.currency=556,t.quotesingle=238,t.quotedblleft=500,t.guillemotleft=556,t.guilsinglleft=333,t.guilsinglright=333,t.fi=611,t.fl=611,t.endash=556,t.dagger=556,t.daggerdbl=556,t.periodcentered=278,t.paragraph=556,t.bullet=350,t.quotesinglbase=278,t.quotedblbase=500,t.quotedblright=500,t.guillemotright=556,t.ellipsis=1e3,t.perthousand=1e3,t.questiondown=611,t.grave=333,t.acute=333,t.circumflex=333,t.tilde=333,t.macron=333,t.breve=333,t.dotaccent=333,t.dieresis=333,t.ring=333,t.cedilla=333,t.hungarumlaut=333,t.ogonek=333,t.caron=333,t.emdash=1e3,t.AE=1e3,t.ordfeminine=370,t.Lslash=611,t.Oslash=778,t.OE=1e3,t.ordmasculine=365,t.ae=889,t.dotlessi=278,t.lslash=278,t.oslash=611,t.oe=944,t.germandbls=611,t.Idieresis=278,t.eacute=556,t.abreve=556,t.uhungarumlaut=611,t.ecaron=556,t.Ydieresis=667,t.divide=584,t.Yacute=667,t.Acircumflex=722,t.aacute=556,t.Ucircumflex=722,t.yacute=556,t.scommaaccent=556,t.ecircumflex=556,t.Uring=722,t.Udieresis=722,t.aogonek=556,t.Uacute=722,t.uogonek=611,t.Edieresis=667,t.Dcroat=722,t.commaaccent=250,t.copyright=737,t.Emacron=667,t.ccaron=556,t.aring=556,t.Ncommaaccent=722,t.lacute=278,t.agrave=556,t.Tcommaaccent=611,t.Cacute=722,t.atilde=556,t.Edotaccent=667,t.scaron=556,t.scedilla=556,t.iacute=278,t.lozenge=494,t.Rcaron=722,t.Gcommaaccent=778,t.ucircumflex=611,t.acircumflex=556,t.Amacron=722,t.rcaron=389,t.ccedilla=556,t.Zdotaccent=611,t.Thorn=667,t.Omacron=778,t.Racute=722,t.Sacute=667,t.dcaron=743,t.Umacron=722,t.uring=611,t.threesuperior=333,t.Ograve=778,t.Agrave=722,t.Abreve=722,t.multiply=584,t.uacute=611,t.Tcaron=611,t.partialdiff=494,t.ydieresis=556,t.Nacute=722,t.icircumflex=278,t.Ecircumflex=667,t.adieresis=556,t.edieresis=556,t.cacute=556,t.nacute=611,t.umacron=611,t.Ncaron=722,t.Iacute=278,t.plusminus=584,t.brokenbar=280,t.registered=737,t.Gbreve=778,t.Idotaccent=278,t.summation=600,t.Egrave=667,t.racute=389,t.omacron=611,t.Zacute=611,t.Zcaron=611,t.greaterequal=549,t.Eth=722,t.Ccedilla=722,t.lcommaaccent=278,t.tcaron=389,t.eogonek=556,t.Uogonek=722,t.Aacute=722,t.Adieresis=722,t.egrave=556,t.zacute=500,t.iogonek=278,t.Oacute=778,t.oacute=611,t.amacron=556,t.sacute=556,t.idieresis=278,t.Ocircumflex=778,t.Ugrave=722,t.Delta=612,t.thorn=611,t.twosuperior=333,t.Odieresis=778,t.mu=611,t.igrave=278,t.ohungarumlaut=611,t.Eogonek=667,t.dcroat=611,t.threequarters=834,t.Scedilla=667,t.lcaron=400,t.Kcommaaccent=722,t.Lacute=611,t.trademark=1e3,t.edotaccent=556,t.Igrave=278,t.Imacron=278,t.Lcaron=611,t.onehalf=834,t.lessequal=549,t.ocircumflex=611,t.ntilde=611,t.Uhungarumlaut=722,t.Eacute=667,t.emacron=556,t.gbreve=611,t.onequarter=834,t.Scaron=667,t.Scommaaccent=667,t.Ohungarumlaut=778,t.degree=400,t.ograve=611,t.Ccaron=722,t.ugrave=611,t.radical=549,t.Dcaron=722,t.rcommaaccent=389,t.Ntilde=722,t.otilde=611,t.Rcommaaccent=722,t.Lcommaaccent=611,t.Atilde=722,t.Aogonek=722,t.Aring=722,t.Otilde=778,t.zdotaccent=500,t.Ecaron=667,t.Iogonek=278,t.kcommaaccent=556,t.minus=584,t.Icircumflex=278,t.ncaron=611,t.tcommaaccent=333,t.logicalnot=584,t.odieresis=611,t.udieresis=611,t.notequal=549,t.gcommaaccent=611,t.eth=611,t.zcaron=500,t.ncommaaccent=611,t.onesuperior=333,t.imacron=278,t.Euro=556}),t["Helvetica-BoldOblique"]=ew(function(t){t.space=278,t.exclam=333,t.quotedbl=474,t.numbersign=556,t.dollar=556,t.percent=889,t.ampersand=722,t.quoteright=278,t.parenleft=333,t.parenright=333,t.asterisk=389,t.plus=584,t.comma=278,t.hyphen=333,t.period=278,t.slash=278,t.zero=556,t.one=556,t.two=556,t.three=556,t.four=556,t.five=556,t.six=556,t.seven=556,t.eight=556,t.nine=556,t.colon=333,t.semicolon=333,t.less=584,t.equal=584,t.greater=584,t.question=611,t.at=975,t.A=722,t.B=722,t.C=722,t.D=722,t.E=667,t.F=611,t.G=778,t.H=722,t.I=278,t.J=556,t.K=722,t.L=611,t.M=833,t.N=722,t.O=778,t.P=667,t.Q=778,t.R=722,t.S=667,t.T=611,t.U=722,t.V=667,t.W=944,t.X=667,t.Y=667,t.Z=611,t.bracketleft=333,t.backslash=278,t.bracketright=333,t.asciicircum=584,t.underscore=556,t.quoteleft=278,t.a=556,t.b=611,t.c=556,t.d=611,t.e=556,t.f=333,t.g=611,t.h=611,t.i=278,t.j=278,t.k=556,t.l=278,t.m=889,t.n=611,t.o=611,t.p=611,t.q=611,t.r=389,t.s=556,t.t=333,t.u=611,t.v=556,t.w=778,t.x=556,t.y=556,t.z=500,t.braceleft=389,t.bar=280,t.braceright=389,t.asciitilde=584,t.exclamdown=333,t.cent=556,t.sterling=556,t.fraction=167,t.yen=556,t.florin=556,t.section=556,t.currency=556,t.quotesingle=238,t.quotedblleft=500,t.guillemotleft=556,t.guilsinglleft=333,t.guilsinglright=333,t.fi=611,t.fl=611,t.endash=556,t.dagger=556,t.daggerdbl=556,t.periodcentered=278,t.paragraph=556,t.bullet=350,t.quotesinglbase=278,t.quotedblbase=500,t.quotedblright=500,t.guillemotright=556,t.ellipsis=1e3,t.perthousand=1e3,t.questiondown=611,t.grave=333,t.acute=333,t.circumflex=333,t.tilde=333,t.macron=333,t.breve=333,t.dotaccent=333,t.dieresis=333,t.ring=333,t.cedilla=333,t.hungarumlaut=333,t.ogonek=333,t.caron=333,t.emdash=1e3,t.AE=1e3,t.ordfeminine=370,t.Lslash=611,t.Oslash=778,t.OE=1e3,t.ordmasculine=365,t.ae=889,t.dotlessi=278,t.lslash=278,t.oslash=611,t.oe=944,t.germandbls=611,t.Idieresis=278,t.eacute=556,t.abreve=556,t.uhungarumlaut=611,t.ecaron=556,t.Ydieresis=667,t.divide=584,t.Yacute=667,t.Acircumflex=722,t.aacute=556,t.Ucircumflex=722,t.yacute=556,t.scommaaccent=556,t.ecircumflex=556,t.Uring=722,t.Udieresis=722,t.aogonek=556,t.Uacute=722,t.uogonek=611,t.Edieresis=667,t.Dcroat=722,t.commaaccent=250,t.copyright=737,t.Emacron=667,t.ccaron=556,t.aring=556,t.Ncommaaccent=722,t.lacute=278,t.agrave=556,t.Tcommaaccent=611,t.Cacute=722,t.atilde=556,t.Edotaccent=667,t.scaron=556,t.scedilla=556,t.iacute=278,t.lozenge=494,t.Rcaron=722,t.Gcommaaccent=778,t.ucircumflex=611,t.acircumflex=556,t.Amacron=722,t.rcaron=389,t.ccedilla=556,t.Zdotaccent=611,t.Thorn=667,t.Omacron=778,t.Racute=722,t.Sacute=667,t.dcaron=743,t.Umacron=722,t.uring=611,t.threesuperior=333,t.Ograve=778,t.Agrave=722,t.Abreve=722,t.multiply=584,t.uacute=611,t.Tcaron=611,t.partialdiff=494,t.ydieresis=556,t.Nacute=722,t.icircumflex=278,t.Ecircumflex=667,t.adieresis=556,t.edieresis=556,t.cacute=556,t.nacute=611,t.umacron=611,t.Ncaron=722,t.Iacute=278,t.plusminus=584,t.brokenbar=280,t.registered=737,t.Gbreve=778,t.Idotaccent=278,t.summation=600,t.Egrave=667,t.racute=389,t.omacron=611,t.Zacute=611,t.Zcaron=611,t.greaterequal=549,t.Eth=722,t.Ccedilla=722,t.lcommaaccent=278,t.tcaron=389,t.eogonek=556,t.Uogonek=722,t.Aacute=722,t.Adieresis=722,t.egrave=556,t.zacute=500,t.iogonek=278,t.Oacute=778,t.oacute=611,t.amacron=556,t.sacute=556,t.idieresis=278,t.Ocircumflex=778,t.Ugrave=722,t.Delta=612,t.thorn=611,t.twosuperior=333,t.Odieresis=778,t.mu=611,t.igrave=278,t.ohungarumlaut=611,t.Eogonek=667,t.dcroat=611,t.threequarters=834,t.Scedilla=667,t.lcaron=400,t.Kcommaaccent=722,t.Lacute=611,t.trademark=1e3,t.edotaccent=556,t.Igrave=278,t.Imacron=278,t.Lcaron=611,t.onehalf=834,t.lessequal=549,t.ocircumflex=611,t.ntilde=611,t.Uhungarumlaut=722,t.Eacute=667,t.emacron=556,t.gbreve=611,t.onequarter=834,t.Scaron=667,t.Scommaaccent=667,t.Ohungarumlaut=778,t.degree=400,t.ograve=611,t.Ccaron=722,t.ugrave=611,t.radical=549,t.Dcaron=722,t.rcommaaccent=389,t.Ntilde=722,t.otilde=611,t.Rcommaaccent=722,t.Lcommaaccent=611,t.Atilde=722,t.Aogonek=722,t.Aring=722,t.Otilde=778,t.zdotaccent=500,t.Ecaron=667,t.Iogonek=278,t.kcommaaccent=556,t.minus=584,t.Icircumflex=278,t.ncaron=611,t.tcommaaccent=333,t.logicalnot=584,t.odieresis=611,t.udieresis=611,t.notequal=549,t.gcommaaccent=611,t.eth=611,t.zcaron=500,t.ncommaaccent=611,t.onesuperior=333,t.imacron=278,t.Euro=556}),t["Helvetica-Oblique"]=ew(function(t){t.space=278,t.exclam=278,t.quotedbl=355,t.numbersign=556,t.dollar=556,t.percent=889,t.ampersand=667,t.quoteright=222,t.parenleft=333,t.parenright=333,t.asterisk=389,t.plus=584,t.comma=278,t.hyphen=333,t.period=278,t.slash=278,t.zero=556,t.one=556,t.two=556,t.three=556,t.four=556,t.five=556,t.six=556,t.seven=556,t.eight=556,t.nine=556,t.colon=278,t.semicolon=278,t.less=584,t.equal=584,t.greater=584,t.question=556,t.at=1015,t.A=667,t.B=667,t.C=722,t.D=722,t.E=667,t.F=611,t.G=778,t.H=722,t.I=278,t.J=500,t.K=667,t.L=556,t.M=833,t.N=722,t.O=778,t.P=667,t.Q=778,t.R=722,t.S=667,t.T=611,t.U=722,t.V=667,t.W=944,t.X=667,t.Y=667,t.Z=611,t.bracketleft=278,t.backslash=278,t.bracketright=278,t.asciicircum=469,t.underscore=556,t.quoteleft=222,t.a=556,t.b=556,t.c=500,t.d=556,t.e=556,t.f=278,t.g=556,t.h=556,t.i=222,t.j=222,t.k=500,t.l=222,t.m=833,t.n=556,t.o=556,t.p=556,t.q=556,t.r=333,t.s=500,t.t=278,t.u=556,t.v=500,t.w=722,t.x=500,t.y=500,t.z=500,t.braceleft=334,t.bar=260,t.braceright=334,t.asciitilde=584,t.exclamdown=333,t.cent=556,t.sterling=556,t.fraction=167,t.yen=556,t.florin=556,t.section=556,t.currency=556,t.quotesingle=191,t.quotedblleft=333,t.guillemotleft=556,t.guilsinglleft=333,t.guilsinglright=333,t.fi=500,t.fl=500,t.endash=556,t.dagger=556,t.daggerdbl=556,t.periodcentered=278,t.paragraph=537,t.bullet=350,t.quotesinglbase=222,t.quotedblbase=333,t.quotedblright=333,t.guillemotright=556,t.ellipsis=1e3,t.perthousand=1e3,t.questiondown=611,t.grave=333,t.acute=333,t.circumflex=333,t.tilde=333,t.macron=333,t.breve=333,t.dotaccent=333,t.dieresis=333,t.ring=333,t.cedilla=333,t.hungarumlaut=333,t.ogonek=333,t.caron=333,t.emdash=1e3,t.AE=1e3,t.ordfeminine=370,t.Lslash=556,t.Oslash=778,t.OE=1e3,t.ordmasculine=365,t.ae=889,t.dotlessi=278,t.lslash=222,t.oslash=611,t.oe=944,t.germandbls=611,t.Idieresis=278,t.eacute=556,t.abreve=556,t.uhungarumlaut=556,t.ecaron=556,t.Ydieresis=667,t.divide=584,t.Yacute=667,t.Acircumflex=667,t.aacute=556,t.Ucircumflex=722,t.yacute=500,t.scommaaccent=500,t.ecircumflex=556,t.Uring=722,t.Udieresis=722,t.aogonek=556,t.Uacute=722,t.uogonek=556,t.Edieresis=667,t.Dcroat=722,t.commaaccent=250,t.copyright=737,t.Emacron=667,t.ccaron=500,t.aring=556,t.Ncommaaccent=722,t.lacute=222,t.agrave=556,t.Tcommaaccent=611,t.Cacute=722,t.atilde=556,t.Edotaccent=667,t.scaron=500,t.scedilla=500,t.iacute=278,t.lozenge=471,t.Rcaron=722,t.Gcommaaccent=778,t.ucircumflex=556,t.acircumflex=556,t.Amacron=667,t.rcaron=333,t.ccedilla=500,t.Zdotaccent=611,t.Thorn=667,t.Omacron=778,t.Racute=722,t.Sacute=667,t.dcaron=643,t.Umacron=722,t.uring=556,t.threesuperior=333,t.Ograve=778,t.Agrave=667,t.Abreve=667,t.multiply=584,t.uacute=556,t.Tcaron=611,t.partialdiff=476,t.ydieresis=500,t.Nacute=722,t.icircumflex=278,t.Ecircumflex=667,t.adieresis=556,t.edieresis=556,t.cacute=500,t.nacute=556,t.umacron=556,t.Ncaron=722,t.Iacute=278,t.plusminus=584,t.brokenbar=260,t.registered=737,t.Gbreve=778,t.Idotaccent=278,t.summation=600,t.Egrave=667,t.racute=333,t.omacron=556,t.Zacute=611,t.Zcaron=611,t.greaterequal=549,t.Eth=722,t.Ccedilla=722,t.lcommaaccent=222,t.tcaron=317,t.eogonek=556,t.Uogonek=722,t.Aacute=667,t.Adieresis=667,t.egrave=556,t.zacute=500,t.iogonek=222,t.Oacute=778,t.oacute=556,t.amacron=556,t.sacute=500,t.idieresis=278,t.Ocircumflex=778,t.Ugrave=722,t.Delta=612,t.thorn=556,t.twosuperior=333,t.Odieresis=778,t.mu=556,t.igrave=278,t.ohungarumlaut=556,t.Eogonek=667,t.dcroat=556,t.threequarters=834,t.Scedilla=667,t.lcaron=299,t.Kcommaaccent=667,t.Lacute=556,t.trademark=1e3,t.edotaccent=556,t.Igrave=278,t.Imacron=278,t.Lcaron=556,t.onehalf=834,t.lessequal=549,t.ocircumflex=556,t.ntilde=556,t.Uhungarumlaut=722,t.Eacute=667,t.emacron=556,t.gbreve=556,t.onequarter=834,t.Scaron=667,t.Scommaaccent=667,t.Ohungarumlaut=778,t.degree=400,t.ograve=556,t.Ccaron=722,t.ugrave=556,t.radical=453,t.Dcaron=722,t.rcommaaccent=333,t.Ntilde=722,t.otilde=556,t.Rcommaaccent=722,t.Lcommaaccent=556,t.Atilde=667,t.Aogonek=667,t.Aring=667,t.Otilde=778,t.zdotaccent=500,t.Ecaron=667,t.Iogonek=278,t.kcommaaccent=500,t.minus=584,t.Icircumflex=278,t.ncaron=556,t.tcommaaccent=278,t.logicalnot=584,t.odieresis=556,t.udieresis=556,t.notequal=549,t.gcommaaccent=556,t.eth=556,t.zcaron=500,t.ncommaaccent=556,t.onesuperior=333,t.imacron=278,t.Euro=556}),t.Symbol=ew(function(t){t.space=250,t.exclam=333,t.universal=713,t.numbersign=500,t.existential=549,t.percent=833,t.ampersand=778,t.suchthat=439,t.parenleft=333,t.parenright=333,t.asteriskmath=500,t.plus=549,t.comma=250,t.minus=549,t.period=250,t.slash=278,t.zero=500,t.one=500,t.two=500,t.three=500,t.four=500,t.five=500,t.six=500,t.seven=500,t.eight=500,t.nine=500,t.colon=278,t.semicolon=278,t.less=549,t.equal=549,t.greater=549,t.question=444,t.congruent=549,t.Alpha=722,t.Beta=667,t.Chi=722,t.Delta=612,t.Epsilon=611,t.Phi=763,t.Gamma=603,t.Eta=722,t.Iota=333,t.theta1=631,t.Kappa=722,t.Lambda=686,t.Mu=889,t.Nu=722,t.Omicron=722,t.Pi=768,t.Theta=741,t.Rho=556,t.Sigma=592,t.Tau=611,t.Upsilon=690,t.sigma1=439,t.Omega=768,t.Xi=645,t.Psi=795,t.Zeta=611,t.bracketleft=333,t.therefore=863,t.bracketright=333,t.perpendicular=658,t.underscore=500,t.radicalex=500,t.alpha=631,t.beta=549,t.chi=549,t.delta=494,t.epsilon=439,t.phi=521,t.gamma=411,t.eta=603,t.iota=329,t.phi1=603,t.kappa=549,t.lambda=549,t.mu=576,t.nu=521,t.omicron=549,t.pi=549,t.theta=521,t.rho=549,t.sigma=603,t.tau=439,t.upsilon=576,t.omega1=713,t.omega=686,t.xi=493,t.psi=686,t.zeta=494,t.braceleft=480,t.bar=200,t.braceright=480,t.similar=549,t.Euro=750,t.Upsilon1=620,t.minute=247,t.lessequal=549,t.fraction=167,t.infinity=713,t.florin=500,t.club=753,t.diamond=753,t.heart=753,t.spade=753,t.arrowboth=1042,t.arrowleft=987,t.arrowup=603,t.arrowright=987,t.arrowdown=603,t.degree=400,t.plusminus=549,t.second=411,t.greaterequal=549,t.multiply=549,t.proportional=713,t.partialdiff=494,t.bullet=460,t.divide=549,t.notequal=549,t.equivalence=549,t.approxequal=549,t.ellipsis=1e3,t.arrowvertex=603,t.arrowhorizex=1e3,t.carriagereturn=658,t.aleph=823,t.Ifraktur=686,t.Rfraktur=795,t.weierstrass=987,t.circlemultiply=768,t.circleplus=768,t.emptyset=823,t.intersection=768,t.union=768,t.propersuperset=713,t.reflexsuperset=713,t.notsubset=713,t.propersubset=713,t.reflexsubset=713,t.element=713,t.notelement=713,t.angle=768,t.gradient=713,t.registerserif=790,t.copyrightserif=790,t.trademarkserif=890,t.product=823,t.radical=549,t.dotmath=250,t.logicalnot=713,t.logicaland=603,t.logicalor=603,t.arrowdblboth=1042,t.arrowdblleft=987,t.arrowdblup=603,t.arrowdblright=987,t.arrowdbldown=603,t.lozenge=494,t.angleleft=329,t.registersans=790,t.copyrightsans=790,t.trademarksans=786,t.summation=713,t.parenlefttp=384,t.parenleftex=384,t.parenleftbt=384,t.bracketlefttp=384,t.bracketleftex=384,t.bracketleftbt=384,t.bracelefttp=494,t.braceleftmid=494,t.braceleftbt=494,t.braceex=494,t.angleright=329,t.integral=274,t.integraltp=686,t.integralex=686,t.integralbt=686,t.parenrighttp=384,t.parenrightex=384,t.parenrightbt=384,t.bracketrighttp=384,t.bracketrightex=384,t.bracketrightbt=384,t.bracerighttp=494,t.bracerightmid=494,t.bracerightbt=494,t.apple=790}),t["Times-Roman"]=ew(function(t){t.space=250,t.exclam=333,t.quotedbl=408,t.numbersign=500,t.dollar=500,t.percent=833,t.ampersand=778,t.quoteright=333,t.parenleft=333,t.parenright=333,t.asterisk=500,t.plus=564,t.comma=250,t.hyphen=333,t.period=250,t.slash=278,t.zero=500,t.one=500,t.two=500,t.three=500,t.four=500,t.five=500,t.six=500,t.seven=500,t.eight=500,t.nine=500,t.colon=278,t.semicolon=278,t.less=564,t.equal=564,t.greater=564,t.question=444,t.at=921,t.A=722,t.B=667,t.C=667,t.D=722,t.E=611,t.F=556,t.G=722,t.H=722,t.I=333,t.J=389,t.K=722,t.L=611,t.M=889,t.N=722,t.O=722,t.P=556,t.Q=722,t.R=667,t.S=556,t.T=611,t.U=722,t.V=722,t.W=944,t.X=722,t.Y=722,t.Z=611,t.bracketleft=333,t.backslash=278,t.bracketright=333,t.asciicircum=469,t.underscore=500,t.quoteleft=333,t.a=444,t.b=500,t.c=444,t.d=500,t.e=444,t.f=333,t.g=500,t.h=500,t.i=278,t.j=278,t.k=500,t.l=278,t.m=778,t.n=500,t.o=500,t.p=500,t.q=500,t.r=333,t.s=389,t.t=278,t.u=500,t.v=500,t.w=722,t.x=500,t.y=500,t.z=444,t.braceleft=480,t.bar=200,t.braceright=480,t.asciitilde=541,t.exclamdown=333,t.cent=500,t.sterling=500,t.fraction=167,t.yen=500,t.florin=500,t.section=500,t.currency=500,t.quotesingle=180,t.quotedblleft=444,t.guillemotleft=500,t.guilsinglleft=333,t.guilsinglright=333,t.fi=556,t.fl=556,t.endash=500,t.dagger=500,t.daggerdbl=500,t.periodcentered=250,t.paragraph=453,t.bullet=350,t.quotesinglbase=333,t.quotedblbase=444,t.quotedblright=444,t.guillemotright=500,t.ellipsis=1e3,t.perthousand=1e3,t.questiondown=444,t.grave=333,t.acute=333,t.circumflex=333,t.tilde=333,t.macron=333,t.breve=333,t.dotaccent=333,t.dieresis=333,t.ring=333,t.cedilla=333,t.hungarumlaut=333,t.ogonek=333,t.caron=333,t.emdash=1e3,t.AE=889,t.ordfeminine=276,t.Lslash=611,t.Oslash=722,t.OE=889,t.ordmasculine=310,t.ae=667,t.dotlessi=278,t.lslash=278,t.oslash=500,t.oe=722,t.germandbls=500,t.Idieresis=333,t.eacute=444,t.abreve=444,t.uhungarumlaut=500,t.ecaron=444,t.Ydieresis=722,t.divide=564,t.Yacute=722,t.Acircumflex=722,t.aacute=444,t.Ucircumflex=722,t.yacute=500,t.scommaaccent=389,t.ecircumflex=444,t.Uring=722,t.Udieresis=722,t.aogonek=444,t.Uacute=722,t.uogonek=500,t.Edieresis=611,t.Dcroat=722,t.commaaccent=250,t.copyright=760,t.Emacron=611,t.ccaron=444,t.aring=444,t.Ncommaaccent=722,t.lacute=278,t.agrave=444,t.Tcommaaccent=611,t.Cacute=667,t.atilde=444,t.Edotaccent=611,t.scaron=389,t.scedilla=389,t.iacute=278,t.lozenge=471,t.Rcaron=667,t.Gcommaaccent=722,t.ucircumflex=500,t.acircumflex=444,t.Amacron=722,t.rcaron=333,t.ccedilla=444,t.Zdotaccent=611,t.Thorn=556,t.Omacron=722,t.Racute=667,t.Sacute=556,t.dcaron=588,t.Umacron=722,t.uring=500,t.threesuperior=300,t.Ograve=722,t.Agrave=722,t.Abreve=722,t.multiply=564,t.uacute=500,t.Tcaron=611,t.partialdiff=476,t.ydieresis=500,t.Nacute=722,t.icircumflex=278,t.Ecircumflex=611,t.adieresis=444,t.edieresis=444,t.cacute=444,t.nacute=500,t.umacron=500,t.Ncaron=722,t.Iacute=333,t.plusminus=564,t.brokenbar=200,t.registered=760,t.Gbreve=722,t.Idotaccent=333,t.summation=600,t.Egrave=611,t.racute=333,t.omacron=500,t.Zacute=611,t.Zcaron=611,t.greaterequal=549,t.Eth=722,t.Ccedilla=667,t.lcommaaccent=278,t.tcaron=326,t.eogonek=444,t.Uogonek=722,t.Aacute=722,t.Adieresis=722,t.egrave=444,t.zacute=444,t.iogonek=278,t.Oacute=722,t.oacute=500,t.amacron=444,t.sacute=389,t.idieresis=278,t.Ocircumflex=722,t.Ugrave=722,t.Delta=612,t.thorn=500,t.twosuperior=300,t.Odieresis=722,t.mu=500,t.igrave=278,t.ohungarumlaut=500,t.Eogonek=611,t.dcroat=500,t.threequarters=750,t.Scedilla=556,t.lcaron=344,t.Kcommaaccent=722,t.Lacute=611,t.trademark=980,t.edotaccent=444,t.Igrave=333,t.Imacron=333,t.Lcaron=611,t.onehalf=750,t.lessequal=549,t.ocircumflex=500,t.ntilde=500,t.Uhungarumlaut=722,t.Eacute=611,t.emacron=444,t.gbreve=500,t.onequarter=750,t.Scaron=556,t.Scommaaccent=556,t.Ohungarumlaut=722,t.degree=400,t.ograve=500,t.Ccaron=667,t.ugrave=500,t.radical=453,t.Dcaron=722,t.rcommaaccent=333,t.Ntilde=722,t.otilde=500,t.Rcommaaccent=667,t.Lcommaaccent=611,t.Atilde=722,t.Aogonek=722,t.Aring=722,t.Otilde=722,t.zdotaccent=444,t.Ecaron=611,t.Iogonek=333,t.kcommaaccent=500,t.minus=564,t.Icircumflex=333,t.ncaron=500,t.tcommaaccent=278,t.logicalnot=564,t.odieresis=500,t.udieresis=500,t.notequal=549,t.gcommaaccent=500,t.eth=500,t.zcaron=444,t.ncommaaccent=500,t.onesuperior=300,t.imacron=278,t.Euro=500}),t["Times-Bold"]=ew(function(t){t.space=250,t.exclam=333,t.quotedbl=555,t.numbersign=500,t.dollar=500,t.percent=1e3,t.ampersand=833,t.quoteright=333,t.parenleft=333,t.parenright=333,t.asterisk=500,t.plus=570,t.comma=250,t.hyphen=333,t.period=250,t.slash=278,t.zero=500,t.one=500,t.two=500,t.three=500,t.four=500,t.five=500,t.six=500,t.seven=500,t.eight=500,t.nine=500,t.colon=333,t.semicolon=333,t.less=570,t.equal=570,t.greater=570,t.question=500,t.at=930,t.A=722,t.B=667,t.C=722,t.D=722,t.E=667,t.F=611,t.G=778,t.H=778,t.I=389,t.J=500,t.K=778,t.L=667,t.M=944,t.N=722,t.O=778,t.P=611,t.Q=778,t.R=722,t.S=556,t.T=667,t.U=722,t.V=722,t.W=1e3,t.X=722,t.Y=722,t.Z=667,t.bracketleft=333,t.backslash=278,t.bracketright=333,t.asciicircum=581,t.underscore=500,t.quoteleft=333,t.a=500,t.b=556,t.c=444,t.d=556,t.e=444,t.f=333,t.g=500,t.h=556,t.i=278,t.j=333,t.k=556,t.l=278,t.m=833,t.n=556,t.o=500,t.p=556,t.q=556,t.r=444,t.s=389,t.t=333,t.u=556,t.v=500,t.w=722,t.x=500,t.y=500,t.z=444,t.braceleft=394,t.bar=220,t.braceright=394,t.asciitilde=520,t.exclamdown=333,t.cent=500,t.sterling=500,t.fraction=167,t.yen=500,t.florin=500,t.section=500,t.currency=500,t.quotesingle=278,t.quotedblleft=500,t.guillemotleft=500,t.guilsinglleft=333,t.guilsinglright=333,t.fi=556,t.fl=556,t.endash=500,t.dagger=500,t.daggerdbl=500,t.periodcentered=250,t.paragraph=540,t.bullet=350,t.quotesinglbase=333,t.quotedblbase=500,t.quotedblright=500,t.guillemotright=500,t.ellipsis=1e3,t.perthousand=1e3,t.questiondown=500,t.grave=333,t.acute=333,t.circumflex=333,t.tilde=333,t.macron=333,t.breve=333,t.dotaccent=333,t.dieresis=333,t.ring=333,t.cedilla=333,t.hungarumlaut=333,t.ogonek=333,t.caron=333,t.emdash=1e3,t.AE=1e3,t.ordfeminine=300,t.Lslash=667,t.Oslash=778,t.OE=1e3,t.ordmasculine=330,t.ae=722,t.dotlessi=278,t.lslash=278,t.oslash=500,t.oe=722,t.germandbls=556,t.Idieresis=389,t.eacute=444,t.abreve=500,t.uhungarumlaut=556,t.ecaron=444,t.Ydieresis=722,t.divide=570,t.Yacute=722,t.Acircumflex=722,t.aacute=500,t.Ucircumflex=722,t.yacute=500,t.scommaaccent=389,t.ecircumflex=444,t.Uring=722,t.Udieresis=722,t.aogonek=500,t.Uacute=722,t.uogonek=556,t.Edieresis=667,t.Dcroat=722,t.commaaccent=250,t.copyright=747,t.Emacron=667,t.ccaron=444,t.aring=500,t.Ncommaaccent=722,t.lacute=278,t.agrave=500,t.Tcommaaccent=667,t.Cacute=722,t.atilde=500,t.Edotaccent=667,t.scaron=389,t.scedilla=389,t.iacute=278,t.lozenge=494,t.Rcaron=722,t.Gcommaaccent=778,t.ucircumflex=556,t.acircumflex=500,t.Amacron=722,t.rcaron=444,t.ccedilla=444,t.Zdotaccent=667,t.Thorn=611,t.Omacron=778,t.Racute=722,t.Sacute=556,t.dcaron=672,t.Umacron=722,t.uring=556,t.threesuperior=300,t.Ograve=778,t.Agrave=722,t.Abreve=722,t.multiply=570,t.uacute=556,t.Tcaron=667,t.partialdiff=494,t.ydieresis=500,t.Nacute=722,t.icircumflex=278,t.Ecircumflex=667,t.adieresis=500,t.edieresis=444,t.cacute=444,t.nacute=556,t.umacron=556,t.Ncaron=722,t.Iacute=389,t.plusminus=570,t.brokenbar=220,t.registered=747,t.Gbreve=778,t.Idotaccent=389,t.summation=600,t.Egrave=667,t.racute=444,t.omacron=500,t.Zacute=667,t.Zcaron=667,t.greaterequal=549,t.Eth=722,t.Ccedilla=722,t.lcommaaccent=278,t.tcaron=416,t.eogonek=444,t.Uogonek=722,t.Aacute=722,t.Adieresis=722,t.egrave=444,t.zacute=444,t.iogonek=278,t.Oacute=778,t.oacute=500,t.amacron=500,t.sacute=389,t.idieresis=278,t.Ocircumflex=778,t.Ugrave=722,t.Delta=612,t.thorn=556,t.twosuperior=300,t.Odieresis=778,t.mu=556,t.igrave=278,t.ohungarumlaut=500,t.Eogonek=667,t.dcroat=556,t.threequarters=750,t.Scedilla=556,t.lcaron=394,t.Kcommaaccent=778,t.Lacute=667,t.trademark=1e3,t.edotaccent=444,t.Igrave=389,t.Imacron=389,t.Lcaron=667,t.onehalf=750,t.lessequal=549,t.ocircumflex=500,t.ntilde=556,t.Uhungarumlaut=722,t.Eacute=667,t.emacron=444,t.gbreve=500,t.onequarter=750,t.Scaron=556,t.Scommaaccent=556,t.Ohungarumlaut=778,t.degree=400,t.ograve=500,t.Ccaron=722,t.ugrave=556,t.radical=549,t.Dcaron=722,t.rcommaaccent=444,t.Ntilde=722,t.otilde=500,t.Rcommaaccent=722,t.Lcommaaccent=667,t.Atilde=722,t.Aogonek=722,t.Aring=722,t.Otilde=778,t.zdotaccent=444,t.Ecaron=667,t.Iogonek=389,t.kcommaaccent=556,t.minus=570,t.Icircumflex=389,t.ncaron=556,t.tcommaaccent=333,t.logicalnot=570,t.odieresis=500,t.udieresis=556,t.notequal=549,t.gcommaaccent=500,t.eth=500,t.zcaron=444,t.ncommaaccent=556,t.onesuperior=300,t.imacron=278,t.Euro=500}),t["Times-BoldItalic"]=ew(function(t){t.space=250,t.exclam=389,t.quotedbl=555,t.numbersign=500,t.dollar=500,t.percent=833,t.ampersand=778,t.quoteright=333,t.parenleft=333,t.parenright=333,t.asterisk=500,t.plus=570,t.comma=250,t.hyphen=333,t.period=250,t.slash=278,t.zero=500,t.one=500,t.two=500,t.three=500,t.four=500,t.five=500,t.six=500,t.seven=500,t.eight=500,t.nine=500,t.colon=333,t.semicolon=333,t.less=570,t.equal=570,t.greater=570,t.question=500,t.at=832,t.A=667,t.B=667,t.C=667,t.D=722,t.E=667,t.F=667,t.G=722,t.H=778,t.I=389,t.J=500,t.K=667,t.L=611,t.M=889,t.N=722,t.O=722,t.P=611,t.Q=722,t.R=667,t.S=556,t.T=611,t.U=722,t.V=667,t.W=889,t.X=667,t.Y=611,t.Z=611,t.bracketleft=333,t.backslash=278,t.bracketright=333,t.asciicircum=570,t.underscore=500,t.quoteleft=333,t.a=500,t.b=500,t.c=444,t.d=500,t.e=444,t.f=333,t.g=500,t.h=556,t.i=278,t.j=278,t.k=500,t.l=278,t.m=778,t.n=556,t.o=500,t.p=500,t.q=500,t.r=389,t.s=389,t.t=278,t.u=556,t.v=444,t.w=667,t.x=500,t.y=444,t.z=389,t.braceleft=348,t.bar=220,t.braceright=348,t.asciitilde=570,t.exclamdown=389,t.cent=500,t.sterling=500,t.fraction=167,t.yen=500,t.florin=500,t.section=500,t.currency=500,t.quotesingle=278,t.quotedblleft=500,t.guillemotleft=500,t.guilsinglleft=333,t.guilsinglright=333,t.fi=556,t.fl=556,t.endash=500,t.dagger=500,t.daggerdbl=500,t.periodcentered=250,t.paragraph=500,t.bullet=350,t.quotesinglbase=333,t.quotedblbase=500,t.quotedblright=500,t.guillemotright=500,t.ellipsis=1e3,t.perthousand=1e3,t.questiondown=500,t.grave=333,t.acute=333,t.circumflex=333,t.tilde=333,t.macron=333,t.breve=333,t.dotaccent=333,t.dieresis=333,t.ring=333,t.cedilla=333,t.hungarumlaut=333,t.ogonek=333,t.caron=333,t.emdash=1e3,t.AE=944,t.ordfeminine=266,t.Lslash=611,t.Oslash=722,t.OE=944,t.ordmasculine=300,t.ae=722,t.dotlessi=278,t.lslash=278,t.oslash=500,t.oe=722,t.germandbls=500,t.Idieresis=389,t.eacute=444,t.abreve=500,t.uhungarumlaut=556,t.ecaron=444,t.Ydieresis=611,t.divide=570,t.Yacute=611,t.Acircumflex=667,t.aacute=500,t.Ucircumflex=722,t.yacute=444,t.scommaaccent=389,t.ecircumflex=444,t.Uring=722,t.Udieresis=722,t.aogonek=500,t.Uacute=722,t.uogonek=556,t.Edieresis=667,t.Dcroat=722,t.commaaccent=250,t.copyright=747,t.Emacron=667,t.ccaron=444,t.aring=500,t.Ncommaaccent=722,t.lacute=278,t.agrave=500,t.Tcommaaccent=611,t.Cacute=667,t.atilde=500,t.Edotaccent=667,t.scaron=389,t.scedilla=389,t.iacute=278,t.lozenge=494,t.Rcaron=667,t.Gcommaaccent=722,t.ucircumflex=556,t.acircumflex=500,t.Amacron=667,t.rcaron=389,t.ccedilla=444,t.Zdotaccent=611,t.Thorn=611,t.Omacron=722,t.Racute=667,t.Sacute=556,t.dcaron=608,t.Umacron=722,t.uring=556,t.threesuperior=300,t.Ograve=722,t.Agrave=667,t.Abreve=667,t.multiply=570,t.uacute=556,t.Tcaron=611,t.partialdiff=494,t.ydieresis=444,t.Nacute=722,t.icircumflex=278,t.Ecircumflex=667,t.adieresis=500,t.edieresis=444,t.cacute=444,t.nacute=556,t.umacron=556,t.Ncaron=722,t.Iacute=389,t.plusminus=570,t.brokenbar=220,t.registered=747,t.Gbreve=722,t.Idotaccent=389,t.summation=600,t.Egrave=667,t.racute=389,t.omacron=500,t.Zacute=611,t.Zcaron=611,t.greaterequal=549,t.Eth=722,t.Ccedilla=667,t.lcommaaccent=278,t.tcaron=366,t.eogonek=444,t.Uogonek=722,t.Aacute=667,t.Adieresis=667,t.egrave=444,t.zacute=389,t.iogonek=278,t.Oacute=722,t.oacute=500,t.amacron=500,t.sacute=389,t.idieresis=278,t.Ocircumflex=722,t.Ugrave=722,t.Delta=612,t.thorn=500,t.twosuperior=300,t.Odieresis=722,t.mu=576,t.igrave=278,t.ohungarumlaut=500,t.Eogonek=667,t.dcroat=500,t.threequarters=750,t.Scedilla=556,t.lcaron=382,t.Kcommaaccent=667,t.Lacute=611,t.trademark=1e3,t.edotaccent=444,t.Igrave=389,t.Imacron=389,t.Lcaron=611,t.onehalf=750,t.lessequal=549,t.ocircumflex=500,t.ntilde=556,t.Uhungarumlaut=722,t.Eacute=667,t.emacron=444,t.gbreve=500,t.onequarter=750,t.Scaron=556,t.Scommaaccent=556,t.Ohungarumlaut=722,t.degree=400,t.ograve=500,t.Ccaron=667,t.ugrave=556,t.radical=549,t.Dcaron=722,t.rcommaaccent=389,t.Ntilde=722,t.otilde=500,t.Rcommaaccent=667,t.Lcommaaccent=611,t.Atilde=667,t.Aogonek=667,t.Aring=667,t.Otilde=722,t.zdotaccent=389,t.Ecaron=667,t.Iogonek=389,t.kcommaaccent=500,t.minus=606,t.Icircumflex=389,t.ncaron=556,t.tcommaaccent=278,t.logicalnot=606,t.odieresis=500,t.udieresis=556,t.notequal=549,t.gcommaaccent=500,t.eth=500,t.zcaron=389,t.ncommaaccent=556,t.onesuperior=300,t.imacron=278,t.Euro=500}),t["Times-Italic"]=ew(function(t){t.space=250,t.exclam=333,t.quotedbl=420,t.numbersign=500,t.dollar=500,t.percent=833,t.ampersand=778,t.quoteright=333,t.parenleft=333,t.parenright=333,t.asterisk=500,t.plus=675,t.comma=250,t.hyphen=333,t.period=250,t.slash=278,t.zero=500,t.one=500,t.two=500,t.three=500,t.four=500,t.five=500,t.six=500,t.seven=500,t.eight=500,t.nine=500,t.colon=333,t.semicolon=333,t.less=675,t.equal=675,t.greater=675,t.question=500,t.at=920,t.A=611,t.B=611,t.C=667,t.D=722,t.E=611,t.F=611,t.G=722,t.H=722,t.I=333,t.J=444,t.K=667,t.L=556,t.M=833,t.N=667,t.O=722,t.P=611,t.Q=722,t.R=611,t.S=500,t.T=556,t.U=722,t.V=611,t.W=833,t.X=611,t.Y=556,t.Z=556,t.bracketleft=389,t.backslash=278,t.bracketright=389,t.asciicircum=422,t.underscore=500,t.quoteleft=333,t.a=500,t.b=500,t.c=444,t.d=500,t.e=444,t.f=278,t.g=500,t.h=500,t.i=278,t.j=278,t.k=444,t.l=278,t.m=722,t.n=500,t.o=500,t.p=500,t.q=500,t.r=389,t.s=389,t.t=278,t.u=500,t.v=444,t.w=667,t.x=444,t.y=444,t.z=389,t.braceleft=400,t.bar=275,t.braceright=400,t.asciitilde=541,t.exclamdown=389,t.cent=500,t.sterling=500,t.fraction=167,t.yen=500,t.florin=500,t.section=500,t.currency=500,t.quotesingle=214,t.quotedblleft=556,t.guillemotleft=500,t.guilsinglleft=333,t.guilsinglright=333,t.fi=500,t.fl=500,t.endash=500,t.dagger=500,t.daggerdbl=500,t.periodcentered=250,t.paragraph=523,t.bullet=350,t.quotesinglbase=333,t.quotedblbase=556,t.quotedblright=556,t.guillemotright=500,t.ellipsis=889,t.perthousand=1e3,t.questiondown=500,t.grave=333,t.acute=333,t.circumflex=333,t.tilde=333,t.macron=333,t.breve=333,t.dotaccent=333,t.dieresis=333,t.ring=333,t.cedilla=333,t.hungarumlaut=333,t.ogonek=333,t.caron=333,t.emdash=889,t.AE=889,t.ordfeminine=276,t.Lslash=556,t.Oslash=722,t.OE=944,t.ordmasculine=310,t.ae=667,t.dotlessi=278,t.lslash=278,t.oslash=500,t.oe=667,t.germandbls=500,t.Idieresis=333,t.eacute=444,t.abreve=500,t.uhungarumlaut=500,t.ecaron=444,t.Ydieresis=556,t.divide=675,t.Yacute=556,t.Acircumflex=611,t.aacute=500,t.Ucircumflex=722,t.yacute=444,t.scommaaccent=389,t.ecircumflex=444,t.Uring=722,t.Udieresis=722,t.aogonek=500,t.Uacute=722,t.uogonek=500,t.Edieresis=611,t.Dcroat=722,t.commaaccent=250,t.copyright=760,t.Emacron=611,t.ccaron=444,t.aring=500,t.Ncommaaccent=667,t.lacute=278,t.agrave=500,t.Tcommaaccent=556,t.Cacute=667,t.atilde=500,t.Edotaccent=611,t.scaron=389,t.scedilla=389,t.iacute=278,t.lozenge=471,t.Rcaron=611,t.Gcommaaccent=722,t.ucircumflex=500,t.acircumflex=500,t.Amacron=611,t.rcaron=389,t.ccedilla=444,t.Zdotaccent=556,t.Thorn=611,t.Omacron=722,t.Racute=611,t.Sacute=500,t.dcaron=544,t.Umacron=722,t.uring=500,t.threesuperior=300,t.Ograve=722,t.Agrave=611,t.Abreve=611,t.multiply=675,t.uacute=500,t.Tcaron=556,t.partialdiff=476,t.ydieresis=444,t.Nacute=667,t.icircumflex=278,t.Ecircumflex=611,t.adieresis=500,t.edieresis=444,t.cacute=444,t.nacute=500,t.umacron=500,t.Ncaron=667,t.Iacute=333,t.plusminus=675,t.brokenbar=275,t.registered=760,t.Gbreve=722,t.Idotaccent=333,t.summation=600,t.Egrave=611,t.racute=389,t.omacron=500,t.Zacute=556,t.Zcaron=556,t.greaterequal=549,t.Eth=722,t.Ccedilla=667,t.lcommaaccent=278,t.tcaron=300,t.eogonek=444,t.Uogonek=722,t.Aacute=611,t.Adieresis=611,t.egrave=444,t.zacute=389,t.iogonek=278,t.Oacute=722,t.oacute=500,t.amacron=500,t.sacute=389,t.idieresis=278,t.Ocircumflex=722,t.Ugrave=722,t.Delta=612,t.thorn=500,t.twosuperior=300,t.Odieresis=722,t.mu=500,t.igrave=278,t.ohungarumlaut=500,t.Eogonek=611,t.dcroat=500,t.threequarters=750,t.Scedilla=500,t.lcaron=300,t.Kcommaaccent=667,t.Lacute=556,t.trademark=980,t.edotaccent=444,t.Igrave=333,t.Imacron=333,t.Lcaron=611,t.onehalf=750,t.lessequal=549,t.ocircumflex=500,t.ntilde=500,t.Uhungarumlaut=722,t.Eacute=611,t.emacron=444,t.gbreve=500,t.onequarter=750,t.Scaron=500,t.Scommaaccent=500,t.Ohungarumlaut=722,t.degree=400,t.ograve=500,t.Ccaron=667,t.ugrave=500,t.radical=453,t.Dcaron=722,t.rcommaaccent=389,t.Ntilde=667,t.otilde=500,t.Rcommaaccent=611,t.Lcommaaccent=556,t.Atilde=611,t.Aogonek=611,t.Aring=611,t.Otilde=722,t.zdotaccent=389,t.Ecaron=611,t.Iogonek=333,t.kcommaaccent=444,t.minus=675,t.Icircumflex=333,t.ncaron=500,t.tcommaaccent=278,t.logicalnot=675,t.odieresis=500,t.udieresis=500,t.notequal=549,t.gcommaaccent=500,t.eth=500,t.zcaron=389,t.ncommaaccent=500,t.onesuperior=300,t.imacron=278,t.Euro=500}),t.ZapfDingbats=ew(function(t){t.space=278,t.a1=974,t.a2=961,t.a202=974,t.a3=980,t.a4=719,t.a5=789,t.a119=790,t.a118=791,t.a117=690,t.a11=960,t.a12=939,t.a13=549,t.a14=855,t.a15=911,t.a16=933,t.a105=911,t.a17=945,t.a18=974,t.a19=755,t.a20=846,t.a21=762,t.a22=761,t.a23=571,t.a24=677,t.a25=763,t.a26=760,t.a27=759,t.a28=754,t.a6=494,t.a7=552,t.a8=537,t.a9=577,t.a10=692,t.a29=786,t.a30=788,t.a31=788,t.a32=790,t.a33=793,t.a34=794,t.a35=816,t.a36=823,t.a37=789,t.a38=841,t.a39=823,t.a40=833,t.a41=816,t.a42=831,t.a43=923,t.a44=744,t.a45=723,t.a46=749,t.a47=790,t.a48=792,t.a49=695,t.a50=776,t.a51=768,t.a52=792,t.a53=759,t.a54=707,t.a55=708,t.a56=682,t.a57=701,t.a58=826,t.a59=815,t.a60=789,t.a61=789,t.a62=707,t.a63=687,t.a64=696,t.a65=689,t.a66=786,t.a67=787,t.a68=713,t.a69=791,t.a70=785,t.a71=791,t.a72=873,t.a73=761,t.a74=762,t.a203=762,t.a75=759,t.a204=759,t.a76=892,t.a77=892,t.a78=788,t.a79=784,t.a81=438,t.a82=138,t.a83=277,t.a84=415,t.a97=392,t.a98=392,t.a99=668,t.a100=668,t.a89=390,t.a90=390,t.a93=317,t.a94=317,t.a91=276,t.a92=276,t.a205=509,t.a85=509,t.a206=410,t.a86=410,t.a87=234,t.a88=234,t.a95=334,t.a96=334,t.a101=732,t.a102=544,t.a103=544,t.a104=910,t.a106=667,t.a107=760,t.a108=760,t.a112=776,t.a111=595,t.a110=694,t.a109=626,t.a120=788,t.a121=788,t.a122=788,t.a123=788,t.a124=788,t.a125=788,t.a126=788,t.a127=788,t.a128=788,t.a129=788,t.a130=788,t.a131=788,t.a132=788,t.a133=788,t.a134=788,t.a135=788,t.a136=788,t.a137=788,t.a138=788,t.a139=788,t.a140=788,t.a141=788,t.a142=788,t.a143=788,t.a144=788,t.a145=788,t.a146=788,t.a147=788,t.a148=788,t.a149=788,t.a150=788,t.a151=788,t.a152=788,t.a153=788,t.a154=788,t.a155=788,t.a156=788,t.a157=788,t.a158=788,t.a159=788,t.a160=894,t.a161=838,t.a163=1016,t.a164=458,t.a196=748,t.a165=924,t.a192=748,t.a166=918,t.a167=927,t.a168=928,t.a169=928,t.a170=834,t.a171=873,t.a172=828,t.a173=924,t.a162=924,t.a174=917,t.a175=930,t.a176=931,t.a177=463,t.a178=883,t.a179=836,t.a193=836,t.a180=867,t.a199=867,t.a181=696,t.a200=696,t.a182=874,t.a201=874,t.a183=760,t.a184=946,t.a197=771,t.a185=865,t.a194=771,t.a198=888,t.a186=967,t.a195=888,t.a187=831,t.a188=873,t.a189=927,t.a190=970,t.a191=918})}),rV=ew(function(t){t.Courier={ascent:629,descent:-157,capHeight:562,xHeight:-426},t["Courier-Bold"]={ascent:629,descent:-157,capHeight:562,xHeight:439},t["Courier-Oblique"]={ascent:629,descent:-157,capHeight:562,xHeight:426},t["Courier-BoldOblique"]={ascent:629,descent:-157,capHeight:562,xHeight:426},t.Helvetica={ascent:718,descent:-207,capHeight:718,xHeight:523},t["Helvetica-Bold"]={ascent:718,descent:-207,capHeight:718,xHeight:532},t["Helvetica-Oblique"]={ascent:718,descent:-207,capHeight:718,xHeight:523},t["Helvetica-BoldOblique"]={ascent:718,descent:-207,capHeight:718,xHeight:532},t["Times-Roman"]={ascent:683,descent:-217,capHeight:662,xHeight:450},t["Times-Bold"]={ascent:683,descent:-217,capHeight:676,xHeight:461},t["Times-Italic"]={ascent:683,descent:-217,capHeight:653,xHeight:441},t["Times-BoldItalic"]={ascent:683,descent:-217,capHeight:669,xHeight:462},t.Symbol={ascent:Math.NaN,descent:Math.NaN,capHeight:Math.NaN,xHeight:Math.NaN},t.ZapfDingbats={ascent:Math.NaN,descent:Math.NaN,capHeight:Math.NaN,xHeight:Math.NaN}});class rX{constructor({glyfTable:t,isGlyphLocationsLong:a,locaTable:r,numGlyphs:i}){this.glyphs=[];let n=new DataView(r.buffer,r.byteOffset,r.byteLength),s=new DataView(t.buffer,t.byteOffset,t.byteLength),o=a?4:2,l=a?n.getUint32(0):2*n.getUint16(0),c=0;for(let t=0;t<i;t++){c+=o;let t=a?n.getUint32(c):2*n.getUint16(c);if(t===l){this.glyphs.push(new rK({}));continue}let r=rK.parse(l,s);this.glyphs.push(r),l=t}}getSize(){return Math.sumPrecise(this.glyphs.map(t=>t.getSize()+3&-4))}write(){let t=this.getSize(),a=new DataView(new ArrayBuffer(t)),r=t>131070,i=r?4:2,n=new DataView(new ArrayBuffer((this.glyphs.length+1)*i));r?n.setUint32(0,0):n.setUint16(0,0);let s=0,o=0;for(let t of this.glyphs)s+=t.write(s,a),s=s+3&-4,o+=i,r?n.setUint32(o,s):n.setUint16(o,s>>1);return{isLocationLong:r,loca:new Uint8Array(n.buffer),glyf:new Uint8Array(a.buffer)}}scale(t){for(let a=0,r=this.glyphs.length;a<r;a++)this.glyphs[a].scale(t[a])}}class rK{constructor({header:t=null,simple:a=null,composites:r=null}){this.header=t,this.simple=a,this.composites=r}static parse(t,a){let[r,i]=rY.parse(t,a);if(t+=r,i.numberOfContours<0){let r=[];for(;;){let[i,n]=rQ.parse(t,a);if(t+=i,r.push(n),!(32&n.flags))break}return new rK({header:i,composites:r})}let n=rZ.parse(t,a,i.numberOfContours);return new rK({header:i,simple:n})}getSize(){if(!this.header)return 0;let t=this.simple?this.simple.getSize():Math.sumPrecise(this.composites.map(t=>t.getSize()));return this.header.getSize()+t}write(t,a){if(!this.header)return 0;let r=t;if(t+=this.header.write(t,a),this.simple)t+=this.simple.write(t,a);else for(let r of this.composites)t+=r.write(t,a);return t-r}scale(t){if(!this.header)return;let a=(this.header.xMin+this.header.xMax)/2;if(this.header.scale(a,t),this.simple)this.simple.scale(a,t);else for(let r of this.composites)r.scale(a,t)}}class rY{constructor({numberOfContours:t,xMin:a,yMin:r,xMax:i,yMax:n}){this.numberOfContours=t,this.xMin=a,this.yMin=r,this.xMax=i,this.yMax=n}static parse(t,a){return[10,new rY({numberOfContours:a.getInt16(t),xMin:a.getInt16(t+2),yMin:a.getInt16(t+4),xMax:a.getInt16(t+6),yMax:a.getInt16(t+8)})]}getSize(){return 10}write(t,a){return a.setInt16(t,this.numberOfContours),a.setInt16(t+2,this.xMin),a.setInt16(t+4,this.yMin),a.setInt16(t+6,this.xMax),a.setInt16(t+8,this.yMax),10}scale(t,a){this.xMin=Math.round(t+(this.xMin-t)*a),this.xMax=Math.round(t+(this.xMax-t)*a)}}class rJ{constructor({flags:t,xCoordinates:a,yCoordinates:r}){this.xCoordinates=a,this.yCoordinates=r,this.flags=t}}class rZ{constructor({contours:t,instructions:a}){this.contours=t,this.instructions=a}static parse(t,a,r){let i=[];for(let n=0;n<r;n++){let r=a.getUint16(t);t+=2,i.push(r)}let n=i[r-1]+1,s=a.getUint16(t);t+=2;let o=new Uint8Array(a).slice(t,t+s);t+=s;let l=[];for(let r=0;r<n;t++,r++){let i=a.getUint8(t);if(l.push(i),8&i){let n=a.getUint8(++t);i^=8;for(let t=0;t<n;t++)l.push(i);r+=n}}let c=[],h=[],u=[],f=[],d=[],g=0,p=0;for(let r=0;r<n;r++){let n=l[r];if(2&n){let r=a.getUint8(t++);p+=16&n?r:-r,h.push(p)}else 16&n||(p+=a.getInt16(t),t+=2),h.push(p);i[g]===r&&(g++,c.push(h),h=[])}p=0,g=0;for(let r=0;r<n;r++){let n=l[r];if(4&n){let r=a.getUint8(t++);p+=32&n?r:-r,u.push(p)}else 32&n||(p+=a.getInt16(t),t+=2),u.push(p);f.push(1&n|64&n),i[g]===r&&(h=c[g],g++,d.push(new rJ({flags:f,xCoordinates:h,yCoordinates:u})),u=[],f=[])}return new rZ({contours:d,instructions:o})}getSize(){let t=2*this.contours.length+2+this.instructions.length,a=0,r=0;for(let i of this.contours){t+=i.flags.length;for(let n=0,s=i.xCoordinates.length;n<s;n++){let s=i.xCoordinates[n],o=i.yCoordinates[n],l=Math.abs(s-a);l>255?t+=2:l>0&&(t+=1),a=s,(l=Math.abs(o-r))>255?t+=2:l>0&&(t+=1),r=o}}return t}write(t,a){let r=t,i=[],n=[],s=[],o=0,l=0;for(let r of this.contours){for(let t=0,a=r.xCoordinates.length;t<a;t++){let a=r.flags[t],c=r.xCoordinates[t],h=c-o;if(0===h)a|=16,i.push(0);else{let t=Math.abs(h);t<=255?(a|=h>=0?18:2,i.push(t)):i.push(h)}o=c;let u=r.yCoordinates[t];if(0==(h=u-l))a|=32,n.push(0);else{let t=Math.abs(h);t<=255?(a|=h>=0?36:4,n.push(t)):n.push(h)}l=u,s.push(a)}a.setUint16(t,i.length-1),t+=2}for(let r of(a.setUint16(t,this.instructions.length),t+=2,this.instructions.length&&(new Uint8Array(a.buffer,0,a.buffer.byteLength).set(this.instructions,t),t+=this.instructions.length),s))a.setUint8(t++,r);for(let r=0,n=i.length;r<n;r++){let n=i[r],o=s[r];2&o?a.setUint8(t++,n):16&o||(a.setInt16(t,n),t+=2)}for(let r=0,i=n.length;r<i;r++){let i=n[r],o=s[r];4&o?a.setUint8(t++,i):32&o||(a.setInt16(t,i),t+=2)}return t-r}scale(t,a){for(let r of this.contours)if(0!==r.xCoordinates.length)for(let i=0,n=r.xCoordinates.length;i<n;i++)r.xCoordinates[i]=Math.round(t+(r.xCoordinates[i]-t)*a)}}class rQ{constructor({flags:t,glyphIndex:a,argument1:r,argument2:i,transf:n,instructions:s}){this.flags=t,this.glyphIndex=a,this.argument1=r,this.argument2=i,this.transf=n,this.instructions=s}static parse(t,a){let r,i;let n=t,s=[],o=a.getUint16(t),l=a.getUint16(t+2);t+=4,1&o?(2&o?(r=a.getInt16(t),i=a.getInt16(t+2)):(r=a.getUint16(t),i=a.getUint16(t+2)),t+=4,o^=1):(2&o?(r=a.getInt8(t),i=a.getInt8(t+1)):(r=a.getUint8(t),i=a.getUint8(t+1)),t+=2),8&o?(s.push(a.getUint16(t)),t+=2):64&o?(s.push(a.getUint16(t),a.getUint16(t+2)),t+=4):128&o&&(s.push(a.getUint16(t),a.getUint16(t+2),a.getUint16(t+4),a.getUint16(t+6)),t+=8);let c=null;if(256&o){let r=a.getUint16(t);t+=2,c=new Uint8Array(a).slice(t,t+r),t+=r}return[t-n,new rQ({flags:o,glyphIndex:l,argument1:r,argument2:i,transf:s,instructions:c})]}getSize(){let t=4+2*this.transf.length;return 256&this.flags&&(t+=2+this.instructions.length),t+=2,2&this.flags?this.argument1>=-128&&this.argument1<=127&&this.argument2>=-128&&this.argument2<=127||(t+=2):this.argument1>=0&&this.argument1<=255&&this.argument2>=0&&this.argument2<=255||(t+=2),t}write(t,a){let r=t;return 2&this.flags?this.argument1>=-128&&this.argument1<=127&&this.argument2>=-128&&this.argument2<=127||(this.flags|=1):this.argument1>=0&&this.argument1<=255&&this.argument2>=0&&this.argument2<=255||(this.flags|=1),a.setUint16(t,this.flags),a.setUint16(t+2,this.glyphIndex),t+=4,1&this.flags?(2&this.flags?(a.setInt16(t,this.argument1),a.setInt16(t+2,this.argument2)):(a.setUint16(t,this.argument1),a.setUint16(t+2,this.argument2)),t+=4):(a.setUint8(t,this.argument1),a.setUint8(t+1,this.argument2),t+=2),256&this.flags&&(a.setUint16(t,this.instructions.length),t+=2,this.instructions.length&&(new Uint8Array(a.buffer,0,a.buffer.byteLength).set(this.instructions,t),t+=this.instructions.length)),t-r}scale(t,a){}}function r1(t,a,r){t[a]=r>>8&255,t[a+1]=255&r}function r0(t,a,r){t[a]=r>>24&255,t[a+1]=r>>16&255,t[a+2]=r>>8&255,t[a+3]=255&r}class r2{constructor(t){this.sfnt=t,this.tables=Object.create(null)}static getSearchParams(t,a){let r=1,i=0;for(;(r^t)>r;)r<<=1,i++;let n=r*a;return{range:n,entry:i,rangeShift:a*t-n}}toArray(){let t=this.sfnt,a=this.tables,r=Object.keys(a);r.sort();let i=r.length,n,s,o,l,c,h=12+16*i,u=[h];for(n=0;n<i;n++)h+=((l=a[r[n]]).length+3&-4)>>>0,u.push(h);let f=new Uint8Array(h);for(n=0;n<i;n++)l=a[r[n]],function(t,a,r){if(r instanceof Uint8Array)t.set(r,a);else if("string"==typeof r)for(let i=0,n=r.length;i<n;i++)t[a++]=255&r.charCodeAt(i);else for(let i of r)t[a++]=255&i}(f,u[n],l);"true"===t&&(t=P(65536)),f[0]=255&t.charCodeAt(0),f[1]=255&t.charCodeAt(1),f[2]=255&t.charCodeAt(2),f[3]=255&t.charCodeAt(3),r1(f,4,i);let d=r2.getSearchParams(i,16);for(r1(f,6,d.range),r1(f,8,d.entry),r1(f,10,d.rangeShift),h=12,n=0;n<i;n++){c=r[n],f[h]=255&c.charCodeAt(0),f[h+1]=255&c.charCodeAt(1),f[h+2]=255&c.charCodeAt(2),f[h+3]=255&c.charCodeAt(3);let t=0;for(s=u[n],o=u[n+1];s<o;s+=4)t=t+eN(f,s)>>>0;r0(f,h+4,t),r0(f,h+8,u[n]),r0(f,h+12,a[c].length),h+=16}return f}addTable(t,a){if(t in this.tables)throw Error("Table "+t+" already exists");this.tables[t]=a}}let r9=[4],r5=[5],r3=[6],r6=[7],r7=[8],r8=[12,35],r4=[14],ie=[21],it=[22],ia=[30],ir=[31];class ii{constructor(){this.width=0,this.lsb=0,this.flexing=!1,this.output=[],this.stack=[]}convert(t,a,r){let i=t.length,n,s,o,l=!1;for(let c=0;c<i;c++){let i=t[c];if(i<32){switch(12===i&&(i=(i<<8)+t[++c]),i){case 1:case 3:case 9:case 3072:case 3073:case 3074:case 3105:this.stack=[];break;case 4:if(this.flexing){if(this.stack.length<1){l=!0;break}let t=this.stack.pop();this.stack.push(0,t);break}l=this.executeCommand(1,r9);break;case 5:l=this.executeCommand(2,r5);break;case 6:l=this.executeCommand(1,r3);break;case 7:l=this.executeCommand(1,r6);break;case 8:l=this.executeCommand(6,r7);break;case 10:if(this.stack.length<1||!a[o=this.stack.pop()]){l=!0;break}l=this.convert(a[o],a,r);break;case 11:return l;case 13:if(this.stack.length<2){l=!0;break}n=this.stack.pop(),s=this.stack.pop(),this.lsb=s,this.width=n,this.stack.push(n,s),l=this.executeCommand(2,it);break;case 14:this.output.push(r4[0]);break;case 21:if(this.flexing)break;l=this.executeCommand(2,ie);break;case 22:if(this.flexing){this.stack.push(0);break}l=this.executeCommand(1,it);break;case 30:l=this.executeCommand(4,ia);break;case 31:l=this.executeCommand(4,ir);break;case 3078:if(r){let t=this.stack.at(-5);this.seac=this.stack.splice(-4,4),this.seac[0]+=this.lsb-t,l=this.executeCommand(0,r4)}else l=this.executeCommand(4,r4);break;case 3079:if(this.stack.length<4){l=!0;break}this.stack.pop(),n=this.stack.pop();let h=this.stack.pop();s=this.stack.pop(),this.lsb=s,this.width=n,this.stack.push(n,s,h),l=this.executeCommand(3,ie);break;case 3084:if(this.stack.length<2){l=!0;break}let u=this.stack.pop(),f=this.stack.pop();this.stack.push(f/u);break;case 3088:if(this.stack.length<2){l=!0;break}o=this.stack.pop();let d=this.stack.pop();if(0===o&&3===d){let t=this.stack.splice(-17,17);this.stack.push(t[2]+t[0],t[3]+t[1],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14]),l=this.executeCommand(13,r8,!0),this.flexing=!1,this.stack.push(t[15],t[16])}else 1===o&&0===d&&(this.flexing=!0);break;case 3089:break;default:v('Unknown type 1 charstring command of "'+i+'"')}if(l)break}else i<=246?i-=139:i=i<=250?256*(i-247)+t[++c]+108:i<=254?-256*(i-251)-t[++c]-108:(255&t[++c])<<24|(255&t[++c])<<16|(255&t[++c])<<8|255&t[++c],this.stack.push(i)}return l}executeCommand(t,a,r){let i=this.stack.length;if(t>i)return!0;let n=i-t;for(let t=n;t<i;t++){let a=this.stack[t];Number.isInteger(a)?this.output.push(28,a>>8&255,255&a):(a=65536*a|0,this.output.push(255,a>>24&255,a>>16&255,a>>8&255,255&a))}return this.output.push(...a),r?this.stack.splice(n,t):this.stack.length=0,!1}}function is(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function io(t,a,r){if(r>=t.length)return new Uint8Array(0);let i,n,s=0|a;for(i=0;i<r;i++)s=52845*(t[i]+s)+22719&65535;let o=t.length-r,l=new Uint8Array(o);for(i=r,n=0;n<o;i++,n++){let a=t[i];l[n]=a^s>>8,s=52845*(a+s)+22719&65535}return l}function il(t){return 47===t||91===t||93===t||123===t||125===t||40===t||41===t}class ic{constructor(t,a,r){if(a){let a=t.getBytes(),r=!((is(a[0])||eO(a[0]))&&is(a[1])&&is(a[2])&&is(a[3])&&is(a[4])&&is(a[5])&&is(a[6])&&is(a[7]));t=new tg(r?io(a,55665,4):function(t,a,r){let i,n,s=55665,o=t.length,l=new Uint8Array(o>>>1);for(i=0,n=0;i<o;i++){let a;let r=t[i];if(is(r)){for(i++;i<o&&!is(a=t[i]);)i++;if(i<o){let t=parseInt(String.fromCharCode(r,a),16);l[n++]=t^s>>8,s=52845*(t+s)+22719&65535}}}return l.slice(4,n)}(a,0,0))}this.seacAnalysisEnabled=!!r,this.stream=t,this.nextChar()}readNumberArray(){this.getToken();let t=[];for(;;){let a=this.getToken();if(null===a||"]"===a||"}"===a)break;t.push(parseFloat(a||0))}return t}readNumber(){let t=this.getToken();return parseFloat(t||0)}readInt(){let t=this.getToken();return 0|parseInt(t||0,10)}readBoolean(){return"true"===this.getToken()?1:0}nextChar(){return this.currentChar=this.stream.getByte()}prevChar(){return this.stream.skip(-2),this.currentChar=this.stream.getByte()}getToken(){let t=!1,a=this.currentChar;for(;;){if(-1===a)return null;if(t)10!==a&&13!==a||(t=!1);else if(37===a)t=!0;else if(!eO(a))break;a=this.nextChar()}if(il(a))return this.nextChar(),String.fromCharCode(a);let r="";do r+=String.fromCharCode(a),a=this.nextChar();while(a>=0&&!eO(a)&&!il(a))return r}readCharStrings(t,a){return -1===a?t:io(t,4330,a)}extractFontProgram(t){let a,r,i,n;let s=this.stream,o=[],l=[],c=Object.create(null);c.lenIV=4;let h={subrs:[],charstrings:[],properties:{privateData:c}};for(;null!==(a=this.getToken());)if("/"===a)switch(a=this.getToken()){case"CharStrings":for(this.getToken(),this.getToken(),this.getToken(),this.getToken();null!==(a=this.getToken())&&"end"!==a;){if("/"!==a)continue;let t=this.getToken();r=this.readInt(),this.getToken(),i=r>0?s.getBytes(r):new Uint8Array(0),n=h.properties.privateData.lenIV;let o=this.readCharStrings(i,n);this.nextChar(),"noaccess"===(a=this.getToken())?this.getToken():"/"===a&&this.prevChar(),l.push({glyph:t,encoded:o})}break;case"Subrs":for(this.readInt(),this.getToken();"dup"===this.getToken();){let t=this.readInt();r=this.readInt(),this.getToken(),i=r>0?s.getBytes(r):new Uint8Array(0),n=h.properties.privateData.lenIV;let l=this.readCharStrings(i,n);this.nextChar(),"noaccess"===(a=this.getToken())&&this.getToken(),o[t]=l}break;case"BlueValues":case"OtherBlues":case"FamilyBlues":case"FamilyOtherBlues":let t=this.readNumberArray();t.length>0&&t.length;break;case"StemSnapH":case"StemSnapV":h.properties.privateData[a]=this.readNumberArray();break;case"StdHW":case"StdVW":h.properties.privateData[a]=this.readNumberArray()[0];break;case"BlueShift":case"lenIV":case"BlueFuzz":case"BlueScale":case"LanguageGroup":h.properties.privateData[a]=this.readNumber();break;case"ExpansionFactor":h.properties.privateData[a]=this.readNumber()||.06;break;case"ForceBold":h.properties.privateData[a]=this.readBoolean()}for(let{encoded:a,glyph:r}of l){let i=new ii,n=i.convert(a,o,this.seacAnalysisEnabled),s=i.output;n&&(s=[14]);let l={glyphName:r,charstring:s,width:i.width,lsb:i.lsb,seac:i.seac};if(".notdef"===r?h.charstrings.unshift(l):h.charstrings.push(l),t.builtInEncoding){let a=t.builtInEncoding.indexOf(r);a>-1&&void 0===t.widths[a]&&a>=t.firstChar&&a<=t.lastChar&&(t.widths[a]=i.width)}}return h}extractFontHeader(t){let a;for(;null!==(a=this.getToken());)if("/"===a)switch(a=this.getToken()){case"FontMatrix":let r=this.readNumberArray();t.fontMatrix=r;break;case"Encoding":let i;let n=this.getToken();if(/^\d+$/.test(n)){i=[];let t=0|parseInt(n,10);this.getToken();for(let r=0;r<t;r++){for(a=this.getToken();"dup"!==a&&"def"!==a;)if(null===(a=this.getToken()))return;if("def"===a)break;let t=this.readInt();this.getToken();let r=this.getToken();i[t]=r,this.getToken()}}else i=a1(n);t.builtInEncoding=i;break;case"FontBBox":let s=this.readNumberArray();t.ascent=Math.max(s[3],s[1]),t.descent=Math.min(s[1],s[3]),t.ascentScaled=!0}}}function ih(t,a,r){let i=t.length,n=a.length,s=i-n,o=r,l=!1;for(;o<s;){let r=0;for(;r<n&&t[o+r]===a[r];)r++;if(r>=n){for(o+=r;o<i&&eO(t[o]);)o++;l=!0;break}o++}return{found:l,length:o}}class iu{constructor(t,a,r){let i=r.length1,n=(r.length2,a.peekBytes(6)),s=128===n[0]&&1===n[1];s&&(a.skip(6),i=n[5]<<24|n[4]<<16|n[3]<<8|n[2]);let o=function(t,a){let r,i,n,s;let o=[101,101,120,101,99],l=t.pos;try{i=(r=t.getBytes(a)).length}catch{}if(i===a&&(n=ih(r,o,a-2*o.length)).found&&n.length===a)return{stream:new tg(r),length:a};for(v('Invalid "Length1" property in Type1 font -- trying to recover.'),t.pos=l;0!==(n=ih(t.peekBytes(2048),o,0)).length;)if(t.pos+=n.length,n.found){s=t.pos-l;break}return(t.pos=l,s)?{stream:new tg(t.getBytes(s)),length:s}:(v('Unable to recover "Length1" property in Type1 font -- using as is.'),{stream:new tg(t.getBytes(a)),length:a})}(a,i);new ic(o.stream,!1,!0).extractFontHeader(r),s&&((n=a.getBytes(6))[5],n[4],n[3],n[2]);let l=function(t,a){let r=t.getBytes();if(0===r.length)throw new N("getEexecBlock - no font program found.");return{stream:new tg(r),length:r.length}}(a),c=new ic(l.stream,!0,!0).extractFontProgram(r);for(let t in c.properties)r[t]=c.properties[t];let h=c.charstrings,u=this.getType2Charstrings(h),f=this.getType2Subrs(c.subrs);this.charstrings=h,this.data=this.wrap(t,u,this.charstrings,f,r),this.seacs=this.getSeacs(c.charstrings)}get numGlyphs(){return this.charstrings.length+1}getCharset(){let t=[".notdef"];for(let{glyphName:a}of this.charstrings)t.push(a);return t}getGlyphMapping(t){let a,r;let i=this.charstrings;if(t.composite){let a=Object.create(null);for(let r=0,n=i.length;r<n;r++)a[t.cMap.charCodeOf(r)]=r+1;return a}let n=[".notdef"];for(r=0;r<i.length;r++)n.push(i[r].glyphName);let s=t.builtInEncoding;if(s)for(let t in a=Object.create(null),s)(r=n.indexOf(s[t]))>=0&&(a[t]=r);return re(t,a,n)}hasGlyphId(t){return!(t<0)&&!(t>=this.numGlyphs)&&(0===t||this.charstrings[t-1].charstring.length>0)}getSeacs(t){let a=[];for(let r=0,i=t.length;r<i;r++){let i=t[r];i.seac&&(a[r+1]=i.seac)}return a}getType2Charstrings(t){let a=[];for(let r of t)a.push(r.charstring);return a}getType2Subrs(t){let a,r=0,i=t.length;r=i<1133?107:i<33769?1131:32768;let n=[];for(a=0;a<r;a++)n.push([11]);for(a=0;a<i;a++)n.push(t[a]);return n}wrap(t,a,r,i,n){let s,o;let l=new rh;l.header=new ru(1,0,4,4),l.names=[t];let c=new rm;c.setByName("version",391),c.setByName("Notice",392),c.setByName("FullName",393),c.setByName("FamilyName",394),c.setByName("Weight",395),c.setByName("Encoding",null),c.setByName("FontMatrix",n.fontMatrix),c.setByName("FontBBox",n.bbox),c.setByName("charset",null),c.setByName("CharStrings",null),c.setByName("Private",null),l.topDict=c;let h=new rf;h.add("Version 0.11"),h.add("See original notice"),h.add(t),h.add(t),h.add("Medium"),l.strings=h,l.globalSubrIndex=new rd;let u=a.length,f=[".notdef"];for(s=0;s<u;s++){let t=r[s].glyphName;-1===rs.indexOf(t)&&h.add(t),f.push(t)}l.charset=new rx(!1,0,f);let d=new rd;for(d.add([139,14]),s=0;s<u;s++)d.add(a[s]);l.charStrings=d;let g=new ry;g.setByName("Subrs",null);let p=["BlueValues","OtherBlues","FamilyBlues","FamilyOtherBlues","StemSnapH","StemSnapV","BlueShift","BlueFuzz","BlueScale","LanguageGroup","ExpansionFactor","ForceBold","StdHW","StdVW"];for(s=0,o=p.length;s<o;s++){let t=p[s];if(!(t in n.privateData))continue;let a=n.privateData[t];if(Array.isArray(a))for(let t=a.length-1;t>0;t--)a[t]-=a[t-1];g.setByName(t,a)}l.topDict.privateDict=g;let m=new rd;for(s=0,o=i.length;s<o;s++)m.add(i[s]);return g.subrsIndex=m,new rC(l).compile()}}let id=[[57344,63743],[1048576,1114109]],ig=["ascent","bbox","black","bold","charProcOperatorList","cssFontInfo","data","defaultVMetrics","defaultWidth","descent","disableFontFace","fallbackName","fontExtraProperties","fontMatrix","isInvalidPDFjsFont","isType3Font","italic","loadedName","mimetype","missingFile","name","remeasure","systemFontInfo","vertical"],ip=["cMap","composite","defaultEncoding","differences","isMonospace","isSerifFont","isSymbolicFont","seacMap","subtype","toFontChar","toUnicode","type","vmetrics","widths"];function im(t){if(!t.fontMatrix||t.fontMatrix[0]===f[0])return;let a=.001/t.fontMatrix[0],r=t.widths;for(let t in r)r[t]*=a;t.defaultWidth*=a}function ib(t){if(!t.fallbackToUnicode||t.toUnicode instanceof rP)return;let a=[];for(let r in t.fallbackToUnicode)t.toUnicode.has(r)||(a[r]=t.fallbackToUnicode[r]);a.length>0&&t.toUnicode.amend(a)}class iy{constructor(t,a,r,i,n,s,o,l,c){this.originalCharCode=t,this.fontChar=a,this.unicode=r,this.accent=i,this.width=n,this.vmetric=s,this.operatorListId=o,this.isSpace=l,this.isInFont=c}get category(){return I(this,"category",function(t){let a=a7.get(t);if(a)return a;let r=t.match(a6),i={isWhitespace:!!r?.[1],isZeroWidthDiacritic:!!r?.[2],isInvisibleFormatMark:!!r?.[3]};return a7.set(t,i),i}(this.unicode),!0)}}function iw(t,a,r){t[a+1]=r,t[a]=r>>>8}function ix(t,a){let r=(t<<8)+a;return 32768&r?r-65536:r}function ik(t){return String.fromCharCode(t>>8&255,255&t)}function iv(t){return t>32767?t=32767:t<-32768&&(t=-32768),String.fromCharCode(t>>8&255,255&t)}function iA(t){return"ttcf"===D(t.peekBytes(4))}function iC(t,a){for(let r in a)t[+r]=a[r]}function iS(t,a,r){let i;let n=[];for(let r=0,s=t.length;r<s;r++)-1!==(i=a5(t[r],a))&&(n[r]=i);for(let t in r)-1!==(i=a5(r[t],a))&&(n[+t]=i);return n}function iI(t){return 3===t.platform&&1===t.encoding&&1033===t.language}function iT(t,a,r=!1){switch(a.length){case 1:return a.charCodeAt(0);case 2:return a.charCodeAt(0)<<8|a.charCodeAt(1)}let i=`Unsupported CID string (charCode ${t}): "${a}".`;if(r)throw new N(i);return v(i),a}function iB(t,a,r,i){let n=Object.create(null),s=new Map,o=[],l=new Set,c=0,h=id[0][0],u=id[c][1],f=t=>id[0][0]<=t&&t<=id[0][1]||id[1][0]<=t&&t<=id[1][1],d=null;for(let g in t){let p=t[g];if(!a(p))continue;if(h>u){if(++c>=id.length){v("Ran out of space in font private use area.");break}h=id[c][0],u=id[c][1]}let m=h++;0===p&&(p=r);let b=i.get(g);if("string"==typeof b){if(1===b.length)b=b.codePointAt(0);else{if(!d){d=new Map;for(let t=64256;t<=64335;t++){let a=String.fromCharCode(t).normalize("NFKD");a.length>1&&d.set(a,t)}}b=d.get(b)||b.codePointAt(0)}}!b||f(b)||l.has(p)||(s.set(b,p),l.add(p)),n[m]=p,o[g]=m}return{toFontChar:o,charCodeToGlyphId:n,toUnicodeExtraMap:s,nextAvailableFontCharCode:h}}function iF(t,a,r){let i=function(t,a,r){let i=[];for(let a in t)t[a]>=r||i.push({fontCharCode:0|a,glyphId:t[a]});if(a)for(let[t,n]of a)n>=r||i.push({fontCharCode:t,glyphId:n});0===i.length&&i.push({fontCharCode:0,glyphId:0}),i.sort((t,a)=>t.fontCharCode-a.fontCharCode);let n=[],s=i.length;for(let t=0;t<s;){let a=i[t].fontCharCode,r=[i[t].glyphId];++t;let o=a;for(;t<s&&o+1===i[t].fontCharCode&&(r.push(i[t].glyphId),++o,++t,65535!==o););n.push([a,o,r])}return n}(t,a,r),n=i.at(-1)[1]>65535?2:1,s,o,l,c,h="\x00\x00"+ik(n)+"\x00\x03\x00\x01"+P(4+8*n);for(s=i.length-1;s>=0&&!(i[s][0]<=65535);--s);let u=s+1;i[s][0]<65535&&65535===i[s][1]&&(i[s][1]=65534);let f=i[s][1]<65535?1:0,d=u+f,g=r2.getSearchParams(d,2),p,m,b,y,w="",x="",k="",v="",A="",C=0;for(s=0,o=u;s<o;s++){m=(p=i[s])[0],b=p[1],w+=ik(m),x+=ik(b);let t=!0;for(l=1,c=(y=p[2]).length;l<c;++l)if(y[l]!==y[l-1]+1){t=!1;break}if(t)k+=ik(y[0]-m&65535),v+=ik(0);else{let t=2*(d-s)+2*C;for(C+=b-m+1,k+=ik(0),v+=ik(t),l=0,c=y.length;l<c;++l)A+=ik(y[l])}}f>0&&(x+="\xff\xff",w+="\xff\xff",k+="\x00\x01",v+="\x00\x00");let S="\x00\x00"+ik(2*d)+ik(g.range)+ik(g.entry)+ik(g.rangeShift)+x+"\x00\x00"+w+k+v+A,I="",T="";if(n>1){for(h+="\x00\x03\x00\n"+P(4+8*n+4+S.length),I="",s=0,o=i.length;s<o;s++){m=(p=i[s])[0];let t=(y=p[2])[0];for(l=1,c=y.length;l<c;++l)y[l]!==y[l-1]+1&&(b=p[0]+l-1,I+=P(m)+P(b)+P(t),m=b+1,t=y[l]);I+=P(m)+P(p[1])+P(t)}T="\x00\f\x00\x00"+P(I.length+16)+"\x00\x00\x00\x00"+P(I.length/12)}return h+"\x00\x04"+ik(S.length+4)+S+T+I}function iM(t,a,r){r||={unitsPerEm:0,yMax:0,yMin:0,ascent:0,descent:0};let i=0,n=0,s=0,o=0,l=null,c=0,h=-1;if(a){for(let t in a)if((l>(t|=0)||!l)&&(l=t),c<t&&(c=t),(h=function(t,a=-1){if(-1!==a){let r=a3[a];for(let i=0,n=r.length;i<n;i+=2)if(t>=r[i]&&t<=r[i+1])return a}for(let a=0,r=a3.length;a<r;a++){let r=a3[a];for(let i=0,n=r.length;i<n;i+=2)if(t>=r[i]&&t<=r[i+1])return a}return -1}(t,h))<32)i|=1<<h;else if(h<64)n|=1<<h-32;else if(h<96)s|=1<<h-64;else{if(!(h<123))throw new N("Unicode ranges Bits > 123 are reserved for internal usage");o|=1<<h-96}c>65535&&(c=65535)}else l=0,c=255;let u=t.bbox||[0,0,0,0],f=r.unitsPerEm||(t.fontMatrix?1/Math.max(...t.fontMatrix.slice(0,4).map(Math.abs)):1e3),d=t.ascentScaled?1:f/1e3,g=r.ascent||Math.round(d*(t.ascent||u[3])),p=r.descent||Math.round(d*(t.descent||u[1]));p>0&&t.descent>0&&u[1]<0&&(p=-p);let m=r.yMax||g,b=-r.yMin||-p;return"\x00\x03\x02$\x01\xf4\x00\x05\x00\x00\x02\x8a\x02\xbb\x00\x00\x00\x8c\x02\x8a\x02\xbb\x00\x00\x01\xdf\x001\x01\x02\x00\x00\x00\x00\x06"+String.fromCharCode(t.fixedPitch?9:0)+"\x00\x00\x00\x00\x00\x00"+P(i)+P(n)+P(s)+P(o)+"*21*"+ik(t.italicAngle?1:0)+ik(l||t.firstChar)+ik(c||t.lastChar)+ik(g)+ik(p)+"\x00d"+ik(m)+ik(b)+"\x00\x00\x00\x00\x00\x00\x00\x00"+ik(t.xHeight)+ik(t.capHeight)+ik(0)+ik(l||t.firstChar)+"\x00\x03"}function iR(t){return"\x00\x03\x00\x00"+P(Math.floor(65536*t.italicAngle))+"\x00\x00\x00\x00"+P(t.fixedPitch?1:0)+"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"}function iN(t,a){let r,i,n,s,o;a||(a=[[],[]]);let l=[a[0][0]||"Original licence",a[0][1]||t,a[0][2]||"Unknown",a[0][3]||"uniqueID",a[0][4]||t,a[0][5]||"Version 0.11",a[0][6]||t.replaceAll(/[^\x21-\x7E]|[[\](){}<>/%]/g,"").slice(0,63),a[0][7]||"Unknown",a[0][8]||"Unknown",a[0][9]||"Unknown"],c=[];for(r=0,i=l.length;r<i;r++){o=a[1][r]||l[r];let t=[];for(n=0,s=o.length;n<s;n++)t.push(ik(o.charCodeAt(n)));c.push(t.join(""))}let h=[l,c],u=["\x00\x01","\x00\x03"],f=["\x00\x00","\x00\x01"],d=["\x00\x00","\x04	"],g=l.length*u.length,p="\x00\x00"+ik(g)+ik(12*g+6),m=0;for(r=0,i=u.length;r<i;r++){let t=h[r];for(n=0,s=t.length;n<s;n++)o=t[n],p+=u[r]+f[r]+d[r]+ik(n)+ik(o.length)+ik(m),m+=o.length}return p+(l.join("")+c.join(""))}class iO{constructor(t,a,r,i){let n;this.name=t,this.psName=null,this.mimetype=null,this.disableFontFace=i.disableFontFace,this.fontExtraProperties=i.fontExtraProperties,this.loadedName=r.loadedName,this.isType3Font=r.isType3Font,this.missingFile=!1,this.cssFontInfo=r.cssFontInfo,this._charsCache=Object.create(null),this._glyphCache=Object.create(null);let s=!!(2&r.flags);if(!s&&!r.isSimulatedFlags){let a=rS(),r=rT(),i=rB();for(let n of t.split("+")){let t=n.replaceAll(/[,_]/g,"-");if(i[t=(t=a[t]||r[t]||t).split("-",1)[0]]){s=!0;break}}}this.isSerifFont=s,this.isSymbolicFont=!!(4&r.flags),this.isMonospace=!!(1&r.flags);let{type:o,subtype:l}=r;this.type=o,this.subtype=l,this.systemFontInfo=r.systemFontInfo;let c=t.match(/^InvalidPDFjsFont_(.*)_\d+$/);if(this.isInvalidPDFjsFont=!!c,this.isInvalidPDFjsFont?this.fallbackName=c[1]:this.isMonospace?this.fallbackName="monospace":this.isSerifFont?this.fallbackName="serif":this.fallbackName="sans-serif",this.systemFontInfo?.guessFallback&&(this.systemFontInfo.guessFallback=!1,this.systemFontInfo.css+=`,${this.fallbackName}`),this.differences=r.differences,this.widths=r.widths,this.defaultWidth=r.defaultWidth,this.composite=r.composite,this.cMap=r.cMap,this.capHeight=r.capHeight/1e3,this.ascent=r.ascent/1e3,this.descent=r.descent/1e3,this.lineHeight=this.ascent-this.descent,this.fontMatrix=r.fontMatrix,this.bbox=r.bbox,this.defaultEncoding=r.defaultEncoding,this.toUnicode=r.toUnicode,this.toFontChar=[],"Type3"===r.type){for(let t=0;t<256;t++)this.toFontChar[t]=this.differences[t]||r.defaultEncoding[t];return}if(this.cidEncoding=r.cidEncoding||"",this.vertical=!!r.vertical,this.vertical&&(this.vmetrics=r.vmetrics,this.defaultVMetrics=r.defaultVMetrics),!a||a.isEmpty){a&&v('Font file is empty in "'+t+'" ('+this.loadedName+")"),this.fallbackToSystemFont(r);return}[o,l]=function(t,{type:a,subtype:r,composite:i}){let n,s;return function(t){let a=t.peekBytes(4);return 65536===eN(a,0)||"true"===D(a)}(t)||iA(t)?n=i?"CIDFontType2":"TrueType":"OTTO"===D(t.peekBytes(4))?n=i?"CIDFontType2":"OpenType":function(t){let a=t.peekBytes(2);return 37===a[0]&&33===a[1]||128===a[0]&&1===a[1]}(t)?n=i?"CIDFontType0":"MMType1"===a?"MMType1":"Type1":function(t){let a=t.peekBytes(4);return a[0]>=1&&a[3]>=1&&a[3]<=4}(t)?i?(n="CIDFontType0",s="CIDFontType0C"):(n="MMType1"===a?"MMType1":"Type1",s="Type1C"):(v("getFontFileType: Unable to detect correct font file Type/Subtype."),n=a,s=r),[n,s]}(a,r),o===this.type&&l===this.subtype||k(`Inconsistent font file Type/SubType, expected: ${this.type}/${this.subtype} but found: ${o}/${l}.`);try{switch(o){case"MMType1":k("MMType1 font ("+t+"), falling back to Type1.");case"Type1":case"CIDFontType0":this.mimetype="font/opentype";let i="Type1C"===l||"CIDFontType0C"===l?new r_(a,r):new iu(t,a,r);im(r),n=this.convert(t,i,r);break;case"OpenType":case"TrueType":case"CIDFontType2":this.mimetype="font/opentype",n=this.checkAndRepair(t,a,r),im(r),this.isOpenType&&(o="OpenType");break;default:throw new N(`Font ${o} is not supported`)}}catch(t){v(t),this.fallbackToSystemFont(r);return}ib(r),this.data=n,this.type=o,this.subtype=l,this.fontMatrix=r.fontMatrix,this.widths=r.widths,this.defaultWidth=r.defaultWidth,this.toUnicode=r.toUnicode,this.seacMap=r.seacMap}get renderer(){return I(this,"renderer",rG.create(this,!0))}exportData(){let t=Object.create(null);for(let a of ig){let r=this[a];void 0!==r&&(t[a]=r)}if(!this.fontExtraProperties)return{data:t};let a=Object.create(null);for(let t of ip){let r=this[t];void 0!==r&&(a[t]=r)}return{data:t,extra:a}}fallbackToSystemFont(t){this.missingFile=!0;let{name:a,type:r}=this,i=rt(a),n=rS(),s=rT(),o=!!n[i],l=!(!s[i]||!n[s[i]]);i=n[i]||s[i]||i;let c=rV()[i];c&&(isNaN(this.ascent)&&(this.ascent=c.ascent/1e3),isNaN(this.descent)&&(this.descent=c.descent/1e3),isNaN(this.capHeight)&&(this.capHeight=c.capHeight/1e3)),this.bold=/bold/gi.test(i),this.italic=/oblique|italic/gi.test(i),this.black=/Black/g.test(a);let h=/Narrow/g.test(a);if(this.remeasure=(!o||h)&&Object.keys(this.widths).length>0,(o||l)&&"CIDFontType2"===r&&this.cidEncoding.startsWith("Identity-")){let r=t.cidToGidMap,i=[];if(iC(i,rM()),/Arial-?Black/i.test(a)?iC(i,rR()):/Calibri/i.test(a)&&iC(i,rN()),r){for(let t in i){let a=i[t];void 0!==r[a]&&(i[+t]=r[a])}r.length!==this.toUnicode.length&&t.hasIncludedToUnicodeMap&&this.toUnicode instanceof rP&&this.toUnicode.forEach(function(t,a){let n=i[t];void 0===r[n]&&(i[+t]=a)})}this.toUnicode instanceof rP||this.toUnicode.forEach(function(t,a){i[+t]=a}),this.toFontChar=i,this.toUnicode=new rE(i)}else if(/Symbol/i.test(i))this.toFontChar=iS(aZ,a0(),this.differences);else if(/Dingbats/i.test(i))this.toFontChar=iS(aQ,a2(),this.differences);else if(o||l){let t=iS(this.defaultEncoding,a0(),this.differences);"CIDFontType2"!==r||this.cidEncoding.startsWith("Identity-")||this.toUnicode instanceof rP||this.toUnicode.forEach(function(a,r){t[+a]=r}),this.toFontChar=t}else{let t=a0(),r=[];this.toUnicode.forEach((a,i)=>{if(!this.composite){let r=a5(this.differences[a]||this.defaultEncoding[a],t);-1!==r&&(i=r)}r[+a]=i}),this.composite&&this.toUnicode instanceof rP&&/Tahoma|Verdana/i.test(a)&&iC(r,rM()),this.toFontChar=r}ib(t),this.loadedName=i.split("-",1)[0]}checkAndRepair(t,a,r){var i,n;let s,o,l,c;let h=["OS/2","cmap","head","hhea","hmtx","maxp","name","post","loca","glyf","fpgm","prep","cvt ","CFF "];function u(t,a){let r=Object.create(null);r["OS/2"]=null,r.cmap=null,r.head=null,r.hhea=null,r.hmtx=null,r.maxp=null,r.name=null,r.post=null;for(let i=0;i<a;i++){let a=function(t){let a=t.getString(4),r=t.getInt32()>>>0,i=t.getInt32()>>>0,n=t.getInt32()>>>0,s=t.pos;t.pos=t.start||0,t.skip(i);let o=t.getBytes(n);return t.pos=s,"head"===a&&(o[8]=o[9]=o[10]=o[11]=0,o[17]|=32),{tag:a,checksum:r,length:n,offset:i,data:o}}(t);h.includes(a.tag)&&0!==a.length&&(r[a.tag]=a)}return r}function f(t){return{version:t.getString(4),numTables:t.getUint16(),searchRange:t.getUint16(),entrySelector:t.getUint16(),rangeShift:t.getUint16()}}function d(t){let r,i;let n=(a.start||0)+t.offset;a.pos=n;let s=[[],[]],o=[],l=t.length,c=n+l;if(0!==a.getUint16()||l<6)return[s,o];let h=a.getUint16(),u=a.getUint16();for(r=0;r<h&&a.pos+12<=c;r++){let t={platform:a.getUint16(),encoding:a.getUint16(),language:a.getUint16(),name:a.getUint16(),length:a.getUint16(),offset:a.getUint16()};(1===t.platform&&0===t.encoding&&0===t.language||iI(t))&&o.push(t)}for(r=0,i=o.length;r<i;r++){let t=o[r];if(t.length<=0)continue;let i=n+u+t.offset;if(i+t.length>c)continue;a.pos=i;let l=t.name;if(t.encoding){let r="";for(let i=0,n=t.length;i<n;i+=2)r+=String.fromCharCode(a.getUint16());s[1][l]=r}else s[0][l]=a.getString(t.length)}return[s,o]}let g=[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 p(t,a){let r,i,n,s,o,l=t.data,c=0,h=0,u=0,f=[],d=[],p=[],m=a.tooComplexToFollowFunctions,b=!1,y=0,w=0;for(let t=l.length;c<t;){let t=l[c++];if(64===t){if(i=l[c++],b||w)c+=i;else for(r=0;r<i;r++)f.push(l[c++])}else if(65===t){if(i=l[c++],b||w)c+=2*i;else for(r=0;r<i;r++)n=l[c++],f.push(n<<8|l[c++])}else if(176==(248&t)){if(i=t-176+1,b||w)c+=i;else for(r=0;r<i;r++)f.push(l[c++])}else if(184==(248&t)){if(i=t-184+1,b||w)c+=2*i;else for(r=0;r<i;r++)n=l[c++],f.push(ix(n,l[c++]))}else if(43!==t||m){if(44!==t||m){if(45===t){if(b)b=!1,h=c;else{if(!(o=d.pop())){v("TT: ENDF bad stack"),a.hintsValid=!1;return}s=p.pop(),l=o.data,c=o.i,a.functionsStackDeltas[s]=f.length-o.stackTop}}else if(137===t)(b||w)&&(v("TT: nested IDEFs not allowed"),m=!0),b=!0,u=c;else if(88===t)++y;else if(27===t)w=y;else if(89===t)w===y&&(w=0),--y;else if(28===t&&!b&&!w){let t=f.at(-1);t>0&&(c+=t-1)}}else(b||w)&&(v("TT: nested FDEFs not allowed"),m=!0),b=!0,u=c,s=f.pop(),a.functionsDefined[s]={data:l,i:c}}else if(!b&&!w){if(isNaN(s=f.at(-1)))k("TT: CALL empty stack (or invalid entry).");else if(a.functionsUsed[s]=!0,s in a.functionsStackDeltas){let t=f.length+a.functionsStackDeltas[s];if(t<0){v("TT: CALL invalid functions stack delta."),a.hintsValid=!1;return}f.length=t}else if(s in a.functionsDefined&&!p.includes(s)){if(d.push({data:l,i:c,stackTop:f.length-1}),p.push(s),!(o=a.functionsDefined[s])){v("TT: CALL non-existent function"),a.hintsValid=!1;return}l=o.data,c=o.i}}if(!b&&!w){let a=0;for(t<=142?a=g[t]:t>=192&&t<=223?a=-1:t>=224&&(a=-2),t>=113&&t<=117&&(isNaN(i=f.pop())||(a=-(2*i)));a<0&&f.length>0;)f.pop(),a++;for(;a>0;)f.push(NaN),a--}}a.tooComplexToFollowFunctions=m;let x=[l];c>l.length&&x.push(new Uint8Array(c-l.length)),u>h&&(v("TT: complementing a missing function tail"),x.push(new Uint8Array([34,45]))),function(t,a){if(a.length>1){let r,i,n=0;for(r=0,i=a.length;r<i;r++)n+=a[r].length;n=n+3&-4;let s=new Uint8Array(n),o=0;for(r=0,i=a.length;r<i;r++)s.set(a[r],o),o+=a[r].length;t.data=s,t.length=n}}(t,x)}if(iA(a=new tg(new Uint8Array(a.getBytes())))){let t=function(t,a){let r;let{numFonts:i,offsetTable:n}=function(t){let a=t.getString(4);C("ttcf"===a,"Must be a TrueType Collection font.");let r=t.getUint16(),i=t.getUint16(),n=t.getInt32()>>>0,s=[];for(let a=0;a<n;a++)s.push(t.getInt32()>>>0);let o={ttcTag:a,majorVersion:r,minorVersion:i,numFonts:n,offsetTable:s};switch(r){case 1:return o;case 2:return o.dsigTag=t.getInt32()>>>0,o.dsigLength=t.getInt32()>>>0,o.dsigOffset=t.getInt32()>>>0,o}throw new N(`Invalid TrueType Collection majorVersion: ${r}.`)}(t),s=a.split("+");for(let o=0;o<i;o++){t.pos=(t.start||0)+n[o];let i=f(t),l=u(t,i.numTables);if(!l.name)throw new N('TrueType Collection font must contain a "name" table.');let[c]=d(l.name);for(let t=0,n=c.length;t<n;t++)for(let n=0,o=c[t].length;n<o;n++){let o=c[t][n]?.replaceAll(/\s/g,"");if(o){if(o===a)return{header:i,tables:l};if(!(s.length<2))for(let t of s)o===t&&(r={name:t,header:i,tables:l})}}}if(r)return v(`TrueType Collection does not contain "${a}" font, falling back to "${r.name}" font instead.`),{header:r.header,tables:r.tables};throw new N(`TrueType Collection does not contain "${a}" font.`)}(a,this.name);s=t.header,o=t.tables}else s=f(a),o=u(a,s.numTables);let m=!o["CFF "];if(m){if(!o.loca)throw new N('Required "loca" table is not found');o.glyf||(v('Required "glyf" table is not found -- trying to recover.'),o.glyf={tag:"glyf",data:new Uint8Array(0)}),this.isOpenType=!1}else{let a=r.composite&&(r.cidToGidMap?.length>0||!(r.cMap instanceof aU));if("OTTO"===s.version&&!a||!o.head||!o.hhea||!o.maxp||!o.post)return l=new r_(c=new tg(o["CFF "].data),r),this.convert(t,l,r);delete o.glyf,delete o.loca,delete o.fpgm,delete o.prep,delete o["cvt "],this.isOpenType=!0}if(!o.maxp)throw new N('Required "maxp" table is not found');a.pos=(a.start||0)+o.maxp.offset;let b=a.getInt32(),y=a.getUint16();if(65536!==b&&20480!==b){if(6===o.maxp.length)b=20480;else{if(!(o.maxp.length>=32))throw new N('"maxp" table has a wrong version number');b=65536}i=o.maxp.data,n=b,i[3]=255&n,i[2]=n>>>8,i[1]=n>>>16,i[0]=n>>>24}if(r.scaleFactors?.length===y&&m){let{scaleFactors:t}=r,a=(o.head.data[50]<<8)+o.head.data[51],i=new rX({glyfTable:o.glyf.data,isGlyphLocationsLong:a,locaTable:o.loca.data,numGlyphs:y});i.scale(t);let{glyf:n,loca:s,isLocationLong:l}=i.write();o.glyf.data=n,o.loca.data=s,!!a!==l&&(o.head.data[50]=0,o.head.data[51]=l?1:0);let c=o.hmtx.data;for(let a=0;a<y;a++){let r=4*a,i=Math.round(t[a]*((c[r]<<8)+c[r+1]));c[r]=i>>8&255,c[r+1]=255&i,iw(c,r+2,Math.round(t[a]*ix(c[r+2],c[r+3])))}}let w=y+1,x=!0;w>65535&&(x=!1,w=y,v("Not enough space in glyfs to duplicate first glyph."));let A=0,S=0;b>=65536&&o.maxp.length>=32&&(a.pos+=8,a.getUint16()>2&&(o.maxp.data[14]=0,o.maxp.data[15]=2),a.pos+=4,A=a.getUint16(),a.pos+=4,S=a.getUint16()),o.maxp.data[4]=w>>8,o.maxp.data[5]=255&w;let I=function(t,a,r,i){let n={functionsDefined:[],functionsUsed:[],functionsStackDeltas:[],tooComplexToFollowFunctions:!1,hintsValid:!0};if(t&&p(t,n),a&&p(a,n),t&&function(t,a){if(!t.tooComplexToFollowFunctions){if(t.functionsDefined.length>a)v("TT: more functions defined than expected"),t.hintsValid=!1;else for(let r=0,i=t.functionsUsed.length;r<i;r++){if(r>a){v("TT: invalid function id: "+r),t.hintsValid=!1;return}if(t.functionsUsed[r]&&!t.functionsDefined[r]){v("TT: undefined function: "+r),t.hintsValid=!1;return}}}}(n,i),r&&1&r.length){let t=new Uint8Array(r.length+1);t.set(r.data),r.data=t}return n.hintsValid}(o.fpgm,o.prep,o["cvt "],A);if(I||(delete o.fpgm,delete o.prep,delete o["cvt "]),function(t,a,r,i,n,s){if(!a){r&&(r.data=null);return}t.pos=(t.start||0)+a.offset,t.pos+=4,t.pos+=2,t.pos+=2,t.pos+=2,t.pos+=2,t.pos+=2,t.pos+=2,t.pos+=2,t.pos+=2,t.pos+=2;let o=t.getUint16();t.pos+=8,t.pos+=2;let l=t.getUint16();0!==o&&(2&(i.data[44]<<8)+i.data[45]||(a.data[22]=0,a.data[23]=0)),l>n&&(k(`The numOfMetrics (${l}) should not be greater than the numGlyphs (${n}).`),l=n,a.data[34]=(65280&l)>>8,a.data[35]=255&l);let c=n-l-(r.length-4*l>>1);if(c>0){let t=new Uint8Array(r.length+2*c);t.set(r.data),s&&(t[r.length]=r.data[2],t[r.length+1]=r.data[3]),r.data=t}}(a,o.hhea,o.hmtx,o.head,w,x),!o.head)throw new N('Required "head" table is not found');!function(t,a,r){var i;let n=t.data,s=(i=n[0],(i<<24)+(n[1]<<16)+(n[2]<<8)+n[3]);s>>16!=1&&(k("Attempting to fix invalid version in head table: "+s),n[0]=0,n[1]=1,n[2]=0,n[3]=0);let o=(n[50]<<8)+n[51];if(o<0||o>1){k("Attempting to fix invalid indexToLocFormat in head table: "+o);let t=a+1;if(r===t<<1)n[50]=0,n[51]=0;else{if(r!==t<<2)throw new N("Could not fix indexToLocFormat: "+o);n[50]=0,n[51]=1}}}(o.head,y,m?o.loca.length:0);let T=Object.create(null);if(m){let t=(o.head.data[50]<<8)+o.head.data[51],a=function(t,a,r,i,n,s,o){let l,c,h,u,f;i?(l=4,c=function(t,a){return t[a]<<24|t[a+1]<<16|t[a+2]<<8|t[a+3]},h=function(t,a,r){t[a]=r>>>24&255,t[a+1]=r>>16&255,t[a+2]=r>>8&255,t[a+3]=255&r}):(l=2,c=function(t,a){return t[a]<<9|t[a+1]<<1},h=function(t,a,r){t[a]=r>>9&255,t[a+1]=r>>1&255});let d=s?r+1:r,g=l*(1+d),p=new Uint8Array(g);p.set(t.data.subarray(0,g)),t.data=p;let m=a.data,b=m.length,y=new Uint8Array(b),w=[];for(u=0,f=0;u<r+1;u++,f+=l){let t=c(p,f);t>b&&(t=b),w.push({index:u,offset:t,endOffset:0})}for(w.sort((t,a)=>t.offset-a.offset),u=0;u<r;u++)w[u].endOffset=w[u+1].offset;for(w.sort((t,a)=>t.index-a.index),u=0;u<r;u++){let{offset:t,endOffset:a}=w[u];if(0!==t||0!==a)break;let r=w[u+1].offset;if(0!==r){w[u].endOffset=r;break}}let x=w.at(-2);0!==x.offset&&0===x.endOffset&&(x.endOffset=b);let k=Object.create(null),v=0;for(h(p,0,0),u=0,f=l;u<r;u++,f+=l){let t=function(t,a,r,i,n,s){let o={length:0,sizeOfInstructions:0};if(a<0||a>=t.length||r>t.length||r-a<=12)return o;let l=t.subarray(a,r),c=ix(l[2],l[3]),h=ix(l[4],l[5]),u=ix(l[6],l[7]),f=ix(l[8],l[9]);c>u&&(iw(l,2,u),iw(l,6,c)),h>f&&(iw(l,4,f),iw(l,8,h));let d=ix(l[0],l[1]);if(d<0)return d<-1||(i.set(l,n),o.length=l.length),o;let g,p=10,m=0;for(g=0;g<d;g++)m=(l[p]<<8|l[p+1])+1,p+=2;let b=p,y=l[p]<<8|l[p+1];o.sizeOfInstructions=y,p+=2+y;let w=p,x=0;for(g=0;g<m;g++){let t=l[p++];192&t&&(l[p-1]=63&t);let a=2;2&t?a=1:16&t&&(a=0);let r=2;4&t?r=1:32&t&&(r=0);let i=a+r;if(x+=i,8&t){let t=l[p++];0===t&&(l[p-1]^=8),g+=t,x+=t*i}}if(0===x)return o;let k=p+x;return k>l.length||(!s&&y>0?(i.set(l.subarray(0,b),n),i.set([0,0],n+b),i.set(l.subarray(w,k),n+b+2),k-=y,l.length-k>3&&(k=k+3&-4),o.length=k):l.length-k>3?(k=k+3&-4,i.set(l.subarray(0,k),n),o.length=k):(i.set(l,n),o.length=l.length)),o}(m,w[u].offset,w[u].endOffset,y,v,n),a=t.length;0===a&&(k[u]=!0),t.sizeOfInstructions>o&&(o=t.sizeOfInstructions),h(p,f,v+=a)}if(0===v){let t=new Uint8Array([0,1,0,0,0,0,0,0,0,0,0,0,0,0,49,0]);for(u=0,f=l;u<d;u++,f+=l)h(p,f,t.length);a.data=t}else if(s){let r=c(p,l);y.length>r+v?a.data=y.subarray(0,r+v):(a.data=new Uint8Array(r+v),a.data.set(y.subarray(0,v))),a.data.set(y.subarray(0,r),v),h(t.data,p.length-l,v+r)}else a.data=y.subarray(0,v);return{missingGlyphs:k,maxSizeOfInstructions:o}}(o.loca,o.glyf,y,t,I,x,S);T=a.missingGlyphs,b>=65536&&o.maxp.length>=32&&(o.maxp.data[26]=a.maxSizeOfInstructions>>8,o.maxp.data[27]=255&a.maxSizeOfInstructions)}if(!o.hhea)throw new N('Required "hhea" table is not found');0===o.hhea.data[10]&&0===o.hhea.data[11]&&(o.hhea.data[10]=255,o.hhea.data[11]=255);let B={unitsPerEm:(o.head.data[18]<<8)+o.head.data[19],yMax:ix(o.head.data[42],o.head.data[43]),yMin:ix(o.head.data[38],o.head.data[39]),ascent:ix(o.hhea.data[4],o.hhea.data[5]),descent:ix(o.hhea.data[6],o.hhea.data[7]),lineGap:ix(o.hhea.data[8],o.hhea.data[9])};this.ascent=B.ascent/B.unitsPerEm,this.descent=B.descent/B.unitsPerEm,this.lineGap=B.lineGap/B.unitsPerEm,this.cssFontInfo?.lineHeight?(this.lineHeight=this.cssFontInfo.metrics.lineHeight,this.lineGap=this.cssFontInfo.metrics.lineGap):this.lineHeight=this.ascent-this.descent+this.lineGap,o.post&&function(t,r,i){let n=(a.start||0)+t.offset;a.pos=n;let s=n+t.length,o=a.getInt32();a.skip(28);let l,c,h=!0;switch(o){case 65536:l=a8;break;case 131072:let u=a.getUint16();if(u!==i){h=!1;break}let f=[];for(c=0;c<u;++c){let t=a.getUint16();if(t>=32768){h=!1;break}f.push(t)}if(!h)break;let d=[],g=[];for(;a.pos<s;){let t=a.getByte();for(c=0,g.length=t;c<t;++c)g[c]=String.fromCharCode(a.getByte());d.push(g.join(""))}for(c=0,l=[];c<u;++c){let t=f[c];t<258?l.push(a8[t]):l.push(d[t-258])}break;case 196608:break;default:v("Unknown/unsupported post table version "+o),h=!1,r.defaultEncoding&&(l=r.defaultEncoding)}r.glyphNames=l}(o.post,r,y),o.post={tag:"post",data:iR(r)};let F=Object.create(null);function M(t){return!T[t]}if(r.composite){let t=r.cidToGidMap||[],a=0===t.length;r.cMap.forEach(function(r,i){if("string"==typeof i&&(i=iT(r,i,!0)),i>65535)throw new N("Max size of CID is 65,535");let n=-1;a?n=i:void 0!==t[i]&&(n=t[i]),n>=0&&n<y&&M(n)&&(F[r]=n)})}else{let t=function(t,a,r,i){let n,s;if(!t)return v("No cmap table available."),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};let o,l=(a.start||0)+t.offset;a.pos=l,a.skip(2);let c=a.getUint16(),h,u=!1;for(let t=0;t<c;t++){let n=a.getUint16(),s=a.getUint16(),o=a.getInt32()>>>0,l=!1;if(h?.platformId!==n||h?.encodingId!==s){if(0!==n||0!==s&&1!==s&&3!==s){if(1===n&&0===s)l=!0;else if(3!==n||1!==s||!i&&h){if(r&&3===n&&0===s){l=!0;let r=!0;if(t<c-1){let t=a.peekBytes(2);(t[0]<<8)+t[1]<n&&(r=!1)}r&&(u=!0)}}else l=!0,r||(u=!0)}else l=!0;if(l&&(h={platformId:n,encodingId:s,offset:o}),u)break}}if(h&&(a.pos=l+h.offset),!h||-1===a.peekByte())return v("Could not find a preferred cmap table."),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};let f=a.getUint16(),d=!1,g=[];if(0===f){for(a.skip(4),n=0;n<256;n++){let t=a.getByte();t&&g.push({charCode:n,glyphId:t})}d=!0}else if(2===f){a.skip(4);let t=[],r=0;for(let i=0;i<256;i++){let i=a.getUint16()>>3;t.push(i),r=Math.max(i,r)}let i=[];for(let t=0;t<=r;t++)i.push({firstCode:a.getUint16(),entryCount:a.getUint16(),idDelta:ix(a.getByte(),a.getByte()),idRangePos:a.pos+a.getUint16()});for(let r=0;r<256;r++)if(0===t[r])a.pos=i[0].idRangePos+2*r,s=a.getUint16(),g.push({charCode:r,glyphId:s});else{let o=i[t[r]];for(n=0;n<o.entryCount;n++){let t=(r<<8)+n+o.firstCode;a.pos=o.idRangePos+2*n,0!==(s=a.getUint16())&&(s=(s+o.idDelta)%65536),g.push({charCode:t,glyphId:s})}}}else if(4===f){let t;a.skip(4);let r=a.getUint16()>>1;a.skip(6);let i=[];for(t=0;t<r;t++)i.push({end:a.getUint16()});for(a.skip(2),t=0;t<r;t++)i[t].start=a.getUint16();for(t=0;t<r;t++)i[t].delta=a.getUint16();let c,h=0;for(t=0;t<r;t++){o=i[t];let n=a.getUint16();n?(c=(n>>1)-(r-t),o.offsetIndex=c,h=Math.max(h,c+o.end-o.start+1)):o.offsetIndex=-1}let u=[];for(n=0;n<h;n++)u.push(a.getUint16());for(t=0;t<r;t++){l=(o=i[t]).start;let a=o.end,r=o.delta;for(c=o.offsetIndex,n=l;n<=a;n++)65535!==n&&(s=(s=c<0?n:u[c+n-l])+r&65535,g.push({charCode:n,glyphId:s}))}}else if(6===f){a.skip(4);let t=a.getUint16(),r=a.getUint16();for(n=0;n<r;n++){s=a.getUint16();let r=t+n;g.push({charCode:r,glyphId:s})}}else{if(12!==f)return v("cmap table has unsupported format: "+f),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};{a.skip(10);let t=a.getInt32()>>>0;for(n=0;n<t;n++){let t=a.getInt32()>>>0,r=a.getInt32()>>>0,i=a.getInt32()>>>0;for(let a=t;a<=r;a++)g.push({charCode:a,glyphId:i++})}}}g.sort((t,a)=>t.charCode-a.charCode);let p=[],m=new Set;for(let t of g){let{charCode:a}=t;m.has(a)||(m.add(a),p.push(t))}return{platformId:h.platformId,encodingId:h.encodingId,mappings:p,hasShortCmap:d}}(o.cmap,a,this.isSymbolicFont,r.hasEncoding),i=t.platformId,n=t.encodingId,s=t.mappings,l=[],c=!1;if(r.hasEncoding&&("MacRomanEncoding"===r.baseEncodingName||"WinAnsiEncoding"===r.baseEncodingName)&&(l=a1(r.baseEncodingName)),r.hasEncoding&&!this.isSymbolicFont&&(3===i&&1===n||1===i&&0===n)){let t=a0();for(let a=0;a<256;a++){let o,c;if(!(o=void 0!==this.differences[a]?this.differences[a]:l.length&&""!==l[a]?l[a]:aY[a]))continue;let h=a4(o,t);if(3===i&&1===n?c=t[h]:1===i&&0===n&&(c=aK.indexOf(h)),void 0===c){if(!r.glyphNames&&r.hasIncludedToUnicodeMap&&!(this.toUnicode instanceof rP)){let t=this.toUnicode.get(a);t&&(c=t.codePointAt(0))}if(void 0===c)continue}for(let t of s)if(t.charCode===c){F[a]=t.glyphId;break}}}else if(0===i){for(let t of s)F[t.charCode]=t.glyphId;c=!0}else if(3===i&&0===n)for(let t of s){let a=t.charCode;a>=61440&&a<=61695&&(a&=255),F[a]=t.glyphId}else for(let t of s)F[t.charCode]=t.glyphId;if(r.glyphNames&&(l.length||this.differences.length))for(let t=0;t<256;++t){if(!c&&void 0!==F[t])continue;let a=this.differences[t]||l[t];if(!a)continue;let i=r.glyphNames.indexOf(a);i>0&&M(i)&&(F[t]=i)}}0===F.length&&(F[0]=0);let R=w-1;if(x||(R=0),!r.cssFontInfo){let t=iB(F,M,R,this.toUnicode);this.toFontChar=t.toFontChar,o.cmap={tag:"cmap",data:iF(t.charCodeToGlyphId,t.toUnicodeExtraMap,w)},o["OS/2"]&&function(t,a){a.pos=(a.start||0)+t.offset;let r=a.getUint16();a.skip(60);let i=a.getUint16();return!(r<4&&768&i||a.getUint16()>a.getUint16())&&(a.skip(6),0!==a.getUint16()&&(t.data[8]=t.data[9]=0,!0))}(o["OS/2"],a)||(o["OS/2"]={tag:"OS/2",data:iM(r,t.charCodeToGlyphId,B)})}if(!m)try{c=new tg(o["CFF "].data),(l=new rc(c,r,!0).parse()).duplicateFirstGlyph();let t=new rC(l);o["CFF "].data=t.compile()}catch{v("Failed to compile font "+r.loadedName)}if(o.name){let[a,i]=d(o.name);o.name.data=iN(t,a),this.psName=a[0][6]||null,r.composite||function(t,a,r){if(t.isInternalFont||t.hasIncludedToUnicodeMap||t.hasEncoding||t.toUnicode instanceof rP||!a||0===r.length||t.defaultEncoding===aJ)return;for(let t of r)if(!iI(t))return;let i=[],n=a0();for(let t in aJ){let a=aJ[t];if(""===a)continue;let r=n[a];void 0!==r&&(i[t]=String.fromCharCode(r))}i.length>0&&t.toUnicode.amend(i)}(r,this.isSymbolicFont,i)}else o.name={tag:"name",data:iN(this.name)};let O=new r2(s.version);for(let t in o)O.addTable(t,o[t].data);return O.toArray()}convert(t,a,r){r.fixedPitch=!1,r.builtInEncoding&&function(t,a){if(t.isInternalFont||t.hasIncludedToUnicodeMap||a===t.defaultEncoding||t.toUnicode instanceof rP)return;let r=[],i=a0();for(let n in a){if(t.hasEncoding&&(t.baseEncodingName||void 0!==t.differences[n]))continue;let s=a5(a[n],i);-1!==s&&(r[n]=String.fromCharCode(s))}r.length>0&&t.toUnicode.amend(r)}(r,r.builtInEncoding);let i=1;a instanceof r_&&(i=a.numGlyphs-1);let n=a.getGlyphMapping(r),s=null,o=n,l=null;r.cssFontInfo||(s=iB(n,a.hasGlyphId.bind(a),i,this.toUnicode),this.toFontChar=s.toFontChar,o=s.charCodeToGlyphId,l=s.toUnicodeExtraMap);let c=a.numGlyphs;function h(t,a){for(let r in t)if(a===t[r])return 0|r;return s.charCodeToGlyphId[s.nextAvailableFontCharCode]=a,s.nextAvailableFontCharCode++}let u=a.seacs;if(s&&u?.length){let t=r.fontMatrix||f,i=a.getCharset(),o=Object.create(null);for(let a in u){a|=0;let r=u[a],l=aY[r[2]],c=aY[r[3]],f=i.indexOf(l),d=i.indexOf(c);if(f<0||d<0)continue;let g={x:r[0]*t[0]+r[1]*t[2]+t[4],y:r[0]*t[1]+r[1]*t[3]+t[5]},p=function(t,a){let r=null;for(let i in t)a===t[i]&&(r||=[]).push(0|i);return r}(n,a);if(p)for(let t of p){let a=s.charCodeToGlyphId,r=h(a,f),i=h(a,d);o[t]={baseFontCharCode:r,accentFontCharCode:i,accentOffset:g}}}r.seacMap=o}let d=r.fontMatrix?1/Math.max(...r.fontMatrix.slice(0,4).map(Math.abs)):1e3,g=new r2("OTTO");return g.addTable("CFF ",a.data),g.addTable("OS/2",iM(r,o)),g.addTable("cmap",iF(o,l,c)),g.addTable("head","\x00\x01\x00\x00\x00\x00\x10\x00\x00\x00\x00\x00_\x0f<\xf5\x00\x00"+iv(d)+"\x00\x00\x00\x00\x9e\v~'\x00\x00\x00\x00\x9e\v~'\x00\x00"+iv(r.descent)+"\x0f\xff"+iv(r.ascent)+ik(r.italicAngle?2:0)+"\x00\x11\x00\x00\x00\x00\x00\x00"),g.addTable("hhea","\x00\x01\x00\x00"+iv(r.ascent)+iv(r.descent)+"\x00\x00\xff\xff\x00\x00\x00\x00\x00\x00"+iv(r.capHeight)+iv(Math.tan(r.italicAngle)*r.xHeight)+"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"+ik(c)),g.addTable("hmtx",function(){let t=a.charstrings,r=a.cff?a.cff.widths:null,i="\x00\x00\x00\x00";for(let a=1;a<c;a++){let n=0;if(t){let r=t[a-1];n="width"in r?r.width:0}else r&&(n=Math.ceil(r[a]||0));i+=ik(n)+ik(0)}return i}()),g.addTable("maxp","\x00\x00P\x00"+ik(c)),g.addTable("name",iN(t)),g.addTable("post",iR(r)),g.toArray()}get _spaceWidth(){let t;for(let a of["space","minus","one","i","I"]){if(a in this.widths){t=this.widths[a];break}let r=a0()[a],i=0;if(this.composite&&this.cMap.contains(r)&&"string"==typeof(i=this.cMap.lookup(r))&&(i=iT(r,i)),!i&&this.toUnicode&&(i=this.toUnicode.charCodeOf(r)),i<=0&&(i=r),t=this.widths[i])break}return I(this,"_spaceWidth",t||this.defaultWidth)}_charToGlyph(t,a=!1){let r,i,n,s=this._glyphCache[t];if(s?.isSpace===a)return s;let o=t;this.cMap?.contains(t)&&"string"==typeof(o=this.cMap.lookup(t))&&(o=iT(t,o)),"number"!=typeof(i=this.widths[o])&&(i=this.defaultWidth);let l=this.vmetrics?.[o],c=this.toUnicode.get(t)||t;"number"==typeof c&&(c=String.fromCharCode(c));let h=void 0!==this.toFontChar[t];if(r=this.toFontChar[t]||t,this.missingFile){var u;let a=this.differences[t]||this.defaultEncoding[t];(".notdef"===a||""===a)&&"Type1"===this.type&&(r=32,""===a&&(i||=this._spaceWidth,c=String.fromCharCode(r))),r=(u=r)>=65520&&u<=65535?0:u>=62976&&u<=63743?a9()[u]||u:173===u?45:u}this.isType3Font&&(n=r);let f=null;if(this.seacMap?.[t]){h=!0;let a=this.seacMap[t];r=a.baseFontCharCode,f={fontChar:String.fromCodePoint(a.accentFontCharCode),offset:a.accentOffset}}let d="";if("number"==typeof r&&(r<=1114111?d=String.fromCodePoint(r):v(`charToGlyph - invalid fontCharCode: ${r}`)),this.missingFile&&this.vertical&&1===d.length){let t=ra()[d.charCodeAt(0)];t&&(d=c=String.fromCharCode(t))}return s=new iy(t,d,c,f,i,l,n,a,h),this._glyphCache[t]=s}charsToGlyphs(t){let a=this._charsCache[t];if(a)return a;if(a=[],this.cMap){let r=Object.create(null),i=t.length,n=0;for(;n<i;){this.cMap.readCharCode(t,n,r);let{charcode:i,length:s}=r;n+=s;let o=this._charToGlyph(i,1===s&&32===t.charCodeAt(n-1));a.push(o)}}else for(let r=0,i=t.length;r<i;++r){let i=t.charCodeAt(r),n=this._charToGlyph(i,32===i);a.push(n)}return this._charsCache[t]=a}getCharPositions(t){let a=[];if(this.cMap){let r=Object.create(null),i=0;for(;i<t.length;){this.cMap.readCharCode(t,i,r);let n=r.length;a.push([i,i+n]),i+=n}}else for(let r=0,i=t.length;r<i;++r)a.push([r,r+1]);return a}get glyphCacheValues(){return Object.values(this._glyphCache)}encodeString(t){let a=[],r=[],i=()=>a.length%2==1,n=this.toUnicode instanceof rP?t=>this.toUnicode.charCodeOf(t):t=>this.toUnicode.charCodeOf(String.fromCodePoint(t));for(let s=0,o=t.length;s<o;s++){let o=t.codePointAt(s);if(o>55295&&(o<57344||o>65533)&&s++,this.toUnicode){let t=n(o);if(-1!==t){i()&&(a.push(r.join("")),r.length=0);for(let a=(this.cMap?this.cMap.getCharCodeLength(t):1)-1;a>=0;a--)r.push(String.fromCharCode(t>>8*a&255));continue}}i()||(a.push(r.join("")),r.length=0),r.push(String.fromCodePoint(o))}return a.push(r.join("")),a}}class iD{constructor(t){this.error=t,this.loadedName="g_font_error",this.missingFile=!0}charsToGlyphs(){return[]}encodeString(t){return[t]}exportData(){return{error:this.error}}}class iE{#E;#$;#z;static strings=["fontFamily","fontWeight","italicAngle"];static write(t){let a=new TextEncoder,r={},i=0;for(let n of iE.strings){let s=a.encode(t[n]);r[n]=s,i+=4+s.length}let n=new ArrayBuffer(i),s=new Uint8Array(n),o=new DataView(n),l=0;for(let t of iE.strings){let a=r[t],i=a.length;o.setUint32(l,i),s.set(a,l+4),l+=4+i}return C(l===n.byteLength,"CssFontInfo.write: Buffer overflow"),n}constructor(t){this.#E=t,this.#$=new DataView(this.#E),this.#z=new TextDecoder}#G(t){C(t<iE.strings.length,"Invalid string index");let a=0;for(let r=0;r<t;r++)a+=this.#$.getUint32(a)+4;let r=this.#$.getUint32(a);return this.#z.decode(new Uint8Array(this.#E,a+4,r))}get fontFamily(){return this.#G(0)}get fontWeight(){return this.#G(1)}get italicAngle(){return this.#G(2)}}class iP{#E;#$;#z;static strings=["css","loadedName","baseFontName","src"];static write(t){let a=new TextEncoder,r={},i=0;for(let n of iP.strings){let s=a.encode(t[n]);r[n]=s,i+=4+s.length}let n,s,o=1+(i+=4);t.style&&(n=a.encode(t.style.style),s=a.encode(t.style.weight),o+=4+n.length+4+s.length);let l=new ArrayBuffer(o),c=new Uint8Array(l),h=new DataView(l),u=0;for(let a of(h.setUint8(u++,t.guessFallback?1:0),h.setUint32(u,0),u+=4,i=0,iP.strings)){let t=r[a],n=t.length;i+=4+n,h.setUint32(u,n),c.set(t,u+4),u+=4+n}return h.setUint32(u-i-4,i),t.style&&(h.setUint32(u,n.length),c.set(n,u+4),u+=4+n.length,h.setUint32(u,s.length),c.set(s,u+4),u+=4+s.length),C(u<=l.byteLength,"SubstitionInfo.write: Buffer overflow"),l.transferToFixedLength(u)}constructor(t){this.#E=t,this.#$=new DataView(this.#E),this.#z=new TextDecoder}get guessFallback(){return 0!==this.#$.getUint8(0)}#G(t){C(t<iP.strings.length,"Invalid string index");let a=5;for(let r=0;r<t;r++)a+=this.#$.getUint32(a)+4;let r=this.#$.getUint32(a);return this.#z.decode(new Uint8Array(this.#E,a+4,r))}get css(){return this.#G(0)}get loadedName(){return this.#G(1)}get baseFontName(){return this.#G(2)}get src(){return this.#G(3)}get style(){let t=1;t+=4+this.#$.getUint32(t);let a=this.#$.getUint32(t),r=this.#z.decode(new Uint8Array(this.#E,t+4,a));t+=4+a;let i=this.#$.getUint32(t);return{style:r,weight:this.#z.decode(new Uint8Array(this.#E,t+4,i))}}}class i_{static bools=["black","bold","disableFontFace","fontExtraProperties","isInvalidPDFjsFont","isType3Font","italic","missingFile","remeasure","vertical"];static numbers=["ascent","defaultWidth","descent"];static strings=["fallbackName","loadedName","mimetype","name"];static #W=Math.ceil(2*this.bools.length/8);static #V=this.#W+8*this.numbers.length;static #X=this.#V+1+8;static #K=this.#X+1+48;static #Y=this.#K+1+6;#E;#z;#$;constructor({data:t,extra:a}){this.#E=t,this.#z=new TextDecoder,this.#$=new DataView(this.#E),a&&Object.assign(this,a)}#J(t){C(t<i_.bools.length,"Invalid boolean index");let a=this.#$.getUint8(Math.floor(t/4))>>2*t%8&3;return 0===a?void 0:2===a}get black(){return this.#J(0)}get bold(){return this.#J(1)}get disableFontFace(){return this.#J(2)}get fontExtraProperties(){return this.#J(3)}get isInvalidPDFjsFont(){return this.#J(4)}get isType3Font(){return this.#J(5)}get italic(){return this.#J(6)}get missingFile(){return this.#J(7)}get remeasure(){return this.#J(8)}get vertical(){return this.#J(9)}#Z(t){return C(t<i_.numbers.length,"Invalid number index"),this.#$.getFloat64(i_.#W+8*t)}get ascent(){return this.#Z(0)}get defaultWidth(){return this.#Z(1)}get descent(){return this.#Z(2)}get bbox(){let t=i_.#V;if(0===this.#$.getUint8(t))return;t+=1;let a=[];for(let r=0;r<4;r++)a.push(this.#$.getInt16(t,!0)),t+=2;return a}get fontMatrix(){let t=i_.#X;if(0===this.#$.getUint8(t))return;t+=1;let a=[];for(let r=0;r<6;r++)a.push(this.#$.getFloat64(t,!0)),t+=8;return a}get defaultVMetrics(){let t=i_.#K;if(0===this.#$.getUint8(t))return;t+=1;let a=[];for(let r=0;r<3;r++)a.push(this.#$.getInt16(t,!0)),t+=2;return a}#G(t){C(t<i_.strings.length,"Invalid string index");let a=i_.#Y+4;for(let r=0;r<t;r++)a+=this.#$.getUint32(a)+4;let r=this.#$.getUint32(a),i=new Uint8Array(r);return i.set(new Uint8Array(this.#E,a+4,r)),this.#z.decode(i)}get fallbackName(){return this.#G(0)}get loadedName(){return this.#G(1)}get mimetype(){return this.#G(2)}get name(){return this.#G(3)}get data(){let t=i_.#Y;t+=4+this.#$.getUint32(t),t+=4+this.#$.getUint32(t),t+=4+this.#$.getUint32(t);let a=this.#$.getUint32(t);if(0!==a)return new Uint8Array(this.#E,t+4,a)}clearData(){let t=i_.#Y;t+=4+this.#$.getUint32(t),t+=4+this.#$.getUint32(t),t+=4+this.#$.getUint32(t);let a=this.#$.getUint32(t);new Uint8Array(this.#E,t+4,a).fill(0),this.#$.setUint32(t,0)}get cssFontInfo(){let t=i_.#Y;t+=4+this.#$.getUint32(t),t+=4+this.#$.getUint32(t);let a=this.#$.getUint32(t);if(0===a)return null;let r=new Uint8Array(a);return r.set(new Uint8Array(this.#E,t+4,a)),new iE(r.buffer)}get systemFontInfo(){let t=i_.#Y;t+=4+this.#$.getUint32(t);let a=this.#$.getUint32(t);if(0===a)return null;let r=new Uint8Array(a);return r.set(new Uint8Array(this.#E,t+4,a)),new iP(r.buffer)}static write(t){let a=t.systemFontInfo?iP.write(t.systemFontInfo):null,r=t.cssFontInfo?iE.write(t.cssFontInfo):null,i=new TextEncoder,n={},s=0;for(let a of i_.strings)n[a]=i.encode(t[a]),s+=4+n[a].length;let o=i_.#Y+4+s+4+(a?a.byteLength:0)+4+(r?r.byteLength:0)+4+(t.data?t.data.length:0),l=new ArrayBuffer(o),c=new Uint8Array(l),h=new DataView(l),u=0,f=i_.bools.length,d=0,g=0;for(let a=0;a<f;a++){let r=t[i_.bools[a]];d|=(void 0===r?0:r?2:1)<<g,(8===(g+=2)||a===f-1)&&(h.setUint8(u++,d),d=0,g=0)}for(let a of(C(u===i_.#W,"FontInfo.write: Boolean properties offset mismatch"),i_.numbers))h.setFloat64(u,t[a]),u+=8;if(C(u===i_.#V,"FontInfo.write: Number properties offset mismatch"),t.bbox)for(let a of(h.setUint8(u++,4),t.bbox))h.setInt16(u,a,!0),u+=2;else h.setUint8(u++,0),u+=8;if(C(u===i_.#X,"FontInfo.write: BBox properties offset mismatch"),t.fontMatrix)for(let a of(h.setUint8(u++,6),t.fontMatrix))h.setFloat64(u,a,!0),u+=8;else h.setUint8(u++,0),u+=48;if(C(u===i_.#K,"FontInfo.write: FontMatrix properties offset mismatch"),t.defaultVMetrics)for(let a of(h.setUint8(u++,1),t.defaultVMetrics))h.setInt16(u,a,!0),u+=2;else h.setUint8(u++,0),u+=6;for(let t of(C(u===i_.#Y,"FontInfo.write: DefaultVMetrics properties offset mismatch"),h.setUint32(i_.#Y,0),u+=4,i_.strings)){let a=n[t],r=a.length;h.setUint32(u,r),c.set(a,u+4),u+=4+r}if(h.setUint32(i_.#Y,u-i_.#Y-4),a){let t=a.byteLength;h.setUint32(u,t),C(u+4+t<=l.byteLength,"FontInfo.write: Buffer overflow at systemFontInfo"),c.set(new Uint8Array(a),u+4),u+=4+t}else h.setUint32(u,0),u+=4;if(r){let t=r.byteLength;h.setUint32(u,t),C(u+4+t<=l.byteLength,"FontInfo.write: Buffer overflow at cssFontInfo"),c.set(new Uint8Array(r),u+4),u+=4+t}else h.setUint32(u,0),u+=4;return void 0===t.data?(h.setUint32(u,0),u+=4):(h.setUint32(u,t.data.length),c.set(t.data,u+4),u+=4+t.data.length),C(u<=l.byteLength,"FontInfo.write: Buffer overflow"),l.transferToFixedLength(u)}}class iL{static #Q=0;static #ee=1;static #et=2;static #ea=3;static #er=4;static #ei=8;static #en=12;static #es=16;constructor(t){this.buffer=t,this.view=new DataView(t),this.data=new Uint8Array(t)}static write(t){let a,r=null,i=[],n=[],s=[],o=[],l=null,c=null;switch(t[0]){case"RadialAxial":a="axial"===t[1]?1:2,r=t[2],s=t[3],1===a?i.push(...t[4],...t[5]):i.push(t[4][0],t[4][1],t[6],t[5][0],t[5][1],t[7]);break;case"Mesh":a=3,l=t[1],i=t[2],n=t[3],o=t[4]||[],r=t[6],c=t[7];break;default:throw Error(`Unsupported pattern type: ${t[0]}`)}let h=Math.floor(i.length/2),u=Math.floor(n.length/3),f=s.length,d=o.length,g=0;for(let t of o)g+=1,g=4*Math.ceil(g/4)+(4+4*t.coords.length)+(4+4*t.colors.length),void 0!==t.verticesPerRow&&(g+=4);let p=new ArrayBuffer(20+8*h+3*u+8*f+(r?16:0)+(c?3:0)+g),m=new DataView(p),b=new Uint8Array(p);m.setUint8(iL.#Q,a),m.setUint8(iL.#ee,r?1:0),m.setUint8(iL.#et,c?1:0),m.setUint8(iL.#ea,l),m.setUint32(iL.#er,h,!0),m.setUint32(iL.#ei,u,!0),m.setUint32(iL.#en,f,!0),m.setUint32(iL.#es,d,!0);let y=20;for(let[t,a]of(new Float32Array(p,y,2*h).set(i),y+=8*h,b.set(n,y),y+=3*u,s))m.setFloat32(y,t,!0),y+=4,m.setUint32(y,parseInt(a.slice(1),16),!0),y+=4;if(r)for(let t of r)m.setFloat32(y,t,!0),y+=4;c&&(b.set(c,y),y+=3);for(let t=0;t<o.length;t++){let a=o[t];m.setUint8(y,a.type),y+=1,y=4*Math.ceil(y/4),m.setUint32(y,a.coords.length,!0),y+=4,new Int32Array(p,y,a.coords.length).set(a.coords),y+=4*a.coords.length,m.setUint32(y,a.colors.length,!0),y+=4,new Int32Array(p,y,a.colors.length).set(a.colors),y+=4*a.colors.length,void 0!==a.verticesPerRow&&(m.setUint32(y,a.verticesPerRow,!0),y+=4)}return p}getIR(){let t=this.view,a=this.data[iL.#Q],r=!!this.data[iL.#ee],i=!!this.data[iL.#et],n=t.getUint32(iL.#er,!0),s=t.getUint32(iL.#ei,!0),o=t.getUint32(iL.#en,!0),l=t.getUint32(iL.#es,!0),c=20,h=new Float32Array(this.buffer,c,2*n);c+=8*n;let u=new Uint8Array(this.buffer,c,3*s);c+=3*s;let f=[];for(let a=0;a<o;++a){let a=t.getFloat32(c,!0);c+=4;let r=t.getUint32(c,!0);c+=4,f.push([a,`#${r.toString(16).padStart(6,"0")}`])}let d=null;if(r){d=[];for(let a=0;a<4;++a)d.push(t.getFloat32(c,!0)),c+=4}let g=null;i&&(g=new Uint8Array(this.buffer,c,3),c+=3);let p=[];for(let a=0;a<l;++a){let a=t.getUint8(c);c+=1,c=4*Math.ceil(c/4);let r=t.getUint32(c,!0);c+=4;let i=new Int32Array(this.buffer,c,r);c+=4*r;let n=t.getUint32(c,!0);c+=4;let s=new Int32Array(this.buffer,c,n);c+=4*n;let o={type:a,coords:i,colors:s};2===a&&(o.verticesPerRow=t.getUint32(c,!0),c+=4),p.push(o)}if(1===a)return["RadialAxial","axial",d,f,Array.from(h.slice(0,2)),Array.from(h.slice(2,4)),null,null];if(2===a)return["RadialAxial","radial",d,f,[h[0],h[1]],[h[3],h[4]],h[2],h[5]];if(3===a){let t=this.data[iL.#ea],a=null;if(h.length>0){let t=h[0],r=h[0],i=h[1],n=h[1];for(let a=0;a<h.length;a+=2){let s=h[a],o=h[a+1];t=t>s?s:t,i=i>o?o:i,r=r<s?s:r,n=n<o?o:n}a=[t,i,r,n]}return["Mesh",t,h,u,p,a,d,g]}throw Error(`Unsupported pattern kind: ${a}`)}}class iU{constructor(){A("Cannot initialize Pattern.")}static parseShading(t,a,r,i,n,s){let o=t instanceof ed?t.dict:t,l=o.get("ShadingType");try{switch(l){case 2:case 3:return new iq(o,a,r,i,n,s);case 4:case 5:case 6:case 7:return new iG(t,a,r,i,n,s);default:throw new N("Unsupported ShadingType: "+l)}}catch(t){if(t instanceof ex)throw t;return v(t),new iW}}}class ij{static SMALL_NUMBER=1e-6;getIR(){A("Abstract method `getIR` called.")}}class iq extends ij{constructor(t,a,r,i,n,s){super(),this.shadingType=t.get("ShadingType");let o=0;if(2===this.shadingType?o=4:3===this.shadingType&&(o=6),this.coordsArr=t.getArray("Coords"),!eD(this.coordsArr,o))throw new N("RadialAxialShading: Invalid /Coords array.");let l=tS.parse({cs:t.getRaw("CS")||t.getRaw("ColorSpace"),xref:a,resources:r,pdfFunctionFactory:i,globalColorSpaceCache:n,localColorSpaceCache:s});this.bbox=e_(t.getArray("BBox"),null);let c=0,h=1,u=t.getArray("Domain");eD(u,2)&&([c,h]=u);let f=!1,d=!1,g=t.getArray("Extend");if(Array.isArray(g)&&2===g.length&&g.every(t=>"boolean"==typeof t)&&([f,d]=g),!(3!==this.shadingType||f&&d)){let[t,a,r,i,n,s]=this.coordsArr,o=Math.hypot(t-i,a-n);r<=s+o&&s<=r+o&&v("Unsupported radial gradient.")}this.extendStart=f,this.extendEnd=d;let p=t.getRaw("Function"),m=i.create(p,!0),b=(h-c)/840,y=this.colorStops=[];if(c>=h||b<=0){k("Bad shading domain.");return}let w=new Float32Array(l.numComps),x=new Float32Array(1),A=0;x[0]=c,m(x,0,w,0);let C=new Uint8ClampedArray(3);l.getRgb(w,0,C);let[S,I,T]=C;y.push([0,j.makeHexColor(S,I,T)]);let B=1;x[0]=c+b,m(x,0,w,0),l.getRgb(w,0,C);let[F,M,R]=C,O=F-S+1,D=M-I+1,E=R-T+1,P=F-S-1,_=M-I-1,L=R-T-1;for(let t=2;t<840;t++){x[0]=c+t*b,m(x,0,w,0),l.getRgb(w,0,C);let[a,r,i]=C,n=t-A;if(O=Math.min(O,(a-S+1)/n),D=Math.min(D,(r-I+1)/n),E=Math.min(E,(i-T+1)/n),P=Math.max(P,(a-S-1)/n),_=Math.max(_,(r-I-1)/n),L=Math.max(L,(i-T-1)/n),!(P<=O&&_<=D&&L<=E)){let t=j.makeHexColor(F,M,R);y.push([B/840,t]),O=a-F+1,D=r-M+1,E=i-R+1,P=a-F-1,_=r-M-1,L=i-R-1,A=B,S=F,I=M,T=R}B=t,F=a,M=r,R=i}y.push([1,j.makeHexColor(F,M,R)]);let U="transparent";t.has("Background")&&(U=l.getRgbHex(t.get("Background"),0)),f||(y.unshift([0,U]),y[1][0]+=ij.SMALL_NUMBER),d||(y.at(-1)[0]-=ij.SMALL_NUMBER,y.push([1,U])),this.colorStops=y}getIR(){let t,a,r,i,n;let{coordsArr:s,shadingType:o}=this;return 2===o?(a=[s[0],s[1]],r=[s[2],s[3]],i=null,n=null,t="axial"):3===o?(a=[s[0],s[1]],r=[s[3],s[4]],i=s[2],n=s[5],t="radial"):A(`getPattern type unknown: ${o}`),["RadialAxial",t,this.bbox,this.colorStops,a,r,i,n]}}class iH{constructor(t,a){this.stream=t,this.context=a,this.buffer=0,this.bufferLength=0;let r=a.numComps;this.tmpCompsBuf=new Float32Array(r);let i=a.colorSpace.numComps;this.tmpCsCompsBuf=a.colorFn?new Float32Array(i):this.tmpCompsBuf}get hasData(){if(this.stream.end)return this.stream.pos<this.stream.end;if(this.bufferLength>0)return!0;let t=this.stream.getByte();return!(t<0)&&(this.buffer=t,this.bufferLength=8,!0)}readBits(t){let{stream:a}=this,{buffer:r,bufferLength:i}=this;if(32===t){if(0===i)return a.getInt32()>>>0;r=r<<24|a.getByte()<<16|a.getByte()<<8|a.getByte();let t=a.getByte();return this.buffer=t&(1<<i)-1,(r<<8-i|(255&t)>>i)>>>0}if(8===t&&0===i)return a.getByte();for(;i<t;)r=r<<8|a.getByte(),i+=8;return i-=t,this.bufferLength=i,this.buffer=r&(1<<i)-1,r>>i}align(){this.buffer=0,this.bufferLength=0}readFlag(){return this.readBits(this.context.bitsPerFlag)}readCoordinate(){let{bitsPerCoordinate:t,decode:a}=this.context,r=this.readBits(t),i=this.readBits(t),n=t<32?1/((1<<t)-1):23283064365386963e-26;return[r*n*(a[1]-a[0])+a[0],i*n*(a[3]-a[2])+a[2]]}readComponents(){let{bitsPerComponent:t,colorFn:a,colorSpace:r,decode:i,numComps:n}=this.context,s=t<32?1/((1<<t)-1):23283064365386963e-26,o=this.tmpCompsBuf;for(let a=0,r=4;a<n;a++,r+=2){let n=this.readBits(t);o[a]=n*s*(i[r+1]-i[r])+i[r]}let l=this.tmpCsCompsBuf;return a?.(o,0,l,0),r.getRgb(l,0)}}let i$=Object.create(null);function iz(t){return i$[t]||=function(t){let a=[];for(let r=0;r<=t;r++){let i=r/t,n=1-i;a.push(new Float32Array([n**3,3*i*n**2,3*i**2*n,i**3]))}return a}(t)}class iG extends ij{static MIN_SPLIT_PATCH_CHUNKS_AMOUNT=3;static MAX_SPLIT_PATCH_CHUNKS_AMOUNT=20;static TRIANGLE_DENSITY=20;constructor(t,a,r,i,n,s){if(super(),!(t instanceof ed))throw new N("Mesh data is not a stream");let o=t.dict;this.shadingType=o.get("ShadingType"),this.bbox=e_(o.getArray("BBox"),null);let l=tS.parse({cs:o.getRaw("CS")||o.getRaw("ColorSpace"),xref:a,resources:r,pdfFunctionFactory:i,globalColorSpaceCache:n,localColorSpaceCache:s});this.background=o.has("Background")?l.getRgb(o.get("Background"),0):null;let c=o.getRaw("Function"),h=c?i.create(c,!0):null;this.coords=[],this.colors=[],this.figures=[];let u={bitsPerCoordinate:o.get("BitsPerCoordinate"),bitsPerComponent:o.get("BitsPerComponent"),bitsPerFlag:o.get("BitsPerFlag"),decode:o.getArray("Decode"),colorFn:h,colorSpace:l,numComps:h?1:l.numComps},f=new iH(t,u),d=!1;switch(this.shadingType){case 4:this._decodeType4Shading(f);break;case 5:let g=0|o.get("VerticesPerRow");if(g<2)throw new N("Invalid VerticesPerRow");this._decodeType5Shading(f,g);break;case 6:this._decodeType6Shading(f),d=!0;break;case 7:this._decodeType7Shading(f),d=!0;break;default:A("Unsupported mesh type.")}if(d){this._updateBounds();for(let t=0,a=this.figures.length;t<a;t++)this._buildFigureFromPatch(t)}this._updateBounds(),this._packData()}_decodeType4Shading(t){let a=this.coords,r=this.colors,i=[],n=[],s=0;for(;t.hasData;){let o=t.readFlag(),l=t.readCoordinate(),c=t.readComponents();if(0===s){if(!(0<=o&&o<=2))throw new N("Unknown type4 flag");switch(o){case 0:s=3;break;case 1:n.push(n.at(-2),n.at(-1)),s=1;break;case 2:n.push(n.at(-3),n.at(-1)),s=1}i.push(o)}n.push(a.length),a.push(l),r.push(c),s--,t.align()}this.figures.push({type:1,coords:new Int32Array(n),colors:new Int32Array(n)})}_decodeType5Shading(t,a){let r=this.coords,i=this.colors,n=[];for(;t.hasData;){let a=t.readCoordinate(),s=t.readComponents();n.push(r.length),r.push(a),i.push(s)}this.figures.push({type:2,coords:new Int32Array(n),colors:new Int32Array(n),verticesPerRow:a})}_decodeType6Shading(t){let a=this.coords,r=this.colors,i=new Int32Array(16),n=new Int32Array(4);for(;t.hasData;){let s,o,l,c;let h=t.readFlag();if(!(0<=h&&h<=3))throw new N("Unknown type6 flag");let u=a.length;for(let r=0,i=0!==h?8:12;r<i;r++)a.push(t.readCoordinate());let f=r.length;for(let a=0,i=0!==h?2:4;a<i;a++)r.push(t.readComponents());switch(h){case 0:i[12]=u+3,i[13]=u+4,i[14]=u+5,i[15]=u+6,i[8]=u+2,i[11]=u+7,i[4]=u+1,i[7]=u+8,i[0]=u,i[1]=u+11,i[2]=u+10,i[3]=u+9,n[2]=f+1,n[3]=f+2,n[0]=f,n[1]=f+3;break;case 1:s=i[12],o=i[13],l=i[14],c=i[15],i[12]=c,i[13]=u+0,i[14]=u+1,i[15]=u+2,i[8]=l,i[11]=u+3,i[4]=o,i[7]=u+4,i[0]=s,i[1]=u+7,i[2]=u+6,i[3]=u+5,s=n[2],o=n[3],n[2]=o,n[3]=f,n[0]=s,n[1]=f+1;break;case 2:s=i[15],o=i[11],i[12]=i[3],i[13]=u+0,i[14]=u+1,i[15]=u+2,i[8]=i[7],i[11]=u+3,i[4]=o,i[7]=u+4,i[0]=s,i[1]=u+7,i[2]=u+6,i[3]=u+5,s=n[3],n[2]=n[1],n[3]=f,n[0]=s,n[1]=f+1;break;case 3:i[12]=i[0],i[13]=u+0,i[14]=u+1,i[15]=u+2,i[8]=i[1],i[11]=u+3,i[4]=i[2],i[7]=u+4,i[0]=i[3],i[1]=u+7,i[2]=u+6,i[3]=u+5,n[2]=n[0],n[3]=f,n[0]=n[1],n[1]=f+1}i[5]=a.length,a.push([(-4*a[i[0]][0]-a[i[15]][0]+6*(a[i[4]][0]+a[i[1]][0])-2*(a[i[12]][0]+a[i[3]][0])+3*(a[i[13]][0]+a[i[7]][0]))/9,(-4*a[i[0]][1]-a[i[15]][1]+6*(a[i[4]][1]+a[i[1]][1])-2*(a[i[12]][1]+a[i[3]][1])+3*(a[i[13]][1]+a[i[7]][1]))/9]),i[6]=a.length,a.push([(-4*a[i[3]][0]-a[i[12]][0]+6*(a[i[2]][0]+a[i[7]][0])-2*(a[i[0]][0]+a[i[15]][0])+3*(a[i[4]][0]+a[i[14]][0]))/9,(-4*a[i[3]][1]-a[i[12]][1]+6*(a[i[2]][1]+a[i[7]][1])-2*(a[i[0]][1]+a[i[15]][1])+3*(a[i[4]][1]+a[i[14]][1]))/9]),i[9]=a.length,a.push([(-4*a[i[12]][0]-a[i[3]][0]+6*(a[i[8]][0]+a[i[13]][0])-2*(a[i[0]][0]+a[i[15]][0])+3*(a[i[11]][0]+a[i[1]][0]))/9,(-4*a[i[12]][1]-a[i[3]][1]+6*(a[i[8]][1]+a[i[13]][1])-2*(a[i[0]][1]+a[i[15]][1])+3*(a[i[11]][1]+a[i[1]][1]))/9]),i[10]=a.length,a.push([(-4*a[i[15]][0]-a[i[0]][0]+6*(a[i[11]][0]+a[i[14]][0])-2*(a[i[12]][0]+a[i[3]][0])+3*(a[i[2]][0]+a[i[8]][0]))/9,(-4*a[i[15]][1]-a[i[0]][1]+6*(a[i[11]][1]+a[i[14]][1])-2*(a[i[12]][1]+a[i[3]][1])+3*(a[i[2]][1]+a[i[8]][1]))/9]),this.figures.push({type:3,coords:new Int32Array(i),colors:new Int32Array(n)})}}_decodeType7Shading(t){let a=this.coords,r=this.colors,i=new Int32Array(16),n=new Int32Array(4);for(;t.hasData;){let s,o,l,c;let h=t.readFlag();if(!(0<=h&&h<=3))throw new N("Unknown type7 flag");let u=a.length;for(let r=0,i=0!==h?12:16;r<i;r++)a.push(t.readCoordinate());let f=r.length;for(let a=0,i=0!==h?2:4;a<i;a++)r.push(t.readComponents());switch(h){case 0:i[12]=u+3,i[13]=u+4,i[14]=u+5,i[15]=u+6,i[8]=u+2,i[9]=u+13,i[10]=u+14,i[11]=u+7,i[4]=u+1,i[5]=u+12,i[6]=u+15,i[7]=u+8,i[0]=u,i[1]=u+11,i[2]=u+10,i[3]=u+9,n[2]=f+1,n[3]=f+2,n[0]=f,n[1]=f+3;break;case 1:s=i[12],o=i[13],l=i[14],c=i[15],i[12]=c,i[13]=u+0,i[14]=u+1,i[15]=u+2,i[8]=l,i[9]=u+9,i[10]=u+10,i[11]=u+3,i[4]=o,i[5]=u+8,i[6]=u+11,i[7]=u+4,i[0]=s,i[1]=u+7,i[2]=u+6,i[3]=u+5,s=n[2],o=n[3],n[2]=o,n[3]=f,n[0]=s,n[1]=f+1;break;case 2:s=i[15],o=i[11],i[12]=i[3],i[13]=u+0,i[14]=u+1,i[15]=u+2,i[8]=i[7],i[9]=u+9,i[10]=u+10,i[11]=u+3,i[4]=o,i[5]=u+8,i[6]=u+11,i[7]=u+4,i[0]=s,i[1]=u+7,i[2]=u+6,i[3]=u+5,s=n[3],n[2]=n[1],n[3]=f,n[0]=s,n[1]=f+1;break;case 3:i[12]=i[0],i[13]=u+0,i[14]=u+1,i[15]=u+2,i[8]=i[1],i[9]=u+9,i[10]=u+10,i[11]=u+3,i[4]=i[2],i[5]=u+8,i[6]=u+11,i[7]=u+4,i[0]=i[3],i[1]=u+7,i[2]=u+6,i[3]=u+5,n[2]=n[0],n[3]=f,n[0]=n[1],n[1]=f+1}this.figures.push({type:3,coords:new Int32Array(i),colors:new Int32Array(n)})}}_buildFigureFromPatch(t){let a=this.figures[t];C(3===a.type,"Unexpected patch mesh figure");let r=this.coords,i=this.colors,n=a.coords,s=a.colors,o=Math.min(r[n[0]][0],r[n[3]][0],r[n[12]][0],r[n[15]][0]),l=Math.min(r[n[0]][1],r[n[3]][1],r[n[12]][1],r[n[15]][1]),c=Math.max(r[n[0]][0],r[n[3]][0],r[n[12]][0],r[n[15]][0]),h=Math.max(r[n[0]][1],r[n[3]][1],r[n[12]][1],r[n[15]][1]),u=Math.ceil((c-o)*iG.TRIANGLE_DENSITY/(this.bounds[2]-this.bounds[0]));u=K(u,iG.MIN_SPLIT_PATCH_CHUNKS_AMOUNT,iG.MAX_SPLIT_PATCH_CHUNKS_AMOUNT);let f=Math.ceil((h-l)*iG.TRIANGLE_DENSITY/(this.bounds[3]-this.bounds[1]));f=K(f,iG.MIN_SPLIT_PATCH_CHUNKS_AMOUNT,iG.MAX_SPLIT_PATCH_CHUNKS_AMOUNT);let d=u+1,g=new Int32Array((f+1)*d),p=new Int32Array((f+1)*d),m=0,b=new Uint8Array(3),y=new Uint8Array(3),w=i[s[0]],x=i[s[1]],k=i[s[2]],v=i[s[3]],A=iz(f),S=iz(u);for(let t=0;t<=f;t++){b[0]=(w[0]*(f-t)+k[0]*t)/f|0,b[1]=(w[1]*(f-t)+k[1]*t)/f|0,b[2]=(w[2]*(f-t)+k[2]*t)/f|0,y[0]=(x[0]*(f-t)+v[0]*t)/f|0,y[1]=(x[1]*(f-t)+v[1]*t)/f|0,y[2]=(x[2]*(f-t)+v[2]*t)/f|0;for(let a=0;a<=u;a++,m++){if(!(0!==t&&t!==f||0!==a&&a!==u))continue;let s=0,o=0,l=0;for(let i=0;i<=3;i++)for(let c=0;c<=3;c++,l++){let h=A[t][i]*S[a][c];s+=r[n[l]][0]*h,o+=r[n[l]][1]*h}g[m]=r.length,r.push([s,o]),p[m]=i.length;let c=new Uint8Array(3);c[0]=(b[0]*(u-a)+y[0]*a)/u|0,c[1]=(b[1]*(u-a)+y[1]*a)/u|0,c[2]=(b[2]*(u-a)+y[2]*a)/u|0,i.push(c)}}g[0]=n[0],p[0]=s[0],g[u]=n[3],p[u]=s[1],g[d*f]=n[12],p[d*f]=s[2],g[d*f+u]=n[15],p[d*f+u]=s[3],this.figures[t]={type:2,coords:g,colors:p,verticesPerRow:d}}_updateBounds(){let t=this.coords[0][0],a=this.coords[0][1],r=t,i=a;for(let n=1,s=this.coords.length;n<s;n++){let s=this.coords[n][0],o=this.coords[n][1];t=t>s?s:t,a=a>o?o:a,r=r<s?s:r,i=i<o?o:i}this.bounds=[t,a,r,i]}_packData(){let t,a,r,i;let n=this.coords,s=new Float32Array(2*n.length);for(t=0,r=0,a=n.length;t<a;t++){let a=n[t];s[r++]=a[0],s[r++]=a[1]}this.coords=s;let o=this.colors,l=new Uint8Array(3*o.length);for(t=0,r=0,a=o.length;t<a;t++){let a=o[t];l[r++]=a[0],l[r++]=a[1],l[r++]=a[2]}this.colors=l;let c=this.figures;for(t=0,a=c.length;t<a;t++){let a=c[t],n=a.coords,s=a.colors;for(r=0,i=n.length;r<i;r++)n[r]*=2,s[r]*=3}}getIR(){let{bounds:t}=this;if(t[2]-t[0]==0||t[3]-t[1]==0)throw new N(`Invalid MeshShading bounds: [${t}].`);return["Mesh",this.shadingType,this.coords,this.colors,this.figures,t,this.bbox,this.background]}}class iW extends ij{getIR(){return["Dummy"]}}function iV(t,a,r){let i=eE(a.getArray("Matrix"),em),n=e_(a.getArray("BBox"),null);if(!n||n[2]-n[0]==0||n[3]-n[1]==0)throw new N("Invalid getTilingPatternIR /BBox array.");let s=a.get("XStep");if("number"!=typeof s)throw new N("Invalid getTilingPatternIR /XStep value.");let o=a.get("YStep");if("number"!=typeof o)throw new N("Invalid getTilingPatternIR /YStep value.");let l=a.get("PaintType");if(!Number.isInteger(l))throw new N("Invalid getTilingPatternIR /PaintType value.");let c=a.get("TilingType");if(!Number.isInteger(c))throw new N("Invalid getTilingPatternIR /TilingType value.");return["TilingPattern",r,t,i,n,s,o,l,c]}let iX=[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],iK={lineHeight:1.2207,lineGap:.2207},iY=[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],iJ={lineHeight:1.2207,lineGap:.2207},iZ=[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],iQ={lineHeight:1.2207,lineGap:.2207},i1=[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],i0={lineHeight:1.2207,lineGap:.2207},i2=[.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],i9={lineHeight:1.2,lineGap:.2},i5=[.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],i3={lineHeight:1.35,lineGap:.2},i6=[.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],i7={lineHeight:1.35,lineGap:.2},i8=[.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],i4={lineHeight:1.2,lineGap:.2},ne=[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],nt=[-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],na=[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],nr=[-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],ni=[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],nn=[-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],ns=[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],no=[-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],nl=[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],nc={lineHeight:1.2,lineGap:.2},nh=[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],nu={lineHeight:1.2,lineGap:.2},nf=[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],nd={lineHeight:1.2,lineGap:.2},ng=[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],np={lineHeight:1.2,lineGap:.2},nm=[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],nb={lineHeight:1.33008,lineGap:0},ny=[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],nw={lineHeight:1.33008,lineGap:0},nx=[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],nk={lineHeight:1.33008,lineGap:0},nv=[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],nA={lineHeight:1.33008,lineGap:0},nC=ew(function(t){t["MyriadPro-Regular"]=t["PdfJS-Fallback-Regular"]={name:"LiberationSans-Regular",factors:ng,baseWidths:ns,baseMapping:no,metrics:np},t["MyriadPro-Bold"]=t["PdfJS-Fallback-Bold"]={name:"LiberationSans-Bold",factors:nl,baseWidths:ne,baseMapping:nt,metrics:nc},t["MyriadPro-It"]=t["MyriadPro-Italic"]=t["PdfJS-Fallback-Italic"]={name:"LiberationSans-Italic",factors:nf,baseWidths:ni,baseMapping:nn,metrics:nd},t["MyriadPro-BoldIt"]=t["MyriadPro-BoldItalic"]=t["PdfJS-Fallback-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:nh,baseWidths:na,baseMapping:nr,metrics:nu},t.ArialMT=t.Arial=t["Arial-Regular"]={name:"LiberationSans-Regular",baseWidths:ns,baseMapping:no},t["Arial-BoldMT"]=t["Arial-Bold"]={name:"LiberationSans-Bold",baseWidths:ne,baseMapping:nt},t["Arial-ItalicMT"]=t["Arial-Italic"]={name:"LiberationSans-Italic",baseWidths:ni,baseMapping:nn},t["Arial-BoldItalicMT"]=t["Arial-BoldItalic"]={name:"LiberationSans-BoldItalic",baseWidths:na,baseMapping:nr},t["Calibri-Regular"]={name:"LiberationSans-Regular",factors:i1,baseWidths:ns,baseMapping:no,metrics:i0},t["Calibri-Bold"]={name:"LiberationSans-Bold",factors:iX,baseWidths:ne,baseMapping:nt,metrics:iK},t["Calibri-Italic"]={name:"LiberationSans-Italic",factors:iZ,baseWidths:ni,baseMapping:nn,metrics:iQ},t["Calibri-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:iY,baseWidths:na,baseMapping:nr,metrics:iJ},t["Segoeui-Regular"]={name:"LiberationSans-Regular",factors:nv,baseWidths:ns,baseMapping:no,metrics:nA},t["Segoeui-Bold"]={name:"LiberationSans-Bold",factors:nm,baseWidths:ne,baseMapping:nt,metrics:nb},t["Segoeui-Italic"]={name:"LiberationSans-Italic",factors:nx,baseWidths:ni,baseMapping:nn,metrics:nk},t["Segoeui-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:ny,baseWidths:na,baseMapping:nr,metrics:nw},t["Helvetica-Regular"]=t.Helvetica={name:"LiberationSans-Regular",factors:i8,baseWidths:ns,baseMapping:no,metrics:i4},t["Helvetica-Bold"]={name:"LiberationSans-Bold",factors:i2,baseWidths:ne,baseMapping:nt,metrics:i9},t["Helvetica-Italic"]={name:"LiberationSans-Italic",factors:i6,baseWidths:ni,baseMapping:nn,metrics:i7},t["Helvetica-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:i5,baseWidths:na,baseMapping:nr,metrics:i3}});function nS(t){let a=rt(t);return nC()[a]}function nI(t){let a=function(t){let a=nS(t);if(!a)return null;let{baseWidths:r,baseMapping:i,factors:n}=a,s=n?r.map((t,a)=>t*n[a]):r,o,l=-2,c=[];for(let[t,a]of i.map((t,a)=>[t,a]).sort(([t],[a])=>t-a))-1!==t&&(t===l+1?(o.push(s[a]),l+=1):(l=t,o=[s[a]],c.push(t,o)));return c}(t),r=new en(null);r.set("BaseFont",ea.get(t)),r.set("Type",ea.get("Font")),r.set("Subtype",ea.get("CIDFontType2")),r.set("Encoding",ea.get("Identity-H")),r.set("CIDToGIDMap",ea.get("Identity")),r.set("W",a),r.set("FirstChar",a[0]),r.set("LastChar",a.at(-2)+a.at(-1).length-1);let i=new en(null);r.set("FontDescriptor",i);let n=new en(null);return n.set("Ordering","Identity"),n.set("Registry","Adobe"),n.set("Supplement",0),r.set("CIDSystemInfo",n),r}class nT{constructor(t){this.lexer=t,this.operators=[],this.token=null,this.prev=null}nextToken(){this.prev=this.token,this.token=this.lexer.getToken()}accept(t){return this.token.type===t&&(this.nextToken(),!0)}expect(t){if(this.accept(t))return!0;throw new N(`Unexpected symbol: found ${this.token.type} expected ${t}.`)}parse(){return this.nextToken(),this.expect(nB.LBRACE),this.parseBlock(),this.expect(nB.RBRACE),this.operators}parseBlock(){for(;;)if(this.accept(nB.NUMBER))this.operators.push(this.prev.value);else if(this.accept(nB.OPERATOR))this.operators.push(this.prev.value);else{if(!this.accept(nB.LBRACE))return;this.parseCondition()}}parseCondition(){let t=this.operators.length;if(this.operators.push(null,null),this.parseBlock(),this.expect(nB.RBRACE),this.accept(nB.IF))this.operators[t]=this.operators.length,this.operators[t+1]="jz";else{if(!this.accept(nB.LBRACE))throw new N("PS Function: error parsing conditional.");{let a=this.operators.length;this.operators.push(null,null);let r=this.operators.length;this.parseBlock(),this.expect(nB.RBRACE),this.expect(nB.IFELSE),this.operators[a]=this.operators.length,this.operators[a+1]="j",this.operators[t]=r,this.operators[t+1]="jz"}}}}let nB={LBRACE:0,RBRACE:1,NUMBER:2,OPERATOR:3,IF:4,IFELSE:5};class nF{static get opCache(){return I(this,"opCache",Object.create(null))}constructor(t,a){this.type=t,this.value=a}static getOperator(t){return nF.opCache[t]||=new nF(nB.OPERATOR,t)}static get LBRACE(){return I(this,"LBRACE",new nF(nB.LBRACE,"{"))}static get RBRACE(){return I(this,"RBRACE",new nF(nB.RBRACE,"}"))}static get IF(){return I(this,"IF",new nF(nB.IF,"IF"))}static get IFELSE(){return I(this,"IFELSE",new nF(nB.IFELSE,"IFELSE"))}}class nM{constructor(t){this.stream=t,this.nextChar(),this.strBuf=[]}nextChar(){return this.currentChar=this.stream.getByte()}getToken(){let t=!1,a=this.currentChar;for(;;){if(a<0)return Z;if(t)10!==a&&13!==a||(t=!1);else if(37===a)t=!0;else if(!eO(a))break;a=this.nextChar()}switch(0|a){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 nF(nB.NUMBER,this.getNumber());case 123:return this.nextChar(),nF.LBRACE;case 125:return this.nextChar(),nF.RBRACE}let r=this.strBuf;for(r.length=0,r[0]=String.fromCharCode(a);(a=this.nextChar())>=0&&(a>=65&&a<=90||a>=97&&a<=122);)r.push(String.fromCharCode(a));let i=r.join("");switch(i.toLowerCase()){case"if":return nF.IF;case"ifelse":return nF.IFELSE;default:return nF.getOperator(i)}}getNumber(){let t=this.currentChar,a=this.strBuf;for(a.length=0,a[0]=String.fromCharCode(t);(t=this.nextChar())>=0&&(t>=48&&t<=57||45===t||46===t);)a.push(String.fromCharCode(t));let r=parseFloat(a.join(""));if(isNaN(r))throw new N(`Invalid floating point number: ${r}`);return r}}class nR{constructor(t){this._onlyRefs=!0===t?.onlyRefs,this._onlyRefs||(this._nameRefMap=new Map,this._imageMap=new Map),this._imageCache=new el}getByName(t){this._onlyRefs&&A("Should not call `getByName` method.");let a=this._nameRefMap.get(t);return a?this.getByRef(a):this._imageMap.get(t)||null}getByRef(t){return this._imageCache.get(t)||null}set(t,a,r){A("Abstract method `set` called.")}}class nN extends nR{set(t,a=null,r){if("string"!=typeof t)throw Error('LocalImageCache.set - expected "name" argument.');if(a){if(this._imageCache.has(a))return;this._nameRefMap.set(t,a),this._imageCache.put(a,r)}else this._imageMap.has(t)||this._imageMap.set(t,r)}}class nO extends nR{set(t=null,a=null,r){if("string"!=typeof t&&!a)throw Error('LocalColorSpaceCache.set - expected "name" and/or "ref" argument.');if(a){if(this._imageCache.has(a))return;null!==t&&this._nameRefMap.set(t,a),this._imageCache.put(a,r)}else this._imageMap.has(t)||this._imageMap.set(t,r)}}class nD extends nR{constructor(t){super({onlyRefs:!0})}set(t=null,a,r){if(!a)throw Error('LocalFunctionCache.set - expected "ref" argument.');this._imageCache.has(a)||this._imageCache.put(a,r)}}class nE extends nR{set(t,a=null,r){if("string"!=typeof t)throw Error('LocalGStateCache.set - expected "name" argument.');if(a){if(this._imageCache.has(a))return;this._nameRefMap.set(t,a),this._imageCache.put(a,r)}else this._imageMap.has(t)||this._imageMap.set(t,r)}}class nP extends nR{constructor(t){super({onlyRefs:!0})}set(t=null,a,r){if(!a)throw Error('LocalTilingPatternCache.set - expected "ref" argument.');this._imageCache.has(a)||this._imageCache.put(a,r)}}class n_ extends nR{constructor(t){super({onlyRefs:!0})}set(t=null,a,r){if(!a)throw Error('RegionalImageCache.set - expected "ref" argument.');this._imageCache.has(a)||this._imageCache.put(a,r)}}class nL extends nR{constructor(t){super({onlyRefs:!0})}set(t=null,a,r){if(!a)throw Error('GlobalColorSpaceCache.set - expected "ref" argument.');this._imageCache.has(a)||this._imageCache.put(a,r)}clear(){this._imageCache.clear()}}class nU{static NUM_PAGES_THRESHOLD=2;static MIN_IMAGES_TO_CACHE=10;static MAX_BYTE_SIZE=5e7;#eo=new eo;constructor(){this._refCache=new el,this._imageCache=new el}get #el(){let t=0;for(let a of this._imageCache)t+=a.byteSize;return t}get #ec(){return!(this._imageCache.size<nU.MIN_IMAGES_TO_CACHE)&&!(this.#el<nU.MAX_BYTE_SIZE)}shouldCache(t,a){let r=this._refCache.get(t);return r||(r=new Set,this._refCache.put(t,r)),r.add(a),!(r.size<nU.NUM_PAGES_THRESHOLD)&&!(!this._imageCache.has(t)&&this.#ec)}addDecodeFailed(t){this.#eo.put(t)}hasDecodeFailed(t){return this.#eo.has(t)}addByteSize(t,a){let r=this._imageCache.get(t);r&&(r.byteSize||(r.byteSize=a))}getData(t,a){let r=this._refCache.get(t);if(!r||r.size<nU.NUM_PAGES_THRESHOLD)return null;let i=this._imageCache.get(t);return i?(r.add(a),i):null}setData(t,a){if(!this._refCache.has(t))throw Error('GlobalImageCache.setData - expected "shouldCache" to have been called.');this._imageCache.has(t)||(this.#ec?v("GlobalImageCache.setData - cache limit reached."):this._imageCache.put(t,a))}clear(t=!1){t||(this.#eo.clear(),this._refCache.clear()),this._imageCache.clear()}}class nj{constructor({xref:t,isEvalSupported:a=!0}){this.xref=t,this.isEvalSupported=!1!==a}create(t,a=!1){let r,i;if(t instanceof es?r=t:t instanceof en?r=t.objId:t instanceof ed&&(r=t.dict?.objId),r){let t=this._localFunctionCache.getByRef(r);if(t)return t}let n=this.xref.fetchIfRef(t);if(Array.isArray(n)){if(!a)throw Error('PDFFunctionFactory.create - expected "parseArray" argument.');i=nH.parseArray(this,n)}else i=nH.parse(this,n);return r&&this._localFunctionCache.set(null,r,i),i}get _localFunctionCache(){return I(this,"_localFunctionCache",new nD)}}function nq(t){return Array.isArray(t)?eD(t,null)?t:t.map(t=>+t):null}class nH{static getSampleArray(t,a,r,i){let n,s,o=1;for(n=0,s=t.length;n<s;n++)o*=t[n];o*=a;let l=Array(o),c=0,h=0,u=1/(2**r-1),f=i.getBytes((o*r+7)/8),d=0;for(n=0;n<o;n++){for(;c<r;)h<<=8,h|=f[d++],c+=8;c-=r,l[n]=(h>>c)*u,h&=(1<<c)-1}return l}static parse(t,a){let r=a.dict||a;switch(r.get("FunctionType")){case 0:return this.constructSampled(t,a,r);case 1:break;case 2:return this.constructInterpolated(t,r);case 3:return this.constructStiched(t,r);case 4:return this.constructPostScript(t,a,r)}throw new N("Unknown type of function")}static parseArray(t,a){let{xref:r}=t,i=[];for(let n of a)i.push(this.parse(t,r.fetchIfRef(n)));return function(t,a,r,n){for(let s=0,o=i.length;s<o;s++)i[s](t,a,r,n+s)}}static constructSampled(t,a,r){function i(t){let a=t.length,r=[],i=0;for(let n=0;n<a;n+=2)r[i++]=[t[n],t[n+1]];return r}let n=nq(r.getArray("Domain")),s=nq(r.getArray("Range"));if(!n||!s)throw new N("No domain or range");let o=n.length/2,l=s.length/2;n=i(n),s=i(s);let c=nq(r.getArray("Size")),h=r.get("BitsPerSample"),u=r.get("Order")||1;1!==u&&k("No support for cubic spline interpolation: "+u);let f=nq(r.getArray("Encode"));if(f)f=i(f);else{f=[];for(let t=0;t<o;++t)f.push([0,c[t]-1])}let d=nq(r.getArray("Decode"));d=d?i(d):s;let g=this.getSampleArray(c,l,h,a);return function(t,a,r,i){var h,u,p,m;let b=1<<o,y=new Float64Array(b).fill(1),w=new Uint32Array(b),x,k,v=l,A=1;for(x=0;x<o;++x){let r=n[x][0],i=n[x][1],s=(h=K(t[a+x],r,i),(u=f[x][0])+(f[x][1]-u)/(i-r)*(h-r)),o=c[x];s=K(s,0,o-1);let l=s<o-1?Math.floor(s):s-1,d=l+1-s,g=s-l,p=l*v,m=p+v;for(k=0;k<b;k++)k&A?(y[k]*=g,w[k]+=m):(y[k]*=d,w[k]+=p);v*=o,A<<=1}for(k=0;k<l;++k){let t=0;for(x=0;x<b;x++)t+=g[w[x]+k]*y[x];p=t,t=(m=d[k][0])+(d[k][1]-m)/1*(p-0),r[i+k]=K(t,s[k][0],s[k][1])}}}static constructInterpolated(t,a){let r=nq(a.getArray("C0"))||[0],i=nq(a.getArray("C1"))||[1],n=a.get("N"),s=[];for(let t=0,a=r.length;t<a;++t)s.push(i[t]-r[t]);let o=s.length;return function(t,a,i,l){let c=1===n?t[a]:t[a]**n;for(let t=0;t<o;++t)i[l+t]=r[t]+c*s[t]}}static constructStiched(t,a){let r=nq(a.getArray("Domain"));if(!r)throw new N("No domain");if(1!=r.length/2)throw new N("Bad domain for stiched function");let{xref:i}=t,n=[];for(let r of a.get("Functions"))n.push(this.parse(t,i.fetchIfRef(r)));let s=nq(a.getArray("Bounds")),o=nq(a.getArray("Encode")),l=new Float32Array(1);return function(t,a,i,c){let h;let u=K(t[a],r[0],r[1]),f=s.length;for(h=0;h<f&&!(u<s[h]);++h);let d=r[0];h>0&&(d=s[h-1]);let g=r[1];h<s.length&&(g=s[h]);let p=o[2*h],m=o[2*h+1];l[0]=d===g?p:p+(u-d)*(m-p)/(g-d),n[h](l,0,i,c)}}static constructPostScript(t,a,r){let i=nq(r.getArray("Domain")),n=nq(r.getArray("Range"));if(!i)throw new N("No domain.");if(!n)throw new N("No range.");let s=new nM(a),o=new nT(s).parse();if(t.isEvalSupported&&L.isEvalSupported){let t=(new n1).compile(o,i,n);if(t)return Function("src","srcOffset","dest","destOffset",t)}k("Unable to compile PS function");let l=n.length>>1,c=i.length>>1,h=new nG(o),u=Object.create(null),f=8192,d=new Float32Array(c);return function(t,a,r,i){let s,o,g="";for(s=0;s<c;s++)o=t[a+s],d[s]=o,g+=o+"_";let p=u[g];if(void 0!==p){r.set(p,i);return}let m=new Float32Array(l),b=h.execute(d),y=b.length-l;for(s=0;s<l;s++){o=b[y+s];let t=n[2*s];o<t?o=t:o>(t=n[2*s+1])&&(o=t),m[s]=o}f>0&&(f--,u[g]=m),r.set(m,i)}}}function n$(t){let a;if(t instanceof en)a=t;else{if(!(t instanceof ed))return!1;a=t.dict}return a.has("FunctionType")}class nz{static MAX_STACK_SIZE=100;constructor(t){this.stack=t?Array.from(t):[]}push(t){if(this.stack.length>=nz.MAX_STACK_SIZE)throw Error("PostScript function stack overflow.");this.stack.push(t)}pop(){if(this.stack.length<=0)throw Error("PostScript function stack underflow.");return this.stack.pop()}copy(t){if(this.stack.length+t>=nz.MAX_STACK_SIZE)throw Error("PostScript function stack overflow.");let a=this.stack;for(let r=a.length-t,i=t-1;i>=0;i--,r++)a.push(a[r])}index(t){this.push(this.stack[this.stack.length-t-1])}roll(t,a){let r=this.stack,i=r.length-t,n=r.length-1,s=i+(a-Math.floor(a/t)*t);for(let t=i,a=n;t<a;t++,a--){let i=r[t];r[t]=r[a],r[a]=i}for(let t=i,a=s-1;t<a;t++,a--){let i=r[t];r[t]=r[a],r[a]=i}for(let t=s,a=n;t<a;t++,a--){let i=r[t];r[t]=r[a],r[a]=i}}}class nG{constructor(t){this.operators=t}execute(t){let a,r,i;let n=new nz(t),s=0,o=this.operators,l=o.length;for(;s<l;)if("number"!=typeof(a=o[s++]))switch(a){case"jz":i=n.pop(),(r=n.pop())||(s=i);break;case"j":s=r=n.pop();break;case"abs":r=n.pop(),n.push(Math.abs(r));break;case"add":i=n.pop(),r=n.pop(),n.push(r+i);break;case"and":i=n.pop(),"boolean"==typeof(r=n.pop())&&"boolean"==typeof i?n.push(r&&i):n.push(r&i);break;case"atan":i=n.pop(),(r=Math.atan2(r=n.pop(),i)/Math.PI*180)<0&&(r+=360),n.push(r);break;case"bitshift":i=n.pop(),(r=n.pop())>0?n.push(r<<i):n.push(r>>i);break;case"ceiling":r=n.pop(),n.push(Math.ceil(r));break;case"copy":r=n.pop(),n.copy(r);break;case"cos":r=n.pop(),n.push(Math.cos(r%360/180*Math.PI));break;case"cvi":r=0|n.pop(),n.push(r);break;case"cvr":break;case"div":i=n.pop(),r=n.pop(),n.push(r/i);break;case"dup":n.copy(1);break;case"eq":i=n.pop(),r=n.pop(),n.push(r===i);break;case"exch":n.roll(2,1);break;case"exp":i=n.pop(),r=n.pop(),n.push(r**i);break;case"false":n.push(!1);break;case"floor":r=n.pop(),n.push(Math.floor(r));break;case"ge":i=n.pop(),r=n.pop(),n.push(r>=i);break;case"gt":i=n.pop(),r=n.pop(),n.push(r>i);break;case"idiv":i=n.pop(),r=n.pop(),n.push(r/i|0);break;case"index":r=n.pop(),n.index(r);break;case"le":i=n.pop(),r=n.pop(),n.push(r<=i);break;case"ln":r=n.pop(),n.push(Math.log(r));break;case"log":r=n.pop(),n.push(Math.log10(r));break;case"lt":i=n.pop(),r=n.pop(),n.push(r<i);break;case"mod":i=n.pop(),r=n.pop(),n.push(r%i);break;case"mul":i=n.pop(),r=n.pop(),n.push(r*i);break;case"ne":i=n.pop(),r=n.pop(),n.push(r!==i);break;case"neg":r=n.pop(),n.push(-r);break;case"not":"boolean"==typeof(r=n.pop())?n.push(!r):n.push(~r);break;case"or":i=n.pop(),"boolean"==typeof(r=n.pop())&&"boolean"==typeof i?n.push(r||i):n.push(r|i);break;case"pop":n.pop();break;case"roll":i=n.pop(),r=n.pop(),n.roll(r,i);break;case"round":r=n.pop(),n.push(Math.round(r));break;case"sin":r=n.pop(),n.push(Math.sin(r%360/180*Math.PI));break;case"sqrt":r=n.pop(),n.push(Math.sqrt(r));break;case"sub":i=n.pop(),r=n.pop(),n.push(r-i);break;case"true":n.push(!0);break;case"truncate":r=(r=n.pop())<0?Math.ceil(r):Math.floor(r),n.push(r);break;case"xor":i=n.pop(),"boolean"==typeof(r=n.pop())&&"boolean"==typeof i?n.push(r!==i):n.push(r^i);break;default:throw new N(`Unknown operator ${a}`)}else n.push(a);return n.stack}}class nW{constructor(t){this.type=t}visit(t){A("abstract method")}}class nV extends nW{constructor(t,a,r){super("args"),this.index=t,this.min=a,this.max=r}visit(t){t.visitArgument(this)}}class nX extends nW{constructor(t){super("literal"),this.number=t,this.min=t,this.max=t}visit(t){t.visitLiteral(this)}}class nK extends nW{constructor(t,a,r,i,n){super("binary"),this.op=t,this.arg1=a,this.arg2=r,this.min=i,this.max=n}visit(t){t.visitBinaryOperation(this)}}class nY extends nW{constructor(t,a){super("max"),this.arg=t,this.min=t.min,this.max=a}visit(t){t.visitMin(this)}}class nJ extends nW{constructor(t,a,r){super("var"),this.index=t,this.min=a,this.max=r}visit(t){t.visitVariable(this)}}class nZ extends nW{constructor(t,a){super("definition"),this.variable=t,this.arg=a}visit(t){t.visitVariableDefinition(this)}}class nQ{constructor(){this.parts=[]}visitArgument(t){this.parts.push("Math.max(",t.min,", Math.min(",t.max,", src[srcOffset + ",t.index,"]))")}visitVariable(t){this.parts.push("v",t.index)}visitLiteral(t){this.parts.push(t.number)}visitBinaryOperation(t){this.parts.push("("),t.arg1.visit(this),this.parts.push(" ",t.op," "),t.arg2.visit(this),this.parts.push(")")}visitVariableDefinition(t){this.parts.push("var "),t.variable.visit(this),this.parts.push(" = "),t.arg.visit(this),this.parts.push(";")}visitMin(t){this.parts.push("Math.min("),t.arg.visit(this),this.parts.push(", ",t.max,")")}toString(){return this.parts.join("")}}class n1{compile(t,a,r){var i,n,s,o;let l=[],c=[],h=a.length>>1,u=r.length>>1,f,d,g,p,m,b,y,w,x=0;for(let t=0;t<h;t++)l.push(new nV(t,a[2*t],a[2*t+1]));for(let a=0,r=t.length;a<r;a++)if("number"!=typeof(w=t[a]))switch(w){case"add":if(l.length<2)return null;p=l.pop(),g=l.pop(),l.push((i=g,"literal"===(n=p).type&&0===n.number?i:"literal"===i.type&&0===i.number?n:"literal"===n.type&&"literal"===i.type?new nX(i.number+n.number):new nK("+",i,n,i.min+n.min,i.max+n.max)));break;case"cvr":if(l.length<1)return null;break;case"mul":if(l.length<2)return null;p=l.pop(),g=l.pop(),l.push(function(t,a){if("literal"===a.type){if(0===a.number)return new nX(0);if(1===a.number)return t;if("literal"===t.type)return new nX(t.number*a.number)}if("literal"===t.type){if(0===t.number)return new nX(0);if(1===t.number)return a}let r=Math.min(t.min*a.min,t.min*a.max,t.max*a.min,t.max*a.max),i=Math.max(t.min*a.min,t.min*a.max,t.max*a.min,t.max*a.max);return new nK("*",t,a,r,i)}(g,p));break;case"sub":if(l.length<2)return null;p=l.pop(),g=l.pop(),l.push(function(t,a){if("literal"===a.type){if(0===a.number)return t;if("literal"===t.type)return new nX(t.number-a.number)}return"binary"===a.type&&"-"===a.op&&"literal"===t.type&&1===t.number&&"literal"===a.arg1.type&&1===a.arg1.number?a.arg2:new nK("-",t,a,t.min-a.max,t.max-a.min)}(g,p));break;case"exch":if(l.length<2)return null;m=l.pop(),b=l.pop(),l.push(m,b);break;case"pop":if(l.length<1)return null;l.pop();break;case"index":if(l.length<1||"literal"!==(g=l.pop()).type||(f=g.number)<0||!Number.isInteger(f)||l.length<f)return null;if("literal"===(m=l[l.length-f-1]).type||"var"===m.type){l.push(m);break}y=new nJ(x++,m.min,m.max),l[l.length-f-1]=y,l.push(y),c.push(new nZ(y,m));break;case"dup":if(l.length<1)return null;if("number"==typeof t[a+1]&&"gt"===t[a+2]&&t[a+3]===a+7&&"jz"===t[a+4]&&"pop"===t[a+5]&&t[a+6]===t[a+1]){g=l.pop(),l.push((s=g,o=t[a+1],s.min>=o?new nX(o):s.max<=o?s:new nY(s,o))),a+=6;break}if("literal"===(m=l.at(-1)).type||"var"===m.type){l.push(m);break}y=new nJ(x++,m.min,m.max),l[l.length-1]=y,l.push(y),c.push(new nZ(y,m));break;case"roll":if(l.length<2||(p=l.pop(),g=l.pop(),"literal"!==p.type||"literal"!==g.type)||(d=p.number,(f=g.number)<=0||!Number.isInteger(f)||!Number.isInteger(d)||l.length<f))return null;if(0==(d=(d%f+f)%f))break;l.push(...l.splice(l.length-f,f-d));break;default:return null}else l.push(new nX(w));if(l.length!==u)return null;let k=[];for(let t of c){let a=new nQ;t.visit(a),k.push(a.toString())}for(let t=0,a=l.length;t<a;t++){let a=l[t],i=new nQ;a.visit(i);let n=r[2*t],s=r[2*t+1],o=[i.toString()];n>a.min&&(o.unshift("Math.max(",n,", "),o.push(")")),s<a.max&&(o.unshift("Math.min(",s,", "),o.push(")")),o.unshift("dest[destOffset + ",t,"] = "),o.push(";"),k.push(o.join(""))}return k.join("\n")}}let n0=["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"],n2=["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 n9(t,a,r){for(let i=a,n=r-1;i<n;++i,--n){let a=t[i];t[i]=t[n],t[n]=a}}function n5(t,a,r=!1){let i="ltr";return r?i="ttb":a||(i="rtl"),{str:t,dir:i}}let n3=[],n6=[];function n7(t,a=-1,r=!1){let i=!0,n=t.length;if(0===n||r)return n5(t,i,r);n3.length=n,n6.length=n;let s,o,l=0;for(s=0;s<n;++s){n3[s]=t.charAt(s);let a=t.charCodeAt(s),r="L";a<=255?r=n0[a]:1424<=a&&a<=1524?r="R":1536<=a&&a<=1791?(r=n2[255&a])||v("Bidi: invalid Unicode character "+a.toString(16)):(1792<=a&&a<=2220||64336<=a&&a<=65023||65136<=a&&a<=65279)&&(r="AL"),"R"!==r&&"AL"!==r&&"AN"!==r||l++,n6[s]=r}if(0===l)return n5(t,i=!0);-1===a&&(l/n<.3&&n>4?(i=!0,a=0):(i=!1,a=1));let c=[];for(s=0;s<n;++s)c[s]=a;let h=1&a?"R":"L",u,f=h;for(s=0;s<n;++s)"NSM"===n6[s]?n6[s]=f:f=n6[s];for(s=0,f=h;s<n;++s)"EN"===(u=n6[s])?n6[s]="AL"===f?"AN":"EN":"R"!==u&&"L"!==u&&"AL"!==u||(f=u);for(s=0;s<n;++s)"AL"===(u=n6[s])&&(n6[s]="R");for(s=1;s<n-1;++s)"ES"===n6[s]&&"EN"===n6[s-1]&&"EN"===n6[s+1]&&(n6[s]="EN"),"CS"!==n6[s]||"EN"!==n6[s-1]&&"AN"!==n6[s-1]||n6[s+1]!==n6[s-1]||(n6[s]=n6[s-1]);for(s=0;s<n;++s)if("EN"===n6[s]){for(let t=s-1;t>=0&&"ET"===n6[t];--t)n6[t]="EN";for(let t=s+1;t<n&&"ET"===n6[t];++t)n6[t]="EN"}for(s=0;s<n;++s)"WS"!==(u=n6[s])&&"ES"!==u&&"ET"!==u&&"CS"!==u||(n6[s]="ON");for(s=0,f=h;s<n;++s)"EN"===(u=n6[s])?n6[s]="L"===f?"L":"EN":"R"!==u&&"L"!==u||(f=u);for(s=0;s<n;++s)if("ON"===n6[s]){let t=function(t,a,r){let i,n;for(i=a,n=t.length;i<n&&"ON"===t[i];++i);return i}(n6,s+1,0),a=h;s>0&&(a=n6[s-1]);let r=h;t+1<n&&(r=n6[t+1]),"L"!==a&&(a="R"),"L"!==r&&(r="R"),a===r&&n6.fill(a,s,t),s=t-1}for(s=0;s<n;++s)"ON"===n6[s]&&(n6[s]=h);for(s=0;s<n;++s)u=n6[s],1&c[s]?"L"!==u&&"AN"!==u&&"EN"!==u||(c[s]+=1):"R"===u?c[s]+=1:"AN"!==u&&"EN"!==u||(c[s]+=2);let d,g=-1,p=99;for(s=0,o=c.length;s<o;++s)g<(d=c[s])&&(g=d),p>d&&1&d&&(p=d);for(d=g;d>=p;--d){let t=-1;for(s=0,o=c.length;s<o;++s)c[s]<d?t>=0&&(n9(n3,t,s),t=-1):t<0&&(t=s);t>=0&&n9(n3,t,c.length)}for(s=0,o=n3.length;s<o;++s){let t=n3[s];"<"!==t&&">"!==t||(n3[s]="")}return n5(n3.join(""),i)}let n8={style:"normal",weight:"normal"},n4={style:"normal",weight:"bold"},se={style:"italic",weight:"normal"},st={style:"italic",weight:"bold"},sa=new Map([["Times-Roman",{local:["Times New Roman","Times-Roman","Times","Liberation Serif","Nimbus Roman","Nimbus Roman L","Tinos","Thorndale","TeX Gyre Termes","FreeSerif","Linux Libertine O","Libertinus Serif","PT Astra Serif","DejaVu Serif","Bitstream Vera Serif","Ubuntu"],style:n8,ultimate:"serif"}],["Times-Bold",{alias:"Times-Roman",style:n4,ultimate:"serif"}],["Times-Italic",{alias:"Times-Roman",style:se,ultimate:"serif"}],["Times-BoldItalic",{alias:"Times-Roman",style:st,ultimate:"serif"}],["Helvetica",{local:["Helvetica","Helvetica Neue","Arial","Arial Nova","Liberation Sans","Arimo","Nimbus Sans","Nimbus Sans L","A030","TeX Gyre Heros","FreeSans","DejaVu Sans","Albany","Bitstream Vera Sans","Arial Unicode MS","Microsoft Sans Serif","Apple Symbols","Cantarell"],path:"LiberationSans-Regular.ttf",style:n8,ultimate:"sans-serif"}],["Helvetica-Bold",{alias:"Helvetica",path:"LiberationSans-Bold.ttf",style:n4,ultimate:"sans-serif"}],["Helvetica-Oblique",{alias:"Helvetica",path:"LiberationSans-Italic.ttf",style:se,ultimate:"sans-serif"}],["Helvetica-BoldOblique",{alias:"Helvetica",path:"LiberationSans-BoldItalic.ttf",style:st,ultimate:"sans-serif"}],["Courier",{local:["Courier","Courier New","Liberation Mono","Nimbus Mono","Nimbus Mono L","Cousine","Cumberland","TeX Gyre Cursor","FreeMono","Linux Libertine Mono O","Libertinus Mono"],style:n8,ultimate:"monospace"}],["Courier-Bold",{alias:"Courier",style:n4,ultimate:"monospace"}],["Courier-Oblique",{alias:"Courier",style:se,ultimate:"monospace"}],["Courier-BoldOblique",{alias:"Courier",style:st,ultimate:"monospace"}],["ArialBlack",{local:["Arial Black"],style:{style:"normal",weight:"900"},fallback:"Helvetica-Bold"}],["ArialBlack-Bold",{alias:"ArialBlack"}],["ArialBlack-Italic",{alias:"ArialBlack",style:{style:"italic",weight:"900"},fallback:"Helvetica-BoldOblique"}],["ArialBlack-BoldItalic",{alias:"ArialBlack-Italic"}],["ArialNarrow",{local:["Arial Narrow","Liberation Sans Narrow","Helvetica Condensed","Nimbus Sans Narrow","TeX Gyre Heros Cn"],style:n8,fallback:"Helvetica"}],["ArialNarrow-Bold",{alias:"ArialNarrow",style:n4,fallback:"Helvetica-Bold"}],["ArialNarrow-Italic",{alias:"ArialNarrow",style:se,fallback:"Helvetica-Oblique"}],["ArialNarrow-BoldItalic",{alias:"ArialNarrow",style:st,fallback:"Helvetica-BoldOblique"}],["Calibri",{local:["Calibri","Carlito"],style:n8,fallback:"Helvetica"}],["Calibri-Bold",{alias:"Calibri",style:n4,fallback:"Helvetica-Bold"}],["Calibri-Italic",{alias:"Calibri",style:se,fallback:"Helvetica-Oblique"}],["Calibri-BoldItalic",{alias:"Calibri",style:st,fallback:"Helvetica-BoldOblique"}],["Wingdings",{local:["Wingdings","URW Dingbats"],style:n8}],["Wingdings-Regular",{alias:"Wingdings"}],["Wingdings-Bold",{alias:"Wingdings"}]]),sr=new Map([["Arial-Black","ArialBlack"]]);function si(t){let a=new Set(["thin","extralight","ultralight","demilight","semilight","light","book","regular","normal","medium","demibold","semibold","bold","extrabold","ultrabold","black","heavy","extrablack","ultrablack","roman","italic","oblique","ultracondensed","extracondensed","condensed","semicondensed","normal","semiexpanded","expanded","extraexpanded","ultraexpanded","bolditalic"]);return t.split(/[- ,+]+/g).filter(t=>!a.has(t.toLowerCase())).join(" ")}function sn(t,a,r,i,n,s){if(i.startsWith("InvalidPDFjsFont_"))return null;("TrueType"===s||"Type1"===s)&&/^[A-Z]{6}\+/.test(i)&&(i=i.slice(7));let o=i=rt(i),l=t.get(o);if(l)return l;let c=sa.get(i);if(!c){for(let[t,a]of sr)if(i.startsWith(t)){i=`${a}${i.substring(t.length)}`,c=sa.get(i);break}}let h=!1;c||(c=sa.get(n),h=!0);let u=`${a.getDocId()}_s${a.createFontId()}`;if(!c){if(!eG(i))return v(`Cannot substitute the font because of its name: ${i}`),t.set(o,null),null;let a=/bold/gi.test(i),r=/oblique|italic/gi.test(i),n=a&&r&&st||a&&n4||r&&se||n8;return l={css:`"${si(i)}",${u}`,guessFallback:!0,loadedName:u,baseFontName:i,src:`local(${i})`,style:n},t.set(o,l),l}let f=[];h&&eG(i)&&f.push(`local(${i})`);let{style:d,ultimate:g}=function t({alias:a,local:r,path:i,fallback:n,style:s,ultimate:o},l,c,h=!0,u=!0,f=""){let d={style:null,ultimate:null};if(r){let t=f?` ${f}`:"";for(let a of r)l.push(`local(${a}${t})`)}if(a){let r=sa.get(a),o=f||function(t){switch(t){case n4:return"Bold";case se:return"Italic";case st:return"Bold Italic";default:if("bold"===t?.weight)return"Bold";if("italic"===t?.style)return"Italic"}return""}(s);Object.assign(d,t(r,l,c,h&&!n,u&&!i,o))}if(s&&(d.style=s),o&&(d.ultimate=o),h&&n){let a=sa.get(n),{ultimate:r}=t(a,l,c,h,u&&!i,f);d.ultimate||=r}return u&&i&&c&&l.push(`url(${c}${i})`),d}(c,f,r),p=null===g,m=p?"":`,${g}`;return l={css:`"${si(i)}",${u}${m}`,guessFallback:p,loadedName:u,baseFontName:i,src:f.join(","),style:d},t.set(o,l),l}class ss{constructor(t){this.h1=t?4294967295&t:3285377520,this.h2=t?4294967295&t:3285377520}update(t){let a,r;if("string"==typeof t){a=new Uint8Array(2*t.length),r=0;for(let i=0,n=t.length;i<n;i++){let n=t.charCodeAt(i);n<=255?a[r++]=n:(a[r++]=n>>>8,a[r++]=255&n)}}else{if(!ArrayBuffer.isView(t))throw Error("Invalid data format, must be a string or TypedArray.");r=(a=t.slice()).byteLength}let i=r>>2,n=r-4*i,s=new Uint32Array(a.buffer,0,i),o=0,l=0,c=this.h1,h=this.h2;for(let t=0;t<i;t++)1&t?(c^=o=461845907*(o=(o=3432918353*(o=s[t])&4294901760|11601*o&65535)<<15|o>>>17)&4294901760|13715*o&65535,c=5*(c=c<<13|c>>>19)+3864292196):(h^=l=461845907*(l=(l=3432918353*(l=s[t])&4294901760|11601*l&65535)<<15|l>>>17)&4294901760|13715*l&65535,h=5*(h=h<<13|h>>>19)+3864292196);switch(o=0,n){case 3:o^=a[4*i+2]<<16;case 2:o^=a[4*i+1]<<8;case 1:o^=a[4*i],o=461845907*(o=(o=3432918353*o&4294901760|11601*o&65535)<<15|o>>>17)&4294901760|13715*o&65535,1&i?c^=o:h^=o}this.h1=c,this.h2=h}hexdigest(){let t=this.h1,a=this.h2;return t^=a>>>1,a=4283543511*a&4294901760|(2950163797*(a<<16|(t=3981806797*t&4294901760|36045*t&65535)>>>16)&4294901760)>>>16,t^=a>>>1,a=3301882366*a&4294901760|(3120437893*(a<<16|(t=444984403*t&4294901760|60499*t&65535)>>>16)&4294901760)>>>16,((t^=a>>>1)>>>0).toString(16).padStart(8,"0")+(a>>>0).toString(16).padStart(8,"0")}}function so(t,a,r,i,n,s){let o;let l=n*s;o=a<=8?new Uint8Array(l):a<=16?new Uint16Array(l):new Uint32Array(l);let c=r/n,h=i/s,u,f,d,g,p=0,m=new Uint16Array(n);for(u=0;u<n;u++)m[u]=Math.floor(u*c);for(u=0;u<s;u++)for(f=0,d=Math.floor(u*h)*r;f<n;f++)g=d+m[f],o[p++]=t[g];return o}class sl{constructor({xref:t,res:a,image:r,isInline:i=!1,smask:n=null,mask:s=null,isMask:o=!1,pdfFunctionFactory:l,globalColorSpaceCache:c,localColorSpaceCache:h}){let u;this.image=r;let f=r.dict,d=f.get("F","Filter");if(d instanceof ea)u=d.name;else if(Array.isArray(d)){let a=t.fetchIfRef(d[0]);a instanceof ea&&(u=a.name)}switch(u){case"JPXDecode":({width:r.width,height:r.height,componentsCount:r.numComps,bitsPerComponent:r.bitsPerComponent}=t_.parseImageProperties(r.stream)),r.stream.reset();let g=tk.getReducePowerForJPX(r.width,r.height,r.numComps);if(this.jpxDecoderOptions={numComponents:0,isIndexedColormap:!1,smaskInData:f.has("SMaskInData"),reducePower:g},g){let t=2**g;r.width=Math.ceil(r.width/t),r.height=Math.ceil(r.height/t)}break;case"JBIG2Decode":r.bitsPerComponent=1,r.numComps=1}let p=f.get("W","Width"),m=f.get("H","Height");if(Number.isInteger(r.width)&&r.width>0&&Number.isInteger(r.height)&&r.height>0&&(r.width!==p||r.height!==m))v("PDFImage - using the Width/Height of the image data, rather than the image dictionary."),p=r.width,m=r.height;else{let t="number"==typeof p&&p>0,a="number"==typeof m&&m>0;if(!t||!a){if(!r.fallbackDims)throw new N(`Invalid image width: ${p} or height: ${m}`);v("PDFImage - using the Width/Height of the parent image, for SMask/Mask data."),t||(p=r.fallbackDims.width),a||(m=r.fallbackDims.height)}}this.width=p,this.height=m,this.interpolate=f.get("I","Interpolate"),this.imageMask=f.get("IM","ImageMask")||!1,this.matte=f.get("Matte")||!1;let b=r.bitsPerComponent;if(!b&&!(b=f.get("BPC","BitsPerComponent"))){if(!this.imageMask)throw new N(`Bits per component missing in image: ${this.imageMask}`);b=1}if(this.bpc=b,!this.imageMask){let n=f.getRaw("CS")||f.getRaw("ColorSpace"),s=!!n;if(s)this.jpxDecoderOptions?.smaskInData&&(n=ea.get("DeviceRGBA"));else if(this.jpxDecoderOptions)n=ea.get("DeviceRGBA");else switch(r.numComps){case 1:n=ea.get("DeviceGray");break;case 3:n=ea.get("DeviceRGB");break;case 4:n=ea.get("DeviceCMYK");break;default:throw Error(`Images with ${r.numComps} color components not supported.`)}this.colorSpace=tS.parse({cs:n,xref:t,resources:i?a:null,pdfFunctionFactory:l,globalColorSpaceCache:c,localColorSpaceCache:h}),this.numComps=this.colorSpace.numComps,this.jpxDecoderOptions&&(this.jpxDecoderOptions.numComponents=s?this.numComps:0,this.jpxDecoderOptions.isIndexedColormap="Indexed"===this.colorSpace.name)}if(this.decode=f.getArray("D","Decode"),this.needsDecode=!1,this.decode&&(this.colorSpace&&!this.colorSpace.isDefaultDecode(this.decode,b)||o&&!te.isDefaultDecode(this.decode,1))){this.needsDecode=!0;let t=(1<<b)-1;this.decodeCoefficients=[],this.decodeAddends=[];let a="Indexed"===this.colorSpace?.name;for(let r=0,i=0;r<this.decode.length;r+=2,++i){let n=this.decode[r],s=this.decode[r+1];this.decodeCoefficients[i]=a?(s-n)/t:s-n,this.decodeAddends[i]=a?n:t*n}}n?(n.fallbackDims??={width:p,height:m},this.smask=new sl({xref:t,res:a,image:n,isInline:i,pdfFunctionFactory:l,globalColorSpaceCache:c,localColorSpaceCache:h})):s&&(s instanceof ed?s.dict.get("IM","ImageMask")?(s.fallbackDims??={width:p,height:m},this.mask=new sl({xref:t,res:a,image:s,isInline:i,isMask:!0,pdfFunctionFactory:l,globalColorSpaceCache:c,localColorSpaceCache:h})):v("Ignoring /Mask in image without /ImageMask."):this.mask=s)}static async buildImage({xref:t,res:a,image:r,isInline:i=!1,pdfFunctionFactory:n,globalColorSpaceCache:s,localColorSpaceCache:o}){let l=null,c=null,h=r.dict.get("SMask"),u=r.dict.get("Mask");return h?h instanceof ed?l=h:v("Unsupported /SMask format."):u&&(u instanceof ed||Array.isArray(u)?c=u:v("Unsupported /Mask format.")),new sl({xref:t,res:a,image:r,isInline:i,smask:l,mask:c,pdfFunctionFactory:n,globalColorSpaceCache:s,localColorSpaceCache:o})}static async createMask({image:t,isOffscreenCanvasSupported:a=!1}){let r;let{dict:i}=t,n=i.get("W","Width"),s=i.get("H","Height"),o=i.get("I","Interpolate"),l=i.getArray("D","Decode"),c=l?.[0]>0,h=(n+7>>3)*s,u=t.getBytes(h),f=1===n&&1===s&&c===(0===u.length||!!(128&u[0]));if(f)return{isSingleOpaquePixel:f};if(a){if(tk.needsToBeResized(n,s)){let t=new Uint8ClampedArray(n*s*4);return tx({src:u,dest:t,width:n,height:s,nonBlackColor:0,inverseDecode:c}),tk.createImage({kind:3,data:t,width:n,height:s,interpolate:o})}let t=new OffscreenCanvas(n,s),a=t.getContext("2d"),r=a.createImageData(n,s);return tx({src:u,dest:r.data,width:n,height:s,nonBlackColor:0,inverseDecode:c}),a.putImageData(r,0,0),{data:null,width:n,height:s,interpolate:o,bitmap:t.transferToImageBitmap()}}let d=u.byteLength;if(t instanceof tA&&(!c||h===d)?r=u:c?((r=new Uint8Array(h)).set(u),r.fill(255,d)):r=new Uint8Array(u),c)for(let t=0;t<d;t++)r[t]^=255;return{data:r,width:n,height:s,interpolate:o}}get drawWidth(){return Math.max(this.width,this.smask?.width||0,this.mask?.width||0)}get drawHeight(){return Math.max(this.height,this.smask?.height||0,this.mask?.height||0)}decodeBuffer(t){let a,r;let i=this.bpc,n=this.numComps,s=this.decodeAddends,o=this.decodeCoefficients,l=(1<<i)-1;if(1===i){for(a=0,r=t.length;a<r;a++)t[a]=+!t[a];return}let c=0;for(a=0,r=this.width*this.height;a<r;a++)for(let a=0;a<n;a++)t[c]=K(s[a]+t[c]*o[a],0,l),c++}getComponents(t){let a=this.bpc;if(8===a)return t;let r=this.width,i=this.height,n=this.numComps,s=r*i*n,o,l=0;o=a<=8?new Uint8Array(s):a<=16?new Uint16Array(s):new Uint32Array(s);let c=r*n,h=(1<<a)-1,u,f=0;if(1===a){let a,r,n;for(let s=0;s<i;s++){for(r=f+(-8&c),n=f+c;f<r;)u=t[l++],o[f]=u>>7&1,o[f+1]=u>>6&1,o[f+2]=u>>5&1,o[f+3]=u>>4&1,o[f+4]=u>>3&1,o[f+5]=u>>2&1,o[f+6]=u>>1&1,o[f+7]=1&u,f+=8;if(f<n)for(u=t[l++],a=128;f<n;)o[f++]=+!!(u&a),a>>=1}}else{let r=0;for(f=0,u=0;f<s;++f){for(f%c==0&&(u=0,r=0);r<a;)u=u<<8|t[l++],r+=8;let i=r-a,n=u>>i;n<0?n=0:n>h&&(n=h),o[f]=n,u&=(1<<i)-1,r=i}}return o}async fillOpacity(t,a,r,i,n){let s,o,l,c,h,u;let f=this.smask,d=this.mask;if(f)o=f.width,l=f.height,s=new Uint8ClampedArray(o*l),await f.fillGrayBuffer(s),o===a&&l===r||(s=so(s,f.bpc,o,l,a,r));else if(d){if(d instanceof sl){for(o=d.width,l=d.height,s=new Uint8ClampedArray(o*l),d.numComps=1,await d.fillGrayBuffer(s),c=0,h=o*l;c<h;++c)s[c]=255-s[c];o===a&&l===r||(s=so(s,d.bpc,o,l,a,r))}else{if(!Array.isArray(d))throw new N("Unknown mask format.");{s=new Uint8ClampedArray(a*r);let t=this.numComps;for(c=0,h=a*r;c<h;++c){let a=0,r=c*t;for(u=0;u<t;++u){let t=n[r+u],i=2*u;if(t<d[i]||t>d[i+1]){a=255;break}}s[c]=a}}}}if(s)for(c=0,u=3,h=a*i;c<h;++c,u+=4)t[u]=s[c];else for(c=0,u=3,h=a*i;c<h;++c,u+=4)t[u]=255}undoPreblend(t,a,r){let i=this.smask?.matte;if(!i)return;let n=this.colorSpace.getRgb(i,0),s=n[0],o=n[1],l=n[2],c=a*r*4;for(let a=0;a<c;a+=4){let r=t[a+3];if(0===r){t[a]=255,t[a+1]=255,t[a+2]=255;continue}let i=255/r;t[a]=(t[a]-s)*i+s,t[a+1]=(t[a+1]-o)*i+o,t[a+2]=(t[a+2]-l)*i+l}}async createImageData(t=!1,a=!1){let r,i,n,s,o,l;let c=this.drawWidth,h=this.drawHeight,u={width:c,height:h,interpolate:this.interpolate,kind:0,data:null},f=this.numComps,d=this.width,g=this.height,p=this.bpc,m=d*f*p+7>>3,b=a&&tk.needsToBeResized(c,h);if(!this.smask&&!this.mask&&"DeviceRGBA"===this.colorSpace.name){u.kind=3;let t=u.data=await this.getImageBytes(g*d*4,{});return a?b?tk.createImage(u,!1):this.createBitmap(3,c,h,t):u}if(!t){let t;if("DeviceGray"===this.colorSpace.name&&1===p?t=1:"DeviceRGB"!==this.colorSpace.name||8!==p||this.needsDecode||(t=2),t&&!this.smask&&!this.mask&&c===d&&h===g){let r=await this.#eh(d,g);if(r)return r;let i=await this.getImageBytes(g*m,{});if(a)return b?tk.createImage({data:i,kind:t,width:c,height:h,interpolate:this.interpolate},this.needsDecode):this.createBitmap(t,d,g,i);if(u.kind=t,u.data=i,this.needsDecode){C(1===t,"PDFImage.createImageData: The image must be grayscale.");let a=u.data;for(let t=0,r=a.length;t<r;t++)a[t]^=255}return u}if(this.image instanceof tD&&!this.smask&&!this.mask&&!this.needsDecode){let t=g*m;if(a&&!b){let a=!1;switch(this.colorSpace.name){case"DeviceGray":t*=4,a=!0;break;case"DeviceRGB":t=t/3*4,a=!0;break;case"DeviceCMYK":a=!0}if(a){let a=await this.#eh(c,h);if(a)return a;let r=await this.getImageBytes(t,{drawWidth:c,drawHeight:h,forceRGBA:!0});return this.createBitmap(3,c,h,r)}}else switch(this.colorSpace.name){case"DeviceGray":t*=3;case"DeviceRGB":case"DeviceCMYK":return u.kind=2,u.data=await this.getImageBytes(t,{drawWidth:c,drawHeight:h,forceRGB:!0}),b?tk.createImage(u):u}}}let y=await this.getImageBytes(g*m,{internal:!0}),w=0|y.length/m*h/g,x=this.getComponents(y);return(a&&!b&&(l=(o=(s=(n=new OffscreenCanvas(c,h)).getContext("2d")).createImageData(c,h)).data),u.kind=3,t||this.smask||this.mask?(a&&!b||(l=new Uint8ClampedArray(c*h*4)),r=1,i=!0,await this.fillOpacity(l,c,h,w,x)):(!a||b?(u.kind=2,l=new Uint8ClampedArray(c*h*3),r=0):(new Uint32Array(l.buffer).fill(L.isLittleEndian?4278190080:255),r=1),i=!1),this.needsDecode&&this.decodeBuffer(x),this.colorSpace.fillRgb(l,d,g,c,h,w,p,x,r),i&&this.undoPreblend(l,c,w),a&&!b)?(s.putImageData(o,0,0),{data:null,width:c,height:h,bitmap:n.transferToImageBitmap(),interpolate:this.interpolate}):(u.data=l,b?tk.createImage(u):u)}async fillGrayBuffer(t){let a,r;let i=this.numComps;if(1!==i)throw new N(`Reading gray scale from a color image: ${i}`);let n=this.width,s=this.height,o=this.bpc,l=await this.getImageBytes(s*(n*i*o+7>>3),{internal:!0}),c=this.getComponents(l);if(1===o){if(r=n*s,this.needsDecode)for(a=0;a<r;++a)t[a]=c[a]-1&255;else for(a=0;a<r;++a)t[a]=255&-c[a];return}this.needsDecode&&this.decodeBuffer(c),r=n*s;let h=255/((1<<o)-1);for(a=0;a<r;++a)t[a]=h*c[a]}createBitmap(t,a,r,i){let n;let s=new OffscreenCanvas(a,r),o=s.getContext("2d");return 3===t?n=new ImageData(i,a,r):(n=o.createImageData(a,r),tw({kind:t,src:i,dest:new Uint32Array(n.data.buffer),width:a,height:r,inverseDecode:this.needsDecode})),o.putImageData(n,0,0),{data:null,width:a,height:r,bitmap:s.transferToImageBitmap(),interpolate:this.interpolate}}async #eh(t,a){let r=await this.image.getTransferableImage();return r?{data:null,width:t,height:a,bitmap:r,interpolate:this.interpolate}:null}async getImageBytes(t,{drawWidth:a,drawHeight:r,forceRGBA:i=!1,forceRGB:n=!1,internal:s=!1}){this.image.reset(),this.image.drawWidth=a||this.width,this.image.drawHeight=r||this.height,this.image.forceRGBA=!!i,this.image.forceRGB=!!n;let o=await this.image.getImageData(t,this.jpxDecoderOptions);return s||this.image instanceof tA?o:(C(o instanceof Uint8Array,'PDFImage.getImageBytes: Unsupported "imageBytes" type.'),new Uint8Array(o))}}let sc=Object.freeze({maxImageSize:-1,disableFontFace:!1,ignoreErrors:!1,isEvalSupported:!0,isOffscreenCanvasSupported:!1,isImageDecoderSupported:!1,canvasMaxAreaInBytes:-1,fontExtraProperties:!1,useSystemFonts:!0,useWasm:!0,useWorkerFetch:!0,cMapUrl:null,iccUrl:null,standardFontDataUrl:null,wasmUrl:null}),sh=Promise.resolve();function su(t,{objId:a,fn:r,args:i,optionalContent:n,hasMask:s}){a&&t.addDependency(a),t.addImageOps(r,i,n,s),83===r&&i[0]?.count>0&&i[0].count++}class sf{static TIME_SLOT_DURATION_MS=20;static CHECK_TIME_EVERY=100;constructor(){this.reset()}check(){return!(++this.checked<sf.CHECK_TIME_EVERY)&&(this.checked=0,this.endTime<=Date.now())}reset(){this.endTime=Date.now()+sf.TIME_SLOT_DURATION_MS,this.checked=0}}class sd{constructor({xref:t,handler:a,pageIndex:r,idFactory:i,fontCache:n,builtInCMapCache:s,standardFontDataCache:o,globalColorSpaceCache:l,globalImageCache:c,systemFontCache:h,options:u=null}){this.xref=t,this.handler=a,this.pageIndex=r,this.idFactory=i,this.fontCache=n,this.builtInCMapCache=s,this.standardFontDataCache=o,this.globalColorSpaceCache=l,this.globalImageCache=c,this.systemFontCache=h,this.options=u||sc,this.type3FontRefs=null,this._regionalImageCache=new n_,this._fetchBuiltInCMapBound=this.fetchBuiltInCMap.bind(this)}get _pdfFunctionFactory(){return I(this,"_pdfFunctionFactory",new nj({xref:this.xref,isEvalSupported:this.options.isEvalSupported}))}get parsingType3Font(){return!!this.type3FontRefs}clone(t=null){let a=Object.create(this);return a.options=Object.assign(Object.create(null),this.options,t),a}hasBlendModes(t,a){if(!(t instanceof en)||t.objId&&a.has(t.objId))return!1;let r=new eo(a);t.objId&&r.put(t.objId);let i=[t],n=this.xref;for(;i.length;){let t=i.shift(),a=t.get("ExtGState");if(a instanceof en)for(let t of a.getRawValues()){if(t instanceof es){if(r.has(t))continue;try{t=n.fetch(t)}catch(a){r.put(t),k(`hasBlendModes - ignoring ExtGState: "${a}".`);continue}}if(!(t instanceof en))continue;t.objId&&r.put(t.objId);let a=t.get("BM");if(a instanceof ea){if("Normal"!==a.name)return!0}else if(void 0!==a&&Array.isArray(a)){for(let t of a)if(t instanceof ea&&"Normal"!==t.name)return!0}}let s=t.get("XObject");if(s instanceof en)for(let t of s.getRawValues()){if(t instanceof es){if(r.has(t))continue;try{t=n.fetch(t)}catch(a){r.put(t),k(`hasBlendModes - ignoring XObject: "${a}".`);continue}}if(!(t instanceof ed))continue;t.dict.objId&&r.put(t.dict.objId);let a=t.dict.get("Resources");a instanceof en&&(!a.objId||!r.has(a.objId))&&(i.push(a),a.objId&&r.put(a.objId))}}for(let t of r)a.put(t);return!1}async fetchBuiltInCMap(t){let a;let r=this.builtInCMapCache.get(t);return r||(a=this.options.useWorkerFetch?{cMapData:await eS(`${this.options.cMapUrl}${t}.bcmap`),isCompressed:!0}:await this.handler.sendWithPromise("FetchBinaryData",{type:"cMapReaderFactory",name:t}),this.builtInCMapCache.set(t,a),a)}async fetchStandardFontData(t){let a;let r=this.standardFontDataCache.get(t);if(r)return new tg(r);if(this.options.useSystemFonts&&"Symbol"!==t&&"ZapfDingbats"!==t)return null;let i=rI()[t];try{a=this.options.useWorkerFetch?await eS(`${this.options.standardFontDataUrl}${i}`):await this.handler.sendWithPromise("FetchBinaryData",{type:"standardFontDataFactory",filename:i})}catch(t){return v(t),null}return this.standardFontDataCache.set(t,a),new tg(a)}async buildFormXObject(t,a,r,i,n,s,o,l){let c,h;let{dict:u}=a,f=eE(u.getArray("Matrix"),null),d=e_(u.getArray("BBox"),null);u.has("OC")&&(c=await this.parseMarkedContentProps(u.get("OC"),t)),void 0!==c&&i.addOp(70,["OC",c]);let g=u.get("Group");if(g){h={matrix:f,bbox:d,smask:r,isolated:!1,knockout:!1};let a=null;if(ec(g.get("S"),"Transparency")&&(h.isolated=g.get("I")||!1,h.knockout=g.get("K")||!1,g.has("CS"))){let r=this._getColorSpace(g.getRaw("CS"),t,o);a=r instanceof te?r:await this._handleColorSpace(r)}r?.backdrop&&(a||=tS.rgb,r.backdrop=a.getRgbHex(r.backdrop,0)),i.addOp(76,[h])}let p=[f&&new Float32Array(f),!g&&d&&new Float32Array(d)||null];i.addOp(74,p);let m=u.get("Resources");await this.getOperatorList({stream:a,task:n,resources:m instanceof en?m:t,operatorList:i,initialState:s,prevRefs:l}),i.addOp(75,[]),g&&i.addOp(77,[h]),void 0!==c&&i.addOp(71,[])}_sendImgData(t,a,r=!1){let i=a?[a.bitmap||a.data.buffer]:null;return this.parsingType3Font||r?this.handler.send("commonobj",[t,"Image",a],i):this.handler.send("obj",[t,this.pageIndex,"Image",a],i)}async buildPaintImageXObject({resources:t,image:a,isInline:r=!1,operatorList:i,cacheKey:n,localImageCache:s,localColorSpaceCache:o}){let l,c,h,u;let{maxImageSize:f,ignoreErrors:d,isOffscreenCanvasSupported:g}=this.options,{dict:p}=a,m=p.objId,b=p.get("W","Width"),y=p.get("H","Height");if(!b||"number"!=typeof b||!y||"number"!=typeof y){v("Image dimensions are missing, or not numbers.");return}if(-1!==f&&b*y>f){let t="Image exceeded maximum allowed size and was removed.";if(!d)throw Error(t);v(t);return}if(p.has("OC")&&(l=await this.parseMarkedContentProps(p.get("OC"),t)),p.get("IM","ImageMask")){if((c=await sl.createMask({image:a,isOffscreenCanvasSupported:g&&!this.parsingType3Font})).isSingleOpaquePixel){if(h=90,u=[],i.addImageOps(h,u,l),n){let t={fn:h,args:u,optionalContent:l};s.set(n,m,t),m&&this._regionalImageCache.set(null,m,t)}return}if(this.parsingType3Font){if(u=function({data:t,width:a,height:r}){let i,n,s;if(a>1e3||r>1e3)return null;let o=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),l=a+1,c=new Uint8Array(l*(r+1)),h=a+7&-8,u=new Uint8Array(h*r),f=0;for(let a of t){let t=128;for(;t>0;)u[f++]=a&t?0:255,t>>=1}let d=0;for(0!==u[f=0]&&(c[0]=1,++d),n=1;n<a;n++)u[f]!==u[f+1]&&(c[n]=u[f]?2:1,++d),f++;for(0!==u[f]&&(c[n]=2,++d),i=1;i<r;i++){f=i*h,s=i*l,u[f-h]!==u[f]&&(c[s]=u[f]?1:8,++d);let t=(u[f]?4:0)+(u[f-h]?8:0);for(n=1;n<a;n++)o[t=(t>>2)+(u[f+1]?4:0)+(u[f-h+1]?8:0)]&&(c[s+n]=o[t],++d),f++;if(u[f-h]!==u[f]&&(c[s+n]=u[f]?2:4,++d),d>1e3)return null}for(f=h*(r-1),s=i*l,0!==u[f]&&(c[s]=8,++d),n=1;n<a;n++)u[f]!==u[f+1]&&(c[s+n]=u[f]?4:8,++d),f++;if(0!==u[f]&&(c[s+n]=4,++d),d>1e3)return null;let g=new Int32Array([0,l,-1,0,-l,0,0,0,1]),p=[],{a:m,b:b,c:y,d:w,e:x,f:k}=(new DOMMatrix).scaleSelf(1/a,-1/r).translateSelf(0,-r);for(i=0;d&&i<=r;i++){let t=i*l,r=t+a;for(;t<r&&!c[t];)t++;if(t===r)continue;let n=t%l,s=i;p.push(0,m*n+y*s+x,b*n+w*s+k);let o=t,h=c[t];do{let a=g[h];do t+=a;while(!c[t])let r=c[t];5!==r&&10!==r?(h=r,c[t]=0):(h=r&51*h>>4,c[t]&=h>>2|h<<2),n=t%l,s=t/l|0,p.push(1,m*n+y*s+x,b*n+w*s+k),c[t]||--d}while(o!==t)--i}return[94,[new Float32Array(p)],new Float32Array([0,0,a,r])]}(c)){i.addImageOps(91,u,l);return}v("Cannot compile Type3 glyph."),i.addImageOps(83,[c],l);return}let t=`mask_${this.idFactory.createObjId()}`;if(i.addDependency(t),c.dataLen=c.bitmap?c.width*c.height*4:c.data.length,this._sendImgData(t,c),h=83,u=[{data:t,width:c.width,height:c.height,interpolate:c.interpolate,count:1}],i.addImageOps(h,u,l),n){let a={objId:t,fn:h,args:u,optionalContent:l};s.set(n,m,a),m&&this._regionalImageCache.set(null,m,a)}return}let w=p.has("SMask")||p.has("Mask");if(r&&b+y<200&&!w){try{let n=new sl({xref:this.xref,res:t,image:a,isInline:r,pdfFunctionFactory:this._pdfFunctionFactory,globalColorSpaceCache:this.globalColorSpaceCache,localColorSpaceCache:o});c=await n.createImageData(!0,!1),i.addImageOps(86,[c],l)}catch(a){let t=`Unable to decode inline image: "${a}".`;if(!d)throw Error(t);v(t)}return}let x=`img_${this.idFactory.createObjId()}`,k=!1,A=null;if(this.parsingType3Font?x=`${this.idFactory.getDocId()}_type3_${x}`:n&&m&&(k=this.globalImageCache.shouldCache(m,this.pageIndex))&&(C(!r,"Cannot cache an inline image globally."),x=`${this.idFactory.getDocId()}_${x}`),i.addDependency(x),h=85,u=[x,b,y],i.addImageOps(h,u,l,w),k){if(A={objId:x,fn:h,args:u,optionalContent:l,hasMask:w,byteSize:0},this.globalImageCache.hasDecodeFailed(m)){this.globalImageCache.setData(m,A),this._sendImgData(x,null,k);return}if(b*y>25e4||w){let t=await this.handler.sendWithPromise("commonobj",[x,"CopyLocalImage",{imageRef:m}]);if(t){this.globalImageCache.setData(m,A),this.globalImageCache.addByteSize(m,t);return}}}if(sl.buildImage({xref:this.xref,res:t,image:a,isInline:r,pdfFunctionFactory:this._pdfFunctionFactory,globalColorSpaceCache:this.globalColorSpaceCache,localColorSpaceCache:o}).then(async t=>((c=await t.createImageData(!1,g)).dataLen=c.bitmap?c.width*c.height*4:c.data.length,c.ref=m,k&&this.globalImageCache.addByteSize(m,c.dataLen),this._sendImgData(x,c,k))).catch(t=>(v(`Unable to decode image "${x}": "${t}".`),m&&this.globalImageCache.addDecodeFailed(m),this._sendImgData(x,null,k))),n){let t={objId:x,fn:h,args:u,optionalContent:l,hasMask:w};s.set(n,m,t),m&&(this._regionalImageCache.set(null,m,t),k&&(C(A,"The global cache-data must be available."),this.globalImageCache.setData(m,A)))}}handleSMask(t,a,r,i,n,s,o){let l=t.get("G"),c={subtype:t.get("S").name,backdrop:t.get("BC")},h=t.get("TR");if(n$(h)){let t=this._pdfFunctionFactory.create(h),a=new Uint8Array(256),r=new Float32Array(1);for(let i=0;i<256;i++)r[0]=i/255,t(r,0,r,0),a[i]=255*r[0]|0;c.transferMap=a}return this.buildFormXObject(a,l,c,r,i,n.state.clone({newPath:!0}),s,o)}handleTransferFunction(t){let a;if(Array.isArray(t))a=t;else{if(!n$(t))return null;a=[t]}let r=[],i=0,n=0;for(let t of a){let a=this.xref.fetchIfRef(t);if(i++,ec(a,"Identity")){r.push(null);continue}if(!n$(a))return null;let s=this._pdfFunctionFactory.create(a),o=new Uint8Array(256),l=new Float32Array(1);for(let t=0;t<256;t++)l[0]=t/255,s(l,0,l,0),o[t]=255*l[0]|0;r.push(o),n++}return 1!==i&&4!==i||0===n?null:r}handleTilingType(t,a,r,i,n,s,o,l){let c=new tH,h=en.merge({xref:this.xref,dictArray:[n.get("Resources"),r]});return this.getOperatorList({stream:i,task:o,resources:h,operatorList:c}).then(function(){let r=c.getIR(),i=iV(r,n,a);s.addDependencies(c.dependencies),s.addOp(t,i),n.objId&&l.set(null,n.objId,{operatorListIR:r,dict:n})}).catch(t=>{if(!(t instanceof O)){if(!this.options.ignoreErrors)throw t;v(`handleTilingType - ignoring pattern: "${t}".`)}})}async handleSetFont(t,a,r,i,n,s,o=null,l=null){let c=a?.[0] instanceof ea?a[0].name:null,h=await this.loadFont(c,r,t,n,o,l);return h.font.isType3Font&&i.addDependencies(h.type3Dependencies),s.font=h.font,h.send(this.handler),h.loadedName}handleText(t,a){let r=a.font,i=r.charsToGlyphs(t);return r.data&&(4&a.textRenderingMode||"Pattern"===a.fillColorSpace.name||r.disableFontFace)&&sd.buildFontPaths(r,i,this.handler,this.options),i}ensureStateFont(t){if(t.font)return;let a=new N("Missing setFont (Tf) operator before text rendering operator.");if(!this.options.ignoreErrors)throw a;v(`ensureStateFont: "${a}".`)}async setGState({resources:t,gState:a,operatorList:r,cacheKey:i,task:n,stateManager:s,localGStateCache:o,localColorSpaceCache:l,seenRefs:c}){let h=a.objId,u=!0,f=[],d=Promise.resolve();for(let[i,o]of a)switch(i){case"Type":break;case"LW":if("number"!=typeof o){v(`Invalid LW (line width): ${o}`);break}f.push([i,Math.abs(o)]);break;case"LC":case"LJ":case"ML":case"D":case"RI":case"FL":case"CA":case"ca":f.push([i,o]);break;case"Font":u=!1,d=d.then(()=>this.handleSetFont(t,null,o[0],r,n,s.state).then(function(t){r.addDependency(t),f.push([i,[t,o[1]]])}));break;case"BM":f.push([i,function t(a,r=!1){if(Array.isArray(a)){for(let r of a){let a=t(r,!0);if(a)return a}return v(`Unsupported blend mode Array: ${a}`),"source-over"}if(!(a instanceof ea))return r?null:"source-over";switch(a.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 r?null:(v(`Unsupported blend mode: ${a.name}`),"source-over")}(o)]);break;case"SMask":if(ec(o,"None")){f.push([i,!1]);break}o instanceof en?(u=!1,d=d.then(()=>this.handleSMask(o,t,r,n,s,l,c)),f.push([i,!0])):v("Unsupported SMask type");break;case"TR":let a=this.handleTransferFunction(o);f.push([i,a]);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":k("graphic state operator "+i);break;default:k("Unknown graphic state operator "+i)}await d,f.length>0&&r.addOp(9,[f]),u&&o.set(i,h,f)}loadFont(t,a,r,i,n=null,s=null){let o,l,c;let h=async()=>new sg({loadedName:"g_font_error",font:new iD(`Font "${t}" is not available.`),dict:a});if(a)a instanceof es&&(o=a);else{let a=r.get("Font");a&&(o=a.getRaw(t))}if(o){if(this.type3FontRefs?.has(o))return h();if(this.fontCache.has(o))return this.fontCache.get(o);try{a=this.xref.fetchIfRef(o)}catch(t){v(`loadFont - lookup failed: "${t}".`)}}if(!(a instanceof en)){if(!this.options.ignoreErrors&&!this.parsingType3Font)return v(`Font "${t}" is not available.`),h();v(`Font "${t}" is not available -- attempting to fallback to a default font.`),a=n||sd.fallbackFontDict}if(a.cacheKey&&this.fontCache.has(a.cacheKey))return this.fontCache.get(a.cacheKey);let{promise:u,resolve:f}=Promise.withResolvers();try{(l=this.preEvaluateFont(a)).cssFontInfo=s}catch(t){return v(`loadFont - preEvaluateFont failed: "${t}".`),h()}let{descriptor:d,hash:g}=l,p=o instanceof es;if(g&&d instanceof en){let t=d.fontAliases||=Object.create(null);if(t[g]){let a=t[g].aliasRef;if(p&&a&&this.fontCache.has(a))return this.fontCache.putAlias(o,a),this.fontCache.get(o)}else t[g]={fontID:this.idFactory.createFontId()};p&&(t[g].aliasRef=o),c=t[g].fontID}else c=this.idFactory.createFontId();return C(c?.startsWith("f"),'The "fontID" must be (correctly) defined.'),p?this.fontCache.put(o,u):(a.cacheKey=`cacheKey_${c}`,this.fontCache.put(a.cacheKey,u)),a.loadedName=`${this.idFactory.getDocId()}_${c}`,this.translateFont(l).then(async t=>{let n=new sg({loadedName:a.loadedName,font:t,dict:a});if(t.isType3Font)try{await n.loadType3Data(this,r,i)}catch(t){throw Error(`Type3 font load error: ${t}`)}f(n)}).catch(t=>{v(`loadFont - translateFont failed: "${t}".`),f(new sg({loadedName:a.loadedName,font:new iD(t?.message),dict:a}))}),u}buildPath(t,a,r){let{pathMinMax:i,pathBuffer:n}=r;switch(0|t){case 19:{let t=r.currentPointX=a[0],s=r.currentPointY=a[1],o=a[2],l=a[3],c=t+o,h=s+l;0===o||0===l?n.push(0,t,s,1,c,h,4):n.push(0,t,s,1,c,s,1,c,h,1,t,h,4),j.rectBoundingBox(t,s,c,h,i);break}case 13:{let t=r.currentPointX=a[0],s=r.currentPointY=a[1];n.push(0,t,s),j.pointBoundingBox(t,s,i);break}case 14:{let t=r.currentPointX=a[0],s=r.currentPointY=a[1];n.push(1,t,s),j.pointBoundingBox(t,s,i);break}case 15:{let t=r.currentPointX,s=r.currentPointY,[o,l,c,h,u,f]=a;r.currentPointX=u,r.currentPointY=f,n.push(2,o,l,c,h,u,f),j.bezierBoundingBox(t,s,o,l,c,h,u,f,i);break}case 16:{let t=r.currentPointX,s=r.currentPointY,[o,l,c,h]=a;r.currentPointX=c,r.currentPointY=h,n.push(2,t,s,o,l,c,h),j.bezierBoundingBox(t,s,t,s,o,l,c,h,i);break}case 17:{let t=r.currentPointX,s=r.currentPointY,[o,l,c,h]=a;r.currentPointX=c,r.currentPointY=h,n.push(2,o,l,c,h,c,h),j.bezierBoundingBox(t,s,o,l,c,h,c,h,i);break}case 18:n.push(4)}}_getColorSpace(t,a,r){return tS.parse({cs:t,xref:this.xref,resources:a,pdfFunctionFactory:this._pdfFunctionFactory,globalColorSpaceCache:this.globalColorSpaceCache,localColorSpaceCache:r,asyncIfNotCached:!0})}async _handleColorSpace(t){try{return await t}catch(t){if(t instanceof O)return null;if(this.options.ignoreErrors)return v(`_handleColorSpace - ignoring ColorSpace: "${t}".`),null;throw t}}parseShading({shading:t,resources:a,localColorSpaceCache:r,localShadingPatternCache:i}){let n,s=i.get(t);if(s)return s;try{n=iU.parseShading(t,this.xref,a,this._pdfFunctionFactory,this.globalColorSpaceCache,r).getIR()}catch(a){if(a instanceof O)return null;if(this.options.ignoreErrors)return v(`parseShading - ignoring shading: "${a}".`),i.set(t,null),null;throw a}if(s=`pattern_${this.idFactory.createObjId()}`,this.parsingType3Font&&(s=`${this.idFactory.getDocId()}_type3_${s}`),i.set(t,s),this.parsingType3Font){let t=[],a=iL.write(n);t.push(a),this.handler.send("commonobj",[s,"Pattern",a],t)}else this.handler.send("obj",[s,this.pageIndex,"Pattern",n]);return s}handleColorN(t,a,r,i,n,s,o,l,c,h){let u=r.pop();if(u instanceof ea){let f=n.getRaw(u.name),d=f instanceof es&&c.getByRef(f);if(d)try{let n=i.base?i.base.getRgbHex(r,0):null,s=iV(d.operatorListIR,d.dict,n);t.addOp(a,s);return}catch{}let g=this.xref.fetchIfRef(f);if(g){let n=g instanceof ed?g.dict:g,u=n.get("PatternType");if(1===u){let l=i.base?i.base.getRgbHex(r,0):null;return this.handleTilingType(a,l,s,g,n,t,o,c)}if(2===u){let r=n.get("Shading"),i=this.parseShading({shading:r,resources:s,localColorSpaceCache:l,localShadingPatternCache:h});if(i){let r=eE(n.getArray("Matrix"),null);t.addOp(a,["Shading",i,r])}return}throw new N(`Unknown PatternType: ${u}`)}}throw new N(`Unknown PatternName: ${u}`)}_parseVisibilityExpression(t,a,r){if(++a>10){v("Visibility expression is too deeply nested");return}let i=t.length,n=this.xref.fetchIfRef(t[0]);if(!(i<2)&&n instanceof ea){switch(n.name){case"And":case"Or":case"Not":r.push(n.name);break;default:v(`Invalid operator ${n.name} in visibility expression`);return}for(let n=1;n<i;n++){let i=t[n],s=this.xref.fetchIfRef(i);if(Array.isArray(s)){let t=[];r.push(t),this._parseVisibilityExpression(s,a,t)}else i instanceof es&&r.push(i.toString())}}else v("Invalid visibility expression")}async parseMarkedContentProps(t,a){let r;if(t instanceof ea)r=a.get("Properties").get(t.name);else{if(!(t instanceof en))throw new N("Optional content properties malformed.");r=t}let i=r.get("Type")?.name;if("OCG"===i)return{type:i,id:r.objId};if("OCMD"===i){let t=r.get("VE");if(Array.isArray(t)){let a=[];if(this._parseVisibilityExpression(t,0,a),a.length>0)return{type:"OCMD",expression:a}}let a=r.get("OCGs");if(Array.isArray(a)||a instanceof en){let t=[];if(Array.isArray(a))for(let r of a)t.push(r.toString());else t.push(a.objId);return{type:i,ids:t,policy:r.get("P") instanceof ea?r.get("P").name:null,expression:null}}if(a instanceof es)return{type:i,id:a.toString()}}return null}getOperatorList({stream:t,task:a,resources:r,operatorList:i,initialState:n=null,fallbackFontDict:s=null,prevRefs:o=null}){let l=t.dict?.objId,c=new eo(o);if(l){if(o?.has(l))throw Error(`getOperatorList - ignoring circular reference: ${l}`);c.put(l)}if(r||=en.empty,n||=new sb,!i)throw Error('getOperatorList: missing "operatorList" parameter');let h=this,u=this.xref,f=new nN,d=new nO,g=new nE,p=new nP,m=new Map,b=r.get("XObject")||en.empty,y=r.get("Pattern")||en.empty,w=new sp(n),x=new sy(t,u,w),A=new sf;function C(t){for(let t=0,a=x.savedStatesDepth;t<a;t++)i.addOp(11,[])}return new Promise(function t(n,o){let l,S,I,T,B,F;let M=function(a){Promise.all([a,i.ready]).then(function(){try{t(n,o)}catch(t){o(t)}},o)};a.ensureNotTerminated(),A.reset();let R={};for(;!(l=A.check())&&(R.args=null,x.read(R));){let t=R.args,n=R.fn;switch(0|n){case 66:if(F=t[0]instanceof ea,B=t[0].name,F){let a=f.getByName(B);if(a){su(i,a),t=null;continue}}M(new Promise(function(t,n){if(!F)throw new N("XObject must be referred to by name.");let s=b.getRaw(B);if(s instanceof es){let a=f.getByRef(s)||h._regionalImageCache.getByRef(s)||h.globalImageCache.getData(s,h.pageIndex);if(a){su(i,a),t();return}s=u.fetch(s)}if(!(s instanceof ed))throw new N("XObject should be a stream");let o=s.dict.get("Subtype");if(!(o instanceof ea))throw new N("XObject should have a Name subtype");if("Form"!==o.name){if("Image"!==o.name){if("PS"!==o.name)throw new N(`Unhandled XObject subtype ${o.name}`);k("Ignored XObject subtype PS"),t()}else h.buildPaintImageXObject({resources:r,image:s,operatorList:i,cacheKey:B,localImageCache:f,localColorSpaceCache:d}).then(t,n)}else w.save(),h.buildFormXObject(r,s,null,i,a,w.state.clone({newPath:!0}),d,c).then(function(){w.restore(),t()},n)}).catch(function(t){if(!(t instanceof O)){if(!h.options.ignoreErrors)throw t;v(`getOperatorList - ignoring XObject: "${t}".`)}}));return;case 37:let o=t[1];M(h.handleSetFont(r,t,null,i,a,w.state,s).then(function(t){i.addDependency(t),i.addOp(37,[t,o])}));return;case 65:let l=t[0].cacheKey;if(l){let a=f.getByName(l);if(a){su(i,a),t=null;continue}}M(h.buildPaintImageXObject({resources:r,image:t[0],isInline:!0,operatorList:i,cacheKey:l,localImageCache:f,localColorSpaceCache:d}));return;case 44:if(!w.state.font){h.ensureStateFont(w.state);continue}t[0]=h.handleText(t[0],w.state);break;case 45:if(!w.state.font){h.ensureStateFont(w.state);continue}let x=[],A=w.state;for(let a of t[0])"string"==typeof a?x.push(...h.handleText(a,A)):"number"==typeof a&&x.push(a);t[0]=x,n=44;break;case 46:if(!w.state.font){h.ensureStateFont(w.state);continue}i.addOp(43),t[0]=h.handleText(t[0],w.state),n=44;break;case 47:if(!w.state.font){h.ensureStateFont(w.state);continue}i.addOp(43),i.addOp(34,[t.shift()]),i.addOp(33,[t.shift()]),t[0]=h.handleText(t[0],w.state),n=44;break;case 38:w.state.textRenderingMode=t[0];break;case 51:{let a=h._getColorSpace(t[0],r,d);if(a instanceof te){w.state.fillColorSpace=a;continue}M(h._handleColorSpace(a).then(t=>{w.state.fillColorSpace=t||tS.gray}));return}case 50:{let a=h._getColorSpace(t[0],r,d);if(a instanceof te){w.state.strokeColorSpace=a;continue}M(h._handleColorSpace(a).then(t=>{w.state.strokeColorSpace=t||tS.gray}));return}case 54:t=[(T=w.state.fillColorSpace).getRgbHex(t,0)],n=59;break;case 52:t=[(T=w.state.strokeColorSpace).getRgbHex(t,0)],n=58;break;case 57:w.state.fillColorSpace=tS.gray,t=[tS.gray.getRgbHex(t,0)],n=59;break;case 56:w.state.strokeColorSpace=tS.gray,t=[tS.gray.getRgbHex(t,0)],n=58;break;case 61:w.state.fillColorSpace=tS.cmyk,t=[tS.cmyk.getRgbHex(t,0)],n=59;break;case 60:w.state.strokeColorSpace=tS.cmyk,t=[tS.cmyk.getRgbHex(t,0)],n=58;break;case 59:w.state.fillColorSpace=tS.rgb,t=[tS.rgb.getRgbHex(t,0)];break;case 58:w.state.strokeColorSpace=tS.rgb,t=[tS.rgb.getRgbHex(t,0)];break;case 55:if(!(T=w.state.patternFillColorSpace)){if(eD(t,null)){t=[tS.gray.getRgbHex(t,0)],n=59;break}t=[],n=93;break}if("Pattern"===T.name){M(h.handleColorN(i,55,t,T,y,r,a,d,p,m));return}t=[T.getRgbHex(t,0)],n=59;break;case 53:if(!(T=w.state.patternStrokeColorSpace)){if(eD(t,null)){t=[tS.gray.getRgbHex(t,0)],n=58;break}t=[],n=92;break}if("Pattern"===T.name){M(h.handleColorN(i,53,t,T,y,r,a,d,p,m));return}t=[T.getRgbHex(t,0)],n=58;break;case 62:let C;try{let a=r.get("Shading");if(!a)throw new N("No shading resource found");if(!(C=a.get(t[0].name)))throw new N("No shading object found")}catch(t){if(t instanceof O)continue;if(h.options.ignoreErrors){v(`getOperatorList - ignoring Shading: "${t}".`);continue}throw t}let D=h.parseShading({shading:C,resources:r,localColorSpaceCache:d,localShadingPatternCache:m});if(!D)continue;t=[D],n=62;break;case 9:if(F=t[0]instanceof ea,B=t[0].name,F){let a=g.getByName(B);if(a){a.length>0&&i.addOp(9,[a]),t=null;continue}}M(new Promise(function(t,n){if(!F)throw new N("GState must be referred to by name.");let s=r.get("ExtGState");if(!(s instanceof en))throw new N("ExtGState should be a dictionary.");let o=s.get(B);if(!(o instanceof en))throw new N("GState should be a dictionary.");h.setGState({resources:r,gState:o,operatorList:i,cacheKey:B,task:a,stateManager:w,localGStateCache:g,localColorSpaceCache:d,seenRefs:c}).then(t,n)}).catch(function(t){if(!(t instanceof O)){if(!h.options.ignoreErrors)throw t;v(`getOperatorList - ignoring ExtGState: "${t}".`)}}));return;case 2:{let[a]=t;if("number"!=typeof a){v(`Invalid setLineWidth: ${a}`);continue}t[0]=Math.abs(a);break}case 6:{let a=t[1];if("number"!=typeof a){v(`Invalid setDash: ${a}`);continue}let r=t[0];if(!Array.isArray(r)){v(`Invalid setDash: ${r}`);continue}r.some(t=>"number"!=typeof t)&&(t[0]=r.filter(t=>"number"==typeof t));break}case 13:case 14:case 15:case 16:case 17:case 18:case 19:h.buildPath(n,t,w.state);continue;case 20:case 21:case 22:case 23:case 24:case 25:case 26:case 27:case 28:{let{state:{pathBuffer:t,pathMinMax:a}}=w;21!==n&&26!==n&&27!==n||t.push(4),0===t.length?i.addOp(91,[n,[null],null]):(i.addOp(91,[n,[new Float32Array(t)],a.slice()]),t.length=0,a.set([1/0,1/0,-1/0,-1/0],0));continue}case 42:i.addOp(n,[new Float32Array(t)]);continue;case 67:case 68:case 72:case 73:continue;case 70:if(!(t[0]instanceof ea)){v(`Expected name for beginMarkedContentProps arg0=${t[0]}`),i.addOp(70,["OC",null]);continue}if("OC"===t[0].name){M(h.parseMarkedContentProps(t[1],r).then(t=>{i.addOp(70,["OC",t])}).catch(t=>{if(!(t instanceof O)){if(!h.options.ignoreErrors)throw t;v(`getOperatorList - ignoring beginMarkedContentProps: "${t}".`),i.addOp(70,["OC",null])}}));return}t=[t[0].name,t[1]instanceof en?t[1].get("MCID"):null];break;default:if(null!==t){for(S=0,I=t.length;S<I&&!(t[S]instanceof en);S++);if(S<I){v("getOperatorList - ignoring operator: "+n);continue}}}i.addOp(n,t)}l?M(sh):(C(),n())}).catch(t=>{if(!(t instanceof O)){if(!this.options.ignoreErrors)throw t;v(`getOperatorList - ignoring errors during "${a.name}" task: "${t}".`),C()}})}getTextContent({stream:t,task:a,resources:r,stateManager:i=null,includeMarkedContent:n=!1,sink:s,seenStyles:o=new Set,viewBox:l,lang:c=null,markedContentData:h=null,disableNormalization:u=!1,keepWhiteSpace:d=!1,prevRefs:g=null,intersector:p=null}){let m;let b=t.dict?.objId,y=new eo(g);if(b){if(g?.has(b))throw Error(`getTextContent - ignoring circular reference: ${b}`);y.put(b)}r||=en.empty,i||=new sp(new sm),n&&(h||={level:0});let w={items:[],styles:Object.create(null),lang:c},x={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},k=[" "," "],A=0;function C(t){let a=(A+1)%2,r=" "!==k[A]&&" "===k[a];return k[A]=t,A=a,!d&&r}function S(){return!d&&" "!==k[A]&&" "===k[(A+1)%2]}function I(){k[0]=k[1]=" ",A=0}let T=this,B=this.xref,F=[],M=null,R=new nN,D=new nE,E=new sy(t,B,i);function P({width:t=0,height:a=0,transform:r=x.prevTransform,fontName:i=x.fontName}){p?.addExtraChar(" "),w.items.push({str:" ",dir:"ltr",width:t,height:a,transform:r,fontName:i,hasEOL:!1})}function _(){let t=m.font,a=[m.fontSize*m.textHScale,0,0,m.fontSize,0,m.textRise];if(t.isType3Font&&(m.fontSize<=1||t.isCharBBox)&&!G(m.fontMatrix,f)){let r=t.bbox[3]-t.bbox[1];r>0&&(a[3]*=r*m.fontMatrix[3])}return j.transform(m.ctm,j.transform(m.textMatrix,a))}async function L(t,i){let n=await T.loadFont(t,i,r,a);m.loadedName=n.loadedName,m.font=n.font,m.fontMatrix=n.font.fontMatrix||f}function U(t,a,r){let i=Math.hypot(r[0],r[1]);return[(r[0]*t+r[1]*a)/i,(r[2]*t+r[3]*a)/i]}function q(t){let a=_(),r=a[4],i=a[5];if(m.font?.vertical){if(r<l[0]||r>l[2]||i+t<l[1]||i>l[3])return!1}else if(r+t<l[0]||r>l[2]||i<l[1]||i>l[3])return!1;if(!m.font||!x.prevTransform)return!0;let n=x.prevTransform[4],s=x.prevTransform[5];if(n===r&&s===i)return!0;let o=-1;switch(a[0]&&0===a[1]&&0===a[2]?o=a[0]>0?0:180:a[1]&&0===a[0]&&0===a[3]&&(o=a[1]>0?90:270),o){case 0:break;case 90:[r,i]=[i,r],[n,s]=[s,n];break;case 180:[r,i,n,s]=[-r,-i,-n,-s];break;case 270:[r,i]=[-i,-r],[n,s]=[-s,-n];break;default:[r,i]=U(r,i,a),[n,s]=U(n,s,x.prevTransform)}if(m.font.vertical){let t=(s-i)/x.textAdvanceScale,a=r-n,o=Math.sign(x.height);return t<o*x.negativeSpaceMax?Math.abs(a)>.5*x.width?$():(I(),W()):Math.abs(a)>x.width?$():(t<=o*x.notASpace&&I(),t<=o*x.trackingSpaceMin?S()?(I(),W(),P({height:Math.abs(t)})):x.height+=t:z(t,x.prevTransform,o)||(0===x.str.length?(I(),P({height:Math.abs(t)})):x.height+=t),Math.abs(a)>.25*x.width&&W()),!0}let c=(r-n)/x.textAdvanceScale,h=i-s,u=Math.sign(x.width);return c<u*x.negativeSpaceMax?Math.abs(h)>.5*x.height?$():(I(),W()):Math.abs(h)>x.height?$():(c<=u*x.notASpace&&I(),c<=u*x.trackingSpaceMin?S()?(I(),W(),P({width:Math.abs(c)})):x.width+=c:z(c,x.prevTransform,u)||(0===x.str.length?(I(),P({width:Math.abs(c)})):x.width+=c),Math.abs(h)>.25*x.height&&W()),!0}function H({chars:t,extraSpacing:a}){let r=m.font;if(!t){let t=m.charSpacing+a;t&&(r.vertical?m.translateTextMatrix(0,-t):m.translateTextMatrix(t*m.textHScale,0)),d&&q(0);return}let i=r.charsToGlyphs(t),n=m.fontMatrix[0]*m.fontSize;for(let t=0,s=i.length;t<s;t++){let l=i[t],{category:c,originalCharCode:h}=l;if(c.isInvisibleFormatMark)continue;let u=m.charSpacing+(t+1===s?a:0),f=l.width;r.vertical&&(f=l.vmetric?l.vmetric[0]:-f);let g=f*n;if(32===h&&(u+=m.wordSpacing),!d&&c.isWhitespace){r.vertical?(u+=-g,m.translateTextMatrix(0,-u)):(u+=g,m.translateTextMatrix(u*m.textHScale,0)),C(" ");continue}if(!c.isZeroWidthDiacritic&&!q(g)){r.vertical?m.translateTextMatrix(0,g):m.translateTextMatrix(g*m.textHScale,0);continue}let b=function(){if(x.initialized)return x;let{font:t,loadedName:a}=m;if(!o.has(a)&&(o.add(a),w.styles[a]={fontFamily:t.fallbackName,ascent:t.ascent,descent:t.descent,vertical:t.vertical},T.options.fontExtraProperties&&t.systemFontInfo)){let r=w.styles[a];r.fontSubstitution=t.systemFontInfo.css,r.fontSubstitutionLoadedName=t.systemFontInfo.loadedName}x.fontName=a;let r=x.transform=_();t.vertical?(x.width=x.totalWidth=Math.hypot(r[0],r[1]),x.height=x.totalHeight=0,x.vertical=!0):(x.width=x.totalWidth=0,x.height=x.totalHeight=Math.hypot(r[2],r[3]),x.vertical=!1);let i=Math.hypot(m.textLineMatrix[0],m.textLineMatrix[1]),n=Math.hypot(m.ctm[0],m.ctm[1]);x.textAdvanceScale=n*i;let{fontSize:s}=m;return x.trackingSpaceMin=.102*s,x.notASpace=.03*s,x.negativeSpaceMax=-.2*s,x.spaceInFlowMin=.102*s,x.spaceInFlowMax=.6*s,x.hasEOL=!1,x.initialized=!0,x}();c.isZeroWidthDiacritic&&(g=0),r.vertical?(p?.addGlyph(_(),0,g,l.unicode),m.translateTextMatrix(0,g),g=Math.abs(g),b.height+=g):(g*=m.textHScale,p?.addGlyph(_(),g,0,l.unicode),m.translateTextMatrix(g,0),b.width+=g),g&&(b.prevTransform=_());let y=l.unicode;C(y)&&(b.str.push(" "),p?.addExtraChar(" ")),p||b.str.push(y),u&&(r.vertical?m.translateTextMatrix(0,-u):m.translateTextMatrix(u*m.textHScale,0))}}function $(){p?.addExtraChar("\n"),I(),x.initialized?(x.hasEOL=!0,W()):w.items.push({str:"",dir:"ltr",width:0,height:0,transform:_(),fontName:m.loadedName,hasEOL:!0})}function z(t,a,r){if(r*x.spaceInFlowMin<=t&&t<=r*x.spaceInFlowMax)return x.initialized&&(I(),x.str.push(" "),p?.addExtraChar(" ")),!1;let i=x.fontName,n=0;return x.vertical&&(n=t,t=0),W(),I(),P({width:Math.abs(t),height:Math.abs(n),transform:a||_(),fontName:i}),!0}function W(){x.initialized&&x.str&&(x.vertical?x.totalHeight+=x.height*x.textAdvanceScale:x.totalWidth+=x.width*x.textAdvanceScale,w.items.push(function(t){var a;let r=t.str.join("");u||(a=r,V||(V=/([\u00a0\u00b5\u037e\u0eb3\u2000-\u200a\u202f\u2126\ufb00-\ufb04\ufb06\ufb20-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufba1\ufba4-\ufba9\ufbae-\ufbb1\ufbd3-\ufbdc\ufbde-\ufbe7\ufbea-\ufbf8\ufbfc-\ufbfd\ufc00-\ufc5d\ufc64-\ufcf1\ufcf5-\ufd3d\ufd88\ufdf4\ufdfa-\ufdfb\ufe71\ufe77\ufe79\ufe7b\ufe7d]+)|(\ufb05+)/gu,X=new Map([["\ufb05","\u017ft"]])),r=a.replaceAll(V,(t,a,r)=>a?a.normalize("NFKC"):X.get(r)));let i=n7(r,-1,t.vertical);return{str:i.str,dir:i.dir,width:Math.abs(t.totalWidth),height:Math.abs(t.totalHeight),transform:t.transform,fontName:t.fontName,hasEOL:t.hasEOL}}(x)),x.initialized=!1,x.str.length=0)}function K(t=!1){let a=w.items.length;0===a||t&&a<10||(s?.enqueue(w,a),w.items=[],w.styles=Object.create(null))}let Y=new sf;return new Promise(function t(f,g){let p=function(a){K(!0),Promise.all([a,s?.ready]).then(function(){try{t(f,g)}catch(t){g(t)}},g)};a.ensureNotTerminated(),Y.reset();let b={},k,A,C,S=[];for(;!(k=Y.check())&&(S.length=0,b.args=S,E.read(b));){let t=m;m=i.state;let f=b.fn;switch(S=b.args,0|f){case 37:let g=S[0].name,I=S[1];if(m.font&&g===m.fontName&&I===m.fontSize)break;W(),m.fontName=g,m.fontSize=I,p(L(g,null));return;case 39:m.textRise=S[0];break;case 35:m.textHScale=S[0]/100;break;case 36:m.leading=S[0];break;case 40:m.translateTextLineMatrix(S[0],S[1]),m.textMatrix=m.textLineMatrix.slice();break;case 41:m.leading=-S[1],m.translateTextLineMatrix(S[0],S[1]),m.textMatrix=m.textLineMatrix.slice();break;case 43:m.carriageReturn();break;case 42:m.setTextMatrix(S[0],S[1],S[2],S[3],S[4],S[5]),m.setTextLineMatrix(S[0],S[1],S[2],S[3],S[4],S[5]),function(){if(!x.initialized)return;let t=Math.hypot(m.textLineMatrix[0],m.textLineMatrix[1]),a=Math.hypot(m.ctm[0],m.ctm[1])*t;a!==x.textAdvanceScale&&(x.vertical?(x.totalHeight+=x.height*x.textAdvanceScale,x.height=0):(x.totalWidth+=x.width*x.textAdvanceScale,x.width=0),x.textAdvanceScale=a)}();break;case 33:m.charSpacing=S[0];break;case 34:m.wordSpacing=S[0];break;case 31:m.textMatrix=em.slice(),m.textLineMatrix=em.slice();break;case 45:if(!i.state.font){T.ensureStateFont(i.state);continue}let E=(m.font.vertical?1:-1)*m.fontSize/1e3,P=S[0];for(let t=0,a=P.length;t<a;t++){let a=P[t];if("string"==typeof a)F.push(a);else if("number"==typeof a&&0!==a){let t=F.join("");F.length=0,H({chars:t,extraSpacing:a*E})}}if(F.length>0){let t=F.join("");F.length=0,H({chars:t,extraSpacing:0})}break;case 44:if(!i.state.font){T.ensureStateFont(i.state);continue}H({chars:S[0],extraSpacing:0});break;case 46:if(!i.state.font){T.ensureStateFont(i.state);continue}m.carriageReturn(),H({chars:S[0],extraSpacing:0});break;case 47:if(!i.state.font){T.ensureStateFont(i.state);continue}m.wordSpacing=S[0],m.charSpacing=S[1],m.carriageReturn(),H({chars:S[2],extraSpacing:0});break;case 66:if(W(),M??=r.get("XObject")||en.empty,C=S[0]instanceof ea,A=S[0].name,C&&R.getByName(A))break;p(new Promise(function(t,f){if(!C)throw new N("XObject must be referred to by name.");let g=M.getRaw(A);if(g instanceof es){if(R.getByRef(g)||T.globalImageCache.getData(g,T.pageIndex)){t();return}g=B.fetch(g)}if(!(g instanceof ed))throw new N("XObject should be a stream");let{dict:p}=g,m=p.get("Subtype");if(!(m instanceof ea))throw new N("XObject should have a Name subtype");if("Form"!==m.name){R.set(A,p.objId,!0),t();return}let b=i.state.clone(),w=new sp(b),x=eE(p.getArray("Matrix"),null);x&&w.transform(x);let k=p.get("Resources");K();let v={enqueueInvoked:!1,enqueue(t,a){this.enqueueInvoked=!0,s.enqueue(t,a)},get desiredSize(){return s.desiredSize??0},get ready(){return s.ready}};T.getTextContent({stream:g,task:a,resources:k instanceof en?k:r,stateManager:w,includeMarkedContent:n,sink:s&&v,seenStyles:o,viewBox:l,lang:c,markedContentData:h,disableNormalization:u,keepWhiteSpace:d,prevRefs:y}).then(function(){v.enqueueInvoked||R.set(A,p.objId,!0),t()},f)}).catch(function(t){if(!(t instanceof O)){if(!T.options.ignoreErrors)throw t;v(`getTextContent - ignoring XObject: "${t}".`)}}));return;case 9:if(C=S[0]instanceof ea,A=S[0].name,C&&D.getByName(A))break;p(new Promise(function(t,a){if(!C)throw new N("GState must be referred to by name.");let i=r.get("ExtGState");if(!(i instanceof en))throw new N("ExtGState should be a dictionary.");let n=i.get(A);if(!(n instanceof en))throw new N("GState should be a dictionary.");let s=n.get("Font");s?(W(),m.fontName=null,m.fontSize=s[1],L(null,s[0]).then(t,a)):(D.set(A,n.objId,!0),t())}).catch(function(t){if(!(t instanceof O)){if(!T.options.ignoreErrors)throw t;v(`getTextContent - ignoring ExtGState: "${t}".`)}}));return;case 69:W(),n&&(h.level++,w.items.push({type:"beginMarkedContent",tag:S[0]instanceof ea?S[0].name:null}));break;case 70:if(W(),n){h.level++;let t=null;S[1]instanceof en&&(t=S[1].get("MCID")),w.items.push({type:"beginMarkedContentProps",id:Number.isInteger(t)?`${T.idFactory.getPageObjId()}_mc${t}`:null,tag:S[0]instanceof ea?S[0].name:null})}break;case 71:if(W(),n){if(0===h.level)break;h.level--,w.items.push({type:"endMarkedContent"})}break;case 11:t&&(t.font!==m.font||t.fontSize!==m.fontSize||t.fontName!==m.fontName)&&W()}if(w.items.length>=(s?.desiredSize??1)){k=!0;break}}k?p(sh):(W(),K(),f())}).catch(t=>{if(!(t instanceof O)){if(!this.options.ignoreErrors)throw t;v(`getTextContent - ignoring errors during "${a.name}" task: "${t}".`),W(),K()}})}async extractDataStructures(t,a){let r;let i=this.xref,n=this.readToUnicode(a.toUnicode);if(a.composite){let i=t.get("CIDSystemInfo");i instanceof en&&(a.cidSystemInfo={registry:H(i.get("Registry")),ordering:H(i.get("Ordering")),supplement:i.get("Supplement")});try{let a=t.get("CIDToGIDMap");a instanceof ed&&(r=a.getBytes())}catch(t){if(!this.options.ignoreErrors)throw t;v(`extractDataStructures - ignoring CIDToGIDMap data: "${t}".`)}}let s=[],o,l=null;if(t.has("Encoding")){if((o=t.get("Encoding"))instanceof en){if(l=(l=o.get("BaseEncoding"))instanceof ea?l.name:null,o.has("Differences")){let t=o.get("Differences"),a=0;for(let r of t){let t=i.fetchIfRef(r);if("number"==typeof t)a=t;else{if(!(t instanceof ea))throw new N(`Invalid entry in 'Differences' array: ${t}`);s[a++]=t.name}}}}else if(o instanceof ea)l=o.name;else{let t="Encoding is not a Name nor a Dict";if(!this.options.ignoreErrors)throw new N(t);v(t)}"MacRomanEncoding"!==l&&"MacExpertEncoding"!==l&&"WinAnsiEncoding"!==l&&(l=null)}let c=!a.file||a.isInternalFont,h=rF()[a.name];if(l&&c&&h&&(l=null),l)a.defaultEncoding=a1(l);else{let t=!!(4&a.flags),r=!!(32&a.flags);"TrueType"===a.type&&t&&r&&0!==s.length&&(a.flags&=-5,t=!1),o=aY,"TrueType"!==a.type||r||(o=aJ),(t||h)&&(o=aK,c&&(/Symbol/i.test(a.name)?o=aZ:/Dingbats/i.test(a.name)?o=aQ:/Wingdings/i.test(a.name)&&(o=aJ))),a.defaultEncoding=o}a.differences=s,a.baseEncodingName=l,a.hasEncoding=!!l||s.length>0,a.dict=t,a.toUnicode=await n;let u=await this.buildToUnicode(a);return a.toUnicode=u,r&&(a.cidToGidMap=this.readCidToGidMap(r,u)),a}_simpleFontToUnicode(t,a=!1){C(!t.composite,"Must be a simple font.");let r=[],i=t.defaultEncoding.slice(),n=t.baseEncodingName,s=t.differences;for(let t in s){let a=s[t];".notdef"!==a&&(i[t]=a)}let o=a0();for(let s in i){let l=i[s];if(""===l)continue;let c=o[l];if(void 0!==c){r[s]=String.fromCharCode(c);continue}let h=0;switch(l[0]){case"G":3===l.length&&(h=parseInt(l.substring(1),16));break;case"g":5===l.length&&(h=parseInt(l.substring(1),16));break;case"C":case"c":if(l.length>=3&&l.length<=4){let r=l.substring(1);if(a){h=parseInt(r,16);break}if(Number.isNaN(h=+r)&&Number.isInteger(parseInt(r,16)))return this._simpleFontToUnicode(t,!0)}break;case"u":-1!==(c=a5(l,o))&&(h=c);break;default:switch(l){case"f_h":case"f_t":case"T_h":r[s]=l.replaceAll("_","");continue}}if(h>0&&h<=1114111&&Number.isInteger(h)){if(n&&h===+s){let t=a1(n);if(t&&(l=t[s])){r[s]=String.fromCharCode(o[l]);continue}}r[s]=String.fromCodePoint(h)}}return r}async buildToUnicode(t){if(t.hasIncludedToUnicodeMap=t.toUnicode?.length>0,t.hasIncludedToUnicodeMap)return!t.composite&&t.hasEncoding&&(t.fallbackToUnicode=this._simpleFontToUnicode(t)),t.toUnicode;if(!t.composite)return new rE(this._simpleFontToUnicode(t));if(t.composite&&(t.cMap.builtInCMap&&!(t.cMap instanceof aU)||"Adobe"===t.cidSystemInfo?.registry&&("GB1"===t.cidSystemInfo.ordering||"CNS1"===t.cidSystemInfo.ordering||"Japan1"===t.cidSystemInfo.ordering||"Korea1"===t.cidSystemInfo.ordering))){let{registry:a,ordering:r}=t.cidSystemInfo,i=ea.get(`${a}-${r}-UCS2`),n=await aW.create({encoding:i,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null}),s=[],o=[];return t.cMap.forEach(function(t,a){if(a>65535)throw new N("Max size of CID is 65,535");let r=n.lookup(a);if(r){o.length=0;for(let t=0,a=r.length;t<a;t+=2)o.push((r.charCodeAt(t)<<8)+r.charCodeAt(t+1));s[t]=String.fromCharCode(...o)}}),new rE(s)}return new rP(t.firstChar,t.lastChar)}async readToUnicode(t){if(!t)return null;if(t instanceof ea){let a=await aW.create({encoding:t,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null});return a instanceof aU?new rP(0,65535):new rE(a.getMap())}if(t instanceof ed)try{let a=await aW.create({encoding:t,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null});if(a instanceof aU)return new rP(0,65535);let r=Array(a.length);return a.forEach(function(t,a){if("number"==typeof a){r[t]=String.fromCodePoint(a);return}a.length%2!=0&&(a="\x00"+a);let i=[];for(let t=0;t<a.length;t+=2){let r=a.charCodeAt(t)<<8|a.charCodeAt(t+1);if(55296!=(63488&r)){i.push(r);continue}t+=2;let n=a.charCodeAt(t)<<8|a.charCodeAt(t+1);i.push(((1023&r)<<10)+(1023&n)+65536)}r[t]=String.fromCodePoint(...i)}),new rE(r)}catch(t){if(t instanceof O)return null;if(this.options.ignoreErrors)return v(`readToUnicode - ignoring ToUnicode data: "${t}".`),null;throw t}return null}readCidToGidMap(t,a){let r=[];for(let i=0,n=t.length;i<n;i++){let n=t[i++]<<8|t[i],s=i>>1;(0!==n||a.has(s))&&(r[s]=n)}return r}extractWidths(t,a,r){let i;let n=this.xref,s=[],o=0,l=[];if(r.composite){let a=t.get("DW");o="number"==typeof a?Math.ceil(a):1e3;let c=t.get("W");if(Array.isArray(c))for(let t=0,a=c.length;t<a;t++){let a=n.fetchIfRef(c[t++]);if(!Number.isInteger(a))break;let r=n.fetchIfRef(c[t]);if(Array.isArray(r))for(let t of r){let r=n.fetchIfRef(t);"number"==typeof r&&(s[a]=r),a++}else{if(!Number.isInteger(r))break;{let i=n.fetchIfRef(c[++t]);if("number"!=typeof i)continue;for(let t=a;t<=r;t++)s[t]=i}}}if(r.vertical){let a=t.getArray("DW2"),r=eD(a,2)?a:[880,-1e3];if(i=[r[1],.5*o,r[0]],Array.isArray(r=t.get("W2")))for(let t=0,a=r.length;t<a;t++){let a=n.fetchIfRef(r[t++]);if(!Number.isInteger(a))break;let i=n.fetchIfRef(r[t]);if(Array.isArray(i))for(let t=0,r=i.length;t<r;t++){let r=[n.fetchIfRef(i[t++]),n.fetchIfRef(i[t++]),n.fetchIfRef(i[t])];eD(r,null)&&(l[a]=r),a++}else{if(!Number.isInteger(i))break;{let s=[n.fetchIfRef(r[++t]),n.fetchIfRef(r[++t]),n.fetchIfRef(r[++t])];if(!eD(s,null))continue;for(let t=a;t<=i;t++)l[t]=s}}}}}else{let i=t.get("Widths");if(Array.isArray(i)){let t=r.firstChar;for(let a of i){let r=n.fetchIfRef(a);"number"==typeof r&&(s[t]=r),t++}let l=a.get("MissingWidth");o="number"==typeof l?l:0}else{let a=t.get("BaseFont");if(a instanceof ea){let t=this.getBaseFontMetrics(a.name);s=this.buildCharCodeToWidth(t.widths,r),o=t.defaultWidth}}}let c=!0,h=o;for(let t in s){let a=s[t];if(a){if(h){if(h!==a){c=!1;break}}else h=a}}c?r.flags|=1:r.flags&=-2,r.defaultWidth=o,r.widths=s,r.defaultVMetrics=i,r.vmetrics=l}isSerifFont(t){let a=t.split("-",1)[0];return a in rB()||/serif/gi.test(a)}getBaseFontMetrics(t){let a=0,r=Object.create(null),i=!1,n=rS()[t]||t,s=rW();n in s||(n=this.isSerifFont(t)?"Times-Roman":"Helvetica");let o=s[n];return"number"==typeof o?(a=o,i=!0):r=o(),{defaultWidth:a,monospace:i,widths:r}}buildCharCodeToWidth(t,a){let r=Object.create(null),i=a.differences,n=a.defaultEncoding;for(let a=0;a<256;a++)a in i&&t[i[a]]?r[a]=t[i[a]]:a in n&&t[n[a]]&&(r[a]=t[n[a]]);return r}preEvaluateFont(t){let a=t,r=t.get("Subtype");if(!(r instanceof ea))throw new N("invalid font Subtype");let i,n=!1;if("Type0"===r.name){let a=t.get("DescendantFonts");if(!a)throw new N("Descendant fonts are not specified");if(!((t=Array.isArray(a)?this.xref.fetchIfRef(a[0]):a)instanceof en))throw new N("Descendant font is not a dictionary.");if(!((r=t.get("Subtype"))instanceof ea))throw new N("invalid font Subtype");n=!0}let s=t.get("FirstChar");Number.isInteger(s)||(s=0);let o=t.get("LastChar");Number.isInteger(o)||(o=n?65535:255);let l=t.get("FontDescriptor"),c=t.get("ToUnicode")||a.get("ToUnicode");if(l){i=new ss;let r=a.getRaw("Encoding");if(r instanceof ea)i.update(r.name);else if(r instanceof es)i.update(r.toString());else if(r instanceof en){for(let t of r.getRawValues())if(t instanceof ea)i.update(t.name);else if(t instanceof es)i.update(t.toString());else if(Array.isArray(t)){let a=t.length,r=Array(a);for(let i=0;i<a;i++){let a=t[i];a instanceof ea?r[i]=a.name:("number"==typeof a||a instanceof es)&&(r[i]=a.toString())}i.update(r.join())}}if(i.update(`${s}-${o}`),c instanceof ed){let t=c.stream||c,a=t.buffer?new Uint8Array(t.buffer.buffer,0,t.bufferLength):new Uint8Array(t.bytes.buffer,t.start,t.end-t.start);i.update(a)}else c instanceof ea&&i.update(c.name);let l=t.get("Widths")||a.get("Widths");if(Array.isArray(l)){let t=[];for(let a of l)("number"==typeof a||a instanceof es)&&t.push(a.toString());i.update(t.join())}if(n){i.update("compositeFont");let r=t.get("W")||a.get("W");if(Array.isArray(r)){let t=[];for(let a of r)if("number"==typeof a||a instanceof es)t.push(a.toString());else if(Array.isArray(a)){let r=[];for(let t of a)("number"==typeof t||t instanceof es)&&r.push(t.toString());t.push(`[${r.join()}]`)}i.update(t.join())}let n=t.getRaw("CIDToGIDMap")||a.getRaw("CIDToGIDMap");n instanceof ea?i.update(n.name):n instanceof es?i.update(n.toString()):n instanceof ed&&i.update(n.peekBytes())}}return{descriptor:l,dict:t,baseDict:a,composite:n,type:r.name,firstChar:s,lastChar:o,toUnicode:c,hash:i?i.hexdigest():""}}async translateFont({descriptor:t,dict:a,baseDict:r,composite:i,type:n,firstChar:s,lastChar:o,toUnicode:l,cssFontInfo:c}){let h,u,d,g,p;let m="Type3"===n;if(!t){if(!m){let t=a.get("BaseFont");if(!(t instanceof ea))throw new N("Base font is not specified");t=t.name.replaceAll(/[,_]/g,"-");let i=this.getBaseFontMetrics(t),c=t.split("-",1)[0],h=(this.isSerifFont(c)?2:0)|(i.monospace?1:0)|(rF()[c]?4:32),u={type:n,name:t,loadedName:r.loadedName,systemFontInfo:null,widths:i.widths,defaultWidth:i.defaultWidth,isSimulatedFlags:!0,flags:h,firstChar:s,lastChar:o,toUnicode:l,xHeight:0,capHeight:0,italicAngle:0,isType3Font:m},f=a.get("Widths"),d=rO(t),g=null;d&&(g=await this.fetchStandardFontData(d),u.isInternalFont=!!g),!u.isInternalFont&&this.options.useSystemFonts&&(u.systemFontInfo=sn(this.systemFontCache,this.idFactory,this.options.standardFontDataUrl,t,d,n));let p=await this.extractDataStructures(a,u);if(Array.isArray(f)){let t=[],a=s;for(let r of f){let i=this.xref.fetchIfRef(r);"number"==typeof i&&(t[a]=i),a++}p.widths=t}else p.widths=this.buildCharCodeToWidth(i.widths,p);return new iO(t,g,p,this.options)}t=en.empty}let b=t.get("FontName"),y=a.get("BaseFont");"string"==typeof b&&(b=ea.get(b)),"string"==typeof y&&(y=ea.get(y));let w=b?.name,x=y?.name;if(m?w||(b=ea.get(n)):w!==x&&(k(`The FontDescriptor's FontName is "${w}" but should be the same as the Font's BaseFont "${x}".`),w&&x&&(x.startsWith(w)||!rD(w)&&rD(x))&&(b=null),b||=y),!(b instanceof ea))throw new N("invalid font name");try{if(h=t.get("FontFile","FontFile2","FontFile3")){if(!(h instanceof ed))throw new N("FontFile should be a stream");if(h.isEmpty)throw new N("FontFile is empty")}}catch(t){if(!this.options.ignoreErrors)throw t;v(`translateFont - fetching "${b.name}" font file: "${t}".`),h=null}let A=!1,C=null,S=null;if(h){if(h.dict){let t=h.dict.get("Subtype");t instanceof ea&&(u=t.name),d=h.dict.get("Length1"),g=h.dict.get("Length2"),p=h.dict.get("Length3")}}else if(c){let t=nS(b.name);t&&(c.fontFamily=`${c.fontFamily}-PdfJS-XFA`,c.metrics=t.metrics||null,C=t.factors||null,A=!!(h=await this.fetchStandardFontData(t.name)),r=a=nI(b.name),i=!0)}else if(!m){let t=rO(b.name);t&&(A=!!(h=await this.fetchStandardFontData(t))),!A&&this.options.useSystemFonts&&(S=sn(this.systemFontCache,this.idFactory,this.options.standardFontDataUrl,b.name,t,n))}let I=eE(a.getArray("FontMatrix"),f),T=e_(t.getArray("FontBBox")||a.getArray("FontBBox"),m?[0,0,0,0]:void 0),B=t.get("Ascent");"number"!=typeof B&&(B=void 0);let F=t.get("Descent");"number"!=typeof F&&(F=void 0);let M=t.get("XHeight");"number"!=typeof M&&(M=0);let R=t.get("CapHeight");"number"!=typeof R&&(R=0);let O=t.get("Flags");Number.isInteger(O)||(O=0);let D=t.get("ItalicAngle");"number"!=typeof D&&(D=0);let E={type:n,name:b.name,subtype:u,file:h,length1:d,length2:g,length3:p,isInternalFont:A,loadedName:r.loadedName,composite:i,fixedPitch:!1,fontMatrix:I,firstChar:s,lastChar:o,toUnicode:l,bbox:T,ascent:B,descent:F,xHeight:M,capHeight:R,flags:O,italicAngle:D,isType3Font:m,cssFontInfo:c,scaleFactors:C,systemFontInfo:S};if(i){let t=r.get("Encoding");t instanceof ea&&(E.cidEncoding=t.name);let a=await aW.create({encoding:t,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null});E.cMap=a,E.vertical=E.cMap.vertical}let P=await this.extractDataStructures(a,E);return this.extractWidths(a,t,P),new iO(b.name,h,P,this.options)}static buildFontPaths(t,a,r,i){function n(a){let n=`${t.loadedName}_path_${a}`;try{if(t.renderer.hasBuiltPath(a))return;r.send("commonobj",[n,"FontPath",t.renderer.getPathJs(a)])}catch(t){if(i.ignoreErrors){v(`buildFontPaths - ignoring ${n} glyph: "${t}".`);return}throw t}}for(let t of a){n(t.fontChar);let a=t.accent;a?.fontChar&&n(a.fontChar)}}static get fallbackFontDict(){let t=new en;return t.set("BaseFont",ea.get("Helvetica")),t.set("Type",ea.get("FallbackType")),t.set("Subtype",ea.get("FallbackType")),t.set("Encoding",ea.get("WinAnsiEncoding")),I(this,"fallbackFontDict",t)}}class sg{#eu=!1;#ef=null;constructor({loadedName:t,font:a,dict:r}){this.loadedName=t,this.font=a,this.dict=r,this.type3Dependencies=a.isType3Font?new Set:null}send(t){if(this.#eu)return;this.#eu=!0;let a=this.font.exportData(),r=[];a.data&&(a.data.charProcOperatorList&&(a.charProcOperatorList=a.data.charProcOperatorList),a.data=i_.write(a.data),r.push(a.data)),t.send("commonobj",[this.loadedName,"Font",a],r)}fallback(t,a){this.font.data&&(this.font.disableFontFace=!0,sd.buildFontPaths(this.font,this.font.glyphCacheValues,t,a))}loadType3Data(t,a,r){if(this.#ef)return this.#ef;let{font:i,type3Dependencies:n}=this;C(i.isType3Font,"Must be a Type3 font.");let s=t.clone({ignoreErrors:!1}),o=new eo(t.type3FontRefs);this.dict.objId&&!o.has(this.dict.objId)&&o.put(this.dict.objId),s.type3FontRefs=o;let l=Promise.resolve(),c=this.dict.get("CharProcs"),h=this.dict.get("Resources")||a,u=Object.create(null),[f,d,g,p]=i.bbox,m=Math.hypot(g-f,p-d);for(let t of c.getKeys())l=l.then(()=>{let a=c.get(t),i=new tH;return s.getOperatorList({stream:a,task:r,resources:h,operatorList:i}).then(()=>{switch(i.fnArray[0]){case 49:this.#ed(i,m);break;case 48:m||this.#eg(i)}for(let a of(u[t]=i.getIR(),i.dependencies))n.add(a)}).catch(function(a){v(`Type3 font resource "${t}" is not available.`);let r=new tH;u[t]=r.getIR()})});return this.#ef=l.then(()=>{i.charProcOperatorList=u,this._bbox&&(i.isCharBBox=!0,i.bbox=this._bbox)}),this.#ef}#ed(t,a=NaN){let r=j.normalizeRect(t.argsArray[0].slice(2)),i=r[2]-r[0],n=r[3]-r[1],s=Math.hypot(i,n);0===i||0===n?(t.fnArray.splice(0,1),t.argsArray.splice(0,1)):(0===a||Math.round(s/a)>=10)&&(this._bbox??=[1/0,1/0,-1/0,-1/0],j.rectBoundingBox(...r,this._bbox));let o=0,l=t.length;for(;o<l;){switch(t.fnArray[o]){case 49:break;case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 58:case 59:case 60:case 61:case 62:case 7:t.fnArray.splice(o,1),t.argsArray.splice(o,1),l--;continue;case 9:let[a]=t.argsArray[o],r=0,i=a.length;for(;r<i;){let[t]=a[r];switch(t){case"TR":case"TR2":case"HT":case"BG":case"BG2":case"UCR":case"UCR2":a.splice(r,1),i--;continue}r++}}o++}}#eg(t){let a=1,r=t.length;for(;a<r;){if(91===t.fnArray[a]){let r=t.argsArray[a][2];this._bbox??=[1/0,1/0,-1/0,-1/0],j.rectBoundingBox(...r,this._bbox)}a++}}}class sp{constructor(t=new sb){this.state=t,this.stateStack=[]}save(){let t=this.state;this.stateStack.push(this.state),this.state=t.clone()}restore(){let t=this.stateStack.pop();t&&(this.state=t)}transform(t){this.state.ctm=j.transform(this.state.ctm,t)}}class sm{constructor(){this.ctm=new Float32Array(em),this.fontName=null,this.fontSize=0,this.loadedName=null,this.font=null,this.fontMatrix=f,this.textMatrix=em.slice(),this.textLineMatrix=em.slice(),this.charSpacing=0,this.wordSpacing=0,this.leading=0,this.textHScale=1,this.textRise=0}setTextMatrix(t,a,r,i,n,s){let o=this.textMatrix;o[0]=t,o[1]=a,o[2]=r,o[3]=i,o[4]=n,o[5]=s}setTextLineMatrix(t,a,r,i,n,s){let o=this.textLineMatrix;o[0]=t,o[1]=a,o[2]=r,o[3]=i,o[4]=n,o[5]=s}translateTextMatrix(t,a){let r=this.textMatrix;r[4]=r[0]*t+r[2]*a+r[4],r[5]=r[1]*t+r[3]*a+r[5]}translateTextLineMatrix(t,a){let r=this.textLineMatrix;r[4]=r[0]*t+r[2]*a+r[4],r[5]=r[1]*t+r[3]*a+r[5]}carriageReturn(){this.translateTextLineMatrix(0,-this.leading),this.textMatrix=this.textLineMatrix.slice()}clone(){let t=Object.create(this);return t.textMatrix=this.textMatrix.slice(),t.textLineMatrix=this.textLineMatrix.slice(),t.fontMatrix=this.fontMatrix.slice(),t}}class sb{constructor(){this.ctm=new Float32Array(em),this.font=null,this.textRenderingMode=0,this._fillColorSpace=this._strokeColorSpace=tS.gray,this.patternFillColorSpace=null,this.patternStrokeColorSpace=null,this.currentPointX=this.currentPointY=0,this.pathMinMax=new Float32Array([1/0,1/0,-1/0,-1/0]),this.pathBuffer=[]}get fillColorSpace(){return this._fillColorSpace}set fillColorSpace(t){this._fillColorSpace=this.patternFillColorSpace=t}get strokeColorSpace(){return this._strokeColorSpace}set strokeColorSpace(t){this._strokeColorSpace=this.patternStrokeColorSpace=t}clone({newPath:t=!1}={}){let a=Object.create(this);return t&&(a.pathBuffer=[],a.pathMinMax=new Float32Array([1/0,1/0,-1/0,-1/0])),a}}class sy{static get opMap(){return I(this,"opMap",Object.assign(Object.create(null),{w:{id:2,numArgs:1,variableArgs:!1},J:{id:3,numArgs:1,variableArgs:!1},j:{id:4,numArgs:1,variableArgs:!1},M:{id:5,numArgs:1,variableArgs:!1},d:{id:6,numArgs:2,variableArgs:!1},ri:{id:7,numArgs:1,variableArgs:!1},i:{id:8,numArgs:1,variableArgs:!1},gs:{id:9,numArgs:1,variableArgs:!1},q:{id:10,numArgs:0,variableArgs:!1},Q:{id:11,numArgs:0,variableArgs:!1},cm:{id:12,numArgs:6,variableArgs:!1},m:{id:13,numArgs:2,variableArgs:!1},l:{id:14,numArgs:2,variableArgs:!1},c:{id:15,numArgs:6,variableArgs:!1},v:{id:16,numArgs:4,variableArgs:!1},y:{id:17,numArgs:4,variableArgs:!1},h:{id:18,numArgs:0,variableArgs:!1},re:{id:19,numArgs:4,variableArgs:!1},S:{id:20,numArgs:0,variableArgs:!1},s:{id:21,numArgs:0,variableArgs:!1},f:{id:22,numArgs:0,variableArgs:!1},F:{id:22,numArgs:0,variableArgs:!1},"f*":{id:23,numArgs:0,variableArgs:!1},B:{id:24,numArgs:0,variableArgs:!1},"B*":{id:25,numArgs:0,variableArgs:!1},b:{id:26,numArgs:0,variableArgs:!1},"b*":{id:27,numArgs:0,variableArgs:!1},n:{id:28,numArgs:0,variableArgs:!1},W:{id:29,numArgs:0,variableArgs:!1},"W*":{id:30,numArgs:0,variableArgs:!1},BT:{id:31,numArgs:0,variableArgs:!1},ET:{id:32,numArgs:0,variableArgs:!1},Tc:{id:33,numArgs:1,variableArgs:!1},Tw:{id:34,numArgs:1,variableArgs:!1},Tz:{id:35,numArgs:1,variableArgs:!1},TL:{id:36,numArgs:1,variableArgs:!1},Tf:{id:37,numArgs:2,variableArgs:!1},Tr:{id:38,numArgs:1,variableArgs:!1},Ts:{id:39,numArgs:1,variableArgs:!1},Td:{id:40,numArgs:2,variableArgs:!1},TD:{id:41,numArgs:2,variableArgs:!1},Tm:{id:42,numArgs:6,variableArgs:!1},"T*":{id:43,numArgs:0,variableArgs:!1},Tj:{id:44,numArgs:1,variableArgs:!1},TJ:{id:45,numArgs:1,variableArgs:!1},"'":{id:46,numArgs:1,variableArgs:!1},'"':{id:47,numArgs:3,variableArgs:!1},d0:{id:48,numArgs:2,variableArgs:!1},d1:{id:49,numArgs:6,variableArgs:!1},CS:{id:50,numArgs:1,variableArgs:!1},cs:{id:51,numArgs:1,variableArgs:!1},SC:{id:52,numArgs:4,variableArgs:!0},SCN:{id:53,numArgs:33,variableArgs:!0},sc:{id:54,numArgs:4,variableArgs:!0},scn:{id:55,numArgs:33,variableArgs:!0},G:{id:56,numArgs:1,variableArgs:!1},g:{id:57,numArgs:1,variableArgs:!1},RG:{id:58,numArgs:3,variableArgs:!1},rg:{id:59,numArgs:3,variableArgs:!1},K:{id:60,numArgs:4,variableArgs:!1},k:{id:61,numArgs:4,variableArgs:!1},sh:{id:62,numArgs:1,variableArgs:!1},BI:{id:63,numArgs:0,variableArgs:!1},ID:{id:64,numArgs:0,variableArgs:!1},EI:{id:65,numArgs:1,variableArgs:!1},Do:{id:66,numArgs:1,variableArgs:!1},MP:{id:67,numArgs:1,variableArgs:!1},DP:{id:68,numArgs:2,variableArgs:!1},BMC:{id:69,numArgs:1,variableArgs:!1},BDC:{id:70,numArgs:2,variableArgs:!1},EMC:{id:71,numArgs:0,variableArgs:!1},BX:{id:72,numArgs:0,variableArgs:!1},EX:{id:73,numArgs:0,variableArgs:!1},BM:null,BD:null,true:null,fa:null,fal:null,fals:null,false:null,nu:null,nul:null,null:null}))}static MAX_INVALID_PATH_OPS=10;constructor(t,a,r=new sp){this.parser=new aN({lexer:new aE(t,sy.opMap),xref:a}),this.stateManager=r,this.nonProcessedArgs=[],this._isPathOp=!1,this._numInvalidPathOPS=0}get savedStatesDepth(){return this.stateManager.stateStack.length}read(t){let a=t.args;for(;;){let r=this.parser.getObj();if(r instanceof er){let i=r.cmd,n=sy.opMap[i];if(!n){v(`Unknown command "${i}".`);continue}let s=n.id,o=n.numArgs,l=null!==a?a.length:0;if(this._isPathOp||(this._numInvalidPathOPS=0),this._isPathOp=s>=13&&s<=28,n.variableArgs)l>o&&k(`Command ${i}: expected [0, ${o}] args, but received ${l} args.`);else{if(l!==o){let t=this.nonProcessedArgs;for(;l>o;)t.push(a.shift()),l--;for(;l<o&&0!==t.length;)null===a&&(a=[]),a.unshift(t.pop()),l++}if(l<o){let t=`command ${i}: expected ${o} args, but received ${l} args.`;if(this._isPathOp&&++this._numInvalidPathOPS>sy.MAX_INVALID_PATH_OPS)throw new N(`Invalid ${t}`);v(`Skipping ${t}`),null!==a&&(a.length=0);continue}}return this.preprocessCommand(s,a),t.fn=s,t.args=a,!0}if(r===Z)return!1;if(null!==r&&(null===a&&(a=[]),a.push(r),a.length>33))throw new N("Too many arguments")}}preprocessCommand(t,a){switch(0|t){case 10:this.stateManager.save();break;case 11:this.stateManager.restore();break;case 12:this.stateManager.transform(a)}}}class sw extends sy{constructor(t){super(new tp(t))}parse(){let t={fn:0,args:[]},a={fontSize:0,fontName:"",fontColor:new Uint8ClampedArray(3)};try{for(;t.args.length=0,this.read(t);){if(0!==this.savedStatesDepth)continue;let{fn:r,args:i}=t;switch(0|r){case 37:let[n,s]=i;n instanceof ea&&(a.fontName=n.name),"number"==typeof s&&s>0&&(a.fontSize=s);break;case 59:tS.rgb.getRgbItem(i,0,a.fontColor,0);break;case 57:tS.gray.getRgbItem(i,0,a.fontColor,0);break;case 61:tS.cmyk.getRgbItem(i,0,a.fontColor,0)}}}catch(t){v(`parseDefaultAppearance - ignoring errors: "${t}".`)}return a}}function sx(t){return new sw(t).parse()}class sk extends sy{constructor(t,a,r,i){super(t),this.stream=t,this.evaluatorOptions=a,this.xref=r,this.globalColorSpaceCache=i,this.resources=t.dict?.get("Resources")}parse(){let t={fn:0,args:[]},a={scaleFactor:1,fontSize:0,fontName:"",fontColor:new Uint8ClampedArray(3),fillColorSpace:tS.gray},r=!1,i=[];try{for(;t.args.length=0,!r&&this.read(t);){let{fn:n,args:s}=t;switch(0|n){case 10:i.push({scaleFactor:a.scaleFactor,fontSize:a.fontSize,fontName:a.fontName,fontColor:a.fontColor.slice(),fillColorSpace:a.fillColorSpace});break;case 11:a=i.pop()||a;break;case 42:a.scaleFactor*=Math.hypot(s[0],s[1]);break;case 37:let[o,l]=s;o instanceof ea&&(a.fontName=o.name),"number"==typeof l&&l>0&&(a.fontSize=l*a.scaleFactor);break;case 51:a.fillColorSpace=tS.parse({cs:s[0],xref:this.xref,resources:this.resources,pdfFunctionFactory:this._pdfFunctionFactory,globalColorSpaceCache:this.globalColorSpaceCache,localColorSpaceCache:this._localColorSpaceCache});break;case 54:a.fillColorSpace.getRgbItem(s,0,a.fontColor,0);break;case 59:tS.rgb.getRgbItem(s,0,a.fontColor,0);break;case 57:tS.gray.getRgbItem(s,0,a.fontColor,0);break;case 61:tS.cmyk.getRgbItem(s,0,a.fontColor,0);break;case 44:case 45:case 46:case 47:r=!0}}}catch(t){v(`parseAppearanceStream - ignoring errors: "${t}".`)}return this.stream.reset(),delete a.scaleFactor,delete a.fillColorSpace,a}get _localColorSpaceCache(){return I(this,"_localColorSpaceCache",new nO)}get _pdfFunctionFactory(){return I(this,"_pdfFunctionFactory",new nj({xref:this.xref,isEvalSupported:this.evaluatorOptions.isEvalSupported}))}}function sv(t,a){return t[0]===t[1]&&t[1]===t[2]?`${eV(t[0]/255)} ${a?"g":"G"}`:Array.from(t,t=>eV(t/255)).join(" ")+" "+(a?"rg":"RG")}class sA{constructor(t,a){this.xref=t,this.widths=null,this.firstChar=1/0,this.lastChar=-1/0,this.fontFamily=a;let r=new OffscreenCanvas(1,1);this.ctxMeasure=r.getContext("2d",{willReadFrequently:!0}),sA._fontNameId||(sA._fontNameId=1),this.fontName=ea.get(`InvalidPDFjsFont_${a}_${sA._fontNameId++}`)}get fontDescriptorRef(){if(!sA._fontDescriptorRef){let t=new en(this.xref);t.setIfName("Type","FontDescriptor"),t.set("FontName",this.fontName),t.set("FontFamily","MyriadPro Regular"),t.set("FontBBox",[0,0,0,0]),t.setIfName("FontStretch","Normal"),t.set("FontWeight",400),t.set("ItalicAngle",0),sA._fontDescriptorRef=this.xref.getNewPersistentRef(t)}return sA._fontDescriptorRef}get descendantFontRef(){let t=new en(this.xref);t.set("BaseFont",this.fontName),t.setIfName("Type","Font"),t.setIfName("Subtype","CIDFontType0"),t.setIfName("CIDToGIDMap","Identity"),t.set("FirstChar",this.firstChar),t.set("LastChar",this.lastChar),t.set("FontDescriptor",this.fontDescriptorRef),t.set("DW",1e3);let a=[],r=[...this.widths.entries()].sort(),i=null,n=null;for(let[t,s]of r)i?t===i+n.length?n.push(s):(a.push(i,n),i=t,n=[s]):(i=t,n=[s]);i&&a.push(i,n),t.set("W",a);let s=new en(this.xref);return s.set("Ordering","Identity"),s.set("Registry","Adobe"),s.set("Supplement",0),t.set("CIDSystemInfo",s),this.xref.getNewPersistentRef(t)}get baseFontRef(){let t=new en(this.xref);return t.set("BaseFont",this.fontName),t.setIfName("Type","Font"),t.setIfName("Subtype","Type0"),t.setIfName("Encoding","Identity-H"),t.set("DescendantFonts",[this.descendantFontRef]),t.setIfName("ToUnicode","Identity-H"),this.xref.getNewPersistentRef(t)}get resources(){let t=new en(this.xref),a=new en(this.xref);return a.set(this.fontName.name,this.baseFontRef),t.set("Font",a),t}_createContext(){return this.widths=new Map,this.ctxMeasure.font=`1000px ${this.fontFamily}`,this.ctxMeasure}createFontResources(t){let a=this._createContext();for(let r of t.split(/\r\n?|\n/))for(let t of r.split("")){let r=t.charCodeAt(0);if(this.widths.has(r))continue;let i=a.measureText(t),n=Math.ceil(i.width);this.widths.set(r,n),this.firstChar=Math.min(r,this.firstChar),this.lastChar=Math.max(r,this.lastChar)}return this.resources}static getFirstPositionInfo(t,a,r){let[i,n,s,o]=t,l=s-i,c=o-n;a%180!=0&&([l,c]=[c,l]);let h=1.35*r;return{coords:[0,c+.35*r-h],bbox:[0,0,l,c],matrix:0!==a?eJ(a,c,h):void 0}}createAppearance(t,a,r,i,n,s){let o=this._createContext(),l=[],c=-1/0;for(let a of t.split(/\r\n?|\n/)){l.push(a);let t=o.measureText(a).width;for(let r of(c=Math.max(c,t),function*(t){for(let a=0,r=t.length;a<r;a++){let r=t.codePointAt(a);r>55295&&(r<57344||r>65533)&&a++,yield r}}(a))){let t=String.fromCodePoint(r),a=this.widths.get(r);if(void 0===a){let i=o.measureText(t);a=Math.ceil(i.width),this.widths.set(r,a),this.firstChar=Math.min(r,this.firstChar),this.lastChar=Math.max(r,this.lastChar)}}}c*=i/1e3;let[h,u,f,d]=a,g=f-h,p=d-u;r%180!=0&&([g,p]=[p,g]);let m=1;c>g&&(m=g/c);let b=1,y=1.35*i,w=y*l.length;w>p&&(b=p/w);let x=i*Math.min(m,b),k=["q",`0 0 ${eV(g)} ${eV(p)} re W n`,"BT",`1 0 0 1 0 ${eV(p+.35*i)} Tm 0 Tc ${sv(n,!0)}`,`/${this.fontName.name} ${eV(x)} Tf`],{resources:v}=this;if(1!==(s="number"==typeof s&&s>=0&&s<=1?s:1)){k.push("/R0 gs");let t=new en(this.xref),a=new en(this.xref);a.set("ca",s),a.set("CA",s),a.setIfName("Type","ExtGState"),t.set("R0",a),v.set("ExtGState",t)}let A=eV(y);for(let t of l)k.push(`0 -${A} Td <${function(t){let a=[];for(let r=0,i=t.length;r<i;r++){let i=t.charCodeAt(r);a.push(U[i>>8&255],U[255&i])}return a.join("")}(t)}> Tj`);k.push("ET","Q");let C=k.join("\n"),S=new en(this.xref);if(S.setIfName("Subtype","Form"),S.setIfName("Type","XObject"),S.set("BBox",[0,0,g,p]),S.set("Length",C.length),S.set("Resources",v),r){let t=eJ(r,g,p);S.set("Matrix",t)}let I=new tp(C);return I.dict=S,I}}let sC=["m/d","m/d/yy","mm/dd/yy","mm/yy","d-mmm","d-mmm-yy","dd-mmm-yy","yy-mm-dd","mmm-yy","mmmm-yy","mmm d, yyyy","mmmm d, yyyy","m/d/yy h:MM tt","m/d/yy HH:MM"],sS=["HH:MM","h:MM tt","HH:MM:ss","h:MM:ss tt"];class sI{constructor(t,a,r){this.root=t,this.xref=a,this._type=r}getAll(t=!1){let a=new Map;if(!this.root)return a;let r=this.xref,i=new eo;i.put(this.root);let n=[this.root];for(;n.length>0;){let s=r.fetchIfRef(n.shift());if(!(s instanceof en))continue;if(s.has("Kids")){let t=s.get("Kids");if(!Array.isArray(t))continue;for(let a of t){if(i.has(a))throw new N(`Duplicate entry in "${this._type}" tree.`);n.push(a),i.put(a)}continue}let o=s.get(this._type);if(Array.isArray(o))for(let i=0,n=o.length;i<n;i+=2)a.set(r.fetchIfRef(o[i]),t?o[i+1]:r.fetchIfRef(o[i+1]))}return a}getRaw(t){if(!this.root)return null;let a=this.xref,r=a.fetchIfRef(this.root),i=0;for(;r.has("Kids");){if(++i>10)return v(`Search depth limit reached for "${this._type}" tree.`),null;let n=r.get("Kids");if(!Array.isArray(n))return null;let s=0,o=n.length-1;for(;s<=o;){let i=s+o>>1,l=a.fetchIfRef(n[i]),c=l.get("Limits");if(t<a.fetchIfRef(c[0]))o=i-1;else{if(!(t>a.fetchIfRef(c[1]))){r=l;break}s=i+1}}if(s>o)return null}let n=r.get(this._type);if(Array.isArray(n)){let r=0,i=n.length-2;for(;r<=i;){let s=r+i>>1,o=s+(1&s),l=a.fetchIfRef(n[o]);if(t<l)i=o-2;else{if(!(t>l))return n[o+1];r=o+2}}}return null}get(t){return this.xref.fetchIfRef(this.getRaw(t))}}class sT extends sI{constructor(t,a){super(t,a,"Names")}}class sB extends sI{constructor(t,a){super(t,a,"Nums")}}function sF(){i$=Object.create(null),Q=Object.create(null),ee=Object.create(null),et=Object.create(null),a7.clear(),t_.cleanup()}function sM(t){return t instanceof en?t.has("UF")?t.get("UF"):t.has("F")?t.get("F"):t.has("Unix")?t.get("Unix"):t.has("Mac")?t.get("Mac"):t.has("DOS")?t.get("DOS"):null:null}class sR{#ep=!1;constructor(t,a,r=!1){t instanceof en&&(this.xref=a,this.root=t,t.has("FS")&&(this.fs=t.get("FS")),t.has("RF")&&v("Related file specifications are not supported"),r||(t.has("EF")?this.#ep=!0:v("Non-embedded file specifications are not supported")))}get filename(){let t="",a=sM(this.root);return a&&"string"==typeof a&&(t=H(a,!0).replaceAll("\\\\","\\").replaceAll("\\/","/").replaceAll("\\","/")),I(this,"filename",t||"unnamed")}get content(){if(!this.#ep)return null;this._contentRef||=sM(this.root?.get("EF"));let t=null;if(this._contentRef){let a=this.xref.fetchIfRef(this._contentRef);a instanceof ed?t=a.getBytes():v("Embedded file specification points to non-existing/invalid content")}else v("Embedded file specification does not have any content");return t}get description(){let t="",a=this.root?.get("Desc");return a&&"string"==typeof a&&(t=H(a)),I(this,"description",t)}get serializable(){var t;return{rawFilename:this.filename,filename:(t=this.filename).substring(t.lastIndexOf("/")+1),content:this.content,description:this.description}}}function sN(t,a){let r=t[a];return" "===r||"\n"===r||"\r"===r||"	"===r}class sO{_resolveEntities(t){return t.replaceAll(/&([^;]+);/g,(t,a)=>{if("#x"===a.substring(0,2))return String.fromCodePoint(parseInt(a.substring(2),16));if("#"===a.substring(0,1))return String.fromCodePoint(parseInt(a.substring(1),10));switch(a){case"lt":return"<";case"gt":return">";case"amp":return"&";case"quot":return'"';case"apos":return"'"}return this.onResolveEntity(a)})}_parseContent(t,a){let r=[],i=a;function n(){for(;i<t.length&&sN(t,i);)++i}for(;i<t.length&&!sN(t,i)&&">"!==t[i]&&"/"!==t[i];)++i;let s=t.substring(a,i);for(n();i<t.length&&">"!==t[i]&&"/"!==t[i]&&"?"!==t[i];){n();let a="",s="";for(;i<t.length&&!sN(t,i)&&"="!==t[i];)a+=t[i],++i;if(n(),"="!==t[i])return null;++i,n();let o=t[i];if('"'!==o&&"'"!==o)return null;let l=t.indexOf(o,++i);if(l<0)return null;s=t.substring(i,l),r.push({name:a,value:this._resolveEntities(s)}),i=l+1,n()}return{name:s,attributes:r,parsed:i-a}}_parseProcessingInstruction(t,a){let r=a;for(;r<t.length&&!sN(t,r)&&">"!==t[r]&&"?"!==t[r]&&"/"!==t[r];)++r;let i=t.substring(a,r);!function(){for(;r<t.length&&sN(t,r);)++r}();let n=r;for(;r<t.length&&("?"!==t[r]||">"!==t[r+1]);)++r;return{name:i,value:t.substring(n,r),parsed:r-a}}parseXml(t){let a=0;for(;a<t.length;){let r=a;if("<"===t[a]){let a;switch(t[++r]){case"/":if(++r,(a=t.indexOf(">",r))<0){this.onError(-9);return}this.onEndElement(t.substring(r,a)),r=a+1;break;case"?":++r;let i=this._parseProcessingInstruction(t,r);if("?>"!==t.substring(r+i.parsed,r+i.parsed+2)){this.onError(-3);return}this.onPi(i.name,i.value),r+=i.parsed+2;break;case"!":if("--"===t.substring(r+1,r+3)){if((a=t.indexOf("-->",r+3))<0){this.onError(-5);return}this.onComment(t.substring(r+3,a)),r=a+3}else if("[CDATA["===t.substring(r+1,r+8)){if((a=t.indexOf("]]>",r+8))<0){this.onError(-2);return}this.onCdata(t.substring(r+8,a)),r=a+3}else{if("DOCTYPE"!==t.substring(r+1,r+8)){this.onError(-6);return}{let i=t.indexOf("[",r+8),n=!1;if((a=t.indexOf(">",r+8))<0){this.onError(-4);return}if(i>0&&a>i){if((a=t.indexOf("]>",r+8))<0){this.onError(-4);return}n=!0}let s=t.substring(r+8,a+(n?1:0));this.onDoctype(s),r=a+(n?2:1)}}break;default:let n=this._parseContent(t,r);if(null===n){this.onError(-6);return}let s=!1;if("/>"===t.substring(r+n.parsed,r+n.parsed+2))s=!0;else if(">"!==t.substring(r+n.parsed,r+n.parsed+1)){this.onError(-9);return}this.onBeginElement(n.name,n.attributes,s),r+=n.parsed+(s?2:1)}}else{for(;r<t.length&&"<"!==t[r];)r++;let i=t.substring(a,r);this.onText(this._resolveEntities(i))}a=r}}onResolveEntity(t){return`&${t};`}onPi(t,a){}onComment(t){}onCdata(t){}onDoctype(t){}onText(t){}onBeginElement(t,a,r){}onEndElement(t){}onError(t){}}class sD{constructor(t,a){this.nodeName=t,this.nodeValue=a,Object.defineProperty(this,"parentNode",{value:null,writable:!0})}get firstChild(){return this.childNodes?.[0]}get nextSibling(){let t=this.parentNode.childNodes;if(!t)return;let a=t.indexOf(this);return -1!==a?t[a+1]:void 0}get textContent(){return this.childNodes?this.childNodes.map(t=>t.textContent).join(""):this.nodeValue||""}get children(){return this.childNodes||[]}hasChildNodes(){return this.childNodes?.length>0}searchNode(t,a){if(a>=t.length)return this;let r=t[a];if(r.name.startsWith("#")&&a<t.length-1)return this.searchNode(t,a+1);let i=[],n=this;for(;;){if(r.name===n.nodeName){if(0!==r.pos){if(0===i.length)return null;{let[s]=i.pop(),o=0;for(let i of s.childNodes)if(r.name===i.nodeName){if(o===r.pos)return i.searchNode(t,a+1);o++}return n.searchNode(t,a+1)}}{let r=n.searchNode(t,a+1);if(null!==r)return r}}if(n.childNodes?.length>0)i.push([n,0]),n=n.childNodes[0];else{if(0===i.length)return null;for(;0!==i.length;){let[t,a]=i.pop(),r=a+1;if(r<t.childNodes.length){i.push([t,r]),n=t.childNodes[r];break}}if(0===i.length)return null}}}dump(t){if("#text"!==this.nodeName){if(t.push(`<${this.nodeName}`),this.attributes)for(let a of this.attributes)t.push(` ${a.name}="${ez(a.value)}"`);if(this.hasChildNodes()){for(let a of(t.push(">"),this.childNodes))a.dump(t);t.push(`</${this.nodeName}>`)}else this.nodeValue?t.push(`>${ez(this.nodeValue)}</${this.nodeName}>`):t.push("/>")}else t.push(ez(this.nodeValue))}}class sE extends sO{constructor({hasAttributes:t=!1,lowerCaseName:a=!1}){super(),this._currentFragment=null,this._stack=null,this._errorCode=0,this._hasAttributes=t,this._lowerCaseName=a}parseFromString(t){if(this._currentFragment=[],this._stack=[],this._errorCode=0,this.parseXml(t),0!==this._errorCode)return;let[a]=this._currentFragment;return a?{documentElement:a}:void 0}onText(t){if(function(t){for(let a=0,r=t.length;a<r;a++)if(!sN(t,a))return!1;return!0}(t))return;let a=new sD("#text",t);this._currentFragment.push(a)}onCdata(t){let a=new sD("#text",t);this._currentFragment.push(a)}onBeginElement(t,a,r){this._lowerCaseName&&(t=t.toLowerCase());let i=new sD(t);i.childNodes=[],this._hasAttributes&&(i.attributes=a),this._currentFragment.push(i),r||(this._stack.push(this._currentFragment),this._currentFragment=i.childNodes)}onEndElement(t){this._currentFragment=this._stack.pop()||[];let a=this._currentFragment.at(-1);if(!a)return null;for(let t of a.childNodes)t.parentNode=a;return a}onError(t){this._errorCode=t}}class sP{constructor(t){t=this._repair(t);let a=new sE({lowerCaseName:!0}).parseFromString(t);this._metadataMap=new Map,this._data=t,a&&this._parse(a)}_repair(t){return t.replace(/^[^<]+/,"").replaceAll(/>\\376\\377([^<]+)/g,function(t,a){let r=a.replaceAll(/\\([0-3])([0-7])([0-7])/g,function(t,a,r,i){return String.fromCharCode(64*a+8*r+1*i)}).replaceAll(/&(amp|apos|gt|lt|quot);/g,function(t,a){switch(a){case"amp":return"&";case"apos":return"'";case"gt":return">";case"lt":return"<";case"quot":return'"'}throw Error(`_repair: ${a} isn't defined.`)}),i=[">"];for(let t=0,a=r.length;t<a;t+=2){let a=256*r.charCodeAt(t)+r.charCodeAt(t+1);a>=32&&a<127&&60!==a&&62!==a&&38!==a?i.push(String.fromCharCode(a)):i.push("&#x"+(65536+a).toString(16).substring(1)+";")}return i.join("")})}_getSequence(t){let a=t.nodeName;return"rdf:bag"!==a&&"rdf:seq"!==a&&"rdf:alt"!==a?null:t.childNodes.filter(t=>"rdf:li"===t.nodeName)}_parseArray(t){if(!t.hasChildNodes())return;let[a]=t.childNodes,r=this._getSequence(a)||[];this._metadataMap.set(t.nodeName,r.map(t=>t.textContent.trim()))}_parse(t){let a=t.documentElement;if("rdf:rdf"!==a.nodeName)for(a=a.firstChild;a&&"rdf:rdf"!==a.nodeName;)a=a.nextSibling;if(a&&"rdf:rdf"===a.nodeName&&a.hasChildNodes()){for(let t of a.childNodes)if("rdf:description"===t.nodeName)for(let a of t.childNodes){let t=a.nodeName;switch(t){case"#text":continue;case"dc:creator":case"dc:subject":this._parseArray(a);continue}this._metadataMap.set(t,a.textContent.trim())}}}get serializable(){return{parsedData:this._metadataMap,rawData:this._data}}}class s_{constructor(t,a,r){this.xref=t,this.dict=a,this.ref=r instanceof es?r:null,this.roleMap=new Map,this.structParentIds=null,this.kidRefToPosition=void 0,this.parentTree=null}getKidPosition(t){if(void 0===this.kidRefToPosition){let t=this.dict.get("K");if(Array.isArray(t)){let a=this.kidRefToPosition=new Map;for(let r=0,i=t.length;r<i;r++){let i=t[r];i&&a.set(i.toString(),r)}}else this.kidRefToPosition=t instanceof en?new Map([[t.objId,0]]):t?null:new Map}return this.kidRefToPosition?this.kidRefToPosition.get(t)??NaN:-1}init(){this.readRoleMap();let t=this.dict.get("ParentTree");t&&(this.parentTree=new sB(t,this.xref))}#em(t,a,r){if(!(t instanceof es)||a<0)return;this.structParentIds||=new el;let i=this.structParentIds.get(t);i||(i=[],this.structParentIds.put(t,i)),i.push([a,r])}addAnnotationIdToPage(t,a){this.#em(t,a,4)}readRoleMap(){let t=this.dict.get("RoleMap");if(t instanceof en)for(let[a,r]of t)r instanceof ea&&this.roleMap.set(a,r.name)}static async canCreateStructureTree({catalogRef:t,pdfManager:a,newAnnotationsByPage:r}){if(!(t instanceof es))return v("Cannot save the struct tree: no catalog reference."),!1;let i=0,n=!0;for(let[t,s]of r){let{ref:r}=await a.getPage(t);if(!(r instanceof es)){v(`Cannot save the struct tree: page ${t} has no ref.`),n=!0;break}for(let t of s)t.accessibilityData?.type&&(t.parentTreeId=i++,n=!1)}if(n){for(let t of r.values())for(let a of t)delete a.parentTreeId;return!1}return!0}static async createStructureTree({newAnnotationsByPage:t,xref:a,catalogRef:r,pdfManager:i,changes:n}){let s=await i.ensureCatalog("cloneDict"),o=new el;o.put(r,s);let l=a.getNewTemporaryRef();s.set("StructTreeRoot",l);let c=new en(a);c.set("Type",ea.get("StructTreeRoot"));let h=a.getNewTemporaryRef();c.set("ParentTree",h);let u=[];c.set("K",u),o.put(l,c);let f=new en(a),d=[];f.set("Nums",d);let g=await this.#eb({newAnnotationsByPage:t,structTreeRootRef:l,structTreeRoot:null,kids:u,nums:d,xref:a,pdfManager:i,changes:n,cache:o});for(let[t,a]of(c.set("ParentTreeNextKey",g),o.put(h,f),o.items()))n.put(t,{data:a})}async canUpdateStructTree({pdfManager:t,newAnnotationsByPage:a}){if(!this.ref)return v("Cannot update the struct tree: no root reference."),!1;let r=this.dict.get("ParentTreeNextKey");if(!Number.isInteger(r)||r<0)return v("Cannot update the struct tree: invalid next key."),!1;let i=this.dict.get("ParentTree");if(!(i instanceof en))return v("Cannot update the struct tree: ParentTree isn't a dict."),!1;let n=i.get("Nums");if(!Array.isArray(n))return v("Cannot update the struct tree: nums isn't an array."),!1;let s=new sB(i,this.xref);for(let r of a.keys()){let{pageDict:a}=await t.getPage(r);if(!a.has("StructParents"))continue;let i=a.get("StructParents");if(!Number.isInteger(i)||!Array.isArray(s.get(i)))return v(`Cannot save the struct tree: page ${r} has a wrong id.`),!1}let o=!0;for(let[i,n]of a){let{pageDict:a}=await t.getPage(i);for(let t of(s_.#ey({elements:n,xref:this.xref,pageDict:a,numberTree:s}),n))t.accessibilityData?.type&&(t.accessibilityData.structParent>=0||(t.parentTreeId=r++),o=!1)}if(o){for(let t of a.values())for(let a of t)delete a.parentTreeId,delete a.structTreeParent;return!1}return!0}async updateStructureTree({newAnnotationsByPage:t,pdfManager:a,changes:r}){let{ref:i,xref:n}=this,s=this.dict.clone(),o=new el;o.put(i,s);let l,c=s.getRaw("ParentTree");c instanceof es?l=n.fetch(c):(l=c,c=n.getNewTemporaryRef(),s.set("ParentTree",c)),l=l.clone(),o.put(c,l);let h=l.getRaw("Nums"),u=null;h instanceof es&&(u=h,h=n.fetch(u)),h=h.slice(),u||l.set("Nums",h);let f=await s_.#eb({newAnnotationsByPage:t,structTreeRootRef:i,structTreeRoot:this,kids:null,nums:h,xref:n,pdfManager:a,changes:r,cache:o});if(-1!==f)for(let[t,a]of(s.set("ParentTreeNextKey",f),u&&o.put(u,h),o.items()))r.put(t,{data:a})}static async #eb({newAnnotationsByPage:t,structTreeRootRef:a,structTreeRoot:r,kids:i,nums:n,xref:s,pdfManager:o,changes:l,cache:c}){let h=ea.get("OBJR"),u,f=-1;for(let[d,g]of t){let t=await o.getPage(d),{ref:p}=t,m=p instanceof es;for(let{accessibilityData:o,ref:b,parentTreeId:y,structTreeParent:w}of g){if(!o?.type)continue;let{structParent:g}=o;if(r&&Number.isInteger(g)&&g>=0){let a=(u||=new Map).get(d);void 0===a&&(a=new sj(r,t.pageDict).collectObjects(p),u.set(d,a));let i=a?.get(g);if(i){let t=s.fetch(i).clone();s_.#ew(t,o),l.put(i,{data:t});continue}}f=Math.max(f,y);let x=s.getNewTemporaryRef(),k=new en(s);s_.#ew(k,o),await this.#ex({structTreeParent:w,tagDict:k,newTagRef:x,structTreeRootRef:a,fallbackKids:i,xref:s,cache:c});let v=new en(s);k.set("K",v),v.set("Type",h),m&&v.set("Pg",p),v.set("Obj",b),c.put(x,k),n.push(y,x)}}return f+1}static #ew(t,{type:a,title:r,lang:i,alt:n,expanded:s,actualText:o}){t.set("S",ea.get(a)),r&&t.set("T",eK(r)),i&&t.set("Lang",eK(i)),n&&t.set("Alt",eK(n)),s&&t.set("E",eK(s)),o&&t.set("ActualText",eK(o))}static #ey({elements:t,xref:a,pageDict:r,numberTree:i}){let n=new Map;for(let a of t)if(a.structTreeParentId){let t=parseInt(a.structTreeParentId.split("_mc")[1],10),r=n.get(t);r||(r=[],n.set(t,r)),r.push(a)}let s=r.get("StructParents");if(!Number.isInteger(s))return;let o=i.get(s),l=(t,r,i)=>{let s=n.get(t);if(s){let t=r.getRaw("P"),n=a.fetchIfRef(t);if(t instanceof es&&n instanceof en){let t={ref:i,dict:r};for(let a of s)a.structTreeParent=t}return!0}return!1};for(let t of o){if(!(t instanceof es))continue;let r=a.fetch(t),i=r.get("K");if(Number.isInteger(i))l(i,r,t);else if(Array.isArray(i))for(let n of i){if(Number.isInteger(n=a.fetchIfRef(n))&&l(n,r,t))break;if(!(n instanceof en))continue;if(!ec(n.get("Type"),"MCR"))break;let i=n.get("MCID");if(Number.isInteger(i)&&l(i,r,t))break}}}static async #ex({structTreeParent:t,tagDict:a,newTagRef:r,structTreeRootRef:i,fallbackKids:n,xref:s,cache:o}){let l,c=null;t?({ref:c}=t,l=t.dict.getRaw("P")||i):l=i,a.set("P",l);let h=s.fetchIfRef(l);if(!h){n.push(r);return}let u=o.get(l);u||(u=h.clone(),o.put(l,u));let f=u.getRaw("K"),d=f instanceof es?o.get(f):null;if(!d){d=Array.isArray(d=s.fetchIfRef(f))?d.slice():[f];let t=s.getNewTemporaryRef();u.set("K",t),o.put(t,d)}let g=d.indexOf(c);d.splice(g>=0?g+1:d.length,0,r)}}class sL{constructor(t,a){this.tree=t,this.xref=t.xref,this.dict=a,this.kids=[],this.parseKids()}get role(){let t=this.dict.get("S"),a=t instanceof ea?t.name:"",{root:r}=this.tree;return r.roleMap.get(a)??a}get mathML(){let t=this.dict.get("AF")||[];for(let a of(Array.isArray(t)||(t=[t]),t)){if(!((a=this.xref.fetchIfRef(a))instanceof en)||!ec(a.get("Type"),"Filespec")||!ec(a.get("AFRelationship"),"Supplement"))continue;let t=a.get("EF");if(!(t instanceof en))continue;let r=t.get("UF")||t.get("F");if(r instanceof ed&&ec(r.dict.get("Type"),"EmbeddedFile")&&ec(r.dict.get("Subtype"),"application/mathml+xml"))return $(r.getString())}let a=this.dict.get("A");if(a instanceof en&&ec(a.get("O"),"MSFT_Office")){let t=a.get("MSFT_MathML");return t?H(t):null}return null}parseKids(){let t=null,a=this.dict.getRaw("Pg");a instanceof es&&(t=a.toString());let r=this.dict.get("K");if(Array.isArray(r))for(let a of r){let r=this.parseKid(t,this.xref.fetchIfRef(a));r&&this.kids.push(r)}else{let a=this.parseKid(t,r);a&&this.kids.push(a)}}parseKid(t,a){if(Number.isInteger(a))return this.tree.pageDict.objId!==t?null:new sU({type:1,mcid:a,pageObjId:t});if(!(a instanceof en))return null;let r=a.getRaw("Pg");r instanceof es&&(t=r.toString());let i=a.get("Type") instanceof ea?a.get("Type").name:null;if("MCR"===i){if(this.tree.pageDict.objId!==t)return null;let r=a.getRaw("Stm");return new sU({type:2,refObjId:r instanceof es?r.toString():null,pageObjId:t,mcid:a.get("MCID")})}if("OBJR"===i){if(this.tree.pageDict.objId!==t)return null;let r=a.getRaw("Obj");return new sU({type:3,refObjId:r instanceof es?r.toString():null,pageObjId:t})}return new sU({type:5,dict:a})}}class sU{constructor({type:t,dict:a=null,mcid:r=null,pageObjId:i=null,refObjId:n=null}){this.type=t,this.dict=a,this.mcid=r,this.pageObjId=i,this.refObjId=n,this.parentNode=null}}class sj{constructor(t,a){this.root=t,this.xref=t?.xref??null,this.rootDict=t?.dict??null,this.pageDict=a,this.nodes=[]}collectObjects(t){if(!(this.root&&this.rootDict&&t instanceof es))return null;let a=this.rootDict.get("ParentTree");if(!a)return null;let r=this.root.structParentIds?.get(t);if(!r)return null;let i=new Map,n=new sB(a,this.xref);for(let[t]of r){let a=n.getRaw(t);a instanceof es&&i.set(t,a)}return i}parse(t){if(!(this.root&&this.rootDict&&t instanceof es))return;let{parentTree:a}=this.root;if(!a)return;let r=this.pageDict.get("StructParents"),i=this.root.structParentIds?.get(t);if(!Number.isInteger(r)&&!i)return;let n=new Map;if(Number.isInteger(r)){let t=a.get(r);if(Array.isArray(t))for(let a of t)a instanceof es&&this.addNode(this.xref.fetch(a),n)}if(i)for(let[t,r]of i){let i=a.get(t);if(i){let t=this.addNode(this.xref.fetchIfRef(i),n);1===t?.kids?.length&&3===t.kids[0].type&&(t.kids[0].type=r)}}}addNode(t,a,r=0){if(r>40)return v("StructTree MAX_DEPTH reached."),null;if(!(t instanceof en))return null;if(a.has(t))return a.get(t);let i=new sL(this,t);switch(a.set(t,i),i.role){case"L":case"LBody":case"LI":case"Table":case"THead":case"TBody":case"TFoot":case"TR":for(let t of i.kids)5===t.type&&this.addNode(t.dict,a,r-1)}let n=t.get("P");if(!(n instanceof en)||ec(n.get("Type"),"StructTreeRoot"))return this.addTopLevelNode(t,i)||a.delete(t),i;let s=this.addNode(n,a,r+1);if(!s)return i;let o=!1;for(let a of s.kids)5===a.type&&a.dict===t&&(a.parentNode=i,o=!0);return o||a.delete(t),i}addTopLevelNode(t,a){let r=this.root.getKidPosition(t.objId);return!isNaN(r)&&(-1!==r&&(this.nodes[r]=a),!0)}get serializable(){let t=Object.create(null);for(let a of(t.children=[],t.role="Root",this.nodes))a&&function t(a,r,i=0){if(i>40){v("StructTree too deep to be fully serialized.");return}let n=Object.create(null);n.role=a.role,n.children=[],r.children.push(n);let s=a.dict.get("Alt");if("string"!=typeof s&&(s=a.dict.get("ActualText")),"string"==typeof s&&(n.alt=H(s)),"Formula"===n.role){let{mathML:t}=a;t&&(n.mathML=t)}let o=a.dict.get("A");if(o instanceof en){let t=e_(o.getArray("BBox"),null);if(t)n.bbox=t;else{let t=o.get("Width"),a=o.get("Height");"number"==typeof t&&t>0&&"number"==typeof a&&a>0&&(n.bbox=[0,0,t,a])}}let l=a.dict.get("Lang");for(let r of("string"==typeof l&&(n.lang=H(l)),a.kids)){let a=5===r.type?r.parentNode:null;a?t(a,n,i+1):1===r.type||2===r.type?n.children.push({type:"content",id:`p${r.pageObjId}_mc${r.mcid}`}):3===r.type?n.children.push({type:"object",id:r.refObjId}):4===r.type&&n.children.push({type:"annotation",id:`pdfjs_internal_id_${r.refObjId}`})}}(a,t);return t}}let sq=(function(t,a,r){if(!Array.isArray(r)||r.length<2)return!1;let[i,n,...s]=r;if(!t(i)&&!Number.isInteger(i)||!a(n))return!1;let o=s.length,l=!0;switch(n.name){case"XYZ":if(o<2||o>3)return!1;break;case"Fit":case"FitB":return 0===o;case"FitH":case"FitBH":case"FitV":case"FitBV":if(o>1)return!1;break;case"FitR":if(4!==o)return!1;l=!1;break;default:return!1}for(let t of s)if(!("number"==typeof t||l&&null===t))return!1;return!0}).bind(null,t=>t instanceof es,ec);function sH(t){return t instanceof en&&(t=t.get("D")),sq(t)?t:null}function s$(t){let a=t.get("D");if(a){if(a instanceof ea&&(a=a.name),"string"==typeof a)return H(a,!0);if(sq(a))return JSON.stringify(a)}return null}class sz{#ek=null;#ev=null;builtInCMapCache=new Map;fontCache=new el;globalColorSpaceCache=new nL;globalImageCache=new nU;nonBlendModesSet=new eo;pageDictCache=new el;pageIndexCache=new el;pageKidsCountCache=new el;standardFontDataCache=new Map;systemFontCache=new Map;constructor(t,a){if(this.pdfManager=t,this.xref=a,this.#ev=a.getCatalogObj(),!(this.#ev instanceof en))throw new N("Catalog object is not a dictionary.");this.toplevelPagesDict}cloneDict(){return this.#ev.clone()}get version(){let t=this.#ev.get("Version");if(t instanceof ea){if(eg.test(t.name))return I(this,"version",t.name);v(`Invalid PDF catalog version: ${t.name}`)}return I(this,"version",null)}get lang(){let t=this.#ev.get("Lang");return I(this,"lang",t&&"string"==typeof t?H(t):null)}get needsRendering(){let t=this.#ev.get("NeedsRendering");return I(this,"needsRendering","boolean"==typeof t&&t)}get collection(){let t=null;try{let a=this.#ev.get("Collection");a instanceof en&&a.size>0&&(t=a)}catch(t){if(t instanceof ex)throw t;k("Cannot fetch Collection entry; assuming no collection is present.")}return I(this,"collection",t)}get acroForm(){let t=null;try{let a=this.#ev.get("AcroForm");a instanceof en&&a.size>0&&(t=a)}catch(t){if(t instanceof ex)throw t;k("Cannot fetch AcroForm entry; assuming no forms are present.")}return I(this,"acroForm",t)}get acroFormRef(){let t=this.#ev.getRaw("AcroForm");return I(this,"acroFormRef",t instanceof es?t:null)}get metadata(){let t=this.#ev.getRaw("Metadata");if(!(t instanceof es))return I(this,"metadata",null);let a=null;try{let r=this.xref.fetch(t,!this.xref.encrypt?.encryptMetadata);if(r instanceof ed&&r.dict instanceof en){let t=r.dict.get("Type"),i=r.dict.get("Subtype");if(ec(t,"Metadata")&&ec(i,"XML")){let t=$(r.getString());t&&(a=new sP(t).serializable)}}}catch(t){if(t instanceof ex)throw t;k(`Skipping invalid Metadata: "${t}".`)}return I(this,"metadata",a)}get markInfo(){let t=null;try{t=this.#eA()}catch(t){if(t instanceof ex)throw t;v("Unable to read mark info.")}return I(this,"markInfo",t)}#eA(){let t=this.#ev.get("MarkInfo");if(!(t instanceof en))return null;let a={Marked:!1,UserProperties:!1,Suspects:!1};for(let r in a){let i=t.get(r);"boolean"==typeof i&&(a[r]=i)}return a}get hasStructTree(){return this.#ev.has("StructTreeRoot")}get structTreeRoot(){let t=null;try{t=this.#eC()}catch(t){if(t instanceof ex)throw t;v("Unable read to structTreeRoot info.")}return I(this,"structTreeRoot",t)}#eC(){let t=this.#ev.getRaw("StructTreeRoot"),a=this.xref.fetchIfRef(t);if(!(a instanceof en))return null;let r=new s_(this.xref,a,t);return r.init(),r}get toplevelPagesDict(){let t=this.#ev.get("Pages");if(!(t instanceof en))throw new N("Invalid top-level pages dictionary.");return I(this,"toplevelPagesDict",t)}get documentOutline(){let t=null;try{t=this.#eS()}catch(t){if(t instanceof ex)throw t;v("Unable to read document outline.")}return I(this,"documentOutline",t)}#eS(){let t=this.#ev.get("Outlines");if(!(t instanceof en)||!((t=t.getRaw("First"))instanceof es))return null;let a={items:[]},r=[{obj:t,parent:a}],i=new eo;i.put(t);let n=this.xref,s=new Uint8ClampedArray(3);for(;r.length>0;){let a=r.shift(),o=n.fetchIfRef(a.obj);if(null===o)continue;o.has("Title")||v("Invalid outline item encountered.");let l={url:null,dest:null,action:null};sz.parseDestDictionary({destDict:o,resultObj:l,docBaseUrl:this.baseUrl,docAttachments:this.attachments});let c=o.get("Title"),h=o.get("F")||0,u=o.getArray("C"),f=o.get("Count"),d=s;eD(u,3)&&(0!==u[0]||0!==u[1]||0!==u[2])&&(d=tS.rgb.getRgb(u,0));let g={action:l.action,attachment:l.attachment,dest:l.dest,url:l.url,unsafeUrl:l.unsafeUrl,newWindow:l.newWindow,setOCGState:l.setOCGState,title:"string"==typeof c?H(c):"",color:d,count:Number.isInteger(f)?f:void 0,bold:!!(2&h),italic:!!(1&h),items:[]};a.parent.items.push(g),(t=o.getRaw("First"))instanceof es&&!i.has(t)&&(r.push({obj:t,parent:g}),i.put(t)),(t=o.getRaw("Next"))instanceof es&&!i.has(t)&&(r.push({obj:t,parent:a.parent}),i.put(t))}return a.items.length>0?a.items:null}get permissions(){let t=null;try{t=this.#eI()}catch(t){if(t instanceof ex)throw t;v("Unable to read permissions.")}return I(this,"permissions",t)}#eI(){let t=this.xref.trailer.get("Encrypt");if(!(t instanceof en))return null;let a=t.get("P");if("number"!=typeof a)return null;a+=4294967296;let r=[];for(let t in g){let i=g[t];a&i&&r.push(i)}return r}get optionalContentConfig(){let t=null;try{let a=this.#ev.get("OCProperties");if(!a)return I(this,"optionalContentConfig",null);let r=a.get("D");if(!r)return I(this,"optionalContentConfig",null);let i=a.get("OCGs");if(!Array.isArray(i))return I(this,"optionalContentConfig",null);let n=new el;for(let t of i)t instanceof es&&!n.has(t)&&n.put(t,this.#eT(t));t=this.#eB(r,n)}catch(t){if(t instanceof ex)throw t;v(`Unable to read optional content config: ${t}`)}return I(this,"optionalContentConfig",t)}#eT(t){let a=this.xref.fetch(t),r={id:t.toString(),name:null,intent:null,usage:{print:null,view:null},rbGroups:[]},i=a.get("Name");"string"==typeof i&&(r.name=H(i));let n=a.getArray("Intent");Array.isArray(n)||(n=[n]),n.every(t=>t instanceof ea)&&(r.intent=n.map(t=>t.name));let s=a.get("Usage");if(!(s instanceof en))return r;let o=r.usage,l=s.get("Print");if(l instanceof en){let t=l.get("PrintState");if(t instanceof ea)switch(t.name){case"ON":case"OFF":o.print={printState:t.name}}}let c=s.get("View");if(c instanceof en){let t=c.get("ViewState");if(t instanceof ea)switch(t.name){case"ON":case"OFF":o.view={viewState:t.name}}}return r}#eB(t,a){function r(t){let r=[];if(Array.isArray(t))for(let i of t)i instanceof es&&a.has(i)&&r.push(i.toString());return r}let i=this.xref,n=new eo;return function(t){if(Array.isArray(t))for(let r of t){let t=i.fetchIfRef(r);if(!Array.isArray(t)||!t.length)continue;let n=new Set;for(let r of t)r instanceof es&&a.has(r)&&!n.has(r.toString())&&(n.add(r.toString()),a.get(r).rbGroups.push(n))}}(t.get("RBGroups")),{name:"string"==typeof t.get("Name")?H(t.get("Name")):null,creator:"string"==typeof t.get("Creator")?H(t.get("Creator")):null,baseState:t.get("BaseState") instanceof ea?t.get("BaseState").name:null,on:r(t.get("ON")),off:r(t.get("OFF")),order:function t(r,s=0){if(!Array.isArray(r))return null;let o=[];for(let l of r){if(l instanceof es&&a.has(l)){n.put(l),o.push(l.toString());continue}let r=function(a,r){if(++r>10)return v("parseNestedOrder - reached MAX_NESTED_LEVELS."),null;let n=i.fetchIfRef(a);if(!Array.isArray(n))return null;let s=i.fetchIfRef(n[0]);if("string"!=typeof s)return null;let o=t(n.slice(1),r);return o?.length?{name:H(s),order:o}:null}(l,s);r&&o.push(r)}if(s>0)return o;let l=[];for(let[t]of a.items())n.has(t)||l.push(t.toString());return l.length&&o.push({name:null,order:l}),o}(t.get("Order")),groups:[...a]}}setActualNumPages(t=null){this.#ek=t}get hasActualNumPages(){return null!==this.#ek}get _pagesCount(){let t=this.toplevelPagesDict.get("Count");if(!Number.isInteger(t))throw new N("Page count in top-level pages dictionary is not an integer.");return I(this,"_pagesCount",t)}get numPages(){return this.#ek??this._pagesCount}get destinations(){let t=this.#eF(),a=Object.create(null);for(let r of t)if(r instanceof sT)for(let[t,i]of r.getAll()){let r=sH(i);r&&(a[H(t,!0)]=r)}else if(r instanceof en)for(let[t,i]of r){let r=sH(i);r&&(a[H(t,!0)]||=r)}return I(this,"destinations",a)}getDestination(t){if(this.hasOwnProperty("destinations"))return this.destinations[t]??null;let a=this.#eF();for(let r of a)if(r instanceof sT||r instanceof en){let a=sH(r.get(t));if(a)return a}if(a.length){let a=this.destinations[t];if(a)return a}return null}#eF(){let t=this.#ev.get("Names"),a=[];return t?.has("Dests")&&a.push(new sT(t.getRaw("Dests"),this.xref)),this.#ev.has("Dests")&&a.push(this.#ev.get("Dests")),a}get rawPageLabels(){let t=this.#ev.getRaw("PageLabels");return t?new sB(t,this.xref).getAll():null}get pageLabels(){let t=null;try{t=this.#eM()}catch(t){if(t instanceof ex)throw t;v("Unable to read page labels.")}return I(this,"pageLabels",t)}#eM(){let t=this.rawPageLabels;if(!t)return null;let a=Array(this.numPages),r=null,i="",n="",s=1;for(let o=0,l=this.numPages;o<l;o++){let l=t.get(o);if(void 0!==l){if(!(l instanceof en))throw new N("PageLabel is not a dictionary.");if(l.has("Type")&&!ec(l.get("Type"),"PageLabel"))throw new N("Invalid type in PageLabel dictionary.");if(l.has("S")){let t=l.get("S");if(!(t instanceof ea))throw new N("Invalid style in PageLabel dictionary.");r=t.name}else r=null;if(l.has("P")){let t=l.get("P");if("string"!=typeof t)throw new N("Invalid prefix in PageLabel dictionary.");i=H(t)}else i="";if(l.has("St")){let t=l.get("St");if(!(Number.isInteger(t)&&t>=1))throw new N("Invalid start in PageLabel dictionary.");s=t}else s=1}switch(r){case"D":n=s;break;case"R":case"r":n=function(t,a=!1){C(Number.isInteger(t)&&t>0,"The number should be a positive integer.");let r="M".repeat(t/1e3|0)+eT[t%1e3/100|0]+eT[10+(t%100/10|0)]+eT[20+t%10];return a?r.toLowerCase():r}(s,"r"===r);break;case"A":case"a":let c="a"===r?97:65,h=s-1;n=String.fromCharCode(c+h%26).repeat(Math.floor(h/26)+1);break;default:if(r)throw new N(`Invalid style "${r}" in PageLabel dictionary.`);n=""}a[o]=i+n,s++}return a}get pageLayout(){let t=this.#ev.get("PageLayout"),a="";if(t instanceof ea)switch(t.name){case"SinglePage":case"OneColumn":case"TwoColumnLeft":case"TwoColumnRight":case"TwoPageLeft":case"TwoPageRight":a=t.name}return I(this,"pageLayout",a)}get pageMode(){let t=this.#ev.get("PageMode"),a="UseNone";if(t instanceof ea)switch(t.name){case"UseNone":case"UseOutlines":case"UseThumbs":case"FullScreen":case"UseOC":case"UseAttachments":a=t.name}return I(this,"pageMode",a)}get viewerPreferences(){let t=this.#ev.get("ViewerPreferences");if(!(t instanceof en))return I(this,"viewerPreferences",null);let a=null;for(let[r,i]of t){let t;switch(r){case"HideToolbar":case"HideMenubar":case"HideWindowUI":case"FitWindow":case"CenterWindow":case"DisplayDocTitle":case"PickTrayByPDFSize":"boolean"==typeof i&&(t=i);break;case"NonFullScreenPageMode":if(i instanceof ea)switch(i.name){case"UseNone":case"UseOutlines":case"UseThumbs":case"UseOC":t=i.name;break;default:t="UseNone"}break;case"Direction":if(i instanceof ea)switch(i.name){case"L2R":case"R2L":t=i.name;break;default:t="L2R"}break;case"ViewArea":case"ViewClip":case"PrintArea":case"PrintClip":if(i instanceof ea)switch(i.name){case"MediaBox":case"CropBox":case"BleedBox":case"TrimBox":case"ArtBox":t=i.name;break;default:t="CropBox"}break;case"PrintScaling":if(i instanceof ea)switch(i.name){case"None":case"AppDefault":t=i.name;break;default:t="AppDefault"}break;case"Duplex":if(i instanceof ea)switch(i.name){case"Simplex":case"DuplexFlipShortEdge":case"DuplexFlipLongEdge":t=i.name;break;default:t="None"}break;case"PrintPageRange":Array.isArray(i)&&i.length%2==0&&i.every((t,a,r)=>Number.isInteger(t)&&t>0&&(0===a||t>=r[a-1])&&t<=this.numPages)&&(t=i);break;case"NumCopies":Number.isInteger(i)&&i>0&&(t=i);break;default:v(`Ignoring non-standard key in ViewerPreferences: ${r}.`);continue}void 0!==t?(a??=Object.create(null))[r]=t:v(`Bad value, for key "${r}", in ViewerPreferences: ${i}.`)}return I(this,"viewerPreferences",a)}get openAction(){let t=this.#ev.get("OpenAction"),a=Object.create(null);if(t instanceof en){let r=new en(this.xref);r.set("A",t);let i={url:null,dest:null,action:null};sz.parseDestDictionary({destDict:r,resultObj:i}),Array.isArray(i.dest)?a.dest=i.dest:i.action&&(a.action=i.action)}else sq(t)&&(a.dest=t);return I(this,"openAction",_(a)>0?a:null)}get attachments(){let t=this.#ev.get("Names"),a=null;if(t instanceof en&&t.has("EmbeddedFiles")){let r=new sT(t.getRaw("EmbeddedFiles"),this.xref);for(let[t,i]of r.getAll()){let r=new sR(i,this.xref);(a??=Object.create(null))[H(t,!0)]=r.serializable}}return I(this,"attachments",a)}get xfaImages(){let t=this.#ev.get("Names"),a=null;if(t instanceof en&&t.has("XFAImages")){let r=new sT(t.getRaw("XFAImages"),this.xref);for(let[t,i]of r.getAll())i instanceof ed&&(a??=new Map).set(H(t,!0),i.getBytes())}return I(this,"xfaImages",a)}#eR(){let t=this.#ev.get("Names"),a=null;function r(t,r){if(!(r instanceof en)||!ec(r.get("S"),"JavaScript"))return;let i=r.get("JS");if(i instanceof ed)i=i.getString();else if("string"!=typeof i)return;(i=H(i,!0).replaceAll("\x00",""))&&(a||=new Map).set(t,i)}if(t instanceof en&&t.has("JavaScript")){let a=new sT(t.getRaw("JavaScript"),this.xref);for(let[t,i]of a.getAll())r(H(t,!0),i)}let i=this.#ev.get("OpenAction");return i&&r("OpenAction",i),a}get jsActions(){let t=this.#eR(),a=eH(this.xref,this.#ev,y);if(t)for(let[r,i]of(a||=Object.create(null),t))r in a?a[r].push(i):a[r]=[i];return I(this,"jsActions",a)}async cleanup(t=!1){for(let{dict:a}of(sF(),this.globalColorSpaceCache.clear(),this.globalImageCache.clear(t),this.pageKidsCountCache.clear(),this.pageIndexCache.clear(),this.pageDictCache.clear(),this.nonBlendModesSet.clear(),await Promise.all(this.fontCache)))delete a.cacheKey;this.fontCache.clear(),this.builtInCMapCache.clear(),this.standardFontDataCache.clear(),this.systemFontCache.clear()}async getPageDict(t){let a=[this.toplevelPagesDict],r=new eo,i=this.#ev.getRaw("Pages");i instanceof es&&r.put(i);let n=this.xref,s=this.pageKidsCountCache,o=this.pageIndexCache,l=this.pageDictCache,c=0;for(;a.length;){let i=a.pop();if(i instanceof es){let h=s.get(i);if(h>=0&&c+h<=t){c+=h;continue}if(r.has(i))throw new N("Pages tree contains circular reference.");r.put(i);let u=await (l.get(i)||n.fetchAsync(i));if(u instanceof en){let a=u.getRaw("Type");if(a instanceof es&&(a=await n.fetchAsync(a)),ec(a,"Page")||!u.has("Kids")){if(s.has(i)||s.put(i,1),o.has(i)||o.put(i,c),c===t)return[u,i];c++;continue}}a.push(u);continue}if(!(i instanceof en))throw new N("Page dictionary kid reference points to wrong type of object.");let{objId:h}=i,u=i.getRaw("Count");if(u instanceof es&&(u=await n.fetchAsync(u)),Number.isInteger(u)&&u>=0&&(h&&!s.has(h)&&s.put(h,u),c+u<=t)){c+=u;continue}let f=i.getRaw("Kids");if(f instanceof es&&(f=await n.fetchAsync(f)),!Array.isArray(f)){let a=i.getRaw("Type");if(a instanceof es&&(a=await n.fetchAsync(a)),ec(a,"Page")||!i.has("Kids")){if(c===t)return[i,null];c++;continue}throw new N("Page dictionary kids object is not an array.")}for(let t=f.length-1;t>=0;t--){let r=f[t];a.push(r),i===this.toplevelPagesDict&&r instanceof es&&!l.has(r)&&l.put(r,n.fetchAsync(r))}}throw Error(`Page index ${t} not found.`)}async getAllPageDicts(t=!1){let{ignoreErrors:a}=this.pdfManager.evaluatorOptions,r=[{currentNode:this.toplevelPagesDict,posInKids:0}],i=new eo,n=this.#ev.getRaw("Pages");n instanceof es&&i.put(n);let s=new Map,o=this.xref,l=this.pageIndexCache,c=0;function h(r){if(r instanceof ev&&!t)throw r;t&&a&&0===c&&(v(`getAllPageDicts - Skipping invalid first page: "${r}".`),r=en.empty),s.set(c++,[r,null])}for(;r.length>0;){var u,f;let t;let a=r.at(-1),{currentNode:n,posInKids:d}=a,g=n.getRaw("Kids");if(g instanceof es)try{g=await o.fetchAsync(g)}catch(t){h(t);break}if(!Array.isArray(g)){h(new N("Page dictionary kids object is not an array."));break}if(d>=g.length){r.pop();continue}let p=g[d];if(p instanceof es){if(i.has(p)){h(new N("Pages tree contains circular reference."));break}i.put(p);try{t=await o.fetchAsync(p)}catch(t){h(t);break}}else t=p;if(!(t instanceof en)){h(new N("Page dictionary kid reference points to wrong type of object."));break}let m=t.getRaw("Type");if(m instanceof es)try{m=await o.fetchAsync(m)}catch(t){h(t);break}ec(m,"Page")||!t.has("Kids")?(u=t,(f=p instanceof es?p:null)&&!l.has(f)&&l.put(f,c),s.set(c++,[u,f])):r.push({currentNode:t,posInKids:0}),a.posInKids++}return s}getPageIndex(t){let a=this.pageIndexCache.get(t);if(void 0!==a)return Promise.resolve(a);let r=this.xref,i=0,n=a=>{let s,o;return(o=0,r.fetchAsync(a).then(function(r){if(ef(a,t)&&!eu(r,"Page")&&!(r instanceof en&&!r.has("Type")&&r.has("Contents")))throw new N("The reference does not point to a /Page dictionary.");if(!r)return null;if(!(r instanceof en))throw new N("Node must be a dictionary.");return s=r.getRaw("Parent"),r.getAsync("Parent")}).then(function(t){if(!t)return null;if(!(t instanceof en))throw new N("Parent must be a dictionary.");return t.getAsync("Kids")}).then(function(t){if(!t)return null;let i=[],n=!1;for(let s of t){if(!(s instanceof es))throw new N("Kid must be a reference.");if(ef(s,a)){n=!0;break}i.push(r.fetchAsync(s).then(function(t){if(!(t instanceof en))throw new N("Kid node must be a dictionary.");t.has("Count")?o+=t.get("Count"):o++}))}if(!n)throw new N("Kid reference not found in parent's kids.");return Promise.all(i).then(()=>[o,s])})).then(a=>{if(!a)return this.pageIndexCache.put(t,i),i;let[r,s]=a;return i+=r,n(s)})};return n(t)}get baseUrl(){let t=this.#ev.get("URI");if(t instanceof en){let a=t.get("Base");if("string"==typeof a){let t=S(a,null,{tryConvertEncoding:!0});if(t)return I(this,"baseUrl",t.href)}}return I(this,"baseUrl",this.pdfManager.docBaseUrl)}static parseDestDictionary({destDict:t,resultObj:a,docBaseUrl:r=null,docAttachments:i=null}){if(!(t instanceof en)){v("parseDestDictionary: `destDict` must be a dictionary.");return}let n,s,o=t.get("A");if(!(o instanceof en)&&(t.has("Dest")?o=t.get("Dest"):(o=t.get("AA"))instanceof en&&(o.has("D")?o=o.get("D"):o.has("U")&&(o=o.get("U")))),o instanceof en){let t=o.get("S");if(!(t instanceof ea)){v("parseDestDictionary: Invalid type in Action dictionary.");return}let r=t.name;switch(r){case"ResetForm":let l=o.get("Flags"),c=[],h=[];for(let t of o.get("Fields")||[])t instanceof es?h.push(t.toString()):"string"==typeof t&&c.push(H(t));a.resetForm={fields:c,refs:h,include:!(1&("number"==typeof l?l:0))};break;case"URI":(n=o.get("URI"))instanceof ea&&(n="/"+n.name);break;case"GoTo":s=o.get("D");break;case"Launch":case"GoToR":let u=o.get("F");if(u instanceof en){let t=new sR(u,null,!0),{rawFilename:a}=t.serializable;n=a}else"string"==typeof u&&(n=u);let f=s$(o);f&&"string"==typeof n&&(n=n.split("#",1)[0]+"#"+f);let d=o.get("NewWindow");"boolean"==typeof d&&(a.newWindow=d);break;case"GoToE":let g;let p=o.get("T");if(i&&p instanceof en){let t=p.get("R"),a=p.get("N");ec(t,"C")&&"string"==typeof a&&(g=i[H(a,!0)])}if(g){a.attachment=g;let t=s$(o);t&&(a.attachmentDest=t)}else v('parseDestDictionary - unimplemented "GoToE" action.');break;case"Named":let m=o.get("N");m instanceof ea&&(a.action=m.name);break;case"SetOCGState":let b=o.get("State"),y=o.get("PreserveRB");if(!Array.isArray(b)||0===b.length)break;let w=[];for(let t of b)if(t instanceof ea)switch(t.name){case"ON":case"OFF":case"Toggle":w.push(t.name)}else t instanceof es&&w.push(t.toString());if(w.length!==b.length)break;a.setOCGState={state:w,preserveRB:"boolean"!=typeof y||y};break;case"JavaScript":let x;let k=o.get("JS");k instanceof ed?x=k.getString():"string"==typeof k&&(x=k);let A=x&&eW(H(x,!0));if(A){n=A.url,a.newWindow=A.newWindow;break}default:if("JavaScript"===r||"SubmitForm"===r)break;v(`parseDestDictionary - unsupported action: "${r}".`)}}else t.has("Dest")&&(s=t.get("Dest"));if("string"==typeof n){let t=S(n,r,{addDefaultProtocol:!0,tryConvertEncoding:!0});t&&(a.url=t.href),a.unsafeUrl=n}s&&(s instanceof ea&&(s=s.name),"string"==typeof s?a.dest=H(s,!0):sq(s)&&(a.dest=s))}}class sG{refSet=new eo;constructor(t,a,r){this.dict=t,this.keys=a,this.xref=r}async load(){let{keys:t,dict:a}=this,r=[];for(let i of t){let t=a.getRaw(i);void 0!==t&&r.push(t)}await this.#eN(r),this.refSet=null}async #eN(t){let a=[],r=[];for(;t.length;){let i=t.pop();if(i instanceof es){if(this.refSet.has(i))continue;try{this.refSet.put(i),i=this.xref.fetch(i)}catch(t){if(!(t instanceof ex)){v(`ObjectLoader.#walk - requesting all data: "${t}".`),await this.xref.stream.manager.requestAllChunks();return}a.push(i),r.push({begin:t.begin,end:t.end})}}if(i instanceof ed){let t=i.getBaseStreams();if(t){let n=!1;for(let a of t)a.isDataLoaded||(n=!0,r.push({begin:a.start,end:a.end}));n&&a.push(i)}}!function(t,a){if(t instanceof en)t=t.getRawValues();else if(t instanceof ed)t=t.dict.getRawValues();else if(!Array.isArray(t))return;for(let r of t)(r instanceof es||r instanceof en||r instanceof ed||Array.isArray(r))&&a.push(r)}(i,t)}if(r.length){for(let t of(await this.xref.stream.manager.requestRanges(r),a))t instanceof es&&this.refSet.remove(t);await this.#eN(a)}}static async load(t,a,r){if(r.stream.isDataLoaded)return;let i=new sG(t,a,r);await i.load()}}let sW=Symbol(),sV=Symbol(),sX=Symbol(),sK=Symbol(),sY=Symbol(),sJ=Symbol(),sZ=Symbol(),sQ=Symbol(),s1=Symbol(),s0=Symbol("content"),s2=Symbol("data"),s9=Symbol(),s5=Symbol("extra"),s3=Symbol(),s6=Symbol(),s7=Symbol(),s8=Symbol(),s4=Symbol(),oe=Symbol(),ot=Symbol(),oa=Symbol(),or=Symbol(),oi=Symbol(),on=Symbol(),os=Symbol(),oo=Symbol(),ol=Symbol(),oc=Symbol(),oh=Symbol(),ou=Symbol(),of=Symbol(),od=Symbol(),og=Symbol(),op=Symbol(),om=Symbol(),ob=Symbol(),oy=Symbol(),ow=Symbol(),ox=Symbol(),ok=Symbol(),ov=Symbol(),oA=Symbol(),oC=Symbol(),oS=Symbol(),oI=Symbol(),oT=Symbol("namespaceId"),oB=Symbol("nodeName"),oF=Symbol(),oM=Symbol(),oR=Symbol(),oN=Symbol(),oO=Symbol(),oD=Symbol(),oE=Symbol(),oP=Symbol(),o_=Symbol("root"),oL=Symbol(),oU=Symbol(),oj=Symbol(),oq=Symbol(),oH=Symbol(),o$=Symbol(),oz=Symbol(),oG=Symbol(),oW=Symbol(),oV=Symbol(),oX=Symbol(),oK=Symbol("uid");h(531);let oY=Symbol(),oJ={config:{id:0,check:t=>t.startsWith("http://www.xfa.org/schema/xci/")},connectionSet:{id:1,check:t=>t.startsWith("http://www.xfa.org/schema/xfa-connection-set/")},datasets:{id:2,check:t=>t.startsWith("http://www.xfa.org/schema/xfa-data/")},form:{id:3,check:t=>t.startsWith("http://www.xfa.org/schema/xfa-form/")},localeSet:{id:4,check:t=>t.startsWith("http://www.xfa.org/schema/xfa-locale-set/")},pdf:{id:5,check:t=>"http://ns.adobe.com/xdp/pdf/"===t},signature:{id:6,check:t=>"http://www.w3.org/2000/09/xmldsig#"===t},sourceSet:{id:7,check:t=>t.startsWith("http://www.xfa.org/schema/xfa-source-set/")},stylesheet:{id:8,check:t=>"http://www.w3.org/1999/XSL/Transform"===t},template:{id:9,check:t=>t.startsWith("http://www.xfa.org/schema/xfa-template/")},xdc:{id:10,check:t=>t.startsWith("http://www.xfa.org/schema/xdc/")},xdp:{id:11,check:t=>"http://ns.adobe.com/xdp/"===t},xfdf:{id:12,check:t=>"http://ns.adobe.com/xfdf/"===t},xhtml:{id:13,check:t=>"http://www.w3.org/1999/xhtml"===t},xmpmeta:{id:14,check:t=>"http://ns.adobe.com/xmpmeta/"===t}},oZ={pt:t=>t,cm:t=>t/2.54*72,mm:t=>t/25.4*72,in:t=>72*t,px:t=>t},oQ=/([+-]?\d+\.?\d*)(.*)/;function o1(t){return t.startsWith("'")||t.startsWith('"')?t.slice(1,-1):t}function o0({data:t,defaultValue:a,validate:r}){if(!t)return a;t=t.trim();let i=parseInt(t,10);return!isNaN(i)&&r(i)?i:a}function o2({data:t,defaultValue:a,validate:r}){if(!t)return a;t=t.trim();let i=parseFloat(t);return!isNaN(i)&&r(i)?i:a}function o9({data:t,defaultValue:a,validate:r}){return t&&r(t=t.trim())?t:a}function o5(t,a){return o9({data:t,defaultValue:a[0],validate:t=>a.includes(t)})}function o3(t,a="0"){if(a||="0",!t)return o3(a);let r=t.trim().match(oQ);if(!r)return o3(a);let[,i,n]=r,s=parseFloat(i);if(isNaN(s))return o3(a);if(0===s)return 0;let o=oZ[n];return o?o(s):s}function o6(t){if(!t)return{num:1,den:1};let a=t.split(":",2).map(t=>parseFloat(t.trim())).filter(t=>!isNaN(t));if(1===a.length&&a.push(1),0===a.length)return{num:1,den:1};let[r,i]=a;return{num:r,den:i}}function o7(t){return t?t.trim().split(/\s+/).map(t=>({excluded:"-"===t[0],viewname:t.substring(1)})):[]}class o8{static get FAILURE(){return I(this,"FAILURE",new o8(!1,null,null,null))}static get EMPTY(){return I(this,"EMPTY",new o8(!0,null,null,null))}constructor(t,a,r,i){this.success=t,this.html=a,this.bbox=r,this.breakNode=i}isBreak(){return!!this.breakNode}static breakNode(t){return new o8(!1,null,null,t)}static success(t,a=null){return new o8(!0,t,a,null)}}class o4{constructor(t){this.fonts=new Map,this.cache=new Map,this.warned=new Set,this.defaultFont=null,this.add(t)}add(t,a=null){for(let a of t)this.addPdfFont(a);for(let t of this.fonts.values())t.regular||(t.regular=t.italic||t.bold||t.bolditalic);if(!a||0===a.size)return;let r=this.fonts.get("PdfJS-Fallback-PdfJS-XFA");for(let t of a)this.fonts.set(t,r)}addPdfFont(t){let a=t.cssFontInfo,r=a.fontFamily,i=this.fonts.get(r);!i&&(i=Object.create(null),this.fonts.set(r,i),this.defaultFont||(this.defaultFont=i));let n="",s=parseFloat(a.fontWeight);0!==parseFloat(a.italicAngle)?n=s>=700?"bolditalic":"italic":s>=700&&(n="bold"),!n&&((t.name.includes("Bold")||t.psName?.includes("Bold"))&&(n="bold"),(t.name.includes("Italic")||t.name.endsWith("It")||t.psName?.includes("Italic")||t.psName?.endsWith("It"))&&(n+="italic")),n||(n="regular"),i[n]=t}getDefault(){return this.defaultFont}find(t,a=!0){let r=this.fonts.get(t)||this.cache.get(t);if(r)return r;let i=/,|-|_| |bolditalic|bold|italic|regular|it/gi,n=t.replaceAll(i,"");if(r=this.fonts.get(n))return this.cache.set(t,r),r;n=n.toLowerCase();let s=[];for(let[t,a]of this.fonts.entries())t.replaceAll(i,"").toLowerCase().startsWith(n)&&s.push(a);if(0===s.length)for(let[,t]of this.fonts.entries())t.regular.name?.replaceAll(i,"").toLowerCase().startsWith(n)&&s.push(t);if(0===s.length)for(let[t,a]of(n=n.replaceAll(/psmt|mt/gi,""),this.fonts.entries()))t.replaceAll(i,"").toLowerCase().startsWith(n)&&s.push(a);if(0===s.length)for(let t of this.fonts.values())t.regular.name?.replaceAll(i,"").toLowerCase().startsWith(n)&&s.push(t);return s.length>=1?(1!==s.length&&a&&v(`XFA - Too many choices to guess the correct font: ${t}`),this.cache.set(t,s[0]),s[0]):(a&&!this.warned.has(t)&&(this.warned.add(t),v(`XFA - Cannot find the font: ${t}`)),null)}}function le(t,a){return"italic"===t.posture?"bold"===t.weight?a.bolditalic:a.italic:"bold"===t.weight?a.bold:a.regular}class lt{constructor(t,a,r,i){if(this.lineHeight=r,this.paraMargin=a||{top:0,bottom:0,left:0,right:0},!t){[this.pdfFont,this.xfaFont]=this.defaultFont(i);return}this.xfaFont={typeface:t.typeface,posture:t.posture,weight:t.weight,size:t.size,letterSpacing:t.letterSpacing};let n=i.find(t.typeface);n?(this.pdfFont=le(t,n),this.pdfFont||([this.pdfFont,this.xfaFont]=this.defaultFont(i))):[this.pdfFont,this.xfaFont]=this.defaultFont(i)}defaultFont(t){let a=t.find("Helvetica",!1)||t.find("Myriad Pro",!1)||t.find("Arial",!1)||t.getDefault();if(a?.regular){let t=a.regular;return[t,{typeface:t.cssFontInfo.fontFamily,posture:"normal",weight:"normal",size:10,letterSpacing:0}]}return[null,{typeface:"Courier",posture:"normal",weight:"normal",size:10,letterSpacing:0}]}}class la{constructor(t,a,r,i){this.fontFinder=i,this.stack=[new lt(t,a,r,i)]}pushData(t,a,r){let i=this.stack.at(-1);for(let a of["typeface","posture","weight","size","letterSpacing"])t[a]||(t[a]=i.xfaFont[a]);for(let t of["top","bottom","left","right"])isNaN(a[t])&&(a[t]=i.paraMargin[t]);let n=new lt(t,a,r||i.lineHeight,this.fontFinder);n.pdfFont||(n.pdfFont=i.pdfFont),this.stack.push(n)}popFont(){this.stack.pop()}topFont(){return this.stack.at(-1)}}class lr{constructor(t,a,r,i){this.glyphs=[],this.fontSelector=new la(t,a,r,i),this.extraHeight=0}pushData(t,a,r){this.fontSelector.pushData(t,a,r)}popFont(t){return this.fontSelector.popFont()}addPara(){let t=this.fontSelector.topFont();this.extraHeight+=t.paraMargin.top+t.paraMargin.bottom}addString(t){if(!t)return;let a=this.fontSelector.topFont(),r=a.xfaFont.size;if(a.pdfFont){let i=a.xfaFont.letterSpacing,n=a.pdfFont,s=n.lineHeight||1.2,o=a.lineHeight||Math.max(1.2,s)*r,l=s-(void 0===n.lineGap?.2:n.lineGap),c=Math.max(1,l)*r,h=r/1e3,u=n.defaultWidth||n.charsToGlyphs(" ")[0].width;for(let a of t.split(/[\u2029\n]/)){let t=n.encodeString(a).join(""),r=n.charsToGlyphs(t);for(let t of r){let a=t.width||u;this.glyphs.push([a*h+i,o,c,t.unicode,!1])}this.glyphs.push([0,0,0,"\n",!0])}this.glyphs.pop();return}for(let a of t.split(/[\u2029\n]/)){for(let t of a.split(""))this.glyphs.push([r,1.2*r,r,t,!1]);this.glyphs.push([0,0,0,"\n",!0])}this.glyphs.pop()}compute(t){let a=-1,r=0,i=0,n=0,s=0,o=0,l=!1,c=!0;for(let h=0,u=this.glyphs.length;h<u;h++){let[u,f,d,g,p]=this.glyphs[h],m=" "===g,b=c?d:f;p?(i=Math.max(i,s),s=0,n+=o,o=b,a=-1,r=0,c=!1):m?s+u>t?(i=Math.max(i,s),s=0,n+=o,o=b,a=-1,r=0,l=!0,c=!1):(o=Math.max(b,o),r=s,s+=u,a=h):s+u>t?(n+=o,o=b,-1!==a?(h=a,i=Math.max(i,r),s=0,a=-1,r=0):(i=Math.max(i,s),s=u),l=!0,c=!1):(s+=u,o=Math.max(b,o))}return{width:1.02*(i=Math.max(i,s)),height:n+=o+this.extraHeight,isBroken:l}}}let li=/^[^.[]+/,ln=/^[^\]]+/,ls=new Map([["$data",(t,a)=>t.datasets?t.datasets.data:t],["$record",(t,a)=>(t.datasets?t.datasets.data:t)[os]()[0]],["$template",(t,a)=>t.template],["$connectionSet",(t,a)=>t.connectionSet],["$form",(t,a)=>t.form],["$layout",(t,a)=>t.layout],["$host",(t,a)=>t.host],["$dataWindow",(t,a)=>t.dataWindow],["$event",(t,a)=>t.event],["!",(t,a)=>t.datasets],["$xfa",(t,a)=>t],["xfa",(t,a)=>t],["$",(t,a)=>a]]),lo=new WeakMap;function ll(t,a,r=!0){let i=t.match(li);if(!i)return null;let[n]=i,s=[{name:n,cacheName:"."+n,index:0,js:null,formCalc:null,operator:0}],o=n.length;for(;o<t.length;){let c;let h=o;if("["===t.charAt(o++)){var l;if(!(i=t.slice(o).match(ln)))return v("XFA - Invalid index in SOM expression"),null;s.at(-1).index="*"===(l=(l=i[0]).trim())?1/0:parseInt(l,10)||0,o+=i[0].length+1;continue}switch(t.charAt(o)){case".":if(!a)return null;o++,c=1;break;case"#":o++,c=2;break;case"[":if(r)return v("XFA - SOM expression contains a FormCalc subexpression which is not supported for now."),null;c=3;break;case"(":if(r)return v("XFA - SOM expression contains a JavaScript subexpression which is not supported for now."),null;c=4;break;default:c=0}if(!(i=t.slice(o).match(li)))break;[n]=i,o+=n.length,s.push({name:n,cacheName:t.slice(h,o),operator:c,index:0,js:null,formCalc:null})}return s}function lc(t,a,r,i=!0,n=!0){let s=ll(r,i);if(!s)return null;let o=ls.get(s[0].name),l,c=0;o?(l=!0,t=[o(t,a)],c=1):(l=null===a,t=[a||t]);for(let r=s.length;c<r;c++){let{name:r,cacheName:i,operator:o,index:h}=s[c],u=[];for(let a of t){let t,s;if(a.isXFAObject){if(n&&((s=lo.get(a))||(s=new Map,lo.set(a,s)),t=s.get(i)),!t){switch(o){case 0:t=a[ot](r,!1);break;case 1:t=a[ot](r,!0);break;case 2:t=(t=a[oe](r)).isXFAObjectArray?t.children:[t]}n&&s.set(i,t)}t.length>0&&u.push(t)}}if(0===u.length&&!l&&0===c){let r=a[oh]();if(!(a=r))return null;c=-1,t=[a];continue}t=isFinite(h)?u.filter(t=>h<t.length).map(t=>t[h]):u.flat()}return 0===t.length?null:t}let lh=Symbol(),lu=Symbol(),lf=Symbol(),ld=Symbol("_children"),lg=Symbol(),lp=Symbol(),lm=Symbol(),lb=Symbol(),ly=Symbol(),lw=Symbol(),lx=Symbol(),lk=Symbol(),lv=Symbol(),lA=Symbol("parent"),lC=Symbol(),lS=Symbol(),lI=Symbol(),lT=0,lB=oJ.datasets.id;class lF{constructor(t,a,r=!1){this[oT]=t,this[oB]=a,this[lx]=r,this[lA]=null,this[ld]=[],this[oK]=`${a}${lT++}`,this[of]=null}get isXFAObject(){return!0}get isXFAObjectArray(){return!1}createNodes(t){let a=this,r=null;for(let{name:i,index:n}of t){for(let t=0,s=isFinite(n)?n:0;t<=s;t++){let t=a[oT]===lB?-1:a[oT];r=new lN(t,i),a[sX](r)}a=r}return r}[oM](t){if(!this[lx]||!this[oR](t))return!1;let a=t[oB],r=this[a];if(!(r instanceof lM))return null!==r&&this[oP](r),this[a]=t,this[sX](t),!0;if(r.push(t))return this[sX](t),!0;let i="";return this.id?i=` (id: ${this.id})`:this.name&&(i=` (name: ${this.name} ${this.h.value})`),v(`XFA - node "${this[oB]}"${i} has already enough "${a}"!`),!1}[oR](t){return this.hasOwnProperty(t[oB])&&t[oT]===this[oT]}[ok](){return!1}[sW](){return!1}[ob](){return!1}[oy](){return!1}[oD](){this.para&&this[ou]()[s5].paraStack.pop()}[oE](){this[ou]()[s5].paraStack.push(this.para)}[oj](t){this.id&&this[oT]===oJ.template.id&&t.set(this.id,this)}[ou](){return this[of].template}[ov](){return!1}[oA](){return!1}[sX](t){t[lA]=this,this[ld].push(t),!t[of]&&this[of]&&(t[of]=this[of])}[oP](t){let a=this[ld].indexOf(t);this[ld].splice(a,1)}[od](){return this.hasOwnProperty("value")}[oH](t){}[oN](t){}[s3](){}[sY](t){delete this[lx],this[sZ]&&(t.clean(this[sZ]),delete this[sZ])}[op](t){return this[ld].indexOf(t)}[om](t,a){a[lA]=this,this[ld].splice(t,0,a),!a[of]&&this[of]&&(a[of]=this[of])}[oC](){return!this.name}[oI](){return""}[oz](){return 0===this[ld].length?this[s0]:this[ld].map(t=>t[oz]()).join("")}get[lf](){let t=Object.getPrototypeOf(this);if(!t._attributes){let a=t._attributes=new Set;for(let t of Object.getOwnPropertyNames(this)){if(null===this[t]||this[t]instanceof lF||this[t]instanceof lM)break;a.add(t)}}return I(this,lf,t._attributes)}[ox](t){let a=this;for(;a;){if(a===t)return!0;a=a[oh]()}return!1}[oh](){return this[lA]}[oc](){return this[oh]()}[os](t=null){return t?this[t]:this[ld]}[s9](){let t=Object.create(null);for(let a of(this[s0]&&(t.$content=this[s0]),Object.getOwnPropertyNames(this))){let r=this[a];null!==r&&(r instanceof lF?t[a]=r[s9]():r instanceof lM?r.isEmpty()||(t[a]=r.dump()):t[a]=r)}return t}[oX](){return null}[oW](){return o8.EMPTY}*[oo](){for(let t of this[os]())yield t}*[lb](t,a){for(let r of this[oo]())if(!t||a===t.has(r[oB])){let t=this[s4](),a=r[oW](t);a.success||(this[s5].failingNode=r),yield a}}[s6](){return null}[sV](t,a){this[s5].children.push(t)}[s4](){}[sK]({filter:t=null,include:a=!0}){if(this[s5].generator){let t=this[s4](),a=this[s5].failingNode[oW](t);if(!a.success)return a;a.html&&this[sV](a.html,a.bbox),delete this[s5].failingNode}else this[s5].generator=this[lb](t,a);for(;;){let t=this[s5].generator.next();if(t.done)break;let a=t.value;if(!a.success)return a;a.html&&this[sV](a.html,a.bbox)}return this[s5].generator=null,o8.EMPTY}[oq](t){this[lS]=new Set(Object.keys(t))}[lw](t){let a=this[lf],r=this[lS];return[...t].filter(t=>a.has(t)&&!r.has(t))}[oL](t,a=new Set){for(let r of this[ld])r[lC](t,a)}[lC](t,a){let r=this[ly](t,a);r?this[lh](r,t,a):this[oL](t,a)}[ly](t,a){let{use:r,usehref:i}=this;if(!r&&!i)return null;let n=null,s=null,o=null,l=r;if(i?(l=i,i.startsWith("#som(")&&i.endsWith(")")?s=i.slice(5,-1):i.startsWith(".#som(")&&i.endsWith(")")?s=i.slice(6,-1):i.startsWith("#")?o=i.slice(1):i.startsWith(".#")&&(o=i.slice(2))):r.startsWith("#")?o=r.slice(1):s=r,this.use=this.usehref="",o?n=t.get(o):(n=lc(t.get(o_),this,s,!0,!1))&&(n=n[0]),!n)return v(`XFA - Invalid prototype reference: ${l}.`),null;if(n[oB]!==this[oB])return v(`XFA - Incompatible prototype: ${n[oB]} !== ${this[oB]}.`),null;if(a.has(n))return v("XFA - Cycle detected in prototypes use."),null;a.add(n);let c=n[ly](t,a);return c&&n[lh](c,t,a),n[oL](t,a),a.delete(n),n}[lh](t,a,r){if(r.has(t)){v("XFA - Cycle detected in prototypes use.");return}for(let a of(!this[s0]&&t[s0]&&(this[s0]=t[s0]),new Set(r).add(t),this[lw](t[lS])))this[a]=t[a],this[lS]&&this[lS].add(a);for(let i of Object.getOwnPropertyNames(this)){if(this[lf].has(i))continue;let n=this[i],s=t[i];if(n instanceof lM){for(let t of n[ld])t[lC](a,r);for(let i=n[ld].length,o=s[ld].length;i<o;i++){let s=t[ld][i][sQ]();if(!n.push(s))break;s[lA]=this,this[ld].push(s),s[lC](a,r)}}else if(null===n){if(null!==s){let t=s[sQ]();t[lA]=this,this[i]=t,this[ld].push(t),t[lC](a,r)}}else n[oL](a,r),s&&n[lh](s,a,r)}}static[lg](t){return Array.isArray(t)?t.map(t=>lF[lg](t)):"object"==typeof t&&null!==t?Object.assign({},t):t}[sQ](){let t=Object.create(Object.getPrototypeOf(this));for(let a of Object.getOwnPropertySymbols(this))try{t[a]=this[a]}catch{I(t,a,this[a])}for(let a of(t[oK]=`${t[oB]}${lT++}`,t[ld]=[],Object.getOwnPropertyNames(this))){if(this[lf].has(a)){t[a]=lF[lg](this[a]);continue}let r=this[a];t[a]=r instanceof lM?new lM(r[lk]):null}for(let a of this[ld]){let r=a[oB],i=a[sQ]();t[ld].push(i),i[lA]=t,null===t[r]?t[r]=i:t[r][ld].push(i)}return t}[os](t=null){return t?this[ld].filter(a=>a[oB]===t):this[ld]}[oe](t){return this[t]}[ot](t,a,r=!0){return Array.from(this[oa](t,a,r))}*[oa](t,a,r=!0){if("parent"!==t){for(let r of this[ld])r[oB]===t&&(yield r),r.name===t&&(yield r),(a||r[oC]())&&(yield*r[oa](t,a,!1));r&&this[lf].has(t)&&(yield new lR(this,t,this[t]))}else yield this[lA]}}class lM{constructor(t=1/0){this[lk]=t,this[ld]=[]}get isXFAObject(){return!1}get isXFAObjectArray(){return!0}push(t){return this[ld].length<=this[lk]?(this[ld].push(t),!0):(v(`XFA - node "${t[oB]}" accepts no more than ${this[lk]} children`),!1)}isEmpty(){return 0===this[ld].length}dump(){return 1===this[ld].length?this[ld][0][s9]():this[ld].map(t=>t[s9]())}[sQ](){let t=new lM(this[lk]);return t[ld]=this[ld].map(t=>t[sQ]()),t}get children(){return this[ld]}clear(){this[ld].length=0}}class lR{constructor(t,a,r){this[lA]=t,this[oB]=a,this[s0]=r,this[s1]=!1,this[oK]="attribute"+lT++}[oh](){return this[lA]}[ow](){return!0}[or](){return this[s0].trim()}[oH](t){t=t.value||"",this[s0]=t.toString()}[oz](){return this[s0]}[ox](t){return this[lA]===t||this[lA][ox](t)}}class lN extends lF{constructor(t,a,r={}){if(super(t,a),this[s0]="",this[lp]=null,"#text"!==a){let t=new Map;for(let[a,i]of(this[lu]=t,Object.entries(r)))t.set(a,new lR(this,a,i));if(r.hasOwnProperty(oF)){let t=r[oF].xfa.dataNode;void 0!==t&&("dataGroup"===t?this[lp]=!1:"dataValue"===t&&(this[lp]=!0))}}this[s1]=!1}[oV](t){let a=this[oB];if("#text"===a){t.push(ez(this[s0]));return}let r=z(a),i=this[oT]===lB?"xfa:":"";for(let[a,n]of(t.push(`<${i}${r}`),this[lu].entries())){let r=z(a);t.push(` ${r}="${ez(n[s0])}"`)}if(null!==this[lp]&&(this[lp]?t.push(' xfa:dataNode="dataValue"'):t.push(' xfa:dataNode="dataGroup"')),this[s0]||0!==this[ld].length){if(t.push(">"),this[s0])"string"==typeof this[s0]?t.push(ez(this[s0])):this[s0][oV](t);else for(let a of this[ld])a[oV](t);t.push(`</${i}${r}>`)}else t.push("/>")}[oM](t){if(this[s0]){let t=new lN(this[oT],"#text");this[sX](t),t[s0]=this[s0],this[s0]=""}return this[sX](t),!0}[oN](t){this[s0]+=t}[s3](){if(this[s0]&&this[ld].length>0){let t=new lN(this[oT],"#text");this[sX](t),t[s0]=this[s0],delete this[s0]}}[oW](){return"#text"===this[oB]?o8.success({name:"#text",value:this[s0]}):o8.EMPTY}[os](t=null){return t?this[ld].filter(a=>a[oB]===t):this[ld]}[s8](){return this[lu]}[oe](t){let a=this[lu].get(t);return void 0!==a?a:this[os](t)}*[oa](t,a){let r=this[lu].get(t);for(let i of(r&&(yield r),this[ld]))i[oB]===t&&(yield i),a&&(yield*i[oa](t,a))}*[s7](t,a){let r=this[lu].get(t);for(let i of(!r||a&&r[s1]||(yield r),this[ld]))yield*i[s7](t,a)}*[on](t,a,r){for(let i of this[ld])i[oB]!==t||r&&i[s1]||(yield i),a&&(yield*i[on](t,a,r))}[ow](){return null===this[lp]?0===this[ld].length||this[ld][0][oT]===oJ.xhtml.id:this[lp]}[or](){return null===this[lp]?0===this[ld].length?this[s0].trim():this[ld][0][oT]===oJ.xhtml.id?this[ld][0][oz]().trim():null:this[s0].trim()}[oH](t){t=t.value||"",this[s0]=t.toString()}[s9](t=!1){let a=Object.create(null);for(let r of(t&&(a.$ns=this[oT]),this[s0]&&(a.$content=this[s0]),a.$name=this[oB],a.children=[],this[ld]))a.children.push(r[s9](t));for(let[t,r]of(a.attributes=Object.create(null),this[lu]))a.attributes[t]=r[s0];return a}}class lO extends lF{constructor(t,a){super(t,a),this[s0]=""}[oN](t){this[s0]+=t}[s3](){}}class lD extends lO{constructor(t,a,r){super(t,a),this[lv]=r}[s3](){this[s0]=o9({data:this[s0],defaultValue:this[lv][0],validate:t=>this[lv].includes(t)})}[sY](t){super[sY](t),delete this[lv]}}class lE extends lO{[s3](){this[s0]=this[s0].trim()}}class lP extends lO{constructor(t,a,r,i){super(t,a),this[lm]=r,this[lI]=i}[s3](){this[s0]=o0({data:this[s0],defaultValue:this[lm],validate:this[lI]})}[sY](t){super[sY](t),delete this[lm],delete this[lI]}}class l_ extends lP{constructor(t,a){super(t,a,0,t=>1===t)}}class lL extends lP{constructor(t,a){super(t,a,1,t=>0===t)}}function lU(t){return"string"==typeof t?"0px":Number.isInteger(t)?`${t}px`:`${t.toFixed(2)}px`}let lj={anchorType(t,a){let r=t[oc]();if(r&&(!r.layout||"position"===r.layout))switch("transform"in a||(a.transform=""),t.anchorType){case"bottomCenter":a.transform+="translate(-50%, -100%)";break;case"bottomLeft":a.transform+="translate(0,-100%)";break;case"bottomRight":a.transform+="translate(-100%,-100%)";break;case"middleCenter":a.transform+="translate(-50%,-50%)";break;case"middleLeft":a.transform+="translate(0,-50%)";break;case"middleRight":a.transform+="translate(-100%,-50%)";break;case"topCenter":a.transform+="translate(-50%,0)";break;case"topRight":a.transform+="translate(-100%,0)"}},dimensions(t,a){let r=t[oc](),i=t.w,n=t.h;if(r.layout?.includes("row")){let a;let n=r[s5],s=t.colSpan;-1===s?(a=Math.sumPrecise(n.columnWidths.slice(n.currentColumn)),n.currentColumn=0):(a=Math.sumPrecise(n.columnWidths.slice(n.currentColumn,n.currentColumn+s)),n.currentColumn=(n.currentColumn+t.colSpan)%n.columnWidths.length),isNaN(a)||(i=t.w=a)}a.width=""!==i?lU(i):"auto",a.height=""!==n?lU(n):"auto"},position(t,a){let r=t[oc]();r?.layout&&"position"!==r.layout||(a.position="absolute",a.left=lU(t.x),a.top=lU(t.y))},rotate(t,a){t.rotate&&("transform"in a||(a.transform=""),a.transform+=`rotate(-${t.rotate}deg)`,a.transformOrigin="top left")},presence(t,a){switch(t.presence){case"invisible":a.visibility="hidden";break;case"hidden":case"inactive":a.display="none"}},hAlign(t,a){if("para"===t[oB])switch(t.hAlign){case"justifyAll":a.textAlign="justify-all";break;case"radix":a.textAlign="left";break;default:a.textAlign=t.hAlign}else switch(t.hAlign){case"left":a.alignSelf="start";break;case"center":a.alignSelf="center";break;case"right":a.alignSelf="end"}},margin(t,a){t.margin&&(a.margin=t.margin[oX]().margin)}};function lq(t,a){"position"===t[oc]().layout&&(t.minW>0&&(a.minWidth=lU(t.minW)),t.maxW>0&&(a.maxWidth=lU(t.maxW)),t.minH>0&&(a.minHeight=lU(t.minH)),t.maxH>0&&(a.maxHeight=lU(t.maxH)))}function lH(t,a,r,i,n,s){let o=new lr(a,r,i,n);return"string"==typeof t?o.addString(t):t[oO](o),o.compute(s)}function l$(t,a){let r=null,i=null,n=!1;if((!t.w||!t.h)&&t.value){let s=0,o=0;t.margin&&(s=t.margin.leftInset+t.margin.rightInset,o=t.margin.topInset+t.margin.bottomInset);let l=null,c=null;t.para&&(c=Object.create(null),l=""===t.para.lineHeight?null:t.para.lineHeight,c.top=""===t.para.spaceAbove?0:t.para.spaceAbove,c.bottom=""===t.para.spaceBelow?0:t.para.spaceBelow,c.left=""===t.para.marginLeft?0:t.para.marginLeft,c.right=""===t.para.marginRight?0:t.para.marginRight);let h=t.font;if(!h){let a=t[ou](),r=t[oh]();for(;r&&r!==a;){if(r.font){h=r.font;break}r=r[oh]()}}let u=(t.w||a.width)-s,f=t[of].fontFinder;if(t.value.exData&&t.value.exData[s0]&&"text/html"===t.value.exData.contentType){let a=lH(t.value.exData[s0],h,c,l,f,u);i=a.width,r=a.height,n=a.isBroken}else{let a=t.value[oz]();if(a){let t=lH(a,h,c,l,f,u);i=t.width,r=t.height,n=t.isBroken}}null===i||t.w||(i+=s),null===r||t.h||(r+=o)}return{w:i,h:r,isBroken:n}}function lz(t,a,r){let i;if(""!==t.w&&""!==t.h)i=[t.x,t.y,t.w,t.h];else{if(!r)return null;let n=t.w;if(""===n){if(0===t.maxW){let a=t[oc]();n="position"===a.layout&&""!==a.w?0:t.minW}else n=Math.min(t.maxW,r.width);a.attributes.style.width=lU(n)}let s=t.h;if(""===s){if(0===t.maxH){let a=t[oc]();s="position"===a.layout&&""!==a.h?0:t.minH}else s=Math.min(t.maxH,r.height);a.attributes.style.height=lU(s)}i=[t.x,t.y,n,s]}return i}function lG(t){let a=t[oc]();if(a.layout?.includes("row")){let r;let i=a[s5],n=t.colSpan;isNaN(r=-1===n?Math.sumPrecise(i.columnWidths.slice(i.currentColumn)):Math.sumPrecise(i.columnWidths.slice(i.currentColumn,i.currentColumn+n)))||(t.w=r)}a.layout&&"position"!==a.layout&&(t.x=t.y=0),"table"===t.layout&&""===t.w&&Array.isArray(t.columnWidths)&&(t.w=Math.sumPrecise(t.columnWidths))}function lW(t){switch(t.layout){case"position":default:return"xfaPosition";case"lr-tb":return"xfaLrTb";case"rl-row":return"xfaRlRow";case"rl-tb":return"xfaRlTb";case"row":return"xfaRow";case"table":return"xfaTable";case"tb":return"xfaTb"}}function lV(t,...a){let r=Object.create(null);for(let i of a){let a=t[i];if(null!==a){if(lj.hasOwnProperty(i))lj[i](t,r);else if(a instanceof lF){let t=a[oX]();t?Object.assign(r,t):v(`(DEBUG) - XFA - style for ${i} not implemented yet`)}}}return r}function lX(t,a){let{attributes:r}=a,{style:i}=r,n={name:"div",attributes:{class:["xfaWrapper"],style:Object.create(null)},children:[]};if(r.class.push("xfaWrapped"),t.border){let{widths:r,insets:s}=t.border[s5],o,l,c=s[0],h=s[3],u=s[0]+s[2],f=s[1]+s[3];switch(t.border.hand){case"even":c-=r[0]/2,h-=r[3]/2,o=`calc(100% + ${(r[1]+r[3])/2-f}px)`,l=`calc(100% + ${(r[0]+r[2])/2-u}px)`;break;case"left":c-=r[0],h-=r[3],o=`calc(100% + ${r[1]+r[3]-f}px)`,l=`calc(100% + ${r[0]+r[2]-u}px)`;break;case"right":o=f?`calc(100% - ${f}px)`:"100%",l=u?`calc(100% - ${u}px)`:"100%"}let d=["xfaBorder"];lJ(t.border)&&d.push("xfaPrintOnly");let g={name:"div",attributes:{class:d,style:{top:`${c}px`,left:`${h}px`,width:o,height:l}},children:[]};for(let t of["border","borderWidth","borderColor","borderRadius","borderStyle"])void 0!==i[t]&&(g.attributes.style[t]=i[t],delete i[t]);n.children.push(g,a)}else n.children.push(a);for(let t of["background","backgroundClip","top","left","width","height","minWidth","minHeight","maxWidth","maxHeight","transform","transformOrigin","visibility"])void 0!==i[t]&&(n.attributes.style[t]=i[t],delete i[t]);return n.attributes.style.position="absolute"===i.position?"absolute":"relative",delete i.position,i.alignSelf&&(n.attributes.style.alignSelf=i.alignSelf,delete i.alignSelf),n}function lK(t){let a=o3(t.textIndent,"0px");if(a>=0)return;let r="padding"+("left"==("right"===t.textAlign?"right":"left")?"Left":"Right"),i=o3(t[r],"0px");t[r]=i-a+"px"}function lY(t,a){switch(t.access){case"nonInteractive":a.push("xfaNonInteractive");break;case"readOnly":a.push("xfaReadOnly");break;case"protected":a.push("xfaDisabled")}}function lJ(t){return t.relevant.length>0&&!t.relevant[0].excluded&&"print"===t.relevant[0].viewname}function lZ(t){let a=t[ou]()[s5].paraStack;return a.length?a.at(-1):null}function lQ(t,a,r){if(r.attributes.class?.includes("xfaRich")){a&&(""===t.h&&(a.height="auto"),""===t.w&&(a.width="auto"));let i=lZ(t);if(i){let t=r.attributes.style;switch(t.display="flex",t.flexDirection="column",i.vAlign){case"top":t.justifyContent="start";break;case"bottom":t.justifyContent="end";break;case"middle":t.justifyContent="center"}let a=i[oX]();for(let[r,i]of Object.entries(a))r in t||(t[r]=i)}}}function l1(t,a,r,i){if(!r){delete i.fontFamily;return}let n=o1(t.typeface);i.fontFamily=`"${n}"`;let s=r.find(n);if(s){let{fontFamily:r}=s.regular.cssFontInfo;r!==n&&(i.fontFamily=`"${r}"`);let o=lZ(a);if(o&&""!==o.lineHeight||i.lineHeight)return;let l=le(t,s);l&&(i.lineHeight=Math.max(1.2,l.lineHeight))}}function l0(t){let a=S(t,null,{addDefaultProtocol:!0,tryConvertEncoding:!0});return a?a.href:null}function l2(t,a){return{name:"div",attributes:{class:["lr-tb"===t.layout?"xfaLr":"xfaRl"]},children:a}}function l9(t){if(!t[s5])return null;let a={name:"div",attributes:t[s5].attributes,children:t[s5].children};if(t[s5].failingNode){let r=t[s5].failingNode[s6]();r&&(t.layout.endsWith("-tb")?a.children.push(l2(t,[r])):a.children.push(r))}return 0===a.children.length?null:a}function l5(t,a,r){let i=t[s5],n=i.availableSpace,[s,o,l,c]=r;switch(t.layout){case"position":i.width=Math.max(i.width,s+l),i.height=Math.max(i.height,o+c),i.children.push(a);break;case"lr-tb":case"rl-tb":i.line&&1!==i.attempt||(i.line=l2(t,[]),i.children.push(i.line),i.numberInLine=0),i.numberInLine+=1,i.line.children.push(a),0===i.attempt?(i.currentWidth+=l,i.height=Math.max(i.height,i.prevHeight+c)):(i.currentWidth=l,i.prevHeight=i.height,i.height+=c,i.attempt=0),i.width=Math.max(i.width,i.currentWidth);break;case"rl-row":case"row":{i.children.push(a),i.width+=l,i.height=Math.max(i.height,c);let t=lU(i.height);for(let a of i.children)a.attributes.style.height=t;break}case"table":case"tb":i.width=K(l,i.width,n.width),i.height+=c,i.children.push(a)}}function l3(t){let a=t[s5].availableSpace,r=t.margin?t.margin.topInset+t.margin.bottomInset:0,i=t.margin?t.margin.leftInset+t.margin.rightInset:0;switch(t.layout){case"lr-tb":case"rl-tb":return 0===t[s5].attempt?{width:a.width-i-t[s5].currentWidth,height:a.height-r-t[s5].prevHeight}:{width:a.width-i,height:a.height-r-t[s5].height};case"rl-row":case"row":return{width:Math.sumPrecise(t[s5].columnWidths.slice(t[s5].currentColumn)),height:a.height-i};case"table":case"tb":return{width:a.width-i,height:a.height-r-t[s5].height};default:return a}}function l6(t,a){if(null===t[ou]()[s5].firstUnsplittable||0===t.w||0===t.h)return!0;let r=t[oc](),i=r[s5]?.attempt||0,[,n,s,o]=function(t){let a,r,i=""===t.w?NaN:t.w,n=""===t.h?NaN:t.h,[s,o]=[0,0];switch(t.anchorType||""){case"bottomCenter":[s,o]=[i/2,n];break;case"bottomLeft":[s,o]=[0,n];break;case"bottomRight":[s,o]=[i,n];break;case"middleCenter":[s,o]=[i/2,n/2];break;case"middleLeft":[s,o]=[0,n/2];break;case"middleRight":[s,o]=[i,n/2];break;case"topCenter":[s,o]=[i/2,0];break;case"topRight":[s,o]=[i,0]}switch(t.rotate||0){case 0:[a,r]=[-s,-o];break;case 90:[a,r]=[-o,s],[i,n]=[n,-i];break;case 180:[a,r]=[s,o],[i,n]=[-i,-n];break;case 270:[a,r]=[o,-s],[i,n]=[-n,i]}return[t.x+a+Math.min(0,i),t.y+r+Math.min(0,n),Math.abs(i),Math.abs(n)]}(t);switch(r.layout){case"lr-tb":case"rl-tb":return 0===i?t[ou]()[s5].noLayoutFailure?""!==t.w?2>=Math.round(s-a.width):a.width>2:!(""!==t.h&&Math.round(o-a.height)>2)&&(""!==t.w?2>=Math.round(s-a.width)||0===r[s5].numberInLine&&a.height>2:a.width>2):!!t[ou]()[s5].noLayoutFailure||!(""!==t.h&&Math.round(o-a.height)>2)&&(""===t.w||2>=Math.round(s-a.width)||!r[oA]())&&a.height>2;case"table":case"tb":return!!t[ou]()[s5].noLayoutFailure||(""===t.h||t[ov]()?(""===t.w||2>=Math.round(s-a.width)||!r[oA]())&&a.height>2:2>=Math.round(o-a.height));case"position":if(t[ou]()[s5].noLayoutFailure||""===t.h||2>=Math.round(o+n-a.height))return!0;return o+n>t[ou]()[s5].currentContentArea.h;case"rl-row":case"row":return!!t[ou]()[s5].noLayoutFailure||""===t.h||2>=Math.round(o-a.height);default:return!0}}let l7=oJ.template.id,l8="http://www.w3.org/2000/svg",l4=/^H(\d+)$/,ce=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"]),ct=[[[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 ca(t){if(!t||!t.border)return{w:0,h:0};let a=t.border[oi]();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 cr(t){return t.margin&&(t.margin.topInset||t.margin.rightInset||t.margin.bottomInset||t.margin.leftInset)}function ci(t,a){if(!t.value){let a=new h3({});t[sX](a),t.value=a}t.value[oH](a)}function*cn(t){for(let a of t[os]())a instanceof hW?yield*a[oo]():yield a}function cs(t){return"error"===t.validate?.nullTest}function co(t){for(;t;){if(!t.traversal){t[o$]=t[oh]()[o$];return}if(t[o$])return;let a=null;for(let r of t.traversal[os]())if("next"===r.operation){a=r;break}if(!a||!a.ref){t[o$]=t[oh]()[o$];return}let r=t[ou]();t[o$]=++r[o$];let i=r[oU](a.ref,t);if(!i)return;t=i[0]}}function cl(t,a){let r=t.assist;if(r){let t=r[oW]();t&&(a.title=t);let i=r.role.match(l4);if(i){let t=i[1];a.role="heading",a["aria-level"]=t}}if("table"===t.layout)a.role="table";else if("row"===t.layout)a.role="row";else{let r=t[oh]();"row"===r.layout&&(a.role="TH"===r.assist?.role?"columnheader":"cell")}}function cc(t){if(!t.assist)return null;let a=t.assist;return a.speak&&""!==a.speak[s0]?a.speak[s0]:a.toolTip?a.toolTip[s0]:null}function ch(t){return o8.success({name:"div",attributes:{class:["xfaRich"],style:Object.create(null)},children:[{name:"span",attributes:{style:Object.create(null)},value:t}]})}function cu(t){let a=t[ou]();null===a[s5].firstUnsplittable&&(a[s5].firstUnsplittable=t,a[s5].noLayoutFailure=!0)}function cf(t){let a=t[ou]();a[s5].firstUnsplittable===t&&(a[s5].noLayoutFailure=!1)}function cd(t){if(t[s5]||(t[s5]=Object.create(null),"auto"===t.targetType))return!1;let a=t[ou](),r=null;if(t.target){if(!(r=a[oU](t.target,t[oh]())))return!1;r=r[0]}let{currentPageArea:i,currentContentArea:n}=a[s5];if("pageArea"===t.targetType)return(r instanceof hS||(r=null),t.startNew)?(t[s5].target=r||i,!0):!!r&&r!==i&&(t[s5].target=r,!0);r instanceof cL||(r=null);let s=r&&r[oh](),o,l=s;if(t.startNew){if(r){let t=s.contentArea.children,a=t.indexOf(n),i=t.indexOf(r);-1!==a&&a<i&&(l=null),o=i-1}else o=i.contentArea.children.indexOf(n)}else{if(!r||r===n)return!1;o=s.contentArea.children.indexOf(r)-1,l=s===i?null:s}return t[s5].target=l,t[s5].index=o,!0}function cg(t,a,r){let i=t[ou](),n=i[s5].noLayoutFailure,s=a[oc];a[oc]=()=>t,i[s5].noLayoutFailure=!0;let o=a[oW](r);t[sV](o.html,o.bbox),i[s5].noLayoutFailure=n,a[oc]=s}class cp extends lE{constructor(t){super(l7,"appearanceFilter"),this.id=t.id||"",this.type=o5(t.type,["optional","required"]),this.use=t.use||"",this.usehref=t.usehref||""}}class cm extends lF{constructor(t){super(l7,"arc",!0),this.circular=o0({data:t.circular,defaultValue:0,validate:t=>1===t}),this.hand=o5(t.hand,["even","left","right"]),this.id=t.id||"",this.startAngle=o2({data:t.startAngle,defaultValue:0,validate:t=>!0}),this.sweepAngle=o2({data:t.sweepAngle,defaultValue:360,validate:t=>!0}),this.use=t.use||"",this.usehref=t.usehref||"",this.edge=null,this.fill=null}[oW](){let t;let a=this.edge||new cK({}),r=a[oX](),i=Object.create(null);"visible"===this.fill?.presence?Object.assign(i,this.fill[oX]()):i.fill="transparent",i.strokeWidth=lU("visible"===a.presence?a.thickness:0),i.stroke=r.color;let n={xmlns:l8,style:{width:"100%",height:"100%",overflow:"visible"}};if(360===this.sweepAngle)t={name:"ellipse",attributes:{xmlns:l8,cx:"50%",cy:"50%",rx:"50%",ry:"50%",style:i}};else{let a=this.startAngle*Math.PI/180,r=this.sweepAngle*Math.PI/180,s=this.sweepAngle>180?1:0,[o,l,c,h]=[50*(1+Math.cos(a)),50*(1-Math.sin(a)),50*(1+Math.cos(a+r)),50*(1-Math.sin(a+r))];t={name:"path",attributes:{xmlns:l8,d:`M ${o} ${l} A 50 50 0 ${s} 0 ${c} ${h}`,vectorEffect:"non-scaling-stroke",style:i}},Object.assign(n,{viewBox:"0 0 100 100",preserveAspectRatio:"none"})}let s={name:"svg",children:[t],attributes:n};return cr(this[oh]()[oh]())?o8.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[s]}):(s.attributes.style.position="absolute",o8.success(s))}}class cb extends lF{constructor(t){super(l7,"area",!0),this.colSpan=o0({data:t.colSpan,defaultValue:1,validate:t=>t>=1||-1===t}),this.id=t.id||"",this.name=t.name||"",this.relevant=o7(t.relevant),this.use=t.use||"",this.usehref=t.usehref||"",this.x=o3(t.x,"0pt"),this.y=o3(t.y,"0pt"),this.desc=null,this.extras=null,this.area=new lM,this.draw=new lM,this.exObject=new lM,this.exclGroup=new lM,this.field=new lM,this.subform=new lM,this.subformSet=new lM}*[oo](){yield*cn(this)}[oC](){return!0}[oy](){return!0}[sV](t,a){let[r,i,n,s]=a;this[s5].width=Math.max(this[s5].width,r+n),this[s5].height=Math.max(this[s5].height,i+s),this[s5].children.push(t)}[s4](){return this[s5].availableSpace}[oW](t){let a=lV(this,"position"),r={style:a,id:this[oK],class:["xfaArea"]};lJ(this)&&r.class.push("xfaPrintOnly"),this.name&&(r.xfaName=this.name);let i=[];this[s5]={children:i,width:0,height:0,availableSpace:t};let n=this[sK]({filter:new Set(["area","draw","field","exclGroup","subform","subformSet"]),include:!0});if(!n.success)return n.isBreak()?n:(delete this[s5],o8.FAILURE);a.width=lU(this[s5].width),a.height=lU(this[s5].height);let s=[this.x,this.y,this[s5].width,this[s5].height];return delete this[s5],o8.success({name:"div",attributes:r,children:i},s)}}class cy extends lF{constructor(t){super(l7,"assist",!0),this.id=t.id||"",this.role=t.role||"",this.use=t.use||"",this.usehref=t.usehref||"",this.speak=null,this.toolTip=null}[oW](){return this.toolTip?.[s0]||null}}class cw extends lF{constructor(t){super(l7,"barcode",!0),this.charEncoding=o9({data:t.charEncoding?t.charEncoding.toLowerCase():"",defaultValue:"",validate:t=>["utf-8","big-five","fontspecific","gbk","gb-18030","gb-2312","ksc-5601","none","shift-jis","ucs-2","utf-16"].includes(t)||t.match(/iso-8859-\d{2}/)}),this.checksum=o5(t.checksum,["none","1mod10","1mod10_1mod11","2mod10","auto"]),this.dataColumnCount=o0({data:t.dataColumnCount,defaultValue:-1,validate:t=>t>=0}),this.dataLength=o0({data:t.dataLength,defaultValue:-1,validate:t=>t>=0}),this.dataPrep=o5(t.dataPrep,["none","flateCompress"]),this.dataRowCount=o0({data:t.dataRowCount,defaultValue:-1,validate:t=>t>=0}),this.endChar=t.endChar||"",this.errorCorrectionLevel=o0({data:t.errorCorrectionLevel,defaultValue:-1,validate:t=>t>=0&&t<=8}),this.id=t.id||"",this.moduleHeight=o3(t.moduleHeight,"5mm"),this.moduleWidth=o3(t.moduleWidth,"0.25mm"),this.printCheckDigit=o0({data:t.printCheckDigit,defaultValue:0,validate:t=>1===t}),this.rowColumnRatio=o6(t.rowColumnRatio),this.startChar=t.startChar||"",this.textLocation=o5(t.textLocation,["below","above","aboveEmbedded","belowEmbedded","none"]),this.truncate=o0({data:t.truncate,defaultValue:0,validate:t=>1===t}),this.type=o5(t.type?t.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=o5(t.upsMode,["usCarrier","internationalCarrier","secureSymbol","standardSymbol"]),this.use=t.use||"",this.usehref=t.usehref||"",this.wideNarrowRatio=o6(t.wideNarrowRatio),this.encrypt=null,this.extras=null}}class cx extends lF{constructor(t){super(l7,"bind",!0),this.match=o5(t.match,["once","dataRef","global","none"]),this.ref=t.ref||"",this.picture=null}}class ck extends lF{constructor(t){super(l7,"bindItems"),this.connection=t.connection||"",this.labelRef=t.labelRef||"",this.ref=t.ref||"",this.valueRef=t.valueRef||""}}class cv extends lF{constructor(t){super(l7,"bookend"),this.id=t.id||"",this.leader=t.leader||"",this.trailer=t.trailer||"",this.use=t.use||"",this.usehref=t.usehref||""}}class cA extends l_{constructor(t){super(l7,"boolean"),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||""}[oW](t){return ch(1===this[s0]?"1":"0")}}class cC extends lF{constructor(t){super(l7,"border",!0),this.break=o5(t.break,["close","open"]),this.hand=o5(t.hand,["even","left","right"]),this.id=t.id||"",this.presence=o5(t.presence,["visible","hidden","inactive","invisible"]),this.relevant=o7(t.relevant),this.use=t.use||"",this.usehref=t.usehref||"",this.corner=new lM(4),this.edge=new lM(4),this.extras=null,this.fill=null,this.margin=null}[oi](){if(!this[s5]){let t=this.edge.children.slice();if(t.length<4){let a=t.at(-1)||new cK({});for(let r=t.length;r<4;r++)t.push(a)}let a=t.map(t=>t.thickness),r=[0,0,0,0];this.margin&&(r[0]=this.margin.topInset,r[1]=this.margin.rightInset,r[2]=this.margin.bottomInset,r[3]=this.margin.leftInset),this[s5]={widths:a,insets:r,edges:t}}return this[s5]}[oX](){let{edges:t}=this[oi](),a=t.map(t=>{let a=t[oX]();return a.color||="#000000",a}),r=Object.create(null);if(this.margin&&Object.assign(r,this.margin[oX]()),"visible"===this.fill?.presence&&Object.assign(r,this.fill[oX]()),this.corner.children.some(t=>0!==t.radius)){let t=this.corner.children.map(t=>t[oX]());if(2===t.length||3===t.length){let a=t.at(-1);for(let r=t.length;r<4;r++)t.push(a)}r.borderRadius=t.map(t=>t.radius).join(" ")}switch(this.presence){case"invisible":case"hidden":r.borderStyle="";break;case"inactive":r.borderStyle="none";break;default:r.borderStyle=a.map(t=>t.style).join(" ")}return r.borderWidth=a.map(t=>t.width).join(" "),r.borderColor=a.map(t=>t.color).join(" "),r}}class cS extends lF{constructor(t){super(l7,"break",!0),this.after=o5(t.after,["auto","contentArea","pageArea","pageEven","pageOdd"]),this.afterTarget=t.afterTarget||"",this.before=o5(t.before,["auto","contentArea","pageArea","pageEven","pageOdd"]),this.beforeTarget=t.beforeTarget||"",this.bookendLeader=t.bookendLeader||"",this.bookendTrailer=t.bookendTrailer||"",this.id=t.id||"",this.overflowLeader=t.overflowLeader||"",this.overflowTarget=t.overflowTarget||"",this.overflowTrailer=t.overflowTrailer||"",this.startNew=o0({data:t.startNew,defaultValue:0,validate:t=>1===t}),this.use=t.use||"",this.usehref=t.usehref||"",this.extras=null}}class cI extends lF{constructor(t){super(l7,"breakAfter",!0),this.id=t.id||"",this.leader=t.leader||"",this.startNew=o0({data:t.startNew,defaultValue:0,validate:t=>1===t}),this.target=t.target||"",this.targetType=o5(t.targetType,["auto","contentArea","pageArea"]),this.trailer=t.trailer||"",this.use=t.use||"",this.usehref=t.usehref||"",this.script=null}}class cT extends lF{constructor(t){super(l7,"breakBefore",!0),this.id=t.id||"",this.leader=t.leader||"",this.startNew=o0({data:t.startNew,defaultValue:0,validate:t=>1===t}),this.target=t.target||"",this.targetType=o5(t.targetType,["auto","contentArea","pageArea"]),this.trailer=t.trailer||"",this.use=t.use||"",this.usehref=t.usehref||"",this.script=null}[oW](t){return this[s5]={},o8.FAILURE}}class cB extends lF{constructor(t){super(l7,"button",!0),this.highlight=o5(t.highlight,["inverted","none","outline","push"]),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||"",this.extras=null}[oW](t){let a=this[oh]()[oh](),r={name:"button",attributes:{id:this[oK],class:["xfaButton"],style:{}},children:[]};for(let t of a.event.children){if("click"!==t.activity||!t.script)continue;let a=eW(t.script[s0]);if(!a)continue;let i=l0(a.url);i&&r.children.push({name:"a",attributes:{id:"link"+this[oK],href:i,newWindow:a.newWindow,class:["xfaLink"],style:{}},children:[]})}return o8.success(r)}}class cF extends lF{constructor(t){super(l7,"calculate",!0),this.id=t.id||"",this.override=o5(t.override,["disabled","error","ignore","warning"]),this.use=t.use||"",this.usehref=t.usehref||"",this.extras=null,this.message=null,this.script=null}}class cM extends lF{constructor(t){super(l7,"caption",!0),this.id=t.id||"",this.placement=o5(t.placement,["left","bottom","inline","right","top"]),this.presence=o5(t.presence,["visible","hidden","inactive","invisible"]),this.reserve=Math.ceil(o3(t.reserve)),this.use=t.use||"",this.usehref=t.usehref||"",this.extras=null,this.font=null,this.margin=null,this.para=null,this.value=null}[oH](t){ci(this,t)}[oi](t){if(!this[s5]){let{width:a,height:r}=t;switch(this.placement){case"left":case"right":case"inline":a=this.reserve<=0?a:this.reserve;break;case"top":case"bottom":r=this.reserve<=0?r:this.reserve}this[s5]=l$(this,{width:a,height:r})}return this[s5]}[oW](t){if(!this.value)return o8.EMPTY;this[oE]();let a=this.value[oW](t).html;if(!a)return this[oD](),o8.EMPTY;let r=this.reserve;if(this.reserve<=0){let{w:a,h:r}=this[oi](t);switch(this.placement){case"left":case"right":case"inline":this.reserve=a;break;case"top":case"bottom":this.reserve=r}}let i=[];"string"==typeof a?i.push({name:"#text",value:a}):i.push(a);let n=lV(this,"font","margin","visibility");switch(this.placement){case"left":case"right":this.reserve>0&&(n.width=lU(this.reserve));break;case"top":case"bottom":this.reserve>0&&(n.height=lU(this.reserve))}return lQ(this,null,a),this[oD](),this.reserve=r,o8.success({name:"div",attributes:{style:n,class:["xfaCaption"]},children:i})}}class cR extends lE{constructor(t){super(l7,"certificate"),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||""}}class cN extends lF{constructor(t){super(l7,"certificates",!0),this.credentialServerPolicy=o5(t.credentialServerPolicy,["optional","required"]),this.id=t.id||"",this.url=t.url||"",this.urlPolicy=t.urlPolicy||"",this.use=t.use||"",this.usehref=t.usehref||"",this.encryption=null,this.issuers=null,this.keyUsage=null,this.oids=null,this.signing=null,this.subjectDNs=null}}class cO extends lF{constructor(t){super(l7,"checkButton",!0),this.id=t.id||"",this.mark=o5(t.mark,["default","check","circle","cross","diamond","square","star"]),this.shape=o5(t.shape,["square","round"]),this.size=o3(t.size,"10pt"),this.use=t.use||"",this.usehref=t.usehref||"",this.border=null,this.extras=null,this.margin=null}[oW](t){let a,r,i,n;let s=lV(this,"margin"),o=lU(this.size);s.width=s.height=o;let l=this[oh]()[oh](),c=l.items.children.length&&l.items.children[0][oW]().html||[],h={on:(void 0!==c[0]?c[0]:"on").toString(),off:(void 0!==c[1]?c[1]:"off").toString()},u=(l.value?.[oz]()||"off")===h.on||void 0,f=l[oc](),d=l[oK];f instanceof c3?(i=f[oK],a="radio",r="xfaRadio",n=f[s2]?.[oK]||f[oK]):(a="checkbox",r="xfaCheckbox",n=l[s2]?.[oK]||l[oK]);let g={name:"input",attributes:{class:[r],style:s,fieldId:d,dataId:n,type:a,checked:u,xfaOn:h.on,xfaOff:h.off,"aria-label":cc(l),"aria-required":!1}};return i&&(g.attributes.name=i),cs(l)&&(g.attributes["aria-required"]=!0,g.attributes.required=!0),o8.success({name:"label",attributes:{class:["xfaLabel"]},children:[g]})}}class cD extends lF{constructor(t){super(l7,"choiceList",!0),this.commitOn=o5(t.commitOn,["select","exit"]),this.id=t.id||"",this.open=o5(t.open,["userControl","always","multiSelect","onEntry"]),this.textEntry=o0({data:t.textEntry,defaultValue:0,validate:t=>1===t}),this.use=t.use||"",this.usehref=t.usehref||"",this.border=null,this.extras=null,this.margin=null}[oW](t){let a=lV(this,"border","margin"),r=this[oh]()[oh](),i={fontSize:`calc(${r.font?.size||10}px * var(--total-scale-factor))`},n=[];if(r.items.children.length>0){let t=r.items,a=0,s=0;2===t.children.length&&(s=1-(a=t.children[0].save));let o=t.children[a][oW]().html,l=t.children[s][oW]().html,c=!1,h=r.value?.[oz]()||"";for(let t=0,a=o.length;t<a;t++){let a={name:"option",attributes:{value:l[t]||o[t],style:i},value:o[t]};l[t]===h&&(a.attributes.selected=c=!0),n.push(a)}c||n.splice(0,0,{name:"option",attributes:{hidden:!0,selected:!0},value:" "})}let s={class:["xfaSelect"],fieldId:r[oK],dataId:r[s2]?.[oK]||r[oK],style:a,"aria-label":cc(r),"aria-required":!1};return cs(r)&&(s["aria-required"]=!0,s.required=!0),"multiSelect"===this.open&&(s.multiple=!0),o8.success({name:"label",attributes:{class:["xfaLabel"]},children:[{name:"select",children:n,attributes:s}]})}}class cE extends lF{constructor(t){super(l7,"color",!0),this.cSpace=o5(t.cSpace,["SRGB"]),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||"",this.value=t.value?function(t,a=[0,0,0]){let[r,i,n]=a;if(!t)return{r,g:i,b:n};let s=t.split(",",3).map(t=>K(parseInt(t.trim(),10),0,255)).map(t=>isNaN(t)?0:t);return s.length<3||([r,i,n]=s),{r,g:i,b:n}}(t.value):"",this.extras=null}[od](){return!1}[oX](){return this.value?j.makeHexColor(this.value.r,this.value.g,this.value.b):null}}class cP extends lF{constructor(t){super(l7,"comb"),this.id=t.id||"",this.numberOfCells=o0({data:t.numberOfCells,defaultValue:0,validate:t=>t>=0}),this.use=t.use||"",this.usehref=t.usehref||""}}class c_ extends lF{constructor(t){super(l7,"connect",!0),this.connection=t.connection||"",this.id=t.id||"",this.ref=t.ref||"",this.usage=o5(t.usage,["exportAndImport","exportOnly","importOnly"]),this.use=t.use||"",this.usehref=t.usehref||"",this.picture=null}}class cL extends lF{constructor(t){super(l7,"contentArea",!0),this.h=o3(t.h),this.id=t.id||"",this.name=t.name||"",this.relevant=o7(t.relevant),this.use=t.use||"",this.usehref=t.usehref||"",this.w=o3(t.w),this.x=o3(t.x,"0pt"),this.y=o3(t.y,"0pt"),this.desc=null,this.extras=null}[oW](t){let a={left:lU(this.x),top:lU(this.y),width:lU(this.w),height:lU(this.h)},r=["xfaContentarea"];return lJ(this)&&r.push("xfaPrintOnly"),o8.success({name:"div",children:[],attributes:{style:a,class:r,id:this[oK]}})}}class cU extends lF{constructor(t){super(l7,"corner",!0),this.id=t.id||"",this.inverted=o0({data:t.inverted,defaultValue:0,validate:t=>1===t}),this.join=o5(t.join,["square","round"]),this.presence=o5(t.presence,["visible","hidden","inactive","invisible"]),this.radius=o3(t.radius),this.stroke=o5(t.stroke,["solid","dashDot","dashDotDot","dashed","dotted","embossed","etched","lowered","raised"]),this.thickness=o3(t.thickness,"0.5pt"),this.use=t.use||"",this.usehref=t.usehref||"",this.color=null,this.extras=null}[oX](){let t=lV(this,"visibility");return t.radius=lU("square"===this.join?0:this.radius),t}}class cj extends lO{constructor(t){super(l7,"date"),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||""}[s3](){let t=this[s0].trim();this[s0]=t?new Date(t):null}[oW](t){return ch(this[s0]?this[s0].toString():"")}}class cq extends lO{constructor(t){super(l7,"dateTime"),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||""}[s3](){let t=this[s0].trim();this[s0]=t?new Date(t):null}[oW](t){return ch(this[s0]?this[s0].toString():"")}}class cH extends lF{constructor(t){super(l7,"dateTimeEdit",!0),this.hScrollPolicy=o5(t.hScrollPolicy,["auto","off","on"]),this.id=t.id||"",this.picker=o5(t.picker,["host","none"]),this.use=t.use||"",this.usehref=t.usehref||"",this.border=null,this.comb=null,this.extras=null,this.margin=null}[oW](t){let a=lV(this,"border","font","margin"),r=this[oh]()[oh](),i={name:"input",attributes:{type:"text",fieldId:r[oK],dataId:r[s2]?.[oK]||r[oK],class:["xfaTextfield"],style:a,"aria-label":cc(r),"aria-required":!1}};return cs(r)&&(i.attributes["aria-required"]=!0,i.attributes.required=!0),o8.success({name:"label",attributes:{class:["xfaLabel"]},children:[i]})}}class c$ extends lO{constructor(t){super(l7,"decimal"),this.fracDigits=o0({data:t.fracDigits,defaultValue:2,validate:t=>!0}),this.id=t.id||"",this.leadDigits=o0({data:t.leadDigits,defaultValue:-1,validate:t=>!0}),this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||""}[s3](){let t=parseFloat(this[s0].trim());this[s0]=isNaN(t)?null:t}[oW](t){return ch(null!==this[s0]?this[s0].toString():"")}}class cz extends lF{constructor(t){super(l7,"defaultUi",!0),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||"",this.extras=null}}class cG extends lF{constructor(t){super(l7,"desc",!0),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||"",this.boolean=new lM,this.date=new lM,this.dateTime=new lM,this.decimal=new lM,this.exData=new lM,this.float=new lM,this.image=new lM,this.integer=new lM,this.text=new lM,this.time=new lM}}class cW extends lD{constructor(t){super(l7,"digestMethod",["","SHA1","SHA256","SHA512","RIPEMD160"]),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||""}}class cV extends lF{constructor(t){super(l7,"digestMethods",!0),this.id=t.id||"",this.type=o5(t.type,["optional","required"]),this.use=t.use||"",this.usehref=t.usehref||"",this.digestMethod=new lM}}class cX extends lF{constructor(t){super(l7,"draw",!0),this.anchorType=o5(t.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]),this.colSpan=o0({data:t.colSpan,defaultValue:1,validate:t=>t>=1||-1===t}),this.h=t.h?o3(t.h):"",this.hAlign=o5(t.hAlign,["left","center","justify","justifyAll","radix","right"]),this.id=t.id||"",this.locale=t.locale||"",this.maxH=o3(t.maxH,"0pt"),this.maxW=o3(t.maxW,"0pt"),this.minH=o3(t.minH,"0pt"),this.minW=o3(t.minW,"0pt"),this.name=t.name||"",this.presence=o5(t.presence,["visible","hidden","inactive","invisible"]),this.relevant=o7(t.relevant),this.rotate=o0({data:t.rotate,defaultValue:0,validate:t=>t%90==0}),this.use=t.use||"",this.usehref=t.usehref||"",this.w=t.w?o3(t.w):"",this.x=o3(t.x,"0pt"),this.y=o3(t.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 lM}[oH](t){ci(this,t)}[oW](t){if(co(this),"hidden"===this.presence||"inactive"===this.presence)return o8.EMPTY;lG(this),this[oE]();let a=this.w,r=this.h,{w:i,h:n,isBroken:s}=l$(this,t);if(i&&""===this.w){if(s&&this[oc]()[oA]())return this[oD](),o8.FAILURE;this.w=i}if(n&&""===this.h&&(this.h=n),cu(this),!l6(this,t))return this.w=a,this.h=r,this[oD](),o8.FAILURE;cf(this);let o=lV(this,"font","hAlign","dimensions","position","presence","rotate","anchorType","border","margin");lq(this,o),o.margin&&(o.padding=o.margin,delete o.margin);let l=["xfaDraw"];this.font&&l.push("xfaFont"),lJ(this)&&l.push("xfaPrintOnly");let c={style:o,id:this[oK],class:l};this.name&&(c.xfaName=this.name);let h={name:"div",attributes:c,children:[]};cl(this,c);let u=lz(this,h,t),f=this.value?this.value[oW](t).html:null;return null===f||(h.children.push(f),lQ(this,o,f)),this.w=a,this.h=r,this[oD](),o8.success(lX(this,h),u)}}class cK extends lF{constructor(t){super(l7,"edge",!0),this.cap=o5(t.cap,["square","butt","round"]),this.id=t.id||"",this.presence=o5(t.presence,["visible","hidden","inactive","invisible"]),this.stroke=o5(t.stroke,["solid","dashDot","dashDotDot","dashed","dotted","embossed","etched","lowered","raised"]),this.thickness=o3(t.thickness,"0.5pt"),this.use=t.use||"",this.usehref=t.usehref||"",this.color=null,this.extras=null}[oX](){let t=lV(this,"visibility");if(Object.assign(t,{linecap:this.cap,width:lU(this.thickness),color:this.color?this.color[oX]():"#000000",style:""}),"visible"!==this.presence)t.style="none";else switch(this.stroke){case"solid":t.style="solid";break;case"dashDot":case"dashDotDot":case"dashed":t.style="dashed";break;case"dotted":t.style="dotted";break;case"embossed":t.style="ridge";break;case"etched":t.style="groove";break;case"lowered":t.style="inset";break;case"raised":t.style="outset"}return t}}class cY extends lD{constructor(t){super(l7,"encoding",["adbe.x509.rsa_sha1","adbe.pkcs7.detached","adbe.pkcs7.sha1"]),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||""}}class cJ extends lF{constructor(t){super(l7,"encodings",!0),this.id=t.id||"",this.type=o5(t.type,["optional","required"]),this.use=t.use||"",this.usehref=t.usehref||"",this.encoding=new lM}}class cZ extends lF{constructor(t){super(l7,"encrypt",!0),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||"",this.certificate=null}}class cQ extends lF{constructor(t){super(l7,"encryptData",!0),this.id=t.id||"",this.operation=o5(t.operation,["encrypt","decrypt"]),this.target=t.target||"",this.use=t.use||"",this.usehref=t.usehref||"",this.filter=null,this.manifest=null}}class c1 extends lF{constructor(t){super(l7,"encryption",!0),this.id=t.id||"",this.type=o5(t.type,["optional","required"]),this.use=t.use||"",this.usehref=t.usehref||"",this.certificate=new lM}}class c0 extends lD{constructor(t){super(l7,"encryptionMethod",["","AES256-CBC","TRIPLEDES-CBC","AES128-CBC","AES192-CBC"]),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||""}}class c2 extends lF{constructor(t){super(l7,"encryptionMethods",!0),this.id=t.id||"",this.type=o5(t.type,["optional","required"]),this.use=t.use||"",this.usehref=t.usehref||"",this.encryptionMethod=new lM}}class Event extends lF{constructor(t){super(l7,"event",!0),this.activity=o5(t.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=t.id||"",this.listen=o5(t.listen,["refOnly","refAndDescendents"]),this.name=t.name||"",this.ref=t.ref||"",this.use=t.use||"",this.usehref=t.usehref||"",this.extras=null,this.encryptData=null,this.execute=null,this.script=null,this.signData=null,this.submit=null}}class c9 extends lO{constructor(t){super(l7,"exData"),this.contentType=t.contentType||"",this.href=t.href||"",this.id=t.id||"",this.maxLength=o0({data:t.maxLength,defaultValue:-1,validate:t=>t>=-1}),this.name=t.name||"",this.rid=t.rid||"",this.transferEncoding=o5(t.transferEncoding,["none","base64","package"]),this.use=t.use||"",this.usehref=t.usehref||""}[ob](){return"text/html"===this.contentType}[oM](t){return("text/html"===this.contentType&&t[oT]===oJ.xhtml.id||"text/xml"===this.contentType)&&(this[s0]=t,!0)}[oW](t){return"text/html"===this.contentType&&this[s0]?this[s0][oW](t):o8.EMPTY}}class c5 extends lF{constructor(t){super(l7,"exObject",!0),this.archive=t.archive||"",this.classId=t.classId||"",this.codeBase=t.codeBase||"",this.codeType=t.codeType||"",this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||"",this.extras=null,this.boolean=new lM,this.date=new lM,this.dateTime=new lM,this.decimal=new lM,this.exData=new lM,this.exObject=new lM,this.float=new lM,this.image=new lM,this.integer=new lM,this.text=new lM,this.time=new lM}}class c3 extends lF{constructor(t){super(l7,"exclGroup",!0),this.access=o5(t.access,["open","nonInteractive","protected","readOnly"]),this.accessKey=t.accessKey||"",this.anchorType=o5(t.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]),this.colSpan=o0({data:t.colSpan,defaultValue:1,validate:t=>t>=1||-1===t}),this.h=t.h?o3(t.h):"",this.hAlign=o5(t.hAlign,["left","center","justify","justifyAll","radix","right"]),this.id=t.id||"",this.layout=o5(t.layout,["position","lr-tb","rl-row","rl-tb","row","table","tb"]),this.maxH=o3(t.maxH,"0pt"),this.maxW=o3(t.maxW,"0pt"),this.minH=o3(t.minH,"0pt"),this.minW=o3(t.minW,"0pt"),this.name=t.name||"",this.presence=o5(t.presence,["visible","hidden","inactive","invisible"]),this.relevant=o7(t.relevant),this.use=t.use||"",this.usehref=t.usehref||"",this.w=t.w?o3(t.w):"",this.x=o3(t.x,"0pt"),this.y=o3(t.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 lM,this.event=new lM,this.field=new lM,this.setProperty=new lM}[oy](){return!0}[od](){return!0}[oH](t){for(let a of this.field.children){if(!a.value){let t=new h3({});a[sX](t),a.value=t}a.value[oH](t)}}[oA](){return this.layout.endsWith("-tb")&&0===this[s5].attempt&&this[s5].numberInLine>0||this[oh]()[oA]()}[ov](){let t=this[oc]();return!!t[ov]()&&(void 0!==this[s5]._isSplittable?this[s5]._isSplittable:"position"===this.layout||this.layout.includes("row")?(this[s5]._isSplittable=!1,!1):(!t.layout?.endsWith("-tb")||0===t[s5].numberInLine)&&(this[s5]._isSplittable=!0,!0))}[s6](){return l9(this)}[sV](t,a){l5(this,t,a)}[s4](){return l3(this)}[oW](t){if(co(this),"hidden"===this.presence||"inactive"===this.presence||0===this.h||0===this.w)return o8.EMPTY;lG(this);let a=[],r={id:this[oK],class:[]};lY(this,r.class),this[s5]||=Object.create(null),Object.assign(this[s5],{children:a,attributes:r,attempt:0,line:null,numberInLine:0,availableSpace:{width:Math.min(this.w||1/0,t.width),height:Math.min(this.h||1/0,t.height)},width:0,height:0,prevHeight:0,currentWidth:0});let i=this[ov]();if(i||cu(this),!l6(this,t))return o8.FAILURE;let n=new Set(["field"]);if(this.layout.includes("row")){let t=this[oc]().columnWidths;Array.isArray(t)&&t.length>0&&(this[s5].columnWidths=t,this[s5].currentColumn=0)}let s=lV(this,"anchorType","dimensions","position","presence","border","margin","hAlign"),o=["xfaExclgroup"],l=lW(this);l&&o.push(l),lJ(this)&&o.push("xfaPrintOnly"),r.style=s,r.class=o,this.name&&(r.xfaName=this.name),this[oE]();let c="lr-tb"===this.layout||"rl-tb"===this.layout,h=c?2:1;for(;this[s5].attempt<h;this[s5].attempt++){c&&1===this[s5].attempt&&(this[s5].numberInLine=0);let t=this[sK]({filter:n,include:!0});if(t.success)break;if(t.isBreak())return this[oD](),t;if(c&&0===this[s5].attempt&&0===this[s5].numberInLine&&!this[ou]()[s5].noLayoutFailure){this[s5].attempt=h;break}}if(this[oD](),i||cf(this),this[s5].attempt===h)return i||delete this[s5],o8.FAILURE;let u=0,f=0;this.margin&&(u=this.margin.leftInset+this.margin.rightInset,f=this.margin.topInset+this.margin.bottomInset);let d=Math.max(this[s5].width+u,this.w||0),g=Math.max(this[s5].height+f,this.h||0),p=[this.x,this.y,d,g];return""===this.w&&(s.width=lU(d)),""===this.h&&(s.height=lU(g)),cl(this,r),delete this[s5],o8.success(lX(this,{name:"div",attributes:r,children:a}),p)}}class c6 extends lF{constructor(t){super(l7,"execute"),this.connection=t.connection||"",this.executeType=o5(t.executeType,["import","remerge"]),this.id=t.id||"",this.runAt=o5(t.runAt,["client","both","server"]),this.use=t.use||"",this.usehref=t.usehref||""}}class c7 extends lF{constructor(t){super(l7,"extras",!0),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||"",this.boolean=new lM,this.date=new lM,this.dateTime=new lM,this.decimal=new lM,this.exData=new lM,this.extras=new lM,this.float=new lM,this.image=new lM,this.integer=new lM,this.text=new lM,this.time=new lM}}class c8 extends lF{constructor(t){super(l7,"field",!0),this.access=o5(t.access,["open","nonInteractive","protected","readOnly"]),this.accessKey=t.accessKey||"",this.anchorType=o5(t.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]),this.colSpan=o0({data:t.colSpan,defaultValue:1,validate:t=>t>=1||-1===t}),this.h=t.h?o3(t.h):"",this.hAlign=o5(t.hAlign,["left","center","justify","justifyAll","radix","right"]),this.id=t.id||"",this.locale=t.locale||"",this.maxH=o3(t.maxH,"0pt"),this.maxW=o3(t.maxW,"0pt"),this.minH=o3(t.minH,"0pt"),this.minW=o3(t.minW,"0pt"),this.name=t.name||"",this.presence=o5(t.presence,["visible","hidden","inactive","invisible"]),this.relevant=o7(t.relevant),this.rotate=o0({data:t.rotate,defaultValue:0,validate:t=>t%90==0}),this.use=t.use||"",this.usehref=t.usehref||"",this.w=t.w?o3(t.w):"",this.x=o3(t.x,"0pt"),this.y=o3(t.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 lM(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 lM,this.connect=new lM,this.event=new lM,this.setProperty=new lM}[oy](){return!0}[oH](t){ci(this,t)}[oW](t){if(co(this),!this.ui){let t;switch(this.ui=new h9({}),this.ui[of]=this[of],this[sX](this.ui),this.items.children.length){case 0:t=new hJ({}),this.ui.textEdit=t;break;case 1:t=new cO({}),this.ui.checkButton=t;break;case 2:t=new cD({}),this.ui.choiceList=t}this.ui[sX](t)}if(!this.ui||"hidden"===this.presence||"inactive"===this.presence||0===this.h||0===this.w)return o8.EMPTY;this.caption&&delete this.caption[s5],this[oE]();let a=this.caption?this.caption[oW](t).html:null,r=this.w,i=this.h,n=0,s=0;this.margin&&(n=this.margin.leftInset+this.margin.rightInset,s=this.margin.topInset+this.margin.bottomInset);let o=null;if(""===this.w||""===this.h){let a=null,r=null,i=0,l=0;if(this.ui.checkButton)i=l=this.ui.checkButton.size;else{let{w:a,h:r}=l$(this,t);null!==a?(i=a,l=r):l=function t(t,a=!1){let r=null;if(t){let a=o1(t.typeface),i=t[of].fontFinder.find(a);r=le(t,i)}if(!r)return{lineHeight:12,lineGap:2,lineNoGap:10};let i=t.size||10,n=r.lineHeight?Math.max(a?0:1.2,r.lineHeight):1.2,s=void 0===r.lineGap?.2:r.lineGap;return{lineHeight:n*i,lineGap:s*i,lineNoGap:Math.max(1,n-s)*i}}(this.font,!0).lineNoGap}if(i+=(o=ca(this.ui[oi]())).w,l+=o.h,this.caption){let{w:n,h:s,isBroken:o}=this.caption[oi](t);if(o&&this[oc]()[oA]())return this[oD](),o8.FAILURE;switch(a=n,r=s,this.caption.placement){case"left":case"right":case"inline":a+=i;break;case"top":case"bottom":r+=l}}else a=i,r=l;a&&""===this.w&&(a+=n,this.w=Math.min(this.maxW<=0?1/0:this.maxW,this.minW+1<a?a:this.minW)),r&&""===this.h&&(r+=s,this.h=Math.min(this.maxH<=0?1/0:this.maxH,this.minH+1<r?r:this.minH))}if(this[oD](),lG(this),cu(this),!l6(this,t))return this.w=r,this.h=i,this[oD](),o8.FAILURE;cf(this);let l=lV(this,"font","dimensions","position","rotate","anchorType","presence","margin","hAlign");lq(this,l);let c=["xfaField"];this.font&&c.push("xfaFont"),lJ(this)&&c.push("xfaPrintOnly");let h={style:l,id:this[oK],class:c};l.margin&&(l.padding=l.margin,delete l.margin),lY(this,c),this.name&&(h.xfaName=this.name);let u=[],f={name:"div",attributes:h,children:u};cl(this,h);let d=this.border?this.border[oX]():null,g=lz(this,f,t),p=this.ui[oW]().html;if(!p)return Object.assign(l,d),o8.success(lX(this,f),g);this[o$]&&(p.children?.[0]?p.children[0].attributes.tabindex=this[o$]:p.attributes.tabindex=this[o$]),p.attributes.style||=Object.create(null);let m=null;if(this.ui.button?(1===p.children.length&&([m]=p.children.splice(0,1)),Object.assign(p.attributes.style,d)):Object.assign(l,d),u.push(p),this.value){if(this.ui.imageEdit)p.children.push(this.value[oW]().html);else if(!this.ui.button){let t="";if(this.value.exData)t=this.value.exData[oz]();else if(this.value.text)t=this.value.text[oi]();else{let a=this.value[oW]().html;null!==a&&(t=a.children[0].value)}this.ui.textEdit&&this.value.text?.maxChars&&(p.children[0].attributes.maxLength=this.value.text.maxChars),t&&(this.ui.numericEdit&&(t=isNaN(t=parseFloat(t))?"":t.toString()),"textarea"===p.children[0].name?p.children[0].attributes.textContent=t:p.children[0].attributes.value=t)}}if(!this.ui.imageEdit&&p.children?.[0]&&this.h){o=o||ca(this.ui[oi]());let a=0;if(this.caption&&["top","bottom"].includes(this.caption.placement)){(a=this.caption.reserve)<=0&&(a=this.caption[oi](t).h);let r=this.h-a-s-o.h;p.children[0].attributes.style.height=lU(r)}else p.children[0].attributes.style.height="100%"}if(m&&p.children.push(m),!a)return p.attributes.class&&p.attributes.class.push("xfaLeft"),this.w=r,this.h=i,o8.success(lX(this,f),g);if(this.ui.button)return l.padding&&delete l.padding,"div"===a.name&&(a.name="span"),p.children.push(a),o8.success(f,g);switch(this.ui.checkButton&&(a.attributes.class[0]="xfaCaptionForCheckButton"),p.attributes.class||=[],p.children.splice(0,0,a),this.caption.placement){case"left":case"inline":p.attributes.class.push("xfaLeft");break;case"right":p.attributes.class.push("xfaRight");break;case"top":p.attributes.class.push("xfaTop");break;case"bottom":p.attributes.class.push("xfaBottom")}return this.w=r,this.h=i,o8.success(lX(this,f),g)}}class c4 extends lF{constructor(t){super(l7,"fill",!0),this.id=t.id||"",this.presence=o5(t.presence,["visible","hidden","inactive","invisible"]),this.use=t.use||"",this.usehref=t.usehref||"",this.color=null,this.extras=null,this.linear=null,this.pattern=null,this.radial=null,this.solid=null,this.stipple=null}[oX](){let t=this[oh](),a=t[oh]()[oh](),r=Object.create(null),i="color",n=i;for(let s of(t instanceof cC&&(i="background-color",n="background",a instanceof h9&&(r.backgroundColor="white")),(t instanceof hE||t instanceof cm)&&(i=n="fill",r.fill="white"),Object.getOwnPropertyNames(this))){if("extras"===s||"color"===s)continue;let t=this[s];if(!(t instanceof lF))continue;let a=t[oX](this.color);return a&&(r[a.startsWith("#")?i:n]=a),r}if(this.color?.value){let t=this.color[oX]();r[t.startsWith("#")?i:n]=t}return r}}class he extends lF{constructor(t){super(l7,"filter",!0),this.addRevocationInfo=o5(t.addRevocationInfo,["","required","optional","none"]),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||"",this.version=o0({data:this.version,defaultValue:5,validate:t=>t>=1&&t<=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 ht extends lO{constructor(t){super(l7,"float"),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||""}[s3](){let t=parseFloat(this[s0].trim());this[s0]=isNaN(t)?null:t}[oW](t){return ch(null!==this[s0]?this[s0].toString():"")}}class ha extends lF{constructor(t){super(l7,"font",!0),this.baselineShift=o3(t.baselineShift),this.fontHorizontalScale=o2({data:t.fontHorizontalScale,defaultValue:100,validate:t=>t>=0}),this.fontVerticalScale=o2({data:t.fontVerticalScale,defaultValue:100,validate:t=>t>=0}),this.id=t.id||"",this.kerningMode=o5(t.kerningMode,["none","pair"]),this.letterSpacing=o3(t.letterSpacing,"0"),this.lineThrough=o0({data:t.lineThrough,defaultValue:0,validate:t=>1===t||2===t}),this.lineThroughPeriod=o5(t.lineThroughPeriod,["all","word"]),this.overline=o0({data:t.overline,defaultValue:0,validate:t=>1===t||2===t}),this.overlinePeriod=o5(t.overlinePeriod,["all","word"]),this.posture=o5(t.posture,["normal","italic"]),this.size=o3(t.size,"10pt"),this.typeface=t.typeface||"Courier",this.underline=o0({data:t.underline,defaultValue:0,validate:t=>1===t||2===t}),this.underlinePeriod=o5(t.underlinePeriod,["all","word"]),this.use=t.use||"",this.usehref=t.usehref||"",this.weight=o5(t.weight,["normal","bold"]),this.extras=null,this.fill=null}[sY](t){super[sY](t),this[of].usedTypefaces.add(this.typeface)}[oX](){let t=lV(this,"fill"),a=t.color;return a&&("#000000"===a?delete t.color:a.startsWith("#")||(t.background=a,t.backgroundClip="text",t.color="transparent")),this.baselineShift&&(t.verticalAlign=lU(this.baselineShift)),t.fontKerning="none"===this.kerningMode?"none":"normal",t.letterSpacing=lU(this.letterSpacing),0!==this.lineThrough&&(t.textDecoration="line-through",2===this.lineThrough&&(t.textDecorationStyle="double")),0!==this.overline&&(t.textDecoration="overline",2===this.overline&&(t.textDecorationStyle="double")),t.fontStyle=this.posture,t.fontSize=lU(.99*this.size),l1(this,this,this[of].fontFinder,t),0!==this.underline&&(t.textDecoration="underline",2===this.underline&&(t.textDecorationStyle="double")),t.fontWeight=this.weight,t}}class hr extends lF{constructor(t){super(l7,"format",!0),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||"",this.extras=null,this.picture=null}}class hi extends lE{constructor(t){super(l7,"handler"),this.id=t.id||"",this.type=o5(t.type,["optional","required"]),this.use=t.use||"",this.usehref=t.usehref||""}}class hn extends lF{constructor(t){super(l7,"hyphenation"),this.excludeAllCaps=o0({data:t.excludeAllCaps,defaultValue:0,validate:t=>1===t}),this.excludeInitialCap=o0({data:t.excludeInitialCap,defaultValue:0,validate:t=>1===t}),this.hyphenate=o0({data:t.hyphenate,defaultValue:0,validate:t=>1===t}),this.id=t.id||"",this.pushCharacterCount=o0({data:t.pushCharacterCount,defaultValue:3,validate:t=>t>=0}),this.remainCharacterCount=o0({data:t.remainCharacterCount,defaultValue:3,validate:t=>t>=0}),this.use=t.use||"",this.usehref=t.usehref||"",this.wordCharacterCount=o0({data:t.wordCharacterCount,defaultValue:7,validate:t=>t>=0})}}class Image extends lE{constructor(t){super(l7,"image"),this.aspect=o5(t.aspect,["fit","actual","height","none","width"]),this.contentType=t.contentType||"",this.href=t.href||"",this.id=t.id||"",this.name=t.name||"",this.transferEncoding=o5(t.transferEncoding,["base64","none","package"]),this.use=t.use||"",this.usehref=t.usehref||""}[oW](){var t;let a;if(this.contentType&&!ce.has(this.contentType.toLowerCase()))return o8.EMPTY;let r=this[of].images?.get(this.href);if(!r&&(this.href||!this[s0])||(r||"base64"!==this.transferEncoding||(t=this[s0],r=Uint8Array.fromBase64?Uint8Array.fromBase64(t):E(atob(t))),!r))return o8.EMPTY;if(!this.contentType){for(let[t,a]of ct)if(r.length>t.length&&t.every((t,a)=>t===r[a])){this.contentType=a;break}if(!this.contentType)return o8.EMPTY}let i=new Blob([r],{type:this.contentType});switch(this.aspect){case"fit":case"actual":break;case"height":a={height:"100%",objectFit:"fill"};break;case"none":a={width:"100%",height:"100%",objectFit:"fill"};break;case"width":a={width:"100%",objectFit:"fill"}}let n=this[oh]();return o8.success({name:"img",attributes:{class:["xfaImage"],style:a,src:URL.createObjectURL(i),alt:n?cc(n[oh]()):null}})}}class hs extends lF{constructor(t){super(l7,"imageEdit",!0),this.data=o5(t.data,["link","embed"]),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||"",this.border=null,this.extras=null,this.margin=null}[oW](t){return"embed"===this.data?o8.success({name:"div",children:[],attributes:{}}):o8.EMPTY}}class ho extends lO{constructor(t){super(l7,"integer"),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||""}[s3](){let t=parseInt(this[s0].trim(),10);this[s0]=isNaN(t)?null:t}[oW](t){return ch(null!==this[s0]?this[s0].toString():"")}}class hl extends lF{constructor(t){super(l7,"issuers",!0),this.id=t.id||"",this.type=o5(t.type,["optional","required"]),this.use=t.use||"",this.usehref=t.usehref||"",this.certificate=new lM}}class hc extends lF{constructor(t){super(l7,"items",!0),this.id=t.id||"",this.name=t.name||"",this.presence=o5(t.presence,["visible","hidden","inactive","invisible"]),this.ref=t.ref||"",this.save=o0({data:t.save,defaultValue:0,validate:t=>1===t}),this.use=t.use||"",this.usehref=t.usehref||"",this.boolean=new lM,this.date=new lM,this.dateTime=new lM,this.decimal=new lM,this.exData=new lM,this.float=new lM,this.image=new lM,this.integer=new lM,this.text=new lM,this.time=new lM}[oW](){let t=[];for(let a of this[os]())t.push(a[oz]());return o8.success(t)}}class hh extends lF{constructor(t){super(l7,"keep",!0),this.id=t.id||"";let a=["none","contentArea","pageArea"];this.intact=o5(t.intact,a),this.next=o5(t.next,a),this.previous=o5(t.previous,a),this.use=t.use||"",this.usehref=t.usehref||"",this.extras=null}}class hu extends lF{constructor(t){super(l7,"keyUsage");let a=["","yes","no"];this.crlSign=o5(t.crlSign,a),this.dataEncipherment=o5(t.dataEncipherment,a),this.decipherOnly=o5(t.decipherOnly,a),this.digitalSignature=o5(t.digitalSignature,a),this.encipherOnly=o5(t.encipherOnly,a),this.id=t.id||"",this.keyAgreement=o5(t.keyAgreement,a),this.keyCertSign=o5(t.keyCertSign,a),this.keyEncipherment=o5(t.keyEncipherment,a),this.nonRepudiation=o5(t.nonRepudiation,a),this.type=o5(t.type,["optional","required"]),this.use=t.use||"",this.usehref=t.usehref||""}}class hf extends lF{constructor(t){super(l7,"line",!0),this.hand=o5(t.hand,["even","left","right"]),this.id=t.id||"",this.slope=o5(t.slope,["\\","/"]),this.use=t.use||"",this.usehref=t.usehref||"",this.edge=null}[oW](){let t=this[oh]()[oh](),a=this.edge||new cK({}),r=a[oX](),i=Object.create(null),n="visible"===a.presence?a.thickness:0;i.strokeWidth=lU(n),i.stroke=r.color;let s,o,l,c,h="100%",u="100%";t.w<=n?([s,o,l,c]=["50%",0,"50%","100%"],h=i.strokeWidth):t.h<=n?([s,o,l,c]=[0,"50%","100%","50%"],u=i.strokeWidth):"\\"===this.slope?[s,o,l,c]=[0,0,"100%","100%"]:[s,o,l,c]=[0,"100%","100%",0];let f={name:"svg",children:[{name:"line",attributes:{xmlns:l8,x1:s,y1:o,x2:l,y2:c,style:i}}],attributes:{xmlns:l8,width:h,height:u,style:{overflow:"visible"}}};return cr(t)?o8.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[f]}):(f.attributes.style.position="absolute",o8.success(f))}}class hd extends lF{constructor(t){super(l7,"linear",!0),this.id=t.id||"",this.type=o5(t.type,["toRight","toBottom","toLeft","toTop"]),this.use=t.use||"",this.usehref=t.usehref||"",this.color=null,this.extras=null}[oX](t){return t=t?t[oX]():"#FFFFFF",`linear-gradient(${this.type.replace(/([RBLT])/," $1").toLowerCase()}, ${t}, ${this.color?this.color[oX]():"#000000"})`}}class hg extends lO{constructor(t){super(l7,"lockDocument"),this.id=t.id||"",this.type=o5(t.type,["optional","required"]),this.use=t.use||"",this.usehref=t.usehref||""}[s3](){this[s0]=o5(this[s0],["auto","0","1"])}}class hp extends lF{constructor(t){super(l7,"manifest",!0),this.action=o5(t.action,["include","all","exclude"]),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||"",this.extras=null,this.ref=new lM}}class hm extends lF{constructor(t){super(l7,"margin",!0),this.bottomInset=o3(t.bottomInset,"0"),this.id=t.id||"",this.leftInset=o3(t.leftInset,"0"),this.rightInset=o3(t.rightInset,"0"),this.topInset=o3(t.topInset,"0"),this.use=t.use||"",this.usehref=t.usehref||"",this.extras=null}[oX](){return{margin:lU(this.topInset)+" "+lU(this.rightInset)+" "+lU(this.bottomInset)+" "+lU(this.leftInset)}}}class hb extends lF{constructor(t){super(l7,"mdp"),this.id=t.id||"",this.permissions=o0({data:t.permissions,defaultValue:2,validate:t=>1===t||3===t}),this.signatureType=o5(t.signatureType,["filler","author"]),this.use=t.use||"",this.usehref=t.usehref||""}}class hy extends lF{constructor(t){super(l7,"medium"),this.id=t.id||"",this.imagingBBox=function(t){if(!t)return{x:-1,y:-1,width:-1,height:-1};let a=t.split(",",4).map(t=>o3(t.trim(),"-1"));if(a.length<4||a[2]<0||a[3]<0)return{x:-1,y:-1,width:-1,height:-1};let[r,i,n,s]=a;return{x:r,y:i,width:n,height:s}}(t.imagingBBox),this.long=o3(t.long),this.orientation=o5(t.orientation,["portrait","landscape"]),this.short=o3(t.short),this.stock=t.stock||"",this.trayIn=o5(t.trayIn,["auto","delegate","pageFront"]),this.trayOut=o5(t.trayOut,["auto","delegate"]),this.use=t.use||"",this.usehref=t.usehref||""}}class hw extends lF{constructor(t){super(l7,"message",!0),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||"",this.text=new lM}}class hx extends lF{constructor(t){super(l7,"numericEdit",!0),this.hScrollPolicy=o5(t.hScrollPolicy,["auto","off","on"]),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||"",this.border=null,this.comb=null,this.extras=null,this.margin=null}[oW](t){let a=lV(this,"border","font","margin"),r=this[oh]()[oh](),i={name:"input",attributes:{type:"text",fieldId:r[oK],dataId:r[s2]?.[oK]||r[oK],class:["xfaTextfield"],style:a,"aria-label":cc(r),"aria-required":!1}};return cs(r)&&(i.attributes["aria-required"]=!0,i.attributes.required=!0),o8.success({name:"label",attributes:{class:["xfaLabel"]},children:[i]})}}class hk extends lF{constructor(t){super(l7,"occur",!0),this.id=t.id||"",this.initial=""!==t.initial?o0({data:t.initial,defaultValue:"",validate:t=>!0}):"",this.max=""!==t.max?o0({data:t.max,defaultValue:-1,validate:t=>!0}):"",this.min=""!==t.min?o0({data:t.min,defaultValue:1,validate:t=>!0}):"",this.use=t.use||"",this.usehref=t.usehref||"",this.extras=null}[sY](){let t=this[oh](),a=this.min;""===this.min&&(this.min=t instanceof hS||t instanceof hI?0:1),""===this.max&&(this.max=""===a?t instanceof hS||t instanceof hI?-1:1:this.min),-1!==this.max&&this.max<this.min&&(this.max=this.min),""===this.initial&&(this.initial=t instanceof hY?1:this.min)}}class hv extends lE{constructor(t){super(l7,"oid"),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||""}}class hA extends lF{constructor(t){super(l7,"oids",!0),this.id=t.id||"",this.type=o5(t.type,["optional","required"]),this.use=t.use||"",this.usehref=t.usehref||"",this.oid=new lM}}class hC extends lF{constructor(t){super(l7,"overflow"),this.id=t.id||"",this.leader=t.leader||"",this.target=t.target||"",this.trailer=t.trailer||"",this.use=t.use||"",this.usehref=t.usehref||""}[oi](){if(!this[s5]){let t=this[oh](),a=this[ou](),r=a[oU](this.target,t),i=a[oU](this.leader,t),n=a[oU](this.trailer,t);this[s5]={target:r?.[0]||null,leader:i?.[0]||null,trailer:n?.[0]||null,addLeader:!1,addTrailer:!1}}return this[s5]}}class hS extends lF{constructor(t){super(l7,"pageArea",!0),this.blankOrNotBlank=o5(t.blankOrNotBlank,["any","blank","notBlank"]),this.id=t.id||"",this.initialNumber=o0({data:t.initialNumber,defaultValue:1,validate:t=>!0}),this.name=t.name||"",this.numbered=o0({data:t.numbered,defaultValue:1,validate:t=>!0}),this.oddOrEven=o5(t.oddOrEven,["any","even","odd"]),this.pagePosition=o5(t.pagePosition,["any","first","last","only","rest"]),this.relevant=o7(t.relevant),this.use=t.use||"",this.usehref=t.usehref||"",this.desc=null,this.extras=null,this.medium=null,this.occur=null,this.area=new lM,this.contentArea=new lM,this.draw=new lM,this.exclGroup=new lM,this.field=new lM,this.subform=new lM}[oS](){return this[s5]?!this.occur||-1===this.occur.max||this[s5].numberOfUse<this.occur.max:(this[s5]={numberOfUse:0},!0)}[sJ](){delete this[s5]}[ol](){this[s5]||={numberOfUse:0};let t=this[oh]();return"orderedOccurrence"===t.relation&&this[oS]()?(this[s5].numberOfUse+=1,this):t[ol]()}[s4](){return this[s5].space||{width:0,height:0}}[oW](){this[s5]||={numberOfUse:1};let t=[];this[s5].children=t;let a=Object.create(null);if(this.medium&&this.medium.short&&this.medium.long){if(a.width=lU(this.medium.short),a.height=lU(this.medium.long),this[s5].space={width:this.medium.short,height:this.medium.long},"landscape"===this.medium.orientation){let t=a.width;a.width=a.height,a.height=t,this[s5].space={width:this.medium.long,height:this.medium.short}}}else v("XFA - No medium specified in pageArea: please file a bug.");return this[sK]({filter:new Set(["area","draw","field","subform"]),include:!0}),this[sK]({filter:new Set(["contentArea"]),include:!0}),o8.success({name:"div",children:t,attributes:{class:["xfaPage"],id:this[oK],style:a,xfaName:this.name}})}}class hI extends lF{constructor(t){super(l7,"pageSet",!0),this.duplexImposition=o5(t.duplexImposition,["longEdge","shortEdge"]),this.id=t.id||"",this.name=t.name||"",this.relation=o5(t.relation,["orderedOccurrence","duplexPaginated","simplexPaginated"]),this.relevant=o7(t.relevant),this.use=t.use||"",this.usehref=t.usehref||"",this.extras=null,this.occur=null,this.pageArea=new lM,this.pageSet=new lM}[sJ](){for(let t of this.pageArea.children)t[sJ]();for(let t of this.pageSet.children)t[sJ]()}[oS](){return!this.occur||-1===this.occur.max||this[s5].numberOfUse<this.occur.max}[ol](){if(this[s5]||={numberOfUse:1,pageIndex:-1,pageSetIndex:-1},"orderedOccurrence"===this.relation){if(this[s5].pageIndex+1<this.pageArea.children.length)return this[s5].pageIndex+=1,this.pageArea.children[this[s5].pageIndex][ol]();if(this[s5].pageSetIndex+1<this.pageSet.children.length)return this[s5].pageSetIndex+=1,this.pageSet.children[this[s5].pageSetIndex][ol]();if(this[oS]())return this[s5].numberOfUse+=1,this[s5].pageIndex=-1,this[s5].pageSetIndex=-1,this[ol]();let t=this[oh]();return t instanceof hI?t[ol]():(this[sJ](),this[ol]())}let t=this[ou]()[s5].pageNumber,a=t%2==0?"even":"odd",r=0===t?"first":"rest",i=this.pageArea.children.find(t=>t.oddOrEven===a&&t.pagePosition===r);return i||(i=this.pageArea.children.find(t=>"any"===t.oddOrEven&&t.pagePosition===r))?i:(i=this.pageArea.children.find(t=>"any"===t.oddOrEven&&"any"===t.pagePosition))||this.pageArea.children[0]}}class hT extends lF{constructor(t){super(l7,"para",!0),this.hAlign=o5(t.hAlign,["left","center","justify","justifyAll","radix","right"]),this.id=t.id||"",this.lineHeight=t.lineHeight?o3(t.lineHeight,"0pt"):"",this.marginLeft=t.marginLeft?o3(t.marginLeft,"0pt"):"",this.marginRight=t.marginRight?o3(t.marginRight,"0pt"):"",this.orphans=o0({data:t.orphans,defaultValue:0,validate:t=>t>=0}),this.preserve=t.preserve||"",this.radixOffset=t.radixOffset?o3(t.radixOffset,"0pt"):"",this.spaceAbove=t.spaceAbove?o3(t.spaceAbove,"0pt"):"",this.spaceBelow=t.spaceBelow?o3(t.spaceBelow,"0pt"):"",this.tabDefault=t.tabDefault?o3(this.tabDefault):"",this.tabStops=(t.tabStops||"").trim().split(/\s+/).map((t,a)=>a%2==1?o3(t):t),this.textIndent=t.textIndent?o3(t.textIndent,"0pt"):"",this.use=t.use||"",this.usehref=t.usehref||"",this.vAlign=o5(t.vAlign,["top","bottom","middle"]),this.widows=o0({data:t.widows,defaultValue:0,validate:t=>t>=0}),this.hyphenation=null}[oX](){let t=lV(this,"hAlign");return""!==this.marginLeft&&(t.paddingLeft=lU(this.marginLeft)),""!==this.marginRight&&(t.paddingRight=lU(this.marginRight)),""!==this.spaceAbove&&(t.paddingTop=lU(this.spaceAbove)),""!==this.spaceBelow&&(t.paddingBottom=lU(this.spaceBelow)),""!==this.textIndent&&(t.textIndent=lU(this.textIndent),lK(t)),this.lineHeight>0&&(t.lineHeight=lU(this.lineHeight)),""!==this.tabDefault&&(t.tabSize=lU(this.tabDefault)),this.tabStops.length,this.hyphenatation&&Object.assign(t,this.hyphenatation[oX]()),t}}class hB extends lF{constructor(t){super(l7,"passwordEdit",!0),this.hScrollPolicy=o5(t.hScrollPolicy,["auto","off","on"]),this.id=t.id||"",this.passwordChar=t.passwordChar||"*",this.use=t.use||"",this.usehref=t.usehref||"",this.border=null,this.extras=null,this.margin=null}}class hF extends lF{constructor(t){super(l7,"pattern",!0),this.id=t.id||"",this.type=o5(t.type,["crossHatch","crossDiagonal","diagonalLeft","diagonalRight","horizontal","vertical"]),this.use=t.use||"",this.usehref=t.usehref||"",this.color=null,this.extras=null}[oX](t){t=t?t[oX]():"#FFFFFF";let a=this.color?this.color[oX]():"#000000",r="repeating-linear-gradient",i=`${t},${t} 5px,${a} 5px,${a} 10px`;switch(this.type){case"crossHatch":return`${r}(to top,${i}) ${r}(to right,${i})`;case"crossDiagonal":return`${r}(45deg,${i}) ${r}(-45deg,${i})`;case"diagonalLeft":return`${r}(45deg,${i})`;case"diagonalRight":return`${r}(-45deg,${i})`;case"horizontal":return`${r}(to top,${i})`;case"vertical":return`${r}(to right,${i})`}return""}}class hM extends lE{constructor(t){super(l7,"picture"),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||""}}class hR extends lF{constructor(t){super(l7,"proto",!0),this.appearanceFilter=new lM,this.arc=new lM,this.area=new lM,this.assist=new lM,this.barcode=new lM,this.bindItems=new lM,this.bookend=new lM,this.boolean=new lM,this.border=new lM,this.break=new lM,this.breakAfter=new lM,this.breakBefore=new lM,this.button=new lM,this.calculate=new lM,this.caption=new lM,this.certificate=new lM,this.certificates=new lM,this.checkButton=new lM,this.choiceList=new lM,this.color=new lM,this.comb=new lM,this.connect=new lM,this.contentArea=new lM,this.corner=new lM,this.date=new lM,this.dateTime=new lM,this.dateTimeEdit=new lM,this.decimal=new lM,this.defaultUi=new lM,this.desc=new lM,this.digestMethod=new lM,this.digestMethods=new lM,this.draw=new lM,this.edge=new lM,this.encoding=new lM,this.encodings=new lM,this.encrypt=new lM,this.encryptData=new lM,this.encryption=new lM,this.encryptionMethod=new lM,this.encryptionMethods=new lM,this.event=new lM,this.exData=new lM,this.exObject=new lM,this.exclGroup=new lM,this.execute=new lM,this.extras=new lM,this.field=new lM,this.fill=new lM,this.filter=new lM,this.float=new lM,this.font=new lM,this.format=new lM,this.handler=new lM,this.hyphenation=new lM,this.image=new lM,this.imageEdit=new lM,this.integer=new lM,this.issuers=new lM,this.items=new lM,this.keep=new lM,this.keyUsage=new lM,this.line=new lM,this.linear=new lM,this.lockDocument=new lM,this.manifest=new lM,this.margin=new lM,this.mdp=new lM,this.medium=new lM,this.message=new lM,this.numericEdit=new lM,this.occur=new lM,this.oid=new lM,this.oids=new lM,this.overflow=new lM,this.pageArea=new lM,this.pageSet=new lM,this.para=new lM,this.passwordEdit=new lM,this.pattern=new lM,this.picture=new lM,this.radial=new lM,this.reason=new lM,this.reasons=new lM,this.rectangle=new lM,this.ref=new lM,this.script=new lM,this.setProperty=new lM,this.signData=new lM,this.signature=new lM,this.signing=new lM,this.solid=new lM,this.speak=new lM,this.stipple=new lM,this.subform=new lM,this.subformSet=new lM,this.subjectDN=new lM,this.subjectDNs=new lM,this.submit=new lM,this.text=new lM,this.textEdit=new lM,this.time=new lM,this.timeStamp=new lM,this.toolTip=new lM,this.traversal=new lM,this.traverse=new lM,this.ui=new lM,this.validate=new lM,this.value=new lM,this.variables=new lM}}class hN extends lF{constructor(t){super(l7,"radial",!0),this.id=t.id||"",this.type=o5(t.type,["toEdge","toCenter"]),this.use=t.use||"",this.usehref=t.usehref||"",this.color=null,this.extras=null}[oX](t){t=t?t[oX]():"#FFFFFF";let a=this.color?this.color[oX]():"#000000";return`radial-gradient(circle at center, ${"toEdge"===this.type?`${t},${a}`:`${a},${t}`})`}}class hO extends lE{constructor(t){super(l7,"reason"),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||""}}class hD extends lF{constructor(t){super(l7,"reasons",!0),this.id=t.id||"",this.type=o5(t.type,["optional","required"]),this.use=t.use||"",this.usehref=t.usehref||"",this.reason=new lM}}class hE extends lF{constructor(t){super(l7,"rectangle",!0),this.hand=o5(t.hand,["even","left","right"]),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||"",this.corner=new lM(4),this.edge=new lM(4),this.fill=null}[oW](){let t=this.edge.children.length?this.edge.children[0]:new cK({}),a=t[oX](),r=Object.create(null);"visible"===this.fill?.presence?Object.assign(r,this.fill[oX]()):r.fill="transparent",r.strokeWidth=lU("visible"===t.presence?t.thickness:0),r.stroke=a.color;let i=(this.corner.children.length?this.corner.children[0]:new cU({}))[oX](),n={name:"svg",children:[{name:"rect",attributes:{xmlns:l8,width:"100%",height:"100%",x:0,y:0,rx:i.radius,ry:i.radius,style:r}}],attributes:{xmlns:l8,style:{overflow:"visible"},width:"100%",height:"100%"}};return cr(this[oh]()[oh]())?o8.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[n]}):(n.attributes.style.position="absolute",o8.success(n))}}class hP extends lE{constructor(t){super(l7,"ref"),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||""}}class h_ extends lE{constructor(t){super(l7,"script"),this.binding=t.binding||"",this.contentType=t.contentType||"",this.id=t.id||"",this.name=t.name||"",this.runAt=o5(t.runAt,["client","both","server"]),this.use=t.use||"",this.usehref=t.usehref||""}}class hL extends lF{constructor(t){super(l7,"setProperty"),this.connection=t.connection||"",this.ref=t.ref||"",this.target=t.target||""}}class hU extends lF{constructor(t){super(l7,"signData",!0),this.id=t.id||"",this.operation=o5(t.operation,["sign","clear","verify"]),this.ref=t.ref||"",this.target=t.target||"",this.use=t.use||"",this.usehref=t.usehref||"",this.filter=null,this.manifest=null}}class hj extends lF{constructor(t){super(l7,"signature",!0),this.id=t.id||"",this.type=o5(t.type,["PDF1.3","PDF1.6"]),this.use=t.use||"",this.usehref=t.usehref||"",this.border=null,this.extras=null,this.filter=null,this.manifest=null,this.margin=null}}class hq extends lF{constructor(t){super(l7,"signing",!0),this.id=t.id||"",this.type=o5(t.type,["optional","required"]),this.use=t.use||"",this.usehref=t.usehref||"",this.certificate=new lM}}class hH extends lF{constructor(t){super(l7,"solid",!0),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||"",this.extras=null}[oX](t){return t?t[oX]():"#FFFFFF"}}class h$ extends lE{constructor(t){super(l7,"speak"),this.disable=o0({data:t.disable,defaultValue:0,validate:t=>1===t}),this.id=t.id||"",this.priority=o5(t.priority,["custom","caption","name","toolTip"]),this.rid=t.rid||"",this.use=t.use||"",this.usehref=t.usehref||""}}class hz extends lF{constructor(t){super(l7,"stipple",!0),this.id=t.id||"",this.rate=o0({data:t.rate,defaultValue:50,validate:t=>t>=0&&t<=100}),this.use=t.use||"",this.usehref=t.usehref||"",this.color=null,this.extras=null}[oX](t){let a=this.rate/100;return j.makeHexColor(Math.round(t.value.r*(1-a)+this.value.r*a),Math.round(t.value.g*(1-a)+this.value.g*a),Math.round(t.value.b*(1-a)+this.value.b*a))}}class hG extends lF{constructor(t){super(l7,"subform",!0),this.access=o5(t.access,["open","nonInteractive","protected","readOnly"]),this.allowMacro=o0({data:t.allowMacro,defaultValue:0,validate:t=>1===t}),this.anchorType=o5(t.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]),this.colSpan=o0({data:t.colSpan,defaultValue:1,validate:t=>t>=1||-1===t}),this.columnWidths=(t.columnWidths||"").trim().split(/\s+/).map(t=>"-1"===t?-1:o3(t)),this.h=t.h?o3(t.h):"",this.hAlign=o5(t.hAlign,["left","center","justify","justifyAll","radix","right"]),this.id=t.id||"",this.layout=o5(t.layout,["position","lr-tb","rl-row","rl-tb","row","table","tb"]),this.locale=t.locale||"",this.maxH=o3(t.maxH,"0pt"),this.maxW=o3(t.maxW,"0pt"),this.mergeMode=o5(t.mergeMode,["consumeData","matchTemplate"]),this.minH=o3(t.minH,"0pt"),this.minW=o3(t.minW,"0pt"),this.name=t.name||"",this.presence=o5(t.presence,["visible","hidden","inactive","invisible"]),this.relevant=o7(t.relevant),this.restoreState=o5(t.restoreState,["manual","auto"]),this.scope=o5(t.scope,["name","none"]),this.use=t.use||"",this.usehref=t.usehref||"",this.w=t.w?o3(t.w):"",this.x=o3(t.x,"0pt"),this.y=o3(t.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 lM,this.breakAfter=new lM,this.breakBefore=new lM,this.connect=new lM,this.draw=new lM,this.event=new lM,this.exObject=new lM,this.exclGroup=new lM,this.field=new lM,this.proto=new lM,this.setProperty=new lM,this.subform=new lM,this.subformSet=new lM}[oc](){let t=this[oh]();return t instanceof hW?t[oc]():t}[oy](){return!0}[oA](){return this.layout.endsWith("-tb")&&0===this[s5].attempt&&this[s5].numberInLine>0||this[oh]()[oA]()}*[oo](){yield*cn(this)}[s6](){return l9(this)}[sV](t,a){l5(this,t,a)}[s4](){return l3(this)}[ov](){let t=this[oc]();return!!t[ov]()&&(void 0!==this[s5]._isSplittable?this[s5]._isSplittable:"position"===this.layout||this.layout.includes("row")||this.keep&&"none"!==this.keep.intact?(this[s5]._isSplittable=!1,!1):(!t.layout?.endsWith("-tb")||0===t[s5].numberInLine)&&(this[s5]._isSplittable=!0,!0))}[oW](t){if(co(this),this.break){if("auto"!==this.break.after||""!==this.break.afterTarget){let t=new cI({targetType:this.break.after,target:this.break.afterTarget,startNew:this.break.startNew.toString()});t[of]=this[of],this[sX](t),this.breakAfter.push(t)}if("auto"!==this.break.before||""!==this.break.beforeTarget){let t=new cT({targetType:this.break.before,target:this.break.beforeTarget,startNew:this.break.startNew.toString()});t[of]=this[of],this[sX](t),this.breakBefore.push(t)}if(""!==this.break.overflowTarget){let t=new hC({target:this.break.overflowTarget,leader:this.break.overflowLeader,trailer:this.break.overflowTrailer});t[of]=this[of],this[sX](t),this.overflow.push(t)}this[oP](this.break),this.break=null}if("hidden"===this.presence||"inactive"===this.presence)return o8.EMPTY;if((this.breakBefore.children.length>1||this.breakAfter.children.length>1)&&v("XFA - Several breakBefore or breakAfter in subforms: please file a bug."),this.breakBefore.children.length>=1){let t=this.breakBefore.children[0];if(cd(t))return o8.breakNode(t)}if(this[s5]?.afterBreakAfter)return o8.EMPTY;lG(this);let a=[],r={id:this[oK],class:[]};lY(this,r.class),this[s5]||=Object.create(null),Object.assign(this[s5],{children:a,line:null,attributes:r,attempt:0,numberInLine:0,availableSpace:{width:Math.min(this.w||1/0,t.width),height:Math.min(this.h||1/0,t.height)},width:0,height:0,prevHeight:0,currentWidth:0});let i=this[ou](),n=i[s5].noLayoutFailure,s=this[ov]();if(s||cu(this),!l6(this,t))return o8.FAILURE;let o=new Set(["area","draw","exclGroup","field","subform","subformSet"]);if(this.layout.includes("row")){let t=this[oc]().columnWidths;Array.isArray(t)&&t.length>0&&(this[s5].columnWidths=t,this[s5].currentColumn=0)}let l=lV(this,"anchorType","dimensions","position","presence","border","margin","hAlign"),c=["xfaSubform"],h=lW(this);if(h&&c.push(h),r.style=l,r.class=c,this.name&&(r.xfaName=this.name),this.overflow){let a=this.overflow[oi]();a.addLeader&&(a.addLeader=!1,cg(this,a.leader,t))}this[oE]();let u="lr-tb"===this.layout||"rl-tb"===this.layout,f=u?2:1;for(;this[s5].attempt<f;this[s5].attempt++){u&&1===this[s5].attempt&&(this[s5].numberInLine=0);let t=this[sK]({filter:o,include:!0});if(t.success)break;if(t.isBreak())return this[oD](),t;if(u&&0===this[s5].attempt&&0===this[s5].numberInLine&&!i[s5].noLayoutFailure){this[s5].attempt=f;break}}if(this[oD](),s||cf(this),i[s5].noLayoutFailure=n,this[s5].attempt===f)return this.overflow&&(this[ou]()[s5].overflowNode=this.overflow),s||delete this[s5],o8.FAILURE;if(this.overflow){let a=this.overflow[oi]();a.addTrailer&&(a.addTrailer=!1,cg(this,a.trailer,t))}let d=0,g=0;this.margin&&(d=this.margin.leftInset+this.margin.rightInset,g=this.margin.topInset+this.margin.bottomInset);let p=Math.max(this[s5].width+d,this.w||0),m=Math.max(this[s5].height+g,this.h||0),b=[this.x,this.y,p,m];if(""===this.w&&(l.width=lU(p)),""===this.h&&(l.height=lU(m)),("0px"===l.width||"0px"===l.height)&&0===a.length)return o8.EMPTY;cl(this,r);let y=o8.success(lX(this,{name:"div",attributes:r,children:a}),b);if(this.breakAfter.children.length>=1){let t=this.breakAfter.children[0];if(cd(t))return this[s5].afterBreakAfter=y,o8.breakNode(t)}return delete this[s5],y}}class hW extends lF{constructor(t){super(l7,"subformSet",!0),this.id=t.id||"",this.name=t.name||"",this.relation=o5(t.relation,["ordered","choice","unordered"]),this.relevant=o7(t.relevant),this.use=t.use||"",this.usehref=t.usehref||"",this.bookend=null,this.break=null,this.desc=null,this.extras=null,this.occur=null,this.overflow=null,this.breakAfter=new lM,this.breakBefore=new lM,this.subform=new lM,this.subformSet=new lM}*[oo](){yield*cn(this)}[oc](){let t=this[oh]();for(;!(t instanceof hG);)t=t[oh]();return t}[oy](){return!0}}class hV extends lO{constructor(t){super(l7,"subjectDN"),this.delimiter=t.delimiter||",",this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||""}[s3](){this[s0]=new Map(this[s0].split(this.delimiter).map(t=>((t=t.split("=",2))[0]=t[0].trim(),t)))}}class hX extends lF{constructor(t){super(l7,"subjectDNs",!0),this.id=t.id||"",this.type=o5(t.type,["optional","required"]),this.use=t.use||"",this.usehref=t.usehref||"",this.subjectDN=new lM}}class hK extends lF{constructor(t){super(l7,"submit",!0),this.embedPDF=o0({data:t.embedPDF,defaultValue:0,validate:t=>1===t}),this.format=o5(t.format,["xdp","formdata","pdf","urlencoded","xfd","xml"]),this.id=t.id||"",this.target=t.target||"",this.textEncoding=o9({data:t.textEncoding?t.textEncoding.toLowerCase():"",defaultValue:"",validate:t=>["utf-8","big-five","fontspecific","gbk","gb-18030","gb-2312","ksc-5601","none","shift-jis","ucs-2","utf-16"].includes(t)||t.match(/iso-8859-\d{2}/)}),this.use=t.use||"",this.usehref=t.usehref||"",this.xdpContent=t.xdpContent||"",this.encrypt=null,this.encryptData=new lM,this.signData=new lM}}class hY extends lF{constructor(t){super(l7,"template",!0),this.baseProfile=o5(t.baseProfile,["full","interactiveForms"]),this.extras=null,this.subform=new lM}[s3](){0===this.subform.children.length&&v("XFA - No subforms in template node."),this.subform.children.length>=2&&v("XFA - Several subforms in template node: please file a bug."),this[o$]=5e3}[ov](){return!0}[oU](t,a){return t.startsWith("#")?[this[og].get(t.slice(1))]:lc(this,a,t,!0,!0)}*[oG](){if(!this.subform.children.length)return o8.success({name:"div",children:[]});this[s5]={overflowNode:null,firstUnsplittable:null,currentContentArea:null,currentPageArea:null,noLayoutFailure:!1,pageNumber:1,pagePosition:"first",oddOrEven:"odd",blankOrNotBlank:"nonBlank",paraStack:[]};let t=this.subform.children[0];t.pageSet[sJ]();let a=t.pageSet.pageArea.children,r={name:"div",children:[]},i=null,n=null,s=null;if(t.breakBefore.children.length>=1?s=(n=t.breakBefore.children[0]).target:t.subform.children.length>=1&&t.subform.children[0].breakBefore.children.length>=1?s=(n=t.subform.children[0].breakBefore.children[0]).target:t.break?.beforeTarget?s=(n=t.break).beforeTarget:t.subform.children.length>=1&&t.subform.children[0].break?.beforeTarget&&(s=(n=t.subform.children[0].break).beforeTarget),n){let t=this[oU](s,n[oh]());t instanceof hS&&(i=t,n[s5]={})}(i||=a[0])[s5]={numberOfUse:1};let o=i[oh]();o[s5]={numberOfUse:1,pageIndex:o.pageArea.children.indexOf(i),pageSetIndex:0};let l,c=null,h=null,u=!0,f=0,d=0;for(;;){if(u)f=0;else if(r.children.pop(),3==++f)return v("XFA - Something goes wrong: please file a bug."),r;l=null,this[s5].currentPageArea=i;let a=i[oW]().html;r.children.push(a),c&&(this[s5].noLayoutFailure=!0,a.children.push(c[oW](i[s5].space).html),c=null),h&&(this[s5].noLayoutFailure=!0,a.children.push(h[oW](i[s5].space).html),h=null);let n=i.contentArea.children,s=a.children.filter(t=>t.attributes.class.includes("xfaContentarea"));u=!1,this[s5].firstUnsplittable=null,this[s5].noLayoutFailure=!1;let o=a=>{let r=t[s6]();r&&(u||=r.children?.length>0,s[a].children.push(r))};for(let a=d,i=n.length;a<i;a++){let i=this[s5].currentContentArea=n[a],f={width:i.w,height:i.h};d=0,c&&(s[a].children.push(c[oW](f).html),c=null),h&&(s[a].children.push(h[oW](f).html),h=null);let g=t[oW](f);if(g.success)return g.html?(u||=g.html.children?.length>0,s[a].children.push(g.html)):!u&&r.children.length>1&&r.children.pop(),r;if(g.isBreak()){let t=g.breakNode;if(o(a),"auto"===t.targetType)continue;t.leader&&(c=(c=this[oU](t.leader,t[oh]()))?c[0]:null),t.trailer&&(h=(h=this[oU](t.trailer,t[oh]()))?h[0]:null),"pageArea"===t.targetType?(l=t[s5].target,a=1/0):t[s5].target?(l=t[s5].target,d=t[s5].index+1,a=1/0):a=t[s5].index;continue}if(this[s5].overflowNode){let t=this[s5].overflowNode;this[s5].overflowNode=null;let r=t[oi](),i=r.target;r.addLeader=null!==r.leader,r.addTrailer=null!==r.trailer,o(a);let s=a;if(a=1/0,i instanceof hS)l=i;else if(i instanceof cL){let t=n.indexOf(i);-1!==t?t>s?a=t-1:d=t:d=(l=i[oh]()).contentArea.children.indexOf(i)}continue}o(a)}this[s5].pageNumber+=1,l&&(l[oS]()?l[s5].numberOfUse+=1:l=null),i=l||i[ol](),yield null}}}class Text extends lO{constructor(t){super(l7,"text"),this.id=t.id||"",this.maxChars=o0({data:t.maxChars,defaultValue:0,validate:t=>t>=0}),this.name=t.name||"",this.rid=t.rid||"",this.use=t.use||"",this.usehref=t.usehref||""}[sW](){return!0}[oM](t){return t[oT]===oJ.xhtml.id?(this[s0]=t,!0):(v(`XFA - Invalid content in Text: ${t[oB]}.`),!1)}[oN](t){this[s0]instanceof lF||super[oN](t)}[s3](){"string"==typeof this[s0]&&(this[s0]=this[s0].replaceAll("\r\n","\n"))}[oi](){return"string"==typeof this[s0]?this[s0].split(/[\u2029\u2028\n]/).filter(t=>!!t).join("\n"):this[s0][oz]()}[oW](t){if("string"==typeof this[s0]){let t=ch(this[s0]).html;return this[s0].includes("\u2029")?(t.name="div",t.children=[],this[s0].split("\u2029").map(t=>t.split(/[\u2028\n]/).flatMap(t=>[{name:"span",value:t},{name:"br"}])).forEach(a=>{t.children.push({name:"p",children:a})})):/[\u2028\n]/.test(this[s0])&&(t.name="div",t.children=[],this[s0].split(/[\u2028\n]/).forEach(a=>{t.children.push({name:"span",value:a},{name:"br"})})),o8.success(t)}return this[s0][oW](t)}}class hJ extends lF{constructor(t){super(l7,"textEdit",!0),this.allowRichText=o0({data:t.allowRichText,defaultValue:0,validate:t=>1===t}),this.hScrollPolicy=o5(t.hScrollPolicy,["auto","off","on"]),this.id=t.id||"",this.multiLine=o0({data:t.multiLine,defaultValue:"",validate:t=>0===t||1===t}),this.use=t.use||"",this.usehref=t.usehref||"",this.vScrollPolicy=o5(t.vScrollPolicy,["auto","off","on"]),this.border=null,this.comb=null,this.extras=null,this.margin=null}[oW](t){let a;let r=lV(this,"border","font","margin"),i=this[oh]()[oh]();return""===this.multiLine&&(this.multiLine=i instanceof cX?1:0),a=1===this.multiLine?{name:"textarea",attributes:{dataId:i[s2]?.[oK]||i[oK],fieldId:i[oK],class:["xfaTextfield"],style:r,"aria-label":cc(i),"aria-required":!1}}:{name:"input",attributes:{type:"text",dataId:i[s2]?.[oK]||i[oK],fieldId:i[oK],class:["xfaTextfield"],style:r,"aria-label":cc(i),"aria-required":!1}},cs(i)&&(a.attributes["aria-required"]=!0,a.attributes.required=!0),o8.success({name:"label",attributes:{class:["xfaLabel"]},children:[a]})}}class hZ extends lE{constructor(t){super(l7,"time"),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||""}[s3](){let t=this[s0].trim();this[s0]=t?new Date(t):null}[oW](t){return ch(this[s0]?this[s0].toString():"")}}class hQ extends lF{constructor(t){super(l7,"timeStamp"),this.id=t.id||"",this.server=t.server||"",this.type=o5(t.type,["optional","required"]),this.use=t.use||"",this.usehref=t.usehref||""}}class h1 extends lE{constructor(t){super(l7,"toolTip"),this.id=t.id||"",this.rid=t.rid||"",this.use=t.use||"",this.usehref=t.usehref||""}}class h0 extends lF{constructor(t){super(l7,"traversal",!0),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||"",this.extras=null,this.traverse=new lM}}class h2 extends lF{constructor(t){super(l7,"traverse",!0),this.id=t.id||"",this.operation=o5(t.operation,["next","back","down","first","left","right","up"]),this.ref=t.ref||"",this.use=t.use||"",this.usehref=t.usehref||"",this.extras=null,this.script=null}get name(){return this.operation}[oC](){return!1}}class h9 extends lF{constructor(t){super(l7,"ui",!0),this.id=t.id||"",this.use=t.use||"",this.usehref=t.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}[oi](){if(void 0===this[s5]){for(let t of Object.getOwnPropertyNames(this)){if("extras"===t||"picture"===t)continue;let a=this[t];if(a instanceof lF)return this[s5]=a,a}this[s5]=null}return this[s5]}[oW](t){let a=this[oi]();return a?a[oW](t):o8.EMPTY}}class h5 extends lF{constructor(t){super(l7,"validate",!0),this.formatTest=o5(t.formatTest,["warning","disabled","error"]),this.id=t.id||"",this.nullTest=o5(t.nullTest,["disabled","error","warning"]),this.scriptTest=o5(t.scriptTest,["error","disabled","warning"]),this.use=t.use||"",this.usehref=t.usehref||"",this.extras=null,this.message=null,this.picture=null,this.script=null}}class h3 extends lF{constructor(t){super(l7,"value",!0),this.id=t.id||"",this.override=o0({data:t.override,defaultValue:0,validate:t=>1===t}),this.relevant=o7(t.relevant),this.use=t.use||"",this.usehref=t.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}[oH](t){let a=this[oh]();if(a instanceof c8&&a.ui?.imageEdit){this.image||(this.image=new Image({}),this[sX](this.image)),this.image[s0]=t[s0];return}let r=t[oB];if(null===this[r]){for(let t of Object.getOwnPropertyNames(this)){let a=this[t];a instanceof lF&&(this[t]=null,this[oP](a))}this[t[oB]]=t,this[sX](t)}else this[r][s0]=t[s0]}[oz](){if(this.exData)return"string"==typeof this.exData[s0]?this.exData[s0].trim():this.exData[s0][oz]().trim();for(let t of Object.getOwnPropertyNames(this)){if("image"===t)continue;let a=this[t];if(a instanceof lF)return(a[s0]||"").toString().trim()}return null}[oW](t){for(let a of Object.getOwnPropertyNames(this)){let r=this[a];if(r instanceof lF)return r[oW](t)}return o8.EMPTY}}class h6 extends lF{constructor(t){super(l7,"variables",!0),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||"",this.boolean=new lM,this.date=new lM,this.dateTime=new lM,this.decimal=new lM,this.exData=new lM,this.float=new lM,this.image=new lM,this.integer=new lM,this.manifest=new lM,this.script=new lM,this.text=new lM,this.time=new lM}[oC](){return!0}}class h7{static[oY](t,a){if(h7.hasOwnProperty(t)){let r=h7[t](a);return r[oq](a),r}}static appearanceFilter(t){return new cp(t)}static arc(t){return new cm(t)}static area(t){return new cb(t)}static assist(t){return new cy(t)}static barcode(t){return new cw(t)}static bind(t){return new cx(t)}static bindItems(t){return new ck(t)}static bookend(t){return new cv(t)}static boolean(t){return new cA(t)}static border(t){return new cC(t)}static break(t){return new cS(t)}static breakAfter(t){return new cI(t)}static breakBefore(t){return new cT(t)}static button(t){return new cB(t)}static calculate(t){return new cF(t)}static caption(t){return new cM(t)}static certificate(t){return new cR(t)}static certificates(t){return new cN(t)}static checkButton(t){return new cO(t)}static choiceList(t){return new cD(t)}static color(t){return new cE(t)}static comb(t){return new cP(t)}static connect(t){return new c_(t)}static contentArea(t){return new cL(t)}static corner(t){return new cU(t)}static date(t){return new cj(t)}static dateTime(t){return new cq(t)}static dateTimeEdit(t){return new cH(t)}static decimal(t){return new c$(t)}static defaultUi(t){return new cz(t)}static desc(t){return new cG(t)}static digestMethod(t){return new cW(t)}static digestMethods(t){return new cV(t)}static draw(t){return new cX(t)}static edge(t){return new cK(t)}static encoding(t){return new cY(t)}static encodings(t){return new cJ(t)}static encrypt(t){return new cZ(t)}static encryptData(t){return new cQ(t)}static encryption(t){return new c1(t)}static encryptionMethod(t){return new c0(t)}static encryptionMethods(t){return new c2(t)}static event(t){return new Event(t)}static exData(t){return new c9(t)}static exObject(t){return new c5(t)}static exclGroup(t){return new c3(t)}static execute(t){return new c6(t)}static extras(t){return new c7(t)}static field(t){return new c8(t)}static fill(t){return new c4(t)}static filter(t){return new he(t)}static float(t){return new ht(t)}static font(t){return new ha(t)}static format(t){return new hr(t)}static handler(t){return new hi(t)}static hyphenation(t){return new hn(t)}static image(t){return new Image(t)}static imageEdit(t){return new hs(t)}static integer(t){return new ho(t)}static issuers(t){return new hl(t)}static items(t){return new hc(t)}static keep(t){return new hh(t)}static keyUsage(t){return new hu(t)}static line(t){return new hf(t)}static linear(t){return new hd(t)}static lockDocument(t){return new hg(t)}static manifest(t){return new hp(t)}static margin(t){return new hm(t)}static mdp(t){return new hb(t)}static medium(t){return new hy(t)}static message(t){return new hw(t)}static numericEdit(t){return new hx(t)}static occur(t){return new hk(t)}static oid(t){return new hv(t)}static oids(t){return new hA(t)}static overflow(t){return new hC(t)}static pageArea(t){return new hS(t)}static pageSet(t){return new hI(t)}static para(t){return new hT(t)}static passwordEdit(t){return new hB(t)}static pattern(t){return new hF(t)}static picture(t){return new hM(t)}static proto(t){return new hR(t)}static radial(t){return new hN(t)}static reason(t){return new hO(t)}static reasons(t){return new hD(t)}static rectangle(t){return new hE(t)}static ref(t){return new hP(t)}static script(t){return new h_(t)}static setProperty(t){return new hL(t)}static signData(t){return new hU(t)}static signature(t){return new hj(t)}static signing(t){return new hq(t)}static solid(t){return new hH(t)}static speak(t){return new h$(t)}static stipple(t){return new hz(t)}static subform(t){return new hG(t)}static subformSet(t){return new hW(t)}static subjectDN(t){return new hV(t)}static subjectDNs(t){return new hX(t)}static submit(t){return new hK(t)}static template(t){return new hY(t)}static text(t){return new Text(t)}static textEdit(t){return new hJ(t)}static time(t){return new hZ(t)}static timeStamp(t){return new hQ(t)}static toolTip(t){return new h1(t)}static traversal(t){return new h0(t)}static traverse(t){return new h2(t)}static ui(t){return new h9(t)}static validate(t){return new h5(t)}static value(t){return new h3(t)}static variables(t){return new h6(t)}}let h8=oJ.datasets.id;function h4(t){let a=new Text({});return a[s0]=t,a}class ue{constructor(t){this.root=t,this.datasets=t.datasets,this.data=t.datasets?.data||new lN(oJ.datasets.id,"data"),this.emptyMerge=0===this.data[os]().length,this.root.form=this.form=t.template[sQ]()}_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(t,a,r){if(t[s2]=a,t[od]()){if(a[ow]()){let r=a[or]();t[oH](h4(r))}else if(t instanceof c8&&"multiSelect"===t.ui?.choiceList?.open){let r=a[os]().map(t=>t[s0].trim()).join("\n");t[oH](h4(r))}else this._isConsumeData()&&v("XFA - Nodes haven't the same type.")}else!a[ow]()||this._isMatchTemplate()?this._bindElement(t,a):v("XFA - Nodes haven't the same type.")}_findDataByNameToConsume(t,a,r,i){let n,s;if(!t)return null;for(let i=0;i<3;i++){for(n=r[on](t,!1,!0);s=n.next().value;)if(a===s[ow]())return s;if(r[oT]===oJ.datasets.id&&"data"===r[oB])break;r=r[oh]()}return i?(s=(n=this.data[on](t,!0,!1)).next().value)?s:(s=(n=this.data[s7](t,!0)).next().value,s?.[ow]()?s:null):null}_setProperties(t,a){if(t.hasOwnProperty("setProperty"))for(let{ref:r,target:i,connection:n}of t.setProperty.children){if(n||!r)continue;let s=lc(this.root,a,r,!1,!1);if(!s){v(`XFA - Invalid reference: ${r}.`);continue}let[o]=s;if(!o[ox](this.data)){v("XFA - Invalid node: must be a data node.");continue}let l=lc(this.root,t,i,!1,!1);if(!l){v(`XFA - Invalid target: ${i}.`);continue}let[c]=l;if(!c[ox](t)){v("XFA - Invalid target: must be a property or subproperty.");continue}let h=c[oh]();if(c instanceof hL||h instanceof hL){v("XFA - Invalid target: cannot be a setProperty or one of its properties.");continue}if(c instanceof ck||h instanceof ck){v("XFA - Invalid target: cannot be a bindItems or one of its properties.");continue}let u=o[oz](),f=c[oB];if(c instanceof lR){let t=Object.create(null);t[f]=u;let a=Reflect.construct(Object.getPrototypeOf(h).constructor,[t]);h[f]=a[f];continue}c.hasOwnProperty(s0)?(c[s2]=o,c[s0]=u,c[s3]()):v("XFA - Invalid node to use in setProperty")}}_bindItems(t,a){if(!t.hasOwnProperty("items")||!t.hasOwnProperty("bindItems")||t.bindItems.isEmpty())return;for(let a of t.items.children)t[oP](a);t.items.clear();let r=new hc({}),i=new hc({});for(let{ref:n,labelRef:s,valueRef:o,connection:l}of(t[sX](r),t.items.push(r),t[sX](i),t.items.push(i),t.bindItems.children)){if(l||!n)continue;let t=lc(this.root,a,n,!1,!1);if(t)for(let a of t){if(!a[ox](this.datasets)){v(`XFA - Invalid ref (${n}): must be a datasets child.`);continue}let t=lc(this.root,a,s,!0,!1);if(!t){v(`XFA - Invalid label: ${s}.`);continue}let[l]=t;if(!l[ox](this.datasets)){v("XFA - Invalid label: must be a datasets child.");continue}let c=lc(this.root,a,o,!0,!1);if(!c){v(`XFA - Invalid value: ${o}.`);continue}let[h]=c;if(!h[ox](this.datasets)){v("XFA - Invalid value: must be a datasets child.");continue}let u=h4(l[oz]()),f=h4(h[oz]());r[sX](u),r.text.push(u),i[sX](f),i.text.push(f)}else v(`XFA - Invalid reference: ${n}.`)}}_bindOccurrences(t,a,r){let i;if(a.length>1&&((i=t[sQ]())[oP](i.occur),i.occur=null),this._bindValue(t,a[0],r),this._setProperties(t,a[0]),this._bindItems(t,a[0]),1===a.length)return;let n=t[oh](),s=t[oB],o=n[op](t);for(let t=1,l=a.length;t<l;t++){let l=a[t],c=i[sQ]();n[s].push(c),n[om](o+t,c),this._bindValue(c,l,r),this._setProperties(c,l),this._bindItems(c,l)}}_createOccurrences(t){let a;if(!this.emptyMerge)return;let{occur:r}=t;if(!r||r.initial<=1)return;let i=t[oh](),n=t[oB];if(!(i[n]instanceof lM))return;a=t.name?i[n].children.filter(a=>a.name===t.name).length:i[n].children.length;let s=i[op](t)+1,o=r.initial-a;if(o){let a=t[sQ]();a[oP](a.occur),a.occur=null,i[n].push(a),i[om](s,a);for(let t=1;t<o;t++){let r=a[sQ]();i[n].push(r),i[om](s+t,r)}}}_getOccurInfo(t){let{name:a,occur:r}=t;if(!r||!a)return[1,1];let i=-1===r.max?1/0:r.max;return[r.min,i]}_setAndBind(t,a){this._setProperties(t,a),this._bindItems(t,a),this._bindElement(t,a)}_bindElement(t,a){let r=[];for(let i of(this._createOccurrences(t),t[os]())){if(i[s2])continue;if(void 0===this._mergeMode&&"subform"===i[oB]){this._mergeMode="consumeData"===i.mergeMode;let t=a[os]();if(t.length>0)this._bindOccurrences(i,[t[0]],null);else if(this.emptyMerge){let t=a[oT]===h8?-1:a[oT],r=i[s2]=new lN(t,i.name||"root");a[sX](r),this._bindElement(i,r)}continue}if(!i[oy]())continue;let t=!1,n=null,s=null,o=null;if(i.bind){switch(i.bind.match){case"none":this._setAndBind(i,a);continue;case"global":t=!0;break;case"dataRef":if(!i.bind.ref){v(`XFA - ref is empty in node ${i[oB]}.`),this._setAndBind(i,a);continue}s=i.bind.ref}i.bind.picture&&(n=i.bind.picture[s0])}let[l,c]=this._getOccurInfo(i);if(s){if(null===(o=lc(this.root,a,s,!0,!1))){if(!(o=function(t,a,r){let i=ll(r);if(!i||i.some(t=>1===t.operator))return null;let n=ls.get(i[0].name),s=0;n?(t=n(t,a),s=1):t=a||t;for(let a=i.length;s<a;s++){let a;let{name:r,operator:n,index:o}=i[s];if(!isFinite(o))return i[s].index=0,t.createNodes(i.slice(s));switch(n){case 0:a=t[ot](r,!1);break;case 1:a=t[ot](r,!0);break;case 2:a=(a=t[oe](r)).isXFAObjectArray?a.children:[a]}if(0===a.length)return t.createNodes(i.slice(s));if(!(o<a.length))return i[s].index=o-a.length,t.createNodes(i.slice(s));{let r=a[o];if(!r.isXFAObject)return v("XFA - Cannot create a node."),null;t=r}}return null}(this.data,a,s)))continue;this._isConsumeData()&&(o[s1]=!0),this._setAndBind(i,o);continue}this._isConsumeData()&&(o=o.filter(t=>!t[s1])),o.length>c?o=o.slice(0,c):0===o.length&&(o=null),o&&this._isConsumeData()&&o.forEach(t=>{t[s1]=!0})}else{if(!i.name){this._setAndBind(i,a);continue}if(this._isConsumeData()){let r=[];for(;r.length<c;){let n=this._findDataByNameToConsume(i.name,i[od](),a,t);if(!n)break;n[s1]=!0,r.push(n)}o=r.length>0?r:null}else{if(!(o=a[on](i.name,!1,this.emptyMerge).next().value)){if(0===l){r.push(i);continue}let t=a[oT]===h8?-1:a[oT];o=i[s2]=new lN(t,i.name),this.emptyMerge&&(o[s1]=!0),a[sX](o),this._setAndBind(i,o);continue}this.emptyMerge&&(o[s1]=!0),o=[o]}}o?this._bindOccurrences(i,o,n):l>0?this._setAndBind(i,a):r.push(i)}r.forEach(t=>t[oh]()[oP](t))}}class ut{constructor(t,a){this.data=a,this.dataset=t.datasets||null}serialize(t){let a=[[-1,this.data[os]()]];for(;a.length>0;){let r=a.at(-1),[i,n]=r;if(i+1===n.length){a.pop();continue}let s=n[++r[0]],o=t.get(s[oK]);if(o)s[oH](o);else{let a=s[s8]();for(let r of a.values()){let a=t.get(r[oK]);if(a){r[oH](a);break}}}let l=s[os]();l.length>0&&a.push([-1,l])}let r=['<xfa:datasets xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/">'];if(this.dataset)for(let t of this.dataset[os]())"data"!==t[oB]&&t[oV](r);return this.data[oV](r),r.push("</xfa:datasets>"),r.join("")}}let ua=oJ.config.id;class ur extends lF{constructor(t){super(ua,"acrobat",!0),this.acrobat7=null,this.autoSave=null,this.common=null,this.validate=null,this.validateApprovalSignatures=null,this.submitUrl=new lM}}class ui extends lF{constructor(t){super(ua,"acrobat7",!0),this.dynamicRender=null}}class un extends lD{constructor(t){super(ua,"ADBE_JSConsole",["delegate","Enable","Disable"])}}class us extends lD{constructor(t){super(ua,"ADBE_JSDebugger",["delegate","Enable","Disable"])}}class uo extends l_{constructor(t){super(ua,"addSilentPrint")}}class ul extends l_{constructor(t){super(ua,"addViewerPreferences")}}class uc extends lL{constructor(t){super(ua,"adjustData")}}class uh extends lP{constructor(t){super(ua,"adobeExtensionLevel",0,t=>t>=1&&t<=8)}}class uu extends lF{constructor(t){super(ua,"agent",!0),this.name=t.name?t.name.trim():"",this.common=new lM}}class uf extends lO{constructor(t){super(ua,"alwaysEmbed")}}class ud extends lE{constructor(t){super(ua,"amd")}}class ug extends lF{constructor(t){super(ua,"area"),this.level=o0({data:t.level,defaultValue:0,validate:t=>t>=1&&t<=3}),this.name=o5(t.name,["","barcode","coreinit","deviceDriver","font","general","layout","merge","script","signature","sourceSet","templateCache"])}}class up extends lD{constructor(t){super(ua,"attributes",["preserve","delegate","ignore"])}}class um extends lD{constructor(t){super(ua,"autoSave",["disabled","enabled"])}}class ub extends lE{constructor(t){super(ua,"base")}}class uy extends lF{constructor(t){super(ua,"batchOutput"),this.format=o5(t.format,["none","concat","zip","zipCompress"])}}class uw extends lO{constructor(t){super(ua,"behaviorOverride")}[s3](){this[s0]=new Map(this[s0].trim().split(/\s+/).filter(t=>t.includes(":")).map(t=>t.split(":",2)))}}class Cache extends lF{constructor(t){super(ua,"cache",!0),this.templateCache=null}}class ux extends l_{constructor(t){super(ua,"change")}}class uk extends lF{constructor(t){super(ua,"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 lM}}class uv extends lF{constructor(t){super(ua,"compress"),this.scope=o5(t.scope,["imageOnly","document"])}}class uA extends l_{constructor(t){super(ua,"compressLogicalStructure")}}class uC extends lL{constructor(t){super(ua,"compressObjectStream")}}class uS extends lF{constructor(t){super(ua,"compression",!0),this.compressLogicalStructure=null,this.compressObjectStream=null,this.level=null,this.type=null}}class uI extends lF{constructor(t){super(ua,"config",!0),this.acrobat=null,this.present=null,this.trace=null,this.agent=new lM}}class uT extends lD{constructor(t){super(ua,"conformance",["A","B"])}}class uB extends l_{constructor(t){super(ua,"contentCopy")}}class uF extends lP{constructor(t){super(ua,"copies",1,t=>t>=1)}}class uM extends lE{constructor(t){super(ua,"creator")}}class uR extends lP{constructor(t){super(ua,"currentPage",0,t=>t>=0)}}class uN extends lF{constructor(t){super(ua,"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 lM,this.transform=new lM}}class uO extends lF{constructor(t){super(ua,"debug",!0),this.uri=null}}class uD extends lO{constructor(t){super(ua,"defaultTypeface"),this.writingScript=o5(t.writingScript,["*","Arabic","Cyrillic","EastEuropeanRoman","Greek","Hebrew","Japanese","Korean","Roman","SimplifiedChinese","Thai","TraditionalChinese","Vietnamese"])}}class uE extends lD{constructor(t){super(ua,"destination",["pdf","pcl","ps","webClient","zpl"])}}class uP extends l_{constructor(t){super(ua,"documentAssembly")}}class u_ extends lF{constructor(t){super(ua,"driver",!0),this.name=t.name?t.name.trim():"",this.fontInfo=null,this.xdc=null}}class uL extends lD{constructor(t){super(ua,"duplexOption",["simplex","duplexFlipLongEdge","duplexFlipShortEdge"])}}class uU extends lD{constructor(t){super(ua,"dynamicRender",["forbidden","required"])}}class uj extends l_{constructor(t){super(ua,"embed")}}class uq extends l_{constructor(t){super(ua,"encrypt")}}class uH extends lF{constructor(t){super(ua,"encryption",!0),this.encrypt=null,this.encryptionLevel=null,this.permissions=null}}class u$ extends lD{constructor(t){super(ua,"encryptionLevel",["40bit","128bit"])}}class uz extends lE{constructor(t){super(ua,"enforce")}}class uG extends lF{constructor(t){super(ua,"equate"),this.force=o0({data:t.force,defaultValue:1,validate:t=>0===t}),this.from=t.from||"",this.to=t.to||""}}class uW extends lF{constructor(t){super(ua,"equateRange"),this.from=t.from||"",this.to=t.to||"",this._unicodeRange=t.unicodeRange||""}get unicodeRange(){let t=[],a=/U\+([0-9a-fA-F]+)/,r=this._unicodeRange;for(let i of r.split(",").map(t=>t.trim()).filter(t=>!!t))1===(i=i.split("-",2).map(t=>{let r=t.match(a);return r?parseInt(r[1],16):0})).length&&i.push(i[0]),t.push(i);return I(this,"unicodeRange",t)}}class uV extends lO{constructor(t){super(ua,"exclude")}[s3](){this[s0]=this[s0].trim().split(/\s+/).filter(t=>t&&["calculate","close","enter","exit","initialize","ready","validate"].includes(t))}}class uX extends lE{constructor(t){super(ua,"excludeNS")}}class uK extends lD{constructor(t){super(ua,"flipLabel",["usePrinterSetting","on","off"])}}class uY extends lF{constructor(t){super(ua,"fontInfo",!0),this.embed=null,this.map=null,this.subsetBelow=null,this.alwaysEmbed=new lM,this.defaultTypeface=new lM,this.neverEmbed=new lM}}class uJ extends l_{constructor(t){super(ua,"formFieldFilling")}}class uZ extends lE{constructor(t){super(ua,"groupParent")}}class uQ extends lD{constructor(t){super(ua,"ifEmpty",["dataValue","dataGroup","ignore","remove"])}}class u1 extends lE{constructor(t){super(ua,"includeXDPContent")}}class u0 extends lD{constructor(t){super(ua,"incrementalLoad",["none","forwardOnly"])}}class u2 extends l_{constructor(t){super(ua,"incrementalMerge")}}class u9 extends l_{constructor(t){super(ua,"interactive")}}class u5 extends lD{constructor(t){super(ua,"jog",["usePrinterSetting","none","pageSet"])}}class u3 extends lF{constructor(t){super(ua,"labelPrinter",!0),this.name=o5(t.name,["zpl","dpl","ipl","tcpl"]),this.batchOutput=null,this.flipLabel=null,this.fontInfo=null,this.xdc=null}}class u6 extends lD{constructor(t){super(ua,"layout",["paginate","panel"])}}class u7 extends lP{constructor(t){super(ua,"level",0,t=>t>0)}}class u8 extends l_{constructor(t){super(ua,"linearized")}}class u4 extends lE{constructor(t){super(ua,"locale")}}class fe extends lE{constructor(t){super(ua,"localeSet")}}class ft extends lF{constructor(t){super(ua,"log",!0),this.mode=null,this.threshold=null,this.to=null,this.uri=null}}class fa extends lF{constructor(t){super(ua,"map",!0),this.equate=new lM,this.equateRange=new lM}}class fr extends lF{constructor(t){super(ua,"mediumInfo",!0),this.map=null}}class fi extends lF{constructor(t){super(ua,"message",!0),this.msgId=null,this.severity=null}}class fn extends lF{constructor(t){super(ua,"messaging",!0),this.message=new lM}}class fs extends lD{constructor(t){super(ua,"mode",["append","overwrite"])}}class fo extends l_{constructor(t){super(ua,"modifyAnnots")}}class fl extends lP{constructor(t){super(ua,"msgId",1,t=>t>=1)}}class fc extends lE{constructor(t){super(ua,"nameAttr")}}class fh extends lO{constructor(t){super(ua,"neverEmbed")}}class fu extends lP{constructor(t){super(ua,"numberOfCopies",null,t=>t>=2&&t<=5)}}class ff extends lF{constructor(t){super(ua,"openAction",!0),this.destination=null}}class fd extends lF{constructor(t){super(ua,"output",!0),this.to=null,this.type=null,this.uri=null}}class fg extends lE{constructor(t){super(ua,"outputBin")}}class fp extends lF{constructor(t){super(ua,"outputXSL",!0),this.uri=null}}class fm extends lD{constructor(t){super(ua,"overprint",["none","both","draw","field"])}}class fb extends lE{constructor(t){super(ua,"packets")}[s3](){"*"!==this[s0]&&(this[s0]=this[s0].trim().split(/\s+/).filter(t=>["config","datasets","template","xfdf","xslt"].includes(t)))}}class fy extends lF{constructor(t){super(ua,"pageOffset"),this.x=o0({data:t.x,defaultValue:"useXDCSetting",validate:t=>!0}),this.y=o0({data:t.y,defaultValue:"useXDCSetting",validate:t=>!0})}}class fw extends lE{constructor(t){super(ua,"pageRange")}[s3](){let t=this[s0].trim().split(/\s+/).map(t=>parseInt(t,10)),a=[];for(let r=0,i=t.length;r<i;r+=2)a.push(t.slice(r,r+2));this[s0]=a}}class fx extends lD{constructor(t){super(ua,"pagination",["simplex","duplexShortEdge","duplexLongEdge"])}}class fk extends lD{constructor(t){super(ua,"paginationOverride",["none","forceDuplex","forceDuplexLongEdge","forceDuplexShortEdge","forceSimplex"])}}class fv extends lP{constructor(t){super(ua,"part",1,t=>!1)}}class fA extends lF{constructor(t){super(ua,"pcl",!0),this.name=t.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 fC extends lF{constructor(t){super(ua,"pdf",!0),this.name=t.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 fS extends lF{constructor(t){super(ua,"pdfa",!0),this.amd=null,this.conformance=null,this.includeXDPContent=null,this.part=null}}class Permissions extends lF{constructor(t){super(ua,"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 fI extends l_{constructor(t){super(ua,"pickTrayByPDFSize")}}class fT extends lE{constructor(t){super(ua,"picture")}}class fB extends l_{constructor(t){super(ua,"plaintextMetadata")}}class fF extends lD{constructor(t){super(ua,"presence",["preserve","dissolve","dissolveStructure","ignore","remove"])}}class fM extends lF{constructor(t){super(ua,"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 lM,this.labelPrinter=new lM,this.pcl=new lM,this.pdf=new lM,this.ps=new lM,this.submitUrl=new lM,this.webClient=new lM,this.zpl=new lM}}class fR extends l_{constructor(t){super(ua,"print")}}class fN extends l_{constructor(t){super(ua,"printHighQuality")}}class fO extends lD{constructor(t){super(ua,"printScaling",["appdefault","noScaling"])}}class fD extends lE{constructor(t){super(ua,"printerName")}}class fE extends lE{constructor(t){super(ua,"producer")}}class fP extends lF{constructor(t){super(ua,"ps",!0),this.name=t.name||"",this.batchOutput=null,this.fontInfo=null,this.jog=null,this.mediumInfo=null,this.outputBin=null,this.staple=null,this.xdc=null}}class Range extends lO{constructor(t){super(ua,"range")}[s3](){this[s0]=this[s0].split(",",2).map(t=>t.split("-").map(t=>parseInt(t.trim(),10))).filter(t=>t.every(t=>!isNaN(t))).map(t=>(1===t.length&&t.push(t[0]),t))}}class f_ extends lO{constructor(t){super(ua,"record")}[s3](){this[s0]=this[s0].trim();let t=parseInt(this[s0],10);!isNaN(t)&&t>=0&&(this[s0]=t)}}class fL extends lO{constructor(t){super(ua,"relevant")}[s3](){this[s0]=this[s0].trim().split(/\s+/)}}class fU extends lO{constructor(t){super(ua,"rename")}[s3](){this[s0]=this[s0].trim(),(this[s0].toLowerCase().startsWith("xml")||RegExp("[\\p{L}_][\\p{L}\\d._\\p{M}-]*","u").test(this[s0]))&&v("XFA - Rename: invalid XFA name")}}class fj extends lD{constructor(t){super(ua,"renderPolicy",["server","client"])}}class fq extends lD{constructor(t){super(ua,"runScripts",["both","client","none","server"])}}class fH extends lF{constructor(t){super(ua,"script",!0),this.currentPage=null,this.exclude=null,this.runScripts=null}}class f$ extends lD{constructor(t){super(ua,"scriptModel",["XFA","none"])}}class fz extends lD{constructor(t){super(ua,"severity",["ignore","error","information","trace","warning"])}}class fG extends lF{constructor(t){super(ua,"silentPrint",!0),this.addSilentPrint=null,this.printerName=null}}class fW extends lF{constructor(t){super(ua,"staple"),this.mode=o5(t.mode,["usePrinterSetting","on","off"])}}class fV extends lE{constructor(t){super(ua,"startNode")}}class fX extends lP{constructor(t){super(ua,"startPage",0,t=>!0)}}class fK extends lD{constructor(t){super(ua,"submitFormat",["html","delegate","fdf","xml","pdf"])}}class fY extends lE{constructor(t){super(ua,"submitUrl")}}class fJ extends lP{constructor(t){super(ua,"subsetBelow",100,t=>t>=0&&t<=100)}}class fZ extends l_{constructor(t){super(ua,"suppressBanner")}}class fQ extends l_{constructor(t){super(ua,"tagged")}}class f1 extends lF{constructor(t){super(ua,"template",!0),this.base=null,this.relevant=null,this.startPage=null,this.uri=null,this.xsl=null}}class f0 extends lD{constructor(t){super(ua,"threshold",["trace","error","information","warning"])}}class f2 extends lD{constructor(t){super(ua,"to",["null","memory","stderr","stdout","system","uri"])}}class f9 extends lF{constructor(t){super(ua,"templateCache"),this.maxEntries=o0({data:t.maxEntries,defaultValue:5,validate:t=>t>=0})}}class f5 extends lF{constructor(t){super(ua,"trace",!0),this.area=new lM}}class f3 extends lF{constructor(t){super(ua,"transform",!0),this.groupParent=null,this.ifEmpty=null,this.nameAttr=null,this.picture=null,this.presence=null,this.rename=null,this.whitespace=null}}class f6 extends lD{constructor(t){super(ua,"type",["none","ascii85","asciiHex","ccittfax","flate","lzw","runLength","native","xdp","mergedXDP"])}}class f7 extends lE{constructor(t){super(ua,"uri")}}class f8 extends lD{constructor(t){super(ua,"validate",["preSubmit","prePrint","preExecute","preSave"])}}class f4 extends lO{constructor(t){super(ua,"validateApprovalSignatures")}[s3](){this[s0]=this[s0].trim().split(/\s+/).filter(t=>["docReady","postSign"].includes(t))}}class de extends lD{constructor(t){super(ua,"validationMessaging",["allMessagesIndividually","allMessagesTogether","firstMessageOnly","noMessages"])}}class dt extends lD{constructor(t){super(ua,"version",["1.7","1.6","1.5","1.4","1.3","1.2"])}}class da extends lF{constructor(t){super(ua,"VersionControl"),this.outputBelow=o5(t.outputBelow,["warn","error","update"]),this.sourceAbove=o5(t.sourceAbove,["warn","error"]),this.sourceBelow=o5(t.sourceBelow,["update","maintain"])}}class dr extends lF{constructor(t){super(ua,"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 di extends lF{constructor(t){super(ua,"webClient",!0),this.name=t.name?t.name.trim():"",this.fontInfo=null,this.xdc=null}}class dn extends lD{constructor(t){super(ua,"whitespace",["preserve","ltrim","normalize","rtrim","trim"])}}class Window extends lO{constructor(t){super(ua,"window")}[s3](){let t=this[s0].split(",",2).map(t=>parseInt(t.trim(),10));t.some(t=>isNaN(t))?this[s0]=[0,0]:(1===t.length&&t.push(t[0]),this[s0]=t)}}class ds extends lF{constructor(t){super(ua,"xdc",!0),this.uri=new lM,this.xsl=new lM}}class dl extends lF{constructor(t){super(ua,"xdp",!0),this.packets=null}}class dc extends lF{constructor(t){super(ua,"xsl",!0),this.debug=null,this.uri=null}}class dh extends lF{constructor(t){super(ua,"zpl",!0),this.name=t.name?t.name.trim():"",this.batchOutput=null,this.flipLabel=null,this.fontInfo=null,this.xdc=null}}class du{static[oY](t,a){if(du.hasOwnProperty(t))return du[t](a)}static acrobat(t){return new ur(t)}static acrobat7(t){return new ui(t)}static ADBE_JSConsole(t){return new un(t)}static ADBE_JSDebugger(t){return new us(t)}static addSilentPrint(t){return new uo(t)}static addViewerPreferences(t){return new ul(t)}static adjustData(t){return new uc(t)}static adobeExtensionLevel(t){return new uh(t)}static agent(t){return new uu(t)}static alwaysEmbed(t){return new uf(t)}static amd(t){return new ud(t)}static area(t){return new ug(t)}static attributes(t){return new up(t)}static autoSave(t){return new um(t)}static base(t){return new ub(t)}static batchOutput(t){return new uy(t)}static behaviorOverride(t){return new uw(t)}static cache(t){return new Cache(t)}static change(t){return new ux(t)}static common(t){return new uk(t)}static compress(t){return new uv(t)}static compressLogicalStructure(t){return new uA(t)}static compressObjectStream(t){return new uC(t)}static compression(t){return new uS(t)}static config(t){return new uI(t)}static conformance(t){return new uT(t)}static contentCopy(t){return new uB(t)}static copies(t){return new uF(t)}static creator(t){return new uM(t)}static currentPage(t){return new uR(t)}static data(t){return new uN(t)}static debug(t){return new uO(t)}static defaultTypeface(t){return new uD(t)}static destination(t){return new uE(t)}static documentAssembly(t){return new uP(t)}static driver(t){return new u_(t)}static duplexOption(t){return new uL(t)}static dynamicRender(t){return new uU(t)}static embed(t){return new uj(t)}static encrypt(t){return new uq(t)}static encryption(t){return new uH(t)}static encryptionLevel(t){return new u$(t)}static enforce(t){return new uz(t)}static equate(t){return new uG(t)}static equateRange(t){return new uW(t)}static exclude(t){return new uV(t)}static excludeNS(t){return new uX(t)}static flipLabel(t){return new uK(t)}static fontInfo(t){return new uY(t)}static formFieldFilling(t){return new uJ(t)}static groupParent(t){return new uZ(t)}static ifEmpty(t){return new uQ(t)}static includeXDPContent(t){return new u1(t)}static incrementalLoad(t){return new u0(t)}static incrementalMerge(t){return new u2(t)}static interactive(t){return new u9(t)}static jog(t){return new u5(t)}static labelPrinter(t){return new u3(t)}static layout(t){return new u6(t)}static level(t){return new u7(t)}static linearized(t){return new u8(t)}static locale(t){return new u4(t)}static localeSet(t){return new fe(t)}static log(t){return new ft(t)}static map(t){return new fa(t)}static mediumInfo(t){return new fr(t)}static message(t){return new fi(t)}static messaging(t){return new fn(t)}static mode(t){return new fs(t)}static modifyAnnots(t){return new fo(t)}static msgId(t){return new fl(t)}static nameAttr(t){return new fc(t)}static neverEmbed(t){return new fh(t)}static numberOfCopies(t){return new fu(t)}static openAction(t){return new ff(t)}static output(t){return new fd(t)}static outputBin(t){return new fg(t)}static outputXSL(t){return new fp(t)}static overprint(t){return new fm(t)}static packets(t){return new fb(t)}static pageOffset(t){return new fy(t)}static pageRange(t){return new fw(t)}static pagination(t){return new fx(t)}static paginationOverride(t){return new fk(t)}static part(t){return new fv(t)}static pcl(t){return new fA(t)}static pdf(t){return new fC(t)}static pdfa(t){return new fS(t)}static permissions(t){return new Permissions(t)}static pickTrayByPDFSize(t){return new fI(t)}static picture(t){return new fT(t)}static plaintextMetadata(t){return new fB(t)}static presence(t){return new fF(t)}static present(t){return new fM(t)}static print(t){return new fR(t)}static printHighQuality(t){return new fN(t)}static printScaling(t){return new fO(t)}static printerName(t){return new fD(t)}static producer(t){return new fE(t)}static ps(t){return new fP(t)}static range(t){return new Range(t)}static record(t){return new f_(t)}static relevant(t){return new fL(t)}static rename(t){return new fU(t)}static renderPolicy(t){return new fj(t)}static runScripts(t){return new fq(t)}static script(t){return new fH(t)}static scriptModel(t){return new f$(t)}static severity(t){return new fz(t)}static silentPrint(t){return new fG(t)}static staple(t){return new fW(t)}static startNode(t){return new fV(t)}static startPage(t){return new fX(t)}static submitFormat(t){return new fK(t)}static submitUrl(t){return new fY(t)}static subsetBelow(t){return new fJ(t)}static suppressBanner(t){return new fZ(t)}static tagged(t){return new fQ(t)}static template(t){return new f1(t)}static templateCache(t){return new f9(t)}static threshold(t){return new f0(t)}static to(t){return new f2(t)}static trace(t){return new f5(t)}static transform(t){return new f3(t)}static type(t){return new f6(t)}static uri(t){return new f7(t)}static validate(t){return new f8(t)}static validateApprovalSignatures(t){return new f4(t)}static validationMessaging(t){return new de(t)}static version(t){return new dt(t)}static versionControl(t){return new da(t)}static viewerPreferences(t){return new dr(t)}static webClient(t){return new di(t)}static whitespace(t){return new dn(t)}static window(t){return new Window(t)}static xdc(t){return new ds(t)}static xdp(t){return new dl(t)}static xsl(t){return new dc(t)}static zpl(t){return new dh(t)}}let df=oJ.connectionSet.id;class dd extends lF{constructor(t){super(df,"connectionSet",!0),this.wsdlConnection=new lM,this.xmlConnection=new lM,this.xsdConnection=new lM}}class dg extends lF{constructor(t){super(df,"effectiveInputPolicy"),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||""}}class dp extends lF{constructor(t){super(df,"effectiveOutputPolicy"),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||""}}class dm extends lE{constructor(t){super(df,"operation"),this.id=t.id||"",this.input=t.input||"",this.name=t.name||"",this.output=t.output||"",this.use=t.use||"",this.usehref=t.usehref||""}}class db extends lE{constructor(t){super(df,"rootElement"),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||""}}class dy extends lE{constructor(t){super(df,"soapAction"),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||""}}class dw extends lE{constructor(t){super(df,"soapAddress"),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||""}}class dx extends lE{constructor(t){super(df,"uri"),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||""}}class dk extends lE{constructor(t){super(df,"wsdlAddress"),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||""}}class dv extends lF{constructor(t){super(df,"wsdlConnection",!0),this.dataDescription=t.dataDescription||"",this.name=t.name||"",this.effectiveInputPolicy=null,this.effectiveOutputPolicy=null,this.operation=null,this.soapAction=null,this.soapAddress=null,this.wsdlAddress=null}}class dA extends lF{constructor(t){super(df,"xmlConnection",!0),this.dataDescription=t.dataDescription||"",this.name=t.name||"",this.uri=null}}class dC extends lF{constructor(t){super(df,"xsdConnection",!0),this.dataDescription=t.dataDescription||"",this.name=t.name||"",this.rootElement=null,this.uri=null}}class dS{static[oY](t,a){if(dS.hasOwnProperty(t))return dS[t](a)}static connectionSet(t){return new dd(t)}static effectiveInputPolicy(t){return new dg(t)}static effectiveOutputPolicy(t){return new dp(t)}static operation(t){return new dm(t)}static rootElement(t){return new db(t)}static soapAction(t){return new dy(t)}static soapAddress(t){return new dw(t)}static uri(t){return new dx(t)}static wsdlAddress(t){return new dk(t)}static wsdlConnection(t){return new dv(t)}static xmlConnection(t){return new dA(t)}static xsdConnection(t){return new dC(t)}}let dI=oJ.datasets.id;class dT extends lN{constructor(t){super(dI,"data",t)}[ok](){return!0}}class dB extends lF{constructor(t){super(dI,"datasets",!0),this.data=null,this.Signature=null}[oM](t){let a=t[oB];("data"===a&&t[oT]===dI||"Signature"===a&&t[oT]===oJ.signature.id)&&(this[a]=t),this[sX](t)}}class dF{static[oY](t,a){if(dF.hasOwnProperty(t))return dF[t](a)}static datasets(t){return new dB(t)}static data(t){return new dT(t)}}let dM=oJ.localeSet.id;class dR extends lF{constructor(t){super(dM,"calendarSymbols",!0),this.name="gregorian",this.dayNames=new lM(2),this.eraNames=null,this.meridiemNames=null,this.monthNames=new lM(2)}}class dN extends lE{constructor(t){super(dM,"currencySymbol"),this.name=o5(t.name,["symbol","isoname","decimal"])}}class dO extends lF{constructor(t){super(dM,"currencySymbols",!0),this.currencySymbol=new lM(3)}}class dD extends lE{constructor(t){super(dM,"datePattern"),this.name=o5(t.name,["full","long","med","short"])}}class dE extends lF{constructor(t){super(dM,"datePatterns",!0),this.datePattern=new lM(4)}}class dP extends lO{constructor(t){super(dM,"dateTimeSymbols")}}class d_ extends lE{constructor(t){super(dM,"day")}}class dL extends lF{constructor(t){super(dM,"dayNames",!0),this.abbr=o0({data:t.abbr,defaultValue:0,validate:t=>1===t}),this.day=new lM(7)}}class dU extends lE{constructor(t){super(dM,"era")}}class dj extends lF{constructor(t){super(dM,"eraNames",!0),this.era=new lM(2)}}class dq extends lF{constructor(t){super(dM,"locale",!0),this.desc=t.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 dH extends lF{constructor(t){super(dM,"localeSet",!0),this.locale=new lM}}class d$ extends lE{constructor(t){super(dM,"meridiem")}}class dz extends lF{constructor(t){super(dM,"meridiemNames",!0),this.meridiem=new lM(2)}}class dG extends lE{constructor(t){super(dM,"month")}}class dW extends lF{constructor(t){super(dM,"monthNames",!0),this.abbr=o0({data:t.abbr,defaultValue:0,validate:t=>1===t}),this.month=new lM(12)}}class dV extends lE{constructor(t){super(dM,"numberPattern"),this.name=o5(t.name,["full","long","med","short"])}}class dX extends lF{constructor(t){super(dM,"numberPatterns",!0),this.numberPattern=new lM(4)}}class dK extends lE{constructor(t){super(dM,"numberSymbol"),this.name=o5(t.name,["decimal","grouping","percent","minus","zero"])}}class dY extends lF{constructor(t){super(dM,"numberSymbols",!0),this.numberSymbol=new lM(5)}}class dJ extends lE{constructor(t){super(dM,"timePattern"),this.name=o5(t.name,["full","long","med","short"])}}class dZ extends lF{constructor(t){super(dM,"timePatterns",!0),this.timePattern=new lM(4)}}class dQ extends lF{constructor(t){super(dM,"typeFace",!0),this.name=""|t.name}}class d1 extends lF{constructor(t){super(dM,"typeFaces",!0),this.typeFace=new lM}}class d0{static[oY](t,a){if(d0.hasOwnProperty(t))return d0[t](a)}static calendarSymbols(t){return new dR(t)}static currencySymbol(t){return new dN(t)}static currencySymbols(t){return new dO(t)}static datePattern(t){return new dD(t)}static datePatterns(t){return new dE(t)}static dateTimeSymbols(t){return new dP(t)}static day(t){return new d_(t)}static dayNames(t){return new dL(t)}static era(t){return new dU(t)}static eraNames(t){return new dj(t)}static locale(t){return new dq(t)}static localeSet(t){return new dH(t)}static meridiem(t){return new d$(t)}static meridiemNames(t){return new dz(t)}static month(t){return new dG(t)}static monthNames(t){return new dW(t)}static numberPattern(t){return new dV(t)}static numberPatterns(t){return new dX(t)}static numberSymbol(t){return new dK(t)}static numberSymbols(t){return new dY(t)}static timePattern(t){return new dJ(t)}static timePatterns(t){return new dZ(t)}static typeFace(t){return new dQ(t)}static typeFaces(t){return new d1(t)}}let d2=oJ.signature.id;class d9 extends lF{constructor(t){super(d2,"signature",!0)}}class d5{static[oY](t,a){if(d5.hasOwnProperty(t))return d5[t](a)}static signature(t){return new d9(t)}}let d3=oJ.stylesheet.id;class d6 extends lF{constructor(t){super(d3,"stylesheet",!0)}}class d7{static[oY](t,a){if(d7.hasOwnProperty(t))return d7[t](a)}static stylesheet(t){return new d6(t)}}let d8=oJ.xdp.id;class d4 extends lF{constructor(t){super(d8,"xdp",!0),this.uuid=t.uuid||"",this.timeStamp=t.timeStamp||"",this.config=null,this.connectionSet=null,this.datasets=null,this.localeSet=null,this.stylesheet=new lM,this.template=null}[oR](t){let a=oJ[t[oB]];return a&&t[oT]===a.id}}class ge{static[oY](t,a){if(ge.hasOwnProperty(t))return ge[t](a)}static xdp(t){return new d4(t)}}let gt=oJ.xhtml.id,ga=Symbol(),gr=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"]),gi=new Map([["page-break-after","breakAfter"],["page-break-before","breakBefore"],["page-break-inside","breakInside"],["kerning-mode",t=>"none"===t?"none":"normal"],["xfa-font-horizontal-scale",t=>`scaleX(${Math.max(0,parseInt(t)/100).toFixed(2)})`],["xfa-font-vertical-scale",t=>`scaleY(${Math.max(0,parseInt(t)/100).toFixed(2)})`],["xfa-spacerun",""],["xfa-tab-stops",""],["font-size",(t,a)=>lU(.99*(t=a.fontSize=Math.abs(o3(t))))],["letter-spacing",t=>lU(o3(t))],["line-height",t=>lU(o3(t))],["margin",t=>lU(o3(t))],["margin-bottom",t=>lU(o3(t))],["margin-left",t=>lU(o3(t))],["margin-right",t=>lU(o3(t))],["margin-top",t=>lU(o3(t))],["text-indent",t=>lU(o3(t))],["font-family",t=>t],["vertical-align",t=>lU(o3(t))]]),gn=/\s+/g,gs=/[\r\n]+/g,go=/\r\n?/g,gl=new Set(["body","html"]);class gc extends lN{constructor(t,a){super(gt,a),this[ga]=!1,this.style=t.style||""}[sY](t){var a;super[sY](t),this.style=(a=this,a.style?a.style.split(";").filter(t=>!!t.trim()).map(t=>t.split(":",2).map(t=>t.trim())).filter(([t,r])=>("font-family"===t&&a[of].usedTypefaces.add(r),gr.has(t))).map(t=>t.join(":")).join(";"):"")}[sW](){return!gl.has(this[oB])}[oN](t,a=!1){a?this[ga]=!0:(t=t.replaceAll(gs,""),this.style.includes("xfa-spacerun:yes")||(t=t.replaceAll(gn," "))),t&&(this[s0]+=t)}[oO](t,a=!0){let r=Object.create(null),i={top:NaN,bottom:NaN,left:NaN,right:NaN},n=null;for(let[t,a]of this.style.split(";").map(t=>t.split(":",2)))switch(t){case"font-family":r.typeface=o1(a);break;case"font-size":r.size=o3(a);break;case"font-weight":r.weight=a;break;case"font-style":r.posture=a;break;case"letter-spacing":r.letterSpacing=o3(a);break;case"margin":let s=a.split(/ \t/).map(t=>o3(t));switch(s.length){case 1:i.top=i.bottom=i.left=i.right=s[0];break;case 2:i.top=i.bottom=s[0],i.left=i.right=s[1];break;case 3:i.top=s[0],i.bottom=s[2],i.left=i.right=s[1];break;case 4:i.top=s[0],i.left=s[1],i.bottom=s[2],i.right=s[3]}break;case"margin-top":i.top=o3(a);break;case"margin-bottom":i.bottom=o3(a);break;case"margin-left":i.left=o3(a);break;case"margin-right":i.right=o3(a);break;case"line-height":n=o3(a)}if(t.pushData(r,i,n),this[s0])t.addString(this[s0]);else for(let a of this[os]())"#text"!==a[oB]?a[oO](t):t.addString(a[s0]);a&&t.popFont()}[oW](t){let a;let r=[];return(this[s5]={children:r},this[sK]({}),0!==r.length||this[s0])?(a=this[ga]?this[s0]?this[s0].replaceAll(go,"\n"):void 0:this[s0]||void 0,o8.success({name:this[oB],attributes:{href:this.href,style:function(t,a,r){let i=Object.create(null);if(!t)return i;let n=Object.create(null);for(let[a,r]of t.split(";").map(t=>t.split(":",2))){let t=gi.get(a);if(""===t)continue;let s=r;t&&(s="string"==typeof t?t:t(r,n)),a.endsWith("scale")?i.transform=i.transform?`${i[a]} ${s}`:s:i[a.replaceAll(/-([a-zA-Z])/g,(t,a)=>a.toUpperCase())]=s}if(i.fontFamily&&l1({typeface:i.fontFamily,weight:i.fontWeight||"normal",posture:i.fontStyle||"normal",size:n.fontSize||0},a,a[of].fontFinder,i),r&&i.verticalAlign&&"0px"!==i.verticalAlign&&i.fontSize){let t=o3(i.fontSize);i.fontSize=lU(.583*t),i.verticalAlign=lU(Math.sign(o3(i.verticalAlign))*t*.333)}return r&&i.fontSize&&(i.fontSize=`calc(${i.fontSize} * var(--total-scale-factor))`),lK(i),i}(this.style,this,this[ga])},children:r,value:a})):o8.EMPTY}}class gh extends gc{constructor(t){super(t,"a"),this.href=l0(t.href)||""}}class gu extends gc{constructor(t){super(t,"b")}[oO](t){t.pushFont({weight:"bold"}),super[oO](t),t.popFont()}}class gf extends gc{constructor(t){super(t,"body")}[oW](t){let a=super[oW](t),{html:r}=a;return r?(r.name="div",r.attributes.class=["xfaRich"],a):o8.EMPTY}}class gd extends gc{constructor(t){super(t,"br")}[oz](){return"\n"}[oO](t){t.addString("\n")}[oW](t){return o8.success({name:"br"})}}class gg extends gc{constructor(t){super(t,"html")}[oW](t){let a=[];if(this[s5]={children:a},this[sK]({}),0===a.length)return o8.success({name:"div",attributes:{class:["xfaRich"],style:{}},value:this[s0]||""});if(1===a.length){let t=a[0];if(t.attributes?.class.includes("xfaRich"))return o8.success(t)}return o8.success({name:"div",attributes:{class:["xfaRich"],style:{}},children:a})}}class gp extends gc{constructor(t){super(t,"i")}[oO](t){t.pushFont({posture:"italic"}),super[oO](t),t.popFont()}}class gm extends gc{constructor(t){super(t,"li")}}class gb extends gc{constructor(t){super(t,"ol")}}class gy extends gc{constructor(t){super(t,"p")}[oO](t){super[oO](t,!1),t.addString("\n"),t.addPara(),t.popFont()}[oz](){return this[oh]()[os]().at(-1)===this?super[oz]():super[oz]()+"\n"}}class gw extends gc{constructor(t){super(t,"span")}}class gx extends gc{constructor(t){super(t,"sub")}}class gk extends gc{constructor(t){super(t,"sup")}}class gv extends gc{constructor(t){super(t,"ul")}}class gA{static[oY](t,a){if(gA.hasOwnProperty(t))return gA[t](a)}static a(t){return new gh(t)}static b(t){return new gu(t)}static body(t){return new gf(t)}static br(t){return new gd(t)}static html(t){return new gg(t)}static i(t){return new gp(t)}static li(t){return new gm(t)}static ol(t){return new gb(t)}static p(t){return new gy(t)}static span(t){return new gw(t)}static sub(t){return new gx(t)}static sup(t){return new gk(t)}static ul(t){return new gv(t)}}let gC={config:du,connection:dS,datasets:dF,localeSet:d0,signature:d5,stylesheet:d7,template:h7,xdp:ge,xhtml:gA};class gS{constructor(t){this.namespaceId=t}[oY](t,a){return new lN(this.namespaceId,t,a)}}class gI extends lF{constructor(t){super(-1,"root",Object.create(null)),this.element=null,this[og]=t}[oM](t){return this.element=t,!0}[s3](){super[s3](),this.element.template instanceof hY&&(this[og].set(o_,this.element),this.element.template[oL](this[og]),this.element.template[og]=this[og])}}class gT extends lF{constructor(){super(-1,"",Object.create(null))}[oM](t){return!1}}class gB{constructor(t=null){this._namespaceStack=[],this._nsAgnosticLevel=0,this._namespacePrefixes=new Map,this._namespaces=new Map,this._nextNsId=Math.max(...Object.values(oJ).map(({id:t})=>t)),this._currentNamespace=t||new gS(++this._nextNsId)}buildRoot(t){return new gI(t)}build({nsPrefix:t,name:a,attributes:r,namespace:i,prefixes:n}){let s=null!==i;if(s&&(this._namespaceStack.push(this._currentNamespace),this._currentNamespace=this._searchNamespace(i)),n&&this._addNamespacePrefix(n),r.hasOwnProperty(oF)){let t=gC.datasets,a=r[oF],i=null;for(let[r,n]of Object.entries(a))if(this._getNamespaceToUse(r)===t){i={xfa:n};break}i?r[oF]=i:delete r[oF]}let o=this._getNamespaceToUse(t),l=o?.[oY](a,r)||new gT;return l[ok]()&&this._nsAgnosticLevel++,(s||n||l[ok]())&&(l[sZ]={hasNamespace:s,prefixes:n,nsAgnostic:l[ok]()}),l}isNsAgnostic(){return this._nsAgnosticLevel>0}_searchNamespace(t){let a=this._namespaces.get(t);if(a)return a;for(let[r,{check:i}]of Object.entries(oJ))if(i(t)){if(a=gC[r])return this._namespaces.set(t,a),a;break}return a=new gS(++this._nextNsId),this._namespaces.set(t,a),a}_addNamespacePrefix(t){for(let{prefix:a,value:r}of t){let t=this._searchNamespace(r),i=this._namespacePrefixes.get(a);i||(i=[],this._namespacePrefixes.set(a,i)),i.push(t)}}_getNamespaceToUse(t){if(!t)return this._currentNamespace;let a=this._namespacePrefixes.get(t);return a?.length>0?a.at(-1):(v(`Unknown namespace prefix: ${t}.`),null)}clean(t){let{hasNamespace:a,prefixes:r,nsAgnostic:i}=t;a&&(this._currentNamespace=this._namespaceStack.pop()),r&&r.forEach(({prefix:t})=>{this._namespacePrefixes.get(t).pop()}),i&&this._nsAgnosticLevel--}}class gF extends sO{constructor(t=null,a=!1){super(),this._builder=new gB(t),this._stack=[],this._globalData={usedTypefaces:new Set},this._ids=new Map,this._current=this._builder.buildRoot(this._ids),this._errorCode=0,this._whiteRegex=/^\s+$/,this._nbsps=/\xa0+/g,this._richText=a}parse(t){if(this.parseXml(t),0===this._errorCode)return this._current[s3](),this._current.element}onText(t){t=t.replace(this._nbsps,t=>t.slice(1)+" "),this._richText||this._current[sW]()?this._current[oN](t,this._richText):this._whiteRegex.test(t)||this._current[oN](t.trim())}onCdata(t){this._current[oN](t)}_mkAttributes(t,a){let r=null,i=null,n=Object.create({});for(let{name:s,value:o}of t)if("xmlns"===s)r?v(`XFA - multiple namespace definition in <${a}>`):r=o;else if(s.startsWith("xmlns:")){let t=s.substring(6);(i??=[]).push({prefix:t,value:o})}else{let t=s.indexOf(":");if(-1===t)n[s]=o;else{let a=n[oF]??=Object.create(null),[r,i]=[s.slice(0,t),s.slice(t+1)];(a[r]||=Object.create(null))[i]=o}}return[r,i,n]}_getNameAndPrefix(t,a){let r=t.indexOf(":");return -1===r?[t,null]:[t.substring(r+1),a?"":t.substring(0,r)]}onBeginElement(t,a,r){let[i,n,s]=this._mkAttributes(a,t),[o,l]=this._getNameAndPrefix(t,this._builder.isNsAgnostic()),c=this._builder.build({nsPrefix:l,name:o,attributes:s,namespace:i,prefixes:n});c[of]=this._globalData,r?(c[s3](),this._current[oM](c)&&c[oj](this._ids),c[sY](this._builder)):(this._stack.push(this._current),this._current=c)}onEndElement(t){let a=this._current;if(a[ob]()&&"string"==typeof a[s0]){let t=new gF;t._globalData=this._globalData;let r=t.parse(a[s0]);a[s0]=null,a[oM](r)}a[s3](),this._current=this._stack.pop(),this._current[oM](a)&&a[oj](this._ids),a[sY](this._builder)}onError(t){this._errorCode=t}}class gM{constructor(t){try{this.root=(new gF).parse(gM._createDocument(t));let a=new ue(this.root);this.form=a.bind(),this.dataHandler=new ut(this.root,a.getData()),this.form[of].template=this.form}catch(t){v(`XFA - an error occurred during parsing and binding: ${t}`)}}isValid(){return!(!this.root||!this.form)}_createPagesHelper(){let t=this.form[oG]();return new Promise((a,r)=>{let i=()=>{try{let r=t.next();r.done?a(r.value):setTimeout(i,0)}catch(t){r(t)}};setTimeout(i,0)})}async _createPages(){try{this.pages=await this._createPagesHelper(),this.dims=this.pages.children.map(t=>{let{width:a,height:r}=t.attributes.style;return[0,0,parseInt(a),parseInt(r)]})}catch(t){v(`XFA - an error occurred during layout: ${t}`)}}getBoundingBox(t){return this.dims[t]}async getNumPages(){return this.pages||await this._createPages(),this.dims.length}setImages(t){this.form[of].images=t}setFonts(t){this.form[of].fontFinder=new o4(t);let a=[];for(let t of this.form[of].usedTypefaces)t=o1(t),this.form[of].fontFinder.find(t)||a.push(t);return a.length>0?a:null}appendFonts(t,a){this.form[of].fontFinder.add(t,a)}async getPages(){this.pages||await this._createPages();let t=this.pages;return this.pages=null,t}serializeData(t){return this.dataHandler.serialize(t)}static _createDocument(t){return t["/xdp:xdp"]?Object.values(t).join(""):t["xdp:xdp"]}static getRichTextAsHtml(t){if(!t||"string"!=typeof t)return null;try{let a=new gF(gA,!0).parse(t);if(!["body","xhtml"].includes(a[oB])){let t=gA.body({});t[sX](a),a=t}let r=a[oW]();if(!r.success)return null;let{html:i}=r,{attributes:n}=i;return n&&(n.class&&(n.class=n.class.filter(t=>!t.startsWith("xfa"))),n.dir="auto"),{html:i,str:a[oz]()}}catch(t){v(`XFA - an error occurred during parsing of rich text: ${t}`)}return null}}class gR{static createGlobals(t){return Promise.all([t.ensureCatalog("acroForm"),t.ensureDoc("xfaDatasets"),t.ensureCatalog("structTreeRoot"),t.ensureCatalog("baseUrl"),t.ensureCatalog("attachments"),t.ensureCatalog("globalColorSpaceCache")]).then(([a,r,i,n,s,o])=>({pdfManager:t,acroForm:a instanceof en?a:en.empty,xfaDatasets:r,structTreeRoot:i,baseUrl:n,attachments:s,globalColorSpaceCache:o}),t=>(v(`createGlobals: "${t}".`),null))}static async create(t,a,r,i,n,s,o,l){let c=n?await this._getPageIndex(t,a,r.pdfManager):null;return r.pdfManager.ensure(this,"_create",[t,a,r,i,n,s,o,c,l])}static _create(t,a,r,i,n=!1,s=null,o=null,l=null,c=null){let h=t.fetchIfRef(a);if(!(h instanceof en))return;let u=h.get("Subtype");if(u=u instanceof ea?u.name:null,o&&!o.has(p[u.toUpperCase()]))return null;let{acroForm:f,pdfManager:d}=r,g=a instanceof es?a.toString():`annot_${i.createObjId()}`,m={xref:t,ref:a,dict:h,subtype:u,id:g,annotationGlobals:r,collectFields:n,orphanFields:s,needAppearances:!n&&!0===f.get("NeedAppearances"),pageIndex:l,evaluatorOptions:d.evaluatorOptions,pageRef:c};switch(u){case"Link":return new gG(m);case"Text":return new gz(m);case"Widget":let b=eI({dict:h,key:"FT"});switch(b=b instanceof ea?b.name:null){case"Tx":return new gj(m);case"Btn":return new gq(m);case"Ch":return new gH(m);case"Sig":return new g$(m)}return v(`Unimplemented widget field type "${b}", falling back to base field type.`),new gU(m);case"Popup":return new gW(m);case"FreeText":return new gV(m);case"Line":return new gX(m);case"Square":return new gK(m);case"Circle":return new gY(m);case"PolyLine":return new gJ(m);case"Polygon":return new gZ(m);case"Caret":return new gQ(m);case"Ink":return new g1(m);case"Highlight":return new g0(m);case"Underline":return new g2(m);case"Squiggly":return new g9(m);case"StrikeOut":return new g5(m);case"Stamp":return new g3(m);case"FileAttachment":return new g6(m);default:return n||v(u?`Unimplemented annotation type "${u}", falling back to base annotation.`:"Annotation is missing the required /Subtype."),new gP(m)}}static async _getPageIndex(t,a,r){try{let i=await t.fetchIfRefAsync(a);if(!(i instanceof en))return -1;let n=i.getRaw("P");if(n instanceof es)try{return await r.ensureCatalog("getPageIndex",[n])}catch(t){k(`_getPageIndex -- not a valid page reference: "${t}".`)}if(i.has("Kids"))return -1;let s=await r.ensureDoc("numPages");for(let t=0;t<s;t++){let i=await r.getPage(t),n=await r.ensure(i,"annotations");for(let r of n)if(r instanceof es&&ef(r,a))return t}}catch(t){v(`_getPageIndex: "${t}".`)}return -1}static generateImages(t,a,r){let i;if(!r)return v("generateImages: OffscreenCanvas is not supported, cannot save or print some annotations with images."),null;for(let{bitmapId:r,bitmap:n}of t)n&&(i||=new Map).set(r,g3.createImage(n,a));return i}static async saveNewAnnotations(t,a,r,i,n){let s;let o=t.xref,l=[],{isOffscreenCanvasSupported:c}=t.options;for(let h of r)if(!h.deleted)switch(h.annotationType){case 3:if(!s){let t=new en(o);t.setIfName("BaseFont","Helvetica"),t.setIfName("Type","Font"),t.setIfName("Subtype","Type1"),t.setIfName("Encoding","WinAnsiEncoding"),s=o.getNewTemporaryRef(),n.put(s,{data:t})}l.push(gV.createNewAnnotation(o,h,n,{evaluator:t,task:a,baseFontRef:s}));break;case 9:h.quadPoints?l.push(g0.createNewAnnotation(o,h,n)):l.push(g1.createNewAnnotation(o,h,n));break;case 15:l.push(g1.createNewAnnotation(o,h,n));break;case 13:let r=c?await i?.get(h.bitmapId):null;if(r?.imageStream){let{imageStream:t,smaskStream:a}=r;if(a){let r=o.getNewTemporaryRef();n.put(r,{data:a}),t.dict.set("SMask",r)}let i=r.imageRef=o.getNewTemporaryRef();n.put(i,{data:t}),r.imageStream=r.smaskStream=null}l.push(g3.createNewAnnotation(o,h,n,{image:r}));break;case 101:l.push(g3.createNewAnnotation(o,h,n,{}))}return{annotations:(await Promise.all(l)).flat()}}static async printNewAnnotations(t,a,r,i,n){if(!i)return null;let{options:s,xref:o}=a,l=[];for(let c of i)if(!c.deleted)switch(c.annotationType){case 3:l.push(gV.createNewPrintAnnotation(t,o,c,{evaluator:a,task:r,evaluatorOptions:s}));break;case 9:c.quadPoints?l.push(g0.createNewPrintAnnotation(t,o,c,{evaluatorOptions:s})):l.push(g1.createNewPrintAnnotation(t,o,c,{evaluatorOptions:s}));break;case 15:l.push(g1.createNewPrintAnnotation(t,o,c,{evaluatorOptions:s}));break;case 13:let i=s.isOffscreenCanvasSupported?await n?.get(c.bitmapId):null;if(i?.imageStream){let{imageStream:t,smaskStream:a}=i;a&&t.dict.set("SMask",a),i.imageRef=new tD(t,t.length),i.imageStream=i.smaskStream=null}l.push(g3.createNewPrintAnnotation(t,o,c,{image:i,evaluatorOptions:s}));break;case 101:l.push(g3.createNewPrintAnnotation(t,o,c,{evaluatorOptions:s}))}return Promise.all(l)}}function gN(t,a=new Uint8ClampedArray(3)){if(!Array.isArray(t))return a;let r=a||new Uint8ClampedArray(3);switch(t.length){case 0:return null;case 1:return tS.gray.getRgbItem(t,0,r,0),r;case 3:return tS.rgb.getRgbItem(t,0,r,0),r;case 4:return tS.cmyk.getRgbItem(t,0,r,0),r;default:return a}}function gO(t,a=null){return t&&Array.from(t,t=>t/255)||a}function gD(t,a){let r=t.getArray("QuadPoints");if(!eD(r,null)||0===r.length||r.length%8>0)return null;let i=new Float32Array(r.length);for(let t=0,n=r.length;t<n;t+=8){let[n,s,o,l,c,h,u,f]=r.slice(t,t+8),d=Math.min(n,o,c,u),g=Math.max(n,o,c,u),p=Math.min(s,l,h,f),m=Math.max(s,l,h,f);if(null!==a&&(d<a[0]||g>a[2]||p<a[1]||m>a[3]))return null;i.set([d,m,g,m,d,p,g,p],t)}return i}function gE(t,a,r){let i=new Float32Array([1/0,1/0,-1/0,-1/0]);j.axialAlignedBoundingBox(a,r,i);let[n,s,o,l]=i;if(n===o||s===l)return[1,0,0,1,t[0],t[1]];let c=(t[2]-t[0])/(o-n),h=(t[3]-t[1])/(l-s);return[c,0,0,h,t[0]-n*c,t[1]-s*h]}class gP{constructor(t){let{dict:a,xref:r,annotationGlobals:i,ref:n,orphanFields:s}=t,o=s?.get(n);o&&a.set("Parent",o),this.setTitle(a.get("T")),this.setContents(a.get("Contents")),this.setModificationDate(a.get("M")),this.setFlags(a.get("F")),this.setRectangle(a.getArray("Rect")),this.setColor(a.getArray("C")),this.setBorderStyle(a),this.setAppearance(a),this.setOptionalContent(a);let l=a.get("MK");this.setBorderAndBackgroundColors(l),this.setRotation(l,a),this.ref=t.ref instanceof es?t.ref:null,this._streams=[],this.appearance&&this._streams.push(this.appearance);let c=!!(128&this.flags),h=!!(512&this.flags);if(this.data={annotationFlags:this.flags,borderStyle:this.borderStyle,color:this.color,backgroundColor:this.backgroundColor,borderColor:this.borderColor,rotation:this.rotation,contentsObj:this._contents,hasAppearance:!!this.appearance,id:t.id,modificationDate:this.modificationDate,rect:this.rectangle,subtype:t.subtype,hasOwnCanvas:!1,noRotate:!!(16&this.flags),noHTML:c&&h,isEditable:!1,structParent:-1},i.structTreeRoot){let r=a.get("StructParent");this.data.structParent=r=Number.isInteger(r)&&r>=0?r:-1,i.structTreeRoot.addAnnotationIdToPage(t.pageRef,r)}if(t.collectFields){let i=a.get("Kids");if(Array.isArray(i)){let t=[];for(let a of i)a instanceof es&&t.push(a.toString());0!==t.length&&(this.data.kidIds=t)}this.data.actions=eH(r,a,b),this.data.fieldName=this._constructFieldName(a),this.data.pageIndex=t.pageIndex}let u=a.get("IT");u instanceof ea&&(this.data.it=u.name),this._isOffscreenCanvasSupported=t.evaluatorOptions.isOffscreenCanvasSupported,this._fallbackFontDict=null,this._needAppearances=!1}_hasFlag(t,a){return!!(t&a)}_buildFlags(t,a){let{flags:r}=this;if(void 0===t){if(void 0===a)return;return a?-5&r:-3&r|4}return t?(r|=4,a?-33&r|2:-3&r|32):(r&=-35,a?-5&r:4|r)}_isViewable(t){return!this._hasFlag(t,1)&&!this._hasFlag(t,32)}_isPrintable(t){return this._hasFlag(t,4)&&!this._hasFlag(t,2)&&!this._hasFlag(t,1)}mustBeViewed(t,a){let r=t?.get(this.data.id)?.noView;return void 0!==r?!r:this.viewable&&!this._hasFlag(this.flags,2)}mustBePrinted(t){let a=t?.get(this.data.id)?.noPrint;return void 0!==a?!a:this.printable}mustBeViewedWhenEditing(t,a=null){return t?!this.data.isEditable:!a?.has(this.data.id)}get viewable(){return null!==this.data.quadPoints&&(0===this.flags||this._isViewable(this.flags))}get printable(){return null!==this.data.quadPoints&&0!==this.flags&&this._isPrintable(this.flags)}_parseStringHelper(t){let a="string"==typeof t?H(t):"";return{str:a,dir:a&&"rtl"===n7(a).dir?"rtl":"ltr"}}setDefaultAppearance(t){let{dict:a,annotationGlobals:r}=t,i=eI({dict:a,key:"DA"})||r.acroForm.get("DA");this._defaultAppearance="string"==typeof i?i:"",this.data.defaultAppearanceData=sx(this._defaultAppearance)}setTitle(t){this._title=this._parseStringHelper(t)}setContents(t){this._contents=this._parseStringHelper(t)}setModificationDate(t){this.modificationDate="string"==typeof t?t:null}setFlags(t){this.flags=Number.isInteger(t)&&t>0?t:0,1&this.flags&&"Annotation"!==this.constructor.name&&(this.flags^=1)}hasFlag(t){return this._hasFlag(this.flags,t)}setRectangle(t){this.rectangle=e_(t,[0,0,0,0])}setColor(t){this.color=gN(t)}setLineEndings(t){if(this.lineEndings=["None","None"],Array.isArray(t)&&2===t.length)for(let a=0;a<2;a++){let r=t[a];if(r instanceof ea)switch(r.name){case"None":continue;case"Square":case"Circle":case"Diamond":case"OpenArrow":case"ClosedArrow":case"Butt":case"ROpenArrow":case"RClosedArrow":case"Slash":this.lineEndings[a]=r.name;continue}v(`Ignoring invalid lineEnding: ${r}`)}}setRotation(t,a){this.rotation=0;let r=t instanceof en?t.get("R")||0:a.get("Rotate")||0;Number.isInteger(r)&&0!==r&&((r%=360)<0&&(r+=360),r%90==0&&(this.rotation=r))}setBorderAndBackgroundColors(t){t instanceof en?(this.borderColor=gN(t.getArray("BC"),null),this.backgroundColor=gN(t.getArray("BG"),null)):this.borderColor=this.backgroundColor=null}setBorderStyle(t){if(this.borderStyle=new g_,t instanceof en){if(t.has("BS")){let a=t.get("BS");if(a instanceof en){let t=a.get("Type");(!t||ec(t,"Border"))&&(this.borderStyle.setWidth(a.get("W"),this.rectangle),this.borderStyle.setStyle(a.get("S")),this.borderStyle.setDashArray(a.getArray("D")))}}else if(t.has("Border")){let a=t.getArray("Border");Array.isArray(a)&&a.length>=3&&(this.borderStyle.setHorizontalCornerRadius(a[0]),this.borderStyle.setVerticalCornerRadius(a[1]),this.borderStyle.setWidth(a[2],this.rectangle),4===a.length&&this.borderStyle.setDashArray(a[3],!0))}else this.borderStyle.setWidth(0)}}setAppearance(t){this.appearance=null;let a=t.get("AP");if(!(a instanceof en))return;let r=a.get("N");if(r instanceof ed){this.appearance=r;return}if(!(r instanceof en))return;let i=t.get("AS");if(!(i instanceof ea&&r.has(i.name)))return;let n=r.get(i.name);n instanceof ed&&(this.appearance=n)}setOptionalContent(t){this.oc=null;let a=t.get("OC");a instanceof ea?v("setOptionalContent: Support for /Name-entry is not implemented."):a instanceof en&&(this.oc=a)}async loadResources(t,a){let r=await a.dict.getAsync("Resources");return r&&await sG.load(r,t,r.xref),r}async getOperatorList(t,a,r,i){let n;let{hasOwnCanvas:s,id:o,rect:l}=this.data,c=this.appearance,h=!!(s&&2&r);if(h&&(0===this.width||0===this.height))return this.data.hasOwnCanvas=!1,{opList:new tH,separateForm:!1,separateCanvas:!1};if(!c){if(!h)return{opList:new tH,separateForm:!1,separateCanvas:!1};(c=new tp("")).dict=new en}let u=c.dict,f=await this.loadResources(eb,c),d=eP(u.getArray("BBox"),[0,0,1,1]),g=eE(u.getArray("Matrix"),em),p=gE(l,d,g),m=new tH;return this.oc&&(n=await t.parseMarkedContentProps(this.oc,null)),void 0!==n&&m.addOp(70,["OC",n]),m.addOp(80,[o,l,p,g,h]),await t.getOperatorList({stream:c,task:a,resources:f,operatorList:m,fallbackFontDict:this._fallbackFontDict}),m.addOp(81,[]),void 0!==n&&m.addOp(71,[]),this.reset(),{opList:m,separateForm:!1,separateCanvas:h}}async save(t,a,r,i){return null}get overlaysTextContent(){return!1}get hasTextContent(){return!1}async extractTextContent(t,a,r){if(!this.appearance)return;let i=await this.loadResources(ey,this.appearance),n=[],s=[],o=null;if(await t.getTextContent({stream:this.appearance,task:a,resources:i,includeMarkedContent:!0,keepWhiteSpace:!0,sink:{desiredSize:Math.Infinity,ready:!0,enqueue(t,a){for(let a of t.items)void 0!==a.str&&(o||=a.transform.slice(-2),s.push(a.str),a.hasEOL&&(n.push(s.join("").trimEnd()),s.length=0))}},viewBox:r}),this.reset(),s.length&&n.push(s.join("").trimEnd()),n.length>1||n[0]){let t=this.appearance.dict,a=eP(t.getArray("BBox"),null),r=eE(t.getArray("Matrix"),null);this.data.textPosition=this._transformPoint(o,a,r),this.data.textContent=n}}_transformPoint(t,a,r){let{rect:i}=this.data;a||=[0,0,1,1],r||=[1,0,0,1,0,0];let n=gE(i,a,r);n[4]-=i[0],n[5]-=i[1];let s=t.slice();return j.applyTransform(s,n),j.applyTransform(s,r),s}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(let t of this._streams)t.reset()}_constructFieldName(t){if(!t.has("T")&&!t.has("Parent"))return v("Unknown field name, falling back to empty field name."),"";if(!t.has("Parent"))return H(t.get("T"));let a=[];t.has("T")&&a.unshift(H(t.get("T")));let r=t,i=new eo;for(t.objId&&i.put(t.objId);r.has("Parent")&&!(!((r=r.get("Parent"))instanceof en)||r.objId&&i.has(r.objId));)r.objId&&i.put(r.objId),r.has("T")&&a.unshift(H(r.get("T")));return a.join(".")}get width(){return this.data.rect[2]-this.data.rect[0]}get height(){return this.data.rect[3]-this.data.rect[1]}}class g_{constructor(){this.width=1,this.rawWidth=1,this.style=1,this.dashArray=[3],this.horizontalCornerRadius=0,this.verticalCornerRadius=0}setWidth(t,a=[0,0,0,0]){if(t instanceof ea)this.width=0;else if("number"==typeof t){if(t>0){this.rawWidth=t;let r=(a[2]-a[0])/2,i=(a[3]-a[1])/2;r>0&&i>0&&(t>r||t>i)&&(v(`AnnotationBorderStyle.setWidth - ignoring width: ${t}`),t=1)}this.width=t}}setStyle(t){if(t instanceof ea)switch(t.name){case"S":this.style=1;break;case"D":this.style=2;break;case"B":this.style=3;break;case"I":this.style=4;break;case"U":this.style=5}}setDashArray(t,a=!1){if(Array.isArray(t)){let r=!0,i=!0;for(let a of t){if(!(+a>=0)){r=!1;break}a>0&&(i=!1)}0===t.length||r&&!i?(this.dashArray=t,a&&this.setStyle(ea.get("D"))):this.width=0}else t&&(this.width=0)}setHorizontalCornerRadius(t){Number.isInteger(t)&&(this.horizontalCornerRadius=t)}setVerticalCornerRadius(t){Number.isInteger(t)&&(this.verticalCornerRadius=t)}}class gL extends gP{constructor(t){super(t);let{dict:a}=t;if(a.has("IRT")){let t=a.getRaw("IRT");this.data.inReplyTo=t instanceof es?t.toString():null;let r=a.get("RT");this.data.replyType=r instanceof ea?r.name:"R"}let r=null;if(this.data.replyType===m){let t=a.get("IRT");this.setTitle(t.get("T")),this.data.titleObj=this._title,this.setContents(t.get("Contents")),this.data.contentsObj=this._contents,t.has("CreationDate")?(this.setCreationDate(t.get("CreationDate")),this.data.creationDate=this.creationDate):this.data.creationDate=null,t.has("M")?(this.setModificationDate(t.get("M")),this.data.modificationDate=this.modificationDate):this.data.modificationDate=null,r=t.getRaw("Popup"),t.has("C")?(this.setColor(t.getArray("C")),this.data.color=this.color):this.data.color=null}else this.data.titleObj=this._title,this.setCreationDate(a.get("CreationDate")),this.data.creationDate=this.creationDate,r=a.getRaw("Popup"),a.has("C")||(this.data.color=null);this.data.popupRef=r instanceof es?r.toString():null,a.has("RC")&&(this.data.richText=gM.getRichTextAsHtml(a.get("RC")))}setCreationDate(t){this.creationDate="string"==typeof t?t:null}_setDefaultAppearance({xref:t,extra:a,strokeColor:r,fillColor:i,blendMode:n,strokeAlpha:s,fillAlpha:o,pointsCallback:l}){let c=this.data.rect=[1/0,1/0,-1/0,-1/0],h=["q"];a&&h.push(a),r&&h.push(`${r[0]} ${r[1]} ${r[2]} RG`),i&&h.push(`${i[0]} ${i[1]} ${i[2]} rg`);let u=this.data.quadPoints||Float32Array.from([this.rectangle[0],this.rectangle[3],this.rectangle[2],this.rectangle[3],this.rectangle[0],this.rectangle[1],this.rectangle[2],this.rectangle[1]]);for(let t=0,a=u.length;t<a;t+=8){let a=l(h,u.subarray(t,t+8));j.rectBoundingBox(...a,c)}h.push("Q");let f=new en(t),d=new en(t);d.setIfName("Subtype","Form");let g=new tp(h.join(" "));g.dict=d,f.set("Fm0",g);let p=new en(t);n&&p.setIfName("BM",n),p.setIfNumber("CA",s),p.setIfNumber("ca",o);let m=new en(t);m.set("GS0",p);let b=new en(t);b.set("ExtGState",m),b.set("XObject",f);let y=new en(t);y.set("Resources",b),y.set("BBox",c),this.appearance=new tp("/GS0 gs /Fm0 Do"),this.appearance.dict=y,this._streams.push(this.appearance,g)}static async createNewAnnotation(t,a,r,i){let n;let s=a.ref||=t.getNewTemporaryRef(),o=await this.createNewAppearanceStream(a,t,i);if(o){let i=t.getNewTemporaryRef();n=this.createNewDict(a,t,{apRef:i}),r.put(i,{data:o})}else n=this.createNewDict(a,t,{});Number.isInteger(a.parentTreeId)&&n.set("StructParent",a.parentTreeId),r.put(s,{data:n});let l={ref:s},{popup:c}=a;if(c){if(c.deleted)return n.delete("Popup"),n.delete("Contents"),n.delete("RC"),l;let a=c.ref||=t.getNewTemporaryRef();c.parent=s;let i=gW.createNewDict(c,t);return r.put(a,{data:i}),n.setIfDefined("Contents",eK(c.contents)),n.set("Popup",a),[l,{ref:a}]}return l}static async createNewPrintAnnotation(t,a,r,i){let n=await this.createNewAppearanceStream(r,a,i),s=this.createNewDict(r,a,n?{ap:n}:{}),o=new this.prototype.constructor({dict:s,xref:a,annotationGlobals:t,evaluatorOptions:i.evaluatorOptions});return r.ref&&(o.ref=o.refToReplace=r.ref),o}}class gU extends gP{constructor(t){super(t);let{dict:a,xref:r,annotationGlobals:i}=t,n=this.data;this._needAppearances=t.needAppearances,n.annotationType=p.WIDGET,void 0===n.fieldName&&(n.fieldName=this._constructFieldName(a)),void 0===n.actions&&(n.actions=eH(r,a,b));let s=eI({dict:a,key:"V",getArray:!0});n.fieldValue=this._decodeFormValue(s);let o=eI({dict:a,key:"DV",getArray:!0});if(n.defaultFieldValue=this._decodeFormValue(o),void 0===s&&i.xfaDatasets){let t=this._title.str;t&&(this._hasValueFromXFA=!0,n.fieldValue=s=i.xfaDatasets.getValue(t))}void 0===s&&null!==n.defaultFieldValue&&(n.fieldValue=n.defaultFieldValue),n.alternativeText=H(a.get("TU")||""),this.setDefaultAppearance(t),n.hasAppearance||=this._needAppearances&&void 0!==n.fieldValue&&null!==n.fieldValue;let l=eI({dict:a,key:"FT"});n.fieldType=l instanceof ea?l.name:null;let c=eI({dict:a,key:"DR"}),h=i.acroForm.get("DR"),u=this.appearance?.dict.get("Resources");this._fieldResources={localResources:c,acroFormResources:h,appearanceResources:u,mergedResources:en.merge({xref:r,dictArray:[c,u,h],mergeSubDicts:!0})},n.fieldFlags=eI({dict:a,key:"Ff"}),(!Number.isInteger(n.fieldFlags)||n.fieldFlags<0)&&(n.fieldFlags=0),n.password=this.hasFieldFlag(8192),n.readOnly=this.hasFieldFlag(1),n.required=this.hasFieldFlag(2),n.hidden=this._hasFlag(n.annotationFlags,2)||this._hasFlag(n.annotationFlags,32)}_decodeFormValue(t){return Array.isArray(t)?t.filter(t=>"string"==typeof t).map(t=>H(t)):t instanceof ea?H(t.name):"string"==typeof t?H(t):null}hasFieldFlag(t){return!!(this.data.fieldFlags&t)}_isViewable(t){return!0}mustBeViewed(t,a){return a?this.viewable:super.mustBeViewed(t,a)&&!this._hasFlag(this.flags,32)}getRotationMatrix(t){let a=t?.get(this.data.id)?.rotation;return void 0===a&&(a=this.rotation),0===a?em:eJ(a,this.width,this.height)}getBorderAndBackgroundAppearances(t){let a=t?.get(this.data.id)?.rotation;if(void 0===a&&(a=this.rotation),!this.backgroundColor&&!this.borderColor)return"";let r=0===a||180===a?`0 0 ${this.width} ${this.height} re`:`0 0 ${this.height} ${this.width} re`,i="";return this.backgroundColor&&(i=`${sv(this.backgroundColor,!0)} ${r} f `),this.borderColor&&(i+=`${this.borderStyle.width||1} w ${sv(this.borderColor,!1)} ${r} S `),i}async getOperatorList(t,a,r,i){let n;if(16&r&&!(this instanceof g$)&&!this.data.noHTML&&!this.data.hasOwnCanvas)return{opList:new tH,separateForm:!0,separateCanvas:!1};if(!this._hasText)return super.getOperatorList(t,a,r,i);let s=await this._getAppearance(t,a,r,i);if(this.appearance&&null===s)return super.getOperatorList(t,a,r,i);let o=new tH;if(!this._defaultAppearance||null===s)return{opList:o,separateForm:!1,separateCanvas:!1};let l=!!(this.data.hasOwnCanvas&&2&r),c=[0,0,this.width,this.height],h=gE(this.data.rect,c,[1,0,0,1,0,0]);this.oc&&(n=await t.parseMarkedContentProps(this.oc,null)),void 0!==n&&o.addOp(70,["OC",n]),o.addOp(80,[this.data.id,this.data.rect,h,this.getRotationMatrix(i),l]);let u=new tp(s);return await t.getOperatorList({stream:u,task:a,resources:this._fieldResources.mergedResources,operatorList:o}),o.addOp(81,[]),void 0!==n&&o.addOp(71,[]),{opList:o,separateForm:!1,separateCanvas:l}}_getMKDict(t){let a=new en(null);return t&&a.set("R",t),a.setIfArray("BC",gO(this.borderColor)),a.setIfArray("BG",gO(this.backgroundColor)),a.size>0?a:null}amendSavedDict(t,a){}setValue(t,a,r,i){let{dict:n,ref:s}=function(t,a,r){let i=new eo,n=t,s={dict:null,ref:null};for(;t instanceof en&&!i.has(a)&&(i.put(a),!t.has("T"));){if(!((a=t.getRaw("Parent"))instanceof es))return s;t=r.fetch(a)}return t instanceof en&&t!==n&&(s.dict=t,s.ref=a),s}(t,this.ref,r);if(n){if(!i.has(s)){let t=n.clone();return t.set("V",a),i.put(s,{data:t}),t}}else t.set("V",a);return null}async save(t,a,r,i){let n=r?.get(this.data.id),s=this._buildFlags(n?.noView,n?.noPrint),o=n?.value,l=n?.rotation;if(o===this.data.fieldValue||void 0===o){if(!this._hasValueFromXFA&&void 0===l&&void 0===s)return;o||=this.data.fieldValue}if(void 0===l&&!this._hasValueFromXFA&&Array.isArray(o)&&Array.isArray(this.data.fieldValue)&&G(o,this.data.fieldValue)&&void 0===s)return;void 0===l&&(l=this.rotation);let c=null;if(!this._needAppearances&&null===(c=await this._getAppearance(t,a,8,r))&&void 0===s)return;let h=!1;c?.needAppearances&&(h=!0,c=null);let{xref:u}=t,f=u.fetchIfRef(this.ref);if(!(f instanceof en))return;let d=new en(u);for(let t of f.getKeys())"AP"!==t&&d.set(t,f.getRaw(t));if(void 0!==s&&(d.set("F",s),null===c&&!h)){let t=f.getRaw("AP");t&&d.set("AP",t)}let g={path:this.data.fieldName,value:o},p=this.setValue(d,Array.isArray(o)?o.map(eK):eK(o),u,i);this.amendSavedDict(r,p||d);let m=this._getMKDict(l);if(m&&d.set("MK",m),i.put(this.ref,{data:d,xfa:g,needAppearances:h}),null!==c){let t=u.getNewTemporaryRef(),a=new en(u);d.set("AP",a),a.set("N",t);let n=this._getSaveFieldResources(u),s=new tp(c),o=s.dict=new en(u);o.setIfName("Subtype","Form"),o.set("Resources",n);let h=l%180==0?[0,0,this.width,this.height]:[0,0,this.height,this.width];o.set("BBox",h);let f=this.getRotationMatrix(r);f!==em&&o.set("Matrix",f),i.put(t,{data:s,xfa:null,needAppearances:!1})}d.set("M",`D:${W()}`)}async _getAppearance(t,a,r,i){let n,s;if(this.data.password)return null;let o=i?.get(this.data.id);if(o&&(n=o.formattedValue||o.value,s=o.rotation),void 0===s&&void 0===n&&!this._needAppearances&&(!this._hasValueFromXFA||this.appearance))return null;let l=this.getBorderAndBackgroundAppearances(i);if(void 0===n&&!(n=this.data.fieldValue))return`/Tx BMC q ${l}Q EMC`;if(Array.isArray(n)&&1===n.length&&(n=n[0]),C("string"==typeof n,"Expected `value` to be a string."),n=n.trimEnd(),this.data.combo){let t=this.data.options.find(({exportValue:t})=>n===t);n=t?.displayValue||n}if(""===n)return`/Tx BMC q ${l}Q EMC`;void 0===s&&(s=this.rotation);let c,h=-1;this.data.multiLine?h=(c=n.split(/\r\n?|\n/).map(t=>t.normalize("NFC"))).length:c=[n.replace(/\r\n?|\n/,"").normalize("NFC")];let{width:u,height:f}=this;90!==s&&270!==s||([u,f]=[f,u]),this._defaultAppearance||(this.data.defaultAppearanceData=sx(this._defaultAppearance="/Helvetica 0 Tf 0 g"));let d,g,p,m=await gU._getFontData(t,a,this.data.defaultAppearanceData,this._fieldResources.mergedResources),b=[],y=!1;for(let t of c){let a=m.encodeString(t);a.length>1&&(y=!0),b.push(a.join(""))}if(y&&8&r)return{needAppearances:!0};if(y&&this._isOffscreenCanvasSupported){let r=this.data.comb?"monospace":"sans-serif",i=new sA(t.xref,r),s=i.createFontResources(c.join("")),o=s.getRaw("Font");if(this._fieldResources.mergedResources.has("Font")){let t=this._fieldResources.mergedResources.get("Font");for(let a of o.getKeys())t.set(a,o.getRaw(a))}else this._fieldResources.mergedResources.set("Font",o);let l=i.fontName.name;m=await gU._getFontData(t,a,{fontName:l,fontSize:0},s);for(let t=0,a=b.length;t<a;t++)b[t]=eY(c[t]);let y=Object.assign(Object.create(null),this.data.defaultAppearanceData);this.data.defaultAppearanceData.fontSize=0,this.data.defaultAppearanceData.fontName=l,[d,g,p]=this._computeFontSize(f-2,u-4,n,m,h),this.data.defaultAppearanceData=y}else this._isOffscreenCanvasSupported||v("_getAppearance: OffscreenCanvas is not supported, annotation may not render correctly."),[d,g,p]=this._computeFontSize(f-2,u-4,n,m,h);let w=m.descent;w=isNaN(w)?.25925925925925924*p:Math.max(.25925925925925924*p,Math.abs(w)*g);let x=Math.min(Math.floor((f-g)/2),1),k=this.data.textAlignment;if(this.data.multiLine)return this._getMultilineAppearance(d,b,m,g,u,f,k,2,x,w,p,i);if(this.data.comb)return this._getCombAppearance(d,m,b[0],g,u,f,2,x,w,p,i);let A=x+w;return 0===k||k>2?`/Tx BMC q ${l}BT `+d+` 1 0 0 1 ${eV(2)} ${eV(A)} Tm (${ej(b[0])}) Tj ET Q EMC`:`/Tx BMC q ${l}BT `+d+` 1 0 0 1 0 0 Tm ${this._renderText(b[0],m,g,u,k,{shift:0},2,A)} ET Q EMC`}static async _getFontData(t,a,r,i){let n=new tH,s={font:null,clone(){return this}},{fontName:o,fontSize:l}=r;return await t.handleSetFont(i,[o&&ea.get(o),l],null,n,a,s,null),s.font}_getTextWidth(t,a){return Math.sumPrecise(a.charsToGlyphs(t).map(t=>t.width))/1e3}_computeFontSize(t,a,r,i,n){let{fontSize:s}=this.data.defaultAppearanceData,o=1.35*(s||12),l=Math.round(t/o);if(!s){let c=t=>Math.floor(100*t)/100;if(-1===n){let n=this._getTextWidth(r,i);s=c(Math.min(t/1.35,a/n)),l=1}else{let h=r.split(/\r\n?|\n/),u=[];for(let t of h){let a=i.encodeString(t).join(""),r=i.charsToGlyphs(a),n=i.getCharPositions(a);u.push({line:a,glyphs:r,positions:n})}let f=r=>{let n=0;for(let s of u)if((n+=this._splitLine(null,i,r,a,s).length*r)>t)return!0;return!1};for(l=Math.max(l,n);f(s=c((o=t/l)/1.35));)l++}let{fontName:h,fontColor:u}=this.data.defaultAppearanceData;this._defaultAppearance=function({fontSize:t,fontName:a,fontColor:r}){return`/${eU(a)} ${t} Tf ${sv(r,!0)}`}({fontSize:s,fontName:h,fontColor:u})}return[this._defaultAppearance,s,t/l]}_renderText(t,a,r,i,n,s,o,l){let c;c=1===n?(i-this._getTextWidth(t,a)*r)/2:2===n?i-this._getTextWidth(t,a)*r-o:o;let h=eV(c-s.shift);return s.shift=c,`${h} ${l=eV(l)} Td (${ej(t)}) Tj`}_getSaveFieldResources(t){let{localResources:a,appearanceResources:r,acroFormResources:i}=this._fieldResources,n=this.data.defaultAppearanceData?.fontName;if(!n)return a||en.empty;for(let t of[a,r])if(t instanceof en){let a=t.get("Font");if(a instanceof en&&a.has(n))return t}if(i instanceof en){let r=i.get("Font");if(r instanceof en&&r.has(n)){let i=new en(t);i.set(n,r.getRaw(n));let s=new en(t);return s.set("Font",i),en.merge({xref:t,dictArray:[s,a],mergeSubDicts:!0})}}return a||en.empty}getFieldObject(){return null}}class gj extends gU{constructor(t){super(t);let{dict:a}=t;a.has("PMD")&&(this.flags|=2,this.data.hidden=!0,v("Barcodes are not supported")),this.data.hasOwnCanvas=this.data.readOnly&&!this.data.noHTML,this._hasText=!0,"string"!=typeof this.data.fieldValue&&(this.data.fieldValue="");let r=eI({dict:a,key:"Q"});(!Number.isInteger(r)||r<0||r>2)&&(r=null),this.data.textAlignment=r;let i=eI({dict:a,key:"MaxLen"});(!Number.isInteger(i)||i<0)&&(i=0),this.data.maxLen=i,this.data.multiLine=this.hasFieldFlag(4096),this.data.comb=this.hasFieldFlag(16777216)&&!this.data.multiLine&&!this.data.password&&!this.hasFieldFlag(1048576)&&0!==this.data.maxLen,this.data.doNotScroll=this.hasFieldFlag(8388608);let{data:{actions:n}}=this;if(!n)return;let s=/^AF(Date|Time)_(?:Keystroke|Format)(?:Ex)?\(['"]?([^'"]+)['"]?\);$/,o=!1;(1===n.Format?.length&&1===n.Keystroke?.length&&s.test(n.Format[0])&&s.test(n.Keystroke[0])||0===n.Format?.length&&1===n.Keystroke?.length&&s.test(n.Keystroke[0])||0===n.Keystroke?.length&&1===n.Format?.length&&s.test(n.Format[0]))&&(o=!0);let l=[];for(let t of(n.Format&&l.push(...n.Format),n.Keystroke&&l.push(...n.Keystroke),o&&(delete n.Keystroke,n.Format=l),l)){let a=t.match(s);if(!a)continue;let r="Date"===a[1],i=a[2],n=parseInt(i,10);if(isNaN(n)||Math.floor(Math.log10(n))+1!==a[2].length||(i=(r?sC:sS)[n]??i),this.data.datetimeFormat=i,!o)break;if(r){/HH|MM|ss|h/.test(i)?(this.data.datetimeType="datetime-local",this.data.timeStep=/ss/.test(i)?1:60):this.data.datetimeType="date";break}this.data.datetimeType="time",this.data.timeStep=/ss/.test(i)?1:60;break}}get hasTextContent(){return!!this.appearance&&!this._needAppearances}_getCombAppearance(t,a,r,i,n,s,o,l,c,h,u){let f=n/this.data.maxLen,d=this.getBorderAndBackgroundAppearances(u),g=[],p=a.getCharPositions(r);for(let[t,a]of p)g.push(`(${ej(r.substring(t,a))}) Tj`);let m=g.join(` ${eV(f)} 0 Td `);return`/Tx BMC q ${d}BT `+t+` 1 0 0 1 ${eV(o)} ${eV(l+c)} Tm ${m} ET Q EMC`}_getMultilineAppearance(t,a,r,i,n,s,o,l,c,h,u,f){let d=[],g=n-2*l,p={shift:0};for(let t=0,s=a.length;t<s;t++){let s=a[t],f=this._splitLine(s,r,i,g);for(let a=0,s=f.length;a<s;a++){let s=f[a],g=0===t&&0===a?-c-(u-h):-u;d.push(this._renderText(s,r,i,n,o,p,l,g))}}let m=this.getBorderAndBackgroundAppearances(f),b=d.join("\n");return`/Tx BMC q ${m}BT `+t+` 1 0 0 1 0 ${eV(s)} Tm ${b} ET Q EMC`}_splitLine(t,a,r,i,n={}){t=n.line||t;let s=n.glyphs||a.charsToGlyphs(t);if(s.length<=1)return[t];let o=n.positions||a.getCharPositions(t),l=r/1e3,c=[],h=-1,u=-1,f=-1,d=0,g=0;for(let a=0,r=s.length;a<r;a++){let[r,n]=o[a],p=s[a],m=p.width*l;" "===p.unicode?g+m>i?(c.push(t.substring(d,r)),d=r,g=m,h=-1,f=-1):(g+=m,h=r,u=n,f=a):g+m>i?-1!==h?(c.push(t.substring(d,u)),d=u,a=f+1,h=-1,g=0):(c.push(t.substring(d,r)),d=r,g=m):g+=m}return d<t.length&&c.push(t.substring(d,t.length)),c}async extractTextContent(t,a,r){await super.extractTextContent(t,a,r);let i=this.data.textContent;if(!i)return;let n=i.join("\n");if(n===this.data.fieldValue)return;let s=n.replaceAll(/([.*+?^${}()|[\]\\])|(\s+)/g,(t,a)=>a?`\\${a}`:"\\s+");RegExp(`^\\s*${s}\\s*$`).test(this.data.fieldValue)&&(this.data.textContent=this.data.fieldValue.split("\n"))}getFieldObject(){return{id:this.data.id,value:this.data.fieldValue,defaultValue:this.data.defaultFieldValue||"",multiline:this.data.multiLine,password:this.data.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,datetimeFormat:this.data.datetimeFormat,hasDatetimeHTML:!!this.data.datetimeType,type:"text"}}}class gq extends gU{constructor(t){super(t),this.checkedAppearance=null,this.uncheckedAppearance=null;let a=this.hasFieldFlag(32768),r=this.hasFieldFlag(65536);this.data.checkBox=!a&&!r,this.data.radioButton=a&&!r,this.data.pushButton=r,this.data.isTooltipOnly=!1,this.data.checkBox?this._processCheckBox(t):this.data.radioButton?this._processRadioButton(t):this.data.pushButton?(this.data.hasOwnCanvas=!0,this.data.noHTML=!1,this._processPushButton(t)):v("Invalid field flags for button widget annotation")}async getOperatorList(t,a,r,i){if(this.data.pushButton)return super.getOperatorList(t,a,r,!1,i);let n=null,s=null;if(i){let t=i.get(this.data.id);n=t?t.value:null,s=t?t.rotation:null}if(null===n&&this.appearance)return super.getOperatorList(t,a,r,i);null==n&&(n=this.data.checkBox?this.data.fieldValue===this.data.exportValue:this.data.fieldValue===this.data.buttonValue);let o=n?this.checkedAppearance:this.uncheckedAppearance;if(o){let n=this.appearance,l=eE(o.dict.getArray("Matrix"),em);s&&o.dict.set("Matrix",this.getRotationMatrix(i)),this.appearance=o;let c=super.getOperatorList(t,a,r,i);return this.appearance=n,o.dict.set("Matrix",l),c}return{opList:new tH,separateForm:!1,separateCanvas:!1}}async save(t,a,r,i){this.data.checkBox?this._saveCheckbox(t,a,r,i):this.data.radioButton&&this._saveRadioButton(t,a,r,i)}async _saveCheckbox(t,a,r,i){if(!r)return;let n=r.get(this.data.id),s=this._buildFlags(n?.noView,n?.noPrint),o=n?.rotation,l=n?.value;if(void 0===o&&void 0===s&&(void 0===l||this.data.fieldValue===this.data.exportValue===l))return;let c=t.xref.fetchIfRef(this.ref);if(!(c instanceof en))return;c=c.clone(),void 0===o&&(o=this.rotation),void 0===l&&(l=this.data.fieldValue===this.data.exportValue);let h={path:this.data.fieldName,value:l?this.data.exportValue:""},u=ea.get(l?this.data.exportValue:"Off");this.setValue(c,u,t.xref,i),c.set("AS",u),c.set("M",`D:${W()}`),void 0!==s&&c.set("F",s);let f=this._getMKDict(o);f&&c.set("MK",f),i.put(this.ref,{data:c,xfa:h,needAppearances:!1})}async _saveRadioButton(t,a,r,i){if(!r)return;let n=r.get(this.data.id),s=this._buildFlags(n?.noView,n?.noPrint),o=n?.rotation,l=n?.value;if(void 0===o&&void 0===s&&(void 0===l||this.data.fieldValue===this.data.buttonValue===l))return;let c=t.xref.fetchIfRef(this.ref);if(!(c instanceof en))return;c=c.clone(),void 0===l&&(l=this.data.fieldValue===this.data.buttonValue),void 0===o&&(o=this.rotation);let h={path:this.data.fieldName,value:l?this.data.buttonValue:""},u=ea.get(l?this.data.buttonValue:"Off");l&&this.setValue(c,u,t.xref,i),c.set("AS",u),c.set("M",`D:${W()}`),void 0!==s&&c.set("F",s);let f=this._getMKDict(o);f&&c.set("MK",f),i.put(this.ref,{data:c,xfa:h,needAppearances:!1})}_getDefaultCheckedAppearance(t,a){let r,i;let{width:n,height:s}=this,o=.8*Math.min(n,s);"check"===a?(r={width:.755*o,height:.705*o},i="3"):"disc"===a?(r={width:.791*o,height:.705*o},i="l"):A(`_getDefaultCheckedAppearance - unsupported type: ${a}`);let l=`q BT /PdfJsZaDb ${o} Tf 0 g ${eV((n-r.width)/2)} ${eV((s-r.height)/2)} Td (${i}) Tj ET Q`,c=new en(t.xref);c.set("FormType",1),c.setIfName("Subtype","Form"),c.setIfName("Type","XObject"),c.set("BBox",[0,0,n,s]),c.set("Matrix",[1,0,0,1,0,0]),c.set("Length",l.length);let h=new en(t.xref),u=new en(t.xref);u.set("PdfJsZaDb",this.fallbackFontDict),h.set("Font",u),c.set("Resources",h),this.checkedAppearance=new tp(l),this.checkedAppearance.dict=c,this._streams.push(this.checkedAppearance)}_processCheckBox(t){let a=t.dict.get("AP");if(!(a instanceof en))return;let r=a.get("N");if(!(r instanceof en))return;let i=this._decodeFormValue(t.dict.get("AS"));"string"==typeof i&&(this.data.fieldValue=i);let n=null!==this.data.fieldValue&&"Off"!==this.data.fieldValue?this.data.fieldValue:"Yes",s=this._decodeFormValue(r.getKeys());if(0===s.length)s.push("Off",n);else if(1===s.length)"Off"===s[0]?s.push(n):s.unshift("Off");else if(s.includes(n))s.length=0,s.push("Off",n);else{let t=s.find(t=>"Off"!==t);s.length=0,s.push("Off",t)}s.includes(this.data.fieldValue)||(this.data.fieldValue="Off"),this.data.exportValue=s[1];let o=r.get(this.data.exportValue);this.checkedAppearance=o instanceof ed?o:null;let l=r.get("Off");this.uncheckedAppearance=l instanceof ed?l:null,this.checkedAppearance?this._streams.push(this.checkedAppearance):this._getDefaultCheckedAppearance(t,"check"),this.uncheckedAppearance&&this._streams.push(this.uncheckedAppearance),this._fallbackFontDict=this.fallbackFontDict,null===this.data.defaultFieldValue&&(this.data.defaultFieldValue="Off")}_processRadioButton(t){this.data.buttonValue=null;let a=t.dict.get("Parent");if(a instanceof en){this.parent=t.dict.getRaw("Parent");let r=a.get("V");r instanceof ea&&(this.data.fieldValue=this._decodeFormValue(r))}let r=t.dict.get("AP");if(!(r instanceof en))return;let i=r.get("N");if(!(i instanceof en))return;for(let t of i.getKeys())if("Off"!==t){this.data.buttonValue=this._decodeFormValue(t);break}let n=i.get(this.data.buttonValue);this.checkedAppearance=n instanceof ed?n:null;let s=i.get("Off");this.uncheckedAppearance=s instanceof ed?s:null,this.checkedAppearance?this._streams.push(this.checkedAppearance):this._getDefaultCheckedAppearance(t,"disc"),this.uncheckedAppearance&&this._streams.push(this.uncheckedAppearance),this._fallbackFontDict=this.fallbackFontDict,null===this.data.defaultFieldValue&&(this.data.defaultFieldValue="Off")}_processPushButton(t){let{dict:a,annotationGlobals:r}=t;a.has("A")||a.has("AA")||this.data.alternativeText?(this.data.isTooltipOnly=!a.has("A")&&!a.has("AA"),sz.parseDestDictionary({destDict:a,resultObj:this.data,docBaseUrl:r.baseUrl,docAttachments:r.attachments})):v("Push buttons without action dictionaries are not supported")}getFieldObject(){let t,a="button";return this.data.checkBox?(a="checkbox",t=this.data.exportValue):this.data.radioButton&&(a="radiobutton",t=this.data.buttonValue),{id:this.data.id,value:this.data.fieldValue||"Off",defaultValue:this.data.defaultFieldValue,exportValues:t,editable:!this.data.readOnly,name:this.data.fieldName,rect:this.data.rect,hidden:this.data.hidden,actions:this.data.actions,page:this.data.pageIndex,strokeColor:this.data.borderColor,fillColor:this.data.backgroundColor,rotation:this.rotation,type:a}}get fallbackFontDict(){let t=new en;return t.setIfName("BaseFont","ZapfDingbats"),t.setIfName("Type","FallbackType"),t.setIfName("Subtype","FallbackType"),t.setIfName("Encoding","ZapfDingbatsEncoding"),I(this,"fallbackFontDict",t)}}class gH extends gU{constructor(t){super(t);let{dict:a,xref:r}=t;this.indices=a.getArray("I"),this.hasIndices=Array.isArray(this.indices)&&this.indices.length>0,this.data.options=[];let i=eI({dict:a,key:"Opt"});if(Array.isArray(i))for(let t=0,a=i.length;t<a;t++){let a=r.fetchIfRef(i[t]),n=Array.isArray(a);this.data.options[t]={exportValue:this._decodeFormValue(n?r.fetchIfRef(a[0]):a),displayValue:this._decodeFormValue(n?r.fetchIfRef(a[1]):a)}}if(this.hasIndices){this.data.fieldValue=[];let t=this.data.options.length;for(let a of this.indices)Number.isInteger(a)&&a>=0&&a<t&&this.data.fieldValue.push(this.data.options[a].exportValue)}else"string"==typeof this.data.fieldValue?this.data.fieldValue=[this.data.fieldValue]:this.data.fieldValue||=[];0===this.data.options.length&&this.data.fieldValue.length>0&&(this.data.options=this.data.fieldValue.map(t=>({exportValue:t,displayValue:t}))),this.data.combo=this.hasFieldFlag(131072),this.data.multiSelect=this.hasFieldFlag(2097152),this._hasText=!0}getFieldObject(){let t=this.data.combo?"combobox":"listbox",a=this.data.fieldValue.length>0?this.data.fieldValue[0]:null;return{id:this.data.id,value:a,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:t}}amendSavedDict(t,a){if(!this.hasIndices)return;let r=t?.get(this.data.id)?.value;Array.isArray(r)||(r=[r]);let i=[],{options:n}=this.data;for(let t=0,a=0,s=n.length;t<s;t++)n[t].exportValue===r[a]&&(i.push(t),a+=1);a.set("I",i)}async _getAppearance(t,a,r,i){let n,s;if(this.data.combo)return super._getAppearance(t,a,r,i);let o=i?.get(this.data.id);if(o&&(s=o.rotation,n=o.value),void 0===s&&void 0===n&&!this._needAppearances)return null;void 0===n?n=this.data.fieldValue:Array.isArray(n)||(n=[n]);let{width:l,height:c}=this;90!==s&&270!==s||([l,c]=[c,l]);let h=this.data.options.length,u=[];for(let t=0;t<h;t++){let{exportValue:a}=this.data.options[t];n.includes(a)&&u.push(t)}this._defaultAppearance||(this.data.defaultAppearanceData=sx(this._defaultAppearance="/Helvetica 0 Tf 0 g"));let f=await gU._getFontData(t,a,this.data.defaultAppearanceData,this._fieldResources.mergedResources),d,{fontSize:g}=this.data.defaultAppearanceData;if(g)d=this._defaultAppearance;else{let t=(c-1)/h,a,r=-1;for(let{displayValue:t}of this.data.options){let i=this._getTextWidth(t,f);i>r&&(r=i,a=t)}[d,g]=this._computeFontSize(t,l-4,a,f,-1)}let p=1.35*g,m=(p-g)/2,b=Math.floor(c/p),y=0;if(u.length>0){let t=Math.min(...u),a=Math.max(...u);(y=Math.max(0,a-b+1))>t&&(y=t)}let w=Math.min(y+b+1,h),x=["/Tx BMC q",`1 1 ${l} ${c} re W n`];if(u.length)for(let t of(x.push("0.600006 0.756866 0.854904 rg"),u))y<=t&&t<w&&x.push(`1 ${c-(t-y+1)*p} ${l} ${p} re f`);x.push("BT",d,`1 0 0 1 0 ${c} Tm`);let k={shift:0};for(let t=y;t<w;t++){let{displayValue:a}=this.data.options[t],r=t===y?m:0;x.push(this._renderText(a,f,g,l,0,k,2,-p+r))}return x.push("ET Q EMC"),x.join("\n")}}class g$ extends gU{constructor(t){super(t),this.data.fieldValue=null,this.data.hasOwnCanvas=this.data.noRotate,this.data.noHTML=!this.data.hasOwnCanvas}getFieldObject(){return{id:this.data.id,value:null,page:this.data.pageIndex,type:"signature"}}}class gz extends gL{constructor(t){super(t),this.data.noRotate=!0,this.data.hasOwnCanvas=this.data.noRotate,this.data.noHTML=!1;let{dict:a}=t;this.data.annotationType=p.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=a.has("Name")?a.get("Name").name:"Note"),a.has("State")?(this.data.state=a.get("State")||null,this.data.stateModel=a.get("StateModel")||null):(this.data.state=null,this.data.stateModel=null)}}class gG extends gP{constructor(t){super(t);let{dict:a,annotationGlobals:r}=t;this.data.annotationType=p.LINK,this.data.noHTML=!1;let i=gD(a,this.rectangle);i&&(this.data.quadPoints=i),this.data.borderColor||=this.data.color,sz.parseDestDictionary({destDict:a,resultObj:this.data,docBaseUrl:r.baseUrl,docAttachments:r.attachments})}get overlaysTextContent(){return!0}}class gW extends gP{constructor(t){super(t);let{dict:a}=t;this.data.annotationType=p.POPUP,this.data.noHTML=!1,0!==this.width&&0!==this.height||(this.data.rect=null);let r=a.get("Parent");if(!r){v("Popup annotation has a missing or invalid parent annotation.");return}if(this.data.parentRect=e_(r.getArray("Rect"),null),this.data.creationDate=r.get("CreationDate")||"",ec(r.get("RT"),m)&&(r=r.get("IRT")),r.has("M")?(this.setModificationDate(r.get("M")),this.data.modificationDate=this.modificationDate):this.data.modificationDate=null,r.has("C")?(this.setColor(r.getArray("C")),this.data.color=this.color):this.data.color=null,!this.viewable){let t=r.get("F");this._isViewable(t)&&this.setFlags(t)}this.setTitle(r.get("T")),this.data.titleObj=this._title,this.setContents(r.get("Contents")),this.data.contentsObj=this._contents,r.has("RC")&&(this.data.richText=gM.getRichTextAsHtml(r.get("RC"))),this.data.open=!!a.get("Open")}static createNewDict(t,a,r){let{oldAnnotation:i,rect:n,parent:s}=t,o=i||new en(a);return o.setIfNotExists("Type",ea.get("Annot")),o.setIfNotExists("Subtype",ea.get("Popup")),o.setIfNotExists("Open",!1),o.setIfArray("Rect",n),o.set("Parent",s),o}static async createNewAppearanceStream(t,a,r){return null}}class gV extends gL{constructor(t){super(t),this.data.hasOwnCanvas=this.data.noRotate,this.data.isEditable=!this.data.noHTML,this.data.noHTML=!1;let{annotationGlobals:a,evaluatorOptions:r,xref:i}=t;if(this.data.annotationType=p.FREETEXT,this.setDefaultAppearance(t),this._hasAppearance=!!this.appearance,this._hasAppearance){let{fontColor:t,fontSize:n}=new sk(this.appearance,r,i,a.globalColorSpaceCache).parse();this.data.defaultAppearanceData.fontColor=t,this.data.defaultAppearanceData.fontSize=n||10}else{this.data.defaultAppearanceData.fontSize||=10;let{fontColor:a,fontSize:r}=this.data.defaultAppearanceData;if(this._contents.str){this.data.textContent=this._contents.str.split(/\r\n?|\n/).map(t=>t.trimEnd());let{coords:t,bbox:a,matrix:i}=sA.getFirstPositionInfo(this.rectangle,this.rotation,r);this.data.textPosition=this._transformPoint(t,a,i)}if(this._isOffscreenCanvasSupported){let n=t.dict.get("CA"),s=new sA(i,"sans-serif");this.appearance=s.createAppearance(this._contents.str,this.rectangle,this.rotation,r,a,n),this._streams.push(this.appearance)}else v("FreeTextAnnotation: OffscreenCanvas is not supported, annotation may not render correctly.")}}get hasTextContent(){return this._hasAppearance}static createNewDict(t,a,{apRef:r,ap:i}){let{color:n,date:s,fontSize:o,oldAnnotation:l,rect:c,rotation:h,user:u,value:f}=t,d=l||new en(a);d.setIfNotExists("Type",ea.get("Annot")),d.setIfNotExists("Subtype",ea.get("FreeText")),d.set(l?"M":"CreationDate",`D:${W(s)}`),l&&d.delete("RC"),d.setIfArray("Rect",c);let g=`/Helv ${o} Tf ${sv(n,!0)}`;if(d.set("DA",g),d.setIfDefined("Contents",eK(f)),d.setIfNotExists("F",4),d.setIfNotExists("Border",[0,0,0]),d.setIfNumber("Rotate",h),d.setIfDefined("T",eK(u)),r||i){let t=new en(a);d.set("AP",t),t.set("N",r||i)}return d}static async createNewAppearanceStream(t,a,r){let i,n,s;let{baseFontRef:o,evaluator:l,task:c}=r,{color:h,fontSize:u,rect:f,rotation:d,value:g}=t;if(!h)return null;let p=new en(a),m=new en(a);if(o)m.set("Helv",o);else{let t=new en(a);t.setIfName("BaseFont","Helvetica"),t.setIfName("Type","Font"),t.setIfName("Subtype","Type1"),t.setIfName("Encoding","WinAnsiEncoding"),m.set("Helv",t)}p.set("Font",m);let b=await gU._getFontData(l,c,{fontName:"Helv",fontSize:u},p),[y,w,x,k]=f,v=x-y,A=k-w;d%180!=0&&([v,A]=[A,v]);let C=g.split("\n"),S=u/1e3,I=-1/0,T=[];for(let t of C){let a=b.encodeString(t);if(a.length>1)return null;t=a.join(""),T.push(t);let r=0,i=b.charsToGlyphs(t);for(let t of i)r+=t.width*S;I=Math.max(I,r)}let B=1;I>v&&(B=v/I);let F=1,M=1.35*u,R=1*u,N=M*C.length;N>A&&(F=A/N);let O=u*Math.min(B,F);switch(d){case 0:s=[1,0,0,1],n=[f[0],f[1],v,A],i=[f[0],f[3]-R];break;case 90:s=[0,1,-1,0],n=[f[1],-f[2],v,A],i=[f[1],-f[0]-R];break;case 180:s=[-1,0,0,-1],n=[-f[2],-f[3],v,A],i=[-f[2],-f[1]-R];break;case 270:s=[0,-1,1,0],n=[-f[3],f[0],v,A],i=[-f[3],f[2]-R]}let D=["q",`${s.join(" ")} 0 0 cm`,`${n.join(" ")} re W n`,"BT",`${sv(h,!0)}`,`0 Tc /Helv ${eV(O)} Tf`];D.push(`${i.join(" ")} Td (${ej(T[0])}) Tj`);let E=eV(M);for(let t=1,a=T.length;t<a;t++){let a=T[t];D.push(`0 -${E} Td (${ej(a)}) Tj`)}D.push("ET","Q");let P=D.join("\n"),_=new en(a);_.set("FormType",1),_.setIfName("Subtype","Form"),_.setIfName("Type","XObject"),_.set("BBox",f),_.set("Resources",p),_.set("Matrix",[1,0,0,1,-f[0],-f[1]]);let L=new tp(P);return L.dict=_,L}}class gX extends gL{constructor(t){super(t);let{dict:a,xref:r}=t;this.data.annotationType=p.LINE,this.data.hasOwnCanvas=this.data.noRotate,this.data.noHTML=!1;let i=eP(a.getArray("L"),[0,0,0,0]);if(this.data.lineCoordinates=j.normalizeRect(i),this.setLineEndings(a.getArray("LE")),this.data.lineEndings=this.lineEndings,!this.appearance){let t=gO(this.color,[0,0,0]),n=a.get("CA"),s=gO(gN(a.getArray("IC"),null)),o=s?n:null,l=this.borderStyle.width||1,c=2*l,h=[this.data.lineCoordinates[0]-c,this.data.lineCoordinates[1]-c,this.data.lineCoordinates[2]+c,this.data.lineCoordinates[3]+c];j.intersect(this.rectangle,h)||(this.rectangle=h),this._setDefaultAppearance({xref:r,extra:`${l} w`,strokeColor:t,fillColor:s,strokeAlpha:n,fillAlpha:o,pointsCallback:(t,a)=>(t.push(`${i[0]} ${i[1]} m`,`${i[2]} ${i[3]} l`,"S"),[a[0]-l,a[7]-l,a[2]+l,a[3]+l])})}}}class gK extends gL{constructor(t){super(t);let{dict:a,xref:r}=t;if(this.data.annotationType=p.SQUARE,this.data.hasOwnCanvas=this.data.noRotate,this.data.noHTML=!1,!this.appearance){let t=gO(this.color,[0,0,0]),i=a.get("CA"),n=gO(gN(a.getArray("IC"),null)),s=n?i:null;if(0===this.borderStyle.width&&!n)return;this._setDefaultAppearance({xref:r,extra:`${this.borderStyle.width} w`,strokeColor:t,fillColor:n,strokeAlpha:i,fillAlpha:s,pointsCallback:(t,a)=>{let r=a[4]+this.borderStyle.width/2,i=a[5]+this.borderStyle.width/2,s=a[6]-a[4]-this.borderStyle.width,o=a[3]-a[7]-this.borderStyle.width;return t.push(`${r} ${i} ${s} ${o} re`),n?t.push("B"):t.push("S"),[a[0],a[7],a[2],a[3]]}})}}}class gY extends gL{constructor(t){super(t);let{dict:a,xref:r}=t;if(this.data.annotationType=p.CIRCLE,!this.appearance){let t=gO(this.color,[0,0,0]),i=a.get("CA"),n=gO(gN(a.getArray("IC"),null)),s=n?i:null;if(0===this.borderStyle.width&&!n)return;let o=4/3*Math.tan(Math.PI/8);this._setDefaultAppearance({xref:r,extra:`${this.borderStyle.width} w`,strokeColor:t,fillColor:n,strokeAlpha:i,fillAlpha:s,pointsCallback:(t,a)=>{let r=a[0]+this.borderStyle.width/2,i=a[1]-this.borderStyle.width/2,s=a[6]-this.borderStyle.width/2,l=a[7]+this.borderStyle.width/2,c=r+(s-r)/2,h=i+(l-i)/2,u=(s-r)/2*o,f=(l-i)/2*o;return t.push(`${c} ${l} m`,`${c+u} ${l} ${s} ${h+f} ${s} ${h} c`,`${s} ${h-f} ${c+u} ${i} ${c} ${i} c`,`${c-u} ${i} ${r} ${h-f} ${r} ${h} c`,`${r} ${h+f} ${c-u} ${l} ${c} ${l} c`,"h"),n?t.push("B"):t.push("S"),[a[0],a[7],a[2],a[3]]}})}}}class gJ extends gL{constructor(t){super(t);let{dict:a,xref:r}=t;this.data.annotationType=p.POLYLINE,this.data.hasOwnCanvas=this.data.noRotate,this.data.noHTML=!1,this.data.vertices=null,this instanceof gZ||(this.setLineEndings(a.getArray("LE")),this.data.lineEndings=this.lineEndings);let i=a.getArray("Vertices");if(!eD(i,null))return;let n=this.data.vertices=Float32Array.from(i);if(!this.appearance){let t=gO(this.color,[0,0,0]),i=a.get("CA"),s,o=gN(a.getArray("IC"),null);o&&(o=gO(o)),s=o?this.color?o.every((a,r)=>a===t[r])?"f":"B":"f":"S";let l=this.borderStyle.width||1,c=2*l,h=[1/0,1/0,-1/0,-1/0];for(let t=0,a=n.length;t<a;t+=2)j.rectBoundingBox(n[t]-c,n[t+1]-c,n[t]+c,n[t+1]+c,h);j.intersect(this.rectangle,h)||(this.rectangle=h),this._setDefaultAppearance({xref:r,extra:`${l} w`,strokeColor:t,strokeAlpha:i,fillColor:o,fillAlpha:o?i:null,pointsCallback:(t,a)=>{for(let a=0,r=n.length;a<r;a+=2)t.push(`${n[a]} ${n[a+1]} ${0===a?"m":"l"}`);return t.push(s),[a[0],a[7],a[2],a[3]]}})}}}class gZ extends gJ{constructor(t){super(t),this.data.annotationType=p.POLYGON}}class gQ extends gL{constructor(t){super(t),this.data.annotationType=p.CARET}}class g1 extends gL{constructor(t){super(t),this.data.hasOwnCanvas=this.data.noRotate,this.data.noHTML=!1;let{dict:a,xref:r}=t;this.data.annotationType=p.INK,this.data.inkLists=[],this.data.isEditable=!this.data.noHTML,this.data.noHTML=!1,this.data.opacity=a.get("CA")||1;let i=a.getArray("InkList");if(Array.isArray(i)){for(let t=0,a=i.length;t<a;++t){if(!Array.isArray(i[t]))continue;let a=new Float32Array(i[t].length);this.data.inkLists.push(a);for(let n=0,s=i[t].length;n<s;n+=2){let s=r.fetchIfRef(i[t][n]),o=r.fetchIfRef(i[t][n+1]);"number"==typeof s&&"number"==typeof o&&(a[n]=s,a[n+1]=o)}}if(!this.appearance){let t=gO(this.color,[0,0,0]),i=a.get("CA"),n=this.borderStyle.width||1,s=2*n,o=[1/0,1/0,-1/0,-1/0];for(let t of this.data.inkLists)for(let a=0,r=t.length;a<r;a+=2)j.rectBoundingBox(t[a]-s,t[a+1]-s,t[a]+s,t[a+1]+s,o);j.intersect(this.rectangle,o)||(this.rectangle=o),this._setDefaultAppearance({xref:r,extra:`${n} w`,strokeColor:t,strokeAlpha:i,pointsCallback:(t,a)=>{for(let a of this.data.inkLists){for(let r=0,i=a.length;r<i;r+=2)t.push(`${a[r]} ${a[r+1]} ${0===r?"m":"l"}`);t.push("S")}return[a[0],a[7],a[2],a[3]]}})}}}static createNewDict(t,a,{apRef:r,ap:i}){let{oldAnnotation:n,color:s,date:o,opacity:l,paths:c,outlines:h,rect:u,rotation:f,thickness:d,user:g}=t,p=n||new en(a);if(p.setIfNotExists("Type",ea.get("Annot")),p.setIfNotExists("Subtype",ea.get("Ink")),p.set(n?"M":"CreationDate",`D:${W(o)}`),p.setIfArray("Rect",u),p.setIfArray("InkList",h?.points||c?.points),p.setIfNotExists("F",4),p.setIfNumber("Rotate",f),p.setIfDefined("T",eK(g)),h&&p.setIfName("IT","InkHighlight"),d>0){let t=new en(a);p.set("BS",t),t.set("W",d)}if(p.setIfArray("C",gO(s)),p.setIfNumber("CA",l),i||r){let t=new en(a);p.set("AP",t),t.set("N",r||i)}return p}static async createNewAppearanceStream(t,a,r){if(t.outlines)return this.createNewAppearanceStreamForHighlight(t,a,r);let{color:i,rect:n,paths:s,thickness:o,opacity:l}=t;if(!i)return null;let c=[`${o} w 1 J 1 j`,`${sv(i,!1)}`];for(let t of(1!==l&&c.push("/R0 gs"),s.lines)){c.push(`${eV(t[4])} ${eV(t[5])} m`);for(let a=6,r=t.length;a<r;a+=6)if(isNaN(t[a]))c.push(`${eV(t[a+4])} ${eV(t[a+5])} l`);else{let[r,i,n,s,o,l]=t.slice(a,a+6);c.push([r,i,n,s,o,l].map(eV).join(" ")+" c")}6===t.length&&c.push(`${eV(t[4])} ${eV(t[5])} l`)}c.push("S");let h=c.join("\n"),u=new en(a);if(u.set("FormType",1),u.setIfName("Subtype","Form"),u.setIfName("Type","XObject"),u.set("BBox",n),u.set("Length",h.length),1!==l){let t=new en(a),r=new en(a),i=new en(a);i.set("CA",l),i.setIfName("Type","ExtGState"),r.set("R0",i),t.set("ExtGState",r),u.set("Resources",t)}let f=new tp(h);return f.dict=u,f}static async createNewAppearanceStreamForHighlight(t,a,r){let{color:i,rect:n,outlines:{outline:s},opacity:o}=t;if(!i)return null;let l=[`${sv(i,!0)}`,"/R0 gs"];l.push(`${eV(s[4])} ${eV(s[5])} m`);for(let t=6,a=s.length;t<a;t+=6)if(isNaN(s[t]))l.push(`${eV(s[t+4])} ${eV(s[t+5])} l`);else{let[a,r,i,n,o,c]=s.slice(t,t+6);l.push([a,r,i,n,o,c].map(eV).join(" ")+" c")}l.push("h f");let c=l.join("\n"),h=new en(a);h.set("FormType",1),h.setIfName("Subtype","Form"),h.setIfName("Type","XObject"),h.set("BBox",n),h.set("Length",c.length);let u=new en(a),f=new en(a);u.set("ExtGState",f),h.set("Resources",u);let d=new en(a);f.set("R0",d),d.setIfName("BM","Multiply"),1!==o&&(d.set("ca",o),d.setIfName("Type","ExtGState"));let g=new tp(c);return g.dict=h,g}}class g0 extends gL{constructor(t){super(t);let{dict:a,xref:r}=t;if(this.data.annotationType=p.HIGHLIGHT,this.data.isEditable=!this.data.noHTML,this.data.noHTML=!1,this.data.opacity=a.get("CA")||1,this.data.quadPoints=gD(a,null)){let t=this.appearance?.dict.get("Resources");if(!this.appearance||!t?.has("ExtGState")){this.appearance&&v("HighlightAnnotation - ignoring built-in appearance stream.");let t=gO(this.color,[1,1,0]),i=a.get("CA");this._setDefaultAppearance({xref:r,fillColor:t,blendMode:"Multiply",fillAlpha:i,pointsCallback:(t,a)=>(t.push(`${a[0]} ${a[1]} m`,`${a[2]} ${a[3]} l`,`${a[6]} ${a[7]} l`,`${a[4]} ${a[5]} l`,"f"),[a[0],a[7],a[2],a[3]])})}}else this.data.popupRef=null}get overlaysTextContent(){return!0}static createNewDict(t,a,{apRef:r,ap:i}){let{color:n,date:s,oldAnnotation:o,opacity:l,rect:c,rotation:h,user:u,quadPoints:f}=t,d=o||new en(a);if(d.setIfNotExists("Type",ea.get("Annot")),d.setIfNotExists("Subtype",ea.get("Highlight")),d.set(o?"M":"CreationDate",`D:${W(s)}`),d.setIfArray("Rect",c),d.setIfNotExists("F",4),d.setIfNotExists("Border",[0,0,0]),d.setIfNumber("Rotate",h),d.setIfArray("QuadPoints",f),d.setIfArray("C",gO(n)),d.setIfNumber("CA",l),d.setIfDefined("T",eK(u)),r||i){let t=new en(a);d.set("AP",t),t.set("N",r||i)}return d}static async createNewAppearanceStream(t,a,r){let{color:i,rect:n,outlines:s,opacity:o}=t;if(!i)return null;let l=[`${sv(i,!0)}`,"/R0 gs"],c=[];for(let t of s){c.length=0,c.push(`${eV(t[0])} ${eV(t[1])} m`);for(let a=2,r=t.length;a<r;a+=2)c.push(`${eV(t[a])} ${eV(t[a+1])} l`);c.push("h"),l.push(c.join("\n"))}l.push("f*");let h=l.join("\n"),u=new en(a);u.set("FormType",1),u.setIfName("Subtype","Form"),u.setIfName("Type","XObject"),u.set("BBox",n),u.set("Length",h.length);let f=new en(a),d=new en(a);f.set("ExtGState",d),u.set("Resources",f);let g=new en(a);d.set("R0",g),g.setIfName("BM","Multiply"),1!==o&&(g.set("ca",o),g.setIfName("Type","ExtGState"));let p=new tp(h);return p.dict=u,p}}class g2 extends gL{constructor(t){super(t);let{dict:a,xref:r}=t;if(this.data.annotationType=p.UNDERLINE,this.data.quadPoints=gD(a,null)){if(!this.appearance){let t=gO(this.color,[0,0,0]),i=a.get("CA");this._setDefaultAppearance({xref:r,extra:"[] 0 d 0.571 w",strokeColor:t,strokeAlpha:i,pointsCallback:(t,a)=>(t.push(`${a[4]} ${a[5]+1.3} m`,`${a[6]} ${a[7]+1.3} l`,"S"),[a[0],a[7],a[2],a[3]])})}}else this.data.popupRef=null}get overlaysTextContent(){return!0}}class g9 extends gL{constructor(t){super(t);let{dict:a,xref:r}=t;if(this.data.annotationType=p.SQUIGGLY,this.data.quadPoints=gD(a,null)){if(!this.appearance){let t=gO(this.color,[0,0,0]),i=a.get("CA");this._setDefaultAppearance({xref:r,extra:"[] 0 d 1 w",strokeColor:t,strokeAlpha:i,pointsCallback:(t,a)=>{let r=(a[1]-a[5])/6,i=r,n=a[4],s=a[5],o=a[6];t.push(`${n} ${s+i} m`);do n+=2,i=0===i?r:0,t.push(`${n} ${s+i} l`);while(n<o)return t.push("S"),[a[4],s-2*r,o,s+2*r]}})}}else this.data.popupRef=null}get overlaysTextContent(){return!0}}class g5 extends gL{constructor(t){super(t);let{dict:a,xref:r}=t;if(this.data.annotationType=p.STRIKEOUT,this.data.quadPoints=gD(a,null)){if(!this.appearance){let t=gO(this.color,[0,0,0]),i=a.get("CA");this._setDefaultAppearance({xref:r,extra:"[] 0 d 1 w",strokeColor:t,strokeAlpha:i,pointsCallback:(t,a)=>(t.push((a[0]+a[4])/2+" "+(a[1]+a[5])/2+" m",(a[2]+a[6])/2+" "+(a[3]+a[7])/2+" l","S"),[a[0],a[7],a[2],a[3]])})}}else this.data.popupRef=null}get overlaysTextContent(){return!0}}class g3 extends gL{#eO=null;constructor(t){super(t),this.data.annotationType=p.STAMP,this.data.hasOwnCanvas=this.data.noRotate,this.data.isEditable=!this.data.noHTML,this.data.noHTML=!1}mustBeViewedWhenEditing(t,a=null){return t?!this.data.isEditable||(this.#eO??=this.data.hasOwnCanvas,this.data.hasOwnCanvas=!0,!0):(null!==this.#eO&&(this.data.hasOwnCanvas=this.#eO,this.#eO=null),!a?.has(this.data.id))}static async createImage(t,a){let{width:r,height:i}=t,n=new OffscreenCanvas(r,i),s=n.getContext("2d",{alpha:!0});s.drawImage(t,0,0);let o=s.getImageData(0,0,r,i).data,l=new Uint32Array(o.buffer),c=l.some(L.isLittleEndian?t=>t>>>24!=255:t=>!!(255&~t));c&&(s.fillStyle="white",s.fillRect(0,0,r,i),s.drawImage(t,0,0));let h=n.convertToBlob({type:"image/jpeg",quality:1}).then(t=>t.arrayBuffer()),u=ea.get("XObject"),f=ea.get("Image"),d=new en(a);d.set("Type",u),d.set("Subtype",f),d.set("BitsPerComponent",8),d.setIfName("ColorSpace","DeviceRGB"),d.setIfName("Filter","DCTDecode"),d.set("BBox",[0,0,r,i]),d.set("Width",r),d.set("Height",i);let g=null;if(c){let t=new Uint8Array(l.length);if(L.isLittleEndian)for(let a=0,r=l.length;a<r;a++)t[a]=l[a]>>>24;else for(let a=0,r=l.length;a<r;a++)t[a]=255&l[a];let n=new en(a);n.set("Type",u),n.set("Subtype",f),n.set("BitsPerComponent",8),n.setIfName("ColorSpace","DeviceGray"),n.set("Width",r),n.set("Height",i),g=new tg(t,0,0,n)}return{imageStream:new tg(await h,0,0,d),smaskStream:g,width:r,height:i}}static createNewDict(t,a,{apRef:r,ap:i}){let{date:n,oldAnnotation:s,rect:o,rotation:l,user:c}=t,h=s||new en(a);if(h.setIfNotExists("Type",ea.get("Annot")),h.setIfNotExists("Subtype",ea.get("Stamp")),h.set(s?"M":"CreationDate",`D:${W(n)}`),h.setIfArray("Rect",o),h.setIfNotExists("F",4),h.setIfNotExists("Border",[0,0,0]),h.setIfNumber("Rotate",l),h.setIfDefined("T",eK(c)),r||i){let t=new en(a);h.set("AP",t),t.set("N",r||i)}return h}static async #eD(t,a){let{areContours:r,color:i,rect:n,lines:s,thickness:o}=t;if(!i)return null;let l=[`${o} w 1 J 1 j`,`${sv(i,r)}`];for(let t of s){l.push(`${eV(t[4])} ${eV(t[5])} m`);for(let a=6,r=t.length;a<r;a+=6)if(isNaN(t[a]))l.push(`${eV(t[a+4])} ${eV(t[a+5])} l`);else{let[r,i,n,s,o,c]=t.slice(a,a+6);l.push([r,i,n,s,o,c].map(eV).join(" ")+" c")}6===t.length&&l.push(`${eV(t[4])} ${eV(t[5])} l`)}l.push(r?"F":"S");let c=l.join("\n"),h=new en(a);h.set("FormType",1),h.setIfName("Subtype","Form"),h.setIfName("Type","XObject"),h.set("BBox",n),h.set("Length",c.length);let u=new tp(c);return u.dict=h,u}static async createNewAppearanceStream(t,a,r){if(t.oldAnnotation)return null;if(t.isSignature)return this.#eD(t,a);let{rotation:i}=t,{imageRef:n,width:s,height:o}=r.image,l=new en(a),c=new en(a);l.set("XObject",c),c.set("Im0",n);let h=`q ${s} 0 0 ${o} 0 0 cm /Im0 Do Q`,u=new en(a);if(u.set("FormType",1),u.setIfName("Subtype","Form"),u.setIfName("Type","XObject"),u.set("BBox",[0,0,s,o]),u.set("Resources",l),i){let t=eJ(i,s,o);u.set("Matrix",t)}let f=new tp(h);return f.dict=u,f}}class g6 extends gL{constructor(t){super(t);let{dict:a,xref:r}=t,i=new sR(a.get("FS"),r);this.data.annotationType=p.FILEATTACHMENT,this.data.hasOwnCanvas=this.data.noRotate,this.data.noHTML=!1,this.data.file=i.serializable;let n=a.get("Name");this.data.name=n instanceof ea?H(n.name):"PushPin";let s=a.get("ca");this.data.fillAlpha="number"==typeof s&&s>=0&&s<=1?s:null}}let g7={get r(){return I(this,"r",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]))},get k(){return I(this,"k",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 g8(t,a,r){let i,n,s=1732584193,o=-271733879,l=-1732584194,c=271733878,h=r+72&-64,u=new Uint8Array(h);for(i=0;i<r;++i)u[i]=t[a++];u[i++]=128;let f=h-8;i<f&&(i=f),u[i++]=r<<3&255,u[i++]=r>>5&255,u[i++]=r>>13&255,u[i++]=r>>21&255,u[i++]=r>>>29&255,i+=3;let d=new Int32Array(16),{k:g,r:p}=g7;for(i=0;i<h;){for(n=0;n<16;++n,i+=4)d[n]=u[i]|u[i+1]<<8|u[i+2]<<16|u[i+3]<<24;let t,a,r=s,h=o,f=l,m=c;for(n=0;n<64;++n){n<16?(t=h&f|~h&m,a=n):n<32?(t=m&h|~m&f,a=5*n+1&15):n<48?(t=h^f^m,a=3*n+5&15):(t=f^(h|~m),a=7*n&15);let i=m,s=r+t+g[n]+d[a]|0,o=p[n];m=f,f=h,h=h+(s<<o|s>>>32-o)|0,r=i}s=s+r|0,o=o+h|0,l=l+f|0,c=c+m|0}return new Uint8Array([255&s,s>>8&255,s>>16&255,s>>>24&255,255&o,o>>8&255,o>>16&255,o>>>24&255,255&l,l>>8&255,l>>16&255,l>>>24&255,255&c,c>>8&255,c>>16&255,c>>>24&255])}function g4(t){try{return $(t)}catch(a){return v(`UTF-8 decoding failed: "${a}".`),t}}class pe extends sE{constructor(t){super(t),this.node=null}onEndElement(t){let a=super.onEndElement(t);if(a&&"xfa:datasets"===t)throw this.node=a,Error("Aborting DatasetXMLParser.")}}class pt{constructor(t){if(t.datasets)this.node=new sE({hasAttributes:!0}).parseFromString(t.datasets).documentElement;else{let a=new pe({hasAttributes:!0});try{a.parseFromString(t["xdp:xdp"])}catch{}this.node=a.node}}getValue(t){if(!this.node||!t)return"";let a=this.node.searchNode(eL(t),0);if(!a)return"";let r=a.firstChild;return"value"===r?.nodeName?a.children.map(t=>g4(t.textContent)):g4(a.textContent)}}class pa{#eE;minX=1/0;minY=1/0;maxX=-1/0;maxY=-1/0;#eP=null;#e_=[];#eL=[];#eU=-1;#ej=!1;constructor(t){this.#eE=t;let a=t.data.quadPoints;if(a){for(let t=0,r=a.length;t<r;t+=8)this.minX=Math.min(this.minX,a[t]),this.maxX=Math.max(this.maxX,a[t+2]),this.minY=Math.min(this.minY,a[t+5]),this.maxY=Math.max(this.maxY,a[t+1]);a.length>8&&(this.#eP=a)}else[this.minX,this.minY,this.maxX,this.maxY]=t.data.rect}#eq(t,a){if(this.minX>=t||this.maxX<=t||this.minY>=a||this.maxY<=a)return!1;let r=this.#eP;if(!r)return!0;if(this.#eU>=0){let i=this.#eU;if(!(r[i]>=t||r[i+2]<=t||r[i+5]>=a||r[i+1]<=a))return!0;this.#eU=-1}for(let i=0,n=r.length;i<n;i+=8)if(!(r[i]>=t||r[i+2]<=t||r[i+5]>=a||r[i+1]<=a))return this.#eU=i,!0;return!1}addGlyph(t,a,r){return this.#eq(t,a)?(this.#eL.length>0&&(this.#e_.push(this.#eL.join("")),this.#eL.length=0),this.#e_.push(r),this.#ej=!0,!0):(this.disableExtraChars(),!1)}addExtraChar(t){this.#ej&&this.#eL.push(t)}disableExtraChars(){this.#ej&&(this.#ej=!1,this.#eL.length=0)}setText(){this.#eE.data.overlaidText=this.#e_.join("")}}class pr{#eH=[];#e$=[];#ez;#eG;#eW;#eV;#eX;#eK;constructor(t){let a=1/0,r=1/0,i=-1/0,n=-1/0,s=this.#eH;for(let o of t){if(!o.data.quadPoints&&!o.data.rect)continue;let t=new pa(o);s.push(t),a=Math.min(a,t.minX),r=Math.min(r,t.minY),i=Math.max(i,t.maxX),n=Math.max(n,t.maxY)}for(let t of(this.#ez=a,this.#eW=r,this.#eG=i,this.#eV=n,this.#eX=63/(i-a),this.#eK=63/(n-r),s)){let a=this.#eY(t.minX,t.minY),r=this.#eY(t.maxX,t.maxY),i=(r-a)%64,n=Math.floor((r-a)/64);for(let r=a;r<=a+64*n;r+=64)for(let a=0;a<=i;a++){let i=this.#e$[r+a];i||(this.#e$[r+a]=i=[]),i.push(t)}}}#eY(t,a){return Math.floor((t-this.#ez)*this.#eX)+64*Math.floor((a-this.#eW)*this.#eK)}addGlyph(t,a,r,i){let n=t[4]+a/2,s=t[5]+r/2;if(n<this.#ez||s<this.#eW||n>this.#eG||s>this.#eV)return;let o=this.#e$[this.#eY(n,s)];if(o)for(let t of o)t.addGlyph(n,s,i)}addExtraChar(t){for(let a of this.#eH)a.addExtraChar(t)}setText(){for(let t of this.#eH)t.setText()}}class pi{constructor(t,a){this.high=0|t,this.low=0|a}and(t){this.high&=t.high,this.low&=t.low}xor(t){this.high^=t.high,this.low^=t.low}shiftRight(t){t>=32?(this.low=this.high>>>t-32|0,this.high=0):(this.low=this.low>>>t|this.high<<32-t,this.high=this.high>>>t|0)}rotateRight(t){let a,r;32&t?(r=this.low,a=this.high):(a=this.low,r=this.high),t&=31,this.low=a>>>t|r<<32-t,this.high=r>>>t|a<<32-t}not(){this.high=~this.high,this.low=~this.low}add(t){let a=(this.low>>>0)+(t.low>>>0),r=(this.high>>>0)+(t.high>>>0);a>4294967295&&(r+=1),this.low=0|a,this.high=0|r}copyTo(t,a){t[a]=this.high>>>24&255,t[a+1]=this.high>>16&255,t[a+2]=this.high>>8&255,t[a+3]=255&this.high,t[a+4]=this.low>>>24&255,t[a+5]=this.low>>16&255,t[a+6]=this.low>>8&255,t[a+7]=255&this.low}assign(t){this.high=t.high,this.low=t.low}}let pn={get k(){return I(this,"k",[new pi(1116352408,3609767458),new pi(1899447441,602891725),new pi(3049323471,3964484399),new pi(3921009573,2173295548),new pi(961987163,4081628472),new pi(1508970993,3053834265),new pi(2453635748,2937671579),new pi(2870763221,3664609560),new pi(3624381080,2734883394),new pi(310598401,1164996542),new pi(607225278,1323610764),new pi(1426881987,3590304994),new pi(1925078388,4068182383),new pi(2162078206,991336113),new pi(2614888103,633803317),new pi(3248222580,3479774868),new pi(3835390401,2666613458),new pi(4022224774,944711139),new pi(264347078,2341262773),new pi(604807628,2007800933),new pi(770255983,1495990901),new pi(1249150122,1856431235),new pi(1555081692,3175218132),new pi(1996064986,2198950837),new pi(2554220882,3999719339),new pi(2821834349,766784016),new pi(2952996808,2566594879),new pi(3210313671,3203337956),new pi(3336571891,1034457026),new pi(3584528711,2466948901),new pi(113926993,3758326383),new pi(338241895,168717936),new pi(666307205,1188179964),new pi(773529912,1546045734),new pi(1294757372,1522805485),new pi(1396182291,2643833823),new pi(1695183700,2343527390),new pi(1986661051,1014477480),new pi(2177026350,1206759142),new pi(2456956037,344077627),new pi(2730485921,1290863460),new pi(2820302411,3158454273),new pi(3259730800,3505952657),new pi(3345764771,106217008),new pi(3516065817,3606008344),new pi(3600352804,1432725776),new pi(4094571909,1467031594),new pi(275423344,851169720),new pi(430227734,3100823752),new pi(506948616,1363258195),new pi(659060556,3750685593),new pi(883997877,3785050280),new pi(958139571,3318307427),new pi(1322822218,3812723403),new pi(1537002063,2003034995),new pi(1747873779,3602036899),new pi(1955562222,1575990012),new pi(2024104815,1125592928),new pi(2227730452,2716904306),new pi(2361852424,442776044),new pi(2428436474,593698344),new pi(2756734187,3733110249),new pi(3204031479,2999351573),new pi(3329325298,3815920427),new pi(3391569614,3928383900),new pi(3515267271,566280711),new pi(3940187606,3454069534),new pi(4118630271,4000239992),new pi(116418474,1914138554),new pi(174292421,2731055270),new pi(289380356,3203993006),new pi(460393269,320620315),new pi(685471733,587496836),new pi(852142971,1086792851),new pi(1017036298,365543100),new pi(1126000580,2618297676),new pi(1288033470,3409855158),new pi(1501505948,4234509866),new pi(1607167915,987167468),new pi(1816402316,1246189591)])}};function ps(t,a,r,i=!1){let n,s,o,l,c,h,u,f,d,g,p,m;i?(n=new pi(3418070365,3238371032),s=new pi(1654270250,914150663),o=new pi(2438529370,812702999),l=new pi(355462360,4144912697),c=new pi(1731405415,4290775857),h=new pi(2394180231,1750603025),u=new pi(3675008525,1694076839),f=new pi(1203062813,3204075428)):(n=new pi(1779033703,4089235720),s=new pi(3144134277,2227873595),o=new pi(1013904242,4271175723),l=new pi(2773480762,1595750129),c=new pi(1359893119,2917565137),h=new pi(2600822924,725511199),u=new pi(528734635,4215389547),f=new pi(1541459225,327033209));let b=128*Math.ceil((r+17)/128),y=new Uint8Array(b);for(d=0;d<r;++d)y[d]=t[a++];y[d++]=128;let w=b-16;d<w&&(d=w),d+=11,y[d++]=r>>>29&255,y[d++]=r>>21&255,y[d++]=r>>13&255,y[d++]=r>>5&255,y[d++]=r<<3&255;let x=Array(80);for(d=0;d<80;d++)x[d]=new pi(0,0);let{k:k}=pn,v=new pi(0,0),A=new pi(0,0),C=new pi(0,0),S=new pi(0,0),I=new pi(0,0),T=new pi(0,0),B=new pi(0,0),F=new pi(0,0),M=new pi(0,0),R=new pi(0,0),N=new pi(0,0),O=new pi(0,0);for(d=0;d<b;){var D,E,P,_,L,U,j,q,H,$,z;for(g=0;g<16;++g)x[g].high=y[d]<<24|y[d+1]<<16|y[d+2]<<8|y[d+3],x[g].low=y[d+4]<<24|y[d+5]<<16|y[d+6]<<8|y[d+7],d+=8;for(g=16;g<80;++g)D=p=x[g],E=x[g-2],D.assign(E),D.rotateRight(19),O.assign(E),O.rotateRight(61),D.xor(O),O.assign(E),O.shiftRight(6),D.xor(O),p.add(x[g-7]),P=x[g-15],N.assign(P),N.rotateRight(1),O.assign(P),O.rotateRight(8),N.xor(O),O.assign(P),O.shiftRight(7),N.xor(O),p.add(N),p.add(x[g-16]);for(v.assign(n),A.assign(s),C.assign(o),S.assign(l),I.assign(c),T.assign(h),B.assign(u),F.assign(f),g=0;g<80;++g)M.assign(F),_=I,N.assign(_),N.rotateRight(14),O.assign(_),O.rotateRight(18),N.xor(O),O.assign(_),O.rotateRight(41),N.xor(O),M.add(N),L=I,U=T,j=B,N.assign(L),N.and(U),O.assign(L),O.not(),O.and(j),N.xor(O),M.add(N),M.add(k[g]),M.add(x[g]),q=v,R.assign(q),R.rotateRight(28),O.assign(q),O.rotateRight(34),R.xor(O),O.assign(q),O.rotateRight(39),R.xor(O),H=v,$=A,z=C,N.assign(H),N.and($),O.assign(H),O.and(z),N.xor(O),O.assign($),O.and(z),N.xor(O),R.add(N),p=F,F=B,B=T,T=I,S.add(M),I=S,S=C,C=A,A=v,p.assign(M),p.add(R),v=p;n.add(v),s.add(A),o.add(C),l.add(S),c.add(I),h.add(T),u.add(B),f.add(F)}return i?(m=new Uint8Array(48),n.copyTo(m,0),s.copyTo(m,8),o.copyTo(m,16),l.copyTo(m,24),c.copyTo(m,32),h.copyTo(m,40)):(m=new Uint8Array(64),n.copyTo(m,0),s.copyTo(m,8),o.copyTo(m,16),l.copyTo(m,24),c.copyTo(m,32),h.copyTo(m,40),u.copyTo(m,48),f.copyTo(m,56)),m}let po={get k(){return I(this,"k",[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 pl(t,a){return t>>>a|t<<32-a}function pc(t,a,r){let i,n,s=1779033703,o=3144134277,l=1013904242,c=2773480762,h=1359893119,u=2600822924,f=528734635,d=1541459225,g=64*Math.ceil((r+9)/64),p=new Uint8Array(g);for(i=0;i<r;++i)p[i]=t[a++];p[i++]=128;let m=g-8;i<m&&(i=m),i+=3,p[i++]=r>>>29&255,p[i++]=r>>21&255,p[i++]=r>>13&255,p[i++]=r>>5&255,p[i++]=r<<3&255;let b=new Uint32Array(64),{k:y}=po;for(i=0;i<g;){var w,x,k,v,A,C,S,I;for(n=0;n<16;++n)b[n]=p[i]<<24|p[i+1]<<16|p[i+2]<<8|p[i+3],i+=4;for(n=16;n<64;++n)b[n]=(pl(w=b[n-2],17)^pl(w,19)^w>>>10)+b[n-7]+(pl(x=b[n-15],7)^pl(x,18)^x>>>3)+b[n-16]|0;let t,a,r=s,g=o,m=l,T=c,B=h,F=u,M=f,R=d;for(n=0;n<64;++n)t=R+(pl(k=B,6)^pl(k,11)^pl(k,25))+((v=B)&F^~v&M)+y[n]+b[n],a=(pl(A=r,2)^pl(A,13)^pl(A,22))+((C=r)&(S=g)^C&(I=m)^S&I),R=M,M=F,F=B,B=T+t|0,T=m,m=g,g=r,r=t+a|0;s=s+r|0,o=o+g|0,l=l+m|0,c=c+T|0,h=h+B|0,u=u+F|0,f=f+M|0,d=d+R|0}return new Uint8Array([s>>24&255,s>>16&255,s>>8&255,255&s,o>>24&255,o>>16&255,o>>8&255,255&o,l>>24&255,l>>16&255,l>>8&255,255&l,c>>24&255,c>>16&255,c>>8&255,255&c,h>>24&255,h>>16&255,h>>8&255,255&h,u>>24&255,u>>16&255,u>>8&255,255&u,f>>24&255,f>>16&255,f>>8&255,255&f,d>>24&255,d>>16&255,d>>8&255,255&d])}class ph extends tA{constructor(t,a,r){super(a),this.stream=t,this.dict=t.dict,this.decrypt=r,this.nextChunk=null,this.initialized=!1}readBlock(){let t;if(this.initialized?t=this.nextChunk:(t=this.stream.getBytes(512),this.initialized=!0),!t?.length){this.eof=!0;return}this.nextChunk=this.stream.getBytes(512);let a=this.nextChunk?.length>0;t=(0,this.decrypt)(t,!a);let r=this.bufferLength,i=r+t.length;this.ensureBuffer(i).set(t,r),this.bufferLength=i}getOriginalStream(){return this}}class pu{constructor(t){this.a=0,this.b=0;let a=new Uint8Array(256),r=t.length;for(let t=0;t<256;++t)a[t]=t;for(let i=0,n=0;i<256;++i){let s=a[i];n=n+s+t[i%r]&255,a[i]=a[n],a[n]=s}this.s=a}encryptBlock(t){let a=this.a,r=this.b,i=this.s,n=t.length,s=new Uint8Array(n);for(let o=0;o<n;++o){a=a+1&255;let n=i[a];r=r+n&255;let l=i[r];i[a]=l,i[r]=n,s[o]=t[o]^i[n+l&255]}return this.a=a,this.b=r,s}decryptBlock(t){return this.encryptBlock(t)}encrypt(t){return this.encryptBlock(t)}}class pf{decryptBlock(t){return t}encrypt(t){return t}}class pd{_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]);_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]);_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]);_mixCol=new Uint8Array(256).map((t,a)=>a<128?a<<1:a<<1^27);constructor(){this.buffer=new Uint8Array(16),this.bufferPosition=0}_expandKey(t){A("Cannot call `_expandKey` on the base class")}_decrypt(t,a){let r,i,n;let s=new Uint8Array(16);s.set(t);for(let t=0,r=this._keySize;t<16;++t,++r)s[t]^=a[r];for(let t=this._cyclesOfRepetition-1;t>=1;--t){r=s[13],s[13]=s[9],s[9]=s[5],s[5]=s[1],s[1]=r,r=s[14],i=s[10],s[14]=s[6],s[10]=s[2],s[6]=r,s[2]=i,r=s[15],i=s[11],n=s[7],s[15]=s[3],s[11]=r,s[7]=i,s[3]=n;for(let t=0;t<16;++t)s[t]=this._inv_s[s[t]];for(let r=0,i=16*t;r<16;++r,++i)s[r]^=a[i];for(let t=0;t<16;t+=4){let a=this._mix[s[t]],i=this._mix[s[t+1]],n=this._mix[s[t+2]],o=this._mix[s[t+3]];r=a^i>>>8^i<<24^n>>>16^n<<16^o>>>24^o<<8,s[t]=r>>>24&255,s[t+1]=r>>16&255,s[t+2]=r>>8&255,s[t+3]=255&r}}r=s[13],s[13]=s[9],s[9]=s[5],s[5]=s[1],s[1]=r,r=s[14],i=s[10],s[14]=s[6],s[10]=s[2],s[6]=r,s[2]=i,r=s[15],i=s[11],n=s[7],s[15]=s[3],s[11]=r,s[7]=i,s[3]=n;for(let t=0;t<16;++t)s[t]=this._inv_s[s[t]],s[t]^=a[t];return s}_encrypt(t,a){let r,i,n;let s=this._s,o=new Uint8Array(16);o.set(t);for(let t=0;t<16;++t)o[t]^=a[t];for(let t=1;t<this._cyclesOfRepetition;t++){for(let t=0;t<16;++t)o[t]=s[o[t]];n=o[1],o[1]=o[5],o[5]=o[9],o[9]=o[13],o[13]=n,n=o[2],i=o[6],o[2]=o[10],o[6]=o[14],o[10]=n,o[14]=i,n=o[3],i=o[7],r=o[11],o[3]=o[15],o[7]=n,o[11]=i,o[15]=r;for(let t=0;t<16;t+=4){let a=o[t],i=o[t+1],n=o[t+2],s=o[t+3];r=a^i^n^s,o[t]^=r^this._mixCol[a^i],o[t+1]^=r^this._mixCol[i^n],o[t+2]^=r^this._mixCol[n^s],o[t+3]^=r^this._mixCol[s^a]}for(let r=0,i=16*t;r<16;++r,++i)o[r]^=a[i]}for(let t=0;t<16;++t)o[t]=s[o[t]];n=o[1],o[1]=o[5],o[5]=o[9],o[9]=o[13],o[13]=n,n=o[2],i=o[6],o[2]=o[10],o[6]=o[14],o[10]=n,o[14]=i,n=o[3],i=o[7],r=o[11],o[3]=o[15],o[7]=n,o[11]=i,o[15]=r;for(let t=0,r=this._keySize;t<16;++t,++r)o[t]^=a[r];return o}_decryptBlock2(t,a){let r=t.length,i=this.buffer,n=this.bufferPosition,s=[],o=this.iv;for(let a=0;a<r;++a){if(i[n]=t[a],++n<16)continue;let r=this._decrypt(i,this._key);for(let t=0;t<16;++t)r[t]^=o[t];o=i,s.push(r),i=new Uint8Array(16),n=0}if(this.buffer=i,this.bufferLength=n,this.iv=o,0===s.length)return new Uint8Array(0);let l=16*s.length;if(a){let t=s.at(-1),a=t[15];if(a<=16){for(let r=15,i=16-a;r>=i;--r)if(t[r]!==a){a=0;break}l-=a,s[s.length-1]=t.subarray(0,16-a)}}let c=new Uint8Array(l);for(let t=0,a=0,r=s.length;t<r;++t,a+=16)c.set(s[t],a);return c}decryptBlock(t,a,r=null){let i=t.length,n=this.buffer,s=this.bufferPosition;if(r)this.iv=r;else{for(let a=0;s<16&&a<i;++a,++s)n[s]=t[a];if(s<16)return this.bufferLength=s,new Uint8Array(0);this.iv=n,t=t.subarray(16)}return this.buffer=new Uint8Array(16),this.bufferLength=0,this.decryptBlock=this._decryptBlock2,this.decryptBlock(t,a)}encrypt(t,a){let r=t.length,i=this.buffer,n=this.bufferPosition,s=[];a||=new Uint8Array(16);for(let o=0;o<r;++o){if(i[n]=t[o],++n<16)continue;for(let t=0;t<16;++t)i[t]^=a[t];let r=this._encrypt(i,this._key);a=r,s.push(r),i=new Uint8Array(16),n=0}if(this.buffer=i,this.bufferLength=n,this.iv=a,0===s.length)return new Uint8Array(0);let o=16*s.length,l=new Uint8Array(o);for(let t=0,a=0,r=s.length;t<r;++t,a+=16)l.set(s[t],a);return l}}class pg extends pd{_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]);constructor(t){super(),this._cyclesOfRepetition=10,this._keySize=160,this._key=this._expandKey(t)}_expandKey(t){let a=this._s,r=this._rcon,i=new Uint8Array(176);i.set(t);for(let t=16,n=1;t<176;++n){let s=i[t-3],o=i[t-2],l=i[t-1],c=i[t-4];s=a[s],o=a[o],l=a[l],c=a[c],s^=r[n];for(let a=0;a<4;++a)i[t]=s^=i[t-16],i[++t]=o^=i[t-16],i[++t]=l^=i[t-16],i[++t]=c^=i[t-16],t++}return i}}class pp extends pd{constructor(t){super(),this._cyclesOfRepetition=14,this._keySize=224,this._key=this._expandKey(t)}_expandKey(t){let a=this._s,r=new Uint8Array(240);r.set(t);let i,n,s,o,l=1;for(let t=32,c=1;t<240;++c){t%32==16?(i=a[i],n=a[n],s=a[s],o=a[o]):t%32==0&&(i=r[t-3],n=r[t-2],s=r[t-1],o=r[t-4],i=a[i],n=a[n],s=a[s],o=a[o],i^=l,(l<<=1)>=256&&(l=255&(27^l)));for(let a=0;a<4;++a)r[t]=i^=r[t-32],r[++t]=n^=r[t-32],r[++t]=s^=r[t-32],r[++t]=o^=r[t-32],t++}return r}}class pm{_hash(t,a,r){A("Abstract method `_hash` called")}checkOwnerPassword(t,a,r,i){let n=new Uint8Array(t.length+56);return n.set(t,0),n.set(a,t.length),n.set(r,t.length+a.length),G(this._hash(t,n,r),i)}checkUserPassword(t,a,r){let i=new Uint8Array(t.length+8);return i.set(t,0),i.set(a,t.length),G(this._hash(t,i,[]),r)}getOwnerKey(t,a,r,i){let n=new Uint8Array(t.length+56);n.set(t,0),n.set(a,t.length),n.set(r,t.length+a.length);let s=this._hash(t,n,r);return new pp(s).decryptBlock(i,!1,new Uint8Array(16))}getUserKey(t,a,r){let i=new Uint8Array(t.length+8);i.set(t,0),i.set(a,t.length);let n=this._hash(t,i,[]);return new pp(n).decryptBlock(r,!1,new Uint8Array(16))}}class pb extends pm{_hash(t,a,r){return pc(a,0,a.length)}}class py extends pm{_hash(t,a,r){let i=pc(a,0,a.length).subarray(0,32),n=[0],s=0;for(;s<64||n.at(-1)>s-32;){let a=t.length+i.length+r.length,o=new Uint8Array(a),l=0;o.set(t,l),l+=t.length,o.set(i,l),l+=i.length,o.set(r,l);let c=new Uint8Array(64*a);for(let t=0,r=0;t<64;t++,r+=a)c.set(o,r);n=new pg(i.subarray(0,16)).encrypt(c,i.subarray(16,32));let h=Math.sumPrecise(n.slice(0,16))%3;0===h?i=pc(n,0,n.length):1===h?i=ps(n,0,n.length,!0):2===h&&(i=ps(n,0,n.length)),s++}return i.subarray(0,32)}}class pw{constructor(t,a){this.StringCipherConstructor=t,this.StreamCipherConstructor=a}createStream(t,a){let r=new this.StreamCipherConstructor;return new ph(t,a,function(t,a){return r.decryptBlock(t,a)})}decryptString(t){let a=new this.StringCipherConstructor,r=E(t);return D(r=a.decryptBlock(r,!0))}encryptString(t){let a=new this.StringCipherConstructor;if(a instanceof pd){let r=16-t.length%16;t+=String.fromCharCode(r).repeat(r);let i=new Uint8Array(16);crypto.getRandomValues(i);let n=E(t);n=a.encrypt(n,i);let s=new Uint8Array(16+n.length);return s.set(i),s.set(n,16),D(s)}let r=E(t);return D(r=a.encrypt(r))}}class px{static get _defaultPasswordBytes(){return I(this,"_defaultPasswordBytes",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]))}#eJ(t,a,r,i,n,s,o,l,c,h,u,f){if(a){let t=Math.min(127,a.length);a=a.subarray(0,t)}else a=[];let d=6===t?new py:new pb;return d.checkUserPassword(a,l,o)?d.getUserKey(a,c,u):a.length&&d.checkOwnerPassword(a,i,s,r)?d.getOwnerKey(a,n,s,h):null}#eZ(t,a,r,i,n,s,o,l){let c;let h=40+r.length+t.length,u=new Uint8Array(h),f,d,g=0;if(a)for(d=Math.min(32,a.length);g<d;++g)u[g]=a[g];for(f=0;g<32;)u[g++]=px._defaultPasswordBytes[f++];u.set(r,g),g+=r.length,u[g++]=255&n,u[g++]=n>>8&255,u[g++]=n>>16&255,u[g++]=n>>>24&255,u.set(t,g),g+=t.length,s>=4&&!l&&(u.fill(255,g,g+4),g+=4);let p=g8(u,0,g),m=o>>3;if(s>=3)for(f=0;f<50;++f)p=g8(p,0,m);let b=p.subarray(0,m);if(s>=3){g=0,u.set(px._defaultPasswordBytes,g),g+=32,u.set(t,g),g+=t.length,c=new pu(b).encryptBlock(g8(u,0,g)),d=b.length;let a=new Uint8Array(d);for(f=1;f<=19;++f){for(let t=0;t<d;++t)a[t]=b[t]^f;c=new pu(a).encryptBlock(c)}}else c=new pu(b).encryptBlock(px._defaultPasswordBytes);return c.every((t,a)=>i[a]===t)?b:null}#eQ(t,a,r,i){let n;let s=new Uint8Array(32),o=0,l=Math.min(32,t.length);for(;o<l;++o)s[o]=t[o];let c=0;for(;o<32;)s[o++]=px._defaultPasswordBytes[c++];let h=g8(s,0,o),u=i>>3;if(r>=3)for(c=0;c<50;++c)h=g8(h,0,h.length);if(r>=3){n=a;let t=new Uint8Array(u);for(c=19;c>=0;c--){for(let a=0;a<u;++a)t[a]=h[a]^c;n=new pu(t).encryptBlock(n)}}else n=new pu(h.subarray(0,u)).encryptBlock(a);return n}#e1(t,a,r,i=!1){let n=r.length,s=new Uint8Array(n+9);s.set(r);let o=n;return s[o++]=255&t,s[o++]=t>>8&255,s[o++]=t>>16&255,s[o++]=255&a,s[o++]=a>>8&255,i&&(s[o++]=115,s[o++]=65,s[o++]=108,s[o++]=84),g8(s,0,o).subarray(0,Math.min(n+5,16))}#e0(t,a,r,i,n){if(!(a instanceof ea))throw new N("Invalid crypt filter name.");let s=this,o=t.get(a.name),l=o?.get("CFM");if(!l||"None"===l.name)return function(){return new pf};if("V2"===l.name)return function(){return new pu(s.#e1(r,i,n,!1))};if("AESV2"===l.name)return function(){return new pg(s.#e1(r,i,n,!0))};if("AESV3"===l.name)return function(){return new pp(n)};throw new N("Unknown crypto method")}constructor(t,a,r){let i,n;let s=t.get("Filter");if(!ec(s,"Standard"))throw new N("unknown encryption method");this.filterName=s.name,this.dict=t;let o=t.get("V");if(!Number.isInteger(o)||1!==o&&2!==o&&4!==o&&5!==o)throw new N("unsupported encryption algorithm");this.algorithm=o;let l=t.get("Length");if(!l){if(o<=3)l=40;else{let a=t.get("CF"),r=t.get("StmF");if(a instanceof en&&r instanceof ea){a.suppressEncryption=!0;let t=a.get(r.name);(l=t?.get("Length")||128)<40&&(l<<=3)}}}if(!Number.isInteger(l)||l<40||l%8!=0)throw new N("invalid key length");let c=E(t.get("O")),h=E(t.get("U")),u=c.subarray(0,32),f=h.subarray(0,32),d=t.get("P"),g=t.get("R"),p=(4===o||5===o)&&!1!==t.get("EncryptMetadata");this.encryptMetadata=p;let m=E(a);if(r){if(6===g)try{r=z(r)}catch{v("CipherTransformFactory: Unable to convert UTF8 encoded password.")}i=E(r)}if(5!==o)n=this.#eZ(m,i,u,f,d,g,l,p);else{let a=c.subarray(32,40),r=c.subarray(40,48),s=h.subarray(0,48),o=h.subarray(32,40),l=h.subarray(40,48),d=E(t.get("OE")),p=E(t.get("UE")),m=E(t.get("Perms"));n=this.#eJ(g,i,u,a,r,s,f,o,l,d,p,m)}if(!n){if(!r)throw new B("No password given",1);let t=this.#eQ(i,u,g,l);n=this.#eZ(m,t,u,f,d,g,l,p)}if(!n)throw new B("Incorrect Password",2);if(4===o&&n.length<16?(this.encryptionKey=new Uint8Array(16),this.encryptionKey.set(n)):this.encryptionKey=n,o>=4){let a=t.get("CF");a instanceof en&&(a.suppressEncryption=!0),this.cf=a,this.stmf=t.get("StmF")||ea.get("Identity"),this.strf=t.get("StrF")||ea.get("Identity"),this.eff=t.get("EFF")||this.stmf}}createCipherTransform(t,a){if(4===this.algorithm||5===this.algorithm)return new pw(this.#e0(this.cf,this.strf,t,a,this.encryptionKey),this.#e0(this.cf,this.stmf,t,a,this.encryptionKey));let r=this.#e1(t,a,this.encryptionKey,!1),i=function(){return new pu(r)};return new pw(i,i)}}class pk{constructor(t,a){this.stream=t,this.pdfManager=a,this.entries=[],this._xrefStms=new Set,this._cacheMap=new Map,this._pendingRefs=new eo,this._newPersistentRefNum=null,this._newTemporaryRefNum=null,this._persistentRefsCache=null}getNewPersistentRef(t){null===this._newPersistentRefNum&&(this._newPersistentRefNum=this.entries.length||1);let a=this._newPersistentRefNum++;return this._cacheMap.set(a,t),es.get(a,0)}getNewTemporaryRef(){if(null===this._newTemporaryRefNum&&(this._newTemporaryRefNum=this.entries.length||1,this._newPersistentRefNum)){this._persistentRefsCache=new Map;for(let t=this._newTemporaryRefNum;t<this._newPersistentRefNum;t++)this._persistentRefsCache.set(t,this._cacheMap.get(t)),this._cacheMap.delete(t)}return es.get(this._newTemporaryRefNum++,0)}resetNewTemporaryRef(){if(this._newTemporaryRefNum=null,this._persistentRefsCache)for(let[t,a]of this._persistentRefsCache)this._cacheMap.set(t,a);this._persistentRefsCache=null}setStartXRef(t){this.startXRefQueue=[t]}parse(t=!1){let a,r,i;t?(v("Indexing all PDF objects"),a=this.indexObjects()):a=this.readXRef(),a.assignXref(this),this.trailer=a;try{r=a.get("Encrypt")}catch(t){if(t instanceof ex)throw t;v(`XRef.parse - Invalid "Encrypt" reference: "${t}".`)}if(r instanceof en){let t=a.get("ID"),i=t?.length?t[0]:"";r.suppressEncryption=!0,this.encrypt=new px(r,i,this.pdfManager.password)}try{i=a.get("Root")}catch(t){if(t instanceof ex)throw t;v(`XRef.parse - Invalid "Root" reference: "${t}".`)}if(i instanceof en)try{if(i.get("Pages") instanceof en){this.root=i;return}}catch(t){if(t instanceof ex)throw t;v(`XRef.parse - Invalid "Pages" reference: "${t}".`)}if(!t)throw new eA;throw new M("Invalid Root reference.")}processXRefTable(t){if("tableState"in this||(this.tableState={entryNum:0,streamPos:t.lexer.stream.pos,parserBuf1:t.buf1,parserBuf2:t.buf2}),!eh(this.readXRefTable(t),"trailer"))throw new N("Invalid XRef table: could not find trailer dictionary");let a=t.getObj();if(a instanceof en||!a.dict||(a=a.dict),!(a instanceof en))throw new N("Invalid XRef table: could not parse trailer dictionary");return delete this.tableState,a}readXRefTable(t){let a;let r=t.lexer.stream,i=this.tableState;for(r.pos=i.streamPos,t.buf1=i.parserBuf1,t.buf2=i.parserBuf2;;){if(!("firstEntryNum"in i)||!("entryCount"in i)){if(eh(a=t.getObj(),"trailer"))break;i.firstEntryNum=a,i.entryCount=t.getObj()}let n=i.firstEntryNum,s=i.entryCount;if(!Number.isInteger(n)||!Number.isInteger(s))throw new N("Invalid XRef table: wrong types in subsection header");for(let a=i.entryNum;a<s;a++){i.streamPos=r.pos,i.entryNum=a,i.parserBuf1=t.buf1,i.parserBuf2=t.buf2;let o={};o.offset=t.getObj(),o.gen=t.getObj();let l=t.getObj();if(l instanceof er)switch(l.cmd){case"f":o.free=!0;break;case"n":o.uncompressed=!0}if(!Number.isInteger(o.offset)||!Number.isInteger(o.gen)||!o.free&&!o.uncompressed)throw new N(`Invalid entry in XRef subsection: ${n}, ${s}`);0===a&&o.free&&1===n&&(n=0),this.entries[a+n]||(this.entries[a+n]=o)}i.entryNum=0,i.streamPos=r.pos,i.parserBuf1=t.buf1,i.parserBuf2=t.buf2,delete i.firstEntryNum,delete i.entryCount}if(this.entries[0]&&!this.entries[0].free)throw new N("Invalid XRef table: unexpected first object");return a}processXRefStream(t){if(!("streamState"in this)){let{dict:a,pos:r}=t,i=a.get("W"),n=a.get("Index")||[0,a.get("Size")];this.streamState={entryRanges:n,byteWidths:i,entryNum:0,streamPos:r}}return this.readXRefStream(t),delete this.streamState,t.dict}readXRefStream(t){let a=this.streamState;t.pos=a.streamPos;let[r,i,n]=a.byteWidths,s=a.entryRanges;for(;s.length>0;){let[o,l]=s;if(!Number.isInteger(o)||!Number.isInteger(l))throw new N(`Invalid XRef range fields: ${o}, ${l}`);if(!Number.isInteger(r)||!Number.isInteger(i)||!Number.isInteger(n))throw new N(`Invalid XRef entry fields length: ${o}, ${l}`);for(let s=a.entryNum;s<l;++s){a.entryNum=s,a.streamPos=t.pos;let l=0,c=0,h=0;for(let a=0;a<r;++a){let a=t.getByte();if(-1===a)throw new N("Invalid XRef byteWidths 'type'.");l=l<<8|a}0===r&&(l=1);for(let a=0;a<i;++a){let a=t.getByte();if(-1===a)throw new N("Invalid XRef byteWidths 'offset'.");c=c<<8|a}for(let a=0;a<n;++a){let a=t.getByte();if(-1===a)throw new N("Invalid XRef byteWidths 'generation'.");h=h<<8|a}let u={};switch(u.offset=c,u.gen=h,l){case 0:u.free=!0;break;case 1:u.uncompressed=!0;break;case 2:break;default:throw new N(`Invalid XRef entry type: ${l}`)}this.entries[o+s]||(this.entries[o+s]=u)}a.entryNum=0,a.streamPos=t.pos,s.splice(0,2)}}indexObjects(){function t(t,a,r){let i=r.length,n=t.length,s=0;for(;a<n;){let n=0;for(;n<i&&t[a+n]===r[n];)++n;if(n>=i)break;a++,s++}return s}let a=/\b(endobj|\d+\s+\d+\s+obj|xref|trailer\s*<<)\b/g,r=/\b(startxref|\d+\s+\d+\s+obj)\b/g,i=/^(\d+)\s+(\d+)\s+obj\b/,n=new Uint8Array([116,114,97,105,108,101,114]),s=new Uint8Array([115,116,97,114,116,120,114,101,102]),o=new Uint8Array([47,88,82,101,102]);this.entries.length=0,this._cacheMap.clear();let l=this.stream;l.pos=0;let c=l.getBytes(),h=D(c),u=c.length,f=l.start,d=[],g=[];for(;f<u;){let p,m=c[f];if(9===m||10===m||13===m||32===m){++f;continue}if(37===m){do{if(++f>=u)break;m=c[f]}while(10!==m&&13!==m)continue}let b=function(t,a){let r="",i=t[a];for(;10!==i&&13!==i&&60!==i&&!(++a>=t.length);)r+=String.fromCharCode(i),i=t[a];return r}(c,f);if(b.startsWith("xref")&&(4===b.length||/\s/.test(b[4])))f+=t(c,f,n),d.push(f),f+=t(c,f,s);else if(p=i.exec(b)){let r=0|p[1],i=0|p[2],n=f+b.length,s,d=!1;if(this.entries[r]){if(this.entries[r].gen===i)try{new aN({lexer:new aE(l.makeSubStream(n))}).getObj(),d=!0}catch(t){t instanceof ek?v(`indexObjects -- checking object (${b}): "${t}".`):d=!0}}else d=!0;d&&(this.entries[r]={offset:f-l.start,gen:i,uncompressed:!0}),a.lastIndex=n;let m=a.exec(h);m?(s=a.lastIndex+1-f,"endobj"!==m[1]&&(v(`indexObjects: Found "${m[1]}" inside of another "obj", caused by missing "endobj" -- trying to recover.`),s-=m[1].length+1)):s=u-f;let y=c.subarray(f,f+s),w=t(y,0,o);w<s&&y[w+5]<64&&(g.push(f-l.start),this._xrefStms.add(f-l.start)),f+=s}else if(b.startsWith("trailer")&&(7===b.length||/\s/.test(b[7]))){let t;d.push(f);let a=f+b.length;r.lastIndex=a;let i=r.exec(h);i?(t=r.lastIndex+1-f,"startxref"!==i[1]&&(v(`indexObjects: Found "${i[1]}" after "trailer", caused by missing "startxref" -- trying to recover.`),t-=i[1].length+1)):t=u-f,f+=t}else f+=b.length+1}for(let t of g)this.startXRefQueue.push(t),this.readXRef(!0);let p=[],m,b,y=!1;for(let t of d){l.pos=t;let a=new aN({lexer:new aE(l),xref:this,allowStreams:!0,recoveryMode:!0});if(!eh(a.getObj(),"trailer"))continue;let r=a.getObj();r instanceof en&&(p.push(r),r.has("Encrypt")&&(y=!0))}for(let t of[...p,"genFallback",...p]){if("genFallback"===t){if(!b)break;this._generationFallback=!0;continue}let a=!1;try{let r=t.get("Root");if(!(r instanceof en))continue;let i=r.get("Pages");if(!(i instanceof en))continue;let n=i.get("Count");Number.isInteger(n)&&(a=!0)}catch(t){b=t;continue}if(a&&(!y||t.has("Encrypt"))&&t.has("ID"))return t;m=t}if(m)return m;if(this.topDict)return this.topDict;if(!p.length)for(let t in this.entries){let a;if(!Object.hasOwn(this.entries,t))continue;let r=this.entries[t],i=es.get(parseInt(t),r.gen);try{a=this.fetch(i)}catch{continue}if(a instanceof ed&&(a=a.dict),a instanceof en&&a.has("Root"))return a}throw new M("Invalid PDF structure.")}readXRef(t=!1){let a=this.stream,r=new Set;for(;this.startXRefQueue.length;){try{let t=this.startXRefQueue[0];if(r.has(t)){v("readXRef - skipping XRef table since it was already parsed."),this.startXRefQueue.shift();continue}r.add(t),a.pos=t+a.start;let i=new aN({lexer:new aE(a),xref:this,allowStreams:!0}),n,s=i.getObj();if(eh(s,"xref"))n=this.processXRefTable(i),this.topDict||(this.topDict=n),s=n.get("XRefStm"),Number.isInteger(s)&&!this._xrefStms.has(s)&&(this._xrefStms.add(s),this.startXRefQueue.push(s));else{if(!Number.isInteger(s))throw new N("Invalid XRef stream header");if(!(Number.isInteger(i.getObj())&&eh(i.getObj(),"obj")&&(s=i.getObj())instanceof ed))throw new N("Invalid XRef stream");if(n=this.processXRefStream(s),this.topDict||(this.topDict=n),!n)throw new N("Failed to read XRef stream")}s=n.get("Prev"),Number.isInteger(s)?this.startXRefQueue.push(s):s instanceof es&&this.startXRefQueue.push(s.num)}catch(t){if(t instanceof ex)throw t;k("(while reading XRef): "+t)}this.startXRefQueue.shift()}if(this.topDict)return this.topDict;if(!t)throw new eA}getEntry(t){let a=this.entries[t];return a&&!a.free&&a.offset?a:null}fetchIfRef(t,a=!1){return t instanceof es?this.fetch(t,a):t}fetch(t,a=!1){if(!(t instanceof es))throw Error("ref object is not a reference");let r=t.num,i=this._cacheMap.get(r);if(void 0!==i)return i instanceof en&&!i.objId&&(i.objId=t.toString()),i;let n=this.getEntry(r);if(null===n)return n;if(this._pendingRefs.has(t))return this._pendingRefs.remove(t),v(`Ignoring circular reference: ${t}.`),J;this._pendingRefs.put(t);try{n=n.uncompressed?this.fetchUncompressed(t,n,a):this.fetchCompressed(t,n,a),this._pendingRefs.remove(t)}catch(a){throw this._pendingRefs.remove(t),a}return n instanceof en?n.objId=t.toString():n instanceof ed&&(n.dict.objId=t.toString()),n}fetchUncompressed(t,a,r=!1){let i=t.gen,n=t.num;if(a.gen!==i){let s=`Inconsistent generation in XRef: ${t}`;if(this._generationFallback&&a.gen<i)return v(s),this.fetchUncompressed(es.get(n,a.gen),a,r);throw new ev(s)}let s=this.stream.makeSubStream(a.offset+this.stream.start),o=new aN({lexer:new aE(s),xref:this,allowStreams:!0}),l=o.getObj(),c=o.getObj(),h=o.getObj();if(l!==n||c!==i||!(h instanceof er))throw new ev(`Bad (uncompressed) XRef entry: ${t}`);if("obj"!==h.cmd){if(h.cmd.startsWith("obj")&&!Number.isNaN(n=parseInt(h.cmd.substring(3),10)))return n;throw new ev(`Bad (uncompressed) XRef entry: ${t}`)}return(a=this.encrypt&&!r?o.getObj(this.encrypt.createCipherTransform(n,i)):o.getObj())instanceof ed||this._cacheMap.set(n,a),a}fetchCompressed(t,a,r=!1){let i=a.offset,n=this.fetch(es.get(i,0));if(!(n instanceof ed))throw new N("bad ObjStm stream");let s=n.dict.get("First"),o=n.dict.get("N");if(!Number.isInteger(s)||!Number.isInteger(o))throw new N("invalid first and n parameters for ObjStm stream");let l=new aN({lexer:new aE(n),xref:this,allowStreams:!0}),c=Array(o),h=Array(o);for(let t=0;t<o;++t){let a=l.getObj();if(!Number.isInteger(a))throw new N(`invalid object number in the ObjStm stream: ${a}`);let r=l.getObj();if(!Number.isInteger(r))throw new N(`invalid object offset in the ObjStm stream: ${r}`);c[t]=a;let n=this.getEntry(a);n?.offset===i&&n.gen!==t&&(n.gen=t),h[t]=r}let u=(n.start||0)+s,f=Array(o);for(let t=0;t<o;++t){let a=t<o-1?h[t+1]-h[t]:void 0;if(a<0)throw new N("Invalid offset in the ObjStm stream.");l=new aN({lexer:new aE(n.makeSubStream(u+h[t],a,n.dict)),xref:this,allowStreams:!0});let r=l.getObj();if(f[t]=r,r instanceof ed)continue;let s=c[t],d=this.entries[s];d&&d.offset===i&&d.gen===t&&this._cacheMap.set(s,r)}if(void 0===(a=f[a.gen]))throw new ev(`Bad (compressed) XRef entry: ${t}`);return a}async fetchIfRefAsync(t,a){return t instanceof es?this.fetchAsync(t,a):t}async fetchAsync(t,a){try{return this.fetch(t,a)}catch(r){if(!(r instanceof ex))throw r;return await this.pdfManager.requestRange(r.begin,r.end),this.fetchAsync(t,a)}}getCatalogObj(){return this.root}}let pv=[0,0,612,792];class pA{#e2=!1;#e9=null;constructor({pdfManager:t,xref:a,pageIndex:r,pageDict:i,ref:n,globalIdFactory:s,fontCache:o,builtInCMapCache:l,standardFontDataCache:c,globalColorSpaceCache:h,globalImageCache:u,systemFontCache:f,nonBlendModesSet:d,xfaFactory:g}){this.pdfManager=t,this.pageIndex=r,this.pageDict=i,this.xref=a,this.ref=n,this.fontCache=o,this.builtInCMapCache=l,this.standardFontDataCache=c,this.globalColorSpaceCache=h,this.globalImageCache=u,this.systemFontCache=f,this.nonBlendModesSet=d,this.evaluatorOptions=t.evaluatorOptions,this.xfaFactory=g;let p={obj:0};this._localIdFactory=class extends s{static createObjId(){return`p${r}_${++p.obj}`}static getPageObjId(){return`p${n.toString()}`}}}#e5(t){return new sd({xref:this.xref,handler:t,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalColorSpaceCache:this.globalColorSpaceCache,globalImageCache:this.globalImageCache,systemFontCache:this.systemFontCache,options:this.evaluatorOptions})}#e3(t,a=!1){let r=eI({dict:this.pageDict,key:t,getArray:a,stopWhenFound:!1});return Array.isArray(r)?1!==r.length&&r[0]instanceof en?en.merge({xref:this.xref,dictArray:r}):r[0]:r}get content(){return this.pageDict.getArray("Contents")}get resources(){let t=this.#e3("Resources");return I(this,"resources",t instanceof en?t:en.empty)}getBoundingBox(t){if(this.xfaData)return this.xfaData.bbox;let a=e_(this.#e3(t,!0),null);if(a){if(a[2]-a[0]>0&&a[3]-a[1]>0)return a;v(`Empty, or invalid, /${t} entry.`)}return null}get mediaBox(){return I(this,"mediaBox",this.getBoundingBox("MediaBox")||pv)}get cropBox(){return I(this,"cropBox",this.getBoundingBox("CropBox")||this.mediaBox)}get userUnit(){let t=this.pageDict.get("UserUnit");return I(this,"userUnit","number"==typeof t&&t>0?t:1)}get view(){let{cropBox:t,mediaBox:a}=this;if(t!==a&&!G(t,a)){let r=j.intersect(t,a);if(r&&r[2]-r[0]>0&&r[3]-r[1]>0)return I(this,"view",r);v("Empty /CropBox and /MediaBox intersection.")}return I(this,"view",a)}get rotate(){let t=this.#e3("Rotate")||0;return t%90!=0?t=0:t>=360?t%=360:t<0&&(t=(t%360+360)%360),I(this,"rotate",t)}#e6(t,a){if(!this.evaluatorOptions.ignoreErrors)throw t;v(`getContentStream - ignoring sub-stream (${a}): "${t}".`)}async getContentStream(){let t=await this.pdfManager.ensure(this,"content");return t instanceof ed?t:Array.isArray(t)?new tC(t,this.#e6.bind(this)):new tm}get xfaData(){return I(this,"xfaData",this.xfaFactory?{bbox:this.xfaFactory.getBoundingBox(this.pageIndex)}:null)}async #e7(t,a,r){let i=[];for(let n of t)if(n.id){let t=es.fromString(n.id);if(!t){v(`A non-linked annotation cannot be modified: ${n.id}`);continue}if(n.deleted){if(a.put(t,t),n.popupRef){let t=es.fromString(n.popupRef);t&&a.put(t,t)}continue}if(n.popup?.deleted){let t=es.fromString(n.popupRef);t&&a.put(t,t)}r?.put(t),n.ref=t,i.push(this.xref.fetchAsync(t).then(t=>{t instanceof en&&(n.oldAnnotation=t.clone())},()=>{v(`Cannot fetch \`oldAnnotation\` for: ${t}.`)})),delete n.id}await Promise.all(i)}async saveNewAnnotations(t,a,r,i,n){if(this.xfaFactory)throw Error("XFA: Cannot save new annotations.");let s=this.#e5(t),o=new el,l=new eo;await this.#e7(r,o,l);let c=this.pageDict,h=this.annotations.filter(t=>!(t instanceof es&&o.has(t))),u=await gR.saveNewAnnotations(s,a,r,i,n);for(let{ref:t}of u.annotations)t instanceof es&&!l.has(t)&&h.push(t);let f=c.clone();for(let t of(f.set("Annots",h),n.put(this.ref,{data:f}),o))n.put(t,{data:null})}async save(t,a,r,i){let n=this.#e5(t),s=await this._parsedAnnotations,o=[];for(let t of s)o.push(t.save(n,a,r,i).catch(function(t){return v(`save - ignoring annotation data during "${a.name}" task: "${t}".`),null}));return Promise.all(o)}async loadResources(t){await (this.#e9??=this.pdfManager.ensure(this,"resources")),await sG.load(this.resources,t,this.xref)}async #e8(t,a){let r=t?.get("Resources");return r instanceof en&&r.size?(await sG.load(r,a,this.xref),en.merge({xref:this.xref,dictArray:[r,this.resources],mergeSubDicts:!0})):this.resources}async getOperatorList({handler:t,sink:a,task:r,intent:i,cacheKey:n,annotationStorage:s=null,modifiedIds:o=null}){let l=this.getContentStream(),c=this.loadResources(eb),h=this.#e5(t),u=this.xfaFactory?null:eX(s),f=u?.get(this.pageIndex),g=Promise.resolve(null),p=null;if(f){let t;let a=this.pdfManager.ensureDoc("annotationGlobals"),i=new Set;for(let{bitmapId:t,bitmap:a}of f)!t||a||i.has(t)||i.add(t);let{isOffscreenCanvasSupported:n}=this.evaluatorOptions;if(i.size>0){let a=f.slice();for(let[t,r]of s)t.startsWith(d)&&r.bitmap&&i.has(r.bitmapId)&&a.push(r);t=gR.generateImages(a,this.xref,n)}else t=gR.generateImages(f,this.xref,n);p=new eo,g=Promise.all([a,this.#e7(f,p,null)]).then(([a])=>a?gR.printNewAnnotations(a,h,r,f,t):null)}let m=Promise.all([l,c]).then(async([s])=>{let o=await this.#e8(s.dict,eb),l=new tH(i,a);return t.send("StartRenderPage",{transparency:h.hasBlendModes(o,this.nonBlendModesSet),pageIndex:this.pageIndex,cacheKey:n}),await h.getOperatorList({stream:s,task:r,resources:o,operatorList:l}),l}),[b,y,w]=await Promise.all([m,this._parsedAnnotations,g]);if(w){y=y.filter(t=>!(t.ref&&p.has(t.ref)));for(let t=0,a=w.length;t<a;t++){let r=w[t];if(r.refToReplace){let i=y.findIndex(t=>t.ref&&ef(t.ref,r.refToReplace));i>=0&&(y.splice(i,1,r),w.splice(t--,1),a--)}}y=y.concat(w)}if(0===y.length||64&i)return b.flush(!0),{length:b.totalLength};let x=!!(16&i),k=!!(128&i),A=!!(1&i),C=!!(2&i),S=!!(4&i),I=[];for(let t of y)(A||C&&t.mustBeViewed(s,x)&&t.mustBeViewedWhenEditing(k,o)||S&&t.mustBePrinted(s))&&I.push(t.getOperatorList(h,r,i,s).catch(function(t){return v(`getOperatorList - ignoring annotation data during "${r.name}" task: "${t}".`),{opList:null,separateForm:!1,separateCanvas:!1}}));let T=await Promise.all(I),B=!1,F=!1;for(let{opList:t,separateForm:a,separateCanvas:r}of T)b.addOpList(t),B||=a,F||=r;return b.flush(!0,{form:B,canvas:F}),{length:b.totalLength}}async extractTextContent({handler:t,task:a,includeMarkedContent:r,disableNormalization:i,sink:n,intersector:s=null}){let o=this.getContentStream(),l=this.loadResources(ey),c=this.pdfManager.ensureCatalog("lang"),[h,,u]=await Promise.all([o,l,c]),f=await this.#e8(h.dict,ey);return this.#e5(t).getTextContent({stream:h,task:a,resources:f,includeMarkedContent:r,disableNormalization:i,sink:n,viewBox:this.view,lang:u,intersector:s})}async getStructTree(){let t=await this.pdfManager.ensureCatalog("structTreeRoot");if(!t)return null;await this._parsedAnnotations;try{let a=await this.pdfManager.ensure(this,"_parseStructTree",[t]);return await this.pdfManager.ensure(a,"serializable")}catch(t){return v(`getStructTree: "${t}".`),null}}_parseStructTree(t){let a=new sj(t,this.pageDict);return a.parse(this.ref),a}async getAnnotationsData(t,a,r){let i;let n=await this._parsedAnnotations;if(0===n.length)return n;let s=[],o=[],l=!!(1&r),c=!!(2&r),h=!!(4&r),u=[];for(let r of n){let n=l||c&&r.viewable;(n||h&&r.printable)&&s.push(r.data),r.hasTextContent&&n?(i??=this.#e5(t),o.push(r.extractTextContent(i,a,[-1/0,-1/0,1/0,1/0]).catch(function(t){v(`getAnnotationsData - ignoring textContent during "${a.name}" task: "${t}".`)}))):r.overlaysTextContent&&n&&u.push(r)}if(u.length>0){let r=new pr(u);o.push(this.extractTextContent({handler:t,task:a,includeMarkedContent:!1,disableNormalization:!1,sink:null,viewBox:this.view,lang:null,intersector:r}).then(()=>{r.setText()}))}return await Promise.all(o),s}get annotations(){let t=this.#e3("Annots");return I(this,"annotations",Array.isArray(t)?t:[])}get _parsedAnnotations(){let t=this.pdfManager.ensure(this,"annotations").then(async t=>{let a,r;if(0===t.length)return t;let[i,n]=await Promise.all([this.pdfManager.ensureDoc("annotationGlobals"),this.pdfManager.ensureDoc("fieldObjects")]);if(!i)return[];let s=n?.orphanFields,o=[];for(let a of t)o.push(gR.create(this.xref,a,i,this._localIdFactory,!1,s,null,this.ref).catch(function(t){return v(`_parsedAnnotations: "${t}".`),null}));let l=[];for(let t of(await Promise.all(o)))t&&(t instanceof gU?(r||=[]).push(t):t instanceof gW?(a||=[]).push(t):l.push(t));return r&&l.push(...r),a&&l.push(...a),l});return this.#e2=!0,I(this,"_parsedAnnotations",t)}get jsActions(){return I(this,"jsActions",eH(this.xref,this.pageDict,w))}async collectAnnotationsByType(t,a,r,i,n){let{pageIndex:s}=this;if(this.#e2){let t=await this._parsedAnnotations;for(let{data:a}of t)(!r||r.has(a.annotationType))&&(a.pageIndex=s,i.push(Promise.resolve(a)));return}let o=await this.pdfManager.ensure(this,"annotations");for(let l of o)i.push(gR.create(this.xref,l,n,this._localIdFactory,!1,null,r,this.ref).then(async r=>{if(!r)return null;if(r.data.pageIndex=s,r.hasTextContent&&r.viewable){let i=this.#e5(t);await r.extractTextContent(i,a,[-1/0,-1/0,1/0,1/0])}return r.data}).catch(function(t){return v(`collectAnnotationsByType: "${t}".`),null}))}}let pC=new Uint8Array([37,80,68,70,45]),pS=new Uint8Array([115,116,97,114,116,120,114,101,102]),pI=new Uint8Array([101,110,100,111,98,106]);function pT(t,a,r=1024,i=!1){let n=a.length,s=t.peekBytes(r),o=s.length-n;if(o<=0)return!1;if(i){let r=n-1,i=s.length-1;for(;i>=r;){let o=0;for(;o<n&&s[i-o]===a[r-o];)o++;if(o>=n)return t.pos+=i-r,!0;i--}}else{let r=0;for(;r<=o;){let i=0;for(;i<n&&s[r+i]===a[i];)i++;if(i>=n)return t.pos+=r,!0;r++}}return!1}class pB{#e4=new Map;#te=null;constructor(t,a){if(a.length<=0)throw new M("The PDF file is empty, i.e. its size is zero bytes.");this.pdfManager=t,this.stream=a,this.xref=new pk(a,t);let r={font:0};this._globalIdFactory=class{static getDocId(){return`g_${t.docId}`}static createFontId(){return"f"+ ++r.font}static createObjId(){A("Abstract method `createObjId` called.")}static getPageObjId(){A("Abstract method `getPageObjId` called.")}}}parse(t){this.xref.parse(t),this.catalog=new sz(this.pdfManager,this.xref)}get linearization(){let t=null;try{t=aP.create(this.stream)}catch(t){if(t instanceof ex)throw t;k(t)}return I(this,"linearization",t)}get startXRef(){let t=this.stream,a=0;if(this.linearization){if(t.reset(),pT(t,pI)){t.skip(6);let r=t.peekByte();for(;eO(r);)t.pos++,r=t.peekByte();a=t.pos-t.start}}else{let r=pS.length,i=!1,n=t.end;for(;!i&&n>0;)(n-=1024-r)<0&&(n=0),t.pos=n,i=pT(t,pS,1024,!0);if(i){let r;t.skip(9);do r=t.getByte();while(eO(r))let i="";for(;r>=32&&r<=57;)i+=String.fromCharCode(r),r=t.getByte();isNaN(a=parseInt(i,10))&&(a=0)}}return I(this,"startXRef",a)}checkHeader(){let t=this.stream;if(t.reset(),!pT(t,pC))return;t.moveStart(),t.skip(pC.length);let a,r="";for(;(a=t.getByte())>32&&r.length<7;)r+=String.fromCharCode(a);eg.test(r)?this.#te=r:v(`Invalid PDF header version: ${r}`)}parseStartXRef(){this.xref.setStartXRef(this.startXRef)}get numPages(){return I(this,"numPages",this.catalog.hasActualNumPages?this.catalog.numPages:this.xfaFactory?this.xfaFactory.getNumPages():this.linearization?this.linearization.numPages:this.catalog.numPages)}#tt(t,a=0){return!!Array.isArray(t)&&t.every(t=>{if(!((t=this.xref.fetchIfRef(t))instanceof en))return!1;if(t.has("Kids"))return++a>10?(v("#hasOnlyDocumentSignatures: maximum recursion depth reached"),!1):this.#tt(t.get("Kids"),a);let r=ec(t.get("FT"),"Sig"),i=t.get("Rect"),n=Array.isArray(i)&&i.every(t=>0===t);return r&&n})}get _xfaStreams(){let{acroForm:t}=this.catalog;if(!t)return null;let a=t.get("XFA"),r=new Map(["xdp:xdp","template","datasets","config","connectionSet","localeSet","stylesheet","/xdp:xdp"].map(t=>[t,null]));if(a instanceof ed&&!a.isEmpty)return r.set("xdp:xdp",a),r;if(!Array.isArray(a)||0===a.length)return null;for(let t=0,i=a.length;t<i;t+=2){let n;if(n=0===t?"xdp:xdp":t===i-2?"/xdp:xdp":a[t],!r.has(n))continue;let s=this.xref.fetchIfRef(a[t+1]);s instanceof ed&&!s.isEmpty&&r.set(n,s)}return r}get xfaDatasets(){let t=this._xfaStreams;if(!t)return I(this,"xfaDatasets",null);for(let a of["datasets","xdp:xdp"]){let r=t.get(a);if(r)try{let t=$(r.getString());return I(this,"xfaDatasets",new pt({[a]:t}))}catch{v("XFA - Invalid utf-8 string.");break}}return I(this,"xfaDatasets",null)}get xfaData(){let t=this._xfaStreams;if(!t)return null;let a=Object.create(null);for(let[r,i]of t)if(i)try{a[r]=$(i.getString())}catch{return v("XFA - Invalid utf-8 string."),null}return a}get xfaFactory(){let t;return this.pdfManager.enableXfa&&this.catalog.needsRendering&&this.formInfo.hasXfa&&!this.formInfo.hasAcroForm&&(t=this.xfaData),I(this,"xfaFactory",t?new gM(t):null)}get isPureXfa(){return!!this.xfaFactory&&this.xfaFactory.isValid()}get htmlForXfa(){return this.xfaFactory?this.xfaFactory.getPages():null}async #ta(){let t=await this.pdfManager.ensureCatalog("xfaImages");t&&this.xfaFactory.setImages(t)}async #tr(t,a){let r=await this.pdfManager.ensureCatalog("acroForm");if(!r)return;let i=await r.getAsync("DR");if(!(i instanceof en))return;await sG.load(i,["Font"],this.xref);let n=i.get("Font");if(!(n instanceof en))return;let s=Object.assign(Object.create(null),this.pdfManager.evaluatorOptions,{useSystemFonts:!1}),{builtInCMapCache:o,fontCache:l,standardFontDataCache:c}=this.catalog,h=new sd({xref:this.xref,handler:t,pageIndex:-1,idFactory:this._globalIdFactory,fontCache:l,builtInCMapCache:o,standardFontDataCache:c,options:s}),u=new tH,f=[],d={get font(){return f.at(-1)},set font(e){f.push(e)},clone(){return this}},g=(t,r,n)=>h.handleSetFont(i,[ea.get(t),1],null,u,a,d,r,n).catch(t=>(v(`loadXfaFonts: "${t}".`),null)),p=[];for(let[t,a]of n){let r=a.get("FontDescriptor");if(!(r instanceof en))continue;let i=r.get("FontFamily");i=i.replaceAll(/[ ]+(\d)/g,"$1");let n={fontFamily:i,fontWeight:r.get("FontWeight"),italicAngle:-r.get("ItalicAngle")};(function(t){let a=new Set(["100","200","300","400","500","600","700","800","900","1000","normal","bold","bolder","lighter"]),{fontFamily:r,fontWeight:i,italicAngle:n}=t;if(!eG(r,!0))return!1;let s=i?i.toString():"";t.fontWeight=a.has(s)?s:"400";let o=parseFloat(n);return t.italicAngle=isNaN(o)||o<-90||o>90?"14":n.toString(),!0})(n)&&p.push(g(t,null,n))}await Promise.all(p);let m=this.xfaFactory.setFonts(f);if(!m)return;s.ignoreErrors=!0,p.length=0,f.length=0;let b=new Set;for(let t of m)nS(`${t}-Regular`)||b.add(t);for(let t of(b.size&&m.push("PdfJS-Fallback"),m))if(!b.has(t))for(let a 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}]){let r=`${t}-${a.name}`;p.push(g(r,nI(r),{fontFamily:t,fontWeight:a.fontWeight,italicAngle:a.italicAngle}))}await Promise.all(p),this.xfaFactory.appendFonts(f,b)}loadXfaResources(t,a){return Promise.all([this.#tr(t,a).catch(()=>{}),this.#ta()])}serializeXfaData(t){return this.xfaFactory?this.xfaFactory.serializeData(t):null}get version(){return this.catalog.version||this.#te}get formInfo(){let t={hasFields:!1,hasAcroForm:!1,hasXfa:!1,hasSignatures:!1},{acroForm:a}=this.catalog;if(!a)return I(this,"formInfo",t);try{let r=a.get("Fields"),i=Array.isArray(r)&&r.length>0;t.hasFields=i;let n=a.get("XFA");t.hasXfa=Array.isArray(n)&&n.length>0||n instanceof ed&&!n.isEmpty;let s=!!(1&a.get("SigFlags")),o=s&&this.#tt(r);t.hasAcroForm=i&&!o,t.hasSignatures=s}catch(t){if(t instanceof ex)throw t;v(`Cannot fetch form information: "${t}".`)}return I(this,"formInfo",t)}get documentInfo(){let t;let{catalog:a,formInfo:r,xref:i}=this,n={PDFFormatVersion:this.version,Language:a.lang,EncryptFilterName:i.encrypt?.filterName??null,IsLinearized:!!this.linearization,IsAcroFormPresent:r.hasAcroForm,IsXFAPresent:r.hasXfa,IsCollectionPresent:!!a.collection,IsSignaturesPresent:r.hasSignatures};try{t=i.trailer.get("Info")}catch(t){if(t instanceof ex)throw t;k("The document information dictionary is invalid.")}if(!(t instanceof en))return I(this,"documentInfo",n);for(let[a,r]of t){switch(a){case"Title":case"Author":case"Subject":case"Keywords":case"Creator":case"Producer":case"CreationDate":case"ModDate":if("string"==typeof r){n[a]=H(r);continue}break;case"Trapped":if(r instanceof ea){n[a]=r;continue}break;default:let t;switch(typeof r){case"string":t=H(r);break;case"number":case"boolean":t=r;break;default:r instanceof ea&&(t=r)}if(void 0===t){v(`Bad value, for custom key "${a}", in Info: ${r}.`);continue}n.Custom??=Object.create(null),n.Custom[a]=t;continue}v(`Bad value, for key "${a}", in Info: ${r}.`)}return I(this,"documentInfo",n)}get fingerprints(){let t,a;let r="\x00".repeat(16);function i(t){return"string"==typeof t&&16===t.length&&t!==r}let n=this.xref.trailer.get("ID");return Array.isArray(n)&&i(n[0])?(t=E(n[0]),n[1]!==n[0]&&i(n[1])&&(a=E(n[1]))):t=g8(this.stream.getByteRange(0,1024),0,1024),I(this,"fingerprints",[Y(t),a?Y(a):null])}async #ti(t){let{catalog:a,linearization:r,xref:i}=this,n=es.get(r.objectNumberFirst,0);try{let t=await i.fetchAsync(n);if(t instanceof en){let r=t.getRaw("Type");if(r instanceof es&&(r=await i.fetchAsync(r)),ec(r,"Page")||!t.has("Type")&&!t.has("Kids")&&t.has("Contents"))return a.pageKidsCountCache.has(n)||a.pageKidsCountCache.put(n,1),a.pageIndexCache.has(n)||a.pageIndexCache.put(n,0),[t,n]}throw new N("The Linearization dictionary doesn't point to a valid Page dictionary.")}catch(r){return v(`_getLinearizationPage: "${r.message}".`),a.getPageDict(t)}}getPage(t){let a;let r=this.#e4.get(t);if(r)return r;let{catalog:i,linearization:n,xfaFactory:s}=this;return a=(a=s?Promise.resolve([en.empty,null]):n?.pageFirst===t?this.#ti(t):i.getPageDict(t)).then(([a,r])=>new pA({pdfManager:this.pdfManager,xref:this.xref,pageIndex:t,pageDict:a,ref:r,globalIdFactory:this._globalIdFactory,fontCache:i.fontCache,builtInCMapCache:i.builtInCMapCache,standardFontDataCache:i.standardFontDataCache,globalColorSpaceCache:i.globalColorSpaceCache,globalImageCache:i.globalImageCache,systemFontCache:i.systemFontCache,nonBlendModesSet:i.nonBlendModesSet,xfaFactory:s})),this.#e4.set(t,a),a}async checkFirstPage(t=!1){if(!t)try{await this.getPage(0)}catch(t){if(t instanceof ev)throw this.#e4.delete(0),await this.cleanup(),new eA}}async checkLastPage(t=!1){let a;let{catalog:r,pdfManager:i}=this;r.setActualNumPages();try{if(await Promise.all([i.ensureDoc("xfaFactory"),i.ensureDoc("linearization"),i.ensureCatalog("numPages")]),this.xfaFactory)return;if(a=this.linearization?this.linearization.numPages:r.numPages,!Number.isInteger(a))throw new N("Page count is not an integer.");if(a<=1)return;await this.getPage(a-1)}catch(s){let n;if(this.#e4.delete(a-1),await this.cleanup(),s instanceof ev&&!t)throw new eA;v(`checkLastPage - invalid /Pages tree /Count: ${a}.`);try{n=await r.getAllPageDicts(t)}catch(a){if(a instanceof ev&&!t)throw new eA;r.setActualNumPages(1);return}for(let[t,[a,s]]of n){let n;a instanceof Error?(n=Promise.reject(a)).catch(()=>{}):n=Promise.resolve(new pA({pdfManager:i,xref:this.xref,pageIndex:t,pageDict:a,ref:s,globalIdFactory:this._globalIdFactory,fontCache:r.fontCache,builtInCMapCache:r.builtInCMapCache,standardFontDataCache:r.standardFontDataCache,globalColorSpaceCache:this.globalColorSpaceCache,globalImageCache:r.globalImageCache,systemFontCache:r.systemFontCache,nonBlendModesSet:r.nonBlendModesSet,xfaFactory:null})),this.#e4.set(t,n)}r.setActualNumPages(n.size)}}async fontFallback(t,a){let{catalog:r,pdfManager:i}=this;for(let n of(await Promise.all(r.fontCache)))if(n.loadedName===t){n.fallback(a,i.evaluatorOptions);return}}async cleanup(t=!1){return this.catalog?this.catalog.cleanup(t):sF()}async #tn(t,a,r,i,n,s,o){let{xref:l}=this;if(!(r instanceof es)||s.has(r))return;s.put(r);let c=await l.fetchAsync(r);if(!(c instanceof en))return;let h=await c.getAsync("Subtype");if("Link"===(h=h instanceof ea?h.name:null))return;if(c.has("T")){let a=H(await c.getAsync("T"));t=""===t?a:`${t}.${a}`}else{let r=c;for(;;){if((r=r.getRaw("Parent")||a)instanceof es){if(s.has(r))break;r=await l.fetchAsync(r)}if(!(r instanceof en))break;if(r.has("T")){let a=H(await r.getAsync("T"));t=""===t?a:`${t}.${a}`;break}}}if(a&&!c.has("Parent")&&ec(c.get("Subtype"),"Widget")&&o.put(r,a),i.has(t)||i.set(t,[]),i.get(t).push(gR.create(l,r,n,null,!0,o,null,null).then(t=>t?.getFieldObject()).catch(function(t){return v(`#collectFieldObjects: "${t}".`),null})),!c.has("Kids"))return;let u=await c.getAsync("Kids");if(Array.isArray(u))for(let a of u)await this.#tn(t,r,a,i,n,s,o)}get fieldObjects(){return I(this,"fieldObjects",this.pdfManager.ensureDoc("formInfo").then(async t=>{if(!t.hasFields)return null;let a=await this.annotationGlobals;if(!a)return null;let{acroForm:r}=a,i=new eo,n=Object.create(null),s=new Map,o=new el;for(let t of r.get("Fields"))await this.#tn("",null,t,s,a,i,o);let l=[];for(let[t,a]of s)l.push(Promise.all(a).then(a=>{(a=a.filter(t=>!!t)).length>0&&(n[t]=a)}));return await Promise.all(l),{allFields:_(n)>0?n:null,orphanFields:o}}))}get hasJSActions(){return I(this,"hasJSActions",this.pdfManager.ensureDoc("_parseHasJSActions"))}async _parseHasJSActions(){let[t,a]=await Promise.all([this.pdfManager.ensureCatalog("jsActions"),this.pdfManager.ensureDoc("fieldObjects")]);return!!t||!!a?.allFields&&Object.values(a.allFields).some(t=>t.some(t=>null!==t.actions))}get calculationOrderIds(){let t=this.catalog.acroForm?.get("CO");if(!Array.isArray(t)||0===t.length)return I(this,"calculationOrderIds",null);let a=[];for(let r of t)r instanceof es&&a.push(r.toString());return I(this,"calculationOrderIds",a.length?a:null)}get annotationGlobals(){return I(this,"annotationGlobals",gR.createGlobals(this.pdfManager))}}class pF{constructor({docBaseUrl:t,docId:a,enableXfa:r,evaluatorOptions:i,handler:n,password:s}){this._docBaseUrl=function(t){if(t){let a=S(t);if(a)return a.href;v(`Invalid absolute docBaseUrl: "${t}".`)}return null}(t),this._docId=a,this._password=s,this.enableXfa=r,i.isOffscreenCanvasSupported&&=L.isOffscreenCanvasSupported,i.isImageDecoderSupported&&=L.isImageDecoderSupported,this.evaluatorOptions=Object.freeze(i),tk.setOptions(i),tD.setOptions(i),tH.setOptions(i);let o={...i,handler:n};t_.setOptions(o),tf.setOptions(o),td.setOptions(o)}get docId(){return this._docId}get password(){return this._password}get docBaseUrl(){return this._docBaseUrl}ensureDoc(t,a){return this.ensure(this.pdfDocument,t,a)}ensureXRef(t,a){return this.ensure(this.pdfDocument.xref,t,a)}ensureCatalog(t,a){return this.ensure(this.pdfDocument.catalog,t,a)}getPage(t){return this.pdfDocument.getPage(t)}fontFallback(t,a){return this.pdfDocument.fontFallback(t,a)}cleanup(t=!1){return this.pdfDocument.cleanup(t)}async ensure(t,a,r){A("Abstract method `ensure` called")}requestRange(t,a){A("Abstract method `requestRange` called")}requestLoadedStream(t=!1){A("Abstract method `requestLoadedStream` called")}sendProgressiveData(t){A("Abstract method `sendProgressiveData` called")}updatePassword(t){this._password=t}terminate(t){A("Abstract method `terminate` called")}}class pM extends pF{constructor(t){super(t);let a=new tg(t.source);this.pdfDocument=new pB(this,a),this._loadedStreamPromise=Promise.resolve(a)}async ensure(t,a,r){let i=t[a];return"function"==typeof i?i.apply(t,r):i}requestRange(t,a){return Promise.resolve()}requestLoadedStream(t=!1){return this._loadedStreamPromise}terminate(t){}}class pR extends pF{constructor(t){super(t),this.streamManager=new ty(t.source,{msgHandler:t.handler,length:t.length,disableAutoFetch:t.disableAutoFetch,rangeChunkSize:t.rangeChunkSize}),this.pdfDocument=new pB(this,this.streamManager.getStream())}async ensure(t,a,r){try{let i=t[a];return"function"==typeof i?i.apply(t,r):i}catch(i){if(!(i instanceof ex))throw i;return await this.requestRange(i.begin,i.end),this.ensure(t,a,r)}}requestRange(t,a){return this.streamManager.requestRange(t,a)}requestLoadedStream(t=!1){return this.streamManager.requestAllChunks(t)}sendProgressiveData(t){this.streamManager.onReceiveData({chunk:t})}terminate(t){this.streamManager.abort(t)}}function pN(){}function pO(t){if(t instanceof O||t instanceof M||t instanceof B||t instanceof R||t instanceof F)return t;switch(t instanceof Error||"object"==typeof t&&null!==t||A('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),t.name){case"AbortException":return new O(t.message);case"InvalidPDFException":return new M(t.message);case"PasswordException":return new B(t.message,t.code);case"ResponseException":return new R(t.message,t.status,t.missing);case"UnknownErrorException":return new F(t.message,t.details)}return new F(t.message,t.toString())}class pD{#ts=new AbortController;constructor(t,a,r){this.sourceName=t,this.targetName=a,this.comObj=r,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),r.addEventListener("message",this.#to.bind(this),{signal:this.#ts.signal})}#to({data:t}){if(t.targetName!==this.sourceName)return;if(t.stream){this.#tl(t);return}if(t.callback){let a=t.callbackId,r=this.callbackCapabilities[a];if(!r)throw Error(`Cannot resolve callback ${a}`);if(delete this.callbackCapabilities[a],1===t.callback)r.resolve(t.data);else{if(2!==t.callback)throw Error("Unexpected callback case");r.reject(pO(t.reason))}return}let a=this.actionHandler[t.action];if(!a)throw Error(`Unknown action from worker: ${t.action}`);if(t.callbackId){let r=this.sourceName,i=t.sourceName,n=this.comObj;Promise.try(a,t.data).then(function(a){n.postMessage({sourceName:r,targetName:i,callback:1,callbackId:t.callbackId,data:a})},function(a){n.postMessage({sourceName:r,targetName:i,callback:2,callbackId:t.callbackId,reason:pO(a)})});return}t.streamId?this.#tc(t):a(t.data)}on(t,a){let r=this.actionHandler;if(r[t])throw Error(`There is already an actionName called "${t}"`);r[t]=a}send(t,a,r){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:t,data:a},r)}sendWithPromise(t,a,r){let i=this.callbackId++,n=Promise.withResolvers();this.callbackCapabilities[i]=n;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:t,callbackId:i,data:a},r)}catch(t){n.reject(t)}return n.promise}sendWithStream(t,a,r,i){let n=this.streamId++,s=this.sourceName,o=this.targetName,l=this.comObj;return new ReadableStream({start:r=>{let c=Promise.withResolvers();return this.streamControllers[n]={controller:r,startCall:c,pullCall:null,cancelCall:null,isClosed:!1},l.postMessage({sourceName:s,targetName:o,action:t,streamId:n,data:a,desiredSize:r.desiredSize},i),c.promise},pull:t=>{let a=Promise.withResolvers();return this.streamControllers[n].pullCall=a,l.postMessage({sourceName:s,targetName:o,stream:6,streamId:n,desiredSize:t.desiredSize}),a.promise},cancel:t=>{C(t instanceof Error,"cancel must have a valid reason");let a=Promise.withResolvers();return this.streamControllers[n].cancelCall=a,this.streamControllers[n].isClosed=!0,l.postMessage({sourceName:s,targetName:o,stream:1,streamId:n,reason:pO(t)}),a.promise}},r)}#tc(t){let a=t.streamId,r=this.sourceName,i=t.sourceName,n=this.comObj,s=this,o=this.actionHandler[t.action],l={enqueue(t,s=1,o){if(this.isCancelled)return;let l=this.desiredSize;this.desiredSize-=s,l>0&&this.desiredSize<=0&&(this.sinkCapability=Promise.withResolvers(),this.ready=this.sinkCapability.promise),n.postMessage({sourceName:r,targetName:i,stream:4,streamId:a,chunk:t},o)},close(){this.isCancelled||(this.isCancelled=!0,n.postMessage({sourceName:r,targetName:i,stream:3,streamId:a}),delete s.streamSinks[a])},error(t){C(t instanceof Error,"error must have a valid reason"),this.isCancelled||(this.isCancelled=!0,n.postMessage({sourceName:r,targetName:i,stream:5,streamId:a,reason:pO(t)}))},sinkCapability:Promise.withResolvers(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:t.desiredSize,ready:null};l.sinkCapability.resolve(),l.ready=l.sinkCapability.promise,this.streamSinks[a]=l,Promise.try(o,t.data,l).then(function(){n.postMessage({sourceName:r,targetName:i,stream:8,streamId:a,success:!0})},function(t){n.postMessage({sourceName:r,targetName:i,stream:8,streamId:a,reason:pO(t)})})}#tl(t){let a=t.streamId,r=this.sourceName,i=t.sourceName,n=this.comObj,s=this.streamControllers[a],o=this.streamSinks[a];switch(t.stream){case 8:t.success?s.startCall.resolve():s.startCall.reject(pO(t.reason));break;case 7:t.success?s.pullCall.resolve():s.pullCall.reject(pO(t.reason));break;case 6:if(!o){n.postMessage({sourceName:r,targetName:i,stream:7,streamId:a,success:!0});break}o.desiredSize<=0&&t.desiredSize>0&&o.sinkCapability.resolve(),o.desiredSize=t.desiredSize,Promise.try(o.onPull||pN).then(function(){n.postMessage({sourceName:r,targetName:i,stream:7,streamId:a,success:!0})},function(t){n.postMessage({sourceName:r,targetName:i,stream:7,streamId:a,reason:pO(t)})});break;case 4:if(C(s,"enqueue should have stream controller"),s.isClosed)break;s.controller.enqueue(t.chunk);break;case 3:if(C(s,"close should have stream controller"),s.isClosed)break;s.isClosed=!0,s.controller.close(),this.#th(s,a);break;case 5:C(s,"error should have stream controller"),s.controller.error(pO(t.reason)),this.#th(s,a);break;case 2:t.success?s.cancelCall.resolve():s.cancelCall.reject(pO(t.reason)),this.#th(s,a);break;case 1:if(!o)break;let l=pO(t.reason);Promise.try(o.onCancel||pN,l).then(function(){n.postMessage({sourceName:r,targetName:i,stream:2,streamId:a,success:!0})},function(t){n.postMessage({sourceName:r,targetName:i,stream:2,streamId:a,reason:pO(t)})}),o.sinkCapability.reject(l),o.isCancelled=!0,delete this.streamSinks[a];break;default:throw Error("Unexpected stream case")}}async #th(t,a){await Promise.allSettled([t.startCall?.promise,t.pullCall?.promise,t.cancelCall?.promise]),delete this.streamControllers[a]}destroy(){this.#ts?.abort(),this.#ts=null}}async function pE(t,a,r,{encrypt:i=null,encryptRef:n=null}){let s=i&&n!==t?i.createCipherTransform(t.num,t.gen):null;r.push(`${t.num} ${t.gen} obj
`),await p_(a,r,s),r.push("\nendobj\n")}async function pP(t,a,r){for(let[i,n]of(a.push("<<"),t.getRawEntries()))a.push(` /${eU(i)} `),await p_(n,a,r);a.push(">>")}async function p_(t,a,r){t instanceof ea?a.push(`/${eU(t.name)}`):t instanceof es?a.push(`${t.num} ${t.gen} R`):Array.isArray(t)||ArrayBuffer.isView(t)?await async function(t,a,r){a.push("[");for(let i=0,n=t.length;i<n;i++)await p_(t[i],a,r),i<n-1&&a.push(" ");a.push("]")}(t,a,r):"string"==typeof t?(r&&(t=r.encryptString(t)),a.push(`(${ej(t)})`)):"number"==typeof t||"boolean"==typeof t?a.push(t.toString()):t instanceof en?await pP(t,a,r):t instanceof ed?await async function(t,a,r){(t=t.getOriginalStream()).reset();let i=t.getBytes(),{dict:n}=t,[s,o]=await Promise.all([n.getAsync("Filter"),n.getAsync("DecodeParms")]),l=ec(Array.isArray(s)?await n.xref.fetchIfRefAsync(s[0]):s,"FlateDecode");if(i.length>=256&&!l)try{let t,a;let r=new CompressionStream("deflate"),c=r.writable.getWriter();await c.ready,c.write(i).then(async()=>{await c.ready,await c.close()}).catch(()=>{});let h=await new Response(r.readable).arrayBuffer();i=new Uint8Array(h),s?!l&&(t=Array.isArray(s)?[ea.get("FlateDecode"),...s]:[ea.get("FlateDecode"),s],o&&(a=Array.isArray(o)?[null,...o]:[null,o])):t=ea.get("FlateDecode"),t&&n.set("Filter",t),a&&n.set("DecodeParms",a)}catch(t){k(`writeStream - cannot compress data: "${t}".`)}let c=D(i);r&&(c=r.encryptString(c)),n.set("Length",c.length),await pP(n,a,r),a.push(" stream\n",c,"\nendstream")}(t,a,r):null===t?a.push("null"):v(`Unhandled value in writer: ${typeof t}, please file a bug.`)}function pL(t,a,r,i){for(let n=a+r-1;n>r-1;n--)i[n]=255&t,t>>=8;return r+a}function pU(t,a,r){let i=t.length;for(let n=0;n<i;n++)r[a+n]=255&t.charCodeAt(n);return a+i}function pj(t){let a=[];for(let{ref:r}of t)r.num===a.at(-2)+a.at(-1)?a[a.length-1]+=1:a.push(r.num,1);return a}function pq(t,a,r){if(Array.isArray(a.fileIds)&&a.fileIds.length>0){let i=function(t,a){let r=Math.floor(Date.now()/1e3),i=a.filename||"",n=[r.toString(),i,t.toString(),...a.infoMap.values()],s=Math.sumPrecise(n.map(t=>t.length)),o=new Uint8Array(s),l=0;for(let t of n)l=pU(t,l,o);return D(g8(o,0,o.length))}(t,a);r.set("ID",[a.fileIds[0]||i,i])}}async function pH({originalData:t,xrefInfo:a,changes:r,xref:i=null,hasXfa:n=!1,xfaDatasetsRef:s=null,hasXfaDatasetsEntry:o=!1,needAppearances:l,acroFormRef:c=null,acroForm:h=null,xfaData:u=null,useXrefStream:f=!1}){await async function({xref:t,acroForm:a,acroFormRef:r,hasXfa:i,hasXfaDatasetsEntry:n,xfaDatasetsRef:s,needAppearances:o,changes:l}){if(!i||n||s||v("XFA - Cannot save it"),!o&&(!i||!s||n))return;let c=a.clone();if(i&&!n){let t=a.get("XFA").slice();t.splice(2,0,"datasets"),t.splice(3,0,s),c.set("XFA",t)}o&&c.set("NeedAppearances",!0),l.put(r,{data:c})}({xref:i,acroForm:h,acroFormRef:c,hasXfa:n,hasXfaDatasetsEntry:o,xfaDatasetsRef:s,needAppearances:l,changes:r}),n&&function({xfaData:t,xfaDatasetsRef:a,changes:r,xref:i}){null===t&&(t=function(t,a){let r=new sE({hasAttributes:!0}).parseFromString(t);for(let{xfa:t}of a){if(!t)continue;let{path:a,value:i}=t;if(!a)continue;let n=eL(a),s=r.documentElement.searchNode(n,0);!s&&n.length>1&&(s=r.documentElement.searchNode([n.at(-1)],0)),s?s.childNodes=Array.isArray(i)?i.map(t=>new sD("value",t)):[new sD("#text",i)]:v(`Node not found for path: ${a}`)}let i=[];return r.documentElement.dump(i),i.join("")}(i.fetchIfRef(a).getString(),r));let n=new tp(t);n.dict=new en(i),n.dict.setIfName("Type","EmbeddedFile"),r.put(a,{data:n})}({xfaData:u,xfaDatasetsRef:s,changes:r,xref:i});let d=function(t,a,r){let i=new en(null);i.setIfDefined("Prev",t?.startXRef);let n=t.newRef;return r?(a.put(n,{data:""}),i.set("Size",n.num+1),i.setIfName("Type","XRef")):i.set("Size",n.num),i.setIfDefined("Root",t?.rootRef),i.setIfDefined("Info",t?.infoRef),i.setIfDefined("Encrypt",t?.encryptRef),i}(a,r,f),g=[],p=await async function(t,a,r=[]){let i=[];for(let[n,{data:s,objStreamRef:o,index:l}]of t.items())o?i.push({ref:n,data:s,objStreamRef:o,index:l}):null!==s&&"string"!=typeof s?(await pE(n,s,r,a),i.push({ref:n,data:r.join("")}),r.length=0):i.push({ref:n,data:s});return i.sort((t,a)=>t.ref.num-a.ref.num)}(r,i,g),m=t.length,b=t.at(-1);for(let{data:t}of(10!==b&&13!==b&&(g.push("\n"),m+=1),p))null!==t&&g.push(t);await (f?async function(t,a,r,i,n){let s=[],o=0,l=0;for(let{ref:t,data:i,objStreamRef:n,index:c}of r){let r;o=Math.max(o,a),n?(r=c,s.push([2,n.num,r])):null!==i?(r=Math.min(t.gen,65535),s.push([1,a,r]),a+=i.length):(r=Math.min(t.gen+1,65535),s.push([0,0,r])),l=Math.max(l,r)}i.set("Index",pj(r));let c=[1,eZ(o),eZ(l)];i.set("W",c),pq(a,t,i);let h=Math.sumPrecise(c),u=new Uint8Array(h*s.length),f=new tg(u);f.dict=i;let d=0;for(let[t,a,r]of s)d=pL(t,c[0],d,u),d=pL(a,c[1],d,u),d=pL(r,c[2],d,u);await pE(t.newRef,f,n,{}),n.push("startxref\n",a.toString(),"\n%%EOF\n")}(a,m,p,d,g):async function(t,a,r,i,n){n.push("xref\n");let s=pj(r),o=0;for(let{ref:t,data:i}of r)t.num===s[o]&&(n.push(`${s[o]} ${s[o+1]}
`),o+=2),null!==i?(n.push(`${a.toString().padStart(10,"0")} ${Math.min(t.gen,65535).toString().padStart(5,"0")} n\r
`),a+=i.length):n.push(`0000000000 ${Math.min(t.gen+1,65535).toString().padStart(5,"0")} f\r
`);pq(a,t,i),n.push("trailer\n"),await pP(i,n,null),n.push("\nstartxref\n",a.toString(),"\n%%EOF\n")}(a,m,p,d,g));let y=t.length+Math.sumPrecise(g.map(t=>t.length)),w=new Uint8Array(y);w.set(t);let x=t.length;for(let t of g)x=pU(t,x,w);return w}class p${constructor(t,a){this.page=t,this.documentData=a,this.annotations=null,this.pointingNamedDestinations=null,a.pagesMap.put(t.ref,this)}}class pz{constructor(t){this.document=t,this.destinations=null,this.pageLabels=null,this.pagesMap=new el,this.oldRefMapping=new el,this.dedupNamedDestinations=new Map,this.usedNamedDestinations=new Set,this.postponedRefCopies=new el,this.usedStructParents=new Set,this.oldStructParentMapping=new Map,this.structTreeRoot=null,this.parentTree=null,this.idTree=null,this.roleMap=null,this.classMap=null,this.namespaces=null,this.structTreeAF=null,this.structTreePronunciationLexicon=[]}}class pG{constructor(t){this.entries=t}fetch(t){return t instanceof es?this.entries[t.num]:t}}class pW{constructor({useObjectStreams:t=!0,title:a="",author:r=""}={}){this.hasSingleFile=!1,this.currentDocument=null,this.oldPages=[],this.newPages=[],this.xref=[null],this.xrefWrapper=new pG(this.xref),this.newRefCount=1,[this.rootRef,this.rootDict]=this.newDict,[this.infoRef,this.infoDict]=this.newDict,[this.pagesRef,this.pagesDict]=this.newDict,this.namesDict=null,this.useObjectStreams=t,this.objStreamRefs=t?new Set:null,this.version="1.7",this.title=a,this.author=r,this.pageLabels=null,this.namedDestinations=new Map,this.parentTree=new Map,this.structTreeKids=[],this.idTree=new Map,this.classMap=new en,this.roleMap=new en,this.namespaces=new Map,this.structTreeAF=[],this.structTreePronunciationLexicon=[]}get newRef(){return es.get(this.newRefCount++,0)}get newDict(){let t=this.newRef;return[t,this.xref[t.num]=new en]}async #tu(t,a){let r=this.newRef;return this.xref[r.num]=await this.#tf(t,!0,a),r}cloneDict(t){let a=t.clone();return a.xref=this.xrefWrapper,a}async #tf(t,a,r){let i;if(t instanceof es){let{currentDocument:{oldRefMapping:a}}=this,i=a.get(t);if(i)return i;let n=t;return"number"==typeof(t=await r.fetchAsync(n))?t:(i=this.newRef,a.put(n,i),this.xref[i.num]=await this.#tf(t,!0,r),i)}let n=[],{currentDocument:{postponedRefCopies:s}}=this;if(Array.isArray(t)){a&&(t=t.slice());for(let a=0,i=t.length;a<i;a++){let i=s.get(t[a]);i?i.push(r=>t[a]=r):n.push(this.#tf(t[a],!0,r).then(r=>t[a]=r))}return await Promise.all(n),t}if(t instanceof ed?({dict:i}=t=t.getOriginalStream().clone(),i.xref=this.xrefWrapper):t instanceof en&&(a&&((t=t.clone()).xref=this.xrefWrapper),i=t),i){for(let[t,a]of i.getRawEntries()){let o=s.get(a);o?o.push(a=>i.set(t,a)):n.push(this.#tf(a,!0,r).then(a=>i.set(t,a)))}await Promise.all(n)}return t}async #td(t,a,r,i,n,s,o,l=new eo){let c;let{currentDocument:{pagesMap:h,oldRefMapping:u}}=this,f=a.getRaw("Pg");if(f instanceof es&&!h.has(f))return null;let d=c=a.getRaw("K");if(d instanceof es){if(l.has(d))return null;Array.isArray(c=await r.fetchAsync(d))||(c=[d])}c=Array.isArray(c)?c:[c];let g=[],p=[];for(let a of c){let c=a instanceof es?a:null;if(c){if(l.has(c))continue;l.put(c),a=await r.fetchAsync(c)}if("number"==typeof a){g.push(a);continue}if(!(a instanceof en))continue;let f=a.getRaw("Pg");if(f instanceof es&&!h.has(f))continue;let d=a.get("Type");if(!d||ec(d,"StructElem")){let t=!1;if(c&&i.has(c)){if(!ec(a.get("S"),"Link"))continue;t=!0}let h=await this.#td(c,a,r,i,n,s,o,l);h&&(p.push(g.length),g.push(h),c&&u.put(c,h),t&&this.xref[h.num].setIfName("S","Span"));continue}if(ec(d,"OBJR")){if(!c)continue;let a=u.get(c);if(!a)continue;let r=this.xref[a.num].getRaw("Obj");if(r instanceof es){let a=this.xref[r.num];if(a instanceof en&&!a.has("StructParent")&&t){let r=this.parentTree.size;this.parentTree.set(r,[u,t]),a.set("StructParent",r)}}g.push(a);continue}if(ec(d,"MCR")){let t=await this.#tf(c||a,!0,r);g.push(t);continue}if(c){let t=await this.#tf(c,!0,r);g.push(t)}}if(0!==c.length&&0===g.length)return null;let m=this.newRef,b=this.xref[m.num]=this.cloneDict(a);b.delete("ID"),b.delete("C"),b.delete("K"),b.delete("P"),b.delete("S"),await this.#tf(b,!1,r);let y=a.get("C");if(y instanceof ea){let t=s.get(y.name);t?b.set("C",ea.get(t)):b.set("C",y)}else if(Array.isArray(y)){let t=[];for(let a of y)if(a instanceof ea){let r=s.get(a.name);r?t.push(ea.get(r)):t.push(a)}b.set("C",t)}let w=a.get("S");if(w instanceof ea){let t=o.get(w.name);t?b.set("S",ea.get(t)):b.set("S",w)}let x=a.get("ID");if("string"==typeof x){let t=H(x,!1),a=n.get(t);a?b.set("ID",eK(a)):b.set("ID",x)}let k=b.get("A");if(k){for(let t of(Array.isArray(k)||(k=[k]),k))if(ec((t=this.xrefWrapper.fetch(t)).get("O"),"Table")&&t.has("Headers")){let a=this.xrefWrapper.fetch(t.getRaw("Headers"));if(Array.isArray(a))for(let t=0,r=a.length;t<r;t++){let r=n.get(H(a[t],!1));r&&(a[t]=r)}}}for(let t of p){let a=g[t];this.xref[a.num].set("P",m)}return 1===g.length?b.set("K",g[0]):g.length>1&&b.set("K",g),m}async extractPages(t){let a=[],r=0;this.hasSingleFile=1===t.length;let i=[];for(let{document:n,includePages:s,excludePages:o}of t){let t,l,c,h;if(!n)continue;let u=new pz(n);for(let r of(i.push(u),a.push(this.#tg(u)),s||[]))Array.isArray(r)?(l||=[]).push(r):(t||=new Set).add(r);for(let t of o||[])Array.isArray(t)?(h||=[]).push(t):(c||=new Set).add(t);for(let i=0,s=n.numPages;i<s;i++){if(c?.has(i))continue;if(h){let t=!1;for(let[a,r]of h)if(i>=a&&i<=r){t=!0;break}if(t)continue}let s=!1;if(t&&(s=t.has(i)),!s&&l){for(let[t,a]of l)if(i>=t&&i<=a){s=!0;break}}if(s||t||l||(s=!0),!s)continue;let o=r++;a.push(n.getPage(i).then(t=>{this.oldPages[o]=new p$(t,u)}))}}for(let t of(await Promise.all(a),a.length=0,this.#tp(i),this.#tm(),this.oldPages))a.push(this.#tb(t));await Promise.all(a),this.#ty(),this.#tw(i);for(let t=0,a=this.oldPages.length;t<a;t++)this.newPages[t]=await this.#tx(t,null);return this.#tk(i),await this.#tv(i),this.writePDF()}async #tg(t){let{document:{pdfManager:a,xref:r}}=t;await Promise.all([a.ensureCatalog("destinations").then(a=>t.destinations=a),a.ensureCatalog("rawPageLabels").then(a=>t.pageLabels=a),a.ensureCatalog("structTreeRoot").then(a=>t.structTreeRoot=a)]);let i=t.structTreeRoot;if(i){let a=i.dict,n=a.get("ParentTree");if(n){let a=new sB(n,r);t.parentTree=a.getAll(!0)}let s=a.get("IDTree");if(s){let a=new sT(s,r);t.idTree=a.getAll(!0)}t.roleMap=a.get("RoleMap")||null,t.classMap=a.get("ClassMap")||null;let o=a.get("Namespaces")||null;o&&!Array.isArray(o)&&(o=[o]),t.namespaces=o,t.structTreeAF=a.get("AF")||null,t.structTreePronunciationLexicon=a.get("PronunciationLexicon")||null}}async #tb(t){let{page:{xref:a,annotations:r},documentData:{pagesMap:i,destinations:n,usedNamedDestinations:s}}=t;if(!r)return;let o=[],l=[],c=0;for(let t of r){let r=c++;o.push(a.fetchIfRefAsync(t).then(async a=>{if(!ec(a.get("Subtype"),"Link")){l[r]=t;return}let o=a.get("A"),c=o instanceof en?o.get("D"):a.get("Dest");if(c&&(!Array.isArray(c)||c[0]instanceof es&&!i.has(c[0]))){if("string"==typeof c){let a=H(c,!0);n.has(a)&&(l[r]=t,s.add(a))}}else l[r]=t}))}await Promise.all(o),l=l.filter(t=>!!t),t.annotations=l.length>0?l:null}#tw(t){for(let{postponedRefCopies:a,pagesMap:r}of t)for(let t of r.keys())a.put(t,[])}#tk(t){for(let{postponedRefCopies:a,oldRefMapping:r}of t){for(let[t,i]of a.items()){let a=r.get(t);for(let t of i)t(a)}a.clear()}}#tA(t,a,r=new eo){let i;if(t instanceof es){r.has(t)||(r.put(t),this.#tA(this.xref[t.num],a,r));return}if(Array.isArray(t)){for(let i of t)this.#tA(i,a,r);return}if(t instanceof ed?{dict:i}=t:t instanceof en&&(i=t),i)for(let t of(a(i),i.getRawValues()))this.#tA(t,a,r)}async #tv(t){let a=0,{parentTree:r}=this;for(let t=0,i=this.newPages.length;t<i;t++){let{documentData:{parentTree:i,oldRefMapping:n,oldStructParentMapping:s,usedStructParents:o,document:{xref:l}}}=this.oldPages[t];if(!i)continue;let c=this.newPages[t],h=this.xref[c.num];this.#tA(h,t=>{let c=t.get("StructParent")??t.get("StructParents");if("number"!=typeof c)return;o.add(c);let h=i.get(c),u=h instanceof es?h:null;if(u){let t=l.fetch(u);Array.isArray(t)&&(h=t)}if(Array.isArray(h)&&h.every(t=>null===t)&&(h=null),!h){t.has("StructParent")?t.delete("StructParent"):t.delete("StructParents");return}let f=s.get(c);void 0===f&&(f=a++,s.set(c,f),r.set(f,[n,h])),t.has("StructParent")?t.set("StructParent",f):t.set("StructParents",f)})}let{structTreeKids:i,idTree:n,classMap:s,roleMap:o,namespaces:l,structTreeAF:c,structTreePronunciationLexicon:h}=this;for(let a of t){let{document:{xref:t},oldRefMapping:r,parentTree:u,usedStructParents:f,structTreeRoot:d,idTree:g,classMap:p,roleMap:m,namespaces:b,structTreeAF:y,structTreePronunciationLexicon:w}=a;if(!d)continue;this.currentDocument=a;let x=new eo;for(let[t,a]of u||[])!f.has(t)&&a instanceof es&&x.put(a);let k=new Map;for(let[t,a]of g||[]){let r=t;if(n.has(t))for(let a=1;;a++){let i=`${t}_${a}`;if(!n.has(i)){k.set(t,i),r=i;break}}n.set(r,a)}let v=new Map;if(p?.size>0)for(let[a,r]of p){if(r=await this.#tf(r,!0,t),s.has(a))for(let t=1;;t++){let r=`${a}_${t}`;if(!s.has(r)){v.set(a,r),a=r;break}}s.set(a,r)}let A=new Map;if(m?.size>0)for(let[t,a]of m){let r=o.get(t);if(r){if(r!==a)for(let r=1;;r++){let i=`${t}_${r}`;if(!o.has(i)){A.set(t,i),o.set(i,a);break}}}else o.set(t,a)}if(b?.length>0)for(let a of b){let r=await t.fetchIfRefAsync(a),i=r.get("NS");if(!i||l.has(i))continue;i=H(i,!1);let n=await this.#tf(r,!0,t);l.set(i,n)}if(y)for(let a of y)c.push(await this.#tf(a,!0,t));if(w)for(let a of w)h.push(await this.#tf(a,!0,t));let C=d.dict.get("K");if(C){for(let a of C=Array.isArray(C)?C:[C]){let r=a instanceof es?a:null;if(r&&x.has(r))continue;a=await t.fetchIfRefAsync(a);let n=await this.#td(r,a,t,x,k,v,A);n&&i.push(n)}for(let[t,a]of g||[]){let i=r.get(a),s=k.get(t)||t;i?n.set(s,i):n.delete(s)}}}for(let[t,[a,i]]of r){if(!i){r.delete(t);continue}if(!Array.isArray(i)){let n=a.get(i);void 0===n?r.delete(t):r.set(t,n);continue}let n=i.map(t=>t instanceof es&&a.get(t)||null);0===n.length||n.every(t=>null===t)?r.delete(t):r.set(t,n)}this.currentDocument=null}#tp(t){for(let a of t){if(!a.destinations)continue;let{destinations:t,pagesMap:r}=a,i=a.destinations=new Map;for(let[a,n]of Object.entries(t)){let t=n[0],s=r.get(t);s&&((s.pointingNamedDestinations||=new Set).add(a),i.set(a,n))}}}#ty(){let{namedDestinations:t}=this;for(let a=0,r=this.oldPages.length;a<r;a++){let r=this.oldPages[a],{documentData:{destinations:i,dedupNamedDestinations:n,usedNamedDestinations:s}}=r,{pointingNamedDestinations:o}=r;if(o)for(let l of(r.pointingNamedDestinations=o=o.intersection(s),o)){if(!s.has(l))continue;let r=i.get(l).slice();if(!t.has(l)){t.set(l,r);continue}let o=`${l}_p${a+1}`;n.set(l,o),t.set(o,r)}}}#tC(t,a){if(0===a.size)return;let r=(t,r,i)=>{"string"==typeof i&&t.set(r,a.get(H(i,!0))||i)};for(let a of t){let t=this.xref[a.num];if(!ec(t.get("Subtype"),"Link"))continue;let i=t.get("A");if(i instanceof en&&i.has("D")){let t=i.get("D");r(i,"D",t);continue}let n=t.get("Dest");r(t,"Dest",n)}}async #tm(){if(!this.hasSingleFile)return;let{documentData:{document:t,pageLabels:a}}=this.oldPages[0];if(!a)return;let r=t.numPages,i=[],n=new Set(this.oldPages.map(({page:{pageIndex:t}})=>t)),s=null,o=-1;for(let t=0;t<r;t++){let r=a.get(t);if(r&&(o=(s=r).has("St")?t:-1),n.has(t)){if(-1!==o){let a=s.get("St");(s=this.cloneDict(s)).set("St",a+(t-o)),o=-1}i.push(s)}}s=i[0];let l=0,c=this.pageLabels=[[0,s]];for(let t=0,a=i.length;t<a;t++){let a=i[t];a!==s&&(l=t,s=a,c.push([l,s]))}}async #tx(t){let{page:a,documentData:r,annotations:i,pointingNamedDestinations:n}=this.oldPages[t];this.currentDocument=r;let{dedupNamedDestinations:s,oldRefMapping:o}=r,{xref:l,rotate:c,mediaBox:h,resources:u,ref:f}=a,d=this.newRef,g=this.xref[d.num]=this.cloneDict(a.pageDict);if(o.put(f,d),n)for(let t of n){let a=s.get(t)||t;this.namedDestinations.get(a)[0]=d}for(let t of["Rotate","MediaBox","CropBox","BleedBox","TrimBox","ArtBox","Resources","Annots","Parent","UserUnit"])g.delete(t);let p=this.newRefCount;for(let t of(await this.#tf(g,!1,l),g.set("Rotate",c),g.set("MediaBox",h),["CropBox","BleedBox","TrimBox","ArtBox"])){let r=a.getBoundingBox(t);r?.some((t,a)=>t!==h[a])&&g.set(t,r)}let m=a.userUnit;if(1!==m&&g.set("UserUnit",m),g.setIfDict("Resources",await this.#tf(u,!0,l)),i){let t=await this.#tf(i,!0,l);this.#tC(t,s),g.setIfArray("Annots",t)}if(this.useObjectStreams){let t=this.newRefCount,a=[];for(let r=p;r<t;r++)this.xref[r]instanceof ed||a.push(es.get(r,0));for(let t=0;t<a.length;t+=65535){let r=this.newRef;this.objStreamRefs.add(r.num),this.xref[r.num]=a.slice(t,t+65535)}}return this.currentDocument=null,d}#tS(){let{newPages:t,rootDict:a,pagesRef:r,pagesDict:i}=this;a.set("Pages",r),i.setIfName("Type","Pages"),i.set("Count",t.length);let n=[{dict:i,kids:t,parentRef:r}];for(;n.length>0;){let{dict:t,kids:a,parentRef:r}=n.pop();if(a.length<=16){for(let i of(t.set("Kids",a),a))this.xref[i.num].set("Parent",r);continue}let i=Math.max(16,Math.ceil(a.length/16)),s=[];for(let t=0;t<a.length;t+=i)s.push(a.slice(t,t+i));let o=[];for(let a of(t.set("Kids",o),s)){let[t,i]=this.newDict;o.push(t),i.setIfName("Type","Pages"),i.set("Parent",r),i.set("Count",a.length),n.push({dict:i,kids:a,parentRef:t})}}}#tI(t,a){let r=t.sort(a?([t],[a])=>t.localeCompare(a):([t],[a])=>t-a),[i,n]=this.newDict,s=[{dict:n,entries:r}],o=a?"Names":"Nums";for(;s.length>0;){let{dict:t,entries:a}=s.pop();if(a.length<=64){t.set("Limits",[a[0][0],a.at(-1)[0]]),t.set(o,a.flat());continue}let r=[],i=Math.max(64,Math.ceil(a.length/64));for(let t=0;t<a.length;t+=i)r.push(a.slice(t,t+i));let n=[];for(let a of(t.set("Kids",n),r)){let[t,r]=this.newDict;n.push(t),r.set("Limits",[a[0][0],a.at(-1)[0]]),s.push({dict:r,entries:a})}}return i}#tT(){let{pageLabels:t}=this;if(!t||0===t.length)return;let{rootDict:a}=this,r=this.#tI(this.pageLabels,!1);a.set("PageLabels",r)}#tB(){let{namedDestinations:t}=this;0!==t.size&&(this.namesDict||([this.namesRef,this.namesDict]=this.newDict,this.rootDict.set("Names",this.namesRef)),this.namesDict.set("Dests",this.#tI(Array.from(t.entries()),!0)))}#tF(){let{structTreeKids:t}=this;if(!t||0===t.length)return;let{rootDict:a}=this,r=this.newRef,i=this.xref[r.num]=new en;for(let a of(i.setIfName("Type","StructTreeRoot"),i.setIfArray("K",t),t)){let t=this.xref[a.num],i=t.get("Type");i&&!ec(i,"StructElem")||t.set("P",r)}if(this.parentTree.size>0){let t=this.#tI(Array.from(this.parentTree.entries()),!1);this.xref[t.num].setIfName("Type","ParentTree"),i.set("ParentTree",t),i.set("ParentTreeNextKey",this.parentTree.size)}if(this.idTree.size>0){let t=this.#tI(Array.from(this.idTree.entries()),!0);this.xref[t.num].setIfName("Type","IDTree"),i.set("IDTree",t)}if(this.classMap.size>0){let t=this.newRef;this.xref[t.num]=this.classMap,i.set("ClassMap",t)}if(this.roleMap.size>0){let t=this.newRef;this.xref[t.num]=this.roleMap,i.set("RoleMap",t)}if(this.namespaces.size>0){let t=this.newRef;this.xref[t.num]=Array.from(this.namespaces.values()),i.set("Namespaces",t)}if(this.structTreeAF.length>0){let t=this.newRef;this.xref[t.num]=this.structTreeAF,i.set("AF",t)}if(this.structTreePronunciationLexicon.length>0){let t=this.newRef;this.xref[t.num]=this.structTreePronunciationLexicon,i.set("PronunciationLexicon",t)}a.set("StructTreeRoot",r)}async #tM(){let{rootDict:t}=this;t.setIfName("Type","Catalog"),t.setIfName("Version",this.version),this.#tS(),this.#tT(),this.#tB(),this.#tF()}#tR(){let t=new Map;if(this.hasSingleFile){let{xref:{trailer:a}}=this.oldPages[0].documentData.document,r=a.get("Info");for(let[a,i]of r||[])"string"==typeof i&&t.set(a,H(i))}for(let[a,r]of(t.delete("ModDate"),t.set("CreationDate",W()),t.set("Creator","PDF.js"),t.set("Producer","Firefox"),this.author&&t.set("Author",this.author),this.title&&t.set("Title",this.title),t))this.infoDict.set(a,eK(r));return t}async #tN(){if(!this.hasSingleFile)return[null,null,null];let{documentData:t}=this.oldPages[0],{document:{xref:{trailer:a,encrypt:r}}}=t;if(!a.has("Encrypt"))return[null,null,null];let i=a.get("Encrypt");if(!(i instanceof en))return[null,null,null];this.currentDocument=t;let n=[await this.#tu(i,a.xref),r,a.get("ID")];return this.currentDocument=null,n}async #tO(){let t=new el;t.put(es.get(0,65535),{data:null});for(let a=1,r=this.xref.length;a<r;a++)this.objStreamRefs?.has(a)?await this.#tD(es.get(a,0),this.xref[a],t):t.put(es.get(a,0),{data:this.xref[a]});return[t,this.newRef]}async #tD(t,a,r){let i=[""],n=[],s=0,o=[];for(let l=0,c=a.length;l<c;l++){let c=a[l];r.put(c,{data:null,objStreamRef:t,index:l}),n.push(`${c.num} ${s}`);let h=this.xref[c.num];await p_(h,o,null);let u=o.join("");o.length=0,i.push(u),s+=u.length+1}i[0]=n.join("\n");let l=new tp(i.join("\n")),c=l.dict=new en;c.setIfName("Type","ObjStm"),c.set("N",a.length),c.set("First",i[0].length+1),r.put(t,{data:l})}async writePDF(){await this.#tM();let t=this.#tR(),[a,r,i]=await this.#tN(),[n,s]=await this.#tO(),o=[...`%PDF-${this.version}
%`.split("").map(t=>t.charCodeAt(0)),250,222,250,206];return pH({originalData:new Uint8Array(o),changes:n,xrefInfo:{startXRef:null,rootRef:this.rootRef,infoRef:this.infoRef,encryptRef:a,newRef:s,fileIds:i||[null,null],infoMap:t},useXrefStream:this.useObjectStreams,xref:{encrypt:r,encryptRef:a}})}}class pV{constructor(t){this._msgHandler=t,this._contentLength=null,this._fullRequestReader=null,this._rangeRequestReaders=[]}getFullReader(){return C(!this._fullRequestReader,"PDFWorkerStream.getFullReader can only be called once."),this._fullRequestReader=new pX(this._msgHandler),this._fullRequestReader}getRangeReader(t,a){let r=new pK(t,a,this._msgHandler);return this._rangeRequestReaders.push(r),r}cancelAllRequests(t){for(let a of(this._fullRequestReader?.cancel(t),this._rangeRequestReaders.slice(0)))a.cancel(t)}}class pX{constructor(t){this._msgHandler=t,this.onProgress=null,this._contentLength=null,this._isRangeSupported=!1,this._isStreamingSupported=!1;let a=this._msgHandler.sendWithStream("GetReader");this._reader=a.getReader(),this._headersReady=this._msgHandler.sendWithPromise("ReaderHeadersReady").then(t=>{this._isStreamingSupported=t.isStreamingSupported,this._isRangeSupported=t.isRangeSupported,this._contentLength=t.contentLength})}get headersReady(){return this._headersReady}get contentLength(){return this._contentLength}get isStreamingSupported(){return this._isStreamingSupported}get isRangeSupported(){return this._isRangeSupported}async read(){let{value:t,done:a}=await this._reader.read();return a?{value:void 0,done:!0}:{value:t.buffer,done:!1}}cancel(t){this._reader.cancel(t)}}class pK{constructor(t,a,r){this._msgHandler=r,this.onProgress=null;let i=this._msgHandler.sendWithStream("GetRangeReader",{begin:t,end:a});this._reader=i.getReader()}get isStreamingSupported(){return!1}async read(){let{value:t,done:a}=await this._reader.read();return a?{value:void 0,done:!0}:{value:t.buffer,done:!1}}cancel(t){this._reader.cancel(t)}}class pY{constructor(t){this.name=t,this.terminated=!1,this._capability=Promise.withResolvers()}get finished(){return this._capability.promise}finish(){this._capability.resolve()}terminate(){this.terminated=!0}ensureNotTerminated(){if(this.terminated)throw Error("Worker task was terminated")}}class pJ{static{"undefined"==typeof window&&!u&&"undefined"!=typeof self&&"function"==typeof self.postMessage&&"onmessage"in self&&this.initializeFromPort(self)}static setup(t,a){let r=!1;t.on("test",a=>{r||(r=!0,t.send("test",a instanceof Uint8Array))}),t.on("configure",t=>{var a;Number.isInteger(a=t.verbosity)&&(x=a)}),t.on("GetDocRequest",t=>this.createDocumentHandler(t,a))}static createDocumentHandler(t,a){let r,i=!1,n=null,s=new Set,o=x,{docId:l,apiVersion:c}=t,h="5.4.449";if(c!==h)throw Error(`The API version "${c}" does not match the Worker version "${h}".`);let u=(t,a)=>`The \`${t}.prototype\` contains unexpected enumerable property "${a}", thus breaking e.g. \`for...in\` iteration of ${t}s.`;for(let t in{})throw Error(u("Object",t));for(let t in[])throw Error(u("Array",t));let f=l+"_worker",d=new pD(f,l,a);function g(){if(i)throw Error("Worker was terminated")}function p(t){s.add(t)}function m(t){t.finish(),s.delete(t)}async function b(t){await r.ensureDoc("checkHeader"),await r.ensureDoc("parseStartXRef"),await r.ensureDoc("parse",[t]),await r.ensureDoc("checkFirstPage",[t]),await r.ensureDoc("checkLastPage",[t]);let a=await r.ensureDoc("isPureXfa");if(a){let t=new pY("loadXfaResources");p(t),await r.ensureDoc("loadXfaResources",[d,t]),m(t)}let[i,n]=await Promise.all([r.ensureDoc("numPages"),r.ensureDoc("fingerprints")]);return{numPages:i,fingerprints:n,htmlForXfa:a?await r.ensureDoc("htmlForXfa"):null}}return d.on("GetPage",function(t){return r.getPage(t.pageIndex).then(function(t){return Promise.all([r.ensure(t,"rotate"),r.ensure(t,"ref"),r.ensure(t,"userUnit"),r.ensure(t,"view")]).then(function([t,a,r,i]){return{rotate:t,ref:a,refStr:a?.toString()??null,userUnit:r,view:i}})})}),d.on("GetPageIndex",function(t){let a=es.get(t.num,t.gen);return r.ensureCatalog("getPageIndex",[a])}),d.on("GetDestinations",function(t){return r.ensureCatalog("destinations")}),d.on("GetDestination",function(t){return r.ensureCatalog("getDestination",[t.id])}),d.on("GetPageLabels",function(t){return r.ensureCatalog("pageLabels")}),d.on("GetPageLayout",function(t){return r.ensureCatalog("pageLayout")}),d.on("GetPageMode",function(t){return r.ensureCatalog("pageMode")}),d.on("GetViewerPreferences",function(t){return r.ensureCatalog("viewerPreferences")}),d.on("GetOpenAction",function(t){return r.ensureCatalog("openAction")}),d.on("GetAttachments",function(t){return r.ensureCatalog("attachments")}),d.on("GetDocJSActions",function(t){return r.ensureCatalog("jsActions")}),d.on("GetPageJSActions",function({pageIndex:t}){return r.getPage(t).then(t=>r.ensure(t,"jsActions"))}),d.on("GetAnnotationsByType",async function({types:t,pageIndexesToSkip:a}){let[i,n]=await Promise.all([r.ensureDoc("numPages"),r.ensureDoc("annotationGlobals")]);if(!n)return null;let s=[],o=[],l=null;try{for(let c=0;c<i;c++)a?.has(c)||(l||(l=new pY("GetAnnotationsByType"),p(l)),s.push(r.getPage(c).then(async a=>a&&a.collectAnnotationsByType(d,l,t,o,n)||[])));return await Promise.all(s),(await Promise.all(o)).filter(t=>!!t)}finally{l&&m(l)}}),d.on("GetOutline",function(t){return r.ensureCatalog("documentOutline")}),d.on("GetOptionalContentConfig",function(t){return r.ensureCatalog("optionalContentConfig")}),d.on("GetPermissions",function(t){return r.ensureCatalog("permissions")}),d.on("GetMetadata",function(t){return Promise.all([r.ensureDoc("documentInfo"),r.ensureCatalog("metadata"),r.ensureCatalog("hasStructTree")])}),d.on("GetMarkInfo",function(t){return r.ensureCatalog("markInfo")}),d.on("GetData",function(t){return r.requestLoadedStream().then(t=>t.bytes)}),d.on("GetAnnotations",function({pageIndex:t,intent:a}){return r.getPage(t).then(function(r){let i=new pY(`GetAnnotations: page ${t}`);return p(i),r.getAnnotationsData(d,i,a).then(t=>(m(i),t),t=>{throw m(i),t})})}),d.on("GetFieldObjects",function(t){return r.ensureDoc("fieldObjects").then(t=>t?.allFields||null)}),d.on("HasJSActions",function(t){return r.ensureDoc("hasJSActions")}),d.on("GetCalculationOrderIds",function(t){return r.ensureDoc("calculationOrderIds")}),d.on("ExtractPages",async function({pageInfos:t}){if(!t)return v("extractPages: nothing to extract."),null;Array.isArray(t)||(t=[t]);let a=0;for(let i of t)if(null===i.document)i.document=r.pdfDocument;else if(ArrayBuffer.isView(i.document)){let t=new pM({source:i.document,docId:`${l}_extractPages_${a++}`,handler:d,password:i.password??null,evaluatorOptions:Object.assign({},r.evaluatorOptions)}),n=!1,s=!0;for(;;)try{await t.requestLoadedStream(),await t.ensureDoc("checkHeader"),await t.ensureDoc("parseStartXRef"),await t.ensureDoc("parse",[n]);break}catch(a){if(a instanceof eA){if(!1===n){n=!0;continue}s=!1,v("extractPages: XRefParseException.")}else if(a instanceof B){let r=new pY(`PasswordException: response ${a.code}`);p(r);try{let{password:r}=await d.sendWithPromise("PasswordRequest",a);t.updatePassword(r)}catch{s=!1,v("extractPages: invalid password.")}finally{m(r)}}else s=!1,v("extractPages: invalid document.");if(!s)break}s||(i.document=null),await t.ensureDoc("isPureXfa")?(i.document=null,v("extractPages does not support pure XFA documents.")):i.document=t.pdfDocument}else v("extractPages: invalid document.");try{let a=new pW;return await a.extractPages(t)}catch(t){return console.error(t),null}}),d.on("SaveDocument",async function({isPureXfa:t,numPages:a,annotationStorage:i,filename:n}){let s;let o=[r.requestLoadedStream(),r.ensureCatalog("acroForm"),r.ensureCatalog("acroFormRef"),r.ensureDoc("startXRef"),r.ensureDoc("xref"),r.ensureCatalog("structTreeRoot")],l=new el,c=[],h=t?null:eX(i),[u,f,g,b,y,w]=await Promise.all(o),x=y.trailer.getRaw("Root")||null;if(h){w?await w.canUpdateStructTree({pdfManager:r,newAnnotationsByPage:h})&&(s=w):await s_.canCreateStructureTree({catalogRef:x,pdfManager:r,newAnnotationsByPage:h})&&(s=null);let t=gR.generateImages(i.values(),y,r.evaluatorOptions.isOffscreenCanvasSupported),a=void 0===s?c:[];for(let[i,n]of h)a.push(r.getPage(i).then(a=>{let r=new pY(`Save (editor): page ${i}`);return p(r),a.saveNewAnnotations(d,r,n,t,l).finally(function(){m(r)})}));null===s?c.push(Promise.all(a).then(async()=>{await s_.createStructureTree({newAnnotationsByPage:h,xref:y,catalogRef:x,pdfManager:r,changes:l})})):s&&c.push(Promise.all(a).then(async()=>{await s.updateStructureTree({newAnnotationsByPage:h,pdfManager:r,changes:l})}))}if(t)c.push(r.ensureDoc("serializeXfaData",[i]));else for(let t=0;t<a;t++)c.push(r.getPage(t).then(function(a){let r=new pY(`Save: page ${t}`);return p(r),a.save(d,r,i,l).finally(function(){m(r)})}));let k=await Promise.all(c),A=null;if(t){if(!(A=k[0]))return u.bytes}else if(0===l.size)return u.bytes;let C=g&&f instanceof en&&l.values().some(t=>t.needAppearances),S=f instanceof en&&f.get("XFA")||null,I=null,T=!1;if(Array.isArray(S)){for(let t=0,a=S.length;t<a;t+=2)"datasets"===S[t]&&(I=S[t+1],T=!0);null===I&&(I=y.getNewTemporaryRef())}else S&&v("Unsupported XFA type.");let B=Object.create(null);if(y.trailer){let t=new Map,a=y.trailer.get("Info")||null;if(a instanceof en)for(let[r,i]of a)"string"==typeof i&&t.set(r,H(i));B={rootRef:x,encryptRef:y.trailer.getRaw("Encrypt")||null,newRef:y.getNewTemporaryRef(),infoRef:y.trailer.getRaw("Info")||null,infoMap:t,fileIds:y.trailer.get("ID")||null,startXRef:b,filename:n}}return pH({originalData:u.bytes,xrefInfo:B,changes:l,xref:y,hasXfa:!!S,xfaDatasetsRef:I,hasXfaDatasetsEntry:T,needAppearances:C,acroFormRef:g,acroForm:f,xfaData:A,useXrefStream:eu(y.topDict,"XRef")}).finally(()=>{y.resetNewTemporaryRef()})}),d.on("GetOperatorList",function(t,a){let i=t.pageIndex;r.getPage(i).then(function(r){let n=new pY(`GetOperatorList: page ${i}`);p(n);let s=o>=5?Date.now():0;r.getOperatorList({handler:d,sink:a,task:n,intent:t.intent,cacheKey:t.cacheKey,annotationStorage:t.annotationStorage,modifiedIds:t.modifiedIds}).then(function(t){m(n),s&&k(`page=${i+1} - getOperatorList: time=${Date.now()-s}ms, len=${t.length}`),a.close()},function(t){m(n),n.terminated||a.error(t)})})}),d.on("GetTextContent",function(t,a){let{pageIndex:i,includeMarkedContent:n,disableNormalization:s}=t;r.getPage(i).then(function(t){let r=new pY("GetTextContent: page "+i);p(r);let l=o>=5?Date.now():0;t.extractTextContent({handler:d,task:r,sink:a,includeMarkedContent:n,disableNormalization:s}).then(function(){m(r),l&&k(`page=${i+1} - getTextContent: time=`+(Date.now()-l)+"ms"),a.close()},function(t){m(r),r.terminated||a.error(t)})})}),d.on("GetStructTree",function(t){return r.getPage(t.pageIndex).then(t=>r.ensure(t,"getStructTree"))}),d.on("FontFallback",function(t){return r.fontFallback(t.id,d)}),d.on("Cleanup",function(t){return r.cleanup(!0)}),d.on("Terminate",function(t){i=!0;let a=[];if(r){r.terminate(new O("Worker was terminated."));let t=r.cleanup();a.push(t),r=null}else sF();for(let t of(n?.(new O("Worker was terminated.")),s))a.push(t.finished),t.terminate();return Promise.all(a).then(function(){d.destroy(),d=null})}),d.on("Ready",function(a){(function(t){function a(t){g(),d.send("GetDoc",{pdfInfo:t})}function s(t){if(g(),t instanceof B){let a=new pY(`PasswordException: response ${t.code}`);p(a),d.sendWithPromise("PasswordRequest",t).then(function({password:t}){m(a),r.updatePassword(t),o()}).catch(function(){m(a),d.send("DocException",t)})}else d.send("DocException",pO(t))}function o(){g(),b(!1).then(a,function(t){g(),t instanceof eA?r.requestLoadedStream().then(function(){g(),b(!0).then(a,s)}):s(t)})}g(),(async function({data:t,password:a,disableAutoFetch:r,rangeChunkSize:i,length:s,docBaseUrl:o,enableXfa:c,evaluatorOptions:h}){let u={source:null,disableAutoFetch:r,docBaseUrl:o,docId:l,enableXfa:c,evaluatorOptions:h,handler:d,length:s,password:a,rangeChunkSize:i};if(t)return u.source=t,new pM(u);let f=new pV(d),p=f.getFullReader(),m=Promise.withResolvers(),b,y=[],w=0;return p.headersReady.then(function(){if(p.isRangeSupported){for(let t of(u.source=f,u.length=p.contentLength,u.disableAutoFetch||=p.isStreamingSupported,b=new pR(u),y))b.sendProgressiveData(t);y=[],m.resolve(b),n=null}}).catch(function(t){m.reject(t),n=null}),new Promise(function(t,a){let r=function({value:t,done:i}){try{if(g(),i){if(!b){let t=eC(y);y=[],s&&t.length!==s&&v("reported HTTP length is different from actual"),u.source=t,b=new pM(u),m.resolve(b)}n=null;return}w+=t.byteLength,p.isStreamingSupported||d.send("DocProgress",{loaded:w,total:Math.max(w,p.contentLength||0)}),b?b.sendProgressiveData(t):y.push(t),p.read().then(r,a)}catch(t){a(t)}};p.read().then(r,a)}).catch(function(t){m.reject(t),n=null}),n=t=>{f.cancelAllRequests(t)},m.promise})(t).then(function(t){if(i)throw t.terminate(new O("Worker was terminated.")),Error("Worker was terminated");(r=t).requestLoadedStream(!0).then(t=>{d.send("DataLoaded",{length:t.bytes.byteLength})})}).then(o,s)})(t),t=null}),f}static initializeFromPort(t){let a=new pD("worker","main",t);this.setup(a,t),a.send("ready",null)}}globalThis.pdfjsWorker={WorkerMessageHandler:pJ}},{"819e2b127f8973ba":"7bs1J","@parcel/transformer-js/src/esmodule-helpers.js":"cHUbl"}],"7bs1J":[function(t,a,r){var i,n,s,o,l=Object.create,c=Object.defineProperty,h=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,f=Object.getPrototypeOf,d=Object.prototype.hasOwnProperty,g=(t,a,r,i)=>{if(a&&"object"==typeof a||"function"==typeof a)for(let n of u(a))d.call(t,n)||n===r||c(t,n,{get:()=>a[n],enumerable:!(i=h(a,n))||i.enumerable});return t},p=(t,a,r)=>(r=null!=t?l(f(t)):{},g(!a&&t&&t.__esModule?r:c(r,"default",{value:t,enumerable:!0}),t)),m=(i=(t,a)=>{var r,i,n=a.exports={};function s(){throw Error("setTimeout has not been defined")}function o(){throw Error("clearTimeout has not been defined")}function l(t){if(r===setTimeout)return setTimeout(t,0);if((r===s||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(a){try{return r.call(null,t,0)}catch(a){return r.call(this,t,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:s}catch(t){r=s}try{i="function"==typeof clearTimeout?clearTimeout:o}catch(t){i=o}}();var c,h=[],u=!1,f=-1;function d(){u&&c&&(u=!1,c.length?h=c.concat(h):f=-1,h.length&&g())}function g(){if(!u){var t=l(d);u=!0;for(var a=h.length;a;){for(c=h,h=[];++f<a;)c&&c[f].run();f=-1,a=h.length}c=null,u=!1,function(t){if(i===clearTimeout)return clearTimeout(t);if((i===o||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(t);try{i(t)}catch(a){try{return i.call(null,t)}catch(a){return i.call(this,t)}}}(t)}}function p(t,a){this.fun=t,this.array=a}function m(){}n.nextTick=function(t){var a=Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)a[r-1]=arguments[r];h.push(new p(t,a)),1!==h.length||u||l(g)},p.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=m,n.addListener=m,n.once=m,n.off=m,n.removeListener=m,n.removeAllListeners=m,n.emit=m,n.prependListener=m,n.prependOnceListener=m,n.listeners=function(t){return[]},n.binding=function(t){throw Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(t){throw Error("process.chdir is not supported")},n.umask=function(){return 0}},()=>(n||i((n={exports:{}}).exports,n),n.exports)),b={};((t,a)=>{for(var r in a)c(t,r,{get:a[r],enumerable:!0})})(b,{default:()=>w}),a.exports=g(c({},"__esModule",{value:!0}),b);var y=p(m());s=p(m()),o=a.exports,g(b,s,"default"),o&&g(o,s,"default");var w=y.default},{}],cHUbl:[function(t,a,r){r.interopDefault=function(t){return t&&t.__esModule?t:{default:t}},r.defineInteropFlag=function(t){Object.defineProperty(t,"__esModule",{value:!0})},r.exportAll=function(t,a){return Object.keys(t).forEach(function(r){"default"===r||"__esModule"===r||a.hasOwnProperty(r)||Object.defineProperty(a,r,{enumerable:!0,get:function(){return t[r]}})}),a},r.export=function(t,a,r){Object.defineProperty(t,a,{enumerable:!0,get:r})}},{}]},["hsvzv"],"hsvzv","parcelRequiree485"),globalThis.define=a;