Files
fad_oa/ruoyi-ui/public/file-viewer/assets/PdfView-E1iujAnQ.js

558 lines
1.8 MiB
Raw Blame History

This file contains invisible Unicode characters

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

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

import{E as e,h as t,l as n,r,u as i}from"./package-Bop5TfAT.js";import{D as a,J as o,X as s,Y as c,_ as l,b as u,f as d,g as f,h as p,i as m,o as h,r as g,s as _,t as v,y}from"./runtime-core.esm-bundler-DO-WTVbd.js";import{n as b,r as x}from"./printLayout-D2pf0W9y.js";import{t as S}from"./worker-ref-BbTnHTC-.js";var C={9306(e,t,n){var r=n(4901),i=n(6823),a=TypeError;e.exports=function(e){if(r(e))return e;throw new a(i(e)+` is not a function`)}},3506(e,t,n){var r=n(3925),i=String,a=TypeError;e.exports=function(e){if(r(e))return e;throw new a(`Can't set `+i(e)+` as a prototype`)}},7080(e,t,n){var r=n(4402).has;e.exports=function(e){return r(e),e}},3463(e){var t=TypeError;e.exports=function(e){if(typeof e==`string`)return e;throw new t(`Argument is not a string`)}},4328(e,t,n){var r=n(4995),i=new r.WeakMap,a=r.set,o=r.remove;e.exports=function(e){return a(i,e,1),o(i,e),e}},6557(e,t,n){var r=n(4995).has;e.exports=function(e){return r(e),e}},6469(e,t,n){var r=n(8227),i=n(2360),a=n(4913).f,o=r(`unscopables`),s=Array.prototype;s[o]===void 0&&a(s,o,{configurable:!0,value:i(null)}),e.exports=function(e){s[o][e]=!0}},679(e,t,n){var r=n(1625),i=TypeError;e.exports=function(e,t){if(r(t,e))return e;throw new i(`Incorrect invocation`)}},3972(e,t,n){var r=n(34),i=String,a=TypeError;e.exports=function(e){if(e===void 0||r(e))return e;throw new a(i(e)+` is not an object or undefined`)}},8551(e,t,n){var r=n(34),i=String,a=TypeError;e.exports=function(e){if(r(e))return e;throw new a(i(e)+` is not an object`)}},4154(e,t,n){var r=n(6955),i=TypeError;e.exports=function(e){if(r(e)===`Uint8Array`)return e;throw new i(`Argument is not an Uint8Array`)}},7811(e){e.exports=typeof ArrayBuffer<`u`&&typeof DataView<`u`},7394(e,t,n){var r=n(4576),i=n(6706),a=n(2195),o=r.ArrayBuffer,s=r.TypeError;e.exports=o&&i(o.prototype,`byteLength`,`get`)||function(e){if(a(e)!==`ArrayBuffer`)throw new s(`ArrayBuffer expected`);return e.byteLength}},3238(e,t,n){var r=n(4576),i=n(7811),a=n(7394),o=r.DataView;e.exports=function(e){if(!i||a(e)!==0)return!1;try{return new o(e),!1}catch{return!0}}},5169(e,t,n){var r=n(3238),i=TypeError;e.exports=function(e){if(r(e))throw new i(`ArrayBuffer is detached`);return e}},5636(e,t,n){var r=n(4576),i=n(9504),a=n(6706),o=n(7696),s=n(5169),c=n(7394),l=n(4483),u=n(1548),d=r.structuredClone,f=r.ArrayBuffer,p=r.DataView,m=Math.max,h=Math.min,g=f.prototype,_=p.prototype,v=i(g.slice),y=a(g,`resizable`,`get`),b=a(g,`maxByteLength`,`get`),x=i(_.getInt8),S=i(_.setInt8);e.exports=(u||l)&&function(e,t,n){var r=c(e),i=t===void 0?r:o(t),a=!y||!y(e),g;if(s(e),u&&(e=d(e,{transfer:[e]}),r===i&&(n||a)))return e;if(r>=i&&(!n||a))g=v(e,0,i);else{g=new f(i,n&&!a&&b?{maxByteLength:m(i,b(e))}:void 0);for(var _=new p(e),C=new p(g),w=h(i,r),T=0;T<w;T++)S(C,T,x(_,T))}return u||l(e),g}},4644(e,t,n){var r=n(7811),i=n(3724),a=n(4576),o=n(4901),s=n(34),c=n(9297),l=n(6955),u=n(6823),d=n(6699),f=n(6840),p=n(2106),m=n(1625),h=n(2787),g=n(2967),_=n(8227),v=n(3392),y=n(1181),b=y.enforce,x=y.get,S=a.Int8Array,C=S&&S.prototype,w=a.Uint8ClampedArray,T=w&&w.prototype,E=S&&h(S),D=C&&h(C),O=Object.prototype,k=a.TypeError,A=_(`toStringTag`),j=v(`TYPED_ARRAY_TAG`),M=`TypedArrayConstructor`,N=r&&!!g&&l(a.opera)!==`Opera`,P=!1,F,I,L,R={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},z={BigInt64Array:8,BigUint64Array:8},ee=function(e){if(!s(e))return!1;var t=l(e);return t===`DataView`||c(R,t)||c(z,t)},B=function(e){var t=h(e);if(s(t)){var n=x(t);return n&&c(n,M)?n[M]:B(t)}},te=function(e){if(!s(e))return!1;var t=l(e);return c(R,t)||c(z,t)},ne=function(e){if(te(e))return e;throw new k(`Target is not a typed array`)},V=function(e){if(o(e)&&(!g||m(E,e)))return e;throw new k(u(e)+` is not a typed array constructor`)},re=function(e,t,n,r){if(i){if(n)for(var o in R){var s=a[o];if(s&&c(s.prototype,e))try{delete s.prototype[e]}catch{try{s.prototype[e]=t}catch{}}}(!D[e]||n)&&f(D,e,n?t:N&&C[e]||t,r)}},ie=function(e,t,n){var r,o;if(i){if(g){if(n){for(r in R)if(o=a[r],o&&c(o,e))try{delete o[e]}catch{}}if(!E[e]||n)try{return f(E,e,n?t:N&&E[e]||t)}catch{}else return}for(r in R)o=a[r],o&&(!o[e]||n)&&f(o,e,t)}};for(F in R)I=a[F],L=I&&I.prototype,L?b(L)[M]=I:N=!1;for(F in z)I=a[F],L=I&&I.prototype,L&&(b(L)[M]=I);if((!N||!o(E)||E===Function.prototype)&&(E=function(){throw new k(`Incorrect invocation`)},N))for(F in R)a[F]&&g(a[F],E);if((!N||!D||D===O)&&(D=E.prototype,N))for(F in R)a[F]&&g(a[F].prototype,D);if(N&&h(T)!==D&&g(T,D),i&&!c(D,A))for(F in P=!0,p(D,A,{configurable:!0,get:function(){return s(this)?this[j]:void 0}}),R)a[F]&&d(a[F].prototype,j,F);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:N,TYPED_ARRAY_TAG:P&&j,aTypedArray:ne,aTypedArrayConstructor:V,exportTypedArrayMethod:re,exportTypedArrayStaticMethod:ie,getTypedArrayConstructor:B,isView:ee,isTypedArray:te,TypedArray:E,TypedArrayPrototype:D}},5370(e,t,n){var r=n(6198);e.exports=function(e,t,n){for(var i=0,a=arguments.length>2?n:r(t),o=new e(a);a>i;)o[i]=t[i++];return o}},9617(e,t,n){var r=n(5397),i=n(5610),a=n(6198),o=function(e){return function(t,n,o){var s=r(t),c=a(s);if(c===0)return!e&&-1;var l=i(o,c),u;if(e&&n!==n){for(;c>l;)if(u=s[l++],u!==u)return!0}else for(;c>l;l++)if((e||l in s)&&s[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},4527(e,t,n){var r=n(3724),i=n(4376),a=TypeError,o=Object.getOwnPropertyDescriptor;e.exports=r&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}()?function(e,t){if(i(e)&&!o(e,`length`).writable)throw new a(`Cannot set read only .length`);return e.length=t}:function(e,t){return e.length=t}},7680(e,t,n){e.exports=n(9504)([].slice)},2804(e){var t=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789`,n=t+`+/`,r=t+`-_`,i=function(e){for(var t={},n=0;n<64;n++)t[e.charAt(n)]=n;return t};e.exports={i2c:n,c2i:i(n),i2cUrl:r,c2iUrl:i(r)}},6319(e,t,n){var r=n(8551),i=n(9539);e.exports=function(e,t,n,a){try{return a?t(r(n)[0],n[1]):t(n)}catch(t){i(e,`throw`,t)}}},2195(e,t,n){var r=n(9504),i=r({}.toString),a=r(``.slice);e.exports=function(e){return a(i(e),8,-1)}},6955(e,t,n){var r=n(2140),i=n(4901),a=n(2195),o=n(8227)(`toStringTag`),s=Object,c=a(function(){return arguments}())===`Arguments`,l=function(e,t){try{return e[t]}catch{}};e.exports=r?a:function(e){var t,n,r;return e===void 0?`Undefined`:e===null?`Null`:typeof(n=l(t=s(e),o))==`string`?n:c?a(t):(r=a(t))===`Object`&&i(t.callee)?`Arguments`:r}},7740(e,t,n){var r=n(9297),i=n(5031),a=n(7347),o=n(4913);e.exports=function(e,t,n){for(var s=i(t),c=o.f,l=a.f,u=0;u<s.length;u++){var d=s[u];!r(e,d)&&!(n&&r(n,d))&&c(e,d,l(t,d))}}},2211(e,t,n){e.exports=!n(9039)(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},2529(e){e.exports=function(e,t){return{value:e,done:t}}},6699(e,t,n){var r=n(3724),i=n(4913),a=n(6980);e.exports=r?function(e,t,n){return i.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},6980(e){e.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}},4659(e,t,n){var r=n(3724),i=n(4913),a=n(6980);e.exports=function(e,t,n){r?i.f(e,t,a(0,n)):e[t]=n}},2106(e,t,n){var r=n(283),i=n(4913);e.exports=function(e,t,n){return n.get&&r(n.get,t,{getter:!0}),n.set&&r(n.set,t,{setter:!0}),i.f(e,t,n)}},6840(e,t,n){var r=n(4901),i=n(4913),a=n(283),o=n(9433);e.exports=function(e,t,n,s){s||={};var c=s.enumerable,l=s.name===void 0?t:s.name;if(r(n)&&a(n,l,s),s.global)c?e[t]=n:o(t,n);else{try{s.unsafe?e[t]&&(c=!0):delete e[t]}catch{}c?e[t]=n:i.f(e,t,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},6279(e,t,n){var r=n(6840);e.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}},9433(e,t,n){var r=n(4576),i=Object.defineProperty;e.exports=function(e,t){try{i(r,e,{value:t,configurable:!0,writable:!0})}catch{r[e]=t}return t}},3724(e,t,n){e.exports=!n(9039)(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})},4483(e,t,n){var r=n(4576),i=n(9429),a=n(1548),o=r.structuredClone,s=r.ArrayBuffer,c=r.MessageChannel,l=!1,u,d,f,p;if(a)l=function(e){o(e,{transfer:[e]})};else if(s)try{c||(u=i(`worker_threads`),u&&(c=u.MessageChannel)),c&&(d=new c,f=new s(2),p=function(e){d.port1.postMessage(null,[e])},f.byteLength===2&&(p(f),f.byteLength===0&&(l=p)))}catch{}e.exports=l},4055(e,t,n){var r=n(4576),i=n(34),a=r.document,o=i(a)&&i(a.createElement);e.exports=function(e){return o?a.createElement(e):{}}},6837(e){var t=TypeError,n=9007199254740991;e.exports=function(e){if(e>n)throw new t(`Maximum allowed index exceeded`);return e}},5002(e){e.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}}},8727(e){e.exports=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`]},6193(e,t,n){e.exports=n(4215)===`NODE`},2839(e,t,n){var r=n(4576).navigator,i=r&&r.userAgent;e.exports=i?String(i):``},9519(e,t,n){var r=n(4576),i=n(2839),a=r.process,o=r.Deno,s=a&&a.versions||o&&o.version,c=s&&s.v8,l,u;c&&(l=c.split(`.`),u=l[0]>0&&l[0]<4?1:+(l[0]+l[1])),!u&&i&&(l=i.match(/Edge\/(\d+)/),(!l||l[1]>=74)&&(l=i.match(/Chrome\/(\d+)/),l&&(u=+l[1]))),e.exports=u},4215(e,t,n){var r=n(4576),i=n(2839),a=n(2195),o=function(e){return i.slice(0,e.length)===e};e.exports=(function(){return o(`Bun/`)?`BUN`:o(`Cloudflare-Workers`)?`CLOUDFLARE`:o(`Deno/`)?`DENO`:o(`Node.js/`)?`NODE`:r.Bun&&typeof Bun.version==`string`?`BUN`:r.Deno&&typeof Deno.version==`object`?`DENO`:a(r.process)===`process`?`NODE`:r.window&&r.document?`BROWSER`:`REST`})()},8574(e,t,n){var r=n(9504),i=Error,a=r(``.replace),o=(function(e){return String(new i(e).stack)})(`zxcasd`),s=/\n\s*at [^:]*:[^\n]*/,c=s.test(o);e.exports=function(e,t){if(c&&typeof e==`string`&&!i.prepareStackTrace)for(;t--;)e=a(e,s,``);return e}},6518(e,t,n){var r=n(4576),i=n(7347).f,a=n(6699),o=n(6840),s=n(9433),c=n(7740),l=n(2796);e.exports=function(e,t){var n=e.target,u=e.global,d=e.stat,f,p=u?r:d?r[n]||s(n,{}):r[n]&&r[n].prototype,m,h,g,_;if(p)for(m in t){if(g=t[m],e.dontCallGetSet?(_=i(p,m),h=_&&_.value):h=p[m],f=l(u?m:n+(d?`.`:`#`)+m,e.forced),!f&&h!==void 0){if(typeof g==typeof h)continue;c(g,h)}(e.sham||h&&h.sham)&&a(g,`sham`,!0),o(p,m,g,e)}}},9039(e){e.exports=function(e){try{return!!e()}catch{return!0}}},8745(e,t,n){var r=n(616),i=Function.prototype,a=i.apply,o=i.call;e.exports=typeof Reflect==`object`&&Reflect.apply||(r?o.bind(a):function(){return o.apply(a,arguments)})},6080(e,t,n){var r=n(7476),i=n(9306),a=n(616),o=r(r.bind);e.exports=function(e,t){return i(e),t===void 0?e:a?o(e,t):function(){return e.apply(t,arguments)}}},616(e,t,n){e.exports=!n(9039)(function(){var e=function(){}.bind();return typeof e!=`function`||e.hasOwnProperty(`prototype`)})},9565(e,t,n){var r=n(616),i=Function.prototype.call;e.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},350(e,t,n){var r=n(3724),i=n(9297),a=Function.prototype,o=r&&Object.getOwnPropertyDescriptor,s=i(a,`name`);e.exports={EXISTS:s,PROPER:s&&function(){}.name===`something`,CONFIGURABLE:s&&(!r||r&&o(a,`name`).configurable)}},6706(e,t,n){var r=n(9504),i=n(9306);e.exports=function(e,t,n){try{return r(i(Object.getOwnPropertyDescriptor(e,t)[n]))}catch{}}},7476(e,t,n){var r=n(2195),i=n(9504);e.exports=function(e){if(r(e)===`Function`)return i(e)}},9504(e,t,n){var r=n(616),i=Function.prototype,a=i.call,o=r&&i.bind.bind(a,a);e.exports=r?o:function(e){return function(){return a.apply(e,arguments)}}},944(e){var t=TypeError;e.exports=function(e){var n=e&&e.alphabet;if(n===void 0||n===`base64`||n===`base64url`)return n||`base64`;throw new t("Incorrect `alphabet` option")}},9429(e,t,n){var r=n(4576),i=n(6193);e.exports=function(e){if(i){try{return r.process.getBuiltinModule(e)}catch{}try{return Function(`return require("`+e+`")`)()}catch{}}}},7751(e,t,n){var r=n(4576),i=n(4901),a=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?a(r[e]):r[e]&&r[e][t]}},1767(e){e.exports=function(e){return{iterator:e,next:e.next,done:!1}}},8646(e,t,n){var r=n(9565),i=n(8551),a=n(1767),o=n(851);e.exports=function(e,t){(!t||typeof e!=`string`)&&i(e);var n=o(e);return a(i(n===void 0?e:r(n,e)))}},851(e,t,n){var r=n(6955),i=n(5966),a=n(4117),o=n(6269),s=n(8227)(`iterator`);e.exports=function(e){if(!a(e))return i(e,s)||i(e,`@@iterator`)||o[r(e)]}},81(e,t,n){var r=n(9565),i=n(9306),a=n(8551),o=n(6823),s=n(851),c=TypeError;e.exports=function(e,t){var n=arguments.length<2?s(e):t;if(i(n))return a(r(n,e));throw new c(o(e)+` is not iterable`)}},5966(e,t,n){var r=n(9306),i=n(4117);e.exports=function(e,t){var n=e[t];return i(n)?void 0:r(n)}},3789(e,t,n){var r=n(9306),i=n(8551),a=n(9565),o=n(1291),s=n(1767),c=`Invalid size`,l=RangeError,u=TypeError,d=Math.max,f=function(e,t){this.set=e,this.size=d(t,0),this.has=r(e.has),this.keys=r(e.keys)};f.prototype={getIterator:function(){return s(i(a(this.keys,this.set)))},includes:function(e){return a(this.has,this.set,e)}},e.exports=function(e){i(e);var t=+e.size;if(t!==t)throw new u(c);var n=o(t);if(n<0)throw new l(c);return new f(e,n)}},4576(e){var t=function(e){return e&&e.Math===Math&&e};e.exports=t(typeof globalThis==`object`&&globalThis)||t(typeof window==`object`&&window)||t(typeof self==`object`&&self)||t(typeof global==`object`&&global)||t(typeof this==`object`&&this)||(function(){return this})()||Function(`return this`)()},9297(e,t,n){var r=n(9504),i=n(8981),a=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return a(i(e),t)}},421(e){e.exports={}},397(e,t,n){e.exports=n(7751)(`document`,`documentElement`)},5917(e,t,n){var r=n(3724),i=n(9039),a=n(4055);e.exports=!r&&!i(function(){return Object.defineProperty(a(`div`),"a",{get:function(){return 7}}).a!==7})},7055(e,t,n){var r=n(9504),i=n(9039),a=n(2195),o=Object,s=r(``.split);e.exports=i(function(){return!o(`z`).propertyIsEnumerable(0)})?function(e){return a(e)===`String`?s(e,``):o(e)}:o},3167(e,t,n){var r=n(4901),i=n(34),a=n(2967);e.exports=function(e,t,n){var o,s;return a&&r(o=t.constructor)&&o!==n&&i(s=o.prototype)&&s!==n.prototype&&a(e,s),e}},3706(e,t,n){var r=n(9504),i=n(4901),a=n(7629),o=r(Function.toString);i(a.inspectSource)||(a.inspectSource=function(e){return o(e)}),e.exports=a.inspectSource},1181(e,t,n){var r=n(8622),i=n(4576),a=n(34),o=n(6699),s=n(9297),c=n(7629),l=n(6119),u=n(421),d=`Object already initialized`,f=i.TypeError,p=i.WeakMap,m,h,g,_=function(e){return g(e)?h(e):m(e,{})},v=function(e){return function(t){var n;if(!a(t)||(n=h(t)).type!==e)throw new f(`Incompatible receiver, `+e+` required`);return n}};if(r||c.state){var y=c.state||=new p;y.get=y.get,y.has=y.has,y.set=y.set,m=function(e,t){if(y.has(e))throw new f(d);return t.facade=e,y.set(e,t),t},h=function(e){return y.get(e)||{}},g=function(e){return y.has(e)}}else{var b=l(`state`);u[b]=!0,m=function(e,t){if(s(e,b))throw new f(d);return t.facade=e,o(e,b,t),t},h=function(e){return s(e,b)?e[b]:{}},g=function(e){return s(e,b)}}e.exports={set:m,get:h,has:g,enforce:_,getterFor:v}},4209(e,t,n){var r=n(8227),i=n(6269),a=r(`iterator`),o=Array.prototype;e.exports=function(e){return e!==void 0&&(i.Array===e||o[a]===e)}},4376(e,t,n){var r=n(2195);e.exports=Array.isArray||function(e){return r(e)===`Array`}},1108(e,t,n){var r=n(6955);e.exports=function(e){var t=r(e);return t===`BigInt64Array`||t===`BigUint64Array`}},4901(e){var t=typeof document==`object`&&document.all;e.exports=t===void 0&&t!==void 0?function(e){return typeof e==`function`||e===t}:function(e){return typeof e==`function`}},2796(e,t,n){var r=n(9039),i=n(4901),a=/#|\.prototype\./,o=function(e,t){var n=c[s(e)];return n===u?!0:n===l?!1:i(t)?r(t):!!t},s=o.normalize=function(e){return String(e).replace(a,`.`).toLowerCase()},c=o.data={},l=o.NATIVE=`N`,u=o.POLYFILL=`P`;e.exports=o},4117(e){e.exports=function(e){return e==null}},34(e,t,n){var r=n(4901);e.exports=function(e){return typeof e==`object`?e!==null:r(e)}},3925(e,t,n){var r=n(34);e.exports=function(e){return r(e)||e===null}},6395(e){e.exports=!1},5810(e,t,n){var r=n(34),i=n(1181).get;e.exports=function(e){if(!r(e))return!1;var t=i(e);return!!t&&t.type===`RawJSON`}},757(e,t,n){var r=n(7751),i=n(4901),a=n(1625),o=n(7040),s=Object;e.exports=o?function(e){return typeof e==`symbol`}:function(e){var t=r(`Symbol`);return i(t)&&a(t.prototype,s(e))}},507(e,t,n){var r=n(9565);e.exports=function(e,t,n){for(var i=n?e:e.iterator,a=e.next,o,s;!(o=r(a,i)).done;)if(s=t(o.value),s!==void 0)return s}},2652(e,t,n){var r=n(6080),i=n(9565),a=n(8551),o=n(6823),s=n(4209),c=n(6198),l=n(1625),u=n(81),d=n(851),f=n(9539),p=TypeError,m=function(e,t){this.stopped=e,this.result=t},h=m.prototype;e.exports=function(e,t,n){var g=n&&n.that,_=!!(n&&n.AS_ENTRIES),v=!!(n&&n.IS_RECORD),y=!!(n&&n.IS_ITERATOR),b=!!(n&&n.INTERRUPTED),x=r(t,g),S,C,w,T,E,D,O,k=function(e){var t=S;return S=void 0,t&&f(t,`normal`),new m(!0,e)},A=function(e){return _?(a(e),b?x(e[0],e[1],k):x(e[0],e[1])):b?x(e,k):x(e)};if(v)S=e.iterator;else if(y)S=e;else{if(C=d(e),!C)throw new p(o(e)+` is not iterable`);if(s(C)){for(w=0,T=c(e);T>w;w++)if(E=A(e[w]),E&&l(h,E))return E;return new m(!1)}S=u(e,C)}for(D=v?e.next:S.next;!(O=i(D,S)).done;){var j=O.value;try{E=A(j)}catch(e){if(S)f(S,`throw`,e);else throw e}if(typeof E==`object`&&E&&l(h,E))return E}return new m(!1)}},1385(e,t,n){var r=n(9539);e.exports=function(e,t,n){for(var i=e.length-1;i>=0;i--)if(e[i]!==void 0)try{n=r(e[i].iterator,t,n)}catch(e){t=`throw`,n=e}if(t===`throw`)throw n;return n}},9539(e,t,n){var r=n(9565),i=n(8551),a=n(5966);e.exports=function(e,t,n){var o,s;i(e);try{if(o=a(e,`return`),!o){if(t===`throw`)throw n;return n}o=r(o,e)}catch(e){s=!0,o=e}if(t===`throw`)throw n;if(s)throw o;return i(o),n}},9462(e,t,n){var r=n(9565),i=n(2360),a=n(6699),o=n(6279),s=n(8227),c=n(1181),l=n(5966),u=n(7657).IteratorPrototype,d=n(2529),f=n(9539),p=n(1385),m=s(`toStringTag`),h=`IteratorHelper`,g=`WrapForValidIterator`,_=`normal`,v=`throw`,y=c.set,b=function(e){var t=c.getterFor(e?g:h);return o(i(u),{next:function(){var n=t(this);if(e)return n.nextHandler();if(n.done)return d(void 0,!0);try{var r=n.nextHandler();return n.returnHandlerResult?r:d(r,n.done)}catch(e){throw n.done=!0,e}},return:function(){var n=t(this),i=n.iterator,a=n.done;if(n.done=!0,e){var o=l(i,`return`);return o?r(o,i):d(void 0,!0)}if(a)return d(void 0,!0);if(n.inner)try{f(n.inner.iterator,_)}catch(e){return f(i,v,e)}if(n.openIters)try{p(n.openIters,_)}catch(e){if(i)return f(i,v,e);throw e}return i&&f(i,_),d(void 0,!0)}})},x=b(!0),S=b(!1);a(S,m,`Iterator Helper`),e.exports=function(e,t,n){var r=function(r,i){i?(i.iterator=r.iterator,i.next=r.next):i=r,i.type=t?g:h,i.returnHandlerResult=!!n,i.nextHandler=e,i.counter=0,i.done=!1,y(this,i)};return r.prototype=t?x:S,r}},684(e){e.exports=function(e,t){var n=typeof Iterator==`function`&&Iterator.prototype[e];if(n)try{n.call({next:null},t).next()}catch{return!0}}},4549(e,t,n){var r=n(4576);e.exports=function(e,t){var n=r.Iterator,i=n&&n.prototype,a=i&&i[e],o=!1;if(a)try{a.call({next:function(){return{done:!0}},return:function(){o=!0}},-1)}catch(e){e instanceof t||(o=!1)}if(!o)return a}},7657(e,t,n){var r=n(9039),i=n(4901),a=n(34),o=n(2360),s=n(2787),c=n(6840),l=n(8227),u=n(6395),d=l(`iterator`),f=!1,p,m,h;[].keys&&(h=[].keys(),`next`in h?(m=s(s(h)),m!==Object.prototype&&(p=m)):f=!0),!a(p)||r(function(){var e={};return p[d].call(e)!==e})?p={}:u&&(p=o(p)),i(p[d])||c(p,d,function(){return this}),e.exports={IteratorPrototype:p,BUGGY_SAFARI_ITERATORS:f}},6269(e){e.exports={}},6198(e,t,n){var r=n(8014);e.exports=function(e){return r(e.length)}},283(e,t,n){var r=n(9504),i=n(9039),a=n(4901),o=n(9297),s=n(3724),c=n(350).CONFIGURABLE,l=n(3706),u=n(1181),d=u.enforce,f=u.get,p=String,m=Object.defineProperty,h=r(``.slice),g=r(``.replace),_=r([].join),v=s&&!i(function(){return m(function(){},`length`,{value:8}).length!==8}),y=String(String).split(`String`),b=e.exports=function(e,t,n){h(p(t),0,7)===`Symbol(`&&(t=`[`+g(p(t),/^Symbol\(([^)]*)\).*$/,`$1`)+`]`),n&&n.getter&&(t=`get `+t),n&&n.setter&&(t=`set `+t),(!o(e,`name`)||c&&e.name!==t)&&(s?m(e,`name`,{value:t,configurable:!0}):e.name=t),v&&n&&o(n,`arity`)&&e.length!==n.arity&&m(e,`length`,{value:n.arity});try{n&&o(n,`constructor`)&&n.constructor?s&&m(e,`prototype`,{writable:!1}):e.prototype&&=void 0}catch{}var r=d(e);return o(r,`source`)||(r.source=_(y,typeof t==`string`?t:``)),e};Function.prototype.toString=b(function(){return a(this)&&f(this).source||l(this)},`toString`)},2248(e,t,n){var r=n(9504),i=Map.prototype;e.exports={Map,set:r(i.set),get:r(i.get),has:r(i.has),remove:r(i.delete),proto:i}},741(e){var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?n:t)(r)}},7819(e,t,n){e.exports=!n(9039)(function(){var e=`9007199254740993`,t=JSON.rawJSON(e);return!JSON.isRawJSON(t)||JSON.stringify(t)!==e})},6043(e,t,n){var r=n(9306),i=TypeError,a=function(e){var t,n;this.promise=new e(function(e,r){if(t!==void 0||n!==void 0)throw new i(`Bad Promise constructor`);t=e,n=r}),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new a(e)}},2603(e,t,n){var r=n(655);e.exports=function(e,t){return e===void 0?arguments.length<2?``:t:r(e)}},4149(e){var t=RangeError;e.exports=function(e){if(e===e)return e;throw new t(`NaN is not allowed`)}},2360(e,t,n){var r=n(8551),i=n(6801),a=n(8727),o=n(421),s=n(397),c=n(4055),l=n(6119),u=`>`,d=`<`,f=`prototype`,p=`script`,m=l(`IE_PROTO`),h=function(){},g=function(e){return d+p+u+e+d+`/`+p+u},_=function(e){e.write(g(``)),e.close();var t=e.parentWindow.Object;return e=null,t},v=function(){var e=c(`iframe`),t=`java`+p+`:`,n;return e.style.display=`none`,s.appendChild(e),e.src=String(t),n=e.contentWindow.document,n.open(),n.write(g(`document.F=Object`)),n.close(),n.F},y,b=function(){try{y=new ActiveXObject(`htmlfile`)}catch{}b=typeof document<`u`?document.domain&&y?_(y):v():_(y);for(var e=a.length;e--;)delete b[f][a[e]];return b()};o[m]=!0,e.exports=Object.create||function(e,t){var n;return e===null?n=b():(h[f]=r(e),n=new h,h[f]=null,n[m]=e),t===void 0?n:i.f(n,t)}},6801(e,t,n){var r=n(3724),i=n(8686),a=n(4913),o=n(8551),s=n(5397),c=n(1072);t.f=r&&!i?Object.defineProperties:function(e,t){o(e);for(var n=s(t),r=c(t),i=r.length,l=0,u;i>l;)a.f(e,u=r[l++],n[u]);return e}},4913(e,t,n){var r=n(3724),i=n(5917),a=n(8686),o=n(8551),s=n(6969),c=TypeError,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,d=`enumerable`,f=`configurable`,p=`writable`;t.f=r?a?function(e,t,n){if(o(e),t=s(t),o(n),typeof e==`function`&&t===`prototype`&&`value`in n&&p in n&&!n[p]){var r=u(e,t);r&&r[p]&&(e[t]=n.value,n={configurable:f in n?n[f]:r[f],enumerable:d in n?n[d]:r[d],writable:!1})}return l(e,t,n)}:l:function(e,t,n){if(o(e),t=s(t),o(n),i)try{return l(e,t,n)}catch{}if(`get`in n||`set`in n)throw new c(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},7347(e,t,n){var r=n(3724),i=n(9565),a=n(8773),o=n(6980),s=n(5397),c=n(6969),l=n(9297),u=n(5917),d=Object.getOwnPropertyDescriptor;t.f=r?d:function(e,t){if(e=s(e),t=c(t),u)try{return d(e,t)}catch{}if(l(e,t))return o(!i(a.f,e,t),e[t])}},8480(e,t,n){var r=n(1828),i=n(8727).concat(`length`,`prototype`);t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},3717(e,t){t.f=Object.getOwnPropertySymbols},2787(e,t,n){var r=n(9297),i=n(4901),a=n(8981),o=n(6119),s=n(2211),c=o(`IE_PROTO`),l=Object,u=l.prototype;e.exports=s?l.getPrototypeOf:function(e){var t=a(e);if(r(t,c))return t[c];var n=t.constructor;return i(n)&&t instanceof n?n.prototype:t instanceof l?u:null}},1625(e,t,n){e.exports=n(9504)({}.isPrototypeOf)},1828(e,t,n){var r=n(9504),i=n(9297),a=n(5397),o=n(9617).indexOf,s=n(421),c=r([].push);e.exports=function(e,t){var n=a(e),r=0,l=[],u;for(u in n)!i(s,u)&&i(n,u)&&c(l,u);for(;t.length>r;)i(n,u=t[r++])&&(~o(l,u)||c(l,u));return l}},1072(e,t,n){var r=n(1828),i=n(8727);e.exports=Object.keys||function(e){return r(e,i)}},8773(e,t){var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor;t.f=r&&!n.call({1:2},1)?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},2967(e,t,n){var r=n(6706),i=n(34),a=n(7750),o=n(3506);e.exports=Object.setPrototypeOf||(`__proto__`in{}?function(){var e=!1,t={},n;try{n=r(Object.prototype,`__proto__`,`set`),n(t,[]),e=t instanceof Array}catch{}return function(t,r){return a(t),o(r),i(t)&&(e?n(t,r):t.__proto__=r),t}}():void 0)},4270(e,t,n){var r=n(9565),i=n(4901),a=n(34),o=TypeError;e.exports=function(e,t){var n,s;if(t===`string`&&i(n=e.toString)&&!a(s=r(n,e))||i(n=e.valueOf)&&!a(s=r(n,e))||t!==`string`&&i(n=e.toString)&&!a(s=r(n,e)))return s;throw new o(`Can't convert object to primitive value`)}},5031(e,t,n){var r=n(7751),i=n(9504),a=n(8480),o=n(3717),s=n(8551),c=i([].concat);e.exports=r(`Reflect`,`ownKeys`)||function(e){var t=a.f(s(e)),n=o.f;return n?c(t,n(e)):t}},8235(e,t,n){var r=n(9504),i=n(9297),a=SyntaxError,o=parseInt,s=String.fromCharCode,c=r(``.charAt),l=r(``.slice),u=r(/./.exec),d={'\\"':`"`,"\\\\":`\\`,"\\/":`/`,"\\b":`\b`,"\\f":`\f`,"\\n":`
`,"\\r":`\r`,"\\t":` `},f=/^[\da-f]{4}$/i,p=/^[\u0000-\u001F]$/;e.exports=function(e,t){for(var n=!0,r=``;t<e.length;){var m=c(e,t);if(m===`\\`){var h=l(e,t,t+2);if(i(d,h))r+=d[h],t+=2;else if(h===`\\u`){t+=2;var g=l(e,t,t+4);if(!u(f,g))throw new a(`Bad Unicode escape at: `+t);r+=s(o(g,16)),t+=4}else throw new a(`Unknown escape sequence: "`+h+`"`)}else if(m===`"`){n=!1,t++;break}else{if(u(p,m))throw new a(`Bad control character in string literal at: `+t);r+=m,t++}}if(n)throw new a(`Unterminated string at: `+t);return{value:r,end:t}}},1103(e){e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},7750(e,t,n){var r=n(4117),i=TypeError;e.exports=function(e){if(r(e))throw new i(`Can't call method on `+e);return e}},9286(e,t,n){var r=n(4402),i=n(8469),a=r.Set,o=r.add;e.exports=function(e){var t=new a;return i(e,function(e){o(t,e)}),t}},3440(e,t,n){var r=n(7080),i=n(4402),a=n(9286),o=n(5170),s=n(3789),c=n(8469),l=n(507),u=i.has,d=i.remove;e.exports=function(e){var t=r(this),n=s(e),i=a(t);return o(i)<=n.size?c(i,function(e){n.includes(e)&&d(i,e)}):l(n.getIterator(),function(e){u(i,e)&&d(i,e)}),i}},4402(e,t,n){var r=n(9504),i=Set.prototype;e.exports={Set,add:r(i.add),has:r(i.has),remove:r(i.delete),proto:i}},8750(e,t,n){var r=n(7080),i=n(4402),a=n(5170),o=n(3789),s=n(8469),c=n(507),l=i.Set,u=i.add,d=i.has;e.exports=function(e){var t=r(this),n=o(e),i=new l;return a(t)>n.size?c(n.getIterator(),function(e){d(t,e)&&u(i,e)}):s(t,function(e){n.includes(e)&&u(i,e)}),i}},4449(e,t,n){var r=n(7080),i=n(4402).has,a=n(5170),o=n(3789),s=n(8469),c=n(507),l=n(9539);e.exports=function(e){var t=r(this),n=o(e);if(a(t)<=n.size)return s(t,function(e){if(n.includes(e))return!1},!0)!==!1;var u=n.getIterator();return c(u,function(e){if(i(t,e))return l(u.iterator,`normal`,!1)})!==!1}},3838(e,t,n){var r=n(7080),i=n(5170),a=n(8469),o=n(3789);e.exports=function(e){var t=r(this),n=o(e);return i(t)>n.size?!1:a(t,function(e){if(!n.includes(e))return!1},!0)!==!1}},8527(e,t,n){var r=n(7080),i=n(4402).has,a=n(5170),o=n(3789),s=n(507),c=n(9539);e.exports=function(e){var t=r(this),n=o(e);if(a(t)<n.size)return!1;var l=n.getIterator();return s(l,function(e){if(!i(t,e))return c(l.iterator,`normal`,!1)})!==!1}},8469(e,t,n){var r=n(9504),i=n(507),a=n(4402),o=a.Set,s=a.proto,c=r(s.forEach),l=r(s.keys),u=l(new o).next;e.exports=function(e,t,n){return n?i({iterator:l(e),next:u},t):c(e,t)}},4916(e,t,n){var r=n(7751),i=function(e){return{size:e,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},a=function(e){return{size:e,has:function(){return!0},keys:function(){throw Error(`e`)}}};e.exports=function(e,t){var n=r(`Set`);try{new n()[e](i(0));try{return new n()[e](i(-1)),!1}catch{if(!t)return!0;try{return new n()[e](a(-1/0)),!1}catch{return t(new n([1,2])[e](a(1/0)))}}}catch{return!1}}},9835(e){e.exports=function(e){try{var t=new Set,n=t[e]({size:0,has:function(){return!0},keys:function(){return Object.defineProperty({},"next",{get:function(){return t.clear(),t.add(4),function(){return{done:!0}}}})}});return n.size===1&&n.values().next().value===4}catch{return!1}}},5170(e,t,n){e.exports=n(6706)(n(4402).proto,`size`,`get`)||function(e){return e.size}},3650(e,t,n){var r=n(7080),i=n(4402),a=n(9286),o=n(3789),s=n(507),c=i.add,l=i.has,u=i.remove;e.exports=function(e){var t=r(this),n=o(e).getIterator(),i=a(t);return s(n,function(e){l(t,e)?u(i,e):c(i,e)}),i}},4204(e,t,n){var r=n(7080),i=n(4402).add,a=n(9286),o=n(3789),s=n(507);e.exports=function(e){var t=r(this),n=o(e).getIterator(),c=a(t);return s(n,function(e){i(c,e)}),c}},6119(e,t,n){var r=n(5745),i=n(3392),a=r(`keys`);e.exports=function(e){return a[e]||(a[e]=i(e))}},7629(e,t,n){var r=n(6395),i=n(4576),a=n(9433),o=`__core-js_shared__`,s=e.exports=i[o]||a(o,{});(s.versions||=[]).push({version:`3.49.0`,mode:r?`pure`:`global`,copyright:`© 20132025 Denis Pushkarev (zloirock.ru), 20252026 CoreJS Company (core-js.io). All rights reserved.`,license:`https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE`,source:`https://github.com/zloirock/core-js`})},5745(e,t,n){var r=n(7629);e.exports=function(e,t){return r[e]||(r[e]=t||{})}},1548(e,t,n){var r=n(4576),i=n(9039),a=n(9519),o=n(4215),s=r.structuredClone;e.exports=!!s&&!i(function(){if(o===`DENO`&&a>92||o===`NODE`&&a>94||o===`BROWSER`&&a>97)return!1;var e=new ArrayBuffer(8),t=s(e,{transfer:[e]});return e.byteLength!==0||t.byteLength!==8})},4495(e,t,n){var r=n(9519),i=n(9039),a=n(4576).String;e.exports=!!Object.getOwnPropertySymbols&&!i(function(){var e=Symbol(`symbol detection`);return!a(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41})},5610(e,t,n){var r=n(1291),i=Math.max,a=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):a(n,t)}},5854(e,t,n){var r=n(2777),i=TypeError;e.exports=function(e){var t=r(e,`number`);if(typeof t==`number`)throw new i(`Can't convert number to bigint`);return BigInt(t)}},7696(e,t,n){var r=n(1291),i=n(8014),a=RangeError;e.exports=function(e){if(e===void 0)return 0;var t=r(e),n=i(t);if(t!==n)throw new a(`Wrong length or index`);return n}},5397(e,t,n){var r=n(7055),i=n(7750);e.exports=function(e){return r(i(e))}},1291(e,t,n){var r=n(741);e.exports=function(e){var t=+e;return t!==t||t===0?0:r(t)}},8014(e,t,n){var r=n(1291),i=Math.min;e.exports=function(e){var t=r(e);return t>0?i(t,9007199254740991):0}},8981(e,t,n){var r=n(7750),i=Object;e.exports=function(e){return i(r(e))}},9590(e,t,n){var r=n(1291),i=RangeError;e.exports=function(e){var t=r(e);if(t<0)throw new i(`The argument can't be less than 0`);return t}},2777(e,t,n){var r=n(9565),i=n(34),a=n(757),o=n(5966),s=n(4270),c=n(8227),l=TypeError,u=c(`toPrimitive`);e.exports=function(e,t){if(!i(e)||a(e))return e;var n=o(e,u),c;if(n){if(t===void 0&&(t=`default`),c=r(n,e,t),!i(c)||a(c))return c;throw new l(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),s(e,t)}},6969(e,t,n){var r=n(2777),i=n(757);e.exports=function(e){var t=r(e,`string`);return i(t)?t:t+``}},2140(e,t,n){var r=n(8227)(`toStringTag`),i={};i[r]=`z`,e.exports=String(i)===`[object z]`},655(e,t,n){var r=n(6955),i=String;e.exports=function(e){if(r(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return i(e)}},6823(e){var t=String;e.exports=function(e){try{return t(e)}catch{return`Object`}}},3392(e,t,n){var r=n(9504),i=0,a=Math.random(),o=r(1.1.toString);e.exports=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+o(++i+a,36)}},9143(e,t,n){var r=n(4576),i=n(9504),a=n(3972),o=n(3463),s=n(9297),c=n(2804),l=n(944),u=n(5169),d=c.c2i,f=c.c2iUrl,p=r.SyntaxError,m=r.TypeError,h=i(``.charAt),g=function(e,t){for(var n=e.length;t<n;t++){var r=h(e,t);if(r!==` `&&r!==` `&&r!==`
`&&r!==`\f`&&r!==`\r`)break}return t},_=function(e,t,n){var r=e.length;r<4&&(e+=r===2?`AA`:`A`);var i=(t[h(e,0)]<<18)+(t[h(e,1)]<<12)+(t[h(e,2)]<<6)+t[h(e,3)],a=[i>>16&255,i>>8&255,i&255];if(r===2){if(n&&a[1]!==0)throw new p(`Extra bits`);return[a[0]]}if(r===3){if(n&&a[2]!==0)throw new p(`Extra bits`);return[a[0],a[1]]}return a},v=function(e,t,n){for(var r=t.length,i=0;i<r;i++)e[n+i]=t[i];return n+r};e.exports=function(e,t,n,r){o(e),a(t);var i=l(t)===`base64`?d:f,c=t?t.lastChunkHandling:void 0;if(c===void 0&&(c=`loose`),c!==`loose`&&c!==`strict`&&c!==`stop-before-partial`)throw new m("Incorrect `lastChunkHandling` option");n&&u(n.buffer);var y=e.length,b=n||[],x=0,S=0,C=``,w=0;if(r)for(;;){if(w=g(e,w),w===y){if(C.length>0){if(c===`stop-before-partial`)break;if(c===`loose`){if(C.length===1)throw new p(`Malformed padding: exactly one additional character`);x=v(b,_(C,i,!1),x)}else throw new p(`Missing padding`)}S=y;break}var T=h(e,w);if(++w,T===`=`){if(C.length<2)throw new p(`Padding is too early`);if(w=g(e,w),C.length===2){if(w===y){if(c===`stop-before-partial`)break;throw new p(`Malformed padding: only one =`)}h(e,w)===`=`&&(++w,w=g(e,w))}if(w<y)throw new p(`Unexpected character after padding`);x=v(b,_(C,i,c===`strict`),x),S=y;break}if(!s(i,T))throw new p(`Unexpected character`);var E=r-x;if(E===1&&C.length===2||E===2&&C.length===3||(C+=T,C.length===4&&(x=v(b,_(C,i,!1),x),C=``,S=w,x===r)))break}return{bytes:b,read:S,written:x}}},2303(e,t,n){var r=n(4576),i=n(9504),a=r.Uint8Array,o=r.SyntaxError,s=Math.min,c=i(``.match);e.exports=function(e,t){var n=e.length;if(n%2!=0)throw new o(`String should be an even number of characters`);for(var r=t?s(t.length,n/2):n/2,i=t||new a(r),l=c(e,/.{2}/g),u=0;u<r;u++){var d=+(`0x`+l[u]+`0`);if(d!==d)throw new o(`String should only contain hex characters`);i[u]=d>>4}return{bytes:i,read:u<<1}}},7416(e,t,n){var r=n(9039),i=n(8227),a=n(3724),o=n(6395),s=i(`iterator`);e.exports=!r(function(){var e=new URL(`b?a=1&b=2&c=3`,`https://a`),t=e.searchParams,n=new URLSearchParams(`a=1&a=2&b=3`),r=``;return e.pathname=`c%20d`,t.forEach(function(e,n){t.delete(`b`),r+=n+e}),n.delete(`a`,2),n.delete(`b`,void 0),o&&(!e.toJSON||!n.has(`a`,1)||n.has(`a`,2)||!n.has(`a`,void 0)||n.has(`b`))||!t.size&&(o||!a)||!t.sort||e.href!==`https://a/c%20d?a=1&c=3`||t.get(`c`)!==`3`||String(new URLSearchParams(`?a=1`))!==`a=1`||!t[s]||new URL(`https://a@b`).username!==`a`||new URLSearchParams(new URLSearchParams(`a=b`)).get(`a`)!==`b`||new URL(`https://тест`).host!==`xn--e1aybc`||new URL(`https://a#б`).hash!==`#%D0%B1`||r!==`a1c3`||new URL(`https://x`,void 0).host!==`x`})},7040(e,t,n){e.exports=n(4495)&&!Symbol.sham&&typeof Symbol.iterator==`symbol`},8686(e,t,n){var r=n(3724),i=n(9039);e.exports=r&&i(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})},2812(e){var t=TypeError;e.exports=function(e,n){if(e<n)throw new t(`Not enough arguments`);return e}},8622(e,t,n){var r=n(4576),i=n(4901),a=r.WeakMap;e.exports=i(a)&&/native code/.test(String(a))},4995(e,t,n){var r=n(9504),i=WeakMap.prototype;e.exports={WeakMap,set:r(i.set),get:r(i.get),has:r(i.has),remove:r(i.delete)}},8227(e,t,n){var r=n(4576),i=n(5745),a=n(9297),o=n(3392),s=n(4495),c=n(7040),l=r.Symbol,u=i(`wks`),d=c?l.for||l:l&&l.withoutSetter||o;e.exports=function(e){return a(u,e)||(u[e]=s&&a(l,e)?l[e]:d(`Symbol.`+e)),u[e]}},6573(e,t,n){var r=n(3724),i=n(2106),a=n(3238),o=ArrayBuffer.prototype;r&&!(`detached`in o)&&i(o,`detached`,{configurable:!0,get:function(){return a(this)}})},7936(e,t,n){var r=n(6518),i=n(5636);i&&r({target:`ArrayBuffer`,proto:!0},{transferToFixedLength:function(){return i(this,arguments.length?arguments[0]:void 0,!1)}})},8100(e,t,n){var r=n(6518),i=n(5636);i&&r({target:`ArrayBuffer`,proto:!0},{transfer:function(){return i(this,arguments.length?arguments[0]:void 0,!0)}})},4423(e,t,n){var r=n(6518),i=n(9617).includes,a=n(9039),o=n(6469),s=a(function(){return![,].includes()}),c=a(function(){return[,1].includes(void 0,1)});r({target:`Array`,proto:!0,forced:s||c},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o(`includes`)},4114(e,t,n){var r=n(6518),i=n(8981),a=n(6198),o=n(4527),s=n(6837);r({target:`Array`,proto:!0,arity:1,forced:n(9039)(function(){return[].push.call({length:4294967296},1)!==4294967297})||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}()},{push:function(e){var t=i(this),n=a(t),r=arguments.length;s(n+r);for(var c=0;c<r;c++)t[n]=arguments[c],n++;return o(t,n),n}})},8111(e,t,n){var r=n(6518),i=n(4576),a=n(679),o=n(8551),s=n(4901),c=n(2787),l=n(2106),u=n(4659),d=n(9039),f=n(9297),p=n(8227),m=n(7657).IteratorPrototype,h=n(3724),g=n(6395),_=`constructor`,v=`Iterator`,y=p(`toStringTag`),b=TypeError,x=i[v],S=g||!s(x)||x.prototype!==m||!d(function(){x({})}),C=function(){if(a(this,m),c(this)===m)throw new b(`Abstract class Iterator not directly constructable`)},w=function(e,t){h?l(m,e,{configurable:!0,get:function(){return t},set:function(t){if(o(this),this===m)throw new b(`You can't redefine this property`);f(this,e)?this[e]=t:u(this,e,t)}}):m[e]=t};f(m,y)||w(y,v),(S||!f(m,_)||m[_]===Object)&&w(_,C),C.prototype=m,r({global:!0,constructor:!0,forced:S},{Iterator:C})},9314(e,t,n){var r=n(6518),i=n(9565),a=n(8551),o=n(1767),s=n(4149),c=n(9590),l=n(9539),u=n(9462),d=n(684),f=n(4549),p=n(6395),m=!p&&!d(`drop`,0),h=!p&&!m&&f(`drop`,RangeError),g=p||m||h,_=u(function(){for(var e=this.iterator,t=this.next,n,r;this.remaining;)if(this.remaining--,n=a(i(t,e)),r=this.done=!!n.done,r)return;if(n=a(i(t,e)),r=this.done=!!n.done,!r)return n.value});r({target:`Iterator`,proto:!0,real:!0,forced:g},{drop:function(e){a(this);var t;try{t=c(s(+e))}catch(e){l(this,`throw`,e)}return h?i(h,this,t):new _(o(this),{remaining:t})}})},1148(e,t,n){var r=n(6518),i=n(9565),a=n(2652),o=n(9306),s=n(8551),c=n(1767),l=n(9539),u=n(4549)(`every`,TypeError);r({target:`Iterator`,proto:!0,real:!0,forced:u},{every:function(e){s(this);try{o(e)}catch(e){l(this,`throw`,e)}if(u)return i(u,this,e);var t=c(this),n=0;return!a(t,function(t,r){if(!e(t,n++))return r()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},2489(e,t,n){var r=n(6518),i=n(9565),a=n(9306),o=n(8551),s=n(1767),c=n(9462),l=n(6319),u=n(6395),d=n(9539),f=n(684),p=n(4549),m=!u&&!f(`filter`,function(){}),h=!u&&!m&&p(`filter`,TypeError),g=u||m||h,_=c(function(){for(var e=this.iterator,t=this.predicate,n=this.next,r,a,s;;){if(r=o(i(n,e)),a=this.done=!!r.done,a)return;if(s=r.value,l(e,t,[s,this.counter++],!0))return s}});r({target:`Iterator`,proto:!0,real:!0,forced:g},{filter:function(e){o(this);try{a(e)}catch(e){d(this,`throw`,e)}return h?i(h,this,e):new _(s(this),{predicate:e})}})},116(e,t,n){var r=n(6518),i=n(9565),a=n(2652),o=n(9306),s=n(8551),c=n(1767),l=n(9539),u=n(4549)(`find`,TypeError);r({target:`Iterator`,proto:!0,real:!0,forced:u},{find:function(e){s(this);try{o(e)}catch(e){l(this,`throw`,e)}if(u)return i(u,this,e);var t=c(this),n=0;return a(t,function(t,r){if(e(t,n++))return r(t)},{IS_RECORD:!0,INTERRUPTED:!0}).result}})},531(e,t,n){var r=n(6518),i=n(9565),a=n(9306),o=n(8551),s=n(1767),c=n(8646),l=n(9462),u=n(9539),d=n(6395),f=n(684),p=n(4549);function m(){try{var e=Iterator.prototype.flatMap.call(new Map([[4,5]]).entries(),function(e){return e});e.next(),e.return()}catch{return!0}}var h=!d&&!f(`flatMap`,function(){}),g=!d&&!h&&p(`flatMap`,TypeError),_=d||h||g||m(),v=l(function(){for(var e=this.iterator,t=this.mapper,n,r;;){if(r=this.inner)try{if(n=o(i(r.next,r.iterator)),!n.done)return n.value;this.inner=null}catch(t){u(e,`throw`,t)}if(n=o(i(this.next,e)),this.done=!!n.done)return;try{this.inner=c(t(n.value,this.counter++),!1)}catch(t){u(e,`throw`,t)}}});r({target:`Iterator`,proto:!0,real:!0,forced:_},{flatMap:function(e){o(this);try{a(e)}catch(e){u(this,`throw`,e)}return g?i(g,this,e):new v(s(this),{mapper:e,inner:null})}})},7588(e,t,n){var r=n(6518),i=n(9565),a=n(2652),o=n(9306),s=n(8551),c=n(1767),l=n(9539),u=n(4549)(`forEach`,TypeError);r({target:`Iterator`,proto:!0,real:!0,forced:u},{forEach:function(e){s(this);try{o(e)}catch(e){l(this,`throw`,e)}if(u)return i(u,this,e);var t=c(this),n=0;a(t,function(t){e(t,n++)},{IS_RECORD:!0})}})},1701(e,t,n){var r=n(6518),i=n(9565),a=n(9306),o=n(8551),s=n(1767),c=n(9462),l=n(6319),u=n(9539),d=n(684),f=n(4549),p=n(6395),m=!p&&!d(`map`,function(){}),h=!p&&!m&&f(`map`,TypeError),g=p||m||h,_=c(function(){var e=this.iterator,t=o(i(this.next,e));if(!(this.done=!!t.done))return l(e,this.mapper,[t.value,this.counter++],!0)});r({target:`Iterator`,proto:!0,real:!0,forced:g},{map:function(e){o(this);try{a(e)}catch(e){u(this,`throw`,e)}return h?i(h,this,e):new _(s(this),{mapper:e})}})},3579(e,t,n){var r=n(6518),i=n(9565),a=n(2652),o=n(9306),s=n(8551),c=n(1767),l=n(9539),u=n(4549)(`some`,TypeError);r({target:`Iterator`,proto:!0,real:!0,forced:u},{some:function(e){s(this);try{o(e)}catch(e){l(this,`throw`,e)}if(u)return i(u,this,e);var t=c(this),n=0;return a(t,function(t,r){if(e(t,n++))return r()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},4972(e,t,n){var r=n(6518),i=n(9565),a=n(8551),o=n(1767),s=n(4149),c=n(9590),l=n(9462),u=n(9539),d=n(684),f=n(4549),p=n(6395),m=!p&&!d(`take`,1),h=!p&&!m&&f(`take`,RangeError),g=p||m||h,_=l(function(){var e=this.iterator;if(!this.remaining--)return this.done=!0,u(e,`normal`,void 0);var t=a(i(this.next,e));if(!(this.done=!!t.done))return t.value});r({target:`Iterator`,proto:!0,real:!0,forced:g},{take:function(e){a(this);var t;try{t=c(s(+e))}catch(e){u(this,`throw`,e)}return h?i(h,this,t):new _(o(this),{remaining:t})}})},9112(e,t,n){var r=n(6518),i=n(3724),a=n(4576),o=n(7751),s=n(9504),c=n(9565),l=n(4901),u=n(34),d=n(4376),f=n(9297),p=n(655),m=n(6198),h=n(4659),g=n(9039),_=n(8235),v=n(4495),y=a.JSON,b=a.Number,x=a.SyntaxError,S=y&&y.parse,C=o(`Object`,`keys`),w=Object.getOwnPropertyDescriptor,T=s(``.charAt),E=s(``.slice),D=s(/./.exec),O=s([].push),k=/^\d$/,A=/^[1-9]$/,j=/^[\d-]$/,M=/^[\t\n\r ]$/,N=0,P=1,F=function(e,t){e=p(e);var n=new z(e,0,``),r=n.parse(),i=r.value,a=n.skip(M,r.end);if(a<e.length)throw new x(`Unexpected extra character: "`+T(e,a)+`" after the parsed data at: `+a);return l(t)?I({"":i},``,t,r):i},I=function(e,t,n,r){var i=e[t],a=r&&i===r.value,o=a&&typeof r.source==`string`?{source:r.source}:{},s,l,p,h,g;if(u(i)){var _=d(i),v=a?r.nodes:_?[]:{};if(_)for(s=v.length,p=m(i),h=0;h<p;h++)L(i,h,I(i,``+h,n,h<s?v[h]:void 0));else for(l=C(i),p=m(l),h=0;h<p;h++)g=l[h],L(i,g,I(i,g,n,f(v,g)?v[g]:void 0))}return c(n,e,t,i,o)},L=function(e,t,n){if(i){var r=w(e,t);if(r&&!r.configurable)return}n===void 0?delete e[t]:h(e,t,n)},R=function(e,t,n,r){this.value=e,this.end=t,this.source=n,this.nodes=r},z=function(e,t){this.source=e,this.index=t};z.prototype={fork:function(e){return new z(this.source,e)},parse:function(){var e=this.source,t=this.skip(M,this.index),n=this.fork(t),r=T(e,t);if(D(j,r))return n.number();switch(r){case`{`:return n.object();case`[`:return n.array();case`"`:return n.string();case`t`:return n.keyword(!0);case`f`:return n.keyword(!1);case`n`:return n.keyword(null)}throw new x(`Unexpected character: "`+r+`" at: `+t)},node:function(e,t,n,r,i){return new R(t,r,e?null:E(this.source,n,r),i)},object:function(){for(var e=this.source,t=this.index+1,n=!1,r={},i={},a=!1;t<e.length;){if(t=this.until([`"`,`}`],t),T(e,t)===`}`&&!n){t++,a=!0;break}var o=this.fork(t).string(),s=o.value;t=o.end,t=this.until([`:`],t)+1,t=this.skip(M,t),o=this.fork(t).parse(),h(i,s,o),h(r,s,o.value),t=this.until([`,`,`}`],o.end);var c=T(e,t);if(c===`,`)n=!0,t++;else if(c===`}`){t++,a=!0;break}}if(!a)throw new x(`Unterminated object at: `+t);return this.node(P,r,this.index,t,i)},array:function(){for(var e=this.source,t=this.index+1,n=!1,r=[],i=[],a=!1;t<e.length;){if(t=this.skip(M,t),T(e,t)===`]`&&!n){t++,a=!0;break}var o=this.fork(t).parse();if(O(i,o),O(r,o.value),t=this.until([`,`,`]`],o.end),T(e,t)===`,`)n=!0,t++;else if(T(e,t)===`]`){t++,a=!0;break}}if(!a)throw new x(`Unterminated array at: `+t);return this.node(P,r,this.index,t,i)},string:function(){var e=this.index,t=_(this.source,this.index+1);return this.node(N,t.value,e,t.end)},number:function(){var e=this.source,t=this.index,n=t;if(T(e,n)===`-`&&n++,T(e,n)===`0`)n++;else if(D(A,T(e,n)))n=this.skip(k,n+1);else throw new x(`Failed to parse number at: `+n);if(T(e,n)===`.`){var r=n+1;if(n=this.skip(k,r),r===n)throw new x(`Failed to parse number's fraction at: `+n)}if(T(e,n)===`e`||T(e,n)===`E`){n++,(T(e,n)===`+`||T(e,n)===`-`)&&n++;var i=n;if(n=this.skip(k,n),i===n)throw new x(`Failed to parse number's exponent value at: `+n)}return this.node(N,b(E(e,t,n)),t,n)},keyword:function(e){var t=``+e,n=this.index,r=n+t.length;if(E(this.source,n,r)!==t)throw new x(`Failed to parse value at: `+n);return this.node(N,e,n,r)},skip:function(e,t){for(var n=this.source;t<n.length&&D(e,T(n,t));t++);return t},until:function(e,t){t=this.skip(M,t);for(var n=T(this.source,t),r=0;r<e.length;r++)if(e[r]===n)return t;throw new x(`Unexpected character: "`+n+`" at: `+t)}};var ee=g(function(){var e=`9007199254740993`,t;return S(e,function(e,n,r){t=r.source}),t!==e}),B=v&&!g(function(){return 1/S(`-0 `)!=-1/0});r({target:`JSON`,stat:!0,forced:ee},{parse:function(e,t){return B&&!l(t)?S(e):F(e,t)}})},3110(e,t,n){var r=n(6518),i=n(7751),a=n(8745),o=n(9565),s=n(9504),c=n(9039),l=n(4376),u=n(4901),d=n(5810),f=n(757),p=n(2195),m=n(655),h=n(7680),g=n(8235),_=n(3392),v=n(4495),y=n(7819),b=String,x=i(`JSON`,`stringify`),S=s(/./.exec),C=s(``.charAt),w=s(``.charCodeAt),T=s(``.replace),E=s(``.slice),D=s([].push),O=s(1.1.toString),k=/[\uD800-\uDFFF]/g,A=/^[\uD800-\uDBFF]$/,j=/^[\uDC00-\uDFFF]$/,M=_(),N=M.length,P=!v||c(function(){var e=i(`Symbol`)(`stringify detection`);return x([e])!==`[null]`||x({a:e})!==`{}`||x(Object(e))!==`{}`}),F=c(function(){return x(`\udf06\ud834`)!==`"\\udf06\\ud834"`||x(`\udead`)!==`"\\udead"`}),I=P?function(e,t){var n=h(arguments),r=R(t);if(!(!u(r)&&(e===void 0||f(e))))return n[1]=function(e,t){if(u(r)&&(t=o(r,this,b(e),t)),!f(t))return t},a(x,null,n)}:x,L=function(e,t,n){var r=C(n,t-1),i=C(n,t+1);return S(A,e)&&!S(j,i)||S(j,e)&&!S(A,r)?`\\u`+O(w(e,0),16):e},R=function(e){if(u(e))return e;if(l(e)){for(var t=e.length,n=[],r=0;r<t;r++){var i=e[r];typeof i==`string`?D(n,i):(typeof i==`number`||p(i)===`Number`||p(i)===`String`)&&D(n,m(i))}var a=n.length,o=!0;return function(e,t){if(o)return o=!1,t;if(l(this))return t;for(var r=0;r<a;r++)if(n[r]===e)return t}}};x&&r({target:`JSON`,stat:!0,arity:3,forced:P||F||!y},{stringify:function(e,t,n){var r=R(t),i=[],a=I(e,function(e,t){var n=u(r)?o(r,this,b(e),t):t;return!y&&d(n)?M+(D(i,n.rawJSON)-1):n},n);if(typeof a!=`string`||(F&&(a=T(a,k,L)),y))return a;for(var s=``,c=a.length,l=0;l<c;l++){var f=C(a,l);if(f===`"`){var p=g(a,++l).end-1,m=E(a,l,p);s+=E(m,0,N)===M?i[E(m,N)]:`"`+m+`"`,l=p}else s+=f}return s}})},2731(e,t,n){var r=n(6518),i=n(9306),a=n(2248),o=n(6395),s=a.get,c=a.has,l=a.set;r({target:`Map`,proto:!0,real:!0,forced:o},{getOrInsertComputed:function(e,t){var n=c(this,e);if(i(t),n)return s(this,e);e===0&&1/e==-1/0&&(e=0);var r=t(e);return l(this,e,r),r}})},5367(e,t,n){var r=n(6518),i=n(2248),a=n(6395),o=i.get,s=i.has,c=i.set;r({target:`Map`,proto:!0,real:!0,forced:a},{getOrInsert:function(e,t){return s(this,e)?o(this,e):(c(this,e,t),t)}})},3068(e,t,n){var r=n(6518),i=n(9504),a=n(2652),o=RangeError,s=TypeError,c=1/0,l=NaN,u=Math.abs,d=Math.pow,f=i([].push),p=d(2,1023),m=d(2,53)-1,h=Number.MAX_VALUE,g=d(2,971),_={},v={},y={},b={},x={},S=function(e,t){var n=e+t;return{hi:n,lo:t-(n-e)}};r({target:`Math`,stat:!0},{sumPrecise:function(e){var t=[],n=0,r=b;switch(a(e,function(e){if(++n>m)throw new o(`Maximum allowed index exceeded`);if(typeof e!=`number`)throw new s(`Value is not a number`);r!==_&&(e===e?e===c?r=r===v?_:y:e===-c?r=r===y?_:v:(e!==0||1/e===c)&&(r===b||r===x)&&(r=x,f(t,e)):r=_)}),r){case _:return l;case v:return-c;case y:return c;case b:return-0}for(var i=[],d=0,C,w,T,E,D,O,k=0;k<t.length;k++){C=t[k];for(var A=0,j=0;j<i.length;j++){if(w=i[j],u(C)<u(w)&&(O=C,C=w,w=O),T=S(C,w),E=T.hi,D=T.lo,u(E)===c){var M=E===c?1:-1;d+=M,C=C-M*p-M*p,u(C)<u(w)&&(O=C,C=w,w=O),T=S(C,w),E=T.hi,D=T.lo}D!==0&&(i[A++]=D),C=E}i.length=A,C!==0&&f(i,C)}var N=i.length-1;if(E=0,D=0,d!==0){var P=N>=0?i[N]:0;if(N--,u(d)>1||d>0&&P>0||d<0&&P<0)return d>0?c:-c;if(T=S(d*p,P/2),E=T.hi,D=T.lo,D*=2,u(2*E)===c)return E>0?E===p&&D===-(g/2)&&N>=0&&i[N]<0?h:c:E===-p&&D===g/2&&N>=0&&i[N]>0?-h:-c;D!==0&&(i[++N]=D,D=0),E*=2}for(;N>=0&&(T=S(E,i[N--]),E=T.hi,D=T.lo,D===0););return N>=0&&(D<0&&i[N]<0||D>0&&i[N]>0)&&(w=D*2,C=E+w,w===C-E&&(E=C)),E}})},1689(e,t,n){var r=n(6518),i=n(4576),a=n(8745),o=n(7680),s=n(6043),c=n(9306),l=n(1103),u=i.Promise,d=!1;r({target:`Promise`,stat:!0,forced:!u||!u.try||l(function(){u.try(function(e){d=e===8},8)}).error||!d},{try:function(e){var t=arguments.length>1?o(arguments,1):[],n=s.f(this),r=l(function(){return a(c(e),void 0,t)});return(r.error?n.reject:n.resolve)(r.value),n.promise}})},4628(e,t,n){var r=n(6518),i=n(6043);r({target:`Promise`,stat:!0},{withResolvers:function(){var e=i.f(this);return{promise:e.promise,resolve:e.resolve,reject:e.reject}}})},7642(e,t,n){var r=n(6518),i=n(3440),a=n(9039);r({target:`Set`,proto:!0,real:!0,forced:!n(4916)(`difference`,function(e){return e.size===0})||a(function(){var e={size:1,has:function(){return!0},keys:function(){var e=0;return{next:function(){var n=e++>1;return t.has(1)&&t.clear(),{done:n,value:2}}}}},t=new Set([1,2,3,4]);return t.difference(e).size!==3})},{difference:i})},8004(e,t,n){var r=n(6518),i=n(9039),a=n(8750);r({target:`Set`,proto:!0,real:!0,forced:!n(4916)(`intersection`,function(e){return e.size===2&&e.has(1)&&e.has(2)})||i(function(){return String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))!==`3,2`})},{intersection:a})},3853(e,t,n){var r=n(6518),i=n(4449);r({target:`Set`,proto:!0,real:!0,forced:!n(4916)(`isDisjointFrom`,function(e){return!e})},{isDisjointFrom:i})},5876(e,t,n){var r=n(6518),i=n(3838);r({target:`Set`,proto:!0,real:!0,forced:!n(4916)(`isSubsetOf`,function(e){return e})},{isSubsetOf:i})},2475(e,t,n){var r=n(6518),i=n(8527);r({target:`Set`,proto:!0,real:!0,forced:!n(4916)(`isSupersetOf`,function(e){return!e})},{isSupersetOf:i})},5024(e,t,n){var r=n(6518),i=n(3650),a=n(9835);r({target:`Set`,proto:!0,real:!0,forced:!n(4916)(`symmetricDifference`)||!a(`symmetricDifference`)},{symmetricDifference:i})},1698(e,t,n){var r=n(6518),i=n(4204),a=n(9835);r({target:`Set`,proto:!0,real:!0,forced:!n(4916)(`union`)||!a(`union`)},{union:i})},9577(e,t,n){var r=n(4644),i=n(1108),a=n(6198),o=n(1291),s=n(5854),c=r.aTypedArray,l=r.getTypedArrayConstructor,u=r.exportTypedArrayMethod,d=RangeError,f=function(){try{new Int8Array(1).with(2,{valueOf:function(){throw 8}})}catch(e){return e===8}}(),p=f&&function(){try{new Int8Array(1).with(-.5,1)}catch{return!0}}();u(`with`,{with:function(e,t){var n=c(this),r=a(n),u=o(e),f=u<0?r+u:u,p=i(n)?s(t):+t;if(f>=r||f<0)throw new d(`Incorrect index`);for(var m=new(l(n))(r),h=0;h<r;h++)m[h]=h===f?p:n[h];return m}}.with,!f||p)},5213(e,t,n){var r=n(6518),i=n(4576),a=n(5370),o=n(9143),s=i.Uint8Array,c=!s||!s.fromBase64||!function(){try{s.fromBase64(`a`);return}catch{}try{s.fromBase64(``,null)}catch{return!0}}();s&&r({target:`Uint8Array`,stat:!0,forced:c},{fromBase64:function(e){return a(s,o(e,arguments.length>1?arguments[1]:void 0,null,9007199254740991).bytes)}})},6632(e,t,n){var r=n(6518),i=n(4576),a=n(9143),o=n(4154),s=i.Uint8Array,c=!s||!s.prototype.setFromBase64||!function(){var e=new s([255,255,255,255,255]);try{e.setFromBase64(``,null);return}catch{}try{e.setFromBase64(`a`);return}catch{}try{e.setFromBase64(`MjYyZg===`)}catch{return e[0]===50&&e[1]===54&&e[2]===50&&e[3]===255&&e[4]===255}}();s&&r({target:`Uint8Array`,proto:!0,forced:c},{setFromBase64:function(e){o(this);var t=a(e,arguments.length>1?arguments[1]:void 0,this,this.length);return{read:t.read,written:t.written}}})},4226(e,t,n){var r=n(6518),i=n(4576),a=n(3463),o=n(4154),s=n(5169),c=n(2303);function l(){try{new Uint8Array(new ArrayBuffer(16,{maxByteLength:1024})).setFromHex(`cafed00d`)}catch{return!0}}i.Uint8Array&&r({target:`Uint8Array`,proto:!0,forced:l()},{setFromHex:function(e){o(this),a(e),s(this.buffer);var t=c(e,this).read;return{read:t,written:t/2}}})},9486(e,t,n){var r=n(6518),i=n(4576),a=n(9504),o=n(3972),s=n(4154),c=n(5169),l=n(2804),u=n(944),d=l.i2c,f=l.i2cUrl,p=a(``.charAt),m=i.Uint8Array,h=!m||!m.prototype.toBase64||!function(){try{new m().toBase64(null)}catch{return!0}}();m&&r({target:`Uint8Array`,proto:!0,forced:h},{toBase64:function(){var e=s(this),t=arguments.length?o(arguments[0]):void 0,n=u(t)===`base64`?d:f,r=!!t&&!!t.omitPadding;c(this.buffer);for(var i=``,a=0,l=e.length,m,h=function(e){return p(n,m>>6*e&63)};a+2<l;a+=3)m=(e[a]<<16)+(e[a+1]<<8)+e[a+2],i+=h(3)+h(2)+h(1)+h(0);return a+2===l?(m=(e[a]<<16)+(e[a+1]<<8),i+=h(3)+h(2)+h(1)+(r?``:`=`)):a+1===l&&(m=e[a]<<16,i+=h(3)+h(2)+(r?``:`==`)),i}})},456(e,t,n){var r=n(6518),i=n(4576),a=n(9504),o=n(4154),s=n(5169),c=a(1.1.toString),l=a([].join),u=Array,d=i.Uint8Array,f=!d||!d.prototype.toHex||!(function(){try{return new d([255,255,255,255,255,255,255,255]).toHex()===`ffffffffffffffff`}catch{return!1}})();d&&r({target:`Uint8Array`,proto:!0,forced:f},{toHex:function(){o(this),s(this.buffer);for(var e=u(this.length),t=0,n=this.length;t<n;t++){var r=c(this[t],16);e[t]=r.length===1?`0`+r:r}return l(e,``)}})},9452(e,t,n){var r=n(6518),i=n(9306),a=n(6557),o=n(4328),s=n(4995),c=n(6395),l=s.get,u=s.has,d=s.set;r({target:`WeakMap`,proto:!0,real:!0,forced:c||!function(){try{WeakMap.prototype.getOrInsertComputed&&new WeakMap().getOrInsertComputed(1,function(){throw 1})}catch(e){return e instanceof TypeError}}()},{getOrInsertComputed:function(e,t){if(c||a(this),o(e),i(t),u(this,e))return l(this,e);var n=t(e);return d(this,e,n),n}})},8454(e,t,n){var r=n(6518),i=n(4995),a=n(6395),o=i.get,s=i.has,c=i.set;r({target:`WeakMap`,proto:!0,real:!0,forced:a},{getOrInsert:function(e,t){return s(this,e)?o(this,e):(c(this,e,t),t)}})},4979(e,t,n){var r=n(6518),i=n(4576),a=n(7751),o=n(6980),s=n(4913).f,c=n(9297),l=n(679),u=n(3167),d=n(2603),f=n(5002),p=n(8574),m=n(3724),h=n(6395),g=`DOMException`,_=a(`Error`),v=a(g),y=function(){l(this,b);var e=arguments.length,t=d(e<1?void 0:arguments[0]),n=new v(t,d(e<2?void 0:arguments[1],`Error`)),r=new _(t);return r.name=g,s(n,`stack`,o(1,p(r.stack,1))),u(n,this,y),n},b=y.prototype=v.prototype,x=`stack`in new _(g),S=`stack`in new v(1,2),C=v&&m&&Object.getOwnPropertyDescriptor(i,g),w=!!C&&!(C.writable&&C.configurable),T=x&&!w&&!S;r({global:!0,constructor:!0,forced:h||T},{DOMException:T?y:v});var E=a(g),D=E.prototype;if(D.constructor!==E){for(var O in h||s(D,`constructor`,o(1,E)),f)if(c(f,O)){var k=f[O],A=k.s;c(E,A)||s(E,A,o(6,k.c))}}},4603(e,t,n){var r=n(6840),i=n(9504),a=n(655),o=n(2812),s=URLSearchParams,c=s.prototype,l=i(c.append),u=i(c.delete),d=i(c.forEach),f=i([].push),p=new s(`a=1&a=2&b=3`);p.delete(`a`,1),p.delete(`b`,void 0),p+``!=`a=2`&&r(c,`delete`,function(e){var t=arguments.length,n=t<2?void 0:arguments[1];if(t&&n===void 0)return u(this,e);var r=[];d(this,function(e,t){f(r,{key:t,value:e})}),o(t,1);for(var i=a(e),s=a(n),c=0,p=r.length,m;c<p;)m=r[c],u(this,m.key),c++;for(c=0;c<p;)m=r[c++],m.key===i&&m.value===s||l(this,m.key,m.value)},{enumerable:!0,unsafe:!0})},7566(e,t,n){var r=n(6840),i=n(9504),a=n(655),o=n(2812),s=URLSearchParams,c=s.prototype,l=i(c.getAll),u=i(c.has),d=new s(`a=1`);(d.has(`a`,2)||!d.has(`a`,void 0))&&r(c,`has`,function(e){var t=arguments.length,n=t<2?void 0:arguments[1];if(t&&n===void 0)return u(this,e);var r=l(this,e);o(t,1);for(var i=a(n),s=0;s<r.length;)if(r[s++]===i)return!0;return!1},{enumerable:!0,unsafe:!0})},8721(e,t,n){var r=n(3724),i=n(9504),a=n(2106),o=URLSearchParams.prototype,s=i(o.forEach);r&&!(`size`in o)&&a(o,`size`,{get:function(){var e=0;return s(this,function(){e++}),e},configurable:!0,enumerable:!0})},5781(e,t,n){var r=n(6518),i=n(7751),a=n(2812),o=n(655),s=n(7416),c=i(`URL`);r({target:`URL`,stat:!0,forced:!s},{parse:function(e){var t=a(arguments.length,1),n=o(e),r=t<2||arguments[1]===void 0?void 0:o(arguments[1]);try{return new c(n,r)}catch{return null}}})}},w={};function T(e){var t=w[e];if(t!==void 0)return t.exports;var n=w[e]={exports:{}};return C[e].call(n.exports,n,n.exports,T),n.exports}T.d=(e,t)=>{for(var n in t)T.o(t,n)&&!T.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},T.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),T(4423),T(4114),T(6573),T(8100),T(7936),T(8111),T(2489),T(5367),T(2731),T(9577),T(6632),T(4226),T(9486),T(456),T(5781);var E=typeof process==`object`&&process+``==`[object process]`&&!process.versions.nw&&!(process.versions.electron&&process.type&&process.type!==`browser`),D=[1/0,1/0,-1/0,-1/0],O=new Float32Array(D),k=[.001,0,0,.001,0,0],A=1.35,j=`http://www.w3.org/2000/svg`,M={ANY:1,DISPLAY:2,PRINT:4,SAVE:8,ANNOTATIONS_FORMS:16,ANNOTATIONS_STORAGE:32,ANNOTATIONS_DISABLE:64,IS_EDITING:128,OPLIST:256},N={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3},P=`pdfjs_internal_id_`,F=`pdfjs_internal_editor_`,I={DISABLE:-1,NONE:0,FREETEXT:3,HIGHLIGHT:9,STAMP:13,INK:15,POPUP:16,SIGNATURE:101,COMMENT:102},L={RESIZE:1,CREATE:2,FREETEXT_SIZE:11,FREETEXT_COLOR:12,FREETEXT_OPACITY:13,INK_COLOR:21,INK_THICKNESS:22,INK_OPACITY:23,INK_COLOR_AND_OPACITY:24,HIGHLIGHT_COLOR:31,HIGHLIGHT_THICKNESS:32,HIGHLIGHT_FREE:33,HIGHLIGHT_SHOW_ALL:34,DRAW_STEP:41},R={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048},z={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4},ee={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3},B={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26},te={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5},ne={ERRORS:0,WARNINGS:1,INFOS:5},V={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotation:80,endAnnotation:81,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91,setStrokeTransparent:92,setFillTransparent:93,rawFillPath:94},re={moveTo:0,lineTo:1,curveTo:2,quadraticCurveTo:3,closePath:4},ie={NEED_PASSWORD:1,INCORRECT_PASSWORD:2},ae=ne.WARNINGS;function oe(e){Number.isInteger(e)&&(ae=e)}function se(){return ae}function ce(e){ae>=ne.INFOS&&console.info(`Info: ${e}`)}function H(e){ae>=ne.WARNINGS&&console.warn(`Warning: ${e}`)}function U(e){throw Error(e)}function le(e,t){e||U(t)}function ue(e){switch(e?.protocol){case`http:`:case`https:`:case`ftp:`:case`mailto:`:case`tel:`:return!0;default:return!1}}function de(e,t=null,n=null){if(!e)return null;if(n&&typeof e==`string`&&(n.addDefaultProtocol&&e.startsWith(`www.`)&&e.match(/\./g)?.length>=2&&(e=`http://${e}`),n.tryConvertEncoding))try{e=Ce(e)}catch{}let r=t?URL.parse(e,t):URL.parse(e);return ue(r)?r:null}function fe(e,t,n=!1){let r=URL.parse(e);return r?(r.hash=t,r.href):n&&de(e,`http://example.com`)?e.split(`#`,1)[0]+`${t?`#${t}`:``}`:``}function pe(e){return e.substring(e.lastIndexOf(`/`)+1)}function W(e,t,n,r=!1){return Object.defineProperty(e,t,{value:n,enumerable:!r,configurable:!0,writable:!1}),n}var me=function(){function e(e,t){this.message=e,this.name=t}return e.prototype=Error(),e.constructor=e,e}(),he=class extends me{constructor(e,t){super(e,`PasswordException`),this.code=t}},ge=class extends me{constructor(e,t){super(e,`UnknownErrorException`),this.details=t}},_e=class extends me{constructor(e){super(e,`InvalidPDFException`)}},ve=class extends me{constructor(e,t,n){super(e,`ResponseException`),this.status=t,this.missing=n}},ye=class extends me{constructor(e){super(e,`FormatError`)}},be=class extends me{constructor(e){super(e,`AbortException`)}};function xe(e){(typeof e!=`object`||e?.length===void 0)&&U(`Invalid argument for bytesToString`);let t=e.length,n=8192;if(t<n)return String.fromCharCode.apply(null,e);let r=[];for(let i=0;i<t;i+=n){let a=Math.min(i+n,t),o=e.subarray(i,a);r.push(String.fromCharCode.apply(null,o))}return r.join(``)}function Se(e){typeof e!=`string`&&U(`Invalid argument for stringToBytes`);let t=e.length,n=new Uint8Array(t);for(let r=0;r<t;++r)n[r]=e.charCodeAt(r)&255;return n}var G=class{static get isLittleEndian(){let e=new Uint8Array(4);e[0]=1;let t=new Uint32Array(e.buffer,0,1);return W(this,`isLittleEndian`,t[0]===1)}static get isOffscreenCanvasSupported(){return W(this,`isOffscreenCanvasSupported`,typeof OffscreenCanvas<`u`)}static get isImageDecoderSupported(){return W(this,`isImageDecoderSupported`,typeof ImageDecoder<`u`)}static get isFloat16ArraySupported(){return W(this,`isFloat16ArraySupported`,typeof Float16Array<`u`)}static get isSanitizerSupported(){return W(this,`isSanitizerSupported`,typeof Sanitizer<`u`)}static get platform(){let{platform:e,userAgent:t}=navigator;return W(this,`platform`,{isAndroid:t.includes(`Android`),isLinux:e.includes(`Linux`),isMac:e.includes(`Mac`),isWindows:e.includes(`Win`),isFirefox:t.includes(`Firefox`)})}static get isCanvasFilterSupported(){let e;return this.isOffscreenCanvasSupported?e=new OffscreenCanvas(1,1).getContext(`2d`):typeof document<`u`&&(e=document.createElement(`canvas`).getContext(`2d`)),W(this,`isCanvasFilterSupported`,e?.filter!==void 0)}static get isAlphaColorInputSupported(){if(typeof document>`u`)return W(this,`isAlphaColorInputSupported`,!1);let e=document.createElement(`input`);return e.type=`color`,e.setAttribute(`alpha`,``),e.value=`#ff000080`,W(this,`isAlphaColorInputSupported`,e.value!==`#ff0000`)}},K=class{static get hexNums(){return W(this,`hexNums`,Array.from(Array(256).keys(),e=>e.toString(16).padStart(2,`0`)))}static makeHexColor(e,t,n){return`#${this.hexNums[e]}${this.hexNums[t]}${this.hexNums[n]}`}static transform(e,t){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]]}static multiplyByDOMMatrix(e,t){return[e[0]*t.a+e[2]*t.b,e[1]*t.a+e[3]*t.b,e[0]*t.c+e[2]*t.d,e[1]*t.c+e[3]*t.d,e[0]*t.e+e[2]*t.f+e[4],e[1]*t.e+e[3]*t.f+e[5]]}static applyTransform(e,t,n=0){let r=e[n],i=e[n+1];e[n]=r*t[0]+i*t[2]+t[4],e[n+1]=r*t[1]+i*t[3]+t[5]}static applyTransformToBezier(e,t,n=0){let r=t[0],i=t[1],a=t[2],o=t[3],s=t[4],c=t[5];for(let t=0;t<6;t+=2){let l=e[n+t],u=e[n+t+1];e[n+t]=l*r+u*a+s,e[n+t+1]=l*i+u*o+c}}static applyInverseTransform(e,t){let n=e[0],r=e[1],i=t[0]*t[3]-t[1]*t[2];e[0]=(n*t[3]-r*t[2]+t[2]*t[5]-t[4]*t[3])/i,e[1]=(-n*t[1]+r*t[0]+t[4]*t[1]-t[5]*t[0])/i}static axialAlignedBoundingBox(e,t,n){let r=t[0],i=t[1],a=t[2],o=t[3],s=t[4],c=t[5],l=e[0],u=e[1],d=e[2],f=e[3],p=r*l+s,m=p,h=r*d+s,g=h,_=o*u+c,v=_,y=o*f+c,b=y;if(i!==0||a!==0){let e=i*l,t=i*d,n=a*u,r=a*f;p+=n,g+=n,h+=r,m+=r,_+=e,b+=e,y+=t,v+=t}n[0]=Math.min(n[0],p,h,m,g),n[1]=Math.min(n[1],_,y,v,b),n[2]=Math.max(n[2],p,h,m,g),n[3]=Math.max(n[3],_,y,v,b)}static inverseTransform(e){let t=e[0]*e[3]-e[1]*e[2];return[e[3]/t,-e[1]/t,-e[2]/t,e[0]/t,(e[2]*e[5]-e[4]*e[3])/t,(e[4]*e[1]-e[5]*e[0])/t]}static singularValueDecompose2dScale(e,t){let n=e[0],r=e[1],i=e[2],a=e[3],o=n**2+r**2,s=n*i+r*a,c=i**2+a**2,l=(o+c)/2,u=Math.sqrt(l**2-(o*c-s**2));t[0]=Math.sqrt(l+u||1),t[1]=Math.sqrt(l-u||1)}static normalizeRect(e){let t=e.slice(0);return e[0]>e[2]&&(t[0]=e[2],t[2]=e[0]),e[1]>e[3]&&(t[1]=e[3],t[3]=e[1]),t}static intersect(e,t){let n=Math.max(Math.min(e[0],e[2]),Math.min(t[0],t[2])),r=Math.min(Math.max(e[0],e[2]),Math.max(t[0],t[2]));if(n>r)return null;let i=Math.max(Math.min(e[1],e[3]),Math.min(t[1],t[3])),a=Math.min(Math.max(e[1],e[3]),Math.max(t[1],t[3]));return i>a?null:[n,i,r,a]}static pointBoundingBox(e,t,n){n[0]=Math.min(n[0],e),n[1]=Math.min(n[1],t),n[2]=Math.max(n[2],e),n[3]=Math.max(n[3],t)}static rectBoundingBox(e,t,n,r,i){i[0]=Math.min(i[0],e,n),i[1]=Math.min(i[1],t,r),i[2]=Math.max(i[2],e,n),i[3]=Math.max(i[3],t,r)}static#e(e,t,n,r,i,a,o,s,c,l){if(c<=0||c>=1)return;let u=1-c,d=c*c,f=d*c,p=u*(u*(u*e+3*c*t)+3*d*n)+f*r,m=u*(u*(u*i+3*c*a)+3*d*o)+f*s;l[0]=Math.min(l[0],p),l[1]=Math.min(l[1],m),l[2]=Math.max(l[2],p),l[3]=Math.max(l[3],m)}static#t(e,t,n,r,i,a,o,s,c,l,u,d){if(Math.abs(c)<1e-12){Math.abs(l)>=1e-12&&this.#e(e,t,n,r,i,a,o,s,-u/l,d);return}let f=l**2-4*u*c;if(f<0)return;let p=Math.sqrt(f),m=2*c;this.#e(e,t,n,r,i,a,o,s,(-l+p)/m,d),this.#e(e,t,n,r,i,a,o,s,(-l-p)/m,d)}static bezierBoundingBox(e,t,n,r,i,a,o,s,c){c[0]=Math.min(c[0],e,o),c[1]=Math.min(c[1],t,s),c[2]=Math.max(c[2],e,o),c[3]=Math.max(c[3],t,s),this.#t(e,n,i,o,t,r,a,s,3*(-e+3*(n-i)+o),6*(e-2*n+i),3*(n-e),c),this.#t(e,n,i,o,t,r,a,s,3*(-t+3*(r-a)+s),6*(t-2*r+a),3*(r-t),c)}};function Ce(e){return decodeURIComponent(escape(e))}var we=null,Te=null;function Ee(e){return we||(we=/([\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,Te=new Map([[`ſt`,`ſt`]])),e.replaceAll(we,(e,t,n)=>t?t.normalize(`NFKC`):Te.get(n))}function De(){if(typeof crypto.randomUUID==`function`)return crypto.randomUUID();let e=new Uint8Array(32);return crypto.getRandomValues(e),xe(e)}function Oe(e,t,n){if(!Array.isArray(n)||n.length<2)return!1;let[r,i,...a]=n;if(!e(r)&&!Number.isInteger(r)||!t(i))return!1;let o=a.length,s=!0;switch(i.name){case`XYZ`:if(o<2||o>3)return!1;break;case`Fit`:case`FitB`:return o===0;case`FitH`:case`FitBH`:case`FitV`:case`FitBV`:if(o>1)return!1;break;case`FitR`:if(o!==4)return!1;s=!1;break;default:return!1}for(let e of a)if(!(typeof e==`number`||s&&e===null))return!1;return!0}var ke=()=>[],Ae=()=>new Map,je=()=>Object.create(null);typeof Blob.prototype.bytes!=`function`&&(Blob.prototype.bytes=async function(){return new Uint8Array(await this.arrayBuffer())}),typeof Response.prototype.bytes!=`function`&&(Response.prototype.bytes=async function(){return new Uint8Array(await this.arrayBuffer())}),T(1701),T(4603),T(7566),T(8721);function q(e,t,n){return Math.min(Math.max(e,t),n)}var Me=class e{constructor({viewBox:e,userUnit:t,scale:n,rotation:r,offsetX:i=0,offsetY:a=0,dontFlip:o=!1}){this.viewBox=e,this.userUnit=t,this.scale=n,this.rotation=r,this.offsetX=i,this.offsetY=a,n*=t;let s=(e[2]+e[0])/2,c=(e[3]+e[1])/2,l,u,d,f;switch(r%=360,r<0&&(r+=360),r){case 180:l=-1,u=0,d=0,f=1;break;case 90:l=0,u=1,d=1,f=0;break;case 270:l=0,u=-1,d=-1,f=0;break;case 0:l=1,u=0,d=0,f=-1;break;default:throw Error(`PageViewport: Invalid rotation, must be a multiple of 90 degrees.`)}o&&(d=-d,f=-f);let p,m,h,g;l===0?(p=Math.abs(c-e[1])*n+i,m=Math.abs(s-e[0])*n+a,h=(e[3]-e[1])*n,g=(e[2]-e[0])*n):(p=Math.abs(s-e[0])*n+i,m=Math.abs(c-e[1])*n+a,h=(e[2]-e[0])*n,g=(e[3]-e[1])*n),this.transform=[l*n,u*n,d*n,f*n,p-l*n*s-d*n*c,m-u*n*s-f*n*c],this.width=h,this.height=g}get rawDims(){let e=this.viewBox;return W(this,`rawDims`,{pageWidth:e[2]-e[0],pageHeight:e[3]-e[1],pageX:e[0],pageY:e[1]})}clone({scale:t=this.scale,rotation:n=this.rotation,offsetX:r=this.offsetX,offsetY:i=this.offsetY,dontFlip:a=!1}={}){return new e({viewBox:this.viewBox.slice(),userUnit:this.userUnit,scale:t,rotation:n,offsetX:r,offsetY:i,dontFlip:a})}convertToViewportPoint(e,t){let n=[e,t];return K.applyTransform(n,this.transform),n}convertToViewportRectangle(e){let t=[e[0],e[1]];K.applyTransform(t,this.transform);let n=[e[2],e[3]];return K.applyTransform(n,this.transform),[t[0],t[1],n[0],n[1]]}convertToPdfPoint(e,t){let n=[e,t];return K.applyInverseTransform(n,this.transform),n}},Ne=class e{static textContent(t){let n=[],r={items:n,styles:Object.create(null)};function i(t){if(!t)return;let r=null,a=t.name;if(a===`#text`)r=t.value;else if(e.shouldBuildText(a))t?.attributes?.textContent?r=t.attributes.textContent:t.value&&(r=t.value);else return;if(r!==null&&n.push({str:r}),t.children)for(let e of t.children)i(e)}return i(t),r}static shouldBuildText(e){return!(e===`textarea`||e===`input`||e===`option`||e===`select`)}},Pe=class{static setupStorage(e,t,n,r,i){let a=r.getValue(t,{value:null});switch(n.name){case`textarea`:if(a.value!==null&&(e.textContent=a.value),i===`print`)break;e.addEventListener(`input`,e=>{r.setValue(t,{value:e.target.value})});break;case`input`:if(n.attributes.type===`radio`||n.attributes.type===`checkbox`){if(a.value===n.attributes.xfaOn?e.setAttribute(`checked`,!0):a.value===n.attributes.xfaOff&&e.removeAttribute(`checked`),i===`print`)break;e.addEventListener(`change`,e=>{r.setValue(t,{value:e.target.checked?e.target.getAttribute(`xfaOn`):e.target.getAttribute(`xfaOff`)})})}else{if(a.value!==null&&e.setAttribute(`value`,a.value),i===`print`)break;e.addEventListener(`input`,e=>{r.setValue(t,{value:e.target.value})})}break;case`select`:if(a.value!==null){e.setAttribute(`value`,a.value);for(let e of n.children)e.attributes.value===a.value?e.attributes.selected=!0:Object.hasOwn(e.attributes,`selected`)&&delete e.attributes.selected}e.addEventListener(`input`,e=>{let n=e.target.options,i=n.selectedIndex===-1?``:n[n.selectedIndex].value;r.setValue(t,{value:i})});break}}static setAttributes({html:e,element:t,storage:n=null,intent:r,linkService:i}){let{attributes:a}=t,o=e instanceof HTMLAnchorElement;a.type===`radio`&&(a.name=`${a.name}-${r}`);for(let[t,n]of Object.entries(a))if(n!=null)switch(t){case`class`:n.length&&e.setAttribute(t,n.join(` `));break;case`dataId`:break;case`id`:e.setAttribute(`data-element-id`,n);break;case`style`:Object.assign(e.style,n);break;case`textContent`:e.textContent=n;break;default:(!o||t!==`href`&&t!==`newWindow`)&&e.setAttribute(t,n)}o&&i.addLinkAttributes(e,a.href,a.newWindow),n&&a.dataId&&this.setupStorage(e,a.dataId,t,n)}static render(e){let t=e.annotationStorage,n=e.linkService,r=e.xfaHtml,i=e.intent||`display`,a=document.createElement(r.name);r.attributes&&this.setAttributes({html:a,element:r,intent:i,linkService:n});let o=i!==`richText`,s=e.div;if(s.append(a),e.viewport){let t=`matrix(${e.viewport.transform.join(`,`)})`;s.style.transform=t}o&&s.setAttribute(`class`,`xfaLayer xfaFont`);let c=[];if(r.children.length===0){if(r.value){let e=document.createTextNode(r.value);a.append(e),o&&Ne.shouldBuildText(r.name)&&c.push(e)}return{textDivs:c}}let l=[[r,-1,a]];for(;l.length>0;){let[e,r,a]=l.at(-1);if(r+1===e.children.length){l.pop();continue}let s=e.children[++l.at(-1)[1]];if(s===null)continue;let{name:u}=s;if(u===`#text`){let e=document.createTextNode(s.value);c.push(e),a.append(e);continue}let d=s?.attributes?.xmlns?document.createElementNS(s.attributes.xmlns,u):document.createElement(u);if(a.append(d),s.attributes&&this.setAttributes({html:d,element:s,storage:t,intent:i,linkService:n}),s.children?.length>0)l.push([s,-1,d]);else if(s.value){let e=document.createTextNode(s.value);o&&Ne.shouldBuildText(u)&&c.push(e),d.append(e)}}for(let e of s.querySelectorAll(`.xfaNonInteractive input, .xfaNonInteractive textarea`))e.setAttribute(`readOnly`,!0);return{textDivs:c}}static update(e){let t=`matrix(${e.viewport.transform.join(`,`)})`;e.div.style.transform=t,e.div.hidden=!1}static getPageViewport(e,{scale:t=1,rotation:n=0}){let{width:r,height:i}=e.attributes.style;return new Me({viewBox:[0,0,parseInt(r,10),parseInt(i,10)],userUnit:1,scale:t,rotation:n})}},Fe=class{static CSS=96;static PDF=72;static PDF_TO_CSS_UNITS=this.CSS/this.PDF};async function Ie(e,t=`text`){if(Ue(e,document.baseURI)){let n=await fetch(e);if(!n.ok)throw Error(n.statusText);switch(t){case`blob`:return n.blob();case`bytes`:return n.bytes();case`json`:return n.json()}return n.text()}return new Promise((n,r)=>{let i=new XMLHttpRequest;i.open(`GET`,e,!0),i.responseType=t===`bytes`?`arraybuffer`:t,i.onreadystatechange=()=>{if(i.readyState===XMLHttpRequest.DONE){if(i.status===200||i.status===0){switch(t){case`bytes`:n(new Uint8Array(i.response));return;case`blob`:case`json`:n(i.response);return}n(i.responseText);return}r(Error(i.statusText))}},i.send(null)})}var Le=class extends me{constructor(e,t=0){super(e,`RenderingCancelledException`),this.extraDelay=t}};function Re(e){let t=e.length,n=0;for(;n<t&&e[n].trim()===``;)n++;return e.substring(n,n+5).toLowerCase()===`data:`}function ze(e){return typeof e==`string`&&/\.pdf$/i.test(e)}function Be(e){return[e]=e.split(/[#?]/,1),pe(e)}function Ve(e,t=`document.pdf`){if(typeof e!=`string`)return t;if(Re(e))return H(`getPdfFilenameFromUrl: ignore "data:"-URL for performance reasons.`),t;let n=(e=>{try{return new URL(e)}catch{}try{return new URL(decodeURIComponent(e))}catch{}try{return new URL(e,`https://foo.bar`)}catch{}try{return new URL(decodeURIComponent(e),`https://foo.bar`)}catch{}return null})(e);if(!n)return t;let r=e=>{try{let t=decodeURIComponent(e);return t.includes(`/`)&&(t=pe(t),t.length===4&&i.test(t))?e:t}catch{return e}},i=/\.pdf$/i,a=pe(n.pathname);if(i.test(a))return r(a);if(n.searchParams.size>0){let e=e=>[...e].findLast(e=>i.test(e)),t=e(n.searchParams.values())??e(n.searchParams.keys());if(t)return r(t)}if(n.hash){let e=/[^/?#=]+\.pdf\b(?!.*\.pdf\b)/i.exec(n.hash);if(e)return r(e[0])}return t}var He=class{#e=new Map;times=[];time(e){this.#e.has(e)&&H(`Timer is already running for ${e}`),this.#e.set(e,Date.now())}timeEnd(e){this.#e.has(e)||H(`Timer has not been started for ${e}`),this.times.push({name:e,start:this.#e.get(e),end:Date.now()}),this.#e.delete(e)}toString(){let e=Math.max(...this.times.map(e=>e.name.length));return this.times.map(t=>`${t.name.padEnd(e)} ${t.end-t.start}ms\n`).join(``)}};function Ue(e,t){let n=t?URL.parse(e,t):URL.parse(e);return/https?:/.test(n?.protocol??``)}function We(e){e.preventDefault()}function Ge(e){e.preventDefault(),e.stopPropagation()}var Ke=class{static#e;static toDateObject(e){if(e instanceof Date)return e;if(!e||typeof e!=`string`)return null;this.#e||=RegExp(`^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+\\-])?(\\d{2})?'?(\\d{2})?'?`);let t=this.#e.exec(e);if(!t)return null;let n=parseInt(t[1],10),r=parseInt(t[2],10);r=r>=1&&r<=12?r-1:0;let i=parseInt(t[3],10);i=i>=1&&i<=31?i:1;let a=parseInt(t[4],10);a=a>=0&&a<=23?a:0;let o=parseInt(t[5],10);o=o>=0&&o<=59?o:0;let s=parseInt(t[6],10);s=s>=0&&s<=59?s:0;let c=t[7]||`Z`,l=parseInt(t[8],10);l=l>=0&&l<=23?l:0;let u=parseInt(t[9],10)||0;return u=u>=0&&u<=59?u:0,c===`-`?(a+=l,o+=u):c===`+`&&(a-=l,o-=u),new Date(Date.UTC(n,r,i,a,o,s))}};function qe(e){if(e.startsWith(`#`)){let t=e.slice(1);return[parseInt(t.slice(0,2),16),parseInt(t.slice(2,4),16),parseInt(t.slice(4,6),16),t.length>=8?parseInt(t.slice(6,8),16)/255:1]}if(e.startsWith(`rgb(`)){let[t,n,r]=e.slice(4,-1).split(`,`).map(e=>parseInt(e,10));return[t,n,r,1]}if(e.startsWith(`rgba(`)){let t=e.slice(5,-1).split(`,`);return[parseInt(t[0],10),parseInt(t[1],10),parseInt(t[2],10),parseFloat(t[3])]}let t=e.match(/^color\(srgb\s+([\d.]+)\s+([\d.]+)\s+([\d.]+)(?:\s*\/\s*([\d.]+|none))?\)$/);return t?[Math.round(parseFloat(t[1])*255),Math.round(parseFloat(t[2])*255),Math.round(parseFloat(t[3])*255),t[4]!==void 0&&t[4]!==`none`?parseFloat(t[4]):1]:null}function Je(e){let t=qe(e);return t?t.slice(0,3):(H(`Not a valid color format: "${e}"`),[0,0,0])}function Ye(e){let t=document.createElement(`span`);t.style.visibility=`hidden`,t.style.colorScheme=`only light`,document.body.append(t);for(let n of e.keys()){t.style.color=n;let r=window.getComputedStyle(t).color;e.set(n,Je(r))}t.remove()}function Xe(e){let{a:t,b:n,c:r,d:i,e:a,f:o}=e.getTransform();return[t,n,r,i,a,o]}function Ze(e){let{a:t,b:n,c:r,d:i,e:a,f:o}=e.getTransform().invertSelf();return[t,n,r,i,a,o]}function Qe(e,t,n=!1,r=!0){if(t instanceof Me){let{pageWidth:r,pageHeight:i}=t.rawDims,{style:a}=e,o=`round(down, var(--total-scale-factor) * ${r}px, var(--scale-round-x))`,s=`round(down, var(--total-scale-factor) * ${i}px, var(--scale-round-y))`;!n||t.rotation%180==0?(a.width=o,a.height=s):(a.width=s,a.height=o)}r&&e.setAttribute(`data-main-rotation`,t.rotation)}var $e=class e{constructor(){let{pixelRatio:t}=e;this.sx=t,this.sy=t}get scaled(){return this.sx!==1||this.sy!==1}get symmetric(){return this.sx===this.sy}limitCanvas(t,n,r,i,a=-1){let o=1/0,s=1/0,c=1/0;r=e.capPixels(r,a),r>0&&(o=Math.sqrt(r/(t*n))),i!==-1&&(s=i/t,c=i/n);let l=Math.min(o,s,c);return this.sx>l||this.sy>l?(this.sx=l,this.sy=l,!0):!1}static get pixelRatio(){return globalThis.devicePixelRatio||1}static capPixels(e,t){if(t>=0){let n=Math.ceil(window.screen.availWidth*window.screen.availHeight*this.pixelRatio**2*(1+t/100));return e>0?Math.min(e,n):n}return e}},et=[`image/apng`,`image/avif`,`image/bmp`,`image/gif`,`image/jpeg`,`image/png`,`image/svg+xml`,`image/webp`,`image/x-icon`],tt=class{static get isDarkMode(){return W(this,`isDarkMode`,!!window?.matchMedia?.(`(prefers-color-scheme: dark)`).matches)}},nt=class{static get commentForegroundColor(){let e=document.createElement(`span`);e.classList.add(`comment`,`sidebar`);let{style:t}=e;t.width=t.height=`0`,t.display=`none`,t.color=`var(--comment-fg-color)`,document.body.append(e);let{color:n}=window.getComputedStyle(e);return e.remove(),W(this,`commentForegroundColor`,Je(n))}};function rt(e,t){t=q(t??1,0,1);let n=255*(1-t);return e.map(e=>Math.round(e*t+n))}function it(e,t){let n=e[0]/255,r=e[1]/255,i=e[2]/255,a=Math.max(n,r,i),o=Math.min(n,r,i),s=(a+o)/2;if(a===o)t[0]=t[1]=0;else{let e=a-o;switch(t[1]=s<.5?e/(a+o):e/(2-a-o),a){case n:t[0]=((r-i)/e+(r<i?6:0))*60;break;case r:t[0]=((i-n)/e+2)*60;break;case i:t[0]=((n-r)/e+4)*60;break}}t[2]=s}function at(e,t){let n=e[0],r=e[1],i=e[2],a=(1-Math.abs(2*i-1))*r,o=a*(1-Math.abs(n/60%2-1)),s=i-a/2;switch(Math.floor(n/60)){case 0:t[0]=a+s,t[1]=o+s,t[2]=s;break;case 1:t[0]=o+s,t[1]=a+s,t[2]=s;break;case 2:t[0]=s,t[1]=a+s,t[2]=o+s;break;case 3:t[0]=s,t[1]=o+s,t[2]=a+s;break;case 4:t[0]=o+s,t[1]=s,t[2]=a+s;break;case 5:case 6:t[0]=a+s,t[1]=s,t[2]=o+s;break}}function ot(e){return e<=.03928?e/12.92:((e+.055)/1.055)**2.4}function st(e,t,n){at(e,n),n.map(ot);let r=.2126*n[0]+.7152*n[1]+.0722*n[2];at(t,n),n.map(ot);let i=.2126*n[0]+.7152*n[1]+.0722*n[2];return r>i?(r+.05)/(i+.05):(i+.05)/(r+.05)}var ct=new Map;function lt(e,t){let n=e[0]+e[1]*256+e[2]*65536+t[0]*16777216+t[1]*4294967296+t[2]*1099511627776,r=ct.get(n);if(r)return r;let i=new Float32Array(9),a=i.subarray(0,3),o=i.subarray(3,6);it(e,o);let s=i.subarray(6,9);it(t,s);let c=s[2]<.5,l=c?12:4.5;if(o[2]=c?Math.sqrt(o[2]):1-Math.sqrt(1-o[2]),st(o,s,a)<l){let e,t;for(c?(e=o[2],t=1):(e=0,t=o[2]);t-e>.005;){let n=o[2]=(e+t)/2;c===st(o,s,a)<l?e=n:t=n}o[2]=c?t:e}return at(o,a),r=K.makeHexColor(Math.round(a[0]*255),Math.round(a[1]*255),Math.round(a[2]*255)),ct.set(n,r),r}function ut({html:e,dir:t,className:n},r){let i=document.createDocumentFragment();if(typeof e==`string`){let n=document.createElement(`p`);n.dir=t||`auto`;let r=e.split(/\r\n?|\n/);for(let e=0,t=r.length;e<t;++e){let i=r[e];n.append(document.createTextNode(i)),e<t-1&&n.append(document.createElement(`br`))}i.append(n)}else Pe.render({xfaHtml:e,div:i,intent:`richText`});i.firstElementChild.classList.add(`richText`,n),r.append(i)}function dt(e){let t=new Path2D;if(!e)return t;for(let n=0,r=e.length;n<r;)switch(e[n++]){case re.moveTo:t.moveTo(e[n++],e[n++]);break;case re.lineTo:t.lineTo(e[n++],e[n++]);break;case re.curveTo:t.bezierCurveTo(e[n++],e[n++],e[n++],e[n++],e[n++],e[n++]);break;case re.quadraticCurveTo:t.quadraticCurveTo(e[n++],e[n++],e[n++],e[n++]);break;case re.closePath:t.closePath();break;default:H(`Unrecognized drawing path operator: ${e[n-1]}`);break}return t}T(4972),T(4628),T(7642),T(8004),T(3853),T(5876),T(2475),T(5024),T(1698),T(8454),T(9452),T(4979),T(3579),T(3110),T(9314),T(1148),T(9112);var ft=class e{#e=null;#t=null;#n;#r=null;#i=null;#a=null;#o=null;#s=null;static#c=null;constructor(t){this.#n=t,e.#c||=Object.freeze({freetext:`pdfjs-editor-remove-freetext-button`,highlight:`pdfjs-editor-remove-highlight-button`,ink:`pdfjs-editor-remove-ink-button`,stamp:`pdfjs-editor-remove-stamp-button`,signature:`pdfjs-editor-remove-signature-button`})}render(){let t=this.#e=document.createElement(`div`);t.classList.add(`editToolbar`,`hidden`),t.setAttribute(`role`,`toolbar`);let n=this.#n._uiManager._signal;n instanceof AbortSignal&&!n.aborted&&(t.addEventListener(`contextmenu`,We,{signal:n}),t.addEventListener(`pointerdown`,e.#l,{signal:n}));let r=this.#r=document.createElement(`div`);r.className=`buttons`,t.append(r);let i=this.#n.toolbarPosition;if(i){let{style:e}=t;e.insetInlineEnd=`${100*(this.#n._uiManager.direction===`ltr`?1-i[0]:i[0])}%`,e.top=`calc(${100*i[1]}% + var(--editor-toolbar-vert-offset))`}return t}get div(){return this.#e}static#l(e){e.stopPropagation()}#u(e){this.#n._focusEventsAllowed=!1,Ge(e)}#d(e){this.#n._focusEventsAllowed=!0,Ge(e)}#f(e){let t=this.#n._uiManager._signal;return!(t instanceof AbortSignal)||t.aborted?!1:(e.addEventListener(`focusin`,this.#u.bind(this),{capture:!0,signal:t}),e.addEventListener(`focusout`,this.#d.bind(this),{capture:!0,signal:t}),e.addEventListener(`contextmenu`,We,{signal:t}),!0)}hide(){this.#e.classList.add(`hidden`),this.#t?.hideDropdown()}show(){this.#e.classList.remove(`hidden`),this.#i?.shown(),this.#a?.shown()}addDeleteButton(){let{editorType:t,_uiManager:n}=this.#n,r=document.createElement(`button`);r.classList.add(`basic`,`deleteButton`),r.tabIndex=0,r.setAttribute(`data-l10n-id`,e.#c[t]),this.#f(r)&&r.addEventListener(`click`,e=>{n.delete()},{signal:n._signal}),this.#r.append(r)}get#p(){let e=document.createElement(`div`);return e.className=`divider`,e}async addAltText(e){let t=await e.render();this.#f(t),this.#r.append(t,this.#p),this.#i=e}addComment(e,t=null){if(this.#a)return;let n=e.renderForToolbar();if(!n)return;this.#f(n);let r=this.#o=this.#p;t?(this.#r.insertBefore(n,t),this.#r.insertBefore(r,t)):this.#r.append(n,r),this.#a=e,e.toolbar=this}addColorPicker(e){if(this.#t)return;this.#t=e;let t=e.renderButton();this.#f(t),this.#r.append(t,this.#p)}async addEditSignatureButton(e){let t=this.#s=await e.renderEditButton(this.#n);this.#f(t),this.#r.append(t,this.#p)}removeButton(e){switch(e){case`comment`:this.#a?.removeToolbarCommentButton(),this.#a=null,this.#o?.remove(),this.#o=null;break}}async addButton(e,t){switch(e){case`colorPicker`:t&&this.addColorPicker(t);break;case`altText`:t&&await this.addAltText(t);break;case`editSignature`:t&&await this.addEditSignatureButton(t);break;case`delete`:this.addDeleteButton();break;case`comment`:t&&this.addComment(t);break}}async addButtonBefore(e,t,n){if(!t&&e===`comment`)return;let r=this.#r.querySelector(n);r&&e===`comment`&&this.addComment(t,r)}updateEditSignatureButton(e){this.#s&&(this.#s.title=e)}remove(){this.#e.remove(),this.#t?.destroy(),this.#t=null}},pt=class{#e=null;#t=null;#n;constructor(e){this.#n=e}#r(){let e=this.#t=document.createElement(`div`);e.className=`editToolbar`,e.setAttribute(`role`,`toolbar`);let t=this.#n._signal;t instanceof AbortSignal&&!t.aborted&&e.addEventListener(`contextmenu`,We,{signal:t});let n=this.#e=document.createElement(`div`);return n.className=`buttons`,e.append(n),this.#n.hasCommentManager()&&this.#a(`commentButton`,`pdfjs-comment-floating-button`,`pdfjs-comment-floating-button-label`,()=>{this.#n.commentSelection(`floating_button`)}),this.#a(`highlightButton`,`pdfjs-highlight-floating-button1`,`pdfjs-highlight-floating-button-label`,()=>{this.#n.highlightSelection(`floating_button`)}),e}#i(e,t){let n=0,r=0;for(let i of e){let e=i.y+i.height;if(e<n)continue;let a=i.x+(t?i.width:0);if(e>n){r=a,n=e;continue}t?a>r&&(r=a):a<r&&(r=a)}return[t?1-r:r,n]}show(e,t,n){let[r,i]=this.#i(t,n),{style:a}=this.#t||=this.#r();e.append(this.#t),a.insetInlineEnd=`${100*r}%`,a.top=`calc(${100*i}% + var(--editor-toolbar-vert-offset))`}hide(){this.#t.remove()}#a(e,t,n,r){let i=document.createElement(`button`);i.classList.add(`basic`,e),i.tabIndex=0,i.setAttribute(`data-l10n-id`,t);let a=document.createElement(`span`);i.append(a),a.className=`visuallyHidden`,a.setAttribute(`data-l10n-id`,n);let o=this.#n._signal;o instanceof AbortSignal&&!o.aborted&&(i.addEventListener(`contextmenu`,We,{signal:o}),i.addEventListener(`click`,r,{signal:o})),this.#e.append(i)}},mt=Object.freeze({internal:`9556e50a-f4f8-4f57-9831-f9ddff0176eb`});function ht(e,t,n){for(let r of n)t.addEventListener(r,e[r].bind(e))}var gt=class e{static#e=NaN;static#t=null;static#n=NaN;static#r=null;static initializeAndAddPointerId(t){(e.#t||=new Set).add(t)}static setPointer(t,n){e.#e||=n,e.#r??=t}static setTimeStamp(t){e.#n=t}static isSamePointerId(t){return e.#e===t}static isSamePointerIdOrRemove(t){return e.#e===t?!0:(e.#t?.delete(t),!1)}static isSamePointerType(t){return e.#r===t}static isInitializedAndDifferentPointerType(t){return e.#r!==null&&!e.isSamePointerType(t)}static isSameTimeStamp(t){return e.#n===t}static isUsingMultiplePointers(){return e.#t?.size>=1}static clearPointerType(){e.#r=null}static clearPointerIds(){e.#e=NaN,e.#t=null}static clearTimeStamp(){e.#n=NaN}},_t=class{#e=0;get id(){return`${F}${this.#e++}`}},vt=class e{#e=De();#t=0;#n=null;static get _isSVGFittingCanvas(){let e=`data:image/svg+xml;charset=UTF-8,<svg viewBox="0 0 1 1" width="1" height="1" xmlns="${j}"><rect width="1" height="1" style="fill:red;"/></svg>`,t=new OffscreenCanvas(1,3).getContext(`2d`,{willReadFrequently:!0}),n=new Image;n.src=e;let r=n.decode().then(()=>(t.drawImage(n,0,0,1,1,0,0,1,3),new Uint32Array(t.getImageData(0,0,1,1).data.buffer)[0]===0));return W(this,`_isSVGFittingCanvas`,r)}async#r(t,n){this.#n||=new Map;let r=this.#n.get(t);if(r===null)return null;if(r?.bitmap)return r.refCounter+=1,r;try{r||={bitmap:null,id:`image_${this.#e}_${this.#t++}`,refCounter:0,isSvg:!1};let t;if(typeof n==`string`?(r.url=n,t=await Ie(n,`blob`)):n instanceof File?t=r.file=n:n instanceof Blob&&(t=n),t.type===`image/svg+xml`){let n=e._isSVGFittingCanvas,i=new FileReader,a=new Image,o=new Promise((e,t)=>{a.onload=()=>{r.bitmap=a,r.isSvg=!0,e()},i.onload=async()=>{let e=r.svgUrl=i.result;a.src=await n?`${e}#svgView(preserveAspectRatio(none))`:e},a.onerror=i.onerror=t});i.readAsDataURL(t),await o}else r.bitmap=await createImageBitmap(t);r.refCounter=1}catch(e){H(e),r=null}return this.#n.set(t,r),r&&this.#n.set(r.id,r),r}async getFromFile(e){let{lastModified:t,name:n,size:r,type:i}=e;return this.#r(`${t}_${n}_${r}_${i}`,e)}async getFromUrl(e){return this.#r(e,e)}async getFromBlob(e,t){let n=await t;return this.#r(e,n)}async getFromId(e){this.#n||=new Map;let t=this.#n.get(e);if(!t)return null;if(t.bitmap)return t.refCounter+=1,t;if(t.file)return this.getFromFile(t.file);if(t.blobPromise){let{blobPromise:e}=t;return delete t.blobPromise,this.getFromBlob(t.id,e)}return this.getFromUrl(t.url)}getFromCanvas(e,t){this.#n||=new Map;let n=this.#n.get(e);if(n?.bitmap)return n.refCounter+=1,n;let r=new OffscreenCanvas(t.width,t.height);return r.getContext(`2d`).drawImage(t,0,0),n={bitmap:r.transferToImageBitmap(),id:`image_${this.#e}_${this.#t++}`,refCounter:1,isSvg:!1},this.#n.set(e,n),this.#n.set(n.id,n),n}getSvgUrl(e){let t=this.#n.get(e);return t?.isSvg?t.svgUrl:null}deleteId(e){this.#n||=new Map;let t=this.#n.get(e);if(!t||(--t.refCounter,t.refCounter!==0))return;let{bitmap:n}=t;if(!t.url&&!t.file){let e=new OffscreenCanvas(n.width,n.height);e.getContext(`bitmaprenderer`).transferFromImageBitmap(n),t.blobPromise=e.convertToBlob()}n.close?.(),t.bitmap=null}isValidId(e){return e.startsWith(`image_${this.#e}_`)}},yt=class{#e=[];#t=!1;#n;#r=-1;constructor(e=128){this.#n=e}add({cmd:e,undo:t,post:n,mustExec:r,type:i=NaN,overwriteIfSameType:a=!1,keepUndo:o=!1}){if(r&&e(),this.#t)return;let s={cmd:e,undo:t,post:n,type:i};if(this.#r===-1){this.#e.length>0&&(this.#e.length=0),this.#r=0,this.#e.push(s);return}if(a&&this.#e[this.#r].type===i){o&&(s.undo=this.#e[this.#r].undo),this.#e[this.#r]=s;return}let c=this.#r+1;c===this.#n?this.#e.splice(0,1):(this.#r=c,c<this.#e.length&&this.#e.splice(c)),this.#e.push(s)}undo(){if(this.#r===-1)return;this.#t=!0;let{undo:e,post:t}=this.#e[this.#r];e(),t?.(),this.#t=!1,--this.#r}redo(){if(this.#r<this.#e.length-1){this.#r+=1,this.#t=!0;let{cmd:e,post:t}=this.#e[this.#r];e(),t?.(),this.#t=!1}}hasSomethingToUndo(){return this.#r!==-1}hasSomethingToRedo(){return this.#r<this.#e.length-1}cleanType(e){if(this.#r!==-1){for(let t=this.#r;t>=0;t--)if(this.#e[t].type!==e){this.#e.splice(t+1,this.#r-t),this.#r=t;return}this.#e.length=0,this.#r=-1}}destroy(){this.#e=null}},bt=class{constructor(e){this.buffer=[],this.callbacks=new Map,this.allKeys=new Set;let{isMac:t}=G.platform;for(let[n,r,i={}]of e)for(let e of n){let n=e.startsWith(`mac+`);t&&n?(this.callbacks.set(e.slice(4),{callback:r,options:i}),this.allKeys.add(e.split(`+`).at(-1))):!t&&!n&&(this.callbacks.set(e,{callback:r,options:i}),this.allKeys.add(e.split(`+`).at(-1)))}}#e(e){e.altKey&&this.buffer.push(`alt`),e.ctrlKey&&this.buffer.push(`ctrl`),e.metaKey&&this.buffer.push(`meta`),e.shiftKey&&this.buffer.push(`shift`),this.buffer.push(e.key);let t=this.buffer.join(`+`);return this.buffer.length=0,t}exec(e,t){if(!this.allKeys.has(t.key))return;let n=this.callbacks.get(this.#e(t));if(!n)return;let{callback:r,options:{bubbles:i=!1,args:a=[],checker:o=null}}=n;o&&!o(e,t)||(r.bind(e,...a,t)(),i||Ge(t))}},xt=class e{static _colorsMapping=new Map([[`CanvasText`,[0,0,0]],[`Canvas`,[255,255,255]]]);get _colors(){let e=new Map([[`CanvasText`,null],[`Canvas`,null]]);return Ye(e),W(this,`_colors`,e)}convert(t){let n=Je(t);if(!window.matchMedia(`(forced-colors: active)`).matches)return n;for(let[t,r]of this._colors)if(r.every((e,t)=>e===n[t]))return e._colorsMapping.get(t);return n}getHexCode(e){let t=this._colors.get(e);return t?K.makeHexColor(...t):e}},St=class e{#e=new AbortController;#t=null;#n=null;#r=new Map;#i=new Map;#a=null;#o=null;#s=null;#c=null;#l=new yt;#u=null;#d=null;#f=null;#p=0;#m=new Set;#h=null;#g=null;#_=new Set;_editorUndoBar=null;#v=!1;#y=!1;#b=!1;#x=null;#S=null;#C=null;#w=null;#T=!1;#E=null;#D=new _t;#O=!1;#k=!1;#A=!1;#j=null;#M=null;#N=null;#P=null;#F=null;#I=I.NONE;#L=new Set;#R=null;#z=null;#B=null;#V=null;#H=null;#U={isEditing:!1,isEmpty:!0,hasSomethingToUndo:!1,hasSomethingToRedo:!1,hasSelectedEditor:!1,hasSelectedText:!1};#W=[0,0];#G=null;#K=null;#q=null;#J=null;#Y=null;static TRANSLATE_SMALL=1;static TRANSLATE_BIG=10;static get _keyboardManager(){let t=e.prototype,n=e=>e.#K.contains(document.activeElement)&&document.activeElement.tagName!==`BUTTON`&&e.hasSomethingToControl(),r=(e,{target:t})=>{if(t instanceof HTMLInputElement){let{type:e}=t;return e!==`text`&&e!==`number`}return!0},i=this.TRANSLATE_SMALL,a=this.TRANSLATE_BIG;return W(this,`_keyboardManager`,new bt([[[`ctrl+a`,`mac+meta+a`],t.selectAll,{checker:r}],[[`ctrl+z`,`mac+meta+z`],t.undo,{checker:r}],[[`ctrl+y`,`ctrl+shift+z`,`mac+meta+shift+z`,`ctrl+shift+Z`,`mac+meta+shift+Z`],t.redo,{checker:r}],[[`Backspace`,`alt+Backspace`,`ctrl+Backspace`,`shift+Backspace`,`mac+Backspace`,`mac+alt+Backspace`,`mac+ctrl+Backspace`,`Delete`,`ctrl+Delete`,`shift+Delete`,`mac+Delete`],t.delete,{checker:r}],[[`Enter`,`mac+Enter`],t.addNewEditorFromKeyboard,{checker:(e,{target:t})=>!(t instanceof HTMLButtonElement)&&e.#K.contains(t)&&!e.isEnterHandled}],[[` `,`mac+ `],t.addNewEditorFromKeyboard,{checker:(e,{target:t})=>!(t instanceof HTMLButtonElement)&&e.#K.contains(document.activeElement)}],[[`Escape`,`mac+Escape`],t.unselectAll],[[`ArrowLeft`,`mac+ArrowLeft`],t.translateSelectedEditors,{args:[-i,0],checker:n}],[[`ctrl+ArrowLeft`,`mac+shift+ArrowLeft`],t.translateSelectedEditors,{args:[-a,0],checker:n}],[[`ArrowRight`,`mac+ArrowRight`],t.translateSelectedEditors,{args:[i,0],checker:n}],[[`ctrl+ArrowRight`,`mac+shift+ArrowRight`],t.translateSelectedEditors,{args:[a,0],checker:n}],[[`ArrowUp`,`mac+ArrowUp`],t.translateSelectedEditors,{args:[0,-i],checker:n}],[[`ctrl+ArrowUp`,`mac+shift+ArrowUp`],t.translateSelectedEditors,{args:[0,-a],checker:n}],[[`ArrowDown`,`mac+ArrowDown`],t.translateSelectedEditors,{args:[0,i],checker:n}],[[`ctrl+ArrowDown`,`mac+shift+ArrowDown`],t.translateSelectedEditors,{args:[0,a],checker:n}]]))}constructor(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h){let g=this._signal=this.#e.signal;this.#K=e,this.#q=t,this.#J=n,this.#o=r,this.#u=i,this.#z=a,this.#H=s,this._eventBus=o;let _={signal:g,...mt};o.on(`editingaction`,this.onEditingAction.bind(this),_),o.on(`pagechanging`,this.onPageChanging.bind(this),_),o.on(`scalechanging`,this.onScaleChanging.bind(this),_),o.on(`rotationchanging`,this.onRotationChanging.bind(this),_),o.on(`setpreference`,this.onSetPreference.bind(this),_),o.on(`switchannotationeditorparams`,e=>this.updateParams(e.type,e.value),_),window.addEventListener(`pointerdown`,()=>{this.#k=!0},{capture:!0,signal:g}),window.addEventListener(`pointerup`,()=>{this.#k=!1},{capture:!0,signal:g}),window.addEventListener(`beforeunload`,this.#Q.bind(this),{capture:!0,signal:g}),this.#ne(),this.#le(),this.#ae(),this.#s=s.annotationStorage,this.#x=s.filterFactory,this.#B=c,this.#w=l||null,this.#v=u,this.#y=d,this.#b=f,this.#F=p||null,this.viewParameters={realScale:Fe.PDF_TO_CSS_UNITS,rotation:0},this.isShiftKeyDown=!1,this._editorUndoBar=m||null,this._supportsPinchToZoom=h!==!1,i?.setSidebarUiManager(this)}destroy(){this.#Y?.resolve(),this.#Y=null,this.#e?.abort(),this.#e=null,this._signal=null;for(let e of this.#i.values())e.destroy();this.#i.clear(),this.#r.clear(),this.#_.clear(),this.#P?.clear(),this.#t=null,this.#L.clear(),this.#l.destroy(),this.#o?.destroy(),this.#u?.destroy(),this.#z?.destroy(),this.#E?.hide(),this.#E=null,this.#N?.destroy(),this.#N=null,this.#n=null,this.#S&&=(clearTimeout(this.#S),null),this.#G&&=(clearTimeout(this.#G),null),this._editorUndoBar?.destroy(),this.#H=null}combinedSignal(e){return AbortSignal.any([this._signal,e.signal])}get mlManager(){return this.#F}get useNewAltTextFlow(){return this.#y}get useNewAltTextWhenAddingImage(){return this.#b}get hcmFilter(){return W(this,`hcmFilter`,this.#B?this.#x.addHCMFilter(this.#B.foreground,this.#B.background):`none`)}get direction(){return W(this,`direction`,getComputedStyle(this.#K).direction)}get _highlightColors(){return W(this,`_highlightColors`,this.#w?new Map(this.#w.split(`,`).map(e=>(e=e.split(`=`).map(e=>e.trim()),e[1]=e[1].toUpperCase(),e))):null)}get highlightColors(){let{_highlightColors:e}=this;if(!e)return W(this,`highlightColors`,null);let t=new Map,n=!!this.#B;for(let[r,i]of e){let e=r.endsWith(`_HCM`);if(n&&e){t.set(r.replace(`_HCM`,``),i);continue}!n&&!e&&t.set(r,i)}return W(this,`highlightColors`,t)}get highlightColorNames(){return W(this,`highlightColorNames`,this.highlightColors?new Map(Array.from(this.highlightColors,e=>e.reverse())):null)}getNonHCMColor(e){if(!this._highlightColors)return e;let t=this.highlightColorNames.get(e);return this._highlightColors.get(t)||e}getNonHCMColorName(e){return this.highlightColorNames.get(e)||e}setCurrentDrawingSession(e){e?(this.unselectAll(),this.disableUserSelect(!0)):this.disableUserSelect(!1),this.#f=e}setMainHighlightColorPicker(e){this.#N=e}editAltText(e,t=!1){this.#o?.editAltText(this,e,t)}hasCommentManager(){return!!this.#u}editComment(e,t,n,r){this.#u?.showDialog(this,e,t,n,r)}selectComment(e,t){(this.#i.get(e)?.getEditorByUID(t))?.toggleComment(!0,!0)}updateComment(e){this.#u?.updateComment(e.getData())}updatePopupColor(e){this.#u?.updatePopupColor(e)}removeComment(e){this.#u?.removeComments([e.uid])}deleteComment(e,t){let n=()=>{e.comment=t};this.addCommands({cmd:()=>{this._editorUndoBar?.show(n,`comment`),this.toggleComment(null),e.comment=null},undo:n,mustExec:!0})}toggleComment(e,t,n=void 0){this.#u?.toggleCommentPopup(e,t,n)}makeCommentColor(e,t){return e&&this.#u?.makeCommentColor(e,t)||null}getCommentDialogElement(){return this.#u?.dialogElement||null}async waitForEditorsRendered(e){if(this.#i.has(e-1))return;let{resolve:t,promise:n}=Promise.withResolvers(),r=n=>{n.pageNumber===e&&(this._eventBus.off(`editorsrendered`,r),t())};this._eventBus.on(`editorsrendered`,r),await n}getSignature(e){this.#z?.getSignature({uiManager:this,editor:e})}get signatureManager(){return this.#z}switchToMode(e,t){this._eventBus.on(`annotationeditormodechanged`,t,{once:!0,signal:this._signal}),this._eventBus.dispatch(`showannotationeditorui`,{source:this,mode:e})}setPreference(e,t){this._eventBus.dispatch(`setpreference`,{source:this,name:e,value:t})}onSetPreference({name:e,value:t}){switch(e){case`enableNewAltTextWhenAddingImage`:this.#b=t;break}}onPageChanging({pageNumber:e}){this.#p=e-1}deletePage(e){for(let t of this.getEditors(e))t.remove();this.#i.delete(e),this.#p===e&&(this.#p=0)}focusMainContainer(){this.#K.focus()}findParent(e,t){for(let n of this.#i.values()){let{x:r,y:i,width:a,height:o}=n.div.getBoundingClientRect();if(e>=r&&e<=r+a&&t>=i&&t<=i+o)return n}return null}disableUserSelect(e=!1){this.#q.classList.toggle(`noUserSelect`,e)}addShouldRescale(e){this.#_.add(e)}removeShouldRescale(e){this.#_.delete(e)}onScaleChanging({scale:e}){this.commitOrRemove(),this.viewParameters.realScale=e*Fe.PDF_TO_CSS_UNITS;for(let e of this.#_)e.onScaleChanging();this.#f?.onScaleChanging()}onRotationChanging({pagesRotation:e}){this.commitOrRemove(),this.viewParameters.rotation=e}#X({anchorNode:e}){return e.nodeType===Node.TEXT_NODE?e.parentElement:e}#Z(e){let{currentLayer:t}=this;if(t.hasTextLayer(e))return t;for(let t of this.#i.values())if(t.hasTextLayer(e))return t;return null}highlightSelection(e=``,t=!1){let n=document.getSelection();if(!n||n.isCollapsed)return;let{anchorNode:r,anchorOffset:i,focusNode:a,focusOffset:o}=n,s=n.toString(),c=this.#X(n).closest(`.textLayer`),l=this.getSelectionBoxes(c);if(!l)return;n.empty();let u=this.#Z(c),d=this.#I===I.NONE,f=()=>{let n=u?.createAndAddNewEditor({x:0,y:0},!1,{methodOfCreation:e,boxes:l,anchorNode:r,anchorOffset:i,focusNode:a,focusOffset:o,text:s});d&&this.showAllEditors(`highlight`,!0,!0),t&&n?.editComment()};if(d){this.switchToMode(I.HIGHLIGHT,f);return}f()}commentSelection(e=``){this.highlightSelection(e,!0)}#Q(e){this.commitOrRemove(),this.currentLayer?.endDrawingSession(!1)}#$(){let e=document.getSelection();if(!e||e.isCollapsed)return;let t=this.#X(e).closest(`.textLayer`),n=this.getSelectionBoxes(t);n&&(this.#E||=new pt(this),this.#E.show(t,n,this.direction===`ltr`))}getAndRemoveDataFromAnnotationStorage(e){if(!this.#s)return null;let t=`${F}${e}`,n=this.#s.getRawValue(t);return n&&this.#s.remove(t),n}addToAnnotationStorage(e){!e.isEmpty()&&this.#s&&!this.#s.has(e.id)&&this.#s.setValue(e.id,e)}a11yAlert(e,t=null){let n=this.#J;n&&(n.setAttribute(`data-l10n-id`,e),t?n.setAttribute(`data-l10n-args`,JSON.stringify(t)):n.removeAttribute(`data-l10n-args`))}#ee(){let e=document.getSelection();if(!e||e.isCollapsed){this.#R&&(this.#E?.hide(),this.#R=null,this.#ue({hasSelectedText:!1}));return}let{anchorNode:t}=e;if(t===this.#R)return;let n=this.#X(e).closest(`.textLayer`);if(!n){this.#R&&(this.#E?.hide(),this.#R=null,this.#ue({hasSelectedText:!1}));return}if(this.#E?.hide(),this.#R=t,this.#ue({hasSelectedText:!0}),!(this.#I!==I.HIGHLIGHT&&this.#I!==I.NONE)&&(this.#I===I.HIGHLIGHT&&this.showAllEditors(`highlight`,!0,!0),this.#T=this.isShiftKeyDown,!this.isShiftKeyDown)){let e=this.#I===I.HIGHLIGHT?this.#Z(n):null;if(e?.toggleDrawing(),this.#k){let t=new AbortController,n=this.combinedSignal(t),r=n=>{n.type===`pointerup`&&n.button!==0||(t.abort(),e?.toggleDrawing(!0),n.type===`pointerup`&&this.#te(`main_toolbar`))};window.addEventListener(`pointerup`,r,{signal:n}),window.addEventListener(`blur`,r,{signal:n})}else e?.toggleDrawing(!0),this.#te(`main_toolbar`)}}#te(e=``){this.#I===I.HIGHLIGHT?this.highlightSelection(e):this.#v&&this.#$()}#ne(){document.addEventListener(`selectionchange`,this.#ee.bind(this),{signal:this._signal})}#re(){if(this.#C)return;this.#C=new AbortController;let e=this.combinedSignal(this.#C);window.addEventListener(`focus`,this.focus.bind(this),{signal:e}),window.addEventListener(`blur`,this.blur.bind(this),{signal:e})}#ie(){this.#C?.abort(),this.#C=null}blur(){if(this.isShiftKeyDown=!1,this.#T&&(this.#T=!1,this.#te(`main_toolbar`)),!this.hasSelection)return;let{activeElement:e}=document;for(let t of this.#L)if(t.div.contains(e)){this.#M=[t,e],t._focusEventsAllowed=!1;break}}focus(){if(!this.#M)return;let[e,t]=this.#M;this.#M=null,t.addEventListener(`focusin`,()=>{e._focusEventsAllowed=!0},{once:!0,signal:this._signal}),t.focus()}#ae(){if(this.#j)return;this.#j=new AbortController;let e=this.combinedSignal(this.#j);window.addEventListener(`keydown`,this.keydown.bind(this),{signal:e}),window.addEventListener(`keyup`,this.keyup.bind(this),{signal:e})}#oe(){this.#j?.abort(),this.#j=null}#se(){if(this.#d)return;this.#d=new AbortController;let e=this.combinedSignal(this.#d);document.addEventListener(`copy`,this.copy.bind(this),{signal:e}),document.addEventListener(`cut`,this.cut.bind(this),{signal:e}),document.addEventListener(`paste`,this.paste.bind(this),{signal:e})}#ce(){this.#d?.abort(),this.#d=null}#le(){let e=this._signal;document.addEventListener(`dragover`,this.dragOver.bind(this),{signal:e}),document.addEventListener(`drop`,this.drop.bind(this),{signal:e})}addEditListeners(){this.#ae(),this.setEditingState(!0)}removeEditListeners(){this.#oe(),this.setEditingState(!1)}dragOver(e){for(let{type:t}of e.dataTransfer.items)for(let n of this.#g)if(n.isHandlingMimeForPasting(t)){e.dataTransfer.dropEffect=`copy`,e.preventDefault();return}}drop(e){for(let t of e.dataTransfer.items)for(let n of this.#g)if(n.isHandlingMimeForPasting(t.type)){n.paste(t,this.currentLayer),e.preventDefault();return}}copy(e){if(e.preventDefault(),this.#t?.commitOrRemove(),!this.hasSelection)return;let t=[];for(let e of this.#L){let n=e.serialize(!0);n&&t.push(n)}t.length!==0&&e.clipboardData.setData(`application/pdfjs`,JSON.stringify(t))}cut(e){this.copy(e),this.delete()}async paste(e){e.preventDefault();let{clipboardData:t}=e;for(let e of t.items)for(let t of this.#g)if(t.isHandlingMimeForPasting(e.type)){t.paste(e,this.currentLayer);return}let n=t.getData(`application/pdfjs`);if(!n)return;try{n=JSON.parse(n)}catch(e){H(`paste: "${e.message}".`);return}if(!Array.isArray(n))return;this.unselectAll();let r=this.currentLayer;try{let e=[];for(let t of n){let n=await r.deserialize(t);if(!n)return;e.push(n)}this.addCommands({cmd:()=>{for(let t of e)this.#me(t);this.#_e(e)},undo:()=>{for(let t of e)t.remove()},mustExec:!0})}catch(e){H(`paste: "${e.message}".`)}}keydown(t){!this.isShiftKeyDown&&t.key===`Shift`&&(this.isShiftKeyDown=!0),this.#I!==I.NONE&&!this.isEditorHandlingKeyboard&&e._keyboardManager.exec(this,t)}keyup(e){this.isShiftKeyDown&&e.key===`Shift`&&(this.isShiftKeyDown=!1,this.#T&&(this.#T=!1,this.#te(`main_toolbar`)))}onEditingAction({name:e}){switch(e){case`undo`:case`redo`:case`delete`:case`selectAll`:this[e]();break;case`highlightSelection`:this.highlightSelection(`context_menu`);break;case`commentSelection`:this.commentSelection(`context_menu`);break}}updatePageIndex(e,t){for(let n of this.getEditors(e))n.pageIndex=t;let n=this.#a.get(e);n&&(n.pageIndex=t,this.#i.set(t,n),this.#O?n.enable():n.disable())}startUpdatePages(){this.#a=new Map(this.#i),this.#i.clear()}endUpdatePages(){this.#a=null}clonePage(e,t){for(let n of this.getEditors(e)){let e=n.serialize(n.mode!==I.HIGHLIGHT);e&&(e.pageIndex=t,e.id=this.getId(),e.isClone=!0,delete e.popupRef,this.#s.setValue(e.id,e))}}findClonesForPage(e){let t=[],{pageIndex:n}=e;for(let[r,i]of this.#s)i.pageIndex===n&&i.isClone&&(this.#s.remove(r),t.push(e.deserialize(i).then(t=>{t&&(t.isClone=!0,e.addOrRebuild(t))})));return Promise.all(t)}#ue(e){Object.entries(e).some(([e,t])=>this.#U[e]!==t)&&(this._eventBus.dispatch(`editingstateschanged`,{source:this,details:Object.assign(this.#U,e)}),this.#I===I.HIGHLIGHT&&e.hasSelectedEditor===!1&&this.#de([[L.HIGHLIGHT_FREE,!0]]))}#de(e){this._eventBus.dispatch(`annotationeditorparamschanged`,{source:this,details:e})}setEditingState(e){e?(this.#re(),this.#se(),this.#ue({isEditing:this.#I!==I.NONE,isEmpty:this.#ge(),hasSomethingToUndo:this.#l.hasSomethingToUndo(),hasSomethingToRedo:this.#l.hasSomethingToRedo(),hasSelectedEditor:!1})):(this.#ie(),this.#ce(),this.#ue({isEditing:!1}),this.disableUserSelect(!1))}registerEditorTypes(e){if(!this.#g){this.#g=e;for(let e of this.#g)this.#de(e.defaultPropertiesToUpdate)}}getId(){return this.#D.id}get currentLayer(){return this.#i.get(this.#p)}getLayer(e){return this.#i.get(e)}get currentPageIndex(){return this.#p}addLayer(e){this.#i.set(e.pageIndex,e),this.#O?e.enable():e.disable()}removeLayer(e){this.#i.delete(e.pageIndex)}async updateMode(e,t=null,n=!1,r=!1,i=!1,a=!1){if(this.#I!==e&&!(this.#Y&&(await this.#Y.promise,!this.#Y))){if(this.#Y=Promise.withResolvers(),this.#f?.commitOrRemove(),this.#I===I.POPUP&&this.#u?.hideSidebar(),this.#u?.destroyPopup(),this.#I=e,e===I.NONE){this.setEditingState(!1),this.#pe();for(let e of this.#r.values())e.hideStandaloneCommentButton();this._editorUndoBar?.hide(),this.toggleComment(null),this.#Y.resolve();return}for(let e of this.#r.values())e.addStandaloneCommentButton();e===I.SIGNATURE&&await this.#z?.loadSignatures(),n&&gt.clearPointerType(),this.setEditingState(!0),await this.#fe(),this.unselectAll();for(let t of this.#i.values())t.updateMode(e);if(e===I.POPUP){this.#n||=await this.#H.getAnnotationsByType(new Set(this.#g.map(e=>e._editorType)));let e=new Set,t=[];for(let n of this.#r.values()){let{annotationElementId:r,hasComment:i,deleted:a}=n;r&&e.add(r),i&&!a&&t.push(n.getData())}for(let n of this.#n){let{id:r,popupRef:i,contentsObj:a}=n;i&&a?.str&&!e.has(r)&&!this.#m.has(r)&&t.push(n)}this.#u?.showSidebar(t)}if(!t){r&&this.addNewEditorFromKeyboard(),this.#Y.resolve();return}for(let e of this.#r.values())e.uid===t?(this.setSelected(e),a?e.editComment():i?e.enterInEditMode():e.focus()):e.unselect();this.#Y.resolve()}}addNewEditorFromKeyboard(){this.currentLayer.canCreateNewEmptyEditor()&&this.currentLayer.addNewEditor()}updateToolbar(e){e.mode!==this.#I&&this._eventBus.dispatch(`switchannotationeditormode`,{source:this,...e})}updateParams(e,t){if(this.#g){switch(e){case L.CREATE:this.currentLayer.addNewEditor(t);return;case L.HIGHLIGHT_SHOW_ALL:this._eventBus.dispatch(`reporttelemetry`,{source:this,details:{type:`editing`,data:{type:`highlight`,action:`toggle_visibility`}}}),(this.#V||=new Map).set(e,t),this.showAllEditors(`highlight`,t);break}if(this.hasSelection)for(let n of this.#L)n.updateParams(e,t);else for(let n of this.#g)n.updateDefaultParams(e,t)}}showAllEditors(e,t,n=!1){for(let n of this.#r.values())n.editorType===e&&n.show(t);(this.#V?.get(L.HIGHLIGHT_SHOW_ALL)??!0)!==t&&this.#de([[L.HIGHLIGHT_SHOW_ALL,t]])}enableWaiting(e=!1){if(this.#A!==e){this.#A=e;for(let t of this.#i.values())e?t.disableClick():t.enableClick(),t.div.classList.toggle(`waiting`,e)}}async#fe(){if(!this.#O){this.#O=!0;let e=[];for(let t of this.#i.values())e.push(t.enable());await Promise.all(e);for(let e of this.#r.values())e.enable()}}#pe(){if(this.unselectAll(),this.#O){this.#O=!1;for(let e of this.#i.values())e.disable();for(let e of this.#r.values())e.disable()}}*getEditors(e){for(let t of this.#r.values())t.pageIndex===e&&(yield t)}getEditor(e){return this.#r.get(e)}addEditor(e){this.#r.set(e.id,e)}removeEditor(e){e.div.contains(document.activeElement)&&(this.#S&&clearTimeout(this.#S),this.#S=setTimeout(()=>{this.focusMainContainer(),this.#S=null},0)),this.#r.delete(e.id),e.annotationElementId&&this.#P?.delete(e.annotationElementId),this.unselect(e),(!e.annotationElementId||!this.#m.has(e.annotationElementId))&&this.#s?.remove(e.id)}addDeletedAnnotationElement(e){this.#m.add(e.annotationElementId),this.addChangedExistingAnnotation(e),e.deleted=!0}isDeletedAnnotationElement(e){return this.#m.has(e)}removeDeletedAnnotationElement(e){this.#m.delete(e.annotationElementId),this.removeChangedExistingAnnotation(e),e.deleted=!1}#me(e){let t=this.#i.get(e.pageIndex);t?t.addOrRebuild(e):(this.addEditor(e),this.addToAnnotationStorage(e))}setActiveEditor(e){this.#t!==e&&(this.#t=e,e&&this.#de(e.propertiesToUpdate))}get#he(){let e=null;for(e of this.#L);return e}updateUI(e){this.#he===e&&this.#de(e.propertiesToUpdate)}updateUIForDefaultProperties(e){this.#de(e.defaultPropertiesToUpdate)}toggleSelected(e){if(this.#L.has(e)){this.#L.delete(e),e.unselect(),this.#ue({hasSelectedEditor:this.hasSelection});return}this.#L.add(e),e.select(),this.#de(e.propertiesToUpdate),this.#ue({hasSelectedEditor:!0})}setSelected(e){this.updateToolbar({mode:e.mode,editId:e.uid}),this.#f?.commitOrRemove();for(let t of this.#L)t!==e&&t.unselect();this.#u?.destroyPopup(),this.#L.clear(),this.#L.add(e),e.select(),this.#de(e.propertiesToUpdate),this.#ue({hasSelectedEditor:!0})}isSelected(e){return this.#L.has(e)}get firstSelectedEditor(){return this.#L.values().next().value}unselect(e){e.unselect(),this.#L.delete(e),this.#ue({hasSelectedEditor:this.hasSelection})}get hasSelection(){return this.#L.size!==0}get isEnterHandled(){return this.#L.size===1&&this.firstSelectedEditor.isEnterHandled}undo(){this.#l.undo(),this.#ue({hasSomethingToUndo:this.#l.hasSomethingToUndo(),hasSomethingToRedo:!0,isEmpty:this.#ge()}),this._editorUndoBar?.hide()}redo(){this.#l.redo(),this.#ue({hasSomethingToUndo:!0,hasSomethingToRedo:this.#l.hasSomethingToRedo(),isEmpty:this.#ge()})}addCommands(e){this.#l.add(e),this.#ue({hasSomethingToUndo:!0,hasSomethingToRedo:!1,isEmpty:this.#ge()})}cleanUndoStack(e){this.#l.cleanType(e)}#ge(){if(this.#r.size===0)return!0;if(this.#r.size===1)for(let e of this.#r.values())return e.isEmpty();return!1}delete(){this.commitOrRemove();let e=this.currentLayer?.endDrawingSession(!0);if(!this.hasSelection&&!e)return;let t=e?[e]:[...this.#L],n=()=>{this._editorUndoBar?.show(r,t.length===1?t[0].editorType:t.length);for(let e of t)e.remove()},r=()=>{for(let e of t)this.#me(e)};this.addCommands({cmd:n,undo:r,mustExec:!0})}commitOrRemove(){this.#t?.commitOrRemove()}hasSomethingToControl(){return this.#t||this.hasSelection}#_e(e){for(let e of this.#L)e.unselect();this.#L.clear();for(let t of e)t.isEmpty()||(this.#L.add(t),t.select());this.#ue({hasSelectedEditor:this.hasSelection})}selectAll(){for(let e of this.#L)e.commit();this.#_e(this.#r.values())}unselectAll(){if(!(this.#t&&(this.#t.commitOrRemove(),this.#I!==I.NONE))&&!this.#f?.commitOrRemove()&&(this.#u?.destroyPopup(),this.hasSelection)){for(let e of this.#L)e.unselect();this.#L.clear(),this.#ue({hasSelectedEditor:!1})}}translateSelectedEditors(e,t,n=!1){if(n||this.commitOrRemove(),!this.hasSelection)return;this.#W[0]+=e,this.#W[1]+=t;let[r,i]=this.#W,a=[...this.#L];this.#G&&clearTimeout(this.#G),this.#G=setTimeout(()=>{this.#G=null,this.#W[0]=this.#W[1]=0,this.addCommands({cmd:()=>{for(let e of a)this.#r.has(e.id)&&(e.translateInPage(r,i),e.translationDone())},undo:()=>{for(let e of a)this.#r.has(e.id)&&(e.translateInPage(-r,-i),e.translationDone())},mustExec:!1})},1e3);for(let n of a)n.translateInPage(e,t),n.translationDone()}setUpDragSession(){if(this.hasSelection){this.disableUserSelect(!0),this.#h=new Map;for(let e of this.#L)this.#h.set(e,{savedX:e.x,savedY:e.y,savedPageIndex:e.pageIndex,newX:0,newY:0,newPageIndex:-1})}}endDragSession(){if(!this.#h)return!1;this.disableUserSelect(!1);let e=this.#h;this.#h=null;let t=!1;for(let[{x:n,y:r,pageIndex:i},a]of e)a.newX=n,a.newY=r,a.newPageIndex=i,t||=n!==a.savedX||r!==a.savedY||i!==a.savedPageIndex;if(!t)return!1;let n=(e,t,n,r)=>{if(this.#r.has(e.id)){let i=this.#i.get(r);i?e._setParentAndPosition(i,t,n):(e.pageIndex=r,e.x=t,e.y=n)}};return this.addCommands({cmd:()=>{for(let[t,{newX:r,newY:i,newPageIndex:a}]of e)n(t,r,i,a)},undo:()=>{for(let[t,{savedX:r,savedY:i,savedPageIndex:a}]of e)n(t,r,i,a)},mustExec:!0}),!0}dragSelectedEditors(e,t){if(this.#h)for(let n of this.#h.keys())n.drag(e,t)}rebuild(e){if(e.parent===null){let t=this.getLayer(e.pageIndex);t?(t.changeParent(e),t.addOrRebuild(e)):(this.addEditor(e),this.addToAnnotationStorage(e),e.rebuild())}else e.parent.addOrRebuild(e)}get isEditorHandlingKeyboard(){return this.getActive()?.shouldGetKeyboardEvents()||this.#L.size===1&&this.firstSelectedEditor.shouldGetKeyboardEvents()}isActive(e){return this.#t===e}getActive(){return this.#t}getMode(){return this.#I}isEditingMode(){return this.#I!==I.NONE}get imageManager(){return W(this,`imageManager`,new vt)}getSelectionBoxes(e){if(!e)return null;let t=document.getSelection();for(let n=0,r=t.rangeCount;n<r;n++)if(!e.contains(t.getRangeAt(n).commonAncestorContainer))return null;let{x:n,y:r,width:i,height:a}=e.getBoundingClientRect(),o;switch(e.getAttribute(`data-main-rotation`)){case`90`:o=(e,t,o,s)=>({x:(t-r)/a,y:1-(e+o-n)/i,width:s/a,height:o/i});break;case`180`:o=(e,t,o,s)=>({x:1-(e+o-n)/i,y:1-(t+s-r)/a,width:o/i,height:s/a});break;case`270`:o=(e,t,o,s)=>({x:1-(t+s-r)/a,y:(e-n)/i,width:s/a,height:o/i});break;default:o=(e,t,o,s)=>({x:(e-n)/i,y:(t-r)/a,width:o/i,height:s/a});break}let s=[];for(let e=0,n=t.rangeCount;e<n;e++){let n=t.getRangeAt(e);if(!n.collapsed)for(let{x:e,y:t,width:r,height:i}of n.getClientRects())r===0||i===0||s.push(o(e,t,r,i))}return s.length===0?null:s}addChangedExistingAnnotation({annotationElementId:e,id:t}){(this.#c||=new Map).set(e,t)}removeChangedExistingAnnotation({annotationElementId:e}){this.#c?.delete(e)}renderAnnotationElement(e){let t=this.#c?.get(e.data.id);if(!t)return;let n=this.#s.getRawValue(t);n&&(this.#I===I.NONE&&!n.hasBeenModified||n.renderAnnotationElement(e))}setMissingCanvas(e,t,n){let r=this.#P?.get(e);r&&(r.setCanvas(t,n),this.#P.delete(e))}addMissingCanvas(e,t){(this.#P||=new Map).set(e,t)}},Ct=class e{#e=null;#t=!1;#n=null;#r=null;#i=null;#a=null;#o=!1;#s=null;#c=null;#l=null;#u=null;#d=!1;static#f=null;static _l10n=null;constructor(t){this.#c=t,this.#d=t._uiManager.useNewAltTextFlow,e.#f||=Object.freeze({added:`pdfjs-editor-new-alt-text-added-button`,"added-label":`pdfjs-editor-new-alt-text-added-button-label`,missing:`pdfjs-editor-new-alt-text-missing-button`,"missing-label":`pdfjs-editor-new-alt-text-missing-button-label`,review:`pdfjs-editor-new-alt-text-to-review-button`,"review-label":`pdfjs-editor-new-alt-text-to-review-button-label`})}static initialize(t){e._l10n??=t}async render(){let t=this.#n=document.createElement(`button`);t.className=`altText`,t.tabIndex=`0`;let n=this.#r=document.createElement(`span`);t.append(n),this.#d?(t.classList.add(`new`),t.setAttribute(`data-l10n-id`,e.#f.missing),n.setAttribute(`data-l10n-id`,e.#f[`missing-label`])):(t.setAttribute(`data-l10n-id`,`pdfjs-editor-alt-text-button`),n.setAttribute(`data-l10n-id`,`pdfjs-editor-alt-text-button-label`));let r=this.#c._uiManager._signal;t.addEventListener(`contextmenu`,We,{signal:r}),t.addEventListener(`pointerdown`,e=>e.stopPropagation(),{signal:r});let i=e=>{e.preventDefault(),this.#c._uiManager.editAltText(this.#c),this.#d&&this.#c._reportTelemetry({action:`pdfjs.image.alt_text.image_status_label_clicked`,data:{label:this.#p}})};return t.addEventListener(`click`,i,{capture:!0,signal:r}),t.addEventListener(`keydown`,e=>{e.target===t&&e.key===`Enter`&&(this.#o=!0,i(e))},{signal:r}),await this.#m(),t}get#p(){return this.#e&&`added`||this.#e===null&&this.guessedText&&`review`||`missing`}finish(){this.#n&&(this.#n.focus({focusVisible:this.#o}),this.#o=!1)}isEmpty(){return this.#d?this.#e===null:!this.#e&&!this.#t}hasData(){return this.#d?this.#e!==null||!!this.#l:this.isEmpty()}get guessedText(){return this.#l}async setGuessedText(t){this.#e===null&&(this.#l=t,this.#u=await e._l10n.get(`pdfjs-editor-new-alt-text-generated-alt-text-with-disclaimer`,{generatedAltText:t}),this.#m())}toggleAltTextBadge(e=!1){if(!this.#d||this.#e){this.#s?.remove(),this.#s=null;return}if(!this.#s){let e=this.#s=document.createElement(`div`);e.className=`noAltTextBadge`,this.#c.div.append(e)}this.#s.classList.toggle(`hidden`,!e)}serialize(e){let t=this.#e;return!e&&this.#l===t&&(t=this.#u),{altText:t,decorative:this.#t,guessedText:this.#l,textWithDisclaimer:this.#u}}get data(){return{altText:this.#e,decorative:this.#t}}set data({altText:e,decorative:t,guessedText:n,textWithDisclaimer:r,cancel:i=!1}){n&&(this.#l=n,this.#u=r),!(this.#e===e&&this.#t===t)&&(i||(this.#e=e,this.#t=t),this.#m())}toggle(e=!1){this.#n&&(!e&&this.#a&&(clearTimeout(this.#a),this.#a=null),this.#n.disabled=!e)}shown(){this.#c._reportTelemetry({action:`pdfjs.image.alt_text.image_status_label_displayed`,data:{label:this.#p}})}destroy(){this.#n?.remove(),this.#n=null,this.#r=null,this.#i=null,this.#s?.remove(),this.#s=null}async#m(){let t=this.#n;if(!t)return;if(this.#d){if(t.classList.toggle(`done`,!!this.#e),t.setAttribute(`data-l10n-id`,e.#f[this.#p]),this.#r?.setAttribute(`data-l10n-id`,e.#f[`${this.#p}-label`]),!this.#e){this.#i?.remove();return}}else{if(!this.#e&&!this.#t){t.classList.remove(`done`),this.#i?.remove();return}t.classList.add(`done`),t.setAttribute(`data-l10n-id`,`pdfjs-editor-alt-text-edit-button`)}let n=this.#i;if(!n){this.#i=n=document.createElement(`span`),n.className=`tooltip`,n.setAttribute(`role`,`tooltip`),n.id=`alt-text-tooltip-${this.#c.id}`;let e=this.#c._uiManager._signal;e.addEventListener(`abort`,()=>{clearTimeout(this.#a),this.#a=null},{once:!0}),t.addEventListener(`mouseenter`,()=>{this.#a=setTimeout(()=>{this.#a=null,this.#i.classList.add(`show`),this.#c._reportTelemetry({action:`alt_text_tooltip`})},100)},{signal:e}),t.addEventListener(`mouseleave`,()=>{this.#a&&=(clearTimeout(this.#a),null),this.#i?.classList.remove(`show`)},{signal:e})}this.#t?n.setAttribute(`data-l10n-id`,`pdfjs-editor-alt-text-decorative-tooltip`):(n.removeAttribute(`data-l10n-id`),n.textContent=this.#e),n.parentNode||t.append(n),this.#c.getElementForAltText()?.setAttribute(`aria-describedby`,n.id)}},wt=class{#e=null;#t=null;#n=!1;#r=null;#i=null;#a=null;#o=null;#s=null;#c=!1;#l=null;constructor(e){this.#r=e}renderForToolbar(){let e=this.#t=document.createElement(`button`);return e.className=`comment`,this.#u(e,!1)}renderForStandalone(){let e=this.#e=document.createElement(`button`);e.className=`annotationCommentButton`;let t=this.#r.commentButtonPosition;if(t){let{style:n}=e;n.insetInlineEnd=`calc(${100*(this.#r._uiManager.direction===`ltr`?1-t[0]:t[0])}% - var(--comment-button-dim))`,n.top=`calc(${100*t[1]}% - var(--comment-button-dim))`;let r=this.#r.commentButtonColor;r&&(n.backgroundColor=r)}return this.#u(e,!0)}focusButton(){setTimeout(()=>{(this.#e??this.#t)?.focus()},0)}onUpdatedColor(){if(!this.#e)return;let e=this.#r.commentButtonColor;e&&(this.#e.style.backgroundColor=e),this.#r._uiManager.updatePopupColor(this.#r)}get commentButtonWidth(){return(this.#e?.getBoundingClientRect().width??0)/this.#r.parent.boundingClientRect.width}get commentPopupPositionInLayer(){if(this.#l)return this.#l;if(!this.#e)return null;let{x:e,y:t,height:n}=this.#e.getBoundingClientRect(),{x:r,y:i,width:a,height:o}=this.#r.parent.boundingClientRect;return[(e-r)/a,(t+n-i)/o]}set commentPopupPositionInLayer(e){this.#l=e}hasDefaultPopupPosition(){return this.#l===null}removeStandaloneCommentButton(){this.#e?.remove(),this.#e=null}removeToolbarCommentButton(){this.#t?.remove(),this.#t=null}setCommentButtonStates({selected:e,hasPopup:t}){this.#e&&(this.#e.classList.toggle(`selected`,e),this.#e.ariaExpanded=t)}#u(e,t){if(!this.#r._uiManager.hasCommentManager())return null;e.tabIndex=`0`,e.ariaHasPopup=`dialog`,t?(e.ariaControls=`commentPopup`,e.setAttribute(`data-l10n-id`,`pdfjs-show-comment-button`)):(e.ariaControlsElements=[this.#r._uiManager.getCommentDialogElement()],e.setAttribute(`data-l10n-id`,`pdfjs-editor-add-comment-button`));let n=this.#r._uiManager._signal;if(!(n instanceof AbortSignal)||n.aborted)return e;e.addEventListener(`contextmenu`,We,{signal:n}),t&&(e.addEventListener(`focusin`,e=>{this.#r._focusEventsAllowed=!1,Ge(e)},{capture:!0,signal:n}),e.addEventListener(`focusout`,e=>{this.#r._focusEventsAllowed=!0,Ge(e)},{capture:!0,signal:n})),e.addEventListener(`pointerdown`,e=>e.stopPropagation(),{signal:n});let r=t=>{t.preventDefault(),e===this.#t?this.edit():this.#r.toggleComment(!0)};return e.addEventListener(`click`,r,{capture:!0,signal:n}),e.addEventListener(`keydown`,t=>{t.target===e&&t.key===`Enter`&&(this.#n=!0,r(t))},{signal:n}),e.addEventListener(`pointerenter`,()=>{this.#r.toggleComment(!1,!0)},{signal:n}),e.addEventListener(`pointerleave`,()=>{this.#r.toggleComment(!1,!1)},{signal:n}),e}edit(e){let t=this.commentPopupPositionInLayer,n,r;if(t)[n,r]=t;else{[n,r]=this.#r.commentButtonPosition;let{width:e,height:t,x:i,y:a}=this.#r;n=i+n*e,r=a+r*t}let i=this.#r.parent.boundingClientRect,{x:a,y:o,width:s,height:c}=i;this.#r._uiManager.editComment(this.#r,a+n*s,o+r*c,{...e,parentDimensions:i})}finish(){this.#t&&(this.#t.focus({focusVisible:this.#n}),this.#n=!1)}isDeleted(){return this.#c||this.#o===``}isEmpty(){return this.#o===null}hasBeenEdited(){return this.isDeleted()||this.#o!==this.#i}serialize(){return this.data}get data(){return{text:this.#o,richText:this.#a,date:this.#s,deleted:this.isDeleted()}}set data(e){if(e!==this.#o&&(this.#a=null),e===null){this.#o=``,this.#c=!0;return}this.#o=e,this.#s=new Date,this.#c=!1}restoreData({text:e,richText:t,date:n}){this.#o=e,this.#a=t,this.#s=n,this.#c=!1}setInitialText(e,t=null){this.#i=e,this.data=e,this.#s=null,this.#a=t}shown(){}destroy(){this.#t?.remove(),this.#t=null,this.#e?.remove(),this.#e=null,this.#o=``,this.#a=null,this.#s=null,this.#r=null,this.#n=!1,this.#c=!1}},Tt=class e{#e;#t=!1;#n=null;#r;#i;#a;#o;#s=null;#c;#l=null;#u;#d=null;constructor({container:e,isPinchingDisabled:t=null,isPinchingStopped:n=null,onPinchStart:r=null,onPinching:i=null,onPinchEnd:a=null,signal:o}){this.#e=e,this.#n=n,this.#r=t,this.#i=r,this.#a=i,this.#o=a,this.#u=new AbortController,this.#c=AbortSignal.any([o,this.#u.signal]),e.addEventListener(`touchstart`,this.#f.bind(this),{passive:!1,signal:this.#c})}get MIN_TOUCH_DISTANCE_TO_PINCH(){return 35/$e.pixelRatio}#f(e){if(this.#r?.())return;if(e.touches.length===1){if(this.#s)return;let e=this.#s=new AbortController,t=AbortSignal.any([this.#c,e.signal]),n=this.#e,r={capture:!0,signal:t,passive:!1},i=e=>{e.pointerType===`touch`&&(this.#s?.abort(),this.#s=null)};n.addEventListener(`pointerdown`,e=>{e.pointerType===`touch`&&(Ge(e),i(e))},r),n.addEventListener(`pointerup`,i,r),n.addEventListener(`pointercancel`,i,r);return}if(!this.#d){this.#d=new AbortController;let e=AbortSignal.any([this.#c,this.#d.signal]),t=this.#e,n={signal:e,capture:!1,passive:!1};t.addEventListener(`touchmove`,this.#p.bind(this),n);let r=this.#m.bind(this);t.addEventListener(`touchend`,r,n),t.addEventListener(`touchcancel`,r,n),n.capture=!0,t.addEventListener(`pointerdown`,Ge,n),t.addEventListener(`pointermove`,Ge,n),t.addEventListener(`pointercancel`,Ge,n),t.addEventListener(`pointerup`,Ge,n),this.#i?.()}if(Ge(e),e.touches.length!==2||this.#n?.()){this.#l=null;return}let[t,n]=e.touches;t.identifier>n.identifier&&([t,n]=[n,t]),this.#l={touch0X:t.screenX,touch0Y:t.screenY,touch1X:n.screenX,touch1Y:n.screenY}}#p(t){if(!this.#l||t.touches.length!==2)return;Ge(t);let[n,r]=t.touches;n.identifier>r.identifier&&([n,r]=[r,n]);let{screenX:i,screenY:a}=n,{screenX:o,screenY:s}=r,c=this.#l,{touch0X:l,touch0Y:u,touch1X:d,touch1Y:f}=c,p=d-l,m=f-u,h=o-i,g=s-a,_=Math.hypot(h,g)||1,v=Math.hypot(p,m)||1;if(!this.#t&&Math.abs(v-_)<=e.MIN_TOUCH_DISTANCE_TO_PINCH)return;if(c.touch0X=i,c.touch0Y=a,c.touch1X=o,c.touch1Y=s,!this.#t){this.#t=!0;return}let y=[(i+o)/2,(a+s)/2];this.#a?.(y,v,_)}#m(e){e.touches.length>=2||(this.#d&&(this.#d.abort(),this.#d=null,this.#o?.()),this.#l&&(Ge(e),this.#l=null,this.#t=!1))}destroy(){this.#u?.abort(),this.#u=null,this.#s?.abort(),this.#s=null}},J=class e{#e=null;#t=null;#n=null;#r=null;#i=null;#a=!1;#o=null;#s=``;#c=null;#l=null;#u=null;#d=null;#f=null;#p=``;#m=!1;#h=null;#g=!1;#_=!1;#v=!1;#y=null;#b=0;#x=0;#S=null;#C=null;isSelected=!1;_isCopy=!1;_editToolbar=null;_initialOptions=Object.create(null);_initialData=null;_isVisible=!0;_uiManager=null;_focusEventsAllowed=!0;static _l10n=null;static _l10nAlert=null;static _l10nResizer=null;#w=!1;#T=e._zIndex++;static _borderLineWidth=-1;static _colorManager=new xt;static _zIndex=1;static _telemetryTimeout=1e3;static get _resizerKeyboardManager(){let t=e.prototype._resizeWithKeyboard,n=St.TRANSLATE_SMALL,r=St.TRANSLATE_BIG;return W(this,`_resizerKeyboardManager`,new bt([[[`ArrowLeft`,`mac+ArrowLeft`],t,{args:[-n,0]}],[[`ctrl+ArrowLeft`,`mac+shift+ArrowLeft`],t,{args:[-r,0]}],[[`ArrowRight`,`mac+ArrowRight`],t,{args:[n,0]}],[[`ctrl+ArrowRight`,`mac+shift+ArrowRight`],t,{args:[r,0]}],[[`ArrowUp`,`mac+ArrowUp`],t,{args:[0,-n]}],[[`ctrl+ArrowUp`,`mac+shift+ArrowUp`],t,{args:[0,-r]}],[[`ArrowDown`,`mac+ArrowDown`],t,{args:[0,n]}],[[`ctrl+ArrowDown`,`mac+shift+ArrowDown`],t,{args:[0,r]}],[[`Escape`,`mac+Escape`],e.prototype._stopResizingWithKeyboard]]))}constructor(e){this.parent=e.parent,this.id=e.id,this.width=this.height=null,this.pageIndex=e.parent.pageIndex,this.name=e.name,this.div=null,this._uiManager=e.uiManager,this.annotationElementId=null,this._willKeepAspectRatio=!1,this._initialOptions.isCentered=e.isCentered,this._structTreeParentId=null,this.annotationElementId=e.annotationElementId||null,this.creationDate=e.creationDate||new Date,this.modificationDate=e.modificationDate||null,this.canAddComment=!0;let{rotation:t,rawDims:{pageWidth:n,pageHeight:r,pageX:i,pageY:a}}=this.parent.viewport;this.rotation=t,this.pageRotation=(360+t-this._uiManager.viewParameters.rotation)%360,this.pageDimensions=[n,r],this.pageTranslation=[i,a];let[o,s]=this.parentDimensions;this.x=e.x/o,this.y=e.y/s,this.isAttachedToDOM=!1,this.deleted=!1}updatePageIndex(e){this.pageIndex=e}get editorType(){return Object.getPrototypeOf(this).constructor._type}get mode(){return Object.getPrototypeOf(this).constructor._editorType}static get isDrawer(){return!1}static get _defaultLineColor(){return W(this,`_defaultLineColor`,this._colorManager.getHexCode(`CanvasText`))}static deleteAnnotationElement(e){let t=new Et({id:e._uiManager.getId(),parent:e.parent,uiManager:e._uiManager});t.annotationElementId=e.annotationElementId,t.deleted=!0,t._uiManager.addToAnnotationStorage(t)}static initialize(t,n){if(e._l10n??=t,e._l10nAlert??=Object.freeze({highlight:`pdfjs-editor-highlight-added-alert`,freetext:`pdfjs-editor-freetext-added-alert`,ink:`pdfjs-editor-ink-added-alert`,stamp:`pdfjs-editor-stamp-added-alert`,signature:`pdfjs-editor-signature-added-alert`}),e._l10nResizer??=Object.freeze({topLeft:`pdfjs-editor-resizer-top-left`,topMiddle:`pdfjs-editor-resizer-top-middle`,topRight:`pdfjs-editor-resizer-top-right`,middleRight:`pdfjs-editor-resizer-middle-right`,bottomRight:`pdfjs-editor-resizer-bottom-right`,bottomMiddle:`pdfjs-editor-resizer-bottom-middle`,bottomLeft:`pdfjs-editor-resizer-bottom-left`,middleLeft:`pdfjs-editor-resizer-middle-left`}),e._borderLineWidth!==-1)return;let r=getComputedStyle(document.documentElement);e._borderLineWidth=parseFloat(r.getPropertyValue(`--outline-width`))||0}static updateDefaultParams(e,t){}static get defaultPropertiesToUpdate(){return[]}static isHandlingMimeForPasting(e){return!1}static paste(e,t){U(`Not implemented`)}get propertiesToUpdate(){return[]}get _isDraggable(){return this.#w}set _isDraggable(e){this.#w=e,this.div?.classList.toggle(`draggable`,e)}get uid(){return this.annotationElementId||this.id}get isEnterHandled(){return!0}center(){let[e,t]=this.pageDimensions;switch(this.parentRotation){case 90:this.x-=this.height*t/(e*2),this.y+=this.width*e/(t*2);break;case 180:this.x+=this.width/2,this.y+=this.height/2;break;case 270:this.x+=this.height*t/(e*2),this.y-=this.width*e/(t*2);break;default:this.x-=this.width/2,this.y-=this.height/2;break}this.fixAndSetPosition()}addCommands(e){this._uiManager.addCommands(e)}get currentLayer(){return this._uiManager.currentLayer}setInBackground(){this.div.style.zIndex=0}setInForeground(){this.div.style.zIndex=this.#T}setParent(e){e===null?(this.#W(),this.#d?.remove(),this.#d=null):(this.pageIndex=e.pageIndex,this.pageDimensions=e.pageDimensions),this.parent=e}focusin(e){this._focusEventsAllowed&&(this.#m?this.#m=!1:this.parent.setSelected(this))}focusout(e){this._focusEventsAllowed&&this.isAttachedToDOM&&(e.relatedTarget?.closest(`#${this.id}`)||(e.preventDefault(),this.parent?.isMultipleSelection||this.commitOrRemove()))}commitOrRemove(){this.isEmpty()?this.remove():this.commit()}commit(){this.isInEditMode()&&this.addToAnnotationStorage()}addToAnnotationStorage(){this._uiManager.addToAnnotationStorage(this)}setAt(e,t,n,r){let[i,a]=this.parentDimensions;[n,r]=this.screenToPageTranslation(n,r),this.x=(e+n)/i,this.y=(t+r)/a,this.fixAndSetPosition()}_moveAfterPaste(e,t){if(this.isClone){delete this.isClone;return}let[n,r]=this.parentDimensions;this.setAt(e*n,t*r,this.width*n,this.height*r),this._onTranslated()}#E([e,t],n,r){[n,r]=this.screenToPageTranslation(n,r),this.x+=n/e,this.y+=r/t,this._onTranslating(this.x,this.y),this.fixAndSetPosition()}translate(e,t){this.#E(this.parentDimensions,e,t)}translateInPage(e,t){this.#h||=[this.x,this.y,this.width,this.height],this.#E(this.pageDimensions,e,t),this.div.scrollIntoView({block:`nearest`})}translationDone(){this._onTranslated(this.x,this.y)}drag(e,t){this.#h||=[this.x,this.y,this.width,this.height];let{div:n,parentDimensions:[r,i]}=this;if(this.x+=e/r,this.y+=t/i,this.parent&&(this.x<0||this.x>1||this.y<0||this.y>1)){let{x:e,y:t}=this.div.getBoundingClientRect();this.parent.findNewParent(this,e,t)&&(this.x-=Math.floor(this.x),this.y-=Math.floor(this.y))}let{x:a,y:o}=this,[s,c]=this.getBaseTranslation();a+=s,o+=c;let{style:l}=n;l.left=`${(100*a).toFixed(2)}%`,l.top=`${(100*o).toFixed(2)}%`,this._onTranslating(a,o),n.scrollIntoView({block:`nearest`})}_onTranslating(e,t){}_onTranslated(e,t){}get _hasBeenMoved(){return!!this.#h&&(this.#h[0]!==this.x||this.#h[1]!==this.y)}get _hasBeenResized(){return!!this.#h&&(this.#h[2]!==this.width||this.#h[3]!==this.height)}getBaseTranslation(){let[t,n]=this.parentDimensions,{_borderLineWidth:r}=e,i=r/t,a=r/n;switch(this.rotation){case 90:return[-i,a];case 180:return[i,a];case 270:return[i,-a];default:return[-i,-a]}}get _mustFixPosition(){return!0}fixAndSetPosition(e=this.rotation){let{div:{style:t},pageDimensions:[n,r]}=this,{x:i,y:a,width:o,height:s}=this;if(o*=n,s*=r,i*=n,a*=r,this._mustFixPosition)switch(e){case 0:i=q(i,0,n-o),a=q(a,0,r-s);break;case 90:i=q(i,0,n-s),a=q(a,o,r);break;case 180:i=q(i,o,n),a=q(a,s,r);break;case 270:i=q(i,s,n),a=q(a,0,r-o);break}this.x=i/=n,this.y=a/=r;let[c,l]=this.getBaseTranslation();i+=c,a+=l,t.left=`${(100*i).toFixed(2)}%`,t.top=`${(100*a).toFixed(2)}%`,this.moveInDOM()}static#D(e,t,n){switch(n){case 90:return[t,-e];case 180:return[-e,-t];case 270:return[-t,e];default:return[e,t]}}screenToPageTranslation(t,n){return e.#D(t,n,this.parentRotation)}pageTranslationToScreen(t,n){return e.#D(t,n,360-this.parentRotation)}#O(e){switch(e){case 90:{let[e,t]=this.pageDimensions;return[0,-e/t,t/e,0]}case 180:return[-1,0,0,-1];case 270:{let[e,t]=this.pageDimensions;return[0,e/t,-t/e,0]}default:return[1,0,0,1]}}get parentScale(){return this._uiManager.viewParameters.realScale}get parentRotation(){return(this._uiManager.viewParameters.rotation+this.pageRotation)%360}get parentDimensions(){let{parentScale:e,pageDimensions:[t,n]}=this;return[t*e,n*e]}setDims(){let{div:{style:e},width:t,height:n}=this;e.width=`${(100*t).toFixed(2)}%`,e.height=`${(100*n).toFixed(2)}%`}getInitialTranslation(){return[0,0]}#k(){if(this.#c)return;this.#c=document.createElement(`div`),this.#c.classList.add(`resizers`);let e=this._willKeepAspectRatio?[`topLeft`,`topRight`,`bottomRight`,`bottomLeft`]:[`topLeft`,`topMiddle`,`topRight`,`middleRight`,`bottomRight`,`bottomMiddle`,`bottomLeft`,`middleLeft`],t=this._uiManager._signal;for(let n of e){let e=document.createElement(`div`);this.#c.append(e),e.classList.add(`resizer`,n),e.setAttribute(`data-resizer-name`,n),e.addEventListener(`pointerdown`,this.#A.bind(this,n),{signal:t}),e.addEventListener(`contextmenu`,We,{signal:t}),e.tabIndex=-1}this.div.prepend(this.#c)}#A(e,t){t.preventDefault();let{isMac:n}=G.platform;if(t.button!==0||t.ctrlKey&&n)return;this.#n?.toggle(!1);let r=this._isDraggable;this._isDraggable=!1,this.#l=[t.screenX,t.screenY];let i=new AbortController,a=this._uiManager.combinedSignal(i);this.parent.togglePointerEvents(!1),window.addEventListener(`pointermove`,this.#N.bind(this,e),{passive:!0,capture:!0,signal:a}),window.addEventListener(`touchmove`,Ge,{passive:!1,signal:a}),window.addEventListener(`contextmenu`,We,{signal:a}),this.#u={savedX:this.x,savedY:this.y,savedWidth:this.width,savedHeight:this.height};let o=this.parent.div.style.cursor,s=this.div.style.cursor;this.div.style.cursor=this.parent.div.style.cursor=window.getComputedStyle(t.target).cursor;let c=()=>{i.abort(),this.parent.togglePointerEvents(!0),this.#n?.toggle(!0),this._isDraggable=r,this.parent.div.style.cursor=o,this.div.style.cursor=s,this.#M()};window.addEventListener(`pointerup`,c,{signal:a}),window.addEventListener(`blur`,c,{signal:a})}#j(e,t,n,r){this.width=n,this.height=r,this.x=e,this.y=t,this.setDims(),this.fixAndSetPosition(),this._onResized()}_onResized(){}#M(){if(!this.#u)return;let{savedX:e,savedY:t,savedWidth:n,savedHeight:r}=this.#u;this.#u=null;let i=this.x,a=this.y,o=this.width,s=this.height;i===e&&a===t&&o===n&&s===r||this.addCommands({cmd:this.#j.bind(this,i,a,o,s),undo:this.#j.bind(this,e,t,n,r),mustExec:!0})}static _round(e){return Math.round(e*1e4)/1e4}#N(t,n){let[r,i]=this.parentDimensions,a=this.x,o=this.y,s=this.width,c=this.height,l=e.MIN_SIZE/r,u=e.MIN_SIZE/i,d=this.#O(this.rotation),f=(e,t)=>[d[0]*e+d[2]*t,d[1]*e+d[3]*t],p=this.#O(360-this.rotation),m=(e,t)=>[p[0]*e+p[2]*t,p[1]*e+p[3]*t],h,g,_=!1,v=!1;switch(t){case`topLeft`:_=!0,h=(e,t)=>[0,0],g=(e,t)=>[e,t];break;case`topMiddle`:h=(e,t)=>[e/2,0],g=(e,t)=>[e/2,t];break;case`topRight`:_=!0,h=(e,t)=>[e,0],g=(e,t)=>[0,t];break;case`middleRight`:v=!0,h=(e,t)=>[e,t/2],g=(e,t)=>[0,t/2];break;case`bottomRight`:_=!0,h=(e,t)=>[e,t],g=(e,t)=>[0,0];break;case`bottomMiddle`:h=(e,t)=>[e/2,t],g=(e,t)=>[e/2,0];break;case`bottomLeft`:_=!0,h=(e,t)=>[0,t],g=(e,t)=>[e,0];break;case`middleLeft`:v=!0,h=(e,t)=>[0,t/2],g=(e,t)=>[e,t/2];break}let y=h(s,c),b=g(s,c),x=f(...b),S=e._round(a+x[0]),C=e._round(o+x[1]),w=1,T=1,E,D;if(n.fromKeyboard)({deltaX:E,deltaY:D}=n);else{let{screenX:e,screenY:t}=n,[r,i]=this.#l;[E,D]=this.screenToPageTranslation(e-r,t-i),this.#l[0]=e,this.#l[1]=t}if([E,D]=m(E/r,D/i),_){let e=Math.hypot(s,c);w=T=Math.max(Math.min(Math.hypot(b[0]-y[0]-E,b[1]-y[1]-D)/e,1/s,1/c),l/s,u/c)}else v?w=q(Math.abs(b[0]-y[0]-E),l,1)/s:T=q(Math.abs(b[1]-y[1]-D),u,1)/c;let O=e._round(s*w),k=e._round(c*T);x=f(...g(O,k));let A=S-x[0],j=C-x[1];this.#h||=[this.x,this.y,this.width,this.height],this.width=O,this.height=k,this.x=A,this.y=j,this.setDims(),this.fixAndSetPosition(),this._onResizing()}_onResizing(){}altTextFinish(){this.#n?.finish()}get toolbarButtons(){return null}async addEditToolbar(){if(this._editToolbar||this.#_)return this._editToolbar;this._editToolbar=new ft(this),this.div.append(this._editToolbar.render());let{toolbarButtons:e}=this;if(e)for(let[t,n]of e)await this._editToolbar.addButton(t,n);return this.hasComment||this._editToolbar.addButton(`comment`,this.addCommentButton()),this._editToolbar.addButton(`delete`),this._editToolbar}addCommentButtonInToolbar(){this._editToolbar?.addButtonBefore(`comment`,this.addCommentButton(),`.deleteButton`)}removeCommentButtonFromToolbar(){this._editToolbar?.removeButton(`comment`)}removeEditToolbar(){this._editToolbar?.remove(),this._editToolbar=null,this.#n?.destroy()}addContainer(e){let t=this._editToolbar?.div;t?t.before(e):this.div.append(e)}getClientDimensions(){return this.div.getBoundingClientRect()}createAltText(){return this.#n||(Ct.initialize(e._l10n),this.#n=new Ct(this),this.#e&&=(this.#n.data=this.#e,null)),this.#n}get altTextData(){return this.#n?.data}set altTextData(e){this.#n&&(this.#n.data=e)}get guessedAltText(){return this.#n?.guessedText}async setGuessedAltText(e){await this.#n?.setGuessedText(e)}serializeAltText(e){return this.#n?.serialize(e)}hasAltText(){return!!this.#n&&!this.#n.isEmpty()}hasAltTextData(){return this.#n?.hasData()??!1}focusCommentButton(){this.#r?.focusButton()}addCommentButton(){return this.canAddComment?this.#r||=new wt(this):null}addStandaloneCommentButton(){if(this._uiManager.hasCommentManager()){if(this.#i){this._uiManager.isEditingMode()&&this.#i.classList.remove(`hidden`);return}this.hasComment&&(this.#i=this.#r.renderForStandalone(),this.div.append(this.#i))}}removeStandaloneCommentButton(){this.#r.removeStandaloneCommentButton(),this.#i=null}hideStandaloneCommentButton(){this.#i?.classList.add(`hidden`)}get comment(){if(!this.#r)return null;let{data:{richText:e,text:t,date:n,deleted:r}}=this.#r;return{text:t,richText:e,date:n,deleted:r,color:this.getNonHCMColor(),opacity:this.opacity??1}}set comment(e){this.#r||=new wt(this),typeof e==`object`&&e?this.#r.restoreData(e):this.#r.data=e,this.hasComment?(this.removeCommentButtonFromToolbar(),this.addStandaloneCommentButton(),this._uiManager.updateComment(this)):(this.addCommentButtonInToolbar(),this.removeStandaloneCommentButton(),this._uiManager.removeComment(this))}setCommentData({comment:e,popupRef:t,richText:n}){if(!t||(this.#r||=new wt(this),this.#r.setInitialText(e,n),!this.annotationElementId))return;let r=this._uiManager.getAndRemoveDataFromAnnotationStorage(this.annotationElementId);r&&this.updateFromAnnotationLayer(r)}get hasEditedComment(){return this.#r?.hasBeenEdited()}get hasDeletedComment(){return this.#r?.isDeleted()}get hasComment(){return!!this.#r&&!this.#r.isEmpty()&&!this.#r.isDeleted()}async editComment(e){this.#r||=new wt(this),this.#r.edit(e)}toggleComment(e,t=void 0){this.hasComment&&this._uiManager.toggleComment(this,e,t)}setSelectedCommentButton(e){this.#r.setSelectedButton(e)}addComment(e){if(this.hasEditedComment){let[,,,t]=e.rect,[n]=this.pageDimensions,[r]=this.pageTranslation,i=r+n+1,a=t-100,o=i+180;e.popup={contents:this.comment.text,deleted:this.comment.deleted,rect:[i,a,o,t]}}}updateFromAnnotationLayer({popup:{contents:e,deleted:t}}){this.#r.data=t?null:e}get parentBoundingClientRect(){return this.parent.boundingClientRect}render(){let e=this.div=document.createElement(`div`);e.setAttribute(`data-editor-rotation`,(360-this.rotation)%360),e.className=this.name,e.setAttribute(`id`,this.id),e.tabIndex=this.#a?-1:0,e.setAttribute(`role`,`application`),this.defaultL10nId&&e.setAttribute(`data-l10n-id`,this.defaultL10nId),this._isVisible||e.classList.add(`hidden`),this.setInForeground(),this.#z();let[t,n]=this.parentDimensions;this.parentRotation%180!=0&&(e.style.maxWidth=`${(100*n/t).toFixed(2)}%`,e.style.maxHeight=`${(100*t/n).toFixed(2)}%`);let[r,i]=this.getInitialTranslation();return this.translate(r,i),ht(this,e,[`keydown`,`pointerdown`,`dblclick`]),this.isResizable&&this._uiManager._supportsPinchToZoom&&(this.#C||=new Tt({container:e,isPinchingDisabled:()=>!this.isSelected,onPinchStart:this.#P.bind(this),onPinching:this.#F.bind(this),onPinchEnd:this.#I.bind(this),signal:this._uiManager._signal})),this.addStandaloneCommentButton(),this._uiManager._editorUndoBar?.hide(),e}#P(){this.#u={savedX:this.x,savedY:this.y,savedWidth:this.width,savedHeight:this.height},this.#n?.toggle(!1),this.parent.togglePointerEvents(!1)}#F(t,n,r){let i=.7,a=r/n*i+1-i;if(a===1)return;let o=this.#O(this.rotation),s=(e,t)=>[o[0]*e+o[2]*t,o[1]*e+o[3]*t],[c,l]=this.parentDimensions,u=this.x,d=this.y,f=this.width,p=this.height,m=e.MIN_SIZE/c,h=e.MIN_SIZE/l;a=Math.max(Math.min(a,1/f,1/p),m/f,h/p);let g=e._round(f*a),_=e._round(p*a);if(g===f&&_===p)return;this.#h||=[u,d,f,p];let v=s(f/2,p/2),y=e._round(u+v[0]),b=e._round(d+v[1]),x=s(g/2,_/2);this.x=y-x[0],this.y=b-x[1],this.width=g,this.height=_,this.setDims(),this.fixAndSetPosition(),this._onResizing()}#I(){this.#n?.toggle(!0),this.parent.togglePointerEvents(!0),this.#M()}pointerdown(e){let{isMac:t}=G.platform;if(e.button!==0||e.ctrlKey&&t){e.preventDefault();return}if(this.#m=!0,this._isDraggable){this.#R(e);return}this.#L(e)}#L(e){let{isMac:t}=G.platform;e.ctrlKey&&!t||e.shiftKey||e.metaKey&&t?this.parent.toggleSelected(this):this.parent.setSelected(this)}#R(e){let{isSelected:t}=this;this._uiManager.setUpDragSession();let n=!1,r=new AbortController,i=this._uiManager.combinedSignal(r),a={capture:!0,passive:!1,signal:i},o=e=>{r.abort(),this.#o=null,this.#m=!1,this._uiManager.endDragSession()||this.#L(e),n&&this._onStopDragging()};t&&(this.#b=e.clientX,this.#x=e.clientY,this.#o=e.pointerId,this.#s=e.pointerType,window.addEventListener(`pointermove`,e=>{n||(n=!0,this._uiManager.toggleComment(this,!0,!1),this._onStartDragging());let{clientX:t,clientY:r,pointerId:i}=e;if(i!==this.#o){Ge(e);return}let[a,o]=this.screenToPageTranslation(t-this.#b,r-this.#x);this.#b=t,this.#x=r,this._uiManager.dragSelectedEditors(a,o)},a),window.addEventListener(`touchmove`,Ge,a),window.addEventListener(`pointerdown`,e=>{e.pointerType===this.#s&&(this.#C||e.isPrimary)&&o(e),Ge(e)},a));let s=e=>{if(!this.#o||this.#o===e.pointerId){o(e);return}Ge(e)};window.addEventListener(`pointerup`,s,{signal:i}),window.addEventListener(`blur`,s,{signal:i})}_onStartDragging(){}_onStopDragging(){}moveInDOM(){this.#y&&clearTimeout(this.#y),this.#y=setTimeout(()=>{this.#y=null,this.parent?.moveEditorInDOM(this)},0)}_setParentAndPosition(e,t,n){e.changeParent(this),this.x=t,this.y=n,this.fixAndSetPosition(),this._onTranslated()}getRect(e,t,n=this.rotation){let r=this.parentScale,[i,a]=this.pageDimensions,[o,s]=this.pageTranslation,c=e/r,l=t/r,u=this.x*i,d=this.y*a,f=this.width*i,p=this.height*a;switch(n){case 0:return[u+c+o,a-d-l-p+s,u+c+f+o,a-d-l+s];case 90:return[u+l+o,a-d+c+s,u+l+p+o,a-d+c+f+s];case 180:return[u-c-f+o,a-d+l+s,u-c+o,a-d+l+p+s];case 270:return[u-l-p+o,a-d-c-f+s,u-l+o,a-d-c+s];default:throw Error(`Invalid rotation`)}}getRectInCurrentCoords(e,t){let[n,r,i,a]=e,o=i-n,s=a-r;switch(this.rotation){case 0:return[n,t-a,o,s];case 90:return[n,t-r,s,o];case 180:return[i,t-r,o,s];case 270:return[i,t-a,s,o];default:throw Error(`Invalid rotation`)}}getPDFRect(){return this.getRect(0,0)}getNonHCMColor(){return this.color&&e._colorManager.convert(this._uiManager.getNonHCMColor(this.color))}onUpdatedColor(){this.#r?.onUpdatedColor()}getData(){let{comment:{text:e,color:t,date:n,opacity:r,deleted:i,richText:a},uid:o,pageIndex:s,creationDate:c,modificationDate:l}=this;return{id:o,pageIndex:s,rect:this.getPDFRect(),richText:a,contentsObj:{str:e},creationDate:c,modificationDate:n||l,popupRef:!i,color:t,opacity:r}}onceAdded(e){}isEmpty(){return!1}enableEditMode(){return this.isInEditMode()?!1:(this.parent.setEditingState(!1),this.#_=!0,!0)}disableEditMode(){return this.isInEditMode()?(this.parent.setEditingState(!0),this.#_=!1,!0):!1}isInEditMode(){return this.#_}shouldGetKeyboardEvents(){return this.#v}needsToBeRebuilt(){return this.div&&!this.isAttachedToDOM}get isOnScreen(){let{top:e,left:t,bottom:n,right:r}=this.getClientDimensions(),{innerHeight:i,innerWidth:a}=window;return t<a&&r>0&&e<i&&n>0}#z(){if(this.#f||!this.div)return;this.#f=new AbortController;let e=this._uiManager.combinedSignal(this.#f);this.div.addEventListener(`focusin`,this.focusin.bind(this),{signal:e}),this.div.addEventListener(`focusout`,this.focusout.bind(this),{signal:e})}rebuild(){this.#z()}rotate(e){}resize(){}serializeDeleted(){return{id:this.annotationElementId,deleted:!0,pageIndex:this.pageIndex,popupRef:this._initialData?.popupRef||``}}serialize(e=!1,t=null){return{annotationType:this.mode,pageIndex:this.pageIndex,rect:this.getPDFRect(),rotation:this.rotation,structTreeParentId:this._structTreeParentId,popupRef:this._initialData?.popupRef||``}}static async deserialize(e,t,n){let r=new this.prototype.constructor({parent:t,id:n.getId(),uiManager:n,annotationElementId:e.annotationElementId,creationDate:e.creationDate,modificationDate:e.modificationDate});r.rotation=e.rotation,r.#e=e.accessibilityData,r._isCopy=e.isCopy||!1;let[i,a]=r.pageDimensions,[o,s,c,l]=r.getRectInCurrentCoords(e.rect,a);return r.x=o/i,r.y=s/a,r.width=c/i,r.height=l/a,r}get hasBeenModified(){return!!this.annotationElementId&&(this.deleted||this.serialize()!==null)}remove(){if(this.#f?.abort(),this.#f=null,this.isEmpty()||this.commit(),this.parent?this.parent.remove(this):this._uiManager.removeEditor(this),this.hideCommentPopup(),this.#y&&=(clearTimeout(this.#y),null),this.#W(),this.removeEditToolbar(),this.#S){for(let e of this.#S.values())clearTimeout(e);this.#S=null}this.parent=null,this.#C?.destroy(),this.#C=null,this.#d?.remove(),this.#d=null}get isResizable(){return!1}makeResizable(){this.isResizable&&(this.#k(),this.#c.classList.remove(`hidden`))}get toolbarPosition(){return null}get commentButtonPosition(){return this._uiManager.direction===`ltr`?[1,0]:[0,0]}get commentButtonPositionInPage(){let{commentButtonPosition:[t,n]}=this,[r,i,a,o]=this.getPDFRect();return[e._round(r+(a-r)*t),e._round(i+(o-i)*(1-n))]}get commentButtonColor(){return this._uiManager.makeCommentColor(this.getNonHCMColor(),this.opacity)}get commentPopupPosition(){return this.#r.commentPopupPositionInLayer}set commentPopupPosition(e){this.#r.commentPopupPositionInLayer=e}hasDefaultPopupPosition(){return this.#r.hasDefaultPopupPosition()}get commentButtonWidth(){return this.#r.commentButtonWidth}get elementBeforePopup(){return this.div}setCommentButtonStates(e){this.#r?.setCommentButtonStates(e)}keydown(t){if(!this.isResizable||t.target!==this.div||t.key!==`Enter`)return;this._uiManager.setSelected(this),this.#u={savedX:this.x,savedY:this.y,savedWidth:this.width,savedHeight:this.height};let n=this.#c.children;if(!this.#t){this.#t=Array.from(n);let t=this.#B.bind(this),r=this.#V.bind(this),i=this._uiManager._signal;for(let n of this.#t){let a=n.getAttribute(`data-resizer-name`);n.setAttribute(`role`,`spinbutton`),n.addEventListener(`keydown`,t,{signal:i}),n.addEventListener(`blur`,r,{signal:i}),n.addEventListener(`focus`,this.#H.bind(this,a),{signal:i}),n.setAttribute(`data-l10n-id`,e._l10nResizer[a])}}let r=this.#t[0],i=0;for(let e of n){if(e===r)break;i++}let a=(360-this.rotation+this.parentRotation)%360/90*(this.#t.length/4);if(a!==i){if(a<i)for(let e=0;e<i-a;e++)this.#c.append(this.#c.firstElementChild);else if(a>i)for(let e=0;e<a-i;e++)this.#c.firstElementChild.before(this.#c.lastElementChild);let t=0;for(let r of n){let n=this.#t[t++].getAttribute(`data-resizer-name`);r.setAttribute(`data-l10n-id`,e._l10nResizer[n])}}this.#U(0),this.#v=!0,this.#c.firstElementChild.focus({focusVisible:!0}),t.preventDefault(),t.stopImmediatePropagation()}#B(t){e._resizerKeyboardManager.exec(this,t)}#V(e){this.#v&&e.relatedTarget?.parentNode!==this.#c&&this.#W()}#H(e){this.#p=this.#v?e:``}#U(e){if(this.#t)for(let t of this.#t)t.tabIndex=e}_resizeWithKeyboard(e,t){this.#v&&this.#N(this.#p,{deltaX:e,deltaY:t,fromKeyboard:!0})}#W(){this.#v=!1,this.#U(-1),this.#M()}_stopResizingWithKeyboard(){this.#W(),this.div.focus()}select(){if(this.isSelected&&this._editToolbar){this._editToolbar.show();return}if(this.isSelected=!0,this.makeResizable(),this.div?.classList.add(`selectedEditor`),!this._editToolbar){this.addEditToolbar().then(()=>{this.div?.classList.contains(`selectedEditor`)&&this._editToolbar?.show()});return}this._editToolbar?.show(),this.#n?.toggleAltTextBadge(!1)}focus(){this.div&&!this.div.contains(document.activeElement)&&setTimeout(()=>this.div?.focus({preventScroll:!0}),0)}unselect(){this.isSelected&&(this.isSelected=!1,this.#c?.classList.add(`hidden`),this.div?.classList.remove(`selectedEditor`),this.div?.contains(document.activeElement)&&this._uiManager.currentLayer.div.focus({preventScroll:!0}),this._editToolbar?.hide(),this.#n?.toggleAltTextBadge(!0),this.hideCommentPopup())}hideCommentPopup(){this.hasComment&&this._uiManager.toggleComment(null)}updateParams(e,t){}disableEditing(){}enableEditing(){}get canChangeContent(){return!1}enterInEditMode(){this.canChangeContent&&(this.enableEditMode(),this.div.focus())}dblclick(e){e.target.nodeName!==`BUTTON`&&(this.enterInEditMode(),this.parent.updateToolbar({mode:this.constructor._editorType,editId:this.uid}))}getElementForAltText(){return this.div}get contentDiv(){return this.div}get isEditing(){return this.#g}set isEditing(e){this.#g=e,this.parent&&(e?(this.parent.setSelected(this),this.parent.setActiveEditor(this)):this.parent.setActiveEditor(null))}static get MIN_SIZE(){return 16}static canCreateNewEmptyEditor(){return!0}get telemetryInitialData(){return{action:`added`}}get telemetryFinalData(){return null}_reportTelemetry(t,n=!1){if(n){this.#S||=new Map;let{action:n}=t,r=this.#S.get(n);r&&clearTimeout(r),r=setTimeout(()=>{this._reportTelemetry(t),this.#S.delete(n),this.#S.size===0&&(this.#S=null)},e._telemetryTimeout),this.#S.set(n,r);return}t.type||=this.editorType,this._uiManager._eventBus.dispatch(`reporttelemetry`,{source:this,details:{type:`editing`,data:t}})}show(e=this._isVisible){this.div.classList.toggle(`hidden`,!e),this._isVisible=e}enable(){this.div&&(this.div.tabIndex=0),this.#a=!1}disable(){this.div&&(this.div.tabIndex=-1),this.#a=!0}updateFakeAnnotationElement(e){if(!this.#d&&!this.deleted){this.#d=e.addFakeAnnotation(this);return}if(this.deleted){this.#d.remove(),this.#d=null;return}(this.hasEditedComment||this._hasBeenMoved||this._hasBeenResized)&&this.#d.updateEdited({rect:this.getPDFRect(),popup:this.comment})}renderAnnotationElement(e){if(this.deleted)return e.hide(),null;let t=e.container.querySelector(`.annotationContent`);if(!t)t=document.createElement(`div`),t.classList.add(`annotationContent`,this.editorType),e.container.prepend(t);else if(t.nodeName===`CANVAS`){let e=t;t=document.createElement(`div`),t.classList.add(`annotationContent`,this.editorType),e.before(t)}return t}resetAnnotationElement(e){let{firstElementChild:t}=e.container;t?.nodeName===`DIV`&&t.classList.contains(`annotationContent`)&&t.remove()}},Et=class extends J{constructor(e){super(e),this.annotationElementId=e.annotationElementId,this.deleted=!0}serialize(){return this.serializeDeleted()}},Dt=3285377520,Ot=4294901760,kt=65535,At=class{constructor(e){this.h1=e?e&4294967295:Dt,this.h2=e?e&4294967295:Dt}update(e){let t,n;if(typeof e==`string`){t=new Uint8Array(e.length*2),n=0;for(let r=0,i=e.length;r<i;r++){let i=e.charCodeAt(r);i<=255?t[n++]=i:(t[n++]=i>>>8,t[n++]=i&255)}}else if(ArrayBuffer.isView(e))t=e.slice(),n=t.byteLength;else throw Error(`Invalid data format, must be a string or TypedArray.`);let r=n>>2,i=n-r*4,a=new Uint32Array(t.buffer,0,r),o=0,s=0,c=this.h1,l=this.h2,u=3432918353,d=461845907,f=11601,p=13715;for(let e=0;e<r;e++)e&1?(o=a[e],o=o*u&Ot|o*f&kt,o=o<<15|o>>>17,o=o*d&Ot|o*p&kt,c^=o,c=c<<13|c>>>19,c=c*5+3864292196):(s=a[e],s=s*u&Ot|s*f&kt,s=s<<15|s>>>17,s=s*d&Ot|s*p&kt,l^=s,l=l<<13|l>>>19,l=l*5+3864292196);switch(o=0,i){case 3:o^=t[r*4+2]<<16;case 2:o^=t[r*4+1]<<8;case 1:o^=t[r*4],o=o*u&Ot|o*f&kt,o=o<<15|o>>>17,o=o*d&Ot|o*p&kt,r&1?c^=o:l^=o}this.h1=c,this.h2=l}hexdigest(){let e=this.h1,t=this.h2;return e^=t>>>1,e=e*3981806797&Ot|e*36045&kt,t=t*4283543511&Ot|((t<<16|e>>>16)*2950163797&Ot)>>>16,e^=t>>>1,e=e*444984403&Ot|e*60499&kt,t=t*3301882366&Ot|((t<<16|e>>>16)*3120437893&Ot)>>>16,e^=t>>>1,(e>>>0).toString(16).padStart(8,`0`)+(t>>>0).toString(16).padStart(8,`0`)}},jt=Object.freeze({map:null,hash:``,transfer:void 0}),Mt=class{#e=!1;#t=null;#n=null;#r=new Map;onSetModified=null;onResetModified=null;onAnnotationEditor=null;getValue(e,t){let n=this.#r.get(e);return n===void 0?t:Object.assign(t,n)}getRawValue(e){return this.#r.get(e)}remove(e){let t=this.#r.get(e);t!==void 0&&(t instanceof J&&this.#n.delete(t.annotationElementId),this.#r.delete(e),this.#r.size===0&&this.resetModified(),!this.#r.values().some(e=>e instanceof J)&&this.onAnnotationEditor?.(null))}setValue(e,t){let n=this.#r.get(e),r=!1;if(n!==void 0)for(let[e,i]of Object.entries(t))n[e]!==i&&(r=!0,n[e]=i);else r=!0,this.#r.set(e,t);r&&this.#i(),t instanceof J&&((this.#n||=new Map).set(t.annotationElementId,t),this.onAnnotationEditor?.(t.constructor._type))}has(e){return this.#r.has(e)}get size(){return this.#r.size}#i(){this.#e||(this.#e=!0,this.onSetModified?.())}resetModified(){this.#e&&(this.#e=!1,this.onResetModified?.())}get print(){return new Nt(this)}get serializable(){if(this.#r.size===0)return jt;let e=new Map,t=new At,n=[],r=Object.create(null),i=!1;for(let[n,a]of this.#r){let o=a instanceof J?a.serialize(!1,r):a;a.page&&(a.pageIndex=a.page._pageIndex,delete a.page),o&&(e.set(n,o),t.update(`${n}:${JSON.stringify(o)}`),i||=!!o.bitmap)}if(i)for(let t of e.values())t.bitmap&&n.push(t.bitmap);return e.size>0?{map:e,hash:t.hexdigest(),transfer:n}:jt}get editorStats(){let e=null,t=new Map,n=0,r=0;for(let i of this.#r.values()){if(!(i instanceof J)){i.popup&&(i.popup.deleted?r+=1:n+=1);continue}i.isCommentDeleted?r+=1:i.hasEditedComment&&(n+=1);let a=i.telemetryFinalData;if(!a)continue;let{type:o}=a;t.has(o)||t.set(o,Object.getPrototypeOf(i).constructor),e||=Object.create(null);let s=e[o]||=new Map;for(let[e,t]of Object.entries(a)){if(e===`type`)continue;let n=s.getOrInsertComputed(e,Ae);n.set(t,(n.get(t)??0)+1)}}if((r>0||n>0)&&(e||=Object.create(null),e.comments={deleted:r,edited:n}),!e)return null;for(let[n,r]of t)e[n]=r.computeTelemetryFinalData(e[n]);return e}resetModifiedIds(){this.#t=null}updateEditor(e,t){let n=this.#n?.get(e);return n?(n.updateFromAnnotationLayer(t),!0):!1}getEditor(e){return this.#n?.get(e)||null}get modifiedIds(){if(this.#t)return this.#t;let e=[];if(this.#n)for(let t of this.#n.values())t.serialize()&&e.push(t.annotationElementId);let t=``;if(e.length){let n=new At;n.update(e.join(`,`)),t=n.hexdigest()}return this.#t={ids:new Set(e),hash:t}}[Symbol.iterator](){return this.#r.entries()}},Nt=class extends Mt{#e=jt;constructor(e){super();let{serializable:t}=e;if(t===jt)return;let{map:n,hash:r,transfer:i}=t,a=structuredClone(n,i?{transfer:i}:null);this.#e={map:a,hash:r,transfer:[]}}get print(){U(`Should not call PrintAnnotationStorage.print`)}get serializable(){return this.#e}get modifiedIds(){return W(this,`modifiedIds`,{ids:new Set,hash:``})}};T(7588);var Pt=`__forcedDependency`,{floor:Ft,ceil:It}=Math;function Lt(e,t,n,r,i,a){e[t*4+0]=Math.min(e[t*4+0],n),e[t*4+1]=Math.min(e[t*4+1],r),e[t*4+2]=Math.max(e[t*4+2],i),e[t*4+3]=Math.max(e[t*4+3],a)}function Rt(e,t,n,r,i){let a;e?(e<0&&(a=i[0],i[0]=i[2],i[2]=a),i[0]*=e,i[2]*=e,t<0&&(a=i[1],i[1]=i[3],i[3]=a),i[1]*=t,i[3]*=t):i.fill(0),i[0]+=n,i[1]+=r,i[2]+=n,i[3]+=r}var zt=new Uint32Array(new Uint8Array([255,255,0,0]).buffer)[0],Bt=class{#e;#t;constructor(e,t){this.#e=e,this.#t=t}get length(){return this.#e.length}isEmpty(e){return this.#e[e]===zt}minX(e){return this.#t[e*4+0]/256}minY(e){return this.#t[e*4+1]/256}maxX(e){return(this.#t[e*4+2]+1)/256}maxY(e){return(this.#t[e*4+3]+1)/256}},Vt=(e,t)=>e?.getOrInsertComputed(t,()=>({dependencies:new Set,isRenderingOperation:!1})),Ht=class{#e=[[1,0,0,1,0,0]];#t=[-1/0,-1/0,1/0,1/0];#n=new Float64Array(D);_pendingBBoxIdx=-1;#r;#i;#a;#o;_savesStack=[];_markedContentStack=[];constructor(e,t){this.#r=e.width,this.#i=e.height,this.#s(t)}growOperationsCount(e){e>=this.#o.length&&this.#s(e,this.#o)}#s(e,t){let n=new ArrayBuffer(e*4);this.#a=new Uint8ClampedArray(n),this.#o=new Uint32Array(n),t&&t.length>0?(this.#o.set(t),this.#o.fill(zt,t.length)):this.#o.fill(zt)}get clipBox(){return this.#t}save(e){return this.#t={__proto__:this.#t},this._savesStack.push(e),this}restore(e,t){let n=Object.getPrototypeOf(this.#t);if(n===null)return this;this.#t=n;let r=this._savesStack.pop();return r!==void 0&&(t?.(r,e),this.#o[e]=this.#o[r]),this}recordOpenMarker(e){return this._savesStack.push(e),this}getOpenMarker(){return this._savesStack.length===0?null:this._savesStack.at(-1)}recordCloseMarker(e,t){let n=this._savesStack.pop();return n!==void 0&&(t?.(n,e),this.#o[e]=this.#o[n]),this}beginMarkedContent(e){return this._markedContentStack.push(e),this}endMarkedContent(e,t){let n=this._markedContentStack.pop();return n!==void 0&&(t?.(n,e),this.#o[e]=this.#o[n]),this}pushBaseTransform(e){return this.#e.push(K.multiplyByDOMMatrix(this.#e.at(-1),e.getTransform())),this}popBaseTransform(){return this.#e.length>1&&this.#e.pop(),this}resetBBox(e){return this._pendingBBoxIdx!==e&&(this._pendingBBoxIdx=e,this.#n.set(D,0)),this}recordClipBox(e,t,n,r,i,a){let o=K.multiplyByDOMMatrix(this.#e.at(-1),t.getTransform()),s=D.slice();K.axialAlignedBoundingBox([n,i,r,a],o,s);let c=K.intersect(this.#t,s);return c?(this.#t[0]=c[0],this.#t[1]=c[1],this.#t[2]=c[2],this.#t[3]=c[3]):(this.#t[0]=this.#t[1]=1/0,this.#t[2]=this.#t[3]=-1/0),this}recordBBox(e,t,n,r,i,a){let o=this.#t;if(o[0]===1/0)return this;let s=K.multiplyByDOMMatrix(this.#e.at(-1),t.getTransform());if(o[0]===-1/0)return K.axialAlignedBoundingBox([n,i,r,a],s,this.#n),this;let c=D.slice();return K.axialAlignedBoundingBox([n,i,r,a],s,c),this.#n[0]=q(c[0],o[0],this.#n[0]),this.#n[1]=q(c[1],o[1],this.#n[1]),this.#n[2]=q(c[2],this.#n[2],o[2]),this.#n[3]=q(c[3],this.#n[3],o[3]),this}recordFullPageBBox(e){return this.#n[0]=Math.max(0,this.#t[0]),this.#n[1]=Math.max(0,this.#t[1]),this.#n[2]=Math.min(this.#r,this.#t[2]),this.#n[3]=Math.min(this.#i,this.#t[3]),this}recordOperation(e,t=!1,n){if(this._pendingBBoxIdx!==e)return this;let r=Ft(this.#n[0]*256/this.#r),i=Ft(this.#n[1]*256/this.#i),a=It(this.#n[2]*256/this.#r),o=It(this.#n[3]*256/this.#i);if(Lt(this.#a,e,r,i,a,o),n)for(let t of n)for(let n of t)n!==e&&Lt(this.#a,n,r,i,a,o);return t||(this._pendingBBoxIdx=-1),this}bboxToClipBoxDropOperation(e){return this._pendingBBoxIdx===e&&(this._pendingBBoxIdx=-1,this.#t[0]=Math.max(this.#t[0],this.#n[0]),this.#t[1]=Math.max(this.#t[1],this.#n[1]),this.#t[2]=Math.min(this.#t[2],this.#n[2]),this.#t[3]=Math.min(this.#t[3],this.#n[3])),this}take(){return new Bt(this.#o,this.#a)}takeDebugMetadata(){throw Error(`Unreachable`)}recordSimpleData(e,t){return this}recordIncrementalData(e,t){return this}resetIncrementalData(e,t){return this}recordNamedData(e,t){return this}recordSimpleDataFromNamed(e,t,n){return this}recordFutureForcedDependency(e,t){return this}inheritSimpleDataAsFutureForcedDependencies(e){return this}inheritPendingDependenciesAsFutureForcedDependencies(){return this}recordCharacterBBox(e,t,n,r=1,i=0,a=0,o){return this}getSimpleIndex(e){}recordDependencies(e,t){return this}recordNamedDependency(e,t){return this}recordShowTextOperation(e,t=!1){return this}},Ut=class{#e={__proto__:null};#t={__proto__:null,transform:[],moveText:[],sameLineText:[],[Pt]:[]};#n=new Map;#r=new Set;#i=new Map;#a;#o;#s;constructor(e,t=!1){this.#s=e,t&&(this.#a=new Map,this.#o=(e,t)=>{Vt(this.#a,t).dependencies.add(e)})}get clipBox(){return this.#s.clipBox}growOperationsCount(e){this.#s.growOperationsCount(e)}save(e){return this.#e={__proto__:this.#e},this.#t={__proto__:this.#t,transform:{__proto__:this.#t.transform},moveText:{__proto__:this.#t.moveText},sameLineText:{__proto__:this.#t.sameLineText},[Pt]:{__proto__:this.#t[Pt]}},this.#s.save(e),this}restore(e){this.#s.restore(e,this.#o);let t=Object.getPrototypeOf(this.#e);return t===null?this:(this.#e=t,this.#t=Object.getPrototypeOf(this.#t),this)}recordOpenMarker(e){return this.#s.recordOpenMarker(e,this.#o),this}getOpenMarker(){return this.#s.getOpenMarker()}recordCloseMarker(e){return this.#s.recordCloseMarker(e,this.#o),this}beginMarkedContent(e){return this.#s.beginMarkedContent(e),this}endMarkedContent(e){return this.#s.endMarkedContent(e,this.#o),this}pushBaseTransform(e){return this.#s.pushBaseTransform(e),this}popBaseTransform(){return this.#s.popBaseTransform(),this}recordSimpleData(e,t){return this.#e[e]=t,this}recordIncrementalData(e,t){return this.#t[e].push(t),this}resetIncrementalData(e,t){return this.#t[e].length=0,this}recordNamedData(e,t){return this.#n.set(e,t),this}recordSimpleDataFromNamed(e,t,n){this.#e[e]=this.#n.get(t)??n}recordFutureForcedDependency(e,t){return this.recordIncrementalData(Pt,t),this}inheritSimpleDataAsFutureForcedDependencies(e){for(let t of e)t in this.#e&&this.recordFutureForcedDependency(t,this.#e[t]);return this}inheritPendingDependenciesAsFutureForcedDependencies(){for(let e of this.#r)this.recordFutureForcedDependency(Pt,e);return this}resetBBox(e){return this.#s.resetBBox(e),this}recordClipBox(e,t,n,r,i,a){return this.#s.recordClipBox(e,t,n,r,i,a),this}recordBBox(e,t,n,r,i,a){return this.#s.recordBBox(e,t,n,r,i,a),this}recordCharacterBBox(e,t,n,r=1,i=0,a=0,o){let s=n.bbox,c,l;if(s&&(c=s[2]!==s[0]&&s[3]!==s[1]&&this.#i.get(n),c!==!1&&(l=[0,0,0,0],K.axialAlignedBoundingBox(s,n.fontMatrix,l),(r!==1||i!==0||a!==0)&&Rt(r,-r,i,a,l),c)))return this.recordBBox(e,t,l[0],l[2],l[1],l[3]);if(!o)return this.recordFullPageBBox(e);let u=o();return s&&l&&c===void 0&&(c=l[0]<=i-u.actualBoundingBoxLeft&&l[2]>=i+u.actualBoundingBoxRight&&l[1]<=a-u.actualBoundingBoxAscent&&l[3]>=a+u.actualBoundingBoxDescent,this.#i.set(n,c),c)?this.recordBBox(e,t,l[0],l[2],l[1],l[3]):this.recordBBox(e,t,i-u.actualBoundingBoxLeft,i+u.actualBoundingBoxRight,a-u.actualBoundingBoxAscent,a+u.actualBoundingBoxDescent)}recordFullPageBBox(e){return this.#s.recordFullPageBBox(e),this}getSimpleIndex(e){return this.#e[e]}recordDependencies(e,t){let n=this.#r,r=this.#e,i=this.#t;for(let e of t)e in this.#e?n.add(r[e]):e in i&&i[e].forEach(n.add,n);return this}recordNamedDependency(e,t){return this.#n.has(t)&&this.#r.add(this.#n.get(t)),this}recordOperation(e,t=!1){if(this.recordDependencies(e,[Pt]),this.#a){let t=Vt(this.#a,e),{dependencies:n}=t;this.#r.forEach(n.add,n),this.#s._savesStack.forEach(n.add,n),this.#s._markedContentStack.forEach(n.add,n),n.delete(e),t.isRenderingOperation=!0}let n=!t&&e===this.#s._pendingBBoxIdx;return this.#s.recordOperation(e,t,[this.#r,this.#s._savesStack,this.#s._markedContentStack]),n&&this.#r.clear(),this}recordShowTextOperation(e,t=!1){let n=Array.from(this.#r);this.recordOperation(e,t),this.recordIncrementalData(`sameLineText`,e);for(let e of n)this.recordIncrementalData(`sameLineText`,e);return this}bboxToClipBoxDropOperation(e,t=!1){let n=!t&&e===this.#s._pendingBBoxIdx;return this.#s.bboxToClipBoxDropOperation(e),n&&this.#r.clear(),this}take(){return this.#i.clear(),this.#s.take()}takeDebugMetadata(){return this.#a}},Wt=class e{#e;#t;#n;#r=0;#i=0;constructor(t,n,r){if(t instanceof e&&t.#n===!!r)return t;this.#e=t,this.#t=n,this.#n=!!r}get clipBox(){return this.#e.clipBox}growOperationsCount(){throw Error(`Unreachable`)}save(e){return this.#i++,this.#e.save(this.#t),this}restore(e){return this.#i>0&&(this.#e.restore(this.#t),this.#i--),this}recordOpenMarker(e){return this.#r++,this}getOpenMarker(){return this.#r>0?this.#t:this.#e.getOpenMarker()}recordCloseMarker(e){return this.#r--,this}beginMarkedContent(e){return this}endMarkedContent(e){return this}pushBaseTransform(e){return this.#e.pushBaseTransform(e),this}popBaseTransform(){return this.#e.popBaseTransform(),this}recordSimpleData(e,t){return this.#e.recordSimpleData(e,this.#t),this}recordIncrementalData(e,t){return this.#e.recordIncrementalData(e,this.#t),this}resetIncrementalData(e,t){return this.#e.resetIncrementalData(e,this.#t),this}recordNamedData(e,t){return this}recordSimpleDataFromNamed(e,t,n){return this.#e.recordSimpleDataFromNamed(e,t,this.#t),this}recordFutureForcedDependency(e,t){return this.#e.recordFutureForcedDependency(e,this.#t),this}inheritSimpleDataAsFutureForcedDependencies(e){return this.#e.inheritSimpleDataAsFutureForcedDependencies(e),this}inheritPendingDependenciesAsFutureForcedDependencies(){return this.#e.inheritPendingDependenciesAsFutureForcedDependencies(),this}resetBBox(e){return this.#n||this.#e.resetBBox(this.#t),this}recordClipBox(e,t,n,r,i,a){return this.#n||this.#e.recordClipBox(this.#t,t,n,r,i,a),this}recordBBox(e,t,n,r,i,a){return this.#n||this.#e.recordBBox(this.#t,t,n,r,i,a),this}recordCharacterBBox(e,t,n,r,i,a,o){return this.#n||this.#e.recordCharacterBBox(this.#t,t,n,r,i,a,o),this}recordFullPageBBox(e){return this.#n||this.#e.recordFullPageBBox(this.#t),this}getSimpleIndex(e){return this.#e.getSimpleIndex(e)}recordDependencies(e,t){return this.#e.recordDependencies(this.#t,t),this}recordNamedDependency(e,t){return this.#e.recordNamedDependency(this.#t,t),this}recordOperation(e){return this.#e.recordOperation(this.#t,!0),this}recordShowTextOperation(e){return this.#e.recordShowTextOperation(this.#t,!0),this}bboxToClipBoxDropOperation(e){return this.#n||this.#e.bboxToClipBoxDropOperation(this.#t,!0),this}take(){throw Error(`Unreachable`)}takeDebugMetadata(){throw Error(`Unreachable`)}},Gt={stroke:[`path`,`transform`,`filter`,`strokeColor`,`strokeAlpha`,`lineWidth`,`lineCap`,`lineJoin`,`miterLimit`,`dash`],fill:[`path`,`transform`,`filter`,`fillColor`,`fillAlpha`,`globalCompositeOperation`,`SMask`],imageXObject:[`transform`,`SMask`,`filter`,`fillAlpha`,`strokeAlpha`,`globalCompositeOperation`],rawFillPath:[`filter`,`fillColor`,`fillAlpha`],showText:[`transform`,`leading`,`charSpacing`,`wordSpacing`,`hScale`,`textRise`,`moveText`,`textMatrix`,`font`,`fontObj`,`filter`,`fillColor`,`textRenderingMode`,`SMask`,`fillAlpha`,`strokeAlpha`,`globalCompositeOperation`,`sameLineText`],transform:[`transform`],transformAndFill:[`transform`,`fillColor`]},Kt=class e{#e;#t;#n=4;#r=0;#i=new e.#a(this.#n*6);static#a=G.isFloat16ArraySupported?Float16Array:Float32Array;constructor(e){this.#e=e.width,this.#t=e.height}record(t,n,r,i){if(this.#r===this.#n){this.#n*=2;let t=new e.#a(this.#n*6);t.set(this.#i),this.#i=t}let a=Xe(t),o;if(i[0]!==1/0){let e=D.slice();K.axialAlignedBoundingBox([0,-r,n,0],a,e);let t=K.intersect(i,e);if(!t)return;let[s,c,l,u]=t;if(s!==e[0]||c!==e[1]||l!==e[2]||u!==e[3]){let e=Math.atan2(a[1],a[0]),t=Math.abs(Math.sin(e)),n=Math.abs(Math.cos(e));if(t<1e-6||n<1e-6||Math.abs(t-n)<1e-6)o=[s,c,s,u,l,c];else{let e=l-s,r=u-c,i=t*t,a=n*n,d=n*t,f=a-i,p=(r*a-e*d)/f;o=[s+(r*d-e*i)/f,c,s,c+p,l,u-p]}}}o||(o=[0,-r,0,0,n,-r],K.applyTransform(o,a,0),K.applyTransform(o,a,2),K.applyTransform(o,a,4)),o[0]/=this.#e,o[1]/=this.#t,o[2]/=this.#e,o[3]/=this.#t,o[4]/=this.#e,o[5]/=this.#t,this.#i.set(o,this.#r*6),this.#r++}take(){return this.#i.subarray(0,this.#r*6)}},qt=class{#e=new Set;constructor({ownerDocument:e=globalThis.document,styleElement:t=null}){this._document=e,this.nativeFontFaces=new Set,this.styleElement=null,this.loadingRequests=[],this.loadTestFontId=0}addNativeFontFace(e){this.nativeFontFaces.add(e),this._document.fonts.add(e)}removeNativeFontFace(e){this.nativeFontFaces.delete(e),this._document.fonts.delete(e)}insertRule(e){this.styleElement||(this.styleElement=this._document.createElement(`style`),this._document.documentElement.getElementsByTagName(`head`)[0].append(this.styleElement));let t=this.styleElement.sheet;t.insertRule(e,t.cssRules.length)}clear(){for(let e of this.nativeFontFaces)this._document.fonts.delete(e);this.nativeFontFaces.clear(),this.#e.clear(),this.styleElement&&=(this.styleElement.remove(),null)}async loadSystemFont({systemFontInfo:e,disableFontFace:t,_inspectFont:n}){if(!(!e||this.#e.has(e.loadedName))){if(le(!t,"loadSystemFont shouldn't be called when `disableFontFace` is set."),this.isFontLoadingAPISupported){let{loadedName:t,src:r,style:i}=e,a=new FontFace(t,r,i);this.addNativeFontFace(a);try{await a.load(),this.#e.add(t),n?.(e)}catch{H(`Cannot load system font: ${e.baseFontName}, installing it could help to improve PDF rendering.`),this.removeNativeFontFace(a)}return}U(`Not implemented: loadSystemFont without the Font Loading API.`)}}async bind(e){if(e.attached||e.missingFile&&!e.systemFontInfo)return;if(e.attached=!0,e.systemFontInfo){await this.loadSystemFont(e);return}if(this.isFontLoadingAPISupported){let t=e.createNativeFontFace();if(t){this.addNativeFontFace(t);try{await t.loaded}catch(n){throw H(`Failed to load font '${t.family}': '${n}'.`),e.disableFontFace=!0,n}}return}let t=e.createFontFaceRule();if(t){if(this.insertRule(t),this.isSyncFontLoadingSupported)return;await new Promise(t=>{let n=this._queueLoadingCallback(t);this._prepareFontLoadEvent(e,n)})}}get isFontLoadingAPISupported(){let e=!!this._document?.fonts;return W(this,`isFontLoadingAPISupported`,e)}get isSyncFontLoadingSupported(){return W(this,`isSyncFontLoadingSupported`,E||G.platform.isFirefox)}_queueLoadingCallback(e){function t(){for(le(!r.done,`completeRequest() cannot be called twice.`),r.done=!0;n.length>0&&n[0].done;){let e=n.shift();setTimeout(e.callback,0)}}let{loadingRequests:n}=this,r={done:!1,complete:t,callback:e};return n.push(r),r}get _loadTestFont(){let e=atob(`T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA==`);return W(this,`_loadTestFont`,e)}_prepareFontLoadEvent(e,t){function n(e,t){return e.charCodeAt(t)<<24|e.charCodeAt(t+1)<<16|e.charCodeAt(t+2)<<8|e.charCodeAt(t+3)&255}function r(e){return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,e&255)}function i(e,t,n,r){let i=e.substring(0,t),a=e.substring(t+n);return i+r+a}let a,o,s=this._document.createElement(`canvas`);s.width=1,s.height=1;let c=s.getContext(`2d`),l=0;function u(e,t){if(++l>30){H(`Load test font never loaded.`),t();return}if(c.font=`30px `+e,c.fillText(`.`,0,20),c.getImageData(0,0,1,1).data[3]>0){t();return}setTimeout(u.bind(null,e,t))}let d=`lt${Date.now()}${this.loadTestFontId++}`,f=this._loadTestFont;f=i(f,976,d.length,d);let p=1482184792,m=n(f,16);for(a=0,o=d.length-3;a<o;a+=4)m=m-p+n(d,a)|0;a<d.length&&(m=m-p+n(d+`XXX`,a)|0),f=i(f,16,4,r(m));let h=`@font-face {font-family:"${d}";src:${`url(data:font/opentype;base64,${btoa(f)});`}}`;this.insertRule(h);let g=this._document.createElement(`div`);g.style.visibility=`hidden`,g.style.width=g.style.height=`10px`,g.style.position=`absolute`,g.style.top=g.style.left=`0px`;for(let t of[e.loadedName,d]){let e=this._document.createElement(`span`);e.textContent=`Hi`,e.style.fontFamily=t,g.append(e)}this._document.body.append(g),u(d,()=>{g.remove(),t.complete()})}},Jt=class{compiledGlyphs=Object.create(null);#e;constructor(e,t=null,n,r){this.#e=e,this._inspectFont=t,n&&(this.charProcOperatorList=n),r&&Object.assign(this,r)}createNativeFontFace(){if(!this.data||this.disableFontFace)return null;let e;if(!this.cssFontInfo)e=new FontFace(this.loadedName,this.data,{});else{let t={weight:this.cssFontInfo.fontWeight};this.cssFontInfo.italicAngle&&(t.style=`oblique ${this.cssFontInfo.italicAngle}deg`),e=new FontFace(this.cssFontInfo.fontFamily,this.data,t)}return this._inspectFont?.(this),e}createFontFaceRule(){if(!this.data||this.disableFontFace)return null;let e=`url(data:${this.mimetype};base64,${this.data.toBase64()});`,t;if(!this.cssFontInfo)t=`@font-face {font-family:"${this.loadedName}";src:${e}}`;else{let n=`font-weight: ${this.cssFontInfo.fontWeight};`;this.cssFontInfo.italicAngle&&(n+=`font-style: oblique ${this.cssFontInfo.italicAngle}deg;`),t=`@font-face {font-family:"${this.cssFontInfo.fontFamily}";${n}src:${e}}`}return this._inspectFont?.(this,e),t}getPathGenerator(e,t){if(this.compiledGlyphs[t]!==void 0)return this.compiledGlyphs[t];let n=this.loadedName+`_path_`+t,r;try{r=e.get(n)}catch(e){H(`getPathGenerator - ignoring character: "${e}".`)}let i=dt(r?.path);return this.fontExtraProperties||e.delete(n),this.compiledGlyphs[t]=i}get black(){return this.#e.black}get bold(){return this.#e.bold}get disableFontFace(){return this.#e.disableFontFace}set disableFontFace(e){W(this,`disableFontFace`,!!e)}get fontExtraProperties(){return this.#e.fontExtraProperties}get isInvalidPDFjsFont(){return this.#e.isInvalidPDFjsFont}get isType3Font(){return this.#e.isType3Font}get italic(){return this.#e.italic}get missingFile(){return this.#e.missingFile}get remeasure(){return this.#e.remeasure}get vertical(){return this.#e.vertical}get ascent(){return this.#e.ascent}get defaultWidth(){return this.#e.defaultWidth}get descent(){return this.#e.descent}get bbox(){return this.#e.bbox}get fontMatrix(){return this.#e.fontMatrix}get fallbackName(){return this.#e.fallbackName}get loadedName(){return this.#e.loadedName}get mimetype(){return this.#e.mimetype}get name(){return this.#e.name}get data(){return this.#e.data}clearData(){this.#e.clearData()}get cssFontInfo(){return this.#e.cssFontInfo}get systemFontInfo(){return this.#e.systemFontInfo}get defaultVMetrics(){return this.#e.defaultVMetrics}},Yt=class{static strings=[`fontFamily`,`fontWeight`,`italicAngle`]},Xt=class{static strings=[`css`,`loadedName`,`baseFontName`,`src`]},Zt=class{static bools=[`black`,`bold`,`disableFontFace`,`fontExtraProperties`,`isInvalidPDFjsFont`,`isType3Font`,`italic`,`missingFile`,`remeasure`,`vertical`];static numbers=[`ascent`,`defaultWidth`,`descent`];static strings=[`fallbackName`,`loadedName`,`mimetype`,`name`];static OFFSET_NUMBERS=Math.ceil(this.bools.length*2/8);static OFFSET_BBOX=this.OFFSET_NUMBERS+this.numbers.length*8;static OFFSET_FONT_MATRIX=this.OFFSET_BBOX+1+8;static OFFSET_DEFAULT_VMETRICS=this.OFFSET_FONT_MATRIX+1+48;static OFFSET_STRINGS=this.OFFSET_DEFAULT_VMETRICS+1+6},Qt=class{static KIND=0;static HAS_BBOX=1;static HAS_BACKGROUND=2;static SHADING_TYPE=3;static N_COORD=4;static N_COLOR=8;static N_STOP=12;static N_FIGURES=16},$t=class{#e;#t=new TextDecoder;#n;constructor(e){this.#e=e,this.#n=new DataView(e)}#r(e){le(e<Yt.strings.length,`Invalid string index`);let t=0;for(let n=0;n<e;n++)t+=this.#n.getUint32(t)+4;let n=this.#n.getUint32(t);return this.#t.decode(new Uint8Array(this.#e,t+4,n))}get fontFamily(){return this.#r(0)}get fontWeight(){return this.#r(1)}get italicAngle(){return this.#r(2)}},en=class{#e;#t=new TextDecoder;#n;constructor(e){this.#e=e,this.#n=new DataView(e)}get guessFallback(){return this.#n.getUint8(0)!==0}#r(e){le(e<Xt.strings.length,`Invalid string index`);let t=5;for(let n=0;n<e;n++)t+=this.#n.getUint32(t)+4;let n=this.#n.getUint32(t);return this.#t.decode(new Uint8Array(this.#e,t+4,n))}get css(){return this.#r(0)}get loadedName(){return this.#r(1)}get baseFontName(){return this.#r(2)}get src(){return this.#r(3)}get style(){let e=1;e+=4+this.#n.getUint32(e);let t=this.#n.getUint32(e),n=this.#t.decode(new Uint8Array(this.#e,e+4,t));e+=4+t;let r=this.#n.getUint32(e);return{style:n,weight:this.#t.decode(new Uint8Array(this.#e,e+4,r))}}},tn=class{#e;#t=new TextDecoder;#n;constructor({buffer:e,extra:t}){this.#e=e,this.#n=new DataView(e),t&&Object.assign(this,t)}#r(e){le(e<Zt.bools.length,`Invalid boolean index`);let t=Math.floor(e/4),n=e*2%8,r=this.#n.getUint8(t)>>n&3;return r===0?void 0:r===2}get black(){return this.#r(0)}get bold(){return this.#r(1)}get disableFontFace(){return this.#r(2)}get fontExtraProperties(){return this.#r(3)}get isInvalidPDFjsFont(){return this.#r(4)}get isType3Font(){return this.#r(5)}get italic(){return this.#r(6)}get missingFile(){return this.#r(7)}get remeasure(){return this.#r(8)}get vertical(){return this.#r(9)}#i(e){return le(e<Zt.numbers.length,`Invalid number index`),this.#n.getFloat64(Zt.OFFSET_NUMBERS+e*8)}get ascent(){return this.#i(0)}get defaultWidth(){return this.#i(1)}get descent(){return this.#i(2)}#a(e,t,n,r){let i=this.#n.getUint8(e);if(i===0)return;le(i===t,`Invalid array length.`),e+=1;let a=Array(i);for(let t=0;t<i;t++)a[t]=this.#n[n](e,!0),e+=r;return a}get bbox(){return this.#a(Zt.OFFSET_BBOX,4,`getInt16`,2)}get fontMatrix(){return this.#a(Zt.OFFSET_FONT_MATRIX,6,`getFloat64`,8)}get defaultVMetrics(){return this.#a(Zt.OFFSET_DEFAULT_VMETRICS,3,`getInt16`,2)}#o(e){le(e<Zt.strings.length,`Invalid string index`);let t=Zt.OFFSET_STRINGS+4;for(let n=0;n<e;n++)t+=this.#n.getUint32(t)+4;let n=this.#n.getUint32(t);return this.#t.decode(new Uint8Array(this.#e,t+4,n))}get fallbackName(){return this.#o(0)}get loadedName(){return this.#o(1)}get mimetype(){return this.#o(2)}get name(){return this.#o(3)}#s(){let e=Zt.OFFSET_STRINGS,t=this.#n.getUint32(e);e+=4+t;let n=this.#n.getUint32(e);e+=4+n;let r=this.#n.getUint32(e);e+=4+r;let i=this.#n.getUint32(e);return{offset:e,length:i}}get data(){let{offset:e,length:t}=this.#s();return t===0?void 0:new Uint8Array(this.#e,e+4,t)}clearData(){let{offset:e,length:t}=this.#s();t!==0&&(this.#n.setUint32(e,0),this.#e=new Uint8Array(this.#e,0,e+4).slice().buffer,this.#n=new DataView(this.#e))}get cssFontInfo(){let e=Zt.OFFSET_STRINGS,t=this.#n.getUint32(e);e+=4+t;let n=this.#n.getUint32(e);e+=4+n;let r=this.#n.getUint32(e);if(r===0)return null;let i=new Uint8Array(r);return i.set(new Uint8Array(this.#e,e+4,r)),new $t(i.buffer)}get systemFontInfo(){let e=Zt.OFFSET_STRINGS,t=this.#n.getUint32(e);e+=4+t;let n=this.#n.getUint32(e);if(n===0)return null;let r=new Uint8Array(n);return r.set(new Uint8Array(this.#e,e+4,n)),new en(r.buffer)}},nn=class{constructor(e){this.buffer=e,this.view=new DataView(e),this.data=new Uint8Array(e)}getIR(){let e=this.view,t=this.data[Qt.KIND],n=!!this.data[Qt.HAS_BBOX],r=!!this.data[Qt.HAS_BACKGROUND],i=e.getUint32(Qt.N_COORD,!0),a=e.getUint32(Qt.N_COLOR,!0),o=e.getUint32(Qt.N_STOP,!0),s=20,c=new Float32Array(this.buffer,s,i*2);s+=i*8;let l=new Uint8Array(this.buffer,s,a*4);s+=a*4;let u=[];for(let t=0;t<o;++t){let t=e.getFloat32(s,!0);s+=4;let n=e.getUint32(s,!0);s+=4,u.push([t,`#${n.toString(16).padStart(6,`0`)}`])}let d=null;if(n){d=[];for(let t=0;t<4;++t)d.push(e.getFloat32(s,!0)),s+=4}let f=null;if(r&&(f=new Uint8Array(this.buffer,s,3),s+=3),t===1)return[`RadialAxial`,`axial`,d,u,Array.from(c.slice(0,2)),Array.from(c.slice(2,4)),null,null];if(t===2)return[`RadialAxial`,`radial`,d,u,[c[0],c[1]],[c[3],c[4]],c[2],c[5]];if(t===3){let e=this.data[Qt.SHADING_TYPE],t=null;if(c.length>0){t=D.slice();for(let e=0,n=c.length;e<n;e+=2)K.pointBoundingBox(c[e],c[e+1],t)}return[`Mesh`,e,c,l,i,t,d,f]}throw Error(`Unsupported pattern kind: ${t}`)}},rn=class{#e;constructor(e){this.#e=e}get path(){return G.isFloat16ArraySupported?new Float16Array(this.#e):new Float32Array(this.#e)}};function an(e){if(e instanceof URL)return e;if(typeof e==`string`){if(E){if(/^[a-z][a-z0-9\-+.]+:/i.test(e))return new URL(e);let t=process.getBuiltinModule(`url`);return new URL(t.pathToFileURL(e))}let t=URL.parse(e,window.location);if(t)return t}throw Error(`Invalid PDF url data: either string or URL-object is expected in the url property.`)}function on(e){if(E&&typeof Buffer<`u`&&e instanceof Buffer)throw Error("Please provide binary data as `Uint8Array`, rather than `Buffer`.");if(e instanceof Uint8Array&&e.byteLength===e.buffer.byteLength)return e;if(typeof e==`string`)return Se(e);if(e instanceof ArrayBuffer||ArrayBuffer.isView(e)||typeof e==`object`&&!isNaN(e?.length))return new Uint8Array(e);throw Error(`Invalid PDF binary data: either TypedArray, string, or array-like object is expected in the data property.`)}function sn(e){if(typeof e!=`string`)return null;if(e.endsWith(`/`))return e;throw Error(`Invalid factory url: "${e}" must include trailing slash.`)}var cn=e=>typeof e==`object`&&Number.isInteger(e?.num)&&e.num>=0&&Number.isInteger(e?.gen)&&e.gen>=0,ln=Oe.bind(null,cn,e=>typeof e==`object`&&typeof e?.name==`string`),un=class{#e=new Map;#t=Promise.resolve();postMessage(e,t){let n={data:structuredClone(e,t?{transfer:t}:null)};this.#t.then(()=>{for(let[e]of this.#e)e.call(this,n)})}addEventListener(e,t,n=null){let r=null;if(n?.signal instanceof AbortSignal){let{signal:i}=n;if(i.aborted){H("LoopbackPort - cannot use an `aborted` signal.");return}let a=()=>this.removeEventListener(e,t);r=()=>i.removeEventListener(`abort`,a),i.addEventListener(`abort`,a)}this.#e.set(t,r)}removeEventListener(e,t){this.#e.get(t)?.(),this.#e.delete(t)}terminate(){for(let[,e]of this.#e)e?.();this.#e.clear()}};T(1689);var dn={DATA:1,ERROR:2},fn={CANCEL:1,CANCEL_COMPLETE:2,CLOSE:3,ENQUEUE:4,ERROR:5,PULL:6,PULL_COMPLETE:7,START_COMPLETE:8};function pn(){}function mn(e){if(e instanceof be||e instanceof _e||e instanceof he||e instanceof ve||e instanceof ge)return e;switch(e instanceof Error||typeof e==`object`&&e||U(`wrapReason: Expected "reason" to be a (possibly cloned) Error.`),e.name){case`AbortException`:return new be(e.message);case`InvalidPDFException`:return new _e(e.message);case`PasswordException`:return new he(e.message,e.code);case`ResponseException`:return new ve(e.message,e.status,e.missing);case`UnknownErrorException`:return new ge(e.message,e.details)}return new ge(e.message,e.toString())}var hn=class{#e=new AbortController;constructor(e,t,n){this.sourceName=e,this.targetName=t,this.comObj=n,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),n.addEventListener(`message`,this.#t.bind(this),{signal:this.#e.signal})}#t({data:e}){if(e.targetName!==this.sourceName)return;if(e.stream){this.#r(e);return}if(e.callback){let t=e.callbackId,n=this.callbackCapabilities[t];if(!n)throw Error(`Cannot resolve callback ${t}`);if(delete this.callbackCapabilities[t],e.callback===dn.DATA)n.resolve(e.data);else if(e.callback===dn.ERROR)n.reject(mn(e.reason));else throw Error(`Unexpected callback case`);return}let t=this.actionHandler[e.action];if(!t)throw Error(`Unknown action from worker: ${e.action}`);if(e.callbackId){let n=this.sourceName,r=e.sourceName,i=this.comObj;Promise.try(t,e.data).then(function(t){i.postMessage({sourceName:n,targetName:r,callback:dn.DATA,callbackId:e.callbackId,data:t})},function(t){i.postMessage({sourceName:n,targetName:r,callback:dn.ERROR,callbackId:e.callbackId,reason:mn(t)})});return}if(e.streamId){this.#n(e);return}t(e.data)}on(e,t){let n=this.actionHandler;if(n[e])throw Error(`There is already an actionName called "${e}"`);n[e]=t}send(e,t,n){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,data:t},n)}sendWithPromise(e,t,n){let r=this.callbackId++,i=Promise.withResolvers();this.callbackCapabilities[r]=i;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,callbackId:r,data:t},n)}catch(e){i.reject(e)}return i.promise}sendWithStream(e,t,n,r){let i=this.streamId++,a=this.sourceName,o=this.targetName,s=this.comObj;return new ReadableStream({start:n=>{let c=Promise.withResolvers();return this.streamControllers[i]={controller:n,startCall:c,pullCall:null,cancelCall:null,isClosed:!1},s.postMessage({sourceName:a,targetName:o,action:e,streamId:i,data:t,desiredSize:n.desiredSize},r),c.promise},pull:e=>{let t=Promise.withResolvers();return this.streamControllers[i].pullCall=t,s.postMessage({sourceName:a,targetName:o,stream:fn.PULL,streamId:i,desiredSize:e.desiredSize}),t.promise},cancel:e=>{le(e instanceof Error,`cancel must have a valid reason`);let t=Promise.withResolvers();return this.streamControllers[i].cancelCall=t,this.streamControllers[i].isClosed=!0,s.postMessage({sourceName:a,targetName:o,stream:fn.CANCEL,streamId:i,reason:mn(e)}),t.promise}},n)}#n(e){let t=e.streamId,n=this.sourceName,r=e.sourceName,i=this.comObj,a=this,o=this.actionHandler[e.action],s={enqueue(e,a=1,o){if(this.isCancelled)return;let s=this.desiredSize;this.desiredSize-=a,s>0&&this.desiredSize<=0&&(this.sinkCapability=Promise.withResolvers(),this.ready=this.sinkCapability.promise),i.postMessage({sourceName:n,targetName:r,stream:fn.ENQUEUE,streamId:t,chunk:e},o)},close(){this.isCancelled||(this.isCancelled=!0,i.postMessage({sourceName:n,targetName:r,stream:fn.CLOSE,streamId:t}),delete a.streamSinks[t])},error(e){le(e instanceof Error,`error must have a valid reason`),!this.isCancelled&&(this.isCancelled=!0,i.postMessage({sourceName:n,targetName:r,stream:fn.ERROR,streamId:t,reason:mn(e)}))},sinkCapability:Promise.withResolvers(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:e.desiredSize,ready:null};s.sinkCapability.resolve(),s.ready=s.sinkCapability.promise,this.streamSinks[t]=s,Promise.try(o,e.data,s).then(function(){i.postMessage({sourceName:n,targetName:r,stream:fn.START_COMPLETE,streamId:t,success:!0})},function(e){i.postMessage({sourceName:n,targetName:r,stream:fn.START_COMPLETE,streamId:t,reason:mn(e)})})}#r(e){let t=e.streamId,n=this.sourceName,r=e.sourceName,i=this.comObj,a=this.streamControllers[t],o=this.streamSinks[t];switch(e.stream){case fn.START_COMPLETE:e.success?a.startCall.resolve():a.startCall.reject(mn(e.reason));break;case fn.PULL_COMPLETE:e.success?a.pullCall.resolve():a.pullCall.reject(mn(e.reason));break;case fn.PULL:if(!o){i.postMessage({sourceName:n,targetName:r,stream:fn.PULL_COMPLETE,streamId:t,success:!0});break}o.desiredSize<=0&&e.desiredSize>0&&o.sinkCapability.resolve(),o.desiredSize=e.desiredSize,Promise.try(o.onPull||pn).then(function(){i.postMessage({sourceName:n,targetName:r,stream:fn.PULL_COMPLETE,streamId:t,success:!0})},function(e){i.postMessage({sourceName:n,targetName:r,stream:fn.PULL_COMPLETE,streamId:t,reason:mn(e)})});break;case fn.ENQUEUE:if(le(a,`enqueue should have stream controller`),a.isClosed)break;a.controller.enqueue(e.chunk);break;case fn.CLOSE:if(le(a,`close should have stream controller`),a.isClosed)break;a.isClosed=!0,a.controller.close(),this.#i(a,t);break;case fn.ERROR:le(a,`error should have stream controller`),a.controller.error(mn(e.reason)),this.#i(a,t);break;case fn.CANCEL_COMPLETE:e.success?a.cancelCall.resolve():a.cancelCall.reject(mn(e.reason)),this.#i(a,t);break;case fn.CANCEL:if(!o)break;let s=mn(e.reason);Promise.try(o.onCancel||pn,s).then(function(){i.postMessage({sourceName:n,targetName:r,stream:fn.CANCEL_COMPLETE,streamId:t,success:!0})},function(e){i.postMessage({sourceName:n,targetName:r,stream:fn.CANCEL_COMPLETE,streamId:t,reason:mn(e)})}),o.sinkCapability.reject(s),o.isCancelled=!0,delete this.streamSinks[t];break;default:throw Error(`Unexpected stream case`)}}async#i(e,t){await Promise.allSettled([e.startCall?.promise,e.pullCall?.promise,e.cancelCall?.promise]),delete this.streamControllers[t]}destroy(){this.#e?.abort(),this.#e=null}},gn=class{#e=Object.freeze({cMapUrl:`CMap`,standardFontDataUrl:`font`,wasmUrl:`wasm`});constructor({cMapUrl:e=null,standardFontDataUrl:t=null,wasmUrl:n=null}){this.cMapUrl=e,this.standardFontDataUrl=t,this.wasmUrl=n}async fetch({kind:e,filename:t}){switch(e){case`cMapUrl`:case`standardFontDataUrl`:case`wasmUrl`:break;default:U(`Not implemented: ${e}`)}let n=this[e];if(!n)throw Error(`Ensure that the \`${e}\` API parameter is provided.`);let r=`${n}${t}`;return this._fetch(r,e).catch(t=>{throw Error(`Unable to load ${this.#e[e]} data at: ${r}`)})}async _fetch(e,t){U("Abstract method `_fetch` called.")}},_n=class extends gn{async _fetch(e,t){let n=await Ie(e,t===`cMapUrl`&&!e.endsWith(`.bcmap`)?`text`:`bytes`);return n instanceof Uint8Array?n:Se(n)}},vn=class{#e=!1;constructor({enableHWA:e=!1}){this.#e=e}create(e,t){if(e<=0||t<=0)throw Error(`Invalid canvas size`);let n=this._createCanvas(e,t);return{canvas:n,context:n.getContext(`2d`,{willReadFrequently:!this.#e})}}reset({canvas:e},t,n){if(!e)throw Error(`Canvas is not specified`);if(t<=0||n<=0)throw Error(`Invalid canvas size`);e.width=t,e.height=n}destroy(e){let{canvas:t}=e;if(!t)throw Error(`Canvas is not specified`);t.width=t.height=0,e.canvas=null,e.context=null}_createCanvas(e,t){U("Abstract method `_createCanvas` called.")}},yn=class extends vn{constructor({ownerDocument:e=globalThis.document,enableHWA:t=!1}){super({enableHWA:t}),this._document=e}_createCanvas(e,t){let n=this._document.createElement(`canvas`);return n.width=e,n.height=t,n}},bn=class{addFilter(e){return`none`}addHCMFilter(e,t){return`none`}addAlphaFilter(e){return`none`}addLuminosityFilter(e){return`none`}addKnockoutFilter(e=0){return`none`}addHighlightHCMFilter(e,t,n,r,i){return`none`}addSelectionHCMFilter(e,t){return`none`}addSelectionFilter(){return`none`}createSelectionStyle(e=null){return null}destroy(e=!1){}},xn=class extends bn{#e;#t;#n;#r;#i;#a;#o=0;constructor({docId:e,ownerDocument:t=globalThis.document}){super(),this.#r=e,this.#i=t}get#s(){return this.#t||=new Map}get#c(){return this.#a||=new Map}get#l(){if(!this.#n){let e=this.#i.createElement(`div`),{style:t}=e;t.colorScheme=`only light`,t.visibility=`hidden`,t.contain=`strict`,t.width=t.height=0,t.position=`absolute`,t.top=t.left=0,t.zIndex=-1;let n=this.#i.createElementNS(j,`svg`);n.setAttribute(`width`,0),n.setAttribute(`height`,0),this.#n=this.#i.createElementNS(j,`defs`),e.append(n),n.append(this.#n),this.#i.body.append(e)}return this.#n}#u(e){if(e.length===1){let t=e[0],n=Array(256);for(let e=0;e<256;e++)n[e]=t[e]/255;let r=n.join(`,`);return[r,r,r]}let[t,n,r]=e,i=Array(256),a=Array(256),o=Array(256);for(let e=0;e<256;e++)i[e]=t[e]/255,a[e]=n[e]/255,o[e]=r[e]/255;return[i.join(`,`),a.join(`,`),o.join(`,`)]}#d(e){if(this.#e===void 0){this.#e=``;let e=this.#i.URL;e!==this.#i.baseURI&&(Re(e)?H(`#createUrl: ignore "data:"-URL for performance reasons.`):this.#e=fe(e,``))}return`url(${this.#e}#${e})`}addFilter(e){if(!e)return`none`;let t=this.#s.get(e);if(t)return t;let[n,r,i]=this.#u(e),a=e.length===1?n:`${n}${r}${i}`;if(t=this.#s.get(a),t)return this.#s.set(e,t),t;let o=`g_${this.#r}_transfer_map_${this.#o++}`,s=this.#d(o);this.#s.set(e,s),this.#s.set(a,s);let c=this.#m(o);return this.#g(n,r,i,c),s}addHCMFilter(e,t){let n=`${e}-${t}`,r=`base`,i=this.#c.get(r);if(i?.key===n||(i?(i.filter?.remove(),i.key=n,i.url=`none`,i.filter=null):(i={key:n,url:`none`,filter:null},this.#c.set(r,i)),!e||!t))return i.url;let a=this.#v(e);e=K.makeHexColor(...a);let o=this.#v(t);if(t=K.makeHexColor(...o),this.#l.style.color=``,e===`#000000`&&t===`#ffffff`||e===t)return i.url;let s=Array(256);for(let e=0;e<=255;e++){let t=e/255;s[e]=t<=.03928?t/12.92:((t+.055)/1.055)**2.4}let c=s.join(`,`),l=`g_${this.#r}_hcm_filter`,u=i.filter=this.#m(l);this.#g(c,c,c,u),this.#p(u);let d=(e,t)=>{let n=a[e]/255,r=o[e]/255,i=Array(t+1);for(let e=0;e<=t;e++)i[e]=n+e/t*(r-n);return i.join(`,`)};return this.#g(d(0,5),d(1,5),d(2,5),u),i.url=this.#d(l),i.url}addSelectionHCMFilter(e,t){return this.addHighlightHCMFilter(`selection`,e,t,`HighlightText`,`Highlight`)}addSelectionFilter(){return this.addHighlightHCMFilter(`selection_default`,`black`,`white`,`HighlightText`,`Highlight`)}createSelectionStyle(e=null){let t=e?this.addSelectionHCMFilter(e.foreground,e.background):this.addSelectionFilter();return t===`none`||!G.platform.isFirefox?null:{"backdrop-filter":t,"background-color":`transparent`}}addAlphaFilter(e){let t=this.#s.get(e);if(t)return t;let[n]=this.#u([e]),r=`alpha_${n}`;if(t=this.#s.get(r),t)return this.#s.set(e,t),t;let i=`g_${this.#r}_alpha_map_${this.#o++}`,a=this.#d(i);this.#s.set(e,a),this.#s.set(r,a);let o=this.#m(i);return this.#_(n,o),a}addLuminosityFilter(e){let t=this.#s.get(e||`luminosity`);if(t)return t;let n,r;if(e?([n]=this.#u([e]),r=`luminosity_${n}`):r=`luminosity`,t=this.#s.get(r),t)return this.#s.set(e,t),t;let i=`g_${this.#r}_luminosity_map_${this.#o++}`,a=this.#d(i);this.#s.set(e,a),this.#s.set(r,a);let o=this.#m(i);return this.#f(o),e&&this.#_(n,o),a}addKnockoutFilter(e=0){let t=e>0?Math.min(1/e,1e6):1e6,n=`knockout_${t}`,r=this.#s.get(n);if(r)return r;let i=`g_${this.#r}_knockout_filter_${this.#o++}`,a=this.#d(i);this.#s.set(n,a);let o=this.#m(i),s=this.#i.createElementNS(j,`feComponentTransfer`);o.append(s);let c=this.#i.createElementNS(j,`feFuncA`);return c.setAttribute(`type`,`linear`),c.setAttribute(`slope`,`${t}`),c.setAttribute(`intercept`,`0`),s.append(c),a}addHighlightHCMFilter(e,t,n,r,i){let a=`${t}-${n}-${r}-${i}`,o=this.#c.get(e);if(o?.key===a||(o?(o.filter?.remove(),o.key=a,o.url=`none`,o.filter=null):(o={key:a,url:`none`,filter:null},this.#c.set(e,o)),!t||!n))return o.url;let[s,c]=[t,n].map(this.#v.bind(this)),l=Math.round(.2126*s[0]+.7152*s[1]+.0722*s[2]),u=Math.round(.2126*c[0]+.7152*c[1]+.0722*c[2]),[d,f]=[r,i].map(this.#b.bind(this));u<l&&([l,u,d,f]=[u,l,f,d]),this.#l.style.color=``;let p=(e,t,n)=>{let r=Array(256),i=(u-l)/n,a=e/255,o=(t-e)/(255*n),s=0;for(let e=0;e<=n;e++){let t=Math.round(l+e*i),n=a+e*o;for(let e=s;e<=t;e++)r[e]=n;s=t+1}for(let e=s;e<256;e++)r[e]=r[s-1];return r.join(`,`)},m=`g_${this.#r}_hcm_${e}_filter`,h=o.filter=this.#m(m);return this.#p(h),this.#g(p(d[0],f[0],5),p(d[1],f[1],5),p(d[2],f[2],5),h),o.url=this.#d(m),o.url}destroy(e=!1){e&&this.#a?.size||(this.#n?.parentNode.parentNode.remove(),this.#n=null,this.#t?.clear(),this.#t=null,this.#a?.clear(),this.#a=null,this.#o=0)}#f(e){let t=this.#i.createElementNS(j,`feColorMatrix`);t.setAttribute(`type`,`matrix`),t.setAttribute(`values`,`0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.3 0.59 0.11 0 0`),e.append(t)}#p(e){let t=this.#i.createElementNS(j,`feColorMatrix`);t.setAttribute(`type`,`matrix`),t.setAttribute(`values`,`0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0 0 0 1 0`),e.append(t)}#m(e){let t=this.#i.createElementNS(j,`filter`);return t.setAttribute(`color-interpolation-filters`,`sRGB`),t.setAttribute(`id`,e),this.#l.append(t),t}#h(e,t,n){let r=this.#i.createElementNS(j,t);r.setAttribute(`type`,`discrete`),r.setAttribute(`tableValues`,n),e.append(r)}#g(e,t,n,r){let i=this.#i.createElementNS(j,`feComponentTransfer`);r.append(i),this.#h(i,`feFuncR`,e),this.#h(i,`feFuncG`,t),this.#h(i,`feFuncB`,n)}#_(e,t){let n=this.#i.createElementNS(j,`feComponentTransfer`);t.append(n),this.#h(n,`feFuncA`,e)}#v(e){return this.#l.style.color=e,Je(getComputedStyle(this.#l).getPropertyValue(`color`))}#y(e){return this.#l.style.color=e,qe(getComputedStyle(this.#l).getPropertyValue(`color`))}#b(e){let[t,n,r,i]=this.#y(e);if(i===1)return[t,n,r];let[a,o,s]=this.#v(`Canvas`);return[Sn(t,a,i),Sn(n,o,i),Sn(r,s,i)]}};function Sn(e,t,n){return Math.round(n*e+(1-n)*t)}if(E){let e;try{let t=process.getBuiltinModule(`module`).createRequire(import.meta.url);try{e=t("@napi-rs/canvas")}catch(e){H(`Cannot load "@napi-rs/canvas" package: "${e}".`)}}catch(e){H(`Cannot access the \`require\` function: "${e}".`)}globalThis.DOMMatrix||(e?.DOMMatrix?globalThis.DOMMatrix=e.DOMMatrix:H("Cannot polyfill `DOMMatrix`, rendering may be broken.")),globalThis.ImageData||(e?.ImageData?globalThis.ImageData=e.ImageData:H("Cannot polyfill `ImageData`, rendering may be broken.")),globalThis.Path2D||(e?.Path2D?globalThis.Path2D=e.Path2D:H("Cannot polyfill `Path2D`, rendering may be broken.")),globalThis.navigator?.language||(globalThis.navigator={language:`en-US`,platform:``,userAgent:``})}async function Cn(e){let t=await process.getBuiltinModule(`fs/promises`).readFile(e);return new Uint8Array(t)}var wn=class extends bn{},Tn=class extends vn{_createCanvas(e,t){return process.getBuiltinModule(`module`).createRequire(import.meta.url)(`@napi-rs/canvas`).createCanvas(e,t)}},En=class extends gn{async _fetch(e,t){return Cn(e)}},Dn=`
struct Uniforms {
offsetX : f32,
offsetY : f32,
scaleX : f32,
scaleY : f32,
paddedWidth : f32,
paddedHeight : f32,
borderSize : f32,
_pad : f32,
};
@group(0) @binding(0) var<uniform> u : Uniforms;
struct VertexInput {
@location(0) position : vec2<f32>,
@location(1) color : vec4<f32>,
};
struct VertexOutput {
@builtin(position) position : vec4<f32>,
@location(0) color : vec3<f32>,
};
@vertex
fn vs_main(in : VertexInput) -> VertexOutput {
var out : VertexOutput;
let cx = (in.position.x + u.offsetX) * u.scaleX;
let cy = (in.position.y + u.offsetY) * u.scaleY;
out.position = vec4<f32>(
((cx + u.borderSize) / u.paddedWidth) * 2.0 - 1.0,
1.0 - ((cy + u.borderSize) / u.paddedHeight) * 2.0,
0.0,
1.0
);
out.color = in.color.rgb;
return out;
}
@fragment
fn fs_main(in : VertexOutput) -> @location(0) vec4<f32> {
return vec4<f32>(in.color, 1.0);
}
`,On=new class{#e=null;#t=null;#n=null;#r=null;async#i(){if(!globalThis.navigator?.gpu)return!1;try{let e=await navigator.gpu.requestAdapter();return e?(this.#r=navigator.gpu.getPreferredCanvasFormat(),this.#t=await e.requestDevice(),!0):!1}catch{return!1}}init(){return this.#e||=this.#i()}get isReady(){return this.#t!==null}loadMeshShader(){if(!this.#t||this.#n)return;let e=this.#t.createShaderModule({code:Dn});this.#n=this.#t.createRenderPipeline({layout:`auto`,vertex:{module:e,entryPoint:`vs_main`,buffers:[{arrayStride:8,attributes:[{shaderLocation:0,offset:0,format:`float32x2`}]},{arrayStride:4,attributes:[{shaderLocation:1,offset:0,format:`unorm8x4`}]}]},fragment:{module:e,entryPoint:`fs_main`,targets:[{format:this.#r}]},primitive:{topology:`triangle-list`}})}draw(e,t,n,r,i,a,o,s){this.loadMeshShader();let c=this.#t,{offsetX:l,offsetY:u,scaleX:d,scaleY:f}=r,p=c.createBuffer({size:Math.max(e.byteLength,4),usage:GPUBufferUsage.VERTEX|GPUBufferUsage.COPY_DST});e.byteLength>0&&c.queue.writeBuffer(p,0,e);let m=c.createBuffer({size:Math.max(t.byteLength,4),usage:GPUBufferUsage.VERTEX|GPUBufferUsage.COPY_DST});t.byteLength>0&&c.queue.writeBuffer(m,0,t);let h=c.createBuffer({size:32,usage:GPUBufferUsage.UNIFORM|GPUBufferUsage.COPY_DST});c.queue.writeBuffer(h,0,new Float32Array([l,u,d,f,a,o,s,0]));let g=c.createBindGroup({layout:this.#n.getBindGroupLayout(0),entries:[{binding:0,resource:{buffer:h}}]}),_=new OffscreenCanvas(a,o),v=_.getContext(`webgpu`);v.configure({device:c,format:this.#r,alphaMode:i?`opaque`:`premultiplied`});let y=i?{r:i[0]/255,g:i[1]/255,b:i[2]/255,a:1}:{r:0,g:0,b:0,a:0},b=c.createCommandEncoder(),x=b.beginRenderPass({colorAttachments:[{view:v.getCurrentTexture().createView(),clearValue:y,loadOp:`clear`,storeOp:`store`}]});return n>0&&(x.setPipeline(this.#n),x.setBindGroup(0,g),x.setVertexBuffer(0,p),x.setVertexBuffer(1,m),x.draw(n)),x.end(),c.queue.submit([b.finish()]),p.destroy(),m.destroy(),h.destroy(),_.transferToImageBitmap()}};function kn(){return On.init()}function An(){return On.isReady}function jn(){On.loadMeshShader()}function Mn(e,t,n,r,i,a,o,s){return On.draw(e,t,n,r,i,a,o,s)}var Nn={FILL:`Fill`,STROKE:`Stroke`,SHADING:`Shading`};function Pn(e,t){if(!t)return;let n=t[2]-t[0],r=t[3]-t[1],i=new Path2D;i.rect(t[0],t[1],n,r),e.clip(i)}var Fn=class{isModifyingCurrentTransform(){return!1}getPattern(){U("Abstract method `getPattern` called.")}},In=class extends Fn{constructor(e){super(),this._type=e[1],this._bbox=e[2],this._colorStops=e[3],this._p0=e[4],this._p1=e[5],this._r0=e[6],this._r1=e[7],this.matrix=null}isOriginBased(){return this._p0[0]===0&&this._p0[1]===0&&(!this.isRadial()||this._p1[0]===0&&this._p1[1]===0)}isRadial(){return this._type===`radial`}areConic(){if(!this.isRadial())return!1;let e=Math.hypot(this._p0[0]-this._p1[0],this._p0[1]-this._p1[1]);return e+this._r1>this._r0&&e+this._r0>this._r1}_createGradient(e,t=null){let n,r=this._p0,i=this._p1;if(t&&(r=r.slice(),i=i.slice(),K.applyTransform(r,t),K.applyTransform(i,t)),this._type===`axial`)n=e.createLinearGradient(r[0],r[1],i[0],i[1]);else if(this._type===`radial`){let a=this._r0,o=this._r1;if(t){let e=new Float32Array(2);K.singularValueDecompose2dScale(t,e),a*=e[0],o*=e[0]}n=e.createRadialGradient(r[0],r[1],a,i[0],i[1],o)}for(let e of this._colorStops)n.addColorStop(e[0],e[1]);return n}_createReversedGradient(e,t=null){let n=this._p1,r=this._p0;t&&(n=n.slice(),r=r.slice(),K.applyTransform(n,t),K.applyTransform(r,t));let i=this._r1,a=this._r0;if(t){let e=new Float32Array(2);K.singularValueDecompose2dScale(t,e),i*=e[0],a*=e[0]}let o=e.createRadialGradient(n[0],n[1],i,r[0],r[1],a),s=this._colorStops.map(([e,t])=>[1-e,t]).reverse();for(let[e,t]of s)o.addColorStop(e,t);return o}getPattern(e,t,n,r){let i;if(r===Nn.STROKE||r===Nn.FILL){if(this.isOriginBased()){let r=K.transform(n,t.baseTransform);this.matrix&&(r=K.transform(r,this.matrix));let i=.001,a=Math.hypot(r[0],r[1]),o=Math.hypot(r[2],r[3]),s=(r[0]*r[2]+r[1]*r[3])/(a*o);if(Math.abs(s)<i)if(this.isRadial()){if(Math.abs(a-o)<i)return this._createGradient(e,r)}else return this._createGradient(e,r)}let a=t.current.getClippedPathBoundingBox(r,Xe(e))||[0,0,0,0],o=Math.ceil(a[2]-a[0])||1,s=Math.ceil(a[3]-a[1])||1,c=t.canvasFactory.create(o,s),l=c.context;l.clearRect(0,0,l.canvas.width,l.canvas.height),l.beginPath(),l.rect(0,0,l.canvas.width,l.canvas.height),l.translate(-a[0],-a[1]),n=K.transform(n,[1,0,0,1,a[0],a[1]]),l.transform(...t.baseTransform),this.matrix&&l.transform(...this.matrix),Pn(l,this._bbox),this.areConic()&&(l.fillStyle=this._createReversedGradient(l),l.fill()),l.fillStyle=this._createGradient(l),l.fill(),i=e.createPattern(c.canvas,`no-repeat`),t.canvasFactory.destroy(c);let u=new DOMMatrix(n);i.setTransform(u)}else this.areConic()&&(e.save(),Pn(e,this._bbox),e.fillStyle=this._createReversedGradient(e),e.fillRect(-1e10,-1e10,2e10,2e10),e.restore()),Pn(e,this._bbox),i=this._createGradient(e);return i}};function Ln(e,t,n,r,i,a,o,s){let c=t.coords,l=t.colors,u=e.data,d=e.width*4,f;c[n*2+1]>c[r*2+1]&&(f=n,n=r,r=f,f=a,a=o,o=f),c[r*2+1]>c[i*2+1]&&(f=r,r=i,i=f,f=o,o=s,s=f),c[n*2+1]>c[r*2+1]&&(f=n,n=r,r=f,f=a,a=o,o=f);let p=(c[n*2]+t.offsetX)*t.scaleX,m=(c[n*2+1]+t.offsetY)*t.scaleY,h=(c[r*2]+t.offsetX)*t.scaleX,g=(c[r*2+1]+t.offsetY)*t.scaleY,_=(c[i*2]+t.offsetX)*t.scaleX,v=(c[i*2+1]+t.offsetY)*t.scaleY;if(m>=v)return;let y=l[a*4],b=l[a*4+1],x=l[a*4+2],S=l[o*4],C=l[o*4+1],w=l[o*4+2],T=l[s*4],E=l[s*4+1],D=l[s*4+2],O=Math.round(m),k=Math.round(v),A,j,M,N,P,F,I,L;for(let e=O;e<=k;e++){if(e<g){let t=e<m?0:(m-e)/(m-g);A=p-(p-h)*t,j=y-(y-S)*t,M=b-(b-C)*t,N=x-(x-w)*t}else{let t;t=e>v?1:g===v?0:(g-e)/(g-v),A=h-(h-_)*t,j=S-(S-T)*t,M=C-(C-E)*t,N=w-(w-D)*t}let t;t=e<m?0:e>v?1:(m-e)/(m-v),P=p-(p-_)*t,F=y-(y-T)*t,I=b-(b-E)*t,L=x-(x-D)*t;let n=Math.round(Math.min(A,P)),r=Math.round(Math.max(A,P)),i=d*e+n*4;for(let e=n;e<=r;e++)t=(A-e)/(A-P),t<0?t=0:t>1&&(t=1),u[i++]=j-(j-F)*t|0,u[i++]=M-(M-I)*t|0,u[i++]=N-(N-L)*t|0,u[i++]=255}}var Rn=class extends Fn{constructor(e){super(),this._posData=e[2],this._colData=e[3],this._vertexCount=e[4],this._bounds=e[5],this._bbox=e[6],this._background=e[7],this.matrix=null,jn()}_createMeshCanvas(e,t,n){let r=1.1,i=3e3,a=Math.floor(this._bounds[0]),o=Math.floor(this._bounds[1]),s=Math.ceil(this._bounds[2])-a,c=Math.ceil(this._bounds[3])-o,l=Math.min(Math.ceil(Math.abs(s*e[0]*r)),i)||1,u=Math.min(Math.ceil(Math.abs(c*e[1]*r)),i)||1,d=s?s/l:1,f=c?c/u:1,p={coords:this._posData,colors:this._colData,offsetX:-a,offsetY:-o,scaleX:1/d,scaleY:1/f},m=l+4,h=u+4,g=n.create(m,h);if(An()&&this._vertexCount>48)g.context.drawImage(Mn(this._posData,this._colData,this._vertexCount,p,t,m,h,2),0,0);else{let e=g.context.createImageData(l,u);if(t){let n=e.data;for(let e=0,r=n.length;e<r;e+=4)n[e]=t[0],n[e+1]=t[1],n[e+2]=t[2],n[e+3]=255}for(let t=0,n=this._vertexCount;t<n;t+=3)Ln(e,p,t,t+1,t+2,t,t+1,t+2);g.context.putImageData(e,2,2)}return{canvas:g.canvas,offsetX:a-2*d,offsetY:o-2*f,scaleX:d,scaleY:f}}isModifyingCurrentTransform(){return!0}getPattern(e,t,n,r){Pn(e,this._bbox);let i=new Float32Array(2);if(r===Nn.SHADING)K.singularValueDecompose2dScale(Xe(e),i);else if(this.matrix){K.singularValueDecompose2dScale(this.matrix,i);let[e,n]=i;K.singularValueDecompose2dScale(t.baseTransform,i),i[0]*=e,i[1]*=n}else K.singularValueDecompose2dScale(t.baseTransform,i);let a=this._createMeshCanvas(i,r===Nn.SHADING?null:this._background,t.canvasFactory);r!==Nn.SHADING&&(e.setTransform(...t.baseTransform),this.matrix&&e.transform(...this.matrix)),e.translate(a.offsetX,a.offsetY),e.scale(a.scaleX,a.scaleY);let o=e.createPattern(a.canvas,`no-repeat`);return t.canvasFactory.destroy(a),o}},zn=class extends Fn{getPattern(){return`hotpink`}};function Bn(e){switch(e[0]){case`RadialAxial`:return new In(e);case`Mesh`:return new Rn(e);case`Dummy`:return new zn}throw Error(`Unknown IR type: ${e[0]}`)}var Vn={COLORED:1,UNCOLORED:2},Hn=class e{static MAX_PATTERN_SIZE=3e3;constructor(e,t,n,r){this.color=e[1],this.operatorList=e[2],this.matrix=e[3],this.bbox=e[4],this.xstep=e[5],this.ystep=e[6],this.paintType=e[7],this.tilingType=e[8],this.needsIsolation=e[9]??!0,this.ctx=t,this.canvasGraphicsFactory=n,this.baseTransform=r,this.patternBaseMatrix=this.matrix?K.transform(r,this.matrix):r}canSkipPatternCanvas([e,t,n,r]){let[i,a,o,s]=this.bbox,c=Math.abs(this.xstep),l=Math.abs(this.ystep);if(e>c+1e-6||t>l+1e-6)return null;let u=Math.floor((n-o)/c)+1,d=Math.ceil((n+e-i)/c)-1,f=Math.floor((r-s)/l)+1,p=Math.ceil((r+t-a)/l)-1;return d<=u&&p<=f?[u,f]:null}updatePatternDims(e,t){let n=K.inverseTransform(this.patternBaseMatrix),r=[e[0],e[1]],i=[e[2],e[3]];K.applyTransform(r,n),K.applyTransform(i,n),t[0]=Math.abs(i[0]-r[0]),t[1]=Math.abs(i[1]-r[1]),t[2]=Math.min(r[0],i[0]),t[3]=Math.min(r[1],i[1])}_renderTileCanvas(e,t,n,r){let[i,a,o,s]=this.bbox,c=e.canvasFactory.create(n.size,r.size),l=c.context,u=this.canvasGraphicsFactory.createCanvasGraphics(l,t);return u.groupLevel=e.groupLevel,this.setFillAndStrokeStyleToContext(u,this.paintType,this.color),l.translate(-n.scale*i,-r.scale*a),u.transform(0,n.scale,0,0,r.scale,0,0),l.save(),u.dependencyTracker?.save(),this.clipBbox(u,i,a,o,s),u.baseTransform=Xe(u.ctx),u.executeOperatorList(this.operatorList),u.endDrawing(),u.dependencyTracker?.restore(),l.restore(),c}_getCombinedScales(){let e=new Float32Array(2);K.singularValueDecompose2dScale(this.matrix,e);let[t,n]=e;return K.singularValueDecompose2dScale(this.baseTransform,e),[t*e[0],n*e[1]]}drawPattern(e,t,n=!1,[r,i],a){let[o,s,c,l]=this.bbox,u=e.dependencyTracker;if(u&&(e.dependencyTracker=new Wt(u,a)),e.save(),n?e.ctx.clip(t,`evenodd`):e.ctx.clip(t),e.ctx.setTransform(...this.patternBaseMatrix),e.ctx.translate(r*this.xstep,i*this.ystep),this.needsIsolation||e.ctx.globalAlpha!==1||e.ctx.globalCompositeOperation!==`source-over`||e.inSMaskMode){let t=c-o,n=l-s,[r,i]=this._getCombinedScales(),u=this.getSizeAndScale(t,this.ctx.canvas.width,r),d=this.getSizeAndScale(n,this.ctx.canvas.height,i),f=this._renderTileCanvas(e,a,u,d);e.ctx.drawImage(f.canvas,o,s,t,n),e.canvasFactory.destroy(f)}else this.setFillAndStrokeStyleToContext(e,this.paintType,this.color),this.clipBbox(e,o,s,c,l),e.baseTransformStack.push(e.baseTransform),e.baseTransform=Xe(e.ctx),e.executeOperatorList(this.operatorList),e.baseTransform=e.baseTransformStack.pop();e.restore(),u&&(e.dependencyTracker=u)}createPatternCanvas(e,t){let[n,r,i,a]=this.bbox,o=i-n,s=a-r,{xstep:c,ystep:l}=this;c=Math.abs(c),l=Math.abs(l),ce(`TilingType: `+this.tilingType);let[u,d]=this._getCombinedScales(),f=o,p=s,m=!1,h=!1;Math.ceil(c*u)>=Math.ceil(o*u)?f=c:m=!0,Math.ceil(l*d)>=Math.ceil(s*d)?p=l:h=!0;let g=this.getSizeAndScale(f,this.ctx.canvas.width,u),_=this.getSizeAndScale(p,this.ctx.canvas.height,d),v=this._renderTileCanvas(e,t,g,_);if(m||h){let t=v.canvas;m&&(f=c),h&&(p=l);let i=this.getSizeAndScale(f,this.ctx.canvas.width,u),a=this.getSizeAndScale(p,this.ctx.canvas.height,d),g=i.size,_=a.size,y=e.canvasFactory.create(g,_),b=y.context,x=m?Math.floor(o/c):0,S=h?Math.floor(s/l):0;for(let e=0;e<=x;e++)for(let n=0;n<=S;n++)b.drawImage(t,g*e,_*n,g,_,0,0,g,_);return e.canvasFactory.destroy(v),{canvas:y.canvas,canvasEntry:y,scaleX:i.scale,scaleY:a.scale,offsetX:n,offsetY:r}}return{canvas:v.canvas,canvasEntry:v,scaleX:g.scale,scaleY:_.scale,offsetX:n,offsetY:r}}getSizeAndScale(t,n,r){let i=Math.max(e.MAX_PATTERN_SIZE,n),a=Math.ceil(t*r);return a>=i?a=i:r=a/t,{scale:r,size:a}}clipBbox(e,t,n,r,i){let a=r-t,o=i-n,s=new Path2D;s.rect(t,n,a,o),K.axialAlignedBoundingBox([t,n,r,i],Xe(e.ctx),e.current.minMax),e.ctx.clip(s),e.current.updateClipFromPath()}setFillAndStrokeStyleToContext(e,t,n){let r=e.ctx,i=e.current;switch(i.patternFill=i.patternStroke=!1,t){case Vn.COLORED:let{fillStyle:e,strokeStyle:a}=this.ctx;r.fillStyle=i.fillColor=e,r.strokeStyle=i.strokeColor=a;break;case Vn.UNCOLORED:r.fillStyle=r.strokeStyle=n,i.fillColor=i.strokeColor=n;break;default:throw new ye(`Unsupported paint type: ${t}`)}}isModifyingCurrentTransform(){return!1}getPattern(e,t,n,r,i){let a=r===Nn.SHADING?n:K.transform(n,this.patternBaseMatrix),o=this.createPatternCanvas(t,i),s=new DOMMatrix(a);s=s.translate(o.offsetX,o.offsetY),s=s.scale(1/o.scaleX,1/o.scaleY);let c=e.createPattern(o.canvas,`repeat`);return t.canvasFactory.destroy(o.canvasEntry),c.setTransform(s),c}};function Un({src:e,srcPos:t=0,dest:n,width:r,height:i,nonBlackColor:a=4294967295,inverseDecode:o=!1}){let s=G.isLittleEndian?4278190080:255,[c,l]=o?[a,s]:[s,a],u=r>>3,d=r&7,f=c^l,p=e.length;n=new Uint32Array(n.buffer);let m=0;for(let r=0;r<i;++r){for(let r=t+u;t<r;++t,m+=8){let r=e[t];n[m]=c^-(r>>7&1)&f,n[m+1]=c^-(r>>6&1)&f,n[m+2]=c^-(r>>5&1)&f,n[m+3]=c^-(r>>4&1)&f,n[m+4]=c^-(r>>3&1)&f,n[m+5]=c^-(r>>2&1)&f,n[m+6]=c^-(r>>1&1)&f,n[m+7]=c^-(r&1)&f}if(d===0)continue;let r=t<p?e[t++]:255;for(let e=0;e<d;++e,++m)n[m]=c^-(r>>7-e&1)&f}return{srcPos:t,destPos:m}}var Wn=16,Gn=100,Kn=15,qn=10,Jn=16,Yn=new DOMMatrix,Xn=new Float32Array(2);function Zn(e,t){if(e._removeMirroring)throw Error(`Context is already forwarding operations.`);let n=new Map;for(let r of[`save`,`restore`,`rotate`,`scale`,`translate`,`transform`,`setTransform`,`resetTransform`,`clip`,`moveTo`,`lineTo`,`bezierCurveTo`,`quadraticCurveTo`,`arc`,`arcTo`,`ellipse`,`rect`,`roundRect`,`closePath`,`beginPath`]){let i=e[r];typeof i!=`function`||typeof t[r]!=`function`||(n.set(r,i),e[r]=function(...e){return t[r](...e),i.apply(this,e)})}e._removeMirroring=()=>{for(let[t,r]of n)e[t]=r;delete e._removeMirroring}}function Qn(e,t,n,r,i,a,o,s,c,l){let[u,d,f,p,m,h]=Xe(e);if(d===0&&f===0){let g=o*u+m,_=Math.round(g),v=s*p+h,y=Math.round(v),b=(o+c)*u+m,x=Math.abs(Math.round(b)-_)||1,S=(s+l)*p+h,C=Math.abs(Math.round(S)-y)||1;return e.setTransform(Math.sign(u),0,0,Math.sign(p),_,y),e.drawImage(t,n,r,i,a,0,0,x,C),e.setTransform(u,d,f,p,m,h),[x,C]}if(u===0&&p===0){let g=s*f+m,_=Math.round(g),v=o*d+h,y=Math.round(v),b=(s+l)*f+m,x=Math.abs(Math.round(b)-_)||1,S=(o+c)*d+h,C=Math.abs(Math.round(S)-y)||1;return e.setTransform(0,Math.sign(d),Math.sign(f),0,_,y),e.drawImage(t,n,r,i,a,0,0,C,x),e.setTransform(u,d,f,p,m,h),[C,x]}e.drawImage(t,n,r,i,a,o,s,c,l);let g=Math.hypot(u,d),_=Math.hypot(f,p);return[g*c,_*l]}var $n=class{alphaIsShape=!1;fontSize=0;fontSizeScale=1;textMatrix=null;textMatrixScale=1;fontMatrix=k;leading=0;x=0;y=0;lineX=0;lineY=0;charSpacing=0;wordSpacing=0;textHScale=1;textRenderingMode=z.FILL;textRise=0;fillColor=`#000000`;strokeColor=`#000000`;tilingPatternDims=null;patternFill=!1;patternStroke=!1;fillAlpha=1;strokeAlpha=1;lineWidth=1;activeSMask=null;transferMaps=`none`;minMax=O.slice();constructor(e,t){this.clipBox=new Float32Array([0,0,e,t])}clone(){let e=Object.create(this);return e.clipBox=this.clipBox.slice(),e.minMax=this.minMax.slice(),e.tilingPatternDims=this.tilingPatternDims?.slice(),e}getPathBoundingBox(e=Nn.FILL,t=null){let n=this.minMax.slice();if(e===Nn.STROKE){t||U(`Stroke bounding box must include transform.`),K.singularValueDecompose2dScale(t,Xn);let e=Xn[0]*this.lineWidth/2,r=Xn[1]*this.lineWidth/2;n[0]-=e,n[1]-=r,n[2]+=e,n[3]+=r}return n}updateClipFromPath(){let e=K.intersect(this.clipBox,this.getPathBoundingBox());this.startNewPathAndClipBox(e||[0,0,0,0])}isEmptyClip(){return this.minMax[0]===1/0}startNewPathAndClipBox(e){this.clipBox.set(e,0),this.minMax.set(O,0)}getClippedPathBoundingBox(e=Nn.FILL,t=null){return K.intersect(this.clipBox,this.getPathBoundingBox(e,t))}};function er(e,t){if(t instanceof ImageData){e.putImageData(t,0,0);return}let n=t.height,r=t.width,i=n%Jn,a=(n-i)/Jn,o=i===0?a:a+1,s=e.createImageData(r,Jn),c=0,l,u=t.data,d=s.data,f,p,m,h;if(t.kind===ee.GRAYSCALE_1BPP){let t=u.byteLength,n=new Uint32Array(d.buffer,0,d.byteLength>>2),h=n.length,g=r+7>>3,_=4294967295,v=G.isLittleEndian?4278190080:255;for(f=0;f<o;f++){for(m=f<a?Jn:i,l=0,p=0;p<m;p++){let e=t-c,i=0,a=e>g?r:e*8-7,o=a&-8,s=0,d=0;for(;i<o;i+=8)d=u[c++],n[l++]=d&128?_:v,n[l++]=d&64?_:v,n[l++]=d&32?_:v,n[l++]=d&16?_:v,n[l++]=d&8?_:v,n[l++]=d&4?_:v,n[l++]=d&2?_:v,n[l++]=d&1?_:v;for(;i<a;i++)s===0&&(d=u[c++],s=128),n[l++]=d&s?_:v,s>>=1}for(;l<h;)n[l++]=0;e.putImageData(s,0,f*Jn)}}else if(t.kind===ee.RGBA_32BPP){for(p=0,h=r*Jn*4,f=0;f<a;f++)d.set(u.subarray(c,c+h)),c+=h,e.putImageData(s,0,p),p+=Jn;f<o&&(h=r*i*4,d.set(u.subarray(c,c+h)),e.putImageData(s,0,p))}else if(t.kind===ee.RGB_24BPP)for(m=Jn,h=r*m,f=0;f<o;f++){for(f>=a&&(m=i,h=r*m),l=0,p=h;p--;)d[l++]=u[c++],d[l++]=u[c++],d[l++]=u[c++],d[l++]=255;e.putImageData(s,0,f*Jn)}else throw Error(`bad image kind: ${t.kind}`)}function tr(e,t){if(t.bitmap){e.drawImage(t.bitmap,0,0);return}let n=t.height,r=t.width,i=n%Jn,a=(n-i)/Jn,o=i===0?a:a+1,s=e.createImageData(r,Jn),c=0,l=t.data,u=s.data;for(let t=0;t<o;t++){let n=t<a?Jn:i;({srcPos:c}=Un({src:l,srcPos:c,dest:u,width:r,height:n,nonBlackColor:0})),e.putImageData(s,0,t*Jn)}}function nr(e,t){for(let n of[`strokeStyle`,`fillStyle`,`fillRule`,`globalAlpha`,`lineWidth`,`lineCap`,`lineJoin`,`miterLimit`,`globalCompositeOperation`,`font`,`filter`])e[n]!==void 0&&(t[n]=e[n]);e.setLineDash!==void 0&&(t.setLineDash(e.getLineDash()),t.lineDashOffset=e.lineDashOffset)}function rr(e){e.strokeStyle=e.fillStyle=`#000000`,e.fillRule=`nonzero`,e.globalAlpha=1,e.lineWidth=1,e.lineCap=`butt`,e.lineJoin=`miter`,e.miterLimit=10,e.globalCompositeOperation=`source-over`,e.font=`10px sans-serif`,e.setLineDash!==void 0&&(e.setLineDash([]),e.lineDashOffset=0);let{filter:t}=e;t!==`none`&&t!==``&&(e.filter=`none`)}function ir(e,t){if(t)return!0;K.singularValueDecompose2dScale(e,Xn);let n=Math.fround($e.pixelRatio*Fe.PDF_TO_CSS_UNITS);return Xn[0]<=n&&Xn[1]<=n}var ar=[`butt`,`round`,`square`],or=[`miter`,`round`,`bevel`],sr={},cr={},lr=class e{#e=0;#t=0;#n=null;#r=null;#i=null;#a=null;#o=1;#s;#c=null;#l=[];constructor(e,t,n,r,i,{optionalContentConfig:a,markedContentStack:o=null},s,c,l,u){this.ctx=e,this.current=new $n(this.ctx.canvas.width,this.ctx.canvas.height),this.stateStack=[],this.pendingClip=null,this.pendingEOFill=!1,this.commonObjs=t,this.objs=n,this.canvasFactory=r,this.filterFactory=i,this.groupStack=[],this.baseTransform=null,this.baseTransformStack=[],this.groupLevel=0,this.smaskStack=[],this.tempSMask=null,this.smaskGroupCanvases=[],this.smaskPreparedEntry=null,this.smaskPreparedFor=null,this.smaskPreparedOffsetX=0,this.smaskPreparedOffsetY=0,this.smaskPreparedOOBAlpha=null,this.suspendedCtx=null,this.contentVisible=!0,this.markedContentStack=o||[],this.optionalContentConfig=a,this.cachedPatterns=new Map,this.annotationCanvasMap=s,this.viewportScale=1,this.outputScaleX=1,this.outputScaleY=1,this.pageColors=c,this._cachedScaleForStroking=[-1,0],this._cachedGetSinglePixelWidth=null,this._cachedBitmapsMap=new Map,this.dependencyTracker=l??null,this.imagesTracker=u??null}getObject(e,t,n=null){return typeof t==`string`?(this.dependencyTracker?.recordNamedDependency(e,t),t.startsWith(`g_`)?this.commonObjs.get(t):this.objs.get(t)):n}beginDrawing({transform:e,viewport:t,transparency:n=!1,background:r=null}){let i=this.ctx.canvas.width,a=this.ctx.canvas.height,o=this.ctx.fillStyle;if(this.ctx.fillStyle=r||`#ffffff`,this.ctx.fillRect(0,0,i,a),this.ctx.fillStyle=o,n){let e=this.transparentCanvasEntry=this.canvasFactory.create(i,a);this.compositeCtx=this.ctx,{canvas:this.transparentCanvas,context:this.ctx}=e,this.ctx.save(),this.ctx.transform(...Xe(this.compositeCtx))}this.ctx.save(),rr(this.ctx),e&&(this.ctx.transform(...e),this.outputScaleX=e[0],this.outputScaleY=e[3]),this.ctx.transform(...t.transform),this.viewportScale=t.scale,this.baseTransform=Xe(this.ctx)}executeOperatorList(e,t,n,r,i){let a=e.argsArray,o=e.fnArray,s=t||0,c=a.length;if(c===s)return s;let l=c-s>qn&&typeof n==`function`,u=l?Date.now()+Kn:0,d=0,f=this.commonObjs,p=this.objs,m,h;for(;;){if(r!==void 0){if(s===r.nextBreakPoint)return r.breakIt(s,n),s;if(r.shouldSkip(s)){if(++s===c)return s;continue}}if(!i||i(s))if(m=o[s],h=a[s]??null,m!==V.dependency)h===null?this[m](s):this[m](s,...h);else for(let e of h){this.dependencyTracker?.recordNamedData(e,s);let t=e.startsWith(`g_`)?f:p;if(!t.has(e))return t.get(e,n),s}if(s++,s===c)return s;if(l&&++d>qn){if(Date.now()>u)return n(),s;d=0}}}#u(){for(;this.stateStack.length||this.inSMaskMode;)this.restore();this.current.activeSMask=null,this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.canvasFactory.destroy(this.transparentCanvasEntry),this.transparentCanvas=null,this.transparentCanvasEntry=null)}endDrawing(){this.#u();for(let e of this.smaskGroupCanvases)this.canvasFactory.destroy(e);this.smaskGroupCanvases.length=0,this._clearPreparedSMask(),this.tempSMask=null,this.smaskStack.length=0;for(let e of this.#l)this.#v(e);this.#l.length=0,this.#n=null,this.#r=null,this.#i=null,this.#a=null,this.#o=1,this.#c=null,this.#t=0,this.#e=0,this.cachedPatterns.clear();for(let e of this._cachedBitmapsMap.values()){for(let t of e.values())typeof HTMLCanvasElement<`u`&&t instanceof HTMLCanvasElement&&(t.width=t.height=0);e.clear()}this._cachedBitmapsMap.clear(),this.#d()}#d(){if(this.pageColors){let e=this.filterFactory.addHCMFilter(this.pageColors.foreground,this.pageColors.background);if(e!==`none`){let t=this.ctx.filter;this.ctx.filter=e,this.ctx.drawImage(this.ctx.canvas,0,0),this.ctx.filter=t}}}_scaleImage(e,t){let n=e.width??e.displayWidth,r=e.height??e.displayHeight,i=Math.max(Math.hypot(t[0],t[1]),1),a=Math.max(Math.hypot(t[2],t[3]),1),o=[],s=i,c=a,l=n,u=r;for(;s>2&&l>1||c>2&&u>1;){let e=l,t=u;s>2&&l>1&&(e=Math.ceil(l/2),s/=l/e),c>2&&u>1&&(t=Math.ceil(u/2),c/=u/t),o.push({newWidth:e,newHeight:t}),l=e,u=t}if(o.length===0)return{img:e,paintWidth:n,paintHeight:r,tmpCanvas:null};if(o.length===1){let{newWidth:t,newHeight:i}=o[0],a=this.canvasFactory.create(t,i);return a.context.drawImage(e,0,0,n,r,0,0,t,i),{img:a.canvas,paintWidth:t,paintHeight:i,tmpCanvas:a}}let d=this.canvasFactory.create(1,1),f=this.canvasFactory.create(1,1),p=n,m=r,h=e;for(let{newWidth:e,newHeight:t}of o)this.canvasFactory.reset(f,e,t),f.context.drawImage(h,0,0,p,m,0,0,e,t),[d,f]=[f,d],h=d.canvas,p=e,m=t;return this.canvasFactory.destroy(f),{img:d.canvas,paintWidth:p,paintHeight:m,tmpCanvas:d}}_createMaskCanvas(e,t){let n=this.ctx,{width:r,height:i}=t,a=this.current.fillColor,o=this.current.patternFill,s=Xe(n),c,l,u,d;if((t.bitmap||t.data)&&t.count>1){let n=t.bitmap||t.data.buffer;l=JSON.stringify(o?s:[s.slice(0,4),a]),c=this._cachedBitmapsMap.getOrInsertComputed(n,Ae);let r=c.get(l);if(r&&!o){let t=Math.round(Math.min(s[0],s[2])+s[4]),n=Math.round(Math.min(s[1],s[3])+s[5]);return this.dependencyTracker?.recordDependencies(e,Gt.transformAndFill),{canvas:r,offsetX:t,offsetY:n}}u=r}u||(d=this.canvasFactory.create(r,i),tr(d.context,t));let f=K.transform(s,[1/r,0,0,-1/i,0,0]);f=K.transform(f,[1,0,0,1,0,-i]);let p=O.slice();K.axialAlignedBoundingBox([0,0,r,i],f,p);let[m,h,g,_]=p,v=Math.round(g-m)||1,y=Math.round(_-h)||1,b=this.canvasFactory.create(v,y),x=b.context,S=m,C=h;x.translate(-S,-C),x.transform(...f);let w=null;if(!u){let e=this._scaleImage(d.canvas,Ze(x));u=e.img,w=e.tmpCanvas,u!==d.canvas&&(this.canvasFactory.destroy(d),d=null),c&&o&&(c.set(l,u),w=null,d=null)}x.imageSmoothingEnabled=ir(Xe(x),t.interpolate),Qn(x,u,0,0,u.width,u.height,0,0,r,i),w&&this.canvasFactory.destroy(w),d&&this.canvasFactory.destroy(d),x.globalCompositeOperation=`source-in`;let T=K.transform(Ze(x),[1,0,0,1,-S,-C]);return x.fillStyle=o?a.getPattern(n,this,T,Nn.FILL,e):a,x.fillRect(0,0,r,i),c&&!o&&c.set(l,b.canvas),this.dependencyTracker?.recordDependencies(e,Gt.transformAndFill),{canvas:b.canvas,canvasEntry:c&&!o?null:b,offsetX:Math.round(S),offsetY:Math.round(C)}}setLineWidth(e,t){this.dependencyTracker?.recordSimpleData(`lineWidth`,e),t!==this.current.lineWidth&&(this._cachedScaleForStroking[0]=-1),this.current.lineWidth=t,this.ctx.lineWidth=t}setLineCap(e,t){this.dependencyTracker?.recordSimpleData(`lineCap`,e),this.ctx.lineCap=ar[t]}setLineJoin(e,t){this.dependencyTracker?.recordSimpleData(`lineJoin`,e),this.ctx.lineJoin=or[t]}setMiterLimit(e,t){this.dependencyTracker?.recordSimpleData(`miterLimit`,e),this.ctx.miterLimit=t}setDash(e,t,n){this.dependencyTracker?.recordSimpleData(`dash`,e);let r=this.ctx;r.setLineDash!==void 0&&(r.setLineDash(t),r.lineDashOffset=n)}setRenderingIntent(e,t){}setFlatness(e,t){}setGState(e,t){for(let[n,r]of t)switch(n){case`LW`:this.setLineWidth(e,r);break;case`LC`:this.setLineCap(e,r);break;case`LJ`:this.setLineJoin(e,r);break;case`ML`:this.setMiterLimit(e,r);break;case`D`:this.setDash(e,r[0],r[1]);break;case`RI`:this.setRenderingIntent(e,r);break;case`FL`:this.setFlatness(e,r);break;case`Font`:this.setFont(e,r[0],r[1]);break;case`CA`:this.dependencyTracker?.recordSimpleData(`strokeAlpha`,e),this.current.strokeAlpha=r;break;case`ca`:this.dependencyTracker?.recordSimpleData(`fillAlpha`,e),this.ctx.globalAlpha=this.current.fillAlpha=r;break;case`BM`:this.dependencyTracker?.recordSimpleData(`globalCompositeOperation`,e),this.ctx.globalCompositeOperation=r;break;case`SMask`:this.dependencyTracker?.recordSimpleData(`SMask`,e),this.current.activeSMask=r?this.tempSMask:null,this.current.activeSMask&&(this.current.activeSMask.blendMode=this.ctx.globalCompositeOperation),this.tempSMask=null,this.checkSMaskState(e);break;case`TR`:this.dependencyTracker?.recordSimpleData(`filter`,e),this.ctx.filter=this.current.transferMaps=this.filterFactory.addFilter(r);break}}get inSMaskMode(){return!!this.suspendedCtx}_clearPreparedSMask(){this.smaskPreparedEntry&&=(this.canvasFactory.destroy(this.smaskPreparedEntry),null),this.smaskPreparedFor=null,this.smaskPreparedOffsetX=0,this.smaskPreparedOffsetY=0,this.smaskPreparedOOBAlpha=null}_ensurePreparedSMask(e){e!==this.smaskPreparedFor&&(this._clearPreparedSMask(),this._prepareSMaskCanvas(e))}checkSMaskState(e){let t=this.inSMaskMode;this.current.activeSMask&&!t?this.beginSMaskMode(e):!this.current.activeSMask&&t?this.endSMaskMode():this.current.activeSMask&&t&&this._ensurePreparedSMask(this.current.activeSMask)}_prepareSMaskCanvas(e){let{canvas:t,subtype:n,backdrop:r,transferMap:i}=e,a=n===`Luminosity`||n===`Alpha`&&i;if(!a&&!(n===`Luminosity`&&r)){this.smaskPreparedFor=e;return}let o;if(n===`Luminosity`&&r){let[e,t,n]=qe(r),a=Math.round(.3*e+.59*t+.11*n);o=i?.[a]??a}else o=i?.[0]??0;let{width:s,height:c}=this.ctx.canvas,l=t.width*t.height,u=s*c<4*l,d=a?{url:n===`Alpha`?this.filterFactory.addAlphaFilter(i):this.filterFactory.addLuminosityFilter(i),subtype:n,transferMap:i}:null,f=n===`Luminosity`?r:null,p,m,h;u?(p=this._bakeSMaskCanvas(t,e.offsetX,e.offsetY,s,c,f,d),m=0,h=0):(p=this._bakeSMaskCanvas(t,0,0,t.width,t.height,f,d),m=e.offsetX,h=e.offsetY),this.smaskPreparedEntry=p,this.smaskPreparedFor=e,this.smaskPreparedOffsetX=m,this.smaskPreparedOffsetY=h,this.smaskPreparedOOBAlpha=!u&&o!==0?o:null}_bakeSMaskCanvas(e,t,n,r,i,a,o){!a&&!o&&U(`_bakeSMaskCanvas with neither backdrop nor filter`);let s=this.canvasFactory.create(r,i),c=s.context;if(c.drawImage(e,t,n),a&&(c.globalCompositeOperation=`destination-atop`,c.fillStyle=a,c.fillRect(0,0,r,i)),!o)return s;let l=this.canvasFactory.create(r,i),u=l.context;u.filter=o.url;let d=G.isCanvasFilterSupported&&u.filter!==`none`&&u.filter!==``;if(u.drawImage(s.canvas,0,0),G.isCanvasFilterSupported&&(u.filter=`none`),!d){let e=u.getImageData(0,0,r,i),{data:t}=e,{transferMap:n}=o;if(o.subtype===`Luminosity`)for(let e=0,r=t.length;e<r;e+=4){let r=.3*t[e]+.59*t[e+1]+.11*t[e+2]+.5|0;t[e]=t[e+1]=t[e+2]=0,t[e+3]=n?.[r]??r}else for(let e=3,r=t.length;e<r;e+=4)t[e]=n[t[e]];u.putImageData(e,0,0)}return this.canvasFactory.destroy(s),l}beginSMaskMode(e){if(this.inSMaskMode)throw Error(`beginSMaskMode called while already in smask mode`);let{width:t,height:n}=this.ctx.canvas,r=this.canvasFactory.create(t,n);this.smaskScratchCanvas=r,this.suspendedCtx=this.ctx;let i=this.ctx=r.context;i.setTransform(this.suspendedCtx.getTransform()),nr(this.suspendedCtx,i),Zn(i,this.suspendedCtx),this._ensurePreparedSMask(this.current.activeSMask),this.setGState(e,[[`BM`,`source-over`]])}endSMaskMode(){if(!this.inSMaskMode)throw Error(`endSMaskMode called while not in smask mode`);this.ctx._removeMirroring(),nr(this.ctx,this.suspendedCtx),this.ctx=this.suspendedCtx,this.suspendedCtx=null,this.canvasFactory.destroy(this.smaskScratchCanvas),this.smaskScratchCanvas=null,this._clearPreparedSMask()}#f(e,t=null,n=1){let{width:r,height:i}=e,a=t??this.canvasFactory.create(r,i),o=a.context;n=Math.round(n*255)/255;let s=n<1;s&&this.#s===void 0&&(this.#s=G.isCanvasFilterSupported?new Map:`none`);let c=`none`;if(s&&this.#s instanceof Map&&(c=this.#s.get(n),c||(c=this.filterFactory.addKnockoutFilter(n),this.#s.set(n,c))),!s||c!==`none`)return t&&(o.save(),o.setTransform(1,0,0,1,0,0),o.clearRect(0,0,r,i),o.restore()),o.filter=c,o.drawImage(e,0,0),o.filter=`none`,a;let l=e.getContext(`2d`,{willReadFrequently:!0}).getImageData(0,0,r,i),u=o.createImageData(r,i),d=l.data,f=u.data,p=n>0?1/n:1e6;for(let e=3,t=d.length;e<t;e+=4)f[e]=Math.min(Math.round(d[e]*p),255);return o.putImageData(u,0,0),a}#p(e,t,n,r){let i=e?.[t]??null;if(i&&(i.canvas.width!==n||i.canvas.height!==r)&&(this.canvasFactory.destroy(i),i=null),!i)return i=this.canvasFactory.create(n,r),e&&(e[t]=i),i;let a=i.context;return a.save(),a.setTransform(1,0,0,1,0,0),a.clearRect(0,0,n,r),a.restore(),i}#m(e,t,n={}){let{backdropCanvas:r=null,destTransform:i=[1,0,0,1,0,0],backdropOffset:a=[0,0],reuseMaskEntry:o=null,poolMeta:s=null,sourceAlpha:c=1,sourceFilter:l=`none`,knockoutAlpha:u=1}=n,{width:d,height:f}=t,p=this.#f(t,o,u),m=e.globalCompositeOperation;if(e.save(),e.setTransform(...i),e.globalAlpha=1,G.isCanvasFilterSupported&&(e.filter=`none`),e.globalCompositeOperation=`destination-out`,e.drawImage(p.canvas,0,0),r){let[t,n]=a,i=this.#p(s,`knockoutBackdropEntry`,d,f),o=i.context;o.drawImage(r,t,n,d,f,0,0,d,f),o.globalCompositeOperation=`destination-in`,o.drawImage(p.canvas,0,0),o.globalCompositeOperation=`source-over`,e.globalCompositeOperation=`destination-over`,e.drawImage(i.canvas,0,0),s||this.canvasFactory.destroy(i)}e.globalCompositeOperation=m,e.globalAlpha=c,G.isCanvasFilterSupported&&(e.filter=l??`none`),e.drawImage(t,0,0),e.restore(),o||this.canvasFactory.destroy(p)}#h(e=1){if(this.#e===0||this.#t>0||!this.contentVisible)return!1;this.#t++,this.#o=e;let t=this.#l.at(-1),{canvas:n}=this.ctx,r=this.#p(t,`knockoutTempEntry`,n.width,n.height);this.#n=r;let i=r.context;return i.save(),i.setTransform(this.ctx.getTransform()),nr(this.ctx,i),this.#a=i.globalCompositeOperation,i.globalCompositeOperation=`source-over`,Zn(i,this.ctx),this.#c=t,this.#r=this.ctx,this.#i=this.suspendedCtx,this.ctx=i,this.inSMaskMode&&(this.suspendedCtx=i),!0}#g(e){if(!e)return;let t=this.#n,n=this.#r,r=this.#i,i=t.context;this.#n=null,this.#r=null,this.#i=null,this.inSMaskMode&&this.suspendedCtx===i&&this.ctx!==i&&this.endSMaskMode(),this.inSMaskMode&&(this.suspendedCtx=r),this.ctx._removeMirroring(),this.ctx.globalCompositeOperation=this.#a,this.#a=null,nr(this.ctx,n),this.ctx=n;let a=this.#c;this.#c=null;let o=this.#o;this.#o=1;try{this.#m(r??n,t.canvas,{backdropCanvas:a?.backdropCtx?.canvas??null,backdropOffset:a?.backdropCtx?[a.offsetX,a.offsetY]:[0,0],reuseMaskEntry:a?.knockoutMaskEntry??null,poolMeta:a,knockoutAlpha:o})}finally{i.restore(),this.#t--,a||this.canvasFactory.destroy(t)}}compose(e){if(!this.current.activeSMask)return;e=e?[Math.floor(e[0]),Math.floor(e[1]),Math.ceil(e[2]),Math.ceil(e[3])]:[0,0,this.ctx.canvas.width,this.ctx.canvas.height];let t=this.current.activeSMask,n=this.suspendedCtx,r=this.#t>0&&n===this.ctx;this.composeSMask(r?null:n,t,this.ctx,e),!r&&(this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.clearRect(0,0,this.ctx.canvas.width,this.ctx.canvas.height),this.ctx.restore())}composeSMask(e,t,n,r){let i=r[0],a=r[1],o=r[2]-i,s=r[3]-a;if(o===0||s===0)return;let c=this.smaskPreparedEntry;if(c){let e=i,r=a,l=o,u=s,d=this.smaskPreparedOOBAlpha,f=d!==null;if(f){e=Math.max(i,t.offsetX),r=Math.max(a,t.offsetY);let n=Math.min(i+o,t.offsetX+t.canvas.width),c=Math.min(a+s,t.offsetY+t.canvas.height);l=n-e,u=c-r}if(l>0&&u>0){let t=e-this.smaskPreparedOffsetX,i=r-this.smaskPreparedOffsetY;n.save(),n.globalAlpha=1,n.setTransform(1,0,0,1,0,0);let a=new Path2D;a.rect(e,r,l,u),n.clip(a),n.globalCompositeOperation=`destination-in`,n.drawImage(c.canvas,t,i,l,u,e,r,l,u),n.restore()}f&&d<255&&this._applySMaskOOBAlpha(n,i,a,o,s,e,r,e+l,r+u,d)}else this.genericComposeSMask(t,n,o,s,i,a);e&&(e.save(),e.globalAlpha=1,e.globalCompositeOperation=t.blendMode||`source-over`,e.setTransform(1,0,0,1,0,0),e.drawImage(n.canvas,i,a,o,s,i,a,o,s),e.restore())}_applySMaskOOBAlpha(e,t,n,r,i,a,o,s,c,l){let u=a<s&&o<c;if(u&&a===t&&o===n&&s===t+r&&c===n+i)return;let d=new Path2D;d.rect(t,n,r,i),u&&d.rect(a,o,s-a,c-o),e.save(),e.globalAlpha=l/255,e.setTransform(1,0,0,1,0,0),e.clip(d,`evenodd`),e.globalCompositeOperation=`destination-in`,e.fillStyle=`#000000`,e.fillRect(t,n,r,i),e.restore()}genericComposeSMask(e,t,n,r,i,a){let{context:o,offsetX:s,offsetY:c}=e;t.save(),t.globalAlpha=1,t.setTransform(1,0,0,1,0,0);let l=new Path2D;l.rect(i,a,n,r),t.clip(l),t.globalCompositeOperation=`destination-in`,t.drawImage(o.canvas,i-s,a-c,n,r,i,a,n,r),t.restore()}save(e){this.inSMaskMode&&nr(this.ctx,this.suspendedCtx),this.ctx.save();let t=this.current;this.stateStack.push(t),this.current=t.clone(),this.dependencyTracker?.save(e)}restore(e){if(this.dependencyTracker?.restore(e),this.stateStack.length===0){this.inSMaskMode&&this.endSMaskMode();return}this.current=this.stateStack.pop(),this.ctx.restore(),this.inSMaskMode&&(nr(this.suspendedCtx,this.ctx),this.ctx.setTransform(this.suspendedCtx.getTransform())),this.checkSMaskState(e),this.pendingClip=null,this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null}transform(e,t,n,r,i,a,o){this.dependencyTracker?.recordIncrementalData(`transform`,e),this.ctx.transform(t,n,r,i,a,o),this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null}constructPath(e,t,n,r){let[i]=n;if(!r){i||=n[0]=new Path2D,t!==V.stroke&&t!==V.closeStroke&&(this.current.tilingPatternDims=null),this[t](e,i);return}if(this.dependencyTracker!==null){let n=t===V.stroke?this.current.lineWidth/2:0;this.dependencyTracker.resetBBox(e).recordBBox(e,this.ctx,r[0]-n,r[2]+n,r[1]-n,r[3]+n).recordDependencies(e,[`transform`])}i instanceof Path2D||(i=n[0]=dt(i)),K.axialAlignedBoundingBox(r,Xe(this.ctx),this.current.minMax);let a=this.current.tilingPatternDims;if(a&&t!==V.stroke&&t!==V.closeStroke&&this.current.fillColor instanceof Hn){let e=K.intersect(this.current.clipBox,this.current.minMax);e?this.current.fillColor.updatePatternDims(e,a):this.current.tilingPatternDims=null}this[t](e,i),this._pathStartIdx=e}closePath(e){this.ctx.closePath()}stroke(e,t,n=!0){let r=n&&this.#h(this.current.strokeAlpha),i=this.ctx,a=this.current.strokeColor;if(i.globalAlpha=this.current.strokeAlpha,this.contentVisible)if(typeof a==`object`&&a?.getPattern){let n=a.isModifyingCurrentTransform()?i.getTransform():null;if(i.save(),i.strokeStyle=a.getPattern(i,this,Ze(i),Nn.STROKE,e),n){let e=new Path2D;e.addPath(t,i.getTransform().invertSelf().multiplySelf(n)),t=e}this.rescaleAndStroke(t,!1),i.restore()}else this.rescaleAndStroke(t,!0);this.dependencyTracker?.recordDependencies(e,Gt.stroke),n&&this.consumePath(e,t,this.current.getClippedPathBoundingBox(Nn.STROKE,Xe(this.ctx))),i.globalAlpha=this.current.fillAlpha,this.#g(r)}closeStroke(e,t){this.stroke(e,t)}fill(e,t,n=!0){let r=n&&this.#h(this.current.fillAlpha),i=this.ctx,a=this.current.fillColor,o=this.current.patternFill,s=!1,c=this.current.getClippedPathBoundingBox();if(this.dependencyTracker?.recordDependencies(e,Gt.fill),o){let o=this.current.tilingPatternDims,l=o&&a.canSkipPatternCanvas(o);if(l){a.drawPattern(this,t,this.pendingEOFill,l,e),this.pendingEOFill=!1,n&&this.consumePath(e,t,c),this.current.tilingPatternDims=null,this.#g(r);return}let u=a.isModifyingCurrentTransform()?i.getTransform():null;if(this.dependencyTracker?.save(e),i.save(),i.fillStyle=a.getPattern(i,this,Ze(i),Nn.FILL,e),u){let e=new Path2D;e.addPath(t,i.getTransform().invertSelf().multiplySelf(u)),t=e}s=!0}this.contentVisible&&c!==null&&(this.pendingEOFill?(i.fill(t,`evenodd`),this.pendingEOFill=!1):i.fill(t)),s&&(i.restore(),this.dependencyTracker?.restore(e)),n&&this.consumePath(e,t,c),this.#g(r)}eoFill(e,t){this.pendingEOFill=!0,this.fill(e,t)}fillStroke(e,t){let n=this.#h(Math.min(this.current.fillAlpha,this.current.strokeAlpha));this.fill(e,t,!1),this.stroke(e,t,!1),this.consumePath(e,t),this.#g(n)}eoFillStroke(e,t){this.pendingEOFill=!0,this.fillStroke(e,t)}closeFillStroke(e,t){this.fillStroke(e,t)}closeEOFillStroke(e,t){this.pendingEOFill=!0,this.fillStroke(e,t)}endPath(e,t){this.consumePath(e,t)}rawFillPath(e,t){let n=this.#h(this.current.fillAlpha);this.ctx.fill(t),this.dependencyTracker?.recordDependencies(e,Gt.rawFillPath).recordOperation(e),this.#g(n)}clip(e){this.dependencyTracker?.recordFutureForcedDependency(`clipMode`,e),this.pendingClip=sr}eoClip(e){this.dependencyTracker?.recordFutureForcedDependency(`clipMode`,e),this.pendingClip=cr}beginText(e){this.current.textMatrix=null,this.current.textMatrixScale=1,this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0,this.dependencyTracker?.recordOpenMarker(e).resetIncrementalData(`sameLineText`).resetIncrementalData(`moveText`,e)}endText(e){let t=this.pendingTextPaths,n=this.ctx;if(this.dependencyTracker){let{dependencyTracker:n}=this;t!==void 0&&n.recordFutureForcedDependency(`textClip`,n.getOpenMarker()).recordFutureForcedDependency(`textClip`,e),n.recordCloseMarker(e)}if(t!==void 0){let e=new Path2D,r=n.getTransform().invertSelf();for(let{transform:n,x:i,y:a,fontSize:o,path:s}of t)s&&e.addPath(s,new DOMMatrix(n).preMultiplySelf(r).translate(i,a).scale(o,-o));n.clip(e)}delete this.pendingTextPaths}setCharSpacing(e,t){this.dependencyTracker?.recordSimpleData(`charSpacing`,e),this.current.charSpacing=t}setWordSpacing(e,t){this.dependencyTracker?.recordSimpleData(`wordSpacing`,e),this.current.wordSpacing=t}setHScale(e,t){this.dependencyTracker?.recordSimpleData(`hScale`,e),this.current.textHScale=t/100}setLeading(e,t){this.dependencyTracker?.recordSimpleData(`leading`,e),this.current.leading=-t}setFont(e,t,n){this.dependencyTracker?.recordSimpleData(`font`,e).recordSimpleDataFromNamed(`fontObj`,t,e);let r=this.commonObjs.get(t),i=this.current;if(!r)throw Error(`Can't find font for ${t}`);if(i.fontMatrix=r.fontMatrix||k,(i.fontMatrix[0]===0||i.fontMatrix[3]===0)&&H(`Invalid font matrix for font `+t),n<0?(n=-n,i.fontDirection=-1):i.fontDirection=1,this.current.font=r,this.current.fontSize=n,r.isType3Font)return;let a=r.loadedName||`sans-serif`,o=r.systemFontInfo?.css||`"${a}", ${r.fallbackName}`,s=`normal`;r.black?s=`900`:r.bold&&(s=`bold`);let c=r.italic?`italic`:`normal`,l=n;n<Wn?l=Wn:n>Gn&&(l=Gn),this.current.fontSizeScale=n/l,this.ctx.font=`${c} ${s} ${l}px ${o}`}setTextRenderingMode(e,t){this.dependencyTracker?.recordSimpleData(`textRenderingMode`,e),this.current.textRenderingMode=t}setTextRise(e,t){this.dependencyTracker?.recordSimpleData(`textRise`,e),this.current.textRise=t}moveText(e,t,n){this.dependencyTracker?.resetIncrementalData(`sameLineText`).recordIncrementalData(`moveText`,e),this.current.x=this.current.lineX+=t,this.current.y=this.current.lineY+=n}setLeadingMoveText(e,t,n){this.setLeading(e,-n),this.moveText(e,t,n)}setTextMatrix(e,t){this.dependencyTracker?.resetIncrementalData(`sameLineText`).recordSimpleData(`textMatrix`,e);let{current:n}=this;n.textMatrix=t,n.textMatrixScale=Math.hypot(t[0],t[1]),n.x=n.lineX=0,n.y=n.lineY=0}nextLine(e){this.moveText(e,0,this.current.leading),this.dependencyTracker?.recordIncrementalData(`moveText`,this.dependencyTracker.getSimpleIndex(`leading`)??e)}#_(e,t,n){let r=new Path2D;return r.addPath(e,new DOMMatrix(n).invertSelf().multiplySelf(t)),r}paintChar(e,t,n,r,i,a){let o=this.ctx,s=this.current,c=s.font,l=s.textRenderingMode,u=s.fontSize/s.fontSizeScale,d=l&z.FILL_STROKE_MASK,f=!!(l&z.ADD_TO_PATH_FLAG),p=s.patternFill&&!c.missingFile,m=s.patternStroke&&!c.missingFile,h;if((c.disableFontFace||f||p||m)&&!c.missingFile&&(h=c.getPathGenerator(this.commonObjs,t)),h&&(c.disableFontFace||p||m)){o.save(),o.translate(n,r),o.scale(u,-u),this.dependencyTracker?.recordCharacterBBox(e,o,c);let t;if(d===z.FILL||d===z.FILL_STROKE)if(i){t=o.getTransform(),o.setTransform(...i);let e=this.#_(h,t,i);o.fill(e)}else o.fill(h);if(d===z.STROKE||d===z.FILL_STROKE)if(a){t||=o.getTransform(),o.setTransform(...a);let{a:e,b:n,c:r,d:i}=t,s=K.inverseTransform(a),c=K.transform([e,n,r,i,0,0],s);K.singularValueDecompose2dScale(c,Xn),o.lineWidth*=Math.max(Xn[0],Xn[1])/u,o.stroke(this.#_(h,t,a))}else o.lineWidth/=u,o.stroke(h);o.restore()}else (d===z.FILL||d===z.FILL_STROKE)&&(o.fillText(t,n,r),this.dependencyTracker?.recordCharacterBBox(e,o,c,u,n,r,()=>o.measureText(t))),(d===z.STROKE||d===z.FILL_STROKE)&&(this.dependencyTracker&&this.dependencyTracker?.recordCharacterBBox(e,o,c,u,n,r,()=>o.measureText(t)).recordDependencies(e,Gt.stroke),o.strokeText(t,n,r));f&&((this.pendingTextPaths||=[]).push({transform:Xe(o),x:n,y:r,fontSize:u,path:h}),this.dependencyTracker?.recordCharacterBBox(e,o,c,u,n,r))}get isFontSubpixelAAEnabled(){let e=this.canvasFactory.create(10,10),t=e.context;t.scale(1.5,1),t.fillText(`I`,0,10);let n=t.getImageData(0,0,10,10).data;this.canvasFactory.destroy(e);let r=!1;for(let e=3;e<n.length;e+=4)if(n[e]>0&&n[e]<255){r=!0;break}return W(this,`isFontSubpixelAAEnabled`,r)}showText(e,t){this.dependencyTracker&&(this.dependencyTracker.recordDependencies(e,Gt.showText).resetBBox(e),this.current.textRenderingMode&z.ADD_TO_PATH_FLAG&&this.dependencyTracker.recordFutureForcedDependency(`textClip`,e).inheritPendingDependenciesAsFutureForcedDependencies());let n=this.current,r=n.font;if(r.isType3Font){let r=this.#h(n.fillAlpha);this.showType3Text(e,t),this.dependencyTracker?.recordShowTextOperation(e),this.#g(r);return}let i=n.fontSize;if(i===0){this.dependencyTracker?.recordOperation(e);return}let a=this.#h(n.fillAlpha),o=this.ctx,s=n.fontSizeScale,c=n.charSpacing,l=n.wordSpacing,u=n.fontDirection,d=n.textHScale*u,f=t.length,p=r.vertical,m=p?1:-1,h=r.defaultVMetrics,g=i*n.fontMatrix[0],_=n.textRenderingMode===z.FILL&&!r.disableFontFace&&!n.patternFill;o.save(),n.textMatrix&&o.transform(...n.textMatrix),o.translate(n.x,n.y+n.textRise),u>0?o.scale(d,-1):o.scale(d,1);let v,y,b=n.textRenderingMode&z.FILL_STROKE_MASK,x=b===z.FILL||b===z.FILL_STROKE,S=b===z.STROKE||b===z.FILL_STROKE,C=n.lineWidth,w=n.textMatrixScale;if(w===0||C===0?S&&(C=this.getSinglePixelWidth()):C/=w,s!==1&&(o.scale(s,s),C/=s),o.lineWidth=C,x&&n.patternFill){o.save();let t=n.fillColor.getPattern(o,this,Ze(o),Nn.FILL,e);v=Xe(o),o.restore(),o.fillStyle=t}if(S&&n.patternStroke){o.save();let t=n.strokeColor.getPattern(o,this,Ze(o),Nn.STROKE,e);y=Xe(o),o.restore(),o.strokeStyle=t}if(r.isInvalidPDFjsFont){let r=[],i=0;for(let e of t)r.push(e.unicode),i+=e.width;let s=r.join(``);if(o.fillText(s,0,0),this.dependencyTracker!==null){let t=o.measureText(s);this.dependencyTracker.recordBBox(e,this.ctx,-t.actualBoundingBoxLeft,t.actualBoundingBoxRight,-t.actualBoundingBoxAscent,t.actualBoundingBoxDescent).recordShowTextOperation(e)}n.x+=i*g*d,o.restore(),this.compose(),this.#g(a);return}let T=0,E;for(E=0;E<f;++E){let n=t[E];if(typeof n==`number`){T+=m*n*i/1e3;continue}let a=!1,d=(n.isSpace?l:0)+c,f=n.fontChar,b=n.accent,x,S,C=n.width;if(p){let e=n.vmetric||h,t=-(n.vmetric?e[1]:C*.5)*g,r=e[2]*g;C=e?-e[0]:C,x=t/s,S=(T+r)/s}else x=T/s,S=0;let w;if(r.remeasure&&C>0){w=o.measureText(f);let e=w.width*1e3/i*s;if(C<e&&this.isFontSubpixelAAEnabled){let t=C/e;a=!0,o.save(),o.scale(t,1),x/=t}else C!==e&&(x+=(C-e)/2e3*i/s)}if(this.contentVisible&&(n.isInFont||r.missingFile)){if(_&&!b)o.fillText(f,x,S),this.dependencyTracker?.recordCharacterBBox(e,o,w?{bbox:null}:r,i/s,x,S,()=>w??o.measureText(f));else if(this.paintChar(e,f,x,S,v,y),b){let t=x+i*b.offset.x/s,n=S-i*b.offset.y/s;this.paintChar(e,b.fontChar,t,n,v,y)}}let D=p?C*g-d*u:C*g+d*u;T+=D,a&&o.restore()}p?n.y-=T:n.x+=T*d,o.restore(),this.compose(),this.dependencyTracker?.recordShowTextOperation(e),this.#g(a)}showType3Text(e,t){let n=this.ctx,r=this.current,i=r.font,a=r.fontSize,o=r.fontDirection,s=i.vertical?1:-1,c=r.charSpacing,l=r.wordSpacing,u=r.textHScale*o,d=r.fontMatrix||k,f=t.length,p=r.textRenderingMode===z.INVISIBLE,m,h,g,_;if(p||a===0)return;this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null,n.save(),r.textMatrix&&n.transform(...r.textMatrix),n.translate(r.x,r.y+r.textRise),n.scale(u,o);let v=this.dependencyTracker;for(this.dependencyTracker=v?new Wt(v,e):null,m=0;m<f;++m){if(h=t[m],typeof h==`number`){_=s*h*a/1e3,this.ctx.translate(_,0),r.x+=_*u;continue}let e=(h.isSpace?l:0)+c,o=i.charProcOperatorList[h.operatorListId];o?this.contentVisible&&(this.save(),n.scale(a,a),n.transform(...d),this.executeOperatorList(o),this.restore()):H(`Type3 character "${h.operatorListId}" is not available.`);let f=[h.width,0];K.applyTransform(f,d),g=f[0]*a+e,n.translate(g,0),r.x+=g*u}n.restore(),v&&(this.dependencyTracker=v)}setCharWidth(e,t,n){}setCharWidthAndBounds(e,t,n,r,i,a,o){let s=new Path2D;s.rect(r,i,a-r,o-i),this.ctx.clip(s),this.dependencyTracker?.recordBBox(e,this.ctx,r,a,i,o).recordClipBox(e,this.ctx,r,a,i,o),this.endPath(e)}getColorN_Pattern(t,n){let r;if(n[0]===`TilingPattern`){let t=this.baseTransform||Xe(this.ctx);r=new Hn(n,this.ctx,{createCanvasGraphics:(t,n)=>new e(t,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:this.optionalContentConfig,markedContentStack:this.markedContentStack},void 0,void 0,this.dependencyTracker?new Wt(this.dependencyTracker,n,!0):null)},t)}else r=this._getPattern(t,n[1],n[2]);return r}setStrokeColorN(e,...t){this.dependencyTracker?.recordSimpleData(`strokeColor`,e),this.current.strokeColor=this.getColorN_Pattern(e,t),this.current.patternStroke=!0}setFillColorN(e,...t){this.dependencyTracker?.recordSimpleData(`fillColor`,e);let n=this.current.fillColor=this.getColorN_Pattern(e,t);this.current.patternFill=!0,this.current.tilingPatternDims=n instanceof Hn?[0,0,0,0]:null}setStrokeRGBColor(e,t){this.dependencyTracker?.recordSimpleData(`strokeColor`,e),this.ctx.strokeStyle=this.current.strokeColor=t,this.current.patternStroke=!1}setStrokeTransparent(e){this.dependencyTracker?.recordSimpleData(`strokeColor`,e),this.ctx.strokeStyle=this.current.strokeColor=`transparent`,this.current.patternStroke=!1}setFillRGBColor(e,t){this.dependencyTracker?.recordSimpleData(`fillColor`,e),this.ctx.fillStyle=this.current.fillColor=t,this.current.patternFill=!1,this.current.tilingPatternDims=null}setFillTransparent(e){this.dependencyTracker?.recordSimpleData(`fillColor`,e),this.ctx.fillStyle=this.current.fillColor=`transparent`,this.current.patternFill=!1,this.current.tilingPatternDims=null}_getPattern(e,t,n=null){let r;return this.cachedPatterns.has(t)?r=this.cachedPatterns.get(t):(r=Bn(this.getObject(e,t)),this.cachedPatterns.set(t,r)),n&&(r.matrix=n),r}shadingFill(e,t){if(!this.contentVisible)return;let n=this.#h(this.current.fillAlpha),r=this.ctx;this.save(e),r.fillStyle=this._getPattern(e,t).getPattern(r,this,Ze(r),Nn.SHADING,e);let i=Ze(r);if(i){let{width:e,height:t}=r.canvas,n=O.slice();K.axialAlignedBoundingBox([0,0,e,t],i,n);let[a,o,s,c]=n;this.ctx.fillRect(a,o,s-a,c-o)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.dependencyTracker?.resetBBox(e).recordFullPageBBox(e).recordDependencies(e,Gt.transform).recordDependencies(e,Gt.fill).recordOperation(e),this.compose(this.current.getClippedPathBoundingBox()),this.restore(e),this.#g(n)}beginInlineImage(){U(`Should not call beginInlineImage`)}beginImageData(){U(`Should not call beginImageData`)}paintFormXObjectBegin(e,t,n){if(this.contentVisible&&(this.save(e),this.baseTransformStack.push(this.baseTransform),t&&this.transform(e,...t),this.baseTransform=Xe(this.ctx),n)){K.axialAlignedBoundingBox(n,this.baseTransform,this.current.minMax);let[t,r,i,a]=n,o=new Path2D;o.rect(t,r,i-t,a-r),this.ctx.clip(o),this.dependencyTracker?.recordClipBox(e,this.ctx,t,i,r,a),this.endPath(e)}}paintFormXObjectEnd(e){this.contentVisible&&(this.restore(e),this.baseTransform=this.baseTransformStack.pop())}beginGroup(e,t){if(!this.contentVisible)return;this.save(e);let{inSMaskMode:n}=this;n&&(this.endSMaskMode(),this.current.activeSMask=null);let r=this.ctx;if(!t.isolated&&!t.knockout&&this.#e===0&&ce(`TODO: Fully support non-isolated non-knockout groups.`),!t.needsIsolation&&!t.knockout&&this.#e===0&&r.globalAlpha===1&&r.globalCompositeOperation===`source-over`&&!n){if(t.bbox){let e=new Path2D,[n,i,a,o]=t.bbox;if(e.rect(n,i,a-n,o-i),t.matrix){let n=new Path2D;n.addPath(e,new DOMMatrix(t.matrix)),e=n}r.clip(e)}this.groupStack.push(null),this.#l.push(null),this.groupLevel++;return}let i=Xe(r);t.matrix&&r.transform(...t.matrix);let a=[0,0,r.canvas.width,r.canvas.height],o;t.bbox?(o=O.slice(),K.axialAlignedBoundingBox(t.bbox,Xe(r),o),o=K.intersect(o,a)||[0,0,0,0]):o=a;let s=Math.floor(o[0]),c=Math.floor(o[1]),l=Math.max(Math.ceil(o[2])-s,1),u=Math.max(Math.ceil(o[3])-c,1);this.current.startNewPathAndClipBox([0,0,l,u]);let d=this.canvasFactory.create(l,u);t.smask&&this.smaskGroupCanvases.push(d);let f=d.context,p=t.knockout&&!t.isolated?r:null,m=!t.isolated&&!t.knockout&&!t.smask&&t.needsIsolation&&this.#e>0,h=t.knockout?this.canvasFactory.create(l,u):null,g=this.#e;if(t.knockout?this.#e++:this.#e=0,f.translate(-s,-c),f.transform(...i),!t.isolated&&!t.smask&&n&&t.needsIsolation&&(f.save(),f.setTransform(1,0,0,1,0,0),f.drawImage(r.canvas,-s,-c),f.restore()),t.bbox){let e=new Path2D,[n,r,i,a]=t.bbox;if(e.rect(n,r,i-n,a-r),t.matrix){let n=new Path2D;n.addPath(e,new DOMMatrix(t.matrix)),e=n}f.clip(e)}t.smask&&this.smaskStack.push({canvas:d.canvas,context:f,offsetX:s,offsetY:c,subtype:t.smask.subtype,backdrop:t.smask.backdrop,transferMap:t.smask.transferMap||null}),(!t.smask||this.dependencyTracker)&&(r.setTransform(1,0,0,1,0,0),r.translate(s,c),r.save()),nr(r,f),this.ctx=f,this.dependencyTracker?.inheritSimpleDataAsFutureForcedDependencies([`fillAlpha`,`strokeAlpha`,`globalCompositeOperation`]).pushBaseTransform(r),this.setGState(e,[[`BM`,`source-over`],[`ca`,1],[`CA`,1],[`TR`,null]]),this.groupStack.push(r),this.#l.push({backdropCtx:p,savedKnockoutLevel:g,offsetX:s,offsetY:c,hasInnerBackdrop:m,knockoutMaskEntry:h,knockoutTempEntry:null,knockoutBackdropEntry:null}),this.groupLevel++}endGroup(e,t){if(!this.contentVisible)return;this.groupLevel--;let n=this.ctx,r=this.groupStack.pop(),i=this.#l.pop();if(i&&(this.#e=i.savedKnockoutLevel),r===null){this.restore(e);return}if(this.ctx=r,this.ctx.imageSmoothingEnabled=!1,this.dependencyTracker?.popBaseTransform(),t.smask)this.tempSMask=this.smaskStack.pop(),this.restore(e),this.dependencyTracker&&(this.ctx.restore(),this.inSMaskMode&&this.ctx.setTransform(this.suspendedCtx.getTransform())),this.#v(i);else{this.ctx.restore();let t=Xe(this.ctx);this.restore(e),this.ctx.save(),this.ctx.setTransform(...t);let a=O.slice();K.axialAlignedBoundingBox([0,0,n.canvas.width,n.canvas.height],t,a);let o=this.#l.at(-1);if(this.#e>0)if(i.hasInnerBackdrop){let{width:e,height:a}=n.canvas,o=this.canvasFactory.create(e,a),s=o.context;s.drawImage(r.canvas,i.offsetX,i.offsetY,e,a,0,0,e,a),s.globalCompositeOperation=`source-over`,s.drawImage(n.canvas,0,0);let c=this.#f(n.canvas);s.globalCompositeOperation=`destination-in`,s.drawImage(c.canvas,0,0);let l=this.ctx.globalCompositeOperation,u=this.ctx.globalAlpha,d=this.ctx.filter;this.ctx.save(),this.ctx.setTransform(...t),this.ctx.globalAlpha=1,G.isCanvasFilterSupported&&(this.ctx.filter=`none`),this.ctx.globalCompositeOperation=`destination-out`,this.ctx.drawImage(c.canvas,0,0),this.ctx.globalCompositeOperation=l,this.ctx.globalAlpha=u,G.isCanvasFilterSupported&&(this.ctx.filter=d??`none`),this.ctx.drawImage(o.canvas,0,0),this.ctx.restore(),this.canvasFactory.destroy(c),this.canvasFactory.destroy(o)}else{let e=o?.backdropCtx??null;this.#m(this.ctx,n.canvas,{backdropCanvas:e?.canvas??null,destTransform:t,backdropOffset:e?[o.offsetX+i.offsetX,o.offsetY+i.offsetY]:[0,0],sourceAlpha:this.ctx.globalAlpha,sourceFilter:this.ctx.filter})}else this.ctx.drawImage(n.canvas,0,0);this.ctx.restore(),this.canvasFactory.destroy({canvas:n.canvas,context:n}),this.#v(i),this.compose(a)}}#v(e){e&&(e.knockoutMaskEntry&&=(this.canvasFactory.destroy(e.knockoutMaskEntry),null),e.knockoutTempEntry&&=(this.canvasFactory.destroy(e.knockoutTempEntry),null),e.knockoutBackdropEntry&&=(this.canvasFactory.destroy(e.knockoutBackdropEntry),null))}beginAnnotation(e,t,n,r,i,a){if(this.#u(),rr(this.ctx),this.ctx.save(),this.save(e),this.baseTransform&&this.ctx.setTransform(...this.baseTransform),n){let i=n[2]-n[0],o=n[3]-n[1];if(a&&this.annotationCanvasMap){r=r.slice(),r[4]-=n[0],r[5]-=n[1],n=n.slice(),n[0]=n[1]=0,n[2]=i,n[3]=o,K.singularValueDecompose2dScale(Xe(this.ctx),Xn);let{viewportScale:e}=this,a=Math.ceil(i*this.outputScaleX*e),s=Math.ceil(o*this.outputScaleY*e);this.annotationCanvas=this.canvasFactory.create(a,s);let{canvas:c,context:l}=this.annotationCanvas;this.annotationCanvasMap.set(t,c),this.annotationCanvas.savedCtx=this.ctx,this.ctx=l,this.ctx.save(),this.ctx.setTransform(Xn[0],0,0,-Xn[1],0,o*Xn[1]),rr(this.ctx)}else{rr(this.ctx),this.endPath(e);let t=new Path2D;t.rect(n[0],n[1],i,o),this.ctx.clip(t)}}this.current=new $n(this.ctx.canvas.width,this.ctx.canvas.height),this.baseTransformStack.push(this.baseTransform),this.transform(e,...r),this.transform(e,...i),this.baseTransform=Xe(this.ctx)}endAnnotation(e){this.annotationCanvas&&(this.ctx.restore(),this.#d(),this.ctx=this.annotationCanvas.savedCtx,delete this.annotationCanvas.savedCtx,delete this.annotationCanvas),this.baseTransform=this.baseTransformStack.pop()}paintImageMaskXObject(e,t){if(!this.contentVisible)return;let n=t.count;t=this.getObject(e,t.data,t),t.count=n;let r=this.#h(this.current.fillAlpha),i=this.ctx,a=this._createMaskCanvas(e,t),o=a.canvas;i.save(),i.setTransform(1,0,0,1,0,0),i.drawImage(o,a.offsetX,a.offsetY),this.dependencyTracker?.resetBBox(e).recordBBox(e,this.ctx,a.offsetX,a.offsetX+o.width,a.offsetY,a.offsetY+o.height).recordOperation(e),i.restore(),a.canvasEntry&&this.canvasFactory.destroy(a.canvasEntry),this.compose(),this.#g(r)}paintImageMaskXObjectRepeat(e,t,n,r=0,i=0,a,o){if(!this.contentVisible)return;t=this.getObject(e,t.data,t);let s=this.#h(this.current.fillAlpha),c=this.ctx;c.save();let l=Xe(c);c.transform(n,r,i,a,0,0);let u=this._createMaskCanvas(e,t);c.setTransform(1,0,0,1,u.offsetX-l[4],u.offsetY-l[5]),this.dependencyTracker?.resetBBox(e);for(let t=0,s=o.length;t<s;t+=2){let s=K.transform(l,[n,r,i,a,o[t],o[t+1]]);c.drawImage(u.canvas,s[4],s[5]),this.dependencyTracker?.recordBBox(e,this.ctx,s[4],s[4]+u.canvas.width,s[5],s[5]+u.canvas.height)}c.restore(),u.canvasEntry&&this.canvasFactory.destroy(u.canvasEntry),this.compose(),this.dependencyTracker?.recordOperation(e),this.#g(s)}paintImageMaskXObjectGroup(e,t){if(!this.contentVisible)return;let n=this.#h(this.current.fillAlpha),r=this.ctx,i=this.current.fillColor,a=this.current.patternFill;this.dependencyTracker?.resetBBox(e).recordDependencies(e,Gt.transformAndFill);for(let n of t){let{data:t,width:o,height:s,transform:c}=n,l=this.canvasFactory.create(o,s),u=l.context;u.save(),tr(u,this.getObject(e,t,n)),u.globalCompositeOperation=`source-in`,u.fillStyle=a?i.getPattern(u,this,Ze(r),Nn.FILL,e):i,u.fillRect(0,0,o,s),u.restore(),r.save(),r.transform(...c),r.scale(1,-1),Qn(r,l.canvas,0,0,o,s,0,-1,1,1),this.canvasFactory.destroy(l),this.dependencyTracker?.recordBBox(e,r,0,o,0,s),r.restore()}this.compose(),this.dependencyTracker?.recordOperation(e),this.#g(n)}paintImageXObject(e,t){if(!this.contentVisible)return;let n=this.getObject(e,t);if(!n){H(`Dependent image isn't ready yet`);return}this.paintInlineImageXObject(e,n)}paintImageXObjectRepeat(e,t,n,r,i){if(!this.contentVisible)return;let a=this.getObject(e,t);if(!a){H(`Dependent image isn't ready yet`);return}let o=a.width,s=a.height,c=[];for(let e=0,t=i.length;e<t;e+=2)c.push({transform:[n,0,0,r,i[e],i[e+1]],x:0,y:0,w:o,h:s});this.paintInlineImageXObjectGroup(e,a,c)}applyTransferMapsToCanvas(e){return this.current.transferMaps!==`none`&&(e.filter=this.current.transferMaps,e.drawImage(e.canvas,0,0),e.filter=`none`),e.canvas}applyTransferMapsToBitmap(e){if(this.current.transferMaps===`none`)return{img:e.bitmap,canvasEntry:null};let{bitmap:t,width:n,height:r}=e,i=this.canvasFactory.create(n,r),a=i.context;return a.filter=this.current.transferMaps,a.drawImage(t,0,0),a.filter=`none`,{img:i.canvas,canvasEntry:i}}paintInlineImageXObject(e,t){if(!this.contentVisible)return;let n=t.width,r=t.height,i=this.#h(this.current.fillAlpha),a=this.ctx;this.save(e);let{filter:o}=a;o!==`none`&&o!==``&&(a.filter=`none`),a.scale(1/n,-1/r);let s,c=null;if(t.bitmap){let e=this.applyTransferMapsToBitmap(t);s=e.img,c=e.canvasEntry}else if(typeof HTMLElement==`function`&&t instanceof HTMLElement||!t.data)s=t;else{let e=this.canvasFactory.create(n,r);er(e.context,t),s=this.applyTransferMapsToCanvas(e.context),c=e}let l=this._scaleImage(s,Ze(a));a.imageSmoothingEnabled=ir(Xe(a),t.interpolate),this.dependencyTracker&&(this.dependencyTracker.resetBBox(e).recordBBox(e,a,0,n,-r,0).recordDependencies(e,Gt.imageXObject).recordOperation(e),this.imagesTracker?.record(a,n,r,this.dependencyTracker.clipBox)),Qn(a,l.img,0,0,l.paintWidth,l.paintHeight,0,-r,n,r),l.tmpCanvas&&this.canvasFactory.destroy(l.tmpCanvas),c&&this.canvasFactory.destroy(c),this.compose(),this.restore(e),this.#g(i)}paintInlineImageXObjectGroup(e,t,n){if(!this.contentVisible)return;let r=this.#h(this.current.fillAlpha),i=this.ctx,a,o=null;if(t.bitmap)a=t.bitmap;else{let e=t.width,n=t.height,r=this.canvasFactory.create(e,n);er(r.context,t),a=this.applyTransferMapsToCanvas(r.context),o=r}this.dependencyTracker?.resetBBox(e);for(let t of n)i.save(),i.transform(...t.transform),i.scale(1,-1),Qn(i,a,t.x,t.y,t.w,t.h,0,-1,1,1),this.dependencyTracker?.recordBBox(e,i,0,1,-1,0),i.restore();o&&this.canvasFactory.destroy(o),this.dependencyTracker?.recordOperation(e),this.compose(),this.#g(r)}paintSolidColorImageMask(e){if(!this.contentVisible)return;let t=this.#h(this.current.fillAlpha);this.dependencyTracker?.resetBBox(e).recordBBox(e,this.ctx,0,1,0,1).recordDependencies(e,Gt.fill).recordOperation(e),this.ctx.fillRect(0,0,1,1),this.compose(),this.#g(t)}markPoint(e,t){}markPointProps(e,t,n){}beginMarkedContent(e,t){this.dependencyTracker?.beginMarkedContent(e),this.markedContentStack.push({visible:!0})}beginMarkedContentProps(e,t,n){this.dependencyTracker?.beginMarkedContent(e),t===`OC`?this.markedContentStack.push({visible:this.optionalContentConfig.isVisible(n)}):this.markedContentStack.push({visible:!0}),this.contentVisible=this.isContentVisible()}endMarkedContent(e){this.dependencyTracker?.endMarkedContent(e),this.markedContentStack.pop(),this.contentVisible=this.isContentVisible()}beginCompat(e){}endCompat(e){}consumePath(e,t,n){let r=this.current.isEmptyClip();this.pendingClip&&this.current.updateClipFromPath(),this.pendingClip||this.compose(n);let i=this.ctx;this.pendingClip?(r||(this.pendingClip===cr?i.clip(t,`evenodd`):i.clip(t)),this.pendingClip=null,this.dependencyTracker?.bboxToClipBoxDropOperation(e).recordFutureForcedDependency(`clipPath`,e)):this.dependencyTracker?.recordOperation(e),this.current.startNewPathAndClipBox(this.current.clipBox)}getSinglePixelWidth(){if(!this._cachedGetSinglePixelWidth){let e=Xe(this.ctx);if(e[1]===0&&e[2]===0)this._cachedGetSinglePixelWidth=1/Math.min(Math.abs(e[0]),Math.abs(e[3]));else{let t=Math.abs(e[0]*e[3]-e[2]*e[1]),n=Math.hypot(e[0],e[2]),r=Math.hypot(e[1],e[3]);this._cachedGetSinglePixelWidth=Math.max(n,r)/t}}return this._cachedGetSinglePixelWidth}getScaleForStroking(){if(this._cachedScaleForStroking[0]===-1){let{lineWidth:e}=this.current,{a:t,b:n,c:r,d:i}=this.ctx.getTransform(),a,o;if(n===0&&r===0){let n=Math.abs(t),r=Math.abs(i);if(n===r)if(e===0)a=o=1/n;else{let t=n*e;a=o=t<1?1/t:1}else if(e===0)a=1/n,o=1/r;else{let t=n*e,i=r*e;a=t<1?1/t:1,o=i<1?1/i:1}}else{let s=Math.abs(t*i-n*r),c=Math.hypot(t,n),l=Math.hypot(r,i);if(e===0)a=l/s,o=c/s;else{let t=e*s;a=l>t?l/t:1,o=c>t?c/t:1}}this._cachedScaleForStroking[0]=a,this._cachedScaleForStroking[1]=o}return this._cachedScaleForStroking}rescaleAndStroke(e,t){let{ctx:n,current:{lineWidth:r}}=this,[i,a]=this.getScaleForStroking();if(i===a){n.lineWidth=(r||1)*i,n.stroke(e);return}let o=n.getLineDash();t&&n.save(),n.scale(i,a),Yn.a=1/i,Yn.d=1/a;let s=new Path2D;if(s.addPath(e,Yn),o.length>0){let e=Math.max(i,a);n.setLineDash(o.map(t=>t/e)),n.lineDashOffset/=e}n.lineWidth=r||1,n.stroke(s),t&&n.restore()}isContentVisible(){for(let e=this.markedContentStack.length-1;e>=0;e--)if(!this.markedContentStack[e].visible)return!1;return!0}};for(let e in V)lr.prototype[e]!==void 0&&(lr.prototype[V[e]]=lr.prototype[e]);var ur=class{#e=null;#t=null;_fullReader=null;_rangeReaders=new Set;_source=null;constructor(e,t,n){this._source=e,this.#e=t,this.#t=n}get _progressiveDataLength(){return this._fullReader?._loaded??0}getFullReader(){return le(!this._fullReader,`BasePDFStream.getFullReader can only be called once.`),this._fullReader=new this.#e(this)}getRangeReader(e,t){if(t<=this._progressiveDataLength)return null;let n=new this.#t(this,e,t);return this._rangeReaders.add(n),n}cancelAllRequests(e){this._fullReader?.cancel(e);for(let t of new Set(this._rangeReaders))t.cancel(e)}},dr=class{onProgress=null;_contentLength=0;_filename=null;_headersCapability=Promise.withResolvers();_isRangeSupported=!1;_isStreamingSupported=!1;_loaded=0;_stream=null;constructor(e){this._stream=e}_callOnProgress(){this.onProgress?.({loaded:this._loaded,total:this._contentLength})}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){U("Abstract method `read` called")}cancel(e){U("Abstract method `cancel` called")}},fr=class{_stream=null;constructor(e,t,n){this._stream=e}async read(){U("Abstract method `read` called")}cancel(e){U("Abstract method `cancel` called")}};function pr(e){let t=!0,n=r(`filename\\*`,`i`).exec(e);if(n){n=n[1];let e=s(n);return e=unescape(e),e=c(e),e=l(e),a(e)}if(n=o(e),n)return a(l(n));if(n=r(`filename`,`i`).exec(e),n){n=n[1];let e=s(n);return e=l(e),a(e)}function r(e,t){return RegExp(`(?:^|;)\\s*`+e+`\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)`,t)}function i(e,n){if(e){if(!/^[\x00-\xFF]+$/.test(n))return n;try{let r=new TextDecoder(e,{fatal:!0}),i=Se(n);n=r.decode(i),t=!1}catch{}}return n}function a(e){return t&&/[\x80-\xff]/.test(e)&&(e=i(`utf-8`,e),t&&(e=i(`iso-8859-1`,e))),e}function o(e){let t=[],n,i=r(`filename\\*((?!0\\d)\\d+)(\\*?)`,`ig`);for(;(n=i.exec(e))!==null;){let[,e,r,i]=n;if(e=parseInt(e,10),e in t){if(e===0)break;continue}t[e]=[r,i]}let a=[];for(let e=0;e<t.length&&e in t;++e){let[n,r]=t[e];r=s(r),n&&(r=unescape(r),e===0&&(r=c(r))),a.push(r)}return a.join(``)}function s(e){if(e.startsWith(`"`)){let t=e.slice(1).split(`\\"`);for(let e=0;e<t.length;++e){let n=t[e].indexOf(`"`);n!==-1&&(t[e]=t[e].slice(0,n),t.length=e+1),t[e]=t[e].replaceAll(/\\(.)/g,`$1`)}e=t.join(`"`)}return e}function c(e){let t=e.indexOf(`'`);return t===-1?e:i(e.slice(0,t),e.slice(t+1).replace(/^[^']*'/,``))}function l(e){return!e.startsWith(`=?`)||/[\x00-\x19\x80-\xff]/.test(e)?e:e.replaceAll(/=\?([\w-]*)\?([QB])\?((?:[^?]|\?(?!=))*)\?=/gi,function(e,t,n,r){if(n===`q`||n===`Q`)return r=r.replaceAll(`_`,` `),r=r.replaceAll(/=([0-9a-f]{2})/gi,function(e,t){return String.fromCharCode(parseInt(t,16))}),i(t,r);try{r=atob(r)}catch{}return i(t,r)})}return``}function mr(e,t){let n=new Headers;if(!e||!t||typeof t!=`object`)return n;for(let e in t){let r=t[e];r!==void 0&&n.append(e,r)}return n}function hr(e){return URL.parse(e)?.origin??null}function gr({responseHeaders:e,isHttp:t,rangeChunkSize:n,disableRange:r}){let i={contentLength:0,isRangeSupported:!1},a=parseInt(e.get(`Content-Length`),10);return!Number.isInteger(a)||(i.contentLength=a,a<=2*n)||r||!t||e.get(`Accept-Ranges`)!==`bytes`||(e.get(`Content-Encoding`)||`identity`)===`identity`&&(i.isRangeSupported=!0),i}function _r(e){let t=e.get(`Content-Disposition`);if(t){let e=pr(t);if(e.includes(`%`))try{e=decodeURIComponent(e)}catch{}if(ze(e))return e}return null}function vr(e,t){return new ve(`Unexpected server response (${e}) while retrieving PDF "${t.href}".`,e,e===404||e===0&&t.protocol===`file:`)}function yr(e,t){if(e!==t)throw Error(`Expected range response-origin "${e}" to match "${t}".`)}function br(e,t,n,r){return fetch(e,{method:`GET`,headers:t,signal:r.signal,mode:`cors`,credentials:n?`include`:`same-origin`,redirect:`follow`})}function xr(e,t){if(e!==200&&e!==206)throw vr(e,t)}function Sr(e){if(e instanceof Uint8Array)return e.buffer;if(e instanceof ArrayBuffer)return e;throw Error(`getArrayBuffer - unexpected data: ${e}`)}var Cr=class extends ur{_responseOrigin=null;constructor(e){super(e,wr,Tr);let{httpHeaders:t,url:n}=e;le(/https?:/.test(n.protocol),`PDFFetchStream only supports http(s):// URLs.`),this.headers=mr(!0,t)}},wr=class extends dr{_abortController=new AbortController;_reader=null;constructor(e){super(e);let{disableRange:t,disableStream:n,rangeChunkSize:r,url:i,withCredentials:a}=e._source;this._isStreamingSupported=!n,br(i,new Headers(e.headers),a,this._abortController).then(n=>{e._responseOrigin=hr(n.url),xr(n.status,i),this._reader=n.body.getReader();let a=n.headers,{contentLength:o,isRangeSupported:s}=gr({responseHeaders:a,isHttp:!0,rangeChunkSize:r,disableRange:t});this._contentLength=o,this._isRangeSupported=s,this._filename=_r(a),!this._isStreamingSupported&&this._isRangeSupported&&this.cancel(new be(`Streaming is disabled.`)),this._headersCapability.resolve()}).catch(this._headersCapability.reject)}async read(){await this._headersCapability.promise;let{value:e,done:t}=await this._reader.read();return t?{value:e,done:t}:(this._loaded+=e.byteLength,this._callOnProgress(),{value:Sr(e),done:!1})}cancel(e){this._reader?.cancel(e),this._abortController.abort()}},Tr=class extends fr{_abortController=new AbortController;_readCapability=Promise.withResolvers();_reader=null;constructor(e,t,n){super(e,t,n);let{url:r,withCredentials:i}=e._source,a=new Headers(e.headers);a.append(`Range`,`bytes=${t}-${n-1}`),br(r,a,i,this._abortController).then(t=>{yr(hr(t.url),e._responseOrigin),xr(t.status,r),this._reader=t.body.getReader(),this._readCapability.resolve()}).catch(this._readCapability.reject)}async read(){await this._readCapability.promise;let{value:e,done:t}=await this._reader.read();return t?{value:e,done:t}:{value:Sr(e),done:!1}}cancel(e){this._reader?.cancel(e),this._abortController.abort()}};T(116);function Er(e){return e instanceof Uint8Array&&e.byteLength===e.buffer.byteLength?e.buffer:new Uint8Array(e).buffer}function Dr(){for(let e of this._requests)e.resolve({value:void 0,done:!0});this._requests.length=0}var Or=class extends ur{_progressiveDone=!1;_queuedChunks=[];constructor(e){super(e,kr,Ar);let{pdfDataRangeTransport:t}=e,{initialData:n,progressiveDone:r}=t;if(n?.length>0){let e=Er(n);this._queuedChunks.push(e)}this._progressiveDone=r,t.transportReady(e=>{switch(e.type){case`range`:case`progressiveRead`:this.#e(e.begin,e.chunk);break;case`progressiveDone`:this._fullReader?.progressiveDone(),this._progressiveDone=!0;break}})}#e(e,t){let n=Er(t);if(e===void 0)this._fullReader?this._fullReader._enqueue(n):this._queuedChunks.push(n);else{let t=this._rangeReaders.keys().find(t=>t._begin===e);le(t,"#onReceiveData - no `PDFDataTransportStreamRangeReader` instance found."),t._enqueue(n)}}getFullReader(){let e=super.getFullReader();return this._queuedChunks=null,e}getRangeReader(e,t){let n=super.getRangeReader(e,t);return n&&(n.onDone=()=>this._rangeReaders.delete(n),this._source.pdfDataRangeTransport.requestDataRange(e,t)),n}cancelAllRequests(e){super.cancelAllRequests(e),this._source.pdfDataRangeTransport.abort()}},kr=class extends dr{#e=Dr.bind(this);_done=!1;_queuedChunks=null;_requests=[];constructor(e){super(e);let{pdfDataRangeTransport:t,disableRange:n,disableStream:r}=e._source,{length:i,contentDispositionFilename:a}=t;this._queuedChunks=e._queuedChunks||[];for(let e of this._queuedChunks)this._loaded+=e.byteLength;this._done=e._progressiveDone,this._contentLength=i,this._isStreamingSupported=!r,this._isRangeSupported=!n,ze(a)&&(this._filename=a),this._headersCapability.resolve();let o=this._loaded;Promise.resolve().then(()=>{o>0&&this._loaded===o&&this._callOnProgress()})}_enqueue(e){this._done||(this._requests.length>0?this._requests.shift().resolve({value:e,done:!1}):this._queuedChunks.push(e),this._loaded+=e.byteLength,this._callOnProgress())}async read(){if(this._queuedChunks.length>0)return{value:this._queuedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};let e=Promise.withResolvers();return this._requests.push(e),e.promise}cancel(e){this._done=!0,this.#e()}progressiveDone(){this._done||=!0,this._queuedChunks.length===0&&this.#e()}},Ar=class extends fr{#e=Dr.bind(this);onDone=null;_begin=-1;_done=!1;_queuedChunk=null;_requests=[];constructor(e,t,n){super(e,t,n),this._begin=t}_enqueue(e){this._done||(this._requests.length===0?this._queuedChunk=e:(this._requests.shift().resolve({value:e,done:!1}),this.#e()),this._done=!0,this.onDone?.())}async read(){if(this._queuedChunk){let e=this._queuedChunk;return this._queuedChunk=null,{value:e,done:!1}}if(this._done)return{value:void 0,done:!0};let e=Promise.withResolvers();return this._requests.push(e),e.promise}cancel(e){this._done=!0,this.#e(),this.onDone?.()}},jr=200,Mr=206;function Nr(e){return typeof e==`string`?Se(e).buffer:e}var Pr=class extends ur{#e=new WeakMap;_responseOrigin=null;constructor(e){super(e,Fr,Ir);let{httpHeaders:t,url:n}=e;this.url=n,this.isHttp=/https?:/.test(n.protocol),this.headers=mr(this.isHttp,t)}_request(e){let t=new XMLHttpRequest,n={validateStatus:null,onHeadersReceived:e.onHeadersReceived,onDone:e.onDone,onError:e.onError,onProgress:e.onProgress};this.#e.set(t,n),t.open(`GET`,this.url),t.withCredentials=this._source.withCredentials;for(let[e,n]of this.headers)t.setRequestHeader(e,n);return this.isHttp&&`begin`in e&&`end`in e?(t.setRequestHeader(`Range`,`bytes=${e.begin}-${e.end-1}`),n.validateStatus=e=>e===Mr||e===jr):n.validateStatus=e=>e===jr,t.responseType=`arraybuffer`,le(e.onError,"Expected `onError` callback to be provided."),t.onerror=()=>e.onError(t.status),t.onreadystatechange=this.#n.bind(this,t),t.onprogress=this.#t.bind(this,t),t.send(null),t}#t(e,t){this.#e.get(e)?.onProgress?.(t)}#n(e,t){let n=this.#e.get(e);if(!n||(e.readyState>=2&&n.onHeadersReceived&&(n.onHeadersReceived(),delete n.onHeadersReceived),e.readyState!==4)||!this.#e.has(e))return;if(this.#e.delete(e),e.status===0&&this.isHttp){n.onError(e.status);return}let r=e.status||jr;if(!n.validateStatus(r)){n.onError(e.status);return}let i=Nr(e.response);if(r===Mr){let t=e.getResponseHeader(`Content-Range`);/bytes \d+-\d+\/\d+/.test(t)?n.onDone(i):(H(`Missing or invalid "Content-Range" header.`),n.onError(0))}else i?n.onDone(i):n.onError(e.status)}_abortRequest(e){this.#e.has(e)&&(this.#e.delete(e),e.abort())}getRangeReader(e,t){let n=super.getRangeReader(e,t);return n&&(n.onClosed=()=>this._rangeReaders.delete(n)),n}},Fr=class extends dr{#e=Dr.bind(this);_cachedChunks=[];_done=!1;_requests=[];_storedError=null;constructor(e){super(e),this._fullRequestXhr=e._request({onHeadersReceived:this.#t.bind(this),onDone:this.#n.bind(this),onError:this.#r.bind(this),onProgress:this.#i.bind(this)})}#t(){let e=this._stream,{disableRange:t,rangeChunkSize:n}=e._source,r=this._fullRequestXhr;e._responseOrigin=hr(r.responseURL);let i=r.getAllResponseHeaders(),a=new Headers(i?i.trimStart().replace(/[^\S ]+$/,``).split(/[\r\n]+/).map(e=>{let[t,...n]=e.split(`: `);return[t,n.join(`: `)]}):[]),{contentLength:o,isRangeSupported:s}=gr({responseHeaders:a,isHttp:e.isHttp,rangeChunkSize:n,disableRange:t});this._contentLength=o,this._isRangeSupported=s,this._filename=_r(a),this._isRangeSupported&&e._abortRequest(r),this._headersCapability.resolve()}#n(e){this._requests.length>0?this._requests.shift().resolve({value:e,done:!1}):this._cachedChunks.push(e),this._done=!0,this._cachedChunks.length===0&&this.#e()}#r(e){this._storedError=vr(e,this._stream.url),this._headersCapability.reject(this._storedError);for(let e of this._requests)e.reject(this._storedError);this._requests.length=0,this._cachedChunks.length=0}#i(e){this.onProgress?.({loaded:e.loaded,total:e.lengthComputable?e.total:this._contentLength})}async read(){if(await this._headersCapability.promise,this._storedError)throw this._storedError;if(this._cachedChunks.length>0)return{value:this._cachedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};let e=Promise.withResolvers();return this._requests.push(e),e.promise}cancel(e){this._done=!0,this._headersCapability.reject(e),this.#e(),this._stream._abortRequest(this._fullRequestXhr),this._fullRequestXhr=null}},Ir=class extends fr{#e=Dr.bind(this);onClosed=null;_done=!1;_queuedChunk=null;_requests=[];_storedError=null;constructor(e,t,n){super(e,t,n),this._requestXhr=e._request({begin:t,end:n,onHeadersReceived:this.#t.bind(this),onDone:this.#n.bind(this),onError:this.#r.bind(this),onProgress:null})}#t(){let e=hr(this._requestXhr?.responseURL);try{yr(e,this._stream._responseOrigin)}catch(e){this._storedError=e,this.#r(0)}}#n(e){this._requests.length>0?this._requests.shift().resolve({value:e,done:!1}):this._queuedChunk=e,this._done=!0,this.#e(),this.onClosed?.()}#r(e){this._storedError??=vr(e,this._stream.url);for(let e of this._requests)e.reject(this._storedError);this._requests.length=0,this._queuedChunk=null}async read(){if(this._storedError)throw this._storedError;if(this._queuedChunk!==null){let e=this._queuedChunk;return this._queuedChunk=null,{value:e,done:!1}}if(this._done)return{value:void 0,done:!0};let e=Promise.withResolvers();return this._requests.push(e),e.promise}cancel(e){this._done=!0,this.#e(),this._stream._abortRequest(this._requestXhr),this.onClosed?.()}};function Lr(e,t=null){let n=process.getBuiltinModule(`fs`),{Readable:r}=process.getBuiltinModule(`stream`),i=n.createReadStream(e,t);return r.toWeb(i)}var Rr=class extends ur{constructor(e){super(e,zr,Br);let{url:t}=e;le(t.protocol===`file:`,`PDFNodeStream only supports file:// URLs.`)}},zr=class extends dr{_reader=null;constructor(e){super(e);let{disableRange:t,disableStream:n,rangeChunkSize:r,url:i}=e._source;this._isStreamingSupported=!n,process.getBuiltinModule(`fs/promises`).lstat(i).then(e=>{let n=Lr(i);this._reader=n.getReader();let{size:a}=e;this._contentLength=a,this._isRangeSupported=!t&&a>2*r,!this._isStreamingSupported&&this._isRangeSupported&&this.cancel(new be(`Streaming is disabled.`)),this._headersCapability.resolve()}).catch(e=>{e.code===`ENOENT`&&(e=vr(0,i)),this._headersCapability.reject(e)})}async read(){await this._headersCapability.promise;let{value:e,done:t}=await this._reader.read();return t?{value:e,done:t}:(this._loaded+=e.byteLength,this._callOnProgress(),{value:Sr(e),done:!1})}cancel(e){this._reader?.cancel(e)}},Br=class extends fr{_readCapability=Promise.withResolvers();_reader=null;constructor(e,t,n){super(e,t,n);let{url:r}=e._source;try{let e=Lr(r,{start:t,end:n-1});this._reader=e.getReader(),this._readCapability.resolve()}catch(e){this._readCapability.reject(e)}}async read(){await this._readCapability.promise;let{value:e,done:t}=await this._reader.read();return t?{value:e,done:t}:{value:Sr(e),done:!1}}cancel(e){this._reader?.cancel(e)}};function Vr(e){return Ue(e)?Cr:E?Rr:Pr}var Hr=class{static#e=null;static#t=``;static get workerPort(){return this.#e}static set workerPort(e){if(!(typeof Worker<`u`&&e instanceof Worker)&&e!==null)throw Error("Invalid `workerPort` type.");this.#e=e}static get workerSrc(){return this.#t}static set workerSrc(e){if(typeof e!=`string`)throw Error("Invalid `workerSrc` type.");this.#t=e}},Ur=class{#e;#t;constructor({parsedData:e,rawData:t}){this.#e=e,this.#t=t}getRaw(){return this.#t}get(e){return this.#e.get(e)??null}[Symbol.iterator](){return this.#e.entries()}},Wr=Symbol(`INTERNAL`),Gr=class{#e=!1;#t=!1;#n=!1;#r=!0;constructor(e,{name:t,intent:n,usage:r,rbGroups:i}){this.#e=!!(e&M.DISPLAY),this.#t=!!(e&M.PRINT),this.name=t,this.intent=n,this.usage=r,this.rbGroups=i}get visible(){if(this.#n)return this.#r;if(!this.#r)return!1;let{print:e,view:t}=this.usage;return this.#e?t?.viewState!==`OFF`:this.#t?e?.printState!==`OFF`:!0}_setVisible(e,t,n=!1){e!==Wr&&U("Internal method `_setVisible` called."),this.#n=n,this.#r=t}},Kr=class{#e=null;#t=new Map;#n=null;#r=null;constructor(e,t=M.DISPLAY){if(this.renderingIntent=t,this.name=null,this.creator=null,e!==null){this.name=e.name,this.creator=e.creator,this.#r=e.order;for(let n of e.groups)this.#t.set(n.id,new Gr(t,n));if(e.baseState===`OFF`)for(let e of this.#t.values())e._setVisible(Wr,!1);for(let t of e.on)this.#t.get(t)._setVisible(Wr,!0);for(let t of e.off)this.#t.get(t)._setVisible(Wr,!1);this.#n=this.getHash()}}#i(e){let t=e.length;if(t<2)return!0;let n=e[0];for(let r=1;r<t;r++){let t=e[r],i;if(Array.isArray(t))i=this.#i(t);else if(this.#t.has(t))i=this.#t.get(t).visible;else return H(`Optional content group not found: ${t}`),!0;switch(n){case`And`:if(!i)return!1;break;case`Or`:if(i)return!0;break;case`Not`:return!i;default:return!0}}return n===`And`}isVisible(e){if(this.#t.size===0)return!0;if(!e)return ce(`Optional content group not defined.`),!0;if(e.type===`OCG`)return this.#t.has(e.id)?this.#t.get(e.id).visible:(H(`Optional content group not found: ${e.id}`),!0);if(e.type===`OCMD`){if(e.expression)return this.#i(e.expression);if(!e.policy||e.policy===`AnyOn`){for(let t of e.ids){if(!this.#t.has(t))return H(`Optional content group not found: ${t}`),!0;if(this.#t.get(t).visible)return!0}return!1}else if(e.policy===`AllOn`){for(let t of e.ids){if(!this.#t.has(t))return H(`Optional content group not found: ${t}`),!0;if(!this.#t.get(t).visible)return!1}return!0}else if(e.policy===`AnyOff`){for(let t of e.ids){if(!this.#t.has(t))return H(`Optional content group not found: ${t}`),!0;if(!this.#t.get(t).visible)return!0}return!1}else if(e.policy===`AllOff`){for(let t of e.ids){if(!this.#t.has(t))return H(`Optional content group not found: ${t}`),!0;if(this.#t.get(t).visible)return!1}return!0}return H(`Unknown optional content policy ${e.policy}.`),!0}return H(`Unknown group type ${e.type}.`),!0}setVisibility(e,t=!0,n=!0){let r=this.#t.get(e);if(!r){H(`Optional content group not found: ${e}`);return}if(n&&t&&r.rbGroups.length)for(let t of r.rbGroups)for(let n of t)n!==e&&this.#t.get(n)?._setVisible(Wr,!1,!0);r._setVisible(Wr,!!t,!0),this.#e=null}setOCGState({state:e,preserveRB:t}){let n;for(let r of e){switch(r){case`ON`:case`OFF`:case`Toggle`:n=r;continue}let e=this.#t.get(r);if(e)switch(n){case`ON`:this.setVisibility(r,!0,t);break;case`OFF`:this.setVisibility(r,!1,t);break;case`Toggle`:this.setVisibility(r,!e.visible,t);break}}this.#e=null}get hasInitialVisibility(){return this.#n===null||this.getHash()===this.#n}getOrder(){return this.#t.size?this.#r?this.#r.slice():[...this.#t.keys()]:null}getGroup(e){return this.#t.get(e)||null}getHash(){if(this.#e!==null)return this.#e;let e=new At;for(let[t,n]of this.#t)e.update(`${t}:${n.visible}`);return this.#e=e.hexdigest()}[Symbol.iterator](){return this.#t.entries()}},qr=class{#e=null;#t=null;#n=0;#r=null;#i=null;get pagesNumber(){return this.#n}set pagesNumber(e){this.#n!==e&&(this.#n=e,this.#e=null,this.#t=null)}#a(){if(this.#e)return;let e=this.#n,t=this.#e=new Uint32Array(e);for(let n=0;n<e;n++)t[n]=n+1;this.#t=new Int32Array(t)}#o(){let e=new Map,t=this.#e;for(let n=0,r=this.#n;n<r;n++){let r=t[n],i=e.get(r);i?i.push(n+1):e.set(r,[n+1])}return e}movePages(e,t,n){this.#a();let r=this.#e,i=this.#o(),a=t.length,o=new Uint32Array(a),s=0;for(let e=0;e<a;e++){let i=t[e]-1;o[e]=r[i],i<n&&s++}let c=this.#n,l=c-a,u=q(n-s,0,l);for(let t=0,n=0;t<c;t++)e.has(t+1)||(r[n++]=r[t]);r.copyWithin(u+a,u,l),r.set(o,u),this.#s(i),r.every((e,t)=>e===t+1)&&(this.#e=null)}deletePages(e){this.#a();let t=this.#e,n=this.#o();this.#i={pageNumberToId:t.slice(),pagesNumber:this.#n,prevPageNumbers:this.#t.slice()};let r=this.#n-e.length;this.#n=r;let i=this.#e=new Uint32Array(r);this.#t=new Int32Array(r);let a=0,o=0;for(let n of e){let e=n-1;e!==a&&(i.set(t.subarray(a,e),o),o+=e-a),a=e+1}a<t.length&&i.set(t.subarray(a),o),this.#s(n,new Set(e))}cancelDelete(){this.#i&&=(this.#e=this.#i.pageNumberToId,this.#n=this.#i.pagesNumber,this.#t=this.#i.prevPageNumbers,null)}cleanSavedData(){this.#i=null}copyPages(e){this.#a(),this.#r={pageNumbers:e,pageIds:e.map(e=>this.#e[e-1])}}cancelCopy(){this.#r=null}pastePages(e){this.#a();let t=this.#e,n=this.#o(),{pageNumbers:r,pageIds:i}=this.#r,a=this.#n+r.length;this.#n=a;let o=this.#e=new Uint32Array(a);this.#t=new Int32Array(a),o.set(t.subarray(0,e),0),o.set(i,e),o.set(t.subarray(e),e+r.length),this.#s(n,null,e,r),this.#r=null}#s(e,t=null,n=-1,r=null){let i=this.#t,a=this.#e,o=n+(r?.length??0),s=new Map;for(let c=0,l=this.#n;c<l;c++){if(c>=n&&c<o){i[c]=-r[c-n];continue}let l=a[c],u=e.get(l),d=s.get(l)||0;if(t&&u)for(;d<u.length&&t.has(u[d]);)d++;i[c]=u?.[d],s.set(l,d+1)}}hasBeenAltered(){return this.#e!==null}getPageMappingForSaving(e=null){e??=this.#o();let t=0;for(let n of e.values())t=Math.max(t,n.length);let n=Array(t);for(let e=0;e<t;e++)n[e]={document:null,pageIndices:[],includePages:[]};for(let[t,r]of e)for(let e=0,i=r.length;e<i;e++)n[e].includePages.push([t-1,r[e]-1]);for(let{includePages:e,pageIndices:t}of n){e.sort((e,t)=>e[0]-t[0]);for(let n=0,r=e.length;n<r;n++)t.push(e[n][1]),e[n]=e[n][0]}return n}extractPages(e){e=Array.from(e).sort((e,t)=>e-t);let t=new Map;for(let n=0,r=e.length;n<r;n++){let r=this.getPageId(e[n]);t.getOrInsertComputed(r,ke).push(n+1)}return this.getPageMappingForSaving(t)}getPrevPageNumber(e){return this.#t?.[e-1]??0}getPageNumber(e){if(!this.#e)return e;let t=this.#e;for(let n=0,r=this.#n;n<r;n++)if(t[n]===e)return n+1;return 0}getPageId(e){return this.#e?.[e-1]??e}getMapping(){return this.#e?.subarray(0,this.pagesNumber)}},Jr=Symbol(`INITIAL_DATA`),Yr=()=>({...Promise.withResolvers(),data:Jr}),Xr=class{#e=new Map;get(e,t=null){if(t){let n=this.#e.getOrInsertComputed(e,Yr);return n.promise.then(()=>t(n.data)),null}let n=this.#e.get(e);if(!n||n.data===Jr)throw Error(`Requesting object that isn't resolved yet ${e}.`);return n.data}has(e){let t=this.#e.get(e);return!!t&&t.data!==Jr}delete(e){let t=this.#e.get(e);return!t||t.data===Jr?!1:(this.#e.delete(e),!0)}resolve(e,t=null){let n=this.#e.getOrInsertComputed(e,Yr);if(n.data!==Jr)throw Error(`Object already resolved ${e}.`);n.data=t,n.resolve()}clear(){for(let{data:e}of this.#e.values())e?.bitmap?.close();this.#e.clear()}*[Symbol.iterator](){for(let[e,{data:t}]of this.#e)t!==Jr&&(yield[e,t])}},Zr=1e5,Qr=30,$r=class e{#e=Promise.withResolvers();#t=null;#n=!1;#r=!!globalThis.FontInspector?.enabled;#i=null;#a=null;#o=null;#s=0;#c=0;#l=null;#u=null;#d=0;#f=0;#p=Object.create(null);#m=[];#h=null;#g=[];#_=new WeakMap;#v=null;static#y=new Map;static#b=new Map;static#x=new WeakMap;static#S=null;static#C=new Set;constructor({textContentSource:t,images:n,container:r,viewport:i}){if(t instanceof ReadableStream)this.#h=t;else if(typeof t==`object`)this.#h=new ReadableStream({start(e){e.enqueue(t),e.close()}});else throw Error(`No "textContentSource" parameter specified.`);this.#t=this.#u=r,this.#i=n,this.#f=i.scale*$e.pixelRatio,this.#d=i.rotation,this.#o={div:null,properties:null,ctx:null};let{pageWidth:a,pageHeight:o,pageX:s,pageY:c}=i.rawDims;this.#v=[1,0,0,-1,-s,c+o],this.#c=a,this.#s=o,e.#k(),r.style.setProperty(`--min-font-size`,e.#S),Qe(r,i),this.#e.promise.finally(()=>{e.#C.delete(this),this.#o=null,this.#p=null}).catch(()=>{})}static get fontFamilyMap(){let{isWindows:e,isFirefox:t}=G.platform;return W(this,`fontFamilyMap`,new Map([[`sans-serif`,`${e&&t?`Calibri, `:``}sans-serif`],[`monospace`,`${e&&t?`Lucida Console, `:``}monospace`]]))}render(){this.#i&&this.#t.append(this.#i.render());let t=()=>{this.#l.read().then(({value:e,done:n})=>{if(n){this.#e.resolve();return}this.#a??=e.lang,Object.assign(this.#p,e.styles),this.#w(e.items),t()},this.#e.reject)};return this.#l=this.#h.getReader(),e.#C.add(this),t(),this.#e.promise}update({viewport:t,onBefore:n=null}){let r=t.scale*$e.pixelRatio,i=t.rotation;if(i!==this.#d&&(n?.(),this.#d=i,Qe(this.#u,{rotation:i})),r!==this.#f){n?.(),this.#f=r;let t={div:null,properties:null,ctx:e.#D(this.#a)};for(let e of this.#g)t.properties=this.#_.get(e),t.div=e,this.#E(t)}}cancel(){let e=new be(`TextLayer task cancelled.`);this.#l?.cancel(e).catch(()=>{}),this.#l=null,this.#e.reject(e)}get textDivs(){return this.#g}get textContentItemsStr(){return this.#m}#w(t){if(this.#n)return;this.#o.ctx??=e.#D(this.#a);let n=this.#g,r=this.#m;for(let e of t){if(n.length>Zr){H(`Ignoring additional textDivs for performance reasons.`),this.#n=!0;return}if(e.str===void 0){if(e.type===`beginMarkedContentProps`||e.type===`beginMarkedContent`){let t=this.#t;this.#t=document.createElement(`span`),this.#t.classList.add(`markedContent`),e.id&&this.#t.setAttribute(`id`,`${e.id}`),e.tag===`Artifact`&&(this.#t.ariaHidden=!0),t.append(this.#t)}else e.type===`endMarkedContent`&&(this.#t=this.#t.parentNode);continue}r.push(e.str),this.#T(e)}}#T(t){let n=document.createElement(`span`),r={angle:0,canvasWidth:0,hasText:t.str!==``,hasEOL:t.hasEOL,fontSize:0};this.#g.push(n);let i=K.transform(this.#v,t.transform),a=Math.atan2(i[1],i[0]),o=this.#p[t.fontName];o.vertical&&(a+=Math.PI/2);let s=this.#r&&o.fontSubstitution||o.fontFamily;s=e.fontFamilyMap.get(s)||s;let c=Math.hypot(i[2],i[3]),l=c*e.#A(s,o,this.#a),u,d;a===0?(u=i[4],d=i[5]-l):(u=i[4]+l*Math.sin(a),d=i[5]-l*Math.cos(a));let f=n.style;f.left=`${(100*u/this.#c).toFixed(2)}%`,f.top=`${(100*d/this.#s).toFixed(2)}%`,f.setProperty(`--font-height`,`${c.toFixed(2)}px`),f.fontFamily=s,r.fontSize=c,n.setAttribute(`role`,`presentation`),n.textContent=t.str,n.dir=t.dir,this.#r&&(n.dataset.fontName=o.fontSubstitutionLoadedName||t.fontName),a!==0&&(r.angle=180/Math.PI*a);let p=!1;if(t.str.length>1)p=!0;else if(t.str!==` `&&t.transform[0]!==t.transform[3]){let e=Math.abs(t.transform[0]),n=Math.abs(t.transform[3]);e!==n&&Math.max(e,n)/Math.min(e,n)>1.5&&(p=!0)}if(p&&(r.canvasWidth=o.vertical?t.height:t.width),this.#_.set(n,r),this.#o.div=n,this.#o.properties=r,this.#E(this.#o),r.hasText&&this.#t.append(n),r.hasEOL){let e=document.createElement(`br`);e.setAttribute(`role`,`presentation`),this.#t.append(e)}}#E(t){let{div:n,properties:r,ctx:i}=t,{style:a}=n;if(r.canvasWidth!==0&&r.hasText){let{fontFamily:t}=a,{canvasWidth:o,fontSize:s}=r;e.#O(i,s*this.#f,t);let{width:c}=i.measureText(n.textContent);c>0&&a.setProperty(`--scale-x`,o*this.#f/c)}r.angle!==0&&a.setProperty(`--rotate`,`${r.angle}deg`)}static cleanup(){if(!(this.#C.size>0)){this.#y.clear();for(let{canvas:e}of this.#b.values())e.remove();this.#b.clear()}}static#D(e=null){let t=this.#b.get(e||=``);if(!t){let n=document.createElement(`canvas`);n.style.cssText=`position:absolute;top:0;left:0;width:0;height:0;display:none;letter-spacing:normal;word-spacing:normal`,n.lang=e,document.body.append(n),t=n.getContext(`2d`,{alpha:!1,willReadFrequently:!0}),this.#b.set(e,t),this.#x.set(t,{size:0,family:``})}return t}static#O(e,t,n){let r=this.#x.get(e);t===r.size&&n===r.family||(e.font=`${t}px ${n}`,r.size=t,r.family=n)}static#k(){if(this.#S!==null)return;let e=document.createElement(`div`);e.style.opacity=0,e.style.lineHeight=1,e.style.fontSize=`1px`,e.style.position=`absolute`,e.textContent=`X`,document.body.append(e),this.#S=e.getBoundingClientRect().height,e.remove()}static#A(e,t,n){let r=this.#y.get(e);if(r)return r;let i=this.#D(n);i.canvas.width=i.canvas.height=Qr,this.#O(i,Qr,e);let a=i.measureText(``),o=a.fontBoundingBoxAscent,s=Math.abs(a.fontBoundingBoxDescent);i.canvas.width=i.canvas.height=0;let c=.8;return o?c=o/(o+s):(G.platform.isFirefox&&H("Enable the `dom.textMetrics.fontBoundingBox.enabled` preference in `about:config` to improve TextLayer rendering."),t.ascent?c=t.ascent:t.descent&&(c=1+t.descent)),this.#y.set(e,c),c}},ei=100;function ti(e={}){let t=new ni,{docId:n}=t,r=e.url?an(e.url):null,i=e.data?on(e.data):null,a=e.httpHeaders||null,o=e.withCredentials===!0,s=e.password??null,c=e.range instanceof ri?e.range:null,l=Number.isInteger(e.rangeChunkSize)&&e.rangeChunkSize>0?e.rangeChunkSize:2**16,u=e.worker instanceof oi?e.worker:null,d=e.verbosity,f=typeof e.docBaseUrl==`string`&&!Re(e.docBaseUrl)?e.docBaseUrl:null,p=sn(e.cMapUrl),m=e.cMapPacked!==!1,h=sn(e.iccUrl),g=sn(e.standardFontDataUrl),_=sn(e.wasmUrl),v=e.stopAtErrors!==!0,y=Number.isInteger(e.maxImageSize)&&e.maxImageSize>-1?e.maxImageSize:-1,b=typeof e.isOffscreenCanvasSupported==`boolean`?e.isOffscreenCanvasSupported:!E,x=typeof e.isImageDecoderSupported==`boolean`?e.isImageDecoderSupported:!E,S=Number.isInteger(e.canvasMaxAreaInBytes)?e.canvasMaxAreaInBytes:-1,C=typeof e.disableFontFace==`boolean`?e.disableFontFace:E,w=e.fontExtraProperties===!0,T=e.enableXfa===!0,D=e.ownerDocument||globalThis.document,O=e.disableRange===!0,k=e.disableStream===!0,A=e.disableAutoFetch===!0,j=e.pdfBug===!0,M=e.CanvasFactory||(E?Tn:yn),N=e.FilterFactory||(E?wn:xn),P=e.BinaryDataFactory||(E?En:_n),F=e.enableHWA===!0,I=e.enableWebGPU===!0?kn():Promise.resolve(!1),L=e.useWasm!==!1,R=e.pagesMapper||new qr,z=typeof e.useSystemFonts==`boolean`?e.useSystemFonts:!E&&!C,ee=typeof e.useWorkerFetch==`boolean`?e.useWorkerFetch:!!(P===_n&&p&&m&&g&&_&&Ue(p,document.baseURI)&&Ue(g,document.baseURI)&&Ue(_,document.baseURI));oe(d);let B={canvasFactory:new M({ownerDocument:D,enableHWA:F}),filterFactory:new N({docId:n,ownerDocument:D}),binaryDataFactory:ee?null:new P({cMapUrl:p,standardFontDataUrl:g,wasmUrl:_})};u||(u=oi.create({verbosity:d,port:Hr.workerPort}),t._worker=u);let te={docId:n,apiVersion:`6.0.227`,data:i,password:s,disableAutoFetch:A,rangeChunkSize:l,docBaseUrl:f,enableXfa:T,evaluatorOptions:{maxImageSize:y,disableFontFace:C,ignoreErrors:v,isOffscreenCanvasSupported:b,isImageDecoderSupported:x,canvasMaxAreaInBytes:S,fontExtraProperties:w,useSystemFonts:z,useWasm:L,useWorkerFetch:ee,cMapUrl:p,cMapPacked:m,iccUrl:h,standardFontDataUrl:g,wasmUrl:_,hasGPU:!1}},ne={ownerDocument:D,pdfBug:j,styleElement:null,enableHWA:F,loadingParams:{disableAutoFetch:A,enableXfa:T}};return Promise.all([u.promise,I]).then(function([,e]){if(u.destroyed)throw Error(`Worker was destroyed`);te.evaluatorOptions.hasGPU=e;let s=u.messageHandler.sendWithPromise(`GetDocRequest`,te,i?[i.buffer]:null),d;if(!i)if(c)d=new Or({pdfDataRangeTransport:c,disableRange:O,disableStream:k});else if(r)d=new(Vr(r))({url:r,httpHeaders:a,withCredentials:o,rangeChunkSize:l,disableRange:O,disableStream:k});else throw Error("getDocument - expected either `data`, `range`, or `url` parameter.");return s.then(e=>{if(u.destroyed)throw Error(`Worker was destroyed`);let r=new hn(n,e,u.port);if(t._transport=new si(r,t,d,ne,B,R),t.destroyed)throw Error(`Loading aborted`);r.send(`Ready`,null)})}).catch(t._capability.reject).finally(t._setupCapability.resolve),t}var ni=class e{static#e=0;_capability=Promise.withResolvers();_setupCapability=Promise.withResolvers();_transport=null;_worker=null;docId=`d${e.#e++}`;destroyed=!1;onPassword=null;onProgress=null;get promise(){return this._capability.promise}async destroy(){this.destroyed=!0,this._capability.promise.catch(()=>{});try{this._worker?.port&&(this._worker._pendingDestroy=!0),await this._setupCapability.promise,await this._transport?.destroy()}catch(e){throw this._worker?.port&&delete this._worker._pendingDestroy,e}this._transport=null,this._worker?.destroy(),this._worker=null}async getData(){return this._transport.getData()}},ri=class{#e=Promise.withResolvers();#t=null;constructor(e,t,n=!1,r=null){this.length=e,this.initialData=t,this.progressiveDone=n,this.contentDispositionFilename=r}onDataRange(e,t){this.#t({type:`range`,begin:e,chunk:t})}onDataProgressiveRead(e){this.#e.promise.then(()=>{this.#t({type:`progressiveRead`,chunk:e})})}onDataProgressiveDone(){this.#e.promise.then(()=>{this.#t({type:`progressiveDone`})})}transportReady(e){this.#t=e,this.#e.resolve()}requestDataRange(e,t){U(`Abstract method PDFDataRangeTransport.requestDataRange`)}abort(){}},ii=class{constructor(e,t){this._pdfInfo=e,this._transport=t}get pagesMapper(){return this._transport.pagesMapper}get annotationStorage(){return this._transport.annotationStorage}get canvasFactory(){return this._transport.canvasFactory}get filterFactory(){return this._transport.filterFactory}get numPages(){return this._pdfInfo.numPages}get fingerprints(){return this._pdfInfo.fingerprints}get isPureXfa(){return W(this,`isPureXfa`,!!this._transport._htmlForXfa)}get allXfaHtml(){return this._transport._htmlForXfa}getPage(e){return this._transport.getPage(e)}getPageIndex(e){return this._transport.getPageIndex(e)}getDestinations(){return this._transport.getDestinations()}getDestination(e){return this._transport.getDestination(e)}getPageLabels(){return this._transport.getPageLabels()}getPageLayout(){return this._transport.getPageLayout()}getPageMode(){return this._transport.getPageMode()}getViewerPreferences(){return this._transport.getViewerPreferences()}getOpenAction(){return this._transport.getOpenAction()}getAttachments(){return this._transport.getAttachments()}getAnnotationsByType(e,t){return this._transport.getAnnotationsByType(e,t)}getJSActions(){return this._transport.getDocJSActions()}getOutline(){return this._transport.getOutline()}getOptionalContentConfig({intent:e=`display`}={}){let{renderingIntent:t}=this._transport.getRenderingIntent(e);return this._transport.getOptionalContentConfig(t)}getPermissions(){return this._transport.getPermissions()}getMetadata(){return this._transport.getMetadata()}getMarkInfo(){return this._transport.getMarkInfo()}getData(){return this._transport.getData()}saveDocument(){return this._transport.saveDocument()}extractPages(e){return this._transport.extractPages(e)}getDownloadInfo(){return this._transport.downloadInfoCapability.promise}getRawData(e){return this._transport.getRawData(e)}cleanup(e=!1){return this._transport.startCleanup(e||this.isPureXfa)}cachedPageNumber(e){return this._transport.cachedPageNumber(e)}get loadingParams(){return this._transport.loadingParams}get loadingTask(){return this._transport.loadingTask}getFieldObjects(){return this._transport.getFieldObjects()}hasJSActions(){return this._transport.hasJSActions()}getCalculationOrderIds(){return this._transport.getCalculationOrderIds()}},ai=class e{#e=!1;#t=null;constructor(e,t,n,r,i=!1){this._pageIndex=e,this._pageInfo=t,this._transport=n,this._stats=i?new He:null,this._pdfBug=i,this.commonObjs=n.commonObjs,this.objs=new Xr,this._intentStates=new Map,this.destroyed=!1,this.recordedBBoxes=null,this.#t=r,this.imageCoordinates=null}clone(t){let n=new e(t,this._pageInfo,this._transport,this.#t,this._pdfBug);return n.clonedFromIndex=this.clonedFromIndex??this._pageIndex,this._transport.updatePage(n),n}get pageNumber(){return this._pageIndex+1}set pageNumber(e){this._pageIndex=e-1,this._transport.updatePage(this)}get rotate(){return this._pageInfo.rotate}get ref(){return this._pageInfo.ref}get userUnit(){return this._pageInfo.userUnit}get view(){return this._pageInfo.view}getViewport({scale:e,rotation:t=this.rotate,offsetX:n=0,offsetY:r=0,dontFlip:i=!1}={}){return new Me({viewBox:this.view,userUnit:this.userUnit,scale:e,rotation:t,offsetX:n,offsetY:r,dontFlip:i})}getAnnotations({intent:e=`display`}={}){let{renderingIntent:t}=this._transport.getRenderingIntent(e);return this._transport.getAnnotations(this._pageIndex,t)}getJSActions(){return this._transport.getPageJSActions(this._pageIndex)}get filterFactory(){return this._transport.filterFactory}get isPureXfa(){return W(this,`isPureXfa`,!!this._transport._htmlForXfa)}async getXfa(){return this._transport._htmlForXfa?.children[this._pageIndex]||null}render({canvasContext:e,canvas:t=e.canvas,viewport:n,intent:r=`display`,annotationMode:i=N.ENABLE,transform:a=null,background:o=null,optionalContentConfigPromise:s=null,annotationCanvasMap:c=null,pageColors:l=null,printAnnotationStorage:u=null,isEditing:d=!1,recordImages:f=!1,recordOperations:p=!1,operationsFilter:m=null}){this._stats?.time(`Overall`);let h=this._transport.getRenderingIntent(r,i,u,d),{renderingIntent:g,cacheKey:_}=h;this.#e=!1,s||=this._transport.getOptionalContentConfig(g);let v=this._intentStates.getOrInsertComputed(_,je);v.streamReaderCancelTimeout&&=(clearTimeout(v.streamReaderCancelTimeout),null);let y=!!(g&M.PRINT);v.displayReadyCapability||(v.displayReadyCapability=Promise.withResolvers(),v.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},this._stats?.time(`Page Request`),this._pumpOperatorList(h));let b=!!(this._pdfBug&&globalThis.StepperManager?.enabled),x=!!t&&!this.recordedBBoxes&&(p||b),S=!!t&&!this.imageCoordinates&&f,C=e=>{if(v.renderTasks.delete(E),x){let e=E.gfx?.dependencyTracker.take();e&&(E.stepper?.setOperatorBBoxes(e,E.gfx.dependencyTracker.takeDebugMetadata()),p&&(this.recordedBBoxes=e))}S&&!e&&(this.imageCoordinates=E.gfx?.imagesTracker.take()),y&&(this.#e=!0),this.#n(),e?(E.capability.reject(e),this._abortOperatorList({intentState:v,reason:e instanceof Error?e:Error(e)})):E.capability.resolve(),this._stats&&(this._stats.timeEnd(`Rendering`),this._stats.timeEnd(`Overall`),globalThis.Stats?.enabled&&globalThis.Stats.add(this.pageNumber,this._stats))},w=null,T=null;(x||S)&&(T=new Ht(t,v.operatorList.length)),x&&(w=new Ut(T,b));let E=new li({callback:C,params:{canvas:t,canvasContext:e,dependencyTracker:w??T,imagesTracker:S?new Kt(t):null,viewport:n,transform:a,background:o},objs:this.objs,commonObjs:this.commonObjs,annotationCanvasMap:c,operatorList:v.operatorList,pageIndex:this._pageIndex,canvasFactory:this._transport.canvasFactory,filterFactory:this._transport.filterFactory,useRequestAnimationFrame:!y,pdfBug:this._pdfBug,pageColors:l,enableHWA:this._transport.enableHWA,operationsFilter:m});(v.renderTasks||=new Set).add(E);let D=E.task;return Promise.all([v.displayReadyCapability.promise,s]).then(([e,t])=>{if(this.destroyed){C();return}if(this._stats?.time(`Rendering`),!(t.renderingIntent&g))throw Error("Must use the same `intent`-argument when calling the `PDFPageProxy.render` and `PDFDocumentProxy.getOptionalContentConfig` methods.");E.initializeGraphics({transparency:e,optionalContentConfig:t}),E.operatorListChanged()}).catch(C),D}getOperatorList({intent:e=`display`,annotationMode:t=N.ENABLE,printAnnotationStorage:n=null,isEditing:r=!1}={}){function i(){o.operatorList.lastChunk&&(o.opListReadCapability.resolve(o.operatorList),o.renderTasks.delete(s))}let a=this._transport.getRenderingIntent(e,t,n,r,!0),o=this._intentStates.getOrInsertComputed(a.cacheKey,je),s;return o.opListReadCapability||(s=Object.create(null),s.operatorListChanged=i,o.opListReadCapability=Promise.withResolvers(),(o.renderTasks||=new Set).add(s),o.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},this._stats?.time(`Page Request`),this._pumpOperatorList(a)),o.opListReadCapability.promise}streamTextContent({includeMarkedContent:e=!1,disableNormalization:t=!1}={}){return this._transport.messageHandler.sendWithStream(`GetTextContent`,{pageId:this.#t.getPageId(this._pageIndex+1)-1,pageIndex:this._pageIndex,includeMarkedContent:e===!0,disableNormalization:t===!0},{highWaterMark:100,size(e){return e.items.length}})}async getTextContent(e={}){if(this._transport._htmlForXfa)return this.getXfa().then(e=>Ne.textContent(e));let t=this.streamTextContent(e),n={items:[],styles:Object.create(null),lang:null};for await(let e of t)n.lang??=e.lang,Object.assign(n.styles,e.styles),n.items.push(...e.items);return n}getStructTree(){return this._transport.getStructTree(this._pageIndex)}_destroy(){this.destroyed=!0;let e=[];for(let t of this._intentStates.values())if(this._abortOperatorList({intentState:t,reason:Error(`Page was destroyed.`),force:!0}),!t.opListReadCapability)for(let n of t.renderTasks)e.push(n.completed),n.cancel();return this.objs.clear(),this.#e=!1,Promise.all(e)}cleanup(e=!1){this.#e=!0;let t=this.#n();return e&&t&&(this._stats&&=new He),t}#n(){if(!this.#e||this.destroyed)return!1;for(let{renderTasks:e,operatorList:t}of this._intentStates.values())if(e.size>0||!t.lastChunk)return!1;return this._intentStates.clear(),this.objs.clear(),this.#e=!1,!0}_startRenderPage(e,t){let n=this._intentStates.get(t);n&&(this._stats?.timeEnd(`Page Request`),n.displayReadyCapability?.resolve(e))}_renderPageChunk(e,t){for(let n=0,r=e.length;n<r;n++)t.operatorList.fnArray.push(e.fnArray[n]),t.operatorList.argsArray.push(e.argsArray[n]);t.operatorList.lastChunk=e.lastChunk,t.operatorList.separateAnnots=e.separateAnnots;for(let e of t.renderTasks)e.operatorListChanged();e.lastChunk&&this.#n()}_pumpOperatorList({renderingIntent:e,cacheKey:t,annotationStorageSerializable:n,modifiedIds:r}){let{map:i,transfer:a}=n,o=this._transport.messageHandler.sendWithStream(`GetOperatorList`,{pageId:this.#t.getPageId(this._pageIndex+1)-1,pageIndex:this._pageIndex,intent:e,cacheKey:t,annotationStorage:i,modifiedIds:r},void 0,a).getReader(),s=this._intentStates.get(t);s.streamReader=o;let c=()=>{o.read().then(({value:e,done:t})=>{if(t){s.streamReader=null;return}this._transport.destroyed||(this._renderPageChunk(e,s),c())},e=>{if(s.streamReader=null,!this._transport.destroyed){if(s.operatorList){s.operatorList.lastChunk=!0;for(let e of s.renderTasks)e.operatorListChanged();this.#n()}if(s.displayReadyCapability)s.displayReadyCapability.reject(e);else if(s.opListReadCapability)s.opListReadCapability.reject(e);else throw e}})};c()}_abortOperatorList({intentState:e,reason:t,force:n=!1}){if(e.streamReader){if(e.streamReaderCancelTimeout&&=(clearTimeout(e.streamReaderCancelTimeout),null),!n){if(e.renderTasks.size>0)return;if(t instanceof Le){let n=ei;t.extraDelay>0&&t.extraDelay<1e3&&(n+=t.extraDelay),e.streamReaderCancelTimeout=setTimeout(()=>{e.streamReaderCancelTimeout=null,this._abortOperatorList({intentState:e,reason:t,force:!0})},n);return}}if(e.streamReader.cancel(new be(t.message)).catch(()=>{}),e.streamReader=null,!this._transport.destroyed){for(let[t,n]of this._intentStates)if(n===e){this._intentStates.delete(t);break}this.cleanup()}}}get stats(){return this._stats}},oi=class e{#e=Promise.withResolvers();#t=null;#n=null;#r=null;static#i=0;static#a=!1;static#o=new WeakMap;static{E&&(this.#a=!0,Hr.workerSrc||=`./pdf.worker.mjs`),this._isSameOrigin=(e,t)=>{let n=URL.parse(e);if(!n?.origin||n.origin===`null`)return!1;let r=new URL(t,n);return n.origin===r.origin},this._createCDNWrapper=e=>{let t=`await import("${e}");`;return URL.createObjectURL(new Blob([t],{type:`text/javascript`}))}}constructor({name:t=null,port:n=null,verbosity:r=se()}={}){if(this.name=t,this.destroyed=!1,this.verbosity=r,n){if(e.#o.has(n))throw Error(`Cannot use more than one PDFWorker per port.`);e.#o.set(n,this),this.#c(n)}else this.#l()}get promise(){return this.#e.promise}#s(){this.#e.resolve(),this.#t.send(`configure`,{verbosity:this.verbosity})}get port(){return this.#n}get messageHandler(){return this.#t}#c(e){this.#n=e,this.#t=new hn(`main`,`worker`,e),this.#t.on(`ready`,()=>{}),this.#s()}#l(){if(e.#a||e.#d){this.#u();return}let{workerSrc:t}=e;try{e._isSameOrigin(window.location,t)||(t=e._createCDNWrapper(new URL(t,window.location).href));let n=new Worker(t,{type:`module`}),r=new hn(`main`,`worker`,n),i=()=>{a.abort(),r.destroy(),n.terminate(),this.destroyed?this.#e.reject(Error(`Worker was destroyed`)):this.#u()},a=new AbortController;n.addEventListener(`error`,()=>{this.#r||i()},{signal:a.signal}),r.on(`test`,e=>{if(a.abort(),this.destroyed||!e){i();return}this.#t=r,this.#n=n,this.#r=n,this.#s()}),r.on(`ready`,e=>{if(a.abort(),this.destroyed){i();return}try{o()}catch{this.#u()}});let o=()=>{let e=new Uint8Array;r.send(`test`,e,[e.buffer])};o();return}catch{ce(`The worker has been disabled.`)}this.#u()}#u(){e.#a||=(H(`Setting up fake worker.`),!0),e._setupFakeWorkerGlobal.then(t=>{if(this.destroyed){this.#e.reject(Error(`Worker was destroyed`));return}let n=new un;this.#n=n;let r=`fake${e.#i++}`,i=new hn(r+`_worker`,r,n);t.setup(i,n),this.#t=new hn(r,r+`_worker`,n),this.#s()}).catch(e=>{this.#e.reject(Error(`Setting up fake worker failed: "${e.message}".`))})}destroy(){this.destroyed=!0,this.#r?.terminate(),this.#r=null,e.#o.delete(this.#n),this.#n=null,this.#t?.destroy(),this.#t=null}static create(t){let n=this.#o.get(t?.port);if(n){if(n._pendingDestroy)throw Error("PDFWorker.create - the worker is being destroyed.\nPlease remember to await `PDFDocumentLoadingTask.destroy()`-calls.");return n}return new e(t)}static get workerSrc(){if(Hr.workerSrc)return Hr.workerSrc;throw Error(`No "GlobalWorkerOptions.workerSrc" specified.`)}static get#d(){try{return globalThis.pdfjsWorker?.WorkerMessageHandler||null}catch{return null}}static get _setupFakeWorkerGlobal(){return W(this,`_setupFakeWorkerGlobal`,(async()=>this.#d?this.#d:(await r(()=>import(this.workerSrc),[],import.meta.url)).WorkerMessageHandler)())}},si=class{downloadInfoCapability=Promise.withResolvers();#e=null;#t=new Map;#n=null;#r=new Map;#i=new Map;#a=new Map;#o=null;constructor(e,t,n,r,i,a){this.messageHandler=e,this.loadingTask=t,this.#n=n,this.commonObjs=new Xr,this.fontLoader=new qt({ownerDocument:r.ownerDocument,styleElement:r.styleElement}),this.enableHWA=r.enableHWA,this.loadingParams=r.loadingParams,this._params=r,this.canvasFactory=i.canvasFactory,this.filterFactory=i.filterFactory,this.binaryDataFactory=i.binaryDataFactory,this.pagesMapper=a,this.destroyed=!1,this.destroyCapability=null,this.setupMessageHandler()}updatePage(e){let{_pageIndex:t}=e;this.#r.set(t,e),this.#i.set(t,Promise.resolve(e))}#s(e,t=null){return this.#t.getOrInsertComputed(e,()=>this.messageHandler.sendWithPromise(e,t))}#c({loaded:e,total:t}){this.loadingTask.onProgress?.({loaded:e,total:t,percent:t?q(Math.round(e/t*100),0,100):NaN})}get annotationStorage(){return W(this,`annotationStorage`,new Mt)}getRenderingIntent(e,t=N.ENABLE,n=null,r=!1,i=!1){let a=M.DISPLAY,o=jt;switch(e){case`any`:a=M.ANY;break;case`display`:break;case`print`:a=M.PRINT;break;default:H(`getRenderingIntent - invalid intent: ${e}`)}let s=a&M.PRINT&&n instanceof Nt?n:this.annotationStorage;switch(t){case N.DISABLE:a+=M.ANNOTATIONS_DISABLE;break;case N.ENABLE:break;case N.ENABLE_FORMS:a+=M.ANNOTATIONS_FORMS;break;case N.ENABLE_STORAGE:a+=M.ANNOTATIONS_STORAGE,o=s.serializable;break;default:H(`getRenderingIntent - invalid annotationMode: ${t}`)}r&&(a+=M.IS_EDITING),i&&(a+=M.OPLIST);let{ids:c,hash:l}=s.modifiedIds,u=[a,o.hash,l];return{renderingIntent:a,cacheKey:u.join(`_`),annotationStorageSerializable:o,modifiedIds:c}}destroy(){if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=Promise.withResolvers(),this.#o?.reject(Error(`Worker was destroyed during onPassword callback`));let e=[];for(let t of this.#r.values())e.push(t._destroy());this.#r.clear(),this.#i.clear(),this.#a.clear(),Object.hasOwn(this,`annotationStorage`)&&this.annotationStorage.resetModified();let t=this.messageHandler.sendWithPromise(`Terminate`,null);return e.push(t),Promise.all(e).then(()=>{this.commonObjs.clear(),this.fontLoader.clear(),this.#t.clear(),this.filterFactory.destroy(),$r.cleanup(),this.#n?.cancelAllRequests(new be(`Worker was terminated.`)),this.messageHandler?.destroy(),this.messageHandler=null,this.destroyCapability.resolve()},this.destroyCapability.reject),this.destroyCapability.promise}setupMessageHandler(){let{messageHandler:e,loadingTask:t}=this;e.on(`GetReader`,(e,t)=>{le(this.#n,"GetReader - no `BasePDFStream` instance available."),this.#e=this.#n.getFullReader(),this.#e.onProgress=e=>this.#c(e),t.onPull=()=>{this.#e.read().then(function({value:e,done:n}){if(n){t.close();return}le(e instanceof ArrayBuffer,`GetReader - expected an ArrayBuffer.`),t.enqueue(new Uint8Array(e),1,[e])}).catch(e=>{t.error(e)})},t.onCancel=e=>{this.#e.cancel(e),t.ready.catch(e=>{if(!this.destroyed)throw e})}}),e.on(`ReaderHeadersReady`,async e=>{await this.#e.headersReady;let{isStreamingSupported:t,isRangeSupported:n,contentLength:r}=this.#e;return t&&n&&(this.#e.onProgress=null),{isStreamingSupported:t,isRangeSupported:n,contentLength:r}}),e.on(`GetRangeReader`,(e,t)=>{le(this.#n,"GetRangeReader - no `BasePDFStream` instance available.");let n=this.#n.getRangeReader(e.begin,e.end);if(!n){t.close();return}t.onPull=()=>{n.read().then(function({value:e,done:n}){if(n){t.close();return}le(e instanceof ArrayBuffer,`GetRangeReader - expected an ArrayBuffer.`),t.enqueue(new Uint8Array(e),1,[e])}).catch(e=>{t.error(e)})},t.onCancel=e=>{n.cancel(e),t.ready.catch(e=>{if(!this.destroyed)throw e})}}),e.on(`GetDoc`,({pdfInfo:e})=>{this.pagesMapper.pagesNumber=e.numPages,this._numPages=e.numPages,this._htmlForXfa=e.htmlForXfa,delete e.htmlForXfa,t._capability.resolve(new ii(e,this))}),e.on(`DocException`,e=>{t._capability.reject(mn(e))}),e.on(`PasswordRequest`,e=>{this.#o=Promise.withResolvers();try{if(!t.onPassword)throw mn(e);t.onPassword(e=>{e instanceof Error?this.#o.reject(e):this.#o.resolve({password:e})},e.code)}catch(e){this.#o.reject(e)}return this.#o.promise}),e.on(`DataLoaded`,e=>{this.#c({loaded:e.length,total:e.length}),this.downloadInfoCapability.resolve(e)}),e.on(`StartRenderPage`,e=>{this.destroyed||this.#r.get(e.pageIndex)._startRenderPage(e.transparency,e.cacheKey)}),e.on(`commonobj`,([t,n,r])=>{if(this.destroyed||this.commonObjs.has(t))return null;switch(n){case`Font`:if(`error`in r){let e=r.error;H(`Error during font loading: ${e}`),this.commonObjs.resolve(t,e);break}let i=new Jt(new tn(r),this._params.pdfBug&&globalThis.FontInspector?.enabled?(e,t)=>globalThis.FontInspector.fontAdded(e,t):null,r.charProcOperatorList,r.extra);this.fontLoader.bind(i).catch(()=>e.sendWithPromise(`FontFallback`,{id:t})).finally(()=>{i.fontExtraProperties||i.clearData(),this.commonObjs.resolve(t,i)});break;case`CopyLocalImage`:let{imageRef:a}=r;le(a,`The imageRef must be defined.`);for(let e of this.#r.values())for(let[,n]of e.objs){if(n?.ref!==a)continue;if(!n.dataLen)return null;let e=structuredClone(n);return this.commonObjs.resolve(t,e),n.dataLen}break;case`FontPath`:this.commonObjs.resolve(t,new rn(r));break;case`Image`:this.commonObjs.resolve(t,r);break;case`Pattern`:let o=new nn(r);this.commonObjs.resolve(t,o.getIR());break;default:throw Error(`Got unknown common object type ${n}`)}return null}),e.on(`obj`,([e,t,n,r])=>{if(this.destroyed)return;let i=this.#r.get(t);if(!i.objs.has(e)){if(i._intentStates.size===0){r?.bitmap?.close();return}switch(n){case`Image`:case`Pattern`:i.objs.resolve(e,r);break;default:throw Error(`Got unknown object type ${n}`)}}}),e.on(`DocProgress`,e=>{this.destroyed||this.#c(e)}),e.on(`FetchBinaryData`,async e=>{if(this.destroyed)throw Error(`Worker was destroyed.`);if(!this.binaryDataFactory)throw Error("`BinaryDataFactory` not initialized, see the `useWorkerFetch` parameter.");return this.binaryDataFactory.fetch(e)})}getData(){return this.messageHandler.sendWithPromise(`GetData`,null)}saveDocument(){this.annotationStorage.size<=0&&H("saveDocument called while `annotationStorage` is empty, please use the getData-method instead.");let{map:e,transfer:t}=this.annotationStorage.serializable;return this.messageHandler.sendWithPromise(`SaveDocument`,{isPureXfa:!!this._htmlForXfa,numPages:this._numPages,annotationStorage:e,filename:this.#e?.filename??null},t).finally(()=>{this.annotationStorage.resetModified()})}extractPages(e){let t={pageInfos:e},n,r=globalThis.ImageBitmap;if(typeof r==`function`){let t=Array.isArray(e)?e:[e];for(let e of t)e?.image instanceof r&&(n||=[]).push(e.image)}if(this.annotationStorage.size>0){let e=this.annotationStorage.serializable,{map:r}=e;e.transfer?.length&&(n?n.push(...e.transfer):n=e.transfer);let i=this.pagesMapper.getMapping();if(i){let e=new Map;for(let[t,n]of r){if(n?.pageIndex!==void 0&&n.pageIndex>=0&&n.pageIndex<i.length){let r=i[n.pageIndex]-1;if(r!==n.pageIndex){e.set(t,{...n,pageIndex:r});continue}}e.set(t,n)}r=e}t.annotationStorage=r}return this.messageHandler.sendWithPromise(`ExtractPages`,t,n).finally(()=>{this.annotationStorage.resetModified()})}getPage(e){if(!Number.isInteger(e)||e<=0||e>this.pagesMapper.pagesNumber)return Promise.reject(Error(`Invalid page request.`));let t=e-1,n=this.pagesMapper.getPageId(e)-1,r=this.#i.get(t);if(r)return r;let i=this.messageHandler.sendWithPromise(`GetPage`,{pageIndex:n}).then(e=>{if(this.destroyed)throw Error(`Transport destroyed`);e.refStr&&this.#a.set(e.refStr,n);let r=new ai(t,e,this,this.pagesMapper,this._params.pdfBug);return this.#r.set(t,r),r});return this.#i.set(t,i),i}async getPageIndex(e){if(!cn(e))throw Error(`Invalid pageIndex request.`);let t=await this.messageHandler.sendWithPromise(`GetPageIndex`,{num:e.num,gen:e.gen}),n=this.pagesMapper.getPageNumber(t+1);if(n===0)throw Error(`GetPageIndex: page has been removed.`);return n-1}getAnnotations(e,t){return this.messageHandler.sendWithPromise(`GetAnnotations`,{pageIndex:this.pagesMapper.getPageId(e+1)-1,intent:t})}getFieldObjects(){return this.#s(`GetFieldObjects`)}hasJSActions(){return this.#s(`HasJSActions`)}getCalculationOrderIds(){return this.messageHandler.sendWithPromise(`GetCalculationOrderIds`,null)}getDestinations(){return this.messageHandler.sendWithPromise(`GetDestinations`,null)}getDestination(e){return typeof e==`string`?this.messageHandler.sendWithPromise(`GetDestination`,{id:e}):Promise.reject(Error(`Invalid destination request.`))}getPageLabels(){return this.messageHandler.sendWithPromise(`GetPageLabels`,null)}getPageLayout(){return this.messageHandler.sendWithPromise(`GetPageLayout`,null)}getPageMode(){return this.messageHandler.sendWithPromise(`GetPageMode`,null)}getViewerPreferences(){return this.messageHandler.sendWithPromise(`GetViewerPreferences`,null)}getOpenAction(){return this.messageHandler.sendWithPromise(`GetOpenAction`,null)}getAttachments(){return this.messageHandler.sendWithPromise(`GetAttachments`,null)}getAnnotationsByType(e,t){return this.messageHandler.sendWithPromise(`GetAnnotationsByType`,{types:e,pageIndexesToSkip:t})}getDocJSActions(){return this.#s(`GetDocJSActions`)}getPageJSActions(e){return this.messageHandler.sendWithPromise(`GetPageJSActions`,{pageIndex:this.pagesMapper.getPageId(e+1)-1})}getStructTree(e){return this.messageHandler.sendWithPromise(`GetStructTree`,{pageIndex:this.pagesMapper.getPageId(e+1)-1})}getOutline(){return this.messageHandler.sendWithPromise(`GetOutline`,null)}getOptionalContentConfig(e){return this.#s(`GetOptionalContentConfig`).then(t=>new Kr(t,e))}getPermissions(){return this.messageHandler.sendWithPromise(`GetPermissions`,null)}getMetadata(){let e=`GetMetadata`;return this.#t.getOrInsertComputed(e,()=>this.messageHandler.sendWithPromise(e,null).then(e=>({info:e[0],metadata:e[1]?new Ur(e[1]):null,contentDispositionFilename:this.#e?.filename??null,contentLength:this.#e?.contentLength??null,hasStructTree:e[2]})))}getMarkInfo(){return this.messageHandler.sendWithPromise(`GetMarkInfo`,null)}getRawData(e){return this.messageHandler.sendWithPromise(`GetRawData`,e)}async startCleanup(e=!1){if(!this.destroyed){await this.messageHandler.sendWithPromise(`Cleanup`,null);for(let e of this.#r.values())if(!e.cleanup())throw Error(`startCleanup: Page ${e.pageNumber} is currently rendering.`);this.commonObjs.clear(),e||this.fontLoader.clear(),this.#t.clear(),this.filterFactory.destroy(!0),$r.cleanup()}}cachedPageNumber(e){if(!cn(e))return null;let t=e.gen===0?`${e.num}R`:`${e.num}R${e.gen}`,n=this.#a.get(t);if(n>=0){let e=this.pagesMapper.getPageNumber(n+1);if(e!==0)return e}return null}},ci=class{_internalRenderTask=null;onContinue=null;onError=null;constructor(e){this._internalRenderTask=e}get promise(){return this._internalRenderTask.capability.promise}cancel(e=0){this._internalRenderTask.cancel(null,e)}get separateAnnots(){let{separateAnnots:e}=this._internalRenderTask.operatorList;if(!e)return!1;let{annotationCanvasMap:t}=this._internalRenderTask;return e.form||e.canvas&&t?.size>0}get imageCoordinates(){return this._internalRenderTask.imageCoordinates||null}},li=class e{#e=null;static#t=new WeakSet;constructor({callback:e,params:t,objs:n,commonObjs:r,annotationCanvasMap:i,operatorList:a,pageIndex:o,canvasFactory:s,filterFactory:c,useRequestAnimationFrame:l=!1,pdfBug:u=!1,pageColors:d=null,enableHWA:f=!1,operationsFilter:p=null}){this.callback=e,this.params=t,this.objs=n,this.commonObjs=r,this.annotationCanvasMap=i,this.operatorListIdx=null,this.operatorList=a,this._pageIndex=o,this.canvasFactory=s,this.filterFactory=c,this._pdfBug=u,this.pageColors=d,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=l===!0&&typeof window<`u`,this.cancelled=!1,this.capability=Promise.withResolvers(),this.task=new ci(this),this._cancelBound=this.cancel.bind(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=t.canvas,this._canvasContext=t.canvas?null:t.canvasContext,this._enableHWA=f,this._dependencyTracker=t.dependencyTracker,this._imagesTracker=t.imagesTracker,this._operationsFilter=p}get completed(){return this.capability.promise.catch(function(){})}initializeGraphics({transparency:t=!1,optionalContentConfig:n}){if(this.cancelled)return;if(this._canvas){if(e.#t.has(this._canvas))throw Error(`Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.`);e.#t.add(this._canvas)}this._pdfBug&&globalThis.StepperManager?.enabled&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());let{viewport:r,transform:i,background:a,dependencyTracker:o,imagesTracker:s}=this.params,c=this._canvasContext||this._canvas.getContext(`2d`,{alpha:!1,willReadFrequently:!this._enableHWA});this.gfx=new lr(c,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:n},this.annotationCanvasMap,this.pageColors,o,s),this.gfx.beginDrawing({transform:i,viewport:r,transparency:t,background:a}),this.operatorListIdx=0,this.graphicsReady=!0,this.graphicsReadyCallback?.()}cancel(t=null,n=0){this.running=!1,this.cancelled=!0,this.gfx?.endDrawing(),this.#e&&=(window.cancelAnimationFrame(this.#e),null),e.#t.delete(this._canvas),t||=new Le(`Rendering cancelled, page ${this._pageIndex+1}`,n),this.callback(t),this.task.onError?.(t)}operatorListChanged(){if(!this.graphicsReady){this.graphicsReadyCallback||=this._continueBound;return}this.gfx.dependencyTracker?.growOperationsCount(this.operatorList.fnArray.length),this.stepper?.updateOperatorList(this.operatorList),!this.running&&this._continue()}_continue(){this.running=!0,!this.cancelled&&(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}_scheduleNext(){this._useRequestAnimationFrame?this.#e=window.requestAnimationFrame(()=>{this.#e=null,this._nextBound().catch(this._cancelBound)}):Promise.resolve().then(this._nextBound).catch(this._cancelBound)}async _next(){this.cancelled||(this.operatorListIdx=this.gfx.executeOperatorList(this.operatorList,this.operatorListIdx,this._continueBound,this.stepper,this._operationsFilter),this.operatorListIdx===this.operatorList.argsArray.length&&(this.running=!1,this.operatorList.lastChunk&&(this.gfx.endDrawing(),e.#t.delete(this._canvas),this.callback())))}},ui=`6.0.227`,di=`241dbabbf`;T(3068);var fi=class e{#e=null;#t=null;#n;#r=null;#i=!1;#a=!1;#o=null;#s;#c=null;#l=null;static#u=null;static get _keyboardManager(){return W(this,`_keyboardManager`,new bt([[[`Escape`,`mac+Escape`],e.prototype._hideDropdownFromKeyboard],[[` `,`mac+ `],e.prototype._colorSelectFromKeyboard],[[`ArrowDown`,`ArrowRight`,`mac+ArrowDown`,`mac+ArrowRight`],e.prototype._moveToNext],[[`ArrowUp`,`ArrowLeft`,`mac+ArrowUp`,`mac+ArrowLeft`],e.prototype._moveToPrevious],[[`Home`,`mac+Home`],e.prototype._moveToBeginning],[[`End`,`mac+End`],e.prototype._moveToEnd]]))}constructor({editor:t=null,uiManager:n=null}){t?(this.#a=!1,this.#o=t):this.#a=!0,this.#l=t?._uiManager||n,this.#s=this.#l._eventBus,this.#n=t?.color?.toUpperCase()||this.#l?.highlightColors.values().next().value||`#FFFF98`,e.#u||=Object.freeze({blue:`pdfjs-editor-colorpicker-blue`,green:`pdfjs-editor-colorpicker-green`,pink:`pdfjs-editor-colorpicker-pink`,red:`pdfjs-editor-colorpicker-red`,yellow:`pdfjs-editor-colorpicker-yellow`})}renderButton(){let e=this.#e=document.createElement(`button`);e.className=`colorPicker`,e.tabIndex=`0`,e.setAttribute(`data-l10n-id`,`pdfjs-editor-colorpicker-button`),e.ariaHasPopup=`true`,this.#o&&(e.ariaControls=`${this.#o.id}_colorpicker_dropdown`);let t=this.#l._signal;e.addEventListener(`click`,this.#m.bind(this),{signal:t}),e.addEventListener(`keydown`,this.#p.bind(this),{signal:t});let n=this.#t=document.createElement(`span`);return n.className=`swatch`,n.ariaHidden=`true`,n.style.backgroundColor=this.#n,e.append(n),e}renderMainDropdown(){let e=this.#r=this.#d();return e.ariaOrientation=`horizontal`,e.ariaLabelledBy=`highlightColorPickerLabel`,e}#d(){let t=document.createElement(`div`),n=this.#l._signal;t.addEventListener(`contextmenu`,We,{signal:n}),t.className=`dropdown`,t.role=`listbox`,t.ariaMultiSelectable=`false`,t.ariaOrientation=`vertical`,t.setAttribute(`data-l10n-id`,`pdfjs-editor-colorpicker-dropdown`),this.#o&&(t.id=`${this.#o.id}_colorpicker_dropdown`);for(let[r,i]of this.#l.highlightColors){let a=document.createElement(`button`);a.tabIndex=`0`,a.role=`option`,a.setAttribute(`data-color`,i),a.title=r,a.setAttribute(`data-l10n-id`,e.#u[r]);let o=document.createElement(`span`);a.append(o),o.className=`swatch`,o.style.backgroundColor=i,a.ariaSelected=i===this.#n,a.addEventListener(`click`,this.#f.bind(this,i),{signal:n}),t.append(a)}return t.addEventListener(`keydown`,this.#p.bind(this),{signal:n}),t}#f(e,t){t.stopPropagation(),this.#s.dispatch(`switchannotationeditorparams`,{source:this,type:L.HIGHLIGHT_COLOR,value:e}),this.updateColor(e)}_colorSelectFromKeyboard(e){if(e.target===this.#e){this.#m(e);return}let t=e.target.getAttribute(`data-color`);t&&this.#f(t,e)}_moveToNext(e){if(!this.#g){this.#m(e);return}if(e.target===this.#e){this.#r.firstElementChild?.focus();return}e.target.nextSibling?.focus()}_moveToPrevious(e){if(e.target===this.#r?.firstElementChild||e.target===this.#e){this.#g&&this._hideDropdownFromKeyboard();return}this.#g||this.#m(e),e.target.previousSibling?.focus()}_moveToBeginning(e){if(!this.#g){this.#m(e);return}this.#r.firstElementChild?.focus()}_moveToEnd(e){if(!this.#g){this.#m(e);return}this.#r.lastElementChild?.focus()}#p(t){e._keyboardManager.exec(this,t)}#m(e){if(this.#g){this.hideDropdown();return}if(this.#i=e.detail===0,this.#c||(this.#c=new AbortController,window.addEventListener(`pointerdown`,this.#h.bind(this),{signal:this.#l.combinedSignal(this.#c)})),this.#e.ariaExpanded=`true`,this.#r){this.#r.classList.remove(`hidden`);return}let t=this.#r=this.#d();this.#e.append(t)}#h(e){this.#r?.contains(e.target)||this.hideDropdown()}hideDropdown(){this.#r?.classList.add(`hidden`),this.#e.ariaExpanded=`false`,this.#c?.abort(),this.#c=null}get#g(){return this.#r&&!this.#r.classList.contains(`hidden`)}_hideDropdownFromKeyboard(){if(!this.#a){if(!this.#g){this.#o?.unselect();return}this.hideDropdown(),this.#e.focus({preventScroll:!0,focusVisible:this.#i})}}updateColor(e){if(this.#t&&(this.#t.style.backgroundColor=e),!this.#r)return;let t=this.#l.highlightColors.values();for(let n of this.#r.children)n.ariaSelected=t.next().value===e.toUpperCase()}destroy(){this.#e?.remove(),this.#e=null,this.#t=null,this.#r?.remove(),this.#r=null}},pi=class e{#e=null;#t=!1;#n=null;#r=null;static#i=null;constructor(t){this.#n=t,this.#r=t._uiManager,e.#i||=Object.freeze({freetext:`pdfjs-editor-color-picker-free-text-input`,ink:`pdfjs-editor-color-picker-ink-input`})}renderButton(){if(this.#e)return this.#e;let{editorType:t,colorType:n,colorAndOpacityType:r,opacityType:i,color:a,opacity:o}=this.#n,s=this.#t=G.isAlphaColorInputSupported&&i!==void 0,c=this.#e=document.createElement(`input`);if(c.type=`color`,s){c.setAttribute(`alpha`,``);let e=K.hexNums[Math.round((o??1)*255)];c.value=(a||`#000000`)+e}else c.value=a||`#000000`;return c.className=`basicColorPicker`,c.tabIndex=0,c.setAttribute(`data-l10n-id`,e.#i[t]),c.addEventListener(`input`,()=>{if(s){let e=qe(c.value);if(!e)return;let[t,a,o,s]=e,l=K.makeHexColor(t,a,o);r===void 0?(this.#r.updateParams(n,l),this.#r.updateParams(i,s)):this.#r.updateParams(r,{color:l,opacity:s})}else this.#r.updateParams(n,c.value)},{signal:this.#r._signal}),c}update(e){if(this.#e)if(this.#t){let t=K.hexNums[Math.round(this.#n.opacity*255)];this.#e.value=e+t}else this.#e.value=e}updateOpacity(e){if(!this.#e||!this.#t)return;let t=K.hexNums[Math.round(e*255)];this.#e.value=this.#n.color+t}destroy(){this.#e?.remove(),this.#e=null}hideDropdown(){}};T(531);function mi(e){return Math.floor(q(e,0,1)*255).toString(16).padStart(2,`0`)}function hi(e){return q(e,0,1)*255}var gi=class{static CMYK_G([e,t,n,r]){return[`G`,1-Math.min(1,.3*e+.59*n+.11*t+r)]}static G_CMYK([e]){return[`CMYK`,0,0,0,1-e]}static G_RGB([e]){return[`RGB`,e,e,e]}static G_rgb([e]){return e=hi(e),[e,e,e]}static G_HTML([e]){let t=mi(e);return`#${t}${t}${t}`}static RGB_G([e,t,n]){return[`G`,.3*e+.59*t+.11*n]}static RGB_rgb(e){return e.map(hi)}static RGB_HTML(e){return`#${e.map(mi).join(``)}`}static T_HTML(){return`#00000000`}static T_rgb(){return[null]}static CMYK_RGB([e,t,n,r]){return[`RGB`,1-Math.min(1,e+r),1-Math.min(1,n+r),1-Math.min(1,t+r)]}static CMYK_rgb([e,t,n,r]){return[hi(1-Math.min(1,e+r)),hi(1-Math.min(1,n+r)),hi(1-Math.min(1,t+r))]}static CMYK_HTML(e){let t=this.CMYK_RGB(e).slice(1);return this.RGB_HTML(t)}static RGB_CMYK([e,t,n]){let r=1-e,i=1-t,a=1-n;return[`CMYK`,r,i,a,Math.min(r,i,a)]}},_i=class{create(e,t,n=!1){if(e<=0||t<=0)throw Error(`Invalid SVG dimensions`);let r=this._createSVG(`svg:svg`);return r.setAttribute(`version`,`1.1`),n||(r.setAttribute(`width`,`${e}px`),r.setAttribute(`height`,`${t}px`)),r.setAttribute(`preserveAspectRatio`,`none`),r.setAttribute(`viewBox`,`0 0 ${e} ${t}`),r}createElement(e){if(typeof e!=`string`)throw Error(`Invalid SVG element type`);return this._createSVG(e)}_createSVG(e){U("Abstract method `_createSVG` called.")}},vi=class extends _i{_createSVG(e){return document.createElementNS(j,e)}},yi=9,bi=new WeakSet,xi=new Date().getTimezoneOffset()*60*1e3,Si=class{static create(e){switch(e.data.annotationType){case B.LINK:return new Ti(e);case B.TEXT:return new Ei(e);case B.WIDGET:switch(e.data.fieldType){case`Tx`:return new Oi(e);case`Btn`:return e.data.radioButton?new ji(e):e.data.checkBox?new Ai(e):new Mi(e);case`Ch`:return new Ni(e);case`Sig`:return new ki(e)}return new Di(e);case B.POPUP:return new Pi(e);case B.FREETEXT:return new Ii(e);case B.LINE:return new Li(e);case B.SQUARE:return new Ri(e);case B.CIRCLE:return new zi(e);case B.POLYLINE:return new Bi(e);case B.CARET:return new Hi(e);case B.INK:return new Ui(e);case B.POLYGON:return new Vi(e);case B.HIGHLIGHT:return new Wi(e);case B.UNDERLINE:return new Gi(e);case B.SQUIGGLY:return new Ki(e);case B.STRIKEOUT:return new qi(e);case B.STAMP:return new Ji(e);case B.FILEATTACHMENT:return new Yi(e);default:return new Ci(e)}}},Ci=class e{#e=null;#t=!1;#n=null;constructor(e,{isRenderable:t=!1,ignoreBorder:n=!1,createQuadrilaterals:r=!1}={}){this.isRenderable=t,this.data=e.data,this.layer=e.layer,this.linkService=e.linkService,this.downloadManager=e.downloadManager,this.imageResourcesPath=e.imageResourcesPath,this.renderForms=e.renderForms,this.svgFactory=e.svgFactory,this.annotationStorage=e.annotationStorage,this.enableComment=e.enableComment,this.enableScripting=e.enableScripting,this.hasJSActions=e.hasJSActions,this._fieldObjects=e.fieldObjects,this.parent=e.parent,this.hasOwnCommentButton=!1,t&&(this.contentElement=this.container=this._createContainer(n)),r&&this._createQuadrilaterals()}static _hasPopupData({contentsObj:e,richText:t}){return!!(e?.str||t?.str)}get _isEditable(){return this.data.isEditable}get hasPopupData(){return e._hasPopupData(this.data)||this.enableComment&&!!this.commentText}get commentData(){let{data:e}=this,t=this.annotationStorage?.getEditor(e.id);return t?t.getData():e}get hasCommentButton(){return this.enableComment&&this.hasPopupElement}get commentButtonPosition(){let e=this.annotationStorage?.getEditor(this.data.id);if(e)return e.commentButtonPositionInPage;let{quadPoints:t,inkLists:n,rect:r}=this.data,i=-1/0,a=-1/0;if(t?.length>=8){for(let e=0;e<t.length;e+=8)t[e+1]>a?(a=t[e+1],i=t[e+2]):t[e+1]===a&&(i=Math.max(i,t[e+2]));return[i,a]}if(n?.length>=1){for(let e of n)for(let t=0,n=e.length;t<n;t+=2)e[t+1]>a?(a=e[t+1],i=e[t]):e[t+1]===a&&(i=Math.max(i,e[t]));if(i!==1/0)return[i,a]}return r?[r[2],r[3]]:null}_normalizePoint(e){let{page:{view:t},viewport:{rawDims:{pageWidth:n,pageHeight:r,pageX:i,pageY:a}}}=this.parent;return e[1]=t[3]-e[1]+t[1],e[0]=100*(e[0]-i)/n,e[1]=100*(e[1]-a)/r,e}get commentText(){let{data:e}=this;return this.annotationStorage.getRawValue(`${F}${e.id}`)?.popup?.contents||e.contentsObj?.str||``}set commentText(e){let{data:t}=this,n={deleted:!e,contents:e||``};this.annotationStorage.updateEditor(t.id,{popup:n})||this.annotationStorage.setValue(`${F}${t.id}`,{id:t.id,annotationType:t.annotationType,page:this.parent.page,popup:n,popupRef:t.popupRef,modificationDate:new Date}),e||this.removePopup()}removePopup(){(this.#n?.popup||this.popup)?.remove(),this.#n=this.popup=null}updateEdited(e){if(!this.container)return;e.rect&&(this.#e||={rect:this.data.rect.slice(0)});let{rect:t,popup:n}=e;t&&this.#r(t);let r=this.#n?.popup||this.popup;!r&&n?.text&&(this._createPopup(n),r=this.#n.popup),r&&(r.updateEdited(e),n?.deleted&&(r.remove(),this.#n=null,this.popup=null))}resetEdited(){this.#e&&=(this.#r(this.#e.rect),this.#n?.popup.resetEdited(),null)}#r(e){let{container:{style:t},data:{rect:n,rotation:r},parent:{viewport:{rawDims:{pageWidth:i,pageHeight:a,pageX:o,pageY:s}}}}=this;n?.splice(0,4,...e),t.left=`${100*(e[0]-o)/i}%`,t.top=`${100*(a-e[3]+s)/a}%`,r===0?(t.width=`${100*(e[2]-e[0])/i}%`,t.height=`${100*(e[3]-e[1])/a}%`):this.setRotation(r)}_createContainer(e){let{data:t,parent:{page:n,viewport:r}}=this,i=document.createElement(`section`);i.setAttribute(`data-annotation-id`,t.id),!(this instanceof Di)&&!(this instanceof Ti)&&(i.tabIndex=0);let{style:a}=i;if(a.zIndex=this.parent.zIndex,this.parent.zIndex+=2,t.alternativeText&&(i.title=t.alternativeText),t.noRotate&&i.classList.add(`norotate`),!t.rect||this instanceof Pi){let{rotation:e}=t;return!t.hasOwnCanvas&&e!==0&&this.setRotation(e,i),i}let{width:o,height:s}=this;if(!e&&t.borderStyle.width>0){a.borderWidth=`${t.borderStyle.width}px`;let e=t.borderStyle.horizontalCornerRadius,n=t.borderStyle.verticalCornerRadius;switch(e>0||n>0?a.borderRadius=`calc(${e}px * var(--total-scale-factor)) / calc(${n}px * var(--total-scale-factor))`:this instanceof ji&&(a.borderRadius=`calc(${o}px * var(--total-scale-factor)) / calc(${s}px * var(--total-scale-factor))`),t.borderStyle.style){case te.SOLID:a.borderStyle=`solid`;break;case te.DASHED:a.borderStyle=`dashed`;break;case te.BEVELED:H(`Unimplemented border style: beveled`);break;case te.INSET:H(`Unimplemented border style: inset`);break;case te.UNDERLINE:a.borderBottomStyle=`solid`;break;default:break}let r=t.borderColor||null;r?(this.#t=!0,a.borderColor=K.makeHexColor(...r)):a.borderWidth=0}let c=K.normalizeRect([t.rect[0],n.view[3]-t.rect[1]+n.view[1],t.rect[2],n.view[3]-t.rect[3]+n.view[1]]),{pageWidth:l,pageHeight:u,pageX:d,pageY:f}=r.rawDims;a.left=`${100*(c[0]-d)/l}%`,a.top=`${100*(c[1]-f)/u}%`;let{rotation:p}=t;return t.hasOwnCanvas||p===0?(a.width=`${100*o/l}%`,a.height=`${100*s/u}%`):this.setRotation(p,i),i}setRotation(e,t=this.container){if(!this.data.rect)return;let{pageWidth:n,pageHeight:r}=this.parent.viewport.rawDims,{width:i,height:a}=this;e%180!=0&&([i,a]=[a,i]),t.style.width=`${100*i/n}%`,t.style.height=`${100*a/r}%`,t.setAttribute(`data-main-rotation`,(360-e)%360)}get _commonActions(){let e=(e,t,n)=>{let r=n.detail[e],i=r[0],a=r.slice(1);n.target.style[t]=gi[`${i}_HTML`](a),this.annotationStorage.setValue(this.data.id,{[t]:gi[`${i}_rgb`](a)})};return W(this,`_commonActions`,{display:e=>{let{display:t}=e.detail,n=t%2==1;this.container.style.visibility=n?`hidden`:`visible`,this.annotationStorage.setValue(this.data.id,{noView:n,noPrint:t===1||t===2})},print:e=>{this.annotationStorage.setValue(this.data.id,{noPrint:!e.detail.print})},hidden:e=>{let{hidden:t}=e.detail;this.container.style.visibility=t?`hidden`:`visible`,this.annotationStorage.setValue(this.data.id,{noPrint:t,noView:t})},focus:e=>{setTimeout(()=>e.target.focus({preventScroll:!1}),0)},userName:e=>{e.target.title=e.detail.userName},readonly:e=>{e.target.disabled=e.detail.readonly},required:e=>{this._setRequired(e.target,e.detail.required)},bgColor:t=>{e(`bgColor`,`backgroundColor`,t)},fillColor:t=>{e(`fillColor`,`backgroundColor`,t)},fgColor:t=>{e(`fgColor`,`color`,t)},textColor:t=>{e(`textColor`,`color`,t)},borderColor:t=>{e(`borderColor`,`borderColor`,t)},strokeColor:t=>{e(`strokeColor`,`borderColor`,t)},rotation:e=>{let t=e.detail.rotation;this.setRotation(t),this.annotationStorage.setValue(this.data.id,{rotation:t})}})}_dispatchEventFromSandbox(e,t){let n=this._commonActions;for(let r of Object.keys(t.detail))(e[r]||n[r])?.(t)}_setDefaultPropertiesFromJS(e){if(!this.enableScripting)return;let t=this.annotationStorage.getRawValue(this.data.id);if(!t)return;let n=this._commonActions;for(let[r,i]of Object.entries(t)){let a=n[r];a&&(a({detail:{[r]:i},target:e}),delete t[r])}}_createQuadrilaterals(){if(!this.container)return;let{quadPoints:e}=this.data;if(!e)return;let[t,n,r,i]=this.data.rect.map(e=>Math.fround(e));if(e.length===8){let[a,o,s,c]=e.subarray(2,6);if(r===a&&i===o&&t===s&&n===c)return}let{style:a}=this.container,o;if(this.#t){let{borderColor:e,borderWidth:t}=a;a.borderWidth=0,o=[`url('data:image/svg+xml;utf8,`,`<svg xmlns="${j}" preserveAspectRatio="none" viewBox="0 0 1 1">`,`<g fill="transparent" stroke="${e}" stroke-width="${t}">`],this.container.classList.add(`hasBorder`)}let s=r-t,c=i-n,{svgFactory:l}=this,u=l.createElement(`svg`);u.classList.add(`quadrilateralsContainer`),u.setAttribute(`width`,0),u.setAttribute(`height`,0),u.role=`none`;let d=l.createElement(`defs`);u.append(d);let f=l.createElement(`clipPath`),p=`clippath_${this.data.id}`;f.setAttribute(`id`,p),f.setAttribute(`clipPathUnits`,`objectBoundingBox`),d.append(f);for(let n=2,r=e.length;n<r;n+=8){let r=e[n],a=e[n+1],u=e[n+2],d=e[n+3],p=l.createElement(`rect`),m=(u-t)/s,h=(i-a)/c,g=(r-u)/s,_=(a-d)/c;p.setAttribute(`x`,m),p.setAttribute(`y`,h),p.setAttribute(`width`,g),p.setAttribute(`height`,_),f.append(p),o?.push(`<rect vector-effect="non-scaling-stroke" x="${m}" y="${h}" width="${g}" height="${_}"/>`)}this.#t&&(o.push(`</g></svg>')`),a.backgroundImage=o.join(``)),this.container.append(u),this.container.style.clipPath=`url(#${p})`}_createPopup(e=null){let{data:t}=this,n,r;e?(n={str:e.text},r=e.date):(n=t.contentsObj,r=t.modificationDate),this.#n=new Pi({data:{color:t.color,titleObj:t.titleObj,modificationDate:r,contentsObj:n,richText:t.richText,parentRect:t.rect,borderStyle:0,id:`popup_${t.id}`,rotation:t.rotation,noRotate:!0},linkService:this.linkService,parent:this.parent,elements:[this]})}get hasPopupElement(){return!!(this.#n||this.popup||this.data.popupRef)}get extraPopupElement(){return this.#n}render(){U("Abstract method `AnnotationElement.render` called")}_getElementsByName(e,t=null){let n=[];if(this._fieldObjects){let r=this._fieldObjects[e];if(r)for(let{page:e,id:i,exportValues:a}of r){if(e===-1||i===t)continue;let r=typeof a==`string`?a:null,o=document.querySelector(`[data-element-id="${i}"]`);if(o&&!bi.has(o)){H(`_getElementsByName - element not allowed: ${i}`);continue}n.push({id:i,exportValue:r,domElement:o})}return n}for(let r of document.getElementsByName(e)){let{exportValue:e}=r,i=r.getAttribute(`data-element-id`);i!==t&&bi.has(r)&&n.push({id:i,exportValue:e,domElement:r})}return n}show(){this.container&&(this.container.hidden=!1),this.popup?.maybeShow()}hide(){this.container&&(this.container.hidden=!0),this.popup?.forceHide()}getElementsToTriggerPopup(){return this.container}addHighlightArea(){let e=this.getElementsToTriggerPopup();if(Array.isArray(e))for(let t of e)t.classList.add(`highlightArea`);else e.classList.add(`highlightArea`)}_editOnDoubleClick(){if(!this._isEditable)return;let{annotationEditorType:e,data:{id:t}}=this;this.container.addEventListener(`dblclick`,()=>{this.linkService.eventBus?.dispatch(`switchannotationeditormode`,{source:this,mode:e,editId:t,mustEnterInEditMode:!0})})}updateOC(e){!this.data.oc||!e||(e.isVisible(this.data.oc)?this.show():this.hide())}get width(){return this.data.rect[2]-this.data.rect[0]}get height(){return this.data.rect[3]-this.data.rect[1]}},wi=class extends Ci{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0}),this.editor=e.editor}render(){return this.container.className=`editorAnnotation`,this.container}createOrUpdatePopup(){let{editor:e}=this;e.hasComment&&this._createPopup(e.comment)}get hasCommentButton(){return this.enableComment&&this.editor.hasComment}get commentButtonPosition(){return this.editor.commentButtonPositionInPage}get commentText(){return this.editor.comment.text}set commentText(e){this.editor.comment=e,e||this.removePopup()}get commentData(){return this.editor.getData()}remove(){this.parent.removeAnnotation(this.data.id),this.container.remove(),this.container=null,this.removePopup()}},Ti=class extends Ci{constructor(e,t=null){super(e,{isRenderable:!0,ignoreBorder:!!t?.ignoreBorder,createQuadrilaterals:!0}),this.isTooltipOnly=e.data.isTooltipOnly}render(){let{data:e,linkService:t}=this,n=document.createElement(`a`);n.setAttribute(`data-element-id`,e.id);let r=!1;return e.url?(t.addLinkAttributes(n,e.url,e.newWindow),r=!0):e.action?(this._bindNamedAction(n,e.action,e.overlaidText),r=!0):e.attachment?(this.#t(n,e.attachment,e.overlaidText,e.attachmentDest),r=!0):e.setOCGState?(this.#n(n,e.setOCGState,e.overlaidText),r=!0):e.dest?(this._bindLink(n,e.dest,e.overlaidText),r=!0):(e.actions&&(e.actions.Action||e.actions[`Mouse Up`]||e.actions[`Mouse Down`])&&this.enableScripting&&this.hasJSActions&&(this._bindJSAction(n,e),r=!0),e.resetForm?(this._bindResetFormAction(n,e.resetForm),r=!0):this.isTooltipOnly&&!r&&(this._bindLink(n,``),r=!0)),this.container.classList.add(`linkAnnotation`),r&&(this.contentElement=n,this.container.append(n)),this.container}#e(){this.container.setAttribute(`data-internal-link`,``)}_bindLink(e,t,n=``){e.href=this.linkService.getDestinationHash(t),e.onclick=()=>(t&&this.linkService.goToDestination(t),!1),(t||t===``)&&this.#e(),n&&(e.title=n)}_bindNamedAction(e,t,n=``){e.href=this.linkService.getAnchorUrl(``),e.onclick=()=>(this.linkService.executeNamedAction(t),!1),n&&(e.title=n),this.#e()}#t(e,t,n=``,r=null){e.href=this.linkService.getAnchorUrl(``),t.description?e.title=t.description:n&&(e.title=n),e.onclick=()=>(this.downloadManager?.openOrDownloadData(t.content,t.filename,r),!1),this.#e()}#n(e,t,n=``){e.href=this.linkService.getAnchorUrl(``),e.onclick=()=>(this.linkService.executeSetOCGState(t),!1),n&&(e.title=n),this.#e()}_bindJSAction(e,t){e.href=this.linkService.getAnchorUrl(``);let n=new Map([[`Action`,`onclick`],[`Mouse Up`,`onmouseup`],[`Mouse Down`,`onmousedown`]]);for(let r of Object.keys(t.actions)){let i=n.get(r);i&&(e[i]=()=>(this.linkService.eventBus?.dispatch(`dispatcheventinsandbox`,{source:this,detail:{id:t.id,name:r}}),!1))}t.overlaidText&&(e.title=t.overlaidText),e.onclick||=()=>!1,this.#e()}_bindResetFormAction(e,t){let n=e.onclick;if(n||(e.href=this.linkService.getAnchorUrl(``)),this.#e(),!this._fieldObjects){H('_bindResetFormAction - "resetForm" action not supported, ensure that the `fieldObjects` parameter is provided.'),n||(e.onclick=()=>!1);return}e.onclick=()=>{n?.();let{fields:e,refs:r,include:i}=t,a=[];if(e.length!==0||r.length!==0){let t=new Set(r);for(let n of e){let e=this._fieldObjects[n]||[];for(let{id:n}of e)t.add(n)}for(let e of Object.values(this._fieldObjects))for(let n of e)t.has(n.id)===i&&a.push(n)}else for(let e of Object.values(this._fieldObjects))a.push(...e);let o=this.annotationStorage,s=[];for(let e of a){let{id:t}=e;switch(s.push(t),e.type){case`text`:{let n=e.defaultValue||``;o.setValue(t,{value:n});break}case`checkbox`:case`radiobutton`:{let n=e.defaultValue===e.exportValues;o.setValue(t,{value:n});break}case`combobox`:case`listbox`:{let n=e.defaultValue||``;o.setValue(t,{value:n});break}default:continue}let n=document.querySelector(`[data-element-id="${t}"]`);if(n){if(!bi.has(n)){H(`_bindResetFormAction - element not allowed: ${t}`);continue}n.dispatchEvent(new Event(`resetform`))}}return this.enableScripting&&this.linkService.eventBus?.dispatch(`dispatcheventinsandbox`,{source:this,detail:{id:`app`,ids:s,name:`ResetForm`}}),!1}}},Ei=class extends Ci{constructor(e){super(e,{isRenderable:!0})}render(){this.container.classList.add(`textAnnotation`);let e=document.createElement(`img`);return e.src=this.imageResourcesPath+`annotation-`+this.data.name.toLowerCase()+`.svg`,e.setAttribute(`data-l10n-id`,`pdfjs-text-annotation-type`),e.setAttribute(`data-l10n-args`,JSON.stringify({type:this.data.name})),!this.data.popupRef&&this.hasPopupData&&(this.hasOwnCommentButton=!0,this._createPopup()),this.container.append(e),this.container}},Di=class extends Ci{render(){return this.container}showElementAndHideCanvas(e){this.data.hasOwnCanvas&&(e.previousSibling?.nodeName===`CANVAS`&&(e.previousSibling.hidden=!0),e.hidden=!1)}_getKeyModifier(e){return G.platform.isMac?e.metaKey:e.ctrlKey}_setEventListener(e,t,n,r,i){n.includes(`mouse`)?e.addEventListener(n,e=>{this.linkService.eventBus?.dispatch(`dispatcheventinsandbox`,{source:this,detail:{id:this.data.id,name:r,value:i(e),shift:e.shiftKey,modifier:this._getKeyModifier(e)}})}):e.addEventListener(n,e=>{if(n===`blur`){if(!t.focused||!e.relatedTarget)return;t.focused=!1}else if(n===`focus`){if(t.focused)return;t.focused=!0}i&&this.linkService.eventBus?.dispatch(`dispatcheventinsandbox`,{source:this,detail:{id:this.data.id,name:r,value:i(e)}})})}_setEventListeners(e,t,n,r){for(let[i,a]of n)(a===`Action`||this.data.actions?.[a])&&((a===`Focus`||a===`Blur`)&&(t||={focused:!1}),this._setEventListener(e,t,i,a,r),a===`Focus`&&!this.data.actions?.Blur?this._setEventListener(e,t,`blur`,`Blur`,null):a===`Blur`&&!this.data.actions?.Focus&&this._setEventListener(e,t,`focus`,`Focus`,null))}_setBackgroundColor(e){let t=this.data.backgroundColor||null;e.style.backgroundColor=t===null?`transparent`:K.makeHexColor(...t)}_setTextStyle(e){let t=[`left`,`center`,`right`],{fontColor:n}=this.data.defaultAppearanceData,r=this.data.defaultAppearanceData.fontSize||yi,i=e.style,a,o=e=>Math.round(10*e)/10;if(this.data.multiLine){let e=Math.abs(this.data.rect[3]-this.data.rect[1]-2),t=e/(Math.round(e/(A*r))||1);a=Math.min(r,o(t/A))}else{let e=Math.abs(this.data.rect[3]-this.data.rect[1]-2);a=Math.min(r,o(e/A))}i.fontSize=`calc(${a}px * var(--total-scale-factor))`,i.color=K.makeHexColor(...n),this.data.textAlignment!==null&&(i.textAlign=t[this.data.textAlignment])}_setRequired(e,t){t?e.setAttribute(`required`,!0):e.removeAttribute(`required`),e.setAttribute(`aria-required`,t)}},Oi=class extends Di{constructor(e){let t=e.renderForms||e.data.hasOwnCanvas||!e.data.hasAppearance&&!!e.data.fieldValue;super(e,{isRenderable:t})}setPropertyOnSiblings(e,t,n,r){let i=this.annotationStorage;for(let a of this._getElementsByName(e.name,e.id))a.domElement&&(a.domElement[t]=n),i.setValue(a.id,{[r]:n})}render(){let e=this.annotationStorage,t=this.data.id;this.container.classList.add(`textWidgetAnnotation`);let n=null;if(this.renderForms){let r=e.getValue(t,{value:this.data.fieldValue}),i=r.value||``,a=e.getValue(t,{charLimit:this.data.maxLen}).charLimit;a&&i.length>a&&(i=i.slice(0,a));let o=r.formattedValue||this.data.textContent?.join(`
`)||null;o&&this.data.comb&&(o=o.replaceAll(/\s+/g,``));let s={userValue:i,formattedValue:o,lastCommittedValue:null,commitKey:1,focused:!1};this.data.multiLine?(n=document.createElement(`textarea`),n.textContent=o??i,this.data.doNotScroll&&(n.style.overflowY=`hidden`)):(n=document.createElement(`input`),n.type=this.data.password?`password`:`text`,n.setAttribute(`value`,o??i),this.data.doNotScroll&&(n.style.overflowX=`hidden`)),this.data.hasOwnCanvas&&(n.hidden=!0),bi.add(n),this.contentElement=n,n.setAttribute(`data-element-id`,t),n.disabled=this.data.readOnly,n.name=this.data.fieldName,n.tabIndex=0;let{datetimeFormat:c,datetimeType:l,timeStep:u}=this.data,d=!!l&&this.enableScripting;c&&(n.title=c),this._setRequired(n,this.data.required),a&&(n.maxLength=a),n.addEventListener(`input`,r=>{e.setValue(t,{value:r.target.value}),this.setPropertyOnSiblings(n,`value`,r.target.value,`value`),s.formattedValue=null}),n.addEventListener(`resetform`,e=>{let t=this.data.defaultFieldValue??``;n.value=s.userValue=t,s.formattedValue=null});let f=e=>{let{formattedValue:t}=s;t!=null&&(e.target.value=t),e.target.scrollLeft=0};if(this.enableScripting&&this.hasJSActions){n.addEventListener(`focus`,e=>{if(s.focused)return;let{target:t}=e;if(d&&(t.type=l,u&&(t.step=u)),s.userValue){let e=s.userValue;if(d)if(l===`time`){let n=new Date(e);t.value=[n.getHours(),n.getMinutes(),n.getSeconds()].map(e=>e.toString().padStart(2,`0`)).join(`:`)}else t.value=new Date(e-xi).toISOString().split(l===`date`?`T`:`.`,1)[0];else t.value=e}s.lastCommittedValue=t.value,s.commitKey=1,this.data.actions?.Focus||(s.focused=!0)}),n.addEventListener(`updatefromsandbox`,n=>{this.showElementAndHideCanvas(n.target),this._dispatchEventFromSandbox({value(n){s.userValue=n.detail.value??``,d||e.setValue(t,{value:s.userValue.toString()}),n.target.value=s.userValue},formattedValue(n){let{formattedValue:r}=n.detail;s.formattedValue=r,r!=null&&n.target!==document.activeElement&&(n.target.value=r);let i={formattedValue:r};d&&(i.value=r),e.setValue(t,i)},selRange(e){e.target.setSelectionRange(...e.detail.selRange)},charLimit:n=>{let{charLimit:r}=n.detail,{target:i}=n;if(r===0){i.removeAttribute(`maxLength`);return}i.setAttribute(`maxLength`,r);let a=s.userValue;!a||a.length<=r||(a=a.slice(0,r),i.value=s.userValue=a,e.setValue(t,{value:a}),this.linkService.eventBus?.dispatch(`dispatcheventinsandbox`,{source:this,detail:{id:t,name:`Keystroke`,value:a,willCommit:!0,commitKey:1,selStart:i.selectionStart,selEnd:i.selectionEnd}}))}},n)}),n.addEventListener(`keydown`,e=>{s.commitKey=1;let n=-1;if(e.key===`Escape`?n=0:e.key===`Enter`&&!this.data.multiLine?n=2:e.key===`Tab`&&(s.commitKey=3),n===-1)return;let{value:r}=e.target;s.lastCommittedValue!==r&&(s.lastCommittedValue=r,s.userValue=r,this.linkService.eventBus?.dispatch(`dispatcheventinsandbox`,{source:this,detail:{id:t,name:`Keystroke`,value:r,willCommit:!0,commitKey:n,selStart:e.target.selectionStart,selEnd:e.target.selectionEnd}}))});let r=f;f=null,n.addEventListener(`blur`,e=>{if(!s.focused||!e.relatedTarget)return;this.data.actions?.Blur||(s.focused=!1);let{target:n}=e,{value:i}=n;if(d){if(i&&l===`time`){let e=i.split(`:`).map(e=>parseInt(e,10));i=new Date(2e3,0,1,e[0],e[1],e[2]||0).valueOf(),n.step=``}else i.includes(`T`)||(i=`${i}T00:00`),i=new Date(i).valueOf();n.type=`text`}s.userValue=i,s.lastCommittedValue!==i&&this.linkService.eventBus?.dispatch(`dispatcheventinsandbox`,{source:this,detail:{id:t,name:`Keystroke`,value:i,willCommit:!0,commitKey:s.commitKey,selStart:e.target.selectionStart,selEnd:e.target.selectionEnd}}),r(e)}),this.data.actions?.Keystroke&&n.addEventListener(`beforeinput`,e=>{s.lastCommittedValue=null;let{data:n,target:r}=e,{value:i,selectionStart:a,selectionEnd:o}=r,c=a,l=o;switch(e.inputType){case`deleteWordBackward`:{let e=i.substring(0,a).match(/\w*\W*$/);e&&(c-=e[0].length);break}case`deleteWordForward`:{let e=i.substring(a).match(/^\W*\w*/);e&&(l+=e[0].length);break}case`deleteContentBackward`:a===o&&--c;break;case`deleteContentForward`:a===o&&(l+=1);break}e.preventDefault(),this.linkService.eventBus?.dispatch(`dispatcheventinsandbox`,{source:this,detail:{id:t,name:`Keystroke`,value:i,change:n||``,willCommit:!1,selStart:c,selEnd:l}})}),this._setEventListeners(n,s,[[`focus`,`Focus`],[`blur`,`Blur`],[`mousedown`,`Mouse Down`],[`mouseenter`,`Mouse Enter`],[`mouseleave`,`Mouse Exit`],[`mouseup`,`Mouse Up`]],e=>e.target.value)}if(f&&n.addEventListener(`blur`,f),this.data.comb){let e=(this.data.rect[2]-this.data.rect[0])/a;n.classList.add(`comb`),n.style.letterSpacing=`calc(${e}px * var(--total-scale-factor) - 1ch)`}}else n=document.createElement(`div`),n.textContent=this.data.fieldValue,n.style.verticalAlign=`middle`,n.style.display=`table-cell`,this.data.hasOwnCanvas&&(n.hidden=!0);return this._setTextStyle(n),this._setBackgroundColor(n),this._setDefaultPropertiesFromJS(n),this.container.append(n),this.container}},ki=class extends Di{constructor(e){super(e,{isRenderable:!!e.data.hasOwnCanvas})}},Ai=class extends Di{constructor(e){super(e,{isRenderable:e.renderForms})}render(){let e=this.annotationStorage,t=this.data,n=t.id,r=e.getValue(n,{value:t.exportValue===t.fieldValue}).value;typeof r==`string`&&(r=r!==`Off`,e.setValue(n,{value:r})),this.container.classList.add(`buttonWidgetAnnotation`,`checkBox`);let i=document.createElement(`input`);return bi.add(i),i.setAttribute(`data-element-id`,n),i.disabled=t.readOnly,this._setRequired(i,this.data.required),i.type=`checkbox`,i.name=t.fieldName,r&&i.setAttribute(`checked`,!0),i.setAttribute(`exportValue`,t.exportValue),i.tabIndex=0,i.addEventListener(`change`,r=>{let{name:i,checked:a}=r.target;for(let r of this._getElementsByName(i,n)){let n=a&&r.exportValue===t.exportValue;r.domElement&&(r.domElement.checked=n),e.setValue(r.id,{value:n})}e.setValue(n,{value:a})}),i.addEventListener(`resetform`,e=>{let n=t.defaultFieldValue||`Off`;e.target.checked=n===t.exportValue}),this.enableScripting&&this.hasJSActions&&(i.addEventListener(`updatefromsandbox`,t=>{this._dispatchEventFromSandbox({value(t){t.target.checked=t.detail.value!==`Off`,e.setValue(n,{value:t.target.checked})}},t)}),this._setEventListeners(i,null,[[`change`,`Validate`],[`change`,`Action`],[`focus`,`Focus`],[`blur`,`Blur`],[`mousedown`,`Mouse Down`],[`mouseenter`,`Mouse Enter`],[`mouseleave`,`Mouse Exit`],[`mouseup`,`Mouse Up`]],e=>e.target.checked)),this._setBackgroundColor(i),this._setDefaultPropertiesFromJS(i),this.container.append(i),this.container}},ji=class extends Di{constructor(e){super(e,{isRenderable:e.renderForms})}render(){this.container.classList.add(`buttonWidgetAnnotation`,`radioButton`);let e=this.annotationStorage,t=this.data,n=t.id,r=e.getValue(n,{value:t.fieldValue===t.buttonValue}).value;if(typeof r==`string`&&(r=r!==t.buttonValue,e.setValue(n,{value:r})),r)for(let r of this._getElementsByName(t.fieldName,n))e.setValue(r.id,{value:!1});let i=document.createElement(`input`);if(bi.add(i),i.setAttribute(`data-element-id`,n),i.disabled=t.readOnly,this._setRequired(i,this.data.required),i.type=`radio`,i.name=t.fieldName,r&&i.setAttribute(`checked`,!0),i.tabIndex=0,i.addEventListener(`change`,t=>{let{name:r,checked:i}=t.target;for(let t of this._getElementsByName(r,n))e.setValue(t.id,{value:!1});e.setValue(n,{value:i})}),i.addEventListener(`resetform`,e=>{let n=t.defaultFieldValue;e.target.checked=n!=null&&n===t.buttonValue}),this.enableScripting&&this.hasJSActions){let r=t.buttonValue;i.addEventListener(`updatefromsandbox`,t=>{this._dispatchEventFromSandbox({value:t=>{let i=r===t.detail.value;for(let r of this._getElementsByName(t.target.name)){let t=i&&r.id===n;r.domElement&&(r.domElement.checked=t),e.setValue(r.id,{value:t})}}},t)}),this._setEventListeners(i,null,[[`change`,`Validate`],[`change`,`Action`],[`focus`,`Focus`],[`blur`,`Blur`],[`mousedown`,`Mouse Down`],[`mouseenter`,`Mouse Enter`],[`mouseleave`,`Mouse Exit`],[`mouseup`,`Mouse Up`]],e=>e.target.checked)}return this._setBackgroundColor(i),this._setDefaultPropertiesFromJS(i),this.container.append(i),this.container}},Mi=class extends Ti{constructor(e){super(e,{ignoreBorder:e.data.hasAppearance})}render(){let e=super.render();e.classList.add(`buttonWidgetAnnotation`,`pushButton`);let t=e.lastChild;return this.enableScripting&&this.hasJSActions&&t&&(this._setDefaultPropertiesFromJS(t),t.addEventListener(`updatefromsandbox`,e=>{this._dispatchEventFromSandbox({},e)})),e}},Ni=class extends Di{constructor(e){super(e,{isRenderable:e.renderForms})}render(){this.container.classList.add(`choiceWidgetAnnotation`);let e=this.annotationStorage,t=this.data.id,n=e.getValue(t,{value:this.data.fieldValue}),r=document.createElement(`select`);bi.add(r),r.setAttribute(`data-element-id`,t),r.disabled=this.data.readOnly,this._setRequired(r,this.data.required),r.name=this.data.fieldName,r.tabIndex=0;let i=this.data.combo&&this.data.options.length>0;this.data.combo||(r.size=this.data.options.length,this.data.multiSelect&&(r.multiple=!0)),r.addEventListener(`resetform`,e=>{let t=this.data.defaultFieldValue;for(let e of r.options)e.selected=e.value===t});let a=(e,t)=>{let n=t.replaceAll(` `,`\xA0`);e.textContent=n,n!==t&&e.setAttribute(`display-value`,t)};for(let e of this.data.options){let t=document.createElement(`option`);a(t,e.displayValue),t.value=e.exportValue,n.value.includes(e.exportValue)&&(t.setAttribute(`selected`,!0),i=!1),r.append(t)}let o=null;if(i){let e=document.createElement(`option`);e.value=` `,e.setAttribute(`hidden`,!0),e.setAttribute(`selected`,!0),r.prepend(e),o=()=>{e.remove(),r.removeEventListener(`input`,o),o=null},r.addEventListener(`input`,o)}let s=e=>{let t=e?`value`:`textContent`,{options:n,multiple:i}=r;return i?Array.prototype.filter.call(n,e=>e.selected).map(e=>e[t]):n.selectedIndex===-1?null:n[n.selectedIndex][t]},c=s(!1),l=e=>{let t=e.target.options;return Array.prototype.map.call(t,e=>({displayValue:e.getAttribute(`display-value`)||e.textContent,exportValue:e.value}))};return this.enableScripting&&this.hasJSActions?(r.addEventListener(`updatefromsandbox`,n=>{this._dispatchEventFromSandbox({value(n){o?.();let i=n.detail.value,a=new Set(Array.isArray(i)?i:[i]);for(let e of r.options)e.selected=a.has(e.value);e.setValue(t,{value:s(!0)}),c=s(!1)},multipleSelection(e){r.multiple=!0},remove(n){let i=r.options,a=n.detail.remove;i[a].selected=!1,r.remove(a),i.length>0&&Array.prototype.findIndex.call(i,e=>e.selected)===-1&&(i[0].selected=!0),e.setValue(t,{value:s(!0),items:l(n)}),c=s(!1)},clear(n){for(;r.length!==0;)r.remove(0);e.setValue(t,{value:null,items:[]}),c=s(!1)},insert(n){let{index:i,displayValue:o,exportValue:u}=n.detail.insert,d=r.children[i],f=document.createElement(`option`);a(f,o),f.value=u,d?d.before(f):r.append(f),e.setValue(t,{value:s(!0),items:l(n)}),c=s(!1)},items(n){let{items:i}=n.detail;for(;r.length!==0;)r.remove(0);for(let e of i){let{displayValue:t,exportValue:n}=e,i=document.createElement(`option`);a(i,t),i.value=n,r.append(i)}r.options.length>0&&(r.options[0].selected=!0),e.setValue(t,{value:s(!0),items:l(n)}),c=s(!1)},indices(n){let r=new Set(n.detail.indices);for(let e of n.target.options)e.selected=r.has(e.index);e.setValue(t,{value:s(!0)}),c=s(!1)},editable(e){e.target.disabled=!e.detail.editable}},n)}),r.addEventListener(`input`,n=>{let r=s(!0),i=s(!1);e.setValue(t,{value:r}),n.preventDefault(),this.linkService.eventBus?.dispatch(`dispatcheventinsandbox`,{source:this,detail:{id:t,name:`Keystroke`,value:c,change:i,changeEx:r,willCommit:!1,commitKey:1,keyDown:!1}})}),this._setEventListeners(r,null,[[`focus`,`Focus`],[`blur`,`Blur`],[`mousedown`,`Mouse Down`],[`mouseenter`,`Mouse Enter`],[`mouseleave`,`Mouse Exit`],[`mouseup`,`Mouse Up`],[`input`,`Action`],[`input`,`Validate`]],e=>e.target.value)):r.addEventListener(`input`,function(n){e.setValue(t,{value:s(!0)})}),this.data.combo&&this._setTextStyle(r),this._setBackgroundColor(r),this._setDefaultPropertiesFromJS(r),this.container.append(r),this.container}},Pi=class extends Ci{constructor(e){let{data:t,elements:n,parent:r}=e,i=!!r._commentManager;if(super(e,{isRenderable:!i&&Ci._hasPopupData(t)}),this.elements=n,i&&Ci._hasPopupData(t)){let e=this.popup=this.#e();for(let t of n)t.popup=e}else this.popup=null}#e(){return new Fi({container:this.container,color:this.data.color,titleObj:this.data.titleObj,modificationDate:this.data.modificationDate||this.data.creationDate,contentsObj:this.data.contentsObj,richText:this.data.richText,rect:this.data.rect,parentRect:this.data.parentRect||null,parent:this.parent,elements:this.elements,open:this.data.open,commentManager:this.parent._commentManager})}render(){let{container:e}=this;e.classList.add(`popupAnnotation`),e.role=`comment`;let t=this.popup=this.#e(),n=[];for(let e of this.elements)e.popup=t,e.container.ariaHasPopup=`dialog`,n.push(e.data.id),e.addHighlightArea();return this.container.setAttribute(`aria-controls`,n.map(e=>`${P}${e}`).join(`,`)),this.container}},Fi=class{#e=null;#t=this.#P.bind(this);#n=this.#R.bind(this);#r=this.#L.bind(this);#i=this.#I.bind(this);#a=null;#o=null;#s=null;#c=null;#l=null;#u=null;#d=null;#f=!1;#p=null;#m=null;#h=null;#g=null;#_=null;#v=null;#y=null;#b=null;#x=null;#S=null;#C=!1;#w=null;#T=null;constructor({container:e,color:t,elements:n,titleObj:r,modificationDate:i,contentsObj:a,richText:o,parent:s,rect:c,parentRect:l,open:u,commentManager:d=null}){this.#o=e,this.#x=r,this.#s=a,this.#b=o,this.#u=s,this.#a=t,this.#y=c,this.#d=l,this.#l=n,this.#e=d,this.#w=n[0],this.#c=Ke.toDateObject(i),this.trigger=n.flatMap(e=>e.getElementsToTriggerPopup()),d||(this.#E(),this.#o.hidden=!0,u&&this.#I())}#E(){if(this.#m)return;this.#m=new AbortController;let{signal:e}=this.#m;for(let t of this.trigger)t.addEventListener(`click`,this.#i,{signal:e}),t.addEventListener(`pointerenter`,this.#r,{signal:e}),t.addEventListener(`pointerleave`,this.#n,{signal:e}),t.classList.add(`popupTriggerArea`);for(let t of this.#l)t.container?.addEventListener(`keydown`,this.#t,{signal:e})}#D(){let e=this.#l.find(e=>e.hasCommentButton);e&&(this.#_=e._normalizePoint(e.commentButtonPosition))}renderCommentButton(){if(this.#g){this.#g.parentNode||this.#w.container.after(this.#g);return}if(this.#_||this.#D(),!this.#_)return;let{signal:e}=this.#m=new AbortController,t=this.#w.hasOwnCommentButton,n=()=>{this.#e.toggleCommentPopup(this,!0,void 0,!t)},r=()=>{this.#e.toggleCommentPopup(this,!1,!0,!t)},i=()=>{this.#e.toggleCommentPopup(this,!1,!1)};if(t){this.#g=this.#w.container;for(let t of this.trigger)t.ariaHasPopup=`dialog`,t.ariaControls=`commentPopup`,t.addEventListener(`keydown`,this.#t,{signal:e}),t.addEventListener(`click`,n,{signal:e}),t.addEventListener(`pointerenter`,r,{signal:e}),t.addEventListener(`pointerleave`,i,{signal:e}),t.classList.add(`popupTriggerArea`)}else{let t=this.#g=document.createElement(`button`);t.className=`annotationCommentButton`;let a=this.#w.container;t.style.zIndex=parseInt(a.style.zIndex,10)+1,t.tabIndex=0,t.ariaHasPopup=`dialog`,t.ariaControls=`commentPopup`,t.setAttribute(`data-l10n-id`,`pdfjs-show-comment-button`),this.#k(),this.#O(),t.addEventListener(`keydown`,this.#t,{signal:e}),t.addEventListener(`click`,n,{signal:e}),t.addEventListener(`pointerenter`,r,{signal:e}),t.addEventListener(`pointerleave`,i,{signal:e}),a.after(t)}}#O(){if(this.#w.extraPopupElement&&!this.#w.editor)return;this.#g||this.renderCommentButton();let[e,t]=this.#_,{style:n}=this.#g;n.left=`calc(${e}%)`,n.top=`calc(${t}% - var(--comment-button-dim))`}#k(){this.#w.extraPopupElement||(this.#g||this.renderCommentButton(),this.#g.style.backgroundColor=this.commentButtonColor||``)}get commentButtonColor(){let{color:e,opacity:t}=this.#w.commentData;return e?this.#u._commentManager.makeCommentColor(e,t):null}focusCommentButton(){setTimeout(()=>{this.#g?.focus()},0)}getData(){let{richText:e,color:t,opacity:n,creationDate:r,modificationDate:i}=this.#w.commentData;return{contentsObj:{str:this.comment},richText:e,color:t,opacity:n,creationDate:r,modificationDate:i}}get elementBeforePopup(){return this.#g}get comment(){return this.#T||=this.#w.commentText,this.#T}set comment(e){e!==this.comment&&(this.#w.commentText=this.#T=e)}focus(){this.#w.container?.focus()}get parentBoundingClientRect(){return this.#w.layer.getBoundingClientRect()}setCommentButtonStates({selected:e,hasPopup:t}){this.#g&&(this.#g.classList.toggle(`selected`,e),this.#g.ariaExpanded=t)}setSelectedCommentButton(e){this.#g.classList.toggle(`selected`,e)}get commentPopupPosition(){if(this.#v)return this.#v;let{x:e,y:t,height:n}=this.#g.getBoundingClientRect(),{x:r,y:i,width:a,height:o}=this.#w.layer.getBoundingClientRect();return[(e-r)/a,(t+n-i)/o]}set commentPopupPosition(e){this.#v=e}hasDefaultPopupPosition(){return this.#v===null}get commentButtonPosition(){return this.#_}get commentButtonWidth(){return this.#g.getBoundingClientRect().width/this.parentBoundingClientRect.width}editComment(e){let[t,n]=this.#v||this.commentButtonPosition.map(e=>e/100),r=this.parentBoundingClientRect,{x:i,y:a,width:o,height:s}=r;this.#e.showDialog(null,this,i+t*o,a+n*s,{...e,parentDimensions:r})}render(){if(this.#p)return;let e=this.#p=document.createElement(`div`);if(e.className=`popup`,this.#a){let t=e.style.outlineColor=K.makeHexColor(...this.#a);e.style.backgroundColor=`color-mix(in srgb, ${t} 30%, white)`}let t=document.createElement(`span`);if(t.className=`header`,this.#x?.str){let e=document.createElement(`span`);e.className=`title`,t.append(e),{dir:e.dir,str:e.textContent}=this.#x}if(e.append(t),this.#c){let e=document.createElement(`time`);e.className=`popupDate`,e.setAttribute(`data-l10n-id`,`pdfjs-annotation-date-time-string`),e.setAttribute(`data-l10n-args`,JSON.stringify({dateObj:this.#c.valueOf()})),e.dateTime=this.#c.toISOString(),t.append(e)}ut({html:this.#A||this.#s.str,dir:this.#s?.dir,className:`popupContent`},e),this.#o.append(e)}get#A(){let e=this.#b,t=this.#s;return e?.str&&(!t?.str||t.str===e.str)&&this.#b.html||null}get#j(){return this.#A?.attributes?.style?.fontSize||0}get#M(){return this.#A?.attributes?.style?.color||null}#N(e){let t=[],n={str:e,html:{name:`div`,attributes:{dir:`auto`},children:[{name:`p`,children:t}]}},r={style:{color:this.#M,fontSize:this.#j?`calc(${this.#j}px * var(--total-scale-factor))`:``}};for(let n of e.split(`
`))t.push({name:`span`,value:n,attributes:r});return n}#P(e){e.altKey||e.shiftKey||e.ctrlKey||e.metaKey||(e.key===`Enter`||e.key===`Escape`&&this.#f)&&this.#I()}updateEdited({rect:e,popup:t,deleted:n}){if(this.#e){n?(this.remove(),this.#T=null):t&&(t.deleted?this.remove():(this.#k(),this.#T=t.text)),e&&(this.#_=null,this.#D(),this.#O());return}if(n||t?.deleted){this.remove();return}this.#E(),this.#S||={contentsObj:this.#s,richText:this.#b},e&&(this.#h=null),t&&t.text&&(this.#b=this.#N(t.text),this.#c=Ke.toDateObject(t.date),this.#s=null),this.#p?.remove(),this.#p=null}resetEdited(){this.#S&&({contentsObj:this.#s,richText:this.#b}=this.#S,this.#S=null,this.#p?.remove(),this.#p=null,this.#h=null)}remove(){if(this.#m?.abort(),this.#m=null,this.#p?.remove(),this.#p=null,this.#C=!1,this.#f=!1,this.#g?.remove(),this.#g=null,this.trigger)for(let e of this.trigger)e.classList.remove(`popupTriggerArea`)}#F(){if(this.#h!==null)return;let{page:{view:e},viewport:{rawDims:{pageWidth:t,pageHeight:n,pageX:r,pageY:i}}}=this.#u,a=!!this.#d,o=a?this.#d:this.#y;for(let e of this.#l)if(!o||K.intersect(e.data.rect,o)!==null){o=e.data.rect,a=!0;break}let s=K.normalizeRect([o[0],e[3]-o[1]+e[1],o[2],e[3]-o[3]+e[1]]),c=a?o[2]-o[0]+5:0,l=s[0]+c,u=s[1];this.#h=[100*(l-r)/t,100*(u-i)/n];let{style:d}=this.#o;d.left=`${this.#h[0]}%`,d.top=`${this.#h[1]}%`}#I(){if(this.#e){this.#e.toggleCommentPopup(this,!1);return}this.#f=!this.#f,this.#f?(this.#L(),this.#o.addEventListener(`click`,this.#i),this.#o.addEventListener(`keydown`,this.#t)):(this.#R(),this.#o.removeEventListener(`click`,this.#i),this.#o.removeEventListener(`keydown`,this.#t))}#L(){this.#p||this.render(),this.isVisible?this.#f&&this.#o.classList.add(`focused`):(this.#F(),this.#o.hidden=!1,this.#o.style.zIndex=parseInt(this.#o.style.zIndex,10)+1e3)}#R(){this.#o.classList.remove(`focused`),!(this.#f||!this.isVisible)&&(this.#o.hidden=!0,this.#o.style.zIndex=parseInt(this.#o.style.zIndex,10)-1e3)}forceHide(){this.#C=this.isVisible,this.#C&&(this.#o.hidden=!0)}maybeShow(){this.#e||(this.#E(),this.#C&&(this.#p||this.#L(),this.#C=!1,this.#o.hidden=!1))}get isVisible(){return this.#e?!1:this.#o.hidden===!1}},Ii=class extends Ci{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0}),this.textContent=e.data.textContent,this.textPosition=e.data.textPosition,this.annotationEditorType=I.FREETEXT}render(){if(this.container.classList.add(`freeTextAnnotation`),this.textContent){let e=this.contentElement=document.createElement(`div`);e.classList.add(`annotationTextContent`),e.setAttribute(`role`,`comment`);for(let t of this.textContent){let n=document.createElement(`span`);n.textContent=t,e.append(n)}this.container.append(e)}return!this.data.popupRef&&this.hasPopupData&&(this.hasOwnCommentButton=!0,this._createPopup()),this._editOnDoubleClick(),this.container}},Li=class extends Ci{#e=null;constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0})}render(){this.container.classList.add(`lineAnnotation`);let{data:e,width:t,height:n}=this,r=this.svgFactory.create(t,n,!0),i=this.#e=this.svgFactory.createElement(`svg:line`);return i.setAttribute(`x1`,e.rect[2]-e.lineCoordinates[0]),i.setAttribute(`y1`,e.rect[3]-e.lineCoordinates[1]),i.setAttribute(`x2`,e.rect[2]-e.lineCoordinates[2]),i.setAttribute(`y2`,e.rect[3]-e.lineCoordinates[3]),i.setAttribute(`stroke-width`,e.borderStyle.width||1),i.setAttribute(`stroke`,`transparent`),i.setAttribute(`fill`,`transparent`),r.append(i),this.container.append(r),!e.popupRef&&this.hasPopupData&&(this.hasOwnCommentButton=!0,this._createPopup()),this.container}getElementsToTriggerPopup(){return this.#e}addHighlightArea(){this.container.classList.add(`highlightArea`)}},Ri=class extends Ci{#e=null;constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0})}render(){this.container.classList.add(`squareAnnotation`);let{data:e,width:t,height:n}=this,r=this.svgFactory.create(t,n,!0),i=e.borderStyle.width,a=this.#e=this.svgFactory.createElement(`svg:rect`);return a.setAttribute(`x`,i/2),a.setAttribute(`y`,i/2),a.setAttribute(`width`,t-i),a.setAttribute(`height`,n-i),a.setAttribute(`stroke-width`,i||1),a.setAttribute(`stroke`,`transparent`),a.setAttribute(`fill`,`transparent`),r.append(a),this.container.append(r),!e.popupRef&&this.hasPopupData&&(this.hasOwnCommentButton=!0,this._createPopup()),this.container}getElementsToTriggerPopup(){return this.#e}addHighlightArea(){this.container.classList.add(`highlightArea`)}},zi=class extends Ci{#e=null;constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0})}render(){this.container.classList.add(`circleAnnotation`);let{data:e,width:t,height:n}=this,r=this.svgFactory.create(t,n,!0),i=e.borderStyle.width,a=this.#e=this.svgFactory.createElement(`svg:ellipse`);return a.setAttribute(`cx`,t/2),a.setAttribute(`cy`,n/2),a.setAttribute(`rx`,t/2-i/2),a.setAttribute(`ry`,n/2-i/2),a.setAttribute(`stroke-width`,i||1),a.setAttribute(`stroke`,`transparent`),a.setAttribute(`fill`,`transparent`),r.append(a),this.container.append(r),!e.popupRef&&this.hasPopupData&&(this.hasOwnCommentButton=!0,this._createPopup()),this.container}getElementsToTriggerPopup(){return this.#e}addHighlightArea(){this.container.classList.add(`highlightArea`)}},Bi=class extends Ci{#e=null;constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0}),this.containerClassName=`polylineAnnotation`,this.svgElementName=`svg:polyline`}render(){this.container.classList.add(this.containerClassName);let{data:{rect:e,vertices:t,borderStyle:n,popupRef:r},width:i,height:a}=this;if(!t)return this.container;let o=this.svgFactory.create(i,a,!0),s=[];for(let n=0,r=t.length;n<r;n+=2){let r=t[n]-e[0],i=e[3]-t[n+1];s.push(`${r},${i}`)}s=s.join(` `);let c=this.#e=this.svgFactory.createElement(this.svgElementName);return c.setAttribute(`points`,s),c.setAttribute(`stroke-width`,n.width||1),c.setAttribute(`stroke`,`transparent`),c.setAttribute(`fill`,`transparent`),o.append(c),this.container.append(o),!r&&this.hasPopupData&&(this.hasOwnCommentButton=!0,this._createPopup()),this.container}getElementsToTriggerPopup(){return this.#e}addHighlightArea(){this.container.classList.add(`highlightArea`)}},Vi=class extends Bi{constructor(e){super(e),this.containerClassName=`polygonAnnotation`,this.svgElementName=`svg:polygon`}},Hi=class extends Ci{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0})}render(){return this.container.classList.add(`caretAnnotation`),!this.data.popupRef&&this.hasPopupData&&(this.hasOwnCommentButton=!0,this._createPopup()),this.container}},Ui=class extends Ci{#e=null;#t=[];constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0}),this.containerClassName=`inkAnnotation`,this.svgElementName=`svg:polyline`,this.annotationEditorType=this.data.it===`InkHighlight`?I.HIGHLIGHT:I.INK}#n(e,t){switch(e){case 90:return{transform:`rotate(90) translate(${-t[0]},${t[1]}) scale(1,-1)`,width:t[3]-t[1],height:t[2]-t[0]};case 180:return{transform:`rotate(180) translate(${-t[2]},${t[1]}) scale(1,-1)`,width:t[2]-t[0],height:t[3]-t[1]};case 270:return{transform:`rotate(270) translate(${-t[2]},${t[3]}) scale(1,-1)`,width:t[3]-t[1],height:t[2]-t[0]};default:return{transform:`translate(${-t[0]},${t[3]}) scale(1,-1)`,width:t[2]-t[0],height:t[3]-t[1]}}}render(){this.container.classList.add(this.containerClassName);let{data:{rect:e,rotation:t,inkLists:n,borderStyle:r,popupRef:i}}=this,{transform:a,width:o,height:s}=this.#n(t,e),c=this.svgFactory.create(o,s,!0),l=this.#e=this.svgFactory.createElement(`svg:g`);c.append(l),l.setAttribute(`stroke-width`,r.width||1),l.setAttribute(`stroke-linecap`,`round`),l.setAttribute(`stroke-linejoin`,`round`),l.setAttribute(`stroke-miterlimit`,10),l.setAttribute(`stroke`,`transparent`),l.setAttribute(`fill`,`transparent`),l.setAttribute(`transform`,a);for(let e=0,t=n.length;e<t;e++){let t=this.svgFactory.createElement(this.svgElementName);this.#t.push(t),t.setAttribute(`points`,n[e].join(`,`)),l.append(t)}return!i&&this.hasPopupData&&(this.hasOwnCommentButton=!0,this._createPopup()),this.container.append(c),this._editOnDoubleClick(),this.container}updateEdited(e){super.updateEdited(e);let{thickness:t,points:n,rect:r}=e,i=this.#e;if(t>=0&&i.setAttribute(`stroke-width`,t||1),n)for(let e=0,t=this.#t.length;e<t;e++)this.#t[e].setAttribute(`points`,n[e].join(`,`));if(r){let{transform:e,width:t,height:n}=this.#n(this.data.rotation,r);i.parentElement.setAttribute(`viewBox`,`0 0 ${t} ${n}`),i.setAttribute(`transform`,e)}}getElementsToTriggerPopup(){return this.#t}addHighlightArea(){this.container.classList.add(`highlightArea`)}},Wi=class extends Ci{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0}),this.annotationEditorType=I.HIGHLIGHT}render(){let{data:{overlaidText:e,popupRef:t}}=this;if(!t&&this.hasPopupData&&(this.hasOwnCommentButton=!0,this._createPopup()),this.container.classList.add(`highlightAnnotation`),this._editOnDoubleClick(),e){let t=document.createElement(`mark`);t.classList.add(`overlaidText`),t.textContent=e,this.container.append(t)}return this.container}},Gi=class extends Ci{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0})}render(){let{data:{overlaidText:e,popupRef:t}}=this;if(!t&&this.hasPopupData&&(this.hasOwnCommentButton=!0,this._createPopup()),this.container.classList.add(`underlineAnnotation`),e){let t=document.createElement(`u`);t.classList.add(`overlaidText`),t.textContent=e,this.container.append(t)}return this.container}},Ki=class extends Ci{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0})}render(){let{data:{overlaidText:e,popupRef:t}}=this;if(!t&&this.hasPopupData&&(this.hasOwnCommentButton=!0,this._createPopup()),this.container.classList.add(`squigglyAnnotation`),e){let t=document.createElement(`u`);t.classList.add(`overlaidText`),t.textContent=e,this.container.append(t)}return this.container}},qi=class extends Ci{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0})}render(){let{data:{overlaidText:e,popupRef:t}}=this;if(!t&&this.hasPopupData&&(this.hasOwnCommentButton=!0,this._createPopup()),this.container.classList.add(`strikeoutAnnotation`),e){let t=document.createElement(`s`);t.classList.add(`overlaidText`),t.textContent=e,this.container.append(t)}return this.container}},Ji=class extends Ci{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0}),this.annotationEditorType=I.STAMP}render(){return this.container.classList.add(`stampAnnotation`),this.container.setAttribute(`role`,`img`),!this.data.popupRef&&this.hasPopupData&&(this.hasOwnCommentButton=!0,this._createPopup()),this._editOnDoubleClick(),this.container}},Yi=class extends Ci{#e=null;constructor(e){super(e,{isRenderable:!0});let{file:t}=this.data;this.filename=t.filename,this.content=t.content,this.linkService.eventBus?.dispatch(`fileattachmentannotation`,{source:this,...t})}render(){this.container.classList.add(`fileAttachmentAnnotation`);let{container:e,data:t}=this,n;t.hasAppearance||t.fillAlpha===0?n=document.createElement(`div`):(n=document.createElement(`img`),n.src=`${this.imageResourcesPath}annotation-${/paperclip/i.test(t.name)?`paperclip`:`pushpin`}.svg`,t.fillAlpha&&t.fillAlpha<1&&(n.style=`filter: opacity(${Math.round(t.fillAlpha*100)}%);`)),n.addEventListener(`dblclick`,this.#t.bind(this)),this.#e=n;let{isMac:r}=G.platform;return e.addEventListener(`keydown`,e=>{e.key===`Enter`&&(r?e.metaKey:e.ctrlKey)&&this.#t()}),!t.popupRef&&this.hasPopupData?(this.hasOwnCommentButton=!0,this._createPopup()):n.classList.add(`popupTriggerArea`),e.append(n),e}getElementsToTriggerPopup(){return this.#e}addHighlightArea(){this.container.classList.add(`highlightArea`)}#t(){this.downloadManager?.openOrDownloadData(this.content,this.filename)}},Xi=class e{#e=null;#t=null;#n=null;#r=new Map;#i=null;#a=null;#o=[];#s=!1;zIndex=0;constructor({div:e,accessibilityManager:t,annotationCanvasMap:n,annotationEditorUIManager:r,page:i,viewport:a,structTreeLayer:o,commentManager:s,linkService:c,annotationStorage:l}){this.div=e,this.#e=t,this.#t=n,this.#i=o||null,this.#a=c||null,this.#n=l||new Mt,this.page=i,this.viewport=a,this._annotationEditorUIManager=r,this._commentManager=s||null}hasEditableAnnotations(){return this.#r.size>0}async render(e){let{annotations:t,optionalContentConfig:n}=e,r=this.div;Qe(r,this.viewport);let i=new Map,a=[],o={data:null,layer:r,linkService:this.#a,downloadManager:e.downloadManager,imageResourcesPath:e.imageResourcesPath||``,renderForms:e.renderForms!==!1,svgFactory:new vi,annotationStorage:this.#n,enableComment:e.enableComment===!0,enableScripting:e.enableScripting===!0,hasJSActions:e.hasJSActions,fieldObjects:e.fieldObjects,parent:this,elements:null};for(let e of t){if(e.noHTML)continue;let t=e.annotationType===B.POPUP;if(t){let t=i.get(e.id);if(!t)continue;if(!this._commentManager){a.push(e);continue}o.elements=t}else if(e.rect[2]===e.rect[0]||e.rect[3]===e.rect[1])continue;o.data=e;let r=Si.create(o);if(!r.isRenderable)continue;t||(this.#o.push(r),e.popupRef&&i.getOrInsertComputed(e.popupRef,ke).push(r));let s=r.render();e.hidden&&(s.style.visibility=`hidden`),r.updateOC(n),r._isEditable&&(this.#r.set(r.data.id,r),this._annotationEditorUIManager?.renderAnnotationElement(r))}await this.#c();for(let e of a){let t=o.elements=i.get(e.id);o.data=e;let n=Si.create(o);if(!n.isRenderable)continue;let r=n.render();n.contentElement.id=`${P}${e.id}`,e.hidden&&(r.style.visibility=`hidden`),t.at(-1).container.after(r)}this.#l()}async#c(){if(this.#o.length===0)return;this.div.replaceChildren();let e=[];if(!this.#s){this.#s=!0;for(let{contentElement:t,data:{id:n}}of this.#o){let r=t.id=`${P}${n}`;e.push(this.#i?.getAriaAttributes(r).then(e=>{if(e)for(let[n,r]of e)t.setAttribute(n,r)}))}}this.#o.sort(({data:{rect:[e,t,n,r]}},{data:{rect:[i,a,o,s]}})=>{if(e===n&&t===r)return 1;if(i===o&&a===s)return-1;let c=r,l=t,u=(t+r)/2,d=s,f=a,p=(a+s)/2;return u>=d&&p<=l?-1:p>=c&&u<=f?1:(e+n)/2-(i+o)/2});let t=document.createDocumentFragment();for(let e of this.#o)t.append(e.container),this._commentManager?(e.extraPopupElement?.popup||e.popup)?.renderCommentButton():e.extraPopupElement&&t.append(e.extraPopupElement.render());if(this.div.append(t),await Promise.all(e),this.#e)for(let e of this.#o)this.#e.addPointerInTextLayer(e.contentElement,!1)}async addLinkAnnotations(t){let n={data:null,layer:this.div,linkService:this.#a,svgFactory:new vi,parent:this};for(let r of t){r.borderStyle||=e._defaultBorderStyle,n.data=r;let t=Si.create(n);t.isRenderable&&(t.render(),t.contentElement.id=`${P}${r.id}`,this.#o.push(t))}await this.#c()}update({viewport:e,optionalContentConfig:t}){let n=this.div;this.viewport=e,Qe(n,{rotation:e.rotation});for(let e of this.#o)e.updateOC(t);this.#l(),n.hidden=!1}#l(){if(!this.#t)return;let e=this.div;for(let[t,n]of this.#t){let r=e.querySelector(`[data-annotation-id="${t}"]`);if(!r)continue;n.className=`annotationContent`;let{firstChild:i}=r;i?i.nodeName===`CANVAS`?i.replaceWith(n):i.classList.contains(`annotationContent`)?i.after(n):i.before(n):r.append(n);let a=this.#r.get(t);a&&(a._hasNoCanvas?(this._annotationEditorUIManager?.setMissingCanvas(t,r.id,n),a._hasNoCanvas=!1):a.canvas=n)}this.#t.clear()}getEditableAnnotations(){return this.#r.values()}getEditableAnnotation(e){return this.#r.get(e)}addFakeAnnotation(e){let{div:t}=this,{id:n,rotation:r}=e,i=new wi({data:{id:n,rect:e.getPDFRect(),rotation:r},editor:e,layer:t,parent:this,enableComment:!!this._commentManager,linkService:this.#a,annotationStorage:this.#n});return i.render(),i.contentElement.id=`${P}${n}`,i.createOrUpdatePopup(),this.#o.push(i),i}removeAnnotation(e){let t=this.#o.findIndex(t=>t.data.id===e);if(t<0)return;let[n]=this.#o.splice(t,1);this.#e?.removePointerInTextLayer(n.contentElement)}updateFakeAnnotations(e){if(e.length!==0){for(let t of e)t.updateFakeAnnotationElement(this);this.#c()}}togglePointerEvents(e=!1){this.div.classList.toggle(`disabled`,!e)}static get _defaultBorderStyle(){return W(this,`_defaultBorderStyle`,Object.freeze({width:1,rawWidth:1,style:te.SOLID,dashArray:[3],horizontalCornerRadius:0,verticalCornerRadius:0}))}},Zi=/\r\n?|\n/g,Qi=class e extends J{#e=``;#t=`${this.id}-editor`;#n=null;#r;_colorPicker=null;static _freeTextDefaultContent=``;static _internalPadding=0;static _defaultColor=null;static _defaultFontSize=10;static get _keyboardManager(){let t=e.prototype,n=e=>e.isEmpty(),r=St.TRANSLATE_SMALL,i=St.TRANSLATE_BIG;return W(this,`_keyboardManager`,new bt([[[`ctrl+s`,`mac+meta+s`,`ctrl+p`,`mac+meta+p`],t.commitOrRemove,{bubbles:!0}],[[`ctrl+Enter`,`mac+meta+Enter`,`Escape`,`mac+Escape`],t.commitOrRemove],[[`ArrowLeft`,`mac+ArrowLeft`],t._translateEmpty,{args:[-r,0],checker:n}],[[`ctrl+ArrowLeft`,`mac+shift+ArrowLeft`],t._translateEmpty,{args:[-i,0],checker:n}],[[`ArrowRight`,`mac+ArrowRight`],t._translateEmpty,{args:[r,0],checker:n}],[[`ctrl+ArrowRight`,`mac+shift+ArrowRight`],t._translateEmpty,{args:[i,0],checker:n}],[[`ArrowUp`,`mac+ArrowUp`],t._translateEmpty,{args:[0,-r],checker:n}],[[`ctrl+ArrowUp`,`mac+shift+ArrowUp`],t._translateEmpty,{args:[0,-i],checker:n}],[[`ArrowDown`,`mac+ArrowDown`],t._translateEmpty,{args:[0,r],checker:n}],[[`ctrl+ArrowDown`,`mac+shift+ArrowDown`],t._translateEmpty,{args:[0,i],checker:n}]]))}static _type=`freetext`;static _editorType=I.FREETEXT;constructor(t){super({...t,name:`freeTextEditor`}),this.color=t.color||e._defaultColor||J._defaultLineColor,this.#r=t.fontSize||e._defaultFontSize,this.annotationElementId||this._uiManager.a11yAlert(J._l10nAlert.freetext),this.canAddComment=!1}static initialize(e,t){J.initialize(e,t);let n=getComputedStyle(document.documentElement);this._internalPadding=parseFloat(n.getPropertyValue(`--freetext-padding`))}static updateDefaultParams(t,n){switch(t){case L.FREETEXT_SIZE:e._defaultFontSize=n;break;case L.FREETEXT_COLOR:e._defaultColor=n;break}}updateParams(e,t){switch(e){case L.FREETEXT_SIZE:this.#i(t);break;case L.FREETEXT_COLOR:this.#a(t);break}}static get defaultPropertiesToUpdate(){return[[L.FREETEXT_SIZE,e._defaultFontSize],[L.FREETEXT_COLOR,e._defaultColor||J._defaultLineColor]]}get propertiesToUpdate(){return[[L.FREETEXT_SIZE,this.#r],[L.FREETEXT_COLOR,this.color]]}get toolbarButtons(){return this._colorPicker||=new pi(this),[[`colorPicker`,this._colorPicker]]}get colorType(){return L.FREETEXT_COLOR}#i(e){let t=e=>{this.editorDiv.style.fontSize=`calc(${e}px * var(--total-scale-factor))`,this.translate(0,-(e-this.#r)*this.parentScale),this.#r=e,this.#s()},n=this.#r;this.addCommands({cmd:t.bind(this,e),undo:t.bind(this,n),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:L.FREETEXT_SIZE,overwriteIfSameType:!0,keepUndo:!0})}onUpdatedColor(){this.editorDiv.style.color=this.color,this._colorPicker?.update(this.color),super.onUpdatedColor()}#a(e){let t=e=>{this.color=e,this.onUpdatedColor()},n=this.color;this.addCommands({cmd:t.bind(this,e),undo:t.bind(this,n),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:L.FREETEXT_COLOR,overwriteIfSameType:!0,keepUndo:!0})}_translateEmpty(e,t){this._uiManager.translateSelectedEditors(e,t,!0)}getInitialTranslation(){let t=this.parentScale;return[-e._internalPadding*t,-(e._internalPadding+this.#r)*t]}rebuild(){this.parent&&(super.rebuild(),this.div!==null&&(this.isAttachedToDOM||this.parent.add(this)))}enableEditMode(){if(!super.enableEditMode())return!1;this.overlayDiv.classList.remove(`enabled`),this.editorDiv.contentEditable=!0,this._isDraggable=!1,this.div.removeAttribute(`aria-activedescendant`),this.#n=new AbortController;let e=this._uiManager.combinedSignal(this.#n);return this.editorDiv.addEventListener(`keydown`,this.editorDivKeydown.bind(this),{signal:e}),this.editorDiv.addEventListener(`focus`,this.editorDivFocus.bind(this),{signal:e}),this.editorDiv.addEventListener(`blur`,this.editorDivBlur.bind(this),{signal:e}),this.editorDiv.addEventListener(`input`,this.editorDivInput.bind(this),{signal:e}),this.editorDiv.addEventListener(`paste`,this.editorDivPaste.bind(this),{signal:e}),!0}disableEditMode(){return super.disableEditMode()?(this.overlayDiv.classList.add(`enabled`),this.editorDiv.contentEditable=!1,this.div.setAttribute(`aria-activedescendant`,this.#t),this._isDraggable=!0,this.#n?.abort(),this.#n=null,this.div.focus({preventScroll:!0}),this.isEditing=!1,this.parent.div.classList.add(`freetextEditing`),!0):!1}focusin(e){this._focusEventsAllowed&&(super.focusin(e),e.target!==this.editorDiv&&this.editorDiv.focus())}onceAdded(e){this.width||(this.enableEditMode(),e&&this.editorDiv.focus(),this._initialOptions?.isCentered&&this.center(),this._initialOptions=null)}isEmpty(){return!this.editorDiv||this.editorDiv.innerText.trim()===``}remove(){this.isEditing=!1,this.parent&&(this.parent.setEditingState(!0),this.parent.div.classList.add(`freetextEditing`)),super.remove()}#o(){let t=[];this.editorDiv.normalize();let n=null;for(let r of this.editorDiv.childNodes)n?.nodeType===Node.TEXT_NODE&&r.nodeName===`BR`||(t.push(e.#c(r)),n=r);return t.join(`
`)}#s(){let[e,t]=this.parentDimensions,n;if(this.isAttachedToDOM)n=this.div.getBoundingClientRect();else{let{currentLayer:e,div:t}=this,r=t.style.display,i=t.classList.contains(`hidden`);t.classList.remove(`hidden`),t.style.display=`hidden`,e.div.append(this.div),n=t.getBoundingClientRect(),t.remove(),t.style.display=r,t.classList.toggle(`hidden`,i)}this.rotation%180==this.parentRotation%180?(this.width=n.width/e,this.height=n.height/t):(this.width=n.height/e,this.height=n.width/t),this.fixAndSetPosition()}commit(){if(!this.isInEditMode())return;super.commit(),this.disableEditMode();let e=this.#e,t=this.#e=this.#o().trimEnd();if(e===t)return;let n=e=>{if(this.#e=e,!e){this.remove();return}this.#l(),this._uiManager.rebuild(this),this.#s()};this.addCommands({cmd:()=>{n(t)},undo:()=>{n(e)},mustExec:!1}),this.#s()}shouldGetKeyboardEvents(){return this.isInEditMode()}enterInEditMode(){this.enableEditMode(),this.editorDiv.focus()}keydown(e){e.target===this.div&&e.key===`Enter`&&(this.enterInEditMode(),e.preventDefault())}editorDivKeydown(t){e._keyboardManager.exec(this,t)}editorDivFocus(e){this.isEditing=!0}editorDivBlur(e){this.isEditing=!1}editorDivInput(e){this.parent.div.classList.toggle(`freetextEditing`,this.isEmpty())}disableEditing(){this.editorDiv.setAttribute(`role`,`comment`),this.editorDiv.removeAttribute(`aria-multiline`)}enableEditing(){this.editorDiv.setAttribute(`role`,`textbox`),this.editorDiv.setAttribute(`aria-multiline`,!0)}get canChangeContent(){return!0}render(){if(this.div)return this.div;let e,t;(this._isCopy||this.annotationElementId)&&(e=this.x,t=this.y),super.render(),this.editorDiv=document.createElement(`div`),this.editorDiv.className=`internal`,this.editorDiv.setAttribute(`id`,this.#t),this.editorDiv.setAttribute(`data-l10n-id`,`pdfjs-free-text2`),this.editorDiv.setAttribute(`data-l10n-attrs`,`default-content`),this.enableEditing(),this.editorDiv.contentEditable=!0;let{style:n}=this.editorDiv;if(n.fontSize=`calc(${this.#r}px * var(--total-scale-factor))`,n.color=this.color,this.div.append(this.editorDiv),this.overlayDiv=document.createElement(`div`),this.overlayDiv.classList.add(`overlay`,`enabled`),this.div.append(this.overlayDiv),this._isCopy||this.annotationElementId){let[n,r]=this.parentDimensions;if(this.annotationElementId){let{position:i}=this._initialData,[a,o]=this.getInitialTranslation();[a,o]=this.pageTranslationToScreen(a,o);let[s,c]=this.pageDimensions,[l,u]=this.pageTranslation,d,f;switch(this.rotation){case 0:d=e+(i[0]-l)/s,f=t+this.height-(i[1]-u)/c;break;case 90:d=e+(i[0]-l)/s,f=t-(i[1]-u)/c,[a,o]=[o,-a];break;case 180:d=e-this.width+(i[0]-l)/s,f=t-(i[1]-u)/c,[a,o]=[-a,-o];break;case 270:d=e+(i[0]-l-this.height*c)/s,f=t+(i[1]-u-this.width*s)/c,[a,o]=[-o,a];break}this.setAt(d*n,f*r,a,o)}else this._moveAfterPaste(e,t);this.#l(),this._isDraggable=!0,this.editorDiv.contentEditable=!1}else this._isDraggable=!1,this.editorDiv.contentEditable=!0;return this.div}static#c(e){return(e.nodeType===Node.TEXT_NODE?e.nodeValue:e.innerText).replaceAll(Zi,``)}editorDivPaste(t){let n=t.clipboardData||window.clipboardData,{types:r}=n;if(r.length===1&&r[0]===`text/plain`)return;t.preventDefault();let i=e.#d(n.getData(`text`)||``).replaceAll(Zi,`
`);if(!i)return;let a=window.getSelection();if(!a.rangeCount)return;this.editorDiv.normalize(),a.deleteFromDocument();let o=a.getRangeAt(0);if(!i.includes(`
`)){o.insertNode(document.createTextNode(i)),this.editorDiv.normalize(),a.collapseToStart();return}let{startContainer:s,startOffset:c}=o,l=[],u=[];if(s.nodeType===Node.TEXT_NODE){let t=s.parentElement;if(u.push(s.nodeValue.slice(c).replaceAll(Zi,``)),t!==this.editorDiv){let n=l;for(let r of this.editorDiv.childNodes){if(r===t){n=u;continue}n.push(e.#c(r))}}l.push(s.nodeValue.slice(0,c).replaceAll(Zi,``))}else if(s===this.editorDiv){let t=l,n=0;for(let r of this.editorDiv.childNodes)n++===c&&(t=u),t.push(e.#c(r))}this.#e=`${l.join(`
`)}${i}${u.join(`
`)}`,this.#l();let d=new Range,f=Math.sumPrecise(l.map(e=>e.length));for(let{firstChild:e}of this.editorDiv.childNodes)if(e.nodeType===Node.TEXT_NODE){let t=e.nodeValue.length;if(f<=t){d.setStart(e,f),d.setEnd(e,f);break}f-=t}a.removeAllRanges(),a.addRange(d)}#l(){if(this.editorDiv.replaceChildren(),this.#e)for(let e of this.#e.split(`
`)){let t=document.createElement(`div`);t.append(e?document.createTextNode(e):document.createElement(`br`)),this.editorDiv.append(t)}}#u(){return this.#e.replaceAll(`\xA0`,` `)}static#d(e){return e.replaceAll(` `,`\xA0`)}get contentDiv(){return this.editorDiv}getPDFRect(){let t=e._internalPadding*this.parentScale;return this.getRect(t,t)}static async deserialize(t,n,r){let i=null;if(t instanceof Ii){let{data:{defaultAppearanceData:{fontSize:e,fontColor:n},rect:r,rotation:a,id:o,popupRef:s,richText:c,contentsObj:l,creationDate:u,modificationDate:d},textContent:f,textPosition:p,parent:{page:{pageNumber:m}}}=t;if(!f||f.length===0)return null;i=t={annotationType:I.FREETEXT,color:Array.from(n),fontSize:e,value:f.join(`
`),position:p,pageIndex:m-1,rect:r.slice(0),rotation:a,annotationElementId:o,id:o,deleted:!1,popupRef:s,comment:l?.str||null,richText:c,creationDate:u,modificationDate:d}}let a=await super.deserialize(t,n,r);return a.#r=t.fontSize,a.color=K.makeHexColor(...t.color),a.#e=e.#d(t.value),a._initialData=i,t.comment&&a.setCommentData(t),a}serialize(e=!1){if(this.isEmpty())return null;if(this.deleted)return this.serializeDeleted();let t=J._colorManager.convert(this.isAttachedToDOM?getComputedStyle(this.editorDiv).color:this.color),n=Object.assign(super.serialize(e),{color:t,fontSize:this.#r,value:this.#u()});return this.addComment(n),e?(n.isCopy=!0,n):this.annotationElementId&&!this.#f(n)?null:(n.id=this.annotationElementId,n)}#f(e){let{value:t,fontSize:n,color:r,pageIndex:i}=this._initialData;return this.hasEditedComment||this._hasBeenMoved||e.value!==t||e.fontSize!==n||e.color.some((e,t)=>e!==r[t])||e.pageIndex!==i}renderAnnotationElement(e){let t=super.renderAnnotationElement(e);if(!t)return null;let{style:n}=t;n.fontSize=`calc(${this.#r}px * var(--total-scale-factor))`,n.color=this.color,t.replaceChildren();for(let e of this.#e.split(`
`)){let n=document.createElement(`div`);n.append(e?document.createTextNode(e):document.createElement(`br`)),t.append(n)}return e.updateEdited({rect:this.getPDFRect(),popup:this._uiManager.hasCommentManager()||this.hasEditedComment?this.comment:{text:this.#e}}),t}resetAnnotationElement(e){super.resetAnnotationElement(e),e.resetEdited()}},Y=class{static PRECISION=1e-4;toSVGPath(){U("Abstract method `toSVGPath` must be implemented.")}get box(){U("Abstract getter `box` must be implemented.")}serialize(e,t){U("Abstract method `serialize` must be implemented.")}static _rescale(e,t,n,r,i,a){a||=new Float32Array(e.length);for(let o=0,s=e.length;o<s;o+=2)a[o]=t+e[o]*r,a[o+1]=n+e[o+1]*i;return a}static _rescaleAndSwap(e,t,n,r,i,a){a||=new Float32Array(e.length);for(let o=0,s=e.length;o<s;o+=2)a[o]=t+e[o+1]*r,a[o+1]=n+e[o]*i;return a}static _translate(e,t,n,r){r||=new Float32Array(e.length);for(let i=0,a=e.length;i<a;i+=2)r[i]=t+e[i],r[i+1]=n+e[i+1];return r}static svgRound(e){return Math.round(e*1e4)}static _normalizePoint(e,t,n,r,i){switch(i){case 90:return[1-t/n,e/r];case 180:return[1-e/n,1-t/r];case 270:return[t/n,1-e/r];default:return[e/n,t/r]}}static createBezierPoints(e,t,n,r,i,a){return[(e+5*n)/6,(t+5*r)/6,(5*n+i)/6,(5*r+a)/6,(n+i)/2,(r+a)/2]}},$i=class e{#e;#t=[];#n;#r;#i=[];#a=new Float32Array(18);#o;#s;#c;#l;#u;#d;#f=[];static#p=8;static#m=2;static#h=e.#p+e.#m;constructor({x:t,y:n},r,i,a,o,s=0){this.#e=r,this.#d=a*i,this.#r=o,this.#a.set([NaN,NaN,NaN,NaN,t,n],6),this.#n=s,this.#l=e.#p*i,this.#c=e.#h*i,this.#u=i,this.#f.push(t,n)}isEmpty(){return isNaN(this.#a[8])}#g(){let e=this.#a.subarray(4,6),t=this.#a.subarray(16,18),[n,r,i,a]=this.#e;return[(this.#o+(e[0]-t[0])/2-n)/i,(this.#s+(e[1]-t[1])/2-r)/a,(this.#o+(t[0]-e[0])/2-n)/i,(this.#s+(t[1]-e[1])/2-r)/a]}add({x:e,y:t}){this.#o=e,this.#s=t;let[n,r,i,a]=this.#e,[o,s,c,l]=this.#a.subarray(8,12),u=e-c,d=t-l,f=Math.hypot(u,d);if(f<this.#c)return!1;let p=f-this.#l,m=p/f,h=m*u,g=m*d,_=o,v=s;o=c,s=l,c+=h,l+=g,this.#f?.push(e,t);let y=-g/p,b=h/p,x=y*this.#d,S=b*this.#d;return this.#a.set(this.#a.subarray(2,8),0),this.#a.set([c+x,l+S],4),this.#a.set(this.#a.subarray(14,18),12),this.#a.set([c-x,l-S],16),isNaN(this.#a[6])?(this.#i.length===0&&(this.#a.set([o+x,s+S],2),this.#i.push(NaN,NaN,NaN,NaN,(o+x-n)/i,(s+S-r)/a),this.#a.set([o-x,s-S],14),this.#t.push(NaN,NaN,NaN,NaN,(o-x-n)/i,(s-S-r)/a)),this.#a.set([_,v,o,s,c,l],6),!this.isEmpty()):(this.#a.set([_,v,o,s,c,l],6),Math.abs(Math.atan2(v-s,_-o)-Math.atan2(g,h))<Math.PI/2?([o,s,c,l]=this.#a.subarray(2,6),this.#i.push(NaN,NaN,NaN,NaN,((o+c)/2-n)/i,((s+l)/2-r)/a),[o,s,_,v]=this.#a.subarray(14,18),this.#t.push(NaN,NaN,NaN,NaN,((_+o)/2-n)/i,((v+s)/2-r)/a),!0):([_,v,o,s,c,l]=this.#a.subarray(0,6),this.#i.push(((_+5*o)/6-n)/i,((v+5*s)/6-r)/a,((5*o+c)/6-n)/i,((5*s+l)/6-r)/a,((o+c)/2-n)/i,((s+l)/2-r)/a),[c,l,o,s,_,v]=this.#a.subarray(12,18),this.#t.push(((_+5*o)/6-n)/i,((v+5*s)/6-r)/a,((5*o+c)/6-n)/i,((5*s+l)/6-r)/a,((o+c)/2-n)/i,((s+l)/2-r)/a),!0))}toSVGPath(){if(this.isEmpty())return``;let e=this.#i,t=this.#t;if(isNaN(this.#a[6])&&!this.isEmpty())return this.#_();let n=[];n.push(`M${e[4]} ${e[5]}`);for(let t=6;t<e.length;t+=6)isNaN(e[t])?n.push(`L${e[t+4]} ${e[t+5]}`):n.push(`C${e[t]} ${e[t+1]} ${e[t+2]} ${e[t+3]} ${e[t+4]} ${e[t+5]}`);this.#y(n);for(let e=t.length-6;e>=6;e-=6)isNaN(t[e])?n.push(`L${t[e+4]} ${t[e+5]}`):n.push(`C${t[e]} ${t[e+1]} ${t[e+2]} ${t[e+3]} ${t[e+4]} ${t[e+5]}`);return this.#v(n),n.join(` `)}#_(){let[e,t,n,r]=this.#e,[i,a,o,s]=this.#g();return`M${(this.#a[2]-e)/n} ${(this.#a[3]-t)/r} L${(this.#a[4]-e)/n} ${(this.#a[5]-t)/r} L${i} ${a} L${o} ${s} L${(this.#a[16]-e)/n} ${(this.#a[17]-t)/r} L${(this.#a[14]-e)/n} ${(this.#a[15]-t)/r} Z`}#v(e){let t=this.#t;e.push(`L${t[4]} ${t[5]} Z`)}#y(e){let[t,n,r,i]=this.#e,a=this.#a.subarray(4,6),o=this.#a.subarray(16,18),[s,c,l,u]=this.#g();e.push(`L${(a[0]-t)/r} ${(a[1]-n)/i} L${s} ${c} L${l} ${u} L${(o[0]-t)/r} ${(o[1]-n)/i}`)}newFreeDrawOutline(e,t,n,r,i,a){return new ea(e,t,n,r,i,a)}getOutlines(){let e=this.#i,t=this.#t,n=this.#a,[r,i,a,o]=this.#e,s=new Float32Array((this.#f?.length??0)+2);for(let e=0,t=s.length-2;e<t;e+=2)s[e]=(this.#f[e]-r)/a,s[e+1]=(this.#f[e+1]-i)/o;if(s[s.length-2]=(this.#o-r)/a,s[s.length-1]=(this.#s-i)/o,isNaN(n[6])&&!this.isEmpty())return this.#b(s);let c=new Float32Array(this.#i.length+24+this.#t.length),l=e.length;for(let t=0;t<l;t+=2){if(isNaN(e[t])){c[t]=c[t+1]=NaN;continue}c[t]=e[t],c[t+1]=e[t+1]}l=this.#S(c,l);for(let e=t.length-6;e>=6;e-=6)for(let n=0;n<6;n+=2){if(isNaN(t[e+n])){c[l]=c[l+1]=NaN,l+=2;continue}c[l]=t[e+n],c[l+1]=t[e+n+1],l+=2}return this.#x(c,l),this.newFreeDrawOutline(c,s,this.#e,this.#u,this.#n,this.#r)}#b(e){let t=this.#a,[n,r,i,a]=this.#e,[o,s,c,l]=this.#g(),u=new Float32Array(36);return u.set([NaN,NaN,NaN,NaN,(t[2]-n)/i,(t[3]-r)/a,NaN,NaN,NaN,NaN,(t[4]-n)/i,(t[5]-r)/a,NaN,NaN,NaN,NaN,o,s,NaN,NaN,NaN,NaN,c,l,NaN,NaN,NaN,NaN,(t[16]-n)/i,(t[17]-r)/a,NaN,NaN,NaN,NaN,(t[14]-n)/i,(t[15]-r)/a],0),this.newFreeDrawOutline(u,e,this.#e,this.#u,this.#n,this.#r)}#x(e,t){let n=this.#t;return e.set([NaN,NaN,NaN,NaN,n[4],n[5]],t),t+=6}#S(e,t){let n=this.#a.subarray(4,6),r=this.#a.subarray(16,18),[i,a,o,s]=this.#e,[c,l,u,d]=this.#g();return e.set([NaN,NaN,NaN,NaN,(n[0]-i)/o,(n[1]-a)/s,NaN,NaN,NaN,NaN,c,l,NaN,NaN,NaN,NaN,u,d,NaN,NaN,NaN,NaN,(r[0]-i)/o,(r[1]-a)/s],t),t+=24}},ea=class extends Y{#e;#t=new Float32Array(4);#n;#r;#i;#a;#o;constructor(e,t,n,r,i,a){super(),this.#o=e,this.#i=t,this.#e=n,this.#a=r,this.#n=i,this.#r=a,this.firstPoint=[NaN,NaN],this.lastPoint=[NaN,NaN],this.#s(a);let[o,s,c,l]=this.#t;for(let t=0,n=e.length;t<n;t+=2)e[t]=(e[t]-o)/c,e[t+1]=(e[t+1]-s)/l;for(let e=0,n=t.length;e<n;e+=2)t[e]=(t[e]-o)/c,t[e+1]=(t[e+1]-s)/l}toSVGPath(){let e=[`M${this.#o[4]} ${this.#o[5]}`];for(let t=6,n=this.#o.length;t<n;t+=6){if(isNaN(this.#o[t])){e.push(`L${this.#o[t+4]} ${this.#o[t+5]}`);continue}e.push(`C${this.#o[t]} ${this.#o[t+1]} ${this.#o[t+2]} ${this.#o[t+3]} ${this.#o[t+4]} ${this.#o[t+5]}`)}return e.push(`Z`),e.join(` `)}serialize([e,t,n,r],i){let a=n-e,o=r-t,s,c;switch(i){case 0:s=Y._rescale(this.#o,e,r,a,-o),c=Y._rescale(this.#i,e,r,a,-o);break;case 90:s=Y._rescaleAndSwap(this.#o,e,t,a,o),c=Y._rescaleAndSwap(this.#i,e,t,a,o);break;case 180:s=Y._rescale(this.#o,n,t,-a,o),c=Y._rescale(this.#i,n,t,-a,o);break;case 270:s=Y._rescaleAndSwap(this.#o,n,r,-a,-o),c=Y._rescaleAndSwap(this.#i,n,r,-a,-o);break}return{outline:Array.from(s),points:[Array.from(c)]}}#s(e){let t=this.#o,n=t[4],r=t[5],i=[n,r,n,r],a=n,o=r,s=n,c=r,l=e?Math.max:Math.min,u=new Float32Array(4);for(let e=6,d=t.length;e<d;e+=6){let d=t[e+4],f=t[e+5];isNaN(t[e])?(K.pointBoundingBox(d,f,i),o>f?(a=d,o=f):o===f&&(a=l(a,d)),c<f?(s=d,c=f):c===f&&(s=l(s,d))):(u.set(D,0),K.bezierBoundingBox(n,r,...t.slice(e,e+6),u),K.rectBoundingBox(...u,i),o>u[1]?(a=u[0],o=u[1]):o===u[1]&&(a=l(a,u[0])),c<u[3]?(s=u[2],c=u[3]):c===u[3]&&(s=l(s,u[2]))),n=d,r=f}let d=this.#t;d[0]=i[0]-this.#n,d[1]=i[1]-this.#n,d[2]=i[2]-i[0]+2*this.#n,d[3]=i[3]-i[1]+2*this.#n,this.firstPoint=[a,o],this.lastPoint=[s,c]}get box(){return this.#t}newOutliner(e,t,n,r,i,a=0){return new $i(e,t,n,r,i,a)}getNewOutline(e,t){let[n,r,i,a]=this.#t,[o,s,c,l]=this.#e,u=i*c,d=a*l,f=n*c+o,p=r*l+s,m=this.newOutliner({x:this.#i[0]*u+f,y:this.#i[1]*d+p},this.#e,this.#a,e,this.#r,t??this.#n);for(let e=2;e<this.#i.length;e+=2)m.add({x:this.#i[e]*u+f,y:this.#i[e+1]*d+p});return m.getOutlines()}},ta=class{#e;#t;#n;#r=[];#i=[];constructor(e,t=0,n=0,r=!0){let i=D.slice(),a=10**-4;for(let{x:n,y:r,width:o,height:s}of e){let e=Math.floor((n-t)/a)*a,c=Math.ceil((n+o+t)/a)*a,l=Math.floor((r-t)/a)*a,u=Math.ceil((r+s+t)/a)*a,d=[e,l,u,!0],f=[c,l,u,!1];this.#r.push(d,f),K.rectBoundingBox(e,l,c,u,i)}let o=i[2]-i[0]+2*n,s=i[3]-i[1]+2*n,c=i[0]-n,l=i[1]-n,u=r?-1/0:1/0,d=1/0,f=this.#r.at(r?-1:-2),p=[f[0],f[2]];for(let e of this.#r){let[t,n,i,a]=e;!a&&r?n<d?(d=n,u=t):n===d&&(u=Math.max(u,t)):a&&!r&&(n<d?(d=n,u=t):n===d&&(u=Math.min(u,t))),e[0]=(t-c)/o,e[1]=(n-l)/s,e[2]=(i-l)/s}this.#e=new Float32Array([c,l,o,s]),this.#t=[u,d],this.#n=p}getOutlines(){this.#r.sort((e,t)=>e[0]-t[0]||e[1]-t[1]||e[2]-t[2]);let e=[];for(let t of this.#r)t[3]?(e.push(...this.#l(t)),this.#s(t)):(this.#c(t),e.push(...this.#l(t)));return this.#a(e)}#a(e){let t=[],n=new Set;for(let n of e){let[e,r,i]=n;t.push([e,r,n],[e,i,n])}t.sort((e,t)=>e[1]-t[1]||e[0]-t[0]);for(let e=0,r=t.length;e<r;e+=2){let r=t[e][2],i=t[e+1][2];r.push(i),i.push(r),n.add(r),n.add(i)}let r=[],i;for(;n.size>0;){let e=n.values().next().value,[t,a,o,s,c]=e;n.delete(e);let l=t,u=a;for(i=[t,o],r.push(i);;){let e;if(n.has(s))e=s;else if(n.has(c))e=c;else break;n.delete(e),[t,a,o,s,c]=e,l!==t&&(i.push(l,u,t,u===a?a:o),l=t),u=u===a?o:a}i.push(l,u)}return new na(r,this.#e,this.#t,this.#n)}#o(e){let t=this.#i,n=0,r=t.length-1;for(;n<=r;){let i=n+r>>1,a=t[i][0];if(a===e)return i;a<e?n=i+1:r=i-1}return r+1}#s([,e,t]){let n=this.#o(e);this.#i.splice(n,0,[e,t])}#c([,e,t]){let n=this.#o(e);for(let r=n;r<this.#i.length;r++){let[n,i]=this.#i[r];if(n!==e)break;if(n===e&&i===t){this.#i.splice(r,1);return}}for(let r=n-1;r>=0;r--){let[n,i]=this.#i[r];if(n!==e)break;if(n===e&&i===t){this.#i.splice(r,1);return}}}#l(e){let[t,n,r]=e,i=[[t,n,r]],a=this.#o(r);for(let e=0;e<a;e++){let[n,r]=this.#i[e];for(let e=0,a=i.length;e<a;e++){let[,o,s]=i[e];if(!(r<=o||s<=n)){if(o>=n){if(s>r)i[e][1]=r;else{if(a===1)return[];i.splice(e,1),e--,a--}continue}i[e][2]=n,s>r&&i.push([t,r,s])}}}return i}},na=class extends Y{#e;#t;constructor(e,t,n,r){super(),this.#t=e,this.#e=t,this.firstPoint=n,this.lastPoint=r}toSVGPath(){let e=[];for(let t of this.#t){let[n,r]=t;e.push(`M${n} ${r}`);for(let i=2;i<t.length;i+=2){let a=t[i],o=t[i+1];a===n?(e.push(`V${o}`),r=o):o===r&&(e.push(`H${a}`),n=a)}e.push(`Z`)}return e.join(` `)}serialize([e,t,n,r],i){let a=[],o=n-e,s=r-t;for(let t of this.#t){let n=Array(t.length);for(let i=0;i<t.length;i+=2)n[i]=e+t[i]*o,n[i+1]=r-t[i+1]*s;a.push(n)}return a}get box(){return this.#e}get classNamesForOutlining(){return[`highlightOutline`]}},ra=class extends $i{newFreeDrawOutline(e,t,n,r,i,a){return new ia(e,t,n,r,i,a)}},ia=class extends ea{newOutliner(e,t,n,r,i,a=0){return new ra(e,t,n,r,i,a)}},aa=class e extends J{#e=null;#t=0;#n;#r=null;#i=null;#a=null;#o=null;#s=0;#c=null;#l=null;#u=null;#d=!1;#f=null;#p=null;#m=null;#h=``;#g;#_=``;static _defaultColor=null;static _defaultOpacity=1;static _defaultThickness=12;static _type=`highlight`;static _editorType=I.HIGHLIGHT;static _freeHighlightId=-1;static _freeHighlight=null;static _freeHighlightClipId=``;static get _keyboardManager(){let t=e.prototype;return W(this,`_keyboardManager`,new bt([[[`ArrowLeft`,`mac+ArrowLeft`],t._moveCaret,{args:[0]}],[[`ArrowRight`,`mac+ArrowRight`],t._moveCaret,{args:[1]}],[[`ArrowUp`,`mac+ArrowUp`],t._moveCaret,{args:[2]}],[[`ArrowDown`,`mac+ArrowDown`],t._moveCaret,{args:[3]}]]))}constructor(t){super({...t,name:`highlightEditor`}),this.color=t.color||e._defaultColor,this.#g=t.thickness||e._defaultThickness,this.opacity=t.opacity||e._defaultOpacity,this.#n=t.boxes||null,this.#_=t.methodOfCreation||``,this.#h=t.text||``,this._isDraggable=!1,this.defaultL10nId=`pdfjs-editor-highlight-editor`,t.highlightId>-1?(this.#d=!0,this.#y(t),this.#w()):this.#n&&(this.#e=t.anchorNode,this.#t=t.anchorOffset,this.#o=t.focusNode,this.#s=t.focusOffset,this.#v(),this.#w(),this.rotate(this.rotation)),this.annotationElementId||this._uiManager.a11yAlert(J._l10nAlert.highlight)}get telemetryInitialData(){return{action:`added`,type:this.#d?`free_highlight`:`highlight`,color:this._uiManager.getNonHCMColorName(this.color),thickness:this.#g,methodOfCreation:this.#_}}get telemetryFinalData(){return{type:`highlight`,color:this._uiManager.getNonHCMColorName(this.color)}}static computeTelemetryFinalData(e){return{numberOfColors:e.get(`color`).size}}#v(){let e=new ta(this.#n,.001);this.#l=e.getOutlines(),[this.x,this.y,this.width,this.height]=this.#l.box;let t=new ta(this.#n,.0025,.001,this._uiManager.direction===`ltr`);this.#a=t.getOutlines();let{firstPoint:n}=this.#l;this.#f=[(n[0]-this.x)/this.width,(n[1]-this.y)/this.height];let{lastPoint:r}=this.#a;this.#p=[(r[0]-this.x)/this.width,(r[1]-this.y)/this.height]}#y({highlightOutlines:t,highlightId:n,clipPathId:r}){if(this.#l=t,this.#a=t.getNewOutline(this.#g/2+1.5,.0025),n>=0)this.#u=n,this.#r=r,this.parent.drawLayer.finalizeDraw(n,{bbox:t.box,path:{d:t.toSVGPath()}}),this.#m=this.parent.drawLayer.drawOutline({rootClass:{highlightOutline:!0,free:!0},bbox:this.#a.box,path:{d:this.#a.toSVGPath()}},!0);else if(this.parent){let n=this.parent.viewport.rotation;this.parent.drawLayer.updateProperties(this.#u,{bbox:e.#T(this.#l.box,(n-this.rotation+360)%360),path:{d:t.toSVGPath()}}),this.parent.drawLayer.updateProperties(this.#m,{bbox:e.#T(this.#a.box,n),path:{d:this.#a.toSVGPath()}})}let[i,a,o,s]=t.box;switch(this.rotation){case 0:this.x=i,this.y=a,this.width=o,this.height=s;break;case 90:{let[e,t]=this.parentDimensions;this.x=a,this.y=1-i,this.width=o*t/e,this.height=s*e/t;break}case 180:this.x=1-i,this.y=1-a,this.width=o,this.height=s;break;case 270:{let[e,t]=this.parentDimensions;this.x=1-a,this.y=i,this.width=o*t/e,this.height=s*e/t;break}}let{firstPoint:c}=t;this.#f=[(c[0]-i)/o,(c[1]-a)/s];let{lastPoint:l}=this.#a;this.#p=[(l[0]-i)/o,(l[1]-a)/s]}static initialize(t,n){J.initialize(t,n),e._defaultColor||=n.highlightColors?.values().next().value||`#fff066`}static updateDefaultParams(t,n){switch(t){case L.HIGHLIGHT_COLOR:e._defaultColor=n;break;case L.HIGHLIGHT_THICKNESS:e._defaultThickness=n;break}}translateInPage(e,t){}get toolbarPosition(){return this.#p}get commentButtonPosition(){return this.#f}updateParams(e,t){switch(e){case L.HIGHLIGHT_COLOR:this.#b(t);break;case L.HIGHLIGHT_THICKNESS:this.#x(t);break}}static get defaultPropertiesToUpdate(){return[[L.HIGHLIGHT_COLOR,e._defaultColor],[L.HIGHLIGHT_THICKNESS,e._defaultThickness]]}get propertiesToUpdate(){return[[L.HIGHLIGHT_COLOR,this.color||e._defaultColor],[L.HIGHLIGHT_THICKNESS,this.#g||e._defaultThickness],[L.HIGHLIGHT_FREE,this.#d]]}onUpdatedColor(){this.parent?.drawLayer.updateProperties(this.#u,{root:{fill:this.color,"fill-opacity":this.opacity}}),this.#i?.updateColor(this.color),super.onUpdatedColor()}#b(t){let n=(e,t)=>{this.color=e,this.opacity=t,this.onUpdatedColor()},r=this.color,i=this.opacity;this.addCommands({cmd:n.bind(this,t,e._defaultOpacity),undo:n.bind(this,r,i),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:L.HIGHLIGHT_COLOR,overwriteIfSameType:!0,keepUndo:!0}),this._reportTelemetry({action:`color_changed`,color:this._uiManager.getNonHCMColorName(t)},!0)}#x(e){let t=this.#g,n=e=>{this.#g=e,this.#S(e)};this.addCommands({cmd:n.bind(this,e),undo:n.bind(this,t),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:L.INK_THICKNESS,overwriteIfSameType:!0,keepUndo:!0}),this._reportTelemetry({action:`thickness_changed`,thickness:e},!0)}get toolbarButtons(){return this._uiManager.highlightColors?[[`colorPicker`,this.#i=new fi({editor:this})]]:super.toolbarButtons}disableEditing(){super.disableEditing(),this.div.classList.toggle(`disabled`,!0)}enableEditing(){super.enableEditing(),this.div.classList.toggle(`disabled`,!1)}fixAndSetPosition(){return super.fixAndSetPosition(this.#O())}getBaseTranslation(){return[0,0]}getRect(e,t){return super.getRect(e,t,this.#O())}onceAdded(e){this.annotationElementId||this.parent.addUndoableEditor(this),e&&this.div.focus()}remove(){this.#C(),this._reportTelemetry({action:`deleted`}),super.remove()}rebuild(){this.parent&&(super.rebuild(),this.div!==null&&(this.#w(),this.isAttachedToDOM||this.parent.add(this)))}setParent(e){let t=!1;this.parent&&!e?this.#C():e&&(this.#w(e),t=!this.parent&&this.div?.classList.contains(`selectedEditor`)),super.setParent(e),this.show(this._isVisible),t&&this.select()}#S(e){this.#d&&(this.#y({highlightOutlines:this.#l.getNewOutline(e/2)}),this.fixAndSetPosition(),this.setDims())}#C(){this.#u===null||!this.parent||(this.parent.drawLayer.remove(this.#u),this.#u=null,this.parent.drawLayer.remove(this.#m),this.#m=null)}#w(e=this.parent){this.#u===null&&({id:this.#u,clipPathId:this.#r}=e.drawLayer.draw({bbox:this.#l.box,root:{viewBox:`0 0 1 1`,fill:this.color,"fill-opacity":this.opacity},rootClass:{highlight:!0,free:this.#d},path:{d:this.#l.toSVGPath()}},!1,!0),this.#m=e.drawLayer.drawOutline({rootClass:{highlightOutline:!0,free:this.#d},bbox:this.#a.box,path:{d:this.#a.toSVGPath()}},this.#d),this.#c&&(this.#c.style.clipPath=this.#r))}static#T([e,t,n,r],i){switch(i){case 90:return[1-t-r,e,r,n];case 180:return[1-e-n,1-t-r,n,r];case 270:return[t,1-e-n,r,n]}return[e,t,n,r]}rotate(t){let{drawLayer:n}=this.parent,r;this.#d?(t=(t-this.rotation+360)%360,r=e.#T(this.#l.box,t)):r=e.#T([this.x,this.y,this.width,this.height],t),n.updateProperties(this.#u,{bbox:r,root:{"data-main-rotation":t}}),n.updateProperties(this.#m,{bbox:e.#T(this.#a.box,t),root:{"data-main-rotation":t}})}render(){if(this.div)return this.div;let e=super.render();this.#h&&(e.setAttribute(`aria-label`,this.#h),e.setAttribute(`role`,`mark`)),this.#d?e.classList.add(`free`):this.div.addEventListener(`keydown`,this.#E.bind(this),{signal:this._uiManager._signal});let t=this.#c=document.createElement(`div`);return e.append(t),t.setAttribute(`aria-hidden`,`true`),t.className=`internal`,t.style.clipPath=this.#r,this.setDims(),ht(this,this.#c,[`pointerover`,`pointerleave`]),this.enableEditing(),e}pointerover(){this.isSelected||this.parent?.drawLayer.updateProperties(this.#m,{rootClass:{hovered:!0}})}pointerleave(){this.isSelected||this.parent?.drawLayer.updateProperties(this.#m,{rootClass:{hovered:!1}})}#E(t){e._keyboardManager.exec(this,t)}_moveCaret(e){switch(this.parent.unselect(this),e){case 0:case 2:this.#D(!0);break;case 1:case 3:this.#D(!1);break}}#D(e){if(!this.#e)return;let t=window.getSelection();e?t.setPosition(this.#e,this.#t):t.setPosition(this.#o,this.#s)}select(){super.select(),this.#m&&this.parent?.drawLayer.updateProperties(this.#m,{rootClass:{hovered:!1,selected:!0}})}unselect(){super.unselect(),this.#m&&(this.parent?.drawLayer.updateProperties(this.#m,{rootClass:{selected:!1}}),this.#d||this.#D(!1))}get _mustFixPosition(){return!this.#d}show(e=this._isVisible){super.show(e),this.parent&&(this.parent.drawLayer.updateProperties(this.#u,{rootClass:{hidden:!e}}),this.parent.drawLayer.updateProperties(this.#m,{rootClass:{hidden:!e}}))}#O(){return this.#d?this.rotation:0}#k(){if(this.#d)return null;let[e,t]=this.pageDimensions,[n,r]=this.pageTranslation,i=this.#n,a=new Float32Array(i.length*8),o=0;for(let{x:s,y:c,width:l,height:u}of i){let i=s*e+n,d=(1-c)*t+r;a[o]=a[o+4]=i,a[o+1]=a[o+3]=d,a[o+2]=a[o+6]=i+l*e,a[o+5]=a[o+7]=d-u*t,o+=8}return a}#A(e){return this.#l.serialize(e,this.#O())}static startHighlighting(e,t,{target:n,x:r,y:i}){let{x:a,y:o,width:s,height:c}=n.getBoundingClientRect(),l=new AbortController,u=e.combinedSignal(l),d=t=>{l.abort(),this.#M(e,t)};window.addEventListener(`blur`,d,{signal:u}),window.addEventListener(`pointerup`,d,{signal:u}),window.addEventListener(`pointerdown`,Ge,{capture:!0,passive:!1,signal:u}),window.addEventListener(`contextmenu`,We,{signal:u}),n.addEventListener(`pointermove`,this.#j.bind(this,e),{signal:u}),this._freeHighlight=new ra({x:r,y:i},[a,o,s,c],e.scale,this._defaultThickness/2,t,.001),{id:this._freeHighlightId,clipPathId:this._freeHighlightClipId}=e.drawLayer.draw({bbox:[0,0,1,1],root:{viewBox:`0 0 1 1`,fill:this._defaultColor,"fill-opacity":this._defaultOpacity},rootClass:{highlight:!0,free:!0},path:{d:this._freeHighlight.toSVGPath()}},!0,!0)}static#j(e,t){this._freeHighlight.add(t)&&e.drawLayer.updateProperties(this._freeHighlightId,{path:{d:this._freeHighlight.toSVGPath()}})}static#M(e,t){this._freeHighlight.isEmpty()?e.drawLayer.remove(this._freeHighlightId):e.createAndAddNewEditor(t,!1,{highlightId:this._freeHighlightId,highlightOutlines:this._freeHighlight.getOutlines(),clipPathId:this._freeHighlightClipId,methodOfCreation:`main_toolbar`}),this._freeHighlightId=-1,this._freeHighlight=null,this._freeHighlightClipId=``}static async deserialize(e,t,n){let r=null;if(e instanceof Wi){let{data:{quadPoints:t,rect:n,rotation:i,id:a,color:o,opacity:s,popupRef:c,richText:l,contentsObj:u,creationDate:d,modificationDate:f},parent:{page:{pageNumber:p}}}=e;r=e={annotationType:I.HIGHLIGHT,color:Array.from(o),opacity:s,quadPoints:t,boxes:null,pageIndex:p-1,rect:n.slice(0),rotation:i,annotationElementId:a,id:a,deleted:!1,popupRef:c,richText:l,comment:u?.str||null,creationDate:d,modificationDate:f}}else if(e instanceof Ui){let{data:{inkLists:t,rect:n,rotation:i,id:a,color:o,borderStyle:{rawWidth:s},popupRef:c,richText:l,contentsObj:u,creationDate:d,modificationDate:f},parent:{page:{pageNumber:p}}}=e;r=e={annotationType:I.HIGHLIGHT,color:Array.from(o),thickness:s,inkLists:t,boxes:null,pageIndex:p-1,rect:n.slice(0),rotation:i,annotationElementId:a,id:a,deleted:!1,popupRef:c,richText:l,comment:u?.str||null,creationDate:d,modificationDate:f}}let{color:i,quadPoints:a,inkLists:o,outlines:s,opacity:c}=e,l=await super.deserialize(e,t,n);l.color=K.makeHexColor(...i),l.opacity=c||1,o&&(l.#g=e.thickness),l._initialData=r,e.comment&&l.setCommentData(e);let[u,d]=l.pageDimensions,[f,p]=l.pageTranslation;if(a){let e=l.#n=[];for(let t=0;t<a.length;t+=8)e.push({x:(a[t]-f)/u,y:1-(a[t+1]-p)/d,width:(a[t+2]-a[t])/u,height:(a[t+1]-a[t+5])/d});l.#v(),l.#w(),l.rotate(l.rotation)}else if(o||s){l.#d=!0;let e=(o||s.points)[0],n={x:e[0]-f,y:d-(e[1]-p)},r=new ra(n,[0,0,u,d],1,l.#g/2,!0,.001);for(let t=0,i=e.length;t<i;t+=2)n.x=e[t]-f,n.y=d-(e[t+1]-p),r.add(n);let{id:i,clipPathId:a}=t.drawLayer.draw({bbox:[0,0,1,1],root:{viewBox:`0 0 1 1`,fill:l.color,"fill-opacity":l._defaultOpacity},rootClass:{highlight:!0,free:!0},path:{d:r.toSVGPath()}},!0,!0);l.#y({highlightOutlines:r.getOutlines(),highlightId:i,clipPathId:a}),l.#w(),l.rotate(l.parentRotation)}return l}serialize(e=!1){if(this.isEmpty()||e)return null;if(this.deleted)return this.serializeDeleted();let t=J._colorManager.convert(this._uiManager.getNonHCMColor(this.color)),n=super.serialize(e);return Object.assign(n,{color:t,opacity:this.opacity,thickness:this.#g,quadPoints:this.#k(),outlines:this.#A(n.rect)}),this.addComment(n),this.annotationElementId&&!this.#N(n)?null:(n.id=this.annotationElementId,n)}#N(e){let{color:t}=this._initialData;return this.hasEditedComment||e.color.some((e,n)=>e!==t[n])}renderAnnotationElement(e){return this.deleted?(e.hide(),null):(e.updateEdited({rect:this.getPDFRect(),popup:this.comment}),null)}static canCreateNewEmptyEditor(){return!1}},oa=class{#e=Object.create(null);updateProperty(e,t){this[e]=t,this.updateSVGProperty(e,t)}updateProperties(e){if(e)for(let[t,n]of Object.entries(e))t.startsWith(`_`)||this.updateProperty(t,n)}updateSVGProperty(e,t){this.#e[e]=t}toSVGProperties(){let e=this.#e;return this.#e=Object.create(null),{root:e}}reset(){this.#e=Object.create(null)}updateAll(e=this){this.updateProperties(e)}clone(){U(`Not implemented`)}},sa=class e extends J{#e=null;#t;_colorPicker=null;_drawId=null;static _currentDrawId=-1;static _currentParent=null;static#n=null;static#r=null;static#i=null;static _INNER_MARGIN=3;constructor(e){super(e),this.#t=e.mustBeCommitted||!1,this._addOutlines(e)}onUpdatedColor(){this._colorPicker?.update(this.color),super.onUpdatedColor()}onUpdatedOpacity(){this._colorPicker?.updateOpacity?.(this.opacity)}_addOutlines(e){e.drawOutlines&&(this.#a(e),this.#c())}#a({drawOutlines:e,drawId:t,drawingOptions:n}){this.#e=e,this._drawingOptions||=n,this.annotationElementId||this._uiManager.a11yAlert(J._l10nAlert[this.editorType]),t>=0?(this._drawId=t,this.parent.drawLayer.finalizeDraw(t,e.defaultProperties)):this._drawId=this.#o(e,this.parent),this.#d(e.box)}#o(t,n){let{id:r}=n.drawLayer.draw(e._mergeSVGProperties(this._drawingOptions.toSVGProperties(),t.defaultSVGProperties),!1,!1);return r}static _mergeSVGProperties(e,t){let n=new Set(Object.keys(e));for(let[r,i]of Object.entries(t))n.has(r)?Object.assign(e[r],i):e[r]=i;return e}static getDefaultDrawingOptions(e){U(`Not implemented`)}static get typesMap(){U(`Not implemented`)}static get isDrawer(){return!0}static get supportMultipleDrawings(){return!1}static updateDefaultParams(t,n){let r=this.typesMap.get(t);r&&this._defaultDrawingOptions.updateProperty(r,n),this._currentParent&&(e.#n.updateProperty(r,n),this._currentParent.drawLayer.updateProperties(this._currentDrawId,this._defaultDrawingOptions.toSVGProperties()))}updateParams(e,t){let n=this.constructor.typesMap.get(e);n&&this._updateProperty(e,n,t)}static get defaultPropertiesToUpdate(){let e=[],t=this._defaultDrawingOptions;for(let[n,r]of this.typesMap)e.push([n,t[r]]);return e}get propertiesToUpdate(){let e=[],{_drawingOptions:t}=this;for(let[n,r]of this.constructor.typesMap)e.push([n,t[r]]);return e}_updateProperty(e,t,n){let r=this._drawingOptions,i=r[t],a=n=>{r.updateProperty(t,n);let i=this.#e.updateProperty(t,n);i&&this.#d(i),this.parent?.drawLayer.updateProperties(this._drawId,r.toSVGProperties()),e===this.colorType?this.onUpdatedColor():e===this.opacityType&&this.onUpdatedOpacity()};this.addCommands({cmd:a.bind(this,n),undo:a.bind(this,i),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:e,overwriteIfSameType:!0,keepUndo:!0})}_updateColorAndOpacity(e,t){let n=this.constructor.typesMap.get(this.colorType),r=this.constructor.typesMap.get(this.opacityType),i=this._drawingOptions,a=i[n],o=i[r],s=(e,t)=>{i.updateProperty(n,e),i.updateProperty(r,t),this.#e.updateProperty(n,e),this.#e.updateProperty(r,t),this.parent?.drawLayer.updateProperties(this._drawId,i.toSVGProperties()),this.onUpdatedColor(),this.onUpdatedOpacity()};this.addCommands({cmd:s.bind(this,e,t),undo:s.bind(this,a,o),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:L.INK_COLOR_AND_OPACITY,overwriteIfSameType:!0,keepUndo:!0})}_onResizing(){this.parent?.drawLayer.updateProperties(this._drawId,e._mergeSVGProperties(this.#e.getPathResizingSVGProperties(this.#u()),{bbox:this.#f()}))}_onResized(){this.parent?.drawLayer.updateProperties(this._drawId,e._mergeSVGProperties(this.#e.getPathResizedSVGProperties(this.#u()),{bbox:this.#f()}))}_onTranslating(e,t){this.parent?.drawLayer.updateProperties(this._drawId,{bbox:this.#f()})}_onTranslated(){this.parent?.drawLayer.updateProperties(this._drawId,e._mergeSVGProperties(this.#e.getPathTranslatedSVGProperties(this.#u(),this.parentDimensions),{bbox:this.#f()}))}_onStartDragging(){this.parent?.drawLayer.updateProperties(this._drawId,{rootClass:{moving:!0}})}_onStopDragging(){this.parent?.drawLayer.updateProperties(this._drawId,{rootClass:{moving:!1}})}commit(){super.commit(),this.disableEditMode(),this.disableEditing()}disableEditing(){super.disableEditing(),this.div.classList.toggle(`disabled`,!0)}enableEditing(){super.enableEditing(),this.div.classList.toggle(`disabled`,!1)}getBaseTranslation(){return[0,0]}get isResizable(){return!0}onceAdded(e){this.annotationElementId||this.parent.addUndoableEditor(this),this._isDraggable=!0,this.#t&&(this.#t=!1,this.commit(),this.parent.setSelected(this),e&&this.isOnScreen&&this.div.focus())}remove(){this.#s(),super.remove()}rebuild(){this.parent&&(super.rebuild(),this.div!==null&&(this.#c(),this.#d(this.#e.box),this.isAttachedToDOM||this.parent.add(this)))}setParent(e){let t=!1;this.parent&&!e?(this._uiManager.removeShouldRescale(this),this.#s()):e&&(this._uiManager.addShouldRescale(this),this.#c(e),t=!this.parent&&this.div?.classList.contains(`selectedEditor`)),super.setParent(e),t&&this.select()}#s(){this._drawId===null||!this.parent||(this.parent.drawLayer.remove(this._drawId),this._drawId=null,this._drawingOptions.reset())}#c(e=this.parent){if(!(this._drawId!==null&&this.parent===e)){if(this._drawId!==null){this.parent.drawLayer.updateParent(this._drawId,e.drawLayer);return}this._drawingOptions.updateAll(),this._drawId=this.#o(this.#e,e)}}#l([e,t,n,r]){let{parentDimensions:[i,a],rotation:o}=this;switch(o){case 90:return[t,1-e,a/i*n,i/a*r];case 180:return[1-e,1-t,n,r];case 270:return[1-t,e,a/i*n,i/a*r];default:return[e,t,n,r]}}#u(){let{x:e,y:t,width:n,height:r,parentDimensions:[i,a],rotation:o}=this;switch(o){case 90:return[1-t,e,i/a*n,a/i*r];case 180:return[1-e,1-t,n,r];case 270:return[t,1-e,i/a*n,a/i*r];default:return[e,t,n,r]}}#d(e){[this.x,this.y,this.width,this.height]=this.#l(e),this.div&&(this.fixAndSetPosition(),this.setDims()),this._onResized()}#f(){let{x:e,y:t,width:n,height:r,rotation:i,parentRotation:a,parentDimensions:[o,s]}=this;switch((i*4+a)/90){case 1:return[1-t-r,e,r,n];case 2:return[1-e-n,1-t-r,n,r];case 3:return[t,1-e-n,r,n];case 4:return[e,t-o/s*n,s/o*r,o/s*n];case 5:return[1-t,e,o/s*n,s/o*r];case 6:return[1-e-s/o*r,1-t,s/o*r,o/s*n];case 7:return[t-o/s*n,1-e-s/o*r,o/s*n,s/o*r];case 8:return[e-n,t-r,n,r];case 9:return[1-t,e-n,r,n];case 10:return[1-e,1-t,n,r];case 11:return[t-r,1-e,r,n];case 12:return[e-s/o*r,t,s/o*r,o/s*n];case 13:return[1-t-o/s*n,e-s/o*r,o/s*n,s/o*r];case 14:return[1-e,1-t-o/s*n,s/o*r,o/s*n];case 15:return[t,1-e,o/s*n,s/o*r];default:return[e,t,n,r]}}rotate(){this.parent&&this.parent.drawLayer.updateProperties(this._drawId,e._mergeSVGProperties({bbox:this.#f()},this.#e.updateRotation((this.parentRotation-this.rotation+360)%360)))}onScaleChanging(){this.parent&&this.#d(this.#e.updateParentDimensions(this.parentDimensions,this.parent.scale))}static onScaleChangingWhenDrawing(){}render(){if(this.div)return this.div;let e,t;this._isCopy&&(e=this.x,t=this.y);let n=super.render();n.classList.add(`draw`);let r=document.createElement(`div`);return n.append(r),r.setAttribute(`aria-hidden`,`true`),r.className=`internal`,this.setDims(),this._uiManager.addShouldRescale(this),this.disableEditing(),this._isCopy&&this._moveAfterPaste(e,t),n}static createDrawerInstance(e,t,n,r,i){U(`Not implemented`)}static startDrawing(t,n,r,i){let{target:a,offsetX:o,offsetY:s,pointerId:c,pointerType:l}=i;if(gt.isInitializedAndDifferentPointerType(l))return;let{viewport:{rotation:u}}=t,{width:d,height:f}=a.getBoundingClientRect(),p=e.#r=new AbortController,m=t.combinedSignal(p);if(gt.setPointer(l,c),window.addEventListener(`pointerup`,e=>{gt.isSamePointerIdOrRemove(e.pointerId)&&this._endDraw(e)},{signal:m}),window.addEventListener(`pointercancel`,e=>{gt.isSamePointerIdOrRemove(e.pointerId)&&this._currentParent.endDrawingSession()},{signal:m}),window.addEventListener(`pointerdown`,t=>{gt.isSamePointerType(t.pointerType)&&(gt.initializeAndAddPointerId(t.pointerId),e.#n.isCancellable()&&(e.#n.removeLastElement(),e.#n.isEmpty()?this._currentParent.endDrawingSession(!0):this._endDraw(null)))},{capture:!0,passive:!1,signal:m}),window.addEventListener(`contextmenu`,We,{signal:m}),a.addEventListener(`pointermove`,this._drawMove.bind(this),{signal:m}),a.addEventListener(`touchmove`,e=>{gt.isSameTimeStamp(e.timeStamp)&&Ge(e)},{signal:m}),t.toggleDrawing(),n._editorUndoBar?.hide(),e.#n){t.drawLayer.updateProperties(this._currentDrawId,e.#n.startNew(o,s,d,f,u));return}n.updateUIForDefaultProperties(this),e.#n=this.createDrawerInstance(o,s,d,f,u),e.#i=this.getDefaultDrawingOptions(),this._currentParent=t,{id:this._currentDrawId}=t.drawLayer.draw(this._mergeSVGProperties(e.#i.toSVGProperties(),e.#n.defaultSVGProperties),!0,!1)}static _drawMove(t){if(gt.isSameTimeStamp(t.timeStamp),!e.#n)return;let{offsetX:n,offsetY:r,pointerId:i}=t;if(gt.isSamePointerId(i)){if(gt.isUsingMultiplePointers()){this._endDraw(t);return}this._currentParent.drawLayer.updateProperties(this._currentDrawId,e.#n.add(n,r)),gt.setTimeStamp(t.timeStamp),Ge(t)}}static _cleanup(t){t&&(this._currentDrawId=-1,this._currentParent=null,e.#n=null,e.#i=null,gt.clearTimeStamp()),e.#r&&(e.#r.abort(),e.#r=null,gt.clearPointerIds())}static _endDraw(t){let n=this._currentParent;if(n){if(n.toggleDrawing(!0),this._cleanup(!1),t?.target===n.div&&n.drawLayer.updateProperties(this._currentDrawId,e.#n.end(t.offsetX,t.offsetY)),this.supportMultipleDrawings){let t=e.#n,r=this._currentDrawId,i=t.getLastElement();n.addCommands({cmd:()=>{n.drawLayer.updateProperties(r,t.setLastElement(i))},undo:()=>{n.drawLayer.updateProperties(r,t.removeLastElement())},mustExec:!1,type:L.DRAW_STEP});return}this.endDrawing(!1)}}static endDrawing(t){let n=this._currentParent;if(!n)return null;if(n.toggleDrawing(!0),n.cleanUndoStack(L.DRAW_STEP),!e.#n.isEmpty()){let{pageDimensions:[r,i],scale:a}=n,o=n.createAndAddNewEditor({offsetX:0,offsetY:0},!1,{drawId:this._currentDrawId,drawOutlines:e.#n.getOutlines(r*a,i*a,a,this._INNER_MARGIN),drawingOptions:e.#i,mustBeCommitted:!t});return this._cleanup(!0),o}return n.drawLayer.remove(this._currentDrawId),this._cleanup(!0),null}createDrawingOptions(e){}static deserializeDraw(e,t,n,r,i,a){U(`Not implemented`)}static async deserialize(e,t,n){let{rawDims:{pageWidth:r,pageHeight:i,pageX:a,pageY:o}}=t.viewport,s=this.deserializeDraw(a,o,r,i,this._INNER_MARGIN,e),c=await super.deserialize(e,t,n);return c.createDrawingOptions(e),c.#a({drawOutlines:s}),c.#c(),c.onScaleChanging(),c.rotate(),c}serializeDraw(e){let[t,n]=this.pageTranslation,[r,i]=this.pageDimensions;return this.#e.serialize([t,n,r,i],e)}renderAnnotationElement(e){return e.updateEdited({rect:this.getPDFRect()}),null}static canCreateNewEmptyEditor(){return!1}},ca=class{#e=new Float64Array(6);#t;#n;#r;#i;#a;#o=``;#s=0;#c=new la;#l;#u;constructor(e,t,n,r,i,a){this.#l=n,this.#u=r,this.#r=i,this.#i=a,[e,t]=this.#d(e,t);let o=this.#t=[NaN,NaN,NaN,NaN,e,t];this.#a=[e,t],this.#n=[{line:o,points:this.#a}],this.#e.set(o,0)}updateProperty(e,t){e===`stroke-width`&&(this.#i=t)}#d(e,t){return Y._normalizePoint(e,t,this.#l,this.#u,this.#r)}isEmpty(){return!this.#n||this.#n.length===0}isCancellable(){return this.#a.length<=10}add(e,t){[e,t]=this.#d(e,t);let[n,r,i,a]=this.#e.subarray(2,6),o=e-i,s=t-a;return Math.hypot(this.#l*o,this.#u*s)<=2?null:(this.#a.push(e,t),isNaN(n)?(this.#e.set([i,a,e,t],2),this.#t.push(NaN,NaN,NaN,NaN,e,t),{path:{d:this.toSVGPath()}}):(isNaN(this.#e[0])&&this.#t.splice(6,6),this.#e.set([n,r,i,a,e,t],0),this.#t.push(...Y.createBezierPoints(n,r,i,a,e,t)),{path:{d:this.toSVGPath()}}))}end(e,t){return this.add(e,t)||(this.#a.length===2?{path:{d:this.toSVGPath()}}:null)}startNew(e,t,n,r,i){this.#l=n,this.#u=r,this.#r=i,[e,t]=this.#d(e,t);let a=this.#t=[NaN,NaN,NaN,NaN,e,t];this.#a=[e,t];let o=this.#n.at(-1);return o&&(o.line=new Float32Array(o.line),o.points=new Float32Array(o.points)),this.#n.push({line:a,points:this.#a}),this.#e.set(a,0),this.#s=0,this.toSVGPath(),null}getLastElement(){return this.#n.at(-1)}setLastElement(e){return this.#n?(this.#n.push(e),this.#t=e.line,this.#a=e.points,this.#s=0,{path:{d:this.toSVGPath()}}):this.#c.setLastElement(e)}removeLastElement(){if(!this.#n)return this.#c.removeLastElement();this.#n.pop(),this.#o=``;for(let e=0,t=this.#n.length;e<t;e++){let{line:t,points:n}=this.#n[e];this.#t=t,this.#a=n,this.#s=0,this.toSVGPath()}return{path:{d:this.#o}}}toSVGPath(){let e=Y.svgRound(this.#t[4]),t=Y.svgRound(this.#t[5]);if(this.#a.length===2)return this.#o=`${this.#o} M ${e} ${t} Z`,this.#o;if(this.#a.length<=6){let n=this.#o.lastIndexOf(`M`);this.#o=`${this.#o.slice(0,n)} M ${e} ${t}`,this.#s=6}if(this.#a.length===4){let e=Y.svgRound(this.#t[10]),t=Y.svgRound(this.#t[11]);return this.#o=`${this.#o} L ${e} ${t}`,this.#s=12,this.#o}let n=[];this.#s===0&&(n.push(`M ${e} ${t}`),this.#s=6);for(let e=this.#s,t=this.#t.length;e<t;e+=6){let[t,r,i,a,o,s]=this.#t.slice(e,e+6).map(Y.svgRound);n.push(`C${t} ${r} ${i} ${a} ${o} ${s}`)}return this.#o+=n.join(` `),this.#s=this.#t.length,this.#o}getOutlines(e,t,n,r){let i=this.#n.at(-1);return i.line=new Float32Array(i.line),i.points=new Float32Array(i.points),this.#c.build(this.#n,e,t,n,this.#r,this.#i,r),this.#e=null,this.#t=null,this.#n=null,this.#o=null,this.#c}get defaultSVGProperties(){return{root:{viewBox:`0 0 10000 10000`},rootClass:{draw:!0},bbox:[0,0,1,1]}}},la=class extends Y{#e;#t=0;#n;#r;#i;#a;#o;#s;#c;build(e,t,n,r,i,a,o){this.#i=t,this.#a=n,this.#o=r,this.#s=i,this.#c=a,this.#n=o??0,this.#r=e,this.#d()}get thickness(){return this.#c}setLastElement(e){return this.#r.push(e),{path:{d:this.toSVGPath()}}}removeLastElement(){return this.#r.pop(),{path:{d:this.toSVGPath()}}}toSVGPath(){let e=[];for(let{line:t}of this.#r){if(e.push(`M${Y.svgRound(t[4])} ${Y.svgRound(t[5])}`),t.length===6){e.push(`Z`);continue}if(t.length===12&&isNaN(t[6])){e.push(`L${Y.svgRound(t[10])} ${Y.svgRound(t[11])}`);continue}for(let n=6,r=t.length;n<r;n+=6){let[r,i,a,o,s,c]=t.subarray(n,n+6).map(Y.svgRound);e.push(`C${r} ${i} ${a} ${o} ${s} ${c}`)}}return e.join(``)}serialize([e,t,n,r],i){let a=[],o=[],[s,c,l,u]=this.#u(),d,f,p,m,h,g,_,v,y;switch(this.#s){case 0:y=Y._rescale,d=e,f=t+r,p=n,m=-r,h=e+s*n,g=t+(1-c-u)*r,_=e+(s+l)*n,v=t+(1-c)*r;break;case 90:y=Y._rescaleAndSwap,d=e,f=t,p=n,m=r,h=e+c*n,g=t+s*r,_=e+(c+u)*n,v=t+(s+l)*r;break;case 180:y=Y._rescale,d=e+n,f=t,p=-n,m=r,h=e+(1-s-l)*n,g=t+c*r,_=e+(1-s)*n,v=t+(c+u)*r;break;case 270:y=Y._rescaleAndSwap,d=e+n,f=t+r,p=-n,m=-r,h=e+(1-c-u)*n,g=t+(1-s-l)*r,_=e+(1-c)*n,v=t+(1-s)*r;break}for(let{line:e,points:t}of this.#r)a.push(y(e,d,f,p,m,i?Array(e.length):null)),o.push(y(t,d,f,p,m,i?Array(t.length):null));return{lines:a,points:o,rect:[h,g,_,v]}}static deserialize(e,t,n,r,i,{paths:{lines:a,points:o},rotation:s,thickness:c}){let l=[],u,d,f,p,m;switch(s){case 0:m=Y._rescale,u=-e/n,d=t/r+1,f=1/n,p=-1/r;break;case 90:m=Y._rescaleAndSwap,u=-t/r,d=-e/n,f=1/r,p=1/n;break;case 180:m=Y._rescale,u=e/n+1,d=-t/r,f=-1/n,p=1/r;break;case 270:m=Y._rescaleAndSwap,u=t/r+1,d=e/n+1,f=-1/r,p=-1/n;break}if(!a){a=[];for(let e of o){let t=e.length;if(t===2){a.push(new Float32Array([NaN,NaN,NaN,NaN,e[0],e[1]]));continue}if(t===4){a.push(new Float32Array([NaN,NaN,NaN,NaN,e[0],e[1],NaN,NaN,NaN,NaN,e[2],e[3]]));continue}let n=new Float32Array(3*(t-2));a.push(n);let[r,i,o,s]=e.subarray(0,4);n.set([NaN,NaN,NaN,NaN,r,i],0);for(let a=4;a<t;a+=2){let t=e[a],c=e[a+1];n.set(Y.createBezierPoints(r,i,o,s,t,c),(a-2)*3),[r,i,o,s]=[o,s,t,c]}}}for(let e=0,t=a.length;e<t;e++)l.push({line:m(a[e].map(e=>e??NaN),u,d,f,p),points:m(o[e].map(e=>e??NaN),u,d,f,p)});let h=new this.prototype.constructor;return h.build(l,n,r,1,s,c,i),h}#l(e=this.#c){let t=this.#n+e/2*this.#o;return this.#s%180==0?[t/this.#i,t/this.#a]:[t/this.#a,t/this.#i]}#u(){let[e,t,n,r]=this.#e,[i,a]=this.#l(0);return[e+i,t+a,n-2*i,r-2*a]}#d(){let e=this.#e=O.slice();for(let{line:t}of this.#r){if(t.length<=12){for(let n=4,r=t.length;n<r;n+=6)K.pointBoundingBox(t[n],t[n+1],e);continue}let n=t[4],r=t[5];for(let i=6,a=t.length;i<a;i+=6){let[a,o,s,c,l,u]=t.subarray(i,i+6);K.bezierBoundingBox(n,r,a,o,s,c,l,u,e),n=l,r=u}}let[t,n]=this.#l();e[0]=q(e[0]-t,0,1),e[1]=q(e[1]-n,0,1),e[2]=q(e[2]+t,0,1),e[3]=q(e[3]+n,0,1),e[2]-=e[0],e[3]-=e[1]}get box(){return this.#e}updateProperty(e,t){return e===`stroke-width`?this.#f(t):null}#f(e){let[t,n]=this.#l();this.#c=e;let[r,i]=this.#l(),[a,o]=[r-t,i-n],s=this.#e;return s[0]-=a,s[1]-=o,s[2]+=2*a,s[3]+=2*o,s}updateParentDimensions([e,t],n){let[r,i]=this.#l();this.#i=e,this.#a=t,this.#o=n;let[a,o]=this.#l(),s=a-r,c=o-i,l=this.#e;return l[0]-=s,l[1]-=c,l[2]+=2*s,l[3]+=2*c,l}updateRotation(e){return this.#t=e,{path:{transform:this.rotationTransform}}}get viewBox(){return this.#e.map(Y.svgRound).join(` `)}get defaultProperties(){let[e,t]=this.#e;return{root:{viewBox:this.viewBox},path:{"transform-origin":`${Y.svgRound(e)} ${Y.svgRound(t)}`}}}get rotationTransform(){let[,,e,t]=this.#e,n=0,r=0,i=0,a=0,o=0,s=0;switch(this.#t){case 90:r=t/e,i=-e/t,o=e;break;case 180:n=-1,a=-1,o=e,s=t;break;case 270:r=-t/e,i=e/t,s=t;break;default:return``}return`matrix(${n} ${r} ${i} ${a} ${Y.svgRound(o)} ${Y.svgRound(s)})`}getPathResizingSVGProperties([e,t,n,r]){let[i,a]=this.#l(),[o,s,c,l]=this.#e;if(Math.abs(c-i)<=Y.PRECISION||Math.abs(l-a)<=Y.PRECISION){let i=e+n/2-(o+c/2),a=t+r/2-(s+l/2);return{path:{"transform-origin":`${Y.svgRound(e)} ${Y.svgRound(t)}`,transform:`${this.rotationTransform} translate(${i} ${a})`}}}let u=(n-2*i)/(c-2*i),d=(r-2*a)/(l-2*a),f=c/n,p=l/r;return{path:{"transform-origin":`${Y.svgRound(o)} ${Y.svgRound(s)}`,transform:`${this.rotationTransform} scale(${f} ${p}) translate(${Y.svgRound(i)} ${Y.svgRound(a)}) scale(${u} ${d}) translate(${Y.svgRound(-i)} ${Y.svgRound(-a)})`}}}getPathResizedSVGProperties([e,t,n,r]){let[i,a]=this.#l(),o=this.#e,[s,c,l,u]=o;if(o[0]=e,o[1]=t,o[2]=n,o[3]=r,Math.abs(l-i)<=Y.PRECISION||Math.abs(u-a)<=Y.PRECISION){let i=e+n/2-(s+l/2),a=t+r/2-(c+u/2);for(let{line:e,points:t}of this.#r)Y._translate(e,i,a,e),Y._translate(t,i,a,t);return{root:{viewBox:this.viewBox},path:{"transform-origin":`${Y.svgRound(e)} ${Y.svgRound(t)}`,transform:this.rotationTransform||null,d:this.toSVGPath()}}}let d=(n-2*i)/(l-2*i),f=(r-2*a)/(u-2*a),p=-d*(s+i)+e+i,m=-f*(c+a)+t+a;if(d!==1||f!==1||p!==0||m!==0)for(let{line:e,points:t}of this.#r)Y._rescale(e,p,m,d,f,e),Y._rescale(t,p,m,d,f,t);return{root:{viewBox:this.viewBox},path:{"transform-origin":`${Y.svgRound(e)} ${Y.svgRound(t)}`,transform:this.rotationTransform||null,d:this.toSVGPath()}}}getPathTranslatedSVGProperties([e,t],n){let[r,i]=n,a=this.#e,o=e-a[0],s=t-a[1];if(this.#i===r&&this.#a===i)for(let{line:e,points:t}of this.#r)Y._translate(e,o,s,e),Y._translate(t,o,s,t);else{let e=this.#i/r,t=this.#a/i;this.#i=r,this.#a=i;for(let{line:n,points:r}of this.#r)Y._rescale(n,o,s,e,t,n),Y._rescale(r,o,s,e,t,r);a[2]*=e,a[3]*=t}return a[0]=e,a[1]=t,{root:{viewBox:this.viewBox},path:{d:this.toSVGPath(),"transform-origin":`${Y.svgRound(e)} ${Y.svgRound(t)}`}}}get defaultSVGProperties(){let e=this.#e;return{root:{viewBox:this.viewBox},rootClass:{draw:!0},path:{d:this.toSVGPath(),"transform-origin":`${Y.svgRound(e[0])} ${Y.svgRound(e[1])}`,transform:this.rotationTransform||null},bbox:e}}},ua=class e extends oa{constructor(e){super(),this._viewParameters=e,super.updateProperties({fill:`none`,stroke:J._defaultLineColor,"stroke-opacity":1,"stroke-width":1,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-miterlimit":10})}updateSVGProperty(e,t){e===`stroke-width`&&(t??=this[`stroke-width`],t*=this._viewParameters.realScale),super.updateSVGProperty(e,t)}clone(){let t=new e(this._viewParameters);return t.updateAll(this),t}},da=class e extends sa{static _type=`ink`;static _editorType=I.INK;static _defaultDrawingOptions=null;constructor(e){super({...e,name:`inkEditor`}),this._willKeepAspectRatio=!0,this.defaultL10nId=`pdfjs-editor-ink-editor`}static initialize(e,t){J.initialize(e,t),this._defaultDrawingOptions=new ua(t.viewParameters)}static getDefaultDrawingOptions(e){let t=this._defaultDrawingOptions.clone();return t.updateProperties(e),t}static get supportMultipleDrawings(){return!0}static get typesMap(){return W(this,`typesMap`,new Map([[L.INK_THICKNESS,`stroke-width`],[L.INK_COLOR,`stroke`],[L.INK_OPACITY,`stroke-opacity`]]))}static createDrawerInstance(e,t,n,r,i){return new ca(e,t,n,r,i,this._defaultDrawingOptions[`stroke-width`])}static deserializeDraw(e,t,n,r,i,a){return la.deserialize(e,t,n,r,i,a)}static async deserialize(e,t,n){let r=null;if(e instanceof Ui){let{data:{inkLists:t,rect:n,rotation:i,id:a,color:o,opacity:s,borderStyle:{rawWidth:c},popupRef:l,richText:u,contentsObj:d,creationDate:f,modificationDate:p},parent:{page:{pageNumber:m}}}=e;r=e={annotationType:I.INK,color:Array.from(o),thickness:c,opacity:s,paths:{points:t},boxes:null,pageIndex:m-1,rect:n.slice(0),rotation:i,annotationElementId:a,id:a,deleted:!1,popupRef:l,richText:u,comment:d?.str||null,creationDate:f,modificationDate:p}}let i=await super.deserialize(e,t,n);return i._initialData=r,e.comment&&i.setCommentData(e),i}get toolbarButtons(){return this._colorPicker||=new pi(this),[[`colorPicker`,this._colorPicker]]}get colorType(){return L.INK_COLOR}get colorAndOpacityType(){return L.INK_COLOR_AND_OPACITY}get opacityType(){return L.INK_OPACITY}updateParams(e,t){if(e===L.INK_COLOR_AND_OPACITY){this._updateColorAndOpacity(t.color,t.opacity);return}super.updateParams(e,t)}static updateDefaultParams(e,t){if(e===L.INK_COLOR_AND_OPACITY){super.updateDefaultParams(L.INK_COLOR,t.color),super.updateDefaultParams(L.INK_OPACITY,t.opacity);return}super.updateDefaultParams(e,t)}get color(){return this._drawingOptions.stroke}get opacity(){return this._drawingOptions[`stroke-opacity`]}onScaleChanging(){if(!this.parent)return;super.onScaleChanging();let{_drawId:e,_drawingOptions:t,parent:n}=this;t.updateSVGProperty(`stroke-width`),n.drawLayer.updateProperties(e,t.toSVGProperties())}static onScaleChangingWhenDrawing(){let e=this._currentParent;e&&(super.onScaleChangingWhenDrawing(),this._defaultDrawingOptions.updateSVGProperty(`stroke-width`),e.drawLayer.updateProperties(this._currentDrawId,this._defaultDrawingOptions.toSVGProperties()))}createDrawingOptions({color:t,thickness:n,opacity:r}){this._drawingOptions=e.getDefaultDrawingOptions({stroke:K.makeHexColor(...t),"stroke-width":n,"stroke-opacity":r})}serialize(e=!1){if(this.isEmpty())return null;if(this.deleted)return this.serializeDeleted();let{lines:t,points:n}=this.serializeDraw(e),{_drawingOptions:{stroke:r,"stroke-opacity":i,"stroke-width":a}}=this,o=Object.assign(super.serialize(e),{color:J._colorManager.convert(r),opacity:i,thickness:a,paths:{lines:t,points:n}});return this.addComment(o),e?(o.isCopy=!0,o):this.annotationElementId&&!this.#e(o)?null:(o.id=this.annotationElementId,o)}#e(e){let{color:t,thickness:n,opacity:r,pageIndex:i}=this._initialData;return this.hasEditedComment||this._hasBeenMoved||this._hasBeenResized||e.color.some((e,n)=>e!==t[n])||e.thickness!==n||e.opacity!==r||e.pageIndex!==i}renderAnnotationElement(e){if(this.deleted)return e.hide(),null;let{points:t,rect:n}=this.serializeDraw(!1);return e.updateEdited({rect:n,thickness:this._drawingOptions[`stroke-width`],points:t,popup:this.comment}),null}},fa=class extends la{toSVGPath(){let e=super.toSVGPath();return e.endsWith(`Z`)||(e+=`Z`),e}};T(5213);var pa=8,ma=3,ha=class{static#e={maxDim:512,sigmaSFactor:.02,sigmaR:25,kernelSize:16};static#t(e,t,n,r){return n-=e,r-=t,n===0?r>0?0:4:n===1?r+6:2-r}static#n=new Int32Array([0,1,-1,1,-1,0,-1,-1,0,-1,1,-1,1,0,1,1]);static#r(e,t,n,r,i,a,o){let s=this.#t(n,r,i,a);for(let i=0;i<8;i++){let a=(-i+s-o+16)%8,c=this.#n[2*a],l=this.#n[2*a+1];if(e[(n+c)*t+(r+l)]!==0)return a}return-1}static#i(e,t,n,r,i,a,o){let s=this.#t(n,r,i,a);for(let i=0;i<8;i++){let a=(i+s+o+16)%8,c=this.#n[2*a],l=this.#n[2*a+1];if(e[(n+c)*t+(r+l)]!==0)return a}return-1}static#a(e,t,n,r){let i=e.length,a=new Int32Array(i);for(let t=0;t<i;t++)a[t]=+(e[t]<=r);for(let e=1;e<n-1;e++)a[e*t]=a[e*t+t-1]=0;for(let e=0;e<t;e++)a[e]=a[t*n-1-e]=0;let o=1,s,c=[];for(let e=1;e<n-1;e++){s=1;for(let n=1;n<t-1;n++){let r=e*t+n,i=a[r];if(i===0)continue;let l=e,u=n;if(i===1&&a[r-1]===0)o+=1,--u;else if(i>=1&&a[r+1]===0)o+=1,u+=1,i>1&&(s=i);else{i!==1&&(s=Math.abs(i));continue}let d=[n,e],f=u===n+1,p={isHole:f,points:d,id:o,parent:0};c.push(p);let m;for(let e of c)if(e.id===s){m=e;break}m?m.isHole?p.parent=f?m.parent:s:p.parent=f?s:m.parent:p.parent=f?s:0;let h=this.#r(a,t,e,n,l,u,0);if(h===-1){a[r]=-o,a[r]!==1&&(s=Math.abs(a[r]));continue}let g=this.#n[2*h],_=this.#n[2*h+1],v=e+g,y=n+_;l=v,u=y;let b=e,x=n;for(;;){let i=this.#i(a,t,b,x,l,u,1);g=this.#n[2*i],_=this.#n[2*i+1];let c=b+g,f=x+_;d.push(f,c);let p=b*t+x;if(a[p+1]===0?a[p]=-o:a[p]===1&&(a[p]=o),c===e&&f===n&&b===v&&x===y){a[r]!==1&&(s=Math.abs(a[r]));break}else l=b,u=x,b=c,x=f}}}return c}static#o(e,t,n,r){if(n-t<=4){for(let i=t;i<n-2;i+=2)r.push(e[i],e[i+1]);return}let i=e[t],a=e[t+1],o=e[n-4]-i,s=e[n-3]-a,c=Math.hypot(o,s),l=o/c,u=s/c,d=l*a-u*i,f=s/o,p=1/c,m=Math.atan(f),h=Math.cos(m),g=Math.sin(m),_=p*(Math.abs(h)+Math.abs(g)),v=p*(1-_+_**2),y=Math.max(Math.atan(Math.abs(g+h)*v),Math.atan(Math.abs(g-h)*v)),b=0,x=t;for(let r=t+2;r<n-2;r+=2){let t=Math.abs(d-l*e[r+1]+u*e[r]);t>b&&(x=r,b=t)}b>(c*y)**2?(this.#o(e,t,x+2,r),this.#o(e,x,n,r)):r.push(i,a)}static#s(e){let t=[],n=e.length;return this.#o(e,0,n,t),t.push(e[n-2],e[n-1]),t.length<=4?null:t}static#c(e,t,n,r,i,a){let o=new Float32Array(a**2),s=-2*r**2,c=a>>1;for(let e=0;e<a;e++){let t=(e-c)**2;for(let n=0;n<a;n++)o[e*a+n]=Math.exp((t+(n-c)**2)/s)}let l=new Float32Array(256),u=-2*i**2;for(let e=0;e<256;e++)l[e]=Math.exp(e**2/u);let d=e.length,f=new Uint8Array(d),p=new Uint32Array(256);for(let r=0;r<n;r++)for(let i=0;i<t;i++){let s=r*t+i,u=e[s],d=0,m=0;for(let s=0;s<a;s++){let f=r+s-c;if(!(f<0||f>=n))for(let n=0;n<a;n++){let r=i+n-c;if(r<0||r>=t)continue;let p=e[f*t+r],h=o[s*a+n]*l[Math.abs(p-u)];d+=p*h,m+=h}}let h=f[s]=Math.round(d/m);p[h]++}return[f,p]}static#l(e){let t=new Uint32Array(256);for(let n of e)t[n]++;return t}static#u(e){let t=e.length,n=new Uint8ClampedArray(t>>2),r=-1/0,i=1/0;for(let t=0,a=n.length;t<a;t++){let a=n[t]=e[t<<2];r=Math.max(r,a),i=Math.min(i,a)}let a=255/(r-i);for(let e=0,t=n.length;e<t;e++)n[e]=(n[e]-i)*a;return n}static#d(e){let t,n=-1/0,r=-1/0,i=e.findIndex(e=>e!==0),a=i,o=i;for(t=i;t<256;t++){let i=e[t];i>n&&(t-a>r&&(r=t-a,o=t-1),n=i,a=t)}for(t=o-1;t>=0&&!(e[t]>e[t+1]);t--);return t}static#f(e){let t=e,{width:n,height:r}=e,{maxDim:i}=this.#e,a=n,o=r;if(n>i||r>i){let s=n,c=r,l=Math.log2(Math.max(n,r)/i),u=Math.floor(l);l=l===u?u-1:u;for(let n=0;n<l;n++){a=Math.ceil(s/2),o=Math.ceil(c/2);let n=new OffscreenCanvas(a,o);n.getContext(`2d`).drawImage(e,0,0,s,c,0,0,a,o),s=a,c=o,e!==t&&e.close(),e=n.transferToImageBitmap()}let d=Math.min(i/a,i/o);a=Math.round(a*d),o=Math.round(o*d)}let s=new OffscreenCanvas(a,o).getContext(`2d`,{willReadFrequently:!0});s.fillStyle=`white`,s.fillRect(0,0,a,o),s.filter=`grayscale(1)`,s.drawImage(e,0,0,e.width,e.height,0,0,a,o);let c=s.getImageData(0,0,a,o).data;return[this.#u(c),a,o]}static extractContoursFromText(e,{fontFamily:t,fontStyle:n,fontWeight:r},i,a,o,s){let c=new OffscreenCanvas(1,1),l=c.getContext(`2d`,{alpha:!1}),u=l.font=`${n} ${r} 200px ${t}`,{actualBoundingBoxLeft:d,actualBoundingBoxRight:f,actualBoundingBoxAscent:p,actualBoundingBoxDescent:m,fontBoundingBoxAscent:h,fontBoundingBoxDescent:g,width:_}=l.measureText(e),v=1.5,y=Math.ceil(Math.max(Math.abs(d)+Math.abs(f)||0,_)*v),b=Math.ceil(Math.max(Math.abs(p)+Math.abs(m)||200,Math.abs(h)+Math.abs(g)||200)*v);c=new OffscreenCanvas(y,b),l=c.getContext(`2d`,{alpha:!0,willReadFrequently:!0}),l.font=u,l.filter=`grayscale(1)`,l.fillStyle=`white`,l.fillRect(0,0,y,b),l.fillStyle=`black`,l.fillText(e,y*(v-1)/2,b*(3-v)/2);let x=this.#u(l.getImageData(0,0,y,b).data),S=this.#l(x),C=this.#d(S),w=this.#a(x,y,b,C);return this.processDrawnLines({lines:{curves:w,width:y,height:b},pageWidth:i,pageHeight:a,rotation:o,innerMargin:s,mustSmooth:!0,areContours:!0})}static process(e,t,n,r,i){let[a,o,s]=this.#f(e),[c,l]=this.#c(a,o,s,Math.hypot(o,s)*this.#e.sigmaSFactor,this.#e.sigmaR,this.#e.kernelSize),u=this.#d(l),d=this.#a(c,o,s,u);return this.processDrawnLines({lines:{curves:d,width:o,height:s},pageWidth:t,pageHeight:n,rotation:r,innerMargin:i,mustSmooth:!0,areContours:!0})}static processDrawnLines({lines:e,pageWidth:t,pageHeight:n,rotation:r,innerMargin:i,mustSmooth:a,areContours:o}){r%180!=0&&([t,n]=[n,t]);let{curves:s,width:c,height:l}=e,u=e.thickness??0,d=[],f=Math.min(t/c,n/l),p=f/t,m=f/n,h=[];for(let{points:e}of s){let t=a?this.#s(e):e;if(!t)continue;h.push(t);let n=t.length,r=new Float32Array(n),i=new Float32Array(3*(n===2?2:n-2));if(d.push({line:i,points:r}),n===2){r[0]=t[0]*p,r[1]=t[1]*m,i.set([NaN,NaN,NaN,NaN,r[0],r[1]],0);continue}let[o,s,c,l]=t;o*=p,s*=m,c*=p,l*=m,r.set([o,s,c,l],0),i.set([NaN,NaN,NaN,NaN,o,s],0);for(let e=4;e<n;e+=2){let n=r[e]=t[e]*p,a=r[e+1]=t[e+1]*m;i.set(Y.createBezierPoints(o,s,c,l,n,a),(e-2)*3),[o,s,c,l]=[c,l,n,a]}}if(d.length===0)return null;let g=o?new fa:new la;return g.build(d,t,n,1,r,o?0:u,i),{outline:g,newCurves:h,areContours:o,thickness:u,width:c,height:l}}static async compressSignature({outlines:e,areContours:t,thickness:n,width:r,height:i}){let a=1/0,o=-1/0,s=0;for(let t of e){s+=t.length;for(let e=2,n=t.length;e<n;e++){let n=t[e]-t[e-2];a=Math.min(a,n),o=Math.max(o,n)}}let c;c=a>=-128&&o<=127?Int8Array:a>=-32768&&o<=32767?Int16Array:Int32Array;let l=e.length,u=pa+ma*l,d=new Uint32Array(u),f=0;d[f++]=u*Uint32Array.BYTES_PER_ELEMENT+(s-2*l)*c.BYTES_PER_ELEMENT,d[f++]=0,d[f++]=r,d[f++]=i,d[f++]=+!t,d[f++]=Math.max(0,Math.floor(n??0)),d[f++]=l,d[f++]=c.BYTES_PER_ELEMENT;for(let t of e)d[f++]=t.length-2,d[f++]=t[0],d[f++]=t[1];let p=new CompressionStream(`deflate-raw`),m=p.writable.getWriter();await m.ready,m.write(d);let h=c.prototype.constructor;for(let t of e){let e=new h(t.length-2);for(let n=2,r=t.length;n<r;n++)e[n-2]=t[n]-t[n-2];m.write(e)}return m.close(),(await new Response(p.readable).bytes()).toBase64()}static async decompressSignature(e){try{let t=Uint8Array.fromBase64(e),{readable:n,writable:r}=new DecompressionStream(`deflate-raw`),i=r.getWriter();await i.ready,i.write(t).then(async()=>{await i.ready,await i.close()}).catch(()=>{});let a=null,o=0;for await(let e of n)a||=new Uint8Array(new Uint32Array(e.buffer,0,4)[0]),a.set(e,o),o+=e.length;let s=new Uint32Array(a.buffer,0,a.length>>2),c=s[1];if(c!==0)throw Error(`Invalid version: ${c}`);let l=s[2],u=s[3],d=s[4]===0,f=s[5],p=s[6],m=s[7],h=[],g=(pa+ma*p)*Uint32Array.BYTES_PER_ELEMENT,_;switch(m){case Int8Array.BYTES_PER_ELEMENT:_=new Int8Array(a.buffer,g);break;case Int16Array.BYTES_PER_ELEMENT:_=new Int16Array(a.buffer,g);break;case Int32Array.BYTES_PER_ELEMENT:_=new Int32Array(a.buffer,g);break}o=0;for(let e=0;e<p;e++){let t=s[ma*e+pa],n=new Float32Array(t+2);h.push(n);for(let t=0;t<ma-1;t++)n[t]=s[ma*e+pa+t+1];for(let e=0;e<t;e++)n[e+2]=n[e]+_[o++]}return{areContours:d,thickness:f,outlines:h,width:l,height:u}}catch(e){return H(`decompressSignature: ${e}`),null}}},ga=class e extends oa{constructor(){super(),super.updateProperties({fill:J._defaultLineColor,"stroke-width":0})}clone(){let t=new e;return t.updateAll(this),t}},_a=class e extends ua{constructor(e){super(e),super.updateProperties({stroke:J._defaultLineColor,"stroke-width":1})}clone(){let t=new e(this._viewParameters);return t.updateAll(this),t}},va=class e extends sa{#e=!1;#t=null;#n=null;#r=null;static _type=`signature`;static _editorType=I.SIGNATURE;static _defaultDrawingOptions=null;constructor(e){super({...e,mustBeCommitted:!0,name:`signatureEditor`}),this._willKeepAspectRatio=!0,this.#n=e.signatureData||null,this.#t=null,this.defaultL10nId=`pdfjs-editor-signature-editor1`}static initialize(e,t){J.initialize(e,t),this._defaultDrawingOptions=new ga,this._defaultDrawnSignatureOptions=new _a(t.viewParameters)}static getDefaultDrawingOptions(e){let t=this._defaultDrawingOptions.clone();return t.updateProperties(e),t}static get supportMultipleDrawings(){return!1}static get typesMap(){return W(this,`typesMap`,new Map)}static get isDrawer(){return!1}get telemetryFinalData(){return{type:`signature`,hasDescription:!!this.#t}}static computeTelemetryFinalData(e){let t=e.get(`hasDescription`);return{hasAltText:t.get(!0)??0,hasNoAltText:t.get(!1)??0}}get isResizable(){return!0}onScaleChanging(){this._drawId!==null&&super.onScaleChanging()}render(){if(this.div)return this.div;let t,n,{_isCopy:r}=this;if(r&&(this._isCopy=!1,t=this.x,n=this.y),super.render(),this._drawId===null)if(this.#n){let{lines:t,mustSmooth:n,areContours:r,description:i,uuid:a,heightInPage:o}=this.#n,{rawDims:{pageWidth:s,pageHeight:c},rotation:l}=this.parent.viewport,u=ha.processDrawnLines({lines:t,pageWidth:s,pageHeight:c,rotation:l,innerMargin:e._INNER_MARGIN,mustSmooth:n,areContours:r});this.addSignature(u,o,i,a)}else this.div.setAttribute(`data-l10n-args`,JSON.stringify({description:``})),this.div.hidden=!0,this._uiManager.getSignature(this);else this.div.setAttribute(`data-l10n-args`,JSON.stringify({description:this.#t||``}));return r&&(this._isCopy=!0,this._moveAfterPaste(t,n)),this.div}setUuid(e){this.#r=e,this.addEditToolbar()}getUuid(){return this.#r}get description(){return this.#t}set description(e){this.#t=e,this.div&&(this.div.setAttribute(`data-l10n-args`,JSON.stringify({description:e})),super.addEditToolbar().then(t=>{t?.updateEditSignatureButton(e)}))}getSignaturePreview(){let{newCurves:e,areContours:t,thickness:n,width:r,height:i}=this.#n,a=Math.max(r,i);return{areContours:t,outline:ha.processDrawnLines({lines:{curves:e.map(e=>({points:e})),thickness:n,width:r,height:i},pageWidth:a,pageHeight:a,rotation:0,innerMargin:0,mustSmooth:!1,areContours:t}).outline}}get toolbarButtons(){return this._uiManager.signatureManager?[[`editSignature`,this._uiManager.signatureManager]]:super.toolbarButtons}addSignature(t,n,r,i){let{x:a,y:o}=this,{outline:s}=this.#n=t;this.#e=s instanceof fa,this.description=r;let c;this.#e?c=e.getDefaultDrawingOptions():(c=e._defaultDrawnSignatureOptions.clone(),c.updateProperties({"stroke-width":s.thickness})),this._addOutlines({drawOutlines:s,drawingOptions:c});let[,l]=this.pageDimensions,u=n/l;u=u>=1?.5:u,this.width*=u/this.height,this.width>=1&&(u*=.9/this.width,this.width=.9),this.height=u,this.setDims(),this.x=a,this.y=o,this.center(),this._onResized(),this.onScaleChanging(),this.rotate(),this._uiManager.addToAnnotationStorage(this),this.setUuid(i),this._reportTelemetry({action:`pdfjs.signature.inserted`,data:{hasBeenSaved:!!i,hasDescription:!!r}}),this.div.hidden=!1}getFromImage(t){let{rawDims:{pageWidth:n,pageHeight:r},rotation:i}=this.parent.viewport;return ha.process(t,n,r,i,e._INNER_MARGIN)}getFromText(t,n){let{rawDims:{pageWidth:r,pageHeight:i},rotation:a}=this.parent.viewport;return ha.extractContoursFromText(t,n,r,i,a,e._INNER_MARGIN)}getDrawnSignature(t){let{rawDims:{pageWidth:n,pageHeight:r},rotation:i}=this.parent.viewport;return ha.processDrawnLines({lines:t,pageWidth:n,pageHeight:r,rotation:i,innerMargin:e._INNER_MARGIN,mustSmooth:!1,areContours:!1})}createDrawingOptions({areContours:t,thickness:n}){t?this._drawingOptions=e.getDefaultDrawingOptions():(this._drawingOptions=e._defaultDrawnSignatureOptions.clone(),this._drawingOptions.updateProperties({"stroke-width":n}))}serialize(e=!1){if(this.isEmpty())return null;let{lines:t,points:n}=this.serializeDraw(e),{_drawingOptions:{"stroke-width":r}}=this,i=Object.assign(super.serialize(e),{isSignature:!0,areContours:this.#e,color:[0,0,0],thickness:this.#e?0:r});return this.addComment(i),e?(i.paths={lines:t,points:n},i.uuid=this.#r,i.isCopy=!0):i.lines=t,this.#t&&(i.accessibilityData={type:`Figure`,alt:this.#t}),i}static deserializeDraw(e,t,n,r,i,a){return a.areContours?fa.deserialize(e,t,n,r,i,a):la.deserialize(e,t,n,r,i,a)}static async deserialize(e,t,n){let r=await super.deserialize(e,t,n);return r.#e=e.areContours,r.description=e.accessibilityData?.alt||``,r.#r=e.uuid,r}},ya=class extends J{#e=null;#t=null;#n=null;#r=null;#i=null;#a=``;#o=null;#s=!1;#c=null;#l=!1;#u=!1;static _type=`stamp`;static _editorType=I.STAMP;constructor(e){super({...e,name:`stampEditor`}),this.#r=e.bitmapUrl,this.#i=e.bitmapFile,this.defaultL10nId=`pdfjs-editor-stamp-editor`}static initialize(e,t){J.initialize(e,t)}static isHandlingMimeForPasting(e){return et.includes(e)}static paste(e,t){t.pasteEditor({mode:I.STAMP},{bitmapFile:e.getAsFile()})}altTextFinish(){this._uiManager.useNewAltTextFlow&&(this.div.hidden=!1),super.altTextFinish()}get telemetryFinalData(){return{type:`stamp`,hasAltText:!!this.altTextData?.altText}}static computeTelemetryFinalData(e){let t=e.get(`hasAltText`);return{hasAltText:t.get(!0)??0,hasNoAltText:t.get(!1)??0}}#d(e,t=!1){if(!e){this.remove();return}this.#e=e.bitmap,t||(this.#t=e.id,this.#l=e.isSvg),e.file&&(this.#a=e.file.name),this.#m()}#f(){if(this.#n=null,this._uiManager.enableWaiting(!1),this.#o){if(this._uiManager.useNewAltTextWhenAddingImage&&this._uiManager.useNewAltTextFlow&&this.#e){this.addEditToolbar().then(()=>{this._editToolbar.hide(),this._uiManager.editAltText(this,!0)});return}if(!this._uiManager.useNewAltTextWhenAddingImage&&this._uiManager.useNewAltTextFlow&&this.#e){this._reportTelemetry({action:`pdfjs.image.image_added`,data:{alt_text_modal:!1,alt_text_type:`empty`}});try{this.mlGuessAltText()}catch{}}this.div.focus()}}async mlGuessAltText(e=null,t=!0){if(this.hasAltTextData())return null;let{mlManager:n}=this._uiManager;if(!n)throw Error(`No ML.`);if(!await n.isEnabledFor(`altText`))throw Error(`ML isn't enabled for alt text.`);let{data:r,width:i,height:a}=e||this.copyCanvas(null,null,!0).imageData,o=await n.guess({name:`altText`,request:{data:r,width:i,height:a,channels:r.length/(i*a)}});if(!o)throw Error(`No response from the AI service.`);if(o.error)throw Error(`Error from the AI service.`);if(o.cancel)return null;if(!o.output)throw Error(`No valid response from the AI service.`);let s=o.output;return await this.setGuessedAltText(s),t&&!this.hasAltTextData()&&(this.altTextData={alt:s,decorative:!1}),s}#p(){if(this.#t){this._uiManager.enableWaiting(!0),this._uiManager.imageManager.getFromId(this.#t).then(e=>this.#d(e,!0)).finally(()=>this.#f());return}if(this.#r){let e=this.#r;this.#r=null,this._uiManager.enableWaiting(!0),this.#n=this._uiManager.imageManager.getFromUrl(e).then(e=>this.#d(e)).finally(()=>this.#f());return}if(this.#i){let e=this.#i;this.#i=null,this._uiManager.enableWaiting(!0),this.#n=this._uiManager.imageManager.getFromFile(e).then(e=>this.#d(e)).finally(()=>this.#f());return}let e=document.createElement(`input`);e.type=`file`,e.accept=et.join(`,`);let t=this._uiManager._signal;this.#n=new Promise(n=>{e.addEventListener(`change`,async()=>{if(!e.files||e.files.length===0)this.remove();else{this._uiManager.enableWaiting(!0);let t=await this._uiManager.imageManager.getFromFile(e.files[0]);this._reportTelemetry({action:`pdfjs.image.image_selected`,data:{alt_text_modal:this._uiManager.useNewAltTextFlow}}),this.#d(t)}n()},{signal:t}),e.addEventListener(`cancel`,()=>{this.remove(),n()},{signal:t})}).finally(()=>this.#f()),e.click()}remove(){this.#t&&(this.#e=null,this._uiManager.imageManager.deleteId(this.#t),this.#o?.remove(),this.#o=null,this.#c&&=(clearTimeout(this.#c),null)),super.remove()}rebuild(){if(!this.parent){this.#t&&this.#p();return}super.rebuild(),this.div!==null&&(this.#t&&this.#o===null&&this.#p(),this.isAttachedToDOM||this.parent.add(this))}onceAdded(e){this._isDraggable=!0,e&&this.div.focus()}isEmpty(){return!(this.#n||this.#e||this.#r||this.#i||this.#t||this.#s)}get toolbarButtons(){return[[`altText`,this.createAltText()]]}get isResizable(){return!0}render(){if(this.div)return this.div;let e,t;return this._isCopy&&(e=this.x,t=this.y),super.render(),this.div.hidden=!0,this.createAltText(),this.#s||(this.#e?this.#m():this.#p()),this._isCopy&&this._moveAfterPaste(e,t),this._uiManager.addShouldRescale(this),this.div}setCanvas(e,t){let{id:n,bitmap:r}=this._uiManager.imageManager.getFromCanvas(e,t);t.remove(),n&&this._uiManager.imageManager.isValidId(n)&&(this.#t=n,r&&(this.#e=r),this.#s=!1,this.#m())}_onResized(){this.onScaleChanging()}onScaleChanging(){this.parent&&(this.#c!==null&&clearTimeout(this.#c),this.#c=setTimeout(()=>{this.#c=null,this.#g()},200))}#m(){let{div:e}=this,{width:t,height:n}=this.#e,[r,i]=this.pageDimensions,a=.75;if(this.width)t=this.width*r,n=this.height*i;else if(t>a*r||n>a*i){let e=Math.min(a*r/t,a*i/n);t*=e,n*=e}this._uiManager.enableWaiting(!1);let o=this.#o=document.createElement(`canvas`);o.setAttribute(`role`,`img`),this.addContainer(o),this.width=t/r,this.height=n/i,this.setDims(),this._initialOptions?.isCentered?this.center():this.fixAndSetPosition(),this._initialOptions=null,(!this._uiManager.useNewAltTextWhenAddingImage||!this._uiManager.useNewAltTextFlow||this.annotationElementId)&&(e.hidden=!1),this.#g(),this.#u||=(this.parent.addUndoableEditor(this),!0),this._reportTelemetry({action:`inserted_image`}),this.#a&&this.div.setAttribute(`aria-description`,this.#a),this.annotationElementId||this._uiManager.a11yAlert(J._l10nAlert.stamp)}copyCanvas(e,t,n=!1){e||=224;let{width:r,height:i}=this.#e,a=new $e,o=this.#e,s=r,c=i,l=null;if(t){if(r>t||i>t){let e=Math.min(t/r,t/i);s=Math.floor(r*e),c=Math.floor(i*e)}l=document.createElement(`canvas`);let e=l.width=Math.ceil(s*a.sx),n=l.height=Math.ceil(c*a.sy);this.#l||(o=this.#h(e,n));let u=l.getContext(`2d`);u.filter=this._uiManager.hcmFilter;let d=`white`,f=`#cfcfd8`;this._uiManager.hcmFilter===`none`?tt.isDarkMode&&(d=`#8f8f9d`,f=`#42414d`):f=`black`;let p=15*a.sx,m=15*a.sy,h=new OffscreenCanvas(p*2,m*2),g=h.getContext(`2d`);g.fillStyle=d,g.fillRect(0,0,p*2,m*2),g.fillStyle=f,g.fillRect(0,0,p,m),g.fillRect(p,m,p,m),u.fillStyle=u.createPattern(h,`repeat`),u.fillRect(0,0,e,n),u.drawImage(o,0,0,o.width,o.height,0,0,e,n)}let u=null;if(n){let t,n;if(a.symmetric&&o.width<e&&o.height<e)t=o.width,n=o.height;else if(o=this.#e,r>e||i>e){let a=Math.min(e/r,e/i);t=Math.floor(r*a),n=Math.floor(i*a),this.#l||(o=this.#h(t,n))}let s=new OffscreenCanvas(t,n).getContext(`2d`,{willReadFrequently:!0});s.drawImage(o,0,0,o.width,o.height,0,0,t,n),u={width:t,height:n,data:s.getImageData(0,0,t,n).data}}return{canvas:l,width:s,height:c,imageData:u}}#h(e,t){let{width:n,height:r}=this.#e,i=n,a=r,o=this.#e;for(;i>2*e||a>2*t;){let n=i,r=a;i>2*e&&(i=Math.ceil(i/2)),a>2*t&&(a=Math.ceil(a/2));let s=new OffscreenCanvas(i,a);s.getContext(`2d`).drawImage(o,0,0,n,r,0,0,i,a),o=s.transferToImageBitmap()}return o}#g(){let[e,t]=this.parentDimensions,{width:n,height:r}=this,i=new $e,a=Math.ceil(n*e*i.sx),o=Math.ceil(r*t*i.sy),s=this.#o;if(!s||s.width===a&&s.height===o)return;s.width=a,s.height=o;let c=this.#l?this.#e:this.#h(a,o),l=s.getContext(`2d`);l.filter=this._uiManager.hcmFilter,l.drawImage(c,0,0,c.width,c.height,0,0,a,o)}#_(e){if(e){if(this.#l){let e=this._uiManager.imageManager.getSvgUrl(this.#t);if(e)return e}let e=document.createElement(`canvas`);return{width:e.width,height:e.height}=this.#e,e.getContext(`2d`).drawImage(this.#e,0,0),e.toDataURL()}if(this.#l){let[e,t]=this.pageDimensions,n=Math.round(this.width*e*Fe.PDF_TO_CSS_UNITS),r=Math.round(this.height*t*Fe.PDF_TO_CSS_UNITS),i=new OffscreenCanvas(n,r);return i.getContext(`2d`).drawImage(this.#e,0,0,this.#e.width,this.#e.height,0,0,n,r),i.transferToImageBitmap()}return structuredClone(this.#e)}static async deserialize(e,t,n){let r=null,i=!1;if(e instanceof Ji){let{data:{rect:a,rotation:o,id:s,structParent:c,popupRef:l,richText:u,contentsObj:d,creationDate:f,modificationDate:p},container:m,parent:{page:{pageNumber:h}},canvas:g}=e,_,v;g?(delete e.canvas,{id:_,bitmap:v}=n.imageManager.getFromCanvas(m.id,g),g.remove()):(i=!0,e._hasNoCanvas=!0);let y=(await t._structTree.getAriaAttributes(`${P}${s}`))?.get(`aria-label`)||``;r=e={annotationType:I.STAMP,bitmapId:_,bitmap:v,pageIndex:h-1,rect:a.slice(0),rotation:o,annotationElementId:s,id:s,deleted:!1,accessibilityData:{decorative:!1,altText:y},isSvg:!1,structParent:c,popupRef:l,richText:u,comment:d?.str||null,creationDate:f,modificationDate:p}}let a=await super.deserialize(e,t,n),{rect:o,bitmap:s,bitmapUrl:c,bitmapId:l,isSvg:u,accessibilityData:d}=e;i?(n.addMissingCanvas(e.id,a),a.#s=!0):l&&n.imageManager.isValidId(l)?(a.#t=l,s&&(a.#e=s)):a.#r=c,a.#l=u;let[f,p]=a.pageDimensions;return a.width=(o[2]-o[0])/f,a.height=(o[3]-o[1])/p,d&&(a.altTextData=d),a._initialData=r,e.comment&&a.setCommentData(e),a.#u=!!r,a}serialize(e=!1,t=null){if(this.isEmpty())return null;if(this.deleted)return this.serializeDeleted();let n=Object.assign(super.serialize(e),{bitmapId:this.#t,isSvg:this.#l});if(this.addComment(n),e)return n.bitmapUrl=this.#_(!0),n.accessibilityData=this.serializeAltText(!0),n.isCopy=!0,n;let{decorative:r,altText:i}=this.serializeAltText(!1);if(!r&&i&&(n.accessibilityData={type:`Figure`,alt:i}),this.annotationElementId){let e=this.#v(n);return e.isSame?null:(e.isSameAltText?delete n.accessibilityData:n.accessibilityData.structParent=this._initialData.structParent??-1,n.id=this.annotationElementId,delete n.bitmapId,n)}if(t===null)return n;t.stamps||=new Map;let a=this.#l?(n.rect[2]-n.rect[0])*(n.rect[3]-n.rect[1]):null;if(!t.stamps.has(this.#t))t.stamps.set(this.#t,{area:a,serialized:n}),n.bitmap=this.#_(!1);else if(this.#l){let e=t.stamps.get(this.#t);a>e.area&&(e.area=a,e.serialized.bitmap.close(),e.serialized.bitmap=this.#_(!1))}return n}#v(e){let{pageIndex:t,accessibilityData:{altText:n}}=this._initialData,r=e.pageIndex===t,i=(e.accessibilityData?.alt||``)===n;return{isSame:!this.hasEditedComment&&!this._hasBeenMoved&&!this._hasBeenResized&&r&&i,isSameAltText:i}}renderAnnotationElement(e){return this.deleted?(e.hide(),null):(e.updateEdited({rect:this.getPDFRect(),popup:this.comment}),null)}},ba=class e{#e;#t=!1;#n=null;#r=null;#i=null;#a=new Map;#o=!1;#s=!1;#c=!1;#l=null;#u=null;#d=null;#f=null;#p=null;#m=-1;#h;static _initialized=!1;static#g=new Map([Qi,da,ya,aa,va].map(e=>[e._editorType,e]));constructor({uiManager:t,pageIndex:n,div:r,structTreeLayer:i,accessibilityManager:a,annotationLayer:o,drawLayer:s,textLayer:c,viewport:l,l10n:u}){let d=[...e.#g.values()];if(!e._initialized){e._initialized=!0;for(let e of d)e.initialize(u,t)}t.registerEditorTypes(d),this.#h=t,this.pageIndex=n,this.div=r,this.#e=a,this.#n=o,this.viewport=l,this.#d=c,this.drawLayer=s,this._structTree=i,this.#h.addLayer(this)}get isEmpty(){return this.#a.size===0}get isInvisible(){return this.isEmpty&&this.#h.getMode()===I.NONE}updateToolbar(e){this.#h.updateToolbar(e)}updateMode(t=this.#h.getMode()){switch(this.#S(),t){case I.NONE:this.div.classList.toggle(`nonEditing`,!0),this.disableTextSelection(),this.togglePointerEvents(!1),this.toggleAnnotationLayerPointerEvents(!0),this.disableClick();return;case I.INK:this.disableTextSelection(),this.togglePointerEvents(!0),this.enableClick();break;case I.HIGHLIGHT:this.enableTextSelection(),this.togglePointerEvents(!1),this.disableClick();break;default:this.disableTextSelection(),this.togglePointerEvents(!0),this.enableClick()}this.toggleAnnotationLayerPointerEvents(!1);let{classList:n}=this.div;if(n.toggle(`nonEditing`,!1),t===I.POPUP)n.toggle(`commentEditing`,!0);else{n.toggle(`commentEditing`,!1);for(let r of e.#g.values())n.toggle(`${r._type}Editing`,t===r._editorType)}this.div.hidden=!1}hasTextLayer(e){return e===this.#d?.div}setEditingState(e){this.#h.setEditingState(e)}addCommands(e){this.#h.addCommands(e)}cleanUndoStack(e){this.#h.cleanUndoStack(e)}toggleDrawing(e=!1){this.div.classList.toggle(`drawing`,!e)}togglePointerEvents(e=!1){this.div.classList.toggle(`disabled`,!e)}toggleAnnotationLayerPointerEvents(e=!1){this.#n?.togglePointerEvents(e)}get#_(){return this.#a.size===0?this.#h.getEditors(this.pageIndex):this.#a.values()}async enable(){this.#c=!0,this.div.tabIndex=0,this.togglePointerEvents(!0),this.div.classList.toggle(`nonEditing`,!1),this.#p?.abort(),this.#p=null;let e=new Set;for(let t of this.#_)t.enableEditing(),t.show(!0),t.annotationElementId&&(this.#h.removeChangedExistingAnnotation(t),e.add(t.annotationElementId));let t=this.#n;if(t)for(let n of t.getEditableAnnotations()){if(n.hide(),this.#h.isDeletedAnnotationElement(n.data.id)||e.has(n.data.id))continue;let t=await this.deserialize(n);t&&(this.addOrRebuild(t),t.enableEditing())}this.#c=!1,this.#h._eventBus.dispatch(`editorsrendered`,{source:this,pageNumber:this.pageIndex+1})}disable(){if(this.#s=!0,this.div.tabIndex=-1,this.togglePointerEvents(!1),this.div.classList.toggle(`nonEditing`,!0),this.#d&&!this.#p){this.#p=new AbortController;let e=this.#h.combinedSignal(this.#p);this.#d.div.addEventListener(`pointerdown`,e=>{let{clientX:t,clientY:n,timeStamp:r}=e;if(r-this.#m>500){this.#m=r;return}this.#m=-1;let{classList:i}=this.div;i.toggle(`getElements`,!0);let a=document.elementsFromPoint(t,n);if(i.toggle(`getElements`,!1),!this.div.contains(a[0]))return;let o,s=RegExp(`^${F}[0-9]+$`);for(let e of a)if(s.test(e.id)){o=e.id;break}if(!o)return;let c=this.#a.get(o);c?.annotationElementId===null&&(Ge(e),c.dblclick(e))},{signal:e,capture:!0})}let t=this.#n,n=[];if(t){let e=new Map,r=new Map;for(let t of this.#_){if(t.disableEditing(),!t.annotationElementId){n.push(t);continue}if(t.serialize()!==null){e.set(t.annotationElementId,t);continue}else r.set(t.annotationElementId,t);this.getEditableAnnotation(t.annotationElementId)?.show(),t.remove()}for(let n of t.getEditableAnnotations()){let{id:t}=n.data;if(this.#h.isDeletedAnnotationElement(t)){n.updateEdited({deleted:!0});continue}let i=r.get(t);if(i){i.resetAnnotationElement(n),i.show(!1),n.show();continue}i=e.get(t),i&&(this.#h.addChangedExistingAnnotation(i),i.renderAnnotationElement(n)&&i.show(!1)),n.show()}}this.#S(),this.isEmpty&&(this.div.hidden=!0);let{classList:r}=this.div;for(let t of e.#g.values())r.remove(`${t._type}Editing`);this.disableTextSelection(),this.toggleAnnotationLayerPointerEvents(!0),t?.updateFakeAnnotations(n),this.#s=!1}getEditableAnnotation(e){return this.#n?.getEditableAnnotation(e)||null}setActiveEditor(e){this.#h.getActive()!==e&&this.#h.setActiveEditor(e)}enableTextSelection(){if(this.div.tabIndex=-1,this.#d?.div&&!this.#f){this.#f=new AbortController;let e=this.#h.combinedSignal(this.#f);this.#d.div.addEventListener(`pointerdown`,this.#v.bind(this),{signal:e}),this.#d.div.classList.add(`highlighting`)}}disableTextSelection(){this.div.tabIndex=0,this.#d?.div&&this.#f&&(this.#f.abort(),this.#f=null,this.#d.div.classList.remove(`highlighting`))}#v(e){this.#h.unselectAll();let{target:t}=e;if(t===this.#d.div||(t.getAttribute(`role`)===`img`||t.classList.contains(`endOfContent`)||t.classList.contains(`textLayerImages`)||t.classList.contains(`textLayerImagePlaceholder`))&&this.#d.div.contains(t)){let{isMac:t}=G.platform;if(e.button!==0||e.ctrlKey&&t)return;this.#h.showAllEditors(`highlight`,!0,!0),this.#d.div.classList.add(`free`),this.toggleDrawing(),aa.startHighlighting(this,this.#h.direction===`ltr`,{target:this.#d.div,x:e.x,y:e.y}),this.#d.div.addEventListener(`pointerup`,()=>{this.#d.div.classList.remove(`free`),this.toggleDrawing(!0)},{once:!0,signal:this.#h._signal}),e.preventDefault()}}enableClick(){if(this.#r)return;this.#r=new AbortController;let e=this.#h.combinedSignal(this.#r);this.div.addEventListener(`pointerdown`,this.pointerdown.bind(this),{signal:e});let t=this.pointerup.bind(this);this.div.addEventListener(`pointerup`,t,{signal:e}),this.div.addEventListener(`pointercancel`,t,{signal:e})}disableClick(){this.#r?.abort(),this.#r=null}attach(e){this.#a.set(e.id,e);let{annotationElementId:t}=e;t&&this.#h.isDeletedAnnotationElement(t)&&this.#h.removeDeletedAnnotationElement(e)}detach(e){this.#a.delete(e.id),this.#e?.removePointerInTextLayer(e.contentDiv),!this.#s&&e.annotationElementId&&this.#h.addDeletedAnnotationElement(e)}remove(e){this.detach(e),this.#h.removeEditor(e),e.div.remove(),e.isAttachedToDOM=!1}changeParent(e){e.parent!==this&&(e.parent&&e.annotationElementId&&(this.#h.addDeletedAnnotationElement(e),J.deleteAnnotationElement(e),e.annotationElementId=null),this.attach(e),e.parent?.detach(e),e.setParent(this),e.div&&e.isAttachedToDOM&&(e.div.remove(),this.div.append(e.div)))}add(e){if(!(e.parent===this&&e.isAttachedToDOM)){if(this.changeParent(e),this.#h.addEditor(e),this.attach(e),!e.isAttachedToDOM){let t=e.render();this.div.append(t),e.isAttachedToDOM=!0}e.fixAndSetPosition(),e.onceAdded(!this.#c),this.#h.addToAnnotationStorage(e),e._reportTelemetry(e.telemetryInitialData)}}moveEditorInDOM(e){if(!e.isAttachedToDOM)return;let{activeElement:t}=document;e.div.contains(t)&&!this.#i&&(e._focusEventsAllowed=!1,this.#i=setTimeout(()=>{this.#i=null,e.div.contains(document.activeElement)?e._focusEventsAllowed=!0:(e.div.addEventListener(`focusin`,()=>{e._focusEventsAllowed=!0},{once:!0,signal:this.#h._signal}),t.focus())},0)),e._structTreeParentId=this.#e?.moveElementInDOM(this.div,e.div,e.contentDiv,!0)}addOrRebuild(e){e.needsToBeRebuilt()?(e.parent||=this,e.rebuild(),e.show()):this.add(e)}addUndoableEditor(e){this.addCommands({cmd:()=>e._uiManager.rebuild(e),undo:()=>{e.remove()},mustExec:!1})}getEditorByUID(e){for(let t of this.#a.values())if(t.uid===e)return t;return null}get#y(){return e.#g.get(this.#h.getMode())}combinedSignal(e){return this.#h.combinedSignal(e)}#b(e){let t=this.#y;return t?new t.prototype.constructor(e):null}canCreateNewEmptyEditor(){return this.#y?.canCreateNewEmptyEditor()}async pasteEditor(e,t){this.updateToolbar(e),await this.#h.updateMode(e.mode);let{offsetX:n,offsetY:r}=this.#x(),i=this.#h.getId(),a=this.#b({parent:this,id:i,x:n,y:r,uiManager:this.#h,isCentered:!0,...t});a&&this.add(a)}async deserialize(t){return await e.#g.get(t.annotationType??t.annotationEditorType)?.deserialize(t,this,this.#h)||null}createAndAddNewEditor(e,t,n={}){let r=this.#h.getId(),i=this.#b({parent:this,id:r,x:e.offsetX,y:e.offsetY,uiManager:this.#h,isCentered:t,...n});return i&&this.add(i),i}get boundingClientRect(){return this.div.getBoundingClientRect()}#x(){let{x:e,y:t,width:n,height:r}=this.boundingClientRect,i=Math.max(0,e),a=Math.max(0,t),o=Math.min(window.innerWidth,e+n),s=Math.min(window.innerHeight,t+r),c=(i+o)/2-e,l=(a+s)/2-t,[u,d]=this.viewport.rotation%180==0?[c,l]:[l,c];return{offsetX:u,offsetY:d}}addNewEditor(e={}){this.createAndAddNewEditor(this.#x(),!0,e)}setSelected(e){this.#h.setSelected(e)}toggleSelected(e){this.#h.toggleSelected(e)}unselect(e){this.#h.unselect(e)}pointerup(e){let{isMac:t}=G.platform;if(e.button!==0||e.ctrlKey&&t||e.target!==this.div||!this.#o||(this.#o=!1,this.#y?.isDrawer&&this.#y.supportMultipleDrawings))return;if(!this.#t){this.#t=!0;return}let n=this.#h.getMode();if(n===I.STAMP||n===I.POPUP||n===I.SIGNATURE){this.#h.unselectAll();return}this.createAndAddNewEditor(e,!1)}pointerdown(e){if(this.#h.getMode()===I.HIGHLIGHT&&this.enableTextSelection(),this.#o){this.#o=!1;return}let{isMac:t}=G.platform;if(e.button!==0||e.ctrlKey&&t||e.target!==this.div)return;if(this.#o=!0,this.#y?.isDrawer){this.startDrawingSession(e);return}let n=this.#h.getActive();this.#t=!n||n.isEmpty()}startDrawingSession(e){if(this.div.focus({preventScroll:!0}),this.#l){this.#y.startDrawing(this,this.#h,!1,e);return}this.#h.setCurrentDrawingSession(this),this.#l=new AbortController;let t=this.#h.combinedSignal(this.#l);this.div.addEventListener(`blur`,({relatedTarget:e})=>{e&&!this.div.contains(e)&&(this.#u=null,this.commitOrRemove())},{signal:t}),this.#y.startDrawing(this,this.#h,!1,e)}pause(e){if(e){let{activeElement:e}=document;this.div.contains(e)&&(this.#u=e);return}this.#u&&setTimeout(()=>{this.#u?.focus(),this.#u=null},0)}endDrawingSession(e=!1){return this.#l?(this.#h.setCurrentDrawingSession(null),this.#l.abort(),this.#l=null,this.#u=null,this.#y.endDrawing(e)):null}findNewParent(e,t,n){let r=this.#h.findParent(t,n);return r===null||r===this?!1:(r.changeParent(e),!0)}commitOrRemove(){return this.#l?(this.endDrawingSession(),!0):!1}onScaleChanging(){this.#l&&this.#y.onScaleChangingWhenDrawing(this)}destroy(){this.commitOrRemove(),this.#h.getActive()?.parent===this&&(this.#h.commitOrRemove(),this.#h.setActiveEditor(null)),this.#i&&=(clearTimeout(this.#i),null);for(let e of this.#a.values())this.#e?.removePointerInTextLayer(e.contentDiv),e.setParent(null),e.isAttachedToDOM=!1,e.div.remove();this.div=null,this.#a.clear(),this.#h.removeLayer(this)}#S(){for(let e of this.#a.values())e.isEmpty()&&e.remove()}async render({viewport:e}){this.viewport=e,Qe(this.div,e);for(let e of this.#h.getEditors(this.pageIndex))this.add(e),e.rebuild();await this.#h.findClonesForPage(this),this.div.hidden=this.isEmpty,this.updateMode()}update({viewport:e}){this.#h.commitOrRemove(),this.#S();let t=this.viewport.rotation,n=e.rotation;if(this.viewport=e,Qe(this.div,{rotation:n}),t!==n)for(let e of this.#a.values())e.rotate(n)}get pageDimensions(){let{pageWidth:e,pageHeight:t}=this.viewport.rawDims;return[e,t]}get scale(){return this.#h.viewParameters.realScale}};function xa(e,t){return e===t?0:e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}function Sa(e){return e?e.nodeType===Node.ELEMENT_NODE?e.closest(`.textLayer`):e.parentElement?.closest(`.textLayer`)||null:null}function Ca(e,t,n,r){if(e===n)return t<=r;let i=e.compareDocumentPosition(n);return i&Node.DOCUMENT_POSITION_FOLLOWING?!0:i&Node.DOCUMENT_POSITION_PRECEDING?!1:null}function wa(e,t,n){if(e.nodeType!==Node.ELEMENT_NODE||!e.classList.contains(`textLayer`)||t!==e.childNodes.length)return{container:e,offset:t};let r=e.lastChild;return r?.nodeType===Node.ELEMENT_NODE&&r.classList.contains(`endOfContent`)&&(r=r.previousSibling),!r||!n.contains(r)?null:r.nodeType===Node.TEXT_NODE?{container:r,offset:r.textContent.length}:{container:r,offset:r.childNodes.length}}var Ta=class e{#e=null;#t=new Map;#n=null;#r=null;#i=null;#a=null;#o=new Map;static#s=0;static#c=0;static#l=null;static#u=new Set;static#d=!1;static#f=new Set;static#p=new WeakMap;constructor({filterFactory:t=null,pageColors:n=null,pageIndex:r,textLayer:i=null}){if(this.pageIndex=r,this.#r=t,this.#i=n,i){let t=e.#p.get(i);if(t?.selectionDiv&&(t.selectionDiv.remove(),e.#u.delete(t.selectionDiv)),e.#p.set(i,{drawLayer:this}),e.#f.add(i),this.#n=i,this.#a=new MutationObserver(t=>{if(!(!this.#e||!this.#n?.isConnected||!e.#h())){for(let{addedNodes:n}of t)for(let t of n)if(t.nodeType===Node.ELEMENT_NODE&&t.classList.contains(`endOfContent`)){e.#_();return}}}),this.#a.observe(i,{childList:!0}),e.#l===null){e.#l=new AbortController;let{signal:t}=e.#l;document.addEventListener(`selectionchange`,e.#_.bind(e),{signal:t}),document.addEventListener(`pointerdown`,()=>{e.#d=!0},{signal:t}),document.addEventListener(`pointerup`,()=>{e.#d=!1},{signal:t}),window.addEventListener(`blur`,()=>{e.#d=!1},{signal:t})}}}setParent(t){if(!this.#e){this.#e=t,this.#n?.isConnected&&e.#h()&&e.#_();return}if(this.#e!==t){if(this.#t.size>0)for(let e of this.#t.values())e.remove(),t.append(e);this.#e=t}}static#m(e){let t=this.#p.get(e);t?.selectionDiv&&(t.selectionDiv.remove(),this.#u.delete(t.selectionDiv),t.selectionDiv=null,t.path=null)}static#h(){let e=document.getSelection();return!!e&&!e.isCollapsed}static#g(){return[...this.#f].filter(e=>e.isConnected).sort(xa)}static#_(){let t=document.getSelection();if(!t||t.isCollapsed){for(let e of this.#u)e.remove();this.#u.clear();return}let n=new WeakMap,r=this.#g(),i=[];for(let e=0,n=t.rangeCount;e<n;e++){let n=t.getRangeAt(e);if(n.collapsed)continue;let{startContainer:a,startOffset:o,endContainer:s,endOffset:c}=n,l=Sa(a),u=Sa(s),d=l===null,f=u===null;if(this.#d&&d!==f)return;if(t.rangeCount===1){let{anchorNode:e,anchorOffset:n,focusNode:r,focusOffset:i}=t,d=Sa(e),f=Sa(r),p=Ca(e,n,r,i);d&&f&&p!==null&&(p?(a=e,o=n,l=d,s=r,c=i,u=f):(a=r,o=i,l=f,s=e,c=n,u=d))}let p=r.filter(e=>n.intersectsNode(e));if(p.length===0)continue;let m=!1;if(l||(l=p[0],a=l,o=0,m=!0),u||(u=p.at(-1),s=u,c=u.childNodes.length,m=!0),s.nodeType===Node.ELEMENT_NODE){if(s.classList.contains(`endOfContent`)){let e=s.previousSibling;if(!e)continue;s=e,c=e.nodeType===Node.TEXT_NODE?e.textContent.length:e.childNodes.length}else if(s.classList.contains(`textLayer`)&&s.childNodes.length===c){let e=wa(s,c,u);if(!e)continue;s=e.container,c=e.offset}}if(a.nodeType===Node.ELEMENT_NODE){let e=wa(a,o,l);if(!e)continue;a=e.container,o=e.offset}if(l===u&&!m&&p.includes(l)){i.push([n,l]);continue}for(let e of p){let t=e.firstChild;if(!t)continue;let n=document.createRange();if(e===l?n.setStart(a,o):n.setStartBefore(t),e===u)n.setEnd(s,c);else{let t=e.lastChild;if(!t)continue;if(t.nodeType===Node.ELEMENT_NODE&&t.classList.contains(`endOfContent`)){let e=t.previousSibling;if(!e)continue;n.setEndAfter(e)}else n.setEndAfter(t)}n.collapsed||i.push([n,e])}}let a=new Set(i.map(e=>e[1]));for(let e of this.#f)a.has(e)||this.#m(e);for(let[t,r]of i){let i=e.#p.get(r);if(!i)continue;let a=n.get(r);if(!a){let e=r.getBoundingClientRect();a=(t,n,r,i)=>({x:(t-e.x)/e.width,y:(n-e.y)/e.height,width:r/e.width,height:i/e.height}),n.set(r,a)}let o=[];for(let{x:e,y:n,width:r,height:i}of t.getClientRects())r===0||i===0||({x:e,y:n,width:r,height:i}=a(e,n,r,i),!(r===1&&i===1)&&o.push(`M${e} ${n} h${r} v${i} h-${r} Z`));if(o.length===0)continue;let s=i.drawLayer,c=i.selectionDiv,l=i.path;if(!c){let t=`clip_selection_${e.#c++}`;c=document.createElement(`div`),c.className=`selection`,c.style.clipPath=`url(#${t})`;let n=s.#r?.createSelectionStyle(s.#i);if(n)for(let[e,t]of Object.entries(n))c.style.setProperty(e,t);let r=e._svgFactory.create(1,1,!0);r.setAttribute(`aria-hidden`,`true`),r.setAttribute(`width`,`100%`),r.setAttribute(`height`,`100%`);let a=e._svgFactory.createElement(`clipPath`);a.setAttribute(`id`,t),a.setAttribute(`clipPathUnits`,`objectBoundingBox`),l=e._svgFactory.createElement(`path`),a.append(l),r.append(a),c.append(r),i.path=l,i.selectionDiv=c}!c.parentNode&&s.#e&&(s.#e.append(c),this.#u.add(c)),l.setAttribute(`d`,o.join(` `))}}static get _svgFactory(){return W(this,`_svgFactory`,new vi)}static#v(e,[t,n,r,i]){let{style:a}=e;a.top=`${100*n}%`,a.left=`${100*t}%`,a.width=`${100*r}%`,a.height=`${100*i}%`}#y(){let t=e._svgFactory.create(1,1,!0);return this.#e.append(t),t.setAttribute(`aria-hidden`,`true`),t}#b(t,n){let r=e._svgFactory.createElement(`clipPath`);t.append(r);let i=`clip_${n}`;r.setAttribute(`id`,i),r.setAttribute(`clipPathUnits`,`objectBoundingBox`);let a=e._svgFactory.createElement(`use`);return r.append(a),a.setAttribute(`href`,`#${n}`),a.classList.add(`clip`),i}#x(e,t){for(let[n,r]of Object.entries(t))r===null?e.removeAttribute(n):e.setAttribute(n,r)}draw(t,n=!1,r=!1){let i=e.#s++,a=this.#y(),o=e._svgFactory.createElement(`defs`);a.append(o);let s=e._svgFactory.createElement(`path`);o.append(s);let c=`path_${i}`;s.setAttribute(`id`,c),s.setAttribute(`vector-effect`,`non-scaling-stroke`),n&&this.#o.set(i,s);let l=r?this.#b(o,c):null,u=e._svgFactory.createElement(`use`);return a.append(u),u.setAttribute(`href`,`#${c}`),this.updateProperties(a,t),this.#t.set(i,a),{id:i,clipPathId:`url(#${l})`}}drawOutline(t,n){let r=e.#s++,i=this.#y(),a=e._svgFactory.createElement(`defs`);i.append(a);let o=e._svgFactory.createElement(`path`);a.append(o);let s=`path_${r}`;o.setAttribute(`id`,s),o.setAttribute(`vector-effect`,`non-scaling-stroke`);let c;if(n){let t=e._svgFactory.createElement(`mask`);a.append(t),c=`mask_${r}`,t.setAttribute(`id`,c),t.setAttribute(`maskUnits`,`objectBoundingBox`);let n=e._svgFactory.createElement(`rect`);t.append(n),n.setAttribute(`width`,`1`),n.setAttribute(`height`,`1`),n.setAttribute(`fill`,`white`);let i=e._svgFactory.createElement(`use`);t.append(i),i.setAttribute(`href`,`#${s}`),i.setAttribute(`stroke`,`none`),i.setAttribute(`fill`,`black`),i.setAttribute(`fill-rule`,`nonzero`),i.classList.add(`mask`)}let l=e._svgFactory.createElement(`use`);i.append(l),l.setAttribute(`href`,`#${s}`),c&&l.setAttribute(`mask`,`url(#${c})`);let u=l.cloneNode();return i.append(u),l.classList.add(`mainOutline`),u.classList.add(`secondaryOutline`),this.updateProperties(i,t),this.#t.set(r,i),r}finalizeDraw(e,t){this.#o.delete(e),this.updateProperties(e,t)}updateProperties(t,n){if(!n)return;let{root:r,bbox:i,rootClass:a,path:o}=n,s=typeof t==`number`?this.#t.get(t):t;if(s){if(r&&this.#x(s,r),i&&e.#v(s,i),a){let{classList:e}=s;for(let[t,n]of Object.entries(a))e.toggle(t,n)}if(o){let e=s.firstElementChild.firstElementChild;this.#x(e,o)}}}updateParent(e,t){if(t===this)return;let n=this.#t.get(e);n&&(t.#e.append(n),this.#t.delete(e),t.#t.set(e,n))}remove(e){this.#o.delete(e),this.#e!==null&&(this.#t.get(e).remove(),this.#t.delete(e))}destroy(){this.#e=null;for(let e of this.#t.values())e.remove();this.#t.clear(),this.#o.clear(),this.#a?.disconnect(),this.#a=null,this.#n&&=(e.#p.get(this.#n)?.drawLayer===this&&(e.#m(this.#n),e.#p.delete(this.#n),e.#f.delete(this.#n),e.#f.size===0&&(e.#l?.abort(),e.#l=null,e.#d=!1)),null)}};function Ea(e){return`${(e*100).toFixed(2)}%`}var Da=class e{#e=[];#t=new Map;#n=null;#r=0;#i=0;#a=0;static#o=null;constructor(e,t,n,r){this.#r=e,this.#e=t,this.#i=n.rawDims.pageWidth,this.#a=n.rawDims.pageHeight,this.#n=r}render(){let t=document.createElement(`div`);t.className=`textLayerImages`;for(let e=0;e<this.#e.length;e+=6){let n=this.#s(this.#e.subarray(e,e+6));n&&t.append(n)}return t.addEventListener(`contextmenu`,t=>{if(!(t.target instanceof HTMLCanvasElement))return;let n=t.target,r=this.#t.get(n);if(!r)return;let i=e.#o?.deref();if(i===n)return;i&&(i.width=0,i.height=0),e.#o=new WeakRef(n);let{inverseTransform:a,x1:o,y1:s,width:c,height:l}=r,u=this.#n(),d=Math.ceil(o*u.width),f=Math.ceil(s*u.height),p=Math.floor((o+c/this.#i)*u.width),m=Math.floor((s+l/this.#a)*u.height);n.width=p-d,n.height=m-f;let h=n.getContext(`2d`);h.setTransform(...a),h.translate(-d,-f),h.drawImage(u,0,0)}),t}#s([e,t,n,r,i,a]){let o=Math.hypot((i-e)*this.#i,(a-t)*this.#a),s=Math.hypot((n-e)*this.#i,(r-t)*this.#a);if(o<this.#r||s<this.#r)return null;let c=[(i-e)*this.#i/o,(a-t)*this.#a/o,(n-e)*this.#i/s,(r-t)*this.#a/s,0,0],l=K.inverseTransform(c),u=document.createElement(`canvas`);return u.className=`textLayerImagePlaceholder`,u.width=0,u.height=0,Object.assign(u.style,{opacity:0,position:`absolute`,left:Ea(e),top:Ea(t),width:Ea(o/this.#i),height:Ea(s/this.#a),transformOrigin:`0% 0%`,transform:`matrix(${c.join(`,`)})`}),this.#t.set(u,{inverseTransform:l,width:o,height:s,x1:e,y1:t}),u}};globalThis._pdfjsTestingUtils={HighlightOutliner:ta},globalThis.pdfjsLib={AbortException:be,AnnotationEditorLayer:ba,AnnotationEditorParamsType:L,AnnotationEditorType:I,AnnotationEditorUIManager:St,AnnotationLayer:Xi,AnnotationMode:N,AnnotationType:B,applyOpacity:rt,build:di,ColorPicker:fi,createValidAbsoluteUrl:de,CSSConstants:nt,DOMSVGFactory:vi,DrawLayer:Ta,FeatureTest:G,fetchData:Ie,findContrastColor:lt,getDocument:ti,getFilenameFromUrl:Be,getPdfFilenameFromUrl:Ve,getRGB:Je,getRGBA:qe,getUuid:De,GlobalWorkerOptions:Hr,ImageKind:ee,InvalidPDFException:_e,isDataScheme:Re,isPdfFile:ze,isValidExplicitDest:ln,makeArr:ke,makeMap:Ae,makeObj:je,MathClamp:q,noContextMenu:We,normalizeUnicode:Ee,OPS:V,OutputScale:$e,PasswordResponses:ie,PDFDataRangeTransport:ri,PDFDateString:Ke,PDFWorker:oi,PermissionFlag:R,PixelsPerInch:Fe,RenderingCancelledException:Le,renderRichText:ut,ResponseException:ve,setLayerDimensions:Qe,shadow:W,SignatureExtractor:ha,stopEvent:Ge,SupportedImageMimeTypes:et,TextLayer:$r,TextLayerImages:Da,TouchManager:Tt,updateUrlHash:fe,Util:K,VerbosityLevel:ne,version:ui,XfaLayer:Pe};var Oa={9306(e,t,n){var r=n(4901),i=n(6823),a=TypeError;e.exports=function(e){if(r(e))return e;throw new a(i(e)+` is not a function`)}},3506(e,t,n){var r=n(3925),i=String,a=TypeError;e.exports=function(e){if(r(e))return e;throw new a(`Can't set `+i(e)+` as a prototype`)}},7080(e,t,n){var r=n(4402).has;e.exports=function(e){return r(e),e}},3463(e){var t=TypeError;e.exports=function(e){if(typeof e==`string`)return e;throw new t(`Argument is not a string`)}},4328(e,t,n){var r=n(4995),i=new r.WeakMap,a=r.set,o=r.remove;e.exports=function(e){return a(i,e,1),o(i,e),e}},6557(e,t,n){var r=n(4995).has;e.exports=function(e){return r(e),e}},6469(e,t,n){var r=n(8227),i=n(2360),a=n(4913).f,o=r(`unscopables`),s=Array.prototype;s[o]===void 0&&a(s,o,{configurable:!0,value:i(null)}),e.exports=function(e){s[o][e]=!0}},679(e,t,n){var r=n(1625),i=TypeError;e.exports=function(e,t){if(r(t,e))return e;throw new i(`Incorrect invocation`)}},8551(e,t,n){var r=n(34),i=String,a=TypeError;e.exports=function(e){if(r(e))return e;throw new a(i(e)+` is not an object`)}},7811(e){e.exports=typeof ArrayBuffer<`u`&&typeof DataView<`u`},7394(e,t,n){var r=n(4576),i=n(6706),a=n(2195),o=r.ArrayBuffer,s=r.TypeError;e.exports=o&&i(o.prototype,`byteLength`,`get`)||function(e){if(a(e)!==`ArrayBuffer`)throw new s(`ArrayBuffer expected`);return e.byteLength}},3238(e,t,n){var r=n(4576),i=n(7811),a=n(7394),o=r.DataView;e.exports=function(e){if(!i||a(e)!==0)return!1;try{return new o(e),!1}catch{return!0}}},5169(e,t,n){var r=n(3238),i=TypeError;e.exports=function(e){if(r(e))throw new i(`ArrayBuffer is detached`);return e}},5636(e,t,n){var r=n(4576),i=n(9504),a=n(6706),o=n(7696),s=n(5169),c=n(7394),l=n(4483),u=n(1548),d=r.structuredClone,f=r.ArrayBuffer,p=r.DataView,m=Math.max,h=Math.min,g=f.prototype,_=p.prototype,v=i(g.slice),y=a(g,`resizable`,`get`),b=a(g,`maxByteLength`,`get`),x=i(_.getInt8),S=i(_.setInt8);e.exports=(u||l)&&function(e,t,n){var r=c(e),i=t===void 0?r:o(t),a=!y||!y(e),g;if(s(e),u&&(e=d(e,{transfer:[e]}),r===i&&(n||a)))return e;if(r>=i&&(!n||a))g=v(e,0,i);else{g=new f(i,n&&!a&&b?{maxByteLength:m(i,b(e))}:void 0);for(var _=new p(e),C=new p(g),w=h(i,r),T=0;T<w;T++)S(C,T,x(_,T))}return u||l(e),g}},4644(e,t,n){var r=n(7811),i=n(3724),a=n(4576),o=n(4901),s=n(34),c=n(9297),l=n(6955),u=n(6823),d=n(6699),f=n(6840),p=n(2106),m=n(1625),h=n(2787),g=n(2967),_=n(8227),v=n(3392),y=n(1181),b=y.enforce,x=y.get,S=a.Int8Array,C=S&&S.prototype,w=a.Uint8ClampedArray,T=w&&w.prototype,E=S&&h(S),D=C&&h(C),O=Object.prototype,k=a.TypeError,A=_(`toStringTag`),j=v(`TYPED_ARRAY_TAG`),M=`TypedArrayConstructor`,N=r&&!!g&&l(a.opera)!==`Opera`,P=!1,F,I,L,R={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},z={BigInt64Array:8,BigUint64Array:8},ee=function(e){if(!s(e))return!1;var t=l(e);return t===`DataView`||c(R,t)||c(z,t)},B=function(e){var t=h(e);if(s(t)){var n=x(t);return n&&c(n,M)?n[M]:B(t)}},te=function(e){if(!s(e))return!1;var t=l(e);return c(R,t)||c(z,t)},ne=function(e){if(te(e))return e;throw new k(`Target is not a typed array`)},V=function(e){if(o(e)&&(!g||m(E,e)))return e;throw new k(u(e)+` is not a typed array constructor`)},re=function(e,t,n,r){if(i){if(n)for(var o in R){var s=a[o];if(s&&c(s.prototype,e))try{delete s.prototype[e]}catch{try{s.prototype[e]=t}catch{}}}(!D[e]||n)&&f(D,e,n?t:N&&C[e]||t,r)}},ie=function(e,t,n){var r,o;if(i){if(g){if(n){for(r in R)if(o=a[r],o&&c(o,e))try{delete o[e]}catch{}}if(!E[e]||n)try{return f(E,e,n?t:N&&E[e]||t)}catch{}else return}for(r in R)o=a[r],o&&(!o[e]||n)&&f(o,e,t)}};for(F in R)I=a[F],L=I&&I.prototype,L?b(L)[M]=I:N=!1;for(F in z)I=a[F],L=I&&I.prototype,L&&(b(L)[M]=I);if((!N||!o(E)||E===Function.prototype)&&(E=function(){throw new k(`Incorrect invocation`)},N))for(F in R)a[F]&&g(a[F],E);if((!N||!D||D===O)&&(D=E.prototype,N))for(F in R)a[F]&&g(a[F].prototype,D);if(N&&h(T)!==D&&g(T,D),i&&!c(D,A))for(F in P=!0,p(D,A,{configurable:!0,get:function(){return s(this)?this[j]:void 0}}),R)a[F]&&d(a[F].prototype,j,F);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:N,TYPED_ARRAY_TAG:P&&j,aTypedArray:ne,aTypedArrayConstructor:V,exportTypedArrayMethod:re,exportTypedArrayStaticMethod:ie,getTypedArrayConstructor:B,isView:ee,isTypedArray:te,TypedArray:E,TypedArrayPrototype:D}},9617(e,t,n){var r=n(5397),i=n(5610),a=n(6198),o=function(e){return function(t,n,o){var s=r(t),c=a(s);if(c===0)return!e&&-1;var l=i(o,c),u;if(e&&n!==n){for(;c>l;)if(u=s[l++],u!==u)return!0}else for(;c>l;l++)if((e||l in s)&&s[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},4527(e,t,n){var r=n(3724),i=n(4376),a=TypeError,o=Object.getOwnPropertyDescriptor;e.exports=r&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}()?function(e,t){if(i(e)&&!o(e,`length`).writable)throw new a(`Cannot set read only .length`);return e.length=t}:function(e,t){return e.length=t}},7680(e,t,n){e.exports=n(9504)([].slice)},6319(e,t,n){var r=n(8551),i=n(9539);e.exports=function(e,t,n,a){try{return a?t(r(n)[0],n[1]):t(n)}catch(t){i(e,`throw`,t)}}},2195(e,t,n){var r=n(9504),i=r({}.toString),a=r(``.slice);e.exports=function(e){return a(i(e),8,-1)}},6955(e,t,n){var r=n(2140),i=n(4901),a=n(2195),o=n(8227)(`toStringTag`),s=Object,c=a(function(){return arguments}())===`Arguments`,l=function(e,t){try{return e[t]}catch{}};e.exports=r?a:function(e){var t,n,r;return e===void 0?`Undefined`:e===null?`Null`:typeof(n=l(t=s(e),o))==`string`?n:c?a(t):(r=a(t))===`Object`&&i(t.callee)?`Arguments`:r}},7740(e,t,n){var r=n(9297),i=n(5031),a=n(7347),o=n(4913);e.exports=function(e,t,n){for(var s=i(t),c=o.f,l=a.f,u=0;u<s.length;u++){var d=s[u];!r(e,d)&&!(n&&r(n,d))&&c(e,d,l(t,d))}}},2211(e,t,n){e.exports=!n(9039)(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},2529(e){e.exports=function(e,t){return{value:e,done:t}}},6699(e,t,n){var r=n(3724),i=n(4913),a=n(6980);e.exports=r?function(e,t,n){return i.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},6980(e){e.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}},4659(e,t,n){var r=n(3724),i=n(4913),a=n(6980);e.exports=function(e,t,n){r?i.f(e,t,a(0,n)):e[t]=n}},2106(e,t,n){var r=n(283),i=n(4913);e.exports=function(e,t,n){return n.get&&r(n.get,t,{getter:!0}),n.set&&r(n.set,t,{setter:!0}),i.f(e,t,n)}},6840(e,t,n){var r=n(4901),i=n(4913),a=n(283),o=n(9433);e.exports=function(e,t,n,s){s||={};var c=s.enumerable,l=s.name===void 0?t:s.name;if(r(n)&&a(n,l,s),s.global)c?e[t]=n:o(t,n);else{try{s.unsafe?e[t]&&(c=!0):delete e[t]}catch{}c?e[t]=n:i.f(e,t,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},6279(e,t,n){var r=n(6840);e.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}},9433(e,t,n){var r=n(4576),i=Object.defineProperty;e.exports=function(e,t){try{i(r,e,{value:t,configurable:!0,writable:!0})}catch{r[e]=t}return t}},3724(e,t,n){e.exports=!n(9039)(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})},4483(e,t,n){var r=n(4576),i=n(9429),a=n(1548),o=r.structuredClone,s=r.ArrayBuffer,c=r.MessageChannel,l=!1,u,d,f,p;if(a)l=function(e){o(e,{transfer:[e]})};else if(s)try{c||(u=i(`worker_threads`),u&&(c=u.MessageChannel)),c&&(d=new c,f=new s(2),p=function(e){d.port1.postMessage(null,[e])},f.byteLength===2&&(p(f),f.byteLength===0&&(l=p)))}catch{}e.exports=l},4055(e,t,n){var r=n(4576),i=n(34),a=r.document,o=i(a)&&i(a.createElement);e.exports=function(e){return o?a.createElement(e):{}}},6837(e){var t=TypeError,n=9007199254740991;e.exports=function(e){if(e>n)throw new t(`Maximum allowed index exceeded`);return e}},8727(e){e.exports=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`]},6193(e,t,n){e.exports=n(4215)===`NODE`},2839(e,t,n){var r=n(4576).navigator,i=r&&r.userAgent;e.exports=i?String(i):``},9519(e,t,n){var r=n(4576),i=n(2839),a=r.process,o=r.Deno,s=a&&a.versions||o&&o.version,c=s&&s.v8,l,u;c&&(l=c.split(`.`),u=l[0]>0&&l[0]<4?1:+(l[0]+l[1])),!u&&i&&(l=i.match(/Edge\/(\d+)/),(!l||l[1]>=74)&&(l=i.match(/Chrome\/(\d+)/),l&&(u=+l[1]))),e.exports=u},4215(e,t,n){var r=n(4576),i=n(2839),a=n(2195),o=function(e){return i.slice(0,e.length)===e};e.exports=(function(){return o(`Bun/`)?`BUN`:o(`Cloudflare-Workers`)?`CLOUDFLARE`:o(`Deno/`)?`DENO`:o(`Node.js/`)?`NODE`:r.Bun&&typeof Bun.version==`string`?`BUN`:r.Deno&&typeof Deno.version==`object`?`DENO`:a(r.process)===`process`?`NODE`:r.window&&r.document?`BROWSER`:`REST`})()},6518(e,t,n){var r=n(4576),i=n(7347).f,a=n(6699),o=n(6840),s=n(9433),c=n(7740),l=n(2796);e.exports=function(e,t){var n=e.target,u=e.global,d=e.stat,f,p=u?r:d?r[n]||s(n,{}):r[n]&&r[n].prototype,m,h,g,_;if(p)for(m in t){if(g=t[m],e.dontCallGetSet?(_=i(p,m),h=_&&_.value):h=p[m],f=l(u?m:n+(d?`.`:`#`)+m,e.forced),!f&&h!==void 0){if(typeof g==typeof h)continue;c(g,h)}(e.sham||h&&h.sham)&&a(g,`sham`,!0),o(p,m,g,e)}}},9039(e){e.exports=function(e){try{return!!e()}catch{return!0}}},8745(e,t,n){var r=n(616),i=Function.prototype,a=i.apply,o=i.call;e.exports=typeof Reflect==`object`&&Reflect.apply||(r?o.bind(a):function(){return o.apply(a,arguments)})},6080(e,t,n){var r=n(7476),i=n(9306),a=n(616),o=r(r.bind);e.exports=function(e,t){return i(e),t===void 0?e:a?o(e,t):function(){return e.apply(t,arguments)}}},616(e,t,n){e.exports=!n(9039)(function(){var e=function(){}.bind();return typeof e!=`function`||e.hasOwnProperty(`prototype`)})},9565(e,t,n){var r=n(616),i=Function.prototype.call;e.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},350(e,t,n){var r=n(3724),i=n(9297),a=Function.prototype,o=r&&Object.getOwnPropertyDescriptor,s=i(a,`name`);e.exports={EXISTS:s,PROPER:s&&function(){}.name===`something`,CONFIGURABLE:s&&(!r||r&&o(a,`name`).configurable)}},6706(e,t,n){var r=n(9504),i=n(9306);e.exports=function(e,t,n){try{return r(i(Object.getOwnPropertyDescriptor(e,t)[n]))}catch{}}},7476(e,t,n){var r=n(2195),i=n(9504);e.exports=function(e){if(r(e)===`Function`)return i(e)}},9504(e,t,n){var r=n(616),i=Function.prototype,a=i.call,o=r&&i.bind.bind(a,a);e.exports=r?o:function(e){return function(){return a.apply(e,arguments)}}},9429(e,t,n){var r=n(4576),i=n(6193);e.exports=function(e){if(i){try{return r.process.getBuiltinModule(e)}catch{}try{return Function(`return require("`+e+`")`)()}catch{}}}},7751(e,t,n){var r=n(4576),i=n(4901),a=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?a(r[e]):r[e]&&r[e][t]}},1767(e){e.exports=function(e){return{iterator:e,next:e.next,done:!1}}},851(e,t,n){var r=n(6955),i=n(5966),a=n(4117),o=n(6269),s=n(8227)(`iterator`);e.exports=function(e){if(!a(e))return i(e,s)||i(e,`@@iterator`)||o[r(e)]}},81(e,t,n){var r=n(9565),i=n(9306),a=n(8551),o=n(6823),s=n(851),c=TypeError;e.exports=function(e,t){var n=arguments.length<2?s(e):t;if(i(n))return a(r(n,e));throw new c(o(e)+` is not iterable`)}},5966(e,t,n){var r=n(9306),i=n(4117);e.exports=function(e,t){var n=e[t];return i(n)?void 0:r(n)}},3789(e,t,n){var r=n(9306),i=n(8551),a=n(9565),o=n(1291),s=n(1767),c=`Invalid size`,l=RangeError,u=TypeError,d=Math.max,f=function(e,t){this.set=e,this.size=d(t,0),this.has=r(e.has),this.keys=r(e.keys)};f.prototype={getIterator:function(){return s(i(a(this.keys,this.set)))},includes:function(e){return a(this.has,this.set,e)}},e.exports=function(e){i(e);var t=+e.size;if(t!==t)throw new u(c);var n=o(t);if(n<0)throw new l(c);return new f(e,n)}},4576(e){var t=function(e){return e&&e.Math===Math&&e};e.exports=t(typeof globalThis==`object`&&globalThis)||t(typeof window==`object`&&window)||t(typeof self==`object`&&self)||t(typeof global==`object`&&global)||t(typeof this==`object`&&this)||(function(){return this})()||Function(`return this`)()},9297(e,t,n){var r=n(9504),i=n(8981),a=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return a(i(e),t)}},421(e){e.exports={}},397(e,t,n){e.exports=n(7751)(`document`,`documentElement`)},5917(e,t,n){var r=n(3724),i=n(9039),a=n(4055);e.exports=!r&&!i(function(){return Object.defineProperty(a(`div`),"a",{get:function(){return 7}}).a!==7})},7055(e,t,n){var r=n(9504),i=n(9039),a=n(2195),o=Object,s=r(``.split);e.exports=i(function(){return!o(`z`).propertyIsEnumerable(0)})?function(e){return a(e)===`String`?s(e,``):o(e)}:o},3706(e,t,n){var r=n(9504),i=n(4901),a=n(7629),o=r(Function.toString);i(a.inspectSource)||(a.inspectSource=function(e){return o(e)}),e.exports=a.inspectSource},1181(e,t,n){var r=n(8622),i=n(4576),a=n(34),o=n(6699),s=n(9297),c=n(7629),l=n(6119),u=n(421),d=`Object already initialized`,f=i.TypeError,p=i.WeakMap,m,h,g,_=function(e){return g(e)?h(e):m(e,{})},v=function(e){return function(t){var n;if(!a(t)||(n=h(t)).type!==e)throw new f(`Incompatible receiver, `+e+` required`);return n}};if(r||c.state){var y=c.state||=new p;y.get=y.get,y.has=y.has,y.set=y.set,m=function(e,t){if(y.has(e))throw new f(d);return t.facade=e,y.set(e,t),t},h=function(e){return y.get(e)||{}},g=function(e){return y.has(e)}}else{var b=l(`state`);u[b]=!0,m=function(e,t){if(s(e,b))throw new f(d);return t.facade=e,o(e,b,t),t},h=function(e){return s(e,b)?e[b]:{}},g=function(e){return s(e,b)}}e.exports={set:m,get:h,has:g,enforce:_,getterFor:v}},4209(e,t,n){var r=n(8227),i=n(6269),a=r(`iterator`),o=Array.prototype;e.exports=function(e){return e!==void 0&&(i.Array===e||o[a]===e)}},4376(e,t,n){var r=n(2195);e.exports=Array.isArray||function(e){return r(e)===`Array`}},1108(e,t,n){var r=n(6955);e.exports=function(e){var t=r(e);return t===`BigInt64Array`||t===`BigUint64Array`}},4901(e){var t=typeof document==`object`&&document.all;e.exports=t===void 0&&t!==void 0?function(e){return typeof e==`function`||e===t}:function(e){return typeof e==`function`}},2796(e,t,n){var r=n(9039),i=n(4901),a=/#|\.prototype\./,o=function(e,t){var n=c[s(e)];return n===u?!0:n===l?!1:i(t)?r(t):!!t},s=o.normalize=function(e){return String(e).replace(a,`.`).toLowerCase()},c=o.data={},l=o.NATIVE=`N`,u=o.POLYFILL=`P`;e.exports=o},4117(e){e.exports=function(e){return e==null}},34(e,t,n){var r=n(4901);e.exports=function(e){return typeof e==`object`?e!==null:r(e)}},3925(e,t,n){var r=n(34);e.exports=function(e){return r(e)||e===null}},6395(e){e.exports=!1},5810(e,t,n){var r=n(34),i=n(1181).get;e.exports=function(e){if(!r(e))return!1;var t=i(e);return!!t&&t.type===`RawJSON`}},757(e,t,n){var r=n(7751),i=n(4901),a=n(1625),o=n(7040),s=Object;e.exports=o?function(e){return typeof e==`symbol`}:function(e){var t=r(`Symbol`);return i(t)&&a(t.prototype,s(e))}},507(e,t,n){var r=n(9565);e.exports=function(e,t,n){for(var i=n?e:e.iterator,a=e.next,o,s;!(o=r(a,i)).done;)if(s=t(o.value),s!==void 0)return s}},2652(e,t,n){var r=n(6080),i=n(9565),a=n(8551),o=n(6823),s=n(4209),c=n(6198),l=n(1625),u=n(81),d=n(851),f=n(9539),p=TypeError,m=function(e,t){this.stopped=e,this.result=t},h=m.prototype;e.exports=function(e,t,n){var g=n&&n.that,_=!!(n&&n.AS_ENTRIES),v=!!(n&&n.IS_RECORD),y=!!(n&&n.IS_ITERATOR),b=!!(n&&n.INTERRUPTED),x=r(t,g),S,C,w,T,E,D,O,k=function(e){var t=S;return S=void 0,t&&f(t,`normal`),new m(!0,e)},A=function(e){return _?(a(e),b?x(e[0],e[1],k):x(e[0],e[1])):b?x(e,k):x(e)};if(v)S=e.iterator;else if(y)S=e;else{if(C=d(e),!C)throw new p(o(e)+` is not iterable`);if(s(C)){for(w=0,T=c(e);T>w;w++)if(E=A(e[w]),E&&l(h,E))return E;return new m(!1)}S=u(e,C)}for(D=v?e.next:S.next;!(O=i(D,S)).done;){var j=O.value;try{E=A(j)}catch(e){if(S)f(S,`throw`,e);else throw e}if(typeof E==`object`&&E&&l(h,E))return E}return new m(!1)}},1385(e,t,n){var r=n(9539);e.exports=function(e,t,n){for(var i=e.length-1;i>=0;i--)if(e[i]!==void 0)try{n=r(e[i].iterator,t,n)}catch(e){t=`throw`,n=e}if(t===`throw`)throw n;return n}},9539(e,t,n){var r=n(9565),i=n(8551),a=n(5966);e.exports=function(e,t,n){var o,s;i(e);try{if(o=a(e,`return`),!o){if(t===`throw`)throw n;return n}o=r(o,e)}catch(e){s=!0,o=e}if(t===`throw`)throw n;if(s)throw o;return i(o),n}},9462(e,t,n){var r=n(9565),i=n(2360),a=n(6699),o=n(6279),s=n(8227),c=n(1181),l=n(5966),u=n(7657).IteratorPrototype,d=n(2529),f=n(9539),p=n(1385),m=s(`toStringTag`),h=`IteratorHelper`,g=`WrapForValidIterator`,_=`normal`,v=`throw`,y=c.set,b=function(e){var t=c.getterFor(e?g:h);return o(i(u),{next:function(){var n=t(this);if(e)return n.nextHandler();if(n.done)return d(void 0,!0);try{var r=n.nextHandler();return n.returnHandlerResult?r:d(r,n.done)}catch(e){throw n.done=!0,e}},return:function(){var n=t(this),i=n.iterator,a=n.done;if(n.done=!0,e){var o=l(i,`return`);return o?r(o,i):d(void 0,!0)}if(a)return d(void 0,!0);if(n.inner)try{f(n.inner.iterator,_)}catch(e){return f(i,v,e)}if(n.openIters)try{p(n.openIters,_)}catch(e){if(i)return f(i,v,e);throw e}return i&&f(i,_),d(void 0,!0)}})},x=b(!0),S=b(!1);a(S,m,`Iterator Helper`),e.exports=function(e,t,n){var r=function(r,i){i?(i.iterator=r.iterator,i.next=r.next):i=r,i.type=t?g:h,i.returnHandlerResult=!!n,i.nextHandler=e,i.counter=0,i.done=!1,y(this,i)};return r.prototype=t?x:S,r}},684(e){e.exports=function(e,t){var n=typeof Iterator==`function`&&Iterator.prototype[e];if(n)try{n.call({next:null},t).next()}catch{return!0}}},4549(e,t,n){var r=n(4576);e.exports=function(e,t){var n=r.Iterator,i=n&&n.prototype,a=i&&i[e],o=!1;if(a)try{a.call({next:function(){return{done:!0}},return:function(){o=!0}},-1)}catch(e){e instanceof t||(o=!1)}if(!o)return a}},7657(e,t,n){var r=n(9039),i=n(4901),a=n(34),o=n(2360),s=n(2787),c=n(6840),l=n(8227),u=n(6395),d=l(`iterator`),f=!1,p,m,h;[].keys&&(h=[].keys(),`next`in h?(m=s(s(h)),m!==Object.prototype&&(p=m)):f=!0),!a(p)||r(function(){var e={};return p[d].call(e)!==e})?p={}:u&&(p=o(p)),i(p[d])||c(p,d,function(){return this}),e.exports={IteratorPrototype:p,BUGGY_SAFARI_ITERATORS:f}},6269(e){e.exports={}},6198(e,t,n){var r=n(8014);e.exports=function(e){return r(e.length)}},283(e,t,n){var r=n(9504),i=n(9039),a=n(4901),o=n(9297),s=n(3724),c=n(350).CONFIGURABLE,l=n(3706),u=n(1181),d=u.enforce,f=u.get,p=String,m=Object.defineProperty,h=r(``.slice),g=r(``.replace),_=r([].join),v=s&&!i(function(){return m(function(){},`length`,{value:8}).length!==8}),y=String(String).split(`String`),b=e.exports=function(e,t,n){h(p(t),0,7)===`Symbol(`&&(t=`[`+g(p(t),/^Symbol\(([^)]*)\).*$/,`$1`)+`]`),n&&n.getter&&(t=`get `+t),n&&n.setter&&(t=`set `+t),(!o(e,`name`)||c&&e.name!==t)&&(s?m(e,`name`,{value:t,configurable:!0}):e.name=t),v&&n&&o(n,`arity`)&&e.length!==n.arity&&m(e,`length`,{value:n.arity});try{n&&o(n,`constructor`)&&n.constructor?s&&m(e,`prototype`,{writable:!1}):e.prototype&&=void 0}catch{}var r=d(e);return o(r,`source`)||(r.source=_(y,typeof t==`string`?t:``)),e};Function.prototype.toString=b(function(){return a(this)&&f(this).source||l(this)},`toString`)},2248(e,t,n){var r=n(9504),i=Map.prototype;e.exports={Map,set:r(i.set),get:r(i.get),has:r(i.has),remove:r(i.delete),proto:i}},741(e){var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?n:t)(r)}},7819(e,t,n){e.exports=!n(9039)(function(){var e=`9007199254740993`,t=JSON.rawJSON(e);return!JSON.isRawJSON(t)||JSON.stringify(t)!==e})},6043(e,t,n){var r=n(9306),i=TypeError,a=function(e){var t,n;this.promise=new e(function(e,r){if(t!==void 0||n!==void 0)throw new i(`Bad Promise constructor`);t=e,n=r}),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new a(e)}},2360(e,t,n){var r=n(8551),i=n(6801),a=n(8727),o=n(421),s=n(397),c=n(4055),l=n(6119),u=`>`,d=`<`,f=`prototype`,p=`script`,m=l(`IE_PROTO`),h=function(){},g=function(e){return d+p+u+e+d+`/`+p+u},_=function(e){e.write(g(``)),e.close();var t=e.parentWindow.Object;return e=null,t},v=function(){var e=c(`iframe`),t=`java`+p+`:`,n;return e.style.display=`none`,s.appendChild(e),e.src=String(t),n=e.contentWindow.document,n.open(),n.write(g(`document.F=Object`)),n.close(),n.F},y,b=function(){try{y=new ActiveXObject(`htmlfile`)}catch{}b=typeof document<`u`?document.domain&&y?_(y):v():_(y);for(var e=a.length;e--;)delete b[f][a[e]];return b()};o[m]=!0,e.exports=Object.create||function(e,t){var n;return e===null?n=b():(h[f]=r(e),n=new h,h[f]=null,n[m]=e),t===void 0?n:i.f(n,t)}},6801(e,t,n){var r=n(3724),i=n(8686),a=n(4913),o=n(8551),s=n(5397),c=n(1072);t.f=r&&!i?Object.defineProperties:function(e,t){o(e);for(var n=s(t),r=c(t),i=r.length,l=0,u;i>l;)a.f(e,u=r[l++],n[u]);return e}},4913(e,t,n){var r=n(3724),i=n(5917),a=n(8686),o=n(8551),s=n(6969),c=TypeError,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,d=`enumerable`,f=`configurable`,p=`writable`;t.f=r?a?function(e,t,n){if(o(e),t=s(t),o(n),typeof e==`function`&&t===`prototype`&&`value`in n&&p in n&&!n[p]){var r=u(e,t);r&&r[p]&&(e[t]=n.value,n={configurable:f in n?n[f]:r[f],enumerable:d in n?n[d]:r[d],writable:!1})}return l(e,t,n)}:l:function(e,t,n){if(o(e),t=s(t),o(n),i)try{return l(e,t,n)}catch{}if(`get`in n||`set`in n)throw new c(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},7347(e,t,n){var r=n(3724),i=n(9565),a=n(8773),o=n(6980),s=n(5397),c=n(6969),l=n(9297),u=n(5917),d=Object.getOwnPropertyDescriptor;t.f=r?d:function(e,t){if(e=s(e),t=c(t),u)try{return d(e,t)}catch{}if(l(e,t))return o(!i(a.f,e,t),e[t])}},8480(e,t,n){var r=n(1828),i=n(8727).concat(`length`,`prototype`);t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},3717(e,t){t.f=Object.getOwnPropertySymbols},2787(e,t,n){var r=n(9297),i=n(4901),a=n(8981),o=n(6119),s=n(2211),c=o(`IE_PROTO`),l=Object,u=l.prototype;e.exports=s?l.getPrototypeOf:function(e){var t=a(e);if(r(t,c))return t[c];var n=t.constructor;return i(n)&&t instanceof n?n.prototype:t instanceof l?u:null}},1625(e,t,n){e.exports=n(9504)({}.isPrototypeOf)},1828(e,t,n){var r=n(9504),i=n(9297),a=n(5397),o=n(9617).indexOf,s=n(421),c=r([].push);e.exports=function(e,t){var n=a(e),r=0,l=[],u;for(u in n)!i(s,u)&&i(n,u)&&c(l,u);for(;t.length>r;)i(n,u=t[r++])&&(~o(l,u)||c(l,u));return l}},1072(e,t,n){var r=n(1828),i=n(8727);e.exports=Object.keys||function(e){return r(e,i)}},8773(e,t){var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor;t.f=r&&!n.call({1:2},1)?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},2967(e,t,n){var r=n(6706),i=n(34),a=n(7750),o=n(3506);e.exports=Object.setPrototypeOf||(`__proto__`in{}?function(){var e=!1,t={},n;try{n=r(Object.prototype,`__proto__`,`set`),n(t,[]),e=t instanceof Array}catch{}return function(t,r){return a(t),o(r),i(t)&&(e?n(t,r):t.__proto__=r),t}}():void 0)},4270(e,t,n){var r=n(9565),i=n(4901),a=n(34),o=TypeError;e.exports=function(e,t){var n,s;if(t===`string`&&i(n=e.toString)&&!a(s=r(n,e))||i(n=e.valueOf)&&!a(s=r(n,e))||t!==`string`&&i(n=e.toString)&&!a(s=r(n,e)))return s;throw new o(`Can't convert object to primitive value`)}},5031(e,t,n){var r=n(7751),i=n(9504),a=n(8480),o=n(3717),s=n(8551),c=i([].concat);e.exports=r(`Reflect`,`ownKeys`)||function(e){var t=a.f(s(e)),n=o.f;return n?c(t,n(e)):t}},8235(e,t,n){var r=n(9504),i=n(9297),a=SyntaxError,o=parseInt,s=String.fromCharCode,c=r(``.charAt),l=r(``.slice),u=r(/./.exec),d={'\\"':`"`,"\\\\":`\\`,"\\/":`/`,"\\b":`\b`,"\\f":`\f`,"\\n":`
`,"\\r":`\r`,"\\t":` `},f=/^[\da-f]{4}$/i,p=/^[\u0000-\u001F]$/;e.exports=function(e,t){for(var n=!0,r=``;t<e.length;){var m=c(e,t);if(m===`\\`){var h=l(e,t,t+2);if(i(d,h))r+=d[h],t+=2;else if(h===`\\u`){t+=2;var g=l(e,t,t+4);if(!u(f,g))throw new a(`Bad Unicode escape at: `+t);r+=s(o(g,16)),t+=4}else throw new a(`Unknown escape sequence: "`+h+`"`)}else if(m===`"`){n=!1,t++;break}else{if(u(p,m))throw new a(`Bad control character in string literal at: `+t);r+=m,t++}}if(n)throw new a(`Unterminated string at: `+t);return{value:r,end:t}}},7750(e,t,n){var r=n(4117),i=TypeError;e.exports=function(e){if(r(e))throw new i(`Can't call method on `+e);return e}},9286(e,t,n){var r=n(4402),i=n(8469),a=r.Set,o=r.add;e.exports=function(e){var t=new a;return i(e,function(e){o(t,e)}),t}},3440(e,t,n){var r=n(7080),i=n(4402),a=n(9286),o=n(5170),s=n(3789),c=n(8469),l=n(507),u=i.has,d=i.remove;e.exports=function(e){var t=r(this),n=s(e),i=a(t);return o(i)<=n.size?c(i,function(e){n.includes(e)&&d(i,e)}):l(n.getIterator(),function(e){u(i,e)&&d(i,e)}),i}},4402(e,t,n){var r=n(9504),i=Set.prototype;e.exports={Set,add:r(i.add),has:r(i.has),remove:r(i.delete),proto:i}},8750(e,t,n){var r=n(7080),i=n(4402),a=n(5170),o=n(3789),s=n(8469),c=n(507),l=i.Set,u=i.add,d=i.has;e.exports=function(e){var t=r(this),n=o(e),i=new l;return a(t)>n.size?c(n.getIterator(),function(e){d(t,e)&&u(i,e)}):s(t,function(e){n.includes(e)&&u(i,e)}),i}},4449(e,t,n){var r=n(7080),i=n(4402).has,a=n(5170),o=n(3789),s=n(8469),c=n(507),l=n(9539);e.exports=function(e){var t=r(this),n=o(e);if(a(t)<=n.size)return s(t,function(e){if(n.includes(e))return!1},!0)!==!1;var u=n.getIterator();return c(u,function(e){if(i(t,e))return l(u.iterator,`normal`,!1)})!==!1}},3838(e,t,n){var r=n(7080),i=n(5170),a=n(8469),o=n(3789);e.exports=function(e){var t=r(this),n=o(e);return i(t)>n.size?!1:a(t,function(e){if(!n.includes(e))return!1},!0)!==!1}},8527(e,t,n){var r=n(7080),i=n(4402).has,a=n(5170),o=n(3789),s=n(507),c=n(9539);e.exports=function(e){var t=r(this),n=o(e);if(a(t)<n.size)return!1;var l=n.getIterator();return s(l,function(e){if(!i(t,e))return c(l.iterator,`normal`,!1)})!==!1}},8469(e,t,n){var r=n(9504),i=n(507),a=n(4402),o=a.Set,s=a.proto,c=r(s.forEach),l=r(s.keys),u=l(new o).next;e.exports=function(e,t,n){return n?i({iterator:l(e),next:u},t):c(e,t)}},4916(e,t,n){var r=n(7751),i=function(e){return{size:e,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},a=function(e){return{size:e,has:function(){return!0},keys:function(){throw Error(`e`)}}};e.exports=function(e,t){var n=r(`Set`);try{new n()[e](i(0));try{return new n()[e](i(-1)),!1}catch{if(!t)return!0;try{return new n()[e](a(-1/0)),!1}catch{return t(new n([1,2])[e](a(1/0)))}}}catch{return!1}}},9835(e){e.exports=function(e){try{var t=new Set,n=t[e]({size:0,has:function(){return!0},keys:function(){return Object.defineProperty({},"next",{get:function(){return t.clear(),t.add(4),function(){return{done:!0}}}})}});return n.size===1&&n.values().next().value===4}catch{return!1}}},5170(e,t,n){e.exports=n(6706)(n(4402).proto,`size`,`get`)||function(e){return e.size}},3650(e,t,n){var r=n(7080),i=n(4402),a=n(9286),o=n(3789),s=n(507),c=i.add,l=i.has,u=i.remove;e.exports=function(e){var t=r(this),n=o(e).getIterator(),i=a(t);return s(n,function(e){l(t,e)?u(i,e):c(i,e)}),i}},4204(e,t,n){var r=n(7080),i=n(4402).add,a=n(9286),o=n(3789),s=n(507);e.exports=function(e){var t=r(this),n=o(e).getIterator(),c=a(t);return s(n,function(e){i(c,e)}),c}},6119(e,t,n){var r=n(5745),i=n(3392),a=r(`keys`);e.exports=function(e){return a[e]||(a[e]=i(e))}},7629(e,t,n){var r=n(6395),i=n(4576),a=n(9433),o=`__core-js_shared__`,s=e.exports=i[o]||a(o,{});(s.versions||=[]).push({version:`3.49.0`,mode:r?`pure`:`global`,copyright:`© 20132025 Denis Pushkarev (zloirock.ru), 20252026 CoreJS Company (core-js.io). All rights reserved.`,license:`https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE`,source:`https://github.com/zloirock/core-js`})},5745(e,t,n){var r=n(7629);e.exports=function(e,t){return r[e]||(r[e]=t||{})}},533(e,t,n){var r=n(9504),i=n(8014),a=n(655),o=n(2333),s=n(7750),c=r(o),l=r(``.slice),u=Math.ceil,d=function(e){return function(t,n,r){var o=a(s(t)),d=i(n),f=o.length;if(d<=f)return o;var p=r===void 0?` `:a(r),m,h;return p===``?o:(m=d-f,h=c(p,u(m/p.length)),h.length>m&&(h=l(h,0,m)),e?o+h:h+o)}};e.exports={start:d(!1),end:d(!0)}},2333(e,t,n){var r=n(1291),i=n(655),a=n(7750),o=RangeError,s=Math.floor;e.exports=function(e){var t=i(a(this)),n=``,c=r(e);if(c<0||c===1/0)throw new o(`Wrong number of repetitions`);for(;c>0;(c=s(c/2))&&(t+=t))c%2&&(n+=t);return n}},1548(e,t,n){var r=n(4576),i=n(9039),a=n(9519),o=n(4215),s=r.structuredClone;e.exports=!!s&&!i(function(){if(o===`DENO`&&a>92||o===`NODE`&&a>94||o===`BROWSER`&&a>97)return!1;var e=new ArrayBuffer(8),t=s(e,{transfer:[e]});return e.byteLength!==0||t.byteLength!==8})},4495(e,t,n){var r=n(9519),i=n(9039),a=n(4576).String;e.exports=!!Object.getOwnPropertySymbols&&!i(function(){var e=Symbol(`symbol detection`);return!a(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41})},5610(e,t,n){var r=n(1291),i=Math.max,a=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):a(n,t)}},5854(e,t,n){var r=n(2777),i=TypeError;e.exports=function(e){var t=r(e,`number`);if(typeof t==`number`)throw new i(`Can't convert number to bigint`);return BigInt(t)}},7696(e,t,n){var r=n(1291),i=n(8014),a=RangeError;e.exports=function(e){if(e===void 0)return 0;var t=r(e),n=i(t);if(t!==n)throw new a(`Wrong length or index`);return n}},5397(e,t,n){var r=n(7055),i=n(7750);e.exports=function(e){return r(i(e))}},1291(e,t,n){var r=n(741);e.exports=function(e){var t=+e;return t!==t||t===0?0:r(t)}},8014(e,t,n){var r=n(1291),i=Math.min;e.exports=function(e){var t=r(e);return t>0?i(t,9007199254740991):0}},8981(e,t,n){var r=n(7750),i=Object;e.exports=function(e){return i(r(e))}},2777(e,t,n){var r=n(9565),i=n(34),a=n(757),o=n(5966),s=n(4270),c=n(8227),l=TypeError,u=c(`toPrimitive`);e.exports=function(e,t){if(!i(e)||a(e))return e;var n=o(e,u),c;if(n){if(t===void 0&&(t=`default`),c=r(n,e,t),!i(c)||a(c))return c;throw new l(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),s(e,t)}},6969(e,t,n){var r=n(2777),i=n(757);e.exports=function(e){var t=r(e,`string`);return i(t)?t:t+``}},2140(e,t,n){var r=n(8227)(`toStringTag`),i={};i[r]=`z`,e.exports=String(i)===`[object z]`},655(e,t,n){var r=n(6955),i=String;e.exports=function(e){if(r(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return i(e)}},6823(e){var t=String;e.exports=function(e){try{return t(e)}catch{return`Object`}}},3392(e,t,n){var r=n(9504),i=0,a=Math.random(),o=r(1.1.toString);e.exports=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+o(++i+a,36)}},7416(e,t,n){var r=n(9039),i=n(8227),a=n(3724),o=n(6395),s=i(`iterator`);e.exports=!r(function(){var e=new URL(`b?a=1&b=2&c=3`,`https://a`),t=e.searchParams,n=new URLSearchParams(`a=1&a=2&b=3`),r=``;return e.pathname=`c%20d`,t.forEach(function(e,n){t.delete(`b`),r+=n+e}),n.delete(`a`,2),n.delete(`b`,void 0),o&&(!e.toJSON||!n.has(`a`,1)||n.has(`a`,2)||!n.has(`a`,void 0)||n.has(`b`))||!t.size&&(o||!a)||!t.sort||e.href!==`https://a/c%20d?a=1&c=3`||t.get(`c`)!==`3`||String(new URLSearchParams(`?a=1`))!==`a=1`||!t[s]||new URL(`https://a@b`).username!==`a`||new URLSearchParams(new URLSearchParams(`a=b`)).get(`a`)!==`b`||new URL(`https://тест`).host!==`xn--e1aybc`||new URL(`https://a#б`).hash!==`#%D0%B1`||r!==`a1c3`||new URL(`https://x`,void 0).host!==`x`})},7040(e,t,n){e.exports=n(4495)&&!Symbol.sham&&typeof Symbol.iterator==`symbol`},8686(e,t,n){var r=n(3724),i=n(9039);e.exports=r&&i(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})},2812(e){var t=TypeError;e.exports=function(e,n){if(e<n)throw new t(`Not enough arguments`);return e}},8622(e,t,n){var r=n(4576),i=n(4901),a=r.WeakMap;e.exports=i(a)&&/native code/.test(String(a))},4995(e,t,n){var r=n(9504),i=WeakMap.prototype;e.exports={WeakMap,set:r(i.set),get:r(i.get),has:r(i.has),remove:r(i.delete)}},8227(e,t,n){var r=n(4576),i=n(5745),a=n(9297),o=n(3392),s=n(4495),c=n(7040),l=r.Symbol,u=i(`wks`),d=c?l.for||l:l&&l.withoutSetter||o;e.exports=function(e){return a(u,e)||(u[e]=s&&a(l,e)?l[e]:d(`Symbol.`+e)),u[e]}},7452(e){e.exports=`
\v\f\r \xA0  \u2028\u2029`},6573(e,t,n){var r=n(3724),i=n(2106),a=n(3238),o=ArrayBuffer.prototype;r&&!(`detached`in o)&&i(o,`detached`,{configurable:!0,get:function(){return a(this)}})},7936(e,t,n){var r=n(6518),i=n(5636);i&&r({target:`ArrayBuffer`,proto:!0},{transferToFixedLength:function(){return i(this,arguments.length?arguments[0]:void 0,!1)}})},8100(e,t,n){var r=n(6518),i=n(5636);i&&r({target:`ArrayBuffer`,proto:!0},{transfer:function(){return i(this,arguments.length?arguments[0]:void 0,!0)}})},4423(e,t,n){var r=n(6518),i=n(9617).includes,a=n(9039),o=n(6469),s=a(function(){return![,].includes()}),c=a(function(){return[,1].includes(void 0,1)});r({target:`Array`,proto:!0,forced:s||c},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o(`includes`)},4114(e,t,n){var r=n(6518),i=n(8981),a=n(6198),o=n(4527),s=n(6837);r({target:`Array`,proto:!0,arity:1,forced:n(9039)(function(){return[].push.call({length:4294967296},1)!==4294967297})||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}()},{push:function(e){var t=i(this),n=a(t),r=arguments.length;s(n+r);for(var c=0;c<r;c++)t[n]=arguments[c],n++;return o(t,n),n}})},8111(e,t,n){var r=n(6518),i=n(4576),a=n(679),o=n(8551),s=n(4901),c=n(2787),l=n(2106),u=n(4659),d=n(9039),f=n(9297),p=n(8227),m=n(7657).IteratorPrototype,h=n(3724),g=n(6395),_=`constructor`,v=`Iterator`,y=p(`toStringTag`),b=TypeError,x=i[v],S=g||!s(x)||x.prototype!==m||!d(function(){x({})}),C=function(){if(a(this,m),c(this)===m)throw new b(`Abstract class Iterator not directly constructable`)},w=function(e,t){h?l(m,e,{configurable:!0,get:function(){return t},set:function(t){if(o(this),this===m)throw new b(`You can't redefine this property`);f(this,e)?this[e]=t:u(this,e,t)}}):m[e]=t};f(m,y)||w(y,v),(S||!f(m,_)||m[_]===Object)&&w(_,C),C.prototype=m,r({global:!0,constructor:!0,forced:S},{Iterator:C})},1148(e,t,n){var r=n(6518),i=n(9565),a=n(2652),o=n(9306),s=n(8551),c=n(1767),l=n(9539),u=n(4549)(`every`,TypeError);r({target:`Iterator`,proto:!0,real:!0,forced:u},{every:function(e){s(this);try{o(e)}catch(e){l(this,`throw`,e)}if(u)return i(u,this,e);var t=c(this),n=0;return!a(t,function(t,r){if(!e(t,n++))return r()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},2489(e,t,n){var r=n(6518),i=n(9565),a=n(9306),o=n(8551),s=n(1767),c=n(9462),l=n(6319),u=n(6395),d=n(9539),f=n(684),p=n(4549),m=!u&&!f(`filter`,function(){}),h=!u&&!m&&p(`filter`,TypeError),g=u||m||h,_=c(function(){for(var e=this.iterator,t=this.predicate,n=this.next,r,a,s;;){if(r=o(i(n,e)),a=this.done=!!r.done,a)return;if(s=r.value,l(e,t,[s,this.counter++],!0))return s}});r({target:`Iterator`,proto:!0,real:!0,forced:g},{filter:function(e){o(this);try{a(e)}catch(e){d(this,`throw`,e)}return h?i(h,this,e):new _(s(this),{predicate:e})}})},7588(e,t,n){var r=n(6518),i=n(9565),a=n(2652),o=n(9306),s=n(8551),c=n(1767),l=n(9539),u=n(4549)(`forEach`,TypeError);r({target:`Iterator`,proto:!0,real:!0,forced:u},{forEach:function(e){s(this);try{o(e)}catch(e){l(this,`throw`,e)}if(u)return i(u,this,e);var t=c(this),n=0;a(t,function(t){e(t,n++)},{IS_RECORD:!0})}})},1701(e,t,n){var r=n(6518),i=n(9565),a=n(9306),o=n(8551),s=n(1767),c=n(9462),l=n(6319),u=n(9539),d=n(684),f=n(4549),p=n(6395),m=!p&&!d(`map`,function(){}),h=!p&&!m&&f(`map`,TypeError),g=p||m||h,_=c(function(){var e=this.iterator,t=o(i(this.next,e));if(!(this.done=!!t.done))return l(e,this.mapper,[t.value,this.counter++],!0)});r({target:`Iterator`,proto:!0,real:!0,forced:g},{map:function(e){o(this);try{a(e)}catch(e){u(this,`throw`,e)}return h?i(h,this,e):new _(s(this),{mapper:e})}})},3579(e,t,n){var r=n(6518),i=n(9565),a=n(2652),o=n(9306),s=n(8551),c=n(1767),l=n(9539),u=n(4549)(`some`,TypeError);r({target:`Iterator`,proto:!0,real:!0,forced:u},{some:function(e){s(this);try{o(e)}catch(e){l(this,`throw`,e)}if(u)return i(u,this,e);var t=c(this),n=0;return a(t,function(t,r){if(e(t,n++))return r()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},9112(e,t,n){var r=n(6518),i=n(3724),a=n(4576),o=n(7751),s=n(9504),c=n(9565),l=n(4901),u=n(34),d=n(4376),f=n(9297),p=n(655),m=n(6198),h=n(4659),g=n(9039),_=n(8235),v=n(4495),y=a.JSON,b=a.Number,x=a.SyntaxError,S=y&&y.parse,C=o(`Object`,`keys`),w=Object.getOwnPropertyDescriptor,T=s(``.charAt),E=s(``.slice),D=s(/./.exec),O=s([].push),k=/^\d$/,A=/^[1-9]$/,j=/^[\d-]$/,M=/^[\t\n\r ]$/,N=0,P=1,F=function(e,t){e=p(e);var n=new z(e,0,``),r=n.parse(),i=r.value,a=n.skip(M,r.end);if(a<e.length)throw new x(`Unexpected extra character: "`+T(e,a)+`" after the parsed data at: `+a);return l(t)?I({"":i},``,t,r):i},I=function(e,t,n,r){var i=e[t],a=r&&i===r.value,o=a&&typeof r.source==`string`?{source:r.source}:{},s,l,p,h,g;if(u(i)){var _=d(i),v=a?r.nodes:_?[]:{};if(_)for(s=v.length,p=m(i),h=0;h<p;h++)L(i,h,I(i,``+h,n,h<s?v[h]:void 0));else for(l=C(i),p=m(l),h=0;h<p;h++)g=l[h],L(i,g,I(i,g,n,f(v,g)?v[g]:void 0))}return c(n,e,t,i,o)},L=function(e,t,n){if(i){var r=w(e,t);if(r&&!r.configurable)return}n===void 0?delete e[t]:h(e,t,n)},R=function(e,t,n,r){this.value=e,this.end=t,this.source=n,this.nodes=r},z=function(e,t){this.source=e,this.index=t};z.prototype={fork:function(e){return new z(this.source,e)},parse:function(){var e=this.source,t=this.skip(M,this.index),n=this.fork(t),r=T(e,t);if(D(j,r))return n.number();switch(r){case`{`:return n.object();case`[`:return n.array();case`"`:return n.string();case`t`:return n.keyword(!0);case`f`:return n.keyword(!1);case`n`:return n.keyword(null)}throw new x(`Unexpected character: "`+r+`" at: `+t)},node:function(e,t,n,r,i){return new R(t,r,e?null:E(this.source,n,r),i)},object:function(){for(var e=this.source,t=this.index+1,n=!1,r={},i={},a=!1;t<e.length;){if(t=this.until([`"`,`}`],t),T(e,t)===`}`&&!n){t++,a=!0;break}var o=this.fork(t).string(),s=o.value;t=o.end,t=this.until([`:`],t)+1,t=this.skip(M,t),o=this.fork(t).parse(),h(i,s,o),h(r,s,o.value),t=this.until([`,`,`}`],o.end);var c=T(e,t);if(c===`,`)n=!0,t++;else if(c===`}`){t++,a=!0;break}}if(!a)throw new x(`Unterminated object at: `+t);return this.node(P,r,this.index,t,i)},array:function(){for(var e=this.source,t=this.index+1,n=!1,r=[],i=[],a=!1;t<e.length;){if(t=this.skip(M,t),T(e,t)===`]`&&!n){t++,a=!0;break}var o=this.fork(t).parse();if(O(i,o),O(r,o.value),t=this.until([`,`,`]`],o.end),T(e,t)===`,`)n=!0,t++;else if(T(e,t)===`]`){t++,a=!0;break}}if(!a)throw new x(`Unterminated array at: `+t);return this.node(P,r,this.index,t,i)},string:function(){var e=this.index,t=_(this.source,this.index+1);return this.node(N,t.value,e,t.end)},number:function(){var e=this.source,t=this.index,n=t;if(T(e,n)===`-`&&n++,T(e,n)===`0`)n++;else if(D(A,T(e,n)))n=this.skip(k,n+1);else throw new x(`Failed to parse number at: `+n);if(T(e,n)===`.`){var r=n+1;if(n=this.skip(k,r),r===n)throw new x(`Failed to parse number's fraction at: `+n)}if(T(e,n)===`e`||T(e,n)===`E`){n++,(T(e,n)===`+`||T(e,n)===`-`)&&n++;var i=n;if(n=this.skip(k,n),i===n)throw new x(`Failed to parse number's exponent value at: `+n)}return this.node(N,b(E(e,t,n)),t,n)},keyword:function(e){var t=``+e,n=this.index,r=n+t.length;if(E(this.source,n,r)!==t)throw new x(`Failed to parse value at: `+n);return this.node(N,e,n,r)},skip:function(e,t){for(var n=this.source;t<n.length&&D(e,T(n,t));t++);return t},until:function(e,t){t=this.skip(M,t);for(var n=T(this.source,t),r=0;r<e.length;r++)if(e[r]===n)return t;throw new x(`Unexpected character: "`+n+`" at: `+t)}};var ee=g(function(){var e=`9007199254740993`,t;return S(e,function(e,n,r){t=r.source}),t!==e}),B=v&&!g(function(){return 1/S(`-0 `)!=-1/0});r({target:`JSON`,stat:!0,forced:ee},{parse:function(e,t){return B&&!l(t)?S(e):F(e,t)}})},3110(e,t,n){var r=n(6518),i=n(7751),a=n(8745),o=n(9565),s=n(9504),c=n(9039),l=n(4376),u=n(4901),d=n(5810),f=n(757),p=n(2195),m=n(655),h=n(7680),g=n(8235),_=n(3392),v=n(4495),y=n(7819),b=String,x=i(`JSON`,`stringify`),S=s(/./.exec),C=s(``.charAt),w=s(``.charCodeAt),T=s(``.replace),E=s(``.slice),D=s([].push),O=s(1.1.toString),k=/[\uD800-\uDFFF]/g,A=/^[\uD800-\uDBFF]$/,j=/^[\uDC00-\uDFFF]$/,M=_(),N=M.length,P=!v||c(function(){var e=i(`Symbol`)(`stringify detection`);return x([e])!==`[null]`||x({a:e})!==`{}`||x(Object(e))!==`{}`}),F=c(function(){return x(`\udf06\ud834`)!==`"\\udf06\\ud834"`||x(`\udead`)!==`"\\udead"`}),I=P?function(e,t){var n=h(arguments),r=R(t);if(!(!u(r)&&(e===void 0||f(e))))return n[1]=function(e,t){if(u(r)&&(t=o(r,this,b(e),t)),!f(t))return t},a(x,null,n)}:x,L=function(e,t,n){var r=C(n,t-1),i=C(n,t+1);return S(A,e)&&!S(j,i)||S(j,e)&&!S(A,r)?`\\u`+O(w(e,0),16):e},R=function(e){if(u(e))return e;if(l(e)){for(var t=e.length,n=[],r=0;r<t;r++){var i=e[r];typeof i==`string`?D(n,i):(typeof i==`number`||p(i)===`Number`||p(i)===`String`)&&D(n,m(i))}var a=n.length,o=!0;return function(e,t){if(o)return o=!1,t;if(l(this))return t;for(var r=0;r<a;r++)if(n[r]===e)return t}}};x&&r({target:`JSON`,stat:!0,arity:3,forced:P||F||!y},{stringify:function(e,t,n){var r=R(t),i=[],a=I(e,function(e,t){var n=u(r)?o(r,this,b(e),t):t;return!y&&d(n)?M+(D(i,n.rawJSON)-1):n},n);if(typeof a!=`string`||(F&&(a=T(a,k,L)),y))return a;for(var s=``,c=a.length,l=0;l<c;l++){var f=C(a,l);if(f===`"`){var p=g(a,++l).end-1,m=E(a,l,p);s+=E(m,0,N)===M?i[E(m,N)]:`"`+m+`"`,l=p}else s+=f}return s}})},2731(e,t,n){var r=n(6518),i=n(9306),a=n(2248),o=n(6395),s=a.get,c=a.has,l=a.set;r({target:`Map`,proto:!0,real:!0,forced:o},{getOrInsertComputed:function(e,t){var n=c(this,e);if(i(t),n)return s(this,e);e===0&&1/e==-1/0&&(e=0);var r=t(e);return l(this,e,r),r}})},5367(e,t,n){var r=n(6518),i=n(2248),a=n(6395),o=i.get,s=i.has,c=i.set;r({target:`Map`,proto:!0,real:!0,forced:a},{getOrInsert:function(e,t){return s(this,e)?o(this,e):(c(this,e,t),t)}})},4628(e,t,n){var r=n(6518),i=n(6043);r({target:`Promise`,stat:!0},{withResolvers:function(){var e=i.f(this);return{promise:e.promise,resolve:e.resolve,reject:e.reject}}})},6069(e,t,n){var r=n(6518),i=n(9504),a=n(3463),o=n(9297),s=n(533).start,c=n(7452),l=Array,u=RegExp.escape,d=i(``.charAt),f=i(``.charCodeAt),p=i(1.1.toString),m=i([].join),h=/^[0-9a-z]/i,g=/^[$()*+./?[\\\]^{|}]/,_=RegExp(`^[!"#%&',\\-:;<=>@\`~`+c+`]`),v=i(h.exec),y={" ":`t`,"\n":`n`,"\v":`v`,"\f":`f`,"\r":`r`},b=function(e){var t=p(f(e,0),16);return t.length<3?`\\x`+s(t,2,`0`):`\\u`+s(t,4,`0`)};r({target:`RegExp`,stat:!0,forced:!u||u(`ab`)!==`\\x61b`},{escape:function(e){a(e);for(var t=e.length,n=l(t),r=0;r<t;r++){var i=d(e,r);if(r===0&&v(h,i))n[r]=b(i);else if(o(y,i))n[r]=`\\`+y[i];else if(v(g,i))n[r]=`\\`+i;else if(v(_,i))n[r]=b(i);else{var s=f(i,0);(s&63488)==55296?s>=56320||r+1>=t||(f(e,r+1)&64512)!=56320?n[r]=b(i):(n[r]=i,n[++r]=d(e,r)):n[r]=i}}return m(n,``)}})},7642(e,t,n){var r=n(6518),i=n(3440),a=n(9039);r({target:`Set`,proto:!0,real:!0,forced:!n(4916)(`difference`,function(e){return e.size===0})||a(function(){var e={size:1,has:function(){return!0},keys:function(){var e=0;return{next:function(){var n=e++>1;return t.has(1)&&t.clear(),{done:n,value:2}}}}},t=new Set([1,2,3,4]);return t.difference(e).size!==3})},{difference:i})},8004(e,t,n){var r=n(6518),i=n(9039),a=n(8750);r({target:`Set`,proto:!0,real:!0,forced:!n(4916)(`intersection`,function(e){return e.size===2&&e.has(1)&&e.has(2)})||i(function(){return String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))!==`3,2`})},{intersection:a})},3853(e,t,n){var r=n(6518),i=n(4449);r({target:`Set`,proto:!0,real:!0,forced:!n(4916)(`isDisjointFrom`,function(e){return!e})},{isDisjointFrom:i})},5876(e,t,n){var r=n(6518),i=n(3838);r({target:`Set`,proto:!0,real:!0,forced:!n(4916)(`isSubsetOf`,function(e){return e})},{isSubsetOf:i})},2475(e,t,n){var r=n(6518),i=n(8527);r({target:`Set`,proto:!0,real:!0,forced:!n(4916)(`isSupersetOf`,function(e){return!e})},{isSupersetOf:i})},5024(e,t,n){var r=n(6518),i=n(3650),a=n(9835);r({target:`Set`,proto:!0,real:!0,forced:!n(4916)(`symmetricDifference`)||!a(`symmetricDifference`)},{symmetricDifference:i})},1698(e,t,n){var r=n(6518),i=n(4204),a=n(9835);r({target:`Set`,proto:!0,real:!0,forced:!n(4916)(`union`)||!a(`union`)},{union:i})},9577(e,t,n){var r=n(4644),i=n(1108),a=n(6198),o=n(1291),s=n(5854),c=r.aTypedArray,l=r.getTypedArrayConstructor,u=r.exportTypedArrayMethod,d=RangeError,f=function(){try{new Int8Array(1).with(2,{valueOf:function(){throw 8}})}catch(e){return e===8}}(),p=f&&function(){try{new Int8Array(1).with(-.5,1)}catch{return!0}}();u(`with`,{with:function(e,t){var n=c(this),r=a(n),u=o(e),f=u<0?r+u:u,p=i(n)?s(t):+t;if(f>=r||f<0)throw new d(`Incorrect index`);for(var m=new(l(n))(r),h=0;h<r;h++)m[h]=h===f?p:n[h];return m}}.with,!f||p)},9452(e,t,n){var r=n(6518),i=n(9306),a=n(6557),o=n(4328),s=n(4995),c=n(6395),l=s.get,u=s.has,d=s.set;r({target:`WeakMap`,proto:!0,real:!0,forced:c||!function(){try{WeakMap.prototype.getOrInsertComputed&&new WeakMap().getOrInsertComputed(1,function(){throw 1})}catch(e){return e instanceof TypeError}}()},{getOrInsertComputed:function(e,t){if(c||a(this),o(e),i(t),u(this,e))return l(this,e);var n=t(e);return d(this,e,n),n}})},8454(e,t,n){var r=n(6518),i=n(4995),a=n(6395),o=i.get,s=i.has,c=i.set;r({target:`WeakMap`,proto:!0,real:!0,forced:a},{getOrInsert:function(e,t){return s(this,e)?o(this,e):(c(this,e,t),t)}})},4603(e,t,n){var r=n(6840),i=n(9504),a=n(655),o=n(2812),s=URLSearchParams,c=s.prototype,l=i(c.append),u=i(c.delete),d=i(c.forEach),f=i([].push),p=new s(`a=1&a=2&b=3`);p.delete(`a`,1),p.delete(`b`,void 0),p+``!=`a=2`&&r(c,`delete`,function(e){var t=arguments.length,n=t<2?void 0:arguments[1];if(t&&n===void 0)return u(this,e);var r=[];d(this,function(e,t){f(r,{key:t,value:e})}),o(t,1);for(var i=a(e),s=a(n),c=0,p=r.length,m;c<p;)m=r[c],u(this,m.key),c++;for(c=0;c<p;)m=r[c++],m.key===i&&m.value===s||l(this,m.key,m.value)},{enumerable:!0,unsafe:!0})},7566(e,t,n){var r=n(6840),i=n(9504),a=n(655),o=n(2812),s=URLSearchParams,c=s.prototype,l=i(c.getAll),u=i(c.has),d=new s(`a=1`);(d.has(`a`,2)||!d.has(`a`,void 0))&&r(c,`has`,function(e){var t=arguments.length,n=t<2?void 0:arguments[1];if(t&&n===void 0)return u(this,e);var r=l(this,e);o(t,1);for(var i=a(n),s=0;s<r.length;)if(r[s++]===i)return!0;return!1},{enumerable:!0,unsafe:!0})},8721(e,t,n){var r=n(3724),i=n(9504),a=n(2106),o=URLSearchParams.prototype,s=i(o.forEach);r&&!(`size`in o)&&a(o,`size`,{get:function(){var e=0;return s(this,function(){e++}),e},configurable:!0,enumerable:!0})},5781(e,t,n){var r=n(6518),i=n(7751),a=n(2812),o=n(655),s=n(7416),c=i(`URL`);r({target:`URL`,stat:!0,forced:!s},{parse:function(e){var t=a(arguments.length,1),n=o(e),r=t<2||arguments[1]===void 0?void 0:o(arguments[1]);try{return new c(n,r)}catch{return null}}})}},ka={};function X(e){var t=ka[e];if(t!==void 0)return t.exports;var n=ka[e]={exports:{}};return Oa[e].call(n.exports,n,n.exports,X),n.exports}X.d=(e,t)=>{for(var n in t)X.o(t,n)&&!X.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},X.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),X(4114),X(6573),X(8100),X(7936),X(8111),X(2489),X(7588),X(1701),X(3110),X(5367),X(2731),X(4628),X(6069),X(7642),X(8004),X(3853),X(5876),X(2475),X(5024),X(1698),X(9577);var{AbortException:Aa,AnnotationEditorLayer:ja,AnnotationEditorParamsType:Ma,AnnotationEditorType:Na,AnnotationEditorUIManager:Pa,AnnotationLayer:Fa,AnnotationMode:Ia,AnnotationType:La,applyOpacity:Ra,build:za,ColorPicker:Ba,createValidAbsoluteUrl:Va,CSSConstants:Ha,DOMSVGFactory:Ua,DrawLayer:Wa,FeatureTest:Ga,fetchData:Ka,findContrastColor:qa,getDocument:Ja,getFilenameFromUrl:Ya,getPdfFilenameFromUrl:Xa,getRGB:Za,getRGBA:Qa,getUuid:$a,GlobalWorkerOptions:eo,ImageKind:to,InvalidPDFException:no,isDataScheme:ro,isPdfFile:io,isValidExplicitDest:ao,makeArr:oo,makeMap:so,makeObj:co,MathClamp:lo,noContextMenu:uo,normalizeUnicode:fo,OPS:po,OutputScale:mo,PasswordResponses:ho,PDFDataRangeTransport:go,PDFDateString:_o,PDFWorker:vo,PermissionFlag:yo,PixelsPerInch:bo,RenderingCancelledException:xo,renderRichText:So,ResponseException:Co,setLayerDimensions:wo,shadow:To,SignatureExtractor:Eo,stopEvent:Do,SupportedImageMimeTypes:Oo,TextLayer:ko,TextLayerImages:Ao,TouchManager:jo,updateUrlHash:Mo,Util:No,VerbosityLevel:Po,version:Fo,XfaLayer:Io}=globalThis.pdfjsLib,Lo={SPACE:0,ALPHA_LETTER:1,PUNCT:2,HAN_LETTER:3,KATAKANA_LETTER:4,HIRAGANA_LETTER:5,HALFWIDTH_KATAKANA_LETTER:6,THAI_LETTER:7};function Ro(e){return e<11904}function zo(e){return(e&65408)==0}function Bo(e){return e>=97&&e<=122||e>=65&&e<=90}function Vo(e){return e>=48&&e<=57}function Ho(e){return e===32||e===9||e===13||e===10}function Uo(e){return e>=13312&&e<=40959||e>=63744&&e<=64255}function Wo(e){return e>=12448&&e<=12543}function Go(e){return e>=12352&&e<=12447}function Ko(e){return e>=65376&&e<=65439}function qo(e){return(e&65408)==3584}function Jo(e){return Ro(e)?zo(e)?Ho(e)?Lo.SPACE:Bo(e)||Vo(e)||e===95?Lo.ALPHA_LETTER:Lo.PUNCT:qo(e)?Lo.THAI_LETTER:e===160?Lo.SPACE:Lo.ALPHA_LETTER:Uo(e)?Lo.HAN_LETTER:Wo(e)?Lo.KATAKANA_LETTER:Go(e)?Lo.HIRAGANA_LETTER:Ko(e)?Lo.HALFWIDTH_KATAKANA_LETTER:Lo.ALPHA_LETTER}var Yo;function Xo(){if(!Yo){let e=[],t=[],n=/^\p{M}$/u;for(let r=0;r<65536;r++){if(r>=55296&&r<=57343)continue;let i=String.fromCharCode(r);if(i.normalize(`NFKC`)!==i&&!n.test(i)){if(t.length!==2){t[0]=t[1]=r;continue}t[1]+1===r?t[1]=r:(t[0]===t[1]?e.push(String.fromCharCode(t[0])):e.push(`${String.fromCharCode(t[0])}-${String.fromCharCode(t[1])}`),t[0]=t[1]=r)}}let r=e.join(``);if(!Yo)Yo=r;else if(r!==Yo){for(let e=1;e<r.length;e++)if(r[e]!==Yo[e]){console.log(`Difference at index ${e}: U+${r.charCodeAt(e).toString(16).toUpperCase().padStart(4,`0`)}!== U+${Yo.charCodeAt(e).toString(16).toUpperCase().padStart(4,`0`)}`);break}throw Error("getNormalizeWithNFKC - update the `NormalizeWithNFKC` string.")}}return Yo}X(4423),X(4603),X(7566),X(8721);var Zo=`auto`,Qo=1,$o=1.1,es=.1,ts=25,ns=0,rs=1.25,is=40,as=5,os={UNKNOWN:0,NORMAL:1,CHANGING:2,FULLSCREEN:3},ss={DISABLE:0,ENABLE:1,ENABLE_PERMISSIONS:2},Z={UNKNOWN:-1,VERTICAL:0,HORIZONTAL:1,WRAPPED:2,PAGE:3},cs={UNKNOWN:-1,NONE:0,ODD:1,EVEN:2};function ls(e,t){let n=e.offsetParent;if(!n){console.error(`offsetParent is not set -- cannot scroll`);return}let r=e.offsetTop+e.clientTop,i=e.offsetLeft+e.clientLeft;for(;n.clientHeight===n.scrollHeight&&n.clientWidth===n.scrollWidth;)if(r+=n.offsetTop,i+=n.offsetLeft,n=n.offsetParent,!n)return;t&&(t.top!==void 0&&(r+=t.top),t.left!==void 0&&(i+=t.left,n.scrollLeft=i)),n.scrollTop=r}function us(e,t,n=void 0){let r=function(n){a||=window.requestAnimationFrame(function(){a=null;let n=e.scrollLeft,r=i.lastX;n!==r&&(i.right=n>r),i.lastX=n;let o=e.scrollTop,s=i.lastY;o!==s&&(i.down=o>s),i.lastY=o,t(i)})},i={right:!0,down:!0,lastX:e.scrollLeft,lastY:e.scrollTop,_eventHandler:r},a=null;return e.addEventListener(`scroll`,r,{useCapture:!0,signal:n}),n?.addEventListener(`abort`,()=>window.cancelAnimationFrame(a),{once:!0}),i}function ds(e){let t=new Map;for(let[n,r]of new URLSearchParams(e))t.set(n.toLowerCase(),r);return t}var fs=/[\x00-\x1F]/g;function ps(e,t=!1){return fs.test(e)?t?e.replaceAll(fs,e=>e===`\0`?``:` `):e.replaceAll(`\0`,``):e}function ms(e,t,n=0){let r=n,i=e.length-1;if(i<0||!t(e[i]))return e.length;if(t(e[r]))return r;for(;r<i;){let n=r+i>>1,a=e[n];t(a)?i=n:r=n+1}return r}function hs(e){if(Math.floor(e)===e)return[e,1];let t=1/e;if(t>8)return[1,8];if(Math.floor(t)===t)return[1,t];let n=e>1?t:e,r=0,i=1,a=1,o=1;for(;;){let e=r+a,t=i+o;if(t>8)break;n<=e/t?(a=e,o=t):(r=e,i=t)}return n-r/i<a/o-n?n===e?[r,i]:[i,r]:n===e?[a,o]:[o,a]}function gs(e,t){return e-e%t}function _s(e,t,n){if(e<2)return e;let r=t[e].div,i=r.offsetTop+r.clientTop;i>=n&&(r=t[e-1].div,i=r.offsetTop+r.clientTop);for(let n=e-2;n>=0&&(r=t[n].div,!(r.offsetTop+r.clientTop+r.clientHeight<=i));--n)e=n;return e}function vs({scrollEl:e,views:t,sortByVisibility:n=!1,horizontal:r=!1,rtl:i=!1}){let a=e.scrollTop,o=a+e.clientHeight,s=e.scrollLeft,c=s+e.clientWidth;function l(e){let t=e.div;return t.offsetTop+t.clientTop+t.clientHeight>a}function u(e){let t=e.div,n=t.offsetLeft+t.clientLeft,r=n+t.clientWidth;return i?n<c:r>s}let d=[],f=new Set,p=t.length,m=ms(t,r?u:l);m>0&&m<p&&!r&&(m=_s(m,t,a));let h=r?c:-1;for(let e=m;e<p;e++){let n=t[e],i=n.div,l=i.offsetLeft+i.clientLeft,u=i.offsetTop+i.clientTop,p=i.clientWidth,m=i.clientHeight,g=l+p,_=u+m;if(h===-1)_>=o&&(h=_);else if((r?l:u)>h)break;if(_<=a||u>=o||g<=s||l>=c)continue;let v=Math.max(0,a-u),y=Math.max(0,s-l),b=v+Math.max(0,_-o),x=y+Math.max(0,g-c),S=(m-b)/m,C=(p-x)/p,w=S*C*100|0;d.push({id:n.id,x:l,y:u,visibleArea:w===100?null:{minX:y,minY:v,maxX:Math.min(g,c)-l,maxY:Math.min(_,o)-u},view:n,percent:w,widthPercent:C*100|0}),f.add(n.id)}let g=d[0],_=d.at(-1);return n&&d.sort(function(e,t){let n=e.percent-t.percent;return Math.abs(n)>.001?-n:e.id-t.id}),{first:g,last:_,views:d,ids:f}}function ys(e){return Number.isInteger(e)&&e%90==0}function bs(e){return Number.isInteger(e)&&Object.values(Z).includes(e)&&e!==Z.UNKNOWN}function xs(e){return Number.isInteger(e)&&Object.values(cs).includes(e)&&e!==cs.UNKNOWN}function Ss(e){return e.width<=e.height}new Promise(function(e){window.requestAnimationFrame(e)});var Cs=document.documentElement.style,ws=class{#e=null;#t=null;#n=0;#r=null;#i=!0;constructor(e){this.#e=e.classList,this.#r=e.style}get percent(){return this.#n}set percent(e){if(this.#n=e,isNaN(e)){this.#e.add(`indeterminate`);return}this.#e.remove(`indeterminate`),this.#r.setProperty(`--progressBar-percent`,`${this.#n}%`)}setWidth(e){if(!e)return;let t=e.parentNode.offsetWidth-e.offsetWidth;t>0&&this.#r.setProperty(`--progressBar-end-offset`,`${t}px`)}setDisableAutoFetch(e=5e3){this.#n===100||isNaN(this.#n)||(this.#t&&clearTimeout(this.#t),this.show(),this.#t=setTimeout(()=>{this.#t=null,this.hide()},e))}hide(){this.#i&&(this.#i=!1,this.#e.add(`hidden`))}show(){this.#i||(this.#i=!0,this.#e.remove(`hidden`))}};function Ts(e){let t=Z.VERTICAL,n=cs.NONE;switch(e){case`SinglePage`:t=Z.PAGE;break;case`OneColumn`:break;case`TwoPageLeft`:t=Z.PAGE;case`TwoColumnLeft`:n=cs.ODD;break;case`TwoPageRight`:t=Z.PAGE;case`TwoColumnRight`:n=cs.EVEN;break}return{scrollMode:t,spreadMode:n}}var Es=function(){let e=document.createElement(`div`);return e.style.width=`round(down, calc(1.6666666666666665 * 792px), 1px)`,e.style.width===`calc(1320px)`?Math.fround:e=>e}(),Ds=`9556e50a-f4f8-4f57-9831-f9ddff0176eb`,Os=Object.freeze({internal:Ds}),ks={FOUND:0,NOT_FOUND:1,WRAPPED:2,PENDING:3},As={"":`-`,"":`'`,"":`'`,"":`'`,"":`'`,"“":`"`,"”":`"`,"„":`"`,"‟":`"`,"¼":`1/4`,"½":`1/2`,"¾":`3/4`},js=new Set([12441,12442,2381,2509,2637,2765,2893,3021,3149,3277,3387,3388,3405,3530,3642,3770,3972,4153,4154,5908,5940,6098,6752,6980,7082,7083,7154,7155,11647,43014,43052,43204,43347,43456,43766,44013,3158,3953,3954,3962,3963,3964,3965,3968,3956]),Ms,Ns=/\p{M}+/gu,Ps=/([+^$|])|(\p{P}+)|(\s+)|(\p{M})|(\p{L})/gu,Fs=/(\P{M})\p{M}*$/u,Is=/^\p{M}*(\P{M})/u,Ls=/[\uAC00-\uD7AF\uFA6C\uFACF-\uFAD1\uFAD5-\uFAD7]+/g,Rs=new Map,zs=`[\\u1100-\\u1112\\ud7a4-\\ud7af\\ud84a\\ud84c\\ud850\\ud854\\ud857\\ud85f]`,Bs=new Map,Vs=null,Hs=null;function Us(e,t={}){let n=[],r;for(;(r=Ls.exec(e))!==null;){let{index:e}=r;for(let t of r[0]){let r=Rs.get(t);r||(r=t.normalize(`NFD`).length,Rs.set(t,r)),n.push([r,e++])}}let i=n.length>0,a=t.ignoreDashEOL??!1,o;if(!i&&Vs)o=Vs;else if(i&&Hs)o=Hs;else{let e=Object.keys(As).join(``),t=Xo(),n=[`[${e}]`,`[${t}]`,`(?:゙|゚)\\n`,`\\p{M}+(?:-\\n)?`,`\\p{Ll}-\\n(?=\\p{Ll})|\\p{Lu}-\\n(?=\\p{L})`,`\\S-\\n`,`(?:\\p{Ideographic}|[぀-ヿ])\\n`,`\\n`,i?zs:`\\u0000`];o=new RegExp(n.map(e=>`(${e})`).join(`|`),`gmu`),i?Hs=o:Vs=o}let s=[];for(;(r=Ns.exec(e))!==null;)s.push([r[0].length,r.index]);let c=e.normalize(`NFD`),l=[0,0],u=0,d=0,f=0,p=0,m=0,h=!1;c=c.replace(o,(e,t,r,i,o,c,g,_,v,y,b)=>{if(b-=p,t){let e=As[t],n=e.length;for(let e=1;e<n;e++)l.push(b-f+e,f-e);return f-=n-1,e}if(r){let e=Bs.get(r);e||(e=r.normalize(`NFKC`),Bs.set(r,e));let t=e.length;for(let e=1;e<t;e++)l.push(b-f+e,f-e);return f-=t-1,e}if(i)return h=!0,b+m===s[u]?.[1]?++u:(l.push(b-1-f+1,f-1),--f,p+=1),l.push(b-f+1,f),p+=1,m+=1,i.charAt(0);if(o){let e=o.endsWith(`
`),t=e?o.length-2:o.length;h=!0;let n=t;b+m===s[u]?.[1]&&(n-=s[u][0],++u);for(let e=1;e<=n;e++)l.push(b-1-f+e,f-e);return f-=n,p+=n,e?(b+=t-1,l.push(b-f+1,1+f),f+=1,p+=1,m+=1,o.slice(0,t)):o}if(c){if(a)return p+=1,m+=1,c.slice(0,-1);let e=c.length-2;return l.push(b-f+e,1+f),f+=1,p+=1,m+=1,c.slice(0,-2)}if(g)return p+=1,m+=1,g.slice(0,-1);if(_){let e=_.length-1;return l.push(b-f+e,f),p+=1,m+=1,_.slice(0,-1)}if(v)return l.push(b-f+1,f-1),--f,p+=1,m+=1,` `;if(b+m===n[d]?.[1]){let e=n[d][0]-1;++d;for(let t=1;t<=e;t++)l.push(b-(f-t),f-t);f-=e,p+=e}return y}),l.push(c.length,f);let g=new Uint32Array(l.length>>1),_=new Int32Array(l.length>>1);for(let e=0,t=l.length;e<t;e+=2)g[e>>1]=l[e],_[e>>1]=l[e+1];return[c,[g,_],h]}function Ws(e,t,n){if(!e)return[t,n];let[r,i]=e,a=t,o=t+n-1,s=ms(r,e=>e>=a);r[s]>a&&--s;let c=ms(r,e=>e>=o,s);r[c]>o&&--c;let l=a+i[s];return[l,o+i[c]+1-l]}var Gs=class{#e=null;#t=!0;#n=0;#r=0;#i=null;#a=null;constructor({linkService:e,eventBus:t,delay:n=250,updateMatchesCountOnProgress:r=!0}){this._linkService=e,this._eventBus=t,this.#t=r,this.#n=n,this.onIsPageVisible=null,this.#s(),t.on(`find`,this.#o.bind(this),Os),t.on(`findbarclose`,this.#S.bind(this),Os),t.on(`pagesedited`,this.#x.bind(this),Os)}get highlightMatches(){return this._highlightMatches}get pageMatches(){return this._pageMatches}get pageMatchesLength(){return this._pageMatchesLength}get selected(){return this._selected}get state(){return this.#e}setDocument(e){this._pdfDocument&&this.#s(),e&&(this._pdfDocument=e,this._firstPageCapability.resolve())}#o(e){if(!e)return;let t=this._pdfDocument,{type:n}=e;(this.#e===null||this.#l(e))&&(this._dirtyMatch=!0),this.#e=e,n!==`highlightallchange`&&this.#T(ks.PENDING),this._firstPageCapability.promise.then(()=>{if(!this._pdfDocument||t&&this._pdfDocument!==t)return;this.#p();let e=!this._highlightMatches,r=!!this._findTimeout;this._findTimeout&&=(clearTimeout(this._findTimeout),null),n?this._dirtyMatch?this.#g():n===`again`?(this.#g(),e&&this.#e.highlightAll&&this.#h()):n===`highlightallchange`?(r?this.#g():this._highlightMatches=!0,this.#h()):this.#g():this._findTimeout=setTimeout(()=>{this.#g(),this._findTimeout=null},this.#n)})}scrollMatchIntoView({element:e=null,pageIndex:t=-1,matchIndex:n=-1}){!this._scrollMatches||!e||n===-1||n!==this._selected.matchIdx||t===-1||t!==this._selected.pageIdx||(this._scrollMatches=!1,e.scrollIntoView({block:`start`,inline:`center`}))}#s(){this._highlightMatches=!1,this._scrollMatches=!1,this._pdfDocument=null,this._pageMatches=[],this._pageMatchesLength=[],this.#r=0,this.#e=null,this._selected={pageIdx:-1,matchIdx:-1},this._offset={pageIdx:null,matchIdx:null,wrapped:!1},this._extractTextPromises=[],this._pageContents=[],this._pageDiffs=[],this._hasDiacritics=[],this._matchesCountTotal=0,this._pagesToSearch=null,this._pendingFindMatches=new Set,this._resumePageIdx=null,this._dirtyMatch=!1,clearTimeout(this._findTimeout),this._findTimeout=null,this.#i=null,this._firstPageCapability=Promise.withResolvers()}get#c(){let{query:e}=this.#e;return typeof e==`string`?(e!==this._rawQuery&&(this._rawQuery=e,[this._normalizedQuery]=Us(e)),this._normalizedQuery):(e||[]).filter(e=>!!e).map(e=>Us(e)[0])}#l(e){let t=e.query,n=this.#e.query,r=typeof t;if(r!==typeof n)return!0;if(r===`string`){if(t!==n)return!0}else if(JSON.stringify(t)!==JSON.stringify(n))return!0;switch(e.type){case`again`:let e=this._selected.pageIdx+1,t=this._linkService;return e>=1&&e<=t.pagesCount&&e!==t.page&&!(this.onIsPageVisible?.(e)??!0);case`highlightallchange`:return!1}return!0}#u(e,t,n){let r=e.slice(0,t).match(Fs);if(r){let n=e.charCodeAt(t),i=r[1].charCodeAt(0);if(Jo(n)===Jo(i))return!1}if(r=e.slice(t+n).match(Is),r){let i=e.charCodeAt(t+n-1),a=r[1].charCodeAt(0);if(Jo(i)===Jo(a))return!1}return!0}#d(e,t){let{matchDiacritics:n}=this.#e,r=!1,i=(t,n)=>t===e?n:e.startsWith(t)?`${n}[ ]*`:e.endsWith(t)?`[ ]*${n}`:`[ ]*${n}[ ]*`;return e=e.replaceAll(Ps,(e,a,o,s,c,l)=>a?i(a,RegExp.escape(a)):o?i(o,RegExp.escape(o)):s?`[ ]+`:n?c||l:c?js.has(c.charCodeAt(0))?c:``:t?(r=!0,`${l}\\p{M}*`):l),e.endsWith(`[ ]*`)&&(e=e.slice(0,e.length-4)),n&&t&&(Ms||=String.fromCharCode(...js),r=!0,e=`${e}(?=[${Ms}]|[^\\p{M}]|$)`),[r,e]}#f(e){if(!this.#e)return;let t=this.#c;if(t.length===0)return;let n=this._pageContents[e],r=this.match(t,n,e),i=this._pageMatches[e]=[],a=this._pageMatchesLength[e]=[],o=this._pageDiffs[e];r?.forEach(({index:e,length:t})=>{let[n,r]=Ws(o,e,t);r&&(i.push(n),a.push(r))}),this.#e.highlightAll&&this.#m(e),this._resumePageIdx===e&&(this._resumePageIdx=null,this.#v());let s=i.length;this._matchesCountTotal+=s,this.#t?s>0&&this.#w():++this.#r===this._linkService.pagesCount&&this.#w()}match(e,t,n){let r=this._hasDiacritics[n],i=!1;if(typeof e==`string`?[i,e]=this.#d(e,r):e=e.sort().reverse().map(e=>{let[t,n]=this.#d(e,r);return i||=t,`(${n})`}).join(`|`),!e)return;let{caseSensitive:a,entireWord:o}=this.#e;e=new RegExp(e,`g${i?`u`:``}${a?``:`i`}`);let s=[],c;for(;(c=e.exec(t))!==null;)o&&!this.#u(t,c.index,c[0].length)||s.push({index:c.index,length:c[0].length});return s}#p(){if(this._extractTextPromises.length>0)return;let e=Promise.resolve(),t={disableNormalization:!0},n=this._pdfDocument;for(let r=0,i=this._linkService.pagesCount;r<i;r++){let{promise:i,resolve:a}=Promise.withResolvers();this._extractTextPromises[r]=i,e=e.then(async()=>{if(n!==this._pdfDocument){a();return}try{let e=await(await n.getPage(r+1)).getTextContent(t);if(n!==this._pdfDocument){a();return}let i=[];for(let t of e.items)i.push(t.str),t.hasEOL&&i.push(`
`);[this._pageContents[r],this._pageDiffs[r],this._hasDiacritics[r]]=Us(i.join(``))}catch(e){if(n!==this._pdfDocument){a();return}console.error(`Unable to get text content for page ${r+1}`,e),[this._pageContents[r],this._pageDiffs[r],this._hasDiacritics[r]]=[``,null,!1]}a()})}}#m(e){this._scrollMatches&&this._selected.pageIdx===e&&(this._linkService.page=e+1),this._eventBus.dispatch(`updatetextlayermatches`,{source:this,pageIndex:e})}#h(){this._eventBus.dispatch(`updatetextlayermatches`,{source:this,pageIndex:-1})}#g(){let e=this.#e.findPrevious,t=this._linkService.page-1,n=this._linkService.pagesCount;if(this._highlightMatches=!0,this._dirtyMatch){this._dirtyMatch=!1,this._selected.pageIdx=this._selected.matchIdx=-1,this._offset.pageIdx=t,this._offset.matchIdx=null,this._offset.wrapped=!1,this._resumePageIdx=null,this._pageMatches.length=0,this._pageMatchesLength.length=0,this.#r=0,this._matchesCountTotal=0,this.#h();for(let e=0;e<n;e++)this._pendingFindMatches.has(e)||(this._pendingFindMatches.add(e),this._extractTextPromises[e].then(()=>{this._pendingFindMatches.delete(e),this.#f(e)}))}if(this.#c.length===0){this.#T(ks.FOUND);return}if(this._resumePageIdx)return;let r=this._offset;if(this._pagesToSearch=n,r.matchIdx!==null){let t=this._pageMatches[r.pageIdx].length;if(!e&&r.matchIdx+1<t||e&&r.matchIdx>0){r.matchIdx=e?r.matchIdx-1:r.matchIdx+1,this.#b(!0);return}this.#y(e)}this.#v()}#_(e){let t=this._offset,n=e.length,r=this.#e.findPrevious;return n?(t.matchIdx=r?n-1:0,this.#b(!0),!0):(this.#y(r),t.wrapped&&(t.matchIdx=null,this._pagesToSearch<0)?(this.#b(!1),!0):!1)}#v(){this._resumePageIdx!==null&&console.error(`There can only be one pending page.`);let e=null;do{let t=this._offset.pageIdx;if(e=this._pageMatches[t],!e){this._resumePageIdx=t;break}}while(!this.#_(e))}#y(e){let t=this._offset,n=this._linkService.pagesCount;t.pageIdx=e?t.pageIdx-1:t.pageIdx+1,t.matchIdx=null,this._pagesToSearch--,(t.pageIdx>=n||t.pageIdx<0)&&(t.pageIdx=e?n-1:0,t.wrapped=!0)}#b(e=!1){let t=ks.NOT_FOUND,n=this._offset.wrapped;if(this._offset.wrapped=!1,e){let e=this._selected.pageIdx;this._selected.pageIdx=this._offset.pageIdx,this._selected.matchIdx=this._offset.matchIdx,t=n?ks.WRAPPED:ks.FOUND,e!==-1&&e!==this._selected.pageIdx&&this.#m(e)}this.#T(t,this.#e.findPrevious),this._selected.pageIdx!==-1&&(this._scrollMatches=!0,this.#m(this._selected.pageIdx))}#x({pagesMapper:e,type:t,pageNumbers:n}){if(this._extractTextPromises.length===0)return;if(t===`copy`){let e=new Map,t=new Map,r=new Map,i=new Map;for(let a of n)e.set(a,this._extractTextPromises[a-1]),t.set(a,this._pageContents[a-1]),r.set(a,this._pageDiffs[a-1]),i.set(a,this._hasDiacritics[a-1]);this.#i={promises:e,contents:t,diffs:r,diacritics:i};return}if(t===`cancelCopy`){this.#i=null;return}if(t===`delete`&&(this.#a={promises:this._extractTextPromises,contents:this._pageContents,diffs:this._pageDiffs,diacritics:this._hasDiacritics}),t===`cancelDelete`){this._extractTextPromises=this.#a.promises,this._pageContents=this.#a.contents,this._pageDiffs=this.#a.diffs,this._hasDiacritics=this.#a.diacritics;return}if(t===`cleanSavedData`){this.#a=null;return}this._findTimeout&&=(clearTimeout(this._findTimeout),null),this._resumePageIdx=null,this._dirtyMatch=!0;let r=this._extractTextPromises,i=this._pageContents,a=this._pageDiffs,o=this._hasDiacritics,s=this._extractTextPromises=[],c=this._pageContents=[],l=this._pageDiffs=[],u=this._hasDiacritics=[];for(let t=1,n=e.pagesNumber;t<=n;t++){let n=e.getPrevPageNumber(t);if(n<0){let e=-n;s.push(this.#i?.promises.get(e)||Promise.resolve()),c.push(this.#i?.contents.get(e)??``),l.push(this.#i?.diffs.get(e)??null),u.push(this.#i?.diacritics.get(e)??!1);continue}s.push(r[n-1]||Promise.resolve()),c.push(i[n-1]??``),l.push(a[n-1]??null),u.push(o[n-1]??!1)}this.#e&&this.#g()}#S(e){let t=this._pdfDocument;this._firstPageCapability.promise.then(()=>{!this._pdfDocument||t&&this._pdfDocument!==t||(this._findTimeout&&=(clearTimeout(this._findTimeout),null),this._resumePageIdx&&(this._resumePageIdx=null,this._dirtyMatch=!0),this.#T(ks.FOUND),this._highlightMatches=!1,this.#h())})}#C(){let{pageIdx:e,matchIdx:t}=this._selected,n=0,r=this._matchesCountTotal;if(t!==-1){for(let t=0;t<e;t++)n+=this._pageMatches[t]?.length||0;n+=t+1}return(n<1||n>r)&&(n=r=0),{current:n,total:r}}#w(){this._eventBus.dispatch(`updatefindmatchescount`,{source:this,matchesCount:this.#C()})}#T(e,t=!1){!this.#t&&(this.#r!==this._linkService.pagesCount||e===ks.PENDING)||this._eventBus.dispatch(`updatefindcontrolstate`,{source:this,state:e,previous:t,entireWord:this.#e?.entireWord??null,matchesCount:this.#C(),rawQuery:this.#e?.query??null})}};X(9112),X(5781);var Ks=`noopener noreferrer nofollow`,qs={NONE:0,SELF:1,BLANK:2,PARENT:3,TOP:4},Js=class{externalLinkEnabled=!0;constructor({eventBus:e,externalLinkTarget:t=null,externalLinkRel:n=null,ignoreDestinationZoom:r=!1}={}){this.eventBus=e,this.externalLinkTarget=t,this.externalLinkRel=n,this._ignoreDestinationZoom=r,this.baseUrl=null,this.pdfDocument=null,this.pdfViewer=null,this.pdfHistory=null}setDocument(e,t=null){this.baseUrl=t,this.pdfDocument=e}setViewer(e){this.pdfViewer=e}setHistory(e){this.pdfHistory=e}get pagesCount(){return this.pdfDocument?.pagesMapper.pagesNumber||0}get page(){return this.pdfDocument?this.pdfViewer.currentPageNumber:1}set page(e){this.pdfDocument&&(this.pdfViewer.currentPageNumber=e)}get rotation(){return this.pdfDocument?this.pdfViewer.pagesRotation:0}set rotation(e){this.pdfDocument&&(this.pdfViewer.pagesRotation=e)}get isInPresentationMode(){return this.pdfDocument?this.pdfViewer.isInPresentationMode:!1}async goToDestination(e){if(!this.pdfDocument)return;let t,n,r;if(typeof e==`string`?(t=e,n=await this.pdfDocument.getDestination(e)):(t=null,n=await e),!Array.isArray(n)){console.error(`goToDestination: "${n}" is not a valid destination array, for dest="${e}".`);return}let[i]=n;if(i&&typeof i==`object`){if(r=this.pdfDocument.cachedPageNumber(i),!r)try{r=await this.pdfDocument.getPageIndex(i)+1}catch{console.error(`goToDestination: "${i}" is not a valid page reference, for dest="${e}".`);return}}else Number.isInteger(i)&&(r=i+1);if(!r||r<1||r>this.pagesCount){console.error(`goToDestination: "${r}" is not a valid page number, for dest="${e}".`);return}this.pdfHistory&&(this.pdfHistory.pushCurrentPosition(),this.pdfHistory.push({namedDest:t,explicitDest:n,pageNumber:r})),this.pdfViewer.scrollPageIntoView({pageNumber:r,destArray:n,ignoreDestinationZoom:this._ignoreDestinationZoom});let a=new AbortController;this.eventBus.on(`textlayerrendered`,e=>{e.pageNumber===r&&(e.source.textLayer.div.focus(),a.abort())},{signal:a.signal,...Os})}goToPage(e){if(!this.pdfDocument)return;let t=typeof e==`string`&&this.pdfViewer.pageLabelToPageNumber(e)||e|0;if(!(Number.isInteger(t)&&t>0&&t<=this.pagesCount)){console.error(`PDFLinkService.goToPage: "${e}" is not a valid page.`);return}this.pdfHistory&&(this.pdfHistory.pushCurrentPosition(),this.pdfHistory.pushPage(t)),this.pdfViewer.scrollPageIntoView({pageNumber:t})}goToXY(e,t,n,r={}){this.pdfViewer.scrollPageIntoView({pageNumber:e,destArray:[null,{name:`XYZ`},t,n],ignoreDestinationZoom:!0,...r})}addLinkAttributes(e,t,n=!1){if(!t||typeof t!=`string`)throw Error(`A valid "url" parameter must provided.`);let r=n?qs.BLANK:this.externalLinkTarget,i=this.externalLinkRel,a=t,o=URL.parse(t);(o?.username||o?.password)&&(o.username=o.password=``,a=o.href),this.externalLinkEnabled?(e.href=t,e.title=a):(e.href=``,e.title=`Disabled: ${a}`,e.onclick=()=>!1);let s=``;switch(r){case qs.NONE:break;case qs.SELF:s=`_self`;break;case qs.BLANK:s=`_blank`;break;case qs.PARENT:s=`_parent`;break;case qs.TOP:s=`_top`;break}e.target=s,e.rel=typeof i==`string`?i:Ks}getDestinationHash(e){if(typeof e==`string`){if(e.length>0)return this.getAnchorUrl(`#`+escape(e))}else if(Array.isArray(e)){let t=JSON.stringify(e);if(t.length>0)return this.getAnchorUrl(`#`+escape(t))}return this.getAnchorUrl(``)}getAnchorUrl(e){return this.baseUrl?this.baseUrl+e:e}setHash(e){if(!this.pdfDocument)return;let t,n;if(e.includes(`=`)){let r=ds(e);if(r.has(`search`)){let e=r.get(`search`).replaceAll(`"`,``),t=r.get(`phrase`)===`true`;this.eventBus.dispatch(`findfromurlhash`,{source:this,query:t?e:e.match(/\S+/g)})}if(r.has(`page`)&&(t=r.get(`page`)|0||1),r.has(`zoom`)){let e=r.get(`zoom`).split(`,`),t=e[0],i=parseFloat(t);t.includes(`Fit`)?t===`Fit`||t===`FitB`?n=[null,{name:t}]:t===`FitH`||t===`FitBH`||t===`FitV`||t===`FitBV`?n=[null,{name:t},e.length>1?e[1]|0:null]:t===`FitR`?e.length===5?n=[null,{name:t},e[1]|0,e[2]|0,e[3]|0,e[4]|0]:console.error(`PDFLinkService.setHash: Not enough parameters for "FitR".`):console.error(`PDFLinkService.setHash: "${t}" is not a valid zoom value.`):n=[null,{name:`XYZ`},e.length>1?e[1]|0:null,e.length>2?e[2]|0:null,i?i/100:t]}n?this.pdfViewer.scrollPageIntoView({pageNumber:t||this.page,destArray:n,allowNegativeOffset:!0}):t&&(this.page=t),r.has(`pagemode`)&&this.eventBus.dispatch(`pagemode`,{source:this,mode:r.get(`pagemode`)}),r.has(`nameddest`)&&this.goToDestination(r.get(`nameddest`));return}n=unescape(e);try{n=JSON.parse(n),Array.isArray(n)||(n=n.toString())}catch{}if(typeof n==`string`||ao(n)){this.goToDestination(n);return}console.error(`PDFLinkService.setHash: "${unescape(e)}" is not a valid destination.`)}executeNamedAction(e){if(this.pdfDocument){switch(e){case`GoBack`:this.pdfHistory?.back();break;case`GoForward`:this.pdfHistory?.forward();break;case`NextPage`:this.pdfViewer.nextPage();break;case`PrevPage`:this.pdfViewer.previousPage();break;case`LastPage`:this.page=this.pagesCount;break;case`FirstPage`:this.page=1;break;default:break}this.eventBus.dispatch(`namedaction`,{source:this,action:e})}}async executeSetOCGState(e){if(!this.pdfDocument)return;let t=this.pdfDocument,n=await this.pdfViewer.optionalContentConfigPromise;t===this.pdfDocument&&(n.setOCGState(e),this.pdfViewer.optionalContentConfigPromise=Promise.resolve(n))}},Ys=class extends Js{setDocument(e,t=null){}},Xs=class{#e=null;#t=null;#n=!1;#r=null;#i=null;#a=!1;constructor({pdfPage:e,linkService:t,downloadManager:n,annotationStorage:r=null,imageResourcesPath:i=``,renderForms:a=!0,enableComment:o=!1,commentManager:s=null,enableScripting:c=!1,hasJSActionsPromise:l=null,fieldObjectsPromise:u=null,annotationCanvasMap:d=null,accessibilityManager:f=null,annotationEditorUIManager:p=null,onAppend:m=null}){this.pdfPage=e,this.linkService=t,this.downloadManager=n,this.imageResourcesPath=i,this.renderForms=a,this.annotationStorage=r,this.enableComment=o,this.#t=s,this.enableScripting=c,this._hasJSActionsPromise=l||Promise.resolve(!1),this._fieldObjectsPromise=u||Promise.resolve(null),this._annotationCanvasMap=d,this._accessibilityManager=f,this._annotationEditorUIManager=p,this.#r=m,this.annotationLayer=null,this.div=null,this._cancelled=!1,this._eventBus=t.eventBus}async render({viewport:e,intent:t=`display`,structTreeLayer:n=null,optionalContentConfigPromise:r=null}){if(this.div){let t=await r;if(this._cancelled||!this.annotationLayer)return;this.annotationLayer.update({viewport:e.clone({dontFlip:!0}),optionalContentConfig:t});return}let[i,a,o,s]=await Promise.all([this.pdfPage.getAnnotations({intent:t}),this._hasJSActionsPromise,this._fieldObjectsPromise,r]);if(this._cancelled)return;let c=this.div=document.createElement(`div`);if(c.className=`annotationLayer`,this.#r?.(c),this.#o(e,n),i.length===0){this.#e=i,wo(this.div,e);return}await this.annotationLayer.render({annotations:i,imageResourcesPath:this.imageResourcesPath,renderForms:this.renderForms,downloadManager:this.downloadManager,enableComment:this.enableComment,enableScripting:this.enableScripting,hasJSActions:a,fieldObjects:o,optionalContentConfig:s}),this.#e=i,this.linkService.isInPresentationMode&&this.#s(os.FULLSCREEN),this.#i||(this.#i=new AbortController,this._eventBus?.on(`presentationmodechanged`,e=>{this.#s(e.state)},{signal:this.#i.signal,...Os}))}#o(e,t){this.annotationLayer=new Fa({div:this.div,accessibilityManager:this._accessibilityManager,annotationCanvasMap:this._annotationCanvasMap,annotationEditorUIManager:this._annotationEditorUIManager,annotationStorage:this.annotationStorage,page:this.pdfPage,viewport:e.clone({dontFlip:!0}),structTreeLayer:t,commentManager:this.#t,linkService:this.linkService})}cancel(){this._cancelled=!0,this.#i?.abort(),this.#i=null}hide(e=!1){this.#n=!e,this.div&&(this.div.hidden=!0)}hasEditableAnnotations(){return!!this.annotationLayer?.hasEditableAnnotations()}async injectLinkAnnotations(e){if(this.#e===null)throw Error("`render` method must be called before `injectLinkAnnotations`.");if(this._cancelled||this.#a)return;this.#a=!0;let t=this.#e.length?this.#c(e):e;t.length&&(await this.annotationLayer.addLinkAnnotations(t),this.#n||(this.div.hidden=!1))}#s(e){if(!this.div)return;let t=!1;switch(e){case os.FULLSCREEN:t=!0;break;case os.NORMAL:break;default:return}for(let e of this.div.childNodes)e.hasAttribute(`data-internal-link`)||(e.inert=t)}#c(e){function t(e){if(!e.quadPoints)return[e.rect];let t=[];for(let n=2,r=e.quadPoints.length;n<r;n+=8){let r=e.quadPoints[n],i=e.quadPoints[n+1],a=e.quadPoints[n+2],o=e.quadPoints[n+3];t.push([a,o,r,i])}return t}function n(e,n){let r=[],i=t(e),a=t(n);for(let e of i)for(let t of a){let n=No.intersect(e,t);n&&r.push(n)}return r}function r(e){let t=0;for(let n of e)t+=Math.abs((n[2]-n[0])*(n[3]-n[1]));return t}return e.filter(e=>{let i;for(let a of this.#e){if(a.annotationType!==La.LINK||!a.url)continue;let o=n(a,e);if(o.length!==0&&(i??=r(t(e)),r(o)/i>.5))return!1}return!0})}};X(8454),X(9452);var Zs=class{#e=new WeakMap;_triggerDownload(e,t,n,r=!1){throw Error(`Not implemented: _triggerDownload`)}_getOpenDataUrl(e,t,n=null){throw Error(`Not implemented: _getOpenDataUrl`)}downloadData(e,t,n){let r=URL.createObjectURL(new Blob([e],{type:n}));this._triggerDownload(r,r,t,!0)}openOrDownloadData(e,t,n=null){let r=io(t),i=r?`application/pdf`:``;if(r){let r=this.#e.getOrInsertComputed(e,()=>URL.createObjectURL(new Blob([e],{type:i})));try{let e=this._getOpenDataUrl(r,t,n);return window.open(e),!0}catch(t){console.error(`openOrDownloadData:`,t),URL.revokeObjectURL(r),this.#e.delete(e)}}return this.downloadData(e,t,i),!1}download(e,t,n){let r=e?URL.createObjectURL(new Blob([e],{type:`application/pdf`})):null;this._triggerDownload(r,t,n)}},Qs=class extends Zs{_triggerDownload(e,t,n,r=!1){if(!e&&!r){if(!Va(t,`http://example.com`))throw Error(`_triggerDownload - not a valid URL: ${t}`);e=t+`#pdfjs.action=download`}let i=document.createElement(`a`);i.href=e,i.target=`_parent`,`download`in i&&(i.download=n),(document.body||document.documentElement).append(i),i.click(),i.remove()}_getOpenDataUrl(e,t,n=null){throw Error("Opening data is not supported in `COMPONENTS` builds.")}},$s={EVENT:`event`,TIMEOUT:`timeout`};async function ec({target:e,name:t,delay:n=0}){if(typeof e!=`object`||!(t&&typeof t==`string`)||!(Number.isInteger(n)&&n>=0))throw Error(`waitOnEventOrTimeout - invalid parameters.`);let{promise:r,resolve:i}=Promise.withResolvers(),a=new AbortController;function o(e){a.abort(),clearTimeout(l),i(e)}let s=e instanceof tc?`on`:`addEventListener`,c=e instanceof tc?{signal:a.signal,...Os}:{signal:a.signal};e[s](t,o.bind(null,$s.EVENT),c);let l=setTimeout(o.bind(null,$s.TIMEOUT),n);return r}var tc=class{#e=Object.create(null);constructor(){Object.seal(this)}on(e,t,n=null){let r=null;if(n?.signal instanceof AbortSignal){let{signal:i}=n;if(i.aborted){console.error("Cannot use an `aborted` signal.");return}let a=()=>this.off(e,t);r=()=>i.removeEventListener(`abort`,a),i.addEventListener(`abort`,a)}(this.#e[e]??=[]).push({listener:t,internal:n?.internal===Ds,once:n?.once===!0,rmAbort:r})}off(e,t,n=null){let r=this.#e[e];if(r)for(let e=0,n=r.length;e<n;e++){let n=r[e];if(n.listener===t){n.rmAbort?.(),r.splice(e,1);return}}}dispatch(e,t){let n=this.#e[e];if(!n?.length)return;let r;for(let{listener:i,internal:a,once:o}of n.slice(0)){if(o&&this.off(e,i),!a){(r??=[]).push(i);continue}i(t)}if(r)for(let e of r)e(t)}},nc=class{constructor(e){this.value=e}valueOf(){return this.value}},rc=class extends nc{constructor(e=`???`){super(e)}toString(e){return`{${this.value}}`}},ic=class extends nc{constructor(e,t={}){super(e),this.opts=t}toString(e){if(e)try{return e.memoizeIntlObject(Intl.NumberFormat,this.opts).format(this.value)}catch(t){e.reportError(t)}return this.value.toString(10)}},ac=class e extends nc{static supportsValue(t){if(typeof t==`number`||t instanceof Date)return!0;if(t instanceof nc)return e.supportsValue(t.valueOf());if(`Temporal`in globalThis){let e=globalThis.Temporal;if(t instanceof e.Instant||t instanceof e.PlainDateTime||t instanceof e.PlainDate||t instanceof e.PlainMonthDay||t instanceof e.PlainTime||t instanceof e.PlainYearMonth)return!0}return!1}constructor(t,n={}){t instanceof e?(n={...t.opts,...n},t=t.value):t instanceof nc&&(t=t.valueOf()),typeof t==`object`&&`calendarId`in t&&n.calendar===void 0&&(n={...n,calendar:t.calendarId}),super(t),this.opts=n}[Symbol.toPrimitive](e){return e===`string`?this.toString():this.toNumber()}toNumber(){let e=this.value;if(typeof e==`number`)return e;if(e instanceof Date)return e.getTime();if(`epochMilliseconds`in e)return e.epochMilliseconds;if(`toZonedDateTime`in e)return e.toZonedDateTime(`UTC`).epochMilliseconds;throw TypeError(`Unwrapping a non-number value as a number`)}toString(e){if(e)try{return e.memoizeIntlObject(Intl.DateTimeFormat,this.opts).format(this.value)}catch(t){e.reportError(t)}return typeof this.value==`number`||this.value instanceof Date?new Date(this.value).toISOString():this.value.toString()}},oc=100,sc=``,cc=``;function lc(e,t,n){return n===t||n instanceof ic&&t instanceof ic&&n.value===t.value||t instanceof ic&&typeof n==`string`&&n===e.memoizeIntlObject(Intl.PluralRules,t.opts).select(t.value)}function uc(e,t,n){return t[n]?yc(e,t[n].value):(e.reportError(RangeError(`No default`)),new rc)}function dc(e,t){let n=[],r=Object.create(null);for(let i of t)i.type===`narg`?r[i.name]=fc(e,i.value):n.push(fc(e,i));return{positional:n,named:r}}function fc(e,t){switch(t.type){case`str`:return t.value;case`num`:return new ic(t.value,{minimumFractionDigits:t.precision});case`var`:return pc(e,t);case`mesg`:return mc(e,t);case`term`:return hc(e,t);case`func`:return gc(e,t);case`select`:return _c(e,t);default:return new rc}}function pc(e,{name:t}){let n;if(e.params)if(Object.prototype.hasOwnProperty.call(e.params,t))n=e.params[t];else return new rc(`$${t}`);else if(e.args&&Object.prototype.hasOwnProperty.call(e.args,t))n=e.args[t];else return e.reportError(ReferenceError(`Unknown variable: $${t}`)),new rc(`$${t}`);if(n instanceof nc)return n;switch(typeof n){case`string`:return n;case`number`:return new ic(n);case`object`:if(ac.supportsValue(n))return new ac(n);default:return e.reportError(TypeError(`Variable type not supported: $${t}, ${typeof n}`)),new rc(`$${t}`)}}function mc(e,{name:t,attr:n}){let r=e.bundle._messages.get(t);if(!r)return e.reportError(ReferenceError(`Unknown message: ${t}`)),new rc(t);if(n){let i=r.attributes[n];return i?yc(e,i):(e.reportError(ReferenceError(`Unknown attribute: ${n}`)),new rc(`${t}.${n}`))}return r.value?yc(e,r.value):(e.reportError(ReferenceError(`No value: ${t}`)),new rc(t))}function hc(e,{name:t,attr:n,args:r}){let i=`-${t}`,a=e.bundle._terms.get(i);if(!a)return e.reportError(ReferenceError(`Unknown term: ${i}`)),new rc(i);if(n){let t=a.attributes[n];if(t){e.params=dc(e,r).named;let n=yc(e,t);return e.params=null,n}return e.reportError(ReferenceError(`Unknown attribute: ${n}`)),new rc(`${i}.${n}`)}e.params=dc(e,r).named;let o=yc(e,a.value);return e.params=null,o}function gc(e,{name:t,args:n}){let r=e.bundle._functions[t];if(!r)return e.reportError(ReferenceError(`Unknown function: ${t}()`)),new rc(`${t}()`);if(typeof r!=`function`)return e.reportError(TypeError(`Function ${t}() is not callable`)),new rc(`${t}()`);try{let t=dc(e,n);return r(t.positional,t.named)}catch(n){return e.reportError(n),new rc(`${t}()`)}}function _c(e,{selector:t,variants:n,star:r}){let i=fc(e,t);if(i instanceof rc)return uc(e,n,r);for(let t of n)if(lc(e,i,fc(e,t.key)))return yc(e,t.value);return uc(e,n,r)}function vc(e,t){if(e.dirty.has(t))return e.reportError(RangeError(`Cyclic reference`)),new rc;e.dirty.add(t);let n=[],r=e.bundle._useIsolating&&t.length>1;for(let i of t){if(typeof i==`string`){n.push(e.bundle._transform(i));continue}if(e.placeables++,e.placeables>oc)throw e.dirty.delete(t),RangeError(`Too many placeables expanded: ${e.placeables}, max allowed is ${oc}`);r&&n.push(sc),n.push(fc(e,i).toString(e)),r&&n.push(cc)}return e.dirty.delete(t),n.join(``)}function yc(e,t){return typeof t==`string`?e.bundle._transform(t):vc(e,t)}var bc=class{constructor(e,t,n){this.dirty=new WeakSet,this.params=null,this.placeables=0,this.bundle=e,this.errors=t,this.args=n}reportError(e){if(!this.errors||!(e instanceof Error))throw e;this.errors.push(e)}memoizeIntlObject(e,t){let n=this.bundle._intls.get(e);n||(n={},this.bundle._intls.set(e,n));let r=JSON.stringify(t);return n[r]||(n[r]=new e(this.bundle.locales,t)),n[r]}};function xc(e,t){let n=Object.create(null);for(let[r,i]of Object.entries(e))t.includes(r)&&(n[r]=i.valueOf());return n}var Sc=[`unitDisplay`,`currencyDisplay`,`useGrouping`,`minimumIntegerDigits`,`minimumFractionDigits`,`maximumFractionDigits`,`minimumSignificantDigits`,`maximumSignificantDigits`];function Cc(e,t){let n=e[0];if(n instanceof rc)return new rc(`NUMBER(${n.valueOf()})`);if(n instanceof ic)return new ic(n.valueOf(),{...n.opts,...xc(t,Sc)});if(n instanceof ac)return new ic(n.toNumber(),{...xc(t,Sc)});throw TypeError(`Invalid argument to NUMBER`)}var wc=[`dateStyle`,`timeStyle`,`fractionalSecondDigits`,`dayPeriod`,`hour12`,`weekday`,`era`,`year`,`month`,`day`,`hour`,`minute`,`second`,`timeZoneName`];function Tc(e,t){let n=e[0];if(n instanceof rc)return new rc(`DATETIME(${n.valueOf()})`);if(n instanceof ac||n instanceof ic)return new ac(n,xc(t,wc));throw TypeError(`Invalid argument to DATETIME`)}var Ec=new Map;function Dc(e){let t=Array.isArray(e)?e.join(` `):e,n=Ec.get(t);return n===void 0&&(n=new Map,Ec.set(t,n)),n}var Oc=class{constructor(e,{functions:t,useIsolating:n=!0,transform:r=e=>e}={}){this._terms=new Map,this._messages=new Map,this.locales=Array.isArray(e)?e:[e],this._functions={NUMBER:Cc,DATETIME:Tc,...t},this._useIsolating=n,this._transform=r,this._intls=Dc(e)}hasMessage(e){return this._messages.has(e)}getMessage(e){return this._messages.get(e)}addResource(e,{allowOverrides:t=!1}={}){let n=[];for(let r=0;r<e.body.length;r++){let i=e.body[r];if(i.id.startsWith(`-`)){if(t===!1&&this._terms.has(i.id)){n.push(Error(`Attempt to override an existing term: "${i.id}"`));continue}this._terms.set(i.id,i)}else{if(t===!1&&this._messages.has(i.id)){n.push(Error(`Attempt to override an existing message: "${i.id}"`));continue}this._messages.set(i.id,i)}}return n}formatPattern(e,t=null,n=null){if(typeof e==`string`)return this._transform(e);let r=new bc(this,n,t);try{return vc(r,e).toString(r)}catch(e){if(r.errors&&e instanceof Error)return r.errors.push(e),new rc().toString(r);throw e}}},kc=/^(-?[a-zA-Z][\w-]*) *= */gm,Ac=/\.([a-zA-Z][\w-]*) *= */y,jc=/\*?\[/y,Mc=/(-?[0-9]+(?:\.([0-9]+))?)/y,Nc=/([a-zA-Z][\w-]*)/y,Pc=/([$-])?([a-zA-Z][\w-]*)(?:\.([a-zA-Z][\w-]*))?/y,Fc=/^[A-Z][A-Z0-9_-]*$/,Ic=/([^{}\n\r]+)/y,Lc=/([^\\"\n\r]*)/y,Rc=/\\([\\"])/y,zc=/\\u([a-fA-F0-9]{4})|\\U([a-fA-F0-9]{6})/y,Bc=/^\n+/,Vc=/ +$/,Hc=/ *\r?\n/g,Uc=/( *)$/,Wc=/{\s*/y,Gc=/\s*}/y,Kc=/\[\s*/y,qc=/\s*] */y,Jc=/\s*\(\s*/y,Yc=/\s*->\s*/y,Xc=/\s*:\s*/y,Zc=/\s*,?\s*/y,Qc=/\s+/y,$c=class{constructor(e){this.body=[],kc.lastIndex=0;let t=0;for(;;){let n=kc.exec(e);if(n===null)break;t=kc.lastIndex;try{this.body.push(s(n[1]))}catch(e){if(e instanceof SyntaxError)continue;throw e}}function n(n){return n.lastIndex=t,n.test(e)}function r(n,r){if(e[t]===n)return t++,!0;if(r)throw new r(`Expected ${n}`);return!1}function i(e,r){if(n(e))return t=e.lastIndex,!0;if(r)throw new r(`Expected ${e.toString()}`);return!1}function a(n){n.lastIndex=t;let r=n.exec(e);if(r===null)throw SyntaxError(`Expected ${n.toString()}`);return t=n.lastIndex,r}function o(e){return a(e)[1]}function s(e){let t=l(),n=c();if(t===null&&Object.keys(n).length===0)throw SyntaxError(`Expected message value or attributes`);return{id:e,value:t,attributes:n}}function c(){let e=Object.create(null);for(;n(Ac);){let t=o(Ac),n=l();if(n===null)throw SyntaxError(`Expected attribute value`);e[t]=n}return e}function l(){let r;if(n(Ic)&&(r=o(Ic)),e[t]===`{`||e[t]===`}`)return u(r?[r]:[],1/0);let i=x();return i?r?u([r,i],i.length):(i.value=S(i.value,Bc),u([i],i.length)):r?S(r,Vc):null}function u(r=[],i){for(;;){if(n(Ic)){r.push(o(Ic));continue}if(e[t]===`{`){r.push(d());continue}if(e[t]===`}`)throw SyntaxError(`Unbalanced closing brace`);let a=x();if(a){r.push(a),i=Math.min(i,a.length);continue}break}let a=r.length-1,s=r[a];typeof s==`string`&&(r[a]=S(s,Vc));let c=[];for(let e of r)e instanceof el&&(e=e.value.slice(0,e.value.length-i)),e&&c.push(e);return c}function d(){i(Wc,SyntaxError);let e=f();if(i(Gc))return e;if(i(Yc)){let t=h();return i(Gc,SyntaxError),{type:`select`,selector:e,...t}}throw SyntaxError(`Unclosed placeable`)}function f(){if(e[t]===`{`)return d();if(n(Pc)){let[,e,t,n=null]=a(Pc);if(e===`$`)return{type:`var`,name:t};if(i(Jc)){let r=p();if(e===`-`)return{type:`term`,name:t,attr:n,args:r};if(Fc.test(t))return{type:`func`,name:t,args:r};throw SyntaxError(`Function names must be all upper-case`)}return e===`-`?{type:`term`,name:t,attr:n,args:[]}:{type:`mesg`,name:t,attr:n}}return _()}function p(){let n=[];for(;;){switch(e[t]){case`)`:return t++,n;case void 0:throw SyntaxError(`Unclosed argument list`)}n.push(m()),i(Zc)}}function m(){let e=f();return e.type===`mesg`&&i(Xc)?{type:`narg`,name:e.name,value:_()}:e}function h(){let e=[],t=0,i;for(;n(jc);){r(`*`)&&(i=t);let n=g(),a=l();if(a===null)throw SyntaxError(`Expected variant value`);e[t++]={key:n,value:a}}if(t===0)return null;if(i===void 0)throw SyntaxError(`Expected default variant`);return{variants:e,star:i}}function g(){i(Kc,SyntaxError);let e;return e=n(Mc)?v():{type:`str`,value:o(Nc)},i(qc,SyntaxError),e}function _(){if(n(Mc))return v();if(e[t]===`"`)return y();throw SyntaxError(`Invalid expression`)}function v(){let[,e,t=``]=a(Mc),n=t.length;return{type:`num`,value:parseFloat(e),precision:n}}function y(){r(`"`,SyntaxError);let n=``;for(;;){if(n+=o(Lc),e[t]===`\\`){n+=b();continue}if(r(`"`))return{type:`str`,value:n};throw SyntaxError(`Unclosed string literal`)}}function b(){if(n(Rc))return o(Rc);if(n(zc)){let[,e,t]=a(zc),n=parseInt(e||t,16);return n<=55295||57344<=n?String.fromCodePoint(n):`<60>`}throw SyntaxError(`Unknown escape sequence`)}function x(){let n=t;switch(i(Qc),e[t]){case`.`:case`[`:case`*`:case`}`:case void 0:return!1;case`{`:return C(e.slice(n,t))}return e[t-1]===` `?C(e.slice(n,t)):!1}function S(e,t){return e.replace(t,``)}function C(e){let t=e.replace(Hc,`
`),n=Uc.exec(e)[1].length;return new el(t,n)}}},el=class{constructor(e,t){this.value=e,this.length=t}},tl=/<|&#?\w+;/,nl={"http://www.w3.org/1999/xhtml":[`em`,`strong`,`small`,`s`,`cite`,`q`,`dfn`,`abbr`,`data`,`time`,`code`,`var`,`samp`,`kbd`,`sub`,`sup`,`i`,`b`,`u`,`mark`,`bdi`,`bdo`,`span`,`br`,`wbr`]},rl={"http://www.w3.org/1999/xhtml":{global:[`title`,`aria-description`,`aria-label`,`aria-valuetext`],a:[`download`],area:[`download`,`alt`],input:[`alt`,`placeholder`],menuitem:[`label`],menu:[`label`],optgroup:[`label`],option:[`label`],track:[`label`],img:[`alt`],textarea:[`placeholder`],th:[`abbr`]},"http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul":{global:[`accesskey`,`aria-label`,`aria-valuetext`,`label`,`title`,`tooltiptext`],description:[`value`],key:[`key`,`keycode`],label:[`value`],textbox:[`placeholder`,`value`]}};function il(e,t){let{value:n}=t;if(typeof n==`string`)if(e.localName===`title`&&e.namespaceURI===`http://www.w3.org/1999/xhtml`)e.textContent=n;else if(!tl.test(n))e.textContent=n;else{let t=e.ownerDocument.createElementNS(`http://www.w3.org/1999/xhtml`,`template`);t.innerHTML=n,al(t.content,e)}sl(t,e)}function al(e,t){for(let n of e.childNodes)if(n.nodeType!==n.TEXT_NODE){if(n.hasAttribute(`data-l10n-name`)){let r=cl(t,n);e.replaceChild(r,n);continue}if(dl(n)){let t=ll(n);e.replaceChild(t,n);continue}console.warn(`An element of forbidden type "${n.localName}" was found in the translation. Only safe text-level elements and elements with data-l10n-name are allowed.`),e.replaceChild(ul(n),n)}t.textContent=``,t.appendChild(e)}function ol(e,t){if(!e)return!1;for(let n of e)if(n.name===t)return!0;return!1}function sl(e,t){let n=t.hasAttribute(`data-l10n-attrs`)?t.getAttribute(`data-l10n-attrs`).split(`,`).map(e=>e.trim()):null;for(let r of Array.from(t.attributes))fl(r.name,t,n)&&!ol(e.attributes,r.name)&&t.removeAttribute(r.name);if(e.attributes)for(let r of Array.from(e.attributes))fl(r.name,t,n)&&t.getAttribute(r.name)!==r.value&&t.setAttribute(r.name,r.value)}function cl(e,t){let n=t.getAttribute(`data-l10n-name`),r=e.querySelector(`[data-l10n-name="${n}"]`);return r?r.localName===t.localName?(e.removeChild(r),pl(t,r.cloneNode(!1))):(console.warn(`An element named "${n}" was found in the translation but its type ${t.localName} didn't match the element found in the source (${r.localName}).`),ul(t)):(console.warn(`An element named "${n}" wasn't found in the source.`),ul(t))}function ll(e){return pl(e,e.ownerDocument.createElement(e.localName))}function ul(e){return e.ownerDocument.createTextNode(e.textContent)}function dl(e){let t=nl[e.namespaceURI];return t&&t.includes(e.localName)}function fl(e,t,n=null){if(n&&n.includes(e))return!0;let r=rl[t.namespaceURI];if(!r)return!1;let i=e.toLowerCase(),a=t.localName;if(r.global.includes(i))return!0;if(!r[a])return!1;if(r[a].includes(i))return!0;if(t.namespaceURI===`http://www.w3.org/1999/xhtml`&&a===`input`&&i===`value`){let e=t.type.toLowerCase();if(e===`submit`||e===`button`||e===`reset`)return!0}return!1}function pl(e,t){return t.textContent=e.textContent,sl(e,t),t}var ml=class extends Array{static from(e){return e instanceof this?e:new this(e)}},hl=class extends ml{constructor(e){if(super(),Symbol.asyncIterator in Object(e))this.iterator=e[Symbol.asyncIterator]();else if(Symbol.iterator in Object(e))this.iterator=e[Symbol.iterator]();else throw TypeError(`Argument must implement the iteration protocol.`)}[Symbol.asyncIterator](){let e=this,t=0;return{async next(){return e.length<=t&&e.push(e.iterator.next()),e[t++]}}}async touchNext(e=1){let t=0;for(;t++<e;){let e=this[this.length-1];if(e&&(await e).done)break;this.push(this.iterator.next())}return this[this.length-1]}},gl=class{constructor(e=[],t){this.resourceIds=e,this.generateBundles=t,this.onChange(!0)}addResourceIds(e,t=!1){return this.resourceIds.push(...e),this.onChange(t),this.resourceIds.length}removeResourceIds(e){return this.resourceIds=this.resourceIds.filter(t=>!e.includes(t)),this.onChange(),this.resourceIds.length}async formatWithFallback(e,t){let n=[],r=!1;for await(let i of this.bundles){r=!0;let a=yl(t,i,e,n);if(a.size===0)break;if(typeof console<`u`){let e=i.locales[0],t=Array.from(a).join(`, `);console.warn(`[fluent] Missing translations in ${e}: ${t}`)}}return!r&&typeof console<`u`&&console.warn(`[fluent] Request for keys failed because no resource bundles got generated.
keys: ${JSON.stringify(e)}.
resourceIds: ${JSON.stringify(this.resourceIds)}.`),n}formatMessages(e){return this.formatWithFallback(e,vl)}formatValues(e){return this.formatWithFallback(e,_l)}async formatValue(e,t){let[n]=await this.formatValues([{id:e,args:t}]);return n}handleEvent(){this.onChange()}onChange(e=!1){this.bundles=hl.from(this.generateBundles(this.resourceIds)),e&&this.bundles.touchNext(2)}};function _l(e,t,n,r){return n.value?e.formatPattern(n.value,r,t):null}function vl(e,t,n,r){let i={value:null,attributes:null};n.value&&(i.value=e.formatPattern(n.value,r,t));let a=Object.keys(n.attributes);if(a.length>0){i.attributes=Array(a.length);for(let[o,s]of a.entries()){let a=e.formatPattern(n.attributes[s],r,t);i.attributes[o]={name:s,value:a}}}return i}function yl(e,t,n,r){let i=[],a=new Set;return n.forEach(({id:n,args:o},s)=>{if(r[s]!==void 0)return;let c=t.getMessage(n);if(c){if(i.length=0,r[s]=e(t,i,c,o),i.length>0&&typeof console<`u`){let e=t.locales[0],r=i.join(`, `);console.warn(`[fluent][resolver] errors in ${e}/${n}: ${r}.`)}}else a.add(n)}),a}var bl=`data-l10n-id`,xl=`data-l10n-args`,Sl=`[${bl}]`,Cl=class extends gl{constructor(e,t){super(e,t),this.roots=new Set,this.pendingrAF=null,this.pendingElements=new Set,this.windowElement=null,this.mutationObserver=null,this.observerConfig={attributes:!0,characterData:!1,childList:!0,subtree:!0,attributeFilter:[bl,xl]}}onChange(e=!1){super.onChange(e),this.roots&&this.translateRoots()}setAttributes(e,t,n){return e.setAttribute(bl,t),n?e.setAttribute(xl,JSON.stringify(n)):e.removeAttribute(xl),e}getAttributes(e){return{id:e.getAttribute(bl),args:JSON.parse(e.getAttribute(xl)||null)}}connectRoot(e){for(let t of this.roots)if(t===e||t.contains(e)||e.contains(t))throw Error(`Cannot add a root that overlaps with existing root.`);if(this.windowElement){if(this.windowElement!==e.ownerDocument.defaultView)throw Error(`Cannot connect a root:
DOMLocalization already has a root from a different window.`)}else this.windowElement=e.ownerDocument.defaultView,this.mutationObserver=new this.windowElement.MutationObserver(e=>this.translateMutations(e));this.roots.add(e),this.mutationObserver.observe(e,this.observerConfig)}disconnectRoot(e){return this.roots.delete(e),this.pauseObserving(),this.roots.size===0?(this.mutationObserver=null,this.windowElement&&this.pendingrAF&&this.windowElement.cancelAnimationFrame(this.pendingrAF),this.windowElement=null,this.pendingrAF=null,this.pendingElements.clear(),!0):(this.resumeObserving(),!1)}translateRoots(){let e=Array.from(this.roots);return Promise.all(e.map(e=>this.translateFragment(e)))}pauseObserving(){this.mutationObserver&&(this.translateMutations(this.mutationObserver.takeRecords()),this.mutationObserver.disconnect())}resumeObserving(){if(this.mutationObserver)for(let e of this.roots)this.mutationObserver.observe(e,this.observerConfig)}translateMutations(e){for(let t of e)switch(t.type){case`attributes`:t.target.hasAttribute(`data-l10n-id`)&&this.pendingElements.add(t.target);break;case`childList`:for(let e of t.addedNodes)if(e.nodeType===e.ELEMENT_NODE)if(e.childElementCount)for(let t of this.getTranslatables(e))this.pendingElements.add(t);else e.hasAttribute(bl)&&this.pendingElements.add(e);break}this.pendingElements.size>0&&this.pendingrAF===null&&(this.pendingrAF=this.windowElement.requestAnimationFrame(()=>{this.translateElements(Array.from(this.pendingElements)),this.pendingElements.clear(),this.pendingrAF=null}))}translateFragment(e){return this.translateElements(this.getTranslatables(e))}async translateElements(e){if(!e.length)return;let t=e.map(this.getKeysForElement),n=await this.formatMessages(t);return this.applyTranslations(e,n)}applyTranslations(e,t){this.pauseObserving();for(let n=0;n<e.length;n++)t[n]!==void 0&&il(e[n],t[n]);this.resumeObserving()}getTranslatables(e){let t=Array.from(e.querySelectorAll(Sl));return typeof e.hasAttribute==`function`&&e.hasAttribute(bl)&&t.push(e),t}getKeysForElement(e){return{id:e.getAttribute(bl),args:JSON.parse(e.getAttribute(xl)||null)}}},wl=class e{#e;#t;#n;#r;constructor({lang:t,isRTL:n},r=null){this.#n=e.#i(t),this.#r=r,this.#e=n??e.#a(this.#n)?`rtl`:`ltr`}_setL10n(e){this.#r=e}getLanguage(){return this.#n}getDirection(){return this.#e}async get(e,t=null,n){return Array.isArray(e)?(e=e.map(e=>({id:e})),(await this.#r.formatMessages(e)).map(e=>e.value)):(await this.#r.formatMessages([{id:e,args:t}]))[0]?.value||n}async translate(e){(this.#t||=new Set).add(e);try{this.#r.connectRoot(e),await this.#r.translateRoots()}catch{}}async translateOnce(e){try{await this.#r.translateElements([e])}catch(e){console.error(`translateOnce:`,e)}}async destroy(){if(this.#t){for(let e of this.#t)this.#r.disconnectRoot(e);this.#t.clear(),this.#t=null}this.#r.pauseObserving()}pause(){this.#r.pauseObserving()}resume(){this.#r.resumeObserving()}static#i(e){return e=e?.toLowerCase()||`en-us`,{en:`en-us`,es:`es-es`,fy:`fy-nl`,ga:`ga-ie`,gu:`gu-in`,hi:`hi-in`,hy:`hy-am`,nb:`nb-no`,ne:`ne-np`,nn:`nn-no`,pa:`pa-in`,pt:`pt-pt`,sv:`sv-se`,zh:`zh-cn`}[e]||e}static#a(e){let t=e.split(`-`,1)[0];return[`ar`,`he`,`fa`,`ps`,`ur`].includes(t)}};function Tl(){let{isAndroid:e,isLinux:t,isMac:n,isWindows:r}=Ga.platform;return t?`linux`:r?`windows`:n?`macos`:e?`android`:`other`}function El(e,t){let n=new $c(t),r=new Oc(e,{functions:{PLATFORM:Tl}}),i=r.addResource(n);return i.length&&console.error(`L10n errors`,i),r}var Dl=class e extends wl{constructor(t){super({lang:t});let n=t?e.#e.bind(e,`en-us`,this.getLanguage()):e.#r.bind(e,this.getLanguage());this._setL10n(new Cl([],n))}static async*#e(e,t){let{baseURL:n,paths:r}=await this.#n(),i=[t];if(e!==t){let n=t.split(`-`,1)[0];n!==t&&i.push(n),i.push(e)}let a=i.map(e=>[e,this.#t(e,n,r)]);for(let[e,t]of a){let n=await t;n?yield n:e===`en-us`&&(yield this.#i(e))}}static async#t(e,t,n){let r=n[e];return r?El(e,await Ka(new URL(r,t),`text`)):null}static async#n(){try{let{href:e}=document.querySelector(`link[type="application/l10n"]`),t=await Ka(e,`json`);return{baseURL:e.substring(0,e.lastIndexOf(`/`)+1)||`./`,paths:t}}catch{}return{baseURL:`./`,paths:Object.create(null)}}static async*#r(e){yield this.#i(e)}static async#i(e){return El(e,`pdfjs-previous-button =
.title = Previous Page
pdfjs-previous-button-label = Previous
pdfjs-next-button =
.title = Next Page
pdfjs-next-button-label = Next
pdfjs-page-input =
.title = Page
pdfjs-of-pages = of { $pagesCount }
pdfjs-page-of-pages = ({ $pageNumber } of { $pagesCount })
pdfjs-zoom-out-button =
.title = Zoom Out
pdfjs-zoom-out-button-label = Zoom Out
pdfjs-zoom-in-button =
.title = Zoom In
pdfjs-zoom-in-button-label = Zoom In
pdfjs-zoom-select =
.title = Zoom
pdfjs-presentation-mode-button =
.title = Switch to Presentation Mode
pdfjs-presentation-mode-button-label = Presentation Mode
pdfjs-open-file-button =
.title = Open File
pdfjs-open-file-button-label = Open
pdfjs-print-button =
.title = Print
pdfjs-print-button-label = Print
pdfjs-save-button =
.title = Save
pdfjs-save-button-label = Save
pdfjs-download-button =
.title = Download
pdfjs-download-button-label = Download
pdfjs-bookmark-button =
.title = Current Page (View URL from Current Page)
pdfjs-bookmark-button-label = Current Page
pdfjs-tools-button =
.title = Tools
pdfjs-tools-button-label = Tools
pdfjs-first-page-button =
.title = Go to First Page
pdfjs-first-page-button-label = Go to First Page
pdfjs-last-page-button =
.title = Go to Last Page
pdfjs-last-page-button-label = Go to Last Page
pdfjs-page-rotate-cw-button =
.title = Rotate Clockwise
pdfjs-page-rotate-cw-button-label = Rotate Clockwise
pdfjs-page-rotate-ccw-button =
.title = Rotate Counterclockwise
pdfjs-page-rotate-ccw-button-label = Rotate Counterclockwise
pdfjs-cursor-text-select-tool-button =
.title = Enable Text Selection Tool
pdfjs-cursor-text-select-tool-button-label = Text Selection Tool
pdfjs-cursor-hand-tool-button =
.title = Enable Hand Tool
pdfjs-cursor-hand-tool-button-label = Hand Tool
pdfjs-scroll-page-button =
.title = Use Page Scrolling
pdfjs-scroll-page-button-label = Page Scrolling
pdfjs-scroll-vertical-button =
.title = Use Vertical Scrolling
pdfjs-scroll-vertical-button-label = Vertical Scrolling
pdfjs-scroll-horizontal-button =
.title = Use Horizontal Scrolling
pdfjs-scroll-horizontal-button-label = Horizontal Scrolling
pdfjs-scroll-wrapped-button =
.title = Use Wrapped Scrolling
pdfjs-scroll-wrapped-button-label = Wrapped Scrolling
pdfjs-spread-none-button =
.title = Do not join page spreads
pdfjs-spread-none-button-label = No Spreads
pdfjs-spread-odd-button =
.title = Join page spreads starting with odd-numbered pages
pdfjs-spread-odd-button-label = Odd Spreads
pdfjs-spread-even-button =
.title = Join page spreads starting with even-numbered pages
pdfjs-spread-even-button-label = Even Spreads
pdfjs-document-properties-button =
.title = Document Properties…
pdfjs-document-properties-button-label = Document Properties…
pdfjs-document-properties-file-name = File name:
pdfjs-document-properties-file-size = File size:
pdfjs-document-properties-size-kb = { NUMBER($kb, maximumSignificantDigits: 3) } KB ({ $b } bytes)
pdfjs-document-properties-size-mb = { NUMBER($mb, maximumSignificantDigits: 3) } MB ({ $b } bytes)
pdfjs-document-properties-title = Title:
pdfjs-document-properties-author = Author:
pdfjs-document-properties-subject = Subject:
pdfjs-document-properties-keywords = Keywords:
pdfjs-document-properties-creation-date = Creation Date:
pdfjs-document-properties-modification-date = Modification Date:
pdfjs-document-properties-date-time-string = { DATETIME($dateObj, dateStyle: "short", timeStyle: "medium") }
pdfjs-document-properties-creator = Creator:
pdfjs-document-properties-producer = PDF Producer:
pdfjs-document-properties-version = PDF Version:
pdfjs-document-properties-page-count = Page Count:
pdfjs-document-properties-page-size = Page Size:
pdfjs-document-properties-page-size-unit-inches = in
pdfjs-document-properties-page-size-unit-millimeters = mm
pdfjs-document-properties-page-size-orientation-portrait = portrait
pdfjs-document-properties-page-size-orientation-landscape = landscape
pdfjs-document-properties-page-size-name-a-three = A3
pdfjs-document-properties-page-size-name-a-four = A4
pdfjs-document-properties-page-size-name-letter = Letter
pdfjs-document-properties-page-size-name-legal = Legal
pdfjs-document-properties-page-size-dimension-string = { $width } × { $height } { $unit } ({ $orientation })
pdfjs-document-properties-page-size-dimension-name-string = { $width } × { $height } { $unit } ({ $name }, { $orientation })
pdfjs-document-properties-linearized = Fast Web View:
pdfjs-document-properties-linearized-yes = Yes
pdfjs-document-properties-linearized-no = No
pdfjs-document-properties-close-button = Close
pdfjs-print-progress-message = Preparing document for printing…
pdfjs-print-progress-percent = { $progress }%
pdfjs-print-progress-close-button = Cancel
pdfjs-printing-not-supported = Warning: Printing is not fully supported by this browser.
pdfjs-printing-not-ready = Warning: The PDF is not fully loaded for printing.
pdfjs-current-outline-item-button =
.title = Find Current Outline Item
pdfjs-current-outline-item-button-label = Current Outline Item
pdfjs-findbar-button =
.title = Find in Document
pdfjs-findbar-button-label = Find
pdfjs-additional-layers = Additional Layers
pdfjs-thumb-page-title1 =
.title = Page { $page } of { $total }
pdfjs-thumb-page-canvas =
.aria-label = Thumbnail of Page { $page }
pdfjs-thumb-page-checkbox1 =
.title = Select page { $page }
pdfjs-find-input =
.title = Find
.placeholder = Find in document…
pdfjs-find-previous-button =
.title = Find the previous occurrence of the phrase
pdfjs-find-previous-button-label = Previous
pdfjs-find-next-button =
.title = Find the next occurrence of the phrase
pdfjs-find-next-button-label = Next
pdfjs-find-highlight-checkbox = Highlight All
pdfjs-find-match-case-checkbox-label = Match Case
pdfjs-find-match-diacritics-checkbox-label = Match Diacritics
pdfjs-find-entire-word-checkbox-label = Whole Words
pdfjs-find-reached-top = Reached top of document, continued from bottom
pdfjs-find-reached-bottom = Reached end of document, continued from top
pdfjs-find-match-count =
{ $total ->
[one] { $current } of { $total } match
*[other] { $current } of { $total } matches
}
pdfjs-find-match-count-limit =
{ $limit ->
[one] More than { $limit } match
*[other] More than { $limit } matches
}
pdfjs-find-not-found = Phrase not found
pdfjs-page-scale-width = Page Width
pdfjs-page-scale-fit = Page Fit
pdfjs-page-scale-auto = Automatic Zoom
pdfjs-page-scale-actual = Actual Size
pdfjs-page-scale-percent = { $scale }%
pdfjs-page-landmark =
.aria-label = Page { $page }
pdfjs-loading-error = An error occurred while loading the PDF.
pdfjs-invalid-file-error = Invalid or corrupted PDF file.
pdfjs-missing-file-error = Missing PDF file.
pdfjs-unexpected-response-error = Unexpected server response.
pdfjs-rendering-error = An error occurred while rendering the page.
pdfjs-annotation-date-time-string = { DATETIME($dateObj, dateStyle: "short", timeStyle: "medium") }
pdfjs-text-annotation-type =
.alt = [{ $type } Annotation]
pdfjs-password-label = Enter the password to open this PDF file.
pdfjs-password-invalid = Invalid password. Please try again.
pdfjs-password-ok-button = OK
pdfjs-password-cancel-button = Cancel
pdfjs-web-fonts-disabled = Web fonts are disabled: unable to use embedded PDF fonts.
pdfjs-editor-free-text-button =
.title = Text
pdfjs-editor-color-picker-free-text-input =
.title = Change text color
pdfjs-editor-free-text-button-label = Text
pdfjs-editor-ink-button =
.title = Draw
pdfjs-editor-color-picker-ink-input =
.title = Change drawing color
pdfjs-editor-ink-button-label = Draw
pdfjs-editor-stamp-button =
.title = Add or edit images
pdfjs-editor-stamp-button-label = Add or edit images
pdfjs-editor-highlight-button =
.title = Highlight
pdfjs-editor-highlight-button-label = Highlight
pdfjs-highlight-floating-button1 =
.title = Highlight
.aria-label = Highlight
pdfjs-highlight-floating-button-label = Highlight
pdfjs-comment-floating-button =
.title = Comment
.aria-label = Comment
pdfjs-comment-floating-button-label = Comment
pdfjs-editor-comment-button =
.title = Comment
.aria-label = Comment
pdfjs-editor-comment-button-label = Comment
pdfjs-editor-signature-button =
.title = Add signature
pdfjs-editor-signature-button-label = Add signature
pdfjs-editor-highlight-editor =
.aria-label = Highlight editor
pdfjs-editor-ink-editor =
.aria-label = Drawing editor
pdfjs-editor-signature-editor1 =
.aria-description = Signature editor: { $description }
pdfjs-editor-stamp-editor =
.aria-label = Image editor
pdfjs-editor-remove-ink-button =
.title = Remove drawing
pdfjs-editor-remove-freetext-button =
.title = Remove text
pdfjs-editor-remove-stamp-button =
.title = Remove image
pdfjs-editor-remove-highlight-button =
.title = Remove highlight
pdfjs-editor-remove-signature-button =
.title = Remove signature
pdfjs-editor-free-text-color-input = Color
pdfjs-editor-free-text-size-input = Size
pdfjs-editor-ink-color-input = Color
pdfjs-editor-ink-thickness-input = Thickness
pdfjs-editor-ink-opacity-input = Opacity
pdfjs-editor-stamp-add-image-button =
.title = Add image
pdfjs-editor-stamp-add-image-button-label = Add image
pdfjs-editor-free-highlight-thickness-input = Thickness
pdfjs-editor-free-highlight-thickness-title =
.title = Change thickness when highlighting items other than text
pdfjs-editor-add-signature-container =
.aria-label = Signature controls and saved signatures
pdfjs-editor-signature-add-signature-button =
.title = Add new signature
pdfjs-editor-signature-add-signature-button-label = Add new signature
pdfjs-editor-add-saved-signature-button =
.title = Saved signature: { $description }
pdfjs-free-text2 =
.aria-label = Text Editor
.default-content = Start typing…
pdfjs-editor-comments-sidebar-title =
{ $count ->
[one] Comment
*[other] Comments
}
pdfjs-editor-comments-sidebar-close-button =
.title = Close the sidebar
.aria-label = Close the sidebar
pdfjs-editor-comments-sidebar-close-button-label = Close the sidebar
pdfjs-editor-comments-sidebar-no-comments1 = See something noteworthy? Highlight it and leave a comment.
pdfjs-editor-comments-sidebar-no-comments-link = Learn more
pdfjs-editor-alt-text-button =
.aria-label = Alt text
pdfjs-editor-alt-text-button-label = Alt text
pdfjs-editor-alt-text-edit-button =
.aria-label = Edit alt text
pdfjs-editor-alt-text-dialog-label = Choose an option
pdfjs-editor-alt-text-dialog-description = Alt text (alternative text) helps when people cant see the image or when it doesnt load.
pdfjs-editor-alt-text-add-description-label = Add a description
pdfjs-editor-alt-text-add-description-description = Aim for 1-2 sentences that describe the subject, setting, or actions.
pdfjs-editor-alt-text-mark-decorative-label = Mark as decorative
pdfjs-editor-alt-text-mark-decorative-description = This is used for ornamental images, like borders or watermarks.
pdfjs-editor-alt-text-cancel-button = Cancel
pdfjs-editor-alt-text-save-button = Save
pdfjs-editor-alt-text-decorative-tooltip = Marked as decorative
pdfjs-editor-alt-text-textarea =
.placeholder = For example, “A young man sits down at a table to eat a meal”
pdfjs-editor-resizer-top-left =
.aria-label = Top left corner — resize
pdfjs-editor-resizer-top-middle =
.aria-label = Top middle — resize
pdfjs-editor-resizer-top-right =
.aria-label = Top right corner — resize
pdfjs-editor-resizer-middle-right =
.aria-label = Middle right — resize
pdfjs-editor-resizer-bottom-right =
.aria-label = Bottom right corner — resize
pdfjs-editor-resizer-bottom-middle =
.aria-label = Bottom middle — resize
pdfjs-editor-resizer-bottom-left =
.aria-label = Bottom left corner — resize
pdfjs-editor-resizer-middle-left =
.aria-label = Middle left — resize
pdfjs-editor-highlight-colorpicker-label = Highlight color
pdfjs-editor-colorpicker-button =
.title = Change color
pdfjs-editor-colorpicker-dropdown =
.aria-label = Color choices
pdfjs-editor-colorpicker-yellow =
.title = Yellow
pdfjs-editor-colorpicker-green =
.title = Green
pdfjs-editor-colorpicker-blue =
.title = Blue
pdfjs-editor-colorpicker-pink =
.title = Pink
pdfjs-editor-colorpicker-red =
.title = Red
pdfjs-editor-highlight-show-all-button-label = Show all
pdfjs-editor-highlight-show-all-button =
.title = Show all
pdfjs-editor-new-alt-text-dialog-edit-label = Edit alt text (image description)
pdfjs-editor-new-alt-text-dialog-add-label = Add alt text (image description)
pdfjs-editor-new-alt-text-textarea =
.placeholder = Write your description here…
pdfjs-editor-new-alt-text-description = Short description for people who cant see the image or when the image doesnt load.
pdfjs-editor-new-alt-text-disclaimer1 = This alt text was created automatically and may be inaccurate.
pdfjs-editor-new-alt-text-disclaimer-learn-more-url = Learn more
pdfjs-editor-new-alt-text-create-automatically-button-label = Create alt text automatically
pdfjs-editor-new-alt-text-not-now-button = Not now
pdfjs-editor-new-alt-text-error-title = Couldnt create alt text automatically
pdfjs-editor-new-alt-text-error-description = Please write your own alt text or try again later.
pdfjs-editor-new-alt-text-error-close-button = Close
pdfjs-editor-new-alt-text-ai-model-downloading-progress = Downloading alt text AI model ({ $downloadedSize } of { $totalSize } MB)
.aria-valuetext = Downloading alt text AI model ({ $downloadedSize } of { $totalSize } MB)
pdfjs-editor-new-alt-text-added-button =
.aria-label = Alt text added
pdfjs-editor-new-alt-text-added-button-label = Alt text added
pdfjs-editor-new-alt-text-missing-button =
.aria-label = Missing alt text
pdfjs-editor-new-alt-text-missing-button-label = Missing alt text
pdfjs-editor-new-alt-text-to-review-button =
.aria-label = Review alt text
pdfjs-editor-new-alt-text-to-review-button-label = Review alt text
pdfjs-editor-new-alt-text-generated-alt-text-with-disclaimer = Created automatically: { $generatedAltText }
pdfjs-image-alt-text-settings-button =
.title = Image alt text settings
pdfjs-image-alt-text-settings-button-label = Image alt text settings
pdfjs-editor-alt-text-settings-dialog-label = Image alt text settings
pdfjs-editor-alt-text-settings-automatic-title = Automatic alt text
pdfjs-editor-alt-text-settings-create-model-button-label = Create alt text automatically
pdfjs-editor-alt-text-settings-create-model-description = Suggests descriptions to help people who cant see the image or when the image doesnt load.
pdfjs-editor-alt-text-settings-editor-title = Alt text editor
pdfjs-editor-alt-text-settings-show-dialog-button-label = Show alt text editor right away when adding an image
pdfjs-editor-alt-text-settings-show-dialog-description = Helps you make sure all your images have alt text.
pdfjs-editor-alt-text-settings-close-button = Close
pdfjs-editor-highlight-added-alert = Highlight added
pdfjs-editor-freetext-added-alert = Text added
pdfjs-editor-ink-added-alert = Drawing added
pdfjs-editor-stamp-added-alert = Image added
pdfjs-editor-signature-added-alert = Signature added
pdfjs-editor-undo-bar-message-highlight = Highlight removed
pdfjs-editor-undo-bar-message-freetext = Text removed
pdfjs-editor-undo-bar-message-ink = Drawing removed
pdfjs-editor-undo-bar-message-stamp = Image removed
pdfjs-editor-undo-bar-message-signature = Signature removed
pdfjs-editor-undo-bar-message-comment = Comment removed
pdfjs-editor-undo-bar-message-multiple =
{ $count ->
[one] { $count } annotation removed
*[other] { $count } annotations removed
}
pdfjs-editor-undo-bar-undo-button =
.title = Undo
pdfjs-editor-undo-bar-undo-button-label = Undo
pdfjs-editor-undo-bar-close-button =
.title = Close
pdfjs-editor-undo-bar-close-button-label = Close
pdfjs-editor-add-signature-dialog-label = This modal allows the user to create a signature to add to a PDF document. The user can edit the name (which also serves as the alt text), and optionally save the signature for repeated use.
pdfjs-editor-add-signature-dialog-title = Add a signature
pdfjs-editor-add-signature-type-button = Type
.title = Type
pdfjs-editor-add-signature-draw-button = Draw
.title = Draw
pdfjs-editor-add-signature-image-button = Image
.title = Image
pdfjs-editor-add-signature-type-input =
.aria-label = Type your signature
.placeholder = Type your signature
pdfjs-editor-add-signature-draw-placeholder = Draw your signature
pdfjs-editor-add-signature-draw-thickness-range-label = Thickness
pdfjs-editor-add-signature-draw-thickness-range =
.title = Drawing thickness: { $thickness }
pdfjs-editor-add-signature-image-placeholder = Drag a file here to upload
pdfjs-editor-add-signature-image-browse-link =
{ PLATFORM() ->
[macos] Or choose image files
*[other] Or browse image files
}
pdfjs-editor-add-signature-description-label = Description (alt text)
pdfjs-editor-add-signature-description-input =
.title = Description (alt text)
pdfjs-editor-add-signature-description-default-when-drawing = Signature
pdfjs-editor-add-signature-clear-button-label = Clear signature
pdfjs-editor-add-signature-clear-button =
.title = Clear signature
pdfjs-editor-add-signature-save-checkbox = Save signature
pdfjs-editor-add-signature-save-warning-message = Youve reached the limit of 5 saved signatures. Remove one to save more.
pdfjs-editor-add-signature-image-upload-error-title = Couldnt upload image
pdfjs-editor-add-signature-image-upload-error-description = Check your network connection or try another image.
pdfjs-editor-add-signature-image-no-data-error-title = Cant convert this image into a signature
pdfjs-editor-add-signature-image-no-data-error-description = Please try uploading a different image.
pdfjs-editor-add-signature-error-close-button = Close
pdfjs-editor-add-signature-cancel-button = Cancel
pdfjs-editor-add-signature-add-button = Add
pdfjs-editor-delete-signature-button1 =
.title = Remove saved signature
pdfjs-editor-delete-signature-button-label1 = Remove saved signature
pdfjs-editor-add-signature-edit-button-label = Edit description
pdfjs-editor-edit-signature-dialog-title = Edit description
pdfjs-editor-edit-signature-update-button = Update
pdfjs-show-comment-button =
.title = Show comment
pdfjs-editor-edit-comment-popup-button-label = Edit comment
pdfjs-editor-edit-comment-popup-button =
.title = Edit comment
pdfjs-editor-delete-comment-popup-button-label = Remove comment
pdfjs-editor-delete-comment-popup-button =
.title = Remove comment
pdfjs-editor-edit-comment-dialog-title-when-editing = Edit comment
pdfjs-editor-edit-comment-dialog-save-button-when-editing = Update
pdfjs-editor-edit-comment-dialog-title-when-adding = Add comment
pdfjs-editor-edit-comment-dialog-save-button-when-adding = Add
pdfjs-editor-edit-comment-dialog-text-input =
.placeholder = Start typing…
pdfjs-editor-edit-comment-dialog-cancel-button = Cancel
pdfjs-editor-add-comment-button =
.title = Add comment
pdfjs-toggle-views-manager-button1 =
.title = Manage pages
pdfjs-toggle-views-manager-notification-button =
.title = Toggle Sidebar (document contains thumbnails/outline/attachments/layers)
pdfjs-toggle-views-manager-button1-label = Manage pages
pdfjs-views-manager-sidebar =
.aria-label = Sidebar
pdfjs-views-manager-sidebar-resizer =
.aria-label = Sidebar resizer
pdfjs-views-manager-view-selector-button =
.title = Views
pdfjs-views-manager-view-selector-button-label = Views
pdfjs-views-manager-pages-title = Pages
pdfjs-views-manager-outlines-title1 = Document outline
.title = Document outline (double-click to expand/collapse all items)
pdfjs-views-manager-attachments-title = Attachments
pdfjs-views-manager-layers-title1 = Layers
.title = Layers (double-click to reset all layers to the default state)
pdfjs-views-manager-pages-option-label = Pages
pdfjs-views-manager-outlines-option-label = Document outline
pdfjs-views-manager-attachments-option-label = Attachments
pdfjs-views-manager-layers-option-label = Layers
pdfjs-views-manager-add-file-button =
.title = Add file
pdfjs-views-manager-add-file-button-label = Add file
pdfjs-views-manager-pages-status-action-label =
{ $count ->
[one] { $count } selected
*[other] { $count } selected
}
pdfjs-views-manager-pages-status-none-action-label = Select pages
pdfjs-views-manager-pages-status-action-button-label = Manage
pdfjs-views-manager-pages-status-copy-button-label = Copy
pdfjs-views-manager-pages-status-cut-button-label = Cut
pdfjs-views-manager-pages-status-delete-button-label = Delete
pdfjs-views-manager-pages-status-export-selected-button-label = Export selected…
pdfjs-views-manager-status-undo-cut-label =
{ $count ->
[one] 1 page cut
*[other] { $count } pages cut
}
pdfjs-views-manager-pages-status-undo-copy-label =
{ $count ->
[one] 1 page copied
*[other] { $count } pages copied
}
pdfjs-views-manager-pages-status-undo-delete-label =
{ $count ->
[one] 1 page deleted
*[other] { $count } pages deleted
}
pdfjs-views-manager-pages-status-waiting-ready-label = Getting your file ready…
pdfjs-views-manager-pages-status-waiting-uploading-label = Uploading file…
pdfjs-views-manager-status-warning-cut-label = Couldnt cut. Refresh page and try again.
pdfjs-views-manager-status-warning-copy-label = Couldnt copy. Refresh page and try again.
pdfjs-views-manager-status-warning-delete-label = Couldnt delete. Refresh page and try again.
pdfjs-views-manager-status-warning-save-label = Couldnt save. Refresh page and try again.
pdfjs-views-manager-status-undo-button-label = Undo
pdfjs-views-manager-status-done-button-label = Done
pdfjs-views-manager-status-close-button =
.title = Close
pdfjs-views-manager-status-close-button-label = Close
pdfjs-views-manager-paste-button-label = Paste
pdfjs-views-manager-paste-button-before =
.title = Paste before the first page
pdfjs-views-manager-paste-button-after =
.title = Paste after page { $page }
pdfjs-new-badge-content = NEW
pdfjs-views-manager-waiting-for-file = Uploading file…`)}},Ol=1e3,kl=50,Al=1e3;function jl(){return document.location.hash}var Ml=class{#e=null;constructor({linkService:e,eventBus:t}){this.linkService=e,this.eventBus=t,this._initialized=!1,this._fingerprint=``,this.reset(),this.eventBus.on(`pagesinit`,()=>{this._isPagesLoaded=!1,this.eventBus.on(`pagesloaded`,e=>{this._isPagesLoaded=!!e.pagesCount},{once:!0,...Os})},Os)}initialize({fingerprint:e,resetHistory:t=!1,updateUrl:n=!1}){if(!e||typeof e!=`string`){console.error(`PDFHistory.initialize: The "fingerprint" must be a non-empty string.`);return}this._initialized&&this.reset();let r=this._fingerprint!==``&&this._fingerprint!==e;this._fingerprint=e,this._updateUrl=n===!0,this._initialized=!0,this.#u();let i=window.history.state;if(this._popStateInProgress=!1,this._blockHashChange=0,this._currentHash=jl(),this._numPositionUpdates=0,this._uid=this._maxUid=0,this._destination=null,this._position=null,!this.#i(i,!0)||t){let{hash:e,page:n,rotation:i}=this.#o(!0);if(!e||r||t){this.#t(null,!0);return}this.#t({hash:e,page:n,rotation:i},!0);return}let a=i.destination;this.#a(a,i.uid,!0),a.rotation!==void 0&&(this._initialRotation=a.rotation),a.dest?(this._initialBookmark=JSON.stringify(a.dest),this._destination.page=null):a.hash?this._initialBookmark=a.hash:a.page&&(this._initialBookmark=`page=${a.page}`)}reset(){this._initialized&&(this.#l(),this._initialized=!1,this.#d()),this._updateViewareaTimeout&&=(clearTimeout(this._updateViewareaTimeout),null),this._initialBookmark=null,this._initialRotation=null}push({namedDest:e=null,explicitDest:t,pageNumber:n}){if(!this._initialized)return;if(e&&typeof e!=`string`){console.error(`PDFHistory.push: "${e}" is not a valid namedDest parameter.`);return}else if(!Array.isArray(t)){console.error(`PDFHistory.push: "${t}" is not a valid explicitDest parameter.`);return}else if(!this.#r(n)&&(n!==null||this._destination)){console.error(`PDFHistory.push: "${n}" is not a valid pageNumber parameter.`);return}let r=e||JSON.stringify(t);if(!r)return;let i=!1;if(this._destination&&(Nl(this._destination.hash,r)||Pl(this._destination.dest,t))){if(this._destination.page)return;i=!0}this._popStateInProgress&&!i||(this.#t({dest:t,hash:r,page:n,rotation:this.linkService.rotation},i),this._popStateInProgress||(this._popStateInProgress=!0,Promise.resolve().then(()=>{this._popStateInProgress=!1})))}pushPage(e){if(this._initialized){if(!this.#r(e)){console.error(`PDFHistory.pushPage: "${e}" is not a valid page number.`);return}this._destination?.page!==e&&(this._popStateInProgress||(this.#t({dest:null,hash:`page=${e}`,page:e,rotation:this.linkService.rotation}),this._popStateInProgress||(this._popStateInProgress=!0,Promise.resolve().then(()=>{this._popStateInProgress=!1}))))}}pushCurrentPosition(){!this._initialized||this._popStateInProgress||this.#n()}back(){if(!this._initialized||this._popStateInProgress)return;let e=window.history.state;this.#i(e)&&e.uid>0&&window.history.back()}forward(){if(!this._initialized||this._popStateInProgress)return;let e=window.history.state;this.#i(e)&&e.uid<this._maxUid&&window.history.forward()}get popStateInProgress(){return this._initialized&&(this._popStateInProgress||this._blockHashChange>0)}get initialBookmark(){return this._initialized?this._initialBookmark:null}get initialRotation(){return this._initialized?this._initialRotation:null}#t(e,t=!1){let n=t||!this._destination,r={fingerprint:this._fingerprint,uid:n?this._uid:this._uid+1,destination:e};this.#a(e,r.uid);let i;if(this._updateUrl&&e?.hash){let{href:t,protocol:n}=document.location;n!==`file:`&&(i=Mo(t,e.hash))}n?window.history.replaceState(r,``,i):window.history.pushState(r,``,i)}#n(e=!1){if(!this._position)return;let t=this._position;if(e&&(t=Object.assign(Object.create(null),this._position),t.temporary=!0),!this._destination){this.#t(t);return}if(this._destination.temporary){this.#t(t,!0);return}if(this._destination.hash===t.hash||!this._destination.page&&this._numPositionUpdates<=kl)return;let n=!1;if(this._destination.page>=t.first&&this._destination.page<=t.page){if(this._destination.dest!==void 0||!this._destination.first)return;n=!0}this.#t(t,n)}#r(e){return Number.isInteger(e)&&e>0&&e<=this.linkService.pagesCount}#i(e,t=!1){if(!e)return!1;if(e.fingerprint!==this._fingerprint)if(t){if(typeof e.fingerprint!=`string`||e.fingerprint.length!==this._fingerprint.length)return!1;let[t]=performance.getEntriesByType(`navigation`);if(t?.type!==`reload`)return!1}else return!1;return!(!Number.isInteger(e.uid)||e.uid<0||e.destination===null||typeof e.destination!=`object`)}#a(e,t,n=!1){this._updateViewareaTimeout&&=(clearTimeout(this._updateViewareaTimeout),null),n&&e?.temporary&&delete e.temporary,this._destination=e,this._uid=t,this._maxUid=Math.max(this._maxUid,t),this._numPositionUpdates=0}#o(e=!1){let t=unescape(jl()).substring(1),n=ds(t),r=n.get(`nameddest`)||``,i=n.get(`page`)|0;return(!this.#r(i)||e&&r.length>0)&&(i=null),{hash:t,page:i,rotation:this.linkService.rotation}}#s({location:e}){this._updateViewareaTimeout&&=(clearTimeout(this._updateViewareaTimeout),null),this._position={hash:e.pdfOpenParams.substring(1),page:this.linkService.page,first:e.pageNumber,rotation:e.rotation},!this._popStateInProgress&&(this._isPagesLoaded&&this._destination&&!this._destination.page&&this._numPositionUpdates++,this._updateViewareaTimeout=setTimeout(()=>{this._popStateInProgress||this.#n(!0),this._updateViewareaTimeout=null},Al))}#c({state:e}){let t=jl(),n=this._currentHash!==t;if(this._currentHash=t,!e){this._uid++;let{hash:e,page:t,rotation:n}=this.#o();this.#t({hash:e,page:t,rotation:n},!0);return}if(!this.#i(e))return;this._popStateInProgress=!0,n&&(this._blockHashChange++,ec({target:window,name:`hashchange`,delay:Ol}).then(()=>{this._blockHashChange--}));let r=e.destination;this.#a(r,e.uid,!0),ys(r.rotation)&&(this.linkService.rotation=r.rotation),r.dest?this.linkService.goToDestination(r.dest):r.hash?this.linkService.setHash(r.hash):r.page&&(this.linkService.page=r.page),Promise.resolve().then(()=>{this._popStateInProgress=!1})}#l(){(!this._destination||this._destination.temporary)&&this.#n()}#u(){if(this.#e)return;this.#e=new AbortController;let{signal:e}=this.#e;this.eventBus.on(`updateviewarea`,this.#s.bind(this),{signal:e,...Os}),window.addEventListener(`popstate`,this.#c.bind(this),{signal:e}),window.addEventListener(`pagehide`,this.#l.bind(this),{signal:e})}#d(){this.#e?.abort(),this.#e=null}};function Nl(e,t){return typeof e!=`string`||typeof t!=`string`?!1:e===t||ds(e).get(`nameddest`)===t}function Pl(e,t){function n(e,t){if(typeof e!=typeof t||Array.isArray(e)||Array.isArray(t))return!1;if(typeof e==`object`&&e&&t!==null){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let r in e)if(!n(e[r],t[r]))return!1;return!0}return e===t||Number.isNaN(e)&&Number.isNaN(t)}if(!(Array.isArray(e)&&Array.isArray(t))||e.length!==t.length)return!1;for(let r=0,i=e.length;r<i;r++)if(!n(e[r],t[r]))return!1;return!0}var Fl=class{#e=null;#t=null;#n=null;#r=null;#i=null;#a;constructor(e){this.pageIndex=e.pageIndex,this.accessibilityManager=e.accessibilityManager,this.l10n=e.l10n,this.l10n||=new Dl,this.annotationEditorLayer=null,this.div=null,this._cancelled=!1,this.#a=e.uiManager,this.#e=e.annotationLayer||null,this.#i=e.textLayer||null,this.#t=e.drawLayer||null,this.#n=e.onAppend||null,this.#r=e.structTreeLayer||null}updatePageIndex(e){this.pageIndex=e,this.annotationEditorLayer?.updatePageIndex(e)}async render({viewport:e,intent:t=`display`}){if(t!==`display`||this._cancelled)return;let n=e.clone({dontFlip:!0});if(this.div){this.annotationEditorLayer.update({viewport:n}),this.show();return}let r=this.div=document.createElement(`div`);r.className=`annotationEditorLayer`,r.hidden=!0,r.dir=this.#a.direction,this.#n?.(r),this.annotationEditorLayer=new ja({uiManager:this.#a,div:r,structTreeLayer:this.#r,accessibilityManager:this.accessibilityManager,pageIndex:this.pageIndex,l10n:this.l10n,viewport:n,annotationLayer:this.#e,textLayer:this.#i,drawLayer:this.#t});let i={viewport:n,div:r,annotations:null,intent:t};await this.annotationEditorLayer.render(i),this.show()}cancel(){this._cancelled=!0,this.div&&this.annotationEditorLayer.destroy()}hide(){this.div&&(this.annotationEditorLayer.pause(!0),this.div.hidden=!0)}show(){!this.div||this.annotationEditorLayer.isInvisible||(this.div.hidden=!1,this.annotationEditorLayer.pause(!1))}};{var Il=new Map;let{maxTouchPoints:e,platform:t,userAgent:n}=navigator,r=/Android/.test(n);(/\b(?:iPad|iPhone|iPod)(?=;)/.test(n)||t===`MacIntel`&&e>1||r)&&Il.set(`maxCanvasPixels`,5242880),r&&Il.set(`useSystemFonts`,!1)}var Q={BROWSER:1,VIEWER:2,API:4,WORKER:8,EVENT_DISPATCH:16,PREFERENCE:128},Ll={BOOLEAN:1,NUMBER:2,OBJECT:4,STRING:8,UNDEFINED:16},Rl={allowedGlobalEvents:{value:null,kind:Q.BROWSER},canvasMaxAreaInBytes:{value:-1,kind:Q.BROWSER+Q.API},isInAutomation:{value:!1,kind:Q.BROWSER},localeProperties:{value:{lang:navigator.language||`en-US`},kind:Q.BROWSER},maxCanvasDim:{value:32767,kind:Q.BROWSER+Q.VIEWER},nimbusDataStr:{value:``,kind:Q.BROWSER},supportsCaretBrowsingMode:{value:!1,kind:Q.BROWSER},supportsDocumentFonts:{value:!0,kind:Q.BROWSER},supportsIntegratedFind:{value:!1,kind:Q.BROWSER},supportsMouseWheelZoomCtrlKey:{value:!0,kind:Q.BROWSER},supportsMouseWheelZoomMetaKey:{value:!0,kind:Q.BROWSER},supportsPinchToZoom:{value:!0,kind:Q.BROWSER},supportsPrinting:{value:!0,kind:Q.BROWSER},toolbarDensity:{value:0,kind:Q.BROWSER+Q.EVENT_DISPATCH},altTextLearnMoreUrl:{value:``,kind:Q.VIEWER+Q.PREFERENCE},annotationEditorMode:{value:0,kind:Q.VIEWER+Q.PREFERENCE},annotationMode:{value:2,kind:Q.VIEWER+Q.PREFERENCE},capCanvasAreaFactor:{value:200,kind:Q.VIEWER+Q.PREFERENCE},commentLearnMoreUrl:{value:``,kind:Q.VIEWER+Q.PREFERENCE},cursorToolOnLoad:{value:0,kind:Q.VIEWER+Q.PREFERENCE},debuggerSrc:{value:`./debugger.mjs`,kind:Q.VIEWER},defaultZoomDelay:{value:400,kind:Q.VIEWER+Q.PREFERENCE},defaultZoomValue:{value:``,kind:Q.VIEWER+Q.PREFERENCE},disableHistory:{value:!1,kind:Q.VIEWER},disablePageLabels:{value:!1,kind:Q.VIEWER+Q.PREFERENCE},enableAltText:{value:!1,kind:Q.VIEWER+Q.PREFERENCE},enableAltTextModelDownload:{value:!0,kind:Q.VIEWER+Q.PREFERENCE+Q.EVENT_DISPATCH},enableAutoLinking:{value:!0,kind:Q.VIEWER+Q.PREFERENCE},enableComment:{value:!1,kind:Q.VIEWER+Q.PREFERENCE},enableDetailCanvas:{value:!0,kind:Q.VIEWER},enableGuessAltText:{value:!0,kind:Q.VIEWER+Q.PREFERENCE+Q.EVENT_DISPATCH},enableHighlightFloatingButton:{value:!1,kind:Q.VIEWER+Q.PREFERENCE},enableMerge:{value:!1,kind:Q.VIEWER+Q.PREFERENCE},enableNewAltTextWhenAddingImage:{value:!0,kind:Q.VIEWER+Q.PREFERENCE},enableNewBadge:{value:!1,kind:Q.VIEWER+Q.PREFERENCE},enableOptimizedPartialRendering:{value:!1,kind:Q.VIEWER+Q.PREFERENCE},enablePermissions:{value:!1,kind:Q.VIEWER+Q.PREFERENCE},enablePrintAutoRotate:{value:!0,kind:Q.VIEWER+Q.PREFERENCE},enableScripting:{value:!0,kind:Q.VIEWER+Q.PREFERENCE},enableSignatureEditor:{value:!1,kind:Q.VIEWER+Q.PREFERENCE},enableSplitMerge:{value:!1,kind:Q.VIEWER+Q.PREFERENCE},enableUpdatedAddImage:{value:!1,kind:Q.VIEWER+Q.PREFERENCE},externalLinkRel:{value:`noopener noreferrer nofollow`,kind:Q.VIEWER},externalLinkTarget:{value:0,kind:Q.VIEWER+Q.PREFERENCE},highlightEditorColors:{value:`yellow=#FFFF98,green=#53FFBC,blue=#80EBFF,pink=#FFCBE6,red=#FF4F5F,yellow_HCM=#FFFFCC,green_HCM=#53FFBC,blue_HCM=#80EBFF,pink_HCM=#F6B8FF,red_HCM=#C50043`,kind:Q.VIEWER+Q.PREFERENCE},historyUpdateUrl:{value:!1,kind:Q.VIEWER+Q.PREFERENCE},ignoreDestinationZoom:{value:!1,kind:Q.VIEWER+Q.PREFERENCE},imageResourcesPath:{value:`./images/`,kind:Q.VIEWER},enableSelectionRendering:{value:!0,kind:Q.VIEWER+Q.PREFERENCE},imagesRightClickMinSize:{value:-1,kind:Q.VIEWER+Q.PREFERENCE},maxCanvasPixels:{value:2**25,kind:Q.VIEWER},minDurationToUpdateCanvas:{value:500,kind:Q.VIEWER},forcePageColors:{value:!1,kind:Q.VIEWER+Q.PREFERENCE},pageColorsBackground:{value:`Canvas`,kind:Q.VIEWER+Q.PREFERENCE},pageColorsForeground:{value:`CanvasText`,kind:Q.VIEWER+Q.PREFERENCE},pdfBugEnabled:{value:!1,kind:Q.VIEWER+Q.PREFERENCE},postMessageAfterPrintCallback:{value:!1,kind:Q.VIEWER+Q.PREFERENCE},printResolution:{value:150,kind:Q.VIEWER},sidebarViewOnLoad:{value:-1,kind:Q.VIEWER+Q.PREFERENCE},scrollModeOnLoad:{value:-1,kind:Q.VIEWER+Q.PREFERENCE},spreadModeOnLoad:{value:-1,kind:Q.VIEWER+Q.PREFERENCE},textLayerMode:{value:1,kind:Q.VIEWER+Q.PREFERENCE},viewerCssTheme:{value:0,kind:Q.VIEWER+Q.PREFERENCE},viewOnLoad:{value:0,kind:Q.VIEWER+Q.PREFERENCE},cMapPacked:{value:!0,kind:Q.API},cMapUrl:{value:`../web/cmaps/`,kind:Q.API},disableAutoFetch:{value:!1,kind:Q.API+Q.PREFERENCE},disableFontFace:{value:!1,kind:Q.API+Q.PREFERENCE},disableRange:{value:!1,kind:Q.API+Q.PREFERENCE},disableStream:{value:!1,kind:Q.API+Q.PREFERENCE},docBaseUrl:{value:``,kind:Q.API},enableHWA:{value:!0,kind:Q.API+Q.PREFERENCE},enableWebGPU:{value:!0,kind:Q.API+Q.PREFERENCE},enableXfa:{value:!0,kind:Q.API+Q.PREFERENCE},fontExtraProperties:{value:!1,kind:Q.API},iccUrl:{value:`../web/iccs/`,kind:Q.API},isOffscreenCanvasSupported:{value:!0,kind:Q.API},maxImageSize:{value:-1,kind:Q.API},pdfBug:{value:!1,kind:Q.API},standardFontDataUrl:{value:`../web/standard_fonts/`,kind:Q.API},useSystemFonts:{value:void 0,kind:Q.API,type:Ll.BOOLEAN+Ll.UNDEFINED},verbosity:{value:1,kind:Q.API},wasmUrl:{value:`../web/wasm/`,kind:Q.API},workerPort:{value:null,kind:Q.WORKER},workerSrc:{value:`../build/pdf.worker.mjs`,kind:Q.WORKER}};Rl.defaultUrl={value:`compressed.tracemonkey-pldi-09.pdf`,kind:Q.VIEWER},Rl.sandboxBundleSrc={value:`../build/pdf.sandbox.mjs`,kind:Q.VIEWER},Rl.enableFakeMLManager={value:!0,kind:Q.VIEWER},Rl.disablePreferences={value:!1,kind:Q.VIEWER};var zl=class{static eventBus;static#e=new Map;static{for(let e in Rl)this.#e.set(e,Rl[e].value);for(let[e,t]of Il)this.#e.set(e,t);this._hasInvokedSet=!1,this._checkDisablePreferences=()=>this.get(`disablePreferences`)?!0:(this._hasInvokedSet&&console.warn(`The Preferences may override manually set AppOptions; please use the "disablePreferences"-option to prevent that.`),!1)}static get(e){return this.#e.get(e)}static getAll(e=null,t=!1){let n=Object.create(null);for(let r in Rl){let i=Rl[r];e&&!(e&i.kind)||(n[r]=t?i.value:this.#e.get(r))}return n}static set(e,t){this.setAll({[e]:t})}static setAll(e,t=!1){this._hasInvokedSet||=!0;let n;for(let r in e){let i=Rl[r],a=e[r];if(!i||!(typeof a==typeof i.value||Ll[(typeof a).toUpperCase()]&i.type))continue;let{kind:o}=i;t&&!(o&Q.BROWSER||o&Q.PREFERENCE)||(this.eventBus&&o&Q.EVENT_DISPATCH&&(n||=new Map).set(r,a),this.#e.set(r,a))}if(n)for(let[e,t]of n)this.eventBus.dispatch(e.toLowerCase(),{source:this,value:t})}};function Bl({width:e,height:t,left:n,top:r},i){if(e===0||t===0)return null;let a=i.textLayer.div.getBoundingClientRect(),o=i.getPagePoint(n-a.left,r-a.top),s=i.getPagePoint(n-a.left+e,r-a.top+t);return No.normalizeRect([o[0],o[1],s[0],s[1]])}function Vl(e,t){let n=e.getClientRects();if(n.length===1)return{rect:Bl(n[0],t)};let r=[1/0,1/0,-1/0,-1/0],i=[],a=0;for(let e of n){let n=Bl(e,t);n!==null&&(i[a]=i[a+4]=n[0],i[a+1]=i[a+3]=n[3],i[a+2]=i[a+6]=n[2],i[a+5]=i[a+7]=n[1],No.rectBoundingBox(...n,r),a+=8)}return{quadPoints:i,rect:r}}function Hl(e,t){let n=e;do{if(n.nodeType===Node.TEXT_NODE){let e=n.textContent.length;if(t<=e)return[n,t];t-=e}else if(n.firstChild){n=n.firstChild;continue}for(;!n.nextSibling&&n!==e;)n=n.parentNode;n!==e&&(n=n.nextSibling)}while(n!==e);throw Error(`Offset is bigger than container's contents length.`)}function Ul({url:e,index:t,length:n},r,i){let a=r._textHighlighter,[{begin:o,end:s}]=a._convertMatches([t],[n]),c=new Range;return c.setStart(...Hl(a.textDivs[o.divIdx],o.offset)),c.setEnd(...Hl(a.textDivs[s.divIdx],s.offset)),{id:`inferred_link_${i}`,unsafeUrl:e,url:e,annotationType:La.LINK,rotation:0,...Vl(c,r),borderStyle:null}}var Wl=class{static#e=0;static#t;static#n;static findLinks(e){this.#t??=RegExp(`\\b(?:https?:\\/\\/|mailto:|www\\.)(?:[\\S--[\\p{P}<>]]|\\/|[\\S--[\\[\\]]]+[\\S--[\\p{P}<>]])+|(?=\\p{L})[\\S--[@\\p{Ps}\\p{Pe}<>]]+@([\\S--[[\\p{P}--\\-]<>]]+(?:\\.[\\S--[[\\p{P}--\\-]<>]]+)+)`,`gv`);let[t,n]=Us(e,{ignoreDashEOL:!0}),r=t.matchAll(this.#t),i=[];for(let e of r){let[t,r]=e,a;if(t.startsWith(`www.`)||t.startsWith(`http://`)||t.startsWith(`https://`))a=t;else if(r){let e=URL.parse(`http://${r}`)?.hostname;if(!e||(this.#n??=/\.\d+$/,this.#n.test(e)))continue}a??=t.startsWith(`mailto:`)?t:`mailto:${t}`;let o=Va(a,null,{addDefaultProtocol:!0});if(o){let[r,a]=Ws(n,e.index,t.length);i.push({url:o.href,index:r,length:a})}}return i}static processLinks(e){return this.findLinks(e._textHighlighter.textContentItemsStr.join(`
`)).map(t=>Ul(t,e,this.#e++))}},$={INITIAL:0,RUNNING:1,PAUSED:2,FINISHED:3},Gl=class{renderingId=``;renderTask=null;resume=null;get renderingState(){throw Error("Abstract getter `renderingState` accessed")}set renderingState(e){throw Error("Abstract setter `renderingState` accessed")}async draw(){throw Error(`Not implemented: draw`)}},Kl=class extends Gl{#e=null;#t=null;#n=$.INITIAL;#r=null;#i=0;#a=null;canvas=null;div=null;enableOptimizedPartialRendering=!1;enableSelectionRendering=!0;imagesRightClickMinSize=-1;eventBus=null;id=null;imageCoordinates=null;pageColors=null;recordedBBoxes=null;renderingQueue=null;constructor(e){super(),this.eventBus=e.eventBus,this.id=e.id,this.pageColors=e.pageColors||null,this.renderingQueue=e.renderingQueue,this.enableOptimizedPartialRendering=e.enableOptimizedPartialRendering??!1,this.enableSelectionRendering=e.enableSelectionRendering!==!1,this.imagesRightClickMinSize=e.imagesRightClickMinSize??-1,this.minDurationToUpdateCanvas=e.minDurationToUpdateCanvas??500}get renderingState(){return this.#n}set renderingState(e){if(e!==this.#n)switch(this.#n=e,this.#e&&=(clearTimeout(this.#e),null),e){case $.PAUSED:this.div.classList.remove(`loading`),this.#i=0,this.#r?.(!1);break;case $.RUNNING:this.div.classList.add(`loadingIcon`),this.#e=setTimeout(()=>{this.div.classList.add(`loading`),this.#e=null},0),this.#i=Date.now();break;case $.INITIAL:case $.FINISHED:this.div.classList.remove(`loadingIcon`,`loading`),this.#i=0;break}}_createCanvas(e,t=!1){let{pageColors:n}=this,r=!!(n?.background&&n?.foreground),i=this.canvas,a=!i&&!r&&!t,o=this.canvas=document.createElement(`canvas`);return this.#r=t=>{if(a){let n=this.#a;if(!t&&this.minDurationToUpdateCanvas>0){if(Date.now()-this.#i<this.minDurationToUpdateCanvas)return;n||(n=this.#a=o,o=this.canvas=o.cloneNode(!1),e(o))}if(n){o.getContext(`2d`,{alpha:!1}).drawImage(n,0,0),t?this.#s():this.#i=Date.now();return}e(o),this.#r=null;return}t&&(i?(i.replaceWith(o),i.width=i.height=0):e(o))},{canvas:o,prevCanvas:i}}#o=e=>{if(this.#r?.(!1),this.renderingQueue&&!this.renderingQueue.isHighestPriority(this)){this.renderingState=$.PAUSED,this.resume=()=>{this.renderingState=$.RUNNING,e()};return}e()};_resetCanvas(){let{canvas:e}=this;e&&(e.remove(),e.width=e.height=0,this.canvas=null,this.#s())}#s(){this.#a&&=(this.#a.width=this.#a.height=0,null)}async _drawCanvas(e,t,n){let r=this.renderTask=this.pdfPage.render(e);r.onContinue=this.#o,r.onError=e=>{e instanceof xo&&(t(),this.#t=null)};let i=null;try{await r.promise,this.#r?.(!0)}catch(e){if(e instanceof xo)return;i=e,this.#r?.(!0)}finally{this.#t=i,r===this.renderTask&&(this.renderTask=null,this.enableOptimizedPartialRendering&&(this.recordedBBoxes??=r.recordedBBoxes),this.imagesRightClickMinSize!==-1&&(this.imageCoordinates??=this.pdfPage.imageCoordinates))}if(this.renderingState=$.FINISHED,n(r),i)throw i}cancelRendering({cancelExtraDelay:e=0}={}){this.renderTask&&=(this.renderTask.cancel(e),null),this.resume=null}dispatchPageRender(){this.eventBus.dispatch(`pagerender`,{source:this,pageNumber:this.id})}dispatchPageRendered(e,t){this.eventBus.dispatch(`pagerendered`,{source:this,pageNumber:this.id,cssTransform:e,isDetailView:t,timestamp:performance.now(),error:this.#t})}},ql=class{#e=null;constructor(e){this.pageIndex=e.pageIndex,this.textLayer=e.textLayer||null,this.filterFactory=e.filterFactory||null,this.pageColors=e.pageColors||null}async render({intent:e=`display`}){e!==`display`||this.#e||this._cancelled||(this.#e=new Wa({pageIndex:this.pageIndex,textLayer:this.textLayer,filterFactory:this.filterFactory,pageColors:this.pageColors}))}cancel(){this._cancelled=!0,this.#e&&=(this.#e.destroy(),null)}setParent(e){this.#e?.setParent(e)}getDrawLayer(){return this.#e}},Jl=class extends Kl{#e=null;renderingCancelled=!1;constructor({pageView:e}){super(e),this.pageView=e,this.renderingId=`detail`+this.id,this.div=e.div}setPdfPage(e){this.pageView.setPdfPage(e)}get pdfPage(){return this.pageView.pdfPage}get renderingState(){return super.renderingState}set renderingState(e){this.renderingCancelled=!1,super.renderingState=e}reset({keepCanvas:e=!1}={}){let t=this.renderingCancelled||this.renderingState===$.RUNNING||this.renderingState===$.PAUSED;this.cancelRendering(),this.renderingState=$.INITIAL,this.renderingCancelled=t,e||this._resetCanvas()}#t(e){if(!this.#e)return!0;let t=this.#e.minX,n=this.#e.minY,r=this.#e.width+t,i=this.#e.height+n;if(e.minX<t||e.minY<n||e.maxX>r||e.maxY>i)return!0;let{width:a,height:o,scale:s}=this.pageView.viewport;if(this.#e.scale!==s)return!0;let c=e.minX-t,l=r-e.maxX,u=e.minY-n,d=i-e.maxY;return t>0&&l/c>3||r<a&&c/l>3||n>0&&d/u>3||i<o&&u/d>3}update({visibleArea:e=null,underlyingViewUpdated:t=!1}={}){if(t){this.cancelRendering(),this.renderingState=$.INITIAL;return}if(!this.#t(e))return;let{viewport:n,maxCanvasPixels:r,capCanvasAreaFactor:i}=this.pageView,a=e.maxX-e.minX,o=e.maxY-e.minY,s=a*o*mo.pixelRatio**2,c=(Math.sqrt(mo.capPixels(r,i)/s)-1)/2,l=Math.min(1,c);l<0&&(l=0);let u=a*l,d=o*l,f=Math.max(0,e.minX-u),p=Math.min(n.width,e.maxX+u),m=Math.max(0,e.minY-d),h=Math.min(n.height,e.maxY+d),g=p-f,_=h-m;this.#e={minX:f,minY:m,width:g,height:_,scale:n.scale},this.reset({keepCanvas:!0})}_getRenderingContext(e,t){let n=this.pageView._getRenderingContext(e,t,!1),r=this.pdfPage.recordedBBoxes;if(!r||!this.enableOptimizedPartialRendering)return n;let{viewport:{width:i,height:a}}=this.pageView,{width:o,height:s,minX:c,minY:l}=this.#e,u=c/i,d=l/a,f=(c+o)/i,p=(l+s)/a;return{...n,operationsFilter(e){return r.isEmpty(e)?!1:r.minX(e)<=f&&r.maxX(e)>=u&&r.minY(e)<=p&&r.maxY(e)>=d}}}async draw(){if(this.pageView.detailView!==this)return;let e=this.pageView.renderingState===$.FINISHED||this.renderingState===$.FINISHED;this.renderingState!==$.INITIAL&&(console.error(`Must be in new state before drawing`),this.reset());let{div:t,pdfPage:n,viewport:r}=this.pageView;if(!n)throw this.renderingState=$.FINISHED,Error(`pdfPage is not loaded`);this.renderingState=$.RUNNING;let i=this.pageView._ensureCanvasWrapper(),{canvas:a,prevCanvas:o}=this._createCanvas(e=>{i.firstElementChild?.tagName===`CANVAS`?i.firstElementChild.after(e):i.prepend(e)},e);a.ariaHidden=!0,this.enableOptimizedPartialRendering&&(a.className=`detailView`);let{width:s,height:c}=r,l=this.#e,{pixelRatio:u}=mo,d=[u,0,0,u,-l.minX*u,-l.minY*u];a.width=l.width*u,a.height=l.height*u;let{style:f}=a;f.width=`${l.width*100/s}%`,f.height=`${l.height*100/c}%`,f.top=`${l.minY*100/c}%`,f.left=`${l.minX*100/s}%`;let p=this._drawCanvas(this._getRenderingContext(a,d),()=>{this.canvas?.remove(),this.canvas=o},()=>{this.dispatchPageRendered(!1,!0)});return t.setAttribute(`data-loaded`,!0),this.dispatchPageRender(),p}},Yl={Document:null,DocumentFragment:null,Part:`group`,Sect:`group`,Div:`group`,Aside:`note`,NonStruct:`none`,P:null,H:`heading`,Title:null,FENote:`note`,Sub:`group`,Lbl:null,Span:null,Em:null,Strong:null,Link:`link`,Annot:`note`,Form:`form`,Ruby:null,RB:null,RT:null,RP:null,Warichu:null,WT:null,WP:null,L:`list`,LI:`listitem`,LBody:null,Table:`table`,TR:`row`,TH:`columnheader`,TD:`cell`,THead:`rowgroup`,TBody:`rowgroup`,TFoot:null,Caption:null,Figure:`figure`,Formula:null,Artifact:null},Xl=new Set(`math.merror.mfrac.mi.mmultiscripts.mn.mo.mover.mpadded.mprescripts.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msubsup.msup.mtable.mtd.mtext.mtr.munder.munderover.semantics`.split(`.`)),Zl=`http://www.w3.org/1998/Math/MathML`,Ql=class{static get sanitizer(){return To(this,`sanitizer`,Ga.isSanitizerSupported?new Sanitizer({elements:[...Xl].map(e=>({name:e,namespace:Zl})),replaceWithChildrenElements:[{name:`maction`,namespace:Zl}],attributes:`dir.displaystyle.mathbackground.mathcolor.mathsize.scriptlevel.encoding.display.linethickness.intent.arg.form.fence.separator.lspace.rspace.stretchy.symmetric.maxsize.minsize.largeop.movablelimits.width.height.depth.voffset.accent.accentunder.columnspan.rowspan`.split(`.`),comments:!1}):null)}},$l=/^H(\d+)$/,eu=class{#e;#t=null;#n;#r=new Map;#i;#a=null;#o=null;#s=null;constructor(e,t){this.#e=e.getStructTree(),this.#i=t}async render(){if(this.#n)return this.#n;let{promise:e,resolve:t,reject:n}=Promise.withResolvers();this.#n=e;try{this.#t=this.#d(await this.#e)}catch(e){n(e)}return this.#e=null,this.#t?.classList.add(`structTree`),t(this.#t),e}async getAriaAttributes(e){try{return await this.render(),this.#r.get(e)}catch{}return null}hide(){this.#t&&!this.#t.hidden&&(this.#t.hidden=!0)}show(){this.#t?.hidden&&(this.#t.hidden=!1)}#c(e,t){let{alt:n,id:r,lang:i}=e;if(n!==void 0){let r=!1,i=ps(n);for(let t of e.children)t.type===`annotation`&&(this.#r.getOrInsertComputed(t.id,so).set(`aria-label`,i),r=!0);r||t.setAttribute(`aria-label`,i)}r!==void 0&&t.setAttribute(`aria-owns`,r),i!==void 0&&t.setAttribute(`lang`,ps(i,!0))}#l(e,t){let{alt:n,bbox:r,children:i}=e,a=i?.[0];if(!this.#i||!n||!r||a?.type!==`content`)return!1;let{id:o}=a;if(!o)return!1;t.setAttribute(`aria-owns`,o);let s=document.createElement(`span`);(this.#a||=new Map).set(o,s),s.setAttribute(`role`,`img`),s.setAttribute(`aria-label`,ps(n));let{pageHeight:c,pageX:l,pageY:u}=this.#i,d=`calc(var(--total-scale-factor) *`,{style:f}=s;return f.width=`${d}${r[2]-r[0]}px)`,f.height=`${d}${r[3]-r[1]}px)`,f.left=`${d}${r[0]-l}px)`,f.top=`${d}${c-r[3]+u}px)`,!0}updateTextLayer(){if(this.#a){for(let[e,t]of this.#a)document.getElementById(e)?.append(t);this.#a.clear(),this.#a=null}if(this.#o){for(let e of this.#o){let t=document.getElementById(e);t&&(t.ariaHidden=!0)}this.#o.length=0,this.#o=null}if(this.#s){for(let e=0,t=this.#s.length;e<t;e+=2){let t=this.#s[e],n=this.#s[e+1],r=``;for(let e of n){let t=document.getElementById(e);t&&(r+=t.textContent.trim()||``,t.ariaHidden=`true`)}r&&(t.textContent=r)}this.#s.length=0,this.#s=null}}#u(e,t){if(e){`id`in e&&t.push(e.id);for(let n of e.children||[])this.#u(n,t)}}#d(e,t=[]){if(!e)return null;let n,r=!0;if(`role`in e){let{role:i}=e;if(Xl.has(i)){n=document.createElementNS(Zl,i);let t=[];(this.#s||=[]).push(n,t);for(let{type:n,id:r}of e.children||[])n===`content`&&r&&t.push(r)}else n=document.createElement(`span`);let a=i.match($l);if(a?(n.setAttribute(`role`,`heading`),n.setAttribute(`aria-level`,a[1])):Yl[i]&&n.setAttribute(`role`,i===`TH`&&t.at(-1)?.role===`TR`&&t.at(-2)?.role===`TBody`?`rowheader`:Yl[i]),i===`Figure`&&this.#l(e,n))return n;i===`Formula`&&(e.mathML&&Ql.sanitizer&&(r=!1,n.setHTML(e.mathML,{sanitizer:Ql.sanitizer}),this.#u(e,this.#o||=[]),delete e.alt),!e.mathML&&e.children.length===1&&e.children[0].role!==`math`&&(n=document.createElementNS(Zl,`math`),delete e.alt))}if(n||=document.createElement(`span`),this.#c(e,n),e.children){if(e.children.length===1&&`id`in e.children[0])this.#c(e.children[0],n);else if(r){t.push(e);for(let r of e.children)n.append(this.#d(r,t));t.pop()}}return n}},tu=class e{#e=!1;#t=null;#n=new Map;#r=new Map;setTextMapping(e){this.#t=e}static#i(e,t){let n=e.getBoundingClientRect(),r=t.getBoundingClientRect();if(n.width===0&&n.height===0)return 1;if(r.width===0&&r.height===0)return-1;let i=n.y,a=n.y+n.height,o=n.y+n.height/2,s=r.y,c=r.y+r.height,l=r.y+r.height/2;return o<=s&&l>=a?-1:l<=i&&o>=c?1:n.x+n.width/2-(r.x+r.width/2)}enable(){if(this.#e)throw Error(`TextAccessibilityManager is already enabled.`);if(!this.#t)throw Error(`Text divs and strings have not been set.`);if(this.#e=!0,this.#t=this.#t.slice(),this.#t.sort(e.#i),this.#n.size>0){let e=this.#t;for(let[t,n]of this.#n){if(!document.getElementById(t)){this.#n.delete(t);continue}this.#a(t,e[n])}}for(let[e,t]of this.#r)this.addPointerInTextLayer(e,t);this.#r.clear()}disable(){this.#e&&=(this.#r.clear(),this.#t=null,!1)}removePointerInTextLayer(e){if(!this.#e){this.#r.delete(e);return}let t=this.#t;if(!t||t.length===0)return;let{id:n}=e,r=this.#n.get(n);if(r===void 0)return;let i=t[r];this.#n.delete(n);let a=i.getAttribute(`aria-owns`);a?.includes(n)&&(a=a.split(` `).filter(e=>e!==n).join(` `),a?i.setAttribute(`aria-owns`,a):(i.removeAttribute(`aria-owns`),i.setAttribute(`role`,`presentation`)))}#a(e,t){let n=t.getAttribute(`aria-owns`);n?.includes(e)||t.setAttribute(`aria-owns`,n?`${n} ${e}`:e),t.removeAttribute(`role`)}addPointerInTextLayer(t,n){let{id:r}=t;if(!r)return null;if(!this.#e)return this.#r.set(t,n),null;n&&this.removePointerInTextLayer(t);let i=this.#t;if(!i||i.length===0)return null;let a=ms(i,n=>e.#i(t,n)<0),o=Math.max(0,a-1),s=i[o];this.#a(r,s),this.#n.set(r,o);let c=s.parentNode;return c?.classList.contains(`markedContent`)?c.id:null}moveElementInDOM(t,n,r,i){let a=this.addPointerInTextLayer(r,i);if(!t.hasChildNodes())return t.append(n),a;let o=Array.from(t.childNodes).filter(e=>e!==n);if(o.length===0)return a;let s=ms(o,t=>e.#i(n,t)<0);return s===0?o[0].before(n):o[s-1].after(n),a}},nu=class{#e=null;constructor({findController:e,eventBus:t,pageIndex:n}){this.findController=e,this.matches=[],this.eventBus=t,this.pageIdx=n,this.textDivs=null,this.textContentItemsStr=null,this.enabled=!1}setTextMapping(e,t){this.textDivs=e,this.textContentItemsStr=t}enable(){if(!this.textDivs||!this.textContentItemsStr)throw Error(`Text divs and strings have not been set.`);if(this.enabled)throw Error(`TextHighlighter is already enabled.`);this.enabled=!0,this.#e||(this.#e=new AbortController,this.eventBus.on(`updatetextlayermatches`,e=>{(e.pageIndex===this.pageIdx||e.pageIndex===-1)&&this._updateMatches()},{signal:this.#e.signal,...Os})),this._updateMatches()}disable(){this.enabled&&(this.enabled=!1,this.#e?.abort(),this.#e=null,this._updateMatches(!0))}_convertMatches(e,t){if(!e)return[];let{textContentItemsStr:n}=this,r=0,i=0,a=n.length-1,o=[];for(let s=0,c=e.length;s<c;s++){let c=e[s];for(;r!==a&&c>=i+n[r].length;)i+=n[r].length,r++;r===n.length&&console.error(`Could not find a matching mapping`);let l={begin:{divIdx:r,offset:c-i}};for(c+=t[s];r!==a&&c>i+n[r].length;)i+=n[r].length,r++;l.end={divIdx:r,offset:c-i},o.push(l)}return o}_renderMatches(e){if(e.length===0)return;let{findController:t,pageIdx:n}=this,{textContentItemsStr:r,textDivs:i}=this,a=n===t.selected.pageIdx,o=t.selected.matchIdx,s=t.state.highlightAll,c=null,l={divIdx:-1,offset:void 0};function u(e,t){let n=e.divIdx;return i[n].textContent=``,d(n,0,e.offset,t)}function d(e,t,n,a){let o=i[e];if(o.nodeType===Node.TEXT_NODE){let t=document.createElement(`span`);o.before(t),t.append(o),i[e]=t,o=t}let s=r[e].substring(t,n),c=document.createTextNode(s);if(a){let e=document.createElement(`span`);return e.className=`${a} appended`,e.append(c),o.append(e),a.includes(`selected`)?e:null}return o.append(c),0}let f=o,p=f+1;if(s)f=0,p=e.length;else if(!a)return;let m=-1,h=-1;for(let r=f;r<p;r++){let s=e[r],f=s.begin;if(f.divIdx===m&&f.offset===h)continue;m=f.divIdx,h=f.offset;let p=s.end,g=a&&r===o,_=g?` selected`:``,v=null;if(!c||f.divIdx!==c.divIdx?(c!==null&&d(c.divIdx,c.offset,l.offset),u(f)):d(c.divIdx,c.offset,f.offset),f.divIdx===p.divIdx)v=d(f.divIdx,f.offset,p.offset,`highlight`+_);else{v=d(f.divIdx,f.offset,l.offset,`highlight begin`+_);for(let e=f.divIdx+1,t=p.divIdx;e<t;e++)i[e].className=`highlight middle`+_;u(p,`highlight end`+_)}c=p,g&&t.scrollMatchIntoView({element:v,pageIndex:n,matchIndex:o})}c&&d(c.divIdx,c.offset,l.offset)}_updateMatches(e=!1){if(!this.enabled&&!e)return;let{findController:t,matches:n,pageIdx:r}=this,{textContentItemsStr:i,textDivs:a}=this,o=-1;for(let e of n){let t=Math.max(o,e.begin.divIdx);for(let n=t,r=e.end.divIdx;n<=r;n++){let e=a[n];e.textContent=i[n],e.className=``}o=e.end.divIdx+1}if(!t?.highlightMatches||e)return;let s=t.pageMatches[r]||null,c=t.pageMatchesLength[r]||null;this.matches=this._convertMatches(s,c),this._renderMatches(this.matches)}},ru=class e{#e=null;#t=!1;#n=null;#r=!1;#i=null;static#a=new Map;static#o=null;constructor({pdfPage:e,highlighter:t=null,accessibilityManager:n=null,enablePermissions:r=!1,onAppend:i=null,abortSignal:a=null}){this.pdfPage=e,this.highlighter=t,this.accessibilityManager=n,this.#t=r===!0,this.#n=i,this.#e=a,this.div=document.createElement(`div`),this.div.tabIndex=0,this.div.className=`textLayer`}async render({viewport:e,images:t,textContentParams:n=null}){if(this.#r&&this.#i){this.#i.update({viewport:e,onBefore:this.hide.bind(this)}),this.show();return}this.cancel(),this.#i=new ko({textContentSource:this.pdfPage.streamTextContent(n||{includeMarkedContent:!0,disableNormalization:!0}),images:t,container:this.div,viewport:e});let{textDivs:r,textContentItemsStr:i}=this.#i;this.highlighter?.setTextMapping(r,i),this.accessibilityManager?.setTextMapping(r),await this.#i.render(),this.#r=!0;let a=document.createElement(`div`);a.className=`endOfContent`,this.div.append(a),this.#s(a),this.#n?.(this.div),this.highlighter?.enable(),this.accessibilityManager?.enable()}hide(){!this.div.hidden&&this.#r&&(this.highlighter?.disable(),this.div.hidden=!0)}show(){this.div.hidden&&this.#r&&(this.div.hidden=!1,this.highlighter?.enable())}cancel(){this.#i?.cancel(),this.#i=null,this.#r=!1,this.div.replaceChildren(),this.highlighter?.disable(),this.accessibilityManager?.disable(),e.#c(this.div)}#s(t){let{div:n}=this,r=this.#e,i=r?{signal:r}:null;n.addEventListener(`mousedown`,()=>{n.classList.add(`selecting`)},i),n.addEventListener(`copy`,e=>{if(!this.#t){let t=document.getSelection();e.clipboardData.setData(`text/plain`,ps(fo(t.toString())))}Do(e)},i),e.#a.set(n,t),e.#l(r)}static#c(e){this.#a.delete(e),this.#a.size===0&&(this.#o?.abort(),this.#o=null)}static#l(e){if(this.#o)return;this.#o=new AbortController;let t=e?AbortSignal.any([this.#o.signal,e]):this.#o.signal,n=(e,t)=>{t.append(e),e.style.width=``,e.style.height=``,t.classList.remove(`selecting`)},r=!1;document.addEventListener(`pointerdown`,()=>{r=!0},{signal:t}),document.addEventListener(`pointerup`,()=>{r=!1,this.#a.forEach(n)},{signal:t}),window.addEventListener(`blur`,()=>{r=!1,this.#a.forEach(n)},{signal:t}),document.addEventListener(`keyup`,()=>{r||this.#a.forEach(n)},{signal:t});var i,a;document.addEventListener(`selectionchange`,()=>{let e=document.getSelection();if(e.rangeCount===0){this.#a.forEach(n);return}let t=new Set;for(let n=0;n<e.rangeCount;n++){let r=e.getRangeAt(n);for(let e of this.#a.keys())!t.has(e)&&r.intersectsNode(e)&&t.add(e)}for(let[e,r]of this.#a)t.has(e)?e.classList.add(`selecting`):n(r,e);if(i??=getComputedStyle(this.#a.values().next().value).getPropertyValue(`-moz-user-select`)===`none`,i)return;let r=e.getRangeAt(0),o=a&&(r.compareBoundaryPoints(Range.END_TO_END,a)===0||r.compareBoundaryPoints(Range.START_TO_END,a)===0),s=o?r.startContainer:r.endContainer;if(s.nodeType===Node.TEXT_NODE&&(s=s.parentNode),s.classList?.contains(`highlight`)&&(s=s.parentNode),!o&&r.endOffset===0)do{for(;!s.previousSibling;)s=s.parentNode;s=s.previousSibling}while(!s.childNodes.length);let c=s.parentElement?.closest(`.textLayer`),l=this.#a.get(c);l&&(l.style.width=c.style.width,l.style.height=c.style.height,l.style.userSelect=`text`,s.parentElement.insertBefore(l,o?s:s.nextSibling)),a=r.cloneRange()},{signal:t})}},iu=class{#e=!1;div=null;constructor({pdfPage:e,annotationStorage:t=null,linkService:n,xfaHtml:r=null}){this.pdfPage=e,this.annotationStorage=t,this.linkService=n,this.xfaHtml=r}async render({viewport:e,intent:t=`display`}){let n;if(t===`print`)n=this.xfaHtml;else if(n=await this.pdfPage.getXfa(),this.#e||!n)return{textDivs:[]};let r=!!this.div,i={viewport:e.clone({dontFlip:!0}),div:this.div??=document.createElement(`div`),xfaHtml:n,annotationStorage:this.annotationStorage,linkService:this.linkService,intent:t};return r?Io.update(i):Io.render(i)}cancel(){this.#e=!0}hide(){this.div&&(this.div.hidden=!0)}},au={annotationEditorUIManager:null,annotationStorage:null,downloadManager:null,enableScripting:!1,fieldObjectsPromise:null,findController:null,hasJSActionsPromise:null,get linkService(){return new Ys}},ou=new Map([[`canvasWrapper`,0],[`textLayer`,1],[`annotationLayer`,2],[`annotationEditorLayer`,3],[`xfaLayer`,3]]),su=class e extends Kl{#e=null;#t=Ia.ENABLE_FORMS;#n=null;#r=null;#i=!0;#a=!1;#o=!1;#s=null;#c=!1;#l=null;#u=null;#d=1;#f=1;#p=ss.ENABLE;#m=1;#h={directDrawing:!0,initialOptionalContent:!0,regularAnnotations:!0};#g=[null,null,null,null];constructor(e){super(e);let{container:t,defaultViewport:n}=e;this.renderingId=`page`+this.id,this.#s=e.layerProperties||au,this.#e=e.abortSignal||null,this.pdfPage=null,this.pageLabel=null,this.rotation=0,this.scale=e.scale||Qo,this.viewport=n,this.pdfPageRotate=n.rotation,this._optionalContentConfigPromise=e.optionalContentConfigPromise||null,this.#p=e.textLayerMode??ss.ENABLE,this.#t=e.annotationMode??Ia.ENABLE_FORMS,this.imageResourcesPath=e.imageResourcesPath||``,this.enableDetailCanvas=e.enableDetailCanvas??!0,this.maxCanvasPixels=e.maxCanvasPixels??zl.get(`maxCanvasPixels`),this.maxCanvasDim=e.maxCanvasDim||zl.get(`maxCanvasDim`),this.capCanvasAreaFactor=e.capCanvasAreaFactor??zl.get(`capCanvasAreaFactor`),this.#i=e.enableAutoLinking!==!1,this.#r=e.commentManager||null,this.l10n=e.l10n,this.l10n||=new Dl,this._isStandalone=!this.renderingQueue?.hasViewer(),this._container=t,this._annotationCanvasMap=null,this.annotationLayer=null,this.annotationEditorLayer=null,this.textLayer=null,this.xfaLayer=null,this.structTreeLayer=null,this.drawLayer=null,this.detailView=null;let r=document.createElement(`div`);if(r.className=`page`,r.setAttribute(`data-page-number`,this.id),r.setAttribute(`role`,`region`),r.setAttribute(`data-l10n-id`,`pdfjs-page-landmark`),r.setAttribute(`data-l10n-args`,JSON.stringify({page:this.id})),this.div=r,this.#v(),t?.append(r),this._isStandalone){t?.style.setProperty(`--scale-factor`,this.scale*bo.PDF_TO_CSS_UNITS),this.pageColors?.background&&t?.style.setProperty(`--page-bg-color`,this.pageColors.background);let{optionalContentConfigPromise:n}=e;n&&n.then(e=>{n===this._optionalContentConfigPromise&&(this.#h.initialOptionalContent=e.hasInitialVisibility)}),e.l10n||this.l10n.translate(this.div)}}clone(t){let n=new e({container:null,eventBus:this.eventBus,pagesColors:this.pageColors,renderingQueue:this.renderingQueue,enableOptimizedPartialRendering:this.enableOptimizedPartialRendering,minDurationToUpdateCanvas:this.minDurationToUpdateCanvas,defaultViewport:this.viewport,id:t,layerProperties:this.#s,abortSignal:this.#e,scale:this.scale,optionalContentConfigPromise:this._optionalContentConfigPromise,textLayerMode:this.#p,annotationMode:this.#t,imageResourcesPath:this.imageResourcesPath,enableDetailCanvas:this.enableDetailCanvas,maxCanvasPixels:this.maxCanvasPixels,maxCanvasDim:this.maxCanvasDim,capCanvasAreaFactor:this.capCanvasAreaFactor,enableAutoLinking:this.#i,commentManager:this.#r,l10n:this.l10n});return n.setPdfPage(this.pdfPage.clone(t-1)),n}#_(e,t){let n=ou.get(t),r=this.#g[n];if(this.#g[n]=e,r){r.replaceWith(e);return}for(let t=n-1;t>=0;t--){let n=this.#g[t];if(n){n.after(e);return}}this.div.prepend(e)}#v(){let{div:e,viewport:t}=this;if(t.userUnit!==this.#m&&(t.userUnit===1?e.style.removeProperty(`--user-unit`):e.style.setProperty(`--user-unit`,t.userUnit),this.#m=t.userUnit),this.pdfPage){if(this.#u===t.rotation)return;this.#u=t.rotation}wo(e,t,!0,!1)}updatePageNumber(e){if(this.id===e)return;let t=this.id;this.id=e,this.renderingId=`page${e}`,this.pdfPage&&(this.pdfPage.pageNumber=e),this.setPageLabel(this.pageLabel);let{div:n}=this;n.setAttribute(`data-page-number`,e),n.setAttribute(`data-l10n-args`,JSON.stringify({page:e})),this._textHighlighter.pageIdx=e-1,this.#s.annotationEditorUIManager?.updatePageIndex(t-1,e-1)}setPdfPage(e){this._isStandalone&&(this.pageColors?.foreground===`CanvasText`||this.pageColors?.background===`Canvas`)&&(this._container?.style.setProperty(`--hcm-highlight-filter`,e.filterFactory.addHighlightHCMFilter(`highlight`,`CanvasText`,`Canvas`,`HighlightText`,`Highlight`)),this._container?.style.setProperty(`--hcm-highlight-selected-filter`,e.filterFactory.addHighlightHCMFilter(`highlight_selected`,`CanvasText`,`Canvas`,`HighlightText`,`Highlight`))),this.pdfPage=e,this.pdfPageRotate=e.rotate;let t=(this.rotation+this.pdfPageRotate)%360;this.viewport=e.getViewport({scale:this.scale*bo.PDF_TO_CSS_UNITS,rotation:t}),this.#v(),this.reset()}destroy(){this.reset(),this.pdfPage?.cleanup()}deleteMe(e){if(e){this.div.remove();return}this.destroy(),this.#s.annotationEditorUIManager?.deletePage(this.id)}hasEditableAnnotations(){return!!this.annotationLayer?.hasEditableAnnotations()}get _textHighlighter(){return To(this,`_textHighlighter`,new nu({pageIndex:this.id-1,eventBus:this.eventBus,findController:this.#s.findController}))}#y(e,t){this.eventBus.dispatch(e,{source:this,pageNumber:this.id,error:t})}async#b(){let e=null;try{await this.annotationLayer.render({viewport:this.viewport,intent:`display`,structTreeLayer:this.structTreeLayer,optionalContentConfigPromise:this._optionalContentConfigPromise})}catch(t){console.error(`#renderAnnotationLayer:`,t),e=t}finally{this.#y(`annotationlayerrendered`,e)}}async#x(){let e=null;try{await this.annotationEditorLayer.render({viewport:this.viewport,intent:`display`})}catch(t){console.error(`#renderAnnotationEditorLayer:`,t),e=t}finally{this.#y(`annotationeditorlayerrendered`,e)}}async#S(){try{await this.drawLayer.render({intent:`display`})}catch(e){console.error(`#renderDrawLayer:`,e)}}async#C(){let e=null;try{let e=await this.xfaLayer.render({viewport:this.viewport,intent:`display`});e?.textDivs&&this._textHighlighter&&this.#E(e.textDivs)}catch(t){console.error(`#renderXfaLayer:`,t),e=t}finally{this.xfaLayer?.div&&(this.l10n.pause(),this.#_(this.xfaLayer.div,`xfaLayer`),this.l10n.resume()),this.#y(`xfalayerrendered`,e)}}async#w(){if(!this.textLayer)return;let e=null;try{await this.textLayer.render({viewport:this.viewport,images:this.imageCoordinates?new Ao(this.imagesRightClickMinSize,this.imageCoordinates,this.viewport,()=>this.canvas):null})}catch(t){if(t instanceof Aa)return;console.error(`#renderTextLayer:`,t),e=t}this.#y(`textlayerrendered`,e),this.#T()}async#T(){if(!this.textLayer)return;let e=await this.structTreeLayer?.render();e&&(this.l10n.pause(),this.structTreeLayer?.updateTextLayer(),this.canvas&&e.parentNode!==this.canvas&&this.canvas.append(e),this.l10n.resume()),this.structTreeLayer?.show()}async#E(e){let t=await this.pdfPage.getTextContent(),n=[];for(let e of t.items)n.push(e.str);this._textHighlighter.setTextMapping(e,n),this._textHighlighter.enable()}async#D(e){try{if(await e,!this.annotationLayer)return;await this.annotationLayer.injectLinkAnnotations(Wl.processLinks(this))}catch(e){console.error(`#injectLinkAnnotations:`,e)}}_resetCanvas(){super._resetCanvas(),this.#l=null}reset({keepAnnotationLayer:e=!1,keepAnnotationEditorLayer:t=!1,keepXfaLayer:n=!1,keepTextLayer:r=!1,keepCanvasWrapper:i=!1,preserveDetailViewState:a=!1}={}){let o=this.pdfPage?._pdfBug??!1;this.cancelRendering({keepAnnotationLayer:e,keepAnnotationEditorLayer:t,keepXfaLayer:n,keepTextLayer:r}),this.renderingState=$.INITIAL;let s=this.div,c=s.childNodes,l=e&&this.annotationLayer?.div||null,u=t&&this.annotationEditorLayer?.div||null,d=n&&this.xfaLayer?.div||null,f=r&&this.textLayer?.div||null,p=i&&this.#n||null;for(let e=c.length-1;e>=0;e--){let t=c[e];switch(t){case l:case u:case d:case f:case p:continue}if(o&&t.classList.contains(`pdfBugGroupsLayer`))continue;t.remove();let n=this.#g.indexOf(t);n>=0&&(this.#g[n]=null)}s.removeAttribute(`data-loaded`),l&&this.annotationLayer.hide(),u&&this.annotationEditorLayer.hide(),d&&this.xfaLayer.hide(),f&&this.textLayer.hide(),this.structTreeLayer?.hide(),!i&&this.#n&&(this.#n=null,this._resetCanvas()),a||(this.detailView?.reset({keepCanvas:i}),i||(this.detailView=null))}toggleEditingMode(e){this.#o=e,this.hasEditableAnnotations()&&this.reset({keepAnnotationLayer:!0,keepAnnotationEditorLayer:!0,keepXfaLayer:!0,keepTextLayer:!0,keepCanvasWrapper:!0})}updateVisibleArea(e){this.enableDetailCanvas&&(this.#c&&this.maxCanvasPixels>0&&e?(this.detailView??=new Jl({pageView:this,enableOptimizedPartialRendering:this.enableOptimizedPartialRendering,imagesRightClickMinSize:-1}),this.detailView.update({visibleArea:e})):this.detailView&&=(this.detailView.reset(),null))}update({scale:e=0,rotation:t=null,optionalContentConfigPromise:n=null,drawingDelay:r=-1}){this.scale=e||this.scale,typeof t==`number`&&(this.rotation=t),n instanceof Promise&&(this._optionalContentConfigPromise=n,n.then(e=>{n===this._optionalContentConfigPromise&&(this.#h.initialOptionalContent=e.hasInitialVisibility)})),this.#h.directDrawing=!0;let i=(this.rotation+this.pdfPageRotate)%360;if(this.viewport=this.viewport.clone({scale:this.scale*bo.PDF_TO_CSS_UNITS,rotation:i}),this.#v(),this._isStandalone&&this._container?.style.setProperty(`--scale-factor`,this.viewport.scale),this.#O(),this.canvas){let e=this.#a&&this.#c,t=r>=0&&r<1e3;if(t||e){t&&!e&&this.renderingState!==$.FINISHED&&(this.cancelRendering({keepAnnotationLayer:!0,keepAnnotationEditorLayer:!0,keepXfaLayer:!0,keepTextLayer:!0,cancelExtraDelay:r}),this.renderingState=$.FINISHED,this.#h.directDrawing=!1),this.cssTransform({redrawAnnotationLayer:!0,redrawAnnotationEditorLayer:!0,redrawXfaLayer:!0,redrawTextLayer:!t,hideTextLayer:t}),t||(this.detailView?.update({underlyingViewUpdated:!0}),this.dispatchPageRendered(!0,!1));return}}this.cssTransform({}),this.reset({keepAnnotationLayer:!0,keepAnnotationEditorLayer:!0,keepXfaLayer:!0,keepTextLayer:!0,keepCanvasWrapper:!0,preserveDetailViewState:!0}),this.detailView?.update({underlyingViewUpdated:!0})}#O(){let{width:e,height:t}=this.viewport,n=this.outputScale=new mo;if(this.maxCanvasPixels===0){let e=1/this.scale;n.sx*=e,n.sy*=e,this.#c=!0}else if(this.#c=n.limitCanvas(e,t,this.maxCanvasPixels,this.maxCanvasDim,this.capCanvasAreaFactor),this.#c&&this.enableDetailCanvas){let e=this.enableOptimizedPartialRendering?4:2;n.sx/=e,n.sy/=e}}cancelRendering({keepAnnotationLayer:e=!1,keepAnnotationEditorLayer:t=!1,keepXfaLayer:n=!1,keepTextLayer:r=!1,cancelExtraDelay:i=0}={}){super.cancelRendering({cancelExtraDelay:i}),this.textLayer&&(!r||!this.textLayer.div)&&(this.textLayer.cancel(),this.textLayer=null),this.annotationLayer&&(!e||!this.annotationLayer.div)&&(this.annotationLayer.cancel(),this.annotationLayer=null,this._annotationCanvasMap=null),this.structTreeLayer&&!this.textLayer&&(this.structTreeLayer=null),this.annotationEditorLayer&&(!t||!this.annotationEditorLayer.div)&&(this.drawLayer&&=(this.drawLayer.cancel(),null),this.annotationEditorLayer.cancel(),this.annotationEditorLayer=null),this.xfaLayer&&(!n||!this.xfaLayer.div)&&(this.xfaLayer.cancel(),this.xfaLayer=null,this._textHighlighter?.disable())}cssTransform({redrawAnnotationLayer:e=!1,redrawAnnotationEditorLayer:t=!1,redrawXfaLayer:n=!1,redrawTextLayer:r=!1,hideTextLayer:i=!1}){let{canvas:a}=this;if(!a)return;let o=this.#l;if(this.viewport!==o){let e=(360+this.viewport.rotation-o.rotation)%360;if(e===90||e===270){let{width:t,height:n}=this.viewport,r=n/t,i=t/n;a.style.transform=`rotate(${e}deg) scale(${r},${i})`}else a.style.transform=e===0?``:`rotate(${e}deg)`}e&&this.annotationLayer&&this.#b(),t&&this.annotationEditorLayer&&(this.drawLayer&&this.#S(),this.#x()),n&&this.xfaLayer&&this.#C(),this.textLayer&&(i?(this.textLayer.hide(),this.structTreeLayer?.hide()):r&&this.#w())}get width(){return this.viewport.width}get height(){return this.viewport.height}getPagePoint(e,t){return this.viewport.convertToPdfPoint(e,t)}_ensureCanvasWrapper(){let e=this.#n;return e||(e=this.#n=document.createElement(`div`),e.classList.add(`canvasWrapper`),this.#_(e,`canvasWrapper`)),e}_getRenderingContext(e,t,n,r){return{canvas:e,transform:t,viewport:this.viewport,annotationMode:this.#t,optionalContentConfigPromise:this._optionalContentConfigPromise,annotationCanvasMap:this._annotationCanvasMap,pageColors:this.pageColors,isEditing:this.#o,recordOperations:n,recordImages:r}}async draw(){this.renderingState!==$.INITIAL&&(console.error(`Must be in new state before drawing`),this.reset());let{div:e,l10n:t,pdfPage:n,viewport:r}=this;if(!n)throw this.renderingState=$.FINISHED,Error(`pdfPage is not loaded`);this.renderingState=$.RUNNING;let i=this._ensureCanvasWrapper();if(!this.textLayer&&this.#p!==ss.DISABLE&&!n.isPureXfa&&(this._accessibilityManager||=new tu,this.textLayer=new ru({pdfPage:n,highlighter:this._textHighlighter,accessibilityManager:this._accessibilityManager,enablePermissions:this.#p===ss.ENABLE_PERMISSIONS,onAppend:e=>{this.l10n.pause(),this.#_(e,`textLayer`),this.l10n.resume()},abortSignal:this.#e})),!this.annotationLayer&&this.#t!==Ia.DISABLE){let{annotationStorage:e,annotationEditorUIManager:t,downloadManager:r,enableComment:i,enableScripting:a,fieldObjectsPromise:o,hasJSActionsPromise:s,linkService:c}=this.#s;this._annotationCanvasMap||=new Map,this.annotationLayer=new Xs({pdfPage:n,annotationStorage:e,imageResourcesPath:this.imageResourcesPath,renderForms:this.#t===Ia.ENABLE_FORMS,linkService:c,downloadManager:r,enableComment:i,enableScripting:a,hasJSActionsPromise:s,fieldObjectsPromise:o,annotationCanvasMap:this._annotationCanvasMap,accessibilityManager:this._accessibilityManager,annotationEditorUIManager:t,commentManager:this.#r,onAppend:e=>{this.#_(e,`annotationLayer`)}})}let{width:a,height:o}=r;this.#l=r;let{canvas:s,prevCanvas:c}=this._createCanvas(e=>{i.prepend(e)});s.setAttribute(`role`,`presentation`),this.outputScale||this.#O();let{outputScale:l}=this;this.#a=this.#c;let u=hs(l.sx),d=hs(l.sy),f=s.width=gs(Es(a*l.sx),u[0]),p=s.height=gs(Es(o*l.sy),d[0]),m=gs(Es(a),u[1]),h=gs(Es(o),d[1]);l.sx=f/m,l.sy=p/h,this.#d!==u[1]&&(e.style.setProperty(`--scale-round-x`,`${u[1]}px`),this.#d=u[1]),this.#f!==d[1]&&(e.style.setProperty(`--scale-round-y`,`${d[1]}px`),this.#f=d[1]);let g=this.enableOptimizedPartialRendering&&this.#a&&!this.recordedBBoxes,_=this.imagesRightClickMinSize!==-1&&!this.imageCoordinates,v=l.scaled?[l.sx,0,0,l.sy,0,0]:null,y=this._drawCanvas(this._getRenderingContext(s,v,g,_),()=>{c?.remove(),this._resetCanvas()},e=>{this.#h.regularAnnotations=!e.separateAnnots,this.dispatchPageRendered(!1,!1)}).then(async()=>{if(this.renderingState!==$.FINISHED)return;this.structTreeLayer||=new eu(n,r.rawDims);let e=this.#w();this.annotationLayer&&(await this.#b(),this.#i&&this.annotationLayer&&this.textLayer&&await this.#D(e)),this.drawLayer||=new ql({pageIndex:this.id,textLayer:this.enableSelectionRendering?this.textLayer?.div:null,filterFactory:this.pdfPage?.filterFactory,pageColors:this.pageColors}),await this.#S(),this.drawLayer.setParent(i);let{annotationEditorUIManager:a}=this.#s;a&&(this.annotationLayer||this.#t===Ia.DISABLE)&&(this.annotationEditorLayer||=new Fl({uiManager:a,pageIndex:this.id-1,l10n:t,structTreeLayer:this.structTreeLayer,accessibilityManager:this._accessibilityManager,annotationLayer:this.annotationLayer?.annotationLayer,textLayer:this.textLayer,drawLayer:this.drawLayer.getDrawLayer(),onAppend:e=>{this.#_(e,`annotationEditorLayer`)}}),this.#x())});if(n.isPureXfa){if(!this.xfaLayer){let{annotationStorage:e,linkService:t}=this.#s;this.xfaLayer=new iu({pdfPage:n,annotationStorage:e,linkService:t})}this.#C()}return e.setAttribute(`data-loaded`,!0),this.dispatchPageRender(),y}setPageLabel(e){this.pageLabel=typeof e==`string`?e:null,this.div.setAttribute(`data-l10n-args`,JSON.stringify({page:this.pageLabel??this.id})),this.pageLabel===null?this.div.removeAttribute(`data-page-label`):this.div.setAttribute(`data-page-label`,this.pageLabel)}get thumbnailCanvas(){let{directDrawing:e,initialOptionalContent:t,regularAnnotations:n}=this.#h;return e&&t&&n?this.canvas:null}};async function cu(e){let{info:t,metadata:n,contentDispositionFilename:r,contentLength:i}=await e.getMetadata();return{...t,baseURL:``,filesize:i||(await e.getDownloadInfo()).length,filename:r||Xa(``),metadata:n?.getRaw(),authors:n?.get(`dc:creator`),numPages:e.numPages,URL:``}}var lu=class{constructor(e,t){this._ready=new Promise((n,i)=>{r(()=>import(e),[],import.meta.url).then(e=>{n(e.QuickJSSandbox(new URL(t,location.href).href))}).catch(i)})}async createSandbox(e){(await this._ready).create(e)}async dispatchEventInSandbox(e){let t=await this._ready;setTimeout(()=>t.dispatchEvent(e),0)}async destroySandbox(){(await this._ready).nukeSandbox()}},uu=class{#e=null;#t=null;#n=null;#r=null;#i=null;#a=null;#o=null;#s=null;#c=!1;#l=null;#u=null;constructor({eventBus:e,externalServices:t=null,docProperties:n=null}){this.#i=e,this.#a=t,this.#n=n}setViewer(e){this.#s=e}async setDocument(e){if(this.#o&&await this.#h(),this.#o=e,!e)return;let[t,n,r]=await Promise.all([e.getFieldObjects(),e.getCalculationOrderIds(),e.getJSActions()]);if(!t&&!r){await this.#h();return}if(e!==this.#o)return;try{this.#l=this.#m()}catch(e){console.error(`setDocument:`,e),await this.#h();return}let i=this.#i;this.#r=new AbortController;let a={signal:this.#r.signal,...Os};i.on(`updatefromsandbox`,e=>{e?.source===window&&this.#d(e.detail)},a),i.on(`dispatcheventinsandbox`,e=>{this.#l?.dispatchEventInSandbox(e.detail)},a),i.on(`pagechanging`,({pageNumber:e,previous:t})=>{e!==t&&(this.#p(t),this.#f(e))},a),i.on(`pagerendered`,({pageNumber:e})=>{this._pageOpenPending.has(e)&&e===this.#s.currentPageNumber&&this.#f(e)},a),i.on(`pagesdestroy`,async()=>{await this.#p(this.#s.currentPageNumber),await this.#l?.dispatchEventInSandbox({id:`doc`,name:`WillClose`}),this.#e?.resolve()},a);try{let a=await this.#n(e);if(e!==this.#o)return;await this.#l.createSandbox({objects:t,calculationOrder:n,appInfo:{platform:navigator.platform,language:navigator.language},docInfo:{...a,actions:r}}),i.dispatch(`sandboxcreated`,{source:this})}catch(e){console.error(`setDocument:`,e),await this.#h();return}await this.#l?.dispatchEventInSandbox({id:`doc`,name:`Open`}),await this.#f(this.#s.currentPageNumber,!0),Promise.resolve().then(()=>{e===this.#o&&(this.#c=!0)})}async dispatchWillSave(){return this.#l?.dispatchEventInSandbox({id:`doc`,name:`WillSave`})}async dispatchDidSave(){return this.#l?.dispatchEventInSandbox({id:`doc`,name:`DidSave`})}async dispatchWillPrint(){if(this.#l){await this.#u?.promise,this.#u=Promise.withResolvers();try{await this.#l.dispatchEventInSandbox({id:`doc`,name:`WillPrint`})}catch(e){throw this.#u.resolve(),this.#u=null,e}await this.#u.promise}}async dispatchDidPrint(){return this.#l?.dispatchEventInSandbox({id:`doc`,name:`DidPrint`})}get destroyPromise(){return this.#t?.promise||null}get ready(){return this.#c}get _pageOpenPending(){return To(this,`_pageOpenPending`,new Set)}get _visitedPages(){return To(this,`_visitedPages`,new Map)}async#d(e){let t=this.#s,n=t.isInPresentationMode||t.isChangingPresentationMode,{id:r,siblings:i,command:a,value:o}=e;if(!r){switch(a){case`clear`:console.clear();break;case`error`:console.error(o);break;case`layout`:n||(t.spreadMode=Ts(o).spreadMode);break;case`page-num`:t.currentPageNumber=o+1;break;case`print`:await t.pagesPromise,this.#i.dispatch(`print`,{source:this});break;case`println`:console.log(o);break;case`zoom`:n||(t.currentScaleValue=o);break;case`SaveAs`:this.#i.dispatch(`download`,{source:this});break;case`FirstPage`:t.currentPageNumber=1;break;case`LastPage`:t.currentPageNumber=t.pagesCount;break;case`NextPage`:t.nextPage();break;case`PrevPage`:t.previousPage();break;case`ZoomViewIn`:n||t.increaseScale();break;case`ZoomViewOut`:n||t.decreaseScale();break;case`WillPrintFinished`:this.#u?.resolve(),this.#u=null;break}return}if(n&&e.focus)return;delete e.id,delete e.siblings;let s=i?[r,...i]:[r];for(let t of s){let n=document.querySelector(`[data-element-id="${t}"]`);n?n.dispatchEvent(new CustomEvent(`updatefromsandbox`,{detail:e})):this.#o?.annotationStorage.setValue(t,e)}}async#f(e,t=!1){let n=this.#o,r=this._visitedPages;if(t&&(this.#e=Promise.withResolvers()),!this.#e)return;let i=this.#s.getPageView(e-1);if(i?.renderingState!==$.FINISHED){this._pageOpenPending.add(e);return}this._pageOpenPending.delete(e);let a=(async()=>{let t=await(r.has(e)?null:i.pdfPage?.getJSActions());n===this.#o&&await this.#l?.dispatchEventInSandbox({id:`page`,name:`PageOpen`,pageNumber:e,actions:t})})();r.set(e,a)}async#p(e){let t=this.#o,n=this._visitedPages;if(!this.#e||this._pageOpenPending.has(e))return;let r=n.get(e);r&&(n.set(e,null),await r,t===this.#o&&await this.#l?.dispatchEventInSandbox({id:`page`,name:`PageClose`,pageNumber:e}))}#m(){if(this.#t=Promise.withResolvers(),this.#l)throw Error(`#initScripting: Scripting already exists.`);return this.#a.createScripting()}async#h(){if(!this.#l){this.#o=null,this.#t?.resolve();return}this.#e&&=(await Promise.race([this.#e.promise,new Promise(e=>{setTimeout(e,1e3)})]).catch(()=>{}),null),this.#o=null;try{await this.#l.destroySandbox()}catch{}this.#u?.reject(Error(`Scripting destroyed.`)),this.#u=null,this.#r?.abort(),this.#r=null,this._pageOpenPending.clear(),this._visitedPages.clear(),this.#l=null,this.#c=!1,this.#t?.resolve()}},du=class extends uu{constructor(e){e.externalServices||window.addEventListener(`updatefromsandbox`,t=>{e.eventBus.dispatch(`updatefromsandbox`,{source:window,detail:t.detail})}),e.externalServices||={createScripting:()=>new lu(e.sandboxBundleSrc,e.wasmUrl)},e.docProperties||=e=>cu(e),super(e)}};X(1148),X(3579);var fu=3e4,pu=class{#e=null;#t=null;#n=null;#r=null;isThumbnailViewEnabled=!1;onIdle=null;printing=!1;constructor(){Object.defineProperty(this,"hasViewer",{value:()=>!!this.#r})}setViewer(e){this.#r=e}setThumbnailViewer(e){this.#n=e}isHighestPriority(e){return this.#e===e.renderingId}renderHighestPriority(e){this.#t&&=(clearTimeout(this.#t),null),!this.#r.forceRendering(e)&&(this.isThumbnailViewEnabled&&this.#n?.forceRendering()||this.printing||this.onIdle&&(this.#t=setTimeout(this.onIdle.bind(this),fu)))}getHighestPriority(e,t,n,r=!1,i=!1){let a=e.views,o=a.length;if(o===0)return null;for(let e=0;e<o;e++){let t=a[e].view;if(!this.isViewFinished(t))return t}if(!i)for(let e=0;e<o;e++){let{detailView:t}=a[e].view;if(t&&!this.isViewFinished(t))return t}let s=e.first.id,c=e.last.id;if(c-s+1>o){let r=e.ids;for(let e=1,i=c-s;e<i;e++){let i=n?s+e:c-e;if(r.has(i))continue;let a=t[i-1];if(!this.isViewFinished(a))return a}}let l=n?c:s-2,u=t[l];return u&&!this.isViewFinished(u)||r&&(l+=n?1:-1,u=t[l],u&&!this.isViewFinished(u))?u:null}isViewFinished(e){return e.renderingState===$.FINISHED}renderView(e){switch(e.renderingState){case $.FINISHED:return!1;case $.PAUSED:this.#e=e.renderingId,e.resume();break;case $.RUNNING:this.#e=e.renderingId;break;case $.INITIAL:this.#e=e.renderingId,e.draw().finally(()=>{this.renderHighestPriority()}).catch(e=>{e instanceof xo||console.error(`renderView:`,e)});break}return!0}},mu=10,hu={FORCE_SCROLL_MODE_PAGE:1e4,FORCE_LAZY_PAGE_INIT:5e3,PAUSE_EAGER_PAGE_INIT:250};function gu(e){return Object.values(Na).includes(e)&&e!==Na.DISABLE}var _u=class{#e=new Set;#t=0;constructor(e){this.#t=e}push(e){let t=this.#e;t.has(e)&&t.delete(e),t.add(e),t.size>this.#t&&this.#n()}resize(e,t=null){this.#t=e;let n=this.#e;if(t){let e=n.size,r=1;for(let i of n)if(t.has(i.id)&&(n.delete(i),n.add(i)),++r>e)break}for(;n.size>this.#t;)this.#n()}has(e){return this.#e.has(e)}[Symbol.iterator](){return this.#e.keys()}#n(){let e=this.#e.keys().next().value;e?.destroy(),this.#e.delete(e)}},vu=class{#e=null;#t=null;#n=null;#r=Na.NONE;#i=null;#a=Ia.ENABLE_FORMS;#o=null;#s=null;#c=null;#l=!1;#u=!1;#d=!1;#f=!1;#p=!0;#m=null;#h=null;#g=0;#_=null;#v=!0;#y=null;#b=null;#x=null;#S=!1;#C=null;#w=0;#T=new ResizeObserver(this.#X.bind(this));#E=null;#D=null;#O=null;#k=!0;#A=ss.ENABLE;#j=null;#M=null;#N=null;#P=null;constructor(e){let t=`6.0.227`;if(Fo!==t)throw Error(`The API version "${Fo}" does not match the Viewer version "${t}".`);if(this.container=e.container,this.viewer=e.viewer||e.container.firstElementChild,this.#j=e.viewerAlert||null,this.container?.tagName!==`DIV`||this.viewer?.tagName!==`DIV`)throw Error("Invalid `container` and/or `viewer` option.");if(this.container.offsetParent&&getComputedStyle(this.container).position!==`absolute`)throw Error("The `container` must be absolutely positioned.");this.#T.observe(this.container),this.eventBus=e.eventBus,this.linkService=e.linkService||new Ys,this.downloadManager=e.downloadManager||null,this.findController=e.findController||null,this.#t=e.altTextManager||null,this.#o=e.commentManager||null,this.#O=e.signatureManager||null,this.#c=e.editorUndoBar||null,this.findController&&(this.findController.onIsPageVisible=e=>this._getVisiblePages().ids.has(e)),this._scriptingManager=e.scriptingManager||null,this.#A=e.textLayerMode??ss.ENABLE,this.#a=e.annotationMode??Ia.ENABLE_FORMS,this.#r=e.annotationEditorMode??Na.NONE,this.#n=e.annotationEditorHighlightColors||null,this.#l=e.enableHighlightFloatingButton===!0,this.#d=e.enableUpdatedAddImage===!0,this.#f=e.enableNewAltTextWhenAddingImage===!0,this.imageResourcesPath=e.imageResourcesPath||``,this.enablePrintAutoRotate=e.enablePrintAutoRotate||!1,this.removePageBorders=e.removePageBorders||!1,this.maxCanvasPixels=e.maxCanvasPixels,this.maxCanvasDim=e.maxCanvasDim,this.capCanvasAreaFactor=e.capCanvasAreaFactor,this.enableDetailCanvas=e.enableDetailCanvas??!0,this.enableOptimizedPartialRendering=e.enableOptimizedPartialRendering??!1,this.enableSelectionRendering=e.enableSelectionRendering!==!1,this.imagesRightClickMinSize=e.imagesRightClickMinSize??-1,this.l10n=e.l10n,this.l10n||=new Dl,this.#u=e.enablePermissions||!1,this.pageColors=e.pageColors||null,this.#_=e.mlManager||null,this.#k=e.supportsPinchToZoom!==!1,this.#p=e.enableAutoLinking!==!1,this.#g=e.minDurationToUpdateCanvas??500,this.defaultRenderingQueue=!e.renderingQueue,this.defaultRenderingQueue?(this.renderingQueue=new pu,this.renderingQueue.setViewer(this)):this.renderingQueue=e.renderingQueue;let{abortSignal:n}=e;this.#m=n||null,n?.addEventListener(`abort`,()=>{this.#T.disconnect(),this.#T=null},{once:!0}),this.scroll=us(this.container,this._scrollUpdate.bind(this),n),this.presentationModeState=os.UNKNOWN,this._resetView(),this.removePageBorders&&this.viewer.classList.add(`removePageBorders`),this.#Y(),this.eventBus.on(`thumbnailrendered`,({pageNumber:e,pdfPage:t})=>{let n=this._pages[e-1];this.#e.has(n)||t?.cleanup()},Os),e.l10n||this.l10n.translate(this.container)}get printingAllowed(){return this.#v}get pagesCount(){return this._pages.length}getPageView(e){return this._pages[e]}getCachedPageViews(){return new Set(this.#e)}get pageViewsReady(){return this._pages.every(e=>e?.pdfPage)}clearSelection(){let e=document.getSelection();if(!(!e||e.isCollapsed)){for(let t=0,n=e.rangeCount;t<n;t++)if(e.getRangeAt(t).intersectsNode(this.viewer)){e.removeAllRanges?.(),e.empty?.();return}}}get renderForms(){return this.#a===Ia.ENABLE_FORMS}get enableScripting(){return!!this._scriptingManager}get currentPageNumber(){return this._currentPageNumber}set currentPageNumber(e){if(!Number.isInteger(e))throw Error(`Invalid page number.`);this.pdfDocument&&(this._currentPageNumber!==e&&this.clearSelection(),this._setCurrentPageNumber(e,!0)||console.error(`currentPageNumber: "${e}" is not a valid page.`))}_setCurrentPageNumber(e,t=!1){if(this._currentPageNumber===e)return t&&this.#W(),!0;if(!(0<e&&e<=this.pagesCount))return!1;let n=this._currentPageNumber;return this._currentPageNumber=e,this.eventBus.dispatch(`pagechanging`,{source:this,pageNumber:e,pageLabel:this._pageLabels?.[e-1]??null,previous:n}),t&&this.#W(),!0}get currentPageLabel(){return this._pageLabels?.[this._currentPageNumber-1]??null}set currentPageLabel(e){if(!this.pdfDocument)return;let t=e|0;if(this._pageLabels){let n=this._pageLabels.indexOf(e);n>=0&&(t=n+1)}this._currentPageNumber!==t&&this.clearSelection(),this._setCurrentPageNumber(t,!0)||console.error(`currentPageLabel: "${e}" is not a valid page.`)}get currentScale(){return this._currentScale===ns?Qo:this._currentScale}set currentScale(e){if(isNaN(e))throw Error(`Invalid numeric scale.`);this.pdfDocument&&this.#U(e,{noScroll:!1})}get currentScaleValue(){return this._currentScaleValue}set currentScaleValue(e){this.pdfDocument&&this.#U(e,{noScroll:!1})}get pagesRotation(){return this._pagesRotation}set pagesRotation(e){if(!ys(e))throw Error(`Invalid pages rotation angle.`);if(!this.pdfDocument||(e%=360,e<0&&(e+=360),this._pagesRotation===e))return;this.clearSelection(),this._pagesRotation=e;let t=this._currentPageNumber;this.refresh(!0,{rotation:e}),this._currentScaleValue&&this.#U(this._currentScaleValue,{noScroll:!0}),this.eventBus.dispatch(`rotationchanging`,{source:this,pagesRotation:e,pageNumber:t}),this.defaultRenderingQueue&&this.update()}get firstPagePromise(){return this.pdfDocument?this._firstPageCapability.promise:null}get onePageRendered(){return this.pdfDocument?this._onePageRenderedCapability.promise:null}get pagesPromise(){return this.pdfDocument?this._pagesCapability.promise:null}get _layerProperties(){let e=this;return To(this,`_layerProperties`,{get annotationEditorUIManager(){return e.#i},get annotationStorage(){return e.pdfDocument?.annotationStorage},get downloadManager(){return e.downloadManager},get enableComment(){return!!e.#o},get enableScripting(){return!!e._scriptingManager},get fieldObjectsPromise(){return e.pdfDocument?.getFieldObjects()},get findController(){return e.findController},get hasJSActionsPromise(){return e.pdfDocument?.hasJSActions()},get linkService(){return e.linkService}})}#F(e){let t={annotationEditorMode:this.#r,annotationMode:this.#a,textLayerMode:this.#A};return e?(this.#v=e.includes(yo.PRINT_HIGH_QUALITY)||e.includes(yo.PRINT),this.eventBus.dispatch(`printingallowed`,{source:this,isAllowed:this.#v}),!e.includes(yo.COPY)&&this.#A===ss.ENABLE&&(t.textLayerMode=ss.ENABLE_PERMISSIONS),e.includes(yo.MODIFY_CONTENTS)||(t.annotationEditorMode=Na.DISABLE),!e.includes(yo.MODIFY_ANNOTATIONS)&&!e.includes(yo.FILL_INTERACTIVE_FORMS)&&this.#a===Ia.ENABLE_FORMS&&(t.annotationMode=Ia.ENABLE),t):(this.#v=!0,this.eventBus.dispatch(`printingallowed`,{source:this,isAllowed:this.#v}),t)}async#I(e){if(document.visibilityState===`hidden`||!this.container.offsetParent||this._getVisiblePages().views.length===0)return;let t=Promise.withResolvers(),n=new AbortController;document.addEventListener(`visibilitychange`,()=>{document.visibilityState===`hidden`&&t.resolve()},{signal:AbortSignal.any([e,n.signal])}),await Promise.race([this._onePageRenderedCapability.promise,t.promise]),n.abort()}async getAllText(e=null){let t=[],n=[];for(let r=1,i=this.pdfDocument.numPages;r<=i;++r){if(e?.aborted)return null;n.length=0;let{items:i}=await(await this.pdfDocument.getPage(r)).getTextContent();for(let e of i)e.str&&n.push(e.str),e.hasEOL&&n.push(`
`);t.push(ps(n.join(``)))}return t.join(`
`)}#L(e,t){let n=document.getSelection(),{focusNode:r,anchorNode:i}=n;if(i&&r&&n.containsNode(this.#C)){if(this.#S||e===ss.ENABLE_PERMISSIONS){Do(t);return}this.#S=!0;let{classList:n}=this.viewer;n.add(`copyAll`);let r=new AbortController,i=new AbortController;window.addEventListener(`keydown`,e=>{e.key===`Escape`&&i.abort()},{signal:r.signal}),this.getAllText(i.signal).then(async e=>{e!==null&&await navigator.clipboard.writeText(e)}).catch(e=>{console.warn(`Something goes wrong when extracting the text: ${e.message}`)}).finally(()=>{this.#S=!1,r.abort(),n.remove(`copyAll`)}),Do(t)}}setDocument(e){if(this.pdfDocument&&(this.eventBus.dispatch(`pagesdestroy`,{source:this}),this._cancelRendering(),this._resetView(),this.findController?.setDocument(null),this._scriptingManager?.setDocument(null),this.#i?.destroy(),this.#i=null,this.#r=Na.NONE,this.#v=!0),this.pdfDocument=e,!e)return;let t=e.numPages,n=e.getPage(1),r=e.getOptionalContentConfig({intent:`display`}),i=this.#u?e.getPermissions():Promise.resolve(),{eventBus:a,pageColors:o,viewer:s}=this;this.#h=new AbortController;let{signal:c}=this.#h,l={signal:c,...Os};if(t>hu.FORCE_SCROLL_MODE_PAGE){console.warn(`Forcing PAGE-scrolling for performance reasons, given the length of the document.`);let e=this._scrollMode=Z.PAGE;a.dispatch(`scrollmodechanged`,{source:this,mode:e})}this._pagesCapability.promise.then(()=>{a.dispatch(`pagesloaded`,{source:this,pagesCount:t})},()=>{}),a.on(`pagerender`,e=>{let t=this._pages[e.pageNumber-1];t&&this.#e.push(t)},l);let u=e=>{e.cssTransform||e.isDetailView||(this._onePageRenderedCapability.resolve({timestamp:e.timestamp}),a.off(`pagerendered`,u))};a.on(`pagerendered`,u,l),Promise.all([n,i]).then(([n,i])=>{if(e!==this.pdfDocument)return;this._firstPageCapability.resolve(n),this._optionalContentConfigPromise=r;let{annotationEditorMode:l,annotationMode:u,textLayerMode:d}=this.#F(i);if(d!==ss.DISABLE){let e=this.#C=document.createElement(`div`);e.id=`hiddenCopyElement`,e.style.cssText=`position:absolute;top:0;left:0;width:0;height:0;display:none`,s.before(e)}if(l!==Na.DISABLE){let t=l;e.isPureXfa?console.warn(`Warning: XFA-editing is not implemented.`):gu(t)?(this.#i=new Pa(this.container,s,this.#j,this.#t,this.#o,this.#O,a,e,o,this.#n,this.#l,this.#d,this.#f,this.#_,this.#c,this.#k),a.dispatch(`annotationeditoruimanager`,{source:this,uiManager:this.#i}),t!==Na.NONE&&(this.#$(t),this.#i.updateMode(t))):console.error(`Invalid AnnotationEditor mode: ${t}`)}let f=this._scrollMode===Z.PAGE?null:s,p=this.currentScale,m=n.getViewport({scale:p*bo.PDF_TO_CSS_UNITS});s.style.setProperty(`--scale-factor`,m.scale),o?.background&&s.style.setProperty(`--page-bg-color`,o.background),(o?.foreground===`CanvasText`||o?.background===`Canvas`)&&(s.style.setProperty(`--hcm-highlight-filter`,e.filterFactory.addHighlightHCMFilter(`highlight`,`CanvasText`,`Canvas`,`HighlightText`,`Highlight`)),s.style.setProperty(`--hcm-highlight-selected-filter`,e.filterFactory.addHighlightHCMFilter(`highlight_selected`,`CanvasText`,`Canvas`,`HighlightText`,`ButtonText`)));for(let e=1;e<=t;++e){let t=new su({container:f,eventBus:a,id:e,scale:p,defaultViewport:m.clone(),optionalContentConfigPromise:r,renderingQueue:this.renderingQueue,textLayerMode:d,annotationMode:u,imageResourcesPath:this.imageResourcesPath,maxCanvasPixels:this.maxCanvasPixels,maxCanvasDim:this.maxCanvasDim,capCanvasAreaFactor:this.capCanvasAreaFactor,enableDetailCanvas:this.enableDetailCanvas,enableOptimizedPartialRendering:this.enableOptimizedPartialRendering,enableSelectionRendering:this.enableSelectionRendering,imagesRightClickMinSize:this.imagesRightClickMinSize,pageColors:o,l10n:this.l10n,layerProperties:this._layerProperties,enableAutoLinking:this.#p,minDurationToUpdateCanvas:this.#g,commentManager:this.#o,abortSignal:this.#m});this._pages.push(t)}this._pages[0]?.setPdfPage(n),this._scrollMode===Z.PAGE?this.#R():this._spreadMode!==cs.NONE&&this._updateSpreadMode(),a.on(`annotationeditorlayerrendered`,e=>{this.#i&&a.dispatch(`annotationeditormodechanged`,{source:this,mode:this.#r})},{once:!0,signal:c,...Os}),this.#I(c).then(async()=>{if(e!==this.pdfDocument)return;if(this.findController?.setDocument(e),this._scriptingManager?.setDocument(e),this.#C&&document.addEventListener(`copy`,this.#L.bind(this,d),{signal:c}),e.loadingParams.disableAutoFetch||t>hu.FORCE_LAZY_PAGE_INIT){this._pagesCapability.resolve();return}let n=t-1;if(n<=0){this._pagesCapability.resolve();return}for(let r=2;r<=t;++r){let t=e.getPage(r).then(e=>{let t=this._pages[r-1];t.pdfPage||t.setPdfPage(e),--n===0&&this._pagesCapability.resolve()},e=>{console.error(`Unable to get page ${r} to initialize viewer`,e),--n===0&&this._pagesCapability.resolve()});r%hu.PAUSE_EAGER_PAGE_INIT===0&&await t}}),a.dispatch(`pagesinit`,{source:this}),e.getMetadata().then(({info:t})=>{e===this.pdfDocument&&t.Language&&(s.lang=t.Language)}),this.defaultRenderingQueue&&this.update()}).catch(e=>{console.error(`Unable to initialize viewer`,e),this._pagesCapability.reject(e)})}onPagesEdited({pagesMapper:e,type:t,hasBeenCut:n,pageNumbers:r}){if(t===`copy`){this.#M=new Map;for(let e of r)this.#M.set(e,this._pages[e-1]);return}if(t===`cancelCopy`){this.#M=null;return}if((t===`cut`||t===`delete`)&&(this.#N=this._pages,this.#P=r),t===`cancelDelete`){if(this.#P=null,!this.#N)return;let e=this._scrollMode===Z.PAGE?null:this.viewer;if(e){this.#i?.startUpdatePages();let t=document.createDocumentFragment();for(let e=0,n=this.#N.length;e<n;e++){let n=this.#N[e];n.updatePageNumber(e+1),t.append(n.div)}e.replaceChildren(t),this.#i?.endUpdatePages()}this._pages=this.#N,this.#N=null;return}if(t===`cleanSavedData`){if(this.#P){if(this.#N){for(let e of this.#P)this.#N[e-1].deleteMe();this.#N=null}this.#P=null}return}this._currentPageNumber=0;let i=this._pages,a=this._pages=[];this.#i?.startUpdatePages();for(let t=1,r=e.pagesNumber;t<=r;t++){let r=e.getPrevPageNumber(t);if(r<0){let e=this.#M.get(-r);n?e.updatePageNumber(t):(this.#i?.clonePage(-r-1,t-1),e=e.clone(t)),a.push(e);continue}let o=i[r-1];a.push(o),o.updatePageNumber(t)}this.#i?.endUpdatePages(),t===`paste`&&(this.#M=null);let o=this._scrollMode===Z.PAGE?null:this.viewer;if(o){let e=document.createDocumentFragment();for(let{div:t}of a)e.append(t);o.replaceChildren(e)}setTimeout(()=>{this.forceRendering()})}setPageLabels(e){if(this.pdfDocument){e?Array.isArray(e)&&this.pdfDocument.numPages===e.length?this._pageLabels=e:(this._pageLabels=null,console.error(`setPageLabels: Invalid page labels.`)):this._pageLabels=null;for(let e=0,t=this._pages.length;e<t;e++)this._pages[e].setPageLabel(this._pageLabels?.[e]??null)}}_resetView(){this._pages=[],this._currentPageNumber=1,this._currentScale=ns,this._currentScaleValue=null,this._pageLabels=null,this.#e=new _u(mu),this._location=null,this._pagesRotation=0,this._optionalContentConfigPromise=null,this._firstPageCapability=Promise.withResolvers(),this._onePageRenderedCapability=Promise.withResolvers(),this._pagesCapability=Promise.withResolvers(),this._scrollMode=Z.VERTICAL,this._previousScrollMode=Z.UNKNOWN,this._spreadMode=cs.NONE,this.#E={previousPageNumber:1,scrollDown:!0,pages:[]},this.#h?.abort(),this.#h=null,this.viewer.textContent=``,this._updateScrollMode(),this.viewer.removeAttribute(`lang`),this.#C?.remove(),this.#C=null,this.#Z(),this.#Q()}#R(){if(this._scrollMode!==Z.PAGE)throw Error(`#ensurePageViewVisible: Invalid scrollMode value.`);let e=this._currentPageNumber,t=this.#E,n=this.viewer;if(n.textContent=``,t.pages.length=0,this._spreadMode===cs.NONE&&!this.isInPresentationMode){let r=this._pages[e-1];n.append(r.div),t.pages.push(r)}else{let r=new Set,i=this._spreadMode-1;i===-1?r.add(e-1):e%2===i?(r.add(e-2),r.add(e-1)):(r.add(e-1),r.add(e));let a=document.createElement(`div`);if(a.className=`spread`,this.isInPresentationMode){let e=document.createElement(`div`);e.className=`dummyPage`,a.append(e)}for(let e of r){let n=this._pages[e];n&&(a.append(n.div),t.pages.push(n))}n.append(a)}t.scrollDown=e>=t.previousPageNumber,t.previousPageNumber=e}_scrollUpdate(){this.pagesCount!==0&&(this.#y&&clearTimeout(this.#y),this.#y=setTimeout(()=>{this.#y=null,this.update()},100),this.update())}#z(e,t=null){let{div:n,id:r}=e;if(this._currentPageNumber!==r&&this._setCurrentPageNumber(r),this._scrollMode===Z.PAGE&&(this.#R(),this.update()),!t&&!this.isInPresentationMode){let e=n.offsetLeft+n.clientLeft,r=e+n.clientWidth,{scrollLeft:i,clientWidth:a}=this.container;(this._scrollMode===Z.HORIZONTAL||e<i||r>i+a)&&(t={left:0,top:0})}ls(n,t),!this._currentScaleValue&&this._location&&(this._location=null)}#B(e){return e===this._currentScale||Math.abs(e-this._currentScale)<1e-15}#V(e,t,{noScroll:n=!1,preset:r=!1,drawingDelay:i=-1,origin:a=null}){if(this.clearSelection(),this._currentScaleValue=t.toString(),this.#B(e)){r&&this.eventBus.dispatch(`scalechanging`,{source:this,scale:e,presetValue:t});return}this.viewer.style.setProperty(`--scale-factor`,e*bo.PDF_TO_CSS_UNITS);let o=i>=0&&i<1e3;this.refresh(!0,{scale:e,drawingDelay:o?i:-1}),o&&(this.#D=setTimeout(()=>{this.#D=null,this.refresh()},i));let s=this._currentScale;if(this._currentScale=e,!n){let t=this._currentPageNumber,n;if(this._location&&!(this.isInPresentationMode||this.isChangingPresentationMode)&&(t=this._location.pageNumber,n=[null,{name:`XYZ`},this._location.left,this._location.top,null]),this.scrollPageIntoView({pageNumber:t,destArray:n,allowNegativeOffset:!0}),Array.isArray(a)){let t=e/s-1,[n,r]=this.containerTopLeft;this.container.scrollLeft+=(a[0]-r)*t,this.container.scrollTop+=(a[1]-n)*t}}this.eventBus.dispatch(`scalechanging`,{source:this,scale:e,presetValue:r?t:void 0}),this.defaultRenderingQueue&&this.update()}get#H(){return this._spreadMode!==cs.NONE&&this._scrollMode!==Z.HORIZONTAL?2:1}#U(e,t){let n=parseFloat(e);if(n>0)t.preset=!1,this.#V(n,e,t);else{let r=this._pages[this._currentPageNumber-1];if(!r)return;let i=is,a=as;this.isInPresentationMode?(i=a=4,this._spreadMode!==cs.NONE&&(i*=2)):this.removePageBorders?i=a=0:this._scrollMode===Z.HORIZONTAL&&([i,a]=[a,i]);let o=(this.container.clientWidth-i)/r.width*r.scale/this.#H,s=(this.container.clientHeight-a)/r.height*r.scale;switch(e){case`page-actual`:n=1;break;case`page-width`:n=o;break;case`page-height`:n=s;break;case`page-fit`:n=Math.min(o,s);break;case`auto`:let t=Ss(r)?o:Math.min(s,o);n=Math.min(rs,t);break;default:console.error(`#setScale: "${e}" is an unknown zoom value.`);return}t.preset=!0,this.#V(n,e,t)}}#W(){let e=this._pages[this._currentPageNumber-1];this.isInPresentationMode&&this.#U(this._currentScaleValue,{noScroll:!0}),this.#z(e)}pageLabelToPageNumber(e){if(!this._pageLabels)return null;let t=this._pageLabels.indexOf(e);return t<0?null:t+1}scrollPageIntoView({pageNumber:e,destArray:t=null,allowNegativeOffset:n=!1,ignoreDestinationZoom:r=!1,center:i=null}){if(!this.pdfDocument)return;let a=Number.isInteger(e)&&this._pages[e-1];if(!a){console.error(`scrollPageIntoView: "${e}" is not a valid pageNumber parameter.`);return}if(this.isInPresentationMode||!t){this._setCurrentPageNumber(e,!0);return}let o=0,s=0,c=0,l=0,u,d,f=a.rotation%180!=0,p=(f?a.height:a.width)/a.scale/bo.PDF_TO_CSS_UNITS,m=(f?a.width:a.height)/a.scale/bo.PDF_TO_CSS_UNITS,h=0;switch(t[1].name){case`XYZ`:o=t[2],s=t[3],h=t[4],o=o===null?0:o,s=s===null?m:s;break;case`Fit`:case`FitB`:h=`page-fit`;break;case`FitH`:case`FitBH`:s=t[2],h=`page-width`,s===null&&this._location?(o=this._location.left,s=this._location.top):(typeof s!=`number`||s<0)&&(s=m);break;case`FitV`:case`FitBV`:o=t[2],c=p,l=m,h=`page-height`;break;case`FitR`:o=t[2],s=t[3],c=t[4]-o,l=t[5]-s;let e=is,n=as;this.removePageBorders&&(e=n=0),u=(this.container.clientWidth-e)/c/bo.PDF_TO_CSS_UNITS,d=(this.container.clientHeight-n)/l/bo.PDF_TO_CSS_UNITS,h=Math.min(Math.abs(u),Math.abs(d));break;default:console.error(`scrollPageIntoView: "${t[1].name}" is not a valid destination type.`);return}if(r||(h&&h!==this._currentScale?this.currentScaleValue=h:this._currentScale===ns&&(this.currentScaleValue=Zo)),h===`page-fit`&&!t[4]){this.#z(a);return}let g=[a.viewport.convertToViewportPoint(o,s),a.viewport.convertToViewportPoint(o+c,s+l)],_=Math.min(g[0][0],g[1][0]),v=Math.min(g[0][1],g[1][1]);i?((i===`both`||i===`vertical`)&&(v-=(this.container.clientHeight-Math.abs(g[1][1]-g[0][1]))/2),(i===`both`||i===`horizontal`)&&(_-=(this.container.clientWidth-Math.abs(g[1][0]-g[0][0]))/2)):n||(_=Math.max(_,0),v=Math.max(v,0)),this.#z(a,{left:_,top:v})}_updateLocation(e){let t=this._currentScale,n=this._currentScaleValue,r=parseFloat(n)===t?Math.round(t*1e4)/100:n,i=e.id,a=this._pages[i-1],o=this.container,s=a.getPagePoint(o.scrollLeft-e.x,o.scrollTop-e.y),c=Math.round(s[0]),l=Math.round(s[1]),u=`#page=${i}`;this.isInPresentationMode||(u+=`&zoom=${r},${c},${l}`),this._location={pageNumber:i,scale:r,top:l,left:c,rotation:this._pagesRotation,pdfOpenParams:u}}update(){let e=this._getVisiblePages(),t=e.views,n=t.length;if(n===0)return;let r=Math.max(mu,2*n+1);this.#e.resize(r,e.ids);for(let{view:e,visibleArea:n}of t)e.updateVisibleArea(n);for(let t of this.#e)e.ids.has(t.id)||t.updateVisibleArea(null);this.renderingQueue.renderHighestPriority(e);let i=this._spreadMode===cs.NONE&&(this._scrollMode===Z.PAGE||this._scrollMode===Z.VERTICAL),a=this._currentPageNumber,o=!1;for(let e of t){if(e.percent<100)break;if(e.id===a&&i){o=!0;break}}this._setCurrentPageNumber(o?this._currentPageNumber:t[0].id),this._updateLocation(e.first),this.eventBus.dispatch(`updateviewarea`,{source:this,location:this._location})}#G(){let e=this._getVisiblePages(),t=[],{ids:n,views:r}=e;for(let e of r){let{view:r}=e;if(!r.hasEditableAnnotations()){n.delete(r.id);continue}t.push(e)}return t.length===0?null:(this.renderingQueue.renderHighestPriority({first:t[0],last:t.at(-1),views:t,ids:n}),n)}containsElement(e){return this.container.contains(e)}focus(){this.container.focus()}get _isContainerRtl(){return getComputedStyle(this.container).direction===`rtl`}get isInPresentationMode(){return this.presentationModeState===os.FULLSCREEN}get isChangingPresentationMode(){return this.presentationModeState===os.CHANGING}get isHorizontalScrollbarEnabled(){return this.isInPresentationMode?!1:this.container.scrollWidth>this.container.clientWidth}get isVerticalScrollbarEnabled(){return this.isInPresentationMode?!1:this.container.scrollHeight>this.container.clientHeight}_getVisiblePages(){let e=this._scrollMode===Z.PAGE?this.#E.pages:this._pages,t=this._scrollMode===Z.HORIZONTAL,n=t&&this._isContainerRtl;return vs({scrollEl:this.container,views:e,sortByVisibility:!0,horizontal:t,rtl:n})}cleanup(){for(let e of this._pages)e.renderingState!==$.FINISHED&&e.reset()}_cancelRendering(){for(let e of this._pages)e.cancelRendering()}async#K(e){if(e.pdfPage)return e.pdfPage;try{let t=await this.pdfDocument.getPage(e.id);return e.pdfPage||e.setPdfPage(t),t}catch(e){return console.error(`Unable to get page for page view`,e),null}}#q(e){if(e.first?.id===1)return!0;if(e.last?.id===this.pagesCount)return!1;switch(this._scrollMode){case Z.PAGE:return this.#E.scrollDown;case Z.HORIZONTAL:return this.scroll.right}return this.scroll.down}forceRendering(e){let t=e||this._getVisiblePages(),n=this.#q(t),r=this._spreadMode!==cs.NONE&&this._scrollMode!==Z.HORIZONTAL,i=this.#D!==null||this.#y!==null&&t.views.some(e=>e.detailView?.renderingCancelled),a=this.renderingQueue.getHighestPriority(t,this._pages,n,r,i);return a?(this.#K(a).then(()=>{this.renderingQueue.renderView(a)}),!0):!1}get hasEqualPageSizes(){let e=this._pages[0];for(let t=1,n=this._pages.length;t<n;++t){let n=this._pages[t];if(n.width!==e.width||n.height!==e.height)return!1}return!0}getPagesOverview(){let e;return this._pages.map(t=>{let n=t.pdfPage.getViewport({scale:1}),r=Ss(n);if(e===void 0)e=r;else if(this.enablePrintAutoRotate&&r!==e)return{width:n.height,height:n.width,rotation:(n.rotation-90)%360};return{width:n.width,height:n.height,rotation:n.rotation}})}get optionalContentConfigPromise(){return this.pdfDocument?this._optionalContentConfigPromise?this._optionalContentConfigPromise:(console.error(`optionalContentConfigPromise: Not initialized yet.`),this.pdfDocument.getOptionalContentConfig({intent:`display`})):Promise.resolve(null)}set optionalContentConfigPromise(e){if(!(e instanceof Promise))throw Error(`Invalid optionalContentConfigPromise: ${e}`);this.pdfDocument&&this._optionalContentConfigPromise&&(this._optionalContentConfigPromise=e,this.refresh(!1,{optionalContentConfigPromise:e}),this.eventBus.dispatch(`optionalcontentconfigchanged`,{source:this,promise:e}))}get scrollMode(){return this._scrollMode}set scrollMode(e){if(this._scrollMode!==e){if(!bs(e))throw Error(`Invalid scroll mode: ${e}`);this.pagesCount>hu.FORCE_SCROLL_MODE_PAGE||(this._previousScrollMode=this._scrollMode,this.clearSelection(),this._scrollMode=e,this.eventBus.dispatch(`scrollmodechanged`,{source:this,mode:e}),this._updateScrollMode(this._currentPageNumber))}}_updateScrollMode(e=null){let t=this._scrollMode,n=this.viewer;n.classList.toggle(`scrollHorizontal`,t===Z.HORIZONTAL),n.classList.toggle(`scrollWrapped`,t===Z.WRAPPED),!(!this.pdfDocument||!e)&&(t===Z.PAGE?this.#R():this._previousScrollMode===Z.PAGE&&this._updateSpreadMode(),this._currentScaleValue&&isNaN(this._currentScaleValue)&&this.#U(this._currentScaleValue,{noScroll:!0}),this._setCurrentPageNumber(e,!0),this.update())}get spreadMode(){return this._spreadMode}set spreadMode(e){if(this._spreadMode!==e){if(!xs(e))throw Error(`Invalid spread mode: ${e}`);this.clearSelection(),this._spreadMode=e,this.eventBus.dispatch(`spreadmodechanged`,{source:this,mode:e}),this._updateSpreadMode(this._currentPageNumber)}}_updateSpreadMode(e=null){if(!this.pdfDocument)return;let t=this.viewer,n=this._pages;if(this._scrollMode===Z.PAGE)this.#R();else if(t.textContent=``,this._spreadMode===cs.NONE)for(let e of this._pages)t.append(e.div);else{let e=this._spreadMode-1,r=null;for(let i=0,a=n.length;i<a;++i)r===null?(r=document.createElement(`div`),r.className=`spread`,t.append(r)):i%2===e&&(r=r.cloneNode(!1),t.append(r)),r.append(n[i].div)}e&&(this._currentScaleValue&&isNaN(this._currentScaleValue)&&this.#U(this._currentScaleValue,{noScroll:!0}),this._setCurrentPageNumber(e,!0),this.update())}#J(e,t=!1){switch(this._scrollMode){case Z.WRAPPED:{let{views:n}=this._getVisiblePages(),r=new Map;for(let{id:e,y:t,percent:i,widthPercent:a}of n)i===0||a<100||r.getOrInsertComputed(t,oo).push(e);for(let n of r.values()){let r=n.indexOf(e);if(r===-1)continue;let i=n.length;if(i===1)break;if(t)for(let t=r-1,i=0;t>=0;t--){let r=n[t],i=n[t+1]-1;if(r<i)return e-i}else for(let t=r+1,a=i;t<a;t++){let r=n[t],i=n[t-1]+1;if(r>i)return i-e}if(t){let t=n[0];if(t<e)return e-t+1}else{let t=n[i-1];if(t>e)return t-e+1}break}break}case Z.HORIZONTAL:break;case Z.PAGE:case Z.VERTICAL:{if(this._spreadMode===cs.NONE)break;let n=this._spreadMode-1;if(t&&e%2!==n||!t&&e%2===n)break;let{views:r}=this._getVisiblePages(),i=t?e-1:e+1;for(let{id:e,percent:t,widthPercent:n}of r)if(e===i){if(t>0&&n===100)return 2;break}break}}return 1}nextPage(){let e=this._currentPageNumber,t=this.pagesCount;if(e>=t)return!1;let n=this.#J(e,!1)||1;return this.currentPageNumber=Math.min(e+n,t),!0}previousPage(){let e=this._currentPageNumber;if(e<=1)return!1;let t=this.#J(e,!0)||1;return this.currentPageNumber=Math.max(e-t,1),!0}updateScale({drawingDelay:e,scaleFactor:t=null,steps:n=null,origin:r}){if(n===null&&t===null)throw Error("Invalid updateScale options: either `steps` or `scaleFactor` must be provided.");if(!this.pdfDocument)return;let i=this._currentScale;if(t>0&&t!==1)i=Math.round(i*t*100)/100;else if(n){let e=n>0?$o:1/$o,t=n>0?Math.ceil:Math.floor;n=Math.abs(n);do i=t((i*e).toFixed(2)*10)/10;while(--n>0)}i=lo(i,es,ts),this.#U(i,{noScroll:!1,drawingDelay:e,origin:r})}increaseScale(e={}){this.updateScale({...e,steps:e.steps??1})}decreaseScale(e={}){this.updateScale({...e,steps:-(e.steps??1)})}#Y(e=this.container.clientHeight){e!==this.#w&&(this.#w=e,Cs.setProperty(`--viewer-container-height`,`${e}px`))}#X(e){for(let t of e)if(t.target===this.container){this.#Y(Math.floor(t.borderBoxSize[0].blockSize)),this.#s=null;break}}get containerTopLeft(){return this.#s||=[this.container.offsetTop,this.container.offsetLeft]}#Z(){this.#D!==null&&(clearTimeout(this.#D),this.#D=null),this.#y!==null&&(clearTimeout(this.#y),this.#y=null)}#Q(){this.#b?.abort(),this.#b=null,this.#x!==null&&(clearTimeout(this.#x),this.#x=null)}#$(e){switch(e){case Na.STAMP:this.#_?.loadModel(`altText`);break;case Na.SIGNATURE:this.#O?.loadSignatures();break}}get annotationEditorMode(){return this.#i?this.#r:Na.DISABLE}set annotationEditorMode({mode:e,editId:t=null,isFromKeyboard:n=!1,mustEnterInEditMode:r=!1,editComment:i=!1}){if(!this.#i)throw Error(`The AnnotationEditor is not enabled.`);if(this.#r===e)return;if(!gu(e))throw Error(`Invalid AnnotationEditor mode: ${e}`);if(!this.pdfDocument)return;this.#$(e);let{eventBus:a,pdfDocument:o}=this,s=async()=>{this.#Q(),this.#r=e,await this.#i.updateMode(e,t,!0,n,r,i),!(e!==this.#r||o!==this.pdfDocument)&&a.dispatch(`annotationeditormodechanged`,{source:this,mode:e})};if(e===Na.NONE||this.#r===Na.NONE){let t=e!==Na.NONE;t||this.pdfDocument.annotationStorage.resetModifiedIds(),this.cleanup();for(let e of this._pages)e.toggleEditingMode(t);let n=this.#G();if(t&&n){this.#Q(),this.#b=new AbortController;let e=AbortSignal.any([this.#h.signal,this.#b.signal]);a.on(`pagerendered`,({pageNumber:e})=>{n.delete(e),n.size===0&&(this.#x=setTimeout(s,0))},{signal:e,...Os});return}}s()}refresh(e=!1,t=Object.create(null)){if(this.pdfDocument){for(let e of this._pages)e.update(t);this.#Z(),e||this.update()}}};globalThis.pdfjsViewer={AnnotationLayerBuilder:Xs,DownloadManager:Qs,EventBus:tc,FindState:ks,GenericL10n:Dl,LinkTarget:qs,parseQueryString:ds,PDFFindController:Gs,PDFHistory:Ml,PDFLinkService:Js,PDFPageView:su,PDFScriptingManager:du,PDFSinglePageViewer:class extends vu{_resetView(){super._resetView(),this._scrollMode=Z.PAGE,this._spreadMode=cs.NONE}set scrollMode(e){}_updateScrollMode(){}set spreadMode(e){}_updateSpreadMode(){}},PDFViewer:vu,ProgressBar:ws,RenderingStates:$,ScrollMode:Z,SimpleLinkService:Ys,SpreadMode:cs,StructTreeLayerBuilder:eu,TextLayerBuilder:ru,XfaLayerBuilder:iu};var yu='(function(){var e={9306(e,t,n){var r=n(4901),i=n(6823),a=TypeError;e.exports=function(e){if(r(e))return e;throw new a(i(e)+` is not a function`)}},3506(e,t,n){var r=n(3925),i=String,a=TypeError;e.exports=function(e){if(r(e))return e;throw new a(`Can\'t set `+i(e)+` as a prototype`)}},7080(e,t,n){var r=n(4402).has;e.exports=function(e){return r(e),e}},3463(e){var t=TypeError;e.exports=function(e){if(typeof e==`string`)return e;throw new t(`Argument is not a string`)}},4328(e,t,n){var r=n(4995),i=new r.WeakMap,a=r.set,o=r.remove;e.exports=function(e){return a(i,e,1),o(i,e),e}},6557(e,t,n){var r=n(4995).has;e.exports=function(e){return r(e),e}},6469(e,t,n){var r=n(8227),i=n(2360),a=n(4913).f,o=r(`unscopables`),s=Array.prototype;s[o]===void 0&&a(s,o,{configurable:!0,value:i(null)}),e.exports=function(e){s[o][e]=!0}},679(e,t,n){var r=n(1625),i=TypeError;e.exports=function(e,t){if(r(t,e))return e;throw new i(`Incorrect invocation`)}},3972(e,t,n){var r=n(34),i=String,a=TypeError;e.exports=function(e){if(e===void 0||r(e))return e;throw new a(i(e)+` is not an object or undefined`)}},8551(e,t,n){var r=n(34),i=String,a=TypeError;e.exports=function(e){if(r(e))return e;throw new a(i(e)+` is not an object`)}},4154(e,t,n){var r=n(6955),i=TypeError;e.exports=function(e){if(r(e)===`Uint8Array`)return e;throw new i(`Argument is not an Uint8Array`)}},7811(e){e.exports=typeof ArrayBuffer<`u`&&typeof DataView<`u`},7394(e,t,n){var r=n(4576),i=n(6706),a=n(2195),o=r.ArrayBuffer,s=r.TypeError;e.exports=o&&i(o.prototype,`byteLength`,`get`)||function(e){if(a(e)!==`ArrayBuffer`)throw new s(`ArrayBuffer expected`);return e.byteLength}},3238(e,t,n){var r=n(4576),i=n(7811),a=n(7394),o=r.DataView;e.exports=function(e){if(!i||a(e)!==0)return!1;try{return new o(e),!1}catch{return!0}}},5169(e,t,n){var r=n(3238),i=TypeError;e.exports=function(e){if(r(e))throw new i(`ArrayBuffer is detached`);return e}},5636(e,t,n){var r=n(4576),i=n(9504),a=n(6706),o=n(7696),s=n(5169),c=n(7394),l=n(4483),u=n(1548),d=r.structuredClone,f=r.ArrayBuffer,p=r.DataView,m=Math.max,h=Math.min,g=f.prototype,_=p.prototype,v=i(g.slice),y=a(g,`resizable`,`get`),b=a(g,`maxByteLength`,`get`),x=i(_.getInt8),S=i(_.setInt8);e.exports=(u||l)&&function(e,t,n){var r=c(e),i=t===void 0?r:o(t),a=!y||!y(e),g;if(s(e),u&&(e=d(e,{transfer:[e]}),r===i&&(n||a)))return e;if(r>=i&&(!n||a))g=v(e,0,i);else{g=new f(i,n&&!a&&b?{maxByteLength:m(i,b(e))}:void 0);for(var _=new p(e),C=new p(g),w=h(i,r),T=0;T<w;T++)S(C,T,x(_,T))}return u||l(e),g}},4644(e,t,n){var r=n(7811),i=n(3724),a=n(4576),o=n(4901),s=n(34),c=n(9297),l=n(6955),u=n(6823),d=n(6699),f=n(6840),p=n(2106),m=n(1625),h=n(2787),g=n(2967),_=n(8227),v=n(3392),y=n(1181),b=y.enforce,x=y.get,S=a.Int8Array,C=S&&S.prototype,w=a.Uint8ClampedArray,T=w&&w.prototype,E=S&&h(S),D=C&&h(C),O=Object.prototype,ee=a.TypeError,te=_(`toStringTag`),ne=v(`TYPED_ARRAY_TAG`),k=`TypedArrayConstructor`,A=r&&!!g&&l(a.opera)!==`Opera`,j=!1,M,N,re,ie={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},ae={BigInt64Array:8,BigUint64Array:8},P=function(e){if(!s(e))return!1;var t=l(e);return t===`DataView`||c(ie,t)||c(ae,t)},oe=function(e){var t=h(e);if(s(t)){var n=x(t);return n&&c(n,k)?n[k]:oe(t)}},se=function(e){if(!s(e))return!1;var t=l(e);return c(ie,t)||c(ae,t)},ce=function(e){if(se(e))return e;throw new ee(`Target is not a typed array`)},le=function(e){if(o(e)&&(!g||m(E,e)))return e;throw new ee(u(e)+` is not a typed array constructor`)},ue=function(e,t,n,r){if(i){if(n)for(var o in ie){var s=a[o];if(s&&c(s.prototype,e))try{delete s.prototype[e]}catch{try{s.prototype[e]=t}catch{}}}(!D[e]||n)&&f(D,e,n?t:A&&C[e]||t,r)}},F=function(e,t,n){var r,o;if(i){if(g){if(n){for(r in ie)if(o=a[r],o&&c(o,e))try{delete o[e]}catch{}}if(!E[e]||n)try{return f(E,e,n?t:A&&E[e]||t)}catch{}else return}for(r in ie)o=a[r],o&&(!o[e]||n)&&f(o,e,t)}};for(M in ie)N=a[M],re=N&&N.prototype,re?b(re)[k]=N:A=!1;for(M in ae)N=a[M],re=N&&N.prototype,re&&(b(re)[k]=N);if((!A||!o(E)||E===Function.prototype)&&(E=function(){throw new ee(`Incorrect invocation`)},A))for(M in ie)a[M]&&g(a[M],E);if((!A||!D||D===O)&&(D=E.prototype,A))for(M in ie)a[M]&&g(a[M].prototype,D);if(A&&h(T)!==D&&g(T,D),i&&!c(D,te))for(M in j=!0,p(D,te,{configurable:!0,get:function(){return s(this)?this[ne]:void 0}}),ie)a[M]&&d(a[M].prototype,ne,M);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:A,TYPED_ARRAY_TAG:j&&ne,aTypedArray:ce,aTypedArrayConstructor:le,exportTypedArrayMethod:ue,exportTypedArrayStaticMethod:F,getTypedArrayConstructor:oe,isView:P,isTypedArray:se,TypedArray:E,TypedArrayPrototype:D}},5370(e,t,n){var r=n(6198);e.exports=function(e,t,n){for(var i=0,a=arguments.length>2?n:r(t),o=new e(a);a>i;)o[i]=t[i++];return o}},9617(e,t,n){var r=n(5397),i=n(5610),a=n(6198),o=function(e){return function(t,n,o){var s=r(t),c=a(s);if(c===0)return!e&&-1;var l=i(o,c),u;if(e&&n!==n){for(;c>l;)if(u=s[l++],u!==u)return!0}else for(;c>l;l++)if((e||l in s)&&s[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},4527(e,t,n){var r=n(3724),i=n(4376),a=TypeError,o=Object.getOwnPropertyDescriptor;e.exports=r&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}()?function(e,t){if(i(e)&&!o(e,`length`).writable)throw new a(`Cannot set read only .length`);return e.length=t}:function(e,t){return e.length=t}},7680(e,t,n){e.exports=n(9504)([].slice)},2804(e){var t=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789`,n=t+`+/`,r=t+`-_`,i=function(e){for(var t={},n=0;n<64;n++)t[e.charAt(n)]=n;return t};e.exports={i2c:n,c2i:i(n),i2cUrl:r,c2iUrl:i(r)}},6319(e,t,n){var r=n(8551),i=n(9539);e.exports=function(e,t,n,a){try{return a?t(r(n)[0],n[1]):t(n)}catch(t){i(e,`throw`,t)}}},2195(e,t,n){var r=n(9504),i=r({}.toString),a=r(``.slice);e.exports=function(e){return a(i(e),8,-1)}},6955(e,t,n){var r=n(2140),i=n(4901),a=n(2195),o=n(8227)(`toStringTag`),s=Object,c=a(function(){return arguments}())===`Arguments`,l=function(e,t){try{return e[t]}catch{}};e.exports=r?a:function(e){var t,n,r;return e===void 0?`Undefined`:e===null?`Null`:typeof(n=l(t=s(e),o))==`string`?n:c?a(t):(r=a(t))===`Object`&&i(t.callee)?`Arguments`:r}},7740(e,t,n){var r=n(9297),i=n(5031),a=n(7347),o=n(4913);e.exports=function(e,t,n){for(var s=i(t),c=o.f,l=a.f,u=0;u<s.length;u++){var d=s[u];!r(e,d)&&!(n&&r(n,d))&&c(e,d,l(t,d))}}},2211(e,t,n){e.exports=!n(9039)(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},2529(e){e.exports=function(e,t){return{value:e,done:t}}},6699(e,t,n){var r=n(3724),i=n(4913),a=n(6980);e.exports=r?function(e,t,n){return i.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},6980(e){e.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}},4659(e,t,n){var r=n(3724),i=n(4913),a=n(6980);e.exports=function(e,t,n){r?i.f(e,t,a(0,n)):e[t]=n}},2106(e,t,n){var r=n(283),i=n(4913);e.exports=function(e,t,n){return n.get&&r(n.get,t,{getter:!0}),n.set&&r(n.set,t,{setter:!0}),i.f(e,t,n)}},6840(e,t,n){var r=n(4901),i=n(4913),a=n(283),o=n(9433);e.exports=function(e,t,n,s){s||={};var c=s.enumerable,l=s.name===void 0?t:s.name;if(r(n)&&a(n,l,s),s.global)c?e[t]=n:o(t,n);else{try{s.unsafe?e[t]&&(c=!0):delete e[t]}catch{}c?e[t]=n:i.f(e,t,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},6279(e,t,n){var r=n(6840);e.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}},9433(e,t,n){var r=n(4576),i=Object.defineProperty;e.exports=function(e,t){try{i(r,e,{value:t,configurable:!0,writable:!0})}catch{r[e]=t}return t}},3724(e,t,n){e.exports=!n(9039)(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})},4483(e,t,n){var r=n(4576),i=n(9429),a=n(1548),o=r.structuredClone,s=r.ArrayBuffer,c=r.MessageChannel,l=!1,u,d,f,p;if(a)l=function(e){o(e,{transfer:[e]})};else if(s)try{c||(u=i(`worker_threads`),u&&(c=u.MessageChannel)),c&&(d=new c,f=new s(2),p=function(e){d.port1.postMessage(null,[e])},f.byteLength===2&&(p(f),f.byteLength===0&&(l=p)))}catch{}e.exports=l},4055(e,t,n){var r=n(4576),i=n(34),a=r.document,o=i(a)&&i(a.createElement);e.exports=function(e){return o?a.createElement(e):{}}},6837(e){var t=TypeError,n=9007199254740991;e.exports=function(e){if(e>n)throw new t(`Maximum allowed index exceeded`);return e}},8727(e){e.exports=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`]},6193(e,t,n){e.exports=n(4215)===`NODE`},2839(e,t,n){var r=n(4576).navigator,i=r&&r.userAgent;e.exports=i?String(i):``},9519(e,t,n){var r=n(4576),i=n(2839),a=r.process,o=r.Deno,s=a&&a.versions||o&&o.version,c=s&&s.v8,l,u;c&&(l=c.split(`.`),u=l[0]>0&&l[0]<4?1:+(l[0]+l[1])),!u&&i&&(l=i.match(/Edge\\/(\\d+)/),(!l||l[1]>=74)&&(l=i.match(/Chrome\\/(\\d+)/),l&&(u=+l[1]))),e.exports=u},4215(e,t,n){var r=n(4576),i=n(2839),a=n(2195),o=function(e){return i.slice(0,e.length)===e};e.exports=(function(){return o(`Bun/`)?`BUN`:o(`Cloudflare-Workers`)?`CLOUDFLARE`:o(`Deno/`)?`DENO`:o(`Node.js/`)?`NODE`:r.Bun&&typeof Bun.version==`string`?`BUN`:r.Deno&&typeof Deno.version==`object`?`DENO`:a(r.process)===`process`?`NODE`:r.window&&r.document?`BROWSER`:`REST`})()},6518(e,t,n){var r=n(4576),i=n(7347).f,a=n(6699),o=n(6840),s=n(9433),c=n(7740),l=n(2796);e.exports=function(e,t){var n=e.target,u=e.global,d=e.stat,f,p=u?r:d?r[n]||s(n,{}):r[n]&&r[n].prototype,m,h,g,_;if(p)for(m in t){if(g=t[m],e.dontCallGetSet?(_=i(p,m),h=_&&_.value):h=p[m],f=l(u?m:n+(d?`.`:`#`)+m,e.forced),!f&&h!==void 0){if(typeof g==typeof h)continue;c(g,h)}(e.sham||h&&h.sham)&&a(g,`sham`,!0),o(p,m,g,e)}}},9039(e){e.exports=function(e){try{return!!e()}catch{return!0}}},8745(e,t,n){var r=n(616),i=Function.prototype,a=i.apply,o=i.call;e.exports=typeof Reflect==`object`&&Reflect.apply||(r?o.bind(a):function(){return o.apply(a,arguments)})},6080(e,t,n){var r=n(7476),i=n(9306),a=n(616),o=r(r.bind);e.exports=function(e,t){return i(e),t===void 0?e:a?o(e,t):function(){return e.apply(t,arguments)}}},616(e,t,n){e.exports=!n(9039)(function(){var e=function(){}.bind();return typeof e!=`function`||e.hasOwnProperty(`prototype`)})},9565(e,t,n){var r=n(616),i=Function.prototype.call;e.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},350(e,t,n){var r=n(3724),i=n(9297),a=Function.prototype,o=r&&Object.getOwnPropertyDescriptor,s=i(a,`name`);e.exports={EXISTS:s,PROPER:s&&function(){}.name===`something`,CONFIGURABLE:s&&(!r||r&&o(a,`name`).configurable)}},6706(e,t,n){var r=n(9504),i=n(9306);e.exports=function(e,t,n){try{return r(i(Object.getOwnPropertyDescriptor(e,t)[n]))}catch{}}},7476(e,t,n){var r=n(2195),i=n(9504);e.exports=function(e){if(r(e)===`Function`)return i(e)}},9504(e,t,n){var r=n(616),i=Function.prototype,a=i.call,o=r&&i.bind.bind(a,a);e.exports=r?o:function(e){return function(){return a.apply(e,arguments)}}},944(e){var t=TypeError;e.exports=function(e){var n=e&&e.alphabet;if(n===void 0||n===`base64`||n===`base64url`)return n||`base64`;throw new t("Incorrect `alphabet` option")}},9429(e,t,n){var r=n(4576),i=n(6193);e.exports=function(e){if(i){try{return r.process.getBuiltinModule(e)}catch{}try{return Function(`return require("`+e+`")`)()}catch{}}}},7751(e,t,n){var r=n(4576),i=n(4901),a=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?a(r[e]):r[e]&&r[e][t]}},1767(e){e.exports=function(e){return{iterator:e,next:e.next,done:!1}}},8646(e,t,n){var r=n(9565),i=n(8551),a=n(1767),o=n(851);e.exports=function(e,t){(!t||typeof e!=`string`)&&i(e);var n=o(e);return a(i(n===void 0?e:r(n,e)))}},851(e,t,n){var r=n(6955),i=n(5966),a=n(4117),o=n(6269),s=n(8227)(`iterator`);e.exports=function(e){if(!a(e))return i(e,s)||i(e,`@@iterator`)||o[r(e)]}},81(e,t,n){var r=n(9565),i=n(9306),a=n(8551),o=n(6823),s=n(851),c=TypeError;e.exports=function(e,t){var n=arguments.length<2?s(e):t;if(i(n))return a(r(n,e));throw new c(o(e)+` is not iterable`)}},5966(e,t,n){var r=n(9306),i=n(4117);e.exports=function(e,t){var n=e[t];return i(n)?void 0:r(n)}},3789(e,t,n){var r=n(9306),i=n(8551),a=n(9565),o=n(1291),s=n(1767),c=`Invalid size`,l=RangeError,u=TypeError,d=Math.max,f=function(e,t){this.set=e,this.size=d(t,0),this.has=r(e.has),this.keys=r(e.keys)};f.prototype={getIterator:function(){return s(i(a(this.keys,this.set)))},includes:function(e){return a(this.has,this.set,e)}},e.exports=function(e){i(e);var t=+e.size;if(t!==t)throw new u(c);var n=o(t);if(n<0)throw new l(c);return new f(e,n)}},4576(e){var t=function(e){return e&&e.Math===Math&&e};e.exports=t(typeof globalThis==`object`&&globalThis)||t(typeof window==`object`&&window)||t(typeof self==`object`&&self)||t(typeof global==`object`&&global)||t(typeof this==`object`&&this)||(function(){return this})()||Function(`return this`)()},9297(e,t,n){var r=n(9504),i=n(8981),a=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return a(i(e),t)}},421(e){e.exports={}},397(e,t,n){e.exports=n(7751)(`document`,`documentElement`)},5917(e,t,n){var r=n(3724),i=n(9039),a=n(4055);e.exports=!r&&!i(function(){return Object.defineProperty(a(`div`),"a",{get:function(){return 7}}).a!==7})},7055(e,t,n){var r=n(9504),i=n(9039),a=n(2195),o=Object,s=r(``.split);e.exports=i(function(){return!o(`z`).propertyIsEnumerable(0)})?function(e){return a(e)===`String`?s(e,``):o(e)}:o},3706(e,t,n){var r=n(9504),i=n(4901),a=n(7629),o=r(Function.toString);i(a.inspectSource)||(a.inspectSource=function(e){return o(e)}),e.exports=a.inspectSource},1181(e,t,n){var r=n(8622),i=n(4576),a=n(34),o=n(6699),s=n(9297),c=n(7629),l=n(6119),u=n(421),d=`Object already initialized`,f=i.TypeError,p=i.WeakMap,m,h,g,_=function(e){return g(e)?h(e):m(e,{})},v=function(e){return function(t){var n;if(!a(t)||(n=h(t)).type!==e)throw new f(`Incompatible receiver, `+e+` required`);return n}};if(r||c.state){var y=c.state||=new p;y.get=y.get,y.has=y.has,y.set=y.set,m=function(e,t){if(y.has(e))throw new f(d);return t.facade=e,y.set(e,t),t},h=function(e){return y.get(e)||{}},g=function(e){return y.has(e)}}else{var b=l(`state`);u[b]=!0,m=function(e,t){if(s(e,b))throw new f(d);return t.facade=e,o(e,b,t),t},h=function(e){return s(e,b)?e[b]:{}},g=function(e){return s(e,b)}}e.exports={set:m,get:h,has:g,enforce:_,getterFor:v}},4209(e,t,n){var r=n(8227),i=n(6269),a=r(`iterator`),o=Array.prototype;e.exports=function(e){return e!==void 0&&(i.Array===e||o[a]===e)}},4376(e,t,n){var r=n(2195);e.exports=Array.isArray||function(e){return r(e)===`Array`}},1108(e,t,n){var r=n(6955);e.exports=function(e){var t=r(e);return t===`BigInt64Array`||t===`BigUint64Array`}},4901(e){var t=typeof document==`object`&&document.all;e.exports=t===void 0&&t!==void 0?function(e){return typeof e==`function`||e===t}:function(e){return typeof e==`function`}},2796(e,t,n){var r=n(9039),i=n(4901),a=/#|\\.prototype\\./,o=function(e,t){var n=c[s(e)];return n===u?!0:n===l?!1:i(t)?r(t):!!t},s=o.normalize=function(e){return String(e).replace(a,`.`).toLowerCase()},c=o.data={},l=o.NATIVE=`N`,u=o.POLYFILL=`P`;e.exports=o},4117(e){e.exports=function(e){return e==null}},34(e,t,n){var r=n(4901);e.exports=function(e){return typeof e==`object`?e!==null:r(e)}},3925(e,t,n){var r=n(34);e.exports=function(e){return r(e)||e===null}},6395(e){e.exports=!1},5810(e,t,n){var r=n(34),i=n(1181).get;e.exports=function(e){if(!r(e))return!1;var t=i(e);return!!t&&t.type===`RawJSON`}},757(e,t,n){var r=n(7751),i=n(4901),a=n(1625),o=n(7040),s=Object;e.exports=o?function(e){return typeof e==`symbol`}:function(e){var t=r(`Symbol`);return i(t)&&a(t.prototype,s(e))}},507(e,t,n){var r=n(9565);e.exports=function(e,t,n){for(var i=n?e:e.iterator,a=e.next,o,s;!(o=r(a,i)).done;)if(s=t(o.value),s!==void 0)return s}},2652(e,t,n){var r=n(6080),i=n(9565),a=n(8551),o=n(6823),s=n(4209),c=n(6198),l=n(1625),u=n(81),d=n(851),f=n(9539),p=TypeError,m=function(e,t){this.stopped=e,this.result=t},h=m.prototype;e.exports=function(e,t,n){var g=n&&n.that,_=!!(n&&n.AS_ENTRIES),v=!!(n&&n.IS_RECORD),y=!!(n&&n.IS_ITERATOR),b=!!(n&&n.INTERRUPTED),x=r(t,g),S,C,w,T,E,D,O,ee=function(e){var t=S;return S=void 0,t&&f(t,`normal`),new m(!0,e)},te=function(e){return _?(a(e),b?x(e[0],e[1],ee):x(e[0],e[1])):b?x(e,ee):x(e)};if(v)S=e.iterator;else if(y)S=e;else{if(C=d(e),!C)throw new p(o(e)+` is not iterable`);if(s(C)){for(w=0,T=c(e);T>w;w++)if(E=te(e[w]),E&&l(h,E))return E;return new m(!1)}S=u(e,C)}for(D=v?e.next:S.next;!(O=i(D,S)).done;){var ne=O.value;try{E=te(ne)}catch(e){if(S)f(S,`throw`,e);else throw e}if(typeof E==`object`&&E&&l(h,E))return E}return new m(!1)}},1385(e,t,n){var r=n(9539);e.exports=function(e,t,n){for(var i=e.length-1;i>=0;i--)if(e[i]!==void 0)try{n=r(e[i].iterator,t,n)}catch(e){t=`throw`,n=e}if(t===`throw`)throw n;return n}},9539(e,t,n){var r=n(9565),i=n(8551),a=n(5966);e.exports=function(e,t,n){var o,s;i(e);try{if(o=a(e,`return`),!o){if(t===`throw`)throw n;return n}o=r(o,e)}catch(e){s=!0,o=e}if(t===`throw`)throw n;if(s)throw o;return i(o),n}},9462(e,t,n){var r=n(9565),i=n(2360),a=n(6699),o=n(6279),s=n(8227),c=n(1181),l=n(5966),u=n(7657).IteratorPrototype,d=n(2529),f=n(9539),p=n(1385),m=s(`toStringTag`),h=`IteratorHelper`,g=`WrapForValidIterator`,_=`normal`,v=`throw`,y=c.set,b=function(e){var t=c.getterFor(e?g:h);return o(i(u),{next:function(){var n=t(this);if(e)return n.nextHandler();if(n.done)return d(void 0,!0);try{var r=n.nextHandler();return n.returnHandlerResult?r:d(r,n.done)}catch(e){throw n.done=!0,e}},return:function(){var n=t(this),i=n.iterator,a=n.done;if(n.done=!0,e){var o=l(i,`return`);return o?r(o,i):d(void 0,!0)}if(a)return d(void 0,!0);if(n.inner)try{f(n.inner.iterator,_)}catch(e){return f(i,v,e)}if(n.openIters)try{p(n.openIters,_)}catch(e){if(i)return f(i,v,e);throw e}return i&&f(i,_),d(void 0,!0)}})},x=b(!0),S=b(!1);a(S,m,`Iterator Helper`),e.exports=function(e,t,n){var r=function(r,i){i?(i.iterator=r.iterator,i.next=r.next):i=r,i.type=t?g:h,i.returnHandlerResult=!!n,i.nextHandler=e,i.counter=0,i.done=!1,y(this,i)};return r.prototype=t?x:S,r}},684(e){e.exports=function(e,t){var n=typeof Iterator==`function`&&Iterator.prototype[e];if(n)try{n.call({next:null},t).next()}catch{return!0}}},4549(e,t,n){var r=n(4576);e.exports=function(e,t){var n=r.Iterator,i=n&&n.prototype,a=i&&i[e],o=!1;if(a)try{a.call({next:function(){return{done:!0}},return:function(){o=!0}},-1)}catch(e){e instanceof t||(o=!1)}if(!o)return a}},7657(e,t,n){var r=n(9039),i=n(4901),a=n(34),o=n(2360),s=n(2787),c=n(6840),l=n(8227),u=n(6395),d=l(`iterator`),f=!1,p,m,h;[].keys&&(h=[].keys(),`next`in h?(m=s(s(h)),m!==Object.prototype&&(p=m)):f=!0),!a(p)||r(function(){var e={};return p[d].call(e)!==e})?p={}:u&&(p=o(p)),i(p[d])||c(p,d,function(){return this}),e.exports={IteratorPrototype:p,BUGGY_SAFARI_ITERATORS:f}},6269(e){e.exports={}},6198(e,t,n){var r=n(8014);e.exports=function(e){return r(e.length)}},283(e,t,n){var r=n(9504),i=n(9039),a=n(4901),o=n(9297),s=n(3724),c=n(350).CONFIGURABLE,l=n(3706),u=n(1181),d=u.enforce,f=u.get,p=String,m=Object.defineProperty,h=r(``.slice),g=r(``.replace),_=r([].join),v=s&&!i(function(){return m(function(){},`length`,{value:8}).length!==8}),y=String(String).split(`String`),b=e.exports=function(e,t,n){h(p(t),0,7)===`Symbol(`&&(t=`[`+g(p(t),/^Symbol\\(([^)]*)\\).*$/,`$1`)+`]`),n&&n.getter&&(t=`get `+t),n&&n.setter&&(t=`set `+t),(!o(e,`name`)||c&&e.name!==t)&&(s?m(e,`name`,{value:t,configurable:!0}):e.name=t),v&&n&&o(n,`arity`)&&e.length!==n.arity&&m(e,`length`,{value:n.arity});try{n&&o(n,`constructor`)&&n.constructor?s&&m(e,`prototype`,{writable:!1}):e.prototype&&=void 0}catch{}var r=d(e);return o(r,`source`)||(r.source=_(y,typeof t==`string`?t:``)),e};Function.prototype.toString=b(function(){return a(this)&&f(this).source||l(this)},`toString`)},2248(e,t,n){var r=n(9504),i=Map.prototype;e.exports={Map,set:r(i.set),get:r(i.get),has:r(i.has),remove:r(i.delete),proto:i}},741(e){var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?n:t)(r)}},7819(e,t,n){e.exports=!n(9039)(function(){var e=`9007199254740993`,t=JSON.rawJSON(e);return!JSON.isRawJSON(t)||JSON.stringify(t)!==e})},6043(e,t,n){var r=n(9306),i=TypeError,a=function(e){var t,n;this.promise=new e(function(e,r){if(t!==void 0||n!==void 0)throw new i(`Bad Promise constructor`);t=e,n=r}),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new a(e)}},2360(e,t,n){var r=n(8551),i=n(6801),a=n(8727),o=n(421),s=n(397),c=n(4055),l=n(6119),u=`>`,d=`<`,f=`prototype`,p=`script`,m=l(`IE_PROTO`),h=function(){},g=function(e){return d+p+u+e+d+`/`+p+u},_=function(e){e.write(g(``)),e.close();var t=e.parentWindow.Object;return e=null,t},v=function(){var e=c(`iframe`),t=`java`+p+`:`,n;return e.style.display=`none`,s.appendChild(e),e.src=String(t),n=e.contentWindow.document,n.open(),n.write(g(`document.F=Object`)),n.close(),n.F},y,b=function(){try{y=new ActiveXObject(`htmlfile`)}catch{}b=typeof document<`u`?document.domain&&y?_(y):v():_(y);for(var e=a.length;e--;)delete b[f][a[e]];return b()};o[m]=!0,e.exports=Object.create||function(e,t){var n;return e===null?n=b():(h[f]=r(e),n=new h,h[f]=null,n[m]=e),t===void 0?n:i.f(n,t)}},6801(e,t,n){var r=n(3724),i=n(8686),a=n(4913),o=n(8551),s=n(5397),c=n(1072);t.f=r&&!i?Object.defineProperties:function(e,t){o(e);for(var n=s(t),r=c(t),i=r.length,l=0,u;i>l;)a.f(e,u=r[l++],n[u]);return e}},4913(e,t,n){var r=n(3724),i=n(5917),a=n(8686),o=n(8551),s=n(6969),c=TypeError,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,d=`enumerable`,f=`configurable`,p=`writable`;t.f=r?a?function(e,t,n){if(o(e),t=s(t),o(n),typeof e==`function`&&t===`prototype`&&`value`in n&&p in n&&!n[p]){var r=u(e,t);r&&r[p]&&(e[t]=n.value,n={configurable:f in n?n[f]:r[f],enumerable:d in n?n[d]:r[d],writable:!1})}return l(e,t,n)}:l:function(e,t,n){if(o(e),t=s(t),o(n),i)try{return l(e,t,n)}catch{}if(`get`in n||`set`in n)throw new c(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},7347(e,t,n){var r=n(3724),i=n(9565),a=n(8773),o=n(6980),s=n(5397),c=n(6969),l=n(9297),u=n(5917),d=Object.getOwnPropertyDescriptor;t.f=r?d:function(e,t){if(e=s(e),t=c(t),u)try{return d(e,t)}catch{}if(l(e,t))return o(!i(a.f,e,t),e[t])}},8480(e,t,n){var r=n(1828),i=n(8727).concat(`length`,`prototype`);t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},3717(e,t){t.f=Object.getOwnPropertySymbols},2787(e,t,n){var r=n(9297),i=n(4901),a=n(8981),o=n(6119),s=n(2211),c=o(`IE_PROTO`),l=Object,u=l.prototype;e.exports=s?l.getPrototypeOf:function(e){var t=a(e);if(r(t,c))return t[c];var n=t.constructor;return i(n)&&t instanceof n?n.prototype:t instanceof l?u:null}},1625(e,t,n){e.exports=n(9504)({}.isPrototypeOf)},1828(e,t,n){var r=n(9504),i=n(9297),a=n(5397),o=n(9617).indexOf,s=n(421),c=r([].push);e.exports=function(e,t){var n=a(e),r=0,l=[],u;for(u in n)!i(s,u)&&i(n,u)&&c(l,u);for(;t.length>r;)i(n,u=t[r++])&&(~o(l,u)||c(l,u));return l}},1072(e,t,n){var r=n(1828),i=n(8727);e.exports=Object.keys||function(e){return r(e,i)}},8773(e,t){var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor;t.f=r&&!n.call({1:2},1)?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},2967(e,t,n){var r=n(6706),i=n(34),a=n(7750),o=n(3506);e.exports=Object.setPrototypeOf||(`__proto__`in{}?function(){var e=!1,t={},n;try{n=r(Object.prototype,`__proto__`,`set`),n(t,[]),e=t instanceof Array}catch{}return function(t,r){return a(t),o(r),i(t)&&(e?n(t,r):t.__proto__=r),t}}():void 0)},4270(e,t,n){var r=n(9565),i=n(4901),a=n(34),o=TypeError;e.exports=function(e,t){var n,s;if(t===`string`&&i(n=e.toString)&&!a(s=r(n,e))||i(n=e.valueOf)&&!a(s=r(n,e))||t!==`string`&&i(n=e.toString)&&!a(s=r(n,e)))return s;throw new o(`Can\'t convert object to primitive value`)}},5031(e,t,n){var r=n(7751),i=n(9504),a=n(8480),o=n(3717),s=n(8551),c=i([].concat);e.exports=r(`Reflect`,`ownKeys`)||function(e){var t=a.f(s(e)),n=o.f;return n?c(t,n(e)):t}},8235(e,t,n){var r=n(9504),i=n(9297),a=SyntaxError,o=parseInt,s=String.fromCharCode,c=r(``.charAt),l=r(``.slice),u=r(/./.exec),d={\'\\\\"\':`"`,"\\\\\\\\":`\\\\`,"\\\\/":`/`,"\\\\b":`\\b`,"\\\\f":`\\f`,"\\\\n":`\n`,"\\\\r":`\\r`,"\\\\t":` `},f=/^[\\da-f]{4}$/i,p=/^[\\u0000-\\u001F]$/;e.exports=function(e,t){for(var n=!0,r=``;t<e.length;){var m=c(e,t);if(m===`\\\\`){var h=l(e,t,t+2);if(i(d,h))r+=d[h],t+=2;else if(h===`\\\\u`){t+=2;var g=l(e,t,t+4);if(!u(f,g))throw new a(`Bad Unicode escape at: `+t);r+=s(o(g,16)),t+=4}else throw new a(`Unknown escape sequence: "`+h+`"`)}else if(m===`"`){n=!1,t++;break}else{if(u(p,m))throw new a(`Bad control character in string literal at: `+t);r+=m,t++}}if(n)throw new a(`Unterminated string at: `+t);return{value:r,end:t}}},1103(e){e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},7750(e,t,n){var r=n(4117),i=TypeError;e.exports=function(e){if(r(e))throw new i(`Can\'t call method on `+e);return e}},9286(e,t,n){var r=n(4402),i=n(8469),a=r.Set,o=r.add;e.exports=function(e){var t=new a;return i(e,function(e){o(t,e)}),t}},3440(e,t,n){var r=n(7080),i=n(4402),a=n(9286),o=n(5170),s=n(3789),c=n(8469),l=n(507),u=i.has,d=i.remove;e.exports=function(e){var t=r(this),n=s(e),i=a(t);return o(i)<=n.size?c(i,function(e){n.includes(e)&&d(i,e)}):l(n.getIterator(),function(e){u(i,e)&&d(i,e)}),i}},4402(e,t,n){var r=n(9504),i=Set.prototype;e.exports={Set,add:r(i.add),has:r(i.has),remove:r(i.delete),proto:i}},8750(e,t,n){var r=n(7080),i=n(4402),a=n(5170),o=n(3789),s=n(8469),c=n(507),l=i.Set,u=i.add,d=i.has;e.exports=function(e){var t=r(this),n=o(e),i=new l;return a(t)>n.size?c(n.getIterator(),function(e){d(t,e)&&u(i,e)}):s(t,function(e){n.includes(e)&&u(i,e)}),i}},4449(e,t,n){var r=n(7080),i=n(4402).has,a=n(5170),o=n(3789),s=n(8469),c=n(507),l=n(9539);e.exports=function(e){var t=r(this),n=o(e);if(a(t)<=n.size)return s(t,function(e){if(n.includes(e))return!1},!0)!==!1;var u=n.getIterator();return c(u,function(e){if(i(t,e))return l(u.iterator,`normal`,!1)})!==!1}},3838(e,t,n){var r=n(7080),i=n(5170),a=n(8469),o=n(3789);e.exports=function(e){var t=r(this),n=o(e);return i(t)>n.size?!1:a(t,function(e){if(!n.includes(e))return!1},!0)!==!1}},8527(e,t,n){var r=n(7080),i=n(4402).has,a=n(5170),o=n(3789),s=n(507),c=n(9539);e.exports=function(e){var t=r(this),n=o(e);if(a(t)<n.size)return!1;var l=n.getIterator();return s(l,function(e){if(!i(t,e))return c(l.iterator,`normal`,!1)})!==!1}},8469(e,t,n){var r=n(9504),i=n(507),a=n(4402),o=a.Set,s=a.proto,c=r(s.forEach),l=r(s.keys),u=l(new o).next;e.exports=function(e,t,n){return n?i({iterator:l(e),next:u},t):c(e,t)}},4916(e,t,n){var r=n(7751),i=function(e){return{size:e,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},a=function(e){return{size:e,has:function(){return!0},keys:function(){throw Error(`e`)}}};e.exports=function(e,t){var n=r(`Set`);try{new n()[e](i(0));try{return new n()[e](i(-1)),!1}catch{if(!t)return!0;try{return new n()[e](a(-1/0)),!1}catch{return t(new n([1,2])[e](a(1/0)))}}}catch{return!1}}},9835(e){e.exports=function(e){try{var t=new Set,n=t[e]({size:0,has:function(){return!0},keys:function(){return Object.defineProperty({},"next",{get:function(){return t.clear(),t.add(4),function(){return{done:!0}}}})}});return n.size===1&&n.values().next().value===4}catch{return!1}}},5170(e,t,n){e.exports=n(6706)(n(4402).proto,`size`,`get`)||function(e){return e.size}},3650(e,t,n){var r=n(7080),i=n(4402),a=n(9286),o=n(3789),s=n(507),c=i.add,l=i.has,u=i.remove;e.exports=function(e){var t=r(this),n=o(e).getIterator(),i=a(t);return s(n,function(e){l(t,e)?u(i,e):c(i,e)}),i}},4204(e,t,n){var r=n(7080),i=n(4402).add,a=n(9286),o=n(3789),s=n(507);e.exports=function(e){var t=r(this),n=o(e).getIterator(),c=a(t);return s(n,function(e){i(c,e)}),c}},6119(e,t,n){var r=n(5745),i=n(3392),a=r(`keys`);e.exports=function(e){return a[e]||(a[e]=i(e))}},7629(e,t,n){var r=n(6395),i=n(4576),a=n(9433),o=`__core-js_shared__`,s=e.exports=i[o]||a(o,{});(s.versions||=[]).push({version:`3.49.0`,mode:r?`pure`:`global`,copyright:`© 20132025 Denis Pushkarev (zloirock.ru), 20252026 CoreJS Company (core-js.io). All rights reserved.`,license:`https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE`,source:`https://github.com/zloirock/core-js`})},5745(e,t,n){var r=n(7629);e.exports=function(e,t){return r[e]||(r[e]=t||{})}},1548(e,t,n){var r=n(4576),i=n(9039),a=n(9519),o=n(4215),s=r.structuredClone;e.exports=!!s&&!i(function(){if(o===`DENO`&&a>92||o===`NODE`&&a>94||o===`BROWSER`&&a>97)return!1;var e=new ArrayBuffer(8),t=s(e,{transfer:[e]});return e.byteLength!==0||t.byteLength!==8})},4495(e,t,n){var r=n(9519),i=n(9039),a=n(4576).String;e.exports=!!Object.getOwnPropertySymbols&&!i(function(){var e=Symbol(`symbol detection`);return!a(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41})},5610(e,t,n){var r=n(1291),i=Math.max,a=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):a(n,t)}},5854(e,t,n){var r=n(2777),i=TypeError;e.exports=function(e){var t=r(e,`number`);if(typeof t==`number`)throw new i(`Can\'t convert number to bigint`);return BigInt(t)}},7696(e,t,n){var r=n(1291),i=n(8014),a=RangeError;e.exports=function(e){if(e===void 0)return 0;var t=r(e),n=i(t);if(t!==n)throw new a(`Wrong length or index`);return n}},5397(e,t,n){var r=n(7055),i=n(7750);e.exports=function(e){return r(i(e))}},1291(e,t,n){var r=n(741);e.exports=function(e){var t=+e;return t!==t||t===0?0:r(t)}},8014(e,t,n){var r=n(1291),i=Math.min;e.exports=function(e){var t=r(e);return t>0?i(t,9007199254740991):0}},8981(e,t,n){var r=n(7750),i=Object;e.exports=function(e){return i(r(e))}},2777(e,t,n){var r=n(9565),i=n(34),a=n(757),o=n(5966),s=n(4270),c=n(8227),l=TypeError,u=c(`toPrimitive`);e.exports=function(e,t){if(!i(e)||a(e))return e;var n=o(e,u),c;if(n){if(t===void 0&&(t=`default`),c=r(n,e,t),!i(c)||a(c))return c;throw new l(`Can\'t convert object to primitive value`)}return t===void 0&&(t=`number`),s(e,t)}},6969(e,t,n){var r=n(2777),i=n(757);e.exports=function(e){var t=r(e,`string`);return i(t)?t:t+``}},2140(e,t,n){var r=n(8227)(`toStringTag`),i={};i[r]=`z`,e.exports=String(i)===`[object z]`},655(e,t,n){var r=n(6955),i=String;e.exports=function(e){if(r(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return i(e)}},6823(e){var t=String;e.exports=function(e){try{return t(e)}catch{return`Object`}}},3392(e,t,n){var r=n(9504),i=0,a=Math.random(),o=r(1.1.toString);e.exports=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+o(++i+a,36)}},9143(e,t,n){var r=n(4576),i=n(9504),a=n(3972),o=n(3463),s=n(9297),c=n(2804),l=n(944),u=n(5169),d=c.c2i,f=c.c2iUrl,p=r.SyntaxError,m=r.TypeError,h=i(``.charAt),g=function(e,t){for(var n=e.length;t<n;t++){var r=h(e,t);if(r!==` `&&r!==` `&&r!==`\n`&&r!==`\\f`&&r!==`\\r`)break}return t},_=function(e,t,n){var r=e.length;r<4&&(e+=r===2?`AA`:`A`);var i=(t[h(e,0)]<<18)+(t[h(e,1)]<<12)+(t[h(e,2)]<<6)+t[h(e,3)],a=[i>>16&255,i>>8&255,i&255];if(r===2){if(n&&a[1]!==0)throw new p(`Extra bits`);return[a[0]]}if(r===3){if(n&&a[2]!==0)throw new p(`Extra bits`);return[a[0],a[1]]}return a},v=function(e,t,n){for(var r=t.length,i=0;i<r;i++)e[n+i]=t[i];return n+r};e.exports=function(e,t,n,r){o(e),a(t);var i=l(t)===`base64`?d:f,c=t?t.lastChunkHandling:void 0;if(c===void 0&&(c=`loose`),c!==`loose`&&c!==`strict`&&c!==`stop-before-partial`)throw new m("Incorrect `lastChunkHandling` option");n&&u(n.buffer);var y=e.length,b=n||[],x=0,S=0,C=``,w=0;if(r)for(;;){if(w=g(e,w),w===y){if(C.length>0){if(c===`stop-before-partial`)break;if(c===`loose`){if(C.length===1)throw new p(`Malformed padding: exactly one additional character`);x=v(b,_(C,i,!1),x)}else throw new p(`Missing padding`)}S=y;break}var T=h(e,w);if(++w,T===`=`){if(C.length<2)throw new p(`Padding is too early`);if(w=g(e,w),C.length===2){if(w===y){if(c===`stop-before-partial`)break;throw new p(`Malformed padding: only one =`)}h(e,w)===`=`&&(++w,w=g(e,w))}if(w<y)throw new p(`Unexpected character after padding`);x=v(b,_(C,i,c===`strict`),x),S=y;break}if(!s(i,T))throw new p(`Unexpected character`);var E=r-x;if(E===1&&C.length===2||E===2&&C.length===3||(C+=T,C.length===4&&(x=v(b,_(C,i,!1),x),C=``,S=w,x===r)))break}return{bytes:b,read:S,written:x}}},2303(e,t,n){var r=n(4576),i=n(9504),a=r.Uint8Array,o=r.SyntaxError,s=Math.min,c=i(``.match);e.exports=function(e,t){var n=e.length;if(n%2!=0)throw new o(`String should be an even number of characters`);for(var r=t?s(t.length,n/2):n/2,i=t||new a(r),l=c(e,/.{2}/g),u=0;u<r;u++){var d=+(`0x`+l[u]+`0`);if(d!==d)throw new o(`String should only contain hex characters`);i[u]=d>>4}return{bytes:i,read:u<<1}}},7416(e,t,n){var r=n(9039),i=n(8227),a=n(3724),o=n(6395),s=i(`iterator`);e.exports=!r(function(){var e=new URL(`b?a=1&b=2&c=3`,`https://a`),t=e.searchParams,n=new URLSearchParams(`a=1&a=2&b=3`),r=``;return e.pathname=`c%20d`,t.forEach(function(e,n){t.delete(`b`),r+=n+e}),n.delete(`a`,2),n.delete(`b`,void 0),o&&(!e.toJSON||!n.has(`a`,1)||n.has(`a`,2)||!n.has(`a`,void 0)||n.has(`b`))||!t.size&&(o||!a)||!t.sort||e.href!==`https://a/c%20d?a=1&c=3`||t.get(`c`)!==`3`||String(new URLSearchParams(`?a=1`))!==`a=1`||!t[s]||new URL(`https://a@b`).username!==`a`||new URLSearchParams(new URLSearchParams(`a=b`)).get(`a`)!==`b`||new URL(`https://тест`).host!==`xn--e1aybc`||new URL(`https://a#б`).hash!==`#%D0%B1`||r!==`a1c3`||new URL(`https://x`,void 0).host!==`x`})},7040(e,t,n){e.exports=n(4495)&&!Symbol.sham&&typeof Symbol.iterator==`symbol`},8686(e,t,n){var r=n(3724),i=n(9039);e.exports=r&&i(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})},2812(e){var t=TypeError;e.exports=function(e,n){if(e<n)throw new t(`Not enough arguments`);return e}},8622(e,t,n){var r=n(4576),i=n(4901),a=r.WeakMap;e.exports=i(a)&&/native code/.test(String(a))},4995(e,t,n){var r=n(9504),i=WeakMap.prototype;e.exports={WeakMap,set:r(i.set),get:r(i.get),has:r(i.has),remove:r(i.delete)}},8227(e,t,n){var r=n(4576),i=n(5745),a=n(9297),o=n(3392),s=n(4495),c=n(7040),l=r.Symbol,u=i(`wks`),d=c?l.for||l:l&&l.withoutSetter||o;e.exports=function(e){return a(u,e)||(u[e]=s&&a(l,e)?l[e]:d(`Symbol.`+e)),u[e]}},6573(e,t,n){var r=n(3724),i=n(2106),a=n(3238),o=ArrayBuffer.prototype;r&&!(`detached`in o)&&i(o,`detached`,{configurable:!0,get:function(){return a(this)}})},7936(e,t,n){var r=n(6518),i=n(5636);i&&r({target:`ArrayBuffer`,proto:!0},{transferToFixedLength:function(){return i(this,arguments.length?arguments[0]:void 0,!1)}})},8100(e,t,n){var r=n(6518),i=n(5636);i&&r({target:`ArrayBuffer`,proto:!0},{transfer:function(){return i(this,arguments.length?arguments[0]:void 0,!0)}})},4423(e,t,n){var r=n(6518),i=n(9617).includes,a=n(9039),o=n(6469),s=a(function(){return![,].includes()}),c=a(function(){return[,1].includes(void 0,1)});r({target:`Array`,proto:!0,forced:s||c},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o(`includes`)},4114(e,t,n){var r=n(6518),i=n(8981),a=n(6198),o=n(4527),s=n(6837);r({target:`Array`,proto:!0,arity:1,forced:n(9039)(function(){return[].push.call({length:4294967296},1)!==4294967297})||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}()},{push:function(e){var t=i(this),n=a(t),r=arguments.length;s(n+r);for(var c=0;c<r;c++)t[n]=arguments[c],n++;return o(t,n),n}})},8111(e,t,n){var r=n(6518),i=n(4576),a=n(679),o=n(8551),s=n(4901),c=n(2787),l=n(2106),u=n(4659),d=n(9039),f=n(9297),p=n(8227),m=n(7657).IteratorPrototype,h=n(3724),g=n(6395),_=`constructor`,v=`Iterator`,y=p(`toStringTag`),b=TypeError,x=i[v],S=g||!s(x)||x.prototype!==m||!d(function(){x({})}),C=function(){if(a(this,m),c(this)===m)throw new b(`Abstract class Iterator not directly constructable`)},w=function(e,t){h?l(m,e,{configurable:!0,get:function(){return t},set:function(t){if(o(this),this===m)throw new b(`You can\'t redefine this property`);f(this,e)?this[e]=t:u(this,e,t)}}):m[e]=t};f(m,y)||w(y,v),(S||!f(m,_)||m[_]===Object)&&w(_,C),C.prototype=m,r({global:!0,constructor:!0,forced:S},{Iterator:C})},1148(e,t,n){var r=n(6518),i=n(9565),a=n(2652),o=n(9306),s=n(8551),c=n(1767),l=n(9539),u=n(4549)(`every`,TypeError);r({target:`Iterator`,proto:!0,real:!0,forced:u},{every:function(e){s(this);try{o(e)}catch(e){l(this,`throw`,e)}if(u)return i(u,this,e);var t=c(this),n=0;return!a(t,function(t,r){if(!e(t,n++))return r()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},2489(e,t,n){var r=n(6518),i=n(9565),a=n(9306),o=n(8551),s=n(1767),c=n(9462),l=n(6319),u=n(6395),d=n(9539),f=n(684),p=n(4549),m=!u&&!f(`filter`,function(){}),h=!u&&!m&&p(`filter`,TypeError),g=u||m||h,_=c(function(){for(var e=this.iterator,t=this.predicate,n=this.next,r,a,s;;){if(r=o(i(n,e)),a=this.done=!!r.done,a)return;if(s=r.value,l(e,t,[s,this.counter++],!0))return s}});r({target:`Iterator`,proto:!0,real:!0,forced:g},{filter:function(e){o(this);try{a(e)}catch(e){d(this,`throw`,e)}return h?i(h,this,e):new _(s(this),{predicate:e})}})},116(e,t,n){var r=n(6518),i=n(9565),a=n(2652),o=n(9306),s=n(8551),c=n(1767),l=n(9539),u=n(4549)(`find`,TypeError);r({target:`Iterator`,proto:!0,real:!0,forced:u},{find:function(e){s(this);try{o(e)}catch(e){l(this,`throw`,e)}if(u)return i(u,this,e);var t=c(this),n=0;return a(t,function(t,r){if(e(t,n++))return r(t)},{IS_RECORD:!0,INTERRUPTED:!0}).result}})},531(e,t,n){var r=n(6518),i=n(9565),a=n(9306),o=n(8551),s=n(1767),c=n(8646),l=n(9462),u=n(9539),d=n(6395),f=n(684),p=n(4549);function m(){try{var e=Iterator.prototype.flatMap.call(new Map([[4,5]]).entries(),function(e){return e});e.next(),e.return()}catch{return!0}}var h=!d&&!f(`flatMap`,function(){}),g=!d&&!h&&p(`flatMap`,TypeError),_=d||h||g||m(),v=l(function(){for(var e=this.iterator,t=this.mapper,n,r;;){if(r=this.inner)try{if(n=o(i(r.next,r.iterator)),!n.done)return n.value;this.inner=null}catch(t){u(e,`throw`,t)}if(n=o(i(this.next,e)),this.done=!!n.done)return;try{this.inner=c(t(n.value,this.counter++),!1)}catch(t){u(e,`throw`,t)}}});r({target:`Iterator`,proto:!0,real:!0,forced:_},{flatMap:function(e){o(this);try{a(e)}catch(e){u(this,`throw`,e)}return g?i(g,this,e):new v(s(this),{mapper:e,inner:null})}})},7588(e,t,n){var r=n(6518),i=n(9565),a=n(2652),o=n(9306),s=n(8551),c=n(1767),l=n(9539),u=n(4549)(`forEach`,TypeError);r({target:`Iterator`,proto:!0,real:!0,forced:u},{forEach:function(e){s(this);try{o(e)}catch(e){l(this,`throw`,e)}if(u)return i(u,this,e);var t=c(this),n=0;a(t,function(t){e(t,n++)},{IS_RECORD:!0})}})},1701(e,t,n){var r=n(6518),i=n(9565),a=n(9306),o=n(8551),s=n(1767),c=n(9462),l=n(6319),u=n(9539),d=n(684),f=n(4549),p=n(6395),m=!p&&!d(`map`,function(){}),h=!p&&!m&&f(`map`,TypeError),g=p||m||h,_=c(function(){var e=this.iterator,t=o(i(this.next,e));if(!(this.done=!!t.done))return l(e,this.mapper,[t.value,this.counter++],!0)});r({target:`Iterator`,proto:!0,real:!0,forced:g},{map:function(e){o(this);try{a(e)}catch(e){u(this,`throw`,e)}return h?i(h,this,e):new _(s(this),{mapper:e})}})},3579(e,t,n){var r=n(6518),i=n(9565),a=n(2652),o=n(9306),s=n(8551),c=n(1767),l=n(9539),u=n(4549)(`some`,TypeError);r({target:`Iterator`,proto:!0,real:!0,forced:u},{some:function(e){s(this);try{o(e)}catch(e){l(this,`throw`,e)}if(u)return i(u,this,e);var t=c(this),n=0;return a(t,function(t,r){if(e(t,n++))return r()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},1806(e,t,n){var r=n(6518),i=n(8551),a=n(4659),o=n(2652),s=n(1767);r({target:`Iterator`,proto:!0,real:!0},{toArray:function(){var e=[],t=0;return o(s(i(this)),function(n){a(e,t++,n)},{IS_RECORD:!0}),e}})},3110(e,t,n){var r=n(6518),i=n(7751),a=n(8745),o=n(9565),s=n(9504),c=n(9039),l=n(4376),u=n(4901),d=n(5810),f=n(757),p=n(2195),m=n(655),h=n(7680),g=n(8235),_=n(3392),v=n(4495),y=n(7819),b=String,x=i(`JSON`,`stringify`),S=s(/./.exec),C=s(``.charAt),w=s(``.charCodeAt),T=s(``.replace),E=s(``.slice),D=s([].push),O=s(1.1.toString),ee=/[\\uD800-\\uDFFF]/g,te=/^[\\uD800-\\uDBFF]$/,ne=/^[\\uDC00-\\uDFFF]$/,k=_(),A=k.length,j=!v||c(function(){var e=i(`Symbol`)(`stringify detection`);return x([e])!==`[null]`||x({a:e})!==`{}`||x(Object(e))!==`{}`}),M=c(function(){return x(`\\udf06\\ud834`)!==`"\\\\udf06\\\\ud834"`||x(`\\udead`)!==`"\\\\udead"`}),N=j?function(e,t){var n=h(arguments),r=ie(t);if(!(!u(r)&&(e===void 0||f(e))))return n[1]=function(e,t){if(u(r)&&(t=o(r,this,b(e),t)),!f(t))return t},a(x,null,n)}:x,re=function(e,t,n){var r=C(n,t-1),i=C(n,t+1);return S(te,e)&&!S(ne,i)||S(ne,e)&&!S(te,r)?`\\\\u`+O(w(e,0),16):e},ie=function(e){if(u(e))return e;if(l(e)){for(var t=e.length,n=[],r=0;r<t;r++){var i=e[r];typeof i==`string`?D(n,i):(typeof i==`number`||p(i)===`Number`||p(i)===`String`)&&D(n,m(i))}var a=n.length,o=!0;return function(e,t){if(o)return o=!1,t;if(l(this))return t;for(var r=0;r<a;r++)if(n[r]===e)return t}}};x&&r({target:`JSON`,stat:!0,arity:3,forced:j||M||!y},{stringify:function(e,t,n){var r=ie(t),i=[],a=N(e,function(e,t){var n=u(r)?o(r,this,b(e),t):t;return!y&&d(n)?k+(D(i,n.rawJSON)-1):n},n);if(typeof a!=`string`||(M&&(a=T(a,ee,re)),y))return a;for(var s=``,c=a.length,l=0;l<c;l++){var f=C(a,l);if(f===`"`){var p=g(a,++l).end-1,m=E(a,l,p);s+=E(m,0,A)===k?i[E(m,A)]:`"`+m+`"`,l=p}else s+=f}return s}})},2731(e,t,n){var r=n(6518),i=n(9306),a=n(2248),o=n(6395),s=a.get,c=a.has,l=a.set;r({target:`Map`,proto:!0,real:!0,forced:o},{getOrInsertComputed:function(e,t){var n=c(this,e);if(i(t),n)return s(this,e);e===0&&1/e==-1/0&&(e=0);var r=t(e);return l(this,e,r),r}})},5367(e,t,n){var r=n(6518),i=n(2248),a=n(6395),o=i.get,s=i.has,c=i.set;r({target:`Map`,proto:!0,real:!0,forced:a},{getOrInsert:function(e,t){return s(this,e)?o(this,e):(c(this,e,t),t)}})},3068(e,t,n){var r=n(6518),i=n(9504),a=n(2652),o=RangeError,s=TypeError,c=1/0,l=NaN,u=Math.abs,d=Math.pow,f=i([].push),p=d(2,1023),m=d(2,53)-1,h=Number.MAX_VALUE,g=d(2,971),_={},v={},y={},b={},x={},S=function(e,t){var n=e+t;return{hi:n,lo:t-(n-e)}};r({target:`Math`,stat:!0},{sumPrecise:function(e){var t=[],n=0,r=b;switch(a(e,function(e){if(++n>m)throw new o(`Maximum allowed index exceeded`);if(typeof e!=`number`)throw new s(`Value is not a number`);r!==_&&(e===e?e===c?r=r===v?_:y:e===-c?r=r===y?_:v:(e!==0||1/e===c)&&(r===b||r===x)&&(r=x,f(t,e)):r=_)}),r){case _:return l;case v:return-c;case y:return c;case b:return-0}for(var i=[],d=0,C,w,T,E,D,O,ee=0;ee<t.length;ee++){C=t[ee];for(var te=0,ne=0;ne<i.length;ne++){if(w=i[ne],u(C)<u(w)&&(O=C,C=w,w=O),T=S(C,w),E=T.hi,D=T.lo,u(E)===c){var k=E===c?1:-1;d+=k,C=C-k*p-k*p,u(C)<u(w)&&(O=C,C=w,w=O),T=S(C,w),E=T.hi,D=T.lo}D!==0&&(i[te++]=D),C=E}i.length=te,C!==0&&f(i,C)}var A=i.length-1;if(E=0,D=0,d!==0){var j=A>=0?i[A]:0;if(A--,u(d)>1||d>0&&j>0||d<0&&j<0)return d>0?c:-c;if(T=S(d*p,j/2),E=T.hi,D=T.lo,D*=2,u(2*E)===c)return E>0?E===p&&D===-(g/2)&&A>=0&&i[A]<0?h:c:E===-p&&D===g/2&&A>=0&&i[A]>0?-h:-c;D!==0&&(i[++A]=D,D=0),E*=2}for(;A>=0&&(T=S(E,i[A--]),E=T.hi,D=T.lo,D===0););return A>=0&&(D<0&&i[A]<0||D>0&&i[A]>0)&&(w=D*2,C=E+w,w===C-E&&(E=C)),E}})},1689(e,t,n){var r=n(6518),i=n(4576),a=n(8745),o=n(7680),s=n(6043),c=n(9306),l=n(1103),u=i.Promise,d=!1;r({target:`Promise`,stat:!0,forced:!u||!u.try||l(function(){u.try(function(e){d=e===8},8)}).error||!d},{try:function(e){var t=arguments.length>1?o(arguments,1):[],n=s.f(this),r=l(function(){return a(c(e),void 0,t)});return(r.error?n.reject:n.resolve)(r.value),n.promise}})},4628(e,t,n){var r=n(6518),i=n(6043);r({target:`Promise`,stat:!0},{withResolvers:function(){var e=i.f(this);return{promise:e.promise,resolve:e.resolve,reject:e.reject}}})},7642(e,t,n){var r=n(6518),i=n(3440),a=n(9039);r({target:`Set`,proto:!0,real:!0,forced:!n(4916)(`difference`,function(e){return e.size===0})||a(function(){var e={size:1,has:function(){return!0},keys:function(){var e=0;return{next:function(){var n=e++>1;return t.has(1)&&t.clear(),{done:n,value:2}}}}},t=new Set([1,2,3,4]);return t.difference(e).size!==3})},{difference:i})},8004(e,t,n){var r=n(6518),i=n(9039),a=n(8750);r({target:`Set`,proto:!0,real:!0,forced:!n(4916)(`intersection`,function(e){return e.size===2&&e.has(1)&&e.has(2)})||i(function(){return String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))!==`3,2`})},{intersection:a})},3853(e,t,n){var r=n(6518),i=n(4449);r({target:`Set`,proto:!0,real:!0,forced:!n(4916)(`isDisjointFrom`,function(e){return!e})},{isDisjointFrom:i})},5876(e,t,n){var r=n(6518),i=n(3838);r({target:`Set`,proto:!0,real:!0,forced:!n(4916)(`isSubsetOf`,function(e){return e})},{isSubsetOf:i})},2475(e,t,n){var r=n(6518),i=n(8527);r({target:`Set`,proto:!0,real:!0,forced:!n(4916)(`isSupersetOf`,function(e){return!e})},{isSupersetOf:i})},5024(e,t,n){var r=n(6518),i=n(3650),a=n(9835);r({target:`Set`,proto:!0,real:!0,forced:!n(4916)(`symmetricDifference`)||!a(`symmetricDifference`)},{symmetricDifference:i})},1698(e,t,n){var r=n(6518),i=n(4204),a=n(9835);r({target:`Set`,proto:!0,real:!0,forced:!n(4916)(`union`)||!a(`union`)},{union:i})},9577(e,t,n){var r=n(4644),i=n(1108),a=n(6198),o=n(1291),s=n(5854),c=r.aTypedArray,l=r.getTypedArrayConstructor,u=r.exportTypedArrayMethod,d=RangeError,f=function(){try{new Int8Array(1).with(2,{valueOf:function(){throw 8}})}catch(e){return e===8}}(),p=f&&function(){try{new Int8Array(1).with(-.5,1)}catch{return!0}}();u(`with`,{with:function(e,t){var n=c(this),r=a(n),u=o(e),f=u<0?r+u:u,p=i(n)?s(t):+t;if(f>=r||f<0)throw new d(`Incorrect index`);for(var m=new(l(n))(r),h=0;h<r;h++)m[h]=h===f?p:n[h];return m}}.with,!f||p)},5213(e,t,n){var r=n(6518),i=n(4576),a=n(5370),o=n(9143),s=i.Uint8Array,c=!s||!s.fromBase64||!function(){try{s.fromBase64(`a`);return}catch{}try{s.fromBase64(``,null)}catch{return!0}}();s&&r({target:`Uint8Array`,stat:!0,forced:c},{fromBase64:function(e){return a(s,o(e,arguments.length>1?arguments[1]:void 0,null,9007199254740991).bytes)}})},6632(e,t,n){var r=n(6518),i=n(4576),a=n(9143),o=n(4154),s=i.Uint8Array,c=!s||!s.prototype.setFromBase64||!function(){var e=new s([255,255,255,255,255]);try{e.setFromBase64(``,null);return}catch{}try{e.setFromBase64(`a`);return}catch{}try{e.setFromBase64(`MjYyZg===`)}catch{return e[0]===50&&e[1]===54&&e[2]===50&&e[3]===255&&e[4]===255}}();s&&r({target:`Uint8Array`,proto:!0,forced:c},{setFromBase64:function(e){o(this);var t=a(e,arguments.length>1?arguments[1]:void 0,this,this.length);return{read:t.read,written:t.written}}})},4226(e,t,n){var r=n(6518),i=n(4576),a=n(3463),o=n(4154),s=n(5169),c=n(2303);function l(){try{new Uint8Array(new ArrayBuffer(16,{maxByteLength:1024})).setFromHex(`cafed00d`)}catch{return!0}}i.Uint8Array&&r({target:`Uint8Array`,proto:!0,forced:l()},{setFromHex:function(e){o(this),a(e),s(this.buffer);var t=c(e,this).read;return{read:t,written:t/2}}})},9486(e,t,n){var r=n(6518),i=n(4576),a=n(9504),o=n(3972),s=n(4154),c=n(5169),l=n(2804),u=n(944),d=l.i2c,f=l.i2cUrl,p=a(``.charAt),m=i.Uint8Array,h=!m||!m.prototype.toBase64||!function(){try{new m().toBase64(null)}catch{return!0}}();m&&r({target:`Uint8Array`,proto:!0,forced:h},{toBase64:function(){var e=s(this),t=arguments.length?o(arguments[0]):void 0,n=u(t)===`base64`?d:f,r=!!t&&!!t.omitPadding;c(this.buffer);for(var i=``,a=0,l=e.length,m,h=function(e){return p(n,m>>6*e&63)};a+2<l;a+=3)m=(e[a]<<16)+(e[a+1]<<8)+e[a+2],i+=h(3)+h(2)+h(1)+h(0);return a+2===l?(m=(e[a]<<16)+(e[a+1]<<8),i+=h(3)+h(2)+h(1)+(r?``:`=`)):a+1===l&&(m=e[a]<<16,i+=h(3)+h(2)+(r?``:`==`)),i}})},456(e,t,n){var r=n(6518),i=n(4576),a=n(9504),o=n(4154),s=n(5169),c=a(1.1.toString),l=a([].join),u=Array,d=i.Uint8Array,f=!d||!d.prototype.toHex||!(function(){try{return new d([255,255,255,255,255,255,255,255]).toHex()===`ffffffffffffffff`}catch{return!1}})();d&&r({target:`Uint8Array`,proto:!0,forced:f},{toHex:function(){o(this),s(this.buffer);for(var e=u(this.length),t=0,n=this.length;t<n;t++){var r=c(this[t],16);e[t]=r.length===1?`0`+r:r}return l(e,``)}})},9452(e,t,n){var r=n(6518),i=n(9306),a=n(6557),o=n(4328),s=n(4995),c=n(6395),l=s.get,u=s.has,d=s.set;r({target:`WeakMap`,proto:!0,real:!0,forced:c||!function(){try{WeakMap.prototype.getOrInsertComputed&&new WeakMap().getOrInsertComputed(1,function(){throw 1})}catch(e){return e instanceof TypeError}}()},{getOrInsertComputed:function(e,t){if(c||a(this),o(e),i(t),u(this,e))return l(this,e);var n=t(e);return d(this,e,n),n}})},8454(e,t,n){var r=n(6518),i=n(4995),a=n(6395),o=i.get,s=i.has,c=i.set;r({target:`WeakMap`,proto:!0,real:!0,forced:a},{getOrInsert:function(e,t){return s(this,e)?o(this,e):(c(this,e,t),t)}})},3611(e,t,n){var r=n(6518),i=n(4576),a=n(2106),o=n(3724),s=TypeError,c=Object.defineProperty,l=i.self!==i;try{if(o){var u=Object.getOwnPropertyDescriptor(i,`self`);(l||!u||!u.get||!u.enumerable)&&a(i,`self`,{get:function(){return i},set:function(e){if(this!==i)throw new s(`Illegal invocation`);c(i,`self`,{value:e,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}else r({global:!0,simple:!0,forced:l},{self:i})}catch{}},4603(e,t,n){var r=n(6840),i=n(9504),a=n(655),o=n(2812),s=URLSearchParams,c=s.prototype,l=i(c.append),u=i(c.delete),d=i(c.forEach),f=i([].push),p=new s(`a=1&a=2&b=3`);p.delete(`a`,1),p.delete(`b`,void 0),p+``!=`a=2`&&r(c,`delete`,function(e){var t=arguments.length,n=t<2?void 0:arguments[1];if(t&&n===void 0)return u(this,e);var r=[];d(this,function(e,t){f(r,{key:t,value:e})}),o(t,1);for(var i=a(e),s=a(n),c=0,p=r.length,m;c<p;)m=r[c],u(this,m.key),c++;for(c=0;c<p;)m=r[c++],m.key===i&&m.value===s||l(this,m.key,m.value)},{enumerable:!0,unsafe:!0})},7566(e,t,n){var r=n(6840),i=n(9504),a=n(655),o=n(2812),s=URLSearchParams,c=s.prototype,l=i(c.getAll),u=i(c.has),d=new s(`a=1`);(d.has(`a`,2)||!d.has(`a`,void 0))&&r(c,`has`,function(e){var t=arguments.length,n=t<2?void 0:arguments[1];if(t&&n===void 0)return u(this,e);var r=l(this,e);o(t,1);for(var i=a(n),s=0;s<r.length;)if(r[s++]===i)return!0;return!1},{enumerable:!0,unsafe:!0})},8721(e,t,n){var r=n(3724),i=n(9504),a=n(2106),o=URLSearchParams.prototype,s=i(o.forEach);r&&!(`size`in o)&&a(o,`size`,{get:function(){var e=0;return s(this,function(){e++}),e},configurable:!0,enumerable:!0})},5781(e,t,n){var r=n(6518),i=n(7751),a=n(2812),o=n(655),s=n(7416),c=i(`URL`);r({target:`URL`,stat:!0,forced:!s},{parse:function(e){var t=a(arguments.length,1),n=o(e),r=t<2||arguments[1]===void 0?void 0:o(arguments[1]);try{return new c(n,r)}catch{return null}}})}},t={};function n(r){var i=t[r];if(i!==void 0)return i.exports;var a=t[r]={exports:{}};return e[r].call(a.exports,a,a.exports,n),a.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n(4114),n(6573),n(8100),n(7936),n(8111),n(2489),n(1701),n(3579),n(5367),n(2731),n(4628),n(7642),n(8004),n(3853),n(5876),n(2475),n(5024),n(1698),n(9577),n(6632),n(4226),n(9486),n(456),n(3611),n(4423),n(5781);let r=typeof process==`object`&&process+``==`[object process]`&&!process.versions.nw&&!(process.versions.electron&&process.type&&process.type!==`browser`),i=[1/0,1/0,-1/0,-1/0],a=new Float32Array(i),o=[.001,0,0,.001,0,0],s=1.35,c=.35,l=c/s,u=`http://www.w3.org/2000/svg`,d={ANY:1,DISPLAY:2,PRINT:4,SAVE:8,ANNOTATIONS_FORMS:16,ANNOTATIONS_STORAGE:32,ANNOTATIONS_DISABLE:64,IS_EDITING:128,OPLIST:256},f=`pdfjs_internal_editor_`,p={DISABLE:-1,NONE:0,FREETEXT:3,HIGHLIGHT:9,STAMP:13,INK:15,POPUP:16,SIGNATURE:101,COMMENT:102},m={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048},h={TRIANGLES:1,LATTICE:2,PATCH:3},g={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4},_={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3},v={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},y={GROUP:`Group`,REPLY:`R`},b={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512},x={READONLY:1,REQUIRED:2,NOEXPORT:4,MULTILINE:4096,PASSWORD:8192,NOTOGGLETOOFF:16384,RADIO:32768,PUSHBUTTON:65536,COMBO:131072,EDIT:262144,SORT:524288,FILESELECT:1048576,MULTISELECT:2097152,DONOTSPELLCHECK:4194304,DONOTSCROLL:8388608,COMB:16777216,RICHTEXT:33554432,RADIOSINUNISON:33554432,COMMITONSELCHANGE:67108864},S={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5},C={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`},w={WC:`WillClose`,WS:`WillSave`,DS:`DidSave`,WP:`WillPrint`,DP:`DidPrint`},T={O:`PageOpen`,C:`PageClose`},E={ERRORS:0,WARNINGS:1,INFOS:5},D={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotation:80,endAnnotation:81,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91,setStrokeTransparent:92,setFillTransparent:93,rawFillPath:94},O={moveTo:0,lineTo:1,curveTo:2,quadraticCurveTo:3,closePath:4},ee={NEED_PASSWORD:1,INCORRECT_PASSWORD:2},te=E.WARNINGS;function ne(e){Number.isInteger(e)&&(te=e)}function k(){return te}function A(e){te>=E.INFOS&&console.info(`Info: ${e}`)}function j(e){te>=E.WARNINGS&&console.warn(`Warning: ${e}`)}function M(e){throw Error(e)}function N(e,t){e||M(t)}function re(e){switch(e?.protocol){case`http:`:case`https:`:case`ftp:`:case`mailto:`:case`tel:`:return!0;default:return!1}}function ie(e,t=null,n=null){if(!e)return null;if(n&&typeof e==`string`&&(n.addDefaultProtocol&&e.startsWith(`www.`)&&e.match(/\\./g)?.length>=2&&(e=`http://${e}`),n.tryConvertEncoding))try{e=_e(e)}catch{}let r=t?URL.parse(e,t):URL.parse(e);return re(r)?r:null}function ae(e){return e.substring(e.lastIndexOf(`/`)+1)}function P(e,t,n,r=!1){return Object.defineProperty(e,t,{value:n,enumerable:!r,configurable:!0,writable:!1}),n}let oe=function(){function e(e,t){this.message=e,this.name=t}return e.prototype=Error(),e.constructor=e,e}();var se=class extends oe{constructor(e,t){super(e,`PasswordException`),this.code=t}},ce=class extends oe{constructor(e,t){super(e,`UnknownErrorException`),this.details=t}},le=class extends oe{constructor(e){super(e,`InvalidPDFException`)}},ue=class extends oe{constructor(e,t,n){super(e,`ResponseException`),this.status=t,this.missing=n}},F=class extends oe{constructor(e){super(e,`FormatError`)}},de=class extends oe{constructor(e){super(e,`AbortException`)}};function fe(e){(typeof e!=`object`||e?.length===void 0)&&M(`Invalid argument for bytesToString`);let t=e.length,n=8192;if(t<n)return String.fromCharCode.apply(null,e);let r=[];for(let i=0;i<t;i+=n){let a=Math.min(i+n,t),o=e.subarray(i,a);r.push(String.fromCharCode.apply(null,o))}return r.join(``)}function pe(e){typeof e!=`string`&&M(`Invalid argument for stringToBytes`);let t=e.length,n=new Uint8Array(t);for(let r=0;r<t;++r)n[r]=e.charCodeAt(r)&255;return n}function me(e){return Object.keys(e).length}var he=class{static get isLittleEndian(){let e=new Uint8Array(4);e[0]=1;let t=new Uint32Array(e.buffer,0,1);return P(this,`isLittleEndian`,t[0]===1)}static get isOffscreenCanvasSupported(){return P(this,`isOffscreenCanvasSupported`,typeof OffscreenCanvas<`u`)}static get isImageDecoderSupported(){return P(this,`isImageDecoderSupported`,typeof ImageDecoder<`u`)}static get isFloat16ArraySupported(){return P(this,`isFloat16ArraySupported`,typeof Float16Array<`u`)}static get isSanitizerSupported(){return P(this,`isSanitizerSupported`,typeof Sanitizer<`u`)}static get platform(){let{platform:e,userAgent:t}=navigator;return P(this,`platform`,{isAndroid:t.includes(`Android`),isLinux:e.includes(`Linux`),isMac:e.includes(`Mac`),isWindows:e.includes(`Win`),isFirefox:t.includes(`Firefox`)})}static get isCanvasFilterSupported(){let e;return this.isOffscreenCanvasSupported&&(e=new OffscreenCanvas(1,1).getContext(`2d`)),P(this,`isCanvasFilterSupported`,e?.filter!==void 0)}static get isAlphaColorInputSupported(){return P(this,`isAlphaColorInputSupported`,!1)}},ge=class{static get hexNums(){return P(this,`hexNums`,Array.from(Array(256).keys(),e=>e.toString(16).padStart(2,`0`)))}static makeHexColor(e,t,n){return`#${this.hexNums[e]}${this.hexNums[t]}${this.hexNums[n]}`}static transform(e,t){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]]}static multiplyByDOMMatrix(e,t){return[e[0]*t.a+e[2]*t.b,e[1]*t.a+e[3]*t.b,e[0]*t.c+e[2]*t.d,e[1]*t.c+e[3]*t.d,e[0]*t.e+e[2]*t.f+e[4],e[1]*t.e+e[3]*t.f+e[5]]}static applyTransform(e,t,n=0){let r=e[n],i=e[n+1];e[n]=r*t[0]+i*t[2]+t[4],e[n+1]=r*t[1]+i*t[3]+t[5]}static applyTransformToBezier(e,t,n=0){let r=t[0],i=t[1],a=t[2],o=t[3],s=t[4],c=t[5];for(let t=0;t<6;t+=2){let l=e[n+t],u=e[n+t+1];e[n+t]=l*r+u*a+s,e[n+t+1]=l*i+u*o+c}}static applyInverseTransform(e,t){let n=e[0],r=e[1],i=t[0]*t[3]-t[1]*t[2];e[0]=(n*t[3]-r*t[2]+t[2]*t[5]-t[4]*t[3])/i,e[1]=(-n*t[1]+r*t[0]+t[4]*t[1]-t[5]*t[0])/i}static axialAlignedBoundingBox(e,t,n){let r=t[0],i=t[1],a=t[2],o=t[3],s=t[4],c=t[5],l=e[0],u=e[1],d=e[2],f=e[3],p=r*l+s,m=p,h=r*d+s,g=h,_=o*u+c,v=_,y=o*f+c,b=y;if(i!==0||a!==0){let e=i*l,t=i*d,n=a*u,r=a*f;p+=n,g+=n,h+=r,m+=r,_+=e,b+=e,y+=t,v+=t}n[0]=Math.min(n[0],p,h,m,g),n[1]=Math.min(n[1],_,y,v,b),n[2]=Math.max(n[2],p,h,m,g),n[3]=Math.max(n[3],_,y,v,b)}static inverseTransform(e){let t=e[0]*e[3]-e[1]*e[2];return[e[3]/t,-e[1]/t,-e[2]/t,e[0]/t,(e[2]*e[5]-e[4]*e[3])/t,(e[4]*e[1]-e[5]*e[0])/t]}static singularValueDecompose2dScale(e,t){let n=e[0],r=e[1],i=e[2],a=e[3],o=n**2+r**2,s=n*i+r*a,c=i**2+a**2,l=(o+c)/2,u=Math.sqrt(l**2-(o*c-s**2));t[0]=Math.sqrt(l+u||1),t[1]=Math.sqrt(l-u||1)}static normalizeRect(e){let t=e.slice(0);return e[0]>e[2]&&(t[0]=e[2],t[2]=e[0]),e[1]>e[3]&&(t[1]=e[3],t[3]=e[1]),t}static intersect(e,t){let n=Math.max(Math.min(e[0],e[2]),Math.min(t[0],t[2])),r=Math.min(Math.max(e[0],e[2]),Math.max(t[0],t[2]));if(n>r)return null;let i=Math.max(Math.min(e[1],e[3]),Math.min(t[1],t[3])),a=Math.min(Math.max(e[1],e[3]),Math.max(t[1],t[3]));return i>a?null:[n,i,r,a]}static pointBoundingBox(e,t,n){n[0]=Math.min(n[0],e),n[1]=Math.min(n[1],t),n[2]=Math.max(n[2],e),n[3]=Math.max(n[3],t)}static rectBoundingBox(e,t,n,r,i){i[0]=Math.min(i[0],e,n),i[1]=Math.min(i[1],t,r),i[2]=Math.max(i[2],e,n),i[3]=Math.max(i[3],t,r)}static#e(e,t,n,r,i,a,o,s,c,l){if(c<=0||c>=1)return;let u=1-c,d=c*c,f=d*c,p=u*(u*(u*e+3*c*t)+3*d*n)+f*r,m=u*(u*(u*i+3*c*a)+3*d*o)+f*s;l[0]=Math.min(l[0],p),l[1]=Math.min(l[1],m),l[2]=Math.max(l[2],p),l[3]=Math.max(l[3],m)}static#t(e,t,n,r,i,a,o,s,c,l,u,d){if(Math.abs(c)<1e-12){Math.abs(l)>=1e-12&&this.#e(e,t,n,r,i,a,o,s,-u/l,d);return}let f=l**2-4*u*c;if(f<0)return;let p=Math.sqrt(f),m=2*c;this.#e(e,t,n,r,i,a,o,s,(-l+p)/m,d),this.#e(e,t,n,r,i,a,o,s,(-l-p)/m,d)}static bezierBoundingBox(e,t,n,r,i,a,o,s,c){c[0]=Math.min(c[0],e,o),c[1]=Math.min(c[1],t,s),c[2]=Math.max(c[2],e,o),c[3]=Math.max(c[3],t,s),this.#t(e,n,i,o,t,r,a,s,3*(-e+3*(n-i)+o),6*(e-2*n+i),3*(n-e),c),this.#t(e,n,i,o,t,r,a,s,3*(-t+3*(r-a)+s),6*(t-2*r+a),3*(r-t),c)}};function _e(e){return decodeURIComponent(escape(e))}function ve(e){return unescape(encodeURIComponent(e))}function ye(e,t){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n++)if(e[n]!==t[n])return!1;return!0}let be=null,xe=null;function Se(e){return be||(be=/([\\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,xe=new Map([[`ſt`,`ſt`]])),e.replaceAll(be,(e,t,n)=>t?t.normalize(`NFKC`):xe.get(n))}function Ce(e,t,n){if(!Array.isArray(n)||n.length<2)return!1;let[r,i,...a]=n;if(!e(r)&&!Number.isInteger(r)||!t(i))return!1;let o=a.length,s=!0;switch(i.name){case`XYZ`:if(o<2||o>3)return!1;break;case`Fit`:case`FitB`:return o===0;case`FitH`:case`FitBH`:case`FitV`:case`FitBV`:if(o>1)return!1;break;case`FitR`:if(o!==4)return!1;s=!1;break;default:return!1}for(let e of a)if(!(typeof e==`number`||s&&e===null))return!1;return!0}let we=()=>[],Te=()=>new Map,Ee=()=>Object.create(null);typeof Blob.prototype.bytes!=`function`&&(Blob.prototype.bytes=async function(){return new Uint8Array(await this.arrayBuffer())}),typeof Response.prototype.bytes!=`function`&&(Response.prototype.bytes=async function(){return new Uint8Array(await this.arrayBuffer())}),n(1148);let De=Symbol(`CIRCULAR_REF`),Oe=Symbol(`EOF`),ke=Object.create(null),Ae=Object.create(null),je=Object.create(null);function Me(){ke=Object.create(null),Ae=Object.create(null),je=Object.create(null)}var I=class e{constructor(e){this.name=e}static get(t){return Ae[t]||=new e(t)}},Ne=class e{constructor(e){this.cmd=e}static get(t){return ke[t]||=new e(t)}};let Pe=function(){return Pe};var L=class e{__nonSerializable__=Pe;#e=new Map;objId=null;suppressEncryption=!1;xref;constructor(e=null){this.xref=e}assignXref(e){this.xref=e}get size(){return this.#e.size}#t(e,t,n,r){let i=this.#e.get(t);return i===void 0&&n!==void 0&&(i=this.#e.get(n),i===void 0&&r!==void 0&&(i=this.#e.get(r))),i instanceof R&&this.xref?e?this.xref.fetchAsync(i,this.suppressEncryption):this.xref.fetch(i,this.suppressEncryption):i}get(e,t,n){return this.#t(!1,e,t,n)}async getAsync(e,t,n){return this.#t(!0,e,t,n)}getArray(e,t,n){let r=this.#t(!1,e,t,n);if(Array.isArray(r)){r=r.slice();for(let e=0,t=r.length;e<t;e++)r[e]instanceof R&&this.xref&&(r[e]=this.xref.fetch(r[e],this.suppressEncryption))}return r}getRaw(e){return this.#e.get(e)}getKeys(){return this.#e.keys()}getRawValues(){return this.#e.values()}getRawEntries(){return this.#e.entries()}set(e,t){this.#e.set(e,t)}setIfNotExists(e,t){this.has(e)||this.set(e,t)}setIfNumber(e,t){typeof t==`number`&&this.set(e,t)}setIfArray(e,t){(Array.isArray(t)||ArrayBuffer.isView(t))&&this.set(e,t)}setIfDefined(e,t){t!=null&&this.set(e,t)}setIfName(e,t){typeof t==`string`?this.set(e,I.get(t)):t instanceof I&&this.set(e,t)}setIfDict(t,n){n instanceof e&&this.set(t,n)}has(e){return this.#e.has(e)}*[Symbol.iterator](){for(let[e,t]of this.#e)yield[e,t instanceof R&&this.xref?this.xref.fetch(t,this.suppressEncryption):t]}static get empty(){let t=new e(null);return t.set=(e,t)=>{M("Should not call `set` on the empty dictionary.")},P(this,`empty`,t)}static merge({xref:t,dictArray:n,mergeSubDicts:r=!1}){let i=new e(t),a=new Map;for(let t of n)if(t instanceof e)for(let[n,i]of t.getRawEntries()){let t=a.get(n);if(t===void 0)t=[],a.set(n,t);else if(!r||!(i instanceof e))continue;t.push(i)}for(let[n,r]of a){if(r.length===1||!(r[0]instanceof e)){i.set(n,r[0]);continue}let a=new e(t);for(let e of r)for(let[t,n]of e.getRawEntries())a.setIfNotExists(t,n);a.size>0&&i.set(n,a)}return a.clear(),i.size>0?i:e.empty}clone(){let t=new e(this.xref);for(let[e,n]of this.#e)t.set(e,n);return t}delete(e){this.#e.delete(e)}},R=class e{constructor(e,t){this.num=e,this.gen=t}toString(){return this.gen===0?`${this.num}R`:`${this.num}R${this.gen}`}static fromString(t){let n=je[t];if(n)return n;let r=/^(\\d+)R(\\d*)$/.exec(t);return!r||r[1]===`0`?null:je[t]=new e(parseInt(r[1],10),r[2]?parseInt(r[2],10):0)}static get(t,n){let r=n===0?`${t}R`:`${t}R${n}`;return je[r]||=new e(t,n)}},Fe=class{constructor(e=null){this._set=new Set(e?._set)}has(e){return this._set.has(e.toString())}put(e){this._set.add(e.toString())}remove(e){this._set.delete(e.toString())}[Symbol.iterator](){return this._set.values()}clear(){this._set.clear()}},Ie=class{_map=new Map;get size(){return this._map.size}get(e){return this._map.get(e.toString())}has(e){return this._map.has(e.toString())}put(e,t){this._map.set(e.toString(),t)}putAlias(e,t){this._map.set(e.toString(),this.get(t))}[Symbol.iterator](){return this._map.values()}clear(){this._map.clear()}*values(){yield*this._map.values()}*items(){for(let[e,t]of this._map)yield[R.fromString(e),t]}*keys(){for(let e of this._map.keys())yield R.fromString(e)}};function Le(e,t){return e instanceof I&&(t===void 0||e.name===t)}function Re(e,t){return e instanceof Ne&&(t===void 0||e.cmd===t)}function ze(e,t){return e instanceof L&&(t===void 0||Le(e.get(`Type`),t))}function Be(e,t){return e.num===t.num&&e.gen===t.gen}var Ve=class{get length(){M("Abstract getter `length` accessed")}get isEmpty(){M("Abstract getter `isEmpty` accessed")}get isDataLoaded(){return P(this,`isDataLoaded`,!0)}getByte(){M("Abstract method `getByte` called")}getBytes(e){M("Abstract method `getBytes` called")}async getImageData(e,t){return this.getBytes(e,t)}async asyncGetBytes(){M("Abstract method `asyncGetBytes` called")}get isAsync(){return!1}get isAsyncDecoder(){return!1}get isImageStream(){return!1}get canAsyncDecodeImageFromBuffer(){return!1}async getTransferableImage(){return null}peekByte(){let e=this.getByte();return e!==-1&&this.pos--,e}peekBytes(e){let t=this.getBytes(e);return this.pos-=t.length,t}getUint16(){let e=this.getByte(),t=this.getByte();return e===-1||t===-1?-1:(e<<8)+t}getInt32(){let e=this.getByte(),t=this.getByte(),n=this.getByte(),r=this.getByte();return(e<<24)+(t<<16)+(n<<8)+r}getByteRange(e,t){M("Abstract method `getByteRange` called")}getString(e){return fe(this.getBytes(e))}skip(e){this.pos+=e||1}reset(){M("Abstract method `reset` called")}moveStart(){M("Abstract method `moveStart` called")}makeSubStream(e,t,n=null){M("Abstract method `makeSubStream` called")}getBaseStreams(){return null}getOriginalStream(){return this.stream?.getOriginalStream()||this}};function He(e){return typeof e==`string`&&(!e||/^[\\x00-\\x7F]*$/.test(e))}function Ue(e){return e==null||He(e)?e:Ge(e,!0)}function We(e){let t=[];for(let n=0,r=e.length;n<r;n++){let r=e.charCodeAt(n);t.push(ge.hexNums[r>>8&255],ge.hexNums[r&255])}return t.join(``)}function Ge(e,t=!1){let n=[];t&&n.push(`þÿ`);for(let t=0,r=e.length;t<r;t++){let r=e.charCodeAt(t);n.push(String.fromCharCode(r>>8&255),String.fromCharCode(r&255))}return n.join(``)}let Ke=[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 qe(e,t=!1){if(e[0]>=`ï`){let n;if(e[0]===`þ`&&e[1]===`ÿ`?(n=`utf-16be`,e.length%2==1&&(e=e.slice(0,-1))):e[0]===`ÿ`&&e[1]===`þ`?(n=`utf-16le`,e.length%2==1&&(e=e.slice(0,-1))):e[0]===`ï`&&e[1]===`»`&&e[2]===`¿`&&(n=`utf-8`),n)try{let r=new TextDecoder(n,{fatal:!0}),i=pe(e),a=r.decode(i);return t||!a.includes(`\\x1B`)?a:a.replaceAll(/\\x1b[^\\x1b]*(?:\\x1b|$)/g,``)}catch(e){j(`stringToPDFString: "${e}".`)}}let n=[];for(let r=0,i=e.length;r<i;r++){let a=e.charCodeAt(r);if(!t&&a===27){for(;++r<i&&e.charCodeAt(r)!==27;);continue}let o=Ke[a];n.push(o?String.fromCharCode(o):e.charAt(r))}return n.join(``)}let Je=/^[1-9]\\.\\d$/,Ye=2**31-1,Xe=[1,0,0,1,0,0],Ze=[`ColorSpace`,`ExtGState`,`Font`,`Pattern`,`Properties`,`Shading`,`XObject`],Qe=[`ExtGState`,`Font`,`Properties`,`XObject`];function $e(e){let t;return function(){return e&&=(t=Object.create(null),e(t),null),t}}var et=class extends oe{constructor(e,t){super(`Missing data [${e}, ${t})`,`MissingDataException`),this.begin=e,this.end=t}},tt=class extends oe{constructor(e){super(e,`ParserEOFException`)}},nt=class extends oe{constructor(e){super(e,`XRefEntryException`)}},rt=class extends oe{constructor(e){super(e,`XRefParseException`)}};function it(e){let t=e.length;if(t===0)return new Uint8Array;if(t===1)return new Uint8Array(e[0]);let n=0;for(let r=0;r<t;r++)n+=e[r].byteLength;let r=new Uint8Array(n),i=0;for(let n=0;n<t;n++){let t=new Uint8Array(e[n]);r.set(t,i),i+=t.byteLength}return r}async function at(e){let t=await fetch(e);if(!t.ok)throw Error(`Failed to fetch file "${e}" with "${t.statusText}".`);return t.bytes()}function ot({dict:e,key:t,getArray:n=!1,stopWhenFound:r=!0}){let i,a=new Fe;for(;e instanceof L&&!(e.objId&&a.has(e.objId));){e.objId&&a.put(e.objId);let o=n?e.getArray(t):e.get(t);if(o!==void 0){if(r)return o;(i||=[]).push(o)}e=e.get(`Parent`)}return i}function st(e,t,n){let r=new Fe,i=e,a={dict:null,ref:null};for(;e instanceof L&&!r.has(t)&&(r.put(t),!e.has(`T`));){if(t=e.getRaw(`Parent`),!(t instanceof R))return a;e=n.fetch(t)}return e instanceof L&&e!==i&&(a.dict=e,a.ref=t),a}function ct(e,t){if(e===t)return!0;if(e instanceof R&&t instanceof R)return Be(e,t);if(e instanceof I&&t instanceof I)return e.name===t.name;if(e instanceof L&&t instanceof L){if(e.size!==t.size)return!1;for(let[n,r]of e.getRawEntries()){let e=t.getRaw(n);if(e===void 0||!ct(r,e))return!1}return!0}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n++)if(!ct(e[n],t[n]))return!1;return!0}return!1}let lt=`.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`.split(`.`);function ut(e,t=!1){N(Number.isInteger(e)&&e>0,`The number should be a positive integer.`);let n=`M`.repeat(e/1e3|0)+lt[e%1e3/100|0]+lt[10+(e%100/10|0)]+lt[20+e%10];return t?n.toLowerCase():n}function dt(e){return e===32||e===9||e===13||e===10}function ft(e,t){return Array.isArray(e)&&(t===null||e.length===t)&&e.every(e=>typeof e==`boolean`)}function pt(e,t){return Array.isArray(e)?(t===null||e.length===t)&&e.every(e=>typeof e==`number`):ArrayBuffer.isView(e)&&!(e instanceof BigInt64Array||e instanceof BigUint64Array)&&(t===null||e.length===t)}function mt(e,t){return pt(e,6)?e:t}function ht(e,t){return pt(e,4)?e:t}function gt(e,t){return pt(e,4)?ge.normalizeRect(e):t}function _t(e){let t=/(.+)\\[(\\d+)\\]$/;return e.split(`.`).map(e=>{let n=e.match(t);return n?{name:n[1],pos:parseInt(n[2],10)}:{name:e,pos:0}})}function vt(e){let t=[],n=0;for(let r=0,i=e.length;r<i;r++){let i=e.charCodeAt(r);(i<33||i>126||i===35||i===40||i===41||i===60||i===62||i===91||i===93||i===123||i===125||i===47||i===37)&&(n<r&&t.push(e.substring(n,r)),t.push(`#${i.toString(16)}`),n=r+1)}return t.length===0?e:(n<e.length&&t.push(e.substring(n,e.length)),t.join(``))}function yt(e){return e.replaceAll(/([()\\\\\\n\\r])/g,e=>e===`\n`?`\\\\n`:e===`\\r`?`\\\\r`:`\\\\${e}`)}function bt(e,t,n,r){if(!e)return;let i=null;if(e instanceof R){if(r.has(e))return;i=e,r.put(i),e=t.fetch(e)}if(Array.isArray(e))for(let i of e)bt(i,t,n,r);else if(e instanceof L){if(Le(e.get(`S`),`JavaScript`)){let t=e.get(`JS`),r;t instanceof Ve?r=t.getString():typeof t==`string`&&(r=t),r&&=qe(r,!0).replaceAll(`\\0`,``),r&&n.push(r.trim())}bt(e.getRaw(`Next`),t,n,r)}i&&r.remove(i)}function xt(e,t,n){let r=Object.create(null),i=ot({dict:t,key:`AA`,stopWhenFound:!1});if(i)for(let t=i.length-1;t>=0;t--){let a=i[t];if(a instanceof L)for(let[t,i]of a.getRawEntries()){let a=n[t];if(!a)continue;let o=new Fe,s=[];bt(i,e,s,o),s.length>0&&(r[a]=s)}}if(t.has(`A`)){let n=t.get(`A`),i=new Fe,a=[];bt(n,e,a,i),a.length>0&&(r.Action=a)}return me(r)>0?r:null}let St={60:`&lt;`,62:`&gt;`,38:`&amp;`,34:`&quot;`,39:`&apos;`};function*Ct(e){for(let t=0,n=e.length;t<n;t++){let n=e.codePointAt(t);n>55295&&(n<57344||n>65533)&&t++,yield n}}function wt(e){let t=[],n=0;for(let r=0,i=e.length;r<i;r++){let i=e.codePointAt(r);if(32<=i&&i<=126){let a=St[i];a&&(n<r&&t.push(e.substring(n,r)),t.push(a),n=r+1)}else n<r&&t.push(e.substring(n,r)),t.push(`&#x${i.toString(16).toUpperCase()};`),i>55295&&(i<57344||i>65533)&&r++,n=r+1}return t.length===0?e:(n<e.length&&t.push(e.substring(n,e.length)),t.join(``))}function Tt(e,t=!1){let n=/^("|\').*("|\')$/.exec(e);if(n&&n[1]===n[2]){if(RegExp(`[^\\\\\\\\]${n[1]}`).test(e.slice(1,-1)))return t&&j(`FontFamily contains unescaped ${n[1]}: ${e}.`),!1}else for(let n of e.split(/[ \\t]+/))if(/^(?:\\d|-[\\d-])/.test(n)||!/^[\\w\\\\-]+$/.test(n))return t&&j(`FontFamily contains invalid <custom-ident>: ${e}.`),!1;return!0}function Et(e){let t=new Set([`100`,`200`,`300`,`400`,`500`,`600`,`700`,`800`,`900`,`1000`,`normal`,`bold`,`bolder`,`lighter`]),{fontFamily:n,fontWeight:r,italicAngle:i}=e;if(!Tt(n,!0))return!1;let a=r?r.toString():``;e.fontWeight=t.has(a)?a:`400`;let o=parseFloat(i);return e.italicAngle=isNaN(o)||o<-90||o>90?`14`:i.toString(),!0}function Dt(e){let t=RegExp(`^\\\\s*(`+[`app.launchURL`,`window.open`,`xfa.host.gotoURL`].join(`|`).replaceAll(`.`,`\\\\.`)+`)\\\\((?:\'|")([^\'"]*)(?:\'|")(?:,\\\\s*(\\\\w+)\\\\)|\\\\))`,`i`).exec(e);return t?.[2]?{url:t[2],newWindow:t[1]===`app.launchURL`&&t[3]===`true`}:null}function Ot(e){if(Number.isInteger(e))return e.toString();let t=Math.round(e*100);return t%100==0?(t/100).toString():t%10==0?e.toFixed(1):e.toFixed(2)}function kt(e){if(!e)return null;let t=new Map;for(let[n,r]of e)n.startsWith(f)&&t.getOrInsertComputed(r.pageIndex,we).push(r);return t.size>0?t:null}function At(e=new Date){return e instanceof Date||(e=new Date(e)),[e.getUTCFullYear().toString(),(e.getUTCMonth()+1).toString().padStart(2,`0`),e.getUTCDate().toString().padStart(2,`0`),e.getUTCHours().toString().padStart(2,`0`),e.getUTCMinutes().toString().padStart(2,`0`),e.getUTCSeconds().toString().padStart(2,`0`)].join(``)}function jt(e,t,n){switch(e){case 90:return[0,1,-1,0,t,0];case 180:return[-1,0,0,-1,t,n];case 270:return[0,-1,1,0,0,n];default:throw Error(`Invalid rotation`)}}function Mt(e){return Math.ceil(Math.ceil(Math.log2(1+e))/8)}n(4603),n(7566),n(8721);var Nt=class{static#e=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 e=this.#e;return e?.byteLength?e:this.#e=new Uint8Array(this._memory.buffer)}};function Pt(e,t){let{_mustAddAlpha:n,_destBuffer:r,_destOffset:i,_destLength:a,_memoryArray:o}=Nt;if(t===a){r.set(o.subarray(e,e+t),i);return}if(n)for(let n=e,a=e+t,s=i;n<a;n+=3,s+=4)r[s]=o[n],r[s+1]=o[n+1],r[s+2]=o[n+2],r[s+3]=255;else for(let n=e,a=e+t,s=i;n<a;n+=3,s+=4)r[s]=o[n],r[s+1]=o[n+1],r[s+2]=o[n+2]}function Ft(e){let{_destBuffer:t,_destOffset:n,_memoryArray:r}=Nt;t[n]=r[e],t[n+1]=r[e+1],t[n+2]=r[e+2]}function It(e){let{_memoryArray:t}=Nt;Nt._cssColor=Nt._makeHexColor(t[e],t[e+1],t[e+2])}let Lt=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`}),Rt=Object.freeze({Perceptual:0,0:`Perceptual`,RelativeColorimetric:1,1:`RelativeColorimetric`,Saturation:2,2:`Saturation`,AbsoluteColorimetric:3,3:`AbsoluteColorimetric`});function zt(e,t){let n=Yt(t,en.__wbindgen_malloc),r=$t;en.qcms_convert_array(e,n,r)}function Bt(e,t,n,r,i,a){en.qcms_convert_four(e,t,n,r,i,a)}function Vt(e,t,n){en.qcms_convert_one(e,t,n)}function Ht(e,t,n,r,i){en.qcms_convert_three(e,t,n,r,i)}function Ut(e){en.qcms_drop_transformer(e)}function Wt(e,t,n){let r=Yt(e,en.__wbindgen_malloc),i=$t;return en.qcms_transformer_from_memory(r,i,t,n)>>>0}function Gt(){return{__proto__:null,"./qcms_bg.js":{__proto__:null,__wbg___wbindgen_throw_6b64449b9b9ed33c:function(e,t){throw Error(Kt(e,t))},__wbg_copy_result_0d15f3bf9d9012ae:function(e,t){Pt(e>>>0,t>>>0)},__wbg_copy_rgb_0106d9d9464fce43:function(e){Ft(e>>>0)},__wbg_make_cssRGB_8e24b34f71f5363e:function(e){It(e>>>0)},__wbindgen_init_externref_table:function(){let e=en.__wbindgen_externrefs,t=e.grow(4);e.set(0,void 0),e.set(t+0,void 0),e.set(t+1,null),e.set(t+2,!0),e.set(t+3,!1)}}}}function Kt(e,t){return e>>>=0,Qt(e,t)}let qt=null;function Jt(){return(qt===null||qt.byteLength===0)&&(qt=new Uint8Array(en.memory.buffer)),qt}function Yt(e,t){let n=t(e.length*1,1)>>>0;return Jt().set(e,n/1),$t=e.length,n}let Xt=new TextDecoder(`utf-8`,{ignoreBOM:!0,fatal:!0});Xt.decode();let Zt=0;function Qt(e,t){return Zt+=t,Zt>=2146435072&&(Xt=new TextDecoder(`utf-8`,{ignoreBOM:!0,fatal:!0}),Xt.decode(),Zt=t),Xt.decode(Jt().subarray(e,e+t))}let $t=0,en;function tn(e,t){return en=e.exports,qt=null,en.__wbindgen_start(),en}function nn(e){if(en!==void 0)return en;e!==void 0&&(Object.getPrototypeOf(e)===Object.prototype?{module:e}=e:console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));let t=Gt();return e instanceof WebAssembly.Module||(e=new WebAssembly.Module(e)),tn(new WebAssembly.Instance(e,t),e)}function rn(e,t,n){return Math.min(Math.max(e,t),n)}function an(e,t,n,r,i,a,o){o=o===1?o:0;let s=n/i,c=r/a,l=0,u,d=new Uint16Array(i),f=n*3;for(let e=0;e<i;e++)d[e]=Math.floor(e*s)*3;for(let n=0;n<a;n++){let r=Math.floor(n*c)*f;for(let n=0;n<i;n++)u=r+d[n],t[l++]=e[u++],t[l++]=e[u++],t[l++]=e[u++],l+=o}}function on(e,t,n,r,i,a,o){let s=n/i,c=r/a,l=0,u=new Uint16Array(i);if(o===1){for(let e=0;e<i;e++)u[e]=Math.floor(e*s);let r=new Uint32Array(e.buffer),o=new Uint32Array(t.buffer),d=he.isLittleEndian?16777215:4294967040;for(let e=0;e<a;e++){let t=r.subarray(Math.floor(e*c)*n);for(let e=0;e<i;e++)o[l++]|=t[u[e]]&d}}else{let r=n*4;for(let e=0;e<i;e++)u[e]=Math.floor(e*s)*4;for(let n=0;n<a;n++){let a=e.subarray(Math.floor(n*c)*r);for(let e=0;e<i;e++){let n=u[e];t[l++]=a[n],t[l++]=a[n+1],t[l++]=a[n+2]}}}}function sn(e,t,n){if(n===1){let n=new Uint32Array(e.buffer),r=new Uint32Array(t.buffer),i=he.isLittleEndian?16777215:4294967040;for(let e=0,t=n.length;e<t;e++)r[e]|=n[e]&i}else{let n=0;for(let r=0,i=e.length;r<i;r+=4)t[n++]=e[r],t[n++]=e[r+1],t[n++]=e[r+2]}}function cn(e,t){if(!Array.isArray(e))return!0;let n=e.length;return n<t?(j(`Decode map length is too short.`),!0):(n>t&&(A(`Truncating too long decode map.`),e.length=t),!1)}var ln=class e{static#e=new Uint8ClampedArray(3);constructor(e,t){this.name=e,this.numComps=t}getRgb(e,t,n=new Uint8ClampedArray(3)){return this.getRgbItem(e,t,n,0),n}getRgbHex(t,n){let r=this.getRgb(t,n,e.#e);return ge.makeHexColor(r[0],r[1],r[2])}getRgbItem(e,t,n,r){M(`Should not call ColorSpace.getRgbItem`)}getRgbBuffer(e,t,n,r,i,a,o){M(`Should not call ColorSpace.getRgbBuffer`)}getOutputLength(e,t){M(`Should not call ColorSpace.getOutputLength`)}isPassthrough(e){return!1}isDefaultDecode(t,n){return e.isDefaultDecode(t,this.numComps)}fillRgb(e,t,n,r,i,a,o,s,c){let l=t*n,u=null,d=1<<o,f=n!==i||t!==r;if(this.isPassthrough(o))u=s;else if(this.numComps===1&&l>d&&this.name!==`DeviceGray`&&this.name!==`DeviceRGB`){let t=o<=8?new Uint8Array(d):new Uint16Array(d);for(let e=0;e<d;e++)t[e]=e;let n=new Uint8ClampedArray(d*3);if(this.getRgbBuffer(t,0,d,n,0,o,0),f){u=new Uint8Array(l*3);let e=0;for(let t=0;t<l;++t){let r=s[t]*3;u[e++]=n[r],u[e++]=n[r+1],u[e++]=n[r+2]}}else{let t=0;for(let r=0;r<l;++r){let i=s[r]*3;e[t++]=n[i],e[t++]=n[i+1],e[t++]=n[i+2],t+=c}}}else f?(u=new Uint8ClampedArray(l*3),this.getRgbBuffer(s,0,l,u,0,o,0)):this.getRgbBuffer(s,0,r*a,e,0,o,c);if(u)if(f)an(u,e,t,n,r,i,c);else{let t=0,n=0;for(let i=0,o=r*a;i<o;i++)e[t++]=u[n++],e[t++]=u[n++],e[t++]=u[n++],t+=c}}get usesZeroToOneRange(){return P(this,`usesZeroToOneRange`,!0)}static isDefaultDecode(e,t){if(cn(e,t*2))return!0;for(let t=0,n=e.length;t<n;t+=2)if(e[t]!==0||e[t+1]!==1)return!1;return!0}},un=class extends ln{constructor(e,t,n){super(`Alternate`,e),this.base=t,this.tintFn=n,this.tmpBuf=new Float32Array(t.numComps)}getRgbItem(e,t,n,r){let i=this.tmpBuf;this.tintFn(e,t,i,0),this.base.getRgbItem(i,0,n,r)}getRgbBuffer(e,t,n,r,i,a,o){let s=this.tintFn,c=this.base,l=1/((1<<a)-1),u=c.numComps,d=c.usesZeroToOneRange,f=(c.isPassthrough(8)||!d)&&o===0,p=f?i:0,m=f?r:new Uint8ClampedArray(u*n),h=this.numComps,g=new Float32Array(h),_=new Float32Array(u),v,y;for(v=0;v<n;v++){for(y=0;y<h;y++)g[y]=e[t++]*l;if(s(g,0,_,0),d)for(y=0;y<u;y++)m[p++]=_[y]*255;else c.getRgbItem(_,0,m,p),p+=u}f||c.getRgbBuffer(m,0,n,r,i,8,o)}getOutputLength(e,t){return this.base.getOutputLength(e*this.base.numComps/this.numComps,t)}},dn=class extends ln{constructor(e){super(`Pattern`,null),this.base=e}isDefaultDecode(e,t){M(`Should not call PatternCS.isDefaultDecode`)}},fn=class extends ln{constructor(e,t,n){super(`Indexed`,1),this.base=e,this.highVal=t;let r=e.numComps*(t+1);if(this.lookup=new Uint8Array(r),n instanceof Ve){let e=n.getBytes(r);this.lookup.set(e)}else if(typeof n==`string`)for(let e=0;e<r;++e)this.lookup[e]=n.charCodeAt(e)&255;else throw new F(`IndexedCS - unrecognized lookup table: ${n}`)}getRgbItem(e,t,n,r){let{base:i,highVal:a,lookup:o}=this,s=rn(Math.round(e[t]),0,a)*i.numComps;i.getRgbBuffer(o,s,1,n,r,8,0)}getRgbBuffer(e,t,n,r,i,a,o){let{base:s,highVal:c,lookup:l}=this,{numComps:u}=s,d=s.getOutputLength(u,o);for(let a=0;a<n;++a){let n=rn(Math.round(e[t++]),0,c)*u;s.getRgbBuffer(l,n,1,r,i,8,o),i+=d}}getOutputLength(e,t){return this.base.getOutputLength(e*this.base.numComps,t)}isDefaultDecode(e,t){return cn(e,2)?!0:!Number.isInteger(t)||t<1?(j(`Bits per component is not correct`),!0):e[0]===0&&e[1]===(1<<t)-1}},pn=class extends ln{constructor(){super(`DeviceGray`,1)}getRgbItem(e,t,n,r){let i=e[t]*255;n[r]=n[r+1]=n[r+2]=i}getRgbBuffer(e,t,n,r,i,a,o){let s=255/((1<<a)-1),c=t,l=i;for(let t=0;t<n;++t){let t=s*e[c++];r[l++]=t,r[l++]=t,r[l++]=t,l+=o}}getOutputLength(e,t){return e*(3+t)}},mn=class extends ln{constructor(){super(`DeviceRGB`,3)}getRgbItem(e,t,n,r){n[r]=e[t]*255,n[r+1]=e[t+1]*255,n[r+2]=e[t+2]*255}getRgbBuffer(e,t,n,r,i,a,o){if(a===8&&o===0){r.set(e.subarray(t,t+n*3),i);return}let s=255/((1<<a)-1),c=t,l=i;for(let t=0;t<n;++t)r[l++]=s*e[c++],r[l++]=s*e[c++],r[l++]=s*e[c++],l+=o}getOutputLength(e,t){return e*(3+t)/3|0}isPassthrough(e){return e===8}},hn=class extends ln{constructor(){super(`DeviceRGBA`,4)}getOutputLength(e,t){return e*4}isPassthrough(e){return e===8}fillRgb(e,t,n,r,i,a,o,s,c){n!==i||t!==r?on(s,e,t,n,r,i,c):sn(s,e,c)}},gn=class extends ln{constructor(){super(`DeviceCMYK`,4)}#e(e,t,n,r,i){let a=e[t]*n,o=e[t+1]*n,s=e[t+2]*n,c=e[t+3]*n;r[i]=255+a*(-4.387332384609988*a+54.48615194189176*o+18.82290502165302*s+212.25662451639585*c+-285.2331026137004)+o*(1.7149763477362134*o-5.6096736904047315*s+-17.873870861415444*c-5.497006427196366)+s*(-2.5217340131683033*s-21.248923337353073*c+17.5119270841813)+c*(-21.86122147463605*c-189.48180835922747),r[i+1]=255+a*(8.841041422036149*a+60.118027045597366*o+6.871425592049007*s+31.159100130055922*c+-79.2970844816548)+o*(-15.310361306967817*o+17.575251261109482*s+131.35250912493976*c-190.9453302588951)+s*(4.444339102852739*s+9.8632861493405*c-24.86741582555878)+c*(-20.737325471181034*c-187.80453709719578),r[i+2]=255+a*(.8842522430003296*a+8.078677503112928*o+30.89978309703729*s-.23883238689178934*c+-14.183576799673286)+o*(10.49593273432072*o+63.02378494754052*s+50.606957656360734*c-112.23884253719248)+s*(.03296041114873217*s+115.60384449646641*c+-193.58209356861505)+c*(-22.33816807309886*c-180.12613974708367)}getRgbItem(e,t,n,r){this.#e(e,t,1,n,r)}getRgbBuffer(e,t,n,r,i,a,o){let s=1/((1<<a)-1);for(let a=0;a<n;a++)this.#e(e,t,s,r,i),t+=4,i+=3+o}getOutputLength(e,t){return e/4*(3+t)|0}},_n=class extends ln{constructor(e,t,n){if(super(`CalGray`,1),!e)throw new F(`WhitePoint missing - required for color space CalGray`);if([this.XW,this.YW,this.ZW]=e,[this.XB,this.YB,this.ZB]=t||[0,0,0],this.G=n||1,this.XW<0||this.ZW<0||this.YW!==1)throw new F(`Invalid WhitePoint components for ${this.name}, no fallback available`);(this.XB<0||this.YB<0||this.ZB<0)&&(A(`Invalid BlackPoint for ${this.name}, falling back to default.`),this.XB=this.YB=this.ZB=0),(this.XB!==0||this.YB!==0||this.ZB!==0)&&j(`${this.name}, BlackPoint: XB: ${this.XB}, YB: ${this.YB}, ZB: ${this.ZB}, only default values are supported.`),this.G<1&&(A(`Invalid Gamma: ${this.G} for ${this.name}, falling back to default.`),this.G=1)}#e(e,t,n,r,i){let a=(e[t]*i)**this.G,o=this.YW*a,s=Math.max(295.8*o**.3333333333333333-40.8,0);n[r]=s,n[r+1]=s,n[r+2]=s}getRgbItem(e,t,n,r){this.#e(e,t,n,r,1)}getRgbBuffer(e,t,n,r,i,a,o){let s=1/((1<<a)-1);for(let a=0;a<n;++a)this.#e(e,t,r,i,s),t+=1,i+=3+o}getOutputLength(e,t){return e*(3+t)}},vn=class e extends ln{static#e=new Float32Array([.8951,.2664,-.1614,-.7502,1.7135,.0367,.0389,-.0685,1.0296]);static#t=new Float32Array([.9869929,-.1470543,.1599627,.4323053,.5183603,.0492912,-.0085287,.0400428,.9684867]);static#n=new Float32Array([3.2404542,-1.5371385,-.4985314,-.969266,1.8760108,.041556,.0556434,-.2040259,1.0572252]);static#r=new Float32Array([1,1,1]);static#i=new Float32Array(3);static#a=new Float32Array(3);static#o=new Float32Array(3);static#s=(24/116)**3/8;constructor(e,t,n,r){if(super(`CalRGB`,3),!e)throw new F(`WhitePoint missing - required for color space CalRGB`);let[i,a,o]=this.whitePoint=e,[s,c,l]=this.blackPoint=t||new Float32Array(3);if([this.GR,this.GG,this.GB]=n||new Float32Array([1,1,1]),[this.MXA,this.MYA,this.MZA,this.MXB,this.MYB,this.MZB,this.MXC,this.MYC,this.MZC]=r||new Float32Array([1,0,0,0,1,0,0,0,1]),i<0||o<0||a!==1)throw new F(`Invalid WhitePoint components for ${this.name}, no fallback available`);(s<0||c<0||l<0)&&(A(`Invalid BlackPoint for ${this.name} [${s}, ${c}, ${l}], falling back to default.`),this.blackPoint=new Float32Array(3)),(this.GR<0||this.GG<0||this.GB<0)&&(A(`Invalid Gamma [${this.GR}, ${this.GG}, ${this.GB}] for ${this.name}, falling back to default.`),this.GR=this.GG=this.GB=1)}#c(e,t,n){n[0]=e[0]*t[0]+e[1]*t[1]+e[2]*t[2],n[1]=e[3]*t[0]+e[4]*t[1]+e[5]*t[2],n[2]=e[6]*t[0]+e[7]*t[1]+e[8]*t[2]}#l(e,t,n){n[0]=t[0]*1/e[0],n[1]=t[1]*1/e[1],n[2]=t[2]*1/e[2]}#u(e,t,n){n[0]=t[0]*.95047/e[0],n[1]=t[1]*1/e[1],n[2]=t[2]*1.08883/e[2]}#d(e){return e<=.0031308?rn(12.92*e,0,1):e>=.99554525?1:rn(1.055*e**(1/2.4)-.055,0,1)}#f(t){return t<0?-this.#f(-t):t>8?((t+16)/116)**3:t*e.#s}#p(e,t,n){if(e[0]===0&&e[1]===0&&e[2]===0){n[0]=t[0],n[1]=t[1],n[2]=t[2];return}let r=this.#f(0),i=r,a=this.#f(e[0]),o=r,s=this.#f(e[1]),c=r,l=this.#f(e[2]),u=(1-i)/(1-a),d=1-u,f=(1-o)/(1-s),p=1-f,m=(1-c)/(1-l),h=1-m;n[0]=t[0]*u+d,n[1]=t[1]*f+p,n[2]=t[2]*m+h}#m(t,n,r){if(t[0]===1&&t[2]===1){r[0]=n[0],r[1]=n[1],r[2]=n[2];return}let i=r;this.#c(e.#e,n,i);let a=e.#i;this.#l(t,i,a),this.#c(e.#t,a,r)}#h(t,n,r){let i=r;this.#c(e.#e,n,i);let a=e.#i;this.#u(t,i,a),this.#c(e.#t,a,r)}#g(t,n,r,i,a){let o=rn(t[n]*a,0,1),s=rn(t[n+1]*a,0,1),c=rn(t[n+2]*a,0,1),l=o===1?1:o**this.GR,u=s===1?1:s**this.GG,d=c===1?1:c**this.GB,f=this.MXA*l+this.MXB*u+this.MXC*d,p=this.MYA*l+this.MYB*u+this.MYC*d,m=this.MZA*l+this.MZB*u+this.MZC*d,h=e.#a;h[0]=f,h[1]=p,h[2]=m;let g=e.#o;this.#m(this.whitePoint,h,g);let _=e.#a;this.#p(this.blackPoint,g,_);let v=e.#o;this.#h(e.#r,_,v);let y=e.#a;this.#c(e.#n,v,y),r[i]=this.#d(y[0])*255,r[i+1]=this.#d(y[1])*255,r[i+2]=this.#d(y[2])*255}getRgbItem(e,t,n,r){this.#g(e,t,n,r,1)}getRgbBuffer(e,t,n,r,i,a,o){let s=1/((1<<a)-1);for(let a=0;a<n;++a)this.#g(e,t,r,i,s),t+=3,i+=3+o}getOutputLength(e,t){return e*(3+t)/3|0}},yn=class extends ln{constructor(e,t,n){if(super(`Lab`,3),!e)throw new F(`WhitePoint missing - required for color space Lab`);if([this.XW,this.YW,this.ZW]=e,[this.amin,this.amax,this.bmin,this.bmax]=n||[-100,100,-100,100],[this.XB,this.YB,this.ZB]=t||[0,0,0],this.XW<0||this.ZW<0||this.YW!==1)throw new F(`Invalid WhitePoint components, no fallback available`);(this.XB<0||this.YB<0||this.ZB<0)&&(A(`Invalid BlackPoint, falling back to default`),this.XB=this.YB=this.ZB=0),(this.amin>this.amax||this.bmin>this.bmax)&&(A(`Invalid Range, falling back to defaults`),this.amin=-100,this.amax=100,this.bmin=-100,this.bmax=100)}#e(e){return e>=6/29?e**3:108/841*(e-4/29)}#t(e,t,n,r){return n+e*(r-n)/t}#n(e,t,n,r,i){let a=e[t],o=e[t+1],s=e[t+2];n!==!1&&(a=this.#t(a,n,0,100),o=this.#t(o,n,this.amin,this.amax),s=this.#t(s,n,this.bmin,this.bmax)),o>this.amax?o=this.amax:o<this.amin&&(o=this.amin),s>this.bmax?s=this.bmax:s<this.bmin&&(s=this.bmin);let c=(a+16)/116,l=c+o/500,u=c-s/200,d=this.XW*this.#e(l),f=this.YW*this.#e(c),p=this.ZW*this.#e(u),m,h,g;this.ZW<1?(m=d*3.1339+f*-1.617+p*-.4906,h=d*-.9785+f*1.916+p*.0333,g=d*.072+f*-.229+p*1.4057):(m=d*3.2406+f*-1.5372+p*-.4986,h=d*-.9689+f*1.8758+p*.0415,g=d*.0557+f*-.204+p*1.057),r[i]=Math.sqrt(m)*255,r[i+1]=Math.sqrt(h)*255,r[i+2]=Math.sqrt(g)*255}getRgbItem(e,t,n,r){this.#n(e,t,!1,n,r)}getRgbBuffer(e,t,n,r,i,a,o){let s=(1<<a)-1;for(let a=0;a<n;a++)this.#n(e,t,s,r,i),t+=3,i+=3+o}getOutputLength(e,t){return e*(3+t)/3|0}isDefaultDecode(e,t){return!0}get usesZeroToOneRange(){return P(this,`usesZeroToOneRange`,!1)}};function bn(e){let t=new XMLHttpRequest;return t.open(`GET`,e,!1),t.responseType=`arraybuffer`,t.send(null),t.response}var xn=class e extends ln{#e;#t;static#n=!0;static#r=null;static#i=null;constructor(t,n,r){if(!e.isUsable)throw Error(`No ICC color space support`);super(n,r);let i;switch(r){case 1:i=Lt.Gray8,this.#t=(e,t,n)=>Vt(this.#e,e[t]*255,n);break;case 3:i=Lt.RGB8,this.#t=(e,t,n)=>Ht(this.#e,e[t]*255,e[t+1]*255,e[t+2]*255,n);break;case 4:i=Lt.CMYK,this.#t=(e,t,n)=>Bt(this.#e,e[t]*255,e[t+1]*255,e[t+2]*255,e[t+3]*255,n);break;default:throw Error(`Unsupported number of components: ${r}`)}if(this.#e=Wt(t,i,Rt.Perceptual),!this.#e)throw Error(`Failed to create ICC color space`);e.#i||=new FinalizationRegistry(e=>{Ut(e)}),e.#i.register(this,this.#e)}getRgbHex(e,t){return this.#t(e,t,!0),Nt._cssColor}getRgbItem(e,t,n,r){Nt._destBuffer=n,Nt._destOffset=r,Nt._destLength=3,this.#t(e,t,!1),Nt._destBuffer=null}getRgbBuffer(e,t,n,r,i,a,o){if(e=e.subarray(t,t+n*this.numComps),a!==8){let t=255/((1<<a)-1);for(let n=0,r=e.length;n<r;n++)e[n]*=t}Nt._mustAddAlpha=o&&r.buffer===e.buffer,Nt._destBuffer=r,Nt._destOffset=i,Nt._destLength=n*(3+o),zt(this.#e,e),Nt._mustAddAlpha=!1,Nt._destBuffer=null}getOutputLength(e,t){return e/this.numComps*(3+t)|0}static setOptions({useWasm:e,useWorkerFetch:t,wasmUrl:n}){if(!t){this.#n=!1;return}this.#n=e,this.#r=n}static get isUsable(){let e=!1;if(this.#n)if(this.#r)try{this._module=nn({module:bn(`${this.#r}qcms_bg.wasm`)}),e=!!this._module,Nt._memory=this._module.memory,Nt._makeHexColor=ge.makeHexColor.bind(ge)}catch(e){j(`ICCBased color space: "${e}".`)}else j("No ICC color space support due to missing `wasmUrl` API option");return P(this,`isUsable`,e)}},Sn=class e extends xn{static#e;constructor(){let t=new Uint8Array(bn(`${e.#e}CGATS001Compat-v2-micro.icc`));super(t,`DeviceCMYK`,4)}static setOptions({iccUrl:e}){this.#e=e}static get isUsable(){let e=!1;return xn.isUsable&&(this.#e?e=!0:j("No CMYK ICC profile support due to missing `iccUrl` API option")),P(this,`isUsable`,e)}},Cn=class e extends Ve{constructor(e,t,n,r){super(),this.bytes=e instanceof Uint8Array?e:new Uint8Array(e),this.start=t||0,this.pos=this.start,this.end=t+n||this.bytes.length,this.dict=r}get length(){return this.end-this.start}get isEmpty(){return this.length===0}getByte(){return this.pos>=this.end?-1:this.bytes[this.pos++]}getBytes(e){let t=this.bytes,n=this.pos,r=this.end;if(!e)return this.pos=r,t.subarray(n,r);let i=n+e;return i>r&&(i=r),this.pos=i,t.subarray(n,i)}getByteRange(e,t){return e<0&&(e=0),t>this.end&&(t=this.end),this.bytes.subarray(e,t)}reset(){this.pos=this.start}moveStart(){this.start=this.pos}makeSubStream(t,n,r=null){return new e(this.bytes.buffer,t,n,r)}clone(){return new e(this.bytes.buffer,this.start,this.end-this.start,this.dict.clone())}},wn=class extends Cn{constructor(e){super(pe(e))}},Tn=class extends Cn{constructor(){super(new Uint8Array)}},En=class extends Cn{progressiveDataLength=0;_lastSuccessfulEnsureByteChunk=-1;_loadedChunks=new Set;constructor(e,t,n){super(new Uint8Array(e),0,e,null),this.chunkSize=t,this.numChunks=Math.ceil(e/t),this.manager=n}getMissingChunks(){let e=[];for(let t=0,n=this.numChunks;t<n;++t)this._loadedChunks.has(t)||e.push(t);return e}get numChunksLoaded(){return this._loadedChunks.size}get isDataLoaded(){return this.numChunksLoaded===this.numChunks}onReceiveData(e,t){let n=this.chunkSize;if(e%n!==0)throw Error(`Bad begin offset: ${e}`);let r=e+t.byteLength;if(r%n!==0&&r!==this.bytes.length)throw Error(`Bad end offset: ${r}`);this.bytes.set(new Uint8Array(t),e);let i=Math.floor(e/n),a=Math.floor((r-1)/n)+1;for(let e=i;e<a;++e)this._loadedChunks.add(e)}onReceiveProgressiveData(e){let t=this.progressiveDataLength,n=Math.floor(t/this.chunkSize);this.bytes.set(new Uint8Array(e),t),t+=e.byteLength,this.progressiveDataLength=t;let r=t>=this.end?this.numChunks:Math.floor(t/this.chunkSize);for(let e=n;e<r;++e)this._loadedChunks.add(e)}ensureByte(e){if(e<this.progressiveDataLength)return;let t=Math.floor(e/this.chunkSize);if(!(t>this.numChunks)&&t!==this._lastSuccessfulEnsureByteChunk){if(!this._loadedChunks.has(t))throw new et(e,e+1);this._lastSuccessfulEnsureByteChunk=t}}ensureRange(e,t){if(e>=t||t<=this.progressiveDataLength)return;let n=Math.floor(e/this.chunkSize);if(n>this.numChunks)return;let r=Math.min(Math.floor((t-1)/this.chunkSize)+1,this.numChunks);for(let i=n;i<r;++i)if(!this._loadedChunks.has(i))throw new et(e,t)}nextEmptyChunk(e){let t=this.numChunks;for(let n=0;n<t;++n){let r=(e+n)%t;if(!this._loadedChunks.has(r))return r}return null}hasChunk(e){return this._loadedChunks.has(e)}getByte(){let e=this.pos;return e>=this.end?-1:(e>=this.progressiveDataLength&&this.ensureByte(e),this.bytes[this.pos++])}getBytes(e){let t=this.bytes,n=this.pos,r=this.end;if(!e)return r>this.progressiveDataLength&&this.ensureRange(n,r),this.pos=r,t.subarray(n,r);let i=n+e;return i>r&&(i=r),i>this.progressiveDataLength&&this.ensureRange(n,i),this.pos=i,t.subarray(n,i)}getByteRange(e,t){return e<0&&(e=0),t>this.end&&(t=this.end),t>this.progressiveDataLength&&this.ensureRange(e,t),this.bytes.subarray(e,t)}makeSubStream(e,t,n=null){t?e+t>this.progressiveDataLength&&this.ensureRange(e,e+t):e>=this.progressiveDataLength&&this.ensureByte(e);function r(){}r.prototype=Object.create(this),r.prototype.getMissingChunks=function(){let e=this.chunkSize,t=Math.floor(this.start/e),n=Math.floor((this.end-1)/e)+1,r=[];for(let e=t;e<n;++e)this._loadedChunks.has(e)||r.push(e);return r},Object.defineProperty(r.prototype,"isDataLoaded",{get(){return this.numChunksLoaded===this.numChunks?!0:this.getMissingChunks().length===0},configurable:!0});let i=new r;return i.pos=i.start=e,i.end=e+t||this.end,i.dict=n,i}getBaseStreams(){return[this]}},Dn=class{aborted=!1;currRequestId=0;_chunksNeededByRequest=new Map;_loadedStreamCapability=Promise.withResolvers();_promisesByRequest=new Map;_requestsByChunk=new Map;constructor(e,t){this.length=t.length,this.chunkSize=t.rangeChunkSize,this.stream=new En(this.length,this.chunkSize,this),this.pdfStream=e,this.disableAutoFetch=t.disableAutoFetch,this.msgHandler=t.msgHandler}async sendRequest(e,t){let n=this.pdfStream.getRangeReader(e,t),r=[];for(;;){let{value:e,done:t}=await n.read();if(this.aborted){r=null;return}if(t)break;r.push(e)}if(r.length===0&&this.disableAutoFetch)return;let i=it(r);r=null,this.onReceiveData({chunk:i.buffer,begin:e})}requestAllChunks(e=!1){if(!e){let e=this.stream.getMissingChunks();this._requestChunks(e)}return this._loadedStreamCapability.promise}_requestChunks(e){let t=this.currRequestId++,n=new Set;this._chunksNeededByRequest.set(t,n);for(let t of e)this.stream.hasChunk(t)||n.add(t);if(n.size===0)return Promise.resolve();let r=Promise.withResolvers();this._promisesByRequest.set(t,r);let i=[];for(let e of n){let n=this._requestsByChunk.get(e);n||(n=[],this._requestsByChunk.set(e,n),i.push(e)),n.push(t)}if(i.length>0){let e=this.groupChunks(i);for(let t of e){let e=t.beginChunk*this.chunkSize,n=Math.min(t.endChunk*this.chunkSize,this.length);this.sendRequest(e,n).catch(r.reject)}}return r.promise.catch(e=>{if(!this.aborted)throw e})}getStream(){return this.stream}requestRange(e,t){t=Math.min(t,this.length);let n=this.getBeginChunk(e),r=this.getEndChunk(t),i=[];for(let e=n;e<r;++e)i.push(e);return this._requestChunks(i)}requestRanges(e=[]){let t=[];for(let n of e){let e=this.getBeginChunk(n.begin),r=this.getEndChunk(n.end);for(let n=e;n<r;++n)t.includes(n)||t.push(n)}return t.sort((e,t)=>e-t),this._requestChunks(t)}groupChunks(e){let t=[],n=-1,r=-1;for(let i=0,a=e.length;i<a;++i){let a=e[i];n<0&&(n=a),r>=0&&r+1!==a&&(t.push({beginChunk:n,endChunk:r+1}),n=a),i+1===e.length&&t.push({beginChunk:n,endChunk:a+1}),r=a}return t}onReceiveData(e){let{chunkSize:t,length:n,stream:r}=this,i=e.chunk,a=e.begin===void 0,o=a?r.progressiveDataLength:e.begin,s=o+i.byteLength,c=Math.floor(o/t),l=s<n?Math.floor(s/t):Math.ceil(s/t);a?r.onReceiveProgressiveData(i):r.onReceiveData(o,i),r.isDataLoaded&&this._loadedStreamCapability.resolve(r);let u=[];for(let e=c;e<l;++e){let t=this._requestsByChunk.get(e);if(t){this._requestsByChunk.delete(e);for(let n of t){let t=this._chunksNeededByRequest.get(n);t.has(e)&&t.delete(e),!(t.size>0)&&u.push(n)}}}if(!this.disableAutoFetch&&this._requestsByChunk.size===0){let e;if(r.numChunksLoaded===1){let t=r.numChunks-1;r.hasChunk(t)||(e=t)}else e=r.nextEmptyChunk(l);Number.isInteger(e)&&this._requestChunks([e])}for(let e of u){let t=this._promisesByRequest.get(e);this._promisesByRequest.delete(e),t.resolve()}this.msgHandler.send(`DocProgress`,{loaded:rn(r.numChunksLoaded*t,r.progressiveDataLength,n),total:n})}onError(e){this._loadedStreamCapability.reject(e)}getBeginChunk(e){return Math.floor(e/this.chunkSize)}getEndChunk(e){return Math.floor((e-1)/this.chunkSize)+1}abort(e){this.aborted=!0,this.pdfStream?.cancelAllRequests(e);for(let t of this._promisesByRequest.values())t.reject(e)}};function On(e){switch(e.kind){case _.GRAYSCALE_1BPP:return kn(e);case _.RGB_24BPP:return An(e)}return null}function kn({src:e,srcPos:t=0,dest:n,width:r,height:i,nonBlackColor:a=4294967295,inverseDecode:o=!1}){let s=he.isLittleEndian?4278190080:255,[c,l]=o?[a,s]:[s,a],u=r>>3,d=r&7,f=c^l,p=e.length;n=new Uint32Array(n.buffer);let m=0;for(let r=0;r<i;++r){for(let r=t+u;t<r;++t,m+=8){let r=e[t];n[m]=c^-(r>>7&1)&f,n[m+1]=c^-(r>>6&1)&f,n[m+2]=c^-(r>>5&1)&f,n[m+3]=c^-(r>>4&1)&f,n[m+4]=c^-(r>>3&1)&f,n[m+5]=c^-(r>>2&1)&f,n[m+6]=c^-(r>>1&1)&f,n[m+7]=c^-(r&1)&f}if(d===0)continue;let r=t<p?e[t++]:255;for(let e=0;e<d;++e,++m)n[m]=c^-(r>>7-e&1)&f}return{srcPos:t,destPos:m}}function An({src:e,srcPos:t=0,dest:n,destPos:r=0,width:i,height:a}){let o=0,s=i*a*3,c=s>>2,l=new Uint32Array(e.buffer,t,c),u=he.isLittleEndian?4278190080:255;if(he.isLittleEndian){for(;o<c-2;o+=3,r+=4){let e=l[o],t=l[o+1],i=l[o+2];n[r]=e|u,n[r+1]=e>>>24|t<<8|u,n[r+2]=t>>>16|i<<16|u,n[r+3]=i>>>8|u}for(let i=o*4,a=t+s;i<a;i+=3)n[r++]=e[i]|e[i+1]<<8|e[i+2]<<16|u}else{for(;o<c-2;o+=3,r+=4){let e=l[o],t=l[o+1],i=l[o+2];n[r]=e|u,n[r+1]=e<<24|t>>>8|u,n[r+2]=t<<16|i>>>16|u,n[r+3]=i<<8|u}for(let i=o*4,a=t+s;i<a;i+=3)n[r++]=e[i]<<24|e[i+1]<<16|e[i+2]<<8|u}return{srcPos:t+s,destPos:r}}function jn(e,t){if(he.isLittleEndian)for(let n=0,r=e.length;n<r;n++)t[n]=e[n]*65793|4278190080;else for(let n=0,r=e.length;n<r;n++)t[n]=e[n]*16843008|255}let Mn=2048;var Nn=class e{static#e=Mn;static#t=he.isImageDecoderSupported;constructor(e,t){this._imgData=e,this._isMask=t}static get canUseImageDecoder(){return P(this,`canUseImageDecoder`,this.#t?ImageDecoder.isTypeSupported(`image/bmp`):Promise.resolve(!1))}static needsToBeResized(e,t){if(e<=this.#e&&t<=this.#e)return!1;let{MAX_DIM:n}=this;if(e>n||t>n)return!0;let r=e*t;return this._hasMaxArea?r>this.MAX_AREA:r<this.#e**2?!1:this._areGoodDims(e,t)?(this.#e=Math.max(this.#e,Math.floor(Math.sqrt(e*t))),!1):(this.#e=this._guessMax(this.#e,n,128,0),r>(this.MAX_AREA=this.#e**2))}static getReducePowerForJPX(e,t,n){let r=e*t,i=2**30/(n*4);if(!this.needsToBeResized(e,t))return r>i?Math.ceil(Math.log2(r/i)):0;let{MAX_DIM:a,MAX_AREA:o}=this,s=Math.max(e/a,t/a,Math.sqrt(r/Math.min(i,o)));return Math.ceil(Math.log2(s))}static get MAX_DIM(){return P(this,`MAX_DIM`,this._guessMax(Mn,32768,0,1))}static get MAX_AREA(){return this._hasMaxArea=!0,P(this,`MAX_AREA`,this._guessMax(this.#e,this.MAX_DIM,128,0)**2)}static set MAX_AREA(e){e>=0&&(this._hasMaxArea=!0,P(this,`MAX_AREA`,e))}static setOptions({canvasMaxAreaInBytes:e=-1,isImageDecoderSupported:t=!1}){this._hasMaxArea||(this.MAX_AREA=e>>2),this.#t=t}static _areGoodDims(e,t){try{let n=new OffscreenCanvas(e,t),r=n.getContext(`2d`);r.fillRect(0,0,1,1);let i=r.getImageData(0,0,1,1).data[3];return n.width=n.height=1,i!==0}catch{return!1}}static _guessMax(e,t,n,r){for(;e+n+1<t;){let n=Math.floor((e+t)/2),i=r||n;this._areGoodDims(n,i)?e=n:t=n}return e}static async createImage(t,n=!1){return new e(t,n)._createImage()}async _createImage(){let{_imgData:t}=this,{width:n,height:r}=t;if(n*r*4>Ye){let e=this.#n();if(e)return e}let i=this._encodeBMP(),a,o;await e.canUseImageDecoder?(a=new ImageDecoder({data:i,type:`image/bmp`,preferAnimation:!1,transfer:[i.buffer]}),o=a.decode().catch(e=>(j(`BMP image decoding failed: ${e}`),createImageBitmap(new Blob([this._encodeBMP().buffer],{type:`image/bmp`})))).finally(()=>{a.close()})):o=createImageBitmap(new Blob([i.buffer],{type:`image/bmp`}));let{MAX_AREA:s,MAX_DIM:c}=e,l=Math.max(n/c,r/c,Math.sqrt(n*r/s)),u=Math.max(l,2),d=Math.round(10*(l+1.25))/10/u,f=Math.floor(Math.log2(d)),p=Array(f+2).fill(2);p[0]=u,p.splice(-1,1,d/(1<<f));let m=n,h=r,g=await o,_=g.image||g;for(let e of p){let t=m,n=h;m=Math.floor(m/e),h=Math.floor(h/e);let r=new OffscreenCanvas(m,h);r.getContext(`2d`).drawImage(_,0,0,t,n,0,0,m,h),_.close(),_=r.transferToImageBitmap()}return t.data=null,t.bitmap=_,t.width=m,t.height=h,t}#n(){let{_imgData:t}=this,{data:n,width:r,height:i,kind:a}=t,o=r*i*4,s=Math.ceil(Math.log2(o/Ye)),c=r>>s,l=i>>s,u,d=i;try{u=new Uint8Array(o)}catch{let e=Math.floor(Math.log2(o+1));for(;;)try{u=new Uint8Array(2**e-1);break}catch{--e}d=Math.floor((2**e-1)/(r*4));let t=r*d*4;t<u.length&&(u=new Uint8Array(t))}let f=new Uint32Array(u.buffer),p=new Uint32Array(c*l),m=0,h=0,g=Math.ceil(i/d),v=i%d===0?i:i%d;for(let e=0;e<g;e++){let t=e<g-1?d:v;({srcPos:m}=On({kind:a,src:n,dest:f,width:r,height:t,inverseDecode:this._isMask,srcPos:m}));for(let e=0,n=t>>s;e<n;e++){let t=f.subarray((e<<s)*r);for(let e=0;e<c;e++)p[h++]=t[e<<s]}}if(e.needsToBeResized(c,l))return t.data=p,t.width=c,t.height=l,t.kind=_.RGBA_32BPP,null;let y=new OffscreenCanvas(c,l);return y.getContext(`2d`,{willReadFrequently:!0}).putImageData(new ImageData(new Uint8ClampedArray(p.buffer),c,l),0,0),t.data=null,t.bitmap=y.transferToImageBitmap(),t.width=c,t.height=l,t}_encodeBMP(){let{width:e,height:t,kind:n}=this._imgData,r=this._imgData.data,i,a=new Uint8Array,o=a,s=0;switch(n){case _.GRAYSCALE_1BPP:{i=1,a=new Uint8Array(this._isMask?[255,255,255,255,0,0,0,0]:[0,0,0,0,255,255,255,255]);let n=e+7>>3,o=n+3&-4;if(n!==o){let e=new Uint8Array(o*t),i=0;for(let a=0,s=t*n;a<s;a+=n,i+=o)e.set(r.subarray(a,a+n),i);r=e}break}case _.RGB_24BPP:if(i=24,e&3){let n=3*e,i=n+3&-4,a=i-n,o=new Uint8Array(i*t),s=0;for(let e=0,i=t*n;e<i;e+=n){let t=r.subarray(e,e+n);for(let e=0;e<n;e+=3)o[s++]=t[e+2],o[s++]=t[e+1],o[s++]=t[e];s+=a}r=o}else for(let e=0,t=r.length;e<t;e+=3){let t=r[e];r[e]=r[e+2],r[e+2]=t}break;case _.RGBA_32BPP:i=32,s=3,o=new Uint8Array(68);let n=new DataView(o.buffer);he.isLittleEndian?(n.setUint32(0,255,!0),n.setUint32(4,65280,!0),n.setUint32(8,16711680,!0),n.setUint32(12,4278190080,!0)):(n.setUint32(0,4278190080,!0),n.setUint32(4,16711680,!0),n.setUint32(8,65280,!0),n.setUint32(12,255,!0));break;default:throw Error(`invalid format`)}let c=0,l=40+o.length,u=14+l+a.length+r.length,d=new Uint8Array(u),f=new DataView(d.buffer);return f.setUint16(c,19778,!0),c+=2,f.setUint32(c,u,!0),c+=4,f.setUint32(c,0,!0),c+=4,f.setUint32(c,14+l+a.length,!0),c+=4,f.setUint32(c,l,!0),c+=4,f.setInt32(c,e,!0),c+=4,f.setInt32(c,-t,!0),c+=4,f.setUint16(c,1,!0),c+=2,f.setUint16(c,i,!0),c+=2,f.setUint32(c,s,!0),c+=4,f.setUint32(c,0,!0),c+=4,f.setInt32(c,0,!0),c+=4,f.setInt32(c,0,!0),c+=4,f.setUint32(c,a.length/4,!0),c+=4,f.setUint32(c,0,!0),c+=4,d.set(o,c),c+=o.length,d.set(a,c),c+=a.length,d.set(r,c),d}};let Pn=new Uint8Array;var Fn=class extends Ve{buffer=Pn;bufferLength=0;eof=!1;minBufferLength=512;pos=0;constructor(e){if(super(),this._rawMinBufferLength=e||0,e)for(;this.minBufferLength<e;)this.minBufferLength*=2}readBlock(){M("Abstract method `readBlock` called")}get isEmpty(){for(;!this.eof&&this.bufferLength===0;)this.readBlock();return this.bufferLength===0}ensureBuffer(e){let t=this.buffer;if(e<=t.byteLength)return t;let n=this.minBufferLength;for(;n<e;)n*=2;let r=new Uint8Array(n);return r.set(t),this.buffer=r}getByte(){let e=this.pos;for(;this.bufferLength<=e;){if(this.eof)return-1;this.readBlock()}return this.buffer[this.pos++]}getBytes(e,t=null){let n=this.pos,r;if(e){for(this.ensureBuffer(n+e),r=n+e;!this.eof&&this.bufferLength<r;)this.readBlock(t);let i=this.bufferLength;r>i&&(r=i)}else{for(;!this.eof;)this.readBlock(t);r=this.bufferLength}return this.pos=r,this.buffer.subarray(n,r)}async getImageData(e,t){if(!this.canAsyncDecodeImageFromBuffer)return this.isAsyncDecoder?this.decodeImage(null,e,t):this.getBytes(e,t);let n=await this.stream.asyncGetBytes();return this.decodeImage(n,e,t)}async asyncGetBytesFromDecompressionStream(e){this.stream.reset();let t=this.stream.isAsync?await this.stream.asyncGetBytes():this.stream.getBytes();try{let{readable:n,writable:r}=new DecompressionStream(e),i=r.getWriter();await i.ready,i.write(t).then(async()=>{await i.ready,await i.close()}).catch(()=>{});let a=[],o=0;for await(let e of n)a.push(e),o+=e.byteLength;let s=new Uint8Array(o),c=0;for(let e of a)s.set(e,c),c+=e.byteLength;return{decompressed:s,compressed:t}}catch{return{decompressed:null,compressed:t}}}reset(){this.pos=0}makeSubStream(e,t,n=null){if(t===void 0)for(;!this.eof;)this.readBlock();else{let n=e+t;for(;this.bufferLength<=n&&!this.eof;)this.readBlock()}return new Cn(this.buffer,e,t,n)}getBaseStreams(){return this.stream?this.stream.getBaseStreams():null}clone(){for(;!this.eof;)this.readBlock();return new Cn(this.buffer,this.start,this.end-this.start,this.dict.clone())}},In=class extends Fn{constructor(e,t=null){e=e.filter(e=>e instanceof Ve&&!e.isImageStream);let n=0;for(let t of e)n+=t instanceof Fn?t._rawMinBufferLength:t.length;super(n),this.streams=e,this._onError=t}readBlock(){let e=this.streams;if(e.length===0){this.eof=!0;return}let t=e.shift(),n;try{n=t.getBytes()}catch(e){if(this._onError){this._onError(e,t.dict?.objId);return}throw e}let r=this.bufferLength,i=r+n.length;this.ensureBuffer(i).set(n,r),this.bufferLength=i}getBaseStreams(){let e=[];for(let t of this.streams){let n=t.getBaseStreams();n&&e.push(...n)}return e.length>0?e:null}},Ln=class{static parse({cs:e,xref:t,resources:n=null,pdfFunctionFactory:r,globalColorSpaceCache:i,localColorSpaceCache:a,asyncIfNotCached:o=!1}){let s={xref:t,resources:n,pdfFunctionFactory:r,globalColorSpaceCache:i,localColorSpaceCache:a},c,l,u;if(e instanceof R){l=e;let n=i.getByRef(l)||a.getByRef(l);if(n)return n;e=t.fetch(e)}if(e instanceof I){c=e.name;let t=a.getByName(c);if(t)return t}try{u=this.#t(e,s)}catch(e){if(o&&!(e instanceof et))return Promise.reject(e);throw e}return(c||l)&&(a.set(c,l,u),l&&i.set(null,l,u)),o?Promise.resolve(u):u}static#e(e,t){let{globalColorSpaceCache:n}=t,r;if(e instanceof R){r=e;let t=n.getByRef(r);if(t)return t}let i=this.#t(e,t);return r&&n.set(null,r,i),i}static#t(e,t){let{xref:n,resources:r,pdfFunctionFactory:i,globalColorSpaceCache:a}=t;if(e=n.fetchIfRef(e),e instanceof I)switch(e.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 dn(null);default:if(r instanceof L){let n=r.get(`ColorSpace`);if(n instanceof L){let r=n.get(e.name);if(r){if(r instanceof I)return this.#t(r,t);e=r;break}}}return j(`Unrecognized ColorSpace: ${e.name}`),this.gray}if(Array.isArray(e)){let r=n.fetchIfRef(e[0]).name,o,s,c,l,u,d;switch(r){case`G`:case`DeviceGray`:return this.gray;case`RGB`:case`DeviceRGB`:return this.rgb;case`CMYK`:case`DeviceCMYK`:return this.cmyk;case`CalGray`:return o=n.fetchIfRef(e[1]),l=o.getArray(`WhitePoint`),u=o.getArray(`BlackPoint`),d=o.get(`Gamma`),new _n(l,u,d);case`CalRGB`:o=n.fetchIfRef(e[1]),l=o.getArray(`WhitePoint`),u=o.getArray(`BlackPoint`),d=o.getArray(`Gamma`);let f=o.getArray(`Matrix`);return new vn(l,u,d,f);case`ICCBased`:let p=e[1]instanceof R;if(p){let t=a.getByRef(e[1]);if(t)return t}let m=n.fetchIfRef(e[1]),h=m.dict;if(s=h.get(`N`),xn.isUsable)try{let t=new xn(m.getBytes(),`ICCBased`,s);return p&&a.set(null,e[1],t),t}catch(t){if(t instanceof et)throw t;j(`ICCBased color space (${e[1]}): "${t}".`)}let g=h.getRaw(`Alternate`);if(g){let e=this.#e(g,t);if(e.numComps===s)return e;j(`ICCBased color space: Ignoring incorrect /Alternate entry.`)}if(s===1)return this.gray;if(s===3)return this.rgb;if(s===4)return this.cmyk;break;case`Pattern`:return c=e[1]||null,c&&=this.#e(c,t),new dn(c);case`I`:case`Indexed`:c=this.#e(e[1],t);let _=rn(n.fetchIfRef(e[2]),0,255),v=n.fetchIfRef(e[3]);return new fn(c,_,v);case`Separation`:case`DeviceN`:let y=n.fetchIfRef(e[1]);s=Array.isArray(y)?y.length:1,c=this.#e(e[2],t);let b=i.create(e[3]);return new un(s,c,b);case`Lab`:o=n.fetchIfRef(e[1]),l=o.getArray(`WhitePoint`),u=o.getArray(`BlackPoint`);let x=o.getArray(`Range`);return new yn(l,u,x);default:return j(`Unimplemented ColorSpace object: ${r}`),this.gray}}return j(`Unrecognized ColorSpace object: ${e}`),this.gray}static get gray(){return P(this,`gray`,new pn)}static get rgb(){return P(this,`rgb`,new mn)}static get rgba(){return P(this,`rgba`,new hn)}static get cmyk(){if(Sn.isUsable)try{return P(this,`cmyk`,new Sn)}catch{j(`CMYK fallback: DeviceCMYK`)}return P(this,`cmyk`,new gn)}},Rn=class extends oe{constructor(e){super(e,`JpegError`)}},zn=class extends oe{constructor(e,t){super(e,`DNLMarkerError`),this.scanLines=t}},Bn=class extends oe{constructor(e){super(e,`EOIMarkerError`)}};let Vn=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]),Hn=4017,Un=3406,Wn=2276,Gn=1567,Kn=3784,qn=5793,Jn=2896;function Yn(e,t){let n=0,r,i,a=16;for(;a>0&&!e[a-1];)a--;let o=[{children:[],index:0}],s=o[0],c;for(r=0;r<a;r++){for(i=0;i<e[r];i++){for(s=o.pop(),s.children[s.index]=t[n];s.index>0;)s=o.pop();for(s.index++,o.push(s);o.length<=r;)o.push(c={children:[],index:0}),s.children[s.index]=c.children,s=c;n++}r+1<a&&(o.push(c={children:[],index:0}),s.children[s.index]=c.children,s=c)}return o[0].children}function Xn(e,t,n){return 64*((e.blocksPerLine+1)*t+n)}function Zn(e,t,n,r,i,a,o,s,c,l,u=!1){let d=r.mcusPerLine,f=r.progressive,p=n,m=0,h=0;function g(){if(h>0)return h--,m>>h&1;if(m=e[n++],m===255){let i=e[n++];if(i){if(i===220&&u){n+=2;let e=t.getUint16(n);if(n+=2,e>0&&e!==r.scanLines)throw new zn(`Found DNL marker (0xFFDC) while parsing scan data`,e)}else if(i===217){if(u){let e=O*(r.precision===8?8:0);if(e>0&&Math.round(r.scanLines/e)>=5)throw new zn("Found EOI marker (0xFFD9) while parsing scan data, possibly caused by incorrect `scanLines` parameter",e)}throw new Bn(`Found EOI marker (0xFFD9) while parsing scan data`)}throw new Rn(`unexpected marker ${(m<<8|i).toString(16)}`)}}return h=7,m>>>7}function _(e){let t=e;for(;;){switch(t=t[g()],typeof t){case`number`:return t;case`object`:continue}throw new Rn(`invalid huffman sequence`)}}function v(e){let t=0;for(;e>0;)t=t<<1|g(),e--;return t}function y(e){if(e===1)return g()===1?1:-1;let t=v(e);return t>=1<<e-1?t:t+(-1<<e)+1}function b(e,t){let n=_(e.huffmanTableDC),r=n===0?0:y(n);e.blockData[t]=e.pred+=r;let i=1;for(;i<64;){let n=_(e.huffmanTableAC),r=n&15,a=n>>4;if(r===0){if(a<15)break;i+=16;continue}i+=a;let o=Vn[i];e.blockData[t+o]=y(r),i++}}function x(e,t){let n=_(e.huffmanTableDC),r=n===0?0:y(n)<<l;e.blockData[t]=e.pred+=r}function S(e,t){e.blockData[t]|=g()<<l}let C=0;function w(e,t){if(C>0){C--;return}let n=o,r=s;for(;n<=r;){let r=_(e.huffmanTableAC),i=r&15,a=r>>4;if(i===0){if(a<15){C=v(a)+(1<<a)-1;break}n+=16;continue}n+=a;let o=Vn[n];e.blockData[t+o]=y(i)*(1<<l),n++}}let T=0,E;function D(e,t){let n=o,r=s,i=0,a,c;for(;n<=r;){let r=t+Vn[n],o=e.blockData[r]<0?-1:1;switch(T){case 0:if(c=_(e.huffmanTableAC),a=c&15,i=c>>4,a===0)i<15?(C=v(i)+(1<<i),T=4):(i=16,T=1);else{if(a!==1)throw new Rn(`invalid ACn encoding`);E=y(a),T=i?2:3}continue;case 1:case 2:e.blockData[r]?e.blockData[r]+=o*(g()<<l):(i--,i===0&&(T=T===2?3:0));break;case 3:e.blockData[r]?e.blockData[r]+=o*(g()<<l):(e.blockData[r]=E<<l,T=0);break;case 4:e.blockData[r]&&(e.blockData[r]+=o*(g()<<l));break}n++}T===4&&(C--,C===0&&(T=0))}let O=0;function ee(e,t,n,r,i){let a=n/d|0,o=n%d;O=a*e.v+r;let s=o*e.h+i;t(e,Xn(e,O,s))}function te(e,t,n){O=n/e.blocksPerLine|0;let r=n%e.blocksPerLine;t(e,Xn(e,O,r))}let ne=i.length,k,A,M,N,re,ie;ie=f?o===0?c===0?x:S:c===0?w:D:b;let ae=0,P,oe=ne===1?i[0].blocksPerLine*i[0].blocksPerColumn:d*r.mcusPerColumn,se,ce;for(;ae<=oe;){let r=a?Math.min(oe-ae,a):oe;if(r>0){for(A=0;A<ne;A++)i[A].pred=0;if(C=0,ne===1)for(k=i[0],re=0;re<r;re++)te(k,ie,ae),ae++;else for(re=0;re<r;re++){for(A=0;A<ne;A++)for(k=i[A],se=k.h,ce=k.v,M=0;M<ce;M++)for(N=0;N<se;N++)ee(k,ie,ae,M,N);ae++}}if(h=0,P=er(e,t,n),!P)break;if(P.invalid&&(j(`decodeScan - ${r>0?`unexpected`:`excessive`} MCU data, current marker is: ${P.invalid}`),n=P.offset),P.marker>=65488&&P.marker<=65495)n+=2;else break}return n-p}function Qn(e,t,n){let r=e.quantizationTable,i=e.blockData,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x;if(!r)throw new Rn(`missing required Quantization Table.`);for(let e=0;e<64;e+=8){if(p=i[t+e],m=i[t+e+1],h=i[t+e+2],g=i[t+e+3],_=i[t+e+4],v=i[t+e+5],y=i[t+e+6],b=i[t+e+7],p*=r[e],(m|h|g|_|v|y|b)===0){x=qn*p+512>>10,n[e]=x,n[e+1]=x,n[e+2]=x,n[e+3]=x,n[e+4]=x,n[e+5]=x,n[e+6]=x,n[e+7]=x;continue}m*=r[e+1],h*=r[e+2],g*=r[e+3],_*=r[e+4],v*=r[e+5],y*=r[e+6],b*=r[e+7],a=qn*p+128>>8,o=qn*_+128>>8,s=h,c=y,l=Jn*(m-b)+128>>8,f=Jn*(m+b)+128>>8,u=g<<4,d=v<<4,a=a+o+1>>1,o=a-o,x=s*Kn+c*Gn+128>>8,s=s*Gn-c*Kn+128>>8,c=x,l=l+d+1>>1,d=l-d,f=f+u+1>>1,u=f-u,a=a+c+1>>1,c=a-c,o=o+s+1>>1,s=o-s,x=l*Wn+f*Un+2048>>12,l=l*Un-f*Wn+2048>>12,f=x,x=u*799+d*Hn+2048>>12,u=u*Hn-d*799+2048>>12,d=x,n[e]=a+f,n[e+7]=a-f,n[e+1]=o+d,n[e+6]=o-d,n[e+2]=s+u,n[e+5]=s-u,n[e+3]=c+l,n[e+4]=c-l}for(let e=0;e<8;++e){if(p=n[e],m=n[e+8],h=n[e+16],g=n[e+24],_=n[e+32],v=n[e+40],y=n[e+48],b=n[e+56],(m|h|g|_|v|y|b)===0){x=qn*p+8192>>14,x=x<-2040?0:x>=2024?255:x+2056>>4,i[t+e]=x,i[t+e+8]=x,i[t+e+16]=x,i[t+e+24]=x,i[t+e+32]=x,i[t+e+40]=x,i[t+e+48]=x,i[t+e+56]=x;continue}a=qn*p+2048>>12,o=qn*_+2048>>12,s=h,c=y,l=Jn*(m-b)+2048>>12,f=Jn*(m+b)+2048>>12,u=g,d=v,a=(a+o+1>>1)+4112,o=a-o,x=s*Kn+c*Gn+2048>>12,s=s*Gn-c*Kn+2048>>12,c=x,l=l+d+1>>1,d=l-d,f=f+u+1>>1,u=f-u,a=a+c+1>>1,c=a-c,o=o+s+1>>1,s=o-s,x=l*Wn+f*Un+2048>>12,l=l*Un-f*Wn+2048>>12,f=x,x=u*799+d*Hn+2048>>12,u=u*Hn-d*799+2048>>12,d=x,p=a+f,b=a-f,m=o+d,y=o-d,h=s+u,v=s-u,g=c+l,_=c-l,p<16?p=0:p>=4080?p=255:p>>=4,m<16?m=0:m>=4080?m=255:m>>=4,h<16?h=0:h>=4080?h=255:h>>=4,g<16?g=0:g>=4080?g=255:g>>=4,_<16?_=0:_>=4080?_=255:_>>=4,v<16?v=0:v>=4080?v=255:v>>=4,y<16?y=0:y>=4080?y=255:y>>=4,b<16?b=0:b>=4080?b=255:b>>=4,i[t+e]=p,i[t+e+8]=m,i[t+e+16]=h,i[t+e+24]=g,i[t+e+32]=_,i[t+e+40]=v,i[t+e+48]=y,i[t+e+56]=b}}function $n(e,t){let n=t.blocksPerLine,r=t.blocksPerColumn,i=new Int16Array(64);for(let e=0;e<r;e++)for(let r=0;r<n;r++)Qn(t,Xn(t,e,r),i);return t.blockData}function er(e,t,n,r=n){let i=e.length-1,a=r<n?r:n;if(n>=i)return null;let o=t.getUint16(n);if(o>=65472&&o<=65534)return{invalid:null,marker:o,offset:n};let s=t.getUint16(a);for(;!(s>=65472&&s<=65534);){if(++a>=i)return null;s=t.getUint16(a)}return{invalid:o.toString(16),marker:s,offset:a}}function tr(e){let t=Math.ceil(e.samplesPerLine/8/e.maxH),n=Math.ceil(e.scanLines/8/e.maxV);for(let r of e.components){let i=Math.ceil(Math.ceil(e.samplesPerLine/8)*r.h/e.maxH),a=Math.ceil(Math.ceil(e.scanLines/8)*r.v/e.maxV),o=t*r.h,s=64*(n*r.v)*(o+1);r.blockData=new Int16Array(s),r.blocksPerLine=i,r.blocksPerColumn=a}e.mcusPerLine=t,e.mcusPerColumn=n}function nr(e,t,n){let r=t.getUint16(n);n+=2;let i=n+r-2,a=er(e,t,i,n);a?.invalid&&(j(`readDataBlock - incorrect length, current marker is: `+a.invalid),i=a.offset);let o=e.subarray(n,i);return{appData:o,oldOffset:n,newOffset:n+o.length}}function rr(e,t,n){let r=t.getUint16(n);n+=2;let i=n+r-2,a=er(e,t,i,n);return a?.invalid?a.offset:i}var ir=class{constructor({decodeTransform:e=null,colorTransform:t=-1}={}){this._decodeTransform=e,this._colorTransform=t}static canUseImageDecoder(e,t=-1){let n=new DataView(e.buffer,e.byteOffset,e.byteLength),r=null,i=0,a=null,o=n.getUint16(i);if(i+=2,o!==65496)throw new Rn(`SOI not found`);o=n.getUint16(i),i+=2;markerLoop:for(;o!==65497;){switch(o){case 65505:let{appData:t,oldOffset:s,newOffset:c}=nr(e,n,i);if(i=c,t[0]===69&&t[1]===120&&t[2]===105&&t[3]===102&&t[4]===0&&t[5]===0){if(r)throw new Rn(`Duplicate EXIF-blocks found.`);r={exifStart:s+6,exifEnd:c}}o=n.getUint16(i),i+=2;continue;case 65472:case 65473:case 65474:a=e[i+7];break markerLoop;case 65535:e[i]!==255&&i--;break}i=rr(e,n,i),o=n.getUint16(i),i+=2}return a===4||a===3&&t===0?null:r||{}}parse(e,{dnlScanLines:t=null}={}){let n=new DataView(e.buffer,e.byteOffset,e.byteLength),r=e.length-1,i=0,a=null,o=null,s,c,l=0,u=[],d=[],f=[],p=n.getUint16(i);if(i+=2,p!==65496)throw new Rn(`SOI not found`);p=n.getUint16(i),i+=2;markerLoop:for(;p!==65497;){let m,h,g;switch(p){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:_,newOffset:v}=nr(e,n,i);i=v,p===65504&&_[0]===74&&_[1]===70&&_[2]===73&&_[3]===70&&_[4]===0&&(a={version:{major:_[5],minor:_[6]},densityUnits:_[7],xDensity:_[8]<<8|_[9],yDensity:_[10]<<8|_[11],thumbWidth:_[12],thumbHeight:_[13],thumbData:_.subarray(14,14+3*_[12]*_[13])}),p===65518&&_[0]===65&&_[1]===100&&_[2]===111&&_[3]===98&&_[4]===101&&(o={version:_[5]<<8|_[6],flags0:_[7]<<8|_[8],flags1:_[9]<<8|_[10],transformCode:_[11]});break;case 65499:let y=n.getUint16(i);i+=2;let b=y+i-2,x;for(;i<b;){let t=e[i++],r=new Uint16Array(64);if(!(t>>4))for(h=0;h<64;h++)x=Vn[h],r[x]=e[i++];else if(t>>4==1)for(h=0;h<64;h++)x=Vn[h],r[x]=n.getUint16(i),i+=2;else throw new Rn(`DQT - invalid table spec`);u[t&15]=r}break;case 65472:case 65473:case 65474:if(s)throw new Rn(`Only single frame JPEGs supported`);i+=2,s={},s.extended=p===65473,s.progressive=p===65474,s.precision=e[i++];let S=n.getUint16(i);i+=2,s.scanLines=t||S,s.samplesPerLine=n.getUint16(i),i+=2,s.components=[],s.componentIds={};let C=e[i++],w=0,T=0;for(m=0;m<C;m++){let t=e[i],n=e[i+1]>>4,r=e[i+1]&15;w<n&&(w=n),T<r&&(T=r);let a=e[i+2];g=s.components.push({h:n,v:r,quantizationId:a,quantizationTable:null}),s.componentIds[t]=g-1,i+=3}s.maxH=w,s.maxV=T,tr(s);break;case 65476:let E=n.getUint16(i);for(i+=2,m=2;m<E;){let t=e[i++],n=new Uint8Array(16),r=0;for(h=0;h<16;h++,i++)r+=n[h]=e[i];let a=new Uint8Array(r);for(h=0;h<r;h++,i++)a[h]=e[i];m+=17+r,(t>>4?d:f)[t&15]=Yn(n,a)}break;case 65501:i+=2,c=n.getUint16(i),i+=2;break;case 65498:let D=++l===1&&!t;i+=2;let O=e[i++],ee=[];for(m=0;m<O;m++){let t=e[i++],n=s.componentIds[t],r=s.components[n];r.index=t;let a=e[i++];r.huffmanTableDC=f[a>>4],r.huffmanTableAC=d[a&15],ee.push(r)}let te=e[i++],ne=e[i++],k=e[i++];try{let t=Zn(e,n,i,s,ee,c,te,ne,k>>4,k&15,D);i+=t}catch(t){if(t instanceof zn)return j(`${t.message} -- attempting to re-parse the JPEG image.`),this.parse(e,{dnlScanLines:t.scanLines});if(t instanceof Bn){j(`${t.message} -- ignoring the rest of the image data.`);break markerLoop}throw t}break;case 65500:i+=4;break;case 65535:e[i]!==255&&i--;break;default:let A=er(e,n,i-2,i-3);if(A?.invalid){j(`JpegImage.parse - unexpected data, current marker is: `+A.invalid),i=A.offset;break}if(!A||i>=r){j(`JpegImage.parse - reached the end of the image data without finding an EOI marker (0xFFD9).`);break markerLoop}throw new Rn(`JpegImage.parse - unknown marker: `+p.toString(16))}i<r?(p=n.getUint16(i),i+=2):p=0}if(!s)throw new Rn(`JpegImage.parse - no frame data found.`);this.width=s.samplesPerLine,this.height=s.scanLines,this.jfif=a,this.adobe=o,this.components=[];for(let e of s.components){let t=u[e.quantizationId];t&&(e.quantizationTable=t),this.components.push({index:e.index,output:$n(s,e),scaleX:e.h/s.maxH,scaleY:e.v/s.maxV,blocksPerLine:e.blocksPerLine,blocksPerColumn:e.blocksPerColumn})}this.numComponents=this.components.length}_getLinearizedBlockData(e,t,n=!1){let r=this.width/e,i=this.height/t,a,o,s,c,l,u,d,f,p,m,h=0,g,_=this.components.length,v=e*t*_,y=new Uint8ClampedArray(v),b=new Uint32Array(e),x=4294967288,S;for(d=0;d<_;d++){if(a=this.components[d],o=a.scaleX*r,s=a.scaleY*i,h=d,g=a.output,c=a.blocksPerLine+1<<3,o!==S){for(l=0;l<e;l++)f=0|l*o,b[l]=(f&x)<<3|f&7;S=o}for(u=0;u<t;u++)for(f=0|u*s,m=c*(f&x)|(f&7)<<3,l=0;l<e;l++)y[h]=g[m+b[l]],h+=_}let C=this._decodeTransform;if(!n&&_===4&&!C&&(C=new Int32Array([-256,255,-256,255,-256,255,-256,255])),C)for(d=0;d<v;)for(f=0,p=0;f<_;f++,d++,p+=2)y[d]=(y[d]*C[p]>>8)+C[p+1];return y}get _isColorConversionNeeded(){return this.adobe?!!this.adobe.transformCode:this.numComponents===3?this._colorTransform===0?!1:!(this.components[0].index===82&&this.components[1].index===71&&this.components[2].index===66):this._colorTransform===1}_convertYccToRgb(e){let t,n,r;for(let i=0,a=e.length;i<a;i+=3)t=e[i],n=e[i+1],r=e[i+2],e[i]=t-179.456+1.402*r,e[i+1]=t+135.459-.344*n-.714*r,e[i+2]=t-226.816+1.772*n;return e}_convertYccToRgba(e,t){for(let n=0,r=0,i=e.length;n<i;n+=3,r+=4){let i=e[n],a=e[n+1],o=e[n+2];t[r]=i-179.456+1.402*o,t[r+1]=i+135.459-.344*a-.714*o,t[r+2]=i-226.816+1.772*a,t[r+3]=255}return t}_convertYcckToRgb(e){return this._convertYcckToCmyk(e),this._convertCmykToRgb(e)}_convertYcckToRgba(e){return this._convertYcckToCmyk(e),this._convertCmykToRgba(e)}_convertYcckToCmyk(e){let t,n,r;for(let i=0,a=e.length;i<a;i+=4)t=e[i],n=e[i+1],r=e[i+2],e[i]=434.456-t-1.402*r,e[i+1]=119.541-t+.344*n+.714*r,e[i+2]=481.816-t-1.772*n;return e}_convertCmykToRgb(e){let t=e.length/4;return Ln.cmyk.getRgbBuffer(e,0,t,e,0,8,0),e.subarray(0,t*3)}_convertCmykToRgba(e){if(Ln.cmyk.getRgbBuffer(e,0,e.length/4,e,0,8,1),Ln.cmyk instanceof gn)for(let t=3,n=e.length;t<n;t+=4)e[t]=255;return e}getData({width:e,height:t,forceRGBA:n=!1,forceRGB:r=!1,isSourcePDF:i=!1}){if(this.numComponents>4)throw new Rn(`Unsupported color mode`);let a=this._getLinearizedBlockData(e,t,i);if(this.numComponents===1&&(n||r)){let e=a.length*(n?4:3),t=new Uint8ClampedArray(e),r=0;if(n)jn(a,new Uint32Array(t.buffer));else for(let e of a)t[r++]=e,t[r++]=e,t[r++]=e;return t}else if(this.numComponents===3&&this._isColorConversionNeeded){if(n){let e=new Uint8ClampedArray(a.length/3*4);return this._convertYccToRgba(a,e)}return this._convertYccToRgb(a)}else if(this.numComponents===4){if(this._isColorConversionNeeded)return n?this._convertYcckToRgba(a):r?this._convertYcckToRgb(a):this._convertYcckToCmyk(a);if(n)return this._convertCmykToRgba(a);if(r)return this._convertCmykToRgb(a)}return a}},ar=class e extends Fn{static#e=he.isImageDecoderSupported;constructor(e,t,n){super(t),this.stream=e,this.dict=e.dict,this.maybeLength=t,this.params=n}static get canUseImageDecoder(){return P(this,`canUseImageDecoder`,this.#e?ImageDecoder.isTypeSupported(`image/jpeg`):Promise.resolve(!1))}static setOptions({isImageDecoderSupported:e=!1}){this.#e=e}get bytes(){return P(this,`bytes`,this.stream.getBytes(this.maybeLength))}ensureBuffer(e){}readBlock(){this.decodeImage()}get jpegOptions(){let e={decodeTransform:void 0,colorTransform:void 0},t=this.dict.getArray(`D`,`Decode`);if((this.forceRGBA||this.forceRGB)&&Array.isArray(t)){let n=this.dict.get(`BPC`,`BitsPerComponent`)||8,r=t.length,i=new Int32Array(r),a=!1,o=(1<<n)-1;for(let e=0;e<r;e+=2)i[e]=(t[e+1]-t[e])*256|0,i[e+1]=t[e]*o|0,(i[e]!==256||i[e+1]!==0)&&(a=!0);a&&(e.decodeTransform=i)}if(this.params instanceof L){let t=this.params.get(`ColorTransform`);Number.isInteger(t)&&(e.colorTransform=t)}return P(this,`jpegOptions`,e)}#t(e){for(let t=0,n=e.length-1;t<n;t++)if(e[t]===255&&e[t+1]===216){t>0&&(e=e.subarray(t));break}return e}decodeImage(e){if(this.eof)return this.buffer;e=this.#t(e||this.bytes);let t=new ir(this.jpegOptions);t.parse(e);let n=t.getData({width:this.drawWidth,height:this.drawHeight,forceRGBA:this.forceRGBA,forceRGB:this.forceRGB,isSourcePDF:!0});return this.buffer=n,this.bufferLength=n.length,this.eof=!0,this.buffer}get canAsyncDecodeImageFromBuffer(){return this.stream.isAsync}async getTransferableImage(){if(!await e.canUseImageDecoder)return null;let t=this.jpegOptions;if(t.decodeTransform)return null;let n;try{let e=this.canAsyncDecodeImageFromBuffer&&await this.stream.asyncGetBytes()||this.bytes;if(!e)return null;let r=this.#t(e),i=ir.canUseImageDecoder(r,t.colorTransform);return i?(i.exifStart&&(r=r.slice(),r.fill(0,i.exifStart,i.exifEnd)),n=new ImageDecoder({data:r,type:`image/jpeg`,preferAnimation:!1}),(await n.decode()).image):null}catch(e){return j(`getTransferableImage - failed: "${e}".`),null}finally{n?.close()}}get isImageStream(){return!0}};function or(e,t,n,r,i){let a=e;for(let e=0,n=t.length-1;e<n;e++){let n=t[e];a=a[n]||=[]}a[t.at(-1)]={checkFn:n,iterateFn:r,processFn:i}}let sr=[];or(sr,[D.save,D.transform,D.paintInlineImageXObject,D.restore],null,function(e,t){let n=e.fnArray,r=(t-(e.iCurr-3))%4;switch(r){case 0:return n[t]===D.save;case 1:return n[t]===D.transform;case 2:return n[t]===D.paintInlineImageXObject;case 3:return n[t]===D.restore}throw Error(`iterateInlineImageGroup - invalid pos: ${r}`)},function(e,t){let n=e.fnArray,r=e.argsArray,i=e.iCurr,a=i-3,o=i-2,s=i-1,c=Math.min(Math.floor((t-a)/4),200);if(c<10)return t-(t-a)%4;let l=0,u=[],d=0,f=1,p=1;for(let e=0;e<c;e++){let t=r[o+(e<<2)],n=r[s+(e<<2)][0];f+n.width>1e3&&(l=Math.max(l,f),p+=d+2,f=0,d=0),u.push({transform:t,x:f,y:p,w:n.width,h:n.height}),f+=n.width+2,d=Math.max(d,n.height)}let m=Math.max(l,f)+1,h=p+d+1,g=new Uint8Array(m*h*4),v=m<<2;for(let e=0;e<c;e++){let t=r[s+(e<<2)][0].data,n=u[e].w<<2,i=0,a=u[e].x+u[e].y*m<<2;g.set(t.subarray(0,n),a-v);for(let r=0,o=u[e].h;r<o;r++)g.set(t.subarray(i,i+n),a),i+=n,a+=v;for(g.set(t.subarray(i-n,i),a);a>=0;)t[a-4]=t[a],t[a-3]=t[a+1],t[a-2]=t[a+2],t[a-1]=t[a+3],t[a+n]=t[a+n-4],t[a+n+1]=t[a+n-3],t[a+n+2]=t[a+n-2],t[a+n+3]=t[a+n-1],a-=v}let y={width:m,height:h};if(e.isOffscreenCanvasSupported){let e=new OffscreenCanvas(m,h);e.getContext(`2d`).putImageData(new ImageData(new Uint8ClampedArray(g.buffer),m,h),0,0),y.bitmap=e.transferToImageBitmap(),y.data=null}else y.kind=_.RGBA_32BPP,y.data=g;return n.splice(a,c*4,D.paintInlineImageXObjectGroup),r.splice(a,c*4,[y,u]),a+1}),or(sr,[D.save,D.transform,D.paintImageMaskXObject,D.restore],null,function(e,t){let n=e.fnArray,r=(t-(e.iCurr-3))%4;switch(r){case 0:return n[t]===D.save;case 1:return n[t]===D.transform;case 2:return n[t]===D.paintImageMaskXObject;case 3:return n[t]===D.restore}throw Error(`iterateImageMaskGroup - invalid pos: ${r}`)},function(e,t){let n=e.fnArray,r=e.argsArray,i=e.iCurr,a=i-3,o=i-2,s=i-1,c=Math.floor((t-a)/4);if(c<10)return t-(t-a)%4;let l=!1,u,d,f=r[s][0],p=r[o][0],m=r[o][1],h=r[o][2],g=r[o][3];if(m===h){l=!0,u=o+4;let e=s+4;for(let t=1;t<c;t++,u+=4,e+=4)if(d=r[u],r[e][0]!==f||d[0]!==p||d[1]!==m||d[2]!==h||d[3]!==g){t<10?l=!1:c=t;break}}if(l){c=Math.min(c,1e3);let e=new Float32Array(c*2);u=o;for(let t=0;t<c;t++,u+=4)d=r[u],e[t<<1]=d[4],e[(t<<1)+1]=d[5];n.splice(a,c*4,D.paintImageMaskXObjectRepeat),r.splice(a,c*4,[f,p,m,h,g,e])}else{c=Math.min(c,100);let e=[];for(let t=0;t<c;t++){d=r[o+(t<<2)];let n=r[s+(t<<2)][0];e.push({data:n.data,width:n.width,height:n.height,interpolate:n.interpolate,count:n.count,transform:d})}n.splice(a,c*4,D.paintImageMaskXObjectGroup),r.splice(a,c*4,[e])}return a+1}),or(sr,[D.save,D.transform,D.paintImageXObject,D.restore],function(e){let t=e.argsArray,n=e.iCurr-2;return t[n][1]===0&&t[n][2]===0},function(e,t){let n=e.fnArray,r=e.argsArray,i=(t-(e.iCurr-3))%4;switch(i){case 0:return n[t]===D.save;case 1:if(n[t]!==D.transform)return!1;let i=e.iCurr-2,a=r[i][0],o=r[i][3];return!(r[t][0]!==a||r[t][1]!==0||r[t][2]!==0||r[t][3]!==o);case 2:if(n[t]!==D.paintImageXObject)return!1;let s=r[e.iCurr-1][0];return r[t][0]===s;case 3:return n[t]===D.restore}throw Error(`iterateImageGroup - invalid pos: ${i}`)},function(e,t){let n=e.fnArray,r=e.argsArray,i=e.iCurr,a=i-3,o=i-2,s=r[i-1][0],c=r[o][0],l=r[o][3],u=Math.min(Math.floor((t-a)/4),1e3);if(u<3)return t-(t-a)%4;let d=new Float32Array(u*2),f=o;for(let e=0;e<u;e++,f+=4){let t=r[f];d[e<<1]=t[4],d[(e<<1)+1]=t[5]}let p=[s,c,l,d];return n.splice(a,u*4,D.paintImageXObjectRepeat),r.splice(a,u*4,p),a+1}),or(sr,[D.beginText,D.setFont,D.setTextMatrix,D.showText,D.endText],null,function(e,t){let n=e.fnArray,r=e.argsArray,i=(t-(e.iCurr-4))%5;switch(i){case 0:return n[t]===D.beginText;case 1:return n[t]===D.setFont;case 2:return n[t]===D.setTextMatrix;case 3:if(n[t]!==D.showText)return!1;let i=e.iCurr-3,a=r[i][0],o=r[i][1];return!(r[t][0]!==a||r[t][1]!==o);case 4:return n[t]===D.endText}throw Error(`iterateShowTextGroup - invalid pos: ${i}`)},function(e,t){let n=e.fnArray,r=e.argsArray,i=e.iCurr,a=i-4,o=i-3,s=i-2,c=i-1,l=i,u=r[o][0],d=r[o][1],f=Math.min(Math.floor((t-a)/5),1e3);if(f<3)return t-(t-a)%5;let p=a;a>=4&&n[a-4]===n[o]&&n[a-3]===n[s]&&n[a-2]===n[c]&&n[a-1]===n[l]&&r[a-4][0]===u&&r[a-4][1]===d&&(f++,p-=5);let m=p+4;for(let e=1;e<f;e++)n.splice(m,3),r.splice(m,3),m+=2;return m+1}),or(sr,[D.save,D.transform,D.constructPath,D.restore],e=>{let t=e.argsArray,n=t[e.iCurr-1][0];if(n!==D.stroke&&n!==D.closeStroke&&n!==D.fillStroke&&n!==D.eoFillStroke&&n!==D.closeFillStroke&&n!==D.closeEOFillStroke)return!0;let r=t[e.iCurr-2];return r[0]===1&&r[1]===0&&r[2]===0&&r[3]===1},()=>!1,(e,t)=>{let{fnArray:n,argsArray:r}=e,i=e.iCurr,o=i-3,s=i-2,c=r[i-1],l=r[s],[,[u],d]=c;if(d){let e=a.slice();ge.axialAlignedBoundingBox(d,l,e),d.set(e);for(let e=0,t=u.length;e<t;)switch(u[e++]){case O.moveTo:case O.lineTo:ge.applyTransform(u,l,e),e+=2;break;case O.curveTo:ge.applyTransformToBezier(u,l,e),e+=6;break}}return n.splice(o,4,D.constructPath),r.splice(o,4,c),o+1});var cr=class{constructor(e){this.queue=e}_optimize(){}push(e,t){this.queue.fnArray.push(e),this.queue.argsArray.push(t),this._optimize()}flush(){}reset(){}},lr=class extends cr{constructor(e){super(e),this.state=null,this.context={iCurr:0,fnArray:e.fnArray,argsArray:e.argsArray,isOffscreenCanvasSupported:ur.isOffscreenCanvasSupported},this.match=null,this.lastProcessed=0}_optimize(){let e=this.queue.fnArray,t=this.lastProcessed,n=e.length,r=this.state,i=this.match;if(!r&&!i&&t+1===n&&!sr[e[t]]){this.lastProcessed=n;return}let a=this.context;for(;t<n;){if(i){if((0,i.iterateFn)(a,t)){t++;continue}if(t=(0,i.processFn)(a,t+1),n=e.length,i=null,r=null,t>=n)break}if(r=(r||sr)[e[t]],!r||Array.isArray(r)){t++;continue}if(a.iCurr=t,t++,r.checkFn&&!(0,r.checkFn)(a)){r=null;continue}i=r,r=null}this.state=r,this.match=i,this.lastProcessed=t}flush(){for(;this.match;){let e=this.queue.fnArray.length;this.lastProcessed=(0,this.match.processFn)(this.context,e),this.match=null,this.state=null,this._optimize()}}reset(){this.state=null,this.match=null,this.lastProcessed=0}},ur=class e{static CHUNK_SIZE=1e3;static CHUNK_SIZE_ABOUT=this.CHUNK_SIZE-5;static isOffscreenCanvasSupported=!1;constructor(e=0,t){this._streamSink=t,this.fnArray=[],this.argsArray=[],this.optimizer=t&&!(e&d.OPLIST)?new lr(this):new cr(this),this.dependencies=new Set,this._totalLength=0,this.weight=0,this._resolved=t?null:Promise.resolve()}static setOptions({isOffscreenCanvasSupported:e}){this.isOffscreenCanvasSupported=e}get length(){return this.argsArray.length}get ready(){return this._resolved||this._streamSink.ready}get totalLength(){return this._totalLength+this.length}addOp(t,n){this.optimizer.push(t,n),this.weight++,this._streamSink&&(this.weight>=e.CHUNK_SIZE||this.weight>=e.CHUNK_SIZE_ABOUT&&(t===D.restore||t===D.endText))&&this.flush()}addImageOps(e,t,n,r=!1){r&&(this.addOp(D.save),this.addOp(D.setGState,[[[`SMask`,!1]]])),n!==void 0&&this.addOp(D.beginMarkedContentProps,[`OC`,n]),this.addOp(e,t),n!==void 0&&this.addOp(D.endMarkedContent,[]),r&&this.addOp(D.restore)}addDependency(e){this.dependencies.has(e)||(this.dependencies.add(e),this.addOp(D.dependency,[e]))}addDependencies(e){for(let t of e)this.addDependency(t)}addOpList(t){if(!(t instanceof e)){j(`addOpList - ignoring invalid "opList" parameter.`);return}for(let e of t.dependencies)this.dependencies.add(e);for(let e=0,n=t.length;e<n;e++)this.addOp(t.fnArray[e],t.argsArray[e])}getIR(){return{fnArray:this.fnArray,argsArray:this.argsArray,length:this.length}}get _transfers(){let e=[],{fnArray:t,argsArray:n,length:r}=this;for(let i=0;i<r;i++)switch(t[i]){case D.paintInlineImageXObject:case D.paintInlineImageXObjectGroup:case D.paintImageMaskXObject:{let{bitmap:t,data:r}=n[i][0];(t||r?.buffer)&&e.push(t||r.buffer);break}case D.constructPath:{let[,[t],r]=n[i];t&&e.push(t.buffer,r.buffer);break}case D.paintFormXObjectBegin:let[t,r]=n[i];t&&e.push(t.buffer),r&&e.push(r.buffer);break;case D.setTextMatrix:e.push(n[i][0].buffer);break}return e}flush(e=!1,t=null){this.optimizer.flush();let n=this.length;this._totalLength+=n,this._streamSink.enqueue({fnArray:this.fnArray,argsArray:this.argsArray,lastChunk:e,separateAnnots:t,length:n},1,this._transfers),this.dependencies.clear(),this.fnArray.length=0,this.argsArray.length=0,this.weight=0,this.optimizer.reset()}},dr=class extends ur{needsIsolation=!1;addOp(e,t){if(!this.needsIsolation){if(e===D.beginGroup)this.needsIsolation=t[0].needsIsolation;else if(e===D.setGState)for(let[e,n]of t[0]){if(e===`BM`&&n!==`source-over`){this.needsIsolation=!0;break}if(e===`SMask`&&n!==!1){this.needsIsolation=!0;break}}}super.addOp(e,t)}};let fr={FUNCTION_BASED:1,AXIAL:2,RADIAL:3,FREE_FORM_MESH:4,LATTICE_FORM_MESH:5,COONS_PATCH_MESH:6,TENSOR_PATCH_MESH:7};var pr=class{static#e=!1;constructor(){M(`Cannot initialize Pattern.`)}static setOptions({hasGPU:e}){this.#e=e}static parseShading(e,t,n,r,i,a){let o=e instanceof Ve?e.dict:e,s=o.get(`ShadingType`);try{switch(s){case fr.FUNCTION_BASED:return new yr(o,t,n,r,i,a);case fr.AXIAL:case fr.RADIAL:return new hr(o,t,n,r,i,a);case fr.FREE_FORM_MESH:case fr.LATTICE_FORM_MESH:case fr.COONS_PATCH_MESH:case fr.TENSOR_PATCH_MESH:return new Tr(e,t,n,r,i,a);default:throw new F(`Unsupported ShadingType: `+s)}}catch(e){if(e instanceof et)throw e;return j(e),new Er}}},mr=class{static SMALL_NUMBER=1e-6;getIR(){M("Abstract method `getIR` called.")}},hr=class extends mr{constructor(e,t,n,r,i,a){super(),this.shadingType=e.get(`ShadingType`);let o=0;if(this.shadingType===fr.AXIAL?o=4:this.shadingType===fr.RADIAL&&(o=6),this.coordsArr=e.getArray(`Coords`),!pt(this.coordsArr,o))throw new F(`RadialAxialShading: Invalid /Coords array.`);let s=Ln.parse({cs:e.getRaw(`CS`)||e.getRaw(`ColorSpace`),xref:t,resources:n,pdfFunctionFactory:r,globalColorSpaceCache:i,localColorSpaceCache:a});this.bbox=gt(e.getArray(`BBox`),null);let c=0,l=1,u=e.getArray(`Domain`);pt(u,2)&&([c,l]=u);let d=!1,f=!1,p=e.getArray(`Extend`);ft(p,2)&&([d,f]=p),this.extendStart=d,this.extendEnd=f;let m=e.getRaw(`Function`),h=r.create(m,!0),g=(l-c)/840,_=this.colorStops=[];if(c>=l||g<=0){A(`Bad shading domain.`);return}let v=new Float32Array(s.numComps),y=new Float32Array(1),b=0;y[0]=c,h(y,0,v,0);let x=new Uint8ClampedArray(3);s.getRgb(v,0,x);let[S,C,w]=x;_.push([0,ge.makeHexColor(S,C,w)]);let T=1;y[0]=c+g,h(y,0,v,0),s.getRgb(v,0,x);let[E,D,O]=x,ee=E-S+1,te=D-C+1,ne=O-w+1,k=E-S-1,j=D-C-1,M=O-w-1;for(let e=2;e<840;e++){y[0]=c+e*g,h(y,0,v,0),s.getRgb(v,0,x);let[t,n,r]=x,i=e-b;if(ee=Math.min(ee,(t-S+1)/i),te=Math.min(te,(n-C+1)/i),ne=Math.min(ne,(r-w+1)/i),k=Math.max(k,(t-S-1)/i),j=Math.max(j,(n-C-1)/i),M=Math.max(M,(r-w-1)/i),!(k<=ee&&j<=te&&M<=ne)){let e=ge.makeHexColor(E,D,O);_.push([T/840,e]),ee=t-E+1,te=n-D+1,ne=r-O+1,k=t-E-1,j=n-D-1,M=r-O-1,b=T,S=E,C=D,w=O}T=e,E=t,D=n,O=r}_.push([1,ge.makeHexColor(E,D,O)]);let N=`transparent`;e.has(`Background`)&&(N=s.getRgbHex(e.get(`Background`),0)),d||(_.unshift([0,N]),_[1][0]+=mr.SMALL_NUMBER),f||(_.at(-1)[0]-=mr.SMALL_NUMBER,_.push([1,N])),this.colorStops=_}getIR(){let{coordsArr:e,shadingType:t}=this,n,r,i,a,o;return t===fr.AXIAL?(r=[e[0],e[1]],i=[e[2],e[3]],a=null,o=null,n=`axial`):t===fr.RADIAL?(r=[e[0],e[1]],i=[e[3],e[4]],a=e[2],o=e[5],n=`radial`):M(`getPattern type unknown: ${t}`),[`RadialAxial`,n,this.bbox,this.colorStops,r,i,a,o]}};function gr(e){let t=e.coords[0][0],n=e.coords[0][1],r=t,i=n;for(let a=1,o=e.coords.length;a<o;a++){let o=e.coords[a][0],s=e.coords[a][1];t=t>o?o:t,n=n>s?s:n,r=r<o?o:r,i=i<s?s:i}e.bounds=[t,n,r,i]}function _r(e){let t,n,r,i=e.coords,a=new Float32Array(i.length*2);for(t=0,n=0,r=i.length;t<r;t++){let e=i[t];a[n++]=e[0],a[n++]=e[1]}e.coords=a;let o=e.colors,s=new Uint8Array(o.length*4);for(t=0,n=0,r=o.length;t<r;t++){let e=o[t];s[n++]=e[0],s[n++]=e[1],s[n++]=e[2],n++}e.colors=s;for(let t of e.figures)t.coords=new Uint32Array(t.coords),t.colors=new Uint32Array(t.colors)}function vr(e,t,n){let r=0;for(let e of n)if(e.type===h.TRIANGLES)r+=e.coords.length;else if(e.type===h.LATTICE){let t=e.verticesPerRow;r+=(Math.floor(e.coords.length/t)-1)*(t-1)*6}let i=new Float32Array(r*2),a=new Uint8Array(r*4),o=0,s=0,c=(n,r)=>{i[o++]=e[n*2],i[o++]=e[n*2+1],a[s++]=t[r*4],a[s++]=t[r*4+1],a[s++]=t[r*4+2],s++};for(let e of n){let t=e.coords,n=e.colors;if(e.type===h.TRIANGLES)for(let e=0,r=t.length;e<r;e++)c(t[e],n[e]);else if(e.type===h.LATTICE){let r=e.verticesPerRow,i=Math.floor(t.length/r)-1,a=r-1;for(let e=0;e<i;e++){let i=e*r;for(let e=0;e<a;e++,i++)c(t[i],n[i]),c(t[i+1],n[i+1]),c(t[i+r],n[i+r]),c(t[i+r+1],n[i+r+1]),c(t[i+1],n[i+1]),c(t[i+r],n[i+r])}}}return{posData:i,colData:a,vertexCount:r}}var yr=class e extends mr{static MAX_STEP_COUNT=512;constructor(t,n,r,a,o,s){super(),this.bbox=gt(t.getArray(`BBox`),null);let c=Ln.parse({cs:t.getRaw(`CS`)||t.getRaw(`ColorSpace`),xref:n,resources:r,pdfFunctionFactory:a,globalColorSpaceCache:o,localColorSpaceCache:s});this.background=t.has(`Background`)?c.getRgb(t.get(`Background`),0):null;let l=t.getRaw(`Function`);if(!l)throw new F(`FunctionBasedShading: missing /Function`);let u=a.create(l,!0),[d,f,p,m]=ht(t.getArray(`Domain`),[0,1,0,1]),g=mt(t.getArray(`Matrix`),Xe);this.bounds=i.slice(),ge.axialAlignedBoundingBox([d,p,f,m],g,this.bounds);let _=this.bounds[2]-this.bounds[0],v=this.bounds[3]-this.bounds[1],y=rn(Math.ceil(_),1,e.MAX_STEP_COUNT),b=rn(Math.ceil(v),1,e.MAX_STEP_COUNT),x=y+1,S=(b+1)*x,C=this.coords=new Float32Array(S*2),w=this.colors=new Uint8ClampedArray(S*4),T=new Float32Array(2),E=new Float32Array(c.numComps),D=(f-d)/y,O=(m-p)/b,ee=D/2,te=O/2,ne=0,k=0;for(let e=0;e<=b;e++){let t=p+O*e;T[1]=e===b?t-te:t;for(let e=0;e<=y;e++){let n=d+D*e;T[0]=e===y?n-ee:n,u(T,0,E,0),C[ne]=n,C[ne+1]=t,ge.applyTransform(C,g,ne),ne+=2,c.getRgbItem(E,0,w,k),k+=4}}let A=new Uint32Array(S);for(let e=0;e<S;e++)A[e]=e;this.figures=[{type:h.LATTICE,coords:A,colors:new Uint32Array(A),verticesPerRow:x}]}getIR(){let{posData:e,colData:t,vertexCount:n}=vr(this.coords,this.colors,this.figures);return[`Mesh`,fr.FUNCTION_BASED,e,t,n,this.bounds,this.bbox,this.background]}},br=class{constructor(e,t){this.stream=e,this.context=t,this.buffer=0,this.bufferLength=0;let n=t.numComps;this.tmpCompsBuf=new Float32Array(n);let r=t.colorSpace.numComps;this.tmpCsCompsBuf=t.colorFn?new Float32Array(r):this.tmpCompsBuf}get hasData(){if(this.stream.end)return this.stream.pos<this.stream.end;if(this.bufferLength>0)return!0;let e=this.stream.getByte();return e<0?!1:(this.buffer=e,this.bufferLength=8,!0)}readBits(e){let{stream:t}=this,{buffer:n,bufferLength:r}=this;if(e===32){if(r===0)return t.getInt32()>>>0;n=n<<24|t.getByte()<<16|t.getByte()<<8|t.getByte();let e=t.getByte();return this.buffer=e&(1<<r)-1,(n<<8-r|(e&255)>>r)>>>0}if(e===8&&r===0)return t.getByte();for(;r<e;)n=n<<8|t.getByte(),r+=8;return r-=e,this.bufferLength=r,this.buffer=n&(1<<r)-1,n>>r}align(){this.buffer=0,this.bufferLength=0}readFlag(){return this.readBits(this.context.bitsPerFlag)}readCoordinate(){let{bitsPerCoordinate:e,decode:t}=this.context,n=this.readBits(e),r=this.readBits(e),i=e<32?1/((1<<e)-1):23283064365386963e-26;return[n*i*(t[1]-t[0])+t[0],r*i*(t[3]-t[2])+t[2]]}readComponents(){let{bitsPerComponent:e,colorFn:t,colorSpace:n,decode:r,numComps:i}=this.context,a=e<32?1/((1<<e)-1):23283064365386963e-26,o=this.tmpCompsBuf;for(let t=0,n=4;t<i;t++,n+=2)o[t]=this.readBits(e)*a*(r[n+1]-r[n])+r[n];let s=this.tmpCsCompsBuf;return t?.(o,0,s,0),n.getRgb(s,0)}};let xr=Object.create(null);function Sr(e){let t=[];for(let n=0;n<=e;n++){let r=n/e,i=1-r;t.push(new Float32Array([i**3,3*r*i**2,3*r**2*i,r**3]))}return t}function Cr(e){return xr[e]||=Sr(e)}function wr(){xr=Object.create(null)}var Tr=class e extends mr{static MIN_SPLIT_PATCH_CHUNKS_AMOUNT=3;static MAX_SPLIT_PATCH_CHUNKS_AMOUNT=20;static TRIANGLE_DENSITY=20;constructor(e,t,n,r,i,a){if(super(),!(e instanceof Ve))throw new F(`Mesh data is not a stream`);let o=e.dict;this.shadingType=o.get(`ShadingType`),this.bbox=gt(o.getArray(`BBox`),null);let s=Ln.parse({cs:o.getRaw(`CS`)||o.getRaw(`ColorSpace`),xref:t,resources:n,pdfFunctionFactory:r,globalColorSpaceCache:i,localColorSpaceCache:a});this.background=o.has(`Background`)?s.getRgb(o.get(`Background`),0):null;let c=o.getRaw(`Function`),l=c?r.create(c,!0):null;this.coords=[],this.colors=[],this.figures=[];let u=new br(e,{bitsPerCoordinate:o.get(`BitsPerCoordinate`),bitsPerComponent:o.get(`BitsPerComponent`),bitsPerFlag:o.get(`BitsPerFlag`),decode:o.getArray(`Decode`),colorFn:l,colorSpace:s,numComps:l?1:s.numComps}),d=!1;switch(this.shadingType){case fr.FREE_FORM_MESH:this._decodeType4Shading(u);break;case fr.LATTICE_FORM_MESH:let e=o.get(`VerticesPerRow`)|0;if(e<2)throw new F(`Invalid VerticesPerRow`);this._decodeType5Shading(u,e);break;case fr.COONS_PATCH_MESH:this._decodeType6Shading(u),d=!0;break;case fr.TENSOR_PATCH_MESH:this._decodeType7Shading(u),d=!0;break;default:M(`Unsupported mesh type.`);break}if(d){this._updateBounds();for(let e=0,t=this.figures.length;e<t;e++)this._buildFigureFromPatch(e)}this._updateBounds(),this._packData()}_decodeType4Shading(e){let t=this.coords,n=this.colors,r=[],i=[],a=0;for(;e.hasData;){let o=e.readFlag(),s=e.readCoordinate(),c=e.readComponents();if(a===0){if(!(0<=o&&o<=2))throw new F(`Unknown type4 flag`);switch(o){case 0:a=3;break;case 1:i.push(i.at(-2),i.at(-1)),a=1;break;case 2:i.push(i.at(-3),i.at(-1)),a=1;break}r.push(o)}i.push(t.length),t.push(s),n.push(c),a--,e.align()}this.figures.push({type:h.TRIANGLES,coords:new Int32Array(i),colors:new Int32Array(i)})}_decodeType5Shading(e,t){let n=this.coords,r=this.colors,i=[];for(;e.hasData;){let t=e.readCoordinate(),a=e.readComponents();i.push(n.length),n.push(t),r.push(a)}this.figures.push({type:h.LATTICE,coords:new Int32Array(i),colors:new Int32Array(i),verticesPerRow:t})}_decodeType6Shading(e){let t=this.coords,n=this.colors,r=new Int32Array(16),i=new Int32Array(4);for(;e.hasData;){let a=e.readFlag();if(!(0<=a&&a<=3))throw new F(`Unknown type6 flag`);let o=t.length;for(let n=0,r=a===0?12:8;n<r;n++)t.push(e.readCoordinate());let s=n.length;for(let t=0,r=a===0?4:2;t<r;t++)n.push(e.readComponents());let c,l,u,d;switch(a){case 0:r[12]=o+3,r[13]=o+4,r[14]=o+5,r[15]=o+6,r[8]=o+2,r[11]=o+7,r[4]=o+1,r[7]=o+8,r[0]=o,r[1]=o+11,r[2]=o+10,r[3]=o+9,i[2]=s+1,i[3]=s+2,i[0]=s,i[1]=s+3;break;case 1:c=r[12],l=r[13],u=r[14],d=r[15],r[12]=d,r[13]=o+0,r[14]=o+1,r[15]=o+2,r[8]=u,r[11]=o+3,r[4]=l,r[7]=o+4,r[0]=c,r[1]=o+7,r[2]=o+6,r[3]=o+5,c=i[2],l=i[3],i[2]=l,i[3]=s,i[0]=c,i[1]=s+1;break;case 2:c=r[15],l=r[11],r[12]=r[3],r[13]=o+0,r[14]=o+1,r[15]=o+2,r[8]=r[7],r[11]=o+3,r[4]=l,r[7]=o+4,r[0]=c,r[1]=o+7,r[2]=o+6,r[3]=o+5,c=i[3],i[2]=i[1],i[3]=s,i[0]=c,i[1]=s+1;break;case 3:r[12]=r[0],r[13]=o+0,r[14]=o+1,r[15]=o+2,r[8]=r[1],r[11]=o+3,r[4]=r[2],r[7]=o+4,r[0]=r[3],r[1]=o+7,r[2]=o+6,r[3]=o+5,i[2]=i[0],i[3]=s,i[0]=i[1],i[1]=s+1;break}r[5]=t.length,t.push([(-4*t[r[0]][0]-t[r[15]][0]+6*(t[r[4]][0]+t[r[1]][0])-2*(t[r[12]][0]+t[r[3]][0])+3*(t[r[13]][0]+t[r[7]][0]))/9,(-4*t[r[0]][1]-t[r[15]][1]+6*(t[r[4]][1]+t[r[1]][1])-2*(t[r[12]][1]+t[r[3]][1])+3*(t[r[13]][1]+t[r[7]][1]))/9]),r[6]=t.length,t.push([(-4*t[r[3]][0]-t[r[12]][0]+6*(t[r[2]][0]+t[r[7]][0])-2*(t[r[0]][0]+t[r[15]][0])+3*(t[r[4]][0]+t[r[14]][0]))/9,(-4*t[r[3]][1]-t[r[12]][1]+6*(t[r[2]][1]+t[r[7]][1])-2*(t[r[0]][1]+t[r[15]][1])+3*(t[r[4]][1]+t[r[14]][1]))/9]),r[9]=t.length,t.push([(-4*t[r[12]][0]-t[r[3]][0]+6*(t[r[8]][0]+t[r[13]][0])-2*(t[r[0]][0]+t[r[15]][0])+3*(t[r[11]][0]+t[r[1]][0]))/9,(-4*t[r[12]][1]-t[r[3]][1]+6*(t[r[8]][1]+t[r[13]][1])-2*(t[r[0]][1]+t[r[15]][1])+3*(t[r[11]][1]+t[r[1]][1]))/9]),r[10]=t.length,t.push([(-4*t[r[15]][0]-t[r[0]][0]+6*(t[r[11]][0]+t[r[14]][0])-2*(t[r[12]][0]+t[r[3]][0])+3*(t[r[2]][0]+t[r[8]][0]))/9,(-4*t[r[15]][1]-t[r[0]][1]+6*(t[r[11]][1]+t[r[14]][1])-2*(t[r[12]][1]+t[r[3]][1])+3*(t[r[2]][1]+t[r[8]][1]))/9]),this.figures.push({type:h.PATCH,coords:new Int32Array(r),colors:new Int32Array(i)})}}_decodeType7Shading(e){let t=this.coords,n=this.colors,r=new Int32Array(16),i=new Int32Array(4);for(;e.hasData;){let a=e.readFlag();if(!(0<=a&&a<=3))throw new F(`Unknown type7 flag`);let o=t.length;for(let n=0,r=a===0?16:12;n<r;n++)t.push(e.readCoordinate());let s=n.length;for(let t=0,r=a===0?4:2;t<r;t++)n.push(e.readComponents());let c,l,u,d;switch(a){case 0:r[12]=o+3,r[13]=o+4,r[14]=o+5,r[15]=o+6,r[8]=o+2,r[9]=o+13,r[10]=o+14,r[11]=o+7,r[4]=o+1,r[5]=o+12,r[6]=o+15,r[7]=o+8,r[0]=o,r[1]=o+11,r[2]=o+10,r[3]=o+9,i[2]=s+1,i[3]=s+2,i[0]=s,i[1]=s+3;break;case 1:c=r[12],l=r[13],u=r[14],d=r[15],r[12]=d,r[13]=o+0,r[14]=o+1,r[15]=o+2,r[8]=u,r[9]=o+9,r[10]=o+10,r[11]=o+3,r[4]=l,r[5]=o+8,r[6]=o+11,r[7]=o+4,r[0]=c,r[1]=o+7,r[2]=o+6,r[3]=o+5,c=i[2],l=i[3],i[2]=l,i[3]=s,i[0]=c,i[1]=s+1;break;case 2:c=r[15],l=r[11],r[12]=r[3],r[13]=o+0,r[14]=o+1,r[15]=o+2,r[8]=r[7],r[9]=o+9,r[10]=o+10,r[11]=o+3,r[4]=l,r[5]=o+8,r[6]=o+11,r[7]=o+4,r[0]=c,r[1]=o+7,r[2]=o+6,r[3]=o+5,c=i[3],i[2]=i[1],i[3]=s,i[0]=c,i[1]=s+1;break;case 3:r[12]=r[0],r[13]=o+0,r[14]=o+1,r[15]=o+2,r[8]=r[1],r[9]=o+9,r[10]=o+10,r[11]=o+3,r[4]=r[2],r[5]=o+8,r[6]=o+11,r[7]=o+4,r[0]=r[3],r[1]=o+7,r[2]=o+6,r[3]=o+5,i[2]=i[0],i[3]=s,i[0]=i[1],i[1]=s+1;break}this.figures.push({type:h.PATCH,coords:new Int32Array(r),colors:new Int32Array(i)})}}_buildFigureFromPatch(t){let n=this.figures[t];N(n.type===h.PATCH,`Unexpected patch mesh figure`);let r=this.coords,i=this.colors,a=n.coords,o=n.colors,s=Math.min(r[a[0]][0],r[a[3]][0],r[a[12]][0],r[a[15]][0]),c=Math.min(r[a[0]][1],r[a[3]][1],r[a[12]][1],r[a[15]][1]),l=Math.max(r[a[0]][0],r[a[3]][0],r[a[12]][0],r[a[15]][0]),u=Math.max(r[a[0]][1],r[a[3]][1],r[a[12]][1],r[a[15]][1]),d=Math.ceil((l-s)*e.TRIANGLE_DENSITY/(this.bounds[2]-this.bounds[0]));d=rn(d,e.MIN_SPLIT_PATCH_CHUNKS_AMOUNT,e.MAX_SPLIT_PATCH_CHUNKS_AMOUNT);let f=Math.ceil((u-c)*e.TRIANGLE_DENSITY/(this.bounds[3]-this.bounds[1]));f=rn(f,e.MIN_SPLIT_PATCH_CHUNKS_AMOUNT,e.MAX_SPLIT_PATCH_CHUNKS_AMOUNT);let p=d+1,m=new Int32Array((f+1)*p),g=new Int32Array((f+1)*p),_=0,v=new Uint8Array(3),y=new Uint8Array(3),b=i[o[0]],x=i[o[1]],S=i[o[2]],C=i[o[3]],w=Cr(f),T=Cr(d);for(let e=0;e<=f;e++){v[0]=(b[0]*(f-e)+S[0]*e)/f|0,v[1]=(b[1]*(f-e)+S[1]*e)/f|0,v[2]=(b[2]*(f-e)+S[2]*e)/f|0,y[0]=(x[0]*(f-e)+C[0]*e)/f|0,y[1]=(x[1]*(f-e)+C[1]*e)/f|0,y[2]=(x[2]*(f-e)+C[2]*e)/f|0;for(let t=0;t<=d;t++,_++){if((e===0||e===f)&&(t===0||t===d))continue;let n=0,o=0,s=0;for(let i=0;i<=3;i++)for(let c=0;c<=3;c++,s++){let l=w[e][i]*T[t][c];n+=r[a[s]][0]*l,o+=r[a[s]][1]*l}m[_]=r.length,r.push([n,o]),g[_]=i.length;let c=new Uint8Array(3);c[0]=(v[0]*(d-t)+y[0]*t)/d|0,c[1]=(v[1]*(d-t)+y[1]*t)/d|0,c[2]=(v[2]*(d-t)+y[2]*t)/d|0,i.push(c)}}m[0]=a[0],g[0]=o[0],m[d]=a[3],g[d]=o[1],m[p*f]=a[12],g[p*f]=o[2],m[p*f+d]=a[15],g[p*f+d]=o[3],this.figures[t]={type:h.LATTICE,coords:m,colors:g,verticesPerRow:p}}_updateBounds(){gr(this)}_packData(){_r(this)}getIR(){let{posData:e,colData:t,vertexCount:n}=vr(this.coords,this.colors,this.figures);return[`Mesh`,this.shadingType,e,t,n,this.bounds,this.bbox,this.background]}},Er=class extends mr{getIR(){return[`Dummy`]}};function Dr(e,t,n,r=!0){let i=mt(t.getArray(`Matrix`),Xe),a=gt(t.getArray(`BBox`),null);if(!a||a[2]-a[0]===0||a[3]-a[1]===0)throw new F(`Invalid getTilingPatternIR /BBox array.`);let o=t.get(`XStep`);if(typeof o!=`number`)throw new F(`Invalid getTilingPatternIR /XStep value.`);let s=t.get(`YStep`);if(typeof s!=`number`)throw new F(`Invalid getTilingPatternIR /YStep value.`);let c=t.get(`PaintType`);if(!Number.isInteger(c))throw new F(`Invalid getTilingPatternIR /PaintType value.`);let l=t.get(`TilingType`);if(!Number.isInteger(l))throw new F(`Invalid getTilingPatternIR /TilingType value.`);return[`TilingPattern`,n,e,i,a,o,s,c,l,r]}n(116),n(3068),n(7588);function Or(e,t){let n=0;for(let r=0;r<=t;r++)n=n<<8|e[r];return n>>>0}function kr(e,t){return t===1?String.fromCharCode(e[0],e[1]):t===3?String.fromCharCode(e[0],e[1],e[2],e[3]):String.fromCharCode(...e.subarray(0,t+1))}function Ar(e,t,n){let r=0;for(let i=n;i>=0;i--)r+=e[i]+t[i],e[i]=r&255,r>>=8}function jr(e,t){let n=1;for(let r=t;r>=0&&n>0;r--)n+=e[r],e[r]=n&255,n>>=8}var Mr=class extends Cn{tmpBuf=new Uint8Array(19);constructor(e){super(e,0,e.length,null)}readNumber(){let e=0,t;do{let n=this.getByte();if(n<0)throw new F(`unexpected EOF in bcmap`);t=!(n&128),e=e<<7|n&127}while(!t);return e}readSigned(){let e=this.readNumber();return e&1?~(e>>>1):e>>>1}readHex(e,t){e.set(this.getBytes(t+1))}readHexNumber(e,t){let n,r=this.tmpBuf,i=0;do{let e=this.getByte();if(e<0)throw new F(`unexpected EOF in bcmap`);n=!(e&128),r[i++]=e&127}while(!n);let a=t,o=0,s=0;for(;a>=0;){for(;s<8&&r.length>0;)o|=r[--i]<<s,s+=7;e[a]=o&255,a--,o>>=8,s-=8}}readHexSigned(e,t){this.readHexNumber(e,t);let n=e[t]&1?255:0,r=0;for(let i=0;i<=t;i++)r=(r&1)<<8|e[i],e[i]=r>>1^n}readString(){let e=this.readNumber(),t=Array(e);for(let n=0;n<e;n++)t[n]=this.readNumber();return String.fromCharCode(...t)}},Nr=class{async process(e,t,n){let r=new Mr(e);t.vertical=!!(r.getByte()&1);let i=null,a=new Uint8Array(16),o=new Uint8Array(16),s=new Uint8Array(16),c=new Uint8Array(16),l=new Uint8Array(16),u,d;for(;(d=r.getByte())>=0;){let e=d>>5;if(e===7){switch(d&31){case 0:r.readString();break;case 1:i=r.readString();break}continue}let n=!!(d&16),f=d&15;if(f+1>16)throw Error(`BinaryCMapReader.process: Invalid dataSize.`);let p=r.readNumber();switch(e){case 0:r.readHex(a,f),r.readHexNumber(o,f),Ar(o,a,f),t.addCodespaceRange(f+1,Or(a,f),Or(o,f));for(let e=1;e<p;e++)jr(o,f),r.readHexNumber(a,f),Ar(a,o,f),r.readHexNumber(o,f),Ar(o,a,f),t.addCodespaceRange(f+1,Or(a,f),Or(o,f));break;case 1:r.readHex(a,f),r.readHexNumber(o,f),Ar(o,a,f),r.readNumber();for(let e=1;e<p;e++)jr(o,f),r.readHexNumber(a,f),Ar(a,o,f),r.readHexNumber(o,f),Ar(o,a,f),r.readNumber();break;case 2:r.readHex(s,f),u=r.readNumber(),t.mapOne(Or(s,f),u);for(let e=1;e<p;e++)jr(s,f),n||(r.readHexNumber(l,f),Ar(s,l,f)),u=r.readSigned()+(u+1),t.mapOne(Or(s,f),u);break;case 3:r.readHex(a,f),r.readHexNumber(o,f),Ar(o,a,f),u=r.readNumber(),t.mapCidRange(Or(a,f),Or(o,f),u);for(let e=1;e<p;e++)jr(o,f),n?a.set(o):(r.readHexNumber(a,f),Ar(a,o,f)),r.readHexNumber(o,f),Ar(o,a,f),u=r.readNumber(),t.mapCidRange(Or(a,f),Or(o,f),u);break;case 4:r.readHex(s,1),r.readHex(c,f),t.mapOne(Or(s,1),kr(c,f));for(let e=1;e<p;e++)jr(s,1),n||(r.readHexNumber(l,1),Ar(s,l,1)),jr(c,f),r.readHexSigned(l,f),Ar(c,l,f),t.mapOne(Or(s,1),kr(c,f));break;case 5:r.readHex(a,1),r.readHexNumber(o,1),Ar(o,a,1),r.readHex(c,f),t.mapBfRange(Or(a,1),Or(o,1),kr(c,f));for(let e=1;e<p;e++)jr(o,1),n?a.set(o):(r.readHexNumber(a,1),Ar(a,o,1)),r.readHexNumber(o,1),Ar(o,a,1),r.readHex(c,f),t.mapBfRange(Or(a,1),Or(o,1),kr(c,f));break;default:throw Error(`BinaryCMapReader.process - unknown type: ${e}`)}}return i?n(i):t}},Pr=class extends Fn{#e=new Uint8Array(5);constructor(e,t){t&&(t*=.8),super(t),this.stream=e,this.dict=e.dict}readBlock(){let e=this.stream,t=e.getByte();for(;dt(t);)t=e.getByte();if(t===-1||t===126){this.eof=!0;return}let n=this.bufferLength,r,i;if(t===122)r=this.ensureBuffer(n+4),r.fill(0,n,n+4),this.bufferLength+=4;else{let a=this.#e;for(a[0]=t,i=1;i<5;++i){for(t=e.getByte();dt(t);)t=e.getByte();if(a[i]=t,t===-1||t===126)break}r=this.ensureBuffer(n+i-1),this.bufferLength+=i-1,i<5&&(a.fill(117,i,5),this.eof=!0);let o=0;for(i=0;i<5;++i)o=o*85+(a[i]-33);for(i=3;i>=0;--i)r[n+i]=o&255,o>>=8}}},Fr=class extends Fn{constructor(e,t){t&&(t*=.5),super(t),this.stream=e,this.dict=e.dict,this.firstDigit=-1}readBlock(){let e=this.stream.getBytes(8e3);if(!e.length){this.eof=!0;return}let t=e.length+1>>1,n=this.ensureBuffer(this.bufferLength+t),r=this.bufferLength,i=this.firstDigit;for(let t of e){let e;if(t>=48&&t<=57)e=t&15;else if(t>=65&&t<=70||t>=97&&t<=102)e=(t&15)+9;else if(t===62){this.eof=!0;break}else continue;i<0?i=e:(n[r++]=i<<4|e,i=-1)}i>=0&&this.eof&&(n[r++]=i<<4,i=-1),this.firstDigit=i,this.bufferLength=r}};let Ir=(()=>{let e=Int32Array.from([256,402,436,468,500,534,566,598,630,662,694,726,758,790,822,854,886,920,952,984,1016,1048,1080]),t=Int32Array.from([1,2,3,4,0,5,17,6,16,7,8,9,10,11,12,13,14,15]),n=Int32Array.from([0,3,2,1,0,0,0,0,0,0,3,3,3,3,3,3]),r=Int32Array.from([0,0,0,0,-1,1,-2,2,-3,3,-1,1,-2,2,-3,3]),i=Int32Array.from([131072,131076,131075,196610,131072,131076,131075,262145,131072,131076,131075,196610,131072,131076,131075,262149]),a=Int32Array.from([1,5,9,13,17,25,33,41,49,65,81,97,113,145,177,209,241,305,369,497,753,1265,2289,4337,8433,16625]),o=Int32Array.from([2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,6,6,7,8,9,10,11,12,13,24]),s=Int16Array.from([0,0,0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,7,8,9,10,12,14,24]),c=Int16Array.from([0,0,0,0,0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,7,8,9,10,24]),l=new Int16Array(2816);p(l);function u(e){let t=-1,n=16,r=e;for(;n>0;){let e=r>>n;e!==0&&(t+=n,r=e),n>>=1}return t+r}function d(e,t,n){return 16+t+2*(n<<e)}function f(e,t,n,r){if(t<r+(2<<n))return We(e,-23);let i=(t-r>>n)+4,a=u(i)-1;return((a-1<<1|i>>a&1)-1<<n)+(1<<n)+r+16}function p(e){let t=new Int32Array(24),n=new Int32Array(24);n[0]=2;for(let e=0;e<23;++e)t[e+1]=t[e]+(1<<s[e]),n[e+1]=n[e]+(1<<c[e]);for(let r=0;r<704;++r){let i=r>>6,a=-4;i>=2&&(i-=2,a=0);let o=(170064>>i*2&3)<<3|r>>3&7,l=(156228>>i*2&3)<<3|r&7,u=n[l],d=a+Math.min(u,5)-2,f=r*4;e[f]=s[o]|c[l]<<8,e[f+1]=t[o],e[f+2]=n[l],e[f+3]=d}}function m(e){let t=e.isLargeWindow;if(e.isLargeWindow=0,e.bitOffset>=16&&(e.accumulator32=e.shortBuffer[e.halfOffset++]<<16|e.accumulator32>>>16,e.bitOffset-=16),Ce(e,1)===0)return 16;let n=Ce(e,3);return n===0?(n=Ce(e,3),n===0?17:n===1?t===0||(e.isLargeWindow=1,Ce(e,1)===1)||(n=Ce(e,6),n<10||n>30)?-1:n:8+n):17+n}function h(e,t){return e.runningState===1?(e.cdNumChunks===0&&(e.cdChunks=Array(16),e.cdChunkOffsets=new Int32Array(16),e.cdBlockBits=-1),e.cdNumChunks===15?We(e,-27):(e.cdChunks[e.cdNumChunks]=t,e.cdNumChunks++,e.cdTotalSize+=t.length,e.cdChunkOffsets[e.cdNumChunks]=e.cdTotalSize,0)):We(e,-24)}function g(e){if(e.runningState!==0)return We(e,-26);e.blockTrees=new Int32Array(3091),e.blockTrees[0]=7,e.distRbIdx=3;let t=f(e,2147483644,3,120);if(t<0)return t;let n=t;return e.distExtraBits=new Int8Array(n),e.distOffset=new Int32Array(n),t=Te(e),t<0?t:(e.runningState=1,0)}function _(e){return e.runningState===0?We(e,-25):(e.runningState>0&&(e.runningState=11),0)}function v(e){if(e.bitOffset>=16&&(e.accumulator32=e.shortBuffer[e.halfOffset++]<<16|e.accumulator32>>>16,e.bitOffset-=16),Ce(e,1)!==0){let t=Ce(e,3);return t===0?1:Ce(e,t)+(1<<t)}return 0}function y(e){if(e.bitOffset>=16&&(e.accumulator32=e.shortBuffer[e.halfOffset++]<<16|e.accumulator32>>>16,e.bitOffset-=16),e.inputEnd=Ce(e,1),e.metaBlockLength=0,e.isUncompressed=0,e.isMetadata=0,e.inputEnd!==0&&Ce(e,1)!==0)return 0;let t=Ce(e,2)+4;if(t===7){if(e.isMetadata=1,Ce(e,1)!==0)return We(e,-6);let t=Ce(e,2);if(t===0)return 0;for(let n=0;n<t;++n){e.bitOffset>=16&&(e.accumulator32=e.shortBuffer[e.halfOffset++]<<16|e.accumulator32>>>16,e.bitOffset-=16);let r=Ce(e,8);if(r===0&&n+1===t&&t>1)return We(e,-8);e.metaBlockLength+=r<<n*8}}else for(let n=0;n<t;++n){e.bitOffset>=16&&(e.accumulator32=e.shortBuffer[e.halfOffset++]<<16|e.accumulator32>>>16,e.bitOffset-=16);let r=Ce(e,4);if(r===0&&n+1===t&&t>4)return We(e,-8);e.metaBlockLength+=r<<n*4}return e.metaBlockLength++,e.inputEnd===0&&(e.isUncompressed=Ce(e,1)),0}function b(e,t,n){let r=e[t],i=n.accumulator32>>>n.bitOffset;r+=i&255;let a=e[r]>>16,o=e[r]&65535;if(a<=8)return n.bitOffset+=a,o;r+=o;let s=(1<<a)-1;return r+=(i&s)>>>8,n.bitOffset+=(e[r]>>16)+8,e[r]&65535}function x(e,t,n){n.bitOffset>=16&&(n.accumulator32=n.shortBuffer[n.halfOffset++]<<16|n.accumulator32>>>16,n.bitOffset-=16);let r=b(e,t,n),i=o[r];return n.bitOffset>=16&&(n.accumulator32=n.shortBuffer[n.halfOffset++]<<16|n.accumulator32>>>16,n.bitOffset-=16),a[r]+(i<=16?Ce(n,i):we(n,i))}function S(e,t){let n=t,r=e[n];for(;n>0;)e[n]=e[n-1],n--;e[0]=r}function C(e,t){let n=new Int32Array(256);for(let e=0;e<256;++e)n[e]=e;for(let r=0;r<t;++r){let t=e[r]&255;e[r]=n[t],t!==0&&S(n,t)}}function w(e,t,n,r){let i=0,a=8,o=0,s=0,c=32768,l=new Int32Array(33);for(be(l,l.length-1,5,e,18);i<t&&c>0;){if(r.halfOffset>2030){let e=xe(r);if(e<0)return e}r.bitOffset>=16&&(r.accumulator32=r.shortBuffer[r.halfOffset++]<<16|r.accumulator32>>>16,r.bitOffset-=16);let e=r.accumulator32>>>r.bitOffset&31;r.bitOffset+=l[e]>>16;let u=l[e]&65535;if(u<16)o=0,n[i++]=u,u!==0&&(a=u,c-=32768>>u);else{let e=u-14,l=0;u===16&&(l=a),s!==l&&(o=0,s=l);let d=o;o>0&&(o-=2,o<<=e),r.bitOffset>=16&&(r.accumulator32=r.shortBuffer[r.halfOffset++]<<16|r.accumulator32>>>16,r.bitOffset-=16),o+=Ce(r,e)+3;let f=o-d;if(i+f>t)return We(r,-2);for(let e=0;e<f;++e)n[i++]=s;s!==0&&(c-=f<<15-s)}}return c===0?(n.fill(0,i,t),0):We(r,-18)}function T(e,t,n){for(let r=0;r<n-1;++r)for(let i=r+1;i<n;++i)if(t[r]===t[i])return We(e,-7);return 0}function E(e,t,n,r,i){let a=new Int32Array(t),o=new Int32Array(4),s=1+u(e-1),c=Ce(i,2)+1;for(let e=0;e<c;++e){i.bitOffset>=16&&(i.accumulator32=i.shortBuffer[i.halfOffset++]<<16|i.accumulator32>>>16,i.bitOffset-=16);let n=Ce(i,s);if(n>=t)return We(i,-15);o[e]=n}let l=T(i,o,c);if(l<0)return l;let d=c;switch(c===4&&(d+=Ce(i,1)),d){case 1:a[o[0]]=1;break;case 2:a[o[0]]=1,a[o[1]]=1;break;case 3:a[o[0]]=1,a[o[1]]=2,a[o[2]]=2;break;case 4:a[o[0]]=2,a[o[1]]=2,a[o[2]]=2,a[o[3]]=2;break;case 5:a[o[0]]=1,a[o[1]]=2,a[o[2]]=3,a[o[3]]=3;break;default:break}return be(n,r,8,a,t)}function D(e,n,r,a,o){let s=new Int32Array(e),c=new Int32Array(18),l=32,u=0;for(let e=n;e<18;++e){let n=t[e];o.bitOffset>=16&&(o.accumulator32=o.shortBuffer[o.halfOffset++]<<16|o.accumulator32>>>16,o.bitOffset-=16);let r=o.accumulator32>>>o.bitOffset&15;o.bitOffset+=i[r]>>16;let a=i[r]&65535;if(c[n]=a,a!==0&&(l-=32>>a,u++,l<=0))break}if(l!==0&&u!==1)return We(o,-4);let d=w(c,e,s,o);return d<0?d:be(r,a,8,s,e)}function O(e,t,n,r,i){if(i.halfOffset>2030){let e=xe(i);if(e<0)return e}i.bitOffset>=16&&(i.accumulator32=i.shortBuffer[i.halfOffset++]<<16|i.accumulator32>>>16,i.bitOffset-=16);let a=Ce(i,2);return a===1?E(e,t,n,r,i):D(t,a,n,r,i)}function ee(t,n,r){let i;if(r.halfOffset>2030&&(i=xe(r),i<0))return i;let a=v(r)+1;if(a===1)return n.fill(0,0,t),a;r.bitOffset>=16&&(r.accumulator32=r.shortBuffer[r.halfOffset++]<<16|r.accumulator32>>>16,r.bitOffset-=16);let o=Ce(r,1),s=0;o!==0&&(s=Ce(r,4)+1);let c=a+s,l=e[c+31>>5],u=new Int32Array(l+1),d=u.length-1;if(i=O(c,c,u,d,r),i<0)return i;let f=0;for(;f<t;){if(r.halfOffset>2030&&(i=xe(r),i<0))return i;r.bitOffset>=16&&(r.accumulator32=r.shortBuffer[r.halfOffset++]<<16|r.accumulator32>>>16,r.bitOffset-=16);let e=b(u,d,r);if(e===0)n[f]=0,f++;else if(e<=s){r.bitOffset>=16&&(r.accumulator32=r.shortBuffer[r.halfOffset++]<<16|r.accumulator32>>>16,r.bitOffset-=16);let i=(1<<e)+Ce(r,e);for(;i!==0;){if(f>=t)return We(r,-3);n[f]=0,f++,i--}}else n[f]=e-s,f++}return r.bitOffset>=16&&(r.accumulator32=r.shortBuffer[r.halfOffset++]<<16|r.accumulator32>>>16,r.bitOffset-=16),Ce(r,1)===1&&C(n,t),a}function te(e,t,n){let r=e.rings,i=4+t*2;e.bitOffset>=16&&(e.accumulator32=e.shortBuffer[e.halfOffset++]<<16|e.accumulator32>>>16,e.bitOffset-=16);let a=b(e.blockTrees,2*t,e),o=x(e.blockTrees,2*t+1,e);return a===1?a=r[i+1]+1:a===0?a=r[i]:a-=2,a>=n&&(a-=n),r[i]=r[i+1],r[i+1]=a,o}function ne(e){e.literalBlockLength=te(e,0,e.numLiteralBlockTypes);let t=e.rings[5];e.contextMapSlice=t<<6,e.literalTreeIdx=e.contextMap[e.contextMapSlice]&255,e.contextLookupOffset1=e.contextModes[t]<<9,e.contextLookupOffset2=e.contextLookupOffset1+256}function k(e){e.commandBlockLength=te(e,1,e.numCommandBlockTypes),e.commandTreeIdx=e.rings[7]}function A(e){e.distanceBlockLength=te(e,2,e.numDistanceBlockTypes),e.distContextMapSlice=e.rings[9]<<2}function j(e){let t=e.maxRingBufferSize;if(t>e.expectedTotalSize){let n=e.expectedTotalSize;for(;t>>1>n;)t>>=1;e.inputEnd===0&&t<16384&&e.maxRingBufferSize>=16384&&(t=16384)}if(t<=e.ringBufferSize)return;let n=t+37,r=new Int8Array(n),i=e.ringBuffer;i.length!==0&&r.set(i.subarray(0,e.ringBufferSize),0),e.ringBuffer=r,e.ringBufferSize=t}function M(e){if(e.inputEnd!==0)return e.nextRunningState=10,e.runningState=12,0;e.literalTreeGroup=new Int32Array,e.commandTreeGroup=new Int32Array,e.distanceTreeGroup=new Int32Array;let t;if(e.halfOffset>2030&&(t=xe(e),t<0)||(t=y(e),t<0))return t;if(e.metaBlockLength===0&&e.isMetadata===0)return 0;if(e.isUncompressed!==0||e.isMetadata!==0){if(t=Oe(e),t<0)return t;e.isMetadata===0?e.runningState=6:e.runningState=5}else e.runningState=3;return e.isMetadata===0?(e.expectedTotalSize+=e.metaBlockLength,e.expectedTotalSize>1<<30&&(e.expectedTotalSize=1<<30),e.ringBufferSize<e.maxRingBufferSize&&j(e),0):0}function N(e,t,n){let r=e.blockTrees[2*t];if(n<=1)return e.blockTrees[2*t+1]=r,e.blockTrees[2*t+2]=r,1<<28;let i=n+2,a=O(i,i,e.blockTrees,2*t,e);return a<0?a:(r+=a,e.blockTrees[2*t+1]=r,a=O(26,26,e.blockTrees,2*t+1,e),a<0?a:(r+=a,e.blockTrees[2*t+2]=r,x(e.blockTrees,2*t+1,e)))}function re(e,t){let n=e.distExtraBits,r=e.distOffset,i=e.distancePostfixBits,a=e.numDirectDistanceCodes,o=1<<i,s=1,c=0,l=16;for(let e=0;e<a;++e)n[l]=0,r[l]=e+1,++l;for(;l<t;){let e=a+((2+c<<s)-4<<i)+1;for(let t=0;t<o;++t)n[l]=s,r[l]=e+t,++l;s+=c,c^=1}}function ie(e){e.numLiteralBlockTypes=v(e)+1;let t=N(e,0,e.numLiteralBlockTypes);if(t<0||(e.literalBlockLength=t,e.numCommandBlockTypes=v(e)+1,t=N(e,1,e.numCommandBlockTypes),t<0)||(e.commandBlockLength=t,e.numDistanceBlockTypes=v(e)+1,t=N(e,2,e.numDistanceBlockTypes),t<0)||(e.distanceBlockLength=t,e.halfOffset>2030&&(t=xe(e),t<0)))return t;e.bitOffset>=16&&(e.accumulator32=e.shortBuffer[e.halfOffset++]<<16|e.accumulator32>>>16,e.bitOffset-=16),e.distancePostfixBits=Ce(e,2),e.numDirectDistanceCodes=Ce(e,4)<<e.distancePostfixBits,e.contextModes=new Int8Array(e.numLiteralBlockTypes);let n=0;for(;n<e.numLiteralBlockTypes;){let r=Math.min(n+96,e.numLiteralBlockTypes);for(;n<r;)e.bitOffset>=16&&(e.accumulator32=e.shortBuffer[e.halfOffset++]<<16|e.accumulator32>>>16,e.bitOffset-=16),e.contextModes[n]=Ce(e,2),n++;if(e.halfOffset>2030&&(t=xe(e),t<0))return t}let r=e.numLiteralBlockTypes<<6;if(e.contextMap=new Int8Array(r),t=ee(r,e.contextMap,e),t<0)return t;let i=t;e.trivialLiteralContext=1;for(let t=0;t<r;++t)if(e.contextMap[t]!==t>>6){e.trivialLiteralContext=0;break}if(e.distContextMap=new Int8Array(e.numDistanceBlockTypes<<2),t=ee(e.numDistanceBlockTypes<<2,e.distContextMap,e),t<0)return t;let a=t;if(e.literalTreeGroup=new Int32Array(oe(256,i)),t=se(256,256,i,e,e.literalTreeGroup),t<0||(e.commandTreeGroup=new Int32Array(oe(704,e.numCommandBlockTypes)),t=se(704,704,e.numCommandBlockTypes,e,e.commandTreeGroup),t<0))return t;let o=d(e.distancePostfixBits,e.numDirectDistanceCodes,24),s=o;if(e.isLargeWindow===1){if(o=d(e.distancePostfixBits,e.numDirectDistanceCodes,62),t=f(e,2147483644,e.distancePostfixBits,e.numDirectDistanceCodes),t<0)return t;s=t}return e.distanceTreeGroup=new Int32Array(oe(s,a)),t=se(o,s,a,e,e.distanceTreeGroup),t<0?t:(re(e,s),e.contextMapSlice=0,e.distContextMapSlice=0,e.contextLookupOffset1=e.contextModes[0]*512,e.contextLookupOffset2=e.contextLookupOffset1+256,e.literalTreeIdx=0,e.commandTreeIdx=0,e.rings[4]=1,e.rings[5]=0,e.rings[6]=1,e.rings[7]=0,e.rings[8]=1,e.rings[9]=0,0)}function ae(e){let t=e.ringBuffer,n;if(e.metaBlockLength<=0)return n=De(e),n<0?n:(e.runningState=2,0);let r=Math.min(e.ringBufferSize-e.pos,e.metaBlockLength);return n=Ae(e,t,e.pos,r),n<0?n:(e.metaBlockLength-=r,e.pos+=r,e.pos===e.ringBufferSize?(e.nextRunningState=6,e.runningState=12,0):(n=De(e),n<0?n:(e.runningState=2,0)))}function P(e){let t=Math.min(e.outputLength-e.outputUsed,e.ringBufferBytesReady-e.ringBufferBytesWritten);return t!==0&&(e.output.set(e.ringBuffer.subarray(e.ringBufferBytesWritten,e.ringBufferBytesWritten+t),e.outputOffset+e.outputUsed),e.outputUsed+=t,e.ringBufferBytesWritten+=t),e.outputUsed<e.outputLength?0:2}function oe(t,n){return n+n*e[t+31>>5]}function se(e,t,n,r,i){let a=n;for(let o=0;o<n;++o){i[o]=a;let n=O(e,t,i,o,r);if(n<0)return n;a+=n}return 0}function ce(e){let t=e.ringBufferSize;return e.isEager!==0&&(t=Math.min(t,e.ringBufferBytesWritten+e.outputLength-e.outputUsed)),t}function le(e,t){if(e.distance>2147483644)return We(e,-9);let n=e.distance-e.maxDistance-1-e.cdTotalSize;if(n<0){let t=F(e,-n-1,e.copyLength);if(t<0)return t;e.runningState=14}else{let r=Pe,i=e.copyLength;if(i>31)return We(e,-9);let a=R[i];if(a===0)return We(e,-9);let o=L[i],s=n&(1<<a)-1,c=n>>a;o+=s*i;let l=me;if(c>=l.numTransforms)return We(e,-9);let u=ge(e.ringBuffer,e.pos,r,o,i,l,c);if(e.pos+=u,e.metaBlockLength-=u,e.pos>=t)return e.nextRunningState=4,e.runningState=12,0;e.runningState=4}return 0}function ue(e){e.cdBlockMap=new Int8Array(256);let t=8;for(;e.cdTotalSize-1>>t;)t++;t-=8,e.cdBlockBits=t;let n=0,r=0;for(;n<e.cdTotalSize;){for(;e.cdChunkOffsets[r+1]<n;)r++;e.cdBlockMap[n>>t]=r,n+=1<<t}}function F(e,t,n){e.cdBlockBits===-1&&ue(e);let r=e.cdBlockMap[t>>e.cdBlockBits];for(;t>=e.cdChunkOffsets[r+1];)r++;return e.cdTotalSize>t+n?We(e,-9):(e.distRbIdx=e.distRbIdx+1&3,e.rings[e.distRbIdx]=e.distance,e.metaBlockLength-=n,e.cdBrIndex=r,e.cdBrOffset=t-e.cdChunkOffsets[r],e.cdBrLength=n,e.cdBrCopied=0,0)}function de(e,t){let n=e.pos,r=n;for(;e.cdBrLength!==e.cdBrCopied;){let r=t-n,i=e.cdChunkOffsets[e.cdBrIndex+1]-e.cdChunkOffsets[e.cdBrIndex]-e.cdBrOffset,a=e.cdBrLength-e.cdBrCopied;if(a>i&&(a=i),a>r&&(a=r),e.ringBuffer.set(e.cdChunks[e.cdBrIndex].subarray(e.cdBrOffset,e.cdBrOffset+a),n),n+=a,e.cdBrOffset+=a,e.cdBrCopied+=a,a===i&&(e.cdBrIndex++,e.cdBrOffset=0),n>=t)break}return n-r}function fe(e){let t;if(e.runningState===0)return We(e,-25);if(e.runningState<0)return We(e,-28);if(e.runningState===11)return We(e,-22);if(e.runningState===1){let t=m(e);if(t===-1)return We(e,-11);e.maxRingBufferSize=1<<t,e.maxBackwardDistance=e.maxRingBufferSize-16,e.runningState=2}let i=ce(e),a=e.ringBufferSize-1,o=e.ringBuffer;for(;e.runningState!==10;)switch(e.runningState){case 2:if(e.metaBlockLength<0)return We(e,-10);if(t=M(e),t<0)return t;i=ce(e),a=e.ringBufferSize-1,o=e.ringBuffer;continue;case 3:if(t=ie(e),t<0)return t;e.runningState=4;continue;case 4:if(e.metaBlockLength<=0){e.runningState=2;continue}if(e.halfOffset>2030&&(t=xe(e),t<0))return t;e.commandBlockLength===0&&k(e),e.commandBlockLength--,e.bitOffset>=16&&(e.accumulator32=e.shortBuffer[e.halfOffset++]<<16|e.accumulator32>>>16,e.bitOffset-=16);let s=b(e.commandTreeGroup,e.commandTreeIdx,e)<<2,c=l[s],u=l[s+1],d=l[s+2];e.distanceCode=l[s+3],e.bitOffset>=16&&(e.accumulator32=e.shortBuffer[e.halfOffset++]<<16|e.accumulator32>>>16,e.bitOffset-=16);let f=c&255;e.insertLength=u+(f<=16?Ce(e,f):we(e,f)),e.bitOffset>=16&&(e.accumulator32=e.shortBuffer[e.halfOffset++]<<16|e.accumulator32>>>16,e.bitOffset-=16);let p=c>>8;e.copyLength=d+(p<=16?Ce(e,p):we(e,p)),e.j=0,e.runningState=7;continue;case 7:if(e.trivialLiteralContext!==0)for(;e.j<e.insertLength;){if(e.halfOffset>2030&&(t=xe(e),t<0))return t;if(e.literalBlockLength===0&&ne(e),e.literalBlockLength--,e.bitOffset>=16&&(e.accumulator32=e.shortBuffer[e.halfOffset++]<<16|e.accumulator32>>>16,e.bitOffset-=16),o[e.pos]=b(e.literalTreeGroup,e.literalTreeIdx,e),e.pos++,e.j++,e.pos>=i){e.nextRunningState=7,e.runningState=12;break}}else{let n=o[e.pos-1&a]&255,r=o[e.pos-2&a]&255;for(;e.j<e.insertLength;){if(e.halfOffset>2030&&(t=xe(e),t<0))return t;e.literalBlockLength===0&&ne(e);let a=Me[e.contextLookupOffset1+n]|Me[e.contextLookupOffset2+r],s=e.contextMap[e.contextMapSlice+a]&255;if(e.literalBlockLength--,r=n,e.bitOffset>=16&&(e.accumulator32=e.shortBuffer[e.halfOffset++]<<16|e.accumulator32>>>16,e.bitOffset-=16),n=b(e.literalTreeGroup,s,e),o[e.pos]=n,e.pos++,e.j++,e.pos>=i){e.nextRunningState=7,e.runningState=12;break}}}if(e.runningState!==7)continue;if(e.metaBlockLength-=e.insertLength,e.metaBlockLength<=0){e.runningState=4;continue}let m=e.distanceCode;if(m<0)e.distance=e.rings[e.distRbIdx];else{if(e.halfOffset>2030&&(t=xe(e),t<0))return t;e.distanceBlockLength===0&&A(e),e.distanceBlockLength--,e.bitOffset>=16&&(e.accumulator32=e.shortBuffer[e.halfOffset++]<<16|e.accumulator32>>>16,e.bitOffset-=16);let i=e.distContextMap[e.distContextMapSlice+m]&255;if(m=b(e.distanceTreeGroup,i,e),m<16){let t=e.distRbIdx+n[m]&3;if(e.distance=e.rings[t]+r[m],e.distance<0)return We(e,-12)}else{let t=e.distExtraBits[m],n;e.bitOffset+t<=32?n=Ce(e,t):(e.bitOffset>=16&&(e.accumulator32=e.shortBuffer[e.halfOffset++]<<16|e.accumulator32>>>16,e.bitOffset-=16),n=t<=16?Ce(e,t):we(e,t)),e.distance=e.distOffset[m]+(n<<e.distancePostfixBits)}}if(e.maxDistance!==e.maxBackwardDistance&&e.pos<e.maxBackwardDistance?e.maxDistance=e.pos:e.maxDistance=e.maxBackwardDistance,e.distance>e.maxDistance){e.runningState=9;continue}if(m>0&&(e.distRbIdx=e.distRbIdx+1&3,e.rings[e.distRbIdx]=e.distance),e.copyLength>e.metaBlockLength)return We(e,-9);e.j=0,e.runningState=8;continue;case 8:let h=e.pos-e.distance&a,g=e.pos,_=e.copyLength-e.j,v=h+_,y=g+_;if(v<a&&y<a){if(_<12||v>g&&y>h){let e=_+3>>2;for(let t=0;t<e;++t)o[g++]=o[h++],o[g++]=o[h++],o[g++]=o[h++],o[g++]=o[h++]}else o.copyWithin(g,h,v);e.j+=_,e.metaBlockLength-=_,e.pos+=_}else for(;e.j<e.copyLength;)if(o[e.pos]=o[e.pos-e.distance&a],e.metaBlockLength--,e.pos++,e.j++,e.pos>=i){e.nextRunningState=8,e.runningState=12;break}e.runningState===8&&(e.runningState=4);continue;case 9:if(t=le(e,i),t<0)return t;continue;case 14:if(e.pos+=de(e,i),e.pos>=i)return e.nextRunningState=14,e.runningState=12,2;e.runningState=4;continue;case 5:for(;e.metaBlockLength>0;){if(e.halfOffset>2030&&(t=xe(e),t<0))return t;e.bitOffset>=16&&(e.accumulator32=e.shortBuffer[e.halfOffset++]<<16|e.accumulator32>>>16,e.bitOffset-=16),Ce(e,8),e.metaBlockLength--}e.runningState=2;continue;case 6:if(t=ae(e),t<0)return t;continue;case 12:e.ringBufferBytesReady=Math.min(e.pos,e.ringBufferSize),e.runningState=13;continue;case 13:if(t=P(e),t!==0)return t;e.pos>=e.maxBackwardDistance&&(e.maxDistance=e.maxBackwardDistance),e.pos>=e.ringBufferSize&&(e.pos>e.ringBufferSize&&o.copyWithin(0,e.ringBufferSize,e.pos),e.pos&=a,e.ringBufferBytesWritten=0),e.runningState=e.nextRunningState;continue;default:return We(e,-28)}return e.runningState===10?e.metaBlockLength<0?We(e,-10):(t=Oe(e),t!==0||(t=Se(e,1),t!==0)?t:1):We(e,-29)}function pe(e,t,n){this.numTransforms=0,this.triplets=new Int32Array,this.prefixSuffixStorage=new Int8Array,this.prefixSuffixHeads=new Int32Array,this.params=new Int16Array,this.numTransforms=e,this.triplets=new Int32Array(e*3),this.params=new Int16Array(e),this.prefixSuffixStorage=new Int8Array(t),this.prefixSuffixHeads=new Int32Array(n+1)}let me=new pe(121,167,50);function he(e,t,n,r,i){let a=Ue(r),o=a.length,s=1,c=0;for(let n=0;n<o;++n){let r=a[n];r===35?t[s++]=c:e[c++]=r}for(let e=0;e<363;++e)n[e]=i.charCodeAt(e)-32}he(me.prefixSuffixStorage,me.prefixSuffixHeads,me.triplets,`# #s #, #e #.# the #.com/#Â\\xA0# of # and # in # to #"#">#\n#]# for # a # that #. # with #\'# from # by #. The # on # as # is #ing #\n #:#ed #(# at #ly #="# of the #. This #,# not #er #al #=\'#ful #ive #less #est #ize #ous #`,` !! ! , *! &! " ! ) * * - ! # ! #!*! + ,$ ! - % . / # 0 1 . " 2 3!* 4% ! # / 5 6 7 8 0 1 & $ 9 + : ; < \' != > ?! 4 @ 4 2 & A *# ( B C& ) % ) !*# *-% A +! *. D! %\' & E *6 F G% ! *A *% H! D I!+! J!+ K +- *4! A L!*4 M N +6 O!*% +.! K *G P +%( ! G *D +D Q +# *K!*G!+D!+# +G +A +4!+% +K!+4!*D!+K!*K`);function ge(e,t,n,r,i,a,o){let s=t,c=a.triplets,l=a.prefixSuffixStorage,u=a.prefixSuffixHeads,d=3*o,f=c[d],p=c[d+1],m=c[d+2],h=u[f],g=u[f+1],_=u[m],v=u[m+1],y=p-11,b=p;for((y<1||y>9)&&(y=0),(b<1||b>9)&&(b=0);h!==g;)e[s++]=l[h++];let x=i;y>x&&(y=x);let S=r+y;x-=y,x-=b;let C=x;for(;C>0;)e[s++]=n[S++],C--;if(p===10||p===11){let t=s-x;for(p===10&&(x=1);x>0;){let n=e[t]&255;n<192?(n>=97&&n<=122&&(e[t]=e[t]^32),t+=1,--x):n<224?(e[t+1]=e[t+1]^32,t+=2,x-=2):(e[t+2]=e[t+2]^5,t+=3,x-=3)}}else if(p===21||p===22){let t=s-x,n=a.params[o],r=(n&32767)+(16777216-(n&32768));for(;x>0;){let n=1,i=e[t]&255;if(i<128)r+=i,e[t]=r&127;else if(!(i<192)){if(i<224)if(x>=2){let a=e[t+1];r+=a&63|(i&31)<<6,e[t]=192|r>>6&31,e[t+1]=a&192|r&63,n=2}else n=x;else if(i<240)if(x>=3){let a=e[t+1],o=e[t+2];r+=o&63|(a&63)<<6|(i&15)<<12,e[t]=224|r>>12&15,e[t+1]=a&192|r>>6&63,e[t+2]=o&192|r&63,n=3}else n=x;else if(i<248)if(x>=4){let a=e[t+1],o=e[t+2],s=e[t+3];r+=s&63|(o&63)<<6|(a&63)<<12|(i&7)<<18,e[t]=240|r>>18&7,e[t+1]=a&192|r>>12&63,e[t+2]=o&192|r>>6&63,e[t+3]=s&192|r&63,n=4}else n=x}t+=n,x-=n,p===21&&(x=0)}}for(;_!==v;)e[s++]=l[_++];return s-t}function _e(e,t){let n=1<<t-1;for(;(e&n)!==0;)n>>=1;return(e&n-1)+n}function ve(e,t,n,r,i){let a=r;for(;a>0;)a-=n,e[t+a]=i}function ye(e,t,n){let r=t,i=1<<r-n;for(;r<15&&(i-=e[r],!(i<=0));)r++,i<<=1;return r-n}function be(e,t,n,r,i){let a=e[t],o=new Int32Array(i),s=new Int32Array(16),c=new Int32Array(16);for(let e=0;e<i;++e)s[r[e]]++;c[1]=0;for(let e=1;e<15;++e)c[e+1]=c[e]+s[e];for(let e=0;e<i;++e)r[e]!==0&&(o[c[r[e]]++]=e);let l=n,u=1<<l,d=u;if(c[15]===1){for(let t=0;t<d;++t)e[a+t]=o[0];return d}let f=0,p=0,m=1;for(let t=1;t<=n;++t)for(m<<=1;s[t]>0;)ve(e,a+f,m,u,t<<16|o[p++]),f=_e(f,t),s[t]--;let h=d-1,g=-1,_=a;m=1;for(let t=n+1;t<=15;++t)for(m<<=1;s[t]>0;)(f&h)!==g&&(_+=u,l=ye(s,t,n),u=1<<l,d+=u,g=f&h,e[a+g]=l+n<<16|_-a-g),ve(e,_+(f>>n),m,u,t-n<<16|o[p++]),f=_e(f,t),s[t]--;return d}function xe(e){if(e.endOfStreamReached!==0)return ke(e)>=-2?0:We(e,-16);let t=e.halfOffset<<1,n=4096-t;for(e.byteBuffer.copyWithin(0,t,4096),e.halfOffset=0;n<4096;){let t=4096-n,r=Be(e,e.byteBuffer,n,t);if(r<-1)return r;if(r<=0){e.endOfStreamReached=1,e.tailBytes=n,n+=1;break}n+=r}return je(e,n),0}function Se(e,t){if(e.endOfStreamReached===0)return 0;let n=(e.halfOffset<<1)+(e.bitOffset+7>>3)-4;return n>e.tailBytes?We(e,-13):t!==0&&n!==e.tailBytes?We(e,-17):0}function Ce(e,t){let n=e.accumulator32>>>e.bitOffset&(1<<t)-1;return e.bitOffset+=t,n}function we(e,t){let n=Ce(e,16);return e.accumulator32=e.shortBuffer[e.halfOffset++]<<16|e.accumulator32>>>16,e.bitOffset-=16,n|Ce(e,t-16)<<16}function Te(e){return e.byteBuffer=new Int8Array(4160),e.accumulator32=0,e.shortBuffer=new Int16Array(2080),e.bitOffset=32,e.halfOffset=2048,e.endOfStreamReached=0,Ee(e)}function Ee(e){if(e.halfOffset>2030){let t=xe(e);if(t!==0)return t}let t=Se(e,0);return t===0?(e.accumulator32=e.shortBuffer[e.halfOffset++]<<16|e.accumulator32>>>16,e.bitOffset-=16,e.accumulator32=e.shortBuffer[e.halfOffset++]<<16|e.accumulator32>>>16,e.bitOffset-=16,0):t}function De(e){return e.bitOffset===32?Ee(e):0}function Oe(e){let t=32-e.bitOffset&7;return t!==0&&Ce(e,t)!==0?We(e,-5):0}function ke(e){let t=2048;return e.endOfStreamReached!==0&&(t=e.tailBytes+1>>1),t-e.halfOffset}function Ae(e,t,n,r){let i=n,a=r;if(e.bitOffset&7)return We(e,-30);for(;e.bitOffset!==32&&a!==0;)t[i++]=e.accumulator32>>>e.bitOffset,e.bitOffset+=8,a--;if(a===0)return 0;let o=Math.min(ke(e),a>>1);if(o>0){let n=e.halfOffset<<1,r=o<<1;t.set(e.byteBuffer.subarray(n,n+r),i),i+=r,a-=r,e.halfOffset+=o}if(a===0)return 0;if(ke(e)>0){for(e.bitOffset>=16&&(e.accumulator32=e.shortBuffer[e.halfOffset++]<<16|e.accumulator32>>>16,e.bitOffset-=16);a!==0;)t[i++]=e.accumulator32>>>e.bitOffset,e.bitOffset+=8,a--;return Se(e,0)}for(;a>0;){let n=Be(e,t,i,a);if(n<-1)return n;if(n<=0)return We(e,-16);i+=n,a-=n}return 0}function je(e,t){let n=e.byteBuffer,r=t>>1,i=e.shortBuffer;for(let e=0;e<r;++e)i[e]=n[e*2]&255|(n[e*2+1]&255)<<8}let Me=new Int32Array(2048);function I(e,t,n){for(let t=0;t<256;++t)e[t]=t&63,e[512+t]=t>>2,e[1792+t]=2+(t>>6);for(let n=0;n<128;++n)e[1024+n]=4*(t.charCodeAt(n)-32);for(let t=0;t<64;++t)e[1152+t]=t&1,e[1216+t]=2+(t&1);let r=1280;for(let t=0;t<19;++t){let i=t&3,a=n.charCodeAt(t)-32;for(let t=0;t<a;++t)e[r++]=i}for(let t=0;t<16;++t)e[1792+t]=1,e[2032+t]=6;e[1792]=0,e[2047]=7;for(let t=0;t<256;++t)e[1536+t]=e[1792+t]<<3}I(Me,` !! ! "#$##%#$&\'##(#)#++++++++++((&*\'##,---,---,-----,-----,-----&#\'###.///.///./////./////./////&#\'# `,`A/* \': & : $  @`);function Ne(){this.ringBuffer=new Int8Array,this.contextModes=new Int8Array,this.contextMap=new Int8Array,this.distContextMap=new Int8Array,this.distExtraBits=new Int8Array,this.output=new Int8Array,this.byteBuffer=new Int8Array,this.shortBuffer=new Int16Array,this.intBuffer=new Int32Array,this.rings=new Int32Array,this.blockTrees=new Int32Array,this.literalTreeGroup=new Int32Array,this.commandTreeGroup=new Int32Array,this.distanceTreeGroup=new Int32Array,this.distOffset=new Int32Array,this.accumulator64=0,this.runningState=0,this.nextRunningState=0,this.accumulator32=0,this.bitOffset=0,this.halfOffset=0,this.tailBytes=0,this.endOfStreamReached=0,this.metaBlockLength=0,this.inputEnd=0,this.isUncompressed=0,this.isMetadata=0,this.literalBlockLength=0,this.numLiteralBlockTypes=0,this.commandBlockLength=0,this.numCommandBlockTypes=0,this.distanceBlockLength=0,this.numDistanceBlockTypes=0,this.pos=0,this.maxDistance=0,this.distRbIdx=0,this.trivialLiteralContext=0,this.literalTreeIdx=0,this.commandTreeIdx=0,this.j=0,this.insertLength=0,this.contextMapSlice=0,this.distContextMapSlice=0,this.contextLookupOffset1=0,this.contextLookupOffset2=0,this.distanceCode=0,this.numDirectDistanceCodes=0,this.distancePostfixBits=0,this.distance=0,this.copyLength=0,this.maxBackwardDistance=0,this.maxRingBufferSize=0,this.ringBufferSize=0,this.expectedTotalSize=0,this.outputOffset=0,this.outputLength=0,this.outputUsed=0,this.ringBufferBytesWritten=0,this.ringBufferBytesReady=0,this.isEager=0,this.isLargeWindow=0,this.cdNumChunks=0,this.cdTotalSize=0,this.cdBrIndex=0,this.cdBrOffset=0,this.cdBrLength=0,this.cdBrCopied=0,this.cdChunks=[],this.cdChunkOffsets=new Int32Array,this.cdBlockBits=0,this.cdBlockMap=new Int8Array,this.input=new ze(new Int8Array),this.ringBuffer=new Int8Array,this.rings=new Int32Array(10),this.rings[0]=16,this.rings[1]=15,this.rings[2]=11,this.rings[3]=4}let Pe=new Int8Array,L=new Int32Array(32),R=new Int32Array(32);function Fe(e,t){let n=L,r=R;for(let e=0;e<t.length;++e)r[e]=t[e];let i=0;for(let e=0;e<t.length;++e){n[e]=i;let t=r[e];t!==0&&(i+=e<<(t&31))}for(let e=t.length;e<32;++e)n[e]=i;Pe=e}function Ie(e,t,n,r,i,a){let o=He(t+n),s=Ue(r),c=0,l=s.length>>1;for(let e=0;e<l;++e){let t=s[2*e]-36,n=s[2*e+1]-36;for(let e=0;e<t;++e)o[c]=o[c]^3,c++;for(let e=0;e<n;++e)o[c]=o[c]^236,c++}for(let e=0;e<a.length;++e)i[e]=a.charCodeAt(e)-65;e.set(o)}let Le=new Int8Array(122784),Re=new Int32Array(25);Ie(Le,\'wjnfgltmojefofewab`h`lgfgbwbpkltlmozpjwf`jwzlsfmivpwojhfeqfftlqhwf{wzfbqlufqalgzolufelqnallhsobzojufojmfkfosklnfpjgfnlqftlqgolmdwkfnujftejmgsbdfgbzpevookfbgwfqnfb`kbqfbeqlnwqvfnbqhbaofvslmkjdkgbwfobmgmftpfufmmf{w`bpfalwkslpwvpfgnbgfkbmgkfqftkbwmbnfOjmhaoldpjyfabpfkfognbhfnbjmvpfq$*#(klogfmgptjwkMftpqfbgtfqfpjdmwbhfkbufdbnfpffm`boosbwktfoosovpnfmvejonsbqwiljmwkjpojpwdllgmffgtbzptfpwilapnjmgboploldlqj`kvpfpobpwwfbnbqnzellghjmdtjoofbpwtbqgafpwejqfSbdfhmltbtbz-smdnlufwkbmolbgdjufpfoemlwfnv`keffgnbmzql`hj`lmlm`follhkjgfgjfgKlnfqvofklpwbib{jmel`ovaobtpofppkboeplnfpv`kylmf233&lmfp`bqfWjnfqb`faovfelvqtffheb`fklsfdbufkbqgolpwtkfmsbqhhfswsbpppkjsqllnKWNOsobmWzsfglmfpbufhffseobdojmhplogejufwllhqbwfwltmivnswkvpgbqh`bqgejofefbqpwbzhjoowkbweboobvwlfufq-`lnwbohpklsulwfgffsnlgfqfpwwvqmalqmabmgefooqlpfvqo+phjmqlof`lnfb`wpbdfpnffwdlog-isdjwfnubqzefowwkfmpfmggqlsUjft`lsz2-3!?,b=pwlsfopfojfpwlvqsb`h-djesbpw`pp<dqbznfbm%dw8qjgfpklwobwfpbjgqlbgubq#effoilkmqj`hslqwebpw$VB.gfbg?,a=sllqajoowzsfV-P-tllgnvpw1s{8JmelqbmhtjgftbmwtbooofbgX3^8sbvotbufpvqf\\\'+$ tbjwnbppbqnpdlfpdbjmobmdsbjg"..#ol`hvmjwqllwtbohejqntjef{no!plmdwfpw13s{hjmgqltpwlloelmwnbjopbefpwbqnbsp`lqfqbjmeoltabazpsbmpbzp7s{85s{8bqwpellwqfbotjhjkfbwpwfswqjslqd,obhftfbhwlogElqn`bpwebmpabmhufqzqvmpivozwbph2s{8dlbodqftpoltfgdfjg>!pfwp6s{8-ip<73s{je#+pllmpfbwmlmfwvafyfqlpfmwqffgeb`wjmwldjewkbqn2;s{`bnfkjooalogyllnuljgfbpzqjmdejoosfbhjmjw`lpw0s{8ib`hwbdpajwpqloofgjwhmftmfbq?"..dqltIPLMgvwzMbnfpbofzlv#olwpsbjmibyy`logfzfpejpkttt-qjphwbapsqfu23s{qjpf16s{Aovfgjmd033/abooelqgfbqmtjogal{-ebjqob`hufqpsbjqivmfwf`kje+"sj`hfujo\\\'+! tbqnolqgglfpsvoo/333jgfbgqbtkvdfpslwevmgavqmkqfe`foohfzpwj`hklvqolppevfo21s{pvjwgfboQPP!bdfgdqfzDFW!fbpfbjnpdjqobjgp;s{8mbuzdqjgwjsp :::tbqpobgz`bqp*8#~sks<kfoowbootklnyk9 ), #233kboo- B4s{8svpk`kbw3s{8`qft),?,kbpk46s{eobwqbqf#%%#wfoo`bnslmwlobjgnjppphjswfmwejmfnbofdfwpsolw733/  `lloeffw-sks?aq=fqj`nlpwdvjgafoogfp`kbjqnbwkbwln,jnd% ;1ov`h`fmw3338wjmzdlmfkwnopfoogqvdEQFFmlgfmj`h<jg>olpfmvooubpwtjmgQPP#tfbqqfozaffmpbnfgvhfmbpb`bsftjpkdvoeW109kjwppolwdbwfhj`haovqwkfz26s{$$*8*8!=npjftjmpajqgplqwafwbpffhW2;9lqgpwqffnboo53s{ebqnlupalzpX3^-$*8!SLPWafbqhjgp*8~~nbqzwfmg+VH*rvbgyk9\\n.pjy....sqls$*8ojewW2:9uj`fbmgzgfaw=QPPsllomf`haoltW259gllqfuboW249ofwpebjolqbosloomlub`lopdfmf#lxplewqlnfwjooqlpp?k0=slvqebgfsjmh?wq=njmj*"+njmfyk9abqpkfbq33*8njoh#..=jqlmeqfggjphtfmwpljosvwp,ip,klozW119JPAMW139bgbnpffp?k1=iplm$/#$`lmwW129#QPPollsbpjbnllm?,s=plvoOJMFelqw`bqwW279?k2=;3s{"..?:s{8W379njhf975Ymj`fjm`kZlqhqj`fyk9\\b$**8svqfnbdfsbqbwlmfalmg904Y\\\\le\\\\$^*8333/yk9\\vwbmhzbqgaltoavpk965YIbub03s{ ~ &@0&907YifeeF[SJ`bpkujpbdloepmltyk9rvfq-`pppj`hnfbwnjm-ajmggfookjqfsj`pqfmw905YKWWS.132elwltloeFMG#{al{967YALGZgj`h8 ~ f{jw906Yubqpafbw$~*8gjfw:::8bmmf~~?,Xj^-Obmdhn.^tjqfwlzpbggppfbobof{8 \\n~f`klmjmf-lqd336*wlmziftppbmgofdpqlle333*#133tjmfdfbqgldpallwdbqz`vwpwzofwfnswjlm-{no`l`hdbmd\\\'+$-63s{Sk-Gnjp`bobmolbmgfphnjofqzbmvmj{gjp`*8~ gvpw`ojs*- 43s{.133GUGp4^=?wbsfgfnlj((*tbdffvqlskjolswpklofEBRpbpjm.15WobapsfwpVQO#avoh`llh8~ KFBGX3^*baaqivbm+2:;ofpkwtjm?,j=plmzdvzpev`hsjsf. "331*mgltX2^8X^8 Old#pbow \\n\\nabmdwqjnabwk*x 33s{ ~*8hl9\\0effpbg=p9,,#X^8wloosovd+*x x #-ip$133sgvboalbw-ISD*8 ~rvlw*8 $*8  ~1327132613251324132;132:13131312131113101317131613151314131;131:130313021301130013071306130513041320132113221323133:133;133413351336133713301331133213332:::2::;2::42::52::62::72::02::12::22::32:;:2:;;2:;42:;52:;62:;72:;02:;12:;22:;32:4:2:4;2:442:452:462:472:402:412:422:432:5:2:5;2:542:552:562:572:502:512:522:532:6:2:6;2:642:652:662:672:602:612:622:632333231720:73333::::`lnln/Mpfpwffpwbsfqlwlglkb`f`bgbb/]lajfmg/Abbp/Aujgb`bpllwqlelqlplollwqb`vbogjilpjgldqbmwjslwfnbgfafbodlrv/Efpwlmbgbwqfpsl`l`bpbabilwlgbpjmlbdvbsvfpvmlpbmwfgj`fovjpfoobnbzlylmbbnlqsjpllaqb`oj`foolgjlpklqb`bpj<[<\\\\<Q<\\\\<R<P=l<\\\\=l=o=n<\\\\<Q<Y<S<R<R=n<T<[<Q<R<X<R=n<R<Z<Y<R<Q<T=i<q<\\\\<Y<Y<]=g<P=g<~=g=m<R<^=g<^<R<q<R<R<]<s<R<W<T<Q<T<L<H<q<Y<p=g=n=g<r<Q<T<P<X<\\\\<{<\\\\<x<\\\\<q=o<r<]=n<Y<t<[<Y<U<Q=o<P<P<N=g=o<Z5m5f4O5j5i4K5i4U5o5h4O5d4]4C5f4K5m5e5k5d5h5i5h5o4K5d5h5k4D4_4K5h4I5j5k5f4O5f5n4C5k5h4G5i4D5k5h5d5h5f4D5h4K5f4D5o4X5f4K5i4O5i5j4F4D5f5h5j4A4D5k5i5i4X5d4Xejqpwujgflojdkwtlqognfgjbtkjwf`olpfaob`hqjdkwpnbooallhpsob`fnvpj`ejfoglqgfqsljmwubovfofufowbaofalbqgklvpfdqlvstlqhpzfbqppwbwfwlgbztbwfqpwbqwpwzofgfbwksltfqsklmfmjdkwfqqlqjmsvwbalvwwfqnpwjwofwllopfufmwol`bowjnfpobqdftlqgpdbnfppklqwpsb`fel`vp`ofbqnlgfoaol`hdvjgfqbgjlpkbqftlnfmbdbjmnlmfzjnbdfmbnfpzlvmdojmfpobwfq`lolqdqffmeqlmw%bns8tbw`kelq`fsqj`fqvofpafdjmbewfqujpjwjppvfbqfbpafoltjmgf{wlwboklvqpobafosqjmwsqfppavjowojmhppsffgpwvgzwqbgfelvmgpfmpfvmgfqpkltmelqnpqbmdfbggfgpwjoonlufgwbhfmbalufeobpkej{fglewfmlwkfqujftp`kf`hofdboqjufqjwfnprvj`hpkbsfkvnbmf{jpwdljmdnlujfwkjqgabpj`sfb`fpwbdftjgwkoldjmjgfbptqlwfsbdfpvpfqpgqjufpwlqfaqfbhplvwkulj`fpjwfpnlmwktkfqfavjogtkj`kfbqwkelqvnwkqffpslqwsbqwz@oj`holtfqojufp`obppobzfqfmwqzpwlqzvpbdfplvmg`lvqwzlvq#ajqwkslsvswzsfpbssozJnbdfafjmdvssfqmlwfpfufqzpkltpnfbmpf{wqbnbw`kwqb`hhmltmfbqozafdbmpvsfqsbsfqmlqwkofbqmdjufmmbnfgfmgfgWfqnpsbqwpDqlvsaqbmgvpjmdtlnbmebopfqfbgzbvgjlwbhfptkjof-`ln,ojufg`bpfpgbjoz`kjogdqfbwivgdfwklpfvmjwpmfufqaqlbg`lbpw`lufqbssofejofp`z`ofp`fmfsobmp`oj`htqjwfrvffmsjf`ffnbjoeqbnflogfqsklwlojnjw`b`kf`jujop`boffmwfqwkfnfwkfqfwlv`kalvmgqlzbobphfgtklofpjm`fpwl`h#mbnfebjwkkfbqwfnswzleefqp`lsfltmfgnjdkwboavnwkjmhaollgbqqbznbilqwqvpw`bmlmvmjlm`lvmwubojgpwlmfPwzofOldjmkbsszl``vqofew9eqfpkrvjwfejonpdqbgfmffgpvqabmejdkwabpjpklufqbvwl8qlvwf-kwnonj{fgejmboZlvq#pojgfwlsj`aqltmbolmfgqbtmpsojwqfb`kQjdkwgbwfpnbq`krvlwfdllgpOjmhpglvawbpzm`wkvnaboolt`kjfezlvwkmlufo23s{8pfqufvmwjokbmgp@kf`hPsb`frvfqzibnfpfrvbowtj`f3/333Pwbqwsbmfoplmdpqlvmgfjdkwpkjewtlqwkslpwpofbgptffhpbuljgwkfpfnjofpsobmfpnbqwboskbsobmwnbqhpqbwfpsobzp`objnpbofpwf{wppwbqptqlmd?,k0=wkjmd-lqd,nvowjkfbqgSltfqpwbmgwlhfmplojg+wkjpaqjmdpkjsppwbeewqjfg`boopevoozeb`wpbdfmwWkjp#,,..=bgnjmfdzswFufmw26s{8Fnbjowqvf!`qlpppsfmwaoldpal{!=mlwfgofbuf`kjmbpjyfpdvfpw?,k7=qlalwkfbuzwqvf/pfufmdqbmg`qjnfpjdmpbtbqfgbm`fskbpf=?"..fm\\\\VP% 0:8133s{\\\\mbnfobwjmfmilzbib{-bwjlmpnjwkV-P-#klogpsfwfqjmgjbmbu!=`kbjmp`lqf`lnfpgljmdsqjlqPkbqf2::3pqlnbmojpwpibsbmeboopwqjboltmfqbdqff?,k1=bavpfbofqwlsfqb!.,,T`bqgpkjoopwfbnpSklwlwqvwk`ofbm-sks<pbjmwnfwboolvjpnfbmwsqlleaqjfeqlt!=dfmqfwqv`hollhpUbovfEqbnf-mfw,..= ?wqz#x ubq#nbhfp`lpwpsobjmbgvowrvfpwwqbjmobalqkfosp`bvpfnbdj`nlwlqwkfjq163s{ofbpwpwfsp@lvmw`lvogdobpppjgfpevmgpklwfobtbqgnlvwknlufpsbqjpdjufpgvw`kwf{bpeqvjwmvoo/X^8wls!= ?"..SLPW!l`fbm?aq,=eollqpsfbhgfswk#pjyfabmhp`bw`k`kbqw13s{8bojdmgfboptlvog63s{8vqo>!sbqhpnlvpfNlpw#---?,bnlmdaqbjmalgz#mlmf8abpfg`bqqzgqbewqfefqsbdf\\\\klnf-nfwfqgfobzgqfbnsqlufiljmw?,wq=gqvdp?"..#bsqjojgfboboofmf{b`welqwk`lgfpoldj`Ujft#pffnpaobmhslqwp#+133pbufg\\\\ojmhdlbopdqbmwdqffhklnfpqjmdpqbwfg03s{8tklpfsbqpf+*8!#Aol`hojmv{ilmfpsj{fo$*8!=*8je+.ofewgbujgklqpfEl`vpqbjpfal{fpWqb`hfnfmw?,fn=abq!=-pq`>wltfqbow>!`baofkfmqz17s{8pfwvsjwbozpkbqsnjmlqwbpwftbmwpwkjp-qfpfwtkffodjqop,`pp,233&8`ovappwveeajaofulwfp#2333hlqfb~*8 abmgprvfvf>#x~8;3s{8`hjmdx \\n\\nbkfbg`ol`hjqjpkojhf#qbwjlpwbwpElqn!zbkll*X3^8Balvwejmgp?,k2=gfavdwbphpVQO#>`foop~*+*821s{8sqjnfwfoopwvqmp3{533-isd!psbjmafb`kwb{fpnj`qlbmdfo..=?,djewppwfuf.ojmhalgz-~*8 \\nnlvmw#+2::EBR?,qldfqeqbmh@obpp1;s{8effgp?k2=?p`lwwwfpwp11s{8gqjmh*##oftjppkboo 30:8#elq#olufgtbpwf33s{8ib9npjnlm?elmwqfsoznffwpvmwfq`kfbswjdkwAqbmg*#">#gqfpp`ojspqllnplmhfznlajonbjm-Mbnf#sobwfevmmzwqffp`ln,!2-isdtnlgfsbqbnPWBQWofew#jggfm/#132*8 ~ elqn-ujqvp`kbjqwqbmptlqpwSbdfpjwjlmsbw`k?".. l.`b`ejqnpwlvqp/333#bpjbmj((*xbglaf$*X3^jg>23alwk8nfmv#-1-nj-smd!hfujm`lb`k@kjogaqv`f1-isdVQO*(-isdpvjwfpoj`fkbqqz213!#ptffwwq= mbnf>gjfdlsbdf#ptjpp..= eee8!=Old-`ln!wqfbwpkffw*#%%#27s{8poffsmwfmwejofgib9ojg>!`Mbnf!tlqpfpklwp.al{.gfowb %ow8afbqp97;Y?gbwb.qvqbo?,b=#psfmgabhfqpklsp>#!!8sks!=`wjlm20s{8aqjbmkfoolpjyf>l>&1E#iljmnbzaf?jnd#jnd!=/#eipjnd!#!*X3^NWlsAWzsf!mftozGbmph`yf`kwqbjohmltp?,k6=ebr!=yk.`m23*8 .2!*8wzsf>aovfpwqvozgbujp-ip$8= ?"pwffo#zlv#k1= elqn#ifpvp233&#nfmv- \\n tbofpqjphpvnfmwggjmda.ojhwfb`kdje!#ufdbpgbmphffpwjpkrjspvlnjplaqfgfpgffmwqfwlglpsvfgfb/]lpfpw/Mwjfmfkbpwblwqlpsbqwfglmgfmvfulkb`fqelqnbnjpnlnfilqnvmglbrv/Ag/Abpp/_olbzvgbef`kbwlgbpwbmwlnfmlpgbwlplwqbppjwjlnv`klbklqbovdbqnbzlqfpwlpklqbpwfmfqbmwfpelwlpfpwbpsb/Apmvfubpbovgelqlpnfgjlrvjfmnfpfpslgfq`kjofpfq/Muf`fpgf`jqilp/Efpwbqufmwbdqvslkf`klfoolpwfmdlbnjdl`lpbpmjufodfmwfnjpnbbjqfpivojlwfnbpkb`jbebulqivmjlojaqfsvmwlavfmlbvwlqbaqjoavfmbwf{wlnbqylpbafqojpwbovfdl`/_nlfmfqlivfdlsfq/Vkbafqfpwlzmvm`bnvifqubolqevfqbojaqldvpwbjdvboulwlp`bplpdv/Absvfglplnlpbujplvpwfggfafmml`kfavp`bebowbfvqlppfqjfgj`kl`vqpl`obuf`bpbpof/_msobylobqdllaqbpujpwbbslzlivmwlwqbwbujpwl`qfbq`bnslkfnlp`jm`l`bqdlsjplplqgfmkb`fm/Mqfbgjp`lsfgql`fq`bsvfgbsbsfonfmlq/Vwjo`obqlilqdf`boofslmfqwbqgfmbgjfnbq`bpjdvffoobppjdol`l`kfnlwlpnbgqf`obpfqfpwlmj/]lrvfgbsbpbqabm`lkjilpujbifsbaol/Epwfujfmfqfjmlgfibqelmgl`bmbomlqwfofwqb`bvpbwlnbqnbmlpovmfpbvwlpujoobufmglsfpbqwjslpwfmdbnbq`loofubsbgqfvmjglubnlpylmbpbnalpabmgbnbqjbbavplnv`kbpvajqqjlibujujqdqbgl`kj`bboo/Ailufmgj`kbfpwbmwbofppbojqpvfolsfplpejmfpoobnbavp`l/Epwboofdbmfdqlsobybkvnlqsbdbqivmwbglaofjpobpalopbab/]lkbaobov`kb/mqfbgj`fmivdbqmlwbpuboofboo/M`bqdbglolqbabilfpw/Edvpwlnfmwfnbqjlejqnb`lpwlej`kbsobwbkldbqbqwfpofzfpbrvfonvpflabpfpsl`lpnjwbg`jfol`kj`lnjfgldbmbqpbmwlfwbsbgfafpsobzbqfgfppjfwf`lqwf`lqfbgvgbpgfpflujfilgfpfbbdvbp%rvlw8glnbjm`lnnlmpwbwvpfufmwpnbpwfqpzpwfnb`wjlmabmmfqqfnlufp`qloovsgbwfdolabonfgjvnejowfqmvnafq`kbmdfqfpvowsvaoj`p`qffm`kllpfmlqnbowqbufojppvfpplvq`fwbqdfwpsqjmdnlgvofnlajofptjw`ksklwlpalqgfqqfdjlmjwpfoepl`jbob`wjuf`lovnmqf`lqgelooltwjwof=fjwkfqofmdwkebnjozeqjfmgobzlvwbvwklq`qfbwfqfujftpvnnfqpfqufqsobzfgsobzfqf{sbmgsloj`zelqnbwglvaofsljmwppfqjfpsfqplmojujmdgfpjdmnlmwkpelq`fpvmjrvftfjdkwsflsoffmfqdzmbwvqfpfbq`kejdvqfkbujmd`vpwlnleepfwofwwfqtjmgltpvanjwqfmgfqdqlvspvsolbgkfbowknfwklgujgflpp`klloevwvqfpkbgltgfabwfubovfpLaif`wlwkfqpqjdkwpofbdvf`kqlnfpjnsofmlwj`fpkbqfgfmgjmdpfbplmqfslqwlmojmfprvbqfavwwlmjnbdfpfmbaofnlujmdobwfpwtjmwfqEqbm`fsfqjlgpwqlmdqfsfbwOlmglmgfwbjoelqnfggfnbmgpf`vqfsbppfgwlddofsob`fpgfuj`fpwbwj``jwjfppwqfbnzfooltbwwb`hpwqffweojdkwkjggfmjmel!=lsfmfgvpfevouboofz`bvpfpofbgfqpf`qfwpf`lmggbnbdfpslqwpf{`fswqbwjmdpjdmfgwkjmdpfeef`wejfogppwbwfpleej`fujpvbofgjwlqulovnfQfslqwnvpfvnnlujfpsbqfmwb``fppnlpwoznlwkfq!#jg>!nbqhfwdqlvmg`kbm`fpvqufzafelqfpznalonlnfmwpsff`knlwjlmjmpjgfnbwwfq@fmwfqlaif`wf{jpwpnjggofFvqlsfdqltwkofdb`znbmmfqfmlvdk`bqffqbmptfqlqjdjmslqwbo`ojfmwpfof`wqbmgln`olpfgwlsj`p`lnjmdebwkfqlswjlmpjnsozqbjpfgfp`bsf`klpfm`kvq`kgfejmfqfbplm`lqmfqlvwsvwnfnlqzjeqbnfsloj`fnlgfopMvnafqgvqjmdleefqppwzofphjoofgojpwfg`boofgpjoufqnbqdjmgfofwfafwwfqaqltpfojnjwpDolabopjmdoftjgdfw`fmwfqavgdfwmltqbs`qfgjw`objnpfmdjmfpbefwz`klj`fpsjqjw.pwzofpsqfbgnbhjmdmffgfgqvppjbsofbpff{wfmwP`qjswaqlhfmbooltp`kbqdfgjujgfeb`wlqnfnafq.abpfgwkflqz`lmejdbqlvmgtlqhfgkfosfg@kvq`kjnsb`wpklvogbotbzpoldl!#alwwlnojpw!=*xubq#sqfej{lqbmdfKfbgfq-svpk+`lvsofdbqgfmaqjgdfobvm`kQfujftwbhjmdujpjlmojwwofgbwjmdAvwwlmafbvwzwkfnfpelqdlwPfbq`kbm`klqbonlpwolbgfg@kbmdfqfwvqmpwqjmdqfolbgNlajofjm`lnfpvssozPlvq`flqgfqpujftfg%maps8`lvqpfBalvw#jpobmg?kwno#`llhjfmbnf>!bnbylmnlgfqmbguj`fjm?,b=9#Wkf#gjboldklvpfpAFDJM#Nf{j`lpwbqwp`fmwqfkfjdkwbggjmdJpobmgbppfwpFnsjqfP`kllofeelqwgjqf`wmfbqoznbmvboPfof`w- Lmfiljmfgnfmv!=SkjojsbtbqgpkbmgofjnslqwLeej`fqfdbqgphjoopmbwjlmPslqwpgfdqfftffhoz#+f-d-afkjmggl`wlqolddfgvmjwfg?,a=?,afdjmpsobmwpbppjpwbqwjpwjppvfg033s{`bmbgbbdfm`zp`kfnfqfnbjmAqbyjopbnsofoldl!=afzlmg.p`bofb``fswpfqufgnbqjmfEllwfq`bnfqb?,k2= \\\\elqn!ofbufppwqfpp!#,= -dje!#lmolbgolbgfqL{elqgpjpwfqpvqujuojpwfmefnbofGfpjdmpjyf>!bssfbowf{w!=ofufopwkbmhpkjdkfqelq`fgbmjnbobmzlmfBeqj`bbdqffgqf`fmwSflsof?aq#,=tlmgfqsqj`fpwvqmfg#x~8nbjm!=jmojmfpvmgbztqbs!=ebjofg`fmpvpnjmvwfafb`lmrvlwfp263s{fpwbwfqfnlwffnbjo!ojmhfgqjdkw8pjdmboelqnbo2-kwnopjdmvssqjm`feolbw9-smd!#elqvn-B``fppsbsfqpplvmgpf{wfmgKfjdkwpojgfqVWE.;!%bns8#Afelqf-#TjwkpwvgjlltmfqpnbmbdfsqlejwiRvfqzbmmvbosbqbnpalvdkwebnlvpdlldofolmdfqj((*#xjpqbfopbzjmdgf`jgfklnf!=kfbgfqfmpvqfaqbm`ksjf`fpaol`h8pwbwfgwls!=?qb`jmdqfpjyf..%dw8sb`jwzpf{vboavqfbv-isd!#23/333lawbjmwjwofpbnlvmw/#Jm`-`lnfgznfmv!#ozqj`pwlgbz-jmgffg`lvmwz\\\\oldl-EbnjozollhfgNbqhfwopf#jeSobzfqwvqhfz*8ubq#elqfpwdjujmdfqqlqpGlnbjm~fopfxjmpfqwAold?,ellwfqoldjm-ebpwfqbdfmwp?algz#23s{#3sqbdnbeqjgbzivmjlqgloobqsob`fg`lufqpsovdjm6/333#sbdf!=alpwlm-wfpw+bubwbqwfpwfg\\\\`lvmwelqvnpp`kfnbjmgf{/ejoofgpkbqfpqfbgfqbofqw+bssfbqPvanjwojmf!=algz!= )#WkfWklvdkpffjmdifqpfzMftp?,ufqjezf{sfqwjmivqztjgwk>@llhjfPWBQW#b`qlpp\\\\jnbdfwkqfbgmbwjufsl`hfwal{!= Pzpwfn#Gbujg`bm`fqwbaofpsqlufgBsqjo#qfboozgqjufqjwfn!=nlqf!=albqgp`lolqp`bnsvpejqpw##X^8nfgjb-dvjwbqejmjpktjgwk9pkltfgLwkfq#-sks!#bppvnfobzfqptjoplmpwlqfpqfojfeptfgfm@vpwlnfbpjoz#zlvq#Pwqjmd Tkjowbzolq`ofbq9qfplqweqfm`kwklvdk!*#(#!?algz=avzjmdaqbmgpNfnafqmbnf!=lssjmdpf`wlq6s{8!=upsb`fslpwfqnbilq#`leeffnbqwjmnbwvqfkbssfm?,mbu=hbmpbpojmh!=Jnbdfp>ebopftkjof#kpsb`f3%bns8# Jm##sltfqSlophj.`lolqilqgbmAlwwlnPwbqw#.`lvmw1-kwnomftp!=32-isdLmojmf.qjdkwnjoofqpfmjlqJPAM#33/333#dvjgfpubovf*f`wjlmqfsbjq-{no!##qjdkwp-kwno.aol`hqfdF{s9klufqtjwkjmujqdjmsklmfp?,wq=vpjmd# \\nubq#=$*8 \\n?,wg= ?,wq= abkbpbaqbpjodbofdlnbdzbqslophjpqsphj4]4C5d\\bTA\\nzk\\vBl\\bQ\\vUmGx\\bSM\\nmC\\bTA wQ\\nd}\\bW@\\bTl\\bTF i@ cT\\vBM\\v|jBV qw cC\\bWI\\npa fM\\n{Z{X\\bTF\\bVV\\bVK mkF []\\bPm\\bTv\\nsI\\vpg [I\\bQpmx\\v_W\\n^M\\npe\\vQ}\\vGu\\nel\\npeChBV\\bTA So\\nzk\\vGL\\vxD\\nd[JzMY\\bQpli\\nfl\\npC{BNt\\vwT i_\\bTgQQ\\n|p\\vXN\\bQS\\vxDQC\\bWZ pD\\vVS\\bTWNtYh\\nzuKjN} wr Ha\\n_D j`\\vQ}\\vWp\\nxZ{c ji BU\\nbDa| Tn pV\\nZd\\nmC\\vEV{X c} To\\bWl\\bUd IQ cg\\vxs\\nXW wR\\vek c} ]y Jn\\nrp\\neg\\npV\\nz\\\\{W\\npl\\nz\\\\\\nzU Pc `{\\bV@\\nc|\\bRw i_\\bVb\\nwX HvSu\\bTF\\v_W\\vWs\\vsIm\\nTT\\ndc US }f iZ\\bWz c}MD Be iD\\v@@\\bTl\\bPv }tSwM`\\vnU kW\\ved\\nqo\\vxY A|\\bTz\\vy`BRBM iaXU\\nyun^ fL iI\\nXW fD\\bWz\\bW@ yj m av BN\\vb\\\\ pD\\bTf\\nY[ Jn\\bQy [^\\vWc\\vyuDlCJ\\vWj\\vHR `V\\vuW Qy\\np@\\vGuplJm\\bW[\\nLP\\nxC\\n`m wQuiR\\nbI wQ BZ WVBR\\npg cgtiCW\\n_y Rg\\bQa\\vQB\\vWc\\nYble\\ngESu\\nL[ Q ea dj\\v]W\\nb~M` wL\\bTV\\bVH\\nt\\npl |bs_\\bU|\\bTaoQlvSkM`\\bTv\\vK}\\nfl cCoQBR Hk |d\\bQp HK BZ\\vHR\\bPv\\vLx\\vEZ\\bT\\bTv iDoDMU\\vwBSuk`St\\ntC Pl Kg\\noi jY\\vxYh}\\nzk\\bWZ m\\ve` TB fE\\nzk `zYh\\nV| HK AJ AJ\\bUL p\\\\ ql\\nYcKd\\nfyYh [I\\vDgJm\\n]n\\nlb\\bUd\\n{Z lu fsoQ\\bTWJm\\vwB eaYhBC sb Tn\\nzU\\n_y\\vxY Q]\\ngwmt O\\\\\\ntb\\bWW\\bQy mI V[\\ny\\\\\\naB\\vRb wQ\\n]QQJ\\bWg\\vWa\\bQj\\ntC\\bVH\\nYm\\vxs\\bVK\\nel\\bWI\\vxYCq\\ntR\\vHV\\bTl\\bVw ay\\bQa\\bVV }t dj\\nr| p\\\\ wR\\n{i\\nTT [I i[ AJ\\vxs\\v_W d{\\vQ} cg Tz A| Cj\\vLmN}m\\nbK dZ p\\\\ `V sV\\np@ iD wQ\\vQ}\\bTfkaJm\\v@@\\bV` zp\\n@NSw iI cg\\noiSu\\bVwloCy c}\\vb\\\\ sUBA\\bWI\\bTf\\nxS Vp\\nd|\\bTV\\vbC NoJu\\nTC |`\\n{Z D]\\bU| c}lm\\bTl Bv Pl c}\\bQp m\\nLk kj\\n@NSbKO j_ p\\\\\\nzU\\bTl\\bTg\\bWI cfXO\\bWW\\ndzli BN\\nd[\\bWOMD\\vKC dj I_\\bVV\\ny\\\\\\vLmxl xB kV\\vb\\\\\\vJW\\vVS Vx\\vxD d{MD\\bTa |`\\vPzR}\\vWsBM\\nsICN\\bTaJm\\npe i_\\npV\\nrh Rd Hv\\n~A\\nxR\\vWh\\vWk\\nxS\\vAz\\vwX\\nbIoQ fw\\nqI\\nV|\\nunz\\vpg d\\\\\\voA{D i_xB\\bT `Vqr TTg]CA\\vuR VJ T`\\npw\\vRb I_\\nCxRo\\vsICjKh Bv WVBBoD{D\\nhcKm\\v^R QE\\n{I\\np@\\nc|Gt c}Dl\\nzUqN sVk} Hh\\v|j\\nqou| Q]\\vekZM`St\\npe dj\\bVG\\veE m\\vWc|I\\n[W fL\\bT BZSu\\vKaCqNtY[\\nqI\\bTv fM i@ }fB\\\\ Qy\\vBl\\bWgXDkc\\vx[\\bVV Q] a Py\\vxD\\nfI }foD dj SGls ~DCN\\n{Z \\\\v\\n_D\\nhc\\vx_C[ AJ\\nLM VxCI bj c^ cF\\ntCSx wrXA\\bU\\\\ |a\\vK\\\\\\bTV\\bVj\\nd| fsCX\\ntb\\bRw Vx AE A|\\bTNt\\vDg Vc\\bTld@\\npo M cF\\npe iZ Bo\\bSq\\nfHl`\\bTx\\bWf HE\\vF{ cO fD\\nlm\\vfZ\\nlm\\veU dGBH\\bTV SiMW\\nwX\\nz\\\\ \\\\cCX\\nd} l}\\bQp\\bTV F~\\bQ `i\\ng@nO\\bUd\\bTl\\nL[ wQ ji\\ntC |J\\nLU\\naB\\vxYKj AJuN i[\\npeSk\\vDg\\vx]\\bVb\\bVV\\nea kV\\nqI\\bTaSk\\nAO pD\\ntb\\nts\\nyi\\bVg i_\\v_W\\nLkNt yj fMR iI\\bTl\\vwX sV\\vMl\\nyu AJ\\bVjKO WV\\vA}\\vW\\nrp iD\\v|olv\\vsIBM d~ CU\\bVbeV\\npC\\vwT j` c}\\vxs\\vps\\vvh WV\\vGg\\vAe\\vVK\\v]W rg\\vWcF` Br\\vb\\\\ dZ\\bQp\\nqIkF\\nLk\\vAR\\bWI\\bTg bs dw\\n{L\\n_y iZ\\bTA lg\\bVV\\bTl dk\\n`k a{ i_{Awj wN\\v@@\\bTe i_\\n_D wL\\nAH\\viK\\vek\\n[] p_ yj\\bTv US [r\\n{I\\npsGt\\vVK\\nplS}\\vWP |dMD\\vHV\\bTR}M`\\bTV\\bVHlvCh\\bW[Ke R{\\v^R ab BZ VA B`\\nd|\\nhsKe BeOi R{ d\\\\nB\\bWZ dZ VJOs muQ\\vhZQ@QQ\\nfI\\bW[B\\\\li\\nzU\\nMdM`\\nxS\\bVV\\n\\\\}\\vxD m\\bTpIS\\nc| kVi~ V{\\vhZ |b\\bWt\\n@R\\voA\\vnU\\bWI ea B` iD c} TzBR\\vQBNj CP [I\\bTv `WuN\\vpg\\vpg\\vWc iT bs wL U_ c\\\\ |h\\vKa Nr fL\\nq|\\nzu\\nz\\\\ Nr\\bUg |bm`\\bTv\\nyd\\nrp\\bWf UXBV\\nzk\\nd} wQ }fCe\\ved\\bTW\\bSB\\nxU cn\\bTb\\ne a\\\\ SG\\bU|\\npV\\nN\\\\Kn\\vnU At pD\\v^R\\vIrb[ R{ dE\\vxD\\vWK\\vWA\\bQL\\bW@Su\\bUd\\nDM PcCADloQ Hswiub\\na\\bQpOb\\nLP\\bTlY[\\vK} AJ\\bQn^\\vsA\\bSM\\nqM\\bWZ\\n^W\\vz{S| fD\\bVK\\bTv\\bPvBB CPdF id\\vxsmx\\vws cC\\ntC ycM`\\vW\\nrh\\bQp\\vxD\\\\o\\nsI_k\\nzukF fDXsXO jp\\bTvBS{B Br\\nzQ\\nbI c{BDBVnO\\bTF caJd fL PV I_\\nlK`o wX\\npa gu\\bP}{^\\bWf\\n{I BN\\npaKl\\vpg cn fL\\vvhCq\\bTl\\vnU\\bSqCm wR\\bUJ\\npe\\nyd\\nYgCy\\vKW fD\\neaoQ j_ BvnM\\vID\\bTa\\nzApl\\n]n\\bTa R{ fr\\n_y\\bUg{Xkk\\vxD|Ixl\\nfyCe\\vwB\\nLk\\vd]\\noi\\n}h Q]\\npe\\bVwHkOQ\\nzk AJ\\npV\\bPv\\ny\\\\ A{Oi\\bSBXA\\veE jp\\nq} iDqN\\v^R m iZ Br\\bVg\\noi\\n\\\\X U_\\nc|\\vHV\\bTf Tn\\\\N\\\\N\\nuBlv\\nyu Td\\bTf\\bPL\\v]W dG\\nA`\\nw^\\ngI\\npe dw\\nz\\\\ia\\bWZ cFJm\\n{Z\\bWO_kDfRR d\\\\\\bVV\\vxsBNtilm Td ]y\\vHV So\\v|jXX A|\\vZ^\\vGu\\bTWM`kF\\vhZ\\vVK dG\\vBl ay\\nxUqEnO\\bVw\\nqICX\\ne Pl\\bWO\\vLm dLuHCm dTfn\\vwBka\\vnU\\n@M\\nyT Hv \\\\}Kh d~Yhk}\\neR d\\\\\\bWI |b HK iD\\bTWMY\\npl\\bQ_ wr\\vAx HE\\bTg\\bSqvp\\vb\\\\\\bWO\\nOl\\nsI\\nfy\\vID \\\\c\\n{Z\\n^~\\npe\\nAO TT\\vxvk_\\bWO\\v|j\\vwB Qy i@ Pl Ha dZk}ra UT\\vJc\\ved\\np@ QN\\nd| kj HkM`\\noi wr d\\\\\\nlq\\no_\\nlb\\nL[ acBBBHCm\\npl IQ\\bVK\\vxs\\n`e\\viK\\npaOi US\\bTp fD\\nPGkkXA\\nz\\\\\\neg\\vWh wRqN\\nqS cnlo\\nxS\\n^W BU\\nt HE p\\\\ fF fw\\bVV\\bW@ ak\\vVKls VJ\\bVV\\veE\\\\o\\nyX\\nYmM`lL\\nd|\\nzk A{sE wQXT\\nt Pl ]y\\vwT{pMD\\vb\\\\ Q]Kj Jn\\nAH\\vRb BU HK \\\\c\\nfIm\\nqM\\n@R So\\noiBT Hv\\n_yKh BZ ]i\\bUJ V{Sr\\nbI\\vGg a_\\bTR\\nfI\\nfl [K IIS|\\vuW iI\\bWI\\nqI\\v|jBV\\bVg\\bWZkF\\vx]\\bTA ab fr i@ Jd Jd\\vps\\nAO\\bTaxu iD\\nzk |d |`\\bW[ lP dG\\bVV\\vw}\\vqO i[\\bQ\\bTz\\vVF wNts dw\\bTv\\neS\\ngi NryS\\npe\\bVV\\bSq\\n`m yj BZ\\vWX\\bSB c\\\\\\nUR [J c_nM\\bWQ\\vAx\\nMd Brui\\vxY\\bSM\\vWc\\v|j\\vxs }Q BO\\bPL\\bWW fM\\nAO Pc\\veUe^\\bTg\\nqI ac\\bPv cFoQ Q\\vhZka\\nz\\\\ iK BU\\n`k CPS|M`\\n{I S{_O BZZiSk ps p\\\\\\nYu\\n]s\\nxC\\bWt\\nbD kV\\vGuyS\\nqA [r\\neKM` dZlL\\bUg\\bTl\\nbD US\\vb\\\\ pV\\nccS\\\\ ct `z\\bPL\\vWs\\nA`\\neg\\bSquECR\\vDg `W\\vz{\\vWcSkSk bW\\bUg ea\\nxZ iI UX VJ\\nqn S{\\vRb\\bTQ\\nplGt\\vuWuj\\npF\\nqI fL [I iaXO\\nyu\\vDg\\ved q{VG\\bQka Vj kV xB\\nd|\\np@ QN Pc ps]j kV oU\\bTp\\nzUnB\\vB] a{\\bV@\\n]nm` cz R{m`\\bQa\\vwT\\bSMMYqN dj~s\\vQ}MY\\vMB Bv wR\\bRg\\vQ} ql\\vKC\\nrmxuCC\\vwB\\vvh BqXq\\npV i_ObuE\\nbd\\nqo\\v{i\\nC~ BL\\veEuH\\bVjEyGz\\vzR\\v{i cf\\n{Z\\n]nXA\\vGu\\vnU hS\\vGI\\nCc HE\\bTA HBBHCj\\nCc\\bTF HE\\nXI A{\\bQ c\\\\\\vmO\\vWX\\nfH\\np@MY\\bTF\\nlK Bt\\nzU TTKm\\vwT\\npV\\ndt\\vyI Vx Q Rg Td\\nzU\\bRS\\nLM wAnM Tn\\ndS ]g\\nLc\\vwB }t [I CPkX\\vFm\\vhZm i[\\np@\\vQ}\\vW |d\\nMO\\nMd f_ fD cJ Hz\\vRb io PyY[\\nxU ct\\v@@ ww\\bPvBMFF\\ntbv|\\vKm Bq BqKh`o\\nZdXU i] |` StB\\\\\\bQ\\v_W TJ\\nqI |a A{\\vuPMD Pl\\nxR fL\\vws c{ d\\\\\\bV`\\neg HKkc\\nd|\\bVV\\ny\\\\kc i]\\bVG `V ss I_ AE bs du\\nel pD\\vW\\nqslv\\bSMZi\\vVKia\\vQB Q\\n{Z\\bPt\\vKl\\nlK\\nhs\\ndS\\bVKmf\\nd^ kV cO\\nc|\\bVH \\\\]\\bTv\\bSq mI\\vDg VJ cn\\ny\\\\\\bVg\\bTv\\nyX\\bTF ]]\\bTp\\noi\\nhs\\veU\\nBf djMr\\n|p \\\\g ]r\\bVb{D\\nd[XN fM O\\\\s_ cf iZXN\\vWc qv\\n`m U^oD\\nd|\\vGg dE\\vwflou}\\nd|oQ `iOi\\vxD\\ndZ\\nCxYw\\nzk\\ntb\\ngw yj B`\\nyX\\vps\\ntC\\vpP\\vqw\\bPu\\bPX Dm\\npwNj ss aG\\vxs\\bPt\\noLGz Ok i@ i]eC IQ ii dj\\v@J |duh\\bWZ\\veU\\vnU\\bTa cCg]\\nzkYh\\bVK\\nLU\\np@\\ntb\\ntR Cj\\vNP i@\\bP{\\n\\\\}\\n{c\\nwX fL\\bVG c{ |` AJ |C fDln |d bs\\nqI{B\\vAx\\np@\\nzk\\vRbOs\\vWSe^\\vD_ Bv\\vWd\\bVb\\vxs\\veE\\bRw\\n]n\\n|p\\vg| fwkc\\bTIka\\n\\\\TSp ju\\vps\\npeu|\\vGr\\bVe CU]MXU\\vxD\\bTa IQ\\vWq CU am dj\\bSoSw\\vnUCh Q]s_\\bPt fS\\bTa \\\\}\\n@OYc UZ\\bTx\\npe\\vnU\\nzU |} iD\\nz\\\\\\bSM\\vxDBR\\nzQ QN]MYh\\nLP\\vFm\\vLXvc\\vqlka HK\\bVb\\ntC\\nCy\\bTv\\nuVoQ `z [I B`\\vRb yj sb\\vWs\\bTl kV\\ved\\nelL\\vxN m\\nJn jY\\vxD\\bVb\\bSq\\vyu wL\\vXL\\bTA pg At nDXX wR\\npl\\nhwyS\\nps cO\\bW[\\v|jXN sV p\\\\ Be\\nb~\\nAJ\\n]ek`qN dw WV HE\\vEVJz id B` zhE] fD\\bTgqN\\bTa jaCv\\bSM\\nhc\\bUet_ ieg] wQ\\nPn\\bVB jw\\bVg\\vbE BZ\\vRH\\bP{ jp\\n\\\\} a_ cC |a\\vD] BZ i[ fD\\vxW\\no_ d\\\\\\n_D\\ntb \\\\c AJ\\nlKoQlo\\vLx\\vM@\\bWZKn\\vpg\\nTi\\nIv\\n|r\\v@}JzLmWhk}ln\\vxD\\n]sgc\\vps Br\\bTW\\vBMtZ\\nBYDW jf\\vSWC}\\nqo dE mv IQ\\bPP\\bUblvBC\\nzQ [I\\vgl\\nig\\bUsBT\\vbC\\bSq sU iW\\nJn SY HK rg\\npV\\vID\\v|jKO `S |a`vbmglfmujbqnbgqjgavp`bqjmj`jlwjfnslslqrvf`vfmwbfpwbglsvfgfmivfdlp`lmwqbfpw/Mmmlnaqfwjfmfmsfqejonbmfqbbnjdlp`jvgbg`fmwqlbvmrvfsvfgfpgfmwqlsqjnfqsqf`jlpfd/Vmavfmlpuloufqsvmwlppfnbmbkba/Abbdlpwlmvfulpvmjglp`bqolpfrvjslmj/]lpnv`klpbodvmb`lqqfljnbdfmsbqwjqbqqjabnbq/Abklnaqffnsoflufqgbg`bnajlnv`kbpevfqlmsbpbglo/Amfbsbqf`fmvfubp`vqplpfpwbabrvjfqlojaqlp`vbmwlb``fplnjdvfoubqjlp`vbwqlwjfmfpdqvslppfq/Mmfvqlsbnfgjlpeqfmwfb`fq`bgfn/Mplefqwb`l`kfpnlgfoljwbojbofwqbpbod/Vm`lnsqb`vbofpf{jpwf`vfqslpjfmglsqfmpboofdbqujbifpgjmfqlnvq`jbslgq/Msvfpwlgjbqjlsvfaolrvjfqfnbmvfosqlsjl`qjpjp`jfqwlpfdvqlnvfqwfevfmwf`fqqbqdqbmgffef`wlsbqwfpnfgjgbsqlsjbleqf`fwjfqqbf.nbjoubqjbpelqnbpevwvqllaifwlpfdvjqqjfpdlmlqnbpnjpnlp/Vmj`l`bnjmlpjwjlpqby/_mgfajglsqvfabwlofglwfm/Abifp/Vpfpsfql`l`jmblqjdfmwjfmgb`jfmwl`/Mgjykbaobqpfq/Abobwjmbevfqybfpwjoldvfqqbfmwqbq/E{jwlo/_sfybdfmgbu/Agflfujwbqsbdjmbnfwqlpibujfqsbgqfpe/M`jo`bafyb/Mqfbppbojgbfmu/Alibs/_mbavplpajfmfpwf{wlpoofubqsvfgbmevfqwf`ln/Vm`obpfpkvnbmlwfmjglajoablvmjgbgfpw/Mpfgjwbq`qfbgl<X<W=c=k=n<R<V<\\\\<V<T<W<T=a=n<R<^=m<Y<Y<_<R<S=l<T=n<\\\\<V<Y=e<Y=o<Z<Y<v<\\\\<V<]<Y<[<]=g<W<R<Q<T<~=m<Y<S<R<X<A=n<R=n<R<P=k<Y<P<Q<Y=n<W<Y=n=l<\\\\<[<R<Q<\\\\<_<X<Y<P<Q<Y<x<W=c<s=l<T<Q<\\\\=m<Q<T=i=n<Y<P<V=n<R<_<R<X<^<R=n=n<\\\\<P<M<D<|<P<\\\\=c<K=n<R<^<\\\\=m<^<\\\\<P<Y<P=o<N<\\\\<V<X<^<\\\\<Q<\\\\<P=a=n<T=a=n=o<~<\\\\<P=n<Y=i<S=l<R=n=o=n<Q<\\\\<X<X<Q=c<~<R=n=n=l<T<Q<Y<U<~<\\\\=m<Q<T<P=m<\\\\<P=n<R=n=l=o<]<r<Q<T<P<T=l<Q<Y<Y<r<r<r<W<T=j=a=n<\\\\<r<Q<\\\\<Q<Y<P<X<R<P<P<R<U<X<^<Y<R<Q<R=m=o<X\\fHy\\fIk\\fHU\\fId\\fHy\\fIl\\fHT\\fIk\\fHy\\fHR\\fHy\\fIg\\fHx\\fH\\\\\\fHF\\fH\\\\\\fHD\\fIk\\fHc\\fHy\\fHy\\fHS\\fHA\\fIl\\fHk\\fHT\\fHy\\fH\\\\\\fHH\\fIg\\fHU\\fIg\\fHj\\fHF\\fHU\\fIl\\fHC\\fHU\\fHC\\fHR\\fHH\\fHy\\fHI\\fHRibdqbm\\fHj\\fHp\\fHp\\fIg\\fHi\\fH@\\fHJ\\fIg\\fH{\\fHd\\fHp\\fHR\\fH{\\fHc\\fHU\\fHB\\fHk\\fHD\\fHY\\fHU\\fHC\\fIk\\fHI\\fIk\\fHI\\fIl\\fHt\\fH\\\\\\fHp\\fH@\\fHJ\\fIl\\fHy\\fHd\\fHp\\fIl\\fHY\\fIk\\fHD\\fHd\\fHD\\fHc\\fHU\\fH\\\\\\fHe\\fHT\\fHB\\fIk\\fHy\\fHB\\fHY\\fIg\\fH^\\fIk\\fHT\\fH@\\fHB\\fHd\\fHJ\\fIk\\fH\\fH\\\\\\fHj\\fHB\\fH@\\fHT\\fHA\\fH\\\\\\fH@\\fHD\\fHv\\fH^\\fHB\\fHD\\fHj\\fH{\\fHT\\fIl\\fH^\\fIl4U5h5e4I5h5e5k4\\\\4K4N4B4]4U4C4C4K5h5e5k4\\\\5k4Y5d4]4V5f4]5o4K5j5d5h4K4D5f5j4U4]4Z4\\\\5h5o5k5j4K5f5d5i5n4K5h4U5h5f4K5j4K5h5o5j4A4F5e5n4D5h5d4A4E4K4B4]5m5n4[4U4D4C4]5o5j4I4\\\\4K5o5i4K4K4A4C4I5h4K5m5f5k4D4U4Z5o5f5m4D4A4G5d5i5j5d5k5d4O5j4K4@4C4K5h5k4K4_5h5i4U5j4C5h5f4_4U4D4]4Y5h5e5i5j4\\\\4D5k4K4O5j5k5i4G5h5o5j4F4K5h4K4A5f4G5i4Y4]4X4]4A4A5d5h5d5m5f4K4\\\\4K5h5o5h5i4]4E4K5j4F4K5h5m4O4D5d4B4K4Y4O5j4F4K5j5k4K5h5f4U4Z5d5d5n4C4K4D5j4B5f4]4D5j4F5h5o5i4X4K4M5d5k5f4K4D5d5n4Y4Y5d5i4K4]5n5i4O4A4C5j4A5j4U4C5i4]4O5f4K4A4E5o4F4D4C5d5j5f4@4D5i5j5k4F4A4F4@5k4E4_5j4E5f4F5i5o4]4E4V4^4E5j5m4_4D5f4F5h5h5k5h5j4K4F5h5o5n5h4D5h5i4K4U5j5k4O5d5h4X5f4M5j5d4]4O5i4K5m5f5o4D5o5h4\\\\4K4F4]4F4D4D4O5j5k5i4_4K5j5o4D5f4U5m5n4C4A4_5j5h5k5i4X4U4]4O5k5h4X5k4]5n4[4]4[5h4Dsqlejofpfquj`fgfebvowkjnpfoegfwbjop`lmwfmwpvsslqwpwbqwfgnfppbdfpv``fppebpkjlm?wjwof=`lvmwqzb``lvmw`qfbwfgpwlqjfpqfpvowpqvmmjmdsql`fpptqjwjmdlaif`wpujpjaoftfo`lnfbqwj`ofvmhmltmmfwtlqh`lnsbmzgzmbnj`aqltpfqsqjub`zsqlaofnPfquj`fqfpsf`wgjpsobzqfrvfpwqfpfquftfapjwfkjpwlqzeqjfmgplswjlmptlqhjmdufqpjlmnjoojlm`kbmmfotjmglt-bggqfppujpjwfgtfbwkfq`lqqf`wsqlgv`wfgjqf`welqtbqgzlv#`bmqfnlufgpvaif`w`lmwqlobq`kjuf`vqqfmwqfbgjmdojaqbqzojnjwfgnbmbdfqevqwkfqpvnnbqznb`kjmfnjmvwfpsqjubwf`lmwf{wsqldqbnpl`jfwzmvnafqptqjwwfmfmbaofgwqjddfqplvq`fpolbgjmdfofnfmwsbqwmfqejmboozsfqef`wnfbmjmdpzpwfnphffsjmd`vowvqf%rvlw8/ilvqmbosqlif`wpvqeb`fp%rvlw8f{sjqfpqfujftpabobm`fFmdojpk@lmwfmwwkqlvdkSofbpf#lsjmjlm`lmwb`wbufqbdfsqjnbqzujoobdfPsbmjpkdboofqzgf`ojmfnffwjmdnjppjlmslsvobqrvbojwznfbpvqfdfmfqbopsf`jfppfppjlmpf`wjlmtqjwfqp`lvmwfqjmjwjboqfslqwpejdvqfpnfnafqpklogjmdgjpsvwffbqojfqf{sqfppgjdjwbosj`wvqfBmlwkfqnbqqjfgwqbeej`ofbgjmd`kbmdfg`fmwqbouj`wlqzjnbdfp,qfbplmppwvgjfpefbwvqfojpwjmdnvpw#afp`kllopUfqpjlmvpvboozfsjplgfsobzjmddqltjmdlaujlvplufqobzsqfpfmwb`wjlmp?,vo= tqbssfqboqfbgz`fqwbjmqfbojwzpwlqbdfbmlwkfqgfphwlsleefqfgsbwwfqmvmvpvboGjdjwbo`bsjwboTfapjwfebjovqf`lmmf`wqfgv`fgBmgqljggf`bgfpqfdvobq#%bns8#bmjnbopqfofbpfBvwlnbwdfwwjmdnfwklgpmlwkjmdSlsvobq`bswjlmofwwfqp`bswvqfp`jfm`foj`fmpf`kbmdfpFmdobmg>2%bns8Kjpwlqz#>#mft#@fmwqbovsgbwfgPsf`jboMfwtlqhqfrvjqf`lnnfmwtbqmjmd@loofdfwlloabqqfnbjmpaf`bvpffof`wfgGfvwp`kejmbm`ftlqhfqprvj`hozafwtffmf{b`wozpfwwjmdgjpfbpfPl`jfwztfbslmpf{kjajw%ow8"..@lmwqlo`obppfp`lufqfglvwojmfbwwb`hpgfuj`fp+tjmgltsvqslpfwjwof>!Nlajof#hjoojmdpkltjmdJwbojbmgqlssfgkfbujozfeef`wp.2$^*8 `lmejqn@vqqfmwbgubm`fpkbqjmdlsfmjmdgqbtjmdajoojlmlqgfqfgDfqnbmzqfobwfg?,elqn=jm`ovgftkfwkfqgfejmfgP`jfm`f`bwboldBqwj`ofavwwlmpobqdfpwvmjelqnilvqmfzpjgfabq@kj`bdlklojgbzDfmfqbosbppbdf/%rvlw8bmjnbwfeffojmdbqqjufgsbppjmdmbwvqboqlvdkoz- Wkf#avw#mlwgfmpjwzAqjwbjm@kjmfpfob`h#lewqjavwfJqfobmg!#gbwb.eb`wlqpqf`fjufwkbw#jpOjaqbqzkvpabmgjm#eb`wbeebjqp@kbqofpqbgj`boaqlvdkwejmgjmdobmgjmd9obmd>!qfwvqm#ofbgfqpsobmmfgsqfnjvnsb`hbdfBnfqj`bFgjwjlm^%rvlw8Nfppbdfmffg#wlubovf>!`lnsof{ollhjmdpwbwjlmafojfufpnboofq.nlajofqf`lqgptbmw#wlhjmg#leEjqfel{zlv#bqfpjnjobqpwvgjfgnb{jnvnkfbgjmdqbsjgoz`ojnbwfhjmdglnfnfqdfgbnlvmwpelvmgfgsjlmffqelqnvobgzmbpwzklt#wl#Pvsslqwqfufmvff`lmlnzQfpvowpaqlwkfqplogjfqobqdfoz`boojmd-%rvlw8B``lvmwFgtbqg#pfdnfmwQlafqw#feelqwpSb`jej`ofbqmfgvs#tjwkkfjdkw9tf#kbufBmdfofpmbwjlmp\\\\pfbq`kbssojfgb`rvjqfnbppjufdqbmwfg9#ebopfwqfbwfgajddfpwafmfejwgqjujmdPwvgjfpnjmjnvnsfqkbspnlqmjmdpfoojmdjp#vpfgqfufqpfubqjbmw#qlof>!njppjmdb`kjfufsqlnlwfpwvgfmwplnflmff{wqfnfqfpwlqfalwwln9fuloufgboo#wkfpjwfnbsfmdojpktbz#wl##Bvdvpwpznalop@lnsbmznbwwfqpnvpj`bobdbjmpwpfqujmd~*+*8 sbznfmwwqlvaof`lm`fsw`lnsbqfsbqfmwpsobzfqpqfdjlmpnlmjwlq#$$Wkf#tjmmjmdf{solqfbgbswfgDboofqzsqlgv`fbajojwzfmkbm`f`bqffqp*-#Wkf#`loof`wPfbq`k#bm`jfmwf{jpwfgellwfq#kbmgofqsqjmwfg`lmplofFbpwfqmf{slqwptjmgltp@kbmmfojoofdbomfvwqbopvddfpw\\\\kfbgfqpjdmjmd-kwno!=pfwwofgtfpwfqm`bvpjmd.tfahjw`objnfgIvpwj`f`kbswfquj`wjnpWklnbp#nlyjoobsqlnjpfsbqwjfpfgjwjlmlvwpjgf9ebopf/kvmgqfgLoznsj`\\\\avwwlmbvwklqpqfb`kfg`kqlmj`gfnbmgppf`lmgpsqlwf`wbglswfgsqfsbqfmfjwkfqdqfbwozdqfbwfqlufqboojnsqluf`lnnbmgpsf`jbopfbq`k-tlqpkjsevmgjmdwklvdkwkjdkfpwjmpwfbgvwjojwzrvbqwfq@vowvqfwfpwjmd`ofbqozf{slpfgAqltpfqojafqbo~#`bw`kSqlif`wf{bnsofkjgf+*8EolqjgbbmptfqpbooltfgFnsfqlqgfefmpfpfqjlvpeqffglnPfufqbo.avwwlmEvqwkfqlvw#le#">#mvoowqbjmfgGfmnbqhuljg+3*,boo-ipsqfufmwQfrvfpwPwfskfm Tkfm#lapfquf?,k1= Nlgfqm#sqlujgf!#bow>!alqgfqp- Elq# Nbmz#bqwjpwpsltfqfgsfqelqnej`wjlmwzsf#lenfgj`bowj`hfwplsslpfg@lvm`jotjwmfppivpwj`fDflqdf#Afodjvn---?,b=wtjwwfqmlwbaoztbjwjmdtbqebqf#Lwkfq#qbmhjmdskqbpfpnfmwjlmpvqujufp`klobq?,s= #@lvmwqzjdmlqfgolpp#leivpw#bpDflqdjbpwqbmdf?kfbg=?pwlssfg2$^*8 jpobmgpmlwbaofalqgfq9ojpw#le`bqqjfg233/333?,k0= #pfufqboaf`lnfppfof`w#tfggjmd33-kwnonlmbq`klee#wkfwfb`kfqkjdkoz#ajloldzojef#lelq#fufmqjpf#le%qbrvl8sovplmfkvmwjmd+wklvdkGlvdobpiljmjmd`jq`ofpElq#wkfBm`jfmwUjfwmbnufkj`ofpv`k#bp`qzpwboubovf#>Tjmgltpfmilzfgb#pnboobppvnfg?b#jg>!elqfjdm#Boo#qjklt#wkfGjpsobzqfwjqfgkltfufqkjggfm8abwwofppffhjmd`bajmfwtbp#mlwollh#bw`lmgv`wdfw#wkfIbmvbqzkbssfmpwvqmjmdb9klufqLmojmf#Eqfm`k#ob`hjmdwzsj`bof{wqb`wfmfnjfpfufm#jedfmfqbwgf`jgfgbqf#mlw,pfbq`kafojfep.jnbdf9ol`bwfgpwbwj`-oldjm!=`lmufqwujlofmwfmwfqfgejqpw!=`jq`vjwEjmobmg`kfnjpwpkf#tbp23s{8!=bp#pv`kgjujgfg?,psbm=tjoo#afojmf#leb#dqfbwnzpwfqz,jmgf{-eboojmdgvf#wl#qbjotbz`loofdfnlmpwfqgfp`fmwjw#tjwkmv`ofbqIftjpk#sqlwfpwAqjwjpkeoltfqpsqfgj`wqfelqnpavwwlm#tkl#tbpof`wvqfjmpwbmwpvj`jgfdfmfqj`sfqjlgpnbqhfwpPl`jbo#ejpkjmd`lnajmfdqbskj`tjmmfqp?aq#,=?az#wkf#MbwvqboSqjub`z`llhjfplvw`lnfqfploufPtfgjpkaqjfeozSfqpjbmpl#nv`k@fmwvqzgfsj`wp`lovnmpklvpjmdp`qjswpmf{w#wlafbqjmdnbssjmdqfujpfgiRvfqz+.tjgwk9wjwof!=wllowjsPf`wjlmgfpjdmpWvqhjpkzlvmdfq-nbw`k+~*+*8 avqmjmdlsfqbwfgfdqffpplvq`f>Qj`kbqg`olpfozsobpwj`fmwqjfp?,wq= `lolq9 vo#jg>!slppfppqloojmdskzpj`pebjojmdf{f`vwf`lmwfpwojmh#wlGfebvow?aq#,= 9#wqvf/`kbqwfqwlvqjpn`obppj`sql`ffgf{sobjm?,k2= lmojmf-<{no#ufkfosjmdgjbnlmgvpf#wkfbjqojmffmg#..=*-bwwq+qfbgfqpklpwjmd eeeeeeqfbojyfUjm`fmwpjdmbop#pq`>!,Sqlgv`wgfpsjwfgjufqpfwfoojmdSvaoj`#kfog#jmIlpfsk#wkfbwqfbeef`wp?pwzof=b#obqdfglfpm$wobwfq/#Fofnfmwebuj`lm`qfbwlqKvmdbqzBjqslqwpff#wkfpl#wkbwNj`kbfoPzpwfnpSqldqbnp/#bmg##tjgwk>f%rvlw8wqbgjmdofew!= sfqplmpDlogfm#Beebjqpdqbnnbqelqnjmdgfpwqlzjgfb#le`bpf#lelogfpw#wkjp#jp-pq`#>#`bqwllmqfdjpwq@lnnlmpNvpojnpTkbw#jpjm#nbmznbqhjmdqfufbopJmgffg/frvbooz,pklt\\\\blvwgllqfp`bsf+Bvpwqjbdfmfwj`pzpwfn/Jm#wkf#pjwwjmdKf#boplJpobmgpB`bgfnz \\n\\n?"..Gbmjfo#ajmgjmdaol`h!=jnslpfgvwjojyfBaqbkbn+f{`fswxtjgwk9svwwjmd*-kwno+#X^8 GBWBX#)hjw`kfmnlvmwfgb`wvbo#gjbof`wnbjmoz#\\\\aobmh$jmpwboof{sfqwpje+wzsfJw#bopl%`lsz8#!=Wfqnpalqm#jmLswjlmpfbpwfqmwbohjmd`lm`fqmdbjmfg#lmdljmdivpwjez`qjwj`peb`wlqzjwp#ltmbppbvowjmujwfgobpwjmdkjp#ltmkqfe>!,!#qfo>!gfufols`lm`fqwgjbdqbngloobqp`ovpwfqsks<jg>bo`lklo*8~*+*8vpjmd#b=?psbm=ufppfopqfujuboBggqfppbnbwfvqbmgqljgboofdfgjoomfpptbohjmd`fmwfqprvbojeznbw`kfpvmjejfgf{wjm`wGfefmpfgjfg#jm \\n?"..#`vpwlnpojmhjmdOjwwof#Allh#lefufmjmdnjm-ip<bqf#wkfhlmwbhwwlgbz$p-kwno!#wbqdfw>tfbqjmdBoo#Qjd8 ~*+*8qbjpjmd#Bopl/#`qv`jbobalvw!=gf`obqf..= ?p`ejqfel{bp#nv`kbssojfpjmgf{/#p/#avw#wzsf#>#  ?"..wltbqgpQf`lqgpSqjubwfElqfjdmSqfnjfq`klj`fpUjqwvboqfwvqmp@lnnfmwSltfqfgjmojmf8slufqwz`kbnafqOjujmd#ulovnfpBmwklmzoldjm!#QfobwfgF`lmlnzqfb`kfp`vwwjmddqbujwzojef#jm@kbswfq.pkbgltMlwbaof?,wg= #qfwvqmpwbgjvntjgdfwpubqzjmdwqbufopkfog#aztkl#bqftlqh#jmeb`vowzbmdvobqtkl#kbgbjqslqwwltm#le Plnf#$`oj`h$`kbqdfphfztlqgjw#tjoo`jwz#le+wkjp*8Bmgqft#vmjrvf#`kf`hfglq#nlqf033s{8#qfwvqm8qpjlm>!sovdjmptjwkjm#kfqpfoePwbwjlmEfgfqboufmwvqfsvaojpkpfmw#wlwfmpjlmb`wqfpp`lnf#wlejmdfqpGvhf#lesflsof/f{soljwtkbw#jpkbqnlmzb#nbilq!9!kwwsjm#kjp#nfmv!= nlmwkozleej`fq`lvm`jodbjmjmdfufm#jmPvnnbqzgbwf#leolzbowzejwmfppbmg#tbpfnsfqlqpvsqfnfPf`lmg#kfbqjmdQvppjbmolmdfpwBoafqwbobwfqbopfw#le#pnboo!=-bssfmggl#tjwkefgfqboabmh#leafmfbwkGfpsjwf@bsjwbodqlvmgp*/#bmg#sfq`fmwjw#eqln`olpjmd`lmwbjmJmpwfbgejewffmbp#tfoo-zbkll-qfpslmgejdkwfqlap`vqfqfeof`wlqdbmj`>#Nbwk-fgjwjmdlmojmf#sbggjmdb#tkloflmfqqlqzfbq#lefmg#le#abqqjfqtkfm#jwkfbgfq#klnf#leqfpvnfgqfmbnfgpwqlmd=kfbwjmdqfwbjmp`olvgeqtbz#le#Nbq`k#2hmltjmdjm#sbqwAfwtffmofpplmp`olpfpwujqwvboojmhp!=`qlppfgFMG#..=ebnlvp#btbqgfgOj`fmpfKfbowk#ebjqoz#tfbowkznjmjnboBeqj`bm`lnsfwfobafo!=pjmdjmdebqnfqpAqbpjo*gjp`vppqfsob`fDqfdlqzelmw#`lsvqpvfgbssfbqpnbhf#vsqlvmgfgalwk#leaol`hfgpbt#wkfleej`fp`lolvqpje+gl`vtkfm#kffmelq`fsvpk+evBvdvpw#VWE.;!=Ebmwbpzjm#nlpwjmivqfgVpvboozebqnjmd`olpvqflaif`w#gfefm`fvpf#le#Nfgj`bo?algz= fujgfmwaf#vpfghfz@lgfpj{wffmJpobnj` 333333fmwjqf#tjgfoz#b`wjuf#+wzsflelmf#`bm`lolq#>psfbhfqf{wfmgpSkzpj`pwfqqbjm?walgz=evmfqboujftjmdnjggof#`qj`hfwsqlskfwpkjewfggl`wlqpQvppfoo#wbqdfw`lnsb`wbodfaqbpl`jbo.avoh#lenbm#bmg?,wg= #kf#ofew*-ubo+*ebopf*8oldj`boabmhjmdklnf#wlmbnjmd#Bqjylmb`qfgjwp*8 ~*8 elvmgfqjm#wvqm@loojmpafelqf#Avw#wkf`kbqdfgWjwof!=@bswbjmpsfoofgdlggfppWbd#..=Bggjmd9avw#tbpQf`fmw#sbwjfmwab`h#jm>ebopf%Ojm`lomtf#hmlt@lvmwfqIvgbjpnp`qjsw#bowfqfg$^*8 ##kbp#wkfvm`ofbqFufmw$/alwk#jmmlw#boo ?"..#sob`jmdkbqg#wl#`fmwfqplqw#le`ojfmwppwqffwpAfqmbqgbppfqwpwfmg#wlebmwbpzgltm#jmkbqalvqEqffglniftfoqz,balvw--pfbq`kofdfmgpjp#nbgfnlgfqm#lmoz#lmlmoz#wljnbdf!#ojmfbq#sbjmwfqbmg#mlwqbqfoz#b`qlmzngfojufqpklqwfq33%bns8bp#nbmztjgwk>!,)#?"X@wjwof#>le#wkf#oltfpw#sj`hfg#fp`bsfgvpfp#lesflsofp#Svaoj`Nbwwkftwb`wj`pgbnbdfgtbz#elqobtp#lefbpz#wl#tjmgltpwqlmd##pjnsof~`bw`k+pfufmwkjmelal{tfmw#wlsbjmwfg`jwjyfmJ#glm$wqfwqfbw-#Plnf#tt-!*8 alnajmdnbjowl9nbgf#jm-#Nbmz#`bqqjfpx~8tjtlqh#lepzmlmzngfefbwpebulqfglswj`bosbdfWqbvmofpp#pfmgjmdofew!=?`lnP`lqBoo#wkfiRvfqz-wlvqjpw@obppj`ebopf!#Tjokfonpvavqapdfmvjmfajpklsp-psojw+dolabo#elooltpalgz#lemlnjmbo@lmwb`wpf`vobqofew#wl`kjfeoz.kjggfm.abmmfq?,oj= -#Tkfm#jm#alwkgjpnjppF{solqfbotbzp#ujb#wkfpsb/]lotfoebqfqvojmd#bqqbmdf`bswbjmkjp#plmqvof#lekf#wllhjwpfoe/>3%bns8+`boofgpbnsofpwl#nbhf`ln,sbdNbqwjm#Hfmmfgzb``fswpevoo#lekbmgofgAfpjgfp,,..=?,baof#wlwbqdfwpfppfm`fkjn#wl#jwp#az#`lnnlm-njmfqbowl#wbhftbzp#wlp-lqd,obgujpfgsfmbowzpjnsof9je#wkfzOfwwfqpb#pklqwKfqafqwpwqjhfp#dqlvsp-ofmdwkeojdkwplufqobspoltoz#ofppfq#pl`jbo#?,s= \\n\\njw#jmwlqbmhfg#qbwf#levo= ##bwwfnswsbjq#lenbhf#jwHlmwbhwBmwlmjlkbujmd#qbwjmdp#b`wjufpwqfbnpwqbssfg!*-`pp+klpwjofofbg#wlojwwof#dqlvsp/Sj`wvqf..=  #qltp>!#laif`wjmufqpf?ellwfq@vpwlnU=?_,p`qploujmd@kbnafqpobufqztlvmgfgtkfqfbp">#$vmgelq#boosbqwoz#.qjdkw9Bqbajbmab`hfg#`fmwvqzvmjw#lenlajof.Fvqlsf/jp#klnfqjph#legfpjqfg@ojmwlm`lpw#lebdf#le#af`lnf#mlmf#les%rvlw8Njggof#fbg$*X3@qjwj`ppwvgjlp=%`lsz8dqlvs!=bppfnaonbhjmd#sqfppfgtjgdfw-sp9!#<#qfavjowaz#plnfElqnfq#fgjwlqpgfobzfg@bmlmj`kbg#wkfsvpkjmd`obpp>!avw#bqfsbqwjboAbazolmalwwln#`bqqjfq@lnnbmgjwp#vpfBp#tjwk`lvqpfpb#wkjqggfmlwfpbopl#jmKlvpwlm13s{8!=b``vpfgglvaof#dlbo#leEbnlvp#*-ajmg+sqjfpwp#Lmojmfjm#Ivozpw#(#!d`lmpvowgf`jnbokfosevoqfujufgjp#ufqzq$($jswolpjmd#efnbofpjp#boplpwqjmdpgbzp#lebqqjuboevwvqf#?laif`welq`jmdPwqjmd+!#,= \\n\\nkfqf#jpfm`lgfg-##Wkf#aboollmglmf#az,`lnnlmad`lolqobt#le#Jmgjbmbbuljgfgavw#wkf1s{#0s{irvfqz-bewfq#bsloj`z-nfm#bmgellwfq.>#wqvf8elq#vpfp`qffm-Jmgjbm#jnbdf#>ebnjoz/kwws9,,#%maps8gqjufqpfwfqmbopbnf#bpmlwj`fgujftfqp~*+*8 #jp#nlqfpfbplmpelqnfq#wkf#mftjp#ivpw`lmpfmw#Pfbq`ktbp#wkftkz#wkfpkjssfgaq=?aq=tjgwk9#kfjdkw>nbgf#le`vjpjmfjp#wkbwb#ufqz#Bgnjqbo#ej{fg8mlqnbo#NjppjlmSqfpp/#lmwbqjl`kbqpfwwqz#wl#jmubgfg>!wqvf!psb`jmdjp#nlpwb#nlqf#wlwboozeboo#le~*8 ##jnnfmpfwjnf#jmpfw#lvwpbwjpezwl#ejmggltm#wlolw#le#Sobzfqpjm#Ivmfrvbmwvnmlw#wkfwjnf#wlgjpwbmwEjmmjpkpq`#>#+pjmdof#kfos#leDfqnbm#obt#bmgobafofgelqfpwp`llhjmdpsb`f!=kfbgfq.tfoo#bpPwbmofzaqjgdfp,dolabo@qlbwjb#Balvw#X3^8 ##jw/#bmgdqlvsfgafjmd#b*xwkqltkf#nbgfojdkwfqfwkj`boEEEEEE!alwwln!ojhf#b#fnsolzpojuf#jmbp#pffmsqjmwfqnlpw#leva.ojmhqfif`wpbmg#vpfjnbdf!=pv``ffgeffgjmdMv`ofbqjmelqnbwl#kfosTlnfm$pMfjwkfqNf{j`bmsqlwfjm?wbaof#az#nbmzkfbowkzobtpvjwgfujpfg-svpk+xpfoofqppjnsoz#Wkqlvdk-`llhjf#Jnbdf+logfq!=vp-ip!=#Pjm`f#vmjufqpobqdfq#lsfm#wl"..#fmgojfp#jm$^*8 ##nbqhfwtkl#jp#+!GLN@lnbmbdfglmf#elqwzsfle#Hjmdglnsqlejwpsqlslpfwl#pklt`fmwfq8nbgf#jwgqfppfgtfqf#jmnj{wvqfsqf`jpfbqjpjmdpq`#>#$nbhf#b#pf`vqfgAbswjpwulwjmd# \\n\\nubq#Nbq`k#1dqft#vs@ojnbwf-qfnlufphjoofgtbz#wkf?,kfbg=eb`f#leb`wjmd#qjdkw!=wl#tlqhqfgv`fpkbp#kbgfqf`wfgpklt+*8b`wjlm>allh#lebm#bqfb>>#!kww?kfbgfq ?kwno=`lmelqneb`jmd#`llhjf-qfoz#lmklpwfg#-`vpwlnkf#tfmwavw#elqpsqfbg#Ebnjoz#b#nfbmplvw#wkfelqvnp-ellwbdf!=Nlajo@ofnfmwp!#jg>!bp#kjdkjmwfmpf..=?"..efnbof#jp#pffmjnsojfgpfw#wkfb#pwbwfbmg#kjpebpwfpwafpjgfpavwwlm\\\\alvmgfg!=?jnd#Jmelal{fufmwp/b#zlvmdbmg#bqfMbwjuf#`kfbsfqWjnflvwbmg#kbpfmdjmfptlm#wkf+nlpwozqjdkw9#ejmg#b#.alwwlnSqjm`f#bqfb#lenlqf#lepfbq`k\\\\mbwvqf/ofdboozsfqjlg/obmg#lelq#tjwkjmgv`fgsqlujmdnjppjofol`boozBdbjmpwwkf#tbzh%rvlw8s{8!= svpkfg#babmglmmvnfqbo@fqwbjmJm#wkjpnlqf#jmlq#plnfmbnf#jpbmg/#jm`qltmfgJPAM#3.`qfbwfpL`wlafqnbz#mlw`fmwfq#obwf#jmGfefm`ffmb`wfgtjpk#wlaqlbgoz`llojmdlmolbg>jw-#Wkfqf`lufqNfnafqpkfjdkw#bppvnfp?kwno= sflsof-jm#lmf#>tjmgltellwfq\\\\b#dllg#qfhobnblwkfqp/wl#wkjp\\\\`llhjfsbmfo!=Olmglm/gfejmfp`qvpkfgabswjpn`lbpwbopwbwvp#wjwof!#nluf#wlolpw#jmafwwfq#jnsojfpqjuboqzpfqufqp#PzpwfnSfqkbspfp#bmg#`lmwfmgeoltjmdobpwfg#qjpf#jmDfmfpjpujft#leqjpjmd#pffn#wlavw#jm#ab`hjmdkf#tjoodjufm#bdjujmd#`jwjfp-eolt#le#Obwfq#boo#avwKjdktbzlmoz#azpjdm#lekf#glfpgjeefqpabwwfqz%bns8obpjmdofpwkqfbwpjmwfdfqwbhf#lmqfevpfg`boofg#>VP%bnsPff#wkfmbwjufpaz#wkjppzpwfn-kfbg#le9klufq/ofpajbmpvqmbnfbmg#boo`lnnlm,kfbgfq\\\\\\\\sbqbnpKbqubqg,sj{fo-qfnlubopl#olmdqlof#leiljmwozphzp`qbVmj`lgfaq#,= Bwobmwbmv`ofvp@lvmwz/svqfoz#`lvmw!=fbpjoz#avjog#blm`oj`hb#djufmsljmwfqk%rvlw8fufmwp#fopf#x gjwjlmpmlt#wkf/#tjwk#nbm#tkllqd,Tfalmf#bmg`buboqzKf#gjfgpfbwwof33/333#xtjmgltkbuf#wlje+tjmgbmg#jwpplofoz#n%rvlw8qfmftfgGfwqljwbnlmdpwfjwkfq#wkfn#jmPfmbwlqVp?,b=?Hjmd#leEqbm`jp.sqlgv`kf#vpfgbqw#bmgkjn#bmgvpfg#azp`lqjmdbw#klnfwl#kbufqfobwfpjajojwzeb`wjlmAveebolojmh!=?tkbw#kfeqff#wl@jwz#le`lnf#jmpf`wlqp`lvmwfglmf#gbzmfqulvpprvbqf#~8je+dljm#tkbwjnd!#bojp#lmozpfbq`k,wvfpgbzollpfozPlolnlmpf{vbo#.#?b#kqnfgjvn!GL#MLW#Eqbm`f/tjwk#b#tbq#bmgpf`lmg#wbhf#b#=   nbqhfw-kjdktbzglmf#jm`wjujwz!obpw!=laojdfgqjpf#wl!vmgfejnbgf#wl#Fbqoz#sqbjpfgjm#jwp#elq#kjpbwkofwfIvsjwfqZbkll"#wfqnfg#pl#nbmzqfbooz#p-#Wkf#b#tlnbm<ubovf>gjqf`w#qjdkw!#aj`z`ofb`jmd>!gbz#bmgpwbwjmdQbwkfq/kjdkfq#Leej`f#bqf#mltwjnfp/#tkfm#b#sbz#elqlm#wkjp.ojmh!=8alqgfqbqlvmg#bmmvbo#wkf#Mftsvw#wkf-`ln!#wbhjm#wlb#aqjfe+jm#wkfdqlvsp-8#tjgwkfmyznfppjnsof#jm#obwfxqfwvqmwkfqbszb#sljmwabmmjmdjmhp!= +*8!#qfb#sob`f_v330@bbalvw#bwq= \\n\\n``lvmw#djufp#b?P@QJSWQbjotbzwkfnfp,wlloal{AzJg+!{kvnbmp/tbw`kfpjm#plnf#je#+tj`lnjmd#elqnbwp#Vmgfq#avw#kbpkbmgfg#nbgf#azwkbm#jmefbq#legfmlwfg,jeqbnfofew#jmulowbdfjm#fb`kb%rvlw8abpf#leJm#nbmzvmgfqdlqfdjnfpb`wjlm#?,s= ?vpwlnUb8%dw8?,jnslqwplq#wkbwnlpwoz#%bns8qf#pjyf>!?,b=?,kb#`obppsbppjufKlpw#>#TkfwkfqefqwjofUbqjlvp>X^8+ev`bnfqbp,=?,wg=b`wp#bpJm#plnf=  ?"lqdbmjp#?aq#,=Afjijmd`bwbo/Lgfvwp`kfvqlsfvfvphbqbdbfjodfpufmphbfpsb/]bnfmpbifvpvbqjlwqbabiln/E{j`ls/Mdjmbpjfnsqfpjpwfnbl`wvaqfgvqbmwfb/]bgjqfnsqfpbnlnfmwlmvfpwqlsqjnfqbwqbu/Epdqb`jbpmvfpwqbsql`fplfpwbglp`bojgbgsfqplmbm/Vnfqlb`vfqgln/Vpj`bnjfnaqllefqwbpbodvmlpsb/Apfpfifnsolgfqf`klbgfn/Mpsqjubglbdqfdbqfmob`fpslpjaofklwfofppfujoobsqjnfql/Vowjnlfufmwlpbq`kjul`vowvqbnvifqfpfmwqbgbbmvm`jlfnabqdlnfq`bgldqbmgfpfpwvgjlnfilqfpefaqfqlgjpf/]lwvqjpnl`/_gjdlslqwbgbfpsb`jlebnjojbbmwlmjlsfqnjwfdvbqgbqbodvmbpsqf`jlpbodvjfmpfmwjglujpjwbpw/Awvol`lml`fqpfdvmgl`lmpfileqbm`jbnjmvwlppfdvmgbwfmfnlpfef`wlpn/Mobdbpfpj/_mqfujpwbdqbmbgb`lnsqbqjmdqfpldbq`/Abb``j/_mf`vbglqrvjfmfpjm`ovplgfafq/Mnbwfqjbklnaqfpnvfpwqbslgq/Abnb/]bmb/Vowjnbfpwbnlplej`jbowbnajfmmjmd/Vmpbovglpslgfnlpnfilqbqslpjwjlmavpjmfppklnfsbdfpf`vqjwzobmdvbdfpwbmgbqg`bnsbjdmefbwvqfp`bwfdlqzf{wfqmbo`kjogqfmqfpfqufgqfpfbq`kf{`kbmdfebulqjwfwfnsobwfnjojwbqzjmgvpwqzpfquj`fpnbwfqjbosqlgv`wpy.jmgf{9`lnnfmwpplewtbqf`lnsofwf`bofmgbqsobwelqnbqwj`ofpqfrvjqfgnlufnfmwrvfpwjlmavjogjmdslojwj`pslppjaofqfojdjlmskzpj`boeffgab`hqfdjpwfqsj`wvqfpgjpbaofgsqlwl`lobvgjfm`fpfwwjmdpb`wjujwzfofnfmwpofbqmjmdbmzwkjmdbapwqb`wsqldqfpplufqujftnbdbyjmff`lmlnj`wqbjmjmdsqfppvqfubqjlvp#?pwqlmd=sqlsfqwzpklssjmdwldfwkfqbgubm`fgafkbujlqgltmolbgefbwvqfgellwaboopfof`wfgObmdvbdfgjpwbm`fqfnfnafqwqb`hjmdsbpptlqgnlgjejfgpwvgfmwpgjqf`wozejdkwjmdmlqwkfqmgbwbabpfefpwjuboaqfbhjmdol`bwjlmjmwfqmfwgqlsgltmsqb`wj`ffujgfm`fevm`wjlmnbqqjbdfqfpslmpfsqlaofnpmfdbwjufsqldqbnpbmbozpjpqfofbpfgabmmfq!=svq`kbpfsloj`jfpqfdjlmbo`qfbwjufbqdvnfmwallhnbqhqfefqqfq`kfnj`bogjujpjlm`booab`hpfsbqbwfsqlif`wp`lmeoj`wkbqgtbqfjmwfqfpwgfojufqznlvmwbjmlawbjmfg>#ebopf8elq+ubq#b``fswfg`bsb`jwz`lnsvwfqjgfmwjwzbjq`qbewfnsolzfgsqlslpfgglnfpwj`jm`ovgfpsqlujgfgklpsjwboufqwj`bo`loobspfbssqlb`ksbqwmfqpoldl!=?bgbvdkwfqbvwklq!#`vowvqboebnjojfp,jnbdfp,bppfnaozsltfqevowfb`kjmdejmjpkfggjpwqj`w`qjwj`bo`dj.ajm,svqslpfpqfrvjqfpfof`wjlmaf`lnjmdsqlujgfpb`bgfnj`f{fq`jpfb`wvbooznfgj`jmf`lmpwbmwb``jgfmwNbdbyjmfgl`vnfmwpwbqwjmdalwwln!=lapfqufg9#%rvlw8f{wfmgfgsqfujlvpPlewtbqf`vpwlnfqgf`jpjlmpwqfmdwkgfwbjofgpojdkwozsobmmjmdwf{wbqfb`vqqfm`zfufqzlmfpwqbjdkwwqbmpefqslpjwjufsqlgv`fgkfqjwbdfpkjssjmdbaplovwfqf`fjufgqfofubmwavwwlm!#ujlofm`fbmztkfqfafmfejwpobvm`kfgqf`fmwozboojbm`felooltfgnvowjsofavoofwjmjm`ovgfgl``vqqfgjmwfqmbo\\\'+wkjp*-qfsvaoj`=?wq=?wg`lmdqfppqf`lqgfgvowjnbwfplovwjlm?vo#jg>!gjp`lufqKlnf?,b=tfapjwfpmfwtlqhpbowklvdkfmwjqfoznfnlqjbonfppbdfp`lmwjmvfb`wjuf!=plnftkbwuj`wlqjbTfpwfqm##wjwof>!Ol`bwjlm`lmwqb`wujpjwlqpGltmolbgtjwklvw#qjdkw!= nfbpvqfptjgwk#>#ubqjbaofjmuloufgujqdjmjbmlqnboozkbssfmfgb``lvmwppwbmgjmdmbwjlmboQfdjpwfqsqfsbqfg`lmwqlopb``vqbwfajqwkgbzpwqbwfdzleej`jbodqbskj`p`qjnjmboslppjaoz`lmpvnfqSfqplmbopsfbhjmdubojgbwfb`kjfufg-isd!#,=nb`kjmfp?,k1= ##hfztlqgpeqjfmgozaqlwkfqp`lnajmfglqjdjmbo`lnslpfgf{sf`wfgbgfrvbwfsbhjpwbmeloolt!#ubovbaof?,obafo=qfobwjufaqjmdjmdjm`qfbpfdlufqmlqsovdjmp,Ojpw#le#Kfbgfq!=!#mbnf>!#+%rvlw8dqbgvbwf?,kfbg= `lnnfq`fnbobzpjbgjqf`wlqnbjmwbjm8kfjdkw9p`kfgvof`kbmdjmdab`h#wl#`bwkloj`sbwwfqmp`lolq9# dqfbwfpwpvssojfpqfojbaof?,vo= \\n\\n?pfof`w#`jwjyfmp`olwkjmdtbw`kjmd?oj#jg>!psf`jej``bqqzjmdpfmwfm`f?`fmwfq=`lmwqbpwwkjmhjmd`bw`k+f*plvwkfqmNj`kbfo#nfq`kbmw`bqlvpfosbggjmd9jmwfqjlq-psojw+!ojybwjlmL`wlafq#*xqfwvqmjnsqlufg..%dw8 `lufqbdf`kbjqnbm-smd!#,=pvaif`wpQj`kbqg#tkbwfufqsqlabaozqf`lufqzabpfabooivgdnfmw`lmmf`w--`pp!#,=#tfapjwfqfslqwfggfebvow!,=?,b= fof`wqj`p`lwobmg`qfbwjlmrvbmwjwz-#JPAM#3gjg#mlw#jmpwbm`f.pfbq`k.!#obmd>!psfbhfqp@lnsvwfq`lmwbjmpbq`kjufpnjmjpwfqqfb`wjlmgjp`lvmwJwbojbml`qjwfqjbpwqlmdoz9#$kwws9$p`qjsw$`lufqjmdleefqjmdbssfbqfgAqjwjpk#jgfmwjezEb`fallhmvnfqlvpufkj`ofp`lm`fqmpBnfqj`bmkbmgojmdgju#jg>!Tjoojbn#sqlujgfq\\\\`lmwfmwb``vqb`zpf`wjlm#bmgfqplmeof{jaof@bwfdlqzobtqfm`f?p`qjsw=obzlvw>!bssqlufg#nb{jnvnkfbgfq!=?,wbaof=Pfquj`fpkbnjowlm`vqqfmw#`bmbgjbm`kbmmfop,wkfnfp,,bqwj`oflswjlmboslqwvdboubovf>!!jmwfqubotjqfofppfmwjwofgbdfm`jfpPfbq`k!#nfbpvqfgwklvpbmgpsfmgjmd%kfoojs8mft#Gbwf!#pjyf>!sbdfMbnfnjggof!#!#,=?,b=kjggfm!=pfrvfm`fsfqplmbolufqeoltlsjmjlmpjoojmljpojmhp!= \\n?wjwof=ufqpjlmppbwvqgbzwfqnjmbojwfnsqlsfmdjmffqpf`wjlmpgfpjdmfqsqlslpbo>!ebopf!Fpsb/]loqfofbpfppvanjw!#fq%rvlw8bggjwjlmpznswlnplqjfmwfgqfplvq`fqjdkw!=?sofbpvqfpwbwjlmpkjpwlqz-ofbujmd##alqgfq>`lmwfmwp`fmwfq!=- Plnf#gjqf`wfgpvjwbaofavodbqjb-pklt+*8gfpjdmfgDfmfqbo#`lm`fswpF{bnsofptjoojbnpLqjdjmbo!=?psbm=pfbq`k!=lsfqbwlqqfrvfpwpb#%rvlw8booltjmdGl`vnfmwqfujpjlm-# Wkf#zlvqpfoe@lmwb`w#nj`kjdbmFmdojpk#`lovnajbsqjlqjwzsqjmwjmdgqjmhjmdeb`jojwzqfwvqmfg@lmwfmw#leej`fqpQvppjbm#dfmfqbwf.;;6:.2!jmgj`bwfebnjojbq#rvbojwznbqdjm93#`lmwfmwujftslqw`lmwb`wp.wjwof!=slqwbaof-ofmdwk#fojdjaofjmuloufpbwobmwj`lmolbg>!gfebvow-pvssojfgsbznfmwpdolppbqz Bewfq#dvjgbm`f?,wg=?wgfm`lgjmdnjggof!=`bnf#wl#gjpsobzpp`lwwjpkilmbwkbmnbilqjwztjgdfwp-`ojmj`bowkbjobmgwfb`kfqp?kfbg= \\nbeef`wfgpvsslqwpsljmwfq8wlPwqjmd?,pnboo=lhobklnbtjoo#af#jmufpwlq3!#bow>!klojgbzpQfplvq`foj`fmpfg#+tkj`k#-#Bewfq#`lmpjgfqujpjwjmdf{solqfqsqjnbqz#pfbq`k!#bmgqljg!rvj`hoz#nffwjmdpfpwjnbwf8qfwvqm#8`lolq9 #kfjdkw>bssqlubo/#%rvlw8#`kf`hfg-njm-ip!nbdmfwj`=?,b=?,kelqf`bpw-#Tkjof#wkvqpgbzgufqwjpf%fb`vwf8kbp@obppfubovbwflqgfqjmdf{jpwjmdsbwjfmwp#Lmojmf#`lolqbglLswjlmp!`bnsafoo?"..#fmg?,psbm=??aq#,= \\\\slsvspp`jfm`fp/%rvlw8#rvbojwz#Tjmgltp#bppjdmfgkfjdkw9#?a#`obppof%rvlw8#ubovf>!#@lnsbmzf{bnsofp?jeqbnf#afojfufpsqfpfmwpnbqpkboosbqw#le#sqlsfqoz*- Wkf#wb{lmlnznv`k#le#?,psbm= !#gbwb.pqwvdv/Fpp`qlooWl#sqlif`w?kfbg= bwwlqmfzfnskbpjppslmplqpebm`zal{tlqog$p#tjogojef`kf`hfg>pfppjlmpsqldqbnns{8elmw.#Sqlif`wilvqmbopafojfufgub`bwjlmwklnsplmojdkwjmdbmg#wkf#psf`jbo#alqgfq>3`kf`hjmd?,walgz=?avwwlm#@lnsofwf`ofbqej{ ?kfbg= bqwj`of#?pf`wjlmejmgjmdpqlof#jm#slsvobq##L`wlafqtfapjwf#f{slpvqfvpfg#wl##`kbmdfplsfqbwfg`oj`hjmdfmwfqjmd`lnnbmgpjmelqnfg#mvnafqp##?,gju=`qfbwjmdlmPvanjwnbqzobmg`loofdfpbmbozwj`ojpwjmdp`lmwb`w-olddfgJmbgujplqzpjaojmdp`lmwfmw!p%rvlw8*p-#Wkjp#sb`hbdfp`kf`hal{pvddfpwpsqfdmbmwwlnlqqltpsb`jmd>j`lm-smdibsbmfpf`lgfabpfavwwlm!=dbnaojmdpv`k#bp#/#tkjof#?,psbm=#njpplvqjpslqwjmdwls92s{#-?,psbm=wfmpjlmptjgwk>!1obyzolbgmlufnafqvpfg#jm#kfjdkw>!`qjsw!= %maps8?,?wq=?wg#kfjdkw91,sqlgv`w`lvmwqz#jm`ovgf#ellwfq!#%ow8"..#wjwof!=?,irvfqz-?,elqn= +\\vBl\\bQ*+\\vUmGx*kqubwphjjwbojbmlqln/Nm(ow/Pqh/Kf4K4]4C5dwbnaj/Emmlwj`jbpnfmpbifpsfqplmbpgfqf`klpmb`jlmbopfquj`jl`lmwb`wlvpvbqjlpsqldqbnbdlajfqmlfnsqfpbpbmvm`jlpubofm`jb`lolnajbgfpsv/Epgfslqwfpsqlzf`wlsqlgv`wls/Vaoj`lmlplwqlpkjpwlqjbsqfpfmwfnjoolmfpnfgjbmwfsqfdvmwbbmwfqjlqqf`vqplpsqlaofnbpbmwjbdlmvfpwqlplsjmj/_mjnsqjnjqnjfmwqbpbn/Eqj`bufmgfglqpl`jfgbgqfpsf`wlqfbojybqqfdjpwqlsbobaqbpjmwfq/Epfmwlm`fpfpsf`jbonjfnaqlpqfbojgbg`/_qglabybqbdlybs/Mdjmbppl`jbofpaolrvfbqdfpwj/_mborvjofqpjpwfnbp`jfm`jbp`lnsofwlufqpj/_m`lnsofwbfpwvgjlps/Vaoj`blaifwjulboj`bmwfavp`bglq`bmwjgbgfmwqbgbpb``jlmfpbq`kjulppvsfqjlqnbzlq/Abbofnbmjbevm`j/_m/Vowjnlpkb`jfmglbrvfoolpfgj`j/_mefqmbmglbnajfmwfeb`fallhmvfpwqbp`ojfmwfpsql`fplpabpwbmwfsqfpfmwbqfslqwbq`lmdqfplsvaoj`bq`lnfq`jl`lmwqbwli/_ufmfpgjpwqjwlw/E`mj`b`lmivmwlfmfqd/Abwqbabibqbpwvqjbpqf`jfmwfvwjojybqalofw/Ampboubglq`lqqf`wbwqbabilpsqjnfqlpmfdl`jlpojafqwbggfwboofpsbmwboobsq/_{jnlbonfq/Abbmjnbofprvj/Emfp`lqby/_mpf``j/_mavp`bmglls`jlmfpf{wfqjlq`lm`fswlwlgbu/Abdbofq/Abfp`qjajqnfgj`jmboj`fm`jb`lmpvowbbpsf`wlp`q/Awj`bg/_obqfpivpwj`jbgfafq/Mmsfq/Alglmf`fpjwbnbmwfmfqsfrvf/]lqf`jajgbwqjavmbowfmfqjef`bm`j/_m`bmbqjbpgfp`bqdbgjufqplpnboolq`bqfrvjfqfw/E`mj`lgfafq/Abujujfmgbejmbmybpbgfobmwfevm`jlmb`lmpfilpgje/A`jo`jvgbgfpbmwjdvbpbubmybgbw/Eqnjmlvmjgbgfpp/Mm`kfy`bnsb/]bplewlmj`qfujpwbp`lmwjfmfpf`wlqfpnlnfmwlpeb`vowbg`q/Egjwlgjufqpbppvsvfpwleb`wlqfppfdvmglpsfrvf/]b<_<R<X<\\\\<Y=m<W<T<Y=m=n=`<]=g<W<R<]=g=n=`=a=n<R<P<y=m<W<T=n<R<_<R<P<Y<Q=c<^=m<Y=i=a=n<R<U<X<\\\\<Z<Y<]=g<W<T<_<R<X=o<X<Y<Q=`=a=n<R=n<]=g<W<\\\\=m<Y<]=c<R<X<T<Q=m<Y<]<Y<Q<\\\\<X<R=m<\\\\<U=n=h<R=n<R<Q<Y<_<R=m<^<R<T=m<^<R<U<T<_=l=g=n<R<Z<Y<^=m<Y<P=m<^<R=b<W<T=d=`=a=n<T=i<S<R<V<\\\\<X<Q<Y<U<X<R<P<\\\\<P<T=l<\\\\<W<T<]<R=n<Y<P=o=i<R=n=c<X<^=o=i=m<Y=n<T<W=b<X<T<X<Y<W<R<P<T=l<Y=n<Y<]=c=m<^<R<Y<^<T<X<Y=k<Y<_<R=a=n<T<P=m=k<Y=n=n<Y<P=g=j<Y<Q=g=m=n<\\\\<W<^<Y<X=`=n<Y<P<Y<^<R<X=g=n<Y<]<Y<^=g=d<Y<Q<\\\\<P<T=n<T<S<\\\\=n<R<P=o<S=l<\\\\<^<W<T=j<\\\\<R<X<Q<\\\\<_<R<X=g<[<Q<\\\\=b<P<R<_=o<X=l=o<_<^=m<Y<U<T<X<Y=n<V<T<Q<R<R<X<Q<R<X<Y<W<\\\\<X<Y<W<Y=m=l<R<V<T=b<Q=c<^<Y=m=`<y=m=n=`=l<\\\\<[<\\\\<Q<\\\\=d<T4K5h5h5k4K5h4F5f4@5i5f4U4B4K4Y4E4K5h4\\\\5f4U5h5f5k4@4C5f4C4K5h4N5j4K5h4]4C4F4A5o5i4Y5m4A4E5o4K5j4F4K5h5h5f5f5o5d5j4X4D5o4E5m5f5k4K4D5j4K4F4A5d4K4M4O5o4G4]4B5h4K5h4K5h4A4D4C5h5f5h4C4]5d4_4K4Z4V4[4F5o5d5j5k5j4K5o4_4K4A4E5j4K4C5f4K5h4[4D4U5h5f5o4X5o4]4K5f5i5o5j5i5j5k4K4X4]5o4E4]4J5f4_5j4X5f4[5i4K4\\\\4K4K5h5m5j4X4D4K4D4F4U4D4]4]4A5i4E5o4K5m4E5f5n5d5h5i4]5o4^5o5h5i4E4O4A5i4C5n5h4D5f5f4U5j5f4Y5d4]4E4[4]5f5n4X4K4]5o4@5d4K5h4O4B4]5e5i4U5j4K4K4D4A4G4U4]5d4Z4D4X5o5h5i4_4@5h4D5j4K5j4B4K5h4C5o4F4K4D5o5h5f4E4D4C5d5j4O5f4Z4K5f5d4@4C5m4]5f5n5o4F4D4F4O5m4Z5h5i4[4D4B4K5o4G4]4D4K4]5o4K5m4Z5h4K4A5h5e5j5m4_5k4O5f4K5i4]4C5d4C4O5j5k4K4C5f5j4K4K5h4K5j5i4U4]4Z4F4U5h5i4C4K4B5h5i5i5o5j\\x07\\x07\\x07\\x07\\0\\x07\\x07\\0\\v\\n \\b\\r\\f\\f\\r\\b \\n\\v\\x1B\\x1B\\0\\v\\v\\v\\v\\0\\x07qfplvq`fp`lvmwqjfprvfpwjlmpfrvjsnfmw`lnnvmjwzbubjobaofkjdkojdkwGWG,{kwnonbqhfwjmdhmltofgdfplnfwkjmd`lmwbjmfqgjqf`wjlmpvap`qjafbgufqwjpf`kbqb`wfq!#ubovf>!?,pfof`w=Bvpwqbojb!#`obpp>!pjwvbwjlmbvwklqjwzelooltjmdsqjnbqjozlsfqbwjlm`kboofmdfgfufolsfgbmlmznlvpevm`wjlm#evm`wjlmp`lnsbmjfppwqv`wvqfbdqffnfmw!#wjwof>!slwfmwjbofgv`bwjlmbqdvnfmwppf`lmgbqz`lszqjdkwobmdvbdfpf{`ovpjuf`lmgjwjlm?,elqn= pwbwfnfmwbwwfmwjlmAjldqbskz~#fopf#x plovwjlmptkfm#wkf#Bmbozwj`pwfnsobwfpgbmdfqlvppbwfoojwfgl`vnfmwpsvaojpkfqjnslqwbmwsqlwlwzsfjmeovfm`f%qbrvl8?,feef`wjufdfmfqboozwqbmpelqnafbvwjevowqbmpslqwlqdbmjyfgsvaojpkfgsqlnjmfmwvmwjo#wkfwkvnambjoMbwjlmbo#-el`vp+*8lufq#wkf#njdqbwjlmbmmlvm`fgellwfq!= f{`fswjlmofpp#wkbmf{sfmpjufelqnbwjlmeqbnftlqhwfqqjwlqzmgj`bwjlm`vqqfmwoz`obppMbnf`qjwj`jpnwqbgjwjlmfopftkfqfBof{bmgfqbssljmwfgnbwfqjbopaqlbg`bpwnfmwjlmfgbeejojbwf?,lswjlm=wqfbwnfmwgjeefqfmw,gfebvow-Sqfpjgfmwlm`oj`h>!ajldqbskzlwkfqtjpfsfqnbmfmwEqbm/KbjpKlooztllgf{sbmpjlmpwbmgbqgp?,pwzof= qfgv`wjlmGf`fnafq#sqfefqqfg@bnaqjgdflsslmfmwpAvpjmfpp#`lmevpjlm= ?wjwof=sqfpfmwfgf{sobjmfgglfp#mlw#tlqogtjgfjmwfqeb`fslpjwjlmpmftpsbsfq?,wbaof= nlvmwbjmpojhf#wkf#fppfmwjboejmbm`jbopfof`wjlmb`wjlm>!,babmglmfgFgv`bwjlmsbqpfJmw+pwbajojwzvmbaof#wl?,wjwof= qfobwjlmpMlwf#wkbwfeej`jfmwsfqelqnfgwtl#zfbqpPjm`f#wkfwkfqfelqftqbssfq!=bowfqmbwfjm`qfbpfgAbwwof#lesfq`fjufgwqzjmd#wlmf`fppbqzslqwqbzfgfof`wjlmpFojybafwk?,jeqbnf=gjp`lufqzjmpvqbm`fp-ofmdwk8ofdfmgbqzDfldqbskz`bmgjgbwf`lqslqbwfplnfwjnfppfquj`fp-jmkfqjwfg?,pwqlmd=@lnnvmjwzqfojdjlvpol`bwjlmp@lnnjwwffavjogjmdpwkf#tlqogml#olmdfqafdjmmjmdqfefqfm`f`bmmlw#afeqfrvfm`zwzsj`boozjmwl#wkf#qfobwjuf8qf`lqgjmdsqfpjgfmwjmjwjboozwf`kmjrvfwkf#lwkfqjw#`bm#aff{jpwfm`fvmgfqojmfwkjp#wjnfwfofsklmfjwfnp`lsfsqb`wj`fpbgubmwbdf*8qfwvqm#Elq#lwkfqsqlujgjmdgfnl`qb`zalwk#wkf#f{wfmpjufpveefqjmdpvsslqwfg`lnsvwfqp#evm`wjlmsqb`wj`bopbjg#wkbwjw#nbz#afFmdojpk?,eqln#wkf#p`kfgvofggltmolbgp?,obafo= pvpsf`wfgnbqdjm9#3psjqjwvbo?,kfbg= nj`qlplewdqbgvboozgjp`vppfgkf#af`bnff{f`vwjufirvfqz-ipklvpfklog`lmejqnfgsvq`kbpfgojwfqboozgfpwqlzfgvs#wl#wkfubqjbwjlmqfnbjmjmdjw#jp#mlw`fmwvqjfpIbsbmfpf#bnlmd#wkf`lnsofwfgbodlqjwknjmwfqfpwpqfafoojlmvmgfejmfgfm`lvqbdfqfpjybaofjmuloujmdpfmpjwjufvmjufqpbosqlujpjlm+bowklvdkefbwvqjmd`lmgv`wfg*/#tkj`k#`lmwjmvfg.kfbgfq!=Efaqvbqz#mvnfqlvp#lufqeolt9`lnslmfmweqbdnfmwpf{`foofmw`lopsbm>!wf`kmj`bomfbq#wkf#Bgubm`fg#plvq`f#lef{sqfppfgKlmd#Hlmd#Eb`fallhnvowjsof#nf`kbmjpnfofubwjlmleefmpjuf?,elqn= \\npslmplqfggl`vnfmw-lq#%rvlw8wkfqf#bqfwklpf#tklnlufnfmwpsql`fppfpgjeej`vowpvanjwwfgqf`lnnfmg`lmujm`fgsqlnlwjmd!#tjgwk>!-qfsob`f+`obppj`bo`lbojwjlmkjp#ejqpwgf`jpjlmpbppjpwbmwjmgj`bwfgfulovwjlm.tqbssfq!fmlvdk#wlbolmd#wkfgfojufqfg..= ?"..Bnfqj`bm#sqlwf`wfgMlufnafq#?,pwzof=?evqmjwvqfJmwfqmfw##lmaovq>!pvpsfmgfgqf`jsjfmwabpfg#lm#Nlqflufq/balojpkfg`loof`wfgtfqf#nbgffnlwjlmbofnfqdfm`zmbqqbwjufbgul`bwfps{8alqgfq`lnnjwwfggjq>!owq!fnsolzffpqfpfbq`k-#pfof`wfgpv``fpplq`vpwlnfqpgjpsobzfgPfswfnafqbgg@obpp+Eb`fallh#pvddfpwfgbmg#obwfqlsfqbwjmdfobalqbwfPlnfwjnfpJmpwjwvwf`fqwbjmozjmpwboofgelooltfqpIfqvpbofnwkfz#kbuf`lnsvwjmddfmfqbwfgsqlujm`fpdvbqbmwffbqajwqbqzqf`ldmjyftbmwfg#wls{8tjgwk9wkflqz#leafkbujlvqTkjof#wkffpwjnbwfgafdbm#wl#jw#af`bnfnbdmjwvgfnvpw#kbufnlqf#wkbmGjqf`wlqzf{wfmpjlmpf`qfwbqzmbwvqboozl``vqqjmdubqjbaofpdjufm#wkfsobwelqn-?,obafo=?ebjofg#wl`lnslvmgphjmgp#le#pl`jfwjfpbolmdpjgf#..%dw8 plvwktfpwwkf#qjdkwqbgjbwjlmnbz#kbuf#vmfp`bsf+pslhfm#jm!#kqfe>!,sqldqbnnflmoz#wkf#`lnf#eqlngjqf`wlqzavqjfg#jmb#pjnjobqwkfz#tfqf?,elmw=?,Mlqtfdjbmpsf`jejfgsqlgv`jmdsbppfmdfq+mft#Gbwfwfnslqbqzej`wjlmboBewfq#wkffrvbwjlmpgltmolbg-qfdvobqozgfufolsfqbaluf#wkfojmhfg#wlskfmlnfmbsfqjlg#lewllowjs!=pvapwbm`fbvwlnbwj`bpsf`w#leBnlmd#wkf`lmmf`wfgfpwjnbwfpBjq#Elq`fpzpwfn#lelaif`wjufjnnfgjbwfnbhjmd#jwsbjmwjmdp`lmrvfqfgbqf#pwjoosql`fgvqfdqltwk#lekfbgfg#azFvqlsfbm#gjujpjlmpnlof`vofpeqbm`kjpfjmwfmwjlmbwwqb`wfg`kjogkllgbopl#vpfggfgj`bwfgpjmdbslqfgfdqff#leebwkfq#le`lmeoj`wp?,b=?,s= `bnf#eqlntfqf#vpfgmlwf#wkbwqf`fjujmdF{f`vwjuffufm#nlqfb``fpp#wl`lnnbmgfqSlojwj`bonvpj`jbmpgfoj`jlvpsqjplmfqpbgufmw#leVWE.;!#,=?"X@GBWBX!=@lmwb`wPlvwkfqm#ad`lolq>!pfqjfp#le-#Jw#tbp#jm#Fvqlsfsfqnjwwfgubojgbwf-bssfbqjmdleej`jboppfqjlvpoz.obmdvbdfjmjwjbwfgf{wfmgjmdolmd.wfqnjmeobwjlmpv`k#wkbwdfw@llhjfnbqhfg#az?,avwwlm=jnsofnfmwavw#jw#jpjm`qfbpfpgltm#wkf#qfrvjqjmdgfsfmgfmw..= ?"..#jmwfqujftTjwk#wkf#`lsjfp#le`lmpfmpvptbp#avjowUfmfyvfob+elqnfqozwkf#pwbwfsfqplmmfopwqbwfdj`ebulvq#lejmufmwjlmTjhjsfgjb`lmwjmfmwujqwvbooztkj`k#tbpsqjm`jsof@lnsofwf#jgfmwj`bopklt#wkbwsqjnjwjufbtbz#eqlnnlof`vobqsqf`jpfozgjpploufgVmgfq#wkfufqpjlm>!=%maps8?,Jw#jp#wkf#Wkjp#jp#tjoo#kbuflqdbmjpnpplnf#wjnfEqjfgqj`ktbp#ejqpwwkf#lmoz#eb`w#wkbwelqn#jg>!sqf`fgjmdWf`kmj`boskzpj`jpwl``vqp#jmmbujdbwlqpf`wjlm!=psbm#jg>!plvdkw#wlafolt#wkfpvqujujmd~?,pwzof=kjp#gfbwkbp#jm#wkf`bvpfg#azsbqwjboozf{jpwjmd#vpjmd#wkftbp#djufmb#ojpw#leofufop#lemlwjlm#leLeej`jbo#gjpnjppfgp`jfmwjpwqfpfnaofpgvsoj`bwff{solpjufqf`lufqfgboo#lwkfqdboofqjfpxsbggjmd9sflsof#leqfdjlm#lebggqfppfpbppl`jbwfjnd#bow>!jm#nlgfqmpklvog#afnfwklg#leqfslqwjmdwjnfpwbnsmffgfg#wlwkf#Dqfbwqfdbqgjmdpffnfg#wlujftfg#bpjnsb`w#lmjgfb#wkbwwkf#Tlqogkfjdkw#lef{sbmgjmdWkfpf#bqf`vqqfmw!=`bqfevooznbjmwbjmp`kbqdf#le@obppj`bobggqfppfgsqfgj`wfgltmfqpkjs?gju#jg>!qjdkw!= qfpjgfm`fofbuf#wkf`lmwfmw!=bqf#lewfm##~*+*8 sqlabaoz#Sqlefpplq.avwwlm!#qfpslmgfgpbzp#wkbwkbg#wl#afsob`fg#jmKvmdbqjbmpwbwvp#lepfqufp#bpVmjufqpbof{f`vwjlmbddqfdbwfelq#tkj`kjmef`wjlmbdqffg#wlkltfufq/#slsvobq!=sob`fg#lm`lmpwqv`wfof`wlqbopznalo#lejm`ovgjmdqfwvqm#wlbq`kjwf`w@kqjpwjbmsqfujlvp#ojujmd#jmfbpjfq#wlsqlefpplq %ow8"..#feef`w#lebmbozwj`ptbp#wbhfmtkfqf#wkfwllh#lufqafojfe#jmBeqjhbbmpbp#ebq#bpsqfufmwfgtlqh#tjwkb#psf`jbo?ejfogpfw@kqjpwnbpQfwqjfufg Jm#wkf#ab`h#jmwlmlqwkfbpwnbdbyjmfp=?pwqlmd=`lnnjwwffdlufqmjmddqlvsp#lepwlqfg#jmfpwbaojpkb#dfmfqbojwp#ejqpwwkfjq#ltmslsvobwfgbm#laif`w@bqjaafbmboolt#wkfgjpwqj`wptjp`lmpjmol`bwjlm-8#tjgwk9#jmkbajwfgPl`jbojpwIbmvbqz#2?,ellwfq=pjnjobqoz`klj`f#lewkf#pbnf#psf`jej`#avpjmfpp#Wkf#ejqpw-ofmdwk8#gfpjqf#wlgfbo#tjwkpjm`f#wkfvpfqBdfmw`lm`fjufgjmgf{-sksbp#%rvlw8fmdbdf#jmqf`fmwoz/eft#zfbqptfqf#bopl ?kfbg= ?fgjwfg#azbqf#hmltm`jwjfp#jmb``fpphfz`lmgfnmfgbopl#kbufpfquj`fp/ebnjoz#leP`kllo#le`lmufqwfgmbwvqf#le#obmdvbdfnjmjpwfqp?,laif`w=wkfqf#jp#b#slsvobqpfrvfm`fpbgul`bwfgWkfz#tfqfbmz#lwkfqol`bwjlm>fmwfq#wkfnv`k#nlqfqfeof`wfgtbp#mbnfglqjdjmbo#b#wzsj`botkfm#wkfzfmdjmffqp`lvog#mlwqfpjgfmwptfgmfpgbzwkf#wkjqg#sqlgv`wpIbmvbqz#1tkbw#wkfzb#`fqwbjmqfb`wjlmpsql`fpplqbewfq#kjpwkf#obpw#`lmwbjmfg!=?,gju= ?,b=?,wg=gfsfmg#lmpfbq`k!= sjf`fp#le`lnsfwjmdQfefqfm`fwfmmfppfftkj`k#kbp#ufqpjlm>?,psbm=#??,kfbgfq=djufp#wkfkjpwlqjbmubovf>!!=sbggjmd93ujft#wkbwwldfwkfq/wkf#nlpw#tbp#elvmgpvapfw#lebwwb`h#lm`kjogqfm/sljmwp#lesfqplmbo#slpjwjlm9boofdfgoz@ofufobmgtbp#obwfqbmg#bewfqbqf#djufmtbp#pwjoop`qloojmdgfpjdm#lenbhfp#wkfnv`k#ofppBnfqj`bmp- Bewfq#/#avw#wkfNvpfvn#leolvjpjbmb+eqln#wkfnjmmfplwbsbqwj`ofpb#sql`fppGlnjmj`bmulovnf#leqfwvqmjmdgfefmpjuf33s{qjdknbgf#eqlnnlvpflufq!#pwzof>!pwbwfp#le+tkj`k#jp`lmwjmvfpEqbm`jp`lavjogjmd#tjwklvw#btjwk#plnftkl#tlvogb#elqn#leb#sbqw#leafelqf#jwhmltm#bp##Pfquj`fpol`bwjlm#bmg#lewfmnfbpvqjmdbmg#jw#jpsbsfqab`hubovfp#le ?wjwof=>#tjmglt-gfwfqnjmffq%rvlw8#sobzfg#azbmg#fbqoz?,`fmwfq=eqln#wkjpwkf#wkqffsltfq#bmgle#%rvlw8jmmfqKWNO?b#kqfe>!z9jmojmf8@kvq`k#lewkf#fufmwufqz#kjdkleej`jbo#.kfjdkw9#`lmwfmw>!,`dj.ajm,wl#`qfbwfbeqjhbbmpfpsfqbmwleqbm/Kbjpobwujf)Mvojfwvuj)_(`f)Mwjmb(af)Mwjmb\\fUh\\fT{\\fTN\\n{I\\np@Fr\\vBl\\bQ A{\\vUmGx A{ypYA\\0zX\\bTV\\bWl\\bUdBM\\vB{\\npV\\v@xB\\\\\\np@DbGz al\\npa fM uD\\bV~mx\\vQ}\\ndS p\\\\\\bVK\\bS]\\bU|oD kV\\ved\\vHR\\nb~M`\\nJpoD|Q\\nLPSw\\bTl\\nAI\\nxC\\bWt BqF`Cm\\vLm Kx }t\\bPv\\ny\\\\\\naB V\\nZdXUli fr i@ BHBDBV `V\\n[] p_ Tn\\n~A\\nxR uD `{\\bV@ Tn HK AJ\\vxsZf\\nqIZf\\vBM\\v|j }t\\bSM\\nmC\\vQ}pfquj`jlpbqw/A`volbqdfmwjmbabq`folmb`vborvjfqsvaoj`bglsqlgv`wlpslo/Awj`bqfpsvfpwbtjhjsfgjbpjdvjfmwfa/Vprvfgb`lnvmjgbgpfdvqjgbgsqjm`jsbosqfdvmwbp`lmwfmjglqfpslmgfqufmfyvfobsqlaofnbpgj`jfnaqfqfob`j/_mmlujfnaqfpjnjobqfpsqlzf`wlpsqldqbnbpjmpwjwvwlb`wjujgbgfm`vfmwqbf`lmln/Abjn/Mdfmfp`lmwb`wbqgfp`bqdbqmf`fpbqjlbwfm`j/_mwfo/Eelml`lnjpj/_m`bm`jlmfp`bsb`jgbgfm`lmwqbqbm/Mojpjpebulqjwlpw/Eqnjmlpsqlujm`jbfwjrvfwbpfofnfmwlpevm`jlmfpqfpvowbgl`bq/M`wfqsqlsjfgbgsqjm`jsjlmf`fpjgbgnvmj`jsbo`qfb`j/_mgfp`bqdbpsqfpfm`jb`lnfq`jbolsjmjlmfpfifq`j`jlfgjwlqjbopbobnbm`bdlmy/Mofygl`vnfmwlsfo/A`vobqf`jfmwfpdfmfqbofpwbqqbdlmbsq/M`wj`bmlufgbgfpsqlsvfpwbsb`jfmwfpw/E`mj`bplaifwjulp`lmwb`wlp\\fHB\\fIk\\fHn\\fH^\\fHS\\fHc\\fHU\\fId\\fHn\\fH{\\fHC\\fHR\\fHT\\fHR\\fHI\\fHc\\fHY\\fHn\\fH\\\\\\fHU\\fIk\\fHy\\fIg\\fHd\\fHy\\fIm\\fHw\\fH\\\\\\fHU\\fHR\\fH@\\fHR\\fHJ\\fHy\\fHU\\fHR\\fHT\\fHA\\fIl\\fHU\\fIm\\fHc\\fH\\\\\\fHU\\fIl\\fHB\\fId\\fHn\\fHJ\\fHS\\fHD\\fH@\\fHR\\fHHgjsolgl`p\\fHT\\fHB\\fHC\\fH\\\\\\fIn\\fHF\\fHD\\fHR\\fHB\\fHF\\fHH\\fHR\\fHG\\fHS\\fH\\\\\\fHx\\fHT\\fHH\\fHH\\fH\\\\\\fHU\\fH^\\fIg\\fH{\\fHU\\fIm\\fHj\\fH@\\fHR\\fH\\\\\\fHJ\\fIk\\fHZ\\fHU\\fIm\\fHd\\fHz\\fIk\\fH^\\fHC\\fHJ\\fHS\\fHy\\fHR\\fHB\\fHY\\fIk\\fH@\\fHH\\fIl\\fHD\\fH@\\fIl\\fHv\\fHB\\fI`\\fHH\\fHT\\fHR\\fH^\\fH^\\fIk\\fHz\\fHp\\fIe\\fH@\\fHB\\fHJ\\fHJ\\fHH\\fHI\\fHR\\fHD\\fHU\\fIl\\fHZ\\fHU\\fH\\\\\\fHi\\fH^\\fH{\\fHy\\fHA\\fIl\\fHD\\fH{\\fH\\\\\\fHF\\fHR\\fHT\\fH\\\\\\fHR\\fHH\\fHy\\fHS\\fHc\\fHe\\fHT\\fIk\\fH{\\fHC\\fIl\\fHU\\fIn\\fHm\\fHj\\fH{\\fIk\\fHs\\fIl\\fHB\\fHz\\fIg\\fHp\\fHy\\fHR\\fH\\\\\\fHi\\fHA\\fIl\\fH{\\fHC\\fIk\\fHH\\fIm\\fHB\\fHY\\fIg\\fHs\\fHJ\\fIk\\fHn\\fHi\\fH{\\fH\\\\\\fH|\\fHT\\fIk\\fHB\\fIk\\fH^\\fH^\\fH{\\fHR\\fHU\\fHR\\fH^\\fHf\\fHF\\fH\\\\\\fHv\\fHR\\fH\\\\\\fH|\\fHT\\fHR\\fHJ\\fIk\\fH\\\\\\fHp\\fHS\\fHT\\fHJ\\fHS\\fH^\\fH@\\fHn\\fHJ\\fH@\\fHD\\fHR\\fHU\\fIn\\fHn\\fH^\\fHR\\fHz\\fHp\\fIl\\fHH\\fH@\\fHs\\fHD\\fHB\\fHS\\fH^\\fHk\\fHT\\fIk\\fHj\\fHD\\fIk\\fHD\\fHC\\fHR\\fHy\\fIm\\fH^\\fH^\\fIe\\fH{\\fHA\\fHR\\fH{\\fH\\\\\\fIk\\fH^\\fHp\\fH{\\fHU\\fH\\\\\\fHR\\fHB\\fH^\\fH{\\fIk\\fHF\\fIk\\fHp\\fHU\\fHR\\fHI\\fHk\\fHT\\fIl\\fHT\\fHU\\fIl\\fHy\\fH^\\fHR\\fHL\\fIl\\fHy\\fHU\\fHR\\fHm\\fHJ\\fIn\\fH\\\\\\fHH\\fHU\\fHH\\fHT\\fHR\\fHH\\fHC\\fHR\\fHJ\\fHj\\fHC\\fHR\\fHF\\fHR\\fHy\\fHy\\fI`\\fHD\\fHZ\\fHR\\fHB\\fHJ\\fIk\\fHz\\fHC\\fHU\\fIl\\fH\\\\\\fHR\\fHC\\fHz\\fIm\\fHJ\\fH^\\fH{\\fIl`bwfdlqjfpf{sfqjfm`f?,wjwof= @lszqjdkw#ibubp`qjsw`lmgjwjlmpfufqzwkjmd?s#`obpp>!wf`kmloldzab`hdqlvmg?b#`obpp>!nbmbdfnfmw%`lsz8#132ibubP`qjsw`kbqb`wfqpaqfbg`qvnawkfnpfoufpklqjylmwbodlufqmnfmw@bojelqmjbb`wjujwjfpgjp`lufqfgMbujdbwjlmwqbmpjwjlm`lmmf`wjlmmbujdbwjlmbssfbqbm`f?,wjwof=?n`kf`hal{!#wf`kmjrvfpsqlwf`wjlmbssbqfmwozbp#tfoo#bpvmw$/#$VB.qfplovwjlmlsfqbwjlmpwfofujpjlmwqbmpobwfgTbpkjmdwlmmbujdbwlq-#>#tjmglt-jnsqfppjlm%ow8aq%dw8ojwfqbwvqfslsvobwjlmad`lolq>! fpsf`jbooz#`lmwfmw>!sqlgv`wjlmmftpofwwfqsqlsfqwjfpgfejmjwjlmofbgfqpkjsWf`kmloldzSbqojbnfmw`lnsbqjplmvo#`obpp>!-jmgf{Le+!`lm`ovpjlmgjp`vppjlm`lnslmfmwpajloldj`boQfulovwjlm\\\\`lmwbjmfqvmgfqpwllgmlp`qjsw=?sfqnjppjlmfb`k#lwkfqbwnlpskfqf#lmel`vp>!?elqn#jg>!sql`fppjmdwkjp-ubovfdfmfqbwjlm@lmefqfm`fpvapfrvfmwtfoo.hmltmubqjbwjlmpqfsvwbwjlmskfmlnfmlmgjp`jsojmfoldl-smd!#+gl`vnfmw/alvmgbqjfpf{sqfppjlmpfwwofnfmwAb`hdqlvmglvw#le#wkffmwfqsqjpf+!kwwsp9!#vmfp`bsf+!sbpptlqg!#gfnl`qbwj`?b#kqfe>!,tqbssfq!= nfnafqpkjsojmdvjpwj`s{8sbggjmdskjolplskzbppjpwbm`fvmjufqpjwzeb`jojwjfpqf`ldmjyfgsqfefqfm`fje#+wzsflenbjmwbjmfgul`bavobqzkzslwkfpjp-pvanjw+*8%bns8maps8bmmlwbwjlmafkjmg#wkfElvmgbwjlmsvaojpkfq!bppvnswjlmjmwqlgv`fg`lqqvswjlmp`jfmwjpwpf{soj`jwozjmpwfbg#legjnfmpjlmp#lm@oj`h>!`lmpjgfqfggfsbqwnfmwl``vsbwjlmpllm#bewfqjmufpwnfmwsqlmlvm`fgjgfmwjejfgf{sfqjnfmwNbmbdfnfmwdfldqbskj`!#kfjdkw>!ojmh#qfo>!-qfsob`f+,gfsqfppjlm`lmefqfm`fsvmjpknfmwfojnjmbwfgqfpjpwbm`fbgbswbwjlmlsslpjwjlmtfoo#hmltmpvssofnfmwgfwfqnjmfgk2#`obpp>!3s{8nbqdjmnf`kbmj`bopwbwjpwj`p`fofaqbwfgDlufqmnfmw Gvqjmd#wgfufolsfqpbqwjej`jbofrvjubofmwlqjdjmbwfg@lnnjppjlmbwwb`knfmw?psbm#jg>!wkfqf#tfqfMfgfqobmgpafzlmg#wkfqfdjpwfqfgilvqmbojpweqfrvfmwozboo#le#wkfobmd>!fm!#?,pwzof= baplovwf8#pvsslqwjmdf{wqfnfoz#nbjmpwqfbn?,pwqlmd=#slsvobqjwzfnsolznfmw?,wbaof= #`lopsbm>!?,elqn= ##`lmufqpjlmbalvw#wkf#?,s=?,gju=jmwfdqbwfg!#obmd>!fmSlqwvdvfpfpvapwjwvwfjmgjujgvbojnslppjaofnvowjnfgjbbonlpw#boos{#plojg# bsbqw#eqlnpvaif`w#wljm#Fmdojpk`qjwj`jyfgf{`fsw#elqdvjgfojmfplqjdjmboozqfnbqhbaofwkf#pf`lmgk1#`obpp>!?b#wjwof>!+jm`ovgjmdsbqbnfwfqpsqlkjajwfg>#!kwws9,,gj`wjlmbqzsfq`fswjlmqfulovwjlmelvmgbwjlms{8kfjdkw9pv``fppevopvsslqwfqpnjoofmmjvnkjp#ebwkfqwkf#%rvlw8ml.qfsfbw8`lnnfq`jbojmgvpwqjbofm`lvqbdfgbnlvmw#le#vmleej`jbofeej`jfm`zQfefqfm`fp`llqgjmbwfgjp`objnfqf{sfgjwjlmgfufolsjmd`bo`vobwfgpjnsojejfgofdjwjnbwfpvapwqjmd+3!#`obpp>!`lnsofwfozjoovpwqbwfejuf#zfbqpjmpwqvnfmwSvaojpkjmd2!#`obpp>!spz`kloldz`lmejgfm`fmvnafq#le#bapfm`f#leel`vpfg#lmiljmfg#wkfpwqv`wvqfpsqfujlvpoz=?,jeqbnf=lm`f#bdbjmavw#qbwkfqjnnjdqbmwple#`lvqpf/b#dqlvs#leOjwfqbwvqfVmojhf#wkf?,b=%maps8 evm`wjlm#jw#tbp#wkf@lmufmwjlmbvwlnlajofSqlwfpwbmwbddqfppjufbewfq#wkf#Pjnjobqoz/!#,=?,gju=`loof`wjlm evm`wjlmujpjajojwzwkf#vpf#leulovmwffqpbwwqb`wjlmvmgfq#wkf#wkqfbwfmfg)?"X@GBWBXjnslqwbm`fjm#dfmfqbowkf#obwwfq?,elqn= ?,-jmgf{Le+$j#>#38#j#?gjeefqfm`fgfulwfg#wlwqbgjwjlmppfbq`k#elqvowjnbwfozwlvqmbnfmwbwwqjavwfppl.`boofg#~ ?,pwzof=fubovbwjlmfnskbpjyfgb``fppjaof?,pf`wjlm=pv``fppjlmbolmd#tjwkNfbmtkjof/jmgvpwqjfp?,b=?aq#,=kbp#af`lnfbpsf`wp#leWfofujpjlmpveej`jfmwabphfwabooalwk#pjgfp`lmwjmvjmdbm#bqwj`of?jnd#bow>!bgufmwvqfpkjp#nlwkfqnbm`kfpwfqsqjm`jsofpsbqwj`vobq`lnnfmwbqzfeef`wp#legf`jgfg#wl!=?pwqlmd=svaojpkfqpIlvqmbo#legjeej`vowzeb`jojwbwfb``fswbaofpwzof-`pp!\\nevm`wjlm#jmmlubwjlm=@lszqjdkwpjwvbwjlmptlvog#kbufavpjmfppfpGj`wjlmbqzpwbwfnfmwplewfm#vpfgsfqpjpwfmwjm#Ibmvbqz`lnsqjpjmd?,wjwof= \\ngjsolnbwj``lmwbjmjmdsfqelqnjmdf{wfmpjlmpnbz#mlw#af`lm`fsw#le#lm`oj`h>!Jw#jp#boplejmbm`jbo#nbhjmd#wkfOv{fnalvqdbggjwjlmbobqf#`boofgfmdbdfg#jm!p`qjsw!*8avw#jw#tbpfof`wqlmj`lmpvanjw>! ?"..#Fmg#fof`wqj`boleej`jboozpvddfpwjlmwls#le#wkfvmojhf#wkfBvpwqbojbmLqjdjmboozqfefqfm`fp ?,kfbg= qf`ldmjpfgjmjwjbojyfojnjwfg#wlBof{bmgqjbqfwjqfnfmwBgufmwvqfpelvq#zfbqp %ow8"..#jm`qfbpjmdgf`lqbwjlmk0#`obpp>!lqjdjmp#lelaojdbwjlmqfdvobwjlm`obppjejfg+evm`wjlm+bgubmwbdfpafjmd#wkf#kjpwlqjbmp?abpf#kqfeqfsfbwfgoztjoojmd#wl`lnsbqbaofgfpjdmbwfgmlnjmbwjlmevm`wjlmbojmpjgf#wkfqfufobwjlmfmg#le#wkfp#elq#wkf#bvwklqjyfgqfevpfg#wlwbhf#sob`fbvwlmlnlvp`lnsqlnjpfslojwj`bo#qfpwbvqbmwwtl#le#wkfEfaqvbqz#1rvbojwz#leptelaif`w-vmgfqpwbmgmfbqoz#bootqjwwfm#azjmwfqujftp!#tjgwk>!2tjwkgqbtboeolbw9ofewjp#vpvbooz`bmgjgbwfpmftpsbsfqpnzpwfqjlvpGfsbqwnfmwafpw#hmltmsbqojbnfmwpvssqfppfg`lmufmjfmwqfnfnafqfggjeefqfmw#pzpwfnbwj`kbp#ofg#wlsqlsbdbmgb`lmwqloofgjmeovfm`fp`fqfnlmjbosql`objnfgSqlwf`wjlmoj#`obpp>!P`jfmwjej``obpp>!ml.wqbgfnbqhpnlqf#wkbm#tjgfpsqfbgOjafqbwjlmwllh#sob`fgbz#le#wkfbp#olmd#bpjnsqjplmfgBggjwjlmbo ?kfbg= ?nObalqbwlqzMlufnafq#1f{`fswjlmpJmgvpwqjboubqjfwz#leeolbw9#ofeGvqjmd#wkfbppfppnfmwkbuf#affm#gfbop#tjwkPwbwjpwj`pl``vqqfm`f,vo=?,gju=`ofbqej{!=wkf#svaoj`nbmz#zfbqptkj`k#tfqflufq#wjnf/pzmlmznlvp`lmwfmw!= sqfpvnbaozkjp#ebnjozvpfqBdfmw-vmf{sf`wfgjm`ovgjmd#`kboofmdfgb#njmlqjwzvmgfejmfg!afolmdp#wlwbhfm#eqlnjm#L`wlafqslpjwjlm9#pbjg#wl#afqfojdjlvp#Efgfqbwjlm#qltpsbm>!lmoz#b#eftnfbmw#wkbwofg#wl#wkf..= ?gju#?ejfogpfw=Bq`kajpkls#`obpp>!mlafjmd#vpfgbssqlb`kfpsqjujofdfpmlp`qjsw= qfpvowp#jmnbz#af#wkfFbpwfq#fddnf`kbmjpnpqfbplmbaofSlsvobwjlm@loof`wjlmpfof`wfg!=mlp`qjsw=,jmgf{-sksbqqjubo#le.ippgh$**8nbmbdfg#wljm`lnsofwf`bpvbowjfp`lnsofwjlm@kqjpwjbmpPfswfnafq#bqjwknfwj`sql`fgvqfpnjdkw#kbufSqlgv`wjlmjw#bssfbqpSkjolplskzeqjfmgpkjsofbgjmd#wldjujmd#wkfwltbqg#wkfdvbqbmwffggl`vnfmwfg`lolq9 333ujgfl#dbnf`lnnjppjlmqfeof`wjmd`kbmdf#wkfbppl`jbwfgpbmp.pfqjelmhfzsqfpp8#sbggjmd9Kf#tbp#wkfvmgfqozjmdwzsj`booz#/#bmg#wkf#pq`Fofnfmwpv``fppjufpjm`f#wkf#pklvog#af#mfwtlqhjmdb``lvmwjmdvpf#le#wkfoltfq#wkbmpkltp#wkbw?,psbm= \\n\\n`lnsobjmwp`lmwjmvlvprvbmwjwjfpbpwqlmlnfqkf#gjg#mlwgvf#wl#jwpbssojfg#wlbm#bufqbdffeelqwp#wlwkf#evwvqfbwwfnsw#wlWkfqfelqf/`bsbajojwzQfsvaoj`bmtbp#elqnfgFof`wqlmj`hjolnfwfqp`kboofmdfpsvaojpkjmdwkf#elqnfqjmgjdfmlvpgjqf`wjlmppvapjgjbqz`lmpsjqb`zgfwbjop#lebmg#jm#wkfbeelqgbaofpvapwbm`fpqfbplm#elq`lmufmwjlmjwfnwzsf>!baplovwfozpvsslpfgozqfnbjmfg#bbwwqb`wjufwqbufoojmdpfsbqbwfozel`vpfp#lmfofnfmwbqzbssoj`baofelvmg#wkbwpwzofpkffwnbmvp`qjswpwbmgp#elq#ml.qfsfbw+plnfwjnfp@lnnfq`jbojm#Bnfqj`bvmgfqwbhfmrvbqwfq#lebm#f{bnsofsfqplmboozjmgf{-sks<?,avwwlm= sfq`fmwbdfafpw.hmltm`qfbwjmd#b!#gjq>!owqOjfvwfmbmw ?gju#jg>!wkfz#tlvogbajojwz#lenbgf#vs#lemlwfg#wkbw`ofbq#wkbwbqdvf#wkbwwl#bmlwkfq`kjogqfm$psvqslpf#leelqnvobwfgabpfg#vslmwkf#qfdjlmpvaif`w#lesbppfmdfqpslppfppjlm- Jm#wkf#Afelqf#wkfbewfqtbqgp`vqqfmwoz#b`qlpp#wkfp`jfmwjej``lnnvmjwz-`bsjwbojpnjm#Dfqnbmzqjdkw.tjmdwkf#pzpwfnPl`jfwz#leslojwj`jbmgjqf`wjlm9tfmw#lm#wlqfnlubo#le#Mft#Zlqh#bsbqwnfmwpjmgj`bwjlmgvqjmd#wkfvmofpp#wkfkjpwlqj`bokbg#affm#bgfejmjwjufjmdqfgjfmwbwwfmgbm`f@fmwfq#elqsqlnjmfm`fqfbgzPwbwfpwqbwfdjfpavw#jm#wkfbp#sbqw#le`lmpwjwvwf`objn#wkbwobalqbwlqz`lnsbwjaofebjovqf#le/#pv`k#bp#afdbm#tjwkvpjmd#wkf#wl#sqlujgfefbwvqf#leeqln#tkj`k,!#`obpp>!dfloldj`bopfufqbo#legfojafqbwfjnslqwbmw#klogp#wkbwjmd%rvlw8#ubojdm>wlswkf#Dfqnbmlvwpjgf#lemfdlwjbwfgkjp#`bqffqpfsbqbwjlmjg>!pfbq`ktbp#`boofgwkf#elvqwkqf`qfbwjlmlwkfq#wkbmsqfufmwjlmtkjof#wkf#fgv`bwjlm/`lmmf`wjmdb``vqbwfoztfqf#avjowtbp#hjoofgbdqffnfmwpnv`k#nlqf#Gvf#wl#wkftjgwk9#233plnf#lwkfqHjmdgln#lewkf#fmwjqfebnlvp#elqwl#`lmmf`wlaif`wjufpwkf#Eqfm`ksflsof#bmgefbwvqfg!=jp#pbjg#wlpwqv`wvqboqfefqfmgvnnlpw#lewfmb#pfsbqbwf.= ?gju#jg#Leej`jbo#tlqogtjgf-bqjb.obafowkf#sobmfwbmg#jw#tbpg!#ubovf>!ollhjmd#bwafmfej`jbobqf#jm#wkfnlmjwlqjmdqfslqwfgozwkf#nlgfqmtlqhjmd#lmbooltfg#wltkfqf#wkf#jmmlubwjuf?,b=?,gju=plvmgwqb`hpfbq`kElqnwfmg#wl#afjmsvw#jg>!lsfmjmd#leqfpwqj`wfgbglswfg#azbggqfppjmdwkfloldjbmnfwklgp#leubqjbmw#le@kqjpwjbm#ufqz#obqdfbvwlnlwjufaz#ebq#wkfqbmdf#eqlnsvqpvjw#leeloolt#wkfaqlvdkw#wljm#Fmdobmgbdqff#wkbwb``vpfg#le`lnfp#eqlnsqfufmwjmdgju#pwzof>kjp#lq#kfqwqfnfmglvpeqffgln#le`lm`fqmjmd3#2fn#2fn8Abphfwaboo,pwzof-`ppbm#fbqojfqfufm#bewfq,!#wjwof>!-`ln,jmgf{wbhjmd#wkfsjwwpavqdk`lmwfmw!=?p`qjsw=+ewvqmfg#lvwkbujmd#wkf?,psbm= #l``bpjlmboaf`bvpf#jwpwbqwfg#wlskzpj`booz=?,gju= ##`qfbwfg#az@vqqfmwoz/#ad`lolq>!wbajmgf{>!gjpbpwqlvpBmbozwj`p#bopl#kbp#b=?gju#jg>!?,pwzof= ?`boofg#elqpjmdfq#bmg-pq`#>#!,,ujlobwjlmpwkjp#sljmw`lmpwbmwozjp#ol`bwfgqf`lqgjmdpg#eqln#wkfmfgfqobmgpslqwvdv/Fp;N;};D;u;F5m4K4]4_7`gfpbqqlool`lnfmwbqjlfgv`b`j/_mpfswjfnaqfqfdjpwqbglgjqf``j/_mvaj`b`j/_msvaoj`jgbgqfpsvfpwbpqfpvowbglpjnslqwbmwfqfpfqubglpbqw/A`volpgjefqfmwfppjdvjfmwfpqfs/Vaoj`bpjwvb`j/_mnjmjpwfqjlsqjub`jgbggjqf`wlqjlelqnb`j/_mslaob`j/_msqfpjgfmwf`lmw\',\'fmjglpb``fplqjlpwf`kmlqbwjsfqplmbofp`bwfdlq/Abfpsf`jbofpgjpslmjaofb`wvbojgbgqfefqfm`jbuboobglojgajaojlwf`bqfob`jlmfp`bofmgbqjlslo/Awj`bpbmwfqjlqfpgl`vnfmwlpmbwvqbofybnbwfqjbofpgjefqfm`jbf`lm/_nj`bwqbmpslqwfqlgq/Advfysbqwj`jsbqfm`vfmwqbmgjp`vpj/_mfpwqv`wvqbevmgb`j/_meqf`vfmwfpsfqnbmfmwfwlwbonfmwf<P<R<Z<Q<R<]=o<X<Y=n<P<R<Z<Y=n<^=l<Y<P=c=n<\\\\<V<Z<Y=k=n<R<]=g<]<R<W<Y<Y<R=k<Y<Q=`=a=n<R<_<R<V<R<_<X<\\\\<S<R=m<W<Y<^=m<Y<_<R=m<\\\\<U=n<Y=k<Y=l<Y<[<P<R<_=o=n=m<\\\\<U=n<\\\\<Z<T<[<Q<T<P<Y<Z<X=o<]=o<X=o=n<s<R<T=m<V<[<X<Y=m=`<^<T<X<Y<R=m<^=c<[<T<Q=o<Z<Q<R=m<^<R<Y<U<W=b<X<Y<U<S<R=l<Q<R<P<Q<R<_<R<X<Y=n<Y<U=m<^<R<T=i<S=l<\\\\<^<\\\\=n<\\\\<V<R<U<P<Y=m=n<R<T<P<Y<Y=n<Z<T<[<Q=`<R<X<Q<R<U<W=o=k=d<Y<S<Y=l<Y<X=k<\\\\=m=n<T=k<\\\\=m=n=`=l<\\\\<]<R=n<Q<R<^=g=i<S=l<\\\\<^<R=m<R<]<R<U<S<R=n<R<P<P<Y<Q<Y<Y=k<T=m<W<Y<Q<R<^=g<Y=o=m<W=o<_<R<V<R<W<R<Q<\\\\<[<\\\\<X=n<\\\\<V<R<Y=n<R<_<X<\\\\<S<R=k=n<T<s<R=m<W<Y=n<\\\\<V<T<Y<Q<R<^=g<U=m=n<R<T=n=n<\\\\<V<T=i=m=l<\\\\<[=o<M<\\\\<Q<V=n=h<R=l=o<P<v<R<_<X<\\\\<V<Q<T<_<T=m<W<R<^<\\\\<Q<\\\\=d<Y<U<Q<\\\\<U=n<T=m<^<R<T<P=m<^=c<[=`<W=b<]<R<U=k<\\\\=m=n<R=m=l<Y<X<T<v=l<R<P<Y<H<R=l=o<P=l=g<Q<V<Y=m=n<\\\\<W<T<S<R<T=m<V=n=g=m=c=k<P<Y=m=c=j=j<Y<Q=n=l=n=l=o<X<\\\\=m<\\\\<P=g=i=l=g<Q<V<\\\\<q<R<^=g<U=k<\\\\=m<R<^<P<Y=m=n<\\\\=h<T<W=`<P<P<\\\\=l=n<\\\\=m=n=l<\\\\<Q<P<Y=m=n<Y=n<Y<V=m=n<Q<\\\\=d<T=i<P<T<Q=o=n<T<P<Y<Q<T<T<P<Y=b=n<Q<R<P<Y=l<_<R=l<R<X=m<\\\\<P<R<P=a=n<R<P=o<V<R<Q=j<Y=m<^<R<Y<P<V<\\\\<V<R<U<|=l=i<T<^5i5j4F4C5e4I4]4_4K5h4]4_4K5h4E4K5h4U4K5i5o4F4D5k4K4D4]4K5i4@4K5h5f5d5i4K5h4Y5d4]4@4C5f4C4E4K5h4U4Z5d4I4Z4K5m4E4K5h5n4_5i4K5h4U4K4D4F4A5i5f5h5i5h5m4K4F5i5h4F5n5e4F4U4C5f5h4K5h4X4U4]4O4B4D4K4]4F4[5d5f4]4U5h5f5o5i4I4]5m4K5n4[5h4D4K4F4K5h5h4V4E4F4]4F5f4D4K5h5j4K4_4K5h4X5f4B5i5j4F4C5f4K5h4U4]4D4K5h5n4Y4Y4K5m5h4K5i4U5h5f5k4K4F4A4C5f4G4K5h5h5k5i4K5h4U5i5h5i5o4F4D4E5f5i5o5j5o4K5h4[5m5h5m5f4C5f5d4I4C4K4]4E4F4K4]5f4B4K5h4Y4A4E4F4_4@5f5h4K5h5d5n4F4U5j4C5i4K5i4C5f5j4E4F4Y5i5f5i4O4]4X5f5m4K5h4\\\\5f5j4U4]4D5f4E4D5d4K4D4E4O5h4U4K4D4K5h4_5m4]5i4X4K5o5h4F4U4K5h5e4K5h4O5d5h4K5h4_5j4E4@4K5i4U4E4K5h4Y4A5m4K5h4C5f5j5o5h5i4K4F4K5h4B4K4Y4K5h5i5h5m4O4U4Z4K4M5o4F4K4D4E4K5h4B5f4]4]4_4K4J5h4K5h5n5h4D4K5h4O4C4D5i5n4K4[4U5i4]4K4_5h5i5j4[5n4E4K5h5o4F4D4K5h4]4@5h4K4X4F4]5o4K5h5n4C5i5f4U4[5f5opAzWbdMbnf+-isd!#bow>!2s{#plojg# -dje!#bow>!wqbmpsbqfmwjmelqnbwjlmbssoj`bwjlm!#lm`oj`h>!fpwbaojpkfgbgufqwjpjmd-smd!#bow>!fmujqlmnfmwsfqelqnbm`fbssqlsqjbwf%bns8ngbpk8jnnfgjbwfoz?,pwqlmd=?,qbwkfq#wkbmwfnsfqbwvqfgfufolsnfmw`lnsfwjwjlmsob`fklogfqujpjajojwz9`lszqjdkw!=3!#kfjdkw>!fufm#wklvdkqfsob`fnfmwgfpwjmbwjlm@lqslqbwjlm?vo#`obpp>!Bppl`jbwjlmjmgjujgvbopsfqpsf`wjufpfwWjnflvw+vqo+kwws9,,nbwkfnbwj`pnbqdjm.wls9fufmwvbooz#gfp`qjswjlm*#ml.qfsfbw`loof`wjlmp-ISDwkvnasbqwj`jsbwf,kfbg=?algzeolbw9ofew8?oj#`obpp>!kvmgqfgp#le Kltfufq/#`lnslpjwjlm`ofbq9alwk8`llsfqbwjlmtjwkjm#wkf#obafo#elq>!alqgfq.wls9Mft#Yfbobmgqf`lnnfmgfgsklwldqbskzjmwfqfpwjmd%ow8pvs%dw8`lmwqlufqpzMfwkfqobmgpbowfqmbwjufnb{ofmdwk>!ptjwyfqobmgGfufolsnfmwfppfmwjbooz Bowklvdk#?,wf{wbqfb=wkvmgfqajqgqfsqfpfmwfg%bns8mgbpk8psf`vobwjlm`lnnvmjwjfpofdjpobwjlmfof`wqlmj`p \\n?gju#jg>!joovpwqbwfgfmdjmffqjmdwfqqjwlqjfpbvwklqjwjfpgjpwqjavwfg5!#kfjdkw>!pbmp.pfqje8`bsbaof#le#gjpbssfbqfgjmwfqb`wjufollhjmd#elqjw#tlvog#afBedkbmjpwbmtbp#`qfbwfgNbwk-eollq+pvqqlvmgjmd`bm#bopl#aflapfqubwjlmnbjmwfmbm`ffm`lvmwfqfg?k1#`obpp>!nlqf#qf`fmwjw#kbp#affmjmubpjlm#le*-dfwWjnf+*evmgbnfmwboGfpsjwf#wkf!=?gju#jg>!jmpsjqbwjlmf{bnjmbwjlmsqfsbqbwjlmf{sobmbwjlm?jmsvw#jg>!?,b=?,psbm=ufqpjlmp#lejmpwqvnfmwpafelqf#wkf##>#$kwws9,,Gfp`qjswjlmqfobwjufoz#-pvapwqjmd+fb`k#le#wkff{sfqjnfmwpjmeovfmwjbojmwfdqbwjlmnbmz#sflsofgvf#wl#wkf#`lnajmbwjlmgl#mlw#kbufNjggof#Fbpw?mlp`qjsw=?`lszqjdkw!#sfqkbsp#wkfjmpwjwvwjlmjm#Gf`fnafqbqqbmdfnfmwnlpw#ebnlvpsfqplmbojwz`qfbwjlm#leojnjwbwjlmpf{`ovpjufozplufqfjdmwz.`lmwfmw!= ?wg#`obpp>!vmgfqdqlvmgsbqboofo#wlgl`wqjmf#lel``vsjfg#azwfqnjmloldzQfmbjppbm`fb#mvnafq#lepvsslqw#elqf{solqbwjlmqf`ldmjwjlmsqfgf`fpplq?jnd#pq`>!,?k2#`obpp>!svaoj`bwjlmnbz#bopl#afpsf`jbojyfg?,ejfogpfw=sqldqfppjufnjoojlmp#lepwbwfp#wkbwfmelq`fnfmwbqlvmg#wkf#lmf#bmlwkfq-sbqfmwMlgfbdqj`vowvqfBowfqmbwjufqfpfbq`kfqpwltbqgp#wkfNlpw#le#wkfnbmz#lwkfq#+fpsf`jbooz?wg#tjgwk>!8tjgwk9233&jmgfsfmgfmw?k0#`obpp>!#lm`kbmdf>!*-bgg@obpp+jmwfqb`wjlmLmf#le#wkf#gbvdkwfq#leb``fpplqjfpaqbm`kfp#le ?gju#jg>!wkf#obqdfpwgf`obqbwjlmqfdvobwjlmpJmelqnbwjlmwqbmpobwjlmgl`vnfmwbqzjm#lqgfq#wl!= ?kfbg= ?!#kfjdkw>!2b`qlpp#wkf#lqjfmwbwjlm*8?,p`qjsw=jnsofnfmwfg`bm#af#pffmwkfqf#tbp#bgfnlmpwqbwf`lmwbjmfq!=`lmmf`wjlmpwkf#Aqjwjpktbp#tqjwwfm"jnslqwbmw8s{8#nbqdjm.elooltfg#azbajojwz#wl#`lnsoj`bwfggvqjmd#wkf#jnnjdqbwjlmbopl#`boofg?k7#`obpp>!gjpwjm`wjlmqfsob`fg#azdlufqmnfmwpol`bwjlm#lejm#Mlufnafqtkfwkfq#wkf?,s= ?,gju=b`rvjpjwjlm`boofg#wkf#sfqpf`vwjlmgfpjdmbwjlmxelmw.pjyf9bssfbqfg#jmjmufpwjdbwff{sfqjfm`fgnlpw#ojhfoztjgfoz#vpfggjp`vppjlmpsqfpfm`f#le#+gl`vnfmw-f{wfmpjufozJw#kbp#affmjw#glfp#mlw`lmwqbqz#wljmkbajwbmwpjnsqlufnfmwp`klobqpkjs`lmpvnswjlmjmpwqv`wjlmelq#f{bnsoflmf#lq#nlqfs{8#sbggjmdwkf#`vqqfmwb#pfqjfp#lebqf#vpvboozqlof#jm#wkfsqfujlvpoz#gfqjubwjufpfujgfm`f#lef{sfqjfm`fp`lolqp`kfnfpwbwfg#wkbw`fqwjej`bwf?,b=?,gju= #pfof`wfg>!kjdk#p`klloqfpslmpf#wl`lnelqwbaofbglswjlm#lewkqff#zfbqpwkf#`lvmwqzjm#Efaqvbqzpl#wkbw#wkfsflsof#tkl#sqlujgfg#az?sbqbn#mbnfbeef`wfg#azjm#wfqnp#lebssljmwnfmwJPL.;;6:.2!tbp#alqm#jmkjpwlqj`bo#qfdbqgfg#bpnfbpvqfnfmwjp#abpfg#lm#bmg#lwkfq#9#evm`wjlm+pjdmjej`bmw`fofaqbwjlmwqbmpnjwwfg,ip,irvfqz-jp#hmltm#bpwkflqfwj`bo#wbajmgf{>!jw#`lvog#af?mlp`qjsw= kbujmd#affm ?kfbg= ?#%rvlw8Wkf#`lnsjobwjlmkf#kbg#affmsqlgv`fg#azskjolplskfq`lmpwqv`wfgjmwfmgfg#wlbnlmd#lwkfq`lnsbqfg#wlwl#pbz#wkbwFmdjmffqjmdb#gjeefqfmwqfefqqfg#wlgjeefqfm`fpafojfe#wkbwsklwldqbskpjgfmwjezjmdKjpwlqz#le#Qfsvaoj`#lemf`fppbqjozsqlabajojwzwf`kmj`boozofbujmd#wkfpsf`wb`vobqeqb`wjlm#lefof`wqj`jwzkfbg#le#wkfqfpwbvqbmwpsbqwmfqpkjsfnskbpjp#lmnlpw#qf`fmwpkbqf#tjwk#pbzjmd#wkbwejoofg#tjwkgfpjdmfg#wljw#jp#lewfm!=?,jeqbnf=bp#elooltp9nfqdfg#tjwkwkqlvdk#wkf`lnnfq`jbo#sljmwfg#lvwlsslqwvmjwzujft#le#wkfqfrvjqfnfmwgjujpjlm#lesqldqbnnjmdkf#qf`fjufgpfwJmwfqubo!=?,psbm=?,jm#Mft#Zlqhbggjwjlmbo#`lnsqfppjlm ?gju#jg>!jm`lqslqbwf8?,p`qjsw=?bwwb`kFufmwaf`bnf#wkf#!#wbqdfw>!\\\\`bqqjfg#lvwPlnf#le#wkfp`jfm`f#bmgwkf#wjnf#le@lmwbjmfq!=nbjmwbjmjmd@kqjpwlskfqNv`k#le#wkftqjwjmdp#le!#kfjdkw>!1pjyf#le#wkfufqpjlm#le#nj{wvqf#le#afwtffm#wkfF{bnsofp#lefgv`bwjlmbo`lnsfwjwjuf#lmpvanjw>!gjqf`wlq#legjpwjm`wjuf,GWG#[KWNO#qfobwjmd#wlwfmgfm`z#wlsqlujm`f#letkj`k#tlvoggfpsjwf#wkfp`jfmwjej`#ofdjpobwvqf-jmmfqKWNO#boofdbwjlmpBdqj`vowvqftbp#vpfg#jmbssqlb`k#wljmwfoojdfmwzfbqp#obwfq/pbmp.pfqjegfwfqnjmjmdSfqelqnbm`fbssfbqbm`fp/#tkj`k#jp#elvmgbwjlmpbaaqfujbwfgkjdkfq#wkbmp#eqln#wkf#jmgjujgvbo#`lnslpfg#lepvsslpfg#wl`objnp#wkbwbwwqjavwjlmelmw.pjyf92fofnfmwp#leKjpwlqj`bo#kjp#aqlwkfqbw#wkf#wjnfbmmjufqpbqzdlufqmfg#azqfobwfg#wl#vowjnbwfoz#jmmlubwjlmpjw#jp#pwjoo`bm#lmoz#afgfejmjwjlmpwlDNWPwqjmdB#mvnafq#lejnd#`obpp>!Fufmwvbooz/tbp#`kbmdfgl``vqqfg#jmmfjdkalqjmdgjpwjmdvjpktkfm#kf#tbpjmwqlgv`jmdwfqqfpwqjboNbmz#le#wkfbqdvfp#wkbwbm#Bnfqj`bm`lmrvfpw#letjgfpsqfbg#tfqf#hjoofgp`qffm#bmg#Jm#lqgfq#wlf{sf`wfg#wlgfp`fmgbmwpbqf#ol`bwfgofdjpobwjufdfmfqbwjlmp#ab`hdqlvmgnlpw#sflsofzfbqp#bewfqwkfqf#jp#mlwkf#kjdkfpweqfrvfmwoz#wkfz#gl#mlwbqdvfg#wkbwpkltfg#wkbwsqfglnjmbmwwkfloldj`boaz#wkf#wjnf`lmpjgfqjmdpklqw.ojufg?,psbm=?,b=`bm#af#vpfgufqz#ojwwoflmf#le#wkf#kbg#boqfbgzjmwfqsqfwfg`lnnvmj`bwfefbwvqfp#ledlufqmnfmw/?,mlp`qjsw=fmwfqfg#wkf!#kfjdkw>!0Jmgfsfmgfmwslsvobwjlmpobqdf.p`bof-#Bowklvdk#vpfg#jm#wkfgfpwqv`wjlmslppjajojwzpwbqwjmd#jmwtl#lq#nlqff{sqfppjlmppvalqgjmbwfobqdfq#wkbmkjpwlqz#bmg?,lswjlm= @lmwjmfmwbofojnjmbwjmdtjoo#mlw#afsqb`wj`f#lejm#eqlmw#lepjwf#le#wkffmpvqf#wkbwwl#`qfbwf#bnjppjppjssjslwfmwjboozlvwpwbmgjmdafwwfq#wkbmtkbw#jp#mltpjwvbwfg#jmnfwb#mbnf>!WqbgjwjlmbopvddfpwjlmpWqbmpobwjlmwkf#elqn#lebwnlpskfqj`jgfloldj`bofmwfqsqjpfp`bo`vobwjmdfbpw#le#wkfqfnmbmwp#lesovdjmpsbdf,jmgf{-sks<qfnbjmfg#jmwqbmpelqnfgKf#tbp#bopltbp#boqfbgzpwbwjpwj`bojm#ebulq#leNjmjpwqz#lenlufnfmw#leelqnvobwjlmjp#qfrvjqfg?ojmh#qfo>!Wkjp#jp#wkf#?b#kqfe>!,slsvobqjyfgjmuloufg#jmbqf#vpfg#wlbmg#pfufqbonbgf#az#wkfpffnp#wl#afojhfoz#wkbwSbofpwjmjbmmbnfg#bewfqjw#kbg#affmnlpw#`lnnlmwl#qfefq#wlavw#wkjp#jp`lmpf`vwjufwfnslqbqjozJm#dfmfqbo/`lmufmwjlmpwbhfp#sob`fpvagjujpjlmwfqqjwlqjbolsfqbwjlmbosfqnbmfmwoztbp#obqdfozlvwaqfbh#lejm#wkf#sbpwelooltjmd#b#{nomp9ld>!=?b#`obpp>!`obpp>!wf{w@lmufqpjlm#nbz#af#vpfgnbmveb`wvqfbewfq#afjmd`ofbqej{!= rvfpwjlm#letbp#fof`wfgwl#af`lnf#baf`bvpf#le#plnf#sflsofjmpsjqfg#azpv``fppevo#b#wjnf#tkfmnlqf#`lnnlmbnlmdpw#wkfbm#leej`jbotjgwk9233&8wf`kmloldz/tbp#bglswfgwl#hffs#wkfpfwwofnfmwpojuf#ajqwkpjmgf{-kwno!@lmmf`wj`vwbppjdmfg#wl%bns8wjnfp8b``lvmw#elqbojdm>qjdkwwkf#`lnsbmzbotbzp#affmqfwvqmfg#wljmuloufnfmwAf`bvpf#wkfwkjp#sfqjlg!#mbnf>!r!#`lmejmfg#wlb#qfpvow#leubovf>!!#,=jp#b`wvboozFmujqlmnfmw ?,kfbg= @lmufqpfoz/= ?gju#jg>!3!#tjgwk>!2jp#sqlabaozkbuf#af`lnf`lmwqloojmdwkf#sqlaofn`jwjyfmp#leslojwj`jbmpqfb`kfg#wkfbp#fbqoz#bp9mlmf8#lufq?wbaof#`fooubojgjwz#legjqf`woz#wllmnlvpfgltmtkfqf#jw#jptkfm#jw#tbpnfnafqp#le#qfobwjlm#wlb``lnnlgbwfbolmd#tjwk#Jm#wkf#obwfwkf#Fmdojpkgfoj`jlvp!=wkjp#jp#mlwwkf#sqfpfmwje#wkfz#bqfbmg#ejmboozb#nbwwfq#le \\n?,gju=  ?,p`qjsw=ebpwfq#wkbmnbilqjwz#lebewfq#tkj`k`lnsbqbwjufwl#nbjmwbjmjnsqluf#wkfbtbqgfg#wkffq!#`obpp>!eqbnfalqgfqqfpwlqbwjlmjm#wkf#pbnfbmbozpjp#lewkfjq#ejqpwGvqjmd#wkf#`lmwjmfmwbopfrvfm`f#leevm`wjlm+*xelmw.pjyf9#tlqh#lm#wkf?,p`qjsw= ?afdjmp#tjwkibubp`qjsw9`lmpwjwvfmwtbp#elvmgfgfrvjojaqjvnbppvnf#wkbwjp#djufm#azmffgp#wl#af`llqgjmbwfpwkf#ubqjlvpbqf#sbqw#lelmoz#jm#wkfpf`wjlmp#lejp#b#`lnnlmwkflqjfp#legjp`lufqjfpbppl`jbwjlmfgdf#le#wkfpwqfmdwk#leslpjwjlm#jmsqfpfmw.gbzvmjufqpboozwl#elqn#wkfavw#jmpwfbg`lqslqbwjlmbwwb`kfg#wljp#`lnnlmozqfbplmp#elq#%rvlw8wkf#`bm#af#nbgftbp#baof#wltkj`k#nfbmpavw#gjg#mlwlmNlvpfLufqbp#slppjaoflsfqbwfg#az`lnjmd#eqlnwkf#sqjnbqzbggjwjlm#leelq#pfufqbowqbmpefqqfgb#sfqjlg#lebqf#baof#wlkltfufq/#jwpklvog#kbufnv`k#obqdfq \\n?,p`qjsw=bglswfg#wkfsqlsfqwz#legjqf`wfg#azfeef`wjufoztbp#aqlvdkw`kjogqfm#leSqldqbnnjmdolmdfq#wkbmnbmvp`qjswptbq#bdbjmpwaz#nfbmp#lebmg#nlpw#lepjnjobq#wl#sqlsqjfwbqzlqjdjmbwjmdsqfpwjdjlvpdqbnnbwj`bof{sfqjfm`f-wl#nbhf#wkfJw#tbp#bopljp#elvmg#jm`lnsfwjwlqpjm#wkf#V-P-qfsob`f#wkfaqlvdkw#wkf`bo`vobwjlmeboo#le#wkfwkf#dfmfqbosqb`wj`boozjm#klmlq#leqfofbpfg#jmqfpjgfmwjbobmg#plnf#lehjmd#le#wkfqfb`wjlm#wl2pw#Fbqo#le`vowvqf#bmgsqjm`jsbooz?,wjwof= ##wkfz#`bm#afab`h#wl#wkfplnf#le#kjpf{slpvqf#wlbqf#pjnjobqelqn#le#wkfbggEbulqjwf`jwjyfmpkjssbqw#jm#wkfsflsof#tjwkjm#sqb`wj`fwl#`lmwjmvf%bns8njmvp8bssqlufg#az#wkf#ejqpw#booltfg#wkfbmg#elq#wkfevm`wjlmjmdsobzjmd#wkfplovwjlm#wlkfjdkw>!3!#jm#kjp#allhnlqf#wkbm#belooltp#wkf`qfbwfg#wkfsqfpfm`f#jm%maps8?,wg=mbwjlmbojpwwkf#jgfb#leb#`kbqb`wfqtfqf#elq`fg#`obpp>!awmgbzp#le#wkfefbwvqfg#jmpkltjmd#wkfjmwfqfpw#jmjm#sob`f#lewvqm#le#wkfwkf#kfbg#leOlqg#le#wkfslojwj`boozkbp#jwp#ltmFgv`bwjlmbobssqlubo#leplnf#le#wkffb`k#lwkfq/afkbujlq#lebmg#af`bvpfbmg#bmlwkfqbssfbqfg#lmqf`lqgfg#jmaob`h%rvlw8nbz#jm`ovgfwkf#tlqog$p`bm#ofbg#wlqfefqp#wl#balqgfq>!3!#dlufqmnfmw#tjmmjmd#wkfqfpvowfg#jm#tkjof#wkf#Tbpkjmdwlm/wkf#pvaif`w`jwz#jm#wkf=?,gju= \\n\\nqfeof`w#wkfwl#`lnsofwfaf`bnf#nlqfqbgjlb`wjufqfif`wfg#aztjwklvw#bmzkjp#ebwkfq/tkj`k#`lvog`lsz#le#wkfwl#jmgj`bwfb#slojwj`bob``lvmwp#le`lmpwjwvwfptlqhfg#tjwkfq?,b=?,oj=le#kjp#ojefb``lnsbmjfg`ojfmwTjgwksqfufmw#wkfOfdjpobwjufgjeefqfmwozwldfwkfq#jmkbp#pfufqboelq#bmlwkfqwf{w#le#wkfelvmgfg#wkff#tjwk#wkf#jp#vpfg#elq`kbmdfg#wkfvpvbooz#wkfsob`f#tkfqftkfqfbp#wkf=#?b#kqfe>!!=?b#kqfe>!wkfnpfoufp/bowklvdk#kfwkbw#`bm#afwqbgjwjlmboqlof#le#wkfbp#b#qfpvowqfnluf@kjoggfpjdmfg#aztfpw#le#wkfPlnf#sflsofsqlgv`wjlm/pjgf#le#wkfmftpofwwfqpvpfg#az#wkfgltm#wl#wkfb``fswfg#azojuf#jm#wkfbwwfnswp#wllvwpjgf#wkfeqfrvfm`jfpKltfufq/#jmsqldqbnnfqpbw#ofbpw#jmbssql{jnbwfbowklvdk#jwtbp#sbqw#lebmg#ubqjlvpDlufqmlq#lewkf#bqwj`ofwvqmfg#jmwl=?b#kqfe>!,wkf#f`lmlnzjp#wkf#nlpwnlpw#tjgfoztlvog#obwfqbmg#sfqkbspqjpf#wl#wkfl``vqp#tkfmvmgfq#tkj`k`lmgjwjlmp-wkf#tfpwfqmwkflqz#wkbwjp#sqlgv`fgwkf#`jwz#lejm#tkj`k#kfpffm#jm#wkfwkf#`fmwqboavjogjmd#lenbmz#le#kjpbqfb#le#wkfjp#wkf#lmoznlpw#le#wkfnbmz#le#wkfwkf#TfpwfqmWkfqf#jp#mlf{wfmgfg#wlPwbwjpwj`bo`lopsbm>1#pklqw#pwlqzslppjaof#wlwlsloldj`bo`qjwj`bo#leqfslqwfg#wlb#@kqjpwjbmgf`jpjlm#wljp#frvbo#wlsqlaofnp#leWkjp#`bm#afnfq`kbmgjpfelq#nlpw#leml#fujgfm`ffgjwjlmp#lefofnfmwp#jm%rvlw8-#Wkf`ln,jnbdfp,tkj`k#nbhfpwkf#sql`fppqfnbjmp#wkfojwfqbwvqf/jp#b#nfnafqwkf#slsvobqwkf#bm`jfmwsqlaofnp#jmwjnf#le#wkfgfefbwfg#azalgz#le#wkfb#eft#zfbqpnv`k#le#wkfwkf#tlqh#le@bojelqmjb/pfqufg#bp#bdlufqmnfmw-`lm`fswp#lenlufnfmw#jm\\n\\n?gju#jg>!jw!#ubovf>!obmdvbdf#lebp#wkfz#bqfsqlgv`fg#jmjp#wkbw#wkff{sobjm#wkfgju=?,gju= Kltfufq#wkfofbg#wl#wkf\\n?b#kqfe>!,tbp#dqbmwfgsflsof#kbuf`lmwjmvbooztbp#pffm#bpbmg#qfobwfgwkf#qlof#lesqlslpfg#azle#wkf#afpwfb`k#lwkfq-@lmpwbmwjmfsflsof#eqlngjbof`wp#lewl#qfujpjlmtbp#qfmbnfgb#plvq`f#lewkf#jmjwjboobvm`kfg#jmsqlujgf#wkfwl#wkf#tfpwtkfqf#wkfqfbmg#pjnjobqafwtffm#wtljp#bopl#wkfFmdojpk#bmg`lmgjwjlmp/wkbw#jw#tbpfmwjwofg#wlwkfnpfoufp-rvbmwjwz#leqbmpsbqfm`zwkf#pbnf#bpwl#iljm#wkf`lvmwqz#bmgwkjp#jp#wkfWkjp#ofg#wlb#pwbwfnfmw`lmwqbpw#wlobpwJmgf{Lewkqlvdk#kjpjp#gfpjdmfgwkf#wfqn#jpjp#sqlujgfgsqlwf`w#wkfmd?,b=?,oj=Wkf#`vqqfmwwkf#pjwf#lepvapwbmwjbof{sfqjfm`f/jm#wkf#Tfpwwkfz#pklvogpolufm(ajmb`lnfmwbqjlpvmjufqpjgbg`lmgj`jlmfpb`wjujgbgfpf{sfqjfm`jbwf`mlold/Absqlgv``j/_msvmwvb`j/_mbsoj`b`j/_m`lmwqbpf/]b`bwfdlq/Abpqfdjpwqbqpfsqlefpjlmbowqbwbnjfmwlqfd/Apwqbwfpf`qfwbq/Absqjm`jsbofpsqlwf``j/_mjnslqwbmwfpjnslqwbm`jbslpjajojgbgjmwfqfpbmwf`qf`jnjfmwlmf`fpjgbgfppvp`qjajqpfbpl`jb`j/_mgjpslmjaofpfubovb`j/_mfpwvgjbmwfpqfpslmpbaofqfplov`j/_mdvbgbobibqbqfdjpwqbglplslqwvmjgbg`lnfq`jbofpelwldqbe/Abbvwlqjgbgfpjmdfmjfq/Abwfofujpj/_m`lnsfwfm`jblsfqb`jlmfpfpwbaof`jglpjnsofnfmwfb`wvbonfmwfmbufdb`j/_m`lmelqnjgbgojmf.kfjdkw9elmw.ebnjoz9!#9#!kwws9,,bssoj`bwjlmpojmh!#kqfe>!psf`jej`booz,,?"X@GBWBX Lqdbmjybwjlmgjpwqjavwjlm3s{8#kfjdkw9qfobwjlmpkjsgfuj`f.tjgwk?gju#`obpp>!?obafo#elq>!qfdjpwqbwjlm?,mlp`qjsw= ,jmgf{-kwno!tjmglt-lsfm+#"jnslqwbmw8bssoj`bwjlm,jmgfsfmgfm`f,,ttt-dlldoflqdbmjybwjlmbvwl`lnsofwfqfrvjqfnfmwp`lmpfqubwjuf?elqn#mbnf>!jmwfoof`wvbonbqdjm.ofew92;wk#`fmwvqzbm#jnslqwbmwjmpwjwvwjlmpbaaqfujbwjlm?jnd#`obpp>!lqdbmjpbwjlm`jujojybwjlm2:wk#`fmwvqzbq`kjwf`wvqfjm`lqslqbwfg13wk#`fmwvqz.`lmwbjmfq!=nlpw#mlwbaoz,=?,b=?,gju=mlwjej`bwjlm$vmgfejmfg$*Evqwkfqnlqf/afojfuf#wkbwjmmfqKWNO#>#sqjlq#wl#wkfgqbnbwj`boozqfefqqjmd#wlmfdlwjbwjlmpkfbgrvbqwfqpPlvwk#Beqj`bvmpv``fppevoSfmmpzoubmjbBp#b#qfpvow/?kwno#obmd>!%ow8,pvs%dw8gfbojmd#tjwkskjobgfoskjbkjpwlqj`booz*8?,p`qjsw= sbggjmd.wls9f{sfqjnfmwbodfwBwwqjavwfjmpwqv`wjlmpwf`kmloldjfpsbqw#le#wkf#>evm`wjlm+*xpvap`qjswjlmo-gwg!= ?kwdfldqbskj`bo@lmpwjwvwjlm$/#evm`wjlm+pvsslqwfg#azbdqj`vowvqbo`lmpwqv`wjlmsvaoj`bwjlmpelmw.pjyf9#2b#ubqjfwz#le?gju#pwzof>!Fm`z`olsfgjbjeqbnf#pq`>!gfnlmpwqbwfgb``lnsojpkfgvmjufqpjwjfpGfnldqbskj`p*8?,p`qjsw=?gfgj`bwfg#wlhmltofgdf#lepbwjpeb`wjlmsbqwj`vobqoz?,gju=?,gju=Fmdojpk#+VP*bssfmg@kjog+wqbmpnjppjlmp-#Kltfufq/#jmwfoojdfm`f!#wbajmgf{>!eolbw9qjdkw8@lnnlmtfbowkqbmdjmd#eqlnjm#tkj`k#wkfbw#ofbpw#lmfqfsqlgv`wjlmfm`z`olsfgjb8elmw.pjyf92ivqjpgj`wjlmbw#wkbw#wjnf!=?b#`obpp>!Jm#bggjwjlm/gfp`qjswjlm(`lmufqpbwjlm`lmwb`w#tjwkjp#dfmfqboozq!#`lmwfmw>!qfsqfpfmwjmd%ow8nbwk%dw8sqfpfmwbwjlml``bpjlmbooz?jnd#tjgwk>!mbujdbwjlm!=`lnsfmpbwjlm`kbnsjlmpkjsnfgjb>!boo!#ujlobwjlm#leqfefqfm`f#wlqfwvqm#wqvf8Pwqj`w,,FM!#wqbmpb`wjlmpjmwfqufmwjlmufqjej`bwjlmJmelqnbwjlm#gjeej`vowjfp@kbnsjlmpkjs`bsbajojwjfp?"Xfmgje^..=~ ?,p`qjsw= @kqjpwjbmjwzelq#f{bnsof/Sqlefppjlmboqfpwqj`wjlmppvddfpw#wkbwtbp#qfofbpfg+pv`k#bp#wkfqfnluf@obpp+vmfnsolznfmwwkf#Bnfqj`bmpwqv`wvqf#le,jmgf{-kwno#svaojpkfg#jmpsbm#`obpp>!!=?b#kqfe>!,jmwqlgv`wjlmafolmdjmd#wl`objnfg#wkbw`lmpfrvfm`fp?nfwb#mbnf>!Dvjgf#wl#wkflufqtkfonjmdbdbjmpw#wkf#`lm`fmwqbwfg/ -mlmwlv`k#lapfqubwjlmp?,b= ?,gju= e#+gl`vnfmw-alqgfq9#2s{#xelmw.pjyf92wqfbwnfmw#le3!#kfjdkw>!2nlgjej`bwjlmJmgfsfmgfm`fgjujgfg#jmwldqfbwfq#wkbmb`kjfufnfmwpfpwbaojpkjmdIbubP`qjsw!#mfufqwkfofpppjdmjej`bm`fAqlbg`bpwjmd=%maps8?,wg=`lmwbjmfq!= pv`k#bp#wkf#jmeovfm`f#leb#sbqwj`vobqpq`>$kwws9,,mbujdbwjlm!#kboe#le#wkf#pvapwbmwjbo#%maps8?,gju=bgubmwbdf#legjp`lufqz#leevmgbnfmwbo#nfwqlslojwbmwkf#lsslpjwf!#{no9obmd>!gfojafqbwfozbojdm>`fmwfqfulovwjlm#lesqfpfqubwjlmjnsqlufnfmwpafdjmmjmd#jmIfpvp#@kqjpwSvaoj`bwjlmpgjpbdqffnfmwwf{w.bojdm9q/#evm`wjlm+*pjnjobqjwjfpalgz=?,kwno=jp#`vqqfmwozboskbafwj`bojp#plnfwjnfpwzsf>!jnbdf,nbmz#le#wkf#eolt9kjggfm8bubjobaof#jmgfp`qjaf#wkff{jpwfm`f#leboo#lufq#wkfwkf#Jmwfqmfw\\n?vo#`obpp>!jmpwboobwjlmmfjdkalqkllgbqnfg#elq`fpqfgv`jmd#wkf`lmwjmvfp#wlMlmfwkfofpp/wfnsfqbwvqfp \\n\\n?b#kqfe>!`olpf#wl#wkff{bnsofp#le#jp#balvw#wkf+pff#afolt*-!#jg>!pfbq`ksqlefppjlmbojp#bubjobaofwkf#leej`jbo\\n\\n?,p`qjsw= \\n\\n?gju#jg>!b``fofqbwjlmwkqlvdk#wkf#Kboo#le#Ebnfgfp`qjswjlmpwqbmpobwjlmpjmwfqefqfm`f#wzsf>$wf{w,qf`fmw#zfbqpjm#wkf#tlqogufqz#slsvobqxab`hdqlvmg9wqbgjwjlmbo#plnf#le#wkf#`lmmf`wfg#wlf{soljwbwjlmfnfqdfm`f#le`lmpwjwvwjlmB#Kjpwlqz#lepjdmjej`bmw#nbmveb`wvqfgf{sf`wbwjlmp=?mlp`qjsw=?`bm#af#elvmgaf`bvpf#wkf#kbp#mlw#affmmfjdkalvqjmdtjwklvw#wkf#bggfg#wl#wkf\\n?oj#`obpp>!jmpwqvnfmwboPlujfw#Vmjlmb`hmltofgdfgtkj`k#`bm#afmbnf#elq#wkfbwwfmwjlm#wlbwwfnswp#wl#gfufolsnfmwpJm#eb`w/#wkf?oj#`obpp>!bjnsoj`bwjlmppvjwbaof#elqnv`k#le#wkf#`lolmjybwjlmsqfpjgfmwjbo`bm`foAvaaof#Jmelqnbwjlmnlpw#le#wkf#jp#gfp`qjafgqfpw#le#wkf#nlqf#lq#ofppjm#PfswfnafqJmwfoojdfm`fpq`>!kwws9,,s{8#kfjdkw9#bubjobaof#wlnbmveb`wvqfqkvnbm#qjdkwpojmh#kqfe>!,bubjobajojwzsqlslqwjlmbolvwpjgf#wkf#bpwqlmlnj`bokvnbm#afjmdpmbnf#le#wkf#bqf#elvmg#jmbqf#abpfg#lmpnboofq#wkbmb#sfqplm#tklf{sbmpjlm#lebqdvjmd#wkbwmlt#hmltm#bpJm#wkf#fbqozjmwfqnfgjbwfgfqjufg#eqlnP`bmgjmbujbm?,b=?,gju= `lmpjgfq#wkfbm#fpwjnbwfgwkf#Mbwjlmbo?gju#jg>!sbdqfpvowjmd#jm`lnnjppjlmfgbmboldlvp#wlbqf#qfrvjqfg,vo= ?,gju= tbp#abpfg#lmbmg#af`bnf#b%maps8%maps8w!#ubovf>!!#tbp#`bswvqfgml#nlqf#wkbmqfpsf`wjufoz`lmwjmvf#wl#= ?kfbg= ?tfqf#`qfbwfgnlqf#dfmfqbojmelqnbwjlm#vpfg#elq#wkfjmgfsfmgfmw#wkf#Jnsfqjbo`lnslmfmw#lewl#wkf#mlqwkjm`ovgf#wkf#@lmpwqv`wjlmpjgf#le#wkf#tlvog#mlw#afelq#jmpwbm`fjmufmwjlm#lenlqf#`lnsof{`loof`wjufozab`hdqlvmg9#wf{w.bojdm9#jwp#lqjdjmbojmwl#b``lvmwwkjp#sql`fppbm#f{wfmpjufkltfufq/#wkfwkfz#bqf#mlwqfif`wfg#wkf`qjwj`jpn#legvqjmd#tkj`ksqlabaoz#wkfwkjp#bqwj`of+evm`wjlm+*xJw#pklvog#afbm#bdqffnfmwb``jgfmwboozgjeefqp#eqlnBq`kjwf`wvqfafwwfq#hmltmbqqbmdfnfmwpjmeovfm`f#lmbwwfmgfg#wkfjgfmwj`bo#wlplvwk#le#wkfsbpp#wkqlvdk{no!#wjwof>!tfjdkw9alog8`qfbwjmd#wkfgjpsobz9mlmfqfsob`fg#wkf?jnd#pq`>!,jkwwsp9,,ttt-Tlqog#Tbq#JJwfpwjnlmjbopelvmg#jm#wkfqfrvjqfg#wl#bmg#wkbw#wkfafwtffm#wkf#tbp#gfpjdmfg`lmpjpwp#le#`lmpjgfqbaozsvaojpkfg#azwkf#obmdvbdf@lmpfqubwjlm`lmpjpwfg#leqfefq#wl#wkfab`h#wl#wkf#`pp!#nfgjb>!Sflsof#eqln#bubjobaof#lmsqlufg#wl#afpvddfpwjlmp!tbp#hmltm#bpubqjfwjfp#leojhfoz#wl#af`lnsqjpfg#lepvsslqw#wkf#kbmgp#le#wkf`lvsofg#tjwk`lmmf`w#bmg#alqgfq9mlmf8sfqelqnbm`fpafelqf#afjmdobwfq#af`bnf`bo`vobwjlmplewfm#`boofgqfpjgfmwp#lenfbmjmd#wkbw=?oj#`obpp>!fujgfm`f#elqf{sobmbwjlmpfmujqlmnfmwp!=?,b=?,gju=tkj`k#booltpJmwqlgv`wjlmgfufolsfg#azb#tjgf#qbmdflm#afkboe#leubojdm>!wls!sqjm`jsof#lebw#wkf#wjnf/?,mlp`qjsw=pbjg#wl#kbufjm#wkf#ejqpwtkjof#lwkfqpkzslwkfwj`boskjolplskfqpsltfq#le#wkf`lmwbjmfg#jmsfqelqnfg#azjmbajojwz#wltfqf#tqjwwfmpsbm#pwzof>!jmsvw#mbnf>!wkf#rvfpwjlmjmwfmgfg#elqqfif`wjlm#lejnsojfp#wkbwjmufmwfg#wkfwkf#pwbmgbqgtbp#sqlabaozojmh#afwtffmsqlefpplq#lejmwfqb`wjlmp`kbmdjmd#wkfJmgjbm#L`fbm#`obpp>!obpwtlqhjmd#tjwk$kwws9,,ttt-zfbqp#afelqfWkjp#tbp#wkfqf`qfbwjlmbofmwfqjmd#wkfnfbpvqfnfmwpbm#f{wqfnfozubovf#le#wkfpwbqw#le#wkf ?,p`qjsw= bm#feelqw#wljm`qfbpf#wkfwl#wkf#plvwkpsb`jmd>!3!=pveej`jfmwozwkf#Fvqlsfbm`lmufqwfg#wl`ofbqWjnflvwgjg#mlw#kbuf`lmpfrvfmwozelq#wkf#mf{wf{wfmpjlm#lef`lmlnj`#bmgbowklvdk#wkfbqf#sqlgv`fgbmg#tjwk#wkfjmpveej`jfmwdjufm#az#wkfpwbwjmd#wkbwf{sfmgjwvqfp?,psbm=?,b= wklvdkw#wkbwlm#wkf#abpjp`foosbggjmd>jnbdf#le#wkfqfwvqmjmd#wljmelqnbwjlm/pfsbqbwfg#azbppbppjmbwfgp!#`lmwfmw>!bvwklqjwz#lemlqwktfpwfqm?,gju= ?gju#!=?,gju= ##`lmpvowbwjlm`lnnvmjwz#lewkf#mbwjlmbojw#pklvog#afsbqwj`jsbmwp#bojdm>!ofewwkf#dqfbwfpwpfof`wjlm#lepvsfqmbwvqbogfsfmgfmw#lmjp#nfmwjlmfgbooltjmd#wkftbp#jmufmwfgb``lnsbmzjmdkjp#sfqplmbobubjobaof#bwpwvgz#le#wkflm#wkf#lwkfqf{f`vwjlm#leKvnbm#Qjdkwpwfqnp#le#wkfbppl`jbwjlmpqfpfbq`k#bmgpv``ffgfg#azgfefbwfg#wkfbmg#eqln#wkfavw#wkfz#bqf`lnnbmgfq#lepwbwf#le#wkfzfbqp#le#bdfwkf#pwvgz#le?vo#`obpp>!psob`f#jm#wkftkfqf#kf#tbp?oj#`obpp>!ewkfqf#bqf#mltkj`k#af`bnfkf#svaojpkfgf{sqfppfg#jmwl#tkj`k#wkf`lnnjppjlmfqelmw.tfjdkw9wfqqjwlqz#lef{wfmpjlmp!=Qlnbm#Fnsjqffrvbo#wl#wkfJm#`lmwqbpw/kltfufq/#bmgjp#wzsj`boozbmg#kjp#tjef+bopl#`boofg=?vo#`obpp>!feef`wjufoz#fuloufg#jmwlpffn#wl#kbuftkj`k#jp#wkfwkfqf#tbp#mlbm#f{`foofmwboo#le#wkfpfgfp`qjafg#azJm#sqb`wj`f/aqlbg`bpwjmd`kbqdfg#tjwkqfeof`wfg#jmpvaif`wfg#wlnjojwbqz#bmgwl#wkf#sljmwf`lmlnj`boozpfwWbqdfwjmdbqf#b`wvboozuj`wlqz#lufq+*8?,p`qjsw=`lmwjmvlvpozqfrvjqfg#elqfulovwjlmbqzbm#feef`wjufmlqwk#le#wkf/#tkj`k#tbp#eqlmw#le#wkflq#lwkfqtjpfplnf#elqn#lekbg#mlw#affmdfmfqbwfg#azjmelqnbwjlm-sfqnjwwfg#wljm`ovgfp#wkfgfufolsnfmw/fmwfqfg#jmwlwkf#sqfujlvp`lmpjpwfmwozbqf#hmltm#bpwkf#ejfog#lewkjp#wzsf#ledjufm#wl#wkfwkf#wjwof#le`lmwbjmp#wkfjmpwbm`fp#lejm#wkf#mlqwkgvf#wl#wkfjqbqf#gfpjdmfg`lqslqbwjlmptbp#wkbw#wkflmf#le#wkfpfnlqf#slsvobqpv``ffgfg#jmpvsslqw#eqlnjm#gjeefqfmwglnjmbwfg#azgfpjdmfg#elqltmfqpkjs#lebmg#slppjaozpwbmgbqgjyfgqfpslmpfWf{wtbp#jmwfmgfgqf`fjufg#wkfbppvnfg#wkbwbqfbp#le#wkfsqjnbqjoz#jmwkf#abpjp#lejm#wkf#pfmpfb``lvmwp#elqgfpwqlzfg#azbw#ofbpw#wtltbp#gf`obqfg`lvog#mlw#afPf`qfwbqz#lebssfbq#wl#afnbqdjm.wls92,]_p(_p(\\\',df*xwkqlt#f~8wkf#pwbqw#lewtl#pfsbqbwfobmdvbdf#bmgtkl#kbg#affmlsfqbwjlm#legfbwk#le#wkfqfbo#mvnafqp\\n?ojmh#qfo>!sqlujgfg#wkfwkf#pwlqz#le`lnsfwjwjlmpfmdojpk#+VH*fmdojpk#+VP*<p<R<Q<_<R<W<M=l<S=m<V<T=m=l<S=m<V<T=m=l<S=m<V<R5h4U4]4D5f4E\\nAOGx\\bTA\\nzk\\vBl\\bQ\\bTA\\nzk\\vUm\\bQ\\bTA\\nzk\\npeu| i@ cT\\bVV\\n\\\\}\\nxS VptSk` [X [X\\vHR\\bPv\\bTW\\bUe\\na\\bQp\\v_W\\vWs\\nxS\\vAz\\n_yKhjmelqnb`j/_mkfqqbnjfmwbpfof`wq/_mj`lgfp`qjs`j/_m`obpjej`bglp`lml`jnjfmwlsvaoj`b`j/_mqfob`jlmbgbpjmelqn/Mwj`bqfob`jlmbglpgfsbqwbnfmwlwqbabibglqfpgjqf`wbnfmwfbzvmwbnjfmwlnfq`bglOjaqf`lmw/M`wfmlpkbajwb`jlmfp`vnsojnjfmwlqfpwbvqbmwfpgjpslpj`j/_m`lmpf`vfm`jbfof`wq/_mj`bbsoj`b`jlmfpgfp`lmf`wbgljmpwbob`j/_mqfbojyb`j/_mvwjojyb`j/_mfm`j`olsfgjbfmefqnfgbgfpjmpwqvnfmwlpf{sfqjfm`jbpjmpwjwv`j/_msbqwj`vobqfppva`bwfdlqjb=n<R<W=`<V<R<L<R=m=m<T<T=l<\\\\<]<R=n=g<]<R<W=`=d<Y<S=l<R=m=n<R<P<R<Z<Y=n<Y<X=l=o<_<T=i=m<W=o=k<\\\\<Y=m<Y<U=k<\\\\=m<^=m<Y<_<X<\\\\<L<R=m=m<T=c<p<R=m<V<^<Y<X=l=o<_<T<Y<_<R=l<R<X<\\\\<^<R<S=l<R=m<X<\\\\<Q<Q=g=i<X<R<W<Z<Q=g<T<P<Y<Q<Q<R<p<R=m<V<^=g=l=o<]<W<Y<U<p<R=m<V<^<\\\\=m=n=l<\\\\<Q=g<Q<T=k<Y<_<R=l<\\\\<]<R=n<Y<X<R<W<Z<Y<Q=o=m<W=o<_<T=n<Y<S<Y=l=`<r<X<Q<\\\\<V<R<S<R=n<R<P=o=l<\\\\<]<R=n=o<\\\\<S=l<Y<W=c<^<R<R<]=e<Y<R<X<Q<R<_<R=m<^<R<Y<_<R=m=n<\\\\=n=`<T<X=l=o<_<R<U=h<R=l=o<P<Y=i<R=l<R=d<R<S=l<R=n<T<^=m=m=g<W<V<\\\\<V<\\\\<Z<X=g<U<^<W<\\\\=m=n<T<_=l=o<S<S=g<^<P<Y=m=n<Y=l<\\\\<]<R=n<\\\\=m<V<\\\\<[<\\\\<W<S<Y=l<^=g<U<X<Y<W<\\\\=n=`<X<Y<Q=`<_<T<S<Y=l<T<R<X<]<T<[<Q<Y=m<R=m<Q<R<^<Y<P<R<P<Y<Q=n<V=o<S<T=n=`<X<R<W<Z<Q<\\\\=l<\\\\<P<V<\\\\=i<Q<\\\\=k<\\\\<W<R<L<\\\\<]<R=n<\\\\<N<R<W=`<V<R=m<R<^=m<Y<P<^=n<R=l<R<U<Q<\\\\=k<\\\\<W<\\\\=m<S<T=m<R<V=m<W=o<Z<]=g=m<T=m=n<Y<P<S<Y=k<\\\\=n<T<Q<R<^<R<_<R<S<R<P<R=e<T=m<\\\\<U=n<R<^<S<R=k<Y<P=o<S<R<P<R=e=`<X<R<W<Z<Q<R=m=m=g<W<V<T<]=g=m=n=l<R<X<\\\\<Q<Q=g<Y<P<Q<R<_<T<Y<S=l<R<Y<V=n<M<Y<U=k<\\\\=m<P<R<X<Y<W<T=n<\\\\<V<R<_<R<R<Q<W<\\\\<U<Q<_<R=l<R<X<Y<^<Y=l=m<T=c=m=n=l<\\\\<Q<Y=h<T<W=`<P=g=o=l<R<^<Q=c=l<\\\\<[<Q=g=i<T=m<V<\\\\=n=`<Q<Y<X<Y<W=b=c<Q<^<\\\\=l=c<P<Y<Q=`=d<Y<P<Q<R<_<T=i<X<\\\\<Q<Q<R<U<[<Q<\\\\=k<T=n<Q<Y<W=`<[=c=h<R=l=o<P<\\\\<N<Y<S<Y=l=`<P<Y=m=c=j<\\\\<[<\\\\=e<T=n=g<w=o=k=d<T<Y\\fHD\\fHU\\fIl\\fHn\\fHy\\fH\\\\\\fHD\\fIk\\fHi\\fHF\\fHD\\fIk\\fHy\\fHS\\fHC\\fHR\\fHy\\fH\\\\\\fIk\\fHn\\fHi\\fHD\\fIa\\fHC\\fHy\\fIa\\fHC\\fHR\\fH{\\fHR\\fHk\\fHM\\fH@\\fHR\\fH\\\\\\fIk\\fHy\\fHS\\fHT\\fIl\\fHJ\\fHS\\fHC\\fHR\\fHF\\fHU\\fH^\\fIk\\fHT\\fHS\\fHn\\fHU\\fHA\\fHR\\fH\\\\\\fHH\\fHi\\fHF\\fHD\\fIl\\fHY\\fHR\\fH^\\fIk\\fHT\\fIk\\fHY\\fHR\\fHy\\fH\\\\\\fHH\\fIk\\fHB\\fIk\\fH\\\\\\fIk\\fHU\\fIg\\fHD\\fIk\\fHT\\fHy\\fHH\\fIk\\fH@\\fHU\\fIm\\fHH\\fHT\\fHR\\fHk\\fHs\\fHU\\fIg\\fH{\\fHR\\fHp\\fHR\\fHD\\fIk\\fHB\\fHS\\fHD\\fHs\\fHy\\fH\\\\\\fHH\\fHR\\fHy\\fH\\\\\\fHD\\fHR\\fHe\\fHD\\fHy\\fIk\\fHC\\fHU\\fHR\\fHm\\fHT\\fH@\\fHT\\fIk\\fHA\\fHR\\fH[\\fHR\\fHj\\fHF\\fHy\\fIk\\fH^\\fHS\\fHC\\fIk\\fHZ\\fIm\\fH\\\\\\fIn\\fHk\\fHT\\fHy\\fIk\\fHt\\fHn\\fHs\\fIk\\fHB\\fIk\\fH\\\\\\fIl\\fHT\\fHy\\fHH\\fHR\\fHB\\fIk\\fH\\\\\\fHR\\fH^\\fIk\\fHy\\fH\\\\\\fHi\\fHK\\fHS\\fHy\\fHi\\fHF\\fHD\\fHR\\fHT\\fHB\\fHR\\fHp\\fHB\\fIm\\fHq\\fIk\\fHy\\fHR\\fH\\\\\\fHO\\fHU\\fIg\\fHH\\fHR\\fHy\\fHM\\fHP\\fIl\\fHC\\fHU\\fHR\\fHn\\fHU\\fIg\\fHs\\fH^\\fHZ\\fH@\\fIa\\fHJ\\fH^\\fHS\\fHC\\fHR\\fHp\\fIl\\fHY\\fHD\\fHp\\fHR\\fHH\\fHR\\fHy\\fId\\fHT\\fIk\\fHj\\fHF\\fHy\\fHR\\fHY\\fHR\\fH^\\fIl\\fHJ\\fIk\\fHD\\fIk\\fHF\\fIn\\fH\\\\\\fIl\\fHF\\fHR\\fHD\\fIl\\fHe\\fHT\\fHy\\fIk\\fHU\\fIg\\fH{\\fIl\\fH@\\fId\\fHL\\fHy\\fHj\\fHF\\fHy\\fIl\\fHY\\fH\\\\\\fIa\\fH[\\fH{\\fHR\\fHn\\fHY\\fHj\\fHF\\fHy\\fIg\\fHp\\fHS\\fH^\\fHR\\fHp\\fHR\\fHD\\fHR\\fHT\\fHU\\fHB\\fHH\\fHU\\fHB\\fIk\\fHn\\fHe\\fHD\\fHy\\fIl\\fHC\\fHR\\fHU\\fIn\\fHJ\\fH\\\\\\fIa\\fHp\\fHT\\fIn\\fHv\\fIl\\fHF\\fHT\\fHn\\fHJ\\fHT\\fHY\\fHR\\fH^\\fHU\\fIg\\fHD\\fHR\\fHU\\fIg\\fHH\\fIl\\fHp\\fId\\fHT\\fIk\\fHY\\fHR\\fHF\\fHT\\fHp\\fHD\\fHH\\fHR\\fHD\\fIk\\fHH\\fHR\\fHp\\fHR\\fH\\\\\\fIl\\fHt\\fHR\\fHC\\fH^\\fHp\\fHS\\fH^\\fIk\\fHD\\fIl\\fHv\\fIk\\fHp\\fHR\\fHn\\fHv\\fHF\\fHH\\fIa\\fH\\\\\\fH{\\fIn\\fH{\\fH^\\fHp\\fHR\\fHH\\fIk\\fH@\\fHR\\fHU\\fH\\\\\\fHj\\fHF\\fHD\\fIk\\fHY\\fHR\\fHU\\fHD\\fHk\\fHT\\fHy\\fHR\\fHT\\fIm\\fH@\\fHU\\fH\\\\\\fHU\\fHD\\fIk\\fHk\\fHT\\fHT\\fIk\\fHT\\fHU\\fHS\\fHH\\fH@\\fHM\\fHP\\fIk\\fHt\\fHs\\fHD\\fHR\\fHH\\fH^\\fHR\\fHZ\\fHF\\fHR\\fHn\\fHv\\fHZ\\fIa\\fH\\\\\\fIl\\fH@\\fHM\\fHP\\fIl\\fHU\\fIg\\fHH\\fIk\\fHT\\fHR\\fHd\\fHs\\fHZ\\fHR\\fHC\\fHJ\\fHT\\fHy\\fHH\\fIl\\fHp\\fHR\\fHH\\fIl\\fHY\\fHR\\fH^\\fHR\\fHU\\fHp\\fHR\\fH\\\\\\fHF\\fHs\\fHD\\fHR\\fH\\\\\\fHz\\fHD\\fIk\\fHT\\fHM\\fHP\\fHy\\fHB\\fHS\\fH^\\fHR\\fHe\\fHT\\fHy\\fIl\\fHy\\fIk\\fHY\\fH^\\fH^\\fH{\\fHH\\fHR\\fHz\\fHR\\fHD\\fHR\\fHi\\fH\\\\\\fIa\\fHI\\fHp\\fHU\\fHR\\fHn\\fHJ\\fIk\\fHz\\fHR\\fHF\\fHU\\fH^\\fIl\\fHD\\fHS\\fHC\\fHB\\fH@\\fHS\\fHD\\fHR\\fH@\\fId\\fHn\\fHy\\fHy\\fHU\\fIl\\fHn\\fHy\\fHU\\fHD\\fHR\\fHJ\\fIk\\fHH\\fHR\\fHU\\fHB\\fH^\\fIk\\fHy\\fHR\\fHG\\fIl\\fHp\\fH@\\fHy\\fHS\\fHH\\fIm\\fH\\\\\\fHH\\fHB\\fHR\\fHn\\fH{\\fHY\\fHU\\fIl\\fHn\\fH\\\\\\fIg\\fHp\\fHP\\fHB\\fHS\\fH^\\fIl\\fHj\\fH\\\\\\fIg\\fHF\\fHT\\fIk\\fHD\\fHR\\fHC\\fHR\\fHJ\\fHY\\fH^\\fIk\\fHD\\fIk\\fHz\\fHR\\fHH\\fHR\\fHy\\fH\\\\\\fIl\\fH@\\fHe\\fHD\\fHy\\fHR\\fHp\\fHY\\fHR\\fH@\\fHF\\fIn\\fH\\\\\\fHR\\fH@\\fHM\\fHP\\fHR\\fHT\\fI`\\fHJ\\fHR\\fHZ\\fIk\\fHC\\fH\\\\\\fHy\\fHS\\fHC\\fIk\\fHy\\fHU\\fHR\\fHn\\fHi\\fHy\\fHT\\fH\\\\\\fH@\\fHD\\fHR\\fHc\\fHY\\fHU\\fHR\\fHn\\fHT\\fIa\\fHI\\fH^\\fHB\\fHS\\fH^\\fIk\\fH^\\fIk\\fHz\\fHy\\fHY\\fHS\\fH[\\fHC\\fHy\\fIa\\fH\\\\\\fHn\\fHT\\fHB\\fIn\\fHU\\fHI\\fHR\\fHD\\fHR4F4_4F4[5f4U5i4X4K4]5o4E4D5d4K4_4[4E4K5h4Y5m4A4E5i5d4K4Z5f4U4K5h4B4K4Y4E4K5h5i4^5f4C4K5h4U4K5i4E4K5h5o4K4F4D4K5h4]4C5d4C4D4]5j4K5i4@4K5h4C5d5h4E4K5h4U4K5h5i4K5h5i5d5n4U4K5h4U4]4D5f4K5h4_4]5f4U4K5h4@5d4K5h4K5h4\\\\5k4K4D4K5h4A5f4K4E4K5h4A5n5d5n4K5h5o4]5f5i4K5h4U4]4K5n5i4A5m5d4T4E4K5h4G4K5j5f5i4X4K5k4C4E4K5h5i4]4O4E4K5h5n4]4N5j4K5h4X4D4K4D4K5h4A5d4K4]4K5h4@4C5f4C4K5h4O4_4]4E4K5h4U5h5d5i5i4@5i5d4U4E4K5h4]4A5i5j4K5h5j5n4K4[5m5h4_4[5f5j4K5h5o5d5f4F4K5h4C5j5f4K4D4]5o4K4F5k4K5h4]5f4K4Z4F4A5f4K4F5f4D4F5d5n5f4F4K5h4O5d5h5e4K5h4D4]5f4C4K5h5o5h4K5i4K5h4]4K4D4[4K5h4X4B4Y5f4_5f4K4]4K4F4K5h4G4K5h4G4K5h4Y5h4K4E4K5h4A4C5f4G4K5h4^5d4K4]4K5h4B5h5f4@4K5h4@5i5f4U4K5h4U4K5i5k4K5h4@5i4K5h4K5h4_4K4U4E5i4X4K5k4C5k4K5h4]4J5f4_4K5h4C4B5d5h4K5h5m5j5f4E4K5h5o4F4K4D4K5h4C5d4]5f4K5h4C4]5d4_4K4_4F4V4]5n4F4Y4K5i5f5i4K5h4D5j4K4F4K5h4U4T5f5ifmwfqwbjmnfmwvmgfqpwbmgjmd#>#evm`wjlm+*-isd!#tjgwk>!`lmejdvqbwjlm-smd!#tjgwk>!?algz#`obpp>!Nbwk-qbmgln+*`lmwfnslqbqz#Vmjwfg#Pwbwfp`jq`vnpwbm`fp-bssfmg@kjog+lqdbmjybwjlmp?psbm#`obpp>!!=?jnd#pq`>!,gjpwjmdvjpkfgwklvpbmgp#le#`lnnvmj`bwjlm`ofbq!=?,gju=jmufpwjdbwjlmebuj`lm-j`l!#nbqdjm.qjdkw9abpfg#lm#wkf#Nbppb`kvpfwwpwbaof#alqgfq>jmwfqmbwjlmbobopl#hmltm#bpsqlmvm`jbwjlmab`hdqlvmg9 esbggjmd.ofew9Elq#f{bnsof/#njp`foobmflvp%ow8,nbwk%dw8spz`kloldj`bojm#sbqwj`vobqfbq`k!#wzsf>!elqn#nfwklg>!bp#lsslpfg#wlPvsqfnf#@lvqwl``bpjlmbooz#Bggjwjlmbooz/Mlqwk#Bnfqj`bs{8ab`hdqlvmglsslqwvmjwjfpFmwfqwbjmnfmw-wlOltfq@bpf+nbmveb`wvqjmdsqlefppjlmbo#`lnajmfg#tjwkElq#jmpwbm`f/`lmpjpwjmd#le!#nb{ofmdwk>!qfwvqm#ebopf8`lmp`jlvpmfppNfgjwfqqbmfbmf{wqblqgjmbqzbppbppjmbwjlmpvapfrvfmwoz#avwwlm#wzsf>!wkf#mvnafq#lewkf#lqjdjmbo#`lnsqfkfmpjufqfefqp#wl#wkf?,vo= ?,gju= skjolplskj`bool`bwjlm-kqfetbp#svaojpkfgPbm#Eqbm`jp`l+evm`wjlm+*x ?gju#jg>!nbjmplskjpwj`bwfgnbwkfnbwj`bo#,kfbg= ?algzpvddfpwp#wkbwgl`vnfmwbwjlm`lm`fmwqbwjlmqfobwjlmpkjspnbz#kbuf#affm+elq#f{bnsof/Wkjp#bqwj`of#jm#plnf#`bpfpsbqwp#le#wkf#gfejmjwjlm#leDqfbw#Aqjwbjm#`foosbggjmd>frvjubofmw#wlsob`fklogfq>!8#elmw.pjyf9#ivpwjej`bwjlmafojfufg#wkbwpveefqfg#eqlnbwwfnswfg#wl#ofbgfq#le#wkf`qjsw!#pq`>!,+evm`wjlm+*#xbqf#bubjobaof \\n?ojmh#qfo>!#pq`>$kwws9,,jmwfqfpwfg#jm`lmufmwjlmbo#!#bow>!!#,=?,bqf#dfmfqboozkbp#bopl#affmnlpw#slsvobq#`lqqfpslmgjmd`qfgjwfg#tjwkwzof>!alqgfq9?,b=?,psbm=?,-dje!#tjgwk>!?jeqbnf#pq`>!wbaof#`obpp>!jmojmf.aol`h8b``lqgjmd#wl#wldfwkfq#tjwkbssql{jnbwfozsbqojbnfmwbqznlqf#bmg#nlqfgjpsobz9mlmf8wqbgjwjlmboozsqfglnjmbmwoz%maps8%maps8%maps8?,psbm=#`foopsb`jmd>?jmsvw#mbnf>!lq!#`lmwfmw>!`lmwqlufqpjbosqlsfqwz>!ld9,{.pkl`htbuf.gfnlmpwqbwjlmpvqqlvmgfg#azMfufqwkfofpp/tbp#wkf#ejqpw`lmpjgfqbaof#Bowklvdk#wkf#`loobalqbwjlmpklvog#mlw#afsqlslqwjlm#le?psbm#pwzof>!hmltm#bp#wkf#pklqwoz#bewfqelq#jmpwbm`f/gfp`qjafg#bp#,kfbg= ?algz#pwbqwjmd#tjwkjm`qfbpjmdoz#wkf#eb`w#wkbwgjp`vppjlm#lenjggof#le#wkfbm#jmgjujgvbogjeej`vow#wl#sljmw#le#ujftklnlpf{vbojwzb``fswbm`f#le?,psbm=?,gju=nbmveb`wvqfqplqjdjm#le#wkf`lnnlmoz#vpfgjnslqwbm`f#legfmlnjmbwjlmpab`hdqlvmg9# ofmdwk#le#wkfgfwfqnjmbwjlmb#pjdmjej`bmw!#alqgfq>!3!=qfulovwjlmbqzsqjm`jsofp#lejp#`lmpjgfqfgtbp#gfufolsfgJmgl.Fvqlsfbmuvomfqbaof#wlsqlslmfmwp#lebqf#plnfwjnfp`olpfq#wl#wkfMft#Zlqh#@jwz#mbnf>!pfbq`kbwwqjavwfg#wl`lvqpf#le#wkfnbwkfnbwj`jbmaz#wkf#fmg#lebw#wkf#fmg#le!#alqgfq>!3!#wf`kmloldj`bo-qfnluf@obpp+aqbm`k#le#wkffujgfm`f#wkbw"Xfmgje^..= Jmpwjwvwf#le#jmwl#b#pjmdofqfpsf`wjufoz-bmg#wkfqfelqfsqlsfqwjfp#lejp#ol`bwfg#jmplnf#le#tkj`kWkfqf#jp#bopl`lmwjmvfg#wl#bssfbqbm`f#le#%bns8mgbpk8#gfp`qjafp#wkf`lmpjgfqbwjlmbvwklq#le#wkfjmgfsfmgfmwozfrvjssfg#tjwkglfp#mlw#kbuf?,b=?b#kqfe>!`lmevpfg#tjwk?ojmh#kqfe>!,bw#wkf#bdf#lebssfbq#jm#wkfWkfpf#jm`ovgfqfdbqgofpp#le`lvog#af#vpfg#pwzof>%rvlw8pfufqbo#wjnfpqfsqfpfmw#wkfalgz= ?,kwno=wklvdkw#wl#afslsvobwjlm#leslppjajojwjfpsfq`fmwbdf#leb``fpp#wl#wkfbm#bwwfnsw#wlsqlgv`wjlm#leirvfqz,irvfqzwtl#gjeefqfmwafolmd#wl#wkffpwbaojpknfmwqfsob`jmd#wkfgfp`qjswjlm!#gfwfqnjmf#wkfbubjobaof#elqB``lqgjmd#wl#tjgf#qbmdf#le\\n?gju#`obpp>!nlqf#`lnnlmozlqdbmjpbwjlmpevm`wjlmbojwztbp#`lnsofwfg#%bns8ngbpk8#sbqwj`jsbwjlmwkf#`kbqb`wfqbm#bggjwjlmbobssfbqp#wl#afeb`w#wkbw#wkfbm#f{bnsof#lepjdmjej`bmwozlmnlvpflufq>!af`bvpf#wkfz#bpzm`#>#wqvf8sqlaofnp#tjwkpffnp#wl#kbufwkf#qfpvow#le#pq`>!kwws9,,ebnjojbq#tjwkslppfppjlm#leevm`wjlm#+*#xwllh#sob`f#jmbmg#plnfwjnfppvapwbmwjbooz?psbm=?,psbm=jp#lewfm#vpfgjm#bm#bwwfnswdqfbw#gfbo#leFmujqlmnfmwbopv``fppevooz#ujqwvbooz#boo13wk#`fmwvqz/sqlefppjlmbopmf`fppbqz#wl#gfwfqnjmfg#az`lnsbwjajojwzaf`bvpf#jw#jpGj`wjlmbqz#lenlgjej`bwjlmpWkf#elooltjmdnbz#qfefq#wl9@lmpfrvfmwoz/Jmwfqmbwjlmbobowklvdk#plnfwkbw#tlvog#aftlqog$p#ejqpw`obppjejfg#bpalwwln#le#wkf+sbqwj`vobqozbojdm>!ofew!#nlpw#`lnnlmozabpjp#elq#wkfelvmgbwjlm#le`lmwqjavwjlmpslsvobqjwz#le`fmwfq#le#wkfwl#qfgv`f#wkfivqjpgj`wjlmpbssql{jnbwjlm#lmnlvpflvw>!Mft#Wfpwbnfmw`loof`wjlm#le?,psbm=?,b=?,jm#wkf#Vmjwfgejon#gjqf`wlq.pwqj`w-gwg!=kbp#affm#vpfgqfwvqm#wl#wkfbowklvdk#wkjp`kbmdf#jm#wkfpfufqbo#lwkfqavw#wkfqf#bqfvmsqf`fgfmwfgjp#pjnjobq#wlfpsf`jbooz#jmtfjdkw9#alog8jp#`boofg#wkf`lnsvwbwjlmbojmgj`bwf#wkbwqfpwqj`wfg#wl\\n?nfwb#mbnf>!bqf#wzsj`booz`lmeoj`w#tjwkKltfufq/#wkf#Bm#f{bnsof#le`lnsbqfg#tjwkrvbmwjwjfp#leqbwkfq#wkbm#b`lmpwfoobwjlmmf`fppbqz#elqqfslqwfg#wkbwpsf`jej`bwjlmslojwj`bo#bmg%maps8%maps8?qfefqfm`fp#wlwkf#pbnf#zfbqDlufqmnfmw#ledfmfqbwjlm#lekbuf#mlw#affmpfufqbo#zfbqp`lnnjwnfmw#wl\\n\\n?vo#`obpp>!ujpvbojybwjlm2:wk#`fmwvqz/sqb`wjwjlmfqpwkbw#kf#tlvogbmg#`lmwjmvfgl``vsbwjlm#lejp#gfejmfg#bp`fmwqf#le#wkfwkf#bnlvmw#le=?gju#pwzof>!frvjubofmw#legjeefqfmwjbwfaqlvdkw#balvwnbqdjm.ofew9#bvwlnbwj`boozwklvdkw#le#bpPlnf#le#wkfpf ?gju#`obpp>!jmsvw#`obpp>!qfsob`fg#tjwkjp#lmf#le#wkffgv`bwjlm#bmgjmeovfm`fg#azqfsvwbwjlm#bp ?nfwb#mbnf>!b``lnnlgbwjlm?,gju= ?,gju=obqdf#sbqw#leJmpwjwvwf#elqwkf#pl.`boofg#bdbjmpw#wkf#Jm#wkjp#`bpf/tbp#bssljmwfg`objnfg#wl#afKltfufq/#wkjpGfsbqwnfmw#lewkf#qfnbjmjmdfeef`w#lm#wkfsbqwj`vobqoz#gfbo#tjwk#wkf ?gju#pwzof>!bonlpw#botbzpbqf#`vqqfmwozf{sqfppjlm#leskjolplskz#leelq#nlqf#wkbm`jujojybwjlmplm#wkf#jpobmgpfof`wfgJmgf{`bm#qfpvow#jm!#ubovf>!!#,=wkf#pwqv`wvqf#,=?,b=?,gju=Nbmz#le#wkfpf`bvpfg#az#wkfle#wkf#Vmjwfgpsbm#`obpp>!n`bm#af#wqb`fgjp#qfobwfg#wlaf`bnf#lmf#lejp#eqfrvfmwozojujmd#jm#wkfwkflqfwj`boozElooltjmd#wkfQfulovwjlmbqzdlufqmnfmw#jmjp#gfwfqnjmfgwkf#slojwj`bojmwqlgv`fg#jmpveej`jfmw#wlgfp`qjswjlm!=pklqw#pwlqjfppfsbqbwjlm#lebp#wl#tkfwkfqhmltm#elq#jwptbp#jmjwjboozgjpsobz9aol`hjp#bm#f{bnsofwkf#sqjm`jsbo`lmpjpwp#le#bqf`ldmjyfg#bp,algz=?,kwno=b#pvapwbmwjboqf`lmpwqv`wfgkfbg#le#pwbwfqfpjpwbm`f#wlvmgfqdqbgvbwfWkfqf#bqf#wtldqbujwbwjlmbobqf#gfp`qjafgjmwfmwjlmboozpfqufg#bp#wkf`obpp>!kfbgfqlsslpjwjlm#wlevmgbnfmwboozglnjmbwfg#wkfbmg#wkf#lwkfqboojbm`f#tjwktbp#elq`fg#wlqfpsf`wjufoz/bmg#slojwj`bojm#pvsslqw#lesflsof#jm#wkf13wk#`fmwvqz-bmg#svaojpkfgolbg@kbqwafbwwl#vmgfqpwbmgnfnafq#pwbwfpfmujqlmnfmwboejqpw#kboe#le`lvmwqjfp#bmgbq`kjwf`wvqboaf#`lmpjgfqfg`kbqb`wfqjyfg`ofbqJmwfqubobvwklqjwbwjufEfgfqbwjlm#letbp#pv``ffgfgbmg#wkfqf#bqfb#`lmpfrvfm`fwkf#Sqfpjgfmwbopl#jm`ovgfgeqff#plewtbqfpv``fppjlm#legfufolsfg#wkftbp#gfpwqlzfgbtbz#eqln#wkf8 ?,p`qjsw= ?bowklvdk#wkfzelooltfg#az#bnlqf#sltfqevoqfpvowfg#jm#bVmjufqpjwz#leKltfufq/#nbmzwkf#sqfpjgfmwKltfufq/#plnfjp#wklvdkw#wlvmwjo#wkf#fmgtbp#bmmlvm`fgbqf#jnslqwbmwbopl#jm`ovgfp=?jmsvw#wzsf>wkf#`fmwfq#le#GL#MLW#BOWFQvpfg#wl#qfefqwkfnfp,<plqw>wkbw#kbg#affmwkf#abpjp#elqkbp#gfufolsfgjm#wkf#pvnnfq`lnsbqbwjufozgfp`qjafg#wkfpv`k#bp#wklpfwkf#qfpvowjmdjp#jnslppjaofubqjlvp#lwkfqPlvwk#Beqj`bmkbuf#wkf#pbnffeef`wjufmfppjm#tkj`k#`bpf8#wf{w.bojdm9pwqv`wvqf#bmg8#ab`hdqlvmg9qfdbqgjmd#wkfpvsslqwfg#wkfjp#bopl#hmltmpwzof>!nbqdjmjm`ovgjmd#wkfabkbpb#Nfobzvmlqph#alhn/Iomlqph#mzmlqphpolufm)M(ajmbjmwfqmb`jlmbo`bojej`b`j/_m`lnvmj`b`j/_m`lmpwqv``j/_m!=?gju#`obpp>!gjpbnajdvbwjlmGlnbjmMbnf$/#$bgnjmjpwqbwjlmpjnvowbmflvpozwqbmpslqwbwjlmJmwfqmbwjlmbo#nbqdjm.alwwln9qfpslmpjajojwz?"Xfmgje^..= ?,=?nfwb#mbnf>!jnsofnfmwbwjlmjmeqbpwqv`wvqfqfsqfpfmwbwjlmalqgfq.alwwln9?,kfbg= ?algz=>kwws&0B&1E&1E?elqn#nfwklg>!nfwklg>!slpw!#,ebuj`lm-j`l!#~*8 ?,p`qjsw= -pfwBwwqjavwf+Bgnjmjpwqbwjlm>#mft#Bqqbz+*8?"Xfmgje^..= gjpsobz9aol`h8Vmelqwvmbwfoz/!=%maps8?,gju=,ebuj`lm-j`l!=>$pwzofpkffw$#jgfmwjej`bwjlm/#elq#f{bnsof/?oj=?b#kqfe>!,bm#bowfqmbwjufbp#b#qfpvow#lesw!=?,p`qjsw= wzsf>!pvanjw!# +evm`wjlm+*#xqf`lnnfmgbwjlmelqn#b`wjlm>!,wqbmpelqnbwjlmqf`lmpwqv`wjlm-pwzof-gjpsobz#B``lqgjmd#wl#kjggfm!#mbnf>!bolmd#tjwk#wkfgl`vnfmw-algz-bssql{jnbwfoz#@lnnvmj`bwjlmpslpw!#b`wjlm>!nfbmjmd#%rvlw8..?"Xfmgje^..=Sqjnf#Njmjpwfq`kbqb`wfqjpwj`?,b=#?b#`obpp>wkf#kjpwlqz#le#lmnlvpflufq>!wkf#dlufqmnfmwkqfe>!kwwsp9,,tbp#lqjdjmbooztbp#jmwqlgv`fg`obppjej`bwjlmqfsqfpfmwbwjufbqf#`lmpjgfqfg?"Xfmgje^..= gfsfmgp#lm#wkfVmjufqpjwz#le#jm#`lmwqbpw#wl#sob`fklogfq>!jm#wkf#`bpf#lejmwfqmbwjlmbo#`lmpwjwvwjlmbopwzof>!alqgfq.9#evm`wjlm+*#xAf`bvpf#le#wkf.pwqj`w-gwg!= ?wbaof#`obpp>!b``lnsbmjfg#azb``lvmw#le#wkf?p`qjsw#pq`>!,mbwvqf#le#wkf#wkf#sflsof#jm#jm#bggjwjlm#wlp*8#ip-jg#>#jg!#tjgwk>!233&!qfdbqgjmd#wkf#Qlnbm#@bwkloj`bm#jmgfsfmgfmwelooltjmd#wkf#-dje!#tjgwk>!2wkf#elooltjmd#gjp`qjnjmbwjlmbq`kbfloldj`bosqjnf#njmjpwfq-ip!=?,p`qjsw=`lnajmbwjlm#le#nbqdjmtjgwk>!`qfbwfFofnfmw+t-bwwb`kFufmw+?,b=?,wg=?,wq=pq`>!kwwsp9,,bJm#sbqwj`vobq/#bojdm>!ofew!#@yf`k#Qfsvaoj`Vmjwfg#Hjmdgln`lqqfpslmgfm`f`lm`ovgfg#wkbw-kwno!#wjwof>!+evm`wjlm#+*#x`lnfp#eqln#wkfbssoj`bwjlm#le?psbm#`obpp>!pafojfufg#wl#affnfmw+$p`qjsw$?,b= ?,oj= ?ojufqz#gjeefqfmw=?psbm#`obpp>!lswjlm#ubovf>!+bopl#hmltm#bp\\n?oj=?b#kqfe>!=?jmsvw#mbnf>!pfsbqbwfg#eqlnqfefqqfg#wl#bp#ubojdm>!wls!=elvmgfq#le#wkfbwwfnswjmd#wl#`bqalm#gjl{jgf ?gju#`obpp>!`obpp>!pfbq`k.,algz= ?,kwno=lsslqwvmjwz#wl`lnnvmj`bwjlmp?,kfbg= ?algz#pwzof>!tjgwk9Wj\\rVSmd#Uj\\rWkw`kbmdfp#jm#wkfalqgfq.`lolq9 3!#alqgfq>!3!#?,psbm=?,gju=?tbp#gjp`lufqfg!#wzsf>!wf{w!#*8 ?,p`qjsw= Gfsbqwnfmw#le#f``ofpjbpwj`bowkfqf#kbp#affmqfpvowjmd#eqln?,algz=?,kwno=kbp#mfufq#affmwkf#ejqpw#wjnfjm#qfpslmpf#wlbvwlnbwj`booz#?,gju= ?gju#jtbp#`lmpjgfqfgsfq`fmw#le#wkf!#,=?,b=?,gju=`loof`wjlm#le#gfp`fmgfg#eqlnpf`wjlm#le#wkfb``fsw.`kbqpfwwl#af#`lmevpfgnfnafq#le#wkf#sbggjmd.qjdkw9wqbmpobwjlm#lejmwfqsqfwbwjlm#kqfe>$kwws9,,tkfwkfq#lq#mlwWkfqf#bqf#boplwkfqf#bqf#nbmzb#pnboo#mvnafqlwkfq#sbqwp#lejnslppjaof#wl##`obpp>!avwwlmol`bwfg#jm#wkf-#Kltfufq/#wkfbmg#fufmwvboozBw#wkf#fmg#le#af`bvpf#le#jwpqfsqfpfmwp#wkf?elqn#b`wjlm>!#nfwklg>!slpw!jw#jp#slppjaofnlqf#ojhfoz#wlbm#jm`qfbpf#jmkbuf#bopl#affm`lqqfpslmgp#wlbmmlvm`fg#wkbwbojdm>!qjdkw!=nbmz#`lvmwqjfpelq#nbmz#zfbqpfbqojfpw#hmltmaf`bvpf#jw#tbpsw!=?,p`qjsw=#ubojdm>!wls!#jmkbajwbmwp#leelooltjmd#zfbq ?gju#`obpp>!njoojlm#sflsof`lmwqlufqpjbo#`lm`fqmjmd#wkfbqdvf#wkbw#wkfdlufqmnfmw#bmgb#qfefqfm`f#wlwqbmpefqqfg#wlgfp`qjajmd#wkf#pwzof>!`lolq9bowklvdk#wkfqfafpw#hmltm#elqpvanjw!#mbnf>!nvowjsoj`bwjlmnlqf#wkbm#lmf#qf`ldmjwjlm#le@lvm`jo#le#wkffgjwjlm#le#wkf##?nfwb#mbnf>!Fmwfqwbjmnfmw#btbz#eqln#wkf#8nbqdjm.qjdkw9bw#wkf#wjnf#lejmufpwjdbwjlmp`lmmf`wfg#tjwkbmg#nbmz#lwkfqbowklvdk#jw#jpafdjmmjmd#tjwk#?psbm#`obpp>!gfp`fmgbmwp#le?psbm#`obpp>!j#bojdm>!qjdkw!?,kfbg= ?algz#bpsf`wp#le#wkfkbp#pjm`f#affmFvqlsfbm#Vmjlmqfnjmjp`fmw#lenlqf#gjeej`vowUj`f#Sqfpjgfmw`lnslpjwjlm#lesbppfg#wkqlvdknlqf#jnslqwbmwelmw.pjyf922s{f{sobmbwjlm#lewkf#`lm`fsw#letqjwwfm#jm#wkf\\n?psbm#`obpp>!jp#lmf#le#wkf#qfpfnaobm`f#wllm#wkf#dqlvmgptkj`k#`lmwbjmpjm`ovgjmd#wkf#gfejmfg#az#wkfsvaoj`bwjlm#lenfbmp#wkbw#wkflvwpjgf#le#wkfpvsslqw#le#wkf?jmsvw#`obpp>!?psbm#`obpp>!w+Nbwk-qbmgln+*nlpw#sqlnjmfmwgfp`qjswjlm#le@lmpwbmwjmlsoftfqf#svaojpkfg?gju#`obpp>!pfbssfbqp#jm#wkf2!#kfjdkw>!2!#nlpw#jnslqwbmwtkj`k#jm`ovgfptkj`k#kbg#affmgfpwqv`wjlm#lewkf#slsvobwjlm \\n?gju#`obpp>!slppjajojwz#leplnfwjnfp#vpfgbssfbq#wl#kbufpv``fpp#le#wkfjmwfmgfg#wl#afsqfpfmw#jm#wkfpwzof>!`ofbq9a ?,p`qjsw= ?tbp#elvmgfg#jmjmwfqujft#tjwk\\\\jg!#`lmwfmw>!`bsjwbo#le#wkf ?ojmh#qfo>!pqfofbpf#le#wkfsljmw#lvw#wkbw{NOKwwsQfrvfpwbmg#pvapfrvfmwpf`lmg#obqdfpwufqz#jnslqwbmwpsf`jej`bwjlmppvqeb`f#le#wkfbssojfg#wl#wkfelqfjdm#sloj`z\\\\pfwGlnbjmMbnffpwbaojpkfg#jmjp#afojfufg#wlJm#bggjwjlm#wlnfbmjmd#le#wkfjp#mbnfg#bewfqwl#sqlwf`w#wkfjp#qfsqfpfmwfgGf`obqbwjlm#lenlqf#feej`jfmw@obppjej`bwjlmlwkfq#elqnp#lekf#qfwvqmfg#wl?psbm#`obpp>!`sfqelqnbm`f#le+evm`wjlm+*#xje#bmg#lmoz#jeqfdjlmp#le#wkfofbgjmd#wl#wkfqfobwjlmp#tjwkVmjwfg#Mbwjlmppwzof>!kfjdkw9lwkfq#wkbm#wkfzsf!#`lmwfmw>!Bppl`jbwjlm#le ?,kfbg= ?algzol`bwfg#lm#wkfjp#qfefqqfg#wl+jm`ovgjmd#wkf`lm`fmwqbwjlmpwkf#jmgjujgvbobnlmd#wkf#nlpwwkbm#bmz#lwkfq,= ?ojmh#qfo>!#qfwvqm#ebopf8wkf#svqslpf#lewkf#bajojwz#wl8`lolq9 eee~ - ?psbm#`obpp>!wkf#pvaif`w#legfejmjwjlmp#le= ?ojmh#qfo>!`objn#wkbw#wkfkbuf#gfufolsfg?wbaof#tjgwk>!`fofaqbwjlm#leElooltjmd#wkf#wl#gjpwjmdvjpk?psbm#`obpp>!awbhfp#sob`f#jmvmgfq#wkf#mbnfmlwfg#wkbw#wkf=?"Xfmgje^..= pwzof>!nbqdjm.jmpwfbg#le#wkfjmwqlgv`fg#wkfwkf#sql`fpp#lejm`qfbpjmd#wkfgjeefqfm`fp#jmfpwjnbwfg#wkbwfpsf`jbooz#wkf,gju=?gju#jg>!tbp#fufmwvboozwkqlvdklvw#kjpwkf#gjeefqfm`fplnfwkjmd#wkbwpsbm=?,psbm=?,pjdmjej`bmwoz#=?,p`qjsw=  fmujqlmnfmwbo#wl#sqfufmw#wkfkbuf#affm#vpfgfpsf`jbooz#elqvmgfqpwbmg#wkfjp#fppfmwjbooztfqf#wkf#ejqpwjp#wkf#obqdfpwkbuf#affm#nbgf!#pq`>!kwws9,,jmwfqsqfwfg#bppf`lmg#kboe#le`qloojmd>!ml!#jp#`lnslpfg#leJJ/#Kloz#Qlnbmjp#f{sf`wfg#wlkbuf#wkfjq#ltmgfejmfg#bp#wkfwqbgjwjlmbooz#kbuf#gjeefqfmwbqf#lewfm#vpfgwl#fmpvqf#wkbwbdqffnfmw#tjwk`lmwbjmjmd#wkfbqf#eqfrvfmwozjmelqnbwjlm#lmf{bnsof#jp#wkfqfpvowjmd#jm#b?,b=?,oj=?,vo=#`obpp>!ellwfqbmg#fpsf`jboozwzsf>!avwwlm!#?,psbm=?,psbm=tkj`k#jm`ovgfg= ?nfwb#mbnf>!`lmpjgfqfg#wkf`bqqjfg#lvw#azKltfufq/#jw#jpaf`bnf#sbqw#lejm#qfobwjlm#wlslsvobq#jm#wkfwkf#`bsjwbo#letbp#leej`jbooztkj`k#kbp#affmwkf#Kjpwlqz#lebowfqmbwjuf#wlgjeefqfmw#eqlnwl#pvsslqw#wkfpvddfpwfg#wkbwjm#wkf#sql`fpp##?gju#`obpp>!wkf#elvmgbwjlmaf`bvpf#le#kjp`lm`fqmfg#tjwkwkf#vmjufqpjwzlsslpfg#wl#wkfwkf#`lmwf{w#le?psbm#`obpp>!swf{w!#mbnf>!r!\\n\\n?gju#`obpp>!wkf#p`jfmwjej`qfsqfpfmwfg#aznbwkfnbwj`jbmpfof`wfg#az#wkfwkbw#kbuf#affm=?gju#`obpp>!`gju#jg>!kfbgfqjm#sbqwj`vobq/`lmufqwfg#jmwl*8 ?,p`qjsw= ?skjolplskj`bo#pqsphlkqubwphjwj\\rVSmd#Uj\\rWkw<L=o=m=m<V<T<U=l=o=m=m<V<T<Ujmufpwjdb`j/_msbqwj`jsb`j/_m<V<R=n<R=l=g<Y<R<]<W<\\\\=m=n<T<V<R=n<R=l=g<U=k<Y<W<R<^<Y<V=m<T=m=n<Y<P=g<q<R<^<R=m=n<T<V<R=n<R=l=g=i<R<]<W<\\\\=m=n=`<^=l<Y<P<Y<Q<T<V<R=n<R=l<\\\\=c=m<Y<_<R<X<Q=c=m<V<\\\\=k<\\\\=n=`<Q<R<^<R=m=n<T<O<V=l<\\\\<T<Q=g<^<R<S=l<R=m=g<V<R=n<R=l<R<U=m<X<Y<W<\\\\=n=`<S<R<P<R=e=`=b=m=l<Y<X=m=n<^<R<]=l<\\\\<[<R<P=m=n<R=l<R<Q=g=o=k<\\\\=m=n<T<Y=n<Y=k<Y<Q<T<Y<<W<\\\\<^<Q<\\\\=c<T=m=n<R=l<T<T=m<T=m=n<Y<P<\\\\=l<Y=d<Y<Q<T=c<M<V<\\\\=k<\\\\=n=`<S<R=a=n<R<P=o=m<W<Y<X=o<Y=n=m<V<\\\\<[<\\\\=n=`=n<R<^<\\\\=l<R<^<V<R<Q<Y=k<Q<R=l<Y=d<Y<Q<T<Y<V<R=n<R=l<R<Y<R=l<_<\\\\<Q<R<^<V<R=n<R=l<R<P<L<Y<V<W<\\\\<P<\\\\4K5h5i5j4F4C5e5i5j4F4C5f4K4F4K5h5i5d4Z5d4U4K5h4D4]4K5i4@4K5h5i5d4K5n4U4K5h4]4_4K4J5h5i4X4K4]5o4K4F4K5h4O4U4Z4K4M4K5h4]5f4K4Z4E4K5h4F4Y5i5f5i4K5h4K4U4Z4K4M4K5h5j4F4K4J4@4K5h4O5h4U4K4D4K5h4F4_4@5f5h4K5h4O5n4_4K5i4K5h4Z4V4[4K4F4K5h5m5f4C5f5d4K5h4F4]4A5f4D4K5h4@4C5f4C4E4K5h4F4U5h5f5i4K5h4O4B4D4K4]4K5h4K5m5h4K5i4K5h4O5m5h4K5i4K5h4F4K4]5f4B4K5h4F5n5j5f4E4K5h4K5h4U4K4D4K5h4B5d4K4[4]4K5h5i4@4F5i4U4K5h4C5f5o5d4]4K5h4_5f4K4A4E4U4D4C4K5h5h5k4K5h4F4]4D5f4E4K5h4]5d4K4D4[4K5h4O4C4D5f4E4K5h4K4B4D4K4]4K5h5i4F4A4C4E4K5h4K4V4K5j5f`vqplq9sljmwfq8?,wjwof= ?nfwb#!#kqfe>!kwws9,,!=?psbm#`obpp>!nfnafqp#le#wkf#tjmglt-ol`bwjlmufqwj`bo.bojdm9,b=##?b#kqfe>!?"gl`wzsf#kwno=nfgjb>!p`qffm!#?lswjlm#ubovf>!ebuj`lm-j`l!#,= \\n\\n?gju#`obpp>!`kbqb`wfqjpwj`p!#nfwklg>!dfw!#,algz= ?,kwno= pklqw`vw#j`lm!#gl`vnfmw-tqjwf+sbggjmd.alwwln9qfsqfpfmwbwjufppvanjw!#ubovf>!bojdm>!`fmwfq!#wkqlvdklvw#wkf#p`jfm`f#ej`wjlm ##?gju#`obpp>!pvanjw!#`obpp>!lmf#le#wkf#nlpw#ubojdm>!wls!=?tbp#fpwbaojpkfg*8 ?,p`qjsw= qfwvqm#ebopf8!=*-pwzof-gjpsobzaf`bvpf#le#wkf#gl`vnfmw-`llhjf?elqn#b`wjlm>!,~algzxnbqdjm938Fm`z`olsfgjb#leufqpjlm#le#wkf#-`qfbwfFofnfmw+mbnf!#`lmwfmw>!?,gju= ?,gju= bgnjmjpwqbwjuf#?,algz= ?,kwno=kjpwlqz#le#wkf#!=?jmsvw#wzsf>!slqwjlm#le#wkf#bp#sbqw#le#wkf#%maps8?b#kqfe>!lwkfq#`lvmwqjfp!= ?gju#`obpp>!?,psbm=?,psbm=?Jm#lwkfq#tlqgp/gjpsobz9#aol`h8`lmwqlo#le#wkf#jmwqlgv`wjlm#le,= ?nfwb#mbnf>!bp#tfoo#bp#wkf#jm#qf`fmw#zfbqp \\n?gju#`obpp>!?,gju= \\n?,gju= jmpsjqfg#az#wkfwkf#fmg#le#wkf#`lnsbwjaof#tjwkaf`bnf#hmltm#bp#pwzof>!nbqdjm9-ip!=?,p`qjsw=?#Jmwfqmbwjlmbo#wkfqf#kbuf#affmDfqnbm#obmdvbdf#pwzof>!`lolq9 @lnnvmjpw#Sbqwz`lmpjpwfmw#tjwkalqgfq>!3!#`foo#nbqdjmkfjdkw>!wkf#nbilqjwz#le!#bojdm>!`fmwfqqfobwfg#wl#wkf#nbmz#gjeefqfmw#Lqwklgl{#@kvq`kpjnjobq#wl#wkf#,= ?ojmh#qfo>!ptbp#lmf#le#wkf#vmwjo#kjp#gfbwk~*+*8 ?,p`qjsw=lwkfq#obmdvbdfp`lnsbqfg#wl#wkfslqwjlmp#le#wkfwkf#Mfwkfqobmgpwkf#nlpw#`lnnlmab`hdqlvmg9vqo+bqdvfg#wkbw#wkfp`qloojmd>!ml!#jm`ovgfg#jm#wkfMlqwk#Bnfqj`bm#wkf#mbnf#le#wkfjmwfqsqfwbwjlmpwkf#wqbgjwjlmbogfufolsnfmw#le#eqfrvfmwoz#vpfgb#`loof`wjlm#leufqz#pjnjobq#wlpvqqlvmgjmd#wkff{bnsof#le#wkjpbojdm>!`fmwfq!=tlvog#kbuf#affmjnbdf\\\\`bswjlm#>bwwb`kfg#wl#wkfpvddfpwjmd#wkbwjm#wkf#elqn#le#jmuloufg#jm#wkfjp#gfqjufg#eqlnmbnfg#bewfq#wkfJmwqlgv`wjlm#wlqfpwqj`wjlmp#lm#pwzof>!tjgwk9#`bm#af#vpfg#wl#wkf#`qfbwjlm#lenlpw#jnslqwbmw#jmelqnbwjlm#bmgqfpvowfg#jm#wkf`loobspf#le#wkfWkjp#nfbmp#wkbwfofnfmwp#le#wkftbp#qfsob`fg#azbmbozpjp#le#wkfjmpsjqbwjlm#elqqfdbqgfg#bp#wkfnlpw#pv``fppevohmltm#bp#%rvlw8b#`lnsqfkfmpjufKjpwlqz#le#wkf#tfqf#`lmpjgfqfgqfwvqmfg#wl#wkfbqf#qfefqqfg#wlVmplvq`fg#jnbdf= \\n?gju#`obpp>!`lmpjpwp#le#wkfpwlsSqlsbdbwjlmjmwfqfpw#jm#wkfbubjobajojwz#lebssfbqp#wl#kbuffof`wqlnbdmfwj`fmbaofPfquj`fp+evm`wjlm#le#wkfJw#jp#jnslqwbmw?,p`qjsw=?,gju=evm`wjlm+*xubq#qfobwjuf#wl#wkfbp#b#qfpvow#le#wkf#slpjwjlm#leElq#f{bnsof/#jm#nfwklg>!slpw!#tbp#elooltfg#az%bns8ngbpk8#wkfwkf#bssoj`bwjlmip!=?,p`qjsw= vo=?,gju=?,gju=bewfq#wkf#gfbwktjwk#qfpsf`w#wlpwzof>!sbggjmd9jp#sbqwj`vobqozgjpsobz9jmojmf8#wzsf>!pvanjw!#jp#gjujgfg#jmwl\\bTA\\nzk#+\\vBl\\bQ*qfpslmpbajojgbgbgnjmjpwqb`j/_mjmwfqmb`jlmbofp`lqqfpslmgjfmwf\\fHe\\fHF\\fHC\\fIg\\fH{\\fHF\\fIn\\fH\\\\\\fIa\\fHY\\fHU\\fHB\\fHR\\fH\\\\\\fIk\\fH^\\fIg\\fH{\\fIg\\fHn\\fHv\\fIm\\fHD\\fHR\\fHY\\fH^\\fIk\\fHy\\fHS\\fHD\\fHT\\fH\\\\\\fHy\\fHR\\fH\\\\\\fHF\\fIm\\fH^\\fHS\\fHT\\fHz\\fIg\\fHp\\fIk\\fHn\\fHv\\fHR\\fHU\\fHS\\fHc\\fHA\\fIk\\fHp\\fIk\\fHn\\fHZ\\fHR\\fHB\\fHS\\fH^\\fHU\\fHB\\fHR\\fH\\\\\\fIl\\fHp\\fHR\\fH{\\fH\\\\\\fHO\\fH@\\fHD\\fHR\\fHD\\fIk\\fHy\\fIm\\fHB\\fHR\\fH\\\\\\fH@\\fIa\\fH^\\fIe\\fH{\\fHB\\fHR\\fH^\\fHS\\fHy\\fHB\\fHU\\fHS\\fH^\\fHR\\fHF\\fIo\\fH[\\fIa\\fHL\\fH@\\fHN\\fHP\\fHH\\fIk\\fHA\\fHR\\fHp\\fHF\\fHR\\fHy\\fIa\\fH^\\fHS\\fHy\\fHs\\fIa\\fH\\\\\\fIk\\fHD\\fHz\\fHS\\fH^\\fHR\\fHG\\fHJ\\fI`\\fH\\\\\\fHR\\fHD\\fHB\\fHR\\fHB\\fH^\\fIk\\fHB\\fHH\\fHJ\\fHR\\fHD\\fH@\\fHR\\fHp\\fHR\\fH\\\\\\fHY\\fHS\\fHy\\fHR\\fHT\\fHy\\fIa\\fHC\\fIg\\fHn\\fHv\\fHR\\fHU\\fHH\\fIk\\fHF\\fHU\\fIm\\fHm\\fHv\\fH@\\fHH\\fHR\\fHC\\fHR\\fHT\\fHn\\fHY\\fHR\\fHJ\\fHJ\\fIk\\fHz\\fHD\\fIk\\fHF\\fHS\\fHw\\fH^\\fIk\\fHY\\fHS\\fHZ\\fIk\\fH[\\fH\\\\\\fHR\\fHp\\fIa\\fHC\\fHe\\fHH\\fIa\\fHH\\fH\\\\\\fHB\\fIm\\fHn\\fH@\\fHd\\fHJ\\fIg\\fHD\\fIg\\fHn\\fHe\\fHF\\fHy\\fH\\\\\\fHO\\fHF\\fHN\\fHP\\fIk\\fHn\\fHT\\fIa\\fHI\\fHS\\fHH\\fHG\\fHS\\fH^\\fIa\\fHB\\fHB\\fIm\\fHz\\fIa\\fHC\\fHi\\fHv\\fIa\\fHw\\fHR\\fHw\\fIn\\fHs\\fHH\\fIl\\fHT\\fHn\\fH{\\fIl\\fHH\\fHp\\fHR\\fHc\\fH{\\fHR\\fHY\\fHS\\fHA\\fHR\\fH{\\fHt\\fHO\\fIa\\fHs\\fIk\\fHJ\\fIn\\fHT\\fH\\\\\\fIk\\fHJ\\fHS\\fHD\\fIg\\fHn\\fHU\\fHH\\fIa\\fHC\\fHR\\fHT\\fIk\\fHy\\fIa\\fHT\\fH{\\fHR\\fHn\\fHK\\fIl\\fHY\\fHS\\fHZ\\fIa\\fHY\\fH\\\\\\fHR\\fHH\\fIk\\fHn\\fHJ\\fId\\fHs\\fIa\\fHT\\fHD\\fHy\\fIa\\fHZ\\fHR\\fHT\\fHR\\fHB\\fHD\\fIk\\fHi\\fHJ\\fHR\\fH^\\fHH\\fH@\\fHS\\fHp\\fH^\\fIl\\fHF\\fIm\\fH\\\\\\fIn\\fH[\\fHU\\fHS\\fHn\\fHJ\\fIl\\fHB\\fHS\\fHH\\fIa\\fH\\\\\\fHy\\fHY\\fHS\\fHH\\fHR\\fH\\\\\\fIm\\fHF\\fHC\\fIk\\fHT\\fIa\\fHI\\fHR\\fHD\\fHy\\fH\\\\\\fIg\\fHM\\fHP\\fHB\\fIm\\fHy\\fIa\\fHH\\fHC\\fIg\\fHp\\fHD\\fHR\\fHy\\fIo\\fHF\\fHC\\fHR\\fHF\\fIg\\fHT\\fIa\\fHs\\fHt\\fH\\\\\\fIk\\fH^\\fIn\\fHy\\fHR\\fH\\\\\\fIa\\fHC\\fHY\\fHS\\fHv\\fHR\\fH\\\\\\fHT\\fIn\\fHv\\fHD\\fHR\\fHB\\fIn\\fH^\\fIa\\fHC\\fHJ\\fIk\\fHz\\fIk\\fHn\\fHU\\fHB\\fIk\\fHZ\\fHR\\fHT\\fIa\\fHy\\fIn\\fH^\\fHB\\fId\\fHn\\fHD\\fIk\\fHH\\fId\\fHC\\fHR\\fH\\\\\\fHp\\fHS\\fHT\\fHy\\fIkqpp({no!#wjwof>!.wzsf!#`lmwfmw>!wjwof!#`lmwfmw>!bw#wkf#pbnf#wjnf-ip!=?,p`qjsw= ?!#nfwklg>!slpw!#?,psbm=?,b=?,oj=ufqwj`bo.bojdm9w,irvfqz-njm-ip!=-`oj`h+evm`wjlm+#pwzof>!sbggjmd.~*+*8 ?,p`qjsw= ?,psbm=?b#kqfe>!?b#kqfe>!kwws9,,*8#qfwvqm#ebopf8wf{w.gf`lqbwjlm9#p`qloojmd>!ml!#alqgfq.`loobspf9bppl`jbwfg#tjwk#Abkbpb#JmglmfpjbFmdojpk#obmdvbdf?wf{w#{no9psb`f>-dje!#alqgfq>!3!?,algz= ?,kwno= lufqeolt9kjggfm8jnd#pq`>!kwws9,,bggFufmwOjpwfmfqqfpslmpjaof#elq#p-ip!=?,p`qjsw= ,ebuj`lm-j`l!#,=lsfqbwjmd#pzpwfn!#pwzof>!tjgwk92wbqdfw>!\\\\aobmh!=Pwbwf#Vmjufqpjwzwf{w.bojdm9ofew8 gl`vnfmw-tqjwf+/#jm`ovgjmd#wkf#bqlvmg#wkf#tlqog*8 ?,p`qjsw= ?!#pwzof>!kfjdkw98lufqeolt9kjggfmnlqf#jmelqnbwjlmbm#jmwfqmbwjlmbob#nfnafq#le#wkf#lmf#le#wkf#ejqpw`bm#af#elvmg#jm#?,gju= \\n\\n?,gju= gjpsobz9#mlmf8!=!#,= ?ojmh#qfo>! ##+evm`wjlm+*#xwkf#26wk#`fmwvqz-sqfufmwGfebvow+obqdf#mvnafq#le#Azybmwjmf#Fnsjqf-isdwkvnaofewubpw#nbilqjwz#lenbilqjwz#le#wkf##bojdm>!`fmwfq!=Vmjufqpjwz#Sqfppglnjmbwfg#az#wkfPf`lmg#Tlqog#Tbqgjpwqjavwjlm#le#pwzof>!slpjwjlm9wkf#qfpw#le#wkf#`kbqb`wfqjyfg#az#qfo>!mleloolt!=gfqjufp#eqln#wkfqbwkfq#wkbm#wkf#b#`lnajmbwjlm#lepwzof>!tjgwk9233Fmdojpk.psfbhjmd`lnsvwfq#p`jfm`falqgfq>!3!#bow>!wkf#f{jpwfm`f#leGfnl`qbwj`#Sbqwz!#pwzof>!nbqdjm.Elq#wkjp#qfbplm/-ip!=?,p`qjsw= \\npAzWbdMbnf+p*X3^ip!=?,p`qjsw= ?-ip!=?,p`qjsw= ojmh#qfo>!j`lm!#$#bow>$$#`obpp>$elqnbwjlm#le#wkfufqpjlmp#le#wkf#?,b=?,gju=?,gju=,sbdf= ##?sbdf= ?gju#`obpp>!`lmwaf`bnf#wkf#ejqpwabkbpb#Jmglmfpjbfmdojpk#+pjnsof*"y"W"W"["Q"U"V"@=i=l<^<\\\\=n=m<V<T<V<R<P<S<\\\\<Q<T<T=c<^<W=c<Y=n=m=c<x<R<]<\\\\<^<T=n=`=k<Y<W<R<^<Y<V<\\\\=l<\\\\<[<^<T=n<T=c<t<Q=n<Y=l<Q<Y=n<r=n<^<Y=n<T=n=`<Q<\\\\<S=l<T<P<Y=l<T<Q=n<Y=l<Q<Y=n<V<R=n<R=l<R<_<R=m=n=l<\\\\<Q<T=j=g<V<\\\\=k<Y=m=n<^<Y=o=m<W<R<^<T=c=i<S=l<R<]<W<Y<P=g<S<R<W=o=k<T=n=`=c<^<W=c=b=n=m=c<Q<\\\\<T<]<R<W<Y<Y<V<R<P<S<\\\\<Q<T=c<^<Q<T<P<\\\\<Q<T<Y=m=l<Y<X=m=n<^<\\\\4K5h5i5d4K4Z5f4U4K5h4]4J5f4_5f4E4K5h4K5j4F5n4K5h5i4X4K4]5o4K4F5o4K5h4_5f4K4]4K4F4K5h5i5o4F5d4D4E4K5h4_4U5d4C5f4E4K4A4Y4K4J5f4K4F4K5h4U4K5h5i5f4E4K5h4Y5d4F5f4K4F4K5h4K5j4F4]5j4F4K5h4F4Y4K5i5f5i4K5h4I4_5h4K5i5f4K5h5i4X4K4]5o4E4K5h5i4]4J5f4K4Fqlalwp!#`lmwfmw>!?gju#jg>!ellwfq!=wkf#Vmjwfg#Pwbwfp?jnd#pq`>!kwws9,,-isdqjdkwwkvna-ip!=?,p`qjsw= ?ol`bwjlm-sqlwl`loeqbnfalqgfq>!3!#p!#,= ?nfwb#mbnf>!?,b=?,gju=?,gju=?elmw.tfjdkw9alog8%rvlw8#bmg#%rvlw8gfsfmgjmd#lm#wkf#nbqdjm938sbggjmd9!#qfo>!mleloolt!#Sqfpjgfmw#le#wkf#wtfmwjfwk#`fmwvqzfujpjlm= ##?,sbdfJmwfqmfw#F{solqfqb-bpzm`#>#wqvf8 jmelqnbwjlm#balvw?gju#jg>!kfbgfq!=!#b`wjlm>!kwws9,,?b#kqfe>!kwwsp9,,?gju#jg>!`lmwfmw!?,gju= ?,gju= ?gfqjufg#eqln#wkf#?jnd#pq`>$kwws9,,b``lqgjmd#wl#wkf# ?,algz= ?,kwno= pwzof>!elmw.pjyf9p`qjsw#obmdvbdf>!Bqjbo/#Kfoufwj`b/?,b=?psbm#`obpp>!?,p`qjsw=?p`qjsw#slojwj`bo#sbqwjfpwg=?,wq=?,wbaof=?kqfe>!kwws9,,ttt-jmwfqsqfwbwjlm#leqfo>!pwzofpkffw!#gl`vnfmw-tqjwf+$?`kbqpfw>!vwe.;!= afdjmmjmd#le#wkf#qfufbofg#wkbw#wkfwfofujpjlm#pfqjfp!#qfo>!mleloolt!=#wbqdfw>!\\\\aobmh!=`objnjmd#wkbw#wkfkwws&0B&1E&1Ettt-nbmjefpwbwjlmp#leSqjnf#Njmjpwfq#lejmeovfm`fg#az#wkf`obpp>!`ofbqej{!=,gju= ?,gju=  wkqff.gjnfmpjlmbo@kvq`k#le#Fmdobmgle#Mlqwk#@bqlojmbprvbqf#hjolnfwqfp-bggFufmwOjpwfmfqgjpwjm`w#eqln#wkf`lnnlmoz#hmltm#bpSklmfwj`#Boskbafwgf`obqfg#wkbw#wkf`lmwqloofg#az#wkfAfmibnjm#Eqbmhojmqlof.sobzjmd#dbnfwkf#Vmjufqpjwz#lejm#Tfpwfqm#Fvqlsfsfqplmbo#`lnsvwfqSqlif`w#Dvwfmafqdqfdbqgofpp#le#wkfkbp#affm#sqlslpfgwldfwkfq#tjwk#wkf=?,oj=?oj#`obpp>!jm#plnf#`lvmwqjfpnjm-ip!=?,p`qjsw=le#wkf#slsvobwjlmleej`jbo#obmdvbdf?jnd#pq`>!jnbdfp,jgfmwjejfg#az#wkfmbwvqbo#qfplvq`fp`obppjej`bwjlm#le`bm#af#`lmpjgfqfgrvbmwvn#nf`kbmj`pMfufqwkfofpp/#wkfnjoojlm#zfbqp#bdl?,algz= ?,kwno="y"W"W"["Q"U"V"@ wbhf#bgubmwbdf#lebmg/#b``lqgjmd#wlbwwqjavwfg#wl#wkfNj`qlplew#Tjmgltpwkf#ejqpw#`fmwvqzvmgfq#wkf#`lmwqlogju#`obpp>!kfbgfqpklqwoz#bewfq#wkfmlwbaof#f{`fswjlmwfmp#le#wklvpbmgppfufqbo#gjeefqfmwbqlvmg#wkf#tlqog-qfb`kjmd#njojwbqzjplobwfg#eqln#wkflsslpjwjlm#wl#wkfwkf#Log#WfpwbnfmwBeqj`bm#Bnfqj`bmpjmpfqwfg#jmwl#wkfpfsbqbwf#eqln#wkfnfwqlslojwbm#bqfbnbhfp#jw#slppjaofb`hmltofgdfg#wkbwbqdvbaoz#wkf#nlpwwzsf>!wf{w,`pp!= wkf#JmwfqmbwjlmboB``lqgjmd#wl#wkf#sf>!wf{w,`pp!#,= `ljm`jgf#tjwk#wkfwtl.wkjqgp#le#wkfGvqjmd#wkjp#wjnf/gvqjmd#wkf#sfqjlgbmmlvm`fg#wkbw#kfwkf#jmwfqmbwjlmbobmg#nlqf#qf`fmwozafojfufg#wkbw#wkf`lmp`jlvpmfpp#bmgelqnfqoz#hmltm#bppvqqlvmgfg#az#wkfejqpw#bssfbqfg#jml``bpjlmbooz#vpfgslpjwjlm9baplovwf8!#wbqdfw>!\\\\aobmh!#slpjwjlm9qfobwjuf8wf{w.bojdm9`fmwfq8ib{,ojap,irvfqz,2-ab`hdqlvmg.`lolq9 wzsf>!bssoj`bwjlm,bmdvbdf!#`lmwfmw>!?nfwb#kwws.frvju>!Sqjub`z#Sloj`z?,b=f+!&0@p`qjsw#pq`>$!#wbqdfw>!\\\\aobmh!=Lm#wkf#lwkfq#kbmg/-isdwkvnaqjdkw1?,gju=?gju#`obpp>!?gju#pwzof>!eolbw9mjmfwffmwk#`fmwvqz?,algz= ?,kwno= ?jnd#pq`>!kwws9,,p8wf{w.bojdm9`fmwfqelmw.tfjdkw9#alog8#B``lqgjmd#wl#wkf#gjeefqfm`f#afwtffm!#eqbnfalqgfq>!3!#!#pwzof>!slpjwjlm9ojmh#kqfe>!kwws9,,kwno7,ollpf-gwg!= gvqjmd#wkjp#sfqjlg?,wg=?,wq=?,wbaof=`olpfoz#qfobwfg#wlelq#wkf#ejqpw#wjnf8elmw.tfjdkw9alog8jmsvw#wzsf>!wf{w!#?psbm#pwzof>!elmw.lmqfbgzpwbwf`kbmdf\\n?gju#`obpp>!`ofbqgl`vnfmw-ol`bwjlm-#Elq#f{bnsof/#wkf#b#tjgf#ubqjfwz#le#?"GL@WZSF#kwno= ?%maps8%maps8%maps8!=?b#kqfe>!kwws9,,pwzof>!eolbw9ofew8`lm`fqmfg#tjwk#wkf>kwws&0B&1E&1Ettt-jm#slsvobq#`vowvqfwzsf>!wf{w,`pp!#,=jw#jp#slppjaof#wl#Kbqubqg#Vmjufqpjwzwzofpkffw!#kqfe>!,wkf#nbjm#`kbqb`wfqL{elqg#Vmjufqpjwz##mbnf>!hfztlqgp!#`pwzof>!wf{w.bojdm9wkf#Vmjwfg#Hjmdglnefgfqbo#dlufqmnfmw?gju#pwzof>!nbqdjm#gfsfmgjmd#lm#wkf#gfp`qjswjlm#le#wkf?gju#`obpp>!kfbgfq-njm-ip!=?,p`qjsw=gfpwqv`wjlm#le#wkfpojdkwoz#gjeefqfmwjm#b``lqgbm`f#tjwkwfof`lnnvmj`bwjlmpjmgj`bwfp#wkbw#wkfpklqwoz#wkfqfbewfqfpsf`jbooz#jm#wkf#Fvqlsfbm#`lvmwqjfpKltfufq/#wkfqf#bqfpq`>!kwws9,,pwbwj`pvddfpwfg#wkbw#wkf!#pq`>!kwws9,,ttt-b#obqdf#mvnafq#le#Wfof`lnnvmj`bwjlmp!#qfo>!mleloolt!#wKloz#Qlnbm#Fnsfqlqbonlpw#f{`ovpjufoz!#alqgfq>!3!#bow>!Pf`qfwbqz#le#Pwbwf`vonjmbwjmd#jm#wkf@JB#Tlqog#Eb`wallhwkf#nlpw#jnslqwbmwbmmjufqpbqz#le#wkfpwzof>!ab`hdqlvmg.?oj=?fn=?b#kqfe>!,wkf#Bwobmwj`#L`fbmpwqj`woz#psfbhjmd/pklqwoz#afelqf#wkfgjeefqfmw#wzsfp#lewkf#Lwwlnbm#Fnsjqf=?jnd#pq`>!kwws9,,Bm#Jmwqlgv`wjlm#wl`lmpfrvfm`f#le#wkfgfsbqwvqf#eqln#wkf@lmefgfqbwf#Pwbwfpjmgjdfmlvp#sflsofpSql`ffgjmdp#le#wkfjmelqnbwjlm#lm#wkfwkflqjfp#kbuf#affmjmuloufnfmw#jm#wkfgjujgfg#jmwl#wkqffbgib`fmw#`lvmwqjfpjp#qfpslmpjaof#elqgjpplovwjlm#le#wkf`loobalqbwjlm#tjwktjgfoz#qfdbqgfg#bpkjp#`lmwfnslqbqjfpelvmgjmd#nfnafq#leGlnjmj`bm#Qfsvaoj`dfmfqbooz#b``fswfgwkf#slppjajojwz#lebqf#bopl#bubjobaofvmgfq#`lmpwqv`wjlmqfpwlqbwjlm#le#wkfwkf#dfmfqbo#svaoj`jp#bonlpw#fmwjqfozsbppfp#wkqlvdk#wkfkbp#affm#pvddfpwfg`lnsvwfq#bmg#ujgflDfqnbmj`#obmdvbdfp#b``lqgjmd#wl#wkf#gjeefqfmw#eqln#wkfpklqwoz#bewfqtbqgpkqfe>!kwwsp9,,ttt-qf`fmw#gfufolsnfmwAlbqg#le#Gjqf`wlqp?gju#`obpp>!pfbq`k#?b#kqfe>!kwws9,,Jm#sbqwj`vobq/#wkfNvowjsof#ellwmlwfplq#lwkfq#pvapwbm`fwklvpbmgp#le#zfbqpwqbmpobwjlm#le#wkf?,gju= ?,gju=  ?b#kqfe>!jmgf{-skstbp#fpwbaojpkfg#jmnjm-ip!=?,p`qjsw= sbqwj`jsbwf#jm#wkfb#pwqlmd#jmeovfm`fpwzof>!nbqdjm.wls9qfsqfpfmwfg#az#wkfdqbgvbwfg#eqln#wkfWqbgjwjlmbooz/#wkfFofnfmw+!p`qjsw!*8Kltfufq/#pjm`f#wkf,gju= ?,gju= ?gju#ofew8#nbqdjm.ofew9sqlwf`wjlm#bdbjmpw38#ufqwj`bo.bojdm9Vmelqwvmbwfoz/#wkfwzsf>!jnbdf,{.j`lm,gju= ?gju#`obpp>!#`obpp>!`ofbqej{!=?gju#`obpp>!ellwfq\\n\\n?,gju= \\n\\n?,gju= wkf#nlwjlm#sj`wvqf<}=f<W<_<\\\\=l=m<V<T<]=f<W<_<\\\\=l=m<V<T<H<Y<X<Y=l<\\\\=j<T<T<Q<Y=m<V<R<W=`<V<R=m<R<R<]=e<Y<Q<T<Y=m<R<R<]=e<Y<Q<T=c<S=l<R<_=l<\\\\<P<P=g<r=n<S=l<\\\\<^<T=n=`<]<Y=m<S<W<\\\\=n<Q<R<P<\\\\=n<Y=l<T<\\\\<W=g<S<R<[<^<R<W=c<Y=n<S<R=m<W<Y<X<Q<T<Y=l<\\\\<[<W<T=k<Q=g=i<S=l<R<X=o<V=j<T<T<S=l<R<_=l<\\\\<P<P<\\\\<S<R<W<Q<R=m=n=`=b<Q<\\\\=i<R<X<T=n=m=c<T<[<]=l<\\\\<Q<Q<R<Y<Q<\\\\=m<Y<W<Y<Q<T=c<T<[<P<Y<Q<Y<Q<T=c<V<\\\\=n<Y<_<R=l<T<T<|<W<Y<V=m<\\\\<Q<X=l\\fHJ\\fIa\\fHY\\fHR\\fH\\\\\\fHR\\fHB\\fId\\fHD\\fIm\\fHi\\fH^\\fHF\\fIa\\fH\\\\\\fHJ\\fHR\\fHD\\fHA\\fHR\\fH\\\\\\fHH\\fIl\\fHC\\fHi\\fHD\\fIm\\fHJ\\fIk\\fHZ\\fHU\\fHS\\fHD\\fIa\\fHJ\\fIl\\fHk\\fHn\\fHM\\fHS\\fHC\\fHR\\fHJ\\fHS\\fH^\\fIa\\fH^\\fIl\\fHi\\fHK\\fHS\\fHy\\fHR\\fH\\\\\\fHY\\fIl\\fHM\\fHS\\fHC\\fIg\\fHv\\fHS\\fHs\\fIa\\fHL\\fIk\\fHT\\fHB\\fHR\\fHv\\fHR\\fH\\\\\\fHp\\fHn\\fHy\\fIa\\fHZ\\fHD\\fHJ\\fIm\\fHD\\fHS\\fHC\\fHR\\fHF\\fIa\\fH\\\\\\fHC\\fIg\\fH{\\fHi\\fHD\\fIm\\fHT\\fHR\\fH\\\\\\fH}\\fHD\\fH^\\fHR\\fHk\\fHD\\fHF\\fHR\\fH\\\\\\fIa\\fHs\\fIl\\fHZ\\fH\\\\\\fIa\\fHH\\fIg\\fHn\\fH^\\fIg\\fHy\\fHT\\fHA\\fHR\\fHG\\fHP\\fIa\\fH^\\fId\\fHZ\\fHZ\\fH\\\\\\fIa\\fHH\\fIk\\fHn\\fHF\\fIa\\fH\\\\\\fHJ\\fIk\\fHZ\\fHF\\fIa\\fH^\\fIk\\fHC\\fH\\\\\\fHy\\fIk\\fHn\\fHJ\\fIa\\fH\\\\\\fHT\\fIa\\fHI\\fHS\\fHH\\fHS\\fHe\\fHH\\fIa\\fHF\\fHR\\fHJ\\fHe\\fHD\\fIa\\fHU\\fIk\\fHn\\fHv\\fHS\\fHs\\fIa\\fHL\\fHR\\fHC\\fHR\\fHH\\fIa\\fH\\\\\\fHR\\fHp\\fIa\\fHC\\fHR\\fHJ\\fHR\\fHF\\fIm\\fH\\\\\\fHR\\fHD\\fIk\\fHp\\fIg\\fHM\\fHP\\fIk\\fHn\\fHi\\fHD\\fIm\\fHY\\fHR\\fHJ\\fHZ\\fIa\\fH\\\\\\fIk\\fHO\\fIl\\fHZ\\fHS\\fHy\\fIa\\fH[\\fHR\\fHT\\fH\\\\\\fHy\\fHR\\fH\\\\\\fIl\\fHT\\fHn\\fH{\\fIa\\fH\\\\\\fHU\\fHF\\fH\\\\\\fHS\\fHO\\fHR\\fHB\\fH@\\fIa\\fH\\\\\\fHR\\fHn\\fHM\\fH@\\fHv\\fIa\\fHv\\fIg\\fHn\\fHe\\fHF\\fH^\\fH@\\fIa\\fHK\\fHB\\fHn\\fHH\\fIa\\fH\\\\\\fIl\\fHT\\fHn\\fHF\\fH\\\\\\fIa\\fHy\\fHe\\fHB\\fIa\\fHB\\fIl\\fHJ\\fHB\\fHR\\fHK\\fIa\\fHC\\fHB\\fHT\\fHU\\fHR\\fHC\\fHH\\fHR\\fHZ\\fH@\\fIa\\fHJ\\fIg\\fHn\\fHB\\fIl\\fHM\\fHS\\fHC\\fHR\\fHj\\fHd\\fHF\\fIl\\fHc\\fH^\\fHB\\fIg\\fH@\\fHR\\fHk\\fH^\\fHT\\fHn\\fHz\\fIa\\fHC\\fHR\\fHj\\fHF\\fH\\\\\\fIk\\fHZ\\fHD\\fHi\\fHD\\fIm\\fH@\\fHn\\fHK\\fH@\\fHR\\fHp\\fHP\\fHR\\fH\\\\\\fHD\\fHY\\fIl\\fHD\\fHH\\fHB\\fHF\\fIa\\fH\\\\\\fHB\\fIm\\fHz\\fHF\\fIa\\fH\\\\\\fHZ\\fIa\\fHD\\fHF\\fH\\\\\\fHS\\fHY\\fHR\\fH\\\\\\fHD\\fIm\\fHy\\fHT\\fHR\\fHD\\fHT\\fHB\\fH\\\\\\fIa\\fHI\\fHD\\fHj\\fHC\\fIg\\fHp\\fHS\\fHH\\fHT\\fIg\\fHB\\fHY\\fHR\\fH\\\\4K5h5i4X4K4]5o4K4F4K5h5i5j4F4C5f4K4F4K5h5o5i4D5f5d4F4]4K5h5i4X4K5k4C4K4F4U4C4C4K5h4^5d4K4]4U4C4C4K5h4]4C5d4C4K5h4I4_5h4K5i5f4E4K5h5m5d4F5d4X5d4D4K5h5i4_4K4D5n4K4F4K5h5i4U5h5d5i4K4F4K5h5i4_5h4_5h4K4F4K5h4@4]4K5m5f5o4_4K5h4K4_5h4K5i5f4E4K5h4K4F4Y4K5h4K4Fhfztlqgp!#`lmwfmw>!t0-lqd,2:::,{kwno!=?b#wbqdfw>!\\\\aobmh!#wf{w,kwno8#`kbqpfw>!#wbqdfw>!\\\\aobmh!=?wbaof#`foosbggjmd>!bvwl`lnsofwf>!lee!#wf{w.bojdm9#`fmwfq8wl#obpw#ufqpjlm#az#ab`hdqlvmg.`lolq9# !#kqfe>!kwws9,,ttt-,gju=?,gju=?gju#jg>?b#kqfe>! !#`obpp>!!=?jnd#pq`>!kwws9,,`qjsw!#pq`>!kwws9,, ?p`qjsw#obmdvbdf>!,,FM!#!kwws9,,ttt-tfm`lgfVQJ@lnslmfmw+!#kqfe>!ibubp`qjsw9?gju#`obpp>!`lmwfmwgl`vnfmw-tqjwf+$?p`slpjwjlm9#baplovwf8p`qjsw#pq`>!kwws9,,#pwzof>!nbqdjm.wls9-njm-ip!=?,p`qjsw= ?,gju= ?gju#`obpp>!t0-lqd,2:::,{kwno!#  ?,algz= ?,kwno=gjpwjm`wjlm#afwtffm,!#wbqdfw>!\\\\aobmh!=?ojmh#kqfe>!kwws9,,fm`lgjmd>!vwe.;!<= t-bggFufmwOjpwfmfq<b`wjlm>!kwws9,,ttt-j`lm!#kqfe>!kwws9,,#pwzof>!ab`hdqlvmg9wzsf>!wf{w,`pp!#,= nfwb#sqlsfqwz>!ld9w?jmsvw#wzsf>!wf{w!##pwzof>!wf{w.bojdm9wkf#gfufolsnfmw#le#wzofpkffw!#wzsf>!wfkwno8#`kbqpfw>vwe.;jp#`lmpjgfqfg#wl#afwbaof#tjgwk>!233&!#Jm#bggjwjlm#wl#wkf#`lmwqjavwfg#wl#wkf#gjeefqfm`fp#afwtffmgfufolsnfmw#le#wkf#Jw#jp#jnslqwbmw#wl#?,p`qjsw= ?p`qjsw##pwzof>!elmw.pjyf92=?,psbm=?psbm#jg>daOjaqbqz#le#@lmdqfpp?jnd#pq`>!kwws9,,jnFmdojpk#wqbmpobwjlmB`bgfnz#le#P`jfm`fpgju#pwzof>!gjpsobz9`lmpwqv`wjlm#le#wkf-dfwFofnfmwAzJg+jg*jm#`lmivm`wjlm#tjwkFofnfmw+$p`qjsw$*8#?nfwb#sqlsfqwz>!ld9<}=f<W<_<\\\\=l=m<V<T #wzsf>!wf{w!#mbnf>!=Sqjub`z#Sloj`z?,b=bgnjmjpwfqfg#az#wkffmbaofPjmdofQfrvfpwpwzof>%rvlw8nbqdjm9?,gju=?,gju=?,gju=?=?jnd#pq`>!kwws9,,j#pwzof>%rvlw8eolbw9qfefqqfg#wl#bp#wkf#wlwbo#slsvobwjlm#lejm#Tbpkjmdwlm/#G-@-#pwzof>!ab`hdqlvmg.bnlmd#lwkfq#wkjmdp/lqdbmjybwjlm#le#wkfsbqwj`jsbwfg#jm#wkfwkf#jmwqlgv`wjlm#lejgfmwjejfg#tjwk#wkfej`wjlmbo#`kbqb`wfq#L{elqg#Vmjufqpjwz#njpvmgfqpwbmgjmd#leWkfqf#bqf/#kltfufq/pwzofpkffw!#kqfe>!,@lovnajb#Vmjufqpjwzf{sbmgfg#wl#jm`ovgfvpvbooz#qfefqqfg#wljmgj`bwjmd#wkbw#wkfkbuf#pvddfpwfg#wkbwbeejojbwfg#tjwk#wkf`lqqfobwjlm#afwtffmmvnafq#le#gjeefqfmw=?,wg=?,wq=?,wbaof=Qfsvaoj`#le#Jqfobmg ?,p`qjsw= ?p`qjsw#vmgfq#wkf#jmeovfm`f`lmwqjavwjlm#wl#wkfLeej`jbo#tfapjwf#lekfbgrvbqwfqp#le#wkf`fmwfqfg#bqlvmg#wkfjnsoj`bwjlmp#le#wkfkbuf#affm#gfufolsfgEfgfqbo#Qfsvaoj`#leaf`bnf#jm`qfbpjmdoz`lmwjmvbwjlm#le#wkfMlwf/#kltfufq/#wkbwpjnjobq#wl#wkbw#le#`bsbajojwjfp#le#wkfb``lqgbm`f#tjwk#wkfsbqwj`jsbmwp#jm#wkfevqwkfq#gfufolsnfmwvmgfq#wkf#gjqf`wjlmjp#lewfm#`lmpjgfqfgkjp#zlvmdfq#aqlwkfq?,wg=?,wq=?,wbaof=?b#kwws.frvju>![.VB.skzpj`bo#sqlsfqwjfple#Aqjwjpk#@lovnajbkbp#affm#`qjwj`jyfg+tjwk#wkf#f{`fswjlmrvfpwjlmp#balvw#wkfsbppjmd#wkqlvdk#wkf3!#`foosbggjmd>!3!#wklvpbmgp#le#sflsofqfgjqf`wp#kfqf-#Elqkbuf#`kjogqfm#vmgfq&0F&0@,p`qjsw&0F!**8?b#kqfe>!kwws9,,ttt-?oj=?b#kqfe>!kwws9,,pjwf\\\\mbnf!#`lmwfmw>!wf{w.gf`lqbwjlm9mlmfpwzof>!gjpsobz9#mlmf?nfwb#kwws.frvju>![.mft#Gbwf+*-dfwWjnf+*#wzsf>!jnbdf,{.j`lm!?,psbm=?psbm#`obpp>!obmdvbdf>!ibubp`qjswtjmglt-ol`bwjlm-kqfe?b#kqfe>!ibubp`qjsw9..= ?p`qjsw#wzsf>!w?b#kqfe>$kwws9,,ttt-klqw`vw#j`lm!#kqfe>!?,gju= ?gju#`obpp>!?p`qjsw#pq`>!kwws9,,!#qfo>!pwzofpkffw!#w?,gju= ?p`qjsw#wzsf>,b=#?b#kqfe>!kwws9,,#booltWqbmpsbqfm`z>![.VB.@lnsbwjaof!#`lmqfobwjlmpkjs#afwtffm ?,p`qjsw= ?p`qjsw#?,b=?,oj=?,vo=?,gju=bppl`jbwfg#tjwk#wkf#sqldqbnnjmd#obmdvbdf?,b=?b#kqfe>!kwws9,,?,b=?,oj=?oj#`obpp>!elqn#b`wjlm>!kwws9,,?gju#pwzof>!gjpsobz9wzsf>!wf{w!#mbnf>!r!?wbaof#tjgwk>!233&!#ab`hdqlvmg.slpjwjlm9!#alqgfq>!3!#tjgwk>!qfo>!pklqw`vw#j`lm!#k5=?vo=?oj=?b#kqfe>!##?nfwb#kwws.frvju>!`pp!#nfgjb>!p`qffm!#qfpslmpjaof#elq#wkf#!#wzsf>!bssoj`bwjlm,!#pwzof>!ab`hdqlvmg.kwno8#`kbqpfw>vwe.;!#booltwqbmpsbqfm`z>!pwzofpkffw!#wzsf>!wf ?nfwb#kwws.frvju>!=?,psbm=?psbm#`obpp>!3!#`foopsb`jmd>!3!=8 ?,p`qjsw= ?p`qjsw#plnfwjnfp#`boofg#wkfglfp#mlw#mf`fppbqjozElq#nlqf#jmelqnbwjlmbw#wkf#afdjmmjmd#le#?"GL@WZSF#kwno=?kwnosbqwj`vobqoz#jm#wkf#wzsf>!kjggfm!#mbnf>!ibubp`qjsw9uljg+3*8!feef`wjufmfpp#le#wkf#bvwl`lnsofwf>!lee!#dfmfqbooz#`lmpjgfqfg=?jmsvw#wzsf>!wf{w!#!=?,p`qjsw= ?p`qjswwkqlvdklvw#wkf#tlqog`lnnlm#njp`lm`fswjlmbppl`jbwjlm#tjwk#wkf?,gju= ?,gju= ?gju#`gvqjmd#kjp#ojefwjnf/`lqqfpslmgjmd#wl#wkfwzsf>!jnbdf,{.j`lm!#bm#jm`qfbpjmd#mvnafqgjsolnbwj`#qfobwjlmpbqf#lewfm#`lmpjgfqfgnfwb#`kbqpfw>!vwe.;!#?jmsvw#wzsf>!wf{w!#f{bnsofp#jm`ovgf#wkf!=?jnd#pq`>!kwws9,,jsbqwj`jsbwjlm#jm#wkfwkf#fpwbaojpknfmw#le ?,gju= ?gju#`obpp>!%bns8maps8%bns8maps8wl#gfwfqnjmf#tkfwkfqrvjwf#gjeefqfmw#eqlnnbqhfg#wkf#afdjmmjmdgjpwbm`f#afwtffm#wkf`lmwqjavwjlmp#wl#wkf`lmeoj`w#afwtffm#wkftjgfoz#`lmpjgfqfg#wltbp#lmf#le#wkf#ejqpwtjwk#ubqzjmd#gfdqffpkbuf#psf`vobwfg#wkbw+gl`vnfmw-dfwFofnfmwsbqwj`jsbwjmd#jm#wkflqjdjmbooz#gfufolsfgfwb#`kbqpfw>!vwe.;!=#wzsf>!wf{w,`pp!#,= jmwfq`kbmdfbaoz#tjwknlqf#`olpfoz#qfobwfgpl`jbo#bmg#slojwj`bowkbw#tlvog#lwkfqtjpfsfqsfmgj`vobq#wl#wkfpwzof#wzsf>!wf{w,`ppwzsf>!pvanjw!#mbnf>!ebnjojfp#qfpjgjmd#jmgfufolsjmd#`lvmwqjfp`lnsvwfq#sqldqbnnjmdf`lmlnj`#gfufolsnfmwgfwfqnjmbwjlm#le#wkfelq#nlqf#jmelqnbwjlmlm#pfufqbo#l``bpjlmpslqwvdv/Fp#+Fvqlsfv*<O<V=l<\\\\={<Q=m=`<V<\\\\=o<V=l<\\\\={<Q=m=`<V<\\\\<L<R=m=m<T<U=m<V<R<U<P<\\\\=n<Y=l<T<\\\\<W<R<^<T<Q=h<R=l<P<\\\\=j<T<T=o<S=l<\\\\<^<W<Y<Q<T=c<Q<Y<R<]=i<R<X<T<P<R<T<Q=h<R=l<P<\\\\=j<T=c<t<Q=h<R=l<P<\\\\=j<T=c<L<Y=m<S=o<]<W<T<V<T<V<R<W<T=k<Y=m=n<^<R<T<Q=h<R=l<P<\\\\=j<T=b=n<Y=l=l<T=n<R=l<T<T<X<R=m=n<\\\\=n<R=k<Q<R4K5h5i4F5d4K4@4C5d5j4K5h4K4X4F4]4K5o4K4F4K5h4K5n4F4]4K4A4K4Fkwno8#`kbqpfw>VWE.;!#pfwWjnflvw+evm`wjlm+*gjpsobz9jmojmf.aol`h8?jmsvw#wzsf>!pvanjw!#wzsf#>#$wf{w,ibubp`qj?jnd#pq`>!kwws9,,ttt-!#!kwws9,,ttt-t0-lqd,pklqw`vw#j`lm!#kqfe>!!#bvwl`lnsofwf>!lee!#?,b=?,gju=?gju#`obpp>?,b=?,oj= ?oj#`obpp>!`pp!#wzsf>!wf{w,`pp!#?elqn#b`wjlm>!kwws9,,{w,`pp!#kqfe>!kwws9,,ojmh#qfo>!bowfqmbwf!# ?p`qjsw#wzsf>!wf{w,#lm`oj`h>!ibubp`qjsw9+mft#Gbwf*-dfwWjnf+*~kfjdkw>!2!#tjgwk>!2!#Sflsof$p#Qfsvaoj`#le##?b#kqfe>!kwws9,,ttt-wf{w.gf`lqbwjlm9vmgfqwkf#afdjmmjmd#le#wkf#?,gju= ?,gju= ?,gju= fpwbaojpknfmw#le#wkf#?,gju=?,gju=?,gju=?,g ujftslqwxnjm.kfjdkw9 ?p`qjsw#pq`>!kwws9,,lswjlm=?lswjlm#ubovf>lewfm#qfefqqfg#wl#bp#,lswjlm= ?lswjlm#ubov?"GL@WZSF#kwno= ?"..XJmwfqmbwjlmbo#Bjqslqw= ?b#kqfe>!kwws9,,ttt?,b=?b#kqfe>!kwws9,,t\\fTL\\fT^\\fTE\\fT^\\fUh\\fT{\\fTN\\roI\\ro|\\roL\\ro{\\roO\\rov\\rot\\nAOGx\\bTA\\nzk#+\\vUmGx*\\fHD\\fHS\\fH\\\\\\fIa\\fHJ\\fIk\\fHZ\\fHM\\fHR\\fHe\\fHD\\fH^\\fIg\\fHM\\fHy\\fIa\\fH[\\fIk\\fHH\\fIa\\fH\\\\\\fHp\\fHR\\fHD\\fHy\\fHR\\fH\\\\\\fIl\\fHT\\fHn\\fH@\\fHn\\fHK\\fHS\\fHH\\fHT\\fIa\\fHI\\fHR\\fHF\\fHD\\fHR\\fHT\\fIa\\fHY\\fIl\\fHy\\fHR\\fH\\\\\\fHT\\fHn\\fHT\\fIa\\fHy\\fH\\\\\\fHO\\fHT\\fHR\\fHB\\fH{\\fIa\\fH\\\\\\fIl\\fHv\\fHS\\fHs\\fIa\\fHL\\fIg\\fHn\\fHY\\fHS\\fHp\\fIa\\fHr\\fHR\\fHD\\fHi\\fHB\\fIk\\fH\\\\\\fHS\\fHy\\fHR\\fHY\\fHS\\fHA\\fHS\\fHD\\fIa\\fHD\\fH{\\fHR\\fHM\\fHS\\fHC\\fHR\\fHm\\fHy\\fIa\\fHC\\fIg\\fHn\\fHy\\fHS\\fHT\\fIm\\fH\\\\\\fHy\\fIa\\fH[\\fHR\\fHF\\fHU\\fIm\\fHm\\fHv\\fHH\\fIl\\fHF\\fIa\\fH\\\\\\fH@\\fHn\\fHK\\fHD\\fHs\\fHS\\fHF\\fIa\\fHF\\fHO\\fIl\\fHy\\fIa\\fH\\\\\\fHS\\fHy\\fIk\\fHs\\fHF\\fIa\\fH\\\\\\fHR\\fH\\\\\\fHn\\fHA\\fHF\\fIa\\fH\\\\\\fHR\\fHF\\fIa\\fHH\\fHB\\fHR\\fH^\\fHS\\fHy\\fIg\\fHn\\fH\\\\\\fHG\\fHP\\fIa\\fHH\\fHR\\fH\\\\\\fHD\\fHS\\fH\\\\\\fIa\\fHB\\fHR\\fHO\\fH^\\fHS\\fHB\\fHS\\fHs\\fIk\\fHMgfp`qjswjlm!#`lmwfmw>!gl`vnfmw-ol`bwjlm-sqlw-dfwFofnfmwpAzWbdMbnf+?"GL@WZSF#kwno= ?kwno#?nfwb#`kbqpfw>!vwe.;!=9vqo!#`lmwfmw>!kwws9,,-`pp!#qfo>!pwzofpkffw!pwzof#wzsf>!wf{w,`pp!=wzsf>!wf{w,`pp!#kqfe>!t0-lqd,2:::,{kwno!#{nowzsf>!wf{w,ibubp`qjsw!#nfwklg>!dfw!#b`wjlm>!ojmh#qfo>!pwzofpkffw!##>#gl`vnfmw-dfwFofnfmwwzsf>!jnbdf,{.j`lm!#,=`foosbggjmd>!3!#`foops-`pp!#wzsf>!wf{w,`pp!#?,b=?,oj=?oj=?b#kqfe>!!#tjgwk>!2!#kfjdkw>!2!!=?b#kqfe>!kwws9,,ttt-pwzof>!gjpsobz9mlmf8!=bowfqmbwf!#wzsf>!bssoj.,,T0@,,GWG#[KWNO#2-3#foopsb`jmd>!3!#`foosbg#wzsf>!kjggfm!#ubovf>!,b=%maps8?psbm#qlof>!p ?jmsvw#wzsf>!kjggfm!#obmdvbdf>!IbubP`qjsw!##gl`vnfmw-dfwFofnfmwpAd>!3!#`foopsb`jmd>!3!#zsf>!wf{w,`pp!#nfgjb>!wzsf>$wf{w,ibubp`qjsw$tjwk#wkf#f{`fswjlm#le#zsf>!wf{w,`pp!#qfo>!pw#kfjdkw>!2!#tjgwk>!2!#>$(fm`lgfVQJ@lnslmfmw+?ojmh#qfo>!bowfqmbwf!# algz/#wq/#jmsvw/#wf{wnfwb#mbnf>!qlalwp!#`lmnfwklg>!slpw!#b`wjlm>!= ?b#kqfe>!kwws9,,ttt-`pp!#qfo>!pwzofpkffw!#?,gju=?,gju=?gju#`obppobmdvbdf>!ibubp`qjsw!=bqjb.kjggfm>!wqvf!=.[?qjsw!#wzsf>!wf{w,ibubpo>38~*+*8 +evm`wjlm+*xab`hdqlvmg.jnbdf9#vqo+,b=?,oj=?oj=?b#kqfe>!k\\n\\n?oj=?b#kqfe>!kwws9,,bwlq!#bqjb.kjggfm>!wqv=#?b#kqfe>!kwws9,,ttt-obmdvbdf>!ibubp`qjsw!#,lswjlm= ?lswjlm#ubovf,gju=?,gju=?gju#`obpp>qbwlq!#bqjb.kjggfm>!wqf>+mft#Gbwf*-dfwWjnf+*slqwvdv/Fp#+gl#Aqbpjo*<R=l<_<\\\\<Q<T<[<\\\\=j<T<T<^<R<[<P<R<Z<Q<R=m=n=`<R<]=l<\\\\<[<R<^<\\\\<Q<T=c=l<Y<_<T=m=n=l<\\\\=j<T<T<^<R<[<P<R<Z<Q<R=m=n<T<R<]=c<[<\\\\=n<Y<W=`<Q<\\\\?"GL@WZSF#kwno#SVAOJ@#!mw.Wzsf!#`lmwfmw>!wf{w,?nfwb#kwws.frvju>!@lmwfqbmpjwjlmbo,,FM!#!kwws9?kwno#{nomp>!kwws9,,ttt.,,T0@,,GWG#[KWNO#2-3#WGWG,{kwno2.wqbmpjwjlmbo,,ttt-t0-lqd,WQ,{kwno2,sf#>#$wf{w,ibubp`qjsw$8?nfwb#mbnf>!gfp`qjswjlmsbqfmwMlgf-jmpfqwAfelqf?jmsvw#wzsf>!kjggfm!#mbip!#wzsf>!wf{w,ibubp`qj+gl`vnfmw*-qfbgz+evm`wjp`qjsw#wzsf>!wf{w,ibubpjnbdf!#`lmwfmw>!kwws9,,VB.@lnsbwjaof!#`lmwfmw>wno8#`kbqpfw>vwe.;!#,= ojmh#qfo>!pklqw`vw#j`lm?ojmh#qfo>!pwzofpkffw!#?,p`qjsw= ?p`qjsw#wzsf>>#gl`vnfmw-`qfbwfFofnfm?b#wbqdfw>!\\\\aobmh!#kqfe>#gl`vnfmw-dfwFofnfmwpAjmsvw#wzsf>!wf{w!#mbnf>b-wzsf#>#$wf{w,ibubp`qjmsvw#wzsf>!kjggfm!#mbnfkwno8#`kbqpfw>vwe.;!#,=gwg!= ?kwno#{nomp>!kwws.,,T0@,,GWG#KWNO#7-32#WfmwpAzWbdMbnf+$p`qjsw$*jmsvw#wzsf>!kjggfm!#mbn?p`qjsw#wzsf>!wf{w,ibubp!#pwzof>!gjpsobz9mlmf8!=gl`vnfmw-dfwFofnfmwAzJg+>gl`vnfmw-`qfbwfFofnfmw+$#wzsf>$wf{w,ibubp`qjsw$jmsvw#wzsf>!wf{w!#mbnf>!g-dfwFofnfmwpAzWbdMbnf+pmj`bo!#kqfe>!kwws9,,ttt-@,,GWG#KWNO#7-32#Wqbmpjw?pwzof#wzsf>!wf{w,`pp!= ?pwzof#wzsf>!wf{w,`pp!=jlmbo-gwg!= ?kwno#{nomp>kwws.frvju>!@lmwfmw.Wzsfgjmd>!3!#`foopsb`jmd>!3!kwno8#`kbqpfw>vwe.;!#,= #pwzof>!gjpsobz9mlmf8!=??oj=?b#kqfe>!kwws9,,ttt-#wzsf>$wf{w,ibubp`qjsw$=<X<Y=c=n<Y<W=`<Q<R=m=n<T=m<R<R=n<^<Y=n=m=n<^<T<T<S=l<R<T<[<^<R<X=m=n<^<\\\\<]<Y<[<R<S<\\\\=m<Q<R=m=n<T\\fHF\\fIm\\fHT\\fIa\\fHH\\fHS\\fHy\\fHR\\fHy\\fHR\\fHn\\fH{\\fIa\\fH\\\\\\fIk\\fHT\\fHe\\fHD\\fIa\\fHU\\fIg\\fHn\\fHD\\fIk\\fHY\\fHS\\fHK\\fHR\\fHD\\fHT\\fHA\\fHR\\fHG\\fHS\\fHy\\fIa\\fHT\\fHS\\fHn\\fH{\\fHT\\fIm\\fH\\\\\\fHy\\fIa\\fH[\\fHS\\fHH\\fHy\\fIe\\fHF\\fIl\\fH\\\\\\fHR\\fHk\\fHs\\fHY\\fHS\\fHp\\fIa\\fHr\\fHR\\fHF\\fHD\\fHy\\fHR\\fH\\\\\\fIa\\fH\\\\\\fHY\\fHR\\fHd\\fHT\\fHy\\fIa\\fH\\\\\\fHS\\fHC\\fHH\\fHR\',`۷%ƌ\'T%…\'W%×%O%g%¦&Ɠ%ǥ&>&*&\'&^&ˆŸా&ƭ&ƒ&)&^&%&\'&‚&P&1&±&3&]&m&u&E&t&C&Ï&V&V&/&>&6&ྲྀ᝼o&p&@&E&M&P&x&@&F&e&Ì&7&:&(&D&0&C&)&.&F&-&1&(&L&F&1ɞ*Ϫ⇳&፲&K&;&)&E&H&P&0&?&9&V&&-&v&a&,&E&)&?&=&\'&\'&B&മ&ԃ&̖*&*8&%&%&&&%,)&š&>&†&7&]&F&2&>&J&6&n&2&%&?&Ž&2&6&J&g&-&0&,&*&J&*&O&)&6&(&<&B&N&.&P&@&2&.&W&M&%Լ„(,(<&,&Ϛ&ᣇ&-&,(%&(&%&(Ļ0&X&D&&j&\'&J&(&.&B&3&Z&R&h&3&E&E&<Æ-͠ỳ&%8?&@&,&Z&@&0&J&,&^&x&_&6&C&6&Cܬ⨥&f&-&-&-&-&,&J&2&8&z&8&C&Y&8&-&d&ṸÌ-&7&1&F&7&t&W&7&I&.&.&^&=ྜ᧓&8(>&/&/&ݻ\')\'ၥ\')\'%@/&0&%оী*&*@&CԽהɴ׫4෗ܚӑ6඄&/Ÿ̃Z&*%ɆϿ&Ĵ&1¨ҴŴ`,Re,`AAAAKKLLKKKKKJJIHHIHHGGFF`),Fe(Le,Re);function ze(e){this.data=new Int8Array,this.offset=0,this.data=e}function Be(e,t,n,r){if(e.input===null)return-1;let i=e.input,a=Math.min(i.offset+r,i.data.length),o=a-i.offset;return t.set(i.data.subarray(i.offset,a),n),i.offset+=o,o}function Ve(e){e.input=new ze(new Int8Array)}function He(e){let t=e.length,n=new Int8Array(t);for(let r=0;r<t;++r)n[r]=e.charCodeAt(r);return n}function Ue(e){let t=e.length,n=new Int32Array(t);for(let r=0;r<t;++r)n[r]=e.charCodeAt(r);return n}function We(e,t){if(t>=0)return t;throw e.runningState>=0&&(e.runningState=t),Error(`Brotli error code: `+t)}function Ge(e,t){let n=new Ne;if(n.input=new ze(e),g(n),t){let e=t.customDictionary;e&&h(n,e)}let r=0,i=[];for(;;){let e=new Int8Array(16384);if(i.push(e),n.output=e,n.outputOffset=0,n.outputLength=16384,n.outputUsed=0,fe(n),r+=n.outputUsed,n.outputUsed<16384)break}_(n),Ve(n);let a=new Int8Array(r),o=0;for(let e=0;e<i.length;++e){let t=i[e],n=Math.min(r,o+16384)-o;n<16384?a.set(t.subarray(0,n),o):a.set(t,o),o+=n}return a}return Ge})();var Lr=class extends Fn{#e=!0;constructor(e,t){super(t),this.stream=e,this.dict=e.dict}readBlock(){let e=this.stream.getBytes(),t=Ir(new Int8Array(e.buffer,e.byteOffset,e.length));this.buffer=new Uint8Array(t.buffer,t.byteOffset,t.length),this.bufferLength=this.buffer.length,this.eof=!0}async getImageData(e,t){let n=await this.asyncGetBytes();return n?n.length<=e?n:n.subarray(0,e):this.getBytes(e)}async asyncGetBytes(){let{decompressed:e,compressed:t}=await this.asyncGetBytesFromDecompressionStream(`brotli`);return e||(this.#e=!1,this.stream=new Cn(t,0,t.length,this.stream.dict),this.reset(),null)}get isAsync(){return this.#e}};async function Rr(e={}){var t,n=e,r=!0,i=!1,a=(e,t)=>{throw t},o=self.location.href;if(r||i)try{new URL(`.`,o).href}catch{}console.log.bind(console);var s=console.error.bind(console),c=!1,l,u,d,f,p,m=!1;function h(){var e=me.buffer;f=new Int8Array(e),new Int16Array(e),p=new Uint8Array(e),new Uint16Array(e),new Int32Array(e),new Uint32Array(e),new Float32Array(e),new Float64Array(e),new BigInt64Array(e),new BigUint64Array(e)}function g(){if(n.preRun)for(typeof n.preRun==`function`&&(n.preRun=[n.preRun]);n.preRun.length;)D(n.preRun.shift());C(E)}function _(){m=!0,ve.j()}function v(){if(n.postRun)for(typeof n.postRun==`function`&&(n.postRun=[n.postRun]);n.postRun.length;)T(n.postRun.shift());C(w)}function y(e){n.onAbort?.(e),e=`Aborted(`+e+`)`,s(e),c=!0,e+=`. Build with -sASSERTIONS for more info.`;var t=new WebAssembly.RuntimeError(e);throw d?.(t),t}function b(){return{a:ge}}async function x(){function e(e,t){return ve=e.exports,he(ve),h(),ve}var t=b();return new Promise((r,i)=>{n.instantiateWasm(t,(t,n)=>{r(e(t,n))})})}class S{name=`ExitStatus`;constructor(e){this.message=`Program terminated with exit(${e})`,this.status=e}}var C=e=>{for(;e.length>0;)e.shift()(n)},w=[],T=e=>w.push(e),E=[],D=e=>E.push(e),O=!0,ee=()=>y(``),te=0,ne=()=>{O=!1,te=0},k={},A=e=>{if(e instanceof S||e==`unwind`)return l;a(1,e)},j=()=>O||te>0,M=e=>{l=e,j()||(n.onExit?.(e),c=!0),a(e,new S(e))},N=(e,t)=>{l=e,M(e)},re=()=>{if(!j())try{N(l)}catch(e){A(e)}},ie=e=>{if(!c)try{return e()}catch(e){A(e)}finally{re()}},ae=()=>performance.now(),P=(e,t)=>(k[e]&&(clearTimeout(k[e].id),delete k[e]),t&&(k[e]={id:setTimeout(()=>{delete k[e],ie(()=>pe(e,ae()))},t),timeout_ms:t}),0);function oe(e){n.imageData=new Uint8Array(e)}var se=()=>2147483648,ce=(e,t)=>Math.ceil(e/t)*t,le=e=>{var t=(e-me.buffer.byteLength+65535)/65536|0;try{return me.grow(t),h(),1}catch{}},ue=e=>{var t=p.length;e>>>=0;var n=se();if(e>n)return!1;for(var r=1;r<=4;r*=2){var i=t*(1+.2/r);if(i=Math.min(i,e+100663296),le(Math.min(n,ce(Math.max(e,i),65536))))return!0}return!1};function F(e,t,r,i){if(r===t){n.imageData=new Uint8ClampedArray(p.subarray(e,e+r*i));return}let a=t*i,o=n.imageData=new Uint8ClampedArray(a);for(let n=e,i=0;i<a;n+=r,i+=t)o.set(p.subarray(n,n+t),i)}function de(e,t,r){n.imageData.set(p.subarray(e,e+t),r)}var fe=(e,t)=>{f.set(e,t)};if(n.noExitRuntime&&(O=n.noExitRuntime),n.print&&n.print,n.printErr&&(s=n.printErr),n.wasmBinary&&n.wasmBinary,n.arguments&&n.arguments,n.thisProgram&&n.thisProgram,n.preInit)for(typeof n.preInit==`function`&&(n.preInit=[n.preInit]);n.preInit.length>0;)n.preInit.shift()();n.writeArrayToMemory=fe;var pe,me;function he(e){n._malloc=e.k,n._free=e.l,n._jbig2_decode=e.m,n._ccitt_decode=e.n,pe=e.o,me=e.i,e.__indirect_function_table}var ge={e:ee,b:ne,c:P,g:oe,d:ue,a:M,h:F,f:de};function _e(){g();function e(){n.calledRun=!0,!c&&(_(),u?.(n),n.onRuntimeInitialized?.(),v())}n.setStatus?(n.setStatus(`Running...`),setTimeout(()=>{setTimeout(()=>n.setStatus(``),1),e()},1)):e()}var ve=await x();return _e(),t=m?n:new Promise((e,t)=>{u=e,d=t}),t}let zr=Rr;var Br=class e{static#e=null;static#t=new Set;static#n=!0;static#r=!0;static#i=null;#a=null;#o=null;_filename=null;_noWasmFilename=null;static setOptions({handler:t,useWasm:n,useWorkerFetch:r,wasmUrl:i}){e.#n=n,e.#r=r,e.#i=i,r||(e.#e=t)}static get instance(){M("Abstract getter `instance` accessed")}static cleanup(){for(let t of e.#t)t.#o=null}constructor(t=!1){t&&e.#t.add(this)}async#s(t){let n=null;try{n=(await import(`${e.#i}${this._noWasmFilename}`)).default()}catch(e){j(`#getJsModule: ${e}`)}t(n)}async#c(t,n,r){try{return this.#a||(e.#r?this.#a=await at(`${e.#i}${this._filename}`):this.#a=await e.#e.sendWithPromise(`FetchBinaryData`,{kind:`wasmUrl`,filename:this._filename})),r((await WebAssembly.instantiate(this.#a,n)).instance)}catch(e){return j(`#instantiateWasm: ${e}`),this.#s(t),null}}_getModule(t){if(!this.#o){let{promise:n,resolve:r}=Promise.withResolvers(),i=[n];e.#n?i.push(t({warn:j,instantiateWasm:this.#c.bind(this,r)})):this.#s(r),this.#o=Promise.race(i)}return this.#o}async decode(e,t){M("Abstract method `decode` called")}},Vr=class extends oe{constructor(e){super(e,`Jbig2Error`)}},Hr=class e extends Br{_filename=`jbig2.wasm`;_noWasmFilename=`jbig2_nowasm_fallback.js`;static get instance(){return P(this,`instance`,new e(!0))}async decode(e,t,n,r,i){let a=await this._getModule(zr);if(!a)throw new Vr(`JBig2 failed to initialize`);let o,s;try{let c=e.length;if(o=a._malloc(c),a.writeArrayToMemory(e,o),i)a._ccitt_decode(o,c,t,n,i.K,+!!i.EndOfLine,+!!i.EncodedByteAlign,+!!i.BlackIs1,i.Columns,i.Rows);else{let e=r?r.length:0;e>0&&(s=a._malloc(e),a.writeArrayToMemory(r,s)),a._jbig2_decode(o,c,t,n,s,e)}if(!a.imageData)throw new Vr(`Unknown error`);let{imageData:l}=a;return a.imageData=null,l}finally{o&&a._free(o),s&&a._free(s)}}},Ur=class extends Fn{constructor(e,t,n){super(t),this.stream=e,this.maybeLength=t,this.dict=e.dict,n instanceof L||(n=L.empty),this.params={K:n.get(`K`)||0,EndOfLine:!!n.get(`EndOfLine`),EncodedByteAlign:!!n.get(`EncodedByteAlign`),Columns:n.get(`Columns`)||1728,Rows:n.get(`Rows`)||0,EndOfBlock:!!(n.get(`EndOfBlock`)??!0),BlackIs1:!!n.get(`BlackIs1`)}}get bytes(){return P(this,`bytes`,this.stream.getBytes(this.maybeLength))}get isImageStream(){return!0}get isAsyncDecoder(){return!0}async decodeImage(e,t,n){return this.eof?this.buffer:(e||=this.stream.isAsync&&await this.stream.asyncGetBytes()||this.bytes,this.buffer=await Hr.instance.decode(e,this.dict.get(`W`,`Width`),this.dict.get(`H`,`Height`),null,this.params),this.bufferLength=this.buffer.length,this.eof=!0,this.buffer)}};let Wr=new Int32Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Gr=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]),Kr=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]),qr=[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],Jr=[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];var Yr=class extends Fn{#e=!0;constructor(e,t){super(t),this.stream=e,this.dict=e.dict;let n=e.getByte(),r=e.getByte();if(n===-1||r===-1)throw new F(`Invalid header in flate stream: ${n}, ${r}`);if((n&15)!=8)throw new F(`Unknown compression method in flate stream: ${n}, ${r}`);if(((n<<8)+r)%31!=0)throw new F(`Bad FCHECK in flate stream: ${n}, ${r}`);if(r&32)throw new F(`FDICT bit set in flate stream: ${n}, ${r}`);this.codeSize=0,this.codeBuf=0}async getImageData(e,t){let n=await this.asyncGetBytes();return n?n.length<=e?n:n.subarray(0,e):this.getBytes(e)}async asyncGetBytes(){let{decompressed:e,compressed:t}=await this.asyncGetBytesFromDecompressionStream(`deflate`);return e||(this.#e=!1,this.stream=new Cn(t,2,t.length,this.stream.dict),this.reset(),null)}get isAsync(){return this.#e}getBits(e){let t=this.stream,n=this.codeSize,r=this.codeBuf,i;for(;n<e;){if((i=t.getByte())===-1)throw new F(`Bad encoding in flate stream`);r|=i<<n,n+=8}return i=r&(1<<e)-1,this.codeBuf=r>>e,this.codeSize=n-=e,i}getCode(e){let t=this.stream,n=e[0],r=e[1],i=this.codeSize,a=this.codeBuf,o;for(;i<r&&(o=t.getByte())!==-1;)a|=o<<i,i+=8;let s=n[a&(1<<r)-1],c=s>>16,l=s&65535;if(c<1||i<c)throw new F(`Bad encoding in flate stream`);return this.codeBuf=a>>c,this.codeSize=i-c,l}generateHuffmanTable(e){let t=e.length,n=0,r;for(r=0;r<t;++r)e[r]>n&&(n=e[r]);let i=1<<n,a=new Int32Array(i);for(let o=1,s=0,c=2;o<=n;++o,s<<=1,c<<=1)for(let n=0;n<t;++n)if(e[n]===o){let e=0,t=s;for(r=0;r<o;++r)e=e<<1|t&1,t>>=1;for(r=e;r<i;r+=c)a[r]=o<<16|n;++s}return[a,n]}#t(e){A(e),this.eof=!0}readBlock(){let e,t,n,r=this.stream;try{t=this.getBits(3)}catch(e){this.#t(e.message);return}if(t&1&&(this.eof=!0),t>>=1,t===0){let t;if((t=r.getByte())===-1){this.#t(`Bad block header in flate stream`);return}let n=t;if((t=r.getByte())===-1){this.#t(`Bad block header in flate stream`);return}if(n|=t<<8,(t=r.getByte())===-1){this.#t(`Bad block header in flate stream`);return}let i=t;if((t=r.getByte())===-1){this.#t(`Bad block header in flate stream`);return}if(i|=t<<8,i!==(~n&65535)&&(n!==0||i!==0))throw new F(`Bad uncompressed block length in flate stream`);this.codeBuf=0,this.codeSize=0;let a=this.bufferLength,o=a+n;if(e=this.ensureBuffer(o),this.bufferLength=o,n===0)r.peekByte()===-1&&(this.eof=!0);else{let t=r.getBytes(n);e.set(t,a),t.length<n&&(this.eof=!0)}return}let i,a;if(t===1)i=qr,a=Jr;else if(t===2){let e=this.getBits(5)+257,t=this.getBits(5)+1,r=this.getBits(4)+4,o=new Uint8Array(Wr.length),s;for(s=0;s<r;++s)o[Wr[s]]=this.getBits(3);let c=this.generateHuffmanTable(o);n=0,s=0;let l=e+t,u=new Uint8Array(l),d,f,p;for(;s<l;){let e=this.getCode(c);if(e===16)d=2,f=3,p=n;else if(e===17)d=3,f=3,p=n=0;else if(e===18)d=7,f=11,p=n=0;else{u[s++]=n=e;continue}let t=this.getBits(d)+f;for(;t-- >0;)u[s++]=p}i=this.generateHuffmanTable(u.subarray(0,e)),a=this.generateHuffmanTable(u.subarray(e,l))}else throw new F(`Unknown block type in flate stream`);e=this.buffer;let o=e?e.length:0,s=this.bufferLength;for(;;){let t=this.getCode(i);if(t<256){s+1>=o&&(e=this.ensureBuffer(s+1),o=e.length),e[s++]=t;continue}if(t===256){this.bufferLength=s;return}t-=257,t=Gr[t];let r=t>>16;r>0&&(r=this.getBits(r)),n=(t&65535)+r,t=this.getCode(a),t=Kr[t],r=t>>16,r>0&&(r=this.getBits(r));let c=(t&65535)+r;s+n>=o&&(e=this.ensureBuffer(s+n),o=e.length);for(let t=0;t<n;++t,++s)e[s]=e[s-c]}}},Xr=class extends Fn{constructor(e,t,n){super(t),this.stream=e,this.dict=e.dict,this.maybeLength=t,this.params=n}get bytes(){return P(this,`bytes`,this.stream.getBytes(this.maybeLength))}ensureBuffer(e){}get isAsyncDecoder(){return!0}get isImageStream(){return!0}async decodeImage(e,t,n){if(this.eof)return this.buffer;e||=this.bytes;let r=null;if(this.params instanceof L){let e=this.params.get(`JBIG2Globals`);e instanceof Ve&&(r=e.getBytes())}return this.buffer=await Hr.instance.decode(e,this.dict.get(`Width`),this.dict.get(`Height`),r),this.bufferLength=this.buffer.length,this.eof=!0,this.buffer}get canAsyncDecodeImageFromBuffer(){return this.stream.isAsync}};async function Zr(e={}){var t,n=e,r=!0,i=!1,a=`./this.program`,o=(e,t)=>{throw t},s=self.location.href;if(r||i)try{new URL(`.`,s).href}catch{}var c=console.log.bind(console),l=console.error.bind(console),u=!1,d,f,p,m=!1;function h(){var e=Ge.buffer;E=new Int8Array(e),C=new Int16Array(e),k=new Uint8Array(e),ee=new Uint16Array(e),w=new Int32Array(e),te=new Uint32Array(e),D=new Float32Array(e),O=new Float64Array(e),T=new BigInt64Array(e),ne=new BigUint64Array(e)}function g(){if(n.preRun)for(typeof n.preRun==`function`&&(n.preRun=[n.preRun]);n.preRun.length;)re(n.preRun.shift());A(N)}function _(){m=!0,Ye.s()}function v(){if(n.postRun)for(typeof n.postRun==`function`&&(n.postRun=[n.postRun]);n.postRun.length;)M(n.postRun.shift());A(j)}function y(e){n.onAbort?.(e),e=`Aborted(${e})`,l(e),u=!0,e+=`. Build with -sASSERTIONS for more info.`;var t=new WebAssembly.RuntimeError(e);throw p?.(t),t}function b(){return{a:qe}}async function x(){function e(e,t){return Ye=e.exports,Ke(Ye),h(),Ye}var t=b();return new Promise((r,i)=>{n.instantiateWasm(t,(t,n)=>{r(e(t,n))})})}class S{name=`ExitStatus`;constructor(e){this.message=`Program terminated with exit(${e})`,this.status=e}}var C,w,T,E,D,O,ee,te,ne,k,A=e=>{for(;e.length>0;)e.shift()(n)},j=[],M=e=>j.push(e),N=[],re=e=>N.push(e),ie=!0,ae=()=>y(``),P=0,oe=()=>{ie=!1,P=0},se={},ce=e=>{if(e instanceof S||e==`unwind`)return d;o(1,e)},le=()=>ie||P>0,ue=e=>{d=e,le()||(n.onExit?.(e),u=!0),o(e,new S(e))},F=(e,t)=>{d=e,ue(e)},de=()=>{if(!le())try{F(d)}catch(e){ce(e)}},fe=e=>{if(!u)try{return e()}catch(e){ce(e)}finally{de()}},pe=()=>performance.now(),me=(e,t)=>(se[e]&&(clearTimeout(se[e].id),delete se[e]),t&&(se[e]={id:setTimeout(()=>{delete se[e],fe(()=>We(e,pe()))},t),timeout_ms:t}),0);function he(e,t){e>>=2;let r=n.imageData=new Uint8ClampedArray(t),i=w.subarray(e,e+t);r.set(i)}function ge(e,t,r,i){e>>=2,t>>=2,r>>=2;let a=n.imageData=new Uint8ClampedArray(i*3),o=w.subarray(e,e+i),s=w.subarray(t,t+i),c=w.subarray(r,r+i);for(let e=0;e<i;e++)a[3*e]=o[e],a[3*e+1]=s[e],a[3*e+2]=c[e]}function _e(e,t,r,i,a){e>>=2,t>>=2,r>>=2,i>>=2;let o=n.imageData=new Uint8ClampedArray(a*4),s=w.subarray(e,e+a),c=w.subarray(t,t+a),l=w.subarray(r,r+a),u=w.subarray(i,i+a);for(let e=0;e<a;e++)o[4*e]=s[e],o[4*e+1]=c[e],o[4*e+2]=l[e],o[4*e+3]=u[e]}var ve=()=>2147483648,ye=(e,t)=>Math.ceil(e/t)*t,be=e=>{var t=(e-Ge.buffer.byteLength+65535)/65536|0;try{return Ge.grow(t),h(),1}catch{}},xe=e=>{var t=k.length;e>>>=0;var n=ve();if(e>n)return!1;for(var r=1;r<=4;r*=2){var i=t*(1+.2/r);if(i=Math.min(i,e+100663296),be(Math.min(n,ye(Math.max(e,i),65536))))return!0}return!1},Se={},Ce=()=>a||`./this.program`,we=()=>{if(!we.strings){var e={USER:`web_user`,LOGNAME:`web_user`,PATH:`/`,PWD:`/`,HOME:`/home/web_user`,LANG:(globalThis.navigator?.language??`C`).replace(`-`,`_`)+`.UTF-8`,_:Ce()};for(var t in Se)Se[t]===void 0?delete e[t]:e[t]=Se[t];var n=[];for(var t in e)n.push(`${t}=${e[t]}`);we.strings=n}return we.strings},Te=(e,t,n,r)=>{if(!(r>0))return 0;for(var i=n,a=n+r-1,o=0;o<e.length;++o){var s=e.codePointAt(o);if(s<=127){if(n>=a)break;t[n++]=s}else if(s<=2047){if(n+1>=a)break;t[n++]=192|s>>6,t[n++]=128|s&63}else if(s<=65535){if(n+2>=a)break;t[n++]=224|s>>12,t[n++]=128|s>>6&63,t[n++]=128|s&63}else{if(n+3>=a)break;t[n++]=240|s>>18,t[n++]=128|s>>12&63,t[n++]=128|s>>6&63,t[n++]=128|s&63,o++}}return t[n]=0,n-i},Ee=(e,t,n)=>Te(e,k,t,n),De=(e,t)=>{var n=0,r=0;for(var i of we()){var a=t+n;te[e+r>>2]=a,n+=Ee(i,a,1/0)+1,r+=4}return 0},Oe=e=>{for(var t=0,n=0;n<e.length;++n){var r=e.charCodeAt(n);r<=127?t++:r<=2047?t+=2:r>=55296&&r<=57343?(t+=4,++n):t+=3}return t},ke=(e,t)=>{var n=we();te[e>>2]=n.length;var r=0;for(var i of n)r+=Oe(i)+1;return te[t>>2]=r,0},Ae=9007199254740992,je=-9007199254740992,Me=e=>e<je||e>Ae?NaN:Number(e);function I(e,t,n,r){return t=Me(t),70}var Ne=[null,[],[]],Pe=globalThis.TextDecoder&&new TextDecoder,L=(e,t,n,r)=>{var i=t+n;if(r)return i;for(;e[t]&&!(t>=i);)++t;return t},R=(e,t=0,n,r)=>{var i=L(e,t,n,r);if(i-t>16&&e.buffer&&Pe)return Pe.decode(e.subarray(t,i));for(var a=``;t<i;){var o=e[t++];if(!(o&128)){a+=String.fromCharCode(o);continue}var s=e[t++]&63;if((o&224)==192){a+=String.fromCharCode((o&31)<<6|s);continue}var c=e[t++]&63;if(o=(o&240)==224?(o&15)<<12|s<<6|c:(o&7)<<18|s<<12|c<<6|e[t++]&63,o<65536)a+=String.fromCharCode(o);else{var l=o-65536;a+=String.fromCharCode(55296|l>>10,56320|l&1023)}}return a},Fe=(e,t)=>{var n=Ne[e];t===0||t===10?((e===1?c:l)(R(n)),n.length=0):n.push(t)},Ie=(e,t,n)=>e?R(k,e,t,n):``,Le=(e,t,n,r)=>{for(var i=0,a=0;a<n;a++){var o=te[t>>2],s=te[t+4>>2];t+=8;for(var c=0;c<s;c++)Fe(e,k[o+c]);i+=s}return te[r>>2]=i,0};function Re(e,t){e>>=2;let r=n.imageData=new Uint8ClampedArray(t*4),i=w.subarray(e,e+t);for(let e=0;e<t;e++)r[4*e]=r[4*e+1]=r[4*e+2]=i[e],r[4*e+3]=255}function ze(e,t,r){e>>=2,t>>=2;let i=n.imageData=new Uint8ClampedArray(r*4),a=w.subarray(e,e+r),o=w.subarray(t,t+r);for(let e=0;e<r;e++)i[4*e]=i[4*e+1]=i[4*e+2]=a[e],i[4*e+3]=o[e]}function Be(e){let t=Ie(e);(n.warn||console.warn)(`OpenJPEG: ${t}`)}function Ve(e,t,r,i){e>>=2,t>>=2,r>>=2;let a=n.imageData=new Uint8ClampedArray(i*4),o=w.subarray(e,e+i),s=w.subarray(t,t+i),c=w.subarray(r,r+i);for(let e=0;e<i;e++)a[4*e]=o[e],a[4*e+1]=s[e],a[4*e+2]=c[e],a[4*e+3]=255}function He(e){let t=Ie(e);n.errorMessages?n.errorMessages+=`\n`+t:n.errorMessages=t}var Ue=(e,t)=>{E.set(e,t)};if(n.noExitRuntime&&(ie=n.noExitRuntime),n.print&&(c=n.print),n.printErr&&(l=n.printErr),n.wasmBinary&&n.wasmBinary,n.arguments&&n.arguments,n.thisProgram&&(a=n.thisProgram),n.preInit)for(typeof n.preInit==`function`&&(n.preInit=[n.preInit]);n.preInit.length>0;)n.preInit.shift()();n.writeArrayToMemory=Ue;var We,Ge;function Ke(e){n._malloc=e.t,n._free=e.u,n._jp2_decode=e.v,We=e.w,Ge=e.r,e.__indirect_function_table}var qe={m:ae,l:oe,i:me,f:he,e:ge,d:_e,j:xe,o:De,p:ke,n:I,b:Le,q:Re,h:ze,c:Be,k:ue,g:Ve,a:He};function Je(){g();function e(){n.calledRun=!0,!u&&(_(),f?.(n),n.onRuntimeInitialized?.(),v())}n.setStatus?(n.setStatus(`Running...`),setTimeout(()=>{setTimeout(()=>n.setStatus(``),1),e()},1)):e()}var Ye=await x();return Je(),t=m?n:new Promise((e,t)=>{f=e,p=t}),t}let Qr=Zr;var $r=class extends oe{constructor(e){super(e,`JpxError`)}},ei=class e extends Br{_filename=`openjpeg.wasm`;_noWasmFilename=`openjpeg_nowasm_fallback.js`;static get instance(){return P(this,`instance`,new e(!0))}async decode(e,{numComponents:t=4,isIndexedColormap:n=!1,smaskInData:r=!1,reducePower:i=0}={}){let a=await this._getModule(Qr);if(!a)throw new $r(`OpenJPEG failed to initialize`);let o;try{let s=e.length;if(o=a._malloc(s),a.writeArrayToMemory(e,o),a._jp2_decode(o,s,t>0?t:0,!!n,!!r,i)){let{errorMessages:e}=a;throw e?(delete a.errorMessages,new $r(e)):new $r(`Unknown error`)}let{imageData:c}=a;return a.imageData=null,c}finally{o&&a._free(o)}}static parseImageProperties(e){let t=e.getByte();for(;t>=0;){let n=t;if(t=e.getByte(),(n<<8|t)==65361){e.skip(4);let t=e.getInt32()>>>0,n=e.getInt32()>>>0,r=e.getInt32()>>>0,i=e.getInt32()>>>0;e.skip(16);let a=e.getUint16();return{width:t-r,height:n-i,bitsPerComponent:8,componentsCount:a}}}throw new $r(`No size marker found in JPX stream`)}},ti=class extends Fn{constructor(e,t){super(t),this.stream=e,this.dict=e.dict,this.maybeLength=t}get bytes(){return P(this,`bytes`,this.stream.getBytes(this.maybeLength))}ensureBuffer(e){}get isAsyncDecoder(){return!0}async decodeImage(e,t,n){return this.eof?this.buffer:(e||=this.bytes,this.buffer=await ei.instance.decode(e,n),this.bufferLength=this.buffer.length,this.eof=!0,this.buffer)}get canAsyncDecodeImageFromBuffer(){return this.stream.isAsync}get isImageStream(){return!0}},ni=class extends Fn{constructor(e,t,n){super(t),this.stream=e,this.dict=e.dict,this.cachedData=0,this.bitsCached=0;let r=4096,i={earlyChange:n,codeLength:9,nextCode:258,dictionaryValues:new Uint8Array(r),dictionaryLengths:new Uint16Array(r),dictionaryPrevCodes:new Uint16Array(r),currentSequence:new Uint8Array(r),currentSequenceLength:0};for(let e=0;e<256;++e)i.dictionaryValues[e]=e,i.dictionaryLengths[e]=1;this.lzwState=i}readBits(e){let t=this.bitsCached,n=this.cachedData;for(;t<e;){let e=this.stream.getByte();if(e===-1)return this.eof=!0,null;n=n<<8|e,t+=8}return this.bitsCached=t-=e,this.cachedData=n,n>>>t&(1<<e)-1}readBlock(){let e=512*2,t,n,r,i=this.lzwState;if(!i)return;let a=i.earlyChange,o=i.nextCode,s=i.dictionaryValues,c=i.dictionaryLengths,l=i.dictionaryPrevCodes,u=i.codeLength,d=i.prevCode,f=i.currentSequence,p=i.currentSequenceLength,m=0,h=this.bufferLength,g=this.ensureBuffer(this.bufferLength+e);for(t=0;t<512;t++){let t=this.readBits(u),i=p>0;if(t<256)f[0]=t,p=1;else if(t>=258)if(t<o)for(p=c[t],n=p-1,r=t;n>=0;n--)f[n]=s[r],r=l[r];else f[p++]=f[0];else if(t===256){u=9,o=258,p=0;continue}else{this.eof=!0,delete this.lzwState;break}if(i&&(l[o]=d,c[o]=c[d]+1,s[o]=f[0],o++,u=o+a&o+a-1?u:Math.min(Math.log(o+a)/.6931471805599453+1,12)|0),d=t,m+=p,e<m){do e+=512;while(e<m);g=this.ensureBuffer(this.bufferLength+e)}for(n=0;n<p;n++)g[h++]=f[n]}i.nextCode=o,i.codeLength=u,i.prevCode=d,i.currentSequenceLength=p,this.bufferLength=h}},ri=class extends Fn{constructor(e,t,n){if(super(t),!(n instanceof L))return e;let r=this.predictor=n.get(`Predictor`)||1;if(r<=1)return e;if(r!==2&&(r<10||r>15))throw new F(`Unsupported predictor: ${r}`);this.readBlock=r===2?this.readBlockTiff:this.readBlockPng,this.stream=e,this.dict=e.dict;let i=this.colors=n.get(`Colors`)||1,a=this.bits=n.get(`BPC`,`BitsPerComponent`)||8,o=this.columns=n.get(`Columns`)||1;return this.pixBytes=i*a+7>>3,this.rowBytes=o*i*a+7>>3,this}readBlockTiff(){let e=this.rowBytes,t=this.bufferLength,n=this.ensureBuffer(t+e),r=this.bits,i=this.colors,a=this.stream.getBytes(e);if(this.eof=!a.length,this.eof)return;let o=0,s=0,c=0,l=0,u=t,d;if(r===1&&i===1)for(d=0;d<e;++d){let e=a[d]^o;e^=e>>1,e^=e>>2,e^=e>>4,o=(e&1)<<7,n[u++]=e}else if(r===8){for(d=0;d<i;++d)n[u++]=a[d];for(;d<e;++d)n[u]=n[u-i]+a[d],u++}else if(r===16){let t=i*2;for(d=0;d<t;++d)n[u++]=a[d];for(;d<e;d+=2){let e=((a[d]&255)<<8)+(a[d+1]&255)+((n[u-t]&255)<<8)+(n[u-t+1]&255);n[u++]=e>>8&255,n[u++]=e&255}}else{let e=new Uint8Array(i+1),u=(1<<r)-1,f=0,p=t,m=this.columns;for(d=0;d<m;++d)for(let t=0;t<i;++t)c<r&&(o=o<<8|a[f++]&255,c+=8),e[t]=e[t]+(o>>c-r)&u,c-=r,s=s<<r|e[t],l+=r,l>=8&&(n[p++]=s>>l-8&255,l-=8);l>0&&(n[p++]=(s<<8-l)+(o&(1<<8-l)-1))}this.bufferLength+=e}readBlockPng(){let e=this.rowBytes,t=this.pixBytes,n=this.stream.getByte(),r=this.stream.getBytes(e);if(this.eof=!r.length,this.eof)return;let i=this.bufferLength,a=this.ensureBuffer(i+e),o=a.subarray(i-e,i);o.length===0&&(o=new Uint8Array(e));let s,c=i,l,u;switch(n){case 0:for(s=0;s<e;++s)a[c++]=r[s];break;case 1:for(s=0;s<t;++s)a[c++]=r[s];for(;s<e;++s)a[c]=a[c-t]+r[s]&255,c++;break;case 2:for(s=0;s<e;++s)a[c++]=o[s]+r[s]&255;break;case 3:for(s=0;s<t;++s)a[c++]=(o[s]>>1)+r[s];for(;s<e;++s)a[c]=(o[s]+a[c-t]>>1)+r[s]&255,c++;break;case 4:for(s=0;s<t;++s)l=o[s],u=r[s],a[c++]=l+u;for(;s<e;++s){l=o[s];let e=o[s-t],n=a[c-t],i=n+l-e,d=i-n;d<0&&(d=-d);let f=i-l;f<0&&(f=-f);let p=i-e;p<0&&(p=-p),u=r[s],d<=f&&d<=p?a[c++]=n+u:f<=p?a[c++]=l+u:a[c++]=e+u}break;default:throw new F(`Unsupported predictor: ${n}`)}this.bufferLength+=e}},ii=class extends Fn{constructor(e,t){super(t),this.stream=e,this.dict=e.dict}readBlock(){let e=this.stream.getBytes(2);if(!e||e.length<2||e[0]===128){this.eof=!0;return}let t,n=this.bufferLength,r=e[0];if(r<128){if(t=this.ensureBuffer(n+r+1),t[n++]=e[1],r>0){let e=this.stream.getBytes(r);t.set(e,n),n+=r}}else r=257-r,t=this.ensureBuffer(n+r+1),t.fill(e[1],n,n+r),n+=r;this.bufferLength=n}};function ai(e){let t=[],n=e.length,r=0;for(;r<n-1;)t.push(e[r++]<<8|e[r++]);return r<n&&t.push(e[r]),n+`_`+String.fromCharCode.apply(null,t)}var oi=class{constructor({lexer:e,xref:t,allowStreams:n=!1,recoveryMode:r=!1}){this.lexer=e,this.xref=t,this.allowStreams=n,this.recoveryMode=r,this.imageCache=Object.create(null),this._imageId=0,this.refill()}refill(){this.buf1=this.lexer.getObj(),this.buf2=this.lexer.getObj()}shift(){this.buf2 instanceof Ne&&this.buf2.cmd===`ID`?(this.buf1=this.buf2,this.buf2=null):(this.buf1=this.buf2,this.buf2=this.lexer.getObj())}tryShift(){try{return this.shift(),!0}catch(e){if(e instanceof et)throw e;return!1}}getObj(e=null){let t=this.buf1;if(this.shift(),t instanceof Ne)switch(t.cmd){case`BI`:return this.makeInlineImage(e);case`[`:let n=[];for(;!Re(this.buf1,`]`)&&this.buf1!==Oe;)n.push(this.getObj(e));if(this.buf1===Oe){if(this.recoveryMode)return n;throw new tt(`End of file inside array.`)}return this.shift(),n;case`<<`:let r=new L(this.xref);for(;!Re(this.buf1,`>>`)&&this.buf1!==Oe;){if(!(this.buf1 instanceof I)){A(`Malformed dictionary: key must be a name object`),this.shift();continue}let t=this.buf1.name;if(this.shift(),this.buf1===Oe)break;r.set(t,this.getObj(e))}if(this.buf1===Oe){if(this.recoveryMode)return r;throw new tt(`End of file inside dictionary.`)}return Re(this.buf2,`stream`)?this.allowStreams?this.makeStream(r,e):r:(this.shift(),r);default:return t}if(Number.isInteger(t)){if(Number.isInteger(this.buf1)&&Re(this.buf2,`R`)){let e=R.get(t,this.buf1);return this.shift(),this.shift(),e}return t}return typeof t==`string`&&e?e.decryptString(t):t}findDefaultInlineStreamEnd(e){let{knownCommands:t}=this.lexer,n=e.pos,r=0,i,a;for(;(i=e.getByte())!==-1;)if(r===0)r=+(i===69);else if(r===1)r=i===73?2:0;else if(i===32||i===10||i===13){a=e.pos;let n=e.peekBytes(15),o=n.length;if(o===0)break;for(let e=0;e<o;e++)if(i=n[e],!(i===0&&n[e+1]!==0)&&i!==10&&i!==13&&(i<32||i>127)){r=0;break}if(r!==2)continue;if(!t){j("findDefaultInlineStreamEnd - `lexer.knownCommands` is undefined.");continue}let s=new li(new Cn(e.peekBytes(75)),t);s._hexStringWarn=()=>{};let c=0;for(;;){let e=s.getObj();if(e===Oe){r=0;break}if(e instanceof Ne){let n=t[e.cmd];if(!n){r=0;break}else if(n.variableArgs?c<=n.numArgs:c===n.numArgs)break;c=0;continue}c++}if(r===2)break}else r=0;i===-1&&(j(`findDefaultInlineStreamEnd: Reached the end of the stream without finding a valid EI marker`),a&&(j(`... trying to recover by using the last "EI" occurrence.`),e.skip(-(e.pos-a))));let o=4;return e.skip(-o),i=e.peekByte(),e.skip(o),dt(i)||o--,e.pos-o-n}findDCTDecodeInlineStreamEnd(e){let t=e.pos,n=!1,r,i;for(;(r=e.getByte())!==-1;)if(r===255){switch(e.getByte()){case 0:break;case 255:e.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=e.getUint16(),i>2?e.skip(i-2):e.skip(-2);break}if(n)break}let a=e.pos-t;return r===-1?(j(`Inline DCTDecode image stream: EOI marker not found, searching for /EI/ instead.`),e.skip(-a),this.findDefaultInlineStreamEnd(e)):(this.inlineStreamSkipEI(e),a)}findASCII85DecodeInlineStreamEnd(e){let t=e.pos,n;for(;(n=e.getByte())!==-1;)if(n===126){let t=e.pos;for(n=e.peekByte();dt(n);)e.skip(),n=e.peekByte();if(n===62){e.skip();break}if(e.pos>t){let t=e.peekBytes(2);if(t[0]===69&&t[1]===73)break}}let r=e.pos-t;return n===-1?(j(`Inline ASCII85Decode image stream: EOD marker not found, searching for /EI/ instead.`),e.skip(-r),this.findDefaultInlineStreamEnd(e)):(this.inlineStreamSkipEI(e),r)}findASCIIHexDecodeInlineStreamEnd(e){let t=e.pos,n;for(;(n=e.getByte())!==-1&&n!==62;);let r=e.pos-t;return n===-1?(j(`Inline ASCIIHexDecode image stream: EOD marker not found, searching for /EI/ instead.`),e.skip(-r),this.findDefaultInlineStreamEnd(e)):(this.inlineStreamSkipEI(e),r)}inlineStreamSkipEI(e){let t=0,n;for(;(n=e.getByte())!==-1;)if(t===0)t=+(n===69);else if(t===1)t=n===73?2:0;else if(t===2)break}makeInlineImage(e){let t=this.lexer,n=t.stream,r=Object.create(null),i;for(;!Re(this.buf1,`ID`)&&this.buf1!==Oe;){if(!(this.buf1 instanceof I))throw new F(`Dictionary key must be a name object`);let t=this.buf1.name;if(this.shift(),this.buf1===Oe)break;r[t]=this.getObj(e)}t.beginInlineImagePos!==-1&&(i=n.pos-t.beginInlineImagePos);let a=this.#e(r.F||r.Filter),o;if(a instanceof I)o=a.name;else if(Array.isArray(a)){let e=this.#e(a[0]);e instanceof I&&(o=e.name)}let s=n.pos,c;switch(o){case`DCT`:case`DCTDecode`:c=this.findDCTDecodeInlineStreamEnd(n);break;case`A85`:case`ASCII85Decode`:c=this.findASCII85DecodeInlineStreamEnd(n);break;case`AHx`:case`ASCIIHexDecode`:c=this.findASCIIHexDecodeInlineStreamEnd(n);break;default:c=this.findDefaultInlineStreamEnd(n)}let l;if(c<1e3&&i>0){let e=n.pos;n.pos=t.beginInlineImagePos,l=ai(n.getBytes(i+c)),n.pos=e;let r=this.imageCache[l];if(r!==void 0)return this.buf2=Ne.get(`EI`),this.shift(),r.reset(),r}let u=new L(this.xref);for(let e in r)u.set(e,r[e]);let d=n.makeSubStream(s,c,u);return e&&!this.#t(a)&&(d=e.createStream(d,c)),d=this.filter(d,u,c,e),d.dict=u,l!==void 0&&(d.cacheKey=`inline_img_${++this._imageId}`,this.imageCache[l]=d),this.buf2=Ne.get(`EI`),this.shift(),d}#e(e){return this.xref?this.xref.fetchIfRef(e):e}#t(e){if(!Array.isArray(e))return Le(e,`Crypt`);for(let t of e)if(Le(this.#e(t),`Crypt`))return!0;return!1}#n(e){let{stream:t}=this.lexer;t.pos=e;let n=new Uint8Array([101,110,100]),r=n.length,i=[new Uint8Array([115,116,114,101,97,109]),new Uint8Array([115,116,101,97,109]),new Uint8Array([115,116,114,101,97])],a=9-r;for(;t.pos<t.end;){let o=t.peekBytes(2048),s=o.length-9;if(s<=0)break;let c=0;for(;c<s;){let s=0;for(;s<r&&o[c+s]===n[s];)s++;if(s>=r){let r=!1;for(let e of i){let t=e.length,i=0;for(;i<t&&o[c+s+i]===e[i];)i++;if(i>=a){r=!0;break}if(i>=t){let t=o[c+s+i];dt(t)&&(A(`Found "${fe([...n,...e])}" when searching for endstream command.`),r=!0);break}}if(r)return t.pos+=c,t.pos-e}c++}t.pos+=s}return-1}makeStream(e,t){let n=this.lexer,r=n.stream;n.skipToNextLine();let i=r.pos-1,a=e.get(`Length`);if(Number.isInteger(a)||(A(`Bad length "${a&&a.toString()}" in stream.`),a=0),r.pos=i+a,n.nextChar(),this.tryShift()&&Re(this.buf2,`endstream`))this.shift();else{if(a=this.#n(i),a<0)throw new F(`Missing endstream command.`);n.nextChar(),this.shift(),this.shift()}this.shift(),r=r.makeSubStream(i,a,e);let o=e.get(`F`,`Filter`);return t&&!this.#t(o)&&(r=t.createStream(r,a)),r=this.filter(r,e,a,t),r.dict=e,r}filter(e,t,n,r=null){let i=t.get(`F`,`Filter`),a=t.get(`DP`,`DecodeParms`);if(i instanceof I)return Array.isArray(a)&&j(`/DecodeParms should not be an Array, when /Filter is a Name.`),this.makeFilter(e,i.name,n,a,r);let o=n;if(Array.isArray(i)){let t=i,n=a;for(let s=0,c=t.length;s<c;++s){if(i=this.#e(t[s]),!(i instanceof I))throw new F(`Bad filter name "${i}"`);a=null,Array.isArray(n)&&s in n&&(a=this.#e(n[s])),e=this.makeFilter(e,i.name,o,a,r),o=null}}return e}makeFilter(e,t,n,r,i=null){if(n===0)return j(`Empty "${t}" stream.`),new Tn;try{switch(t){case`Fl`:case`FlateDecode`:return r?new ri(new Yr(e,n),n,r):new Yr(e,n);case`LZW`:case`LZWDecode`:let t=1;return r?(r.has(`EarlyChange`)&&(t=r.get(`EarlyChange`)),new ri(new ni(e,n,t),n,r)):new ni(e,n,t);case`DCT`:case`DCTDecode`:return new ar(e,n,r);case`JPX`:case`JPXDecode`:return new ti(e,n);case`A85`:case`ASCII85Decode`:return new Pr(e,n);case`AHx`:case`ASCIIHexDecode`:return new Fr(e,n);case`CCF`:case`CCITTFaxDecode`:return new Ur(e,n,r);case`RL`:case`RunLengthDecode`:return new ii(e,n);case`JBIG2Decode`:return new Xr(e,n,r);case`BrotliDecode`:return new Lr(e,n);case`Crypt`:{if(!i)return j(`Filter "Crypt" is missing a cipher transform.`),e;let t=r instanceof L?r.get(`Name`):null,a=t instanceof I?t:I.get(`Identity`);return i.createStream(e,n,a)}}return j(`Filter "${t}" is not supported.`),e}catch(e){if(e instanceof et)throw e;return j(`Invalid stream: "${e}"`),new Tn}}};let si=[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 ci(e){return e>=48&&e<=57?e&15:e>=65&&e<=70||e>=97&&e<=102?(e&15)+9:-1}var li=class{constructor(e,t=null){this.stream=e,this.nextChar(),this.strBuf=[],this.knownCommands=t,this._hexStringNumWarn=0,this.beginInlineImagePos=-1}nextChar(){return this.currentChar=this.stream.getByte()}peekChar(){return this.stream.peekByte()}getNumber(){let e=this.currentChar,t=0,n=1;if(e===45?(n=-1,e=this.nextChar(),e===45&&(e=this.nextChar())):e===43&&(e=this.nextChar()),e===10||e===13)do e=this.nextChar();while(e===10||e===13);if(e===46&&(t=10,e=this.nextChar()),e<48||e>57){let t=`Invalid number: ${String.fromCharCode(e)} (charCode ${e})`;if(dt(e)||e===40||e===60||e===-1)return A(`Lexer.getNumber - "${t}".`),0;throw new F(t)}let r=e-48;for(;(e=this.nextChar())>=0;)if(e>=48&&e<=57){let n=e-48;t!==0&&(t*=10),r=r*10+n}else if(e===46)if(t===0)t=1;else break;else if(e===45)j(`Badly formatted number: minus sign in the middle`);else break;return t!==0&&(r/=t),n*r}getString(){let e=1,t=!1,n=this.strBuf;n.length=0;let r=this.nextChar();for(;;){let i=!1;switch(r|0){case-1:j(`Unterminated string`),t=!0;break;case 40:++e,n.push(`(`);break;case 41:--e===0?(this.nextChar(),t=!0):n.push(`)`);break;case 92:switch(r=this.nextChar(),r){case-1:j(`Unterminated string`),t=!0;break;case 110:n.push(`\n`);break;case 114:n.push(`\\r`);break;case 116:n.push(` `);break;case 98:n.push(`\\b`);break;case 102:n.push(`\\f`);break;case 92:case 40:case 41:n.push(String.fromCharCode(r));break;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:let e=r&15;r=this.nextChar(),i=!0,r>=48&&r<=55&&(e=(e<<3)+(r&15),r=this.nextChar(),r>=48&&r<=55&&(i=!1,e=(e<<3)+(r&15))),n.push(String.fromCharCode(e));break;case 13:this.peekChar()===10&&this.nextChar();break;case 10:break;default:n.push(String.fromCharCode(r));break}break;default:n.push(String.fromCharCode(r));break}if(t)break;i||(r=this.nextChar())}return n.join(``)}getName(){let e,t,n=this.strBuf;for(n.length=0;(e=this.nextChar())>=0&&!si[e];)if(e===35){if(e=this.nextChar(),si[e]){j(`Lexer_getName: NUMBER SIGN (#) should be followed by a hexadecimal number.`),n.push(`#`);break}let r=ci(e);if(r!==-1){t=e,e=this.nextChar();let i=ci(e);if(i===-1){if(j(`Lexer_getName: Illegal digit (${String.fromCharCode(e)}) in hexadecimal number.`),n.push(`#`,String.fromCharCode(t)),si[e])break;n.push(String.fromCharCode(e));continue}n.push(String.fromCharCode(r<<4|i))}else n.push(`#`,String.fromCharCode(e))}else n.push(String.fromCharCode(e));return n.length>127&&j(`Name token is longer than allowed by the spec: ${n.length}`),I.get(n.join(``))}_hexStringWarn(e){if(this._hexStringNumWarn++===5){j(`getHexString - ignoring additional invalid characters.`);return}this._hexStringNumWarn>5||j(`getHexString - ignoring invalid character: ${e}`)}getHexString(){let e=this.strBuf;e.length=0;let t=this.currentChar,n=-1,r=-1;for(this._hexStringNumWarn=0;;)if(t<0){j(`Unterminated hex string`);break}else if(t===62){this.nextChar();break}else if(si[t]===1){t=this.nextChar();continue}else r=ci(t),r===-1?this._hexStringWarn(t):n===-1?n=r:(e.push(String.fromCharCode(n<<4|r)),n=-1),t=this.nextChar();return n!==-1&&e.push(String.fromCharCode(n<<4)),e.join(``)}getObj(){let e=!1,t=this.currentChar;for(;;){if(t<0)return Oe;if(e)(t===10||t===13)&&(e=!1);else if(t===37)e=!0;else if(si[t]!==1)break;t=this.nextChar()}switch(t|0){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 43:case 45:case 46:return this.getNumber();case 40:return this.getString();case 47:return this.getName();case 91:return this.nextChar(),Ne.get(`[`);case 93:return this.nextChar(),Ne.get(`]`);case 60:return t=this.nextChar(),t===60?(this.nextChar(),Ne.get(`<<`)):this.getHexString();case 62:return t=this.nextChar(),t===62?(this.nextChar(),Ne.get(`>>`)):Ne.get(`>`);case 123:return this.nextChar(),Ne.get(`{`);case 125:return this.nextChar(),Ne.get(`}`);case 41:throw this.nextChar(),new F(`Illegal character: ${t}`)}let n=String.fromCharCode(t);if(t<32||t>127){let e=this.peekChar();if(e>=32&&e<=127)return this.nextChar(),Ne.get(n)}let r=this.knownCommands,i=r?.[n]!==void 0;for(;(t=this.nextChar())>=0&&!si[t];){let e=n+String.fromCharCode(t);if(i&&r[e]===void 0)break;if(n.length===128)throw new F(`Command token too long: ${n.length}`);n=e,i=r?.[n]!==void 0}return n===`true`?!0:n===`false`?!1:n===`null`?null:(n===`BI`&&(this.beginInlineImagePos=this.stream.pos),Ne.get(n))}skipToNextLine(){let e=this.currentChar;for(;e>=0;){if(e===13){e=this.nextChar(),e===10&&this.nextChar();break}else if(e===10){this.nextChar();break}e=this.nextChar()}}},ui=class{static create(e){function t(e,t,n=!1){let r=e.get(t);if(Number.isInteger(r)&&(n?r>=0:r>0))return r;throw Error(`The "${t}" parameter in the linearization dictionary is invalid.`)}function n(e){let t=e.get(`H`),n;if(Array.isArray(t)&&((n=t.length)===2||n===4)){for(let e=0;e<n;e++){let n=t[e];if(!(Number.isInteger(n)&&n>0))throw Error(`Hint (${e}) in the linearization dictionary is invalid.`)}return t}throw Error(`Hint array in the linearization dictionary is invalid.`)}let r=new oi({lexer:new li(e),xref:null}),i=r.getObj(),a=r.getObj(),o=r.getObj(),s=r.getObj(),c,l;if(!(Number.isInteger(i)&&Number.isInteger(a)&&Re(o,`obj`)&&s instanceof L&&typeof(c=s.get(`Linearized`))==`number`&&c>0))return null;if((l=t(s,`L`))!==e.length)throw Error(`The "L" parameter in the linearization dictionary does not equal the stream length.`);return{length:l,hints:n(s),objectNumberFirst:t(s,`O`),endFirst:t(s,`E`),numPages:t(s,`N`),mainXRefEntriesOffset:t(s,`T`),pageFirst:s.has(`P`)?t(s,`P`,!0):0}}};let di=`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`.split(`.`),fi=2**24-1;var pi=class{constructor(e=!1){this.codespaceRanges=[[],[],[],[]],this.numCodespaceRanges=0,this._map=[],this.name=``,this.vertical=!1,this.useCMap=null,this.builtInCMap=e}addCodespaceRange(e,t,n){this.codespaceRanges[e-1].push(t,n),this.numCodespaceRanges++}mapCidRange(e,t,n){if(t-e>fi)throw Error(`mapCidRange - ignoring data above MAX_MAP_RANGE.`);for(;e<=t;)this._map[e++]=n++}mapBfRange(e,t,n){if(t-e>fi)throw Error(`mapBfRange - ignoring data above MAX_MAP_RANGE.`);let r=n.length-1;for(;e<=t;){this._map[e++]=n;let t=n.charCodeAt(r)+1;if(t>255){n=n.substring(0,r-1)+String.fromCharCode(n.charCodeAt(r-1)+1)+`\\0`;continue}n=n.substring(0,r)+String.fromCharCode(t)}}mapBfRangeToArray(e,t,n){if(t-e>fi)throw Error(`mapBfRangeToArray - ignoring data above MAX_MAP_RANGE.`);let r=n.length,i=0;for(;e<=t&&i<r;)this._map[e]=n[i++],++e}mapOne(e,t){this._map[e]=t}lookup(e){return this._map[e]}contains(e){return this._map[e]!==void 0}forEach(e){let t=this._map,n=t.length;if(n<=65536)for(let r=0;r<n;r++)t[r]!==void 0&&e(r,t[r]);else for(let n in t)e(n,t[n])}charCodeOf(e){let t=this._map;if(t.length<=65536)return t.indexOf(e);for(let n in t)if(t[n]===e)return n|0;return-1}getMap(){return this._map}readCharCode(e,t,n){let r=0,i=this.codespaceRanges;for(let a=0,o=i.length;a<o;a++){r=(r<<8|e.charCodeAt(t+a))>>>0;let o=i[a];for(let e=0,t=o.length;e<t;){let t=o[e++],i=o[e++];if(r>=t&&r<=i){n.charcode=r,n.length=a+1;return}}}n.charcode=0,n.length=1}getCharCodeLength(e){let t=this.codespaceRanges;for(let n=0,r=t.length;n<r;n++){let r=t[n];for(let t=0,i=r.length;t<i;){let i=r[t++],a=r[t++];if(e>=i&&e<=a)return n+1}}return 1}get length(){return this._map.length}get isIdentityCMap(){if(!(this.name===`Identity-H`||this.name===`Identity-V`)||this._map.length!==65536)return!1;for(let e=0;e<65536;e++)if(this._map[e]!==e)return!1;return!0}},mi=class extends pi{constructor(e,t){super(),this.vertical=e,this.addCodespaceRange(t,0,65535)}mapCidRange(e,t,n){M(`should not call mapCidRange`)}mapBfRange(e,t,n){M(`should not call mapBfRange`)}mapBfRangeToArray(e,t,n){M(`should not call mapBfRangeToArray`)}mapOne(e,t){M(`should not call mapCidOne`)}lookup(e){return Number.isInteger(e)&&e<=65535?e:void 0}contains(e){return Number.isInteger(e)&&e<=65535}forEach(e){for(let t=0;t<=65535;t++)e(t,t)}charCodeOf(e){return Number.isInteger(e)&&e<=65535?e:-1}getMap(){let e=Array(65536);for(let t=0;t<=65535;t++)e[t]=t;return e}get length(){return 65536}get isIdentityCMap(){M(`should not access .isIdentityCMap`)}};function hi(e){let t=0;for(let n=0;n<e.length;n++)t=t<<8|e.charCodeAt(n);return t>>>0}function gi(e){if(typeof e!=`string`)throw new F(`Malformed CMap: expected string.`)}function _i(e){if(!Number.isInteger(e))throw new F(`Malformed CMap: expected int.`)}function vi(e,t){for(;;){let n=t.getObj();if(n===Oe)break;if(Re(n,`endbfchar`))return;gi(n);let r=hi(n);n=t.getObj(),gi(n);let i=n;e.mapOne(r,i)}}function yi(e,t){for(;;){let n=t.getObj();if(n===Oe)break;if(Re(n,`endbfrange`))return;gi(n);let r=hi(n);n=t.getObj(),gi(n);let i=hi(n);if(n=t.getObj(),Number.isInteger(n)||typeof n==`string`){let t=Number.isInteger(n)?String.fromCharCode(n):n;e.mapBfRange(r,i,t)}else if(Re(n,`[`)){n=t.getObj();let a=[];for(;!Re(n,`]`)&&n!==Oe;)a.push(n),n=t.getObj();e.mapBfRangeToArray(r,i,a)}else break}throw new F(`Invalid bf range.`)}function bi(e,t){for(;;){let n=t.getObj();if(n===Oe)break;if(Re(n,`endcidchar`))return;gi(n);let r=hi(n);n=t.getObj(),_i(n);let i=n;e.mapOne(r,i)}}function xi(e,t){for(;;){let n=t.getObj();if(n===Oe)break;if(Re(n,`endcidrange`))return;gi(n);let r=hi(n);n=t.getObj(),gi(n);let i=hi(n);n=t.getObj(),_i(n);let a=n;e.mapCidRange(r,i,a)}}function Si(e,t){for(;;){let n=t.getObj();if(n===Oe)break;if(Re(n,`endcodespacerange`))return;if(typeof n!=`string`)break;let r=hi(n);if(n=t.getObj(),typeof n!=`string`)break;let i=hi(n);e.addCodespaceRange(n.length,r,i)}throw new F(`Invalid codespace range.`)}function Ci(e,t){let n=t.getObj();Number.isInteger(n)&&(e.vertical=!!n)}function wi(e,t){let n=t.getObj();n instanceof I&&(e.name=n.name)}async function Ti(e,t,n,r){let i,a;objLoop:for(;;)try{let n=t.getObj();if(n===Oe)break;if(n instanceof I)n.name===`WMode`?Ci(e,t):n.name===`CMapName`&&wi(e,t),i=n;else if(n instanceof Ne)switch(n.cmd){case`endcmap`:break objLoop;case`usecmap`:i instanceof I&&(a=i.name);break;case`begincodespacerange`:Si(e,t);break;case`beginbfchar`:vi(e,t);break;case`begincidchar`:bi(e,t);break;case`beginbfrange`:yi(e,t);break;case`begincidrange`:xi(e,t);break}}catch(e){if(e instanceof et)throw e;j(`Invalid cMap data: `+e);continue}return!r&&a&&(r=a),r?Ei(e,n,r):e}async function Ei(e,t,n){if(e.useCMap=await Di(n,t),e.numCodespaceRanges===0){let t=e.useCMap.codespaceRanges;for(let n=0;n<t.length;n++)e.codespaceRanges[n]=t[n].slice();e.numCodespaceRanges=e.useCMap.numCodespaceRanges}return e.useCMap.forEach(function(t,n){e.contains(t)||e.mapOne(t,n)}),e}async function Di(e,t){if(e===`Identity-H`)return new mi(!1,2);if(e===`Identity-V`)return new mi(!0,2);if(!di.includes(e))throw Error(`Unknown CMap name: `+e);if(!t)throw Error(`Built-in CMap parameters are not provided.`);let{cMapData:n,isCompressed:r}=await t(e),i=new pi(!0);return r?new Nr().process(n,i,e=>Ei(i,t,e)):Ti(i,new li(new Cn(n)),t,null)}var Oi=class{static async create({encoding:e,fetchBuiltInCMap:t,useCMap:n}){if(e instanceof I)return Di(e.name,t);if(e instanceof Ve){if(e.isAsync){let t=await e.asyncGetBytes();t&&(e=new Cn(t,0,t.length,e.dict))}let r=await Ti(new pi,new li(e),t,n);return r.isIdentityCMap?Di(r.name,t):r}throw Error(`Encoding required.`)}},ki=class{static strings=[`fontFamily`,`fontWeight`,`italicAngle`]},Ai=class{static strings=[`css`,`loadedName`,`baseFontName`,`src`]},ji=class{static bools=[`black`,`bold`,`disableFontFace`,`fontExtraProperties`,`isInvalidPDFjsFont`,`isType3Font`,`italic`,`missingFile`,`remeasure`,`vertical`];static numbers=[`ascent`,`defaultWidth`,`descent`];static strings=[`fallbackName`,`loadedName`,`mimetype`,`name`];static OFFSET_NUMBERS=Math.ceil(this.bools.length*2/8);static OFFSET_BBOX=this.OFFSET_NUMBERS+this.numbers.length*8;static OFFSET_FONT_MATRIX=this.OFFSET_BBOX+1+8;static OFFSET_DEFAULT_VMETRICS=this.OFFSET_FONT_MATRIX+1+48;static OFFSET_STRINGS=this.OFFSET_DEFAULT_VMETRICS+1+6},Mi=class{static KIND=0;static HAS_BBOX=1;static HAS_BACKGROUND=2;static SHADING_TYPE=3;static N_COORD=4;static N_COLOR=8;static N_STOP=12;static N_FIGURES=16};function Ni(e){let t=new TextEncoder,n={},r=0;for(let i of ki.strings){let a=t.encode(e[i]);n[i]=a,r+=4+a.length}let i=new ArrayBuffer(r),a=new Uint8Array(i),o=new DataView(i),s=0;for(let e of ki.strings){let t=n[e],r=t.length;o.setUint32(s,r),a.set(t,s+4),s+=4+r}return N(s===i.byteLength,`compileCssFontInfo: Buffer overflow`),i}function Pi(e){let t=new TextEncoder,n={},r=0;for(let i of Ai.strings){let a=t.encode(e[i]);n[i]=a,r+=4+a.length}r+=4;let i,a,o=1+r;e.style&&(i=t.encode(e.style.style),a=t.encode(e.style.weight),o+=4+i.length+4+a.length);let s=new ArrayBuffer(o),c=new Uint8Array(s),l=new DataView(s),u=0;l.setUint8(u++,+!!e.guessFallback),l.setUint32(u,0),u+=4,r=0;for(let e of Ai.strings){let t=n[e],i=t.length;r+=4+i,l.setUint32(u,i),c.set(t,u+4),u+=4+i}return l.setUint32(u-r-4,r),e.style&&(l.setUint32(u,i.length),c.set(i,u+4),u+=4+i.length,l.setUint32(u,a.length),c.set(a,u+4),u+=4+a.length),N(u<=s.byteLength,`compileSystemFontInfo: Buffer overflow`),s.transferToFixedLength(u)}function Fi(e){let t=e.systemFontInfo?Pi(e.systemFontInfo):null,n=e.cssFontInfo?Ni(e.cssFontInfo):null,r=new TextEncoder,i={},a=0;for(let t of ji.strings)i[t]=r.encode(e[t]),a+=4+i[t].length;let o=ji.OFFSET_STRINGS+4+a+4+(t?.byteLength??0)+4+(n?.byteLength??0)+4+(e.data?.length??0),s=new ArrayBuffer(o),c=new Uint8Array(s),l=new DataView(s),u=0,d=ji.bools.length,f=0,p=0;for(let t=0;t<d;t++){let n=e[ji.bools[t]];f|=(n===void 0?0:n?2:1)<<p,p+=2,(p===8||t===d-1)&&(l.setUint8(u++,f),f=0,p=0)}N(u===ji.OFFSET_NUMBERS,`compileFontInfo: Boolean properties offset mismatch`);for(let t of ji.numbers)l.setFloat64(u,e[t]),u+=8;if(N(u===ji.OFFSET_BBOX,`compileFontInfo: Number properties offset mismatch`),e.bbox){l.setUint8(u++,4);for(let t of e.bbox)l.setInt16(u,t,!0),u+=2}else l.setUint8(u++,0),u+=8;if(N(u===ji.OFFSET_FONT_MATRIX,`compileFontInfo: BBox properties offset mismatch`),e.fontMatrix){l.setUint8(u++,6);for(let t of e.fontMatrix)l.setFloat64(u,t,!0),u+=8}else l.setUint8(u++,0),u+=48;if(N(u===ji.OFFSET_DEFAULT_VMETRICS,`compileFontInfo: FontMatrix properties offset mismatch`),e.defaultVMetrics){l.setUint8(u++,3);for(let t of e.defaultVMetrics)l.setInt16(u,t,!0),u+=2}else l.setUint8(u++,0),u+=6;N(u===ji.OFFSET_STRINGS,`compileFontInfo: DefaultVMetrics properties offset mismatch`),l.setUint32(ji.OFFSET_STRINGS,0),u+=4;for(let e of ji.strings){let t=i[e],n=t.length;l.setUint32(u,n),c.set(t,u+4),u+=4+n}if(l.setUint32(ji.OFFSET_STRINGS,u-ji.OFFSET_STRINGS-4),!t)l.setUint32(u,0),u+=4;else{let e=t.byteLength;l.setUint32(u,e),N(u+4+e<=s.byteLength,`compileFontInfo: Buffer overflow at systemFontInfo`),c.set(new Uint8Array(t),u+4),u+=4+e}if(!n)l.setUint32(u,0),u+=4;else{let e=n.byteLength;l.setUint32(u,e),N(u+4+e<=s.byteLength,`compileFontInfo: Buffer overflow at cssFontInfo`),c.set(new Uint8Array(n),u+4),u+=4+e}return e.data===void 0?(l.setUint32(u,0),u+=4):(l.setUint32(u,e.data.length),c.set(e.data,u+4),u+=4+e.data.length),N(u<=s.byteLength,`compileFontInfo: Buffer overflow`),s.transferToFixedLength(u)}function Ii(e){let t,n=null,r=[],i=[],a=[],o=null,s=null;switch(e[0]){case`RadialAxial`:t=e[1]===`axial`?1:2,n=e[2],a=e[3],t===1?r.push(...e[4],...e[5]):r.push(e[4][0],e[4][1],e[6],e[5][0],e[5][1],e[7]);break;case`Mesh`:t=3,o=e[1],r=e[2],i=e[3],n=e[6],s=e[7];break;default:throw Error(`Unsupported pattern type: ${e[0]}`)}let c=Math.floor(r.length/2),l=Math.floor(i.length/4),u=a.length,d=20+c*8+l*4+u*8+(n?16:0)+(s?3:0),f=new ArrayBuffer(d),p=new DataView(f),m=new Uint8Array(f);p.setUint8(Mi.KIND,t),p.setUint8(Mi.HAS_BBOX,+!!n),p.setUint8(Mi.HAS_BACKGROUND,+!!s),p.setUint8(Mi.SHADING_TYPE,o),p.setUint32(Mi.N_COORD,c,!0),p.setUint32(Mi.N_COLOR,l,!0),p.setUint32(Mi.N_STOP,u,!0),p.setUint32(Mi.N_FIGURES,0,!0);let h=20;new Float32Array(f,h,c*2).set(r),h+=c*8,m.set(i,h),h+=l*4;for(let[e,t]of a)p.setFloat32(h,e,!0),h+=4,p.setUint32(h,parseInt(t.slice(1),16),!0),h+=4;if(n)for(let e of n)p.setFloat32(h,e,!0),h+=4;return s&&m.set(s,h),f}function Li(e){return e.slice().buffer}let Ri=`................................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`.split(`.`),zi=`................................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....`.split(`.`),Bi=`................................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`.split(`.`),Vi=`................................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....`.split(`.`),Hi=`................................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`.split(`.`),Ui=`................................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.`.split(`.`),Wi=`................................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.`.split(`.`);function Gi(e){switch(e){case`WinAnsiEncoding`:return Hi;case`StandardEncoding`:return Vi;case`MacRomanEncoding`:return Bi;case`SymbolSetEncoding`:return Ui;case`ZapfDingbatsEncoding`:return Wi;case`ExpertEncoding`:return Ri;case`MacExpertEncoding`:return zi;default:return null}}let Ki=$e(function(e){e.A=65,e.AE=198,e.AEacute=508,e.AEmacron=482,e.AEsmall=63462,e.Aacute=193,e.Aacutesmall=63457,e.Abreve=258,e.Abreveacute=7854,e.Abrevecyrillic=1232,e.Abrevedotbelow=7862,e.Abrevegrave=7856,e.Abrevehookabove=7858,e.Abrevetilde=7860,e.Acaron=461,e.Acircle=9398,e.Acircumflex=194,e.Acircumflexacute=7844,e.Acircumflexdotbelow=7852,e.Acircumflexgrave=7846,e.Acircumflexhookabove=7848,e.Acircumflexsmall=63458,e.Acircumflextilde=7850,e.Acute=63177,e.Acutesmall=63412,e.Acyrillic=1040,e.Adblgrave=512,e.Adieresis=196,e.Adieresiscyrillic=1234,e.Adieresismacron=478,e.Adieresissmall=63460,e.Adotbelow=7840,e.Adotmacron=480,e.Agrave=192,e.Agravesmall=63456,e.Ahookabove=7842,e.Aiecyrillic=1236,e.Ainvertedbreve=514,e.Alpha=913,e.Alphatonos=902,e.Amacron=256,e.Amonospace=65313,e.Aogonek=260,e.Aring=197,e.Aringacute=506,e.Aringbelow=7680,e.Aringsmall=63461,e.Asmall=63329,e.Atilde=195,e.Atildesmall=63459,e.Aybarmenian=1329,e.B=66,e.Bcircle=9399,e.Bdotaccent=7682,e.Bdotbelow=7684,e.Becyrillic=1041,e.Benarmenian=1330,e.Beta=914,e.Bhook=385,e.Blinebelow=7686,e.Bmonospace=65314,e.Brevesmall=63220,e.Bsmall=63330,e.Btopbar=386,e.C=67,e.Caarmenian=1342,e.Cacute=262,e.Caron=63178,e.Caronsmall=63221,e.Ccaron=268,e.Ccedilla=199,e.Ccedillaacute=7688,e.Ccedillasmall=63463,e.Ccircle=9400,e.Ccircumflex=264,e.Cdot=266,e.Cdotaccent=266,e.Cedillasmall=63416,e.Chaarmenian=1353,e.Cheabkhasiancyrillic=1212,e.Checyrillic=1063,e.Chedescenderabkhasiancyrillic=1214,e.Chedescendercyrillic=1206,e.Chedieresiscyrillic=1268,e.Cheharmenian=1347,e.Chekhakassiancyrillic=1227,e.Cheverticalstrokecyrillic=1208,e.Chi=935,e.Chook=391,e.Circumflexsmall=63222,e.Cmonospace=65315,e.Coarmenian=1361,e.Csmall=63331,e.D=68,e.DZ=497,e.DZcaron=452,e.Daarmenian=1332,e.Dafrican=393,e.Dcaron=270,e.Dcedilla=7696,e.Dcircle=9401,e.Dcircumflexbelow=7698,e.Dcroat=272,e.Ddotaccent=7690,e.Ddotbelow=7692,e.Decyrillic=1044,e.Deicoptic=1006,e.Delta=8710,e.Deltagreek=916,e.Dhook=394,e.Dieresis=63179,e.DieresisAcute=63180,e.DieresisGrave=63181,e.Dieresissmall=63400,e.Digammagreek=988,e.Djecyrillic=1026,e.Dlinebelow=7694,e.Dmonospace=65316,e.Dotaccentsmall=63223,e.Dslash=272,e.Dsmall=63332,e.Dtopbar=395,e.Dz=498,e.Dzcaron=453,e.Dzeabkhasiancyrillic=1248,e.Dzecyrillic=1029,e.Dzhecyrillic=1039,e.E=69,e.Eacute=201,e.Eacutesmall=63465,e.Ebreve=276,e.Ecaron=282,e.Ecedillabreve=7708,e.Echarmenian=1333,e.Ecircle=9402,e.Ecircumflex=202,e.Ecircumflexacute=7870,e.Ecircumflexbelow=7704,e.Ecircumflexdotbelow=7878,e.Ecircumflexgrave=7872,e.Ecircumflexhookabove=7874,e.Ecircumflexsmall=63466,e.Ecircumflextilde=7876,e.Ecyrillic=1028,e.Edblgrave=516,e.Edieresis=203,e.Edieresissmall=63467,e.Edot=278,e.Edotaccent=278,e.Edotbelow=7864,e.Efcyrillic=1060,e.Egrave=200,e.Egravesmall=63464,e.Eharmenian=1335,e.Ehookabove=7866,e.Eightroman=8551,e.Einvertedbreve=518,e.Eiotifiedcyrillic=1124,e.Elcyrillic=1051,e.Elevenroman=8554,e.Emacron=274,e.Emacronacute=7702,e.Emacrongrave=7700,e.Emcyrillic=1052,e.Emonospace=65317,e.Encyrillic=1053,e.Endescendercyrillic=1186,e.Eng=330,e.Enghecyrillic=1188,e.Enhookcyrillic=1223,e.Eogonek=280,e.Eopen=400,e.Epsilon=917,e.Epsilontonos=904,e.Ercyrillic=1056,e.Ereversed=398,e.Ereversedcyrillic=1069,e.Escyrillic=1057,e.Esdescendercyrillic=1194,e.Esh=425,e.Esmall=63333,e.Eta=919,e.Etarmenian=1336,e.Etatonos=905,e.Eth=208,e.Ethsmall=63472,e.Etilde=7868,e.Etildebelow=7706,e.Euro=8364,e.Ezh=439,e.Ezhcaron=494,e.Ezhreversed=440,e.F=70,e.Fcircle=9403,e.Fdotaccent=7710,e.Feharmenian=1366,e.Feicoptic=996,e.Fhook=401,e.Fitacyrillic=1138,e.Fiveroman=8548,e.Fmonospace=65318,e.Fourroman=8547,e.Fsmall=63334,e.G=71,e.GBsquare=13191,e.Gacute=500,e.Gamma=915,e.Gammaafrican=404,e.Gangiacoptic=1002,e.Gbreve=286,e.Gcaron=486,e.Gcedilla=290,e.Gcircle=9404,e.Gcircumflex=284,e.Gcommaaccent=290,e.Gdot=288,e.Gdotaccent=288,e.Gecyrillic=1043,e.Ghadarmenian=1346,e.Ghemiddlehookcyrillic=1172,e.Ghestrokecyrillic=1170,e.Gheupturncyrillic=1168,e.Ghook=403,e.Gimarmenian=1331,e.Gjecyrillic=1027,e.Gmacron=7712,e.Gmonospace=65319,e.Grave=63182,e.Gravesmall=63328,e.Gsmall=63335,e.Gsmallhook=667,e.Gstroke=484,e.H=72,e.H18533=9679,e.H18543=9642,e.H18551=9643,e.H22073=9633,e.HPsquare=13259,e.Haabkhasiancyrillic=1192,e.Hadescendercyrillic=1202,e.Hardsigncyrillic=1066,e.Hbar=294,e.Hbrevebelow=7722,e.Hcedilla=7720,e.Hcircle=9405,e.Hcircumflex=292,e.Hdieresis=7718,e.Hdotaccent=7714,e.Hdotbelow=7716,e.Hmonospace=65320,e.Hoarmenian=1344,e.Horicoptic=1e3,e.Hsmall=63336,e.Hungarumlaut=63183,e.Hungarumlautsmall=63224,e.Hzsquare=13200,e.I=73,e.IAcyrillic=1071,e.IJ=306,e.IUcyrillic=1070,e.Iacute=205,e.Iacutesmall=63469,e.Ibreve=300,e.Icaron=463,e.Icircle=9406,e.Icircumflex=206,e.Icircumflexsmall=63470,e.Icyrillic=1030,e.Idblgrave=520,e.Idieresis=207,e.Idieresisacute=7726,e.Idieresiscyrillic=1252,e.Idieresissmall=63471,e.Idot=304,e.Idotaccent=304,e.Idotbelow=7882,e.Iebrevecyrillic=1238,e.Iecyrillic=1045,e.Ifraktur=8465,e.Igrave=204,e.Igravesmall=63468,e.Ihookabove=7880,e.Iicyrillic=1048,e.Iinvertedbreve=522,e.Iishortcyrillic=1049,e.Imacron=298,e.Imacroncyrillic=1250,e.Imonospace=65321,e.Iniarmenian=1339,e.Iocyrillic=1025,e.Iogonek=302,e.Iota=921,e.Iotaafrican=406,e.Iotadieresis=938,e.Iotatonos=906,e.Ismall=63337,e.Istroke=407,e.Itilde=296,e.Itildebelow=7724,e.Izhitsacyrillic=1140,e.Izhitsadblgravecyrillic=1142,e.J=74,e.Jaarmenian=1345,e.Jcircle=9407,e.Jcircumflex=308,e.Jecyrillic=1032,e.Jheharmenian=1355,e.Jmonospace=65322,e.Jsmall=63338,e.K=75,e.KBsquare=13189,e.KKsquare=13261,e.Kabashkircyrillic=1184,e.Kacute=7728,e.Kacyrillic=1050,e.Kadescendercyrillic=1178,e.Kahookcyrillic=1219,e.Kappa=922,e.Kastrokecyrillic=1182,e.Kaverticalstrokecyrillic=1180,e.Kcaron=488,e.Kcedilla=310,e.Kcircle=9408,e.Kcommaaccent=310,e.Kdotbelow=7730,e.Keharmenian=1364,e.Kenarmenian=1343,e.Khacyrillic=1061,e.Kheicoptic=998,e.Khook=408,e.Kjecyrillic=1036,e.Klinebelow=7732,e.Kmonospace=65323,e.Koppacyrillic=1152,e.Koppagreek=990,e.Ksicyrillic=1134,e.Ksmall=63339,e.L=76,e.LJ=455,e.LL=63167,e.Lacute=313,e.Lambda=923,e.Lcaron=317,e.Lcedilla=315,e.Lcircle=9409,e.Lcircumflexbelow=7740,e.Lcommaaccent=315,e.Ldot=319,e.Ldotaccent=319,e.Ldotbelow=7734,e.Ldotbelowmacron=7736,e.Liwnarmenian=1340,e.Lj=456,e.Ljecyrillic=1033,e.Llinebelow=7738,e.Lmonospace=65324,e.Lslash=321,e.Lslashsmall=63225,e.Lsmall=63340,e.M=77,e.MBsquare=13190,e.Macron=63184,e.Macronsmall=63407,e.Macute=7742,e.Mcircle=9410,e.Mdotaccent=7744,e.Mdotbelow=7746,e.Menarmenian=1348,e.Mmonospace=65325,e.Msmall=63341,e.Mturned=412,e.Mu=924,e.N=78,e.NJ=458,e.Nacute=323,e.Ncaron=327,e.Ncedilla=325,e.Ncircle=9411,e.Ncircumflexbelow=7754,e.Ncommaaccent=325,e.Ndotaccent=7748,e.Ndotbelow=7750,e.Nhookleft=413,e.Nineroman=8552,e.Nj=459,e.Njecyrillic=1034,e.Nlinebelow=7752,e.Nmonospace=65326,e.Nowarmenian=1350,e.Nsmall=63342,e.Ntilde=209,e.Ntildesmall=63473,e.Nu=925,e.O=79,e.OE=338,e.OEsmall=63226,e.Oacute=211,e.Oacutesmall=63475,e.Obarredcyrillic=1256,e.Obarreddieresiscyrillic=1258,e.Obreve=334,e.Ocaron=465,e.Ocenteredtilde=415,e.Ocircle=9412,e.Ocircumflex=212,e.Ocircumflexacute=7888,e.Ocircumflexdotbelow=7896,e.Ocircumflexgrave=7890,e.Ocircumflexhookabove=7892,e.Ocircumflexsmall=63476,e.Ocircumflextilde=7894,e.Ocyrillic=1054,e.Odblacute=336,e.Odblgrave=524,e.Odieresis=214,e.Odieresiscyrillic=1254,e.Odieresissmall=63478,e.Odotbelow=7884,e.Ogoneksmall=63227,e.Ograve=210,e.Ogravesmall=63474,e.Oharmenian=1365,e.Ohm=8486,e.Ohookabove=7886,e.Ohorn=416,e.Ohornacute=7898,e.Ohorndotbelow=7906,e.Ohorngrave=7900,e.Ohornhookabove=7902,e.Ohorntilde=7904,e.Ohungarumlaut=336,e.Oi=418,e.Oinvertedbreve=526,e.Omacron=332,e.Omacronacute=7762,e.Omacrongrave=7760,e.Omega=8486,e.Omegacyrillic=1120,e.Omegagreek=937,e.Omegaroundcyrillic=1146,e.Omegatitlocyrillic=1148,e.Omegatonos=911,e.Omicron=927,e.Omicrontonos=908,e.Omonospace=65327,e.Oneroman=8544,e.Oogonek=490,e.Oogonekmacron=492,e.Oopen=390,e.Oslash=216,e.Oslashacute=510,e.Oslashsmall=63480,e.Osmall=63343,e.Ostrokeacute=510,e.Otcyrillic=1150,e.Otilde=213,e.Otildeacute=7756,e.Otildedieresis=7758,e.Otildesmall=63477,e.P=80,e.Pacute=7764,e.Pcircle=9413,e.Pdotaccent=7766,e.Pecyrillic=1055,e.Peharmenian=1354,e.Pemiddlehookcyrillic=1190,e.Phi=934,e.Phook=420,e.Pi=928,e.Piwrarmenian=1363,e.Pmonospace=65328,e.Psi=936,e.Psicyrillic=1136,e.Psmall=63344,e.Q=81,e.Qcircle=9414,e.Qmonospace=65329,e.Qsmall=63345,e.R=82,e.Raarmenian=1356,e.Racute=340,e.Rcaron=344,e.Rcedilla=342,e.Rcircle=9415,e.Rcommaaccent=342,e.Rdblgrave=528,e.Rdotaccent=7768,e.Rdotbelow=7770,e.Rdotbelowmacron=7772,e.Reharmenian=1360,e.Rfraktur=8476,e.Rho=929,e.Ringsmall=63228,e.Rinvertedbreve=530,e.Rlinebelow=7774,e.Rmonospace=65330,e.Rsmall=63346,e.Rsmallinverted=641,e.Rsmallinvertedsuperior=694,e.S=83,e.SF010000=9484,e.SF020000=9492,e.SF030000=9488,e.SF040000=9496,e.SF050000=9532,e.SF060000=9516,e.SF070000=9524,e.SF080000=9500,e.SF090000=9508,e.SF100000=9472,e.SF110000=9474,e.SF190000=9569,e.SF200000=9570,e.SF210000=9558,e.SF220000=9557,e.SF230000=9571,e.SF240000=9553,e.SF250000=9559,e.SF260000=9565,e.SF270000=9564,e.SF280000=9563,e.SF360000=9566,e.SF370000=9567,e.SF380000=9562,e.SF390000=9556,e.SF400000=9577,e.SF410000=9574,e.SF420000=9568,e.SF430000=9552,e.SF440000=9580,e.SF450000=9575,e.SF460000=9576,e.SF470000=9572,e.SF480000=9573,e.SF490000=9561,e.SF500000=9560,e.SF510000=9554,e.SF520000=9555,e.SF530000=9579,e.SF540000=9578,e.Sacute=346,e.Sacutedotaccent=7780,e.Sampigreek=992,e.Scaron=352,e.Scarondotaccent=7782,e.Scaronsmall=63229,e.Scedilla=350,e.Schwa=399,e.Schwacyrillic=1240,e.Schwadieresiscyrillic=1242,e.Scircle=9416,e.Scircumflex=348,e.Scommaaccent=536,e.Sdotaccent=7776,e.Sdotbelow=7778,e.Sdotbelowdotaccent=7784,e.Seharmenian=1357,e.Sevenroman=8550,e.Shaarmenian=1351,e.Shacyrillic=1064,e.Shchacyrillic=1065,e.Sheicoptic=994,e.Shhacyrillic=1210,e.Shimacoptic=1004,e.Sigma=931,e.Sixroman=8549,e.Smonospace=65331,e.Softsigncyrillic=1068,e.Ssmall=63347,e.Stigmagreek=986,e.T=84,e.Tau=932,e.Tbar=358,e.Tcaron=356,e.Tcedilla=354,e.Tcircle=9417,e.Tcircumflexbelow=7792,e.Tcommaaccent=354,e.Tdotaccent=7786,e.Tdotbelow=7788,e.Tecyrillic=1058,e.Tedescendercyrillic=1196,e.Tenroman=8553,e.Tetsecyrillic=1204,e.Theta=920,e.Thook=428,e.Thorn=222,e.Thornsmall=63486,e.Threeroman=8546,e.Tildesmall=63230,e.Tiwnarmenian=1359,e.Tlinebelow=7790,e.Tmonospace=65332,e.Toarmenian=1337,e.Tonefive=444,e.Tonesix=388,e.Tonetwo=423,e.Tretroflexhook=430,e.Tsecyrillic=1062,e.Tshecyrillic=1035,e.Tsmall=63348,e.Twelveroman=8555,e.Tworoman=8545,e.U=85,e.Uacute=218,e.Uacutesmall=63482,e.Ubreve=364,e.Ucaron=467,e.Ucircle=9418,e.Ucircumflex=219,e.Ucircumflexbelow=7798,e.Ucircumflexsmall=63483,e.Ucyrillic=1059,e.Udblacute=368,e.Udblgrave=532,e.Udieresis=220,e.Udieresisacute=471,e.Udieresisbelow=7794,e.Udieresiscaron=473,e.Udieresiscyrillic=1264,e.Udieresisgrave=475,e.Udieresismacron=469,e.Udieresissmall=63484,e.Udotbelow=7908,e.Ugrave=217,e.Ugravesmall=63481,e.Uhookabove=7910,e.Uhorn=431,e.Uhornacute=7912,e.Uhorndotbelow=7920,e.Uhorngrave=7914,e.Uhornhookabove=7916,e.Uhorntilde=7918,e.Uhungarumlaut=368,e.Uhungarumlautcyrillic=1266,e.Uinvertedbreve=534,e.Ukcyrillic=1144,e.Umacron=362,e.Umacroncyrillic=1262,e.Umacrondieresis=7802,e.Umonospace=65333,e.Uogonek=370,e.Upsilon=933,e.Upsilon1=978,e.Upsilonacutehooksymbolgreek=979,e.Upsilonafrican=433,e.Upsilondieresis=939,e.Upsilondieresishooksymbolgreek=980,e.Upsilonhooksymbol=978,e.Upsilontonos=910,e.Uring=366,e.Ushortcyrillic=1038,e.Usmall=63349,e.Ustraightcyrillic=1198,e.Ustraightstrokecyrillic=1200,e.Utilde=360,e.Utildeacute=7800,e.Utildebelow=7796,e.V=86,e.Vcircle=9419,e.Vdotbelow=7806,e.Vecyrillic=1042,e.Vewarmenian=1358,e.Vhook=434,e.Vmonospace=65334,e.Voarmenian=1352,e.Vsmall=63350,e.Vtilde=7804,e.W=87,e.Wacute=7810,e.Wcircle=9420,e.Wcircumflex=372,e.Wdieresis=7812,e.Wdotaccent=7814,e.Wdotbelow=7816,e.Wgrave=7808,e.Wmonospace=65335,e.Wsmall=63351,e.X=88,e.Xcircle=9421,e.Xdieresis=7820,e.Xdotaccent=7818,e.Xeharmenian=1341,e.Xi=926,e.Xmonospace=65336,e.Xsmall=63352,e.Y=89,e.Yacute=221,e.Yacutesmall=63485,e.Yatcyrillic=1122,e.Ycircle=9422,e.Ycircumflex=374,e.Ydieresis=376,e.Ydieresissmall=63487,e.Ydotaccent=7822,e.Ydotbelow=7924,e.Yericyrillic=1067,e.Yerudieresiscyrillic=1272,e.Ygrave=7922,e.Yhook=435,e.Yhookabove=7926,e.Yiarmenian=1349,e.Yicyrillic=1031,e.Yiwnarmenian=1362,e.Ymonospace=65337,e.Ysmall=63353,e.Ytilde=7928,e.Yusbigcyrillic=1130,e.Yusbigiotifiedcyrillic=1132,e.Yuslittlecyrillic=1126,e.Yuslittleiotifiedcyrillic=1128,e.Z=90,e.Zaarmenian=1334,e.Zacute=377,e.Zcaron=381,e.Zcaronsmall=63231,e.Zcircle=9423,e.Zcircumflex=7824,e.Zdot=379,e.Zdotaccent=379,e.Zdotbelow=7826,e.Zecyrillic=1047,e.Zedescendercyrillic=1176,e.Zedieresiscyrillic=1246,e.Zeta=918,e.Zhearmenian=1338,e.Zhebrevecyrillic=1217,e.Zhecyrillic=1046,e.Zhedescendercyrillic=1174,e.Zhedieresiscyrillic=1244,e.Zlinebelow=7828,e.Zmonospace=65338,e.Zsmall=63354,e.Zstroke=437,e.a=97,e.aabengali=2438,e.aacute=225,e.aadeva=2310,e.aagujarati=2694,e.aagurmukhi=2566,e.aamatragurmukhi=2622,e.aarusquare=13059,e.aavowelsignbengali=2494,e.aavowelsigndeva=2366,e.aavowelsigngujarati=2750,e.abbreviationmarkarmenian=1375,e.abbreviationsigndeva=2416,e.abengali=2437,e.abopomofo=12570,e.abreve=259,e.abreveacute=7855,e.abrevecyrillic=1233,e.abrevedotbelow=7863,e.abrevegrave=7857,e.abrevehookabove=7859,e.abrevetilde=7861,e.acaron=462,e.acircle=9424,e.acircumflex=226,e.acircumflexacute=7845,e.acircumflexdotbelow=7853,e.acircumflexgrave=7847,e.acircumflexhookabove=7849,e.acircumflextilde=7851,e.acute=180,e.acutebelowcmb=791,e.acutecmb=769,e.acutecomb=769,e.acutedeva=2388,e.acutelowmod=719,e.acutetonecmb=833,e.acyrillic=1072,e.adblgrave=513,e.addakgurmukhi=2673,e.adeva=2309,e.adieresis=228,e.adieresiscyrillic=1235,e.adieresismacron=479,e.adotbelow=7841,e.adotmacron=481,e.ae=230,e.aeacute=509,e.aekorean=12624,e.aemacron=483,e.afii00208=8213,e.afii08941=8356,e.afii10017=1040,e.afii10018=1041,e.afii10019=1042,e.afii10020=1043,e.afii10021=1044,e.afii10022=1045,e.afii10023=1025,e.afii10024=1046,e.afii10025=1047,e.afii10026=1048,e.afii10027=1049,e.afii10028=1050,e.afii10029=1051,e.afii10030=1052,e.afii10031=1053,e.afii10032=1054,e.afii10033=1055,e.afii10034=1056,e.afii10035=1057,e.afii10036=1058,e.afii10037=1059,e.afii10038=1060,e.afii10039=1061,e.afii10040=1062,e.afii10041=1063,e.afii10042=1064,e.afii10043=1065,e.afii10044=1066,e.afii10045=1067,e.afii10046=1068,e.afii10047=1069,e.afii10048=1070,e.afii10049=1071,e.afii10050=1168,e.afii10051=1026,e.afii10052=1027,e.afii10053=1028,e.afii10054=1029,e.afii10055=1030,e.afii10056=1031,e.afii10057=1032,e.afii10058=1033,e.afii10059=1034,e.afii10060=1035,e.afii10061=1036,e.afii10062=1038,e.afii10063=63172,e.afii10064=63173,e.afii10065=1072,e.afii10066=1073,e.afii10067=1074,e.afii10068=1075,e.afii10069=1076,e.afii10070=1077,e.afii10071=1105,e.afii10072=1078,e.afii10073=1079,e.afii10074=1080,e.afii10075=1081,e.afii10076=1082,e.afii10077=1083,e.afii10078=1084,e.afii10079=1085,e.afii10080=1086,e.afii10081=1087,e.afii10082=1088,e.afii10083=1089,e.afii10084=1090,e.afii10085=1091,e.afii10086=1092,e.afii10087=1093,e.afii10088=1094,e.afii10089=1095,e.afii10090=1096,e.afii10091=1097,e.afii10092=1098,e.afii10093=1099,e.afii10094=1100,e.afii10095=1101,e.afii10096=1102,e.afii10097=1103,e.afii10098=1169,e.afii10099=1106,e.afii10100=1107,e.afii10101=1108,e.afii10102=1109,e.afii10103=1110,e.afii10104=1111,e.afii10105=1112,e.afii10106=1113,e.afii10107=1114,e.afii10108=1115,e.afii10109=1116,e.afii10110=1118,e.afii10145=1039,e.afii10146=1122,e.afii10147=1138,e.afii10148=1140,e.afii10192=63174,e.afii10193=1119,e.afii10194=1123,e.afii10195=1139,e.afii10196=1141,e.afii10831=63175,e.afii10832=63176,e.afii10846=1241,e.afii299=8206,e.afii300=8207,e.afii301=8205,e.afii57381=1642,e.afii57388=1548,e.afii57392=1632,e.afii57393=1633,e.afii57394=1634,e.afii57395=1635,e.afii57396=1636,e.afii57397=1637,e.afii57398=1638,e.afii57399=1639,e.afii57400=1640,e.afii57401=1641,e.afii57403=1563,e.afii57407=1567,e.afii57409=1569,e.afii57410=1570,e.afii57411=1571,e.afii57412=1572,e.afii57413=1573,e.afii57414=1574,e.afii57415=1575,e.afii57416=1576,e.afii57417=1577,e.afii57418=1578,e.afii57419=1579,e.afii57420=1580,e.afii57421=1581,e.afii57422=1582,e.afii57423=1583,e.afii57424=1584,e.afii57425=1585,e.afii57426=1586,e.afii57427=1587,e.afii57428=1588,e.afii57429=1589,e.afii57430=1590,e.afii57431=1591,e.afii57432=1592,e.afii57433=1593,e.afii57434=1594,e.afii57440=1600,e.afii57441=1601,e.afii57442=1602,e.afii57443=1603,e.afii57444=1604,e.afii57445=1605,e.afii57446=1606,e.afii57448=1608,e.afii57449=1609,e.afii57450=1610,e.afii57451=1611,e.afii57452=1612,e.afii57453=1613,e.afii57454=1614,e.afii57455=1615,e.afii57456=1616,e.afii57457=1617,e.afii57458=1618,e.afii57470=1607,e.afii57505=1700,e.afii57506=1662,e.afii57507=1670,e.afii57508=1688,e.afii57509=1711,e.afii57511=1657,e.afii57512=1672,e.afii57513=1681,e.afii57514=1722,e.afii57519=1746,e.afii57534=1749,e.afii57636=8362,e.afii57645=1470,e.afii57658=1475,e.afii57664=1488,e.afii57665=1489,e.afii57666=1490,e.afii57667=1491,e.afii57668=1492,e.afii57669=1493,e.afii57670=1494,e.afii57671=1495,e.afii57672=1496,e.afii57673=1497,e.afii57674=1498,e.afii57675=1499,e.afii57676=1500,e.afii57677=1501,e.afii57678=1502,e.afii57679=1503,e.afii57680=1504,e.afii57681=1505,e.afii57682=1506,e.afii57683=1507,e.afii57684=1508,e.afii57685=1509,e.afii57686=1510,e.afii57687=1511,e.afii57688=1512,e.afii57689=1513,e.afii57690=1514,e.afii57694=64298,e.afii57695=64299,e.afii57700=64331,e.afii57705=64287,e.afii57716=1520,e.afii57717=1521,e.afii57718=1522,e.afii57723=64309,e.afii57793=1460,e.afii57794=1461,e.afii57795=1462,e.afii57796=1467,e.afii57797=1464,e.afii57798=1463,e.afii57799=1456,e.afii57800=1458,e.afii57801=1457,e.afii57802=1459,e.afii57803=1474,e.afii57804=1473,e.afii57806=1465,e.afii57807=1468,e.afii57839=1469,e.afii57841=1471,e.afii57842=1472,e.afii57929=700,e.afii61248=8453,e.afii61289=8467,e.afii61352=8470,e.afii61573=8236,e.afii61574=8237,e.afii61575=8238,e.afii61664=8204,e.afii63167=1645,e.afii64937=701,e.agrave=224,e.agujarati=2693,e.agurmukhi=2565,e.ahiragana=12354,e.ahookabove=7843,e.aibengali=2448,e.aibopomofo=12574,e.aideva=2320,e.aiecyrillic=1237,e.aigujarati=2704,e.aigurmukhi=2576,e.aimatragurmukhi=2632,e.ainarabic=1593,e.ainfinalarabic=65226,e.aininitialarabic=65227,e.ainmedialarabic=65228,e.ainvertedbreve=515,e.aivowelsignbengali=2504,e.aivowelsigndeva=2376,e.aivowelsigngujarati=2760,e.akatakana=12450,e.akatakanahalfwidth=65393,e.akorean=12623,e.alef=1488,e.alefarabic=1575,e.alefdageshhebrew=64304,e.aleffinalarabic=65166,e.alefhamzaabovearabic=1571,e.alefhamzaabovefinalarabic=65156,e.alefhamzabelowarabic=1573,e.alefhamzabelowfinalarabic=65160,e.alefhebrew=1488,e.aleflamedhebrew=64335,e.alefmaddaabovearabic=1570,e.alefmaddaabovefinalarabic=65154,e.alefmaksuraarabic=1609,e.alefmaksurafinalarabic=65264,e.alefmaksurainitialarabic=65267,e.alefmaksuramedialarabic=65268,e.alefpatahhebrew=64302,e.alefqamatshebrew=64303,e.aleph=8501,e.allequal=8780,e.alpha=945,e.alphatonos=940,e.amacron=257,e.amonospace=65345,e.ampersand=38,e.ampersandmonospace=65286,e.ampersandsmall=63270,e.amsquare=13250,e.anbopomofo=12578,e.angbopomofo=12580,e.angbracketleft=12296,e.angbracketright=12297,e.angkhankhuthai=3674,e.angle=8736,e.anglebracketleft=12296,e.anglebracketleftvertical=65087,e.anglebracketright=12297,e.anglebracketrightvertical=65088,e.angleleft=9001,e.angleright=9002,e.angstrom=8491,e.anoteleia=903,e.anudattadeva=2386,e.anusvarabengali=2434,e.anusvaradeva=2306,e.anusvaragujarati=2690,e.aogonek=261,e.apaatosquare=13056,e.aparen=9372,e.apostrophearmenian=1370,e.apostrophemod=700,e.apple=63743,e.approaches=8784,e.approxequal=8776,e.approxequalorimage=8786,e.approximatelyequal=8773,e.araeaekorean=12686,e.araeakorean=12685,e.arc=8978,e.arighthalfring=7834,e.aring=229,e.aringacute=507,e.aringbelow=7681,e.arrowboth=8596,e.arrowdashdown=8675,e.arrowdashleft=8672,e.arrowdashright=8674,e.arrowdashup=8673,e.arrowdblboth=8660,e.arrowdbldown=8659,e.arrowdblleft=8656,e.arrowdblright=8658,e.arrowdblup=8657,e.arrowdown=8595,e.arrowdownleft=8601,e.arrowdownright=8600,e.arrowdownwhite=8681,e.arrowheaddownmod=709,e.arrowheadleftmod=706,e.arrowheadrightmod=707,e.arrowheadupmod=708,e.arrowhorizex=63719,e.arrowleft=8592,e.arrowleftdbl=8656,e.arrowleftdblstroke=8653,e.arrowleftoverright=8646,e.arrowleftwhite=8678,e.arrowright=8594,e.arrowrightdblstroke=8655,e.arrowrightheavy=10142,e.arrowrightoverleft=8644,e.arrowrightwhite=8680,e.arrowtableft=8676,e.arrowtabright=8677,e.arrowup=8593,e.arrowupdn=8597,e.arrowupdnbse=8616,e.arrowupdownbase=8616,e.arrowupleft=8598,e.arrowupleftofdown=8645,e.arrowupright=8599,e.arrowupwhite=8679,e.arrowvertex=63718,e.asciicircum=94,e.asciicircummonospace=65342,e.asciitilde=126,e.asciitildemonospace=65374,e.ascript=593,e.ascriptturned=594,e.asmallhiragana=12353,e.asmallkatakana=12449,e.asmallkatakanahalfwidth=65383,e.asterisk=42,e.asteriskaltonearabic=1645,e.asteriskarabic=1645,e.asteriskmath=8727,e.asteriskmonospace=65290,e.asterisksmall=65121,e.asterism=8258,e.asuperior=63209,e.asymptoticallyequal=8771,e.at=64,e.atilde=227,e.atmonospace=65312,e.atsmall=65131,e.aturned=592,e.aubengali=2452,e.aubopomofo=12576,e.audeva=2324,e.augujarati=2708,e.augurmukhi=2580,e.aulengthmarkbengali=2519,e.aumatragurmukhi=2636,e.auvowelsignbengali=2508,e.auvowelsigndeva=2380,e.auvowelsigngujarati=2764,e.avagrahadeva=2365,e.aybarmenian=1377,e.ayin=1506,e.ayinaltonehebrew=64288,e.ayinhebrew=1506,e.b=98,e.babengali=2476,e.backslash=92,e.backslashmonospace=65340,e.badeva=2348,e.bagujarati=2732,e.bagurmukhi=2604,e.bahiragana=12400,e.bahtthai=3647,e.bakatakana=12496,e.bar=124,e.barmonospace=65372,e.bbopomofo=12549,e.bcircle=9425,e.bdotaccent=7683,e.bdotbelow=7685,e.beamedsixteenthnotes=9836,e.because=8757,e.becyrillic=1073,e.beharabic=1576,e.behfinalarabic=65168,e.behinitialarabic=65169,e.behiragana=12409,e.behmedialarabic=65170,e.behmeeminitialarabic=64671,e.behmeemisolatedarabic=64520,e.behnoonfinalarabic=64621,e.bekatakana=12505,e.benarmenian=1378,e.bet=1489,e.beta=946,e.betasymbolgreek=976,e.betdagesh=64305,e.betdageshhebrew=64305,e.bethebrew=1489,e.betrafehebrew=64332,e.bhabengali=2477,e.bhadeva=2349,e.bhagujarati=2733,e.bhagurmukhi=2605,e.bhook=595,e.bihiragana=12403,e.bikatakana=12499,e.bilabialclick=664,e.bindigurmukhi=2562,e.birusquare=13105,e.blackcircle=9679,e.blackdiamond=9670,e.blackdownpointingtriangle=9660,e.blackleftpointingpointer=9668,e.blackleftpointingtriangle=9664,e.blacklenticularbracketleft=12304,e.blacklenticularbracketleftvertical=65083,e.blacklenticularbracketright=12305,e.blacklenticularbracketrightvertical=65084,e.blacklowerlefttriangle=9699,e.blacklowerrighttriangle=9698,e.blackrectangle=9644,e.blackrightpointingpointer=9658,e.blackrightpointingtriangle=9654,e.blacksmallsquare=9642,e.blacksmilingface=9787,e.blacksquare=9632,e.blackstar=9733,e.blackupperlefttriangle=9700,e.blackupperrighttriangle=9701,e.blackuppointingsmalltriangle=9652,e.blackuppointingtriangle=9650,e.blank=9251,e.blinebelow=7687,e.block=9608,e.bmonospace=65346,e.bobaimaithai=3610,e.bohiragana=12412,e.bokatakana=12508,e.bparen=9373,e.bqsquare=13251,e.braceex=63732,e.braceleft=123,e.braceleftbt=63731,e.braceleftmid=63730,e.braceleftmonospace=65371,e.braceleftsmall=65115,e.bracelefttp=63729,e.braceleftvertical=65079,e.braceright=125,e.bracerightbt=63742,e.bracerightmid=63741,e.bracerightmonospace=65373,e.bracerightsmall=65116,e.bracerighttp=63740,e.bracerightvertical=65080,e.bracketleft=91,e.bracketleftbt=63728,e.bracketleftex=63727,e.bracketleftmonospace=65339,e.bracketlefttp=63726,e.bracketright=93,e.bracketrightbt=63739,e.bracketrightex=63738,e.bracketrightmonospace=65341,e.bracketrighttp=63737,e.breve=728,e.brevebelowcmb=814,e.brevecmb=774,e.breveinvertedbelowcmb=815,e.breveinvertedcmb=785,e.breveinverteddoublecmb=865,e.bridgebelowcmb=810,e.bridgeinvertedbelowcmb=826,e.brokenbar=166,e.bstroke=384,e.bsuperior=63210,e.btopbar=387,e.buhiragana=12406,e.bukatakana=12502,e.bullet=8226,e.bulletinverse=9688,e.bulletoperator=8729,e.bullseye=9678,e.c=99,e.caarmenian=1390,e.cabengali=2458,e.cacute=263,e.cadeva=2330,e.cagujarati=2714,e.cagurmukhi=2586,e.calsquare=13192,e.candrabindubengali=2433,e.candrabinducmb=784,e.candrabindudeva=2305,e.candrabindugujarati=2689,e.capslock=8682,e.careof=8453,e.caron=711,e.caronbelowcmb=812,e.caroncmb=780,e.carriagereturn=8629,e.cbopomofo=12568,e.ccaron=269,e.ccedilla=231,e.ccedillaacute=7689,e.ccircle=9426,e.ccircumflex=265,e.ccurl=597,e.cdot=267,e.cdotaccent=267,e.cdsquare=13253,e.cedilla=184,e.cedillacmb=807,e.cent=162,e.centigrade=8451,e.centinferior=63199,e.centmonospace=65504,e.centoldstyle=63394,e.centsuperior=63200,e.chaarmenian=1401,e.chabengali=2459,e.chadeva=2331,e.chagujarati=2715,e.chagurmukhi=2587,e.chbopomofo=12564,e.cheabkhasiancyrillic=1213,e.checkmark=10003,e.checyrillic=1095,e.chedescenderabkhasiancyrillic=1215,e.chedescendercyrillic=1207,e.chedieresiscyrillic=1269,e.cheharmenian=1395,e.chekhakassiancyrillic=1228,e.cheverticalstrokecyrillic=1209,e.chi=967,e.chieuchacirclekorean=12919,e.chieuchaparenkorean=12823,e.chieuchcirclekorean=12905,e.chieuchkorean=12618,e.chieuchparenkorean=12809,e.chochangthai=3594,e.chochanthai=3592,e.chochingthai=3593,e.chochoethai=3596,e.chook=392,e.cieucacirclekorean=12918,e.cieucaparenkorean=12822,e.cieuccirclekorean=12904,e.cieuckorean=12616,e.cieucparenkorean=12808,e.cieucuparenkorean=12828,e.circle=9675,e.circlecopyrt=169,e.circlemultiply=8855,e.circleot=8857,e.circleplus=8853,e.circlepostalmark=12342,e.circlewithlefthalfblack=9680,e.circlewithrighthalfblack=9681,e.circumflex=710,e.circumflexbelowcmb=813,e.circumflexcmb=770,e.clear=8999,e.clickalveolar=450,e.clickdental=448,e.clicklateral=449,e.clickretroflex=451,e.club=9827,e.clubsuitblack=9827,e.clubsuitwhite=9831,e.cmcubedsquare=13220,e.cmonospace=65347,e.cmsquaredsquare=13216,e.coarmenian=1409,e.colon=58,e.colonmonetary=8353,e.colonmonospace=65306,e.colonsign=8353,e.colonsmall=65109,e.colontriangularhalfmod=721,e.colontriangularmod=720,e.comma=44,e.commaabovecmb=787,e.commaaboverightcmb=789,e.commaaccent=63171,e.commaarabic=1548,e.commaarmenian=1373,e.commainferior=63201,e.commamonospace=65292,e.commareversedabovecmb=788,e.commareversedmod=701,e.commasmall=65104,e.commasuperior=63202,e.commaturnedabovecmb=786,e.commaturnedmod=699,e.compass=9788,e.congruent=8773,e.contourintegral=8750,e.control=8963,e.controlACK=6,e.controlBEL=7,e.controlBS=8,e.controlCAN=24,e.controlCR=13,e.controlDC1=17,e.controlDC2=18,e.controlDC3=19,e.controlDC4=20,e.controlDEL=127,e.controlDLE=16,e.controlEM=25,e.controlENQ=5,e.controlEOT=4,e.controlESC=27,e.controlETB=23,e.controlETX=3,e.controlFF=12,e.controlFS=28,e.controlGS=29,e.controlHT=9,e.controlLF=10,e.controlNAK=21,e.controlNULL=0,e.controlRS=30,e.controlSI=15,e.controlSO=14,e.controlSOT=2,e.controlSTX=1,e.controlSUB=26,e.controlSYN=22,e.controlUS=31,e.controlVT=11,e.copyright=169,e.copyrightsans=63721,e.copyrightserif=63193,e.cornerbracketleft=12300,e.cornerbracketlefthalfwidth=65378,e.cornerbracketleftvertical=65089,e.cornerbracketright=12301,e.cornerbracketrighthalfwidth=65379,e.cornerbracketrightvertical=65090,e.corporationsquare=13183,e.cosquare=13255,e.coverkgsquare=13254,e.cparen=9374,e.cruzeiro=8354,e.cstretched=663,e.curlyand=8911,e.curlyor=8910,e.currency=164,e.cyrBreve=63185,e.cyrFlex=63186,e.cyrbreve=63188,e.cyrflex=63189,e.d=100,e.daarmenian=1380,e.dabengali=2470,e.dadarabic=1590,e.dadeva=2342,e.dadfinalarabic=65214,e.dadinitialarabic=65215,e.dadmedialarabic=65216,e.dagesh=1468,e.dageshhebrew=1468,e.dagger=8224,e.daggerdbl=8225,e.dagujarati=2726,e.dagurmukhi=2598,e.dahiragana=12384,e.dakatakana=12480,e.dalarabic=1583,e.dalet=1491,e.daletdagesh=64307,e.daletdageshhebrew=64307,e.dalethebrew=1491,e.dalfinalarabic=65194,e.dammaarabic=1615,e.dammalowarabic=1615,e.dammatanaltonearabic=1612,e.dammatanarabic=1612,e.danda=2404,e.dargahebrew=1447,e.dargalefthebrew=1447,e.dasiapneumatacyrilliccmb=1157,e.dblGrave=63187,e.dblanglebracketleft=12298,e.dblanglebracketleftvertical=65085,e.dblanglebracketright=12299,e.dblanglebracketrightvertical=65086,e.dblarchinvertedbelowcmb=811,e.dblarrowleft=8660,e.dblarrowright=8658,e.dbldanda=2405,e.dblgrave=63190,e.dblgravecmb=783,e.dblintegral=8748,e.dbllowline=8215,e.dbllowlinecmb=819,e.dbloverlinecmb=831,e.dblprimemod=698,e.dblverticalbar=8214,e.dblverticallineabovecmb=782,e.dbopomofo=12553,e.dbsquare=13256,e.dcaron=271,e.dcedilla=7697,e.dcircle=9427,e.dcircumflexbelow=7699,e.dcroat=273,e.ddabengali=2465,e.ddadeva=2337,e.ddagujarati=2721,e.ddagurmukhi=2593,e.ddalarabic=1672,e.ddalfinalarabic=64393,e.dddhadeva=2396,e.ddhabengali=2466,e.ddhadeva=2338,e.ddhagujarati=2722,e.ddhagurmukhi=2594,e.ddotaccent=7691,e.ddotbelow=7693,e.decimalseparatorarabic=1643,e.decimalseparatorpersian=1643,e.decyrillic=1076,e.degree=176,e.dehihebrew=1453,e.dehiragana=12391,e.deicoptic=1007,e.dekatakana=12487,e.deleteleft=9003,e.deleteright=8998,e.delta=948,e.deltaturned=397,e.denominatorminusonenumeratorbengali=2552,e.dezh=676,e.dhabengali=2471,e.dhadeva=2343,e.dhagujarati=2727,e.dhagurmukhi=2599,e.dhook=599,e.dialytikatonos=901,e.dialytikatonoscmb=836,e.diamond=9830,e.diamondsuitwhite=9826,e.dieresis=168,e.dieresisacute=63191,e.dieresisbelowcmb=804,e.dieresiscmb=776,e.dieresisgrave=63192,e.dieresistonos=901,e.dihiragana=12386,e.dikatakana=12482,e.dittomark=12291,e.divide=247,e.divides=8739,e.divisionslash=8725,e.djecyrillic=1106,e.dkshade=9619,e.dlinebelow=7695,e.dlsquare=13207,e.dmacron=273,e.dmonospace=65348,e.dnblock=9604,e.dochadathai=3598,e.dodekthai=3604,e.dohiragana=12393,e.dokatakana=12489,e.dollar=36,e.dollarinferior=63203,e.dollarmonospace=65284,e.dollaroldstyle=63268,e.dollarsmall=65129,e.dollarsuperior=63204,e.dong=8363,e.dorusquare=13094,e.dotaccent=729,e.dotaccentcmb=775,e.dotbelowcmb=803,e.dotbelowcomb=803,e.dotkatakana=12539,e.dotlessi=305,e.dotlessj=63166,e.dotlessjstrokehook=644,e.dotmath=8901,e.dottedcircle=9676,e.doubleyodpatah=64287,e.doubleyodpatahhebrew=64287,e.downtackbelowcmb=798,e.downtackmod=725,e.dparen=9375,e.dsuperior=63211,e.dtail=598,e.dtopbar=396,e.duhiragana=12389,e.dukatakana=12485,e.dz=499,e.dzaltone=675,e.dzcaron=454,e.dzcurl=677,e.dzeabkhasiancyrillic=1249,e.dzecyrillic=1109,e.dzhecyrillic=1119,e.e=101,e.eacute=233,e.earth=9793,e.ebengali=2447,e.ebopomofo=12572,e.ebreve=277,e.ecandradeva=2317,e.ecandragujarati=2701,e.ecandravowelsigndeva=2373,e.ecandravowelsigngujarati=2757,e.ecaron=283,e.ecedillabreve=7709,e.echarmenian=1381,e.echyiwnarmenian=1415,e.ecircle=9428,e.ecircumflex=234,e.ecircumflexacute=7871,e.ecircumflexbelow=7705,e.ecircumflexdotbelow=7879,e.ecircumflexgrave=7873,e.ecircumflexhookabove=7875,e.ecircumflextilde=7877,e.ecyrillic=1108,e.edblgrave=517,e.edeva=2319,e.edieresis=235,e.edot=279,e.edotaccent=279,e.edotbelow=7865,e.eegurmukhi=2575,e.eematragurmukhi=2631,e.efcyrillic=1092,e.egrave=232,e.egujarati=2703,e.eharmenian=1383,e.ehbopomofo=12573,e.ehiragana=12360,e.ehookabove=7867,e.eibopomofo=12575,e.eight=56,e.eightarabic=1640,e.eightbengali=2542,e.eightcircle=9319,e.eightcircleinversesansserif=10129,e.eightdeva=2414,e.eighteencircle=9329,e.eighteenparen=9349,e.eighteenperiod=9369,e.eightgujarati=2798,e.eightgurmukhi=2670,e.eighthackarabic=1640,e.eighthangzhou=12328,e.eighthnotebeamed=9835,e.eightideographicparen=12839,e.eightinferior=8328,e.eightmonospace=65304,e.eightoldstyle=63288,e.eightparen=9339,e.eightperiod=9359,e.eightpersian=1784,e.eightroman=8567,e.eightsuperior=8312,e.eightthai=3672,e.einvertedbreve=519,e.eiotifiedcyrillic=1125,e.ekatakana=12456,e.ekatakanahalfwidth=65396,e.ekonkargurmukhi=2676,e.ekorean=12628,e.elcyrillic=1083,e.element=8712,e.elevencircle=9322,e.elevenparen=9342,e.elevenperiod=9362,e.elevenroman=8570,e.ellipsis=8230,e.ellipsisvertical=8942,e.emacron=275,e.emacronacute=7703,e.emacrongrave=7701,e.emcyrillic=1084,e.emdash=8212,e.emdashvertical=65073,e.emonospace=65349,e.emphasismarkarmenian=1371,e.emptyset=8709,e.enbopomofo=12579,e.encyrillic=1085,e.endash=8211,e.endashvertical=65074,e.endescendercyrillic=1187,e.eng=331,e.engbopomofo=12581,e.enghecyrillic=1189,e.enhookcyrillic=1224,e.enspace=8194,e.eogonek=281,e.eokorean=12627,e.eopen=603,e.eopenclosed=666,e.eopenreversed=604,e.eopenreversedclosed=606,e.eopenreversedhook=605,e.eparen=9376,e.epsilon=949,e.epsilontonos=941,e.equal=61,e.equalmonospace=65309,e.equalsmall=65126,e.equalsuperior=8316,e.equivalence=8801,e.erbopomofo=12582,e.ercyrillic=1088,e.ereversed=600,e.ereversedcyrillic=1101,e.escyrillic=1089,e.esdescendercyrillic=1195,e.esh=643,e.eshcurl=646,e.eshortdeva=2318,e.eshortvowelsigndeva=2374,e.eshreversedloop=426,e.eshsquatreversed=645,e.esmallhiragana=12359,e.esmallkatakana=12455,e.esmallkatakanahalfwidth=65386,e.estimated=8494,e.esuperior=63212,e.eta=951,e.etarmenian=1384,e.etatonos=942,e.eth=240,e.etilde=7869,e.etildebelow=7707,e.etnahtafoukhhebrew=1425,e.etnahtafoukhlefthebrew=1425,e.etnahtahebrew=1425,e.etnahtalefthebrew=1425,e.eturned=477,e.eukorean=12641,e.euro=8364,e.evowelsignbengali=2503,e.evowelsigndeva=2375,e.evowelsigngujarati=2759,e.exclam=33,e.exclamarmenian=1372,e.exclamdbl=8252,e.exclamdown=161,e.exclamdownsmall=63393,e.exclammonospace=65281,e.exclamsmall=63265,e.existential=8707,e.ezh=658,e.ezhcaron=495,e.ezhcurl=659,e.ezhreversed=441,e.ezhtail=442,e.f=102,e.fadeva=2398,e.fagurmukhi=2654,e.fahrenheit=8457,e.fathaarabic=1614,e.fathalowarabic=1614,e.fathatanarabic=1611,e.fbopomofo=12552,e.fcircle=9429,e.fdotaccent=7711,e.feharabic=1601,e.feharmenian=1414,e.fehfinalarabic=65234,e.fehinitialarabic=65235,e.fehmedialarabic=65236,e.feicoptic=997,e.female=9792,e.ff=64256,e.f_f=64256,e.ffi=64259,e.f_f_i=64259,e.ffl=64260,e.f_f_l=64260,e.fi=64257,e.f_i=64257,e.fifteencircle=9326,e.fifteenparen=9346,e.fifteenperiod=9366,e.figuredash=8210,e.filledbox=9632,e.filledrect=9644,e.finalkaf=1498,e.finalkafdagesh=64314,e.finalkafdageshhebrew=64314,e.finalkafhebrew=1498,e.finalmem=1501,e.finalmemhebrew=1501,e.finalnun=1503,e.finalnunhebrew=1503,e.finalpe=1507,e.finalpehebrew=1507,e.finaltsadi=1509,e.finaltsadihebrew=1509,e.firsttonechinese=713,e.fisheye=9673,e.fitacyrillic=1139,e.five=53,e.fivearabic=1637,e.fivebengali=2539,e.fivecircle=9316,e.fivecircleinversesansserif=10126,e.fivedeva=2411,e.fiveeighths=8541,e.fivegujarati=2795,e.fivegurmukhi=2667,e.fivehackarabic=1637,e.fivehangzhou=12325,e.fiveideographicparen=12836,e.fiveinferior=8325,e.fivemonospace=65301,e.fiveoldstyle=63285,e.fiveparen=9336,e.fiveperiod=9356,e.fivepersian=1781,e.fiveroman=8564,e.fivesuperior=8309,e.fivethai=3669,e.fl=64258,e.f_l=64258,e.florin=402,e.fmonospace=65350,e.fmsquare=13209,e.fofanthai=3615,e.fofathai=3613,e.fongmanthai=3663,e.forall=8704,e.four=52,e.fourarabic=1636,e.fourbengali=2538,e.fourcircle=9315,e.fourcircleinversesansserif=10125,e.fourdeva=2410,e.fourgujarati=2794,e.fourgurmukhi=2666,e.fourhackarabic=1636,e.fourhangzhou=12324,e.fourideographicparen=12835,e.fourinferior=8324,e.fourmonospace=65300,e.fournumeratorbengali=2551,e.fouroldstyle=63284,e.fourparen=9335,e.fourperiod=9355,e.fourpersian=1780,e.fourroman=8563,e.foursuperior=8308,e.fourteencircle=9325,e.fourteenparen=9345,e.fourteenperiod=9365,e.fourthai=3668,e.fourthtonechinese=715,e.fparen=9377,e.fraction=8260,e.franc=8355,e.g=103,e.gabengali=2455,e.gacute=501,e.gadeva=2327,e.gafarabic=1711,e.gaffinalarabic=64403,e.gafinitialarabic=64404,e.gafmedialarabic=64405,e.gagujarati=2711,e.gagurmukhi=2583,e.gahiragana=12364,e.gakatakana=12460,e.gamma=947,e.gammalatinsmall=611,e.gammasuperior=736,e.gangiacoptic=1003,e.gbopomofo=12557,e.gbreve=287,e.gcaron=487,e.gcedilla=291,e.gcircle=9430,e.gcircumflex=285,e.gcommaaccent=291,e.gdot=289,e.gdotaccent=289,e.gecyrillic=1075,e.gehiragana=12370,e.gekatakana=12466,e.geometricallyequal=8785,e.gereshaccenthebrew=1436,e.gereshhebrew=1523,e.gereshmuqdamhebrew=1437,e.germandbls=223,e.gershayimaccenthebrew=1438,e.gershayimhebrew=1524,e.getamark=12307,e.ghabengali=2456,e.ghadarmenian=1394,e.ghadeva=2328,e.ghagujarati=2712,e.ghagurmukhi=2584,e.ghainarabic=1594,e.ghainfinalarabic=65230,e.ghaininitialarabic=65231,e.ghainmedialarabic=65232,e.ghemiddlehookcyrillic=1173,e.ghestrokecyrillic=1171,e.gheupturncyrillic=1169,e.ghhadeva=2394,e.ghhagurmukhi=2650,e.ghook=608,e.ghzsquare=13203,e.gihiragana=12366,e.gikatakana=12462,e.gimarmenian=1379,e.gimel=1490,e.gimeldagesh=64306,e.gimeldageshhebrew=64306,e.gimelhebrew=1490,e.gjecyrillic=1107,e.glottalinvertedstroke=446,e.glottalstop=660,e.glottalstopinverted=662,e.glottalstopmod=704,e.glottalstopreversed=661,e.glottalstopreversedmod=705,e.glottalstopreversedsuperior=740,e.glottalstopstroke=673,e.glottalstopstrokereversed=674,e.gmacron=7713,e.gmonospace=65351,e.gohiragana=12372,e.gokatakana=12468,e.gparen=9378,e.gpasquare=13228,e.gradient=8711,e.grave=96,e.gravebelowcmb=790,e.gravecmb=768,e.gravecomb=768,e.gravedeva=2387,e.gravelowmod=718,e.gravemonospace=65344,e.gravetonecmb=832,e.greater=62,e.greaterequal=8805,e.greaterequalorless=8923,e.greatermonospace=65310,e.greaterorequivalent=8819,e.greaterorless=8823,e.greateroverequal=8807,e.greatersmall=65125,e.gscript=609,e.gstroke=485,e.guhiragana=12368,e.guillemotleft=171,e.guillemotright=187,e.guilsinglleft=8249,e.guilsinglright=8250,e.gukatakana=12464,e.guramusquare=13080,e.gysquare=13257,e.h=104,e.haabkhasiancyrillic=1193,e.haaltonearabic=1729,e.habengali=2489,e.hadescendercyrillic=1203,e.hadeva=2361,e.hagujarati=2745,e.hagurmukhi=2617,e.haharabic=1581,e.hahfinalarabic=65186,e.hahinitialarabic=65187,e.hahiragana=12399,e.hahmedialarabic=65188,e.haitusquare=13098,e.hakatakana=12495,e.hakatakanahalfwidth=65418,e.halantgurmukhi=2637,e.hamzaarabic=1569,e.hamzalowarabic=1569,e.hangulfiller=12644,e.hardsigncyrillic=1098,e.harpoonleftbarbup=8636,e.harpoonrightbarbup=8640,e.hasquare=13258,e.hatafpatah=1458,e.hatafpatah16=1458,e.hatafpatah23=1458,e.hatafpatah2f=1458,e.hatafpatahhebrew=1458,e.hatafpatahnarrowhebrew=1458,e.hatafpatahquarterhebrew=1458,e.hatafpatahwidehebrew=1458,e.hatafqamats=1459,e.hatafqamats1b=1459,e.hatafqamats28=1459,e.hatafqamats34=1459,e.hatafqamatshebrew=1459,e.hatafqamatsnarrowhebrew=1459,e.hatafqamatsquarterhebrew=1459,e.hatafqamatswidehebrew=1459,e.hatafsegol=1457,e.hatafsegol17=1457,e.hatafsegol24=1457,e.hatafsegol30=1457,e.hatafsegolhebrew=1457,e.hatafsegolnarrowhebrew=1457,e.hatafsegolquarterhebrew=1457,e.hatafsegolwidehebrew=1457,e.hbar=295,e.hbopomofo=12559,e.hbrevebelow=7723,e.hcedilla=7721,e.hcircle=9431,e.hcircumflex=293,e.hdieresis=7719,e.hdotaccent=7715,e.hdotbelow=7717,e.he=1492,e.heart=9829,e.heartsuitblack=9829,e.heartsuitwhite=9825,e.hedagesh=64308,e.hedageshhebrew=64308,e.hehaltonearabic=1729,e.heharabic=1607,e.hehebrew=1492,e.hehfinalaltonearabic=64423,e.hehfinalalttwoarabic=65258,e.hehfinalarabic=65258,e.hehhamzaabovefinalarabic=64421,e.hehhamzaaboveisolatedarabic=64420,e.hehinitialaltonearabic=64424,e.hehinitialarabic=65259,e.hehiragana=12408,e.hehmedialaltonearabic=64425,e.hehmedialarabic=65260,e.heiseierasquare=13179,e.hekatakana=12504,e.hekatakanahalfwidth=65421,e.hekutaarusquare=13110,e.henghook=615,e.herutusquare=13113,e.het=1495,e.hethebrew=1495,e.hhook=614,e.hhooksuperior=689,e.hieuhacirclekorean=12923,e.hieuhaparenkorean=12827,e.hieuhcirclekorean=12909,e.hieuhkorean=12622,e.hieuhparenkorean=12813,e.hihiragana=12402,e.hikatakana=12498,e.hikatakanahalfwidth=65419,e.hiriq=1460,e.hiriq14=1460,e.hiriq21=1460,e.hiriq2d=1460,e.hiriqhebrew=1460,e.hiriqnarrowhebrew=1460,e.hiriqquarterhebrew=1460,e.hiriqwidehebrew=1460,e.hlinebelow=7830,e.hmonospace=65352,e.hoarmenian=1392,e.hohipthai=3627,e.hohiragana=12411,e.hokatakana=12507,e.hokatakanahalfwidth=65422,e.holam=1465,e.holam19=1465,e.holam26=1465,e.holam32=1465,e.holamhebrew=1465,e.holamnarrowhebrew=1465,e.holamquarterhebrew=1465,e.holamwidehebrew=1465,e.honokhukthai=3630,e.hookabovecomb=777,e.hookcmb=777,e.hookpalatalizedbelowcmb=801,e.hookretroflexbelowcmb=802,e.hoonsquare=13122,e.horicoptic=1001,e.horizontalbar=8213,e.horncmb=795,e.hotsprings=9832,e.house=8962,e.hparen=9379,e.hsuperior=688,e.hturned=613,e.huhiragana=12405,e.huiitosquare=13107,e.hukatakana=12501,e.hukatakanahalfwidth=65420,e.hungarumlaut=733,e.hungarumlautcmb=779,e.hv=405,e.hyphen=45,e.hypheninferior=63205,e.hyphenmonospace=65293,e.hyphensmall=65123,e.hyphensuperior=63206,e.hyphentwo=8208,e.i=105,e.iacute=237,e.iacyrillic=1103,e.ibengali=2439,e.ibopomofo=12583,e.ibreve=301,e.icaron=464,e.icircle=9432,e.icircumflex=238,e.icyrillic=1110,e.idblgrave=521,e.ideographearthcircle=12943,e.ideographfirecircle=12939,e.ideographicallianceparen=12863,e.ideographiccallparen=12858,e.ideographiccentrecircle=12965,e.ideographicclose=12294,e.ideographiccomma=12289,e.ideographiccommaleft=65380,e.ideographiccongratulationparen=12855,e.ideographiccorrectcircle=12963,e.ideographicearthparen=12847,e.ideographicenterpriseparen=12861,e.ideographicexcellentcircle=12957,e.ideographicfestivalparen=12864,e.ideographicfinancialcircle=12950,e.ideographicfinancialparen=12854,e.ideographicfireparen=12843,e.ideographichaveparen=12850,e.ideographichighcircle=12964,e.ideographiciterationmark=12293,e.ideographiclaborcircle=12952,e.ideographiclaborparen=12856,e.ideographicleftcircle=12967,e.ideographiclowcircle=12966,e.ideographicmedicinecircle=12969,e.ideographicmetalparen=12846,e.ideographicmoonparen=12842,e.ideographicnameparen=12852,e.ideographicperiod=12290,e.ideographicprintcircle=12958,e.ideographicreachparen=12867,e.ideographicrepresentparen=12857,e.ideographicresourceparen=12862,e.ideographicrightcircle=12968,e.ideographicsecretcircle=12953,e.ideographicselfparen=12866,e.ideographicsocietyparen=12851,e.ideographicspace=12288,e.ideographicspecialparen=12853,e.ideographicstockparen=12849,e.ideographicstudyparen=12859,e.ideographicsunparen=12848,e.ideographicsuperviseparen=12860,e.ideographicwaterparen=12844,e.ideographicwoodparen=12845,e.ideographiczero=12295,e.ideographmetalcircle=12942,e.ideographmooncircle=12938,e.ideographnamecircle=12948,e.ideographsuncircle=12944,e.ideographwatercircle=12940,e.ideographwoodcircle=12941,e.ideva=2311,e.idieresis=239,e.idieresisacute=7727,e.idieresiscyrillic=1253,e.idotbelow=7883,e.iebrevecyrillic=1239,e.iecyrillic=1077,e.ieungacirclekorean=12917,e.ieungaparenkorean=12821,e.ieungcirclekorean=12903,e.ieungkorean=12615,e.ieungparenkorean=12807,e.igrave=236,e.igujarati=2695,e.igurmukhi=2567,e.ihiragana=12356,e.ihookabove=7881,e.iibengali=2440,e.iicyrillic=1080,e.iideva=2312,e.iigujarati=2696,e.iigurmukhi=2568,e.iimatragurmukhi=2624,e.iinvertedbreve=523,e.iishortcyrillic=1081,e.iivowelsignbengali=2496,e.iivowelsigndeva=2368,e.iivowelsigngujarati=2752,e.ij=307,e.ikatakana=12452,e.ikatakanahalfwidth=65394,e.ikorean=12643,e.ilde=732,e.iluyhebrew=1452,e.imacron=299,e.imacroncyrillic=1251,e.imageorapproximatelyequal=8787,e.imatragurmukhi=2623,e.imonospace=65353,e.increment=8710,e.infinity=8734,e.iniarmenian=1387,e.integral=8747,e.integralbottom=8993,e.integralbt=8993,e.integralex=63733,e.integraltop=8992,e.integraltp=8992,e.intersection=8745,e.intisquare=13061,e.invbullet=9688,e.invcircle=9689,e.invsmileface=9787,e.iocyrillic=1105,e.iogonek=303,e.iota=953,e.iotadieresis=970,e.iotadieresistonos=912,e.iotalatin=617,e.iotatonos=943,e.iparen=9380,e.irigurmukhi=2674,e.ismallhiragana=12355,e.ismallkatakana=12451,e.ismallkatakanahalfwidth=65384,e.issharbengali=2554,e.istroke=616,e.isuperior=63213,e.iterationhiragana=12445,e.iterationkatakana=12541,e.itilde=297,e.itildebelow=7725,e.iubopomofo=12585,e.iucyrillic=1102,e.ivowelsignbengali=2495,e.ivowelsigndeva=2367,e.ivowelsigngujarati=2751,e.izhitsacyrillic=1141,e.izhitsadblgravecyrillic=1143,e.j=106,e.jaarmenian=1393,e.jabengali=2460,e.jadeva=2332,e.jagujarati=2716,e.jagurmukhi=2588,e.jbopomofo=12560,e.jcaron=496,e.jcircle=9433,e.jcircumflex=309,e.jcrossedtail=669,e.jdotlessstroke=607,e.jecyrillic=1112,e.jeemarabic=1580,e.jeemfinalarabic=65182,e.jeeminitialarabic=65183,e.jeemmedialarabic=65184,e.jeharabic=1688,e.jehfinalarabic=64395,e.jhabengali=2461,e.jhadeva=2333,e.jhagujarati=2717,e.jhagurmukhi=2589,e.jheharmenian=1403,e.jis=12292,e.jmonospace=65354,e.jparen=9381,e.jsuperior=690,e.k=107,e.kabashkircyrillic=1185,e.kabengali=2453,e.kacute=7729,e.kacyrillic=1082,e.kadescendercyrillic=1179,e.kadeva=2325,e.kaf=1499,e.kafarabic=1603,e.kafdagesh=64315,e.kafdageshhebrew=64315,e.kaffinalarabic=65242,e.kafhebrew=1499,e.kafinitialarabic=65243,e.kafmedialarabic=65244,e.kafrafehebrew=64333,e.kagujarati=2709,e.kagurmukhi=2581,e.kahiragana=12363,e.kahookcyrillic=1220,e.kakatakana=12459,e.kakatakanahalfwidth=65398,e.kappa=954,e.kappasymbolgreek=1008,e.kapyeounmieumkorean=12657,e.kapyeounphieuphkorean=12676,e.kapyeounpieupkorean=12664,e.kapyeounssangpieupkorean=12665,e.karoriisquare=13069,e.kashidaautoarabic=1600,e.kashidaautonosidebearingarabic=1600,e.kasmallkatakana=12533,e.kasquare=13188,e.kasraarabic=1616,e.kasratanarabic=1613,e.kastrokecyrillic=1183,e.katahiraprolongmarkhalfwidth=65392,e.kaverticalstrokecyrillic=1181,e.kbopomofo=12558,e.kcalsquare=13193,e.kcaron=489,e.kcedilla=311,e.kcircle=9434,e.kcommaaccent=311,e.kdotbelow=7731,e.keharmenian=1412,e.kehiragana=12369,e.kekatakana=12465,e.kekatakanahalfwidth=65401,e.kenarmenian=1391,e.kesmallkatakana=12534,e.kgreenlandic=312,e.khabengali=2454,e.khacyrillic=1093,e.khadeva=2326,e.khagujarati=2710,e.khagurmukhi=2582,e.khaharabic=1582,e.khahfinalarabic=65190,e.khahinitialarabic=65191,e.khahmedialarabic=65192,e.kheicoptic=999,e.khhadeva=2393,e.khhagurmukhi=2649,e.khieukhacirclekorean=12920,e.khieukhaparenkorean=12824,e.khieukhcirclekorean=12906,e.khieukhkorean=12619,e.khieukhparenkorean=12810,e.khokhaithai=3586,e.khokhonthai=3589,e.khokhuatthai=3587,e.khokhwaithai=3588,e.khomutthai=3675,e.khook=409,e.khorakhangthai=3590,e.khzsquare=13201,e.kihiragana=12365,e.kikatakana=12461,e.kikatakanahalfwidth=65399,e.kiroguramusquare=13077,e.kiromeetorusquare=13078,e.kirosquare=13076,e.kiyeokacirclekorean=12910,e.kiyeokaparenkorean=12814,e.kiyeokcirclekorean=12896,e.kiyeokkorean=12593,e.kiyeokparenkorean=12800,e.kiyeoksioskorean=12595,e.kjecyrillic=1116,e.klinebelow=7733,e.klsquare=13208,e.kmcubedsquare=13222,e.kmonospace=65355,e.kmsquaredsquare=13218,e.kohiragana=12371,e.kohmsquare=13248,e.kokaithai=3585,e.kokatakana=12467,e.kokatakanahalfwidth=65402,e.kooposquare=13086,e.koppacyrillic=1153,e.koreanstandardsymbol=12927,e.koroniscmb=835,e.kparen=9382,e.kpasquare=13226,e.ksicyrillic=1135,e.ktsquare=13263,e.kturned=670,e.kuhiragana=12367,e.kukatakana=12463,e.kukatakanahalfwidth=65400,e.kvsquare=13240,e.kwsquare=13246,e.l=108,e.labengali=2482,e.lacute=314,e.ladeva=2354,e.lagujarati=2738,e.lagurmukhi=2610,e.lakkhangyaothai=3653,e.lamaleffinalarabic=65276,e.lamalefhamzaabovefinalarabic=65272,e.lamalefhamzaaboveisolatedarabic=65271,e.lamalefhamzabelowfinalarabic=65274,e.lamalefhamzabelowisolatedarabic=65273,e.lamalefisolatedarabic=65275,e.lamalefmaddaabovefinalarabic=65270,e.lamalefmaddaaboveisolatedarabic=65269,e.lamarabic=1604,e.lambda=955,e.lambdastroke=411,e.lamed=1500,e.lameddagesh=64316,e.lameddageshhebrew=64316,e.lamedhebrew=1500,e.lamfinalarabic=65246,e.lamhahinitialarabic=64714,e.laminitialarabic=65247,e.lamjeeminitialarabic=64713,e.lamkhahinitialarabic=64715,e.lamlamhehisolatedarabic=65010,e.lammedialarabic=65248,e.lammeemhahinitialarabic=64904,e.lammeeminitialarabic=64716,e.largecircle=9711,e.lbar=410,e.lbelt=620,e.lbopomofo=12556,e.lcaron=318,e.lcedilla=316,e.lcircle=9435,e.lcircumflexbelow=7741,e.lcommaaccent=316,e.ldot=320,e.ldotaccent=320,e.ldotbelow=7735,e.ldotbelowmacron=7737,e.leftangleabovecmb=794,e.lefttackbelowcmb=792,e.less=60,e.lessequal=8804,e.lessequalorgreater=8922,e.lessmonospace=65308,e.lessorequivalent=8818,e.lessorgreater=8822,e.lessoverequal=8806,e.lesssmall=65124,e.lezh=622,e.lfblock=9612,e.lhookretroflex=621,e.lira=8356,e.liwnarmenian=1388,e.lj=457,e.ljecyrillic=1113,e.ll=63168,e.lladeva=2355,e.llagujarati=2739,e.llinebelow=7739,e.llladeva=2356,e.llvocalicbengali=2529,e.llvocalicdeva=2401,e.llvocalicvowelsignbengali=2531,e.llvocalicvowelsigndeva=2403,e.lmiddletilde=619,e.lmonospace=65356,e.lmsquare=13264,e.lochulathai=3628,e.logicaland=8743,e.logicalnot=172,e.logicalnotreversed=8976,e.logicalor=8744,e.lolingthai=3621,e.longs=383,e.lowlinecenterline=65102,e.lowlinecmb=818,e.lowlinedashed=65101,e.lozenge=9674,e.lparen=9383,e.lslash=322,e.lsquare=8467,e.lsuperior=63214,e.ltshade=9617,e.luthai=3622,e.lvocalicbengali=2444,e.lvocalicdeva=2316,e.lvocalicvowelsignbengali=2530,e.lvocalicvowelsigndeva=2402,e.lxsquare=13267,e.m=109,e.mabengali=2478,e.macron=175,e.macronbelowcmb=817,e.macroncmb=772,e.macronlowmod=717,e.macronmonospace=65507,e.macute=7743,e.madeva=2350,e.magujarati=2734,e.magurmukhi=2606,e.mahapakhhebrew=1444,e.mahapakhlefthebrew=1444,e.mahiragana=12414,e.maichattawalowleftthai=63637,e.maichattawalowrightthai=63636,e.maichattawathai=3659,e.maichattawaupperleftthai=63635,e.maieklowleftthai=63628,e.maieklowrightthai=63627,e.maiekthai=3656,e.maiekupperleftthai=63626,e.maihanakatleftthai=63620,e.maihanakatthai=3633,e.maitaikhuleftthai=63625,e.maitaikhuthai=3655,e.maitholowleftthai=63631,e.maitholowrightthai=63630,e.maithothai=3657,e.maithoupperleftthai=63629,e.maitrilowleftthai=63634,e.maitrilowrightthai=63633,e.maitrithai=3658,e.maitriupperleftthai=63632,e.maiyamokthai=3654,e.makatakana=12510,e.makatakanahalfwidth=65423,e.male=9794,e.mansyonsquare=13127,e.maqafhebrew=1470,e.mars=9794,e.masoracirclehebrew=1455,e.masquare=13187,e.mbopomofo=12551,e.mbsquare=13268,e.mcircle=9436,e.mcubedsquare=13221,e.mdotaccent=7745,e.mdotbelow=7747,e.meemarabic=1605,e.meemfinalarabic=65250,e.meeminitialarabic=65251,e.meemmedialarabic=65252,e.meemmeeminitialarabic=64721,e.meemmeemisolatedarabic=64584,e.meetorusquare=13133,e.mehiragana=12417,e.meizierasquare=13182,e.mekatakana=12513,e.mekatakanahalfwidth=65426,e.mem=1502,e.memdagesh=64318,e.memdageshhebrew=64318,e.memhebrew=1502,e.menarmenian=1396,e.merkhahebrew=1445,e.merkhakefulahebrew=1446,e.merkhakefulalefthebrew=1446,e.merkhalefthebrew=1445,e.mhook=625,e.mhzsquare=13202,e.middledotkatakanahalfwidth=65381,e.middot=183,e.mieumacirclekorean=12914,e.mieumaparenkorean=12818,e.mieumcirclekorean=12900,e.mieumkorean=12609,e.mieumpansioskorean=12656,e.mieumparenkorean=12804,e.mieumpieupkorean=12654,e.mieumsioskorean=12655,e.mihiragana=12415,e.mikatakana=12511,e.mikatakanahalfwidth=65424,e.minus=8722,e.minusbelowcmb=800,e.minuscircle=8854,e.minusmod=727,e.minusplus=8723,e.minute=8242,e.miribaarusquare=13130,e.mirisquare=13129,e.mlonglegturned=624,e.mlsquare=13206,e.mmcubedsquare=13219,e.mmonospace=65357,e.mmsquaredsquare=13215,e.mohiragana=12418,e.mohmsquare=13249,e.mokatakana=12514,e.mokatakanahalfwidth=65427,e.molsquare=13270,e.momathai=3617,e.moverssquare=13223,e.moverssquaredsquare=13224,e.mparen=9384,e.mpasquare=13227,e.mssquare=13235,e.msuperior=63215,e.mturned=623,e.mu=181,e.mu1=181,e.muasquare=13186,e.muchgreater=8811,e.muchless=8810,e.mufsquare=13196,e.mugreek=956,e.mugsquare=13197,e.muhiragana=12416,e.mukatakana=12512,e.mukatakanahalfwidth=65425,e.mulsquare=13205,e.multiply=215,e.mumsquare=13211,e.munahhebrew=1443,e.munahlefthebrew=1443,e.musicalnote=9834,e.musicalnotedbl=9835,e.musicflatsign=9837,e.musicsharpsign=9839,e.mussquare=13234,e.muvsquare=13238,e.muwsquare=13244,e.mvmegasquare=13241,e.mvsquare=13239,e.mwmegasquare=13247,e.mwsquare=13245,e.n=110,e.nabengali=2472,e.nabla=8711,e.nacute=324,e.nadeva=2344,e.nagujarati=2728,e.nagurmukhi=2600,e.nahiragana=12394,e.nakatakana=12490,e.nakatakanahalfwidth=65413,e.napostrophe=329,e.nasquare=13185,e.nbopomofo=12555,e.nbspace=160,e.ncaron=328,e.ncedilla=326,e.ncircle=9437,e.ncircumflexbelow=7755,e.ncommaaccent=326,e.ndotaccent=7749,e.ndotbelow=7751,e.nehiragana=12397,e.nekatakana=12493,e.nekatakanahalfwidth=65416,e.newsheqelsign=8362,e.nfsquare=13195,e.ngabengali=2457,e.ngadeva=2329,e.ngagujarati=2713,e.ngagurmukhi=2585,e.ngonguthai=3591,e.nhiragana=12435,e.nhookleft=626,e.nhookretroflex=627,e.nieunacirclekorean=12911,e.nieunaparenkorean=12815,e.nieuncieuckorean=12597,e.nieuncirclekorean=12897,e.nieunhieuhkorean=12598,e.nieunkorean=12596,e.nieunpansioskorean=12648,e.nieunparenkorean=12801,e.nieunsioskorean=12647,e.nieuntikeutkorean=12646,e.nihiragana=12395,e.nikatakana=12491,e.nikatakanahalfwidth=65414,e.nikhahitleftthai=63641,e.nikhahitthai=3661,e.nine=57,e.ninearabic=1641,e.ninebengali=2543,e.ninecircle=9320,e.ninecircleinversesansserif=10130,e.ninedeva=2415,e.ninegujarati=2799,e.ninegurmukhi=2671,e.ninehackarabic=1641,e.ninehangzhou=12329,e.nineideographicparen=12840,e.nineinferior=8329,e.ninemonospace=65305,e.nineoldstyle=63289,e.nineparen=9340,e.nineperiod=9360,e.ninepersian=1785,e.nineroman=8568,e.ninesuperior=8313,e.nineteencircle=9330,e.nineteenparen=9350,e.nineteenperiod=9370,e.ninethai=3673,e.nj=460,e.njecyrillic=1114,e.nkatakana=12531,e.nkatakanahalfwidth=65437,e.nlegrightlong=414,e.nlinebelow=7753,e.nmonospace=65358,e.nmsquare=13210,e.nnabengali=2467,e.nnadeva=2339,e.nnagujarati=2723,e.nnagurmukhi=2595,e.nnnadeva=2345,e.nohiragana=12398,e.nokatakana=12494,e.nokatakanahalfwidth=65417,e.nonbreakingspace=160,e.nonenthai=3603,e.nonuthai=3609,e.noonarabic=1606,e.noonfinalarabic=65254,e.noonghunnaarabic=1722,e.noonghunnafinalarabic=64415,e.nooninitialarabic=65255,e.noonjeeminitialarabic=64722,e.noonjeemisolatedarabic=64587,e.noonmedialarabic=65256,e.noonmeeminitialarabic=64725,e.noonmeemisolatedarabic=64590,e.noonnoonfinalarabic=64653,e.notcontains=8716,e.notelement=8713,e.notelementof=8713,e.notequal=8800,e.notgreater=8815,e.notgreaternorequal=8817,e.notgreaternorless=8825,e.notidentical=8802,e.notless=8814,e.notlessnorequal=8816,e.notparallel=8742,e.notprecedes=8832,e.notsubset=8836,e.notsucceeds=8833,e.notsuperset=8837,e.nowarmenian=1398,e.nparen=9385,e.nssquare=13233,e.nsuperior=8319,e.ntilde=241,e.nu=957,e.nuhiragana=12396,e.nukatakana=12492,e.nukatakanahalfwidth=65415,e.nuktabengali=2492,e.nuktadeva=2364,e.nuktagujarati=2748,e.nuktagurmukhi=2620,e.numbersign=35,e.numbersignmonospace=65283,e.numbersignsmall=65119,e.numeralsigngreek=884,e.numeralsignlowergreek=885,e.numero=8470,e.nun=1504,e.nundagesh=64320,e.nundageshhebrew=64320,e.nunhebrew=1504,e.nvsquare=13237,e.nwsquare=13243,e.nyabengali=2462,e.nyadeva=2334,e.nyagujarati=2718,e.nyagurmukhi=2590,e.o=111,e.oacute=243,e.oangthai=3629,e.obarred=629,e.obarredcyrillic=1257,e.obarreddieresiscyrillic=1259,e.obengali=2451,e.obopomofo=12571,e.obreve=335,e.ocandradeva=2321,e.ocandragujarati=2705,e.ocandravowelsigndeva=2377,e.ocandravowelsigngujarati=2761,e.ocaron=466,e.ocircle=9438,e.ocircumflex=244,e.ocircumflexacute=7889,e.ocircumflexdotbelow=7897,e.ocircumflexgrave=7891,e.ocircumflexhookabove=7893,e.ocircumflextilde=7895,e.ocyrillic=1086,e.odblacute=337,e.odblgrave=525,e.odeva=2323,e.odieresis=246,e.odieresiscyrillic=1255,e.odotbelow=7885,e.oe=339,e.oekorean=12634,e.ogonek=731,e.ogonekcmb=808,e.ograve=242,e.ogujarati=2707,e.oharmenian=1413,e.ohiragana=12362,e.ohookabove=7887,e.ohorn=417,e.ohornacute=7899,e.ohorndotbelow=7907,e.ohorngrave=7901,e.ohornhookabove=7903,e.ohorntilde=7905,e.ohungarumlaut=337,e.oi=419,e.oinvertedbreve=527,e.okatakana=12458,e.okatakanahalfwidth=65397,e.okorean=12631,e.olehebrew=1451,e.omacron=333,e.omacronacute=7763,e.omacrongrave=7761,e.omdeva=2384,e.omega=969,e.omega1=982,e.omegacyrillic=1121,e.omegalatinclosed=631,e.omegaroundcyrillic=1147,e.omegatitlocyrillic=1149,e.omegatonos=974,e.omgujarati=2768,e.omicron=959,e.omicrontonos=972,e.omonospace=65359,e.one=49,e.onearabic=1633,e.onebengali=2535,e.onecircle=9312,e.onecircleinversesansserif=10122,e.onedeva=2407,e.onedotenleader=8228,e.oneeighth=8539,e.onefitted=63196,e.onegujarati=2791,e.onegurmukhi=2663,e.onehackarabic=1633,e.onehalf=189,e.onehangzhou=12321,e.oneideographicparen=12832,e.oneinferior=8321,e.onemonospace=65297,e.onenumeratorbengali=2548,e.oneoldstyle=63281,e.oneparen=9332,e.oneperiod=9352,e.onepersian=1777,e.onequarter=188,e.oneroman=8560,e.onesuperior=185,e.onethai=3665,e.onethird=8531,e.oogonek=491,e.oogonekmacron=493,e.oogurmukhi=2579,e.oomatragurmukhi=2635,e.oopen=596,e.oparen=9386,e.openbullet=9702,e.option=8997,e.ordfeminine=170,e.ordmasculine=186,e.orthogonal=8735,e.oshortdeva=2322,e.oshortvowelsigndeva=2378,e.oslash=248,e.oslashacute=511,e.osmallhiragana=12361,e.osmallkatakana=12457,e.osmallkatakanahalfwidth=65387,e.ostrokeacute=511,e.osuperior=63216,e.otcyrillic=1151,e.otilde=245,e.otildeacute=7757,e.otildedieresis=7759,e.oubopomofo=12577,e.overline=8254,e.overlinecenterline=65098,e.overlinecmb=773,e.overlinedashed=65097,e.overlinedblwavy=65100,e.overlinewavy=65099,e.overscore=175,e.ovowelsignbengali=2507,e.ovowelsigndeva=2379,e.ovowelsigngujarati=2763,e.p=112,e.paampssquare=13184,e.paasentosquare=13099,e.pabengali=2474,e.pacute=7765,e.padeva=2346,e.pagedown=8671,e.pageup=8670,e.pagujarati=2730,e.pagurmukhi=2602,e.pahiragana=12401,e.paiyannoithai=3631,e.pakatakana=12497,e.palatalizationcyrilliccmb=1156,e.palochkacyrillic=1216,e.pansioskorean=12671,e.paragraph=182,e.parallel=8741,e.parenleft=40,e.parenleftaltonearabic=64830,e.parenleftbt=63725,e.parenleftex=63724,e.parenleftinferior=8333,e.parenleftmonospace=65288,e.parenleftsmall=65113,e.parenleftsuperior=8317,e.parenlefttp=63723,e.parenleftvertical=65077,e.parenright=41,e.parenrightaltonearabic=64831,e.parenrightbt=63736,e.parenrightex=63735,e.parenrightinferior=8334,e.parenrightmonospace=65289,e.parenrightsmall=65114,e.parenrightsuperior=8318,e.parenrighttp=63734,e.parenrightvertical=65078,e.partialdiff=8706,e.paseqhebrew=1472,e.pashtahebrew=1433,e.pasquare=13225,e.patah=1463,e.patah11=1463,e.patah1d=1463,e.patah2a=1463,e.patahhebrew=1463,e.patahnarrowhebrew=1463,e.patahquarterhebrew=1463,e.patahwidehebrew=1463,e.pazerhebrew=1441,e.pbopomofo=12550,e.pcircle=9439,e.pdotaccent=7767,e.pe=1508,e.pecyrillic=1087,e.pedagesh=64324,e.pedageshhebrew=64324,e.peezisquare=13115,e.pefinaldageshhebrew=64323,e.peharabic=1662,e.peharmenian=1402,e.pehebrew=1508,e.pehfinalarabic=64343,e.pehinitialarabic=64344,e.pehiragana=12410,e.pehmedialarabic=64345,e.pekatakana=12506,e.pemiddlehookcyrillic=1191,e.perafehebrew=64334,e.percent=37,e.percentarabic=1642,e.percentmonospace=65285,e.percentsmall=65130,e.period=46,e.periodarmenian=1417,e.periodcentered=183,e.periodhalfwidth=65377,e.periodinferior=63207,e.periodmonospace=65294,e.periodsmall=65106,e.periodsuperior=63208,e.perispomenigreekcmb=834,e.perpendicular=8869,e.perthousand=8240,e.peseta=8359,e.pfsquare=13194,e.phabengali=2475,e.phadeva=2347,e.phagujarati=2731,e.phagurmukhi=2603,e.phi=966,e.phi1=981,e.phieuphacirclekorean=12922,e.phieuphaparenkorean=12826,e.phieuphcirclekorean=12908,e.phieuphkorean=12621,e.phieuphparenkorean=12812,e.philatin=632,e.phinthuthai=3642,e.phisymbolgreek=981,e.phook=421,e.phophanthai=3614,e.phophungthai=3612,e.phosamphaothai=3616,e.pi=960,e.pieupacirclekorean=12915,e.pieupaparenkorean=12819,e.pieupcieuckorean=12662,e.pieupcirclekorean=12901,e.pieupkiyeokkorean=12658,e.pieupkorean=12610,e.pieupparenkorean=12805,e.pieupsioskiyeokkorean=12660,e.pieupsioskorean=12612,e.pieupsiostikeutkorean=12661,e.pieupthieuthkorean=12663,e.pieuptikeutkorean=12659,e.pihiragana=12404,e.pikatakana=12500,e.pisymbolgreek=982,e.piwrarmenian=1411,e.planckover2pi=8463,e.planckover2pi1=8463,e.plus=43,e.plusbelowcmb=799,e.pluscircle=8853,e.plusminus=177,e.plusmod=726,e.plusmonospace=65291,e.plussmall=65122,e.plussuperior=8314,e.pmonospace=65360,e.pmsquare=13272,e.pohiragana=12413,e.pointingindexdownwhite=9759,e.pointingindexleftwhite=9756,e.pointingindexrightwhite=9758,e.pointingindexupwhite=9757,e.pokatakana=12509,e.poplathai=3611,e.postalmark=12306,e.postalmarkface=12320,e.pparen=9387,e.precedes=8826,e.prescription=8478,e.primemod=697,e.primereversed=8245,e.product=8719,e.projective=8965,e.prolongedkana=12540,e.propellor=8984,e.propersubset=8834,e.propersuperset=8835,e.proportion=8759,e.proportional=8733,e.psi=968,e.psicyrillic=1137,e.psilipneumatacyrilliccmb=1158,e.pssquare=13232,e.puhiragana=12407,e.pukatakana=12503,e.pvsquare=13236,e.pwsquare=13242,e.q=113,e.qadeva=2392,e.qadmahebrew=1448,e.qafarabic=1602,e.qaffinalarabic=65238,e.qafinitialarabic=65239,e.qafmedialarabic=65240,e.qamats=1464,e.qamats10=1464,e.qamats1a=1464,e.qamats1c=1464,e.qamats27=1464,e.qamats29=1464,e.qamats33=1464,e.qamatsde=1464,e.qamatshebrew=1464,e.qamatsnarrowhebrew=1464,e.qamatsqatanhebrew=1464,e.qamatsqatannarrowhebrew=1464,e.qamatsqatanquarterhebrew=1464,e.qamatsqatanwidehebrew=1464,e.qamatsquarterhebrew=1464,e.qamatswidehebrew=1464,e.qarneyparahebrew=1439,e.qbopomofo=12561,e.qcircle=9440,e.qhook=672,e.qmonospace=65361,e.qof=1511,e.qofdagesh=64327,e.qofdageshhebrew=64327,e.qofhebrew=1511,e.qparen=9388,e.quarternote=9833,e.qubuts=1467,e.qubuts18=1467,e.qubuts25=1467,e.qubuts31=1467,e.qubutshebrew=1467,e.qubutsnarrowhebrew=1467,e.qubutsquarterhebrew=1467,e.qubutswidehebrew=1467,e.question=63,e.questionarabic=1567,e.questionarmenian=1374,e.questiondown=191,e.questiondownsmall=63423,e.questiongreek=894,e.questionmonospace=65311,e.questionsmall=63295,e.quotedbl=34,e.quotedblbase=8222,e.quotedblleft=8220,e.quotedblmonospace=65282,e.quotedblprime=12318,e.quotedblprimereversed=12317,e.quotedblright=8221,e.quoteleft=8216,e.quoteleftreversed=8219,e.quotereversed=8219,e.quoteright=8217,e.quoterightn=329,e.quotesinglbase=8218,e.quotesingle=39,e.quotesinglemonospace=65287,e.r=114,e.raarmenian=1404,e.rabengali=2480,e.racute=341,e.radeva=2352,e.radical=8730,e.radicalex=63717,e.radoverssquare=13230,e.radoverssquaredsquare=13231,e.radsquare=13229,e.rafe=1471,e.rafehebrew=1471,e.ragujarati=2736,e.ragurmukhi=2608,e.rahiragana=12425,e.rakatakana=12521,e.rakatakanahalfwidth=65431,e.ralowerdiagonalbengali=2545,e.ramiddlediagonalbengali=2544,e.ramshorn=612,e.ratio=8758,e.rbopomofo=12566,e.rcaron=345,e.rcedilla=343,e.rcircle=9441,e.rcommaaccent=343,e.rdblgrave=529,e.rdotaccent=7769,e.rdotbelow=7771,e.rdotbelowmacron=7773,e.referencemark=8251,e.reflexsubset=8838,e.reflexsuperset=8839,e.registered=174,e.registersans=63720,e.registerserif=63194,e.reharabic=1585,e.reharmenian=1408,e.rehfinalarabic=65198,e.rehiragana=12428,e.rekatakana=12524,e.rekatakanahalfwidth=65434,e.resh=1512,e.reshdageshhebrew=64328,e.reshhebrew=1512,e.reversedtilde=8765,e.reviahebrew=1431,e.reviamugrashhebrew=1431,e.revlogicalnot=8976,e.rfishhook=638,e.rfishhookreversed=639,e.rhabengali=2525,e.rhadeva=2397,e.rho=961,e.rhook=637,e.rhookturned=635,e.rhookturnedsuperior=693,e.rhosymbolgreek=1009,e.rhotichookmod=734,e.rieulacirclekorean=12913,e.rieulaparenkorean=12817,e.rieulcirclekorean=12899,e.rieulhieuhkorean=12608,e.rieulkiyeokkorean=12602,e.rieulkiyeoksioskorean=12649,e.rieulkorean=12601,e.rieulmieumkorean=12603,e.rieulpansioskorean=12652,e.rieulparenkorean=12803,e.rieulphieuphkorean=12607,e.rieulpieupkorean=12604,e.rieulpieupsioskorean=12651,e.rieulsioskorean=12605,e.rieulthieuthkorean=12606,e.rieultikeutkorean=12650,e.rieulyeorinhieuhkorean=12653,e.rightangle=8735,e.righttackbelowcmb=793,e.righttriangle=8895,e.rihiragana=12426,e.rikatakana=12522,e.rikatakanahalfwidth=65432,e.ring=730,e.ringbelowcmb=805,e.ringcmb=778,e.ringhalfleft=703,e.ringhalfleftarmenian=1369,e.ringhalfleftbelowcmb=796,e.ringhalfleftcentered=723,e.ringhalfright=702,e.ringhalfrightbelowcmb=825,e.ringhalfrightcentered=722,e.rinvertedbreve=531,e.rittorusquare=13137,e.rlinebelow=7775,e.rlongleg=636,e.rlonglegturned=634,e.rmonospace=65362,e.rohiragana=12429,e.rokatakana=12525,e.rokatakanahalfwidth=65435,e.roruathai=3619,e.rparen=9389,e.rrabengali=2524,e.rradeva=2353,e.rragurmukhi=2652,e.rreharabic=1681,e.rrehfinalarabic=64397,e.rrvocalicbengali=2528,e.rrvocalicdeva=2400,e.rrvocalicgujarati=2784,e.rrvocalicvowelsignbengali=2500,e.rrvocalicvowelsigndeva=2372,e.rrvocalicvowelsigngujarati=2756,e.rsuperior=63217,e.rtblock=9616,e.rturned=633,e.rturnedsuperior=692,e.ruhiragana=12427,e.rukatakana=12523,e.rukatakanahalfwidth=65433,e.rupeemarkbengali=2546,e.rupeesignbengali=2547,e.rupiah=63197,e.ruthai=3620,e.rvocalicbengali=2443,e.rvocalicdeva=2315,e.rvocalicgujarati=2699,e.rvocalicvowelsignbengali=2499,e.rvocalicvowelsigndeva=2371,e.rvocalicvowelsigngujarati=2755,e.s=115,e.sabengali=2488,e.sacute=347,e.sacutedotaccent=7781,e.sadarabic=1589,e.sadeva=2360,e.sadfinalarabic=65210,e.sadinitialarabic=65211,e.sadmedialarabic=65212,e.sagujarati=2744,e.sagurmukhi=2616,e.sahiragana=12373,e.sakatakana=12469,e.sakatakanahalfwidth=65403,e.sallallahoualayhewasallamarabic=65018,e.samekh=1505,e.samekhdagesh=64321,e.samekhdageshhebrew=64321,e.samekhhebrew=1505,e.saraaathai=3634,e.saraaethai=3649,e.saraaimaimalaithai=3652,e.saraaimaimuanthai=3651,e.saraamthai=3635,e.saraathai=3632,e.saraethai=3648,e.saraiileftthai=63622,e.saraiithai=3637,e.saraileftthai=63621,e.saraithai=3636,e.saraothai=3650,e.saraueeleftthai=63624,e.saraueethai=3639,e.saraueleftthai=63623,e.sarauethai=3638,e.sarauthai=3640,e.sarauuthai=3641,e.sbopomofo=12569,e.scaron=353,e.scarondotaccent=7783,e.scedilla=351,e.schwa=601,e.schwacyrillic=1241,e.schwadieresiscyrillic=1243,e.schwahook=602,e.scircle=9442,e.scircumflex=349,e.scommaaccent=537,e.sdotaccent=7777,e.sdotbelow=7779,e.sdotbelowdotaccent=7785,e.seagullbelowcmb=828,e.second=8243,e.secondtonechinese=714,e.section=167,e.seenarabic=1587,e.seenfinalarabic=65202,e.seeninitialarabic=65203,e.seenmedialarabic=65204,e.segol=1462,e.segol13=1462,e.segol1f=1462,e.segol2c=1462,e.segolhebrew=1462,e.segolnarrowhebrew=1462,e.segolquarterhebrew=1462,e.segoltahebrew=1426,e.segolwidehebrew=1462,e.seharmenian=1405,e.sehiragana=12379,e.sekatakana=12475,e.sekatakanahalfwidth=65406,e.semicolon=59,e.semicolonarabic=1563,e.semicolonmonospace=65307,e.semicolonsmall=65108,e.semivoicedmarkkana=12444,e.semivoicedmarkkanahalfwidth=65439,e.sentisquare=13090,e.sentosquare=13091,e.seven=55,e.sevenarabic=1639,e.sevenbengali=2541,e.sevencircle=9318,e.sevencircleinversesansserif=10128,e.sevendeva=2413,e.seveneighths=8542,e.sevengujarati=2797,e.sevengurmukhi=2669,e.sevenhackarabic=1639,e.sevenhangzhou=12327,e.sevenideographicparen=12838,e.seveninferior=8327,e.sevenmonospace=65303,e.sevenoldstyle=63287,e.sevenparen=9338,e.sevenperiod=9358,e.sevenpersian=1783,e.sevenroman=8566,e.sevensuperior=8311,e.seventeencircle=9328,e.seventeenparen=9348,e.seventeenperiod=9368,e.seventhai=3671,e.sfthyphen=173,e.shaarmenian=1399,e.shabengali=2486,e.shacyrillic=1096,e.shaddaarabic=1617,e.shaddadammaarabic=64609,e.shaddadammatanarabic=64606,e.shaddafathaarabic=64608,e.shaddakasraarabic=64610,e.shaddakasratanarabic=64607,e.shade=9618,e.shadedark=9619,e.shadelight=9617,e.shademedium=9618,e.shadeva=2358,e.shagujarati=2742,e.shagurmukhi=2614,e.shalshelethebrew=1427,e.shbopomofo=12565,e.shchacyrillic=1097,e.sheenarabic=1588,e.sheenfinalarabic=65206,e.sheeninitialarabic=65207,e.sheenmedialarabic=65208,e.sheicoptic=995,e.sheqel=8362,e.sheqelhebrew=8362,e.sheva=1456,e.sheva115=1456,e.sheva15=1456,e.sheva22=1456,e.sheva2e=1456,e.shevahebrew=1456,e.shevanarrowhebrew=1456,e.shevaquarterhebrew=1456,e.shevawidehebrew=1456,e.shhacyrillic=1211,e.shimacoptic=1005,e.shin=1513,e.shindagesh=64329,e.shindageshhebrew=64329,e.shindageshshindot=64300,e.shindageshshindothebrew=64300,e.shindageshsindot=64301,e.shindageshsindothebrew=64301,e.shindothebrew=1473,e.shinhebrew=1513,e.shinshindot=64298,e.shinshindothebrew=64298,e.shinsindot=64299,e.shinsindothebrew=64299,e.shook=642,e.sigma=963,e.sigma1=962,e.sigmafinal=962,e.sigmalunatesymbolgreek=1010,e.sihiragana=12375,e.sikatakana=12471,e.sikatakanahalfwidth=65404,e.siluqhebrew=1469,e.siluqlefthebrew=1469,e.similar=8764,e.sindothebrew=1474,e.siosacirclekorean=12916,e.siosaparenkorean=12820,e.sioscieuckorean=12670,e.sioscirclekorean=12902,e.sioskiyeokkorean=12666,e.sioskorean=12613,e.siosnieunkorean=12667,e.siosparenkorean=12806,e.siospieupkorean=12669,e.siostikeutkorean=12668,e.six=54,e.sixarabic=1638,e.sixbengali=2540,e.sixcircle=9317,e.sixcircleinversesansserif=10127,e.sixdeva=2412,e.sixgujarati=2796,e.sixgurmukhi=2668,e.sixhackarabic=1638,e.sixhangzhou=12326,e.sixideographicparen=12837,e.sixinferior=8326,e.sixmonospace=65302,e.sixoldstyle=63286,e.sixparen=9337,e.sixperiod=9357,e.sixpersian=1782,e.sixroman=8565,e.sixsuperior=8310,e.sixteencircle=9327,e.sixteencurrencydenominatorbengali=2553,e.sixteenparen=9347,e.sixteenperiod=9367,e.sixthai=3670,e.slash=47,e.slashmonospace=65295,e.slong=383,e.slongdotaccent=7835,e.smileface=9786,e.smonospace=65363,e.sofpasuqhebrew=1475,e.softhyphen=173,e.softsigncyrillic=1100,e.sohiragana=12381,e.sokatakana=12477,e.sokatakanahalfwidth=65407,e.soliduslongoverlaycmb=824,e.solidusshortoverlaycmb=823,e.sorusithai=3625,e.sosalathai=3624,e.sosothai=3595,e.sosuathai=3626,e.space=32,e.spacehackarabic=32,e.spade=9824,e.spadesuitblack=9824,e.spadesuitwhite=9828,e.sparen=9390,e.squarebelowcmb=827,e.squarecc=13252,e.squarecm=13213,e.squarediagonalcrosshatchfill=9641,e.squarehorizontalfill=9636,e.squarekg=13199,e.squarekm=13214,e.squarekmcapital=13262,e.squareln=13265,e.squarelog=13266,e.squaremg=13198,e.squaremil=13269,e.squaremm=13212,e.squaremsquared=13217,e.squareorthogonalcrosshatchfill=9638,e.squareupperlefttolowerrightfill=9639,e.squareupperrighttolowerleftfill=9640,e.squareverticalfill=9637,e.squarewhitewithsmallblack=9635,e.srsquare=13275,e.ssabengali=2487,e.ssadeva=2359,e.ssagujarati=2743,e.ssangcieuckorean=12617,e.ssanghieuhkorean=12677,e.ssangieungkorean=12672,e.ssangkiyeokkorean=12594,e.ssangnieunkorean=12645,e.ssangpieupkorean=12611,e.ssangsioskorean=12614,e.ssangtikeutkorean=12600,e.ssuperior=63218,e.sterling=163,e.sterlingmonospace=65505,e.strokelongoverlaycmb=822,e.strokeshortoverlaycmb=821,e.subset=8834,e.subsetnotequal=8842,e.subsetorequal=8838,e.succeeds=8827,e.suchthat=8715,e.suhiragana=12377,e.sukatakana=12473,e.sukatakanahalfwidth=65405,e.sukunarabic=1618,e.summation=8721,e.sun=9788,e.superset=8835,e.supersetnotequal=8843,e.supersetorequal=8839,e.svsquare=13276,e.syouwaerasquare=13180,e.t=116,e.tabengali=2468,e.tackdown=8868,e.tackleft=8867,e.tadeva=2340,e.tagujarati=2724,e.tagurmukhi=2596,e.taharabic=1591,e.tahfinalarabic=65218,e.tahinitialarabic=65219,e.tahiragana=12383,e.tahmedialarabic=65220,e.taisyouerasquare=13181,e.takatakana=12479,e.takatakanahalfwidth=65408,e.tatweelarabic=1600,e.tau=964,e.tav=1514,e.tavdages=64330,e.tavdagesh=64330,e.tavdageshhebrew=64330,e.tavhebrew=1514,e.tbar=359,e.tbopomofo=12554,e.tcaron=357,e.tccurl=680,e.tcedilla=355,e.tcheharabic=1670,e.tchehfinalarabic=64379,e.tchehinitialarabic=64380,e.tchehmedialarabic=64381,e.tcircle=9443,e.tcircumflexbelow=7793,e.tcommaaccent=355,e.tdieresis=7831,e.tdotaccent=7787,e.tdotbelow=7789,e.tecyrillic=1090,e.tedescendercyrillic=1197,e.teharabic=1578,e.tehfinalarabic=65174,e.tehhahinitialarabic=64674,e.tehhahisolatedarabic=64524,e.tehinitialarabic=65175,e.tehiragana=12390,e.tehjeeminitialarabic=64673,e.tehjeemisolatedarabic=64523,e.tehmarbutaarabic=1577,e.tehmarbutafinalarabic=65172,e.tehmedialarabic=65176,e.tehmeeminitialarabic=64676,e.tehmeemisolatedarabic=64526,e.tehnoonfinalarabic=64627,e.tekatakana=12486,e.tekatakanahalfwidth=65411,e.telephone=8481,e.telephoneblack=9742,e.telishagedolahebrew=1440,e.telishaqetanahebrew=1449,e.tencircle=9321,e.tenideographicparen=12841,e.tenparen=9341,e.tenperiod=9361,e.tenroman=8569,e.tesh=679,e.tet=1496,e.tetdagesh=64312,e.tetdageshhebrew=64312,e.tethebrew=1496,e.tetsecyrillic=1205,e.tevirhebrew=1435,e.tevirlefthebrew=1435,e.thabengali=2469,e.thadeva=2341,e.thagujarati=2725,e.thagurmukhi=2597,e.thalarabic=1584,e.thalfinalarabic=65196,e.thanthakhatlowleftthai=63640,e.thanthakhatlowrightthai=63639,e.thanthakhatthai=3660,e.thanthakhatupperleftthai=63638,e.theharabic=1579,e.thehfinalarabic=65178,e.thehinitialarabic=65179,e.thehmedialarabic=65180,e.thereexists=8707,e.therefore=8756,e.theta=952,e.theta1=977,e.thetasymbolgreek=977,e.thieuthacirclekorean=12921,e.thieuthaparenkorean=12825,e.thieuthcirclekorean=12907,e.thieuthkorean=12620,e.thieuthparenkorean=12811,e.thirteencircle=9324,e.thirteenparen=9344,e.thirteenperiod=9364,e.thonangmonthothai=3601,e.thook=429,e.thophuthaothai=3602,e.thorn=254,e.thothahanthai=3607,e.thothanthai=3600,e.thothongthai=3608,e.thothungthai=3606,e.thousandcyrillic=1154,e.thousandsseparatorarabic=1644,e.thousandsseparatorpersian=1644,e.three=51,e.threearabic=1635,e.threebengali=2537,e.threecircle=9314,e.threecircleinversesansserif=10124,e.threedeva=2409,e.threeeighths=8540,e.threegujarati=2793,e.threegurmukhi=2665,e.threehackarabic=1635,e.threehangzhou=12323,e.threeideographicparen=12834,e.threeinferior=8323,e.threemonospace=65299,e.threenumeratorbengali=2550,e.threeoldstyle=63283,e.threeparen=9334,e.threeperiod=9354,e.threepersian=1779,e.threequarters=190,e.threequartersemdash=63198,e.threeroman=8562,e.threesuperior=179,e.threethai=3667,e.thzsquare=13204,e.tihiragana=12385,e.tikatakana=12481,e.tikatakanahalfwidth=65409,e.tikeutacirclekorean=12912,e.tikeutaparenkorean=12816,e.tikeutcirclekorean=12898,e.tikeutkorean=12599,e.tikeutparenkorean=12802,e.tilde=732,e.tildebelowcmb=816,e.tildecmb=771,e.tildecomb=771,e.tildedoublecmb=864,e.tildeoperator=8764,e.tildeoverlaycmb=820,e.tildeverticalcmb=830,e.timescircle=8855,e.tipehahebrew=1430,e.tipehalefthebrew=1430,e.tippigurmukhi=2672,e.titlocyrilliccmb=1155,e.tiwnarmenian=1407,e.tlinebelow=7791,e.tmonospace=65364,e.toarmenian=1385,e.tohiragana=12392,e.tokatakana=12488,e.tokatakanahalfwidth=65412,e.tonebarextrahighmod=741,e.tonebarextralowmod=745,e.tonebarhighmod=742,e.tonebarlowmod=744,e.tonebarmidmod=743,e.tonefive=445,e.tonesix=389,e.tonetwo=424,e.tonos=900,e.tonsquare=13095,e.topatakthai=3599,e.tortoiseshellbracketleft=12308,e.tortoiseshellbracketleftsmall=65117,e.tortoiseshellbracketleftvertical=65081,e.tortoiseshellbracketright=12309,e.tortoiseshellbracketrightsmall=65118,e.tortoiseshellbracketrightvertical=65082,e.totaothai=3605,e.tpalatalhook=427,e.tparen=9391,e.trademark=8482,e.trademarksans=63722,e.trademarkserif=63195,e.tretroflexhook=648,e.triagdn=9660,e.triaglf=9668,e.triagrt=9658,e.triagup=9650,e.ts=678,e.tsadi=1510,e.tsadidagesh=64326,e.tsadidageshhebrew=64326,e.tsadihebrew=1510,e.tsecyrillic=1094,e.tsere=1461,e.tsere12=1461,e.tsere1e=1461,e.tsere2b=1461,e.tserehebrew=1461,e.tserenarrowhebrew=1461,e.tserequarterhebrew=1461,e.tserewidehebrew=1461,e.tshecyrillic=1115,e.tsuperior=63219,e.ttabengali=2463,e.ttadeva=2335,e.ttagujarati=2719,e.ttagurmukhi=2591,e.tteharabic=1657,e.ttehfinalarabic=64359,e.ttehinitialarabic=64360,e.ttehmedialarabic=64361,e.tthabengali=2464,e.tthadeva=2336,e.tthagujarati=2720,e.tthagurmukhi=2592,e.tturned=647,e.tuhiragana=12388,e.tukatakana=12484,e.tukatakanahalfwidth=65410,e.tusmallhiragana=12387,e.tusmallkatakana=12483,e.tusmallkatakanahalfwidth=65391,e.twelvecircle=9323,e.twelveparen=9343,e.twelveperiod=9363,e.twelveroman=8571,e.twentycircle=9331,e.twentyhangzhou=21316,e.twentyparen=9351,e.twentyperiod=9371,e.two=50,e.twoarabic=1634,e.twobengali=2536,e.twocircle=9313,e.twocircleinversesansserif=10123,e.twodeva=2408,e.twodotenleader=8229,e.twodotleader=8229,e.twodotleadervertical=65072,e.twogujarati=2792,e.twogurmukhi=2664,e.twohackarabic=1634,e.twohangzhou=12322,e.twoideographicparen=12833,e.twoinferior=8322,e.twomonospace=65298,e.twonumeratorbengali=2549,e.twooldstyle=63282,e.twoparen=9333,e.twoperiod=9353,e.twopersian=1778,e.tworoman=8561,e.twostroke=443,e.twosuperior=178,e.twothai=3666,e.twothirds=8532,e.u=117,e.uacute=250,e.ubar=649,e.ubengali=2441,e.ubopomofo=12584,e.ubreve=365,e.ucaron=468,e.ucircle=9444,e.ucircumflex=251,e.ucircumflexbelow=7799,e.ucyrillic=1091,e.udattadeva=2385,e.udblacute=369,e.udblgrave=533,e.udeva=2313,e.udieresis=252,e.udieresisacute=472,e.udieresisbelow=7795,e.udieresiscaron=474,e.udieresiscyrillic=1265,e.udieresisgrave=476,e.udieresismacron=470,e.udotbelow=7909,e.ugrave=249,e.ugujarati=2697,e.ugurmukhi=2569,e.uhiragana=12358,e.uhookabove=7911,e.uhorn=432,e.uhornacute=7913,e.uhorndotbelow=7921,e.uhorngrave=7915,e.uhornhookabove=7917,e.uhorntilde=7919,e.uhungarumlaut=369,e.uhungarumlautcyrillic=1267,e.uinvertedbreve=535,e.ukatakana=12454,e.ukatakanahalfwidth=65395,e.ukcyrillic=1145,e.ukorean=12636,e.umacron=363,e.umacroncyrillic=1263,e.umacrondieresis=7803,e.umatragurmukhi=2625,e.umonospace=65365,e.underscore=95,e.underscoredbl=8215,e.underscoremonospace=65343,e.underscorevertical=65075,e.underscorewavy=65103,e.union=8746,e.universal=8704,e.uogonek=371,e.uparen=9392,e.upblock=9600,e.upperdothebrew=1476,e.upsilon=965,e.upsilondieresis=971,e.upsilondieresistonos=944,e.upsilonlatin=650,e.upsilontonos=973,e.uptackbelowcmb=797,e.uptackmod=724,e.uragurmukhi=2675,e.uring=367,e.ushortcyrillic=1118,e.usmallhiragana=12357,e.usmallkatakana=12453,e.usmallkatakanahalfwidth=65385,e.ustraightcyrillic=1199,e.ustraightstrokecyrillic=1201,e.utilde=361,e.utildeacute=7801,e.utildebelow=7797,e.uubengali=2442,e.uudeva=2314,e.uugujarati=2698,e.uugurmukhi=2570,e.uumatragurmukhi=2626,e.uuvowelsignbengali=2498,e.uuvowelsigndeva=2370,e.uuvowelsigngujarati=2754,e.uvowelsignbengali=2497,e.uvowelsigndeva=2369,e.uvowelsigngujarati=2753,e.v=118,e.vadeva=2357,e.vagujarati=2741,e.vagurmukhi=2613,e.vakatakana=12535,e.vav=1493,e.vavdagesh=64309,e.vavdagesh65=64309,e.vavdageshhebrew=64309,e.vavhebrew=1493,e.vavholam=64331,e.vavholamhebrew=64331,e.vavvavhebrew=1520,e.vavyodhebrew=1521,e.vcircle=9445,e.vdotbelow=7807,e.vecyrillic=1074,e.veharabic=1700,e.vehfinalarabic=64363,e.vehinitialarabic=64364,e.vehmedialarabic=64365,e.vekatakana=12537,e.venus=9792,e.verticalbar=124,e.verticallineabovecmb=781,e.verticallinebelowcmb=809,e.verticallinelowmod=716,e.verticallinemod=712,e.vewarmenian=1406,e.vhook=651,e.vikatakana=12536,e.viramabengali=2509,e.viramadeva=2381,e.viramagujarati=2765,e.visargabengali=2435,e.visargadeva=2307,e.visargagujarati=2691,e.vmonospace=65366,e.voarmenian=1400,e.voicediterationhiragana=12446,e.voicediterationkatakana=12542,e.voicedmarkkana=12443,e.voicedmarkkanahalfwidth=65438,e.vokatakana=12538,e.vparen=9393,e.vtilde=7805,e.vturned=652,e.vuhiragana=12436,e.vukatakana=12532,e.w=119,e.wacute=7811,e.waekorean=12633,e.wahiragana=12431,e.wakatakana=12527,e.wakatakanahalfwidth=65436,e.wakorean=12632,e.wasmallhiragana=12430,e.wasmallkatakana=12526,e.wattosquare=13143,e.wavedash=12316,e.wavyunderscorevertical=65076,e.wawarabic=1608,e.wawfinalarabic=65262,e.wawhamzaabovearabic=1572,e.wawhamzaabovefinalarabic=65158,e.wbsquare=13277,e.wcircle=9446,e.wcircumflex=373,e.wdieresis=7813,e.wdotaccent=7815,e.wdotbelow=7817,e.wehiragana=12433,e.weierstrass=8472,e.wekatakana=12529,e.wekorean=12638,e.weokorean=12637,e.wgrave=7809,e.whitebullet=9702,e.whitecircle=9675,e.whitecircleinverse=9689,e.whitecornerbracketleft=12302,e.whitecornerbracketleftvertical=65091,e.whitecornerbracketright=12303,e.whitecornerbracketrightvertical=65092,e.whitediamond=9671,e.whitediamondcontainingblacksmalldiamond=9672,e.whitedownpointingsmalltriangle=9663,e.whitedownpointingtriangle=9661,e.whiteleftpointingsmalltriangle=9667,e.whiteleftpointingtriangle=9665,e.whitelenticularbracketleft=12310,e.whitelenticularbracketright=12311,e.whiterightpointingsmalltriangle=9657,e.whiterightpointingtriangle=9655,e.whitesmallsquare=9643,e.whitesmilingface=9786,e.whitesquare=9633,e.whitestar=9734,e.whitetelephone=9743,e.whitetortoiseshellbracketleft=12312,e.whitetortoiseshellbracketright=12313,e.whiteuppointingsmalltriangle=9653,e.whiteuppointingtriangle=9651,e.wihiragana=12432,e.wikatakana=12528,e.wikorean=12639,e.wmonospace=65367,e.wohiragana=12434,e.wokatakana=12530,e.wokatakanahalfwidth=65382,e.won=8361,e.wonmonospace=65510,e.wowaenthai=3623,e.wparen=9394,e.wring=7832,e.wsuperior=695,e.wturned=653,e.wynn=447,e.x=120,e.xabovecmb=829,e.xbopomofo=12562,e.xcircle=9447,e.xdieresis=7821,e.xdotaccent=7819,e.xeharmenian=1389,e.xi=958,e.xmonospace=65368,e.xparen=9395,e.xsuperior=739,e.y=121,e.yaadosquare=13134,e.yabengali=2479,e.yacute=253,e.yadeva=2351,e.yaekorean=12626,e.yagujarati=2735,e.yagurmukhi=2607,e.yahiragana=12420,e.yakatakana=12516,e.yakatakanahalfwidth=65428,e.yakorean=12625,e.yamakkanthai=3662,e.yasmallhiragana=12419,e.yasmallkatakana=12515,e.yasmallkatakanahalfwidth=65388,e.yatcyrillic=1123,e.ycircle=9448,e.ycircumflex=375,e.ydieresis=255,e.ydotaccent=7823,e.ydotbelow=7925,e.yeharabic=1610,e.yehbarreearabic=1746,e.yehbarreefinalarabic=64431,e.yehfinalarabic=65266,e.yehhamzaabovearabic=1574,e.yehhamzaabovefinalarabic=65162,e.yehhamzaaboveinitialarabic=65163,e.yehhamzaabovemedialarabic=65164,e.yehinitialarabic=65267,e.yehmedialarabic=65268,e.yehmeeminitialarabic=64733,e.yehmeemisolatedarabic=64600,e.yehnoonfinalarabic=64660,e.yehthreedotsbelowarabic=1745,e.yekorean=12630,e.yen=165,e.yenmonospace=65509,e.yeokorean=12629,e.yeorinhieuhkorean=12678,e.yerahbenyomohebrew=1450,e.yerahbenyomolefthebrew=1450,e.yericyrillic=1099,e.yerudieresiscyrillic=1273,e.yesieungkorean=12673,e.yesieungpansioskorean=12675,e.yesieungsioskorean=12674,e.yetivhebrew=1434,e.ygrave=7923,e.yhook=436,e.yhookabove=7927,e.yiarmenian=1397,e.yicyrillic=1111,e.yikorean=12642,e.yinyang=9775,e.yiwnarmenian=1410,e.ymonospace=65369,e.yod=1497,e.yoddagesh=64313,e.yoddageshhebrew=64313,e.yodhebrew=1497,e.yodyodhebrew=1522,e.yodyodpatahhebrew=64287,e.yohiragana=12424,e.yoikorean=12681,e.yokatakana=12520,e.yokatakanahalfwidth=65430,e.yokorean=12635,e.yosmallhiragana=12423,e.yosmallkatakana=12519,e.yosmallkatakanahalfwidth=65390,e.yotgreek=1011,e.yoyaekorean=12680,e.yoyakorean=12679,e.yoyakthai=3618,e.yoyingthai=3597,e.yparen=9396,e.ypogegrammeni=890,e.ypogegrammenigreekcmb=837,e.yr=422,e.yring=7833,e.ysuperior=696,e.ytilde=7929,e.yturned=654,e.yuhiragana=12422,e.yuikorean=12684,e.yukatakana=12518,e.yukatakanahalfwidth=65429,e.yukorean=12640,e.yusbigcyrillic=1131,e.yusbigiotifiedcyrillic=1133,e.yuslittlecyrillic=1127,e.yuslittleiotifiedcyrillic=1129,e.yusmallhiragana=12421,e.yusmallkatakana=12517,e.yusmallkatakanahalfwidth=65389,e.yuyekorean=12683,e.yuyeokorean=12682,e.yyabengali=2527,e.yyadeva=2399,e.z=122,e.zaarmenian=1382,e.zacute=378,e.zadeva=2395,e.zagurmukhi=2651,e.zaharabic=1592,e.zahfinalarabic=65222,e.zahinitialarabic=65223,e.zahiragana=12374,e.zahmedialarabic=65224,e.zainarabic=1586,e.zainfinalarabic=65200,e.zakatakana=12470,e.zaqefgadolhebrew=1429,e.zaqefqatanhebrew=1428,e.zarqahebrew=1432,e.zayin=1494,e.zayindagesh=64310,e.zayindageshhebrew=64310,e.zayinhebrew=1494,e.zbopomofo=12567,e.zcaron=382,e.zcircle=9449,e.zcircumflex=7825,e.zcurl=657,e.zdot=380,e.zdotaccent=380,e.zdotbelow=7827,e.zecyrillic=1079,e.zedescendercyrillic=1177,e.zedieresiscyrillic=1247,e.zehiragana=12380,e.zekatakana=12476,e.zero=48,e.zeroarabic=1632,e.zerobengali=2534,e.zerodeva=2406,e.zerogujarati=2790,e.zerogurmukhi=2662,e.zerohackarabic=1632,e.zeroinferior=8320,e.zeromonospace=65296,e.zerooldstyle=63280,e.zeropersian=1776,e.zerosuperior=8304,e.zerothai=3664,e.zerowidthjoiner=65279,e.zerowidthnonjoiner=8204,e.zerowidthspace=8203,e.zeta=950,e.zhbopomofo=12563,e.zhearmenian=1386,e.zhebrevecyrillic=1218,e.zhecyrillic=1078,e.zhedescendercyrillic=1175,e.zhedieresiscyrillic=1245,e.zihiragana=12376,e.zikatakana=12472,e.zinorhebrew=1454,e.zlinebelow=7829,e.zmonospace=65370,e.zohiragana=12382,e.zokatakana=12478,e.zparen=9397,e.zretroflexhook=656,e.zstroke=438,e.zuhiragana=12378,e.zukatakana=12474,e[`.notdef`]=0,e.angbracketleftbig=9001,e.angbracketleftBig=9001,e.angbracketleftbigg=9001,e.angbracketleftBigg=9001,e.angbracketrightBig=9002,e.angbracketrightbig=9002,e.angbracketrightBigg=9002,e.angbracketrightbigg=9002,e.arrowhookleft=8618,e.arrowhookright=8617,e.arrowlefttophalf=8636,e.arrowleftbothalf=8637,e.arrownortheast=8599,e.arrownorthwest=8598,e.arrowrighttophalf=8640,e.arrowrightbothalf=8641,e.arrowsoutheast=8600,e.arrowsouthwest=8601,e.backslashbig=8726,e.backslashBig=8726,e.backslashBigg=8726,e.backslashbigg=8726,e.bardbl=8214,e.bracehtipdownleft=65079,e.bracehtipdownright=65079,e.bracehtipupleft=65080,e.bracehtipupright=65080,e.braceleftBig=123,e.braceleftbig=123,e.braceleftbigg=123,e.braceleftBigg=123,e.bracerightBig=125,e.bracerightbig=125,e.bracerightbigg=125,e.bracerightBigg=125,e.bracketleftbig=91,e.bracketleftBig=91,e.bracketleftbigg=91,e.bracketleftBigg=91,e.bracketrightBig=93,e.bracketrightbig=93,e.bracketrightbigg=93,e.bracketrightBigg=93,e.ceilingleftbig=8968,e.ceilingleftBig=8968,e.ceilingleftBigg=8968,e.ceilingleftbigg=8968,e.ceilingrightbig=8969,e.ceilingrightBig=8969,e.ceilingrightbigg=8969,e.ceilingrightBigg=8969,e.circledotdisplay=8857,e.circledottext=8857,e.circlemultiplydisplay=8855,e.circlemultiplytext=8855,e.circleplusdisplay=8853,e.circleplustext=8853,e.contintegraldisplay=8750,e.contintegraltext=8750,e.coproductdisplay=8720,e.coproducttext=8720,e.floorleftBig=8970,e.floorleftbig=8970,e.floorleftbigg=8970,e.floorleftBigg=8970,e.floorrightbig=8971,e.floorrightBig=8971,e.floorrightBigg=8971,e.floorrightbigg=8971,e.hatwide=770,e.hatwider=770,e.hatwidest=770,e.intercal=7488,e.integraldisplay=8747,e.integraltext=8747,e.intersectiondisplay=8898,e.intersectiontext=8898,e.logicalanddisplay=8743,e.logicalandtext=8743,e.logicalordisplay=8744,e.logicalortext=8744,e.parenleftBig=40,e.parenleftbig=40,e.parenleftBigg=40,e.parenleftbigg=40,e.parenrightBig=41,e.parenrightbig=41,e.parenrightBigg=41,e.parenrightbigg=41,e.prime=8242,e.productdisplay=8719,e.producttext=8719,e.radicalbig=8730,e.radicalBig=8730,e.radicalBigg=8730,e.radicalbigg=8730,e.radicalbt=8730,e.radicaltp=8730,e.radicalvertex=8730,e.slashbig=47,e.slashBig=47,e.slashBigg=47,e.slashbigg=47,e.summationdisplay=8721,e.summationtext=8721,e.tildewide=732,e.tildewider=732,e.tildewidest=732,e.uniondisplay=8899,e.unionmultidisplay=8846,e.unionmultitext=8846,e.unionsqdisplay=8852,e.unionsqtext=8852,e.uniontext=8899,e.vextenddouble=8741,e.vextendsingle=8739}),qi=$e(function(e){e.space=32,e.a1=9985,e.a2=9986,e.a202=9987,e.a3=9988,e.a4=9742,e.a5=9990,e.a119=9991,e.a118=9992,e.a117=9993,e.a11=9755,e.a12=9758,e.a13=9996,e.a14=9997,e.a15=9998,e.a16=9999,e.a105=1e4,e.a17=10001,e.a18=10002,e.a19=10003,e.a20=10004,e.a21=10005,e.a22=10006,e.a23=10007,e.a24=10008,e.a25=10009,e.a26=10010,e.a27=10011,e.a28=10012,e.a6=10013,e.a7=10014,e.a8=10015,e.a9=10016,e.a10=10017,e.a29=10018,e.a30=10019,e.a31=10020,e.a32=10021,e.a33=10022,e.a34=10023,e.a35=9733,e.a36=10025,e.a37=10026,e.a38=10027,e.a39=10028,e.a40=10029,e.a41=10030,e.a42=10031,e.a43=10032,e.a44=10033,e.a45=10034,e.a46=10035,e.a47=10036,e.a48=10037,e.a49=10038,e.a50=10039,e.a51=10040,e.a52=10041,e.a53=10042,e.a54=10043,e.a55=10044,e.a56=10045,e.a57=10046,e.a58=10047,e.a59=10048,e.a60=10049,e.a61=10050,e.a62=10051,e.a63=10052,e.a64=10053,e.a65=10054,e.a66=10055,e.a67=10056,e.a68=10057,e.a69=10058,e.a70=10059,e.a71=9679,e.a72=10061,e.a73=9632,e.a74=10063,e.a203=10064,e.a75=10065,e.a204=10066,e.a76=9650,e.a77=9660,e.a78=9670,e.a79=10070,e.a81=9687,e.a82=10072,e.a83=10073,e.a84=10074,e.a97=10075,e.a98=10076,e.a99=10077,e.a100=10078,e.a101=10081,e.a102=10082,e.a103=10083,e.a104=10084,e.a106=10085,e.a107=10086,e.a108=10087,e.a112=9827,e.a111=9830,e.a110=9829,e.a109=9824,e.a120=9312,e.a121=9313,e.a122=9314,e.a123=9315,e.a124=9316,e.a125=9317,e.a126=9318,e.a127=9319,e.a128=9320,e.a129=9321,e.a130=10102,e.a131=10103,e.a132=10104,e.a133=10105,e.a134=10106,e.a135=10107,e.a136=10108,e.a137=10109,e.a138=10110,e.a139=10111,e.a140=10112,e.a141=10113,e.a142=10114,e.a143=10115,e.a144=10116,e.a145=10117,e.a146=10118,e.a147=10119,e.a148=10120,e.a149=10121,e.a150=10122,e.a151=10123,e.a152=10124,e.a153=10125,e.a154=10126,e.a155=10127,e.a156=10128,e.a157=10129,e.a158=10130,e.a159=10131,e.a160=10132,e.a161=8594,e.a163=8596,e.a164=8597,e.a196=10136,e.a165=10137,e.a192=10138,e.a166=10139,e.a167=10140,e.a168=10141,e.a169=10142,e.a170=10143,e.a171=10144,e.a172=10145,e.a173=10146,e.a162=10147,e.a174=10148,e.a175=10149,e.a176=10150,e.a177=10151,e.a178=10152,e.a179=10153,e.a193=10154,e.a180=10155,e.a199=10156,e.a181=10157,e.a200=10158,e.a182=10159,e.a201=10161,e.a183=10162,e.a184=10163,e.a197=10164,e.a185=10165,e.a194=10166,e.a198=10167,e.a186=10168,e.a195=10169,e.a187=10170,e.a188=10171,e.a189=10172,e.a190=10173,e.a191=10174,e.a89=10088,e.a90=10089,e.a93=10090,e.a94=10091,e.a91=10092,e.a92=10093,e.a205=10094,e.a85=10095,e.a206=10096,e.a86=10097,e.a87=10098,e.a88=10099,e.a95=10100,e.a96=10101,e[`.notdef`]=0}),Ji=$e(function(e){e[63721]=169,e[63193]=169,e[63720]=174,e[63194]=174,e[63722]=8482,e[63195]=8482,e[63729]=9127,e[63730]=9128,e[63731]=9129,e[63740]=9131,e[63741]=9132,e[63742]=9133,e[63726]=9121,e[63727]=9122,e[63728]=9123,e[63737]=9124,e[63738]=9125,e[63739]=9126,e[63723]=9115,e[63724]=9116,e[63725]=9117,e[63734]=9118,e[63735]=9119,e[63736]=9120});function Yi(e){return e>=65520&&e<=65535?0:e>=62976&&e<=63743?Ji()[e]||e:e===173?45:e}function Xi(e,t){let n=t[e];if(n!==void 0)return n;if(!e)return-1;if(e[0]===`u`){let t=e.length,r;if(t===7&&e[1]===`n`&&e[2]===`i`)r=e.substring(3);else if(t>=5&&t<=7)r=e.substring(1);else return-1;if(r===r.toUpperCase()&&(n=parseInt(r,16),n>=0))return n}return-1}let Zi=[[0,127],[128,255],[256,383],[384,591],[592,687,7424,7551,7552,7615],[688,767,42752,42783],[768,879,7616,7679],[880,1023],[11392,11519],[1024,1279,1280,1327,11744,11775,42560,42655],[1328,1423],[1424,1535],[42240,42559],[1536,1791,1872,1919],[1984,2047],[2304,2431],[2432,2559],[2560,2687],[2688,2815],[2816,2943],[2944,3071],[3072,3199],[3200,3327],[3328,3455],[3584,3711],[3712,3839],[4256,4351,11520,11567],[6912,7039],[4352,4607],[7680,7935,11360,11391,42784,43007],[7936,8191],[8192,8303,11776,11903],[8304,8351],[8352,8399],[8400,8447],[8448,8527],[8528,8591],[8592,8703,10224,10239,10496,10623,11008,11263],[8704,8959,10752,11007,10176,10223,10624,10751],[8960,9215],[9216,9279],[9280,9311],[9312,9471],[9472,9599],[9600,9631],[9632,9727],[9728,9983],[9984,10175],[12288,12351],[12352,12447],[12448,12543,12784,12799],[12544,12591,12704,12735],[12592,12687],[43072,43135],[12800,13055],[13056,13311],[44032,55215],[55296,57343],[67840,67871],[19968,40959,11904,12031,12032,12255,12272,12287,13312,19903,131072,173791,12688,12703],[57344,63743],[12736,12783,63744,64255,194560,195103],[64256,64335],[64336,65023],[65056,65071],[65040,65055],[65104,65135],[65136,65279],[65280,65519],[65520,65535],[3840,4095],[1792,1871],[1920,1983],[3456,3583],[4096,4255],[4608,4991,4992,5023,11648,11743],[5024,5119],[5120,5759],[5760,5791],[5792,5887],[6016,6143],[6144,6319],[10240,10495],[40960,42127],[5888,5919,5920,5951,5952,5983,5984,6015],[66304,66351],[66352,66383],[66560,66639],[118784,119039,119040,119295,119296,119375],[119808,120831],[1044480,1048573],[65024,65039,917760,917999],[917504,917631],[6400,6479],[6480,6527],[6528,6623],[6656,6687],[11264,11359],[11568,11647],[19904,19967],[43008,43055],[65536,65663,65664,65791,65792,65855],[65856,65935],[66432,66463],[66464,66527],[66640,66687],[66688,66735],[67584,67647],[68096,68191],[119552,119647],[73728,74751,74752,74879],[119648,119679],[7040,7103],[7168,7247],[7248,7295],[43136,43231],[43264,43311],[43312,43359],[43520,43615],[65936,65999],[66e3,66047],[66208,66271,66176,66207,67872,67903],[127024,127135,126976,127023]];function Qi(e,t=-1){if(t!==-1){let n=Zi[t];for(let r=0,i=n.length;r<i;r+=2)if(e>=n[r]&&e<=n[r+1])return t}for(let t=0,n=Zi.length;t<n;t++){let n=Zi[t];for(let r=0,i=n.length;r<i;r+=2)if(e>=n[r]&&e<=n[r+1])return t}return-1}let $i=/^(\\s)|(\\p{Mn})|(\\p{Cf})$/u,ea=new Map;function ta(e){let t=ea.get(e);if(t)return t;let n=e.match($i),r={isWhitespace:!!n?.[1],isZeroWidthDiacritic:!!n?.[2],isInvisibleFormatMark:!!n?.[3]};return ea.set(e,r),r}function na(){ea.clear()}let ra={FixedPitch:1,Serif:2,Symbolic:4,Script:8,Nonsymbolic:32,Italic:64,AllCap:65536,SmallCap:131072,ForceBold:262144},ia=`.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`.split(`,`);function aa(e,t){if(t[e]!==void 0)return e;let n=Xi(e,t);if(n!==-1){for(let e in t)if(t[e]===n)return e}return A(`Unable to recover a standard glyph name for: `+e),e}function oa(e,t,n){let r=Object.create(null),i,a,o,s=!!(e.flags&ra.Symbolic);if(e.isInternalFont)for(o=t,a=0;a<o.length;a++)i=n.indexOf(o[a]),r[a]=i>=0?i:0;else if(e.baseEncodingName)for(o=Gi(e.baseEncodingName),a=0;a<o.length;a++)i=n.indexOf(o[a]),r[a]=i>=0?i:0;else if(s)for(a in t)r[a]=t[a];else for(o=Vi,a=0;a<o.length;a++)i=n.indexOf(o[a]),r[a]=i>=0?i:0;let c=e.differences,l;if(c)for(a in c){let e=c[a];if(i=n.indexOf(e),i===-1){l||=Ki();let t=aa(e,l);t!==e&&(i=n.indexOf(t))}r[a]=i>=0?i:0}return r}function sa(e){return e.replaceAll(/[,_]/g,`-`).replaceAll(/\\s/g,``)}let ca=$e(e=>{e[8211]=65074,e[8212]=65073,e[8229]=65072,e[8230]=65049,e[12289]=65041,e[12290]=65042,e[12296]=65087,e[12297]=65088,e[12298]=65085,e[12299]=65086,e[12300]=65089,e[12301]=65090,e[12302]=65091,e[12303]=65092,e[12304]=65083,e[12305]=65084,e[12308]=65081,e[12309]=65082,e[12310]=65047,e[12311]=65048,e[65103]=65076,e[65281]=65045,e[65288]=65077,e[65289]=65078,e[65292]=65040,e[65306]=65043,e[65307]=65044,e[65311]=65046,e[65339]=65095,e[65341]=65096,e[65343]=65075,e[65371]=65079,e[65373]=65080}),la=1e3;function ua({data:e,width:t,height:n}){if(t>la||n>la)return null;let r=1e3,i=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),a=t+1,o=new Uint8Array(a*(n+1)),s,c,l,u=t+7&-8,d=new Uint8Array(u*n),f=0;for(let t of e){let e=128;for(;e>0;)d[f++]=t&e?0:255,e>>=1}let p=0;for(f=0,d[f]!==0&&(o[0]=1,++p),c=1;c<t;c++)d[f]!==d[f+1]&&(o[c]=d[f]?2:1,++p),f++;for(d[f]!==0&&(o[c]=2,++p),s=1;s<n;s++){f=s*u,l=s*a,d[f-u]!==d[f]&&(o[l]=d[f]?1:8,++p);let e=(d[f]?4:0)+(d[f-u]?8:0);for(c=1;c<t;c++)e=(e>>2)+(d[f+1]?4:0)+(d[f-u+1]?8:0),i[e]&&(o[l+c]=i[e],++p),f++;if(d[f-u]!==d[f]&&(o[l+c]=d[f]?2:4,++p),p>r)return null}for(f=u*(n-1),l=s*a,d[f]!==0&&(o[l]=8,++p),c=1;c<t;c++)d[f]!==d[f+1]&&(o[l+c]=d[f]?4:8,++p),f++;if(d[f]!==0&&(o[l+c]=4,++p),p>r)return null;let m=new Int32Array([0,a,-1,0,-a,0,0,0,1]),h=[],{a:g,b:_,c:v,d:y,e:b,f:x}=new DOMMatrix().scaleSelf(1/t,-1/n).translateSelf(0,-n);for(s=0;p&&s<=n;s++){let e=s*a,n=e+t;for(;e<n&&!o[e];)e++;if(e===n)continue;let r=e%a,i=s;h.push(O.moveTo,g*r+v*i+b,_*r+y*i+x);let c=e,l=o[e];do{let t=m[l];do e+=t;while(!o[e]);let n=o[e];n!==5&&n!==10?(l=n,o[e]=0):(l=n&51*l>>4,o[e]&=l>>2|l<<2),r=e%a,i=e/a|0,h.push(O.lineTo,g*r+v*i+b,_*r+y*i+x),o[e]||--p}while(c!==e);--s}return[D.rawFillPath,[new Float32Array(h)],new Float32Array([0,0,t,n])]}n(1806);let da=`.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`.split(`,`),fa=`.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`.split(`,`),pa=`.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`.split(`,`);var ma=class{#e;#t=1024;#n=!1;#r=0;#i;constructor({exactLength:e=0,minLength:t=0}){this.#n=!!e,this.#a(e||t)}#a(e){if(this.#n)this.#t=e;else for(;this.#t<e;)this.#t*=2;let t=new Uint8Array(this.#t);this.#e&&t.set(this.#e,0),this.#e=t,this.#i=new DataView(t.buffer)}get data(){return this.#e.subarray(0,this.#r)}get length(){return this.#r}skip(e){this.#r+=e}setArray(e){let t=this.#r+e.length;!this.#n&&t>this.#t&&this.#a(t),this.#e.set(e,this.#r),this.#r=t}setInt16(e){let t=this.#r+2;!this.#n&&t>this.#t&&this.#a(t),this.#i.setInt16(this.#r,e),this.#r=t}setSafeInt16(e){let t=this.#r+2;!this.#n&&t>this.#t&&this.#a(t),this.#i.setInt16(this.#r,rn(e,-32768,32767)),this.#r=t}setInt32(e){let t=this.#r+4;!this.#n&&t>this.#t&&this.#a(t),this.#i.setInt32(this.#r,e),this.#r=t}};function ha(e){return e>32767&&e<=65535}function ga(e,t=!1){return ge.normalizeRect(e.map((e,n)=>(!t||n<2)&&ha(e)?e-65536:e))}let _a=`.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`.split(`,`),va=.039625,ya=.06,ba=[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},{id:`return`,min: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},{id:`vhcurveto`,min:4,resetStack:!0},{id:`hvcurveto`,min:4,resetStack:!0}],xa=[null,null,null,{id:`and`,min:2,stackDelta:-1},{id:`or`,min:2,stackDelta:-1},{id:`not`,min:1,stackDelta:0},null,null,null,{id:`abs`,min:1,stackDelta:0},{id:`add`,min:2,stackDelta:-1,stackFn(e,t){e[t-2]=e[t-2]+e[t-1]}},{id:`sub`,min:2,stackDelta:-1,stackFn(e,t){e[t-2]=e[t-2]-e[t-1]}},{id:`div`,min:2,stackDelta:-1,stackFn(e,t){e[t-2]=e[t-2]/e[t-1]}},null,{id:`neg`,min:1,stackDelta:0,stackFn(e,t){e[t-1]=-e[t-1]}},{id:`eq`,min:2,stackDelta:-1},null,null,{id:`drop`,min:1,stackDelta:-1},null,{id:`put`,min:2,stackDelta:-2},{id:`get`,min:1,stackDelta:0},{id:`ifelse`,min:4,stackDelta:-3},{id:`random`,min:0,stackDelta:1},{id:`mul`,min:2,stackDelta:-1,stackFn(e,t){e[t-2]=e[t-2]*e[t-1]}},null,{id:`sqrt`,min:1,stackDelta:0},{id:`dup`,min:1,stackDelta:1},{id:`exch`,min:2,stackDelta:0},{id:`index`,min:2,stackDelta:0},{id:`roll`,min:3,stackDelta:-2},null,null,null,{id:`hflex`,min:7,resetStack:!0},{id:`flex`,min:13,resetStack:!0},{id:`hflex1`,min:9,resetStack:!0},{id:`flex1`,min:11,resetStack:!0}];var Sa=class{constructor(e,t,n){this.bytes=e.getBytes(),this.properties=t,this.seacAnalysisEnabled=!!n}parse(){let e=this.properties,t=new Ca(this.bytes.length);this.cff=t;let n=this.parseHeader(),r=this.parseIndex(n.endPos),i=this.parseIndex(r.endPos),a=this.parseIndex(i.endPos),o=this.parseIndex(a.endPos),s=this.parseDict(i.obj.get(0)),c=this.createDict(ka,s,t.strings);t.header=n.obj,t.names=this.parseNameIndex(r.obj),t.strings=this.parseStringIndex(a.obj),t.topDict=c,t.globalSubrIndex=o.obj,this.parsePrivateDict(t.topDict),t.isCIDFont=c.hasName(`ROS`);let l=c.getByName(`CharStrings`),u=this.parseIndex(l).obj;t.charStringCount=u.count;let d=c.getByName(`FontMatrix`);d&&(e.fontMatrix=d);let f=c.getByName(`FontBBox`),p=e.bbox?.some(e=>e!==0)?ga(e.bbox):null,m=f?.slice(0,2).some(ha),h=f?.some(ha);if(f?.every(e=>e===0)&&p)f=p,c.setByName(`FontBBox`,f);else if(h){let t=ga(f),n=p&&e.bbox.some(e=>e<0)&&!e.bbox.some(ha)&&ye(t,p);(n||m)&&(f=n?t:ga(f,!0),c.setByName(`FontBBox`,f))}f?.some(e=>e!==0)&&(e.ascent=Math.max(f[3],f[1]),e.descent=Math.min(f[1],f[3]),e.ascentScaled=!0);let g,_;if(t.isCIDFont){let e=this.parseIndex(c.getByName(`FDArray`)).obj;for(let n=0,r=e.count;n<r;++n){let r=e.get(n),i=this.createDict(ka,this.parseDict(r),t.strings);this.parsePrivateDict(i),t.fdArray.push(i)}_=null,g=this.parseCharsets(c.getByName(`charset`),u.count,t.strings,!0),t.fdSelect=this.parseFDSelect(c.getByName(`FDSelect`),u.count)}else g=this.parseCharsets(c.getByName(`charset`),u.count,t.strings,!1),_=this.parseEncoding(c.getByName(`Encoding`),e,t.strings,g.charset);t.charset=g,t.encoding=_;let v=this.parseCharStrings({charStrings:u,localSubrIndex:c.privateDict.subrsIndex,globalSubrIndex:o.obj,fdSelect:t.fdSelect,fdArray:t.fdArray,privateDict:c.privateDict});return t.charStrings=v.charStrings,t.seacs=v.seacs,t.widths=v.widths,t}parseHeader(){let e=this.bytes,t=e.length,n=0;for(;n<t&&e[n]!==1;)++n;if(n>=t)throw new F(`Invalid CFF header`);n!==0&&(A(`cff data is shifted`),e=e.subarray(n),this.bytes=e);let r=e[0],i=e[1],a=e[2],o=e[3];return{obj:new wa(r,i,a,o),endPos:a}}parseDict(e){let t=new DataView(e.buffer,e.byteOffset,e.bytesLength),n=0;function r(){let r=e[n++];return r===30?i():r===28?(r=t.getInt16(n),n+=2,r):r===29?(r=t.getInt32(n),n+=4,r):r>=32&&r<=246?r-139:r>=247&&r<=250?(r-247)*256+e[n++]+108:r>=251&&r<=254?-((r-251)*256)-e[n++]-108:(j(`CFFParser.parseDict: "${r}" is a reserved command.`),NaN)}function i(){let t=``,r=[`0`,`1`,`2`,`3`,`4`,`5`,`6`,`7`,`8`,`9`,`.`,`E`,`E-`,null,`-`],i=e.length;for(;n<i;){let i=e[n++],a=i>>4,o=i&15;if(a===15||(t+=r[a],o===15))break;t+=r[o]}return parseFloat(t)}let a=[],o=[];n=0;let s=e.length;for(;n<s;){let t=e[n];t<=21?(t===12&&(t=t<<8|e[++n]),o.push([t,a]),a=[],++n):a.push(r())}return o}parseIndex(e){let t=new Ea,n=this.bytes,r=n[e++]<<8|n[e++],i=[],a=e,o,s;if(r!==0){let t=n[e++],c=e+(r+1)*t-1;for(o=0,s=r+1;o<s;++o){let r=0;for(let i=0;i<t;++i)r<<=8,r+=n[e++];i.push(c+r)}a=i[r]}for(o=0,s=i.length-1;o<s;++o){let e=i[o],r=i[o+1];t.add(n.subarray(e,r))}return{obj:t,endPos:a}}parseNameIndex(e){let t=[];for(let n=0,r=e.count;n<r;++n){let r=e.get(n);t.push(fe(r))}return t}parseStringIndex(e){let t=new Ta;for(let n=0,r=e.count;n<r;++n){let r=e.get(n);t.add(fe(r))}return t}createDict(e,t,n){let r=new e(n);for(let[e,n]of t)r.setByKey(e,n);return r}parseCharString(e,t,n,r){if(!t||e.callDepth>10)return!1;let i=new DataView(t.buffer,t.byteOffset,t.bytesLength),a=e.stackSize,o=e.stack,s=t.length;for(let c=0;c<s;){let l=t[c++],u=null;if(l===12){let e=t[c++];e===0?(t[c-2]=139,t[c-1]=22,a=0):u=xa[e]}else if(l===28)o[a]=i.getInt16(c),c+=2,a++;else if(l===14){if(a>=4&&(a-=4,this.seacAnalysisEnabled))return e.seac=o.slice(a,a+4),!1;u=ba[l]}else if(l>=32&&l<=246)o[a]=l-139,a++;else if(l>=247&&l<=254)o[a]=l<251?(l-247<<8)+t[c]+108:-(l-251<<8)-t[c]-108,c++,a++;else if(l===255)o[a]=i.getInt32(c)/65536,c+=4,a++;else if(l===19||l===20){if(e.hints+=a>>1,e.hints===0){t.copyWithin(c-1,c,-1),--c,--s;continue}c+=e.hints+7>>3,a%=2,u=ba[l]}else if(l===10||l===29){let t=l===10?n:r;if(!t)return u=ba[l],j(`Missing subrsIndex for `+u.id),!1;let i=32768;t.count<1240?i=107:t.count<33900&&(i=1131);let s=o[--a]+i;if(s<0||s>=t.count||isNaN(s))return u=ba[l],j(`Out of bounds subrIndex for `+u.id),!1;if(e.stackSize=a,e.callDepth++,!this.parseCharString(e,t.get(s),n,r))return!1;e.callDepth--,a=e.stackSize;continue}else if(l===11)return e.stackSize=a,!0;else if(l===0&&c===t.length)t[c-1]=14,u=ba[14];else if(l===9){t.copyWithin(c-1,c,-1),--c,--s;continue}else u=ba[l];if(u){if(u.stem&&(e.hints+=a>>1,l===3||l===23?e.hasVStems=!0:e.hasVStems&&(l===1||l===18)&&(j(`CFF stem hints are in wrong order`),t[c-1]=l===1?3:23)),a<u.min)return j(`Not enough parameters for `+u.id+`; actual: `+a+`, expected: `+u.min),a===0?(t[c-1]=14,!0):!1;e.firstStackClearing&&u.stackClearing&&(e.firstStackClearing=!1,a-=u.min,a>=2&&u.stem?a%=2:a>1&&j(`Found too many parameters for stack-clearing command`),a>0&&(e.width=o[a-1])),`stackDelta`in u?(`stackFn`in u&&u.stackFn(o,a),a+=u.stackDelta):(u.stackClearing||u.resetStack)&&(a=0)}}return s<t.length&&t.fill(14,s),e.stackSize=a,!0}parseCharStrings({charStrings:e,localSubrIndex:t,globalSubrIndex:n,fdSelect:r,fdArray:i,privateDict:a}){let o=[],s=[],c=e.count;for(let l=0;l<c;l++){let c=e.get(l),u={callDepth:0,stackSize:0,stack:[],hints:0,firstStackClearing:!0,seac:null,width:null,hasVStems:!1},d=!0,f=null,p=a;if(r&&i.length){let e=r.getFDIndex(l);e===-1&&(j(`Glyph index is not in fd select.`),d=!1),e>=i.length&&(j(`Invalid fd index for glyph index.`),d=!1),d&&(p=i[e].privateDict,f=p.subrsIndex)}else t&&(f=t);d&&=this.parseCharString(u,c,f,n),u.width===null?s[l]=p.getByName(`defaultWidthX`):s[l]=p.getByName(`nominalWidthX`)+u.width,u.seac!==null&&(o[l]=u.seac),d||e.set(l,new Uint8Array([14]))}return{charStrings:e,seacs:o,widths:s}}emptyPrivateDictionary(e){let t=this.createDict(ja,[],e.strings);e.setByKey(18,[0,0]),e.privateDict=t}parsePrivateDict(e){if(!e.hasName(`Private`)){this.emptyPrivateDictionary(e);return}let t=e.getByName(`Private`);if(!Array.isArray(t)||t.length!==2){e.removeByName(`Private`);return}let n=t[0],r=t[1];if(n===0||r>=this.bytes.length){this.emptyPrivateDictionary(e);return}if(r+n>this.bytes.length)throw new F(`CFF Private DICT extends past end of font`);let i=r+n,a=this.bytes.subarray(r,i),o=this.parseDict(a),s=this.createDict(ja,o,e.strings);e.privateDict=s;let c=s.getByName(`BlueScale`),l=s.getByName(`BlueShift`),u=s.getByName(`BlueFuzz`),d=s.getByName(`ExpansionFactor`);if(c===0&&l===0&&u===0&&d===0&&(s.setByName(`BlueScale`,va),s.setByName(`BlueShift`,7),s.setByName(`BlueFuzz`,1)),d===0&&s.setByName(`ExpansionFactor`,ya),c>0){let e=0;for(let t of[s.getByName(`BlueValues`),s.getByName(`OtherBlues`)])if(t)for(let n=1;n<t.length;n+=2)t[n]>e&&(e=t[n]);if(e>0){let t=rn(c,c<va?.5/e:-1/0,1/e);t!==c&&s.setByName(`BlueScale`,t)}}if(!s.getByName(`Subrs`))return;let f=s.getByName(`Subrs`),p=r+f;if(f===0||p>=this.bytes.length){this.emptyPrivateDictionary(e);return}s.subrsIndex=this.parseIndex(p).obj}parseCharsets(e,t,n,r){if(e===0)return new Na(!0,Ma.ISO_ADOBE,da);if(e===1)return new Na(!0,Ma.EXPERT,fa);if(e===2)return new Na(!0,Ma.EXPERT_SUBSET,pa);let{bytes:i}=this,a=i[e++],o=[r?0:`.notdef`],s,c,l;switch(--t,a){case 0:for(l=0;l<t;l++)s=i[e++]<<8|i[e++],o.push(r?s:n.get(s));break;case 1:for(;o.length<=t;)for(s=i[e++]<<8|i[e++],c=i[e++],l=0;l<=c;l++)o.push(r?s++:n.get(s++));break;case 2:for(;o.length<=t;)for(s=i[e++]<<8|i[e++],c=i[e++]<<8|i[e++],l=0;l<=c;l++)o.push(r?s++:n.get(s++));break;default:throw new F(`Unknown charset format`)}return new Na(!1,a,o)}parseEncoding(e,t,n,r){let i=Object.create(null),a=this.bytes,o=!1,s,c,l,u=null;function d(){let t=a[e++];for(c=0;c<t;c++){let t=a[e++],o=(a[e++]<<8)+(a[e++]&255);i[t]=r.indexOf(n.get(o))}}if(e===0||e===1){o=!0,s=e;let t=e?Ri:Vi;for(c=0,l=r.length;c<l;c++){let e=t.indexOf(r[c]);e!==-1&&(i[e]=c)}}else{let t=e;switch(s=a[e++],s&127){case 0:let t=a[e++];for(c=1;c<=t;c++)i[a[e++]]=c;break;case 1:let n=a[e++],r=1;for(c=0;c<n;c++){let t=a[e++],n=a[e++];for(let e=t;e<=t+n;e++)i[e]=r++}break;default:throw new F(`Unknown encoding format: ${s} in CFF`)}let n=e;s&128&&(a[t]&=127,d()),u=a.subarray(t,n)}return s&=127,new Pa(o,s,i,u)}parseFDSelect(e,t){let n=this.bytes,r=n[e++],i=[],a;switch(r){case 0:for(a=0;a<t;++a){let t=n[e++];i.push(t)}break;case 3:let o=n[e++]<<8|n[e++];for(a=0;a<o;++a){let t=n[e++]<<8|n[e++];a===0&&t!==0&&(j(`parseFDSelect: The first range must have a first GID of 0 -- trying to recover.`),t=0);let r=n[e++],o=n[e]<<8|n[e+1];for(let e=t;e<o;++e)i.push(r)}e+=2;break;default:throw new F(`parseFDSelect: Unknown format "${r}".`)}if(i.length!==t)throw new F(`parseFDSelect: Invalid font data.`);return new Fa(r,i)}},Ca=class{header=null;names=[];topDict=null;strings=new Ta;globalSubrIndex=null;encoding=null;charset=null;charStrings=null;fdArray=[];fdSelect=null;isCIDFont=!1;charStringCount=0;constructor(e=0){this.rawFileLength=e}duplicateFirstGlyph(){if(this.charStrings.count>=65535){j(`Not enough space in charstrings to duplicate first glyph.`);return}let e=this.charStrings.get(0);this.charStrings.add(e),this.isCIDFont&&this.fdSelect.fdSelect.push(this.fdSelect.fdSelect[0])}hasGlyphId(e){return e<0||e>=this.charStrings.count?!1:this.charStrings.get(e).length>0}},wa=class{constructor(e,t,n,r){this.major=e,this.minor=t,this.hdrSize=n,this.offSize=r}},Ta=class{strings=[];get(e){return e>=0&&e<=390?_a[e]:e-391<=this.strings.length?this.strings[e-391]:_a[0]}getSID(e){let t=_a.indexOf(e);return t===-1?(t=this.strings.indexOf(e),t===-1?-1:t+391):t}add(e){this.strings.push(e)}get count(){return this.strings.length}},Ea=class{objects=[];length=0;add(e){this.length+=e.length,this.objects.push(e)}set(e,t){this.length+=t.length-this.objects[e].length,this.objects[e]=t}get(e){return this.objects[e]}get count(){return this.objects.length}},Da=class{constructor(e,t){this.keyToNameMap=e.keyToNameMap,this.nameToKeyMap=e.nameToKeyMap,this.defaults=e.defaults,this.types=e.types,this.opcodes=e.opcodes,this.order=e.order,this.strings=t,this.values=Object.create(null)}setByKey(e,t){if(!(e in this.keyToNameMap))return!1;if(t.length===0)return!0;for(let n of t)if(isNaN(n))return j(`Invalid CFFDict value: "${t}" for key "${e}".`),!0;let n=this.types[e];return(n===`num`||n===`sid`||n===`offset`)&&(t=t[0]),this.values[e]=t,!0}setByName(e,t){if(!(e in this.nameToKeyMap))throw new F(`Invalid dictionary name "${e}"`);this.values[this.nameToKeyMap[e]]=t}hasName(e){return this.nameToKeyMap[e]in this.values}getByName(e){if(!(e in this.nameToKeyMap))throw new F(`Invalid dictionary name ${e}"`);let t=this.nameToKeyMap[e];return t in this.values?this.values[t]:this.defaults[t]}removeByName(e){delete this.values[this.nameToKeyMap[e]]}static createTables(e){let t={keyToNameMap:{},nameToKeyMap:{},defaults:{},types:{},opcodes:{},order:[]};for(let n of e){let e=Array.isArray(n[0])?(n[0][0]<<8)+n[0][1]:n[0];t.keyToNameMap[e]=n[1],t.nameToKeyMap[n[1]]=e,t.types[e]=n[2],t.defaults[e]=n[3],t.opcodes[e]=Array.isArray(n[0])?n[0]:[n[0]],t.order.push(e)}return t}};let Oa=[[[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]];var ka=class e extends Da{static get tables(){return P(this,`tables`,this.createTables(Oa))}constructor(t){super(e.tables,t),this.privateDict=null}};let Aa=[[6,`BlueValues`,`delta`,null],[7,`OtherBlues`,`delta`,null],[8,`FamilyBlues`,`delta`,null],[9,`FamilyOtherBlues`,`delta`,null],[[12,9],`BlueScale`,`num`,va],[[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`,ya],[[12,19],`initialRandomSeed`,`num`,0],[20,`defaultWidthX`,`num`,0],[21,`nominalWidthX`,`num`,0],[19,`Subrs`,`offset`,null]];var ja=class e extends Da{static get tables(){return P(this,`tables`,this.createTables(Aa))}constructor(t){super(e.tables,t),this.subrsIndex=null}};let Ma={ISO_ADOBE:0,EXPERT:1,EXPERT_SUBSET:2};var Na=class{constructor(e,t,n){this.predefined=e,this.format=t,this.charset=n}},Pa=class{constructor(e,t,n,r){this.predefined=e,this.format=t,this.encoding=n,this.raw=r}},Fa=class{constructor(e,t){this.format=e,this.fdSelect=t}getFDIndex(e){return e<0||e>=this.fdSelect.length?-1:this.fdSelect[e]}},Ia=class{offsets=Object.create(null);isTracking(e){return e in this.offsets}track(e,t){if(e in this.offsets)throw new F(`Already tracking location of ${e}`);this.offsets[e]=t}offset(e){for(let t in this.offsets)this.offsets[t]+=e}setEntryLocation(e,t,n){if(!(e in this.offsets))throw new F(`Not tracking location of ${e}`);let r=n.data,i=this.offsets[e];for(let e=0,n=t.length;e<n;++e){let n=e*5+i,a=n+1,o=n+2,s=n+3,c=n+4;if(r[n]!==29||r[a]!==0||r[o]!==0||r[s]!==0||r[c]!==0)throw new F(`writing to an offset that is not empty`);let l=t[e];r[n]=29,r[a]=l>>24&255,r[o]=l>>16&255,r[s]=l>>8&255,r[c]=l&255}}},La=class e{constructor(e){this.cff=e}compile(){let e=this.cff,t=new ma({minLength:e.rawFileLength}),n=this.compileHeader(e.header);t.setArray(n);let r=this.compileNameIndex(e.names);if(t.setArray(r),e.isCIDFont&&e.topDict.hasName(`FontMatrix`)){let t=e.topDict.getByName(`FontMatrix`);e.topDict.removeByName(`FontMatrix`);for(let n of e.fdArray){let e=t.slice(0);n.hasName(`FontMatrix`)&&(e=ge.transform(e,n.getByName(`FontMatrix`))),n.setByName(`FontMatrix`,e)}}e.topDict.getByName(`XUID`)?.length>16&&e.topDict.removeByName(`XUID`),e.topDict.setByName(`charset`,0);let i=this.compileTopDicts([e.topDict],t.length,e.isCIDFont);t.setArray(i.output);let a=i.trackers[0],o=this.compileStringIndex(e.strings.strings);t.setArray(o);let s=this.compileIndex(e.globalSubrIndex);if(t.setArray(s),e.encoding&&e.topDict.hasName(`Encoding`))if(e.encoding.predefined)a.setEntryLocation(`Encoding`,[e.encoding.format],t);else{let n=this.compileEncoding(e.encoding);a.setEntryLocation(`Encoding`,[t.length],t),t.setArray(n)}let c=this.compileCharset(e.charset,e.charStrings.count,e.strings,e.isCIDFont);a.setEntryLocation(`charset`,[t.length],t),t.setArray(c);let l=this.compileCharStrings(e.charStrings);if(a.setEntryLocation(`CharStrings`,[t.length],t),t.setArray(l),e.isCIDFont){a.setEntryLocation(`FDSelect`,[t.length],t);let n=this.compileFDSelect(e.fdSelect);t.setArray(n),i=this.compileTopDicts(e.fdArray,t.length,!0),a.setEntryLocation(`FDArray`,[t.length],t),t.setArray(i.output);let r=i.trackers;this.compilePrivateDicts(e.fdArray,r,t)}return this.compilePrivateDicts([e.topDict],[a],t),t.setArray([0]),t.data}encodeNumber(e){return Number.isInteger(e)?this.encodeInteger(e):this.encodeFloat(e)}static get EncodeFloatRegExp(){return P(this,`EncodeFloatRegExp`,/\\.(\\d*?)(?:9{5,20}|0{5,20})\\d{0,2}(?:e(.+)|$)/)}encodeFloat(t){let n=t.toString(),r=e.EncodeFloatRegExp.exec(n);if(r){let e=parseFloat(`1e`+((r[2]?+r[2]:0)+r[1].length));n=(Math.round(t*e)/e).toString()}let i=``,a,o;for(a=0,o=n.length;a<o;++a){let e=n[a];e===`e`?i+=n[++a]===`-`?`c`:`b`:e===`.`?i+=`a`:e===`-`?i+=`e`:i+=e}i+=i.length&1?`f`:`ff`;let s=[30];for(a=0,o=i.length;a<o;a+=2)s.push(parseInt(i.substring(a,a+2),16));return s}encodeInteger(e){let t;return e>=-107&&e<=107?t=[e+139]:e>=108&&e<=1131?(e-=108,t=[(e>>8)+247,e&255]):e>=-1131&&e<=-108?(e=-e-108,t=[(e>>8)+251,e&255]):t=e>=-32768&&e<=32767?[28,e>>8&255,e&255]:[29,e>>24&255,e>>16&255,e>>8&255,e&255],t}compileHeader(e){return[e.major,e.minor,4,e.offSize]}compileNameIndex(e){let t=new Ea;for(let n of e){let e=Math.min(n.length,127),r=Array(e);for(let t=0;t<e;t++){let e=n[t];(e<`!`||e>`~`||e===`[`||e===`]`||e===`(`||e===`)`||e===`{`||e===`}`||e===`<`||e===`>`||e===`/`||e===`%`)&&(e=`_`),r[t]=e}r=r.join(``),r===``&&(r=`Bad_Font_Name`),t.add(pe(r))}return this.compileIndex(t)}compileTopDicts(e,t,n){let r=[],i=new Ea;for(let a of e){n&&(a.removeByName(`CIDFontVersion`),a.removeByName(`CIDFontRevision`),a.removeByName(`CIDFontType`),a.removeByName(`CIDCount`),a.removeByName(`UIDBase`));let e=new Ia,o=this.compileDict(a,e);r.push(e),i.add(o),e.offset(t)}return i=this.compileIndex(i,r),{trackers:r,output:i}}compilePrivateDicts(e,t,n){for(let r=0,i=e.length;r<i;++r){let i=e[r],a=i.privateDict;if(!a||!i.hasName(`Private`))throw new F(`There must be a private dictionary.`);let o=new Ia,s=this.compileDict(a,o),c=n.length;if(o.offset(c),s.length||(c=0),t[r].setEntryLocation(`Private`,[s.length,c],n),n.setArray(s),a.subrsIndex&&a.hasName(`Subrs`)){let e=this.compileIndex(a.subrsIndex);o.setEntryLocation(`Subrs`,[s.length],n),n.setArray(e)}}}compileDict(e,t){let n=[];for(let r of e.order){if(!(r in e.values))continue;let i=e.values[r],a=e.types[r];if(Array.isArray(a)||(a=[a]),Array.isArray(i)||(i=[i]),i.length!==0){for(let o=0,s=a.length;o<s;++o){let s=a[o],c=i[o];switch(s){case`num`:case`sid`:n.push(...this.encodeNumber(c));break;case`offset`:let a=e.keyToNameMap[r];t.isTracking(a)||t.track(a,n.length),n.push(29,0,0,0,0);break;case`array`:case`delta`:n.push(...this.encodeNumber(c));for(let e=1,t=i.length;e<t;++e)n.push(...this.encodeNumber(i[e]));break;default:throw new F(`Unknown data type of ${s}`)}}n.push(...e.opcodes[r])}}return n}compileStringIndex(e){let t=new Ea;for(let n of e)t.add(pe(n));return this.compileIndex(t)}compileCharStrings(e){let t=new Ea;for(let n=0;n<e.count;n++){let r=e.get(n);if(r.length===0){t.add(new Uint8Array([139,14]));continue}t.add(r)}return this.compileIndex(t)}compileCharset(e,t,n,r){let i,a=t-1;if(r){let e=a-1;i=new Uint8Array([2,0,1,e>>8&255,e&255])}else{let t=1+a*2;i=new Uint8Array(t);let r=0,o=e.charset.length,s=!1;for(let t=1;t<i.length;t+=2){let a=0;if(r<o){let t=e.charset[r++];a=n.getSID(t),a===-1&&(a=0,s||(s=!0,j(`Couldn\'t find ${t} in CFF strings`)))}i[t]=a>>8&255,i[t+1]=a&255}}return i}compileEncoding(e){return e.raw}compileFDSelect(e){let t=e.format,n,r;switch(t){case 0:n=new Uint8Array(1+e.fdSelect.length),n[0]=t,n.set(e.fdSelect,1);break;case 3:let i=e.fdSelect[0],a=[t,0,0,0,0,i];for(r=1;r<e.fdSelect.length;r++){let t=e.fdSelect[r];t!==i&&(a.push(r>>8&255,r&255,t),i=t)}let o=(a.length-3)/3;a[1]=o>>8&255,a[2]=o&255,a.push(r>>8&255,r&255),n=new Uint8Array(a);break}return n}compileIndex(e,t=[]){let n=e.objects,r=n.length;if(r===0)return new Uint8Array(2);let i=1,a;for(a=0;a<r;++a)i+=n[a].length;let o;o=i<256?1:i<65536?2:i<16777216?3:4;let s=new Uint8Array(2+o*(r+1)+i),c=0;s[c++]=r>>8&255,s[c++]=r&255,s[c++]=o;let l=1;for(a=0;a<r+1;a++)o===1?s[c++]=l&255:o===2?(s[c++]=l>>8&255,s[c++]=l&255):o===3?(s[c++]=l>>16&255,s[c++]=l>>8&255,s[c++]=l&255):(s[c++]=l>>>24&255,s[c++]=l>>16&255,s[c++]=l>>8&255,s[c++]=l&255),n[a]&&(l+=n[a].length);for(a=0;a<r;a++)t[a]?.offset(c),s.set(n[a],c),c+=n[a].length;return s}};let Ra=$e(function(e){e[`Times-Roman`]=`Times-Roman`,e.Helvetica=`Helvetica`,e.Courier=`Courier`,e.Symbol=`Symbol`,e[`Times-Bold`]=`Times-Bold`,e[`Helvetica-Bold`]=`Helvetica-Bold`,e[`Courier-Bold`]=`Courier-Bold`,e.ZapfDingbats=`ZapfDingbats`,e[`Times-Italic`]=`Times-Italic`,e[`Helvetica-Oblique`]=`Helvetica-Oblique`,e[`Courier-Oblique`]=`Courier-Oblique`,e[`Times-BoldItalic`]=`Times-BoldItalic`,e[`Helvetica-BoldOblique`]=`Helvetica-BoldOblique`,e[`Courier-BoldOblique`]=`Courier-BoldOblique`,e.ArialNarrow=`Helvetica`,e[`ArialNarrow-Bold`]=`Helvetica-Bold`,e[`ArialNarrow-BoldItalic`]=`Helvetica-BoldOblique`,e[`ArialNarrow-Italic`]=`Helvetica-Oblique`,e.ArialBlack=`Helvetica`,e[`ArialBlack-Bold`]=`Helvetica-Bold`,e[`ArialBlack-BoldItalic`]=`Helvetica-BoldOblique`,e[`ArialBlack-Italic`]=`Helvetica-Oblique`,e[`Arial-Black`]=`Helvetica`,e[`Arial-Black-Bold`]=`Helvetica-Bold`,e[`Arial-Black-BoldItalic`]=`Helvetica-BoldOblique`,e[`Arial-Black-Italic`]=`Helvetica-Oblique`,e.Arial=`Helvetica`,e[`Arial-Bold`]=`Helvetica-Bold`,e[`Arial-BoldItalic`]=`Helvetica-BoldOblique`,e[`Arial-Italic`]=`Helvetica-Oblique`,e.ArialMT=`Helvetica`,e[`Arial-BoldItalicMT`]=`Helvetica-BoldOblique`,e[`Arial-BoldMT`]=`Helvetica-Bold`,e[`Arial-ItalicMT`]=`Helvetica-Oblique`,e[`Arial-BoldItalicMT-BoldItalic`]=`Helvetica-BoldOblique`,e[`Arial-BoldMT-Bold`]=`Helvetica-Bold`,e[`Arial-ItalicMT-Italic`]=`Helvetica-Oblique`,e.ArialUnicodeMS=`Helvetica`,e[`ArialUnicodeMS-Bold`]=`Helvetica-Bold`,e[`ArialUnicodeMS-BoldItalic`]=`Helvetica-BoldOblique`,e[`ArialUnicodeMS-Italic`]=`Helvetica-Oblique`,e[`Courier-BoldItalic`]=`Courier-BoldOblique`,e[`Courier-Italic`]=`Courier-Oblique`,e.CourierNew=`Courier`,e[`CourierNew-Bold`]=`Courier-Bold`,e[`CourierNew-BoldItalic`]=`Courier-BoldOblique`,e[`CourierNew-Italic`]=`Courier-Oblique`,e[`CourierNewPS-BoldItalicMT`]=`Courier-BoldOblique`,e[`CourierNewPS-BoldMT`]=`Courier-Bold`,e[`CourierNewPS-ItalicMT`]=`Courier-Oblique`,e.CourierNewPSMT=`Courier`,e[`Helvetica-BoldItalic`]=`Helvetica-BoldOblique`,e[`Helvetica-Italic`]=`Helvetica-Oblique`,e[`HelveticaLTStd-Bold`]=`Helvetica-Bold`,e[`Symbol-Bold`]=`Symbol`,e[`Symbol-BoldItalic`]=`Symbol`,e[`Symbol-Italic`]=`Symbol`,e.TimesNewRoman=`Times-Roman`,e[`TimesNewRoman-Bold`]=`Times-Bold`,e[`TimesNewRoman-BoldItalic`]=`Times-BoldItalic`,e[`TimesNewRoman-Italic`]=`Times-Italic`,e.TimesNewRomanPS=`Times-Roman`,e[`TimesNewRomanPS-Bold`]=`Times-Bold`,e[`TimesNewRomanPS-BoldItalic`]=`Times-BoldItalic`,e[`TimesNewRomanPS-BoldItalicMT`]=`Times-BoldItalic`,e[`TimesNewRomanPS-BoldMT`]=`Times-Bold`,e[`TimesNewRomanPS-Italic`]=`Times-Italic`,e[`TimesNewRomanPS-ItalicMT`]=`Times-Italic`,e.TimesNewRomanPSMT=`Times-Roman`,e[`TimesNewRomanPSMT-Bold`]=`Times-Bold`,e[`TimesNewRomanPSMT-BoldItalic`]=`Times-BoldItalic`,e[`TimesNewRomanPSMT-Italic`]=`Times-Italic`}),za=$e(function(e){e.Courier=`FoxitFixed.pfb`,e[`Courier-Bold`]=`FoxitFixedBold.pfb`,e[`Courier-BoldOblique`]=`FoxitFixedBoldItalic.pfb`,e[`Courier-Oblique`]=`FoxitFixedItalic.pfb`,e.Helvetica=`LiberationSans-Regular.ttf`,e[`Helvetica-Bold`]=`LiberationSans-Bold.ttf`,e[`Helvetica-BoldOblique`]=`LiberationSans-BoldItalic.ttf`,e[`Helvetica-Oblique`]=`LiberationSans-Italic.ttf`,e[`Times-Roman`]=`FoxitSerif.pfb`,e[`Times-Bold`]=`FoxitSerifBold.pfb`,e[`Times-BoldItalic`]=`FoxitSerifBoldItalic.pfb`,e[`Times-Italic`]=`FoxitSerifItalic.pfb`,e.Symbol=`FoxitSymbol.pfb`,e.ZapfDingbats=`FoxitDingbats.pfb`,e[`LiberationSans-Regular`]=`LiberationSans-Regular.ttf`,e[`LiberationSans-Bold`]=`LiberationSans-Bold.ttf`,e[`LiberationSans-Italic`]=`LiberationSans-Italic.ttf`,e[`LiberationSans-BoldItalic`]=`LiberationSans-BoldItalic.ttf`}),Ba=$e(function(e){e.Calibri=`Helvetica`,e[`Calibri-Bold`]=`Helvetica-Bold`,e[`Calibri-BoldItalic`]=`Helvetica-BoldOblique`,e[`Calibri-Italic`]=`Helvetica-Oblique`,e.CenturyGothic=`Helvetica`,e[`CenturyGothic-Bold`]=`Helvetica-Bold`,e[`CenturyGothic-BoldItalic`]=`Helvetica-BoldOblique`,e[`CenturyGothic-Italic`]=`Helvetica-Oblique`,e.ComicSansMS=`Comic Sans MS`,e[`ComicSansMS-Bold`]=`Comic Sans MS-Bold`,e[`ComicSansMS-BoldItalic`]=`Comic Sans MS-BoldItalic`,e[`ComicSansMS-Italic`]=`Comic Sans MS-Italic`,e.GillSansMT=`Helvetica`,e[`GillSansMT-Bold`]=`Helvetica-Bold`,e[`GillSansMT-BoldItalic`]=`Helvetica-BoldOblique`,e[`GillSansMT-Italic`]=`Helvetica-Oblique`,e.Impact=`Helvetica`,e[`ItcSymbol-Bold`]=`Helvetica-Bold`,e[`ItcSymbol-BoldItalic`]=`Helvetica-BoldOblique`,e[`ItcSymbol-Book`]=`Helvetica`,e[`ItcSymbol-BookItalic`]=`Helvetica-Oblique`,e[`ItcSymbol-Medium`]=`Helvetica`,e[`ItcSymbol-MediumItalic`]=`Helvetica-Oblique`,e.LucidaConsole=`Courier`,e[`LucidaConsole-Bold`]=`Courier-Bold`,e[`LucidaConsole-BoldItalic`]=`Courier-BoldOblique`,e[`LucidaConsole-Italic`]=`Courier-Oblique`,e[`LucidaSans-Demi`]=`Helvetica-Bold`,e[`MS-Gothic`]=`MS Gothic`,e[`MS-Gothic-Bold`]=`MS Gothic-Bold`,e[`MS-Gothic-BoldItalic`]=`MS Gothic-BoldItalic`,e[`MS-Gothic-Italic`]=`MS Gothic-Italic`,e[`MS-Mincho`]=`MS Mincho`,e[`MS-Mincho-Bold`]=`MS Mincho-Bold`,e[`MS-Mincho-BoldItalic`]=`MS Mincho-BoldItalic`,e[`MS-Mincho-Italic`]=`MS Mincho-Italic`,e[`MS-PGothic`]=`MS PGothic`,e[`MS-PGothic-Bold`]=`MS PGothic-Bold`,e[`MS-PGothic-BoldItalic`]=`MS PGothic-BoldItalic`,e[`MS-PGothic-Italic`]=`MS PGothic-Italic`,e[`MS-PMincho`]=`MS PMincho`,e[`MS-PMincho-Bold`]=`MS PMincho-Bold`,e[`MS-PMincho-BoldItalic`]=`MS PMincho-BoldItalic`,e[`MS-PMincho-Italic`]=`MS PMincho-Italic`,e.NuptialScript=`Times-Italic`,e.SegoeUISymbol=`Helvetica`}),Va=$e(function(e){e[`Adobe Jenson`]=!0,e[`Adobe Text`]=!0,e.Albertus=!0,e.Aldus=!0,e.Alexandria=!0,e.Algerian=!0,e[`American Typewriter`]=!0,e.Antiqua=!0,e.Apex=!0,e.Arno=!0,e.Aster=!0,e.Aurora=!0,e.Baskerville=!0,e.Bell=!0,e.Bembo=!0,e[`Bembo Schoolbook`]=!0,e.Benguiat=!0,e[`Berkeley Old Style`]=!0,e[`Bernhard Modern`]=!0,e[`Berthold City`]=!0,e.Bodoni=!0,e[`Bauer Bodoni`]=!0,e[`Book Antiqua`]=!0,e.Bookman=!0,e[`Bordeaux Roman`]=!0,e[`Californian FB`]=!0,e.Calisto=!0,e.Calvert=!0,e.Capitals=!0,e.Cambria=!0,e.Cartier=!0,e.Caslon=!0,e.Catull=!0,e.Centaur=!0,e[`Century Old Style`]=!0,e[`Century Schoolbook`]=!0,e.Chaparral=!0,e[`Charis SIL`]=!0,e.Cheltenham=!0,e[`Cholla Slab`]=!0,e.Clarendon=!0,e.Clearface=!0,e.Cochin=!0,e.Colonna=!0,e[`Computer Modern`]=!0,e[`Concrete Roman`]=!0,e.Constantia=!0,e[`Cooper Black`]=!0,e.Corona=!0,e.Ecotype=!0,e.Egyptienne=!0,e.Elephant=!0,e.Excelsior=!0,e.Fairfield=!0,e[`FF Scala`]=!0,e.Folkard=!0,e.Footlight=!0,e.FreeSerif=!0,e[`Friz Quadrata`]=!0,e.Garamond=!0,e.Gentium=!0,e.Georgia=!0,e.Gloucester=!0,e[`Goudy Old Style`]=!0,e[`Goudy Schoolbook`]=!0,e[`Goudy Pro Font`]=!0,e.Granjon=!0,e[`Guardian Egyptian`]=!0,e.Heather=!0,e.Hercules=!0,e[`High Tower Text`]=!0,e.Hiroshige=!0,e[`Hoefler Text`]=!0,e[`Humana Serif`]=!0,e.Imprint=!0,e[`Ionic No. 5`]=!0,e.Janson=!0,e.Joanna=!0,e.Korinna=!0,e.Lexicon=!0,e.LiberationSerif=!0,e[`Liberation Serif`]=!0,e[`Linux Libertine`]=!0,e.Literaturnaya=!0,e.Lucida=!0,e[`Lucida Bright`]=!0,e.Melior=!0,e.Memphis=!0,e.Miller=!0,e.Minion=!0,e.Modern=!0,e[`Mona Lisa`]=!0,e[`Mrs Eaves`]=!0,e[`MS Serif`]=!0,e[`Museo Slab`]=!0,e[`New York`]=!0,e[`Nimbus Roman`]=!0,e[`NPS Rawlinson Roadway`]=!0,e.NuptialScript=!0,e.Palatino=!0,e.Perpetua=!0,e.Plantin=!0,e[`Plantin Schoolbook`]=!0,e.Playbill=!0,e[`Poor Richard`]=!0,e[`Rawlinson Roadway`]=!0,e.Renault=!0,e.Requiem=!0,e.Rockwell=!0,e.Roman=!0,e[`Rotis Serif`]=!0,e.Sabon=!0,e.Scala=!0,e.Seagull=!0,e.Sistina=!0,e.Souvenir=!0,e.STIX=!0,e[`Stone Informal`]=!0,e[`Stone Serif`]=!0,e.Sylfaen=!0,e.Times=!0,e.Trajan=!0,e.Trinité=!0,e[`Trump Mediaeval`]=!0,e.Utopia=!0,e[`Vale Type`]=!0,e[`Bitstream Vera`]=!0,e[`Vera Serif`]=!0,e.Versailles=!0,e.Wanted=!0,e.Weiss=!0,e[`Wide Latin`]=!0,e.Windsor=!0,e.XITS=!0}),Ha=$e(function(e){e.Dingbats=!0,e.Symbol=!0,e.ZapfDingbats=!0,e.Wingdings=!0,e[`Wingdings-Bold`]=!0,e[`Wingdings-Regular`]=!0}),Ua=$e(function(e){e[2]=10,e[3]=32,e[4]=33,e[5]=34,e[6]=35,e[7]=36,e[8]=37,e[9]=38,e[10]=39,e[11]=40,e[12]=41,e[13]=42,e[14]=43,e[15]=44,e[16]=45,e[17]=46,e[18]=47,e[19]=48,e[20]=49,e[21]=50,e[22]=51,e[23]=52,e[24]=53,e[25]=54,e[26]=55,e[27]=56,e[28]=57,e[29]=58,e[30]=894,e[31]=60,e[32]=61,e[33]=62,e[34]=63,e[35]=64,e[36]=65,e[37]=66,e[38]=67,e[39]=68,e[40]=69,e[41]=70,e[42]=71,e[43]=72,e[44]=73,e[45]=74,e[46]=75,e[47]=76,e[48]=77,e[49]=78,e[50]=79,e[51]=80,e[52]=81,e[53]=82,e[54]=83,e[55]=84,e[56]=85,e[57]=86,e[58]=87,e[59]=88,e[60]=89,e[61]=90,e[62]=91,e[63]=92,e[64]=93,e[65]=94,e[66]=95,e[67]=96,e[68]=97,e[69]=98,e[70]=99,e[71]=100,e[72]=101,e[73]=102,e[74]=103,e[75]=104,e[76]=105,e[77]=106,e[78]=107,e[79]=108,e[80]=109,e[81]=110,e[82]=111,e[83]=112,e[84]=113,e[85]=114,e[86]=115,e[87]=116,e[88]=117,e[89]=118,e[90]=119,e[91]=120,e[92]=121,e[93]=122,e[94]=123,e[95]=124,e[96]=125,e[97]=126,e[98]=196,e[99]=197,e[100]=199,e[101]=201,e[102]=209,e[103]=214,e[104]=220,e[105]=225,e[106]=224,e[107]=226,e[108]=228,e[109]=227,e[110]=229,e[111]=231,e[112]=233,e[113]=232,e[114]=234,e[115]=235,e[116]=237,e[117]=236,e[118]=238,e[119]=239,e[120]=241,e[121]=243,e[122]=242,e[123]=244,e[124]=246,e[125]=245,e[126]=250,e[127]=249,e[128]=251,e[129]=252,e[130]=8224,e[131]=176,e[132]=162,e[133]=163,e[134]=167,e[135]=8226,e[136]=182,e[137]=223,e[138]=174,e[139]=169,e[140]=8482,e[141]=180,e[142]=168,e[143]=8800,e[144]=198,e[145]=216,e[146]=8734,e[147]=177,e[148]=8804,e[149]=8805,e[150]=165,e[151]=181,e[152]=8706,e[153]=8721,e[154]=8719,e[156]=8747,e[157]=170,e[158]=186,e[159]=8486,e[160]=230,e[161]=248,e[162]=191,e[163]=161,e[164]=172,e[165]=8730,e[166]=402,e[167]=8776,e[168]=8710,e[169]=171,e[170]=187,e[171]=8230,e[179]=8220,e[180]=8221,e[181]=8216,e[182]=8217,e[200]=193,e[203]=205,e[207]=211,e[210]=218,e[223]=711,e[224]=321,e[225]=322,e[226]=352,e[227]=353,e[228]=381,e[229]=382,e[233]=221,e[234]=253,e[252]=263,e[253]=268,e[254]=269,e[258]=258,e[260]=260,e[261]=261,e[265]=280,e[266]=281,e[267]=282,e[268]=283,e[269]=313,e[275]=323,e[276]=324,e[278]=328,e[283]=344,e[284]=345,e[285]=346,e[286]=347,e[292]=367,e[295]=377,e[296]=378,e[298]=380,e[305]=963,e[306]=964,e[307]=966,e[308]=8215,e[309]=8252,e[310]=8319,e[311]=8359,e[312]=8592,e[313]=8593,e[337]=9552,e[493]=1039,e[494]=1040,e[570]=1040,e[571]=1041,e[572]=1042,e[573]=1043,e[574]=1044,e[575]=1045,e[576]=1046,e[577]=1047,e[578]=1048,e[579]=1049,e[580]=1050,e[581]=1051,e[582]=1052,e[583]=1053,e[584]=1054,e[585]=1055,e[586]=1056,e[587]=1057,e[588]=1058,e[589]=1059,e[590]=1060,e[591]=1061,e[592]=1062,e[593]=1063,e[594]=1064,e[595]=1065,e[596]=1066,e[597]=1067,e[598]=1068,e[599]=1069,e[600]=1070,e[601]=1071,e[602]=1072,e[603]=1073,e[604]=1074,e[605]=1075,e[606]=1076,e[607]=1077,e[608]=1078,e[609]=1079,e[610]=1080,e[611]=1081,e[612]=1082,e[613]=1083,e[614]=1084,e[615]=1085,e[616]=1086,e[617]=1087,e[618]=1088,e[619]=1089,e[620]=1090,e[621]=1091,e[622]=1092,e[623]=1093,e[624]=1094,e[625]=1095,e[626]=1096,e[627]=1097,e[628]=1098,e[629]=1099,e[630]=1100,e[631]=1101,e[632]=1102,e[633]=1103,e[672]=1488,e[673]=1489,e[674]=1490,e[675]=1491,e[676]=1492,e[677]=1493,e[678]=1494,e[679]=1495,e[680]=1496,e[681]=1497,e[682]=1498,e[683]=1499,e[684]=1500,e[685]=1501,e[686]=1502,e[687]=1503,e[688]=1504,e[689]=1505,e[690]=1506,e[691]=1507,e[692]=1508,e[693]=1509,e[694]=1510,e[695]=1511,e[696]=1512,e[697]=1513,e[698]=1514,e[705]=1524,e[706]=8362,e[710]=64288,e[711]=64298,e[759]=1617,e[761]=1776,e[763]=1778,e[775]=1652,e[777]=1764,e[778]=1780,e[779]=1781,e[780]=1782,e[782]=771,e[783]=64726,e[786]=8363,e[788]=8532,e[790]=768,e[791]=769,e[792]=768,e[795]=803,e[797]=64336,e[798]=64337,e[799]=64342,e[800]=64343,e[801]=64344,e[802]=64345,e[803]=64362,e[804]=64363,e[805]=64364,e[2424]=7821,e[2425]=7822,e[2426]=7823,e[2427]=7824,e[2428]=7825,e[2429]=7826,e[2430]=7827,e[2433]=7682,e[2678]=8045,e[2679]=8046,e[2830]=1552,e[2838]=686,e[2840]=751,e[2842]=753,e[2843]=754,e[2844]=755,e[2846]=757,e[2856]=767,e[2857]=848,e[2858]=849,e[2862]=853,e[2863]=854,e[2864]=855,e[2865]=861,e[2866]=862,e[2906]=7460,e[2908]=7462,e[2909]=7463,e[2910]=7464,e[2912]=7466,e[2913]=7467,e[2914]=7468,e[2916]=7470,e[2917]=7471,e[2918]=7472,e[2920]=7474,e[2921]=7475,e[2922]=7476,e[2924]=7478,e[2925]=7479,e[2926]=7480,e[2928]=7482,e[2929]=7483,e[2930]=7484,e[2932]=7486,e[2933]=7487,e[2934]=7488,e[2936]=7490,e[2937]=7491,e[2938]=7492,e[2940]=7494,e[2941]=7495,e[2942]=7496,e[2944]=7498,e[2946]=7500,e[2948]=7502,e[2950]=7504,e[2951]=7505,e[2952]=7506,e[2954]=7508,e[2955]=7509,e[2956]=7510,e[2958]=7512,e[2959]=7513,e[2960]=7514,e[2962]=7516,e[2963]=7517,e[2964]=7518,e[2966]=7520,e[2967]=7521,e[2968]=7522,e[2970]=7524,e[2971]=7525,e[2972]=7526,e[2974]=7528,e[2975]=7529,e[2976]=7530,e[2978]=1537,e[2979]=1538,e[2980]=1539,e[2982]=1549,e[2983]=1551,e[2984]=1552,e[2986]=1554,e[2987]=1555,e[2988]=1556,e[2990]=1623,e[2991]=1624,e[2995]=1775,e[2999]=1791,e[3002]=64290,e[3003]=64291,e[3004]=64292,e[3006]=64294,e[3007]=64295,e[3008]=64296,e[3011]=1900,e[3014]=8223,e[3015]=8244,e[3017]=7532,e[3018]=7533,e[3019]=7534,e[3075]=7590,e[3076]=7591,e[3079]=7594,e[3080]=7595,e[3083]=7598,e[3084]=7599,e[3087]=7602,e[3088]=7603,e[3091]=7606,e[3092]=7607,e[3095]=7610,e[3096]=7611,e[3099]=7614,e[3100]=7615,e[3103]=7618,e[3104]=7619,e[3107]=8337,e[3108]=8338,e[3116]=1884,e[3119]=1885,e[3120]=1885,e[3123]=1886,e[3124]=1886,e[3127]=1887,e[3128]=1887,e[3131]=1888,e[3132]=1888,e[3135]=1889,e[3136]=1889,e[3139]=1890,e[3140]=1890,e[3143]=1891,e[3144]=1891,e[3147]=1892,e[3148]=1892,e[3153]=580,e[3154]=581,e[3157]=584,e[3158]=585,e[3161]=588,e[3162]=589,e[3165]=891,e[3166]=892,e[3169]=1274,e[3170]=1275,e[3173]=1278,e[3174]=1279,e[3181]=7622,e[3182]=7623,e[3282]=11799,e[3316]=578,e[3379]=42785,e[3393]=1159,e[3416]=8377}),Wa=$e(function(e){e[227]=322,e[264]=261,e[291]=346}),Ga=$e(function(e){e[1]=32,e[4]=65,e[5]=192,e[6]=193,e[9]=196,e[17]=66,e[18]=67,e[21]=268,e[24]=68,e[28]=69,e[29]=200,e[30]=201,e[32]=282,e[38]=70,e[39]=71,e[44]=72,e[47]=73,e[48]=204,e[49]=205,e[58]=74,e[60]=75,e[62]=76,e[68]=77,e[69]=78,e[75]=79,e[76]=210,e[80]=214,e[87]=80,e[89]=81,e[90]=82,e[92]=344,e[94]=83,e[97]=352,e[100]=84,e[104]=85,e[109]=220,e[115]=86,e[116]=87,e[121]=88,e[122]=89,e[124]=221,e[127]=90,e[129]=381,e[258]=97,e[259]=224,e[260]=225,e[263]=228,e[268]=261,e[271]=98,e[272]=99,e[273]=263,e[275]=269,e[282]=100,e[286]=101,e[287]=232,e[288]=233,e[290]=283,e[295]=281,e[296]=102,e[336]=103,e[346]=104,e[349]=105,e[350]=236,e[351]=237,e[361]=106,e[364]=107,e[367]=108,e[371]=322,e[373]=109,e[374]=110,e[381]=111,e[382]=242,e[383]=243,e[386]=246,e[393]=112,e[395]=113,e[396]=114,e[398]=345,e[400]=115,e[401]=347,e[403]=353,e[410]=116,e[437]=117,e[442]=252,e[448]=118,e[449]=119,e[454]=120,e[455]=121,e[457]=253,e[460]=122,e[462]=382,e[463]=380,e[853]=44,e[855]=58,e[856]=46,e[876]=47,e[878]=45,e[882]=45,e[894]=40,e[895]=41,e[896]=91,e[897]=93,e[923]=64,e[940]=163,e[1004]=48,e[1005]=49,e[1006]=50,e[1007]=51,e[1008]=52,e[1009]=53,e[1010]=54,e[1011]=55,e[1012]=56,e[1013]=57,e[1081]=37,e[1085]=43,e[1086]=45});function Ka(e){let t=sa(e);return Ra()[t]}function qa(e){let t=sa(e);return!!(Ra()[t]||Ba()[t]||Va()[t]||Ha()[t])}var Ja=class{constructor({glyfTable:e,isGlyphLocationsLong:t,locaTable:n,numGlyphs:r}){this.glyphs=[];let i=new DataView(n.buffer,n.byteOffset,n.byteLength),a=new DataView(e.buffer,e.byteOffset,e.byteLength),o=t?4:2,s=t?i.getUint32(0):2*i.getUint16(0),c=0;for(let e=0;e<r;e++){c+=o;let e=t?i.getUint32(c):2*i.getUint16(c);if(e===s){this.glyphs.push(new Ya({}));continue}let n=Ya.parse(s,a);this.glyphs.push(n),s=e}}getSize(){return Math.sumPrecise(this.glyphs.map(e=>e.getSize()+3&-4))}write(){let e=this.getSize(),t=new DataView(new ArrayBuffer(e)),n=e>131070,r=n?4:2,i=new DataView(new ArrayBuffer((this.glyphs.length+1)*r));n?i.setUint32(0,0):i.setUint16(0,0);let a=0,o=0;for(let e of this.glyphs)a+=e.write(a,t),a=a+3&-4,o+=r,n?i.setUint32(o,a):i.setUint16(o,a>>1);return{isLocationLong:n,loca:new Uint8Array(i.buffer),glyf:new Uint8Array(t.buffer)}}scale(e){for(let t=0,n=this.glyphs.length;t<n;t++)this.glyphs[t].scale(e[t])}},Ya=class e{constructor({header:e=null,simple:t=null,composites:n=null}){this.header=e,this.simple=t,this.composites=n}static parse(t,n){let[r,i]=Xa.parse(t,n);if(t+=r,i.numberOfContours<0){let r=[];for(;;){let[e,i]=$a.parse(t,n);if(t+=e,r.push(i),!(i.flags&32))break}return new e({header:i,composites:r})}return new e({header:i,simple:Qa.parse(t,n,i.numberOfContours)})}getSize(){if(!this.header)return 0;let e=this.simple?this.simple.getSize():Math.sumPrecise(this.composites.map(e=>e.getSize()));return this.header.getSize()+e}write(e,t){if(!this.header)return 0;let n=e;if(e+=this.header.write(e,t),this.simple)e+=this.simple.write(e,t);else for(let n of this.composites)e+=n.write(e,t);return e-n}scale(e){if(!this.header)return;let t=(this.header.xMin+this.header.xMax)/2;if(this.header.scale(t,e),this.simple)this.simple.scale(t,e);else for(let n of this.composites)n.scale(t,e)}},Xa=class e{constructor({numberOfContours:e,xMin:t,yMin:n,xMax:r,yMax:i}){this.numberOfContours=e,this.xMin=t,this.yMin=n,this.xMax=r,this.yMax=i}static parse(t,n){return[10,new e({numberOfContours:n.getInt16(t),xMin:n.getInt16(t+2),yMin:n.getInt16(t+4),xMax:n.getInt16(t+6),yMax:n.getInt16(t+8)})]}getSize(){return 10}write(e,t){return t.setInt16(e,this.numberOfContours),t.setInt16(e+2,this.xMin),t.setInt16(e+4,this.yMin),t.setInt16(e+6,this.xMax),t.setInt16(e+8,this.yMax),10}scale(e,t){this.xMin=Math.round(e+(this.xMin-e)*t),this.xMax=Math.round(e+(this.xMax-e)*t)}},Za=class{constructor({flags:e,xCoordinates:t,yCoordinates:n}){this.xCoordinates=t,this.yCoordinates=n,this.flags=e}},Qa=class e{constructor({contours:e,instructions:t}){this.contours=e,this.instructions=t}static parse(t,n,r){let i=[];for(let e=0;e<r;e++){let e=n.getUint16(t);t+=2,i.push(e)}let a=i[r-1]+1,o=n.getUint16(t);t+=2;let s=new Uint8Array(n).slice(t,t+o);t+=o;let c=[];for(let e=0;e<a;t++,e++){let r=n.getUint8(t);if(c.push(r),r&8){let i=n.getUint8(++t);r^=8;for(let e=0;e<i;e++)c.push(r);e+=i}}let l=[],u=[],d=[],f=[],p=[],m=0,h=0;for(let e=0;e<a;e++){let r=c[e];if(r&2){let e=n.getUint8(t++);h+=r&16?e:-e,u.push(h)}else r&16?u.push(h):(h+=n.getInt16(t),t+=2,u.push(h));i[m]===e&&(m++,l.push(u),u=[])}h=0,m=0;for(let e=0;e<a;e++){let r=c[e];if(r&4){let e=n.getUint8(t++);h+=r&32?e:-e,d.push(h)}else r&32?d.push(h):(h+=n.getInt16(t),t+=2,d.push(h));f.push(r&1|r&64),i[m]===e&&(u=l[m],m++,p.push(new Za({flags:f,xCoordinates:u,yCoordinates:d})),d=[],f=[])}return new e({contours:p,instructions:s})}getSize(){let e=this.contours.length*2+2+this.instructions.length,t=0,n=0;for(let r of this.contours){e+=r.flags.length;for(let i=0,a=r.xCoordinates.length;i<a;i++){let a=r.xCoordinates[i],o=r.yCoordinates[i],s=Math.abs(a-t);s>255?e+=2:s>0&&(e+=1),t=a,s=Math.abs(o-n),s>255?e+=2:s>0&&(e+=1),n=o}}return e}write(e,t){let n=e,r=[],i=[],a=[],o=0,s=0;for(let n of this.contours){for(let e=0,t=n.xCoordinates.length;e<t;e++){let t=n.flags[e],c=n.xCoordinates[e],l=c-o;if(l===0)t|=16,r.push(0);else{let e=Math.abs(l);e<=255?(t|=l>=0?18:2,r.push(e)):r.push(l)}o=c;let u=n.yCoordinates[e];if(l=u-s,l===0)t|=32,i.push(0);else{let e=Math.abs(l);e<=255?(t|=l>=0?36:4,i.push(e)):i.push(l)}s=u,a.push(t)}t.setUint16(e,r.length-1),e+=2}t.setUint16(e,this.instructions.length),e+=2,this.instructions.length&&(new Uint8Array(t.buffer,0,t.buffer.byteLength).set(this.instructions,e),e+=this.instructions.length);for(let n of a)t.setUint8(e++,n);for(let n=0,i=r.length;n<i;n++){let i=r[n],o=a[n];o&2?t.setUint8(e++,i):o&16||(t.setInt16(e,i),e+=2)}for(let n=0,r=i.length;n<r;n++){let r=i[n],o=a[n];o&4?t.setUint8(e++,r):o&32||(t.setInt16(e,r),e+=2)}return e-n}scale(e,t){for(let n of this.contours)if(n.xCoordinates.length!==0)for(let r=0,i=n.xCoordinates.length;r<i;r++)n.xCoordinates[r]=Math.round(e+(n.xCoordinates[r]-e)*t)}},$a=class e{constructor({flags:e,glyphIndex:t,argument1:n,argument2:r,transf:i,instructions:a}){this.flags=e,this.glyphIndex=t,this.argument1=n,this.argument2=r,this.transf=i,this.instructions=a}static parse(t,n){let r=t,i=[],a=n.getUint16(t),o=n.getUint16(t+2);t+=4;let s,c;a&1?(a&2?(s=n.getInt16(t),c=n.getInt16(t+2)):(s=n.getUint16(t),c=n.getUint16(t+2)),t+=4,a^=1):(a&2?(s=n.getInt8(t),c=n.getInt8(t+1)):(s=n.getUint8(t),c=n.getUint8(t+1)),t+=2),a&8?(i.push(n.getUint16(t)),t+=2):a&64?(i.push(n.getUint16(t),n.getUint16(t+2)),t+=4):a&128&&(i.push(n.getUint16(t),n.getUint16(t+2),n.getUint16(t+4),n.getUint16(t+6)),t+=8);let l=null;if(a&256){let e=n.getUint16(t);t+=2,l=new Uint8Array(n).slice(t,t+e),t+=e}return[t-r,new e({flags:a,glyphIndex:o,argument1:s,argument2:c,transf:i,instructions:l})]}getSize(){let e=4+this.transf.length*2;return this.flags&256&&(e+=2+this.instructions.length),e+=2,this.flags&2?this.argument1>=-128&&this.argument1<=127&&this.argument2>=-128&&this.argument2<=127||(e+=2):this.argument1>=0&&this.argument1<=255&&this.argument2>=0&&this.argument2<=255||(e+=2),e}write(e,t){let n=e;return this.flags&2?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),t.setUint16(e,this.flags),t.setUint16(e+2,this.glyphIndex),e+=4,this.flags&1?(this.flags&2?(t.setInt16(e,this.argument1),t.setInt16(e+2,this.argument2)):(t.setUint16(e,this.argument1),t.setUint16(e+2,this.argument2)),e+=4):(t.setUint8(e,this.argument1),t.setUint8(e+1,this.argument2),e+=2),this.flags&256&&(t.setUint16(e,this.instructions.length),e+=2,this.instructions.length&&(new Uint8Array(t.buffer,0,t.buffer.byteLength).set(this.instructions,e),e+=this.instructions.length)),e-n}scale(e,t){}};function eo(e,t,n){let r=new DataView(e.buffer,e.byteOffset,e.byteLength),i=Array(n);for(let e=0;e<n;e++){let n=t[e].offset,a=Math.min(t[e].endOffset,r.byteLength);if(a-n<=10||r.getInt16(n)>=0)continue;let o=[],s=n+10;for(;s+4<=a;){let e=r.getUint16(s),t=r.getUint16(s+2),n=4+(e&1?4:2);if(e&8?n+=2:e&64?n+=4:e&128&&(n+=8),o.push({gid:t,offset:s,size:n,flags:e}),s+=n,!(e&32))break}o.length&&(i[e]=o)}let a=new Uint8Array(n),o=new Map;for(let e=0;e<n;e++){if(a[e]!==0||!i[e])continue;let t=[{node:e,idx:0}];for(a[e]=1;t.length>0;){let e=t.at(-1),r=i[e.node];if(!r||e.idx>=r.length){a[e.node]=2,t.pop();continue}let s=e.idx++,c=r[s].gid;if(c>=n||a[c]===2)continue;if(a[c]===0){a[c]=1,t.push({node:c,idx:0});continue}let l=o.get(e.node);l||(l=new Set,o.set(e.node,l)),l.add(s)}}let s=new Set;for(let[n,a]of o){let o=i[n],c=[];for(let e=0;e<o.length;e++)a.has(e)||c.push(o[e]);if(c.length===0){s.add(n);continue}let l=t[n].offset,u=Math.min(t[n].endOffset,r.byteLength),d=l+10;for(let t=0;t<c.length;t++){let n=c[t],i=t===c.length-1,a=n.flags&-257;a=i?a&-33:a|32,d!==n.offset&&e.copyWithin(d,n.offset,n.offset+n.size),r.setUint16(d,a),d+=n.size}d<u&&e.fill(0,d,u)}return s}var to=class{constructor(e=[]){this._map=e}get length(){return this._map.length}forEach(e){for(let t in this._map)e(t,this._map[t].codePointAt(0))}has(e){return this._map[e]!==void 0}get(e){return this._map[e]}charCodeOf(e){let t=this._map;if(t.length<=65536)return t.indexOf(e);for(let n in t)if(t[n]===e)return n|0;return-1}amend(e){for(let t in e)this._map[t]=e[t]}},no=class{constructor(e,t){this.firstChar=e,this.lastChar=t}get length(){return this.lastChar+1-this.firstChar}forEach(e){for(let t=this.firstChar,n=this.lastChar;t<=n;t++)e(t,t)}has(e){return this.firstChar<=e&&e<=this.lastChar}get(e){if(this.firstChar<=e&&e<=this.lastChar)return String.fromCharCode(e)}charCodeOf(e){return Number.isInteger(e)&&e>=this.firstChar&&e<=this.lastChar?e:-1}amend(e){M(`Should not call amend()`)}},ro=class{constructor(e,t){this.properties=t;let n=new Sa(e,t,!0);this.cff=n.parse(),this.cff.duplicateFirstGlyph();let r=new La(this.cff);this.seacs=this.cff.seacs;try{this.data=r.compile()}catch(n){j(`Failed to compile font "${t.loadedName}": "${n}".`),e.reset(),this.data=e.getBytes()}this._createBuiltInEncoding()}get numGlyphs(){return this.cff.charStrings.count}getCharset(){return this.cff.charset.charset}getGlyphMapping(){let e=this.cff,t=this.properties,{cidToGidMap:n,cMap:r}=t,i=e.charset.charset,a,o;if(t.composite){let t;if(n?.length>0){t=Object.create(null);for(let e=0,r=n.length;e<r;e++){let r=n[e];r!==void 0&&(t[r]=e)}}a=Object.create(null);let s;if(e.isCIDFont)for(o=0;o<i.length;o++){let e=i[o];s=r.charCodeOf(e),t?.[s]!==void 0&&(s=t[s]),a[s]=o}else for(o=0;o<e.charStrings.count;o++)s=r.charCodeOf(o),a[s]=o;return a}let s=e.encoding?e.encoding.encoding:null;return t.isInternalFont&&(s=t.defaultEncoding),a=oa(t,s,i),a}hasGlyphId(e){return this.cff.hasGlyphId(e)}_createBuiltInEncoding(){let{charset:e,encoding:t}=this.cff;if(!e||!t)return;let n=e.charset,r=t.encoding,i=[];for(let e in r){let t=r[e];if(t>=0){let r=n[t];r&&(i[e]=r)}}i.length>0&&(this.properties.builtInEncoding=i)}};function io(e,t){return e.getInt16(t)/16384}function ao(e){let t=e.length;return t>=33900?32768:t<1240?107:1131}function oo(e,t,n){let r=new DataView(e.buffer,e.byteOffset,e.byteLength),i=r.getUint16(t+2)===1?r.getUint32(t+8):r.getUint32(t+16),a=r.getUint16(t+i),o,s,c;if(a===4){let e=r.getUint16(t+i+6)>>1;for(s=t+i+14,o=[],c=0;c<e;c++,s+=2)o[c]={end:r.getUint16(s)};for(s+=2,c=0;c<e;c++,s+=2)o[c].start=r.getUint16(s);for(c=0;c<e;c++,s+=2)o[c].idDelta=r.getUint16(s);for(c=0;c<e;c++,s+=2){let e=r.getUint16(s);if(e!==0){o[c].ids=[];for(let t=0,n=o[c].end-o[c].start+1;t<n;t++)o[c].ids[t]=r.getUint16(s+e),e+=2}}return o}else if(a===12){let e=r.getUint32(t+i+12);for(s=t+i+16,o=[],c=0;c<e;c++)t=r.getUint32(s),o.push({start:t,end:r.getUint32(s+4),idDelta:r.getUint32(s+8)-t}),s+=12;return o}throw new F(`unsupported cmap: ${a}`)}function so(e,t,n,r){let i=new Sa(new Cn(e,t,n-t),{},r).parse();return{glyphs:i.charStrings.objects,subrs:i.topDict.privateDict?.subrsIndex?.objects,gsubrs:i.globalSubrIndex?.objects,isCFFCIDFont:i.isCIDFont,fdSelect:i.fdSelect,fdArray:i.fdArray}}function co(e,t,n){let r=new DataView(t.buffer,t.byteOffset,t.byteLength),i,a;n?(i=4,a=(e,t)=>e.getUint32(t)):(i=2,a=(e,t)=>2*e.getUint16(t));let o=[],s=a(r,0);for(let n=i;n<t.length;n+=i){let t=a(r,n);o.push(e.subarray(s,t)),s=t}return o}function lo(e,t){let n=t.codePointAt(0),r=0,i=0,a=e.length-1;for(;i<a;){let t=i+a+1>>1;n<e[t].start?a=t-1:i=t}return e[i].start<=n&&n<=e[i].end&&(r=e[i].idDelta+(e[i].ids?e[i].ids[n-e[i].start]:n)&65535),{charCode:n,glyphId:r}}function uo(e,t,n,r=new Set){if(!e?.length)return;if(r.has(e)){j(`compileGlyf: skipping recursive composite glyph reference.`);return}r.add(e);function i(e,n){d&&t.add(O.lineTo,d),d=[e,n],t.add(O.moveTo,[e,n])}function a(e,n){t.add(O.lineTo,[e,n])}function o(e,n,r,i){t.add(O.quadraticCurveTo,[e,n,r,i])}let s=new DataView(e.buffer,e.byteOffset,e.byteLength),c=0,l=s.getInt16(c),u,d=null,f=0,p=0;if(c+=10,l<0)do{u=s.getUint16(c);let i=s.getUint16(c+2);c+=4;let a,o;u&1?(u&2?(a=s.getInt16(c),o=s.getInt16(c+2)):(a=s.getUint16(c),o=s.getUint16(c+2)),c+=4):u&2?(a=s.getInt8(c++),o=s.getInt8(c++)):(a=e[c++],o=e[c++]),u&2?(f=a,p=o):(f=0,p=0);let l=1,d=1,m=0,h=0;u&8?(l=d=io(s,c),c+=2):u&64?(l=io(s,c),d=io(s,c+2),c+=4):u&128&&(l=io(s,c),m=io(s,c+2),h=io(s,c+4),d=io(s,c+6),c+=8);let g=n.glyphs[i];g&&(t.save(),t.transform([l,m,h,d,f,p]),u&2,uo(g,t,n,r),t.restore())}while(u&32);else{let t=[],n,r;for(n=0;n<l;n++)t.push(s.getUint16(c)),c+=2;let d=s.getUint16(c);c+=2+d;let m=t.at(-1)+1,h=[];for(;h.length<m;){u=e[c++];let t=1;for(u&8&&(t+=e[c++]);t-- >0;)h.push({flags:u})}for(n=0;n<m;n++){switch(h[n].flags&18){case 0:f+=s.getInt16(c),c+=2;break;case 2:f-=e[c++];break;case 18:f+=e[c++];break}h[n].x=f}for(n=0;n<m;n++){switch(h[n].flags&36){case 0:p+=s.getInt16(c),c+=2;break;case 4:p-=e[c++];break;case 36:p+=e[c++];break}h[n].y=p}let g=0;for(c=0;c<l;c++){let e=t[c],s=h.slice(g,e+1);if(s[0].flags&1)s.push(s[0]);else if(s.at(-1).flags&1)s.unshift(s.at(-1));else{let e={flags:1,x:(s[0].x+s.at(-1).x)/2,y:(s[0].y+s.at(-1).y)/2};s.unshift(e),s.push(e)}for(i(s[0].x,s[0].y),n=1,r=s.length;n<r;n++)s[n].flags&1?a(s[n].x,s[n].y):s[n+1].flags&1?(o(s[n].x,s[n].y,s[n+1].x,s[n+1].y),n++):o(s[n].x,s[n].y,(s[n].x+s[n+1].x)/2,(s[n].y+s[n+1].y)/2);g=e+1}}r.delete(e)}function fo(e,t,n,r){function i(e,n){d&&t.add(O.lineTo,d),d=[e,n],t.add(O.moveTo,[e,n])}function a(e,n){t.add(O.lineTo,[e,n])}function o(e,n,r,i,a,o){t.add(O.curveTo,[e,n,r,i,a,o])}let s=[],c=0,l=0,u=0,d=null;function f(e){let d=new DataView(e.buffer,e.byteOffset,e.byteLength),p=0;for(;p<e.length;){let m=!1,h=e[p++],g,_,v,y,b,x,S,C,w;switch(h){case 1:u+=s.length>>1,m=!0;break;case 3:u+=s.length>>1,m=!0;break;case 4:l+=s.pop(),i(c,l),m=!0;break;case 5:for(;s.length>0;)c+=s.shift(),l+=s.shift(),a(c,l);break;case 6:for(;s.length>0&&(c+=s.shift(),a(c,l),s.length!==0);)l+=s.shift(),a(c,l);break;case 7:for(;s.length>0&&(l+=s.shift(),a(c,l),s.length!==0);)c+=s.shift(),a(c,l);break;case 8:for(;s.length>0;)g=c+s.shift(),v=l+s.shift(),_=g+s.shift(),y=v+s.shift(),c=_+s.shift(),l=y+s.shift(),o(g,v,_,y,c,l);break;case 10:if(C=s.pop(),w=null,n.isCFFCIDFont){let e=n.fdSelect.getFDIndex(r);if(e>=0&&e<n.fdArray.length){let t=n.fdArray[e],r;t.privateDict?.subrsIndex&&(r=t.privateDict.subrsIndex.objects),r&&(C+=ao(r),w=r[C])}else j(`Invalid fd index for glyph index.`)}else w=n.subrs[C+n.subrsBias];w&&f(w);break;case 11:return;case 12:switch(h=e[p++],h){case 34:g=c+s.shift(),_=g+s.shift(),b=l+s.shift(),c=_+s.shift(),o(g,l,_,b,c,b),g=c+s.shift(),_=g+s.shift(),c=_+s.shift(),o(g,b,_,l,c,l);break;case 35:g=c+s.shift(),v=l+s.shift(),_=g+s.shift(),y=v+s.shift(),c=_+s.shift(),l=y+s.shift(),o(g,v,_,y,c,l),g=c+s.shift(),v=l+s.shift(),_=g+s.shift(),y=v+s.shift(),c=_+s.shift(),l=y+s.shift(),o(g,v,_,y,c,l),s.pop();break;case 36:g=c+s.shift(),b=l+s.shift(),_=g+s.shift(),x=b+s.shift(),c=_+s.shift(),o(g,b,_,x,c,x),g=c+s.shift(),_=g+s.shift(),S=x+s.shift(),c=_+s.shift(),o(g,x,_,S,c,l);break;case 37:let e=c,t=l;g=c+s.shift(),v=l+s.shift(),_=g+s.shift(),y=v+s.shift(),c=_+s.shift(),l=y+s.shift(),o(g,v,_,y,c,l),g=c+s.shift(),v=l+s.shift(),_=g+s.shift(),y=v+s.shift(),c=_,l=y,Math.abs(c-e)>Math.abs(l-t)?c+=s.shift():l+=s.shift(),o(g,v,_,y,c,l);break;default:throw new F(`unknown operator: 12 ${h}`)}break;case 14:if(s.length>=4){let e=s.pop(),r=s.pop();l=s.pop(),c=s.pop(),t.save(),t.translate(c,l);let i=lo(n.cmap,String.fromCharCode(n.glyphNameMap[Vi[e]]));fo(n.glyphs[i.glyphId],t,n,i.glyphId),t.restore(),i=lo(n.cmap,String.fromCharCode(n.glyphNameMap[Vi[r]])),fo(n.glyphs[i.glyphId],t,n,i.glyphId)}return;case 18:u+=s.length>>1,m=!0;break;case 19:u+=s.length>>1,p+=u+7>>3,m=!0;break;case 20:u+=s.length>>1,p+=u+7>>3,m=!0;break;case 21:l+=s.pop(),c+=s.pop(),i(c,l),m=!0;break;case 22:c+=s.pop(),i(c,l),m=!0;break;case 23:u+=s.length>>1,m=!0;break;case 24:for(;s.length>2;)g=c+s.shift(),v=l+s.shift(),_=g+s.shift(),y=v+s.shift(),c=_+s.shift(),l=y+s.shift(),o(g,v,_,y,c,l);c+=s.shift(),l+=s.shift(),a(c,l);break;case 25:for(;s.length>6;)c+=s.shift(),l+=s.shift(),a(c,l);g=c+s.shift(),v=l+s.shift(),_=g+s.shift(),y=v+s.shift(),c=_+s.shift(),l=y+s.shift(),o(g,v,_,y,c,l);break;case 26:for(s.length%2&&(c+=s.shift());s.length>0;)g=c,v=l+s.shift(),_=g+s.shift(),y=v+s.shift(),c=_,l=y+s.shift(),o(g,v,_,y,c,l);break;case 27:for(s.length%2&&(l+=s.shift());s.length>0;)g=c+s.shift(),v=l,_=g+s.shift(),y=v+s.shift(),c=_+s.shift(),l=y,o(g,v,_,y,c,l);break;case 28:s.push(d.getInt16(p)),p+=2;break;case 29:C=s.pop()+n.gsubrsBias,w=n.gsubrs[C],w&&f(w);break;case 30:for(;s.length>0&&(g=c,v=l+s.shift(),_=g+s.shift(),y=v+s.shift(),c=_+s.shift(),l=y+(s.length===1?s.shift():0),o(g,v,_,y,c,l),s.length!==0);)g=c+s.shift(),v=l,_=g+s.shift(),y=v+s.shift(),l=y+s.shift(),c=_+(s.length===1?s.shift():0),o(g,v,_,y,c,l);break;case 31:for(;s.length>0&&(g=c+s.shift(),v=l,_=g+s.shift(),y=v+s.shift(),l=y+s.shift(),c=_+(s.length===1?s.shift():0),o(g,v,_,y,c,l),s.length!==0);)g=c,v=l+s.shift(),_=g+s.shift(),y=v+s.shift(),c=_+s.shift(),l=y+(s.length===1?s.shift():0),o(g,v,_,y,c,l);break;default:if(h<32)throw new F(`unknown operator: ${h}`);h<247?s.push(h-139):h<251?s.push((h-247)*256+e[p++]+108):h<255?s.push(-(h-251)*256-e[p++]-108):(s.push(d.getInt32(p)/65536),p+=4);break}m&&(s.length=0)}}f(e)}var po=class{cmds=[];transformStack=[];currentTransform=[1,0,0,1,0,0];add(e,t){if(t){let{currentTransform:n}=this;for(let e=0,r=t.length;e<r;e+=2)ge.applyTransform(t,n,e);this.cmds.push(e,...t)}else this.cmds.push(e)}transform(e){this.currentTransform=ge.transform(this.currentTransform,e)}translate(e,t){this.transform([1,0,0,1,e,t])}save(){this.transformStack.push(this.currentTransform.slice())}restore(){this.currentTransform=this.transformStack.pop()||[1,0,0,1,0,0]}getPath(){return he.isFloat16ArraySupported?new Float16Array(this.cmds):new Float32Array(this.cmds)}},mo=class e{constructor(e){this.fontMatrix=e,this.compiledGlyphs=Object.create(null),this.compiledCharCodeToGlyphId=Object.create(null)}static get NOOP(){return P(this,`NOOP`,he.isFloat16ArraySupported?new Float16Array(0):new Float32Array)}getPathJs(t){let{charCode:n,glyphId:r}=lo(this.cmap,t),i=this.compiledGlyphs[r],a;if(i===void 0){try{i=this.compileGlyph(this.glyphs[r],r)}catch(t){i=e.NOOP,a=t}this.compiledGlyphs[r]=i}if(this.compiledCharCodeToGlyphId[n]??=r,a)throw a;return i}compileGlyph(t,n){if(!t?.length||t[0]===14)return e.NOOP;let r=this.fontMatrix;if(this.isCFFCIDFont){let e=this.fdSelect.getFDIndex(n);e>=0&&e<this.fdArray.length?r=this.fdArray[e].getByName(`FontMatrix`)||o:j(`Invalid fd index for glyph index.`)}N(pt(r,6),`Expected a valid fontMatrix.`);let i=new po;return i.transform(r.slice()),this.compileGlyphImpl(t,i,n),i.add(O.closePath),i.getPath()}compileGlyphImpl(){M(`Children classes should implement this.`)}hasBuiltPath(e){let{charCode:t,glyphId:n}=lo(this.cmap,e);return this.compiledGlyphs[n]!==void 0&&this.compiledCharCodeToGlyphId[t]!==void 0}},ho=class extends mo{constructor(e,t,n){super(n||[488e-6,0,0,488e-6,0,0]),this.glyphs=e,this.cmap=t}compileGlyphImpl(e,t){uo(e,t,this)}},go=class extends mo{constructor(e,t,n){super(n||[.001,0,0,.001,0,0]),this.glyphs=e.glyphs,this.gsubrs=e.gsubrs||[],this.subrs=e.subrs||[],this.cmap=t,this.glyphNameMap=Ki(),this.gsubrsBias=ao(this.gsubrs),this.subrsBias=ao(this.subrs),this.isCFFCIDFont=e.isCFFCIDFont,this.fdSelect=e.fdSelect,this.fdArray=e.fdArray}compileGlyphImpl(e,t,n){fo(e,t,this,n)}},_o=class{static create(e,t){let n=new Uint8Array(e.data),r=new DataView(n.buffer),i,a,o,s,c,l,u=r.getUint16(4);for(let e=0,d=12;e<u;e++,d+=16){let e=fe(n.subarray(d,d+4)),u=r.getUint32(d+8),f=r.getUint32(d+12);switch(e){case`cmap`:i=oo(n,u,u+f);break;case`glyf`:a=n.subarray(u,u+f);break;case`loca`:o=n.subarray(u,u+f);break;case`head`:l=r.getUint16(u+18),c=r.getUint16(u+50);break;case`CFF `:s=so(n,u,u+f,t);break}}if(a){let t=l?[1/l,0,0,1/l,0,0]:e.fontMatrix;return new ho(co(a,o,c),i,t)}return new go(s,i,e.fontMatrix)}};let vo=$e(function(e){e.Courier=600,e[`Courier-Bold`]=600,e[`Courier-BoldOblique`]=600,e[`Courier-Oblique`]=600,e.Helvetica=$e(function(e){e.space=278,e.exclam=278,e.quotedbl=355,e.numbersign=556,e.dollar=556,e.percent=889,e.ampersand=667,e.quoteright=222,e.parenleft=333,e.parenright=333,e.asterisk=389,e.plus=584,e.comma=278,e.hyphen=333,e.period=278,e.slash=278,e.zero=556,e.one=556,e.two=556,e.three=556,e.four=556,e.five=556,e.six=556,e.seven=556,e.eight=556,e.nine=556,e.colon=278,e.semicolon=278,e.less=584,e.equal=584,e.greater=584,e.question=556,e.at=1015,e.A=667,e.B=667,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=722,e.I=278,e.J=500,e.K=667,e.L=556,e.M=833,e.N=722,e.O=778,e.P=667,e.Q=778,e.R=722,e.S=667,e.T=611,e.U=722,e.V=667,e.W=944,e.X=667,e.Y=667,e.Z=611,e.bracketleft=278,e.backslash=278,e.bracketright=278,e.asciicircum=469,e.underscore=556,e.quoteleft=222,e.a=556,e.b=556,e.c=500,e.d=556,e.e=556,e.f=278,e.g=556,e.h=556,e.i=222,e.j=222,e.k=500,e.l=222,e.m=833,e.n=556,e.o=556,e.p=556,e.q=556,e.r=333,e.s=500,e.t=278,e.u=556,e.v=500,e.w=722,e.x=500,e.y=500,e.z=500,e.braceleft=334,e.bar=260,e.braceright=334,e.asciitilde=584,e.exclamdown=333,e.cent=556,e.sterling=556,e.fraction=167,e.yen=556,e.florin=556,e.section=556,e.currency=556,e.quotesingle=191,e.quotedblleft=333,e.guillemotleft=556,e.guilsinglleft=333,e.guilsinglright=333,e.fi=500,e.fl=500,e.endash=556,e.dagger=556,e.daggerdbl=556,e.periodcentered=278,e.paragraph=537,e.bullet=350,e.quotesinglbase=222,e.quotedblbase=333,e.quotedblright=333,e.guillemotright=556,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=611,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=370,e.Lslash=556,e.Oslash=778,e.OE=1e3,e.ordmasculine=365,e.ae=889,e.dotlessi=278,e.lslash=222,e.oslash=611,e.oe=944,e.germandbls=611,e.Idieresis=278,e.eacute=556,e.abreve=556,e.uhungarumlaut=556,e.ecaron=556,e.Ydieresis=667,e.divide=584,e.Yacute=667,e.Acircumflex=667,e.aacute=556,e.Ucircumflex=722,e.yacute=500,e.scommaaccent=500,e.ecircumflex=556,e.Uring=722,e.Udieresis=722,e.aogonek=556,e.Uacute=722,e.uogonek=556,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=737,e.Emacron=667,e.ccaron=500,e.aring=556,e.Ncommaaccent=722,e.lacute=222,e.agrave=556,e.Tcommaaccent=611,e.Cacute=722,e.atilde=556,e.Edotaccent=667,e.scaron=500,e.scedilla=500,e.iacute=278,e.lozenge=471,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=556,e.acircumflex=556,e.Amacron=667,e.rcaron=333,e.ccedilla=500,e.Zdotaccent=611,e.Thorn=667,e.Omacron=778,e.Racute=722,e.Sacute=667,e.dcaron=643,e.Umacron=722,e.uring=556,e.threesuperior=333,e.Ograve=778,e.Agrave=667,e.Abreve=667,e.multiply=584,e.uacute=556,e.Tcaron=611,e.partialdiff=476,e.ydieresis=500,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=556,e.edieresis=556,e.cacute=500,e.nacute=556,e.umacron=556,e.Ncaron=722,e.Iacute=278,e.plusminus=584,e.brokenbar=260,e.registered=737,e.Gbreve=778,e.Idotaccent=278,e.summation=600,e.Egrave=667,e.racute=333,e.omacron=556,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=222,e.tcaron=317,e.eogonek=556,e.Uogonek=722,e.Aacute=667,e.Adieresis=667,e.egrave=556,e.zacute=500,e.iogonek=222,e.Oacute=778,e.oacute=556,e.amacron=556,e.sacute=500,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=556,e.twosuperior=333,e.Odieresis=778,e.mu=556,e.igrave=278,e.ohungarumlaut=556,e.Eogonek=667,e.dcroat=556,e.threequarters=834,e.Scedilla=667,e.lcaron=299,e.Kcommaaccent=667,e.Lacute=556,e.trademark=1e3,e.edotaccent=556,e.Igrave=278,e.Imacron=278,e.Lcaron=556,e.onehalf=834,e.lessequal=549,e.ocircumflex=556,e.ntilde=556,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=556,e.gbreve=556,e.onequarter=834,e.Scaron=667,e.Scommaaccent=667,e.Ohungarumlaut=778,e.degree=400,e.ograve=556,e.Ccaron=722,e.ugrave=556,e.radical=453,e.Dcaron=722,e.rcommaaccent=333,e.Ntilde=722,e.otilde=556,e.Rcommaaccent=722,e.Lcommaaccent=556,e.Atilde=667,e.Aogonek=667,e.Aring=667,e.Otilde=778,e.zdotaccent=500,e.Ecaron=667,e.Iogonek=278,e.kcommaaccent=500,e.minus=584,e.Icircumflex=278,e.ncaron=556,e.tcommaaccent=278,e.logicalnot=584,e.odieresis=556,e.udieresis=556,e.notequal=549,e.gcommaaccent=556,e.eth=556,e.zcaron=500,e.ncommaaccent=556,e.onesuperior=333,e.imacron=278,e.Euro=556}),e[`Helvetica-Bold`]=$e(function(e){e.space=278,e.exclam=333,e.quotedbl=474,e.numbersign=556,e.dollar=556,e.percent=889,e.ampersand=722,e.quoteright=278,e.parenleft=333,e.parenright=333,e.asterisk=389,e.plus=584,e.comma=278,e.hyphen=333,e.period=278,e.slash=278,e.zero=556,e.one=556,e.two=556,e.three=556,e.four=556,e.five=556,e.six=556,e.seven=556,e.eight=556,e.nine=556,e.colon=333,e.semicolon=333,e.less=584,e.equal=584,e.greater=584,e.question=611,e.at=975,e.A=722,e.B=722,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=722,e.I=278,e.J=556,e.K=722,e.L=611,e.M=833,e.N=722,e.O=778,e.P=667,e.Q=778,e.R=722,e.S=667,e.T=611,e.U=722,e.V=667,e.W=944,e.X=667,e.Y=667,e.Z=611,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=584,e.underscore=556,e.quoteleft=278,e.a=556,e.b=611,e.c=556,e.d=611,e.e=556,e.f=333,e.g=611,e.h=611,e.i=278,e.j=278,e.k=556,e.l=278,e.m=889,e.n=611,e.o=611,e.p=611,e.q=611,e.r=389,e.s=556,e.t=333,e.u=611,e.v=556,e.w=778,e.x=556,e.y=556,e.z=500,e.braceleft=389,e.bar=280,e.braceright=389,e.asciitilde=584,e.exclamdown=333,e.cent=556,e.sterling=556,e.fraction=167,e.yen=556,e.florin=556,e.section=556,e.currency=556,e.quotesingle=238,e.quotedblleft=500,e.guillemotleft=556,e.guilsinglleft=333,e.guilsinglright=333,e.fi=611,e.fl=611,e.endash=556,e.dagger=556,e.daggerdbl=556,e.periodcentered=278,e.paragraph=556,e.bullet=350,e.quotesinglbase=278,e.quotedblbase=500,e.quotedblright=500,e.guillemotright=556,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=611,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=370,e.Lslash=611,e.Oslash=778,e.OE=1e3,e.ordmasculine=365,e.ae=889,e.dotlessi=278,e.lslash=278,e.oslash=611,e.oe=944,e.germandbls=611,e.Idieresis=278,e.eacute=556,e.abreve=556,e.uhungarumlaut=611,e.ecaron=556,e.Ydieresis=667,e.divide=584,e.Yacute=667,e.Acircumflex=722,e.aacute=556,e.Ucircumflex=722,e.yacute=556,e.scommaaccent=556,e.ecircumflex=556,e.Uring=722,e.Udieresis=722,e.aogonek=556,e.Uacute=722,e.uogonek=611,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=737,e.Emacron=667,e.ccaron=556,e.aring=556,e.Ncommaaccent=722,e.lacute=278,e.agrave=556,e.Tcommaaccent=611,e.Cacute=722,e.atilde=556,e.Edotaccent=667,e.scaron=556,e.scedilla=556,e.iacute=278,e.lozenge=494,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=611,e.acircumflex=556,e.Amacron=722,e.rcaron=389,e.ccedilla=556,e.Zdotaccent=611,e.Thorn=667,e.Omacron=778,e.Racute=722,e.Sacute=667,e.dcaron=743,e.Umacron=722,e.uring=611,e.threesuperior=333,e.Ograve=778,e.Agrave=722,e.Abreve=722,e.multiply=584,e.uacute=611,e.Tcaron=611,e.partialdiff=494,e.ydieresis=556,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=556,e.edieresis=556,e.cacute=556,e.nacute=611,e.umacron=611,e.Ncaron=722,e.Iacute=278,e.plusminus=584,e.brokenbar=280,e.registered=737,e.Gbreve=778,e.Idotaccent=278,e.summation=600,e.Egrave=667,e.racute=389,e.omacron=611,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=278,e.tcaron=389,e.eogonek=556,e.Uogonek=722,e.Aacute=722,e.Adieresis=722,e.egrave=556,e.zacute=500,e.iogonek=278,e.Oacute=778,e.oacute=611,e.amacron=556,e.sacute=556,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=611,e.twosuperior=333,e.Odieresis=778,e.mu=611,e.igrave=278,e.ohungarumlaut=611,e.Eogonek=667,e.dcroat=611,e.threequarters=834,e.Scedilla=667,e.lcaron=400,e.Kcommaaccent=722,e.Lacute=611,e.trademark=1e3,e.edotaccent=556,e.Igrave=278,e.Imacron=278,e.Lcaron=611,e.onehalf=834,e.lessequal=549,e.ocircumflex=611,e.ntilde=611,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=556,e.gbreve=611,e.onequarter=834,e.Scaron=667,e.Scommaaccent=667,e.Ohungarumlaut=778,e.degree=400,e.ograve=611,e.Ccaron=722,e.ugrave=611,e.radical=549,e.Dcaron=722,e.rcommaaccent=389,e.Ntilde=722,e.otilde=611,e.Rcommaaccent=722,e.Lcommaaccent=611,e.Atilde=722,e.Aogonek=722,e.Aring=722,e.Otilde=778,e.zdotaccent=500,e.Ecaron=667,e.Iogonek=278,e.kcommaaccent=556,e.minus=584,e.Icircumflex=278,e.ncaron=611,e.tcommaaccent=333,e.logicalnot=584,e.odieresis=611,e.udieresis=611,e.notequal=549,e.gcommaaccent=611,e.eth=611,e.zcaron=500,e.ncommaaccent=611,e.onesuperior=333,e.imacron=278,e.Euro=556}),e[`Helvetica-BoldOblique`]=$e(function(e){e.space=278,e.exclam=333,e.quotedbl=474,e.numbersign=556,e.dollar=556,e.percent=889,e.ampersand=722,e.quoteright=278,e.parenleft=333,e.parenright=333,e.asterisk=389,e.plus=584,e.comma=278,e.hyphen=333,e.period=278,e.slash=278,e.zero=556,e.one=556,e.two=556,e.three=556,e.four=556,e.five=556,e.six=556,e.seven=556,e.eight=556,e.nine=556,e.colon=333,e.semicolon=333,e.less=584,e.equal=584,e.greater=584,e.question=611,e.at=975,e.A=722,e.B=722,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=722,e.I=278,e.J=556,e.K=722,e.L=611,e.M=833,e.N=722,e.O=778,e.P=667,e.Q=778,e.R=722,e.S=667,e.T=611,e.U=722,e.V=667,e.W=944,e.X=667,e.Y=667,e.Z=611,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=584,e.underscore=556,e.quoteleft=278,e.a=556,e.b=611,e.c=556,e.d=611,e.e=556,e.f=333,e.g=611,e.h=611,e.i=278,e.j=278,e.k=556,e.l=278,e.m=889,e.n=611,e.o=611,e.p=611,e.q=611,e.r=389,e.s=556,e.t=333,e.u=611,e.v=556,e.w=778,e.x=556,e.y=556,e.z=500,e.braceleft=389,e.bar=280,e.braceright=389,e.asciitilde=584,e.exclamdown=333,e.cent=556,e.sterling=556,e.fraction=167,e.yen=556,e.florin=556,e.section=556,e.currency=556,e.quotesingle=238,e.quotedblleft=500,e.guillemotleft=556,e.guilsinglleft=333,e.guilsinglright=333,e.fi=611,e.fl=611,e.endash=556,e.dagger=556,e.daggerdbl=556,e.periodcentered=278,e.paragraph=556,e.bullet=350,e.quotesinglbase=278,e.quotedblbase=500,e.quotedblright=500,e.guillemotright=556,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=611,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=370,e.Lslash=611,e.Oslash=778,e.OE=1e3,e.ordmasculine=365,e.ae=889,e.dotlessi=278,e.lslash=278,e.oslash=611,e.oe=944,e.germandbls=611,e.Idieresis=278,e.eacute=556,e.abreve=556,e.uhungarumlaut=611,e.ecaron=556,e.Ydieresis=667,e.divide=584,e.Yacute=667,e.Acircumflex=722,e.aacute=556,e.Ucircumflex=722,e.yacute=556,e.scommaaccent=556,e.ecircumflex=556,e.Uring=722,e.Udieresis=722,e.aogonek=556,e.Uacute=722,e.uogonek=611,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=737,e.Emacron=667,e.ccaron=556,e.aring=556,e.Ncommaaccent=722,e.lacute=278,e.agrave=556,e.Tcommaaccent=611,e.Cacute=722,e.atilde=556,e.Edotaccent=667,e.scaron=556,e.scedilla=556,e.iacute=278,e.lozenge=494,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=611,e.acircumflex=556,e.Amacron=722,e.rcaron=389,e.ccedilla=556,e.Zdotaccent=611,e.Thorn=667,e.Omacron=778,e.Racute=722,e.Sacute=667,e.dcaron=743,e.Umacron=722,e.uring=611,e.threesuperior=333,e.Ograve=778,e.Agrave=722,e.Abreve=722,e.multiply=584,e.uacute=611,e.Tcaron=611,e.partialdiff=494,e.ydieresis=556,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=556,e.edieresis=556,e.cacute=556,e.nacute=611,e.umacron=611,e.Ncaron=722,e.Iacute=278,e.plusminus=584,e.brokenbar=280,e.registered=737,e.Gbreve=778,e.Idotaccent=278,e.summation=600,e.Egrave=667,e.racute=389,e.omacron=611,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=278,e.tcaron=389,e.eogonek=556,e.Uogonek=722,e.Aacute=722,e.Adieresis=722,e.egrave=556,e.zacute=500,e.iogonek=278,e.Oacute=778,e.oacute=611,e.amacron=556,e.sacute=556,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=611,e.twosuperior=333,e.Odieresis=778,e.mu=611,e.igrave=278,e.ohungarumlaut=611,e.Eogonek=667,e.dcroat=611,e.threequarters=834,e.Scedilla=667,e.lcaron=400,e.Kcommaaccent=722,e.Lacute=611,e.trademark=1e3,e.edotaccent=556,e.Igrave=278,e.Imacron=278,e.Lcaron=611,e.onehalf=834,e.lessequal=549,e.ocircumflex=611,e.ntilde=611,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=556,e.gbreve=611,e.onequarter=834,e.Scaron=667,e.Scommaaccent=667,e.Ohungarumlaut=778,e.degree=400,e.ograve=611,e.Ccaron=722,e.ugrave=611,e.radical=549,e.Dcaron=722,e.rcommaaccent=389,e.Ntilde=722,e.otilde=611,e.Rcommaaccent=722,e.Lcommaaccent=611,e.Atilde=722,e.Aogonek=722,e.Aring=722,e.Otilde=778,e.zdotaccent=500,e.Ecaron=667,e.Iogonek=278,e.kcommaaccent=556,e.minus=584,e.Icircumflex=278,e.ncaron=611,e.tcommaaccent=333,e.logicalnot=584,e.odieresis=611,e.udieresis=611,e.notequal=549,e.gcommaaccent=611,e.eth=611,e.zcaron=500,e.ncommaaccent=611,e.onesuperior=333,e.imacron=278,e.Euro=556}),e[`Helvetica-Oblique`]=$e(function(e){e.space=278,e.exclam=278,e.quotedbl=355,e.numbersign=556,e.dollar=556,e.percent=889,e.ampersand=667,e.quoteright=222,e.parenleft=333,e.parenright=333,e.asterisk=389,e.plus=584,e.comma=278,e.hyphen=333,e.period=278,e.slash=278,e.zero=556,e.one=556,e.two=556,e.three=556,e.four=556,e.five=556,e.six=556,e.seven=556,e.eight=556,e.nine=556,e.colon=278,e.semicolon=278,e.less=584,e.equal=584,e.greater=584,e.question=556,e.at=1015,e.A=667,e.B=667,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=722,e.I=278,e.J=500,e.K=667,e.L=556,e.M=833,e.N=722,e.O=778,e.P=667,e.Q=778,e.R=722,e.S=667,e.T=611,e.U=722,e.V=667,e.W=944,e.X=667,e.Y=667,e.Z=611,e.bracketleft=278,e.backslash=278,e.bracketright=278,e.asciicircum=469,e.underscore=556,e.quoteleft=222,e.a=556,e.b=556,e.c=500,e.d=556,e.e=556,e.f=278,e.g=556,e.h=556,e.i=222,e.j=222,e.k=500,e.l=222,e.m=833,e.n=556,e.o=556,e.p=556,e.q=556,e.r=333,e.s=500,e.t=278,e.u=556,e.v=500,e.w=722,e.x=500,e.y=500,e.z=500,e.braceleft=334,e.bar=260,e.braceright=334,e.asciitilde=584,e.exclamdown=333,e.cent=556,e.sterling=556,e.fraction=167,e.yen=556,e.florin=556,e.section=556,e.currency=556,e.quotesingle=191,e.quotedblleft=333,e.guillemotleft=556,e.guilsinglleft=333,e.guilsinglright=333,e.fi=500,e.fl=500,e.endash=556,e.dagger=556,e.daggerdbl=556,e.periodcentered=278,e.paragraph=537,e.bullet=350,e.quotesinglbase=222,e.quotedblbase=333,e.quotedblright=333,e.guillemotright=556,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=611,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=370,e.Lslash=556,e.Oslash=778,e.OE=1e3,e.ordmasculine=365,e.ae=889,e.dotlessi=278,e.lslash=222,e.oslash=611,e.oe=944,e.germandbls=611,e.Idieresis=278,e.eacute=556,e.abreve=556,e.uhungarumlaut=556,e.ecaron=556,e.Ydieresis=667,e.divide=584,e.Yacute=667,e.Acircumflex=667,e.aacute=556,e.Ucircumflex=722,e.yacute=500,e.scommaaccent=500,e.ecircumflex=556,e.Uring=722,e.Udieresis=722,e.aogonek=556,e.Uacute=722,e.uogonek=556,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=737,e.Emacron=667,e.ccaron=500,e.aring=556,e.Ncommaaccent=722,e.lacute=222,e.agrave=556,e.Tcommaaccent=611,e.Cacute=722,e.atilde=556,e.Edotaccent=667,e.scaron=500,e.scedilla=500,e.iacute=278,e.lozenge=471,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=556,e.acircumflex=556,e.Amacron=667,e.rcaron=333,e.ccedilla=500,e.Zdotaccent=611,e.Thorn=667,e.Omacron=778,e.Racute=722,e.Sacute=667,e.dcaron=643,e.Umacron=722,e.uring=556,e.threesuperior=333,e.Ograve=778,e.Agrave=667,e.Abreve=667,e.multiply=584,e.uacute=556,e.Tcaron=611,e.partialdiff=476,e.ydieresis=500,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=556,e.edieresis=556,e.cacute=500,e.nacute=556,e.umacron=556,e.Ncaron=722,e.Iacute=278,e.plusminus=584,e.brokenbar=260,e.registered=737,e.Gbreve=778,e.Idotaccent=278,e.summation=600,e.Egrave=667,e.racute=333,e.omacron=556,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=222,e.tcaron=317,e.eogonek=556,e.Uogonek=722,e.Aacute=667,e.Adieresis=667,e.egrave=556,e.zacute=500,e.iogonek=222,e.Oacute=778,e.oacute=556,e.amacron=556,e.sacute=500,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=556,e.twosuperior=333,e.Odieresis=778,e.mu=556,e.igrave=278,e.ohungarumlaut=556,e.Eogonek=667,e.dcroat=556,e.threequarters=834,e.Scedilla=667,e.lcaron=299,e.Kcommaaccent=667,e.Lacute=556,e.trademark=1e3,e.edotaccent=556,e.Igrave=278,e.Imacron=278,e.Lcaron=556,e.onehalf=834,e.lessequal=549,e.ocircumflex=556,e.ntilde=556,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=556,e.gbreve=556,e.onequarter=834,e.Scaron=667,e.Scommaaccent=667,e.Ohungarumlaut=778,e.degree=400,e.ograve=556,e.Ccaron=722,e.ugrave=556,e.radical=453,e.Dcaron=722,e.rcommaaccent=333,e.Ntilde=722,e.otilde=556,e.Rcommaaccent=722,e.Lcommaaccent=556,e.Atilde=667,e.Aogonek=667,e.Aring=667,e.Otilde=778,e.zdotaccent=500,e.Ecaron=667,e.Iogonek=278,e.kcommaaccent=500,e.minus=584,e.Icircumflex=278,e.ncaron=556,e.tcommaaccent=278,e.logicalnot=584,e.odieresis=556,e.udieresis=556,e.notequal=549,e.gcommaaccent=556,e.eth=556,e.zcaron=500,e.ncommaaccent=556,e.onesuperior=333,e.imacron=278,e.Euro=556}),e.Symbol=$e(function(e){e.space=250,e.exclam=333,e.universal=713,e.numbersign=500,e.existential=549,e.percent=833,e.ampersand=778,e.suchthat=439,e.parenleft=333,e.parenright=333,e.asteriskmath=500,e.plus=549,e.comma=250,e.minus=549,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=278,e.semicolon=278,e.less=549,e.equal=549,e.greater=549,e.question=444,e.congruent=549,e.Alpha=722,e.Beta=667,e.Chi=722,e.Delta=612,e.Epsilon=611,e.Phi=763,e.Gamma=603,e.Eta=722,e.Iota=333,e.theta1=631,e.Kappa=722,e.Lambda=686,e.Mu=889,e.Nu=722,e.Omicron=722,e.Pi=768,e.Theta=741,e.Rho=556,e.Sigma=592,e.Tau=611,e.Upsilon=690,e.sigma1=439,e.Omega=768,e.Xi=645,e.Psi=795,e.Zeta=611,e.bracketleft=333,e.therefore=863,e.bracketright=333,e.perpendicular=658,e.underscore=500,e.radicalex=500,e.alpha=631,e.beta=549,e.chi=549,e.delta=494,e.epsilon=439,e.phi=521,e.gamma=411,e.eta=603,e.iota=329,e.phi1=603,e.kappa=549,e.lambda=549,e.mu=576,e.nu=521,e.omicron=549,e.pi=549,e.theta=521,e.rho=549,e.sigma=603,e.tau=439,e.upsilon=576,e.omega1=713,e.omega=686,e.xi=493,e.psi=686,e.zeta=494,e.braceleft=480,e.bar=200,e.braceright=480,e.similar=549,e.Euro=750,e.Upsilon1=620,e.minute=247,e.lessequal=549,e.fraction=167,e.infinity=713,e.florin=500,e.club=753,e.diamond=753,e.heart=753,e.spade=753,e.arrowboth=1042,e.arrowleft=987,e.arrowup=603,e.arrowright=987,e.arrowdown=603,e.degree=400,e.plusminus=549,e.second=411,e.greaterequal=549,e.multiply=549,e.proportional=713,e.partialdiff=494,e.bullet=460,e.divide=549,e.notequal=549,e.equivalence=549,e.approxequal=549,e.ellipsis=1e3,e.arrowvertex=603,e.arrowhorizex=1e3,e.carriagereturn=658,e.aleph=823,e.Ifraktur=686,e.Rfraktur=795,e.weierstrass=987,e.circlemultiply=768,e.circleplus=768,e.emptyset=823,e.intersection=768,e.union=768,e.propersuperset=713,e.reflexsuperset=713,e.notsubset=713,e.propersubset=713,e.reflexsubset=713,e.element=713,e.notelement=713,e.angle=768,e.gradient=713,e.registerserif=790,e.copyrightserif=790,e.trademarkserif=890,e.product=823,e.radical=549,e.dotmath=250,e.logicalnot=713,e.logicaland=603,e.logicalor=603,e.arrowdblboth=1042,e.arrowdblleft=987,e.arrowdblup=603,e.arrowdblright=987,e.arrowdbldown=603,e.lozenge=494,e.angleleft=329,e.registersans=790,e.copyrightsans=790,e.trademarksans=786,e.summation=713,e.parenlefttp=384,e.parenleftex=384,e.parenleftbt=384,e.bracketlefttp=384,e.bracketleftex=384,e.bracketleftbt=384,e.bracelefttp=494,e.braceleftmid=494,e.braceleftbt=494,e.braceex=494,e.angleright=329,e.integral=274,e.integraltp=686,e.integralex=686,e.integralbt=686,e.parenrighttp=384,e.parenrightex=384,e.parenrightbt=384,e.bracketrighttp=384,e.bracketrightex=384,e.bracketrightbt=384,e.bracerighttp=494,e.bracerightmid=494,e.bracerightbt=494,e.apple=790}),e[`Times-Roman`]=$e(function(e){e.space=250,e.exclam=333,e.quotedbl=408,e.numbersign=500,e.dollar=500,e.percent=833,e.ampersand=778,e.quoteright=333,e.parenleft=333,e.parenright=333,e.asterisk=500,e.plus=564,e.comma=250,e.hyphen=333,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=278,e.semicolon=278,e.less=564,e.equal=564,e.greater=564,e.question=444,e.at=921,e.A=722,e.B=667,e.C=667,e.D=722,e.E=611,e.F=556,e.G=722,e.H=722,e.I=333,e.J=389,e.K=722,e.L=611,e.M=889,e.N=722,e.O=722,e.P=556,e.Q=722,e.R=667,e.S=556,e.T=611,e.U=722,e.V=722,e.W=944,e.X=722,e.Y=722,e.Z=611,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=469,e.underscore=500,e.quoteleft=333,e.a=444,e.b=500,e.c=444,e.d=500,e.e=444,e.f=333,e.g=500,e.h=500,e.i=278,e.j=278,e.k=500,e.l=278,e.m=778,e.n=500,e.o=500,e.p=500,e.q=500,e.r=333,e.s=389,e.t=278,e.u=500,e.v=500,e.w=722,e.x=500,e.y=500,e.z=444,e.braceleft=480,e.bar=200,e.braceright=480,e.asciitilde=541,e.exclamdown=333,e.cent=500,e.sterling=500,e.fraction=167,e.yen=500,e.florin=500,e.section=500,e.currency=500,e.quotesingle=180,e.quotedblleft=444,e.guillemotleft=500,e.guilsinglleft=333,e.guilsinglright=333,e.fi=556,e.fl=556,e.endash=500,e.dagger=500,e.daggerdbl=500,e.periodcentered=250,e.paragraph=453,e.bullet=350,e.quotesinglbase=333,e.quotedblbase=444,e.quotedblright=444,e.guillemotright=500,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=444,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=889,e.ordfeminine=276,e.Lslash=611,e.Oslash=722,e.OE=889,e.ordmasculine=310,e.ae=667,e.dotlessi=278,e.lslash=278,e.oslash=500,e.oe=722,e.germandbls=500,e.Idieresis=333,e.eacute=444,e.abreve=444,e.uhungarumlaut=500,e.ecaron=444,e.Ydieresis=722,e.divide=564,e.Yacute=722,e.Acircumflex=722,e.aacute=444,e.Ucircumflex=722,e.yacute=500,e.scommaaccent=389,e.ecircumflex=444,e.Uring=722,e.Udieresis=722,e.aogonek=444,e.Uacute=722,e.uogonek=500,e.Edieresis=611,e.Dcroat=722,e.commaaccent=250,e.copyright=760,e.Emacron=611,e.ccaron=444,e.aring=444,e.Ncommaaccent=722,e.lacute=278,e.agrave=444,e.Tcommaaccent=611,e.Cacute=667,e.atilde=444,e.Edotaccent=611,e.scaron=389,e.scedilla=389,e.iacute=278,e.lozenge=471,e.Rcaron=667,e.Gcommaaccent=722,e.ucircumflex=500,e.acircumflex=444,e.Amacron=722,e.rcaron=333,e.ccedilla=444,e.Zdotaccent=611,e.Thorn=556,e.Omacron=722,e.Racute=667,e.Sacute=556,e.dcaron=588,e.Umacron=722,e.uring=500,e.threesuperior=300,e.Ograve=722,e.Agrave=722,e.Abreve=722,e.multiply=564,e.uacute=500,e.Tcaron=611,e.partialdiff=476,e.ydieresis=500,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=611,e.adieresis=444,e.edieresis=444,e.cacute=444,e.nacute=500,e.umacron=500,e.Ncaron=722,e.Iacute=333,e.plusminus=564,e.brokenbar=200,e.registered=760,e.Gbreve=722,e.Idotaccent=333,e.summation=600,e.Egrave=611,e.racute=333,e.omacron=500,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=667,e.lcommaaccent=278,e.tcaron=326,e.eogonek=444,e.Uogonek=722,e.Aacute=722,e.Adieresis=722,e.egrave=444,e.zacute=444,e.iogonek=278,e.Oacute=722,e.oacute=500,e.amacron=444,e.sacute=389,e.idieresis=278,e.Ocircumflex=722,e.Ugrave=722,e.Delta=612,e.thorn=500,e.twosuperior=300,e.Odieresis=722,e.mu=500,e.igrave=278,e.ohungarumlaut=500,e.Eogonek=611,e.dcroat=500,e.threequarters=750,e.Scedilla=556,e.lcaron=344,e.Kcommaaccent=722,e.Lacute=611,e.trademark=980,e.edotaccent=444,e.Igrave=333,e.Imacron=333,e.Lcaron=611,e.onehalf=750,e.lessequal=549,e.ocircumflex=500,e.ntilde=500,e.Uhungarumlaut=722,e.Eacute=611,e.emacron=444,e.gbreve=500,e.onequarter=750,e.Scaron=556,e.Scommaaccent=556,e.Ohungarumlaut=722,e.degree=400,e.ograve=500,e.Ccaron=667,e.ugrave=500,e.radical=453,e.Dcaron=722,e.rcommaaccent=333,e.Ntilde=722,e.otilde=500,e.Rcommaaccent=667,e.Lcommaaccent=611,e.Atilde=722,e.Aogonek=722,e.Aring=722,e.Otilde=722,e.zdotaccent=444,e.Ecaron=611,e.Iogonek=333,e.kcommaaccent=500,e.minus=564,e.Icircumflex=333,e.ncaron=500,e.tcommaaccent=278,e.logicalnot=564,e.odieresis=500,e.udieresis=500,e.notequal=549,e.gcommaaccent=500,e.eth=500,e.zcaron=444,e.ncommaaccent=500,e.onesuperior=300,e.imacron=278,e.Euro=500}),e[`Times-Bold`]=$e(function(e){e.space=250,e.exclam=333,e.quotedbl=555,e.numbersign=500,e.dollar=500,e.percent=1e3,e.ampersand=833,e.quoteright=333,e.parenleft=333,e.parenright=333,e.asterisk=500,e.plus=570,e.comma=250,e.hyphen=333,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=333,e.semicolon=333,e.less=570,e.equal=570,e.greater=570,e.question=500,e.at=930,e.A=722,e.B=667,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=778,e.I=389,e.J=500,e.K=778,e.L=667,e.M=944,e.N=722,e.O=778,e.P=611,e.Q=778,e.R=722,e.S=556,e.T=667,e.U=722,e.V=722,e.W=1e3,e.X=722,e.Y=722,e.Z=667,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=581,e.underscore=500,e.quoteleft=333,e.a=500,e.b=556,e.c=444,e.d=556,e.e=444,e.f=333,e.g=500,e.h=556,e.i=278,e.j=333,e.k=556,e.l=278,e.m=833,e.n=556,e.o=500,e.p=556,e.q=556,e.r=444,e.s=389,e.t=333,e.u=556,e.v=500,e.w=722,e.x=500,e.y=500,e.z=444,e.braceleft=394,e.bar=220,e.braceright=394,e.asciitilde=520,e.exclamdown=333,e.cent=500,e.sterling=500,e.fraction=167,e.yen=500,e.florin=500,e.section=500,e.currency=500,e.quotesingle=278,e.quotedblleft=500,e.guillemotleft=500,e.guilsinglleft=333,e.guilsinglright=333,e.fi=556,e.fl=556,e.endash=500,e.dagger=500,e.daggerdbl=500,e.periodcentered=250,e.paragraph=540,e.bullet=350,e.quotesinglbase=333,e.quotedblbase=500,e.quotedblright=500,e.guillemotright=500,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=500,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=300,e.Lslash=667,e.Oslash=778,e.OE=1e3,e.ordmasculine=330,e.ae=722,e.dotlessi=278,e.lslash=278,e.oslash=500,e.oe=722,e.germandbls=556,e.Idieresis=389,e.eacute=444,e.abreve=500,e.uhungarumlaut=556,e.ecaron=444,e.Ydieresis=722,e.divide=570,e.Yacute=722,e.Acircumflex=722,e.aacute=500,e.Ucircumflex=722,e.yacute=500,e.scommaaccent=389,e.ecircumflex=444,e.Uring=722,e.Udieresis=722,e.aogonek=500,e.Uacute=722,e.uogonek=556,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=747,e.Emacron=667,e.ccaron=444,e.aring=500,e.Ncommaaccent=722,e.lacute=278,e.agrave=500,e.Tcommaaccent=667,e.Cacute=722,e.atilde=500,e.Edotaccent=667,e.scaron=389,e.scedilla=389,e.iacute=278,e.lozenge=494,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=556,e.acircumflex=500,e.Amacron=722,e.rcaron=444,e.ccedilla=444,e.Zdotaccent=667,e.Thorn=611,e.Omacron=778,e.Racute=722,e.Sacute=556,e.dcaron=672,e.Umacron=722,e.uring=556,e.threesuperior=300,e.Ograve=778,e.Agrave=722,e.Abreve=722,e.multiply=570,e.uacute=556,e.Tcaron=667,e.partialdiff=494,e.ydieresis=500,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=500,e.edieresis=444,e.cacute=444,e.nacute=556,e.umacron=556,e.Ncaron=722,e.Iacute=389,e.plusminus=570,e.brokenbar=220,e.registered=747,e.Gbreve=778,e.Idotaccent=389,e.summation=600,e.Egrave=667,e.racute=444,e.omacron=500,e.Zacute=667,e.Zcaron=667,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=278,e.tcaron=416,e.eogonek=444,e.Uogonek=722,e.Aacute=722,e.Adieresis=722,e.egrave=444,e.zacute=444,e.iogonek=278,e.Oacute=778,e.oacute=500,e.amacron=500,e.sacute=389,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=556,e.twosuperior=300,e.Odieresis=778,e.mu=556,e.igrave=278,e.ohungarumlaut=500,e.Eogonek=667,e.dcroat=556,e.threequarters=750,e.Scedilla=556,e.lcaron=394,e.Kcommaaccent=778,e.Lacute=667,e.trademark=1e3,e.edotaccent=444,e.Igrave=389,e.Imacron=389,e.Lcaron=667,e.onehalf=750,e.lessequal=549,e.ocircumflex=500,e.ntilde=556,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=444,e.gbreve=500,e.onequarter=750,e.Scaron=556,e.Scommaaccent=556,e.Ohungarumlaut=778,e.degree=400,e.ograve=500,e.Ccaron=722,e.ugrave=556,e.radical=549,e.Dcaron=722,e.rcommaaccent=444,e.Ntilde=722,e.otilde=500,e.Rcommaaccent=722,e.Lcommaaccent=667,e.Atilde=722,e.Aogonek=722,e.Aring=722,e.Otilde=778,e.zdotaccent=444,e.Ecaron=667,e.Iogonek=389,e.kcommaaccent=556,e.minus=570,e.Icircumflex=389,e.ncaron=556,e.tcommaaccent=333,e.logicalnot=570,e.odieresis=500,e.udieresis=556,e.notequal=549,e.gcommaaccent=500,e.eth=500,e.zcaron=444,e.ncommaaccent=556,e.onesuperior=300,e.imacron=278,e.Euro=500}),e[`Times-BoldItalic`]=$e(function(e){e.space=250,e.exclam=389,e.quotedbl=555,e.numbersign=500,e.dollar=500,e.percent=833,e.ampersand=778,e.quoteright=333,e.parenleft=333,e.parenright=333,e.asterisk=500,e.plus=570,e.comma=250,e.hyphen=333,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=333,e.semicolon=333,e.less=570,e.equal=570,e.greater=570,e.question=500,e.at=832,e.A=667,e.B=667,e.C=667,e.D=722,e.E=667,e.F=667,e.G=722,e.H=778,e.I=389,e.J=500,e.K=667,e.L=611,e.M=889,e.N=722,e.O=722,e.P=611,e.Q=722,e.R=667,e.S=556,e.T=611,e.U=722,e.V=667,e.W=889,e.X=667,e.Y=611,e.Z=611,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=570,e.underscore=500,e.quoteleft=333,e.a=500,e.b=500,e.c=444,e.d=500,e.e=444,e.f=333,e.g=500,e.h=556,e.i=278,e.j=278,e.k=500,e.l=278,e.m=778,e.n=556,e.o=500,e.p=500,e.q=500,e.r=389,e.s=389,e.t=278,e.u=556,e.v=444,e.w=667,e.x=500,e.y=444,e.z=389,e.braceleft=348,e.bar=220,e.braceright=348,e.asciitilde=570,e.exclamdown=389,e.cent=500,e.sterling=500,e.fraction=167,e.yen=500,e.florin=500,e.section=500,e.currency=500,e.quotesingle=278,e.quotedblleft=500,e.guillemotleft=500,e.guilsinglleft=333,e.guilsinglright=333,e.fi=556,e.fl=556,e.endash=500,e.dagger=500,e.daggerdbl=500,e.periodcentered=250,e.paragraph=500,e.bullet=350,e.quotesinglbase=333,e.quotedblbase=500,e.quotedblright=500,e.guillemotright=500,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=500,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=944,e.ordfeminine=266,e.Lslash=611,e.Oslash=722,e.OE=944,e.ordmasculine=300,e.ae=722,e.dotlessi=278,e.lslash=278,e.oslash=500,e.oe=722,e.germandbls=500,e.Idieresis=389,e.eacute=444,e.abreve=500,e.uhungarumlaut=556,e.ecaron=444,e.Ydieresis=611,e.divide=570,e.Yacute=611,e.Acircumflex=667,e.aacute=500,e.Ucircumflex=722,e.yacute=444,e.scommaaccent=389,e.ecircumflex=444,e.Uring=722,e.Udieresis=722,e.aogonek=500,e.Uacute=722,e.uogonek=556,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=747,e.Emacron=667,e.ccaron=444,e.aring=500,e.Ncommaaccent=722,e.lacute=278,e.agrave=500,e.Tcommaaccent=611,e.Cacute=667,e.atilde=500,e.Edotaccent=667,e.scaron=389,e.scedilla=389,e.iacute=278,e.lozenge=494,e.Rcaron=667,e.Gcommaaccent=722,e.ucircumflex=556,e.acircumflex=500,e.Amacron=667,e.rcaron=389,e.ccedilla=444,e.Zdotaccent=611,e.Thorn=611,e.Omacron=722,e.Racute=667,e.Sacute=556,e.dcaron=608,e.Umacron=722,e.uring=556,e.threesuperior=300,e.Ograve=722,e.Agrave=667,e.Abreve=667,e.multiply=570,e.uacute=556,e.Tcaron=611,e.partialdiff=494,e.ydieresis=444,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=500,e.edieresis=444,e.cacute=444,e.nacute=556,e.umacron=556,e.Ncaron=722,e.Iacute=389,e.plusminus=570,e.brokenbar=220,e.registered=747,e.Gbreve=722,e.Idotaccent=389,e.summation=600,e.Egrave=667,e.racute=389,e.omacron=500,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=667,e.lcommaaccent=278,e.tcaron=366,e.eogonek=444,e.Uogonek=722,e.Aacute=667,e.Adieresis=667,e.egrave=444,e.zacute=389,e.iogonek=278,e.Oacute=722,e.oacute=500,e.amacron=500,e.sacute=389,e.idieresis=278,e.Ocircumflex=722,e.Ugrave=722,e.Delta=612,e.thorn=500,e.twosuperior=300,e.Odieresis=722,e.mu=576,e.igrave=278,e.ohungarumlaut=500,e.Eogonek=667,e.dcroat=500,e.threequarters=750,e.Scedilla=556,e.lcaron=382,e.Kcommaaccent=667,e.Lacute=611,e.trademark=1e3,e.edotaccent=444,e.Igrave=389,e.Imacron=389,e.Lcaron=611,e.onehalf=750,e.lessequal=549,e.ocircumflex=500,e.ntilde=556,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=444,e.gbreve=500,e.onequarter=750,e.Scaron=556,e.Scommaaccent=556,e.Ohungarumlaut=722,e.degree=400,e.ograve=500,e.Ccaron=667,e.ugrave=556,e.radical=549,e.Dcaron=722,e.rcommaaccent=389,e.Ntilde=722,e.otilde=500,e.Rcommaaccent=667,e.Lcommaaccent=611,e.Atilde=667,e.Aogonek=667,e.Aring=667,e.Otilde=722,e.zdotaccent=389,e.Ecaron=667,e.Iogonek=389,e.kcommaaccent=500,e.minus=606,e.Icircumflex=389,e.ncaron=556,e.tcommaaccent=278,e.logicalnot=606,e.odieresis=500,e.udieresis=556,e.notequal=549,e.gcommaaccent=500,e.eth=500,e.zcaron=389,e.ncommaaccent=556,e.onesuperior=300,e.imacron=278,e.Euro=500}),e[`Times-Italic`]=$e(function(e){e.space=250,e.exclam=333,e.quotedbl=420,e.numbersign=500,e.dollar=500,e.percent=833,e.ampersand=778,e.quoteright=333,e.parenleft=333,e.parenright=333,e.asterisk=500,e.plus=675,e.comma=250,e.hyphen=333,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=333,e.semicolon=333,e.less=675,e.equal=675,e.greater=675,e.question=500,e.at=920,e.A=611,e.B=611,e.C=667,e.D=722,e.E=611,e.F=611,e.G=722,e.H=722,e.I=333,e.J=444,e.K=667,e.L=556,e.M=833,e.N=667,e.O=722,e.P=611,e.Q=722,e.R=611,e.S=500,e.T=556,e.U=722,e.V=611,e.W=833,e.X=611,e.Y=556,e.Z=556,e.bracketleft=389,e.backslash=278,e.bracketright=389,e.asciicircum=422,e.underscore=500,e.quoteleft=333,e.a=500,e.b=500,e.c=444,e.d=500,e.e=444,e.f=278,e.g=500,e.h=500,e.i=278,e.j=278,e.k=444,e.l=278,e.m=722,e.n=500,e.o=500,e.p=500,e.q=500,e.r=389,e.s=389,e.t=278,e.u=500,e.v=444,e.w=667,e.x=444,e.y=444,e.z=389,e.braceleft=400,e.bar=275,e.braceright=400,e.asciitilde=541,e.exclamdown=389,e.cent=500,e.sterling=500,e.fraction=167,e.yen=500,e.florin=500,e.section=500,e.currency=500,e.quotesingle=214,e.quotedblleft=556,e.guillemotleft=500,e.guilsinglleft=333,e.guilsinglright=333,e.fi=500,e.fl=500,e.endash=500,e.dagger=500,e.daggerdbl=500,e.periodcentered=250,e.paragraph=523,e.bullet=350,e.quotesinglbase=333,e.quotedblbase=556,e.quotedblright=556,e.guillemotright=500,e.ellipsis=889,e.perthousand=1e3,e.questiondown=500,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=889,e.AE=889,e.ordfeminine=276,e.Lslash=556,e.Oslash=722,e.OE=944,e.ordmasculine=310,e.ae=667,e.dotlessi=278,e.lslash=278,e.oslash=500,e.oe=667,e.germandbls=500,e.Idieresis=333,e.eacute=444,e.abreve=500,e.uhungarumlaut=500,e.ecaron=444,e.Ydieresis=556,e.divide=675,e.Yacute=556,e.Acircumflex=611,e.aacute=500,e.Ucircumflex=722,e.yacute=444,e.scommaaccent=389,e.ecircumflex=444,e.Uring=722,e.Udieresis=722,e.aogonek=500,e.Uacute=722,e.uogonek=500,e.Edieresis=611,e.Dcroat=722,e.commaaccent=250,e.copyright=760,e.Emacron=611,e.ccaron=444,e.aring=500,e.Ncommaaccent=667,e.lacute=278,e.agrave=500,e.Tcommaaccent=556,e.Cacute=667,e.atilde=500,e.Edotaccent=611,e.scaron=389,e.scedilla=389,e.iacute=278,e.lozenge=471,e.Rcaron=611,e.Gcommaaccent=722,e.ucircumflex=500,e.acircumflex=500,e.Amacron=611,e.rcaron=389,e.ccedilla=444,e.Zdotaccent=556,e.Thorn=611,e.Omacron=722,e.Racute=611,e.Sacute=500,e.dcaron=544,e.Umacron=722,e.uring=500,e.threesuperior=300,e.Ograve=722,e.Agrave=611,e.Abreve=611,e.multiply=675,e.uacute=500,e.Tcaron=556,e.partialdiff=476,e.ydieresis=444,e.Nacute=667,e.icircumflex=278,e.Ecircumflex=611,e.adieresis=500,e.edieresis=444,e.cacute=444,e.nacute=500,e.umacron=500,e.Ncaron=667,e.Iacute=333,e.plusminus=675,e.brokenbar=275,e.registered=760,e.Gbreve=722,e.Idotaccent=333,e.summation=600,e.Egrave=611,e.racute=389,e.omacron=500,e.Zacute=556,e.Zcaron=556,e.greaterequal=549,e.Eth=722,e.Ccedilla=667,e.lcommaaccent=278,e.tcaron=300,e.eogonek=444,e.Uogonek=722,e.Aacute=611,e.Adieresis=611,e.egrave=444,e.zacute=389,e.iogonek=278,e.Oacute=722,e.oacute=500,e.amacron=500,e.sacute=389,e.idieresis=278,e.Ocircumflex=722,e.Ugrave=722,e.Delta=612,e.thorn=500,e.twosuperior=300,e.Odieresis=722,e.mu=500,e.igrave=278,e.ohungarumlaut=500,e.Eogonek=611,e.dcroat=500,e.threequarters=750,e.Scedilla=500,e.lcaron=300,e.Kcommaaccent=667,e.Lacute=556,e.trademark=980,e.edotaccent=444,e.Igrave=333,e.Imacron=333,e.Lcaron=611,e.onehalf=750,e.lessequal=549,e.ocircumflex=500,e.ntilde=500,e.Uhungarumlaut=722,e.Eacute=611,e.emacron=444,e.gbreve=500,e.onequarter=750,e.Scaron=500,e.Scommaaccent=500,e.Ohungarumlaut=722,e.degree=400,e.ograve=500,e.Ccaron=667,e.ugrave=500,e.radical=453,e.Dcaron=722,e.rcommaaccent=389,e.Ntilde=667,e.otilde=500,e.Rcommaaccent=611,e.Lcommaaccent=556,e.Atilde=611,e.Aogonek=611,e.Aring=611,e.Otilde=722,e.zdotaccent=389,e.Ecaron=611,e.Iogonek=333,e.kcommaaccent=444,e.minus=675,e.Icircumflex=333,e.ncaron=500,e.tcommaaccent=278,e.logicalnot=675,e.odieresis=500,e.udieresis=500,e.notequal=549,e.gcommaaccent=500,e.eth=500,e.zcaron=389,e.ncommaaccent=500,e.onesuperior=300,e.imacron=278,e.Euro=500}),e.ZapfDingbats=$e(function(e){e.space=278,e.a1=974,e.a2=961,e.a202=974,e.a3=980,e.a4=719,e.a5=789,e.a119=790,e.a118=791,e.a117=690,e.a11=960,e.a12=939,e.a13=549,e.a14=855,e.a15=911,e.a16=933,e.a105=911,e.a17=945,e.a18=974,e.a19=755,e.a20=846,e.a21=762,e.a22=761,e.a23=571,e.a24=677,e.a25=763,e.a26=760,e.a27=759,e.a28=754,e.a6=494,e.a7=552,e.a8=537,e.a9=577,e.a10=692,e.a29=786,e.a30=788,e.a31=788,e.a32=790,e.a33=793,e.a34=794,e.a35=816,e.a36=823,e.a37=789,e.a38=841,e.a39=823,e.a40=833,e.a41=816,e.a42=831,e.a43=923,e.a44=744,e.a45=723,e.a46=749,e.a47=790,e.a48=792,e.a49=695,e.a50=776,e.a51=768,e.a52=792,e.a53=759,e.a54=707,e.a55=708,e.a56=682,e.a57=701,e.a58=826,e.a59=815,e.a60=789,e.a61=789,e.a62=707,e.a63=687,e.a64=696,e.a65=689,e.a66=786,e.a67=787,e.a68=713,e.a69=791,e.a70=785,e.a71=791,e.a72=873,e.a73=761,e.a74=762,e.a203=762,e.a75=759,e.a204=759,e.a76=892,e.a77=892,e.a78=788,e.a79=784,e.a81=438,e.a82=138,e.a83=277,e.a84=415,e.a97=392,e.a98=392,e.a99=668,e.a100=668,e.a89=390,e.a90=390,e.a93=317,e.a94=317,e.a91=276,e.a92=276,e.a205=509,e.a85=509,e.a206=410,e.a86=410,e.a87=234,e.a88=234,e.a95=334,e.a96=334,e.a101=732,e.a102=544,e.a103=544,e.a104=910,e.a106=667,e.a107=760,e.a108=760,e.a112=776,e.a111=595,e.a110=694,e.a109=626,e.a120=788,e.a121=788,e.a122=788,e.a123=788,e.a124=788,e.a125=788,e.a126=788,e.a127=788,e.a128=788,e.a129=788,e.a130=788,e.a131=788,e.a132=788,e.a133=788,e.a134=788,e.a135=788,e.a136=788,e.a137=788,e.a138=788,e.a139=788,e.a140=788,e.a141=788,e.a142=788,e.a143=788,e.a144=788,e.a145=788,e.a146=788,e.a147=788,e.a148=788,e.a149=788,e.a150=788,e.a151=788,e.a152=788,e.a153=788,e.a154=788,e.a155=788,e.a156=788,e.a157=788,e.a158=788,e.a159=788,e.a160=894,e.a161=838,e.a163=1016,e.a164=458,e.a196=748,e.a165=924,e.a192=748,e.a166=918,e.a167=927,e.a168=928,e.a169=928,e.a170=834,e.a171=873,e.a172=828,e.a173=924,e.a162=924,e.a174=917,e.a175=930,e.a176=931,e.a177=463,e.a178=883,e.a179=836,e.a193=836,e.a180=867,e.a199=867,e.a181=696,e.a200=696,e.a182=874,e.a201=874,e.a183=760,e.a184=946,e.a197=771,e.a185=865,e.a194=771,e.a198=888,e.a186=967,e.a195=888,e.a187=831,e.a188=873,e.a189=927,e.a190=970,e.a191=918})}),yo=$e(function(e){e.Courier={ascent:629,descent:-157,capHeight:562,xHeight:-426},e[`Courier-Bold`]={ascent:629,descent:-157,capHeight:562,xHeight:439},e[`Courier-Oblique`]={ascent:629,descent:-157,capHeight:562,xHeight:426},e[`Courier-BoldOblique`]={ascent:629,descent:-157,capHeight:562,xHeight:426},e.Helvetica={ascent:718,descent:-207,capHeight:718,xHeight:523},e[`Helvetica-Bold`]={ascent:718,descent:-207,capHeight:718,xHeight:532},e[`Helvetica-Oblique`]={ascent:718,descent:-207,capHeight:718,xHeight:523},e[`Helvetica-BoldOblique`]={ascent:718,descent:-207,capHeight:718,xHeight:532},e[`Times-Roman`]={ascent:683,descent:-217,capHeight:662,xHeight:450},e[`Times-Bold`]={ascent:683,descent:-217,capHeight:676,xHeight:461},e[`Times-Italic`]={ascent:683,descent:-217,capHeight:653,xHeight:441},e[`Times-BoldItalic`]={ascent:683,descent:-217,capHeight:669,xHeight:462},e.Symbol={ascent:Math.NaN,descent:Math.NaN,capHeight:Math.NaN,xHeight:Math.NaN},e.ZapfDingbats={ascent:Math.NaN,descent:Math.NaN,capHeight:Math.NaN,xHeight:Math.NaN}});var bo=class e{#e=new Map;constructor(e){this.sfnt=e}static getSearchParams(e,t){let n=1,r=0;for(;(n^e)>n;)n<<=1,r++;let i=n*t;return{range:i,entry:r,rangeShift:t*e-i}}toArray(){let t=this.sfnt,n=this.#e,r=[...n.keys()].sort(),i=r.length,a=12+i*16,o=[a];for(let e=0;e<i;e++){let t=(n.get(r[e]).length+3&-4)>>>0;a+=t,o.push(a)}let s=new Uint8Array(a),c=new DataView(s.buffer);for(let e=0;e<i;e++){let t=n.get(r[e]);s.set(t,o[e])}t===`true`&&(t=`\\0\\0\\0`),s.set(pe(t),0),c.setInt16(4,i);let l=e.getSearchParams(i,16);c.setInt16(6,l.range),c.setInt16(8,l.entry),c.setInt16(10,l.rangeShift),a=12;for(let e=0;e<i;e++){let t=r[e];s.set(pe(t),a);let i=0;for(let t=o[e],n=o[e+1];t<n;t+=4){let e=c.getUint32(t);i=i+e>>>0}c.setInt32(a+4,i),c.setInt32(a+8,o[e]),c.setInt32(a+12,n.get(t).length),a+=16}return this.#e.clear(),s}addTable(e,t){if(this.#e.has(e))throw Error(`Table ${e} already exists`);this.#e.set(e,t)}};let xo={hstem:[1],vstem:[3],vmoveto:[4],rlineto:[5],hlineto:[6],vlineto:[7],rrcurveto:[8],callsubr:[10],flex:[12,35],drop:[12,18],endchar:[14],rmoveto:[21],hmoveto:[22],vhcurveto:[30],hvcurveto:[31]};var So=class{width=0;lsb=0;flexing=!1;output=[];stack=[];convert(e,t,n){let r=e.length,i=!1,a,o,s;for(let c=0;c<r;c++){let r=e[c];if(r<32){switch(r===12&&(r=(r<<8)+e[++c]),r){case 1:this.stack=[];break;case 3:this.stack=[];break;case 4:if(this.flexing){if(this.stack.length<1){i=!0;break}let e=this.stack.pop();this.stack.push(0,e);break}i=this.executeCommand(1,xo.vmoveto);break;case 5:i=this.executeCommand(2,xo.rlineto);break;case 6:i=this.executeCommand(1,xo.hlineto);break;case 7:i=this.executeCommand(1,xo.vlineto);break;case 8:i=this.executeCommand(6,xo.rrcurveto);break;case 9:this.stack=[];break;case 10:if(this.stack.length<1){i=!0;break}if(s=this.stack.pop(),!t[s]){i=!0;break}i=this.convert(t[s],t,n);break;case 11:return i;case 13:if(this.stack.length<2){i=!0;break}a=this.stack.pop(),o=this.stack.pop(),this.lsb=o,this.width=a,this.stack.push(a,o),i=this.executeCommand(2,xo.hmoveto);break;case 14:this.output.push(xo.endchar[0]);break;case 21:if(this.flexing)break;i=this.executeCommand(2,xo.rmoveto);break;case 22:if(this.flexing){this.stack.push(0);break}i=this.executeCommand(1,xo.hmoveto);break;case 30:i=this.executeCommand(4,xo.vhcurveto);break;case 31:i=this.executeCommand(4,xo.hvcurveto);break;case 3072:this.stack=[];break;case 3073:this.stack=[];break;case 3074:this.stack=[];break;case 3078:if(n){let e=this.stack.at(-5);this.seac=this.stack.splice(-4,4),this.seac[0]+=this.lsb-e,i=this.executeCommand(0,xo.endchar)}else i=this.executeCommand(4,xo.endchar);break;case 3079:if(this.stack.length<4){i=!0;break}this.stack.pop(),a=this.stack.pop();let e=this.stack.pop();o=this.stack.pop(),this.lsb=o,this.width=a,this.stack.push(a,o,e),i=this.executeCommand(3,xo.rmoveto);break;case 3084:if(this.stack.length<2){i=!0;break}let c=this.stack.pop(),l=this.stack.pop();this.stack.push(l/c);break;case 3088:if(this.stack.length<2){i=!0;break}s=this.stack.pop();let u=this.stack.pop();if(s===0&&u===3){let e=this.stack.splice(-17,17);this.stack.push(e[2]+e[0],e[3]+e[1],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14]),i=this.executeCommand(13,xo.flex,!0),this.flexing=!1,this.stack.push(e[15],e[16])}else s===1&&u===0&&(this.flexing=!0);break;case 3089:break;case 3105:this.stack=[];break;default:j(`Unknown type 1 charstring command of "`+r+`"`);break}if(i)break;continue}else r<=246?r-=139:r=r<=250?(r-247)*256+e[++c]+108:r<=254?-((r-251)*256)-e[++c]-108:(e[++c]&255)<<24|(e[++c]&255)<<16|(e[++c]&255)<<8|(e[++c]&255)<<0;this.stack.push(r)}return i}executeCommand(e,t,n){let r=this.stack.length;if(e>r)return!0;let i=r-e;for(let e=i;e<r;e++){let t=this.stack[e];Number.isInteger(t)?this.output.push(28,t>>8&255,t&255):(t=65536*t|0,this.output.push(255,t>>24&255,t>>16&255,t>>8&255,t&255))}return this.output.push(...t),n?this.stack.splice(i,e):this.stack.length=0,!1}};let Co=55665;function wo(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function To(e,t,n){if(n>=e.length)return new Uint8Array;let r=52845,i=22719,a=t|0,o,s;for(o=0;o<n;o++)a=(e[o]+a)*r+i&65535;let c=e.length-n,l=new Uint8Array(c);for(o=n,s=0;s<c;o++,s++){let t=e[o];l[s]=t^a>>8,a=(t+a)*r+i&65535}return l}function Eo(e,t,n){let r=t|0,i=e.length,a=i>>>1,o=new Uint8Array(a),s,c;for(s=0,c=0;s<i;s++){let t=e[s];if(!wo(t))continue;s++;let n;for(;s<i&&!wo(n=e[s]);)s++;if(s<i){let e=parseInt(String.fromCharCode(t,n),16);o[c++]=e^r>>8,r=(e+r)*52845+22719&65535}}return o.slice(n,c)}function Do(e){return e===47||e===91||e===93||e===123||e===125||e===40||e===41}var Oo=class{constructor(e,t,n){if(t){let t=e.getBytes();e=new Cn((wo(t[0])||dt(t[0]))&&wo(t[1])&&wo(t[2])&&wo(t[3])&&wo(t[4])&&wo(t[5])&&wo(t[6])&&wo(t[7])?Eo(t,Co,4):To(t,Co,4))}this.seacAnalysisEnabled=!!n,this.stream=e,this.nextChar()}readNumberArray(){this.getToken();let e=[];for(;;){let t=this.getToken();if(t===null||t===`]`||t===`}`)break;e.push(parseFloat(t||0))}return e}readNumber(){let e=this.getToken();return parseFloat(e||0)}readInt(){let e=this.getToken();return parseInt(e||0,10)|0}readBoolean(){return+(this.getToken()===`true`)}nextChar(){return this.currentChar=this.stream.getByte()}prevChar(){return this.stream.skip(-2),this.currentChar=this.stream.getByte()}getToken(){let e=!1,t=this.currentChar;for(;;){if(t===-1)return null;if(e)(t===10||t===13)&&(e=!1);else if(t===37)e=!0;else if(!dt(t))break;t=this.nextChar()}if(Do(t))return this.nextChar(),String.fromCharCode(t);let n=``;do n+=String.fromCharCode(t),t=this.nextChar();while(t>=0&&!dt(t)&&!Do(t));return n}readCharStrings(e,t){return t===-1?e:To(e,4330,t)}extractFontProgram(e){let t=this.stream,n=[],r=[],i=new Map([[`lenIV`,4]]),a={subrs:[],charstrings:[],properties:{privateData:i}},o,s,c,l,u=!1,d=!1;for(;(o=this.getToken())!==null;)if(o===`/`)switch(o=this.getToken(),o){case`CharStrings`:if(d)break;for(d=!0,this.getToken(),this.getToken(),this.getToken(),this.getToken();o=this.getToken(),!(o===null||o===`end`);){if(o!==`/`)continue;let e=this.getToken();s=this.readInt(),this.getToken(),c=s>0?t.getBytes(s):new Uint8Array,l=i.get(`lenIV`);let n=this.readCharStrings(c,l);this.nextChar(),o=this.getToken(),o===`noaccess`?this.getToken():o===`/`&&this.prevChar(),r.push({glyph:e,encoded:n})}break;case`Subrs`:if(u)break;for(u=!0,this.readInt(),this.getToken();this.getToken()===`dup`;){let e=this.readInt();s=this.readInt(),this.getToken(),c=s>0?t.getBytes(s):new Uint8Array,l=i.get(`lenIV`);let r=this.readCharStrings(c,l);this.nextChar(),o=this.getToken(),o===`noaccess`&&this.getToken(),n[e]=r}break;case`BlueValues`:case`OtherBlues`:case`FamilyBlues`:case`FamilyOtherBlues`:let e=this.readNumberArray();e.length>0&&e.length%2;break;case`StemSnapH`:case`StemSnapV`:i.set(o,this.readNumberArray());break;case`StdHW`:case`StdVW`:i.set(o,this.readNumberArray()[0]);break;case`BlueShift`:case`lenIV`:case`BlueFuzz`:case`BlueScale`:case`LanguageGroup`:i.set(o,this.readNumber());break;case`ExpansionFactor`:i.set(o,this.readNumber()||.06);break;case`ForceBold`:i.set(o,this.readBoolean());break}for(let{encoded:t,glyph:i}of r){let r=new So,o=r.convert(t,n,this.seacAnalysisEnabled),s=r.output;o&&(s=[14]);let c={glyphName:i,charstring:s,width:r.width,lsb:r.lsb,seac:r.seac};if(i===`.notdef`?a.charstrings.unshift(c):a.charstrings.push(c),e.builtInEncoding){let t=e.builtInEncoding.indexOf(i);t>-1&&e.widths[t]===void 0&&t>=e.firstChar&&t<=e.lastChar&&(e.widths[t]=r.width)}}return a}extractCidKeyedFontProgram(e){let t=this.stream,n=new Map([[`lenIV`,4]]),r={subrs:[],charstrings:[],properties:{privateData:n}},i=0,a=-1,o=1,s=0,c=-1,l=0,u=0,d=0,f=!1,p=!1,m=[];function h(e){m.push(e),m.length>4&&m.shift()}let g;for(;(g=this.getToken())!==null;){if(g===`StartData`){let e=m.at(-3),t=m.at(-1);if(m.at(-4)!==`(`||m.at(-2)!==`)`||e!==`Binary`&&e!==`Hex`||!/^\\d+$/.test(t)||(d=parseInt(t,10),d<=0))return null;f=e===`Hex`,p=!0;break}if(h(g),g===`/`)switch(g=this.getToken(),h(g),g){case`FontMatrix`:e.fontMatrix=this.readNumberArray();break;case`FontBBox`:let t=this.readNumberArray();e.ascent=Math.max(t[3],t[1]),e.descent=Math.min(t[1],t[3]),e.ascentScaled=!0;break;case`CIDCount`:i=this.readInt();break;case`CIDMapOffset`:a=this.readInt();break;case`FDBytes`:o=this.readInt();break;case`GDBytes`:s=this.readInt();break;case`SubrMapOffset`:c=this.readInt();break;case`SDBytes`:l=this.readInt();break;case`SubrCount`:u=this.readInt();break;case`BlueValues`:case`OtherBlues`:case`FamilyBlues`:case`FamilyOtherBlues`:this.readNumberArray();break;case`StemSnapH`:case`StemSnapV`:n.set(g,this.readNumberArray());break;case`StdHW`:case`StdVW`:n.set(g,this.readNumberArray()[0]);break;case`BlueShift`:case`lenIV`:case`BlueFuzz`:case`BlueScale`:case`LanguageGroup`:n.set(g,this.readNumber());break;case`ExpansionFactor`:n.set(g,this.readNumber()||.06);break;case`ForceBold`:n.set(g,this.readBoolean());break}}if(!p||i<=0||a<0||o<0||o>4||s<1||s>4)return null;let _=t.end-t.pos;if(d>_){if(!f)d=_;else if(d>2*_)return null}let v=t.getBytes(f?void 0:d);if(f){let e=new Uint8Array(d),t=-1,n=0;for(let r=0,i=v.length;r<i&&n<d;r++){let i=v[r];if(wo(i)){if(t<0){t=i;continue}e[n++]=parseInt(String.fromCharCode(t,i),16),t=-1}}if(n!==d)return null;v=e}let y=n.get(`lenIV`),b=o+s,x=[];function S(e,t){let n=0;for(let r=0;r<t;r++)n=n<<8|v[e+r];return n>>>0}if(a+(i+1)*b>v.length||u>0&&(c<0||l<1||l>4||c+(u+1)*l>v.length))return null;if(o>0){for(let e=0;e<i;e++)if(S(a+e*b,o)!==0)return null}if(u>0){let e=Array(u+1);for(let t=0;t<=u;t++)e[t]=S(c+t*l,l);for(let t=0;t<u;t++){let n=e[t],r=e[t+1];if(r>v.length||r<n){x[t]=new Uint8Array;continue}x[t]=this.readCharStrings(v.subarray(n,r),y)}}let C=[],w=S(a+o,s);for(let e=0;e<i;e++){let t=S(a+(e+1)*b+o,s),n=e===0?`.notdef`:`cid${e}`;if(t>w&&t<=v.length){let e=this.readCharStrings(v.subarray(w,t),y),r=new So,i=r.convert(e,x,this.seacAnalysisEnabled);C.push({glyphName:n,charstring:i?[14]:r.output,width:r.width,lsb:r.lsb,seac:r.seac})}else{let e=C[0];C.push({glyphName:n,charstring:e?.charstring.slice()||[139,14],width:e?.width||0,lsb:e?.lsb||0})}w=t}return r.subrs=x,r.charstrings=C,r}extractFontHeader(e){let t;for(;(t=this.getToken())!==null;)if(t===`/`)switch(t=this.getToken(),t){case`FontMatrix`:e.fontMatrix=this.readNumberArray();break;case`Encoding`:let n=this.getToken(),r;if(!/^\\d+$/.test(n))r=Gi(n);else{r=[];let e=parseInt(n,10)|0;this.getToken();for(let n=0;n<e;n++){for(t=this.getToken();t!==`dup`&&t!==`def`;)if(t=this.getToken(),t===null)return;if(t===`def`)break;let e=this.readInt();this.getToken();let n=this.getToken();r[e]=n,this.getToken()}}e.builtInEncoding=r;break;case`FontBBox`:let i=this.readNumberArray();e.ascent=Math.max(i[3],i[1]),e.descent=Math.min(i[1],i[3]),e.ascentScaled=!0;break}}};function ko(e,t,n){let r=e.length,i=t.length,a=r-i,o=n,s=!1;for(;o<a;){let n=0;for(;n<i&&e[o+n]===t[n];)n++;if(n>=i){for(o+=n;o<r&&dt(e[o]);)o++;s=!0;break}o++}return{found:s,length:o}}function Ao(e,t){let n=[101,101,120,101,99],r=e.pos,i,a,o;try{i=e.getBytes(t),a=i.length}catch{}if(a===t&&(o=ko(i,n,t-2*n.length),o.found&&o.length===t))return{stream:new Cn(i),length:t};j(`Invalid "Length1" property in Type1 font -- trying to recover.`),e.pos=r;let s;for(;o=ko(e.peekBytes(2048),n,0),o.length!==0;)if(e.pos+=o.length,o.found){s=e.pos-r;break}return e.pos=r,s?{stream:new Cn(e.getBytes(s)),length:s}:(j(`Unable to recover "Length1" property in Type1 font -- using as is.`),{stream:new Cn(e.getBytes(t)),length:t})}function jo(e,t){let n=e.getBytes();if(n.length===0)throw new F(`getEexecBlock - no font program found.`);return{stream:new Cn(n),length:n.length}}function Mo(e){let t=e.peekBytes(2048);if(t.length<2||t[0]!==37||t[1]!==33)return!1;let n=fe(t);return n.includes(`Resource-CIDFont`)||/\\/CIDFontType\\s+0\\b/.test(n)}var No=class{#e;constructor(e,t,n){let r;n.composite&&Mo(t)&&(r=this.#n(t,n)),r||=this.#t(t,n);for(let e in r.properties)n[e]=r.properties[e];let i=r.charstrings,a=this.getType2Charstrings(i),o=this.getType2Subrs(r.subrs);this.charstrings=i,this.data=this.wrap(e,a,this.charstrings,o,n),this.seacs=this.getSeacs(r.charstrings)}#t(e,t){let n=t.length1,r=t.length2,i=e.peekBytes(6),a=i[0]===128&&i[1]===1;a&&(e.skip(6),n=i[5]<<24|i[4]<<16|i[3]<<8|i[2]);let o=Ao(e,n);new Oo(o.stream,!1,!0).extractFontHeader(t),a&&(i=e.getBytes(6),r=i[5]<<24|i[4]<<16|i[3]<<8|i[2]);let s=jo(e,r),c=new Oo(s.stream,!0,!0).extractFontProgram(t);return this.#e=o.length+s.length,c}#n(e,t){let n=e.pos,r=e.end-n,i=new Oo(e,!1,!0).extractCidKeyedFontProgram(t);return i?(this.#e=r,i):(e.pos=n,j(`Type1Font: unable to parse CID-keyed Type 1 font.`),null)}get numGlyphs(){return this.charstrings.length+1}getCharset(){let e=[`.notdef`];for(let{glyphName:t}of this.charstrings)e.push(t);return e}getGlyphMapping(e){let t=this.charstrings;if(e.composite){let n=Object.create(null);for(let r=0,i=t.length;r<i;r++){let t=e.cMap.charCodeOf(r);n[t]=r+1}return n}let n=[`.notdef`],r,i;for(i=0;i<t.length;i++)n.push(t[i].glyphName);let a=e.builtInEncoding;if(a){r=Object.create(null);for(let e in a)i=n.indexOf(a[e]),i>=0&&(r[e]=i)}return oa(e,r,n)}hasGlyphId(e){return e<0||e>=this.numGlyphs?!1:e===0?!0:this.charstrings[e-1].charstring.length>0}getSeacs(e){let t=[];for(let n=0,r=e.length;n<r;n++){let r=e[n];r.seac&&(t[n+1]=r.seac)}return t}getType2Charstrings(e){let t=[];for(let n of e)t.push(n.charstring);return t}getType2Subrs(e){let t=0,n=e.length;t=n<1133?107:n<33769?1131:32768;let r=[],i;for(i=0;i<t;i++)r.push([11]);for(i=0;i<n;i++)r.push(e[i]);return r}wrap(e,t,n,r,i){let a=new Ca(this.#e);a.header=new wa(1,0,4,4),a.names=[e];let o=new ka;o.setByName(`version`,391),o.setByName(`Notice`,392),o.setByName(`FullName`,393),o.setByName(`FamilyName`,394),o.setByName(`Weight`,395),o.setByName(`Encoding`,null),o.setByName(`FontMatrix`,i.fontMatrix),o.setByName(`FontBBox`,i.bbox),o.setByName(`charset`,null),o.setByName(`CharStrings`,null),o.setByName(`Private`,null),a.topDict=o;let s=new Ta;s.add(`Version 0.11`),s.add(`See original notice`),s.add(e),s.add(e),s.add(`Medium`),a.strings=s,a.globalSubrIndex=new Ea;let c=t.length,l=[`.notdef`];for(let e=0;e<c;e++){let{glyphName:t}=n[e];_a.indexOf(t)===-1&&s.add(t),l.push(t)}a.charset=new Na(!1,0,l);let u=new Ea;u.add([139,14]);for(let e=0;e<c;e++)u.add(t[e]);a.charStrings=u;let d=new ja;d.setByName(`Subrs`,null);for(let e of[`BlueValues`,`OtherBlues`,`FamilyBlues`,`FamilyOtherBlues`,`StemSnapH`,`StemSnapV`,`BlueShift`,`BlueFuzz`,`BlueScale`,`LanguageGroup`,`ExpansionFactor`,`ForceBold`,`StdHW`,`StdVW`]){if(!i.privateData.has(e))continue;let t=i.privateData.get(e);if(Array.isArray(t))for(let e=t.length-1;e>0;e--)t[e]-=t[e-1];d.setByName(e,t)}a.topDict.privateDict=d;let f=new Ea;for(let e of r)f.add(e);return d.subrsIndex=f,new La(a).compile()}};let Po=[[57344,63743],[1048576,1114109]],Fo=1e3,Io=[`ascent`,`bbox`,`black`,`bold`,`cssFontInfo`,`data`,`defaultVMetrics`,`defaultWidth`,`descent`,`disableFontFace`,`fallbackName`,`fontExtraProperties`,`fontMatrix`,`isInvalidPDFjsFont`,`isType3Font`,`italic`,`loadedName`,`mimetype`,`missingFile`,`name`,`remeasure`,`systemFontInfo`,`vertical`],Lo=[`cMap`,`composite`,`defaultEncoding`,`differences`,`isMonospace`,`isSerifFont`,`isSymbolicFont`,`seacMap`,`subtype`,`toFontChar`,`toUnicode`,`type`,`vmetrics`,`widths`];function Ro(e){if(!e.fontMatrix||e.fontMatrix[0]===o[0])return;let t=.001/e.fontMatrix[0],n=e.widths;for(let e in n)n[e]*=t;e.defaultWidth*=t}function zo(e,t,n){if(e.isInternalFont||e.hasIncludedToUnicodeMap||e.hasEncoding||e.toUnicode instanceof no||!t||n.length===0||e.defaultEncoding===Hi)return;for(let e of n)if(!ns(e))return;let r=Hi,i=[],a=Ki();for(let e in r){let t=r[e];if(t===``)continue;let n=a[t];n!==void 0&&(i[e]=String.fromCharCode(n))}i.length>0&&e.toUnicode.amend(i)}function Bo(e,t){if(e.isInternalFont||e.hasIncludedToUnicodeMap||t===e.defaultEncoding||e.toUnicode instanceof no)return;let n=[],r=Ki();for(let i in t){if(e.hasEncoding&&(e.baseEncodingName||e.differences[i]!==void 0))continue;let a=t[i],o=Xi(a,r);o!==-1&&(n[i]=String.fromCharCode(o))}n.length>0&&e.toUnicode.amend(n)}function Vo(e){if(!e.fallbackToUnicode||e.toUnicode instanceof no)return;let t=[];for(let n in e.fallbackToUnicode)e.toUnicode.has(n)||(t[n]=e.fallbackToUnicode[n]);t.length>0&&e.toUnicode.amend(t)}var Ho=class{constructor(e,t,n,r,i,a,o,s,c){this.originalCharCode=e,this.fontChar=t,this.unicode=n,this.accent=r,this.width=i,this.vmetric=a,this.operatorListId=o,this.isSpace=s,this.isInFont=c}get category(){return P(this,`category`,ta(this.unicode),!0)}};function Uo(e,t){return(e<<8)+t}function Wo(e,t,n){e[t+1]=n,e[t]=n>>>8}function Go(e,t){let n=(e<<8)+t;return n&32768?n-65536:n}function Ko(e,t,n){e[t+3]=n&255,e[t+2]=n>>>8,e[t+1]=n>>>16,e[t]=n>>>24}function qo(e){let t=fe(e.peekBytes(4));return t===`\\0\\0\\0`||t===`true`}function Jo(e){return fe(e.peekBytes(4))===`ttcf`}function Yo(e){return fe(e.peekBytes(4))===`OTTO`}function Xo(e){let t=e.peekBytes(2);return t[0]===37&&t[1]===33||t[0]===128&&t[1]===1}function Zo(e){let t=e.peekBytes(4);return t[0]>=1&&t[3]>=1&&t[3]<=4}function Qo(e,{type:t,subtype:n,composite:r}){let i,a;return qo(e)||Jo(e)?i=r?`CIDFontType2`:`TrueType`:Yo(e)?i=r?`CIDFontType2`:`OpenType`:Xo(e)?i=r?`CIDFontType0`:t===`MMType1`?`MMType1`:`Type1`:Zo(e)?r?(i=`CIDFontType0`,a=`CIDFontType0C`):(i=t===`MMType1`?`MMType1`:`Type1`,a=`Type1C`):(j(`getFontFileType: Unable to detect correct font file Type/Subtype.`),i=t,a=n),[i,a]}function $o(e,t){for(let n in t)e[+n]=t[n]}function es(e,t,n){let r=[],i;for(let n=0,a=e.length;n<a;n++)i=Xi(e[n],t),i!==-1&&(r[n]=i);for(let e in n)i=Xi(n[e],t),i!==-1&&(r[+e]=i);return r}function ts(e){return e.platform===1&&e.encoding===0&&e.language===0}function ns(e){return e.platform===3&&e.encoding===1&&e.language===1033}function rs(e,t,n=!1){switch(t.length){case 1:return t.charCodeAt(0);case 2:return t.charCodeAt(0)<<8|t.charCodeAt(1)}let r=`Unsupported CID string (charCode ${e}): "${t}".`;if(n)throw new F(r);return j(r),t}function is(e,t,n,r){let i=Object.create(null),a=new Map,o=[],s=new Set,c=0,l=Po[c][0],u=Po[c][1],d=e=>Po[0][0]<=e&&e<=Po[0][1]||Po[1][0]<=e&&e<=Po[1][1],f=null;for(let p in e){let m=e[p];if(!t(m))continue;if(l>u){if(c++,c>=Po.length){j(`Ran out of space in font private use area.`);break}l=Po[c][0],u=Po[c][1]}let h=l++;m===0&&(m=n);let g=r.get(p);if(typeof g==`string`)if(g.length===1)g=g.codePointAt(0);else{if(!f){f=new Map;for(let e=64256;e<=64335;e++){let t=String.fromCharCode(e).normalize(`NFKD`);t.length>1&&f.set(t,e)}}g=f.get(g)||g.codePointAt(0)}g&&!d(g)&&!s.has(m)&&(a.set(g,m),s.add(m)),i[h]=m,o[p]=h}return{toFontChar:o,charCodeToGlyphId:i,toUnicodeExtraMap:a,nextAvailableFontCharCode:l}}function as(e,t,n){let r=[];for(let t in e)e[t]>=n||r.push({fontCharCode:t|0,glyphId:e[t]});if(t)for(let[e,i]of t)i>=n||r.push({fontCharCode:e,glyphId:i});r.length===0&&r.push({fontCharCode:0,glyphId:0}),r.sort((e,t)=>e.fontCharCode-t.fontCharCode);let i=[],a=r.length;for(let e=0;e<a;){let t=r[e].fontCharCode,n=[r[e].glyphId];++e;let o=t;for(;e<a&&o+1===r[e].fontCharCode&&(n.push(r[e].glyphId),++o,++e,o!==65535););i.push([t,o,n])}return i}function os(e,t,n){let r=as(e,t,n),i=r.at(-1)[1]>65535?2:1,a=new ma({exactLength:12});a.skip(2),a.setInt16(i),a.setArray([0,3]),a.setArray([0,1]),a.setInt32(4+i*8);let o,s,c,l;for(o=r.length-1;o>=0&&!(r[o][0]<=65535);--o);let u=o+1;r[o][0]<65535&&r[o][1]===65535&&(r[o][1]=65534);let d=+(r[o][1]<65535),f=u+d,p=bo.getSearchParams(f,2),m=u*2+d*2,h=new ma({exactLength:m}),g=new ma({exactLength:m}),_=new ma({exactLength:m}),v=new ma({exactLength:m}),y=new ma({}),b=0;for(o=0,s=u;o<s;o++){let[e,t,n]=r[o];h.setInt16(e),g.setInt16(t);let i=!0;for(c=1,l=n.length;c<l;++c)if(n[c]!==n[c-1]+1){i=!1;break}if(i){let t=n[0];_.setInt16(t-e&65535),v.skip(2)}else{let r=(f-o)*2+b*2;for(b+=t-e+1,_.skip(2),v.setInt16(r),c=0,l=n.length;c<l;++c)y.setInt16(n[c])}}d>0&&(g.setArray([255,255]),h.setArray([255,255]),_.setArray([0,1]),v.skip(2));let x=new ma({exactLength:12+h.length+g.length+_.length+v.length+y.length});x.skip(2),x.setInt16(2*f),x.setInt16(p.range),x.setInt16(p.entry),x.setInt16(p.rangeShift),x.setArray(g.data),x.skip(2),x.setArray(h.data),x.setArray(_.data),x.setArray(v.data),x.setArray(y.data);let S=null,C=null,w=null;if(i>1){S=new ma({exactLength:8}),S.setArray([0,3]),S.setArray([0,10]),S.setInt32(4+i*8+4+x.length),C=new ma({});for(let e of r){let t=e[0],n=e[2],r=n[0];for(c=1,l=n.length;c<l;++c)if(n[c]!==n[c-1]+1){let i=e[0]+c-1;C.setInt32(t),C.setInt32(i),C.setInt32(r),t=i+1,r=n[c]}C.setInt32(t),C.setInt32(e[1]),C.setInt32(r)}w=new ma({exactLength:16}),w.setArray([0,12]),w.skip(2),w.setInt32(C.length+16),w.skip(4),w.setInt32(C.length/12)}let T=new ma({exactLength:4+a.length+(S?.length??0)+x.length+(w?.length??0)+(C?.length??0)});return T.setArray(a.data),T.setArray(S?.data??[]),T.setArray([0,4]),T.setInt16(x.length+4),T.setArray(x.data),T.setArray(w?.data??[]),T.setArray(C?.data??[]),T.data}function ss(e,t){t.pos=(t.start||0)+e.offset;let n=t.getUint16(),r=[78,86,96,96,96,100][n];if(r===void 0||e.length<r)return!1;t.skip(60);let i=t.getUint16();return n<4&&i&768||t.getUint16()>t.getUint16()||(t.skip(6),t.getUint16()===0)?!1:(e.data[8]=e.data[9]=0,!0)}function cs(e,t,n){n||={unitsPerEm:0,yMax:0,yMin:0,ascent:0,descent:0};let r=0,i=0,a=0,o=0,s=null,c=0,l=-1;if(t){for(let e in t)if(e|=0,(s>e||!s)&&(s=e),c<e&&(c=e),l=Qi(e,l),l<32)r|=1<<l;else if(l<64)i|=1<<l-32;else if(l<96)a|=1<<l-64;else if(l<123)o|=1<<l-96;else throw new F(`Unicode ranges Bits > 123 are reserved for internal usage`);c>65535&&(c=65535)}else s=0,c=255;let u=e.bbox||[0,0,0,0],d=n.unitsPerEm||(e.fontMatrix?1/Math.max(...e.fontMatrix.slice(0,4).map(Math.abs)):1e3),f=e.ascentScaled?1:d/Fo,p=n.ascent||Math.round(f*(e.ascent||u[3])),m=n.descent||Math.round(f*(e.descent||u[1]));m>0&&e.descent>0&&u[1]<0&&(m=-m);let h=n.yMax||p,g=-n.yMin||-m,_=new ma({exactLength:96});return _.setArray([0,3]),_.setArray([2,36]),_.setArray([1,244]),_.setArray([0,5]),_.skip(2),_.setArray([2,138]),_.setArray([2,187]),_.skip(2),_.setArray([0,140]),_.setArray([2,138]),_.setArray([2,187]),_.skip(2),_.setArray([1,223]),_.setArray([0,49]),_.setArray([1,2]),_.skip(2),_.setArray([0,0,6,e.fixedPitch?9:0,0,0,0,0,0,0]),_.setInt32(r),_.setInt32(i),_.setInt32(a),_.setInt32(o),_.setArray([42,50,49,42]),_.setInt16(+!!e.italicAngle),_.setInt16(s||e.firstChar),_.setInt16(c||e.lastChar),_.setInt16(p),_.setInt16(m),_.setArray([0,100]),_.setInt16(h),_.setInt16(g),_.skip(8),_.setInt16(e.xHeight),_.setInt16(e.capHeight),_.skip(2),_.setInt16(s||e.firstChar),_.setArray([0,3]),_.data}function ls(e){let t=new ma({exactLength:32});return t.setArray([0,3,0,0]),t.setInt32(Math.floor(e.italicAngle*2**16)),t.skip(4),t.setInt32(+!!e.fixedPitch),t.skip(16),t.data}function us(e){return e.replaceAll(/[^\\x21-\\x7E]|[[\\](){}<>/%]/g,``).slice(0,63)}function ds(e,t){t||=[[],[]];let n=[t[0][0]||`Original licence`,t[0][1]||e,t[0][2]||`Unknown`,t[0][3]||`uniqueID`,t[0][4]||e,t[0][5]||`Version 0.11`,t[0][6]||us(e),t[0][7]||`Unknown`,t[0][8]||`Unknown`,t[0][9]||`Unknown`],r=n.map(e=>pe(e)),i=Array(n.length),a,o,s,c,l;for(a=0,o=n.length;a<o;a++){l=t[1][a]||n[a];let e=new ma({exactLength:l.length*2});for(s=0,c=l.length;s<c;s++)e.setInt16(l.charCodeAt(s));i[a]=e.data}let u=[r,i],d=[[0,1],[0,3]],f=[[0,0],[0,1]],p=[[0,0],[4,9]],m=[],h=0;for(a=0,o=d.length;a<o;a++){let e=u[a];for(s=0,c=e.length;s<c;s++){l=e[s];let t=new ma({exactLength:6+d[a].length+f[a].length+p[a].length});t.setArray(d[a]),t.setArray(f[a]),t.setArray(p[a]),t.setInt16(s),t.setInt16(l.length),t.setInt16(h),m.push(t.data),h+=l.length}}let g=r.length*d.length,_=new ma({exactLength:6+Math.sumPrecise(m.map(e=>e.length))+Math.sumPrecise(r.map(e=>e.length))+Math.sumPrecise(i.map(e=>e.length))});_.skip(2),_.setInt16(g),_.setInt16(g*12+6);for(let e of m)_.setArray(e);for(let e of r)_.setArray(e);for(let e of i)_.setArray(e);return _.data}var fs=class{#e=new Map;#t=new Map;charProcOperatorList;constructor(e,t,n,r){this.name=e,this.psName=null,this.mimetype=null,this.disableFontFace=r.disableFontFace,this.fontExtraProperties=r.fontExtraProperties,this.loadedName=n.loadedName,this.isType3Font=n.isType3Font,this.missingFile=!1,this.cssFontInfo=n.cssFontInfo;let i=!!(n.flags&ra.Serif);if(!i&&!n.isSimulatedFlags){let t=Ra(),n=Ba(),r=Va();for(let a of e.split(`+`)){let e=sa(a);if(e=t[e]||n[e]||e,e=e.split(`-`,1)[0],r[e]){i=!0;break}}}this.isSerifFont=i,this.isSymbolicFont=!!(n.flags&ra.Symbolic),this.isMonospace=!!(n.flags&ra.FixedPitch);let{type:a,subtype:o}=n;this.type=a,this.subtype=o,this.systemFontInfo=n.systemFontInfo;let s=e.match(/^InvalidPDFjsFont_(.*)_\\d+$/);if(this.isInvalidPDFjsFont=!!s,this.isInvalidPDFjsFont?this.fallbackName=s[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=n.differences,this.widths=n.widths,this.defaultWidth=n.defaultWidth,this.composite=n.composite,this.cMap=n.cMap,this.capHeight=n.capHeight/Fo,this.ascent=n.ascent/Fo,this.descent=n.descent/Fo,this.lineHeight=this.ascent-this.descent,this.fontMatrix=n.fontMatrix,this.bbox=n.bbox,this.defaultEncoding=n.defaultEncoding,this.toUnicode=n.toUnicode,this.toFontChar=[],n.type===`Type3`){for(let e=0;e<256;e++)this.toFontChar[e]=this.differences[e]||n.defaultEncoding[e];return}if(this.cidEncoding=n.cidEncoding||``,this.vertical=!!n.vertical,this.vertical&&(this.vmetrics=n.vmetrics,this.defaultVMetrics=n.defaultVMetrics),!t||t.isEmpty){t&&j(`Font file is empty in "`+e+`" (`+this.loadedName+`)`),this.fallbackToSystemFont(n);return}[a,o]=Qo(t,n),(a!==this.type||o!==this.subtype)&&A(`Inconsistent font file Type/SubType, expected: ${this.type}/${this.subtype} but found: ${a}/${o}.`);let c;try{switch(a){case`MMType1`:A(`MMType1 font (`+e+`), falling back to Type1.`);case`Type1`:case`CIDFontType0`:this.mimetype=`font/opentype`;let r=o===`Type1C`||o===`CIDFontType0C`?new ro(t,n):new No(e,t,n);Ro(n),c=this.convert(e,r,n);break;case`OpenType`:case`TrueType`:case`CIDFontType2`:this.mimetype=`font/opentype`,c=this.checkAndRepair(e,t,n),Ro(n),this.isOpenType&&(a=`OpenType`);break;default:throw new F(`Font ${a} is not supported`)}}catch(e){j(e),this.fallbackToSystemFont(n);return}Vo(n),this.data=c,this.type=a,this.subtype=o,this.fontMatrix=n.fontMatrix,this.widths=n.widths,this.defaultWidth=n.defaultWidth,this.toUnicode=n.toUnicode,this.seacMap=n.seacMap}get renderer(){let e=_o.create(this,!0);return P(this,`renderer`,e)}#n(e){let t=Object.create(null);for(let n of e){let e=this[n];e!==void 0&&(t[n]=e)}return t}exportData(){return{buffer:Fi(this.#n(Io)),charProcOperatorList:this.charProcOperatorList,extra:this.fontExtraProperties?this.#n(Lo):void 0}}fallbackToSystemFont(e){this.missingFile=!0;let{name:t,type:n}=this,r=sa(t),i=Ra(),a=Ba(),o=!!i[r],s=!!(a[r]&&i[a[r]]);r=i[r]||a[r]||r;let c=yo()[r];c&&(isNaN(this.ascent)&&(this.ascent=c.ascent/Fo),isNaN(this.descent)&&(this.descent=c.descent/Fo),isNaN(this.capHeight)&&(this.capHeight=c.capHeight/Fo)),this.bold=/bold/i.test(r),this.italic=/oblique|italic/i.test(r),this.black=/Black/.test(t);let l=/Narrow/.test(t);if(this.remeasure=(!o||l)&&Object.keys(this.widths).length>0,(o||s)&&n===`CIDFontType2`&&this.cidEncoding.startsWith(`Identity-`)){let n=e.cidToGidMap,r=[];if($o(r,Ua()),/Arial-?Black/i.test(t)?$o(r,Wa()):/Calibri/i.test(t)&&$o(r,Ga()),n){for(let e in r){let t=r[e];n[t]!==void 0&&(r[+e]=n[t])}n.length!==this.toUnicode.length&&e.hasIncludedToUnicodeMap&&this.toUnicode instanceof no&&this.toUnicode.forEach(function(e,t){n[r[e]]===void 0&&(r[+e]=t)})}this.toUnicode instanceof no||this.toUnicode.forEach(function(e,t){r[+e]=t}),this.toFontChar=r,this.toUnicode=new to(r)}else if(/Symbol/i.test(r))this.toFontChar=es(Ui,Ki(),this.differences);else if(/Dingbats/i.test(r))this.toFontChar=es(Wi,qi(),this.differences);else if(o||s){let e=es(this.defaultEncoding,Ki(),this.differences);n===`CIDFontType2`&&!this.cidEncoding.startsWith(`Identity-`)&&!(this.toUnicode instanceof no)&&this.toUnicode.forEach(function(t,n){e[+t]=n}),this.toFontChar=e}else{let e=Ki(),n=[];this.toUnicode.forEach((t,r)=>{if(!this.composite){let n=Xi(this.differences[t]||this.defaultEncoding[t],e);n!==-1&&(r=n)}n[+t]=r}),this.composite&&this.toUnicode instanceof no&&/Tahoma|Verdana/i.test(t)&&$o(n,Ua()),this.toFontChar=n}Vo(e),this.loadedName=r.split(`-`,1)[0]}checkAndRepair(e,t,n){let r=[`OS/2`,`cmap`,`head`,`hhea`,`hmtx`,`maxp`,`name`,`post`,`loca`,`glyf`,`fpgm`,`prep`,`cvt `,`CFF `];function i(e,t){let n=Object.create(null);n[`OS/2`]=null,n.cmap=null,n.head=null,n.hhea=null,n.hmtx=null,n.maxp=null,n.name=null,n.post=null;for(let i=0;i<t;i++){let t=a(e);r.includes(t.tag)&&t.length!==0&&(n[t.tag]=t)}return n}function a(e){let t=e.getString(4),n=e.getInt32()>>>0,r=e.getInt32()>>>0,i=e.getInt32()>>>0,a=e.pos;e.pos=e.start||0,e.skip(r);let o=e.getBytes(i);return e.pos=a,t===`head`&&(o[8]=o[9]=o[10]=o[11]=0,o[17]|=32),{tag:t,checksum:n,length:i,offset:r,data:o,view:t===`CFF `?null:new DataView(o.buffer,o.byteOffset,o.byteLength)}}function o(e){return{version:e.getString(4),numTables:e.getUint16(),searchRange:e.getUint16(),entrySelector:e.getUint16(),rangeShift:e.getUint16()}}function s(e){let t=e.getString(4);N(t===`ttcf`,`Must be a TrueType Collection font.`);let n=e.getUint16(),r=e.getUint16(),i=e.getInt32()>>>0,a=[];for(let t=0;t<i;t++)a.push(e.getInt32()>>>0);let o={ttcTag:t,majorVersion:n,minorVersion:r,numFonts:i,offsetTable:a};switch(n){case 1:return o;case 2:return o.dsigTag=e.getInt32()>>>0,o.dsigLength=e.getInt32()>>>0,o.dsigOffset=e.getInt32()>>>0,o}throw new F(`Invalid TrueType Collection majorVersion: ${n}.`)}function c(e,t){let{numFonts:n,offsetTable:r}=s(e),a=t.split(`+`),c;for(let s=0;s<n;s++){e.pos=(e.start||0)+r[s];let n=o(e),l=i(e,n.numTables);if(!l.name)throw new F(`TrueType Collection font must contain a "name" table.`);let[u]=h(l.name);for(let e=0,r=u.length;e<r;e++)for(let r=0,i=u[e].length;r<i;r++){let i=u[e][r]?.replaceAll(/\\s/g,``);if(i){if(i===t)return{header:n,tables:l};if(!(a.length<2))for(let e of a)i===e&&(c={name:e,header:n,tables:l})}}}if(c)return j(`TrueType Collection does not contain "${t}" font, falling back to "${c.name}" font instead.`),{header:c.header,tables:c.tables};throw new F(`TrueType Collection does not contain "${t}" font.`)}function l(e,t,n,r){if(!e)return j(`No cmap table available.`),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};let i,a=(t.start||0)+e.offset;t.pos=a,t.skip(2);let o=t.getUint16(),s,c=!1;for(let e=0;e<o;e++){let i=t.getUint16(),a=t.getUint16(),l=t.getInt32()>>>0,u=!1;if(!(s?.platformId===i&&s?.encodingId===a)){if(i===0&&(a===0||a===1||a===3))u=!0;else if(i===1&&a===0)u=!0;else if(i===3&&a===1&&(r||!s))u=!0,n||(c=!0);else if(n&&i===3&&a===0){u=!0;let n=!0;if(e<o-1){let e=t.peekBytes(2);Uo(e[0],e[1])<i&&(n=!1)}n&&(c=!0)}if(u&&(s={platformId:i,encodingId:a,offset:l}),c)break}}if(s&&(t.pos=a+s.offset),!s||t.peekByte()===-1)return j(`Could not find a preferred cmap table.`),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};let l=t.getUint16(),u=!1,d=[],f,p;if(l===0){for(t.skip(4),f=0;f<256;f++){let e=t.getByte();e&&d.push({charCode:f,glyphId:e})}u=!0}else if(l===2){t.skip(4);let e=[],n=0;for(let r=0;r<256;r++){let r=t.getUint16()>>3;e.push(r),n=Math.max(r,n)}let r=[];for(let e=0;e<=n;e++)r.push({firstCode:t.getUint16(),entryCount:t.getUint16(),idDelta:Go(t.getByte(),t.getByte()),idRangePos:t.pos+t.getUint16()});for(let n=0;n<256;n++)if(e[n]===0)t.pos=r[0].idRangePos+2*n,p=t.getUint16(),d.push({charCode:n,glyphId:p});else{let i=r[e[n]];for(f=0;f<i.entryCount;f++){let e=(n<<8)+f+i.firstCode;t.pos=i.idRangePos+2*f,p=t.getUint16(),p!==0&&(p=(p+i.idDelta)%65536),d.push({charCode:e,glyphId:p})}}}else if(l===4){t.skip(4);let e=t.getUint16()>>1;t.skip(6);let n=[],r;for(r=0;r<e;r++)n.push({end:t.getUint16()});for(t.skip(2),r=0;r<e;r++)n[r].start=t.getUint16();for(r=0;r<e;r++)n[r].delta=t.getUint16();let o=0,s;for(r=0;r<e;r++){i=n[r];let a=t.getUint16();if(!a){i.offsetIndex=-1;continue}s=(a>>1)-(e-r),i.offsetIndex=s,o=Math.max(o,s+i.end-i.start+1)}let c=[];for(f=0;f<o;f++)c.push(t.getUint16());for(r=0;r<e;r++){i=n[r],a=i.start;let e=i.end,t=i.delta;for(s=i.offsetIndex,f=a;f<=e;f++)f!==65535&&(p=s<0?f:c[s+f-a],p=p+t&65535,d.push({charCode:f,glyphId:p}))}}else if(l===6){t.skip(4);let e=t.getUint16(),n=t.getUint16();for(f=0;f<n;f++){p=t.getUint16();let n=e+f;d.push({charCode:n,glyphId:p})}}else if(l===12){t.skip(10);let e=t.getInt32()>>>0;for(f=0;f<e;f++){let e=t.getInt32()>>>0,n=t.getInt32()>>>0,r=t.getInt32()>>>0;for(let t=e;t<=n;t++)d.push({charCode:t,glyphId:r++})}}else return j(`cmap table has unsupported format: `+l),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};d.sort((e,t)=>e.charCode-t.charCode);let m=[],h=new Set;for(let e of d){let{charCode:t}=e;h.has(t)||(h.add(t),m.push(e))}return{platformId:s.platformId,encodingId:s.encodingId,mappings:m,hasShortCmap:u}}function u(e,t,n,r,i,a){if(!t){n&&(n.data=null);return}e.pos=(e.start||0)+t.offset,e.pos+=4,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=2;let o=e.getUint16();e.pos+=8,e.pos+=2;let s=e.getUint16();o!==0&&(Uo(r.data[44],r.data[45])&2||(t.data[22]=0,t.data[23]=0)),s>i&&(A(`The numOfMetrics (${s}) should not be greater than the numGlyphs (${i}).`),s=i,t.data[34]=(s&65280)>>8,t.data[35]=s&255);let c=i-s-(n.length-s*4>>1);if(c>0){let e=new Uint8Array(n.length+c*2);e.set(n.data),a&&(e[n.length]=n.data[2],e[n.length+1]=n.data[3]),n.data=e}}function d(e,t,n,r,i,a){let o={length:0,sizeOfInstructions:0};if(t<0||t>=e.length||n>e.length||n-t<=12)return o;let s=e.subarray(t,n),c=Go(s[2],s[3]),l=Go(s[4],s[5]),u=Go(s[6],s[7]),d=Go(s[8],s[9]);c>u&&(Wo(s,2,u),Wo(s,6,c)),l>d&&(Wo(s,4,d),Wo(s,8,l));let f=Go(s[0],s[1]);if(f<0)return f<-1?o:(r.set(s,i),o.length=s.length,o);let p,m=10,h=0;for(p=0;p<f;p++)h=(s[m]<<8|s[m+1])+1,m+=2;let g=m,_=s[m]<<8|s[m+1];o.sizeOfInstructions=_,m+=2+_;let v=m,y=0;for(p=0;p<h;p++){let e=s[m++];e&192&&(s[m-1]=e&63);let t=2;e&2?t=1:e&16&&(t=0);let n=2;e&4?n=1:e&32&&(n=0);let r=t+n;if(y+=r,e&8){let e=s[m++];e===0&&(s[m-1]^=8),p+=e,y+=e*r}}if(y===0)return o;let b=m+y;return b>s.length?o:!a&&_>0?(r.set(s.subarray(0,g),i),r.set([0,0],i+g),r.set(s.subarray(v,b),i+g+2),b-=_,s.length-b>3&&(b=b+3&-4),o.length=b,o):s.length-b>3?(b=b+3&-4,r.set(s.subarray(0,b),i),o.length=b,o):(r.set(s,i),o.length=s.length,o)}function f(e,t,n){let{data:r,view:i}=e,a=i.getInt32(0);a>>16!=1&&(A(`Attempting to fix invalid version in head table: `+a),i.setInt32(0,65536));let o=Go(r[50],r[51]);if(o<0||o>1){A(`Attempting to fix invalid indexToLocFormat in head table: `+o);let e=t+1;if(n===e<<1)r[50]=0,r[51]=0;else if(n===e<<2)r[50]=0,r[51]=1;else throw new F(`Could not fix indexToLocFormat: `+o)}}function p(e,t,n,r,i,a,o){let s,c,l;r?(s=4,c=function(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]},l=function(e,t,n){e[t]=n>>>24&255,e[t+1]=n>>16&255,e[t+2]=n>>8&255,e[t+3]=n&255}):(s=2,c=function(e,t){return e[t]<<9|e[t+1]<<1},l=function(e,t,n){e[t]=n>>9&255,e[t+1]=n>>1&255});let u=a?n+1:n,f=s*(1+u),p=new Uint8Array(f);p.set(e.data.subarray(0,f)),e.data=p;let m=t.data,h=m.length,g=new Uint8Array(h),_,v,y=[];for(_=0,v=0;_<n+1;_++,v+=s){let e=c(p,v);e>h&&(e=h),y.push({index:_,offset:e,endOffset:0})}for(y.sort((e,t)=>e.offset-t.offset),_=0;_<n;_++)y[_].endOffset=y[_+1].offset;for(y.sort((e,t)=>e.index-t.index),_=0;_<n;_++){let{offset:e,endOffset:t}=y[_];if(e!==0||t!==0)break;let n=y[_+1].offset;if(n!==0){y[_].endOffset=n;break}}let b=y.at(-2);b.offset!==0&&b.endOffset===0&&(b.endOffset=h);let x=eo(m,y,n),S=Object.create(null),C=0;for(l(p,0,C),_=0,v=s;_<n;_++,v+=s){let e=x.has(_)?{length:0,sizeOfInstructions:0}:d(m,y[_].offset,y[_].endOffset,g,C,i),t=e.length;t===0&&(S[_]=!0),e.sizeOfInstructions>o&&(o=e.sizeOfInstructions),C+=t,l(p,v,C)}if(C===0){let e=new Uint8Array([0,1,0,0,0,0,0,0,0,0,0,0,0,0,49,0]);for(_=0,v=s;_<u;_++,v+=s)l(p,v,e.length);t.data=e}else if(a){let n=c(p,s);g.length>n+C?t.data=g.subarray(0,n+C):(t.data=new Uint8Array(n+C),t.data.set(g.subarray(0,C))),t.data.set(g.subarray(0,n),C),l(e.data,p.length-s,C+n)}else t.data=g.subarray(0,C);return{missingGlyphs:S,maxSizeOfInstructions:o}}function m(e,n,r){let i=(t.start||0)+e.offset;t.pos=i;let a=i+e.length,o=t.getInt32();t.skip(28);let s,c=!0,l;switch(o){case 65536:s=ia;break;case 131072:let e=t.getUint16();if(e!==r){c=!1;break}let i=[];for(l=0;l<e;++l){let e=t.getUint16();if(e>=32768){c=!1;break}i.push(e)}if(!c)break;let u=[];for(;t.pos<a;){let e=t.getByte(),n=t.getString(e);u.push(n)}for(s=[],l=0;l<e;++l){let e=i[l];if(e<258){s.push(ia[e]);continue}s.push(u[e-258])}break;case 196608:break;default:j(`Unknown/unsupported post table version `+o),c=!1,n.defaultEncoding&&(s=n.defaultEncoding);break}return n.glyphNames=s,c}function h(e){let n=(t.start||0)+e.offset;t.pos=n;let r=[[],[]],i=[],a=e.length,o=n+a;if(t.getUint16()!==0||a<6)return[r,i];let s=t.getUint16(),c=t.getUint16(),l,u;for(l=0;l<s&&t.pos+12<=o;l++){let e={platform:t.getUint16(),encoding:t.getUint16(),language:t.getUint16(),name:t.getUint16(),length:t.getUint16(),offset:t.getUint16()};(ts(e)||ns(e))&&i.push(e)}for(l=0,u=i.length;l<u;l++){let e=i[l];if(e.length<=0)continue;let a=n+c+e.offset;if(a+e.length>o)continue;t.pos=a;let s=e.name;if(e.encoding){let n=``;for(let r=0,i=e.length;r<i;r+=2)n+=String.fromCharCode(t.getUint16());r[1][s]=n}else r[0][s]=t.getString(e.length)}return[r,i]}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 _(e,t){let n=e.data,r=0,i,a,o,s,c,l=0,u=0,d=[],f=[],p=[],m=t.tooComplexToFollowFunctions,h=!1,_=0,v=0;for(let e=n.length;r<e;){let e=n[r++];if(e===64)if(a=n[r++],h||v)r+=a;else for(i=0;i<a;i++)d.push(n[r++]);else if(e===65)if(a=n[r++],h||v)r+=a*2;else for(i=0;i<a;i++)o=n[r++],d.push(Go(o,n[r++]));else if((e&248)==176)if(a=e-176+1,h||v)r+=a;else for(i=0;i<a;i++)d.push(n[r++]);else if((e&248)==184)if(a=e-184+1,h||v)r+=a*2;else for(i=0;i<a;i++)o=n[r++],d.push(Go(o,n[r++]));else if(e===43&&!m){if(!h&&!v){if(s=d.at(-1),isNaN(s))A(`TT: CALL empty stack (or invalid entry).`);else if(t.functionsUsed[s]=!0,s in t.functionsStackDeltas){let e=d.length+t.functionsStackDeltas[s];if(e<0){j(`TT: CALL invalid functions stack delta.`),t.hintsValid=!1;return}d.length=e}else if(s in t.functionsDefined&&!p.includes(s)){if(f.push({data:n,i:r,stackTop:d.length-1}),p.push(s),c=t.functionsDefined[s],!c){j(`TT: CALL non-existent function`),t.hintsValid=!1;return}n=c.data,r=c.i}}}else if(e===44&&!m)(h||v)&&(j(`TT: nested FDEFs not allowed`),m=!0),h=!0,u=r,s=d.pop(),t.functionsDefined[s]={data:n,i:r};else if(e===45)if(h)h=!1,l=r;else{if(c=f.pop(),!c){j(`TT: ENDF bad stack`),t.hintsValid=!1;return}s=p.pop(),n=c.data,r=c.i,t.functionsStackDeltas[s]=d.length-c.stackTop}else if(e===137)(h||v)&&(j(`TT: nested IDEFs not allowed`),m=!0),h=!0,u=r;else if(e===88)++_;else if(e===27)v=_;else if(e===89)v===_&&(v=0),--_;else if(e===28&&!h&&!v){let e=d.at(-1);e>0&&(r+=e-1)}if(!h&&!v){let t=0;for(e<=142?t=g[e]:e>=192&&e<=223?t=-1:e>=224&&(t=-2),e>=113&&e<=117&&(a=d.pop(),isNaN(a)||(t=-a*2));t<0&&d.length>0;)d.pop(),t++;for(;t>0;)d.push(NaN),t--}}t.tooComplexToFollowFunctions=m;let b=[n];r>n.length&&b.push(new Uint8Array(r-n.length)),u>l&&(j(`TT: complementing a missing function tail`),b.push(new Uint8Array([34,45]))),y(e,b)}function v(e,t){if(!e.tooComplexToFollowFunctions){if(e.functionsDefined.length>t){j(`TT: more functions defined than expected`),e.hintsValid=!1;return}for(let n=0,r=e.functionsUsed.length;n<r;n++){if(n>t){j(`TT: invalid function id: `+n),e.hintsValid=!1;return}if(e.functionsUsed[n]&&!e.functionsDefined[n]){j(`TT: undefined function: `+n),e.hintsValid=!1;return}}}}function y(e,t){if(t.length>1){let n=0,r,i;for(r=0,i=t.length;r<i;r++)n+=t[r].length;n=n+3&-4;let a=new Uint8Array(n),o=0;for(r=0,i=t.length;r<i;r++)a.set(t[r],o),o+=t[r].length;e.data=a,e.length=n}}function b(e,t,n,r){let i={functionsDefined:[],functionsUsed:[],functionsStackDeltas:[],tooComplexToFollowFunctions:!1,hintsValid:!0};if(e&&_(e,i),t&&_(t,i),e&&v(i,r),n&&n.length&1){let e=new Uint8Array(n.length+1);e.set(n.data),n.data=e}return i.hintsValid}t=new Cn(new Uint8Array(t.getBytes()));let x,S;if(Jo(t)){let e=c(t,this.name);x=e.header,S=e.tables}else x=o(t),S=i(t,x.numTables);let C=!S[`CFF `],w=null;if(C){if(!S.loca)throw new F(`Required "loca" table is not found`);S.glyf||(j(`Required "glyf" table is not found -- trying to recover.`),S.glyf={tag:`glyf`,data:new Uint8Array}),this.isOpenType=!1}else{try{w=new Sa(new Cn(S[`CFF `].data),n,!0).parse()}catch{j(`Failed to parse font `+n.loadedName)}if(x.version===`OTTO`&&(!n.composite||n.fontFileN===`FontFile3`&&w?.isCIDFont)||!S.head||!S.hhea||!S.maxp||!S.post)return this.convert(e,new ro(new Cn(S[`CFF `].data),n),n);delete S.glyf,delete S.loca,delete S.fpgm,delete S.prep,delete S[`cvt `],this.isOpenType=!0}if(!S.maxp)throw new F(`Required "maxp" table is not found`);let T;if(w)try{w.duplicateFirstGlyph(),S[`CFF `].data=new La(w).compile(),T=w.charStringCount}catch{j(`Failed to compile font `+n.loadedName)}t.pos=(t.start||0)+S.maxp.offset;let E=t.getInt32(),D=T??t.getUint16();if(E===20480&&S.maxp.length!==6&&(S.maxp.data=S.maxp.data.subarray(0,6),S.maxp.length=6),E!==65536&&E!==20480){if(S.maxp.length===6)E=20480;else if(S.maxp.length>=32)E=65536;else throw new F(`"maxp" table has a wrong version number`);Ko(S.maxp.data,0,E)}let O=Uo(S.head.data[50],S.head.data[51]);if(S.loca){let e=O?(D+1)*4:(D+1)*2;if(S.loca.length!==e){j(`Incorrect \'loca\' table length -- attempting to fix it.`);let n=Object.values(S).filter(Boolean).sort((e,t)=>e.offset-t.offset),r=n[n.indexOf(S.loca)+1]||null;if(r&&S.loca.offset+e<r.offset){let n=t.pos;t.pos=t.start||0,t.skip(S.loca.offset),S.loca.data=t.getBytes(e),S.loca.length=e,t.pos=n}}}if(n.scaleFactors?.length===D&&C){let{scaleFactors:e}=n,t=new Ja({glyfTable:S.glyf.data,isGlyphLocationsLong:O,locaTable:S.loca.data,numGlyphs:D});t.scale(e);let{glyf:r,loca:i,isLocationLong:a}=t.write();S.glyf.data=r,S.loca.data=i,a!==!!O&&(S.head.data[50]=0,O=S.head.data[51]=+!!a);let o=S.hmtx.data;for(let t=0;t<D;t++){let n=4*t,r=Math.round(e[t]*Uo(o[n],o[n+1]));o[n]=r>>8&255,o[n+1]=r&255;let i=Math.round(e[t]*Go(o[n+2],o[n+3]));Wo(o,n+2,i)}}let ee=D+1,te=!0;ee>65535&&(te=!1,ee=D,j(`Not enough space in glyfs to duplicate first glyph.`));let ne=0,k=0;if(E>=65536&&S.maxp.length>=32)t.pos+=8,t.getUint16()>2&&(S.maxp.data[14]=0,S.maxp.data[15]=2),t.pos+=4,ne=t.getUint16(),t.pos+=4,k=t.getUint16();else if(C&&E===20480){let e=new Uint8Array(32);Ko(e,0,65536),e[4]=D>>8&255,e[5]=D&255,e.fill(255,6,14),e[15]=2,e[28]=255,e[29]=255,e[31]=16,S.maxp.data=e,S.maxp.length=32,E=65536}S.maxp.data[4]=ee>>8,S.maxp.data[5]=ee&255;let M=b(S.fpgm,S.prep,S[`cvt `],ne);if(M||(delete S.fpgm,delete S.prep,delete S[`cvt `]),u(t,S.hhea,S.hmtx,S.head,ee,te),!S.head)throw new F(`Required "head" table is not found`);f(S.head,D,C?S.loca.length:0);let re=Object.create(null);if(C){let e=p(S.loca,S.glyf,D,O,M,te,k);re=e.missingGlyphs,E>=65536&&S.maxp.length>=32&&(S.maxp.data[26]=e.maxSizeOfInstructions>>8,S.maxp.data[27]=e.maxSizeOfInstructions&255)}if(!S.hhea)throw new F(`Required "hhea" table is not found`);S.hhea.data[10]===0&&S.hhea.data[11]===0&&(S.hhea.data[10]=255,S.hhea.data[11]=255);let ie={unitsPerEm:Uo(S.head.data[18],S.head.data[19]),yMax:Go(S.head.data[42],S.head.data[43]),yMin:Go(S.head.data[38],S.head.data[39]),ascent:Go(S.hhea.data[4],S.hhea.data[5]),descent:Go(S.hhea.data[6],S.hhea.data[7]),lineGap:Go(S.hhea.data[8],S.hhea.data[9])};this.ascent=ie.ascent/ie.unitsPerEm,this.descent=ie.descent/ie.unitsPerEm,this.lineGap=ie.lineGap/ie.unitsPerEm,this.cssFontInfo?.lineHeight?(this.lineHeight=this.cssFontInfo.metrics.lineHeight,this.lineGap=this.cssFontInfo.metrics.lineGap):this.lineHeight=this.ascent-this.descent+this.lineGap,S.post&&m(S.post,n,D),S.post={tag:`post`,data:ls(n)};let ae=Object.create(null);function P(e){return!re[e]}if(n.composite){let e=n.cidToGidMap||[],t=e.length===0;n.cMap.forEach(function(n,r){if(typeof r==`string`&&(r=rs(n,r,!0)),r>65535)throw new F(`Max size of CID is 65,535`);let i=-1;t?i=r:e[r]!==void 0&&(i=e[r]),i>=0&&i<D&&P(i)&&(ae[n]=i)})}else{let e=l(S.cmap,t,this.isSymbolicFont,n.hasEncoding),r=e.platformId,i=e.encodingId,a=e.mappings,o=[],s=!1;if(n.hasEncoding&&(n.baseEncodingName===`MacRomanEncoding`||n.baseEncodingName===`WinAnsiEncoding`)&&(o=Gi(n.baseEncodingName)),n.hasEncoding&&!this.isSymbolicFont&&(r===3&&i===1||r===1&&i===0)){let e=Ki();for(let t=0;t<256;t++){let s;if(s=this.differences[t]===void 0?o.length&&o[t]!==``?o[t]:Vi[t]:this.differences[t],!s)continue;let c=aa(s,e),l;if(r===3&&i===1?l=e[c]:r===1&&i===0&&(l=Bi.indexOf(c)),l===void 0){if(!n.glyphNames&&n.hasIncludedToUnicodeMap&&!(this.toUnicode instanceof no)){let e=this.toUnicode.get(t);e&&(l=e.codePointAt(0))}if(l===void 0)continue}for(let e of a)if(e.charCode===l){ae[t]=e.glyphId;break}}}else if(r===0){for(let e of a)ae[e.charCode]=e.glyphId;s=!0}else if(r===3&&i===0)for(let e of a){let t=e.charCode;t>=61440&&t<=61695&&(t&=255),ae[t]=e.glyphId}else for(let e of a)ae[e.charCode]=e.glyphId;if(n.glyphNames&&(o.length||this.differences.length))for(let e=0;e<256;++e){if(!s&&ae[e]!==void 0)continue;let t=this.differences[e]||o[e];if(!t)continue;let r=n.glyphNames.indexOf(t);r>0&&P(r)&&(ae[e]=r)}}ae.length===0&&(ae[0]=0);let oe=ee-1;if(te||(oe=0),!n.cssFontInfo){let e=is(ae,P,oe,this.toUnicode);this.toFontChar=e.toFontChar,S.cmap={tag:`cmap`,data:os(e.charCodeToGlyphId,e.toUnicodeExtraMap,ee)},(!S[`OS/2`]||!ss(S[`OS/2`],t))&&(S[`OS/2`]={tag:`OS/2`,data:cs(n,e.charCodeToGlyphId,ie)})}if(!S.name)S.name={tag:`name`,data:ds(this.name)};else{let[t,r]=h(S.name);S.name.data=ds(e,t),this.psName=t[0][6]||null,n.composite||zo(n,this.isSymbolicFont,r)}let se=new bo(x.version);for(let e in S)se.addTable(e,S[e].data);return se.toArray()}convert(e,t,n){n.fixedPitch=!1,n.builtInEncoding&&Bo(n,n.builtInEncoding);let r=1;t instanceof ro&&(r=t.numGlyphs-1);let i=t.getGlyphMapping(n),a=null,s=i,c=null;n.cssFontInfo||(a=is(i,t.hasGlyphId.bind(t),r,this.toUnicode),this.toFontChar=a.toFontChar,s=a.charCodeToGlyphId,c=a.toUnicodeExtraMap);let l=t.numGlyphs;function u(e,t){let n=null;for(let r in e)t===e[r]&&(n||=[]).push(r|0);return n}function d(e,t){for(let n in e)if(t===e[n])return n|0;return a.charCodeToGlyphId[a.nextAvailableFontCharCode]=t,a.nextAvailableFontCharCode++}let f=t.seacs;if(a&&f?.length){let e=n.fontMatrix||o,r=t.getCharset(),s=Object.create(null);for(let t in f){t|=0;let n=f[t],o=Vi[n[2]],c=Vi[n[3]],l=r.indexOf(o),p=r.indexOf(c);if(l<0||p<0)continue;let m={x:n[0]*e[0]+n[1]*e[2]+e[4],y:n[0]*e[1]+n[1]*e[3]+e[5]},h=u(i,t);if(h)for(let e of h){let t=a.charCodeToGlyphId;s[e]={baseFontCharCode:d(t,l),accentFontCharCode:d(t,p),accentOffset:m}}}n.seacMap=s}let p=n.fontMatrix?1/Math.max(...n.fontMatrix.slice(0,4).map(Math.abs)):1e3,m=new bo(`OTTO`);return m.addTable(`CFF `,t.data),m.addTable(`OS/2`,cs(n,s)),m.addTable(`cmap`,os(s,c,l)),m.addTable(`head`,function(){let e=[0,0,0,0,158,11,126,39],t=new ma({exactLength:54});return t.setArray([0,1,0,0]),t.setArray([0,0,16,0]),t.skip(4),t.setArray([95,15,60,245]),t.skip(2),t.setSafeInt16(p),t.setArray(e),t.setArray(e),t.skip(2),t.setSafeInt16(n.descent),t.setArray([15,255]),t.setSafeInt16(n.ascent),t.setInt16(n.italicAngle?2:0),t.setArray([0,17]),t.skip(6),t.data}()),m.addTable(`hhea`,function(){let e=new ma({exactLength:36});return e.setArray([0,1,0,0]),e.setSafeInt16(n.ascent),e.setSafeInt16(n.descent),e.skip(2),e.setArray([255,255]),e.skip(6),e.setSafeInt16(n.capHeight),e.setSafeInt16(Math.tan(n.italicAngle)*n.xHeight),e.skip(12),e.setInt16(l),e.data}()),m.addTable(`hmtx`,function(){let e=t.charstrings,n=t.cff?.widths??null,r=new ma({exactLength:l*4});r.skip(4);for(let t=1,i=l;t<i;t++){let i=0;e?i=e[t-1].width||0:n&&(i=Math.ceil(n[t]||0)),r.setInt16(i),r.skip(2)}return r.data}()),m.addTable(`maxp`,function(){let e=new ma({exactLength:6});return e.setArray([0,0,80,0]),e.setInt16(l),e.data}()),m.addTable(`name`,ds(e)),m.addTable(`post`,ls(n)),m.toArray()}get _spaceWidth(){let e=[`space`,`minus`,`one`,`i`,`I`],t;for(let n of e){if(n in this.widths){t=this.widths[n];break}let e=Ki()[n],r=0;if(this.composite&&this.cMap.contains(e)&&(r=this.cMap.lookup(e),typeof r==`string`&&(r=rs(e,r))),!r&&this.toUnicode&&(r=this.toUnicode.charCodeOf(e)),r<=0&&(r=e),t=this.widths[r],t)break}return P(this,`_spaceWidth`,t||this.defaultWidth)}_charToGlyph(e,t=!1){let n=this.#t.get(e);if(n?.isSpace===t)return n;let r,i,a,o=e;this.cMap?.contains(e)&&(o=this.cMap.lookup(e),typeof o==`string`&&(o=rs(e,o))),i=this.widths[o],typeof i!=`number`&&(i=this.defaultWidth);let s=this.vmetrics?.[o]||this.defaultVMetrics,c=this.toUnicode.get(e)||e;typeof c==`number`&&(c=String.fromCharCode(c));let l=this.toFontChar[e]!==void 0;if(r=this.toFontChar[e]||e,this.missingFile){let t=this.differences[e]||this.defaultEncoding[e];(t===`.notdef`||t===``)&&this.type===`Type1`&&(r=32,t===``&&(i||=this._spaceWidth,c=String.fromCharCode(r))),r=Yi(r)}this.isType3Font&&(a=r);let u=null;if(this.seacMap?.[e]){l=!0;let t=this.seacMap[e];r=t.baseFontCharCode,u={fontChar:String.fromCodePoint(t.accentFontCharCode),offset:t.accentOffset}}let d=``;if(typeof r==`number`&&(r<=1114111?d=String.fromCodePoint(r):j(`charToGlyph - invalid fontCharCode: ${r}`)),this.missingFile&&this.vertical&&d.length===1){let e=ca()[d.charCodeAt(0)];e&&(d=c=String.fromCharCode(e))}return n=new Ho(e,d,c,u,i,s,a,t,l),this.#t.set(e,n),n}charsToGlyphs(e){let t=this.#e.get(e);if(t)return t;if(t=[],this.cMap){let n=Object.create(null),r=e.length,i=0;for(;i<r;){this.cMap.readCharCode(e,i,n);let{charcode:r,length:a}=n;i+=a;let o=this._charToGlyph(r,a===1&&e.charCodeAt(i-1)===32);t.push(o)}}else for(let n=0,r=e.length;n<r;++n){let r=e.charCodeAt(n),i=this._charToGlyph(r,r===32);t.push(i)}return this.#e.set(e,t),t}getCharPositions(e){let t=[];if(this.cMap){let n=Object.create(null),r=0;for(;r<e.length;){this.cMap.readCharCode(e,r,n);let i=n.length;t.push([r,r+i]),r+=i}}else for(let n=0,r=e.length;n<r;++n)t.push([n,n+1]);return t}get glyphCacheValues(){return this.#t.values()}encodeString(e){let t=[],n=[],r=()=>t.length%2==1,i=this.toUnicode instanceof no?e=>this.toUnicode.charCodeOf(e):e=>this.toUnicode.charCodeOf(String.fromCodePoint(e));for(let a=0,o=e.length;a<o;a++){let o=e.codePointAt(a);if(o>55295&&(o<57344||o>65533)&&a++,this.toUnicode){let e=i(o);if(e!==-1){r()&&(t.push(n.join(``)),n.length=0);let i=this.cMap?this.cMap.getCharCodeLength(e):1;for(let t=i-1;t>=0;t--)n.push(String.fromCharCode(e>>8*t&255));continue}}r()||(t.push(n.join(``)),n.length=0),n.push(String.fromCodePoint(o))}return t.push(n.join(``)),t}},ps=class{constructor(e){this.error=e,this.loadedName=`g_font_error`,this.missingFile=!0}charsToGlyphs(){return[]}encodeString(e){return[e]}exportData(){return{error:this.error}}};let ms=[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],hs={lineHeight:1.2207,lineGap:.2207},gs=[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],_s={lineHeight:1.2207,lineGap:.2207},vs=[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],ys={lineHeight:1.2207,lineGap:.2207},bs=[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],xs={lineHeight:1.2207,lineGap:.2207},Ss=[.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],Cs={lineHeight:1.2,lineGap:.2},ws=[.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],Ts={lineHeight:1.35,lineGap:.2},Es=[.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],Ds={lineHeight:1.35,lineGap:.2},Os=[.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],ks={lineHeight:1.2,lineGap:.2},As=[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],js=[-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],Ms=[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],Ns=[-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],Ps=[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],Fs=[-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],Is=[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],Ls=[-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],Rs=[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],zs={lineHeight:1.2,lineGap:.2},Bs=[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],Vs={lineHeight:1.2,lineGap:.2},Hs=[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],Us={lineHeight:1.2,lineGap:.2},Ws=[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],Gs={lineHeight:1.2,lineGap:.2},Ks=[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],qs={lineHeight:1.33008,lineGap:0},Js=[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],Ys={lineHeight:1.33008,lineGap:0},Xs=[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],Zs={lineHeight:1.33008,lineGap:0},Qs=[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],$s={lineHeight:1.33008,lineGap:0},ec=$e(function(e){e[`MyriadPro-Regular`]=e[`PdfJS-Fallback-Regular`]={name:`LiberationSans-Regular`,factors:Ws,baseWidths:Is,baseMapping:Ls,metrics:Gs},e[`MyriadPro-Bold`]=e[`PdfJS-Fallback-Bold`]={name:`LiberationSans-Bold`,factors:Rs,baseWidths:As,baseMapping:js,metrics:zs},e[`MyriadPro-It`]=e[`MyriadPro-Italic`]=e[`PdfJS-Fallback-Italic`]={name:`LiberationSans-Italic`,factors:Hs,baseWidths:Ps,baseMapping:Fs,metrics:Us},e[`MyriadPro-BoldIt`]=e[`MyriadPro-BoldItalic`]=e[`PdfJS-Fallback-BoldItalic`]={name:`LiberationSans-BoldItalic`,factors:Bs,baseWidths:Ms,baseMapping:Ns,metrics:Vs},e.ArialMT=e.Arial=e[`Arial-Regular`]={name:`LiberationSans-Regular`,baseWidths:Is,baseMapping:Ls},e[`Arial-BoldMT`]=e[`Arial-Bold`]={name:`LiberationSans-Bold`,baseWidths:As,baseMapping:js},e[`Arial-ItalicMT`]=e[`Arial-Italic`]={name:`LiberationSans-Italic`,baseWidths:Ps,baseMapping:Fs},e[`Arial-BoldItalicMT`]=e[`Arial-BoldItalic`]={name:`LiberationSans-BoldItalic`,baseWidths:Ms,baseMapping:Ns},e[`Calibri-Regular`]={name:`LiberationSans-Regular`,factors:bs,baseWidths:Is,baseMapping:Ls,metrics:xs},e[`Calibri-Bold`]={name:`LiberationSans-Bold`,factors:ms,baseWidths:As,baseMapping:js,metrics:hs},e[`Calibri-Italic`]={name:`LiberationSans-Italic`,factors:vs,baseWidths:Ps,baseMapping:Fs,metrics:ys},e[`Calibri-BoldItalic`]={name:`LiberationSans-BoldItalic`,factors:gs,baseWidths:Ms,baseMapping:Ns,metrics:_s},e[`Segoeui-Regular`]={name:`LiberationSans-Regular`,factors:Qs,baseWidths:Is,baseMapping:Ls,metrics:$s},e[`Segoeui-Bold`]={name:`LiberationSans-Bold`,factors:Ks,baseWidths:As,baseMapping:js,metrics:qs},e[`Segoeui-Italic`]={name:`LiberationSans-Italic`,factors:Xs,baseWidths:Ps,baseMapping:Fs,metrics:Zs},e[`Segoeui-BoldItalic`]={name:`LiberationSans-BoldItalic`,factors:Js,baseWidths:Ms,baseMapping:Ns,metrics:Ys},e[`Helvetica-Regular`]=e.Helvetica={name:`LiberationSans-Regular`,factors:Os,baseWidths:Is,baseMapping:Ls,metrics:ks},e[`Helvetica-Bold`]={name:`LiberationSans-Bold`,factors:Ss,baseWidths:As,baseMapping:js,metrics:Cs},e[`Helvetica-Italic`]={name:`LiberationSans-Italic`,factors:Es,baseWidths:Ps,baseMapping:Fs,metrics:Ds},e[`Helvetica-BoldItalic`]={name:`LiberationSans-BoldItalic`,factors:ws,baseWidths:Ms,baseMapping:Ns,metrics:Ts}});function tc(e){let t=sa(e);return ec()[t]}function nc(e){let t=tc(e);if(!t)return null;let{baseWidths:n,baseMapping:r,factors:i}=t,a=i?n.map((e,t)=>e*i[t]):n,o=-2,s,c=[];for(let[e,t]of r.map((e,t)=>[e,t]).sort(([e],[t])=>e-t))e!==-1&&(e===o+1?(s.push(a[t]),o+=1):(o=e,s=[a[t]],c.push(e,s)));return c}function rc(e){let t=nc(e),n=new L(null);n.set(`BaseFont`,I.get(e)),n.set(`Type`,I.get(`Font`)),n.set(`Subtype`,I.get(`CIDFontType2`)),n.set(`Encoding`,I.get(`Identity-H`)),n.set(`CIDToGIDMap`,I.get(`Identity`)),n.set(`W`,t),n.set(`FirstChar`,t[0]),n.set(`LastChar`,t.at(-2)+t.at(-1).length-1);let r=new L(null);n.set(`FontDescriptor`,r);let i=new L(null);return i.set(`Ordering`,`Identity`),i.set(`Registry`,`Adobe`),i.set(`Supplement`,0),n.set(`CIDSystemInfo`,i),n}let z={number:0,lbrace:1,rbrace:2,true:3,false:4,add:5,sub:6,mul:7,div:8,idiv:9,mod:10,exp:11,eq:12,ne:13,gt:14,ge:15,lt:16,le:17,and:18,or:19,xor:20,bitshift:21,abs:22,neg:23,ceiling:24,floor:25,round:26,truncate:27,not:28,sqrt:29,sin:30,cos:31,ln:32,log:33,atan:34,cvi:35,cvr:36,dup:37,exch:38,pop:39,copy:40,index:41,roll:42,if:43,ifelse:44,eof:45,min:46,max:47};var ic=class{constructor(e,t=null){this.id=e,this.value=t}},ac=class e{static#e=null;static#t=null;static#n(){let e=Object.create(null),t=Object.create(null);for(let[n,r]of Object.entries(z)){if(n===`number`)continue;let i=r>=z.true&&r<=z.ifelse,a=new ic(r,i?n:null);e[n]=a,i&&(t[n]=a)}this.#e=e,this.#t=t}constructor(t){e.#e||e.#n(),this.data=t,this.pos=0,this.len=t.length,this._numberPattern=/[+-]?(?:\\d+\\.?\\d*|\\.\\d+)(?:e[+-]?\\d+)?/iy,this._identifierPattern=/[a-z]+/y}_skipComment(){let e=this.data.indexOf(`\n`,this.pos),t=this.data.indexOf(`\\r`,this.pos),n=Math.min(e<0?this.len:e,t<0?this.len:t);this.pos=Math.min(n+1,this.len)}_getNumber(){this._numberPattern.lastIndex=this.pos;let e=this._numberPattern.exec(this.data);if(!e)return new ic(z.number,0);let t=parseFloat(e[0]);return Number.isFinite(t)?(this.pos=this._numberPattern.lastIndex,new ic(z.number,t)):new ic(z.number,0)}_getOperator(){this._identifierPattern.lastIndex=this.pos;let t=this._identifierPattern.exec(this.data);if(!t)return new ic(z.number,0);this.pos=this._identifierPattern.lastIndex;let n=t[0];return e.#t[n]||new ic(z.number,0)}next(){for(;this.pos<this.len;){let t=this.data.charCodeAt(this.pos++);switch(t){case 0:case 9:case 10:case 12:case 13:case 32:break;case 37:this._skipComment();break;case 123:return e.#e.lbrace;case 125:return e.#e.rbrace;case 43:case 45:return this.pos--,this._getNumber();case 46:return this.pos--,this._getNumber();default:return t>=48&&t<=57?(this.pos--,this._getNumber()):t>=97&&t<=122?(this.pos--,this._getOperator()):new ic(z.number,0)}}return e.#e.eof}};let oc={numeric:0,boolean:1,unknown:2},B={program:0,block:1,number:2,operator:3,if:4,ifelse:5,arg:6,const:7,unary:8,binary:9,ternary:10};var sc=class{constructor(e){this.type=e}},cc=class extends sc{constructor(e){super(B.program),this.body=e}},lc=class extends sc{constructor(e){super(B.block),this.instructions=e}},uc=class extends sc{constructor(e){super(B.number),this.value=e}},dc=class extends sc{constructor(e){super(B.operator),this.op=e}},fc=class extends sc{constructor(e){super(B.if),this.then=e}},pc=class extends sc{constructor(e,t){super(B.ifelse),this.then=e,this.otherwise=t}},mc=class extends sc{constructor(e){super(B.arg),this.index=e,this.valueType=oc.numeric}},hc=class extends sc{constructor(e){super(B.const),this.value=e,this.valueType=typeof e==`boolean`?oc.boolean:oc.numeric}},gc=class extends sc{constructor(e,t,n=oc.unknown){super(B.unary),this.op=e,this.operand=t,this.valueType=n}},_c=class extends sc{constructor(e,t,n,r=oc.unknown){super(B.binary),this.op=e,this.first=t,this.second=n,this.valueType=r}},vc=class extends sc{constructor(e,t,n,r=oc.unknown){super(B.ternary),this.cond=e,this.then=t,this.otherwise=n,this.valueType=r}},yc=class e{constructor(e){this.lexer=e,this._token=null}static _isRegularOperator(e){return e>=z.true&&e<z.if}_advance(){this._token=this.lexer.next()}_expect(e){if(this._token.id!==e)throw new F(`PostScript function: expected token id ${e}, got ${this._token.id}.`);let t=this._token;return this._advance(),t}parse(){this._advance(),this._expect(z.lbrace);let e=this._parseBlock();return this._expect(z.rbrace),this._token.id!==z.eof&&j(`PostScript function: unexpected content after closing brace.`),new cc(e)}_parseBlock(){let t=[];for(;;){let n=this._token;switch(n.id){case z.number:t.push(new uc(n.value)),this._advance();break;case z.lbrace:{this._advance();let e=this._parseBlock();if(this._expect(z.rbrace),this._token.id===z.if)this._advance(),t.push(new fc(e));else if(this._token.id===z.lbrace){this._advance();let n=this._parseBlock();this._expect(z.rbrace),this._expect(z.ifelse),t.push(new pc(e,n))}else throw new F(`PostScript function: a procedure block must be followed by \'if\' or \'{…} ifelse\'.`);break}case z.rbrace:case z.eof:return new lc(t);case z.if:case z.ifelse:throw new F(`PostScript function: unexpected \'${n.value}\' operator.`);default:if(e._isRegularOperator(n.id)){t.push(new dc(n.id)),this._advance();break}throw new F(`PostScript function: unexpected token id ${n.id}.`)}}}};function bc(e){return new yc(new ac(e)).parse()}function xc(e,t){if(e===t)return!0;if(e.type!==t.type)return!1;switch(e.type){case B.arg:return e.index===t.index;case B.const:return e.value===t.value;case B.unary:return e.op===t.op&&xc(e.operand,t.operand);case B.binary:return e.op===t.op&&xc(e.first,t.first)&&xc(e.second,t.second);case B.ternary:return xc(e.cond,t.cond)&&xc(e.then,t.then)&&xc(e.otherwise,t.otherwise);default:return!1}}function Sc(e,t,n){switch(e){case z.add:return t+n;case z.sub:return t-n;case z.mul:return t*n;case z.div:return n===0?0:t/n;case z.idiv:return n===0?0:Math.trunc(t/n);case z.mod:return n===0?0:t-Math.trunc(t/n)*n;case z.exp:{let e=t**n;return Number.isFinite(e)?e:void 0}case z.atan:{let e=180/Math.PI*Math.atan2(t,n);return e<0&&(e+=360),e}case z.eq:return t===n;case z.ne:return t!==n;case z.gt:return t>n;case z.ge:return t>=n;case z.lt:return t<n;case z.le:return t<=n;case z.and:return typeof t==`boolean`?t&&n:t&n|0;case z.or:return typeof t==`boolean`?t||n:t|n|0;case z.xor:return typeof t==`boolean`?t!==n:t^n|0;case z.bitshift:return n>=0?t<<n|0:t>>-n|0;case z.min:return Math.min(t,n);case z.max:return Math.max(t,n);default:return}}function Cc(e,t){switch(e){case z.abs:return Math.abs(t);case z.neg:return-t;case z.ceiling:return Math.ceil(t);case z.floor:return Math.floor(t);case z.round:return Math.round(t);case z.truncate:return Math.trunc(t);case z.sqrt:{let e=Math.sqrt(t);return Number.isFinite(e)?e:void 0}case z.sin:return Math.sin(t%360*Math.PI/180);case z.cos:return Math.cos(t%360*Math.PI/180);case z.ln:{let e=Math.log(t);return Number.isFinite(e)?e:void 0}case z.log:{let e=Math.log10(t);return Number.isFinite(e)?e:void 0}case z.cvi:return Math.trunc(t);case z.cvr:return t;case z.not:return typeof t==`boolean`?!t:~t;default:return}}function wc(e,t){return e===z.not?t:oc.numeric}function Tc(e,t,n){switch(e){case z.eq:case z.ne:case z.gt:case z.ge:case z.lt:case z.le:return oc.boolean;case z.and:case z.or:case z.xor:return t===n&&t!==oc.unknown?t:oc.unknown;default:return oc.numeric}}var Ec=class e{static#e=null;static#t=null;static#n=null;static#r=null;static#i(){this.#e=new Set([z.add,z.sub,z.mul,z.div,z.idiv,z.mod,z.exp,z.atan,z.eq,z.ne,z.gt,z.ge,z.lt,z.le,z.and,z.or,z.xor,z.bitshift]),this.#t=new Set([z.abs,z.neg,z.ceiling,z.floor,z.round,z.truncate,z.sqrt,z.sin,z.cos,z.ln,z.log,z.cvi,z.cvr,z.not]),this.#n=new Set([z.abs,z.ceiling,z.cvi,z.cvr,z.floor,z.round,z.truncate]),this.#r=new Map([[z.eq,z.ne],[z.ne,z.eq],[z.lt,z.ge],[z.le,z.gt],[z.gt,z.le],[z.ge,z.lt]])}evaluate(t,n){if(e.#e||e.#i(),this._failed=!1,n>100)return null;let r=[];for(let e=0;e<n;e++)r.push(new mc(e));return this._evalBlock(t.body,r),this._failed?null:(e.#a(r),r)}static#a(e){let t=new Map,n=e=>{if(!e||e.type===B.arg||e.type===B.const)return;let r=t.get(e)??0;if(t.set(e,r+1),!(r>0))switch(e.type){case B.unary:n(e.operand);break;case B.binary:n(e.first),n(e.second);break;case B.ternary:n(e.cond),n(e.then),n(e.otherwise);break}};for(let t of e)n(t);for(let[e,n]of t)n>1&&(e.shared=!0,e.sharedCount=n)}_evalBlock(e,t){this._evalBlockFrom(e.instructions,0,t)}_evalBlockFrom(e,t,n){for(let r=t;r<e.length&&!this._failed;r++){let t=e[r];switch(t.type){case B.number:n.push(new hc(t.value)),n.length>100&&(this._failed=!0);break;case B.operator:this._evalOp(t.op,n);break;case B.if:{if(n.length<1){this._failed=!0;break}let i=n.pop(),a=n.slice();if(this._evalBlock(t.then,n),this._failed)break;if(n.length===a.length)for(let e=0;e<n.length;e++)n[e]!==a[e]&&(n[e]=this._makeTernary(i,n[e],a[e]));else if(n.length>a.length){if(i.type===B.const){i.value||(n.length=0,n.push(...a));break}let t=n.slice();if(this._evalBlockFrom(e,r+1,t),this._failed)break;let o=a;if(this._evalBlockFrom(e,r+1,o),this._failed)break;if(t.length!==o.length){let e=new hc(0);for(;t.length<o.length;)t.push(e);for(;o.length<t.length;)o.push(e)}n.length=0;for(let e=0;e<t.length;e++)n.push(this._makeTernary(i,t[e],o[e]));return}else this._failed=!0;break}case B.ifelse:{if(n.length<1){this._failed=!0;break}let e=n.pop(),r=n.slice(),i=r.slice();if(this._evalBlock(t.then,i),this._failed)break;let a=r.slice();if(this._evalBlock(t.otherwise,a),this._failed)break;if(i.length!==a.length){let e=new hc(0);for(;i.length<a.length;)i.push(e);for(;a.length<i.length;)a.push(e)}n.length=0;for(let t=0;t<i.length;t++)n.push(this._makeTernary(e,i[t],a[t]));break}}}}_evalOp(t,n){if(e.#e.has(t)){if(n.length<2){this._failed=!0;return}let e=n.pop(),r=n.pop();n.push(this._makeBinary(t,e,r));return}if(e.#t.has(t)){if(n.length<1){this._failed=!0;return}n.push(this._makeUnary(t,n.pop()));return}switch(t){case z.true:n.push(new hc(!0)),n.length>100&&(this._failed=!0);break;case z.false:n.push(new hc(!1)),n.length>100&&(this._failed=!0);break;case z.dup:if(n.length<1){this._failed=!0;break}n.push(n.at(-1)),n.length>100&&(this._failed=!0);break;case z.exch:{if(n.length<2){this._failed=!0;break}let e=n.pop(),t=n.pop();n.push(e,t);break}case z.pop:if(n.length<1){this._failed=!0;break}n.pop();break;case z.copy:{if(n.length<1){this._failed=!0;break}let e=n.pop();if(e.type===B.const){let t=e.value|0;t===0||(t<0||t>n.length?this._failed=!0:(n.push(...n.slice(-t)),n.length>100&&(this._failed=!0)))}else this._failed=!0;break}case z.index:{if(n.length<1){this._failed=!0;break}let e=n.pop();if(e.type===B.const){let t=e.value|0;t<0||t>=n.length?this._failed=!0:n.push(n.at(-t-1))}else this._failed=!0;break}case z.roll:{if(n.length<2){this._failed=!0;break}let e=n.pop(),t=n.pop();if(t.type===B.const&&e.type===B.const){let r=t.value|0;if(r!==0)if(r<0||r>n.length)this._failed=!0;else{let t=((e.value|0)%r+r)%r;if(t>0){let e=n.splice(-r,r);n.push(...e.slice(r-t),...e.slice(0,r-t))}}}else this._failed=!0;break}default:this._failed=!0;break}}_makeBinary(e,t,n){if(t.type===B.const&&n.type===B.const){let r=Sc(e,n.value,t.value);if(r!==void 0)return new hc(r)}if(xc(t,n))switch(e){case z.sub:return new hc(0);case z.xor:return new hc(t.valueType===oc.boolean?!1:0);case z.and:case z.or:return t;case z.min:case z.max:return t;case z.eq:case z.ge:case z.le:return new hc(!0);case z.ne:case z.gt:case z.lt:return new hc(!1)}if(t.type===B.const){let r=t.value;switch(e){case z.add:if(r===0)return n;break;case z.sub:if(r===0)return n;break;case z.mul:if(r===1)return n;if(r===0)return t;if(r===-1)return this._makeUnary(z.neg,n);break;case z.div:if(r!==0)return this._makeBinary(z.mul,new hc(1/r),n);break;case z.idiv:if(r===1)return n;break;case z.exp:if(r===1)return n;if(r===-1)return this._makeBinary(z.div,n,new hc(1));if(r===.5)return this._makeUnary(z.sqrt,n);if(r===.25){let e=this._makeUnary(z.sqrt,n);return this._makeUnary(z.sqrt,e)}if(r===2)return this._makeBinary(z.mul,n,n);if(r===3)return this._makeBinary(z.mul,this._makeBinary(z.mul,n,n),n);if(r===4){let e=this._makeBinary(z.mul,n,n);return this._makeBinary(z.mul,e,e)}if(r===0)return new hc(1);break;case z.and:if(r===!0)return n;if(r===!1)return t;break;case z.or:if(r===!1)return n;if(r===!0)return t;break;case z.min:if(n.type===B.binary&&n.op===z.max&&n.first.type===B.const&&n.first.value>=r)return t;break;case z.max:if(n.type===B.binary&&n.op===z.min&&n.first.type===B.const&&n.first.value<=r)return t;break}}if(n.type===B.const){let r=n.value;switch(e){case z.add:if(r===0)return t;break;case z.sub:if(r===0)return this._makeUnary(z.neg,t);break;case z.mul:if(r===1)return t;if(r===0)return n;if(r===-1)return this._makeUnary(z.neg,t);break;case z.and:if(r===!0)return t;if(r===!1)return n;break;case z.or:if(r===!1)return t;if(r===!0)return n;break}}return new _c(e,t,n,Tc(e,t.valueType,n.valueType))}_makeUnary(t,n){if(n.type===B.const){let e=Cc(t,n.value);if(e!==void 0)return new hc(e)}if(t===z.not&&n.type===B.binary){let t=e.#r.get(n.op);if(t!==void 0)return new _c(t,n.first,n.second,oc.boolean)}if(t===z.neg&&n.type===B.binary&&n.op===z.sub)return this._makeBinary(z.sub,n.second,n.first);if(n.type===B.unary){if(t===z.neg&&n.op===z.neg||t===z.not&&n.op===z.not)return n.operand;if(t===z.abs&&n.op===z.neg)return this._makeUnary(z.abs,n.operand);if(e.#n.has(t)&&t===n.op)return n}return new gc(t,n,wc(t,n.valueType))}_makeTernary(e,t,n){if(e.type===B.const)return e.value?t:n;if(xc(t,n))return t;if(t.type===B.const&&n.type===B.const){if(t.value===!0&&n.value===!1)return e;if(t.value===!1&&n.value===!0)return this._makeUnary(z.not,e)}if(e.type===B.binary){let{op:r,first:i,second:a}=e;if(r===z.gt||r===z.ge){if(xc(t,i)&&xc(n,a))return this._makeBinary(z.min,i,a);if(xc(t,a)&&xc(n,i))return this._makeBinary(z.max,i,a)}else if(r===z.lt||r===z.le){if(xc(t,i)&&xc(n,a))return this._makeBinary(z.max,i,a);if(xc(t,a)&&xc(n,i))return this._makeBinary(z.min,i,a)}}return new vc(e,t,n,t.valueType===n.valueType?t.valueType:oc.unknown)}};let V={ARG:0,CONST:1,STORE:2,IF:3,JUMP:4,ABS:5,NEG:6,CEIL:7,FLOOR:8,ROUND:9,TRUNC:10,NOT_B:11,NOT_N:12,SQRT:13,SIN:14,COS:15,LN:16,LOG10:17,CVI:18,SHIFT:19,ADD:20,SUB:21,MUL:22,DIV:23,IDIV:24,MOD:25,POW:26,EQ:27,NE:28,GT:29,GE:30,LT:31,LE:32,AND:33,OR:34,XOR:35,ATAN:36,MIN:37,MAX:38,TEE_TMP:39,LOAD_TMP:40},Dc=Math.PI/180,Oc=180/Math.PI;var kc=class{static#e=new Float64Array(64);static#t=new Float64Array(64);constructor(e,t){this.nIn=e.length>>1,this.nOut=t.length>>1,this.range=t,this.ir=[],this._tmpMap=new Map,this._nextTmp=0}_compileNode(e){if(e.shared){let t=this._tmpMap.get(e);if(t!==void 0)return this.ir.push(V.LOAD_TMP,t),!0;if(!this._compileNodeImpl(e))return!1;let n=this._nextTmp++;return this._tmpMap.set(e,n),this.ir.push(V.TEE_TMP,n),!0}return this._compileNodeImpl(e)}_compileNodeImpl(e){switch(e.type){case B.arg:return this.ir.push(V.ARG,e.index),!0;case B.const:{let t=e.value;return this.ir.push(V.CONST,typeof t==`boolean`?Number(t):t),!0}case B.unary:return this._compileUnary(e);case B.binary:return this._compileBinary(e);case B.ternary:return this._compileTernary(e);default:return!1}}_compileUnary(e){let{op:t,operand:n,valueType:r}=e;if(t===z.cvr)return this._compileNode(n);if(!this._compileNode(n))return!1;switch(t){case z.abs:this.ir.push(V.ABS);break;case z.neg:this.ir.push(V.NEG);break;case z.ceiling:this.ir.push(V.CEIL);break;case z.floor:this.ir.push(V.FLOOR);break;case z.round:this.ir.push(V.ROUND);break;case z.truncate:this.ir.push(V.TRUNC);break;case z.sqrt:this.ir.push(V.SQRT);break;case z.sin:this.ir.push(V.SIN);break;case z.cos:this.ir.push(V.COS);break;case z.ln:this.ir.push(V.LN);break;case z.log:this.ir.push(V.LOG10);break;case z.cvi:this.ir.push(V.CVI);break;case z.not:if(r===oc.boolean)this.ir.push(V.NOT_B);else if(r===oc.numeric)this.ir.push(V.NOT_N);else return!1;break;default:return!1}return!0}_compileBinary(e){let{op:t,first:n,second:r}=e;if(t===z.bitshift)return n.type!==B.const||!Number.isInteger(n.value)||!this._compileNode(r)?!1:(this.ir.push(V.SHIFT,n.value),!0);if(!this._compileNode(r)||!this._compileNode(n))return!1;switch(t){case z.add:this.ir.push(V.ADD);break;case z.sub:this.ir.push(V.SUB);break;case z.mul:this.ir.push(V.MUL);break;case z.div:this.ir.push(V.DIV);break;case z.idiv:this.ir.push(V.IDIV);break;case z.mod:this.ir.push(V.MOD);break;case z.exp:this.ir.push(V.POW);break;case z.eq:this.ir.push(V.EQ);break;case z.ne:this.ir.push(V.NE);break;case z.gt:this.ir.push(V.GT);break;case z.ge:this.ir.push(V.GE);break;case z.lt:this.ir.push(V.LT);break;case z.le:this.ir.push(V.LE);break;case z.and:this.ir.push(V.AND);break;case z.or:this.ir.push(V.OR);break;case z.xor:this.ir.push(V.XOR);break;case z.atan:this.ir.push(V.ATAN);break;case z.min:this.ir.push(V.MIN);break;case z.max:this.ir.push(V.MAX);break;default:return!1}return!0}_compileTernary(e){if(!this._compileNode(e.cond))return!1;this.ir.push(V.IF,0);let t=this.ir.length-1;if(!this._compileNode(e.then))return!1;this.ir.push(V.JUMP,0);let n=this.ir.length-1;return this.ir[t]=this.ir.length,this._compileNode(e.otherwise)?(this.ir[n]=this.ir.length,!0):!1}compile(e){let t=new Ec().evaluate(e,this.nIn);if(!t||t.length<this.nOut)return null;for(let e=0;e<this.nOut;e++){if(!this._compileNode(t[e]))return null;let n=this.range[e*2],r=this.range[e*2+1];this.ir.push(V.STORE,e,n,r)}return new Float64Array(this.ir)}static execute(e,t,n,r,i){let a=0,o=0,s=e.length,c=this.#e,l=this.#t;for(;a<s;)switch(e[a++]|0){case V.ARG:c[o++]=t[n+(e[a++]|0)];break;case V.CONST:c[o++]=e[a++];break;case V.STORE:{let t=e[a++]|0,n=e[a++],s=e[a++];r[i+t]=rn(c[--o],n,s);break}case V.IF:{let t=e[a++];c[--o]===0&&(a=t);break}case V.JUMP:a=e[a];break;case V.ABS:c[o-1]=Math.abs(c[o-1]);break;case V.NEG:c[o-1]=-c[o-1];break;case V.CEIL:c[o-1]=Math.ceil(c[o-1]);break;case V.FLOOR:c[o-1]=Math.floor(c[o-1]);break;case V.ROUND:c[o-1]=Math.floor(c[o-1]+.5);break;case V.TRUNC:c[o-1]=Math.trunc(c[o-1]);break;case V.NOT_B:c[o-1]=+(c[o-1]===0);break;case V.NOT_N:c[o-1]=~(c[o-1]|0);break;case V.SQRT:c[o-1]=Math.sqrt(c[o-1]);break;case V.SIN:c[o-1]=Math.sin(c[o-1]%360*Dc);break;case V.COS:c[o-1]=Math.cos(c[o-1]%360*Dc);break;case V.LN:c[o-1]=Math.log(c[o-1]);break;case V.LOG10:c[o-1]=Math.log10(c[o-1]);break;case V.CVI:c[o-1]=Math.trunc(c[o-1])|0;break;case V.SHIFT:{let t=e[a++],n=c[o-1]|0;t>0?c[o-1]=n<<t:t<0?c[o-1]=n>>-t:c[o-1]=n;break}case V.ADD:{let e=c[--o];c[o-1]+=e;break}case V.SUB:{let e=c[--o];c[o-1]-=e;break}case V.MUL:{let e=c[--o];c[o-1]*=e;break}case V.DIV:{let e=c[--o];c[o-1]=e===0?0:c[o-1]/e;break}case V.IDIV:{let e=c[--o];c[o-1]=e===0?0:Math.trunc(c[o-1]/e);break}case V.MOD:{let e=c[--o];c[o-1]=e===0?0:c[o-1]%e;break}case V.POW:{let e=c[--o];c[o-1]**=e;break}case V.EQ:{let e=c[--o];c[o-1]=+(c[o-1]===e);break}case V.NE:{let e=c[--o];c[o-1]=c[o-1]===e?0:1;break}case V.GT:{let e=c[--o];c[o-1]=+(c[o-1]>e);break}case V.GE:{let e=c[--o];c[o-1]=+(c[o-1]>=e);break}case V.LT:{let e=c[--o];c[o-1]=+(c[o-1]<e);break}case V.LE:{let e=c[--o];c[o-1]=+(c[o-1]<=e);break}case V.AND:{let e=c[--o]|0;c[o-1]=(c[o-1]|0)&e;break}case V.OR:{let e=c[--o]|0;c[o-1]=c[o-1]|0|e;break}case V.XOR:{let e=c[--o]|0;c[o-1]=(c[o-1]|0)^e;break}case V.ATAN:{let e=c[--o],t=Math.atan2(c[o-1],e)*Oc;c[o-1]=t<0?t+360:t;break}case V.MIN:{let e=c[--o];c[o-1]=Math.min(c[o-1],e);break}case V.MAX:{let e=c[--o];c[o-1]=Math.max(c[o-1],e);break}case V.TEE_TMP:l[e[a++]|0]=c[o-1];break;case V.LOAD_TMP:c[o++]=l[e[a++]|0];break}}},Ac=class{static#e=new Float64Array(100);static#t=0;static#n(e){this.#t<this.#e.length&&(this.#e[this.#t++]=e)}static#r(e){let t=this.#e;switch(e){case z.true:this.#n(1);break;case z.false:this.#n(0);break;case z.abs:t[this.#t-1]=Math.abs(t[this.#t-1]);break;case z.neg:t[this.#t-1]=-t[this.#t-1];break;case z.ceiling:t[this.#t-1]=Math.ceil(t[this.#t-1]);break;case z.floor:t[this.#t-1]=Math.floor(t[this.#t-1]);break;case z.round:t[this.#t-1]=Math.floor(t[this.#t-1]+.5);break;case z.truncate:t[this.#t-1]=Math.trunc(t[this.#t-1]);break;case z.sqrt:t[this.#t-1]=Math.sqrt(t[this.#t-1]);break;case z.sin:t[this.#t-1]=Math.sin(t[this.#t-1]%360*Dc);break;case z.cos:t[this.#t-1]=Math.cos(t[this.#t-1]%360*Dc);break;case z.ln:t[this.#t-1]=Math.log(t[this.#t-1]);break;case z.log:t[this.#t-1]=Math.log10(t[this.#t-1]);break;case z.cvi:t[this.#t-1]=Math.trunc(t[this.#t-1])|0;break;case z.cvr:break;case z.not:{let e=t[this.#t-1];t[this.#t-1]=e===0||e===1?1-e:~(e|0);break}case z.add:{let e=t[--this.#t];t[this.#t-1]+=e;break}case z.sub:{let e=t[--this.#t];t[this.#t-1]-=e;break}case z.mul:{let e=t[--this.#t];t[this.#t-1]*=e;break}case z.div:{let e=t[--this.#t];t[this.#t-1]=e===0?0:t[this.#t-1]/e;break}case z.idiv:{let e=t[--this.#t];t[this.#t-1]=e===0?0:Math.trunc(t[this.#t-1]/e);break}case z.mod:{let e=t[--this.#t];t[this.#t-1]=e===0?0:t[this.#t-1]%e;break}case z.exp:{let e=t[--this.#t];t[this.#t-1]**=e;break}case z.atan:{let e=t[--this.#t],n=Math.atan2(t[this.#t-1],e)*Oc;t[this.#t-1]=n<0?n+360:n;break}case z.eq:{let e=t[--this.#t];t[this.#t-1]=+(t[this.#t-1]===e);break}case z.ne:{let e=t[--this.#t];t[this.#t-1]=t[this.#t-1]===e?0:1;break}case z.gt:{let e=t[--this.#t];t[this.#t-1]=+(t[this.#t-1]>e);break}case z.ge:{let e=t[--this.#t];t[this.#t-1]=+(t[this.#t-1]>=e);break}case z.lt:{let e=t[--this.#t];t[this.#t-1]=+(t[this.#t-1]<e);break}case z.le:{let e=t[--this.#t];t[this.#t-1]=+(t[this.#t-1]<=e);break}case z.and:{let e=t[--this.#t]|0;t[this.#t-1]=(t[this.#t-1]|0)&e;break}case z.or:{let e=t[--this.#t]|0;t[this.#t-1]=t[this.#t-1]|0|e;break}case z.xor:{let e=t[--this.#t]|0;t[this.#t-1]=(t[this.#t-1]|0)^e;break}case z.bitshift:{let e=t[--this.#t]|0,n=t[this.#t-1]|0;t[this.#t-1]=e>0?n<<e:n>>-e;break}case z.min:{let e=t[--this.#t];t[this.#t-1]=Math.min(t[this.#t-1],e);break}case z.max:{let e=t[--this.#t];t[this.#t-1]=Math.max(t[this.#t-1],e);break}case z.dup:this.#n(t[this.#t-1]);break;case z.exch:{let e=t[--this.#t],n=t[--this.#t];this.#n(e),this.#n(n);break}case z.pop:this.#t--;break;case z.copy:{let e=Math.trunc(t[--this.#t]),n=this.#t-e;for(let r=0;r<e;r++)this.#n(t[n+r]);break}case z.index:{let e=Math.trunc(t[--this.#t]);this.#n(t[this.#t-1-e]);break}case z.roll:{let e=Math.trunc(t[--this.#t]),n=Math.trunc(t[--this.#t]);if(n>1&&e!==0){let r=(e%n+n)%n;if(r!==0){let e=this.#t-n,i=t.slice(e,this.#t);for(let a=0;a<n;a++)t[e+a]=i[(a-r+n)%n]}}break}}}static#i(e){for(let t of e)switch(t.type){case B.number:this.#n(t.value);break;case B.operator:this.#r(t.op);break;case B.if:this.#e[--this.#t]!==0&&this.#i(t.then.instructions);break;case B.ifelse:this.#e[--this.#t]===0?this.#i(t.otherwise.instructions):this.#i(t.then.instructions);break}}static build(e,t,n){let r=t.length>>1,i=n.length>>1,{instructions:a}=e.body;return(e,t,o,s)=>{this.#t=0;for(let n=0;n<r;n++)this.#n(e[t+n]);this.#i(a);let c=this.#t-i;for(let e=0;e<i;e++){let t=c+e>=0?this.#e[c+e]:0;o[s+e]=rn(n[e*2+1],n[e*2],t)}}}};function jc(e,t,n,r=!1){let i=bc(e),a=!r&&new kc(t,n).compile(i);return a?(e,t,n,r)=>{kc.execute(a,e,t,n,r)}:Ac.build(i,t,n)}let H={if:4,else:5,end:11,select:27,call:16,local_get:32,local_set:33,local_tee:34,i32_const:65,i32_eqz:69,i32_and:113,i32_or:114,i32_xor:115,i32_shl:116,i32_shr_s:117,i32_trunc_f64_s:170,f64_const:68,f64_eq:97,f64_ne:98,f64_lt:99,f64_gt:100,f64_le:101,f64_ge:102,f64_abs:153,f64_neg:154,f64_ceil:155,f64_floor:156,f64_trunc:157,f64_nearest:158,f64_sqrt:159,f64_add:160,f64_sub:161,f64_mul:162,f64_div:163,f64_min:164,f64_max:165,f64_convert_i32_s:183,f64_store:57},Mc={type:1,import:2,function:3,memory:5,export:7,code:10};function Nc(e){let t=[];do{let n=e&127;e>>>=7,e!==0&&(n|=128),t.push(n)}while(e!==0);return t}function Pc(e){return[...Nc(e.length),...Array.from(e,e=>e.charCodeAt(0))]}function Fc(e,t){return[e,...Nc(t.length),...t]}function Ic(e){let t=Nc(e.length);for(let n of e){if(typeof n==`number`){t.push(n);continue}for(let e of n)t.push(e)}return t}let Lc=[[`sin`,`Math`,`sin`,[124],[124]],[`cos`,`Math`,`cos`,[124],[124]],[`atan2`,`Math`,`atan2`,[124,124],[124]],[`log`,`Math`,`log`,[124],[124]],[`log10`,`Math`,`log10`,[124],[124]],[`pow`,`Math`,`pow`,[124,124],[124]]],Rc={Math:Object.fromEntries(Lc.map(([e])=>[e,Math[e]]))};var zc=class e{static#e=!1;static#t=null;static#n=null;static#r=0;static#i=0;static#a=null;static#o=null;static#s=null;static#c=null;static#l=null;static#u=null;static#d=null;static#f=null;static#p(){this.#t=new Map([[z.eq,H.f64_eq],[z.ne,H.f64_ne],[z.lt,H.f64_lt],[z.le,H.f64_le],[z.gt,H.f64_gt],[z.ge,H.f64_ge]]),this.#n=Object.create(null);for(let e=0;e<Lc.length;e++)this.#n[Lc[e][0]]=e;this.#r=Math.PI/180,this.#i=180/Math.PI,this.#a=Lc.map(([,,,e,t])=>[96,...Ic(e),...Ic(t)]),this.#o=new Uint8Array(Fc(Mc.import,Ic(Lc.map(([,e,t],n)=>[...Pc(e),...Pc(t),0,...Nc(n+1)])))),this.#s=new Uint8Array(Fc(Mc.function,Ic([[0]]))),this.#c=new Uint8Array(Fc(Mc.memory,Ic([[0,1]]))),this.#l=new Uint8Array(Fc(Mc.export,Ic([[...Pc(`fn`),0,...Nc(Lc.length)],[...Pc(`mem`),2,0]]))),this.#u=new Uint8Array([0,97,115,109,1,0,0,0]);let e=new ArrayBuffer(8);this.#d=new DataView(e),this.#f=new Uint8Array(e),this.#e=!0}constructor(t,n){e.#e||e.#p(),this._nIn=t.length>>1,this._nOut=n.length>>1,this._range=n,this._code=[],this._nextLocal=this._nIn,this._freeLocals=[],this._sharedLocals=new Map}_allocLocal(){return this._freeLocals.pop()??this._nextLocal++}_releaseLocal(e){this._freeLocals.push(e)}_emitULEB128(e){do{let t=e&127;e>>>=7,e!==0&&(t|=128),this._code.push(t)}while(e!==0)}_emitF64Const(t){this._code.push(H.f64_const),e.#d.setFloat64(0,t,!0);for(let t=0;t<8;t++)this._code.push(e.#f[t])}_emitLocalGet(e){this._code.push(H.local_get),this._emitULEB128(e)}_emitLocalSet(e){this._code.push(H.local_set),this._emitULEB128(e)}_emitLocalTee(e){this._code.push(H.local_tee),this._emitULEB128(e)}_compileNode(e){if(e.shared){let t=this._sharedLocals.get(e);if(t!==void 0)return this._emitLocalGet(t.local),--t.remaining===0&&this._releaseLocal(t.local),!0;if(!this._compileNodeImpl(e))return!1;let n=this._allocLocal();return this._sharedLocals.set(e,{local:n,remaining:e.sharedCount-1}),this._emitLocalTee(n),!0}return this._compileNodeImpl(e)}_compileNodeImpl(e){switch(e.type){case B.arg:return this._emitLocalGet(e.index),!0;case B.const:{let t=e.value;return typeof t==`boolean`&&(t=+!!t),this._emitF64Const(t),!0}case B.unary:return this._compileUnaryNode(e);case B.binary:return this._compileBinaryNode(e);case B.ternary:return this._compileTernaryNode(e);default:return!1}}_compileSinCosNode(t){let n=this._allocLocal();try{if(!this._compileNode(t.operand))return!1;let r=this._code;return this._emitLocalSet(n),this._emitLocalGet(n),this._emitLocalGet(n),this._emitF64Const(360),r.push(H.f64_div,H.f64_trunc),this._emitF64Const(360),r.push(H.f64_mul,H.f64_sub),this._emitF64Const(e.#r),r.push(H.f64_mul,H.call),this._emitULEB128(e.#n[t.op===z.sin?`sin`:`cos`]),!0}finally{this._releaseLocal(n)}}_compileUnaryNode(t){let n=this._code;if(t.op===z.sin||t.op===z.cos)return this._compileSinCosNode(t);if(t.op===z.not)return t.valueType===oc.boolean?this._compileNodeAsBoolI32(t.operand)?(n.push(H.i32_eqz,H.f64_convert_i32_s),!0):!1:t.valueType===oc.numeric&&this._compileNode(t.operand)?(n.push(H.i32_trunc_f64_s,H.i32_const,127,H.i32_xor,H.f64_convert_i32_s),!0):!1;if(!this._compileNode(t.operand))return!1;switch(t.op){case z.abs:n.push(H.f64_abs);break;case z.neg:n.push(H.f64_neg);break;case z.sqrt:n.push(H.f64_sqrt);break;case z.floor:n.push(H.f64_floor);break;case z.ceiling:n.push(H.f64_ceil);break;case z.round:this._emitF64Const(.5),n.push(H.f64_add,H.f64_floor);break;case z.truncate:n.push(H.f64_trunc);break;case z.cvi:n.push(H.i32_trunc_f64_s,H.f64_convert_i32_s);break;case z.cvr:break;case z.ln:n.push(H.call),this._emitULEB128(e.#n.log);break;case z.log:n.push(H.call),this._emitULEB128(e.#n.log10);break;default:return!1}return!0}_compileSafeDivNode(e,t){let n=this._allocLocal();try{if(!this._compileNode(t)||!this._compileNode(e))return!1;let r=this._code;return this._emitLocalTee(n),r.push(H.f64_div),this._emitF64Const(0),this._emitLocalGet(n),this._emitF64Const(0),r.push(H.f64_ne,H.select),!0}finally{this._releaseLocal(n)}}_compileSafeIdivNode(e,t){let n=this._allocLocal();try{if(!this._compileNode(t)||!this._compileNode(e))return!1;let r=this._code;return this._emitLocalTee(n),r.push(H.f64_div,H.f64_trunc),this._emitF64Const(0),this._emitLocalGet(n),this._emitF64Const(0),r.push(H.f64_ne,H.select),!0}finally{this._releaseLocal(n)}}_compileBitshiftNode(e,t){if(e.type!==B.const||!Number.isInteger(e.value)||!this._compileNode(t))return!1;let n=this._code;n.push(H.i32_trunc_f64_s);let r=e.value;return r>0?(n.push(H.i32_const),this._emitULEB128(r),n.push(H.i32_shl)):r<0&&(n.push(H.i32_const),this._emitULEB128(-r),n.push(H.i32_shr_s)),n.push(H.f64_convert_i32_s),!0}_compileModNode(e,t){if(e.type===B.const&&e.value===0)return this._compileNode(t)?(this._code.push(H.drop),this._emitF64Const(0),!0):!1;let n=this._allocLocal();try{if(!this._compileNode(t))return!1;this._emitLocalTee(n);let r=this._code;if(e.type===B.const)this._emitLocalGet(n),this._emitF64Const(e.value),r.push(H.f64_div,H.f64_trunc),this._emitF64Const(e.value),r.push(H.f64_mul,H.f64_sub);else{let t=this._allocLocal();try{if(!this._compileNode(e))return!1;this._emitLocalSet(t),this._emitLocalGet(n),this._emitLocalGet(t),r.push(H.f64_div,H.f64_trunc),this._emitLocalGet(t),r.push(H.f64_mul,H.f64_sub),this._emitF64Const(0),this._emitLocalGet(t),this._emitF64Const(0),r.push(H.f64_ne,H.select)}finally{this._releaseLocal(t)}}return!0}finally{this._releaseLocal(n)}}_compileAtanNode(t,n){let r=this._allocLocal();try{if(!this._compileNode(n)||!this._compileNode(t))return!1;let i=this._code;return i.push(H.call),this._emitULEB128(e.#n.atan2),this._emitF64Const(e.#i),i.push(H.f64_mul),this._emitLocalTee(r),this._emitF64Const(0),i.push(H.f64_lt,H.if,124),this._emitLocalGet(r),this._emitF64Const(360),i.push(H.f64_add,H.else),this._emitLocalGet(r),i.push(H.end),!0}finally{this._releaseLocal(r)}}_compileBitwiseNode(e,t,n){if(!this._compileBitwiseOperandI32(n)||!this._compileBitwiseOperandI32(t))return!1;let r=this._code;switch(e){case z.and:r.push(H.i32_and);break;case z.or:r.push(H.i32_or);break;case z.xor:r.push(H.i32_xor);break;default:return!1}return r.push(H.f64_convert_i32_s),!0}_compileBitwiseOperandI32(e){return e.valueType===oc.boolean?this._compileNodeAsBoolI32(e):this._compileNode(e)?(this._code.push(H.i32_trunc_f64_s),!0):!1}_compileStandardBinaryNode(t,n,r){if(n===r&&n.type!==B.arg&&n.type!==B.const&&!n.shared){let e=this._allocLocal();try{if(!this._compileNode(n))return!1;this._emitLocalTee(e),this._emitLocalGet(e)}finally{this._releaseLocal(e)}}else if(!this._compileNode(r)||!this._compileNode(n))return!1;let i=this._code;switch(t){case z.add:i.push(H.f64_add);break;case z.sub:i.push(H.f64_sub);break;case z.mul:i.push(H.f64_mul);break;case z.exp:i.push(H.call),this._emitULEB128(e.#n.pow);break;case z.eq:i.push(H.f64_eq,H.f64_convert_i32_s);break;case z.ne:i.push(H.f64_ne,H.f64_convert_i32_s);break;case z.lt:i.push(H.f64_lt,H.f64_convert_i32_s);break;case z.le:i.push(H.f64_le,H.f64_convert_i32_s);break;case z.gt:i.push(H.f64_gt,H.f64_convert_i32_s);break;case z.ge:i.push(H.f64_ge,H.f64_convert_i32_s);break;case z.min:i.push(H.f64_min);break;case z.max:i.push(H.f64_max);break;default:return!1}return!0}_compileBinaryNode(e){let{op:t,first:n,second:r}=e;return t===z.bitshift?this._compileBitshiftNode(n,r):t===z.div?this._compileSafeDivNode(n,r):t===z.idiv?this._compileSafeIdivNode(n,r):t===z.mod?this._compileModNode(n,r):t===z.atan?this._compileAtanNode(n,r):t===z.and||t===z.or||t===z.xor?this._compileBitwiseNode(t,n,r):this._compileStandardBinaryNode(t,n,r)}_compileNodeAsBoolI32(t){if(t.type===B.binary){let n=e.#t.get(t.op);if(n!==void 0)return!this._compileNode(t.second)||!this._compileNode(t.first)?!1:(this._code.push(n),!0);if(t.valueType===oc.boolean&&(t.op===z.and||t.op===z.or||t.op===z.xor)){if(!this._compileNodeAsBoolI32(t.second)||!this._compileNodeAsBoolI32(t.first))return!1;switch(t.op){case z.and:this._code.push(H.i32_and);break;case z.or:this._code.push(H.i32_or);break;case z.xor:this._code.push(H.i32_xor);break}return!0}}return t.type===B.unary&&t.op===z.not&&t.valueType===oc.boolean?this._compileNodeAsBoolI32(t.operand)?(this._code.push(H.i32_eqz),!0):!1:this._compileNode(t)?(t.valueType===oc.boolean?this._code.push(H.i32_trunc_f64_s):(this._emitF64Const(0),this._code.push(H.f64_ne)),!0):!1}_compileTernaryNode(e){return!this._compileNodeAsBoolI32(e.cond)||(this._code.push(H.if,124),!this._compileNode(e.then))||(this._code.push(H.else),!this._compileNode(e.otherwise))?!1:(this._code.push(H.end),!0)}compile(t){let n=new Ec().evaluate(t,this._nIn);if(!n||n.length<this._nOut)return null;let r=this._code;for(let e=0;e<this._nOut;e++){let t=this._range[e*2],i=this._range[e*2+1];if(r.push(H.i32_const),this._emitULEB128(e*8),!this._compileNode(n[e]))return null;this._emitF64Const(i),r.push(H.f64_min),this._emitF64Const(t),r.push(H.f64_max,H.f64_store,3,0)}r.push(H.end);let i=this._nIn,a=this._nextLocal-i,o=Array(i).fill(124),s=[],c=[96,...Ic(o),...Ic(s)],l=new Uint8Array(Fc(Mc.type,Ic([c,...e.#a]))),u=Ic(a>0?[[...Nc(a),124]]:[]),d=u.length+r.length,f=new Uint8Array(Fc(Mc.code,Ic([[...Nc(d),...u,...r]]))),p=e.#u,m=e.#o,h=e.#s,g=e.#c,_=e.#l,v=p.length+l.length+m.length+h.length+g.length+_.length+f.length,y=new Uint8Array(v),b=0;return y.set(p,b),b+=p.length,y.set(l,b),b+=l.length,y.set(m,b),b+=m.length,y.set(h,b),b+=h.length,y.set(g,b),b+=g.length,y.set(_,b),b+=_.length,y.set(f,b),y}};function Bc(e,t,n){return new zc(t,n).compile(bc(e))}function Vc(e,t,n){let{fn:r,mem:i}=e,a=new Float64Array(i.buffer,0,n),o;switch(n){case 1:o=(e,t)=>{e[t]=a[0]};break;case 2:o=(e,t)=>{e[t]=a[0],e[t+1]=a[1]};break;case 3:o=(e,t)=>{e[t]=a[0],e[t+1]=a[1],e[t+2]=a[2]};break;case 4:o=(e,t)=>{e[t]=a[0],e[t+1]=a[1],e[t+2]=a[2],e[t+3]=a[3]};break;default:o=(e,t)=>{for(let r=0;r<n;r++)e[t+r]=a[r]}}switch(t){case 1:return(e,t,n,i)=>{r(e[t]),o(n,i)};case 2:return(e,t,n,i)=>{r(e[t],e[t+1]),o(n,i)};case 3:return(e,t,n,i)=>{r(e[t],e[t+1],e[t+2]),o(n,i)};case 4:return(e,t,n,i)=>{r(e[t],e[t+1],e[t+2],e[t+3]),o(n,i)};default:{let e=new Float64Array(t);return(n,i,a,s)=>{for(let r=0;r<t;r++)e[r]=n[i+r];r(...e),o(a,s)}}}}function Hc(e,t,n){let r=Bc(e,t,n);if(!r)return null;try{return Vc(new WebAssembly.Instance(new WebAssembly.Module(r),Rc).exports,t.length>>1,n.length>>1)}catch{return null}}var Uc=class{constructor(e){this._onlyRefs=e?.onlyRefs===!0,this._onlyRefs||(this._nameRefMap=new Map,this._imageMap=new Map),this._imageCache=new Ie}getByName(e){this._onlyRefs&&M("Should not call `getByName` method.");let t=this._nameRefMap.get(e);return t?this.getByRef(t):this._imageMap.get(e)||null}getByRef(e){return this._imageCache.get(e)||null}set(e,t,n){M("Abstract method `set` called.")}},Wc=class extends Uc{set(e,t=null,n){if(typeof e!=`string`)throw Error(`LocalImageCache.set - expected "name" argument.`);if(t){if(this._imageCache.has(t))return;this._nameRefMap.set(e,t),this._imageCache.put(t,n);return}this._imageMap.has(e)||this._imageMap.set(e,n)}},Gc=class extends Uc{set(e=null,t=null,n){if(typeof e!=`string`&&!t)throw Error(`LocalColorSpaceCache.set - expected "name" and/or "ref" argument.`);if(t){if(this._imageCache.has(t))return;e!==null&&this._nameRefMap.set(e,t),this._imageCache.put(t,n);return}this._imageMap.has(e)||this._imageMap.set(e,n)}},Kc=class extends Uc{constructor(e){super({onlyRefs:!0})}set(e=null,t,n){if(!t)throw Error(`LocalFunctionCache.set - expected "ref" argument.`);this._imageCache.has(t)||this._imageCache.put(t,n)}},qc=class extends Uc{set(e,t=null,n){if(typeof e!=`string`)throw Error(`LocalGStateCache.set - expected "name" argument.`);if(t){if(this._imageCache.has(t))return;this._nameRefMap.set(e,t),this._imageCache.put(t,n);return}this._imageMap.has(e)||this._imageMap.set(e,n)}},Jc=class extends Uc{constructor(e){super({onlyRefs:!0})}set(e=null,t,n){if(!t)throw Error(`LocalTilingPatternCache.set - expected "ref" argument.`);this._imageCache.has(t)||this._imageCache.put(t,n)}},Yc=class extends Uc{constructor(e){super({onlyRefs:!0})}set(e=null,t,n){if(!t)throw Error(`RegionalImageCache.set - expected "ref" argument.`);this._imageCache.has(t)||this._imageCache.put(t,n)}},Xc=class extends Uc{constructor(e){super({onlyRefs:!0})}set(e=null,t,n){if(!t)throw Error(`GlobalColorSpaceCache.set - expected "ref" argument.`);this._imageCache.has(t)||this._imageCache.put(t,n)}clear(){this._imageCache.clear()}},Zc=class e{static NUM_PAGES_THRESHOLD=2;static MIN_IMAGES_TO_CACHE=10;static MAX_BYTE_SIZE=5e7;#e=new Fe;constructor(){this._refCache=new Ie,this._imageCache=new Ie}get#t(){let e=0;for(let t of this._imageCache)e+=t.byteSize;return e}get#n(){return!(this._imageCache.size<e.MIN_IMAGES_TO_CACHE||this.#t<e.MAX_BYTE_SIZE)}shouldCache(t,n){let r=this._refCache.get(t);return r||(r=new Set,this._refCache.put(t,r)),r.add(n),!(r.size<e.NUM_PAGES_THRESHOLD||!this._imageCache.has(t)&&this.#n)}addDecodeFailed(e){this.#e.put(e)}hasDecodeFailed(e){return this.#e.has(e)}addByteSize(e,t){let n=this._imageCache.get(e);n&&(n.byteSize||=t)}getData(t,n){let r=this._refCache.get(t);if(!r||r.size<e.NUM_PAGES_THRESHOLD)return null;let i=this._imageCache.get(t);return i?(r.add(n),i):null}setData(e,t){if(!this._refCache.has(e))throw Error(`GlobalImageCache.setData - expected "shouldCache" to have been called.`);if(!this._imageCache.has(e)){if(this.#n){j(`GlobalImageCache.setData - cache limit reached.`);return}this._imageCache.put(e,t)}}clear(e=!1){e||(this.#e.clear(),this._refCache.clear()),this._imageCache.clear()}};let Qc={SAMPLED:0,EXPONENTIAL_INTERPOLATION:2,STITCHING:3,POSTSCRIPT_CALCULATOR:4};var $c=class e{static#e=!0;static setOptions({useWasm:e}){this.#e=e}constructor({xref:e}){this.xref=e}get useWasm(){return e.#e}create(e,t=!1){let n,r;if(e instanceof R?n=e:e instanceof L?n=e.objId:e instanceof Ve&&(n=e.dict?.objId),n){let e=this._localFunctionCache.getByRef(n);if(e)return e}let i=this.xref.fetchIfRef(e);if(Array.isArray(i)){if(!t)throw Error(`PDFFunctionFactory.create - expected "parseArray" argument.`);r=tl.parseArray(this,i)}else r=tl.parse(this,i);return n&&this._localFunctionCache.set(null,n,r),r}get _localFunctionCache(){return P(this,`_localFunctionCache`,new Kc)}};function el(e){return Array.isArray(e)?pt(e,null)?e:e.map(e=>+e):null}var tl=class{static getSampleArray(e,t,n,r){let i=t;for(let t of e)i*=t;let a=Array(i),o=0,s=0,c=1/(2**n-1),l=r.getBytes((i*n+7)/8),u=0;for(let e=0;e<i;e++){for(;o<n;)s<<=8,s|=l[u++],o+=8;o-=n,a[e]=(s>>o)*c,s&=(1<<o)-1}return a}static parse(e,t){let n=t.dict||t,r=n.get(`FunctionType`);switch(r){case Qc.SAMPLED:return this.constructSampled(e,t,n);case Qc.EXPONENTIAL_INTERPOLATION:return this.constructInterpolated(e,n);case Qc.STITCHING:return this.constructStiched(e,n);case Qc.POSTSCRIPT_CALCULATOR:return this.constructPostScript(e,t,n)}throw new F(`Unknown function type: ${r}`)}static parseArray(e,t){let{xref:n}=e,r=[];for(let i of t)r.push(this.parse(e,n.fetchIfRef(i)));return function(e,t,n,i){for(let a=0,o=r.length;a<o;a++)r[a](e,t,n,i+a)}}static constructSampled(e,t,n){function r(e,t,n,r,i){return r+(e-t)*((i-r)/(n-t))}let i=el(n.getArray(`Domain`)),a=el(n.getArray(`Range`));if(!i||!a)throw new F(`No domain or range`);let o=i.length/2,s=a.length/2,c=el(n.getArray(`Size`)),l=n.get(`BitsPerSample`),u=n.get(`Order`)||1;u!==1&&A(`No support for cubic spline interpolation: `+u);let d=el(n.getArray(`Encode`));if(!d){d=[];for(let e=0;e<o;++e)d.push(0,c[e]-1)}let f=el(n.getArray(`Decode`))||a,p=this.getSampleArray(c,s,l,t);return function(e,t,n,l){let u=1<<o,m=new Float64Array(u).fill(1),h=new Uint32Array(u),g,_,v=s,y=1;for(g=0;g<o;++g){let n=i[2*g],a=i[2*g+1],o=r(rn(e[t+g],n,a),n,a,d[2*g],d[2*g+1]),s=c[g];o=rn(o,0,s-1);let l=o<s-1?Math.floor(o):o-1,f=l+1-o,p=o-l,b=l*v,x=b+v;for(_=0;_<u;_++)_&y?(m[_]*=p,h[_]+=x):(m[_]*=f,h[_]+=b);v*=s,y<<=1}for(_=0;_<s;++_){let e=0;for(g=0;g<u;g++)e+=p[h[g]+_]*m[g];e=r(e,0,1,f[2*_],f[2*_+1]),n[l+_]=rn(e,a[2*_],a[2*_+1])}}}static constructInterpolated(e,t){let n=el(t.getArray(`C0`))||[0],r=el(t.getArray(`C1`))||[1],i=t.get(`N`),a=[];for(let e=0,t=n.length;e<t;++e)a.push(r[e]-n[e]);let o=a.length;return function(e,t,r,s){let c=i===1?e[t]:e[t]**i;for(let e=0;e<o;++e)r[s+e]=n[e]+c*a[e]}}static constructStiched(e,t){let n=el(t.getArray(`Domain`));if(!n)throw new F(`No domain`);if(n.length/2!=1)throw new F(`Bad domain for stiched function`);let{xref:r}=e,i=[];for(let n of t.get(`Functions`))i.push(this.parse(e,r.fetchIfRef(n)));let a=el(t.getArray(`Bounds`)),o=el(t.getArray(`Encode`)),s=new Float32Array(1);return function(e,t,r,c){let l=rn(e[t],n[0],n[1]),u=a.length,d;for(d=0;d<u&&!(l<a[d]);++d);let f=d>0?a[d-1]:n[0],p=d<u?a[d]:n[1],m=o[2*d],h=o[2*d+1];s[0]=f===p?m:m+(l-f)*(h-m)/(p-f),i[d](s,0,r,c)}}static constructPostScript(e,t,n){let r=el(n.getArray(`Domain`)),i=el(n.getArray(`Range`));if(!r)throw new F(`No domain.`);if(!i)throw new F(`No range.`);let a=t.getString();try{if(e.useWasm){let e=Hc(a,r,i);if(e)return e}}catch{}return j(`Failed to compile PostScript function to wasm, falling back to JS`),jc(a,r,i)}};function nl(e){let t;if(e instanceof L)t=e;else if(e instanceof Ve)t=e.dict;else return!1;return t.has(`FunctionType`)}let rl=`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`.split(`.`),il=`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`.split(`.`);function al(e){return(e&1)!=0}function ol(e){return(e&1)==0}function sl(e,t,n){let r,i;for(r=t,i=e.length;r<i;++r)if(e[r]!==n)return r;return r}function cl(e,t,n){for(let r=t,i=n-1;r<i;++r,--i){let t=e[r];e[r]=e[i],e[i]=t}}function ll(e,t,n=!1){let r=`ltr`;return n?r=`ttb`:t||(r=`rtl`),{str:e,dir:r}}let ul=[],dl=[];function fl(e,t=-1,n=!1){let r=!0,i=e.length;if(i===0||n)return ll(e,r,n);ul.length=i,dl.length=i;let a=0,o,s;for(o=0;o<i;++o){ul[o]=e.charAt(o);let t=e.charCodeAt(o),n=`L`;t<=255?n=rl[t]:1424<=t&&t<=1524?n=`R`:1536<=t&&t<=1791?(n=il[t&255],n||j(`Bidi: invalid Unicode character `+t.toString(16))):(1792<=t&&t<=2220||64336<=t&&t<=65023||65136<=t&&t<=65279)&&(n=`AL`),(n===`R`||n===`AL`||n===`AN`)&&a++,dl[o]=n}if(a===0)return r=!0,ll(e,r);t===-1&&(a/i<.3&&i>4?(r=!0,t=0):(r=!1,t=1));let c=[];for(o=0;o<i;++o)c[o]=t;let l=al(t)?`R`:`L`,u=l,d=u,f=u;for(o=0;o<i;++o)dl[o]===`NSM`?dl[o]=f:f=dl[o];f=u;let p;for(o=0;o<i;++o)p=dl[o],p===`EN`?dl[o]=f===`AL`?`AN`:`EN`:(p===`R`||p===`L`||p===`AL`)&&(f=p);for(o=0;o<i;++o)p=dl[o],p===`AL`&&(dl[o]=`R`);for(o=1;o<i-1;++o)dl[o]===`ES`&&dl[o-1]===`EN`&&dl[o+1]===`EN`&&(dl[o]=`EN`),dl[o]===`CS`&&(dl[o-1]===`EN`||dl[o-1]===`AN`)&&dl[o+1]===dl[o-1]&&(dl[o]=dl[o-1]);for(o=0;o<i;++o)if(dl[o]===`EN`){for(let e=o-1;e>=0&&dl[e]===`ET`;--e)dl[e]=`EN`;for(let e=o+1;e<i&&dl[e]===`ET`;++e)dl[e]=`EN`}for(o=0;o<i;++o)p=dl[o],(p===`WS`||p===`ES`||p===`ET`||p===`CS`)&&(dl[o]=`ON`);for(f=u,o=0;o<i;++o)p=dl[o],p===`EN`?dl[o]=f===`L`?`L`:`EN`:(p===`R`||p===`L`)&&(f=p);for(o=0;o<i;++o)if(dl[o]===`ON`){let e=sl(dl,o+1,`ON`),t=u;for(let e=o-1;e>=0;e--){let n=dl[e];if(n===`L`){t=`L`;break}if(n===`R`||n===`EN`||n===`AN`){t=`R`;break}}let n=d;for(let t=e;t<i;t++){let e=dl[t];if(e===`L`){n=`L`;break}if(e===`R`||e===`EN`||e===`AN`){n=`R`;break}}t===n&&dl.fill(t,o,e),o=e-1}for(o=0;o<i;++o)dl[o]===`ON`&&(dl[o]=l);for(o=0;o<i;++o)p=dl[o],ol(c[o])?p===`R`?c[o]+=1:(p===`AN`||p===`EN`)&&(c[o]+=2):(p===`L`||p===`AN`||p===`EN`)&&(c[o]+=1);let m=-1,h=99,g;for(o=0,s=c.length;o<s;++o)g=c[o],m<g&&(m=g),h>g&&al(g)&&(h=g);for(g=m;g>=h;--g){let e=-1;for(o=0,s=c.length;o<s;++o)c[o]<g?e>=0&&(cl(ul,e,o),e=-1):e<0&&(e=o);e>=0&&cl(ul,e,c.length)}for(o=0,s=ul.length;o<s;++o){let e=ul[o];(e===`<`||e===`>`)&&(ul[o]=``)}return ll(ul.join(``),r)}let pl={style:`normal`,weight:`normal`},ml={style:`normal`,weight:`500`},hl={style:`normal`,weight:`bold`},gl={style:`italic`,weight:`normal`},_l={style:`italic`,weight:`bold`},vl=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:pl,ultimate:`serif`}],[`Times-Bold`,{alias:`Times-Roman`,style:hl,ultimate:`serif`}],[`Times-Italic`,{alias:`Times-Roman`,style:gl,ultimate:`serif`}],[`Times-BoldItalic`,{alias:`Times-Roman`,style:_l,ultimate:`serif`}],[`Helvetica`,{local:[`Helvetica`,`Helvetica Neue`,`Arial`,`Arial Nova`,`Liberation Sans`,`Arimo`,`Nimbus Sans`,`Nimbus Sans L`,`A030`,`TeX Gyre Heros`,`FreeSans`,`DejaVu Sans`,`Albany`,`Bitstream Vera Sans`,`Arial Unicode MS`,`Microsoft Sans Serif`,`Apple Symbols`,`Cantarell`],path:`LiberationSans-Regular.ttf`,style:pl,ultimate:`sans-serif`}],[`Helvetica-Bold`,{alias:`Helvetica`,path:`LiberationSans-Bold.ttf`,style:hl,ultimate:`sans-serif`}],[`Helvetica-Oblique`,{alias:`Helvetica`,path:`LiberationSans-Italic.ttf`,style:gl,ultimate:`sans-serif`}],[`Helvetica-BoldOblique`,{alias:`Helvetica`,path:`LiberationSans-BoldItalic.ttf`,style:_l,ultimate:`sans-serif`}],[`Courier`,{local:[`Courier`,`Courier New`,`Liberation Mono`,`Nimbus Mono`,`Nimbus Mono L`,`Cousine`,`Cumberland`,`TeX Gyre Cursor`,`FreeMono`,`Linux Libertine Mono O`,`Libertinus Mono`],style:pl,ultimate:`monospace`}],[`Courier-Bold`,{alias:`Courier`,style:hl,ultimate:`monospace`}],[`Courier-Oblique`,{alias:`Courier`,style:gl,ultimate:`monospace`}],[`Courier-BoldOblique`,{alias:`Courier`,style:_l,ultimate:`monospace`}],[`ArialBlack`,{local:[`Arial Black`],style:{style:`normal`,weight:`900`},fallback:`Helvetica-Bold`}],[`ArialBlack-Bold`,{alias:`ArialBlack`}],[`ArialBlack-Italic`,{alias:`ArialBlack`,style:{style:`italic`,weight:`900`},fallback:`Helvetica-BoldOblique`}],[`ArialBlack-BoldItalic`,{alias:`ArialBlack-Italic`}],[`ArialNarrow`,{local:[`Arial Narrow`,`Liberation Sans Narrow`,`Helvetica Condensed`,`Nimbus Sans Narrow`,`TeX Gyre Heros Cn`],style:pl,fallback:`Helvetica`}],[`ArialNarrow-Bold`,{alias:`ArialNarrow`,style:hl,fallback:`Helvetica-Bold`}],[`ArialNarrow-Italic`,{alias:`ArialNarrow`,style:gl,fallback:`Helvetica-Oblique`}],[`ArialNarrow-BoldItalic`,{alias:`ArialNarrow`,style:_l,fallback:`Helvetica-BoldOblique`}],[`Calibri`,{local:[`Calibri`,`Carlito`],style:pl,fallback:`Helvetica`}],[`Calibri-Bold`,{alias:`Calibri`,style:hl,fallback:`Helvetica-Bold`}],[`Calibri-Italic`,{alias:`Calibri`,style:gl,fallback:`Helvetica-Oblique`}],[`Calibri-BoldItalic`,{alias:`Calibri`,style:_l,fallback:`Helvetica-BoldOblique`}],[`Wingdings`,{local:[`Wingdings`,`URW Dingbats`],style:pl}],[`Wingdings-Regular`,{alias:`Wingdings`}],[`Wingdings-Bold`,{alias:`Wingdings`}],[`ËÎÌå`,{local:[`SimSun`,`SimSun Regular`,`NSimSun`],style:pl,ultimate:`serif`}],[`ºÚÌå`,{local:[`SimHei`,`SimHei Regular`],style:pl,ultimate:`sans-serif`}],[`¿¬Ìå`,{local:[`KaiTi`,`SimKai`,`SimKai Regular`],style:pl,ultimate:`sans-serif`}],[`·ÂËÎ`,{local:[`FangSong`,`SimFang`,`SimFang Regular`],style:pl,ultimate:`serif`}],[`¿¬Ìå_GB2312`,{alias:`¿¬Ìå`}],[`·ÂËÎ_GB2312`,{alias:`·ÂËÎ`}],[`Á¥Êé`,{local:[`SimLi`,`SimLi Regular`],style:pl,ultimate:`serif`}],[`ÐÂËÎ`,{alias:`ËÎÌå`}],[`HeiseiMin-W3`,{local:[`Hiragino Mincho ProN`,`Hiragino Mincho Pro`,`Yu Mincho`,`YuMincho`,`Source Han Serif JP`,`Noto Serif JP`,`Noto Serif CJK JP`,`IPAexMincho`,`IPAMincho`,`Takao Mincho`,`MS Mincho`,`MS PMincho`],style:pl,ultimate:`serif`}],[`HeiseiKakuGo-W5`,{local:[`Hiragino Kaku Gothic ProN`,`Hiragino Kaku Gothic Pro`,`Hiragino Sans`,`Yu Gothic`,`YuGothic`,`Source Han Sans JP`,`Noto Sans JP`,`Noto Sans CJK JP`,`IPAexGothic`,`IPAGothic`,`Takao Gothic`,`Meiryo`,`MS Gothic`,`MS PGothic`],style:ml,ultimate:`sans-serif`}],[`HeiseiMin-W3-Acro`,{alias:`HeiseiMin-W3`}],[`HeiseiKakuGo-W5-Acro`,{alias:`HeiseiKakuGo-W5`}],[`KozMinPro-Regular`,{alias:`HeiseiMin-W3`}],[`KozMinProVI-Regular`,{alias:`HeiseiMin-W3`}],[`KozMinPr6N-Regular`,{alias:`HeiseiMin-W3`}],[`KozGoPro-Regular`,{alias:`HeiseiKakuGo-W5`}],[`KozGoProVI-Regular`,{alias:`HeiseiKakuGo-W5`}],[`KozGoPr6N-Regular`,{alias:`HeiseiKakuGo-W5`}],[`STSong-Light`,{local:[`STSong`,`Songti SC`,`Source Han Serif SC`,`Source Han Serif CN`,`Noto Serif SC`,`Noto Serif CJK SC`,`AR PL UMing CN`,`SimSun`,`NSimSun`],style:pl,ultimate:`serif`}],[`STHeiti-Regular`,{local:[`STHeiti`,`Heiti SC`,`PingFang SC`,`Source Han Sans SC`,`Source Han Sans CN`,`Noto Sans SC`,`Noto Sans CJK SC`,`Microsoft YaHei`,`SimHei`,`WenQuanYi Zen Hei`],style:pl,ultimate:`sans-serif`}],[`STSongStd-Light`,{alias:`STSong-Light`}],[`AdobeSongStd-Light`,{alias:`STSong-Light`}],[`AdobeHeitiStd-Regular`,{alias:`STHeiti-Regular`}],[`AdobeKaitiStd-Regular`,{alias:`¿¬Ìå`}],[`AdobeFangsongStd-Regular`,{alias:`·ÂËÎ`}],[`MSung-Light`,{local:[`Songti TC`,`LiSong Pro`,`Source Han Serif TC`,`Source Han Serif TW`,`Noto Serif TC`,`Noto Serif CJK TC`,`AR PL UMing TW`,`PMingLiU`,`MingLiU`,`MingLiU_HKSCS`],style:pl,ultimate:`serif`}],[`MHei-Medium`,{local:[`Heiti TC`,`STHeiti`,`Source Han Sans TC`,`Source Han Sans TW`,`Noto Sans TC`,`Noto Sans CJK TC`,`PingFang TC`,`Microsoft JhengHei`],style:ml,ultimate:`sans-serif`}],[`MSungStd-Light`,{alias:`MSung-Light`}],[`AdobeMingStd-Light`,{alias:`MSung-Light`}],[`HYSMyeongJo-Medium`,{local:[`AppleMyungjo`,`Source Han Serif KR`,`Noto Serif KR`,`Noto Serif CJK KR`,`Nanum Myeongjo`,`Batang`],style:ml,ultimate:`serif`}],[`HYGoThic-Medium`,{local:[`Apple SD Gothic Neo`,`AppleGothic`,`Source Han Sans KR`,`Noto Sans KR`,`Noto Sans CJK KR`,`Nanum Gothic`,`Malgun Gothic`,`Dotum`,`Gulim`],style:ml,ultimate:`sans-serif`}],[`HYSMyeongJoStd-Medium`,{alias:`HYSMyeongJo-Medium`}],[`AdobeMyungjoStd-Medium`,{alias:`HYSMyeongJo-Medium`}],[`HYGoThic-Bold`,{alias:`HYGoThic-Medium`,style:hl}],[`AdobeGothicStd-Bold`,{alias:`HYGoThic-Medium`,style:hl}]]),yl=new Map([[`Arial-Black`,`ArialBlack`]]);function bl(e){switch(e){case hl:return`Bold`;case gl:return`Italic`;case _l:return`Bold Italic`;default:if(e?.weight===`bold`)return`Bold`;if(e?.style===`italic`)return`Italic`}return``}function xl(e){let t=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`.split(`.`));return e.split(/[- ,+]+/g).filter(e=>!t.has(e.toLowerCase())).join(` `)}function Sl({alias:e,local:t,path:n,fallback:r,style:i,ultimate:a},o,s,c=!0,l=!0,u=``){let d={style:null,ultimate:null};if(t){let e=u?` ${u}`:``;for(let n of t)o.push(`local(${n}${e})`)}if(e){let t=vl.get(e),a=u||bl(i);Object.assign(d,Sl(t,o,s,c&&!r,l&&!n,a))}if(i&&(d.style=i),a&&(d.ultimate=a),c&&r){let{ultimate:e}=Sl(vl.get(r),o,s,c,l&&!n,u);d.ultimate||=e}return l&&n&&s&&o.push(`url(${s}${n})`),d}function Cl(e,t,n,r,i,a){if(r.startsWith(`InvalidPDFjsFont_`))return null;(a===`TrueType`||a===`Type1`)&&/^[A-Z]{6}\\+/.test(r)&&(r=r.slice(7)),r=sa(r);let o=r,s=e.get(o);if(s)return s;let c=vl.get(r);if(!c){for(let[e,t]of yl)if(r.startsWith(e)){r=`${t}${r.substring(e.length)}`,c=vl.get(r);break}}let l=!1;c||(c=vl.get(i),l=!0);let u=`${t.getDocId()}_s${t.createFontId()}`;if(!c){if(!Tt(r))return j(`Cannot substitute the font because of its name: ${r}`),e.set(o,null),null;let t=/bold/i.test(r),n=/oblique|italic/i.test(r),i=t&&n&&_l||t&&hl||n&&gl||pl;return s={css:`"${xl(r)}",${u}`,guessFallback:!0,loadedName:u,baseFontName:r,src:`local(${r})`,style:i},e.set(o,s),s}let d=[];l&&Tt(r)&&d.push(`local(${r})`);let{style:f,ultimate:p}=Sl(c,d,n),m=p===null,h=m?``:`,${p}`;return s={css:`"${xl(r)}",${u}${h}`,guessFallback:m,loadedName:u,baseFontName:r,src:d.join(`,`),style:f},e.set(o,s),s}let wl=3285377520,Tl=4294901760,El=65535;var Dl=class{constructor(e){this.h1=e?e&4294967295:wl,this.h2=e?e&4294967295:wl}update(e){let t,n;if(typeof e==`string`){t=new Uint8Array(e.length*2),n=0;for(let r=0,i=e.length;r<i;r++){let i=e.charCodeAt(r);i<=255?t[n++]=i:(t[n++]=i>>>8,t[n++]=i&255)}}else if(ArrayBuffer.isView(e))t=e.slice(),n=t.byteLength;else throw Error(`Invalid data format, must be a string or TypedArray.`);let r=n>>2,i=n-r*4,a=new Uint32Array(t.buffer,0,r),o=0,s=0,c=this.h1,l=this.h2,u=3432918353,d=461845907,f=11601,p=13715;for(let e=0;e<r;e++)e&1?(o=a[e],o=o*u&Tl|o*f&El,o=o<<15|o>>>17,o=o*d&Tl|o*p&El,c^=o,c=c<<13|c>>>19,c=c*5+3864292196):(s=a[e],s=s*u&Tl|s*f&El,s=s<<15|s>>>17,s=s*d&Tl|s*p&El,l^=s,l=l<<13|l>>>19,l=l*5+3864292196);switch(o=0,i){case 3:o^=t[r*4+2]<<16;case 2:o^=t[r*4+1]<<8;case 1:o^=t[r*4],o=o*u&Tl|o*f&El,o=o<<15|o>>>17,o=o*d&Tl|o*p&El,r&1?c^=o:l^=o}this.h1=c,this.h2=l}hexdigest(){let e=this.h1,t=this.h2;return e^=t>>>1,e=e*3981806797&Tl|e*36045&El,t=t*4283543511&Tl|((t<<16|e>>>16)*2950163797&Tl)>>>16,e^=t>>>1,e=e*444984403&Tl|e*60499&El,t=t*3301882366&Tl|((t<<16|e>>>16)*3120437893&Tl)>>>16,e^=t>>>1,(e>>>0).toString(16).padStart(8,`0`)+(t>>>0).toString(16).padStart(8,`0`)}};function Ol(e,t,n,r){if(++n>10){j(`Visibility expression is too deeply nested`);return}let i=t.length,a=e.fetchIfRef(t[0]);if(i<2||!(a instanceof I)){j(`Invalid visibility expression`);return}switch(a.name){case`And`:case`Or`:case`Not`:r.push(a.name);break;default:j(`Invalid operator ${a.name} in visibility expression`);return}for(let a=1;a<i;a++){let i=t[a],o=e.fetchIfRef(i);if(Array.isArray(o)){let t=[];r.push(t),Ol(e,o,n,t)}else i instanceof R&&r.push(i.toString())}}function kl(e,t,n){let r;if(t instanceof I)r=n.get(`Properties`).get(t.name);else if(t instanceof L)r=t;else throw new F(`Optional content properties malformed.`);let i=r.get(`Type`)?.name;if(i===`OCG`)return{type:i,id:r.objId};if(i===`OCMD`){let t=r.get(`VE`);if(Array.isArray(t)){let n=[];if(Ol(e,t,0,n),n.length>0)return{type:`OCMD`,expression:n}}let n=r.get(`OCGs`);if(Array.isArray(n)||n instanceof L){let e=[];if(Array.isArray(n))for(let t of n)e.push(t.toString());else e.push(n.objId);let t=r.get(`P`);return{type:i,ids:e,policy:t instanceof I?t.name:null,expression:null}}else if(n instanceof R)return{type:i,id:n.toString()}}return null}var Al=class e{constructor({xref:t,res:n,image:r,isInline:i=!1,smask:a=null,mask:o=null,isMask:s=!1,pdfFunctionFactory:c,globalColorSpaceCache:l,localColorSpaceCache:u}){this.image=r;let d=r.dict,f=d.get(`F`,`Filter`),p;if(f instanceof I)p=f.name;else if(Array.isArray(f)){let e=t.fetchIfRef(f[0]);e instanceof I&&(p=e.name)}switch(p){case`JPXDecode`:({width:r.width,height:r.height,componentsCount:r.numComps,bitsPerComponent:r.bitsPerComponent}=ei.parseImageProperties(r.stream)),r.stream.reset();let e=Nn.getReducePowerForJPX(r.width,r.height,r.numComps);if(this.jpxDecoderOptions={numComponents:0,isIndexedColormap:!1,smaskInData:d.has(`SMaskInData`),reducePower:e},e){let t=2**e;r.width=Math.ceil(r.width/t),r.height=Math.ceil(r.height/t)}break;case`JBIG2Decode`:r.bitsPerComponent=1,r.numComps=1;break}let m=d.get(`W`,`Width`),h=d.get(`H`,`Height`);if(Number.isInteger(r.width)&&r.width>0&&Number.isInteger(r.height)&&r.height>0&&(r.width!==m||r.height!==h))j(`PDFImage - using the Width/Height of the image data, rather than the image dictionary.`),m=r.width,h=r.height;else{let e=typeof m==`number`&&m>0,t=typeof h==`number`&&h>0;if(!e||!t){if(!r.fallbackDims)throw new F(`Invalid image width: ${m} or height: ${h}`);j(`PDFImage - using the Width/Height of the parent image, for SMask/Mask data.`),e||(m=r.fallbackDims.width),t||(h=r.fallbackDims.height)}}this.width=m,this.height=h,this.interpolate=d.get(`I`,`Interpolate`),this.imageMask=d.get(`IM`,`ImageMask`)||!1,this.matte=d.get(`Matte`)||!1;let g=r.bitsPerComponent;if(!g&&(g=d.get(`BPC`,`BitsPerComponent`),!g))if(this.imageMask)g=1;else throw new F(`Bits per component missing in image: ${this.imageMask}`);if(this.bpc=g,this.imageMask)this.numComps=1;else{let e=d.getRaw(`CS`)||d.getRaw(`ColorSpace`),a=!!e;if(a)this.jpxDecoderOptions?.smaskInData&&(e=I.get(`DeviceRGBA`));else if(this.jpxDecoderOptions)e=I.get(`DeviceRGBA`);else switch(r.numComps){case 1:e=I.get(`DeviceGray`);break;case 3:e=I.get(`DeviceRGB`);break;case 4:e=I.get(`DeviceCMYK`);break;default:throw Error(`Images with ${r.numComps} color components not supported.`)}this.colorSpace=Ln.parse({cs:e,xref:t,resources:i?n:null,pdfFunctionFactory:c,globalColorSpaceCache:l,localColorSpaceCache:u}),this.numComps=this.colorSpace.numComps,this.jpxDecoderOptions&&(this.jpxDecoderOptions.numComponents=a?this.numComps:0,this.jpxDecoderOptions.isIndexedColormap=this.colorSpace.name===`Indexed`)}if(this.decode=d.getArray(`D`,`Decode`),this.needsDecode=!1,this.decode&&(this.colorSpace&&!this.colorSpace.isDefaultDecode(this.decode,g)||s&&!ln.isDefaultDecode(this.decode,1))){this.needsDecode=!0;let e=(1<<g)-1;this.decodeCoefficients=[],this.decodeAddends=[];let t=this.colorSpace?.name===`Indexed`;for(let n=0,r=0;n<this.decode.length;n+=2,++r){let i=this.decode[n],a=this.decode[n+1];this.decodeCoefficients[r]=t?(a-i)/e:a-i,this.decodeAddends[r]=t?i:e*i}}a?(a.fallbackDims??={width:m,height:h},this.smask=new e({xref:t,res:n,image:a,isInline:i,pdfFunctionFactory:c,globalColorSpaceCache:l,localColorSpaceCache:u})):o&&(o instanceof Ve?o.dict.get(`IM`,`ImageMask`)?(o.fallbackDims??={width:m,height:h},this.mask=new e({xref:t,res:n,image:o,isInline:i,isMask:!0,pdfFunctionFactory:c,globalColorSpaceCache:l,localColorSpaceCache:u})):j(`Ignoring /Mask in image without /ImageMask.`):this.mask=o)}static async buildImage({xref:t,res:n,image:r,isInline:i=!1,pdfFunctionFactory:a,globalColorSpaceCache:o,localColorSpaceCache:s}){let c=r,l=null,u=null,d=r.dict.get(`SMask`),f=r.dict.get(`Mask`);return d?d instanceof Ve?l=d:j(`Unsupported /SMask format.`):f&&(f instanceof Ve||Array.isArray(f)?u=f:j(`Unsupported /Mask format.`)),new e({xref:t,res:n,image:c,isInline:i,smask:l,mask:u,pdfFunctionFactory:a,globalColorSpaceCache:o,localColorSpaceCache:s})}static async createMask({image:e,isOffscreenCanvasSupported:t=!1}){let{dict:n}=e,r=n.get(`W`,`Width`),i=n.get(`H`,`Height`),a=n.get(`I`,`Interpolate`),o=n.getArray(`D`,`Decode`)?.[0]>0,s=(r+7>>3)*i,c=await e.getImageData(s),l=r===1&&i===1&&o===(c.length===0||!!(c[0]&128));if(l)return{isSingleOpaquePixel:l};if(t){if(Nn.needsToBeResized(r,i)){let e=new Uint8ClampedArray(r*i*4);return kn({src:c,dest:e,width:r,height:i,nonBlackColor:0,inverseDecode:o}),Nn.createImage({kind:_.RGBA_32BPP,data:e,width:r,height:i,interpolate:a})}let e=new OffscreenCanvas(r,i),t=e.getContext(`2d`),n=t.createImageData(r,i);return kn({src:c,dest:n.data,width:r,height:i,nonBlackColor:0,inverseDecode:o}),t.putImageData(n,0,0),{data:null,width:r,height:i,interpolate:a,bitmap:e.transferToImageBitmap()}}let u=c.byteLength,d=s===u,f;if(e instanceof Fn&&(!o||d)?f=c:o?(f=new Uint8Array(s),f.set(c),f.fill(255,u)):f=new Uint8Array(c),o)for(let e=0;e<u;e++)f[e]^=255;return{data:f,width:r,height:i,interpolate:a}}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(e){let t=this.bpc,n=this.numComps,r=this.decodeAddends,i=this.decodeCoefficients,a=(1<<t)-1,o,s;if(t===1){for(o=0,s=e.length;o<s;o++)e[o]=+!e[o];return}let c=0;for(o=0,s=this.width*this.height;o<s;o++)for(let t=0;t<n;t++)e[c]=rn(r[t]+e[c]*i[t],0,a),c++}getComponents(e){let t=this.bpc;if(t===8)return e;let n=this.width,r=this.height,i=this.numComps,a=n*r*i,o=0,s;s=t<=8?new Uint8Array(a):t<=16?new Uint16Array(a):new Uint32Array(a);let c=n*i,l=(1<<t)-1,u=0,d,f;if(t===1){let t,n,i;for(let a=0;a<r;a++){for(n=u+(c&-8),i=u+c;u<n;)f=e[o++],s[u]=f>>7&1,s[u+1]=f>>6&1,s[u+2]=f>>5&1,s[u+3]=f>>4&1,s[u+4]=f>>3&1,s[u+5]=f>>2&1,s[u+6]=f>>1&1,s[u+7]=f&1,u+=8;if(u<i)for(f=e[o++],t=128;u<i;)s[u++]=+!!(f&t),t>>=1}}else{let n=0;for(f=0,u=0,d=a;u<d;++u){for(u%c===0&&(f=0,n=0);n<t;)f=f<<8|e[o++],n+=8;let r=n-t,i=f>>r;i<0?i=0:i>l&&(i=l),s[u]=i,f&=(1<<r)-1,n=r}}return s}async fillOpacity(t,n,r,i,a){let o;if(this.smask)o=(e,t)=>this.smask.fillGrayBuffer(e,{...t,destWidth:n,destHeight:r});else if(this.mask)if(this.mask instanceof e)o=(e,t)=>this.mask.fillGrayBuffer(e,{...t,invertOutput:!0,destWidth:n,destHeight:r});else if(Array.isArray(this.mask))o=(e,{maxRows:t,offset:r,stride:i})=>{for(let o=0,s=n*t;o<s;++o){let t=0,n=o*this.numComps;for(let e=0;e<this.numComps;++e){let r=a[n+e],i=e*2;if(r<this.mask[i]||r>this.mask[i+1]){t=255;break}}e[o*i+r]=t}};else throw new F(`Unknown mask format.`);else o=(e,{maxRows:t,offset:r,stride:i})=>{for(let a=0,o=n*t;a<o;++a)e[a*i+r]=255};await o(t,{maxRows:i,offset:3,stride:4})}undoPreblend(e,t,n){let r=this.smask?.matte;if(!r)return;let i=this.colorSpace.getRgb(r,0),a=i[0],o=i[1],s=i[2],c=t*n*4;for(let t=0;t<c;t+=4){let n=e[t+3];if(n===0){e[t]=255,e[t+1]=255,e[t+2]=255;continue}let r=255/n;e[t]=(e[t]-a)*r+a,e[t+1]=(e[t+1]-o)*r+o,e[t+2]=(e[t+2]-s)*r+s}}async createImageData(e=!1,t=!1){let n=this.drawWidth,r=this.drawHeight,i={width:n,height:r,interpolate:this.interpolate,kind:0,data:null},a=this.numComps,o=this.width,s=this.height,c=this.bpc,l=o*a*c+7>>3,u=t&&Nn.needsToBeResized(n,r);if(!this.smask&&!this.mask&&this.colorSpace.name===`DeviceRGBA`){i.kind=_.RGBA_32BPP;let e=i.data=await this.getImageBytes(s*o*4,{internal:t&&u});return t?u?Nn.createImage(i,!1):this.createBitmap(_.RGBA_32BPP,n,r,e):i}if(!e){let e;if(this.colorSpace.name===`DeviceGray`&&c===1?e=_.GRAYSCALE_1BPP:this.colorSpace.name===`DeviceRGB`&&c===8&&!this.needsDecode&&(e=_.RGB_24BPP),e&&!this.smask&&!this.mask&&n===o&&r===s){let a=await this.#e(o,s);if(a)return a;let c=await this.getImageBytes(s*l,{internal:t&&u});if(t)return u?Nn.createImage({data:c,kind:e,width:n,height:r,interpolate:this.interpolate},this.needsDecode):this.createBitmap(e,o,s,c);if(i.kind=e,i.data=c,this.needsDecode){N(e===_.GRAYSCALE_1BPP,`PDFImage.createImageData: The image must be grayscale.`);let t=i.data;for(let e=0,n=t.length;e<n;e++)t[e]^=255}return i}if(this.image instanceof ar&&!this.smask&&!this.mask&&!this.needsDecode){let e=s*l;if(t&&!u){let t=!1;switch(this.colorSpace.name){case`DeviceGray`:e*=4,t=!0;break;case`DeviceRGB`:e=e/3*4,t=!0;break;case`DeviceCMYK`:t=!0;break}if(t){let t=await this.#e(n,r);if(t)return t;let i=await this.getImageBytes(e,{drawWidth:n,drawHeight:r,forceRGBA:!0,internal:!0});return this.createBitmap(_.RGBA_32BPP,n,r,i)}}else switch(this.colorSpace.name){case`DeviceGray`:e*=3;case`DeviceRGB`:case`DeviceCMYK`:return i.kind=_.RGB_24BPP,i.data=await this.getImageBytes(e,{drawWidth:n,drawHeight:r,forceRGB:!0,internal:u}),u?Nn.createImage(i):i}}}let d=await this.getImageBytes(s*l,{internal:!0}),f=0|d.length/l*r/s,p=this.getComponents(d),m,h,g,v,y,b;return t&&!u&&(g=new OffscreenCanvas(n,r),v=g.getContext(`2d`),y=v.createImageData(n,r),b=y.data),i.kind=_.RGBA_32BPP,!e&&!this.smask&&!this.mask?(!t||u?(i.kind=_.RGB_24BPP,b=new Uint8ClampedArray(n*r*3),m=0):(new Uint32Array(b.buffer).fill(he.isLittleEndian?4278190080:255),m=1),h=!1):((!t||u)&&(b=new Uint8ClampedArray(n*r*4)),m=1,h=!0,await this.fillOpacity(b,n,r,f,p)),this.needsDecode&&this.decodeBuffer(p),this.colorSpace.fillRgb(b,o,s,n,r,f,c,p,m),h&&this.undoPreblend(b,n,f),t&&!u?(v.putImageData(y,0,0),{data:null,width:n,height:r,bitmap:g.transferToImageBitmap(),interpolate:this.interpolate}):(i.data=b,u?Nn.createImage(i):i)}async fillGrayBuffer(e,{destWidth:t,destHeight:n,invertOutput:r,maxRows:i,offset:a=0,stride:o=1}={}){let s=this.numComps;if(s!==1)throw new F(`Reading gray scale from a color image: ${s}`);let c=this.width,l=this.height,u=this.bpc,d=c*s*u+7>>3,f=await this.getImageBytes(l*d,{internal:!0}),p=this.getComponents(f),m=t??c,h=n??l,g=m!==c||h!==l,_=i===void 0?h:Math.min(h,i),v=c,y=0,b=null;if(g){v=m,y=l/h;let e=c/m;b=new Uint32Array(m);for(let t=0;t<m;t++)b[t]=Math.floor(t*e)}let x=r?255:0;if(u===1){if(b){let t=b,n=a;if(this.needsDecode)for(let r=0;r<_;r++){let i=Math.floor(r*y)*c;for(let r=0;r<v;r++)e[n]=p[i+t[r]]-1&255^x,n+=o}else for(let r=0;r<_;r++){let i=Math.floor(r*y)*c;for(let r=0;r<v;r++)e[n]=-p[i+t[r]]&255^x,n+=o}}else{let t=v*_;if(this.needsDecode)for(let n=0;n<t;++n)e[n*o+a]=p[n]-1&255^x;else for(let n=0;n<t;++n)e[n*o+a]=-p[n]&255^x}return}this.needsDecode&&this.decodeBuffer(p);let S=255/((1<<u)-1);if(b){let t=b,n=a;for(let r=0;r<_;r++){let i=Math.floor(r*y)*c;for(let r=0;r<v;r++)e[n]=S*p[i+t[r]]^x,n+=o}}else{let t=v*_;for(let n=0;n<t;++n)e[n*o+a]=S*p[n]^x}}createBitmap(e,t,n,r){let i=new OffscreenCanvas(t,n),a=i.getContext(`2d`),o;return e===_.RGBA_32BPP?o=new ImageData(r,t,n):(o=a.createImageData(t,n),On({kind:e,src:r,dest:new Uint32Array(o.data.buffer),width:t,height:n,inverseDecode:this.needsDecode})),a.putImageData(o,0,0),{data:null,width:t,height:n,bitmap:i.transferToImageBitmap(),interpolate:this.interpolate}}async#e(e,t){let n=await this.image.getTransferableImage();return n?{data:null,width:e,height:t,bitmap:n,interpolate:this.interpolate}:null}async getImageBytes(e,{drawWidth:t,drawHeight:n,forceRGBA:r=!1,forceRGB:i=!1,internal:a=!1}){this.image.reset(),this.image.drawWidth=t||this.width,this.image.drawHeight=n||this.height,this.image.forceRGBA=!!r,this.image.forceRGB=!!i;let o=await this.image.getImageData(e,this.jpxDecoderOptions);return a||this.image instanceof Fn?o:(N(o instanceof Uint8Array,`PDFImage.getImageBytes: Unsupported "imageBytes" type.`),new Uint8Array(o))}};let jl=Object.freeze({maxImageSize:-1,disableFontFace:!1,ignoreErrors:!1,isOffscreenCanvasSupported:!1,isImageDecoderSupported:!1,canvasMaxAreaInBytes:-1,fontExtraProperties:!1,useSystemFonts:!0,useWasm:!0,useWorkerFetch:!0,cMapUrl:null,cMapPacked:!0,iccUrl:null,standardFontDataUrl:null,wasmUrl:null,hasGPU:!1}),Ml={TILING:1,SHADING:2},Nl=Promise.resolve();function Pl(e,t=!1){if(Array.isArray(e)){for(let t of e){let e=Pl(t,!0);if(e)return e}return j(`Unsupported blend mode Array: ${e}`),`source-over`}if(!(e instanceof I))return t?null:`source-over`;switch(e.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 t?null:(j(`Unsupported blend mode: ${e.name}`),`source-over`)}function Fl(e,{objId:t,fn:n,args:r,optionalContent:i,hasMask:a}){t&&e.addDependency(t),e.addImageOps(n,r,i,a),n===D.paintImageMaskXObject&&r[0]?.count>0&&r[0].count++}var Il=class e{static TIME_SLOT_DURATION_MS=20;static CHECK_TIME_EVERY=100;constructor(){this.reset()}check(){return++this.checked<e.CHECK_TIME_EVERY?!1:(this.checked=0,this.endTime<=Date.now())}reset(){this.endTime=Date.now()+e.TIME_SLOT_DURATION_MS,this.checked=0}},Ll=class e{constructor({xref:e,handler:t,pageIndex:n,idFactory:r,fontCache:i,builtInCMapCache:a,standardFontDataCache:o,globalColorSpaceCache:s,globalImageCache:c,systemFontCache:l,options:u=null}){this.xref=e,this.handler=t,this.pageIndex=n,this.idFactory=r,this.fontCache=i,this.builtInCMapCache=a,this.standardFontDataCache=o,this.globalColorSpaceCache=s,this.globalImageCache=c,this.systemFontCache=l,this.options=u||jl,this.type3FontRefs=null,this._regionalImageCache=new Yc,this._fetchBuiltInCMapBound=this.fetchBuiltInCMap.bind(this)}get _pdfFunctionFactory(){return P(this,`_pdfFunctionFactory`,new $c({xref:this.xref}))}get parsingType3Font(){return!!this.type3FontRefs}clone(e=null){let t=Object.create(this);return t.options=Object.assign(Object.create(null),this.options,e),t}hasBlendModes(e,t){if(!(e instanceof L)||e.objId&&t.has(e.objId))return!1;let n=new Fe(t);e.objId&&n.put(e.objId);let r=[e],i=this.xref;for(;r.length;){let e=r.shift(),t=e.get(`ExtGState`);if(t instanceof L)for(let e of t.getRawValues()){if(e instanceof R){if(n.has(e))continue;try{e=i.fetch(e)}catch(t){n.put(e),A(`hasBlendModes - ignoring ExtGState: "${t}".`);continue}}if(!(e instanceof L))continue;e.objId&&n.put(e.objId);let t=e.get(`BM`);if(t instanceof I){if(t.name!==`Normal`)return!0;continue}if(t!==void 0&&Array.isArray(t)){for(let e of t)if(e instanceof I&&e.name!==`Normal`)return!0}}let a=e.get(`XObject`);if(a instanceof L)for(let e of a.getRawValues()){if(e instanceof R){if(n.has(e))continue;try{e=i.fetch(e)}catch(t){n.put(e),A(`hasBlendModes - ignoring XObject: "${t}".`);continue}}if(!(e instanceof Ve))continue;e.dict.objId&&n.put(e.dict.objId);let t=e.dict.get(`Resources`);t instanceof L&&(t.objId&&n.has(t.objId)||(r.push(t),t.objId&&n.put(t.objId)))}}for(let e of n)t.put(e);return!1}async fetchBuiltInCMap(e){let t=this.builtInCMapCache.get(e);if(t)return t;let n;return n=this.options.useWorkerFetch?{cMapData:await at(`${this.options.cMapUrl}${e}.bcmap`),isCompressed:!0}:{cMapData:await this.handler.sendWithPromise(`FetchBinaryData`,{kind:`cMapUrl`,filename:`${e}${this.options.cMapPacked?`.bcmap`:``}`}),isCompressed:this.options.cMapPacked},this.builtInCMapCache.set(e,n),n}async fetchStandardFontData(e){let t=this.standardFontDataCache.get(e);if(t)return new Cn(t);if(this.options.useSystemFonts&&e!==`Symbol`&&e!==`ZapfDingbats`)return null;let n=za()[e],r;try{r=this.options.useWorkerFetch?await at(`${this.options.standardFontDataUrl}${n}`):await this.handler.sendWithPromise(`FetchBinaryData`,{kind:`standardFontDataUrl`,filename:n})}catch(e){return j(e),null}return this.standardFontDataCache.set(e,r),new Cn(r)}async buildFormXObject(e,t,n,r,i,a,o,s){let{dict:c}=t,l=mt(c.getArray(`Matrix`),null),u=gt(c.getArray(`BBox`),null),d=u&&new Float32Array(u);d?.some(e=>!isFinite(e))&&(d=null);let f,p;c.has(`OC`)&&(f=await this.parseMarkedContentProps(c.get(`OC`),e)),f!==void 0&&r.addOp(D.beginMarkedContentProps,[`OC`,f]);let m=c.get(`Group`),h,g=[l&&new Float32Array(l),!m&&d||null],_=c.get(`Resources`);if(m){p={matrix:l,bbox:d,smask:n,isolated:!1,knockout:!1,needsIsolation:!1};let t=m.get(`S`),r=null;if(Le(t,`Transparency`)&&(p.isolated=m.get(`I`)||!1,p.knockout=m.get(`K`)||!1,m.has(`CS`))){let t=this._getColorSpace(m.getRaw(`CS`),e,o);r=t instanceof ln?t:await this._handleColorSpace(t)}n?.backdrop?(r||=Ln.rgb,n.backdrop=r.getRgbHex(n.backdrop,0)):n?.subtype===`Luminosity`&&(n.backdrop=`#000000`),h=new dr}else h=r,r.addOp(D.paintFormXObjectBegin,g);await this.getOperatorList({stream:t,task:i,resources:_ instanceof L?_:e,operatorList:h,initialState:a,prevRefs:s}),m?(p.needsIsolation=h.needsIsolation||!!n,r.addOp(D.beginGroup,[p]),r.addOp(D.paintFormXObjectBegin,g),r.addOpList(h),r.addOp(D.paintFormXObjectEnd,[]),r.addOp(D.endGroup,[p])):r.addOp(D.paintFormXObjectEnd,[]),f!==void 0&&r.addOp(D.endMarkedContent,[])}_sendImgData(e,t,n=!1){let r=t?[t.bitmap||t.data.buffer]:null;return this.parsingType3Font||n?this.handler.send(`commonobj`,[e,`Image`,t],r):this.handler.send(`obj`,[e,this.pageIndex,`Image`,t],r)}async buildPaintImageXObject({resources:e,image:t,isInline:n=!1,operatorList:r,cacheKey:i,localImageCache:a,localColorSpaceCache:o}){let{maxImageSize:s,ignoreErrors:c,isOffscreenCanvasSupported:l}=this.options,{dict:u}=t,d=u.objId,f=u.get(`W`,`Width`),p=u.get(`H`,`Height`);if(!(f&&typeof f==`number`)||!(p&&typeof p==`number`)){j(`Image dimensions are missing, or not numbers.`);return}if(s!==-1&&f*p>s){let e=`Image exceeded maximum allowed size and was removed.`;if(!c)throw Error(e);j(e);return}let m;u.has(`OC`)&&(m=await this.parseMarkedContentProps(u.get(`OC`),e));let h=u.get(`IM`,`ImageMask`)||!1,g,_,v;if(h){if(g=await Al.createMask({image:t,isOffscreenCanvasSupported:l&&!this.parsingType3Font}),g.isSingleOpaquePixel){if(_=D.paintSolidColorImageMask,v=[],r.addImageOps(_,v,m),i){let e={fn:_,args:v,optionalContent:m};a.set(i,d,e),d&&this._regionalImageCache.set(null,d,e)}return}if(this.parsingType3Font){if(v=ua(g),v){r.addImageOps(D.constructPath,v,m);return}j(`Cannot compile Type3 glyph.`),r.addImageOps(D.paintImageMaskXObject,[g],m);return}let e=`mask_${this.idFactory.createObjId()}`;if(r.addDependency(e),g.dataLen=g.bitmap?g.width*g.height*4:g.data.length,this._sendImgData(e,g),_=D.paintImageMaskXObject,v=[{data:e,width:g.width,height:g.height,interpolate:g.interpolate,count:1}],r.addImageOps(_,v,m),i){let t={objId:e,fn:_,args:v,optionalContent:m};a.set(i,d,t),d&&this._regionalImageCache.set(null,d,t)}return}let y=u.has(`SMask`)||u.has(`Mask`);if(n&&f+p<200&&!y){try{g=await new Al({xref:this.xref,res:e,image:t,isInline:n,pdfFunctionFactory:this._pdfFunctionFactory,globalColorSpaceCache:this.globalColorSpaceCache,localColorSpaceCache:o}).createImageData(!0,!1),r.addImageOps(D.paintInlineImageXObject,[g],m)}catch(e){let t=`Unable to decode inline image: "${e}".`;if(!c)throw Error(t);j(t)}return}let b=`img_${this.idFactory.createObjId()}`,x=!1,S=null;if(this.parsingType3Font?b=`${this.idFactory.getDocId()}_type3_${b}`:i&&d&&(x=this.globalImageCache.shouldCache(d,this.pageIndex),x&&(N(!n,`Cannot cache an inline image globally.`),b=`${this.idFactory.getDocId()}_${b}`)),r.addDependency(b),_=D.paintImageXObject,v=[b,f,p],r.addImageOps(_,v,m,y),x){if(S={objId:b,fn:_,args:v,optionalContent:m,hasMask:y,byteSize:0},this.globalImageCache.hasDecodeFailed(d)){this.globalImageCache.setData(d,S),this._sendImgData(b,null,x);return}if(f*p>25e4||y){let e=await this.handler.sendWithPromise(`commonobj`,[b,`CopyLocalImage`,{imageRef:d}]);if(e){this.globalImageCache.setData(d,S),this.globalImageCache.addByteSize(d,e);return}}}if(Al.buildImage({xref:this.xref,res:e,image:t,isInline:n,pdfFunctionFactory:this._pdfFunctionFactory,globalColorSpaceCache:this.globalColorSpaceCache,localColorSpaceCache:o}).then(async e=>(g=await e.createImageData(!1,l),g.dataLen=g.bitmap?g.width*g.height*4:g.data.length,g.ref=d,x&&this.globalImageCache.addByteSize(d,g.dataLen),this._sendImgData(b,g,x))).catch(e=>(j(`Unable to decode image "${b}": "${e}".`),d&&this.globalImageCache.addDecodeFailed(d),this._sendImgData(b,null,x))),i){let e={objId:b,fn:_,args:v,optionalContent:m,hasMask:y};a.set(i,d,e),d&&(this._regionalImageCache.set(null,d,e),x&&(N(S,`The global cache-data must be available.`),this.globalImageCache.setData(d,S)))}}handleSMask(e,t,n,r,i,a,o){let s=e.get(`G`),c={subtype:e.get(`S`).name,backdrop:e.get(`BC`)},l=e.get(`TR`);if(nl(l)){let e=this._pdfFunctionFactory.create(l),t=new Uint8Array(256),n=new Float32Array(1);for(let r=0;r<256;r++)n[0]=r/255,e(n,0,n,0),t[r]=n[0]*255|0;c.transferMap=t}return this.buildFormXObject(t,s,c,n,r,i.state.clone({newPath:!0}),a,o)}handleTransferFunction(e){let t;if(Array.isArray(e))t=e,e.length>1&&e.every(t=>t===e[0])&&(t=[e[0]]);else if(nl(e))t=[e];else return null;let n=[],r=0,i=0;for(let e of t){let t=this.xref.fetchIfRef(e);if(r++,Le(t,`Identity`)){n.push(null);continue}else if(!nl(t))return null;let a=this._pdfFunctionFactory.create(t),o=new Uint8Array(256),s=new Float32Array(1);for(let e=0;e<256;e++)s[0]=e/255,a(s,0,s,0),o[e]=s[0]*255|0;n.push(o),i++}return!(r===1||r===4)||i===0?null:n}handleTilingType(e,t,n,r,i,a,o,s,c){let l=new dr,u=L.merge({xref:this.xref,dictArray:[i.get(`Resources`),n]});return this.getOperatorList({stream:r,task:o,resources:u,operatorList:l,prevRefs:c}).then(function(){let n=l.getIR(),{needsIsolation:r}=l,o=Dr(n,i,t,r);a.addDependencies(l.dependencies),a.addOp(e,o),i.objId&&s.set(null,i.objId,{operatorListIR:n,needsIsolation:r,dict:i})}).catch(e=>{if(!(e instanceof de)){if(this.options.ignoreErrors){j(`handleTilingType - ignoring pattern: "${e}".`);return}throw e}})}async handleSetFont(e,t,n,r,i,a,o=null,s=null,c=null){let l=t?.[0]instanceof I?t[0].name:null,u=await this.loadFont(l,n,e,i,o,s,c);return u.font.isType3Font&&r.addDependencies(u.type3Dependencies),a.font=u.font,u.send(this.handler),u.loadedName}handleText(t,n){let r=n.font,i=r.charsToGlyphs(t);return r.data&&(n.textRenderingMode&g.ADD_TO_PATH_FLAG||n.fillColorSpace.name===`Pattern`||n.strokeColorSpace.name===`Pattern`||r.disableFontFace)&&e.buildFontPaths(r,i,this.handler,this.options),i}ensureStateFont(e){if(e.font)return;let t=new F(`Missing setFont (Tf) operator before text rendering operator.`);if(this.options.ignoreErrors){j(`ensureStateFont: "${t}".`);return}throw t}async setGState({resources:e,gState:t,operatorList:n,cacheKey:r,task:i,stateManager:a,localGStateCache:o,localColorSpaceCache:s,seenRefs:c}){let l=t.objId,u=!0,d=[],f=Promise.resolve();for(let[r,o]of t)switch(r){case`Type`:break;case`LW`:if(typeof o!=`number`){j(`Invalid LW (line width): ${o}`);break}d.push([r,Math.abs(o)]);break;case`LC`:case`LJ`:case`ML`:case`D`:case`RI`:case`FL`:case`CA`:case`ca`:d.push([r,o]);break;case`Font`:u=!1,f=f.then(()=>this.handleSetFont(e,null,o[0],n,i,a.state,null,null,c).then(function(e){n.addDependency(e),d.push([r,[e,o[1]]])}));break;case`BM`:d.push([r,Pl(o)]);break;case`SMask`:if(Le(o,`None`)){d.push([r,!1]);break}o instanceof L?(u=!1,f=f.then(()=>this.handleSMask(o,e,n,i,a,s,c)),d.push([r,!0])):j(`Unsupported SMask type`);break;case`TR`:let t=this.handleTransferFunction(o);d.push([r,t]);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`:A(`graphic state operator `+r);break;default:A(`Unknown graphic state operator `+r);break}await f,d.length>0&&n.addOp(D.setGState,[d]),u&&o.set(r,l,d)}loadFont(t,n,r,i,a=null,o=null,s=null){let c=async()=>new Rl({loadedName:`g_font_error`,font:new ps(`Font "${t}" is not available.`),dict:n}),l;if(n)n instanceof R&&(l=n);else{let e=r.get(`Font`);e&&(l=e.getRaw(t))}if(l){if(this.type3FontRefs?.has(l))return c();if(this.fontCache.has(l))return this.fontCache.get(l);try{n=this.xref.fetchIfRef(l)}catch(e){j(`loadFont - lookup failed: "${e}".`)}}if(!(n instanceof L)){if(!this.options.ignoreErrors&&!this.parsingType3Font)return j(`Font "${t}" is not available.`),c();j(`Font "${t}" is not available -- attempting to fallback to a default font.`),n=a||e.fallbackFontDict}if(n.cacheKey&&this.fontCache.has(n.cacheKey))return this.fontCache.get(n.cacheKey);let{promise:u,resolve:d}=Promise.withResolvers(),f;try{f=this.preEvaluateFont(n),f.cssFontInfo=o}catch(e){return j(`loadFont - preEvaluateFont failed: "${e}".`),c()}let{descriptor:p,hash:m}=f,h=l instanceof R,g;if(m&&p instanceof L){let e=p.fontAliases||=Object.create(null);if(e[m]){let t=e[m].aliasRef;if(h&&t&&this.fontCache.has(t))return this.fontCache.putAlias(l,t),this.fontCache.get(l)}else e[m]={fontID:this.idFactory.createFontId()};h&&(e[m].aliasRef=l),g=e[m].fontID}else g=this.idFactory.createFontId();return N(g?.startsWith(`f`),`The "fontID" must be (correctly) defined.`),h?this.fontCache.put(l,u):(n.cacheKey=`cacheKey_${g}`,this.fontCache.put(n.cacheKey,u)),n.loadedName=`${this.idFactory.getDocId()}_${g}`,this.translateFont(f).then(async e=>{let t=new Rl({loadedName:n.loadedName,font:e,dict:n});if(e.isType3Font)try{await t.loadType3Data(this,r,i,s)}catch(e){throw Error(`Type3 font load error: ${e}`)}d(t)}).catch(e=>{j(`loadFont - translateFont failed: "${e}".`),d(new Rl({loadedName:n.loadedName,font:new ps(e?.message),dict:n}))}),u}buildPath(e,t,n){let{pathMinMax:r,pathBuffer:i}=n;switch(e|0){case D.rectangle:{let e=n.currentPointX=t[0],a=n.currentPointY=t[1],o=t[2],s=t[3],c=e+o,l=a+s;o===0||s===0?i.push(O.moveTo,e,a,O.lineTo,c,l,O.closePath):i.push(O.moveTo,e,a,O.lineTo,c,a,O.lineTo,c,l,O.lineTo,e,l,O.closePath),ge.rectBoundingBox(e,a,c,l,r);break}case D.moveTo:{let e=n.currentPointX=t[0],a=n.currentPointY=t[1];i.push(O.moveTo,e,a),ge.pointBoundingBox(e,a,r);break}case D.lineTo:{let e=n.currentPointX=t[0],a=n.currentPointY=t[1];i.push(O.lineTo,e,a),ge.pointBoundingBox(e,a,r);break}case D.curveTo:{let e=n.currentPointX,a=n.currentPointY,[o,s,c,l,u,d]=t;n.currentPointX=u,n.currentPointY=d,i.push(O.curveTo,o,s,c,l,u,d),ge.bezierBoundingBox(e,a,o,s,c,l,u,d,r);break}case D.curveTo2:{let e=n.currentPointX,a=n.currentPointY,[o,s,c,l]=t;n.currentPointX=c,n.currentPointY=l,i.push(O.curveTo,e,a,o,s,c,l),ge.bezierBoundingBox(e,a,e,a,o,s,c,l,r);break}case D.curveTo3:{let e=n.currentPointX,a=n.currentPointY,[o,s,c,l]=t;n.currentPointX=c,n.currentPointY=l,i.push(O.curveTo,o,s,c,l,c,l),ge.bezierBoundingBox(e,a,o,s,c,l,c,l,r);break}case D.closePath:i.push(O.closePath);break}}_getColorSpace(e,t,n){return Ln.parse({cs:e,xref:this.xref,resources:t,pdfFunctionFactory:this._pdfFunctionFactory,globalColorSpaceCache:this.globalColorSpaceCache,localColorSpaceCache:n,asyncIfNotCached:!0})}async _handleColorSpace(e){try{return await e}catch(e){if(e instanceof de)return null;if(this.options.ignoreErrors)return j(`_handleColorSpace - ignoring ColorSpace: "${e}".`),null;throw e}}parseShading({shading:e,resources:t,localColorSpaceCache:n,localShadingPatternCache:r}){let i=r.get(e);if(i)return i;let a;try{a=pr.parseShading(e,this.xref,t,this._pdfFunctionFactory,this.globalColorSpaceCache,n).getIR()}catch(t){if(t instanceof de)return null;if(this.options.ignoreErrors)return j(`parseShading - ignoring shading: "${t}".`),r.set(e,null),null;throw t}if(i=`pattern_${this.idFactory.createObjId()}`,this.parsingType3Font&&(i=`${this.idFactory.getDocId()}_type3_${i}`),r.set(e,i),this.parsingType3Font){let e=Ii(a);this.handler.send(`commonobj`,[i,`Pattern`,e],[e])}else this.handler.send(`obj`,[i,this.pageIndex,`Pattern`,a]);return i}handleColorN(e,t,n,r,i,a,o,s,c,l,u){let d=n.pop();if(d instanceof I){let f=i.getRaw(d.name),p=f instanceof R&&c.getByRef(f);if(p)try{let i=r.base?r.base.getRgbHex(n,0):null,a=Dr(p.operatorListIR,p.dict,i,p.needsIsolation);e.addOp(t,a);return}catch{}let m=this.xref.fetchIfRef(f);if(m){let i=m instanceof Ve?m.dict:m,d=i.get(`PatternType`);if(d===Ml.TILING){let s=r.base?r.base.getRgbHex(n,0):null;return this.handleTilingType(t,s,a,m,i,e,o,c,u)}else if(d===Ml.SHADING){let n=i.get(`Shading`),r=this.parseShading({shading:n,resources:a,localColorSpaceCache:s,localShadingPatternCache:l});if(r){let n=mt(i.getArray(`Matrix`),null);e.addOp(t,[`Shading`,r,n])}return}throw new F(`Unknown PatternType: ${d}`)}}throw new F(`Unknown PatternName: ${d}`)}async parseMarkedContentProps(e,t){return kl(this.xref,e,t)}async getOperatorList({stream:e,task:t,resources:n,operatorList:r,initialState:a=null,fallbackFontDict:o=null,prevRefs:s=null}){if(e.isAsync){let t=await e.asyncGetBytes();t&&(e=new Cn(t,0,t.length,e.dict))}let c=e.dict?.objId,l=new Fe(s);if(c){if(s?.has(c))throw Error(`getOperatorList - ignoring circular reference: ${c}`);l.put(c)}if(n||=L.empty,a||=new Vl,!r)throw Error(`getOperatorList: missing "operatorList" parameter`);let u=this,d=this.xref,f=new Wc,p=new Gc,m=new qc,h=new Jc,g=new Map,_=n.get(`XObject`)||L.empty,v=n.get(`Pattern`)||L.empty,y=new zl(a),b=new Hl(e,d,y),x=new Il;function S(e){for(let e=0,t=b.savedStatesDepth;e<t;e++)r.addOp(D.restore,[])}return new Promise(function e(a,s){let c=function(t){Promise.all([t,r.ready]).then(function(){try{e(a,s)}catch(e){s(e)}},s)};t.ensureNotTerminated(),x.reset();let C={},w,T,E,ee,te,ne;for(;!(w=x.check())&&(C.args=null,b.read(C));){let e=C.args,a=C.fn;switch(a|0){case D.paintXObject:if(ne=e[0]instanceof I,te=e[0].name,ne){let t=f.getByName(te);if(t){Fl(r,t),e=null;continue}}c(new Promise(function(e,i){if(!ne)throw new F(`XObject must be referred to by name.`);let a=_.getRaw(te);if(a instanceof R){let t=f.getByRef(a)||u._regionalImageCache.getByRef(a)||u.globalImageCache.getData(a,u.pageIndex);if(t){Fl(r,t),e();return}a=d.fetch(a)}if(!(a instanceof Ve))throw new F(`XObject should be a stream`);let o=a.dict.get(`Subtype`);if(!(o instanceof I))throw new F(`XObject should have a Name subtype`);if(o.name===`Form`){y.save(),u.buildFormXObject(n,a,null,r,t,y.state.clone({newPath:!0}),p,l).then(function(){y.restore(),e()},i);return}else if(o.name===`Image`){u.buildPaintImageXObject({resources:n,image:a,operatorList:r,cacheKey:te,localImageCache:f,localColorSpaceCache:p}).then(e,i);return}else if(o.name===`PS`)A(`Ignored XObject subtype PS`);else throw new F(`Unhandled XObject subtype ${o.name}`);e()}).catch(function(e){if(!(e instanceof de)){if(u.options.ignoreErrors){j(`getOperatorList - ignoring XObject: "${e}".`);return}throw e}}));return;case D.setFont:let s=e[1];c(u.handleSetFont(n,e,null,r,t,y.state,o,null,l).then(function(e){r.addDependency(e),r.addOp(D.setFont,[e,s])}));return;case D.endInlineImage:let b=e[0].cacheKey;if(b){let t=f.getByName(b);if(t){Fl(r,t),e=null;continue}}c(u.buildPaintImageXObject({resources:n,image:e[0],isInline:!0,operatorList:r,cacheKey:b,localImageCache:f,localColorSpaceCache:p}));return;case D.showText:if(!y.state.font){u.ensureStateFont(y.state);continue}e[0]=u.handleText(e[0],y.state);break;case D.showSpacedText:if(!y.state.font){u.ensureStateFont(y.state);continue}let x=[],S=y.state;for(let t of e[0])typeof t==`string`?x.push(...u.handleText(t,S)):typeof t==`number`&&x.push(t);e[0]=x,a=D.showText;break;case D.nextLineShowText:if(!y.state.font){u.ensureStateFont(y.state);continue}r.addOp(D.nextLine),e[0]=u.handleText(e[0],y.state),a=D.showText;break;case D.nextLineSetSpacingShowText:if(!y.state.font){u.ensureStateFont(y.state);continue}r.addOp(D.nextLine),r.addOp(D.setWordSpacing,[e.shift()]),r.addOp(D.setCharSpacing,[e.shift()]),e[0]=u.handleText(e[0],y.state),a=D.showText;break;case D.setTextRenderingMode:y.state.textRenderingMode=e[0];break;case D.setFillColorSpace:{let t=u._getColorSpace(e[0],n,p);if(t instanceof ln){y.state.fillColorSpace=t;continue}c(u._handleColorSpace(t).then(e=>{y.state.fillColorSpace=e||Ln.gray}));return}case D.setStrokeColorSpace:{let t=u._getColorSpace(e[0],n,p);if(t instanceof ln){y.state.strokeColorSpace=t;continue}c(u._handleColorSpace(t).then(e=>{y.state.strokeColorSpace=e||Ln.gray}));return}case D.setFillColor:ee=y.state.fillColorSpace,e=[ee.getRgbHex(e,0)],a=D.setFillRGBColor;break;case D.setStrokeColor:ee=y.state.strokeColorSpace,e=[ee.getRgbHex(e,0)],a=D.setStrokeRGBColor;break;case D.setFillGray:y.state.fillColorSpace=Ln.gray,e=[Ln.gray.getRgbHex(e,0)],a=D.setFillRGBColor;break;case D.setStrokeGray:y.state.strokeColorSpace=Ln.gray,e=[Ln.gray.getRgbHex(e,0)],a=D.setStrokeRGBColor;break;case D.setFillCMYKColor:y.state.fillColorSpace=Ln.cmyk,e=[Ln.cmyk.getRgbHex(e,0)],a=D.setFillRGBColor;break;case D.setStrokeCMYKColor:y.state.strokeColorSpace=Ln.cmyk,e=[Ln.cmyk.getRgbHex(e,0)],a=D.setStrokeRGBColor;break;case D.setFillRGBColor:y.state.fillColorSpace=Ln.rgb,e=[Ln.rgb.getRgbHex(e,0)];break;case D.setStrokeRGBColor:y.state.strokeColorSpace=Ln.rgb,e=[Ln.rgb.getRgbHex(e,0)];break;case D.setFillColorN:if(ee=y.state.patternFillColorSpace,!ee){if(pt(e,null)){e=[Ln.gray.getRgbHex(e,0)],a=D.setFillRGBColor;break}e=[],a=D.setFillTransparent;break}if(ee.name===`Pattern`){c(u.handleColorN(r,D.setFillColorN,e,ee,v,n,t,p,h,g,l));return}e=[ee.getRgbHex(e,0)],a=D.setFillRGBColor;break;case D.setStrokeColorN:if(ee=y.state.patternStrokeColorSpace,!ee){if(pt(e,null)){e=[Ln.gray.getRgbHex(e,0)],a=D.setStrokeRGBColor;break}e=[],a=D.setStrokeTransparent;break}if(ee.name===`Pattern`){c(u.handleColorN(r,D.setStrokeColorN,e,ee,v,n,t,p,h,g,l));return}e=[ee.getRgbHex(e,0)],a=D.setStrokeRGBColor;break;case D.shadingFill:let C;try{let t=n.get(`Shading`);if(!t)throw new F(`No shading resource found`);if(C=t.get(e[0].name),!C)throw new F(`No shading object found`)}catch(e){if(e instanceof de)continue;if(u.options.ignoreErrors){j(`getOperatorList - ignoring Shading: "${e}".`);continue}throw e}let w=u.parseShading({shading:C,resources:n,localColorSpaceCache:p,localShadingPatternCache:g});if(!w)continue;e=[w],a=D.shadingFill;break;case D.setGState:if(ne=e[0]instanceof I,te=e[0].name,ne){let t=m.getByName(te);if(t){t.length>0&&r.addOp(D.setGState,[t]),e=null;continue}}c(new Promise(function(e,i){if(!ne)throw new F(`GState must be referred to by name.`);let a=n.get(`ExtGState`);if(!(a instanceof L))throw new F(`ExtGState should be a dictionary.`);let o=a.get(te);if(!(o instanceof L))throw new F(`GState should be a dictionary.`);u.setGState({resources:n,gState:o,operatorList:r,cacheKey:te,task:t,stateManager:y,localGStateCache:m,localColorSpaceCache:p,seenRefs:l}).then(e,i)}).catch(function(e){if(!(e instanceof de)){if(u.options.ignoreErrors){j(`getOperatorList - ignoring ExtGState: "${e}".`);return}throw e}}));return;case D.setLineWidth:{let[t]=e;if(typeof t!=`number`){j(`Invalid setLineWidth: ${t}`);continue}e[0]=Math.abs(t);break}case D.setDash:{let t=e[1];if(typeof t!=`number`){j(`Invalid setDash: ${t}`);continue}let n=e[0];if(!Array.isArray(n)){j(`Invalid setDash: ${n}`);continue}n.some(e=>typeof e!=`number`)&&(e[0]=n.filter(e=>typeof e==`number`));break}case D.moveTo:case D.lineTo:case D.curveTo:case D.curveTo2:case D.curveTo3:case D.closePath:case D.rectangle:u.buildPath(a,e,y.state);continue;case D.stroke:case D.closeStroke:case D.fill:case D.eoFill:case D.fillStroke:case D.eoFillStroke:case D.closeFillStroke:case D.closeEOFillStroke:case D.endPath:{let{state:{pathBuffer:e,pathMinMax:t}}=y;(a===D.closeStroke||a===D.closeFillStroke||a===D.closeEOFillStroke)&&e.push(O.closePath),e.length===0?r.addOp(D.constructPath,[a,[null],null]):(r.addOp(D.constructPath,[a,[new Float32Array(e)],t.slice()]),e.length=0,t.set(i,0));continue}case D.setTextMatrix:r.addOp(a,[new Float32Array(e)]);continue;case D.markPoint:case D.markPointProps:case D.beginCompat:case D.endCompat:continue;case D.beginMarkedContentProps:if(!(e[0]instanceof I)){j(`Expected name for beginMarkedContentProps arg0=${e[0]}`),r.addOp(D.beginMarkedContentProps,[`OC`,null]);continue}if(e[0].name===`OC`){c(u.parseMarkedContentProps(e[1],n).then(e=>{r.addOp(D.beginMarkedContentProps,[`OC`,e])}).catch(e=>{if(!(e instanceof de)){if(u.options.ignoreErrors){j(`getOperatorList - ignoring beginMarkedContentProps: "${e}".`),r.addOp(D.beginMarkedContentProps,[`OC`,null]);return}throw e}}));return}e=[e[0].name,e[1]instanceof L?e[1].get(`MCID`):null];break;case D.beginMarkedContent:case D.endMarkedContent:default:if(e!==null){for(T=0,E=e.length;T<E&&!(e[T]instanceof L);T++);if(T<E){j(`getOperatorList - ignoring operator: `+a);continue}}}r.addOp(a,e)}if(w){c(Nl);return}S(),a()}).catch(e=>{if(!(e instanceof de)){if(this.options.ignoreErrors){j(`getOperatorList - ignoring errors during "${t.name}" task: "${e}".`),S();return}throw e}})}async getTextContent({stream:e,task:t,resources:n,stateManager:r=null,includeMarkedContent:i=!1,sink:a,seenStyles:s=new Set,viewBox:c,lang:l=null,markedContentData:u=null,disableNormalization:d=!1,keepWhiteSpace:f=!1,prevRefs:p=null,intersector:m=null}){if(e.isAsync){let t=await e.asyncGetBytes();t&&(e=new Cn(t,0,t.length,e.dict))}let h=e.dict?.objId,g=new Fe(p);if(h){if(p?.has(h))throw Error(`getTextContent - ignoring circular reference: ${h}`);g.put(h)}n||=L.empty,r||=new zl(new Bl),i&&(u||={level:0});let _={items:[],styles:Object.create(null),lang:l},v={initialized:!1,str:[],totalWidth:0,totalHeight:0,width:0,height:0,vertical:!1,prevTransform:null,prevTextRise:0,textAdvanceScale:0,spaceInFlowMin:0,spaceInFlowMax:0,trackingSpaceMin:1/0,negativeSpaceMax:-1/0,notASpace:-1/0,transform:null,fontName:null,hasEOL:!1},y=[` `,` `],b=0;function x(e){let t=(b+1)%2,n=y[b]!==` `&&y[t]===` `;return y[b]=e,b=t,!f&&n}function S(){return!f&&y[b]!==` `&&y[(b+1)%2]===` `}function C(){y[0]=y[1]=` `,b=0}let w=.25,T=this,E=this.xref,O=[],ee=null,te=new Wc,ne=new qc,k=new Hl(e,E,r),A,M;function N({width:e=0,height:t=0,transform:n=v.prevTransform,fontName:r=v.fontName}){m?.addExtraChar(` `),_.items.push({str:` `,dir:`ltr`,width:e,height:t,transform:n,fontName:r,hasEOL:!1})}function re(){let e=A.font,t=[A.fontSize*A.textHScale,0,0,A.fontSize,0,A.textRise];if(e.isType3Font&&(A.fontSize<=1||e.isCharBBox)&&!ye(A.fontMatrix,o)){let n=e.bbox[3]-e.bbox[1];n>0&&(t[3]*=n*A.fontMatrix[3])}return ge.transform(A.ctm,ge.transform(A.textMatrix,t))}function ie(){if(v.initialized)return v;let{font:e,loadedName:t}=A;if(!s.has(t)&&(s.add(t),_.styles[t]={fontFamily:e.fallbackName,ascent:e.ascent,descent:e.descent,vertical:e.vertical},T.options.fontExtraProperties&&e.systemFontInfo)){let n=_.styles[t];n.fontSubstitution=e.systemFontInfo.css,n.fontSubstitutionLoadedName=e.systemFontInfo.loadedName}v.fontName=t;let n=v.transform=re();e.vertical?(v.width=v.totalWidth=Math.hypot(n[0],n[1]),v.height=v.totalHeight=0,v.vertical=!0):(v.width=v.totalWidth=0,v.height=v.totalHeight=Math.hypot(n[2],n[3]),v.vertical=!1);let r=Math.hypot(A.textLineMatrix[0],A.textLineMatrix[1]);v.textAdvanceScale=Math.hypot(A.ctm[0],A.ctm[1])*r;let{fontSize:i}=A;return v.trackingSpaceMin=i*.102,v.notASpace=i*.03,v.negativeSpaceMax=i*-.2,v.spaceInFlowMin=i*.102,v.spaceInFlowMax=i*.6,v.hasEOL=!1,v.initialized=!0,v}function ae(){if(!v.initialized)return;let e=Math.hypot(A.textLineMatrix[0],A.textLineMatrix[1]),t=Math.hypot(A.ctm[0],A.ctm[1])*e;t!==v.textAdvanceScale&&(v.vertical?(v.totalHeight+=v.height*v.textAdvanceScale,v.height=0):(v.totalWidth+=v.width*v.textAdvanceScale,v.width=0),v.textAdvanceScale=t)}function P(e){let t=e.str.join(``);d||(t=Se(t));let n=fl(t,-1,e.vertical);return{str:n.str,dir:n.dir,width:Math.abs(e.totalWidth),height:Math.abs(e.totalHeight),transform:e.transform,fontName:e.fontName,hasEOL:e.hasEOL}}async function oe(e,r){let i=await T.loadFont(e,r,n,t,null,null,g);A.loadedName=i.loadedName,A.font=i.font,A.fontMatrix=i.font.fontMatrix||o}function se(e,t,n){let r=Math.hypot(n[0],n[1]);return[(n[0]*e+n[1]*t)/r,(n[2]*e+n[3]*t)/r]}function ce(e){let t=re(),n=t[4],r=t[5];if(A.font?.vertical){if(n<c[0]||n>c[2]||r+e<c[1]||r>c[3])return!1}else if(n+e<c[0]||n>c[2]||r<c[1]||r>c[3])return!1;if(!A.font||!v.prevTransform)return!0;let i=v.prevTransform[4],a=v.prevTransform[5];if(i===n&&a===r)return!0;let o=-1;switch(t[0]&&t[1]===0&&t[2]===0?o=t[0]>0?0:180:t[1]&&t[0]===0&&t[3]===0&&(o=t[1]>0?90:270),o){case 0:break;case 90:[n,r]=[r,n],[i,a]=[a,i];break;case 180:[n,r,i,a]=[-n,-r,-i,-a];break;case 270:[n,r]=[-r,-n],[i,a]=[-a,-i];break;default:[n,r]=se(n,r,t),[i,a]=se(i,a,v.prevTransform)}if(A.font.vertical){let e=(a-r)/v.textAdvanceScale,t=n-i,o=Math.sign(v.height||v.totalHeight);return e<o*v.negativeSpaceMax?Math.abs(t)>.5*v.width?(ue(),!0):(C(),pe(),!0):Math.abs(t)>v.width?(ue(),!0):(e<=o*v.notASpace&&C(),e<=o*v.trackingSpaceMin?S()?(C(),pe(),N({height:Math.abs(e)})):v.height+=e:fe(e,v.prevTransform,o)||(v.str.length===0?(C(),N({height:Math.abs(e)})):v.height+=e),Math.abs(t)>v.width*w&&pe(),!0)}let s=(n-i)/v.textAdvanceScale,l=r-a,u=Math.sign(v.width||v.totalWidth);if(s<u*v.negativeSpaceMax)return Math.abs(l)>.5*v.height?(ue(),!0):(C(),pe(),!0);let d=A.textRise-v.prevTextRise,f=d===0?l:l-t[3]/A.fontSize*d;return Math.abs(f)>v.height?(ue(),!0):(s<=u*v.notASpace&&C(),s<=u*v.trackingSpaceMin?S()?(C(),pe(),N({width:Math.abs(s)})):v.width+=s:fe(s,v.prevTransform,u)||(v.str.length===0?(C(),N({width:Math.abs(s)})):v.width+=s),Math.abs(l)>v.height*w&&pe(),!0)}function le({chars:e,extraSpacing:t}){M!==A&&(M.fontSize!==A.fontSize||M.fontName!==A.fontName&&(M.font.name!==A.font.name||M.font.vertical!==A.font.vertical))&&(pe(),M=A.clone());let n=A.font,r=n.vertical?-A.charSpacing:A.charSpacing;if(!e){let e=r+t;e&&(n.vertical?A.translateTextMatrix(0,-e):A.translateTextMatrix(e*A.textHScale,0)),f&&ce(0);return}let i=n.charsToGlyphs(e),a=A.fontMatrix[0]*A.fontSize;for(let e=0,o=i.length;e<o;e++){let s=i[e],{category:c,originalCharCode:l}=s;if(c.isInvisibleFormatMark)continue;let u=r+(e+1===o?t:0),d=s.width;n.vertical&&(d=s.vmetric?s.vmetric[0]:-d);let p=d*a;if(l===32&&(u+=A.wordSpacing),!f&&c.isWhitespace){n.vertical?(u+=-p,A.translateTextMatrix(0,-u)):(u+=p,A.translateTextMatrix(u*A.textHScale,0)),x(` `);continue}if(!c.isZeroWidthDiacritic&&!ce(p)){n.vertical?A.translateTextMatrix(0,p):A.translateTextMatrix(p*A.textHScale,0);continue}let h=ie();c.isZeroWidthDiacritic&&(p=0),n.vertical?(m?.addGlyph(re(),0,p,s.unicode),A.translateTextMatrix(0,p),p=Math.abs(p),h.height+=p):(p*=A.textHScale,m?.addGlyph(re(),p,0,s.unicode),A.translateTextMatrix(p,0),h.width+=p),p&&(h.prevTransform=re(),h.prevTextRise=A.textRise);let g=s.unicode;x(g)&&(h.str.push(` `),m?.addExtraChar(` `)),m||h.str.push(g),u&&(n.vertical?A.translateTextMatrix(0,-u):A.translateTextMatrix(u*A.textHScale,0))}}function ue(){m?.addExtraChar(`\n`),C(),v.initialized?(v.hasEOL=!0,pe()):_.items.push({str:``,dir:`ltr`,width:0,height:0,transform:re(),fontName:A.loadedName,hasEOL:!0})}function fe(e,t,n){if(n*v.spaceInFlowMin<=e&&e<=n*v.spaceInFlowMax)return v.initialized&&(C(),v.str.push(` `),m?.addExtraChar(` `)),!1;let r=v.fontName,i=0;return v.vertical&&(i=e,e=0),pe(),C(),N({width:Math.abs(e),height:Math.abs(i),transform:t||re(),fontName:r}),!0}function pe(){!v.initialized||!v.str||(v.vertical?v.totalHeight+=v.height*v.textAdvanceScale:v.totalWidth+=v.width*v.textAdvanceScale,_.items.push(P(v)),v.initialized=!1,v.str.length=0)}function me(e=!1){let t=_.items.length;t!==0&&(e&&t<10||(a?.enqueue(_,t),_.items=[],_.styles=Object.create(null)))}let he=new Il;return new Promise(function e(o,p){let m=function(t){me(!0),Promise.all([t,a?.ready]).then(function(){try{e(o,p)}catch(e){p(e)}},p)};t.ensureNotTerminated(),he.reset();let h={},v,y,b,x=[];for(;!(v=he.check())&&(x.length=0,h.args=x,k.read(h));){A=r.state,M||=A.clone();let e=h.fn;switch(x=h.args,e|0){case D.setFont:let e=x[0].name,o=x[1];if(A.font&&e===A.fontName&&o===A.fontSize)break;A.fontName=e,A.fontSize=o,m(oe(e,null));return;case D.setTextRise:A.textRise=x[0];break;case D.setHScale:A.textHScale=x[0]/100;break;case D.setLeading:A.leading=x[0];break;case D.moveText:A.translateTextLineMatrix(x[0],x[1]),A.textMatrix=A.textLineMatrix.slice();break;case D.setLeadingMoveText:A.leading=-x[1],A.translateTextLineMatrix(x[0],x[1]),A.textMatrix=A.textLineMatrix.slice();break;case D.nextLine:A.carriageReturn();break;case D.setTextMatrix:A.setTextMatrix(x[0],x[1],x[2],x[3],x[4],x[5]),A.setTextLineMatrix(x[0],x[1],x[2],x[3],x[4],x[5]),ae();break;case D.setCharSpacing:A.charSpacing=x[0];break;case D.setWordSpacing:A.wordSpacing=x[0];break;case D.beginText:A.textMatrix=Xe.slice(),A.textLineMatrix=Xe.slice();break;case D.showSpacedText:if(!r.state.font){T.ensureStateFont(r.state);continue}let p=(A.font.vertical?1:-1)*A.fontSize/1e3,h=x[0];for(let e=0,t=h.length;e<t;e++){let t=h[e];if(typeof t==`string`)O.push(t);else if(typeof t==`number`&&t!==0){let e=O.join(``);O.length=0,le({chars:e,extraSpacing:t*p})}}if(O.length>0){let e=O.join(``);O.length=0,le({chars:e,extraSpacing:0})}break;case D.showText:if(!r.state.font){T.ensureStateFont(r.state);continue}le({chars:x[0],extraSpacing:0});break;case D.nextLineShowText:if(!r.state.font){T.ensureStateFont(r.state);continue}A.carriageReturn(),le({chars:x[0],extraSpacing:0});break;case D.nextLineSetSpacingShowText:if(!r.state.font){T.ensureStateFont(r.state);continue}A.wordSpacing=x[0],A.charSpacing=x[1],A.carriageReturn(),le({chars:x[2],extraSpacing:0});break;case D.paintXObject:if(pe(),ee??=n.get(`XObject`)||L.empty,b=x[0]instanceof I,y=x[0].name,b&&te.getByName(y))break;m(new Promise(function(e,o){if(!b)throw new F(`XObject must be referred to by name.`);let p=ee.getRaw(y);if(p instanceof R){if(te.getByRef(p)){e();return}if(T.globalImageCache.getData(p,T.pageIndex)){e();return}p=E.fetch(p)}if(!(p instanceof Ve))throw new F(`XObject should be a stream`);let{dict:m}=p,h=m.get(`Subtype`);if(!(h instanceof I))throw new F(`XObject should have a Name subtype`);if(h.name!==`Form`){te.set(y,m.objId,!0),e();return}let _=new zl(r.state.clone()),v=mt(m.getArray(`Matrix`),null);v&&_.transform(v);let x=m.get(`Resources`);me();let S={enqueueInvoked:!1,enqueue(e,t){this.enqueueInvoked=!0,a.enqueue(e,t)},get desiredSize(){return a.desiredSize??0},get ready(){return a.ready}};T.getTextContent({stream:p,task:t,resources:x instanceof L?x:n,stateManager:_,includeMarkedContent:i,sink:a&&S,seenStyles:s,viewBox:c,lang:l,markedContentData:u,disableNormalization:d,keepWhiteSpace:f,prevRefs:g}).then(function(){S.enqueueInvoked||te.set(y,m.objId,!0),e()},o)}).catch(function(e){if(!(e instanceof de)){if(T.options.ignoreErrors){j(`getTextContent - ignoring XObject: "${e}".`);return}throw e}}));return;case D.setGState:if(b=x[0]instanceof I,y=x[0].name,b&&ne.getByName(y))break;m(new Promise(function(e,t){if(!b)throw new F(`GState must be referred to by name.`);let r=n.get(`ExtGState`);if(!(r instanceof L))throw new F(`ExtGState should be a dictionary.`);let i=r.get(y);if(!(i instanceof L))throw new F(`GState should be a dictionary.`);let a=i.get(`Font`);if(!a){ne.set(y,i.objId,!0),e();return}pe(),A.fontName=null,A.fontSize=a[1],oe(null,a[0]).then(e,t)}).catch(function(e){if(!(e instanceof de)){if(T.options.ignoreErrors){j(`getTextContent - ignoring ExtGState: "${e}".`);return}throw e}}));return;case D.beginMarkedContent:pe(),i&&(u.level++,_.items.push({type:`beginMarkedContent`,tag:x[0]instanceof I?x[0].name:null}));break;case D.beginMarkedContentProps:if(pe(),i){u.level++;let e=null;x[1]instanceof L&&(e=x[1].get(`MCID`)),_.items.push({type:`beginMarkedContentProps`,id:Number.isInteger(e)?`${T.idFactory.getPageObjId()}_mc${e}`:null,tag:x[0]instanceof I?x[0].name:null})}break;case D.endMarkedContent:if(pe(),i){if(u.level===0)break;u.level--,_.items.push({type:`endMarkedContent`})}break}if(_.items.length>=(a?.desiredSize??1)){v=!0;break}}if(v){m(Nl);return}pe(),me(),o()}).catch(e=>{if(!(e instanceof de)){if(this.options.ignoreErrors){j(`getTextContent - ignoring errors during "${t.name}" task: "${e}".`),pe(),me();return}throw e}})}async extractDataStructures(e,t){let n=this.xref,r,i=this.readToUnicode(t.toUnicode);if(t.composite){let n=e.get(`CIDSystemInfo`);n instanceof L&&!t.cidSystemInfo&&(t.cidSystemInfo={registry:qe(n.get(`Registry`)),ordering:qe(n.get(`Ordering`)),supplement:n.get(`Supplement`)});try{let t=e.get(`CIDToGIDMap`);t instanceof Ve&&(r=t.getBytes())}catch(e){if(!this.options.ignoreErrors)throw e;j(`extractDataStructures - ignoring CIDToGIDMap data: "${e}".`)}}let a=[],o=null,s;if(e.has(`Encoding`)){if(s=e.get(`Encoding`),s instanceof L){if(o=s.get(`BaseEncoding`),o=o instanceof I?o.name:null,s.has(`Differences`)){let e=s.get(`Differences`),t=0;for(let r of e){let e=n.fetchIfRef(r);if(typeof e==`number`)t=e;else if(e instanceof I)a[t++]=e.name;else throw new F(`Invalid entry in \'Differences\' array: ${e}`)}}}else if(s instanceof I)o=s.name;else{let e=`Encoding is not a Name nor a Dict`;if(!this.options.ignoreErrors)throw new F(e);j(e)}o!==`MacRomanEncoding`&&o!==`MacExpertEncoding`&&o!==`WinAnsiEncoding`&&(o=null)}let c=!t.file||t.isInternalFont,l=Ha()[t.name];if(o&&c&&l&&(o=null),o===`WinAnsiEncoding`&&c&&t.name?.charCodeAt(0)>=183){let e=t.name;[`ËÎÌå`,`ºÚÌå`,`¿¬Ìå`,`·ÂËÎ`,`¿¬Ìå_GB2312`,`·ÂËÎ_GB2312`,`Á¥Êé`,`ÐÂËÎ`,`·ÂËÎÌå`,`С±êËÎ`].includes(e)&&(o=null,t.defaultEncoding=`Adobe-GB1-UCS2`,t.composite=!0,t.cidEncoding=I.get(`GBK-EUC-H`),t.cMap=await Oi.create({encoding:t.cidEncoding,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null}),t.vertical=t.cMap.vertical,t.cidSystemInfo={registry:`Adobe`,ordering:`GB1`,supplement:0})}if(o)t.defaultEncoding=Gi(o);else{let e=!!(t.flags&ra.Symbolic),n=!!(t.flags&ra.Nonsymbolic);t.type===`TrueType`&&e&&n&&a.length!==0&&(t.flags&=~ra.Symbolic,e=!1),s=Vi,t.type===`TrueType`&&!n&&(s=Hi),(e||l)&&(s=Bi,c&&(/Symbol/i.test(t.name)?s=Ui:/Dingbats/i.test(t.name)?s=Wi:/Wingdings/i.test(t.name)&&(s=Hi))),t.defaultEncoding=s}t.differences=a,t.baseEncodingName=o,t.hasEncoding=!!o||a.length>0,t.dict=e,t.toUnicode=await i;let u=await this.buildToUnicode(t);return t.toUnicode=u,r&&(t.cidToGidMap=this.readCidToGidMap(r,u)),t}_simpleFontToUnicode(e,t=!1){N(!e.composite,`Must be a simple font.`);let n=[],r=e.defaultEncoding.slice(),i=e.baseEncodingName,a=e.differences;for(let e in a){let t=a[e];t!==`.notdef`&&(r[e]=t)}let o=Ki();for(let a in r){let s=r[a];if(s===``)continue;let c=o[s];if(c!==void 0){n[a]=String.fromCharCode(c);continue}let l=0;switch(s[0]){case`G`:s.length===3&&(l=parseInt(s.substring(1),16));break;case`g`:s.length===5&&(l=parseInt(s.substring(1),16));break;case`C`:case`c`:if(s.length>=3&&s.length<=4){let n=s.substring(1);if(t){l=parseInt(n,16);break}if(l=+n,Number.isNaN(l)&&Number.isInteger(parseInt(n,16)))return this._simpleFontToUnicode(e,!0)}break;case`u`:c=Xi(s,o),c!==-1&&(l=c);break;default:switch(s){case`f_h`:case`f_t`:case`T_h`:n[a]=s.replaceAll(`_`,``);continue}break}if(l>0&&l<=1114111&&Number.isInteger(l)){if(i&&l===+a){let e=Gi(i);if(e&&(s=e[a])){n[a]=String.fromCharCode(o[s]);continue}}n[a]=String.fromCodePoint(l)}}return n}async buildToUnicode(e){if(e.hasIncludedToUnicodeMap=e.toUnicode?.length>0,e.hasIncludedToUnicodeMap)return!e.composite&&e.hasEncoding&&(e.fallbackToUnicode=this._simpleFontToUnicode(e)),e.toUnicode;if(!e.composite)return new to(this._simpleFontToUnicode(e));if(e.composite&&(e.cMap.builtInCMap&&!(e.cMap instanceof mi)||e.cidSystemInfo?.registry===`Adobe`&&(e.cidSystemInfo.ordering===`GB1`||e.cidSystemInfo.ordering===`CNS1`||e.cidSystemInfo.ordering===`Japan1`||e.cidSystemInfo.ordering===`Korea1`))){let{registry:t,ordering:n}=e.cidSystemInfo,r=I.get(`${t}-${n}-UCS2`),i=await Oi.create({encoding:r,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null}),a=[],o=[];return e.cMap.forEach(function(e,t){if(t>65535)throw new F(`Max size of CID is 65,535`);let n=i.lookup(t);if(n){o.length=0;for(let e=0,t=n.length;e<t;e+=2)o.push((n.charCodeAt(e)<<8)+n.charCodeAt(e+1));a[e]=String.fromCharCode(...o)}}),new to(a)}return new no(e.firstChar,e.lastChar)}async readToUnicode(e){if(!e)return null;if(e instanceof I){let t=await Oi.create({encoding:e,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null});return t instanceof mi?new no(0,65535):new to(t.getMap())}if(e instanceof Ve)try{let t=await Oi.create({encoding:e,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null});if(t instanceof mi)return new no(0,65535);let n=Array(t.length);return t.forEach(function(e,t){if(typeof t==`number`){n[e]=String.fromCodePoint(t);return}t.length%2!=0&&(t=`\\0`+t);let r=[];for(let e=0;e<t.length;e+=2){let n=t.charCodeAt(e)<<8|t.charCodeAt(e+1);if((n&63488)!=55296){r.push(n);continue}e+=2;let i=t.charCodeAt(e)<<8|t.charCodeAt(e+1);r.push(((n&1023)<<10)+(i&1023)+65536)}n[e]=String.fromCodePoint(...r)}),new to(n)}catch(e){if(e instanceof de)return null;if(this.options.ignoreErrors)return j(`readToUnicode - ignoring ToUnicode data: "${e}".`),null;throw e}return null}readCidToGidMap(e,t){let n=[];for(let r=0,i=e.length;r<i;r++){let i=e[r++]<<8|e[r],a=r>>1;i===0&&!t.has(a)||(n[a]=i)}return n}extractWidths(e,t,n){let r=this.xref,i=[],a=0,o=[],s;if(n.composite){let t=e.get(`DW`);a=typeof t==`number`?Math.ceil(t):1e3;let c=e.get(`W`);if(Array.isArray(c))for(let e=0,t=c.length;e<t;e++){let t=r.fetchIfRef(c[e++]);if(!Number.isInteger(t))break;let n=r.fetchIfRef(c[e]);if(Array.isArray(n))for(let e of n){let n=r.fetchIfRef(e);typeof n==`number`&&(i[t]=n),t++}else if(Number.isInteger(n)){let a=r.fetchIfRef(c[++e]);if(typeof a!=`number`)continue;for(let e=t;e<=n;e++)i[e]=a}else break}if(n.vertical){let t=e.getArray(`DW2`),n=pt(t,2)?t:[880,-1e3];if(s=[n[1],a*.5,n[0]],n=e.get(`W2`),Array.isArray(n))for(let e=0,t=n.length;e<t;e++){let t=r.fetchIfRef(n[e++]);if(!Number.isInteger(t))break;let i=r.fetchIfRef(n[e]);if(Array.isArray(i))for(let e=0,n=i.length;e<n;e++){let n=[r.fetchIfRef(i[e++]),r.fetchIfRef(i[e++]),r.fetchIfRef(i[e])];pt(n,null)&&(o[t]=n),t++}else if(Number.isInteger(i)){let a=[r.fetchIfRef(n[++e]),r.fetchIfRef(n[++e]),r.fetchIfRef(n[++e])];if(!pt(a,null))continue;for(let e=t;e<=i;e++)o[e]=a}else break}}}else{let o=e.get(`Widths`);if(Array.isArray(o)){let e=n.firstChar;for(let t of o){let n=r.fetchIfRef(t);typeof n==`number`&&(i[e]=n),e++}let s=t.get(`MissingWidth`);a=typeof s==`number`?s:0}else{let t=e.get(`BaseFont`);if(t instanceof I){let e=this.getBaseFontMetrics(t.name);i=this.buildCharCodeToWidth(e.widths,n),a=e.defaultWidth}}}let c=!0,l=a;for(let e in i){let t=i[e];if(t){if(!l){l=t;continue}if(l!==t){c=!1;break}}}c?n.flags|=ra.FixedPitch:n.flags&=~ra.FixedPitch,n.defaultWidth=a,n.widths=i,n.defaultVMetrics=s,n.vmetrics=o}isSerifFont(e){let t=e.split(`-`,1)[0];return t in Va()||/serif/i.test(t)}getBaseFontMetrics(e){let t=0,n=Object.create(null),r=!1,i=sa(e);i=Ra()[i]||i;let a=vo(),o=a[i]??a[this.isSerifFont(e)?`Times-Roman`:`Helvetica`];return typeof o==`number`?(t=o,r=!0):n=o(),{defaultWidth:t,monospace:r,widths:n}}buildCharCodeToWidth(e,t){let n=Object.create(null),r=t.differences,i=t.defaultEncoding;for(let t=0;t<256;t++){if(t in r&&e[r[t]]){n[t]=e[r[t]];continue}if(t in i&&e[i[t]]){n[t]=e[i[t]];continue}}return n}preEvaluateFont(e){let t=e,n=e.get(`Subtype`);if(!(n instanceof I))throw new F(`invalid font Subtype`);let r=!1,i;if(n.name===`Type0`){let t=e.get(`DescendantFonts`);if(!t)throw new F(`Descendant fonts are not specified`);if(e=Array.isArray(t)?this.xref.fetchIfRef(t[0]):t,!(e instanceof L))throw new F(`Descendant font is not a dictionary.`);if(n=e.get(`Subtype`),!(n instanceof I))throw new F(`invalid font Subtype`);r=!0}let a=e.get(`FirstChar`);Number.isInteger(a)||(a=0);let o=e.get(`LastChar`);Number.isInteger(o)||(o=r?65535:255);let s=e.get(`FontDescriptor`),c=e.get(`ToUnicode`)||t.get(`ToUnicode`);if(s){i=new Dl;let s=t.getRaw(`Encoding`);if(s instanceof I)i.update(s.name);else if(s instanceof R)i.update(s.toString());else if(s instanceof L){for(let e of s.getRawValues())if(e instanceof I)i.update(e.name);else if(e instanceof R)i.update(e.toString());else if(Array.isArray(e)){let t=e.length,n=Array(t);for(let r=0;r<t;r++){let t=e[r];t instanceof I?n[r]=t.name:(typeof t==`number`||t instanceof R)&&(n[r]=t.toString())}i.update(n.join())}}if(i.update(`${a}-${o}`),c instanceof Ve){let e=c.stream||c,t=e.buffer?new Uint8Array(e.buffer.buffer,0,e.bufferLength):new Uint8Array(e.bytes.buffer,e.start,e.end-e.start);i.update(t)}else c instanceof I&&i.update(c.name);let l=e.get(`Widths`)||t.get(`Widths`);if(Array.isArray(l)){let e=[];for(let t of l)(typeof t==`number`||t instanceof R)&&e.push(t.toString());i.update(e.join())}if(r){i.update(`compositeFont`);let n=e.get(`W`)||t.get(`W`);if(Array.isArray(n)){let e=[];for(let t of n)if(typeof t==`number`||t instanceof R)e.push(t.toString());else if(Array.isArray(t)){let n=[];for(let e of t)(typeof e==`number`||e instanceof R)&&n.push(e.toString());e.push(`[${n.join()}]`)}i.update(e.join())}let r=e.getRaw(`CIDToGIDMap`)||t.getRaw(`CIDToGIDMap`);r instanceof I?i.update(r.name):r instanceof R?i.update(r.toString()):r instanceof Ve&&i.update(r.peekBytes())}if(n.name===`Type3`){let e=t.get(`CharProcs`);if(e instanceof L)for(let[t,n]of e.getRawEntries())i.update(n instanceof R?`${t}\\0${n}`:t)}}return{descriptor:s,dict:e,baseDict:t,composite:r,type:n.name,firstChar:a,lastChar:o,toUnicode:c,hash:i?i.hexdigest():``}}async translateFont({descriptor:e,dict:t,baseDict:n,composite:r,type:i,firstChar:a,lastChar:s,toUnicode:c,cssFontInfo:l}){let u=i===`Type3`;if(!e)if(u)e=L.empty;else if(r)e=L.empty;else{let e=t.get(`BaseFont`);if(!(e instanceof I))throw new F(`Base font is not specified`);e=sa(e.name);let r=this.getBaseFontMetrics(e),o=e.split(`-`,1)[0],l=(this.isSerifFont(o)?ra.Serif:0)|(r.monospace?ra.FixedPitch:0)|(Ha()[o]?ra.Symbolic:ra.Nonsymbolic),d={type:i,name:e,loadedName:n.loadedName,systemFontInfo:null,widths:r.widths,defaultWidth:r.defaultWidth,isSimulatedFlags:!0,flags:l,firstChar:a,lastChar:s,toUnicode:c,xHeight:0,capHeight:0,italicAngle:0,isType3Font:u},f=t.get(`Widths`),p=Ka(e),m=null;p&&(m=await this.fetchStandardFontData(p),d.isInternalFont=!!m),!d.isInternalFont&&this.options.useSystemFonts&&(d.systemFontInfo=Cl(this.systemFontCache,this.idFactory,this.options.standardFontDataUrl,e,p,i));let h=await this.extractDataStructures(t,d);if(Array.isArray(f)){let e=[],t=a;for(let n of f){let r=this.xref.fetchIfRef(n);typeof r==`number`&&(e[t]=r),t++}h.widths=e}else h.widths=this.buildCharCodeToWidth(r.widths,h);return new fs(e,m,h,this.options)}let d=e.get(`FontName`),f=t.get(`BaseFont`);typeof d==`string`&&(d=I.get(d)),typeof f==`string`&&(f=I.get(f));let p=d?.name,m=f?.name;if(u?p||(d=I.get(i)):p!==m&&(A(`The FontDescriptor\'s FontName is "${p}" but should be the same as the Font\'s BaseFont "${m}".`),p&&m&&(m.startsWith(p)||!qa(p)&&qa(m))&&(d=null),d||=f),!(d instanceof I))throw new F(`invalid font name`);let h,g,_,v,y,b;try{for(let t of[`FontFile`,`FontFile2`,`FontFile3`])if(h=e.get(t),h){g=t;break}if(h)if(h instanceof Ve){if(h.isAsync){let e=await h.asyncGetBytes();e&&(h=new Cn(e,0,e.length,h.dict))}if(h.isEmpty)throw new F(`FontFile is empty`)}else throw new F(`FontFile should be a stream`)}catch(e){if(!this.options.ignoreErrors)throw e;j(`translateFont - fetching "${d.name}" font file: "${e}".`),h=null}let x=!1,S=null,C=null;if(h){if(h.dict){let e=h.dict.get(`Subtype`);e instanceof I&&(_=e.name),v=h.dict.get(`Length1`),y=h.dict.get(`Length2`),b=h.dict.get(`Length3`)}}else if(l){let e=tc(d.name);e&&(l.fontFamily=`${l.fontFamily}-PdfJS-XFA`,l.metrics=e.metrics||null,S=e.factors||null,h=await this.fetchStandardFontData(e.name),x=!!h,n=t=rc(d.name),r=!0)}else if(!u){let e=Ka(d.name);e&&(h=await this.fetchStandardFontData(e),x=!!h),!x&&this.options.useSystemFonts&&(C=Cl(this.systemFontCache,this.idFactory,this.options.standardFontDataUrl,d.name,e,i))}let w=mt(t.getArray(`FontMatrix`),o),T=gt(e.getArray(`FontBBox`)||t.getArray(`FontBBox`),u?[0,0,0,0]:void 0),E=e.get(`Ascent`);typeof E!=`number`&&(E=void 0);let D=e.get(`Descent`);typeof D!=`number`&&(D=void 0);let O=e.get(`XHeight`);typeof O!=`number`&&(O=0);let ee=e.get(`CapHeight`);typeof ee!=`number`&&(ee=0);let te=e.get(`Flags`);Number.isInteger(te)||(te=0);let ne=e.get(`ItalicAngle`);typeof ne!=`number`&&(ne=0);let k={type:i,name:d.name,subtype:_,file:h,fontFileN:g,length1:v,length2:y,length3:b,isInternalFont:x,loadedName:n.loadedName,composite:r,fixedPitch:!1,fontMatrix:w,firstChar:a,lastChar:s,toUnicode:c,bbox:T,ascent:E,descent:D,xHeight:O,capHeight:ee,flags:te,italicAngle:ne,isType3Font:u,cssFontInfo:l,scaleFactors:S,systemFontInfo:C};if(r){let e=n.get(`Encoding`);e instanceof I&&(k.cidEncoding=e.name),k.cMap=await Oi.create({encoding:e,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null}),k.vertical=k.cMap.vertical}let M=await this.extractDataStructures(t,k);this.extractWidths(t,e,M);let N=new fs(d.name,h,M,this.options);if(N.missingFile&&!N.systemFontInfo&&!u&&this.options.useSystemFonts){let e=Ka(d.name),t=Cl(this.systemFontCache,this.idFactory,this.options.standardFontDataUrl,d.name,e,i);t&&(t.guessFallback&&(t.guessFallback=!1,t.css+=`,${N.fallbackName}`),N.systemFontInfo=t)}return N}static buildFontPaths(e,t,n,r){function i(t){let i=`${e.loadedName}_path_${t}`;try{if(e.renderer.hasBuiltPath(t))return;let r=Li(e.renderer.getPathJs(t));n.send(`commonobj`,[i,`FontPath`,r],[r])}catch(e){if(r.ignoreErrors){j(`buildFontPaths - ignoring ${i} glyph: "${e}".`);return}throw e}}for(let e of t){i(e.fontChar);let t=e.accent;t?.fontChar&&i(t.fontChar)}}static get fallbackFontDict(){let e=new L;return e.set(`BaseFont`,I.get(`Helvetica`)),e.set(`Type`,I.get(`FallbackType`)),e.set(`Subtype`,I.get(`FallbackType`)),e.set(`Encoding`,I.get(`WinAnsiEncoding`)),P(this,`fallbackFontDict`,e)}},Rl=class{#e=!1;#t=null;constructor({loadedName:e,font:t,dict:n}){this.loadedName=e,this.font=t,this.dict=n,this.type3Dependencies=t.isType3Font?new Set:null}send(e){if(this.#e)return;this.#e=!0;let t=this.font.exportData(),n=t.buffer?[t.buffer]:null;e.send(`commonobj`,[this.loadedName,`Font`,t],n)}fallback(e,t){this.font.data&&(this.font.disableFontFace=!0,Ll.buildFontPaths(this.font,this.font.glyphCacheValues,e,t))}loadType3Data(e,t,n,r=null){if(this.#t)return this.#t;let{font:i,type3Dependencies:a}=this;N(i.isType3Font,`Must be a Type3 font.`);let o=e.clone({ignoreErrors:!1}),s=new Fe(e.type3FontRefs);this.dict.objId&&!s.has(this.dict.objId)&&s.put(this.dict.objId),o.type3FontRefs=s;let c=Promise.resolve(),l=this.dict.get(`CharProcs`),u=this.dict.get(`Resources`)||t,d=Object.create(null),[f,p,m,h]=i.bbox,g=m-f,_=h-p,v=Math.hypot(g,_);for(let e of l.getKeys())c=c.then(()=>{let t=l.get(e),i=new ur;return o.getOperatorList({stream:t,task:n,resources:u,operatorList:i,prevRefs:r}).then(()=>{switch(i.fnArray[0]){case D.setCharWidthAndBounds:this.#n(i,v);break;case D.setCharWidth:v||this.#r(i);break}d[e]=i.getIR();for(let e of i.dependencies)a.add(e)}).catch(function(t){j(`Type3 font resource "${e}" is not available.`),d[e]=new ur().getIR()})});return this.#t=c.then(()=>{i.charProcOperatorList=d,this._bbox&&(i.isCharBBox=!0,i.bbox=this._bbox)}),this.#t}#n(e,t=NaN){let n=ge.normalizeRect(e.argsArray[0].slice(2)),r=n[2]-n[0],a=n[3]-n[1];r===0||a===0?(e.fnArray.splice(0,1),e.argsArray.splice(0,1)):(t===0||Math.round(Math.hypot(r,a)/t)>=10)&&(this._bbox??=i.slice(),ge.rectBoundingBox(...n,this._bbox));let o=0,s=e.length;for(;o<s;){switch(e.fnArray[o]){case D.setCharWidthAndBounds:break;case D.setStrokeColorSpace:case D.setFillColorSpace:case D.setStrokeColor:case D.setStrokeColorN:case D.setFillColor:case D.setFillColorN:case D.setStrokeGray:case D.setFillGray:case D.setStrokeRGBColor:case D.setFillRGBColor:case D.setStrokeCMYKColor:case D.setFillCMYKColor:case D.shadingFill:case D.setRenderingIntent:e.fnArray.splice(o,1),e.argsArray.splice(o,1),s--;continue;case D.setGState:let[t]=e.argsArray[o],n=0,r=t.length;for(;n<r;){let[e]=t[n];switch(e){case`TR`:case`TR2`:case`HT`:case`BG`:case`BG2`:case`UCR`:case`UCR2`:t.splice(n,1),r--;continue}n++}break}o++}}#r(e){let t=1,n=e.length;for(;t<n;){switch(e.fnArray[t]){case D.constructPath:let n=e.argsArray[t][2];this._bbox??=i.slice(),ge.rectBoundingBox(...n,this._bbox);break}t++}}},zl=class{constructor(e=new Vl){this.state=e,this.stateStack=[]}save(){let e=this.state;this.stateStack.push(this.state),this.state=e.clone()}restore(){let e=this.stateStack.pop();e&&(this.state=e)}transform(e){this.state.ctm=ge.transform(this.state.ctm,e)}},Bl=class{ctm=new Float32Array(Xe);fontName=null;fontSize=0;loadedName=null;font=null;fontMatrix=o;textMatrix=Xe.slice();textLineMatrix=Xe.slice();charSpacing=0;wordSpacing=0;leading=0;textHScale=1;textRise=0;setTextMatrix(e,t,n,r,i,a){let o=this.textMatrix;o[0]=e,o[1]=t,o[2]=n,o[3]=r,o[4]=i,o[5]=a}setTextLineMatrix(e,t,n,r,i,a){let o=this.textLineMatrix;o[0]=e,o[1]=t,o[2]=n,o[3]=r,o[4]=i,o[5]=a}translateTextMatrix(e,t){let n=this.textMatrix;n[4]=n[0]*e+n[2]*t+n[4],n[5]=n[1]*e+n[3]*t+n[5]}translateTextLineMatrix(e,t){let n=this.textLineMatrix;n[4]=n[0]*e+n[2]*t+n[4],n[5]=n[1]*e+n[3]*t+n[5]}carriageReturn(){this.translateTextLineMatrix(0,-this.leading),this.textMatrix=this.textLineMatrix.slice()}clone(){let e=Object.assign(Object.create(this),this);return e.textMatrix=this.textMatrix.slice(),e.textLineMatrix=this.textLineMatrix.slice(),e.fontMatrix=this.fontMatrix.slice(),e}},Vl=class{ctm=new Float32Array(Xe);font=null;textRenderingMode=g.FILL;_fillColorSpace=Ln.gray;_strokeColorSpace=Ln.gray;patternFillColorSpace=null;patternStrokeColorSpace=null;currentPointX=0;currentPointY=0;pathMinMax=a.slice();pathBuffer=[];get fillColorSpace(){return this._fillColorSpace}set fillColorSpace(e){this._fillColorSpace=this.patternFillColorSpace=e}get strokeColorSpace(){return this._strokeColorSpace}set strokeColorSpace(e){this._strokeColorSpace=this.patternStrokeColorSpace=e}clone({newPath:e=!1}={}){let t=Object.create(this);return e&&(t.pathBuffer=[],t.pathMinMax=a.slice()),t}},Hl=class e{static get opMap(){return P(this,`opMap`,Object.assign(Object.create(null),{w:{id:D.setLineWidth,numArgs:1,variableArgs:!1},J:{id:D.setLineCap,numArgs:1,variableArgs:!1},j:{id:D.setLineJoin,numArgs:1,variableArgs:!1},M:{id:D.setMiterLimit,numArgs:1,variableArgs:!1},d:{id:D.setDash,numArgs:2,variableArgs:!1},ri:{id:D.setRenderingIntent,numArgs:1,variableArgs:!1},i:{id:D.setFlatness,numArgs:1,variableArgs:!1},gs:{id:D.setGState,numArgs:1,variableArgs:!1},q:{id:D.save,numArgs:0,variableArgs:!1},Q:{id:D.restore,numArgs:0,variableArgs:!1},cm:{id:D.transform,numArgs:6,variableArgs:!1},m:{id:D.moveTo,numArgs:2,variableArgs:!1},l:{id:D.lineTo,numArgs:2,variableArgs:!1},c:{id:D.curveTo,numArgs:6,variableArgs:!1},v:{id:D.curveTo2,numArgs:4,variableArgs:!1},y:{id:D.curveTo3,numArgs:4,variableArgs:!1},h:{id:D.closePath,numArgs:0,variableArgs:!1},re:{id:D.rectangle,numArgs:4,variableArgs:!1},S:{id:D.stroke,numArgs:0,variableArgs:!1},s:{id:D.closeStroke,numArgs:0,variableArgs:!1},f:{id:D.fill,numArgs:0,variableArgs:!1},F:{id:D.fill,numArgs:0,variableArgs:!1},"f*":{id:D.eoFill,numArgs:0,variableArgs:!1},B:{id:D.fillStroke,numArgs:0,variableArgs:!1},"B*":{id:D.eoFillStroke,numArgs:0,variableArgs:!1},b:{id:D.closeFillStroke,numArgs:0,variableArgs:!1},"b*":{id:D.closeEOFillStroke,numArgs:0,variableArgs:!1},n:{id:D.endPath,numArgs:0,variableArgs:!1},W:{id:D.clip,numArgs:0,variableArgs:!1},"W*":{id:D.eoClip,numArgs:0,variableArgs:!1},BT:{id:D.beginText,numArgs:0,variableArgs:!1},ET:{id:D.endText,numArgs:0,variableArgs:!1},Tc:{id:D.setCharSpacing,numArgs:1,variableArgs:!1},Tw:{id:D.setWordSpacing,numArgs:1,variableArgs:!1},Tz:{id:D.setHScale,numArgs:1,variableArgs:!1},TL:{id:D.setLeading,numArgs:1,variableArgs:!1},Tf:{id:D.setFont,numArgs:2,variableArgs:!1},Tr:{id:D.setTextRenderingMode,numArgs:1,variableArgs:!1},Ts:{id:D.setTextRise,numArgs:1,variableArgs:!1},Td:{id:D.moveText,numArgs:2,variableArgs:!1},TD:{id:D.setLeadingMoveText,numArgs:2,variableArgs:!1},Tm:{id:D.setTextMatrix,numArgs:6,variableArgs:!1},"T*":{id:D.nextLine,numArgs:0,variableArgs:!1},Tj:{id:D.showText,numArgs:1,variableArgs:!1},TJ:{id:D.showSpacedText,numArgs:1,variableArgs:!1},"\'":{id:D.nextLineShowText,numArgs:1,variableArgs:!1},\'"\':{id:D.nextLineSetSpacingShowText,numArgs:3,variableArgs:!1},d0:{id:D.setCharWidth,numArgs:2,variableArgs:!1},d1:{id:D.setCharWidthAndBounds,numArgs:6,variableArgs:!1},CS:{id:D.setStrokeColorSpace,numArgs:1,variableArgs:!1},cs:{id:D.setFillColorSpace,numArgs:1,variableArgs:!1},SC:{id:D.setStrokeColor,numArgs:4,variableArgs:!0},SCN:{id:D.setStrokeColorN,numArgs:33,variableArgs:!0},sc:{id:D.setFillColor,numArgs:4,variableArgs:!0},scn:{id:D.setFillColorN,numArgs:33,variableArgs:!0},G:{id:D.setStrokeGray,numArgs:1,variableArgs:!1},g:{id:D.setFillGray,numArgs:1,variableArgs:!1},RG:{id:D.setStrokeRGBColor,numArgs:3,variableArgs:!1},rg:{id:D.setFillRGBColor,numArgs:3,variableArgs:!1},K:{id:D.setStrokeCMYKColor,numArgs:4,variableArgs:!1},k:{id:D.setFillCMYKColor,numArgs:4,variableArgs:!1},sh:{id:D.shadingFill,numArgs:1,variableArgs:!1},BI:{id:D.beginInlineImage,numArgs:0,variableArgs:!1},ID:{id:D.beginImageData,numArgs:0,variableArgs:!1},EI:{id:D.endInlineImage,numArgs:1,variableArgs:!1},Do:{id:D.paintXObject,numArgs:1,variableArgs:!1},MP:{id:D.markPoint,numArgs:1,variableArgs:!1},DP:{id:D.markPointProps,numArgs:2,variableArgs:!1},BMC:{id:D.beginMarkedContent,numArgs:1,variableArgs:!1},BDC:{id:D.beginMarkedContentProps,numArgs:2,variableArgs:!1},EMC:{id:D.endMarkedContent,numArgs:0,variableArgs:!1},BX:{id:D.beginCompat,numArgs:0,variableArgs:!1},EX:{id:D.endCompat,numArgs:0,variableArgs:!1},BM:null,BD:null,true:null,fa:null,fal:null,fals:null,false:null,nu:null,nul:null,null:null}))}static MAX_INVALID_PATH_OPS=10;constructor(t,n,r=new zl){this.parser=new oi({lexer:new li(t,e.opMap),xref:n}),this.stateManager=r,this.nonProcessedArgs=[],this._isPathOp=!1,this._numInvalidPathOPS=0}get savedStatesDepth(){return this.stateManager.stateStack.length}read(t){let n=t.args;for(;;){let r=this.parser.getObj();if(r instanceof Ne){let i=r.cmd,a=e.opMap[i];if(!a){j(`Unknown command "${i}".`);continue}let o=a.id,s=a.numArgs,c=n===null?0:n.length;if(this._isPathOp||(this._numInvalidPathOPS=0),this._isPathOp=o>=D.moveTo&&o<=D.endPath,a.variableArgs)c>s&&A(`Command ${i}: expected [0, ${s}] args, but received ${c} args.`);else{if(c!==s){let e=this.nonProcessedArgs;for(;c>s;)e.push(n.shift()),c--;for(;c<s&&e.length!==0;)n===null&&(n=[]),n.unshift(e.pop()),c++}if(c<s){let t=`command ${i}: expected ${s} args, but received ${c} args.`;if(this._isPathOp&&++this._numInvalidPathOPS>e.MAX_INVALID_PATH_OPS)throw new F(`Invalid ${t}`);j(`Skipping ${t}`),n!==null&&(n.length=0);continue}}return this.preprocessCommand(o,n),t.fn=o,t.args=n,!0}if(r===Oe)return!1;if(r!==null&&(n===null&&(n=[]),n.push(r),n.length>33))throw new F(`Too many arguments`)}}preprocessCommand(e,t){switch(e|0){case D.save:this.stateManager.save();break;case D.restore:this.stateManager.restore();break;case D.transform:this.stateManager.transform(t);break}}},Ul=class extends Hl{constructor(e){super(new wn(e))}parse(){let e={fn:0,args:[]},t={fontSize:0,fontName:``,fontColor:new Uint8ClampedArray(3)};try{for(;e.args.length=0,this.read(e);){if(this.savedStatesDepth!==0)continue;let{fn:n,args:r}=e;switch(n|0){case D.setFont:let[e,n]=r;e instanceof I&&(t.fontName=e.name),typeof n==`number`&&n>0&&(t.fontSize=n);break;case D.setFillRGBColor:Ln.rgb.getRgbItem(r,0,t.fontColor,0);break;case D.setFillGray:Ln.gray.getRgbItem(r,0,t.fontColor,0);break;case D.setFillCMYKColor:Ln.cmyk.getRgbItem(r,0,t.fontColor,0);break}}}catch(e){j(`parseDefaultAppearance - ignoring errors: "${e}".`)}return t}};function Wl(e){return new Ul(e).parse()}var Gl=class extends Hl{constructor(e,t,n){super(e),this.stream=e,this.xref=t,this.globalColorSpaceCache=n,this.resources=e.dict?.get(`Resources`)}parse(){let e={fn:0,args:[]},t={scaleFactor:1,fontSize:0,fontName:``,fontColor:new Uint8ClampedArray(3),fillColorSpace:Ln.gray},n=!1,r=[];try{for(;e.args.length=0,!(n||!this.read(e));){let{fn:i,args:a}=e;switch(i|0){case D.save:r.push({scaleFactor:t.scaleFactor,fontSize:t.fontSize,fontName:t.fontName,fontColor:t.fontColor.slice(),fillColorSpace:t.fillColorSpace});break;case D.restore:t=r.pop()||t;break;case D.setTextMatrix:t.scaleFactor*=Math.hypot(a[0],a[1]);break;case D.setFont:let[e,i]=a;e instanceof I&&(t.fontName=e.name),typeof i==`number`&&i>0&&(t.fontSize=i*t.scaleFactor);break;case D.setFillColorSpace:t.fillColorSpace=Ln.parse({cs:a[0],xref:this.xref,resources:this.resources,pdfFunctionFactory:this._pdfFunctionFactory,globalColorSpaceCache:this.globalColorSpaceCache,localColorSpaceCache:this._localColorSpaceCache});break;case D.setFillColor:t.fillColorSpace.getRgbItem(a,0,t.fontColor,0);break;case D.setFillRGBColor:Ln.rgb.getRgbItem(a,0,t.fontColor,0);break;case D.setFillGray:Ln.gray.getRgbItem(a,0,t.fontColor,0);break;case D.setFillCMYKColor:Ln.cmyk.getRgbItem(a,0,t.fontColor,0);break;case D.showText:case D.showSpacedText:case D.nextLineShowText:case D.nextLineSetSpacingShowText:n=!0;break}}}catch(e){j(`parseAppearanceStream - ignoring errors: "${e}".`)}return this.stream.reset(),delete t.scaleFactor,delete t.fillColorSpace,t}get _localColorSpaceCache(){return P(this,`_localColorSpaceCache`,new Gc)}get _pdfFunctionFactory(){return P(this,`_pdfFunctionFactory`,new $c({xref:this.xref}))}};function Kl(e,t,n){return new Gl(e,t,n).parse()}function ql(e,t){return e[0]===e[1]&&e[1]===e[2]?`${Ot(e[0]/255)} ${t?`g`:`G`}`:Array.from(e,e=>Ot(e/255)).join(` `)+` ${t?`rg`:`RG`}`}function Jl({fontSize:e,fontName:t,fontColor:n}){return`/${vt(t)} ${e} Tf ${ql(n,!0)}`}var Yl=class e{static#e=1;constructor(t,n){this.xref=t,this.widths=null,this.firstChar=1/0,this.lastChar=-1/0,this.fontFamily=n;let r=new OffscreenCanvas(1,1);this.ctxMeasure=r.getContext(`2d`,{willReadFrequently:!0}),this.fontName=I.get(`InvalidPDFjsFont_${n}_${e.#e++}`)}get fontDescriptorRef(){if(!e._fontDescriptorRef){let t=new L(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),e._fontDescriptorRef=this.xref.getNewPersistentRef(t)}return e._fontDescriptorRef}get descendantFontRef(){let e=new L(this.xref);e.set(`BaseFont`,this.fontName),e.setIfName(`Type`,`Font`),e.setIfName(`Subtype`,`CIDFontType0`),e.setIfName(`CIDToGIDMap`,`Identity`),e.set(`FirstChar`,this.firstChar),e.set(`LastChar`,this.lastChar),e.set(`FontDescriptor`,this.fontDescriptorRef),e.set(`DW`,1e3);let t=[],n=[...this.widths].sort(),r=null,i=null;for(let[e,a]of n){if(!r){r=e,i=[a];continue}e===r+i.length?i.push(a):(t.push(r,i),r=e,i=[a])}r&&t.push(r,i),e.set(`W`,t);let a=new L(this.xref);return a.set(`Ordering`,`Identity`),a.set(`Registry`,`Adobe`),a.set(`Supplement`,0),e.set(`CIDSystemInfo`,a),this.xref.getNewPersistentRef(e)}get baseFontRef(){let e=new L(this.xref);return e.set(`BaseFont`,this.fontName),e.setIfName(`Type`,`Font`),e.setIfName(`Subtype`,`Type0`),e.setIfName(`Encoding`,`Identity-H`),e.set(`DescendantFonts`,[this.descendantFontRef]),e.setIfName(`ToUnicode`,`Identity-H`),this.xref.getNewPersistentRef(e)}get resources(){let e=new L(this.xref),t=new L(this.xref);return t.set(this.fontName.name,this.baseFontRef),e.set(`Font`,t),e}_createContext(){return this.widths=new Map,this.ctxMeasure.font=`1000px ${this.fontFamily}`,this.ctxMeasure}createFontResources(e){let t=this._createContext();for(let n of e.split(/\\r\\n?|\\n/))for(let e of n.split(``)){let n=e.charCodeAt(0);if(this.widths.has(n))continue;let r=t.measureText(e),i=Math.ceil(r.width);this.widths.set(n,i),this.firstChar=Math.min(n,this.firstChar),this.lastChar=Math.max(n,this.lastChar)}return this.resources}static getFirstPositionInfo(e,t,n){let[r,i,a,o]=e,l=a-r,u=o-i;t%180!=0&&([l,u]=[u,l]);let d=s*n,f=c*n;return{coords:[0,u+f-d],bbox:[0,0,l,u],matrix:t===0?void 0:jt(t,u,d)}}createAppearance(e,t,n,r,i,a){let o=this._createContext(),l=[],u=-1/0;for(let t of e.split(/\\r\\n?|\\n/)){l.push(t);let e=o.measureText(t).width;u=Math.max(u,e);for(let e of Ct(t)){let t=String.fromCodePoint(e),n=this.widths.get(e);if(n===void 0){let r=o.measureText(t);n=Math.ceil(r.width),this.widths.set(e,n),this.firstChar=Math.min(e,this.firstChar),this.lastChar=Math.max(e,this.lastChar)}}}u*=r/1e3;let[d,f,p,m]=t,h=p-d,g=m-f;n%180!=0&&([h,g]=[g,h]);let _=1;u>h&&(_=h/u);let v=1,y=s*r,b=c*r,x=y*l.length;x>g&&(v=g/x);let S=r*Math.min(_,v),C=[`q`,`0 0 ${Ot(h)} ${Ot(g)} re W n`,`BT`,`1 0 0 1 0 ${Ot(g+b)} Tm 0 Tc ${ql(i,!0)}`,`/${this.fontName.name} ${Ot(S)} Tf`],{resources:w}=this;if(a=typeof a==`number`&&a>=0&&a<=1?a:1,a!==1){C.push(`/R0 gs`);let e=new L(this.xref),t=new L(this.xref);t.set(`ca`,a),t.set(`CA`,a),t.setIfName(`Type`,`ExtGState`),e.set(`R0`,t),w.set(`ExtGState`,e)}let T=Ot(y);for(let e of l)C.push(`0 -${T} Td <${We(e)}> Tj`);C.push(`ET`,`Q`);let E=C.join(`\n`),D=new L(this.xref);if(D.setIfName(`Subtype`,`Form`),D.setIfName(`Type`,`XObject`),D.set(`BBox`,[0,0,h,g]),D.set(`Length`,E.length),D.set(`Resources`,w),n){let e=jt(n,h,g);D.set(`Matrix`,e)}let O=new wn(E);return O.dict=D,O}};let Xl=[`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`],Zl=[`HH:MM`,`h:MM tt`,`HH:MM:ss`,`h:MM:ss tt`];n(3110);var Ql=class{constructor(e,t,n){this.root=e,this.xref=t,this._type=n}getAll(e=!1){let t=new Map;if(!this.root)return t;let n=this.xref,r=new Fe;this.root instanceof R&&r.put(this.root);let i=[this.root];for(let a of i){let o=n.fetchIfRef(a);if(!(o instanceof L))continue;if(o.has(`Kids`)){let e=o.get(`Kids`);if(!Array.isArray(e))continue;for(let t of e){if(t instanceof R){if(r.has(t))throw new F(`Duplicate entry in "${this._type}" tree.`);r.put(t)}i.push(t)}continue}let s=o.get(this._type);if(Array.isArray(s))for(let r=0,i=s.length;r<i;r+=2)t.set(n.fetchIfRef(s[r]),e?s[r+1]:n.fetchIfRef(s[r+1]))}return t}getRaw(e){if(!this.root)return null;let t=this.xref,n=t.fetchIfRef(this.root),r=0;for(;n.has(`Kids`);){if(++r>10)return j(`Search depth limit reached for "${this._type}" tree.`),null;let i=n.get(`Kids`);if(!Array.isArray(i))return null;let a=0,o=i.length-1;for(;a<=o;){let r=a+o>>1,s=t.fetchIfRef(i[r]),c=s.get(`Limits`);if(e<t.fetchIfRef(c[0]))o=r-1;else if(e>t.fetchIfRef(c[1]))a=r+1;else{n=s;break}}if(a>o)return null}let i=n.get(this._type);if(Array.isArray(i)){let n=0,r=i.length-2;for(;n<=r;){let a=n+r>>1,o=a+(a&1),s=t.fetchIfRef(i[o]);if(e<s)r=o-2;else if(e>s)n=o+2;else return i[o+1]}}return null}get(e){return this.xref.fetchIfRef(this.getRaw(e))}},$l=class extends Ql{constructor(e,t){super(e,t,`Names`)}},eu=class extends Ql{constructor(e,t){super(e,t,`Nums`)}};function tu(){wr(),Me(),na(),Br.cleanup()}function nu(e){if(e instanceof L){for(let t of[`UF`,`F`,`Unix`,`Mac`,`DOS`])if(e.has(t))return e.get(t)}return null}var ru=class{#e=!1;constructor(e,t=!1){e instanceof L&&(this.root=e,e.has(`FS`)&&(this.fs=e.get(`FS`)),e.has(`RF`)&&j(`Related file specifications are not supported`),t||(e.has(`EF`)?this.#e=!0:j(`Non-embedded file specifications are not supported`)))}get filename(){let e=nu(this.root);return e&&typeof e==`string`?qe(e,!0).replaceAll(`\\\\\\\\`,`\\\\`).replaceAll(`\\\\/`,`/`).replaceAll(`\\\\`,`/`):``}get content(){if(!this.#e)return null;let e=nu(this.root?.get(`EF`));return e instanceof Ve?e.getBytes():(j(`Embedded file specification points to non-existing/invalid content`),null)}get description(){let e=this.root?.get(`Desc`);return e&&typeof e==`string`?qe(e):``}get serializable(){let{filename:e,content:t,description:n}=this;return{rawFilename:e,filename:ae(e)||`unnamed`,content:t,description:n}}};let iu={NoError:0,EndOfDocument:-1,UnterminatedCdat:-2,UnterminatedXmlDeclaration:-3,UnterminatedDoctypeDeclaration:-4,UnterminatedComment:-5,MalformedElement:-6,OutOfMemory:-7,UnterminatedAttributeValue:-8,UnterminatedElement:-9,ElementNeverBegun:-10};function au(e,t){let n=e[t];return n===` `||n===`\n`||n===`\\r`||n===` `}function ou(e){for(let t=0,n=e.length;t<n;t++)if(!au(e,t))return!1;return!0}var su=class{_resolveEntities(e){return e.replaceAll(/&([^;]+);/g,(e,t)=>{if(t.substring(0,2)===`#x`)return String.fromCodePoint(parseInt(t.substring(2),16));if(t.substring(0,1)===`#`)return String.fromCodePoint(parseInt(t.substring(1),10));switch(t){case`lt`:return`<`;case`gt`:return`>`;case`amp`:return`&`;case`quot`:return`"`;case`apos`:return`\'`}return this.onResolveEntity(t)})}_parseContent(e,t){let n=[],r=t;function i(){for(;r<e.length&&au(e,r);)++r}for(;r<e.length&&!au(e,r)&&e[r]!==`>`&&e[r]!==`/`;)++r;let a=e.substring(t,r);for(i();r<e.length&&e[r]!==`>`&&e[r]!==`/`&&e[r]!==`?`;){i();let t=``,a=``;for(;r<e.length&&!au(e,r)&&e[r]!==`=`;)t+=e[r],++r;if(i(),e[r]!==`=`)return null;++r,i();let o=e[r];if(o!==`"`&&o!==`\'`)return null;let s=e.indexOf(o,++r);if(s<0)return null;a=e.substring(r,s),n.push({name:t,value:this._resolveEntities(a)}),r=s+1,i()}return{name:a,attributes:n,parsed:r-t}}_parseProcessingInstruction(e,t){let n=t;function r(){for(;n<e.length&&au(e,n);)++n}for(;n<e.length&&!au(e,n)&&e[n]!==`>`&&e[n]!==`?`&&e[n]!==`/`;)++n;let i=e.substring(t,n);r();let a=n;for(;n<e.length&&(e[n]!==`?`||e[n+1]!==`>`);)++n;return{name:i,value:e.substring(a,n),parsed:n-t}}parseXml(e){let t=0;for(;t<e.length;){let n=e[t],r=t;if(n===`<`){++r;let t=e[r],n;switch(t){case`/`:if(++r,n=e.indexOf(`>`,r),n<0){this.onError(iu.UnterminatedElement);return}this.onEndElement(e.substring(r,n)),r=n+1;break;case`?`:++r;let t=this._parseProcessingInstruction(e,r);if(e.substring(r+t.parsed,r+t.parsed+2)!==`?>`){this.onError(iu.UnterminatedXmlDeclaration);return}this.onPi(t.name,t.value),r+=t.parsed+2;break;case`!`:if(e.substring(r+1,r+3)===`--`){if(n=e.indexOf(`-->`,r+3),n<0){this.onError(iu.UnterminatedComment);return}this.onComment(e.substring(r+3,n)),r=n+3}else if(e.substring(r+1,r+8)===`[CDATA[`){if(n=e.indexOf(`]]>`,r+8),n<0){this.onError(iu.UnterminatedCdat);return}this.onCdata(e.substring(r+8,n)),r=n+3}else if(e.substring(r+1,r+8)===`DOCTYPE`){let t=e.indexOf(`[`,r+8),i=!1;if(n=e.indexOf(`>`,r+8),n<0){this.onError(iu.UnterminatedDoctypeDeclaration);return}if(t>0&&n>t){if(n=e.indexOf(`]>`,r+8),n<0){this.onError(iu.UnterminatedDoctypeDeclaration);return}i=!0}let a=e.substring(r+8,n+ +!!i);this.onDoctype(a),r=n+(i?2:1)}else{this.onError(iu.MalformedElement);return}break;default:let i=this._parseContent(e,r);if(i===null){this.onError(iu.MalformedElement);return}let a=!1;if(e.substring(r+i.parsed,r+i.parsed+2)===`/>`)a=!0;else if(e.substring(r+i.parsed,r+i.parsed+1)!==`>`){this.onError(iu.UnterminatedElement);return}this.onBeginElement(i.name,i.attributes,a),r+=i.parsed+(a?2:1);break}}else{for(;r<e.length&&e[r]!==`<`;)r++;let n=e.substring(t,r);this.onText(this._resolveEntities(n))}t=r}}onResolveEntity(e){return`&${e};`}onPi(e,t){}onComment(e){}onCdata(e){}onDoctype(e){}onText(e){}onBeginElement(e,t,n){}onEndElement(e){}onError(e){}},cu=class{constructor(e,t){this.nodeName=e,this.nodeValue=t,Object.defineProperty(this,"parentNode",{value:null,writable:!0})}get firstChild(){return this.childNodes?.[0]}get nextSibling(){let e=this.parentNode.childNodes;if(!e)return;let t=e.indexOf(this);if(t!==-1)return e[t+1]}get textContent(){return this.childNodes?this.childNodes.map(e=>e.textContent).join(``):this.nodeValue||``}get children(){return this.childNodes||[]}hasChildNodes(){return this.childNodes?.length>0}searchNode(e,t){if(t>=e.length)return this;let n=e[t];if(n.name.startsWith(`#`)&&t<e.length-1)return this.searchNode(e,t+1);let r=[],i=this;for(;;){if(n.name===i.nodeName)if(n.pos===0){let n=i.searchNode(e,t+1);if(n!==null)return n}else if(r.length===0)return null;else{let[a]=r.pop(),o=0;for(let r of a.childNodes)if(n.name===r.nodeName){if(o===n.pos)return r.searchNode(e,t+1);o++}return i.searchNode(e,t+1)}if(i.childNodes?.length>0)r.push([i,0]),i=i.childNodes[0];else if(r.length===0)return null;else{for(;r.length!==0;){let[e,t]=r.pop(),n=t+1;if(n<e.childNodes.length){r.push([e,n]),i=e.childNodes[n];break}}if(r.length===0)return null}}}dump(e){if(this.nodeName===`#text`){e.push(wt(this.nodeValue));return}if(e.push(`<${this.nodeName}`),this.attributes)for(let t of this.attributes)e.push(` ${t.name}="${wt(t.value)}"`);if(this.hasChildNodes()){e.push(`>`);for(let t of this.childNodes)t.dump(e);e.push(`</${this.nodeName}>`)}else this.nodeValue?e.push(`>${wt(this.nodeValue)}</${this.nodeName}>`):e.push(`/>`)}},lu=class extends su{constructor({hasAttributes:e=!1,lowerCaseName:t=!1}){super(),this._currentFragment=null,this._stack=null,this._errorCode=iu.NoError,this._hasAttributes=e,this._lowerCaseName=t}parseFromString(e){if(this._currentFragment=[],this._stack=[],this._errorCode=iu.NoError,this.parseXml(e),this._errorCode!==iu.NoError)return;let[t]=this._currentFragment;if(t)return{documentElement:t}}onText(e){if(ou(e))return;let t=new cu(`#text`,e);this._currentFragment.push(t)}onCdata(e){let t=new cu(`#text`,e);this._currentFragment.push(t)}onBeginElement(e,t,n){this._lowerCaseName&&(e=e.toLowerCase());let r=new cu(e);r.childNodes=[],this._hasAttributes&&(r.attributes=t),this._currentFragment.push(r),!n&&(this._stack.push(this._currentFragment),this._currentFragment=r.childNodes)}onEndElement(e){this._currentFragment=this._stack.pop()||[];let t=this._currentFragment.at(-1);if(!t)return null;for(let e of t.childNodes)e.parentNode=t;return t}onError(e){this._errorCode=e}},uu=class{constructor(e){e=this._repair(e);let t=new lu({lowerCaseName:!0}).parseFromString(e);this._metadataMap=new Map,this._data=e,t&&this._parse(t)}_repair(e){return e.replace(/^[^<]+/,``).replaceAll(/>\\\\376\\\\377([^<]+)/g,function(e,t){let n=t.replaceAll(/\\\\([0-3])([0-7])([0-7])/g,function(e,t,n,r){return String.fromCharCode(t*64+n*8+r*1)}).replaceAll(/&(amp|apos|gt|lt|quot);/g,function(e,t){switch(t){case`amp`:return`&`;case`apos`:return`\'`;case`gt`:return`>`;case`lt`:return`<`;case`quot`:return`"`}throw Error(`_repair: ${t} isn\'t defined.`)}),r=[`>`];for(let e=0,t=n.length;e<t;e+=2){let t=n.charCodeAt(e)*256+n.charCodeAt(e+1);t>=32&&t<127&&t!==60&&t!==62&&t!==38?r.push(String.fromCharCode(t)):r.push(`&#x`+(65536+t).toString(16).substring(1)+`;`)}return r.join(``)})}_getSequence(e){let t=e.nodeName;return t!==`rdf:bag`&&t!==`rdf:seq`&&t!==`rdf:alt`?null:e.childNodes.filter(e=>e.nodeName===`rdf:li`)}_parseArray(e){if(!e.hasChildNodes())return;let[t]=e.childNodes,n=this._getSequence(t)||[];this._metadataMap.set(e.nodeName,n.map(e=>e.textContent.trim()))}_parse(e){let t=e.documentElement;if(t.nodeName!==`rdf:rdf`)for(t=t.firstChild;t&&t.nodeName!==`rdf:rdf`;)t=t.nextSibling;if(!(!t||t.nodeName!==`rdf:rdf`||!t.hasChildNodes())){for(let e of t.childNodes)if(e.nodeName===`rdf:description`)for(let t of e.childNodes){let e=t.nodeName;switch(e){case`#text`:continue;case`dc:creator`:case`dc:subject`:this._parseArray(t);continue}this._metadataMap.set(e,t.textContent.trim())}}}get serializable(){return{parsedData:this._metadataMap,rawData:this._data}}};let du={PAGE_CONTENT:1,STREAM_CONTENT:2,OBJECT:3,ANNOTATION:4,ELEMENT:5};var fu=class e{constructor(e,t,n){this.xref=e,this.dict=t,this.ref=n instanceof R?n:null,this.roleMap=new Map,this.structParentIds=null,this.kidRefToPosition=void 0,this.parentTree=null}getKidPosition(e){if(this.kidRefToPosition===void 0){let e=this.dict.get(`K`);if(Array.isArray(e)){let t=this.kidRefToPosition=new Map;for(let n=0,r=e.length;n<r;n++){let r=e[n];r&&t.set(r.toString(),n)}}else e instanceof L?this.kidRefToPosition=new Map([[e.objId,0]]):e?this.kidRefToPosition=null:this.kidRefToPosition=new Map}return this.kidRefToPosition?this.kidRefToPosition.get(e)??NaN:-1}init(){this.readRoleMap();let e=this.dict.get(`ParentTree`);e&&(this.parentTree=new eu(e,this.xref))}#e(e,t,n){if(!(e instanceof R)||t<0)return;this.structParentIds||=new Ie;let r=this.structParentIds.get(e);r||(r=[],this.structParentIds.put(e,r)),r.push([t,n])}addAnnotationIdToPage(e,t){this.#e(e,t,du.ANNOTATION)}readRoleMap(){let e=this.dict.get(`RoleMap`);if(e instanceof L)for(let[t,n]of e)n instanceof I&&this.roleMap.set(t,n.name)}static async canCreateStructureTree({catalogRef:e,pdfManager:t,newAnnotationsByPage:n}){if(!(e instanceof R))return j(`Cannot save the struct tree: no catalog reference.`),!1;let r=0,i=!0;for(let[e,a]of n){let{ref:n}=await t.getPage(e);if(!(n instanceof R)){j(`Cannot save the struct tree: page ${e} has no ref.`),i=!0;break}for(let e of a)e.accessibilityData?.type&&(e.parentTreeId=r++,i=!1)}if(i){for(let e of n.values())for(let t of e)delete t.parentTreeId;return!1}return!0}static async createStructureTree({newAnnotationsByPage:e,xref:t,catalogRef:n,pdfManager:r,changes:i}){let a=await r.ensureCatalog(`cloneDict`),o=new Ie;o.put(n,a);let s=t.getNewTemporaryRef();a.set(`StructTreeRoot`,s);let c=new L(t);c.set(`Type`,I.get(`StructTreeRoot`));let l=t.getNewTemporaryRef();c.set(`ParentTree`,l);let u=[];c.set(`K`,u),o.put(s,c);let d=new L(t),f=[];d.set(`Nums`,f);let p=await this.#t({newAnnotationsByPage:e,structTreeRootRef:s,structTreeRoot:null,kids:u,nums:f,xref:t,pdfManager:r,changes:i,cache:o});c.set(`ParentTreeNextKey`,p),o.put(l,d);for(let[e,t]of o.items())i.put(e,{data:t})}async canUpdateStructTree({pdfManager:t,newAnnotationsByPage:n}){if(!this.ref)return j(`Cannot update the struct tree: no root reference.`),!1;let r=this.dict.get(`ParentTreeNextKey`);if(!Number.isInteger(r)||r<0)return j(`Cannot update the struct tree: invalid next key.`),!1;let i=this.dict.get(`ParentTree`);if(!(i instanceof L))return j(`Cannot update the struct tree: ParentTree isn\'t a dict.`),!1;let a=i.get(`Nums`);if(!Array.isArray(a))return j(`Cannot update the struct tree: nums isn\'t an array.`),!1;let o=new eu(i,this.xref);for(let e of n.keys()){let{pageDict:n}=await t.getPage(e);if(!n.has(`StructParents`))continue;let r=n.get(`StructParents`);if(!Number.isInteger(r)||!Array.isArray(o.get(r)))return j(`Cannot save the struct tree: page ${e} has a wrong id.`),!1}let s=!0;for(let[i,a]of n){let{pageDict:n}=await t.getPage(i);e.#r({elements:a,xref:this.xref,pageDict:n,numberTree:o});for(let e of a)e.accessibilityData?.type&&(e.accessibilityData.structParent>=0||(e.parentTreeId=r++),s=!1)}if(s){for(let e of n.values())for(let t of e)delete t.parentTreeId,delete t.structTreeParent;return!1}return!0}async updateStructureTree({newAnnotationsByPage:t,pdfManager:n,changes:r}){let{ref:i,xref:a}=this,o=this.dict.clone(),s=new Ie;s.put(i,o);let c=o.getRaw(`ParentTree`),l;c instanceof R?l=a.fetch(c):(l=c,c=a.getNewTemporaryRef(),o.set(`ParentTree`,c)),l=l.clone(),s.put(c,l);let u=l.getRaw(`Nums`),d=null;u instanceof R&&(d=u,u=a.fetch(d)),u=u.slice(),d||l.set(`Nums`,u);let f=await e.#t({newAnnotationsByPage:t,structTreeRootRef:i,structTreeRoot:this,kids:null,nums:u,xref:a,pdfManager:n,changes:r,cache:s});if(f!==-1){o.set(`ParentTreeNextKey`,f),d&&s.put(d,u);for(let[e,t]of s.items())r.put(e,{data:t})}}static async#t({newAnnotationsByPage:t,structTreeRootRef:n,structTreeRoot:r,kids:i,nums:a,xref:o,pdfManager:s,changes:c,cache:l}){let u=I.get(`OBJR`),d=-1,f;for(let[p,m]of t){let t=await s.getPage(p),{ref:h}=t,g=h instanceof R;for(let{accessibilityData:s,ref:_,parentTreeId:v,structTreeParent:y}of m){if(!s?.type)continue;let{structParent:m}=s;if(r&&Number.isInteger(m)&&m>=0){let n=(f||=new Map).get(p);n===void 0&&(n=new hu(r,t.pageDict).collectObjects(h),f.set(p,n));let i=n?.get(m);if(i){let t=o.fetch(i).clone();e.#n(t,s),c.put(i,{data:t});continue}}d=Math.max(d,v);let b=o.getNewTemporaryRef(),x=new L(o);e.#n(x,s),await this.#i({structTreeParent:y,tagDict:x,newTagRef:b,structTreeRootRef:n,fallbackKids:i,xref:o,cache:l});let S=new L(o);x.set(`K`,S),S.set(`Type`,u),g&&S.set(`Pg`,h),S.set(`Obj`,_),l.put(b,x),a.push(v,b)}}return d+1}static#n(e,{type:t,title:n,lang:r,alt:i,expanded:a,actualText:o}){e.set(`S`,I.get(t)),n&&e.set(`T`,Ue(n)),r&&e.set(`Lang`,Ue(r)),i&&e.set(`Alt`,Ue(i)),a&&e.set(`E`,Ue(a)),o&&e.set(`ActualText`,Ue(o))}static#r({elements:e,xref:t,pageDict:n,numberTree:r}){let i=new Map;for(let t of e)if(t.structTreeParentId){let e=parseInt(t.structTreeParentId.split(`_mc`)[1],10);i.getOrInsertComputed(e,we).push(t)}let a=n.get(`StructParents`);if(!Number.isInteger(a))return;let o=r.get(a),s=(e,n,r)=>{let a=i.get(e);if(a){let e=n.getRaw(`P`),i=t.fetchIfRef(e);if(e instanceof R&&i instanceof L){let e={ref:r,dict:n};for(let t of a)t.structTreeParent=e}return!0}return!1};for(let e of o){if(!(e instanceof R))continue;let n=t.fetch(e),r=n.get(`K`);if(Number.isInteger(r)){s(r,n,e);continue}if(Array.isArray(r))for(let i of r){if(i=t.fetchIfRef(i),Number.isInteger(i)&&s(i,n,e))break;if(!(i instanceof L))continue;if(!Le(i.get(`Type`),`MCR`))break;let r=i.get(`MCID`);if(Number.isInteger(r)&&s(r,n,e))break}}}static async#i({structTreeParent:e,tagDict:t,newTagRef:n,structTreeRootRef:r,fallbackKids:i,xref:a,cache:o}){let s=null,c;e?({ref:s}=e,c=e.dict.getRaw(`P`)||r):c=r,t.set(`P`,c);let l=a.fetchIfRef(c);if(!l){i.push(n);return}let u=o.get(c);u||(u=l.clone(),o.put(c,u));let d=u.getRaw(`K`),f=d instanceof R?o.get(d):null;if(!f){f=a.fetchIfRef(d),f=Array.isArray(f)?f.slice():[d];let e=a.getNewTemporaryRef();u.set(`K`,e),o.put(e,f)}let p=f.indexOf(s);f.splice(p>=0?p+1:f.length,0,n)}},pu=class{constructor(e,t){this.tree=e,this.xref=e.xref,this.dict=t,this.kids=[],this.parseKids()}get role(){let e=this.dict.get(`S`),t=e instanceof I?e.name:``,{root:n}=this.tree;return n.roleMap.get(t)??t}get mathML(){let e=this.dict.get(`AF`)||[];Array.isArray(e)||(e=[e]);for(let t of e){if(t=this.xref.fetchIfRef(t),!(t instanceof L)||!Le(t.get(`Type`),`Filespec`)||!Le(t.get(`AFRelationship`),`Supplement`))continue;let e=t.get(`EF`);if(!(e instanceof L))continue;let n=e.get(`UF`)||e.get(`F`);if(n instanceof Ve&&Le(n.dict.get(`Type`),`EmbeddedFile`)&&Le(n.dict.get(`Subtype`),`application/mathml+xml`))return _e(n.getString())}let t=this.dict.get(`A`);if(t instanceof L&&Le(t.get(`O`),`MSFT_Office`)){let e=t.get(`MSFT_MathML`);return e?qe(e):null}return null}parseKids(){let e=null,t=this.dict.getRaw(`Pg`);t instanceof R&&(e=t.toString());let n=this.dict.get(`K`);if(Array.isArray(n))for(let t of n){let n=this.parseKid(e,this.xref.fetchIfRef(t));n&&this.kids.push(n)}else{let t=this.parseKid(e,n);t&&this.kids.push(t)}}parseKid(e,t){if(Number.isInteger(t))return this.tree.pageDict.objId===e?new mu({type:du.PAGE_CONTENT,mcid:t,pageObjId:e}):null;if(!(t instanceof L))return null;let n=t.getRaw(`Pg`);n instanceof R&&(e=n.toString());let r=t.get(`Type`)instanceof I?t.get(`Type`).name:null;if(r===`MCR`){if(this.tree.pageDict.objId!==e)return null;let n=t.getRaw(`Stm`);return new mu({type:du.STREAM_CONTENT,refObjId:n instanceof R?n.toString():null,pageObjId:e,mcid:t.get(`MCID`)})}if(r===`OBJR`){if(this.tree.pageDict.objId!==e)return null;let n=t.getRaw(`Obj`);return new mu({type:du.OBJECT,refObjId:n instanceof R?n.toString():null,pageObjId:e})}return new mu({type:du.ELEMENT,dict:t})}},mu=class{constructor({type:e,dict:t=null,mcid:n=null,pageObjId:r=null,refObjId:i=null}){this.type=e,this.dict=t,this.mcid=n,this.pageObjId=r,this.refObjId=i,this.parentNode=null}},hu=class{constructor(e,t){this.root=e,this.xref=e?.xref??null,this.rootDict=e?.dict??null,this.pageDict=t,this.nodes=[]}collectObjects(e){if(!this.root||!this.rootDict||!(e instanceof R))return null;let t=this.rootDict.get(`ParentTree`);if(!t)return null;let n=this.root.structParentIds?.get(e);if(!n)return null;let r=new Map,i=new eu(t,this.xref);for(let[e]of n){let t=i.getRaw(e);t instanceof R&&r.set(e,t)}return r}parse(e){if(!this.root||!this.rootDict||!(e instanceof R))return;let{parentTree:t}=this.root;if(!t)return;let n=this.pageDict.get(`StructParents`),r=this.root.structParentIds?.get(e);if(!Number.isInteger(n)&&!r)return;let i=new Map;if(Number.isInteger(n)){let e=t.get(n);if(Array.isArray(e))for(let t of e)t instanceof R&&this.addNode(this.xref.fetch(t),i)}if(r)for(let[e,n]of r){let r=t.get(e);if(r){let e=this.addNode(this.xref.fetchIfRef(r),i);e?.kids?.length===1&&e.kids[0].type===du.OBJECT&&(e.kids[0].type=n)}}}addNode(e,t,n=0){if(n>40)return j(`StructTree MAX_DEPTH reached.`),null;if(!(e instanceof L))return null;if(t.has(e))return t.get(e);let r=new pu(this,e);switch(t.set(e,r),r.role){case`L`:case`LBody`:case`LI`:case`Table`:case`THead`:case`TBody`:case`TFoot`:case`TR`:for(let e of r.kids)e.type===du.ELEMENT&&this.addNode(e.dict,t,n-1)}let i=e.get(`P`);if(!(i instanceof L)||Le(i.get(`Type`),`StructTreeRoot`))return this.addTopLevelNode(e,r)||t.delete(e),r;let a=this.addNode(i,t,n+1);if(!a)return r;let o=!1;for(let t of a.kids)t.type===du.ELEMENT&&t.dict===e&&(t.parentNode=r,o=!0);return o||t.delete(e),r}addTopLevelNode(e,t){let n=this.root.getKidPosition(e.objId);return isNaN(n)?!1:(n!==-1&&(this.nodes[n]=t),!0)}get serializable(){function e(t,n,r=0){if(r>40){j(`StructTree too deep to be fully serialized.`);return}let i=Object.create(null);i.role=t.role,i.children=[],n.children.push(i);let a=t.dict.get(`Alt`);if(typeof a!=`string`&&(a=t.dict.get(`ActualText`)),typeof a==`string`&&(i.alt=qe(a)),i.role===`Formula`){let{mathML:e}=t;e&&(i.mathML=e)}let o=t.dict.get(`A`);if(o instanceof L){let e=gt(o.getArray(`BBox`),null);if(e)i.bbox=e;else{let e=o.get(`Width`),t=o.get(`Height`);typeof e==`number`&&e>0&&typeof t==`number`&&t>0&&(i.bbox=[0,0,e,t])}}let s=t.dict.get(`Lang`);typeof s==`string`&&(i.lang=qe(s));for(let n of t.kids){let t=n.type===du.ELEMENT?n.parentNode:null;if(t){e(t,i,r+1);continue}else n.type===du.PAGE_CONTENT||n.type===du.STREAM_CONTENT?i.children.push({type:`content`,id:`p${n.pageObjId}_mc${n.mcid}`}):n.type===du.OBJECT?i.children.push({type:`object`,id:n.refObjId}):n.type===du.ANNOTATION&&i.children.push({type:`annotation`,id:`pdfjs_internal_id_${n.refObjId}`})}}let t=Object.create(null);t.children=[],t.role=`Root`;for(let n of this.nodes)n&&e(n,t);return t}};let gu=Ce.bind(null,e=>e instanceof R,Le);function _u(e){return e instanceof L&&(e=e.get(`D`)),gu(e)?e:null}function vu(e){let t=e.get(`D`);if(t){if(t instanceof I&&(t=t.name),typeof t==`string`)return qe(t,!0);if(gu(t))return JSON.stringify(t)}return null}var yu=class e{#e=null;#t=null;builtInCMapCache=new Map;fontCache=new Ie;globalColorSpaceCache=new Xc;globalImageCache=new Zc;nonBlendModesSet=new Fe;pageDictCache=new Ie;pageIndexCache=new Ie;pageKidsCountCache=new Ie;standardFontDataCache=new Map;systemFontCache=new Map;constructor(e,t){if(this.pdfManager=e,this.xref=t,this.#t=t.getCatalogObj(),!(this.#t instanceof L))throw new F(`Catalog object is not a dictionary.`);this.toplevelPagesDict}cloneDict(){return this.#t.clone()}get version(){let e=this.#t.get(`Version`);if(e instanceof I){if(Je.test(e.name))return P(this,`version`,e.name);j(`Invalid PDF catalog version: ${e.name}`)}return P(this,`version`,null)}get lang(){let e=this.#t.get(`Lang`);return P(this,`lang`,e&&typeof e==`string`?qe(e):null)}get needsRendering(){let e=this.#t.get(`NeedsRendering`);return P(this,`needsRendering`,typeof e==`boolean`?e:!1)}get collection(){let e=null;try{let t=this.#t.get(`Collection`);t instanceof L&&t.size>0&&(e=t)}catch(e){if(e instanceof et)throw e;A(`Cannot fetch Collection entry; assuming no collection is present.`)}return P(this,`collection`,e)}get acroForm(){let e=null;try{let t=this.#t.get(`AcroForm`);t instanceof L&&t.size>0&&(e=t)}catch(e){if(e instanceof et)throw e;A(`Cannot fetch AcroForm entry; assuming no forms are present.`)}return P(this,`acroForm`,e)}get acroFormRef(){let e=this.#t.getRaw(`AcroForm`);return P(this,`acroFormRef`,e instanceof R?e:null)}get metadata(){let e=this.#t.getRaw(`Metadata`);if(!(e instanceof R))return P(this,`metadata`,null);let t=null;try{let n=this.xref.fetch(e,!this.xref.encrypt?.encryptMetadata);if(n instanceof Ve&&n.dict instanceof L){let e=n.dict.get(`Type`),r=n.dict.get(`Subtype`);if(Le(e,`Metadata`)&&Le(r,`XML`)){let e=_e(n.getString());e&&(t=new uu(e).serializable)}}}catch(e){if(e instanceof et)throw e;A(`Skipping invalid Metadata: "${e}".`)}return P(this,`metadata`,t)}get markInfo(){let e=null;try{e=this.#n()}catch(e){if(e instanceof et)throw e;j(`Unable to read mark info.`)}return P(this,`markInfo`,e)}#n(){let e=this.#t.get(`MarkInfo`);if(!(e instanceof L))return null;let t={Marked:!1,UserProperties:!1,Suspects:!1};for(let n in t){let r=e.get(n);typeof r==`boolean`&&(t[n]=r)}return t}get hasStructTree(){return this.#t.has(`StructTreeRoot`)}get structTreeRoot(){let e=null;try{e=this.#r()}catch(e){if(e instanceof et)throw e;j(`Unable read to structTreeRoot info.`)}return P(this,`structTreeRoot`,e)}#r(){let e=this.#t.getRaw(`StructTreeRoot`),t=this.xref.fetchIfRef(e);if(!(t instanceof L))return null;let n=new fu(this.xref,t,e);return n.init(),n}get toplevelPagesDict(){let e=this.#t.get(`Pages`);if(!(e instanceof L))throw new F(`Invalid top-level pages dictionary.`);return P(this,`toplevelPagesDict`,e)}get documentOutline(){let e=null;try{e=this.#i()}catch(e){if(e instanceof et)throw e;j(`Unable to read document outline.`)}return P(this,`documentOutline`,e)}#i(t={}){let n=this.#t.get(`Outlines`);if(!(n instanceof L)||(n=n.getRaw(`First`),!(n instanceof R)))return null;let r={items:[]},i=[{obj:n,parent:r}],a=new Fe;a.put(n);let o=this.xref,s=new Uint8ClampedArray(3);for(;i.length>0;){let r=i.shift(),c=o.fetchIfRef(r.obj);if(c===null)continue;c.has(`Title`)||j(`Invalid outline item encountered.`);let l={url:null,dest:null,action:null};e.parseDestDictionary({destDict:c,resultObj:l,docBaseUrl:this.baseUrl,docAttachments:this.attachments});let u=c.get(`Title`),d=c.get(`F`)||0,f=c.getArray(`C`),p=c.get(`Count`),m=s;pt(f,3)&&(f[0]!==0||f[1]!==0||f[2]!==0)&&(m=Ln.rgb.getRgb(f,0));let h={action:l.action,attachment:l.attachment,dest:l.dest,url:l.url,unsafeUrl:l.unsafeUrl,newWindow:l.newWindow,setOCGState:l.setOCGState,title:typeof u==`string`?qe(u):``,color:m,count:Number.isInteger(p)?p:void 0,bold:!!(d&2),italic:!!(d&1),items:[]};t.keepRawDict&&(h.rawDict=c),r.parent.items.push(h),n=c.getRaw(`First`),n instanceof R&&!a.has(n)&&(i.push({obj:n,parent:h}),a.put(n)),n=c.getRaw(`Next`),n instanceof R&&!a.has(n)&&(i.push({obj:n,parent:r.parent}),a.put(n))}return r.items.length>0?r.items:null}get documentOutlineForEditor(){let e=null;try{e=this.#i({keepRawDict:!0})}catch(e){if(e instanceof et)throw e;j(`Unable to read document outline.`)}return P(this,`documentOutlineForEditor`,e)}get permissions(){let e=null;try{e=this.#a()}catch(e){if(e instanceof et)throw e;j(`Unable to read permissions.`)}return P(this,`permissions`,e)}#a(){let e=this.xref.trailer.get(`Encrypt`);if(!(e instanceof L))return null;let t=e.get(`P`);if(typeof t!=`number`)return null;t+=2**32;let n=[];for(let e in m){let r=m[e];t&r&&n.push(r)}return n}get optionalContentConfig(){let e=null;try{let t=this.#t.get(`OCProperties`);if(!t)return P(this,`optionalContentConfig`,null);let n=t.get(`D`);if(!n)return P(this,`optionalContentConfig`,null);let r=t.get(`OCGs`);if(!Array.isArray(r))return P(this,`optionalContentConfig`,null);let i=new Ie;for(let e of r)!(e instanceof R)||i.has(e)||i.put(e,this.#o(e));e=this.#s(n,i)}catch(e){if(e instanceof et)throw e;j(`Unable to read optional content config: ${e}`)}return P(this,`optionalContentConfig`,e)}#o(e){let t=this.xref.fetch(e),n={id:e.toString(),name:null,intent:null,usage:{print:null,view:null},rbGroups:[]},r=t.get(`Name`);typeof r==`string`&&(n.name=qe(r));let i=t.getArray(`Intent`);Array.isArray(i)||(i=[i]),i.every(e=>e instanceof I)&&(n.intent=i.map(e=>e.name));let a=t.get(`Usage`);if(!(a instanceof L))return n;let o=n.usage,s=a.get(`Print`);if(s instanceof L){let e=s.get(`PrintState`);if(e instanceof I)switch(e.name){case`ON`:case`OFF`:o.print={printState:e.name}}}let c=a.get(`View`);if(c instanceof L){let e=c.get(`ViewState`);if(e instanceof I)switch(e.name){case`ON`:case`OFF`:o.view={viewState:e.name}}}return n}#s(e,t){function n(e){let n=[];if(Array.isArray(e))for(let r of e)r instanceof R&&t.has(r)&&n.push(r.toString());return n}function r(e,n=0){if(!Array.isArray(e))return null;let r=[];for(let a of e){if(a instanceof R&&t.has(a)){s.put(a),r.push(a.toString());continue}let e=i(a,n);e&&r.push(e)}if(n>0)return r;let a=[];for(let[e]of t.items())s.has(e)||a.push(e.toString());return a.length&&r.push({name:null,order:a}),r}function i(e,t){if(++t>c)return j(`parseNestedOrder - reached MAX_NESTED_LEVELS.`),null;let n=o.fetchIfRef(e);if(!Array.isArray(n))return null;let i=o.fetchIfRef(n[0]);if(typeof i!=`string`)return null;let a=r(n.slice(1),t);return a?.length?{name:qe(i),order:a}:null}function a(e){if(Array.isArray(e))for(let n of e){let e=o.fetchIfRef(n);if(!Array.isArray(e)||!e.length)continue;let r=new Set;for(let n of e)n instanceof R&&t.has(n)&&!r.has(n.toString())&&(r.add(n.toString()),t.get(n).rbGroups.push(r))}}let o=this.xref,s=new Fe,c=10;return a(e.get(`RBGroups`)),{name:typeof e.get(`Name`)==`string`?qe(e.get(`Name`)):null,creator:typeof e.get(`Creator`)==`string`?qe(e.get(`Creator`)):null,baseState:e.get(`BaseState`)instanceof I?e.get(`BaseState`).name:null,on:n(e.get(`ON`)),off:n(e.get(`OFF`)),order:r(e.get(`Order`)),groups:[...t]}}setActualNumPages(e=null){this.#e=e}get hasActualNumPages(){return this.#e!==null}get _pagesCount(){let e=this.toplevelPagesDict.get(`Count`);if(!Number.isInteger(e))throw new F(`Page count in top-level pages dictionary is not an integer.`);return P(this,`_pagesCount`,e)}get numPages(){return this.#e??this._pagesCount}get destinations(){let e=this.#c(),t=Object.create(null);for(let n of e)if(n instanceof $l)for(let[e,r]of n.getAll()){let n=_u(r);n&&(t[qe(e,!0)]=n)}else if(n instanceof L)for(let[e,r]of n){let n=_u(r);n&&(t[qe(e,!0)]||=n)}return P(this,`destinations`,t)}getDestination(e){if(Object.hasOwn(this,`destinations`))return this.destinations[e]??null;let t=this.#c();for(let n of t)if(n instanceof $l||n instanceof L){let t=_u(n.get(e));if(t)return t}if(t.length){let t=this.destinations[e];if(t)return t}return null}#c(){let e=this.#t.get(`Names`),t=[];return e?.has(`Dests`)&&t.push(new $l(e.getRaw(`Dests`),this.xref)),this.#t.has(`Dests`)&&t.push(this.#t.get(`Dests`)),t}get rawPageLabels(){let e=this.#t.getRaw(`PageLabels`);return e?new eu(e,this.xref).getAll():null}get pageLabels(){let e=null;try{e=this.#l()}catch(e){if(e instanceof et)throw e;j(`Unable to read page labels.`)}return P(this,`pageLabels`,e)}#l(){let e=this.rawPageLabels;if(!e)return null;let t=Array(this.numPages),n=null,r=``,i=``,a=1;for(let o=0,s=this.numPages;o<s;o++){let s=e.get(o);if(s!==void 0){if(!(s instanceof L))throw new F(`PageLabel is not a dictionary.`);if(s.has(`Type`)&&!Le(s.get(`Type`),`PageLabel`))throw new F(`Invalid type in PageLabel dictionary.`);if(s.has(`S`)){let e=s.get(`S`);if(!(e instanceof I))throw new F(`Invalid style in PageLabel dictionary.`);n=e.name}else n=null;if(s.has(`P`)){let e=s.get(`P`);if(typeof e!=`string`)throw new F(`Invalid prefix in PageLabel dictionary.`);r=qe(e)}else r=``;if(s.has(`St`)){let e=s.get(`St`);if(!(Number.isInteger(e)&&e>=1))throw new F(`Invalid start in PageLabel dictionary.`);a=e}else a=1}switch(n){case`D`:i=a;break;case`R`:case`r`:i=ut(a,n===`r`);break;case`A`:case`a`:let e=n===`a`?97:65,t=a-1;i=String.fromCharCode(e+t%26).repeat(Math.floor(t/26)+1);break;default:if(n)throw new F(`Invalid style "${n}" in PageLabel dictionary.`);i=``}t[o]=r+i,a++}return t}get pageLayout(){let e=this.#t.get(`PageLayout`),t=``;if(e instanceof I)switch(e.name){case`SinglePage`:case`OneColumn`:case`TwoColumnLeft`:case`TwoColumnRight`:case`TwoPageLeft`:case`TwoPageRight`:t=e.name}return P(this,`pageLayout`,t)}get pageMode(){let e=this.#t.get(`PageMode`),t=`UseNone`;if(e instanceof I)switch(e.name){case`UseNone`:case`UseOutlines`:case`UseThumbs`:case`FullScreen`:case`UseOC`:case`UseAttachments`:t=e.name}return P(this,`pageMode`,t)}get viewerPreferences(){let e=this.#t.get(`ViewerPreferences`);if(!(e instanceof L))return P(this,`viewerPreferences`,null);let t=null;for(let[n,r]of e){let e;switch(n){case`HideToolbar`:case`HideMenubar`:case`HideWindowUI`:case`FitWindow`:case`CenterWindow`:case`DisplayDocTitle`:case`PickTrayByPDFSize`:typeof r==`boolean`&&(e=r);break;case`NonFullScreenPageMode`:if(r instanceof I)switch(r.name){case`UseNone`:case`UseOutlines`:case`UseThumbs`:case`UseOC`:e=r.name;break;default:e=`UseNone`}break;case`Direction`:if(r instanceof I)switch(r.name){case`L2R`:case`R2L`:e=r.name;break;default:e=`L2R`}break;case`ViewArea`:case`ViewClip`:case`PrintArea`:case`PrintClip`:if(r instanceof I)switch(r.name){case`MediaBox`:case`CropBox`:case`BleedBox`:case`TrimBox`:case`ArtBox`:e=r.name;break;default:e=`CropBox`}break;case`PrintScaling`:if(r instanceof I)switch(r.name){case`None`:case`AppDefault`:e=r.name;break;default:e=`AppDefault`}break;case`Duplex`:if(r instanceof I)switch(r.name){case`Simplex`:case`DuplexFlipShortEdge`:case`DuplexFlipLongEdge`:e=r.name;break;default:e=`None`}break;case`PrintPageRange`:Array.isArray(r)&&r.length%2==0&&r.every((e,t,n)=>Number.isInteger(e)&&e>0&&(t===0||e>=n[t-1])&&e<=this.numPages)&&(e=r);break;case`NumCopies`:Number.isInteger(r)&&r>0&&(e=r);break;default:j(`Ignoring non-standard key in ViewerPreferences: ${n}.`);continue}if(e===void 0){j(`Bad value, for key "${n}", in ViewerPreferences: ${r}.`);continue}t??=Object.create(null),t[n]=e}return P(this,`viewerPreferences`,t)}get openAction(){let t=this.#t.get(`OpenAction`),n=Object.create(null);if(t instanceof L){let r=new L(this.xref);r.set(`A`,t);let i={url:null,dest:null,action:null};e.parseDestDictionary({destDict:r,resultObj:i}),Array.isArray(i.dest)?n.dest=i.dest:i.action&&(n.action=i.action)}else gu(t)&&(n.dest=t);return P(this,`openAction`,me(n)>0?n:null)}get attachments(){let e=this.#t.get(`Names`),t=null;if(e instanceof L&&e.has(`EmbeddedFiles`)){let n=new $l(e.getRaw(`EmbeddedFiles`),this.xref);for(let[e,r]of n.getAll()){let n=new ru(r);t??=Object.create(null),t[qe(e,!0)]=n.serializable}}return P(this,`attachments`,t)}get rawEmbeddedFiles(){let e=this.#t.get(`Names`);return!(e instanceof L)||!e.has(`EmbeddedFiles`)?null:new $l(e.getRaw(`EmbeddedFiles`),this.xref).getAll(!0)}get xfaImages(){let e=this.#t.get(`Names`),t=null;if(e instanceof L&&e.has(`XFAImages`)){let n=new $l(e.getRaw(`XFAImages`),this.xref);for(let[e,r]of n.getAll())r instanceof Ve&&(t??=new Map,t.set(qe(e,!0),r.getBytes()))}return P(this,`xfaImages`,t)}#u(){let e=this.#t.get(`Names`),t=null;function n(e,n){if(!(n instanceof L)||!Le(n.get(`S`),`JavaScript`))return;let r=n.get(`JS`);if(r instanceof Ve)r=r.getString();else if(typeof r!=`string`)return;r=qe(r,!0).replaceAll(`\\0`,``),r&&(t||=new Map).set(e,r)}if(e instanceof L&&e.has(`JavaScript`)){let t=new $l(e.getRaw(`JavaScript`),this.xref);for(let[e,r]of t.getAll())n(qe(e,!0),r)}let r=this.#t.get(`OpenAction`);return r&&n(`OpenAction`,r),t}get jsActions(){let e=this.#u(),t=xt(this.xref,this.#t,w);if(e){t||=Object.create(null);for(let[n,r]of e)n in t?t[n].push(r):t[n]=[r]}return P(this,`jsActions`,t)}async cleanup(e=!1){tu(),this.globalColorSpaceCache.clear(),this.globalImageCache.clear(e),this.pageKidsCountCache.clear(),this.pageIndexCache.clear(),this.pageDictCache.clear(),this.nonBlendModesSet.clear();for(let{dict:e}of await Promise.all(this.fontCache))delete e.cacheKey;this.fontCache.clear(),this.builtInCMapCache.clear(),this.standardFontDataCache.clear(),this.systemFontCache.clear()}async getPageDict(e){let t=[this.toplevelPagesDict],n=new Fe,r=this.#t.getRaw(`Pages`);r instanceof R&&n.put(r);let i=this.xref,a=this.pageKidsCountCache,o=this.pageIndexCache,s=this.pageDictCache,c=0;for(;t.length;){let r=t.pop();if(r instanceof R){let l=a.get(r);if(l>=0&&c+l<=e){c+=l;continue}if(n.has(r))throw new F(`Pages tree contains circular reference.`);n.put(r);let u=await(s.get(r)||i.fetchAsync(r));if(u instanceof L){let t=u.getRaw(`Type`);if(t instanceof R&&(t=await i.fetchAsync(t)),Le(t,`Page`)||!u.has(`Kids`)){if(a.has(r)||a.put(r,1),o.has(r)||o.put(r,c),c===e)return[u,r];c++;continue}}t.push(u);continue}if(!(r instanceof L))throw new F(`Page dictionary kid reference points to wrong type of object.`);let{objId:l}=r,u=r.getRaw(`Count`);if(u instanceof R&&(u=await i.fetchAsync(u)),Number.isInteger(u)&&u>=0&&(l&&!a.has(l)&&a.put(l,u),c+u<=e)){c+=u;continue}let d=r.getRaw(`Kids`);if(d instanceof R&&(d=await i.fetchAsync(d)),!Array.isArray(d)){let t=r.getRaw(`Type`);if(t instanceof R&&(t=await i.fetchAsync(t)),Le(t,`Page`)||!r.has(`Kids`)){if(c===e)return[r,null];c++;continue}throw new F(`Page dictionary kids object is not an array.`)}for(let e=d.length-1;e>=0;e--){let n=d[e];t.push(n),r===this.toplevelPagesDict&&n instanceof R&&!s.has(n)&&s.put(n,i.fetchAsync(n))}}throw Error(`Page index ${e} not found.`)}async getAllPageDicts(e=!1){let{ignoreErrors:t}=this.pdfManager.evaluatorOptions,n=[{currentNode:this.toplevelPagesDict,posInKids:0}],r=new Fe,i=this.#t.getRaw(`Pages`);i instanceof R&&r.put(i);let a=new Map,o=this.xref,s=this.pageIndexCache,c=0;function l(e,t){t&&!s.has(t)&&s.put(t,c),a.set(c++,[e,t])}function u(n){if(n instanceof nt&&!e)throw n;e&&t&&c===0&&(j(`getAllPageDicts - Skipping invalid first page: "${n}".`),n=L.empty),a.set(c++,[n,null])}for(;n.length>0;){let e=n.at(-1),{currentNode:t,posInKids:i}=e,a=t.getRaw(`Kids`);if(a instanceof R)try{a=await o.fetchAsync(a)}catch(e){u(e);break}if(!Array.isArray(a)){u(new F(`Page dictionary kids object is not an array.`));break}if(i>=a.length){n.pop();continue}let s=a[i],c;if(s instanceof R){if(r.has(s)){u(new F(`Pages tree contains circular reference.`));break}r.put(s);try{c=await o.fetchAsync(s)}catch(e){u(e);break}}else c=s;if(!(c instanceof L)){u(new F(`Page dictionary kid reference points to wrong type of object.`));break}let d=c.getRaw(`Type`);if(d instanceof R)try{d=await o.fetchAsync(d)}catch(e){u(e);break}Le(d,`Page`)||!c.has(`Kids`)?l(c,s instanceof R?s:null):n.push({currentNode:c,posInKids:0}),e.posInKids++}return a}async getPageIndex(e){let t=this.pageIndexCache.get(e);if(t!==void 0)return t;let n=this.xref,r=0,i=e;for(;;){let t=await n.fetchAsync(i);if(Be(i,e)&&!ze(t,`Page`)&&!(t instanceof L&&!t.has(`Type`)&&t.has(`Contents`)))throw new F(`The reference does not point to a /Page dictionary.`);if(!t)break;if(!(t instanceof L))throw new F(`Node must be a dictionary.`);let a=t.getRaw(`Parent`),o=await t.getAsync(`Parent`);if(!o)break;if(!(o instanceof L))throw new F(`Parent must be a dictionary.`);let s=await o.getAsync(`Kids`);if(!s)break;if(!Array.isArray(s))throw new F(`Kids must be an array.`);let c=[],l=!1;for(let e of s){if(!(e instanceof R))throw new F(`Kid must be a reference.`);if(Be(e,i)){l=!0;break}c.push(n.fetchAsync(e).then(e=>{if(!(e instanceof L))throw new F(`Kid node must be a dictionary.`);if(e.has(`Count`)){let t=e.get(`Count`);if(Number.isInteger(t)&&t>=0){r+=t;return}throw new F(`Count must be a (positive) integer.`)}r++}))}if(!l)throw new F(`Kid reference not found in parent\'s kids.`);await Promise.all(c),i=a}return this.pageIndexCache.put(e,r),r}get baseUrl(){let e=this.#t.get(`URI`);if(e instanceof L){let t=e.get(`Base`);if(typeof t==`string`){let e=ie(t,null,{tryConvertEncoding:!0});if(e)return P(this,`baseUrl`,e.href)}}return P(this,`baseUrl`,this.pdfManager.docBaseUrl)}static#d(e,t){let n=e.fetchIfRef(t);if(!(n instanceof L))return null;let r=null,i=n.getRaw(`Pg`);if(i instanceof R&&(r=i),!r){let t=[n];for(;t.length>0&&!r;){let n=t.shift().get(`K`),i;if(Array.isArray(n))i=n;else if(n)i=[n];else continue;for(let n of i){let i=e.fetchIfRef(n);if(!(i instanceof L))continue;let a=i.getRaw(`Pg`);if(a instanceof R){r=a;break}t.push(i)}}}if(!r){let t=n;for(let n=0;n<40;n++){let n=t.getRaw(`P`);if(!(n instanceof R))break;let i=e.fetch(n);if(!(i instanceof L)||Le(i.get(`Type`),`StructTreeRoot`))break;let a=i.getRaw(`Pg`);if(a instanceof R){r=a;break}t=i}}if(!r)return null;let a=null,o=null,s=n.get(`A`);if(s instanceof L){let e=ht(s.getArray(`BBox`),null);e&&(a=e[0],o=e[3])}return[r,{name:`XYZ`},a,o,null]}static parseDestDictionary({destDict:t,resultObj:n,docBaseUrl:r=null,docAttachments:i=null}){if(!(t instanceof L)){j("parseDestDictionary: `destDict` must be a dictionary.");return}let a=t.get(`A`),o,s;if(a instanceof L||(t.has(`Dest`)?a=t.get(`Dest`):(a=t.get(`AA`),a instanceof L&&(a.has(`D`)?a=a.get(`D`):a.has(`U`)&&(a=a.get(`U`))))),a instanceof L){let e=a.get(`S`);if(!(e instanceof I)){j(`parseDestDictionary: Invalid type in Action dictionary.`);return}let t=e.name;switch(t){case`ResetForm`:let e=a.get(`Flags`),r=((typeof e==`number`?e:0)&1)==0,c=[],l=[];for(let e of a.get(`Fields`)||[])e instanceof R?l.push(e.toString()):typeof e==`string`&&c.push(qe(e));n.resetForm={fields:c,refs:l,include:r};break;case`URI`:o=a.get(`URI`),o instanceof I&&(o=`/`+o.name);break;case`GoTo`:s=a.get(`D`);break;case`Launch`:case`GoToR`:let u=a.get(`F`);if(u instanceof L){let e=new ru(u,!0);({rawFilename:o}=e.serializable)}else if(typeof u==`string`)o=u;else break;let d=vu(a);d&&(o=o.split(`#`,1)[0]+`#`+d);let f=a.get(`NewWindow`);typeof f==`boolean`&&(n.newWindow=f);break;case`GoToE`:let p=a.get(`T`),m;if(i&&p instanceof L){let e=p.get(`R`),t=p.get(`N`);Le(e,`C`)&&typeof t==`string`&&(m=i[qe(t,!0)])}if(m){n.attachment=m;let e=vu(a);e&&(n.attachmentDest=e)}else j(`parseDestDictionary - unimplemented "GoToE" action.`);break;case`Named`:let h=a.get(`N`);h instanceof I&&(n.action=h.name);break;case`SetOCGState`:let g=a.get(`State`),_=a.get(`PreserveRB`);if(!Array.isArray(g)||g.length===0)break;let v=[];for(let e of g)if(e instanceof I)switch(e.name){case`ON`:case`OFF`:case`Toggle`:v.push(e.name);break}else e instanceof R&&v.push(e.toString());if(v.length!==g.length)break;n.setOCGState={state:v,preserveRB:typeof _==`boolean`?_:!0};break;case`JavaScript`:let y=a.get(`JS`),b;y instanceof Ve?b=y.getString():typeof y==`string`&&(b=y);let x=b&&Dt(qe(b,!0));if(x){o=x.url,n.newWindow=x.newWindow;break}default:if(t===`JavaScript`||t===`SubmitForm`)break;j(`parseDestDictionary - unsupported action: "${t}".`);break}}else t.has(`Dest`)&&(s=t.get(`Dest`));if(typeof o==`string`){let e=ie(o,r,{addDefaultProtocol:!0,tryConvertEncoding:!0});e&&(n.url=e.href),n.unsafeUrl=o}if(s&&(s instanceof I&&(s=s.name),typeof s==`string`?n.dest=qe(s,!0):gu(s)&&(n.dest=s)),!n.dest&&!n.url&&!n.action&&!n.attachment&&!n.setOCGState&&!n.resetForm){let r=t.getRaw(`SE`);if(r instanceof R)try{let i=e.#d(t.xref,r);i&&(n.dest=i)}catch(e){if(e instanceof et)throw e;A(`SE parsing failed.`)}}}};function bu(e,t,n,r){let i=new L(e);return i.set(`Type`,I.get(`XObject`)),i.set(`Subtype`,I.get(`Image`)),i.set(`BitsPerComponent`,8),i.setIfName(`ColorSpace`,r),i.set(`Width`,t),i.set(`Height`,n),i}function xu(e,t){return new Cn(e,0,e.length,t)}function Su(e,t,n){let r=e+t-n,i=Math.abs(r-e),a=Math.abs(r-t),o=Math.abs(r-n);return i<=a&&i<=o?e:a<=o?t:n}function Cu(e,t,n,r){let i=t*r,a=new Uint8Array(n*(i+1)),o=[new Uint8Array(i),new Uint8Array(i),new Uint8Array(i),new Uint8Array(i),new Uint8Array(i)];for(let t=0;t<n;t++){let n=t*i,s=n-i,c=[0,0,0,0,0];for(let a=0;a<i;a++){let i=n+a,l=e[i],u=a>=r?e[i-r]:0,d=t>0?e[s+a]:0,f=t>0&&a>=r?e[s+a-r]:0;o[0][a]=l,o[1][a]=l-u&255,o[2][a]=l-d&255,o[3][a]=l-(u+d>>1)&255,o[4][a]=l-Su(u,d,f)&255;for(let e=0;e<5;e++){let t=o[e][a];c[e]+=t<128?t:256-t}}let l=0;for(let e=1;e<5;e++)c[e]<c[l]&&(l=e);let u=t*(i+1);a[u]=l,a.set(o[l],u+1)}return a}async function wu(e){let t=new CompressionStream(`deflate`),n=t.writable.getWriter(),r=(async()=>{try{await n.ready,await n.write(e),await n.ready,await n.close()}catch(e){throw await n.abort(e).catch(()=>{}),e}})(),[i]=await Promise.all([new Response(t.readable).bytes(),r.then(()=>null)]);return i}async function Tu(e,t,n,r){let i=e.length/(t*n),a;if(typeof CompressionStream==`function`)try{a=await wu(Cu(e,t,n,i))}catch{}if(!a)return xu(e,r);r.setIfName(`Filter`,`FlateDecode`);let o=new L(r.xref);return o.set(`Predictor`,15),o.set(`Columns`,t),o.set(`Colors`,i),o.set(`BitsPerComponent`,8),r.set(`DecodeParms`,o),xu(a,r)}async function Eu(e,t,{closeBitmap:n=!1}={}){let{width:r,height:i}=e;if(!Number.isInteger(r)||!Number.isInteger(i)||r<=0||i<=0)throw n&&e.close?.(),Error(`createImage: invalid bitmap dimensions ${r}x${i}`);let a=new OffscreenCanvas(r,i),o=a.getContext(`2d`,{alpha:!0,willReadFrequently:!0}),s;try{o.drawImage(e,0,0),s=o.getImageData(0,0,r,i).data}finally{n&&e.close?.()}let c=new Uint32Array(s.buffer,s.byteOffset,s.byteLength>>2),l=he.isLittleEndian,u=l?16777215:4294967040,d=new Set,f=!1,p=!0;for(let e=0,t=c.length;e<t;e++){let t=c[e];if((l?t>>>24:t&255)!=255){f=!0;break}p&&(d.add((t&u)>>>0),d.size>16384&&(p=!1,d.clear()))}f&&(p=!0);let m=bu(t,r,i,`DeviceRGB`),h,g=null;if(p){let e=new Uint8Array(r*i*3);for(let t=0,n=0,r=s.length;t<r;t+=4,n+=3)e[n]=s[t],e[n+1]=s[t+1],e[n+2]=s[t+2];h=Tu(e,r,i,m),g=xu(e,bu(t,r,i,`DeviceRGB`))}else m.setIfName(`Filter`,`DCTDecode`),h=a.convertToBlob({type:`image/jpeg`,quality:1}).then(e=>e.bytes()).then(e=>xu(e,m));let _=Promise.resolve(null),v=null;if(f){let e=new Uint8Array(c.length);if(l)for(let t=0,n=c.length;t<n;t++)e[t]=c[t]>>>24;else for(let t=0,n=c.length;t<n;t++)e[t]=c[t]&255;let n=bu(t,r,i,`DeviceGray`),a=bu(t,r,i,`DeviceGray`);_=Tu(e,r,i,n),v=xu(e,a)}let[y,b]=await Promise.all([h,_]);return{imageStream:y,imageRenderStream:g,smaskStream:b,smaskRenderStream:v,width:r,height:i}}function Du(e){return e instanceof R||e instanceof L||e instanceof Ve||Array.isArray(e)}function Ou(e,t){if(e instanceof L)e=e.getRawValues();else if(e instanceof Ve)e=e.dict.getRawValues();else if(!Array.isArray(e))return;for(let n of e)Du(n)&&t.push(n)}var ku=class e{refSet=new Fe;constructor(e,t,n){this.dict=e,this.keys=t,this.xref=n}async load(){let{keys:e,dict:t}=this,n=[];for(let r of e){let e=t.getRaw(r);e!==void 0&&n.push(e)}await this.#e(n),this.refSet=null}async#e(e){let t=[],n=[];for(;e.length;){let r=e.pop();if(r instanceof R){if(this.refSet.has(r))continue;try{this.refSet.put(r),r=this.xref.fetch(r)}catch(e){if(!(e instanceof et)){j(`ObjectLoader.#walk - requesting all data: "${e}".`),await this.xref.stream.manager.requestAllChunks();return}t.push(r),n.push({begin:e.begin,end:e.end})}}if(r instanceof Ve){let e=r.getBaseStreams();if(e){let i=!1;for(let t of e)t.isDataLoaded||(i=!0,n.push({begin:t.start,end:t.end}));i&&t.push(r)}}Ou(r,e)}if(n.length){await this.xref.stream.manager.requestRanges(n);for(let e of t)e instanceof R&&this.refSet.remove(e);await this.#e(t)}}static async load(t,n,r){r.stream.isDataLoaded||await new e(t,n,r).load()}};let Au=Symbol(),ju=Symbol(),Mu=Symbol(),Nu=Symbol(),Pu=Symbol(),Fu=Symbol(),Iu=Symbol(),Lu=Symbol(),Ru=Symbol(),U=Symbol(`content`),zu=Symbol(`data`),Bu=Symbol(),W=Symbol(`extra`),Vu=Symbol(),Hu=Symbol(),Uu=Symbol(),Wu=Symbol(),Gu=Symbol(),Ku=Symbol(),qu=Symbol(),Ju=Symbol(),Yu=Symbol(),Xu=Symbol(),Zu=Symbol(),Qu=Symbol(),$u=Symbol(),ed=Symbol(),td=Symbol(),nd=Symbol(),rd=Symbol(),id=Symbol(),ad=Symbol(),od=Symbol(),sd=Symbol(),cd=Symbol(),ld=Symbol(),ud=Symbol(),dd=Symbol(),fd=Symbol(),pd=Symbol(),md=Symbol(),hd=Symbol(),gd=Symbol(),_d=Symbol(),vd=Symbol(),yd=Symbol(`namespaceId`),bd=Symbol(`nodeName`),xd=Symbol(),Sd=Symbol(),Cd=Symbol(),wd=Symbol(),Td=Symbol(),Ed=Symbol(),Dd=Symbol(),Od=Symbol(),kd=Symbol(`root`),Ad=Symbol(),jd=Symbol(),Md=Symbol(),Nd=Symbol(),Pd=Symbol(),Fd=Symbol(),Id=Symbol(),Ld=Symbol(),G=Symbol(),Rd=Symbol(),zd=Symbol(),Bd=Symbol(`uid`);n(531),n(5213);let Vd=Symbol(),Hd={config:{id:0,check:e=>e.startsWith(`http://www.xfa.org/schema/xci/`)},connectionSet:{id:1,check:e=>e.startsWith(`http://www.xfa.org/schema/xfa-connection-set/`)},datasets:{id:2,check:e=>e.startsWith(`http://www.xfa.org/schema/xfa-data/`)},form:{id:3,check:e=>e.startsWith(`http://www.xfa.org/schema/xfa-form/`)},localeSet:{id:4,check:e=>e.startsWith(`http://www.xfa.org/schema/xfa-locale-set/`)},pdf:{id:5,check:e=>e===`http://ns.adobe.com/xdp/pdf/`},signature:{id:6,check:e=>e===`http://www.w3.org/2000/09/xmldsig#`},sourceSet:{id:7,check:e=>e.startsWith(`http://www.xfa.org/schema/xfa-source-set/`)},stylesheet:{id:8,check:e=>e===`http://www.w3.org/1999/XSL/Transform`},template:{id:9,check:e=>e.startsWith(`http://www.xfa.org/schema/xfa-template/`)},xdc:{id:10,check:e=>e.startsWith(`http://www.xfa.org/schema/xdc/`)},xdp:{id:11,check:e=>e===`http://ns.adobe.com/xdp/`},xfdf:{id:12,check:e=>e===`http://ns.adobe.com/xfdf/`},xhtml:{id:13,check:e=>e===`http://www.w3.org/1999/xhtml`},xmpmeta:{id:14,check:e=>e===`http://ns.adobe.com/xmpmeta/`}},Ud={pt:e=>e,cm:e=>e/2.54*72,mm:e=>e/(10*2.54)*72,in:e=>e*72,px:e=>e},Wd=/([+-]?\\d+\\.?\\d*)(.*)/;function Gd(e){return e.startsWith(`\'`)||e.startsWith(`"`)?e.slice(1,-1):e}function Kd({data:e,defaultValue:t,validate:n}){if(!e)return t;e=e.trim();let r=parseInt(e,10);return!isNaN(r)&&n(r)?r:t}function qd({data:e,defaultValue:t,validate:n}){if(!e)return t;e=e.trim();let r=parseFloat(e);return!isNaN(r)&&n(r)?r:t}function Jd({data:e,defaultValue:t,validate:n}){return e?(e=e.trim(),n(e)?e:t):t}function K(e,t){return Jd({data:e,defaultValue:t[0],validate:e=>t.includes(e)})}function q(e,t=`0`){if(t||=`0`,!e)return q(t);let n=e.trim().match(Wd);if(!n)return q(t);let[,r,i]=n,a=parseFloat(r);if(isNaN(a))return q(t);if(a===0)return 0;let o=Ud[i];return o?o(a):a}function Yd(e){if(!e)return{num:1,den:1};let t=e.split(`:`,2).map(e=>parseFloat(e.trim())).filter(e=>!isNaN(e));if(t.length===1&&t.push(1),t.length===0)return{num:1,den:1};let[n,r]=t;return{num:n,den:r}}function Xd(e){return e?e.trim().split(/\\s+/).map(e=>({excluded:e[0]===`-`,viewname:e.substring(1)})):[]}function Zd(e,t=[0,0,0]){let[n,r,i]=t;if(!e)return{r:n,g:r,b:i};let a=e.split(`,`,3).map(e=>rn(parseInt(e.trim(),10),0,255)).map(e=>isNaN(e)?0:e);return a.length<3||([n,r,i]=a),{r:n,g:r,b:i}}function Qd(e){if(!e)return{x:-1,y:-1,width:-1,height:-1};let t=e.split(`,`,4).map(e=>q(e.trim(),`-1`));if(t.length<4||t[2]<0||t[3]<0)return{x:-1,y:-1,width:-1,height:-1};let[n,r,i,a]=t;return{x:n,y:r,width:i,height:a}}var J=class e{static get FAILURE(){return P(this,`FAILURE`,new e(!1,null,null,null))}static get EMPTY(){return P(this,`EMPTY`,new e(!0,null,null,null))}constructor(e,t,n,r){this.success=e,this.html=t,this.bbox=n,this.breakNode=r}isBreak(){return!!this.breakNode}static breakNode(t){return new e(!1,null,null,t)}static success(t,n=null){return new e(!0,t,n,null)}},$d=class{constructor(e){this.fonts=new Map,this.cache=new Map,this.warned=new Set,this.defaultFont=null,this.add(e)}add(e,t=null){for(let t of e)this.addPdfFont(t);for(let e of this.fonts.values())e.regular||=e.italic||e.bold||e.bolditalic;if(!t||t.size===0)return;let n=this.fonts.get(`PdfJS-Fallback-PdfJS-XFA`);for(let e of t)this.fonts.set(e,n)}addPdfFont(e){let t=e.cssFontInfo,n=t.fontFamily,r=this.fonts.getOrInsertComputed(n,Ee);this.defaultFont??=r;let i=``,a=parseFloat(t.fontWeight);parseFloat(t.italicAngle)===0?a>=700&&(i=`bold`):i=a>=700?`bolditalic`:`italic`,i||((e.name.includes(`Bold`)||e.psName?.includes(`Bold`))&&(i=`bold`),(e.name.includes(`Italic`)||e.name.endsWith(`It`)||e.psName?.includes(`Italic`)||e.psName?.endsWith(`It`))&&(i+=`italic`)),i||=`regular`,r[i]=e}getDefault(){return this.defaultFont}find(e,t=!0){let n=this.fonts.get(e)||this.cache.get(e);if(n)return n;let r=/[,\\-_ ]|bolditalic|bold|italic|regular|it/gi,i=e.replaceAll(r,``);if(n=this.fonts.get(i),n)return this.cache.set(e,n),n;i=i.toLowerCase();let a=[];for(let[e,t]of this.fonts)e.replaceAll(r,``).toLowerCase().startsWith(i)&&a.push(t);if(a.length===0)for(let e of this.fonts.values())e.regular.name?.replaceAll(r,``).toLowerCase().startsWith(i)&&a.push(e);if(a.length===0){i=i.replaceAll(/psmt|mt/gi,``);for(let[e,t]of this.fonts)e.replaceAll(r,``).toLowerCase().startsWith(i)&&a.push(t)}if(a.length===0)for(let e of this.fonts.values())e.regular.name?.replaceAll(r,``).toLowerCase().startsWith(i)&&a.push(e);return a.length>=1?(a.length!==1&&t&&j(`XFA - Too many choices to guess the correct font: ${e}`),this.cache.set(e,a[0]),a[0]):(t&&!this.warned.has(e)&&(this.warned.add(e),j(`XFA - Cannot find the font: ${e}`)),null)}};function ef(e,t){return e.posture===`italic`?e.weight===`bold`?t.bolditalic:t.italic:e.weight===`bold`?t.bold:t.regular}function tf(e,t=!1){let n=null;if(e){let t=Gd(e.typeface);n=ef(e,e[id].fontFinder.find(t))}if(!n)return{lineHeight:12,lineGap:2,lineNoGap:10};let r=e.size||10,i=n.lineHeight?Math.max(t?0:1.2,n.lineHeight):1.2,a=n.lineGap===void 0?.2:n.lineGap;return{lineHeight:i*r,lineGap:a*r,lineNoGap:Math.max(1,i-a)*r}}var nf=class{constructor(e,t,n,r){if(this.lineHeight=n,this.paraMargin=t||{top:0,bottom:0,left:0,right:0},!e){[this.pdfFont,this.xfaFont]=this.defaultFont(r);return}this.xfaFont={typeface:e.typeface,posture:e.posture,weight:e.weight,size:e.size,letterSpacing:e.letterSpacing};let i=r.find(e.typeface);if(!i){[this.pdfFont,this.xfaFont]=this.defaultFont(r);return}this.pdfFont=ef(e,i),this.pdfFont||([this.pdfFont,this.xfaFont]=this.defaultFont(r))}defaultFont(e){let t=e.find(`Helvetica`,!1)||e.find(`Myriad Pro`,!1)||e.find(`Arial`,!1)||e.getDefault();if(t?.regular){let e=t.regular;return[e,{typeface:e.cssFontInfo.fontFamily,posture:`normal`,weight:`normal`,size:10,letterSpacing:0}]}return[null,{typeface:`Courier`,posture:`normal`,weight:`normal`,size:10,letterSpacing:0}]}},rf=class{constructor(e,t,n,r){this.fontFinder=r,this.stack=[new nf(e,t,n,r)]}pushData(e,t,n){let r=this.stack.at(-1);for(let t of[`typeface`,`posture`,`weight`,`size`,`letterSpacing`])e[t]||=r.xfaFont[t];for(let e of[`top`,`bottom`,`left`,`right`])isNaN(t[e])&&(t[e]=r.paraMargin[e]);let i=new nf(e,t,n||r.lineHeight,this.fontFinder);i.pdfFont||=r.pdfFont,this.stack.push(i)}popFont(){this.stack.pop()}topFont(){return this.stack.at(-1)}},af=class{constructor(e,t,n,r){this.glyphs=[],this.fontSelector=new rf(e,t,n,r),this.extraHeight=0}pushData(e,t,n){this.fontSelector.pushData(e,t,n)}popFont(e){return this.fontSelector.popFont()}addPara(){let e=this.fontSelector.topFont();this.extraHeight+=e.paraMargin.top+e.paraMargin.bottom}addString(e){if(!e)return;let t=this.fontSelector.topFont(),n=t.xfaFont.size;if(t.pdfFont){let r=t.xfaFont.letterSpacing,i=t.pdfFont,a=i.lineHeight||1.2,o=t.lineHeight||Math.max(1.2,a)*n,s=a-(i.lineGap===void 0?.2:i.lineGap),c=Math.max(1,s)*n,l=n/1e3,u=i.defaultWidth||i.charsToGlyphs(` `)[0].width;for(let t of e.split(/[\\u2029\\n]/)){let e=i.encodeString(t).join(``),n=i.charsToGlyphs(e);for(let e of n){let t=e.width||u;this.glyphs.push([t*l+r,o,c,e.unicode,!1])}this.glyphs.push([0,0,0,`\n`,!0])}this.glyphs.pop();return}for(let t of e.split(/[\\u2029\\n]/)){for(let e of t.split(``))this.glyphs.push([n,1.2*n,n,e,!1]);this.glyphs.push([0,0,0,`\n`,!0])}this.glyphs.pop()}compute(e){let t=-1,n=0,r=0,i=0,a=0,o=0,s=!1,c=!0;for(let l=0,u=this.glyphs.length;l<u;l++){let[u,d,f,p,m]=this.glyphs[l],h=p===` `,g=c?f:d;if(m){r=Math.max(r,a),a=0,i+=o,o=g,t=-1,n=0,c=!1;continue}if(h){a+u>e?(r=Math.max(r,a),a=0,i+=o,o=g,t=-1,n=0,s=!0,c=!1):(o=Math.max(g,o),n=a,a+=u,t=l);continue}if(a+u>e){i+=o,o=g,t===-1?(r=Math.max(r,a),a=u):(l=t,r=Math.max(r,n),a=0,t=-1,n=0),s=!0,c=!1;continue}a+=u,o=Math.max(g,o)}return r=Math.max(r,a),i+=o+this.extraHeight,{width:1.02*r,height:i,isBroken:s}}};n(8454),n(9452);let of=/^[^.[]+/,sf=/^[^\\]]+/,cf={dot:0,dotDot:1,dotHash:2,dotBracket:3,dotParen:4},lf=new Map([[`$data`,(e,t)=>e.datasets?e.datasets.data:e],[`$record`,(e,t)=>(e.datasets?e.datasets.data:e)[Qu]()[0]],[`$template`,(e,t)=>e.template],[`$connectionSet`,(e,t)=>e.connectionSet],[`$form`,(e,t)=>e.form],[`$layout`,(e,t)=>e.layout],[`$host`,(e,t)=>e.host],[`$dataWindow`,(e,t)=>e.dataWindow],[`$event`,(e,t)=>e.event],[`!`,(e,t)=>e.datasets],[`$xfa`,(e,t)=>e],[`xfa`,(e,t)=>e],[`$`,(e,t)=>t]]),uf=new WeakMap;function df(e){return e=e.trim(),e===`*`?1/0:parseInt(e,10)||0}function ff(e,t,n=!0){let r=e.match(of);if(!r)return null;let[i]=r,a=[{name:i,cacheName:`.`+i,index:0,js:null,formCalc:null,operator:cf.dot}],o=i.length;for(;o<e.length;){let s=o;if(e.charAt(o++)===`[`){if(r=e.slice(o).match(sf),!r)return j(`XFA - Invalid index in SOM expression`),null;a.at(-1).index=df(r[0]),o+=r[0].length+1;continue}let c;switch(e.charAt(o)){case`.`:if(!t)return null;o++,c=cf.dotDot;break;case`#`:o++,c=cf.dotHash;break;case`[`:if(n)return j(`XFA - SOM expression contains a FormCalc subexpression which is not supported for now.`),null;c=cf.dotBracket;break;case`(`:if(n)return j(`XFA - SOM expression contains a JavaScript subexpression which is not supported for now.`),null;c=cf.dotParen;break;default:c=cf.dot;break}if(r=e.slice(o).match(of),!r)break;[i]=r,o+=i.length,a.push({name:i,cacheName:e.slice(s,o),operator:c,index:0,js:null,formCalc:null})}return a}function pf(e,t,n,r=!0,i=!0){let a=ff(n,r);if(!a)return null;let o=lf.get(a[0].name),s=0,c;o?(c=!0,e=[o(e,t)],s=1):(c=t===null,e=[t||e]);for(let n=a.length;s<n;s++){let{name:n,cacheName:r,operator:o,index:l}=a[s],u=[];for(let t of e){if(!t.isXFAObject)continue;let e,a;if(i&&(a=uf.getOrInsertComputed(t,Te),e=a.get(r)),!e){switch(o){case cf.dot:e=t[qu](n,!1);break;case cf.dotDot:e=t[qu](n,!0);break;case cf.dotHash:e=t[Ku](n),e=e.isXFAObjectArray?e.children:[e];break;default:break}i&&a.set(r,e)}e.length>0&&u.push(e)}if(u.length===0&&!c&&s===0){if(t=t[nd](),!t)return null;s=-1,e=[t];continue}e=isFinite(l)?u.filter(e=>l<e.length).map(e=>e[l]):u.flat()}return e.length===0?null:e}function mf(e,t,n){let r=ff(n);if(!r||r.some(e=>e.operator===cf.dotDot))return null;let i=lf.get(r[0].name),a=0;i?(e=i(e,t),a=1):e=t||e;for(let t=r.length;a<t;a++){let{name:t,operator:n,index:i}=r[a];if(!isFinite(i))return r[a].index=0,e.createNodes(r.slice(a));let o;switch(n){case cf.dot:o=e[qu](t,!1);break;case cf.dotDot:o=e[qu](t,!0);break;case cf.dotHash:o=e[Ku](t),o=o.isXFAObjectArray?o.children:[o];break;default:break}if(o.length===0)return e.createNodes(r.slice(a));if(i<o.length){let t=o[i];if(!t.isXFAObject)return j(`XFA - Cannot create a node.`),null;e=t}else return r[a].index=i-o.length,e.createNodes(r.slice(a))}return null}let hf=Symbol(),gf=Symbol(),_f=Symbol(),vf=Symbol(`_children`),yf=Symbol(),bf=Symbol(),xf=Symbol(),Sf=Symbol(),Cf=Symbol(),wf=Symbol(),Tf=Symbol(),Ef=Symbol(),Df=Symbol(),Of=Symbol(`parent`),kf=Symbol(),Af=Symbol(),jf=Symbol(),Mf=0,Nf=Hd.datasets.id;var Y=class e{constructor(e,t,n=!1){this[yd]=e,this[bd]=t,this[Tf]=n,this[Of]=null,this[vf]=[],this[Bd]=`${t}${Mf++}`,this[id]=null}get isXFAObject(){return!0}get isXFAObjectArray(){return!1}createNodes(e){let t=this,n=null;for(let{name:r,index:i}of e){for(let e=0,a=isFinite(i)?i:0;e<=a;e++)n=new Ff(t[yd]===Nf?-1:t[yd],r),t[Mu](n);t=n}return n}[Sd](e){if(!this[Tf]||!this[Cd](e))return!1;let t=e[bd],n=this[t];if(n instanceof X){if(n.push(e))return this[Mu](e),!0}else return n!==null&&this[Od](n),this[t]=e,this[Mu](e),!0;let r=``;return this.id?r=` (id: ${this.id})`:this.name&&(r=` (name: ${this.name} ${this.h.value})`),j(`XFA - node "${this[bd]}"${r} has already enough "${t}"!`),!1}[Cd](e){return Object.hasOwn(this,e[bd])&&e[yd]===this[yd]}[pd](){return!1}[Au](){return!1}[ld](){return!1}[ud](){return!1}[Ed](){this.para&&this[rd]()[W].paraStack.pop()}[Dd](){this[rd]()[W].paraStack.push(this.para)}[Md](e){this.id&&this[yd]===Hd.template.id&&e.set(this.id,this)}[rd](){return this[id].template}[md](){return!1}[hd](){return!1}[Mu](e){e[Of]=this,this[vf].push(e),!e[id]&&this[id]&&(e[id]=this[id])}[Od](e){let t=this[vf].indexOf(e);this[vf].splice(t,1)}[ad](){return Object.hasOwn(this,`value`)}[Pd](e){}[wd](e){}[Vu](){}[Pu](e){delete this[Tf],this[Iu]&&(e.clean(this[Iu]),delete this[Iu])}[sd](e){return this[vf].indexOf(e)}[cd](e,t){t[Of]=this,this[vf].splice(e,0,t),!t[id]&&this[id]&&(t[id]=this[id])}[gd](){return!this.name}[vd](){return``}[Id](){return this[vf].length===0?this[U]:this[vf].map(e=>e[Id]()).join(``)}get[_f](){let t=Object.getPrototypeOf(this);if(!t._attributes){let n=t._attributes=new Set;for(let t of Object.getOwnPropertyNames(this)){if(this[t]===null||this[t]instanceof e||this[t]instanceof X)break;n.add(t)}}return P(this,_f,t._attributes)}[fd](e){let t=this;for(;t;){if(t===e)return!0;t=t[nd]()}return!1}[nd](){return this[Of]}[td](){return this[nd]()}[Qu](e=null){return e?this[e]:this[vf]}[Bu](){let t=Object.create(null);this[U]&&(t.$content=this[U]);for(let n of Object.getOwnPropertyNames(this)){let r=this[n];r!==null&&(r instanceof e?t[n]=r[Bu]():r instanceof X?r.isEmpty()||(t[n]=r.dump()):t[n]=r)}return t}[zd](){return null}[G](){return J.EMPTY}*[$u](){for(let e of this[Qu]())yield e}*[Sf](e,t){for(let n of this[$u]())if(!e||t===e.has(n[bd])){let e=this[Gu](),t=n[G](e);t.success||(this[W].failingNode=n),yield t}}[Hu](){return null}[ju](e,t){this[W].children.push(e)}[Gu](){}[Nu]({filter:e=null,include:t=!0}){if(!this[W].generator)this[W].generator=this[Sf](e,t);else{let e=this[Gu](),t=this[W].failingNode[G](e);if(!t.success)return t;t.html&&this[ju](t.html,t.bbox),delete this[W].failingNode}for(;;){let e=this[W].generator.next();if(e.done)break;let t=e.value;if(!t.success)return t;t.html&&this[ju](t.html,t.bbox)}return this[W].generator=null,J.EMPTY}[Nd](e){this[Af]=new Set(Object.keys(e))}[wf](e){let t=this[_f],n=this[Af];return[...e].filter(e=>t.has(e)&&!n.has(e))}[Ad](e,t=new Set){for(let n of this[vf])n[kf](e,t)}[kf](e,t){let n=this[Cf](e,t);n?this[hf](n,e,t):this[Ad](e,t)}[Cf](e,t){let{use:n,usehref:r}=this;if(!n&&!r)return null;let i=null,a=null,o=null,s=n;if(r?(s=r,r.startsWith(`#som(`)&&r.endsWith(`)`)?a=r.slice(5,-1):r.startsWith(`.#som(`)&&r.endsWith(`)`)?a=r.slice(6,-1):r.startsWith(`#`)?o=r.slice(1):r.startsWith(`.#`)&&(o=r.slice(2))):n.startsWith(`#`)?o=n.slice(1):a=n,this.use=this.usehref=``,o?i=e.get(o):(i=pf(e.get(kd),this,a,!0,!1),i&&=i[0]),!i)return j(`XFA - Invalid prototype reference: ${s}.`),null;if(i[bd]!==this[bd])return j(`XFA - Incompatible prototype: ${i[bd]} !== ${this[bd]}.`),null;if(t.has(i))return j(`XFA - Cycle detected in prototypes use.`),null;t.add(i);let c=i[Cf](e,t);return c&&i[hf](c,e,t),i[Ad](e,t),t.delete(i),i}[hf](e,t,n){if(n.has(e)){j(`XFA - Cycle detected in prototypes use.`);return}!this[U]&&e[U]&&(this[U]=e[U]),new Set(n).add(e);for(let t of this[wf](e[Af]))this[t]=e[t],this[Af]&&this[Af].add(t);for(let r of Object.getOwnPropertyNames(this)){if(this[_f].has(r))continue;let i=this[r],a=e[r];if(i instanceof X){for(let e of i[vf])e[kf](t,n);for(let r=i[vf].length,o=a[vf].length;r<o;r++){let a=e[vf][r][Lu]();if(i.push(a))a[Of]=this,this[vf].push(a),a[kf](t,n);else break}continue}if(i!==null){i[Ad](t,n),a&&i[hf](a,t,n);continue}if(a!==null){let e=a[Lu]();e[Of]=this,this[r]=e,this[vf].push(e),e[kf](t,n)}}}static[yf](t){return Array.isArray(t)?t.map(t=>e[yf](t)):typeof t==`object`&&t?Object.assign({},t):t}[Lu](){let t=Object.create(Object.getPrototypeOf(this));for(let e of Object.getOwnPropertySymbols(this))try{t[e]=this[e]}catch{P(t,e,this[e])}t[Bd]=`${t[bd]}${Mf++}`,t[vf]=[];for(let n of Object.getOwnPropertyNames(this)){if(this[_f].has(n)){t[n]=e[yf](this[n]);continue}let r=this[n];t[n]=r instanceof X?new X(r[Ef]):null}for(let e of this[vf]){let n=e[bd],r=e[Lu]();t[vf].push(r),r[Of]=t,t[n]===null?t[n]=r:t[n][vf].push(r)}return t}[Qu](e=null){return e?this[vf].filter(t=>t[bd]===e):this[vf]}[Ku](e){return this[e]}[qu](e,t,n=!0){return Array.from(this[Ju](e,t,n))}*[Ju](e,t,n=!0){if(e===`parent`){yield this[Of];return}for(let n of this[vf])n[bd]===e&&(yield n),n.name===e&&(yield n),(t||n[gd]())&&(yield*n[Ju](e,t,!1));n&&this[_f].has(e)&&(yield new Pf(this,e,this[e]))}},X=class e{constructor(e=1/0){this[Ef]=e,this[vf]=[]}get isXFAObject(){return!1}get isXFAObjectArray(){return!0}push(e){return this[vf].length<=this[Ef]?(this[vf].push(e),!0):(j(`XFA - node "${e[bd]}" accepts no more than ${this[Ef]} children`),!1)}isEmpty(){return this[vf].length===0}dump(){return this[vf].length===1?this[vf][0][Bu]():this[vf].map(e=>e[Bu]())}[Lu](){let t=new e(this[Ef]);return t[vf]=this[vf].map(e=>e[Lu]()),t}get children(){return this[vf]}clear(){this[vf].length=0}},Pf=class{constructor(e,t,n){this[Of]=e,this[bd]=t,this[U]=n,this[Ru]=!1,this[Bd]=`attribute${Mf++}`}[nd](){return this[Of]}[dd](){return!0}[Yu](){return this[U].trim()}[Pd](e){e=e.value||``,this[U]=e.toString()}[Id](){return this[U]}[fd](e){return this[Of]===e||this[Of][fd](e)}},Ff=class e extends Y{constructor(e,t,n={}){if(super(e,t),this[U]=``,this[bf]=null,t!==`#text`){let e=new Map;this[gf]=e;for(let[t,r]of Object.entries(n))e.set(t,new Pf(this,t,r));if(Object.hasOwn(n,xd)){let e=n[xd].xfa.dataNode;e!==void 0&&(e===`dataGroup`?this[bf]=!1:e===`dataValue`&&(this[bf]=!0))}}this[Ru]=!1}[Rd](e){let t=this[bd];if(t===`#text`){e.push(wt(this[U]));return}let n=ve(t),r=this[yd]===Nf?`xfa:`:``;e.push(`<${r}${n}`);for(let[t,n]of this[gf]){let r=ve(t);e.push(` ${r}="${wt(n[U])}"`)}if(this[bf]!==null&&(this[bf]?e.push(` xfa:dataNode="dataValue"`):e.push(` xfa:dataNode="dataGroup"`)),!this[U]&&this[vf].length===0){e.push(`/>`);return}if(e.push(`>`),this[U])typeof this[U]==`string`?e.push(wt(this[U])):this[U][Rd](e);else for(let t of this[vf])t[Rd](e);e.push(`</${r}${n}>`)}[Sd](t){if(this[U]){let t=new e(this[yd],`#text`);this[Mu](t),t[U]=this[U],this[U]=``}return this[Mu](t),!0}[wd](e){this[U]+=e}[Vu](){if(this[U]&&this[vf].length>0){let t=new e(this[yd],`#text`);this[Mu](t),t[U]=this[U],delete this[U]}}[G](){return this[bd]===`#text`?J.success({name:`#text`,value:this[U]}):J.EMPTY}[Qu](e=null){return e?this[vf].filter(t=>t[bd]===e):this[vf]}[Wu](){return this[gf]}[Ku](e){let t=this[gf].get(e);return t===void 0?this[Qu](e):t}*[Ju](e,t){let n=this[gf].get(e);n&&(yield n);for(let n of this[vf])n[bd]===e&&(yield n),t&&(yield*n[Ju](e,t))}*[Uu](e,t){let n=this[gf].get(e);n&&(!t||!n[Ru])&&(yield n);for(let n of this[vf])yield*n[Uu](e,t)}*[Zu](e,t,n){for(let r of this[vf])r[bd]===e&&(!n||!r[Ru])&&(yield r),t&&(yield*r[Zu](e,t,n))}[dd](){return this[bf]===null?this[vf].length===0||this[vf][0][yd]===Hd.xhtml.id:this[bf]}[Yu](){return this[bf]===null?this[vf].length===0?this[U].trim():this[vf][0][yd]===Hd.xhtml.id?this[vf][0][Id]().trim():null:this[U].trim()}[Pd](e){e=e.value||``,this[U]=e.toString()}[Bu](e=!1){let t=Object.create(null);e&&(t.$ns=this[yd]),this[U]&&(t.$content=this[U]),t.$name=this[bd],t.children=[];for(let n of this[vf])t.children.push(n[Bu](e));t.attributes=Object.create(null);for(let[e,n]of this[gf])t.attributes[e]=n[U];return t}},If=class extends Y{constructor(e,t){super(e,t),this[U]=``}[wd](e){this[U]+=e}[Vu](){}},Lf=class extends If{constructor(e,t,n){super(e,t),this[Df]=n}[Vu](){this[U]=Jd({data:this[U],defaultValue:this[Df][0],validate:e=>this[Df].includes(e)})}[Pu](e){super[Pu](e),delete this[Df]}},Rf=class extends If{[Vu](){this[U]=this[U].trim()}},zf=class extends If{constructor(e,t,n,r){super(e,t),this[xf]=n,this[jf]=r}[Vu](){this[U]=Kd({data:this[U],defaultValue:this[xf],validate:this[jf]})}[Pu](e){super[Pu](e),delete this[xf],delete this[jf]}},Bf=class extends zf{constructor(e,t){super(e,t,0,e=>e===1)}},Vf=class extends zf{constructor(e,t){super(e,t,1,e=>e===0)}};function Hf(e){return typeof e==`string`?`0px`:Number.isInteger(e)?`${e}px`:`${e.toFixed(2)}px`}let Uf={anchorType(e,t){let n=e[td]();if(!(!n||n.layout&&n.layout!==`position`))switch(`transform`in t||(t.transform=``),e.anchorType){case`bottomCenter`:t.transform+=`translate(-50%, -100%)`;break;case`bottomLeft`:t.transform+=`translate(0,-100%)`;break;case`bottomRight`:t.transform+=`translate(-100%,-100%)`;break;case`middleCenter`:t.transform+=`translate(-50%,-50%)`;break;case`middleLeft`:t.transform+=`translate(0,-50%)`;break;case`middleRight`:t.transform+=`translate(-100%,-50%)`;break;case`topCenter`:t.transform+=`translate(-50%,0)`;break;case`topRight`:t.transform+=`translate(-100%,0)`;break}},dimensions(e,t){let n=e[td](),r=e.w,i=e.h;if(n.layout?.includes(`row`)){let t=n[W],i=e.colSpan,a;i===-1?(a=Math.sumPrecise(t.columnWidths.slice(t.currentColumn)),t.currentColumn=0):(a=Math.sumPrecise(t.columnWidths.slice(t.currentColumn,t.currentColumn+i)),t.currentColumn=(t.currentColumn+e.colSpan)%t.columnWidths.length),isNaN(a)||(r=e.w=a)}t.width=r===``?`auto`:Hf(r),t.height=i===``?`auto`:Hf(i)},position(e,t){let n=e[td]();n?.layout&&n.layout!==`position`||(t.position=`absolute`,t.left=Hf(e.x),t.top=Hf(e.y))},rotate(e,t){e.rotate&&(`transform`in t||(t.transform=``),t.transform+=`rotate(-${e.rotate}deg)`,t.transformOrigin=`top left`)},presence(e,t){switch(e.presence){case`invisible`:t.visibility=`hidden`;break;case`hidden`:case`inactive`:t.display=`none`;break}},hAlign(e,t){if(e[bd]===`para`)switch(e.hAlign){case`justifyAll`:t.textAlign=`justify-all`;break;case`radix`:t.textAlign=`left`;break;default:t.textAlign=e.hAlign}else switch(e.hAlign){case`left`:t.alignSelf=`start`;break;case`center`:t.alignSelf=`center`;break;case`right`:t.alignSelf=`end`;break}},margin(e,t){e.margin&&(t.margin=e.margin[zd]().margin)}};function Wf(e,t){e[td]().layout===`position`&&(e.minW>0&&(t.minWidth=Hf(e.minW)),e.maxW>0&&(t.maxWidth=Hf(e.maxW)),e.minH>0&&(t.minHeight=Hf(e.minH)),e.maxH>0&&(t.maxHeight=Hf(e.maxH)))}function Gf(e,t,n,r,i,a){let o=new af(t,n,r,i);return typeof e==`string`?o.addString(e):e[Td](o),o.compute(a)}function Kf(e,t){let n=null,r=null,i=!1;if((!e.w||!e.h)&&e.value){let a=0,o=0;e.margin&&(a=e.margin.leftInset+e.margin.rightInset,o=e.margin.topInset+e.margin.bottomInset);let s=null,c=null;e.para&&(c=Object.create(null),s=e.para.lineHeight===``?null:e.para.lineHeight,c.top=e.para.spaceAbove===``?0:e.para.spaceAbove,c.bottom=e.para.spaceBelow===``?0:e.para.spaceBelow,c.left=e.para.marginLeft===``?0:e.para.marginLeft,c.right=e.para.marginRight===``?0:e.para.marginRight);let l=e.font;if(!l){let t=e[rd](),n=e[nd]();for(;n&&n!==t;){if(n.font){l=n.font;break}n=n[nd]()}}let u=(e.w||t.width)-a,d=e[id].fontFinder;if(e.value.exData&&e.value.exData[U]&&e.value.exData.contentType===`text/html`){let t=Gf(e.value.exData[U],l,c,s,d,u);r=t.width,n=t.height,i=t.isBroken}else{let t=e.value[Id]();if(t){let e=Gf(t,l,c,s,d,u);r=e.width,n=e.height,i=e.isBroken}}r!==null&&!e.w&&(r+=a),n!==null&&!e.h&&(n+=o)}return{w:r,h:n,isBroken:i}}function qf(e,t,n){let r;if(e.w!==``&&e.h!==``)r=[e.x,e.y,e.w,e.h];else{if(!n)return null;let i=e.w;if(i===``){if(e.maxW===0){let t=e[td]();i=t.layout===`position`&&t.w!==``?0:e.minW}else i=Math.min(e.maxW,n.width);t.attributes.style.width=Hf(i)}let a=e.h;if(a===``){if(e.maxH===0){let t=e[td]();a=t.layout===`position`&&t.h!==``?0:e.minH}else a=Math.min(e.maxH,n.height);t.attributes.style.height=Hf(a)}r=[e.x,e.y,i,a]}return r}function Jf(e){let t=e[td]();if(t.layout?.includes(`row`)){let n=t[W],r=e.colSpan,i;i=r===-1?Math.sumPrecise(n.columnWidths.slice(n.currentColumn)):Math.sumPrecise(n.columnWidths.slice(n.currentColumn,n.currentColumn+r)),isNaN(i)||(e.w=i)}t.layout&&t.layout!==`position`&&(e.x=e.y=0),e.layout===`table`&&e.w===``&&Array.isArray(e.columnWidths)&&(e.w=Math.sumPrecise(e.columnWidths))}function Yf(e){switch(e.layout){case`position`:return`xfaPosition`;case`lr-tb`:return`xfaLrTb`;case`rl-row`:return`xfaRlRow`;case`rl-tb`:return`xfaRlTb`;case`row`:return`xfaRow`;case`table`:return`xfaTable`;case`tb`:return`xfaTb`;default:return`xfaPosition`}}function Xf(e,...t){let n=Object.create(null);for(let r of t){let t=e[r];if(t!==null){if(Object.hasOwn(Uf,r)){Uf[r](e,n);continue}if(t instanceof Y){let e=t[zd]();e?Object.assign(n,e):j(`(DEBUG) - XFA - style for ${r} not implemented yet`)}}}return n}function Zf(e,t){let{attributes:n}=t,{style:r}=n,i={name:`div`,attributes:{class:[`xfaWrapper`],style:Object.create(null)},children:[]};if(n.class.push(`xfaWrapped`),e.border){let{widths:n,insets:a}=e.border[W],o,s,c=a[0],l=a[3],u=a[0]+a[2],d=a[1]+a[3];switch(e.border.hand){case`even`:c-=n[0]/2,l-=n[3]/2,o=`calc(100% + ${(n[1]+n[3])/2-d}px)`,s=`calc(100% + ${(n[0]+n[2])/2-u}px)`;break;case`left`:c-=n[0],l-=n[3],o=`calc(100% + ${n[1]+n[3]-d}px)`,s=`calc(100% + ${n[0]+n[2]-u}px)`;break;case`right`:o=d?`calc(100% - ${d}px)`:`100%`,s=u?`calc(100% - ${u}px)`:`100%`;break}let f=[`xfaBorder`];ep(e.border)&&f.push(`xfaPrintOnly`);let p={name:`div`,attributes:{class:f,style:{top:`${c}px`,left:`${l}px`,width:o,height:s}},children:[]};for(let e of[`border`,`borderWidth`,`borderColor`,`borderRadius`,`borderStyle`])r[e]!==void 0&&(p.attributes.style[e]=r[e],delete r[e]);i.children.push(p,t)}else i.children.push(t);for(let e of[`background`,`backgroundClip`,`top`,`left`,`width`,`height`,`minWidth`,`minHeight`,`maxWidth`,`maxHeight`,`transform`,`transformOrigin`,`visibility`])r[e]!==void 0&&(i.attributes.style[e]=r[e],delete r[e]);return i.attributes.style.position=r.position===`absolute`?`absolute`:`relative`,delete r.position,r.alignSelf&&(i.attributes.style.alignSelf=r.alignSelf,delete r.alignSelf),i}function Qf(e){let t=q(e.textIndent,`0px`);if(t>=0)return;let n=`padding`+((e.textAlign===`right`?`right`:`left`)==`left`?`Left`:`Right`);e[n]=`${q(e[n],`0px`)-t}px`}function $f(e,t){switch(e.access){case`nonInteractive`:t.push(`xfaNonInteractive`);break;case`readOnly`:t.push(`xfaReadOnly`);break;case`protected`:t.push(`xfaDisabled`);break}}function ep(e){return e.relevant.length>0&&!e.relevant[0].excluded&&e.relevant[0].viewname===`print`}function tp(e){let t=e[rd]()[W].paraStack;return t.length?t.at(-1):null}function np(e,t,n){if(n.attributes.class?.includes(`xfaRich`)){t&&(e.h===``&&(t.height=`auto`),e.w===``&&(t.width=`auto`));let r=tp(e);if(r){let e=n.attributes.style;switch(e.display=`flex`,e.flexDirection=`column`,r.vAlign){case`top`:e.justifyContent=`start`;break;case`bottom`:e.justifyContent=`end`;break;case`middle`:e.justifyContent=`center`;break}let t=r[zd]();for(let[n,r]of Object.entries(t))n in e||(e[n]=r)}}}function rp(e,t,n,r){if(!n){delete r.fontFamily;return}let i=Gd(e.typeface);r.fontFamily=`"${i}"`;let a=n.find(i);if(a){let{fontFamily:n}=a.regular.cssFontInfo;n!==i&&(r.fontFamily=`"${n}"`);let o=tp(t);if(o&&o.lineHeight!==``||r.lineHeight)return;let s=ef(e,a);s&&(r.lineHeight=Math.max(1.2,s.lineHeight))}}function ip(e){let t=ie(e,null,{addDefaultProtocol:!0,tryConvertEncoding:!0});return t?t.href:null}function ap(e,t){return{name:`div`,attributes:{class:[e.layout===`lr-tb`?`xfaLr`:`xfaRl`]},children:t}}function op(e){if(!e[W])return null;let t={name:`div`,attributes:e[W].attributes,children:e[W].children};if(e[W].failingNode){let n=e[W].failingNode[Hu]();n&&(e.layout.endsWith(`-tb`)?t.children.push(ap(e,[n])):t.children.push(n))}return t.children.length===0?null:t}function sp(e,t,n){let r=e[W],i=r.availableSpace,[a,o,s,c]=n;switch(e.layout){case`position`:r.width=Math.max(r.width,a+s),r.height=Math.max(r.height,o+c),r.children.push(t);break;case`lr-tb`:case`rl-tb`:(!r.line||r.attempt===1)&&(r.line=ap(e,[]),r.children.push(r.line),r.numberInLine=0),r.numberInLine+=1,r.line.children.push(t),r.attempt===0?(r.currentWidth+=s,r.height=Math.max(r.height,r.prevHeight+c)):(r.currentWidth=s,r.prevHeight=r.height,r.height+=c,r.attempt=0),r.width=Math.max(r.width,r.currentWidth);break;case`rl-row`:case`row`:{r.children.push(t),r.width+=s,r.height=Math.max(r.height,c);let e=Hf(r.height);for(let t of r.children)t.attributes.style.height=e;break}case`table`:r.width=rn(s,r.width,i.width),r.height+=c,r.children.push(t);break;case`tb`:r.width=rn(s,r.width,i.width),r.height+=c,r.children.push(t);break}}function cp(e){let t=e[W].availableSpace,n=e.margin?e.margin.topInset+e.margin.bottomInset:0,r=e.margin?e.margin.leftInset+e.margin.rightInset:0;switch(e.layout){case`lr-tb`:case`rl-tb`:return e[W].attempt===0?{width:t.width-r-e[W].currentWidth,height:t.height-n-e[W].prevHeight}:{width:t.width-r,height:t.height-n-e[W].height};case`rl-row`:case`row`:return{width:Math.sumPrecise(e[W].columnWidths.slice(e[W].currentColumn)),height:t.height-r};case`table`:case`tb`:return{width:t.width-r,height:t.height-n-e[W].height};default:return t}}function lp(e){let t=e.w===``?NaN:e.w,n=e.h===``?NaN:e.h,[r,i]=[0,0];switch(e.anchorType||``){case`bottomCenter`:[r,i]=[t/2,n];break;case`bottomLeft`:[r,i]=[0,n];break;case`bottomRight`:[r,i]=[t,n];break;case`middleCenter`:[r,i]=[t/2,n/2];break;case`middleLeft`:[r,i]=[0,n/2];break;case`middleRight`:[r,i]=[t,n/2];break;case`topCenter`:[r,i]=[t/2,0];break;case`topRight`:[r,i]=[t,0];break}let a,o;switch(e.rotate||0){case 0:[a,o]=[-r,-i];break;case 90:[a,o]=[-i,r],[t,n]=[n,-t];break;case 180:[a,o]=[r,i],[t,n]=[-t,-n];break;case 270:[a,o]=[i,-r],[t,n]=[-n,t];break}return[e.x+a+Math.min(0,t),e.y+o+Math.min(0,n),Math.abs(t),Math.abs(n)]}function up(e,t){if(e[rd]()[W].firstUnsplittable===null||e.w===0||e.h===0)return!0;let n=e[td](),r=n[W]?.attempt||0,[,i,a,o]=lp(e);switch(n.layout){case`lr-tb`:case`rl-tb`:return r===0?e[rd]()[W].noLayoutFailure?e.w===``?t.width>2:Math.round(a-t.width)<=2:e.h!==``&&Math.round(o-t.height)>2?!1:e.w===``?t.width>2:Math.round(a-t.width)<=2?!0:n[W].numberInLine===0?t.height>2:!1:e[rd]()[W].noLayoutFailure?!0:e.h!==``&&Math.round(o-t.height)>2?!1:e.w===``||Math.round(a-t.width)<=2?t.height>2:n[hd]()?!1:t.height>2;case`table`:case`tb`:return e[rd]()[W].noLayoutFailure?!0:e.h!==``&&!e[md]()?Math.round(o-t.height)<=2:e.w===``||Math.round(a-t.width)<=2?t.height>2:n[hd]()?!1:t.height>2;case`position`:if(e[rd]()[W].noLayoutFailure||e.h===``||Math.round(o+i-t.height)<=2)return!0;let s=e[rd]()[W].currentContentArea;return o+i>s.h;case`rl-row`:case`row`:return e[rd]()[W].noLayoutFailure||e.h===``?!0:Math.round(o-t.height)<=2;default:return!0}}let Z=Hd.template.id,dp=/^H(\\d+)$/,fp=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`]),pp=[[[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 mp(e){if(!e||!e.border)return{w:0,h:0};let t=e.border[Xu]();return t?{w:t.widths[0]+t.widths[2]+t.insets[0]+t.insets[2],h:t.widths[1]+t.widths[3]+t.insets[1]+t.insets[3]}:{w:0,h:0}}function hp(e){return e.margin&&(e.margin.topInset||e.margin.rightInset||e.margin.bottomInset||e.margin.leftInset)}function gp(e,t){if(!e.value){let t=new Ah({});e[Mu](t),e.value=t}e.value[Pd](t)}function*_p(e){for(let t of e[Qu]()){if(t instanceof gh){yield*t[$u]();continue}yield t}}function vp(e){return e.validate?.nullTest===`error`}function yp(e){for(;e;){if(!e.traversal){e[Fd]=e[nd]()[Fd];return}if(e[Fd])return;let t=null;for(let n of e.traversal[Qu]())if(n.operation===`next`){t=n;break}if(!t||!t.ref){e[Fd]=e[nd]()[Fd];return}let n=e[rd]();e[Fd]=++n[Fd];let r=n[jd](t.ref,e);if(!r)return;e=r[0]}}function bp(e,t){let n=e.assist;if(n){let e=n[G]();e&&(t.title=e);let r=n.role.match(dp);if(r){let e=r[1];t.role=`heading`,t[`aria-level`]=e}}if(e.layout===`table`)t.role=`table`;else if(e.layout===`row`)t.role=`row`;else{let n=e[nd]();n.layout===`row`&&(t.role=n.assist?.role===`TH`?`columnheader`:`cell`)}}function xp(e){if(!e.assist)return null;let t=e.assist;return t.speak&&t.speak[U]!==``?t.speak[U]:t.toolTip?t.toolTip[U]:null}function Sp(e){return J.success({name:`div`,attributes:{class:[`xfaRich`],style:Object.create(null)},children:[{name:`span`,attributes:{style:Object.create(null)},value:e}]})}function Cp(e){let t=e[rd]();t[W].firstUnsplittable===null&&(t[W].firstUnsplittable=e,t[W].noLayoutFailure=!0)}function wp(e){let t=e[rd]();t[W].firstUnsplittable===e&&(t[W].noLayoutFailure=!1)}function Tp(e){if(e[W]||(e[W]=Object.create(null),e.targetType===`auto`))return!1;let t=e[rd](),n=null;if(e.target){if(n=t[jd](e.target,e[nd]()),!n)return!1;n=n[0]}let{currentPageArea:r,currentContentArea:i}=t[W];if(e.targetType===`pageArea`)return n instanceof Ym||(n=null),e.startNew?(e[W].target=n||r,!0):n&&n!==r?(e[W].target=n,!0):!1;n instanceof Xp||(n=null);let a=n&&n[nd](),o,s=a;if(e.startNew)if(n){let e=a.contentArea.children,t=e.indexOf(i),r=e.indexOf(n);t!==-1&&t<r&&(s=null),o=r-1}else o=r.contentArea.children.indexOf(i);else if(n&&n!==i)o=a.contentArea.children.indexOf(n)-1,s=a===r?null:a;else return!1;return e[W].target=s,e[W].index=o,!0}function Ep(e,t,n){let r=e[rd](),i=r[W].noLayoutFailure,a=t[td];t[td]=()=>e,r[W].noLayoutFailure=!0;let o=t[G](n);e[ju](o.html,o.bbox),r[W].noLayoutFailure=i,t[td]=a}var Dp=class extends Rf{constructor(e){super(Z,`appearanceFilter`),this.id=e.id||``,this.type=K(e.type,[`optional`,`required`]),this.use=e.use||``,this.usehref=e.usehref||``}},Op=class extends Y{constructor(e){super(Z,`arc`,!0),this.circular=Kd({data:e.circular,defaultValue:0,validate:e=>e===1}),this.hand=K(e.hand,[`even`,`left`,`right`]),this.id=e.id||``,this.startAngle=qd({data:e.startAngle,defaultValue:0,validate:e=>!0}),this.sweepAngle=qd({data:e.sweepAngle,defaultValue:360,validate:e=>!0}),this.use=e.use||``,this.usehref=e.usehref||``,this.edge=null,this.fill=null}[G](){let e=this.edge||new sm({}),t=e[zd](),n=Object.create(null);this.fill?.presence===`visible`?Object.assign(n,this.fill[zd]()):n.fill=`transparent`,n.strokeWidth=Hf(e.presence===`visible`?e.thickness:0),n.stroke=t.color;let r,i={xmlns:u,style:{width:`100%`,height:`100%`,overflow:`visible`}};if(this.sweepAngle===360)r={name:`ellipse`,attributes:{xmlns:u,cx:`50%`,cy:`50%`,rx:`50%`,ry:`50%`,style:n}};else{let e=this.startAngle*Math.PI/180,t=this.sweepAngle*Math.PI/180,a=+(this.sweepAngle>180),[o,s,c,l]=[50*(1+Math.cos(e)),50*(1-Math.sin(e)),50*(1+Math.cos(e+t)),50*(1-Math.sin(e+t))];r={name:`path`,attributes:{xmlns:u,d:`M ${o} ${s} A 50 50 0 ${a} 0 ${c} ${l}`,vectorEffect:`non-scaling-stroke`,style:n}},Object.assign(i,{viewBox:`0 0 100 100`,preserveAspectRatio:`none`})}let a={name:`svg`,children:[r],attributes:i};return hp(this[nd]()[nd]())?J.success({name:`div`,attributes:{style:{display:`inline`,width:`100%`,height:`100%`}},children:[a]}):(a.attributes.style.position=`absolute`,J.success(a))}},kp=class extends Y{constructor(e){super(Z,`area`,!0),this.colSpan=Kd({data:e.colSpan,defaultValue:1,validate:e=>e>=1||e===-1}),this.id=e.id||``,this.name=e.name||``,this.relevant=Xd(e.relevant),this.use=e.use||``,this.usehref=e.usehref||``,this.x=q(e.x,`0pt`),this.y=q(e.y,`0pt`),this.desc=null,this.extras=null,this.area=new X,this.draw=new X,this.exObject=new X,this.exclGroup=new X,this.field=new X,this.subform=new X,this.subformSet=new X}*[$u](){yield*_p(this)}[gd](){return!0}[ud](){return!0}[ju](e,t){let[n,r,i,a]=t;this[W].width=Math.max(this[W].width,n+i),this[W].height=Math.max(this[W].height,r+a),this[W].children.push(e)}[Gu](){return this[W].availableSpace}[G](e){let t=Xf(this,`position`),n={style:t,id:this[Bd],class:[`xfaArea`]};ep(this)&&n.class.push(`xfaPrintOnly`),this.name&&(n.xfaName=this.name);let r=[];this[W]={children:r,width:0,height:0,availableSpace:e};let i=this[Nu]({filter:new Set([`area`,`draw`,`field`,`exclGroup`,`subform`,`subformSet`]),include:!0});if(!i.success)return i.isBreak()?i:(delete this[W],J.FAILURE);t.width=Hf(this[W].width),t.height=Hf(this[W].height);let a={name:`div`,attributes:n,children:r},o=[this.x,this.y,this[W].width,this[W].height];return delete this[W],J.success(a,o)}},Ap=class extends Y{constructor(e){super(Z,`assist`,!0),this.id=e.id||``,this.role=e.role||``,this.use=e.use||``,this.usehref=e.usehref||``,this.speak=null,this.toolTip=null}[G](){return this.toolTip?.[U]||null}},jp=class extends Y{constructor(e){super(Z,`barcode`,!0),this.charEncoding=Jd({data:e.charEncoding?e.charEncoding.toLowerCase():``,defaultValue:``,validate:e=>[`utf-8`,`big-five`,`fontspecific`,`gbk`,`gb-18030`,`gb-2312`,`ksc-5601`,`none`,`shift-jis`,`ucs-2`,`utf-16`].includes(e)||e.match(/iso-8859-\\d{2}/)}),this.checksum=K(e.checksum,[`none`,`1mod10`,`1mod10_1mod11`,`2mod10`,`auto`]),this.dataColumnCount=Kd({data:e.dataColumnCount,defaultValue:-1,validate:e=>e>=0}),this.dataLength=Kd({data:e.dataLength,defaultValue:-1,validate:e=>e>=0}),this.dataPrep=K(e.dataPrep,[`none`,`flateCompress`]),this.dataRowCount=Kd({data:e.dataRowCount,defaultValue:-1,validate:e=>e>=0}),this.endChar=e.endChar||``,this.errorCorrectionLevel=Kd({data:e.errorCorrectionLevel,defaultValue:-1,validate:e=>e>=0&&e<=8}),this.id=e.id||``,this.moduleHeight=q(e.moduleHeight,`5mm`),this.moduleWidth=q(e.moduleWidth,`0.25mm`),this.printCheckDigit=Kd({data:e.printCheckDigit,defaultValue:0,validate:e=>e===1}),this.rowColumnRatio=Yd(e.rowColumnRatio),this.startChar=e.startChar||``,this.textLocation=K(e.textLocation,[`below`,`above`,`aboveEmbedded`,`belowEmbedded`,`none`]),this.truncate=Kd({data:e.truncate,defaultValue:0,validate:e=>e===1}),this.type=K(e.type?e.type.toLowerCase():``,`aztec.codabar.code2of5industrial.code2of5interleaved.code2of5matrix.code2of5standard.code3of9.code3of9extended.code11.code49.code93.code128.code128a.code128b.code128c.code128sscc.datamatrix.ean8.ean8add2.ean8add5.ean13.ean13add2.ean13add5.ean13pwcd.fim.logmars.maxicode.msi.pdf417.pdf417macro.plessey.postauscust2.postauscust3.postausreplypaid.postausstandard.postukrm4scc.postusdpbc.postusimb.postusstandard.postus5zip.qrcode.rfid.rss14.rss14expanded.rss14limited.rss14stacked.rss14stackedomni.rss14truncated.telepen.ucc128.ucc128random.ucc128sscc.upca.upcaadd2.upcaadd5.upcapwcd.upce.upceadd2.upceadd5.upcean2.upcean5.upsmaxicode`.split(`.`)),this.upsMode=K(e.upsMode,[`usCarrier`,`internationalCarrier`,`secureSymbol`,`standardSymbol`]),this.use=e.use||``,this.usehref=e.usehref||``,this.wideNarrowRatio=Yd(e.wideNarrowRatio),this.encrypt=null,this.extras=null}},Mp=class extends Y{constructor(e){super(Z,`bind`,!0),this.match=K(e.match,[`once`,`dataRef`,`global`,`none`]),this.ref=e.ref||``,this.picture=null}},Np=class extends Y{constructor(e){super(Z,`bindItems`),this.connection=e.connection||``,this.labelRef=e.labelRef||``,this.ref=e.ref||``,this.valueRef=e.valueRef||``}},Pp=class extends Y{constructor(e){super(Z,`bookend`),this.id=e.id||``,this.leader=e.leader||``,this.trailer=e.trailer||``,this.use=e.use||``,this.usehref=e.usehref||``}},Fp=class extends Bf{constructor(e){super(Z,`boolean`),this.id=e.id||``,this.name=e.name||``,this.use=e.use||``,this.usehref=e.usehref||``}[G](e){return Sp(this[U]===1?`1`:`0`)}},Ip=class extends Y{constructor(e){super(Z,`border`,!0),this.break=K(e.break,[`close`,`open`]),this.hand=K(e.hand,[`even`,`left`,`right`]),this.id=e.id||``,this.presence=K(e.presence,[`visible`,`hidden`,`inactive`,`invisible`]),this.relevant=Xd(e.relevant),this.use=e.use||``,this.usehref=e.usehref||``,this.corner=new X(4),this.edge=new X(4),this.extras=null,this.fill=null,this.margin=null}[Xu](){if(!this[W]){let e=this.edge.children.slice();if(e.length<4){let t=e.at(-1)||new sm({});for(let n=e.length;n<4;n++)e.push(t)}let t=e.map(e=>e.thickness),n=[0,0,0,0];this.margin&&(n[0]=this.margin.topInset,n[1]=this.margin.rightInset,n[2]=this.margin.bottomInset,n[3]=this.margin.leftInset),this[W]={widths:t,insets:n,edges:e}}return this[W]}[zd](){let{edges:e}=this[Xu](),t=e.map(e=>{let t=e[zd]();return t.color||=`#000000`,t}),n=Object.create(null);if(this.margin&&Object.assign(n,this.margin[zd]()),this.fill?.presence===`visible`&&Object.assign(n,this.fill[zd]()),this.corner.children.some(e=>e.radius!==0)){let e=this.corner.children.map(e=>e[zd]());if(e.length===2||e.length===3){let t=e.at(-1);for(let n=e.length;n<4;n++)e.push(t)}n.borderRadius=e.map(e=>e.radius).join(` `)}switch(this.presence){case`invisible`:case`hidden`:n.borderStyle=``;break;case`inactive`:n.borderStyle=`none`;break;default:n.borderStyle=t.map(e=>e.style).join(` `);break}return n.borderWidth=t.map(e=>e.width).join(` `),n.borderColor=t.map(e=>e.color).join(` `),n}},Lp=class extends Y{constructor(e){super(Z,`break`,!0),this.after=K(e.after,[`auto`,`contentArea`,`pageArea`,`pageEven`,`pageOdd`]),this.afterTarget=e.afterTarget||``,this.before=K(e.before,[`auto`,`contentArea`,`pageArea`,`pageEven`,`pageOdd`]),this.beforeTarget=e.beforeTarget||``,this.bookendLeader=e.bookendLeader||``,this.bookendTrailer=e.bookendTrailer||``,this.id=e.id||``,this.overflowLeader=e.overflowLeader||``,this.overflowTarget=e.overflowTarget||``,this.overflowTrailer=e.overflowTrailer||``,this.startNew=Kd({data:e.startNew,defaultValue:0,validate:e=>e===1}),this.use=e.use||``,this.usehref=e.usehref||``,this.extras=null}},Rp=class extends Y{constructor(e){super(Z,`breakAfter`,!0),this.id=e.id||``,this.leader=e.leader||``,this.startNew=Kd({data:e.startNew,defaultValue:0,validate:e=>e===1}),this.target=e.target||``,this.targetType=K(e.targetType,[`auto`,`contentArea`,`pageArea`]),this.trailer=e.trailer||``,this.use=e.use||``,this.usehref=e.usehref||``,this.script=null}},zp=class extends Y{constructor(e){super(Z,`breakBefore`,!0),this.id=e.id||``,this.leader=e.leader||``,this.startNew=Kd({data:e.startNew,defaultValue:0,validate:e=>e===1}),this.target=e.target||``,this.targetType=K(e.targetType,[`auto`,`contentArea`,`pageArea`]),this.trailer=e.trailer||``,this.use=e.use||``,this.usehref=e.usehref||``,this.script=null}[G](e){return this[W]={},J.FAILURE}},Bp=class extends Y{constructor(e){super(Z,`button`,!0),this.highlight=K(e.highlight,[`inverted`,`none`,`outline`,`push`]),this.id=e.id||``,this.use=e.use||``,this.usehref=e.usehref||``,this.extras=null}[G](e){let t=this[nd]()[nd](),n={name:`button`,attributes:{id:this[Bd],class:[`xfaButton`],style:{}},children:[]};for(let e of t.event.children){if(e.activity!==`click`||!e.script)continue;let t=Dt(e.script[U]);if(!t)continue;let r=ip(t.url);r&&n.children.push({name:`a`,attributes:{id:`link`+this[Bd],href:r,newWindow:t.newWindow,class:[`xfaLink`],style:{}},children:[]})}return J.success(n)}},Vp=class extends Y{constructor(e){super(Z,`calculate`,!0),this.id=e.id||``,this.override=K(e.override,[`disabled`,`error`,`ignore`,`warning`]),this.use=e.use||``,this.usehref=e.usehref||``,this.extras=null,this.message=null,this.script=null}},Hp=class extends Y{constructor(e){super(Z,`caption`,!0),this.id=e.id||``,this.placement=K(e.placement,[`left`,`bottom`,`inline`,`right`,`top`]),this.presence=K(e.presence,[`visible`,`hidden`,`inactive`,`invisible`]),this.reserve=Math.ceil(q(e.reserve)),this.use=e.use||``,this.usehref=e.usehref||``,this.extras=null,this.font=null,this.margin=null,this.para=null,this.value=null}[Pd](e){gp(this,e)}[Xu](e){if(!this[W]){let{width:t,height:n}=e;switch(this.placement){case`left`:case`right`:case`inline`:t=this.reserve<=0?t:this.reserve;break;case`top`:case`bottom`:n=this.reserve<=0?n:this.reserve;break}this[W]=Kf(this,{width:t,height:n})}return this[W]}[G](e){if(!this.value)return J.EMPTY;this[Dd]();let t=this.value[G](e).html;if(!t)return this[Ed](),J.EMPTY;let n=this.reserve;if(this.reserve<=0){let{w:t,h:n}=this[Xu](e);switch(this.placement){case`left`:case`right`:case`inline`:this.reserve=t;break;case`top`:case`bottom`:this.reserve=n;break}}let r=[];typeof t==`string`?r.push({name:`#text`,value:t}):r.push(t);let i=Xf(this,`font`,`margin`,`visibility`);switch(this.placement){case`left`:case`right`:this.reserve>0&&(i.width=Hf(this.reserve));break;case`top`:case`bottom`:this.reserve>0&&(i.height=Hf(this.reserve));break}return np(this,null,t),this[Ed](),this.reserve=n,J.success({name:`div`,attributes:{style:i,class:[`xfaCaption`]},children:r})}},Up=class extends Rf{constructor(e){super(Z,`certificate`),this.id=e.id||``,this.name=e.name||``,this.use=e.use||``,this.usehref=e.usehref||``}},Wp=class extends Y{constructor(e){super(Z,`certificates`,!0),this.credentialServerPolicy=K(e.credentialServerPolicy,[`optional`,`required`]),this.id=e.id||``,this.url=e.url||``,this.urlPolicy=e.urlPolicy||``,this.use=e.use||``,this.usehref=e.usehref||``,this.encryption=null,this.issuers=null,this.keyUsage=null,this.oids=null,this.signing=null,this.subjectDNs=null}},Gp=class extends Y{constructor(e){super(Z,`checkButton`,!0),this.id=e.id||``,this.mark=K(e.mark,[`default`,`check`,`circle`,`cross`,`diamond`,`square`,`star`]),this.shape=K(e.shape,[`square`,`round`]),this.size=q(e.size,`10pt`),this.use=e.use||``,this.usehref=e.usehref||``,this.border=null,this.extras=null,this.margin=null}[G](e){let t=Xf(this,`margin`);t.width=t.height=Hf(this.size);let n,r,i,a=this[nd]()[nd](),o=a.items.children.length&&a.items.children[0][G]().html||[],s={on:(o[0]===void 0?`on`:o[0]).toString(),off:(o[1]===void 0?`off`:o[1]).toString()},c=(a.value?.[Id]()||`off`)===s.on||void 0,l=a[td](),u=a[Bd],d;l instanceof vm?(i=l[Bd],n=`radio`,r=`xfaRadio`,d=l[zu]?.[Bd]||l[Bd]):(n=`checkbox`,r=`xfaCheckbox`,d=a[zu]?.[Bd]||a[Bd]);let f={name:`input`,attributes:{class:[r],style:t,fieldId:u,dataId:d,type:n,checked:c,xfaOn:s.on,xfaOff:s.off,"aria-label":xp(a),"aria-required":!1}};return i&&(f.attributes.name=i),vp(a)&&(f.attributes[`aria-required`]=!0,f.attributes.required=!0),J.success({name:`label`,attributes:{class:[`xfaLabel`]},children:[f]})}},Kp=class extends Y{constructor(e){super(Z,`choiceList`,!0),this.commitOn=K(e.commitOn,[`select`,`exit`]),this.id=e.id||``,this.open=K(e.open,[`userControl`,`always`,`multiSelect`,`onEntry`]),this.textEntry=Kd({data:e.textEntry,defaultValue:0,validate:e=>e===1}),this.use=e.use||``,this.usehref=e.usehref||``,this.border=null,this.extras=null,this.margin=null}[G](e){let t=Xf(this,`border`,`margin`),n=this[nd]()[nd](),r={fontSize:`calc(${n.font?.size||10}px * var(--total-scale-factor))`},i=[];if(n.items.children.length>0){let e=n.items,t=0,a=0;e.children.length===2&&(t=e.children[0].save,a=1-t);let o=e.children[t][G]().html,s=e.children[a][G]().html,c=!1,l=n.value?.[Id]()||``;for(let e=0,t=o.length;e<t;e++){let t={name:`option`,attributes:{value:s[e]||o[e],style:r},value:o[e]};s[e]===l&&(t.attributes.selected=c=!0),i.push(t)}c||i.splice(0,0,{name:`option`,attributes:{hidden:!0,selected:!0},value:` `})}let a={class:[`xfaSelect`],fieldId:n[Bd],dataId:n[zu]?.[Bd]||n[Bd],style:t,"aria-label":xp(n),"aria-required":!1};return vp(n)&&(a[`aria-required`]=!0,a.required=!0),this.open===`multiSelect`&&(a.multiple=!0),J.success({name:`label`,attributes:{class:[`xfaLabel`]},children:[{name:`select`,children:i,attributes:a}]})}},qp=class extends Y{constructor(e){super(Z,`color`,!0),this.cSpace=K(e.cSpace,[`SRGB`]),this.id=e.id||``,this.use=e.use||``,this.usehref=e.usehref||``,this.value=e.value?Zd(e.value):``,this.extras=null}[ad](){return!1}[zd](){return this.value?ge.makeHexColor(this.value.r,this.value.g,this.value.b):null}},Jp=class extends Y{constructor(e){super(Z,`comb`),this.id=e.id||``,this.numberOfCells=Kd({data:e.numberOfCells,defaultValue:0,validate:e=>e>=0}),this.use=e.use||``,this.usehref=e.usehref||``}},Yp=class extends Y{constructor(e){super(Z,`connect`,!0),this.connection=e.connection||``,this.id=e.id||``,this.ref=e.ref||``,this.usage=K(e.usage,[`exportAndImport`,`exportOnly`,`importOnly`]),this.use=e.use||``,this.usehref=e.usehref||``,this.picture=null}},Xp=class extends Y{constructor(e){super(Z,`contentArea`,!0),this.h=q(e.h),this.id=e.id||``,this.name=e.name||``,this.relevant=Xd(e.relevant),this.use=e.use||``,this.usehref=e.usehref||``,this.w=q(e.w),this.x=q(e.x,`0pt`),this.y=q(e.y,`0pt`),this.desc=null,this.extras=null}[G](e){let t={left:Hf(this.x),top:Hf(this.y),width:Hf(this.w),height:Hf(this.h)},n=[`xfaContentarea`];return ep(this)&&n.push(`xfaPrintOnly`),J.success({name:`div`,children:[],attributes:{style:t,class:n,id:this[Bd]}})}},Zp=class extends Y{constructor(e){super(Z,`corner`,!0),this.id=e.id||``,this.inverted=Kd({data:e.inverted,defaultValue:0,validate:e=>e===1}),this.join=K(e.join,[`square`,`round`]),this.presence=K(e.presence,[`visible`,`hidden`,`inactive`,`invisible`]),this.radius=q(e.radius),this.stroke=K(e.stroke,[`solid`,`dashDot`,`dashDotDot`,`dashed`,`dotted`,`embossed`,`etched`,`lowered`,`raised`]),this.thickness=q(e.thickness,`0.5pt`),this.use=e.use||``,this.usehref=e.usehref||``,this.color=null,this.extras=null}[zd](){let e=Xf(this,`visibility`);return e.radius=Hf(this.join===`square`?0:this.radius),e}},Qp=class extends If{constructor(e){super(Z,`date`),this.id=e.id||``,this.name=e.name||``,this.use=e.use||``,this.usehref=e.usehref||``}[Vu](){let e=this[U].trim();this[U]=e?new Date(e):null}[G](e){return Sp(this[U]?this[U].toString():``)}},$p=class extends If{constructor(e){super(Z,`dateTime`),this.id=e.id||``,this.name=e.name||``,this.use=e.use||``,this.usehref=e.usehref||``}[Vu](){let e=this[U].trim();this[U]=e?new Date(e):null}[G](e){return Sp(this[U]?this[U].toString():``)}},em=class extends Y{constructor(e){super(Z,`dateTimeEdit`,!0),this.hScrollPolicy=K(e.hScrollPolicy,[`auto`,`off`,`on`]),this.id=e.id||``,this.picker=K(e.picker,[`host`,`none`]),this.use=e.use||``,this.usehref=e.usehref||``,this.border=null,this.comb=null,this.extras=null,this.margin=null}[G](e){let t=Xf(this,`border`,`font`,`margin`),n=this[nd]()[nd](),r={name:`input`,attributes:{type:`text`,fieldId:n[Bd],dataId:n[zu]?.[Bd]||n[Bd],class:[`xfaTextfield`],style:t,"aria-label":xp(n),"aria-required":!1}};return vp(n)&&(r.attributes[`aria-required`]=!0,r.attributes.required=!0),J.success({name:`label`,attributes:{class:[`xfaLabel`]},children:[r]})}},tm=class extends If{constructor(e){super(Z,`decimal`),this.fracDigits=Kd({data:e.fracDigits,defaultValue:2,validate:e=>!0}),this.id=e.id||``,this.leadDigits=Kd({data:e.leadDigits,defaultValue:-1,validate:e=>!0}),this.name=e.name||``,this.use=e.use||``,this.usehref=e.usehref||``}[Vu](){let e=parseFloat(this[U].trim());this[U]=isNaN(e)?null:e}[G](e){return Sp(this[U]===null?``:this[U].toString())}},nm=class extends Y{constructor(e){super(Z,`defaultUi`,!0),this.id=e.id||``,this.use=e.use||``,this.usehref=e.usehref||``,this.extras=null}},rm=class extends Y{constructor(e){super(Z,`desc`,!0),this.id=e.id||``,this.use=e.use||``,this.usehref=e.usehref||``,this.boolean=new X,this.date=new X,this.dateTime=new X,this.decimal=new X,this.exData=new X,this.float=new X,this.image=new X,this.integer=new X,this.text=new X,this.time=new X}},im=class extends Lf{constructor(e){super(Z,`digestMethod`,[``,`SHA1`,`SHA256`,`SHA512`,`RIPEMD160`]),this.id=e.id||``,this.use=e.use||``,this.usehref=e.usehref||``}},am=class extends Y{constructor(e){super(Z,`digestMethods`,!0),this.id=e.id||``,this.type=K(e.type,[`optional`,`required`]),this.use=e.use||``,this.usehref=e.usehref||``,this.digestMethod=new X}},om=class extends Y{constructor(e){super(Z,`draw`,!0),this.anchorType=K(e.anchorType,[`topLeft`,`bottomCenter`,`bottomLeft`,`bottomRight`,`middleCenter`,`middleLeft`,`middleRight`,`topCenter`,`topRight`]),this.colSpan=Kd({data:e.colSpan,defaultValue:1,validate:e=>e>=1||e===-1}),this.h=e.h?q(e.h):``,this.hAlign=K(e.hAlign,[`left`,`center`,`justify`,`justifyAll`,`radix`,`right`]),this.id=e.id||``,this.locale=e.locale||``,this.maxH=q(e.maxH,`0pt`),this.maxW=q(e.maxW,`0pt`),this.minH=q(e.minH,`0pt`),this.minW=q(e.minW,`0pt`),this.name=e.name||``,this.presence=K(e.presence,[`visible`,`hidden`,`inactive`,`invisible`]),this.relevant=Xd(e.relevant),this.rotate=Kd({data:e.rotate,defaultValue:0,validate:e=>e%90==0}),this.use=e.use||``,this.usehref=e.usehref||``,this.w=e.w?q(e.w):``,this.x=q(e.x,`0pt`),this.y=q(e.y,`0pt`),this.assist=null,this.border=null,this.caption=null,this.desc=null,this.extras=null,this.font=null,this.keep=null,this.margin=null,this.para=null,this.traversal=null,this.ui=null,this.value=null,this.setProperty=new X}[Pd](e){gp(this,e)}[G](e){if(yp(this),this.presence===`hidden`||this.presence===`inactive`)return J.EMPTY;Jf(this),this[Dd]();let t=this.w,n=this.h,{w:r,h:i,isBroken:a}=Kf(this,e);if(r&&this.w===``){if(a&&this[td]()[hd]())return this[Ed](),J.FAILURE;this.w=r}if(i&&this.h===``&&(this.h=i),Cp(this),!up(this,e))return this.w=t,this.h=n,this[Ed](),J.FAILURE;wp(this);let o=Xf(this,`font`,`hAlign`,`dimensions`,`position`,`presence`,`rotate`,`anchorType`,`border`,`margin`);Wf(this,o),o.margin&&(o.padding=o.margin,delete o.margin);let s=[`xfaDraw`];this.font&&s.push(`xfaFont`),ep(this)&&s.push(`xfaPrintOnly`);let c={style:o,id:this[Bd],class:s};this.name&&(c.xfaName=this.name);let l={name:`div`,attributes:c,children:[]};bp(this,c);let u=qf(this,l,e),d=this.value?this.value[G](e).html:null;return d===null?(this.w=t,this.h=n,this[Ed](),J.success(Zf(this,l),u)):(l.children.push(d),np(this,o,d),this.w=t,this.h=n,this[Ed](),J.success(Zf(this,l),u))}},sm=class extends Y{constructor(e){super(Z,`edge`,!0),this.cap=K(e.cap,[`square`,`butt`,`round`]),this.id=e.id||``,this.presence=K(e.presence,[`visible`,`hidden`,`inactive`,`invisible`]),this.stroke=K(e.stroke,[`solid`,`dashDot`,`dashDotDot`,`dashed`,`dotted`,`embossed`,`etched`,`lowered`,`raised`]),this.thickness=q(e.thickness,`0.5pt`),this.use=e.use||``,this.usehref=e.usehref||``,this.color=null,this.extras=null}[zd](){let e=Xf(this,`visibility`);if(Object.assign(e,{linecap:this.cap,width:Hf(this.thickness),color:this.color?this.color[zd]():`#000000`,style:``}),this.presence!==`visible`)e.style=`none`;else switch(this.stroke){case`solid`:e.style=`solid`;break;case`dashDot`:e.style=`dashed`;break;case`dashDotDot`:e.style=`dashed`;break;case`dashed`:e.style=`dashed`;break;case`dotted`:e.style=`dotted`;break;case`embossed`:e.style=`ridge`;break;case`etched`:e.style=`groove`;break;case`lowered`:e.style=`inset`;break;case`raised`:e.style=`outset`;break}return e}},cm=class extends Lf{constructor(e){super(Z,`encoding`,[`adbe.x509.rsa_sha1`,`adbe.pkcs7.detached`,`adbe.pkcs7.sha1`]),this.id=e.id||``,this.use=e.use||``,this.usehref=e.usehref||``}},lm=class extends Y{constructor(e){super(Z,`encodings`,!0),this.id=e.id||``,this.type=K(e.type,[`optional`,`required`]),this.use=e.use||``,this.usehref=e.usehref||``,this.encoding=new X}},um=class extends Y{constructor(e){super(Z,`encrypt`,!0),this.id=e.id||``,this.use=e.use||``,this.usehref=e.usehref||``,this.certificate=null}},dm=class extends Y{constructor(e){super(Z,`encryptData`,!0),this.id=e.id||``,this.operation=K(e.operation,[`encrypt`,`decrypt`]),this.target=e.target||``,this.use=e.use||``,this.usehref=e.usehref||``,this.filter=null,this.manifest=null}},fm=class extends Y{constructor(e){super(Z,`encryption`,!0),this.id=e.id||``,this.type=K(e.type,[`optional`,`required`]),this.use=e.use||``,this.usehref=e.usehref||``,this.certificate=new X}},pm=class extends Lf{constructor(e){super(Z,`encryptionMethod`,[``,`AES256-CBC`,`TRIPLEDES-CBC`,`AES128-CBC`,`AES192-CBC`]),this.id=e.id||``,this.use=e.use||``,this.usehref=e.usehref||``}},mm=class extends Y{constructor(e){super(Z,`encryptionMethods`,!0),this.id=e.id||``,this.type=K(e.type,[`optional`,`required`]),this.use=e.use||``,this.usehref=e.usehref||``,this.encryptionMethod=new X}},hm=class extends Y{constructor(e){super(Z,`event`,!0),this.activity=K(e.activity,`click.change.docClose.docReady.enter.exit.full.indexChange.initialize.mouseDown.mouseEnter.mouseExit.mouseUp.postExecute.postOpen.postPrint.postSave.postSign.postSubmit.preExecute.preOpen.prePrint.preSave.preSign.preSubmit.ready.validationState`.split(`.`)),this.id=e.id||``,this.listen=K(e.listen,[`refOnly`,`refAndDescendents`]),this.name=e.name||``,this.ref=e.ref||``,this.use=e.use||``,this.usehref=e.usehref||``,this.extras=null,this.encryptData=null,this.execute=null,this.script=null,this.signData=null,this.submit=null}},gm=class extends If{constructor(e){super(Z,`exData`),this.contentType=e.contentType||``,this.href=e.href||``,this.id=e.id||``,this.maxLength=Kd({data:e.maxLength,defaultValue:-1,validate:e=>e>=-1}),this.name=e.name||``,this.rid=e.rid||``,this.transferEncoding=K(e.transferEncoding,[`none`,`base64`,`package`]),this.use=e.use||``,this.usehref=e.usehref||``}[ld](){return this.contentType===`text/html`}[Sd](e){return this.contentType===`text/html`&&e[yd]===Hd.xhtml.id||this.contentType===`text/xml`?(this[U]=e,!0):!1}[G](e){return this.contentType!==`text/html`||!this[U]?J.EMPTY:this[U][G](e)}},_m=class extends Y{constructor(e){super(Z,`exObject`,!0),this.archive=e.archive||``,this.classId=e.classId||``,this.codeBase=e.codeBase||``,this.codeType=e.codeType||``,this.id=e.id||``,this.name=e.name||``,this.use=e.use||``,this.usehref=e.usehref||``,this.extras=null,this.boolean=new X,this.date=new X,this.dateTime=new X,this.decimal=new X,this.exData=new X,this.exObject=new X,this.float=new X,this.image=new X,this.integer=new X,this.text=new X,this.time=new X}},vm=class extends Y{constructor(e){super(Z,`exclGroup`,!0),this.access=K(e.access,[`open`,`nonInteractive`,`protected`,`readOnly`]),this.accessKey=e.accessKey||``,this.anchorType=K(e.anchorType,[`topLeft`,`bottomCenter`,`bottomLeft`,`bottomRight`,`middleCenter`,`middleLeft`,`middleRight`,`topCenter`,`topRight`]),this.colSpan=Kd({data:e.colSpan,defaultValue:1,validate:e=>e>=1||e===-1}),this.h=e.h?q(e.h):``,this.hAlign=K(e.hAlign,[`left`,`center`,`justify`,`justifyAll`,`radix`,`right`]),this.id=e.id||``,this.layout=K(e.layout,[`position`,`lr-tb`,`rl-row`,`rl-tb`,`row`,`table`,`tb`]),this.maxH=q(e.maxH,`0pt`),this.maxW=q(e.maxW,`0pt`),this.minH=q(e.minH,`0pt`),this.minW=q(e.minW,`0pt`),this.name=e.name||``,this.presence=K(e.presence,[`visible`,`hidden`,`inactive`,`invisible`]),this.relevant=Xd(e.relevant),this.use=e.use||``,this.usehref=e.usehref||``,this.w=e.w?q(e.w):``,this.x=q(e.x,`0pt`),this.y=q(e.y,`0pt`),this.assist=null,this.bind=null,this.border=null,this.calculate=null,this.caption=null,this.desc=null,this.extras=null,this.margin=null,this.para=null,this.traversal=null,this.validate=null,this.connect=new X,this.event=new X,this.field=new X,this.setProperty=new X}[ud](){return!0}[ad](){return!0}[Pd](e){for(let t of this.field.children){if(!t.value){let e=new Ah({});t[Mu](e),t.value=e}t.value[Pd](e)}}[hd](){return this.layout.endsWith(`-tb`)&&this[W].attempt===0&&this[W].numberInLine>0||this[nd]()[hd]()}[md](){let e=this[td]();return e[md]()?this[W]._isSplittable===void 0?this.layout===`position`||this.layout.includes(`row`)?(this[W]._isSplittable=!1,!1):e.layout?.endsWith(`-tb`)&&e[W].numberInLine!==0?!1:(this[W]._isSplittable=!0,!0):this[W]._isSplittable:!1}[Hu](){return op(this)}[ju](e,t){sp(this,e,t)}[Gu](){return cp(this)}[G](e){if(yp(this),this.presence===`hidden`||this.presence===`inactive`||this.h===0||this.w===0)return J.EMPTY;Jf(this);let t=[],n={id:this[Bd],class:[]};$f(this,n.class),this[W]||=Object.create(null),Object.assign(this[W],{children:t,attributes:n,attempt:0,line:null,numberInLine:0,availableSpace:{width:Math.min(this.w||1/0,e.width),height:Math.min(this.h||1/0,e.height)},width:0,height:0,prevHeight:0,currentWidth:0});let r=this[md]();if(r||Cp(this),!up(this,e))return J.FAILURE;let i=new Set([`field`]);if(this.layout.includes(`row`)){let e=this[td]().columnWidths;Array.isArray(e)&&e.length>0&&(this[W].columnWidths=e,this[W].currentColumn=0)}let a=Xf(this,`anchorType`,`dimensions`,`position`,`presence`,`border`,`margin`,`hAlign`),o=[`xfaExclgroup`],s=Yf(this);s&&o.push(s),ep(this)&&o.push(`xfaPrintOnly`),n.style=a,n.class=o,this.name&&(n.xfaName=this.name),this[Dd]();let c=this.layout===`lr-tb`||this.layout===`rl-tb`,l=c?2:1;for(;this[W].attempt<l;this[W].attempt++){c&&this[W].attempt===1&&(this[W].numberInLine=0);let e=this[Nu]({filter:i,include:!0});if(e.success)break;if(e.isBreak())return this[Ed](),e;if(c&&this[W].attempt===0&&this[W].numberInLine===0&&!this[rd]()[W].noLayoutFailure){this[W].attempt=l;break}}if(this[Ed](),r||wp(this),this[W].attempt===l)return r||delete this[W],J.FAILURE;let u=0,d=0;this.margin&&(u=this.margin.leftInset+this.margin.rightInset,d=this.margin.topInset+this.margin.bottomInset);let f=Math.max(this[W].width+u,this.w||0),p=Math.max(this[W].height+d,this.h||0),m=[this.x,this.y,f,p];this.w===``&&(a.width=Hf(f)),this.h===``&&(a.height=Hf(p));let h={name:`div`,attributes:n,children:t};return bp(this,n),delete this[W],J.success(Zf(this,h),m)}},ym=class extends Y{constructor(e){super(Z,`execute`),this.connection=e.connection||``,this.executeType=K(e.executeType,[`import`,`remerge`]),this.id=e.id||``,this.runAt=K(e.runAt,[`client`,`both`,`server`]),this.use=e.use||``,this.usehref=e.usehref||``}},bm=class extends Y{constructor(e){super(Z,`extras`,!0),this.id=e.id||``,this.name=e.name||``,this.use=e.use||``,this.usehref=e.usehref||``,this.boolean=new X,this.date=new X,this.dateTime=new X,this.decimal=new X,this.exData=new X,this.extras=new X,this.float=new X,this.image=new X,this.integer=new X,this.text=new X,this.time=new X}},xm=class extends Y{constructor(e){super(Z,`field`,!0),this.access=K(e.access,[`open`,`nonInteractive`,`protected`,`readOnly`]),this.accessKey=e.accessKey||``,this.anchorType=K(e.anchorType,[`topLeft`,`bottomCenter`,`bottomLeft`,`bottomRight`,`middleCenter`,`middleLeft`,`middleRight`,`topCenter`,`topRight`]),this.colSpan=Kd({data:e.colSpan,defaultValue:1,validate:e=>e>=1||e===-1}),this.h=e.h?q(e.h):``,this.hAlign=K(e.hAlign,[`left`,`center`,`justify`,`justifyAll`,`radix`,`right`]),this.id=e.id||``,this.locale=e.locale||``,this.maxH=q(e.maxH,`0pt`),this.maxW=q(e.maxW,`0pt`),this.minH=q(e.minH,`0pt`),this.minW=q(e.minW,`0pt`),this.name=e.name||``,this.presence=K(e.presence,[`visible`,`hidden`,`inactive`,`invisible`]),this.relevant=Xd(e.relevant),this.rotate=Kd({data:e.rotate,defaultValue:0,validate:e=>e%90==0}),this.use=e.use||``,this.usehref=e.usehref||``,this.w=e.w?q(e.w):``,this.x=q(e.x,`0pt`),this.y=q(e.y,`0pt`),this.assist=null,this.bind=null,this.border=null,this.calculate=null,this.caption=null,this.desc=null,this.extras=null,this.font=null,this.format=null,this.items=new X(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 X,this.connect=new X,this.event=new X,this.setProperty=new X}[ud](){return!0}[Pd](e){gp(this,e)}[G](e){if(yp(this),!this.ui){this.ui=new Oh({}),this.ui[id]=this[id],this[Mu](this.ui);let e;switch(this.items.children.length){case 0:e=new Sh({}),this.ui.textEdit=e;break;case 1:e=new Gp({}),this.ui.checkButton=e;break;case 2:e=new Kp({}),this.ui.choiceList=e;break}this.ui[Mu](e)}if(!this.ui||this.presence===`hidden`||this.presence===`inactive`||this.h===0||this.w===0)return J.EMPTY;this.caption&&delete this.caption[W],this[Dd]();let t=this.caption?this.caption[G](e).html:null,n=this.w,r=this.h,i=0,a=0;this.margin&&(i=this.margin.leftInset+this.margin.rightInset,a=this.margin.topInset+this.margin.bottomInset);let o=null;if(this.w===``||this.h===``){let t=null,n=null,r=0,s=0;if(this.ui.checkButton)r=s=this.ui.checkButton.size;else{let{w:t,h:n}=Kf(this,e);t===null?s=tf(this.font,!0).lineNoGap:(r=t,s=n)}if(o=mp(this.ui[Xu]()),r+=o.w,s+=o.h,this.caption){let{w:i,h:a,isBroken:o}=this.caption[Xu](e);if(o&&this[td]()[hd]())return this[Ed](),J.FAILURE;switch(t=i,n=a,this.caption.placement){case`left`:case`right`:case`inline`:t+=r;break;case`top`:case`bottom`:n+=s;break}}else t=r,n=s;t&&this.w===``&&(t+=i,this.w=Math.min(this.maxW<=0?1/0:this.maxW,this.minW+1<t?t:this.minW)),n&&this.h===``&&(n+=a,this.h=Math.min(this.maxH<=0?1/0:this.maxH,this.minH+1<n?n:this.minH))}if(this[Ed](),Jf(this),Cp(this),!up(this,e))return this.w=n,this.h=r,this[Ed](),J.FAILURE;wp(this);let s=Xf(this,`font`,`dimensions`,`position`,`rotate`,`anchorType`,`presence`,`margin`,`hAlign`);Wf(this,s);let c=[`xfaField`];this.font&&c.push(`xfaFont`),ep(this)&&c.push(`xfaPrintOnly`);let l={style:s,id:this[Bd],class:c};s.margin&&(s.padding=s.margin,delete s.margin),$f(this,c),this.name&&(l.xfaName=this.name);let u=[],d={name:`div`,attributes:l,children:u};bp(this,l);let f=this.border?this.border[zd]():null,p=qf(this,d,e),m=this.ui[G]().html;if(!m)return Object.assign(s,f),J.success(Zf(this,d),p);this[Fd]&&(m.children?.[0]?m.children[0].attributes.tabindex=this[Fd]:m.attributes.tabindex=this[Fd]),m.attributes.style||=Object.create(null);let h=null;if(this.ui.button?(m.children.length===1&&([h]=m.children.splice(0,1)),Object.assign(m.attributes.style,f)):Object.assign(s,f),u.push(m),this.value){if(this.ui.imageEdit)m.children.push(this.value[G]().html);else if(!this.ui.button){let e=``;if(this.value.exData)e=this.value.exData[Id]();else if(this.value.text)e=this.value.text[Xu]();else{let t=this.value[G]().html;t!==null&&(e=t.children[0].value)}this.ui.textEdit&&this.value.text?.maxChars&&(m.children[0].attributes.maxLength=this.value.text.maxChars),e&&(this.ui.numericEdit&&(e=parseFloat(e),e=isNaN(e)?``:e.toString()),m.children[0].name===`textarea`?m.children[0].attributes.textContent=e:m.children[0].attributes.value=e)}}if(!this.ui.imageEdit&&m.children?.[0]&&this.h){o||=mp(this.ui[Xu]());let t=0;if(this.caption&&[`top`,`bottom`].includes(this.caption.placement)){t=this.caption.reserve,t<=0&&(t=this.caption[Xu](e).h);let n=this.h-t-a-o.h;m.children[0].attributes.style.height=Hf(n)}else m.children[0].attributes.style.height=`100%`}if(h&&m.children.push(h),!t)return m.attributes.class&&m.attributes.class.push(`xfaLeft`),this.w=n,this.h=r,J.success(Zf(this,d),p);if(this.ui.button)return s.padding&&delete s.padding,t.name===`div`&&(t.name=`span`),m.children.push(t),J.success(d,p);switch(this.ui.checkButton&&(t.attributes.class[0]=`xfaCaptionForCheckButton`),m.attributes.class||=[],m.children.splice(0,0,t),this.caption.placement){case`left`:m.attributes.class.push(`xfaLeft`);break;case`right`:m.attributes.class.push(`xfaRight`);break;case`top`:m.attributes.class.push(`xfaTop`);break;case`bottom`:m.attributes.class.push(`xfaBottom`);break;case`inline`:m.attributes.class.push(`xfaLeft`);break}return this.w=n,this.h=r,J.success(Zf(this,d),p)}},Sm=class extends Y{constructor(e){super(Z,`fill`,!0),this.id=e.id||``,this.presence=K(e.presence,[`visible`,`hidden`,`inactive`,`invisible`]),this.use=e.use||``,this.usehref=e.usehref||``,this.color=null,this.extras=null,this.linear=null,this.pattern=null,this.radial=null,this.solid=null,this.stipple=null}[zd](){let e=this[nd](),t=e[nd]()[nd](),n=Object.create(null),r=`color`,i=r;e instanceof Ip&&(r=`background-color`,i=`background`,t instanceof Oh&&(n.backgroundColor=`white`)),(e instanceof ah||e instanceof Op)&&(r=i=`fill`,n.fill=`white`);for(let e of Object.getOwnPropertyNames(this)){if(e===`extras`||e===`color`)continue;let t=this[e];if(!(t instanceof Y))continue;let a=t[zd](this.color);return a&&(n[a.startsWith(`#`)?r:i]=a),n}if(this.color?.value){let e=this.color[zd]();n[e.startsWith(`#`)?r:i]=e}return n}},Cm=class extends Y{constructor(e){super(Z,`filter`,!0),this.addRevocationInfo=K(e.addRevocationInfo,[``,`required`,`optional`,`none`]),this.id=e.id||``,this.name=e.name||``,this.use=e.use||``,this.usehref=e.usehref||``,this.version=Kd({data:this.version,defaultValue:5,validate:e=>e>=1&&e<=5}),this.appearanceFilter=null,this.certificates=null,this.digestMethods=null,this.encodings=null,this.encryptionMethods=null,this.handler=null,this.lockDocument=null,this.mdp=null,this.reasons=null,this.timeStamp=null}},wm=class extends If{constructor(e){super(Z,`float`),this.id=e.id||``,this.name=e.name||``,this.use=e.use||``,this.usehref=e.usehref||``}[Vu](){let e=parseFloat(this[U].trim());this[U]=isNaN(e)?null:e}[G](e){return Sp(this[U]===null?``:this[U].toString())}},Tm=class extends Y{constructor(e){super(Z,`font`,!0),this.baselineShift=q(e.baselineShift),this.fontHorizontalScale=qd({data:e.fontHorizontalScale,defaultValue:100,validate:e=>e>=0}),this.fontVerticalScale=qd({data:e.fontVerticalScale,defaultValue:100,validate:e=>e>=0}),this.id=e.id||``,this.kerningMode=K(e.kerningMode,[`none`,`pair`]),this.letterSpacing=q(e.letterSpacing,`0`),this.lineThrough=Kd({data:e.lineThrough,defaultValue:0,validate:e=>e===1||e===2}),this.lineThroughPeriod=K(e.lineThroughPeriod,[`all`,`word`]),this.overline=Kd({data:e.overline,defaultValue:0,validate:e=>e===1||e===2}),this.overlinePeriod=K(e.overlinePeriod,[`all`,`word`]),this.posture=K(e.posture,[`normal`,`italic`]),this.size=q(e.size,`10pt`),this.typeface=e.typeface||`Courier`,this.underline=Kd({data:e.underline,defaultValue:0,validate:e=>e===1||e===2}),this.underlinePeriod=K(e.underlinePeriod,[`all`,`word`]),this.use=e.use||``,this.usehref=e.usehref||``,this.weight=K(e.weight,[`normal`,`bold`]),this.extras=null,this.fill=null}[Pu](e){super[Pu](e),this[id].usedTypefaces.add(this.typeface)}[zd](){let e=Xf(this,`fill`),t=e.color;return t&&(t===`#000000`?delete e.color:t.startsWith(`#`)||(e.background=t,e.backgroundClip=`text`,e.color=`transparent`)),this.baselineShift&&(e.verticalAlign=Hf(this.baselineShift)),e.fontKerning=this.kerningMode===`none`?`none`:`normal`,e.letterSpacing=Hf(this.letterSpacing),this.lineThrough!==0&&(e.textDecoration=`line-through`,this.lineThrough===2&&(e.textDecorationStyle=`double`)),this.overline!==0&&(e.textDecoration=`overline`,this.overline===2&&(e.textDecorationStyle=`double`)),e.fontStyle=this.posture,e.fontSize=Hf(.99*this.size),rp(this,this,this[id].fontFinder,e),this.underline!==0&&(e.textDecoration=`underline`,this.underline===2&&(e.textDecorationStyle=`double`)),e.fontWeight=this.weight,e}},Em=class extends Y{constructor(e){super(Z,`format`,!0),this.id=e.id||``,this.use=e.use||``,this.usehref=e.usehref||``,this.extras=null,this.picture=null}},Dm=class extends Rf{constructor(e){super(Z,`handler`),this.id=e.id||``,this.type=K(e.type,[`optional`,`required`]),this.use=e.use||``,this.usehref=e.usehref||``}},Om=class extends Y{constructor(e){super(Z,`hyphenation`),this.excludeAllCaps=Kd({data:e.excludeAllCaps,defaultValue:0,validate:e=>e===1}),this.excludeInitialCap=Kd({data:e.excludeInitialCap,defaultValue:0,validate:e=>e===1}),this.hyphenate=Kd({data:e.hyphenate,defaultValue:0,validate:e=>e===1}),this.id=e.id||``,this.pushCharacterCount=Kd({data:e.pushCharacterCount,defaultValue:3,validate:e=>e>=0}),this.remainCharacterCount=Kd({data:e.remainCharacterCount,defaultValue:3,validate:e=>e>=0}),this.use=e.use||``,this.usehref=e.usehref||``,this.wordCharacterCount=Kd({data:e.wordCharacterCount,defaultValue:7,validate:e=>e>=0})}},km=class extends Rf{constructor(e){super(Z,`image`),this.aspect=K(e.aspect,[`fit`,`actual`,`height`,`none`,`width`]),this.contentType=e.contentType||``,this.href=e.href||``,this.id=e.id||``,this.name=e.name||``,this.transferEncoding=K(e.transferEncoding,[`base64`,`none`,`package`]),this.use=e.use||``,this.usehref=e.usehref||``}[G](){if(this.contentType&&!fp.has(this.contentType.toLowerCase()))return J.EMPTY;let e=this[id].images?.get(this.href);if(!e&&(this.href||!this[U])||(!e&&this.transferEncoding===`base64`&&(e=Uint8Array.fromBase64(this[U])),!e))return J.EMPTY;if(!this.contentType){for(let[t,n]of pp)if(e.length>t.length&&t.every((t,n)=>t===e[n])){this.contentType=n;break}if(!this.contentType)return J.EMPTY}let t=new Blob([e],{type:this.contentType}),n;switch(this.aspect){case`fit`:case`actual`:break;case`height`:n={height:`100%`,objectFit:`fill`};break;case`none`:n={width:`100%`,height:`100%`,objectFit:`fill`};break;case`width`:n={width:`100%`,objectFit:`fill`};break}let r=this[nd]();return J.success({name:`img`,attributes:{class:[`xfaImage`],style:n,src:URL.createObjectURL(t),alt:r?xp(r[nd]()):null}})}},Am=class extends Y{constructor(e){super(Z,`imageEdit`,!0),this.data=K(e.data,[`link`,`embed`]),this.id=e.id||``,this.use=e.use||``,this.usehref=e.usehref||``,this.border=null,this.extras=null,this.margin=null}[G](e){return this.data===`embed`?J.success({name:`div`,children:[],attributes:{}}):J.EMPTY}},jm=class extends If{constructor(e){super(Z,`integer`),this.id=e.id||``,this.name=e.name||``,this.use=e.use||``,this.usehref=e.usehref||``}[Vu](){let e=parseInt(this[U].trim(),10);this[U]=isNaN(e)?null:e}[G](e){return Sp(this[U]===null?``:this[U].toString())}},Mm=class extends Y{constructor(e){super(Z,`issuers`,!0),this.id=e.id||``,this.type=K(e.type,[`optional`,`required`]),this.use=e.use||``,this.usehref=e.usehref||``,this.certificate=new X}},Nm=class extends Y{constructor(e){super(Z,`items`,!0),this.id=e.id||``,this.name=e.name||``,this.presence=K(e.presence,[`visible`,`hidden`,`inactive`,`invisible`]),this.ref=e.ref||``,this.save=Kd({data:e.save,defaultValue:0,validate:e=>e===1}),this.use=e.use||``,this.usehref=e.usehref||``,this.boolean=new X,this.date=new X,this.dateTime=new X,this.decimal=new X,this.exData=new X,this.float=new X,this.image=new X,this.integer=new X,this.text=new X,this.time=new X}[G](){let e=[];for(let t of this[Qu]())e.push(t[Id]());return J.success(e)}},Pm=class extends Y{constructor(e){super(Z,`keep`,!0),this.id=e.id||``;let t=[`none`,`contentArea`,`pageArea`];this.intact=K(e.intact,t),this.next=K(e.next,t),this.previous=K(e.previous,t),this.use=e.use||``,this.usehref=e.usehref||``,this.extras=null}},Fm=class extends Y{constructor(e){super(Z,`keyUsage`);let t=[``,`yes`,`no`];this.crlSign=K(e.crlSign,t),this.dataEncipherment=K(e.dataEncipherment,t),this.decipherOnly=K(e.decipherOnly,t),this.digitalSignature=K(e.digitalSignature,t),this.encipherOnly=K(e.encipherOnly,t),this.id=e.id||``,this.keyAgreement=K(e.keyAgreement,t),this.keyCertSign=K(e.keyCertSign,t),this.keyEncipherment=K(e.keyEncipherment,t),this.nonRepudiation=K(e.nonRepudiation,t),this.type=K(e.type,[`optional`,`required`]),this.use=e.use||``,this.usehref=e.usehref||``}},Im=class extends Y{constructor(e){super(Z,`line`,!0),this.hand=K(e.hand,[`even`,`left`,`right`]),this.id=e.id||``,this.slope=K(e.slope,[`\\\\`,`/`]),this.use=e.use||``,this.usehref=e.usehref||``,this.edge=null}[G](){let e=this[nd]()[nd](),t=this.edge||new sm({}),n=t[zd](),r=Object.create(null),i=t.presence===`visible`?t.thickness:0;r.strokeWidth=Hf(i),r.stroke=n.color;let a,o,s,c,l=`100%`,d=`100%`;e.w<=i?([a,o,s,c]=[`50%`,0,`50%`,`100%`],l=r.strokeWidth):e.h<=i?([a,o,s,c]=[0,`50%`,`100%`,`50%`],d=r.strokeWidth):this.slope===`\\\\`?[a,o,s,c]=[0,0,`100%`,`100%`]:[a,o,s,c]=[0,`100%`,`100%`,0];let f={name:`svg`,children:[{name:`line`,attributes:{xmlns:u,x1:a,y1:o,x2:s,y2:c,style:r}}],attributes:{xmlns:u,width:l,height:d,style:{overflow:`visible`}}};return hp(e)?J.success({name:`div`,attributes:{style:{display:`inline`,width:`100%`,height:`100%`}},children:[f]}):(f.attributes.style.position=`absolute`,J.success(f))}},Lm=class extends Y{constructor(e){super(Z,`linear`,!0),this.id=e.id||``,this.type=K(e.type,[`toRight`,`toBottom`,`toLeft`,`toTop`]),this.use=e.use||``,this.usehref=e.usehref||``,this.color=null,this.extras=null}[zd](e){e=e?e[zd]():`#FFFFFF`;let t=this.type.replace(/([RBLT])/,` $1`).toLowerCase(),n=this.color?this.color[zd]():`#000000`;return`linear-gradient(${t}, ${e}, ${n})`}},Rm=class extends If{constructor(e){super(Z,`lockDocument`),this.id=e.id||``,this.type=K(e.type,[`optional`,`required`]),this.use=e.use||``,this.usehref=e.usehref||``}[Vu](){this[U]=K(this[U],[`auto`,`0`,`1`])}},zm=class extends Y{constructor(e){super(Z,`manifest`,!0),this.action=K(e.action,[`include`,`all`,`exclude`]),this.id=e.id||``,this.name=e.name||``,this.use=e.use||``,this.usehref=e.usehref||``,this.extras=null,this.ref=new X}},Bm=class extends Y{constructor(e){super(Z,`margin`,!0),this.bottomInset=q(e.bottomInset,`0`),this.id=e.id||``,this.leftInset=q(e.leftInset,`0`),this.rightInset=q(e.rightInset,`0`),this.topInset=q(e.topInset,`0`),this.use=e.use||``,this.usehref=e.usehref||``,this.extras=null}[zd](){return{margin:Hf(this.topInset)+` `+Hf(this.rightInset)+` `+Hf(this.bottomInset)+` `+Hf(this.leftInset)}}},Vm=class extends Y{constructor(e){super(Z,`mdp`),this.id=e.id||``,this.permissions=Kd({data:e.permissions,defaultValue:2,validate:e=>e===1||e===3}),this.signatureType=K(e.signatureType,[`filler`,`author`]),this.use=e.use||``,this.usehref=e.usehref||``}},Hm=class extends Y{constructor(e){super(Z,`medium`),this.id=e.id||``,this.imagingBBox=Qd(e.imagingBBox),this.long=q(e.long),this.orientation=K(e.orientation,[`portrait`,`landscape`]),this.short=q(e.short),this.stock=e.stock||``,this.trayIn=K(e.trayIn,[`auto`,`delegate`,`pageFront`]),this.trayOut=K(e.trayOut,[`auto`,`delegate`]),this.use=e.use||``,this.usehref=e.usehref||``}},Um=class extends Y{constructor(e){super(Z,`message`,!0),this.id=e.id||``,this.use=e.use||``,this.usehref=e.usehref||``,this.text=new X}},Wm=class extends Y{constructor(e){super(Z,`numericEdit`,!0),this.hScrollPolicy=K(e.hScrollPolicy,[`auto`,`off`,`on`]),this.id=e.id||``,this.use=e.use||``,this.usehref=e.usehref||``,this.border=null,this.comb=null,this.extras=null,this.margin=null}[G](e){let t=Xf(this,`border`,`font`,`margin`),n=this[nd]()[nd](),r={name:`input`,attributes:{type:`text`,fieldId:n[Bd],dataId:n[zu]?.[Bd]||n[Bd],class:[`xfaTextfield`],style:t,"aria-label":xp(n),"aria-required":!1}};return vp(n)&&(r.attributes[`aria-required`]=!0,r.attributes.required=!0),J.success({name:`label`,attributes:{class:[`xfaLabel`]},children:[r]})}},Gm=class extends Y{constructor(e){super(Z,`occur`,!0),this.id=e.id||``,this.initial=e.initial===``?``:Kd({data:e.initial,defaultValue:``,validate:e=>!0}),this.max=e.max===``?``:Kd({data:e.max,defaultValue:-1,validate:e=>!0}),this.min=e.min===``?``:Kd({data:e.min,defaultValue:1,validate:e=>!0}),this.use=e.use||``,this.usehref=e.usehref||``,this.extras=null}[Pu](){let e=this[nd](),t=this.min;this.min===``&&(this.min=e instanceof Ym||e instanceof Xm?0:1),this.max===``&&(t===``?this.max=e instanceof Ym||e instanceof Xm?-1:1:this.max=this.min),this.max!==-1&&this.max<this.min&&(this.max=this.min),this.initial===``&&(this.initial=e instanceof bh?1:this.min)}},Km=class extends Rf{constructor(e){super(Z,`oid`),this.id=e.id||``,this.name=e.name||``,this.use=e.use||``,this.usehref=e.usehref||``}},qm=class extends Y{constructor(e){super(Z,`oids`,!0),this.id=e.id||``,this.type=K(e.type,[`optional`,`required`]),this.use=e.use||``,this.usehref=e.usehref||``,this.oid=new X}},Jm=class extends Y{constructor(e){super(Z,`overflow`),this.id=e.id||``,this.leader=e.leader||``,this.target=e.target||``,this.trailer=e.trailer||``,this.use=e.use||``,this.usehref=e.usehref||``}[Xu](){if(!this[W]){let e=this[nd](),t=this[rd](),n=t[jd](this.target,e),r=t[jd](this.leader,e),i=t[jd](this.trailer,e);this[W]={target:n?.[0]||null,leader:r?.[0]||null,trailer:i?.[0]||null,addLeader:!1,addTrailer:!1}}return this[W]}},Ym=class extends Y{constructor(e){super(Z,`pageArea`,!0),this.blankOrNotBlank=K(e.blankOrNotBlank,[`any`,`blank`,`notBlank`]),this.id=e.id||``,this.initialNumber=Kd({data:e.initialNumber,defaultValue:1,validate:e=>!0}),this.name=e.name||``,this.numbered=Kd({data:e.numbered,defaultValue:1,validate:e=>!0}),this.oddOrEven=K(e.oddOrEven,[`any`,`even`,`odd`]),this.pagePosition=K(e.pagePosition,[`any`,`first`,`last`,`only`,`rest`]),this.relevant=Xd(e.relevant),this.use=e.use||``,this.usehref=e.usehref||``,this.desc=null,this.extras=null,this.medium=null,this.occur=null,this.area=new X,this.contentArea=new X,this.draw=new X,this.exclGroup=new X,this.field=new X,this.subform=new X}[_d](){return this[W]?!this.occur||this.occur.max===-1||this[W].numberOfUse<this.occur.max:(this[W]={numberOfUse:0},!0)}[Fu](){delete this[W]}[ed](){this[W]||={numberOfUse:0};let e=this[nd]();return e.relation===`orderedOccurrence`&&this[_d]()?(this[W].numberOfUse+=1,this):e[ed]()}[Gu](){return this[W].space||{width:0,height:0}}[G](){this[W]||={numberOfUse:1};let e=[];this[W].children=e;let t=Object.create(null);if(this.medium&&this.medium.short&&this.medium.long){if(t.width=Hf(this.medium.short),t.height=Hf(this.medium.long),this[W].space={width:this.medium.short,height:this.medium.long},this.medium.orientation===`landscape`){let e=t.width;t.width=t.height,t.height=e,this[W].space={width:this.medium.long,height:this.medium.short}}}else j(`XFA - No medium specified in pageArea: please file a bug.`);return this[Nu]({filter:new Set([`area`,`draw`,`field`,`subform`]),include:!0}),this[Nu]({filter:new Set([`contentArea`]),include:!0}),J.success({name:`div`,children:e,attributes:{class:[`xfaPage`],id:this[Bd],style:t,xfaName:this.name}})}},Xm=class e extends Y{constructor(e){super(Z,`pageSet`,!0),this.duplexImposition=K(e.duplexImposition,[`longEdge`,`shortEdge`]),this.id=e.id||``,this.name=e.name||``,this.relation=K(e.relation,[`orderedOccurrence`,`duplexPaginated`,`simplexPaginated`]),this.relevant=Xd(e.relevant),this.use=e.use||``,this.usehref=e.usehref||``,this.extras=null,this.occur=null,this.pageArea=new X,this.pageSet=new X}[Fu](){for(let e of this.pageArea.children)e[Fu]();for(let e of this.pageSet.children)e[Fu]()}[_d](){return!this.occur||this.occur.max===-1||this[W].numberOfUse<this.occur.max}[ed](){if(this[W]||={numberOfUse:1,pageIndex:-1,pageSetIndex:-1},this.relation===`orderedOccurrence`){if(this[W].pageIndex+1<this.pageArea.children.length)return this[W].pageIndex+=1,this.pageArea.children[this[W].pageIndex][ed]();if(this[W].pageSetIndex+1<this.pageSet.children.length)return this[W].pageSetIndex+=1,this.pageSet.children[this[W].pageSetIndex][ed]();if(this[_d]())return this[W].numberOfUse+=1,this[W].pageIndex=-1,this[W].pageSetIndex=-1,this[ed]();let t=this[nd]();return t instanceof e?t[ed]():(this[Fu](),this[ed]())}let t=this[rd]()[W].pageNumber,n=t%2==0?`even`:`odd`,r=t===0?`first`:`rest`,i=this.pageArea.children.find(e=>e.oddOrEven===n&&e.pagePosition===r);return i||(i=this.pageArea.children.find(e=>e.oddOrEven===`any`&&e.pagePosition===r),i)||(i=this.pageArea.children.find(e=>e.oddOrEven===`any`&&e.pagePosition===`any`),i)?i:this.pageArea.children[0]}},Zm=class extends Y{constructor(e){super(Z,`para`,!0),this.hAlign=K(e.hAlign,[`left`,`center`,`justify`,`justifyAll`,`radix`,`right`]),this.id=e.id||``,this.lineHeight=e.lineHeight?q(e.lineHeight,`0pt`):``,this.marginLeft=e.marginLeft?q(e.marginLeft,`0pt`):``,this.marginRight=e.marginRight?q(e.marginRight,`0pt`):``,this.orphans=Kd({data:e.orphans,defaultValue:0,validate:e=>e>=0}),this.preserve=e.preserve||``,this.radixOffset=e.radixOffset?q(e.radixOffset,`0pt`):``,this.spaceAbove=e.spaceAbove?q(e.spaceAbove,`0pt`):``,this.spaceBelow=e.spaceBelow?q(e.spaceBelow,`0pt`):``,this.tabDefault=e.tabDefault?q(this.tabDefault):``,this.tabStops=(e.tabStops||``).trim().split(/\\s+/).map((e,t)=>t%2==1?q(e):e),this.textIndent=e.textIndent?q(e.textIndent,`0pt`):``,this.use=e.use||``,this.usehref=e.usehref||``,this.vAlign=K(e.vAlign,[`top`,`bottom`,`middle`]),this.widows=Kd({data:e.widows,defaultValue:0,validate:e=>e>=0}),this.hyphenation=null}[zd](){let e=Xf(this,`hAlign`);return this.marginLeft!==``&&(e.paddingLeft=Hf(this.marginLeft)),this.marginRight!==``&&(e.paddingRight=Hf(this.marginRight)),this.spaceAbove!==``&&(e.paddingTop=Hf(this.spaceAbove)),this.spaceBelow!==``&&(e.paddingBottom=Hf(this.spaceBelow)),this.textIndent!==``&&(e.textIndent=Hf(this.textIndent),Qf(e)),this.lineHeight>0&&(e.lineHeight=Hf(this.lineHeight)),this.tabDefault!==``&&(e.tabSize=Hf(this.tabDefault)),this.tabStops.length,this.hyphenatation&&Object.assign(e,this.hyphenatation[zd]()),e}},Qm=class extends Y{constructor(e){super(Z,`passwordEdit`,!0),this.hScrollPolicy=K(e.hScrollPolicy,[`auto`,`off`,`on`]),this.id=e.id||``,this.passwordChar=e.passwordChar||`*`,this.use=e.use||``,this.usehref=e.usehref||``,this.border=null,this.extras=null,this.margin=null}},$m=class extends Y{constructor(e){super(Z,`pattern`,!0),this.id=e.id||``,this.type=K(e.type,[`crossHatch`,`crossDiagonal`,`diagonalLeft`,`diagonalRight`,`horizontal`,`vertical`]),this.use=e.use||``,this.usehref=e.usehref||``,this.color=null,this.extras=null}[zd](e){e=e?e[zd]():`#FFFFFF`;let t=this.color?this.color[zd]():`#000000`,n=`repeating-linear-gradient`,r=`${e},${e} 5px,${t} 5px,${t} 10px`;switch(this.type){case`crossHatch`:return`${n}(to top,${r}) ${n}(to right,${r})`;case`crossDiagonal`:return`${n}(45deg,${r}) ${n}(-45deg,${r})`;case`diagonalLeft`:return`${n}(45deg,${r})`;case`diagonalRight`:return`${n}(-45deg,${r})`;case`horizontal`:return`${n}(to top,${r})`;case`vertical`:return`${n}(to right,${r})`}return``}},eh=class extends Rf{constructor(e){super(Z,`picture`),this.id=e.id||``,this.use=e.use||``,this.usehref=e.usehref||``}},th=class extends Y{constructor(e){super(Z,`proto`,!0),this.appearanceFilter=new X,this.arc=new X,this.area=new X,this.assist=new X,this.barcode=new X,this.bindItems=new X,this.bookend=new X,this.boolean=new X,this.border=new X,this.break=new X,this.breakAfter=new X,this.breakBefore=new X,this.button=new X,this.calculate=new X,this.caption=new X,this.certificate=new X,this.certificates=new X,this.checkButton=new X,this.choiceList=new X,this.color=new X,this.comb=new X,this.connect=new X,this.contentArea=new X,this.corner=new X,this.date=new X,this.dateTime=new X,this.dateTimeEdit=new X,this.decimal=new X,this.defaultUi=new X,this.desc=new X,this.digestMethod=new X,this.digestMethods=new X,this.draw=new X,this.edge=new X,this.encoding=new X,this.encodings=new X,this.encrypt=new X,this.encryptData=new X,this.encryption=new X,this.encryptionMethod=new X,this.encryptionMethods=new X,this.event=new X,this.exData=new X,this.exObject=new X,this.exclGroup=new X,this.execute=new X,this.extras=new X,this.field=new X,this.fill=new X,this.filter=new X,this.float=new X,this.font=new X,this.format=new X,this.handler=new X,this.hyphenation=new X,this.image=new X,this.imageEdit=new X,this.integer=new X,this.issuers=new X,this.items=new X,this.keep=new X,this.keyUsage=new X,this.line=new X,this.linear=new X,this.lockDocument=new X,this.manifest=new X,this.margin=new X,this.mdp=new X,this.medium=new X,this.message=new X,this.numericEdit=new X,this.occur=new X,this.oid=new X,this.oids=new X,this.overflow=new X,this.pageArea=new X,this.pageSet=new X,this.para=new X,this.passwordEdit=new X,this.pattern=new X,this.picture=new X,this.radial=new X,this.reason=new X,this.reasons=new X,this.rectangle=new X,this.ref=new X,this.script=new X,this.setProperty=new X,this.signData=new X,this.signature=new X,this.signing=new X,this.solid=new X,this.speak=new X,this.stipple=new X,this.subform=new X,this.subformSet=new X,this.subjectDN=new X,this.subjectDNs=new X,this.submit=new X,this.text=new X,this.textEdit=new X,this.time=new X,this.timeStamp=new X,this.toolTip=new X,this.traversal=new X,this.traverse=new X,this.ui=new X,this.validate=new X,this.value=new X,this.variables=new X}},nh=class extends Y{constructor(e){super(Z,`radial`,!0),this.id=e.id||``,this.type=K(e.type,[`toEdge`,`toCenter`]),this.use=e.use||``,this.usehref=e.usehref||``,this.color=null,this.extras=null}[zd](e){e=e?e[zd]():`#FFFFFF`;let t=this.color?this.color[zd]():`#000000`;return`radial-gradient(circle at center, ${this.type===`toEdge`?`${e},${t}`:`${t},${e}`})`}},rh=class extends Rf{constructor(e){super(Z,`reason`),this.id=e.id||``,this.name=e.name||``,this.use=e.use||``,this.usehref=e.usehref||``}},ih=class extends Y{constructor(e){super(Z,`reasons`,!0),this.id=e.id||``,this.type=K(e.type,[`optional`,`required`]),this.use=e.use||``,this.usehref=e.usehref||``,this.reason=new X}},ah=class extends Y{constructor(e){super(Z,`rectangle`,!0),this.hand=K(e.hand,[`even`,`left`,`right`]),this.id=e.id||``,this.use=e.use||``,this.usehref=e.usehref||``,this.corner=new X(4),this.edge=new X(4),this.fill=null}[G](){let e=this.edge.children.length?this.edge.children[0]:new sm({}),t=e[zd](),n=Object.create(null);this.fill?.presence===`visible`?Object.assign(n,this.fill[zd]()):n.fill=`transparent`,n.strokeWidth=Hf(e.presence===`visible`?e.thickness:0),n.stroke=t.color;let r=(this.corner.children.length?this.corner.children[0]:new Zp({}))[zd](),i={name:`svg`,children:[{name:`rect`,attributes:{xmlns:u,width:`100%`,height:`100%`,x:0,y:0,rx:r.radius,ry:r.radius,style:n}}],attributes:{xmlns:u,style:{overflow:`visible`},width:`100%`,height:`100%`}};return hp(this[nd]()[nd]())?J.success({name:`div`,attributes:{style:{display:`inline`,width:`100%`,height:`100%`}},children:[i]}):(i.attributes.style.position=`absolute`,J.success(i))}},oh=class extends Rf{constructor(e){super(Z,`ref`),this.id=e.id||``,this.use=e.use||``,this.usehref=e.usehref||``}},sh=class extends Rf{constructor(e){super(Z,`script`),this.binding=e.binding||``,this.contentType=e.contentType||``,this.id=e.id||``,this.name=e.name||``,this.runAt=K(e.runAt,[`client`,`both`,`server`]),this.use=e.use||``,this.usehref=e.usehref||``}},ch=class extends Y{constructor(e){super(Z,`setProperty`),this.connection=e.connection||``,this.ref=e.ref||``,this.target=e.target||``}},lh=class extends Y{constructor(e){super(Z,`signData`,!0),this.id=e.id||``,this.operation=K(e.operation,[`sign`,`clear`,`verify`]),this.ref=e.ref||``,this.target=e.target||``,this.use=e.use||``,this.usehref=e.usehref||``,this.filter=null,this.manifest=null}},uh=class extends Y{constructor(e){super(Z,`signature`,!0),this.id=e.id||``,this.type=K(e.type,[`PDF1.3`,`PDF1.6`]),this.use=e.use||``,this.usehref=e.usehref||``,this.border=null,this.extras=null,this.filter=null,this.manifest=null,this.margin=null}},dh=class extends Y{constructor(e){super(Z,`signing`,!0),this.id=e.id||``,this.type=K(e.type,[`optional`,`required`]),this.use=e.use||``,this.usehref=e.usehref||``,this.certificate=new X}},fh=class extends Y{constructor(e){super(Z,`solid`,!0),this.id=e.id||``,this.use=e.use||``,this.usehref=e.usehref||``,this.extras=null}[zd](e){return e?e[zd]():`#FFFFFF`}},ph=class extends Rf{constructor(e){super(Z,`speak`),this.disable=Kd({data:e.disable,defaultValue:0,validate:e=>e===1}),this.id=e.id||``,this.priority=K(e.priority,[`custom`,`caption`,`name`,`toolTip`]),this.rid=e.rid||``,this.use=e.use||``,this.usehref=e.usehref||``}},mh=class extends Y{constructor(e){super(Z,`stipple`,!0),this.id=e.id||``,this.rate=Kd({data:e.rate,defaultValue:50,validate:e=>e>=0&&e<=100}),this.use=e.use||``,this.usehref=e.usehref||``,this.color=null,this.extras=null}[zd](e){let t=this.rate/100;return ge.makeHexColor(Math.round(e.value.r*(1-t)+this.value.r*t),Math.round(e.value.g*(1-t)+this.value.g*t),Math.round(e.value.b*(1-t)+this.value.b*t))}},hh=class extends Y{constructor(e){super(Z,`subform`,!0),this.access=K(e.access,[`open`,`nonInteractive`,`protected`,`readOnly`]),this.allowMacro=Kd({data:e.allowMacro,defaultValue:0,validate:e=>e===1}),this.anchorType=K(e.anchorType,[`topLeft`,`bottomCenter`,`bottomLeft`,`bottomRight`,`middleCenter`,`middleLeft`,`middleRight`,`topCenter`,`topRight`]),this.colSpan=Kd({data:e.colSpan,defaultValue:1,validate:e=>e>=1||e===-1}),this.columnWidths=(e.columnWidths||``).trim().split(/\\s+/).map(e=>e===`-1`?-1:q(e)),this.h=e.h?q(e.h):``,this.hAlign=K(e.hAlign,[`left`,`center`,`justify`,`justifyAll`,`radix`,`right`]),this.id=e.id||``,this.layout=K(e.layout,[`position`,`lr-tb`,`rl-row`,`rl-tb`,`row`,`table`,`tb`]),this.locale=e.locale||``,this.maxH=q(e.maxH,`0pt`),this.maxW=q(e.maxW,`0pt`),this.mergeMode=K(e.mergeMode,[`consumeData`,`matchTemplate`]),this.minH=q(e.minH,`0pt`),this.minW=q(e.minW,`0pt`),this.name=e.name||``,this.presence=K(e.presence,[`visible`,`hidden`,`inactive`,`invisible`]),this.relevant=Xd(e.relevant),this.restoreState=K(e.restoreState,[`manual`,`auto`]),this.scope=K(e.scope,[`name`,`none`]),this.use=e.use||``,this.usehref=e.usehref||``,this.w=e.w?q(e.w):``,this.x=q(e.x,`0pt`),this.y=q(e.y,`0pt`),this.assist=null,this.bind=null,this.bookend=null,this.border=null,this.break=null,this.calculate=null,this.desc=null,this.extras=null,this.keep=null,this.margin=null,this.occur=null,this.overflow=null,this.pageSet=null,this.para=null,this.traversal=null,this.validate=null,this.variables=null,this.area=new X,this.breakAfter=new X,this.breakBefore=new X,this.connect=new X,this.draw=new X,this.event=new X,this.exObject=new X,this.exclGroup=new X,this.field=new X,this.proto=new X,this.setProperty=new X,this.subform=new X,this.subformSet=new X}[td](){let e=this[nd]();return e instanceof gh?e[td]():e}[ud](){return!0}[hd](){return this.layout.endsWith(`-tb`)&&this[W].attempt===0&&this[W].numberInLine>0||this[nd]()[hd]()}*[$u](){yield*_p(this)}[Hu](){return op(this)}[ju](e,t){sp(this,e,t)}[Gu](){return cp(this)}[md](){let e=this[td]();return e[md]()?this[W]._isSplittable===void 0?this.layout===`position`||this.layout.includes(`row`)||this.keep&&this.keep.intact!==`none`?(this[W]._isSplittable=!1,!1):e.layout?.endsWith(`-tb`)&&e[W].numberInLine!==0?!1:(this[W]._isSplittable=!0,!0):this[W]._isSplittable:!1}[G](e){if(yp(this),this.break){if(this.break.after!==`auto`||this.break.afterTarget!==``){let e=new Rp({targetType:this.break.after,target:this.break.afterTarget,startNew:this.break.startNew.toString()});e[id]=this[id],this[Mu](e),this.breakAfter.push(e)}if(this.break.before!==`auto`||this.break.beforeTarget!==``){let e=new zp({targetType:this.break.before,target:this.break.beforeTarget,startNew:this.break.startNew.toString()});e[id]=this[id],this[Mu](e),this.breakBefore.push(e)}if(this.break.overflowTarget!==``){let e=new Jm({target:this.break.overflowTarget,leader:this.break.overflowLeader,trailer:this.break.overflowTrailer});e[id]=this[id],this[Mu](e),this.overflow.push(e)}this[Od](this.break),this.break=null}if(this.presence===`hidden`||this.presence===`inactive`)return J.EMPTY;if((this.breakBefore.children.length>1||this.breakAfter.children.length>1)&&j(`XFA - Several breakBefore or breakAfter in subforms: please file a bug.`),this.breakBefore.children.length>=1){let e=this.breakBefore.children[0];if(Tp(e))return J.breakNode(e)}if(this[W]?.afterBreakAfter)return J.EMPTY;Jf(this);let t=[],n={id:this[Bd],class:[]};$f(this,n.class),this[W]||=Object.create(null),Object.assign(this[W],{children:t,line:null,attributes:n,attempt:0,numberInLine:0,availableSpace:{width:Math.min(this.w||1/0,e.width),height:Math.min(this.h||1/0,e.height)},width:0,height:0,prevHeight:0,currentWidth:0});let r=this[rd](),i=r[W].noLayoutFailure,a=this[md]();if(a||Cp(this),!up(this,e))return J.FAILURE;let o=new Set([`area`,`draw`,`exclGroup`,`field`,`subform`,`subformSet`]);if(this.layout.includes(`row`)){let e=this[td]().columnWidths;Array.isArray(e)&&e.length>0&&(this[W].columnWidths=e,this[W].currentColumn=0)}let s=Xf(this,`anchorType`,`dimensions`,`position`,`presence`,`border`,`margin`,`hAlign`),c=[`xfaSubform`],l=Yf(this);if(l&&c.push(l),n.style=s,n.class=c,this.name&&(n.xfaName=this.name),this.overflow){let t=this.overflow[Xu]();t.addLeader&&(t.addLeader=!1,Ep(this,t.leader,e))}this[Dd]();let u=this.layout===`lr-tb`||this.layout===`rl-tb`,d=u?2:1;for(;this[W].attempt<d;this[W].attempt++){u&&this[W].attempt===1&&(this[W].numberInLine=0);let e=this[Nu]({filter:o,include:!0});if(e.success)break;if(e.isBreak())return this[Ed](),e;if(u&&this[W].attempt===0&&this[W].numberInLine===0&&!r[W].noLayoutFailure){this[W].attempt=d;break}}if(this[Ed](),a||wp(this),r[W].noLayoutFailure=i,this[W].attempt===d)return this.overflow&&(this[rd]()[W].overflowNode=this.overflow),a||delete this[W],J.FAILURE;if(this.overflow){let t=this.overflow[Xu]();t.addTrailer&&(t.addTrailer=!1,Ep(this,t.trailer,e))}let f=0,p=0;this.margin&&(f=this.margin.leftInset+this.margin.rightInset,p=this.margin.topInset+this.margin.bottomInset);let m=Math.max(this[W].width+f,this.w||0),h=Math.max(this[W].height+p,this.h||0),g=[this.x,this.y,m,h];if(this.w===``&&(s.width=Hf(m)),this.h===``&&(s.height=Hf(h)),(s.width===`0px`||s.height===`0px`)&&t.length===0)return J.EMPTY;let _={name:`div`,attributes:n,children:t};bp(this,n);let v=J.success(Zf(this,_),g);if(this.breakAfter.children.length>=1){let e=this.breakAfter.children[0];if(Tp(e))return this[W].afterBreakAfter=v,J.breakNode(e)}return delete this[W],v}},gh=class extends Y{constructor(e){super(Z,`subformSet`,!0),this.id=e.id||``,this.name=e.name||``,this.relation=K(e.relation,[`ordered`,`choice`,`unordered`]),this.relevant=Xd(e.relevant),this.use=e.use||``,this.usehref=e.usehref||``,this.bookend=null,this.break=null,this.desc=null,this.extras=null,this.occur=null,this.overflow=null,this.breakAfter=new X,this.breakBefore=new X,this.subform=new X,this.subformSet=new X}*[$u](){yield*_p(this)}[td](){let e=this[nd]();for(;!(e instanceof hh);)e=e[nd]();return e}[ud](){return!0}},_h=class extends If{constructor(e){super(Z,`subjectDN`),this.delimiter=e.delimiter||`,`,this.id=e.id||``,this.name=e.name||``,this.use=e.use||``,this.usehref=e.usehref||``}[Vu](){this[U]=new Map(this[U].split(this.delimiter).map(e=>(e=e.split(`=`,2),e[0]=e[0].trim(),e)))}},vh=class extends Y{constructor(e){super(Z,`subjectDNs`,!0),this.id=e.id||``,this.type=K(e.type,[`optional`,`required`]),this.use=e.use||``,this.usehref=e.usehref||``,this.subjectDN=new X}},yh=class extends Y{constructor(e){super(Z,`submit`,!0),this.embedPDF=Kd({data:e.embedPDF,defaultValue:0,validate:e=>e===1}),this.format=K(e.format,[`xdp`,`formdata`,`pdf`,`urlencoded`,`xfd`,`xml`]),this.id=e.id||``,this.target=e.target||``,this.textEncoding=Jd({data:e.textEncoding?e.textEncoding.toLowerCase():``,defaultValue:``,validate:e=>[`utf-8`,`big-five`,`fontspecific`,`gbk`,`gb-18030`,`gb-2312`,`ksc-5601`,`none`,`shift-jis`,`ucs-2`,`utf-16`].includes(e)||e.match(/iso-8859-\\d{2}/)}),this.use=e.use||``,this.usehref=e.usehref||``,this.xdpContent=e.xdpContent||``,this.encrypt=null,this.encryptData=new X,this.signData=new X}},bh=class extends Y{constructor(e){super(Z,`template`,!0),this.baseProfile=K(e.baseProfile,[`full`,`interactiveForms`]),this.extras=null,this.subform=new X}[Vu](){this.subform.children.length===0&&j(`XFA - No subforms in template node.`),this.subform.children.length>=2&&j(`XFA - Several subforms in template node: please file a bug.`),this[Fd]=5e3}[md](){return!0}[jd](e,t){return e.startsWith(`#`)?[this[od].get(e.slice(1))]:pf(this,t,e,!0,!0)}*[Ld](){if(!this.subform.children.length)return J.success({name:`div`,children:[]});this[W]={overflowNode:null,firstUnsplittable:null,currentContentArea:null,currentPageArea:null,noLayoutFailure:!1,pageNumber:1,pagePosition:`first`,oddOrEven:`odd`,blankOrNotBlank:`nonBlank`,paraStack:[]};let e=this.subform.children[0];e.pageSet[Fu]();let t=e.pageSet.pageArea.children,n={name:`div`,children:[]},r=null,i=null,a=null;if(e.breakBefore.children.length>=1?(i=e.breakBefore.children[0],a=i.target):e.subform.children.length>=1&&e.subform.children[0].breakBefore.children.length>=1?(i=e.subform.children[0].breakBefore.children[0],a=i.target):e.break?.beforeTarget?(i=e.break,a=i.beforeTarget):e.subform.children.length>=1&&e.subform.children[0].break?.beforeTarget&&(i=e.subform.children[0].break,a=i.beforeTarget),i){let e=this[jd](a,i[nd]());e instanceof Ym&&(r=e,i[W]={})}r||=t[0],r[W]={numberOfUse:1};let o=r[nd]();o[W]={numberOfUse:1,pageIndex:o.pageArea.children.indexOf(r),pageSetIndex:0};let s,c=null,l=null,u=!0,d=0,f=0;for(;;){if(u)d=0;else if(n.children.pop(),++d===3)return j(`XFA - Something goes wrong: please file a bug.`),n;s=null,this[W].currentPageArea=r;let t=r[G]().html;n.children.push(t),c&&=(this[W].noLayoutFailure=!0,t.children.push(c[G](r[W].space).html),null),l&&=(this[W].noLayoutFailure=!0,t.children.push(l[G](r[W].space).html),null);let i=r.contentArea.children,a=t.children.filter(e=>e.attributes.class.includes(`xfaContentarea`));u=!1,this[W].firstUnsplittable=null,this[W].noLayoutFailure=!1;let o=t=>{let n=e[Hu]();n&&(u||=n.children?.length>0,a[t].children.push(n))};for(let t=f,r=i.length;t<r;t++){let r=this[W].currentContentArea=i[t],d={width:r.w,height:r.h};f=0,c&&=(a[t].children.push(c[G](d).html),null),l&&=(a[t].children.push(l[G](d).html),null);let p=e[G](d);if(p.success)return p.html?(u||=p.html.children?.length>0,a[t].children.push(p.html)):!u&&n.children.length>1&&n.children.pop(),n;if(p.isBreak()){let e=p.breakNode;if(o(t),e.targetType===`auto`)continue;e.leader&&(c=this[jd](e.leader,e[nd]()),c=c?c[0]:null),e.trailer&&(l=this[jd](e.trailer,e[nd]()),l=l?l[0]:null),e.targetType===`pageArea`?(s=e[W].target,t=1/0):e[W].target?(s=e[W].target,f=e[W].index+1,t=1/0):t=e[W].index;continue}if(this[W].overflowNode){let e=this[W].overflowNode;this[W].overflowNode=null;let n=e[Xu](),r=n.target;n.addLeader=n.leader!==null,n.addTrailer=n.trailer!==null,o(t);let a=t;if(t=1/0,r instanceof Ym)s=r;else if(r instanceof Xp){let e=i.indexOf(r);e===-1?(s=r[nd](),f=s.contentArea.children.indexOf(r)):e>a?t=e-1:f=e}continue}o(t)}this[W].pageNumber+=1,s&&(s[_d]()?s[W].numberOfUse+=1:s=null),r=s||r[ed](),yield null}}},xh=class extends If{constructor(e){super(Z,`text`),this.id=e.id||``,this.maxChars=Kd({data:e.maxChars,defaultValue:0,validate:e=>e>=0}),this.name=e.name||``,this.rid=e.rid||``,this.use=e.use||``,this.usehref=e.usehref||``}[Au](){return!0}[Sd](e){return e[yd]===Hd.xhtml.id?(this[U]=e,!0):(j(`XFA - Invalid content in Text: ${e[bd]}.`),!1)}[wd](e){this[U]instanceof Y||super[wd](e)}[Vu](){typeof this[U]==`string`&&(this[U]=this[U].replaceAll(`\\r\n`,`\n`))}[Xu](){return typeof this[U]==`string`?this[U].split(/[\\u2029\\u2028\\n]/).filter(e=>!!e).join(`\n`):this[U][Id]()}[G](e){if(typeof this[U]==`string`){let e=Sp(this[U]).html;return this[U].includes(`\\u2029`)?(e.name=`div`,e.children=[],this[U].split(`\\u2029`).map(e=>e.split(/[\\u2028\\n]/).flatMap(e=>[{name:`span`,value:e},{name:`br`}])).forEach(t=>{e.children.push({name:`p`,children:t})})):/[\\u2028\\n]/.test(this[U])&&(e.name=`div`,e.children=[],this[U].split(/[\\u2028\\n]/).forEach(t=>{e.children.push({name:`span`,value:t},{name:`br`})})),J.success(e)}return this[U][G](e)}},Sh=class extends Y{constructor(e){super(Z,`textEdit`,!0),this.allowRichText=Kd({data:e.allowRichText,defaultValue:0,validate:e=>e===1}),this.hScrollPolicy=K(e.hScrollPolicy,[`auto`,`off`,`on`]),this.id=e.id||``,this.multiLine=Kd({data:e.multiLine,defaultValue:``,validate:e=>e===0||e===1}),this.use=e.use||``,this.usehref=e.usehref||``,this.vScrollPolicy=K(e.vScrollPolicy,[`auto`,`off`,`on`]),this.border=null,this.comb=null,this.extras=null,this.margin=null}[G](e){let t=Xf(this,`border`,`font`,`margin`),n,r=this[nd]()[nd]();return this.multiLine===``&&(this.multiLine=+(r instanceof om)),n=this.multiLine===1?{name:`textarea`,attributes:{dataId:r[zu]?.[Bd]||r[Bd],fieldId:r[Bd],class:[`xfaTextfield`],style:t,"aria-label":xp(r),"aria-required":!1}}:{name:`input`,attributes:{type:`text`,dataId:r[zu]?.[Bd]||r[Bd],fieldId:r[Bd],class:[`xfaTextfield`],style:t,"aria-label":xp(r),"aria-required":!1}},vp(r)&&(n.attributes[`aria-required`]=!0,n.attributes.required=!0),J.success({name:`label`,attributes:{class:[`xfaLabel`]},children:[n]})}},Ch=class extends Rf{constructor(e){super(Z,`time`),this.id=e.id||``,this.name=e.name||``,this.use=e.use||``,this.usehref=e.usehref||``}[Vu](){let e=this[U].trim();this[U]=e?new Date(e):null}[G](e){return Sp(this[U]?this[U].toString():``)}},wh=class extends Y{constructor(e){super(Z,`timeStamp`),this.id=e.id||``,this.server=e.server||``,this.type=K(e.type,[`optional`,`required`]),this.use=e.use||``,this.usehref=e.usehref||``}},Th=class extends Rf{constructor(e){super(Z,`toolTip`),this.id=e.id||``,this.rid=e.rid||``,this.use=e.use||``,this.usehref=e.usehref||``}},Eh=class extends Y{constructor(e){super(Z,`traversal`,!0),this.id=e.id||``,this.use=e.use||``,this.usehref=e.usehref||``,this.extras=null,this.traverse=new X}},Dh=class extends Y{constructor(e){super(Z,`traverse`,!0),this.id=e.id||``,this.operation=K(e.operation,[`next`,`back`,`down`,`first`,`left`,`right`,`up`]),this.ref=e.ref||``,this.use=e.use||``,this.usehref=e.usehref||``,this.extras=null,this.script=null}get name(){return this.operation}[gd](){return!1}},Oh=class extends Y{constructor(e){super(Z,`ui`,!0),this.id=e.id||``,this.use=e.use||``,this.usehref=e.usehref||``,this.extras=null,this.picture=null,this.barcode=null,this.button=null,this.checkButton=null,this.choiceList=null,this.dateTimeEdit=null,this.defaultUi=null,this.imageEdit=null,this.numericEdit=null,this.passwordEdit=null,this.signature=null,this.textEdit=null}[Xu](){if(this[W]===void 0){for(let e of Object.getOwnPropertyNames(this)){if(e===`extras`||e===`picture`)continue;let t=this[e];if(t instanceof Y)return this[W]=t,t}this[W]=null}return this[W]}[G](e){let t=this[Xu]();return t?t[G](e):J.EMPTY}},kh=class extends Y{constructor(e){super(Z,`validate`,!0),this.formatTest=K(e.formatTest,[`warning`,`disabled`,`error`]),this.id=e.id||``,this.nullTest=K(e.nullTest,[`disabled`,`error`,`warning`]),this.scriptTest=K(e.scriptTest,[`error`,`disabled`,`warning`]),this.use=e.use||``,this.usehref=e.usehref||``,this.extras=null,this.message=null,this.picture=null,this.script=null}},Ah=class extends Y{constructor(e){super(Z,`value`,!0),this.id=e.id||``,this.override=Kd({data:e.override,defaultValue:0,validate:e=>e===1}),this.relevant=Xd(e.relevant),this.use=e.use||``,this.usehref=e.usehref||``,this.arc=null,this.boolean=null,this.date=null,this.dateTime=null,this.decimal=null,this.exData=null,this.float=null,this.image=null,this.integer=null,this.line=null,this.rectangle=null,this.text=null,this.time=null}[Pd](e){let t=this[nd]();if(t instanceof xm&&t.ui?.imageEdit){this.image||(this.image=new km({}),this[Mu](this.image)),this.image[U]=e[U];return}let n=e[bd];if(this[n]!==null){this[n][U]=e[U];return}for(let e of Object.getOwnPropertyNames(this)){let t=this[e];t instanceof Y&&(this[e]=null,this[Od](t))}this[e[bd]]=e,this[Mu](e)}[Id](){if(this.exData)return typeof this.exData[U]==`string`?this.exData[U].trim():this.exData[U][Id]().trim();for(let e of Object.getOwnPropertyNames(this)){if(e===`image`)continue;let t=this[e];if(t instanceof Y)return(t[U]||``).toString().trim()}return null}[G](e){for(let t of Object.getOwnPropertyNames(this)){let n=this[t];if(n instanceof Y)return n[G](e)}return J.EMPTY}},jh=class extends Y{constructor(e){super(Z,`variables`,!0),this.id=e.id||``,this.use=e.use||``,this.usehref=e.usehref||``,this.boolean=new X,this.date=new X,this.dateTime=new X,this.decimal=new X,this.exData=new X,this.float=new X,this.image=new X,this.integer=new X,this.manifest=new X,this.script=new X,this.text=new X,this.time=new X}[gd](){return!0}},Mh=class e{static[Vd](t,n){if(Object.hasOwn(e,t)){let r=e[t](n);return r[Nd](n),r}}static appearanceFilter(e){return new Dp(e)}static arc(e){return new Op(e)}static area(e){return new kp(e)}static assist(e){return new Ap(e)}static barcode(e){return new jp(e)}static bind(e){return new Mp(e)}static bindItems(e){return new Np(e)}static bookend(e){return new Pp(e)}static boolean(e){return new Fp(e)}static border(e){return new Ip(e)}static break(e){return new Lp(e)}static breakAfter(e){return new Rp(e)}static breakBefore(e){return new zp(e)}static button(e){return new Bp(e)}static calculate(e){return new Vp(e)}static caption(e){return new Hp(e)}static certificate(e){return new Up(e)}static certificates(e){return new Wp(e)}static checkButton(e){return new Gp(e)}static choiceList(e){return new Kp(e)}static color(e){return new qp(e)}static comb(e){return new Jp(e)}static connect(e){return new Yp(e)}static contentArea(e){return new Xp(e)}static corner(e){return new Zp(e)}static date(e){return new Qp(e)}static dateTime(e){return new $p(e)}static dateTimeEdit(e){return new em(e)}static decimal(e){return new tm(e)}static defaultUi(e){return new nm(e)}static desc(e){return new rm(e)}static digestMethod(e){return new im(e)}static digestMethods(e){return new am(e)}static draw(e){return new om(e)}static edge(e){return new sm(e)}static encoding(e){return new cm(e)}static encodings(e){return new lm(e)}static encrypt(e){return new um(e)}static encryptData(e){return new dm(e)}static encryption(e){return new fm(e)}static encryptionMethod(e){return new pm(e)}static encryptionMethods(e){return new mm(e)}static event(e){return new hm(e)}static exData(e){return new gm(e)}static exObject(e){return new _m(e)}static exclGroup(e){return new vm(e)}static execute(e){return new ym(e)}static extras(e){return new bm(e)}static field(e){return new xm(e)}static fill(e){return new Sm(e)}static filter(e){return new Cm(e)}static float(e){return new wm(e)}static font(e){return new Tm(e)}static format(e){return new Em(e)}static handler(e){return new Dm(e)}static hyphenation(e){return new Om(e)}static image(e){return new km(e)}static imageEdit(e){return new Am(e)}static integer(e){return new jm(e)}static issuers(e){return new Mm(e)}static items(e){return new Nm(e)}static keep(e){return new Pm(e)}static keyUsage(e){return new Fm(e)}static line(e){return new Im(e)}static linear(e){return new Lm(e)}static lockDocument(e){return new Rm(e)}static manifest(e){return new zm(e)}static margin(e){return new Bm(e)}static mdp(e){return new Vm(e)}static medium(e){return new Hm(e)}static message(e){return new Um(e)}static numericEdit(e){return new Wm(e)}static occur(e){return new Gm(e)}static oid(e){return new Km(e)}static oids(e){return new qm(e)}static overflow(e){return new Jm(e)}static pageArea(e){return new Ym(e)}static pageSet(e){return new Xm(e)}static para(e){return new Zm(e)}static passwordEdit(e){return new Qm(e)}static pattern(e){return new $m(e)}static picture(e){return new eh(e)}static proto(e){return new th(e)}static radial(e){return new nh(e)}static reason(e){return new rh(e)}static reasons(e){return new ih(e)}static rectangle(e){return new ah(e)}static ref(e){return new oh(e)}static script(e){return new sh(e)}static setProperty(e){return new ch(e)}static signData(e){return new lh(e)}static signature(e){return new uh(e)}static signing(e){return new dh(e)}static solid(e){return new fh(e)}static speak(e){return new ph(e)}static stipple(e){return new mh(e)}static subform(e){return new hh(e)}static subformSet(e){return new gh(e)}static subjectDN(e){return new _h(e)}static subjectDNs(e){return new vh(e)}static submit(e){return new yh(e)}static template(e){return new bh(e)}static text(e){return new xh(e)}static textEdit(e){return new Sh(e)}static time(e){return new Ch(e)}static timeStamp(e){return new wh(e)}static toolTip(e){return new Th(e)}static traversal(e){return new Eh(e)}static traverse(e){return new Dh(e)}static ui(e){return new Oh(e)}static validate(e){return new kh(e)}static value(e){return new Ah(e)}static variables(e){return new jh(e)}};let Nh=Hd.datasets.id;function Ph(e){let t=new xh({});return t[U]=e,t}var Fh=class{constructor(e){this.root=e,this.datasets=e.datasets,this.data=e.datasets?.data||new Ff(Hd.datasets.id,`data`),this.emptyMerge=this.data[Qu]().length===0,this.root.form=this.form=e.template[Lu]()}_isConsumeData(){return!this.emptyMerge&&this._mergeMode}_isMatchTemplate(){return!this._isConsumeData()}bind(){return this._bindElement(this.form,this.data),this.form}getData(){return this.data}_bindValue(e,t,n){if(e[zu]=t,e[ad]())if(t[dd]()){let n=t[Yu]();e[Pd](Ph(n))}else if(e instanceof xm&&e.ui?.choiceList?.open===`multiSelect`){let n=t[Qu]().map(e=>e[U].trim()).join(`\n`);e[Pd](Ph(n))}else this._isConsumeData()&&j(`XFA - Nodes haven\'t the same type.`);else !t[dd]()||this._isMatchTemplate()?this._bindElement(e,t):j(`XFA - Nodes haven\'t the same type.`)}_findDataByNameToConsume(e,t,n,r){if(!e)return null;let i,a;for(let r=0;r<3;r++){for(i=n[Zu](e,!1,!0);a=i.next().value,a;)if(t===a[dd]())return a;if(n[yd]===Hd.datasets.id&&n[bd]===`data`)break;n=n[nd]()}return r?(i=this.data[Zu](e,!0,!1),a=i.next().value,a||(i=this.data[Uu](e,!0),a=i.next().value,a?.[dd]())?a:null):null}_setProperties(e,t){if(Object.hasOwn(e,`setProperty`))for(let{ref:n,target:r,connection:i}of e.setProperty.children){if(i||!n)continue;let a=pf(this.root,t,n,!1,!1);if(!a){j(`XFA - Invalid reference: ${n}.`);continue}let[o]=a;if(!o[fd](this.data)){j(`XFA - Invalid node: must be a data node.`);continue}let s=pf(this.root,e,r,!1,!1);if(!s){j(`XFA - Invalid target: ${r}.`);continue}let[c]=s;if(!c[fd](e)){j(`XFA - Invalid target: must be a property or subproperty.`);continue}let l=c[nd]();if(c instanceof ch||l instanceof ch){j(`XFA - Invalid target: cannot be a setProperty or one of its properties.`);continue}if(c instanceof Np||l instanceof Np){j(`XFA - Invalid target: cannot be a bindItems or one of its properties.`);continue}let u=o[Id](),d=c[bd];if(c instanceof Pf){let e=Object.create(null);e[d]=u,l[d]=Reflect.construct(Object.getPrototypeOf(l).constructor,[e])[d];continue}if(!Object.hasOwn(c,U)){j(`XFA - Invalid node to use in setProperty`);continue}c[zu]=o,c[U]=u,c[Vu]()}}_bindItems(e,t){if(!Object.hasOwn(e,`items`)||!Object.hasOwn(e,`bindItems`)||e.bindItems.isEmpty())return;for(let t of e.items.children)e[Od](t);e.items.clear();let n=new Nm({}),r=new Nm({});e[Mu](n),e.items.push(n),e[Mu](r),e.items.push(r);for(let{ref:i,labelRef:a,valueRef:o,connection:s}of e.bindItems.children){if(s||!i)continue;let e=pf(this.root,t,i,!1,!1);if(!e){j(`XFA - Invalid reference: ${i}.`);continue}for(let t of e){if(!t[fd](this.datasets)){j(`XFA - Invalid ref (${i}): must be a datasets child.`);continue}let e=pf(this.root,t,a,!0,!1);if(!e){j(`XFA - Invalid label: ${a}.`);continue}let[s]=e;if(!s[fd](this.datasets)){j(`XFA - Invalid label: must be a datasets child.`);continue}let c=pf(this.root,t,o,!0,!1);if(!c){j(`XFA - Invalid value: ${o}.`);continue}let[l]=c;if(!l[fd](this.datasets)){j(`XFA - Invalid value: must be a datasets child.`);continue}let u=Ph(s[Id]()),d=Ph(l[Id]());n[Mu](u),n.text.push(u),r[Mu](d),r.text.push(d)}}}_bindOccurrences(e,t,n){let r;if(t.length>1&&(r=e[Lu](),r[Od](r.occur),r.occur=null),this._bindValue(e,t[0],n),this._setProperties(e,t[0]),this._bindItems(e,t[0]),t.length===1)return;let i=e[nd](),a=e[bd],o=i[sd](e);for(let e=1,s=t.length;e<s;e++){let s=t[e],c=r[Lu]();i[a].push(c),i[cd](o+e,c),this._bindValue(c,s,n),this._setProperties(c,s),this._bindItems(c,s)}}_createOccurrences(e){if(!this.emptyMerge)return;let{occur:t}=e;if(!t||t.initial<=1)return;let n=e[nd](),r=e[bd];if(!(n[r]instanceof X))return;let i;i=e.name?n[r].children.filter(t=>t.name===e.name).length:n[r].children.length;let a=n[sd](e)+1,o=t.initial-i;if(o){let t=e[Lu]();t[Od](t.occur),t.occur=null,n[r].push(t),n[cd](a,t);for(let e=1;e<o;e++){let i=t[Lu]();n[r].push(i),n[cd](a+e,i)}}}_getOccurInfo(e){let{name:t,occur:n}=e;if(!n||!t)return[1,1];let r=n.max===-1?1/0:n.max;return[n.min,r]}_setAndBind(e,t){this._setProperties(e,t),this._bindItems(e,t),this._bindElement(e,t)}_bindElement(e,t){let n=[];this._createOccurrences(e);for(let r of e[Qu]()){if(r[zu])continue;if(this._mergeMode===void 0&&r[bd]===`subform`){this._mergeMode=r.mergeMode===`consumeData`;let e=t[Qu]();if(e.length>0)this._bindOccurrences(r,[e[0]],null);else if(this.emptyMerge){let e=r[zu]=new Ff(t[yd]===Nh?-1:t[yd],r.name||`root`);t[Mu](e),this._bindElement(r,e)}continue}if(!r[ud]())continue;let e=!1,i=null,a=null,o=null;if(r.bind){switch(r.bind.match){case`none`:this._setAndBind(r,t);continue;case`global`:e=!0;break;case`dataRef`:if(!r.bind.ref){j(`XFA - ref is empty in node ${r[bd]}.`),this._setAndBind(r,t);continue}a=r.bind.ref;break;default:break}r.bind.picture&&(i=r.bind.picture[U])}let[s,c]=this._getOccurInfo(r);if(a)if(o=pf(this.root,t,a,!0,!1),o===null){if(o=mf(this.data,t,a),!o)continue;this._isConsumeData()&&(o[Ru]=!0),this._setAndBind(r,o);continue}else this._isConsumeData()&&(o=o.filter(e=>!e[Ru])),o.length>c?o=o.slice(0,c):o.length===0&&(o=null),o&&this._isConsumeData()&&o.forEach(e=>{e[Ru]=!0});else{if(!r.name){this._setAndBind(r,t);continue}if(this._isConsumeData()){let n=[];for(;n.length<c;){let i=this._findDataByNameToConsume(r.name,r[ad](),t,e);if(!i)break;i[Ru]=!0,n.push(i)}o=n.length>0?n:null}else{if(o=t[Zu](r.name,!1,this.emptyMerge).next().value,!o){if(s===0){n.push(r);continue}o=r[zu]=new Ff(t[yd]===Nh?-1:t[yd],r.name),this.emptyMerge&&(o[Ru]=!0),t[Mu](o),this._setAndBind(r,o);continue}this.emptyMerge&&(o[Ru]=!0),o=[o]}}o?this._bindOccurrences(r,o,i):s>0?this._setAndBind(r,t):n.push(r)}n.forEach(e=>e[nd]()[Od](e))}},Ih=class{constructor(e,t){this.data=t,this.dataset=e.datasets||null}serialize(e){let t=[[-1,this.data[Qu]()]];for(;t.length>0;){let n=t.at(-1),[r,i]=n;if(r+1===i.length){t.pop();continue}let a=i[++n[0]],o=e.get(a[Bd]);if(o)a[Pd](o);else{let t=a[Wu]();for(let n of t.values()){let t=e.get(n[Bd]);if(t){n[Pd](t);break}}}let s=a[Qu]();s.length>0&&t.push([-1,s])}let n=[`<xfa:datasets xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/">`];if(this.dataset)for(let e of this.dataset[Qu]())e[bd]!==`data`&&e[Rd](n);return this.data[Rd](n),n.push(`</xfa:datasets>`),n.join(``)}};let Q=Hd.config.id;var Lh=class extends Y{constructor(e){super(Q,`acrobat`,!0),this.acrobat7=null,this.autoSave=null,this.common=null,this.validate=null,this.validateApprovalSignatures=null,this.submitUrl=new X}},Rh=class extends Y{constructor(e){super(Q,`acrobat7`,!0),this.dynamicRender=null}},zh=class extends Lf{constructor(e){super(Q,`ADBE_JSConsole`,[`delegate`,`Enable`,`Disable`])}},Bh=class extends Lf{constructor(e){super(Q,`ADBE_JSDebugger`,[`delegate`,`Enable`,`Disable`])}},Vh=class extends Bf{constructor(e){super(Q,`addSilentPrint`)}},Hh=class extends Bf{constructor(e){super(Q,`addViewerPreferences`)}},Uh=class extends Vf{constructor(e){super(Q,`adjustData`)}},Wh=class extends zf{constructor(e){super(Q,`adobeExtensionLevel`,0,e=>e>=1&&e<=8)}},Gh=class extends Y{constructor(e){super(Q,`agent`,!0),this.name=e.name?e.name.trim():``,this.common=new X}},Kh=class extends If{constructor(e){super(Q,`alwaysEmbed`)}},qh=class extends Rf{constructor(e){super(Q,`amd`)}},Jh=class extends Y{constructor(e){super(Q,`area`),this.level=Kd({data:e.level,defaultValue:0,validate:e=>e>=1&&e<=3}),this.name=K(e.name,[``,`barcode`,`coreinit`,`deviceDriver`,`font`,`general`,`layout`,`merge`,`script`,`signature`,`sourceSet`,`templateCache`])}},Yh=class extends Lf{constructor(e){super(Q,`attributes`,[`preserve`,`delegate`,`ignore`])}},Xh=class extends Lf{constructor(e){super(Q,`autoSave`,[`disabled`,`enabled`])}},Zh=class extends Rf{constructor(e){super(Q,`base`)}},Qh=class extends Y{constructor(e){super(Q,`batchOutput`),this.format=K(e.format,[`none`,`concat`,`zip`,`zipCompress`])}},$h=class extends If{constructor(e){super(Q,`behaviorOverride`)}[Vu](){this[U]=new Map(this[U].trim().split(/\\s+/).filter(e=>e.includes(`:`)).map(e=>e.split(`:`,2)))}},eg=class extends Y{constructor(e){super(Q,`cache`,!0),this.templateCache=null}},tg=class extends Bf{constructor(e){super(Q,`change`)}},ng=class extends Y{constructor(e){super(Q,`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 X}},rg=class extends Y{constructor(e){super(Q,`compress`),this.scope=K(e.scope,[`imageOnly`,`document`])}},ig=class extends Bf{constructor(e){super(Q,`compressLogicalStructure`)}},ag=class extends Vf{constructor(e){super(Q,`compressObjectStream`)}},og=class extends Y{constructor(e){super(Q,`compression`,!0),this.compressLogicalStructure=null,this.compressObjectStream=null,this.level=null,this.type=null}},sg=class extends Y{constructor(e){super(Q,`config`,!0),this.acrobat=null,this.present=null,this.trace=null,this.agent=new X}},cg=class extends Lf{constructor(e){super(Q,`conformance`,[`A`,`B`])}},lg=class extends Bf{constructor(e){super(Q,`contentCopy`)}},ug=class extends zf{constructor(e){super(Q,`copies`,1,e=>e>=1)}},dg=class extends Rf{constructor(e){super(Q,`creator`)}},fg=class extends zf{constructor(e){super(Q,`currentPage`,0,e=>e>=0)}},pg=class extends Y{constructor(e){super(Q,`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 X,this.transform=new X}},mg=class extends Y{constructor(e){super(Q,`debug`,!0),this.uri=null}},hg=class extends If{constructor(e){super(Q,`defaultTypeface`),this.writingScript=K(e.writingScript,[`*`,`Arabic`,`Cyrillic`,`EastEuropeanRoman`,`Greek`,`Hebrew`,`Japanese`,`Korean`,`Roman`,`SimplifiedChinese`,`Thai`,`TraditionalChinese`,`Vietnamese`])}},gg=class extends Lf{constructor(e){super(Q,`destination`,[`pdf`,`pcl`,`ps`,`webClient`,`zpl`])}},_g=class extends Bf{constructor(e){super(Q,`documentAssembly`)}},vg=class extends Y{constructor(e){super(Q,`driver`,!0),this.name=e.name?e.name.trim():``,this.fontInfo=null,this.xdc=null}},yg=class extends Lf{constructor(e){super(Q,`duplexOption`,[`simplex`,`duplexFlipLongEdge`,`duplexFlipShortEdge`])}},bg=class extends Lf{constructor(e){super(Q,`dynamicRender`,[`forbidden`,`required`])}},xg=class extends Bf{constructor(e){super(Q,`embed`)}},Sg=class extends Bf{constructor(e){super(Q,`encrypt`)}},Cg=class extends Y{constructor(e){super(Q,`encryption`,!0),this.encrypt=null,this.encryptionLevel=null,this.permissions=null}},wg=class extends Lf{constructor(e){super(Q,`encryptionLevel`,[`40bit`,`128bit`])}},Tg=class extends Rf{constructor(e){super(Q,`enforce`)}},Eg=class extends Y{constructor(e){super(Q,`equate`),this.force=Kd({data:e.force,defaultValue:1,validate:e=>e===0}),this.from=e.from||``,this.to=e.to||``}},Dg=class extends Y{constructor(e){super(Q,`equateRange`),this.from=e.from||``,this.to=e.to||``,this._unicodeRange=e.unicodeRange||``}get unicodeRange(){let e=[],t=/U\\+([0-9a-fA-F]+)/,n=this._unicodeRange;for(let r of n.split(`,`).map(e=>e.trim()).filter(e=>!!e))r=r.split(`-`,2).map(e=>{let n=e.match(t);return n?parseInt(n[1],16):0}),r.length===1&&r.push(r[0]),e.push(r);return P(this,`unicodeRange`,e)}},Og=class extends If{constructor(e){super(Q,`exclude`)}[Vu](){this[U]=this[U].trim().split(/\\s+/).filter(e=>e&&[`calculate`,`close`,`enter`,`exit`,`initialize`,`ready`,`validate`].includes(e))}},kg=class extends Rf{constructor(e){super(Q,`excludeNS`)}},Ag=class extends Lf{constructor(e){super(Q,`flipLabel`,[`usePrinterSetting`,`on`,`off`])}},jg=class extends Y{constructor(e){super(Q,`fontInfo`,!0),this.embed=null,this.map=null,this.subsetBelow=null,this.alwaysEmbed=new X,this.defaultTypeface=new X,this.neverEmbed=new X}},Mg=class extends Bf{constructor(e){super(Q,`formFieldFilling`)}},Ng=class extends Rf{constructor(e){super(Q,`groupParent`)}},Pg=class extends Lf{constructor(e){super(Q,`ifEmpty`,[`dataValue`,`dataGroup`,`ignore`,`remove`])}},Fg=class extends Rf{constructor(e){super(Q,`includeXDPContent`)}},Ig=class extends Lf{constructor(e){super(Q,`incrementalLoad`,[`none`,`forwardOnly`])}},Lg=class extends Bf{constructor(e){super(Q,`incrementalMerge`)}},Rg=class extends Bf{constructor(e){super(Q,`interactive`)}},zg=class extends Lf{constructor(e){super(Q,`jog`,[`usePrinterSetting`,`none`,`pageSet`])}},Bg=class extends Y{constructor(e){super(Q,`labelPrinter`,!0),this.name=K(e.name,[`zpl`,`dpl`,`ipl`,`tcpl`]),this.batchOutput=null,this.flipLabel=null,this.fontInfo=null,this.xdc=null}},Vg=class extends Lf{constructor(e){super(Q,`layout`,[`paginate`,`panel`])}},Hg=class extends zf{constructor(e){super(Q,`level`,0,e=>e>0)}},Ug=class extends Bf{constructor(e){super(Q,`linearized`)}},Wg=class extends Rf{constructor(e){super(Q,`locale`)}},Gg=class extends Rf{constructor(e){super(Q,`localeSet`)}},Kg=class extends Y{constructor(e){super(Q,`log`,!0),this.mode=null,this.threshold=null,this.to=null,this.uri=null}},qg=class extends Y{constructor(e){super(Q,`map`,!0),this.equate=new X,this.equateRange=new X}},Jg=class extends Y{constructor(e){super(Q,`mediumInfo`,!0),this.map=null}},Yg=class extends Y{constructor(e){super(Q,`message`,!0),this.msgId=null,this.severity=null}},Xg=class extends Y{constructor(e){super(Q,`messaging`,!0),this.message=new X}},Zg=class extends Lf{constructor(e){super(Q,`mode`,[`append`,`overwrite`])}},Qg=class extends Bf{constructor(e){super(Q,`modifyAnnots`)}},$g=class extends zf{constructor(e){super(Q,`msgId`,1,e=>e>=1)}},e_=class extends Rf{constructor(e){super(Q,`nameAttr`)}},t_=class extends If{constructor(e){super(Q,`neverEmbed`)}},n_=class extends zf{constructor(e){super(Q,`numberOfCopies`,null,e=>e>=2&&e<=5)}},r_=class extends Y{constructor(e){super(Q,`openAction`,!0),this.destination=null}},i_=class extends Y{constructor(e){super(Q,`output`,!0),this.to=null,this.type=null,this.uri=null}},a_=class extends Rf{constructor(e){super(Q,`outputBin`)}},o_=class extends Y{constructor(e){super(Q,`outputXSL`,!0),this.uri=null}},s_=class extends Lf{constructor(e){super(Q,`overprint`,[`none`,`both`,`draw`,`field`])}},c_=class extends Rf{constructor(e){super(Q,`packets`)}[Vu](){this[U]!==`*`&&(this[U]=this[U].trim().split(/\\s+/).filter(e=>[`config`,`datasets`,`template`,`xfdf`,`xslt`].includes(e)))}},l_=class extends Y{constructor(e){super(Q,`pageOffset`),this.x=Kd({data:e.x,defaultValue:`useXDCSetting`,validate:e=>!0}),this.y=Kd({data:e.y,defaultValue:`useXDCSetting`,validate:e=>!0})}},u_=class extends Rf{constructor(e){super(Q,`pageRange`)}[Vu](){let e=this[U].trim().split(/\\s+/).map(e=>parseInt(e,10)),t=[];for(let n=0,r=e.length;n<r;n+=2)t.push(e.slice(n,n+2));this[U]=t}},d_=class extends Lf{constructor(e){super(Q,`pagination`,[`simplex`,`duplexShortEdge`,`duplexLongEdge`])}},f_=class extends Lf{constructor(e){super(Q,`paginationOverride`,[`none`,`forceDuplex`,`forceDuplexLongEdge`,`forceDuplexShortEdge`,`forceSimplex`])}},p_=class extends zf{constructor(e){super(Q,`part`,1,e=>!1)}},m_=class extends Y{constructor(e){super(Q,`pcl`,!0),this.name=e.name||``,this.batchOutput=null,this.fontInfo=null,this.jog=null,this.mediumInfo=null,this.outputBin=null,this.pageOffset=null,this.staple=null,this.xdc=null}},h_=class extends Y{constructor(e){super(Q,`pdf`,!0),this.name=e.name||``,this.adobeExtensionLevel=null,this.batchOutput=null,this.compression=null,this.creator=null,this.encryption=null,this.fontInfo=null,this.interactive=null,this.linearized=null,this.openAction=null,this.pdfa=null,this.producer=null,this.renderPolicy=null,this.scriptModel=null,this.silentPrint=null,this.submitFormat=null,this.tagged=null,this.version=null,this.viewerPreferences=null,this.xdc=null}},g_=class extends Y{constructor(e){super(Q,`pdfa`,!0),this.amd=null,this.conformance=null,this.includeXDPContent=null,this.part=null}},__=class extends Y{constructor(e){super(Q,`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}},v_=class extends Bf{constructor(e){super(Q,`pickTrayByPDFSize`)}},y_=class extends Rf{constructor(e){super(Q,`picture`)}},b_=class extends Bf{constructor(e){super(Q,`plaintextMetadata`)}},x_=class extends Lf{constructor(e){super(Q,`presence`,[`preserve`,`dissolve`,`dissolveStructure`,`ignore`,`remove`])}},S_=class extends Y{constructor(e){super(Q,`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 X,this.labelPrinter=new X,this.pcl=new X,this.pdf=new X,this.ps=new X,this.submitUrl=new X,this.webClient=new X,this.zpl=new X}},C_=class extends Bf{constructor(e){super(Q,`print`)}},w_=class extends Bf{constructor(e){super(Q,`printHighQuality`)}},T_=class extends Lf{constructor(e){super(Q,`printScaling`,[`appdefault`,`noScaling`])}},E_=class extends Rf{constructor(e){super(Q,`printerName`)}},D_=class extends Rf{constructor(e){super(Q,`producer`)}},O_=class extends Y{constructor(e){super(Q,`ps`,!0),this.name=e.name||``,this.batchOutput=null,this.fontInfo=null,this.jog=null,this.mediumInfo=null,this.outputBin=null,this.staple=null,this.xdc=null}},k_=class extends If{constructor(e){super(Q,`range`)}[Vu](){this[U]=this[U].split(`,`,2).map(e=>e.split(`-`).map(e=>parseInt(e.trim(),10))).filter(e=>e.every(e=>!isNaN(e))).map(e=>(e.length===1&&e.push(e[0]),e))}},A_=class extends If{constructor(e){super(Q,`record`)}[Vu](){this[U]=this[U].trim();let e=parseInt(this[U],10);!isNaN(e)&&e>=0&&(this[U]=e)}},j_=class extends If{constructor(e){super(Q,`relevant`)}[Vu](){this[U]=this[U].trim().split(/\\s+/)}},M_=class extends If{constructor(e){super(Q,`rename`)}[Vu](){this[U]=this[U].trim(),(this[U].toLowerCase().startsWith(`xml`)||/[\\p{L}_][\\p{L}\\d._\\p{M}-]*/u.test(this[U]))&&j(`XFA - Rename: invalid XFA name`)}},N_=class extends Lf{constructor(e){super(Q,`renderPolicy`,[`server`,`client`])}},P_=class extends Lf{constructor(e){super(Q,`runScripts`,[`both`,`client`,`none`,`server`])}},F_=class extends Y{constructor(e){super(Q,`script`,!0),this.currentPage=null,this.exclude=null,this.runScripts=null}},I_=class extends Lf{constructor(e){super(Q,`scriptModel`,[`XFA`,`none`])}},L_=class extends Lf{constructor(e){super(Q,`severity`,[`ignore`,`error`,`information`,`trace`,`warning`])}},R_=class extends Y{constructor(e){super(Q,`silentPrint`,!0),this.addSilentPrint=null,this.printerName=null}},z_=class extends Y{constructor(e){super(Q,`staple`),this.mode=K(e.mode,[`usePrinterSetting`,`on`,`off`])}},B_=class extends Rf{constructor(e){super(Q,`startNode`)}},V_=class extends zf{constructor(e){super(Q,`startPage`,0,e=>!0)}},H_=class extends Lf{constructor(e){super(Q,`submitFormat`,[`html`,`delegate`,`fdf`,`xml`,`pdf`])}},U_=class extends Rf{constructor(e){super(Q,`submitUrl`)}},W_=class extends zf{constructor(e){super(Q,`subsetBelow`,100,e=>e>=0&&e<=100)}},G_=class extends Bf{constructor(e){super(Q,`suppressBanner`)}},K_=class extends Bf{constructor(e){super(Q,`tagged`)}},q_=class extends Y{constructor(e){super(Q,`template`,!0),this.base=null,this.relevant=null,this.startPage=null,this.uri=null,this.xsl=null}},J_=class extends Lf{constructor(e){super(Q,`threshold`,[`trace`,`error`,`information`,`warning`])}},Y_=class extends Lf{constructor(e){super(Q,`to`,[`null`,`memory`,`stderr`,`stdout`,`system`,`uri`])}},X_=class extends Y{constructor(e){super(Q,`templateCache`),this.maxEntries=Kd({data:e.maxEntries,defaultValue:5,validate:e=>e>=0})}},Z_=class extends Y{constructor(e){super(Q,`trace`,!0),this.area=new X}},Q_=class extends Y{constructor(e){super(Q,`transform`,!0),this.groupParent=null,this.ifEmpty=null,this.nameAttr=null,this.picture=null,this.presence=null,this.rename=null,this.whitespace=null}},$_=class extends Lf{constructor(e){super(Q,`type`,[`none`,`ascii85`,`asciiHex`,`ccittfax`,`flate`,`lzw`,`runLength`,`native`,`xdp`,`mergedXDP`])}},ev=class extends Rf{constructor(e){super(Q,`uri`)}},tv=class extends Lf{constructor(e){super(Q,`validate`,[`preSubmit`,`prePrint`,`preExecute`,`preSave`])}},nv=class extends If{constructor(e){super(Q,`validateApprovalSignatures`)}[Vu](){this[U]=this[U].trim().split(/\\s+/).filter(e=>[`docReady`,`postSign`].includes(e))}},rv=class extends Lf{constructor(e){super(Q,`validationMessaging`,[`allMessagesIndividually`,`allMessagesTogether`,`firstMessageOnly`,`noMessages`])}},iv=class extends Lf{constructor(e){super(Q,`version`,[`1.7`,`1.6`,`1.5`,`1.4`,`1.3`,`1.2`])}},av=class extends Y{constructor(e){super(Q,`VersionControl`),this.outputBelow=K(e.outputBelow,[`warn`,`error`,`update`]),this.sourceAbove=K(e.sourceAbove,[`warn`,`error`]),this.sourceBelow=K(e.sourceBelow,[`update`,`maintain`])}},ov=class extends Y{constructor(e){super(Q,`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}},sv=class extends Y{constructor(e){super(Q,`webClient`,!0),this.name=e.name?e.name.trim():``,this.fontInfo=null,this.xdc=null}},cv=class extends Lf{constructor(e){super(Q,`whitespace`,[`preserve`,`ltrim`,`normalize`,`rtrim`,`trim`])}},lv=class extends If{constructor(e){super(Q,`window`)}[Vu](){let e=this[U].split(`,`,2).map(e=>parseInt(e.trim(),10));if(e.some(e=>isNaN(e))){this[U]=[0,0];return}e.length===1&&e.push(e[0]),this[U]=e}},uv=class extends Y{constructor(e){super(Q,`xdc`,!0),this.uri=new X,this.xsl=new X}},dv=class extends Y{constructor(e){super(Q,`xdp`,!0),this.packets=null}},fv=class extends Y{constructor(e){super(Q,`xsl`,!0),this.debug=null,this.uri=null}},pv=class extends Y{constructor(e){super(Q,`zpl`,!0),this.name=e.name?e.name.trim():``,this.batchOutput=null,this.flipLabel=null,this.fontInfo=null,this.xdc=null}},mv=class e{static[Vd](t,n){if(Object.hasOwn(e,t))return e[t](n)}static acrobat(e){return new Lh(e)}static acrobat7(e){return new Rh(e)}static ADBE_JSConsole(e){return new zh(e)}static ADBE_JSDebugger(e){return new Bh(e)}static addSilentPrint(e){return new Vh(e)}static addViewerPreferences(e){return new Hh(e)}static adjustData(e){return new Uh(e)}static adobeExtensionLevel(e){return new Wh(e)}static agent(e){return new Gh(e)}static alwaysEmbed(e){return new Kh(e)}static amd(e){return new qh(e)}static area(e){return new Jh(e)}static attributes(e){return new Yh(e)}static autoSave(e){return new Xh(e)}static base(e){return new Zh(e)}static batchOutput(e){return new Qh(e)}static behaviorOverride(e){return new $h(e)}static cache(e){return new eg(e)}static change(e){return new tg(e)}static common(e){return new ng(e)}static compress(e){return new rg(e)}static compressLogicalStructure(e){return new ig(e)}static compressObjectStream(e){return new ag(e)}static compression(e){return new og(e)}static config(e){return new sg(e)}static conformance(e){return new cg(e)}static contentCopy(e){return new lg(e)}static copies(e){return new ug(e)}static creator(e){return new dg(e)}static currentPage(e){return new fg(e)}static data(e){return new pg(e)}static debug(e){return new mg(e)}static defaultTypeface(e){return new hg(e)}static destination(e){return new gg(e)}static documentAssembly(e){return new _g(e)}static driver(e){return new vg(e)}static duplexOption(e){return new yg(e)}static dynamicRender(e){return new bg(e)}static embed(e){return new xg(e)}static encrypt(e){return new Sg(e)}static encryption(e){return new Cg(e)}static encryptionLevel(e){return new wg(e)}static enforce(e){return new Tg(e)}static equate(e){return new Eg(e)}static equateRange(e){return new Dg(e)}static exclude(e){return new Og(e)}static excludeNS(e){return new kg(e)}static flipLabel(e){return new Ag(e)}static fontInfo(e){return new jg(e)}static formFieldFilling(e){return new Mg(e)}static groupParent(e){return new Ng(e)}static ifEmpty(e){return new Pg(e)}static includeXDPContent(e){return new Fg(e)}static incrementalLoad(e){return new Ig(e)}static incrementalMerge(e){return new Lg(e)}static interactive(e){return new Rg(e)}static jog(e){return new zg(e)}static labelPrinter(e){return new Bg(e)}static layout(e){return new Vg(e)}static level(e){return new Hg(e)}static linearized(e){return new Ug(e)}static locale(e){return new Wg(e)}static localeSet(e){return new Gg(e)}static log(e){return new Kg(e)}static map(e){return new qg(e)}static mediumInfo(e){return new Jg(e)}static message(e){return new Yg(e)}static messaging(e){return new Xg(e)}static mode(e){return new Zg(e)}static modifyAnnots(e){return new Qg(e)}static msgId(e){return new $g(e)}static nameAttr(e){return new e_(e)}static neverEmbed(e){return new t_(e)}static numberOfCopies(e){return new n_(e)}static openAction(e){return new r_(e)}static output(e){return new i_(e)}static outputBin(e){return new a_(e)}static outputXSL(e){return new o_(e)}static overprint(e){return new s_(e)}static packets(e){return new c_(e)}static pageOffset(e){return new l_(e)}static pageRange(e){return new u_(e)}static pagination(e){return new d_(e)}static paginationOverride(e){return new f_(e)}static part(e){return new p_(e)}static pcl(e){return new m_(e)}static pdf(e){return new h_(e)}static pdfa(e){return new g_(e)}static permissions(e){return new __(e)}static pickTrayByPDFSize(e){return new v_(e)}static picture(e){return new y_(e)}static plaintextMetadata(e){return new b_(e)}static presence(e){return new x_(e)}static present(e){return new S_(e)}static print(e){return new C_(e)}static printHighQuality(e){return new w_(e)}static printScaling(e){return new T_(e)}static printerName(e){return new E_(e)}static producer(e){return new D_(e)}static ps(e){return new O_(e)}static range(e){return new k_(e)}static record(e){return new A_(e)}static relevant(e){return new j_(e)}static rename(e){return new M_(e)}static renderPolicy(e){return new N_(e)}static runScripts(e){return new P_(e)}static script(e){return new F_(e)}static scriptModel(e){return new I_(e)}static severity(e){return new L_(e)}static silentPrint(e){return new R_(e)}static staple(e){return new z_(e)}static startNode(e){return new B_(e)}static startPage(e){return new V_(e)}static submitFormat(e){return new H_(e)}static submitUrl(e){return new U_(e)}static subsetBelow(e){return new W_(e)}static suppressBanner(e){return new G_(e)}static tagged(e){return new K_(e)}static template(e){return new q_(e)}static templateCache(e){return new X_(e)}static threshold(e){return new J_(e)}static to(e){return new Y_(e)}static trace(e){return new Z_(e)}static transform(e){return new Q_(e)}static type(e){return new $_(e)}static uri(e){return new ev(e)}static validate(e){return new tv(e)}static validateApprovalSignatures(e){return new nv(e)}static validationMessaging(e){return new rv(e)}static version(e){return new iv(e)}static versionControl(e){return new av(e)}static viewerPreferences(e){return new ov(e)}static webClient(e){return new sv(e)}static whitespace(e){return new cv(e)}static window(e){return new lv(e)}static xdc(e){return new uv(e)}static xdp(e){return new dv(e)}static xsl(e){return new fv(e)}static zpl(e){return new pv(e)}};let hv=Hd.connectionSet.id;var gv=class extends Y{constructor(e){super(hv,`connectionSet`,!0),this.wsdlConnection=new X,this.xmlConnection=new X,this.xsdConnection=new X}},_v=class extends Y{constructor(e){super(hv,`effectiveInputPolicy`),this.id=e.id||``,this.name=e.name||``,this.use=e.use||``,this.usehref=e.usehref||``}},vv=class extends Y{constructor(e){super(hv,`effectiveOutputPolicy`),this.id=e.id||``,this.name=e.name||``,this.use=e.use||``,this.usehref=e.usehref||``}},yv=class extends Rf{constructor(e){super(hv,`operation`),this.id=e.id||``,this.input=e.input||``,this.name=e.name||``,this.output=e.output||``,this.use=e.use||``,this.usehref=e.usehref||``}},bv=class extends Rf{constructor(e){super(hv,`rootElement`),this.id=e.id||``,this.name=e.name||``,this.use=e.use||``,this.usehref=e.usehref||``}},xv=class extends Rf{constructor(e){super(hv,`soapAction`),this.id=e.id||``,this.name=e.name||``,this.use=e.use||``,this.usehref=e.usehref||``}},Sv=class extends Rf{constructor(e){super(hv,`soapAddress`),this.id=e.id||``,this.name=e.name||``,this.use=e.use||``,this.usehref=e.usehref||``}},Cv=class extends Rf{constructor(e){super(hv,`uri`),this.id=e.id||``,this.name=e.name||``,this.use=e.use||``,this.usehref=e.usehref||``}},wv=class extends Rf{constructor(e){super(hv,`wsdlAddress`),this.id=e.id||``,this.name=e.name||``,this.use=e.use||``,this.usehref=e.usehref||``}},Tv=class extends Y{constructor(e){super(hv,`wsdlConnection`,!0),this.dataDescription=e.dataDescription||``,this.name=e.name||``,this.effectiveInputPolicy=null,this.effectiveOutputPolicy=null,this.operation=null,this.soapAction=null,this.soapAddress=null,this.wsdlAddress=null}},Ev=class extends Y{constructor(e){super(hv,`xmlConnection`,!0),this.dataDescription=e.dataDescription||``,this.name=e.name||``,this.uri=null}},Dv=class extends Y{constructor(e){super(hv,`xsdConnection`,!0),this.dataDescription=e.dataDescription||``,this.name=e.name||``,this.rootElement=null,this.uri=null}},Ov=class e{static[Vd](t,n){if(Object.hasOwn(e,t))return e[t](n)}static connectionSet(e){return new gv(e)}static effectiveInputPolicy(e){return new _v(e)}static effectiveOutputPolicy(e){return new vv(e)}static operation(e){return new yv(e)}static rootElement(e){return new bv(e)}static soapAction(e){return new xv(e)}static soapAddress(e){return new Sv(e)}static uri(e){return new Cv(e)}static wsdlAddress(e){return new wv(e)}static wsdlConnection(e){return new Tv(e)}static xmlConnection(e){return new Ev(e)}static xsdConnection(e){return new Dv(e)}};let kv=Hd.datasets.id;var Av=class extends Ff{constructor(e){super(kv,`data`,e)}[pd](){return!0}},jv=class extends Y{constructor(e){super(kv,`datasets`,!0),this.data=null,this.Signature=null}[Sd](e){let t=e[bd];(t===`data`&&e[yd]===kv||t===`Signature`&&e[yd]===Hd.signature.id)&&(this[t]=e),this[Mu](e)}},Mv=class e{static[Vd](t,n){if(Object.hasOwn(e,t))return e[t](n)}static datasets(e){return new jv(e)}static data(e){return new Av(e)}};let Nv=Hd.localeSet.id;var Pv=class extends Y{constructor(e){super(Nv,`calendarSymbols`,!0),this.name=`gregorian`,this.dayNames=new X(2),this.eraNames=null,this.meridiemNames=null,this.monthNames=new X(2)}},Fv=class extends Rf{constructor(e){super(Nv,`currencySymbol`),this.name=K(e.name,[`symbol`,`isoname`,`decimal`])}},Iv=class extends Y{constructor(e){super(Nv,`currencySymbols`,!0),this.currencySymbol=new X(3)}},Lv=class extends Rf{constructor(e){super(Nv,`datePattern`),this.name=K(e.name,[`full`,`long`,`med`,`short`])}},Rv=class extends Y{constructor(e){super(Nv,`datePatterns`,!0),this.datePattern=new X(4)}},zv=class extends If{constructor(e){super(Nv,`dateTimeSymbols`)}},Bv=class extends Rf{constructor(e){super(Nv,`day`)}},Vv=class extends Y{constructor(e){super(Nv,`dayNames`,!0),this.abbr=Kd({data:e.abbr,defaultValue:0,validate:e=>e===1}),this.day=new X(7)}},Hv=class extends Rf{constructor(e){super(Nv,`era`)}},Uv=class extends Y{constructor(e){super(Nv,`eraNames`,!0),this.era=new X(2)}},Wv=class extends Y{constructor(e){super(Nv,`locale`,!0),this.desc=e.desc||``,this.name=`isoname`,this.calendarSymbols=null,this.currencySymbols=null,this.datePatterns=null,this.dateTimeSymbols=null,this.numberPatterns=null,this.numberSymbols=null,this.timePatterns=null,this.typeFaces=null}},Gv=class extends Y{constructor(e){super(Nv,`localeSet`,!0),this.locale=new X}},Kv=class extends Rf{constructor(e){super(Nv,`meridiem`)}},qv=class extends Y{constructor(e){super(Nv,`meridiemNames`,!0),this.meridiem=new X(2)}},Jv=class extends Rf{constructor(e){super(Nv,`month`)}},Yv=class extends Y{constructor(e){super(Nv,`monthNames`,!0),this.abbr=Kd({data:e.abbr,defaultValue:0,validate:e=>e===1}),this.month=new X(12)}},Xv=class extends Rf{constructor(e){super(Nv,`numberPattern`),this.name=K(e.name,[`full`,`long`,`med`,`short`])}},Zv=class extends Y{constructor(e){super(Nv,`numberPatterns`,!0),this.numberPattern=new X(4)}},Qv=class extends Rf{constructor(e){super(Nv,`numberSymbol`),this.name=K(e.name,[`decimal`,`grouping`,`percent`,`minus`,`zero`])}},$v=class extends Y{constructor(e){super(Nv,`numberSymbols`,!0),this.numberSymbol=new X(5)}},ey=class extends Rf{constructor(e){super(Nv,`timePattern`),this.name=K(e.name,[`full`,`long`,`med`,`short`])}},ty=class extends Y{constructor(e){super(Nv,`timePatterns`,!0),this.timePattern=new X(4)}},ny=class extends Y{constructor(e){super(Nv,`typeFace`,!0),this.name=e.name|``}},ry=class extends Y{constructor(e){super(Nv,`typeFaces`,!0),this.typeFace=new X}},iy=class e{static[Vd](t,n){if(Object.hasOwn(e,t))return e[t](n)}static calendarSymbols(e){return new Pv(e)}static currencySymbol(e){return new Fv(e)}static currencySymbols(e){return new Iv(e)}static datePattern(e){return new Lv(e)}static datePatterns(e){return new Rv(e)}static dateTimeSymbols(e){return new zv(e)}static day(e){return new Bv(e)}static dayNames(e){return new Vv(e)}static era(e){return new Hv(e)}static eraNames(e){return new Uv(e)}static locale(e){return new Wv(e)}static localeSet(e){return new Gv(e)}static meridiem(e){return new Kv(e)}static meridiemNames(e){return new qv(e)}static month(e){return new Jv(e)}static monthNames(e){return new Yv(e)}static numberPattern(e){return new Xv(e)}static numberPatterns(e){return new Zv(e)}static numberSymbol(e){return new Qv(e)}static numberSymbols(e){return new $v(e)}static timePattern(e){return new ey(e)}static timePatterns(e){return new ty(e)}static typeFace(e){return new ny(e)}static typeFaces(e){return new ry(e)}};let ay=Hd.signature.id;var oy=class extends Y{constructor(e){super(ay,`signature`,!0)}},sy=class e{static[Vd](t,n){if(Object.hasOwn(e,t))return e[t](n)}static signature(e){return new oy(e)}};let cy=Hd.stylesheet.id;var ly=class extends Y{constructor(e){super(cy,`stylesheet`,!0)}},uy=class e{static[Vd](t,n){if(Object.hasOwn(e,t))return e[t](n)}static stylesheet(e){return new ly(e)}};let dy=Hd.xdp.id;var fy=class extends Y{constructor(e){super(dy,`xdp`,!0),this.uuid=e.uuid||``,this.timeStamp=e.timeStamp||``,this.config=null,this.connectionSet=null,this.datasets=null,this.localeSet=null,this.stylesheet=new X,this.template=null}[Cd](e){let t=Hd[e[bd]];return t&&e[yd]===t.id}},py=class e{static[Vd](t,n){if(Object.hasOwn(e,t))return e[t](n)}static xdp(e){return new fy(e)}};let my=Hd.xhtml.id,hy=Symbol(),gy=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`.split(`.`)),_y=new Map([[`page-break-after`,`breakAfter`],[`page-break-before`,`breakBefore`],[`page-break-inside`,`breakInside`],[`kerning-mode`,e=>e===`none`?`none`:`normal`],[`xfa-font-horizontal-scale`,e=>`scaleX(${Math.max(0,parseInt(e,10)/100).toFixed(2)})`],[`xfa-font-vertical-scale`,e=>`scaleY(${Math.max(0,parseInt(e,10)/100).toFixed(2)})`],[`xfa-spacerun`,``],[`xfa-tab-stops`,``],[`font-size`,(e,t)=>(e=t.fontSize=Math.abs(q(e)),Hf(.99*e))],[`letter-spacing`,e=>Hf(q(e))],[`line-height`,e=>Hf(q(e))],[`margin`,e=>Hf(q(e))],[`margin-bottom`,e=>Hf(q(e))],[`margin-left`,e=>Hf(q(e))],[`margin-right`,e=>Hf(q(e))],[`margin-top`,e=>Hf(q(e))],[`text-indent`,e=>Hf(q(e))],[`font-family`,e=>e],[`vertical-align`,e=>Hf(q(e))]]),vy=/\\s+/g,yy=/[\\r\\n]+/g,by=/\\r\\n?/g;function xy(e,t,n){let r=Object.create(null);if(!e)return r;let i=Object.create(null);for(let[t,n]of e.split(`;`).map(e=>e.split(`:`,2))){let e=_y.get(t);if(e===``)continue;let a=n;e&&(a=typeof e==`string`?e:e(n,i)),t.endsWith(`scale`)?r.transform=r.transform?`${r[t]} ${a}`:a:r[t.replaceAll(/-([a-z])/gi,(e,t)=>t.toUpperCase())]=a}if(r.fontFamily&&rp({typeface:r.fontFamily,weight:r.fontWeight||`normal`,posture:r.fontStyle||`normal`,size:i.fontSize||0},t,t[id].fontFinder,r),n&&r.verticalAlign&&r.verticalAlign!==`0px`&&r.fontSize){let e=q(r.fontSize);r.fontSize=Hf(e*.583),r.verticalAlign=Hf(Math.sign(q(r.verticalAlign))*e*.333)}return n&&r.fontSize&&(r.fontSize=`calc(${r.fontSize} * var(--total-scale-factor))`),Qf(r),r}function Sy(e){return e.style?e.style.split(`;`).filter(e=>!!e.trim()).map(e=>e.split(`:`,2).map(e=>e.trim())).filter(([t,n])=>(t===`font-family`&&e[id].usedTypefaces.add(n),gy.has(t))).map(e=>e.join(`:`)).join(`;`):``}let Cy=new Set([`body`,`html`]);var wy=class extends Ff{constructor(e,t){super(my,t),this[hy]=!1,this.style=e.style||``}[Pu](e){super[Pu](e),this.style=Sy(this)}[Au](){return!Cy.has(this[bd])}[wd](e,t=!1){t?this[hy]=!0:(e=e.replaceAll(yy,``),this.style.includes(`xfa-spacerun:yes`)||(e=e.replaceAll(vy,` `))),e&&(this[U]+=e)}[Td](e,t=!0){let n=Object.create(null),r={top:NaN,bottom:NaN,left:NaN,right:NaN},i=null;for(let[e,t]of this.style.split(`;`).map(e=>e.split(`:`,2)))switch(e){case`font-family`:n.typeface=Gd(t);break;case`font-size`:n.size=q(t);break;case`font-weight`:n.weight=t;break;case`font-style`:n.posture=t;break;case`letter-spacing`:n.letterSpacing=q(t);break;case`margin`:let e=t.split(/ \\t/).map(e=>q(e));switch(e.length){case 1:r.top=r.bottom=r.left=r.right=e[0];break;case 2:r.top=r.bottom=e[0],r.left=r.right=e[1];break;case 3:r.top=e[0],r.bottom=e[2],r.left=r.right=e[1];break;case 4:r.top=e[0],r.left=e[1],r.bottom=e[2],r.right=e[3];break}break;case`margin-top`:r.top=q(t);break;case`margin-bottom`:r.bottom=q(t);break;case`margin-left`:r.left=q(t);break;case`margin-right`:r.right=q(t);break;case`line-height`:i=q(t);break}if(e.pushData(n,r,i),this[U])e.addString(this[U]);else for(let t of this[Qu]()){if(t[bd]===`#text`){e.addString(t[U]);continue}t[Td](e)}t&&e.popFont()}[G](e){let t=[];if(this[W]={children:t},this[Nu]({}),t.length===0&&!this[U])return J.EMPTY;let n;return n=this[hy]?this[U]?this[U].replaceAll(by,`\n`):void 0:this[U]||void 0,J.success({name:this[bd],attributes:{href:this.href,style:xy(this.style,this,this[hy])},children:t,value:n})}},Ty=class extends wy{constructor(e){super(e,`a`),this.href=ip(e.href)||``}},Ey=class extends wy{constructor(e){super(e,`b`)}[Td](e){e.pushFont({weight:`bold`}),super[Td](e),e.popFont()}},Dy=class extends wy{constructor(e){super(e,`body`)}[G](e){let t=super[G](e),{html:n}=t;return n?(n.name=`div`,n.attributes.class=[`xfaRich`],t):J.EMPTY}},Oy=class extends wy{constructor(e){super(e,`br`)}[Id](){return`\n`}[Td](e){e.addString(`\n`)}[G](e){return J.success({name:`br`})}},ky=class extends wy{constructor(e){super(e,`html`)}[G](e){let t=[];if(this[W]={children:t},this[Nu]({}),t.length===0)return J.success({name:`div`,attributes:{class:[`xfaRich`],style:{}},value:this[U]||``});if(t.length===1){let e=t[0];if(e.attributes?.class.includes(`xfaRich`))return J.success(e)}return J.success({name:`div`,attributes:{class:[`xfaRich`],style:{}},children:t})}},Ay=class extends wy{constructor(e){super(e,`i`)}[Td](e){e.pushFont({posture:`italic`}),super[Td](e),e.popFont()}},jy=class extends wy{constructor(e){super(e,`li`)}},My=class extends wy{constructor(e){super(e,`ol`)}},Ny=class extends wy{constructor(e){super(e,`p`)}[Td](e){super[Td](e,!1),e.addString(`\n`),e.addPara(),e.popFont()}[Id](){return this[nd]()[Qu]().at(-1)===this?super[Id]():super[Id]()+`\n`}},Py=class extends wy{constructor(e){super(e,`span`)}},Fy=class extends wy{constructor(e){super(e,`sub`)}},Iy=class extends wy{constructor(e){super(e,`sup`)}},Ly=class extends wy{constructor(e){super(e,`ul`)}},Ry=class e{static[Vd](t,n){if(Object.hasOwn(e,t))return e[t](n)}static a(e){return new Ty(e)}static b(e){return new Ey(e)}static body(e){return new Dy(e)}static br(e){return new Oy(e)}static html(e){return new ky(e)}static i(e){return new Ay(e)}static li(e){return new jy(e)}static ol(e){return new My(e)}static p(e){return new Ny(e)}static span(e){return new Py(e)}static sub(e){return new Fy(e)}static sup(e){return new Iy(e)}static ul(e){return new Ly(e)}};let zy={config:mv,connection:Ov,datasets:Mv,localeSet:iy,signature:sy,stylesheet:uy,template:Mh,xdp:py,xhtml:Ry};var By=class{constructor(e){this.namespaceId=e}[Vd](e,t){return new Ff(this.namespaceId,e,t)}},Vy=class extends Y{constructor(e){super(-1,`root`,Object.create(null)),this.element=null,this[od]=e}[Sd](e){return this.element=e,!0}[Vu](){super[Vu](),this.element.template instanceof bh&&(this[od].set(kd,this.element),this.element.template[Ad](this[od]),this.element.template[od]=this[od])}},Hy=class extends Y{constructor(){super(-1,``,Object.create(null))}[Sd](e){return!1}},Uy=class{constructor(e=null){this._namespaceStack=[],this._nsAgnosticLevel=0,this._namespacePrefixes=new Map,this._namespaces=new Map,this._nextNsId=Math.max(...Object.values(Hd).map(({id:e})=>e)),this._currentNamespace=e||new By(++this._nextNsId)}buildRoot(e){return new Vy(e)}build({nsPrefix:e,name:t,attributes:n,namespace:r,prefixes:i}){let a=r!==null;if(a&&(this._namespaceStack.push(this._currentNamespace),this._currentNamespace=this._searchNamespace(r)),i&&this._addNamespacePrefix(i),Object.hasOwn(n,xd)){let e=zy.datasets,t=n[xd],r=null;for(let[n,i]of Object.entries(t))if(this._getNamespaceToUse(n)===e){r={xfa:i};break}r?n[xd]=r:delete n[xd]}let o=this._getNamespaceToUse(e)?.[Vd](t,n)||new Hy;return o[pd]()&&this._nsAgnosticLevel++,(a||i||o[pd]())&&(o[Iu]={hasNamespace:a,prefixes:i,nsAgnostic:o[pd]()}),o}isNsAgnostic(){return this._nsAgnosticLevel>0}_searchNamespace(e){let t=this._namespaces.get(e);if(t)return t;for(let[n,{check:r}]of Object.entries(Hd))if(r(e)){if(t=zy[n],t)return this._namespaces.set(e,t),t;break}return t=new By(++this._nextNsId),this._namespaces.set(e,t),t}_addNamespacePrefix(e){for(let{prefix:t,value:n}of e){let e=this._searchNamespace(n);this._namespacePrefixes.getOrInsertComputed(t,we).push(e)}}_getNamespaceToUse(e){if(!e)return this._currentNamespace;let t=this._namespacePrefixes.get(e);return t?.length>0?t.at(-1):(j(`Unknown namespace prefix: ${e}.`),null)}clean(e){let{hasNamespace:t,prefixes:n,nsAgnostic:r}=e;t&&(this._currentNamespace=this._namespaceStack.pop()),n&&n.forEach(({prefix:e})=>{this._namespacePrefixes.get(e).pop()}),r&&this._nsAgnosticLevel--}},Wy=class e extends su{constructor(e=null,t=!1){super(),this._builder=new Uy(e),this._stack=[],this._globalData={usedTypefaces:new Set},this._ids=new Map,this._current=this._builder.buildRoot(this._ids),this._errorCode=iu.NoError,this._whiteRegex=/^\\s+$/,this._nbsps=/\\xa0+/g,this._richText=t}parse(e){if(this.parseXml(e),this._errorCode===iu.NoError)return this._current[Vu](),this._current.element}onText(e){if(e=e.replace(this._nbsps,e=>e.slice(1)+` `),this._richText||this._current[Au]()){this._current[wd](e,this._richText);return}this._whiteRegex.test(e)||this._current[wd](e.trim())}onCdata(e){this._current[wd](e)}_mkAttributes(e,t){let n=null,r=null,i=Object.create({});for(let{name:a,value:o}of e)if(a===`xmlns`)n?j(`XFA - multiple namespace definition in <${t}>`):n=o;else if(a.startsWith(`xmlns:`)){let e=a.substring(6);r??=[],r.push({prefix:e,value:o})}else{let e=a.indexOf(`:`);if(e===-1)i[a]=o;else{let t=i[xd]??=Object.create(null),[n,r]=[a.slice(0,e),a.slice(e+1)],s=t[n]||=Object.create(null);s[r]=o}}return[n,r,i]}_getNameAndPrefix(e,t){let n=e.indexOf(`:`);return n===-1?[e,null]:[e.substring(n+1),t?``:e.substring(0,n)]}onBeginElement(e,t,n){let[r,i,a]=this._mkAttributes(t,e),[o,s]=this._getNameAndPrefix(e,this._builder.isNsAgnostic()),c=this._builder.build({nsPrefix:s,name:o,attributes:a,namespace:r,prefixes:i});if(c[id]=this._globalData,n){c[Vu](),this._current[Sd](c)&&c[Md](this._ids),c[Pu](this._builder);return}this._stack.push(this._current),this._current=c}onEndElement(t){let n=this._current;if(n[ld]()&&typeof n[U]==`string`){let t=new e;t._globalData=this._globalData;let r=t.parse(n[U]);n[U]=null,n[Sd](r)}n[Vu](),this._current=this._stack.pop(),this._current[Sd](n)&&n[Md](this._ids),n[Pu](this._builder)}onError(e){this._errorCode=e}},Gy=class e{constructor(t){try{this.root=new Wy().parse(e._createDocument(t));let n=new Fh(this.root);this.form=n.bind(),this.dataHandler=new Ih(this.root,n.getData()),this.form[id].template=this.form}catch(e){j(`XFA - an error occurred during parsing and binding: ${e}`)}}isValid(){return!!(this.root&&this.form)}_createPagesHelper(){let e=this.form[Ld]();return new Promise((t,n)=>{let r=()=>{try{let n=e.next();n.done?t(n.value):setTimeout(r,0)}catch(e){n(e)}};setTimeout(r,0)})}async _createPages(){try{this.pages=await this._createPagesHelper(),this.dims=this.pages.children.map(e=>{let{width:t,height:n}=e.attributes.style;return[0,0,parseInt(t,10),parseInt(n,10)]})}catch(e){j(`XFA - an error occurred during layout: ${e}`)}}getBoundingBox(e){return this.dims[e]}async getNumPages(){return this.pages||await this._createPages(),this.dims.length}setImages(e){this.form[id].images=e}setFonts(e){this.form[id].fontFinder=new $d(e);let t=[];for(let e of this.form[id].usedTypefaces)e=Gd(e),this.form[id].fontFinder.find(e)||t.push(e);return t.length>0?t:null}appendFonts(e,t){this.form[id].fontFinder.add(e,t)}async getPages(){this.pages||await this._createPages();let e=this.pages;return this.pages=null,e}serializeData(e){return this.dataHandler.serialize(e)}static _createDocument(e){return e[`/xdp:xdp`]?Object.values(e).join(``):e[`xdp:xdp`]}static getRichTextAsHtml(e){if(!e||typeof e!=`string`)return null;try{let t=new Wy(Ry,!0).parse(e);if(![`body`,`xhtml`].includes(t[bd])){let e=Ry.body({});e[Mu](t),t=e}let n=t[G]();if(!n.success)return null;let{html:r}=n,{attributes:i}=r;return i&&(i.class&&=i.class.filter(e=>!e.startsWith(`xfa`)),i.dir=`auto`),{html:r,str:t[Id]()}}catch(e){j(`XFA - an error occurred during parsing of rich text: ${e}`)}return null}},Ky=class{static createGlobals(e){return Promise.all([e.ensureCatalog(`acroForm`),e.ensureDoc(`xfaDatasets`),e.ensureCatalog(`structTreeRoot`),e.ensureCatalog(`baseUrl`),e.ensureCatalog(`attachments`),e.ensureCatalog(`globalColorSpaceCache`)]).then(([t,n,r,i,a,o])=>({pdfManager:e,acroForm:t instanceof L?t:L.empty,xfaDatasets:n,structTreeRoot:r,baseUrl:i,attachments:a,globalColorSpaceCache:o}),e=>(j(`createGlobals: "${e}".`),null))}static async create(e,t,n,r,i,a,o,s){let c=i?await this._getPageIndex(e,t,n.pdfManager):null;return n.pdfManager.ensure(this,`_create`,[e,t,n,r,i,a,o,c,s])}static _create(e,t,n,r,i=!1,a=null,o=null,s=null,c=null){let l=e.fetchIfRef(t);if(!(l instanceof L))return;let u=l.get(`Subtype`);if(u=u instanceof I?u.name:null,o&&!o.has(v[u?.toUpperCase()]))return null;let{acroForm:d,pdfManager:f}=n,p=t instanceof R?t.toString():`annot_${r.createObjId()}`,m={xref:e,ref:t,dict:l,subtype:u,id:p,annotationGlobals:n,collectFields:i,orphanFields:a,needAppearances:!i&&d.get(`NeedAppearances`)===!0,pageIndex:s,evaluatorOptions:f.evaluatorOptions,pageRef:c};switch(u){case`Link`:return new ob(m);case`Text`:return new ab(m);case`Widget`:let e=ot({dict:l,key:`FT`});switch(e=e instanceof I?e.name:null,e){case`Tx`:return new tb(m);case`Btn`:return new nb(m);case`Ch`:return new rb(m);case`Sig`:return new ib(m)}return j(`Unimplemented widget field type "${e}", falling back to base field type.`),new eb(m);case`Popup`:return new sb(m);case`FreeText`:return new cb(m);case`Line`:return new lb(m);case`Square`:return new ub(m);case`Circle`:return new db(m);case`PolyLine`:return new fb(m);case`Polygon`:return new pb(m);case`Caret`:return new mb(m);case`Ink`:return new hb(m);case`Highlight`:return new gb(m);case`Underline`:return new _b(m);case`Squiggly`:return new vb(m);case`StrikeOut`:return new yb(m);case`Stamp`:return new bb(m);case`FileAttachment`:return new xb(m);default:return i||j(u?`Unimplemented annotation type "${u}", falling back to base annotation.`:`Annotation is missing the required /Subtype.`),new Zy(m)}}static async _getPageIndex(e,t,n){try{let r=await e.fetchIfRefAsync(t);if(!(r instanceof L))return-1;let i=r.getRaw(`P`);if(i instanceof R)try{return await n.ensureCatalog(`getPageIndex`,[i])}catch(e){A(`_getPageIndex -- not a valid page reference: "${e}".`)}if(r.has(`Kids`))return-1;let a=await n.ensureDoc(`numPages`);for(let e=0;e<a;e++){let r=await n.getPage(e),i=await n.ensure(r,`annotations`);for(let n of i)if(n instanceof R&&Be(n,t))return e}}catch(e){j(`_getPageIndex: "${e}".`)}return-1}static generateImages(e,t,n){if(!n)return j(`generateImages: OffscreenCanvas is not supported, cannot save or print some annotations with images.`),null;let r;for(let{bitmapId:n,bitmap:i}of e)i&&(r||=new Map,r.set(n,Eu(i,t)));return r}static async saveNewAnnotations(e,t,n,r,i,a){let o,s=[],{isOffscreenCanvasSupported:c}=e.options;for(let l of r)if(!l.deleted)switch(l.annotationType){case p.FREETEXT:if(!o){let e=new L(t);e.setIfName(`BaseFont`,`Helvetica`),e.setIfName(`Type`,`Font`),e.setIfName(`Subtype`,`Type1`),e.setIfName(`Encoding`,`WinAnsiEncoding`),o=t.getNewTemporaryRef(),a.put(o,{data:e})}s.push(cb.createNewAnnotation(t,l,a,{evaluator:e,task:n,baseFontRef:o}));break;case p.HIGHLIGHT:l.quadPoints?s.push(gb.createNewAnnotation(t,l,a)):s.push(hb.createNewAnnotation(t,l,a));break;case p.INK:s.push(hb.createNewAnnotation(t,l,a));break;case p.STAMP:let r=c?await i?.get(l.bitmapId):null;if(r?.imageStream){let{imageStream:e,smaskStream:n}=r;if(n){let r=t.getNewTemporaryRef();a.put(r,{data:n}),e.dict.set(`SMask`,r)}let i=r.imageRef=t.getNewTemporaryRef();a.put(i,{data:e}),r.imageStream=null,r.imageRenderStream=null,r.smaskStream=null,r.smaskRenderStream=null}s.push(bb.createNewAnnotation(t,l,a,{image:r}));break;case p.SIGNATURE:s.push(bb.createNewAnnotation(t,l,a,{}));break}return{annotations:(await Promise.all(s)).flat()}}static async printNewAnnotations(e,t,n,r,i){if(!r)return null;let{options:a,xref:o}=t,s=[];for(let c of r)if(!c.deleted)switch(c.annotationType){case p.FREETEXT:s.push(cb.createNewPrintAnnotation(e,o,c,{evaluator:t,task:n,evaluatorOptions:a}));break;case p.HIGHLIGHT:c.quadPoints?s.push(gb.createNewPrintAnnotation(e,o,c,{evaluatorOptions:a})):s.push(hb.createNewPrintAnnotation(e,o,c,{evaluatorOptions:a}));break;case p.INK:s.push(hb.createNewPrintAnnotation(e,o,c,{evaluatorOptions:a}));break;case p.STAMP:let r=a.isOffscreenCanvasSupported?await i?.get(c.bitmapId):null;if(r?.imageStream){let{imageStream:e,imageRenderStream:t,smaskStream:n,smaskRenderStream:i}=r,a=t||new ar(e,e.length);(n||i)&&a.dict.set(`SMask`,i||n),r.imageRef=a,r.imageStream=null,r.imageRenderStream=null,r.smaskStream=null,r.smaskRenderStream=null}s.push(bb.createNewPrintAnnotation(e,o,c,{image:r,evaluatorOptions:a}));break;case p.SIGNATURE:s.push(bb.createNewPrintAnnotation(e,o,c,{evaluatorOptions:a}));break}return Promise.all(s)}};function qy(e,t=new Uint8ClampedArray(3)){if(!Array.isArray(e))return t;let n=t||new Uint8ClampedArray(3);switch(e.length){case 0:return null;case 1:return Ln.gray.getRgbItem(e,0,n,0),n;case 3:return Ln.rgb.getRgbItem(e,0,n,0),n;case 4:return Ln.cmyk.getRgbItem(e,0,n,0),n;default:return t}}function Jy(e,t=null){return e&&Array.from(e,e=>e/255)||t}function Yy(e,t){let n=e.getArray(`QuadPoints`);if(!pt(n,null)||n.length===0||n.length%8>0)return null;let r=new Float32Array(n.length);for(let e=0,i=n.length;e<i;e+=8){let[i,a,o,s,c,l,u,d]=n.slice(e,e+8),f=Math.min(i,o,c,u),p=Math.max(i,o,c,u),m=Math.min(a,s,l,d),h=Math.max(a,s,l,d);if(t!==null&&(f<t[0]||p>t[2]||m<t[1]||h>t[3]))return null;r.set([f,h,p,h,f,m,p,m],e)}return r}function Xy(e,t,n){let r=a.slice();ge.axialAlignedBoundingBox(t,n,r);let[i,o,s,c]=r;if(i===s||o===c)return[1,0,0,1,e[0],e[1]];let l=(e[2]-e[0])/(s-i),u=(e[3]-e[1])/(c-o);return[l,0,0,u,e[0]-i*l,e[1]-o*u]}var Zy=class{_oc=void 0;constructor(e){let{annotationGlobals:t,dict:n,orphanFields:r,ref:i,subtype:a,xref:o}=e,s=r?.get(i);s&&n.set(`Parent`,s),this.setTitle(n.get(`T`)),this.setContents(n.get(`Contents`)),this.setModificationDate(n.get(`M`)),this.setFlags(n.get(`F`)),this.setRectangle(n.getArray(`Rect`)),this.setColor(n.getArray(`C`)),this.setBorderStyle(n),this.setAppearance(n),this.#e(o,n);let c=n.get(`MK`);this.setBorderAndBackgroundColors(c),this.setRotation(c,n),this.ref=e.ref instanceof R?e.ref:null,this._streams=[],this.appearance&&this._streams.push(this.appearance);let l=!!(this.flags&b.LOCKED),u=!!(this.flags&b.LOCKEDCONTENTS);if(this.data={annotationType:v[a?.toUpperCase()],annotationFlags:this.flags,borderStyle:this.borderStyle,color:this.color,backgroundColor:this.backgroundColor,borderColor:this.borderColor,rotation:this.rotation,contentsObj:this._contents,hasAppearance:!!this.appearance,id:e.id,modificationDate:this.modificationDate,oc:this._oc,rect:this.rectangle,subtype:a,hasOwnCanvas:!1,noRotate:!!(this.flags&b.NOROTATE),noHTML:l&&u,isEditable:!1,structParent:-1},t.structTreeRoot){let r=n.get(`StructParent`);this.data.structParent=r=Number.isInteger(r)&&r>=0?r:-1,t.structTreeRoot.addAnnotationIdToPage(e.pageRef,r)}if(e.collectFields){let t=n.get(`Kids`);if(Array.isArray(t)){let e=[];for(let n of t)n instanceof R&&e.push(n.toString());e.length!==0&&(this.data.kidIds=e)}this.data.actions=xt(o,n,C),this.data.fieldName=this._constructFieldName(n),this.data.pageIndex=e.pageIndex}let d=n.get(`IT`);d instanceof I&&(this.data.it=d.name),this._isOffscreenCanvasSupported=e.evaluatorOptions.isOffscreenCanvasSupported,this._fallbackFontDict=null,this._needAppearances=!1}_hasFlag(e,t){return!!(e&t)}_buildFlags(e,t){let{flags:n}=this;return e===void 0?t===void 0?void 0:t?n&~b.PRINT:n&~b.HIDDEN|b.PRINT:e?(n|=b.PRINT,t?n&~b.NOVIEW|b.HIDDEN:n&~b.HIDDEN|b.NOVIEW):(n&=~(b.HIDDEN|b.NOVIEW),t?n&~b.PRINT:n|b.PRINT)}_isViewable(e){return!this._hasFlag(e,b.INVISIBLE)&&!this._hasFlag(e,b.NOVIEW)}_isPrintable(e){return this._hasFlag(e,b.PRINT)&&!this._hasFlag(e,b.HIDDEN)&&!this._hasFlag(e,b.INVISIBLE)}mustBeViewed(e,t){let n=e?.get(this.data.id)?.noView;return n===void 0?this.viewable&&!this._hasFlag(this.flags,b.HIDDEN):!n}mustBePrinted(e){let t=e?.get(this.data.id)?.noPrint;return t===void 0?this.printable:!t}mustBeViewedWhenEditing(e,t=null){return e?!this.data.isEditable:!t?.has(this.data.id)}get viewable(){return this.data.quadPoints===null?!1:this.flags===0?!0:this._isViewable(this.flags)}get printable(){return this.data.quadPoints===null||this.flags===0?!1:this._isPrintable(this.flags)}_parseStringHelper(e){let t=typeof e==`string`?qe(e):``;return{str:t,dir:t&&fl(t).dir===`rtl`?`rtl`:`ltr`}}setDefaultAppearance(e){let{dict:t,annotationGlobals:n}=e,r=ot({dict:t,key:`DA`})||n.acroForm.get(`DA`);this._defaultAppearance=typeof r==`string`?r:``,this.data.defaultAppearanceData=Wl(this._defaultAppearance)}setTitle(e){this._title=this._parseStringHelper(e)}setContents(e){this._contents=this._parseStringHelper(e)}setModificationDate(e){this.modificationDate=typeof e==`string`?e:null}setFlags(e){this.flags=Number.isInteger(e)&&e>0?e:0,this.flags&b.INVISIBLE&&this.constructor.name!==`Annotation`&&(this.flags^=b.INVISIBLE)}hasFlag(e){return this._hasFlag(this.flags,e)}setRectangle(e){this.rectangle=gt(e,[0,0,0,0])}setColor(e){this.color=qy(e)}setLineEndings(e){if(this.lineEndings=[`None`,`None`],Array.isArray(e)&&e.length===2)for(let t=0;t<2;t++){let n=e[t];if(n instanceof I)switch(n.name){case`None`:continue;case`Square`:case`Circle`:case`Diamond`:case`OpenArrow`:case`ClosedArrow`:case`Butt`:case`ROpenArrow`:case`RClosedArrow`:case`Slash`:this.lineEndings[t]=n.name;continue}j(`Ignoring invalid lineEnding: ${n}`)}}setRotation(e,t){this.rotation=0;let n=e instanceof L?e.get(`R`)||0:t.get(`Rotate`)||0;Number.isInteger(n)&&n!==0&&(n%=360,n<0&&(n+=360),n%90==0&&(this.rotation=n))}setBorderAndBackgroundColors(e){e instanceof L?(this.borderColor=qy(e.getArray(`BC`),null),this.backgroundColor=qy(e.getArray(`BG`),null)):this.borderColor=this.backgroundColor=null}setBorderStyle(e){if(this.borderStyle=new Qy,e instanceof L)if(e.has(`BS`)){let t=e.get(`BS`);if(t instanceof L){let e=t.get(`Type`);(!e||Le(e,`Border`))&&(this.borderStyle.setWidth(t.get(`W`),this.rectangle),this.borderStyle.setStyle(t.get(`S`)),this.borderStyle.setDashArray(t.getArray(`D`)))}}else if(e.has(`Border`)){let t=e.getArray(`Border`);Array.isArray(t)&&(t.length>=3?(this.borderStyle.setHorizontalCornerRadius(t[0]),this.borderStyle.setVerticalCornerRadius(t[1]),this.borderStyle.setWidth(t[2],this.rectangle),t.length===4&&this.borderStyle.setDashArray(t[3],!0)):t.length===0&&this.borderStyle.setWidth(0))}else this.borderStyle.setWidth(0)}setAppearance(e){this.appearance=null;let t=e.get(`AP`);if(!(t instanceof L))return;let n=t.get(`N`);if(n instanceof Ve){this.appearance=n;return}if(!(n instanceof L))return;let r=e.get(`AS`);if(!(r instanceof I)||!n.has(r.name))return;let i=n.get(r.name);i instanceof Ve&&(this.appearance=i)}#e(e,t){if(t.has(`OC`))try{this._oc=kl(e,t.get(`OC`),null)}catch(e){j(`#setOptionalContent: ${e}`)}}async loadResources(e,t){let n=await t.dict.getAsync(`Resources`);return n&&await ku.load(n,e,n.xref),n}async getOperatorList(e,t,n,r){let{hasOwnCanvas:i,id:a,rect:o}=this.data,s=this.appearance,c=!!(i&&n&d.DISPLAY);if(c&&(this.width===0||this.height===0))return this.data.hasOwnCanvas=!1,{opList:new ur,separateForm:!1,separateCanvas:!1};if(!s){if(!c)return{opList:new ur,separateForm:!1,separateCanvas:!1};s=new wn(``),s.dict=new L}let l=s.dict,u=await this.loadResources(Ze,s),f=ht(l.getArray(`BBox`),[0,0,1,1]),p=mt(l.getArray(`Matrix`),Xe),m=Xy(o,f,p),h=new ur,g=this._oc;return g!==void 0&&h.addOp(D.beginMarkedContentProps,[`OC`,g]),h.addOp(D.beginAnnotation,[a,o,m,p,c]),await e.getOperatorList({stream:s,task:t,resources:u,operatorList:h,fallbackFontDict:this._fallbackFontDict}),h.addOp(D.endAnnotation,[]),g!==void 0&&h.addOp(D.endMarkedContent,[]),this.reset(),{opList:h,separateForm:!1,separateCanvas:c}}async save(e,t,n,r){return null}get overlaysTextContent(){return!1}get hasTextContent(){return!1}async extractTextContent(e,t,n){if(!this.appearance)return;let r=await this.loadResources(Qe,this.appearance),i=[],a=[],o=null,s={desiredSize:Math.Infinity,ready:!0,enqueue(e,t){for(let t of e.items)t.str!==void 0&&(o||=t.transform.slice(-2),a.push(t.str),t.hasEOL&&(i.push(a.join(``).trimEnd()),a.length=0))}};if(await e.getTextContent({stream:this.appearance,task:t,resources:r,includeMarkedContent:!0,keepWhiteSpace:!0,sink:s,viewBox:n}),this.reset(),a.length&&i.push(a.join(``).trimEnd()),i.length>1||i[0]){let e=this.appearance.dict,t=ht(e.getArray(`BBox`),null),n=mt(e.getArray(`Matrix`),null);this.data.textPosition=this._transformPoint(o,t,n),this.data.textContent=i}}_transformPoint(e,t,n){let{rect:r}=this.data;t||=[0,0,1,1],n||=[1,0,0,1,0,0];let i=Xy(r,t,n);i[4]-=r[0],i[5]-=r[1];let a=e.slice();return ge.applyTransform(a,i),ge.applyTransform(a,n),a}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 e of this._streams)e.reset()}_constructFieldName(e){if(!e.has(`T`)&&!e.has(`Parent`))return j(`Unknown field name, falling back to empty field name.`),``;if(!e.has(`Parent`))return qe(e.get(`T`));let t=[];e.has(`T`)&&t.unshift(qe(e.get(`T`)));let n=e,r=new Fe;for(e.objId&&r.put(e.objId);n.has(`Parent`)&&(n=n.get(`Parent`),!(!(n instanceof L)||n.objId&&r.has(n.objId)));)n.objId&&r.put(n.objId),n.has(`T`)&&t.unshift(qe(n.get(`T`)));return t.join(`.`)}get width(){return this.data.rect[2]-this.data.rect[0]}get height(){return this.data.rect[3]-this.data.rect[1]}},Qy=class{width=1;rawWidth=1;style=S.SOLID;dashArray=[3];horizontalCornerRadius=0;verticalCornerRadius=0;setWidth(e,t=[0,0,0,0]){if(e instanceof I){this.width=0;return}if(typeof e==`number`){if(e>0){this.rawWidth=e;let n=(t[2]-t[0])/2,r=(t[3]-t[1])/2;n>0&&r>0&&(e>n||e>r)&&(j(`AnnotationBorderStyle.setWidth - ignoring width: ${e}`),e=1)}this.width=e}}setStyle(e){if(e instanceof I)switch(e.name){case`S`:this.style=S.SOLID;break;case`D`:this.style=S.DASHED;break;case`B`:this.style=S.BEVELED;break;case`I`:this.style=S.INSET;break;case`U`:this.style=S.UNDERLINE;break;default:break}}setDashArray(e,t=!1){if(Array.isArray(e)){let n=!0,r=!0;for(let t of e)if(+t>=0)t>0&&(r=!1);else{n=!1;break}e.length===0||n&&!r?(this.dashArray=e,t&&this.setStyle(I.get(`D`))):this.width=0}else e&&(this.width=0)}setHorizontalCornerRadius(e){Number.isInteger(e)&&(this.horizontalCornerRadius=e)}setVerticalCornerRadius(e){Number.isInteger(e)&&(this.verticalCornerRadius=e)}},$y=class extends Zy{constructor(e){super(e);let{dict:t}=e;if(t.has(`IRT`)){let e=t.getRaw(`IRT`);this.data.inReplyTo=e instanceof R?e.toString():null;let n=t.get(`RT`);this.data.replyType=n instanceof I?n.name:y.REPLY}let n=null;if(this.data.replyType===y.GROUP){let e=t.get(`IRT`);this.setTitle(e.get(`T`)),this.data.titleObj=this._title,this.setContents(e.get(`Contents`)),this.data.contentsObj=this._contents,e.has(`CreationDate`)?(this.setCreationDate(e.get(`CreationDate`)),this.data.creationDate=this.creationDate):this.data.creationDate=null,e.has(`M`)?(this.setModificationDate(e.get(`M`)),this.data.modificationDate=this.modificationDate):this.data.modificationDate=null,n=e.getRaw(`Popup`),e.has(`C`)?(this.setColor(e.getArray(`C`)),this.data.color=this.color):this.data.color=null}else this.data.titleObj=this._title,this.setCreationDate(t.get(`CreationDate`)),this.data.creationDate=this.creationDate,n=t.getRaw(`Popup`),t.has(`C`)||(this.data.color=null);this.data.popupRef=n instanceof R?n.toString():null,t.has(`RC`)&&(this.data.richText=Gy.getRichTextAsHtml(t.get(`RC`)))}setCreationDate(e){this.creationDate=typeof e==`string`?e:null}_setDefaultAppearance({xref:e,extra:t,strokeColor:n,fillColor:r,blendMode:a,strokeAlpha:o,fillAlpha:s,pointsCallback:c}){let l=this.data.rect=i.slice(),u=[`q`];t&&u.push(t),n&&u.push(`${n[0]} ${n[1]} ${n[2]} RG`),r&&u.push(`${r[0]} ${r[1]} ${r[2]} rg`);let d=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 e=0,t=d.length;e<t;e+=8){let t=c(u,d.subarray(e,e+8));ge.rectBoundingBox(...t,l)}u.push(`Q`);let f=new L(e),p=new L(e);p.setIfName(`Subtype`,`Form`);let m=new wn(u.join(` `));m.dict=p,f.set(`Fm0`,m);let h=new L(e);a&&h.setIfName(`BM`,a),h.setIfNumber(`CA`,o),h.setIfNumber(`ca`,s);let g=new L(e);g.set(`GS0`,h);let _=new L(e);_.set(`ExtGState`,g),_.set(`XObject`,f);let v=new L(e);v.set(`Resources`,_),v.set(`BBox`,l),this.appearance=new wn(`/GS0 gs /Fm0 Do`),this.appearance.dict=v,this._streams.push(this.appearance,m)}static async createNewAnnotation(e,t,n,r){let i=t.ref||=e.getNewTemporaryRef(),a=await this.createNewAppearanceStream(t,e,r),o;if(a){let r=e.getNewTemporaryRef();o=this.createNewDict(t,e,{apRef:r}),n.put(r,{data:a})}else o=this.createNewDict(t,e,{});Number.isInteger(t.parentTreeId)&&o.set(`StructParent`,t.parentTreeId),n.put(i,{data:o});let s={ref:i},{popup:c}=t;if(c){if(c.deleted)return o.delete(`Popup`),o.delete(`Contents`),o.delete(`RC`),s;let t=c.ref||=e.getNewTemporaryRef();c.parent=i;let r=sb.createNewDict(c,e);return n.put(t,{data:r}),o.setIfDefined(`Contents`,Ue(c.contents)),o.set(`Popup`,t),[s,{ref:t}]}return s}static async createNewPrintAnnotation(e,t,n,r){let i=await this.createNewAppearanceStream(n,t,r),a=this.createNewDict(n,t,i?{ap:i}:{}),o=new this.prototype.constructor({dict:a,xref:t,annotationGlobals:e,evaluatorOptions:r.evaluatorOptions});return n.ref&&(o.ref=o.refToReplace=n.ref),o}},eb=class e extends Zy{constructor(e){super(e);let{dict:t,xref:n,annotationGlobals:r}=e,i=this.data;this._needAppearances=e.needAppearances,i.fieldName===void 0&&(i.fieldName=this._constructFieldName(t)),i.actions===void 0&&(i.actions=xt(n,t,C));let a=ot({dict:t,key:`V`,getArray:!0});i.fieldValue=this._decodeFormValue(a);let o=ot({dict:t,key:`DV`,getArray:!0});if(i.defaultFieldValue=this._decodeFormValue(o),a===void 0&&r.xfaDatasets){let e=this._title.str;e&&(this._hasValueFromXFA=!0,i.fieldValue=a=r.xfaDatasets.getValue(e))}a===void 0&&i.defaultFieldValue!==null&&(i.fieldValue=i.defaultFieldValue),i.alternativeText=qe(t.get(`TU`)||``),this.setDefaultAppearance(e),i.hasAppearance||=this._needAppearances&&i.fieldValue!==void 0&&i.fieldValue!==null;let s=ot({dict:t,key:`FT`});i.fieldType=s instanceof I?s.name:null;let c=ot({dict:t,key:`DR`}),l=r.acroForm.get(`DR`),u=this.appearance?.dict.get(`Resources`);this._fieldResources={localResources:c,acroFormResources:l,appearanceResources:u,mergedResources:L.merge({xref:n,dictArray:[c,u,l],mergeSubDicts:!0})},i.fieldFlags=ot({dict:t,key:`Ff`}),(!Number.isInteger(i.fieldFlags)||i.fieldFlags<0)&&(i.fieldFlags=0),i.password=this.hasFieldFlag(x.PASSWORD),i.readOnly=this.hasFieldFlag(x.READONLY),i.required=this.hasFieldFlag(x.REQUIRED),i.hidden=this._hasFlag(i.annotationFlags,b.HIDDEN)||this._hasFlag(i.annotationFlags,b.NOVIEW)}_decodeFormValue(e){if(Array.isArray(e)){let t=e.map(e=>this._decodeFormValue(e)).filter(e=>e!==null);return t.length>0?t:null}else if(e instanceof I)return e.name;else if(typeof e==`string`)return qe(e);return null}hasFieldFlag(e){return!!(this.data.fieldFlags&e)}_isViewable(e){return!0}mustBeViewed(e,t){return t?this.viewable:super.mustBeViewed(e,t)&&!this._hasFlag(this.flags,b.NOVIEW)}getRotationMatrix(e){let t=e?.get(this.data.id)?.rotation;return t===void 0&&(t=this.rotation),t===0?Xe:jt(t,this.width,this.height)}getBorderAndBackgroundAppearances(e){let t=e?.get(this.data.id)?.rotation;if(t===void 0&&(t=this.rotation),!this.backgroundColor&&!this.borderColor)return``;let n=t===0||t===180?`0 0 ${this.width} ${this.height} re`:`0 0 ${this.height} ${this.width} re`,r=``;if(this.backgroundColor&&(r=`${ql(this.backgroundColor,!0)} ${n} f `),this.borderColor){let e=this.borderStyle.width||1;r+=`${e} w ${ql(this.borderColor,!1)} ${n} S `}return r}async getOperatorList(e,t,n,r){if(n&d.ANNOTATIONS_FORMS&&!(this instanceof ib)&&!this.data.noHTML&&!this.data.hasOwnCanvas)return{opList:new ur,separateForm:!0,separateCanvas:!1};if(!this._hasText)return super.getOperatorList(e,t,n,r);let i=await this._getAppearance(e,t,n,r);if(this.appearance&&i===null)return super.getOperatorList(e,t,n,r);let a=new ur;if(!this._defaultAppearance||i===null)return{opList:a,separateForm:!1,separateCanvas:!1};let o=!!(this.data.hasOwnCanvas&&n&d.DISPLAY),s=[1,0,0,1,0,0],c=[0,0,this.width,this.height],l=Xy(this.data.rect,c,s),u=this._oc;u!==void 0&&a.addOp(D.beginMarkedContentProps,[`OC`,u]),a.addOp(D.beginAnnotation,[this.data.id,this.data.rect,l,this.getRotationMatrix(r),o]);let f=new wn(i);return await e.getOperatorList({stream:f,task:t,resources:this._fieldResources.mergedResources,operatorList:a}),a.addOp(D.endAnnotation,[]),u!==void 0&&a.addOp(D.endMarkedContent,[]),{opList:a,separateForm:!1,separateCanvas:o}}_getMKDict(e){let t=new L(null);return e&&t.set(`R`,e),t.setIfArray(`BC`,Jy(this.borderColor)),t.setIfArray(`BG`,Jy(this.backgroundColor)),t.size>0?t:null}amendSavedDict(e,t){}setValue(e,t,n,r){let{dict:i,ref:a}=st(e,this.ref,n);if(!i)e.set(`V`,t);else if(!r.has(a)){let e=i.clone();return e.set(`V`,t),r.put(a,{data:e}),e}return null}async save(e,t,n,r){let i=n?.get(this.data.id),a=this._buildFlags(i?.noView,i?.noPrint),o=i?.value,s=i?.rotation;if(o===this.data.fieldValue||o===void 0){if(!this._hasValueFromXFA&&s===void 0&&a===void 0)return;o||=this.data.fieldValue}if(s===void 0&&!this._hasValueFromXFA&&Array.isArray(o)&&Array.isArray(this.data.fieldValue)&&ye(o,this.data.fieldValue)&&a===void 0)return;s===void 0&&(s=this.rotation);let c=null;if(!this._needAppearances&&(c=await this._getAppearance(e,t,d.SAVE,n),c===null&&a===void 0))return;let l=!1;c?.needAppearances&&(l=!0,c=null);let{xref:u}=e,f=u.fetchIfRef(this.ref);if(!(f instanceof L))return;let p=new L(u);for(let[e,t]of f.getRawEntries())e!==`AP`&&p.set(e,t);if(a!==void 0&&(p.set(`F`,a),c===null&&!l)){let e=f.getRaw(`AP`);e&&p.set(`AP`,e)}let m={path:this.data.fieldName,value:o},h=this.setValue(p,Array.isArray(o)?o.map(Ue):Ue(o),u,r);this.amendSavedDict(n,h||p);let g=this._getMKDict(s);if(g&&p.set(`MK`,g),r.put(this.ref,{data:p,xfa:m,needAppearances:l}),c!==null){let e=u.getNewTemporaryRef(),t=new L(u);p.set(`AP`,t),t.set(`N`,e);let i=this._getSaveFieldResources(u),a=new wn(c),o=a.dict=new L(u);o.setIfName(`Subtype`,`Form`),o.set(`Resources`,i);let l=s%180==0?[0,0,this.width,this.height]:[0,0,this.height,this.width];o.set(`BBox`,l);let d=this.getRotationMatrix(n);d!==Xe&&o.set(`Matrix`,d),r.put(e,{data:a,xfa:null,needAppearances:!1})}p.set(`M`,`D:${At()}`)}async _getAppearance(t,n,r,i){if(this.data.password)return null;let a=i?.get(this.data.id),o,s;if(a&&(o=a.formattedValue||a.value,s=a.rotation),s===void 0&&o===void 0&&!this._needAppearances&&(!this._hasValueFromXFA||this.appearance))return null;let c=this.getBorderAndBackgroundAppearances(i);if(o===void 0&&(o=this.data.fieldValue,!o)||(Array.isArray(o)&&o.length===1&&(o=o[0]),N(typeof o==`string`,"Expected `value` to be a string."),o=o.trimEnd(),this.data.combo&&(o=this.data.options.find(({exportValue:e})=>o===e)?.displayValue||o),o===``))return`/Tx BMC q ${c}Q EMC`;s===void 0&&(s=this.rotation);let u=-1,f;this.data.multiLine?(f=o.split(/\\r\\n?|\\n/).map(e=>e.normalize(`NFC`)),u=f.length):f=[o.replace(/\\r\\n?|\\n/,``).normalize(`NFC`)];let{width:p,height:m}=this;(s===90||s===270)&&([p,m]=[m,p]),this._defaultAppearance||(this.data.defaultAppearanceData=Wl(this._defaultAppearance=`/Helvetica 0 Tf 0 g`));let h=await e._getFontData(t,n,this.data.defaultAppearanceData,this._fieldResources.mergedResources),g,_,v,y=[],b=!1;for(let e of f){let t=h.encodeString(e);t.length>1&&(b=!0),y.push(t.join(``))}if(b&&r&d.SAVE)return{needAppearances:!0};if(b&&this._isOffscreenCanvasSupported){let r=this.data.comb?`monospace`:`sans-serif`,i=new Yl(t.xref,r),a=i.createFontResources(f.join(``)),s=a.getRaw(`Font`);if(this._fieldResources.mergedResources.has(`Font`)){let e=this._fieldResources.mergedResources.get(`Font`);for(let[t,n]of s.getRawEntries())e.set(t,n)}else this._fieldResources.mergedResources.set(`Font`,s);let c=i.fontName.name;h=await e._getFontData(t,n,{fontName:c,fontSize:0},a);for(let e=0,t=y.length;e<t;e++)y[e]=Ge(f[e]);let l=Object.assign(Object.create(null),this.data.defaultAppearanceData);this.data.defaultAppearanceData.fontSize=0,this.data.defaultAppearanceData.fontName=c,[g,_,v]=this._computeFontSize(m-2,p-4,o,h,u),this.data.defaultAppearanceData=l}else this._isOffscreenCanvasSupported||j(`_getAppearance: OffscreenCanvas is not supported, annotation may not render correctly.`),[g,_,v]=this._computeFontSize(m-2,p-4,o,h,u);let x=h.descent;x=isNaN(x)?l*v:Math.max(l*v,Math.abs(x)*_);let S=Math.min(Math.floor((m-_)/2),1),C=this.data.textAlignment;if(this.data.multiLine)return this._getMultilineAppearance(g,y,h,_,p,m,C,2,S,x,v,i);if(this.data.comb)return this._getCombAppearance(g,h,y[0],_,p,m,2,S,x,v,C,fl(f[0]).dir===`rtl`,i);let w=S+x;if(C===0||C>2)return`/Tx BMC q ${c}BT `+g+` 1 0 0 1 ${Ot(2)} ${Ot(w)} Tm (${yt(y[0])}) Tj ET Q EMC`;let T=this._renderText(y[0],h,_,p,C,{shift:0},2,w);return`/Tx BMC q ${c}BT `+g+` 1 0 0 1 0 0 Tm ${T} ET Q EMC`}static async _getFontData(e,t,n,r){let i=new ur,a={font:null,clone(){return this}},{fontName:o,fontSize:s}=n;return await e.handleSetFont(r,[o&&I.get(o),s],null,i,t,a,null),a.font}_getTextWidth(e,t){return Math.sumPrecise(t.charsToGlyphs(e).map(e=>e.width))/1e3}_computeFontSize(e,t,n,r,i){let{fontSize:a}=this.data.defaultAppearanceData,o=(a||12)*s,c=Math.round(e/o);if(!a){let l=e=>Math.floor(e*100)/100;if(i===-1){let i=this._getTextWidth(n,r);a=l(Math.min(e/s,t/i)),c=1}else{let u=n.split(/\\r\\n?|\\n/),d=[];for(let e of u){let t=r.encodeString(e).join(``),n=r.charsToGlyphs(t),i=r.getCharPositions(t);d.push({line:t,glyphs:n,positions:i})}let f=n=>{let i=0;for(let a of d){let o=this._splitLine(null,r,n,t,a);if(i+=o.length*n,i>e)return!0}return!1};for(c=Math.max(c,i);;){if(o=e/c,a=l(o/s),f(a)){c++;continue}break}}let{fontName:u,fontColor:d}=this.data.defaultAppearanceData;this._defaultAppearance=Jl({fontSize:a,fontName:u,fontColor:d})}return[this._defaultAppearance,a,e/c]}_renderText(e,t,n,r,i,a,o,s){let c;c=i===1?(r-this._getTextWidth(e,t)*n)/2:i===2?r-this._getTextWidth(e,t)*n-o:o;let l=Ot(c-a.shift);return a.shift=c,s=Ot(s),`${l} ${s} Td (${yt(e)}) Tj`}_getSaveFieldResources(e){let{localResources:t,appearanceResources:n,acroFormResources:r}=this._fieldResources,i=this.data.defaultAppearanceData?.fontName;if(!i)return t||L.empty;for(let e of[t,n])if(e instanceof L){let t=e.get(`Font`);if(t instanceof L&&t.has(i))return e}if(r instanceof L){let n=r.get(`Font`);if(n instanceof L&&n.has(i)){let r=new L(e);r.set(i,n.getRaw(i));let a=new L(e);return a.set(`Font`,r),L.merge({xref:e,dictArray:[a,t],mergeSubDicts:!0})}}return t||L.empty}getFieldObject(){return null}},tb=class extends eb{constructor(e){super(e);let{dict:t}=e;t.has(`PMD`)&&(this.flags|=b.HIDDEN,this.data.hidden=!0,j(`Barcodes are not supported`)),this.data.hasOwnCanvas=this.data.readOnly&&!this.data.noHTML,this._hasText=!0,typeof this.data.fieldValue!=`string`&&(this.data.fieldValue=``);let n=ot({dict:t,key:`Q`});(!Number.isInteger(n)||n<0||n>2)&&(n=null),this.data.textAlignment=n;let r=ot({dict:t,key:`MaxLen`});(!Number.isInteger(r)||r<0)&&(r=0),this.data.maxLen=r,this.data.multiLine=this.hasFieldFlag(x.MULTILINE),this.data.comb=this.hasFieldFlag(x.COMB)&&!this.data.multiLine&&!this.data.password&&!this.hasFieldFlag(x.FILESELECT)&&this.data.maxLen!==0,this.data.doNotScroll=this.hasFieldFlag(x.DONOTSCROLL);let{data:{actions:i}}=this;if(!i)return;let a=/^AF(Date|Time)_(?:Keystroke|Format)(?:Ex)?\\([\'"]?([^\'"]+)[\'"]?\\);$/,o=!1;(i.Format?.length===1&&i.Keystroke?.length===1&&a.test(i.Format[0])&&a.test(i.Keystroke[0])||i.Format?.length===0&&i.Keystroke?.length===1&&a.test(i.Keystroke[0])||i.Keystroke?.length===0&&i.Format?.length===1&&a.test(i.Format[0]))&&(o=!0);let s=[];i.Format&&s.push(...i.Format),i.Keystroke&&s.push(...i.Keystroke),o&&(delete i.Keystroke,i.Format=s);for(let e of s){let t=e.match(a);if(!t)continue;let n=t[1]===`Date`,r=t[2],i=parseInt(r,10);if(!isNaN(i)&&Math.floor(Math.log10(i))+1===t[2].length&&(r=(n?Xl:Zl)[i]??r),this.data.datetimeFormat=r,!o)break;if(n){/HH|MM|ss|h/.test(r)?(this.data.datetimeType=`datetime-local`,this.data.timeStep=/ss/.test(r)?1:60):this.data.datetimeType=`date`;break}this.data.datetimeType=`time`,this.data.timeStep=/ss/.test(r)?1:60;break}}get hasTextContent(){return!!this.appearance&&!this._needAppearances}_getCombAppearance(e,t,n,r,i,a,o,s,c,l,u,d,f){let p=i/this.data.maxLen,m=this.getBorderAndBackgroundAppearances(f),h=[],g=t.getCharPositions(n);for(let[e,t]of g)h.push(`(${yt(n.substring(e,t))}) Tj`);d&&h.reverse();let _=p*g.length,v=o;u===1?v+=Math.floor((i-_)/(2*p))*p:u===2&&(v+=i-_);let y=h.join(` ${Ot(p)} 0 Td `);return`/Tx BMC q ${m}BT `+e+` 1 0 0 1 ${Ot(v)} ${Ot(s+c)} Tm ${y} ET Q EMC`}_getMultilineAppearance(e,t,n,r,i,a,o,s,c,l,u,d){let f=[],p=i-2*s,m={shift:0};for(let e=0,a=t.length;e<a;e++){let a=t[e],d=this._splitLine(a,n,r,p);for(let t=0,a=d.length;t<a;t++){let a=d[t],p=e===0&&t===0?-c-(u-l):-u;f.push(this._renderText(a,n,r,i,o,m,s,p))}}let h=this.getBorderAndBackgroundAppearances(d),g=f.join(`\n`);return`/Tx BMC q ${h}BT `+e+` 1 0 0 1 0 ${Ot(a)} Tm ${g} ET Q EMC`}_splitLine(e,t,n,r,i={}){e=i.line||e;let a=i.glyphs||t.charsToGlyphs(e);if(a.length<=1)return[e];let o=i.positions||t.getCharPositions(e),s=n/1e3,c=[],l=-1,u=-1,d=-1,f=0,p=0;for(let t=0,n=a.length;t<n;t++){let[n,i]=o[t],m=a[t],h=m.width*s;m.unicode===` `?p+h>r?(c.push(e.substring(f,n)),f=n,p=h,l=-1,d=-1):(p+=h,l=n,u=i,d=t):p+h>r?l===-1?(c.push(e.substring(f,n)),f=n,p=h):(c.push(e.substring(f,u)),f=u,t=d+1,l=-1,p=0):p+=h}return f<e.length&&c.push(e.substring(f,e.length)),c}async extractTextContent(e,t,n){await super.extractTextContent(e,t,n);let r=this.data.textContent;if(!r)return;let i=r.join(`\n`);if(i===this.data.fieldValue)return;let a=i.replaceAll(/([.*+?^${}()|[\\]\\\\])|(\\s+)/g,(e,t)=>t?`\\\\${t}`:`\\\\s+`);RegExp(`^\\\\s*${a}\\\\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`}}},nb=class extends eb{constructor(e){super(e),this.checkedAppearance=null,this.uncheckedAppearance=null;let t=this.hasFieldFlag(x.RADIO),n=this.hasFieldFlag(x.PUSHBUTTON);this.data.checkBox=!t&&!n,this.data.radioButton=t&&!n,this.data.pushButton=n,this.data.isTooltipOnly=!1,this.data.checkBox?this._processCheckBox(e):this.data.radioButton?this._processRadioButton(e):this.data.pushButton?(this.data.hasOwnCanvas=!0,this.data.noHTML=!1,this._processPushButton(e)):j(`Invalid field flags for button widget annotation`)}async getOperatorList(e,t,n,r){if(this.data.pushButton)return super.getOperatorList(e,t,n,!1,r);let i=null,a=null;if(r){let e=r.get(this.data.id);i=e?e.value:null,a=e?e.rotation:null}if(i===null&&this.appearance)return super.getOperatorList(e,t,n,r);i??=this.data.checkBox?this.data.fieldValue===this.data.exportValue:this.data.fieldValue===this.data.buttonValue;let o=i?this.checkedAppearance:this.uncheckedAppearance;if(o){let i=this.appearance,s=mt(o.dict.getArray(`Matrix`),Xe);a&&o.dict.set(`Matrix`,this.getRotationMatrix(r)),this.appearance=o;let c=super.getOperatorList(e,t,n,r);return this.appearance=i,o.dict.set(`Matrix`,s),c}return{opList:new ur,separateForm:!1,separateCanvas:!1}}async save(e,t,n,r){if(this.data.checkBox){this._saveCheckbox(e,t,n,r);return}this.data.radioButton&&this._saveRadioButton(e,t,n,r)}async _saveCheckbox(e,t,n,r){if(!n)return;let i=n.get(this.data.id),a=this._buildFlags(i?.noView,i?.noPrint),o=i?.rotation,s=i?.value;if(o===void 0&&a===void 0&&(s===void 0||this.data.fieldValue===this.data.exportValue===s))return;let c=e.xref.fetchIfRef(this.ref);if(!(c instanceof L))return;c=c.clone(),o===void 0&&(o=this.rotation),s===void 0&&(s=this.data.fieldValue===this.data.exportValue);let l={path:this.data.fieldName,value:s?this.data.exportValue:``},u=I.get(s?this.data.exportValue:`Off`);this.setValue(c,u,e.xref,r),c.set(`AS`,u),c.set(`M`,`D:${At()}`),a!==void 0&&c.set(`F`,a);let d=this._getMKDict(o);d&&c.set(`MK`,d),r.put(this.ref,{data:c,xfa:l,needAppearances:!1})}async _saveRadioButton(e,t,n,r){if(!n)return;let i=n.get(this.data.id),a=this._buildFlags(i?.noView,i?.noPrint),o=i?.rotation,s=i?.value;if(o===void 0&&a===void 0&&(s===void 0||this.data.fieldValue===this.data.buttonValue===s))return;let c=e.xref.fetchIfRef(this.ref);if(!(c instanceof L))return;c=c.clone(),s===void 0&&(s=this.data.fieldValue===this.data.buttonValue),o===void 0&&(o=this.rotation);let l={path:this.data.fieldName,value:s?this.data.buttonValue:``},u=I.get(s?this.data.buttonValue:`Off`);s&&this.setValue(c,u,e.xref,r),c.set(`AS`,u),c.set(`M`,`D:${At()}`),a!==void 0&&c.set(`F`,a);let d=this._getMKDict(o);d&&c.set(`MK`,d),r.put(this.ref,{data:c,xfa:l,needAppearances:!1})}_getDefaultCheckedAppearance(e,t){let{width:n,height:r}=this,i=[0,0,n,r],a=Math.min(n,r)*.8,o,s;t===`check`?(o={width:.755*a,height:.705*a},s=`3`):t===`disc`?(o={width:.791*a,height:.705*a},s=`l`):M(`_getDefaultCheckedAppearance - unsupported type: ${t}`);let c=`q BT /PdfJsZaDb ${a} Tf 0 g ${Ot((n-o.width)/2)} ${Ot((r-o.height)/2)} Td (${s}) Tj ET Q`,l=new L(e.xref);l.set(`FormType`,1),l.setIfName(`Subtype`,`Form`),l.setIfName(`Type`,`XObject`),l.set(`BBox`,i),l.set(`Matrix`,[1,0,0,1,0,0]),l.set(`Length`,c.length);let u=new L(e.xref),d=new L(e.xref);d.set(`PdfJsZaDb`,this.fallbackFontDict),u.set(`Font`,d),l.set(`Resources`,u),this.checkedAppearance=new wn(c),this.checkedAppearance.dict=l,this._streams.push(this.checkedAppearance)}_processCheckBox(e){let t=e.dict.get(`AP`);if(!(t instanceof L))return;let n=t.get(`N`);if(!(n instanceof L))return;let r=this._decodeFormValue(e.dict.get(`AS`));typeof r==`string`&&(this.data.fieldValue=r);let i=this.data.fieldValue!==null&&this.data.fieldValue!==`Off`?this.data.fieldValue:`Yes`,a=[...n.getKeys()];if(a.length===0)a.push(`Off`,i);else if(a.length===1)a[0]===`Off`?a.push(i):a.unshift(`Off`);else if(a.includes(i))a.length=0,a.push(`Off`,i);else{let e=a.find(e=>e!==`Off`);a.length=0,a.push(`Off`,e)}a.includes(this.data.fieldValue)||(this.data.fieldValue=`Off`),this.data.exportValue=a[1];let o=n.get(this.data.exportValue);this.checkedAppearance=o instanceof Ve?o:null;let s=n.get(`Off`);this.uncheckedAppearance=s instanceof Ve?s:null,this.checkedAppearance?this._streams.push(this.checkedAppearance):this._getDefaultCheckedAppearance(e,`check`),this.uncheckedAppearance&&this._streams.push(this.uncheckedAppearance),this._fallbackFontDict=this.fallbackFontDict,this.data.defaultFieldValue===null&&(this.data.defaultFieldValue=`Off`)}_processRadioButton(e){this.data.buttonValue=null;let t=e.dict.get(`Parent`);if(t instanceof L){this.parent=e.dict.getRaw(`Parent`);let n=t.get(`V`);n instanceof I&&(this.data.fieldValue=this._decodeFormValue(n))}let n=e.dict.get(`AP`);if(!(n instanceof L))return;let r=n.get(`N`);if(!(r instanceof L))return;for(let e of r.getKeys())if(e!==`Off`){this.data.buttonValue=e;break}let i=r.get(this.data.buttonValue);this.checkedAppearance=i instanceof Ve?i:null;let a=r.get(`Off`);this.uncheckedAppearance=a instanceof Ve?a:null,this.checkedAppearance?this._streams.push(this.checkedAppearance):this._getDefaultCheckedAppearance(e,`disc`),this.uncheckedAppearance&&this._streams.push(this.uncheckedAppearance),this._fallbackFontDict=this.fallbackFontDict,this.data.defaultFieldValue===null&&(this.data.defaultFieldValue=`Off`)}_processPushButton(e){let{dict:t,annotationGlobals:n}=e;if(!t.has(`A`)&&!t.has(`AA`)&&!this.data.alternativeText){j(`Push buttons without action dictionaries are not supported`);return}this.data.isTooltipOnly=!t.has(`A`)&&!t.has(`AA`),yu.parseDestDictionary({destDict:t,resultObj:this.data,docBaseUrl:n.baseUrl,docAttachments:n.attachments})}getFieldObject(){let e=`button`,t;return this.data.checkBox?(e=`checkbox`,t=this.data.exportValue):this.data.radioButton&&(e=`radiobutton`,t=this.data.buttonValue),{id:this.data.id,value:this.data.fieldValue||`Off`,defaultValue:this.data.defaultFieldValue,exportValues:t,editable:!this.data.readOnly,name:this.data.fieldName,rect:this.data.rect,hidden:this.data.hidden,actions:this.data.actions,page:this.data.pageIndex,strokeColor:this.data.borderColor,fillColor:this.data.backgroundColor,rotation:this.rotation,type:e}}get fallbackFontDict(){let e=new L;return e.setIfName(`BaseFont`,`ZapfDingbats`),e.setIfName(`Type`,`FallbackType`),e.setIfName(`Subtype`,`FallbackType`),e.setIfName(`Encoding`,`ZapfDingbatsEncoding`),P(this,`fallbackFontDict`,e)}},rb=class extends eb{constructor(e){super(e);let{dict:t,xref:n}=e;this.indices=t.getArray(`I`),this.hasIndices=Array.isArray(this.indices)&&this.indices.length>0,this.data.options=[];let r=ot({dict:t,key:`Opt`});if(Array.isArray(r))for(let e=0,t=r.length;e<t;e++){let t=n.fetchIfRef(r[e]),i=Array.isArray(t);this.data.options[e]={exportValue:this._decodeFormValue(i?n.fetchIfRef(t[0]):t),displayValue:this._decodeFormValue(i?n.fetchIfRef(t[1]):t)}}if(!this.hasIndices)typeof this.data.fieldValue==`string`?this.data.fieldValue=[this.data.fieldValue]:this.data.fieldValue||=[];else{this.data.fieldValue=[];let e=this.data.options.length;for(let t of this.indices)Number.isInteger(t)&&t>=0&&t<e&&this.data.fieldValue.push(this.data.options[t].exportValue)}this.data.options.length===0&&this.data.fieldValue.length>0&&(this.data.options=this.data.fieldValue.map(e=>({exportValue:e,displayValue:e}))),this.data.combo=this.hasFieldFlag(x.COMBO),this.data.multiSelect=this.hasFieldFlag(x.MULTISELECT),this._hasText=!0}getFieldObject(){let e=this.data.combo?`combobox`:`listbox`,t=this.data.fieldValue.length>0?this.data.fieldValue[0]:null;return{id:this.data.id,value:t,defaultValue:this.data.defaultFieldValue,editable:!this.data.readOnly,name:this.data.fieldName,rect:this.data.rect,numItems:this.data.fieldValue.length,multipleSelection:this.data.multiSelect,hidden:this.data.hidden,actions:this.data.actions,items:this.data.options,page:this.data.pageIndex,strokeColor:this.data.borderColor,fillColor:this.data.backgroundColor,rotation:this.rotation,type:e}}amendSavedDict(e,t){if(!this.hasIndices)return;let n=e?.get(this.data.id)?.value;Array.isArray(n)||(n=[n]);let r=[],{options:i}=this.data;for(let e=0,t=0,a=i.length;e<a;e++)i[e].exportValue===n[t]&&(r.push(e),t+=1);t.set(`I`,r)}async _getAppearance(e,t,n,r){if(this.data.combo)return super._getAppearance(e,t,n,r);let i,a,o=r?.get(this.data.id);if(o&&(a=o.rotation,i=o.value),a===void 0&&i===void 0&&!this._needAppearances)return null;i===void 0?i=this.data.fieldValue:Array.isArray(i)||(i=[i]);let{width:c,height:l}=this;(a===90||a===270)&&([c,l]=[l,c]);let u=this.data.options.length,d=[];for(let e=0;e<u;e++){let{exportValue:t}=this.data.options[e];i.includes(t)&&d.push(e)}this._defaultAppearance||(this.data.defaultAppearanceData=Wl(this._defaultAppearance=`/Helvetica 0 Tf 0 g`));let f=await eb._getFontData(e,t,this.data.defaultAppearanceData,this._fieldResources.mergedResources),p,{fontSize:m}=this.data.defaultAppearanceData;if(m)p=this._defaultAppearance;else{let e=(l-1)/u,t=-1,n;for(let{displayValue:e}of this.data.options){let r=this._getTextWidth(e,f);r>t&&(t=r,n=e)}[p,m]=this._computeFontSize(e,c-4,n,f,-1)}let h=m*s,g=(h-m)/2,_=Math.floor(l/h),v=0;if(d.length>0){let e=Math.min(...d),t=Math.max(...d);v=Math.max(0,t-_+1),v>e&&(v=e)}let y=Math.min(v+_+1,u),b=[`/Tx BMC q`,`1 1 ${c} ${l} re W n`];if(d.length){b.push(`0.600006 0.756866 0.854904 rg`);for(let e of d)v<=e&&e<y&&b.push(`1 ${l-(e-v+1)*h} ${c} ${h} re f`)}b.push(`BT`,p,`1 0 0 1 0 ${l} Tm`);let x={shift:0};for(let e=v;e<y;e++){let{displayValue:t}=this.data.options[e],n=e===v?g:0;b.push(this._renderText(t,f,m,c,0,x,2,-h+n))}return b.push(`ET Q EMC`),b.join(`\n`)}},ib=class extends eb{constructor(e){super(e),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`}}},ab=class extends $y{constructor(e){super(e),this.data.noRotate=!0,this.data.hasOwnCanvas=this.data.noRotate,this.data.noHTML=!1;let{dict:t}=e;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=t.has(`Name`)?t.get(`Name`).name:`Note`),t.has(`State`)?(this.data.state=t.get(`State`)||null,this.data.stateModel=t.get(`StateModel`)||null):(this.data.state=null,this.data.stateModel=null)}},ob=class extends Zy{constructor(e){super(e);let{dict:t,annotationGlobals:n}=e;this.data.noHTML=!1;let r=Yy(t,this.rectangle);r&&(this.data.quadPoints=r),this.data.borderColor||=this.data.color,yu.parseDestDictionary({destDict:t,resultObj:this.data,docBaseUrl:n.baseUrl,docAttachments:n.attachments})}get overlaysTextContent(){return!0}},sb=class extends Zy{constructor(e){super(e);let{dict:t}=e;this.data.noHTML=!1,(this.width===0||this.height===0)&&(this.data.rect=null);let n=t.get(`Parent`);if(!n){j(`Popup annotation has a missing or invalid parent annotation.`);return}if(this.data.parentRect=gt(n.getArray(`Rect`),null),this.data.creationDate=n.get(`CreationDate`)||``,Le(n.get(`RT`),y.GROUP)&&(n=n.get(`IRT`)),n.has(`M`)?(this.setModificationDate(n.get(`M`)),this.data.modificationDate=this.modificationDate):this.data.modificationDate=null,n.has(`C`)?(this.setColor(n.getArray(`C`)),this.data.color=this.color):this.data.color=null,!this.viewable){let e=n.get(`F`);this._isViewable(e)&&this.setFlags(e)}this.setTitle(n.get(`T`)),this.data.titleObj=this._title,this.setContents(n.get(`Contents`)),this.data.contentsObj=this._contents,n.has(`RC`)&&(this.data.richText=Gy.getRichTextAsHtml(n.get(`RC`))),this.data.open=!!t.get(`Open`)}static createNewDict(e,t,n){let{oldAnnotation:r,rect:i,parent:a}=e,o=r||new L(t);return o.setIfNotExists(`Type`,I.get(`Annot`)),o.setIfNotExists(`Subtype`,I.get(`Popup`)),o.setIfNotExists(`Open`,!1),o.setIfArray(`Rect`,i),o.set(`Parent`,a),o}static async createNewAppearanceStream(e,t,n){return null}},cb=class extends $y{constructor(e){super(e),this.data.hasOwnCanvas=this.data.noRotate,this.data.isEditable=!this.data.noHTML,this.data.noHTML=!1;let{annotationGlobals:t,xref:n}=e;if(this.setDefaultAppearance(e),this._hasAppearance=!!this.appearance,this._hasAppearance){let{fontColor:e,fontSize:r}=Kl(this.appearance,n,t.globalColorSpaceCache);this.data.defaultAppearanceData.fontColor=e,this.data.defaultAppearanceData.fontSize=r||10}else{this.data.defaultAppearanceData.fontSize||=10;let{fontColor:t,fontSize:r}=this.data.defaultAppearanceData;if(this._contents.str){this.data.textContent=this._contents.str.split(/\\r\\n?|\\n/).map(e=>e.trimEnd());let{coords:e,bbox:t,matrix:n}=Yl.getFirstPositionInfo(this.rectangle,this.rotation,r);this.data.textPosition=this._transformPoint(e,t,n)}if(this._isOffscreenCanvasSupported){let i=e.dict.get(`CA`),a=new Yl(n,`sans-serif`);this.appearance=a.createAppearance(this._contents.str,this.rectangle,this.rotation,r,t,i),this._streams.push(this.appearance)}else j(`FreeTextAnnotation: OffscreenCanvas is not supported, annotation may not render correctly.`)}}get hasTextContent(){return this._hasAppearance}static createNewDict(e,t,{apRef:n,ap:r}){let{color:i,date:a,fontSize:o,oldAnnotation:s,rect:c,rotation:l,user:u,value:d}=e,f=s||new L(t);f.setIfNotExists(`Type`,I.get(`Annot`)),f.setIfNotExists(`Subtype`,I.get(`FreeText`)),f.set(s?`M`:`CreationDate`,`D:${At(a)}`),s&&f.delete(`RC`),f.setIfArray(`Rect`,c);let p=`/Helv ${o} Tf ${ql(i,!0)}`;if(f.set(`DA`,p),f.setIfDefined(`Contents`,Ue(d)),f.setIfNotExists(`F`,4),f.setIfNotExists(`Border`,[0,0,0]),f.setIfNumber(`Rotate`,l),f.setIfDefined(`T`,Ue(u)),n||r){let e=new L(t);f.set(`AP`,e),e.set(`N`,n||r)}return f}static async createNewAppearanceStream(e,t,n){let{baseFontRef:r,evaluator:i,task:a}=n,{color:o,fontSize:l,rect:u,rotation:d,value:f}=e;if(!o)return null;let p=new L(t),m=new L(t);if(r)m.set(`Helv`,r);else{let e=new L(t);e.setIfName(`BaseFont`,`Helvetica`),e.setIfName(`Type`,`Font`),e.setIfName(`Subtype`,`Type1`),e.setIfName(`Encoding`,`WinAnsiEncoding`),m.set(`Helv`,e)}p.set(`Font`,m);let h=await eb._getFontData(i,a,{fontName:`Helv`,fontSize:l},p),[g,_,v,y]=u,b=v-g,x=y-_;d%180!=0&&([b,x]=[x,b]);let S=f.split(`\n`),C=l/1e3,w=-1/0,T=[];for(let e of S){let t=h.encodeString(e);if(t.length>1)return null;e=t.join(``),T.push(e);let n=0,r=h.charsToGlyphs(e);for(let e of r)n+=e.width*C;w=Math.max(w,n)}let E=1;w>b&&(E=b/w);let D=1,O=s*l,ee=(s-c)*l,te=O*S.length;te>x&&(D=x/te);let ne=l*Math.min(E,D),k,A,j;switch(d){case 0:j=[1,0,0,1],A=[u[0],u[1],b,x],k=[u[0],u[3]-ee];break;case 90:j=[0,1,-1,0],A=[u[1],-u[2],b,x],k=[u[1],-u[0]-ee];break;case 180:j=[-1,0,0,-1],A=[-u[2],-u[3],b,x],k=[-u[2],-u[1]-ee];break;case 270:j=[0,-1,1,0],A=[-u[3],u[0],b,x],k=[-u[3],u[2]-ee];break}let M=[`q`,`${j.join(` `)} 0 0 cm`,`${A.join(` `)} re W n`,`BT`,`${ql(o,!0)}`,`0 Tc /Helv ${Ot(ne)} Tf`];M.push(`${k.join(` `)} Td (${yt(T[0])}) Tj`);let N=Ot(O);for(let e=1,t=T.length;e<t;e++){let t=T[e];M.push(`0 -${N} Td (${yt(t)}) Tj`)}M.push(`ET`,`Q`);let re=M.join(`\n`),ie=new L(t);ie.set(`FormType`,1),ie.setIfName(`Subtype`,`Form`),ie.setIfName(`Type`,`XObject`),ie.set(`BBox`,u),ie.set(`Resources`,p),ie.set(`Matrix`,[1,0,0,1,-u[0],-u[1]]);let ae=new wn(re);return ae.dict=ie,ae}},lb=class extends $y{constructor(e){super(e);let{dict:t,xref:n}=e;this.data.hasOwnCanvas=this.data.noRotate,this.data.noHTML=!1;let r=ht(t.getArray(`L`),[0,0,0,0]);if(this.data.lineCoordinates=ge.normalizeRect(r),this.setLineEndings(t.getArray(`LE`)),this.data.lineEndings=this.lineEndings,!this.appearance){let e=Jy(this.color,[0,0,0]),i=t.get(`CA`),a=Jy(qy(t.getArray(`IC`),null)),o=a?i:null,s=this.borderStyle.width||1,c=2*s,l=[this.data.lineCoordinates[0]-c,this.data.lineCoordinates[1]-c,this.data.lineCoordinates[2]+c,this.data.lineCoordinates[3]+c];ge.intersect(this.rectangle,l)||(this.rectangle=l),this._setDefaultAppearance({xref:n,extra:`${s} w`,strokeColor:e,fillColor:a,strokeAlpha:i,fillAlpha:o,pointsCallback:(e,t)=>(e.push(`${r[0]} ${r[1]} m`,`${r[2]} ${r[3]} l`,`S`),[t[0]-s,t[7]-s,t[2]+s,t[3]+s])})}}},ub=class extends $y{constructor(e){super(e);let{dict:t,xref:n}=e;if(this.data.hasOwnCanvas=this.data.noRotate,this.data.noHTML=!1,!this.appearance){let e=Jy(this.color,[0,0,0]),r=t.get(`CA`),i=Jy(qy(t.getArray(`IC`),null)),a=i?r:null;if(this.borderStyle.width===0&&!i)return;this._setDefaultAppearance({xref:n,extra:`${this.borderStyle.width} w`,strokeColor:e,fillColor:i,strokeAlpha:r,fillAlpha:a,pointsCallback:(e,t)=>{let n=t[4]+this.borderStyle.width/2,r=t[5]+this.borderStyle.width/2,a=t[6]-t[4]-this.borderStyle.width,o=t[3]-t[7]-this.borderStyle.width;return e.push(`${n} ${r} ${a} ${o} re`),i?e.push(`B`):e.push(`S`),[t[0],t[7],t[2],t[3]]}})}}},db=class extends $y{constructor(e){super(e);let{dict:t,xref:n}=e;if(!this.appearance){let e=Jy(this.color,[0,0,0]),r=t.get(`CA`),i=Jy(qy(t.getArray(`IC`),null)),a=i?r:null;if(this.borderStyle.width===0&&!i)return;let o=4/3*Math.tan(Math.PI/8);this._setDefaultAppearance({xref:n,extra:`${this.borderStyle.width} w`,strokeColor:e,fillColor:i,strokeAlpha:r,fillAlpha:a,pointsCallback:(e,t)=>{let n=t[0]+this.borderStyle.width/2,r=t[1]-this.borderStyle.width/2,a=t[6]-this.borderStyle.width/2,s=t[7]+this.borderStyle.width/2,c=n+(a-n)/2,l=r+(s-r)/2,u=(a-n)/2*o,d=(s-r)/2*o;return e.push(`${c} ${s} m`,`${c+u} ${s} ${a} ${l+d} ${a} ${l} c`,`${a} ${l-d} ${c+u} ${r} ${c} ${r} c`,`${c-u} ${r} ${n} ${l-d} ${n} ${l} c`,`${n} ${l+d} ${c-u} ${s} ${c} ${s} c`,`h`),i?e.push(`B`):e.push(`S`),[t[0],t[7],t[2],t[3]]}})}}},fb=class extends $y{constructor(e){super(e);let{dict:t,xref:n}=e;this.data.hasOwnCanvas=this.data.noRotate,this.data.noHTML=!1,this.data.vertices=null,this instanceof pb||(this.setLineEndings(t.getArray(`LE`)),this.data.lineEndings=this.lineEndings);let r=t.getArray(`Vertices`);if(!pt(r,null))return;let a=this.data.vertices=Float32Array.from(r);if(!this.appearance){let e=Jy(this.color,[0,0,0]),r=t.get(`CA`),o=qy(t.getArray(`IC`),null);o&&=Jy(o);let s;s=o?this.color?o.every((t,n)=>t===e[n])?`f`:`B`:`f`:`S`;let c=this.borderStyle.width||1,l=2*c,u=i.slice();for(let e=0,t=a.length;e<t;e+=2)ge.rectBoundingBox(a[e]-l,a[e+1]-l,a[e]+l,a[e+1]+l,u);ge.intersect(this.rectangle,u)||(this.rectangle=u),this._setDefaultAppearance({xref:n,extra:`${c} w`,strokeColor:e,strokeAlpha:r,fillColor:o,fillAlpha:o?r:null,pointsCallback:(e,t)=>{for(let t=0,n=a.length;t<n;t+=2)e.push(`${a[t]} ${a[t+1]} ${t===0?`m`:`l`}`);return e.push(s),[t[0],t[7],t[2],t[3]]}})}}},pb=class extends fb{},mb=class extends $y{},hb=class extends $y{constructor(e){super(e),this.data.hasOwnCanvas=this.data.noRotate,this.data.noHTML=!1;let{dict:t,xref:n}=e;this.data.inkLists=[],this.data.isEditable=!this.data.noHTML,this.data.noHTML=!1,this.data.opacity=t.get(`CA`)||1;let r=t.getArray(`InkList`);if(Array.isArray(r)){for(let e=0,t=r.length;e<t;++e){if(!Array.isArray(r[e]))continue;let t=new Float32Array(r[e].length);this.data.inkLists.push(t);for(let i=0,a=r[e].length;i<a;i+=2){let a=n.fetchIfRef(r[e][i]),o=n.fetchIfRef(r[e][i+1]);typeof a==`number`&&typeof o==`number`&&(t[i]=a,t[i+1]=o)}}if(!this.appearance){let e=Jy(this.color,[0,0,0]),r=t.get(`CA`),a=this.borderStyle.width||1,o=2*a,s=i.slice();for(let e of this.data.inkLists)for(let t=0,n=e.length;t<n;t+=2)ge.rectBoundingBox(e[t]-o,e[t+1]-o,e[t]+o,e[t+1]+o,s);ge.intersect(this.rectangle,s)||(this.rectangle=s),this._setDefaultAppearance({xref:n,extra:`${a} w`,strokeColor:e,strokeAlpha:r,pointsCallback:(e,t)=>{for(let t of this.data.inkLists){for(let n=0,r=t.length;n<r;n+=2)e.push(`${t[n]} ${t[n+1]} ${n===0?`m`:`l`}`);e.push(`S`)}return[t[0],t[7],t[2],t[3]]}})}}}static createNewDict(e,t,{apRef:n,ap:r}){let{oldAnnotation:i,color:a,date:o,opacity:s,paths:c,outlines:l,rect:u,rotation:d,thickness:f,user:p}=e,m=i||new L(t);if(m.setIfNotExists(`Type`,I.get(`Annot`)),m.setIfNotExists(`Subtype`,I.get(`Ink`)),m.set(i?`M`:`CreationDate`,`D:${At(o)}`),m.setIfArray(`Rect`,u),m.setIfArray(`InkList`,l?.points||c?.points),m.setIfNotExists(`F`,4),m.setIfNumber(`Rotate`,d),m.setIfDefined(`T`,Ue(p)),l&&m.setIfName(`IT`,`InkHighlight`),f>0){let e=new L(t);m.set(`BS`,e),e.set(`W`,f)}if(m.setIfArray(`C`,Jy(a)),m.setIfNumber(`CA`,s),r||n){let e=new L(t);m.set(`AP`,e),e.set(`N`,n||r)}return m}static async createNewAppearanceStream(e,t,n){if(e.outlines)return this.createNewAppearanceStreamForHighlight(e,t,n);let{color:r,rect:i,paths:a,thickness:o,opacity:s}=e;if(!r)return null;let c=[`${o} w 1 J 1 j`,`${ql(r,!1)}`];s!==1&&c.push(`/R0 gs`);for(let e of a.lines){c.push(`${Ot(e[4])} ${Ot(e[5])} m`);for(let t=6,n=e.length;t<n;t+=6)if(isNaN(e[t]))c.push(`${Ot(e[t+4])} ${Ot(e[t+5])} l`);else{let[n,r,i,a,o,s]=e.slice(t,t+6);c.push([n,r,i,a,o,s].map(Ot).join(` `)+` c`)}e.length===6&&c.push(`${Ot(e[4])} ${Ot(e[5])} l`)}c.push(`S`);let l=c.join(`\n`),u=new L(t);if(u.set(`FormType`,1),u.setIfName(`Subtype`,`Form`),u.setIfName(`Type`,`XObject`),u.set(`BBox`,i),u.set(`Length`,l.length),s!==1){let e=new L(t),n=new L(t),r=new L(t);r.set(`CA`,s),r.setIfName(`Type`,`ExtGState`),n.set(`R0`,r),e.set(`ExtGState`,n),u.set(`Resources`,e)}let d=new wn(l);return d.dict=u,d}static async createNewAppearanceStreamForHighlight(e,t,n){let{color:r,rect:i,outlines:{outline:a},opacity:o}=e;if(!r)return null;let s=[`${ql(r,!0)}`,`/R0 gs`];s.push(`${Ot(a[4])} ${Ot(a[5])} m`);for(let e=6,t=a.length;e<t;e+=6)if(isNaN(a[e]))s.push(`${Ot(a[e+4])} ${Ot(a[e+5])} l`);else{let[t,n,r,i,o,c]=a.slice(e,e+6);s.push([t,n,r,i,o,c].map(Ot).join(` `)+` c`)}s.push(`h f`);let c=s.join(`\n`),l=new L(t);l.set(`FormType`,1),l.setIfName(`Subtype`,`Form`),l.setIfName(`Type`,`XObject`),l.set(`BBox`,i),l.set(`Length`,c.length);let u=new L(t),d=new L(t);u.set(`ExtGState`,d),l.set(`Resources`,u);let f=new L(t);d.set(`R0`,f),f.setIfName(`BM`,`Multiply`),o!==1&&(f.set(`ca`,o),f.setIfName(`Type`,`ExtGState`));let p=new wn(c);return p.dict=l,p}},gb=class extends $y{constructor(e){super(e);let{dict:t,xref:n}=e;if(this.data.isEditable=!this.data.noHTML,this.data.noHTML=!1,this.data.opacity=t.get(`CA`)||1,this.data.quadPoints=Yy(t,null)){let e=this.appearance?.dict.get(`Resources`);if(!this.appearance||!e?.has(`ExtGState`)){this.appearance&&j(`HighlightAnnotation - ignoring built-in appearance stream.`);let e=Jy(this.color,[1,1,0]),r=t.get(`CA`);this._setDefaultAppearance({xref:n,fillColor:e,blendMode:`Multiply`,fillAlpha:r,pointsCallback:(e,t)=>(e.push(`${t[0]} ${t[1]} m`,`${t[2]} ${t[3]} l`,`${t[6]} ${t[7]} l`,`${t[4]} ${t[5]} l`,`f`),[t[0],t[7],t[2],t[3]])})}}else this.data.popupRef=null}get overlaysTextContent(){return!0}static createNewDict(e,t,{apRef:n,ap:r}){let{color:i,date:a,oldAnnotation:o,opacity:s,rect:c,rotation:l,user:u,quadPoints:d}=e,f=o||new L(t);if(f.setIfNotExists(`Type`,I.get(`Annot`)),f.setIfNotExists(`Subtype`,I.get(`Highlight`)),f.set(o?`M`:`CreationDate`,`D:${At(a)}`),f.setIfArray(`Rect`,c),f.setIfNotExists(`F`,4),f.setIfNotExists(`Border`,[0,0,0]),f.setIfNumber(`Rotate`,l),f.setIfArray(`QuadPoints`,d),f.setIfArray(`C`,Jy(i)),f.setIfNumber(`CA`,s),f.setIfDefined(`T`,Ue(u)),n||r){let e=new L(t);f.set(`AP`,e),e.set(`N`,n||r)}return f}static async createNewAppearanceStream(e,t,n){let{color:r,rect:i,outlines:a,opacity:o}=e;if(!r)return null;let s=[`${ql(r,!0)}`,`/R0 gs`],c=[];for(let e of a){c.length=0,c.push(`${Ot(e[0])} ${Ot(e[1])} m`);for(let t=2,n=e.length;t<n;t+=2)c.push(`${Ot(e[t])} ${Ot(e[t+1])} l`);c.push(`h`),s.push(c.join(`\n`))}s.push(`f*`);let l=s.join(`\n`),u=new L(t);u.set(`FormType`,1),u.setIfName(`Subtype`,`Form`),u.setIfName(`Type`,`XObject`),u.set(`BBox`,i),u.set(`Length`,l.length);let d=new L(t),f=new L(t);d.set(`ExtGState`,f),u.set(`Resources`,d);let p=new L(t);f.set(`R0`,p),p.setIfName(`BM`,`Multiply`),o!==1&&(p.set(`ca`,o),p.setIfName(`Type`,`ExtGState`));let m=new wn(l);return m.dict=u,m}},_b=class extends $y{constructor(e){super(e);let{dict:t,xref:n}=e;if(this.data.quadPoints=Yy(t,null)){if(!this.appearance){let e=Jy(this.color,[0,0,0]),r=t.get(`CA`);this._setDefaultAppearance({xref:n,extra:`[] 0 d 0.571 w`,strokeColor:e,strokeAlpha:r,pointsCallback:(e,t)=>(e.push(`${t[4]} ${t[5]+1.3} m`,`${t[6]} ${t[7]+1.3} l`,`S`),[t[0],t[7],t[2],t[3]])})}}else this.data.popupRef=null}get overlaysTextContent(){return!0}},vb=class extends $y{constructor(e){super(e);let{dict:t,xref:n}=e;if(this.data.quadPoints=Yy(t,null)){if(!this.appearance){let e=Jy(this.color,[0,0,0]),r=t.get(`CA`);this._setDefaultAppearance({xref:n,extra:`[] 0 d 1 w`,strokeColor:e,strokeAlpha:r,pointsCallback:(e,t)=>{let n=(t[1]-t[5])/6,r=n,i=t[4],a=t[5],o=t[6];e.push(`${i} ${a+r} m`);do i+=2,r=r===0?n:0,e.push(`${i} ${a+r} l`);while(i<o);return e.push(`S`),[t[4],a-2*n,o,a+2*n]}})}}else this.data.popupRef=null}get overlaysTextContent(){return!0}},yb=class extends $y{constructor(e){super(e);let{dict:t,xref:n}=e;if(this.data.quadPoints=Yy(t,null)){if(!this.appearance){let e=Jy(this.color,[0,0,0]),r=t.get(`CA`);this._setDefaultAppearance({xref:n,extra:`[] 0 d 1 w`,strokeColor:e,strokeAlpha:r,pointsCallback:(e,t)=>(e.push(`${(t[0]+t[4])/2} ${(t[1]+t[5])/2} m`,`${(t[2]+t[6])/2} ${(t[3]+t[7])/2} l`,`S`),[t[0],t[7],t[2],t[3]])})}}else this.data.popupRef=null}get overlaysTextContent(){return!0}},bb=class extends $y{#e=null;constructor(e){super(e),this.data.hasOwnCanvas=this.data.noRotate,this.data.isEditable=!this.data.noHTML,this.data.noHTML=!1}mustBeViewedWhenEditing(e,t=null){return e?this.data.isEditable?(this.#e??=this.data.hasOwnCanvas,this.data.hasOwnCanvas=!0,!0):!0:(this.#e!==null&&(this.data.hasOwnCanvas=this.#e,this.#e=null),!t?.has(this.data.id))}static createNewDict(e,t,{apRef:n,ap:r}){let{date:i,oldAnnotation:a,rect:o,rotation:s,user:c}=e,l=a||new L(t);if(l.setIfNotExists(`Type`,I.get(`Annot`)),l.setIfNotExists(`Subtype`,I.get(`Stamp`)),l.set(a?`M`:`CreationDate`,`D:${At(i)}`),l.setIfArray(`Rect`,o),l.setIfNotExists(`F`,4),l.setIfNotExists(`Border`,[0,0,0]),l.setIfNumber(`Rotate`,s),l.setIfDefined(`T`,Ue(c)),n||r){let e=new L(t);l.set(`AP`,e),e.set(`N`,n||r)}return l}static async#t(e,t){let{areContours:n,color:r,rect:i,lines:a,thickness:o}=e;if(!r)return null;let s=[`${o} w 1 J 1 j`,`${ql(r,n)}`];for(let e of a){s.push(`${Ot(e[4])} ${Ot(e[5])} m`);for(let t=6,n=e.length;t<n;t+=6)if(isNaN(e[t]))s.push(`${Ot(e[t+4])} ${Ot(e[t+5])} l`);else{let[n,r,i,a,o,c]=e.slice(t,t+6);s.push([n,r,i,a,o,c].map(Ot).join(` `)+` c`)}e.length===6&&s.push(`${Ot(e[4])} ${Ot(e[5])} l`)}s.push(n?`F`:`S`);let c=s.join(`\n`),l=new L(t);l.set(`FormType`,1),l.setIfName(`Subtype`,`Form`),l.setIfName(`Type`,`XObject`),l.set(`BBox`,i),l.set(`Length`,c.length);let u=new wn(c);return u.dict=l,u}static async createNewAppearanceStream(e,t,n){if(e.oldAnnotation)return null;if(e.isSignature)return this.#t(e,t);let{rotation:r}=e,{imageRef:i,width:a,height:o}=n.image,s=new L(t),c=new L(t);s.set(`XObject`,c),c.set(`Im0`,i);let l=`q ${a} 0 0 ${o} 0 0 cm /Im0 Do Q`,u=new L(t);if(u.set(`FormType`,1),u.setIfName(`Subtype`,`Form`),u.setIfName(`Type`,`XObject`),u.set(`BBox`,[0,0,a,o]),u.set(`Resources`,s),r){let e=jt(r,a,o);u.set(`Matrix`,e)}let d=new wn(l);return d.dict=u,d}},xb=class extends $y{constructor(e){super(e);let{dict:t}=e,n=new ru(t.get(`FS`));this.data.hasOwnCanvas=this.data.noRotate,this.data.noHTML=!1,this.data.file=n.serializable;let r=t.get(`Name`);this.data.name=r instanceof I?qe(r.name):`PushPin`;let i=t.get(`ca`);this.data.fillAlpha=typeof i==`number`&&i>=0&&i<=1?i:null}};let Sb={get r(){return P(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 P(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 Cb(e,t,n){let r=1732584193,i=-271733879,a=-1732584194,o=271733878,s=n+72&-64,c=new Uint8Array(s),l,u;for(l=0;l<n;++l)c[l]=e[t++];c[l++]=128;let d=s-8;l<d&&(l=d),c[l++]=n<<3&255,c[l++]=n>>5&255,c[l++]=n>>13&255,c[l++]=n>>21&255,c[l++]=n>>>29&255,l+=3;let f=new Int32Array(16),{k:p,r:m}=Sb;for(l=0;l<s;){for(u=0;u<16;++u,l+=4)f[u]=c[l]|c[l+1]<<8|c[l+2]<<16|c[l+3]<<24;let e=r,t=i,n=a,s=o,d,h;for(u=0;u<64;++u){u<16?(d=t&n|~t&s,h=u):u<32?(d=s&t|~s&n,h=5*u+1&15):u<48?(d=t^n^s,h=3*u+5&15):(d=n^(t|~s),h=7*u&15);let r=s,i=e+d+p[u]+f[h]|0,a=m[u];s=n,n=t,t=t+(i<<a|i>>>32-a)|0,e=r}r=r+e|0,i=i+t|0,a=a+n|0,o=o+s|0}return new Uint8Array([r&255,r>>8&255,r>>16&255,r>>>24&255,i&255,i>>8&255,i>>16&255,i>>>24&255,a&255,a>>8&255,a>>16&255,a>>>24&255,o&255,o>>8&255,o>>16&255,o>>>24&255])}function wb(e){try{return _e(e)}catch(t){return j(`UTF-8 decoding failed: "${t}".`),e}}var Tb=class extends lu{node=null;onEndElement(e){let t=super.onEndElement(e);if(t&&e===`xfa:datasets`)throw this.node=t,Error(`Aborting DatasetXMLParser.`)}},Eb=class{constructor(e){if(e.datasets)this.node=new lu({hasAttributes:!0}).parseFromString(e.datasets).documentElement;else{let t=new Tb({hasAttributes:!0});try{t.parseFromString(e[`xdp:xdp`])}catch{}this.node=t.node}}getValue(e){if(!this.node||!e)return``;let t=this.node.searchNode(_t(e),0);return t?t.firstChild?.nodeName===`value`?t.children.map(e=>wb(e.textContent)):wb(t.textContent):``}},Db=class{#e;minX=1/0;minY=1/0;maxX=-1/0;maxY=-1/0;#t=null;#n=[];#r=[];#i=-1;#a=!1;constructor(e){this.#e=e;let t=e.data.quadPoints;if(!t){[this.minX,this.minY,this.maxX,this.maxY]=e.data.rect;return}for(let e=0,n=t.length;e<n;e+=8)this.minX=Math.min(this.minX,t[e]),this.maxX=Math.max(this.maxX,t[e+2]),this.minY=Math.min(this.minY,t[e+5]),this.maxY=Math.max(this.maxY,t[e+1]);t.length>8&&(this.#t=t)}#o(e,t){if(this.minX>=e||this.maxX<=e||this.minY>=t||this.maxY<=t)return!1;let n=this.#t;if(!n)return!0;if(this.#i>=0){let r=this.#i;if(!(n[r]>=e||n[r+2]<=e||n[r+5]>=t||n[r+1]<=t))return!0;this.#i=-1}for(let r=0,i=n.length;r<i;r+=8)if(!(n[r]>=e||n[r+2]<=e||n[r+5]>=t||n[r+1]<=t))return this.#i=r,!0;return!1}addGlyph(e,t,n){return this.#o(e,t)?(this.#r.length>0&&(this.#n.push(this.#r.join(``)),this.#r.length=0),this.#n.push(n),this.#a=!0,!0):(this.disableExtraChars(),!1)}addExtraChar(e){this.#a&&this.#r.push(e)}disableExtraChars(){this.#a&&(this.#a=!1,this.#r.length=0)}setText(){this.#e.data.overlaidText=this.#n.join(``)}},Ob=class{#e=[];#t=[];#n;#r;#i;#a;#o;#s;constructor(e){let t=1/0,n=1/0,r=-1/0,i=-1/0,a=this.#e;for(let o of e){if(!o.data.quadPoints&&!o.data.rect)continue;let e=new Db(o);a.push(e),t=Math.min(t,e.minX),n=Math.min(n,e.minY),r=Math.max(r,e.maxX),i=Math.max(i,e.maxY)}this.#n=t,this.#i=n,this.#r=r,this.#a=i,this.#o=63/(r-t),this.#s=63/(i-n);for(let e of a){let t=this.#c(e.minX,e.minY),n=this.#c(e.maxX,e.maxY),r=(n-t)%64,i=Math.floor((n-t)/64);for(let n=t;n<=t+i*64;n+=64)for(let t=0;t<=r;t++)(this.#t[n+t]??=[]).push(e)}}#c(e,t){return Math.floor((e-this.#n)*this.#o)+Math.floor((t-this.#i)*this.#s)*64}addGlyph(e,t,n,r){let i=e[4]+t/2,a=e[5]+n/2;if(i<this.#n||a<this.#i||i>this.#r||a>this.#a)return;let o=this.#t[this.#c(i,a)];if(o)for(let e of o)e.addGlyph(i,a,r)}addExtraChar(e){for(let t of this.#e)t.addExtraChar(e)}setText(){for(let e of this.#e)e.setText()}},$=class{constructor(e,t){this.high=e|0,this.low=t|0}and(e){this.high&=e.high,this.low&=e.low}xor(e){this.high^=e.high,this.low^=e.low}shiftRight(e){e>=32?(this.low=this.high>>>e-32|0,this.high=0):(this.low=this.low>>>e|this.high<<32-e,this.high=this.high>>>e|0)}rotateRight(e){let t,n;e&32?(n=this.low,t=this.high):(t=this.low,n=this.high),e&=31,this.low=t>>>e|n<<32-e,this.high=n>>>e|t<<32-e}not(){this.high=~this.high,this.low=~this.low}add(e){let t=(this.low>>>0)+(e.low>>>0),n=(this.high>>>0)+(e.high>>>0);t>4294967295&&(n+=1),this.low=t|0,this.high=n|0}copyTo(e,t){e[t]=this.high>>>24&255,e[t+1]=this.high>>16&255,e[t+2]=this.high>>8&255,e[t+3]=this.high&255,e[t+4]=this.low>>>24&255,e[t+5]=this.low>>16&255,e[t+6]=this.low>>8&255,e[t+7]=this.low&255}assign(e){this.high=e.high,this.low=e.low}};let kb={get k(){return P(this,`k`,[new $(1116352408,3609767458),new $(1899447441,602891725),new $(3049323471,3964484399),new $(3921009573,2173295548),new $(961987163,4081628472),new $(1508970993,3053834265),new $(2453635748,2937671579),new $(2870763221,3664609560),new $(3624381080,2734883394),new $(310598401,1164996542),new $(607225278,1323610764),new $(1426881987,3590304994),new $(1925078388,4068182383),new $(2162078206,991336113),new $(2614888103,633803317),new $(3248222580,3479774868),new $(3835390401,2666613458),new $(4022224774,944711139),new $(264347078,2341262773),new $(604807628,2007800933),new $(770255983,1495990901),new $(1249150122,1856431235),new $(1555081692,3175218132),new $(1996064986,2198950837),new $(2554220882,3999719339),new $(2821834349,766784016),new $(2952996808,2566594879),new $(3210313671,3203337956),new $(3336571891,1034457026),new $(3584528711,2466948901),new $(113926993,3758326383),new $(338241895,168717936),new $(666307205,1188179964),new $(773529912,1546045734),new $(1294757372,1522805485),new $(1396182291,2643833823),new $(1695183700,2343527390),new $(1986661051,1014477480),new $(2177026350,1206759142),new $(2456956037,344077627),new $(2730485921,1290863460),new $(2820302411,3158454273),new $(3259730800,3505952657),new $(3345764771,106217008),new $(3516065817,3606008344),new $(3600352804,1432725776),new $(4094571909,1467031594),new $(275423344,851169720),new $(430227734,3100823752),new $(506948616,1363258195),new $(659060556,3750685593),new $(883997877,3785050280),new $(958139571,3318307427),new $(1322822218,3812723403),new $(1537002063,2003034995),new $(1747873779,3602036899),new $(1955562222,1575990012),new $(2024104815,1125592928),new $(2227730452,2716904306),new $(2361852424,442776044),new $(2428436474,593698344),new $(2756734187,3733110249),new $(3204031479,2999351573),new $(3329325298,3815920427),new $(3391569614,3928383900),new $(3515267271,566280711),new $(3940187606,3454069534),new $(4118630271,4000239992),new $(116418474,1914138554),new $(174292421,2731055270),new $(289380356,3203993006),new $(460393269,320620315),new $(685471733,587496836),new $(852142971,1086792851),new $(1017036298,365543100),new $(1126000580,2618297676),new $(1288033470,3409855158),new $(1501505948,4234509866),new $(1607167915,987167468),new $(1816402316,1246189591)])}};function Ab(e,t,n,r,i){e.assign(t),e.and(n),i.assign(t),i.not(),i.and(r),e.xor(i)}function jb(e,t,n,r,i){e.assign(t),e.and(n),i.assign(t),i.and(r),e.xor(i),i.assign(n),i.and(r),e.xor(i)}function Mb(e,t,n){e.assign(t),e.rotateRight(28),n.assign(t),n.rotateRight(34),e.xor(n),n.assign(t),n.rotateRight(39),e.xor(n)}function Nb(e,t,n){e.assign(t),e.rotateRight(14),n.assign(t),n.rotateRight(18),e.xor(n),n.assign(t),n.rotateRight(41),e.xor(n)}function Pb(e,t,n){e.assign(t),e.rotateRight(1),n.assign(t),n.rotateRight(8),e.xor(n),n.assign(t),n.shiftRight(7),e.xor(n)}function Fb(e,t,n){e.assign(t),e.rotateRight(19),n.assign(t),n.rotateRight(61),e.xor(n),n.assign(t),n.shiftRight(6),e.xor(n)}function Ib(e,t,n,r=!1){let i,a,o,s,c,l,u,d;r?(i=new $(3418070365,3238371032),a=new $(1654270250,914150663),o=new $(2438529370,812702999),s=new $(355462360,4144912697),c=new $(1731405415,4290775857),l=new $(2394180231,1750603025),u=new $(3675008525,1694076839),d=new $(1203062813,3204075428)):(i=new $(1779033703,4089235720),a=new $(3144134277,2227873595),o=new $(1013904242,4271175723),s=new $(2773480762,1595750129),c=new $(1359893119,2917565137),l=new $(2600822924,725511199),u=new $(528734635,4215389547),d=new $(1541459225,327033209));let f=Math.ceil((n+17)/128)*128,p=new Uint8Array(f),m,h;for(m=0;m<n;++m)p[m]=e[t++];p[m++]=128;let g=f-16;m<g&&(m=g),m+=11,p[m++]=n>>>29&255,p[m++]=n>>21&255,p[m++]=n>>13&255,p[m++]=n>>5&255,p[m++]=n<<3&255;let _=Array(80);for(m=0;m<80;m++)_[m]=new $(0,0);let{k:v}=kb,y=new $(0,0),b=new $(0,0),x=new $(0,0),S=new $(0,0),C=new $(0,0),w=new $(0,0),T=new $(0,0),E=new $(0,0),D=new $(0,0),O=new $(0,0),ee=new $(0,0),te=new $(0,0),ne;for(m=0;m<f;){for(h=0;h<16;++h)_[h].high=p[m]<<24|p[m+1]<<16|p[m+2]<<8|p[m+3],_[h].low=p[m+4]<<24|p[m+5]<<16|p[m+6]<<8|p[m+7],m+=8;for(h=16;h<80;++h)ne=_[h],Fb(ne,_[h-2],te),ne.add(_[h-7]),Pb(ee,_[h-15],te),ne.add(ee),ne.add(_[h-16]);for(y.assign(i),b.assign(a),x.assign(o),S.assign(s),C.assign(c),w.assign(l),T.assign(u),E.assign(d),h=0;h<80;++h)D.assign(E),Nb(ee,C,te),D.add(ee),Ab(ee,C,w,T,te),D.add(ee),D.add(v[h]),D.add(_[h]),Mb(O,y,te),jb(ee,y,b,x,te),O.add(ee),ne=E,E=T,T=w,w=C,S.add(D),C=S,S=x,x=b,b=y,ne.assign(D),ne.add(O),y=ne;i.add(y),a.add(b),o.add(x),s.add(S),c.add(C),l.add(w),u.add(T),d.add(E)}let k;return r?(k=new Uint8Array(48),i.copyTo(k,0),a.copyTo(k,8),o.copyTo(k,16),s.copyTo(k,24),c.copyTo(k,32),l.copyTo(k,40)):(k=new Uint8Array(64),i.copyTo(k,0),a.copyTo(k,8),o.copyTo(k,16),s.copyTo(k,24),c.copyTo(k,32),l.copyTo(k,40),u.copyTo(k,48),d.copyTo(k,56)),k}function Lb(e,t,n){return Ib(e,t,n,!0)}let Rb={get k(){return P(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 zb(e,t){return e>>>t|e<<32-t}function Bb(e,t,n){return e&t^~e&n}function Vb(e,t,n){return e&t^e&n^t&n}function Hb(e){return zb(e,2)^zb(e,13)^zb(e,22)}function Ub(e){return zb(e,6)^zb(e,11)^zb(e,25)}function Wb(e){return zb(e,7)^zb(e,18)^e>>>3}function Gb(e){return zb(e,17)^zb(e,19)^e>>>10}function Kb(e,t,n){let r=1779033703,i=3144134277,a=1013904242,o=2773480762,s=1359893119,c=2600822924,l=528734635,u=1541459225,d=Math.ceil((n+9)/64)*64,f=new Uint8Array(d),p,m;for(p=0;p<n;++p)f[p]=e[t++];f[p++]=128;let h=d-8;p<h&&(p=h),p+=3,f[p++]=n>>>29&255,f[p++]=n>>21&255,f[p++]=n>>13&255,f[p++]=n>>5&255,f[p++]=n<<3&255;let g=new Uint32Array(64),{k:_}=Rb;for(p=0;p<d;){for(m=0;m<16;++m)g[m]=f[p]<<24|f[p+1]<<16|f[p+2]<<8|f[p+3],p+=4;for(m=16;m<64;++m)g[m]=Gb(g[m-2])+g[m-7]+Wb(g[m-15])+g[m-16]|0;let e=r,t=i,n=a,d=o,h=s,v=c,y=l,b=u,x,S;for(m=0;m<64;++m)x=b+Ub(h)+Bb(h,v,y)+_[m]+g[m],S=Hb(e)+Vb(e,t,n),b=y,y=v,v=h,h=d+x|0,d=n,n=t,t=e,e=x+S|0;r=r+e|0,i=i+t|0,a=a+n|0,o=o+d|0,s=s+h|0,c=c+v|0,l=l+y|0,u=u+b|0}return new Uint8Array([r>>24&255,r>>16&255,r>>8&255,r&255,i>>24&255,i>>16&255,i>>8&255,i&255,a>>24&255,a>>16&255,a>>8&255,a&255,o>>24&255,o>>16&255,o>>8&255,o&255,s>>24&255,s>>16&255,s>>8&255,s&255,c>>24&255,c>>16&255,c>>8&255,c&255,l>>24&255,l>>16&255,l>>8&255,l&255,u>>24&255,u>>16&255,u>>8&255,u&255])}var qb=class extends Fn{#e=null;constructor(e,t,n){super(t),this.stream=e,this.dict=e.dict,this.decrypt=n}readBlock(){let e=this.#e??this.stream.getBytes(512);if(!e?.length){this.eof=!0;return}this.#e=this.stream.getBytes(512);let t=this.#e?.length>0,n=this.decrypt;e=n(e,!t);let r=this.bufferLength,i=r+e.length;this.ensureBuffer(i).set(e,r),this.bufferLength=i}getOriginalStream(){return this}},Jb=class{a=0;b=0;constructor(e){let t=new Uint8Array(256),n=e.length;for(let e=0;e<256;++e)t[e]=e;for(let r=0,i=0;r<256;++r){let a=t[r];i=i+a+e[r%n]&255,t[r]=t[i],t[i]=a}this.s=t}encryptBlock(e){let t=this.a,n=this.b,r=this.s,i=e.length,a=new Uint8Array(i);for(let o=0;o<i;++o){t=t+1&255;let i=r[t];n=n+i&255;let s=r[n];r[t]=s,r[n]=i,a[o]=e[o]^r[i+s&255]}return this.a=t,this.b=n,a}decryptBlock(e){return this.encryptBlock(e)}encrypt(e){return this.encryptBlock(e)}},Yb=class{decryptBlock(e){return e}encrypt(e){return e}},Xb=class{_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((e,t)=>t<128?t<<1:t<<1^27);constructor(){this.buffer=new Uint8Array(16),this.bufferPosition=0}_expandKey(e){M("Cannot call `_expandKey` on the base class")}_decrypt(e,t){let n,r,i,a=new Uint8Array(16);a.set(e);for(let e=0,n=this._keySize;e<16;++e,++n)a[e]^=t[n];for(let e=this._cyclesOfRepetition-1;e>=1;--e){n=a[13],a[13]=a[9],a[9]=a[5],a[5]=a[1],a[1]=n,n=a[14],r=a[10],a[14]=a[6],a[10]=a[2],a[6]=n,a[2]=r,n=a[15],r=a[11],i=a[7],a[15]=a[3],a[11]=n,a[7]=r,a[3]=i;for(let e=0;e<16;++e)a[e]=this._inv_s[a[e]];for(let n=0,r=e*16;n<16;++n,++r)a[n]^=t[r];for(let e=0;e<16;e+=4){let t=this._mix[a[e]],r=this._mix[a[e+1]],i=this._mix[a[e+2]],o=this._mix[a[e+3]];n=t^r>>>8^r<<24^i>>>16^i<<16^o>>>24^o<<8,a[e]=n>>>24&255,a[e+1]=n>>16&255,a[e+2]=n>>8&255,a[e+3]=n&255}}n=a[13],a[13]=a[9],a[9]=a[5],a[5]=a[1],a[1]=n,n=a[14],r=a[10],a[14]=a[6],a[10]=a[2],a[6]=n,a[2]=r,n=a[15],r=a[11],i=a[7],a[15]=a[3],a[11]=n,a[7]=r,a[3]=i;for(let e=0;e<16;++e)a[e]=this._inv_s[a[e]],a[e]^=t[e];return a}_encrypt(e,t){let n=this._s,r,i,a,o=new Uint8Array(16);o.set(e);for(let e=0;e<16;++e)o[e]^=t[e];for(let e=1;e<this._cyclesOfRepetition;e++){for(let e=0;e<16;++e)o[e]=n[o[e]];a=o[1],o[1]=o[5],o[5]=o[9],o[9]=o[13],o[13]=a,a=o[2],i=o[6],o[2]=o[10],o[6]=o[14],o[10]=a,o[14]=i,a=o[3],i=o[7],r=o[11],o[3]=o[15],o[7]=a,o[11]=i,o[15]=r;for(let e=0;e<16;e+=4){let t=o[e],n=o[e+1],i=o[e+2],a=o[e+3];r=t^n^i^a,o[e]^=r^this._mixCol[t^n],o[e+1]^=r^this._mixCol[n^i],o[e+2]^=r^this._mixCol[i^a],o[e+3]^=r^this._mixCol[a^t]}for(let n=0,r=e*16;n<16;++n,++r)o[n]^=t[r]}for(let e=0;e<16;++e)o[e]=n[o[e]];a=o[1],o[1]=o[5],o[5]=o[9],o[9]=o[13],o[13]=a,a=o[2],i=o[6],o[2]=o[10],o[6]=o[14],o[10]=a,o[14]=i,a=o[3],i=o[7],r=o[11],o[3]=o[15],o[7]=a,o[11]=i,o[15]=r;for(let e=0,n=this._keySize;e<16;++e,++n)o[e]^=t[n];return o}_decryptBlock2(e,t){let n=e.length,r=this.buffer,i=this.bufferPosition,a=[],o=this.iv;for(let t=0;t<n;++t){if(r[i]=e[t],++i,i<16)continue;let n=this._decrypt(r,this._key);for(let e=0;e<16;++e)n[e]^=o[e];o=r,a.push(n),r=new Uint8Array(16),i=0}if(this.buffer=r,this.bufferLength=i,this.iv=o,a.length===0)return new Uint8Array;let s=16*a.length;if(t){let e=a.at(-1),t=e[15];if(t<=16){for(let n=15,r=16-t;n>=r;--n)if(e[n]!==t){t=0;break}s-=t,a[a.length-1]=e.subarray(0,16-t)}}let c=new Uint8Array(s);for(let e=0,t=0,n=a.length;e<n;++e,t+=16)c.set(a[e],t);return c}decryptBlock(e,t,n=null){let r=e.length,i=this.buffer,a=this.bufferPosition;if(n)this.iv=n;else{for(let t=0;a<16&&t<r;++t,++a)i[a]=e[t];if(a<16)return this.bufferLength=a,new Uint8Array;this.iv=i,e=e.subarray(16)}return this.buffer=new Uint8Array(16),this.bufferLength=0,this.decryptBlock=this._decryptBlock2,this.decryptBlock(e,t)}encrypt(e,t){let n=e.length,r=this.buffer,i=this.bufferPosition,a=[];t||=new Uint8Array(16);for(let o=0;o<n;++o){if(r[i]=e[o],++i,i<16)continue;for(let e=0;e<16;++e)r[e]^=t[e];let n=this._encrypt(r,this._key);t=n,a.push(n),r=new Uint8Array(16),i=0}if(this.buffer=r,this.bufferLength=i,this.iv=t,a.length===0)return new Uint8Array;let o=16*a.length,s=new Uint8Array(o);for(let e=0,t=0,n=a.length;e<n;++e,t+=16)s.set(a[e],t);return s}},Zb=class extends Xb{_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(e){super(),this._cyclesOfRepetition=10,this._keySize=160,this._key=this._expandKey(e)}_expandKey(e){let t=this._s,n=this._rcon,r=new Uint8Array(176);r.set(e);for(let e=16,i=1;e<176;++i){let a=r[e-3],o=r[e-2],s=r[e-1],c=r[e-4];a=t[a],o=t[o],s=t[s],c=t[c],a^=n[i];for(let t=0;t<4;++t)r[e]=a^=r[e-16],e++,r[e]=o^=r[e-16],e++,r[e]=s^=r[e-16],e++,r[e]=c^=r[e-16],e++}return r}},Qb=class extends Xb{constructor(e){super(),this._cyclesOfRepetition=14,this._keySize=224,this._key=this._expandKey(e)}_expandKey(e){let t=this._s,n=new Uint8Array(240);n.set(e);let r=1,i,a,o,s;for(let e=32,c=1;e<240;++c){e%32==16?(i=t[i],a=t[a],o=t[o],s=t[s]):e%32==0&&(i=n[e-3],a=n[e-2],o=n[e-1],s=n[e-4],i=t[i],a=t[a],o=t[o],s=t[s],i^=r,(r<<=1)>=256&&(r=(r^27)&255));for(let t=0;t<4;++t)n[e]=i^=n[e-32],e++,n[e]=a^=n[e-32],e++,n[e]=o^=n[e-32],e++,n[e]=s^=n[e-32],e++}return n}},$b=class{_hash(e,t,n){M("Abstract method `_hash` called")}checkOwnerPassword(e,t,n,r){let i=new Uint8Array(e.length+56);return i.set(e,0),i.set(t,e.length),i.set(n,e.length+t.length),ye(this._hash(e,i,n),r)}checkUserPassword(e,t,n){let r=new Uint8Array(e.length+8);return r.set(e,0),r.set(t,e.length),ye(this._hash(e,r,[]),n)}getOwnerKey(e,t,n,r){let i=new Uint8Array(e.length+56);return i.set(e,0),i.set(t,e.length),i.set(n,e.length+t.length),new Qb(this._hash(e,i,n)).decryptBlock(r,!1,new Uint8Array(16))}getUserKey(e,t,n){let r=new Uint8Array(e.length+8);return r.set(e,0),r.set(t,e.length),new Qb(this._hash(e,r,[])).decryptBlock(n,!1,new Uint8Array(16))}},ex=class extends $b{_hash(e,t,n){return Kb(t,0,t.length)}},tx=class extends $b{_hash(e,t,n){let r=Kb(t,0,t.length).subarray(0,32),i=[0],a=0;for(;a<64||i.at(-1)>a-32;){let t=e.length+r.length+n.length,o=new Uint8Array(t),s=0;o.set(e,s),s+=e.length,o.set(r,s),s+=r.length,o.set(n,s);let c=new Uint8Array(t*64);for(let e=0,n=0;e<64;e++,n+=t)c.set(o,n);i=new Zb(r.subarray(0,16)).encrypt(c,r.subarray(16,32));let l=Math.sumPrecise(i.slice(0,16))%3;l===0?r=Kb(i,0,i.length):l===1?r=Lb(i,0,i.length):l===2&&(r=Ib(i,0,i.length)),a++}return r.subarray(0,32)}},nx=class{#e=new Map;constructor(e,t=null,n=null){this.resolveCipher=e,this.streamFilterName=n,this.stringFilterName=t}#t(e=null){let t=e instanceof I?e.name:`__default__`;return this.#e.getOrInsertComputed(t,()=>this.resolveCipher(e))}createStream(e,t,n=null){let r=new(this.#t(n||this.streamFilterName));return new qb(e,t,function(e,t){return r.decryptBlock(e,t)})}decryptString(e){let t=new(this.#t(this.stringFilterName)),n=pe(e);return n=t.decryptBlock(n,!0),fe(n)}encryptString(e){let t=new(this.#t(this.stringFilterName));if(t instanceof Xb){let n=16-e.length%16;e+=String.fromCharCode(n).repeat(n);let r=new Uint8Array(16);crypto.getRandomValues(r);let i=pe(e);i=t.encrypt(i,r);let a=new Uint8Array(16+i.length);return a.set(r),a.set(i,16),fe(a)}let n=pe(e);return n=t.encrypt(n),fe(n)}},rx=class e{static get _defaultPasswordBytes(){return P(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]))}#e(e,t,n,r,i,a,o,s,c,l,u,d){if(t){let e=Math.min(127,t.length);t=t.subarray(0,e)}else t=[];let f=e===6?new tx:new ex;return f.checkUserPassword(t,s,o)?f.getUserKey(t,c,u):t.length&&f.checkOwnerPassword(t,r,a,n)?f.getOwnerKey(t,i,a,l):null}#t(t,n,r,i,a,o,s,c){let l=40+r.length+t.length,u=new Uint8Array(l),d=0,f,p;if(n)for(p=Math.min(32,n.length);d<p;++d)u[d]=n[d];for(f=0;d<32;)u[d++]=e._defaultPasswordBytes[f++];u.set(r,d),d+=r.length,u[d++]=a&255,u[d++]=a>>8&255,u[d++]=a>>16&255,u[d++]=a>>>24&255,u.set(t,d),d+=t.length,o>=4&&!c&&(u.fill(255,d,d+4),d+=4);let m=Cb(u,0,d),h=s>>3;if(o>=3)for(f=0;f<50;++f)m=Cb(m,0,h);let g=m.subarray(0,h),_,v;if(o>=3){d=0,u.set(e._defaultPasswordBytes,d),d+=32,u.set(t,d),d+=t.length,_=new Jb(g),v=_.encryptBlock(Cb(u,0,d)),p=g.length;let n=new Uint8Array(p);for(f=1;f<=19;++f){for(let e=0;e<p;++e)n[e]=g[e]^f;_=new Jb(n),v=_.encryptBlock(v)}}else _=new Jb(g),v=_.encryptBlock(e._defaultPasswordBytes);return v.every((e,t)=>i[t]===e)?g:null}#n(t,n,r,i){let a=new Uint8Array(32),o=0,s=Math.min(32,t.length);for(;o<s;++o)a[o]=t[o];let c=0;for(;o<32;)a[o++]=e._defaultPasswordBytes[c++];let l=Cb(a,0,o),u=i>>3;if(r>=3)for(c=0;c<50;++c)l=Cb(l,0,l.length);let d,f;if(r>=3){f=n;let e=new Uint8Array(u);for(c=19;c>=0;c--){for(let t=0;t<u;++t)e[t]=l[t]^c;d=new Jb(e),f=d.encryptBlock(f)}}else d=new Jb(l.subarray(0,u)),f=d.encryptBlock(n);return f}#r(e,t,n,r=!1){let i=n.length,a=new Uint8Array(i+9);a.set(n);let o=i;return a[o++]=e&255,a[o++]=e>>8&255,a[o++]=e>>16&255,a[o++]=t&255,a[o++]=t>>8&255,r&&(a[o++]=115,a[o++]=65,a[o++]=108,a[o++]=84),Cb(a,0,o).subarray(0,Math.min(i+5,16))}constructor(e,t,n){let r=e.get(`Filter`);if(!Le(r,`Standard`))throw new F(`unknown encryption method`);this.filterName=r.name,this.dict=e;let i=e.get(`V`);if(!Number.isInteger(i)||i!==1&&i!==2&&i!==4&&i!==5)throw new F(`unsupported encryption algorithm`);this.algorithm=i;let a=e.get(`Length`);if(!a)if(i<=3)a=40;else{let t=e.get(`CF`),n=e.get(`StmF`);t instanceof L&&n instanceof I&&(t.suppressEncryption=!0,a=t.get(n.name)?.get(`Length`)||128,a<40&&(a<<=3))}if(!Number.isInteger(a)||a<40||a%8!=0)throw new F(`invalid key length`);let o=pe(e.get(`O`)),s=pe(e.get(`U`)),c=o.subarray(0,32),l=s.subarray(0,32),u=e.get(`P`),d=e.get(`R`),f=(i===4||i===5)&&e.get(`EncryptMetadata`)!==!1;this.encryptMetadata=f;let p=pe(t),m;if(n){if(d===6)try{n=ve(n)}catch{j(`CipherTransformFactory: Unable to convert UTF8 encoded password.`)}m=pe(n)}let h;if(i!==5)h=this.#t(p,m,c,l,u,d,a,f);else{let t=o.subarray(32,40),n=o.subarray(40,48),r=s.subarray(0,48),i=s.subarray(32,40),a=s.subarray(40,48),u=pe(e.get(`OE`)),f=pe(e.get(`UE`)),p=pe(e.get(`Perms`));h=this.#e(d,m,c,t,n,r,l,i,a,u,f,p)}if(!h){if(!n)throw new se(`No password given`,ee.NEED_PASSWORD);let e=this.#n(m,c,d,a);h=this.#t(p,e,c,l,u,d,a,f)}if(!h)throw new se(`Incorrect Password`,ee.INCORRECT_PASSWORD);if(i===4&&h.length<16?(this.encryptionKey=new Uint8Array(16),this.encryptionKey.set(h)):this.encryptionKey=h,i>=4){let t=e.get(`CF`);t instanceof L&&(t.suppressEncryption=!0),this.cf=t,this.stmf=e.get(`StmF`)||I.get(`Identity`),this.strf=e.get(`StrF`)||I.get(`Identity`),this.eff=e.get(`EFF`)||this.stmf}}createCipherTransform(e,t){return this.algorithm===4||this.algorithm===5?new nx(n=>{if(!(n instanceof I))throw new F(`Invalid crypt filter name.`);let r=this.cf.get(n.name)?.get(`CFM`);if(!r||r.name===`None`)return Yb;if(r.name===`V2`)return Jb.bind(null,this.#r(e,t,this.encryptionKey,!1));if(r.name===`AESV2`)return Zb.bind(null,this.#r(e,t,this.encryptionKey,!0));if(r.name===`AESV3`)return Qb.bind(null,this.encryptionKey);throw new F(`Unknown crypto method`)},this.strf,this.stmf):new nx(()=>Jb.bind(null,this.#r(e,t,this.encryptionKey,!1)))}},ix=class{constructor(e,t){this.stream=e,this.pdfManager=t,this.entries=[],this._xrefStms=new Set,this._cacheMap=new Map,this._pendingRefs=new Fe,this._newPersistentRefNum=null,this._newTemporaryRefNum=null,this._persistentRefsCache=null}getNewPersistentRef(e){this._newPersistentRefNum===null&&(this._newPersistentRefNum=this.entries.length||1);let t=this._newPersistentRefNum++;return this._cacheMap.set(t,e),R.get(t,0)}getNewTemporaryRef(){if(this._newTemporaryRefNum===null&&(this._newTemporaryRefNum=this.entries.length||1,this._newPersistentRefNum)){this._persistentRefsCache=new Map;for(let e=this._newTemporaryRefNum;e<this._newPersistentRefNum;e++)this._persistentRefsCache.set(e,this._cacheMap.get(e)),this._cacheMap.delete(e)}return R.get(this._newTemporaryRefNum++,0)}resetNewTemporaryRef(){if(this._newTemporaryRefNum=null,this._persistentRefsCache)for(let[e,t]of this._persistentRefsCache)this._cacheMap.set(e,t);this._persistentRefsCache=null}setStartXRef(e){this.startXRefQueue=[e]}parse(e=!1){let t;e?(j(`Indexing all PDF objects`),t=this.indexObjects()):t=this.readXRef(),t.assignXref(this),this.trailer=t;let n;try{n=t.get(`Encrypt`)}catch(e){if(e instanceof et)throw e;j(`XRef.parse - Invalid "Encrypt" reference: "${e}".`)}if(n instanceof L){let e=t.get(`ID`),r=e?.length?e[0]:``;n.suppressEncryption=!0,this.encrypt=new rx(n,r,this.pdfManager.password)}let r;try{r=t.get(`Root`)}catch(e){if(e instanceof et)throw e;j(`XRef.parse - Invalid "Root" reference: "${e}".`)}if(r instanceof L)try{if(r.get(`Pages`)instanceof L){this.root=r;return}}catch(e){if(e instanceof et)throw e;j(`XRef.parse - Invalid "Pages" reference: "${e}".`)}throw e?new le(`Invalid Root reference.`):new rt}processXRefTable(e){if(`tableState`in this||(this.tableState={entryNum:0,streamPos:e.lexer.stream.pos,parserBuf1:e.buf1,parserBuf2:e.buf2}),!Re(this.readXRefTable(e),`trailer`))throw new F(`Invalid XRef table: could not find trailer dictionary`);let t=e.getObj();if(!(t instanceof L)&&t.dict&&(t=t.dict),!(t instanceof L))throw new F(`Invalid XRef table: could not parse trailer dictionary`);return delete this.tableState,t}readXRefTable(e){let t=e.lexer.stream,n=this.tableState;t.pos=n.streamPos,e.buf1=n.parserBuf1,e.buf2=n.parserBuf2;let r;for(;;){if(!(`firstEntryNum`in n)||!(`entryCount`in n)){if(Re(r=e.getObj(),`trailer`))break;n.firstEntryNum=r,n.entryCount=e.getObj()}let i=n.firstEntryNum,a=n.entryCount;if(!Number.isInteger(i)||!Number.isInteger(a))throw new F(`Invalid XRef table: wrong types in subsection header`);for(let r=n.entryNum;r<a;r++){n.streamPos=t.pos,n.entryNum=r,n.parserBuf1=e.buf1,n.parserBuf2=e.buf2;let o={};o.offset=e.getObj(),o.gen=e.getObj();let s=e.getObj();if(s instanceof Ne)switch(s.cmd){case`f`:o.free=!0;break;case`n`:o.uncompressed=!0;break}if(!Number.isInteger(o.offset)||!Number.isInteger(o.gen)||!(o.free||o.uncompressed))throw new F(`Invalid entry in XRef subsection: ${i}, ${a}`);r===0&&o.free&&i===1&&(i=0),this.entries[r+i]||(this.entries[r+i]=o)}n.entryNum=0,n.streamPos=t.pos,n.parserBuf1=e.buf1,n.parserBuf2=e.buf2,delete n.firstEntryNum,delete n.entryCount}if(this.entries[0]&&!this.entries[0].free)throw new F(`Invalid XRef table: unexpected first object`);return r}processXRefStream(e){if(!(`streamState`in this)){let{dict:t,pos:n}=e,r=t.get(`W`),i=t.get(`Index`)||[0,t.get(`Size`)];this.streamState={entryRanges:i,byteWidths:r,entryNum:0,streamPos:n}}return this.readXRefStream(e),delete this.streamState,e.dict}readXRefStream(e){let t=this.streamState;e.pos=t.streamPos;let[n,r,i]=t.byteWidths,a=t.entryRanges;for(;a.length>0;){let[o,s]=a;if(!Number.isInteger(o)||!Number.isInteger(s))throw new F(`Invalid XRef range fields: ${o}, ${s}`);if(!Number.isInteger(n)||!Number.isInteger(r)||!Number.isInteger(i))throw new F(`Invalid XRef entry fields length: ${o}, ${s}`);for(let a=t.entryNum;a<s;++a){t.entryNum=a,t.streamPos=e.pos;let s=0,c=0,l=0;for(let t=0;t<n;++t){let t=e.getByte();if(t===-1)throw new F(`Invalid XRef byteWidths \'type\'.`);s=s<<8|t}n===0&&(s=1);for(let t=0;t<r;++t){let t=e.getByte();if(t===-1)throw new F(`Invalid XRef byteWidths \'offset\'.`);c=c<<8|t}for(let t=0;t<i;++t){let t=e.getByte();if(t===-1)throw new F(`Invalid XRef byteWidths \'generation\'.`);l=l<<8|t}let u={};switch(u.offset=c,u.gen=l,s){case 0:u.free=!0;break;case 1:u.uncompressed=!0;break;case 2:break;default:throw new F(`Invalid XRef entry type: ${s}`)}this.entries[o+a]||(this.entries[o+a]=u)}t.entryNum=0,t.streamPos=e.pos,a.splice(0,2)}}indexObjects(){function e(e,t){let n=``,r=e[t];for(;r!==10&&r!==13&&r!==60&&!(++t>=e.length);)n+=String.fromCharCode(r),r=e[t];return n}function t(e,t,n){let r=n.length,i=e.length,a=0;for(;t<i;){let i=0;for(;i<r&&e[t+i]===n[i];)++i;if(i>=r)break;t++,a++}return a}let n=/\\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/,a=new Uint8Array([116,114,97,105,108,101,114]),o=new Uint8Array([115,116,97,114,116,120,114,101,102]),s=new Uint8Array([47,88,82,101,102]);this.entries.length=0,this._cacheMap.clear();let c=this.stream;c.pos=0;let l=c.getBytes(),u=fe(l),d=l.length,f=c.start,p=[],m=[];for(;f<d;){let h=l[f];if(h===9||h===10||h===13||h===32){++f;continue}if(h===37){do{if(++f,f>=d)break;h=l[f]}while(h!==10&&h!==13);continue}let g=e(l,f),_;if(g.startsWith(`xref`)&&(g.length===4||/\\s/.test(g[4])))f+=t(l,f,a),p.push(f),f+=t(l,f,o);else if(_=i.exec(g)){let e=_[1]|0,r=_[2]|0,i=f+g.length,a,o=!1;if(!this.entries[e])o=!0;else if(this.entries[e].gen===r)try{new oi({lexer:new li(c.makeSubStream(i))}).getObj(),o=!0}catch(e){e instanceof tt?j(`indexObjects -- checking object (${g}): "${e}".`):o=!0}o&&(this.entries[e]={offset:f-c.start,gen:r,uncompressed:!0}),n.lastIndex=i;let p=n.exec(u);p?(a=n.lastIndex+1-f,p[1]!==`endobj`&&(j(`indexObjects: Found "${p[1]}" inside of another "obj", caused by missing "endobj" -- trying to recover.`),a-=p[1].length+1)):a=d-f;let h=l.subarray(f,f+a),v=t(h,0,s);v<a&&h[v+5]<64&&(m.push(f-c.start),this._xrefStms.add(f-c.start)),f+=a}else if(g.startsWith(`trailer`)&&(g.length===7||/\\s/.test(g[7]))){p.push(f);let e=f+g.length,t;r.lastIndex=e;let n=r.exec(u);n?(t=r.lastIndex+1-f,n[1]!==`startxref`&&(j(`indexObjects: Found "${n[1]}" after "trailer", caused by missing "startxref" -- trying to recover.`),t-=n[1].length+1)):t=d-f,f+=t}else f+=g.length+1}for(let e of m)this.startXRefQueue.push(e),this.readXRef(!0);let h=[],g=!1;for(let e of p){c.pos=e;let t=new oi({lexer:new li(c),xref:this,allowStreams:!0,recoveryMode:!0});if(!Re(t.getObj(),`trailer`))continue;let n=t.getObj();n instanceof L&&(h.push(n),n.has(`Encrypt`)&&(g=!0))}let _,v;for(let e of[...h,`genFallback`,...h]){if(e===`genFallback`){if(!v)break;this._generationFallback=!0;continue}let t=!1;try{let n=e.get(`Root`);if(!(n instanceof L))continue;let r=n.get(`Pages`);if(!(r instanceof L))continue;let i=r.get(`Count`);Number.isInteger(i)&&(t=!0)}catch(e){v=e;continue}if(t&&(!g||e.has(`Encrypt`))&&e.has(`ID`))return e;_=e}if(_)return _;if(this.topDict)return this.topDict;if(!h.length)for(let e in this.entries){let t=this.entries[e];if(!t)continue;let n=R.get(parseInt(e,10),t.gen),r;try{r=this.fetch(n)}catch{continue}if(r instanceof Ve&&(r=r.dict),r instanceof L&&r.has(`Root`))return r}throw new le(`Invalid PDF structure.`)}readXRef(e=!1){let t=this.stream,n=new Set;for(;this.startXRefQueue.length;){try{let e=this.startXRefQueue[0];if(n.has(e)){j(`readXRef - skipping XRef table since it was already parsed.`),this.startXRefQueue.shift();continue}n.add(e),t.pos=e+t.start;let r=new oi({lexer:new li(t),xref:this,allowStreams:!0}),i=r.getObj(),a;if(Re(i,`xref`))a=this.processXRefTable(r),this.topDict||=a,i=a.get(`XRefStm`),Number.isInteger(i)&&!this._xrefStms.has(i)&&(this._xrefStms.add(i),this.startXRefQueue.push(i));else if(Number.isInteger(i)){if(!Number.isInteger(r.getObj())||!Re(r.getObj(),`obj`)||!((i=r.getObj())instanceof Ve))throw new F(`Invalid XRef stream`);if(a=this.processXRefStream(i),this.topDict||=a,!a)throw new F(`Failed to read XRef stream`)}else throw new F(`Invalid XRef stream header`);i=a.get(`Prev`),Number.isInteger(i)?this.startXRefQueue.push(i):i instanceof R&&this.startXRefQueue.push(i.num)}catch(e){if(e instanceof et)throw e;A(`(while reading XRef): `+e)}this.startXRefQueue.shift()}if(this.topDict)return this.topDict;if(!e)throw new rt}getEntry(e){let t=this.entries[e];return t&&!t.free&&t.offset?t:null}fetchIfRef(e,t=!1){return e instanceof R?this.fetch(e,t):e}fetch(e,t=!1){if(!(e instanceof R))throw Error(`ref object is not a reference`);let n=e.num,r=this._cacheMap.get(n);if(r!==void 0)return r instanceof L&&!r.objId&&(r.objId=e.toString()),r;let i=this.getEntry(n);if(i===null)return i;if(this._pendingRefs.has(e))return this._pendingRefs.remove(e),j(`Ignoring circular reference: ${e}.`),De;this._pendingRefs.put(e);try{i=i.uncompressed?this.fetchUncompressed(e,i,t):this.fetchCompressed(e,i,t),this._pendingRefs.remove(e)}catch(t){throw this._pendingRefs.remove(e),t}return i instanceof L?i.objId=e.toString():i instanceof Ve&&(i.dict.objId=e.toString()),i}fetchUncompressed(e,t,n=!1){let r=e.gen,i=e.num;if(t.gen!==r){let a=`Inconsistent generation in XRef: ${e}`;if(this._generationFallback&&t.gen<r)return j(a),this.fetchUncompressed(R.get(i,t.gen),t,n);throw new nt(a)}let a=new oi({lexer:new li(this.stream.makeSubStream(t.offset+this.stream.start)),xref:this,allowStreams:!0}),o=a.getObj(),s=a.getObj(),c=a.getObj();if(o!==i||s!==r||!(c instanceof Ne))throw new nt(`Bad (uncompressed) XRef entry: ${e}`);if(c.cmd!==`obj`){if(c.cmd.startsWith(`obj`)&&(i=parseInt(c.cmd.substring(3),10),!Number.isNaN(i)))return i;throw new nt(`Bad (uncompressed) XRef entry: ${e}`)}return t=this.encrypt&&!n?a.getObj(this.encrypt.createCipherTransform(i,r)):a.getObj(),t instanceof Ve||this._cacheMap.set(i,t),t}fetchCompressed(e,t,n=!1){let r=t.offset,i=this.fetch(R.get(r,0));if(!(i instanceof Ve))throw new F(`bad ObjStm stream`);let a=i.dict.get(`First`),o=i.dict.get(`N`);if(!Number.isInteger(a)||!Number.isInteger(o))throw new F(`invalid first and n parameters for ObjStm stream`);let s=new oi({lexer:new li(i),xref:this,allowStreams:!0}),c=Array(o),l=Array(o);for(let e=0;e<o;++e){let t=s.getObj();if(!Number.isInteger(t))throw new F(`invalid object number in the ObjStm stream: ${t}`);let n=s.getObj();if(!Number.isInteger(n))throw new F(`invalid object offset in the ObjStm stream: ${n}`);c[e]=t;let i=this.getEntry(t);i?.offset===r&&i.gen!==e&&(i.gen=e),l[e]=n}let u=(i.start||0)+a,d=Array(o);for(let e=0;e<o;++e){let t=e<o-1?l[e+1]-l[e]:void 0;if(t<0)throw new F(`Invalid offset in the ObjStm stream.`);s=new oi({lexer:new li(i.makeSubStream(u+l[e],t,i.dict)),xref:this,allowStreams:!0});let n=s.getObj();if(d[e]=n,n instanceof Ve)continue;let a=c[e],f=this.entries[a];f&&f.offset===r&&f.gen===e&&this._cacheMap.set(a,n)}if(t=d[t.gen],t===void 0)throw new nt(`Bad (compressed) XRef entry: ${e}`);return t}async fetchIfRefAsync(e,t){return e instanceof R?this.fetchAsync(e,t):e}async fetchAsync(e,t){try{return this.fetch(e,t)}catch(n){if(!(n instanceof et))throw n;return await this.pdfManager.requestRange(n.begin,n.end),this.fetchAsync(e,t)}}getCatalogObj(){return this.root}};let ax=[0,0,612,792];var ox=class{#e=null;constructor({pdfManager:e,xref:t,pageIndex:n,pageDict:r,ref:i,globalIdFactory:a,fontCache:o,builtInCMapCache:s,standardFontDataCache:c,globalColorSpaceCache:l,globalImageCache:u,systemFontCache:d,nonBlendModesSet:f,xfaFactory:p}){this.pdfManager=e,this.pageIndex=n,this.pageDict=r,this.xref=t,this.ref=i,this.fontCache=o,this.builtInCMapCache=s,this.standardFontDataCache=c,this.globalColorSpaceCache=l,this.globalImageCache=u,this.systemFontCache=d,this.nonBlendModesSet=f,this.evaluatorOptions=e.evaluatorOptions,this.xfaFactory=p;let m={obj:0};this._localIdFactory=class extends a{static createObjId(){return`p${n}_${++m.obj}`}static getPageObjId(){return`p${i.toString()}`}}}#t(e,t=this.pageIndex){return new Ll({xref:this.xref,handler:e,pageIndex:t,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalColorSpaceCache:this.globalColorSpaceCache,globalImageCache:this.globalImageCache,systemFontCache:this.systemFontCache,options:this.evaluatorOptions})}createAnnotationEvaluator(e){return this.#t(e)}#n(e,t=!1){let n=ot({dict:this.pageDict,key:e,getArray:t,stopWhenFound:!1});return Array.isArray(n)?n.length===1||!(n[0]instanceof L)?n[0]:L.merge({xref:this.xref,dictArray:n}):n}get content(){return this.pageDict.getArray(`Contents`)}get resources(){let e=this.#n(`Resources`);return P(this,`resources`,e instanceof L?e:L.empty)}getBoundingBox(e){if(this.xfaData)return this.xfaData.bbox;let t=gt(this.#n(e,!0),null);if(t){if(t[2]-t[0]>0&&t[3]-t[1]>0)return t;j(`Empty, or invalid, /${e} entry.`)}return null}get mediaBox(){return P(this,`mediaBox`,this.getBoundingBox(`MediaBox`)||ax)}get cropBox(){return P(this,`cropBox`,this.getBoundingBox(`CropBox`)||this.mediaBox)}get userUnit(){let e=this.pageDict.get(`UserUnit`);return P(this,`userUnit`,typeof e==`number`&&e>0?e:1)}get view(){let{cropBox:e,mediaBox:t}=this;if(e!==t&&!ye(e,t)){let n=ge.intersect(e,t);if(n&&n[2]-n[0]>0&&n[3]-n[1]>0)return P(this,`view`,n);j(`Empty /CropBox and /MediaBox intersection.`)}return P(this,`view`,t)}get rotate(){let e=this.#n(`Rotate`)||0;return e%90==0?e>=360?e%=360:e<0&&(e=(e%360+360)%360):e=0,P(this,`rotate`,e)}#r(e,t){if(this.evaluatorOptions.ignoreErrors){j(`getContentStream - ignoring sub-stream (${t}): "${e}".`);return}throw e}async getContentStream(){let e=await this.pdfManager.ensure(this,`content`);if(e instanceof Ve&&!e.isImageStream){if(e.isAsync){let t=await e.asyncGetBytes();if(t)return new Cn(t,0,t.length,e.dict)}return e}if(Array.isArray(e)){let t=[];for(let n=0,r=e.length;n<r;n++){let r=e[n];r instanceof Ve&&r.isAsync&&t.push(r.asyncGetBytes().then(t=>{t&&(e[n]=new Cn(t,0,t.length,r.dict))}))}return t.length>0&&await Promise.all(t),new In(e,this.#r.bind(this))}return new Tn}get xfaData(){return P(this,`xfaData`,this.xfaFactory?{bbox:this.xfaFactory.getBoundingBox(this.pageIndex)}:null)}async#i(e,t,n){let r=[];for(let i of e)if(i.id){let e=R.fromString(i.id);if(!e){j(`A non-linked annotation cannot be modified: ${i.id}`);continue}if(i.deleted){if(t.put(e,e),i.popupRef){let e=R.fromString(i.popupRef);e&&t.put(e,e)}continue}if(i.popup?.deleted){let e=R.fromString(i.popupRef);e&&t.put(e,e)}n?.put(e),i.ref=e,r.push(this.xref.fetchAsync(e).then(e=>{e instanceof L&&(i.oldAnnotation=e.clone())},()=>{j(`Cannot fetch \\`oldAnnotation\\` for: ${e}.`)})),delete i.id}await Promise.all(r)}async saveNewAnnotations(e,t,n,r,i){if(this.xfaFactory)throw Error(`XFA: Cannot save new annotations.`);let a=this.#t(e),o=new Ie,s=new Fe;await this.#i(n,o,s);let c=this.pageDict,l=this.annotations.filter(e=>!(e instanceof R&&o.has(e))),u=await Ky.saveNewAnnotations(a,this.xref,t,n,r,i);for(let{ref:e}of u.annotations)e instanceof R&&!s.has(e)&&l.push(e);let d=c.clone();d.set(`Annots`,l),i.put(this.ref,{data:d});for(let e of o)i.put(e,{data:null})}async save(e,t,n,r){let i=this.#t(e),a=await this._parsedAnnotations,o=[];for(let e of a)o.push(e.save(i,t,n,r).catch(function(e){return j(`save - ignoring annotation data during "${t.name}" task: "${e}".`),null}));return Promise.all(o)}async loadResources(e){await(this.#e??=this.pdfManager.ensure(this,`resources`)),await ku.load(this.resources,e,this.xref)}async#a(e,t){let n=e?.get(`Resources`);return n instanceof L&&n.size?(await ku.load(n,t,this.xref),L.merge({xref:this.xref,dictArray:[n,this.resources],mergeSubDicts:!0})):this.resources}async getOperatorList({handler:e,sink:t,task:n,intent:r,cacheKey:i,pageIndex:a=this.pageIndex,annotationStorage:o=null,modifiedIds:s=null}){let c=this.getContentStream(),l=this.loadResources(Ze),u=this.#t(e,a),p=(this.xfaFactory?null:kt(o))?.get(this.pageIndex),m=Promise.resolve(null),h=null;if(p){let e=this.pdfManager.ensureDoc(`annotationGlobals`),t,r=new Set;for(let{bitmapId:e,bitmap:t}of p)e&&!t&&!r.has(e)&&r.add(e);let{isOffscreenCanvasSupported:i}=this.evaluatorOptions;if(r.size>0){let e=p.slice();for(let[t,n]of o)t.startsWith(f)&&n.bitmap&&r.has(n.bitmapId)&&e.push(n);t=Ky.generateImages(e,this.xref,i)}else t=Ky.generateImages(p,this.xref,i);h=new Fe,m=Promise.all([e,this.#i(p,h,null)]).then(([e])=>e?Ky.printNewAnnotations(e,u,n,p,t):null)}let g=Promise.all([c,l]).then(async([o])=>{let s=await this.#a(o.dict,Ze),c=new ur(r,t);return e.send(`StartRenderPage`,{transparency:u.hasBlendModes(s,this.nonBlendModesSet),pageIndex:a,cacheKey:i}),await u.getOperatorList({stream:o,task:n,resources:s,operatorList:c}),c}),[_,v,y]=await Promise.all([g,this._parsedAnnotations,m]);if(y){v=v.filter(e=>!(e.ref&&h.has(e.ref)));for(let e=0,t=y.length;e<t;e++){let n=y[e];if(n.refToReplace){let r=v.findIndex(e=>e.ref&&Be(e.ref,n.refToReplace));r>=0&&(v.splice(r,1,n),y.splice(e--,1),t--)}}v=v.concat(y)}if(v.length===0||r&d.ANNOTATIONS_DISABLE)return _.flush(!0),{length:_.totalLength};let b=!!(r&d.ANNOTATIONS_FORMS),x=!!(r&d.IS_EDITING),S=!!(r&d.ANY),C=!!(r&d.DISPLAY),w=!!(r&d.PRINT),T=[];for(let e of v)(S||C&&e.mustBeViewed(o,b)&&e.mustBeViewedWhenEditing(x,s)||w&&e.mustBePrinted(o))&&T.push(e.getOperatorList(u,n,r,o).catch(function(e){return j(`getOperatorList - ignoring annotation data during "${n.name}" task: "${e}".`),{opList:null,separateForm:!1,separateCanvas:!1}}));let E=await Promise.all(T),D=!1,O=!1;for(let{opList:e,separateForm:t,separateCanvas:n}of E)_.addOpList(e),D||=t,O||=n;return _.flush(!0,{form:D,canvas:O}),{length:_.totalLength}}async extractTextContent({handler:e,task:t,includeMarkedContent:n,disableNormalization:r,sink:i,intersector:a=null}){let o=this.getContentStream(),s=this.loadResources(Qe),c=this.pdfManager.ensureCatalog(`lang`),[l,,u]=await Promise.all([o,s,c]),d=await this.#a(l.dict,Qe);return this.#t(e).getTextContent({stream:l,task:t,resources:d,includeMarkedContent:n,disableNormalization:r,sink:i,viewBox:this.view,lang:u,intersector:a})}async getStructTree(){let e=await this.pdfManager.ensureCatalog(`structTreeRoot`);if(!e)return null;await this._parsedAnnotations;try{let t=await this.pdfManager.ensure(this,`_parseStructTree`,[e]);return await this.pdfManager.ensure(t,`serializable`)}catch(e){return j(`getStructTree: "${e}".`),null}}_parseStructTree(e){let t=new hu(e,this.pageDict);return t.parse(this.ref),t}async getAnnotationsData(e,t,n){let r=await this._parsedAnnotations;if(r.length===0)return r;let i=[],a=[],o,s=!!(n&d.ANY),c=!!(n&d.DISPLAY),l=!!(n&d.PRINT),u=[];for(let n of r){let r=s||c&&n.viewable;(r||l&&n.printable)&&i.push(n.data),n.hasTextContent&&r?(o??=this.#t(e),a.push(n.extractTextContent(o,t,[-1/0,-1/0,1/0,1/0]).catch(function(e){j(`getAnnotationsData - ignoring textContent during "${t.name}" task: "${e}".`)}))):n.overlaysTextContent&&r&&u.push(n)}if(u.length>0){let n=new Ob(u);a.push(this.extractTextContent({handler:e,task:t,includeMarkedContent:!1,disableNormalization:!1,sink:null,viewBox:this.view,lang:null,intersector:n}).then(()=>{n.setText()}))}return await Promise.all(a),i}get annotations(){let e=this.#n(`Annots`);return P(this,`annotations`,Array.isArray(e)?e:[])}get _parsedAnnotations(){let e=this.pdfManager.ensure(this,`annotations`).then(async e=>{if(e.length===0)return e;let[t,n]=await Promise.all([this.pdfManager.ensureDoc(`annotationGlobals`),this.pdfManager.ensureDoc(`fieldObjects`)]);if(!t)return[];let r=n?.orphanFields,i=[];for(let n of e)i.push(Ky.create(this.xref,n,t,this._localIdFactory,!1,r,null,this.ref).catch(function(e){return j(`_parsedAnnotations: "${e}".`),null}));let a=[],o,s;for(let e of await Promise.all(i))if(e){if(e instanceof eb){(s||=[]).push(e);continue}if(e instanceof sb){(o||=[]).push(e);continue}a.push(e)}return s&&a.push(...s),o&&a.push(...o),a});return P(this,`_parsedAnnotations`,e)}get jsActions(){let e=xt(this.xref,this.pageDict,T);return P(this,`jsActions`,e)}async collectAnnotationsByType(e,t,n,r,i){let{pageIndex:a}=this;if(Object.hasOwn(this,`_parsedAnnotations`)){let e=await this._parsedAnnotations;for(let{data:t}of e)(!n||n.has(t.annotationType))&&(t.pageIndex=a,r.push(Promise.resolve(t)));return}let o=await this.pdfManager.ensure(this,`annotations`),s;for(let c of o)r.push(Ky.create(this.xref,c,i,this._localIdFactory,!1,null,n,this.ref).then(async n=>n?(n.data.pageIndex=a,n.hasTextContent&&n.viewable&&(s??=this.#t(e),await n.extractTextContent(s,t,[-1/0,-1/0,1/0,1/0])),n.data):null).catch(function(e){return j(`collectAnnotationsByType: "${e}".`),null}))}};let sx=new Uint8Array([37,80,68,70,45]),cx=new Uint8Array([115,116,97,114,116,120,114,101,102]),lx=new Uint8Array([101,110,100,111,98,106]);function ux(e,t,n=1024,r=!1){let i=t.length,a=e.peekBytes(n),o=a.length-i;if(o<=0)return!1;if(r){let n=i-1,r=a.length-1;for(;r>=n;){let o=0;for(;o<i&&a[r-o]===t[n-o];)o++;if(o>=i)return e.pos+=r-n,!0;r--}}else{let n=0;for(;n<=o;){let r=0;for(;r<i&&a[n+r]===t[r];)r++;if(r>=i)return e.pos+=n,!0;n++}}return!1}var dx=class{#e=new Map;#t=null;constructor(e,t){if(t.length<=0)throw new le(`The PDF file is empty, i.e. its size is zero bytes.`);this.pdfManager=e,this.stream=t,this.xref=new ix(t,e);let n={font:0};this._globalIdFactory=class{static getDocId(){return`g_${e.docId}`}static createFontId(){return`f${++n.font}`}static createObjId(){M("Abstract method `createObjId` called.")}static getPageObjId(){M("Abstract method `getPageObjId` called.")}}}parse(e){this.xref.parse(e),this.catalog=new yu(this.pdfManager,this.xref)}get linearization(){let e=null;try{e=ui.create(this.stream)}catch(e){if(e instanceof et)throw e;A(e)}return P(this,`linearization`,e)}get startXRef(){let e=this.stream,t=0;if(this.linearization){if(e.reset(),ux(e,lx)){e.skip(6);let n=e.peekByte();for(;dt(n);)e.pos++,n=e.peekByte();t=e.pos-e.start}}else{let n=1024,r=cx.length,i=!1,a=e.end;for(;!i&&a>0;)a-=n-r,a<0&&(a=0),e.pos=a,i=ux(e,cx,n,!0);if(i){e.skip(9);let n;do n=e.getByte();while(dt(n));let r=``;for(;n>=32&&n<=57;)r+=String.fromCharCode(n),n=e.getByte();t=parseInt(r,10),isNaN(t)&&(t=0)}}return P(this,`startXRef`,t)}checkHeader(){let e=this.stream;if(e.reset(),!ux(e,sx))return;e.moveStart(),e.skip(sx.length);let t=``,n;for(;(n=e.getByte())>32&&t.length<7;)t+=String.fromCharCode(n);Je.test(t)?this.#t=t:j(`Invalid PDF header version: ${t}`)}parseStartXRef(){this.xref.setStartXRef(this.startXRef)}get numPages(){let e=0;return e=this.catalog.hasActualNumPages?this.catalog.numPages:this.xfaFactory?this.xfaFactory.getNumPages():this.linearization?this.linearization.numPages:this.catalog.numPages,P(this,`numPages`,e)}#n(e,t=0){return Array.isArray(e)?e.every(e=>{if(e=this.xref.fetchIfRef(e),!(e instanceof L))return!1;if(e.has(`Kids`))return++t>10?(j(`#hasOnlyDocumentSignatures: maximum recursion depth reached`),!1):this.#n(e.get(`Kids`),t);let n=Le(e.get(`FT`),`Sig`),r=e.get(`Rect`),i=Array.isArray(r)&&r.every(e=>e===0);return n&&i}):!1}get _xfaStreams(){let{acroForm:e}=this.catalog;if(!e)return null;let t=e.get(`XFA`),n=new Map([`xdp:xdp`,`template`,`datasets`,`config`,`connectionSet`,`localeSet`,`stylesheet`,`/xdp:xdp`].map(e=>[e,null]));if(t instanceof Ve&&!t.isEmpty)return n.set(`xdp:xdp`,t),n;if(!Array.isArray(t)||t.length===0)return null;for(let e=0,r=t.length;e<r;e+=2){let i;if(i=e===0?`xdp:xdp`:e===r-2?`/xdp:xdp`:t[e],!n.has(i))continue;let a=this.xref.fetchIfRef(t[e+1]);!(a instanceof Ve)||a.isEmpty||n.set(i,a)}return n}get xfaDatasets(){let e=this._xfaStreams;if(!e)return P(this,`xfaDatasets`,null);for(let t of[`datasets`,`xdp:xdp`]){let n=e.get(t);if(n)try{let e=_e(n.getString()),r={[t]:e};return P(this,`xfaDatasets`,new Eb(r))}catch{j(`XFA - Invalid utf-8 string.`);break}}return P(this,`xfaDatasets`,null)}get xfaData(){let e=this._xfaStreams;if(!e)return null;let t=Object.create(null);for(let[n,r]of e)if(r)try{t[n]=_e(r.getString())}catch{return j(`XFA - Invalid utf-8 string.`),null}return t}get xfaFactory(){let e;return this.pdfManager.enableXfa&&this.catalog.needsRendering&&this.formInfo.hasXfa&&!this.formInfo.hasAcroForm&&(e=this.xfaData),P(this,`xfaFactory`,e?new Gy(e):null)}get isPureXfa(){return this.xfaFactory?this.xfaFactory.isValid():!1}get htmlForXfa(){return this.xfaFactory?this.xfaFactory.getPages():null}async#r(){let e=await this.pdfManager.ensureCatalog(`xfaImages`);e&&this.xfaFactory.setImages(e)}async#i(e,t){let n=await this.pdfManager.ensureCatalog(`acroForm`);if(!n)return;let r=await n.getAsync(`DR`);if(!(r instanceof L))return;await ku.load(r,[`Font`],this.xref);let i=r.get(`Font`);if(!(i instanceof L))return;let a=Object.assign(Object.create(null),this.pdfManager.evaluatorOptions,{useSystemFonts:!1}),{builtInCMapCache:o,fontCache:s,standardFontDataCache:c}=this.catalog,l=new Ll({xref:this.xref,handler:e,pageIndex:-1,idFactory:this._globalIdFactory,fontCache:s,builtInCMapCache:o,standardFontDataCache:c,options:a}),u=new ur,d=[],f={get font(){return d.at(-1)},set font(e){d.push(e)},clone(){return this}},p=(e,n,i)=>l.handleSetFont(r,[I.get(e),1],null,u,t,f,n,i).catch(e=>(j(`loadXfaFonts: "${e}".`),null)),m=[];for(let[e,t]of i){let n=t.get(`FontDescriptor`);if(!(n instanceof L))continue;let r=n.get(`FontFamily`);r=r.replaceAll(/ +(\\d)/g,`$1`);let i=n.get(`FontWeight`),a=-n.get(`ItalicAngle`),o={fontFamily:r,fontWeight:i,italicAngle:a};Et(o)&&m.push(p(e,null,o))}await Promise.all(m);let h=this.xfaFactory.setFonts(d);if(!h)return;a.ignoreErrors=!0,m.length=0,d.length=0;let g=new Set;for(let e of h)tc(`${e}-Regular`)||g.add(e);g.size&&h.push(`PdfJS-Fallback`);for(let e of h)if(!g.has(e))for(let t 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 n=`${e}-${t.name}`;m.push(p(n,rc(n),{fontFamily:e,fontWeight:t.fontWeight,italicAngle:t.italicAngle}))}await Promise.all(m),this.xfaFactory.appendFonts(d,g)}loadXfaResources(e,t){return Promise.all([this.#i(e,t).catch(()=>{}),this.#r()])}serializeXfaData(e){return this.xfaFactory?this.xfaFactory.serializeData(e):null}get version(){return this.catalog.version||this.#t}get formInfo(){let e={hasFields:!1,hasAcroForm:!1,hasXfa:!1,hasSignatures:!1},{acroForm:t}=this.catalog;if(!t)return P(this,`formInfo`,e);try{let n=t.get(`Fields`),r=Array.isArray(n)&&n.length>0;e.hasFields=r;let i=t.get(`XFA`);e.hasXfa=Array.isArray(i)&&i.length>0||i instanceof Ve&&!i.isEmpty;let a=!!(t.get(`SigFlags`)&1),o=a&&this.#n(n);e.hasAcroForm=r&&!o,e.hasSignatures=a}catch(e){if(e instanceof et)throw e;j(`Cannot fetch form information: "${e}".`)}return P(this,`formInfo`,e)}get documentInfo(){let{catalog:e,formInfo:t,xref:n}=this,r={PDFFormatVersion:this.version,Language:e.lang,EncryptFilterName:n.encrypt?.filterName??null,IsLinearized:!!this.linearization,IsAcroFormPresent:t.hasAcroForm,IsXFAPresent:t.hasXfa,IsCollectionPresent:!!e.collection,IsSignaturesPresent:t.hasSignatures},i;try{i=n.trailer.get(`Info`)}catch(e){if(e instanceof et)throw e;A(`The document information dictionary is invalid.`)}if(!(i instanceof L))return P(this,`documentInfo`,r);for(let[e,t]of i){switch(e){case`Title`:case`Author`:case`Subject`:case`Keywords`:case`Creator`:case`Producer`:case`CreationDate`:case`ModDate`:if(typeof t==`string`){r[e]=qe(t);continue}break;case`Trapped`:if(t instanceof I){r[e]=t;continue}break;default:let n;switch(typeof t){case`string`:n=qe(t);break;case`number`:case`boolean`:n=t;break;default:t instanceof I&&(n=t);break}if(n===void 0){j(`Bad value, for custom key "${e}", in Info: ${t}.`);continue}r.Custom??=Object.create(null),r.Custom[e]=n;continue}j(`Bad value, for key "${e}", in Info: ${t}.`)}return P(this,`documentInfo`,r)}get fingerprints(){let e=1024,t=`\\0`.repeat(16);function n(e){return typeof e==`string`&&e.length===16&&e!==t}let r=this.xref.trailer.get(`ID`),i,a;return Array.isArray(r)&&n(r[0])?(i=pe(r[0]),r[1]!==r[0]&&n(r[1])&&(a=pe(r[1]))):i=Cb(this.stream.getByteRange(0,e),0,e),P(this,`fingerprints`,[i.toHex(),a?.toHex()??null])}async#a(e){let{catalog:t,linearization:n,xref:r}=this,i=R.get(n.objectNumberFirst,0);try{let e=await r.fetchAsync(i);if(e instanceof L){let n=e.getRaw(`Type`);if(n instanceof R&&(n=await r.fetchAsync(n)),Le(n,`Page`)||!e.has(`Type`)&&!e.has(`Kids`)&&e.has(`Contents`))return t.pageKidsCountCache.has(i)||t.pageKidsCountCache.put(i,1),t.pageIndexCache.has(i)||t.pageIndexCache.put(i,0),[e,i]}throw new F(`The Linearization dictionary doesn\'t point to a valid Page dictionary.`)}catch(n){return j(`_getLinearizationPage: "${n.message}".`),t.getPageDict(e)}}getPage(e){let t=this.#e.get(e);if(t)return t;let{catalog:n,linearization:r,xfaFactory:i}=this,a;return a=i?Promise.resolve([L.empty,null]):r?.pageFirst===e?this.#a(e):n.getPageDict(e),a=a.then(([t,r])=>new ox({pdfManager:this.pdfManager,xref:this.xref,pageIndex:e,pageDict:t,ref:r,globalIdFactory:this._globalIdFactory,fontCache:n.fontCache,builtInCMapCache:n.builtInCMapCache,standardFontDataCache:n.standardFontDataCache,globalColorSpaceCache:n.globalColorSpaceCache,globalImageCache:n.globalImageCache,systemFontCache:n.systemFontCache,nonBlendModesSet:n.nonBlendModesSet,xfaFactory:i})),this.#e.set(e,a),a}async checkFirstPage(e=!1){if(!e)try{await this.getPage(0)}catch(e){if(e instanceof nt)throw this.#e.delete(0),await this.cleanup(),new rt}}async checkLastPage(e=!1){let{catalog:t,pdfManager:n}=this;t.setActualNumPages();let r;try{if(await Promise.all([n.ensureDoc(`xfaFactory`),n.ensureDoc(`linearization`),n.ensureCatalog(`numPages`)]),this.xfaFactory)return;if(r=this.linearization?this.linearization.numPages:t.numPages,!Number.isInteger(r))throw new F(`Page count is not an integer.`);if(r<=1)return;await this.getPage(r-1)}catch(i){if(this.#e.delete(r-1),await this.cleanup(),i instanceof nt&&!e)throw new rt;j(`checkLastPage - invalid /Pages tree /Count: ${r}.`);let a;try{a=await t.getAllPageDicts(e)}catch(n){if(n instanceof nt&&!e)throw new rt;t.setActualNumPages(1);return}for(let[e,[r,i]]of a){let a;r instanceof Error?(a=Promise.reject(r),a.catch(()=>{})):a=Promise.resolve(new ox({pdfManager:n,xref:this.xref,pageIndex:e,pageDict:r,ref:i,globalIdFactory:this._globalIdFactory,fontCache:t.fontCache,builtInCMapCache:t.builtInCMapCache,standardFontDataCache:t.standardFontDataCache,globalColorSpaceCache:this.globalColorSpaceCache,globalImageCache:t.globalImageCache,systemFontCache:t.systemFontCache,nonBlendModesSet:t.nonBlendModesSet,xfaFactory:null})),this.#e.set(e,a)}t.setActualNumPages(a.size)}}async fontFallback(e,t){let{catalog:n,pdfManager:r}=this;for(let i of await Promise.all(n.fontCache))if(i.loadedName===e){i.fallback(t,r.evaluatorOptions);return}}async cleanup(e=!1){return this.catalog?this.catalog.cleanup(e):tu()}async#o(e,t,n,r,i,a,o){let{xref:s}=this;if(!(n instanceof R)||a.has(n))return;a.put(n);let c=await s.fetchAsync(n);if(!(c instanceof L))return;let l=await c.getAsync(`Subtype`);switch(l=l instanceof I?l.name:null,l){case`Link`:return}if(c.has(`T`)){let t=qe(await c.getAsync(`T`));e=e===``?t:`${e}.${t}`}else{let n=c;for(;;){if(n=n.getRaw(`Parent`)||t,n instanceof R){if(a.has(n))break;n=await s.fetchAsync(n)}if(!(n instanceof L))break;if(n.has(`T`)){let t=qe(await n.getAsync(`T`));e=e===``?t:`${e}.${t}`;break}}}if(t&&!c.has(`Parent`)&&Le(c.get(`Subtype`),`Widget`)&&o.put(n,t),r.getOrInsertComputed(e,we).push(Ky.create(s,n,i,null,!0,o,null,null).then(e=>e?.getFieldObject()).catch(function(e){return j(`#collectFieldObjects: "${e}".`),null})),!c.has(`Kids`))return;let u=await c.getAsync(`Kids`);if(Array.isArray(u))for(let t of u)await this.#o(e,n,t,r,i,a,o)}get fieldObjects(){let e=this.pdfManager.ensureDoc(`formInfo`).then(async e=>{if(!e.hasFields)return null;let t=await this.annotationGlobals;if(!t)return null;let{acroForm:n}=t,r=new Fe,i=Object.create(null),a=new Map,o=new Ie;for(let e of n.get(`Fields`))await this.#o(``,null,e,a,t,r,o);let s=[];for(let[e,t]of a)s.push(Promise.all(t).then(t=>{t=t.filter(e=>!!e),t.length>0&&(i[e]=t)}));return await Promise.all(s),{allFields:me(i)>0?i:null,orphanFields:o}});return P(this,`fieldObjects`,e)}get hasJSActions(){let e=this.pdfManager.ensureDoc(`_parseHasJSActions`);return P(this,`hasJSActions`,e)}async _parseHasJSActions(){let[e,t]=await Promise.all([this.pdfManager.ensureCatalog(`jsActions`),this.pdfManager.ensureDoc(`fieldObjects`)]);return e?!0:t?.allFields?Object.values(t.allFields).some(e=>e.some(e=>e.actions!==null)):!1}get calculationOrderIds(){let e=this.catalog.acroForm?.get(`CO`);if(!Array.isArray(e)||e.length===0)return P(this,`calculationOrderIds`,null);let t=[];for(let n of e)n instanceof R&&t.push(n.toString());return P(this,`calculationOrderIds`,t.length?t:null)}get annotationGlobals(){return P(this,`annotationGlobals`,Ky.createGlobals(this.pdfManager))}async toJSObject(e,t=!0){throw Error(`Not implemented: toJSObject`)}};function fx(e){if(e){let t=ie(e);if(t)return t.href;j(`Invalid absolute docBaseUrl: "${e}".`)}return null}var px=class{constructor({docBaseUrl:e,docId:t,enableXfa:n,evaluatorOptions:r,handler:i,password:a}){this._docBaseUrl=fx(e),this._docId=t,this._password=a,this.enableXfa=n,r.isOffscreenCanvasSupported&&=he.isOffscreenCanvasSupported,r.isImageDecoderSupported&&=he.isImageDecoderSupported,this.evaluatorOptions=Object.freeze(r),Nn.setOptions(r),ar.setOptions(r),ur.setOptions(r);let o={...r,handler:i};xn.setOptions(o),Sn.setOptions(o),$c.setOptions(o),pr.setOptions(o),Br.setOptions(o)}get docId(){return this._docId}get password(){return this._password}get docBaseUrl(){return this._docBaseUrl}ensureDoc(e,t){return this.ensure(this.pdfDocument,e,t)}ensureXRef(e,t){return this.ensure(this.pdfDocument.xref,e,t)}ensureCatalog(e,t){return this.ensure(this.pdfDocument.catalog,e,t)}getPage(e){return this.pdfDocument.getPage(e)}fontFallback(e,t){return this.pdfDocument.fontFallback(e,t)}cleanup(e=!1){return this.pdfDocument.cleanup(e)}async ensure(e,t,n){M("Abstract method `ensure` called")}requestRange(e,t){M("Abstract method `requestRange` called")}requestLoadedStream(e=!1){M("Abstract method `requestLoadedStream` called")}sendProgressiveData(e){M("Abstract method `sendProgressiveData` called")}updatePassword(e){this._password=e}terminate(e){M("Abstract method `terminate` called")}},mx=class extends px{constructor(e){super(e);let t=new Cn(e.source);this.pdfDocument=new dx(this,t),this._loadedStreamPromise=Promise.resolve(t)}async ensure(e,t,n){let r=e[t];return typeof r==`function`?r.apply(e,n):r}requestRange(e,t){return Promise.resolve()}requestLoadedStream(e=!1){return this._loadedStreamPromise}terminate(e){}},hx=class extends px{constructor(e){super(e),this.streamManager=new Dn(e.source,{msgHandler:e.handler,length:e.length,disableAutoFetch:e.disableAutoFetch,rangeChunkSize:e.rangeChunkSize}),this.pdfDocument=new dx(this,this.streamManager.getStream())}async ensure(e,t,n){try{let r=e[t];return typeof r==`function`?await r.apply(e,n):r}catch(r){if(!(r instanceof et))throw r;return await this.requestRange(r.begin,r.end),this.ensure(e,t,n)}}requestRange(e,t){return this.streamManager.requestRange(e,t)}requestLoadedStream(e=!1){return this.streamManager.requestAllChunks(e)}sendProgressiveData(e){this.streamManager.onReceiveData({chunk:e})}terminate(e){this.streamManager.abort(e)}};n(1689);let gx={DATA:1,ERROR:2},_x={CANCEL:1,CANCEL_COMPLETE:2,CLOSE:3,ENQUEUE:4,ERROR:5,PULL:6,PULL_COMPLETE:7,START_COMPLETE:8};function vx(){}function yx(e){if(e instanceof de||e instanceof le||e instanceof se||e instanceof ue||e instanceof ce)return e;switch(e instanceof Error||typeof e==`object`&&e||M(`wrapReason: Expected "reason" to be a (possibly cloned) Error.`),e.name){case`AbortException`:return new de(e.message);case`InvalidPDFException`:return new le(e.message);case`PasswordException`:return new se(e.message,e.code);case`ResponseException`:return new ue(e.message,e.status,e.missing);case`UnknownErrorException`:return new ce(e.message,e.details)}return new ce(e.message,e.toString())}var bx=class{#e=new AbortController;constructor(e,t,n){this.sourceName=e,this.targetName=t,this.comObj=n,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),n.addEventListener(`message`,this.#t.bind(this),{signal:this.#e.signal})}#t({data:e}){if(e.targetName!==this.sourceName)return;if(e.stream){this.#r(e);return}if(e.callback){let t=e.callbackId,n=this.callbackCapabilities[t];if(!n)throw Error(`Cannot resolve callback ${t}`);if(delete this.callbackCapabilities[t],e.callback===gx.DATA)n.resolve(e.data);else if(e.callback===gx.ERROR)n.reject(yx(e.reason));else throw Error(`Unexpected callback case`);return}let t=this.actionHandler[e.action];if(!t)throw Error(`Unknown action from worker: ${e.action}`);if(e.callbackId){let n=this.sourceName,r=e.sourceName,i=this.comObj;Promise.try(t,e.data).then(function(t){i.postMessage({sourceName:n,targetName:r,callback:gx.DATA,callbackId:e.callbackId,data:t})},function(t){i.postMessage({sourceName:n,targetName:r,callback:gx.ERROR,callbackId:e.callbackId,reason:yx(t)})});return}if(e.streamId){this.#n(e);return}t(e.data)}on(e,t){let n=this.actionHandler;if(n[e])throw Error(`There is already an actionName called "${e}"`);n[e]=t}send(e,t,n){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,data:t},n)}sendWithPromise(e,t,n){let r=this.callbackId++,i=Promise.withResolvers();this.callbackCapabilities[r]=i;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,callbackId:r,data:t},n)}catch(e){i.reject(e)}return i.promise}sendWithStream(e,t,n,r){let i=this.streamId++,a=this.sourceName,o=this.targetName,s=this.comObj;return new ReadableStream({start:n=>{let c=Promise.withResolvers();return this.streamControllers[i]={controller:n,startCall:c,pullCall:null,cancelCall:null,isClosed:!1},s.postMessage({sourceName:a,targetName:o,action:e,streamId:i,data:t,desiredSize:n.desiredSize},r),c.promise},pull:e=>{let t=Promise.withResolvers();return this.streamControllers[i].pullCall=t,s.postMessage({sourceName:a,targetName:o,stream:_x.PULL,streamId:i,desiredSize:e.desiredSize}),t.promise},cancel:e=>{N(e instanceof Error,`cancel must have a valid reason`);let t=Promise.withResolvers();return this.streamControllers[i].cancelCall=t,this.streamControllers[i].isClosed=!0,s.postMessage({sourceName:a,targetName:o,stream:_x.CANCEL,streamId:i,reason:yx(e)}),t.promise}},n)}#n(e){let t=e.streamId,n=this.sourceName,r=e.sourceName,i=this.comObj,a=this,o=this.actionHandler[e.action],s={enqueue(e,a=1,o){if(this.isCancelled)return;let s=this.desiredSize;this.desiredSize-=a,s>0&&this.desiredSize<=0&&(this.sinkCapability=Promise.withResolvers(),this.ready=this.sinkCapability.promise),i.postMessage({sourceName:n,targetName:r,stream:_x.ENQUEUE,streamId:t,chunk:e},o)},close(){this.isCancelled||(this.isCancelled=!0,i.postMessage({sourceName:n,targetName:r,stream:_x.CLOSE,streamId:t}),delete a.streamSinks[t])},error(e){N(e instanceof Error,`error must have a valid reason`),!this.isCancelled&&(this.isCancelled=!0,i.postMessage({sourceName:n,targetName:r,stream:_x.ERROR,streamId:t,reason:yx(e)}))},sinkCapability:Promise.withResolvers(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:e.desiredSize,ready:null};s.sinkCapability.resolve(),s.ready=s.sinkCapability.promise,this.streamSinks[t]=s,Promise.try(o,e.data,s).then(function(){i.postMessage({sourceName:n,targetName:r,stream:_x.START_COMPLETE,streamId:t,success:!0})},function(e){i.postMessage({sourceName:n,targetName:r,stream:_x.START_COMPLETE,streamId:t,reason:yx(e)})})}#r(e){let t=e.streamId,n=this.sourceName,r=e.sourceName,i=this.comObj,a=this.streamControllers[t],o=this.streamSinks[t];switch(e.stream){case _x.START_COMPLETE:e.success?a.startCall.resolve():a.startCall.reject(yx(e.reason));break;case _x.PULL_COMPLETE:e.success?a.pullCall.resolve():a.pullCall.reject(yx(e.reason));break;case _x.PULL:if(!o){i.postMessage({sourceName:n,targetName:r,stream:_x.PULL_COMPLETE,streamId:t,success:!0});break}o.desiredSize<=0&&e.desiredSize>0&&o.sinkCapability.resolve(),o.desiredSize=e.desiredSize,Promise.try(o.onPull||vx).then(function(){i.postMessage({sourceName:n,targetName:r,stream:_x.PULL_COMPLETE,streamId:t,success:!0})},function(e){i.postMessage({sourceName:n,targetName:r,stream:_x.PULL_COMPLETE,streamId:t,reason:yx(e)})});break;case _x.ENQUEUE:if(N(a,`enqueue should have stream controller`),a.isClosed)break;a.controller.enqueue(e.chunk);break;case _x.CLOSE:if(N(a,`close should have stream controller`),a.isClosed)break;a.isClosed=!0,a.controller.close(),this.#i(a,t);break;case _x.ERROR:N(a,`error should have stream controller`),a.controller.error(yx(e.reason)),this.#i(a,t);break;case _x.CANCEL_COMPLETE:e.success?a.cancelCall.resolve():a.cancelCall.reject(yx(e.reason)),this.#i(a,t);break;case _x.CANCEL:if(!o)break;let s=yx(e.reason);Promise.try(o.onCancel||vx,s).then(function(){i.postMessage({sourceName:n,targetName:r,stream:_x.CANCEL_COMPLETE,streamId:t,success:!0})},function(e){i.postMessage({sourceName:n,targetName:r,stream:_x.CANCEL_COMPLETE,streamId:t,reason:yx(e)})}),o.sinkCapability.reject(s),o.isCancelled=!0,delete this.streamSinks[t];break;default:throw Error(`Unexpected stream case`)}}async#i(e,t){await Promise.allSettled([e.startCall?.promise,e.pullCall?.promise,e.cancelCall?.promise]),delete this.streamControllers[t]}destroy(){this.#e?.abort(),this.#e=null}};async function xx(e,t,n,{encrypt:r=null,encryptRef:i=null}){let a=r&&i!==e?r.createCipherTransform(e.num,e.gen):null;n.push(`${e.num} ${e.gen} obj\\n`),await Tx(t,n,a),n.push(`\nendobj\n`)}async function Sx(e,t,n){t.push(`<<`);for(let[r,i]of e.getRawEntries())t.push(` /${vt(r)} `),await Tx(i,t,n);t.push(`>>`)}async function Cx(e,t,n){e=e.getOriginalStream(),e.reset();let r=e.getBytes(),{dict:i}=e,[a,o]=await Promise.all([i.getAsync(`Filter`),i.getAsync(`DecodeParms`)]),s=Array.isArray(a)?await i.xref.fetchIfRefAsync(a[0]):a,c=Le(s,`FlateDecode`),l=Le(s,`DCTDecode`)||Le(s,`JPXDecode`)||Le(s,`JBIG2Decode`)||Le(s,`CCITTFaxDecode`)||Le(s,`LZWDecode`);if(!c&&!l&&r.length>=256)try{let e=new CompressionStream(`deflate`),t=e.writable.getWriter();await t.ready,t.write(r).then(async()=>{await t.ready,await t.close()}).catch(()=>{}),r=await new Response(e.readable).bytes();let n,s;a?c||(n=Array.isArray(a)?[I.get(`FlateDecode`),...a]:[I.get(`FlateDecode`),a],o&&(s=Array.isArray(o)?[null,...o]:[null,o])):n=I.get(`FlateDecode`),n&&i.set(`Filter`,n),s&&i.set(`DecodeParms`,s)}catch(e){A(`writeStream - cannot compress data: "${e}".`)}let u=fe(r);n&&(u=n.encryptString(u)),i.set(`Length`,u.length),await Sx(i,t,n),t.push(` stream\n`,u,`\nendstream`)}async function wx(e,t,n){t.push(`[`);for(let r=0,i=e.length;r<i;r++)await Tx(e[r],t,n),r<i-1&&t.push(` `);t.push(`]`)}async function Tx(e,t,n){e instanceof I?t.push(`/${vt(e.name)}`):e instanceof R?t.push(`${e.num} ${e.gen} R`):Array.isArray(e)||ArrayBuffer.isView(e)?await wx(e,t,n):typeof e==`string`?(n&&(e=n.encryptString(e)),t.push(`(${yt(e)})`)):typeof e==`number`?t.push(e.toFixed(10).replace(/\\.?0+$/,``)):typeof e==`boolean`?t.push(e.toString()):e instanceof L?await Sx(e,t,n):e instanceof Ve?await Cx(e,t,n):e===null?t.push(`null`):j(`Unhandled value in writer: ${typeof e}, please file a bug.`)}function Ex(e,t,n,r){for(let i=t+n-1;i>n-1;i--)r[i]=e&255,e>>=8;return n+t}function Dx(e,t,n){let r=e.length;for(let i=0;i<r;i++)n[t+i]=e.charCodeAt(i)&255;return t+r}function Ox(e,t){let n=Math.floor(Date.now()/1e3),r=t.filename||``,i=[n.toString(),r,e.toString(),...t.infoMap.values()],a=Math.sumPrecise(i.map(e=>e.length)),o=new Uint8Array(a),s=0;for(let e of i)s=Dx(e,s,o);return fe(Cb(o,0,o.length))}function kx(e,t){let n=new lu({hasAttributes:!0}).parseFromString(e);for(let{xfa:e}of t){if(!e)continue;let{path:t,value:r}=e;if(!t)continue;let i=_t(t),a=n.documentElement.searchNode(i,0);!a&&i.length>1&&(a=n.documentElement.searchNode([i.at(-1)],0)),a?a.childNodes=Array.isArray(r)?r.map(e=>new cu(`value`,e)):[new cu(`#text`,r)]:j(`Node not found for path: ${t}`)}let r=[];return n.documentElement.dump(r),r.join(``)}async function Ax({xref:e,acroForm:t,acroFormRef:n,hasXfa:r,hasXfaDatasetsEntry:i,xfaDatasetsRef:a,needAppearances:o,changes:s}){if(r&&!i&&!a&&j(`XFA - Cannot save it`),!o&&(!r||!a||i))return;let c=t.clone();if(r&&!i){let e=t.get(`XFA`).slice();e.splice(2,0,`datasets`),e.splice(3,0,a),c.set(`XFA`,e)}o&&c.set(`NeedAppearances`,!0),s.put(n,{data:c})}function jx({xfaData:e,xfaDatasetsRef:t,changes:n,xref:r}){e===null&&(e=kx(r.fetchIfRef(t).getString(),n));let i=new wn(e);i.dict=new L(r),i.dict.setIfName(`Type`,`EmbeddedFile`),n.put(t,{data:i})}async function Mx(e,t,n,r,i){i.push(`xref\n`);let a=Nx(n),o=0;for(let{ref:e,data:r}of n)e.num===a[o]&&(i.push(`${a[o]} ${a[o+1]}\\n`),o+=2),r===null?i.push(`0000000000 ${Math.min(e.gen+1,65535).toString().padStart(5,`0`)} f\\r\\n`):(i.push(`${t.toString().padStart(10,`0`)} ${Math.min(e.gen,65535).toString().padStart(5,`0`)} n\\r\\n`),t+=r.length);Fx(t,e,r),i.push(`trailer\n`),await Sx(r,i,null),i.push(`\nstartxref\n`,t.toString(),`\n%%EOF\n`)}function Nx(e){let t=[];for(let{ref:n}of e)n.num===t.at(-2)+t.at(-1)?t[t.length-1]+=1:t.push(n.num,1);return t}async function Px(e,t,n,r,i){let a=[],o=0,s=0;for(let{ref:e,data:r,objStreamRef:i,index:c}of n){let n;o=Math.max(o,t),i?(n=c,a.push([2,i.num,n])):r===null?(n=Math.min(e.gen+1,65535),a.push([0,0,n])):(n=Math.min(e.gen,65535),a.push([1,t,n]),t+=r.length),s=Math.max(s,n)}r.set(`Index`,Nx(n));let c=[1,Mt(o),Mt(s)];r.set(`W`,c),Fx(t,e,r);let l=Math.sumPrecise(c),u=new Uint8Array(l*a.length),d=new Cn(u);d.dict=r;let f=0;for(let[e,t,n]of a)f=Ex(e,c[0],f,u),f=Ex(t,c[1],f,u),f=Ex(n,c[2],f,u);await xx(e.newRef,d,i,{}),i.push(`startxref\n`,t.toString(),`\n%%EOF\n`)}function Fx(e,t,n){if(Array.isArray(t.fileIds)&&t.fileIds.length>0){let r=Ox(e,t);n.set(`ID`,[t.fileIds[0]||r,r])}}function Ix(e,t,n){let r=new L(null);r.setIfDefined(`Prev`,e?.startXRef);let i=e.newRef;return n?(t.put(i,{data:``}),r.set(`Size`,i.num+1),r.setIfName(`Type`,`XRef`)):r.set(`Size`,i.num),r.setIfDefined(`Root`,e?.rootRef),r.setIfDefined(`Info`,e?.infoRef),r.setIfDefined(`Encrypt`,e?.encryptRef),r}async function Lx(e,t,n=[]){let r=[];for(let[i,{data:a,objStreamRef:o,index:s}]of e.items()){if(o){r.push({ref:i,data:a,objStreamRef:o,index:s});continue}if(a===null||typeof a==`string`){r.push({ref:i,data:a});continue}await xx(i,a,n,t),r.push({ref:i,data:n.join(``)}),n.length=0}return r.sort((e,t)=>e.ref.num-t.ref.num)}async function Rx({originalData:e,xrefInfo:t,changes:n,xref:r=null,hasXfa:i=!1,xfaDatasetsRef:a=null,hasXfaDatasetsEntry:o=!1,needAppearances:s,acroFormRef:c=null,acroForm:l=null,xfaData:u=null,useXrefStream:d=!1}){await Ax({xref:r,acroForm:l,acroFormRef:c,hasXfa:i,hasXfaDatasetsEntry:o,xfaDatasetsRef:a,needAppearances:s,changes:n}),i&&jx({xfaData:u,xfaDatasetsRef:a,changes:n,xref:r});let f=Ix(t,n,d),p=[],m=await Lx(n,r,p),h=e.length,g=e.at(-1);g!==10&&g!==13&&(p.push(`\n`),h+=1);for(let{data:e}of m)e!==null&&p.push(e);await(d?Px(t,h,m,f,p):Mx(t,h,m,f,p));let _=e.length+Math.sumPrecise(p.map(e=>e.length)),v=new Uint8Array(_);v.set(e);let y=e.length;for(let e of p)y=Dx(e,y,v);return v}var zx=class{constructor(e,t){this.page=e,this.documentData=t,this.annotations=null,this.pointingNamedDestinations=null,t.pagesMap.put(e.ref,this)}},Bx=class{constructor(e){this.document=e,this.destinations=null,this.pageLabels=null,this.pagesMap=new Ie,this.oldRefMapping=new Ie,this.dedupNamedDestinations=new Map,this.usedNamedDestinations=new Set,this.postponedRefCopies=new Ie,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=[],this.acroForm=null,this.acroFormDefaultAppearance=``,this.acroFormDefaultResources=null,this.acroFormQ=0,this.hasSignatureAnnotations=!1,this.fieldToParent=new Ie,this.outline=null,this.embeddedFiles=null}},Vx=class{constructor(e,t){this.entries=e,this._getNewRef=t}getNewTemporaryRef(){return this._getNewRef()}fetchIfRef(e){return e instanceof R?this.fetch(e):e}fetch(e){if(!(e instanceof R))throw Error(`ref object is not a reference`);return this.entries[e.num]}async fetchIfRefAsync(e){return e instanceof R?this.fetchAsync(e):e}async fetchAsync(e){return this.fetch(e)}},Hx=class{isSingleFile=!1;#e=null;#t=null;currentDocument=null;oldPages=[];newPages=[];xref=[null];xrefWrapper=new Vx(this.xref,()=>this.newRef);newRefCount=1;namesDict=null;version=`1.7`;pageLabels=null;namedDestinations=new Map;parentTree=new Map;structTreeKids=[];idTree=new Map;classMap=new L;roleMap=new L;namespaces=new Map;structTreeAF=[];structTreePronunciationLexicon=[];fields=[];acroFormDefaultAppearance=``;acroFormDefaultResources=null;acroFormNeedAppearances=!1;acroFormSigFlags=0;acroFormCalculationOrder=null;acroFormQ=0;outlineItems=null;embeddedFiles=new Map;constructor({useObjectStreams:e=!0,title:t=``,author:n=``}={}){[this.rootRef,this.rootDict]=this.newDict,[this.infoRef,this.infoDict]=this.newDict,[this.pagesRef,this.pagesDict]=this.newDict,this.useObjectStreams=e,this.objStreamRefs=e?new Set:null,this.title=t,this.author=n}get newRef(){return R.get(this.newRefCount++,0)}get newDict(){let e=this.newRef;return[e,this.xref[e.num]=new L]}async#n(e,t){let n=this.newRef;return this.xref[n.num]=await this.#r(e,!0,t),n}cloneDict(e){let t=e.clone();return t.xref=this.xrefWrapper,t}async#r(e,t,n){if(e instanceof R){let{currentDocument:{oldRefMapping:t}}=this,r=t.get(e);if(r)return r;let i=e;return e=await n.fetchAsync(i),typeof e==`number`?e:(r=this.newRef,t.put(i,r),this.xref[r.num]=await this.#r(e,!0,n),r)}let r=[],{currentDocument:{postponedRefCopies:i}}=this;if(Array.isArray(e)){t&&(e=e.slice());for(let t=0,a=e.length;t<a;t++){let a=e[t]instanceof R&&i.get(e[t]);if(a){a.push(n=>e[t]=n);continue}r.push(this.#r(e[t],!0,n).then(n=>e[t]=n))}return await Promise.all(r),e}let a;if(e instanceof Ve?({dict:a}=e=e.getOriginalStream().clone(),a.xref=this.xrefWrapper):e instanceof L&&(t&&(e=e.clone(),e.xref=this.xrefWrapper),a=e),a){for(let[e,t]of a.getRawEntries()){let o=t instanceof R&&i.get(t);if(o){o.push(t=>a.set(e,t));continue}r.push(this.#r(t,!0,n).then(t=>a.set(e,t)))}await Promise.all(r)}return e}async#i(e,t,n,r,i,a,o,s=new Fe){let{currentDocument:{pagesMap:c,oldRefMapping:l}}=this,u=t.getRaw(`Pg`);if(u instanceof R&&!c.has(u))return null;let d,f=d=t.getRaw(`K`);if(f instanceof R){if(s.has(f))return null;d=await n.fetchAsync(f),Array.isArray(d)||(d=[f])}d=Array.isArray(d)?d:[d];let p=[],m=[];for(let t of d){let u=t instanceof R?t:null;if(u){if(s.has(u))continue;s.put(u),t=await n.fetchAsync(u)}if(typeof t==`number`){p.push(t);continue}if(!(t instanceof L))continue;let d=t.getRaw(`Pg`);if(d instanceof R&&!c.has(d))continue;let f=t.get(`Type`);if(!f||Le(f,`StructElem`)){let e=!1;if(u&&r.has(u)){if(!Le(t.get(`S`),`Link`))continue;e=!0}let c=await this.#i(u,t,n,r,i,a,o,s);c&&(m.push(p.length),p.push(c),u&&l.put(u,c),e&&this.xref[c.num].setIfName(`S`,`Span`));continue}if(Le(f,`OBJR`)){if(!u)continue;let t=l.get(u);if(!t)continue;let n=this.xref[t.num].getRaw(`Obj`);if(n instanceof R){let t=this.xref[n.num];if(t instanceof L&&!t.has(`StructParent`)&&e){let n=this.parentTree.size;this.parentTree.set(n,[l,e]),t.set(`StructParent`,n)}}p.push(t);continue}if(Le(f,`MCR`)){let e=await this.#r(u||t,!0,n);p.push(e);continue}if(u){let e=await this.#r(u,!0,n);p.push(e)}}if(d.length!==0&&p.length===0)return null;let h=this.newRef,g=this.xref[h.num]=this.cloneDict(t);g.delete(`ID`),g.delete(`C`),g.delete(`K`),g.delete(`P`),g.delete(`S`),await this.#r(g,!1,n);let _=t.get(`C`);if(_ instanceof I){let e=a.get(_.name);e?g.set(`C`,I.get(e)):g.set(`C`,_)}else if(Array.isArray(_)){let e=[];for(let t of _)if(t instanceof I){let n=a.get(t.name);n?e.push(I.get(n)):e.push(t)}g.set(`C`,e)}let v=t.get(`S`);if(v instanceof I){let e=o.get(v.name);e?g.set(`S`,I.get(e)):g.set(`S`,v)}let y=t.get(`ID`);if(typeof y==`string`){let e=qe(y,!1),t=i.get(e);t?g.set(`ID`,Ue(t)):g.set(`ID`,y)}let b=g.get(`A`);if(b){Array.isArray(b)||(b=[b]);for(let e of b)if(e=this.xrefWrapper.fetchIfRef(e),Le(e.get(`O`),`Table`)&&e.has(`Headers`)){let t=this.xrefWrapper.fetchIfRef(e.getRaw(`Headers`));if(Array.isArray(t))for(let e=0,n=t.length;e<n;e++){let n=i.get(qe(t[e],!1));n&&(t[e]=n)}}}for(let e of m){let t=p[e];this.xref[t.num].set(`P`,h)}return p.length===1?g.set(`K`,p[0]):p.length>1&&g.set(`K`,p),h}#a({document:e,includePages:t,excludePages:n}){if(!e)return[];let r=e=>{if(!e?.length)return null;let t=new Set,n=[];for(let r of e)Array.isArray(r)?n.push(r):t.add(r);return{indices:t,ranges:n}},i=(e,{indices:t,ranges:n})=>t.has(e)||n.some(([t,n])=>e>=t&&e<=n),a=r(t),o=r(n),s=[];for(let t=0,n=e.numPages;t<n;t++)o&&i(t,o)||(!a||i(t,a))&&s.push(t);return s}#o(e){let t=Array(e.length),n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o;if(a.image)o=t[i]=1;else if(a.document)o=t[i]=this.#a(a).length;else{t[i]=0;continue}if(!a.pageIndices)if(a.insertAfter===void 0)for(let e=0;e<o;e++)n.push(i);else r.push({i,insertAfter:a.insertAfter,count:o})}if(r.length===0)return e;let i=e=>!!(e.document||e.image);for(let n=0;n<e.length;n++){let r=e[n];if(i(r)&&r.pageIndices&&r.pageIndices.length<t[n])throw Error(`extractPages: partial pageIndices cannot be combined with insertAfter entries.`)}if(r.sort((e,t)=>e.insertAfter-t.insertAfter||e.i-t.i),n.length===0&&e.some(e=>i(e)&&e.pageIndices)){let t=e.slice(),n=-1;for(let t of e)if(!(!i(t)||!t.pageIndices))for(let e of t.pageIndices)e>n&&(n=e);let a=0;for(let{i:e,insertAfter:o,count:s}of r){let r=Math.min(Math.max(o,-1)+a,n);for(let e=0;e<t.length;e++){let n=t[e];!i(n)||!n.pageIndices||n.pageIndices.every(e=>e<=r)||(t[e]={...n,pageIndices:n.pageIndices.map(e=>e>r?e+s:e)})}let c=[];for(let e=0;e<s;e++)c.push(r+1+e);let l={...t[e],pageIndices:c};delete l.insertAfter,t[e]=l,a+=s,n+=s}return t}let a=0;for(let{i:e,insertAfter:t,count:i}of r){let r=Math.max(t,-1)+1+a;n.splice(r,0,...Array(i).fill(e)),a+=i}let o=Array(e.length);for(let e=0;e<n.length;e++){let t=n[e];(o[t]||=[]).push(e)}return e.map((e,t)=>{if(!i(e)||e.pageIndices)return e;let n={...e,pageIndices:o[t]||[]};return delete n.insertAfter,n})}async extractPages(e,t,n,r,i){this.#t=n,e=this.#o(e);let a=[],o=0,s=e=>{if(!Number.isInteger(e)||e<0)throw Error(`extractPages: invalid page index.`);if(this.oldPages[e]!==void 0)throw Error(`extractPages: overlapping pageIndices.`);this.oldPages[e]=null},c=e.filter(e=>!!e.document);this.isSingleFile=c.length===1||c.length>0&&c.every(e=>e.document===c[0].document);let l=[];t&&(this.#e={handler:r,task:i,newAnnotationsByPage:kt(t),imagesPromises:Ky.generateImages(t.values(),this.xrefWrapper,!0)});let u=[];for(let t of e){let{document:e,image:n,includePages:r,excludePages:i,pageIndices:c}=t;if(n){if(c&&(o=-1,c.length>1))throw Error(`extractPages: too many pageIndices.`);let e;if(c?.length)e=c[0];else if(o!==-1)e=o++;else for(e=0;this.oldPages[e]!==void 0;e++);s(e),u.push({image:n,slot:e});continue}if(!e)continue;c&&(o=-1);let d=this.#a({document:e,includePages:r,excludePages:i});if(c&&c.length>d.length)throw Error(`extractPages: too many pageIndices.`);let f=new Bx(e);l.push(f),a.push(this.#s(f));let p=0;for(let t of d){let n;if(c&&(n=c[p++]),n===void 0)if(o!==-1)n=o++;else for(n=0;this.oldPages[n]!==void 0;n++);s(n),a.push(e.getPage(t).then(e=>{this.oldPages[n]=new zx(e,f)}))}}await Promise.all(a);for(let e=0,t=this.oldPages.length;e<t;e++)if(this.oldPages[e]===void 0)throw Error(`extractPages: sparse pageIndices.`);a.length=0,this.#p(l),this.#g(l),this.#A();for(let e of this.oldPages)e&&a.push(this.#c(e));await Promise.all(a),this.#m(),this.#l(l);let d=new Map;for(let e of u)d.set(e.slot,e);let f=d.size>0?this.#M():null;for(let e=0,t=this.oldPages.length;e<t;e++){let t=d.get(e);t?this.newPages[e]=await this.#N(t.image,f):this.newPages[e]=await this.#j(e,null)}return this.#u(l),await this.#f(l),await this.#S(l),this.#y(l),await this.#L(l),this.writePDF()}async#s(e){let{document:{pdfManager:t,xref:n}}=e;await Promise.all([t.ensureCatalog(`destinations`).then(t=>e.destinations=t),t.ensureCatalog(`rawPageLabels`).then(t=>e.pageLabels=t),t.ensureCatalog(`structTreeRoot`).then(t=>e.structTreeRoot=t),t.ensureCatalog(`acroForm`).then(t=>e.acroForm=t),t.ensureCatalog(`documentOutlineForEditor`).then(t=>e.outline=t),t.ensureCatalog(`rawEmbeddedFiles`).then(t=>e.embeddedFiles=t)]);let r=e.structTreeRoot;if(r){let t=r.dict,i=t.get(`ParentTree`);i&&(e.parentTree=new eu(i,n).getAll(!0));let a=t.get(`IDTree`);a&&(e.idTree=new $l(a,n).getAll(!0)),e.roleMap=t.get(`RoleMap`)||null,e.classMap=t.get(`ClassMap`)||null;let o=t.get(`Namespaces`)||null;o&&!Array.isArray(o)&&(o=[o]),e.namespaces=o,e.structTreeAF=t.get(`AF`)||null,e.structTreePronunciationLexicon=t.get(`PronunciationLexicon`)||null}}async#c(e){let{page:{xref:t,annotations:n},documentData:{pagesMap:r,destinations:i,usedNamedDestinations:a,fieldToParent:o}}=e;if(!n)return;let s=[],c=[],l=0,{hasSignatureAnnotations:u}=e.documentData;for(let e of n){let n=l++;s.push(t.fetchIfRefAsync(e).then(async t=>{if(!Le(t.get(`Subtype`),`Link`)){if(Le(t.get(`Subtype`),`Widget`)){u||=Le(t.get(`FT`),`Sig`);let n=t.get(`Parent`)||null;t.delete(`Parent`),o.put(e,n)}c[n]=e;return}let s=t.get(`A`),l=s instanceof L?s.get(`D`):t.get(`Dest`);if(!l||Array.isArray(l)&&(!(l[0]instanceof R)||r.has(l[0])))c[n]=e;else if(typeof l==`string`){let t=qe(l,!0);i.has(t)&&(c[n]=e,a.add(t))}}))}await Promise.all(s),c=c.filter(e=>!!e),e.annotations=c.length>0?c:null,e.documentData.hasSignatureAnnotations||=u}#l(e){for(let{postponedRefCopies:t,pagesMap:n}of e)for(let e of n.keys())t.put(e,[])}#u(e){for(let{postponedRefCopies:t,oldRefMapping:n}of e){for(let[e,r]of t.items()){let t=n.get(e);for(let e of r)e(t)}t.clear()}}#d(e,t,n=new Fe){if(e instanceof R){n.has(e)||(n.put(e),this.#d(this.xref[e.num],t,n));return}if(Array.isArray(e)){for(let r of e)this.#d(r,t,n);return}let r;if(e instanceof Ve?{dict:r}=e:e instanceof L&&(r=e),r){t(r);for(let e of r.getRawValues())this.#d(e,t,n)}}async#f(e){let t=0,{parentTree:n}=this;for(let e=0,r=this.newPages.length;e<r;e++){if(!this.oldPages[e])continue;let{documentData:{parentTree:r,oldRefMapping:i,oldStructParentMapping:a,usedStructParents:o,document:{xref:s}}}=this.oldPages[e];if(!r)continue;let c=this.newPages[e],l=this.xref[c.num],u=new Fe;u.put(c),this.#d(l,e=>{let c=e.get(`StructParent`)??e.get(`StructParents`);if(typeof c!=`number`)return;o.add(c);let l=r.get(c),u=l instanceof R?l:null;if(u){let e=s.fetch(u);Array.isArray(e)&&(l=e)}if(Array.isArray(l)&&l.every(e=>e===null)&&(l=null),!l){e.has(`StructParent`)?e.delete(`StructParent`):e.delete(`StructParents`);return}let d=a.get(c);d===void 0&&(d=t++,a.set(c,d),n.set(d,[i,l])),e.has(`StructParent`)?e.set(`StructParent`,d):e.set(`StructParents`,d)},u)}let{structTreeKids:r,idTree:i,classMap:a,roleMap:o,namespaces:s,structTreeAF:c,structTreePronunciationLexicon:l}=this;for(let t of e){let{document:{xref:e},oldRefMapping:n,parentTree:u,usedStructParents:d,structTreeRoot:f,idTree:p,classMap:m,roleMap:h,namespaces:g,structTreeAF:_,structTreePronunciationLexicon:v}=t;if(!f)continue;this.currentDocument=t;let y=new Fe;for(let[e,t]of u||[])!d.has(e)&&t instanceof R&&y.put(t);let b=new Map;for(let[e,t]of p||[]){let n=e;if(i.has(e))for(let t=1;;t++){let r=`${e}_${t}`;if(!i.has(r)){b.set(e,r),n=r;break}}i.set(n,t)}let x=new Map;if(m?.size>0)for(let[t,n]of m){if(n=await this.#r(n,!0,e),a.has(t))for(let e=1;;e++){let n=`${t}_${e}`;if(!a.has(n)){x.set(t,n),t=n;break}}a.set(t,n)}let S=new Map;if(h?.size>0)for(let[e,t]of h){let n=o.get(e);if(!n){o.set(e,t);continue}if(n!==t)for(let n=1;;n++){let r=`${e}_${n}`;if(!o.has(r)){S.set(e,r),o.set(r,t);break}}}if(g?.length>0)for(let t of g){let n=await e.fetchIfRefAsync(t),r=n.get(`NS`);if(!r||s.has(r))continue;r=qe(r,!1);let i=await this.#r(n,!0,e);s.set(r,i)}if(_)for(let t of _)c.push(await this.#r(t,!0,e));if(v)for(let t of v)l.push(await this.#r(t,!0,e));let C=f.dict.get(`K`);if(C){C=Array.isArray(C)?C:[C];for(let t of C){let n=t instanceof R?t:null;if(n&&y.has(n))continue;t=await e.fetchIfRefAsync(t);let i=await this.#i(n,t,e,y,b,x,S);i&&r.push(i)}for(let[e,t]of p||[]){let r=t instanceof R&&n.get(t),a=b.get(e)||e;r?i.set(a,r):i.delete(a)}}}for(let[e,[t,r]]of n){if(!r){n.delete(e);continue}if(!Array.isArray(r)){let i=t.get(r);i===void 0?n.delete(e):n.set(e,i);continue}let i=r.map(e=>e instanceof R&&t.get(e)||null);if(i.length===0||i.every(e=>e===null)){n.delete(e);continue}n.set(e,i)}this.currentDocument=null}#p(e){for(let t of e){if(!t.destinations)continue;let{destinations:e,pagesMap:n}=t,r=t.destinations=new Map;for(let[t,i]of Object.entries(e)){let e=i[0],a=e instanceof R&&n.get(e);a&&((a.pointingNamedDestinations||=new Set).add(t),r.set(t,i))}}}#m(){let{namedDestinations:e}=this,t=t=>{if(!e.has(t))return t;for(let n=1;;n++){let r=`${t}_${n}`;if(!e.has(r))return r}};for(let n=0,r=this.oldPages.length;n<r;n++){let r=this.oldPages[n];if(!r)continue;let{documentData:{destinations:i,dedupNamedDestinations:a,usedNamedDestinations:o}}=r,{pointingNamedDestinations:s}=r;if(s){r.pointingNamedDestinations=s=s.intersection(o);for(let r of s){if(!o.has(r))continue;let s=i.get(r).slice();if(!e.has(r)){e.set(r,s);continue}let c=t(`${r}_p${n+1}`);a.set(r,c),e.set(c,s)}}}}#h(e,t){if(t.size===0)return;let n=(e,n,r)=>{typeof r==`string`&&e.set(n,t.get(qe(r,!0))||r)};for(let t of e){let e=this.xref[t.num];if(!Le(e.get(`Subtype`),`Link`))continue;let r=e.get(`A`);if(r instanceof L&&r.has(`D`)){n(r,`D`,r.get(`D`));continue}n(e,`Dest`,e.get(`Dest`))}}#g(e){let t=(e,n,r)=>{for(let i of e)typeof i.dest==`string`&&n?.has(i.dest)&&r.add(i.dest),i.items.length>0&&t(i.items,n,r)};for(let n of e){let{outline:e,destinations:r,usedNamedDestinations:i}=n;e?.length&&t(e,r,i)}}#_(e,t){let{dest:n,action:r,url:i,unsafeUrl:a,attachment:o,setOCGState:s}=e;if(r||i||a||o||s)return!0;if(!n)return!1;if(typeof n==`string`){let e=t.dedupNamedDestinations.get(n)||n;return this.namedDestinations.has(e)}return Array.isArray(n)&&n[0]instanceof R?!!t.oldRefMapping.get(n[0]):!1}#v(e,t){let n=[];for(let r of e){let e=this.#v(r.items,t),i=this.#_(r,t);(i||e.length>0)&&n.push({...r,dest:i?r.dest:null,rawDict:i?r.rawDict:null,items:e,_documentData:t})}return n}#y(e){let t=[];for(let n of e){let{outline:e}=n;e?.length&&t.push(...this.#v(e,n))}this.outlineItems=t.length>0?t:null}async#b(e,t){let{dest:n,rawDict:r}=t,i=t._documentData;if(n){if(typeof n==`string`){let t=i.dedupNamedDestinations.get(n)||n;e.set(`Dest`,Ue(t))}else if(Array.isArray(n)){let t=n.slice();t[0]instanceof R&&(t[0]=i.oldRefMapping.get(t[0])||t[0]),e.set(`Dest`,t)}return}let a=r?.get(`A`);if(a instanceof L){this.currentDocument=i;let t=await this.#n(a,i.document.xref);this.currentDocument=null,e.set(`A`,t)}}async#x(){let{outlineItems:e}=this;if(!e?.length)return;let[t,n]=this.newDict;n.setIfName(`Type`,`Outlines`);let r=e=>{for(let t of e)[t._ref]=this.newDict,t.items.length>0&&r(t.items)};r(e);let i=async(e,t)=>{let n=0;for(let r=0;r<e.length;r++){let a=e[r],o=this.xref[a._ref.num];if(o.set(`Title`,Ue(a.title)),o.set(`Parent`,t),r>0&&o.set(`Prev`,e[r-1]._ref),r<e.length-1&&o.set(`Next`,e[r+1]._ref),a.items.length>0){o.set(`First`,a.items[0]._ref),o.set(`Last`,a.items.at(-1)._ref);let e=await i(a.items,a._ref);a.count!==void 0&&o.set(`Count`,a.count<0?-e:e),n+=a.count!==void 0&&a.count<0?1:e+1}else n+=1;await this.#b(o,a);let s=(a.bold?2:0)|!!a.italic;s!==0&&o.set(`F`,s),a.color&&(a.color[0]!==0||a.color[1]!==0||a.color[2]!==0)&&o.set(`C`,[a.color[0]/255,a.color[1]/255,a.color[2]/255])}return n},a=await i(e,t);n.set(`First`,e[0]._ref),n.set(`Last`,e.at(-1)._ref),n.set(`Count`,a),this.rootDict.set(`Outlines`,t)}async#S(e){this.#w(e),this.#E(e),this.#C(e),await this.#D(e);let t=this.fields;for(let n of e){let e=n.acroForm?.get(`Fields`)||null;!e&&n.fieldToParent.size>0&&(e=this.#O(n.fieldToParent,n.document.xref)),Array.isArray(e)&&e.length>0&&(this.currentDocument=n,await this.#k(t,e),this.currentDocument=null)}this.#T(e)}#C(e){let t=0,n=null;for(let r of e){let e=r.acroForm?.get(`Q`);if(!(typeof e!=`number`||e===0)){if(n?.acroFormQ>0){r.acroFormQ=e;continue}if(t===0){t=e,n=r;continue}e!==t&&(n.acroFormQ||=t,r.acroFormQ=e,t=0)}}t>0&&(this.acroFormQ=t)}#w(e){let t=0,n=!1;for(let r of e){if(!r.acroForm)continue;let e=r.acroForm.get(`SigFlags`);typeof e==`number`&&r.hasSignatureAnnotations&&(t|=e),r.acroForm.get(`NeedAppearances`)===!0&&(n=!0)}this.acroFormSigFlags=t,this.acroFormNeedAppearances=n}#T(e){let t=[];for(let n of e){let e=n.acroForm?.get(`CO`)||null;if(!Array.isArray(e))continue;let{oldRefMapping:r}=n;for(let n of e){let e=n instanceof R&&r.get(n);e&&t.push(e)}}this.acroFormCalculationOrder=t.length>0?t:null}#E(e){let t=null,n=null;for(let r of e){let e=r.acroForm?.get(`DA`)||null;if(!(!e||typeof e!=`string`)){if(n?.acroFormDefaultAppearance){r.acroFormDefaultAppearance=e;continue}if(!t){t=e,n=r;continue}e!==t&&(n.acroFormDefaultAppearance||=t,r.acroFormDefaultAppearance=e,t=null)}}t&&(this.acroFormDefaultAppearance=t)}async#D(e){let t=null,n=null,r=null;for(let i of e){let e=i.acroForm?.get(`DR`)||null;if(!(!e||!(e instanceof L))){if(r?.acroFormDefaultResources){i.acroFormDefaultResources=e;continue}if(!t){t=e,n=i.acroForm.getRaw(`DR`),r=i;continue}ct(t,e)||(r.acroFormDefaultResources||=t,i.acroFormDefaultResources=e,t=null,n=null)}}t&&(this.currentDocument=r,this.acroFormDefaultResources=await this.#r(n,!0,r.document.xref),this.currentDocument=null)}#O(e,t){let n=[],r=new Fe;for(let[i,a]of e){if(!a){n.push(i);continue}let e=a,o=a;for(;e=t.fetchIfRef(e)?.getRaw(`Parent`)||null,e;)o=e;o instanceof R&&!r.has(o)&&(n.push(o),r.put(o))}return n}async#k(e,t){let n=new Fe,r=[{kids:t,newKids:e,pos:0,oldParentRef:null,parentRef:null,parent:null}],{document:{xref:i},oldRefMapping:a,fieldToParent:o,acroFormDefaultAppearance:s,acroFormDefaultResources:c,acroFormQ:l}=this.currentDocument,u=[],d=[];for(;r.length>0;){let e=r.at(-1),{kids:t,newKids:f,parent:p,pos:m}=e;if(m===t.length){if(r.pop(),f.length===0||!p)continue;let t=this.xref[e.parentRef.num]=this.cloneDict(p);if(t.delete(`Parent`),t.delete(`Kids`),await this.#r(t,!1,i),t.set(`Kids`,f),r.length>0){let n=r.at(-1);if(!n.parentRef&&n.oldParentRef){let e=n.parentRef=this.newRef;t.set(`Parent`,e),a.put(n.oldParentRef,e)}n.newKids.push(e.parentRef)}continue}let h=t[e.pos++];if(!(h instanceof R)||n.has(h))continue;n.put(h);let g=i.fetchIfRef(h);if(g.has(`Kids`)){let e=g.get(`Kids`);if(!Array.isArray(e))continue;r.push({kids:e,newKids:[],pos:0,oldParentRef:h,parentRef:null,parent:g});continue}if(!o.has(h))continue;let _=a.get(h);if(!_)continue;f.push(_),!e.parentRef&&e.oldParentRef&&(e.parentRef=this.newRef,a.put(e.oldParentRef,e.parentRef));let v=this.xref[_.num];e.parentRef&&v.set(`Parent`,e.parentRef),s&&Le(v.get(`FT`),`Tx`)&&!v.has(`DA`)&&u.push(v),c&&!v.has(`Kids`)&&v.get(`AP`)instanceof L&&d.push(v),l&&!v.has(`Q`)&&v.set(`Q`,l)}for(let e of u)ot({dict:e,key:`DA`})||e.set(`DA`,s);let f=new Map;for(let e of d){let t=e.get(`AP`);for(let[,e]of t){if(!(e instanceof Ve))continue;let t=e.dict.getRaw(`Resources`);if(!t){let t=await f.getOrInsertComputed(c,()=>this.#n(c,i));e.dict.set(`Resources`,t);continue}t=i.fetchIfRef(t);for(let[e,n]of c.getRawEntries())if(!t.has(e)){let r=n;n instanceof R?r=await this.#r(n,!0,i):(n instanceof L||n instanceof Ve||Array.isArray(n))&&(r=await f.getOrInsertComputed(n,()=>this.#n(n,i))),t.set(e,r)}}}}async#A(){if(!this.isSingleFile)return;let e=this.oldPages.find(e=>!!e);if(!e)return;let{documentData:{document:t,pageLabels:n}}=e;if(!n)return;let r=t.numPages,i=new Map,a=new Set(this.oldPages.filter(e=>!!e).map(({page:{pageIndex:e}})=>e)),o=null,s=-1;for(let e=0;e<r;e++){let t=n.get(e);if(t&&(o=t,s=o.has(`St`)?e:-1),a.has(e)){if(s!==-1){let t=o.get(`St`);o=this.cloneDict(o),o.set(`St`,t+(e-s)),s=-1}i.set(e,o)}}let c=e=>{let t=new L;return t.setIfName(`S`,`D`),t.set(`St`,e+1),t};o=null;let l=this.pageLabels=[];for(let e=0,t=this.oldPages.length;e<t;e++){let t=this.oldPages[e],n=t&&i.get(t.page.pageIndex)||c(e);n!==o&&(o=n,l.push([e,o]))}}async#j(e){let{page:t,documentData:n,annotations:r,pointingNamedDestinations:i}=this.oldPages[e];this.currentDocument=n;let{dedupNamedDestinations:a,oldRefMapping:o}=n,{xref:s,rotate:c,mediaBox:l,resources:u,ref:d}=t,f=this.newRef,p=this.xref[f.num]=this.cloneDict(t.pageDict);if(o.put(d,f),i)for(let e of i){let t=a.get(e)||e,n=this.namedDestinations.get(t);n[0]=f}for(let e of[`Rotate`,`MediaBox`,`CropBox`,`BleedBox`,`TrimBox`,`ArtBox`,`Resources`,`Annots`,`Parent`,`UserUnit`])p.delete(e);let m=this.newRefCount;await this.#r(p,!1,s),p.set(`Rotate`,c),p.set(`MediaBox`,l);for(let e of[`CropBox`,`BleedBox`,`TrimBox`,`ArtBox`]){let n=t.getBoundingBox(e);n?.some((e,t)=>e!==l[t])&&p.set(e,n)}let h=t.userUnit;h!==1&&p.set(`UserUnit`,h),p.setIfDict(`Resources`,await this.#r(u,!0,s));let g=null;if(r){let e=await this.#r(r,!0,s);this.#h(e,a),Array.isArray(e)&&e.length>0&&(g=e)}let _=n.document===this.#t?this.#e?.newAnnotationsByPage?.get(t.pageIndex):null;if(_){let{handler:e,task:n,imagesPromises:r}=this.#e,i=new Ie,a=await Ky.saveNewAnnotations(t.createAnnotationEvaluator(e),this.xrefWrapper,n,_,r,i);for(let[e,{data:t}]of i.items())this.xref[e.num]=t;g||=[];for(let{ref:e}of a.annotations)g.push(e)}if(p.setIfArray(`Annots`,g),this.useObjectStreams){let e=this.newRefCount,t=[];for(let n=m;n<e;n++)this.xref[n]instanceof Ve||t.push(R.get(n,0));for(let e=0;e<t.length;e+=65535){let n=this.newRef;this.objStreamRefs.add(n.num),this.xref[n.num]=t.slice(e,e+65535)}}return this.currentDocument=null,f}#M(){let e=new Map;for(let t of this.oldPages){if(!t)continue;let{page:n}=t,[r,i,a,o]=n.view,s=a-r,c=o-i;if(s<=0||c<=0)continue;n.rotate%180!=0&&([s,c]=[c,s]);let l=`${s}x${c}`,u=e.get(l);u?u.count++:e.set(l,{width:s,height:c,count:1})}if(e.size===0){let[,,e,t]=ax;return{width:e,height:t}}let t=null;for(let n of e.values())(!t||n.count>t.count||n.count===t.count&&n.width*n.height>t.width*t.height)&&(t=n);return{width:t.width,height:t.height}}async#N(e,t){let{width:n,height:r}=t,i=n*.1,a=Math.max(1,n-2*i),o=Math.max(1,r-2*i),s=this.newRefCount,{imageStream:c,smaskStream:l,width:u,height:d}=await Eu(e,this.xrefWrapper,{closeBitmap:!0}),f=Math.min(a/u,o/d),p=u*f,m=d*f,h=(n-p)/2,g=(r-m)/2;if(l){let e=this.newRef;this.xref[e.num]=l,c.dict.set(`SMask`,e)}let _=this.newRef;this.xref[_.num]=c;let v=new L(this.xrefWrapper);v.set(`Im0`,_);let y=new L(this.xrefWrapper);y.set(`XObject`,v),y.set(`ProcSet`,[I.get(`PDF`),I.get(`ImageC`)]);let b=`q ${Ot(p)} 0 0 ${Ot(m)} ${Ot(h)} ${Ot(g)} cm /Im0 Do Q`,x=new L(this.xrefWrapper),S=new Cn(pe(b),0,0,x),C=this.newRef;this.xref[C.num]=S;let w=this.newRef,T=this.xref[w.num]=new L(this.xrefWrapper);if(T.setIfName(`Type`,`Page`),T.set(`MediaBox`,[0,0,n,r]),T.set(`Resources`,y),T.set(`Contents`,C),this.useObjectStreams){let e=this.newRefCount,t=[];for(let n=s;n<e;n++)this.xref[n]instanceof Ve||t.push(R.get(n,0));for(let e=0;e<t.length;e+=65535){let n=this.newRef;this.objStreamRefs.add(n.num),this.xref[n.num]=t.slice(e,e+65535)}}return w}#P(){let{newPages:e,rootDict:t,pagesRef:n,pagesDict:r}=this;t.set(`Pages`,n),r.setIfName(`Type`,`Pages`),r.set(`Count`,e.length);let i=[{dict:r,kids:e,parentRef:n}];for(;i.length>0;){let{dict:e,kids:t,parentRef:n}=i.pop();if(t.length<=16){e.set(`Kids`,t);for(let e of t)this.xref[e.num].set(`Parent`,n);continue}let r=Math.max(16,Math.ceil(t.length/16)),a=[];for(let e=0;e<t.length;e+=r)a.push(t.slice(e,e+r));let o=[];e.set(`Kids`,o);for(let e of a){let[t,r]=this.newDict;o.push(t),r.setIfName(`Type`,`Pages`),r.set(`Parent`,n),r.set(`Count`,e.length),i.push({dict:r,kids:e,parentRef:t})}}}#F(e,t){let n=e.sort(t?([e],[t])=>e.localeCompare(t):([e],[t])=>e-t),[r,i]=this.newDict,a=[{dict:i,entries:n,isRoot:!0}],o=t?`Names`:`Nums`;for(;a.length>0;){let{dict:e,entries:t,isRoot:n}=a.pop();if(t.length<=64){n||e.set(`Limits`,[t[0][0],t.at(-1)[0]]),e.set(o,t.flat());continue}let r=[],i=Math.max(64,Math.ceil(t.length/64));for(let e=0;e<t.length;e+=i)r.push(t.slice(e,e+i));let s=[];e.set(`Kids`,s);for(let e of r){let[t,n]=this.newDict;s.push(t),n.set(`Limits`,[e[0][0],e.at(-1)[0]]),a.push({dict:n,entries:e})}}return r}#I(){let{pageLabels:e}=this;if(!e||e.length===0)return;let{rootDict:t}=this,n=this.#F(this.pageLabels,!1);t.set(`PageLabels`,n)}async#L(e){let{embeddedFiles:t}=this;for(let n of e){let{embeddedFiles:e,document:{xref:r}}=n;if(e?.size){this.currentDocument=n;for(let[n,i]of e){let e=n;if(t.has(e)){let r=qe(n,!0);for(let n=1;;n++){let i=`${r}_${n}`;if(!t.has(i)){e=i;break}}}t.set(e,await this.#r(i,!0,r))}this.currentDocument=null}}}#R(){let{embeddedFiles:e}=this;e.size!==0&&(this.namesDict||([this.namesRef,this.namesDict]=this.newDict,this.rootDict.set(`Names`,this.namesRef)),this.namesDict.set(`EmbeddedFiles`,this.#F(Array.from(e.entries()),!0)))}#z(){let{namedDestinations:e}=this;e.size!==0&&(this.namesDict||([this.namesRef,this.namesDict]=this.newDict,this.rootDict.set(`Names`,this.namesRef)),this.namesDict.set(`Dests`,this.#F(Array.from(e.entries()),!0)))}#B(){let{structTreeKids:e}=this;if(!e||e.length===0)return;let{rootDict:t}=this,n=this.newRef,r=this.xref[n.num]=new L;r.setIfName(`Type`,`StructTreeRoot`),r.setIfArray(`K`,e);for(let t of e){let e=this.xref[t.num],r=e.get(`Type`);(!r||Le(r,`StructElem`))&&e.set(`P`,n)}if(this.parentTree.size>0){let e=this.#F(Array.from(this.parentTree.entries()),!1);this.xref[e.num].setIfName(`Type`,`ParentTree`),r.set(`ParentTree`,e),r.set(`ParentTreeNextKey`,this.parentTree.size)}if(this.idTree.size>0){let e=this.#F(Array.from(this.idTree.entries()),!0);this.xref[e.num].setIfName(`Type`,`IDTree`),r.set(`IDTree`,e)}if(this.classMap.size>0){let e=this.newRef;this.xref[e.num]=this.classMap,r.set(`ClassMap`,e)}if(this.roleMap.size>0){let e=this.newRef;this.xref[e.num]=this.roleMap,r.set(`RoleMap`,e)}if(this.namespaces.size>0){let e=this.newRef;this.xref[e.num]=Array.from(this.namespaces.values()),r.set(`Namespaces`,e)}if(this.structTreeAF.length>0){let e=this.newRef;this.xref[e.num]=this.structTreeAF,r.set(`AF`,e)}if(this.structTreePronunciationLexicon.length>0){let e=this.newRef;this.xref[e.num]=this.structTreePronunciationLexicon,r.set(`PronunciationLexicon`,e)}t.set(`StructTreeRoot`,n)}#V(){if(this.fields.length===0)return;let{rootDict:e}=this,t=this.newRef,n=this.xref[t.num]=new L;e.set(`AcroForm`,t),n.set(`Fields`,this.fields),this.acroFormNeedAppearances&&n.set(`NeedAppearances`,!0),this.acroFormSigFlags>0&&n.set(`SigFlags`,this.acroFormSigFlags),n.setIfArray(`CO`,this.acroFormCalculationOrder),n.setIfDict(`DR`,this.acroFormDefaultResources),this.acroFormDefaultAppearance&&n.set(`DA`,this.acroFormDefaultAppearance),this.acroFormQ>0&&n.set(`Q`,this.acroFormQ)}async#H(){let{rootDict:e}=this;e.setIfName(`Type`,`Catalog`),e.setIfName(`Version`,this.version),this.#V(),this.#P(),this.#I(),this.#R(),this.#z(),this.#B(),await this.#x()}#U(){let e=new Map;if(this.isSingleFile){let{xref:{trailer:t}}=this.oldPages.find(e=>!!e).documentData.document,n=t.get(`Info`);for(let[t,r]of n||[])typeof r==`string`&&e.set(t,qe(r))}e.delete(`ModDate`),e.set(`CreationDate`,At()),e.set(`Creator`,`PDF.js`),e.set(`Producer`,`Firefox`),this.author&&e.set(`Author`,this.author),this.title&&e.set(`Title`,this.title);for(let[t,n]of e)this.infoDict.set(t,Ue(n));return e}async#W(){if(!this.isSingleFile)return[null,null,null];let{documentData:e}=this.oldPages.find(e=>!!e),{document:{xref:{trailer:t,encrypt:n}}}=e;if(!t.has(`Encrypt`))return[null,null,null];let r=t.get(`Encrypt`);if(!(r instanceof L))return[null,null,null];this.currentDocument=e;let i=[await this.#n(r,t.xref),n,t.get(`ID`)];return this.currentDocument=null,i}async#G(){let e=new Ie;e.put(R.get(0,65535),{data:null});for(let t=1,n=this.xref.length;t<n;t++)this.objStreamRefs?.has(t)?await this.#K(R.get(t,0),this.xref[t],e):e.put(R.get(t,0),{data:this.xref[t]});return[e,this.newRef]}async#K(e,t,n){let r=[``],i=[],a=0,o=[];for(let s=0,c=t.length;s<c;s++){let c=t[s];n.put(c,{data:null,objStreamRef:e,index:s}),i.push(`${c.num} ${a}`);let l=this.xref[c.num];await Tx(l,o,null);let u=o.join(``);o.length=0,r.push(u),a+=u.length+1}r[0]=i.join(`\n`);let s=new wn(r.join(`\n`)),c=s.dict=new L;c.setIfName(`Type`,`ObjStm`),c.set(`N`,t.length),c.set(`First`,r[0].length+1),n.put(e,{data:s})}async writePDF(){await this.#H();let e=this.#U(),[t,n,r]=await this.#W(),[i,a]=await this.#G();return Rx({originalData:pe(`%PDF-${this.version}\\n%\\xfa\\xde\\xfa\\xce`),changes:i,xrefInfo:{startXRef:null,rootRef:this.rootRef,infoRef:this.infoRef,encryptRef:t,newRef:a,fileIds:r||[null,null],infoMap:e},useXrefStream:this.useObjectStreams,xref:{encrypt:n,encryptRef:t}})}},Ux=class{#e=null;#t=null;_fullReader=null;_rangeReaders=new Set;_source=null;constructor(e,t,n){this._source=e,this.#e=t,this.#t=n}get _progressiveDataLength(){return this._fullReader?._loaded??0}getFullReader(){return N(!this._fullReader,`BasePDFStream.getFullReader can only be called once.`),this._fullReader=new this.#e(this)}getRangeReader(e,t){if(t<=this._progressiveDataLength)return null;let n=new this.#t(this,e,t);return this._rangeReaders.add(n),n}cancelAllRequests(e){this._fullReader?.cancel(e);for(let t of new Set(this._rangeReaders))t.cancel(e)}},Wx=class{onProgress=null;_contentLength=0;_filename=null;_headersCapability=Promise.withResolvers();_isRangeSupported=!1;_isStreamingSupported=!1;_loaded=0;_stream=null;constructor(e){this._stream=e}_callOnProgress(){this.onProgress?.({loaded:this._loaded,total:this._contentLength})}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){M("Abstract method `read` called")}cancel(e){M("Abstract method `cancel` called")}},Gx=class{_stream=null;constructor(e,t,n){this._stream=e}async read(){M("Abstract method `read` called")}cancel(e){M("Abstract method `cancel` called")}},Kx=class extends Ux{constructor(e){super(e,qx,Jx)}},qx=class extends Wx{_reader=null;constructor(e){super(e);let{msgHandler:t}=e._source,n=t.sendWithStream(`GetReader`);this._reader=n.getReader(),t.sendWithPromise(`ReaderHeadersReady`).then(e=>{this._contentLength=e.contentLength,this._isStreamingSupported=e.isStreamingSupported,this._isRangeSupported=e.isRangeSupported,this._headersCapability.resolve()},this._headersCapability.reject)}async read(){let{value:e,done:t}=await this._reader.read();return t?{value:void 0,done:!0}:{value:e.buffer,done:!1}}cancel(e){this._reader.cancel(e)}},Jx=class extends Gx{_reader=null;constructor(e,t,n){super(e,t,n);let{msgHandler:r}=e._source,i=r.sendWithStream(`GetRangeReader`,{begin:t,end:n});this._reader=i.getReader()}async read(){let{value:e,done:t}=await this._reader.read();return t?{value:void 0,done:!0}:{value:e.buffer,done:!1}}cancel(e){this._reader.cancel(e)}},Yx=class{constructor(e){this.name=e,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`)}},Xx=class{static{typeof window>`u`&&!r&&typeof self<`u`&&typeof self.postMessage==`function`&&`onmessage`in self&&this.initializeFromPort(self)}static setup(e,t){let n=!1;e.on(`test`,t=>{n||(n=!0,e.send(`test`,t instanceof Uint8Array))}),e.on(`configure`,e=>{ne(e.verbosity)}),e.on(`GetDocRequest`,e=>this.createDocumentHandler(e,t))}static createDocumentHandler(e,t){let n,r=!1,i=null,a=new Set,o=k(),{docId:s,apiVersion:c}=e,l=`6.0.227`;if(c!==l)throw Error(`The API version "${c}" does not match the Worker version "${l}".`);let u=(e,t)=>`The \\`${e}.prototype\\` contains unexpected enumerable property "${t}", thus breaking e.g. \\`for...in\\` iteration of ${e}s.`;for(let e in{})throw Error(u(`Object`,e));for(let e in[])throw Error(u(`Array`,e));let d=s+`_worker`,f=new bx(d,s,t);function p(){if(r)throw Error(`Worker was terminated`)}function m(e){a.add(e)}function h(e){e.finish(),a.delete(e)}async function g(e){await n.ensureDoc(`checkHeader`),await n.ensureDoc(`parseStartXRef`),await n.ensureDoc(`parse`,[e]),await n.ensureDoc(`checkFirstPage`,[e]),await n.ensureDoc(`checkLastPage`,[e]);let t=await n.ensureDoc(`isPureXfa`);if(t){let e=new Yx(`loadXfaResources`);m(e),await n.ensureDoc(`loadXfaResources`,[f,e]),h(e)}let[r,i]=await Promise.all([n.ensureDoc(`numPages`),n.ensureDoc(`fingerprints`)]);return{numPages:r,fingerprints:i,htmlForXfa:t?await n.ensureDoc(`htmlForXfa`):null}}async function _({data:e,password:t,disableAutoFetch:n,rangeChunkSize:r,docBaseUrl:a,enableXfa:o,evaluatorOptions:c}){let l={source:null,disableAutoFetch:n,docBaseUrl:a,docId:s,enableXfa:o,evaluatorOptions:c,handler:f,length:0,password:t,rangeChunkSize:r};if(e)return l.source=e,new mx(l);let u=new Kx({msgHandler:f}),d=u.getFullReader(),{promise:m,resolve:h,reject:g}=Promise.withResolvers(),_,v=[];i=e=>u.cancelAllRequests(e),d.headersReady.then(()=>{if(d.isRangeSupported){l.source=u,l.length=d.contentLength,l.disableAutoFetch||=d.isStreamingSupported,_=new hx(l);for(let e of v)_.sendProgressiveData(e);v=null,h(_),i=null}}).catch(e=>{g(e),i=null});async function y(){let e=0;for(;;){let{value:t,done:n}=await d.read();if(p(),n)break;e+=t.byteLength,d.isStreamingSupported||f.send(`DocProgress`,{loaded:e,total:d.contentLength}),_?_.sendProgressiveData(t):v.push(t)}_||(l.source=it(v),v=null,_=new mx(l),h(_)),i=null}return y().catch(e=>{g(e),i=null}),m}function v(e){function t(e){p(),f.send(`GetDoc`,{pdfInfo:e})}function i(e){if(!r)if(e instanceof se){let t=new Yx(`PasswordException: response ${e.code}`);m(t),f.sendWithPromise(`PasswordRequest`,e).then(function({password:e}){h(t),n.updatePassword(e),a()}).catch(function(){h(t),f.send(`DocException`,e)})}else f.send(`DocException`,yx(e))}function a(){p(),g(!1).then(t,function(e){if(p(),!(e instanceof rt)){i(e);return}n.requestLoadedStream().then(function(){p(),g(!0).then(t,i)})})}p(),_(e).then(function(e){if(r)throw e.terminate(new de(`Worker was terminated.`)),Error(`Worker was terminated`);n=e,n.requestLoadedStream(!0).then(e=>{f.send(`DataLoaded`,{length:e.bytes.byteLength})})}).then(a,i)}return f.on(`GetPage`,function(e){return n.getPage(e.pageIndex).then(function(e){return Promise.all([n.ensure(e,`rotate`),n.ensure(e,`ref`),n.ensure(e,`userUnit`),n.ensure(e,`view`)]).then(function([e,t,n,r]){return{rotate:e,ref:t,refStr:t?.toString()??null,userUnit:n,view:r}})})}),f.on(`GetPageIndex`,function(e){let t=R.get(e.num,e.gen);return n.ensureCatalog(`getPageIndex`,[t])}),f.on(`GetDestinations`,function(e){return n.ensureCatalog(`destinations`)}),f.on(`GetDestination`,function(e){return n.ensureCatalog(`getDestination`,[e.id])}),f.on(`GetPageLabels`,function(e){return n.ensureCatalog(`pageLabels`)}),f.on(`GetPageLayout`,function(e){return n.ensureCatalog(`pageLayout`)}),f.on(`GetPageMode`,function(e){return n.ensureCatalog(`pageMode`)}),f.on(`GetViewerPreferences`,function(e){return n.ensureCatalog(`viewerPreferences`)}),f.on(`GetOpenAction`,function(e){return n.ensureCatalog(`openAction`)}),f.on(`GetAttachments`,function(e){return n.ensureCatalog(`attachments`)}),f.on(`GetDocJSActions`,function(e){return n.ensureCatalog(`jsActions`)}),f.on(`GetPageJSActions`,function({pageIndex:e}){return n.getPage(e).then(e=>n.ensure(e,`jsActions`))}),f.on(`GetAnnotationsByType`,async function({types:e,pageIndexesToSkip:t}){let[r,i]=await Promise.all([n.ensureDoc(`numPages`),n.ensureDoc(`annotationGlobals`)]);if(!i)return null;let a=[],o=[],s=null;try{for(let c=0,l=r;c<l;c++)t?.has(c)||(s||(s=new Yx(`GetAnnotationsByType`),m(s)),a.push(n.getPage(c).then(async t=>t&&t.collectAnnotationsByType(f,s,e,o,i)||[])));return await Promise.all(a),(await Promise.all(o)).filter(e=>!!e)}finally{s&&h(s)}}),f.on(`GetOutline`,function(e){return n.ensureCatalog(`documentOutline`)}),f.on(`GetOptionalContentConfig`,function(e){return n.ensureCatalog(`optionalContentConfig`)}),f.on(`GetPermissions`,function(e){return n.ensureCatalog(`permissions`)}),f.on(`GetMetadata`,function(e){return Promise.all([n.ensureDoc(`documentInfo`),n.ensureCatalog(`metadata`),n.ensureCatalog(`hasStructTree`)])}),f.on(`GetMarkInfo`,function(e){return n.ensureCatalog(`markInfo`)}),f.on(`GetData`,function(e){return n.requestLoadedStream().then(e=>e.bytes)}),f.on(`GetAnnotations`,function({pageIndex:e,intent:t}){return n.getPage(e).then(function(n){let r=new Yx(`GetAnnotations: page ${e}`);return m(r),n.getAnnotationsData(f,r,t).then(e=>(h(r),e),e=>{throw h(r),e})})}),f.on(`GetFieldObjects`,function(e){return n.ensureDoc(`fieldObjects`).then(e=>e?.allFields||null)}),f.on(`HasJSActions`,function(e){return n.ensureDoc(`hasJSActions`)}),f.on(`GetCalculationOrderIds`,function(e){return n.ensureDoc(`calculationOrderIds`)}),f.on(`ExtractPages`,async function({pageInfos:e,annotationStorage:t}){if(!e)return j(`extractPages: nothing to extract.`),null;Array.isArray(e)||(e=[e]);let r=0;for(let t of e)if(!t.image)if(t.document===null)t.document=n.pdfDocument;else if(ArrayBuffer.isView(t.document)){let e=new mx({source:t.document,docId:`${s}_extractPages_${r++}`,handler:f,password:t.password??null,evaluatorOptions:Object.assign({},n.evaluatorOptions)}),i=!1,a=!0;for(;;)try{await e.requestLoadedStream(),await e.ensureDoc(`checkHeader`),await e.ensureDoc(`parseStartXRef`),await e.ensureDoc(`parse`,[i]);break}catch(t){if(t instanceof rt)if(i===!1){i=!0;continue}else a=!1,j(`extractPages: XRefParseException.`);else if(t instanceof se){let n=new Yx(`PasswordException: response ${t.code}`);m(n);try{let{password:n}=await f.sendWithPromise(`PasswordRequest`,t);e.updatePassword(n)}catch{a=!1,j(`extractPages: invalid password.`)}finally{h(n)}}else a=!1,j(`extractPages: invalid document.`);if(!a)break}a||(t.document=null),await e.ensureDoc(`isPureXfa`)?(t.document=null,j(`extractPages does not support pure XFA documents.`)):t.document=e.pdfDocument}else j(`extractPages: invalid document.`);let i;try{let r=new Hx;return i=new Yx(`ExtractPages: ${e.length} page(s)`),m(i),await r.extractPages(e,t,n.pdfDocument,f,i)}catch(e){return j(`extractPages: "${e}".`),null}finally{i&&h(i)}}),f.on(`SaveDocument`,async function({isPureXfa:e,numPages:t,annotationStorage:r,filename:i}){let a=[n.requestLoadedStream(),n.ensureCatalog(`acroForm`),n.ensureCatalog(`acroFormRef`),n.ensureDoc(`startXRef`),n.ensureDoc(`xref`),n.ensureCatalog(`structTreeRoot`)],o=new Ie,s=[],c=e?null:kt(r),[l,u,d,p,g,_]=await Promise.all(a),v=g.trailer.getRaw(`Root`)||null,y;if(c){_?await _.canUpdateStructTree({pdfManager:n,newAnnotationsByPage:c})&&(y=_):await fu.canCreateStructureTree({catalogRef:v,pdfManager:n,newAnnotationsByPage:c})&&(y=null);let e=Ky.generateImages(r.values(),g,n.evaluatorOptions.isOffscreenCanvasSupported),t=y===void 0?s:[];for(let[r,i]of c)t.push(n.getPage(r).then(t=>{let n=new Yx(`Save (editor): page ${r}`);return m(n),t.saveNewAnnotations(f,n,i,e,o).finally(function(){h(n)})}));y===null?s.push(Promise.all(t).then(async()=>{await fu.createStructureTree({newAnnotationsByPage:c,xref:g,catalogRef:v,pdfManager:n,changes:o})})):y&&s.push(Promise.all(t).then(async()=>{await y.updateStructureTree({newAnnotationsByPage:c,pdfManager:n,changes:o})}))}if(e)s.push(n.ensureDoc(`serializeXfaData`,[r]));else for(let e=0;e<t;e++)s.push(n.getPage(e).then(function(t){let n=new Yx(`Save: page ${e}`);return m(n),t.save(f,n,r,o).finally(function(){h(n)})}));let b=await Promise.all(s),x=null;if(e){if(x=b[0],!x)return l.bytes}else if(o.size===0)return l.bytes;let S=d&&u instanceof L&&o.values().some(e=>e.needAppearances),C=u instanceof L&&u.get(`XFA`)||null,w=null,T=!1;if(Array.isArray(C)){for(let e=0,t=C.length;e<t;e+=2)C[e]===`datasets`&&(w=C[e+1],T=!0);w===null&&(w=g.getNewTemporaryRef())}else C&&j(`Unsupported XFA type.`);let E=Object.create(null);if(g.trailer){let e=new Map,t=g.trailer.get(`Info`)||null;if(t instanceof L)for(let[n,r]of t)typeof r==`string`&&e.set(n,qe(r));E={rootRef:v,encryptRef:g.trailer.getRaw(`Encrypt`)||null,newRef:g.getNewTemporaryRef(),infoRef:g.trailer.getRaw(`Info`)||null,infoMap:e,fileIds:g.trailer.get(`ID`)||null,startXRef:p,filename:i}}return Rx({originalData:l.bytes,xrefInfo:E,changes:o,xref:g,hasXfa:!!C,xfaDatasetsRef:w,hasXfaDatasetsEntry:T,needAppearances:S,acroFormRef:d,acroForm:u,xfaData:x,useXrefStream:ze(g.topDict,`XRef`)}).finally(()=>{g.resetNewTemporaryRef()})}),f.on(`GetOperatorList`,function(e,t){let{pageId:r,pageIndex:i}=e;n.getPage(r).then(function(n){let r=new Yx(`GetOperatorList: page ${i}`);m(r);let a=o>=E.INFOS?Date.now():0;n.getOperatorList({handler:f,sink:t,task:r,intent:e.intent,cacheKey:e.cacheKey,annotationStorage:e.annotationStorage,modifiedIds:e.modifiedIds,pageIndex:i}).then(function(e){h(r),a&&A(`page=${i+1} - getOperatorList: time=${Date.now()-a}ms, len=${e.length}`),t.close()},function(e){h(r),!r.terminated&&t.error(e)})})}),f.on(`GetTextContent`,function(e,t){let{pageId:r,pageIndex:i,includeMarkedContent:a,disableNormalization:s}=e;n.getPage(r).then(function(e){let n=new Yx(`GetTextContent: page `+i);m(n);let r=o>=E.INFOS?Date.now():0;e.extractTextContent({handler:f,task:n,sink:t,includeMarkedContent:a,disableNormalization:s}).then(function(){h(n),r&&A(`page=${i+1} - getTextContent: time=${Date.now()-r}ms`),t.close()},function(e){h(n),!n.terminated&&t.error(e)})})}),f.on(`GetStructTree`,function(e){return n.getPage(e.pageIndex).then(e=>n.ensure(e,`getStructTree`))}),f.on(`FontFallback`,function(e){return n.fontFallback(e.id,f)}),f.on(`Cleanup`,function(e){return n.cleanup(!0)}),f.on(`Terminate`,async function(e){r=!0;let t=[];if(n){n.terminate(new de(`Worker was terminated.`));let e=n.cleanup();t.push(e),n=null}else tu();i?.(new de(`Worker was terminated.`));for(let e of a)t.push(e.finished),e.terminate();await Promise.all(t),f.destroy(),f=null}),f.on(`Ready`,function(t){v(e),e=null}),d}static initializeFromPort(e){let t=new bx(`worker`,`main`,e);this.setup(t,e),t.send(`ready`,null)}};globalThis.pdfjsWorker={WorkerMessageHandler:Xx}})();',bu=typeof self<`u`&&self.Blob&&new Blob([`(self.URL || self.webkitURL).revokeObjectURL(self.location.href);`,yu],{type:`text/javascript;charset=utf-8`});function xu(e){let t;try{if(t=bu&&(self.URL||self.webkitURL).createObjectURL(bu),!t)throw``;let n=new Worker(t,{name:e?.name});return n.addEventListener(`error`,()=>{(self.URL||self.webkitURL).revokeObjectURL(t)}),n}catch{return new Worker(`data:text/javascript;charset=utf-8,`+encodeURIComponent(yu),{name:e?.name})}}var Su={create(){return S(`pdf.worker.js`).defaults(()=>new xu)}},Cu={key:0,class:`pdf-toolbar`},wu=[`aria-pressed`],Tu={class:`pdf-toolbar-group`},Eu=[`disabled`],Du={class:`pdf-page-meter`},Ou=[`disabled`],ku={class:`pdf-toolbar-group pdf-toolbar-group--zoom`},Au=[`disabled`],ju=[`disabled`],Mu={class:`pdf-toolbar-group pdf-toolbar-group--rotate`},Nu={class:`pdf-rotation-meter`},Pu={class:`pdf-content`},Fu={key:0,class:`pdf-nav-pane`},Iu={class:`pdf-nav-head`},Lu={class:`pdf-nav-tabs`,role:`tablist`,"aria-label":`PDF 导航类型`},Ru=[`aria-selected`],zu=[`aria-selected`],Bu={key:0,class:`pdf-page-list`},Vu=[`onClick`],Hu={class:`pdf-page-thumb`},Uu={class:`pdf-page-label`},Wu={key:1,class:`pdf-outline-list`},Gu=[`onClick`],Ku=[`onClick`],qu={class:`pdf-outline-title`},Ju={key:0,class:`pdf-outline-empty`},Yu={class:`pdf-viewport`},Xu={key:0,class:`pdf-state`},Zu={key:1,class:`pdf-state pdf-state--error`},Qu=.2,$u=3,ed=.1,td=28,nd=18,rd=8e6,id=t(d({__name:`PdfView`,props:{data:{},url:{},exportAdapter:{type:Function},options:{}},setup(t){let r=t,d=a(null),S=a(null),C=a(r.options?.navigation===!1?!1:r.options?.defaultNavigationVisible!==!1),w=a(`pages`),T=a(`loading`),E=a(``),D=a(1),O=a(0),k=a(1),A=a(!0),j=a(ue(r.options?.rotation??0)),M=a([]),N=g(()=>r.options?.navigation!==!1),P=g(()=>r.options?.toolbar!==!1),F=g(()=>Array.from({length:O.value},(e,t)=>t+1)),I=g(()=>{let e=t=>t.reduce((t,n)=>t+1+e(n.items),0);return e(M.value)}),L=g(()=>{let e=[],t=(n,r)=>{n.forEach(n=>{e.push({item:n,depth:r}),n.expanded&&n.items.length&&t(n.items,r+1)})};return t(M.value,0),e}),R=g(()=>`${Math.round(k.value*100)}%`),z=g(()=>`${j.value}°`),ee=g(()=>D.value>1),B=g(()=>D.value<O.value),te=g(()=>k.value>Qu),ne=g(()=>k.value<$u),V={viewer:null,linkService:null,eventBus:null,findController:null,resource:null,document:null,search:``},re=null,ie=0,ae=!1,oe=0,se=de(),ce={current:0,total:0},H,U=[];function le(){return typeof window>`u`||!(`Worker`in window)?null:oi.create({port:Su.create()})}function ue(e){let t=(Math.round(e/90)*90%360+360)%360;return t===90||t===180||t===270?t:0}function de(e=``){return{query:e,total:0,currentIndex:-1,current:null,matches:[]}}function fe(e){let t=U;U=[],t.forEach(t=>{window.clearTimeout(t.timer),t.resolve(e)})}function pe(){let e=V.findController;if(!e)return{current:0,total:0};let t=e.pageMatches||[],n=e.selected,r=t.reduce((e,t)=>e+(t?.length||0),0),i=0;if(n&&n.pageIdx>=0&&n.matchIdx>=0&&r>0){for(let e=0;e<n.pageIdx;e+=1)i+=t[e]?.length||0;i+=n.matchIdx+1}return{current:i,total:r}}function W(e=pe(),t=V.search,n=!1){ce=e;let r=Math.max(0,e.current||0),i=Math.max(0,e.total||0),a=V.findController?.selected,o=a&&a.pageIdx>=0?a.pageIdx+1:void 0;return se={query:t,total:i,currentIndex:r>0?r-1:-1,current:r>0?{id:`pdf-search-match-${r}`,index:r-1,text:t,anchor:null,page:o}:null,matches:[]},n&&fe(se),se}function me(e){return new Promise(t=>{let n=window.setTimeout(()=>{let n=U.findIndex(e=>e.resolve===t);n>=0&&U.splice(n,1),t(W(pe(),e))},1200);U.push({resolve:t,timer:n})})}function he(e){e.matchesCount&&W(e.matchesCount,V.search)}function ge(e){let t=typeof e.rawQuery==`string`?e.rawQuery:V.search;V.search=t;let n=e.matchesCount?.total?e.matchesCount:pe();W(n,t,e.state!==3&&(n.total>0||e.state===1))}async function _e(e,t,n,r=!1){if(!V.eventBus)return W({current:0,total:0},e);V.search=e,H=t||H;let i=t||H,a=q(S.value?.scrollLeft||0);V.eventBus.dispatch(`find`,{source:d.value||window,type:n,query:e,phraseSearch:!0,caseSensitive:!!i?.caseSensitive,entireWord:!!i?.wholeWord,highlightAll:!0,findPrevious:r,matchDiacritics:!1});try{return await me(e)}finally{Ne(a)}}function ve(){return V.search=``,H=void 0,ce={current:0,total:0},V.eventBus?.dispatch(`findbarclose`,{source:d.value||window}),W(ce,``,!0)}function ye(){let e=d.value;e&&n(e,{search:(e,t)=>_e(e,t,``,!1),next:()=>V.search?_e(V.search,void 0,`again`,!1):se,previous:()=>V.search?_e(V.search,void 0,`again`,!0):se,clear:ve,getState:()=>se})}async function be(){await p(),ye()}function xe(){let e=d.value;i(e)}async function Se(e){if(e)try{await e.loadingTask.destroy()}catch(e){console.warn(`PDF 加载任务销毁失败`,e)}finally{e.worker?.destroy()}}function G(e){return e.replace(/&/g,`&amp;`).replace(/"/g,`&quot;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`)}function K(e,t=`outline`){return e.map((e,n)=>{let r=`${t}-${n}`,i=Array.isArray(e.items)?K(e.items,r):[];return{id:r,title:e.title||`目录 ${n+1}`,dest:e.dest||null,items:i,expanded:n<4}})}async function Ce(e){try{let t=await e.getOutline();if(ae||V.document!==e)return;M.value=Array.isArray(t)?K(t):[]}catch(e){console.warn(`PDF 大纲读取失败`,e),M.value=[]}}function we(e,t,n){let r=n===`print`?1.75:1.5,i=Math.sqrt(rd/Math.max(e*t,1));return Math.max(.75,Math.min(r,i))}async function Te(e=1){let t=V.document;if(!t)throw Error(`PDF 尚未加载完成,请稍后再试`);let n=await t.getPage(Math.min(Math.max(e,1),t.numPages)),r=n.getViewport({scale:Fe.PDF_TO_CSS_UNITS,rotation:j.value});return n.cleanup?.(),{width:Math.ceil(r.width),height:Math.ceil(r.height)}}async function Ee(){let e=await Te();return b({selector:`.viewer-export-content .pdf-export-page`,width:e.width,height:e.height})}async function De(e){let t=V.document;if(!t)throw Error(`PDF 尚未加载完成,请稍后再试`);let n=[];for(let r=1;r<=t.numPages;r+=1){if(ae)throw Error(`PDF 已卸载,无法继续打印`);let i=await t.getPage(r),a=i.getViewport({scale:Fe.PDF_TO_CSS_UNITS,rotation:j.value}),o=Math.ceil(a.width),s=Math.ceil(a.height),c=we(a.width,a.height,e.mode),l=i.getViewport({scale:Fe.PDF_TO_CSS_UNITS*c,rotation:j.value}),u=document.createElement(`canvas`),d=u.getContext(`2d`);if(!d)throw Error(`当前浏览器无法创建 PDF 打印画布`);u.width=Math.ceil(l.width),u.height=Math.ceil(l.height),await i.render({canvas:u,canvasContext:d,viewport:l}).promise;let f=`${e.title} - 第 ${r} 页`,p=[`--viewer-print-page-width:${x(o)}`,`--viewer-print-page-height:${x(s)}`,`width:${x(o)}`,`height:${x(s)}`].join(`;`);n.push(`<section class="pdf-export-page viewer-print-page" style="${p}" aria-label="${G(f)}"><img src="${u.toDataURL(`image/png`)}" alt="${G(f)}" /></section>`),u.width=0,u.height=0,i.cleanup?.()}return`<div class="pdf-export-document">${n.join(``)}</div>`}async function Oe(){if(!S.value)return;let e=++oe;T.value=`loading`,E.value=``,V.document=null,M.value=[],r.exportAdapter?.(null);let t=null;try{if(ae||e!==oe||!S.value)return;let n=new tc,i=new Js({eventBus:n}),a=new Gs({eventBus:n,linkService:i,updateMatchesCountOnProgress:!0}),o=new vu({container:S.value,eventBus:n,linkService:i,findController:a,l10n:new Dl(`zh-CN`),enableAutoLinking:!1});if(V.viewer=o,V.linkService=i,V.eventBus=n,V.findController=a,i.setViewer(o),ye(),n.on(`updatefindmatchescount`,he),n.on(`updatefindcontrolstate`,ge),n.on(`pagesinit`,()=>{Ve(j.value),Le(),T.value=`ready`,V.search&&n.dispatch(`find`,{type:``,query:V.search})}),n.on(`pagechanging`,({pageNumber:e})=>{D.value=e}),n.on(`scalechanging`,({scale:e})=>{k.value=je(e)}),!r.url&&!r.data)throw Error(`PDF 缺少可读取的数据源`);let s=le(),c=ti({...r.url?{url:r.url,rangeChunkSize:r.options?.rangeChunkSize||65536,withCredentials:r.options?.withCredentials===!0}:{data:r.data},worker:s||void 0,cMapUrl:`https://npm.onmicrosoft.cn/pdfjs-dist@${ui}/cmaps/`,wasmUrl:`https://npm.onmicrosoft.cn/pdfjs-dist@${ui}/wasm/`,useWorkerFetch:!0,cMapPacked:!0,enableXfa:!0});t={loadingTask:c,worker:s},V.resource=t;let l=await c.promise;if(ae||e!==oe||V.resource!==t){V.resource===t&&(V.resource=null,await Se(t));return}O.value=l.numPages,D.value=1,V.document=l,r.exportAdapter?.({includeDocumentStyles:!1,printStyle:Ee,toHtml:De}),Ce(l),o.setDocument(l),i.setDocument(l,null)}catch(n){if(V.resource===t&&(V.resource=null,Se(t)),ae||e!==oe)return;T.value=`error`,E.value=n instanceof Error?n.message:`PDF 加载失败`}}function ke(e){let t=e.getPageView(0),n=t?.pdfPage;if(n)return n.getViewport({scale:Fe.PDF_TO_CSS_UNITS,rotation:j.value}).width;let r=t?.viewport?.width;return r&&k.value?r/k.value:0}function Ae(e){let t=ke(e),n=S.value?.clientWidth||window.innerWidth,r=Math.max(n-td-nd,96);return t?je(r/t):1}function je(e){return Number(Math.min($u,Math.max(Qu,e)).toFixed(2))}function q(e){let t=S.value;if(!t)return 0;let n=Math.max(0,t.scrollWidth-t.clientWidth);return Math.min(Math.max(0,e),n)}function Me(e){let t=S.value;t&&(t.scrollLeft=q(e))}function Ne(e){Me(e),p(()=>{Me(e)}),!(typeof window>`u`)&&(window.requestAnimationFrame(()=>{Me(e),window.requestAnimationFrame(()=>{Me(e)})}),window.setTimeout(()=>{Me(e)},120))}function Pe(e){let t=q(S.value?.scrollLeft||0),n=e();Ne(t),n&&typeof n.then==`function`&&Promise.resolve(n).finally(()=>{Ne(t)})}function Ie(e){if(!V.viewer)return;let t=je(e);V.viewer.currentScale=t,k.value=t}function Le(){V.viewer&&(A.value=!0,Ie(Ae(V.viewer)),p(()=>{V.viewer?.update()}))}function Re(){!A.value||!V.viewer||typeof window>`u`||(window.cancelAnimationFrame(ie),ie=window.requestAnimationFrame(()=>{Le()}))}function ze(){A.value=!1,Ie(k.value+ed)}function Be(){A.value=!1,Ie(k.value-ed)}function Ve(e){let t=ue(e);j.value=t,V.viewer&&(V.viewer.pagesRotation=t,p(()=>{if(A.value){Le();return}V.viewer?.update()}))}function He(){Ve(j.value-90)}function Ue(){Ve(j.value+90)}function We(e){if(!V.viewer||!O.value)return;let t=Math.min(O.value,Math.max(1,e));Pe(()=>{V.viewer.currentPageNumber=t,D.value=t})}function Ge(e){w.value=e}function Ke(){N.value&&(C.value=!C.value,p(()=>{if(A.value){Le();return}V.viewer?.update()}))}function qe(){Le()}function Je(e){e.items.length&&(e.expanded=!e.expanded)}function Ye(e){!e.dest||!V.linkService||Pe(()=>V.linkService.goToDestination(e.dest))}return l(()=>{be(),Oe(),S.value&&(re=new ResizeObserver(()=>{Re()}),re.observe(S.value))}),f(()=>{ae=!0,oe+=1,window.cancelAnimationFrame(ie),re?.disconnect(),re=null,V.viewer=null,V.linkService=null,V.eventBus=null,V.findController=null,V.document=null,xe(),M.value=[],r.exportAdapter?.(null);let e=V.resource;V.resource=null,Se(e)}),(t,n)=>(y(),_(`div`,{ref_key:`shell`,ref:d,class:o([`pdf-shell`,{"pdf-shell--nav-hidden":!N.value||!C.value,"pdf-shell--toolbar-hidden":!P.value}]),"data-viewer-search-provider":`pdf`},[P.value?(y(),_(`div`,Cu,[N.value?(y(),_(`button`,{key:0,class:o([`pdf-icon-button`,{"pdf-icon-button--active":C.value}]),type:`button`,title:`切换导航窗格`,"aria-label":`切换导航窗格`,"aria-pressed":C.value,onClick:Ke},[...n[4]||=[m(`span`,{class:`pdf-panel-icon`},null,-1)]],10,wu)):h(``,!0),m(`div`,Tu,[m(`button`,{class:`pdf-icon-button`,type:`button`,title:`上一页`,"aria-label":`上一页`,disabled:!ee.value,onClick:n[0]||=e=>We(D.value-1)},[...n[5]||=[m(`span`,{"aria-hidden":`true`},``,-1)]],8,Eu),m(`span`,Du,[m(`strong`,null,s(D.value),1),m(`span`,null,`/ `+s(O.value||`-`),1)]),m(`button`,{class:`pdf-icon-button`,type:`button`,title:`下一页`,"aria-label":`下一页`,disabled:!B.value,onClick:n[1]||=e=>We(D.value+1)},[...n[6]||=[m(`span`,{"aria-hidden":`true`},``,-1)]],8,Ou)]),m(`div`,ku,[m(`button`,{class:`pdf-icon-button`,type:`button`,title:`缩小`,"aria-label":`缩小`,disabled:!te.value,onClick:Be},[...n[7]||=[m(`span`,{"aria-hidden":`true`},``,-1)]],8,Au),m(`button`,{class:`pdf-scale-button`,type:`button`,title:`适合宽度`,onClick:qe},s(R.value),1),m(`button`,{class:`pdf-icon-button`,type:`button`,title:`放大`,"aria-label":`放大`,disabled:!ne.value,onClick:ze},[...n[8]||=[m(`span`,{"aria-hidden":`true`},`+`,-1)]],8,ju)]),m(`div`,Mu,[m(`button`,{class:`pdf-icon-button`,type:`button`,title:`向左旋转`,"aria-label":`向左旋转`,onClick:He},[...n[9]||=[m(`span`,{"aria-hidden":`true`},`↺`,-1)]]),m(`span`,Nu,s(z.value),1),m(`button`,{class:`pdf-icon-button`,type:`button`,title:`向右旋转`,"aria-label":`向右旋转`,onClick:Ue},[...n[10]||=[m(`span`,{"aria-hidden":`true`},`↻`,-1)]])])])):h(``,!0),m(`div`,Pu,[N.value&&C.value?(y(),_(`aside`,Fu,[m(`div`,Iu,[m(`span`,null,s(w.value===`pages`?`页面导航`:`目录导航`),1),m(`strong`,null,s(w.value===`pages`?`${O.value} 页`:`${I.value} 项`),1)]),m(`div`,Lu,[m(`button`,{type:`button`,role:`tab`,"aria-selected":w.value===`pages`?`true`:`false`,class:o({active:w.value===`pages`}),onClick:n[2]||=e=>Ge(`pages`)},` 页面 `,10,Ru),m(`button`,{type:`button`,role:`tab`,"aria-selected":w.value===`outline`?`true`:`false`,class:o({active:w.value===`outline`}),onClick:n[3]||=e=>Ge(`outline`)},` 目录 `,10,zu)]),w.value===`pages`?(y(),_(`div`,Bu,[(y(!0),_(v,null,u(F.value,e=>(y(),_(`button`,{key:e,class:o([`pdf-page-button`,{"pdf-page-button--active":e===D.value}]),type:`button`,onClick:t=>We(e)},[m(`span`,Hu,s(e),1),m(`span`,Uu,`第 `+s(e)+` 页`,1)],10,Vu))),128))])):(y(),_(`div`,Wu,[(y(!0),_(v,null,u(L.value,t=>(y(),_(`button`,{key:t.item.id,class:`pdf-outline-button`,type:`button`,style:c({"--outline-depth":t.depth}),onClick:e=>Ye(t.item)},[m(`span`,{class:o([`pdf-outline-toggle`,{"pdf-outline-toggle--open":t.item.expanded,"pdf-outline-toggle--empty":!t.item.items.length}]),"aria-hidden":`true`,onClick:e(e=>Je(t.item),[`stop`])},null,10,Ku),m(`span`,qu,s(t.item.title),1)],12,Gu))),128)),I.value?h(``,!0):(y(),_(`div`,Ju,` 当前 PDF 没有可用目录 `))]))])):h(``,!0),m(`div`,Yu,[m(`div`,{ref_key:`container`,ref:S,class:`pdf-wrapper`,"data-viewer-scroll-container":`true`},[n[11]||=m(`div`,{class:`pdfViewer`},null,-1),T.value===`loading`?(y(),_(`div`,Xu,`正在加载 PDF...`)):T.value===`error`?(y(),_(`div`,Zu,s(E.value),1)):h(``,!0)],512)])])],2))}}),[[`__scopeId`,`data-v-d11f3150`]]);export{id as default};