/*! For license information please see worker.js.LICENSE.txt */ var e={607:(e,t,r)=>{var n=r(5547),a=r(3454),i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(a(e)+" is not a function")}},7497:(e,t,r)=>{var n=r(5713),a=r(3454),i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(a(e)+" is not a constructor")}},8835:(e,t,r)=>{var n=r(9913),a=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw new i("Can't set "+a(e)+" as a prototype")}},3689:(e,t,r)=>{var n=r(5553),a=r(5572),i=r(2030).f,o=n("unscopables"),s=Array.prototype;void 0===s[o]&&i(s,o,{configurable:!0,value:a(null)}),e.exports=function(e){s[o][e]=!0}},293:(e,t,r)=>{var n=r(4942).charAt;e.exports=function(e,t,r){return t+(r?n(e,t).length:1)}},5312:(e,t,r)=>{var n=r(5692),a=TypeError;e.exports=function(e,t){if(n(t,e))return e;throw new a("Incorrect invocation")}},4738:(e,t,r)=>{var n=r(2922),a=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(a(e)+" is not an object")}},4855:e=>{e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},9795:(e,t,r)=>{var n=r(5392);e.exports=n((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},5192:(e,t,r)=>{var n,a,i,o=r(4855),s=r(1724),c=r(5628),u=r(5547),l=r(2922),h=r(3531),f=r(1331),d=r(3454),p=r(9238),g=r(3300),v=r(7416),m=r(5692),y=r(5401),b=r(1),w=r(5553),k=r(1188),x=r(5972),S=x.enforce,A=x.get,C=c.Int8Array,O=C&&C.prototype,F=c.Uint8ClampedArray,I=F&&F.prototype,T=C&&y(C),M=O&&y(O),E=Object.prototype,P=c.TypeError,R=w("toStringTag"),N=k("TYPED_ARRAY_TAG"),D="TypedArrayConstructor",B=o&&!!b&&"Opera"!==f(c.opera),L=!1,_={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},j={BigInt64Array:8,BigUint64Array:8},U=function(e){var t=y(e);if(l(t)){var r=A(t);return r&&h(r,D)?r[D]:U(t)}},$=function(e){if(!l(e))return!1;var t=f(e);return h(_,t)||h(j,t)};for(n in _)(i=(a=c[n])&&a.prototype)?S(i)[D]=a:B=!1;for(n in j)(i=(a=c[n])&&a.prototype)&&(S(i)[D]=a);if((!B||!u(T)||T===Function.prototype)&&(T=function(){throw new P("Incorrect invocation")},B))for(n in _)c[n]&&b(c[n],T);if((!B||!M||M===E)&&(M=T.prototype,B))for(n in _)c[n]&&b(c[n].prototype,M);if(B&&y(I)!==M&&b(I,M),s&&!h(M,R))for(n in L=!0,v(M,R,{configurable:!0,get:function(){return l(this)?this[N]:void 0}}),_)c[n]&&p(c[n],N,n);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:B,TYPED_ARRAY_TAG:L&&N,aTypedArray:function(e){if($(e))return e;throw new P("Target is not a typed array")},aTypedArrayConstructor:function(e){if(u(e)&&(!b||m(T,e)))return e;throw new P(d(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,t,r,n){if(s){if(r)for(var a in _){var i=c[a];if(i&&h(i.prototype,e))try{delete i.prototype[e]}catch(r){try{i.prototype[e]=t}catch(e){}}}M[e]&&!r||g(M,e,r?t:B&&O[e]||t,n)}},exportTypedArrayStaticMethod:function(e,t,r){var n,a;if(s){if(b){if(r)for(n in _)if((a=c[n])&&h(a,e))try{delete a[e]}catch(e){}if(T[e]&&!r)return;try{return g(T,e,r?t:B&&T[e]||t)}catch(e){}}for(n in _)!(a=c[n])||a[e]&&!r||g(a,e,t)}},getTypedArrayConstructor:U,isView:function(e){if(!l(e))return!1;var t=f(e);return"DataView"===t||h(_,t)||h(j,t)},isTypedArray:$,TypedArray:T,TypedArrayPrototype:M}},1639:(e,t,r)=>{var n=r(5628),a=r(5207),i=r(1724),o=r(4855),s=r(4930),c=r(9238),u=r(7416),l=r(9711),h=r(5392),f=r(5312),d=r(2501),p=r(7450),g=r(5927),v=r(4029),m=r(9767),y=r(5401),b=r(1),w=r(3039),k=r(4997),x=r(6673),S=r(469),A=r(869),C=r(5972),O=s.PROPER,F=s.CONFIGURABLE,I="ArrayBuffer",T="DataView",M="prototype",E="Wrong index",P=C.getterFor(I),R=C.getterFor(T),N=C.set,D=n[I],B=D,L=B&&B[M],_=n[T],j=_&&_[M],U=Object.prototype,$=n.Array,X=n.RangeError,H=a(w),q=a([].reverse),z=m.pack,G=m.unpack,W=function(e){return[255&e]},V=function(e){return[255&e,e>>8&255]},K=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},Y=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},J=function(e){return z(v(e),23,4)},Z=function(e){return z(e,52,8)},Q=function(e,t,r){u(e[M],t,{configurable:!0,get:function(){return r(this)[t]}})},ee=function(e,t,r,n){var a=R(e),i=g(r),o=!!n;if(i+t>a.byteLength)throw new X(E);var s=a.bytes,c=i+a.byteOffset,u=k(s,c,c+t);return o?u:q(u)},te=function(e,t,r,n,a,i){var o=R(e),s=g(r),c=n(+a),u=!!i;if(s+t>o.byteLength)throw new X(E);for(var l=o.bytes,h=s+o.byteOffset,f=0;f>24)},setUint8:function(e,t){ae(this,e,t<<24>>24)}},{unsafe:!0})}else L=(B=function(e){f(this,L);var t=g(e);N(this,{type:I,bytes:H($(t),0),byteLength:t}),i||(this.byteLength=t,this.detached=!1)})[M],j=(_=function(e,t,r){f(this,j),f(e,L);var n=P(e),a=n.byteLength,o=d(t);if(o<0||o>a)throw new X("Wrong offset");if(o+(r=void 0===r?a-o:p(r))>a)throw new X("Wrong length");N(this,{type:T,buffer:e,byteLength:r,byteOffset:o,bytes:n.bytes}),i||(this.buffer=e,this.byteLength=r,this.byteOffset=o)})[M],i&&(Q(B,"byteLength",P),Q(_,"buffer",R),Q(_,"byteLength",R),Q(_,"byteOffset",R)),l(j,{getInt8:function(e){return ee(this,1,e)[0]<<24>>24},getUint8:function(e){return ee(this,1,e)[0]},getInt16:function(e){var t=ee(this,2,e,arguments.length>1&&arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=ee(this,2,e,arguments.length>1&&arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return Y(ee(this,4,e,arguments.length>1&&arguments[1]))},getUint32:function(e){return Y(ee(this,4,e,arguments.length>1&&arguments[1]))>>>0},getFloat32:function(e){return G(ee(this,4,e,arguments.length>1&&arguments[1]),23)},getFloat64:function(e){return G(ee(this,8,e,arguments.length>1&&arguments[1]),52)},setInt8:function(e,t){te(this,1,e,W,t)},setUint8:function(e,t){te(this,1,e,W,t)},setInt16:function(e,t){te(this,2,e,V,t,arguments.length>2&&arguments[2])},setUint16:function(e,t){te(this,2,e,V,t,arguments.length>2&&arguments[2])},setInt32:function(e,t){te(this,4,e,K,t,arguments.length>2&&arguments[2])},setUint32:function(e,t){te(this,4,e,K,t,arguments.length>2&&arguments[2])},setFloat32:function(e,t){te(this,4,e,J,t,arguments.length>2&&arguments[2])},setFloat64:function(e,t){te(this,8,e,Z,t,arguments.length>2&&arguments[2])}});A(B,I),A(_,T),e.exports={ArrayBuffer:B,DataView:_}},52:(e,t,r)=>{var n=r(4874),a=r(645),i=r(1024),o=r(4167),s=Math.min;e.exports=[].copyWithin||function(e,t){var r=n(this),c=i(r),u=a(e,c),l=a(t,c),h=arguments.length>2?arguments[2]:void 0,f=s((void 0===h?c:a(h,c))-l,c-u),d=1;for(l0;)l in r?r[u]=r[l]:o(r,u),u+=d,l+=d;return r}},3039:(e,t,r)=>{var n=r(4874),a=r(645),i=r(1024);e.exports=function(e){for(var t=n(this),r=i(t),o=arguments.length,s=a(o>1?arguments[1]:void 0,r),c=o>2?arguments[2]:void 0,u=void 0===c?r:a(c,r);u>s;)t[s++]=e;return t}},755:(e,t,r)=>{var n=r(6682).forEach,a=r(5668)("forEach");e.exports=a?[].forEach:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}},9353:(e,t,r)=>{var n=r(1024);e.exports=function(e,t,r){for(var a=0,i=arguments.length>2?r:n(t),o=new e(i);i>a;)o[a]=t[a++];return o}},1383:(e,t,r)=>{var n=r(6913),a=r(5304),i=r(4874),o=r(7477),s=r(5525),c=r(5713),u=r(1024),l=r(8638),h=r(9392),f=r(9755),d=Array;e.exports=function(e){var t=i(e),r=c(this),p=arguments.length,g=p>1?arguments[1]:void 0,v=void 0!==g;v&&(g=n(g,p>2?arguments[2]:void 0));var m,y,b,w,k,x,S=f(t),A=0;if(!S||this===d&&s(S))for(m=u(t),y=r?new this(m):d(m);m>A;A++)x=v?g(t[A],A):t[A],l(y,A,x);else for(k=(w=h(t,S)).next,y=r?new this:[];!(b=a(k,w)).done;A++)x=v?o(w,g,[b.value,A],!0):b.value,l(y,A,x);return y.length=A,y}},3458:(e,t,r)=>{var n=r(3238),a=r(645),i=r(1024),o=function(e){return function(t,r,o){var s,c=n(t),u=i(c),l=a(o,u);if(e&&r!=r){for(;u>l;)if((s=c[l++])!=s)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===r)return e||l||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},8648:(e,t,r)=>{var n=r(6913),a=r(3415),i=r(4874),o=r(1024),s=function(e){var t=1===e;return function(r,s,c){for(var u,l=i(r),h=a(l),f=o(h),d=n(s,c);f-- >0;)if(d(u=h[f],f,l))switch(e){case 0:return u;case 1:return f}return t?-1:void 0}};e.exports={findLast:s(0),findLastIndex:s(1)}},6682:(e,t,r)=>{var n=r(6913),a=r(5207),i=r(3415),o=r(4874),s=r(1024),c=r(8730),u=a([].push),l=function(e){var t=1===e,r=2===e,a=3===e,l=4===e,h=6===e,f=7===e,d=5===e||h;return function(p,g,v,m){for(var y,b,w=o(p),k=i(w),x=s(k),S=n(g,v),A=0,C=m||c,O=t?C(p,x):r||f?C(p,0):void 0;x>A;A++)if((d||A in k)&&(b=S(y=k[A],A,w),e))if(t)O[A]=b;else if(b)switch(e){case 3:return!0;case 5:return y;case 6:return A;case 2:u(O,y)}else switch(e){case 4:return!1;case 7:u(O,y)}return h?-1:a||l?l:O}};e.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}},798:(e,t,r)=>{var n=r(9500),a=r(3238),i=r(2501),o=r(1024),s=r(5668),c=Math.min,u=[].lastIndexOf,l=!!u&&1/[1].lastIndexOf(1,-0)<0,h=s("lastIndexOf"),f=l||!h;e.exports=f?function(e){if(l)return n(u,this,arguments)||0;var t=a(this),r=o(t),s=r-1;for(arguments.length>1&&(s=c(s,i(arguments[1]))),s<0&&(s=r+s);s>=0;s--)if(s in t&&t[s]===e)return s||0;return-1}:u},5728:(e,t,r)=>{var n=r(5392),a=r(5553),i=r(6262),o=a("species");e.exports=function(e){return i>=51||!n((function(){var t=[];return(t.constructor={})[o]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},5668:(e,t,r)=>{var n=r(5392);e.exports=function(e,t){var r=[][e];return!!r&&n((function(){r.call(null,t||function(){return 1},1)}))}},2253:(e,t,r)=>{var n=r(607),a=r(4874),i=r(3415),o=r(1024),s=TypeError,c=function(e){return function(t,r,c,u){var l=a(t),h=i(l),f=o(l);n(r);var d=e?f-1:0,p=e?-1:1;if(c<2)for(;;){if(d in h){u=h[d],d+=p;break}if(d+=p,e?d<0:f<=d)throw new s("Reduce of empty array with no initial value")}for(;e?d>=0:f>d;d+=p)d in h&&(u=r(u,h[d],d,l));return u}};e.exports={left:c(!1),right:c(!0)}},5303:(e,t,r)=>{var n=r(1724),a=r(6308),i=TypeError,o=Object.getOwnPropertyDescriptor,s=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=s?function(e,t){if(a(e)&&!o(e,"length").writable)throw new i("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},4997:(e,t,r)=>{var n=r(5207);e.exports=n([].slice)},9158:(e,t,r)=>{var n=r(4997),a=Math.floor,i=function(e,t){var r=e.length;if(r<8)for(var o,s,c=1;c0;)e[s]=e[--s];s!==c++&&(e[s]=o)}else for(var u=a(r/2),l=i(n(e,0,u),t),h=i(n(e,u),t),f=l.length,d=h.length,p=0,g=0;p{var n=r(6308),a=r(5713),i=r(2922),o=r(5553)("species"),s=Array;e.exports=function(e){var t;return n(e)&&(t=e.constructor,(a(t)&&(t===s||n(t.prototype))||i(t)&&null===(t=t[o]))&&(t=void 0)),void 0===t?s:t}},8730:(e,t,r)=>{var n=r(2074);e.exports=function(e,t){return new(n(e))(0===t?0:t)}},8067:(e,t,r)=>{var n=r(1024);e.exports=function(e,t){for(var r=n(e),a=new t(r),i=0;i{var n=r(1024),a=r(2501),i=RangeError;e.exports=function(e,t,r,o){var s=n(e),c=a(r),u=c<0?s+c:c;if(u>=s||u<0)throw new i("Incorrect index");for(var l=new t(s),h=0;h{var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=t+"+/",n=t+"-_",a=function(e){for(var t={},r=0;r<64;r++)t[e.charAt(r)]=r;return t};e.exports={i2c:r,c2i:a(r),i2cUrl:n,c2iUrl:a(n)}},7477:(e,t,r)=>{var n=r(4738),a=r(8170);e.exports=function(e,t,r,i){try{return i?t(n(r)[0],r[1]):t(r)}catch(t){a(e,"throw",t)}}},7112:(e,t,r)=>{var n=r(5553)("iterator"),a=!1;try{var i=0,o={next:function(){return{done:!!i++}},return:function(){a=!0}};o[n]=function(){return this},Array.from(o,(function(){throw 2}))}catch(e){}e.exports=function(e,t){try{if(!t&&!a)return!1}catch(e){return!1}var r=!1;try{var i={};i[n]=function(){return{next:function(){return{done:r=!0}}}},e(i)}catch(e){}return r}},5067:(e,t,r)=>{var n=r(5207),a=n({}.toString),i=n("".slice);e.exports=function(e){return i(a(e),8,-1)}},1331:(e,t,r)=>{var n=r(7804),a=r(5547),i=r(5067),o=r(5553)("toStringTag"),s=Object,c="Arguments"===i(function(){return arguments}());e.exports=n?i:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=s(e),o))?r:c?i(t):"Object"===(n=i(t))&&a(t.callee)?"Arguments":n}},1430:(e,t,r)=>{var n=r(5572),a=r(7416),i=r(9711),o=r(6913),s=r(5312),c=r(7930),u=r(1783),l=r(5341),h=r(9925),f=r(5997),d=r(1724),p=r(6073).fastKey,g=r(5972),v=g.set,m=g.getterFor;e.exports={getConstructor:function(e,t,r,l){var h=e((function(e,a){s(e,f),v(e,{type:t,index:n(null),first:void 0,last:void 0,size:0}),d||(e.size=0),c(a)||u(a,e[l],{that:e,AS_ENTRIES:r})})),f=h.prototype,g=m(t),y=function(e,t,r){var n,a,i=g(e),o=b(e,t);return o?o.value=r:(i.last=o={index:a=p(t,!0),key:t,value:r,previous:n=i.last,next:void 0,removed:!1},i.first||(i.first=o),n&&(n.next=o),d?i.size++:e.size++,"F"!==a&&(i.index[a]=o)),e},b=function(e,t){var r,n=g(e),a=p(t);if("F"!==a)return n.index[a];for(r=n.first;r;r=r.next)if(r.key===t)return r};return i(f,{clear:function(){for(var e=g(this),t=e.first;t;)t.removed=!0,t.previous&&(t.previous=t.previous.next=void 0),t=t.next;e.first=e.last=void 0,e.index=n(null),d?e.size=0:this.size=0},delete:function(e){var t=this,r=g(t),n=b(t,e);if(n){var a=n.next,i=n.previous;delete r.index[n.index],n.removed=!0,i&&(i.next=a),a&&(a.previous=i),r.first===n&&(r.first=a),r.last===n&&(r.last=i),d?r.size--:t.size--}return!!n},forEach:function(e){for(var t,r=g(this),n=o(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:r.first;)for(n(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!b(this,e)}}),i(f,r?{get:function(e){var t=b(this,e);return t&&t.value},set:function(e,t){return y(this,0===e?0:e,t)}}:{add:function(e){return y(this,e=0===e?0:e,e)}}),d&&a(f,"size",{configurable:!0,get:function(){return g(this).size}}),h},setStrong:function(e,t,r){var n=t+" Iterator",a=m(t),i=m(n);l(e,t,(function(e,t){v(this,{type:n,target:e,state:a(e),kind:t,last:void 0})}),(function(){for(var e=i(this),t=e.kind,r=e.last;r&&r.removed;)r=r.previous;return e.target&&(e.last=r=r?r.next:e.state.first)?h("keys"===t?r.key:"values"===t?r.value:[r.key,r.value],!1):(e.target=void 0,h(void 0,!0))}),r?"entries":"values",!r,!0),f(t)}}},3287:(e,t,r)=>{var n=r(5207),a=r(9711),i=r(6073).getWeakData,o=r(5312),s=r(4738),c=r(7930),u=r(2922),l=r(1783),h=r(6682),f=r(3531),d=r(5972),p=d.set,g=d.getterFor,v=h.find,m=h.findIndex,y=n([].splice),b=0,w=function(e){return e.frozen||(e.frozen=new k)},k=function(){this.entries=[]},x=function(e,t){return v(e.entries,(function(e){return e[0]===t}))};k.prototype={get:function(e){var t=x(this,e);if(t)return t[1]},has:function(e){return!!x(this,e)},set:function(e,t){var r=x(this,e);r?r[1]=t:this.entries.push([e,t])},delete:function(e){var t=m(this.entries,(function(t){return t[0]===e}));return~t&&y(this.entries,t,1),!!~t}},e.exports={getConstructor:function(e,t,r,n){var h=e((function(e,a){o(e,d),p(e,{type:t,id:b++,frozen:void 0}),c(a)||l(a,e[n],{that:e,AS_ENTRIES:r})})),d=h.prototype,v=g(t),m=function(e,t,r){var n=v(e),a=i(s(t),!0);return!0===a?w(n).set(t,r):a[n.id]=r,e};return a(d,{delete:function(e){var t=v(this);if(!u(e))return!1;var r=i(e);return!0===r?w(t).delete(e):r&&f(r,t.id)&&delete r[t.id]},has:function(e){var t=v(this);if(!u(e))return!1;var r=i(e);return!0===r?w(t).has(e):r&&f(r,t.id)}}),a(d,r?{get:function(e){var t=v(this);if(u(e)){var r=i(e);return!0===r?w(t).get(e):r?r[t.id]:void 0}},set:function(e,t){return m(this,e,t)}}:{add:function(e){return m(this,e,!0)}}),h}}},4866:(e,t,r)=>{var n=r(3937),a=r(5628),i=r(5207),o=r(5416),s=r(3300),c=r(6073),u=r(1783),l=r(5312),h=r(5547),f=r(7930),d=r(2922),p=r(5392),g=r(7112),v=r(869),m=r(6673);e.exports=function(e,t,r){var y=-1!==e.indexOf("Map"),b=-1!==e.indexOf("Weak"),w=y?"set":"add",k=a[e],x=k&&k.prototype,S=k,A={},C=function(e){var t=i(x[e]);s(x,e,"add"===e?function(e){return t(this,0===e?0:e),this}:"delete"===e?function(e){return!(b&&!d(e))&&t(this,0===e?0:e)}:"get"===e?function(e){return b&&!d(e)?void 0:t(this,0===e?0:e)}:"has"===e?function(e){return!(b&&!d(e))&&t(this,0===e?0:e)}:function(e,r){return t(this,0===e?0:e,r),this})};if(o(e,!h(k)||!(b||x.forEach&&!p((function(){(new k).entries().next()})))))S=r.getConstructor(t,e,y,w),c.enable();else if(o(e,!0)){var O=new S,F=O[w](b?{}:-0,1)!==O,I=p((function(){O.has(1)})),T=g((function(e){new k(e)})),M=!b&&p((function(){for(var e=new k,t=5;t--;)e[w](t,t);return!e.has(-0)}));T||((S=t((function(e,t){l(e,x);var r=m(new k,e,S);return f(t)||u(t,r[w],{that:r,AS_ENTRIES:y}),r}))).prototype=x,x.constructor=S),(I||M)&&(C("delete"),C("has"),y&&C("get")),(M||F)&&C(w),b&&x.clear&&delete x.clear}return A[e]=S,n({global:!0,constructor:!0,forced:S!==k},A),v(S,e),b||r.setStrong(S,e,y),S}},469:(e,t,r)=>{var n=r(3531),a=r(66),i=r(9070),o=r(2030);e.exports=function(e,t,r){for(var s=a(t),c=o.f,u=i.f,l=0;l{var n=r(5553)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[n]=!1,"/./"[e](t)}catch(e){}}return!1}},7472:(e,t,r)=>{var n=r(5392);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},9925:e=>{e.exports=function(e,t){return{value:e,done:t}}},9238:(e,t,r)=>{var n=r(1724),a=r(2030),i=r(7999);e.exports=n?function(e,t,r){return a.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},7999:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},8638:(e,t,r)=>{var n=r(3561),a=r(2030),i=r(7999);e.exports=function(e,t,r){var o=n(t);o in e?a.f(e,o,i(0,r)):e[o]=r}},7245:(e,t,r)=>{var n=r(4738),a=r(3085),i=TypeError;e.exports=function(e){if(n(this),"string"===e||"default"===e)e="string";else if("number"!==e)throw new i("Incorrect hint");return a(this,e)}},7416:(e,t,r)=>{var n=r(6543),a=r(2030);e.exports=function(e,t,r){return r.get&&n(r.get,t,{getter:!0}),r.set&&n(r.set,t,{setter:!0}),a.f(e,t,r)}},3300:(e,t,r)=>{var n=r(5547),a=r(2030),i=r(6543),o=r(4143);e.exports=function(e,t,r,s){s||(s={});var c=s.enumerable,u=void 0!==s.name?s.name:t;if(n(r)&&i(r,u,s),s.global)c?e[t]=r:o(t,r);else{try{s.unsafe?e[t]&&(c=!0):delete e[t]}catch(e){}c?e[t]=r:a.f(e,t,{value:r,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},9711:(e,t,r)=>{var n=r(3300);e.exports=function(e,t,r){for(var a in t)n(e,a,t[a],r);return e}},4143:(e,t,r)=>{var n=r(5628),a=Object.defineProperty;e.exports=function(e,t){try{a(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},4167:(e,t,r)=>{var n=r(3454),a=TypeError;e.exports=function(e,t){if(!delete e[t])throw new a("Cannot delete property "+n(t)+" of "+n(e))}},1724:(e,t,r)=>{var n=r(5392);e.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},7694:(e,t,r)=>{var n=r(5628),a=r(2922),i=n.document,o=a(i)&&a(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},6665:e=>{var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}},580: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}}},1151:e=>{e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},9128:(e,t,r)=>{var n=r(7694)("span").classList,a=n&&n.constructor&&n.constructor.prototype;e.exports=a===Object.prototype?void 0:a},6890:(e,t,r)=>{var n=r(8270).match(/firefox\/(\d+)/i);e.exports=!!n&&+n[1]},5009:(e,t,r)=>{var n=r(4378),a=r(6638);e.exports=!n&&!a&&"object"==typeof window&&"object"==typeof document},4378:e=>{e.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},3326:(e,t,r)=>{var n=r(8270);e.exports=/MSIE|Trident/.test(n)},2570:(e,t,r)=>{var n=r(8270);e.exports=/ipad|iphone|ipod/i.test(n)&&"undefined"!=typeof Pebble},7056:(e,t,r)=>{var n=r(8270);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},6638:(e,t,r)=>{var n=r(5628),a=r(5067);e.exports="process"===a(n.process)},7264:(e,t,r)=>{var n=r(8270);e.exports=/web0s(?!.*chrome)/i.test(n)},8270:e=>{e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},6262:(e,t,r)=>{var n,a,i=r(5628),o=r(8270),s=i.process,c=i.Deno,u=s&&s.versions||c&&c.version,l=u&&u.v8;l&&(a=(n=l.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!a&&o&&(!(n=o.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=o.match(/Chrome\/(\d+)/))&&(a=+n[1]),e.exports=a},2122:(e,t,r)=>{var n=r(8270).match(/AppleWebKit\/(\d+)\./);e.exports=!!n&&+n[1]},1989:e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},3580:(e,t,r)=>{var n=r(5207),a=Error,i=n("".replace),o=String(new a("zxcasd").stack),s=/\n\s*at [^:]*:[^\n]*/,c=s.test(o);e.exports=function(e,t){if(c&&"string"==typeof e&&!a.prepareStackTrace)for(;t--;)e=i(e,s,"");return e}},9518:(e,t,r)=>{var n=r(9238),a=r(3580),i=r(2031),o=Error.captureStackTrace;e.exports=function(e,t,r,s){i&&(o?o(e,t):n(e,"stack",a(r,s)))}},2031:(e,t,r)=>{var n=r(5392),a=r(7999);e.exports=!n((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",a(1,7)),7!==e.stack)}))},4602:(e,t,r)=>{var n=r(1724),a=r(5392),i=r(4738),o=r(7797),s=Error.prototype.toString,c=a((function(){if(n){var e=Object.create(Object.defineProperty({},"name",{get:function(){return this===e}}));if("true"!==s.call(e))return!0}return"2: 1"!==s.call({message:1,name:2})||"Error"!==s.call({})}));e.exports=c?function(){var e=i(this),t=o(e.name,"Error"),r=o(e.message);return t?r?t+": "+r:t:r}:s},3937:(e,t,r)=>{var n=r(5628),a=r(9070).f,i=r(9238),o=r(3300),s=r(4143),c=r(469),u=r(5416);e.exports=function(e,t){var r,l,h,f,d,p=e.target,g=e.global,v=e.stat;if(r=g?n:v?n[p]||s(p,{}):(n[p]||{}).prototype)for(l in t){if(f=t[l],h=e.dontCallGetSet?(d=a(r,l))&&d.value:r[l],!u(g?l:p+(v?".":"#")+l,e.forced)&&void 0!==h){if(typeof f==typeof h)continue;c(f,h)}(e.sham||h&&h.sham)&&i(f,"sham",!0),o(r,l,f,e)}}},5392:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},739:(e,t,r)=>{r(6433);var n=r(8209),a=r(3300),i=r(4493),o=r(5392),s=r(5553),c=r(9238),u=s("species"),l=RegExp.prototype;e.exports=function(e,t,r,h){var f=s(e),d=!o((function(){var t={};return t[f]=function(){return 7},7!==""[e](t)})),p=d&&!o((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[u]=function(){return r},r.flags="",r[f]=/./[f]),r.exec=function(){return t=!0,null},r[f](""),!t}));if(!d||!p||r){var g=n(/./[f]),v=t(f,""[e],(function(e,t,r,a,o){var s=n(e),c=t.exec;return c===i||c===l.exec?d&&!o?{done:!0,value:g(t,r,a)}:{done:!0,value:s(r,t,a)}:{done:!1}}));a(String.prototype,e,v[0]),a(l,f,v[1])}h&&c(l[f],"sham",!0)}},8497:(e,t,r)=>{var n=r(6308),a=r(1024),i=r(6665),o=r(6913),s=function(e,t,r,c,u,l,h,f){for(var d,p,g=u,v=0,m=!!h&&o(h,f);v0&&n(d)?(p=a(d),g=s(e,t,d,p,g,l-1)-1):(i(g+1),e[g]=d),g++),v++;return g};e.exports=s},4958:(e,t,r)=>{var n=r(5392);e.exports=!n((function(){return Object.isExtensible(Object.preventExtensions({}))}))},9500:(e,t,r)=>{var n=r(9232),a=Function.prototype,i=a.apply,o=a.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?o.bind(i):function(){return o.apply(i,arguments)})},6913:(e,t,r)=>{var n=r(8209),a=r(607),i=r(9232),o=n(n.bind);e.exports=function(e,t){return a(e),void 0===t?e:i?o(e,t):function(){return e.apply(t,arguments)}}},9232:(e,t,r)=>{var n=r(5392);e.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},1475:(e,t,r)=>{var n=r(5207),a=r(607),i=r(2922),o=r(3531),s=r(4997),c=r(9232),u=Function,l=n([].concat),h=n([].join),f={};e.exports=c?u.bind:function(e){var t=a(this),r=t.prototype,n=s(arguments,1),c=function(){var r=l(n,s(arguments));return this instanceof c?function(e,t,r){if(!o(f,t)){for(var n=[],a=0;a{var n=r(9232),a=Function.prototype.call;e.exports=n?a.bind(a):function(){return a.apply(a,arguments)}},4930:(e,t,r)=>{var n=r(1724),a=r(3531),i=Function.prototype,o=n&&Object.getOwnPropertyDescriptor,s=a(i,"name"),c=s&&"something"===function(){}.name,u=s&&(!n||n&&o(i,"name").configurable);e.exports={EXISTS:s,PROPER:c,CONFIGURABLE:u}},5198:(e,t,r)=>{var n=r(5207),a=r(607);e.exports=function(e,t,r){try{return n(a(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}}},8209:(e,t,r)=>{var n=r(5067),a=r(5207);e.exports=function(e){if("Function"===n(e))return a(e)}},5207:(e,t,r)=>{var n=r(9232),a=Function.prototype,i=a.call,o=n&&a.bind.bind(i,i);e.exports=n?o:function(e){return function(){return i.apply(e,arguments)}}},6341:(e,t,r)=>{var n=r(5628),a=r(5547);e.exports=function(e,t){return arguments.length<2?(r=n[e],a(r)?r:void 0):n[e]&&n[e][t];var r}},9755:(e,t,r)=>{var n=r(1331),a=r(2698),i=r(7930),o=r(1463),s=r(5553)("iterator");e.exports=function(e){if(!i(e))return a(e,s)||a(e,"@@iterator")||o[n(e)]}},9392:(e,t,r)=>{var n=r(5304),a=r(607),i=r(4738),o=r(3454),s=r(9755),c=TypeError;e.exports=function(e,t){var r=arguments.length<2?s(e):t;if(a(r))return i(n(r,e));throw new c(o(e)+" is not iterable")}},9142:(e,t,r)=>{var n=r(5207),a=r(6308),i=r(5547),o=r(5067),s=r(9338),c=n([].push);e.exports=function(e){if(i(e))return e;if(a(e)){for(var t=e.length,r=[],n=0;n{var n=r(607),a=r(7930);e.exports=function(e,t){var r=e[t];return a(r)?void 0:n(r)}},5095:(e,t,r)=>{var n=r(5207),a=r(4874),i=Math.floor,o=n("".charAt),s=n("".replace),c=n("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,r,n,h,f){var d=r+e.length,p=n.length,g=l;return void 0!==h&&(h=a(h),g=u),s(f,g,(function(a,s){var u;switch(o(s,0)){case"$":return"$";case"&":return e;case"`":return c(t,0,r);case"'":return c(t,d);case"<":u=h[c(s,1,-1)];break;default:var l=+s;if(0===l)return a;if(l>p){var f=i(l/10);return 0===f?a:f<=p?void 0===n[f-1]?o(s,1):n[f-1]+o(s,1):a}u=n[l-1]}return void 0===u?"":u}))}},5628:function(e,t,r){var n=function(e){return e&&e.Math===Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},3531:(e,t,r)=>{var n=r(5207),a=r(4874),i=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(a(e),t)}},6710:e=>{e.exports={}},9896:e=>{e.exports=function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(e){}}},5913:(e,t,r)=>{var n=r(6341);e.exports=n("document","documentElement")},7199:(e,t,r)=>{var n=r(1724),a=r(5392),i=r(7694);e.exports=!n&&!a((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},9767:e=>{var t=Array,r=Math.abs,n=Math.pow,a=Math.floor,i=Math.log,o=Math.LN2;e.exports={pack:function(e,s,c){var u,l,h,f=t(c),d=8*c-s-1,p=(1<>1,v=23===s?n(2,-24)-n(2,-77):0,m=e<0||0===e&&1/e<0?1:0,y=0;for((e=r(e))!=e||e===1/0?(l=e!=e?1:0,u=p):(u=a(i(e)/o),e*(h=n(2,-u))<1&&(u--,h*=2),(e+=u+g>=1?v/h:v*n(2,1-g))*h>=2&&(u++,h/=2),u+g>=p?(l=0,u=p):u+g>=1?(l=(e*h-1)*n(2,s),u+=g):(l=e*n(2,g-1)*n(2,s),u=0));s>=8;)f[y++]=255&l,l/=256,s-=8;for(u=u<0;)f[y++]=255&u,u/=256,d-=8;return f[--y]|=128*m,f},unpack:function(e,t){var r,a=e.length,i=8*a-t-1,o=(1<>1,c=i-7,u=a-1,l=e[u--],h=127&l;for(l>>=7;c>0;)h=256*h+e[u--],c-=8;for(r=h&(1<<-c)-1,h>>=-c,c+=t;c>0;)r=256*r+e[u--],c-=8;if(0===h)h=1-s;else{if(h===o)return r?NaN:l?-1/0:1/0;r+=n(2,t),h-=s}return(l?-1:1)*r*n(2,h-t)}}},3415:(e,t,r)=>{var n=r(5207),a=r(5392),i=r(5067),o=Object,s=n("".split);e.exports=a((function(){return!o("z").propertyIsEnumerable(0)}))?function(e){return"String"===i(e)?s(e,""):o(e)}:o},6673:(e,t,r)=>{var n=r(5547),a=r(2922),i=r(1);e.exports=function(e,t,r){var o,s;return i&&n(o=t.constructor)&&o!==r&&a(s=o.prototype)&&s!==r.prototype&&i(e,s),e}},8833:(e,t,r)=>{var n=r(5207),a=r(5547),i=r(8866),o=n(Function.toString);a(i.inspectSource)||(i.inspectSource=function(e){return o(e)}),e.exports=i.inspectSource},1068:(e,t,r)=>{var n=r(2922),a=r(9238);e.exports=function(e,t){n(t)&&"cause"in t&&a(e,"cause",t.cause)}},6073:(e,t,r)=>{var n=r(3937),a=r(5207),i=r(6710),o=r(2922),s=r(3531),c=r(2030).f,u=r(3817),l=r(2932),h=r(2178),f=r(1188),d=r(4958),p=!1,g=f("meta"),v=0,m=function(e){c(e,g,{value:{objectID:"O"+v++,weakData:{}}})},y=e.exports={enable:function(){y.enable=function(){},p=!0;var e=u.f,t=a([].splice),r={};r[g]=1,e(r).length&&(u.f=function(r){for(var n=e(r),a=0,i=n.length;a{var n,a,i,o=r(1337),s=r(5628),c=r(2922),u=r(9238),l=r(3531),h=r(8866),f=r(2992),d=r(6710),p="Object already initialized",g=s.TypeError,v=s.WeakMap;if(o||h.state){var m=h.state||(h.state=new v);m.get=m.get,m.has=m.has,m.set=m.set,n=function(e,t){if(m.has(e))throw new g(p);return t.facade=e,m.set(e,t),t},a=function(e){return m.get(e)||{}},i=function(e){return m.has(e)}}else{var y=f("state");d[y]=!0,n=function(e,t){if(l(e,y))throw new g(p);return t.facade=e,u(e,y,t),t},a=function(e){return l(e,y)?e[y]:{}},i=function(e){return l(e,y)}}e.exports={set:n,get:a,has:i,enforce:function(e){return i(e)?a(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!c(t)||(r=a(t)).type!==e)throw new g("Incompatible receiver, "+e+" required");return r}}}},5525:(e,t,r)=>{var n=r(5553),a=r(1463),i=n("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(a.Array===e||o[i]===e)}},6308:(e,t,r)=>{var n=r(5067);e.exports=Array.isArray||function(e){return"Array"===n(e)}},3669:(e,t,r)=>{var n=r(1331);e.exports=function(e){var t=n(e);return"BigInt64Array"===t||"BigUint64Array"===t}},5547:e=>{var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},5713:(e,t,r)=>{var n=r(5207),a=r(5392),i=r(5547),o=r(1331),s=r(6341),c=r(8833),u=function(){},l=[],h=s("Reflect","construct"),f=/^\s*(?:class|function)\b/,d=n(f.exec),p=!f.test(u),g=function(e){if(!i(e))return!1;try{return h(u,l,e),!0}catch(e){return!1}},v=function(e){if(!i(e))return!1;switch(o(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!d(f,c(e))}catch(e){return!0}};v.sham=!0,e.exports=!h||a((function(){var e;return g(g.call)||!g(Object)||!g((function(){e=!0}))||e}))?v:g},7317:(e,t,r)=>{var n=r(3531);e.exports=function(e){return void 0!==e&&(n(e,"value")||n(e,"writable"))}},5416:(e,t,r)=>{var n=r(5392),a=r(5547),i=/#|\.prototype\./,o=function(e,t){var r=c[s(e)];return r===l||r!==u&&(a(t)?n(t):!!t)},s=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},c=o.data={},u=o.NATIVE="N",l=o.POLYFILL="P";e.exports=o},3847:(e,t,r)=>{var n=r(2922),a=Math.floor;e.exports=Number.isInteger||function(e){return!n(e)&&isFinite(e)&&a(e)===e}},7930:e=>{e.exports=function(e){return null==e}},2922:(e,t,r)=>{var n=r(5547);e.exports=function(e){return"object"==typeof e?null!==e:n(e)}},9913:(e,t,r)=>{var n=r(2922);e.exports=function(e){return n(e)||null===e}},5988:e=>{e.exports=!1},5380:(e,t,r)=>{var n=r(2922),a=r(5067),i=r(5553)("match");e.exports=function(e){var t;return n(e)&&(void 0!==(t=e[i])?!!t:"RegExp"===a(e))}},6610:(e,t,r)=>{var n=r(6341),a=r(5547),i=r(5692),o=r(8675),s=Object;e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return a(t)&&i(t.prototype,s(e))}},1783:(e,t,r)=>{var n=r(6913),a=r(5304),i=r(4738),o=r(3454),s=r(5525),c=r(1024),u=r(5692),l=r(9392),h=r(9755),f=r(8170),d=TypeError,p=function(e,t){this.stopped=e,this.result=t},g=p.prototype;e.exports=function(e,t,r){var v,m,y,b,w,k,x,S=r&&r.that,A=!(!r||!r.AS_ENTRIES),C=!(!r||!r.IS_RECORD),O=!(!r||!r.IS_ITERATOR),F=!(!r||!r.INTERRUPTED),I=n(t,S),T=function(e){return v&&f(v,"normal",e),new p(!0,e)},M=function(e){return A?(i(e),F?I(e[0],e[1],T):I(e[0],e[1])):F?I(e,T):I(e)};if(C)v=e.iterator;else if(O)v=e;else{if(!(m=h(e)))throw new d(o(e)+" is not iterable");if(s(m)){for(y=0,b=c(e);b>y;y++)if((w=M(e[y]))&&u(g,w))return w;return new p(!1)}v=l(e,m)}for(k=C?e.next:v.next;!(x=a(k,v)).done;){try{w=M(x.value)}catch(e){f(v,"throw",e)}if("object"==typeof w&&w&&u(g,w))return w}return new p(!1)}},8170:(e,t,r)=>{var n=r(5304),a=r(4738),i=r(2698);e.exports=function(e,t,r){var o,s;a(e);try{if(!(o=i(e,"return"))){if("throw"===t)throw r;return r}o=n(o,e)}catch(e){s=!0,o=e}if("throw"===t)throw r;if(s)throw o;return a(o),r}},4943:(e,t,r)=>{var n=r(9479).IteratorPrototype,a=r(5572),i=r(7999),o=r(869),s=r(1463),c=function(){return this};e.exports=function(e,t,r,u){var l=t+" Iterator";return e.prototype=a(n,{next:i(+!u,r)}),o(e,l,!1,!0),s[l]=c,e}},5341:(e,t,r)=>{var n=r(3937),a=r(5304),i=r(5988),o=r(4930),s=r(5547),c=r(4943),u=r(5401),l=r(1),h=r(869),f=r(9238),d=r(3300),p=r(5553),g=r(1463),v=r(9479),m=o.PROPER,y=o.CONFIGURABLE,b=v.IteratorPrototype,w=v.BUGGY_SAFARI_ITERATORS,k=p("iterator"),x="keys",S="values",A="entries",C=function(){return this};e.exports=function(e,t,r,o,p,v,O){c(r,t,o);var F,I,T,M=function(e){if(e===p&&D)return D;if(!w&&e&&e in R)return R[e];switch(e){case x:case S:case A:return function(){return new r(this,e)}}return function(){return new r(this)}},E=t+" Iterator",P=!1,R=e.prototype,N=R[k]||R["@@iterator"]||p&&R[p],D=!w&&N||M(p),B="Array"===t&&R.entries||N;if(B&&(F=u(B.call(new e)))!==Object.prototype&&F.next&&(i||u(F)===b||(l?l(F,b):s(F[k])||d(F,k,C)),h(F,E,!0,!0),i&&(g[E]=C)),m&&p===S&&N&&N.name!==S&&(!i&&y?f(R,"name",S):(P=!0,D=function(){return a(N,this)})),p)if(I={values:M(S),keys:v?D:M(x),entries:M(A)},O)for(T in I)(w||P||!(T in R))&&d(R,T,I[T]);else n({target:t,proto:!0,forced:w||P},I);return i&&!O||R[k]===D||d(R,k,D,{name:p}),g[t]=D,I}},9479:(e,t,r)=>{var n,a,i,o=r(5392),s=r(5547),c=r(2922),u=r(5572),l=r(5401),h=r(3300),f=r(5553),d=r(5988),p=f("iterator"),g=!1;[].keys&&("next"in(i=[].keys())?(a=l(l(i)))!==Object.prototype&&(n=a):g=!0),!c(n)||o((function(){var e={};return n[p].call(e)!==e}))?n={}:d&&(n=u(n)),s(n[p])||h(n,p,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:g}},1463:e=>{e.exports={}},1024:(e,t,r)=>{var n=r(7450);e.exports=function(e){return n(e.length)}},6543:(e,t,r)=>{var n=r(5207),a=r(5392),i=r(5547),o=r(3531),s=r(1724),c=r(4930).CONFIGURABLE,u=r(8833),l=r(5972),h=l.enforce,f=l.get,d=String,p=Object.defineProperty,g=n("".slice),v=n("".replace),m=n([].join),y=s&&!a((function(){return 8!==p((function(){}),"length",{value:8}).length})),b=String(String).split("String"),w=e.exports=function(e,t,r){"Symbol("===g(d(t),0,7)&&(t="["+v(d(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!o(e,"name")||c&&e.name!==t)&&(s?p(e,"name",{value:t,configurable:!0}):e.name=t),y&&r&&o(r,"arity")&&e.length!==r.arity&&p(e,"length",{value:r.arity});try{r&&o(r,"constructor")&&r.constructor?s&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=h(e);return o(n,"source")||(n.source=m(b,"string"==typeof t?t:"")),e};Function.prototype.toString=w((function(){return i(this)&&f(this).source||u(this)}),"toString")},8849:(e,t,r)=>{var n=r(594),a=Math.abs,i=2220446049250313e-31,o=1/i;e.exports=function(e,t,r,s){var c=+e,u=a(c),l=n(c);if(ur||f!=f?l*(1/0):l*f}},4029:(e,t,r)=>{var n=r(8849);e.exports=Math.fround||function(e){return n(e,1.1920928955078125e-7,34028234663852886e22,11754943508222875e-54)}},594:e=>{e.exports=Math.sign||function(e){var t=+e;return 0===t||t!=t?t:t<0?-1:1}},5779:e=>{var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?r:t)(n)}},2012:(e,t,r)=>{var n,a,i,o,s,c=r(5628),u=r(7286),l=r(6913),h=r(5902).set,f=r(4947),d=r(7056),p=r(2570),g=r(7264),v=r(6638),m=c.MutationObserver||c.WebKitMutationObserver,y=c.document,b=c.process,w=c.Promise,k=u("queueMicrotask");if(!k){var x=new f,S=function(){var e,t;for(v&&(e=b.domain)&&e.exit();t=x.get();)try{t()}catch(e){throw x.head&&n(),e}e&&e.enter()};d||v||g||!m||!y?!p&&w&&w.resolve?((o=w.resolve(void 0)).constructor=w,s=l(o.then,o),n=function(){s(S)}):v?n=function(){b.nextTick(S)}:(h=l(h,c),n=function(){h(S)}):(a=!0,i=y.createTextNode(""),new m(S).observe(i,{characterData:!0}),n=function(){i.data=a=!a}),k=function(e){x.head||n(),x.add(e)}}e.exports=k},1145:(e,t,r)=>{var n=r(607),a=TypeError,i=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw new a("Bad Promise constructor");t=e,r=n})),this.resolve=n(t),this.reject=n(r)};e.exports.f=function(e){return new i(e)}},7797:(e,t,r)=>{var n=r(9338);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:n(e)}},5066:(e,t,r)=>{var n=r(5380),a=TypeError;e.exports=function(e){if(n(e))throw new a("The method doesn't accept regular expressions");return e}},9684:(e,t,r)=>{var n=r(5628),a=r(5392),i=r(5207),o=r(9338),s=r(4922).trim,c=r(2979),u=i("".charAt),l=n.parseFloat,h=n.Symbol,f=h&&h.iterator,d=1/l(c+"-0")!=-1/0||f&&!a((function(){l(Object(f))}));e.exports=d?function(e){var t=s(o(e)),r=l(t);return 0===r&&"-"===u(t,0)?-0:r}:l},4366:(e,t,r)=>{var n=r(5628),a=r(5392),i=r(5207),o=r(9338),s=r(4922).trim,c=r(2979),u=n.parseInt,l=n.Symbol,h=l&&l.iterator,f=/^[+-]?0x/i,d=i(f.exec),p=8!==u(c+"08")||22!==u(c+"0x16")||h&&!a((function(){u(Object(h))}));e.exports=p?function(e,t){var r=s(o(e));return u(r,t>>>0||(d(f,r)?16:10))}:u},4773:(e,t,r)=>{var n=r(1724),a=r(5207),i=r(5304),o=r(5392),s=r(5265),c=r(68),u=r(5085),l=r(4874),h=r(3415),f=Object.assign,d=Object.defineProperty,p=a([].concat);e.exports=!f||o((function(){if(n&&1!==f({b:1},f(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol("assign detection"),a="abcdefghijklmnopqrst";return e[r]=7,a.split("").forEach((function(e){t[e]=e})),7!==f({},e)[r]||s(f({},t)).join("")!==a}))?function(e,t){for(var r=l(e),a=arguments.length,o=1,f=c.f,d=u.f;a>o;)for(var g,v=h(arguments[o++]),m=f?p(s(v),f(v)):s(v),y=m.length,b=0;y>b;)g=m[b++],n&&!i(d,v,g)||(r[g]=v[g]);return r}:f},5572:(e,t,r)=>{var n,a=r(4738),i=r(3742),o=r(1989),s=r(6710),c=r(5913),u=r(7694),l=r(2992),h="prototype",f="script",d=l("IE_PROTO"),p=function(){},g=function(e){return"<"+f+">"+e+""},v=function(e){e.write(g("")),e.close();var t=e.parentWindow.Object;return e=null,t},m=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;m="undefined"!=typeof document?document.domain&&n?v(n):(t=u("iframe"),r="java"+f+":",t.style.display="none",c.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(g("document.F=Object")),e.close(),e.F):v(n);for(var a=o.length;a--;)delete m[h][o[a]];return m()};s[d]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(p[h]=a(e),r=new p,p[h]=null,r[d]=e):r=m(),void 0===t?r:i.f(r,t)}},3742:(e,t,r)=>{var n=r(1724),a=r(1089),i=r(2030),o=r(4738),s=r(3238),c=r(5265);t.f=n&&!a?Object.defineProperties:function(e,t){o(e);for(var r,n=s(t),a=c(t),u=a.length,l=0;u>l;)i.f(e,r=a[l++],n[r]);return e}},2030:(e,t,r)=>{var n=r(1724),a=r(7199),i=r(1089),o=r(4738),s=r(3561),c=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,h="enumerable",f="configurable",d="writable";t.f=n?i?function(e,t,r){if(o(e),t=s(t),o(r),"function"==typeof e&&"prototype"===t&&"value"in r&&d in r&&!r[d]){var n=l(e,t);n&&n[d]&&(e[t]=r.value,r={configurable:f in r?r[f]:n[f],enumerable:h in r?r[h]:n[h],writable:!1})}return u(e,t,r)}:u:function(e,t,r){if(o(e),t=s(t),o(r),a)try{return u(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new c("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},9070:(e,t,r)=>{var n=r(1724),a=r(5304),i=r(5085),o=r(7999),s=r(3238),c=r(3561),u=r(3531),l=r(7199),h=Object.getOwnPropertyDescriptor;t.f=n?h:function(e,t){if(e=s(e),t=c(t),l)try{return h(e,t)}catch(e){}if(u(e,t))return o(!a(i.f,e,t),e[t])}},2932:(e,t,r)=>{var n=r(5067),a=r(3238),i=r(3817).f,o=r(4997),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return s&&"Window"===n(e)?function(e){try{return i(e)}catch(e){return o(s)}}(e):i(a(e))}},3817:(e,t,r)=>{var n=r(9864),a=r(1989).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,a)}},68:(e,t)=>{t.f=Object.getOwnPropertySymbols},5401:(e,t,r)=>{var n=r(3531),a=r(5547),i=r(4874),o=r(2992),s=r(7472),c=o("IE_PROTO"),u=Object,l=u.prototype;e.exports=s?u.getPrototypeOf:function(e){var t=i(e);if(n(t,c))return t[c];var r=t.constructor;return a(r)&&t instanceof r?r.prototype:t instanceof u?l:null}},2178:(e,t,r)=>{var n=r(5392),a=r(2922),i=r(5067),o=r(9795),s=Object.isExtensible,c=n((function(){s(1)}));e.exports=c||o?function(e){return!!a(e)&&(!o||"ArrayBuffer"!==i(e))&&(!s||s(e))}:s},5692:(e,t,r)=>{var n=r(5207);e.exports=n({}.isPrototypeOf)},9864:(e,t,r)=>{var n=r(5207),a=r(3531),i=r(3238),o=r(3458).indexOf,s=r(6710),c=n([].push);e.exports=function(e,t){var r,n=i(e),u=0,l=[];for(r in n)!a(s,r)&&a(n,r)&&c(l,r);for(;t.length>u;)a(n,r=t[u++])&&(~o(l,r)||c(l,r));return l}},5265:(e,t,r)=>{var n=r(9864),a=r(1989);e.exports=Object.keys||function(e){return n(e,a)}},5085:(e,t)=>{var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,a=n&&!r.call({1:2},1);t.f=a?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},1:(e,t,r)=>{var n=r(5198),a=r(4738),i=r(8835);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=n(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return a(r),i(n),t?e(r,n):r.__proto__=n,r}}():void 0)},6917:(e,t,r)=>{var n=r(1724),a=r(5392),i=r(5207),o=r(5401),s=r(5265),c=r(3238),u=i(r(5085).f),l=i([].push),h=n&&a((function(){var e=Object.create(null);return e[2]=2,!u(e,2)})),f=function(e){return function(t){for(var r,a=c(t),i=s(a),f=h&&null===o(a),d=i.length,p=0,g=[];d>p;)r=i[p++],n&&!(f?r in a:u(a,r))||l(g,e?[r,a[r]]:a[r]);return g}};e.exports={entries:f(!0),values:f(!1)}},9732:(e,t,r)=>{var n=r(7804),a=r(1331);e.exports=n?{}.toString:function(){return"[object "+a(this)+"]"}},3085:(e,t,r)=>{var n=r(5304),a=r(5547),i=r(2922),o=TypeError;e.exports=function(e,t){var r,s;if("string"===t&&a(r=e.toString)&&!i(s=n(r,e)))return s;if(a(r=e.valueOf)&&!i(s=n(r,e)))return s;if("string"!==t&&a(r=e.toString)&&!i(s=n(r,e)))return s;throw new o("Can't convert object to primitive value")}},66:(e,t,r)=>{var n=r(6341),a=r(5207),i=r(3817),o=r(68),s=r(4738),c=a([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=i.f(s(e)),r=o.f;return r?c(t,r(e)):t}},1800:(e,t,r)=>{var n=r(5628);e.exports=n},4938:e=>{e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},9041:(e,t,r)=>{var n=r(5628),a=r(1911),i=r(5547),o=r(5416),s=r(8833),c=r(5553),u=r(5009),l=r(4378),h=r(5988),f=r(6262),d=a&&a.prototype,p=c("species"),g=!1,v=i(n.PromiseRejectionEvent),m=o("Promise",(function(){var e=s(a),t=e!==String(a);if(!t&&66===f)return!0;if(h&&(!d.catch||!d.finally))return!0;if(!f||f<51||!/native code/.test(e)){var r=new a((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};if((r.constructor={})[p]=n,!(g=r.then((function(){}))instanceof n))return!0}return!t&&(u||l)&&!v}));e.exports={CONSTRUCTOR:m,REJECTION_EVENT:v,SUBCLASSING:g}},1911:(e,t,r)=>{var n=r(5628);e.exports=n.Promise},5894:(e,t,r)=>{var n=r(4738),a=r(2922),i=r(1145);e.exports=function(e,t){if(n(e),a(t)&&t.constructor===e)return t;var r=i.f(e);return(0,r.resolve)(t),r.promise}},2034:(e,t,r)=>{var n=r(1911),a=r(7112),i=r(9041).CONSTRUCTOR;e.exports=i||!a((function(e){n.all(e).then(void 0,(function(){}))}))},7330:(e,t,r)=>{var n=r(2030).f;e.exports=function(e,t,r){r in e||n(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})}},4947:e=>{var t=function(){this.head=null,this.tail=null};t.prototype={add:function(e){var t={item:e,next:null},r=this.tail;r?r.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}},e.exports=t},2493:(e,t,r)=>{var n=r(5304),a=r(4738),i=r(5547),o=r(5067),s=r(4493),c=TypeError;e.exports=function(e,t){var r=e.exec;if(i(r)){var u=n(r,e,t);return null!==u&&a(u),u}if("RegExp"===o(e))return n(s,e,t);throw new c("RegExp#exec called on incompatible receiver")}},4493:(e,t,r)=>{var n,a,i=r(5304),o=r(5207),s=r(9338),c=r(5337),u=r(2053),l=r(7995),h=r(5572),f=r(5972).get,d=r(9383),p=r(3275),g=l("native-string-replace",String.prototype.replace),v=RegExp.prototype.exec,m=v,y=o("".charAt),b=o("".indexOf),w=o("".replace),k=o("".slice),x=(a=/b*/g,i(v,n=/a/,"a"),i(v,a,"a"),0!==n.lastIndex||0!==a.lastIndex),S=u.BROKEN_CARET,A=void 0!==/()??/.exec("")[1];(x||A||S||d||p)&&(m=function(e){var t,r,n,a,o,u,l,d=this,p=f(d),C=s(e),O=p.raw;if(O)return O.lastIndex=d.lastIndex,t=i(m,O,C),d.lastIndex=O.lastIndex,t;var F=p.groups,I=S&&d.sticky,T=i(c,d),M=d.source,E=0,P=C;if(I&&(T=w(T,"y",""),-1===b(T,"g")&&(T+="g"),P=k(C,d.lastIndex),d.lastIndex>0&&(!d.multiline||d.multiline&&"\n"!==y(C,d.lastIndex-1))&&(M="(?: "+M+")",P=" "+P,E++),r=new RegExp("^(?:"+M+")",T)),A&&(r=new RegExp("^"+M+"$(?!\\s)",T)),x&&(n=d.lastIndex),a=i(v,I?r:d,P),I?a?(a.input=k(a.input,E),a[0]=k(a[0],E),a.index=d.lastIndex,d.lastIndex+=a[0].length):d.lastIndex=0:x&&a&&(d.lastIndex=d.global?a.index+a[0].length:n),A&&a&&a.length>1&&i(g,a[0],r,(function(){for(o=1;o{var n=r(4738);e.exports=function(){var e=n(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},2165:(e,t,r)=>{var n=r(5304),a=r(3531),i=r(5692),o=r(5337),s=RegExp.prototype;e.exports=function(e){var t=e.flags;return void 0!==t||"flags"in s||a(e,"flags")||!i(s,e)?t:n(o,e)}},2053:(e,t,r)=>{var n=r(5392),a=r(5628).RegExp,i=n((function(){var e=a("a","y");return e.lastIndex=2,null!==e.exec("abcd")})),o=i||n((function(){return!a("a","y").sticky})),s=i||n((function(){var e=a("^r","gy");return e.lastIndex=2,null!==e.exec("str")}));e.exports={BROKEN_CARET:s,MISSED_STICKY:o,UNSUPPORTED_Y:i}},9383:(e,t,r)=>{var n=r(5392),a=r(5628).RegExp;e.exports=n((function(){var e=a(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)}))},3275:(e,t,r)=>{var n=r(5392),a=r(5628).RegExp;e.exports=n((function(){var e=a("(?b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$c")}))},4202:(e,t,r)=>{var n=r(7930),a=TypeError;e.exports=function(e){if(n(e))throw new a("Can't call method on "+e);return e}},7286:(e,t,r)=>{var n=r(5628),a=r(1724),i=Object.getOwnPropertyDescriptor;e.exports=function(e){if(!a)return n[e];var t=i(n,e);return t&&t.value}},5997:(e,t,r)=>{var n=r(6341),a=r(7416),i=r(5553),o=r(1724),s=i("species");e.exports=function(e){var t=n(e);o&&t&&!t[s]&&a(t,s,{configurable:!0,get:function(){return this}})}},869:(e,t,r)=>{var n=r(2030).f,a=r(3531),i=r(5553)("toStringTag");e.exports=function(e,t,r){e&&!r&&(e=e.prototype),e&&!a(e,i)&&n(e,i,{configurable:!0,value:t})}},2992:(e,t,r)=>{var n=r(7995),a=r(1188),i=n("keys");e.exports=function(e){return i[e]||(i[e]=a(e))}},8866:(e,t,r)=>{var n=r(5628),a=r(4143),i="__core-js_shared__",o=n[i]||a(i,{});e.exports=o},7995:(e,t,r)=>{var n=r(5988),a=r(8866);(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.35.0",mode:n?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.35.0/LICENSE",source:"https://github.com/zloirock/core-js"})},6623:(e,t,r)=>{var n=r(4738),a=r(7497),i=r(7930),o=r(5553)("species");e.exports=function(e,t){var r,s=n(e).constructor;return void 0===s||i(r=n(s)[o])?t:a(r)}},4942:(e,t,r)=>{var n=r(5207),a=r(2501),i=r(9338),o=r(4202),s=n("".charAt),c=n("".charCodeAt),u=n("".slice),l=function(e){return function(t,r){var n,l,h=i(o(t)),f=a(r),d=h.length;return f<0||f>=d?e?"":void 0:(n=c(h,f))<55296||n>56319||f+1===d||(l=c(h,f+1))<56320||l>57343?e?s(h,f):n:e?u(h,f,f+2):l-56320+(n-55296<<10)+65536}};e.exports={codeAt:l(!1),charAt:l(!0)}},6754:(e,t,r)=>{var n=r(8270);e.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(n)},9414:(e,t,r)=>{var n=r(5207),a=r(7450),i=r(9338),o=r(1069),s=r(4202),c=n(o),u=n("".slice),l=Math.ceil,h=function(e){return function(t,r,n){var o,h,f=i(s(t)),d=a(r),p=f.length,g=void 0===n?" ":i(n);return d<=p||""===g?f:((h=c(g,l((o=d-p)/g.length))).length>o&&(h=u(h,0,o)),e?f+h:h+f)}};e.exports={start:h(!1),end:h(!0)}},8077:(e,t,r)=>{var n=r(5207),a=2147483647,i=/[^\0-\u007E]/,o=/[.\u3002\uFF0E\uFF61]/g,s="Overflow: input needs wider integers to process",c=RangeError,u=n(o.exec),l=Math.floor,h=String.fromCharCode,f=n("".charCodeAt),d=n([].join),p=n([].push),g=n("".replace),v=n("".split),m=n("".toLowerCase),y=function(e){return e+22+75*(e<26)},b=function(e,t,r){var n=0;for(e=r?l(e/700):e>>1,e+=l(e/t);e>455;)e=l(e/35),n+=36;return l(n+36*e/(e+38))},w=function(e){var t=[];e=function(e){for(var t=[],r=0,n=e.length;r=55296&&a<=56319&&r=o&&nl((a-u)/k))throw new c(s);for(u+=(w-o)*k,o=w,r=0;ra)throw new c(s);if(n===o){for(var x=u,S=36;;){var A=S<=g?1:S>=g+26?26:S-g;if(x{var n=r(2501),a=r(9338),i=r(4202),o=RangeError;e.exports=function(e){var t=a(i(this)),r="",s=n(e);if(s<0||s===1/0)throw new o("Wrong number of repetitions");for(;s>0;(s>>>=1)&&(t+=t))1&s&&(r+=t);return r}},5215:(e,t,r)=>{var n=r(4930).PROPER,a=r(5392),i=r(2979);e.exports=function(e){return a((function(){return!!i[e]()||"​…᠎"!=="​…᠎"[e]()||n&&i[e].name!==e}))}},4922:(e,t,r)=>{var n=r(5207),a=r(4202),i=r(9338),o=r(2979),s=n("".replace),c=RegExp("^["+o+"]+"),u=RegExp("(^|[^"+o+"])["+o+"]+$"),l=function(e){return function(t){var r=i(a(t));return 1&e&&(r=s(r,c,"")),2&e&&(r=s(r,u,"$1")),r}};e.exports={start:l(1),end:l(2),trim:l(3)}},2083:(e,t,r)=>{var n=r(6262),a=r(5392),i=r(5628).String;e.exports=!!Object.getOwnPropertySymbols&&!a((function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},499:(e,t,r)=>{var n=r(5304),a=r(6341),i=r(5553),o=r(3300);e.exports=function(){var e=a("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,s=i("toPrimitive");t&&!t[s]&&o(t,s,(function(e){return n(r,this)}),{arity:1})}},4429:(e,t,r)=>{var n=r(2083);e.exports=n&&!!Symbol.for&&!!Symbol.keyFor},5902:(e,t,r)=>{var n,a,i,o,s=r(5628),c=r(9500),u=r(6913),l=r(5547),h=r(3531),f=r(5392),d=r(5913),p=r(4997),g=r(7694),v=r(8769),m=r(7056),y=r(6638),b=s.setImmediate,w=s.clearImmediate,k=s.process,x=s.Dispatch,S=s.Function,A=s.MessageChannel,C=s.String,O=0,F={},I="onreadystatechange";f((function(){n=s.location}));var T=function(e){if(h(F,e)){var t=F[e];delete F[e],t()}},M=function(e){return function(){T(e)}},E=function(e){T(e.data)},P=function(e){s.postMessage(C(e),n.protocol+"//"+n.host)};b&&w||(b=function(e){v(arguments.length,1);var t=l(e)?e:S(e),r=p(arguments,1);return F[++O]=function(){c(t,void 0,r)},a(O),O},w=function(e){delete F[e]},y?a=function(e){k.nextTick(M(e))}:x&&x.now?a=function(e){x.now(M(e))}:A&&!m?(o=(i=new A).port2,i.port1.onmessage=E,a=u(o.postMessage,o)):s.addEventListener&&l(s.postMessage)&&!s.importScripts&&n&&"file:"!==n.protocol&&!f(P)?(a=P,s.addEventListener("message",E,!1)):a=I in g("script")?function(e){d.appendChild(g("script"))[I]=function(){d.removeChild(this),T(e)}}:function(e){setTimeout(M(e),0)}),e.exports={set:b,clear:w}},8459:(e,t,r)=>{var n=r(5207);e.exports=n(1..valueOf)},645:(e,t,r)=>{var n=r(2501),a=Math.max,i=Math.min;e.exports=function(e,t){var r=n(e);return r<0?a(r+t,0):i(r,t)}},3810:(e,t,r)=>{var n=r(1086),a=TypeError;e.exports=function(e){var t=n(e,"number");if("number"==typeof t)throw new a("Can't convert number to bigint");return BigInt(t)}},5927:(e,t,r)=>{var n=r(2501),a=r(7450),i=RangeError;e.exports=function(e){if(void 0===e)return 0;var t=n(e),r=a(t);if(t!==r)throw new i("Wrong length or index");return r}},3238:(e,t,r)=>{var n=r(3415),a=r(4202);e.exports=function(e){return n(a(e))}},2501:(e,t,r)=>{var n=r(5779);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},7450:(e,t,r)=>{var n=r(2501),a=Math.min;e.exports=function(e){return e>0?a(n(e),9007199254740991):0}},4874:(e,t,r)=>{var n=r(4202),a=Object;e.exports=function(e){return a(n(e))}},9370:(e,t,r)=>{var n=r(2558),a=RangeError;e.exports=function(e,t){var r=n(e);if(r%t)throw new a("Wrong offset");return r}},2558:(e,t,r)=>{var n=r(2501),a=RangeError;e.exports=function(e){var t=n(e);if(t<0)throw new a("The argument can't be less than 0");return t}},1086:(e,t,r)=>{var n=r(5304),a=r(2922),i=r(6610),o=r(2698),s=r(3085),c=r(5553),u=TypeError,l=c("toPrimitive");e.exports=function(e,t){if(!a(e)||i(e))return e;var r,c=o(e,l);if(c){if(void 0===t&&(t="default"),r=n(c,e,t),!a(r)||i(r))return r;throw new u("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},3561:(e,t,r)=>{var n=r(1086),a=r(6610);e.exports=function(e){var t=n(e,"string");return a(t)?t:t+""}},7804:(e,t,r)=>{var n={};n[r(5553)("toStringTag")]="z",e.exports="[object z]"===String(n)},9338:(e,t,r)=>{var n=r(1331),a=String;e.exports=function(e){if("Symbol"===n(e))throw new TypeError("Cannot convert a Symbol value to a string");return a(e)}},7732:e=>{var t=Math.round;e.exports=function(e){var r=t(e);return r<0?0:r>255?255:255&r}},5254:(e,t,r)=>{var n=r(6638);e.exports=function(e){try{if(n)return Function('return require("'+e+'")')()}catch(e){}}},3454:e=>{var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},3116:(e,t,r)=>{var n=r(3937),a=r(5628),i=r(5304),o=r(1724),s=r(1503),c=r(5192),u=r(1639),l=r(5312),h=r(7999),f=r(9238),d=r(3847),p=r(7450),g=r(5927),v=r(9370),m=r(7732),y=r(3561),b=r(3531),w=r(1331),k=r(2922),x=r(6610),S=r(5572),A=r(5692),C=r(1),O=r(3817).f,F=r(8201),I=r(6682).forEach,T=r(5997),M=r(7416),E=r(2030),P=r(9070),R=r(9353),N=r(5972),D=r(6673),B=N.get,L=N.set,_=N.enforce,j=E.f,U=P.f,$=a.RangeError,X=u.ArrayBuffer,H=X.prototype,q=u.DataView,z=c.NATIVE_ARRAY_BUFFER_VIEWS,G=c.TYPED_ARRAY_TAG,W=c.TypedArray,V=c.TypedArrayPrototype,K=c.isTypedArray,Y="BYTES_PER_ELEMENT",J="Wrong length",Z=function(e,t){M(e,t,{configurable:!0,get:function(){return B(this)[t]}})},Q=function(e){var t;return A(H,e)||"ArrayBuffer"===(t=w(e))||"SharedArrayBuffer"===t},ee=function(e,t){return K(e)&&!x(t)&&t in e&&d(+t)&&t>=0},te=function(e,t){return t=y(t),ee(e,t)?h(2,e[t]):U(e,t)},re=function(e,t,r){return t=y(t),!(ee(e,t)&&k(r)&&b(r,"value"))||b(r,"get")||b(r,"set")||r.configurable||b(r,"writable")&&!r.writable||b(r,"enumerable")&&!r.enumerable?j(e,t,r):(e[t]=r.value,e)};o?(z||(P.f=te,E.f=re,Z(V,"buffer"),Z(V,"byteOffset"),Z(V,"byteLength"),Z(V,"length")),n({target:"Object",stat:!0,forced:!z},{getOwnPropertyDescriptor:te,defineProperty:re}),e.exports=function(e,t,r){var o=e.match(/\d+/)[0]/8,c=e+(r?"Clamped":"")+"Array",u="get"+e,h="set"+e,d=a[c],y=d,b=y&&y.prototype,w={},x=function(e,t){j(e,t,{get:function(){return function(e,t){var r=B(e);return r.view[u](t*o+r.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,n){var a=B(e);a.view[h](t*o+a.byteOffset,r?m(n):n,!0)}(this,t,e)},enumerable:!0})};z?s&&(y=t((function(e,t,r,n){return l(e,b),D(k(t)?Q(t)?void 0!==n?new d(t,v(r,o),n):void 0!==r?new d(t,v(r,o)):new d(t):K(t)?R(y,t):i(F,y,t):new d(g(t)),e,y)})),C&&C(y,W),I(O(d),(function(e){e in y||f(y,e,d[e])})),y.prototype=b):(y=t((function(e,t,r,n){l(e,b);var a,s,c,u=0,h=0;if(k(t)){if(!Q(t))return K(t)?R(y,t):i(F,y,t);a=t,h=v(r,o);var f=t.byteLength;if(void 0===n){if(f%o)throw new $(J);if((s=f-h)<0)throw new $(J)}else if((s=p(n)*o)+h>f)throw new $(J);c=s/o}else c=g(t),a=new X(s=c*o);for(L(e,{buffer:a,byteOffset:h,byteLength:s,length:c,view:new q(a)});u{var n=r(5628),a=r(5392),i=r(7112),o=r(5192).NATIVE_ARRAY_BUFFER_VIEWS,s=n.ArrayBuffer,c=n.Int8Array;e.exports=!o||!a((function(){c(1)}))||!a((function(){new c(-1)}))||!i((function(e){new c,new c(null),new c(1.5),new c(e)}),!0)||a((function(){return 1!==new c(new s(2),1,void 0).length}))},9910:(e,t,r)=>{var n=r(9353),a=r(7709);e.exports=function(e,t){return n(a(e),t)}},8201:(e,t,r)=>{var n=r(6913),a=r(5304),i=r(7497),o=r(4874),s=r(1024),c=r(9392),u=r(9755),l=r(5525),h=r(3669),f=r(5192).aTypedArrayConstructor,d=r(3810);e.exports=function(e){var t,r,p,g,v,m,y,b,w=i(this),k=o(e),x=arguments.length,S=x>1?arguments[1]:void 0,A=void 0!==S,C=u(k);if(C&&!l(C))for(b=(y=c(k,C)).next,k=[];!(m=a(b,y)).done;)k.push(m.value);for(A&&x>2&&(S=n(S,arguments[2])),r=s(k),p=new(f(w))(r),g=h(p),t=0;r>t;t++)v=A?S(k[t],t):k[t],p[t]=g?d(v):+v;return p}},7709:(e,t,r)=>{var n=r(5192),a=r(6623),i=n.aTypedArrayConstructor,o=n.getTypedArrayConstructor;e.exports=function(e){return i(a(e,o(e)))}},1188:(e,t,r)=>{var n=r(5207),a=0,i=Math.random(),o=n(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++a+i,36)}},680:(e,t,r)=>{var n=r(5392),a=r(5553),i=r(1724),o=r(5988),s=a("iterator");e.exports=!n((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,r=new URLSearchParams("a=1&a=2&b=3"),n="";return e.pathname="c%20d",t.forEach((function(e,r){t.delete("b"),n+=r+e})),r.delete("a",2),r.delete("b",void 0),o&&(!e.toJSON||!r.has("a",1)||r.has("a",2)||!r.has("a",void 0)||r.has("b"))||!t.size&&(o||!i)||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[s]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},8675:(e,t,r)=>{var n=r(2083);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},1089:(e,t,r)=>{var n=r(1724),a=r(5392);e.exports=n&&a((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},8769:e=>{var t=TypeError;e.exports=function(e,r){if(e{var n=r(5628),a=r(5547),i=n.WeakMap;e.exports=a(i)&&/native code/.test(String(i))},1641:(e,t,r)=>{var n=r(1800),a=r(3531),i=r(1884),o=r(2030).f;e.exports=function(e){var t=n.Symbol||(n.Symbol={});a(t,e)||o(t,e,{value:i.f(e)})}},1884:(e,t,r)=>{var n=r(5553);t.f=n},5553:(e,t,r)=>{var n=r(5628),a=r(7995),i=r(3531),o=r(1188),s=r(2083),c=r(8675),u=n.Symbol,l=a("wks"),h=c?u.for||u:u&&u.withoutSetter||o;e.exports=function(e){return i(l,e)||(l[e]=s&&i(u,e)?u[e]:h("Symbol."+e)),l[e]}},2979:e=>{e.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},9033:(e,t,r)=>{var n=r(6341),a=r(3531),i=r(9238),o=r(5692),s=r(1),c=r(469),u=r(7330),l=r(6673),h=r(7797),f=r(1068),d=r(9518),p=r(1724),g=r(5988);e.exports=function(e,t,r,v){var m="stackTraceLimit",y=v?2:1,b=e.split("."),w=b[b.length-1],k=n.apply(null,b);if(k){var x=k.prototype;if(!g&&a(x,"cause")&&delete x.cause,!r)return k;var S=n("Error"),A=t((function(e,t){var r=h(v?t:e,void 0),n=v?new k(e):new k;return void 0!==r&&i(n,"message",r),d(n,A,n.stack,2),this&&o(x,this)&&l(n,this,A),arguments.length>y&&f(n,arguments[y]),n}));if(A.prototype=x,"Error"!==w?s?s(A,S):c(A,S,{name:!0}):p&&m in k&&(u(A,k,m),u(A,k,"prepareStackTrace")),c(A,k),!g)try{x.name!==w&&i(x,"name",w),x.constructor=A}catch(e){}return A}}},6963:(e,t,r)=>{var n=r(3937),a=r(5628),i=r(1639),o=r(5997),s="ArrayBuffer",c=i[s];n({global:!0,constructor:!0,forced:a[s]!==c},{ArrayBuffer:c}),o(s)},7154:(e,t,r)=>{var n=r(3937),a=r(8209),i=r(5392),o=r(1639),s=r(4738),c=r(645),u=r(7450),l=r(6623),h=o.ArrayBuffer,f=o.DataView,d=f.prototype,p=a(h.prototype.slice),g=a(d.getUint8),v=a(d.setUint8);n({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:i((function(){return!new h(2).slice(1,void 0).byteLength}))},{slice:function(e,t){if(p&&void 0===t)return p(s(this),e);for(var r=s(this).byteLength,n=c(e,r),a=c(void 0===t?r:t,r),i=new(l(this,h))(u(a-n)),o=new f(this),d=new f(i),m=0;n{var n=r(3937),a=r(4874),i=r(1024),o=r(2501),s=r(3689);n({target:"Array",proto:!0},{at:function(e){var t=a(this),r=i(t),n=o(e),s=n>=0?n:r+n;return s<0||s>=r?void 0:t[s]}}),s("at")},2101:(e,t,r)=>{var n=r(3937),a=r(5392),i=r(6308),o=r(2922),s=r(4874),c=r(1024),u=r(6665),l=r(8638),h=r(8730),f=r(5728),d=r(5553),p=r(6262),g=d("isConcatSpreadable"),v=p>=51||!a((function(){var e=[];return e[g]=!1,e.concat()[0]!==e})),m=function(e){if(!o(e))return!1;var t=e[g];return void 0!==t?!!t:i(e)};n({target:"Array",proto:!0,arity:1,forced:!v||!f("concat")},{concat:function(e){var t,r,n,a,i,o=s(this),f=h(o,0),d=0;for(t=-1,n=arguments.length;t{var n=r(3937),a=r(52),i=r(3689);n({target:"Array",proto:!0},{copyWithin:a}),i("copyWithin")},3871:(e,t,r)=>{var n=r(3937),a=r(3039),i=r(3689);n({target:"Array",proto:!0},{fill:a}),i("fill")},39:(e,t,r)=>{var n=r(3937),a=r(6682).filter;n({target:"Array",proto:!0,forced:!r(5728)("filter")},{filter:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}})},973:(e,t,r)=>{var n=r(3937),a=r(6682).findIndex,i=r(3689),o="findIndex",s=!0;o in[]&&Array(1)[o]((function(){s=!1})),n({target:"Array",proto:!0,forced:s},{findIndex:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}}),i(o)},8008:(e,t,r)=>{var n=r(3937),a=r(8648).findLastIndex,i=r(3689);n({target:"Array",proto:!0},{findLastIndex:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}}),i("findLastIndex")},4346:(e,t,r)=>{var n=r(3937),a=r(8648).findLast,i=r(3689);n({target:"Array",proto:!0},{findLast:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}}),i("findLast")},8725:(e,t,r)=>{var n=r(3937),a=r(6682).find,i=r(3689),o="find",s=!0;o in[]&&Array(1)[o]((function(){s=!1})),n({target:"Array",proto:!0,forced:s},{find:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}}),i(o)},9278:(e,t,r)=>{var n=r(3937),a=r(8497),i=r(4874),o=r(1024),s=r(2501),c=r(8730);n({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=i(this),r=o(t),n=c(t,0);return n.length=a(n,t,t,r,0,void 0===e?1:s(e)),n}})},6891:(e,t,r)=>{var n=r(3937),a=r(1383);n({target:"Array",stat:!0,forced:!r(7112)((function(e){Array.from(e)}))},{from:a})},678:(e,t,r)=>{var n=r(3937),a=r(3458).includes,i=r(5392),o=r(3689);n({target:"Array",proto:!0,forced:i((function(){return!Array(1).includes()}))},{includes:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}}),o("includes")},3313:(e,t,r)=>{var n=r(3238),a=r(3689),i=r(1463),o=r(5972),s=r(2030).f,c=r(5341),u=r(9925),l=r(5988),h=r(1724),f="Array Iterator",d=o.set,p=o.getterFor(f);e.exports=c(Array,"Array",(function(e,t){d(this,{type:f,target:n(e),index:0,kind:t})}),(function(){var e=p(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=void 0,u(void 0,!0);switch(e.kind){case"keys":return u(r,!1);case"values":return u(t[r],!1)}return u([r,t[r]],!1)}),"values");var g=i.Arguments=i.Array;if(a("keys"),a("values"),a("entries"),!l&&h&&"values"!==g.name)try{s(g,"name",{value:"values"})}catch(e){}},6773:(e,t,r)=>{var n=r(3937),a=r(6682).map;n({target:"Array",proto:!0,forced:!r(5728)("map")},{map:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}})},6484:(e,t,r)=>{var n=r(3937),a=r(4874),i=r(1024),o=r(5303),s=r(6665);n({target:"Array",proto:!0,arity:1,forced:r(5392)((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}()},{push:function(e){var t=a(this),r=i(t),n=arguments.length;s(r+n);for(var c=0;c{var n=r(3937),a=r(2253).left,i=r(5668),o=r(6262);n({target:"Array",proto:!0,forced:!r(6638)&&o>79&&o<83||!i("reduce")},{reduce:function(e){var t=arguments.length;return a(this,e,t,t>1?arguments[1]:void 0)}})},1591:(e,t,r)=>{var n=r(3937),a=r(5207),i=r(6308),o=a([].reverse),s=[1,2];n({target:"Array",proto:!0,forced:String(s)===String(s.reverse())},{reverse:function(){return i(this)&&(this.length=this.length),o(this)}})},9086:(e,t,r)=>{var n=r(3937),a=r(6308),i=r(5713),o=r(2922),s=r(645),c=r(1024),u=r(3238),l=r(8638),h=r(5553),f=r(5728),d=r(4997),p=f("slice"),g=h("species"),v=Array,m=Math.max;n({target:"Array",proto:!0,forced:!p},{slice:function(e,t){var r,n,h,f=u(this),p=c(f),y=s(e,p),b=s(void 0===t?p:t,p);if(a(f)&&(r=f.constructor,(i(r)&&(r===v||a(r.prototype))||o(r)&&null===(r=r[g]))&&(r=void 0),r===v||void 0===r))return d(f,y,b);for(n=new(void 0===r?v:r)(m(b-y,0)),h=0;y{var n=r(3937),a=r(5207),i=r(607),o=r(4874),s=r(1024),c=r(4167),u=r(9338),l=r(5392),h=r(9158),f=r(5668),d=r(6890),p=r(3326),g=r(6262),v=r(2122),m=[],y=a(m.sort),b=a(m.push),w=l((function(){m.sort(void 0)})),k=l((function(){m.sort(null)})),x=f("sort"),S=!l((function(){if(g)return g<70;if(!(d&&d>3)){if(p)return!0;if(v)return v<603;var e,t,r,n,a="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(n=0;n<47;n++)m.push({k:t+n,v:r})}for(m.sort((function(e,t){return t.v-e.v})),n=0;nu(r)?1:-1}}(e)),r=s(a),n=0;n{var n=r(3937),a=r(4874),i=r(645),o=r(2501),s=r(1024),c=r(5303),u=r(6665),l=r(8730),h=r(8638),f=r(4167),d=r(5728)("splice"),p=Math.max,g=Math.min;n({target:"Array",proto:!0,forced:!d},{splice:function(e,t){var r,n,d,v,m,y,b=a(this),w=s(b),k=i(e,w),x=arguments.length;for(0===x?r=n=0:1===x?(r=0,n=w-k):(r=x-2,n=g(p(o(t),0),w-k)),u(w+r-n),d=l(b,n),v=0;vw-n+r;v--)f(b,v-1)}else if(r>n)for(v=w-n;v>k;v--)y=v+r-1,(m=v+n-1)in b?b[y]=b[m]:f(b,y);for(v=0;v{r(3689)("flat")},3103:(e,t,r)=>{var n=r(3937),a=r(4874),i=r(1024),o=r(5303),s=r(4167),c=r(6665);n({target:"Array",proto:!0,arity:1,forced:1!==[].unshift(0)||!function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(e){return e instanceof TypeError}}()},{unshift:function(e){var t=a(this),r=i(t),n=arguments.length;if(n){c(r+n);for(var u=r;u--;){var l=u+n;u in t?t[l]=t[u]:s(t,l)}for(var h=0;h{var n=r(3937),a=r(9677),i=r(3238),o=Array;n({target:"Array",proto:!0},{with:function(e,t){return a(i(this),o,e,t)}})},9814:(e,t,r)=>{var n=r(3531),a=r(3300),i=r(7245),o=r(5553)("toPrimitive"),s=Date.prototype;n(s,o)||a(s,o,i)},4891:(e,t,r)=>{var n=r(3937),a=r(5628),i=r(9500),o=r(9033),s="WebAssembly",c=a[s],u=7!==new Error("e",{cause:7}).cause,l=function(e,t){var r={};r[e]=o(e,t,u),n({global:!0,constructor:!0,arity:1,forced:u},r)},h=function(e,t){if(c&&c[e]){var r={};r[e]=o(s+"."+e,t,u),n({target:s,stat:!0,constructor:!0,arity:1,forced:u},r)}};l("Error",(function(e){return function(t){return i(e,this,arguments)}})),l("EvalError",(function(e){return function(t){return i(e,this,arguments)}})),l("RangeError",(function(e){return function(t){return i(e,this,arguments)}})),l("ReferenceError",(function(e){return function(t){return i(e,this,arguments)}})),l("SyntaxError",(function(e){return function(t){return i(e,this,arguments)}})),l("TypeError",(function(e){return function(t){return i(e,this,arguments)}})),l("URIError",(function(e){return function(t){return i(e,this,arguments)}})),h("CompileError",(function(e){return function(t){return i(e,this,arguments)}})),h("LinkError",(function(e){return function(t){return i(e,this,arguments)}})),h("RuntimeError",(function(e){return function(t){return i(e,this,arguments)}}))},4199:(e,t,r)=>{var n=r(3300),a=r(4602),i=Error.prototype;i.toString!==a&&n(i,"toString",a)},6568:(e,t,r)=>{var n=r(3937),a=r(5628);n({global:!0,forced:a.globalThis!==a},{globalThis:a})},3991:(e,t,r)=>{var n=r(3937),a=r(6341),i=r(9500),o=r(5304),s=r(5207),c=r(5392),u=r(5547),l=r(6610),h=r(4997),f=r(9142),d=r(2083),p=String,g=a("JSON","stringify"),v=s(/./.exec),m=s("".charAt),y=s("".charCodeAt),b=s("".replace),w=s(1..toString),k=/[\uD800-\uDFFF]/g,x=/^[\uD800-\uDBFF]$/,S=/^[\uDC00-\uDFFF]$/,A=!d||c((function(){var e=a("Symbol")("stringify detection");return"[null]"!==g([e])||"{}"!==g({a:e})||"{}"!==g(Object(e))})),C=c((function(){return'"\\udf06\\ud834"'!==g("\udf06\ud834")||'"\\udead"'!==g("\udead")})),O=function(e,t){var r=h(arguments),n=f(t);if(u(n)||void 0!==e&&!l(e))return r[1]=function(e,t){if(u(n)&&(t=o(n,this,p(e),t)),!l(t))return t},i(g,null,r)},F=function(e,t,r){var n=m(r,t-1),a=m(r,t+1);return v(x,e)&&!v(S,a)||v(S,e)&&!v(x,n)?"\\u"+w(y(e,0),16):e};g&&n({target:"JSON",stat:!0,arity:3,forced:A||C},{stringify:function(e,t,r){var n=h(arguments),a=i(A?O:g,null,n);return C&&"string"==typeof a?b(a,k,F):a}})},5328:(e,t,r)=>{var n=r(5628);r(869)(n.JSON,"JSON",!0)},7064:(e,t,r)=>{r(4866)("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),r(1430))},2754:(e,t,r)=>{r(7064)},6399:(e,t,r)=>{var n=r(3937),a=Math.hypot,i=Math.abs,o=Math.sqrt;n({target:"Math",stat:!0,arity:2,forced:!!a&&a(1/0,NaN)!==1/0},{hypot:function(e,t){for(var r,n,a=0,s=0,c=arguments.length,u=0;s0?(n=r/u)*n:r;return u===1/0?1/0:u*o(a)}})},7680:(e,t,r)=>{r(3937)({target:"Math",stat:!0},{sign:r(594)})},333:(e,t,r)=>{r(869)(Math,"Math",!0)},6375:(e,t,r)=>{var n=r(3937),a=r(5988),i=r(1724),o=r(5628),s=r(1800),c=r(5207),u=r(5416),l=r(3531),h=r(6673),f=r(5692),d=r(6610),p=r(1086),g=r(5392),v=r(3817).f,m=r(9070).f,y=r(2030).f,b=r(8459),w=r(4922).trim,k="Number",x=o[k],S=s[k],A=x.prototype,C=o.TypeError,O=c("".slice),F=c("".charCodeAt),I=u(k,!x(" 0o1")||!x("0b1")||x("+0x1")),T=function(e){var t,r=arguments.length<1?0:x(function(e){var t=p(e,"number");return"bigint"==typeof t?t:function(e){var t,r,n,a,i,o,s,c,u=p(e,"number");if(d(u))throw new C("Cannot convert a Symbol value to a number");if("string"==typeof u&&u.length>2)if(u=w(u),43===(t=F(u,0))||45===t){if(88===(r=F(u,2))||120===r)return NaN}else if(48===t){switch(F(u,1)){case 66:case 98:n=2,a=49;break;case 79:case 111:n=8,a=55;break;default:return+u}for(o=(i=O(u,2)).length,s=0;sa)return NaN;return parseInt(i,n)}return+u}(t)}(e));return f(A,t=this)&&g((function(){b(t)}))?h(Object(r),this,T):r};T.prototype=A,I&&!a&&(A.constructor=T),n({global:!0,constructor:!0,wrap:!0,forced:I},{Number:T});var M=function(e,t){for(var r,n=i?v(t):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),a=0;n.length>a;a++)l(t,r=n[a])&&!l(e,r)&&y(e,r,m(t,r))};a&&S&&M(s[k],S),(I||a)&&M(s[k],x)},761:(e,t,r)=>{r(3937)({target:"Number",stat:!0},{isInteger:r(3847)})},3614:(e,t,r)=>{r(3937)({target:"Number",stat:!0},{isNaN:function(e){return e!=e}})},5489:(e,t,r)=>{var n=r(3937),a=r(5207),i=r(2501),o=r(8459),s=r(1069),c=r(5392),u=RangeError,l=String,h=Math.floor,f=a(s),d=a("".slice),p=a(1..toFixed),g=function(e,t,r){return 0===t?r:t%2==1?g(e,t-1,r*e):g(e*e,t/2,r)},v=function(e,t,r){for(var n=-1,a=r;++n<6;)a+=t*e[n],e[n]=a%1e7,a=h(a/1e7)},m=function(e,t){for(var r=6,n=0;--r>=0;)n+=e[r],e[r]=h(n/t),n=n%t*1e7},y=function(e){for(var t=6,r="";--t>=0;)if(""!==r||0===t||0!==e[t]){var n=l(e[t]);r=""===r?n:r+f("0",7-n.length)+n}return r};n({target:"Number",proto:!0,forced:c((function(){return"0.000"!==p(8e-5,3)||"1"!==p(.9,0)||"1.25"!==p(1.255,2)||"1000000000000000128"!==p(0xde0b6b3a7640080,0)}))||!c((function(){p({})}))},{toFixed:function(e){var t,r,n,a,s=o(this),c=i(e),h=[0,0,0,0,0,0],p="",b="0";if(c<0||c>20)throw new u("Incorrect fraction digits");if(s!=s)return"NaN";if(s<=-1e21||s>=1e21)return l(s);if(s<0&&(p="-",s=-s),s>1e-21)if(r=(t=function(e){for(var t=0,r=e;r>=4096;)t+=12,r/=4096;for(;r>=2;)t+=1,r/=2;return t}(s*g(2,69,1))-69)<0?s*g(2,-t,1):s/g(2,t,1),r*=4503599627370496,(t=52-t)>0){for(v(h,0,r),n=c;n>=7;)v(h,1e7,0),n-=7;for(v(h,g(10,n,1),0),n=t-1;n>=23;)m(h,1<<23),n-=23;m(h,1<0?p+((a=b.length)<=c?"0."+f("0",c-a)+b:d(b,0,a-c)+"."+d(b,a-c)):p+b}})},2859:(e,t,r)=>{var n=r(3937),a=r(4773);n({target:"Object",stat:!0,arity:2,forced:Object.assign!==a},{assign:a})},2170:(e,t,r)=>{var n=r(3937),a=r(6917).entries;n({target:"Object",stat:!0},{entries:function(e){return a(e)}})},389:(e,t,r)=>{var n=r(3937),a=r(4958),i=r(5392),o=r(2922),s=r(6073).onFreeze,c=Object.freeze;n({target:"Object",stat:!0,forced:i((function(){c(1)})),sham:!a},{freeze:function(e){return c&&o(e)?c(s(e)):e}})},662:(e,t,r)=>{var n=r(3937),a=r(5392),i=r(3238),o=r(9070).f,s=r(1724);n({target:"Object",stat:!0,forced:!s||a((function(){o(1)})),sham:!s},{getOwnPropertyDescriptor:function(e,t){return o(i(e),t)}})},7081:(e,t,r)=>{var n=r(3937),a=r(5392),i=r(2932).f;n({target:"Object",stat:!0,forced:a((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:i})},1344:(e,t,r)=>{var n=r(3937),a=r(2083),i=r(5392),o=r(68),s=r(4874);n({target:"Object",stat:!0,forced:!a||i((function(){o.f(1)}))},{getOwnPropertySymbols:function(e){var t=o.f;return t?t(s(e)):[]}})},3781:(e,t,r)=>{var n=r(3937),a=r(5392),i=r(4874),o=r(5401),s=r(7472);n({target:"Object",stat:!0,forced:a((function(){o(1)})),sham:!s},{getPrototypeOf:function(e){return o(i(e))}})},5900:(e,t,r)=>{r(3937)({target:"Object",stat:!0},{hasOwn:r(3531)})},2352:(e,t,r)=>{var n=r(3937),a=r(4874),i=r(5265);n({target:"Object",stat:!0,forced:r(5392)((function(){i(1)}))},{keys:function(e){return i(a(e))}})},7375:(e,t,r)=>{r(3937)({target:"Object",stat:!0},{setPrototypeOf:r(1)})},5849:(e,t,r)=>{var n=r(7804),a=r(3300),i=r(9732);n||a(Object.prototype,"toString",i,{unsafe:!0})},4411:(e,t,r)=>{var n=r(3937),a=r(6917).values;n({target:"Object",stat:!0},{values:function(e){return a(e)}})},6897:(e,t,r)=>{var n=r(3937),a=r(9684);n({global:!0,forced:parseFloat!==a},{parseFloat:a})},2361:(e,t,r)=>{var n=r(3937),a=r(4366);n({global:!0,forced:parseInt!==a},{parseInt:a})},4769:(e,t,r)=>{var n=r(3937),a=r(5304),i=r(607),o=r(1145),s=r(4938),c=r(1783);n({target:"Promise",stat:!0,forced:r(2034)},{allSettled:function(e){var t=this,r=o.f(t),n=r.resolve,u=r.reject,l=s((function(){var r=i(t.resolve),o=[],s=0,u=1;c(e,(function(e){var i=s++,c=!1;u++,a(r,t,e).then((function(e){c||(c=!0,o[i]={status:"fulfilled",value:e},--u||n(o))}),(function(e){c||(c=!0,o[i]={status:"rejected",reason:e},--u||n(o))}))})),--u||n(o)}));return l.error&&u(l.value),r.promise}})},8819:(e,t,r)=>{var n=r(3937),a=r(5304),i=r(607),o=r(1145),s=r(4938),c=r(1783);n({target:"Promise",stat:!0,forced:r(2034)},{all:function(e){var t=this,r=o.f(t),n=r.resolve,u=r.reject,l=s((function(){var r=i(t.resolve),o=[],s=0,l=1;c(e,(function(e){var i=s++,c=!1;l++,a(r,t,e).then((function(e){c||(c=!0,o[i]=e,--l||n(o))}),u)})),--l||n(o)}));return l.error&&u(l.value),r.promise}})},5940:(e,t,r)=>{var n=r(3937),a=r(5988),i=r(9041).CONSTRUCTOR,o=r(1911),s=r(6341),c=r(5547),u=r(3300),l=o&&o.prototype;if(n({target:"Promise",proto:!0,forced:i,real:!0},{catch:function(e){return this.then(void 0,e)}}),!a&&c(o)){var h=s("Promise").prototype.catch;l.catch!==h&&u(l,"catch",h,{unsafe:!0})}},6953:(e,t,r)=>{var n,a,i,o=r(3937),s=r(5988),c=r(6638),u=r(5628),l=r(5304),h=r(3300),f=r(1),d=r(869),p=r(5997),g=r(607),v=r(5547),m=r(2922),y=r(5312),b=r(6623),w=r(5902).set,k=r(2012),x=r(9896),S=r(4938),A=r(4947),C=r(5972),O=r(1911),F=r(9041),I=r(1145),T="Promise",M=F.CONSTRUCTOR,E=F.REJECTION_EVENT,P=F.SUBCLASSING,R=C.getterFor(T),N=C.set,D=O&&O.prototype,B=O,L=D,_=u.TypeError,j=u.document,U=u.process,$=I.f,X=$,H=!!(j&&j.createEvent&&u.dispatchEvent),q="unhandledrejection",z=function(e){var t;return!(!m(e)||!v(t=e.then))&&t},G=function(e,t){var r,n,a,i=t.value,o=1===t.state,s=o?e.ok:e.fail,c=e.resolve,u=e.reject,h=e.domain;try{s?(o||(2===t.rejection&&J(t),t.rejection=1),!0===s?r=i:(h&&h.enter(),r=s(i),h&&(h.exit(),a=!0)),r===e.promise?u(new _("Promise-chain cycle")):(n=z(r))?l(n,r,c,u):c(r)):u(i)}catch(e){h&&!a&&h.exit(),u(e)}},W=function(e,t){e.notified||(e.notified=!0,k((function(){for(var r,n=e.reactions;r=n.get();)G(r,e);e.notified=!1,t&&!e.rejection&&K(e)})))},V=function(e,t,r){var n,a;H?((n=j.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),u.dispatchEvent(n)):n={promise:t,reason:r},!E&&(a=u["on"+e])?a(n):e===q&&x("Unhandled promise rejection",r)},K=function(e){l(w,u,(function(){var t,r=e.facade,n=e.value;if(Y(e)&&(t=S((function(){c?U.emit("unhandledRejection",n,r):V(q,r,n)})),e.rejection=c||Y(e)?2:1,t.error))throw t.value}))},Y=function(e){return 1!==e.rejection&&!e.parent},J=function(e){l(w,u,(function(){var t=e.facade;c?U.emit("rejectionHandled",t):V("rejectionhandled",t,e.value)}))},Z=function(e,t,r){return function(n){e(t,n,r)}},Q=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,W(e,!0))},ee=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw new _("Promise can't be resolved itself");var n=z(t);n?k((function(){var r={done:!1};try{l(n,t,Z(ee,r,e),Z(Q,r,e))}catch(t){Q(r,t,e)}})):(e.value=t,e.state=1,W(e,!1))}catch(t){Q({done:!1},t,e)}}};if(M&&(L=(B=function(e){y(this,L),g(e),l(n,this);var t=R(this);try{e(Z(ee,t),Z(Q,t))}catch(e){Q(t,e)}}).prototype,(n=function(e){N(this,{type:T,done:!1,notified:!1,parent:!1,reactions:new A,rejection:!1,state:0,value:void 0})}).prototype=h(L,"then",(function(e,t){var r=R(this),n=$(b(this,B));return r.parent=!0,n.ok=!v(e)||e,n.fail=v(t)&&t,n.domain=c?U.domain:void 0,0===r.state?r.reactions.add(n):k((function(){G(n,r)})),n.promise})),a=function(){var e=new n,t=R(e);this.promise=e,this.resolve=Z(ee,t),this.reject=Z(Q,t)},I.f=$=function(e){return e===B||void 0===e?new a(e):X(e)},!s&&v(O)&&D!==Object.prototype)){i=D.then,P||h(D,"then",(function(e,t){var r=this;return new B((function(e,t){l(i,r,e,t)})).then(e,t)}),{unsafe:!0});try{delete D.constructor}catch(e){}f&&f(D,L)}o({global:!0,constructor:!0,wrap:!0,forced:M},{Promise:B}),d(B,T,!1,!0),p(T)},4996:(e,t,r)=>{var n=r(3937),a=r(5988),i=r(1911),o=r(5392),s=r(6341),c=r(5547),u=r(6623),l=r(5894),h=r(3300),f=i&&i.prototype;if(n({target:"Promise",proto:!0,real:!0,forced:!!i&&o((function(){f.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=u(this,s("Promise")),r=c(e);return this.then(r?function(r){return l(t,e()).then((function(){return r}))}:e,r?function(r){return l(t,e()).then((function(){throw r}))}:e)}}),!a&&c(i)){var d=s("Promise").prototype.finally;f.finally!==d&&h(f,"finally",d,{unsafe:!0})}},9242:(e,t,r)=>{r(6953),r(8819),r(5940),r(2398),r(9026),r(160)},2398:(e,t,r)=>{var n=r(3937),a=r(5304),i=r(607),o=r(1145),s=r(4938),c=r(1783);n({target:"Promise",stat:!0,forced:r(2034)},{race:function(e){var t=this,r=o.f(t),n=r.reject,u=s((function(){var o=i(t.resolve);c(e,(function(e){a(o,t,e).then(r.resolve,n)}))}));return u.error&&n(u.value),r.promise}})},9026:(e,t,r)=>{var n=r(3937),a=r(1145);n({target:"Promise",stat:!0,forced:r(9041).CONSTRUCTOR},{reject:function(e){var t=a.f(this);return(0,t.reject)(e),t.promise}})},160:(e,t,r)=>{var n=r(3937),a=r(6341),i=r(5988),o=r(1911),s=r(9041).CONSTRUCTOR,c=r(5894),u=a("Promise"),l=i&&!s;n({target:"Promise",stat:!0,forced:i||s},{resolve:function(e){return c(l&&this===u?o:this,e)}})},5288:(e,t,r)=>{var n=r(3937),a=r(9500),i=r(607),o=r(4738);n({target:"Reflect",stat:!0,forced:!r(5392)((function(){Reflect.apply((function(){}))}))},{apply:function(e,t,r){return a(i(e),t,o(r))}})},2168:(e,t,r)=>{var n=r(3937),a=r(6341),i=r(9500),o=r(1475),s=r(7497),c=r(4738),u=r(2922),l=r(5572),h=r(5392),f=a("Reflect","construct"),d=Object.prototype,p=[].push,g=h((function(){function e(){}return!(f((function(){}),[],e)instanceof e)})),v=!h((function(){f((function(){}))})),m=g||v;n({target:"Reflect",stat:!0,forced:m,sham:m},{construct:function(e,t){s(e),c(t);var r=arguments.length<3?e:s(arguments[2]);if(v&&!g)return f(e,t,r);if(e===r){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var n=[null];return i(p,n,t),new(i(o,e,n))}var a=r.prototype,h=l(u(a)?a:d),m=i(e,h,t);return u(m)?m:h}})},275:(e,t,r)=>{var n=r(3937),a=r(5304),i=r(2922),o=r(4738),s=r(7317),c=r(9070),u=r(5401);n({target:"Reflect",stat:!0},{get:function e(t,r){var n,l,h=arguments.length<3?t:arguments[2];return o(t)===h?t[r]:(n=c.f(t,r))?s(n)?n.value:void 0===n.get?void 0:a(n.get,h):i(l=u(t))?e(l,r,h):void 0}})},2076:(e,t,r)=>{var n=r(3937),a=r(5628),i=r(869);n({global:!0},{Reflect:{}}),i(a.Reflect,"Reflect",!0)},4601:(e,t,r)=>{var n=r(1724),a=r(5628),i=r(5207),o=r(5416),s=r(6673),c=r(9238),u=r(5572),l=r(3817).f,h=r(5692),f=r(5380),d=r(9338),p=r(2165),g=r(2053),v=r(7330),m=r(3300),y=r(5392),b=r(3531),w=r(5972).enforce,k=r(5997),x=r(5553),S=r(9383),A=r(3275),C=x("match"),O=a.RegExp,F=O.prototype,I=a.SyntaxError,T=i(F.exec),M=i("".charAt),E=i("".replace),P=i("".indexOf),R=i("".slice),N=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,D=/a/g,B=/a/g,L=new O(D)!==D,_=g.MISSED_STICKY,j=g.UNSUPPORTED_Y;if(o("RegExp",n&&(!L||_||S||A||y((function(){return B[C]=!1,O(D)!==D||O(B)===B||"/a/i"!==String(O(D,"i"))}))))){for(var U=function(e,t){var r,n,a,i,o,l,g=h(F,this),v=f(e),m=void 0===t,y=[],k=e;if(!g&&v&&m&&e.constructor===U)return e;if((v||h(F,e))&&(e=e.source,m&&(t=p(k))),e=void 0===e?"":d(e),t=void 0===t?"":d(t),k=e,S&&"dotAll"in D&&(n=!!t&&P(t,"s")>-1)&&(t=E(t,/s/g,"")),r=t,_&&"sticky"in D&&(a=!!t&&P(t,"y")>-1)&&j&&(t=E(t,/y/g,"")),A&&(i=function(e){for(var t,r=e.length,n=0,a="",i=[],o=u(null),s=!1,c=!1,l=0,h="";n<=r;n++){if("\\"===(t=M(e,n)))t+=M(e,++n);else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:T(N,R(e,n+1))&&(n+=2,c=!0),a+=t,l++;continue;case">"===t&&c:if(""===h||b(o,h))throw new I("Invalid capture group name");o[h]=!0,i[i.length]=[h,l],c=!1,h="";continue}c?h+=t:a+=t}return[a,i]}(e),e=i[0],y=i[1]),o=s(O(e,t),g?this:F,U),(n||a||y.length)&&(l=w(o),n&&(l.dotAll=!0,l.raw=U(function(e){for(var t,r=e.length,n=0,a="",i=!1;n<=r;n++)"\\"!==(t=M(e,n))?i||"."!==t?("["===t?i=!0:"]"===t&&(i=!1),a+=t):a+="[\\s\\S]":a+=t+M(e,++n);return a}(e),r)),a&&(l.sticky=!0),y.length&&(l.groups=y)),e!==k)try{c(o,"source",""===k?"(?:)":k)}catch(e){}return o},$=l(O),X=0;$.length>X;)v(U,O,$[X++]);F.constructor=U,U.prototype=F,m(a,"RegExp",U,{constructor:!0})}k("RegExp")},9336:(e,t,r)=>{var n=r(1724),a=r(9383),i=r(5067),o=r(7416),s=r(5972).get,c=RegExp.prototype,u=TypeError;n&&a&&o(c,"dotAll",{configurable:!0,get:function(){if(this!==c){if("RegExp"===i(this))return!!s(this).dotAll;throw new u("Incompatible receiver, RegExp required")}}})},6433:(e,t,r)=>{var n=r(3937),a=r(4493);n({target:"RegExp",proto:!0,forced:/./.exec!==a},{exec:a})},2363:(e,t,r)=>{var n=r(5628),a=r(1724),i=r(7416),o=r(5337),s=r(5392),c=n.RegExp,u=c.prototype;a&&s((function(){var e=!0;try{c(".","d")}catch(t){e=!1}var t={},r="",n=e?"dgimsy":"gimsy",a=function(e,n){Object.defineProperty(t,e,{get:function(){return r+=n,!0}})},i={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var o in e&&(i.hasIndices="d"),i)a(o,i[o]);return Object.getOwnPropertyDescriptor(u,"flags").get.call(t)!==n||r!==n}))&&i(u,"flags",{configurable:!0,get:o})},6053:(e,t,r)=>{var n=r(1724),a=r(2053).MISSED_STICKY,i=r(5067),o=r(7416),s=r(5972).get,c=RegExp.prototype,u=TypeError;n&&a&&o(c,"sticky",{configurable:!0,get:function(){if(this!==c){if("RegExp"===i(this))return!!s(this).sticky;throw new u("Incompatible receiver, RegExp required")}}})},970:(e,t,r)=>{r(6433);var n,a,i=r(3937),o=r(5304),s=r(5547),c=r(4738),u=r(9338),l=(n=!1,(a=/[ac]/).exec=function(){return n=!0,/./.exec.apply(this,arguments)},!0===a.test("abc")&&n),h=/./.test;i({target:"RegExp",proto:!0,forced:!l},{test:function(e){var t=c(this),r=u(e),n=t.exec;if(!s(n))return o(h,t,r);var a=o(n,t,r);return null!==a&&(c(a),!0)}})},9800:(e,t,r)=>{var n=r(4930).PROPER,a=r(3300),i=r(4738),o=r(9338),s=r(5392),c=r(2165),u="toString",l=RegExp.prototype,h=l[u],f=s((function(){return"/a/b"!==h.call({source:"a",flags:"b"})})),d=n&&h.name!==u;(f||d)&&a(l,u,(function(){var e=i(this);return"/"+o(e.source)+"/"+o(c(e))}),{unsafe:!0})},3215:(e,t,r)=>{r(4866)("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),r(1430))},8227:(e,t,r)=>{r(3215)},3049:(e,t,r)=>{var n=r(3937),a=r(5207),i=r(4202),o=r(2501),s=r(9338),c=r(5392),u=a("".charAt);n({target:"String",proto:!0,forced:c((function(){return"\ud842"!=="𠮷".at(-2)}))},{at:function(e){var t=s(i(this)),r=t.length,n=o(e),a=n>=0?n:r+n;return a<0||a>=r?void 0:u(t,a)}})},8950:(e,t,r)=>{var n=r(3937),a=r(4942).codeAt;n({target:"String",proto:!0},{codePointAt:function(e){return a(this,e)}})},8942:(e,t,r)=>{var n,a=r(3937),i=r(8209),o=r(9070).f,s=r(7450),c=r(9338),u=r(5066),l=r(4202),h=r(2092),f=r(5988),d=i("".slice),p=Math.min,g=h("endsWith");a({target:"String",proto:!0,forced:!(!f&&!g&&(n=o(String.prototype,"endsWith"),n&&!n.writable)||g)},{endsWith:function(e){var t=c(l(this));u(e);var r=arguments.length>1?arguments[1]:void 0,n=t.length,a=void 0===r?n:p(s(r),n),i=c(e);return d(t,a-i.length,a)===i}})},9048:(e,t,r)=>{var n=r(3937),a=r(5207),i=r(645),o=RangeError,s=String.fromCharCode,c=String.fromCodePoint,u=a([].join);n({target:"String",stat:!0,arity:1,forced:!!c&&1!==c.length},{fromCodePoint:function(e){for(var t,r=[],n=arguments.length,a=0;n>a;){if(t=+arguments[a++],i(t,1114111)!==t)throw new o(t+" is not a valid code point");r[a]=t<65536?s(t):s(55296+((t-=65536)>>10),t%1024+56320)}return u(r,"")}})},3292:(e,t,r)=>{var n=r(3937),a=r(5207),i=r(5066),o=r(4202),s=r(9338),c=r(2092),u=a("".indexOf);n({target:"String",proto:!0,forced:!c("includes")},{includes:function(e){return!!~u(s(o(this)),s(i(e)),arguments.length>1?arguments[1]:void 0)}})},3990:(e,t,r)=>{var n=r(4942).charAt,a=r(9338),i=r(5972),o=r(5341),s=r(9925),c="String Iterator",u=i.set,l=i.getterFor(c);o(String,"String",(function(e){u(this,{type:c,string:a(e),index:0})}),(function(){var e,t=l(this),r=t.string,a=t.index;return a>=r.length?s(void 0,!0):(e=n(r,a),t.index+=e.length,s(e,!1))}))},7874:(e,t,r)=>{var n=r(5304),a=r(739),i=r(4738),o=r(7930),s=r(7450),c=r(9338),u=r(4202),l=r(2698),h=r(293),f=r(2493);a("match",(function(e,t,r){return[function(t){var r=u(this),a=o(t)?void 0:l(t,e);return a?n(a,t,r):new RegExp(t)[e](c(r))},function(e){var n=i(this),a=c(e),o=r(t,n,a);if(o.done)return o.value;if(!n.global)return f(n,a);var u=n.unicode;n.lastIndex=0;for(var l,d=[],p=0;null!==(l=f(n,a));){var g=c(l[0]);d[p]=g,""===g&&(n.lastIndex=h(a,s(n.lastIndex),u)),p++}return 0===p?null:d}]}))},8794:(e,t,r)=>{var n=r(3937),a=r(9414).start;n({target:"String",proto:!0,forced:r(6754)},{padStart:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}})},4200:(e,t,r)=>{r(3937)({target:"String",proto:!0},{repeat:r(1069)})},34:(e,t,r)=>{var n=r(3937),a=r(5304),i=r(5207),o=r(4202),s=r(5547),c=r(7930),u=r(5380),l=r(9338),h=r(2698),f=r(2165),d=r(5095),p=r(5553),g=r(5988),v=p("replace"),m=TypeError,y=i("".indexOf),b=i("".replace),w=i("".slice),k=Math.max,x=function(e,t,r){return r>e.length?-1:""===t?r:y(e,t,r)};n({target:"String",proto:!0},{replaceAll:function(e,t){var r,n,i,p,S,A,C,O,F,I=o(this),T=0,M=0,E="";if(!c(e)){if((r=u(e))&&(n=l(o(f(e))),!~y(n,"g")))throw new m("`.replaceAll` does not allow non-global regexes");if(i=h(e,v))return a(i,e,I,t);if(g&&r)return b(l(I),e,t)}for(p=l(I),S=l(e),(A=s(t))||(t=l(t)),C=S.length,O=k(1,C),T=x(p,S,0);-1!==T;)F=A?l(t(S,T,p)):d(S,p,T,[],void 0,t),E+=w(p,M,T)+F,M=T+C,T=x(p,S,T+O);return M{var n=r(9500),a=r(5304),i=r(5207),o=r(739),s=r(5392),c=r(4738),u=r(5547),l=r(7930),h=r(2501),f=r(7450),d=r(9338),p=r(4202),g=r(293),v=r(2698),m=r(5095),y=r(2493),b=r(5553)("replace"),w=Math.max,k=Math.min,x=i([].concat),S=i([].push),A=i("".indexOf),C=i("".slice),O="$0"==="a".replace(/./,"$0"),F=!!/./[b]&&""===/./[b]("a","$0");o("replace",(function(e,t,r){var i=F?"$":"$0";return[function(e,r){var n=p(this),i=l(e)?void 0:v(e,b);return i?a(i,e,n,r):a(t,d(n),e,r)},function(e,a){var o=c(this),s=d(e);if("string"==typeof a&&-1===A(a,i)&&-1===A(a,"$<")){var l=r(t,o,s,a);if(l.done)return l.value}var p=u(a);p||(a=d(a));var v,b=o.global;b&&(v=o.unicode,o.lastIndex=0);for(var O,F=[];null!==(O=y(o,s))&&(S(F,O),b);)""===d(O[0])&&(o.lastIndex=g(s,f(o.lastIndex),v));for(var I,T="",M=0,E=0;E=M&&(T+=C(s,M,N)+P,M=N+R.length)}return T+C(s,M)}]}),!!s((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$")}))||!O||F)},1063:(e,t,r)=>{var n=r(9500),a=r(5304),i=r(5207),o=r(739),s=r(4738),c=r(7930),u=r(5380),l=r(4202),h=r(6623),f=r(293),d=r(7450),p=r(9338),g=r(2698),v=r(4997),m=r(2493),y=r(4493),b=r(2053),w=r(5392),k=b.UNSUPPORTED_Y,x=4294967295,S=Math.min,A=[].push,C=i(/./.exec),O=i(A),F=i("".slice);o("split",(function(e,t,r){var i;return i="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,r){var i=p(l(this)),o=void 0===r?x:r>>>0;if(0===o)return[];if(void 0===e)return[i];if(!u(e))return a(t,i,e,o);for(var s,c,h,f=[],d=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),g=0,m=new RegExp(e.source,d+"g");(s=a(y,m,i))&&!((c=m.lastIndex)>g&&(O(f,F(i,g,s.index)),s.length>1&&s.index=o));)m.lastIndex===s.index&&m.lastIndex++;return g===i.length?!h&&C(m,"")||O(f,""):O(f,F(i,g)),f.length>o?v(f,0,o):f}:"0".split(void 0,0).length?function(e,r){return void 0===e&&0===r?[]:a(t,this,e,r)}:t,[function(t,r){var n=l(this),o=c(t)?void 0:g(t,e);return o?a(o,t,n,r):a(i,p(n),t,r)},function(e,n){var a=s(this),o=p(e),c=r(i,a,o,n,i!==t);if(c.done)return c.value;var u=h(a,RegExp),l=a.unicode,g=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(k?"g":"y"),v=new u(k?"^(?:"+a.source+")":a,g),y=void 0===n?x:n>>>0;if(0===y)return[];if(0===o.length)return null===m(v,o)?[o]:[];for(var b=0,w=0,A=[];w{var n,a=r(3937),i=r(8209),o=r(9070).f,s=r(7450),c=r(9338),u=r(5066),l=r(4202),h=r(2092),f=r(5988),d=i("".slice),p=Math.min,g=h("startsWith");a({target:"String",proto:!0,forced:!(!f&&!g&&(n=o(String.prototype,"startsWith"),n&&!n.writable)||g)},{startsWith:function(e){var t=c(l(this));u(e);var r=s(p(arguments.length>1?arguments[1]:void 0,t.length)),n=c(e);return d(t,r,r+n.length)===n}})},7213:(e,t,r)=>{var n=r(3937),a=r(4922).trim;n({target:"String",proto:!0,forced:r(5215)("trim")},{trim:function(){return a(this)}})},4345:(e,t,r)=>{r(1641)("asyncIterator")},533:(e,t,r)=>{var n=r(3937),a=r(5628),i=r(5304),o=r(5207),s=r(5988),c=r(1724),u=r(2083),l=r(5392),h=r(3531),f=r(5692),d=r(4738),p=r(3238),g=r(3561),v=r(9338),m=r(7999),y=r(5572),b=r(5265),w=r(3817),k=r(2932),x=r(68),S=r(9070),A=r(2030),C=r(3742),O=r(5085),F=r(3300),I=r(7416),T=r(7995),M=r(2992),E=r(6710),P=r(1188),R=r(5553),N=r(1884),D=r(1641),B=r(499),L=r(869),_=r(5972),j=r(6682).forEach,U=M("hidden"),$="Symbol",X="prototype",H=_.set,q=_.getterFor($),z=Object[X],G=a.Symbol,W=G&&G[X],V=a.RangeError,K=a.TypeError,Y=a.QObject,J=S.f,Z=A.f,Q=k.f,ee=O.f,te=o([].push),re=T("symbols"),ne=T("op-symbols"),ae=T("wks"),ie=!Y||!Y[X]||!Y[X].findChild,oe=function(e,t,r){var n=J(z,t);n&&delete z[t],Z(e,t,r),n&&e!==z&&Z(z,t,n)},se=c&&l((function(){return 7!==y(Z({},"a",{get:function(){return Z(this,"a",{value:7}).a}})).a}))?oe:Z,ce=function(e,t){var r=re[e]=y(W);return H(r,{type:$,tag:e,description:t}),c||(r.description=t),r},ue=function(e,t,r){e===z&&ue(ne,t,r),d(e);var n=g(t);return d(r),h(re,n)?(r.enumerable?(h(e,U)&&e[U][n]&&(e[U][n]=!1),r=y(r,{enumerable:m(0,!1)})):(h(e,U)||Z(e,U,m(1,y(null))),e[U][n]=!0),se(e,n,r)):Z(e,n,r)},le=function(e,t){d(e);var r=p(t),n=b(r).concat(pe(r));return j(n,(function(t){c&&!i(he,r,t)||ue(e,t,r[t])})),e},he=function(e){var t=g(e),r=i(ee,this,t);return!(this===z&&h(re,t)&&!h(ne,t))&&(!(r||!h(this,t)||!h(re,t)||h(this,U)&&this[U][t])||r)},fe=function(e,t){var r=p(e),n=g(t);if(r!==z||!h(re,n)||h(ne,n)){var a=J(r,n);return!a||!h(re,n)||h(r,U)&&r[U][n]||(a.enumerable=!0),a}},de=function(e){var t=Q(p(e)),r=[];return j(t,(function(e){h(re,e)||h(E,e)||te(r,e)})),r},pe=function(e){var t=e===z,r=Q(t?ne:p(e)),n=[];return j(r,(function(e){!h(re,e)||t&&!h(z,e)||te(n,re[e])})),n};u||(F(W=(G=function(){if(f(W,this))throw new K("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?v(arguments[0]):void 0,t=P(e),r=function(e){var n=void 0===this?a:this;n===z&&i(r,ne,e),h(n,U)&&h(n[U],t)&&(n[U][t]=!1);var o=m(1,e);try{se(n,t,o)}catch(e){if(!(e instanceof V))throw e;oe(n,t,o)}};return c&&ie&&se(z,t,{configurable:!0,set:r}),ce(t,e)})[X],"toString",(function(){return q(this).tag})),F(G,"withoutSetter",(function(e){return ce(P(e),e)})),O.f=he,A.f=ue,C.f=le,S.f=fe,w.f=k.f=de,x.f=pe,N.f=function(e){return ce(R(e),e)},c&&(I(W,"description",{configurable:!0,get:function(){return q(this).description}}),s||F(z,"propertyIsEnumerable",he,{unsafe:!0}))),n({global:!0,constructor:!0,wrap:!0,forced:!u,sham:!u},{Symbol:G}),j(b(ae),(function(e){D(e)})),n({target:$,stat:!0,forced:!u},{useSetter:function(){ie=!0},useSimple:function(){ie=!1}}),n({target:"Object",stat:!0,forced:!u,sham:!c},{create:function(e,t){return void 0===t?y(e):le(y(e),t)},defineProperty:ue,defineProperties:le,getOwnPropertyDescriptor:fe}),n({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:de}),B(),L(G,$),E[U]=!0},2437:(e,t,r)=>{var n=r(3937),a=r(1724),i=r(5628),o=r(5207),s=r(3531),c=r(5547),u=r(5692),l=r(9338),h=r(7416),f=r(469),d=i.Symbol,p=d&&d.prototype;if(a&&c(d)&&(!("description"in p)||void 0!==d().description)){var g={},v=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:l(arguments[0]),t=u(p,this)?new d(e):void 0===e?d():d(e);return""===e&&(g[t]=!0),t};f(v,d),v.prototype=p,p.constructor=v;var m="Symbol(description detection)"===String(d("description detection")),y=o(p.valueOf),b=o(p.toString),w=/^Symbol\((.*)\)[^)]+$/,k=o("".replace),x=o("".slice);h(p,"description",{configurable:!0,get:function(){var e=y(this);if(s(g,e))return"";var t=b(e),r=m?x(t,7,-1):k(t,w,"$1");return""===r?void 0:r}}),n({global:!0,constructor:!0,forced:!0},{Symbol:v})}},7531:(e,t,r)=>{var n=r(3937),a=r(6341),i=r(3531),o=r(9338),s=r(7995),c=r(4429),u=s("string-to-symbol-registry"),l=s("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!c},{for:function(e){var t=o(e);if(i(u,t))return u[t];var r=a("Symbol")(t);return u[t]=r,l[r]=t,r}})},12:(e,t,r)=>{r(1641)("iterator")},1788:(e,t,r)=>{r(533),r(7531),r(8533),r(3991),r(1344)},8533:(e,t,r)=>{var n=r(3937),a=r(3531),i=r(6610),o=r(3454),s=r(7995),c=r(4429),u=s("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!c},{keyFor:function(e){if(!i(e))throw new TypeError(o(e)+" is not a symbol");if(a(u,e))return u[e]}})},2342:(e,t,r)=>{var n=r(1641),a=r(499);n("toPrimitive"),a()},6106:(e,t,r)=>{var n=r(6341),a=r(1641),i=r(869);a("toStringTag"),i(n("Symbol"),"Symbol")},8019:(e,t,r)=>{var n=r(5192),a=r(1024),i=r(2501),o=n.aTypedArray;(0,n.exportTypedArrayMethod)("at",(function(e){var t=o(this),r=a(t),n=i(e),s=n>=0?n:r+n;return s<0||s>=r?void 0:t[s]}))},9753:(e,t,r)=>{var n=r(5207),a=r(5192),i=n(r(52)),o=a.aTypedArray;(0,a.exportTypedArrayMethod)("copyWithin",(function(e,t){return i(o(this),e,t,arguments.length>2?arguments[2]:void 0)}))},7543:(e,t,r)=>{var n=r(5192),a=r(6682).every,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("every",(function(e){return a(i(this),e,arguments.length>1?arguments[1]:void 0)}))},8400:(e,t,r)=>{var n=r(5192),a=r(3039),i=r(3810),o=r(1331),s=r(5304),c=r(5207),u=r(5392),l=n.aTypedArray,h=n.exportTypedArrayMethod,f=c("".slice);h("fill",(function(e){var t=arguments.length;l(this);var r="Big"===f(o(this),0,3)?i(e):+e;return s(a,this,r,t>1?arguments[1]:void 0,t>2?arguments[2]:void 0)}),u((function(){var e=0;return new Int8Array(2).fill({valueOf:function(){return e++}}),1!==e})))},5526:(e,t,r)=>{var n=r(5192),a=r(6682).filter,i=r(9910),o=n.aTypedArray;(0,n.exportTypedArrayMethod)("filter",(function(e){var t=a(o(this),e,arguments.length>1?arguments[1]:void 0);return i(this,t)}))},4410:(e,t,r)=>{var n=r(5192),a=r(6682).findIndex,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("findIndex",(function(e){return a(i(this),e,arguments.length>1?arguments[1]:void 0)}))},7527:(e,t,r)=>{var n=r(5192),a=r(8648).findLastIndex,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("findLastIndex",(function(e){return a(i(this),e,arguments.length>1?arguments[1]:void 0)}))},6601:(e,t,r)=>{var n=r(5192),a=r(8648).findLast,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("findLast",(function(e){return a(i(this),e,arguments.length>1?arguments[1]:void 0)}))},3174:(e,t,r)=>{var n=r(5192),a=r(6682).find,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("find",(function(e){return a(i(this),e,arguments.length>1?arguments[1]:void 0)}))},2524:(e,t,r)=>{r(3116)("Float32",(function(e){return function(t,r,n){return e(this,t,r,n)}}))},3143:(e,t,r)=>{r(3116)("Float64",(function(e){return function(t,r,n){return e(this,t,r,n)}}))},4303:(e,t,r)=>{var n=r(5192),a=r(6682).forEach,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("forEach",(function(e){a(i(this),e,arguments.length>1?arguments[1]:void 0)}))},2457:(e,t,r)=>{var n=r(5192),a=r(3458).includes,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("includes",(function(e){return a(i(this),e,arguments.length>1?arguments[1]:void 0)}))},8151:(e,t,r)=>{var n=r(5192),a=r(3458).indexOf,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("indexOf",(function(e){return a(i(this),e,arguments.length>1?arguments[1]:void 0)}))},6104:(e,t,r)=>{r(3116)("Int16",(function(e){return function(t,r,n){return e(this,t,r,n)}}))},4295:(e,t,r)=>{r(3116)("Int32",(function(e){return function(t,r,n){return e(this,t,r,n)}}))},7118:(e,t,r)=>{r(3116)("Int8",(function(e){return function(t,r,n){return e(this,t,r,n)}}))},8134:(e,t,r)=>{var n=r(5628),a=r(5392),i=r(5207),o=r(5192),s=r(3313),c=r(5553)("iterator"),u=n.Uint8Array,l=i(s.values),h=i(s.keys),f=i(s.entries),d=o.aTypedArray,p=o.exportTypedArrayMethod,g=u&&u.prototype,v=!a((function(){g[c].call([1])})),m=!!g&&g.values&&g[c]===g.values&&"values"===g.values.name,y=function(){return l(d(this))};p("entries",(function(){return f(d(this))}),v),p("keys",(function(){return h(d(this))}),v),p("values",y,v||!m,{name:"values"}),p(c,y,v||!m,{name:"values"})},6359:(e,t,r)=>{var n=r(5192),a=r(5207),i=n.aTypedArray,o=n.exportTypedArrayMethod,s=a([].join);o("join",(function(e){return s(i(this),e)}))},5040:(e,t,r)=>{var n=r(5192),a=r(9500),i=r(798),o=n.aTypedArray;(0,n.exportTypedArrayMethod)("lastIndexOf",(function(e){var t=arguments.length;return a(i,o(this),t>1?[e,arguments[1]]:[e])}))},262:(e,t,r)=>{var n=r(5192),a=r(6682).map,i=r(7709),o=n.aTypedArray;(0,n.exportTypedArrayMethod)("map",(function(e){return a(o(this),e,arguments.length>1?arguments[1]:void 0,(function(e,t){return new(i(e))(t)}))}))},1963:(e,t,r)=>{var n=r(5192),a=r(2253).right,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("reduceRight",(function(e){var t=arguments.length;return a(i(this),e,t,t>1?arguments[1]:void 0)}))},2607:(e,t,r)=>{var n=r(5192),a=r(2253).left,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("reduce",(function(e){var t=arguments.length;return a(i(this),e,t,t>1?arguments[1]:void 0)}))},8035:(e,t,r)=>{var n=r(5192),a=n.aTypedArray,i=n.exportTypedArrayMethod,o=Math.floor;i("reverse",(function(){for(var e,t=this,r=a(t).length,n=o(r/2),i=0;i{var n=r(5628),a=r(5304),i=r(5192),o=r(1024),s=r(9370),c=r(4874),u=r(5392),l=n.RangeError,h=n.Int8Array,f=h&&h.prototype,d=f&&f.set,p=i.aTypedArray,g=i.exportTypedArrayMethod,v=!u((function(){var e=new Uint8ClampedArray(2);return a(d,e,{length:1,0:3},1),3!==e[1]})),m=v&&i.NATIVE_ARRAY_BUFFER_VIEWS&&u((function(){var e=new h(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]}));g("set",(function(e){p(this);var t=s(arguments.length>1?arguments[1]:void 0,1),r=c(e);if(v)return a(d,this,r,t);var n=this.length,i=o(r),u=0;if(i+t>n)throw new l("Wrong length");for(;u{var n=r(5192),a=r(7709),i=r(5392),o=r(4997),s=n.aTypedArray;(0,n.exportTypedArrayMethod)("slice",(function(e,t){for(var r=o(s(this),e,t),n=a(this),i=0,c=r.length,u=new n(c);c>i;)u[i]=r[i++];return u}),i((function(){new Int8Array(1).slice()})))},9131:(e,t,r)=>{var n=r(5192),a=r(6682).some,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("some",(function(e){return a(i(this),e,arguments.length>1?arguments[1]:void 0)}))},3956:(e,t,r)=>{var n=r(5628),a=r(8209),i=r(5392),o=r(607),s=r(9158),c=r(5192),u=r(6890),l=r(3326),h=r(6262),f=r(2122),d=c.aTypedArray,p=c.exportTypedArrayMethod,g=n.Uint16Array,v=g&&a(g.prototype.sort),m=!(!v||i((function(){v(new g(2),null)}))&&i((function(){v(new g(2),{})}))),y=!!v&&!i((function(){if(h)return h<74;if(u)return u<67;if(l)return!0;if(f)return f<602;var e,t,r=new g(516),n=Array(516);for(e=0;e<516;e++)t=e%4,r[e]=515-e,n[e]=e-2*t+3;for(v(r,(function(e,t){return(e/4|0)-(t/4|0)})),e=0;e<516;e++)if(r[e]!==n[e])return!0}));p("sort",(function(e){return void 0!==e&&o(e),y?v(this,e):s(d(this),function(e){return function(t,r){return void 0!==e?+e(t,r)||0:r!=r?-1:t!=t?1:0===t&&0===r?1/t>0&&1/r<0?1:-1:t>r}}(e))}),!y||m)},4085:(e,t,r)=>{var n=r(5628),a=r(9500),i=r(5192),o=r(5392),s=r(4997),c=n.Int8Array,u=i.aTypedArray,l=i.exportTypedArrayMethod,h=[].toLocaleString,f=!!c&&o((function(){h.call(new c(1))}));l("toLocaleString",(function(){return a(h,f?s(u(this)):u(this),s(arguments))}),o((function(){return[1,2].toLocaleString()!==new c([1,2]).toLocaleString()}))||!o((function(){c.prototype.toLocaleString.call([1,2])})))},5683:(e,t,r)=>{var n=r(8067),a=r(5192),i=a.aTypedArray,o=a.exportTypedArrayMethod,s=a.getTypedArrayConstructor;o("toReversed",(function(){return n(i(this),s(this))}))},9529:(e,t,r)=>{var n=r(5192),a=r(5207),i=r(607),o=r(9353),s=n.aTypedArray,c=n.getTypedArrayConstructor,u=n.exportTypedArrayMethod,l=a(n.TypedArrayPrototype.sort);u("toSorted",(function(e){void 0!==e&&i(e);var t=s(this),r=o(c(t),t);return l(r,e)}))},9964:(e,t,r)=>{var n=r(5192).exportTypedArrayMethod,a=r(5392),i=r(5628),o=r(5207),s=i.Uint8Array,c=s&&s.prototype||{},u=[].toString,l=o([].join);a((function(){u.call({})}))&&(u=function(){return l(this)});var h=c.toString!==u;n("toString",u,h)},5055:(e,t,r)=>{r(3116)("Uint16",(function(e){return function(t,r,n){return e(this,t,r,n)}}))},6552:(e,t,r)=>{r(3116)("Uint32",(function(e){return function(t,r,n){return e(this,t,r,n)}}))},950:(e,t,r)=>{r(3116)("Uint8",(function(e){return function(t,r,n){return e(this,t,r,n)}}))},5222:(e,t,r)=>{r(3116)("Uint8",(function(e){return function(t,r,n){return e(this,t,r,n)}}),!0)},6506:(e,t,r)=>{var n=r(9677),a=r(5192),i=r(3669),o=r(2501),s=r(3810),c=a.aTypedArray,u=a.getTypedArrayConstructor,l=a.exportTypedArrayMethod,h=!!function(){try{new Int8Array(1).with(2,{valueOf:function(){throw 8}})}catch(e){return 8===e}}();l("with",{with:function(e,t){var r=c(this),a=o(e),l=i(r)?s(t):+t;return n(r,u(r),a,l)}}.with,!h)},9330:(e,t,r)=>{var n,a=r(4958),i=r(5628),o=r(5207),s=r(9711),c=r(6073),u=r(4866),l=r(3287),h=r(2922),f=r(5972).enforce,d=r(5392),p=r(1337),g=Object,v=Array.isArray,m=g.isExtensible,y=g.isFrozen,b=g.isSealed,w=g.freeze,k=g.seal,x=!i.ActiveXObject&&"ActiveXObject"in i,S=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},A=u("WeakMap",S,l),C=A.prototype,O=o(C.set);if(p)if(x){n=l.getConstructor(S,"WeakMap",!0),c.enable();var F=o(C.delete),I=o(C.has),T=o(C.get);s(C,{delete:function(e){if(h(e)&&!m(e)){var t=f(this);return t.frozen||(t.frozen=new n),F(this,e)||t.frozen.delete(e)}return F(this,e)},has:function(e){if(h(e)&&!m(e)){var t=f(this);return t.frozen||(t.frozen=new n),I(this,e)||t.frozen.has(e)}return I(this,e)},get:function(e){if(h(e)&&!m(e)){var t=f(this);return t.frozen||(t.frozen=new n),I(this,e)?T(this,e):t.frozen.get(e)}return T(this,e)},set:function(e,t){if(h(e)&&!m(e)){var r=f(this);r.frozen||(r.frozen=new n),I(this,e)?O(this,e,t):r.frozen.set(e,t)}else O(this,e,t);return this}})}else a&&d((function(){var e=w([]);return O(new A,e,1),!y(e)}))&&s(C,{set:function(e,t){var r;return v(e)&&(y(e)?r=w:b(e)&&(r=k)),O(this,e,t),r&&r(e),this}})},1464:(e,t,r)=>{r(9330)},3388:(e,t,r)=>{r(4866)("WeakSet",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),r(3287))},4597:(e,t,r)=>{r(3388)},9840:(e,t,r)=>{var n=r(3937),a=r(5628),i=r(6341),o=r(5207),s=r(5304),c=r(5392),u=r(9338),l=r(8769),h=r(809).c2i,f=/[^\d+/a-z]/i,d=/[\t\n\f\r ]+/g,p=/[=]{1,2}$/,g=i("atob"),v=String.fromCharCode,m=o("".charAt),y=o("".replace),b=o(f.exec),w=!!g&&!c((function(){return"hi"!==g("aGk=")})),k=w&&c((function(){return""!==g(" ")})),x=w&&!c((function(){g("a")})),S=w&&!c((function(){g()})),A=w&&1!==g.length;n({global:!0,bind:!0,enumerable:!0,forced:!w||k||x||S||A},{atob:function(e){if(l(arguments.length,1),w&&!k&&!x)return s(g,a,e);var t,r,n,o=y(u(e),d,""),c="",S=0,A=0;if(o.length%4==0&&(o=y(o,p,"")),(t=o.length)%4==1||b(f,o))throw new(i("DOMException"))("The string is not correctly encoded","InvalidCharacterError");for(;S>(-2*A&6)));return c}})},6109:(e,t,r)=>{var n=r(5628),a=r(1151),i=r(9128),o=r(755),s=r(9238),c=function(e){if(e&&e.forEach!==o)try{s(e,"forEach",o)}catch(t){e.forEach=o}};for(var u in a)a[u]&&c(n[u]&&n[u].prototype);c(i)},9012:(e,t,r)=>{var n=r(5628),a=r(1151),i=r(9128),o=r(3313),s=r(9238),c=r(869),u=r(5553)("iterator"),l=o.values,h=function(e,t){if(e){if(e[u]!==l)try{s(e,u,l)}catch(t){e[u]=l}if(c(e,t,!0),a[t])for(var r in o)if(e[r]!==o[r])try{s(e,r,o[r])}catch(t){e[r]=o[r]}}};for(var f in a)h(n[f]&&n[f].prototype,f);h(i,"DOMTokenList")},4881:(e,t,r)=>{var n=r(3937),a=r(5254),i=r(6341),o=r(5392),s=r(5572),c=r(7999),u=r(2030).f,l=r(3300),h=r(7416),f=r(3531),d=r(5312),p=r(4738),g=r(4602),v=r(7797),m=r(580),y=r(3580),b=r(5972),w=r(1724),k=r(5988),x="DOMException",S="DATA_CLONE_ERR",A=i("Error"),C=i(x)||function(){try{(new(i("MessageChannel")||a("worker_threads").MessageChannel)).port1.postMessage(new WeakMap)}catch(e){if(e.name===S&&25===e.code)return e.constructor}}(),O=C&&C.prototype,F=A.prototype,I=b.set,T=b.getterFor(x),M="stack"in new A(x),E=function(e){return f(m,e)&&m[e].m?m[e].c:0},P=function(){d(this,R);var e=arguments.length,t=v(e<1?void 0:arguments[0]),r=v(e<2?void 0:arguments[1],"Error"),n=E(r);if(I(this,{type:x,name:r,message:t,code:n}),w||(this.name=r,this.message=t,this.code=n),M){var a=new A(t);a.name=x,u(this,"stack",c(1,y(a.stack,1)))}},R=P.prototype=s(F),N=function(e){return{enumerable:!0,configurable:!0,get:e}},D=function(e){return N((function(){return T(this)[e]}))};w&&(h(R,"code",D("code")),h(R,"message",D("message")),h(R,"name",D("name"))),u(R,"constructor",c(1,P));var B=o((function(){return!(new C instanceof A)})),L=B||o((function(){return F.toString!==g||"2: 1"!==String(new C(1,2))})),_=B||o((function(){return 25!==new C(1,"DataCloneError").code})),j=B||25!==C[S]||25!==O[S],U=k?L||_||j:B;n({global:!0,constructor:!0,forced:U},{DOMException:U?P:C});var $=i(x),X=$.prototype;for(var H in L&&(k||C===$)&&l(X,"toString",g),_&&w&&C===$&&h(X,"code",N((function(){return E(p(this).name)}))),m)if(f(m,H)){var q=m[H],z=q.s,G=c(6,q.c);f($,z)||u($,z,G),f(X,z)||u(X,z,G)}},7198:(e,t,r)=>{var n=r(3937),a=r(5628),i=r(6341),o=r(7999),s=r(2030).f,c=r(3531),u=r(5312),l=r(6673),h=r(7797),f=r(580),d=r(3580),p=r(1724),g=r(5988),v="DOMException",m=i("Error"),y=i(v),b=function(){u(this,w);var e=arguments.length,t=h(e<1?void 0:arguments[0]),r=h(e<2?void 0:arguments[1],"Error"),n=new y(t,r),a=new m(t);return a.name=v,s(n,"stack",o(1,d(a.stack,1))),l(n,this,b),n},w=b.prototype=y.prototype,k="stack"in new m(v),x="stack"in new y(1,2),S=y&&p&&Object.getOwnPropertyDescriptor(a,v),A=!(!S||S.writable&&S.configurable),C=k&&!A&&!x;n({global:!0,constructor:!0,forced:g||C},{DOMException:C?b:y});var O=i(v),F=O.prototype;if(F.constructor!==O)for(var I in g||s(F,"constructor",o(1,O)),f)if(c(f,I)){var T=f[I],M=T.s;c(O,M)||s(O,M,o(6,T.c))}},8403:(e,t,r)=>{var n=r(6341),a="DOMException";r(869)(n(a),a)},7283:(e,t,r)=>{var n=r(3937),a=r(5628),i=r(7416),o=r(1724),s=TypeError,c=Object.defineProperty,u=a.self!==a;try{if(o){var l=Object.getOwnPropertyDescriptor(a,"self");!u&&l&&l.get&&l.enumerable||i(a,"self",{get:function(){return a},set:function(e){if(this!==a)throw new s("Illegal invocation");c(a,"self",{value:e,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}else n({global:!0,simple:!0,forced:u},{self:a})}catch(e){}},4622:(e,t,r)=>{r(3313);var n=r(3937),a=r(5628),i=r(7286),o=r(5304),s=r(5207),c=r(1724),u=r(680),l=r(3300),h=r(7416),f=r(9711),d=r(869),p=r(4943),g=r(5972),v=r(5312),m=r(5547),y=r(3531),b=r(6913),w=r(1331),k=r(4738),x=r(2922),S=r(9338),A=r(5572),C=r(7999),O=r(9392),F=r(9755),I=r(9925),T=r(8769),M=r(5553),E=r(9158),P=M("iterator"),R="URLSearchParams",N=R+"Iterator",D=g.set,B=g.getterFor(R),L=g.getterFor(N),_=i("fetch"),j=i("Request"),U=i("Headers"),$=j&&j.prototype,X=U&&U.prototype,H=a.RegExp,q=a.TypeError,z=a.decodeURIComponent,G=a.encodeURIComponent,W=s("".charAt),V=s([].join),K=s([].push),Y=s("".replace),J=s([].shift),Z=s([].splice),Q=s("".split),ee=s("".slice),te=/\+/g,re=Array(4),ne=function(e){return re[e-1]||(re[e-1]=H("((?:%[\\da-f]{2}){"+e+"})","gi"))},ae=function(e){try{return z(e)}catch(t){return e}},ie=function(e){var t=Y(e,te," "),r=4;try{return z(t)}catch(e){for(;r;)t=Y(t,ne(r--),ae);return t}},oe=/[!'()~]|%20/g,se={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},ce=function(e){return se[e]},ue=function(e){return Y(G(e),oe,ce)},le=p((function(e,t){D(this,{type:N,target:B(e).entries,index:0,kind:t})}),R,(function(){var e=L(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=void 0,I(void 0,!0);var n=t[r];switch(e.kind){case"keys":return I(n.key,!1);case"values":return I(n.value,!1)}return I([n.key,n.value],!1)}),!0),he=function(e){this.entries=[],this.url=null,void 0!==e&&(x(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===W(e,0)?ee(e,1):e:S(e)))};he.prototype={type:R,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,a,i,s,c,u=this.entries,l=F(e);if(l)for(r=(t=O(e,l)).next;!(n=o(r,t)).done;){if(i=(a=O(k(n.value))).next,(s=o(i,a)).done||(c=o(i,a)).done||!o(i,a).done)throw new q("Expected sequence with length 2");K(u,{key:S(s.value),value:S(c.value)})}else for(var h in e)y(e,h)&&K(u,{key:h,value:S(e[h])})},parseQuery:function(e){if(e)for(var t,r,n=this.entries,a=Q(e,"&"),i=0;i0?arguments[0]:void 0));c||(this.size=e.entries.length)},de=fe.prototype;if(f(de,{append:function(e,t){var r=B(this);T(arguments.length,2),K(r.entries,{key:S(e),value:S(t)}),c||this.length++,r.updateURL()},delete:function(e){for(var t=B(this),r=T(arguments.length,1),n=t.entries,a=S(e),i=r<2?void 0:arguments[1],o=void 0===i?i:S(i),s=0;st.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,r=B(this).entries,n=b(e,arguments.length>1?arguments[1]:void 0),a=0;a1?ve(arguments[1]):{})}}),m(j)){var me=function(e){return v(this,$),new j(e,arguments.length>1?ve(arguments[1]):{})};$.constructor=me,me.prototype=$,n({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:me})}}e.exports={URLSearchParams:fe,getState:B}},2693:(e,t,r)=>{var n=r(3300),a=r(5207),i=r(9338),o=r(8769),s=URLSearchParams,c=s.prototype,u=a(c.append),l=a(c.delete),h=a(c.forEach),f=a([].push),d=new s("a=1&a=2&b=3");d.delete("a",1),d.delete("b",void 0),d+""!="a=2"&&n(c,"delete",(function(e){var t=arguments.length,r=t<2?void 0:arguments[1];if(t&&void 0===r)return l(this,e);var n=[];h(this,(function(e,t){f(n,{key:t,value:e})})),o(t,1);for(var a,s=i(e),c=i(r),d=0,p=0,g=!1,v=n.length;d{var n=r(3300),a=r(5207),i=r(9338),o=r(8769),s=URLSearchParams,c=s.prototype,u=a(c.getAll),l=a(c.has),h=new s("a=1");!h.has("a",2)&&h.has("a",void 0)||n(c,"has",(function(e){var t=arguments.length,r=t<2?void 0:arguments[1];if(t&&void 0===r)return l(this,e);var n=u(this,e);o(t,1);for(var a=i(r),s=0;s{r(4622)},6882:(e,t,r)=>{var n=r(1724),a=r(5207),i=r(7416),o=URLSearchParams.prototype,s=a(o.forEach);n&&!("size"in o)&&i(o,"size",{get:function(){var e=0;return s(this,(function(){e++})),e},configurable:!0,enumerable:!0})},5955:(e,t,r)=>{r(3990);var n,a=r(3937),i=r(1724),o=r(680),s=r(5628),c=r(6913),u=r(5207),l=r(3300),h=r(7416),f=r(5312),d=r(3531),p=r(4773),g=r(1383),v=r(4997),m=r(4942).codeAt,y=r(8077),b=r(9338),w=r(869),k=r(8769),x=r(4622),S=r(5972),A=S.set,C=S.getterFor("URL"),O=x.URLSearchParams,F=x.getState,I=s.URL,T=s.TypeError,M=s.parseInt,E=Math.floor,P=Math.pow,R=u("".charAt),N=u(/./.exec),D=u([].join),B=u(1..toString),L=u([].pop),_=u([].push),j=u("".replace),U=u([].shift),$=u("".split),X=u("".slice),H=u("".toLowerCase),q=u([].unshift),z="Invalid scheme",G="Invalid host",W="Invalid port",V=/[a-z]/i,K=/[\d+-.a-z]/i,Y=/\d/,J=/^0x/i,Z=/^[0-7]+$/,Q=/^\d+$/,ee=/^[\da-f]+$/i,te=/[\0\t\n\r #%/:<>?@[\\\]^|]/,re=/[\0\t\n\r #/:<>?@[\\\]^|]/,ne=/^[\u0000-\u0020]+/,ae=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,ie=/[\t\n\r]/g,oe=function(e){var t,r,n,a;if("number"==typeof e){for(t=[],r=0;r<4;r++)q(t,e%256),e=E(e/256);return D(t,".")}if("object"==typeof e){for(t="",n=function(e){for(var t=null,r=1,n=null,a=0,i=0;i<8;i++)0!==e[i]?(a>r&&(t=n,r=a),n=null,a=0):(null===n&&(n=i),++a);return a>r&&(t=n,r=a),t}(e),r=0;r<8;r++)a&&0===e[r]||(a&&(a=!1),n===r?(t+=r?":":"::",a=!0):(t+=B(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},se={},ce=p({},se,{" ":1,'"':1,"<":1,">":1,"`":1}),ue=p({},ce,{"#":1,"?":1,"{":1,"}":1}),le=p({},ue,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),he=function(e,t){var r=m(e,0);return r>32&&r<127&&!d(t,e)?e:encodeURIComponent(e)},fe={ftp:21,file:null,http:80,https:443,ws:80,wss:443},de=function(e,t){var r;return 2===e.length&&N(V,R(e,0))&&(":"===(r=R(e,1))||!t&&"|"===r)},pe=function(e){var t;return e.length>1&&de(X(e,0,2))&&(2===e.length||"/"===(t=R(e,2))||"\\"===t||"?"===t||"#"===t)},ge=function(e){return"."===e||"%2e"===H(e)},ve={},me={},ye={},be={},we={},ke={},xe={},Se={},Ae={},Ce={},Oe={},Fe={},Ie={},Te={},Me={},Ee={},Pe={},Re={},Ne={},De={},Be={},Le=function(e,t,r){var n,a,i,o=b(e);if(t){if(a=this.parse(o))throw new T(a);this.searchParams=null}else{if(void 0!==r&&(n=new Le(r,!0)),a=this.parse(o,null,n))throw new T(a);(i=F(new O)).bindURL(this),this.searchParams=i}};Le.prototype={type:"URL",parse:function(e,t,r){var a,i,o,s,c,u=this,l=t||ve,h=0,f="",p=!1,m=!1,y=!1;for(e=b(e),t||(u.scheme="",u.username="",u.password="",u.host=null,u.port=null,u.path=[],u.query=null,u.fragment=null,u.cannotBeABaseURL=!1,e=j(e,ne,""),e=j(e,ae,"$1")),e=j(e,ie,""),a=g(e);h<=a.length;){switch(i=a[h],l){case ve:if(!i||!N(V,i)){if(t)return z;l=ye;continue}f+=H(i),l=me;break;case me:if(i&&(N(K,i)||"+"===i||"-"===i||"."===i))f+=H(i);else{if(":"!==i){if(t)return z;f="",l=ye,h=0;continue}if(t&&(u.isSpecial()!==d(fe,f)||"file"===f&&(u.includesCredentials()||null!==u.port)||"file"===u.scheme&&!u.host))return;if(u.scheme=f,t)return void(u.isSpecial()&&fe[u.scheme]===u.port&&(u.port=null));f="","file"===u.scheme?l=Te:u.isSpecial()&&r&&r.scheme===u.scheme?l=be:u.isSpecial()?l=Se:"/"===a[h+1]?(l=we,h++):(u.cannotBeABaseURL=!0,_(u.path,""),l=Ne)}break;case ye:if(!r||r.cannotBeABaseURL&&"#"!==i)return z;if(r.cannotBeABaseURL&&"#"===i){u.scheme=r.scheme,u.path=v(r.path),u.query=r.query,u.fragment="",u.cannotBeABaseURL=!0,l=Be;break}l="file"===r.scheme?Te:ke;continue;case be:if("/"!==i||"/"!==a[h+1]){l=ke;continue}l=Ae,h++;break;case we:if("/"===i){l=Ce;break}l=Re;continue;case ke:if(u.scheme=r.scheme,i===n)u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=v(r.path),u.query=r.query;else if("/"===i||"\\"===i&&u.isSpecial())l=xe;else if("?"===i)u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=v(r.path),u.query="",l=De;else{if("#"!==i){u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=v(r.path),u.path.length--,l=Re;continue}u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=v(r.path),u.query=r.query,u.fragment="",l=Be}break;case xe:if(!u.isSpecial()||"/"!==i&&"\\"!==i){if("/"!==i){u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,l=Re;continue}l=Ce}else l=Ae;break;case Se:if(l=Ae,"/"!==i||"/"!==R(f,h+1))continue;h++;break;case Ae:if("/"!==i&&"\\"!==i){l=Ce;continue}break;case Ce:if("@"===i){p&&(f="%40"+f),p=!0,o=g(f);for(var w=0;w65535)return W;u.port=u.isSpecial()&&S===fe[u.scheme]?null:S,f=""}if(t)return;l=Pe;continue}return W}f+=i;break;case Te:if(u.scheme="file","/"===i||"\\"===i)l=Me;else{if(!r||"file"!==r.scheme){l=Re;continue}switch(i){case n:u.host=r.host,u.path=v(r.path),u.query=r.query;break;case"?":u.host=r.host,u.path=v(r.path),u.query="",l=De;break;case"#":u.host=r.host,u.path=v(r.path),u.query=r.query,u.fragment="",l=Be;break;default:pe(D(v(a,h),""))||(u.host=r.host,u.path=v(r.path),u.shortenPath()),l=Re;continue}}break;case Me:if("/"===i||"\\"===i){l=Ee;break}r&&"file"===r.scheme&&!pe(D(v(a,h),""))&&(de(r.path[0],!0)?_(u.path,r.path[0]):u.host=r.host),l=Re;continue;case Ee:if(i===n||"/"===i||"\\"===i||"?"===i||"#"===i){if(!t&&de(f))l=Re;else if(""===f){if(u.host="",t)return;l=Pe}else{if(s=u.parseHost(f))return s;if("localhost"===u.host&&(u.host=""),t)return;f="",l=Pe}continue}f+=i;break;case Pe:if(u.isSpecial()){if(l=Re,"/"!==i&&"\\"!==i)continue}else if(t||"?"!==i)if(t||"#"!==i){if(i!==n&&(l=Re,"/"!==i))continue}else u.fragment="",l=Be;else u.query="",l=De;break;case Re:if(i===n||"/"===i||"\\"===i&&u.isSpecial()||!t&&("?"===i||"#"===i)){if(".."===(c=H(c=f))||"%2e."===c||".%2e"===c||"%2e%2e"===c?(u.shortenPath(),"/"===i||"\\"===i&&u.isSpecial()||_(u.path,"")):ge(f)?"/"===i||"\\"===i&&u.isSpecial()||_(u.path,""):("file"===u.scheme&&!u.path.length&&de(f)&&(u.host&&(u.host=""),f=R(f,0)+":"),_(u.path,f)),f="","file"===u.scheme&&(i===n||"?"===i||"#"===i))for(;u.path.length>1&&""===u.path[0];)U(u.path);"?"===i?(u.query="",l=De):"#"===i&&(u.fragment="",l=Be)}else f+=he(i,ue);break;case Ne:"?"===i?(u.query="",l=De):"#"===i?(u.fragment="",l=Be):i!==n&&(u.path[0]+=he(i,se));break;case De:t||"#"!==i?i!==n&&("'"===i&&u.isSpecial()?u.query+="%27":u.query+="#"===i?"%23":he(i,se)):(u.fragment="",l=Be);break;case Be:i!==n&&(u.fragment+=he(i,ce))}h++}},parseHost:function(e){var t,r,n;if("["===R(e,0)){if("]"!==R(e,e.length-1))return G;if(t=function(e){var t,r,n,a,i,o,s,c=[0,0,0,0,0,0,0,0],u=0,l=null,h=0,f=function(){return R(e,h)};if(":"===f()){if(":"!==R(e,1))return;h+=2,l=++u}for(;f();){if(8===u)return;if(":"!==f()){for(t=r=0;r<4&&N(ee,f());)t=16*t+M(f(),16),h++,r++;if("."===f()){if(0===r)return;if(h-=r,u>6)return;for(n=0;f();){if(a=null,n>0){if(!("."===f()&&n<4))return;h++}if(!N(Y,f()))return;for(;N(Y,f());){if(i=M(f(),10),null===a)a=i;else{if(0===a)return;a=10*a+i}if(a>255)return;h++}c[u]=256*c[u]+a,2!=++n&&4!==n||u++}if(4!==n)return;break}if(":"===f()){if(h++,!f())return}else if(f())return;c[u++]=t}else{if(null!==l)return;h++,l=++u}}if(null!==l)for(o=u-l,u=7;0!==u&&o>0;)s=c[u],c[u--]=c[l+o-1],c[l+--o]=s;else if(8!==u)return;return c}(X(e,1,-1)),!t)return G;this.host=t}else if(this.isSpecial()){if(e=y(e),N(te,e))return G;if(t=function(e){var t,r,n,a,i,o,s,c=$(e,".");if(c.length&&""===c[c.length-1]&&c.length--,(t=c.length)>4)return e;for(r=[],n=0;n1&&"0"===R(a,0)&&(i=N(J,a)?16:8,a=X(a,8===i?1:2)),""===a)o=0;else{if(!N(10===i?Q:8===i?Z:ee,a))return e;o=M(a,i)}_(r,o)}for(n=0;n=P(256,5-t))return null}else if(o>255)return null;for(s=L(r),n=0;n1?arguments[1]:void 0,n=A(t,new Le(e,!1,r));i||(t.href=n.serialize(),t.origin=n.getOrigin(),t.protocol=n.getProtocol(),t.username=n.getUsername(),t.password=n.getPassword(),t.host=n.getHost(),t.hostname=n.getHostname(),t.port=n.getPort(),t.pathname=n.getPathname(),t.search=n.getSearch(),t.searchParams=n.getSearchParams(),t.hash=n.getHash())},je=_e.prototype,Ue=function(e,t){return{get:function(){return C(this)[e]()},set:t&&function(e){return C(this)[t](e)},configurable:!0,enumerable:!0}};if(i&&(h(je,"href",Ue("serialize","setHref")),h(je,"origin",Ue("getOrigin")),h(je,"protocol",Ue("getProtocol","setProtocol")),h(je,"username",Ue("getUsername","setUsername")),h(je,"password",Ue("getPassword","setPassword")),h(je,"host",Ue("getHost","setHost")),h(je,"hostname",Ue("getHostname","setHostname")),h(je,"port",Ue("getPort","setPort")),h(je,"pathname",Ue("getPathname","setPathname")),h(je,"search",Ue("getSearch","setSearch")),h(je,"searchParams",Ue("getSearchParams")),h(je,"hash",Ue("getHash","setHash"))),l(je,"toJSON",(function(){return C(this).serialize()}),{enumerable:!0}),l(je,"toString",(function(){return C(this).serialize()}),{enumerable:!0}),I){var $e=I.createObjectURL,Xe=I.revokeObjectURL;$e&&l(_e,"createObjectURL",c($e,I)),Xe&&l(_e,"revokeObjectURL",c(Xe,I))}w(_e,"URL"),a({global:!0,constructor:!0,forced:!o,sham:!i},{URL:_e})},353:(e,t,r)=>{r(5955)}},t={};function r(n){var a=t[n];if(void 0!==a)return a.exports;var i=t[n]={exports:{}};return e[n].call(i.exports,i,i.exports,r),i.exports}r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),(()=>{var e,t;function n(e,t,r){return(t=R(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(){return a="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=m(e)););return e}(e,t);if(n){var a=Object.getOwnPropertyDescriptor(n,t);return a.get?a.get.call(arguments.length<3?e:r):a.value}},a.apply(this,arguments)}function i(e,t){c(e,t),t.add(e)}function o(e,t,r){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return r}function s(e,t,r){c(e,t),t.set(e,r)}function c(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function u(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,h(e,t,"get"))}function l(e,t,r){return function(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}(e,h(e,t,"set"),r),r}function h(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}function f(e){return function(e){if(Array.isArray(e))return O(e)}(e)||w(e)||C(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t,r){return t=m(t),p(e,v()?Reflect.construct(t,r||[],m(e).constructor):t.apply(e,r))}function p(e,t){if(t&&("object"===N(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return g(e)}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(v=function(){return!!e})()}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function y(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&b(e,t)}function b(e,t){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},b(e,t)}function w(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function k(){k=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var i=t&&t.prototype instanceof m?t:m,o=Object.create(i.prototype),s=new E(n||[]);return a(o,"_invoke",{value:F(e,r,s)}),o}function h(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=l;var f="suspendedStart",d="suspendedYield",p="executing",g="completed",v={};function m(){}function y(){}function b(){}var w={};u(w,o,(function(){return this}));var x=Object.getPrototypeOf,S=x&&x(x(P([])));S&&S!==r&&n.call(S,o)&&(w=S);var A=b.prototype=m.prototype=Object.create(w);function C(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function r(a,i,o,s){var c=h(e[a],e,i);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==N(l)&&n.call(l,"__await")?t.resolve(l.__await).then((function(e){r("next",e,o,s)}),(function(e){r("throw",e,o,s)})):t.resolve(l).then((function(e){u.value=e,o(u)}),(function(e){return r("throw",e,o,s)}))}s(c.arg)}var i;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return i=i?i.then(a,a):a()}})}function F(t,r,n){var a=f;return function(i,o){if(a===p)throw new Error("Generator is already running");if(a===g){if("throw"===i)throw o;return{value:e,done:!0}}for(n.method=i,n.arg=o;;){var s=n.delegate;if(s){var c=I(s,n);if(c){if(c===v)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===f)throw a=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=p;var u=h(t,r,n);if("normal"===u.type){if(a=n.done?g:d,u.arg===v)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(a=g,n.method="throw",n.arg=u.arg)}}}function I(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,I(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=h(a,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var o=i.arg;return o?o.done?(r[t.resultName]=o.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function M(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function P(t){if(t||""===t){var r=t[o];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,i=function r(){for(;++a=0;--i){var o=this.tryEntries[i],s=o.completion;if("root"===o.tryLoc)return a("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(c&&u){if(this.prev=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),M(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;M(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:P(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}function x(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=C(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw i}}}}function S(e,t){return F(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,i,o,s=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){u=!0,a=e}finally{try{if(!c&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw a}}return s}}(e,t)||C(e,t)||A()}function A(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function C(e,t){if(e){if("string"==typeof e)return O(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?O(e,t):void 0}}function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=n.VerbosityLevel.INFOS?Date.now():0;r.getOperatorList({handler:P,sink:t,task:i,intent:e.intent,cacheKey:e.cacheKey,annotationStorage:e.annotationStorage}).then((function(e){D(i),o&&(0,n.info)("page=".concat(a+1," - getOperatorList: time=").concat(Date.now()-o,"ms, len=").concat(e.length)),t.close()}),(function(e){D(i),i.terminated||t.error(e)}))}))})),P.on("GetTextContent",(function(e,t){var a=e.pageIndex,i=e.includeMarkedContent,o=e.disableNormalization;r.getPage(a).then((function(e){var r=new f("GetTextContent: page "+a);N(r);var s=v>=n.VerbosityLevel.INFOS?Date.now():0;e.extractTextContent({handler:P,task:r,sink:t,includeMarkedContent:i,disableNormalization:o}).then((function(){D(r),s&&(0,n.info)("page=".concat(a+1," - getTextContent: time=")+(Date.now()-s)+"ms"),t.close()}),(function(e){D(r),r.terminated||t.error(e)}))}))})),P.on("GetStructTree",(function(e){return r.getPage(e.pageIndex).then((function(e){return r.ensure(e,"getStructTree")}))})),P.on("FontFallback",(function(e){return r.fontFallback(e.id,P)})),P.on("Cleanup",(function(e){return r.cleanup(!0)})),P.on("Terminate",(function(e){d=!0;var t=[];if(r){r.terminate(new n.AbortException("Worker was terminated."));var a=r.cleanup();t.push(a),r=null}else(0,c.clearGlobalCaches)();p&&p(new n.AbortException("Worker was terminated."));var i,o=x(g);try{for(o.s();!(i=o.n()).done;){var s=i.value;t.push(s.finished),s.terminate()}}catch(e){o.e(e)}finally{o.f()}return Promise.all(t).then((function(){P.destroy(),P=null}))})),P.on("Ready",(function(t){!function(e){function t(e){R(),P.send("GetDoc",{pdfInfo:e})}function i(e){if(R(),e instanceof n.PasswordException){var t=new f("PasswordException: response ".concat(e.code));N(t),P.sendWithPromise("PasswordRequest",e).then((function(e){var n=e.password;D(t),r.updatePassword(n),s()})).catch((function(){D(t),P.send("DocException",e)}))}else e instanceof n.InvalidPDFException||e instanceof n.MissingPDFException||e instanceof n.UnexpectedResponseException||e instanceof n.UnknownErrorException?P.send("DocException",e):P.send("DocException",new n.UnknownErrorException(e.message,e.toString()))}function s(){R(),B(!1).then(t,(function(e){R(),e instanceof a.XRefParseException?r.requestLoadedStream().then((function(){R(),B(!0).then(t,i)})):i(e)}))}R(),function(e){var t,r=e.data,i=e.password,s=e.disableAutoFetch,c=e.rangeChunkSize,u=e.length,l=e.docBaseUrl,f=e.enableXfa,d=e.evaluatorOptions,g={source:null,disableAutoFetch:s,docBaseUrl:l,docId:y,enableXfa:f,evaluatorOptions:d,handler:P,length:u,password:i,rangeChunkSize:c},v=new n.PromiseCapability;if(r){try{g.source=r,t=new o.LocalPdfManager(g),v.resolve(t)}catch(e){v.reject(e)}return v.promise}var m,b=[];try{m=new h.PDFWorkerStream(P)}catch(e){return v.reject(e),v.promise}var w=m.getFullReader();w.headersReady.then((function(){if(w.isRangeSupported){g.source=m,g.length=w.contentLength,g.disableAutoFetch||(g.disableAutoFetch=w.isStreamingSupported),t=new o.NetworkPdfManager(g);for(var e=0,r=b;e0&&n[0]<4?1:+(n[0]+n[1])),!a&&o&&(!(n=o.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=o.match(/Chrome\/(\d+)/))&&(a=+n[1]),e.exports=a},function(e){e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},function(e,t,r){var n=r(31),a=r(17);e.exports=function(e,t){var r=e[t];return a(r)?void 0:n(r)}},function(e,t,r){var n=r(21),a=r(32),i=TypeError;e.exports=function(e){if(n(e))return e;throw i(a(e)+" is not a function")}},function(e){var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},function(e,t,r){var n=r(8),a=r(21),i=r(20),o=TypeError;e.exports=function(e,t){var r,s;if("string"===t&&a(r=e.toString)&&!i(s=n(r,e)))return s;if(a(r=e.valueOf)&&!i(s=n(r,e)))return s;if("string"!==t&&a(r=e.toString)&&!i(s=n(r,e)))return s;throw o("Can't convert object to primitive value")}},function(e,t,r){var n=r(4),a=r(35),i=r(39),o=r(41),s=r(27),c=r(26),u=n.Symbol,l=a("wks"),h=c?u.for||u:u&&u.withoutSetter||o;e.exports=function(e){return i(l,e)||(l[e]=s&&i(u,e)?u[e]:h("Symbol."+e)),l[e]}},function(e,t,r){var n=r(36),a=r(37);(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.31.1",mode:n?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.31.1/LICENSE",source:"https://github.com/zloirock/core-js"})},function(e){e.exports=!1},function(e,t,r){var n=r(4),a=r(38),i="__core-js_shared__",o=n[i]||a(i,{});e.exports=o},function(e,t,r){var n=r(4),a=Object.defineProperty;e.exports=function(e,t){try{a(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},function(e,t,r){var n=r(14),a=r(40),i=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(a(e),t)}},function(e,t,r){var n=r(16),a=Object;e.exports=function(e){return a(n(e))}},function(e,t,r){var n=r(14),a=0,i=Math.random(),o=n(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++a+i,36)}},function(e,t,r){var n=r(6),a=r(7),i=r(43);e.exports=!n&&!a((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(e,t,r){var n=r(4),a=r(20),i=n.document,o=a(i)&&a(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},function(e,t,r){var n=r(6),a=r(45),i=r(11);e.exports=n?function(e,t,r){return a.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},function(e,t,r){var n=r(6),a=r(42),i=r(46),o=r(47),s=r(18),c=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,h="enumerable",f="configurable",d="writable";t.f=n?i?function(e,t,r){if(o(e),t=s(t),o(r),"function"==typeof e&&"prototype"===t&&"value"in r&&d in r&&!r[d]){var n=l(e,t);n&&n[d]&&(e[t]=r.value,r={configurable:f in r?r[f]:n[f],enumerable:h in r?r[h]:n[h],writable:!1})}return u(e,t,r)}:u:function(e,t,r){if(o(e),t=s(t),o(r),a)try{return u(e,t,r)}catch(e){}if("get"in r||"set"in r)throw c("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},function(e,t,r){var n=r(6),a=r(7);e.exports=n&&a((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},function(e,t,r){var n=r(20),a=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw i(a(e)+" is not an object")}},function(e,t,r){var n=r(21),a=r(45),i=r(49),o=r(38);e.exports=function(e,t,r,s){s||(s={});var c=s.enumerable,u=void 0!==s.name?s.name:t;if(n(r)&&i(r,u,s),s.global)c?e[t]=r:o(t,r);else{try{s.unsafe?e[t]&&(c=!0):delete e[t]}catch(e){}c?e[t]=r:a.f(e,t,{value:r,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},function(e,t,r){var n=r(14),a=r(7),i=r(21),o=r(39),s=r(6),c=r(50).CONFIGURABLE,u=r(51),l=r(52),h=l.enforce,f=l.get,d=String,p=Object.defineProperty,g=n("".slice),v=n("".replace),m=n([].join),y=s&&!a((function(){return 8!==p((function(){}),"length",{value:8}).length})),b=String(String).split("String"),w=e.exports=function(e,t,r){"Symbol("===g(d(t),0,7)&&(t="["+v(d(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!o(e,"name")||c&&e.name!==t)&&(s?p(e,"name",{value:t,configurable:!0}):e.name=t),y&&r&&o(r,"arity")&&e.length!==r.arity&&p(e,"length",{value:r.arity});try{r&&o(r,"constructor")&&r.constructor?s&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=h(e);return o(n,"source")||(n.source=m(b,"string"==typeof t?t:"")),e};Function.prototype.toString=w((function(){return i(this)&&f(this).source||u(this)}),"toString")},function(e,t,r){var n=r(6),a=r(39),i=Function.prototype,o=n&&Object.getOwnPropertyDescriptor,s=a(i,"name"),c=s&&"something"===function(){}.name,u=s&&(!n||n&&o(i,"name").configurable);e.exports={EXISTS:s,PROPER:c,CONFIGURABLE:u}},function(e,t,r){var n=r(14),a=r(21),i=r(37),o=n(Function.toString);a(i.inspectSource)||(i.inspectSource=function(e){return o(e)}),e.exports=i.inspectSource},function(e,t,r){var n,a,i,o=r(53),s=r(4),c=r(20),u=r(44),l=r(39),h=r(37),f=r(54),d=r(55),p="Object already initialized",g=s.TypeError,v=s.WeakMap;if(o||h.state){var m=h.state||(h.state=new v);m.get=m.get,m.has=m.has,m.set=m.set,n=function(e,t){if(m.has(e))throw g(p);return t.facade=e,m.set(e,t),t},a=function(e){return m.get(e)||{}},i=function(e){return m.has(e)}}else{var y=f("state");d[y]=!0,n=function(e,t){if(l(e,y))throw g(p);return t.facade=e,u(e,y,t),t},a=function(e){return l(e,y)?e[y]:{}},i=function(e){return l(e,y)}}e.exports={set:n,get:a,has:i,enforce:function(e){return i(e)?a(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!c(t)||(r=a(t)).type!==e)throw g("Incompatible receiver, "+e+" required");return r}}}},function(e,t,r){var n=r(4),a=r(21),i=n.WeakMap;e.exports=a(i)&&/native code/.test(String(i))},function(e,t,r){var n=r(35),a=r(41),i=n("keys");e.exports=function(e){return i[e]||(i[e]=a(e))}},function(e){e.exports={}},function(e,t,r){var n=r(39),a=r(57),i=r(5),o=r(45);e.exports=function(e,t,r){for(var s=a(t),c=o.f,u=i.f,l=0;lu;)a(n,r=t[u++])&&(~o(l,r)||c(l,r));return l}},function(e,t,r){var n=r(12),a=r(61),i=r(64),o=function(e){return function(t,r,o){var s,c=n(t),u=i(c),l=a(o,u);if(e&&r!=r){for(;u>l;)if((s=c[l++])!=s)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===r)return e||l||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},function(e,t,r){var n=r(62),a=Math.max,i=Math.min;e.exports=function(e,t){var r=n(e);return r<0?a(r+t,0):i(r,t)}},function(e,t,r){var n=r(63);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},function(e){var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?r:t)(n)}},function(e,t,r){var n=r(65);e.exports=function(e){return n(e.length)}},function(e,t,r){var n=r(62),a=Math.min;e.exports=function(e){return e>0?a(n(e),9007199254740991):0}},function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,r){var n=r(7),a=r(21),i=/#|\.prototype\./,o=function(e,t){var r=c[s(e)];return r==l||r!=u&&(a(t)?n(t):!!t)},s=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},c=o.data={},u=o.NATIVE="N",l=o.POLYFILL="P";e.exports=o},function(e,t,r){var n=r(9),a=Function.prototype,i=a.apply,o=a.call;e.exports="object"==("undefined"==typeof Reflect?"undefined":N(Reflect))&&Reflect.apply||(n?o.bind(i):function(){return o.apply(i,arguments)})},function(e,t,r){var n=r(24),a=r(39),i=r(44),o=r(25),s=r(71),c=r(56),u=r(74),l=r(75),h=r(76),f=r(80),d=r(81),p=r(6),g=r(36);e.exports=function(e,t,r,v){var m="stackTraceLimit",y=v?2:1,b=e.split("."),w=b[b.length-1],k=n.apply(null,b);if(k){var x=k.prototype;if(!g&&a(x,"cause")&&delete x.cause,!r)return k;var S=n("Error"),A=t((function(e,t){var r=h(v?t:e,void 0),n=v?new k(e):new k;return void 0!==r&&i(n,"message",r),d(n,A,n.stack,2),this&&o(x,this)&&l(n,this,A),arguments.length>y&&f(n,arguments[y]),n}));if(A.prototype=x,"Error"!==w?s?s(A,S):c(A,S,{name:!0}):p&&m in k&&(u(A,k,m),u(A,k,"prepareStackTrace")),c(A,k),!g)try{x.name!==w&&i(x,"name",w),x.constructor=A}catch(e){}return A}}},function(e,t,r){var n=r(72),a=r(47),i=r(73);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=n(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return a(r),i(n),t?e(r,n):r.__proto__=n,r}}():void 0)},function(e,t,r){var n=r(14),a=r(31);e.exports=function(e,t,r){try{return n(a(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}}},function(e,t,r){var n=r(21),a=String,i=TypeError;e.exports=function(e){if("object"==N(e)||n(e))return e;throw i("Can't set "+a(e)+" as a prototype")}},function(e,t,r){var n=r(45).f;e.exports=function(e,t,r){r in e||n(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})}},function(e,t,r){var n=r(21),a=r(20),i=r(71);e.exports=function(e,t,r){var o,s;return i&&n(o=t.constructor)&&o!==r&&a(s=o.prototype)&&s!==r.prototype&&i(e,s),e}},function(e,t,r){var n=r(77);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:n(e)}},function(e,t,r){var n=r(78),a=String;e.exports=function(e){if("Symbol"===n(e))throw TypeError("Cannot convert a Symbol value to a string");return a(e)}},function(e,t,r){var n=r(79),a=r(21),i=r(15),o=r(34)("toStringTag"),s=Object,c="Arguments"==i(function(){return arguments}());e.exports=n?i:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=s(e),o))?r:c?i(t):"Object"==(n=i(t))&&a(t.callee)?"Arguments":n}},function(e,t,r){var n={};n[r(34)("toStringTag")]="z",e.exports="[object z]"===String(n)},function(e,t,r){var n=r(20),a=r(44);e.exports=function(e,t){n(t)&&"cause"in t&&a(e,"cause",t.cause)}},function(e,t,r){var n=r(44),a=r(82),i=r(83),o=Error.captureStackTrace;e.exports=function(e,t,r,s){i&&(o?o(e,t):n(e,"stack",a(r,s)))}},function(e,t,r){var n=r(14),a=Error,i=n("".replace),o=String(a("zxcasd").stack),s=/\n\s*at [^:]*:[^\n]*/,c=s.test(o);e.exports=function(e,t){if(c&&"string"==typeof e&&!a.prepareStackTrace)for(;t--;)e=i(e,s,"");return e}},function(e,t,r){var n=r(7),a=r(11);e.exports=!n((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",a(1,7)),7!==e.stack)}))},function(e,t,r){var n=r(85),a=r(90).findLast,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("findLast",(function(e){return a(i(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,r){var n,a,i,o=r(86),s=r(6),c=r(4),u=r(21),l=r(20),h=r(39),f=r(78),d=r(32),p=r(44),g=r(48),v=r(87),m=r(25),y=r(88),b=r(71),w=r(34),k=r(41),x=r(52),S=x.enforce,A=x.get,C=c.Int8Array,O=C&&C.prototype,F=c.Uint8ClampedArray,I=F&&F.prototype,T=C&&y(C),M=O&&y(O),E=Object.prototype,P=c.TypeError,R=w("toStringTag"),N=k("TYPED_ARRAY_TAG"),D="TypedArrayConstructor",B=o&&!!b&&"Opera"!==f(c.opera),L=!1,_={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},j={BigInt64Array:8,BigUint64Array:8},U=function(e){if(!l(e))return!1;var t=f(e);return h(_,t)||h(j,t)};for(n in _)(i=(a=c[n])&&a.prototype)?S(i)[D]=a:B=!1;for(n in j)(i=(a=c[n])&&a.prototype)&&(S(i)[D]=a);if((!B||!u(T)||T===Function.prototype)&&(T=function(){throw P("Incorrect invocation")},B))for(n in _)c[n]&&b(c[n],T);if((!B||!M||M===E)&&(M=T.prototype,B))for(n in _)c[n]&&b(c[n].prototype,M);if(B&&y(I)!==M&&b(I,M),s&&!h(M,R))for(n in L=!0,v(M,R,{configurable:!0,get:function(){return l(this)?this[N]:void 0}}),_)c[n]&&p(c[n],N,n);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:B,TYPED_ARRAY_TAG:L&&N,aTypedArray:function(e){if(U(e))return e;throw P("Target is not a typed array")},aTypedArrayConstructor:function(e){if(u(e)&&(!b||m(T,e)))return e;throw P(d(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,t,r,n){if(s){if(r)for(var a in _){var i=c[a];if(i&&h(i.prototype,e))try{delete i.prototype[e]}catch(r){try{i.prototype[e]=t}catch(e){}}}M[e]&&!r||g(M,e,r?t:B&&O[e]||t,n)}},exportTypedArrayStaticMethod:function(e,t,r){var n,a;if(s){if(b){if(r)for(n in _)if((a=c[n])&&h(a,e))try{delete a[e]}catch(e){}if(T[e]&&!r)return;try{return g(T,e,r?t:B&&T[e]||t)}catch(e){}}for(n in _)!(a=c[n])||a[e]&&!r||g(a,e,t)}},getTypedArrayConstructor:function e(t){var r=y(t);if(l(r)){var n=A(r);return n&&h(n,D)?n[D]:e(r)}},isView:function(e){if(!l(e))return!1;var t=f(e);return"DataView"===t||h(_,t)||h(j,t)},isTypedArray:U,TypedArray:T,TypedArrayPrototype:M}},function(e){e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},function(e,t,r){var n=r(49),a=r(45);e.exports=function(e,t,r){return r.get&&n(r.get,t,{getter:!0}),r.set&&n(r.set,t,{setter:!0}),a.f(e,t,r)}},function(e,t,r){var n=r(39),a=r(21),i=r(40),o=r(54),s=r(89),c=o("IE_PROTO"),u=Object,l=u.prototype;e.exports=s?u.getPrototypeOf:function(e){var t=i(e);if(n(t,c))return t[c];var r=t.constructor;return a(r)&&t instanceof r?r.prototype:t instanceof u?l:null}},function(e,t,r){var n=r(7);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},function(e,t,r){var n=r(91),a=r(13),i=r(40),o=r(64),s=function(e){var t=1==e;return function(r,s,c){for(var u,l=i(r),h=a(l),f=n(s,c),d=o(h);d-- >0;)if(f(u=h[d],d,l))switch(e){case 0:return u;case 1:return d}return t?-1:void 0}};e.exports={findLast:s(0),findLastIndex:s(1)}},function(e,t,r){var n=r(92),a=r(31),i=r(9),o=n(n.bind);e.exports=function(e,t){return a(e),void 0===t?e:i?o(e,t):function(){return e.apply(t,arguments)}}},function(e,t,r){var n=r(15),a=r(14);e.exports=function(e){if("Function"===n(e))return a(e)}},function(e,t,r){var n=r(85),a=r(90).findLastIndex,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("findLastIndex",(function(e){return a(i(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,r){var n=r(4),a=r(8),i=r(85),o=r(64),s=r(95),c=r(40),u=r(7),l=n.RangeError,h=n.Int8Array,f=h&&h.prototype,d=f&&f.set,p=i.aTypedArray,g=i.exportTypedArrayMethod,v=!u((function(){var e=new Uint8ClampedArray(2);return a(d,e,{length:1,0:3},1),3!==e[1]})),m=v&&i.NATIVE_ARRAY_BUFFER_VIEWS&&u((function(){var e=new h(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]}));g("set",(function(e){p(this);var t=s(arguments.length>1?arguments[1]:void 0,1),r=c(e);if(v)return a(d,this,r,t);var n=this.length,i=o(r),u=0;if(i+t>n)throw l("Wrong length");for(;ur;)i[r]=t[r++];return i}},function(e,t,r){var n=r(102),a=r(85),i=r(103),o=r(62),s=r(104),c=a.aTypedArray,u=a.getTypedArrayConstructor,l=a.exportTypedArrayMethod,h=!!function(){try{new Int8Array(1).with(2,{valueOf:function(){throw 8}})}catch(e){return 8===e}}();l("with",{with:function(e,t){var r=c(this),a=o(e),l=i(r)?s(t):+t;return n(r,u(r),a,l)}}.with,!h)},function(e,t,r){var n=r(64),a=r(62),i=RangeError;e.exports=function(e,t,r,o){var s=n(e),c=a(r),u=c<0?s+c:c;if(u>=s||u<0)throw i("Incorrect index");for(var l=new t(s),h=0;h=a&&(!r||i))return m(u,0,a);for(var g=r&&!i&&b?{maxByteLength:b(u)}:void 0,v=new f(a,g),x=new d(u),S=new d(v),A=p(a,n),C=0;C92||c&&i>94||o&&i>97)return!1;var e=new ArrayBuffer(8),t=u(e,{transfer:[e]});return 0!=e.byteLength||8!=t.byteLength}))},function(e,t,r){var n=r(113),a=r(114);e.exports=!n&&!a&&"object"==("undefined"==typeof window?"undefined":N(window))&&"object"==("undefined"==typeof document?"undefined":N(document))},function(e){e.exports="object"==("undefined"==typeof Deno?"undefined":N(Deno))&&Deno&&"object"==N(Deno.version)},function(e,t,r){var n=r(15);e.exports="undefined"!=typeof process&&"process"==n(process)},function(e,t,r){var n=r(3),a=r(109);a&&n({target:"ArrayBuffer",proto:!0},{transferToFixedLength:function(){return a(this,arguments.length?arguments[0]:void 0,!1)}})},function(e,t,r){var n=r(3),a=r(117);n({target:"Set",proto:!0,real:!0,forced:!r(125)("difference")},{difference:a})},function(e,t,r){var n=r(118),a=r(119),i=r(120),o=r(123),s=r(124),c=r(121),u=r(122),l=a.has,h=a.remove;e.exports=function(e){var t=n(this),r=s(e),a=i(t);return o(t)<=r.size?c(t,(function(e){r.includes(e)&&h(a,e)})):u(r.getIterator(),(function(e){l(t,e)&&h(a,e)})),a}},function(e,t,r){var n=r(119).has;e.exports=function(e){return n(e),e}},function(e,t,r){var n=r(14),a=Set.prototype;e.exports={Set,add:n(a.add),has:n(a.has),remove:n(a.delete),proto:a}},function(e,t,r){var n=r(119),a=r(121),i=n.Set,o=n.add;e.exports=function(e){var t=new i;return a(e,(function(e){o(t,e)})),t}},function(e,t,r){var n=r(14),a=r(122),i=r(119),o=i.Set,s=i.proto,c=n(s.forEach),u=n(s.keys),l=u(new o).next;e.exports=function(e,t,r){return r?a(u(e),t,l):c(e,t)}},function(e,t,r){var n=r(8);e.exports=function(e,t,r){for(var a,i,o=r||e.next;!(a=n(o,e)).done;)if(void 0!==(i=t(a.value)))return i}},function(e,t,r){var n=r(72),a=r(119);e.exports=n(a.proto,"size","get")||function(e){return e.size}},function(e,t,r){var n=r(31),a=r(47),i=r(8),o=r(62),s=TypeError,c=Math.max,u=function(e,t,r,n){this.set=e,this.size=t,this.has=r,this.keys=n};u.prototype={getIterator:function(){return a(i(this.keys,this.set))},includes:function(e){return i(this.has,this.set,e)}},e.exports=function(e){a(e);var t=+e.size;if(t!=t)throw s("Invalid size");return new u(e,c(o(t),0),n(e.has),n(e.keys))}},function(e,t,r){var n=r(24);e.exports=function(e){try{return(new(n("Set")))[e]({size:0,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}),!0}catch(e){return!1}}},function(e,t,r){var n=r(3),a=r(7),i=r(127);n({target:"Set",proto:!0,real:!0,forced:!r(125)("intersection")||a((function(){return"3,2"!=Array.from(new Set([1,2,3]).intersection(new Set([3,2])))}))},{intersection:i})},function(e,t,r){var n=r(118),a=r(119),i=r(123),o=r(124),s=r(121),c=r(122),u=a.Set,l=a.add,h=a.has;e.exports=function(e){var t=n(this),r=o(e),a=new u;return i(t)>r.size?c(r.getIterator(),(function(e){h(t,e)&&l(a,e)})):s(t,(function(e){r.includes(e)&&l(a,e)})),a}},function(e,t,r){var n=r(3),a=r(129);n({target:"Set",proto:!0,real:!0,forced:!r(125)("isDisjointFrom")},{isDisjointFrom:a})},function(e,t,r){var n=r(118),a=r(119).has,i=r(123),o=r(124),s=r(121),c=r(122),u=r(130);e.exports=function(e){var t=n(this),r=o(e);if(i(t)<=r.size)return!1!==s(t,(function(e){if(r.includes(e))return!1}),!0);var l=r.getIterator();return!1!==c(l,(function(e){if(a(t,e))return u(l,"normal",!1)}))}},function(e,t,r){var n=r(8),a=r(47),i=r(30);e.exports=function(e,t,r){var o,s;a(e);try{if(!(o=i(e,"return"))){if("throw"===t)throw r;return r}o=n(o,e)}catch(e){s=!0,o=e}if("throw"===t)throw r;if(s)throw o;return a(o),r}},function(e,t,r){var n=r(3),a=r(132);n({target:"Set",proto:!0,real:!0,forced:!r(125)("isSubsetOf")},{isSubsetOf:a})},function(e,t,r){var n=r(118),a=r(123),i=r(121),o=r(124);e.exports=function(e){var t=n(this),r=o(e);return!(a(t)>r.size)&&!1!==i(t,(function(e){if(!r.includes(e))return!1}),!0)}},function(e,t,r){var n=r(3),a=r(134);n({target:"Set",proto:!0,real:!0,forced:!r(125)("isSupersetOf")},{isSupersetOf:a})},function(e,t,r){var n=r(118),a=r(119).has,i=r(123),o=r(124),s=r(122),c=r(130);e.exports=function(e){var t=n(this),r=o(e);if(i(t)9007199254740991)throw t("Maximum allowed index exceeded");return e}},function(e,t,r){var n=r(3),a=r(4),i=r(87),o=r(6),s=TypeError,c=Object.defineProperty,u=a.self!==a;try{if(o){var l=Object.getOwnPropertyDescriptor(a,"self");!u&&l&&l.get&&l.enumerable||i(a,"self",{get:function(){return a},set:function(e){if(this!==a)throw s("Illegal invocation");c(a,"self",{value:e,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}else n({global:!0,simple:!0,forced:u},{self:a})}catch(e){}},function(e,t,r){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.VerbosityLevel=t.Util=t.UnknownErrorException=t.UnexpectedResponseException=t.TextRenderingMode=t.RenderingIntentFlag=t.PromiseCapability=t.PermissionFlag=t.PasswordResponses=t.PasswordException=t.PageActionEventType=t.OPS=t.MissingPDFException=t.MAX_IMAGE_SIZE_TO_CACHE=t.LINE_FACTOR=t.LINE_DESCENT_FACTOR=t.InvalidPDFException=t.ImageKind=t.IDENTITY_MATRIX=t.FormatError=t.FeatureTest=t.FONT_IDENTITY_MATRIX=t.DocumentActionEventType=t.CMapCompressionType=t.BaseException=t.BASELINE_FACTOR=t.AnnotationType=t.AnnotationReplyType=t.AnnotationMode=t.AnnotationFlag=t.AnnotationFieldFlag=t.AnnotationEditorType=t.AnnotationEditorPrefix=t.AnnotationEditorParamsType=t.AnnotationBorderStyleType=t.AnnotationActionEventType=t.AbortException=void 0,t.assert=function(e,t){e||h(t)},t.bytesToString=v,t.createValidAbsoluteUrl=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e)return null;try{if(r&&"string"==typeof e){if(r.addDefaultProtocol&&e.startsWith("www.")){var n=e.match(/\./g);(null==n?void 0:n.length)>=2&&(e="http://".concat(e))}if(r.tryConvertEncoding)try{e=k(e)}catch(e){}}var a=t?new URL(e,t):new URL(e);if(function(e){switch(null==e?void 0:e.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}(a))return a}catch(e){}return null},t.getModificationDate=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date;return[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("")},t.getUuid=function(){var e,t;if("undefined"!=typeof crypto&&"function"==typeof(null===(e=crypto)||void 0===e?void 0:e.randomUUID))return crypto.randomUUID();var r=new Uint8Array(32);if("undefined"!=typeof crypto&&"function"==typeof(null===(t=crypto)||void 0===t?void 0:t.getRandomValues))crypto.getRandomValues(r);else for(var n=0;n<32;n++)r[n]=Math.floor(255*Math.random());return v(r)},t.getVerbosityLevel=function(){return o},t.info=function(e){o>=i.INFOS&&console.log("Info: ".concat(e))},t.isArrayBuffer=function(e){return"object"==N(e)&&void 0!==(null==e?void 0:e.byteLength)},t.isArrayEqual=function(e,t){if(e.length!==t.length)return!1;for(var r=0,n=e.length;r>24&255,e>>16&255,e>>8&255,255&e)},t.stringToBytes=m,t.stringToPDFString=function(e){var t;if(e[0]>="ï"&&("þ"===e[0]&&"ÿ"===e[1]?t="utf-16be":"ÿ"===e[0]&&"þ"===e[1]?t="utf-16le":"ï"===e[0]&&"»"===e[1]&&"¿"===e[2]&&(t="utf-8"),t))try{var r=new TextDecoder(t,{fatal:!0}),n=m(e);return r.decode(n)}catch(e){c('stringToPDFString: "'.concat(e,'".'))}for(var a=[],i=0,o=e.length;i=i.WARNINGS&&console.log("Warning: ".concat(e))}function h(e){throw new Error(e)}function p(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return Object.defineProperty(e,t,{value:r,enumerable:!n,configurable:!0,writable:!1}),r}var g=function(){function e(t,r){this.constructor===e&&h("Cannot initialize BaseException."),this.message=t,this.name=r}return e.prototype=new Error,e.constructor=e,e}();function v(e){"object"==N(e)&&void 0!==(null==e?void 0:e.length)||h("Invalid argument for bytesToString");var t=e.length,r=8192;if(te[2]&&(t[0]=e[2],t[2]=e[0]),e[1]>e[3]&&(t[1]=e[3],t[3]=e[1]),t}},{key:"intersect",value:function(e,t){var r=Math.max(Math.min(e[0],e[2]),Math.min(t[0],t[2])),n=Math.min(Math.max(e[0],e[2]),Math.max(t[0],t[2]));if(r>n)return null;var a=Math.max(Math.min(e[1],e[3]),Math.min(t[1],t[3])),i=Math.min(Math.max(e[1],e[3]),Math.max(t[1],t[3]));return a>i?null:[r,a,n,i]}},{key:"bezierBoundingBox",value:function(e,t,r,n,a,i,o,s){for(var c,u,l,h,d,p,g,v,m=[],y=[[],[]],b=0;b<2;++b)if(0===b?(u=6*e-12*r+6*a,c=-3*e+9*r-9*a+3*o,l=3*r-3*e):(u=6*t-12*n+6*i,c=-3*t+9*n-9*i+3*s,l=3*n-3*t),Math.abs(c)<1e-12){if(Math.abs(u)<1e-12)continue;0<(h=-l/u)&&h<1&&m.push(h)}else g=u*u-4*l*c,v=Math.sqrt(g),g<0||(0<(d=(-u+v)/(2*c))&&d<1&&m.push(d),0<(p=(-u-v)/(2*c))&&p<1&&m.push(p));for(var w,k=m.length,x=k;k--;)w=1-(h=m[k]),y[0][k]=w*w*w*e+3*w*w*h*r+3*w*h*h*a+h*h*h*o,y[1][k]=w*w*w*t+3*w*w*h*n+3*w*h*h*i+h*h*h*s;return y[0][x]=e,y[1][x]=t,y[0][x+1]=o,y[1][x+1]=s,y[0].length=y[1].length=x+2,[Math.min.apply(Math,f(y[0])),Math.min.apply(Math,f(y[1])),Math.max.apply(Math,f(y[0])),Math.max.apply(Math,f(y[1]))]}}]),e}();var w=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,728,711,710,729,733,731,730,732,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8226,8224,8225,8230,8212,8211,402,8260,8249,8250,8722,8240,8222,8220,8221,8216,8217,8218,8482,64257,64258,321,338,352,376,381,305,322,339,353,382,0,8364];function k(e){return decodeURIComponent(escape(e))}t.PromiseCapability=(n=new WeakMap,function(){function e(){var t=this;M(this,e),s(this,n,{writable:!0,value:!1}),this.promise=new Promise((function(e,r){t.resolve=function(r){l(t,n,!0),e(r)},t.reject=function(e){l(t,n,!0),r(e)}}))}return P(e,[{key:"settled",get:function(){return u(this,n)}}]),e}());var A=null,C=null},function(e,t,r){var n=r(48),a=r(14),i=r(77),o=r(146),s=URLSearchParams,c=s.prototype,u=a(c.append),l=a(c.delete),h=a(c.forEach),f=a([].push),d=new s("a=1&a=2");d.delete("a",1),d+""!="a=2"&&n(c,"delete",(function(e){var t=arguments.length,r=t<2?void 0:arguments[1];if(t&&void 0===r)return l(this,e);var n=[];h(this,(function(e,t){f(n,{key:t,value:e})})),o(t,1);for(var a,s=i(e),c=i(r),d=0,p=0,g=!1,v=n.length;d=0;s--){var c=o[s];if(c instanceof a.Dict){var u,h=x(c.getKeys());try{for(h.s();!(u=h.n()).done;){var d=u.value,p=r[d];if(p){var g=[];f(c.getRaw(d),e,g,new a.RefSet),g.length>0&&(i[p]=g)}}}catch(e){h.e(e)}finally{h.f()}}}if(t.has("A")){var v=[];f(t.get("A"),e,v,new a.RefSet),v.length>0&&(i.Action=v)}return(0,n.objectSize)(i)>0?i:null},t.encodeToXmlString=function(e){for(var t=[],r=0,n=0,a=e.length;n55295&&(i<57344||i>65533)&&n++,r=n+1}return 0===t.length?e:(r126||35===i||40===i||41===i||60===i||62===i||91===i||93===i||123===i||125===i||47===i||37===i)&&(r0?r:null},t.getRotationMatrix=function(e,t,r){switch(e){case 90:return[0,1,-1,0,t,0];case 180:return[-1,0,0,-1,t,r];case 270:return[0,-1,1,0,0,r];default:throw new Error("Invalid rotation")}},t.isAscii=function(e){return/^[\x00-\x7F]*$/.test(e)},t.isWhiteSpace=function(e){return 32===e||9===e||13===e||10===e},t.log2=function(e){return e<=0?0:Math.ceil(Math.log2(e))},t.numberToString=function(e){if(Number.isInteger(e))return e.toString();var t=Math.round(100*e);return t%100==0?(t/100).toString():t%10==0?e.toFixed(1):e.toFixed(2)},t.parseXFAPath=function(e){var t=/(.+)\[(\d+)\]$/;return e.split(".").map((function(e){var r=e.match(t);return r?{name:r[1],pos:parseInt(r[2],10)}:{name:e,pos:0}}))},t.readInt8=function(e,t){return e[t]<<24>>24},t.readUint16=function(e,t){return e[t]<<8|e[t+1]},t.readUint32=function(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0},t.recoverJsURL=function(e){var t=new RegExp("^\\s*("+["app.launchURL","window.open","xfa.host.gotoURL"].join("|").replaceAll(".","\\.")+")\\((?:'|\")([^'\"]*)(?:'|\")(?:,\\s*(\\w+)\\)|\\))","i").exec(e);if(null!=t&&t[2]){var r=t[2],n=!1;return"true"===t[3]&&"app.launchURL"===t[1]&&(n=!0),{url:r,newWindow:n}}return null},t.stringToUTF16HexString=function(e){for(var t=[],r=0,n=e.length;r>8&255).toString(16).padStart(2,"0"),(255&a).toString(16).padStart(2,"0"))}return t.join("")},t.stringToUTF16String=function(e){var t=[];arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&t.push("þÿ");for(var r=0,n=e.length;r>8&255),String.fromCharCode(255&a))}return t.join("")},t.toRomanNumerals=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(0,n.assert)(Number.isInteger(e)&&e>0,"The number should be a positive integer.");for(var r,a=[];e>=1e3;)e-=1e3,a.push("M");r=e/100|0,e%=100,a.push(h[r]),r=e/10|0,e%=10,a.push(h[10+r]),a.push(h[20+e]);var i=a.join("");return t?i.toLowerCase():i},t.validateCSSFont=function(e){var t=new Set(["100","200","300","400","500","600","700","800","900","1000","normal","bold","bolder","lighter"]),r=e.fontFamily,n=e.fontWeight,a=e.italicAngle;if(!g(r,!0))return!1;var i=n?n.toString():"";e.fontWeight=t.has(i)?i:"400";var o=parseFloat(a);return e.italicAngle=isNaN(o)||o<-90||o>90?"14":a.toString(),!0},t.validateFontName=g,r(84),r(93),r(94),r(97),r(99),r(101),r(105),r(108),r(115),r(139),r(116),r(126),r(128),r(131),r(133),r(135),r(137),r(2);var n=r(144),a=r(150),i=r(151);t.PDF_VERSION_REGEXP=/^[1-9]\.\d$/;var o=function(e){function t(e,r){var n;return M(this,t),(n=d(this,t,["Missing data [".concat(e,", ").concat(r,")"),"MissingDataException"])).begin=e,n.end=r,n}return y(t,e),P(t)}(n.BaseException);t.MissingDataException=o;var s=function(e){function t(e){return M(this,t),d(this,t,[e,"ParserEOFException"])}return y(t,e),P(t)}(n.BaseException);t.ParserEOFException=s;var c=function(e){function t(e){return M(this,t),d(this,t,[e,"XRefEntryException"])}return y(t,e),P(t)}(n.BaseException);t.XRefEntryException=c;var u=function(e){function t(e){return M(this,t),d(this,t,[e,"XRefParseException"])}return y(t,e),P(t)}(n.BaseException);function l(e){for(var t,r=e.dict,n=e.key,i=e.getArray,o=void 0!==i&&i,s=e.stopWhenFound,c=void 0===s||s,u=new a.RefSet;r instanceof a.Dict&&(!r.objId||!u.has(r.objId));){r.objId&&u.put(r.objId);var l=o?r.getArray(n):r.get(n);if(void 0!==l){if(c)return l;(t||(t=[])).push(l)}r=r.get("Parent")}return t}t.XRefParseException=u;var h=["","C","CC","CCC","CD","D","DC","DCC","DCCC","CM","","X","XX","XXX","XL","L","LX","LXX","LXXX","XC","","I","II","III","IV","V","VI","VII","VIII","IX"];function f(e,t,r,o){if(e){var s=null;if(e instanceof a.Ref){if(o.has(e))return;s=e,o.put(s),e=t.fetch(e)}if(Array.isArray(e)){var c,u=x(e);try{for(u.s();!(c=u.n()).done;)f(c.value,t,r,o)}catch(e){u.e(e)}finally{u.f()}}else if(e instanceof a.Dict){if((0,a.isName)(e.get("S"),"JavaScript")){var l,h=e.get("JS");h instanceof i.BaseStream?l=h.getString():"string"==typeof h&&(l=h),l&&(l=(0,n.stringToPDFString)(l).replaceAll("\0","")),l&&r.push(l)}f(e.getRaw("Next"),t,r,o)}s&&o.remove(s)}}var p={60:"<",62:">",38:"&",34:""",39:"'"};function g(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=/^("|').*("|')$/.exec(e);if(r&&r[1]===r[2]){if(new RegExp("[^\\\\]".concat(r[1])).test(e.slice(1,-1)))return t&&(0,n.warn)("FontFamily contains unescaped ".concat(r[1],": ").concat(e,".")),!1}else{var a,i=x(e.split(/[ \t]+/));try{for(i.s();!(a=i.n()).done;){var o=a.value;if(/^(\d|(-(\d|-)))/.test(o)||!/^[\w-\\]+$/.test(o))return t&&(0,n.warn)("FontFamily contains invalid : ".concat(e,".")),!1}}catch(e){i.e(e)}finally{i.f()}}return!0}},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.RefSetCache=t.RefSet=t.Ref=t.Name=t.EOF=t.Dict=t.Cmd=t.CIRCULAR_REF=void 0,t.clearPrimitiveCaches=function(){o=Object.create(null),s=Object.create(null),c=Object.create(null)},t.isCmd=function(e,t){return e instanceof l&&(void 0===t||e.cmd===t)},t.isDict=function(e,t){return e instanceof f&&(void 0===t||v(e.get("Type"),t))},t.isName=v,t.isRefsEqual=function(e,t){return e.num===t.num&&e.gen===t.gen},r(139),r(116),r(126),r(128),r(131),r(133),r(135),r(137);var n=r(144),a=Symbol("CIRCULAR_REF");t.CIRCULAR_REF=a;var i=Symbol("EOF");t.EOF=i;var o=Object.create(null),s=Object.create(null),c=Object.create(null),u=function(){function e(t){M(this,e),this.name=t}return P(e,null,[{key:"get",value:function(t){var r;return(r=s)[t]||(r[t]=new e(t))}}]),e}();t.Name=u;var l=function(){function e(t){M(this,e),this.cmd=t}return P(e,null,[{key:"get",value:function(t){var r;return(r=o)[t]||(r[t]=new e(t))}}]),e}();t.Cmd=l;var h=function(){return h},f=function(){function e(){M(this,e);var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this._map=Object.create(null),this.xref=t,this.objId=null,this.suppressEncryption=!1,this.__nonSerializable__=h}var t;return P(e,[{key:"assignXref",value:function(e){this.xref=e}},{key:"size",get:function(){return Object.keys(this._map).length}},{key:"get",value:function(e,t,r){var n=this._map[e];return void 0===n&&void 0!==t&&void 0===(n=this._map[t])&&void 0!==r&&(n=this._map[r]),n instanceof d&&this.xref?this.xref.fetch(n,this.suppressEncryption):n}},{key:"getAsync",value:(t=T(k().mark((function e(t,r,n){var a;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return void 0===(a=this._map[t])&&void 0!==r&&void 0===(a=this._map[r])&&void 0!==n&&(a=this._map[n]),e.abrupt("return",a instanceof d&&this.xref?this.xref.fetchAsync(a,this.suppressEncryption):a);case 3:case"end":return e.stop()}}),e,this)}))),function(e,r,n){return t.apply(this,arguments)})},{key:"getArray",value:function(e,t,r){var n=this._map[e];if(void 0===n&&void 0!==t&&void 0===(n=this._map[t])&&void 0!==r&&(n=this._map[r]),n instanceof d&&this.xref&&(n=this.xref.fetch(n,this.suppressEncryption)),Array.isArray(n))for(var a=0,i=(n=n.slice()).length;a0&&(s._map[w]=C)}else s._map[w]=k[0]}}catch(e){y.e(e)}finally{y.f()}return c.clear(),s.size>0?s:e.empty}}]),e}();t.Dict=f;var d=function(){function e(t,r){M(this,e),this.num=t,this.gen=r}return P(e,[{key:"toString",value:function(){return 0===this.gen?"".concat(this.num,"R"):"".concat(this.num,"R").concat(this.gen)}}],[{key:"fromString",value:function(t){var r=c[t];if(r)return r;var n=/^(\d+)R(\d*)$/.exec(t);return n&&"0"!==n[1]?c[t]=new e(parseInt(n[1]),n[2]?parseInt(n[2]):0):null}},{key:"get",value:function(t,r){var n,a=0===r?"".concat(t,"R"):"".concat(t,"R").concat(r);return(n=c)[a]||(n[a]=new e(t,r))}}]),e}();t.Ref=d;var p=function(e){function t(){M(this,t);var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this._set=new Set(null==e?void 0:e._set)}return P(t,[{key:"has",value:function(e){return this._set.has(e.toString())}},{key:"put",value:function(e){this._set.add(e.toString())}},{key:"remove",value:function(e){this._set.delete(e.toString())}},{key:Symbol.iterator,value:function(){return this._set.values()}},{key:"clear",value:function(){this._set.clear()}}]),t}();t.RefSet=p;var g=function(e){function t(){M(this,t),this._map=new Map}return P(t,[{key:"size",get:function(){return this._map.size}},{key:"get",value:function(e){return this._map.get(e.toString())}},{key:"has",value:function(e){return this._map.has(e.toString())}},{key:"put",value:function(e,t){this._map.set(e.toString(),t)}},{key:"putAlias",value:function(e,t){this._map.set(e.toString(),this.get(t))}},{key:Symbol.iterator,value:function(){return this._map.values()}},{key:"clear",value:function(){this._map.clear()}}]),t}();function v(e,t){return e instanceof u&&(void 0===t||e.name===t)}t.RefSetCache=g},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.BaseStream=void 0;var n=r(144),a=function(){function e(){M(this,e),this.constructor===e&&(0,n.unreachable)("Cannot initialize BaseStream.")}return P(e,[{key:"length",get:function(){(0,n.unreachable)("Abstract getter `length` accessed")}},{key:"isEmpty",get:function(){(0,n.unreachable)("Abstract getter `isEmpty` accessed")}},{key:"isDataLoaded",get:function(){return(0,n.shadow)(this,"isDataLoaded",!0)}},{key:"getByte",value:function(){(0,n.unreachable)("Abstract method `getByte` called")}},{key:"getBytes",value:function(e){(0,n.unreachable)("Abstract method `getBytes` called")}},{key:"peekByte",value:function(){var e=this.getByte();return-1!==e&&this.pos--,e}},{key:"peekBytes",value:function(e){var t=this.getBytes(e);return this.pos-=t.length,t}},{key:"getUint16",value:function(){var e=this.getByte(),t=this.getByte();return-1===e||-1===t?-1:(e<<8)+t}},{key:"getInt32",value:function(){return(this.getByte()<<24)+(this.getByte()<<16)+(this.getByte()<<8)+this.getByte()}},{key:"getByteRange",value:function(e,t){(0,n.unreachable)("Abstract method `getByteRange` called")}},{key:"getString",value:function(e){return(0,n.bytesToString)(this.getBytes(e))}},{key:"skip",value:function(e){this.pos+=e||1}},{key:"reset",value:function(){(0,n.unreachable)("Abstract method `reset` called")}},{key:"moveStart",value:function(){(0,n.unreachable)("Abstract method `moveStart` called")}},{key:"makeSubStream",value:function(e,t){(0,n.unreachable)("Abstract method `makeSubStream` called")}},{key:"getBaseStreams",value:function(){return null}}]),e}();t.BaseStream=a},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.NetworkPdfManager=t.LocalPdfManager=void 0;var n=r(144),a=r(153),i=r(149),o=r(155),s=r(154),c=function(){function e(t){var r;M(this,e),this.constructor===e&&(0,n.unreachable)("Cannot initialize BasePdfManager."),this._docBaseUrl=function(e){if(e){var t=(0,n.createValidAbsoluteUrl)(e);if(t)return t.href;(0,n.warn)('Invalid absolute docBaseUrl: "'.concat(e,'".'))}return null}(t.docBaseUrl),this._docId=t.docId,this._password=t.password,this.enableXfa=t.enableXfa,(r=t.evaluatorOptions).isOffscreenCanvasSupported&&(r.isOffscreenCanvasSupported=n.FeatureTest.isOffscreenCanvasSupported),this.evaluatorOptions=t.evaluatorOptions}var t;return P(e,[{key:"docId",get:function(){return this._docId}},{key:"password",get:function(){return this._password}},{key:"docBaseUrl",get:function(){var e=this.pdfDocument.catalog;return(0,n.shadow)(this,"docBaseUrl",e.baseUrl||this._docBaseUrl)}},{key:"ensureDoc",value:function(e,t){return this.ensure(this.pdfDocument,e,t)}},{key:"ensureXRef",value:function(e,t){return this.ensure(this.pdfDocument.xref,e,t)}},{key:"ensureCatalog",value:function(e,t){return this.ensure(this.pdfDocument.catalog,e,t)}},{key:"getPage",value:function(e){return this.pdfDocument.getPage(e)}},{key:"fontFallback",value:function(e,t){return this.pdfDocument.fontFallback(e,t)}},{key:"loadXfaFonts",value:function(e,t){return this.pdfDocument.loadXfaFonts(e,t)}},{key:"loadXfaImages",value:function(){return this.pdfDocument.loadXfaImages()}},{key:"serializeXfaData",value:function(e){return this.pdfDocument.serializeXfaData(e)}},{key:"cleanup",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.pdfDocument.cleanup(e)}},{key:"ensure",value:(t=T(k().mark((function e(t,r,a){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(0,n.unreachable)("Abstract method `ensure` called");case 1:case"end":return e.stop()}}),e)}))),function(e,r,n){return t.apply(this,arguments)})},{key:"requestRange",value:function(e,t){(0,n.unreachable)("Abstract method `requestRange` called")}},{key:"requestLoadedStream",value:function(){(0,n.unreachable)("Abstract method `requestLoadedStream` called")}},{key:"sendProgressiveData",value:function(e){(0,n.unreachable)("Abstract method `sendProgressiveData` called")}},{key:"updatePassword",value:function(e){this._password=e}},{key:"terminate",value:function(e){(0,n.unreachable)("Abstract method `terminate` called")}}]),e}();t.LocalPdfManager=function(e){function t(e){var r;M(this,t),r=d(this,t,[e]);var n=new s.Stream(e.source);return r.pdfDocument=new o.PDFDocument(g(r),n),r._loadedStreamPromise=Promise.resolve(n),r}var r;return y(t,e),P(t,[{key:"ensure",value:(r=T(k().mark((function e(t,r,n){var a;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t[r],e.abrupt("return","function"==typeof a?a.apply(t,n):a);case 2:case"end":return e.stop()}}),e)}))),function(e,t,n){return r.apply(this,arguments)})},{key:"requestRange",value:function(e,t){return Promise.resolve()}},{key:"requestLoadedStream",value:function(){return this._loadedStreamPromise}},{key:"terminate",value:function(e){}}]),t}(c),t.NetworkPdfManager=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[e])).streamManager=new a.ChunkedStreamManager(e.source,{msgHandler:e.handler,length:e.length,disableAutoFetch:e.disableAutoFetch,rangeChunkSize:e.rangeChunkSize}),r.pdfDocument=new o.PDFDocument(g(r),r.streamManager.getStream()),r}var r;return y(t,e),P(t,[{key:"ensure",value:(r=T(k().mark((function e(t,r,n){var a;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,a=t[r],e.abrupt("return","function"==typeof a?a.apply(t,n):a);case 5:if(e.prev=5,e.t0=e.catch(0),e.t0 instanceof i.MissingDataException){e.next=9;break}throw e.t0;case 9:return e.next=11,this.requestRange(e.t0.begin,e.t0.end);case 11:return e.abrupt("return",this.ensure(t,r,n));case 12:case"end":return e.stop()}}),e,this,[[0,5]])}))),function(e,t,n){return r.apply(this,arguments)})},{key:"requestRange",value:function(e,t){return this.streamManager.requestRange(e,t)}},{key:"requestLoadedStream",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.streamManager.requestAllChunks(e)}},{key:"sendProgressiveData",value:function(e){this.streamManager.onReceiveData({chunk:e})}},{key:"terminate",value:function(e){this.streamManager.abort(e)}}]),t}(c)},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.ChunkedStreamManager=t.ChunkedStream=void 0,r(84),r(93),r(94),r(97),r(99),r(101),r(105),r(108),r(115),r(116),r(126),r(128),r(131),r(133),r(135),r(137),r(139),r(2);var n=r(149),a=r(144),i=function(e){function t(e,r,n){var a;return M(this,t),(a=d(this,t,[new Uint8Array(e),0,e,null])).chunkSize=r,a._loadedChunks=new Set,a.numChunks=Math.ceil(e/r),a.manager=n,a.progressiveDataLength=0,a.lastSuccessfulEnsureByteChunk=-1,a}return y(t,e),P(t,[{key:"getMissingChunks",value:function(){for(var e=[],t=0,r=this.numChunks;t=this.end?this.numChunks:Math.floor(t/this.chunkSize),a=r;athis.numChunks)&&t!==this.lastSuccessfulEnsureByteChunk){if(!this._loadedChunks.has(t))throw new n.MissingDataException(e,e+1);this.lastSuccessfulEnsureByteChunk=t}}}},{key:"ensureRange",value:function(e,t){if(!(e>=t||t<=this.progressiveDataLength)){var r=Math.floor(e/this.chunkSize);if(!(r>this.numChunks))for(var a=Math.min(Math.floor((t-1)/this.chunkSize)+1,this.numChunks),i=r;i=this.end?-1:(e>=this.progressiveDataLength&&this.ensureByte(e),this.bytes[this.pos++])}},{key:"getBytes",value:function(e){var t=this.bytes,r=this.pos,n=this.end;if(!e)return n>this.progressiveDataLength&&this.ensureRange(r,n),t.subarray(r,n);var a=r+e;return a>n&&(a=n),a>this.progressiveDataLength&&this.ensureRange(r,a),this.pos=a,t.subarray(r,a)}},{key:"getByteRange",value:function(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)}},{key:"makeSubStream",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;function n(){}t?e+t>this.progressiveDataLength&&this.ensureRange(e,e+t):e>=this.progressiveDataLength&&this.ensureByte(e),n.prototype=Object.create(this),n.prototype.getMissingChunks=function(){for(var e=this.chunkSize,t=Math.floor(this.start/e),r=Math.floor((this.end-1)/e)+1,n=[],a=t;a0&&void 0!==arguments[0]&&arguments[0])){var e=this.stream.getMissingChunks();this._requestChunks(e)}return this._loadedStreamCapability.promise}},{key:"_requestChunks",value:function(e){var t=this,r=this.currRequestId++,n=new Set;this._chunksNeededByRequest.set(r,n);var i,o=x(e);try{for(o.s();!(i=o.n()).done;){var s=i.value;this.stream.hasChunk(s)||n.add(s)}}catch(e){o.e(e)}finally{o.f()}if(0===n.size)return Promise.resolve();var c=new a.PromiseCapability;this._promisesByRequest.set(r,c);var u,l=[],h=x(n);try{for(h.s();!(u=h.n()).done;){var f=u.value,d=this._requestsByChunk.get(f);d||(d=[],this._requestsByChunk.set(f,d),l.push(f)),d.push(r)}}catch(e){h.e(e)}finally{h.f()}if(l.length>0){var p,g=x(this.groupChunks(l));try{for(g.s();!(p=g.n()).done;){var v=p.value,m=v.beginChunk*this.chunkSize,y=Math.min(v.endChunk*this.chunkSize,this.length);this.sendRequest(m,y).catch(c.reject)}}catch(e){g.e(e)}finally{g.f()}}return c.promise.catch((function(e){if(!t.aborted)throw e}))}},{key:"getStream",value:function(){return this.stream}},{key:"requestRange",value:function(e,t){t=Math.min(t,this.length);for(var r=this.getBeginChunk(e),n=this.getEndChunk(t),a=[],i=r;i0&&void 0!==arguments[0]?arguments[0]:[]);try{for(r.s();!(e=r.n()).done;)for(var n=e.value,a=this.getBeginChunk(n.begin),i=this.getEndChunk(n.end),o=a;o=0&&n+1!==o&&(t.push({beginChunk:r,endChunk:n+1}),r=o),a+1===e.length&&t.push({beginChunk:r,endChunk:o+1}),n=o}return t}},{key:"onProgress",value:function(e){this.msgHandler.send("DocProgress",{loaded:this.stream.numChunksLoaded*this.chunkSize+e.loaded,total:this.length})}},{key:"onReceiveData",value:function(e){var t=e.chunk,r=void 0===e.begin,n=r?this.progressiveDataLength:e.begin,a=n+t.byteLength,i=Math.floor(n/this.chunkSize),o=a0||s.push(f)}}catch(e){h.e(e)}finally{h.f()}}}if(!this.disableAutoFetch&&0===this._requestsByChunk.size){var p;if(1===this.stream.numChunksLoaded){var g=this.stream.numChunks-1;this.stream.hasChunk(g)||(p=g)}else p=this.stream.nextEmptyChunk(o);Number.isInteger(p)&&this._requestChunks([p])}for(var v=0,m=s;v=this.end?-1:this.bytes[this.pos++]}},{key:"getBytes",value:function(e){var t=this.bytes,r=this.pos,n=this.end;if(!e)return t.subarray(r,n);var a=r+e;return a>n&&(a=n),this.pos=a,t.subarray(r,a)}},{key:"getByteRange",value:function(e,t){return e<0&&(e=0),t>this.end&&(t=this.end),this.bytes.subarray(e,t)}},{key:"reset",value:function(){this.pos=this.start}},{key:"moveStart",value:function(){this.start=this.pos}},{key:"makeSubStream",value:function(e,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return new t(this.bytes.buffer,e,r,n)}}]),t}(n.BaseStream);t.Stream=i,t.StringStream=function(e){function t(e){return M(this,t),d(this,t,[(0,a.stringToBytes)(e)])}return y(t,e),P(t)}(i),t.NullStream=function(e){function t(){return M(this,t),d(this,t,[new Uint8Array(0)])}return y(t,e),P(t)}(i)},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.Page=t.PDFDocument=void 0,r(2),r(139),r(116),r(126),r(128),r(131),r(133),r(135),r(137),r(84),r(93),r(94),r(97),r(99),r(101),r(105),r(108),r(115);var n=r(144),a=r(156),s=r(149),c=r(150),u=r(201),l=r(151),h=r(218),p=r(220),g=r(222),v=r(255),m=r(166),b=r(154),w=r(226),A=r(214),C=r(163),O=r(168),F=r(225),I=r(216),E=r(227),R=r(256),D=[0,0,612,792],B=new WeakSet,L=function(){function e(t){M(this,e),i(this,B);var r=t.pdfManager,n=t.xref,a=t.pageIndex,o=t.pageDict,s=t.ref,c=t.globalIdFactory,u=t.fontCache,l=t.builtInCMapCache,h=t.standardFontDataCache,f=t.globalImageCache,p=t.systemFontCache,g=t.nonBlendModesSet,v=t.xfaFactory;this.pdfManager=r,this.pageIndex=a,this.pageDict=o,this.xref=n,this.ref=s,this.fontCache=u,this.builtInCMapCache=l,this.standardFontDataCache=h,this.globalImageCache=f,this.systemFontCache=p,this.nonBlendModesSet=g,this.evaluatorOptions=r.evaluatorOptions,this.resourcesPromise=null,this.xfaFactory=v;var m={obj:0};this._localIdFactory=function(e){function t(){return M(this,t),d(this,t,arguments)}return y(t,e),P(t,null,[{key:"createObjId",value:function(){return"p".concat(a,"_").concat(++m.obj)}},{key:"getPageObjId",value:function(){return"p".concat(s.toString())}}]),t}(c)}var t,r,u;return P(e,[{key:"_getInheritableProperty",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=(0,s.getInheritableProperty)({dict:this.pageDict,key:e,getArray:t,stopWhenFound:!1});return Array.isArray(r)?1!==r.length&&r[0]instanceof c.Dict?c.Dict.merge({xref:this.xref,dictArray:r}):r[0]:r}},{key:"content",get:function(){return this.pageDict.getArray("Contents")}},{key:"resources",get:function(){var e=this._getInheritableProperty("Resources");return(0,n.shadow)(this,"resources",e instanceof c.Dict?e:c.Dict.empty)}},{key:"_getBoundingBox",value:function(e){if(this.xfaData)return this.xfaData.bbox;var t=this._getInheritableProperty(e,!0);if(Array.isArray(t)&&4===t.length){if((t=n.Util.normalizeRect(t))[2]-t[0]>0&&t[3]-t[1]>0)return t;(0,n.warn)("Empty, or invalid, /".concat(e," entry."))}return null}},{key:"mediaBox",get:function(){return(0,n.shadow)(this,"mediaBox",this._getBoundingBox("MediaBox")||D)}},{key:"cropBox",get:function(){return(0,n.shadow)(this,"cropBox",this._getBoundingBox("CropBox")||this.mediaBox)}},{key:"userUnit",get:function(){var e=this.pageDict.get("UserUnit");return("number"!=typeof e||e<=0)&&(e=1),(0,n.shadow)(this,"userUnit",e)}},{key:"view",get:function(){var e=this.cropBox,t=this.mediaBox;if(e!==t&&!(0,n.isArrayEqual)(e,t)){var r=n.Util.intersect(e,t);if(r&&r[2]-r[0]>0&&r[3]-r[1]>0)return(0,n.shadow)(this,"view",r);(0,n.warn)("Empty /CropBox and /MediaBox intersection.")}return(0,n.shadow)(this,"view",t)}},{key:"rotate",get:function(){var e=this._getInheritableProperty("Rotate")||0;return e%90!=0?e=0:e>=360?e%=360:e<0&&(e=(e%360+360)%360),(0,n.shadow)(this,"rotate",e)}},{key:"_onSubStreamError",value:function(e,t){if(!this.evaluatorOptions.ignoreErrors)throw e;(0,n.warn)("getContentStream - ignoring sub-stream (".concat(t,'): "').concat(e,'".'))}},{key:"getContentStream",value:function(){var e=this;return this.pdfManager.ensure(this,"content").then((function(t){return t instanceof l.BaseStream?t:Array.isArray(t)?new O.StreamsSequenceStream(t,e._onSubStreamError.bind(e)):new b.NullStream}))}},{key:"xfaData",get:function(){return(0,n.shadow)(this,"xfaData",this.xfaFactory?{bbox:this.xfaFactory.getBoundingBox(this.pageIndex)}:null)}},{key:"saveNewAnnotations",value:(u=T(k().mark((function e(t,r,n,i){var s,u,l,h,d,p,g,v,m,y,b,w,S;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.xfaFactory){e.next=2;break}throw new Error("XFA: Cannot save new annotations.");case 2:return s=new C.PartialEvaluator({xref:this.xref,handler:t,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,systemFontCache:this.systemFontCache,options:this.evaluatorOptions}),u=new c.RefSet,l=new c.RefSet,o(this,B,_).call(this,n,u,l),h=this.pageDict,d=this.annotations.filter((function(e){return!(e instanceof c.Ref&&u.has(e))})),e.next=8,a.AnnotationFactory.saveNewAnnotations(s,r,n,i);case 8:p=e.sent,g=x(p.annotations);try{for(g.s();!(v=g.n()).done;)(m=v.value.ref)instanceof c.Ref&&!l.has(m)&&d.push(m)}catch(e){g.e(e)}finally{g.f()}return y=h.get("Annots"),h.set("Annots",d),b=[],w=null,this.xref.encrypt&&(w=this.xref.encrypt.createCipherTransform(this.ref.num,this.ref.gen)),e.next=18,(0,I.writeObject)(this.ref,h,b,w);case 18:return y&&h.set("Annots",y),(S=p.dependencies).push.apply(S,[{ref:this.ref,data:b.join("")}].concat(f(p.annotations))),e.abrupt("return",S);case 22:case"end":return e.stop()}}),e,this)}))),function(e,t,r,n){return u.apply(this,arguments)})},{key:"save",value:function(e,t,r){var a=new C.PartialEvaluator({xref:this.xref,handler:e,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,systemFontCache:this.systemFontCache,options:this.evaluatorOptions});return this._parsedAnnotations.then((function(e){var i,o=[],s=x(e);try{for(s.s();!(i=s.n()).done;){var c=i.value;c.mustBePrinted(r)&&o.push(c.save(a,t,r).catch((function(e){return(0,n.warn)('save - ignoring annotation data during "'.concat(t.name,'" task: "').concat(e,'".')),null})))}}catch(e){s.e(e)}finally{s.f()}return Promise.all(o).then((function(e){return e.filter((function(e){return!!e}))}))}))}},{key:"loadResources",value:function(e){var t=this;return this.resourcesPromise||(this.resourcesPromise=this.pdfManager.ensure(this,"resources")),this.resourcesPromise.then((function(){return new w.ObjectLoader(t.resources,e,t.xref).load()}))}},{key:"getOperatorList",value:function(e){var t=this,r=e.handler,i=e.sink,u=e.task,l=e.intent,h=e.cacheKey,f=e.annotationStorage,d=void 0===f?null:f,p=this.getContentStream(),g=this.loadResources(["ColorSpace","ExtGState","Font","Pattern","Properties","Shading","XObject"]),v=new C.PartialEvaluator({xref:this.xref,handler:r,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,systemFontCache:this.systemFontCache,options:this.evaluatorOptions}),m=this.xfaFactory?null:(0,s.getNewAnnotationsMap)(d),y=null,b=Promise.resolve(null);if(m){var w,k=m.get(this.pageIndex);if(k){var O,F=new Set,I=x(k);try{for(I.s();!(O=I.n()).done;){var T=O.value,M=T.bitmapId,E=T.bitmap;!M||E||F.has(M)||F.add(M)}}catch(e){I.e(e)}finally{I.f()}var P=this.evaluatorOptions.isOffscreenCanvasSupported;if(F.size>0){var R,N=k.slice(),D=x(d);try{for(D.s();!(R=D.n()).done;){var L=S(R.value,2),j=L[0],U=L[1];j.startsWith(n.AnnotationEditorPrefix)&&U.bitmap&&F.has(U.bitmapId)&&N.push(U)}}catch(e){D.e(e)}finally{D.f()}w=a.AnnotationFactory.generateImages(N,this.xref,P)}else w=a.AnnotationFactory.generateImages(k,this.xref,P);y=new c.RefSet,o(this,B,_).call(this,k,y,null),b=a.AnnotationFactory.printNewAnnotations(v,u,k,w)}}var $=Promise.all([p,g]).then((function(e){var n=S(e,1)[0],a=new A.OperatorList(l,i);return r.send("StartRenderPage",{transparency:v.hasBlendModes(t.resources,t.nonBlendModesSet),pageIndex:t.pageIndex,cacheKey:h}),v.getOperatorList({stream:n,task:u,resources:t.resources,operatorList:a}).then((function(){return a}))}));return Promise.all([$,this._parsedAnnotations,b]).then((function(e){var t=S(e,3),r=t[0],a=t[1],i=t[2];if(i){a=a.filter((function(e){return!(e.ref&&y.has(e.ref))}));for(var o=function(e,t){var r=i[e];if(r.refToReplace){var n=a.findIndex((function(e){return e.ref&&(0,c.isRefsEqual)(e.ref,r.refToReplace)}));n>=0&&(a.splice(n,1,r),i.splice(e--,1),t--)}s=e,h=t},s=0,h=i.length;s2&&void 0!==arguments[2]?arguments[2]:1024,n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=t.length,i=e.peekBytes(r),o=i.length-a;if(o<=0)return!1;if(n)for(var s=a-1,c=i.length-1;c>=s;){for(var u=0;u=a)return e.pos+=c-s,!0;c--}else for(var l=0;l<=o;){for(var h=0;h=a)return e.pos+=l,!0;l++}return!1}t.PDFDocument=function(){function e(t,r){if(M(this,e),r.length<=0)throw new n.InvalidPDFException("The PDF file is empty, i.e. its size is zero bytes.");this.pdfManager=t,this.stream=r,this.xref=new R.XRef(r,t),this._pagePromises=new Map,this._version=null;var a={font:0};this._globalIdFactory=function(){function e(){M(this,e)}return P(e,null,[{key:"getDocId",value:function(){return"g_".concat(t.docId)}},{key:"createFontId",value:function(){return"f"+ ++a.font}},{key:"createObjId",value:function(){(0,n.unreachable)("Abstract method `createObjId` called.")}},{key:"getPageObjId",value:function(){(0,n.unreachable)("Abstract method `getPageObjId` called.")}}]),e}()}var t,r,i,o,f,d,y,b;return P(e,[{key:"parse",value:function(e){this.xref.parse(e),this.catalog=new p.Catalog(this.pdfManager,this.xref)}},{key:"linearization",get:function(){var e=null;try{e=m.Linearization.create(this.stream)}catch(e){if(e instanceof s.MissingDataException)throw e;(0,n.info)(e)}return(0,n.shadow)(this,"linearization",e)}},{key:"startXRef",get:function(){var e=this.stream,t=0;if(this.linearization)e.reset(),X(e,$)&&(t=e.pos+6-e.start);else{for(var r=U.length,a=!1,i=e.end;!a&&i>0;)(i-=1024-r)<0&&(i=0),e.pos=i,a=X(e,U,1024,!0);if(a){var o;e.skip(9);do{o=e.getByte()}while((0,s.isWhiteSpace)(o));for(var c="";o>=32&&o<=57;)c+=String.fromCharCode(o),o=e.getByte();t=parseInt(c,10),isNaN(t)&&(t=0)}}return(0,n.shadow)(this,"startXRef",t)}},{key:"checkHeader",value:function(){var e=this.stream;if(e.reset(),X(e,j)){e.moveStart(),e.skip(j.length);for(var t,r="";(t=e.getByte())>32&&r.length<7;)r+=String.fromCharCode(t);s.PDF_VERSION_REGEXP.test(r)?this._version=r:(0,n.warn)("Invalid PDF header version: ".concat(r))}}},{key:"parseStartXRef",value:function(){this.xref.setStartXRef(this.startXRef)}},{key:"numPages",get:function(){var e;return e=this.catalog.hasActualNumPages?this.catalog.numPages:this.xfaFactory?this.xfaFactory.getNumPages():this.linearization?this.linearization.numPages:this.catalog.numPages,(0,n.shadow)(this,"numPages",e)}},{key:"_hasOnlyDocumentSignatures",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return!!Array.isArray(e)&&e.every((function(e){if(!((e=t.xref.fetchIfRef(e))instanceof c.Dict))return!1;if(e.has("Kids"))return++r>10?((0,n.warn)("_hasOnlyDocumentSignatures: maximum recursion depth reached"),!1):t._hasOnlyDocumentSignatures(e.get("Kids"),r);var a=(0,c.isName)(e.get("FT"),"Sig"),i=e.get("Rect"),o=Array.isArray(i)&&i.every((function(e){return 0===e}));return a&&o}))}},{key:"_xfaStreams",get:function(){var e=this.catalog.acroForm;if(!e)return null;var t=e.get("XFA"),r={"xdp:xdp":"",template:"",datasets:"",config:"",connectionSet:"",localeSet:"",stylesheet:"","/xdp:xdp":""};if(t instanceof l.BaseStream&&!t.isEmpty)return r["xdp:xdp"]=t,r;if(!Array.isArray(t)||0===t.length)return null;for(var n=0,a=t.length;n0;e.hasFields=a;var i=t.get("XFA");e.hasXfa=Array.isArray(i)&&i.length>0||i instanceof l.BaseStream&&!i.isEmpty;var o=!!(1&t.get("SigFlags")),c=o&&this._hasOnlyDocumentSignatures(r);e.hasAcroForm=a&&!c,e.hasSignatures=o}catch(e){if(e instanceof s.MissingDataException)throw e;(0,n.warn)('Cannot fetch form information: "'.concat(e,'".'))}return(0,n.shadow)(this,"formInfo",e)}},{key:"documentInfo",get:function(){var e,t={PDFFormatVersion:this.version,Language:this.catalog.lang,EncryptFilterName:this.xref.encrypt?this.xref.encrypt.filterName:null,IsLinearized:!!this.linearization,IsAcroFormPresent:this.formInfo.hasAcroForm,IsXFAPresent:this.formInfo.hasXfa,IsCollectionPresent:!!this.catalog.collection,IsSignaturesPresent:this.formInfo.hasSignatures};try{e=this.xref.trailer.get("Info")}catch(t){if(t instanceof s.MissingDataException)throw t;(0,n.info)("The document information dictionary is invalid.")}if(!(e instanceof c.Dict))return(0,n.shadow)(this,"documentInfo",t);var r,a=x(e.getKeys());try{for(a.s();!(r=a.n()).done;){var i=r.value,o=e.get(i);switch(i){case"Title":case"Author":case"Subject":case"Keywords":case"Creator":case"Producer":case"CreationDate":case"ModDate":if("string"==typeof o){t[i]=(0,n.stringToPDFString)(o);continue}break;case"Trapped":if(o instanceof c.Name){t[i]=o;continue}break;default:var u=void 0;switch(N(o)){case"string":u=(0,n.stringToPDFString)(o);break;case"number":case"boolean":u=o;break;default:o instanceof c.Name&&(u=o)}if(void 0===u){(0,n.warn)('Bad value, for custom key "'.concat(i,'", in Info: ').concat(o,"."));continue}t.Custom||(t.Custom=Object.create(null)),t.Custom[i]=u;continue}(0,n.warn)('Bad value, for key "'.concat(i,'", in Info: ').concat(o,"."))}}catch(e){a.e(e)}finally{a.f()}return(0,n.shadow)(this,"documentInfo",t)}},{key:"fingerprints",get:function(){function e(e){return"string"==typeof e&&e.length>0&&"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"!==e}function t(e){var t,r=[],n=x(e);try{for(n.s();!(t=n.n()).done;){var a=t.value.toString(16);r.push(a.padStart(2,"0"))}}catch(e){n.e(e)}finally{n.f()}return r.join("")}var r,a,i=this.xref.trailer.get("ID");return Array.isArray(i)&&e(i[0])?(r=(0,n.stringToBytes)(i[0]),i[1]!==i[0]&&e(i[1])&&(a=(0,n.stringToBytes)(i[1]))):r=(0,h.calculateMD5)(this.stream.getByteRange(0,1024),0,1024),(0,n.shadow)(this,"fingerprints",[t(r),a?t(a):null])}},{key:"_getLinearizationPage",value:(f=T(k().mark((function e(t){var r,a,i,o,s,u;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this.catalog,a=this.linearization,i=this.xref,o=c.Ref.get(a.objectNumberFirst,0),e.prev=1,e.next=4,i.fetchAsync(o);case 4:if(!((s=e.sent)instanceof c.Dict)){e.next=16;break}if(u=s.getRaw("Type"),e.t0=u instanceof c.Ref,!e.t0){e.next=12;break}return e.next=11,i.fetchAsync(u);case 11:u=e.sent;case 12:if(!(0,c.isName)(u,"Page")&&(s.has("Type")||s.has("Kids"))){e.next=16;break}return r.pageKidsCountCache.has(o)||r.pageKidsCountCache.put(o,1),r.pageIndexCache.has(o)||r.pageIndexCache.put(o,0),e.abrupt("return",[s,o]);case 16:throw new n.FormatError("The Linearization dictionary doesn't point to a valid Page dictionary.");case 19:return e.prev=19,e.t1=e.catch(1),(0,n.warn)('_getLinearizationPage: "'.concat(e.t1.message,'".')),e.abrupt("return",r.getPageDict(t));case 23:case"end":return e.stop()}}),e,this,[[1,19]])}))),function(e){return f.apply(this,arguments)})},{key:"getPage",value:function(e){var t=this,r=this._pagePromises.get(e);if(r)return r;var n,a=this.catalog,i=this.linearization,o=this.xfaFactory;return n=(n=o?Promise.resolve([c.Dict.empty,null]):(null==i?void 0:i.pageFirst)===e?this._getLinearizationPage(e):a.getPageDict(e)).then((function(r){var n=S(r,2),i=n[0],s=n[1];return new L({pdfManager:t.pdfManager,xref:t.xref,pageIndex:e,pageDict:i,ref:s,globalIdFactory:t._globalIdFactory,fontCache:a.fontCache,builtInCMapCache:a.builtInCMapCache,standardFontDataCache:a.standardFontDataCache,globalImageCache:a.globalImageCache,systemFontCache:a.systemFontCache,nonBlendModesSet:a.nonBlendModesSet,xfaFactory:o})})),this._pagePromises.set(e,n),n}},{key:"checkFirstPage",value:(o=T(k().mark((function e(){var t=arguments;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.length>0&&void 0!==t[0]&&t[0]){e.next=13;break}return e.prev=1,e.next=4,this.getPage(0);case 4:e.next=13;break;case 6:if(e.prev=6,e.t0=e.catch(1),!(e.t0 instanceof s.XRefEntryException)){e.next=13;break}return this._pagePromises.delete(0),e.next=12,this.cleanup();case 12:throw new s.XRefParseException;case 13:case"end":return e.stop()}}),e,this,[[1,6]])}))),function(){return o.apply(this,arguments)})},{key:"checkLastPage",value:(i=T(k().mark((function e(){var t,r,a,i,o,c,u,l,h,f,d,p,g,v=arguments;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=v.length>0&&void 0!==v[0]&&v[0],r=this.catalog,a=this.pdfManager,r.setActualNumPages(),e.prev=3,e.next=6,Promise.all([a.ensureDoc("xfaFactory"),a.ensureDoc("linearization"),a.ensureCatalog("numPages")]);case 6:if(!this.xfaFactory){e.next=8;break}return e.abrupt("return");case 8:if(i=this.linearization?this.linearization.numPages:r.numPages,Number.isInteger(i)){e.next=11;break}throw new n.FormatError("Page count is not an integer.");case 11:if(!(i<=1)){e.next=13;break}return e.abrupt("return");case 13:return e.next=15,this.getPage(i-1);case 15:e.next=40;break;case 17:return e.prev=17,e.t0=e.catch(3),this._pagePromises.delete(i-1),e.next=22,this.cleanup();case 22:if(!(e.t0 instanceof s.XRefEntryException)||t){e.next=24;break}throw new s.XRefParseException;case 24:return(0,n.warn)("checkLastPage - invalid /Pages tree /Count: ".concat(i,".")),e.prev=25,e.next=28,r.getAllPageDicts(t);case 28:o=e.sent,e.next=37;break;case 31:if(e.prev=31,e.t1=e.catch(25),!(e.t1 instanceof s.XRefEntryException)||t){e.next=35;break}throw new s.XRefParseException;case 35:return r.setActualNumPages(1),e.abrupt("return");case 37:c=x(o);try{for(c.s();!(u=c.n()).done;)l=S(u.value,2),h=l[0],f=S(l[1],2),d=f[0],p=f[1],g=void 0,d instanceof Error?(g=Promise.reject(d)).catch((function(){})):g=Promise.resolve(new L({pdfManager:a,xref:this.xref,pageIndex:h,pageDict:d,ref:p,globalIdFactory:this._globalIdFactory,fontCache:r.fontCache,builtInCMapCache:r.builtInCMapCache,standardFontDataCache:r.standardFontDataCache,globalImageCache:r.globalImageCache,systemFontCache:r.systemFontCache,nonBlendModesSet:r.nonBlendModesSet,xfaFactory:null})),this._pagePromises.set(h,g)}catch(e){c.e(e)}finally{c.f()}r.setActualNumPages(o.size);case 40:case"end":return e.stop()}}),e,this,[[3,17],[25,31]])}))),function(){return i.apply(this,arguments)})},{key:"fontFallback",value:function(e,t){return this.catalog.fontFallback(e,t)}},{key:"cleanup",value:(r=T(k().mark((function e(){var t,r=arguments;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]&&r[0],e.abrupt("return",this.catalog?this.catalog.cleanup(t):(0,g.clearGlobalCaches)());case 2:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"_collectFieldObjects",value:function(e,t,r){var i=this.xref.fetchIfRef(t);if(i.has("T")){var o=(0,n.stringToPDFString)(i.get("T"));e=""===e?o:"".concat(e,".").concat(o)}if(!i.has("Kids")&&/\[\d+\]$/.test(e)&&(e=e.substring(0,e.lastIndexOf("["))),r.has(e)||r.set(e,[]),r.get(e).push(a.AnnotationFactory.create(this.xref,t,this.pdfManager,this._localIdFactory,!0).then((function(e){return null==e?void 0:e.getFieldObject()})).catch((function(e){return(0,n.warn)('_collectFieldObjects: "'.concat(e,'".')),null}))),i.has("Kids")){var s,c=x(i.get("Kids"));try{for(c.s();!(s=c.n()).done;){var u=s.value;this._collectFieldObjects(e,u,r)}}catch(e){c.e(e)}finally{c.f()}}}},{key:"fieldObjects",get:function(){if(!this.formInfo.hasFields)return(0,n.shadow)(this,"fieldObjects",Promise.resolve(null));var e,t=Object.create(null),r=new Map,a=x(this.catalog.acroForm.get("Fields"));try{for(a.s();!(e=a.n()).done;){var i=e.value;this._collectFieldObjects("",i,r)}}catch(e){a.e(e)}finally{a.f()}var o,s=[],c=x(r);try{var u=function(){var e=S(o.value,2),r=e[0],n=e[1];s.push(Promise.all(n).then((function(e){(e=e.filter((function(e){return!!e}))).length>0&&(t[r]=e)})))};for(c.s();!(o=c.n()).done;)u()}catch(e){c.e(e)}finally{c.f()}return(0,n.shadow)(this,"fieldObjects",Promise.all(s).then((function(){return t})))}},{key:"hasJSActions",get:function(){var e=this.pdfManager.ensureDoc("_parseHasJSActions");return(0,n.shadow)(this,"hasJSActions",e)}},{key:"_parseHasJSActions",value:(t=T(k().mark((function e(){var t,r,n,a;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([this.pdfManager.ensureCatalog("jsActions"),this.pdfManager.ensureDoc("fieldObjects")]);case 2:return t=e.sent,r=S(t,2),n=r[0],a=r[1],e.abrupt("return",!!n||!!a&&Object.values(a).some((function(e){return e.some((function(e){return null!==e.actions}))})));case 7:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"calculationOrderIds",get:function(){var e=this.catalog.acroForm;if(null==e||!e.has("CO"))return(0,n.shadow)(this,"calculationOrderIds",null);var t=e.get("CO");if(!Array.isArray(t)||0===t.length)return(0,n.shadow)(this,"calculationOrderIds",null);var r,a=[],i=x(t);try{for(i.s();!(r=i.n()).done;){var o=r.value;o instanceof c.Ref&&a.push(o.toString())}}catch(e){i.e(e)}finally{i.f()}return 0===a.length?(0,n.shadow)(this,"calculationOrderIds",null):(0,n.shadow)(this,"calculationOrderIds",a)}}]),e}()},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.PopupAnnotation=t.MarkupAnnotation=t.AnnotationFactory=t.AnnotationBorderStyle=t.Annotation=void 0,t.getQuadPoints=E,r(139),r(84),r(93),r(94),r(97),r(99),r(101),r(105),r(108),r(115),r(157),r(159);var n=r(144),i=r(149),o=r(161),s=r(150),c=r(154),u=r(216),l=r(151),h=r(210),f=r(220),v=r(162),b=r(223),w=r(176),A=r(226),C=r(214),O=r(227);function F(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Uint8ClampedArray(3);if(!Array.isArray(e))return t;var r=t||new Uint8ClampedArray(3);switch(e.length){case 0:return null;case 1:return v.ColorSpace.singletons.gray.getRgbItem(e,0,r,0),r;case 3:return v.ColorSpace.singletons.rgb.getRgbItem(e,0,r,0),r;case 4:return v.ColorSpace.singletons.cmyk.getRgbItem(e,0,r,0),r;default:return t}}function I(e){return Array.from(e,(function(e){return e/255}))}function E(e,t){var r=e.getArray("QuadPoints");if(!Array.isArray(r)||0===r.length||r.length%8>0)return null;for(var n=[],a=0,i=r.length/8;at[2]||ct[3]))return null;n.push([{x:o,y:u},{x:s,y:u},{x:o,y:c},{x:s,y:c}])}return n}function R(e,t,r){var a=S(n.Util.getAxialAlignedBoundingBox(t,r),4),i=a[0],o=a[1],s=a[2],c=a[3];if(i===s||o===c)return[1,0,0,1,e[0],e[1]];var u=(e[2]-e[0])/(s-i),l=(e[3]-e[1])/(c-o);return[u,0,0,l,e[0]-i*u,e[1]-o*l]}t.AnnotationFactory=function(){function e(){M(this,e)}var t,r,a;return P(e,null,[{key:"create",value:function(e,t,r,n,a){var i=this;return Promise.all([r.ensureCatalog("acroForm"),r.ensureCatalog("baseUrl"),r.ensureCatalog("attachments"),r.ensureDoc("xfaDatasets"),a?this._getPageIndex(e,t,r):-1]).then((function(o){var s=S(o,5),c=s[0],u=(s[1],s[2]),l=s[3],h=s[4];return r.ensure(i,"_create",[e,t,r,n,c,u,l,a,h])}))}},{key:"_create",value:function(e,t,r,a,o){var c=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,u=arguments.length>6?arguments[6]:void 0,l=arguments.length>7?arguments[7]:void 0,h=arguments.length>8&&void 0!==arguments[8]?arguments[8]:-1,f=e.fetchIfRef(t);if(f instanceof s.Dict){var d=t instanceof s.Ref?t.toString():"annot_".concat(a.createObjId()),p=f.get("Subtype");p=p instanceof s.Name?p.name:null;var g=o instanceof s.Dict?o:s.Dict.empty,v={xref:e,ref:t,dict:f,subtype:p,id:d,pdfManager:r,acroForm:g,attachments:c,xfaDatasets:u,collectFields:l,needAppearances:!l&&!0===g.get("NeedAppearances"),pageIndex:h,evaluatorOptions:r.evaluatorOptions};switch(p){case"Link":return new H(v);case"Text":return new X(v);case"Widget":var m=(0,i.getInheritableProperty)({dict:f,key:"FT"});switch(m=m instanceof s.Name?m.name:null){case"Tx":return new _(v);case"Btn":return new j(v);case"Ch":return new U(v);case"Sig":return new $(v)}return(0,n.warn)('Unimplemented widget field type "'.concat(m,'", falling back to base field type.')),new L(v);case"Popup":return new q(v);case"FreeText":return new z(v);case"Line":return new G(v);case"Square":return new W(v);case"Circle":return new V(v);case"PolyLine":return new K(v);case"Polygon":return new Y(v);case"Caret":return new J(v);case"Ink":return new Z(v);case"Highlight":return new Q(v);case"Underline":return new ee(v);case"Squiggly":return new te(v);case"StrikeOut":return new re(v);case"Stamp":return new ne(v);case"FileAttachment":return new ae(v);default:return l||(p?(0,n.warn)('Unimplemented annotation type "'.concat(p,'", falling back to base annotation.')):(0,n.warn)("Annotation is missing the required /Subtype.")),new N(v)}}}},{key:"_getPageIndex",value:(a=T(k().mark((function e(t,r,a){var i,o;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.fetchIfRefAsync(r);case 3:if((i=e.sent)instanceof s.Dict){e.next=6;break}return e.abrupt("return",-1);case 6:if((o=i.getRaw("P"))instanceof s.Ref){e.next=9;break}return e.abrupt("return",-1);case 9:return e.next=11,a.ensureCatalog("getPageIndex",[o]);case 11:return e.abrupt("return",e.sent);case 14:return e.prev=14,e.t0=e.catch(0),(0,n.warn)('_getPageIndex: "'.concat(e.t0,'".')),e.abrupt("return",-1);case 18:case"end":return e.stop()}}),e,null,[[0,14]])}))),function(e,t,r){return a.apply(this,arguments)})},{key:"generateImages",value:function(e,t,r){if(!r)return(0,n.warn)("generateImages: OffscreenCanvas is not supported, cannot save or print some annotations with images."),null;var a,i,o=x(e);try{for(o.s();!(i=o.n()).done;){var s=i.value,c=s.bitmapId,u=s.bitmap;u&&(a||(a=new Map),a.set(c,ne.createImage(u,t)))}}catch(e){o.e(e)}finally{o.f()}return a}},{key:"saveNewAnnotations",value:(r=T(k().mark((function e(t,r,a,i){var o,c,l,h,f,d,p,g,v,m,y,b,w,S,A,C;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:o=t.xref,l=[],h=[],f=t.options.isOffscreenCanvasSupported,d=x(a),e.prev=3,d.s();case 5:if((p=d.n()).done){e.next=48;break}if((g=p.value).deleted){e.next=46;break}e.t0=g.annotationType,e.next=e.t0===n.AnnotationEditorType.FREETEXT?11:e.t0===n.AnnotationEditorType.INK?24:e.t0===n.AnnotationEditorType.STAMP?26:46;break;case 11:if(c){e.next=22;break}return(v=new s.Dict(o)).set("BaseFont",s.Name.get("Helvetica")),v.set("Type",s.Name.get("Font")),v.set("Subtype",s.Name.get("Type1")),v.set("Encoding",s.Name.get("WinAnsiEncoding")),m=[],c=o.getNewTemporaryRef(),e.next=21,(0,u.writeObject)(c,v,m,null);case 21:l.push({ref:c,data:m.join("")});case 22:return h.push(z.createNewAnnotation(o,g,l,{evaluator:t,task:r,baseFontRef:c})),e.abrupt("break",46);case 24:return h.push(Z.createNewAnnotation(o,g,l)),e.abrupt("break",46);case 26:if(f){e.next=28;break}return e.abrupt("break",46);case 28:return e.next=30,i.get(g.bitmapId);case 30:if(!(y=e.sent).imageStream){e.next=45;break}if(b=y.imageStream,w=y.smaskStream,S=[],!w){e.next=40;break}return A=o.getNewTemporaryRef(),e.next=37,(0,u.writeObject)(A,w,S,null);case 37:l.push({ref:A,data:S.join("")}),b.dict.set("SMask",A),S.length=0;case 40:return C=y.imageRef=o.getNewTemporaryRef(),e.next=43,(0,u.writeObject)(C,b,S,null);case 43:l.push({ref:C,data:S.join("")}),y.imageStream=y.smaskStream=null;case 45:h.push(ne.createNewAnnotation(o,g,l,{image:y}));case 46:e.next=5;break;case 48:e.next=53;break;case 50:e.prev=50,e.t1=e.catch(3),d.e(e.t1);case 53:return e.prev=53,d.f(),e.finish(53);case 56:return e.next=58,Promise.all(h);case 58:return e.t2=e.sent,e.t3=l,e.abrupt("return",{annotations:e.t2,dependencies:e.t3});case 61:case"end":return e.stop()}}),e,null,[[3,50,53,56]])}))),function(e,t,n,a){return r.apply(this,arguments)})},{key:"printNewAnnotations",value:(t=T(k().mark((function e(t,r,a,i){var o,s,c,u,l,h,f,d,p;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a){e.next=2;break}return e.abrupt("return",null);case 2:o=t.options,s=t.xref,c=[],u=x(a),e.prev=4,u.s();case 6:if((l=u.n()).done){e.next=25;break}if((h=l.value).deleted){e.next=23;break}e.t0=h.annotationType,e.next=e.t0===n.AnnotationEditorType.FREETEXT?12:e.t0===n.AnnotationEditorType.INK?14:e.t0===n.AnnotationEditorType.STAMP?16:23;break;case 12:return c.push(z.createNewPrintAnnotation(s,h,{evaluator:t,task:r,evaluatorOptions:o})),e.abrupt("break",23);case 14:return c.push(Z.createNewPrintAnnotation(s,h,{evaluatorOptions:o})),e.abrupt("break",23);case 16:if(o.isOffscreenCanvasSupported){e.next=18;break}return e.abrupt("break",23);case 18:return e.next=20,i.get(h.bitmapId);case 20:(f=e.sent).imageStream&&(d=f.imageStream,(p=f.smaskStream)&&d.dict.set("SMask",p),f.imageRef=new w.JpegStream(d,d.length),f.imageStream=f.smaskStream=null),c.push(ne.createNewPrintAnnotation(s,h,{image:f,evaluatorOptions:o}));case 23:e.next=6;break;case 25:e.next=30;break;case 27:e.prev=27,e.t1=e.catch(4),u.e(e.t1);case 30:return e.prev=30,u.f(),e.finish(30);case 33:return e.abrupt("return",Promise.all(c));case 34:case"end":return e.stop()}}),e,null,[[4,27,30,33]])}))),function(e,r,n,a){return t.apply(this,arguments)})}]),e}();var N=function(){function e(t){M(this,e);var r=t.dict,a=t.xref;this.setTitle(r.get("T")),this.setContents(r.get("Contents")),this.setModificationDate(r.get("M")),this.setFlags(r.get("F")),this.setRectangle(r.getArray("Rect")),this.setColor(r.getArray("C")),this.setBorderStyle(r),this.setAppearance(r),this.setOptionalContent(r);var o=r.get("MK");this.setBorderAndBackgroundColors(o),this.setRotation(o,r),this.ref=t.ref instanceof s.Ref?t.ref:null,this._streams=[],this.appearance&&this._streams.push(this.appearance);var c=!!(this.flags&n.AnnotationFlag.LOCKED),u=!!(this.flags&n.AnnotationFlag.LOCKEDCONTENTS);if(this.data={annotationFlags:this.flags,borderStyle:this.borderStyle,color:this.color,backgroundColor:this.backgroundColor,borderColor:this.borderColor,rotation:this.rotation,contentsObj:this._contents,hasAppearance:!!this.appearance,id:t.id,modificationDate:this.modificationDate,rect:this.rectangle,subtype:t.subtype,hasOwnCanvas:!1,noRotate:!!(this.flags&n.AnnotationFlag.NOROTATE),noHTML:c&&u},t.collectFields){var l=r.get("Kids");if(Array.isArray(l)){var h,f=[],d=x(l);try{for(d.s();!(h=d.n()).done;){var p=h.value;p instanceof s.Ref&&f.push(p.toString())}}catch(e){d.e(e)}finally{d.f()}0!==f.length&&(this.data.kidIds=f)}this.data.actions=(0,i.collectActions)(a,r,n.AnnotationActionEventType),this.data.fieldName=this._constructFieldName(r),this.data.pageIndex=t.pageIndex}this._isOffscreenCanvasSupported=t.evaluatorOptions.isOffscreenCanvasSupported,this._fallbackFontDict=null,this._needAppearances=!1}var t,r,a;return P(e,[{key:"_hasFlag",value:function(e,t){return!!(e&t)}},{key:"_isViewable",value:function(e){return!this._hasFlag(e,n.AnnotationFlag.INVISIBLE)&&!this._hasFlag(e,n.AnnotationFlag.NOVIEW)}},{key:"_isPrintable",value:function(e){return this._hasFlag(e,n.AnnotationFlag.PRINT)&&!this._hasFlag(e,n.AnnotationFlag.INVISIBLE)}},{key:"mustBeViewed",value:function(e){var t,r=null==e||null===(t=e.get(this.data.id))||void 0===t?void 0:t.hidden;return void 0!==r?!r:this.viewable&&!this._hasFlag(this.flags,n.AnnotationFlag.HIDDEN)}},{key:"mustBePrinted",value:function(e){var t,r=null==e||null===(t=e.get(this.data.id))||void 0===t?void 0:t.print;return void 0!==r?r:this.printable}},{key:"viewable",get:function(){return null!==this.data.quadPoints&&(0===this.flags||this._isViewable(this.flags))}},{key:"printable",get:function(){return null!==this.data.quadPoints&&0!==this.flags&&this._isPrintable(this.flags)}},{key:"_parseStringHelper",value:function(e){var t="string"==typeof e?(0,n.stringToPDFString)(e):"";return{str:t,dir:t&&"rtl"===(0,h.bidi)(t).dir?"rtl":"ltr"}}},{key:"setDefaultAppearance",value:function(e){var t=(0,i.getInheritableProperty)({dict:e.dict,key:"DA"})||e.acroForm.get("DA");this._defaultAppearance="string"==typeof t?t:"",this.data.defaultAppearanceData=(0,o.parseDefaultAppearance)(this._defaultAppearance)}},{key:"setTitle",value:function(e){this._title=this._parseStringHelper(e)}},{key:"setContents",value:function(e){this._contents=this._parseStringHelper(e)}},{key:"setModificationDate",value:function(e){this.modificationDate="string"==typeof e?e:null}},{key:"setFlags",value:function(e){this.flags=Number.isInteger(e)&&e>0?e:0}},{key:"hasFlag",value:function(e){return this._hasFlag(this.flags,e)}},{key:"setRectangle",value:function(e){this.rectangle=Array.isArray(e)&&4===e.length?n.Util.normalizeRect(e):[0,0,0,0]}},{key:"setColor",value:function(e){this.color=F(e)}},{key:"setLineEndings",value:function(e){if(this.lineEndings=["None","None"],Array.isArray(e)&&2===e.length)for(var t=0;t<2;t++){var r=e[t];if(r instanceof s.Name)switch(r.name){case"None":continue;case"Square":case"Circle":case"Diamond":case"OpenArrow":case"ClosedArrow":case"Butt":case"ROpenArrow":case"RClosedArrow":case"Slash":this.lineEndings[t]=r.name;continue}(0,n.warn)("Ignoring invalid lineEnding: ".concat(r))}}},{key:"setRotation",value:function(e,t){this.rotation=0;var r=e instanceof s.Dict?e.get("R")||0:t.get("Rotate")||0;Number.isInteger(r)&&0!==r&&((r%=360)<0&&(r+=360),r%90==0&&(this.rotation=r))}},{key:"setBorderAndBackgroundColors",value:function(e){e instanceof s.Dict?(this.borderColor=F(e.getArray("BC"),null),this.backgroundColor=F(e.getArray("BG"),null)):this.borderColor=this.backgroundColor=null}},{key:"setBorderStyle",value:function(e){if(this.borderStyle=new D,e instanceof s.Dict)if(e.has("BS")){var t=e.get("BS"),r=t.get("Type");r&&!(0,s.isName)(r,"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")){var n=e.getArray("Border");Array.isArray(n)&&n.length>=3&&(this.borderStyle.setHorizontalCornerRadius(n[0]),this.borderStyle.setVerticalCornerRadius(n[1]),this.borderStyle.setWidth(n[2],this.rectangle),4===n.length&&this.borderStyle.setDashArray(n[3],!0))}else this.borderStyle.setWidth(0)}},{key:"setAppearance",value:function(e){this.appearance=null;var t=e.get("AP");if(t instanceof s.Dict){var r=t.get("N");if(r instanceof l.BaseStream)this.appearance=r;else if(r instanceof s.Dict){var n=e.get("AS");if(n instanceof s.Name&&r.has(n.name)){var a=r.get(n.name);a instanceof l.BaseStream&&(this.appearance=a)}}}}},{key:"setOptionalContent",value:function(e){this.oc=null;var t=e.get("OC");t instanceof s.Name?(0,n.warn)("setOptionalContent: Support for /Name-entry is not implemented."):t instanceof s.Dict&&(this.oc=t)}},{key:"loadResources",value:function(e,t){return t.dict.getAsync("Resources").then((function(t){if(t)return new A.ObjectLoader(t,e,t.xref).load().then((function(){return t}))}))}},{key:"getOperatorList",value:(a=T(k().mark((function e(t,r,a,i,o){var u,l,h,f,d,p,g,v,m,y;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(u=this.data,l=this.appearance,h=!!(this.data.hasOwnCanvas&&a&n.RenderingIntentFlag.DISPLAY),l){e.next=8;break}if(h){e.next=6;break}return e.abrupt("return",{opList:new C.OperatorList,separateForm:!1,separateCanvas:!1});case 6:(l=new c.StringStream("")).dict=new s.Dict;case 8:return f=l.dict,e.next=11,this.loadResources(["ExtGState","ColorSpace","Pattern","Shading","XObject","Font"],l);case 11:if(d=e.sent,p=f.getArray("BBox")||[0,0,1,1],g=f.getArray("Matrix")||[1,0,0,1,0,0],v=R(u.rect,p,g),m=new C.OperatorList,e.t0=this.oc,!e.t0){e.next=21;break}return e.next=20,t.parseMarkedContentProps(this.oc,null);case 20:y=e.sent;case 21:return void 0!==y&&m.addOp(n.OPS.beginMarkedContentProps,["OC",y]),m.addOp(n.OPS.beginAnnotation,[u.id,u.rect,v,g,h]),e.next=25,t.getOperatorList({stream:l,task:r,resources:d,operatorList:m,fallbackFontDict:this._fallbackFontDict});case 25:return m.addOp(n.OPS.endAnnotation,[]),void 0!==y&&m.addOp(n.OPS.endMarkedContent,[]),this.reset(),e.abrupt("return",{opList:m,separateForm:!1,separateCanvas:h});case 29:case"end":return e.stop()}}),e,this)}))),function(e,t,r,n,i){return a.apply(this,arguments)})},{key:"save",value:(r=T(k().mark((function e(t,r,n){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",null);case 1:case"end":return e.stop()}}),e)}))),function(e,t,n){return r.apply(this,arguments)})},{key:"hasTextContent",get:function(){return!1}},{key:"extractTextContent",value:(t=T(k().mark((function e(t,r,a){var i,o,s,c,u,l,h,f,d,p;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.appearance){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,this.loadResources(["ExtGState","Font","Properties","XObject"],this.appearance);case 4:return i=e.sent,o=[],s=[],c=null,u={desiredSize:Math.Infinity,ready:!0,enqueue:function(e,t){var r,n=x(e.items);try{for(n.s();!(r=n.n()).done;){var a=r.value;void 0!==a.str&&(c||(c=a.transform.slice(-2)),s.push(a.str),a.hasEOL&&(o.push(s.join("")),s.length=0))}}catch(e){n.e(e)}finally{n.f()}}},e.next=11,t.getTextContent({stream:this.appearance,task:r,resources:i,includeMarkedContent:!0,sink:u,viewBox:a});case 11:this.reset(),s.length&&o.push(s.join("")),(o.length>1||o[0])&&(l=this.appearance.dict,h=l.getArray("BBox")||[0,0,1,1],f=l.getArray("Matrix")||[1,0,0,1,0,0],d=this.data.rect,(p=R(d,h,f))[4]-=d[0],p[5]-=d[1],c=n.Util.applyTransform(c,p),c=n.Util.applyTransform(c,f),this.data.textPosition=c,this.data.textContent=o);case 14:case"end":return e.stop()}}),e,this)}))),function(e,r,n){return t.apply(this,arguments)})},{key:"getFieldObject",value:function(){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}},{key:"reset",value:function(){var e,t=x(this._streams);try{for(t.s();!(e=t.n()).done;)e.value.reset()}catch(e){t.e(e)}finally{t.f()}}},{key:"_constructFieldName",value:function(e){if(!e.has("T")&&!e.has("Parent"))return(0,n.warn)("Unknown field name, falling back to empty field name."),"";if(!e.has("Parent"))return(0,n.stringToPDFString)(e.get("T"));var t=[];e.has("T")&&t.unshift((0,n.stringToPDFString)(e.get("T")));var r=e,a=new s.RefSet;for(e.objId&&a.put(e.objId);r.has("Parent")&&(r=r.get("Parent"))instanceof s.Dict&&(!r.objId||!a.has(r.objId));)if(r.objId&&a.put(r.objId),r.has("T")){var i=(0,n.stringToPDFString)(r.get("T"));i.startsWith("#")||t.unshift(i)}return t.join(".")}}]),e}();t.Annotation=N;var D=function(){function e(){M(this,e),this.width=1,this.style=n.AnnotationBorderStyleType.SOLID,this.dashArray=[3],this.horizontalCornerRadius=0,this.verticalCornerRadius=0}return P(e,[{key:"setWidth",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0,0,0,0];if(e instanceof s.Name)this.width=0;else if("number"==typeof e){if(e>0){var r=(t[2]-t[0])/2,a=(t[3]-t[1])/2;r>0&&a>0&&(e>r||e>a)&&((0,n.warn)("AnnotationBorderStyle.setWidth - ignoring width: ".concat(e)),e=1)}this.width=e}}},{key:"setStyle",value:function(e){if(e instanceof s.Name)switch(e.name){case"S":this.style=n.AnnotationBorderStyleType.SOLID;break;case"D":this.style=n.AnnotationBorderStyleType.DASHED;break;case"B":this.style=n.AnnotationBorderStyleType.BEVELED;break;case"I":this.style=n.AnnotationBorderStyleType.INSET;break;case"U":this.style=n.AnnotationBorderStyleType.UNDERLINE}}},{key:"setDashArray",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(Array.isArray(e)&&e.length>0){var r,n=!0,a=!0,i=x(e);try{for(i.s();!(r=i.n()).done;){var o=r.value;if(!(+o>=0)){n=!1;break}o>0&&(a=!1)}}catch(e){i.e(e)}finally{i.f()}n&&!a?(this.dashArray=e,t&&this.setStyle(s.Name.get("D"))):this.width=0}else e&&(this.width=0)}},{key:"setHorizontalCornerRadius",value:function(e){Number.isInteger(e)&&(this.horizontalCornerRadius=e)}},{key:"setVerticalCornerRadius",value:function(e){Number.isInteger(e)&&(this.verticalCornerRadius=e)}}]),e}();t.AnnotationBorderStyle=D;var B=function(e){function t(e){var r;M(this,t),r=d(this,t,[e]);var a=e.dict;if(a.has("IRT")){var i=a.getRaw("IRT");r.data.inReplyTo=i instanceof s.Ref?i.toString():null;var o=a.get("RT");r.data.replyType=o instanceof s.Name?o.name:n.AnnotationReplyType.REPLY}var c=null;if(r.data.replyType===n.AnnotationReplyType.GROUP){var u=a.get("IRT");r.setTitle(u.get("T")),r.data.titleObj=r._title,r.setContents(u.get("Contents")),r.data.contentsObj=r._contents,u.has("CreationDate")?(r.setCreationDate(u.get("CreationDate")),r.data.creationDate=r.creationDate):r.data.creationDate=null,u.has("M")?(r.setModificationDate(u.get("M")),r.data.modificationDate=r.modificationDate):r.data.modificationDate=null,c=u.getRaw("Popup"),u.has("C")?(r.setColor(u.getArray("C")),r.data.color=r.color):r.data.color=null}else r.data.titleObj=r._title,r.setCreationDate(a.get("CreationDate")),r.data.creationDate=r.creationDate,c=a.getRaw("Popup"),a.has("C")||(r.data.color=null);return r.data.popupRef=c instanceof s.Ref?c.toString():null,a.has("RC")&&(r.data.richText=O.XFAFactory.getRichTextAsHtml(a.get("RC"))),r}var r,a;return y(t,e),P(t,[{key:"setCreationDate",value:function(e){this.creationDate="string"==typeof e?e:null}},{key:"_setDefaultAppearance",value:function(e){var t=e.xref,r=e.extra,n=e.strokeColor,a=e.fillColor,i=e.blendMode,o=e.strokeAlpha,u=e.fillAlpha,l=e.pointsCallback,h=Number.MAX_VALUE,f=Number.MAX_VALUE,d=Number.MIN_VALUE,p=Number.MIN_VALUE,g=["q"];r&&g.push(r),n&&g.push("".concat(n[0]," ").concat(n[1]," ").concat(n[2]," RG")),a&&g.push("".concat(a[0]," ").concat(a[1]," ").concat(a[2]," rg"));var v=this.data.quadPoints;v||(v=[[{x:this.rectangle[0],y:this.rectangle[3]},{x:this.rectangle[2],y:this.rectangle[3]},{x:this.rectangle[0],y:this.rectangle[1]},{x:this.rectangle[2],y:this.rectangle[1]}]]);var m,y=x(v);try{for(y.s();!(m=y.n()).done;){var b=S(l(g,m.value),4),w=b[0],k=b[1],A=b[2],C=b[3];h=Math.min(h,w),d=Math.max(d,k),f=Math.min(f,A),p=Math.max(p,C)}}catch(e){y.e(e)}finally{y.f()}g.push("Q");var O=new s.Dict(t),F=new s.Dict(t);F.set("Subtype",s.Name.get("Form"));var I=new c.StringStream(g.join(" "));I.dict=F,O.set("Fm0",I);var T=new s.Dict(t);i&&T.set("BM",s.Name.get(i)),"number"==typeof o&&T.set("CA",o),"number"==typeof u&&T.set("ca",u);var M=new s.Dict(t);M.set("GS0",T);var E=new s.Dict(t);E.set("ExtGState",M),E.set("XObject",O);var P=new s.Dict(t);P.set("Resources",E);var R=this.data.rect=[h,f,d,p];P.set("BBox",R),this.appearance=new c.StringStream("/GS0 gs /Fm0 Do"),this.appearance.dict=P,this._streams.push(this.appearance,I)}}],[{key:"createNewAnnotation",value:(a=T(k().mark((function e(t,r,n,a){var i,o,s,c,l,h,f;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.ref||t.getNewTemporaryRef(),e.next=3,this.createNewAppearanceStream(r,t,a);case 3:if(o=e.sent,s=[],!o){e.next=14;break}return l=t.getNewTemporaryRef(),c=this.createNewDict(r,t,{apRef:l}),h=t.encrypt?t.encrypt.createCipherTransform(l.num,l.gen):null,e.next=11,(0,u.writeObject)(l,o,s,h);case 11:n.push({ref:l,data:s.join("")}),e.next=15;break;case 14:c=this.createNewDict(r,t,{});case 15:return s.length=0,f=t.encrypt?t.encrypt.createCipherTransform(i.num,i.gen):null,e.next=19,(0,u.writeObject)(i,c,s,f);case 19:return e.abrupt("return",{ref:i,data:s.join("")});case 20:case"end":return e.stop()}}),e,this)}))),function(e,t,r,n){return a.apply(this,arguments)})},{key:"createNewPrintAnnotation",value:(r=T(k().mark((function e(t,r,n){var a,i,o;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.createNewAppearanceStream(r,t,n);case 2:return a=e.sent,i=this.createNewDict(r,t,{ap:a}),o=new this.prototype.constructor({dict:i,xref:t,evaluatorOptions:n.evaluatorOptions}),r.ref&&(o.ref=o.refToReplace=r.ref),e.abrupt("return",o);case 7:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return r.apply(this,arguments)})}]),t}(N);t.MarkupAnnotation=B;var L=function(e){function t(e){var r,a;M(this,t),a=d(this,t,[e]);var o=e.dict,c=e.xref,u=a.data;a._needAppearances=e.needAppearances,u.annotationType=n.AnnotationType.WIDGET,void 0===u.fieldName&&(u.fieldName=a._constructFieldName(o)),u.fieldName&&/\[\d+\]$/.test(u.fieldName)&&!o.has("Kids")&&(u.baseFieldName=u.fieldName.substring(0,u.fieldName.lastIndexOf("["))),void 0===u.actions&&(u.actions=(0,i.collectActions)(c,o,n.AnnotationActionEventType));var l=(0,i.getInheritableProperty)({dict:o,key:"V",getArray:!0});u.fieldValue=a._decodeFormValue(l);var h=(0,i.getInheritableProperty)({dict:o,key:"DV",getArray:!0});if(u.defaultFieldValue=a._decodeFormValue(h),void 0===l&&e.xfaDatasets){var f=a._title.str;f&&(a._hasValueFromXFA=!0,u.fieldValue=l=e.xfaDatasets.getValue(f))}void 0===l&&null!==u.defaultFieldValue&&(u.fieldValue=u.defaultFieldValue),u.alternativeText=(0,n.stringToPDFString)(o.get("TU")||""),a.setDefaultAppearance(e),u.hasAppearance||(u.hasAppearance=a._needAppearances&&void 0!==u.fieldValue&&null!==u.fieldValue);var p=(0,i.getInheritableProperty)({dict:o,key:"FT"});u.fieldType=p instanceof s.Name?p.name:null;var g=(0,i.getInheritableProperty)({dict:o,key:"DR"}),v=e.acroForm.get("DR"),m=null===(r=a.appearance)||void 0===r?void 0:r.dict.get("Resources");return a._fieldResources={localResources:g,acroFormResources:v,appearanceResources:m,mergedResources:s.Dict.merge({xref:c,dictArray:[g,m,v],mergeSubDicts:!0})},u.fieldFlags=(0,i.getInheritableProperty)({dict:o,key:"Ff"}),(!Number.isInteger(u.fieldFlags)||u.fieldFlags<0)&&(u.fieldFlags=0),u.readOnly=a.hasFieldFlag(n.AnnotationFieldFlag.READONLY),u.required=a.hasFieldFlag(n.AnnotationFieldFlag.REQUIRED),u.hidden=a._hasFlag(u.annotationFlags,n.AnnotationFlag.HIDDEN),a}var r,l,h,f;return y(t,e),P(t,[{key:"_decodeFormValue",value:function(e){return Array.isArray(e)?e.filter((function(e){return"string"==typeof e})).map((function(e){return(0,n.stringToPDFString)(e)})):e instanceof s.Name?(0,n.stringToPDFString)(e.name):"string"==typeof e?(0,n.stringToPDFString)(e):null}},{key:"hasFieldFlag",value:function(e){return!!(this.data.fieldFlags&e)}},{key:"getRotationMatrix",value:function(e){var t,r=null==e||null===(t=e.get(this.data.id))||void 0===t?void 0:t.rotation;if(void 0===r&&(r=this.rotation),0===r)return n.IDENTITY_MATRIX;var a=this.data.rect[2]-this.data.rect[0],o=this.data.rect[3]-this.data.rect[1];return(0,i.getRotationMatrix)(r,a,o)}},{key:"getBorderAndBackgroundAppearances",value:function(e){var t,r=null==e||null===(t=e.get(this.data.id))||void 0===t?void 0:t.rotation;if(void 0===r&&(r=this.rotation),!this.backgroundColor&&!this.borderColor)return"";var n=this.data.rect[2]-this.data.rect[0],a=this.data.rect[3]-this.data.rect[1],i=0===r||180===r?"0 0 ".concat(n," ").concat(a," re"):"0 0 ".concat(a," ").concat(n," re"),s="";return this.backgroundColor&&(s="".concat((0,o.getPdfColor)(this.backgroundColor,!0)," ").concat(i," f ")),this.borderColor&&(s+="".concat(this.borderStyle.width||1," w ").concat((0,o.getPdfColor)(this.borderColor,!1)," ").concat(i," S ")),s}},{key:"getOperatorList",value:(f=T(k().mark((function e(r,i,o,s,u){var l,h,f,d,p,g,v;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!s||this instanceof $||this.data.noHTML||this.data.hasOwnCanvas){e.next=2;break}return e.abrupt("return",{opList:new C.OperatorList,separateForm:!0,separateCanvas:!1});case 2:if(this._hasText){e.next=4;break}return e.abrupt("return",a(m(t.prototype),"getOperatorList",this).call(this,r,i,o,s,u));case 4:return e.next=6,this._getAppearance(r,i,o,u);case 6:if(l=e.sent,!this.appearance||null!==l){e.next=9;break}return e.abrupt("return",a(m(t.prototype),"getOperatorList",this).call(this,r,i,o,s,u));case 9:if(h=new C.OperatorList,this._defaultAppearance&&null!==l){e.next=12;break}return e.abrupt("return",{opList:h,separateForm:!1,separateCanvas:!1});case 12:if(f=!!(this.data.hasOwnCanvas&&o&n.RenderingIntentFlag.DISPLAY),d=[0,0,this.data.rect[2]-this.data.rect[0],this.data.rect[3]-this.data.rect[1]],p=R(this.data.rect,d,[1,0,0,1,0,0]),e.t0=this.oc,!e.t0){e.next=18;break}return e.next=17,r.parseMarkedContentProps(this.oc,null);case 17:g=e.sent;case 18:return void 0!==g&&h.addOp(n.OPS.beginMarkedContentProps,["OC",g]),h.addOp(n.OPS.beginAnnotation,[this.data.id,this.data.rect,p,this.getRotationMatrix(u),f]),v=new c.StringStream(l),e.next=23,r.getOperatorList({stream:v,task:i,resources:this._fieldResources.mergedResources,operatorList:h});case 23:return h.addOp(n.OPS.endAnnotation,[]),void 0!==g&&h.addOp(n.OPS.endMarkedContent,[]),e.abrupt("return",{opList:h,separateForm:!1,separateCanvas:f});case 26:case"end":return e.stop()}}),e,this)}))),function(e,t,r,n,a){return f.apply(this,arguments)})},{key:"_getMKDict",value:function(e){var t=new s.Dict(null);return e&&t.set("R",e),this.borderColor&&t.set("BC",I(this.borderColor)),this.backgroundColor&&t.set("BG",I(this.backgroundColor)),t.size>0?t:null}},{key:"amendSavedDict",value:function(e,t){}},{key:"save",value:(h=T(k().mark((function e(t,r,a){var o,l,h,f,d,p,g,v,m,y,b,w,S,A,C,O,F,I,T,M,E,P,R,N,D,B,L=this;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(l=null==a?void 0:a.get(this.data.id),h=null==l?void 0:l.value,f=null==l?void 0:l.rotation,h!==this.data.fieldValue&&void 0!==h){e.next=6;break}if(this._hasValueFromXFA||void 0!==f){e.next=5;break}return e.abrupt("return",null);case 5:h||(h=this.data.fieldValue);case 6:if(void 0!==f||this._hasValueFromXFA||!Array.isArray(h)||!Array.isArray(this.data.fieldValue)||h.length!==this.data.fieldValue.length||!h.every((function(e,t){return e===L.data.fieldValue[t]}))){e.next=8;break}return e.abrupt("return",null);case 8:if(void 0===f&&(f=this.rotation),d=null,this._needAppearances){e.next=16;break}return e.next=13,this._getAppearance(t,r,n.RenderingIntentFlag.SAVE,a);case 13:if(null!==(d=e.sent)){e.next=16;break}return e.abrupt("return",null);case 16:if(p=!1,null!==(o=d)&&void 0!==o&&o.needAppearances&&(p=!0,d=null),g=t.xref,(v=g.fetchIfRef(this.ref))instanceof s.Dict){e.next=21;break}return e.abrupt("return",null);case 21:m=new s.Dict(g),y=x(v.getKeys());try{for(y.s();!(b=y.n()).done;)"AP"!==(w=b.value)&&m.set(w,v.getRaw(w))}catch(e){y.e(e)}finally{y.f()}if(S={path:this.data.fieldName,value:h},A=function(e){return(0,i.isAscii)(e)?e:(0,i.stringToUTF16String)(e,!0)},m.set("V",Array.isArray(h)?h.map(A):A(h)),this.amendSavedDict(a,m),(C=this._getMKDict(f))&&m.set("MK",C),O=g.encrypt,F=O?O.createCipherTransform(this.ref.num,this.ref.gen):null,I=[],T=[{ref:this.ref,data:"",xfa:S,needAppearances:p}],null===d){e.next=46;break}return M=g.getNewTemporaryRef(),E=new s.Dict(g),m.set("AP",E),E.set("N",M),P=null,O&&(P=O.createCipherTransform(M.num,M.gen)),R=this._getSaveFieldResources(g),N=new c.StringStream(d),(D=N.dict=new s.Dict(g)).set("Subtype",s.Name.get("Form")),D.set("Resources",R),D.set("BBox",[0,0,this.data.rect[2]-this.data.rect[0],this.data.rect[3]-this.data.rect[1]]),(B=this.getRotationMatrix(a))!==n.IDENTITY_MATRIX&&D.set("Matrix",B),e.next=44,(0,u.writeObject)(M,N,I,P);case 44:T.push({ref:M,data:I.join(""),xfa:null,needAppearances:!1}),I.length=0;case 46:return m.set("M","D:".concat((0,n.getModificationDate)())),e.next=49,(0,u.writeObject)(this.ref,m,I,F);case 49:return T[0].data=I.join(""),e.abrupt("return",T);case 51:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return h.apply(this,arguments)})},{key:"_getAppearance",value:(l=T(k().mark((function e(r,a,s,c){var u,l,h,f,d,p,g,v,m,y,b,w,A,C,O,F,I,T,M,E,P,R,N,D,B,L,_,j,U,$,X,H,q,z,G,W,V,K,Y,J;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.hasFieldFlag(n.AnnotationFieldFlag.PASSWORD)){e.next=2;break}return e.abrupt("return",null);case 2:if((l=null==c?void 0:c.get(this.data.id))&&(h=l.formattedValue||l.value,f=l.rotation),void 0!==f||void 0!==h||this._needAppearances||this._hasValueFromXFA&&!this.appearance){e.next=6;break}return e.abrupt("return",null);case 6:if(d=this.getBorderAndBackgroundAppearances(c),void 0!==h){e.next=11;break}if(h=this.data.fieldValue){e.next=11;break}return e.abrupt("return","/Tx BMC q ".concat(d,"Q EMC"));case 11:if(Array.isArray(h)&&1===h.length&&(h=h[0]),(0,n.assert)("string"==typeof h,"Expected `value` to be a string."),h=h.trim(),this.data.combo&&(p=this.data.options.find((function(e){var t=e.exportValue;return h===t})),h=(null==p?void 0:p.displayValue)||h),""!==h){e.next=17;break}return e.abrupt("return","/Tx BMC q ".concat(d,"Q EMC"));case 17:return void 0===f&&(f=this.rotation),v=-1,this.data.multiLine?(g=h.split(/\r\n?|\n/).map((function(e){return e.normalize("NFC")})),v=g.length):g=[h.replace(/\r\n?|\n/,"").normalize("NFC")],m=this.data.rect[3]-this.data.rect[1],y=this.data.rect[2]-this.data.rect[0],90!==f&&270!==f||(y=(u=[m,y])[0],m=u[1]),this._defaultAppearance||(this.data.defaultAppearanceData=(0,o.parseDefaultAppearance)(this._defaultAppearance="/Helvetica 0 Tf 0 g")),e.next=25,t._getFontData(r,a,this.data.defaultAppearanceData,this._fieldResources.mergedResources);case 25:C=e.sent,O=[],F=!1,I=x(g);try{for(I.s();!(T=I.n()).done;)M=T.value,(E=C.encodeString(M)).length>1&&(F=!0),O.push(E.join(""))}catch(e){I.e(e)}finally{I.f()}if(!(F&&s&n.RenderingIntentFlag.SAVE)){e.next=32;break}return e.abrupt("return",{needAppearances:!0});case 32:if(!F||!this._isOffscreenCanvasSupported){e.next=51;break}if(P=this.data.comb?"monospace":"sans-serif",R=new o.FakeUnicodeFont(r.xref,P),N=R.createFontResources(g.join("")),D=N.getRaw("Font"),this._fieldResources.mergedResources.has("Font")){B=this._fieldResources.mergedResources.get("Font"),L=x(D.getKeys());try{for(L.s();!(_=L.n()).done;)j=_.value,B.set(j,D.getRaw(j))}catch(e){L.e(e)}finally{L.f()}}else this._fieldResources.mergedResources.set("Font",D);return U=R.fontName.name,e.next=38,t._getFontData(r,a,{fontName:U,fontSize:0},N);case 38:for(C=e.sent,$=0,X=O.length;$2)){e.next=67;break}return e.abrupt("return","/Tx BMC q ".concat(d,"BT ")+b+" 1 0 0 1 ".concat((0,i.numberToString)(2)," ").concat((0,i.numberToString)(J)," Tm (").concat((0,i.escapeString)(O[0]),") Tj ET Q EMC"));case 67:return e.abrupt("return","/Tx BMC q ".concat(d,"BT ")+b+" 1 0 0 1 0 0 Tm ".concat(this._renderText(O[0],C,w,y,Y,{shift:0},2,J)," ET Q EMC"));case 68:case"end":return e.stop()}}),e,this)}))),function(e,t,r,n){return l.apply(this,arguments)})},{key:"_getTextWidth",value:function(e,t){return t.charsToGlyphs(e).reduce((function(e,t){return e+t.width}),0)/1e3}},{key:"_computeFontSize",value:function(e,t,r,a,i){var s=this,c=this.data.defaultAppearanceData.fontSize,u=(c||12)*n.LINE_FACTOR,l=Math.round(e/u);if(!c){var h=function(e){return Math.floor(100*e)/100};if(-1===i){var f=this._getTextWidth(r,a);c=h(Math.min(e/n.LINE_FACTOR,f>t?t/f:1/0)),l=1}else{var d,p=r.split(/\r\n?|\n/),g=[],v=x(p);try{for(v.s();!(d=v.n()).done;){var m=d.value,y=a.encodeString(m).join(""),b=a.charsToGlyphs(y),w=a.getCharPositions(y);g.push({line:y,glyphs:b,positions:w})}}catch(e){v.e(e)}finally{v.f()}var k=function(r){for(var n=0,i=0,o=g;ie)return!0}return!1};for(l=Math.max(l,i);k(c=h((u=e/l)/n.LINE_FACTOR));)l++}var S=this.data.defaultAppearanceData,A=S.fontName,C=S.fontColor;this._defaultAppearance=(0,o.createDefaultAppearance)({fontSize:c,fontName:A,fontColor:C})}return[this._defaultAppearance,c,e/l]}},{key:"_renderText",value:function(e,t,r,n,a,o,s,c){var u;u=1===a?(n-this._getTextWidth(e,t)*r)/2:2===a?n-this._getTextWidth(e,t)*r-s:s;var l=(0,i.numberToString)(u-o.shift);return o.shift=u,"".concat(l," ").concat(c=(0,i.numberToString)(c)," Td (").concat((0,i.escapeString)(e),") Tj")}},{key:"_getSaveFieldResources",value:function(e){var t,r=this._fieldResources,n=r.localResources,a=r.appearanceResources,i=r.acroFormResources,o=null===(t=this.data.defaultAppearanceData)||void 0===t?void 0:t.fontName;if(!o)return n||s.Dict.empty;for(var c=0,u=[n,a];c2)&&(o=null),r.data.textAlignment=o;var s=(0,i.getInheritableProperty)({dict:a,key:"MaxLen"});return(!Number.isInteger(s)||s<0)&&(s=0),r.data.maxLen=s,r.data.multiLine=r.hasFieldFlag(n.AnnotationFieldFlag.MULTILINE),r.data.comb=r.hasFieldFlag(n.AnnotationFieldFlag.COMB)&&!r.hasFieldFlag(n.AnnotationFieldFlag.MULTILINE)&&!r.hasFieldFlag(n.AnnotationFieldFlag.PASSWORD)&&!r.hasFieldFlag(n.AnnotationFieldFlag.FILESELECT)&&0!==r.data.maxLen,r.data.doNotScroll=r.hasFieldFlag(n.AnnotationFieldFlag.DONOTSCROLL),r}return y(t,e),P(t,[{key:"hasTextContent",get:function(){return!!this.appearance&&!this._needAppearances}},{key:"_getCombAppearance",value:function(e,t,r,n,a,o,s,c,u,l,h){var f,d=a/this.data.maxLen,p=this.getBorderAndBackgroundAppearances(h),g=[],v=x(t.getCharPositions(r));try{for(v.s();!(f=v.n()).done;){var m=S(f.value,2),y=m[0],b=m[1];g.push("(".concat((0,i.escapeString)(r.substring(y,b)),") Tj"))}}catch(e){v.e(e)}finally{v.f()}var w=g.join(" ".concat((0,i.numberToString)(d)," 0 Td "));return"/Tx BMC q ".concat(p,"BT ")+e+" 1 0 0 1 ".concat((0,i.numberToString)(s)," ").concat((0,i.numberToString)(c+u)," Tm ").concat(w," ET Q EMC")}},{key:"_getMultilineAppearance",value:function(e,t,r,n,a,o,s,c,u,l,h,f){for(var d=[],p=a-2*c,g={shift:0},v=0,m=t.length;v4&&void 0!==arguments[4]?arguments[4]:{};e=a.line||e;var i=a.glyphs||t.charsToGlyphs(e);if(i.length<=1)return[e];for(var o=a.positions||t.getCharPositions(e),s=r/1e3,c=[],u=-1,l=-1,h=-1,f=0,d=0,p=0,g=i.length;pn?(c.push(e.substring(f,m)),f=m,d=w,u=-1,h=-1):(d+=w,u=m,l=y,h=p):d+w>n?-1!==u?(c.push(e.substring(f,l)),f=l,p=h+1,u=-1,d=0):(c.push(e.substring(f,m)),f=m,d=w):d+=w}return f0,r.data.options=[];var s=(0,i.getInheritableProperty)({dict:a,key:"Opt"});if(Array.isArray(s))for(var c=0,u=s.length;c=0&&v0?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}}},{key:"amendSavedDict",value:function(e,t){var r;if(this.hasIndices){var n=null==e||null===(r=e.get(this.data.id))||void 0===r?void 0:r.value;Array.isArray(n)||(n=[n]);for(var a=[],i=this.data.options,o=0,s=0,c=i.length;oI&&(I=P,F=E)}catch(e){T.e(e)}finally{T.f()}R=this._computeFontSize(O,p-4,F,w,-1),N=S(R,2),A=N[0],C=N[1]}if(D=C*n.LINE_FACTOR,B=(D-C)/2,_=Math.floor(d/D),j=0,v.length>0&&(U=Math.min.apply(Math,v),$=Math.max.apply(Math,v),(j=Math.max(0,$-_+1))>U&&(j=U)),X=Math.min(j+_+1,g),H=["/Tx BMC q","1 1 ".concat(p," ").concat(d," re W n")],v.length){H.push("0.600006 0.756866 0.854904 rg"),q=x(v);try{for(q.s();!(z=q.n()).done;)G=z.value,j<=G&&G1)){e.next=24;break}return e.abrupt("return",null);case 24:j=U.join(""),D.push(j),$=0,X=A.charsToGlyphs(j),H=x(X);try{for(H.s();!(q=H.n()).done;)z=q.value,$+=z.width*R}catch(e){H.e(e)}finally{H.f()}N=Math.max(N,$);case 31:e.next=19;break;case 33:e.next=38;break;case 35:e.prev=35,e.t0=e.catch(17),B.e(e.t0);case 38:return e.prev=38,B.f(),e.finish(38);case 41:G=1,N>M&&(G=M/N),W=1,V=n.LINE_FACTOR*p,K=(n.LINE_FACTOR-n.LINE_DESCENT_FACTOR)*p,(Y=V*P.length)>E&&(W=E/Y),J=p*Math.min(G,W),e.t1=v,e.next=0===e.t1?50:90===e.t1?54:180===e.t1?58:270===e.t1?62:65;break;case 50:return ee=[1,0,0,1],Q=[g[0],g[1],M,E],Z=[g[0],g[3]-K],e.abrupt("break",65);case 54:return ee=[0,1,-1,0],Q=[g[1],-g[2],M,E],Z=[g[1],-g[0]-K],e.abrupt("break",65);case 58:return ee=[-1,0,0,-1],Q=[-g[2],-g[3],M,E],Z=[-g[2],-g[1]-K],e.abrupt("break",65);case 62:ee=[0,-1,1,0],Q=[-g[3],g[0],M,E],Z=[-g[3],g[2]-K];case 65:for((te=["q","".concat(ee.join(" ")," 0 0 cm"),"".concat(Q.join(" ")," re W n"),"BT","".concat((0,o.getPdfColor)(d,!0)),"0 Tc /Helv ".concat((0,i.numberToString)(J)," Tf")]).push("".concat(Z.join(" ")," Td (").concat((0,i.escapeString)(D[0]),") Tj")),re=(0,i.numberToString)(V),ne=1,ae=D.length;ne>>24!=255}:function(e){return 255!=(255&e)}),f&&(u.fillStyle="white",u.fillRect(0,0,a,i),u.drawImage(t,0,0)),d=o.convertToBlob({type:"image/jpeg",quality:1}).then((function(e){return e.arrayBuffer()})),p=s.Name.get("XObject"),g=s.Name.get("Image"),(v=new s.Dict(r)).set("Type",p),v.set("Subtype",g),v.set("BitsPerComponent",8),v.set("ColorSpace",s.Name.get("DeviceRGB")),v.set("Filter",s.Name.get("DCTDecode")),v.set("BBox",[0,0,a,i]),v.set("Width",a),v.set("Height",i),m=null,f){if(y=new Uint8Array(h.length),n.FeatureTest.isLittleEndian)for(b=0,w=h.length;b>>24;else for(x=0,S=h.length;x0&&(t.fontSize=u);break;case i.OPS.setFillRGBColor:o.ColorSpace.singletons.rgb.getRgbItem(a,0,t.fontColor,0);break;case i.OPS.setFillGray:o.ColorSpace.singletons.gray.getRgbItem(a,0,t.fontColor,0);break;case i.OPS.setFillCMYKColor:o.ColorSpace.singletons.cmyk.getRgbItem(a,0,t.fontColor,0)}}}catch(e){(0,i.warn)('parseDefaultAppearance - ignoring errors: "'.concat(e,'".'))}return t}}]),t}(s.EvaluatorPreprocessor),p=function(e){function t(e,r,n){var a,i;return M(this,t),(i=d(this,t,[e])).stream=e,i.evaluatorOptions=r,i.xref=n,i.resources=null===(a=e.dict)||void 0===a?void 0:a.get("Resources"),i}return y(t,e),P(t,[{key:"parse",value:function(){var e={fn:0,args:[]},t={scaleFactor:1,fontSize:0,fontName:"",fontColor:new Uint8ClampedArray(3),fillColorSpace:o.ColorSpace.singletons.gray},r=!1,a=[];try{for(;e.args.length=0,!r&&this.read(e);){e.fn;var c=e.args;switch(0|s){case i.OPS.save:a.push({scaleFactor:t.scaleFactor,fontSize:t.fontSize,fontName:t.fontName,fontColor:t.fontColor.slice(),fillColorSpace:t.fillColorSpace});break;case i.OPS.restore:t=a.pop()||t;break;case i.OPS.setTextMatrix:t.scaleFactor*=Math.hypot(c[0],c[1]);break;case i.OPS.setFont:var u=S(c,2),l=u[0],h=u[1];l instanceof n.Name&&(t.fontName=l.name),"number"==typeof h&&h>0&&(t.fontSize=h*t.scaleFactor);break;case i.OPS.setFillColorSpace:t.fillColorSpace=o.ColorSpace.parse({cs:c[0],xref:this.xref,resources:this.resources,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:this._localColorSpaceCache});break;case i.OPS.setFillColor:t.fillColorSpace.getRgbItem(c,0,t.fontColor,0);break;case i.OPS.setFillRGBColor:o.ColorSpace.singletons.rgb.getRgbItem(c,0,t.fontColor,0);break;case i.OPS.setFillGray:o.ColorSpace.singletons.gray.getRgbItem(c,0,t.fontColor,0);break;case i.OPS.setFillCMYKColor:o.ColorSpace.singletons.cmyk.getRgbItem(c,0,t.fontColor,0);break;case i.OPS.showText:case i.OPS.showSpacedText:case i.OPS.nextLineShowText:case i.OPS.nextLineSetSpacingShowText:r=!0}}}catch(e){(0,i.warn)('parseAppearanceStream - ignoring errors: "'.concat(e,'".'))}return this.stream.reset(),delete t.scaleFactor,delete t.fillColorSpace,t}},{key:"_localColorSpaceCache",get:function(){return(0,i.shadow)(this,"_localColorSpaceCache",new c.LocalColorSpaceCache)}},{key:"_pdfFunctionFactory",get:function(){var e=new u.PDFFunctionFactory({xref:this.xref,isEvalSupported:this.evaluatorOptions.isEvalSupported});return(0,i.shadow)(this,"_pdfFunctionFactory",e)}}]),t}(s.EvaluatorPreprocessor);function g(e,t){if(e[0]===e[1]&&e[1]===e[2]){var r=e[0]/255;return"".concat((0,a.numberToString)(r)," ").concat(t?"g":"G")}return Array.from(e,(function(e){return(0,a.numberToString)(e/255)})).join(" ")+" "+(t?"rg":"RG")}var v=function(){function e(t,r){M(this,e),this.xref=t,this.widths=null,this.firstChar=1/0,this.lastChar=-1/0,this.fontFamily=r;var a=new OffscreenCanvas(1,1);this.ctxMeasure=a.getContext("2d"),e._fontNameId||(e._fontNameId=1),this.fontName=n.Name.get("InvalidPDFjsFont_".concat(r,"_").concat(e._fontNameId++))}return P(e,[{key:"toUnicodeRef",get:function(){if(!e._toUnicodeRef){var t=e.toUnicodeStream=new l.StringStream("/CIDInit /ProcSet findresource begin\n12 dict begin\nbegincmap\n/CIDSystemInfo\n<< /Registry (Adobe)\n/Ordering (UCS) /Supplement 0 >> def\n/CMapName /Adobe-Identity-UCS def\n/CMapType 2 def\n1 begincodespacerange\n<0000> \nendcodespacerange\n1 beginbfrange\n<0000> <0000>\nendbfrange\nendcmap CMapName currentdict /CMap defineresource pop end end"),r=new n.Dict(this.xref);t.dict=r,r.set("Length",346),e._toUnicodeRef=this.xref.getNewPersistentRef(t)}return e._toUnicodeRef}},{key:"fontDescriptorRef",get:function(){if(!e._fontDescriptorRef){var t=new n.Dict(this.xref);t.set("Type",n.Name.get("FontDescriptor")),t.set("FontName",this.fontName),t.set("FontFamily","MyriadPro Regular"),t.set("FontBBox",[0,0,0,0]),t.set("FontStretch",n.Name.get("Normal")),t.set("FontWeight",400),t.set("ItalicAngle",0),e._fontDescriptorRef=this.xref.getNewPersistentRef(t)}return e._fontDescriptorRef}},{key:"descendantFontRef",get:function(){var e=new n.Dict(this.xref);e.set("BaseFont",this.fontName),e.set("Type",n.Name.get("Font")),e.set("Subtype",n.Name.get("CIDFontType0")),e.set("CIDToGIDMap",n.Name.get("Identity")),e.set("FirstChar",this.firstChar),e.set("LastChar",this.lastChar),e.set("FontDescriptor",this.fontDescriptorRef),e.set("DW",1e3);var t,r=[],a=null,i=null,o=x(f(this.widths.entries()).sort());try{for(o.s();!(t=o.n()).done;){var s=S(t.value,2),c=s[0],u=s[1];a?c===a+i.length?i.push(u):(r.push(a,i),a=c,i=[u]):(a=c,i=[u])}}catch(e){o.e(e)}finally{o.f()}a&&r.push(a,i),e.set("W",r);var l=new n.Dict(this.xref);return l.set("Ordering","Identity"),l.set("Registry","Adobe"),l.set("Supplement",0),e.set("CIDSystemInfo",l),this.xref.getNewPersistentRef(e)}},{key:"baseFontRef",get:function(){var e=new n.Dict(this.xref);return e.set("BaseFont",this.fontName),e.set("Type",n.Name.get("Font")),e.set("Subtype",n.Name.get("Type0")),e.set("Encoding",n.Name.get("Identity-H")),e.set("DescendantFonts",[this.descendantFontRef]),e.set("ToUnicode",this.toUnicodeRef),this.xref.getNewPersistentRef(e)}},{key:"resources",get:function(){var e=new n.Dict(this.xref),t=new n.Dict(this.xref);return t.set(this.fontName.name,this.baseFontRef),e.set("Font",t),e}},{key:"_createContext",value:function(){return this.widths=new Map,this.ctxMeasure.font="1000px ".concat(this.fontFamily),this.ctxMeasure}},{key:"createFontResources",value:function(e){var t,r=this._createContext(),n=x(e.split(/\r\n?|\n/));try{for(n.s();!(t=n.n()).done;){var a,i=x(t.value.split(""));try{for(i.s();!(a=i.n()).done;){var o=a.value,s=o.charCodeAt(0);if(!this.widths.has(s)){var c=r.measureText(o),u=Math.ceil(c.width);this.widths.set(s,u),this.firstChar=Math.min(s,this.firstChar),this.lastChar=Math.max(s,this.lastChar)}}}catch(e){i.e(e)}finally{i.f()}}}catch(e){n.e(e)}finally{n.f()}return this.resources}},{key:"createAppearance",value:function(e,t,r,o,s,c){var u,h,f=this._createContext(),d=[],p=-1/0,v=x(e.split(/\r\n?|\n/));try{for(v.s();!(h=v.n()).done;){var m=h.value;d.push(m);var y=f.measureText(m).width;p=Math.max(p,y);var b,w=x(m.split(""));try{for(w.s();!(b=w.n()).done;){var k=b.value,A=k.charCodeAt(0),C=this.widths.get(A);if(void 0===C){var O=f.measureText(k);C=Math.ceil(O.width),this.widths.set(A,C),this.firstChar=Math.min(A,this.firstChar),this.lastChar=Math.max(A,this.lastChar)}}}catch(e){w.e(e)}finally{w.f()}}}catch(e){v.e(e)}finally{v.f()}p*=o/1e3;var F=S(t,4),I=F[0],T=F[1],M=F[2]-I,E=F[3]-T;r%180!=0&&(M=(u=[E,M])[0],E=u[1]);var P=1;p>M&&(P=M/p);var R=1,N=i.LINE_FACTOR*o,D=i.LINE_DESCENT_FACTOR*o,B=N*d.length;B>E&&(R=E/B);var L=o*Math.min(P,R),_=["q","0 0 ".concat((0,a.numberToString)(M)," ").concat((0,a.numberToString)(E)," re W n"),"BT","1 0 0 1 0 ".concat((0,a.numberToString)(E+D)," Tm 0 Tc ").concat(g(s,!0)),"/".concat(this.fontName.name," ").concat((0,a.numberToString)(L)," Tf")],j=this.resources;if(1!==(c="number"==typeof c&&c>=0&&c<=1?c:1)){_.push("/R0 gs");var U=new n.Dict(this.xref),$=new n.Dict(this.xref);$.set("ca",c),$.set("CA",c),$.set("Type",n.Name.get("ExtGState")),U.set("R0",$),j.set("ExtGState",U)}for(var X=(0,a.numberToString)(N),H=0,q=d;H Tj"))}_.push("ET","Q");var G=_.join("\n"),W=new n.Dict(this.xref);if(W.set("Subtype",n.Name.get("Form")),W.set("Type",n.Name.get("XObject")),W.set("BBox",[0,0,M,E]),W.set("Length",G.length),W.set("Resources",j),r){var V=(0,a.getRotationMatrix)(r,M,E);W.set("Matrix",V)}var K=new l.StringStream(G);return K.dict=W,K}}]),e}();t.FakeUnicodeFont=v},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.ColorSpace=void 0,r(84),r(93),r(94),r(97),r(99),r(101),r(105),r(108),r(115),r(2);var n=r(144),a=r(150),i=r(151),o=r(149),s=function(){function e(t,r){M(this,e),this.constructor===e&&(0,n.unreachable)("Cannot initialize ColorSpace."),this.name=t,this.numComps=r}var t;return P(e,[{key:"getRgb",value:function(e,t){var r=new Uint8ClampedArray(3);return this.getRgbItem(e,t,r,0),r}},{key:"getRgbItem",value:function(e,t,r,a){(0,n.unreachable)("Should not call ColorSpace.getRgbItem")}},{key:"getRgbBuffer",value:function(e,t,r,a,i,o,s){(0,n.unreachable)("Should not call ColorSpace.getRgbBuffer")}},{key:"getOutputLength",value:function(e,t){(0,n.unreachable)("Should not call ColorSpace.getOutputLength")}},{key:"isPassthrough",value:function(e){return!1}},{key:"isDefaultDecode",value:function(t,r){return e.isDefaultDecode(t,this.numComps)}},{key:"fillRgb",value:function(e,t,r,n,a,i,o,s,c){var u=t*r,l=null,h=1<h&&"DeviceGray"!==this.name&&"DeviceRGB"!==this.name){for(var d=o<=8?new Uint8Array(h):new Uint16Array(h),p=0;p2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;if((e=t.fetchIfRef(e))instanceof a.Name)switch(e.name){case"G":case"DeviceGray":return this.singletons.gray;case"RGB":case"DeviceRGB":return this.singletons.rgb;case"CMYK":case"DeviceCMYK":return this.singletons.cmyk;case"Pattern":return new u(null);default:if(r instanceof a.Dict){var o=r.get("ColorSpace");if(o instanceof a.Dict){var s=o.get(e.name);if(s){if(s instanceof a.Name)return this._parse(s,t,r,i);e=s;break}}}throw new n.FormatError("Unrecognized ColorSpace: ".concat(e.name))}if(Array.isArray(e)){var h,f,d,p,y,b,w=t.fetchIfRef(e[0]).name;switch(w){case"G":case"DeviceGray":return this.singletons.gray;case"RGB":case"DeviceRGB":return this.singletons.rgb;case"CMYK":case"DeviceCMYK":return this.singletons.cmyk;case"CalGray":return p=(h=t.fetchIfRef(e[1])).getArray("WhitePoint"),y=h.getArray("BlackPoint"),b=h.get("Gamma"),new g(p,y,b);case"CalRGB":p=(h=t.fetchIfRef(e[1])).getArray("WhitePoint"),y=h.getArray("BlackPoint"),b=h.getArray("Gamma");var k=h.getArray("Matrix");return new v(p,y,b,k);case"ICCBased":var x=t.fetchIfRef(e[1]).dict;f=x.get("N");var S=x.get("Alternate");if(S){var A=this._parse(S,t,r,i);if(A.numComps===f)return A;(0,n.warn)("ICCBased color space: Ignoring incorrect /Alternate entry.")}if(1===f)return this.singletons.gray;if(3===f)return this.singletons.rgb;if(4===f)return this.singletons.cmyk;break;case"Pattern":return(d=e[1]||null)&&(d=this._parse(d,t,r,i)),new u(d);case"I":case"Indexed":d=this._parse(e[1],t,r,i);var C=t.fetchIfRef(e[2])+1,O=t.fetchIfRef(e[3]);return new l(d,C,O);case"Separation":case"DeviceN":var F=t.fetchIfRef(e[1]);f=Array.isArray(F)?F.length:1,d=this._parse(e[2],t,r,i);var I=i.create(e[3]);return new c(f,d,I);case"Lab":p=(h=t.fetchIfRef(e[1])).getArray("WhitePoint"),y=h.getArray("BlackPoint");var T=h.getArray("Range");return new m(p,y,T);default:throw new n.FormatError("Unimplemented ColorSpace object: ".concat(w))}}throw new n.FormatError("Unrecognized ColorSpace object: ".concat(e))}},{key:"isDefaultDecode",value:function(e,t){if(!Array.isArray(e))return!0;if(2*t!==e.length)return(0,n.warn)("The decode map is not the correct length"),!0;for(var r=0,a=e.length;r=.99554525?1:f(0,1,1.055*Math.pow(e,1/2.4)-.055)}function f(e,t,r){return Math.max(e,Math.min(t,r))}function p(e){return e<0?-p(-e):e>8?Math.pow((e+16)/116,3):e*u}function g(n,s,u,d,g,v){var m=f(0,1,s[u]*v),y=f(0,1,s[u+1]*v),b=f(0,1,s[u+2]*v),w=1===m?1:Math.pow(m,n.GR),k=1===y?1:Math.pow(y,n.GG),x=1===b?1:Math.pow(b,n.GB),S=n.MXA*w+n.MXB*k+n.MXC*x,A=n.MYA*w+n.MYB*k+n.MYC*x,C=n.MZA*w+n.MZB*k+n.MZC*x,O=o;O[0]=S,O[1]=A,O[2]=C;var F=c;!function(r,n,a){if(1===r[0]&&1===r[2])return a[0]=n[0],a[1]=n[1],void(a[2]=n[2]);var o=a;l(e,n,o);var s=i;!function(e,t,r){r[0]=1*t[0]/e[0],r[1]=1*t[1]/e[1],r[2]=1*t[2]/e[2]}(r,o,s),l(t,s,a)}(n.whitePoint,O,F);var I=o;!function(e,t,r){if(0===e[0]&&0===e[1]&&0===e[2])return r[0]=t[0],r[1]=t[1],void(r[2]=t[2]);var n=p(0),a=(1-n)/(1-p(e[0])),i=1-a,o=(1-n)/(1-p(e[1])),s=1-o,c=(1-n)/(1-p(e[2])),u=1-c;r[0]=t[0]*a+i,r[1]=t[1]*o+s,r[2]=t[2]*c+u}(n.blackPoint,F,I);var T=c;!function(r,n,a){var o=a;l(e,n,o);var s=i;!function(e,t,r){r[0]=.95047*t[0]/e[0],r[1]=1*t[1]/e[1],r[2]=1.08883*t[2]/e[2]}(r,o,s),l(t,s,a)}(a,I,T);var M=o;l(r,T,M),d[g]=255*h(M[0]),d[g+1]=255*h(M[1]),d[g+2]=255*h(M[2])}return function(e){function t(e,r,a,i){var o;if(M(this,t),o=d(this,t,["CalRGB",3]),!e)throw new n.FormatError("WhitePoint missing - required for color space CalRGB");r||(r=new Float32Array(3)),a||(a=new Float32Array([1,1,1])),i||(i=new Float32Array([1,0,0,0,1,0,0,0,1]));var s=e[0],c=e[1],u=e[2];o.whitePoint=e;var l=r[0],h=r[1],f=r[2];if(o.blackPoint=r,o.GR=a[0],o.GG=a[1],o.GB=a[2],o.MXA=i[0],o.MYA=i[1],o.MZA=i[2],o.MXB=i[3],o.MYB=i[4],o.MZB=i[5],o.MXC=i[6],o.MYC=i[7],o.MZC=i[8],s<0||u<0||1!==c)throw new n.FormatError("Invalid WhitePoint components for ".concat(o.name,", no fallback available"));return(l<0||h<0||f<0)&&((0,n.info)("Invalid BlackPoint for ".concat(o.name," [").concat(l,", ").concat(h,", ").concat(f,"], falling back to default.")),o.blackPoint=new Float32Array(3)),(o.GR<0||o.GG<0||o.GB<0)&&((0,n.info)("Invalid Gamma [".concat(o.GR,", ").concat(o.GG,", ").concat(o.GB,"] for ").concat(o.name,", falling back to default.")),o.GR=o.GG=o.GB=1),o}return y(t,e),P(t,[{key:"getRgbItem",value:function(e,t,r,n){g(this,e,t,r,n,1)}},{key:"getRgbBuffer",value:function(e,t,r,n,a,i,o){for(var s=1/((1<=6/29?Math.pow(e,3):108/841*(e-4/29)}function t(e,t,r,n){return r+e*(n-r)/t}function r(r,n,a,i,o,s){var c=n[a],u=n[a+1],l=n[a+2];!1!==i&&(c=t(c,i,0,100),u=t(u,i,r.amin,r.amax),l=t(l,i,r.bmin,r.bmax)),u>r.amax?u=r.amax:ur.bmax?l=r.bmax:li.amax||i.bmin>i.bmax)&&((0,n.info)("Invalid Range, falling back to defaults"),i.amin=-100,i.amax=100,i.bmin=-100,i.bmax=100),i}return y(t,e),P(t,[{key:"getRgbItem",value:function(e,t,n,a){r(this,e,t,!1,n,a)}},{key:"getRgbBuffer",value:function(e,t,n,a,i,o,s){for(var c=(1<1&&void 0!==arguments[1]&&arguments[1];if(Array.isArray(e)){var r,n=x(e);try{for(n.s();!(r=n.n()).done;){var i=U(r.value,!0);if(i)return i}}catch(e){n.e(e)}finally{n.f()}return(0,a.warn)("Unsupported blend mode Array: ".concat(e)),"source-over"}if(!(e instanceof o.Name))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:((0,a.warn)("Unsupported blend mode: ".concat(e.name)),"source-over")}function $(e){var t;e.fn===a.OPS.paintImageMaskXObject&&(null===(t=e.args[0])||void 0===t?void 0:t.count)>0&&e.args[0].count++}var X=function(){function e(){M(this,e),this.reset()}return P(e,[{key:"check",value:function(){return!(++this.checked0&&void 0!==arguments[0]?arguments[0]:null,t=Object.create(this);return t.options=Object.assign(Object.create(null),this.options,e),t}},{key:"hasBlendModes",value:function(e,t){if(!(e instanceof o.Dict))return!1;if(e.objId&&t.has(e.objId))return!1;var r=new o.RefSet(t);e.objId&&r.put(e.objId);for(var n=[e],i=this.xref;n.length;){var s=n.shift(),c=s.get("ExtGState");if(c instanceof o.Dict){var u,l=x(c.getRawValues());try{for(l.s();!(u=l.n()).done;){var h=u.value;if(h instanceof o.Ref){if(r.has(h))continue;try{h=i.fetch(h)}catch(t){r.put(h),(0,a.info)('hasBlendModes - ignoring ExtGState: "'.concat(t,'".'));continue}}if(h instanceof o.Dict){h.objId&&r.put(h.objId);var f=h.get("BM");if(f instanceof o.Name){if("Normal"!==f.name)return!0}else if(void 0!==f&&Array.isArray(f)){var d,p=x(f);try{for(p.s();!(d=p.n()).done;){var g=d.value;if(g instanceof o.Name&&"Normal"!==g.name)return!0}}catch(e){p.e(e)}finally{p.f()}}}}}catch(e){l.e(e)}finally{l.f()}}var v=s.get("XObject");if(v instanceof o.Dict){var m,b=x(v.getRawValues());try{for(b.s();!(m=b.n()).done;){var w=m.value;if(w instanceof o.Ref){if(r.has(w))continue;try{w=i.fetch(w)}catch(t){r.put(w),(0,a.info)('hasBlendModes - ignoring XObject: "'.concat(t,'".'));continue}}if(w instanceof y.BaseStream){w.dict.objId&&r.put(w.dict.objId);var k=w.dict.get("Resources");!(k instanceof o.Dict)||k.objId&&r.has(k.objId)||(n.push(k),k.objId&&r.put(k.objId))}}}catch(e){b.e(e)}finally{b.f()}}}var S,A=x(r);try{for(A.s();!(S=A.n()).done;){var C=S.value;t.put(C)}}catch(e){A.e(e)}finally{A.f()}return!1}},{key:"fetchBuiltInCMap",value:(Y=T(k().mark((function e(t){var r,n,i,o;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(r=this.builtInCMapCache.get(t))){e.next=3;break}return e.abrupt("return",r);case 3:if(null===this.options.cMapUrl){e.next=19;break}return i="".concat(this.options.cMapUrl).concat(t,".bcmap"),e.next=7,fetch(i);case 7:if((o=e.sent).ok){e.next=10;break}throw new Error('fetchBuiltInCMap: failed to fetch file "'.concat(i,'" with "').concat(o.statusText,'".'));case 10:return e.t0=Uint8Array,e.next=13,o.arrayBuffer();case 13:e.t1=e.sent,e.t2=new e.t0(e.t1),e.t3=a.CMapCompressionType.BINARY,n={cMapData:e.t2,compressionType:e.t3},e.next=22;break;case 19:return e.next=21,this.handler.sendWithPromise("FetchBuiltInCMap",{name:t});case 21:n=e.sent;case 22:return n.compressionType!==a.CMapCompressionType.NONE&&this.builtInCMapCache.set(t,n),e.abrupt("return",n);case 24:case"end":return e.stop()}}),e,this)}))),function(e){return Y.apply(this,arguments)})},{key:"fetchStandardFontData",value:(K=T(k().mark((function e(t){var r,n,i,o,s;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(r=this.standardFontDataCache.get(t))){e.next=3;break}return e.abrupt("return",new m.Stream(r));case 3:if(!this.options.useSystemFonts||"Symbol"===t||"ZapfDingbats"===t){e.next=5;break}return e.abrupt("return",null);case 5:if(n=(0,u.getFontNameToFileMap)()[t],null===this.options.standardFontDataUrl){e.next=20;break}return o="".concat(this.options.standardFontDataUrl).concat(n),e.next=10,fetch(o);case 10:if(!(s=e.sent).ok){e.next=17;break}return e.next=14,s.arrayBuffer();case 14:i=e.sent,e.next=18;break;case 17:(0,a.warn)('fetchStandardFontData: failed to fetch file "'.concat(o,'" with "').concat(s.statusText,'".'));case 18:e.next=29;break;case 20:return e.prev=20,e.next=23,this.handler.sendWithPromise("FetchStandardFontData",{filename:n});case 23:i=e.sent,e.next=29;break;case 26:e.prev=26,e.t0=e.catch(20),(0,a.warn)('fetchStandardFontData: failed to fetch file "'.concat(n,'" with "').concat(e.t0,'".'));case 29:if(i){e.next=31;break}return e.abrupt("return",null);case 31:return this.standardFontDataCache.set(t,i),e.abrupt("return",new m.Stream(i));case 33:case"end":return e.stop()}}),e,this,[[20,26]])}))),function(e){return K.apply(this,arguments)})},{key:"buildFormXObject",value:(H=T(k().mark((function e(t,r,n,i,s,c,u){var l,h,f,d,p,g,v,m,y,b,x;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(l=r.dict,h=l.getArray("Matrix"),p=l.getArray("BBox"),p=Array.isArray(p)&&4===p.length?a.Util.normalizeRect(p):null,e.t0=l.has("OC"),!e.t0){e.next=8;break}return e.next=7,this.parseMarkedContentProps(l.get("OC"),t);case 7:f=e.sent;case 8:if(void 0!==f&&i.addOp(a.OPS.beginMarkedContentProps,["OC",f]),!(g=l.get("Group"))){e.next=27;break}if(d={matrix:h,bbox:p,smask:n,isolated:!1,knockout:!1},v=g.get("S"),m=null,!(0,o.isName)(v,"Transparency")){e.next=25;break}if(d.isolated=g.get("I")||!1,d.knockout=g.get("K")||!1,!g.has("CS")){e.next=25;break}if(y=g.getRaw("CS"),b=w.ColorSpace.getCached(y,this.xref,u),e.t1=b,e.t1){e.next=24;break}return e.next=23,this.parseColorSpace({cs:y,resources:t,localColorSpaceCache:u});case 23:e.t1=e.sent;case 24:m=e.t1;case 25:null!=n&&n.backdrop&&(m||(m=w.ColorSpace.singletons.rgb),n.backdrop=m.getRgb(n.backdrop,0)),i.addOp(a.OPS.beginGroup,[d]);case 27:return x=g?[h,null]:[h,p],i.addOp(a.OPS.paintFormXObjectBegin,x),e.abrupt("return",this.getOperatorList({stream:r,task:s,resources:l.get("Resources")||t,operatorList:i,initialState:c}).then((function(){i.addOp(a.OPS.paintFormXObjectEnd,[]),g&&i.addOp(a.OPS.endGroup,[d]),void 0!==f&&i.addOp(a.OPS.endMarkedContent,[])})));case 30:case"end":return e.stop()}}),e,this)}))),function(e,t,r,n,a,i,o){return H.apply(this,arguments)})},{key:"_sendImgData",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=t?[t.bitmap||t.data.buffer]:null;return this.parsingType3Font||r?this.handler.send("commonobj",[e,"Image",t],n):this.handler.send("obj",[e,this.pageIndex,"Image",t],n)}},{key:"buildPaintImageXObject",value:(I=T(k().mark((function e(t){var r,n,i,o,s,c,u,l,h,f,d,p,g,v,m,y,b,w,x,S,C,O,F,I,M,E,P,R,N,D=this;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.resources,n=t.image,i=t.isInline,o=void 0!==i&&i,s=t.operatorList,c=t.cacheKey,u=t.localImageCache,l=t.localColorSpaceCache,h=n.dict,f=h.objId,d=h.get("W","Width"),p=h.get("H","Height"),d&&"number"==typeof d&&p&&"number"==typeof p){e.next=5;break}return(0,a.warn)("Image dimensions are missing, or not numbers."),e.abrupt("return");case 5:if(!(-1!==(g=this.options.maxImageSize)&&d*p>g)){e.next=12;break}if(v="Image exceeded maximum allowed size and was removed.",!this.options.ignoreErrors){e.next=11;break}return(0,a.warn)(v),e.abrupt("return");case 11:throw new Error(v);case 12:if(e.t0=h.has("OC"),!e.t0){e.next=17;break}return e.next=16,this.parseMarkedContentProps(h.get("OC"),r);case 16:m=e.sent;case 17:if(!h.get("IM","ImageMask")){e.next=40;break}if(w=h.get("I","Interpolate"),x=d+7>>3,S=n.getBytes(x*p),C=h.getArray("D","Decode"),!this.parsingType3Font){e.next=26;break}return(y=L.PDFImage.createRawMask({imgArray:S,width:d,height:p,imageIsFromDecodeStream:n instanceof A.DecodeStream,inverseDecode:(null==C?void 0:C[0])>0,interpolate:w})).cached=!!c,b=[y],s.addImageOps(a.OPS.paintImageMaskXObject,b,m),c&&(O={fn:a.OPS.paintImageMaskXObject,args:b,optionalContent:m},u.set(c,f,O),f&&this._regionalImageCache.set(null,f,O)),e.abrupt("return");case 26:return e.next=28,L.PDFImage.createMask({imgArray:S,width:d,height:p,imageIsFromDecodeStream:n instanceof A.DecodeStream,inverseDecode:(null==C?void 0:C[0])>0,interpolate:w,isOffscreenCanvasSupported:this.options.isOffscreenCanvasSupported});case 28:if(!(y=e.sent).isSingleOpaquePixel){e.next=33;break}return s.addImageOps(a.OPS.paintSolidColorImageMask,[],m),c&&(F={fn:a.OPS.paintSolidColorImageMask,args:[],optionalContent:m},u.set(c,f,F),f&&this._regionalImageCache.set(null,f,F)),e.abrupt("return");case 33:return I="mask_".concat(this.idFactory.createObjId()),s.addDependency(I),this._sendImgData(I,y),b=[{data:I,width:y.width,height:y.height,interpolate:y.interpolate,count:1}],s.addImageOps(a.OPS.paintImageMaskXObject,b,m),c&&(M={fn:a.OPS.paintImageMaskXObject,args:b,optionalContent:m},u.set(c,f,M),f&&this._regionalImageCache.set(null,f,M)),e.abrupt("return");case 40:if(!o||h.has("SMask")||h.has("Mask")||!(d+p<200)){e.next=48;break}return E=new L.PDFImage({xref:this.xref,res:r,image:n,isInline:o,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:l}),e.next=44,E.createImageData(!0,!1);case 44:return y=e.sent,s.isOffscreenCanvasSupported=this.options.isOffscreenCanvasSupported,s.addImageOps(a.OPS.paintInlineImageXObject,[y],m),e.abrupt("return");case 48:P="img_".concat(this.idFactory.createObjId()),R=!1,this.parsingType3Font?P="".concat(this.idFactory.getDocId(),"_type3_").concat(P):f&&(R=this.globalImageCache.shouldCache(f,this.pageIndex))&&(P="".concat(this.idFactory.getDocId(),"_").concat(P)),s.addDependency(P),b=[P,d,p],L.PDFImage.buildImage({xref:this.xref,res:r,image:n,isInline:o,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:l}).then(function(){var e=T(k().mark((function e(t){var r;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.createImageData(!1,D.options.isOffscreenCanvasSupported);case 2:return y=e.sent,c&&f&&R&&(r=y.bitmap?y.width*y.height*4:y.data.length,D.globalImageCache.addByteSize(f,r)),e.abrupt("return",D._sendImgData(P,y,R));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){return(0,a.warn)('Unable to decode image "'.concat(P,'": "').concat(e,'".')),D._sendImgData(P,null,R)})),s.addImageOps(a.OPS.paintImageXObject,b,m),c&&(N={fn:a.OPS.paintImageXObject,args:b,optionalContent:m},u.set(c,f,N),f&&(this._regionalImageCache.set(null,f,N),R&&((0,a.assert)(!o,"Cannot cache an inline image globally."),this.globalImageCache.setData(f,{objId:P,fn:a.OPS.paintImageXObject,args:b,optionalContent:m,byteSize:0}))));case 55:case"end":return e.stop()}}),e,this)}))),function(e){return I.apply(this,arguments)})},{key:"handleSMask",value:function(e,t,r,n,a,i){var o=e.get("G"),s={subtype:e.get("S").name,backdrop:e.get("BC")},c=e.get("TR");if((0,p.isPDFFunction)(c)){for(var u=this._pdfFunctionFactory.create(c),l=new Uint8Array(256),h=new Float32Array(1),f=0;f<256;f++)h[0]=f/255,u(h,0,h,0),l[f]=255*h[0]|0;s.transferMap=l}return this.buildFormXObject(t,o,s,r,n,a.state.clone(),i)}},{key:"handleTransferFunction",value:function(e){var t;if(Array.isArray(e))t=e;else{if(!(0,p.isPDFFunction)(e))return null;t=[e]}var r,n=[],a=0,i=0,s=x(t);try{for(s.s();!(r=s.n()).done;){var c=r.value,u=this.xref.fetchIfRef(c);if(a++,(0,o.isName)(u,"Identity"))n.push(null);else{if(!(0,p.isPDFFunction)(u))return null;for(var l=this._pdfFunctionFactory.create(u),h=new Uint8Array(256),f=new Float32Array(1),d=0;d<256;d++)f[0]=d/255,l(f,0,f,0),h[d]=255*f[0]|0;n.push(h),i++}}}catch(e){s.e(e)}finally{s.f()}return 1!==a&&4!==a||0===i?null:n}},{key:"handleTilingType",value:function(e,t,r,n,i,s,c,u){var h=this,f=new B.OperatorList,d=o.Dict.merge({xref:this.xref,dictArray:[i.get("Resources"),r]});return this.getOperatorList({stream:n,task:c,resources:d,operatorList:f}).then((function(){var r=f.getIR(),n=(0,l.getTilingPatternIR)(r,i,t);s.addDependencies(f.dependencies),s.addOp(e,n),i.objId&&u.set(null,i.objId,{operatorListIR:r,dict:i})})).catch((function(e){if(!(e instanceof a.AbortException)){if(!h.options.ignoreErrors)throw e;(0,a.warn)('handleTilingType - ignoring pattern: "'.concat(e,'".'))}}))}},{key:"handleSetFont",value:function(e,t,r,n,a,i){var c=this,u=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,l=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,h=(null==t?void 0:t[0])instanceof o.Name?t[0].name:null;return this.loadFont(h,r,e,u,l).then((function(t){return t.font.isType3Font?t.loadType3Data(c,e,a).then((function(){return n.addDependencies(t.type3Dependencies),t})).catch((function(e){return new q({loadedName:"g_font_error",font:new s.ErrorFont("Type3 font load error: ".concat(e)),dict:t.font,evaluatorOptions:c.options})})):t})).then((function(e){return i.font=e.font,e.send(c.handler),e.loadedName}))}},{key:"handleText",value:function(t,r){var n=r.font,i=n.charsToGlyphs(t);return n.data&&(r.textRenderingMode&a.TextRenderingMode.ADD_TO_PATH_FLAG||"Pattern"===r.fillColorSpace.name||n.disableFontFace||this.options.disableFontFace)&&e.buildFontPaths(n,i,this.handler,this.options),i}},{key:"ensureStateFont",value:function(e){if(!e.font){var t=new a.FormatError("Missing setFont (Tf) operator before text rendering operator.");if(!this.options.ignoreErrors)throw t;(0,a.warn)('ensureStateFont: "'.concat(t,'".'))}}},{key:"setGState",value:(g=T(k().mark((function e(t){var r,n,i,s,c,u,l,h,f,d,p,g,v,m,y,b=this;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=t.resources,n=t.gState,i=t.operatorList,s=t.cacheKey,c=t.task,u=t.stateManager,l=t.localGStateCache,h=t.localColorSpaceCache,f=n.objId,d=!0,p=[],g=Promise.resolve(),v=x(n.getKeys()),e.prev=6,y=k().mark((function e(){var t,s,l;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=m.value,s=n.get(t),e.t0=t,e.next="Type"===e.t0?5:"LW"===e.t0||"LC"===e.t0||"LJ"===e.t0||"ML"===e.t0||"D"===e.t0||"RI"===e.t0||"FL"===e.t0||"CA"===e.t0||"ca"===e.t0?6:"Font"===e.t0?8:"BM"===e.t0?11:"SMask"===e.t0?13:"TR"===e.t0?18:"OP"===e.t0||"op"===e.t0||"OPM"===e.t0||"BG"===e.t0||"BG2"===e.t0||"UCR"===e.t0||"UCR2"===e.t0||"TR2"===e.t0||"HT"===e.t0||"SM"===e.t0||"SA"===e.t0||"AIS"===e.t0||"TK"===e.t0?21:23;break;case 5:return e.abrupt("break",24);case 6:return p.push([t,s]),e.abrupt("break",24);case 8:return d=!1,g=g.then((function(){return b.handleSetFont(r,null,s[0],i,c,u.state).then((function(e){i.addDependency(e),p.push([t,[e,s[1]]])}))})),e.abrupt("break",24);case 11:return p.push([t,U(s)]),e.abrupt("break",24);case 13:if(!(0,o.isName)(s,"None")){e.next=16;break}return p.push([t,!1]),e.abrupt("break",24);case 16:return s instanceof o.Dict?(d=!1,g=g.then((function(){return b.handleSMask(s,r,i,c,u,h)})),p.push([t,!0])):(0,a.warn)("Unsupported SMask type"),e.abrupt("break",24);case 18:return l=b.handleTransferFunction(s),p.push([t,l]),e.abrupt("break",24);case 21:return(0,a.info)("graphic state operator "+t),e.abrupt("break",24);case 23:(0,a.info)("Unknown graphic state operator "+t);case 24:case"end":return e.stop()}}),e)})),v.s();case 9:if((m=v.n()).done){e.next=13;break}return e.delegateYield(y(),"t0",11);case 11:e.next=9;break;case 13:e.next=18;break;case 15:e.prev=15,e.t1=e.catch(6),v.e(e.t1);case 18:return e.prev=18,v.f(),e.finish(18);case 21:return e.abrupt("return",g.then((function(){p.length>0&&i.addOp(a.OPS.setGState,[p]),d&&l.set(s,f,p)})));case 22:case"end":return e.stop()}}),e,null,[[6,15,18,21]])}))),function(e){return g.apply(this,arguments)})},{key:"loadFont",value:function(t,r,n){var i,c,u=this,l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,h=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,f=function(){var e=T(k().mark((function e(){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new q({loadedName:"g_font_error",font:new s.ErrorFont('Font "'.concat(t,'" is not available.')),dict:r,evaluatorOptions:u.options}));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();if(r)r instanceof o.Ref&&(c=r);else{var d=n.get("Font");d&&(c=d.getRaw(t))}if(c){if(this.parsingType3Font&&this.type3FontRefs.has(c))return f();if(this.fontCache.has(c))return this.fontCache.get(c);r=this.xref.fetchIfRef(c)}if(!(r instanceof o.Dict)){if(!this.options.ignoreErrors&&!this.parsingType3Font)return(0,a.warn)('Font "'.concat(t,'" is not available.')),f();(0,a.warn)('Font "'.concat(t,'" is not available -- attempting to fallback to a default font.')),r=l||e.fallbackFontDict}if(r.cacheKey&&this.fontCache.has(r.cacheKey))return this.fontCache.get(r.cacheKey);var p,g=new a.PromiseCapability;try{(p=this.preEvaluateFont(r)).cssFontInfo=h}catch(t){return(0,a.warn)('loadFont - preEvaluateFont failed: "'.concat(t,'".')),f()}var v,m=p,y=m.descriptor,b=m.hash,w=c instanceof o.Ref;if(b&&y instanceof o.Dict){var x=y.fontAliases||(y.fontAliases=Object.create(null));if(x[b]){var S=x[b].aliasRef;if(w&&S&&this.fontCache.has(S))return this.fontCache.putAlias(c,S),this.fontCache.get(c)}else x[b]={fontID:this.idFactory.createFontId()};w&&(x[b].aliasRef=c),v=x[b].fontID}else v=this.idFactory.createFontId();return(0,a.assert)(null===(i=v)||void 0===i?void 0:i.startsWith("f"),'The "fontID" must be (correctly) defined.'),w?this.fontCache.put(c,g.promise):(r.cacheKey="cacheKey_".concat(v),this.fontCache.put(r.cacheKey,g.promise)),r.loadedName="".concat(this.idFactory.getDocId(),"_").concat(v),this.translateFont(p).then((function(e){g.resolve(new q({loadedName:r.loadedName,font:e,dict:r,evaluatorOptions:u.options}))})).catch((function(e){(0,a.warn)('loadFont - translateFont failed: "'.concat(e,'".')),g.resolve(new q({loadedName:r.loadedName,font:new s.ErrorFont(e instanceof Error?e.message:e),dict:r,evaluatorOptions:u.options}))})),g.promise}},{key:"buildPath",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=e.length-1;if(r||(r=[]),i<0||e.fnArray[i]!==a.OPS.constructPath){var o;switch(n&&((0,a.warn)('Encountered path operator "'.concat(t,'" inside of a text object.')),e.addOp(a.OPS.save,null)),t){case a.OPS.rectangle:var s=r[0]+r[2],c=r[1]+r[3];o=[Math.min(r[0],s),Math.max(r[0],s),Math.min(r[1],c),Math.max(r[1],c)];break;case a.OPS.moveTo:case a.OPS.lineTo:o=[r[0],r[0],r[1],r[1]];break;default:o=[1/0,-1/0,1/0,-1/0]}e.addOp(a.OPS.constructPath,[[t],r,o]),n&&e.addOp(a.OPS.restore,null)}else{var u,l=e.argsArray[i];l[0].push(t),(u=l[1]).push.apply(u,f(r));var h=l[2];switch(t){case a.OPS.rectangle:var d=r[0]+r[2],p=r[1]+r[3];h[0]=Math.min(h[0],r[0],d),h[1]=Math.max(h[1],r[0],d),h[2]=Math.min(h[2],r[1],p),h[3]=Math.max(h[3],r[1],p);break;case a.OPS.moveTo:case a.OPS.lineTo:h[0]=Math.min(h[0],r[0]),h[1]=Math.max(h[1],r[0]),h[2]=Math.min(h[2],r[1]),h[3]=Math.max(h[3],r[1])}}}},{key:"parseColorSpace",value:function(e){var t=this,r=e.cs,n=e.resources,i=e.localColorSpaceCache;return w.ColorSpace.parseAsync({cs:r,xref:this.xref,resources:n,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:i}).catch((function(e){if(e instanceof a.AbortException)return null;if(t.options.ignoreErrors)return(0,a.warn)('parseColorSpace - ignoring ColorSpace: "'.concat(e,'".')),null;throw e}))}},{key:"parseShading",value:function(e){var t=e.shading,r=e.resources,n=e.localColorSpaceCache,a=e.localShadingPatternCache,i=a.get(t);if(!i){var o=l.Pattern.parseShading(t,this.xref,r,this._pdfFunctionFactory,n).getIR();i="pattern_".concat(this.idFactory.createObjId()),this.parsingType3Font&&(i="".concat(this.idFactory.getDocId(),"_type3_").concat(i)),a.set(t,i),this.parsingType3Font?this.handler.send("commonobj",[i,"Pattern",o]):this.handler.send("obj",[i,this.pageIndex,"Pattern",o])}return i}},{key:"handleColorN",value:function(e,t,r,n,i,s,c,u,h,f){var d=r.pop();if(d instanceof o.Name){var p=i.getRaw(d.name),g=p instanceof o.Ref&&h.getByRef(p);if(g)try{var v=n.base?n.base.getRgb(r,0):null,m=(0,l.getTilingPatternIR)(g.operatorListIR,g.dict,v);return void e.addOp(t,m)}catch(e){}var b=this.xref.fetchIfRef(p);if(b){var w=b instanceof y.BaseStream?b.dict:b,k=w.get("PatternType");if(1===k){var x=n.base?n.base.getRgb(r,0):null;return this.handleTilingType(t,x,s,b,w,e,c,h)}if(2===k){var S=w.get("Shading"),A=w.getArray("Matrix"),C=this.parseShading({shading:S,resources:s,localColorSpaceCache:u,localShadingPatternCache:f});return void e.addOp(t,["Shading",C,A])}throw new a.FormatError("Unknown PatternType: ".concat(k))}}throw new a.FormatError("Unknown PatternName: ".concat(d))}},{key:"_parseVisibilityExpression",value:function(e,t,r){if(++t>10)(0,a.warn)("Visibility expression is too deeply nested");else{var n=e.length,i=this.xref.fetchIfRef(e[0]);if(!(n<2)&&i instanceof o.Name){switch(i.name){case"And":case"Or":case"Not":r.push(i.name);break;default:return void(0,a.warn)("Invalid operator ".concat(i.name," in visibility expression"))}for(var s=1;s0)){e.next=17;break}return e.abrupt("return",{type:"OCMD",expression:c});case 17:if(u=n.get("OCGs"),!(Array.isArray(u)||u instanceof o.Dict)){e.next=22;break}if(l=[],Array.isArray(u)){h=x(u);try{for(h.s();!(f=h.n()).done;)d=f.value,l.push(d.toString())}catch(e){h.e(e)}finally{h.f()}}else l.push(u.objId);return e.abrupt("return",{type:i,ids:l,policy:n.get("P")instanceof o.Name?n.get("P").name:null,expression:null});case 22:if(!(u instanceof o.Ref)){e.next=24;break}return e.abrupt("return",{type:i,id:u.toString()});case 24:return e.abrupt("return",null);case 25:case"end":return e.stop()}}),e,this)}))),function(e,t){return n.apply(this,arguments)})},{key:"getOperatorList",value:function(e){var t=this,r=e.stream,n=e.task,i=e.resources,s=e.operatorList,c=e.initialState,u=void 0===c?null:c,l=e.fallbackFontDict,h=void 0===l?null:l;if(i||(i=o.Dict.empty),u||(u=new W),!s)throw new Error('getOperatorList: missing "operatorList" parameter');var d=this,p=this.xref,g=!1,m=new v.LocalImageCache,b=new v.LocalColorSpaceCache,k=new v.LocalGStateCache,S=new v.LocalTilingPatternCache,A=new Map,C=i.get("XObject")||o.Dict.empty,O=i.get("Pattern")||o.Dict.empty,F=new z(u),I=new V(r,p,F),T=new X;function M(e){for(var t=0,r=I.savedStatesDepth;t0&&s.addOp(a.OPS.setGState,[Q]),D=null;continue}}return void c(new Promise((function(e,t){if(!R)throw new a.FormatError("GState must be referred to by name.");var r=i.get("ExtGState");if(!(r instanceof o.Dict))throw new a.FormatError("ExtGState should be a dictionary.");var c=r.get(P);if(!(c instanceof o.Dict))throw new a.FormatError("GState should be a dictionary.");d.setGState({resources:i,gState:c,operatorList:s,cacheKey:P,task:n,stateManager:F,localGStateCache:k,localColorSpaceCache:b}).then(e,t)})).catch((function(e){if(!(e instanceof a.AbortException)){if(!d.options.ignoreErrors)throw e;(0,a.warn)('getOperatorList - ignoring ExtGState: "'.concat(e,'".'))}})));case a.OPS.moveTo:case a.OPS.lineTo:case a.OPS.curveTo:case a.OPS.curveTo2:case a.OPS.curveTo3:case a.OPS.closePath:case a.OPS.rectangle:d.buildPath(s,B,D,g);continue;case a.OPS.markPoint:case a.OPS.markPointProps:case a.OPS.beginCompat:case a.OPS.endCompat:continue;case a.OPS.beginMarkedContentProps:if(!(D[0]instanceof o.Name)){(0,a.warn)("Expected name for beginMarkedContentProps arg0=".concat(D[0]));continue}if("OC"===D[0].name)return void c(d.parseMarkedContentProps(D[1],i).then((function(e){s.addOp(a.OPS.beginMarkedContentProps,["OC",e])})).catch((function(e){if(!(e instanceof a.AbortException)){if(!d.options.ignoreErrors)throw e;(0,a.warn)('getOperatorList - ignoring beginMarkedContentProps: "'.concat(e,'".'))}})));D=[D[0].name,D[1]instanceof o.Dict?D[1].get("MCID"):null];break;case a.OPS.beginMarkedContent:case a.OPS.endMarkedContent:default:if(null!==D){for(l=0,v=D.length;l0&&(t[3]*=r*M.fontMatrix[3])}return a.Util.transform(M.ctm,a.Util.transform(M.textMatrix,t))}function $(){if(A.initialized)return A;var e=M,t=e.font,r=e.loadedName;d.has(r)||(d.add(r),x.styles[r]={fontFamily:t.fallbackName,ascent:t.ascent,descent:t.descent,vertical:t.vertical}),A.fontName=r;var n=A.transform=U();t.vertical?(A.width=A.totalWidth=Math.hypot(n[0],n[1]),A.height=A.totalHeight=0,A.vertical=!0):(A.width=A.totalWidth=0,A.height=A.totalHeight=Math.hypot(n[2],n[3]),A.vertical=!1);var a=Math.hypot(M.textLineMatrix[0],M.textLineMatrix[1]),i=Math.hypot(M.ctm[0],M.ctm[1]);A.textAdvanceScale=i*a;var o=M.fontSize;return A.trackingSpaceMin=.102*o,A.notASpace=.03*o,A.negativeSpaceMax=-.2*o,A.spaceInFlowMin=.102*o,A.spaceInFlowMax=.6*o,A.hasEOL=!1,A.initialized=!0,A}function H(){if(A.initialized){var e=Math.hypot(M.textLineMatrix[0],M.textLineMatrix[1]),t=Math.hypot(M.ctm[0],M.ctm[1])*e;t!==A.textAdvanceScale&&(A.vertical?(A.totalHeight+=A.height*A.textAdvanceScale,A.height=0):(A.totalWidth+=A.width*A.textAdvanceScale,A.width=0),A.textAdvanceScale=t)}}function q(e,t){return E.loadFont(e,t,i).then((function(e){return e.font.isType3Font?e.loadType3Data(E,i,n).catch((function(){})).then((function(){return e})):e})).then((function(e){M.loadedName=e.loadedName,M.font=e.font,M.fontMatrix=e.font.fontMatrix||a.FONT_IDENTITY_MATRIX}))}function W(e,t,r){var n=Math.hypot(r[0],r[1]);return[(r[0]*e+r[1]*t)/n,(r[2]*e+r[3]*t)/n]}function K(e){var t,r=U(),n=r[4],a=r[5];if(null!==(t=M.font)&&void 0!==t&&t.vertical){if(np[2]||a+ep[3])return!1}else if(n+ep[2]||ap[3])return!1;if(!M.font||!A.prevTransform)return!0;var i=A.prevTransform[4],o=A.prevTransform[5];if(i===n&&o===a)return!0;var s=-1;switch(r[0]&&0===r[1]&&0===r[2]?s=r[0]>0?0:180:r[1]&&0===r[0]&&0===r[3]&&(s=r[1]>0?90:270),s){case 0:break;case 90:var c=[a,n];n=c[0],a=c[1];var u=[o,i];i=u[0],o=u[1];break;case 180:var l=[-n,-a,-i,-o];n=l[0],a=l[1],i=l[2],o=l[3];break;case 270:var h=[-a,-n];n=h[0],a=h[1];var f=[-o,-i];i=f[0],o=f[1];break;default:var d=S(W(n,a,r),2);n=d[0],a=d[1];var g=S(W(i,o,A.prevTransform),2);i=g[0],o=g[1]}if(M.font.vertical){var v=(o-a)/A.textAdvanceScale,m=n-i,y=Math.sign(A.height);return v.5*A.width?(J(),!0):(T(),Q(),!0):Math.abs(m)>A.width?(J(),!0):(v<=y*A.notASpace&&T(),v<=y*A.trackingSpaceMin?I()?(T(),Q(),_({height:Math.abs(v)})):A.height+=v:Z(v,A.prevTransform,y)||(0===A.str.length?(T(),_({height:Math.abs(v)})):A.height+=v),Math.abs(m)>.25*A.width&&Q(),!0)}var b=(n-i)/A.textAdvanceScale,w=a-o,k=Math.sign(A.width);return b.5*A.height?(J(),!0):(T(),Q(),!0):Math.abs(w)>A.height?(J(),!0):(b<=k*A.notASpace&&T(),b<=k*A.trackingSpaceMin?I()?(T(),Q(),_({width:Math.abs(b)})):A.width+=b:Z(b,A.prevTransform,k)||(0===A.str.length?(T(),_({width:Math.abs(b)})):A.width+=b),Math.abs(w)>.25*A.height&&Q(),!0)}function Y(e){var t=e.chars,r=e.extraSpacing,n=M.font;if(t)for(var a=n.charsToGlyphs(t),i=M.fontMatrix[0]*M.fontSize,o=0,s=a.length;o0&&void 0!==arguments[0]&&arguments[0],t=x.items.length;0===t||e&&t<10||(h.enqueue(x,t),x.items=[],x.styles=Object.create(null))}var te=new X;return new Promise((function e(t,r){var s=function(n){ee(!0),Promise.all([n,h.ready]).then((function(){try{e(t,r)}catch(e){r(e)}}),r)};n.ensureNotTerminated(),te.reset();for(var u,f={},g=[];!(u=te.check())&&(g.length=0,f.args=g,L.read(f));){var v=M;switch(M=c.state,f.fn,g=f.args,0|r){case a.OPS.setFont:var b=g[0].name,w=g[1];if(M.font&&b===M.fontName&&w===M.fontSize)break;return Q(),M.fontName=b,M.fontSize=w,void s(q(b,null));case a.OPS.setTextRise:M.textRise=g[0];break;case a.OPS.setHScale:M.textHScale=g[0]/100;break;case a.OPS.setLeading:M.leading=g[0];break;case a.OPS.moveText:M.translateTextLineMatrix(g[0],g[1]),M.textMatrix=M.textLineMatrix.slice();break;case a.OPS.setLeadingMoveText:M.leading=-g[1],M.translateTextLineMatrix(g[0],g[1]),M.textMatrix=M.textLineMatrix.slice();break;case a.OPS.nextLine:M.carriageReturn();break;case a.OPS.setTextMatrix:M.setTextMatrix(g[0],g[1],g[2],g[3],g[4],g[5]),M.setTextLineMatrix(g[0],g[1],g[2],g[3],g[4],g[5]),H();break;case a.OPS.setCharSpacing:M.charSpacing=g[0];break;case a.OPS.setWordSpacing:M.wordSpacing=g[0];break;case a.OPS.beginText:M.textMatrix=a.IDENTITY_MATRIX.slice(),M.textLineMatrix=a.IDENTITY_MATRIX.slice();break;case a.OPS.showSpacedText:if(!c.state.font){E.ensureStateFont(c.state);continue}for(var S=(M.font.vertical?1:-1)*M.fontSize/1e3,A=g[0],C=0,O=A.length;C0){var T=R.join("");R.length=0,Y({chars:T,extraSpacing:0})}break;case a.OPS.showText:if(!c.state.font){E.ensureStateFont(c.state);continue}Y({chars:g[0],extraSpacing:0});break;case a.OPS.nextLineShowText:if(!c.state.font){E.ensureStateFont(c.state);continue}M.carriageReturn(),Y({chars:g[0],extraSpacing:0});break;case a.OPS.nextLineSetSpacingShowText:if(!c.state.font){E.ensureStateFont(c.state);continue}M.wordSpacing=g[0],M.charSpacing=g[1],M.carriageReturn(),Y({chars:g[2],extraSpacing:0});break;case a.OPS.paintXObject:Q(),N||(N=i.get("XObject")||o.Dict.empty);var _=g[0]instanceof o.Name,U=g[0].name;if(_&&D.getByName(U))break;return void s(new Promise((function(e,t){if(!_)throw new a.FormatError("XObject must be referred to by name.");var r=N.getRaw(U);if(r instanceof o.Ref){if(D.getByRef(r))return void e();if(E.globalImageCache.getData(r,E.pageIndex))return void e();r=P.fetch(r)}if(!(r instanceof y.BaseStream))throw new a.FormatError("XObject should be a stream");var s=r.dict.get("Subtype");if(!(s instanceof o.Name))throw new a.FormatError("XObject should have a Name subtype");if("Form"!==s.name)return D.set(U,r.dict.objId,!0),void e();var u=c.state.clone(),f=new z(u),g=r.dict.getArray("Matrix");Array.isArray(g)&&6===g.length&&f.transform(g),ee();var v={enqueueInvoked:!1,enqueue:function(e,t){this.enqueueInvoked=!0,h.enqueue(e,t)},get desiredSize(){return h.desiredSize},get ready(){return h.ready}};E.getTextContent({stream:r,task:n,resources:r.dict.get("Resources")||i,stateManager:f,includeMarkedContent:l,sink:v,seenStyles:d,viewBox:p,markedContentData:m,disableNormalization:k}).then((function(){v.enqueueInvoked||D.set(U,r.dict.objId,!0),e()}),t)})).catch((function(e){if(!(e instanceof a.AbortException)){if(!E.options.ignoreErrors)throw e;(0,a.warn)('getTextContent - ignoring XObject: "'.concat(e,'".'))}})));case a.OPS.setGState:if(_=g[0]instanceof o.Name,U=g[0].name,_&&B.getByName(U))break;return void s(new Promise((function(e,t){if(!_)throw new a.FormatError("GState must be referred to by name.");var r=i.get("ExtGState");if(!(r instanceof o.Dict))throw new a.FormatError("ExtGState should be a dictionary.");var n=r.get(U);if(!(n instanceof o.Dict))throw new a.FormatError("GState should be a dictionary.");var s=n.get("Font");s?(Q(),M.fontName=null,M.fontSize=s[1],q(null,s[0]).then(e,t)):(B.set(U,n.objId,!0),e())})).catch((function(e){if(!(e instanceof a.AbortException)){if(!E.options.ignoreErrors)throw e;(0,a.warn)('getTextContent - ignoring ExtGState: "'.concat(e,'".'))}})));case a.OPS.beginMarkedContent:Q(),l&&(m.level++,x.items.push({type:"beginMarkedContent",tag:g[0]instanceof o.Name?g[0].name:null}));break;case a.OPS.beginMarkedContentProps:if(Q(),l){m.level++;var $=null;g[1]instanceof o.Dict&&($=g[1].get("MCID")),x.items.push({type:"beginMarkedContentProps",id:Number.isInteger($)?"".concat(E.idFactory.getPageObjId(),"_mc").concat($):null,tag:g[0]instanceof o.Name?g[0].name:null})}break;case a.OPS.endMarkedContent:if(Q(),l){if(0===m.level)break;m.level--,x.items.push({type:"endMarkedContent"})}break;case a.OPS.restore:!v||v.font===M.font&&v.fontSize===M.fontSize&&v.fontName===M.fontName||Q()}if(x.items.length>=h.desiredSize){u=!0;break}}u?s(j):(Q(),ee(),t())})).catch((function(e){if(!(e instanceof a.AbortException)){if(!t.options.ignoreErrors)throw e;(0,a.warn)('getTextContent - ignoring errors during "'.concat(n.name,'" task: "').concat(e,'".')),Q(),ee()}}))}},{key:"extractDataStructures",value:function(e,t,r){var n,i=this,s=this.xref,l=this.readToUnicode(r.toUnicode||e.get("ToUnicode")||t.get("ToUnicode"));if(r.composite){var h=e.get("CIDSystemInfo");h instanceof o.Dict&&(r.cidSystemInfo={registry:(0,a.stringToPDFString)(h.get("Registry")),ordering:(0,a.stringToPDFString)(h.get("Ordering")),supplement:h.get("Supplement")});try{var f=e.get("CIDToGIDMap");f instanceof y.BaseStream&&(n=f.getBytes())}catch(e){if(!this.options.ignoreErrors)throw e;(0,a.warn)('extractDataStructures - ignoring CIDToGIDMap data: "'.concat(e,'".'))}}var d,p=[],g=null;if(e.has("Encoding")){if((d=e.get("Encoding"))instanceof o.Dict){if(g=(g=d.get("BaseEncoding"))instanceof o.Name?g.name:null,d.has("Differences")){var v,m=0,b=x(d.get("Differences"));try{for(b.s();!(v=b.n()).done;){var w=v.value,k=s.fetchIfRef(w);if("number"==typeof k)m=k;else{if(!(k instanceof o.Name))throw new a.FormatError("Invalid entry in 'Differences' array: ".concat(k));p[m++]=k.name}}}catch(e){b.e(e)}finally{b.f()}}}else if(d instanceof o.Name)g=d.name;else{var S="Encoding is not a Name nor a Dict";if(!this.options.ignoreErrors)throw new a.FormatError(S);(0,a.warn)(S)}"MacRomanEncoding"!==g&&"MacExpertEncoding"!==g&&"WinAnsiEncoding"!==g&&(g=null)}var A=!r.file||r.isInternalFont,O=(0,u.getSymbolsFonts)()[r.name];if(g&&A&&O&&(g=null),g)r.defaultEncoding=(0,c.getEncoding)(g);else{var F=!!(r.flags&C.FontFlags.Symbolic),I=!!(r.flags&C.FontFlags.Nonsymbolic);d=c.StandardEncoding,"TrueType"!==r.type||I||(d=c.WinAnsiEncoding),(F||O)&&(d=c.MacRomanEncoding,A&&(/Symbol/i.test(r.name)?d=c.SymbolSetEncoding:/Dingbats/i.test(r.name)?d=c.ZapfDingbatsEncoding:/Wingdings/i.test(r.name)&&(d=c.WinAnsiEncoding))),r.defaultEncoding=d}return r.differences=p,r.baseEncodingName=g,r.hasEncoding=!!g||p.length>0,r.dict=e,l.then((function(e){return r.toUnicode=e,i.buildToUnicode(r)})).then((function(e){return r.toUnicode=e,n&&(r.cidToGidMap=i.readCidToGidMap(n,e)),r}))}},{key:"_simpleFontToUnicode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(0,a.assert)(!e.composite,"Must be a simple font.");var r=[],n=e.defaultEncoding.slice(),i=e.baseEncodingName,o=e.differences;for(var s in o){var u=o[s];".notdef"!==u&&(n[s]=u)}var l=(0,F.getGlyphsUnicode)();for(var h in n){var f=n[h];if(""!==f){var d=l[f];if(void 0===d){var p=0;switch(f[0]){case"G":3===f.length&&(p=parseInt(f.substring(1),16));break;case"g":5===f.length&&(p=parseInt(f.substring(1),16));break;case"C":case"c":if(f.length>=3&&f.length<=4){var g=f.substring(1);if(t){p=parseInt(g,16);break}if(p=+g,Number.isNaN(p)&&Number.isInteger(parseInt(g,16)))return this._simpleFontToUnicode(e,!0)}break;case"u":-1!==(d=(0,R.getUnicodeForGlyph)(f,l))&&(p=d);break;default:switch(f){case"f_h":case"f_t":case"T_h":r[h]=f.replaceAll("_","");continue}}if(p>0&&p<=1114111&&Number.isInteger(p)){if(i&&p===+h){var v=(0,c.getEncoding)(i);if(v&&(f=v[h])){r[h]=String.fromCharCode(l[f]);continue}}r[h]=String.fromCodePoint(p)}}else r[h]=String.fromCharCode(d)}}return r}},{key:"buildToUnicode",value:(r=T(k().mark((function e(t){var r,n,s,c,u,l,h,f;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.hasIncludedToUnicodeMap=(null===(r=t.toUnicode)||void 0===r?void 0:r.length)>0,!t.hasIncludedToUnicodeMap){e.next=4;break}return!t.composite&&t.hasEncoding&&(t.fallbackToUnicode=this._simpleFontToUnicode(t)),e.abrupt("return",t.toUnicode);case 4:if(t.composite){e.next=6;break}return e.abrupt("return",new d.ToUnicodeMap(this._simpleFontToUnicode(t)));case 6:if(!t.composite||(!t.cMap.builtInCMap||t.cMap instanceof i.IdentityCMap)&&("Adobe"!==t.cidSystemInfo.registry||"GB1"!==t.cidSystemInfo.ordering&&"CNS1"!==t.cidSystemInfo.ordering&&"Japan1"!==t.cidSystemInfo.ordering&&"Korea1"!==t.cidSystemInfo.ordering)){e.next=18;break}return n=t.cidSystemInfo,s=n.registry,c=n.ordering,u=o.Name.get("".concat(s,"-").concat(c,"-UCS2")),e.next=13,i.CMapFactory.create({encoding:u,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null});case 13:return l=e.sent,h=[],f=[],t.cMap.forEach((function(e,t){if(t>65535)throw new a.FormatError("Max size of CID is 65,535");var r=l.lookup(t);if(r){f.length=0;for(var n=0,i=r.length;n>1;(0!==i||t.has(o))&&(r[o]=i)}return r}},{key:"extractWidths",value:function(e,t,r){var n,a,i,s,c,u,l,h,f=this.xref,d=[],p=0,g=[];if(r.composite){if(p=e.has("DW")?e.get("DW"):1e3,h=e.get("W"))for(a=0,i=h.length;a1&&void 0!==arguments[1]?arguments[1]:NaN,r=a.Util.normalizeRect(e.argsArray[0].slice(2)),n=r[2]-r[0],i=r[3]-r[1],o=Math.hypot(n,i);0===n||0===i?(e.fnArray.splice(0,1),e.argsArray.splice(0,1)):(0===t||Math.round(o/t)>=10)&&(this._bbox||(this._bbox=[1/0,1/0,-1/0,-1/0]),this._bbox[0]=Math.min(this._bbox[0],r[0]),this._bbox[1]=Math.min(this._bbox[1],r[1]),this._bbox[2]=Math.max(this._bbox[2],r[2]),this._bbox[3]=Math.max(this._bbox[3],r[3]));for(var s=0,c=e.length;s0&&void 0!==arguments[0]?arguments[0]:new W;this.state=t,this.stateStack=[]}return P(e,[{key:"save",value:function(){var e=this.state;this.stateStack.push(this.state),this.state=e.clone()}},{key:"restore",value:function(){var e=this.stateStack.pop();e&&(this.state=e)}},{key:"transform",value:function(e){this.state.ctm=a.Util.transform(this.state.ctm,e)}}]),e}(),G=function(){function e(){M(this,e),this.ctm=new Float32Array(a.IDENTITY_MATRIX),this.fontName=null,this.fontSize=0,this.loadedName=null,this.font=null,this.fontMatrix=a.FONT_IDENTITY_MATRIX,this.textMatrix=a.IDENTITY_MATRIX.slice(),this.textLineMatrix=a.IDENTITY_MATRIX.slice(),this.charSpacing=0,this.wordSpacing=0,this.leading=0,this.textHScale=1,this.textRise=0}return P(e,[{key:"setTextMatrix",value:function(e,t,r,n,a,i){var o=this.textMatrix;o[0]=e,o[1]=t,o[2]=r,o[3]=n,o[4]=a,o[5]=i}},{key:"setTextLineMatrix",value:function(e,t,r,n,a,i){var o=this.textLineMatrix;o[0]=e,o[1]=t,o[2]=r,o[3]=n,o[4]=a,o[5]=i}},{key:"translateTextMatrix",value:function(e,t){var r=this.textMatrix;r[4]=r[0]*e+r[2]*t+r[4],r[5]=r[1]*e+r[3]*t+r[5]}},{key:"translateTextLineMatrix",value:function(e,t){var r=this.textLineMatrix;r[4]=r[0]*e+r[2]*t+r[4],r[5]=r[1]*e+r[3]*t+r[5]}},{key:"carriageReturn",value:function(){this.translateTextLineMatrix(0,-this.leading),this.textMatrix=this.textLineMatrix.slice()}},{key:"clone",value:function(){var e=Object.create(this);return e.textMatrix=this.textMatrix.slice(),e.textLineMatrix=this.textLineMatrix.slice(),e.fontMatrix=this.fontMatrix.slice(),e}}]),e}(),W=function(){function e(){M(this,e),this.ctm=new Float32Array(a.IDENTITY_MATRIX),this.font=null,this.textRenderingMode=a.TextRenderingMode.FILL,this.fillColorSpace=w.ColorSpace.singletons.gray,this.strokeColorSpace=w.ColorSpace.singletons.gray}return P(e,[{key:"clone",value:function(){return Object.create(this)}}]),e}(),V=function(){function e(t,r){M(this,e);var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new z;this.parser=new g.Parser({lexer:new g.Lexer(t,e.opMap),xref:r}),this.stateManager=n,this.nonProcessedArgs=[],this._isPathOp=!1,this._numInvalidPathOPS=0}return P(e,[{key:"savedStatesDepth",get:function(){return this.stateManager.stateStack.length}},{key:"read",value:function(t){for(var r=t.args;;){var n=this.parser.getObj();if(n instanceof o.Cmd){var i=n.cmd,s=e.opMap[i];if(!s){(0,a.warn)('Unknown command "'.concat(i,'".'));continue}var c=s.id,u=s.numArgs,l=null!==r?r.length:0;if(this._isPathOp||(this._numInvalidPathOPS=0),this._isPathOp=c>=a.OPS.moveTo&&c<=a.OPS.endPath,s.variableArgs)l>u&&(0,a.info)("Command ".concat(i,": expected [0, ").concat(u,"] args, but received ").concat(l," args."));else{if(l!==u){for(var h=this.nonProcessedArgs;l>u;)h.push(r.shift()),l--;for(;le.MAX_INVALID_PATH_OPS)throw new a.FormatError("Invalid ".concat(f));(0,a.warn)("Skipping ".concat(f)),null!==r&&(r.length=0);continue}}return this.preprocessCommand(c,r),t.fn=c,t.args=r,!0}if(n===o.EOF)return!1;if(null!==n&&(null===r&&(r=[]),r.push(n),r.length>33))throw new a.FormatError("Too many arguments")}}},{key:"preprocessCommand",value:function(e,t){switch(0|e){case a.OPS.save:this.stateManager.save();break;case a.OPS.restore:this.stateManager.restore();break;case a.OPS.transform:this.stateManager.transform(t)}}}],[{key:"opMap",get:function(){var e=(0,I.getLookupTableFactory)((function(e){e.w={id:a.OPS.setLineWidth,numArgs:1,variableArgs:!1},e.J={id:a.OPS.setLineCap,numArgs:1,variableArgs:!1},e.j={id:a.OPS.setLineJoin,numArgs:1,variableArgs:!1},e.M={id:a.OPS.setMiterLimit,numArgs:1,variableArgs:!1},e.d={id:a.OPS.setDash,numArgs:2,variableArgs:!1},e.ri={id:a.OPS.setRenderingIntent,numArgs:1,variableArgs:!1},e.i={id:a.OPS.setFlatness,numArgs:1,variableArgs:!1},e.gs={id:a.OPS.setGState,numArgs:1,variableArgs:!1},e.q={id:a.OPS.save,numArgs:0,variableArgs:!1},e.Q={id:a.OPS.restore,numArgs:0,variableArgs:!1},e.cm={id:a.OPS.transform,numArgs:6,variableArgs:!1},e.m={id:a.OPS.moveTo,numArgs:2,variableArgs:!1},e.l={id:a.OPS.lineTo,numArgs:2,variableArgs:!1},e.c={id:a.OPS.curveTo,numArgs:6,variableArgs:!1},e.v={id:a.OPS.curveTo2,numArgs:4,variableArgs:!1},e.y={id:a.OPS.curveTo3,numArgs:4,variableArgs:!1},e.h={id:a.OPS.closePath,numArgs:0,variableArgs:!1},e.re={id:a.OPS.rectangle,numArgs:4,variableArgs:!1},e.S={id:a.OPS.stroke,numArgs:0,variableArgs:!1},e.s={id:a.OPS.closeStroke,numArgs:0,variableArgs:!1},e.f={id:a.OPS.fill,numArgs:0,variableArgs:!1},e.F={id:a.OPS.fill,numArgs:0,variableArgs:!1},e["f*"]={id:a.OPS.eoFill,numArgs:0,variableArgs:!1},e.B={id:a.OPS.fillStroke,numArgs:0,variableArgs:!1},e["B*"]={id:a.OPS.eoFillStroke,numArgs:0,variableArgs:!1},e.b={id:a.OPS.closeFillStroke,numArgs:0,variableArgs:!1},e["b*"]={id:a.OPS.closeEOFillStroke,numArgs:0,variableArgs:!1},e.n={id:a.OPS.endPath,numArgs:0,variableArgs:!1},e.W={id:a.OPS.clip,numArgs:0,variableArgs:!1},e["W*"]={id:a.OPS.eoClip,numArgs:0,variableArgs:!1},e.BT={id:a.OPS.beginText,numArgs:0,variableArgs:!1},e.ET={id:a.OPS.endText,numArgs:0,variableArgs:!1},e.Tc={id:a.OPS.setCharSpacing,numArgs:1,variableArgs:!1},e.Tw={id:a.OPS.setWordSpacing,numArgs:1,variableArgs:!1},e.Tz={id:a.OPS.setHScale,numArgs:1,variableArgs:!1},e.TL={id:a.OPS.setLeading,numArgs:1,variableArgs:!1},e.Tf={id:a.OPS.setFont,numArgs:2,variableArgs:!1},e.Tr={id:a.OPS.setTextRenderingMode,numArgs:1,variableArgs:!1},e.Ts={id:a.OPS.setTextRise,numArgs:1,variableArgs:!1},e.Td={id:a.OPS.moveText,numArgs:2,variableArgs:!1},e.TD={id:a.OPS.setLeadingMoveText,numArgs:2,variableArgs:!1},e.Tm={id:a.OPS.setTextMatrix,numArgs:6,variableArgs:!1},e["T*"]={id:a.OPS.nextLine,numArgs:0,variableArgs:!1},e.Tj={id:a.OPS.showText,numArgs:1,variableArgs:!1},e.TJ={id:a.OPS.showSpacedText,numArgs:1,variableArgs:!1},e["'"]={id:a.OPS.nextLineShowText,numArgs:1,variableArgs:!1},e['"']={id:a.OPS.nextLineSetSpacingShowText,numArgs:3,variableArgs:!1},e.d0={id:a.OPS.setCharWidth,numArgs:2,variableArgs:!1},e.d1={id:a.OPS.setCharWidthAndBounds,numArgs:6,variableArgs:!1},e.CS={id:a.OPS.setStrokeColorSpace,numArgs:1,variableArgs:!1},e.cs={id:a.OPS.setFillColorSpace,numArgs:1,variableArgs:!1},e.SC={id:a.OPS.setStrokeColor,numArgs:4,variableArgs:!0},e.SCN={id:a.OPS.setStrokeColorN,numArgs:33,variableArgs:!0},e.sc={id:a.OPS.setFillColor,numArgs:4,variableArgs:!0},e.scn={id:a.OPS.setFillColorN,numArgs:33,variableArgs:!0},e.G={id:a.OPS.setStrokeGray,numArgs:1,variableArgs:!1},e.g={id:a.OPS.setFillGray,numArgs:1,variableArgs:!1},e.RG={id:a.OPS.setStrokeRGBColor,numArgs:3,variableArgs:!1},e.rg={id:a.OPS.setFillRGBColor,numArgs:3,variableArgs:!1},e.K={id:a.OPS.setStrokeCMYKColor,numArgs:4,variableArgs:!1},e.k={id:a.OPS.setFillCMYKColor,numArgs:4,variableArgs:!1},e.sh={id:a.OPS.shadingFill,numArgs:1,variableArgs:!1},e.BI={id:a.OPS.beginInlineImage,numArgs:0,variableArgs:!1},e.ID={id:a.OPS.beginImageData,numArgs:0,variableArgs:!1},e.EI={id:a.OPS.endInlineImage,numArgs:1,variableArgs:!1},e.Do={id:a.OPS.paintXObject,numArgs:1,variableArgs:!1},e.MP={id:a.OPS.markPoint,numArgs:1,variableArgs:!1},e.DP={id:a.OPS.markPointProps,numArgs:2,variableArgs:!1},e.BMC={id:a.OPS.beginMarkedContent,numArgs:1,variableArgs:!1},e.BDC={id:a.OPS.beginMarkedContentProps,numArgs:2,variableArgs:!1},e.EMC={id:a.OPS.endMarkedContent,numArgs:0,variableArgs:!1},e.BX={id:a.OPS.beginCompat,numArgs:0,variableArgs:!1},e.EX={id:a.OPS.endCompat,numArgs:0,variableArgs:!1},e.BM=null,e.BD=null,e.true=null,e.fa=null,e.fal=null,e.fals=null,e.false=null,e.nu=null,e.nul=null,e.null=null}));return(0,a.shadow)(this,"opMap",e())}}]),e}();n(V,"MAX_INVALID_PATH_OPS",10),t.EvaluatorPreprocessor=V},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.IdentityCMap=t.CMapFactory=t.CMap=void 0,r(139),r(2);var n=r(144),a=r(150),i=r(151),o=r(165),s=r(166),c=r(149),u=r(154),l=["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"],h=Math.pow(2,24)-1,f=function(){function e(){M(this,e);var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.codespaceRanges=[[],[],[],[]],this.numCodespaceRanges=0,this._map=[],this.name="",this.vertical=!1,this.useCMap=null,this.builtInCMap=t}return P(e,[{key:"addCodespaceRange",value:function(e,t,r){this.codespaceRanges[e-1].push(t,r),this.numCodespaceRanges++}},{key:"mapCidRange",value:function(e,t,r){if(t-e>h)throw new Error("mapCidRange - ignoring data above MAX_MAP_RANGE.");for(;e<=t;)this._map[e++]=r++}},{key:"mapBfRange",value:function(e,t,r){if(t-e>h)throw new Error("mapBfRange - ignoring data above MAX_MAP_RANGE.");for(var n=r.length-1;e<=t;){this._map[e++]=r;var a=r.charCodeAt(n)+1;r=a>255?r.substring(0,n-1)+String.fromCharCode(r.charCodeAt(n-1)+1)+"\0":r.substring(0,n)+String.fromCharCode(a)}}},{key:"mapBfRangeToArray",value:function(e,t,r){if(t-e>h)throw new Error("mapBfRangeToArray - ignoring data above MAX_MAP_RANGE.");for(var n=r.length,a=0;e<=t&&a>>0;for(var s=a[i],c=0,u=s.length;c=l&&n<=h)return r.charcode=n,void(r.length=i+1)}}r.charcode=0,r.length=1}},{key:"getCharCodeLength",value:function(e){for(var t=this.codespaceRanges,r=0,n=t.length;r=s&&e<=c)return r+1}return 1}},{key:"length",get:function(){return this._map.length}},{key:"isIdentityCMap",get:function(){if("Identity-H"!==this.name&&"Identity-V"!==this.name)return!1;if(65536!==this._map.length)return!1;for(var e=0;e<65536;e++)if(this._map[e]!==e)return!1;return!0}}]),e}();t.CMap=f;var p=function(e){function t(e,r){var n;return M(this,t),(n=d(this,t)).vertical=e,n.addCodespaceRange(r,0,65535),n}return y(t,e),P(t,[{key:"mapCidRange",value:function(e,t,r){(0,n.unreachable)("should not call mapCidRange")}},{key:"mapBfRange",value:function(e,t,r){(0,n.unreachable)("should not call mapBfRange")}},{key:"mapBfRangeToArray",value:function(e,t,r){(0,n.unreachable)("should not call mapBfRangeToArray")}},{key:"mapOne",value:function(e,t){(0,n.unreachable)("should not call mapCidOne")}},{key:"lookup",value:function(e){return Number.isInteger(e)&&e<=65535?e:void 0}},{key:"contains",value:function(e){return Number.isInteger(e)&&e<=65535}},{key:"forEach",value:function(e){for(var t=0;t<=65535;t++)e(t,t)}},{key:"charCodeOf",value:function(e){return Number.isInteger(e)&&e<=65535?e:-1}},{key:"getMap",value:function(){for(var e=new Array(65536),t=0;t<=65535;t++)e[t]=t;return e}},{key:"length",get:function(){return 65536}},{key:"isIdentityCMap",get:function(){(0,n.unreachable)("should not access .isIdentityCMap")}}]),t}(f);function g(e){for(var t=0,r=0;r>>0}function v(e){if("string"!=typeof e)throw new n.FormatError("Malformed CMap: expected string.")}function m(e){if(!Number.isInteger(e))throw new n.FormatError("Malformed CMap: expected int.")}function b(e,t){for(;;){var r=t.getObj();if(r===a.EOF)break;if((0,a.isCmd)(r,"endbfchar"))return;v(r);var n=g(r);v(r=t.getObj());var i=r;e.mapOne(n,i)}}function w(e,t){for(;;){var r=t.getObj();if(r===a.EOF)break;if((0,a.isCmd)(r,"endbfrange"))return;v(r);var i=g(r);v(r=t.getObj());var o=g(r);if(r=t.getObj(),Number.isInteger(r)||"string"==typeof r){var s=Number.isInteger(r)?String.fromCharCode(r):r;e.mapBfRange(i,o,s)}else{if(!(0,a.isCmd)(r,"["))break;r=t.getObj();for(var c=[];!(0,a.isCmd)(r,"]")&&r!==a.EOF;)c.push(r),r=t.getObj();e.mapBfRangeToArray(i,o,c)}}throw new n.FormatError("Invalid bf range.")}function x(e,t){for(;;){var r=t.getObj();if(r===a.EOF)break;if((0,a.isCmd)(r,"endcidchar"))return;v(r);var n=g(r);m(r=t.getObj());var i=r;e.mapOne(n,i)}}function S(e,t){for(;;){var r=t.getObj();if(r===a.EOF)break;if((0,a.isCmd)(r,"endcidrange"))return;v(r);var n=g(r);v(r=t.getObj());var i=g(r);m(r=t.getObj());var o=r;e.mapCidRange(n,i,o)}}function A(e,t){for(;;){var r=t.getObj();if(r===a.EOF)break;if((0,a.isCmd)(r,"endcodespacerange"))return;if("string"!=typeof r)break;var i=g(r);if("string"!=typeof(r=t.getObj()))break;var o=g(r);e.addCodespaceRange(r.length,i,o)}throw new n.FormatError("Invalid codespace range.")}function C(e,t){var r=t.getObj();Number.isInteger(r)&&(e.vertical=!!r)}function O(e,t){var r=t.getObj();r instanceof a.Name&&(e.name=r.name)}function F(e,t,r,n){return I.apply(this,arguments)}function I(){return I=T(k().mark((function e(t,r,i,o){var s,u,l;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,(l=r.getObj())!==a.EOF){e.next=4;break}return e.abrupt("break",35);case 4:if(!(l instanceof a.Name)){e.next=9;break}"WMode"===l.name?C(t,r):"CMapName"===l.name&&O(t,r),s=l,e.next=25;break;case 9:if(!(l instanceof a.Cmd)){e.next=25;break}e.t0=l.cmd,e.next="endcmap"===e.t0?13:"usecmap"===e.t0?14:"begincodespacerange"===e.t0?16:"beginbfchar"===e.t0?18:"begincidchar"===e.t0?20:"beginbfrange"===e.t0?22:"begincidrange"===e.t0?24:25;break;case 13:return e.abrupt("break",35);case 14:return s instanceof a.Name&&(u=s.name),e.abrupt("break",25);case 16:return A(t,r),e.abrupt("break",25);case 18:return b(t,r),e.abrupt("break",25);case 20:return x(t,r),e.abrupt("break",25);case 22:return w(t,r),e.abrupt("break",25);case 24:S(t,r);case 25:e.next=33;break;case 27:if(e.prev=27,e.t1=e.catch(0),!(e.t1 instanceof c.MissingDataException)){e.next=31;break}throw e.t1;case 31:return(0,n.warn)("Invalid cMap data: "+e.t1),e.abrupt("continue",33);case 33:e.next=0;break;case 35:return!o&&u&&(o=u),e.abrupt("return",o?E(t,i,o):t);case 37:case"end":return e.stop()}}),e,null,[[0,27]])}))),I.apply(this,arguments)}function E(e,t,r){return R.apply(this,arguments)}function R(){return R=T(k().mark((function e(t,r,n){var a,i;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,N(n,r);case 2:if(t.useCMap=e.sent,0===t.numCodespaceRanges){for(a=t.useCMap.codespaceRanges,i=0;i>>0}function i(e,t){return 1===t?String.fromCharCode(e[0],e[1]):3===t?String.fromCharCode(e[0],e[1],e[2],e[3]):String.fromCharCode.apply(String,f(e.subarray(0,t+1)))}function o(e,t,r){for(var n=0,a=r;a>=0;a--)n+=e[a]+t[a],e[a]=255&n,n>>=8}function s(e,t){for(var r=1,n=t;n>=0&&r>0;n--)r+=e[n],e[n]=255&r,r>>=8}var c=16,u=function(){function e(t){M(this,e),this.buffer=t,this.pos=0,this.end=t.length,this.tmpBuf=new Uint8Array(19)}return P(e,[{key:"readByte",value:function(){return this.pos>=this.end?-1:this.buffer[this.pos++]}},{key:"readNumber",value:function(){var e,t=0;do{var r=this.readByte();if(r<0)throw new n.FormatError("unexpected EOF in bcmap");e=!(128&r),t=t<<7|127&r}while(!e);return t}},{key:"readSigned",value:function(){var e=this.readNumber();return 1&e?~(e>>>1):e>>>1}},{key:"readHex",value:function(e,t){e.set(this.buffer.subarray(this.pos,this.pos+t+1)),this.pos+=t+1}},{key:"readHexNumber",value:function(e,t){var r,a=this.tmpBuf,i=0;do{var o=this.readByte();if(o<0)throw new n.FormatError("unexpected EOF in bcmap");r=!(128&o),a[i++]=127&o}while(!r);for(var s=t,c=0,u=0;s>=0;){for(;u<8&&a.length>0;)c|=a[--i]<>=8,u-=8}}},{key:"readHexSigned",value:function(e,t){this.readHexNumber(e,t);for(var r=1&e[t]?255:0,n=0,a=0;a<=t;a++)n=(1&n)<<8|e[a],e[a]=n>>1^r}},{key:"readString",value:function(){for(var e=this.readNumber(),t=new Array(e),r=0;r=0)){e.next=60;break}if(7!=(w=b>>5)){e.next=14;break}e.t0=31&b,e.next=0===e.t0?10:1===e.t0?12:13;break;case 10:return l.readString(),e.abrupt("break",13);case 12:f=l.readString();case 13:return e.abrupt("continue",58);case 14:if(x=!!(16&b),!(1+(S=15&b)>c)){e.next=17;break}throw new Error("BinaryCMapReader.process: Invalid dataSize.");case 17:A=1,C=l.readNumber(),e.t1=w,e.next=0===e.t1?21:1===e.t1?27:2===e.t1?33:3===e.t1?38:4===e.t1?45:5===e.t1?50:57;break;case 21:for(l.readHex(d,S),l.readHexNumber(p,S),o(p,d,S),r.addCodespaceRange(S+1,a(d,S),a(p,S)),O=1;O0&&void 0!==arguments[0]?arguments[0]:null,t=this.buf1;if(this.shift(),t instanceof a.Cmd)switch(t.cmd){case"BI":return this.makeInlineImage(e);case"[":for(var r=[];!(0,a.isCmd)(this.buf1,"]")&&this.buf1!==a.EOF;)r.push(this.getObj(e));if(this.buf1===a.EOF){if(this.recoveryMode)return r;throw new i.ParserEOFException("End of file inside array.")}return this.shift(),r;case"<<":for(var o=new a.Dict(this.xref);!(0,a.isCmd)(this.buf1,">>")&&this.buf1!==a.EOF;)if(this.buf1 instanceof a.Name){var s=this.buf1.name;if(this.shift(),this.buf1===a.EOF)break;o.set(s,this.getObj(e))}else(0,n.info)("Malformed dictionary: key must be a name object"),this.shift();if(this.buf1===a.EOF){if(this.recoveryMode)return o;throw new i.ParserEOFException("End of file inside dictionary.")}return(0,a.isCmd)(this.buf2,"stream")?this.allowStreams?this.makeStream(o,e):o:(this.shift(),o);default:return t}if(Number.isInteger(t)){if(Number.isInteger(this.buf1)&&(0,a.isCmd)(this.buf2,"R")){var c=a.Ref.get(t,this.buf1);return this.shift(),this.shift(),c}return t}return"string"==typeof t&&e?e.decryptString(t):t}},{key:"findDefaultInlineStreamEnd",value:function(e){for(var t,r,s=this.lexer.knownCommands,c=e.pos,u=0;-1!==(t=e.getByte());)if(0===u)u=69===t?1:0;else if(1===u)u=73===t?2:0;else if(32===t||10===t||13===t){r=e.pos;var l=e.peekBytes(15),h=l.length;if(0===h)break;for(var f=0;f127)){u=0;break}if(2!==u)continue;if(!s){(0,n.warn)("findDefaultInlineStreamEnd - `lexer.knownCommands` is undefined.");continue}var d=new w(new o.Stream(l.slice()),s);d._hexStringWarn=function(){};for(var p=0;;){var g=d.getObj();if(g===a.EOF){u=0;break}if(g instanceof a.Cmd){var v=s[g.cmd];if(!v){u=0;break}if(v.variableArgs?p<=v.numArgs:p===v.numArgs)break;p=0}else p++}if(2===u)break}else u=0;-1===t&&((0,n.warn)("findDefaultInlineStreamEnd: Reached the end of the stream without finding a valid EI marker"),r&&((0,n.warn)('... trying to recover by using the last "EI" occurrence.'),e.skip(-(e.pos-r))));var m=4;return e.skip(-m),t=e.peekByte(),e.skip(m),(0,i.isWhiteSpace)(t)||m--,e.pos-m-c}},{key:"findDCTDecodeInlineStreamEnd",value:function(e){for(var t,r,a=e.pos,i=!1;-1!==(t=e.getByte());)if(255===t){switch(e.getByte()){case 0:break;case 255:e.skip(-1);break;case 217:i=!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:(r=e.getUint16())>2?e.skip(r-2):e.skip(-2)}if(i)break}var o=e.pos-a;return-1===t?((0,n.warn)("Inline DCTDecode image stream: EOI marker not found, searching for /EI/ instead."),e.skip(-o),this.findDefaultInlineStreamEnd(e)):(this.inlineStreamSkipEI(e),o)}},{key:"findASCII85DecodeInlineStreamEnd",value:function(e){for(var t,r=e.pos;-1!==(t=e.getByte());)if(126===t){var a=e.pos;for(t=e.peekByte();(0,i.isWhiteSpace)(t);)e.skip(),t=e.peekByte();if(62===t){e.skip();break}if(e.pos>a){var o=e.peekBytes(2);if(69===o[0]&&73===o[1])break}}var s=e.pos-r;return-1===t?((0,n.warn)("Inline ASCII85Decode image stream: EOD marker not found, searching for /EI/ instead."),e.skip(-s),this.findDefaultInlineStreamEnd(e)):(this.inlineStreamSkipEI(e),s)}},{key:"findASCIIHexDecodeInlineStreamEnd",value:function(e){for(var t,r=e.pos;-1!==(t=e.getByte())&&62!==t;);var a=e.pos-r;return-1===t?((0,n.warn)("Inline ASCIIHexDecode image stream: EOD marker not found, searching for /EI/ instead."),e.skip(-a),this.findDefaultInlineStreamEnd(e)):(this.inlineStreamSkipEI(e),a)}},{key:"inlineStreamSkipEI",value:function(e){for(var t,r=0;-1!==(t=e.getByte());)if(0===r)r=69===t?1:0;else if(1===r)r=73===t?2:0;else if(2===r)break}},{key:"makeInlineImage",value:function(e){for(var t,r=this.lexer,i=r.stream,o=Object.create(null);!(0,a.isCmd)(this.buf1,"ID")&&this.buf1!==a.EOF;){if(!(this.buf1 instanceof a.Name))throw new n.FormatError("Dictionary key must be a name object");var s=this.buf1.name;if(this.shift(),this.buf1===a.EOF)break;o[s]=this.getObj(e)}-1!==r.beginInlineImagePos&&(t=i.pos-r.beginInlineImagePos);var c,u=this.xref.fetchIfRef(o.F||o.Filter);if(u instanceof a.Name)c=u.name;else if(Array.isArray(u)){var l=this.xref.fetchIfRef(u[0]);l instanceof a.Name&&(c=l.name)}var h,f,d=i.pos;switch(c){case"DCT":case"DCTDecode":h=this.findDCTDecodeInlineStreamEnd(i);break;case"A85":case"ASCII85Decode":h=this.findASCII85DecodeInlineStreamEnd(i);break;case"AHx":case"ASCIIHexDecode":h=this.findASCIIHexDecodeInlineStreamEnd(i);break;default:h=this.findDefaultInlineStreamEnd(i)}if(h<1e3&&t>0){var p=i.pos;i.pos=r.beginInlineImagePos,f=function(e){for(var t=[],r=e.length,n=0;n=n)return r.pos+=o,r.pos-e;o++}r.pos+=i}return-1}},{key:"makeStream",value:function(e,t){var r=this.lexer,o=r.stream;r.skipToNextLine();var s=o.pos-1,c=e.get("Length");if(Number.isInteger(c)||((0,n.info)('Bad length "'.concat(c&&c.toString(),'" in stream.')),c=0),o.pos=s+c,r.nextChar(),this.tryShift()&&(0,a.isCmd)(this.buf2,"endstream"))this.shift();else{var u=new Uint8Array([101,110,100,115,116,114,101,97,109]),l=this._findStreamLength(s,u);if(l<0){for(var h=1;h<=1;h++){var f=u.length-h,d=u.slice(0,f),p=this._findStreamLength(s,d);if(p>=0){var g=o.peekBytes(f+1)[f];if(!(0,i.isWhiteSpace)(g))break;(0,n.info)('Found "'.concat((0,n.bytesToString)(d),'" when searching for endstream command.')),l=p;break}}if(l<0)throw new n.FormatError("Missing endstream command.")}c=l,r.nextChar(),this.shift(),this.shift()}return this.shift(),o=o.makeSubStream(s,c,e),t&&(o=t.createStream(o,c)),(o=this.filter(o,e,c)).dict=e,o}},{key:"filter",value:function(e,t,r){var i=t.get("F","Filter"),o=t.get("DP","DecodeParms");if(i instanceof a.Name)return Array.isArray(o)&&(0,n.warn)("/DecodeParms should not be an Array, when /Filter is a Name."),this.makeFilter(e,i.name,r,o);var s=r;if(Array.isArray(i))for(var c=i,u=o,l=0,h=c.length;l=48&&e<=57?15&e:e>=65&&e<=70||e>=97&&e<=102?9+(15&e):-1}var w=function(){function e(t){M(this,e);var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.stream=t,this.nextChar(),this.strBuf=[],this.knownCommands=r,this._hexStringNumWarn=0,this.beginInlineImagePos=-1}return P(e,[{key:"nextChar",value:function(){return this.currentChar=this.stream.getByte()}},{key:"peekChar",value:function(){return this.stream.peekByte()}},{key:"getNumber",value:function(){var e=this.currentChar,t=!1,r=0,a=1;if(45===e?(a=-1,45===(e=this.nextChar())&&(e=this.nextChar())):43===e&&(e=this.nextChar()),10===e||13===e)do{e=this.nextChar()}while(10===e||13===e);if(46===e&&(r=10,e=this.nextChar()),e<48||e>57){var o="Invalid number: ".concat(String.fromCharCode(e)," (charCode ").concat(e,")");if((0,i.isWhiteSpace)(e)||-1===e)return(0,n.info)('Lexer.getNumber - "'.concat(o,'".')),0;throw new n.FormatError(o)}for(var s=e-48,c=0,u=1;(e=this.nextChar())>=0;)if(e>=48&&e<=57){var l=e-48;t?c=10*c+l:(0!==r&&(r*=10),s=10*s+l)}else if(46===e){if(0!==r)break;r=1}else if(45===e)(0,n.warn)("Badly formatted number: minus sign in the middle");else{if(69!==e&&101!==e)break;if(43===(e=this.peekChar())||45===e)u=45===e?-1:1,this.nextChar();else if(e<48||e>57)break;t=!0}return 0!==r&&(s/=r),t&&(s*=Math.pow(10,u*c)),a*s}},{key:"getString",value:function(){var e=1,t=!1,r=this.strBuf;r.length=0;for(var a=this.nextChar();;){var i=!1;switch(0|a){case-1:(0,n.warn)("Unterminated string"),t=!0;break;case 40:++e,r.push("(");break;case 41:0==--e?(this.nextChar(),t=!0):r.push(")");break;case 92:switch(a=this.nextChar()){case-1:(0,n.warn)("Unterminated string"),t=!0;break;case 110:r.push("\n");break;case 114:r.push("\r");break;case 116:r.push("\t");break;case 98:r.push("\b");break;case 102:r.push("\f");break;case 92:case 40:case 41:r.push(String.fromCharCode(a));break;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:var o=15&a;i=!0,(a=this.nextChar())>=48&&a<=55&&(o=(o<<3)+(15&a),(a=this.nextChar())>=48&&a<=55&&(i=!1,o=(o<<3)+(15&a))),r.push(String.fromCharCode(o));break;case 13:10===this.peekChar()&&this.nextChar();break;case 10:break;default:r.push(String.fromCharCode(a))}break;default:r.push(String.fromCharCode(a))}if(t)break;i||(a=this.nextChar())}return r.join("")}},{key:"getName",value:function(){var e,t,r=this.strBuf;for(r.length=0;(e=this.nextChar())>=0&&!y[e];)if(35===e){if(e=this.nextChar(),y[e]){(0,n.warn)("Lexer_getName: NUMBER SIGN (#) should be followed by a hexadecimal number."),r.push("#");break}var i=b(e);if(-1!==i){t=e;var o=b(e=this.nextChar());if(-1===o){if((0,n.warn)("Lexer_getName: Illegal digit (".concat(String.fromCharCode(e),") in hexadecimal number.")),r.push("#",String.fromCharCode(t)),y[e])break;r.push(String.fromCharCode(e));continue}r.push(String.fromCharCode(i<<4|o))}else r.push("#",String.fromCharCode(e))}else r.push(String.fromCharCode(e));return r.length>127&&(0,n.warn)("Name token is longer than allowed by the spec: ".concat(r.length)),a.Name.get(r.join(""))}},{key:"_hexStringWarn",value:function(e){5!=this._hexStringNumWarn++?this._hexStringNumWarn>5||(0,n.warn)("getHexString - ignoring invalid character: ".concat(e)):(0,n.warn)("getHexString - ignoring additional invalid characters.")}},{key:"getHexString",value:function(){var e=this.strBuf;e.length=0;var t,r,a=this.currentChar,i=!0;for(this._hexStringNumWarn=0;;){if(a<0){(0,n.warn)("Unterminated hex string");break}if(62===a){this.nextChar();break}if(1!==y[a]){if(i){if(-1===(t=b(a))){this._hexStringWarn(a),a=this.nextChar();continue}}else{if(-1===(r=b(a))){this._hexStringWarn(a),a=this.nextChar();continue}e.push(String.fromCharCode(t<<4|r))}i=!i,a=this.nextChar()}else a=this.nextChar()}return e.join("")}},{key:"getObj",value:function(){for(var e=!1,t=this.currentChar;;){if(t<0)return a.EOF;if(e)10!==t&&13!==t||(e=!1);else if(37===t)e=!0;else if(1!==y[t])break;t=this.nextChar()}switch(0|t){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 43:case 45:case 46:return this.getNumber();case 40:return this.getString();case 47:return this.getName();case 91:return this.nextChar(),a.Cmd.get("[");case 93:return this.nextChar(),a.Cmd.get("]");case 60:return 60===(t=this.nextChar())?(this.nextChar(),a.Cmd.get("<<")):this.getHexString();case 62:return 62===(t=this.nextChar())?(this.nextChar(),a.Cmd.get(">>")):a.Cmd.get(">");case 123:return this.nextChar(),a.Cmd.get("{");case 125:return this.nextChar(),a.Cmd.get("}");case 41:throw this.nextChar(),new n.FormatError("Illegal character: ".concat(t))}var r=String.fromCharCode(t);if(t<32||t>127){var i=this.peekChar();if(i>=32&&i<=127)return this.nextChar(),a.Cmd.get(r)}for(var o=this.knownCommands,s=void 0!==(null==o?void 0:o[r]);(t=this.nextChar())>=0&&!y[t];){var c=r+String.fromCharCode(t);if(s&&void 0===o[c])break;if(128===r.length)throw new n.FormatError("Command token too long: ".concat(r.length));r=c,s=void 0!==(null==o?void 0:o[r])}return"true"===r||"false"!==r&&("null"===r?null:("BI"===r&&(this.beginInlineImagePos=this.stream.pos),a.Cmd.get(r)))}},{key:"skipToNextLine",value:function(){for(var e=this.currentChar;e>=0;){if(13===e){10===(e=this.nextChar())&&this.nextChar();break}if(10===e){this.nextChar();break}e=this.nextChar()}}}]),e}();t.Lexer=w,t.Linearization=function(){function e(){M(this,e)}return P(e,null,[{key:"create",value:function(e){function t(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=e.get(t);if(Number.isInteger(n)&&(r?n>=0:n>0))return n;throw new Error('The "'.concat(t,'" parameter in the linearization dictionary is invalid.'))}var r,n,i=new m({lexer:new w(e),xref:null}),o=i.getObj(),s=i.getObj(),c=i.getObj(),u=i.getObj();if(!(Number.isInteger(o)&&Number.isInteger(s)&&(0,a.isCmd)(c,"obj")&&u instanceof a.Dict&&"number"==typeof(r=u.get("Linearized"))&&r>0))return null;if((n=t(u,"L"))!==e.length)throw new Error('The "L" parameter in the linearization dictionary does not equal the stream length.');return{length:n,hints:function(e){var t,r=e.get("H");if(Array.isArray(r)&&(2===(t=r.length)||4===t)){for(var n=0;n0))throw new Error("Hint (".concat(n,") in the linearization dictionary is invalid."))}return r}throw new Error("Hint array in the linearization dictionary is invalid.")}(u),objectNumberFirst:t(u,"O"),endFirst:t(u,"E"),numPages:t(u,"N"),mainXRefEntriesOffset:t(u,"T"),pageFirst:u.has("P")?t(u,"P",!0):0}}}]),e}()},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.Ascii85Stream=void 0,r(84),r(93),r(94),r(97),r(99),r(101),r(105),r(108),r(115);var n=r(168),a=r(149),i=function(e){function t(e,r){var n;return M(this,t),r&&(r*=.8),(n=d(this,t,[r])).str=e,n.dict=e.dict,n.input=new Uint8Array(5),n}return y(t,e),P(t,[{key:"readBlock",value:function(){for(var e=this.str,t=e.getByte();(0,a.isWhiteSpace)(t);)t=e.getByte();if(-1!==t&&126!==t){var r,n,i=this.bufferLength;if(122===t){for(r=this.ensureBuffer(i+4),n=0;n<4;++n)r[i+n]=0;this.bufferLength+=4}else{var o=this.input;for(o[0]=t,n=1;n<5;++n){for(t=e.getByte();(0,a.isWhiteSpace)(t);)t=e.getByte();if(o[n]=t,-1===t||126===t)break}if(r=this.ensureBuffer(i+n-1),this.bufferLength+=n-1,n<5){for(;n<5;++n)o[n]=117;this.eof=!0}var s=0;for(n=0;n<5;++n)s=85*s+(o[n]-33);for(n=3;n>=0;--n)r[i+n]=255&s,s>>=8}}else this.eof=!0}}]),t}(n.DecodeStream);t.Ascii85Stream=i},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.StreamsSequenceStream=t.DecodeStream=void 0,r(84),r(93),r(94),r(97),r(99),r(101),r(105),r(108),r(115),r(139);var n=r(151),a=r(154),i=new Uint8Array(0),o=function(e){function t(e){var r;if(M(this,t),(r=d(this,t))._rawMinBufferLength=e||0,r.pos=0,r.bufferLength=0,r.eof=!1,r.buffer=i,r.minBufferLength=512,e)for(;r.minBufferLengthn&&(t=n)}else{for(;!this.eof;)this.readBlock();t=this.bufferLength}return this.pos=t,this.buffer.subarray(r,t)}},{key:"reset",value:function(){this.pos=0}},{key:"makeSubStream",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(void 0===t)for(;!this.eof;)this.readBlock();else for(var n=e+t;this.bufferLength<=n&&!this.eof;)this.readBlock();return new a.Stream(this.buffer,e,t,r)}},{key:"getBaseStreams",value:function(){return this.str?this.str.getBaseStreams():null}}]),t}(n.BaseStream);t.DecodeStream=o,t.StreamsSequenceStream=function(e){function t(e){var r;M(this,t);var n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=0,s=x(e);try{for(s.s();!(n=s.n()).done;){var c=n.value;i+=c instanceof o?c._rawMinBufferLength:c.length}}catch(e){s.e(e)}finally{s.f()}return(r=d(this,t,[i])).streams=e,r._onError=a,r}return y(t,e),P(t,[{key:"readBlock",value:function(){var e=this.streams;if(0!==e.length){var t,r=e.shift();try{t=r.getBytes()}catch(e){var n;if(this._onError)return void this._onError(e,null===(n=r.dict)||void 0===n?void 0:n.objId);throw e}var a=this.bufferLength,i=a+t.length;this.ensureBuffer(i).set(t,a),this.bufferLength=i}else this.eof=!0}},{key:"getBaseStreams",value:function(){var e,t=[],r=x(this.streams);try{for(r.s();!(e=r.n()).done;){var n=e.value.getBaseStreams();n&&t.push.apply(t,f(n))}}catch(e){r.e(e)}finally{r.f()}return t.length>0?t:null}}]),t}(o)},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.AsciiHexStream=void 0;var n=function(e){function t(e,r){var n;return M(this,t),r&&(r*=.5),(n=d(this,t,[r])).str=e,n.dict=e.dict,n.firstDigit=-1,n}return y(t,e),P(t,[{key:"readBlock",value:function(){var e=this.str.getBytes(8e3);if(e.length){var t,r=e.length+1>>1,n=this.ensureBuffer(this.bufferLength+r),a=this.bufferLength,i=this.firstDigit,o=x(e);try{for(o.s();!(t=o.n()).done;){var s=t.value,c=void 0;if(s>=48&&s<=57)c=15&s;else{if(!(s>=65&&s<=70||s>=97&&s<=102)){if(62===s){this.eof=!0;break}continue}c=9+(15&s)}i<0?i=c:(n[a++]=i<<4|c,i=-1)}}catch(e){o.e(e)}finally{o.f()}i>=0&&this.eof&&(n[a++]=i<<4,i=-1),this.firstDigit=i,this.bufferLength=a}else this.eof=!0}}]),t}(r(168).DecodeStream);t.AsciiHexStream=n},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.CCITTFaxStream=void 0;var n=r(171),a=r(168),i=r(150),o=function(e){function t(e,r,a){var o;M(this,t),(o=d(this,t,[r])).str=e,o.dict=e.dict,a instanceof i.Dict||(a=i.Dict.empty);var s={next:function(){return e.getByte()}};return o.ccittFaxDecoder=new n.CCITTFaxDecoder(s,{K:a.get("K"),EndOfLine:a.get("EndOfLine"),EncodedByteAlign:a.get("EncodedByteAlign"),Columns:a.get("Columns"),Rows:a.get("Rows"),EndOfBlock:a.get("EndOfBlock"),BlackIs1:a.get("BlackIs1")}),o}return y(t,e),P(t,[{key:"readBlock",value:function(){for(;!this.eof;){var e=this.ccittFaxDecoder.readNextChar();if(-1===e)return void(this.eof=!0);this.ensureBuffer(this.bufferLength+1),this.buffer[this.bufferLength++]=e}}}]),t}(a.DecodeStream);t.CCITTFaxStream=o},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.CCITTFaxDecoder=void 0,r(2),r(84),r(93),r(94),r(97),r(99),r(101),r(105),r(108),r(115);var n=r(144),a=-1,i=[[-1,-1],[-1,-1],[7,8],[7,7],[6,6],[6,6],[6,5],[6,5],[4,0],[4,0],[4,0],[4,0],[4,0],[4,0],[4,0],[4,0],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2]],o=[[-1,-1],[12,-2],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[11,1792],[11,1792],[12,1984],[12,2048],[12,2112],[12,2176],[12,2240],[12,2304],[11,1856],[11,1856],[11,1920],[11,1920],[12,2368],[12,2432],[12,2496],[12,2560]],s=[[-1,-1],[-1,-1],[-1,-1],[-1,-1],[8,29],[8,29],[8,30],[8,30],[8,45],[8,45],[8,46],[8,46],[7,22],[7,22],[7,22],[7,22],[7,23],[7,23],[7,23],[7,23],[8,47],[8,47],[8,48],[8,48],[6,13],[6,13],[6,13],[6,13],[6,13],[6,13],[6,13],[6,13],[7,20],[7,20],[7,20],[7,20],[8,33],[8,33],[8,34],[8,34],[8,35],[8,35],[8,36],[8,36],[8,37],[8,37],[8,38],[8,38],[7,19],[7,19],[7,19],[7,19],[8,31],[8,31],[8,32],[8,32],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,12],[6,12],[6,12],[6,12],[6,12],[6,12],[6,12],[6,12],[8,53],[8,53],[8,54],[8,54],[7,26],[7,26],[7,26],[7,26],[8,39],[8,39],[8,40],[8,40],[8,41],[8,41],[8,42],[8,42],[8,43],[8,43],[8,44],[8,44],[7,21],[7,21],[7,21],[7,21],[7,28],[7,28],[7,28],[7,28],[8,61],[8,61],[8,62],[8,62],[8,63],[8,63],[8,0],[8,0],[8,320],[8,320],[8,384],[8,384],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[7,27],[7,27],[7,27],[7,27],[8,59],[8,59],[8,60],[8,60],[9,1472],[9,1536],[9,1600],[9,1728],[7,18],[7,18],[7,18],[7,18],[7,24],[7,24],[7,24],[7,24],[8,49],[8,49],[8,50],[8,50],[8,51],[8,51],[8,52],[8,52],[7,25],[7,25],[7,25],[7,25],[8,55],[8,55],[8,56],[8,56],[8,57],[8,57],[8,58],[8,58],[6,192],[6,192],[6,192],[6,192],[6,192],[6,192],[6,192],[6,192],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[8,448],[8,448],[8,512],[8,512],[9,704],[9,768],[8,640],[8,640],[8,576],[8,576],[9,832],[9,896],[9,960],[9,1024],[9,1088],[9,1152],[9,1216],[9,1280],[9,1344],[9,1408],[7,256],[7,256],[7,256],[7,256],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[6,16],[6,16],[6,16],[6,16],[6,16],[6,16],[6,16],[6,16],[6,17],[6,17],[6,17],[6,17],[6,17],[6,17],[6,17],[6,17],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[6,14],[6,14],[6,14],[6,14],[6,14],[6,14],[6,14],[6,14],[6,15],[6,15],[6,15],[6,15],[6,15],[6,15],[6,15],[6,15],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7]],c=[[-1,-1],[-1,-1],[12,-2],[12,-2],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[11,1792],[11,1792],[11,1792],[11,1792],[12,1984],[12,1984],[12,2048],[12,2048],[12,2112],[12,2112],[12,2176],[12,2176],[12,2240],[12,2240],[12,2304],[12,2304],[11,1856],[11,1856],[11,1856],[11,1856],[11,1920],[11,1920],[11,1920],[11,1920],[12,2368],[12,2368],[12,2432],[12,2432],[12,2496],[12,2496],[12,2560],[12,2560],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[12,52],[12,52],[13,640],[13,704],[13,768],[13,832],[12,55],[12,55],[12,56],[12,56],[13,1280],[13,1344],[13,1408],[13,1472],[12,59],[12,59],[12,60],[12,60],[13,1536],[13,1600],[11,24],[11,24],[11,24],[11,24],[11,25],[11,25],[11,25],[11,25],[13,1664],[13,1728],[12,320],[12,320],[12,384],[12,384],[12,448],[12,448],[13,512],[13,576],[12,53],[12,53],[12,54],[12,54],[13,896],[13,960],[13,1024],[13,1088],[13,1152],[13,1216],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64]],u=[[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[11,23],[11,23],[12,50],[12,51],[12,44],[12,45],[12,46],[12,47],[12,57],[12,58],[12,61],[12,256],[10,16],[10,16],[10,16],[10,16],[10,17],[10,17],[10,17],[10,17],[12,48],[12,49],[12,62],[12,63],[12,30],[12,31],[12,32],[12,33],[12,40],[12,41],[11,22],[11,22],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[9,15],[9,15],[9,15],[9,15],[9,15],[9,15],[9,15],[9,15],[12,128],[12,192],[12,26],[12,27],[12,28],[12,29],[11,19],[11,19],[11,20],[11,20],[12,34],[12,35],[12,36],[12,37],[12,38],[12,39],[11,21],[11,21],[12,42],[12,43],[10,0],[10,0],[10,0],[10,0],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12]],l=[[-1,-1],[-1,-1],[-1,-1],[-1,-1],[6,9],[6,8],[5,7],[5,7],[4,6],[4,6],[4,6],[4,6],[4,5],[4,5],[4,5],[4,5],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2]];t.CCITTFaxDecoder=function(){function e(t){var r;M(this,e);var n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t||"function"!=typeof t.next)throw new Error('CCITTFaxDecoder - invalid "source" parameter.');for(this.source=t,this.eof=!1,this.encoding=a.K||0,this.eoline=a.EndOfLine||!1,this.byteAlign=a.EncodedByteAlign||!1,this.columns=a.Columns||1728,this.rows=a.Rows||0,this.eoblock=null===(r=a.EndOfBlock)||void 0===r||r,this.black=a.BlackIs1||!1,this.codingLine=new Uint32Array(this.columns+1),this.refLine=new Uint32Array(this.columns+2),this.codingLine[0]=this.columns,this.codingPos=0,this.row=0,this.nextLine2D=this.encoding<0,this.inputBits=0,this.inputBuf=0,this.outputBits=0,this.rowsDone=!1;0===(n=this._lookBits(12));)this._eatBits(1);1===n&&this._eatBits(12),this.encoding>0&&(this.nextLine2D=!this._lookBits(1),this._eatBits(1))}return P(e,[{key:"readNextChar",value:function(){if(this.eof)return-1;var e,t,r,i,o,s=this.refLine,c=this.codingLine,u=this.columns;if(0===this.outputBits){if(this.rowsDone&&(this.eof=!0),this.eof)return-1;var l,h,f;if(this.err=!1,this.nextLine2D){for(i=0;c[i]=64);do{h+=f=this._getWhiteCode()}while(f>=64)}else{do{l+=f=this._getWhiteCode()}while(f>=64);do{h+=f=this._getBlackCode()}while(f>=64)}for(this._addPixels(c[this.codingPos]+l,t),c[this.codingPos]0?--e:++e;s[e]<=c[this.codingPos]&&s[e]0?--e:++e;s[e]<=c[this.codingPos]&&s[e]0?--e:++e;s[e]<=c[this.codingPos]&&s[e]=64);else do{l+=f=this._getWhiteCode()}while(f>=64);this._addPixels(c[this.codingPos]+l,t),t^=1}var d=!1;if(this.byteAlign&&(this.inputBits&=-8),this.eoblock||this.row!==this.rows-1){if(l=this._lookBits(12),this.eoline)for(;l!==a&&1!==l;)this._eatBits(1),l=this._lookBits(12);else for(;0===l;)this._eatBits(1),l=this._lookBits(12);1===l?(this._eatBits(12),d=!0):l===a&&(this.eof=!0)}else this.rowsDone=!0;if(!this.eof&&this.encoding>0&&!this.rowsDone&&(this.nextLine2D=!this._lookBits(1),this._eatBits(1)),this.eoblock&&d&&this.byteAlign){if(1===(l=this._lookBits(12))){if(this._eatBits(12),this.encoding>0&&(this._lookBits(1),this._eatBits(1)),this.encoding>=0)for(i=0;i<4;++i)1!==(l=this._lookBits(12))&&(0,n.info)("bad rtc code: "+l),this._eatBits(12),this.encoding>0&&(this._lookBits(1),this._eatBits(1));this.eof=!0}}else if(this.err&&this.eoline){for(;;){if((l=this._lookBits(13))===a)return this.eof=!0,-1;if(l>>1==1)break;this._eatBits(1)}this._eatBits(12),this.encoding>0&&(this._eatBits(1),this.nextLine2D=!(1&l))}this.outputBits=c[0]>0?c[this.codingPos=0]:c[this.codingPos=1],this.row++}if(this.outputBits>=8)o=1&this.codingPos?0:255,this.outputBits-=8,0===this.outputBits&&c[this.codingPos]r?(o<<=r,1&this.codingPos||(o|=255>>8-r),this.outputBits-=r,r=0):(o<<=this.outputBits,1&this.codingPos||(o|=255>>8-this.outputBits),r-=this.outputBits,this.outputBits=0,c[this.codingPos]0&&(o<<=r,r=0))}while(r)}return this.black&&(o^=255),o}},{key:"_addPixels",value:function(e,t){var r=this.codingLine,a=this.codingPos;e>r[a]&&(e>this.columns&&((0,n.info)("row is wrong length"),this.err=!0,e=this.columns),1&a^t&&++a,r[a]=e),this.codingPos=a}},{key:"_addPixelsNeg",value:function(e,t){var r=this.codingLine,a=this.codingPos;if(e>r[a])e>this.columns&&((0,n.info)("row is wrong length"),this.err=!0,e=this.columns),1&a^t&&++a,r[a]=e;else if(e0&&e=i){var c=r[s-i];if(c[0]===o)return this._eatBits(o),[!0,c[1],!0]}}return[!1,0,!1]}},{key:"_getTwoDimCode",value:function(){var e,t=0;if(this.eoblock){var r;if(t=this._lookBits(7),(null===(r=e=i[t])||void 0===r?void 0:r[0])>0)return this._eatBits(e[0]),e[1]}else{var o=this._findTableCode(1,7,i);if(o[0]&&o[2])return o[1]}return(0,n.info)("Bad two dim code"),a}},{key:"_getWhiteCode",value:function(){var e,t=0;if(this.eoblock){if((t=this._lookBits(12))===a)return 1;if((e=t>>5==0?o[t]:s[t>>3])[0]>0)return this._eatBits(e[0]),e[1]}else{var r=this._findTableCode(1,9,s);if(r[0])return r[1];if((r=this._findTableCode(11,12,o))[0])return r[1]}return(0,n.info)("bad white code"),this._eatBits(1),1}},{key:"_getBlackCode",value:function(){var e,t;if(this.eoblock){if((e=this._lookBits(13))===a)return 1;if((t=e>>7==0?c[e]:e>>9==0&&e>>7!=0?u[(e>>1)-64]:l[e>>7])[0]>0)return this._eatBits(t[0]),t[1]}else{var r=this._findTableCode(2,6,l);if(r[0])return r[1];if((r=this._findTableCode(7,12,u,64))[0])return r[1];if((r=this._findTableCode(10,13,c))[0])return r[1]}return(0,n.info)("bad black code"),this._eatBits(1),1}},{key:"_lookBits",value:function(e){for(var t;this.inputBits>16-e;this.inputBuf=this.inputBuf<<8|t,this.inputBits+=8}return this.inputBuf>>this.inputBits-e&65535>>16-e}},{key:"_eatBits",value:function(e){(this.inputBits-=e)<0&&(this.inputBits=0)}}]),e}()},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.FlateStream=void 0,r(84),r(93),r(94),r(97),r(99),r(101),r(105),r(108),r(115);var n=r(168),a=r(144),i=new Int32Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),o=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]),s=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]),c=[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],u=[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],l=function(e){function t(e,r){var n;M(this,t),(n=d(this,t,[r])).str=e,n.dict=e.dict;var i=e.getByte(),o=e.getByte();if(-1===i||-1===o)throw new a.FormatError("Invalid header in flate stream: ".concat(i,", ").concat(o));if(8!=(15&i))throw new a.FormatError("Unknown compression method in flate stream: ".concat(i,", ").concat(o));if(((i<<8)+o)%31!=0)throw new a.FormatError("Bad FCHECK in flate stream: ".concat(i,", ").concat(o));if(32&o)throw new a.FormatError("FDICT bit set in flate stream: ".concat(i,", ").concat(o));return n.codeSize=0,n.codeBuf=0,n}return y(t,e),P(t,[{key:"getBits",value:function(e){for(var t,r=this.str,n=this.codeSize,i=this.codeBuf;n>e,this.codeSize=n-=e,t}},{key:"getCode",value:function(e){for(var t,r=this.str,n=e[0],i=e[1],o=this.codeSize,s=this.codeBuf;o>16,l=65535&c;if(u<1||o>u,this.codeSize=o-u,l}},{key:"generateHuffmanTable",value:function(e){var t,r=e.length,n=0;for(t=0;tn&&(n=e[t]);for(var a=1<>=1;for(t=l;t>=1)){if(1===h)r=c,n=u;else{if(2!==h)throw new a.FormatError("Unknown block type in flate stream");var f,d=this.getBits(5)+257,p=this.getBits(5)+1,g=this.getBits(4)+4,v=new Uint8Array(i.length);for(f=0;f0;)x[f++]=w}r=this.generateHuffmanTable(x.subarray(0,d)),n=this.generateHuffmanTable(x.subarray(d,k))}for(var C=(e=this.buffer)?e.length:0,O=this.bufferLength;;){var F=this.getCode(r);if(F<256)O+1>=C&&(C=(e=this.ensureBuffer(O+1)).length),e[O++]=F;else{if(256===F)return void(this.bufferLength=O);var I=(F=o[F-=257])>>16;I>0&&(I=this.getBits(I)),t=(65535&F)+I,F=this.getCode(n),(I=(F=s[F])>>16)>0&&(I=this.getBits(I));var T=(65535&F)+I;O+t>=C&&(C=(e=this.ensureBuffer(O+t)).length);for(var M=0;M>>0}var o,s=i(1),c=i(1)?i(1)?i(1)?i(1)?i(1)?i(32)+4436:i(12)+340:i(8)+84:i(6)+20:i(4)+4:i(2);return 0===s?o=c:c>0&&(o=-c),o>=h&&o<=l?o:null}function g(e,t,r){for(var n=e.getContexts("IAID"),a=1,i=0;i=E&&O=P)for($=$<<1&v,h=0;h=0&&I=0&&(T=B[F][I])&&($|=T<=e?R<<=1:R=R<<1|A[E][P];for(h=0;h=x||P<0||P>=w?R<<=1:R=R<<1|n[E][P];var N=C.readBit(O,R);T[M]=N}}return A}function C(e,t,r,n,a,i,o,c,u,l,h,f,d,v,m,y,b,w,k){if(e&&t)throw new s("refinement with Huffman is not supported");var x,S,C=[];for(x=0;x1&&(P=e?k.readBits(w):p(I,"IAIT",F));var R=o*T+P,N=e?v.symbolIDTable.decode(k):g(I,F,u),D=t&&(e?k.readBit():p(I,"IARI",F)),B=c[N],L=B[0].length,_=B.length;if(D){var j=p(I,"IARDW",F),U=p(I,"IARDH",F);B=A(L+=j,_+=U,m,B,(j>>1)+p(I,"IARDX",F),(U>>1)+p(I,"IARDY",F),!1,y,b)}var $=R-(1&f?0:_-1),X=E-(2&f?L-1:0),H=void 0,q=void 0,z=void 0;if(l){for(H=0;H<_;H++)if(S=C[X+H]){z=B[H];var G=Math.min(r-$,L);switch(d){case 0:for(q=0;q>5&7,l=[31&c],h=t+6;if(7===c){u=536870911&(0,a.readUint32)(e,h-1),h+=3;var f=u+7>>3;for(l[0]=e[h++];--f>0;)l.push(e[h++])}else if(5===c||6===c)throw new s("invalid referred-to flags");r.retainBits=l;var d=4;r.number<=256?d=1:r.number<=65536&&(d=2);var p,g,m=[];for(p=0;p>>24&255,k[3]=b.height>>16&255,k[4]=b.height>>8&255,k[5]=255&b.height,p=h,g=e.length;p>2&3,f.huffmanDWSelector=d>>4&3,f.bitmapSizeSelector=d>>6&1,f.aggregationInstancesSelector=d>>7&1,f.bitmapCodingContextUsed=!!(256&d),f.bitmapCodingContextRetained=!!(512&d),f.template=d>>10&3,f.refinementTemplate=d>>12&1,h+=2,!f.huffman){for(o=0===f.template?4:1,n=[],i=0;i>2&3,p.stripSize=1<>4&3,p.transposed=!!(64&g),p.combinationOperator=g>>7&3,p.defaultPixelValue=g>>9&1,p.dsOffset=g<<17>>27,p.refinementTemplate=g>>15&1,p.huffman){var v=(0,a.readUint16)(u,h);h+=2,p.huffmanFS=3&v,p.huffmanDS=v>>2&3,p.huffmanDT=v>>4&3,p.huffmanRefinementDW=v>>6&3,p.huffmanRefinementDH=v>>8&3,p.huffmanRefinementDX=v>>10&3,p.huffmanRefinementDY=v>>12&3,p.huffmanRefinementSizeSelector=!!(16384&v)}if(p.refinement&&!p.refinementTemplate){for(n=[],i=0;i<2;i++)n.push({x:(0,a.readInt8)(u,h),y:(0,a.readInt8)(u,h+1)}),h+=2;p.refinementAt=n}p.numberOfSymbolInstances=(0,a.readUint32)(u,h),h+=4,r=[p,c.referredTo,u,h,l];break;case 16:var m={},y=u[h++];m.mmr=!!(1&y),m.template=y>>1&3,m.patternWidth=u[h++],m.patternHeight=u[h++],m.maxPatternIndex=(0,a.readUint32)(u,h),h+=4,r=[m,c.number,u,h,l];break;case 22:case 23:var b={};b.info=I(u,h),h+=T;var w=u[h++];b.mmr=!!(1&w),b.template=w>>1&3,b.enableSkip=!!(8&w),b.combinationOperator=w>>4&7,b.defaultPixelValue=w>>7&1,b.gridWidth=(0,a.readUint32)(u,h),h+=4,b.gridHeight=(0,a.readUint32)(u,h),h+=4,b.gridOffsetX=4294967295&(0,a.readUint32)(u,h),h+=4,b.gridOffsetY=4294967295&(0,a.readUint32)(u,h),h+=4,b.gridVectorX=(0,a.readUint16)(u,h),h+=2,b.gridVectorY=(0,a.readUint16)(u,h),h+=2,r=[b,c.referredTo,u,h,l];break;case 38:case 39:var k={};k.info=I(u,h),h+=T;var x=u[h++];if(k.mmr=!!(1&x),k.template=x>>1&3,k.prediction=!!(8&x),!k.mmr){for(o=0===k.template?4:1,n=[],i=0;i>2&1,S.combinationOperator=A>>3&3,S.requiresBuffer=!!(32&A),S.combinationOperatorOverride=!!(64&A),r=[S];break;case 49:case 50:case 51:case 62:break;case 53:r=[c.number,u,h,l];break;default:throw new s("segment type ".concat(c.typeName,"(").concat(c.type,") is not implemented"))}var C="on"+c.typeName;C in t&&t[C].apply(t,r)}function R(e,t){for(var r=0,n=e.length;r>3,r=new Uint8ClampedArray(t*e.height);e.defaultPixelValue&&r.fill(255),this.buffer=r}},{key:"drawBitmap",value:function(e,t){var r,n,a,i,o=this.currentPageInfo,c=e.width,u=e.height,l=o.width+7>>3,h=o.combinationOperatorOverride?e.combinationOperator:o.combinationOperator,f=this.buffer,d=128>>(7&e.x),p=e.y*l+(e.x>>3);switch(h){case 0:for(r=0;r>=1)||(a=128,i++);p+=l}break;case 2:for(r=0;r>=1)||(a=128,i++);p+=l}break;default:throw new s("operator ".concat(h," is not supported"))}}},{key:"onImmediateGenericRegion",value:function(e,t,r,n){var a=e.info,i=new u(t,r,n),o=S(e.mmr,a.width,a.height,e.template,e.prediction,null,e.at,i);this.drawBitmap(a,o)}},{key:"onImmediateLosslessGenericRegion",value:function(){this.onImmediateGenericRegion.apply(this,arguments)}},{key:"onSymbolDictionary",value:function(e,t,r,n,i,o){var c,l;e.huffman&&(c=function(e,t,r){var n,a,i,o=0;switch(e.huffmanDHSelector){case 0:case 1:n=j(e.huffmanDHSelector+4);break;case 3:n=$(o,t,r),o++;break;default:throw new s("invalid Huffman DH selector")}switch(e.huffmanDWSelector){case 0:case 1:a=j(e.huffmanDWSelector+2);break;case 3:a=$(o,t,r),o++;break;default:throw new s("invalid Huffman DW selector")}return e.bitmapSizeSelector?(i=$(o,t,r),o++):i=j(1),{tableDeltaHeight:n,tableDeltaWidth:a,tableBitmapSize:i,tableAggregateInstances:e.aggregationInstancesSelector?$(o,t,r):j(1)}}(e,r,this.customTables),l=new U(n,i,o));var h=this.symbols;h||(this.symbols=h={});var d,v=[],m=x(r);try{for(m.s();!(d=m.n()).done;){var y=h[d.value];y&&v.push.apply(v,f(y))}}catch(e){m.e(e)}finally{m.f()}var b=new u(n,i,o);h[t]=function(e,t,r,n,i,o,c,u,l,h,f,d){if(e&&t)throw new s("symbol refinement with Huffman is not supported");var v,m,y=[],b=0,w=(0,a.log2)(r.length+n),k=f.decoder,x=f.contextCache;for(e&&(v=j(1),m=[],w=Math.max(w,1));y.length1)M=C(e,t,O,b,0,E,1,r.concat(y),w,0,0,1,0,o,l,h,f,0,d);else{var P=g(x,k,w),R=p(x,"IARDX",k),N=p(x,"IARDY",k);M=A(O,b,l,P=32){var f=void 0,d=void 0,p=void 0;switch(h){case 32:if(0===l)throw new s("no previous value in symbol ID table");d=a.readBits(2)+3,f=i[l-1].prefixLength;break;case 33:d=a.readBits(3)+3,f=0;break;case 34:d=a.readBits(7)+11,f=0;break;default:throw new s("invalid code length in symbol ID table")}for(p=0;p=0;m--)T=e?H(I,l,h,!0):S(!1,l,h,r,!1,null,F,v),j[m]=T;for(M=0;M=0;y--)R|=(P^=j[y][M][E])<>8,(D=f+M*g+E*p>>8)>=0&&D+A<=n&&B>=0&&B+C<=i)for(m=0;m=i))for(_=w[X],L=N[m],y=0;y=0&&$>1&7),h=1+(o>>4&7),f=[],d=s;do{n=u.readBits(l),i=u.readBits(h),f.push(new D([d,n,i,0])),d+=1<>r&1;if(r<=0)this.children[n]=new e(t);else{var a=this.children[n];a||(this.children[n]=a=new e(null)),a.buildTree(t,r-1)}}},{key:"decodeNode",value:function(e){if(this.isLeaf){if(this.isOOB)return null;var t=e.readBits(this.rangeLength);return this.rangeLow+(this.isLowerRange?-t:t)}var r=this.children[e.readBit()];if(!r)throw new s("invalid Huffman data");return r.decodeNode(e)}}]),e}(),L=function(){function e(t,r){M(this,e),r||this.assignPrefixCodes(t),this.rootNode=new B(null);for(var n=0,a=t.length;n0&&this.rootNode.buildTree(i,i.prefixLength-1)}}return P(e,[{key:"decode",value:function(e){return this.rootNode.decodeNode(e)}},{key:"assignPrefixCodes",value:function(e){for(var t=e.length,r=0,n=0;n=this.end)throw new s("end of data while reading bit");this.currentByte=this.data[this.position++],this.shift=7}var e=this.currentByte>>this.shift&1;return this.shift--,e}},{key:"readBits",value:function(e){var t,r=0;for(t=e-1;t>=0;t--)r|=this.readBit()<=this.end?-1:this.data[this.position++]}}]),e}();function $(e,t,r){for(var n=0,a=0,i=t.length;a>f&1,f--}if(n&&!u)for(var p=0;p<5&&-1!==s.readNextChar();p++);return c}t.Jbig2Image=function(){function e(){M(this,e)}return P(e,[{key:"parseChunks",value:function(e){return function(e){for(var t=new N,r=0,n=e.length;r>9&127,this.clow=this.clow<<7&65535,this.ct-=7,this.a=32768}return P(e,[{key:"byteIn",value:function(){var e=this.data,t=this.bp;255===e[t]?e[t+1]>143?(this.clow+=65280,this.ct=8):(t++,this.clow+=e[t]<<9,this.ct=7,this.bp=t):(t++,this.clow+=t65535&&(this.chigh+=this.clow>>16,this.clow&=65535)}},{key:"readBit",value:function(e,t){var n,a=e[t]>>1,i=1&e[t],o=r[a],s=o.qe,c=this.a-s;if(this.chigh>15&1,this.clow=this.clow<<1&65535,this.ct--}while(0==(32768&c));return this.a=c,e[t]=a<<1|i,n}}]),e}()},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.JpegStream=void 0,r(84),r(93),r(94),r(97),r(99),r(101),r(105),r(108),r(115);var n=r(168),a=r(150),i=r(177),o=r(144),s=function(e){function t(e,r,n){var a,i;for(M(this,t);-1!==(i=e.getByte());)if(255===i){e.skip(-1);break}return(a=d(this,t,[r])).stream=e,a.dict=e.dict,a.maybeLength=r,a.params=n,a}return y(t,e),P(t,[{key:"bytes",get:function(){return(0,o.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))}},{key:"ensureBuffer",value:function(e){}},{key:"readBlock",value:function(){if(!this.eof){var e={decodeTransform:void 0,colorTransform:void 0},t=this.dict.getArray("D","Decode");if((this.forceRGBA||this.forceRGB)&&Array.isArray(t)){for(var r=this.dict.get("BPC","BitsPerComponent")||8,n=t.length,o=new Int32Array(n),s=!1,c=(1<0&&!e[i-1];)i--;var o,s=[{children:[],index:0}],c=s[0];for(r=0;r0;)c=s.pop();for(c.index++,s.push(c);s.length<=r;)s.push(o={children:[],index:0}),c.children[c.index]=o.children,c=o;a++}r+19&&void 0!==arguments[9]&&arguments[9],v=r.mcusPerLine,m=r.progressive,y=t,b=0,w=0;function x(){if(w>0)return w--,b>>w&1;if(255===(b=e[t++])){var n=e[t++];if(n){if(220===n&&g){t+=2;var a=(0,i.readUint16)(e,t);if(t+=2,a>0&&a!==r.scanLines)throw new s("Found DNL marker (0xFFDC) while parsing scan data",a)}else if(217===n){if(g){var u=M*(8===r.precision?8:0);if(u>0&&Math.round(r.scanLines/u)>=5)throw new s("Found EOI marker (0xFFD9) while parsing scan data, possibly caused by incorrect `scanLines` parameter",u)}throw new c("Found EOI marker (0xFFD9) while parsing scan data")}throw new o("unexpected marker ".concat((b<<8|n).toString(16)))}}return w=7,b>>>7}function S(e){for(var t=e;;){switch(N(t=t[x()])){case"number":return t;case"object":continue}throw new o("invalid huffman sequence")}}function A(e){for(var t=0;e>0;)t=t<<1|x(),e--;return t}function C(e){if(1===e)return 1===x()?1:-1;var t=A(e);return t>=1<0)I--;else for(var r=h,n=f;r<=n;){var a=S(e.huffmanTableAC),i=15&a,o=a>>4;if(0!==i){var s=u[r+=o];e.blockData[t+s]=C(i)*(1<>4,0==(r=15&n))s<15?(I=A(s)+(1<>4;if(0!==o){var c=u[a+=s];e.blockData[t+c]=C(o),a++}else{if(s<15)break;a+=16}}};for(var $,X,H,q=0,z=1===U?a[0].blocksPerLine*a[0].blocksPerColumn:v*r.mcusPerColumn;q<=z;){var G=l?Math.min(z-q,l):z;if(G>0){for(D=0;D0?"unexpected":"excessive";(0,n.warn)("decodeScan - ".concat(W," MCU data, current marker is: ").concat($.invalid)),t=$.offset}if(!($.marker>=65488&&$.marker<=65495))break;t+=2}return t-y}function A(e,t,r){var n,a,i,s,c,u,d,y,w,k,x,S,A,C,O,F,I,T=e.quantizationTable,M=e.blockData;if(!T)throw new o("missing required Quantization Table.");for(var E=0;E<64;E+=8)w=M[t+E],k=M[t+E+1],x=M[t+E+2],S=M[t+E+3],A=M[t+E+4],C=M[t+E+5],O=M[t+E+6],F=M[t+E+7],w*=T[E],0!=(k|x|S|A|C|O|F)?(k*=T[E+1],x*=T[E+2],S*=T[E+3],A*=T[E+4],C*=T[E+5],O*=T[E+6],F*=T[E+7],a=(n=(n=m*w+128>>8)+(a=m*A+128>>8)+1>>1)-a,I=(i=x)*v+(s=O)*g+128>>8,i=i*g-s*v+128>>8,d=(c=(c=b*(k-F)+128>>8)+(d=C<<4)+1>>1)-d,u=(y=(y=b*(k+F)+128>>8)+(u=S<<4)+1>>1)-u,s=(n=n+(s=I)+1>>1)-s,i=(a=a+i+1>>1)-i,I=c*p+y*f+2048>>12,c=c*f-y*p+2048>>12,y=I,I=u*h+d*l+2048>>12,u=u*l-d*h+2048>>12,d=I,r[E]=n+y,r[E+7]=n-y,r[E+1]=a+d,r[E+6]=a-d,r[E+2]=i+u,r[E+5]=i-u,r[E+3]=s+c,r[E+4]=s-c):(I=m*w+512>>10,r[E]=I,r[E+1]=I,r[E+2]=I,r[E+3]=I,r[E+4]=I,r[E+5]=I,r[E+6]=I,r[E+7]=I);for(var P=0;P<8;++P)w=r[P],0!=((k=r[P+8])|(x=r[P+16])|(S=r[P+24])|(A=r[P+32])|(C=r[P+40])|(O=r[P+48])|(F=r[P+56]))?(a=(n=4112+((n=m*w+2048>>12)+(a=m*A+2048>>12)+1>>1))-a,I=(i=x)*v+(s=O)*g+2048>>12,i=i*g-s*v+2048>>12,s=I,d=(c=(c=b*(k-F)+2048>>12)+(d=C)+1>>1)-d,u=(y=(y=b*(k+F)+2048>>12)+(u=S)+1>>1)-u,I=c*p+y*f+2048>>12,c=c*f-y*p+2048>>12,y=I,I=u*h+d*l+2048>>12,u=u*l-d*h+2048>>12,(w=(n=n+s+1>>1)+y)<16?w=0:w>=4080?w=255:w>>=4,(k=(a=a+i+1>>1)+(d=I))<16?k=0:k>=4080?k=255:k>>=4,(x=(i=a-i)+u)<16?x=0:x>=4080?x=255:x>>=4,(S=(s=n-s)+c)<16?S=0:S>=4080?S=255:S>>=4,(A=s-c)<16?A=0:A>=4080?A=255:A>>=4,(C=i-u)<16?C=0:C>=4080?C=255:C>>=4,(O=a-d)<16?O=0:O>=4080?O=255:O>>=4,(F=n-y)<16?F=0:F>=4080?F=255:F>>=4,M[t+P]=w,M[t+P+8]=k,M[t+P+16]=x,M[t+P+24]=S,M[t+P+32]=A,M[t+P+40]=C,M[t+P+48]=O,M[t+P+56]=F):(I=(I=m*w+8192>>14)<-2040?0:I>=2024?255:I+2056>>4,M[t+P]=I,M[t+P+8]=I,M[t+P+16]=I,M[t+P+24]=I,M[t+P+32]=I,M[t+P+40]=I,M[t+P+48]=I,M[t+P+56]=I)}function C(e,t){for(var r=t.blocksPerLine,n=t.blocksPerColumn,a=new Int16Array(64),i=0;i2&&void 0!==arguments[2]?arguments[2]:t,n=e.length-1,a=r=n)return null;var o=(0,i.readUint16)(e,t);if(o>=65472&&o<=65534)return{invalid:null,marker:o,offset:t};for(var s=(0,i.readUint16)(e,a);!(s>=65472&&s<=65534);){if(++a>=n)return null;s=(0,i.readUint16)(e,a)}return{invalid:o.toString(16),marker:s,offset:a}}t.JpegImage=function(){function e(){M(this,e);var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.decodeTransform,n=void 0===r?null:r,a=t.colorTransform,i=void 0===a?-1:a;this._decodeTransform=n,this._colorTransform=i}return P(e,[{key:"parse",value:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).dnlScanLines,r=void 0===t?null:t;function a(){var t=(0,i.readUint16)(e,d),r=(d+=2)+t-2,a=O(e,r,d);null!=a&&a.invalid&&((0,n.warn)("readDataBlock - incorrect length, current marker is: "+a.invalid),r=a.offset);var o=e.subarray(d,r);return d+=o.length,o}function l(e){var t,r=Math.ceil(e.samplesPerLine/8/e.maxH),n=Math.ceil(e.scanLines/8/e.maxV),a=x(e.components);try{for(a.s();!(t=a.n()).done;){var i=t.value,o=Math.ceil(Math.ceil(e.samplesPerLine/8)*i.h/e.maxH),s=Math.ceil(Math.ceil(e.scanLines/8)*i.v/e.maxV),c=r*i.h,u=n*i.v*64*(c+1);i.blockData=new Int16Array(u),i.blocksPerLine=o,i.blocksPerColumn=s}}catch(e){a.e(e)}finally{a.f()}e.mcusPerLine=r,e.mcusPerColumn=n}var h,f,d=0,p=null,g=null,v=0,m=[],y=[],b=[],k=(0,i.readUint16)(e,d);if(d+=2,65496!==k)throw new o("SOI not found");k=(0,i.readUint16)(e,d),d+=2;e:for(;65497!==k;){var A=void 0,F=void 0,I=void 0;switch(k){case 65504:case 65505:case 65506:case 65507:case 65508:case 65509:case 65510:case 65511:case 65512:case 65513:case 65514:case 65515:case 65516:case 65517:case 65518:case 65519:case 65534:var T=a();65504===k&&74===T[0]&&70===T[1]&&73===T[2]&&70===T[3]&&0===T[4]&&(p={version:{major:T[5],minor:T[6]},densityUnits:T[7],xDensity:T[8]<<8|T[9],yDensity:T[10]<<8|T[11],thumbWidth:T[12],thumbHeight:T[13],thumbData:T.subarray(14,14+3*T[12]*T[13])}),65518===k&&65===T[0]&&100===T[1]&&111===T[2]&&98===T[3]&&101===T[4]&&(g={version:T[5]<<8|T[6],flags0:T[7]<<8|T[8],flags1:T[9]<<8|T[10],transformCode:T[11]});break;case 65499:for(var M=(0,i.readUint16)(e,d)+(d+=2)-2;d>4==0)for(F=0;F<64;F++)P[u[F]]=e[d++];else{if(E>>4!=1)throw new o("DQT - invalid table spec");for(F=0;F<64;F++)P[u[F]]=(0,i.readUint16)(e,d),d+=2}m[15&E]=P}break;case 65472:case 65473:case 65474:if(h)throw new o("Only single frame JPEGs supported");d+=2,(h={}).extended=65473===k,h.progressive=65474===k,h.precision=e[d++];var R=(0,i.readUint16)(e,d);d+=2,h.scanLines=r||R,h.samplesPerLine=(0,i.readUint16)(e,d),d+=2,h.components=[],h.componentIds={};var N=e[d++],D=0,B=0;for(A=0;A>4,j=15&e[d+1];D<_&&(D=_),B>4==0?b:y)[15&X]=w(H,z)}break;case 65501:d+=2,f=(0,i.readUint16)(e,d),d+=2;break;case 65498:var G=1==++v&&!r;d+=2;var W=e[d++],V=[];for(A=0;A>4],J.huffmanTableAC=y[15&Z],V.push(J)}var Q=e[d++],ee=e[d++],te=e[d++];try{var re=S(e,d,h,V,f,Q,ee,te>>4,15&te,G);d+=re}catch(r){if(r instanceof s)return(0,n.warn)("".concat(r.message," -- attempting to re-parse the JPEG image.")),this.parse(e,{dnlScanLines:r.scanLines});if(r instanceof c){(0,n.warn)("".concat(r.message," -- ignoring the rest of the image data."));break e}throw r}break;case 65500:d+=4;break;case 65535:255!==e[d]&&d--;break;default:var ne=O(e,d-2,d-3);if(null!=ne&&ne.invalid){(0,n.warn)("JpegImage.parse - unexpected data, current marker is: "+ne.invalid),d=ne.offset;break}if(!ne||d>=e.length-1){(0,n.warn)("JpegImage.parse - reached the end of the image data without finding an EOI marker (0xFFD9).");break e}throw new o("JpegImage.parse - unknown marker: "+k.toString(16))}k=(0,i.readUint16)(e,d),d+=2}this.width=h.samplesPerLine,this.height=h.scanLines,this.jfif=p,this.adobe=g,this.components=[];var ae,ie=x(h.components);try{for(ie.s();!(ae=ie.n()).done;){var oe=ae.value,se=m[oe.quantizationId];se&&(oe.quantizationTable=se),this.components.push({index:oe.index,output:C(0,oe),scaleX:oe.h/h.maxH,scaleY:oe.v/h.maxV,blocksPerLine:oe.blocksPerLine,blocksPerColumn:oe.blocksPerColumn})}}catch(e){ie.e(e)}finally{ie.f()}this.numComponents=this.components.length}},{key:"_getLinearizedBlockData",value:function(e,t){var r,n,a,i,o,s,c,u,l,h,f,d,p=arguments.length>2&&void 0!==arguments[2]&&arguments[2],g=this.width/e,v=this.height/t,m=0,y=this.components.length,b=e*t*y,w=new Uint8ClampedArray(b),k=new Uint32Array(e),x=4294967288;for(c=0;c>8)+S[l+1];return w}},{key:"_isColorConversionNeeded",get:function(){return this.adobe?!!this.adobe.transformCode:3===this.numComponents?0!==this._colorTransform&&(82!==this.components[0].index||71!==this.components[1].index||66!==this.components[2].index):1===this._colorTransform}},{key:"_convertYccToRgb",value:function(e){for(var t,r,n,a=0,i=e.length;a4)throw new o("Unsupported color mode");var h=this._getLinearizedBlockData(t,r,l);if(1===this.numComponents&&(i||c)){var f=h.length*(i?4:3),d=new Uint8ClampedArray(f),p=0;if(i)(0,a.grayToRGBA)(h,new Uint32Array(d.buffer));else{var g,v=x(h);try{for(v.s();!(g=v.n()).done;){var m=g.value;d[p++]=m,d[p++]=m,d[p++]=m}}catch(e){v.e(e)}finally{v.f()}}return d}if(3===this.numComponents&&this._isColorConversionNeeded){if(i){var y=new Uint8ClampedArray(h.length/3*4);return this._convertYccToRgba(h,y)}return this._convertYccToRgb(h)}if(4===this.numComponents){if(this._isColorConversionNeeded)return i?this._convertYcckToRgba(h):c?this._convertYcckToRgb(h):this._convertYcckToCmyk(h);if(i)return this._convertCmykToRgba(h);if(c)return this._convertCmykToRgb(h)}return h}}]),e}()},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.convertBlackAndWhiteToRGBA=a,t.convertToRGBA=function(e){switch(e.kind){case n.ImageKind.GRAYSCALE_1BPP:return a(e);case n.ImageKind.RGB_24BPP:return function(e){var t=e.src,r=e.srcPos,a=void 0===r?0:r,i=e.dest,o=e.destPos,s=void 0===o?0:o,c=(e.width,e.height,0),u=t.length>>2,l=new Uint32Array(t.buffer,a,u);if(n.FeatureTest.isLittleEndian){for(;c>>24|f<<8|4278190080,i[s+2]=f>>>16|d<<16|4278190080,i[s+3]=d>>>8|4278190080}for(var p=4*c,g=t.length;p>>8|255,i[s+2]=m<<16|y>>>16|255,i[s+3]=y<<8|255}for(var b=4*c,w=t.length;b>3,m=7&o,y=t.length;i=new Uint32Array(i.buffer);for(var b=0,w=0;w0?Math.min(n.xcb,a.PPx-1):Math.min(n.xcb,a.PPx),a.ycb_=r>0?Math.min(n.ycb,a.PPy-1):Math.min(n.ycb,a.PPy),a}function f(e,t,r){var n=1<t.trx0?Math.ceil(t.trx1/n)-Math.floor(t.trx0/n):0,u=t.try1>t.try0?Math.ceil(t.try1/a)-Math.floor(t.try0/a):0,l=c*u;t.precinctParameters={precinctWidth:n,precinctHeight:a,numprecinctswide:c,numprecinctshigh:u,numprecincts:l,precinctWidthInSubband:o,precinctHeightInSubband:s}}function p(e,t,r){var n,a,i,o,s=r.xcb_,c=r.ycb_,u=1<>s,f=t.tby0>>c,d=t.tbx1+u-1>>s,p=t.tby1+l-1>>c,g=t.resolution.precinctParameters,v=[],m=[];for(a=f;ay.cbxMax&&(y.cbxMax=n),ay.cbyMax&&(y.cbyMax=a)):m[o]=y={cbxMin:n,cbyMin:a,cbxMax:n,cbyMax:a},i.precinct=y}t.codeblockParameters={codeblockWidth:s,codeblockHeight:c,numcodeblockwide:d-h+1,numcodeblockhigh:p-f+1},t.codeblocks=v,t.precincts=m}function g(e,t,r){for(var n=[],a=e.subbands,i=0,o=a.length;ie.codingStyleParameters.decompositionLevelsCount)){for(var t=e.resolutions[l],r=t.precinctParameters.numprecincts;fe.codingStyleParameters.decompositionLevelsCount)){for(var t=e.resolutions[u],r=t.precinctParameters.numprecincts;fe.codingStyleParameters.decompositionLevelsCount)){var i=e.resolutions[r],o=i.precinctParameters.numprecincts;if(!(a>=o)){for(;t=0;--v){var m=c.resolutions[v],y=g*m.precinctParameters.precinctWidth,b=g*m.precinctParameters.precinctHeight;h=Math.min(h,y),f=Math.min(f,b),d=Math.max(d,m.precinctParameters.numprecinctswide),p=Math.max(p,m.precinctParameters.numprecinctshigh),l[v]={width:y,height:b},g<<=1}r=Math.min(r,h),n=Math.min(n,f),a=Math.max(a,d),i=Math.max(i,p),o[s]={resolutions:l,minWidth:h,minHeight:f,maxNumWide:d,maxNumHigh:p}}return{components:o,minWidth:r,minHeight:n,maxNumWide:a,maxNumHigh:i}}function A(e){for(var t=e.SIZ,r=e.currentTile.index,n=e.tiles[r],a=t.Csiz,i=0;i>>(c-=e)&(1<0;){var $=x.shift();void 0===(S=$.codeblock).data&&(S.data=[]),S.data.push({data:t,start:r+o,end:r+o+$.dataLength,codingpasses:$.codingpasses}),o+=$.dataLength}}}return o}function O(e,t,r,n,a,i,s,c,u){for(var l=n.tbx0,h=n.tby0,f=n.tbx1-n.tbx0,d=n.codeblocks,p="H"===n.type.charAt(0)?1:0,g="H"===n.type.charAt(1)?t:0,v=0,m=d.length;v=i?U:U*(1<0?1-y:0));var I=b.subbands[S],T=c[I.type];O(x,w,0,I,p?1:Math.pow(2,d+T-F)*(1+C/2048),l+F-1,p,h,f)}v.push({width:w,height:k,items:x})}var M=g.calculate(v,n.tcx0,n.tcy0);return{left:n.tcx0,top:n.tcy0,width:M.width,height:M.height,items:M.items}}function I(e,t){for(var r=e.SIZ.Csiz,n=e.tiles[t],a=0;a>24&255,c>>16&255,c>>8&255,255&c);(0,a.warn)("Unsupported header type ".concat(c," (").concat(d,")."))}l&&(r+=u)}else this.parseCodestream(e,0,e.length)}},{key:"parseImageProperties",value:function(e){for(var t=e.getByte();t>=0;)if(65361==(t<<8|(t=e.getByte()))){e.skip(4);var r=e.getInt32()>>>0,n=e.getInt32()>>>0,a=e.getInt32()>>>0,i=e.getInt32()>>>0;e.skip(16);var o=e.getUint16();return this.width=r-a,this.height=n-i,this.componentsCount=o,void(this.bitsPerComponent=8)}throw new s("No size marker found in JPX stream")}},{key:"parseCodestream",value:function(e,t,r){var n={},o=!1;try{for(var c=t;c+1>5,p=[];f>3,T.mu=0):(T.epsilon=e[f]>>3,T.mu=(7&e[f])<<8|e[f+1],f+=2),p.push(T)}O.SPqcds=p,n.mainHeader?n.QCD=O:(n.currentTile.QCD=O,n.currentTile.QCC=[]);break;case 65373:y=(0,i.readUint16)(e,c);var M={};f=c+2;var E=void 0;switch(n.SIZ.Csiz<257?E=e[f++]:(E=(0,i.readUint16)(e,f),f+=2),31&(d=e[f++])){case 0:g=8,v=!0;break;case 1:g=16,v=!1;break;case 2:g=16,v=!0;break;default:throw new Error("Invalid SQcd value "+d)}for(M.noQuantization=8===g,M.scalarExpounded=v,M.guardBits=d>>5,p=[];f>3,P.mu=0):(P.epsilon=e[f]>>3,P.mu=(7&e[f])<<8|e[f+1],f+=2),p.push(P)}M.SPqcds=p,n.mainHeader?n.QCC[E]=M:n.currentTile.QCC[E]=M;break;case 65362:y=(0,i.readUint16)(e,c);var R={};f=c+2;var N=e[f++];R.entropyCoderWithCustomPrecincts=!!(1&N),R.sopMarkerUsed=!!(2&N),R.ephMarkerUsed=!!(4&N),R.progressionOrder=e[f++],R.layersCount=(0,i.readUint16)(e,f),f+=2,R.multipleComponentTransform=e[f++],R.decompositionLevelsCount=e[f++],R.xcb=2+(15&e[f++]),R.ycb=2+(15&e[f++]);var D=e[f++];if(R.selectiveArithmeticCodingBypass=!!(1&D),R.resetContextProbabilities=!!(2&D),R.terminationOnEachCodingPass=!!(4&D),R.verticallyStripe=!!(8&D),R.predictableTermination=!!(16&D),R.segmentationSymbolUsed=!!(32&D),R.reversibleTransformation=e[f++],R.entropyCoderWithCustomPrecincts){for(var B=[];f>4})}R.precinctsSizes=B}var _=[];R.selectiveArithmeticCodingBypass&&_.push("selectiveArithmeticCodingBypass"),R.terminationOnEachCodingPass&&_.push("terminationOnEachCodingPass"),R.verticallyStripe&&_.push("verticallyStripe"),R.predictableTermination&&_.push("predictableTermination"),_.length>0&&(o=!0,(0,a.warn)("JPX: Unsupported COD options (".concat(_.join(", "),")."))),n.mainHeader?n.COD=R:(n.currentTile.COD=R,n.currentTile.COC=[]);break;case 65424:y=(0,i.readUint16)(e,c),(m={}).index=(0,i.readUint16)(e,c+2),m.length=(0,i.readUint32)(e,c+4),m.dataEnd=m.length+c-2,m.partIndex=e[c+8],m.partsCount=e[c+9],n.mainHeader=!1,0===m.partIndex&&(m.COD=n.COD,m.COC=n.COC.slice(0),m.QCD=n.QCD,m.QCC=n.QCC.slice(0)),n.currentTile=m;break;case 65427:0===(m=n.currentTile).partIndex&&(I(n,m.index),A(n)),C(n,e,c,y=m.dataEnd-c);break;case 65363:(0,a.warn)("JPX: Codestream code 0xFF53 (COC) is not implemented.");case 65365:case 65367:case 65368:case 65380:y=(0,i.readUint16)(e,c);break;default:throw new Error("Unknown codestream code: "+h.toString(16))}c+=y}}catch(e){if(o||this.failOnCorruptedImage)throw new s(e.message);(0,a.warn)('JPX: Trying to recover from: "'.concat(e.message,'".'))}this.tiles=function(e){for(var t=e.SIZ,r=e.components,n=t.Csiz,a=[],i=0,o=e.tiles.length;i>2);h[w++]=T+b>>d,h[w++]=T>>d,h[w++]=T+y>>d}else for(g=0;g>d,h[w++]=m-.34413*y-.71414*b>>d,h[w++]=m+1.772*y>>d;if(k)for(g=0,w=3;g>d}else for(var M=0;M>d,w+=n}a.push(f)}return a}(n),this.width=n.SIZ.Xsiz-n.SIZ.XOsiz,this.height=n.SIZ.Ysiz-n.SIZ.YOsiz,this.componentsCount=n.SIZ.Csiz}}]),e}();var T=function(){function e(t,r){M(this,e);var n=(0,i.log2)(Math.max(t,r))+1;this.levels=[];for(var a=0;a>=1,t>>=1,n++}n--,(r=this.levels[n]).items[r.index]=a,this.currentLevel=n,delete this.value}},{key:"incrementValue",value:function(){var e=this.levels[this.currentLevel];e.items[e.index]++}},{key:"nextLevel",value:function(){var e=this.currentLevel,t=this.levels[e],r=t.items[t.index];return--e<0?(this.value=r,!1):(this.currentLevel=e,(t=this.levels[e]).items[t.index]=r,!0)}}]),e}(),E=function(){function e(t,r,n){M(this,e);var a=(0,i.log2)(Math.max(t,r))+1;this.levels=[];for(var o=0;or)return this.currentLevel=n,this.propagateValues(),!1;e>>=1,t>>=1,n++}return this.currentLevel=n-1,!0}},{key:"incrementValue",value:function(e){var t=this.levels[this.currentLevel];t.items[t.index]=e+1,this.propagateValues()}},{key:"propagateValues",value:function(){for(var e=this.currentLevel,t=this.levels[e],r=t.items[t.index];--e>=0;)(t=this.levels[e]).items[t.index]=r}},{key:"nextLevel",value:function(){var e=this.currentLevel,t=this.levels[e],r=t.items[t.index];return t.items[t.index]=255,!(--e<0||(this.currentLevel=e,(t=this.levels[e]).items[t.index]=r,0))}}]),e}(),R=function(){function e(t,r,n,a,i){var o;M(this,e),this.width=t,this.height=r,o="HH"===n?e.HHContextLabel:"HL"===n?e.HLContextLabel:e.LLAndLHContextsLabel,this.contextLabelTable=o;var s,c=t*r;this.neighborsSignificance=new Uint8Array(c),this.coefficentsSign=new Uint8Array(c),s=i>14?new Uint32Array(c):i>6?new Uint16Array(c):new Uint8Array(c),this.coefficentsMagnitude=s,this.processingFlags=new Uint8Array(c);var u=new Uint8Array(c);if(0!==a)for(var l=0;l0,c=t+10&&(n=r-i,s&&(a[n-1]+=16),c&&(a[n+1]+=16),a[n]+=4),e+1=r)break;if(o[f]&=-2,!n[f]&&i[f]){var g=c[i[f]];if(e.readBit(s,g)){var v=this.decodeSignBit(p,h,f);a[f]=v,n[f]=1,this.setNeighborsSignificance(p,h,f),o[f]|=2}u[f]++,o[f]|=1}}}},{key:"decodeSignBit",value:function(e,t,r){var n,a,i,o,s,c,u=this.width,l=this.height,h=this.coefficentsMagnitude,f=this.coefficentsSign;o=t>0&&0!==h[r-1],t+10&&0!==h[r-u],e+1=0?(s=9+n,c=this.decoder.readBit(this.contexts,s)):(s=9-n,c=1^this.decoder.readBit(this.contexts,s)),c}},{key:"runMagnitudeRefinementPass",value:function(){for(var e,t=this.decoder,r=this.width,n=this.height,a=this.coefficentsMagnitude,i=this.neighborsSignificance,o=this.contexts,s=this.bitsDecoded,c=this.processingFlags,u=r*n,l=4*r,h=0;h>1,c=-1.586134342059924,u=-.052980118572961,l=.882911075530934,h=.443506852043971,f=1.230174104914001;for(n=(t|=0)-3,a=s+4;a--;n+=2)e[n]*=.8128930661159609;for(i=h*e[(n=t-2)-1],a=s+3;a--&&(o=h*e[n+1],e[n]=f*e[n]-i-o,a--);n+=2)i=h*e[(n+=2)+1],e[n]=f*e[n]-i-o;for(i=l*e[(n=t-1)-1],a=s+2;a--&&(o=l*e[n+1],e[n]-=i+o,a--);n+=2)i=l*e[(n+=2)+1],e[n]-=i+o;for(i=u*e[(n=t)-1],a=s+1;a--&&(o=u*e[n+1],e[n]-=i+o,a--);n+=2)i=u*e[(n+=2)+1],e[n]-=i+o;if(0!==s)for(i=c*e[(n=t+1)-1],a=s;a--&&(o=c*e[n+1],e[n]-=i+o,a--);n+=2)i=c*e[(n+=2)+1],e[n]-=i+o}}]),t}(N),B=function(e){function t(){return M(this,t),d(this,t,arguments)}return y(t,e),P(t,[{key:"filter",value:function(e,t,r){var n,a,i=r>>1;for(n=t|=0,a=i+1;a--;n+=2)e[n]-=e[n-1]+e[n+1]+2>>2;for(n=t+1,a=i;a--;n+=2)e[n]+=e[n-1]+e[n+1]>>1}}]),t}(N)},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.LZWStream=void 0,r(84),r(93),r(94),r(97),r(99),r(101),r(105),r(108),r(115);var n=function(e){function t(e,r,n){var a;M(this,t),(a=d(this,t,[r])).str=e,a.dict=e.dict,a.cachedData=0,a.bitsCached=0;for(var i=4096,o={earlyChange:n,codeLength:9,nextCode:258,dictionaryValues:new Uint8Array(i),dictionaryLengths:new Uint16Array(i),dictionaryPrevCodes:new Uint16Array(i),currentSequence:new Uint8Array(i),currentSequenceLength:0},s=0;s<256;++s)o.dictionaryValues[s]=s,o.dictionaryLengths[s]=1;return a.lzwState=o,a}return y(t,e),P(t,[{key:"readBits",value:function(e){for(var t=this.bitsCached,r=this.cachedData;t>>t&(1<0;if(m<256)f[0]=m,d=1;else{if(!(m>=258)){if(256===m){l=9,o=258,d=0;continue}this.eof=!0,delete this.lzwState;break}if(m=0;t--)f[t]=s[r],r=u[r];else f[d++]=f[0]}if(y&&(u[o]=h,c[o]=c[h]+1,s[o]=f[0],l=++o+i&o+i-1?l:0|Math.min(Math.log(o+i)/.6931471805599453+1,12)),h=m,n<(p+=d)){do{n+=512}while(n15))throw new i.FormatError("Unsupported predictor: ".concat(s));o.readBlock=2===s?o.readBlockTiff:o.readBlockPng,o.str=e,o.dict=e.dict;var c=o.colors=n.get("Colors")||1,u=o.bits=n.get("BPC","BitsPerComponent")||8,l=o.columns=n.get("Columns")||1;return o.pixBytes=c*u+7>>3,o.rowBytes=l*c*u+7>>3,p(o,g(o))}return y(t,e),P(t,[{key:"readBlockTiff",value:function(){var e=this.rowBytes,t=this.bufferLength,r=this.ensureBuffer(t+e),n=this.bits,a=this.colors,i=this.str.getBytes(e);if(this.eof=!i.length,!this.eof){var o,s=0,c=0,u=0,l=0,h=t;if(1===n&&1===a)for(o=0;o>1,f^=f>>2,s=(1&(f^=f>>4))<<7,r[h++]=f}else if(8===n){for(o=0;o>8&255,r[h++]=255&p}}else{var g=new Uint8Array(a+1),v=(1<>u-n)&v,u-=n,c=c<=8&&(r[y++]=c>>l-8&255,l-=8);l>0&&(r[y++]=(c<<8-l)+(s&(1<<8-l)-1))}this.bufferLength+=e}}},{key:"readBlockPng",value:function(){var e=this.rowBytes,t=this.pixBytes,r=this.str.getByte(),n=this.str.getBytes(e);if(this.eof=!n.length,!this.eof){var a=this.bufferLength,o=this.ensureBuffer(a+e),s=o.subarray(a-e,a);0===s.length&&(s=new Uint8Array(e));var c,u,l,h=a;switch(r){case 0:for(c=0;c>1)+n[c];for(;c>1)+n[c]&255,h++;break;case 4:for(c=0;c0){var a=this.str.getBytes(n);t.set(a,r),r+=n}}else{n=257-n;var i=e[1];t=this.ensureBuffer(r+n+1);for(var o=0;o0&&e.toUnicode.amend(t)}}var I=function(){function e(t,r,n,a,i,o,s,c,u){M(this,e),this.originalCharCode=t,this.fontChar=r,this.unicode=n,this.accent=a,this.width=i,this.vmetric=o,this.operatorListId=s,this.isSpace=c,this.isInFont=u}return P(e,[{key:"category",get:function(){return(0,n.shadow)(this,"category",(0,o.getCharUnicodeCategory)(this.unicode),!0)}}]),e}();function T(e,t){return(e<<8)+t}function E(e,t,r){e[t+1]=r,e[t]=r>>>8}function R(e,t){var r=(e<<8)+t;return 32768&r?r-65536:r}function N(e){return String.fromCharCode(e>>8&255,255&e)}function D(e){return e>32767?e=32767:e<-32768&&(e=-32768),String.fromCharCode(e>>8&255,255&e)}function B(e){var t=e.peekBytes(4);return"ttcf"===(0,n.bytesToString)(t)}function L(e,t){for(var r in t)e[+r]=t[r]}function _(e,t,r){for(var n,a=[],i=0,s=e.length;i2&&void 0!==arguments[2]&&arguments[2];switch(t.length){case 1:return t.charCodeAt(0);case 2:return t.charCodeAt(0)<<8|t.charCodeAt(1)}var a="Unsupported CID string (charCode ".concat(e,'): "').concat(t,'".');if(r)throw new n.FormatError(a);return(0,n.warn)(a),t}function X(e,t,r,a){var i,o=Object.create(null),s=new Map,c=[],u=new Set,l=0,h=w[l][0],f=w[l][1];for(var d in e){var p=e[d|=0];if(t(p)){if(h>f){if(++l>=w.length){(0,n.warn)("Ran out of space in font private use area.");break}h=w[l][0],f=w[l][1]}var g=h++;0===p&&(p=r);var v=a.get(d);"string"==typeof v&&(v=v.codePointAt(0)),!v||(i=v,w[0][0]<=i&&i<=w[0][1]||w[1][0]<=i&&i<=w[1][1])||u.has(p)||(s.set(v,p),u.add(p)),o[g]=p,c[d]=g}}return{toFontChar:c,charCodeToGlyphId:o,toUnicodeExtraMap:s,nextAvailableFontCharCode:h}}function H(e,t,r){var a,i,o,s,c=function(e,t,r){var n=[];for(var a in e)e[a]>=r||n.push({fontCharCode:0|a,glyphId:e[a]});if(t){var i,o=x(t);try{for(o.s();!(i=o.n()).done;){var s=S(i.value,2),c=s[0],u=s[1];u>=r||n.push({fontCharCode:c,glyphId:u})}}catch(e){o.e(e)}finally{o.f()}}0===n.length&&n.push({fontCharCode:0,glyphId:0}),n.sort((function(e,t){return e.fontCharCode-t.fontCharCode}));for(var l=[],h=n.length,f=0;f65535?2:1,l="\0\0"+N(u)+"\0\0"+(0,n.string32)(4+8*u);for(a=c.length-1;a>=0&&!(c[a][0]<=65535);--a);var h=a+1;c[a][0]<65535&&65535===c[a][1]&&(c[a][1]=65534);var f,d,p,g,m=c[a][1]<65535?1:0,y=h+m,b=v.OpenTypeFileBuilder.getSearchParams(y,2),w="",k="",A="",C="",O="",F=0;for(a=0,i=h;a0&&(k+="ÿÿ",w+="ÿÿ",A+="\0",C+="\0\0");var M="\0\0"+N(2*y)+N(b.range)+N(b.entry)+N(b.rangeShift)+k+"\0\0"+w+A+C+O,E="",P="";if(u>1){for(l+="\0\0\n"+(0,n.string32)(4+8*u+4+M.length),E="",a=0,i=c.length;a(f|=0)||!u)&&(u=f),l 123 are reserved for internal usage");c|=1<65535&&(l=65535)}else u=0,l=255;var d=e.bbox||[0,0,0,0],p=r.unitsPerEm||1/(e.fontMatrix||n.FONT_IDENTITY_MATRIX)[0],g=e.ascentScaled?1:p/k,v=r.ascent||Math.round(g*(e.ascent||d[3])),m=r.descent||Math.round(g*(e.descent||d[1]));m>0&&e.descent>0&&d[1]<0&&(m=-m);var y=r.yMax||v,b=-r.yMin||-m;return"\0$ô\0\0\0Š»\0\0\0ŒŠ»\0\0ß\x001\0\0\0\0"+String.fromCharCode(e.fixedPitch?9:0)+"\0\0\0\0\0\0"+(0,n.string32)(a)+(0,n.string32)(i)+(0,n.string32)(s)+(0,n.string32)(c)+"*21*"+N(e.italicAngle?1:0)+N(u||e.firstChar)+N(l||e.lastChar)+N(v)+N(m)+"\0d"+N(y)+N(b)+"\0\0\0\0\0\0\0\0"+N(e.xHeight)+N(e.capHeight)+N(0)+N(u||e.firstChar)+"\0"}function z(e){var t=Math.floor(65536*e.italicAngle);return"\0\0\0"+(0,n.string32)(t)+"\0\0\0\0"+(0,n.string32)(e.fixedPitch?1:0)+"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"}function G(e){return e.replaceAll(/[^\x21-\x7E]|[[\](){}<>/%]/g,"").slice(0,63)}function W(e,t){t||(t=[[],[]]);var r,n,a,i,o,s=[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]||G(e),t[0][7]||"Unknown",t[0][8]||"Unknown",t[0][9]||"Unknown"],c=[];for(r=0,n=s.length;r=1&&t[3]>=1&&t[3]<=4}(e)?s?(r="CIDFontType0",a="CIDFontType0C"):(r="MMType1"===i?"MMType1":"Type1",a="Type1C"):((0,n.warn)("getFontFileType: Unable to detect correct font file Type/Subtype."),r=i,a=o),[r,a]}(r,a),A=S(w,2);p=A[0],g=A[1],p===this.type&&g===this.subtype||(0,n.info)("Inconsistent font file Type/SubType, expected: ".concat(this.type,"/").concat(this.subtype," but found: ").concat(p,"/").concat(g,"."));try{switch(p){case"MMType1":(0,n.info)("MMType1 font ("+t+"), falling back to Type1.");case"Type1":case"CIDFontType0":this.mimetype="font/opentype";var C="Type1C"===g||"CIDFontType0C"===g?new h.CFFFont(r,a):new b.Type1Font(t,r,a);O(a),y=this.convert(t,C,a);break;case"OpenType":case"TrueType":case"CIDFontType2":this.mimetype="font/opentype",y=this.checkAndRepair(t,r,a),this.isOpenType&&(O(a),p="OpenType");break;default:throw new n.FormatError("Font ".concat(p," is not supported"))}}catch(t){return(0,n.warn)(t),void this.fallbackToSystemFont(a)}F(a),this.data=y,this.type=p,this.subtype=g,this.fontMatrix=a.fontMatrix,this.widths=a.widths,this.defaultWidth=a.defaultWidth,this.toUnicode=a.toUnicode,this.seacMap=a.seacMap}else for(var I=0;I<256;I++)this.toFontChar[I]=this.differences[I]||a.defaultEncoding[I]}return P(e,[{key:"renderer",get:function(){var e=f.FontRendererFactory.create(this,i.SEAC_ANALYSIS_ENABLED);return(0,n.shadow)(this,"renderer",e)}},{key:"exportData",value:function(){var e,t,r,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0]?[].concat(A,C):A,a=Object.create(null),i=x(n);try{for(i.s();!(r=i.n()).done;)void 0!==(t=this[e=r.value])&&(a[e]=t)}catch(e){i.e(e)}finally{i.f()}return a}},{key:"fallbackToSystemFont",value:function(e){var t=this;this.missingFile=!0;var r=this.name,n=this.type,a=(0,i.normalizeFontName)(r),h=(0,u.getStdFontMap)(),f=(0,u.getNonStdFontMap)(),p=!!h[a],g=!(!f[a]||!h[f[a]]);a=h[a]||f[a]||a;var v=(0,d.getFontBasicMetrics)()[a];v&&(isNaN(this.ascent)&&(this.ascent=v.ascent/k),isNaN(this.descent)&&(this.descent=v.descent/k),isNaN(this.capHeight)&&(this.capHeight=v.capHeight/k)),this.bold=/bold/gi.test(a),this.italic=/oblique|italic/gi.test(a),this.black=/Black/g.test(r);var m=/Narrow/g.test(r);if(this.remeasure=(!p||m)&&Object.keys(this.widths).length>0,(p||g)&&"CIDFontType2"===n&&this.cidEncoding.startsWith("Identity-")){var y=e.cidToGidMap,b=[];if(L(b,(0,u.getGlyphMapForStandardFonts)()),/Arial-?Black/i.test(r)?L(b,(0,u.getSupplementalGlyphMapForArialBlack)()):/Calibri/i.test(r)&&L(b,(0,u.getSupplementalGlyphMapForCalibri)()),y){for(var w in b){var x=b[w];void 0!==y[x]&&(b[+w]=y[x])}y.length!==this.toUnicode.length&&e.hasIncludedToUnicodeMap&&this.toUnicode instanceof l.IdentityToUnicodeMap&&this.toUnicode.forEach((function(e,t){var r=b[e];void 0===y[r]&&(b[+e]=t)}))}this.toUnicode instanceof l.IdentityToUnicodeMap||this.toUnicode.forEach((function(e,t){b[+e]=t})),this.toFontChar=b,this.toUnicode=new l.ToUnicodeMap(b)}else if(/Symbol/i.test(a))this.toFontChar=_(c.SymbolSetEncoding,(0,s.getGlyphsUnicode)(),this.differences);else if(/Dingbats/i.test(a))this.toFontChar=_(c.ZapfDingbatsEncoding,(0,s.getDingbatsGlyphsUnicode)(),this.differences);else if(p){var S=_(this.defaultEncoding,(0,s.getGlyphsUnicode)(),this.differences);"CIDFontType2"!==n||this.cidEncoding.startsWith("Identity-")||this.toUnicode instanceof l.IdentityToUnicodeMap||this.toUnicode.forEach((function(e,t){S[+e]=t})),this.toFontChar=S}else{var A=(0,s.getGlyphsUnicode)(),C=[];this.toUnicode.forEach((function(e,r){if(!t.composite){var n=t.differences[e]||t.defaultEncoding[e],a=(0,o.getUnicodeForGlyph)(n,A);-1!==a&&(r=a)}C[+e]=r})),this.composite&&this.toUnicode instanceof l.IdentityToUnicodeMap&&/Tahoma|Verdana/i.test(r)&&L(C,(0,u.getGlyphMapForStandardFonts)()),this.toFontChar=C}F(e),this.loadedName=a.split("-")[0]}},{key:"checkAndRepair",value:function(e,t,r){var o,u,f=["OS/2","cmap","head","hhea","hmtx","maxp","name","post","loca","glyf","fpgm","prep","cvt ","CFF "];function d(e,t){var r=Object.create(null);r["OS/2"]=null,r.cmap=null,r.head=null,r.hhea=null,r.hmtx=null,r.maxp=null,r.name=null,r.post=null;for(var n=0;n>>0,n=e.getInt32()>>>0,a=e.getInt32()>>>0,i=e.pos;e.pos=e.start||0,e.skip(n);var o=e.getBytes(a);return e.pos=i,"head"===t&&(o[8]=o[9]=o[10]=o[11]=0,o[17]|=32),{tag:t,checksum:r,length:a,offset:n,data:o}}function b(e){return{version:e.getString(4),numTables:e.getUint16(),searchRange:e.getUint16(),entrySelector:e.getUint16(),rangeShift:e.getUint16()}}function w(e,t,r,n,a,i){var o={length:0,sizeOfInstructions:0};if(t<0||t>=e.length||r>e.length||r-t<=12)return o;var s=e.subarray(t,r),c=R(s[2],s[3]),u=R(s[4],s[5]),l=R(s[6],s[7]),h=R(s[8],s[9]);c>l&&(E(s,2,l),E(s,6,c)),u>h&&(E(s,4,h),E(s,8,u));var f=R(s[0],s[1]);if(f<0)return f<-1||(n.set(s,a),o.length=s.length),o;var d,p=10,g=0;for(d=0;ds.length?o:!i&&m>0?(n.set(s.subarray(0,v),a),n.set([0,0],a+v),n.set(s.subarray(y,C),a+v+2),C-=m,s.length-C>3&&(C=C+3&-4),o.length=C,o):s.length-C>3?(C=C+3&-4,n.set(s.subarray(0,C),a),o.length=C,o):(n.set(s,a),o.length=s.length,o)}function k(e){var r=(t.start||0)+e.offset;t.pos=r;var n=[[],[]],a=[],i=e.length,o=r+i;if(0!==t.getUint16()||i<6)return[n,a];var s,c,u=t.getUint16(),l=t.getUint16();for(s=0;so)){t.pos=d;var p=f.name;if(f.encoding){for(var g="",v=0,m=f.length;v0&&(u+=k-1)}}else(v||y)&&((0,n.warn)("TT: nested FDEFs not allowed"),g=!0),v=!0,h=u,o=f.pop(),t.functionsDefined[o]={data:c,i:u};else if(!v&&!y)if(o=f.at(-1),isNaN(o))(0,n.info)("TT: CALL empty stack (or invalid entry).");else if(t.functionsUsed[o]=!0,o in t.functionsStackDeltas){var x=f.length+t.functionsStackDeltas[o];if(x<0)return(0,n.warn)("TT: CALL invalid functions stack delta."),void(t.hintsValid=!1);f.length=x}else if(o in t.functionsDefined&&!p.includes(o)){if(d.push({data:c,i:u,stackTop:f.length-1}),p.push(o),!(s=t.functionsDefined[o]))return(0,n.warn)("TT: CALL non-existent function"),void(t.hintsValid=!1);c=s.data,u=s.i}if(!v&&!y){var S=0;for(w<=142?S=M[w]:w>=192&&w<=223?S=-1:w>=224&&(S=-2),w>=113&&w<=117&&(a=f.pop(),isNaN(a)||(S=2*-a));S<0&&f.length>0;)f.pop(),S++;for(;S>0;)f.push(NaN),S--}}t.tooComplexToFollowFunctions=g;var A=[c];u>c.length&&A.push(new Uint8Array(u-c.length)),h>l&&((0,n.warn)("TT: complementing a missing function tail"),A.push(new Uint8Array([34,45]))),function(e,t){if(t.length>1){var r,n,a=0;for(r=0,n=t.length;r>>0,o=[],s=0;s>>0);var c={ttcTag:t,majorVersion:r,minorVersion:a,numFonts:i,offsetTable:o};switch(r){case 1:return c;case 2:return c.dsigTag=e.getInt32()>>>0,c.dsigLength=e.getInt32()>>>0,c.dsigOffset=e.getInt32()>>>0,c}throw new n.FormatError("Invalid TrueType Collection majorVersion: ".concat(r,"."))}(e),i=a.numFonts,o=a.offsetTable,s=t.split("+"),c=0;c0||!(r.cMap instanceof g.IdentityCMap));if("OTTO"===A.version&&!_||!C.head||!C.hhea||!C.maxp||!C.post)return I=new y.Stream(C["CFF "].data),F=new h.CFFFont(I,r),O(r),this.convert(e,F,r);delete C.glyf,delete C.loca,delete C.fpgm,delete C.prep,delete C["cvt "],this.isOpenType=!0}if(!C.maxp)throw new n.FormatError('Required "maxp" table is not found');t.pos=(t.start||0)+C.maxp.offset;var G=t.getInt32(),V=t.getUint16();if((null===(o=r.scaleFactors)||void 0===o?void 0:o.length)===V&&D){var K=r.scaleFactors,Y=T(C.head.data[50],C.head.data[51]),J=new p.GlyfTable({glyfTable:C.glyf.data,isGlyphLocationsLong:Y,locaTable:C.loca.data,numGlyphs:V});J.scale(K);var Z=J.write(),Q=Z.glyf,ee=Z.loca,te=Z.isLocationLong;C.glyf.data=Q,C.loca.data=ee,te!==!!Y&&(C.head.data[50]=0,C.head.data[51]=te?1:0);for(var re=C.hmtx.data,ne=0;ne>8&255,re[ae+1]=255&ie,E(re,ae+2,Math.round(K[ne]*R(re[ae+2],re[ae+3])))}}var oe=V+1,se=!0;oe>65535&&(se=!1,oe=V,(0,n.warn)("Not enough space in glyfs to duplicate first glyph."));var ce=0,ue=0;G>=65536&&C.maxp.length>=22&&(t.pos+=8,t.getUint16()>2&&(C.maxp.data[14]=0,C.maxp.data[15]=2),t.pos+=4,ce=t.getUint16(),t.pos+=4,ue=t.getUint16()),C.maxp.data[4]=oe>>8,C.maxp.data[5]=255&oe;var le=function(e,t,r,a){var i={functionsDefined:[],functionsUsed:[],functionsStackDeltas:[],tooComplexToFollowFunctions:!1,hintsValid:!0};if(e&&P(e,i),t&&P(t,i),e&&function(e,t){if(!e.tooComplexToFollowFunctions)if(e.functionsDefined.length>t)(0,n.warn)("TT: more functions defined than expected"),e.hintsValid=!1;else for(var r=0,a=e.functionsUsed.length;rt)return(0,n.warn)("TT: invalid function id: "+r),void(e.hintsValid=!1);if(e.functionsUsed[r]&&!e.functionsDefined[r])return(0,n.warn)("TT: undefined function: "+r),void(e.hintsValid=!1)}}(i,a),r&&1&r.length){var o=new Uint8Array(r.length+1);o.set(r.data),r.data=o}return i.hintsValid}(C.fpgm,C.prep,C["cvt "],ce);if(le||(delete C.fpgm,delete C.prep,delete C["cvt "]),function(e,t,r,a,i,o){if(t){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;var s=e.getUint16();e.pos+=8,e.pos+=2;var c=e.getUint16();0!==s&&(2&T(a.data[44],a.data[45])||(t.data[22]=0,t.data[23]=0)),c>i&&((0,n.info)("The numOfMetrics (".concat(c,") should not be greater than the numGlyphs (").concat(i,").")),c=i,t.data[34]=(65280&c)>>8,t.data[35]=255&c);var u=i-c-(r.length-4*c>>1);if(u>0){var l=new Uint8Array(r.length+2*u);l.set(r.data),o&&(l[r.length]=r.data[2],l[r.length+1]=r.data[3]),r.data=l}}else r&&(r.data=null)}(t,C.hhea,C.hmtx,C.head,oe,se),!C.head)throw new n.FormatError('Required "head" table is not found');!function(e,t,r){var a=e.data,i=function(e,t,r,n){return(e<<24)+(t<<16)+(r<<8)+n}(a[0],a[1],a[2],a[3]);i>>16!=1&&((0,n.info)("Attempting to fix invalid version in head table: "+i),a[0]=0,a[1]=1,a[2]=0,a[3]=0);var o=T(a[50],a[51]);if(o<0||o>1){(0,n.info)("Attempting to fix invalid indexToLocFormat in head table: "+o);var s=t+1;if(r===s<<1)a[50]=0,a[51]=0;else{if(r!==s<<2)throw new n.FormatError("Could not fix indexToLocFormat: "+o);a[50]=0,a[51]=1}}}(C.head,V,D?C.loca.length:0);var he=Object.create(null);if(D){var fe=T(C.head.data[50],C.head.data[51]),de=function(e,t,r,n,a,i,o){var s,c,u;n?(s=4,c=function(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]},u=function(e,t,r){e[t]=r>>>24&255,e[t+1]=r>>16&255,e[t+2]=r>>8&255,e[t+3]=255&r}):(s=2,c=function(e,t){return e[t]<<9|e[t+1]<<1},u=function(e,t,r){e[t]=r>>9&255,e[t+1]=r>>1&255});var l=i?r+1:r,h=s*(1+l),f=new Uint8Array(h);f.set(e.data.subarray(0,h)),e.data=f;var d,p,g=t.data,v=g.length,m=new Uint8Array(v),y=[];for(d=0,p=0;dv&&(b=v),y.push({index:d,offset:b,endOffset:0})}for(y.sort((function(e,t){return e.offset-t.offset})),d=0;do&&(o=F.sizeOfInstructions),u(f,p,O+=I)}if(0===O){var T=new Uint8Array([0,1,0,0,0,0,0,0,0,0,0,0,0,0,49,0]);for(d=0,p=s;dM+O?t.data=m.subarray(0,M+O):(t.data=new Uint8Array(M+O),t.data.set(m.subarray(0,O))),t.data.set(m.subarray(0,M),O),u(e.data,f.length-s,O+M)}else t.data=m.subarray(0,O);return{missingGlyphs:C,maxSizeOfInstructions:o}}(C.loca,C.glyf,V,fe,le,se,ue);he=de.missingGlyphs,G>=65536&&C.maxp.length>=22&&(C.maxp.data[26]=de.maxSizeOfInstructions>>8,C.maxp.data[27]=255&de.maxSizeOfInstructions)}if(!C.hhea)throw new n.FormatError('Required "hhea" table is not found');0===C.hhea.data[10]&&0===C.hhea.data[11]&&(C.hhea.data[10]=255,C.hhea.data[11]=255);var pe={unitsPerEm:T(C.head.data[18],C.head.data[19]),yMax:R(C.head.data[42],C.head.data[43]),yMin:R(C.head.data[38],C.head.data[39]),ascent:R(C.hhea.data[4],C.hhea.data[5]),descent:R(C.hhea.data[6],C.hhea.data[7]),lineGap:R(C.hhea.data[8],C.hhea.data[9])};this.ascent=pe.ascent/pe.unitsPerEm,this.descent=pe.descent/pe.unitsPerEm,this.lineGap=pe.lineGap/pe.unitsPerEm,null!==(u=this.cssFontInfo)&&void 0!==u&&u.lineHeight?(this.lineHeight=this.cssFontInfo.metrics.lineHeight,this.lineGap=this.cssFontInfo.metrics.lineGap):this.lineHeight=this.ascent-this.descent+this.lineGap,C.post&&function(e,r,a){var o=(t.start||0)+e.offset;t.pos=o;var s=o+e.length,c=t.getInt32();t.skip(28);var u,l,h=!0;switch(c){case 65536:u=i.MacStandardGlyphOrdering;break;case 131072:var f=t.getUint16();if(f!==a){h=!1;break}var d=[];for(l=0;l=32768){h=!1;break}d.push(p)}if(!h)break;for(var g=[],v=[];t.pos65535)throw new n.FormatError("Max size of CID is 65,535");var r=-1;ye?r=t:void 0!==me[t]&&(r=me[t]),r>=0&&r>>0,v=!1;if((null===(h=s)||void 0===h?void 0:h.platformId)!==d||(null===(f=s)||void 0===f?void 0:f.encodingId)!==p){if(0!==d||0!==p&&1!==p&&3!==p)if(1===d&&0===p)v=!0;else if(3!==d||1!==p||!a&&s){if(r&&3===d&&0===p){v=!0;var m=!0;if(l>3;C.push(I),O=Math.max(I,O)}for(var M=[],E=0;E<=O;E++)M.push({firstCode:t.getUint16(),entryCount:t.getUint16(),idDelta:R(t.getByte(),t.getByte()),idRangePos:t.pos+t.getUint16()});for(var P=0;P<256;P++)if(0===C[P])t.pos=M[0].idRangePos+2*P,w=t.getUint16(),S.push({charCode:P,glyphId:w});else{var N=M[C[P]];for(b=0;b>1;t.skip(6);var L,_=[];for(L=0;L>1)-(B-L),i.offsetIndex=j,U=Math.max(U,j+i.end-i.start+1)):i.offsetIndex=-1}var X=[];for(b=0;b>>0;for(b=0;b>>0,Y=t.getInt32()>>>0,J=t.getInt32()>>>0,Z=K;Z<=Y;Z++)S.push({charCode:Z,glyphId:J++})}S.sort((function(e,t){return e.charCode-t.charCode}));for(var Q=1;Q=61440&&Ue<=61695&&(Ue&=255),ge[Ue]=je.glyphId}}catch(e){_e.e(e)}finally{_e.f()}}if(r.glyphNames&&(Se.length||this.differences.length))for(var $e=0;$e<256;++$e)if(Ae||void 0===ge[$e]){var Xe=this.differences[$e]||Se[$e];if(Xe){var He=r.glyphNames.indexOf(Xe);He>0&&ve(He)&&(ge[$e]=He)}}}0===ge.length&&(ge[0]=0);var qe=oe-1;if(se||(qe=0),!r.cssFontInfo){var ze=X(ge,ve,qe,this.toUnicode);this.toFontChar=ze.toFontChar,C.cmap={tag:"cmap",data:H(ze.charCodeToGlyphId,ze.toUnicodeExtraMap,oe)},C["OS/2"]&&function(e,t){t.pos=(t.start||0)+e.offset;var r=t.getUint16();t.skip(60);var n=t.getUint16();return!(r<4&&768&n||t.getUint16()>t.getUint16()||(t.skip(6),0===t.getUint16()||(e.data[8]=e.data[9]=0,0)))}(C["OS/2"],t)||(C["OS/2"]={tag:"OS/2",data:q(r,ze.charCodeToGlyphId,pe)})}if(!D)try{I=new y.Stream(C["CFF "].data),(F=new a.CFFParser(I,r,i.SEAC_ANALYSIS_ENABLED).parse()).duplicateFirstGlyph();var Ge=new a.CFFCompiler(F);C["CFF "].data=Ge.compile()}catch(e){(0,n.warn)("Failed to compile font "+r.loadedName)}if(C.name){var We=S(k(C.name),2),Ve=We[0],Ke=We[1];C.name.data=W(e,Ve),this.psName=Ve[0][6]||null,r.composite||function(e,t,r){if(!e.isInternalFont&&!e.hasIncludedToUnicodeMap&&!e.hasEncoding&&!(e.toUnicode instanceof l.IdentityToUnicodeMap)&&t&&0!==r.length&&e.defaultEncoding!==c.WinAnsiEncoding){var n,a=x(r);try{for(a.s();!(n=a.n()).done;)if(!U(n.value))return}catch(e){a.e(e)}finally{a.f()}var i=c.WinAnsiEncoding,o=[],u=(0,s.getGlyphsUnicode)();for(var h in i){var f=i[h];if(""!==f){var d=u[f];void 0!==d&&(o[h]=String.fromCharCode(d))}}o.length>0&&e.toUnicode.amend(o)}}(r,this.isSymbolicFont,Ke)}else C.name={tag:"name",data:W(this.name)};var Ye=new v.OpenTypeFileBuilder(A.version);for(var Je in C)Ye.addTable(Je,C[Je].data);return Ye.toArray()}},{key:"convert",value:function(e,t,r){r.fixedPitch=!1,r.builtInEncoding&&function(e,t){if(!e.isInternalFont&&!(e.hasIncludedToUnicodeMap||t===e.defaultEncoding||e.toUnicode instanceof l.IdentityToUnicodeMap)){var r=[],n=(0,s.getGlyphsUnicode)();for(var a in t)if(!e.hasEncoding||!e.baseEncodingName&&void 0===e.differences[a]){var i=t[a],c=(0,o.getUnicodeForGlyph)(i,n);-1!==c&&(r[a]=String.fromCharCode(c))}r.length>0&&e.toUnicode.amend(r)}}(r,r.builtInEncoding);var a=1;t instanceof h.CFFFont&&(a=t.numGlyphs-1);var u=t.getGlyphMapping(r),f=null,d=u,p=null;r.cssFontInfo||(f=X(u,t.hasGlyphId.bind(t),a,this.toUnicode),this.toFontChar=f.toFontChar,d=f.charCodeToGlyphId,p=f.toUnicodeExtraMap);var g=t.numGlyphs;function m(e,t){var r=null;for(var n in e)t===e[n]&&(r||(r=[])).push(0|n);return r}function y(e,t){for(var r in e)if(t===e[r])return 0|r;return f.charCodeToGlyphId[f.nextAvailableFontCharCode]=t,f.nextAvailableFontCharCode++}var b=t.seacs;if(f&&i.SEAC_ANALYSIS_ENABLED&&null!=b&&b.length){var w=r.fontMatrix||n.FONT_IDENTITY_MATRIX,k=t.getCharset(),S=Object.create(null);for(var A in b){var C=b[A|=0],O=c.StandardEncoding[C[2]],F=c.StandardEncoding[C[3]],I=k.indexOf(O),T=k.indexOf(F);if(!(I<0||T<0)){var M={x:C[0]*w[0]+C[1]*w[2]+w[4],y:C[0]*w[1]+C[1]*w[3]+w[5]},E=m(u,A);if(E){var P,R=x(E);try{for(R.s();!(P=R.n()).done;){var B=P.value,L=f.charCodeToGlyphId,_=y(L,I),j=y(L,T);S[B]={baseFontCharCode:_,accentFontCharCode:j,accentOffset:M}}}catch(e){R.e(e)}finally{R.f()}}}}r.seacMap=S}var U=1/(r.fontMatrix||n.FONT_IDENTITY_MATRIX)[0],$=new v.OpenTypeFileBuilder("OTTO");return $.addTable("CFF ",t.data),$.addTable("OS/2",q(r,d)),$.addTable("cmap",H(d,p,g)),$.addTable("head","\0\0\0\0\0\0\0\0\0\0_<õ\0\0"+D(U)+"\0\0\0\0ž\v~'\0\0\0\0ž\v~'\0\0"+D(r.descent)+"ÿ"+D(r.ascent)+N(r.italicAngle?2:0)+"\0\0\0\0\0\0\0"),$.addTable("hhea","\0\0\0"+D(r.ascent)+D(r.descent)+"\0\0ÿÿ\0\0\0\0\0\0"+D(r.capHeight)+D(Math.tan(r.italicAngle)*r.xHeight)+"\0\0\0\0\0\0\0\0\0\0\0\0"+N(g)),$.addTable("hmtx",function(){for(var e=t.charstrings,r=t.cff?t.cff.widths:null,n="\0\0\0\0",a=1,i=g;a1&&void 0!==arguments[1]&&arguments[1],h=this._glyphCache[e];if((null===(t=h)||void 0===t?void 0:t.isSpace)===l)return h;var f=e;null!==(r=this.cMap)&&void 0!==r&&r.contains(e)&&"string"==typeof(f=this.cMap.lookup(e))&&(f=$(e,f)),"number"!=typeof(c=this.widths[f])&&(c=this.defaultWidth);var d=null===(a=this.vmetrics)||void 0===a?void 0:a[f],p=this.toUnicode.get(e)||e;"number"==typeof p&&(p=String.fromCharCode(p));var g=void 0!==this.toFontChar[e];if(s=this.toFontChar[e]||e,this.missingFile){var v=this.differences[e]||this.defaultEncoding[e];".notdef"!==v&&""!==v||"Type1"!==this.type||(s=32),s=(0,o.mapSpecialUnicodeValues)(s)}this.isType3Font&&(u=s);var m=null;if(null!==(i=this.seacMap)&&void 0!==i&&i[e]){g=!0;var y=this.seacMap[e];s=y.baseFontCharCode,m={fontChar:String.fromCodePoint(y.accentFontCharCode),offset:y.accentOffset}}var b="";return"number"==typeof s&&(s<=1114111?b=String.fromCodePoint(s):(0,n.warn)("charToGlyph - invalid fontCharCode: ".concat(s))),h=new I(e,b,p,m,c,d,u,l,g),this._glyphCache[e]=h}},{key:"charsToGlyphs",value:function(e){var t=this._charsCache[e];if(t)return t;if(t=[],this.cMap)for(var r=Object.create(null),n=e.length,a=0;a55295&&(c<57344||c>65533)&&o++,this.toUnicode){var u=i(c);if(-1!==u){a()&&(r.push(n.join("")),n.length=0);for(var h=(this.cMap?this.cMap.getCharCodeLength(u):1)-1;h>=0;h--)n.push(String.fromCharCode(u>>8*h&255));continue}}a()||(r.push(n.join("")),n.length=0),n.push(String.fromCodePoint(c))}return r.push(n.join("")),r}}]),e}(),t.ErrorFont=function(){function e(t){M(this,e),this.error=t,this.loadedName="g_font_error",this.missingFile=!0}return P(e,[{key:"charsToGlyphs",value:function(){return[]}},{key:"encodeString",value:function(e){return[e]}},{key:"exportData",value:function(){return{error:this.error}}}]),e}()},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.CFFTopDict=t.CFFStrings=t.CFFStandardStrings=t.CFFPrivateDict=t.CFFParser=t.CFFIndex=t.CFFHeader=t.CFFFDSelect=t.CFFCompiler=t.CFFCharset=t.CFF=void 0,r(139),r(84),r(93),r(94),r(97),r(99),r(101),r(105),r(108),r(115);var n=r(144),a=r(186),i=r(187),o=[".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"];t.CFFStandardStrings=o;var s=[null,{id:"hstem",min:2,stackClearing:!0,stem:!0},null,{id:"vstem",min:2,stackClearing:!0,stem:!0},{id:"vmoveto",min:1,stackClearing:!0},{id:"rlineto",min:2,resetStack:!0},{id:"hlineto",min:1,resetStack:!0},{id:"vlineto",min:1,resetStack:!0},{id:"rrcurveto",min:6,resetStack:!0},null,{id:"callsubr",min:1,undefStack:!0},{id:"return",min:0,undefStack:!0},null,null,{id:"endchar",min:0,stackClearing:!0},null,null,null,{id:"hstemhm",min:2,stackClearing:!0,stem:!0},{id:"hintmask",min:0,stackClearing:!0},{id:"cntrmask",min:0,stackClearing:!0},{id:"rmoveto",min:2,stackClearing:!0},{id:"hmoveto",min:1,stackClearing:!0},{id:"vstemhm",min:2,stackClearing:!0,stem:!0},{id:"rcurveline",min:8,resetStack:!0},{id:"rlinecurve",min:8,resetStack:!0},{id:"vvcurveto",min:4,resetStack:!0},{id:"hhcurveto",min:4,resetStack:!0},null,{id:"callgsubr",min:1,undefStack:!0},{id:"vhcurveto",min:4,resetStack:!0},{id:"hvcurveto",min:4,resetStack:!0}],c=[null,null,null,{id:"and",min:2,stackDelta:-1},{id:"or",min:2,stackDelta:-1},{id:"not",min:1,stackDelta:0},null,null,null,{id:"abs",min:1,stackDelta:0},{id:"add",min:2,stackDelta:-1,stackFn:function(e,t){e[t-2]=e[t-2]+e[t-1]}},{id:"sub",min:2,stackDelta:-1,stackFn:function(e,t){e[t-2]=e[t-2]-e[t-1]}},{id:"div",min:2,stackDelta:-1,stackFn:function(e,t){e[t-2]=e[t-2]/e[t-1]}},null,{id:"neg",min:1,stackDelta:0,stackFn:function(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:function(e,t){e[t-2]=e[t-2]*e[t-1]}},null,{id:"sqrt",min:1,stackDelta:0},{id:"dup",min:1,stackDelta:1},{id:"exch",min:2,stackDelta:0},{id:"index",min:2,stackDelta:0},{id:"roll",min:3,stackDelta:-2},null,null,null,{id:"hflex",min:7,resetStack:!0},{id:"flex",min:13,resetStack:!0},{id:"hflex1",min:9,resetStack:!0},{id:"flex1",min:11,resetStack:!0}];t.CFFParser=function(){function e(t,r,n){M(this,e),this.bytes=t.getBytes(),this.properties=r,this.seacAnalysisEnabled=!!n}return P(e,[{key:"parse",value:function(){var e=this.properties,t=new u;this.cff=t;var r=this.parseHeader(),n=this.parseIndex(r.endPos),a=this.parseIndex(n.endPos),i=this.parseIndex(a.endPos),o=this.parseIndex(i.endPos),s=this.parseDict(a.obj.get(0)),c=this.createDict(m,s,t.strings);t.header=r.obj,t.names=this.parseNameIndex(n.obj),t.strings=this.parseStringIndex(i.obj),t.topDict=c,t.globalSubrIndex=o.obj,this.parsePrivateDict(t.topDict),t.isCIDFont=c.hasName("ROS");var l=c.getByName("CharStrings"),h=this.parseIndex(l).obj,f=c.getByName("FontMatrix");f&&(e.fontMatrix=f);var d,p,g=c.getByName("FontBBox");if(g&&(e.ascent=Math.max(g[3],g[1]),e.descent=Math.min(g[1],g[3]),e.ascentScaled=!0),t.isCIDFont){for(var v=this.parseIndex(c.getByName("FDArray")).obj,y=0,b=v.count;y=t)throw new n.FormatError("Invalid CFF header");0!==r&&((0,n.info)("cff data is shifted"),e=e.subarray(r),this.bytes=e);var a=e[0],i=e[1],o=e[2],s=e[3];return{obj:new l(a,i,o,s),endPos:o}}},{key:"parseDict",value:function(e){var t=0;function r(){var r=e[t++];return 30===r?function(){for(var r="",n=["0","1","2","3","4","5","6","7","8","9",".","E","E-",null,"-"],a=e.length;t>4,s=15&i;if(15===o)break;if(r+=n[o],15===s)break;r+=n[s]}return parseFloat(r)}():28===r?r=((r=e[t++])<<24|e[t++]<<16)>>16:29===r?r=(r=(r=(r=e[t++])<<8|e[t++])<<8|e[t++])<<8|e[t++]:r>=32&&r<=246?r-139:r>=247&&r<=250?256*(r-247)+e[t++]+108:r>=251&&r<=254?-256*(r-251)-e[t++]-108:((0,n.warn)('CFFParser_parseDict: "'+r+'" is a reserved command.'),NaN)}var a=[],i=[];t=0;for(var o=e.length;t10)return!1;for(var i=e.stackSize,o=e.stack,u=t.length,l=0;l>16,l+=2,i++;else if(14===h){if(i>=4&&(i-=4,this.seacAnalysisEnabled))return e.seac=o.slice(i,i+4),!1;f=s[h]}else if(h>=32&&h<=246)o[i]=h-139,i++;else if(h>=247&&h<=254)o[i]=h<251?(h-247<<8)+t[l]+108:-(h-251<<8)-t[l]-108,l++,i++;else if(255===h)o[i]=(t[l]<<24|t[l+1]<<16|t[l+2]<<8|t[l+3])/65536,l+=4,i++;else if(19===h||20===h){if(e.hints+=i>>1,0===e.hints){t.copyWithin(l-1,l,-1),l-=1,u-=1;continue}l+=e.hints+7>>3,i%=2,f=s[h]}else{if(10===h||29===h){var p=10===h?r:a;if(!p)return f=s[h],(0,n.warn)("Missing subrsIndex for "+f.id),!1;var g=32768;p.count<1240?g=107:p.count<33900&&(g=1131);var v=o[--i]+g;if(v<0||v>=p.count||isNaN(v))return f=s[h],(0,n.warn)("Out of bounds subrIndex for "+f.id),!1;if(e.stackSize=i,e.callDepth++,!this.parseCharString(e,p.get(v),r,a))return!1;e.callDepth--,i=e.stackSize;continue}if(11===h)return e.stackSize=i,!0;if(0===h&&l===t.length)t[l-1]=14,f=s[14];else{if(9===h){t.copyWithin(l-1,l,-1),l-=1,u-=1;continue}f=s[h]}}if(f){if(f.stem&&(e.hints+=i>>1,3===h||23===h?e.hasVStems=!0:!e.hasVStems||1!==h&&18!==h||((0,n.warn)("CFF stem hints are in wrong order"),t[l-1]=1===h?3:23)),"min"in f&&!e.undefStack&&i=2&&f.stem?i%=2:i>1&&(0,n.warn)("Found too many parameters for stack-clearing command"),i>0&&(e.width=o[i-1])),"stackDelta"in f?("stackFn"in f&&f.stackFn(o,i),i+=f.stackDelta):f.stackClearing?i=0:f.resetStack?(i=0,e.undefStack=!1):f.undefStack&&(i=0,e.undefStack=!0,e.firstStackClearing=!1)}}return u=o.length&&((0,n.warn)("Invalid fd index for glyph index."),p=!1),p&&(g=(v=o[m].privateDict).subrsIndex)}else r&&(g=r);if(p&&(p=this.parseCharString(d,f,g,a)),null!==d.width){var y=v.getByName("nominalWidthX");u[h]=y+d.width}else{var b=v.getByName("defaultWidthX");u[h]=b}null!==d.seac&&(c[h]=d.seac),p||t.set(h,new Uint8Array([14]))}return{charStrings:t,seacs:c,widths:u}}},{key:"emptyPrivateDictionary",value:function(e){var t=this.createDict(w,[],e.strings);e.setByKey(18,[0,0]),e.privateDict=t}},{key:"parsePrivateDict",value:function(e){if(e.hasName("Private")){var t=e.getByName("Private");if(Array.isArray(t)&&2===t.length){var r=t[0],n=t[1];if(0===r||n>=this.bytes.length)this.emptyPrivateDictionary(e);else{var a=n+r,i=this.bytes.subarray(n,a),o=this.parseDict(i),s=this.createDict(w,o,e.strings);if(e.privateDict=s,0===s.getByName("ExpansionFactor")&&s.setByName("ExpansionFactor",.06),s.getByName("Subrs")){var c=s.getByName("Subrs"),u=n+c;if(0===c||u>=this.bytes.length)this.emptyPrivateDictionary(e);else{var l=this.parseIndex(u);s.subrsIndex=l.obj}}}}else e.removeByName("Private")}else this.emptyPrivateDictionary(e)}},{key:"parseCharsets",value:function(e,t,r,i){if(0===e)return new A(!0,k.ISO_ADOBE,a.ISOAdobeCharset);if(1===e)return new A(!0,k.EXPERT,a.ExpertCharset);if(2===e)return new A(!0,k.EXPERT_SUBSET,a.ExpertSubsetCharset);var o,s,c,u=this.bytes,l=e,h=u[e++],f=[i?0:".notdef"];switch(t-=1,h){case 0:for(c=0;c=65535)(0,n.warn)("Not enough space in charstrings to duplicate first glyph.");else{var e=this.charStrings.get(0);this.charStrings.add(e),this.isCIDFont&&this.fdSelect.fdSelect.push(this.fdSelect.fdSelect[0])}}},{key:"hasGlyphId",value:function(e){return!(e<0||e>=this.charStrings.count)&&this.charStrings.get(e).length>0}}]),e}();t.CFF=u;var l=P((function e(t,r,n,a){M(this,e),this.major=t,this.minor=r,this.hdrSize=n,this.offSize=a}));t.CFFHeader=l;var h=function(){function e(){M(this,e),this.strings=[]}return P(e,[{key:"get",value:function(e){return e>=0&&e<=390?o[e]:e-391<=this.strings.length?this.strings[e-391]:o[0]}},{key:"getSID",value:function(e){var t=o.indexOf(e);return-1!==t?t:-1!==(t=this.strings.indexOf(e))?t+391:-1}},{key:"add",value:function(e){this.strings.push(e)}},{key:"count",get:function(){return this.strings.length}}]),e}();t.CFFStrings=h;var p=function(){function e(){M(this,e),this.objects=[],this.length=0}return P(e,[{key:"add",value:function(e){this.length+=e.length,this.objects.push(e)}},{key:"set",value:function(e,t){this.length+=t.length-this.objects[e].length,this.objects[e]=t}},{key:"get",value:function(e){return this.objects[e]}},{key:"count",get:function(){return this.objects.length}}]),e}();t.CFFIndex=p;var g=function(){function e(t,r){M(this,e),this.keyToNameMap=t.keyToNameMap,this.nameToKeyMap=t.nameToKeyMap,this.defaults=t.defaults,this.types=t.types,this.opcodes=t.opcodes,this.order=t.order,this.strings=r,this.values=Object.create(null)}return P(e,[{key:"setByKey",value:function(e,t){if(!(e in this.keyToNameMap))return!1;if(0===t.length)return!0;var r,a=x(t);try{for(a.s();!(r=a.n()).done;){var i=r.value;if(isNaN(i))return(0,n.warn)('Invalid CFFDict value: "'.concat(t,'" for key "').concat(e,'".')),!0}}catch(e){a.e(e)}finally{a.f()}var o=this.types[e];return"num"!==o&&"sid"!==o&&"offset"!==o||(t=t[0]),this.values[e]=t,!0}},{key:"setByName",value:function(e,t){if(!(e in this.nameToKeyMap))throw new n.FormatError('Invalid dictionary name "'.concat(e,'"'));this.values[this.nameToKeyMap[e]]=t}},{key:"hasName",value:function(e){return this.nameToKeyMap[e]in this.values}},{key:"getByName",value:function(e){if(!(e in this.nameToKeyMap))throw new n.FormatError("Invalid dictionary name ".concat(e,'"'));var t=this.nameToKeyMap[e];return t in this.values?this.values[t]:this.defaults[t]}},{key:"removeByName",value:function(e){delete this.values[this.nameToKeyMap[e]]}}],[{key:"createTables",value:function(e){var t,r={keyToNameMap:{},nameToKeyMap:{},defaults:{},types:{},opcodes:{},order:[]},n=x(e);try{for(n.s();!(t=n.n()).done;){var a=t.value,i=Array.isArray(a[0])?(a[0][0]<<8)+a[0][1]:a[0];r.keyToNameMap[i]=a[1],r.nameToKeyMap[a[1]]=i,r.types[i]=a[2],r.defaults[i]=a[3],r.opcodes[i]=Array.isArray(a[0])?a[0]:[a[0]],r.order.push(i)}}catch(e){n.e(e)}finally{n.f()}return r}}]),e}(),v=[[[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]],m=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[t.tables,e])).privateDict=null,r}return y(t,e),P(t,null,[{key:"tables",get:function(){return(0,n.shadow)(this,"tables",this.createTables(v))}}]),t}(g);t.CFFTopDict=m;var b=[[6,"BlueValues","delta",null],[7,"OtherBlues","delta",null],[8,"FamilyBlues","delta",null],[9,"FamilyOtherBlues","delta",null],[[12,9],"BlueScale","num",.039625],[[12,10],"BlueShift","num",7],[[12,11],"BlueFuzz","num",1],[10,"StdHW","num",null],[11,"StdVW","num",null],[[12,12],"StemSnapH","delta",null],[[12,13],"StemSnapV","delta",null],[[12,14],"ForceBold","num",0],[[12,17],"LanguageGroup","num",0],[[12,18],"ExpansionFactor","num",.06],[[12,19],"initialRandomSeed","num",0],[20,"defaultWidthX","num",0],[21,"nominalWidthX","num",0],[19,"Subrs","offset",null]],w=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[t.tables,e])).subrsIndex=null,r}return y(t,e),P(t,null,[{key:"tables",get:function(){return(0,n.shadow)(this,"tables",this.createTables(b))}}]),t}(g);t.CFFPrivateDict=w;var k={ISO_ADOBE:0,EXPERT:1,EXPERT_SUBSET:2},A=P((function e(t,r,n,a){M(this,e),this.predefined=t,this.format=r,this.charset=n,this.raw=a}));t.CFFCharset=A;var C=P((function e(t,r,n,a){M(this,e),this.predefined=t,this.format=r,this.encoding=n,this.raw=a})),O=function(){function e(t,r){M(this,e),this.format=t,this.fdSelect=r}return P(e,[{key:"getFDIndex",value:function(e){return e<0||e>=this.fdSelect.length?-1:this.fdSelect[e]}}]),e}();t.CFFFDSelect=O;var F=function(){function e(){M(this,e),this.offsets=Object.create(null)}return P(e,[{key:"isTracking",value:function(e){return e in this.offsets}},{key:"track",value:function(e,t){if(e in this.offsets)throw new n.FormatError("Already tracking location of ".concat(e));this.offsets[e]=t}},{key:"offset",value:function(e){for(var t in this.offsets)this.offsets[t]+=e}},{key:"setEntryLocation",value:function(e,t,r){if(!(e in this.offsets))throw new n.FormatError("Not tracking location of ".concat(e));for(var a=r.data,i=this.offsets[e],o=0,s=t.length;o>24&255,a[l]=d>>16&255,a[h]=d>>8&255,a[f]=255&d}}}]),e}(),I=function(){function e(t){M(this,e),this.cff=t}return P(e,[{key:"compile",value:function(){var e=this.cff,t={data:[],length:0,add:function(e){try{var t;(t=this.data).push.apply(t,f(e))}catch(t){this.data=this.data.concat(e)}this.length=this.data.length}},r=this.compileHeader(e.header);t.add(r);var a=this.compileNameIndex(e.names);if(t.add(a),e.isCIDFont&&e.topDict.hasName("FontMatrix")){var i=e.topDict.getByName("FontMatrix");e.topDict.removeByName("FontMatrix");var o,s=x(e.fdArray);try{for(s.s();!(o=s.n()).done;){var c=o.value,u=i.slice(0);c.hasName("FontMatrix")&&(u=n.Util.transform(u,c.getByName("FontMatrix"))),c.setByName("FontMatrix",u)}}catch(e){s.e(e)}finally{s.f()}}var l=e.topDict.getByName("XUID");(null==l?void 0:l.length)>16&&e.topDict.removeByName("XUID"),e.topDict.setByName("charset",0);var h=this.compileTopDicts([e.topDict],t.length,e.isCIDFont);t.add(h.output);var d=h.trackers[0],p=this.compileStringIndex(e.strings.strings);t.add(p);var g=this.compileIndex(e.globalSubrIndex);if(t.add(g),e.encoding&&e.topDict.hasName("Encoding"))if(e.encoding.predefined)d.setEntryLocation("Encoding",[e.encoding.format],t);else{var v=this.compileEncoding(e.encoding);d.setEntryLocation("Encoding",[t.length],t),t.add(v)}var m=this.compileCharset(e.charset,e.charStrings.count,e.strings,e.isCIDFont);d.setEntryLocation("charset",[t.length],t),t.add(m);var y=this.compileCharStrings(e.charStrings);if(d.setEntryLocation("CharStrings",[t.length],t),t.add(y),e.isCIDFont){d.setEntryLocation("FDSelect",[t.length],t);var b=this.compileFDSelect(e.fdSelect);t.add(b),h=this.compileTopDicts(e.fdArray,t.length,!0),d.setEntryLocation("FDArray",[t.length],t),t.add(h.output);var w=h.trackers;this.compilePrivateDicts(e.fdArray,w,t)}return this.compilePrivateDicts([e.topDict],[d],t),t.add([0]),t.data}},{key:"encodeNumber",value:function(e){return Number.isInteger(e)?this.encodeInteger(e):this.encodeFloat(e)}},{key:"encodeFloat",value:function(t){var r=t.toString(),n=e.EncodeFloatRegExp.exec(r);if(n){var a=parseFloat("1e"+((n[2]?+n[2]:0)+n[1].length));r=(Math.round(t*a)/a).toString()}var i,o,s="";for(i=0,o=r.length;i=-107&&e<=107?[e+139]:e>=108&&e<=1131?[247+((e-=108)>>8),255&e]:e>=-1131&&e<=-108?[251+((e=-e-108)>>8),255&e]:e>=-32768&&e<=32767?[28,e>>8&255,255&e]:[29,e>>24&255,e>>16&255,e>>8&255,255&e]}},{key:"compileHeader",value:function(e){return[e.major,e.minor,4,e.offSize]}},{key:"compileNameIndex",value:function(e){var t,r=new p,a=x(e);try{for(a.s();!(t=a.n()).done;){for(var i=t.value,o=Math.min(i.length,127),s=new Array(o),c=0;c"~"||"["===u||"]"===u||"("===u||")"===u||"{"===u||"}"===u||"<"===u||">"===u||"/"===u||"%"===u)&&(u="_"),s[c]=u}""===(s=s.join(""))&&(s="Bad_Font_Name"),r.add((0,n.stringToBytes)(s))}}catch(e){a.e(e)}finally{a.f()}return this.compileIndex(r)}},{key:"compileTopDicts",value:function(e,t,r){var n,a=[],i=new p,o=x(e);try{for(o.s();!(n=o.n()).done;){var s=n.value;r&&(s.removeByName("CIDFontVersion"),s.removeByName("CIDFontRevision"),s.removeByName("CIDFontType"),s.removeByName("CIDCount"),s.removeByName("UIDBase"));var c=new F,u=this.compileDict(s,c);a.push(c),i.add(u),c.offset(t)}}catch(e){o.e(e)}finally{o.f()}return{trackers:a,output:i=this.compileIndex(i,a)}}},{key:"compilePrivateDicts",value:function(e,t,r){for(var a=0,i=e.length;a>8&255,255&o]);else{(i=new Uint8Array(1+2*o))[0]=0;for(var s=0,c=e.charset.length,u=!1,l=1;l>8&255,i[l+1]=255&h}}return this.compileTypedArray(i)}},{key:"compileEncoding",value:function(e){return this.compileTypedArray(e.raw)}},{key:"compileFDSelect",value:function(e){var t,r,n=e.format;switch(n){case 0:for((t=new Uint8Array(1+e.fdSelect.length))[0]=n,r=0;r>8&255,255&r,o),a=o)}var s=(i.length-3)/3;i[1]=s>>8&255,i[2]=255&s,i.push(r>>8&255,255&r),t=new Uint8Array(i)}return this.compileTypedArray(t)}},{key:"compileTypedArray",value:function(e){return Array.from(e)}},{key:"compileIndex",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=e.objects,n=r.length;if(0===n)return[0,0];var a,i,o=[n>>8&255,255&n],s=1;for(a=0;a>8&255,255&c):3===i?o.push(c>>16&255,c>>8&255,255&c):o.push(c>>>24&255,c>>16&255,c>>8&255,255&c),r[a]&&(c+=r[a].length);for(a=0;a=0?i:0;else if(e.baseEncodingName)for(u=(0,n.getEncoding)(e.baseEncodingName),o=0;o=0?i:0;else if(h)for(o in t)l[o]=t[o];else for(u=n.StandardEncoding,o=0;o=0?i:0;var f,d=e.differences;if(d)for(o in d){var p=d[o];if(-1===(i=r.indexOf(p))){f||(f=(0,a.getGlyphsUnicode)());var g=c(p,f);g!==p&&(i=r.indexOf(g))}l[o]=i>=0?i:0}return l},r(157);var n=r(187),a=r(189),i=r(190),o=r(144);t.SEAC_ANALYSIS_ENABLED=!0;var s={FixedPitch:1,Serif:2,Symbolic:4,Script:8,Nonsymbolic:32,Italic:64,AllCap:65536,SmallCap:131072,ForceBold:262144};function c(e,t){if(void 0!==t[e])return e;var r=(0,i.getUnicodeForGlyph)(e,t);if(-1!==r)for(var n in t)if(t[n]===r)return n;return(0,o.info)("Unable to recover a standard glyph name for: "+e),e}t.FontFlags=s,t.MacStandardGlyphOrdering=[".notdef",".null","nonmarkingreturn","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","Adieresis","Aring","Ccedilla","Eacute","Ntilde","Odieresis","Udieresis","aacute","agrave","acircumflex","adieresis","atilde","aring","ccedilla","eacute","egrave","ecircumflex","edieresis","iacute","igrave","icircumflex","idieresis","ntilde","oacute","ograve","ocircumflex","odieresis","otilde","uacute","ugrave","ucircumflex","udieresis","dagger","degree","cent","sterling","section","bullet","paragraph","germandbls","registered","copyright","trademark","acute","dieresis","notequal","AE","Oslash","infinity","plusminus","lessequal","greaterequal","yen","mu","partialdiff","summation","product","pi","integral","ordfeminine","ordmasculine","Omega","ae","oslash","questiondown","exclamdown","logicalnot","radical","florin","approxequal","Delta","guillemotleft","guillemotright","ellipsis","nonbreakingspace","Agrave","Atilde","Otilde","OE","oe","endash","emdash","quotedblleft","quotedblright","quoteleft","quoteright","divide","lozenge","ydieresis","Ydieresis","fraction","currency","guilsinglleft","guilsinglright","fi","fl","daggerdbl","periodcentered","quotesinglbase","quotedblbase","perthousand","Acircumflex","Ecircumflex","Aacute","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Oacute","Ocircumflex","apple","Ograve","Uacute","Ucircumflex","Ugrave","dotlessi","circumflex","tilde","macron","breve","dotaccent","ring","cedilla","hungarumlaut","ogonek","caron","Lslash","lslash","Scaron","scaron","Zcaron","zcaron","brokenbar","Eth","eth","Yacute","yacute","Thorn","thorn","minus","multiply","onesuperior","twosuperior","threesuperior","onehalf","onequarter","threequarters","franc","Gbreve","gbreve","Idotaccent","Scedilla","scedilla","Cacute","cacute","Ccaron","ccaron","dcroat"]},function(e,t,r){r.r(t),r.d(t,{getDingbatsGlyphsUnicode:function(){return i},getGlyphsUnicode:function(){return a}});var n=r(149),a=(0,n.getLookupTableFactory)((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})),i=(0,n.getLookupTableFactory)((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}))},function(e,t,r){r.r(t),r.d(t,{clearUnicodeCaches:function(){return h},getCharUnicodeCategory:function(){return l},getUnicodeForGlyph:function(){return i},getUnicodeRangeFor:function(){return s},mapSpecialUnicodeValues:function(){return a}});var n=(0,r(149).getLookupTableFactory)((function(e){e[63721]=169,e[63193]=169,e[63720]=174,e[63194]=174,e[63722]=8482,e[63195]=8482,e[63729]=9127,e[63730]=9128,e[63731]=9129,e[63740]=9131,e[63741]=9132,e[63742]=9133,e[63726]=9121,e[63727]=9122,e[63728]=9123,e[63737]=9124,e[63738]=9125,e[63739]=9126,e[63723]=9115,e[63724]=9116,e[63725]=9117,e[63734]=9118,e[63735]=9119,e[63736]=9120}));function a(e){return e>=65520&&e<=65535?0:e>=62976&&e<=63743?n()[e]||e:173===e?45:e}function i(e,t){var r=t[e];if(void 0!==r)return r;if(!e)return-1;if("u"===e[0]){var n,a=e.length;if(7===a&&"n"===e[1]&&"i"===e[2])n=e.substring(3);else{if(!(a>=5&&a<=7))return-1;n=e.substring(1)}if(n===n.toUpperCase()&&(r=parseInt(n,16))>=0)return r}return-1}var o=[[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 s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;if(-1!==t)for(var r=o[t],n=0,a=r.length;n=r[n]&&e<=r[n+1])return t;for(var i=0,s=o.length;i=c[u]&&e<=c[u+1])return i;return-1}var c=new RegExp("^(\\s)|(\\p{Mn})|(\\p{Cf})$","u"),u=new Map;function l(e){var t=u.get(e);if(t)return t;var r=e.match(c),n={isWhitespace:!(null==r||!r[1]),isZeroWidthDiacritic:!(null==r||!r[2]),isInvisibleFormatMark:!(null==r||!r[3])};return u.set(e,n),n}function h(){u.clear()}},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.getSerifFonts=t.getNonStdFontMap=t.getGlyphMapForStandardFonts=t.getFontNameToFileMap=void 0,t.getStandardFontName=function(e){var t=(0,a.normalizeFontName)(e);return i()[t]},t.getSymbolsFonts=t.getSupplementalGlyphMapForCalibri=t.getSupplementalGlyphMapForArialBlack=t.getStdFontMap=void 0,t.isKnownFontName=function(e){var t=(0,a.normalizeFontName)(e);return!!(i()[t]||s()[t]||c()[t]||u()[t])};var n=r(149),a=r(188),i=(0,n.getLookupTableFactory)((function(e){e["Times-Roman"]="Times-Roman",e.Helvetica="Helvetica",e.Courier="Courier",e.Symbol="Symbol",e["Times-Bold"]="Times-Bold",e["Helvetica-Bold"]="Helvetica-Bold",e["Courier-Bold"]="Courier-Bold",e.ZapfDingbats="ZapfDingbats",e["Times-Italic"]="Times-Italic",e["Helvetica-Oblique"]="Helvetica-Oblique",e["Courier-Oblique"]="Courier-Oblique",e["Times-BoldItalic"]="Times-BoldItalic",e["Helvetica-BoldOblique"]="Helvetica-BoldOblique",e["Courier-BoldOblique"]="Courier-BoldOblique",e.ArialNarrow="Helvetica",e["ArialNarrow-Bold"]="Helvetica-Bold",e["ArialNarrow-BoldItalic"]="Helvetica-BoldOblique",e["ArialNarrow-Italic"]="Helvetica-Oblique",e.ArialBlack="Helvetica",e["ArialBlack-Bold"]="Helvetica-Bold",e["ArialBlack-BoldItalic"]="Helvetica-BoldOblique",e["ArialBlack-Italic"]="Helvetica-Oblique",e["Arial-Black"]="Helvetica",e["Arial-Black-Bold"]="Helvetica-Bold",e["Arial-Black-BoldItalic"]="Helvetica-BoldOblique",e["Arial-Black-Italic"]="Helvetica-Oblique",e.Arial="Helvetica",e["Arial-Bold"]="Helvetica-Bold",e["Arial-BoldItalic"]="Helvetica-BoldOblique",e["Arial-Italic"]="Helvetica-Oblique",e.ArialMT="Helvetica",e["Arial-BoldItalicMT"]="Helvetica-BoldOblique",e["Arial-BoldMT"]="Helvetica-Bold",e["Arial-ItalicMT"]="Helvetica-Oblique",e["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["Symbol-Bold"]="Symbol",e["Symbol-BoldItalic"]="Symbol",e["Symbol-Italic"]="Symbol",e.TimesNewRoman="Times-Roman",e["TimesNewRoman-Bold"]="Times-Bold",e["TimesNewRoman-BoldItalic"]="Times-BoldItalic",e["TimesNewRoman-Italic"]="Times-Italic",e.TimesNewRomanPS="Times-Roman",e["TimesNewRomanPS-Bold"]="Times-Bold",e["TimesNewRomanPS-BoldItalic"]="Times-BoldItalic",e["TimesNewRomanPS-BoldItalicMT"]="Times-BoldItalic",e["TimesNewRomanPS-BoldMT"]="Times-Bold",e["TimesNewRomanPS-Italic"]="Times-Italic",e["TimesNewRomanPS-ItalicMT"]="Times-Italic",e.TimesNewRomanPSMT="Times-Roman",e["TimesNewRomanPSMT-Bold"]="Times-Bold",e["TimesNewRomanPSMT-BoldItalic"]="Times-BoldItalic",e["TimesNewRomanPSMT-Italic"]="Times-Italic"}));t.getStdFontMap=i;var o=(0,n.getLookupTableFactory)((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"}));t.getFontNameToFileMap=o;var s=(0,n.getLookupTableFactory)((function(e){e.Calibri="Helvetica",e["Calibri-Bold"]="Helvetica-Bold",e["Calibri-BoldItalic"]="Helvetica-BoldOblique",e["Calibri-Italic"]="Helvetica-Oblique",e.CenturyGothic="Helvetica",e["CenturyGothic-Bold"]="Helvetica-Bold",e["CenturyGothic-BoldItalic"]="Helvetica-BoldOblique",e["CenturyGothic-Italic"]="Helvetica-Oblique",e.ComicSansMS="Comic Sans MS",e["ComicSansMS-Bold"]="Comic Sans MS-Bold",e["ComicSansMS-BoldItalic"]="Comic Sans MS-BoldItalic",e["ComicSansMS-Italic"]="Comic Sans MS-Italic",e.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"}));t.getNonStdFontMap=s;var c=(0,n.getLookupTableFactory)((function(e){e["Adobe Jenson"]=!0,e["Adobe Text"]=!0,e.Albertus=!0,e.Aldus=!0,e.Alexandria=!0,e.Algerian=!0,e["American Typewriter"]=!0,e.Antiqua=!0,e.Apex=!0,e.Arno=!0,e.Aster=!0,e.Aurora=!0,e.Baskerville=!0,e.Bell=!0,e.Bembo=!0,e["Bembo Schoolbook"]=!0,e.Benguiat=!0,e["Berkeley Old Style"]=!0,e["Bernhard Modern"]=!0,e["Berthold City"]=!0,e.Bodoni=!0,e["Bauer Bodoni"]=!0,e["Book Antiqua"]=!0,e.Bookman=!0,e["Bordeaux Roman"]=!0,e["Californian FB"]=!0,e.Calisto=!0,e.Calvert=!0,e.Capitals=!0,e.Cambria=!0,e.Cartier=!0,e.Caslon=!0,e.Catull=!0,e.Centaur=!0,e["Century Old Style"]=!0,e["Century Schoolbook"]=!0,e.Chaparral=!0,e["Charis SIL"]=!0,e.Cheltenham=!0,e["Cholla Slab"]=!0,e.Clarendon=!0,e.Clearface=!0,e.Cochin=!0,e.Colonna=!0,e["Computer Modern"]=!0,e["Concrete Roman"]=!0,e.Constantia=!0,e["Cooper Black"]=!0,e.Corona=!0,e.Ecotype=!0,e.Egyptienne=!0,e.Elephant=!0,e.Excelsior=!0,e.Fairfield=!0,e["FF Scala"]=!0,e.Folkard=!0,e.Footlight=!0,e.FreeSerif=!0,e["Friz Quadrata"]=!0,e.Garamond=!0,e.Gentium=!0,e.Georgia=!0,e.Gloucester=!0,e["Goudy Old Style"]=!0,e["Goudy Schoolbook"]=!0,e["Goudy Pro Font"]=!0,e.Granjon=!0,e["Guardian Egyptian"]=!0,e.Heather=!0,e.Hercules=!0,e["High Tower Text"]=!0,e.Hiroshige=!0,e["Hoefler Text"]=!0,e["Humana Serif"]=!0,e.Imprint=!0,e["Ionic No. 5"]=!0,e.Janson=!0,e.Joanna=!0,e.Korinna=!0,e.Lexicon=!0,e.LiberationSerif=!0,e["Liberation Serif"]=!0,e["Linux Libertine"]=!0,e.Literaturnaya=!0,e.Lucida=!0,e["Lucida Bright"]=!0,e.Melior=!0,e.Memphis=!0,e.Miller=!0,e.Minion=!0,e.Modern=!0,e["Mona Lisa"]=!0,e["Mrs Eaves"]=!0,e["MS Serif"]=!0,e["Museo Slab"]=!0,e["New York"]=!0,e["Nimbus Roman"]=!0,e["NPS Rawlinson Roadway"]=!0,e.NuptialScript=!0,e.Palatino=!0,e.Perpetua=!0,e.Plantin=!0,e["Plantin Schoolbook"]=!0,e.Playbill=!0,e["Poor Richard"]=!0,e["Rawlinson Roadway"]=!0,e.Renault=!0,e.Requiem=!0,e.Rockwell=!0,e.Roman=!0,e["Rotis Serif"]=!0,e.Sabon=!0,e.Scala=!0,e.Seagull=!0,e.Sistina=!0,e.Souvenir=!0,e.STIX=!0,e["Stone Informal"]=!0,e["Stone Serif"]=!0,e.Sylfaen=!0,e.Times=!0,e.Trajan=!0,e["Trinité"]=!0,e["Trump Mediaeval"]=!0,e.Utopia=!0,e["Vale Type"]=!0,e["Bitstream Vera"]=!0,e["Vera Serif"]=!0,e.Versailles=!0,e.Wanted=!0,e.Weiss=!0,e["Wide Latin"]=!0,e.Windsor=!0,e.XITS=!0}));t.getSerifFonts=c;var u=(0,n.getLookupTableFactory)((function(e){e.Dingbats=!0,e.Symbol=!0,e.ZapfDingbats=!0,e.Wingdings=!0,e["Wingdings-Bold"]=!0,e["Wingdings-Regular"]=!0}));t.getSymbolsFonts=u;var l=(0,n.getLookupTableFactory)((function(e){e[2]=10,e[3]=32,e[4]=33,e[5]=34,e[6]=35,e[7]=36,e[8]=37,e[9]=38,e[10]=39,e[11]=40,e[12]=41,e[13]=42,e[14]=43,e[15]=44,e[16]=45,e[17]=46,e[18]=47,e[19]=48,e[20]=49,e[21]=50,e[22]=51,e[23]=52,e[24]=53,e[25]=54,e[26]=55,e[27]=56,e[28]=57,e[29]=58,e[30]=894,e[31]=60,e[32]=61,e[33]=62,e[34]=63,e[35]=64,e[36]=65,e[37]=66,e[38]=67,e[39]=68,e[40]=69,e[41]=70,e[42]=71,e[43]=72,e[44]=73,e[45]=74,e[46]=75,e[47]=76,e[48]=77,e[49]=78,e[50]=79,e[51]=80,e[52]=81,e[53]=82,e[54]=83,e[55]=84,e[56]=85,e[57]=86,e[58]=87,e[59]=88,e[60]=89,e[61]=90,e[62]=91,e[63]=92,e[64]=93,e[65]=94,e[66]=95,e[67]=96,e[68]=97,e[69]=98,e[70]=99,e[71]=100,e[72]=101,e[73]=102,e[74]=103,e[75]=104,e[76]=105,e[77]=106,e[78]=107,e[79]=108,e[80]=109,e[81]=110,e[82]=111,e[83]=112,e[84]=113,e[85]=114,e[86]=115,e[87]=116,e[88]=117,e[89]=118,e[90]=119,e[91]=120,e[92]=121,e[93]=122,e[94]=123,e[95]=124,e[96]=125,e[97]=126,e[98]=196,e[99]=197,e[100]=199,e[101]=201,e[102]=209,e[103]=214,e[104]=220,e[105]=225,e[106]=224,e[107]=226,e[108]=228,e[109]=227,e[110]=229,e[111]=231,e[112]=233,e[113]=232,e[114]=234,e[115]=235,e[116]=237,e[117]=236,e[118]=238,e[119]=239,e[120]=241,e[121]=243,e[122]=242,e[123]=244,e[124]=246,e[125]=245,e[126]=250,e[127]=249,e[128]=251,e[129]=252,e[130]=8224,e[131]=176,e[132]=162,e[133]=163,e[134]=167,e[135]=8226,e[136]=182,e[137]=223,e[138]=174,e[139]=169,e[140]=8482,e[141]=180,e[142]=168,e[143]=8800,e[144]=198,e[145]=216,e[146]=8734,e[147]=177,e[148]=8804,e[149]=8805,e[150]=165,e[151]=181,e[152]=8706,e[153]=8721,e[154]=8719,e[156]=8747,e[157]=170,e[158]=186,e[159]=8486,e[160]=230,e[161]=248,e[162]=191,e[163]=161,e[164]=172,e[165]=8730,e[166]=402,e[167]=8776,e[168]=8710,e[169]=171,e[170]=187,e[171]=8230,e[179]=8220,e[180]=8221,e[181]=8216,e[182]=8217,e[200]=193,e[203]=205,e[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[672]=1488,e[673]=1489,e[674]=1490,e[675]=1491,e[676]=1492,e[677]=1493,e[678]=1494,e[679]=1495,e[680]=1496,e[681]=1497,e[682]=1498,e[683]=1499,e[684]=1500,e[685]=1501,e[686]=1502,e[687]=1503,e[688]=1504,e[689]=1505,e[690]=1506,e[691]=1507,e[692]=1508,e[693]=1509,e[694]=1510,e[695]=1511,e[696]=1512,e[697]=1513,e[698]=1514,e[705]=1524,e[706]=8362,e[710]=64288,e[711]=64298,e[759]=1617,e[761]=1776,e[763]=1778,e[775]=1652,e[777]=1764,e[778]=1780,e[779]=1781,e[780]=1782,e[782]=771,e[783]=64726,e[786]=8363,e[788]=8532,e[790]=768,e[791]=769,e[792]=768,e[795]=803,e[797]=64336,e[798]=64337,e[799]=64342,e[800]=64343,e[801]=64344,e[802]=64345,e[803]=64362,e[804]=64363,e[805]=64364,e[2424]=7821,e[2425]=7822,e[2426]=7823,e[2427]=7824,e[2428]=7825,e[2429]=7826,e[2430]=7827,e[2433]=7682,e[2678]=8045,e[2679]=8046,e[2830]=1552,e[2838]=686,e[2840]=751,e[2842]=753,e[2843]=754,e[2844]=755,e[2846]=757,e[2856]=767,e[2857]=848,e[2858]=849,e[2862]=853,e[2863]=854,e[2864]=855,e[2865]=861,e[2866]=862,e[2906]=7460,e[2908]=7462,e[2909]=7463,e[2910]=7464,e[2912]=7466,e[2913]=7467,e[2914]=7468,e[2916]=7470,e[2917]=7471,e[2918]=7472,e[2920]=7474,e[2921]=7475,e[2922]=7476,e[2924]=7478,e[2925]=7479,e[2926]=7480,e[2928]=7482,e[2929]=7483,e[2930]=7484,e[2932]=7486,e[2933]=7487,e[2934]=7488,e[2936]=7490,e[2937]=7491,e[2938]=7492,e[2940]=7494,e[2941]=7495,e[2942]=7496,e[2944]=7498,e[2946]=7500,e[2948]=7502,e[2950]=7504,e[2951]=7505,e[2952]=7506,e[2954]=7508,e[2955]=7509,e[2956]=7510,e[2958]=7512,e[2959]=7513,e[2960]=7514,e[2962]=7516,e[2963]=7517,e[2964]=7518,e[2966]=7520,e[2967]=7521,e[2968]=7522,e[2970]=7524,e[2971]=7525,e[2972]=7526,e[2974]=7528,e[2975]=7529,e[2976]=7530,e[2978]=1537,e[2979]=1538,e[2980]=1539,e[2982]=1549,e[2983]=1551,e[2984]=1552,e[2986]=1554,e[2987]=1555,e[2988]=1556,e[2990]=1623,e[2991]=1624,e[2995]=1775,e[2999]=1791,e[3002]=64290,e[3003]=64291,e[3004]=64292,e[3006]=64294,e[3007]=64295,e[3008]=64296,e[3011]=1900,e[3014]=8223,e[3015]=8244,e[3017]=7532,e[3018]=7533,e[3019]=7534,e[3075]=7590,e[3076]=7591,e[3079]=7594,e[3080]=7595,e[3083]=7598,e[3084]=7599,e[3087]=7602,e[3088]=7603,e[3091]=7606,e[3092]=7607,e[3095]=7610,e[3096]=7611,e[3099]=7614,e[3100]=7615,e[3103]=7618,e[3104]=7619,e[3107]=8337,e[3108]=8338,e[3116]=1884,e[3119]=1885,e[3120]=1885,e[3123]=1886,e[3124]=1886,e[3127]=1887,e[3128]=1887,e[3131]=1888,e[3132]=1888,e[3135]=1889,e[3136]=1889,e[3139]=1890,e[3140]=1890,e[3143]=1891,e[3144]=1891,e[3147]=1892,e[3148]=1892,e[3153]=580,e[3154]=581,e[3157]=584,e[3158]=585,e[3161]=588,e[3162]=589,e[3165]=891,e[3166]=892,e[3169]=1274,e[3170]=1275,e[3173]=1278,e[3174]=1279,e[3181]=7622,e[3182]=7623,e[3282]=11799,e[3316]=578,e[3379]=42785,e[3393]=1159,e[3416]=8377}));t.getGlyphMapForStandardFonts=l;var h=(0,n.getLookupTableFactory)((function(e){e[227]=322,e[264]=261,e[291]=346}));t.getSupplementalGlyphMapForArialBlack=h;var f=(0,n.getLookupTableFactory)((function(e){e[1]=32,e[4]=65,e[5]=192,e[6]=193,e[9]=196,e[17]=66,e[18]=67,e[21]=268,e[24]=68,e[28]=69,e[29]=200,e[30]=201,e[32]=282,e[38]=70,e[39]=71,e[44]=72,e[47]=73,e[48]=204,e[49]=205,e[58]=74,e[60]=75,e[62]=76,e[68]=77,e[69]=78,e[75]=79,e[76]=210,e[80]=214,e[87]=80,e[89]=81,e[90]=82,e[92]=344,e[94]=83,e[97]=352,e[100]=84,e[104]=85,e[109]=220,e[115]=86,e[116]=87,e[121]=88,e[122]=89,e[124]=221,e[127]=90,e[129]=381,e[258]=97,e[259]=224,e[260]=225,e[263]=228,e[268]=261,e[271]=98,e[272]=99,e[273]=263,e[275]=269,e[282]=100,e[286]=101,e[287]=232,e[288]=233,e[290]=283,e[295]=281,e[296]=102,e[336]=103,e[346]=104,e[349]=105,e[350]=236,e[351]=237,e[361]=106,e[364]=107,e[367]=108,e[371]=322,e[373]=109,e[374]=110,e[381]=111,e[382]=242,e[383]=243,e[386]=246,e[393]=112,e[395]=113,e[396]=114,e[398]=345,e[400]=115,e[401]=347,e[403]=353,e[410]=116,e[437]=117,e[442]=252,e[448]=118,e[449]=119,e[454]=120,e[455]=121,e[457]=253,e[460]=122,e[462]=382,e[463]=380,e[853]=44,e[855]=58,e[856]=46,e[876]=47,e[878]=45,e[882]=45,e[894]=40,e[895]=41,e[896]=91,e[897]=93,e[923]=64,e[1004]=48,e[1005]=49,e[1006]=50,e[1007]=51,e[1008]=52,e[1009]=53,e[1010]=54,e[1011]=55,e[1012]=56,e[1013]=57,e[1081]=37,e[1085]=43,e[1086]=45}));t.getSupplementalGlyphMapForCalibri=f},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.ToUnicodeMap=t.IdentityToUnicodeMap=void 0;var n=r(144);t.ToUnicodeMap=function(){function e(){M(this,e);var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this._map=t}return P(e,[{key:"length",get:function(){return this._map.length}},{key:"forEach",value:function(e){for(var t in this._map)e(t,this._map[t].charCodeAt(0))}},{key:"has",value:function(e){return void 0!==this._map[e]}},{key:"get",value:function(e){return this._map[e]}},{key:"charCodeOf",value:function(e){var t=this._map;if(t.length<=65536)return t.indexOf(e);for(var r in t)if(t[r]===e)return 0|r;return-1}},{key:"amend",value:function(e){for(var t in e)this._map[t]=e[t]}}]),e}(),t.IdentityToUnicodeMap=function(){function e(t,r){M(this,e),this.firstChar=t,this.lastChar=r}return P(e,[{key:"length",get:function(){return this.lastChar+1-this.firstChar}},{key:"forEach",value:function(e){for(var t=this.firstChar,r=this.lastChar;t<=r;t++)e(t,t)}},{key:"has",value:function(e){return this.firstChar<=e&&e<=this.lastChar}},{key:"get",value:function(e){if(this.firstChar<=e&&e<=this.lastChar)return String.fromCharCode(e)}},{key:"charCodeOf",value:function(e){return Number.isInteger(e)&&e>=this.firstChar&&e<=this.lastChar?e:-1}},{key:"amend",value:function(e){(0,n.unreachable)("Should not call amend()")}}]),e}()},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.CFFFont=void 0;var n=r(185),a=r(188),i=r(144);t.CFFFont=function(){function e(t,r){M(this,e),this.properties=r;var o=new n.CFFParser(t,r,a.SEAC_ANALYSIS_ENABLED);this.cff=o.parse(),this.cff.duplicateFirstGlyph();var s=new n.CFFCompiler(this.cff);this.seacs=this.cff.seacs;try{this.data=s.compile()}catch(e){(0,i.warn)("Failed to compile font "+r.loadedName),this.data=t}this._createBuiltInEncoding()}return P(e,[{key:"numGlyphs",get:function(){return this.cff.charStrings.count}},{key:"getCharset",value:function(){return this.cff.charset.charset}},{key:"getGlyphMapping",value:function(){var e,t,r=this.cff,n=this.properties,i=n.cidToGidMap,o=n.cMap,s=r.charset.charset;if(n.composite){var c,u;if((null==i?void 0:i.length)>0){c=Object.create(null);for(var l=0,h=i.length;l=0){var c=n[s];c&&(i[o]=c)}}i.length>0&&(this.properties.builtInEncoding=i)}}}]),e}()},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.FontRendererFactory=void 0,r(139),r(157),r(159),r(84),r(93),r(94),r(97),r(99),r(101),r(105),r(108),r(115);var n=r(144),a=r(185),i=r(189),o=r(187),s=r(154);function c(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}function u(e,t){return e[t]<<8|e[t+1]}function l(e,t){return(e[t]<<24|e[t+1]<<16)>>16}function h(e,t){return e[t]<<24>>24}function f(e,t){return l(e,t)/16384}function p(e){var t=e.length,r=32768;return t<1240?r=107:t<33900&&(r=1131),r}function g(e,t,r){var a,i,o,s=1===u(e,t+2)?c(e,t+8):c(e,t+16),l=u(e,t+s);if(4===l){u(e,t+s+2);var h=u(e,t+s+6)>>1;for(i=t+s+14,a=[],o=0;o>1;r0;)I.push({flags:o})}for(A=0;A>1,O=!0;break;case 4:h+=u.pop(),i(l,h),O=!0;break;case 5:for(;u.length>0;)l+=u.shift(),h+=u.shift(),s(l,h);break;case 6:for(;u.length>0&&(s(l+=u.shift(),h),0!==u.length);)h+=u.shift(),s(l,h);break;case 7:for(;u.length>0&&(h+=u.shift(),s(l,h),0!==u.length);)s(l+=u.shift(),h);break;case 8:for(;u.length>0;)v=l+u.shift(),b=h+u.shift(),y=v+u.shift(),k=b+u.shift(),l=y+u.shift(),h=k+u.shift(),c(v,b,y,k,l,h);break;case 10:if(A=u.pop(),C=null,r.isCFFCIDFont){var I=r.fdSelect.getFDIndex(a);if(I>=0&&IMath.abs(h-R)?l+=u.shift():h+=u.shift(),c(v,b,y,k,l,h);break;default:throw new n.FormatError("unknown operator: 12 ".concat(F))}break;case 14:if(u.length>=4){var N=u.pop(),D=u.pop();h=u.pop(),l=u.pop(),t.push({cmd:"save"},{cmd:"translate",args:[l,h]});var B=m(r.cmap,String.fromCharCode(r.glyphNameMap[o.StandardEncoding[N]]));w(r.glyphs[B.glyphId],t,r,B.glyphId),t.push({cmd:"restore"}),B=m(r.cmap,String.fromCharCode(r.glyphNameMap[o.StandardEncoding[D]])),w(r.glyphs[B.glyphId],t,r,B.glyphId)}return;case 19:case 20:g+=(f+=u.length>>1)+7>>3,O=!0;break;case 21:h+=u.pop(),i(l+=u.pop(),h),O=!0;break;case 22:i(l+=u.pop(),h),O=!0;break;case 24:for(;u.length>2;)v=l+u.shift(),b=h+u.shift(),y=v+u.shift(),k=b+u.shift(),l=y+u.shift(),h=k+u.shift(),c(v,b,y,k,l,h);l+=u.shift(),h+=u.shift(),s(l,h);break;case 25:for(;u.length>6;)l+=u.shift(),h+=u.shift(),s(l,h);v=l+u.shift(),b=h+u.shift(),y=v+u.shift(),k=b+u.shift(),l=y+u.shift(),h=k+u.shift(),c(v,b,y,k,l,h);break;case 26:for(u.length%2&&(l+=u.shift());u.length>0;)v=l,b=h+u.shift(),y=v+u.shift(),k=b+u.shift(),l=y,h=k+u.shift(),c(v,b,y,k,l,h);break;case 27:for(u.length%2&&(h+=u.shift());u.length>0;)c(v=l+u.shift(),b=h,y=v+u.shift(),k=b+u.shift(),l=y+u.shift(),h=k);break;case 28:u.push((d[g]<<24|d[g+1]<<16)>>16),g+=2;break;case 29:A=u.pop()+r.gsubrsBias,(C=r.gsubrs[A])&&e(C);break;case 30:for(;u.length>0&&(v=l,b=h+u.shift(),y=v+u.shift(),k=b+u.shift(),l=y+u.shift(),h=k+(1===u.length?u.shift():0),c(v,b,y,k,l,h),0!==u.length);)v=l+u.shift(),b=h,y=v+u.shift(),k=b+u.shift(),h=k+u.shift(),c(v,b,y,k,l=y+(1===u.length?u.shift():0),h);break;case 31:for(;u.length>0&&(v=l+u.shift(),b=h,y=v+u.shift(),k=b+u.shift(),h=k+u.shift(),c(v,b,y,k,l=y+(1===u.length?u.shift():0),h),0!==u.length);)v=l,b=h+u.shift(),y=v+u.shift(),k=b+u.shift(),l=y+u.shift(),h=k+(1===u.length?u.shift():0),c(v,b,y,k,l,h);break;default:if(F<32)throw new n.FormatError("unknown operator: ".concat(F));F<247?u.push(F-139):F<251?u.push(256*(F-247)+d[g++]+108):F<255?u.push(256*-(F-251)-d[g++]-108):(u.push((d[g]<<24|d[g+1]<<16|d[g+2]<<8|d[g+3])/65536),g+=4)}O&&(u.length=0)}}(e)}var k=[],x=function(){function e(t){M(this,e),this.constructor===e&&(0,n.unreachable)("Cannot initialize CompiledFont."),this.fontMatrix=t,this.compiledGlyphs=Object.create(null),this.compiledCharCodeToGlyphId=Object.create(null)}return P(e,[{key:"getPathJs",value:function(e){var t=m(this.cmap,e),r=t.charCode,n=t.glyphId,a=this.compiledGlyphs[n];if(!a)try{a=this.compileGlyph(this.glyphs[n],n),this.compiledGlyphs[n]=a}catch(e){throw this.compiledGlyphs[n]=k,void 0===this.compiledCharCodeToGlyphId[r]&&(this.compiledCharCodeToGlyphId[r]=n),e}return void 0===this.compiledCharCodeToGlyphId[r]&&(this.compiledCharCodeToGlyphId[r]=n),a}},{key:"compileGlyph",value:function(e,t){if(!e||0===e.length||14===e[0])return k;var r=this.fontMatrix;if(this.isCFFCIDFont){var a=this.fdSelect.getFDIndex(t);a>=0&&a131070,n=r?4:2,a=new DataView(new ArrayBuffer((this.glyphs.length+1)*n));r?a.setUint32(0,0):a.setUint16(0,0);var i,o=0,s=0,c=x(this.glyphs);try{for(c.s();!(i=c.n()).done;)o=(o+=i.value.write(o,t))+3&-4,s+=n,r?a.setUint32(s,o):a.setUint16(s,o>>1)}catch(e){c.e(e)}finally{c.f()}return{isLocationLong:r,loca:new Uint8Array(a.buffer),glyf:new Uint8Array(t.buffer)}}},{key:"scale",value:function(e){for(var t=0,r=this.glyphs.length;t255?t+=2:l>0&&(t+=1),r=c,(l=Math.abs(u-n))>255?t+=2:l>0&&(t+=1),n=u}}}catch(e){a.e(e)}finally{a.f()}return t}},{key:"write",value:function(e,t){var r,n=e,a=[],i=[],o=[],s=0,c=0,u=x(this.contours);try{for(u.s();!(r=u.n()).done;){for(var l=r.value,h=0,f=l.xCoordinates.length;h=0?18:2,a.push(v)):a.push(g)}s=p;var m=l.yCoordinates[h];if(0==(g=m-c))d|=32,i.push(0);else{var y=Math.abs(g);y<=255?(d|=g>=0?36:4,i.push(y)):i.push(g)}c=m,o.push(d)}t.setUint16(e,a.length-1),e+=2}}catch(e){u.e(e)}finally{u.f()}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(var b=0,w=o;b=-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}},{key:"write",value:function(e,t){var r=e;return 2&this.flags?this.argument1>=-128&&this.argument1<=127&&this.argument2>=-128&&this.argument2<=127||(this.flags|=1):this.argument1>=0&&this.argument1<=255&&this.argument2>=0&&this.argument2<=255||(this.flags|=1),t.setUint16(e,this.flags),t.setUint16(e+2,this.glyphIndex),e+=4,1&this.flags?(2&this.flags?(t.setInt16(e,this.argument1),t.setInt16(e+2,this.argument2)):(t.setUint16(e,this.argument1),t.setUint16(e+2,this.argument2)),e+=4):(t.setUint8(e,this.argument1),t.setUint8(e+1,this.argument2),e+=2),256&this.flags&&(t.setUint16(e,this.instructions.length),e+=2,this.instructions.length&&(new Uint8Array(t.buffer,0,t.buffer.byteLength).set(this.instructions,e),e+=this.instructions.length)),e-r}},{key:"scale",value:function(e,t){}}],[{key:"parse",value:function(t,r){var n,a,i=t,o=[],s=r.getUint16(t),c=r.getUint16(t+2);t+=4,1&s?(2&s?(n=r.getInt16(t),a=r.getInt16(t+2)):(n=r.getUint16(t),a=r.getUint16(t+2)),t+=4,s^=1):(2&s?(n=r.getInt8(t),a=r.getInt8(t+1)):(n=r.getUint8(t),a=r.getUint8(t+1)),t+=2),8&s?(o.push(r.getUint16(t)),t+=2):64&s?(o.push(r.getUint16(t),r.getUint16(t+2)),t+=4):128&s&&(o.push(r.getUint16(t),r.getUint16(t+2),r.getUint16(t+4),r.getUint16(t+6)),t+=8);var u=null;if(256&s){var l=r.getUint16(t);t+=2,u=new Uint8Array(r).slice(t,t+l),t+=l}return[t-i,new e({flags:s,glyphIndex:c,argument1:n,argument2:a,transf:o,instructions:u})]}}]),e}()},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.OpenTypeFileBuilder=void 0,r(84),r(93),r(94),r(97),r(99),r(101),r(105),r(108),r(115),r(139),r(2);var n=r(149),a=r(144);function i(e,t,r){e[t]=r>>8&255,e[t+1]=255&r}function o(e,t,r){e[t]=r>>24&255,e[t+1]=r>>16&255,e[t+2]=r>>8&255,e[t+3]=255&r}function s(e,t,r){if(r instanceof Uint8Array)e.set(r,t);else if("string"==typeof r)for(var n=0,a=r.length;n>>0,v.push(g);var m=new Uint8Array(g);for(u=0;u>>0;o(m,g+4,b),o(m,g+8,v[u]),o(m,g+12,r[d].length),g+=16}return m}},{key:"addTable",value:function(e,t){if(e in this.tables)throw new Error("Table "+e+" already exists");this.tables[e]=t}}],[{key:"getSearchParams",value:function(e,t){for(var r=1,n=0;(r^e)>r;)r<<=1,n++;var a=r*t;return{range:a,entry:n,rangeShift:t*e-a}}}]),e}();t.OpenTypeFileBuilder=c},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.Type1Font=void 0,r(139);var n=r(185),a=r(144),i=r(188),o=r(149),s=r(154),c=r(199);function u(e,t,r){for(var n=e.length,a=t.length,i=n-a,s=r,c=!1;s=a){for(s+=u;s=0&&(o[l]=s);return(0,i.type1FontGlyphMapping)(e,o,c)}},{key:"hasGlyphId",value:function(e){return!(e<0||e>=this.numGlyphs)&&(0===e||this.charstrings[e-1].charstring.length>0)}},{key:"getSeacs",value:function(e){for(var t=[],r=0,n=e.length;r0;b--)y[b]-=y[b-1];g.setByName(m,y)}}o.topDict.privateDict=g;var w=new n.CFFIndex;for(u=0,l=a.length;ua)return!0;for(var i=a-e,o=i;o>8&255,255&s):(s=65536*s|0,this.output.push(255,s>>24&255,s>>16&255,s>>8&255,255&s))}return(n=this.output).push.apply(n,f(t)),r?this.stack.splice(i,e):this.stack.length=0,!1}}]),e}();function w(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function k(e,t,r){if(r>=e.length)return new Uint8Array(0);var n,a,i=0|t;for(n=0;n>8,i=52845*(c+i)+22719&65535}return s}function x(e){return 47===e||91===e||93===e||123===e||125===e||40===e||41===e}t.Type1Parser=function(){function e(t,r,n){if(M(this,e),r){var o=t.getBytes(),s=!((w(o[0])||(0,a.isWhiteSpace)(o[0]))&&w(o[1])&&w(o[2])&&w(o[3])&&w(o[4])&&w(o[5])&&w(o[6])&&w(o[7]));t=new i.Stream(s?k(o,55665,4):function(e,t,r){var n,a,i=55665,o=e.length,s=new Uint8Array(o>>>1);for(n=0,a=0;n>8,i=52845*(l+i)+22719&65535}}}return s.slice(4,a)}(o))}this.seacAnalysisEnabled=!!n,this.stream=t,this.nextChar()}return P(e,[{key:"readNumberArray",value:function(){this.getToken();for(var e=[];;){var t=this.getToken();if(null===t||"]"===t||"}"===t)break;e.push(parseFloat(t||0))}return e}},{key:"readNumber",value:function(){var e=this.getToken();return parseFloat(e||0)}},{key:"readInt",value:function(){var e=this.getToken();return 0|parseInt(e||0,10)}},{key:"readBoolean",value:function(){return"true"===this.getToken()?1:0}},{key:"nextChar",value:function(){return this.currentChar=this.stream.getByte()}},{key:"prevChar",value:function(){return this.stream.skip(-2),this.currentChar=this.stream.getByte()}},{key:"getToken",value:function(){for(var e=!1,t=this.currentChar;;){if(-1===t)return null;if(e)10!==t&&13!==t||(e=!1);else if(37===t)e=!0;else if(!(0,a.isWhiteSpace)(t))break;t=this.nextChar()}if(x(t))return this.nextChar(),String.fromCharCode(t);var r="";do{r+=String.fromCharCode(t),t=this.nextChar()}while(t>=0&&!(0,a.isWhiteSpace)(t)&&!x(t));return r}},{key:"readCharStrings",value:function(e,t){return-1===t?e:k(e,4330,t)}},{key:"extractFontProgram",value:function(e){var t=this.stream,r=[],n=[],a=Object.create(null);a.lenIV=4;for(var i,o,s,c,u={subrs:[],charstrings:[],properties:{privateData:a}};null!==(i=this.getToken());)if("/"===i)switch(i=this.getToken()){case"CharStrings":for(this.getToken(),this.getToken(),this.getToken(),this.getToken();null!==(i=this.getToken())&&"end"!==i;)if("/"===i){var l=this.getToken();o=this.readInt(),this.getToken(),s=o>0?t.getBytes(o):new Uint8Array(0),c=u.properties.privateData.lenIV;var h=this.readCharStrings(s,c);this.nextChar(),"noaccess"===(i=this.getToken())?this.getToken():"/"===i&&this.prevChar(),n.push({glyph:l,encoded:h})}break;case"Subrs":for(this.readInt(),this.getToken();"dup"===this.getToken();){var f=this.readInt();o=this.readInt(),this.getToken(),s=o>0?t.getBytes(o):new Uint8Array(0),c=u.properties.privateData.lenIV;var d=this.readCharStrings(s,c);this.nextChar(),"noaccess"===(i=this.getToken())&&this.getToken(),r[f]=d}break;case"BlueValues":case"OtherBlues":case"FamilyBlues":case"FamilyOtherBlues":var p=this.readNumberArray();p.length>0&&p.length;break;case"StemSnapH":case"StemSnapV":u.properties.privateData[i]=this.readNumberArray();break;case"StdHW":case"StdVW":u.properties.privateData[i]=this.readNumberArray()[0];break;case"BlueShift":case"lenIV":case"BlueFuzz":case"BlueScale":case"LanguageGroup":u.properties.privateData[i]=this.readNumber();break;case"ExpansionFactor":u.properties.privateData[i]=this.readNumber()||.06;break;case"ForceBold":u.properties.privateData[i]=this.readBoolean()}for(var g=0,v=n;g-1&&void 0===e.widths[C]&&C>=e.firstChar&&C<=e.lastChar&&(e.widths[C]=k.width)}}return u}},{key:"extractFontHeader",value:function(e){for(var t;null!==(t=this.getToken());)if("/"===t)switch(t=this.getToken()){case"FontMatrix":var r=this.readNumberArray();e.fontMatrix=r;break;case"Encoding":var a=this.getToken(),i=void 0;if(/^\d+$/.test(a)){i=[];var o=0|parseInt(a,10);this.getToken();for(var s=0;s=g||P<=0)return(0,a.info)("Bad shading domain."),p(u);var N,D=new Float32Array(l.numComps),B=new Float32Array(1),L=0;B[0]=f,E(B,0,D,0);var _=l.getRgb(D,0),j=a.Util.makeHexColor(_[0],_[1],_[2]);R.push([0,j]);var U=1;B[0]=f+P,E(B,0,D,0);for(var $=l.getRgb(D,0),X=$[0]-_[0]+1,H=$[1]-_[1]+1,q=$[2]-_[2]+1,z=$[0]-_[0]-1,G=$[1]-_[1]-1,W=$[2]-_[2]-1,V=2;V<840;V++){B[0]=f+V*P,E(B,0,D,0),N=l.getRgb(D,0);var K=V-L;if(X=Math.min(X,(N[0]-_[0]+1)/K),H=Math.min(H,(N[1]-_[1]+1)/K),q=Math.min(q,(N[2]-_[2]+1)/K),z=Math.max(z,(N[0]-_[0]-1)/K),G=Math.max(G,(N[1]-_[1]-1)/K),W=Math.max(W,(N[2]-_[2]-1)/K),!(z<=X&&G<=H&&W<=q)){var Y=a.Util.makeHexColor($[0],$[1],$[2]);R.push([U/840,Y]),X=N[0]-$[0]+1,H=N[1]-$[1]+1,q=N[2]-$[2]+1,z=N[0]-$[0]-1,G=N[1]-$[1]-1,W=N[2]-$[2]-1,L=U,_=$}U=V,$=N}var J=a.Util.makeHexColor($[0],$[1],$[2]);R.push([1,J]);var Z="transparent";return e.has("Background")&&(N=l.getRgb(e.get("Background"),0),Z=a.Util.makeHexColor(N[0],N[1],N[2])),m||(R.unshift([0,Z]),R[1][0]+=c.SMALL_NUMBER),y||(R.at(-1)[0]-=c.SMALL_NUMBER,R.push([1,Z])),u.colorStops=R,u}return y(t,e),P(t,[{key:"getIR",value:function(){var e,t,r,n,i,o=this.coordsArr,s=this.shadingType;return 2===s?(t=[o[0],o[1]],r=[o[2],o[3]],n=null,i=null,e="axial"):3===s?(t=[o[0],o[1]],r=[o[3],o[4]],n=o[2],i=o[5],e="radial"):(0,a.unreachable)("getPattern type unknown: ".concat(s)),["RadialAxial",e,this.bbox,this.colorStops,t,r,n,i]}}]),t}(c),l=function(){function e(t,r){M(this,e),this.stream=t,this.context=r,this.buffer=0,this.bufferLength=0;var n=r.numComps;this.tmpCompsBuf=new Float32Array(n);var a=r.colorSpace.numComps;this.tmpCsCompsBuf=r.colorFn?new Float32Array(a):this.tmpCompsBuf}return P(e,[{key:"hasData",get:function(){if(this.stream.end)return this.stream.pos0)return!0;var e=this.stream.getByte();return!(e<0||(this.buffer=e,this.bufferLength=8,0))}},{key:"readBits",value:function(e){var t=this.buffer,r=this.bufferLength;if(32===e){if(0===r)return(this.stream.getByte()<<24|this.stream.getByte()<<16|this.stream.getByte()<<8|this.stream.getByte())>>>0;t=t<<24|this.stream.getByte()<<16|this.stream.getByte()<<8|this.stream.getByte();var n=this.stream.getByte();return this.buffer=n&(1<>r)>>>0}if(8===e&&0===r)return this.stream.getByte();for(;r>r}},{key:"align",value:function(){this.buffer=0,this.bufferLength=0}},{key:"readFlag",value:function(){return this.readBits(this.context.bitsPerFlag)}},{key:"readCoordinate",value:function(){var e=this.context.bitsPerCoordinate,t=this.readBits(e),r=this.readBits(e),n=this.context.decode,a=e<32?1/((1<o?o:e,t=t>s?s:t,r=r>c)*l,u&=(1<r?e=r:e0&&(u=h[i-1]);var l=a[1];i>1,d=a.length>>1,g=new p(l),v=Object.create(null),m=8192,y=new Float32Array(d);return function(e,t,r,n){var a,i,o="",c=y;for(a=0;a(b=s[2*a+1]))&&(i=b),l[a]=i}m>0&&(m--,v[o]=l),r.set(l,n)}else r.set(u,n)}}}]),e}(),h=function(){function e(t){M(this,e),this.stack=t?Array.from(t):[]}return P(e,[{key:"push",value:function(t){if(this.stack.length>=e.MAX_STACK_SIZE)throw new Error("PostScript function stack overflow.");this.stack.push(t)}},{key:"pop",value:function(){if(this.stack.length<=0)throw new Error("PostScript function stack underflow.");return this.stack.pop()}},{key:"copy",value:function(t){if(this.stack.length+t>=e.MAX_STACK_SIZE)throw new Error("PostScript function stack overflow.");for(var r=this.stack,n=r.length-t,a=t-1;a>=0;a--,n++)r.push(r[n])}},{key:"index",value:function(e){this.push(this.stack[this.stack.length-e-1])}},{key:"roll",value:function(e,t){for(var r=this.stack,n=r.length-e,a=r.length-1,i=n+(t-Math.floor(t/e)*e),o=n,s=a;o0?a.push(r<>n);break;case"ceiling":r=a.pop(),a.push(Math.ceil(r));break;case"copy":r=a.pop(),a.copy(r);break;case"cos":r=a.pop(),a.push(Math.cos(r%360/180*Math.PI));break;case"cvi":r=0|a.pop(),a.push(r);break;case"cvr":break;case"div":n=a.pop(),r=a.pop(),a.push(r/n);break;case"dup":a.copy(1);break;case"eq":n=a.pop(),r=a.pop(),a.push(r===n);break;case"exch":a.roll(2,1);break;case"exp":n=a.pop(),r=a.pop(),a.push(Math.pow(r,n));break;case"false":a.push(!1);break;case"floor":r=a.pop(),a.push(Math.floor(r));break;case"ge":n=a.pop(),r=a.pop(),a.push(r>=n);break;case"gt":n=a.pop(),r=a.pop(),a.push(r>n);break;case"idiv":n=a.pop(),r=a.pop(),a.push(r/n|0);break;case"index":r=a.pop(),a.index(r);break;case"le":n=a.pop(),r=a.pop(),a.push(r<=n);break;case"ln":r=a.pop(),a.push(Math.log(r));break;case"log":r=a.pop(),a.push(Math.log10(r));break;case"lt":n=a.pop(),r=a.pop(),a.push(r=t?new m(t):e.max<=t?e:new w(e,t)}var T=function(){function e(){M(this,e)}return P(e,[{key:"compile",value:function(e,t,r){for(var n,a,i,o,s,c,u,l,h=[],d=[],p=t.length>>1,g=r.length>>1,y=0,b=0;bB.min&&(U.unshift("Math.max(",_,", "),U.push(")")),j=0&&(t>=65&&t<=90||t>=97&&t<=122);)r.push(String.fromCharCode(t));var n=r.join("");switch(n.toLowerCase()){case"if":return s.IF;case"ifelse":return s.IFELSE;default:return s.getOperator(n)}}},{key:"getNumber",value:function(){var e=this.currentChar,t=this.strBuf;for(t.length=0,t[0]=String.fromCharCode(e);(e=this.nextChar())>=0&&(e>=48&&e<=57||45===e||46===e);)t.push(String.fromCharCode(e));var r=parseFloat(t.join(""));if(isNaN(r))throw new n.FormatError("Invalid floating point number: ".concat(r));return r}}]),e}()},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.RegionalImageCache=t.LocalTilingPatternCache=t.LocalImageCache=t.LocalGStateCache=t.LocalFunctionCache=t.LocalColorSpaceCache=t.GlobalImageCache=void 0,r(2),r(116),r(126),r(128),r(131),r(133),r(135),r(137);var a=r(144),i=r(150),o=function(){function e(t){M(this,e),this.constructor===e&&(0,a.unreachable)("Cannot initialize BaseLocalCache."),this._onlyRefs=!0===(null==t?void 0:t.onlyRefs),this._onlyRefs||(this._nameRefMap=new Map,this._imageMap=new Map),this._imageCache=new i.RefSetCache}return P(e,[{key:"getByName",value:function(e){this._onlyRefs&&(0,a.unreachable)("Should not call `getByName` method.");var t=this._nameRefMap.get(e);return t?this.getByRef(t):this._imageMap.get(e)||null}},{key:"getByRef",value:function(e){return this._imageCache.get(e)||null}},{key:"set",value:function(e,t,r){(0,a.unreachable)("Abstract method `set` called.")}}]),e}();t.LocalImageCache=function(e){function t(){return M(this,t),d(this,t,arguments)}return y(t,e),P(t,[{key:"set",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2?arguments[2]:void 0;if("string"!=typeof e)throw new Error('LocalImageCache.set - expected "name" argument.');if(t){if(this._imageCache.has(t))return;this._nameRefMap.set(e,t),this._imageCache.put(t,r)}else this._imageMap.has(e)||this._imageMap.set(e,r)}}]),t}(o),t.LocalColorSpaceCache=function(e){function t(){return M(this,t),d(this,t,arguments)}return y(t,e),P(t,[{key:"set",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2?arguments[2]:void 0;if("string"!=typeof e&&!t)throw new Error('LocalColorSpaceCache.set - expected "name" and/or "ref" argument.');if(t){if(this._imageCache.has(t))return;null!==e&&this._nameRefMap.set(e,t),this._imageCache.put(t,r)}else this._imageMap.has(e)||this._imageMap.set(e,r)}}]),t}(o),t.LocalFunctionCache=function(e){function t(e){return M(this,t),d(this,t,[{onlyRefs:!0}])}return y(t,e),P(t,[{key:"set",value:function(){var e=arguments.length>1?arguments[1]:void 0,t=arguments.length>2?arguments[2]:void 0;if(!e)throw new Error('LocalFunctionCache.set - expected "ref" argument.');this._imageCache.has(e)||this._imageCache.put(e,t)}}]),t}(o),t.LocalGStateCache=function(e){function t(){return M(this,t),d(this,t,arguments)}return y(t,e),P(t,[{key:"set",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2?arguments[2]:void 0;if("string"!=typeof e)throw new Error('LocalGStateCache.set - expected "name" argument.');if(t){if(this._imageCache.has(t))return;this._nameRefMap.set(e,t),this._imageCache.put(t,r)}else this._imageMap.has(e)||this._imageMap.set(e,r)}}]),t}(o),t.LocalTilingPatternCache=function(e){function t(e){return M(this,t),d(this,t,[{onlyRefs:!0}])}return y(t,e),P(t,[{key:"set",value:function(){var e=arguments.length>1?arguments[1]:void 0,t=arguments.length>2?arguments[2]:void 0;if(!e)throw new Error('LocalTilingPatternCache.set - expected "ref" argument.');this._imageCache.has(e)||this._imageCache.put(e,t)}}]),t}(o),t.RegionalImageCache=function(e){function t(e){return M(this,t),d(this,t,[{onlyRefs:!0}])}return y(t,e),P(t,[{key:"set",value:function(){var e=arguments.length>1?arguments[1]:void 0,t=arguments.length>2?arguments[2]:void 0;if(!e)throw new Error('RegionalImageCache.set - expected "ref" argument.');this._imageCache.has(e)||this._imageCache.put(e,t)}}]),t}(o);var s=function(){function e(){M(this,e),this._refCache=new i.RefSetCache,this._imageCache=new i.RefSetCache}return P(e,[{key:"_byteSize",get:function(){var e,t=0,r=x(this._imageCache);try{for(r.s();!(e=r.n()).done;)t+=e.value.byteSize}catch(e){r.e(e)}finally{r.f()}return t}},{key:"_cacheLimitReached",get:function(){return!(this._imageCache.size0&&void 0!==arguments[0]&&arguments[0]||this._refCache.clear(),this._imageCache.clear()}}]),e}();n(s,"NUM_PAGES_THRESHOLD",2),n(s,"MIN_IMAGES_TO_CACHE",10),n(s,"MAX_BYTE_SIZE",5*a.MAX_IMAGE_SIZE_TO_CACHE),t.GlobalImageCache=s},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.bidi=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],p=!0,g=e.length;if(0===g||r)return h(e,p,r);f.length=g,d.length=g;var v,m,y=0;for(v=0;v4?(p=!0,t=0):(p=!1,t=1));var k=[];for(v=0;v=0&&"ET"===d[F];--F)d[F]="EN";for(var I=v+1;I0&&(M=d[v-1]);var E=C;T+1P&&o(P)&&(N=P);for(P=R;P>=N;--P){var D=-1;for(v=0,m=k.length;v=0&&(l(f,D,v),D=-1):D<0&&(D=v);D>=0&&l(f,D,k.length)}for(v=0,m=f.length;v"!==B||(f[v]="")}return h(f.join(""),p)};var n=r(144),a=["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"],i=["AN","AN","AN","AN","AN","AN","ON","ON","AL","ET","ET","AL","CS","AL","ON","ON","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","ON","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","ON","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL"];function o(e){return 0!=(1&e)}function s(e){return 0==(1&e)}function c(e,t,r){var n,a;for(n=t,a=e.length;n2&&void 0!==arguments[2]&&arguments[2]?r="ttb":t||(r="rtl"),{str:e,dir:r}}var f=[],d=[]},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.getFontSubstitution=function(e,t,r,f,d){var p=f=(0,n.normalizeFontName)(f),g=e.get(p);if(g)return g;var v=u.get(f);if(!v){var m,y=x(l);try{for(y.s();!(m=y.n()).done;){var b=S(m.value,2),w=b[0],k=b[1];if(f.startsWith(w)){f="".concat(k).concat(f.substring(w.length)),v=u.get(f);break}}}catch(e){y.e(e)}finally{y.f()}}var A=!1;v||(v=u.get(d),A=!0);var C="".concat(t.getDocId(),"_s").concat(t.createFontId());if(!v){if(!(0,a.validateFontName)(f))return e.set(p,null),null;var O=/bold/gi.test(f),F=/oblique|italic/gi.test(f);return g={css:C,guessFallback:!0,loadedName:C,baseFontName:f,src:"local(".concat(f,")"),style:O&&F&&c||O&&o||F&&s||i},e.set(p,g),g}var I=[];A&&(0,a.validateFontName)(f)&&I.push("local(".concat(f,")"));var T=h(v,I,r),M=T.style,E=T.ultimate,P=null===E;return g={css:"".concat(C).concat(P?"":",".concat(E)),guessFallback:P,loadedName:C,baseFontName:f,src:I.join(","),style:M},e.set(p,g),g},r(139);var n=r(188),a=r(149),i={style:"normal",weight:"normal"},o={style:"normal",weight:"bold"},s={style:"italic",weight:"normal"},c={style:"italic",weight:"bold"},u=new Map([["Times-Roman",{local:["Times New Roman","Times-Roman","Times","Liberation Serif","Nimbus Roman","Nimbus Roman L","Tinos","Thorndale","TeX Gyre Termes","FreeSerif","DejaVu Serif","Bitstream Vera Serif","Ubuntu"],style:i,ultimate:"serif"}],["Times-Bold",{alias:"Times-Roman",style:o,ultimate:"serif"}],["Times-Italic",{alias:"Times-Roman",style:s,ultimate:"serif"}],["Times-BoldItalic",{alias:"Times-Roman",style:c,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:i,ultimate:"sans-serif"}],["Helvetica-Bold",{alias:"Helvetica",path:"LiberationSans-Bold.ttf",style:o,ultimate:"sans-serif"}],["Helvetica-Oblique",{alias:"Helvetica",path:"LiberationSans-Italic.ttf",style:s,ultimate:"sans-serif"}],["Helvetica-BoldOblique",{alias:"Helvetica",path:"LiberationSans-BoldItalic.ttf",style:c,ultimate:"sans-serif"}],["Courier",{local:["Courier","Courier New","Liberation Mono","Nimbus Mono","Nimbus Mono L","Cousine","Cumberland","TeX Gyre Cursor","FreeMono"],style:i,ultimate:"monospace"}],["Courier-Bold",{alias:"Courier",style:o,ultimate:"monospace"}],["Courier-Oblique",{alias:"Courier",style:s,ultimate:"monospace"}],["Courier-BoldOblique",{alias:"Courier",style:c,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:i,fallback:"Helvetica"}],["ArialNarrow-Bold",{alias:"ArialNarrow",style:o,fallback:"Helvetica-Bold"}],["ArialNarrow-Italic",{alias:"ArialNarrow",style:s,fallback:"Helvetica-Oblique"}],["ArialNarrow-BoldItalic",{alias:"ArialNarrow",style:c,fallback:"Helvetica-BoldOblique"}],["Calibri",{local:["Calibri","Carlito"],style:i,fallback:"Helvetica"}],["Calibri-Bold",{alias:"Calibri",style:o,fallback:"Helvetica-Bold"}],["Calibri-Italic",{alias:"Calibri",style:s,fallback:"Helvetica-Oblique"}],["Calibri-BoldItalic",{alias:"Calibri",style:c,fallback:"Helvetica-BoldOblique"}],["Wingdings",{local:["Wingdings","URW Dingbats"],style:i}],["Wingdings-Regular",{alias:"Wingdings"}],["Wingdings-Bold",{alias:"Wingdings"}]]),l=new Map([["Arial-Black","ArialBlack"]]);function h(e,t,r){var n=e.alias,a=e.local,i=e.path,l=e.fallback,f=e.style,d=e.ultimate,p=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],g=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],v=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"",m={style:null,ultimate:null};if(a){var y,b=v?" ".concat(v):"",w=x(a);try{for(w.s();!(y=w.n()).done;){var k=y.value;t.push("local(".concat(k).concat(b,")"))}}catch(e){w.e(e)}finally{w.f()}}if(n){var S=u.get(n),A=v||function(e){switch(e){case o:return"Bold";case s:return"Italic";case c:return"Bold Italic";default:if("bold"===(null==e?void 0:e.weight))return"Bold";if("italic"===(null==e?void 0:e.style))return"Italic"}return""}(f);Object.assign(m,h(S,t,r,p&&!l,g&&!i,A))}if(f&&(m.style=f),d&&(m.ultimate=d),p&&l){var C=h(u.get(l),t,r,p,g&&!i,v).ultimate;m.ultimate||(m.ultimate=C)}return g&&i&&r&&t.push("url(".concat(r).concat(i,")")),m}},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.ImageResizer=void 0,r(84),r(93),r(94),r(97),r(99),r(101),r(105),r(108),r(115),r(2);var n=r(144),a=function(){function e(t,r){M(this,e),this._imgData=t,this._isMask=r}var t,r;return P(e,[{key:"_createImage",value:(r=T(k().mark((function t(){var r,n,a,i,o,s,c,u,l,h,f,d,p,g,v,m,y,b,w,S,A,C;return k().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=this._encodeBMP(),n=new Blob([r.buffer],{type:"image/bmp"}),a=createImageBitmap(n),i=e.MAX_AREA,o=e.MAX_DIM,s=this._imgData,c=s.width,u=s.height,l=Math.max(c/o,u/o,Math.sqrt(c*u/i)),h=Math.max(l,2),f=Math.round(10*(l+1.25))/10/h,d=Math.floor(Math.log2(f)),(p=new Array(d+2).fill(2))[0]=h,p.splice(-1,1,f/(1<>3,h=l+3&-4;if(l!==h){for(var f=new Uint8Array(h*a),d=0,p=0,g=a*l;pr||t>r)return!0;var n=e*t;return this._hasMaxArea?n>this.MAX_AREA:!(n(this.MAX_AREA=Math.pow(this._goodSquareLength,2))))}},{key:"MAX_DIM",get:function(){return(0,n.shadow)(this,"MAX_DIM",this._guessMax(2048,65537,0,1))}},{key:"MAX_AREA",get:function(){return this._hasMaxArea=!0,(0,n.shadow)(this,"MAX_AREA",Math.pow(this._guessMax(e._goodSquareLength,this.MAX_DIM,128,0),2))},set:function(e){e>=0&&(this._hasMaxArea=!0,(0,n.shadow)(this,"MAX_AREA",e))}},{key:"setMaxArea",value:function(e){this._hasMaxArea||(this.MAX_AREA=e>>2)}},{key:"_areGoodDims",value:function(e,t){try{var r=new OffscreenCanvas(e,t),n=r.getContext("2d");n.fillRect(0,0,1,1);var a=n.getImageData(0,0,1,1).data[3];return r.width=r.height=1,0!==a}catch(e){return!1}}},{key:"_guessMax",value:function(e,t,r,n){for(;e+r+11&&void 0!==n[1]&&n[1])._createImage());case 1:case"end":return t.stop()}}),t)}))),function(e){return t.apply(this,arguments)})}]),e}();t.ImageResizer=a,a._goodSquareLength=2048},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.MurmurHash3_64=void 0,r(84),r(93),r(94),r(97),r(99),r(101),r(105),r(108),r(115),r(2);var n=r(144),a=3285377520,i=4294901760,o=65535;t.MurmurHash3_64=function(){function e(t){M(this,e),this.h1=t?4294967295&t:a,this.h2=t?4294967295&t:a}return P(e,[{key:"update",value:function(e){var t,r;if("string"==typeof e){t=new Uint8Array(2*e.length),r=0;for(var a=0,s=e.length;a>>8,t[r++]=255&c)}}else{if(!(0,n.isArrayBuffer)(e))throw new Error("Wrong data format in MurmurHash3_64_update. Input must be a string or array.");r=(t=e.slice()).byteLength}for(var u=r>>2,l=r-4*u,h=new Uint32Array(t.buffer,0,u),f=0,d=0,p=this.h1,g=this.h2,v=3432918353,m=461845907,y=11601,b=13715,w=0;w>>17)*m&i|f*b&o)<<13|p>>>19)+3864292196:g=5*(g=(g^=d=(d=(d=(d=h[w])*v&i|d*y&o)<<15|d>>>17)*m&i|d*b&o)<<13|g>>>19)+3864292196;switch(f=0,l){case 3:f^=t[4*u+2]<<16;case 2:f^=t[4*u+1]<<8;case 1:f=(f=(f=(f^=t[4*u])*v&i|f*y&o)<<15|f>>>17)*m&i|f*b&o,1&u?p^=f:g^=f}this.h1=p,this.h2=g}},{key:"hexdigest",value:function(){var e=this.h1,t=this.h2;return e=3981806797*(e^=t>>>1)&i|36045*e&o,e=444984403*(e^=(t=4283543511*t&i|(2950163797*(t<<16|e>>>16)&i)>>>16)>>>1)&i|60499*e&o,((e^=(t=3301882366*t&i|(3120437893*(t<<16|e>>>16)&i)>>>16)>>>1)>>>0).toString(16).padStart(8,"0")+(t>>>0).toString(16).padStart(8,"0")}}]),e}()},function(e,t,r){var a;Object.defineProperty(t,"__esModule",{value:!0}),t.OperatorList=void 0,r(2),r(139),r(84),r(93),r(94),r(97),r(99),r(101),r(105),r(108),r(115),r(116),r(126),r(128),r(131),r(133),r(135),r(137);var i=r(144);function o(e,t,r,n,a){for(var i=e,o=0,s=t.length-1;o1e3&&(l=Math.max(l,d),p+=f+2,d=0,f=0),h.push({transform:v,x:d,y:p,w:m.width,h:m.height}),d+=m.width+2,f=Math.max(f,m.height)}for(var y=Math.max(l,d)+1,b=p+f+1,w=new Uint8Array(y*b*4),k=y<<2,x=0;x=0;)S[O-4]=S[O],S[O-3]=S[O+1],S[O-2]=S[O+2],S[O-1]=S[O+3],S[O+A]=S[O+A-4],S[O+A+1]=S[O+A-3],S[O+A+2]=S[O+A-2],S[O+A+3]=S[O+A-1],O-=k}var T={width:y,height:b};if(e.isOffscreenCanvasSupported){var M=new OffscreenCanvas(y,b);M.getContext("2d").putImageData(new ImageData(new Uint8ClampedArray(w.buffer),y,b),0,0),T.bitmap=M.transferToImageBitmap(),T.data=null}else T.kind=i.ImageKind.RGBA_32BPP,T.data=w;return r.splice(o,4*u,i.OPS.paintInlineImageXObjectGroup),n.splice(o,4*u,[T,h]),o+1})),o(s,[i.OPS.save,i.OPS.transform,i.OPS.paintImageMaskXObject,i.OPS.restore],null,(function(e,t){var r=e.fnArray,n=(t-(e.iCurr-3))%4;switch(n){case 0:return r[t]===i.OPS.save;case 1:return r[t]===i.OPS.transform;case 2:return r[t]===i.OPS.paintImageMaskXObject;case 3:return r[t]===i.OPS.restore}throw new Error("iterateImageMaskGroup - invalid pos: ".concat(n))}),(function(e,t){var r=e.fnArray,n=e.argsArray,a=e.iCurr,o=a-3,s=a-2,c=a-1,u=Math.floor((t-o)/4);if(u<10)return t-(t-o)%4;var l,h,f=!1,d=n[c][0],p=n[s][0],g=n[s][1],v=n[s][2],m=n[s][3];if(g===v){f=!0,l=s+4;for(var y=c+4,b=1;b=4&&r[i-4]===r[o]&&r[i-3]===r[s]&&r[i-2]===r[c]&&r[i-1]===r[u]&&n[i-4][0]===l&&n[i-4][1]===h&&(f++,d-=5);for(var p=d+4,g=1;g=(r=e.length))break}(n=(n||s)[e[t]])&&!Array.isArray(n)?(i.iCurr=t,t++,!n.checkFn||(0,n.checkFn)(i)?(a=n,n=null):n=null):t++}this.state=n,this.match=a,this.lastProcessed=t}else this.lastProcessed=r}},{key:"flush",value:function(){for(;this.match;){var e=this.queue.fnArray.length;this.lastProcessed=(0,this.match.processFn)(this.context,e),this.match=null,this.state=null,this._optimize()}}},{key:"reset",value:function(){this.state=null,this.match=null,this.lastProcessed=0}}]),t}(c),l=function(){function e(){M(this,e);var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=arguments.length>1?arguments[1]:void 0;this._streamSink=r,this.fnArray=[],this.argsArray=[],this.optimizer=!r||t&i.RenderingIntentFlag.OPLIST?new c(this):new u(this),this.dependencies=new Set,this._totalLength=0,this.weight=0,this._resolved=r?null:Promise.resolve()}return P(e,[{key:"isOffscreenCanvasSupported",set:function(e){this.optimizer.isOffscreenCanvasSupported=e}},{key:"length",get:function(){return this.argsArray.length}},{key:"ready",get:function(){return this._resolved||this._streamSink.ready}},{key:"totalLength",get:function(){return this._totalLength+this.length}},{key:"addOp",value:function(t,r){this.optimizer.push(t,r),this.weight++,this._streamSink&&(this.weight>=e.CHUNK_SIZE||this.weight>=e.CHUNK_SIZE_ABOUT&&(t===i.OPS.restore||t===i.OPS.endText))&&this.flush()}},{key:"addImageOps",value:function(e,t,r){void 0!==r&&this.addOp(i.OPS.beginMarkedContentProps,["OC",r]),this.addOp(e,t),void 0!==r&&this.addOp(i.OPS.endMarkedContent,[])}},{key:"addDependency",value:function(e){this.dependencies.has(e)||(this.dependencies.add(e),this.addOp(i.OPS.dependency,[e]))}},{key:"addDependencies",value:function(e){var t,r=x(e);try{for(r.s();!(t=r.n()).done;){var n=t.value;this.addDependency(n)}}catch(e){r.e(e)}finally{r.f()}}},{key:"addOpList",value:function(t){if(t instanceof e){var r,n=x(t.dependencies);try{for(n.s();!(r=n.n()).done;){var a=r.value;this.dependencies.add(a)}}catch(e){n.e(e)}finally{n.f()}for(var o=0,s=t.length;o0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.optimizer.flush();var r=this.length;this._totalLength+=r,this._streamSink.enqueue({fnArray:this.fnArray,argsArray:this.argsArray,lastChunk:e,separateAnnots:t,length:r},1,this._transfers),this.dependencies.clear(),this.fnArray.length=0,this.argsArray.length=0,this.weight=0,this.optimizer.reset()}}]),e}();a=l,n(l,"CHUNK_SIZE",1e3),n(l,"CHUNK_SIZE_ABOUT",a.CHUNK_SIZE-5),t.OperatorList=l},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.PDFImage=void 0,r(84),r(93),r(94),r(97),r(99),r(101),r(105),r(108),r(115),r(2);var n=r(144),a=r(178),i=r(151),o=r(162),s=r(168),c=r(212),u=r(176),l=r(180),h=r(150);function f(e,t,r,n){return(e=t+e*r)<0?e=0:e>n&&(e=n),e}function d(e,t,r,n,a,i){var o,s=a*i;o=t<=8?new Uint8Array(s):t<=16?new Uint16Array(s):new Uint32Array(s);var c,u,l,h,f=r/a,d=n/i,p=0,g=new Uint16Array(a),v=r;for(c=0;c0&&Number.isInteger(s.height)&&s.height>0&&(s.width!==C||s.height!==O)&&((0,n.warn)("PDFImage - using the Width/Height of the image data, rather than the image dictionary."),C=s.width,O=s.height),C<1||O<1)throw new n.FormatError("Invalid image width: ".concat(C," or height: ").concat(O));this.width=C,this.height=O,this.interpolate=k.get("I","Interpolate"),this.imageMask=k.get("IM","ImageMask")||!1,this.matte=k.get("Matte")||!1;var F=s.bitsPerComponent;if(!F&&!(F=k.get("BPC","BitsPerComponent"))){if(!this.imageMask)throw new n.FormatError("Bits per component missing in image: ".concat(this.imageMask));F=1}if(this.bpc=F,!this.imageMask){var I=k.getRaw("CS")||k.getRaw("ColorSpace");if(!I)switch((0,n.info)("JPX images (which do not require color spaces)"),s.numComps){case 1:I=h.Name.get("DeviceGray");break;case 3:I=h.Name.get("DeviceRGB");break;case 4:I=h.Name.get("DeviceCMYK");break;default:throw new Error("JPX images with ".concat(s.numComps," color components not supported."))}this.colorSpace=o.ColorSpace.parse({cs:I,xref:r,resources:u?a:null,pdfFunctionFactory:y,localColorSpaceCache:b}),this.numComps=this.colorSpace.numComps}if(this.decode=k.getArray("D","Decode"),this.needsDecode=!1,this.decode&&(this.colorSpace&&!this.colorSpace.isDefaultDecode(this.decode,F)||m&&!o.ColorSpace.isDefaultDecode(this.decode,1))){var T;this.needsDecode=!0;var E=(1<>7&1,r[f+1]=u>>6&1,r[f+2]=u>>5&1,r[f+3]=u>>4&1,r[f+4]=u>>3&1,r[f+5]=u>>2&1,r[f+6]=u>>1&1,r[f+7]=1&u,f+=8;if(f>=1}else{var m=0;for(u=0,f=0,c=o;f>y;b<0?b=0:b>h&&(b=h),r[f]=b,u&=(1<g[w+1]){m=255;break}}s[l]=m}}if(s)for(l=0,f=3,h=r*i;l0&&void 0!==R[0]&&R[0],r=R.length>1&&void 0!==R[1]&&R[1],a=this.drawWidth,i=this.drawHeight,o={width:a,height:i,interpolate:this.interpolate,kind:0,data:null},s=this.numComps,l=this.width,h=this.height,f=this.bpc,d=l*s*f+7>>3,p=r&&c.ImageResizer.needsToBeResized(a,i),t){e.next=38;break}if("DeviceGray"===this.colorSpace.name&&1===f?g=n.ImageKind.GRAYSCALE_1BPP:"DeviceRGB"!==this.colorSpace.name||8!==f||this.needsDecode||(g=n.ImageKind.RGB_24BPP),!g||this.smask||this.mask||a!==l||i!==h){e.next=12;break}if(v=this.getImageBytes(h*d,{}),!r){e.next=8;break}return e.abrupt("return",p?c.ImageResizer.createImage({data:v,kind:g,width:a,height:i,interpolate:this.interpolate},this.needsDecode):this.createBitmap(g,l,h,v));case 8:if(o.kind=g,o.data=v,this.needsDecode)for((0,n.assert)(g===n.ImageKind.GRAYSCALE_1BPP,"PDFImage.createImageData: The image must be grayscale."),m=o.data,y=0,b=m.length;y>3,u=this.getImageBytes(o*c,{internal:!0}),l=this.getComponents(u);if(1!==s){this.needsDecode&&this.decodeBuffer(l),a=i*o;var h=255/((1<>3)*i,l=n.byteLength;if(!o||s&&u!==l?s?((t=new Uint8Array(u)).set(n),t.fill(255,l)):t=new Uint8Array(n):t=n,s)for(r=0;r1&&(f=a.documentElement.searchNode([h.at(-1)],0)),f?f.childNodes=Array.isArray(l)?l.map((function(e){return new o.SimpleDOMNode("value",e)})):[new o.SimpleDOMNode("#text",l)]:(0,n.warn)("Node not found for path: ".concat(u))}}}}catch(e){s.e(e)}finally{s.f()}var d=[];return a.documentElement.dump(d),d.join("")}(s.fetchIfRef(r).getString(),a));var c=s.encrypt;c&&(t=c.createCipherTransform(r.num,r.gen).encryptString(t));var u="".concat(r.num," ").concat(r.gen," obj\n<< /Type /EmbeddedFile /Length ").concat(t.length,">>\nstream\n")+t+"\nendstream\nendobj\n";a.push({ref:r,data:u})}({xfaData:P,xfaDatasetsRef:m,newRefs:l,xref:d}),R=new a.Dict(null),N=s.newRef,10===(L=r.at(-1))||13===L?(D=[],B=r.length):(D=["\n"],B=r.length+1),R.set("Size",N.num+1),R.set("Prev",s.startXRef),R.set("Type",a.Name.get("XRef")),null!==s.rootRef&&R.set("Root",s.rootRef),null!==s.infoRef&&R.set("Info",s.infoRef),null!==s.encryptRef&&R.set("Encrypt",s.encryptRef),l.push({ref:N,data:""}),l=l.sort((function(e,t){return e.ref.num-t.ref.num})),_=[[0,1,65535]],j=[0,1],U=0,$=x(l);try{for($.s();!(X=$.n()).done;)H=X.value,q=H.ref,z=H.data,U=Math.max(U,B),_.push([1,B,Math.min(q.gen,65535)]),B+=z.length,j.push(q.num,1),D.push(z)}catch(e){$.e(e)}finally{$.f()}return R.set("Index",j),Array.isArray(s.fileIds)&&s.fileIds.length>0&&(G=function(e,t){for(var r=Math.floor(Date.now()/1e3),a=t.filename||"",i=[r.toString(),a,e.toString()],o=i.reduce((function(e,t){return e+t.length}),0),s=0,u=Object.values(t.info);s>");case 20:case"end":return e.stop()}}),e,null,[[2,13,16,19]])}))),d.apply(this,arguments)}function p(e,t,r){return g.apply(this,arguments)}function g(){return g=T(k().mark((function e(t,r,i){var o,s,c,u,l,d,p,g,v,m,y,b,w,x;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=t.getString(),null!==i&&(o=i.encryptString(o)),s=t.dict,e.next=5,Promise.all([s.getAsync("Filter"),s.getAsync("DecodeParms")]);case 5:if(c=e.sent,u=S(c,2),l=u[0],d=u[1],!Array.isArray(l)){e.next=15;break}return e.next=12,s.xref.fetchIfRefAsync(l[0]);case 12:e.t0=e.sent,e.next=16;break;case 15:e.t0=l;case 16:if(p=e.t0,g=(0,a.isName)(p,"FlateDecode"),"undefined"==typeof CompressionStream||!(o.length>=256||g)){e.next=35;break}return e.prev=19,v=(0,n.stringToBytes)(o),m=new CompressionStream("deflate"),(y=m.writable.getWriter()).write(v),y.close(),e.next=25,new Response(m.readable).arrayBuffer();case 25:b=e.sent,o=(0,n.bytesToString)(new Uint8Array(b)),l?g||(w=Array.isArray(l)?[a.Name.get("FlateDecode")].concat(f(l)):[a.Name.get("FlateDecode"),l],d&&(x=Array.isArray(d)?[null].concat(f(d)):[null,d])):w=a.Name.get("FlateDecode"),w&&s.set("Filter",w),x&&s.set("DecodeParms",x),e.next=35;break;case 32:e.prev=32,e.t1=e.catch(19),(0,n.info)('writeStream - cannot compress data: "'.concat(e.t1,'".'));case 35:return s.set("Length",o.length),e.next=38,h(s,r,i);case 38:r.push(" stream\n",o,"\nendstream");case 39:case"end":return e.stop()}}),e,null,[[19,32]])}))),g.apply(this,arguments)}function v(e,t,r){return m.apply(this,arguments)}function m(){return m=T(k().mark((function e(t,r,o){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t instanceof a.Name)){e.next=4;break}r.push("/".concat((0,i.escapePDFName)(t.name))),e.next=37;break;case 4:if(!(t instanceof a.Ref)){e.next=8;break}r.push("".concat(t.num," ").concat(t.gen," R")),e.next=37;break;case 8:if(!Array.isArray(t)){e.next=13;break}return e.next=11,function(){var e=T(k().mark((function e(t,r,n){var a,i,o,s;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r.push("["),a=!0,i=x(t),e.prev=3,i.s();case 5:if((o=i.n()).done){e.next=12;break}return s=o.value,a?a=!1:r.push(" "),e.next=10,v(s,r,n);case 10:e.next=5;break;case 12:e.next=17;break;case 14:e.prev=14,e.t0=e.catch(3),i.e(e.t0);case 17:return e.prev=17,i.f(),e.finish(17);case 20:r.push("]");case 21:case"end":return e.stop()}}),e,null,[[3,14,17,20]])})));return function(t,r,n){return e.apply(this,arguments)}}()(t,r,o);case 11:e.next=37;break;case 13:if("string"!=typeof t){e.next=18;break}null!==o&&(t=o.encryptString(t)),r.push("(".concat((0,i.escapeString)(t),")")),e.next=37;break;case 18:if("number"!=typeof t){e.next=22;break}r.push((0,i.numberToString)(t)),e.next=37;break;case 22:if("boolean"!=typeof t){e.next=26;break}r.push(t.toString()),e.next=37;break;case 26:if(!(t instanceof a.Dict)){e.next=31;break}return e.next=29,h(t,r,o);case 29:e.next=37;break;case 31:if(!(t instanceof s.BaseStream)){e.next=36;break}return e.next=34,p(t,r,o);case 34:e.next=37;break;case 36:null===t?r.push("null"):(0,n.warn)("Unhandled value in writer: ".concat(N(t),", please file a bug."));case 37:case"end":return e.stop()}}),e)}))),m.apply(this,arguments)}function y(e,t,r,n){for(var a=t+r-1;a>r-1;a--)n[a]=255&e,e>>=8;return r+t}function b(e,t,r){for(var n=0,a=e.length;n";case"amp":return"&";case"quot":return'"';case"apos":return"'"}return t.onResolveEntity(r)}))}},{key:"_parseContent",value:function(e,t){var r=[],n=t;function a(){for(;n"!==e[n]&&"/"!==e[n];)++n;var o=e.substring(t,n);for(a();n"!==e[n]&&"/"!==e[n]&&"?"!==e[n];){a();for(var s,c="";n"!==e[r]&&"?"!==e[r]&&"/"!==e[r];)++r;var n=e.substring(t,r);!function(){for(;r"!==e[r+1]);)++r;return{name:n,value:e.substring(a,r),parsed:r-t}}},{key:"parseXml",value:function(e){for(var t=0;t",r))<0)return void this.onError(a.UnterminatedElement);this.onEndElement(e.substring(r,n)),r=n+1;break;case"?":++r;var i=this._parseProcessingInstruction(e,r);if("?>"!==e.substring(r+i.parsed,r+i.parsed+2))return void this.onError(a.UnterminatedXmlDeclaration);this.onPi(i.name,i.value),r+=i.parsed+2;break;case"!":if("--"===e.substring(r+1,r+3)){if((n=e.indexOf("--\x3e",r+3))<0)return void this.onError(a.UnterminatedComment);this.onComment(e.substring(r+3,n)),r=n+3}else if("[CDATA["===e.substring(r+1,r+8)){if((n=e.indexOf("]]>",r+8))<0)return void this.onError(a.UnterminatedCdat);this.onCdata(e.substring(r+8,n)),r=n+3}else{if("DOCTYPE"!==e.substring(r+1,r+8))return void this.onError(a.MalformedElement);var o=e.indexOf("[",r+8),s=!1;if((n=e.indexOf(">",r+8))<0)return void this.onError(a.UnterminatedDoctypeDeclaration);if(o>0&&n>o){if((n=e.indexOf("]>",r+8))<0)return void this.onError(a.UnterminatedDoctypeDeclaration);s=!0}var c=e.substring(r+8,n+(s?1:0));this.onDoctype(c),r=n+(s?2:1)}break;default:var u=this._parseContent(e,r);if(null===u)return void this.onError(a.MalformedElement);var l=!1;if("/>"===e.substring(r+u.parsed,r+u.parsed+2))l=!0;else if(">"!==e.substring(r+u.parsed,r+u.parsed+1))return void this.onError(a.UnterminatedElement);this.onBeginElement(u.name,u.attributes,l),r+=u.parsed+(l?2:1)}}else{for(;r0}},{key:"searchNode",value:function(e,t){if(t>=e.length)return this;for(var r=e[t],n=[],a=this;;){var i;if(r.name===a.nodeName){if(0!==r.pos){if(0===n.length)return null;var o,s=0,c=x(S(n.pop(),1)[0].childNodes);try{for(c.s();!(o=c.n()).done;){var u=o.value;if(r.name===u.nodeName){if(s===r.pos)return u.searchNode(e,t+1);s++}}}catch(e){c.e(e)}finally{c.f()}return a.searchNode(e,t+1)}var l=a.searchNode(e,t+1);if(null!==l)return l}if((null===(i=a.childNodes)||void 0===i?void 0:i.length)>0)n.push([a,0]),a=a.childNodes[0];else{if(0===n.length)return null;for(;0!==n.length;){var h=S(n.pop(),2),f=h[0],d=h[1]+1;if(d");var i,o=x(this.childNodes);try{for(o.s();!(i=o.n()).done;)i.value.dump(e)}catch(e){o.e(e)}finally{o.f()}e.push(""))}else this.nodeValue?e.push(">".concat((0,n.encodeToXmlString)(this.nodeValue),"")):e.push("/>")}else e.push((0,n.encodeToXmlString)(this.nodeValue))}}]),e}();t.SimpleDOMNode=s,t.SimpleXMLParser=function(e){function t(e){var r;M(this,t);var n=e.hasAttributes,i=void 0!==n&&n,o=e.lowerCaseName,s=void 0!==o&&o;return(r=d(this,t))._currentFragment=null,r._stack=null,r._errorCode=a.NoError,r._hasAttributes=i,r._lowerCaseName=s,r}return y(t,e),P(t,[{key:"parseFromString",value:function(e){if(this._currentFragment=[],this._stack=[],this._errorCode=a.NoError,this.parseXml(e),this._errorCode===a.NoError){var t=S(this._currentFragment,1)[0];return t?{documentElement:t}:void 0}}},{key:"onText",value:function(e){if(!function(e){for(var t=0,r=e.length;t>5&255,f[i++]=a>>13&255,f[i++]=a>>21&255,f[i++]=a>>>29&255,f[i++]=0,f[i++]=0,f[i++]=0;var p=new Int32Array(16);for(i=0;i>>32-S)|0,m=k}s=s+m|0,c=c+y|0,u=u+b|0,l=l+w|0}return new Uint8Array([255&s,s>>8&255,s>>16&255,s>>>24&255,255&c,c>>8&255,c>>16&255,c>>>24&255,255&u,u>>8&255,u>>16&255,u>>>24&255,255&l,l>>8&255,l>>16&255,l>>>24&255])}}();t.calculateMD5=s;var c=function(){function e(t,r){M(this,e),this.high=0|t,this.low=0|r}return P(e,[{key:"and",value:function(e){this.high&=e.high,this.low&=e.low}},{key:"xor",value:function(e){this.high^=e.high,this.low^=e.low}},{key:"or",value:function(e){this.high|=e.high,this.low|=e.low}},{key:"shiftRight",value:function(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)}},{key:"shiftLeft",value:function(e){e>=32?(this.high=this.low<>>32-e,this.low<<=e)}},{key:"rotateRight",value:function(e){var t,r;32&e?(r=this.low,t=this.high):(t=this.low,r=this.high),e&=31,this.low=t>>>e|r<<32-e,this.high=r>>>e|t<<32-e}},{key:"not",value:function(){this.high=~this.high,this.low=~this.low}},{key:"add",value:function(e){var t=(this.low>>>0)+(e.low>>>0),r=(this.high>>>0)+(e.high>>>0);t>4294967295&&(r+=1),this.low=0|t,this.high=0|r}},{key:"copyTo",value:function(e,t){e[t]=this.high>>>24&255,e[t+1]=this.high>>16&255,e[t+2]=this.high>>8&255,e[t+3]=255&this.high,e[t+4]=this.low>>>24&255,e[t+5]=this.low>>16&255,e[t+6]=this.low>>8&255,e[t+7]=255&this.low}},{key:"assign",value:function(e){this.high=e.high,this.low=e.low}}]),e}(),u=function(){function e(e,t){return e>>>t|e<<32-t}function t(e,t,r){return e&t^~e&r}function r(e,t,r){return e&t^e&r^t&r}function n(t){return e(t,2)^e(t,13)^e(t,22)}function a(t){return e(t,6)^e(t,11)^e(t,25)}function i(t){return e(t,7)^e(t,18)^t>>>3}var o=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];return function(s,c,u){var l,h,f=1779033703,d=3144134277,p=1013904242,g=2773480762,v=1359893119,m=2600822924,y=528734635,b=1541459225,w=64*Math.ceil((u+9)/64),k=new Uint8Array(w);for(l=0;l>>29&255,k[l++]=u>>21&255,k[l++]=u>>13&255,k[l++]=u>>5&255,k[l++]=u<<3&255;var S,A=new Uint32Array(64);for(l=0;l>>10)+A[h-7]+i(A[h-15])+A[h-16]|0;var C=void 0,O=void 0,F=f,I=d,T=p,M=g,E=v,P=m,R=y,N=b;for(h=0;h<64;++h)C=N+a(E)+t(E,P,R)+o[h]+A[h],O=n(F)+r(F,I,T),N=R,R=P,P=E,E=M+C|0,M=T,T=I,I=F,F=C+O|0;f=f+F|0,d=d+I|0,p=p+T|0,g=g+M|0,v=v+E|0,m=m+P|0,y=y+R|0,b=b+N|0}return new Uint8Array([f>>24&255,f>>16&255,f>>8&255,255&f,d>>24&255,d>>16&255,d>>8&255,255&d,p>>24&255,p>>16&255,p>>8&255,255&p,g>>24&255,g>>16&255,g>>8&255,255&g,v>>24&255,v>>16&255,v>>8&255,255&v,m>>24&255,m>>16&255,m>>8&255,255&m,y>>24&255,y>>16&255,y>>8&255,255&y,b>>24&255,b>>16&255,b>>8&255,255&b])}}();t.calculateSHA256=u;var l=function(){function e(e,t,r,n,a){e.assign(t),e.and(r),a.assign(t),a.not(),a.and(n),e.xor(a)}function t(e,t,r,n,a){e.assign(t),e.and(r),a.assign(t),a.and(n),e.xor(a),a.assign(r),a.and(n),e.xor(a)}function r(e,t,r){e.assign(t),e.rotateRight(28),r.assign(t),r.rotateRight(34),e.xor(r),r.assign(t),r.rotateRight(39),e.xor(r)}function n(e,t,r){e.assign(t),e.rotateRight(14),r.assign(t),r.rotateRight(18),e.xor(r),r.assign(t),r.rotateRight(41),e.xor(r)}function a(e,t,r){e.assign(t),e.rotateRight(1),r.assign(t),r.rotateRight(8),e.xor(r),r.assign(t),r.shiftRight(7),e.xor(r)}function i(e,t,r){e.assign(t),e.rotateRight(19),r.assign(t),r.rotateRight(61),e.xor(r),r.assign(t),r.shiftRight(6),e.xor(r)}var o=[new c(1116352408,3609767458),new c(1899447441,602891725),new c(3049323471,3964484399),new c(3921009573,2173295548),new c(961987163,4081628472),new c(1508970993,3053834265),new c(2453635748,2937671579),new c(2870763221,3664609560),new c(3624381080,2734883394),new c(310598401,1164996542),new c(607225278,1323610764),new c(1426881987,3590304994),new c(1925078388,4068182383),new c(2162078206,991336113),new c(2614888103,633803317),new c(3248222580,3479774868),new c(3835390401,2666613458),new c(4022224774,944711139),new c(264347078,2341262773),new c(604807628,2007800933),new c(770255983,1495990901),new c(1249150122,1856431235),new c(1555081692,3175218132),new c(1996064986,2198950837),new c(2554220882,3999719339),new c(2821834349,766784016),new c(2952996808,2566594879),new c(3210313671,3203337956),new c(3336571891,1034457026),new c(3584528711,2466948901),new c(113926993,3758326383),new c(338241895,168717936),new c(666307205,1188179964),new c(773529912,1546045734),new c(1294757372,1522805485),new c(1396182291,2643833823),new c(1695183700,2343527390),new c(1986661051,1014477480),new c(2177026350,1206759142),new c(2456956037,344077627),new c(2730485921,1290863460),new c(2820302411,3158454273),new c(3259730800,3505952657),new c(3345764771,106217008),new c(3516065817,3606008344),new c(3600352804,1432725776),new c(4094571909,1467031594),new c(275423344,851169720),new c(430227734,3100823752),new c(506948616,1363258195),new c(659060556,3750685593),new c(883997877,3785050280),new c(958139571,3318307427),new c(1322822218,3812723403),new c(1537002063,2003034995),new c(1747873779,3602036899),new c(1955562222,1575990012),new c(2024104815,1125592928),new c(2227730452,2716904306),new c(2361852424,442776044),new c(2428436474,593698344),new c(2756734187,3733110249),new c(3204031479,2999351573),new c(3329325298,3815920427),new c(3391569614,3928383900),new c(3515267271,566280711),new c(3940187606,3454069534),new c(4118630271,4000239992),new c(116418474,1914138554),new c(174292421,2731055270),new c(289380356,3203993006),new c(460393269,320620315),new c(685471733,587496836),new c(852142971,1086792851),new c(1017036298,365543100),new c(1126000580,2618297676),new c(1288033470,3409855158),new c(1501505948,4234509866),new c(1607167915,987167468),new c(1816402316,1246189591)];return function(s,u,l){var h,f,d,p,g,v,m,y,b=arguments.length>3&&void 0!==arguments[3]&&arguments[3];b?(h=new c(3418070365,3238371032),f=new c(1654270250,914150663),d=new c(2438529370,812702999),p=new c(355462360,4144912697),g=new c(1731405415,4290775857),v=new c(2394180231,1750603025),m=new c(3675008525,1694076839),y=new c(1203062813,3204075428)):(h=new c(1779033703,4089235720),f=new c(3144134277,2227873595),d=new c(1013904242,4271175723),p=new c(2773480762,1595750129),g=new c(1359893119,2917565137),v=new c(2600822924,725511199),m=new c(528734635,4215389547),y=new c(1541459225,327033209));var w,k,x=128*Math.ceil((l+17)/128),S=new Uint8Array(x);for(w=0;w>>29&255,S[w++]=l>>21&255,S[w++]=l>>13&255,S[w++]=l>>5&255,S[w++]=l<<3&255;var C=new Array(80);for(w=0;w<80;w++)C[w]=new c(0,0);var O,F,I=new c(0,0),T=new c(0,0),M=new c(0,0),E=new c(0,0),P=new c(0,0),R=new c(0,0),N=new c(0,0),D=new c(0,0),B=new c(0,0),L=new c(0,0),_=new c(0,0),j=new c(0,0);for(w=0;w=1;--c){r=i[13],i[13]=i[9],i[9]=i[5],i[5]=i[1],i[1]=r,r=i[14],n=i[10],i[14]=i[6],i[10]=i[2],i[6]=r,i[2]=n,r=i[15],n=i[11],a=i[7],i[15]=i[3],i[11]=r,i[7]=n,i[3]=a;for(var u=0;u<16;++u)i[u]=this._inv_s[i[u]];for(var l=0,h=16*c;l<16;++l,++h)i[l]^=t[h];for(var f=0;f<16;f+=4){var d=this._mix[i[f]],p=this._mix[i[f+1]],g=this._mix[i[f+2]],v=this._mix[i[f+3]];r=d^p>>>8^p<<24^g>>>16^g<<16^v>>>24^v<<8,i[f]=r>>>24&255,i[f+1]=r>>16&255,i[f+2]=r>>8&255,i[f+3]=255&r}}r=i[13],i[13]=i[9],i[9]=i[5],i[5]=i[1],i[1]=r,r=i[14],n=i[10],i[14]=i[6],i[10]=i[2],i[6]=r,i[2]=n,r=i[15],n=i[11],a=i[7],i[15]=i[3],i[11]=r,i[7]=n,i[3]=a;for(var m=0;m<16;++m)i[m]=this._inv_s[i[m]],i[m]^=t[m];return i}},{key:"_encrypt",value:function(e,t){var r,n,a,i=this._s,o=new Uint8Array(16);o.set(e);for(var s=0;s<16;++s)o[s]^=t[s];for(var c=1;c=p;--d)if(h[d]!==f){f=0;break}l-=f,i[i.length-1]=h.subarray(0,16-f)}}for(var g=new Uint8Array(l),v=0,m=0,y=i.length;v2&&void 0!==arguments[2]?arguments[2]:null,n=e.length,a=this.buffer,i=this.bufferPosition;if(r)this.iv=r;else{for(var o=0;i<16&&o=256&&(s=255&(27^s)));for(var l=0;l<4;++l)r[c]=n^=r[c-32],r[++c]=a^=r[c-32],r[++c]=i^=r[c-32],r[++c]=o^=r[c-32],c++}return r}}]),t}(p);t.AES256Cipher=v;var m=function(){function e(){M(this,e)}return P(e,[{key:"checkOwnerPassword",value:function(e,t,r,a){var i=new Uint8Array(e.length+56);i.set(e,0),i.set(t,e.length),i.set(r,e.length+t.length);var o=u(i,0,i.length);return(0,n.isArrayEqual)(o,a)}},{key:"checkUserPassword",value:function(e,t,r){var a=new Uint8Array(e.length+8);a.set(e,0),a.set(t,e.length);var i=u(a,0,a.length);return(0,n.isArrayEqual)(i,r)}},{key:"getOwnerKey",value:function(e,t,r,n){var a=new Uint8Array(e.length+56);a.set(e,0),a.set(t,e.length),a.set(r,e.length+t.length);var i=u(a,0,a.length);return new v(i).decryptBlock(n,!1,new Uint8Array(16))}},{key:"getUserKey",value:function(e,t,r){var n=new Uint8Array(e.length+8);n.set(e,0),n.set(t,e.length);var a=u(n,0,n.length);return new v(a).decryptBlock(r,!1,new Uint8Array(16))}}]),e}();t.PDF17=m;var b=function(){function e(){M(this,e)}return P(e,[{key:"_hash",value:function(e,t,r){for(var n=u(t,0,t.length).subarray(0,32),a=[0],i=0;i<64||a.at(-1)>i-32;){var o=e.length+n.length+r.length,s=new Uint8Array(o),c=0;s.set(e,c),c+=e.length,s.set(n,c),c+=n.length,s.set(r,c);for(var f=new Uint8Array(64*o),d=0,p=0;d<64;d++,p+=o)f.set(s,p);var v=(a=new g(n.subarray(0,16)).encrypt(f,n.subarray(16,32))).slice(0,16).reduce((function(e,t){return e+t}),0)%3;0===v?n=u(a,0,a.length):1===v?n=h(a,0,a.length):2===v&&(n=l(a,0,a.length)),i++}return n.subarray(0,32)}},{key:"checkOwnerPassword",value:function(e,t,r,a){var i=new Uint8Array(e.length+56);i.set(e,0),i.set(t,e.length),i.set(r,e.length+t.length);var o=this._hash(e,i,r);return(0,n.isArrayEqual)(o,a)}},{key:"checkUserPassword",value:function(e,t,r){var a=new Uint8Array(e.length+8);a.set(e,0),a.set(t,e.length);var i=this._hash(e,a,[]);return(0,n.isArrayEqual)(i,r)}},{key:"getOwnerKey",value:function(e,t,r,n){var a=new Uint8Array(e.length+56);a.set(e,0),a.set(t,e.length),a.set(r,e.length+t.length);var i=this._hash(e,a,r);return new v(i).decryptBlock(n,!1,new Uint8Array(16))}},{key:"getUserKey",value:function(e,t,r){var n=new Uint8Array(e.length+8);n.set(e,0),n.set(t,e.length);var a=this._hash(e,n,[]);return new v(a).decryptBlock(r,!1,new Uint8Array(16))}}]),e}();t.PDF20=b;var w=function(){function e(t,r){M(this,e),this.StringCipherConstructor=t,this.StreamCipherConstructor=r}return P(e,[{key:"createStream",value:function(e,t){var r=new this.StreamCipherConstructor;return new i.DecryptStream(e,t,(function(e,t){return r.decryptBlock(e,t)}))}},{key:"decryptString",value:function(e){var t=new this.StringCipherConstructor,r=(0,n.stringToBytes)(e);return r=t.decryptBlock(r,!0),(0,n.bytesToString)(r)}},{key:"encryptString",value:function(e){var t=new this.StringCipherConstructor;if(t instanceof p){var r=16-e.length%16;e+=String.fromCharCode(r).repeat(r);var a=new Uint8Array(16);if("undefined"!=typeof crypto)crypto.getRandomValues(a);else for(var i=0;i<16;i++)a[i]=Math.floor(256*Math.random());var o=(0,n.stringToBytes)(e);o=t.encrypt(o,a);var s=new Uint8Array(16+o.length);return s.set(a),s.set(o,16),(0,n.bytesToString)(s)}var c=(0,n.stringToBytes)(e);return c=t.encrypt(c),(0,n.bytesToString)(c)}}]),e}(),k=function(){var e=new Uint8Array([40,191,78,94,78,117,138,65,100,0,78,86,255,250,1,8,46,46,0,182,208,104,62,128,47,12,169,254,100,83,105,122]);function t(t,r,n,a,i,c,u,l){var h,f,d=40+n.length+t.length,p=new Uint8Array(d),g=0;if(r)for(f=Math.min(32,r.length);g>8&255,p[g++]=i>>16&255,p[g++]=i>>>24&255,h=0,f=t.length;h=4&&!l&&(p[g++]=255,p[g++]=255,p[g++]=255,p[g++]=255);var v=s(p,0,g),m=u>>3;if(c>=3)for(h=0;h<50;++h)v=s(v,0,m);var y,b=v.subarray(0,m);if(c>=3){for(g=0;g<32;++g)p[g]=e[g];for(h=0,f=t.length;h3&&void 0!==arguments[3]&&arguments[3],i=new Uint8Array(r.length+9),o=r.length;for(n=0;n>8&255,i[n++]=e>>16&255,i[n++]=255&t,i[n++]=t>>8&255,a&&(i[n++]=115,i[n++]=65,i[n++]=108,i[n++]=84),s(i,0,n).subarray(0,Math.min(r.length+5,16))}function c(e,t,r,s,c){if(!(t instanceof a.Name))throw new n.FormatError("Invalid crypt filter name.");var u,l=e.get(t.name);if(null!=l&&(u=l.get("CFM")),!u||"None"===u.name)return function(){return new f};if("V2"===u.name)return function(){return new o(i(r,s,c,!1))};if("AESV2"===u.name)return function(){return new g(i(r,s,c,!0))};if("AESV3"===u.name)return function(){return new v(c)};throw new n.FormatError("Unknown crypto method")}return function(){function u(i,c,l){M(this,u);var h=i.get("Filter");if(!(0,a.isName)(h,"Standard"))throw new n.FormatError("unknown encryption method");this.filterName=h.name,this.dict=i;var f=i.get("V");if(!Number.isInteger(f)||1!==f&&2!==f&&4!==f&&5!==f)throw new n.FormatError("unsupported encryption algorithm");this.algorithm=f;var d=i.get("Length");if(!d)if(f<=3)d=40;else{var p=i.get("CF"),g=i.get("StmF");if(p instanceof a.Dict&&g instanceof a.Name){p.suppressEncryption=!0;var v=p.get(g.name);(d=(null==v?void 0:v.get("Length"))||128)<40&&(d<<=3)}}if(!Number.isInteger(d)||d<40||d%8!=0)throw new n.FormatError("invalid key length");var y=(0,n.stringToBytes)(i.get("O")),w=(0,n.stringToBytes)(i.get("U")),k=y.subarray(0,32),x=w.subarray(0,32),S=i.get("P"),A=i.get("R"),C=(4===f||5===f)&&!1!==i.get("EncryptMetadata");this.encryptMetadata=C;var O,F,I=(0,n.stringToBytes)(c);if(l){if(6===A)try{l=(0,n.utf8StringToString)(l)}catch(e){(0,n.warn)("CipherTransformFactory: Unable to convert UTF8 encoded password.")}O=(0,n.stringToBytes)(l)}if(5!==f)F=t(I,O,k,x,S,A,d,C);else{var T=y.subarray(32,40),E=y.subarray(40,48),P=w.subarray(0,48),R=w.subarray(32,40),N=w.subarray(40,48),D=(0,n.stringToBytes)(i.get("OE")),B=(0,n.stringToBytes)(i.get("UE"));(0,n.stringToBytes)(i.get("Perms")),F=function(e,t,r,n,a,i,o,s,c,u,l,h){if(t){var f=Math.min(127,t.length);t=t.subarray(0,f)}else t=[];var d=6===e?new b:new m;return d.checkUserPassword(t,s,o)?d.getUserKey(t,c,l):t.length&&d.checkOwnerPassword(t,n,i,r)?d.getOwnerKey(t,a,i,u):null}(A,O,k,T,E,P,x,R,N,D,B)}if(!F&&!l)throw new n.PasswordException("No password given",n.PasswordResponses.NEED_PASSWORD);if(!F&&l){var L=function(t,r,n,a){for(var i=new Uint8Array(32),c=0,u=Math.min(32,t.length);c>3;if(n>=3)for(l=0;l<50;++l)f=s(f,0,f.length);if(n>=3){h=r;var p=new Uint8Array(d);for(l=19;l>=0;l--){for(var g=0;g=4){var _=i.get("CF");_ instanceof a.Dict&&(_.suppressEncryption=!0),this.cf=_,this.stmf=i.get("StmF")||r,this.strf=i.get("StrF")||r,this.eff=i.get("EFF")||this.stmf}}return P(u,[{key:"createCipherTransform",value:function(e,t){if(4===this.algorithm||5===this.algorithm)return new w(c(this.cf,this.strf,e,t,this.encryptionKey),c(this.cf,this.stmf,e,t,this.encryptionKey));var r=i(e,t,this.encryptionKey,!1),n=function(){return new o(r)};return new w(n,n)}}]),u}()}();t.CipherTransformFactory=k},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.DecryptStream=void 0;var n=function(e){function t(e,r,n){var a;return M(this,t),(a=d(this,t,[r])).str=e,a.dict=e.dict,a.decrypt=n,a.nextChunk=null,a.initialized=!1,a}return y(t,e),P(t,[{key:"readBlock",value:function(){var e,t;if(this.initialized?t=this.nextChunk:(t=this.str.getBytes(512),this.initialized=!0),t&&0!==t.length){this.nextChunk=this.str.getBytes(512);var r=(null===(e=this.nextChunk)||void 0===e?void 0:e.length)>0;t=(0,this.decrypt)(t,!r);var n=this.bufferLength,a=n+t.length;this.ensureBuffer(a).set(t,n),this.bufferLength=a}else this.eof=!0}}]),t}(r(168).DecodeStream);t.DecryptStream=n},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.Catalog=void 0,r(84),r(93),r(94),r(97),r(99),r(101),r(105),r(108),r(115),r(139),r(2);var n=r(149),a=r(144),i=r(150),o=r(221),s=r(151),c=r(222),u=r(162),l=r(223),h=r(209),d=r(224),p=r(225);function g(e){return e instanceof i.Dict&&(e=e.get("D")),Array.isArray(e)?e:null}var v=function(){function e(t,r){if(M(this,e),this.pdfManager=t,this.xref=r,this._catDict=r.getCatalogObj(),!(this._catDict instanceof i.Dict))throw new a.FormatError("Catalog object is not a dictionary.");this.toplevelPagesDict,this._actualNumPages=null,this.fontCache=new i.RefSetCache,this.builtInCMapCache=new Map,this.standardFontDataCache=new Map,this.globalImageCache=new h.GlobalImageCache,this.pageKidsCountCache=new i.RefSetCache,this.pageIndexCache=new i.RefSetCache,this.nonBlendModesSet=new i.RefSet,this.systemFontCache=new Map}var t,r,v,m;return P(e,[{key:"version",get:function(){var e=this._catDict.get("Version");if(e instanceof i.Name){if(n.PDF_VERSION_REGEXP.test(e.name))return(0,a.shadow)(this,"version",e.name);(0,a.warn)("Invalid PDF catalog version: ".concat(e.name))}return(0,a.shadow)(this,"version",null)}},{key:"lang",get:function(){var e=this._catDict.get("Lang");return(0,a.shadow)(this,"lang","string"==typeof e?(0,a.stringToPDFString)(e):null)}},{key:"needsRendering",get:function(){var e=this._catDict.get("NeedsRendering");return(0,a.shadow)(this,"needsRendering","boolean"==typeof e&&e)}},{key:"collection",get:function(){var e=null;try{var t=this._catDict.get("Collection");t instanceof i.Dict&&t.size>0&&(e=t)}catch(e){if(e instanceof n.MissingDataException)throw e;(0,a.info)("Cannot fetch Collection entry; assuming no collection is present.")}return(0,a.shadow)(this,"collection",e)}},{key:"acroForm",get:function(){var e=null;try{var t=this._catDict.get("AcroForm");t instanceof i.Dict&&t.size>0&&(e=t)}catch(e){if(e instanceof n.MissingDataException)throw e;(0,a.info)("Cannot fetch AcroForm entry; assuming no forms are present.")}return(0,a.shadow)(this,"acroForm",e)}},{key:"acroFormRef",get:function(){var e=this._catDict.getRaw("AcroForm");return(0,a.shadow)(this,"acroFormRef",e instanceof i.Ref?e:null)}},{key:"metadata",get:function(){var e=this._catDict.getRaw("Metadata");if(!(e instanceof i.Ref))return(0,a.shadow)(this,"metadata",null);var t=null;try{var r,o=this.xref.fetch(e,!(null!==(r=this.xref.encrypt)&&void 0!==r&&r.encryptMetadata));if(o instanceof s.BaseStream&&o.dict instanceof i.Dict){var c=o.dict.get("Type"),u=o.dict.get("Subtype");if((0,i.isName)(c,"Metadata")&&(0,i.isName)(u,"XML")){var l=(0,a.stringToUTF8String)(o.getString());l&&(t=new d.MetadataParser(l).serializable)}}}catch(e){if(e instanceof n.MissingDataException)throw e;(0,a.info)('Skipping invalid Metadata: "'.concat(e,'".'))}return(0,a.shadow)(this,"metadata",t)}},{key:"markInfo",get:function(){var e=null;try{e=this._readMarkInfo()}catch(e){if(e instanceof n.MissingDataException)throw e;(0,a.warn)("Unable to read mark info.")}return(0,a.shadow)(this,"markInfo",e)}},{key:"_readMarkInfo",value:function(){var e=this._catDict.get("MarkInfo");if(!(e instanceof i.Dict))return null;var t={Marked:!1,UserProperties:!1,Suspects:!1};for(var r in t){var n=e.get(r);"boolean"==typeof n&&(t[r]=n)}return t}},{key:"structTreeRoot",get:function(){var e=null;try{e=this._readStructTreeRoot()}catch(e){if(e instanceof n.MissingDataException)throw e;(0,a.warn)("Unable read to structTreeRoot info.")}return(0,a.shadow)(this,"structTreeRoot",e)}},{key:"_readStructTreeRoot",value:function(){var e=this._catDict.get("StructTreeRoot");if(!(e instanceof i.Dict))return null;var t=new p.StructTreeRoot(e);return t.init(),t}},{key:"toplevelPagesDict",get:function(){var e=this._catDict.get("Pages");if(!(e instanceof i.Dict))throw new a.FormatError("Invalid top-level pages dictionary.");return(0,a.shadow)(this,"toplevelPagesDict",e)}},{key:"documentOutline",get:function(){var e=null;try{e=this._readDocumentOutline()}catch(e){if(e instanceof n.MissingDataException)throw e;(0,a.warn)("Unable to read document outline.")}return(0,a.shadow)(this,"documentOutline",e)}},{key:"_readDocumentOutline",value:function(){var t=this._catDict.get("Outlines");if(!(t instanceof i.Dict))return null;if(!((t=t.getRaw("First"))instanceof i.Ref))return null;var r={items:[]},n=[{obj:t,parent:r}],o=new i.RefSet;o.put(t);for(var s=this.xref,c=new Uint8ClampedArray(3);n.length>0;){var l=n.shift(),h=s.fetchIfRef(l.obj);if(null!==h){if(!h.has("Title"))throw new a.FormatError("Invalid outline item encountered.");var f={url:null,dest:null,action:null};e.parseDestDictionary({destDict:h,resultObj:f,docBaseUrl:this.pdfManager.docBaseUrl,docAttachments:this.attachments});var d=h.get("Title"),p=h.get("F")||0,g=h.getArray("C"),v=h.get("Count"),m=c;!Array.isArray(g)||3!==g.length||0===g[0]&&0===g[1]&&0===g[2]||(m=u.ColorSpace.singletons.rgb.getRgb(g,0));var y={action:f.action,attachment:f.attachment,dest:f.dest,url:f.url,unsafeUrl:f.unsafeUrl,newWindow:f.newWindow,setOCGState:f.setOCGState,title:(0,a.stringToPDFString)(d),color:m,count:Number.isInteger(v)?v:void 0,bold:!!(2&p),italic:!!(1&p),items:[]};l.parent.items.push(y),(t=h.getRaw("First"))instanceof i.Ref&&!o.has(t)&&(n.push({obj:t,parent:y}),o.put(t)),(t=h.getRaw("Next"))instanceof i.Ref&&!o.has(t)&&(n.push({obj:t,parent:l.parent}),o.put(t))}}return r.items.length>0?r.items:null}},{key:"permissions",get:function(){var e=null;try{e=this._readPermissions()}catch(e){if(e instanceof n.MissingDataException)throw e;(0,a.warn)("Unable to read permissions.")}return(0,a.shadow)(this,"permissions",e)}},{key:"_readPermissions",value:function(){var e=this.xref.trailer.get("Encrypt");if(!(e instanceof i.Dict))return null;var t=e.get("P");if("number"!=typeof t)return null;t+=Math.pow(2,32);var r=[];for(var n in a.PermissionFlag){var o=a.PermissionFlag[n];t&o&&r.push(o)}return r}},{key:"optionalContentConfig",get:function(){var e=null;try{var t=this._catDict.get("OCProperties");if(!t)return(0,a.shadow)(this,"optionalContentConfig",null);var r=t.get("D");if(!r)return(0,a.shadow)(this,"optionalContentConfig",null);var o=t.get("OCGs");if(!Array.isArray(o))return(0,a.shadow)(this,"optionalContentConfig",null);var s,c=[],u=[],l=x(o);try{for(l.s();!(s=l.n()).done;){var h=s.value;if(h instanceof i.Ref){u.push(h);var f=this.xref.fetchIfRef(h);c.push({id:h.toString(),name:"string"==typeof f.get("Name")?(0,a.stringToPDFString)(f.get("Name")):null,intent:"string"==typeof f.get("Intent")?(0,a.stringToPDFString)(f.get("Intent")):null})}}}catch(e){l.e(e)}finally{l.f()}(e=this._readOptionalContentConfig(r,u)).groups=c}catch(e){if(e instanceof n.MissingDataException)throw e;(0,a.warn)("Unable to read optional content config: ".concat(e))}return(0,a.shadow)(this,"optionalContentConfig",e)}},{key:"_readOptionalContentConfig",value:function(e,t){function r(e){var r=[];if(Array.isArray(e)){var n,a=x(e);try{for(a.s();!(n=a.n()).done;){var o=n.value;o instanceof i.Ref&&t.includes(o)&&r.push(o.toString())}}catch(e){a.e(e)}finally{a.f()}}return r}function n(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!Array.isArray(e))return null;var n,a=[],s=x(e);try{for(s.s();!(n=s.n()).done;){var u=n.value;if(u instanceof i.Ref&&t.includes(u))c.put(u),a.push(u.toString());else{var l=o(u,r);l&&a.push(l)}}}catch(e){s.e(e)}finally{s.f()}if(r>0)return a;var h,f=[],d=x(t);try{for(d.s();!(h=d.n()).done;){var p=h.value;c.has(p)||f.push(p.toString())}}catch(e){d.e(e)}finally{d.f()}return f.length&&a.push({name:null,order:f}),a}function o(e,t){if(++t>u)return(0,a.warn)("parseNestedOrder - reached MAX_NESTED_LEVELS."),null;var r=s.fetchIfRef(e);if(!Array.isArray(r))return null;var i=s.fetchIfRef(r[0]);if("string"!=typeof i)return null;var o=n(r.slice(1),t);return o&&o.length?{name:(0,a.stringToPDFString)(i),order:o}:null}var s=this.xref,c=new i.RefSet,u=10;return{name:"string"==typeof e.get("Name")?(0,a.stringToPDFString)(e.get("Name")):null,creator:"string"==typeof e.get("Creator")?(0,a.stringToPDFString)(e.get("Creator")):null,baseState:e.get("BaseState")instanceof i.Name?e.get("BaseState").name:null,on:r(e.get("ON")),off:r(e.get("OFF")),order:n(e.get("Order")),groups:null}}},{key:"setActualNumPages",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this._actualNumPages=e}},{key:"hasActualNumPages",get:function(){return null!==this._actualNumPages}},{key:"_pagesCount",get:function(){var e=this.toplevelPagesDict.get("Count");if(!Number.isInteger(e))throw new a.FormatError("Page count in top-level pages dictionary is not an integer.");return(0,a.shadow)(this,"_pagesCount",e)}},{key:"numPages",get:function(){return this.hasActualNumPages?this._actualNumPages:this._pagesCount}},{key:"destinations",get:function(){var e=this._readDests(),t=Object.create(null);if(e instanceof o.NameTree){var r,n=x(e.getAll());try{for(n.s();!(r=n.n()).done;){var s=S(r.value,2),c=s[0],u=g(s[1]);u&&(t[(0,a.stringToPDFString)(c)]=u)}}catch(e){n.e(e)}finally{n.f()}}else e instanceof i.Dict&&e.forEach((function(e,r){var n=g(r);n&&(t[e]=n)}));return(0,a.shadow)(this,"destinations",t)}},{key:"getDestination",value:function(e){var t=this._readDests();if(t instanceof o.NameTree){var r=g(t.get(e));if(r)return r;var n=this.destinations[e];if(n)return(0,a.warn)('Found "'.concat(e,'" at an incorrect position in the NameTree.')),n}else if(t instanceof i.Dict){var s=g(t.get(e));if(s)return s}return null}},{key:"_readDests",value:function(){var e=this._catDict.get("Names");return null!=e&&e.has("Dests")?new o.NameTree(e.getRaw("Dests"),this.xref):this._catDict.has("Dests")?this._catDict.get("Dests"):void 0}},{key:"pageLabels",get:function(){var e=null;try{e=this._readPageLabels()}catch(e){if(e instanceof n.MissingDataException)throw e;(0,a.warn)("Unable to read page labels.")}return(0,a.shadow)(this,"pageLabels",e)}},{key:"_readPageLabels",value:function(){var e=this._catDict.getRaw("PageLabels");if(!e)return null;for(var t=new Array(this.numPages),r=null,s="",c=new o.NumberTree(e,this.xref).getAll(),u="",l=1,h=0,f=this.numPages;h=1))throw new a.FormatError("Invalid start in PageLabel dictionary.");l=v}else l=1}switch(r){case"D":u=l;break;case"R":case"r":u=(0,n.toRomanNumerals)(l,"r"===r);break;case"A":case"a":var m="a"===r?97:65,y=l-1;u=String.fromCharCode(m+y%26).repeat(Math.floor(y/26)+1);break;default:if(r)throw new a.FormatError('Invalid style "'.concat(r,'" in PageLabel dictionary.'));u=""}t[h]=s+u,l++}return t}},{key:"pageLayout",get:function(){var e=this._catDict.get("PageLayout"),t="";if(e instanceof i.Name)switch(e.name){case"SinglePage":case"OneColumn":case"TwoColumnLeft":case"TwoColumnRight":case"TwoPageLeft":case"TwoPageRight":t=e.name}return(0,a.shadow)(this,"pageLayout",t)}},{key:"pageMode",get:function(){var e=this._catDict.get("PageMode"),t="UseNone";if(e instanceof i.Name)switch(e.name){case"UseNone":case"UseOutlines":case"UseThumbs":case"FullScreen":case"UseOC":case"UseAttachments":t=e.name}return(0,a.shadow)(this,"pageMode",t)}},{key:"viewerPreferences",get:function(){var e=this,t=this._catDict.get("ViewerPreferences");if(!(t instanceof i.Dict))return(0,a.shadow)(this,"viewerPreferences",null);var r,n=null,o=x(t.getKeys());try{for(o.s();!(r=o.n()).done;){var s=r.value,c=t.get(s),u=void 0;switch(s){case"HideToolbar":case"HideMenubar":case"HideWindowUI":case"FitWindow":case"CenterWindow":case"DisplayDocTitle":case"PickTrayByPDFSize":"boolean"==typeof c&&(u=c);break;case"NonFullScreenPageMode":if(c instanceof i.Name)switch(c.name){case"UseNone":case"UseOutlines":case"UseThumbs":case"UseOC":u=c.name;break;default:u="UseNone"}break;case"Direction":if(c instanceof i.Name)switch(c.name){case"L2R":case"R2L":u=c.name;break;default:u="L2R"}break;case"ViewArea":case"ViewClip":case"PrintArea":case"PrintClip":if(c instanceof i.Name)switch(c.name){case"MediaBox":case"CropBox":case"BleedBox":case"TrimBox":case"ArtBox":u=c.name;break;default:u="CropBox"}break;case"PrintScaling":if(c instanceof i.Name)switch(c.name){case"None":case"AppDefault":u=c.name;break;default:u="AppDefault"}break;case"Duplex":if(c instanceof i.Name)switch(c.name){case"Simplex":case"DuplexFlipShortEdge":case"DuplexFlipLongEdge":u=c.name;break;default:u="None"}break;case"PrintPageRange":Array.isArray(c)&&c.length%2==0&&c.every((function(t,r,n){return Number.isInteger(t)&&t>0&&(0===r||t>=n[r-1])&&t<=e.numPages}))&&(u=c);break;case"NumCopies":Number.isInteger(c)&&c>0&&(u=c);break;default:(0,a.warn)("Ignoring non-standard key in ViewerPreferences: ".concat(s,"."));continue}void 0!==u?(n||(n=Object.create(null)),n[s]=u):(0,a.warn)('Bad value, for key "'.concat(s,'", in ViewerPreferences: ').concat(c,"."))}}catch(e){o.e(e)}finally{o.f()}return(0,a.shadow)(this,"viewerPreferences",n)}},{key:"openAction",get:function(){var t=this._catDict.get("OpenAction"),r=Object.create(null);if(t instanceof i.Dict){var n=new i.Dict(this.xref);n.set("A",t);var o={url:null,dest:null,action:null};e.parseDestDictionary({destDict:n,resultObj:o}),Array.isArray(o.dest)?r.dest=o.dest:o.action&&(r.action=o.action)}else Array.isArray(t)&&(r.dest=t);return(0,a.shadow)(this,"openAction",(0,a.objectSize)(r)>0?r:null)}},{key:"attachments",get:function(){var e=this._catDict.get("Names"),t=null;if(e instanceof i.Dict&&e.has("EmbeddedFiles")){var r,n=x(new o.NameTree(e.getRaw("EmbeddedFiles"),this.xref).getAll());try{for(n.s();!(r=n.n()).done;){var s=S(r.value,2),c=s[0],u=s[1],h=new l.FileSpec(u,this.xref);t||(t=Object.create(null)),t[(0,a.stringToPDFString)(c)]=h.serializable}}catch(e){n.e(e)}finally{n.f()}}return(0,a.shadow)(this,"attachments",t)}},{key:"xfaImages",get:function(){var e=this._catDict.get("Names"),t=null;if(e instanceof i.Dict&&e.has("XFAImages")){var r,n=x(new o.NameTree(e.getRaw("XFAImages"),this.xref).getAll());try{for(n.s();!(r=n.n()).done;){var s=S(r.value,2),c=s[0],u=s[1];t||(t=new i.Dict(this.xref)),t.set((0,a.stringToPDFString)(c),u)}}catch(e){n.e(e)}finally{n.f()}}return(0,a.shadow)(this,"xfaImages",t)}},{key:"_collectJavaScript",value:function(){var e=this._catDict.get("Names"),t=null;function r(e,r){if(r instanceof i.Dict&&(0,i.isName)(r.get("S"),"JavaScript")){var n=r.get("JS");if(n instanceof s.BaseStream)n=n.getString();else if("string"!=typeof n)return;n=(0,a.stringToPDFString)(n).replaceAll("\0",""),(t||(t=new Map)).set(e,n)}}if(e instanceof i.Dict&&e.has("JavaScript")){var n,c=x(new o.NameTree(e.getRaw("JavaScript"),this.xref).getAll());try{for(c.s();!(n=c.n()).done;){var u=S(n.value,2),l=u[0],h=u[1];r((0,a.stringToPDFString)(l),h)}}catch(e){c.e(e)}finally{c.f()}}var f=this._catDict.get("OpenAction");return f&&r("OpenAction",f),t}},{key:"javaScript",get:function(){var e=this._collectJavaScript();return(0,a.shadow)(this,"javaScript",e?f(e.values()):null)}},{key:"jsActions",get:function(){var e=this._collectJavaScript(),t=(0,n.collectActions)(this.xref,this._catDict,a.DocumentActionEventType);if(e){t||(t=Object.create(null));var r,i=x(e);try{for(i.s();!(r=i.n()).done;){var o=S(r.value,2),s=o[0],c=o[1];s in t?t[s].push(c):t[s]=[c]}}catch(e){i.e(e)}finally{i.f()}}return(0,a.shadow)(this,"jsActions",t)}},{key:"fontFallback",value:(m=T(k().mark((function e(t,r){var n,a,i,o;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all(this.fontCache);case 2:n=e.sent,a=x(n),e.prev=4,a.s();case 6:if((i=a.n()).done){e.next=13;break}if((o=i.value).loadedName!==t){e.next=11;break}return o.fallback(r),e.abrupt("return");case 11:e.next=6;break;case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(4),a.e(e.t0);case 18:return e.prev=18,a.f(),e.finish(18);case 21:case"end":return e.stop()}}),e,this,[[4,15,18,21]])}))),function(e,t){return m.apply(this,arguments)})},{key:"cleanup",value:(v=T(k().mark((function e(){var t,r,n,a,i=arguments;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=i.length>0&&void 0!==i[0]&&i[0],(0,c.clearGlobalCaches)(),this.globalImageCache.clear(t),this.pageKidsCountCache.clear(),this.pageIndexCache.clear(),this.nonBlendModesSet.clear(),e.next=8,Promise.all(this.fontCache);case 8:r=e.sent,n=x(r);try{for(n.s();!(a=n.n()).done;)delete a.value.dict.cacheKey}catch(e){n.e(e)}finally{n.f()}this.fontCache.clear(),this.builtInCMapCache.clear(),this.standardFontDataCache.clear(),this.systemFontCache.clear();case 15:case"end":return e.stop()}}),e,this)}))),function(){return v.apply(this,arguments)})},{key:"getPageDict",value:(r=T(k().mark((function e(t){var r,n,o,s,c,u,l,h,f,d,p,g,v,m,y,b;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=[this.toplevelPagesDict],n=new i.RefSet,(o=this._catDict.getRaw("Pages"))instanceof i.Ref&&n.put(o),s=this.xref,c=this.pageKidsCountCache,u=this.pageIndexCache,l=0;case 4:if(!r.length){e.next=69;break}if(!((h=r.pop())instanceof i.Ref)){e.next=33;break}if(!((f=c.get(h))>=0&&l+f<=t)){e.next=11;break}return l+=f,e.abrupt("continue",67);case 11:if(!n.has(h)){e.next=13;break}throw new a.FormatError("Pages tree contains circular reference.");case 13:return n.put(h),e.next=16,s.fetchAsync(h);case 16:if(!((d=e.sent)instanceof i.Dict)){e.next=31;break}if(p=d.getRaw("Type"),e.t0=p instanceof i.Ref,!e.t0){e.next=24;break}return e.next=23,s.fetchAsync(p);case 23:p=e.sent;case 24:if(!(0,i.isName)(p,"Page")&&d.has("Kids")){e.next=31;break}if(c.has(h)||c.put(h,1),u.has(h)||u.put(h,l),l!==t){e.next=29;break}return e.abrupt("return",[d,h]);case 29:return l++,e.abrupt("continue",67);case 31:return r.push(d),e.abrupt("continue",67);case 33:if(h instanceof i.Dict){e.next=35;break}throw new a.FormatError("Page dictionary kid reference points to wrong type of object.");case 35:if(g=h.objId,v=h.getRaw("Count"),e.t1=v instanceof i.Ref,!e.t1){e.next=42;break}return e.next=41,s.fetchAsync(v);case 41:v=e.sent;case 42:if(!(Number.isInteger(v)&&v>=0)){e.next=47;break}if(g&&!c.has(g)&&c.put(g,v),!(l+v<=t)){e.next=47;break}return l+=v,e.abrupt("continue",67);case 47:if(m=h.getRaw("Kids"),e.t2=m instanceof i.Ref,!e.t2){e.next=53;break}return e.next=52,s.fetchAsync(m);case 52:m=e.sent;case 53:if(Array.isArray(m)){e.next=66;break}if(y=h.getRaw("Type"),e.t3=y instanceof i.Ref,!e.t3){e.next=60;break}return e.next=59,s.fetchAsync(y);case 59:y=e.sent;case 60:if(!(0,i.isName)(y,"Page")&&h.has("Kids")){e.next=65;break}if(l!==t){e.next=63;break}return e.abrupt("return",[h,null]);case 63:return l++,e.abrupt("continue",67);case 65:throw new a.FormatError("Page dictionary kids object is not an array.");case 66:for(b=m.length-1;b>=0;b--)r.push(m[b]);case 67:e.next=4;break;case 69:throw new Error("Page index ".concat(t," not found."));case 70:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"getAllPageDicts",value:(t=T(k().mark((function e(){var t,r,o,s,c,u,l,h,f,d,p,g,v,m,y,b,w,x,S=arguments;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:p=function(e){if(e instanceof n.XRefEntryException&&!t)throw e;t&&r&&0===f&&((0,a.warn)('getAllPageDicts - Skipping invalid first page: "'.concat(e,'".')),e=i.Dict.empty),u.set(f++,[e,null])},d=function(e,t){t&&!h.has(t)&&h.put(t,f),u.set(f++,[e,t])},t=S.length>0&&void 0!==S[0]&&S[0],r=this.pdfManager.evaluatorOptions.ignoreErrors,o=[{currentNode:this.toplevelPagesDict,posInKids:0}],s=new i.RefSet,(c=this._catDict.getRaw("Pages"))instanceof i.Ref&&s.put(c),u=new Map,l=this.xref,h=this.pageIndexCache,f=0;case 7:if(!(o.length>0)){e.next=66;break}if(g=o.at(-1),v=g.currentNode,m=g.posInKids,!((y=v.getRaw("Kids"))instanceof i.Ref)){e.next=21;break}return e.prev=11,e.next=14,l.fetchAsync(y);case 14:y=e.sent,e.next=21;break;case 17:return e.prev=17,e.t0=e.catch(11),p(e.t0),e.abrupt("break",66);case 21:if(Array.isArray(y)){e.next=24;break}return p(new a.FormatError("Page dictionary kids object is not an array.")),e.abrupt("break",66);case 24:if(!(m>=y.length)){e.next=27;break}return o.pop(),e.abrupt("continue",64);case 27:if(b=y[m],w=void 0,!(b instanceof i.Ref)){e.next=46;break}if(!s.has(b)){e.next=33;break}return p(new a.FormatError("Pages tree contains circular reference.")),e.abrupt("break",66);case 33:return s.put(b),e.prev=34,e.next=37,l.fetchAsync(b);case 37:w=e.sent,e.next=44;break;case 40:return e.prev=40,e.t1=e.catch(34),p(e.t1),e.abrupt("break",66);case 44:e.next=47;break;case 46:w=b;case 47:if(w instanceof i.Dict){e.next=50;break}return p(new a.FormatError("Page dictionary kid reference points to wrong type of object.")),e.abrupt("break",66);case 50:if(!((x=w.getRaw("Type"))instanceof i.Ref)){e.next=62;break}return e.prev=52,e.next=55,l.fetchAsync(x);case 55:x=e.sent,e.next=62;break;case 58:return e.prev=58,e.t2=e.catch(52),p(e.t2),e.abrupt("break",66);case 62:(0,i.isName)(x,"Page")||!w.has("Kids")?d(w,b instanceof i.Ref?b:null):o.push({currentNode:w,posInKids:0}),g.posInKids++;case 64:e.next=7;break;case 66:return e.abrupt("return",u);case 67:case"end":return e.stop()}}),e,this,[[11,17],[34,40],[52,58]])}))),function(){return t.apply(this,arguments)})},{key:"getPageIndex",value:function(e){var t=this,r=this.pageIndexCache.get(e);if(void 0!==r)return Promise.resolve(r);var n=this.xref,o=0;return function r(s){return function(t){var r,o=0;return n.fetchAsync(t).then((function(n){if((0,i.isRefsEqual)(t,e)&&!(0,i.isDict)(n,"Page")&&!(n instanceof i.Dict&&!n.has("Type")&&n.has("Contents")))throw new a.FormatError("The reference does not point to a /Page dictionary.");if(!n)return null;if(!(n instanceof i.Dict))throw new a.FormatError("Node must be a dictionary.");return r=n.getRaw("Parent"),n.getAsync("Parent")})).then((function(e){if(!e)return null;if(!(e instanceof i.Dict))throw new a.FormatError("Parent must be a dictionary.");return e.getAsync("Kids")})).then((function(e){if(!e)return null;var s,c=[],u=!1,l=x(e);try{for(l.s();!(s=l.n()).done;){var h=s.value;if(!(h instanceof i.Ref))throw new a.FormatError("Kid must be a reference.");if((0,i.isRefsEqual)(h,t)){u=!0;break}c.push(n.fetchAsync(h).then((function(e){if(!(e instanceof i.Dict))throw new a.FormatError("Kid node must be a dictionary.");e.has("Count")?o+=e.get("Count"):o++})))}}catch(e){l.e(e)}finally{l.f()}if(!u)throw new a.FormatError("Kid reference not found in parent's kids.");return Promise.all(c).then((function(){return[o,r]}))}))}(s).then((function(n){if(!n)return t.pageIndexCache.put(e,o),o;var a=S(n,2),i=a[0],s=a[1];return o+=i,r(s)}))}(e)}},{key:"baseUrl",get:function(){var e=this._catDict.get("URI");if(e instanceof i.Dict){var t=e.get("Base");if("string"==typeof t){var r=(0,a.createValidAbsoluteUrl)(t,null,{tryConvertEncoding:!0});if(r)return(0,a.shadow)(this,"baseUrl",r.href)}}return(0,a.shadow)(this,"baseUrl",null)}}],[{key:"parseDestDictionary",value:function(e){var t=e.destDict;if(t instanceof i.Dict){var r=e.resultObj;if("object"==N(r)){var o,c,u=e.docBaseUrl||null,l=e.docAttachments||null,h=t.get("A");if(h instanceof i.Dict||(t.has("Dest")?h=t.get("Dest"):(h=t.get("AA"))instanceof i.Dict&&(h.has("D")?h=h.get("D"):h.has("U")&&(h=h.get("U")))),h instanceof i.Dict){var f=h.get("S");if(!(f instanceof i.Name))return void(0,a.warn)("parseDestDictionary: Invalid type in Action dictionary.");var d=f.name;switch(d){case"ResetForm":var p,g=h.get("Flags"),v=0==(1&("number"==typeof g?g:0)),m=[],y=[],b=x(h.get("Fields")||[]);try{for(b.s();!(p=b.n()).done;){var w=p.value;w instanceof i.Ref?y.push(w.toString()):"string"==typeof w&&m.push((0,a.stringToPDFString)(w))}}catch(e){b.e(e)}finally{b.f()}r.resetForm={fields:m,refs:y,include:v};break;case"URI":(o=h.get("URI"))instanceof i.Name&&(o="/"+o.name);break;case"GoTo":c=h.get("D");break;case"Launch":case"GoToR":var k=h.get("F");k instanceof i.Dict?o=k.get("F")||null:"string"==typeof k&&(o=k);var S=h.get("D");if(S&&(S instanceof i.Name&&(S=S.name),"string"==typeof o)){var A=o.split("#")[0];"string"==typeof S?o=A+"#"+S:Array.isArray(S)&&(o=A+"#"+JSON.stringify(S))}var C=h.get("NewWindow");"boolean"==typeof C&&(r.newWindow=C);break;case"GoToE":var O,F=h.get("T");if(l&&F instanceof i.Dict){var I=F.get("R"),T=F.get("N");(0,i.isName)(I,"C")&&"string"==typeof T&&(O=l[(0,a.stringToPDFString)(T)])}O?r.attachment=O:(0,a.warn)('parseDestDictionary - unimplemented "GoToE" action.');break;case"Named":var M=h.get("N");M instanceof i.Name&&(r.action=M.name);break;case"SetOCGState":var E=h.get("State"),P=h.get("PreserveRB");if(!Array.isArray(E)||0===E.length)break;var R,D=[],B=x(E);try{for(B.s();!(R=B.n()).done;){var L=R.value;if(L instanceof i.Name)switch(L.name){case"ON":case"OFF":case"Toggle":D.push(L.name)}else L instanceof i.Ref&&D.push(L.toString())}}catch(e){B.e(e)}finally{B.f()}if(D.length!==E.length)break;r.setOCGState={state:D,preserveRB:"boolean"!=typeof P||P};break;case"JavaScript":var _,j=h.get("JS");j instanceof s.BaseStream?_=j.getString():"string"==typeof j&&(_=j);var U=_&&(0,n.recoverJsURL)((0,a.stringToPDFString)(_));if(U){o=U.url,r.newWindow=U.newWindow;break}default:if("JavaScript"===d||"SubmitForm"===d)break;(0,a.warn)('parseDestDictionary - unsupported action: "'.concat(d,'".'))}}else t.has("Dest")&&(c=t.get("Dest"));if("string"==typeof o){var $=(0,a.createValidAbsoluteUrl)(o,u,{addDefaultProtocol:!0,tryConvertEncoding:!0});$&&(r.url=$.href),r.unsafeUrl=o}c&&(c instanceof i.Name&&(c=c.name),"string"==typeof c?r.dest=(0,a.stringToPDFString)(c):Array.isArray(c)&&(r.dest=c))}else(0,a.warn)("parseDestDictionary: `resultObj` must be an object.")}else(0,a.warn)("parseDestDictionary: `destDict` must be a dictionary.")}}]),e}();t.Catalog=v},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.NumberTree=t.NameTree=void 0,r(139);var n=r(150),a=r(144),i=function(){function e(t,r,n){M(this,e),this.constructor===e&&(0,a.unreachable)("Cannot initialize NameOrNumberTree."),this.root=t,this.xref=r,this._type=n}return P(e,[{key:"getAll",value:function(){var e=new Map;if(!this.root)return e;var t=this.xref,r=new n.RefSet;r.put(this.root);for(var i=[this.root];i.length>0;){var o=t.fetchIfRef(i.shift());if(o instanceof n.Dict)if(o.has("Kids")){var s=o.get("Kids");if(!Array.isArray(s))continue;var c,u=x(s);try{for(u.s();!(c=u.n()).done;){var l=c.value;if(r.has(l))throw new a.FormatError('Duplicate entry in "'.concat(this._type,'" tree.'));i.push(l),r.put(l)}}catch(e){u.e(e)}finally{u.f()}}else{var h=o.get(this._type);if(Array.isArray(h))for(var f=0,d=h.length;f10)return(0,a.warn)('Search depth limit reached for "'.concat(this._type,'" tree.')),null;var i=r.get("Kids");if(!Array.isArray(i))return null;for(var o=0,s=i.length-1;o<=s;){var c=o+s>>1,u=t.fetchIfRef(i[c]),l=u.get("Limits");if(et.fetchIfRef(l[1]))){r=u;break}o=c+1}}if(o>s)return null}var h=r.get(this._type);if(Array.isArray(h))for(var f=0,d=h.length-2;f<=d;){var p=f+d>>1,g=p+(1&p),v=t.fetchIfRef(h[g]);if(ev))return t.fetchIfRef(h[g+1]);f=g+2}}return null}}]),e}();t.NameTree=function(e){function t(e,r){return M(this,t),d(this,t,[e,r,"Names"])}return y(t,e),P(t)}(i),t.NumberTree=function(e){function t(e,r){return M(this,t),d(this,t,[e,r,"Nums"])}return y(t,e),P(t)}(i)},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.clearGlobalCaches=function(){(0,n.clearPrimitiveCaches)(),(0,a.clearUnicodeCaches)()};var n=r(150),a=r(190)},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.FileSpec=void 0;var n=r(144),a=r(151),i=r(150);function o(e){return e.has("UF")?e.get("UF"):e.has("F")?e.get("F"):e.has("Unix")?e.get("Unix"):e.has("Mac")?e.get("Mac"):e.has("DOS")?e.get("DOS"):null}t.FileSpec=function(){function e(t,r){M(this,e),t instanceof i.Dict&&(this.xref=r,this.root=t,t.has("FS")&&(this.fs=t.get("FS")),this.description=t.has("Desc")?(0,n.stringToPDFString)(t.get("Desc")):"",t.has("RF")&&(0,n.warn)("Related file specifications are not supported"),this.contentAvailable=!0,t.has("EF")||(this.contentAvailable=!1,(0,n.warn)("Non-embedded file specifications are not supported")))}return P(e,[{key:"filename",get:function(){if(!this._filename&&this.root){var e=o(this.root)||"unnamed";this._filename=(0,n.stringToPDFString)(e).replaceAll("\\\\","\\").replaceAll("\\/","/").replaceAll("\\","/")}return this._filename}},{key:"content",get:function(){if(!this.contentAvailable)return null;!this.contentRef&&this.root&&(this.contentRef=o(this.root.get("EF")));var e=null;if(this.contentRef){var t=this.xref.fetchIfRef(this.contentRef);t instanceof a.BaseStream?e=t.getBytes():(0,n.warn)("Embedded file specification points to non-existing/invalid content")}else(0,n.warn)("Embedded file specification does not have a content");return e}},{key:"serializable",get:function(){return{filename:this.filename,content:this.content}}}]),e}()},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.MetadataParser=void 0,r(2),r(139);var n=r(217);t.MetadataParser=function(){function e(t){M(this,e),t=this._repair(t);var r=new n.SimpleXMLParser({lowerCaseName:!0}).parseFromString(t);this._metadataMap=new Map,this._data=t,r&&this._parse(r)}return P(e,[{key:"_repair",value:function(e){return e.replace(/^[^<]+/,"").replaceAll(/>\\376\\377([^<]+)/g,(function(e,t){for(var r=t.replaceAll(/\\([0-3])([0-7])([0-7])/g,(function(e,t,r,n){return String.fromCharCode(64*t+8*r+1*n)})).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 new Error("_repair: ".concat(t," isn't defined."))})),n=[">"],a=0,i=r.length;a=32&&o<127&&60!==o&&62!==o&&38!==o?n.push(String.fromCharCode(o)):n.push("&#x"+(65536+o).toString(16).substring(1)+";")}return n.join("")}))}},{key:"_getSequence",value:function(e){var t=e.nodeName;return"rdf:bag"!==t&&"rdf:seq"!==t&&"rdf:alt"!==t?null:e.childNodes.filter((function(e){return"rdf:li"===e.nodeName}))}},{key:"_parseArray",value:function(e){if(e.hasChildNodes()){var t=S(e.childNodes,1)[0],r=this._getSequence(t)||[];this._metadataMap.set(e.nodeName,r.map((function(e){return e.textContent.trim()})))}}},{key:"_parse",value:function(e){var t=e.documentElement;if("rdf:rdf"!==t.nodeName)for(t=t.firstChild;t&&"rdf:rdf"!==t.nodeName;)t=t.nextSibling;if(t&&"rdf:rdf"===t.nodeName&&t.hasChildNodes()){var r,n=x(t.childNodes);try{for(n.s();!(r=n.n()).done;){var a=r.value;if("rdf:description"===a.nodeName){var i,o=x(a.childNodes);try{for(o.s();!(i=o.n()).done;){var s=i.value,c=s.nodeName;switch(c){case"#text":continue;case"dc:creator":case"dc:subject":this._parseArray(s);continue}this._metadataMap.set(c,s.textContent.trim())}}catch(e){o.e(e)}finally{o.f()}}}}catch(e){n.e(e)}finally{n.f()}}}},{key:"serializable",get:function(){return{parsedData:this._metadataMap,rawData:this._data}}}]),e}()},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.StructTreeRoot=t.StructTreePage=void 0,r(139);var n=r(150),a=r(144),i=r(221),o="PAGE_CONTENT",s="STREAM_CONTENT",c="OBJECT",u="ELEMENT";t.StructTreeRoot=function(){function e(t){M(this,e),this.dict=t,this.roleMap=new Map}return P(e,[{key:"init",value:function(){this.readRoleMap()}},{key:"readRoleMap",value:function(){var e=this,t=this.dict.get("RoleMap");t instanceof n.Dict&&t.forEach((function(t,r){r instanceof n.Name&&e.roleMap.set(t,r.name)}))}}]),e}();var l=function(){function e(t,r){M(this,e),this.tree=t,this.dict=r,this.kids=[],this.parseKids()}return P(e,[{key:"role",get:function(){var e=this.dict.get("S"),t=e instanceof n.Name?e.name:"",r=this.tree.root;return r.roleMap.has(t)?r.roleMap.get(t):t}},{key:"parseKids",value:function(){var e=null,t=this.dict.getRaw("Pg");t instanceof n.Ref&&(e=t.toString());var r=this.dict.get("K");if(Array.isArray(r)){var a,i=x(r);try{for(i.s();!(a=i.n()).done;){var o=a.value,s=this.parseKid(e,o);s&&this.kids.push(s)}}catch(e){i.e(e)}finally{i.f()}}else{var c=this.parseKid(e,r);c&&this.kids.push(c)}}},{key:"parseKid",value:function(e,t){if(Number.isInteger(t))return this.tree.pageDict.objId!==e?null:new h({type:o,mcid:t,pageObjId:e});var r=null;if(t instanceof n.Ref?r=this.dict.xref.fetch(t):t instanceof n.Dict&&(r=t),!r)return null;var a=r.getRaw("Pg");a instanceof n.Ref&&(e=a.toString());var i=r.get("Type")instanceof n.Name?r.get("Type").name:null;return"MCR"===i?this.tree.pageDict.objId!==e?null:new h({type:s,refObjId:r.getRaw("Stm")instanceof n.Ref?r.getRaw("Stm").toString():null,pageObjId:e,mcid:r.get("MCID")}):"OBJR"===i?this.tree.pageDict.objId!==e?null:new h({type:c,refObjId:r.getRaw("Obj")instanceof n.Ref?r.getRaw("Obj").toString():null,pageObjId:e}):new h({type:u,dict:r})}}]),e}(),h=P((function e(t){M(this,e);var r=t.type,n=t.dict,a=void 0===n?null:n,i=t.mcid,o=void 0===i?null:i,s=t.pageObjId,c=void 0===s?null:s,u=t.refObjId,l=void 0===u?null:u;this.type=r,this.dict=a,this.mcid=o,this.pageObjId=c,this.refObjId=l,this.parentNode=null}));t.StructTreePage=function(){function e(t,r){M(this,e),this.root=t,this.rootDict=t?t.dict:null,this.pageDict=r,this.nodes=[]}return P(e,[{key:"parse",value:function(){if(this.root&&this.rootDict){var e=this.rootDict.get("ParentTree");if(e){var t=this.pageDict.get("StructParents");if(Number.isInteger(t)){var r=new i.NumberTree(e,this.rootDict.xref).get(t);if(Array.isArray(r)){var a,o=new Map,s=x(r);try{for(s.s();!(a=s.n()).done;){var c=a.value;c instanceof n.Ref&&this.addNode(this.rootDict.xref.fetch(c),o)}}catch(e){s.e(e)}finally{s.f()}}}}}}},{key:"addNode",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(r>40)return(0,a.warn)("StructTree MAX_DEPTH reached."),null;if(t.has(e))return t.get(e);var i=new l(this,e);t.set(e,i);var o=e.get("P");if(!o||(0,n.isName)(o.get("Type"),"StructTreeRoot"))return this.addTopLevelNode(e,i)||t.delete(e),i;var s=this.addNode(o,t,r+1);if(!s)return i;var c,h=!1,f=x(s.kids);try{for(f.s();!(c=f.n()).done;){var d=c.value;d.type===u&&d.dict===e&&(d.parentNode=i,h=!0)}}catch(e){f.e(e)}finally{f.f()}return h||t.delete(e),i}},{key:"addTopLevelNode",value:function(e,t){var r=this.rootDict.get("K");if(!r)return!1;if(r instanceof n.Dict)return r.objId===e.objId&&(this.nodes[0]=t,!0);if(!Array.isArray(r))return!0;for(var a=!1,i=0;i2&&void 0!==arguments[2]?arguments[2]:0;if(n>40)(0,a.warn)("StructTree too deep to be fully serialized.");else{var i=Object.create(null);i.role=t.role,i.children=[],r.children.push(i);var l=t.dict.get("Alt");"string"==typeof l&&(i.alt=(0,a.stringToPDFString)(l));var h=t.dict.get("Lang");"string"==typeof h&&(i.lang=(0,a.stringToPDFString)(h));var f,d=x(t.kids);try{for(d.s();!(f=d.n()).done;){var p=f.value,g=p.type===u?p.parentNode:null;g?e(g,i,n+1):p.type===o||p.type===s?i.children.push({type:"content",id:"p".concat(p.pageObjId,"_mc").concat(p.mcid)}):p.type===c&&i.children.push({type:"object",id:p.refObjId})}}catch(e){d.e(e)}finally{d.f()}}}var t=Object.create(null);t.children=[],t.role="Root";var r,n=x(this.nodes);try{for(n.s();!(r=n.n()).done;){var i=r.value;i&&e(i,t)}}catch(e){n.e(e)}finally{n.f()}return t}}]),e}()},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.ObjectLoader=void 0,r(139);var n=r(150),a=r(151),i=r(149),o=r(144);function s(e,t){if(e instanceof n.Dict)e=e.getRawValues();else if(e instanceof a.BaseStream)e=e.dict.getRawValues();else if(!Array.isArray(e))return;var r,i,o=x(e);try{for(o.s();!(r=o.n()).done;){var s=r.value;((i=s)instanceof n.Ref||i instanceof n.Dict||i instanceof a.BaseStream||Array.isArray(i))&&t.push(s)}}catch(e){o.e(e)}finally{o.f()}}t.ObjectLoader=function(){function e(t,r,n){M(this,e),this.dict=t,this.keys=r,this.xref=n,this.refSet=null}var t,r;return P(e,[{key:"load",value:(r=T(k().mark((function e(){var t,r,a,i,o,s,c;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.xref.stream.isDataLoaded){e.next=2;break}return e.abrupt("return");case 2:t=this.keys,r=this.dict,this.refSet=new n.RefSet,a=[],i=x(t);try{for(i.s();!(o=i.n()).done;)s=o.value,void 0!==(c=r.getRaw(s))&&a.push(c)}catch(e){i.e(e)}finally{i.f()}return e.abrupt("return",this._walk(a));case 8:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"_walk",value:(t=T(k().mark((function e(t){var r,c,u,l,h,f,d,p,g,v,m,y;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=[],c=[];case 1:if(!t.length){e.next=24;break}if(!((u=t.pop())instanceof n.Ref)){e.next=20;break}if(!this.refSet.has(u)){e.next=6;break}return e.abrupt("continue",22);case 6:e.prev=6,this.refSet.put(u),u=this.xref.fetch(u),e.next=20;break;case 11:if(e.prev=11,e.t0=e.catch(6),e.t0 instanceof i.MissingDataException){e.next=18;break}return(0,o.warn)('ObjectLoader._walk - requesting all data: "'.concat(e.t0,'".')),this.refSet=null,l=this.xref.stream.manager,e.abrupt("return",l.requestAllChunks());case 18:r.push(u),c.push({begin:e.t0.begin,end:e.t0.end});case 20:if(u instanceof a.BaseStream&&(h=u.getBaseStreams())){f=!1,d=x(h);try{for(d.s();!(p=d.n()).done;)(g=p.value).isDataLoaded||(f=!0,c.push({begin:g.start,end:g.end}))}catch(e){d.e(e)}finally{d.f()}f&&r.push(u)}s(u,t);case 22:e.next=1;break;case 24:if(!c.length){e.next=30;break}return e.next=27,this.xref.stream.manager.requestRanges(c);case 27:v=x(r);try{for(v.s();!(m=v.n()).done;)(y=m.value)instanceof n.Ref&&this.refSet.remove(y)}catch(e){v.e(e)}finally{v.f()}return e.abrupt("return",this._walk(r));case 30:this.refSet=null;case 31:case"end":return e.stop()}}),e,this,[[6,11]])}))),function(e){return t.apply(this,arguments)})}]),e}()},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.XFAFactory=void 0,r(139);var n=r(228),a=r(229),i=r(242),o=r(238),s=r(237),c=r(144),u=r(243),l=r(253),h=function(){function e(t){M(this,e);try{this.root=(new u.XFAParser).parse(e._createDocument(t));var r=new a.Binder(this.root);this.form=r.bind(),this.dataHandler=new i.DataHandler(this.root,r.getData()),this.form[n.$globalData].template=this.form}catch(t){(0,c.warn)("XFA - an error occurred during parsing and binding: ".concat(t))}}var t,r,h;return P(e,[{key:"isValid",value:function(){return this.root&&this.form}},{key:"_createPagesHelper",value:function(){var e=this.form[n.$toPages]();return new Promise((function(t,r){setTimeout((function n(){try{var a=e.next();a.done?t(a.value):setTimeout(n,0)}catch(e){r(e)}}),0)}))}},{key:"_createPages",value:(h=T(k().mark((function e(){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this._createPagesHelper();case 3:this.pages=e.sent,this.dims=this.pages.children.map((function(e){var t=e.attributes.style,r=t.width,n=t.height;return[0,0,parseInt(r),parseInt(n)]})),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),(0,c.warn)("XFA - an error occurred during layout: ".concat(e.t0));case 10:case"end":return e.stop()}}),e,this,[[0,7]])}))),function(){return h.apply(this,arguments)})},{key:"getBoundingBox",value:function(e){return this.dims[e]}},{key:"getNumPages",value:(r=T(k().mark((function e(){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.t0=this.pages,e.t0){e.next=4;break}return e.next=4,this._createPages();case 4:return e.abrupt("return",this.dims.length);case 5:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"setImages",value:function(e){this.form[n.$globalData].images=e}},{key:"setFonts",value:function(e){this.form[n.$globalData].fontFinder=new o.FontFinder(e);var t,r=[],a=x(this.form[n.$globalData].usedTypefaces);try{for(a.s();!(t=a.n()).done;){var i=t.value;i=(0,s.stripQuotes)(i),this.form[n.$globalData].fontFinder.find(i)||r.push(i)}}catch(e){a.e(e)}finally{a.f()}return r.length>0?r:null}},{key:"appendFonts",value:function(e,t){this.form[n.$globalData].fontFinder.add(e,t)}},{key:"getPages",value:(t=T(k().mark((function e(){var t;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.t0=this.pages,e.t0){e.next=4;break}return e.next=4,this._createPages();case 4:return t=this.pages,this.pages=null,e.abrupt("return",t);case 7:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"serializeData",value:function(e){return this.dataHandler.serialize(e)}}],[{key:"_createDocument",value:function(e){return e["/xdp:xdp"]?Object.values(e).join(""):e["xdp:xdp"]}},{key:"getRichTextAsHtml",value:function(e){if(!e||"string"!=typeof e)return null;try{var t=new u.XFAParser(l.XhtmlNamespace,!0).parse(e);if(!["body","xhtml"].includes(t[n.$nodeName])){var r=l.XhtmlNamespace.body({});r[n.$appendChild](t),t=r}var a=t[n.$toHTML]();if(!a.success)return null;var i=a.html,o=i.attributes;return o&&(o.class&&(o.class=o.class.filter((function(e){return!e.startsWith("xfa")}))),o.dir="auto"),{html:i,str:t[n.$text]()}}catch(e){(0,c.warn)("XFA - an error occurred during parsing of rich text: ".concat(e))}return null}}]),e}();t.XFAFactory=h},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.$uid=t.$toStyle=t.$toString=t.$toPages=t.$toHTML=t.$text=t.$tabIndex=t.$setValue=t.$setSetAttributes=t.$setId=t.$searchNode=t.$root=t.$resolvePrototypes=t.$removeChild=t.$pushPara=t.$pushGlyphs=t.$popPara=t.$onText=t.$onChildCheck=t.$onChild=t.$nsAttributes=t.$nodeName=t.$namespaceId=t.$lastAttribute=t.$isUsable=t.$isTransparent=t.$isThereMoreWidth=t.$isSplittable=t.$isNsAgnostic=t.$isDescendent=t.$isDataValue=t.$isCDATAXml=t.$isBindable=t.$insertAt=t.$indexOf=t.$ids=t.$hasSettableValue=t.$globalData=t.$getTemplateRoot=t.$getSubformParent=t.$getRealChildrenByNameIt=t.$getParent=t.$getNextPage=t.$getExtra=t.$getDataValue=t.$getContainedChildren=t.$getChildrenByNameIt=t.$getChildrenByName=t.$getChildrenByClass=t.$getChildren=t.$getAvailableSpace=t.$getAttributes=t.$getAttributeIt=t.$flushHTML=t.$finalize=t.$extra=t.$dump=t.$data=t.$content=t.$consumed=t.$clone=t.$cleanup=t.$cleanPage=t.$clean=t.$childrenToHTML=t.$appendChild=t.$addHTML=t.$acceptWhitespace=void 0;var r=Symbol();t.$acceptWhitespace=r;var n=Symbol();t.$addHTML=n;var a=Symbol();t.$appendChild=a;var i=Symbol();t.$childrenToHTML=i;var o=Symbol();t.$clean=o;var s=Symbol();t.$cleanPage=s;var c=Symbol();t.$cleanup=c;var u=Symbol();t.$clone=u;var l=Symbol();t.$consumed=l;var h=Symbol("content");t.$content=h;var f=Symbol("data");t.$data=f;var d=Symbol();t.$dump=d;var p=Symbol("extra");t.$extra=p;var g=Symbol();t.$finalize=g;var v=Symbol();t.$flushHTML=v;var m=Symbol();t.$getAttributeIt=m;var y=Symbol();t.$getAttributes=y;var b=Symbol();t.$getAvailableSpace=b;var w=Symbol();t.$getChildrenByClass=w;var k=Symbol();t.$getChildrenByName=k;var x=Symbol();t.$getChildrenByNameIt=x;var S=Symbol();t.$getDataValue=S;var A=Symbol();t.$getExtra=A;var C=Symbol();t.$getRealChildrenByNameIt=C;var O=Symbol();t.$getChildren=O;var F=Symbol();t.$getContainedChildren=F;var I=Symbol();t.$getNextPage=I;var T=Symbol();t.$getSubformParent=T;var M=Symbol();t.$getParent=M;var E=Symbol();t.$getTemplateRoot=E;var P=Symbol();t.$globalData=P;var R=Symbol();t.$hasSettableValue=R;var N=Symbol();t.$ids=N;var D=Symbol();t.$indexOf=D;var B=Symbol();t.$insertAt=B;var L=Symbol();t.$isCDATAXml=L;var _=Symbol();t.$isBindable=_;var j=Symbol();t.$isDataValue=j;var U=Symbol();t.$isDescendent=U;var $=Symbol();t.$isNsAgnostic=$;var X=Symbol();t.$isSplittable=X;var H=Symbol();t.$isThereMoreWidth=H;var q=Symbol();t.$isTransparent=q;var z=Symbol();t.$isUsable=z;var G=Symbol();t.$lastAttribute=G;var W=Symbol("namespaceId");t.$namespaceId=W;var V=Symbol("nodeName");t.$nodeName=V;var K=Symbol();t.$nsAttributes=K;var Y=Symbol();t.$onChild=Y;var J=Symbol();t.$onChildCheck=J;var Z=Symbol();t.$onText=Z;var Q=Symbol();t.$pushGlyphs=Q;var ee=Symbol();t.$popPara=ee;var te=Symbol();t.$pushPara=te;var re=Symbol();t.$removeChild=re;var ne=Symbol("root");t.$root=ne;var ae=Symbol();t.$resolvePrototypes=ae;var ie=Symbol();t.$searchNode=ie;var oe=Symbol();t.$setId=oe;var se=Symbol();t.$setSetAttributes=se;var ce=Symbol();t.$setValue=ce;var ue=Symbol();t.$tabIndex=ue;var le=Symbol();t.$text=le;var he=Symbol();t.$toPages=he;var fe=Symbol();t.$toHTML=fe;var de=Symbol();t.$toString=de;var pe=Symbol();t.$toStyle=pe;var ge=Symbol("uid");t.$uid=ge},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.Binder=void 0,r(139);var n=r(228),a=r(230),i=r(241),o=r(240),s=r(234),c=r(144),u=s.NamespaceIds.datasets.id;function l(e){var t=new a.Text({});return t[n.$content]=e,t}t.Binder=function(){function e(t){var r;M(this,e),this.root=t,this.datasets=t.datasets,this.data=(null===(r=t.datasets)||void 0===r?void 0:r.data)||new o.XmlObject(s.NamespaceIds.datasets.id,"data"),this.emptyMerge=0===this.data[n.$getChildren]().length,this.root.form=this.form=t.template[n.$clone]()}return P(e,[{key:"_isConsumeData",value:function(){return!this.emptyMerge&&this._mergeMode}},{key:"_isMatchTemplate",value:function(){return!this._isConsumeData()}},{key:"bind",value:function(){return this._bindElement(this.form,this.data),this.form}},{key:"getData",value:function(){return this.data}},{key:"_bindValue",value:function(e,t,r){var i;if(e[n.$data]=t,e[n.$hasSettableValue]())if(t[n.$isDataValue]()){var o=t[n.$getDataValue]();e[n.$setValue](l(o))}else if(e instanceof a.Field&&"multiSelect"===(null===(i=e.ui)||void 0===i||null===(i=i.choiceList)||void 0===i?void 0:i.open)){var s=t[n.$getChildren]().map((function(e){return e[n.$content].trim()})).join("\n");e[n.$setValue](l(s))}else this._isConsumeData()&&(0,c.warn)("XFA - Nodes haven't the same type.");else!t[n.$isDataValue]()||this._isMatchTemplate()?this._bindElement(e,t):(0,c.warn)("XFA - Nodes haven't the same type.")}},{key:"_findDataByNameToConsume",value:function(e,t,r,a){var i,o,c;if(!e)return null;for(var u=0;u<3;u++){for(o=r[n.$getRealChildrenByNameIt](e,!1,!0);c=o.next().value;)if(t===c[n.$isDataValue]())return c;if(r[n.$namespaceId]===s.NamespaceIds.datasets.id&&"data"===r[n.$nodeName])break;r=r[n.$getParent]()}return a&&((c=(o=this.data[n.$getRealChildrenByNameIt](e,!0,!1)).next().value)||null!==(i=c=(o=this.data[n.$getAttributeIt](e,!0)).next().value)&&void 0!==i&&i[n.$isDataValue]())?c:null}},{key:"_setProperties",value:function(e,t){if(e.hasOwnProperty("setProperty")){var r,s=x(e.setProperty.children);try{for(s.s();!(r=s.n()).done;){var u=r.value,l=u.ref,h=u.target;if(!u.connection&&l){var f=(0,i.searchNode)(this.root,t,l,!1,!1);if(f){var d=S(f,1)[0];if(d[n.$isDescendent](this.data)){var p=(0,i.searchNode)(this.root,e,h,!1,!1);if(p){var g=S(p,1)[0];if(g[n.$isDescendent](e)){var v=g[n.$getParent]();if(g instanceof a.SetProperty||v instanceof a.SetProperty)(0,c.warn)("XFA - Invalid target: cannot be a setProperty or one of its properties.");else if(g instanceof a.BindItems||v instanceof a.BindItems)(0,c.warn)("XFA - Invalid target: cannot be a bindItems or one of its properties.");else{var m=d[n.$text](),y=g[n.$nodeName];if(g instanceof o.XFAAttribute){var b=Object.create(null);b[y]=m;var w=Reflect.construct(Object.getPrototypeOf(v).constructor,[b]);v[y]=w[y]}else g.hasOwnProperty(n.$content)?(g[n.$data]=d,g[n.$content]=m,g[n.$finalize]()):(0,c.warn)("XFA - Invalid node to use in setProperty")}}else(0,c.warn)("XFA - Invalid target: must be a property or subproperty.")}else(0,c.warn)("XFA - Invalid target: ".concat(h,"."))}else(0,c.warn)("XFA - Invalid node: must be a data node.")}else(0,c.warn)("XFA - Invalid reference: ".concat(l,"."))}}}catch(e){s.e(e)}finally{s.f()}}}},{key:"_bindItems",value:function(e,t){if(e.hasOwnProperty("items")&&e.hasOwnProperty("bindItems")&&!e.bindItems.isEmpty()){var r,o=x(e.items.children);try{for(o.s();!(r=o.n()).done;){var s=r.value;e[n.$removeChild](s)}}catch(e){o.e(e)}finally{o.f()}e.items.clear();var u=new a.Items({}),h=new a.Items({});e[n.$appendChild](u),e.items.push(u),e[n.$appendChild](h),e.items.push(h);var f,d=x(e.bindItems.children);try{for(d.s();!(f=d.n()).done;){var p=f.value,g=p.ref,v=p.labelRef,m=p.valueRef;if(!p.connection&&g){var y=(0,i.searchNode)(this.root,t,g,!1,!1);if(y){var b,w=x(y);try{for(w.s();!(b=w.n()).done;){var k=b.value;if(k[n.$isDescendent](this.datasets)){var A=(0,i.searchNode)(this.root,k,v,!0,!1);if(A){var C=S(A,1)[0];if(C[n.$isDescendent](this.datasets)){var O=(0,i.searchNode)(this.root,k,m,!0,!1);if(O){var F=S(O,1)[0];if(F[n.$isDescendent](this.datasets)){var I=l(C[n.$text]()),T=l(F[n.$text]());u[n.$appendChild](I),u.text.push(I),h[n.$appendChild](T),h.text.push(T)}else(0,c.warn)("XFA - Invalid value: must be a datasets child.")}else(0,c.warn)("XFA - Invalid value: ".concat(m,"."))}else(0,c.warn)("XFA - Invalid label: must be a datasets child.")}else(0,c.warn)("XFA - Invalid label: ".concat(v,"."))}else(0,c.warn)("XFA - Invalid ref (".concat(g,"): must be a datasets child."))}}catch(e){w.e(e)}finally{w.f()}}else(0,c.warn)("XFA - Invalid reference: ".concat(g,"."))}}}catch(e){d.e(e)}finally{d.f()}}}},{key:"_bindOccurrences",value:function(e,t,r){var a;if(t.length>1&&((a=e[n.$clone]())[n.$removeChild](a.occur),a.occur=null),this._bindValue(e,t[0],r),this._setProperties(e,t[0]),this._bindItems(e,t[0]),1!==t.length)for(var i=e[n.$getParent](),o=e[n.$nodeName],s=i[n.$indexOf](e),c=1,u=t.length;cm?p=p.slice(0,m):0===p.length&&(p=null),p&&this._isConsumeData()&&p.forEach((function(e){e[n.$consumed]=!0}))}else{if(!l.name){this._setAndBind(l,t);continue}if(this._isConsumeData()){for(var y=[];y.length0?y:null}else{if(!(p=t[n.$getRealChildrenByNameIt](l.name,!1,this.emptyMerge).next().value)){if(0===v){r.push(l);continue}var w=t[n.$namespaceId]===u?-1:t[n.$namespaceId];p=l[n.$data]=new o.XmlObject(w,l.name),this.emptyMerge&&(p[n.$consumed]=!0),t[n.$appendChild](p),this._setAndBind(l,p);continue}this.emptyMerge&&(p[n.$consumed]=!0),p=[p]}}p?this._bindOccurrences(l,p,f):v>0?this._setAndBind(l,t):r.push(l)}}else{this._mergeMode="consumeData"===l.mergeMode;var k=t[n.$getChildren]();if(k.length>0)this._bindOccurrences(l,[k[0]],null);else if(this.emptyMerge){var A=t[n.$namespaceId]===u?-1:t[n.$namespaceId],C=l[n.$data]=new o.XmlObject(A,l.name||"root");t[n.$appendChild](C),this._bindElement(l,C)}}}}catch(e){s.e(e)}finally{s.f()}r.forEach((function(e){return e[n.$getParent]()[n.$removeChild](e)}))}}]),e}()},function(e,t,r){var n=k().mark(T);Object.defineProperty(t,"__esModule",{value:!0}),t.Value=t.Text=t.TemplateNamespace=t.Template=t.SetProperty=t.Items=t.Field=t.BindItems=void 0,r(116),r(126),r(128),r(131),r(133),r(135),r(137),r(139),r(231),r(145),r(147),r(148);var i=r(228),o=r(234),s=r(235),c=r(236),u=r(240),l=r(237),h=r(144),f=r(238),p=r(149),g=r(241),v=o.NamespaceIds.template.id,b="http://www.w3.org/2000/svg",w=/^H(\d+)$/,A=new Set(["image/gif","image/jpeg","image/jpg","image/pjpeg","image/png","image/apng","image/x-png","image/bmp","image/x-ms-bmp","image/tiff","image/tif","application/octet-stream"]),C=[[[66,77],"image/bmp"],[[255,216,255],"image/jpeg"],[[73,73,42,0],"image/tiff"],[[77,77,0,42],"image/tiff"],[[71,73,70,56,57,97],"image/gif"],[[137,80,78,71,13,10,26,10],"image/png"]];function O(e){if(!e||!e.border)return{w:0,h:0};var t=e.border[i.$getExtra]();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 F(e){return e.margin&&(e.margin.topInset||e.margin.rightInset||e.margin.bottomInset||e.margin.leftInset)}function I(e,t){if(!e.value){var r=new qt({});e[i.$appendChild](r),e.value=r}e.value[i.$setValue](t)}function T(e){var t,r,a;return k().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t=x(e[i.$getChildren]()),n.prev=1,t.s();case 3:if((r=t.n()).done){n.next=13;break}if(!((a=r.value)instanceof Mt)){n.next=9;break}return n.delegateYield(a[i.$getContainedChildren](),"t0",7);case 7:n.next=11;break;case 9:return n.next=11,a;case 11:n.next=3;break;case 13:n.next=18;break;case 15:n.prev=15,n.t1=n.catch(1),t.e(n.t1);case 18:return n.prev=18,t.f(),n.finish(18);case 21:case"end":return n.stop()}}),n,null,[[1,15,18,21]])}function E(e){var t;return"error"===(null===(t=e.validate)||void 0===t?void 0:t.nullTest)}function R(e){for(;e;){if(!e.traversal)return void(e[i.$tabIndex]=e[i.$getParent]()[i.$tabIndex]);if(e[i.$tabIndex])return;var t,r=null,n=x(e.traversal[i.$getChildren]());try{for(n.s();!(t=n.n()).done;){var a=t.value;if("next"===a.operation){r=a;break}}}catch(e){n.e(e)}finally{n.f()}if(!r||!r.ref)return void(e[i.$tabIndex]=e[i.$getParent]()[i.$tabIndex]);var o=e[i.$getTemplateRoot]();e[i.$tabIndex]=++o[i.$tabIndex];var s=o[i.$searchNode](r.ref,e);if(!s)return;e=s[0]}}function N(e,t){var r=e.assist;if(r){var n=r[i.$toHTML]();n&&(t.title=n);var a=r.role.match(w);if(a){var o=a[1];t.role="heading",t["aria-level"]=o}}if("table"===e.layout)t.role="table";else if("row"===e.layout)t.role="row";else{var s,c=e[i.$getParent]();"row"===c.layout&&(t.role="TH"===(null===(s=c.assist)||void 0===s?void 0:s.role)?"columnheader":"cell")}}function D(e){if(!e.assist)return null;var t=e.assist;return t.speak&&""!==t.speak[i.$content]?t.speak[i.$content]:t.toolTip?t.toolTip[i.$content]:null}function B(e){return l.HTMLResult.success({name:"div",attributes:{class:["xfaRich"],style:Object.create(null)},children:[{name:"span",attributes:{style:Object.create(null)},value:e}]})}function L(e){var t=e[i.$getTemplateRoot]();null===t[i.$extra].firstUnsplittable&&(t[i.$extra].firstUnsplittable=e,t[i.$extra].noLayoutFailure=!0)}function _(e){var t=e[i.$getTemplateRoot]();t[i.$extra].firstUnsplittable===e&&(t[i.$extra].noLayoutFailure=!1)}function j(e){if(e[i.$extra])return!1;if(e[i.$extra]=Object.create(null),"auto"===e.targetType)return!1;var t=e[i.$getTemplateRoot](),r=null;if(e.target){if(!(r=t[i.$searchNode](e.target,e[i.$getParent]())))return!1;r=r[0]}var n=t[i.$extra],a=n.currentPageArea,o=n.currentContentArea;if("pageArea"===e.targetType)return r instanceof ut||(r=null),e.startNew?(e[i.$extra].target=r||a,!0):!(!r||r===a||(e[i.$extra].target=r,0));r instanceof le||(r=null);var s,c=r&&r[i.$getParent](),u=c;if(e.startNew)if(r){var l=c.contentArea.children,h=l.indexOf(o),f=l.indexOf(r);-1!==h&&h180?1:0,f=50*(1+Math.cos(s)),d=50*(1-Math.sin(s)),p=50*(1+Math.cos(s+u)),g=50*(1-Math.sin(s+u));t={name:"path",attributes:{xmlns:b,d:"M ".concat(f," ").concat(d," A 50 50 0 ").concat(h," 0 ").concat(p," ").concat(g),vectorEffect:"non-scaling-stroke",style:a}},Object.assign(o,{viewBox:"0 0 100 100",preserveAspectRatio:"none"})}var v={name:"svg",children:[t],attributes:o};return F(this[i.$getParent]()[i.$getParent]())?l.HTMLResult.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[v]}):(v.attributes.style.position="absolute",l.HTMLResult.success(v))}}]),r}(u.XFAObject,i.$toHTML),H=function(e,t,r,n,a,o,s){function h(e){var t;return M(this,h),(t=d(this,h,[v,"area",!0])).colSpan=(0,l.getInteger)({data:e.colSpan,defaultValue:1,validate:function(e){return e>=1||-1===e}}),t.id=e.id||"",t.name=e.name||"",t.relevant=(0,l.getRelevant)(e.relevant),t.use=e.use||"",t.usehref=e.usehref||"",t.x=(0,l.getMeasurement)(e.x,"0pt"),t.y=(0,l.getMeasurement)(e.y,"0pt"),t.desc=null,t.extras=null,t.area=new u.XFAObjectArray,t.draw=new u.XFAObjectArray,t.exObject=new u.XFAObjectArray,t.exclGroup=new u.XFAObjectArray,t.field=new u.XFAObjectArray,t.subform=new u.XFAObjectArray,t.subformSet=new u.XFAObjectArray,t}return y(h,e),P(h,[{key:t,value:k().mark((function e(){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(T(this),"t0",1);case 1:case"end":return e.stop()}}),e,this)}))},{key:r,value:function(){return!0}},{key:n,value:function(){return!0}},{key:a,value:function(e,t){var r=S(t,4),n=r[0],a=r[1],o=r[2],s=r[3];this[i.$extra].width=Math.max(this[i.$extra].width,n+o),this[i.$extra].height=Math.max(this[i.$extra].height,a+s),this[i.$extra].children.push(e)}},{key:o,value:function(){return this[i.$extra].availableSpace}},{key:s,value:function(e){var t=(0,c.toStyle)(this,"position"),r={style:t,id:this[i.$uid],class:["xfaArea"]};(0,c.isPrintOnly)(this)&&r.class.push("xfaPrintOnly"),this.name&&(r.xfaName=this.name);var n=[];this[i.$extra]={children:n,width:0,height:0,availableSpace:e};var a=this[i.$childrenToHTML]({filter:new Set(["area","draw","field","exclGroup","subform","subformSet"]),include:!0});if(!a.success)return a.isBreak()?a:(delete this[i.$extra],l.HTMLResult.FAILURE);t.width=(0,c.measureToString)(this[i.$extra].width),t.height=(0,c.measureToString)(this[i.$extra].height);var o={name:"div",attributes:r,children:n},s=[this.x,this.y,this[i.$extra].width,this[i.$extra].height];return delete this[i.$extra],l.HTMLResult.success(o,s)}}]),h}(u.XFAObject,i.$getContainedChildren,i.$isTransparent,i.$isBindable,i.$addHTML,i.$getAvailableSpace,i.$toHTML),q=function(e,t){function r(e){var t;return M(this,r),(t=d(this,r,[v,"assist",!0])).id=e.id||"",t.role=e.role||"",t.use=e.use||"",t.usehref=e.usehref||"",t.speak=null,t.toolTip=null,t}return y(r,e),P(r,[{key:t,value:function(){var e;return(null===(e=this.toolTip)||void 0===e?void 0:e[i.$content])||null}}]),r}(u.XFAObject,i.$toHTML),z=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[v,"barcode",!0])).charEncoding=(0,l.getKeyword)({data:e.charEncoding?e.charEncoding.toLowerCase():"",defaultValue:"",validate:function(e){return["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}/)}}),r.checksum=(0,l.getStringOption)(e.checksum,["none","1mod10","1mod10_1mod11","2mod10","auto"]),r.dataColumnCount=(0,l.getInteger)({data:e.dataColumnCount,defaultValue:-1,validate:function(e){return e>=0}}),r.dataLength=(0,l.getInteger)({data:e.dataLength,defaultValue:-1,validate:function(e){return e>=0}}),r.dataPrep=(0,l.getStringOption)(e.dataPrep,["none","flateCompress"]),r.dataRowCount=(0,l.getInteger)({data:e.dataRowCount,defaultValue:-1,validate:function(e){return e>=0}}),r.endChar=e.endChar||"",r.errorCorrectionLevel=(0,l.getInteger)({data:e.errorCorrectionLevel,defaultValue:-1,validate:function(e){return e>=0&&e<=8}}),r.id=e.id||"",r.moduleHeight=(0,l.getMeasurement)(e.moduleHeight,"5mm"),r.moduleWidth=(0,l.getMeasurement)(e.moduleWidth,"0.25mm"),r.printCheckDigit=(0,l.getInteger)({data:e.printCheckDigit,defaultValue:0,validate:function(e){return 1===e}}),r.rowColumnRatio=(0,l.getRatio)(e.rowColumnRatio),r.startChar=e.startChar||"",r.textLocation=(0,l.getStringOption)(e.textLocation,["below","above","aboveEmbedded","belowEmbedded","none"]),r.truncate=(0,l.getInteger)({data:e.truncate,defaultValue:0,validate:function(e){return 1===e}}),r.type=(0,l.getStringOption)(e.type?e.type.toLowerCase():"",["aztec","codabar","code2of5industrial","code2of5interleaved","code2of5matrix","code2of5standard","code3of9","code3of9extended","code11","code49","code93","code128","code128a","code128b","code128c","code128sscc","datamatrix","ean8","ean8add2","ean8add5","ean13","ean13add2","ean13add5","ean13pwcd","fim","logmars","maxicode","msi","pdf417","pdf417macro","plessey","postauscust2","postauscust3","postausreplypaid","postausstandard","postukrm4scc","postusdpbc","postusimb","postusstandard","postus5zip","qrcode","rfid","rss14","rss14expanded","rss14limited","rss14stacked","rss14stackedomni","rss14truncated","telepen","ucc128","ucc128random","ucc128sscc","upca","upcaadd2","upcaadd5","upcapwcd","upce","upceadd2","upceadd5","upcean2","upcean5","upsmaxicode"]),r.upsMode=(0,l.getStringOption)(e.upsMode,["usCarrier","internationalCarrier","secureSymbol","standardSymbol"]),r.use=e.use||"",r.usehref=e.usehref||"",r.wideNarrowRatio=(0,l.getRatio)(e.wideNarrowRatio),r.encrypt=null,r.extras=null,r}return y(t,e),P(t)}(u.XFAObject),G=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[v,"bind",!0])).match=(0,l.getStringOption)(e.match,["once","dataRef","global","none"]),r.ref=e.ref||"",r.picture=null,r}return y(t,e),P(t)}(u.XFAObject),W=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[v,"bindItems"])).connection=e.connection||"",r.labelRef=e.labelRef||"",r.ref=e.ref||"",r.valueRef=e.valueRef||"",r}return y(t,e),P(t)}(u.XFAObject);t.BindItems=W;var V=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[v,"bookend"])).id=e.id||"",r.leader=e.leader||"",r.trailer=e.trailer||"",r.use=e.use||"",r.usehref=e.usehref||"",r}return y(t,e),P(t)}(u.XFAObject),K=function(e,t){function r(e){var t;return M(this,r),(t=d(this,r,[v,"boolean"])).id=e.id||"",t.name=e.name||"",t.use=e.use||"",t.usehref=e.usehref||"",t}return y(r,e),P(r,[{key:t,value:function(e){return B(1===this[i.$content]?"1":"0")}}]),r}(u.Option01,i.$toHTML),Y=function(e,t,r){function n(e){var t;return M(this,n),(t=d(this,n,[v,"border",!0])).break=(0,l.getStringOption)(e.break,["close","open"]),t.hand=(0,l.getStringOption)(e.hand,["even","left","right"]),t.id=e.id||"",t.presence=(0,l.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),t.relevant=(0,l.getRelevant)(e.relevant),t.use=e.use||"",t.usehref=e.usehref||"",t.corner=new u.XFAObjectArray(4),t.edge=new u.XFAObjectArray(4),t.extras=null,t.fill=null,t.margin=null,t}return y(n,e),P(n,[{key:t,value:function(){if(!this[i.$extra]){var e=this.edge.children.slice();if(e.length<4)for(var t=e.at(-1)||new ke({}),r=e.length;r<4;r++)e.push(t);var n=e.map((function(e){return e.thickness})),a=[0,0,0,0];this.margin&&(a[0]=this.margin.topInset,a[1]=this.margin.rightInset,a[2]=this.margin.bottomInset,a[3]=this.margin.leftInset),this[i.$extra]={widths:n,insets:a,edges:e}}return this[i.$extra]}},{key:r,value:function(){var e,t=this[i.$getExtra]().edges.map((function(e){var t=e[i.$toStyle]();return t.color||(t.color="#000000"),t})),r=Object.create(null);if(this.margin&&Object.assign(r,this.margin[i.$toStyle]()),"visible"===(null===(e=this.fill)||void 0===e?void 0:e.presence)&&Object.assign(r,this.fill[i.$toStyle]()),this.corner.children.some((function(e){return 0!==e.radius}))){var n=this.corner.children.map((function(e){return e[i.$toStyle]()}));if(2===n.length||3===n.length)for(var a=n.at(-1),o=n.length;o<4;o++)n.push(a);r.borderRadius=n.map((function(e){return e.radius})).join(" ")}switch(this.presence){case"invisible":case"hidden":r.borderStyle="";break;case"inactive":r.borderStyle="none";break;default:r.borderStyle=t.map((function(e){return e.style})).join(" ")}return r.borderWidth=t.map((function(e){return e.width})).join(" "),r.borderColor=t.map((function(e){return e.color})).join(" "),r}}]),n}(u.XFAObject,i.$getExtra,i.$toStyle),J=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[v,"break",!0])).after=(0,l.getStringOption)(e.after,["auto","contentArea","pageArea","pageEven","pageOdd"]),r.afterTarget=e.afterTarget||"",r.before=(0,l.getStringOption)(e.before,["auto","contentArea","pageArea","pageEven","pageOdd"]),r.beforeTarget=e.beforeTarget||"",r.bookendLeader=e.bookendLeader||"",r.bookendTrailer=e.bookendTrailer||"",r.id=e.id||"",r.overflowLeader=e.overflowLeader||"",r.overflowTarget=e.overflowTarget||"",r.overflowTrailer=e.overflowTrailer||"",r.startNew=(0,l.getInteger)({data:e.startNew,defaultValue:0,validate:function(e){return 1===e}}),r.use=e.use||"",r.usehref=e.usehref||"",r.extras=null,r}return y(t,e),P(t)}(u.XFAObject),Z=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[v,"breakAfter",!0])).id=e.id||"",r.leader=e.leader||"",r.startNew=(0,l.getInteger)({data:e.startNew,defaultValue:0,validate:function(e){return 1===e}}),r.target=e.target||"",r.targetType=(0,l.getStringOption)(e.targetType,["auto","contentArea","pageArea"]),r.trailer=e.trailer||"",r.use=e.use||"",r.usehref=e.usehref||"",r.script=null,r}return y(t,e),P(t)}(u.XFAObject),Q=function(e,t){function r(e){var t;return M(this,r),(t=d(this,r,[v,"breakBefore",!0])).id=e.id||"",t.leader=e.leader||"",t.startNew=(0,l.getInteger)({data:e.startNew,defaultValue:0,validate:function(e){return 1===e}}),t.target=e.target||"",t.targetType=(0,l.getStringOption)(e.targetType,["auto","contentArea","pageArea"]),t.trailer=e.trailer||"",t.use=e.use||"",t.usehref=e.usehref||"",t.script=null,t}return y(r,e),P(r,[{key:t,value:function(e){return this[i.$extra]={},l.HTMLResult.FAILURE}}]),r}(u.XFAObject,i.$toHTML),ee=function(e,t){function r(e){var t;return M(this,r),(t=d(this,r,[v,"button",!0])).highlight=(0,l.getStringOption)(e.highlight,["inverted","none","outline","push"]),t.id=e.id||"",t.use=e.use||"",t.usehref=e.usehref||"",t.extras=null,t}return y(r,e),P(r,[{key:t,value:function(e){var t,r=this[i.$getParent]()[i.$getParent](),n={name:"button",attributes:{id:this[i.$uid],class:["xfaButton"],style:{}},children:[]},a=x(r.event.children);try{for(a.s();!(t=a.n()).done;){var o=t.value;if("click"===o.activity&&o.script){var s=(0,p.recoverJsURL)(o.script[i.$content]);if(s){var u=(0,c.fixURL)(s.url);u&&n.children.push({name:"a",attributes:{id:"link"+this[i.$uid],href:u,newWindow:s.newWindow,class:["xfaLink"],style:{}},children:[]})}}}}catch(e){a.e(e)}finally{a.f()}return l.HTMLResult.success(n)}}]),r}(u.XFAObject,i.$toHTML),te=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[v,"calculate",!0])).id=e.id||"",r.override=(0,l.getStringOption)(e.override,["disabled","error","ignore","warning"]),r.use=e.use||"",r.usehref=e.usehref||"",r.extras=null,r.message=null,r.script=null,r}return y(t,e),P(t)}(u.XFAObject),re=function(e,t,r,n){function a(e){var t;return M(this,a),(t=d(this,a,[v,"caption",!0])).id=e.id||"",t.placement=(0,l.getStringOption)(e.placement,["left","bottom","inline","right","top"]),t.presence=(0,l.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),t.reserve=Math.ceil((0,l.getMeasurement)(e.reserve)),t.use=e.use||"",t.usehref=e.usehref||"",t.extras=null,t.font=null,t.margin=null,t.para=null,t.value=null,t}return y(a,e),P(a,[{key:t,value:function(e){I(this,e)}},{key:r,value:function(e){if(!this[i.$extra]){var t=e.width,r=e.height;switch(this.placement){case"left":case"right":case"inline":t=this.reserve<=0?t:this.reserve;break;case"top":case"bottom":r=this.reserve<=0?r:this.reserve}this[i.$extra]=(0,c.layoutNode)(this,{width:t,height:r})}return this[i.$extra]}},{key:n,value:function(e){if(!this.value)return l.HTMLResult.EMPTY;this[i.$pushPara]();var t=this.value[i.$toHTML](e).html;if(!t)return this[i.$popPara](),l.HTMLResult.EMPTY;var r=this.reserve;if(this.reserve<=0){var n=this[i.$getExtra](e),a=n.w,o=n.h;switch(this.placement){case"left":case"right":case"inline":this.reserve=a;break;case"top":case"bottom":this.reserve=o}}var s=[];"string"==typeof t?s.push({name:"#text",value:t}):s.push(t);var u=(0,c.toStyle)(this,"font","margin","visibility");switch(this.placement){case"left":case"right":this.reserve>0&&(u.width=(0,c.measureToString)(this.reserve));break;case"top":case"bottom":this.reserve>0&&(u.height=(0,c.measureToString)(this.reserve))}return(0,c.setPara)(this,null,t),this[i.$popPara](),this.reserve=r,l.HTMLResult.success({name:"div",attributes:{style:u,class:["xfaCaption"]},children:s})}}]),a}(u.XFAObject,i.$setValue,i.$getExtra,i.$toHTML),ne=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[v,"certificate"])).id=e.id||"",r.name=e.name||"",r.use=e.use||"",r.usehref=e.usehref||"",r}return y(t,e),P(t)}(u.StringObject),ae=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[v,"certificates",!0])).credentialServerPolicy=(0,l.getStringOption)(e.credentialServerPolicy,["optional","required"]),r.id=e.id||"",r.url=e.url||"",r.urlPolicy=e.urlPolicy||"",r.use=e.use||"",r.usehref=e.usehref||"",r.encryption=null,r.issuers=null,r.keyUsage=null,r.oids=null,r.signing=null,r.subjectDNs=null,r}return y(t,e),P(t)}(u.XFAObject),ie=function(e,t){function r(e){var t;return M(this,r),(t=d(this,r,[v,"checkButton",!0])).id=e.id||"",t.mark=(0,l.getStringOption)(e.mark,["default","check","circle","cross","diamond","square","star"]),t.shape=(0,l.getStringOption)(e.shape,["square","round"]),t.size=(0,l.getMeasurement)(e.size,"10pt"),t.use=e.use||"",t.usehref=e.usehref||"",t.border=null,t.extras=null,t.margin=null,t}return y(r,e),P(r,[{key:t,value:function(e){var t,r,n,a,o=(0,c.toStyle)("margin"),s=(0,c.measureToString)(this.size);o.width=o.height=s;var u,h,f,d=this[i.$getParent]()[i.$getParent](),p=d.items.children.length&&d.items.children[0][i.$toHTML]().html||[],g={on:(void 0!==p[0]?p[0]:"on").toString(),off:(void 0!==p[1]?p[1]:"off").toString()},v=((null===(t=d.value)||void 0===t?void 0:t[i.$text]())||"off")===g.on||void 0,m=d[i.$getSubformParent](),y=d[i.$uid];m instanceof Pe?(a=m[i.$uid],r="radio",n="xfaRadio",u=(null===(h=m[i.$data])||void 0===h?void 0:h[i.$uid])||m[i.$uid]):(r="checkbox",n="xfaCheckbox",u=(null===(f=d[i.$data])||void 0===f?void 0:f[i.$uid])||d[i.$uid]);var b={name:"input",attributes:{class:[n],style:o,fieldId:y,dataId:u,type:r,checked:v,xfaOn:g.on,xfaOff:g.off,"aria-label":D(d),"aria-required":!1}};return a&&(b.attributes.name=a),E(d)&&(b.attributes["aria-required"]=!0,b.attributes.required=!0),l.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[b]})}}]),r}(u.XFAObject,i.$toHTML),oe=function(e,t){function r(e){var t;return M(this,r),(t=d(this,r,[v,"choiceList",!0])).commitOn=(0,l.getStringOption)(e.commitOn,["select","exit"]),t.id=e.id||"",t.open=(0,l.getStringOption)(e.open,["userControl","always","multiSelect","onEntry"]),t.textEntry=(0,l.getInteger)({data:e.textEntry,defaultValue:0,validate:function(e){return 1===e}}),t.use=e.use||"",t.usehref=e.usehref||"",t.border=null,t.extras=null,t.margin=null,t}return y(r,e),P(r,[{key:t,value:function(e){var t,r,n=(0,c.toStyle)(this,"border","margin"),a=this[i.$getParent]()[i.$getParent](),o={fontSize:"calc(".concat((null===(t=a.font)||void 0===t?void 0:t.size)||10,"px * var(--scale-factor))")},s=[];if(a.items.children.length>0){var u,h=a.items,f=0,d=0;2===h.children.length&&(d=1-(f=h.children[0].save));for(var p=h.children[f][i.$toHTML]().html,g=h.children[d][i.$toHTML]().html,v=!1,m=(null===(u=a.value)||void 0===u?void 0:u[i.$text]())||"",y=0,b=p.length;y=0}}),r.use=e.use||"",r.usehref=e.usehref||"",r}return y(t,e),P(t)}(u.XFAObject),ue=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[v,"connect",!0])).connection=e.connection||"",r.id=e.id||"",r.ref=e.ref||"",r.usage=(0,l.getStringOption)(e.usage,["exportAndImport","exportOnly","importOnly"]),r.use=e.use||"",r.usehref=e.usehref||"",r.picture=null,r}return y(t,e),P(t)}(u.XFAObject),le=function(e,t){function r(e){var t;return M(this,r),(t=d(this,r,[v,"contentArea",!0])).h=(0,l.getMeasurement)(e.h),t.id=e.id||"",t.name=e.name||"",t.relevant=(0,l.getRelevant)(e.relevant),t.use=e.use||"",t.usehref=e.usehref||"",t.w=(0,l.getMeasurement)(e.w),t.x=(0,l.getMeasurement)(e.x,"0pt"),t.y=(0,l.getMeasurement)(e.y,"0pt"),t.desc=null,t.extras=null,t}return y(r,e),P(r,[{key:t,value:function(e){var t={left:(0,c.measureToString)(this.x),top:(0,c.measureToString)(this.y),width:(0,c.measureToString)(this.w),height:(0,c.measureToString)(this.h)},r=["xfaContentarea"];return(0,c.isPrintOnly)(this)&&r.push("xfaPrintOnly"),l.HTMLResult.success({name:"div",children:[],attributes:{style:t,class:r,id:this[i.$uid]}})}}]),r}(u.XFAObject,i.$toHTML),he=function(e,t){function r(e){var t;return M(this,r),(t=d(this,r,[v,"corner",!0])).id=e.id||"",t.inverted=(0,l.getInteger)({data:e.inverted,defaultValue:0,validate:function(e){return 1===e}}),t.join=(0,l.getStringOption)(e.join,["square","round"]),t.presence=(0,l.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),t.radius=(0,l.getMeasurement)(e.radius),t.stroke=(0,l.getStringOption)(e.stroke,["solid","dashDot","dashDotDot","dashed","dotted","embossed","etched","lowered","raised"]),t.thickness=(0,l.getMeasurement)(e.thickness,"0.5pt"),t.use=e.use||"",t.usehref=e.usehref||"",t.color=null,t.extras=null,t}return y(r,e),P(r,[{key:t,value:function(){var e=(0,c.toStyle)(this,"visibility");return e.radius=(0,c.measureToString)("square"===this.join?0:this.radius),e}}]),r}(u.XFAObject,i.$toStyle),fe=function(e,t,r){function n(e){var t;return M(this,n),(t=d(this,n,[v,"date"])).id=e.id||"",t.name=e.name||"",t.use=e.use||"",t.usehref=e.usehref||"",t}return y(n,e),P(n,[{key:t,value:function(){var e=this[i.$content].trim();this[i.$content]=e?new Date(e):null}},{key:r,value:function(e){return B(this[i.$content]?this[i.$content].toString():"")}}]),n}(u.ContentObject,i.$finalize,i.$toHTML),de=function(e,t,r){function n(e){var t;return M(this,n),(t=d(this,n,[v,"dateTime"])).id=e.id||"",t.name=e.name||"",t.use=e.use||"",t.usehref=e.usehref||"",t}return y(n,e),P(n,[{key:t,value:function(){var e=this[i.$content].trim();this[i.$content]=e?new Date(e):null}},{key:r,value:function(e){return B(this[i.$content]?this[i.$content].toString():"")}}]),n}(u.ContentObject,i.$finalize,i.$toHTML),pe=function(e,t){function r(e){var t;return M(this,r),(t=d(this,r,[v,"dateTimeEdit",!0])).hScrollPolicy=(0,l.getStringOption)(e.hScrollPolicy,["auto","off","on"]),t.id=e.id||"",t.picker=(0,l.getStringOption)(e.picker,["host","none"]),t.use=e.use||"",t.usehref=e.usehref||"",t.border=null,t.comb=null,t.extras=null,t.margin=null,t}return y(r,e),P(r,[{key:t,value:function(e){var t,r=(0,c.toStyle)(this,"border","font","margin"),n=this[i.$getParent]()[i.$getParent](),a={name:"input",attributes:{type:"text",fieldId:n[i.$uid],dataId:(null===(t=n[i.$data])||void 0===t?void 0:t[i.$uid])||n[i.$uid],class:["xfaTextfield"],style:r,"aria-label":D(n),"aria-required":!1}};return E(n)&&(a.attributes["aria-required"]=!0,a.attributes.required=!0),l.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[a]})}}]),r}(u.XFAObject,i.$toHTML),ge=function(e,t,r){function n(e){var t;return M(this,n),(t=d(this,n,[v,"decimal"])).fracDigits=(0,l.getInteger)({data:e.fracDigits,defaultValue:2,validate:function(e){return!0}}),t.id=e.id||"",t.leadDigits=(0,l.getInteger)({data:e.leadDigits,defaultValue:-1,validate:function(e){return!0}}),t.name=e.name||"",t.use=e.use||"",t.usehref=e.usehref||"",t}return y(n,e),P(n,[{key:t,value:function(){var e=parseFloat(this[i.$content].trim());this[i.$content]=isNaN(e)?null:e}},{key:r,value:function(e){return B(null!==this[i.$content]?this[i.$content].toString():"")}}]),n}(u.ContentObject,i.$finalize,i.$toHTML),ve=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[v,"defaultUi",!0])).id=e.id||"",r.use=e.use||"",r.usehref=e.usehref||"",r.extras=null,r}return y(t,e),P(t)}(u.XFAObject),me=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[v,"desc",!0])).id=e.id||"",r.use=e.use||"",r.usehref=e.usehref||"",r.boolean=new u.XFAObjectArray,r.date=new u.XFAObjectArray,r.dateTime=new u.XFAObjectArray,r.decimal=new u.XFAObjectArray,r.exData=new u.XFAObjectArray,r.float=new u.XFAObjectArray,r.image=new u.XFAObjectArray,r.integer=new u.XFAObjectArray,r.text=new u.XFAObjectArray,r.time=new u.XFAObjectArray,r}return y(t,e),P(t)}(u.XFAObject),ye=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[v,"digestMethod",["","SHA1","SHA256","SHA512","RIPEMD160"]])).id=e.id||"",r.use=e.use||"",r.usehref=e.usehref||"",r}return y(t,e),P(t)}(u.OptionObject),be=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[v,"digestMethods",!0])).id=e.id||"",r.type=(0,l.getStringOption)(e.type,["optional","required"]),r.use=e.use||"",r.usehref=e.usehref||"",r.digestMethod=new u.XFAObjectArray,r}return y(t,e),P(t)}(u.XFAObject),we=function(e,t,r){function n(e){var t;return M(this,n),(t=d(this,n,[v,"draw",!0])).anchorType=(0,l.getStringOption)(e.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]),t.colSpan=(0,l.getInteger)({data:e.colSpan,defaultValue:1,validate:function(e){return e>=1||-1===e}}),t.h=e.h?(0,l.getMeasurement)(e.h):"",t.hAlign=(0,l.getStringOption)(e.hAlign,["left","center","justify","justifyAll","radix","right"]),t.id=e.id||"",t.locale=e.locale||"",t.maxH=(0,l.getMeasurement)(e.maxH,"0pt"),t.maxW=(0,l.getMeasurement)(e.maxW,"0pt"),t.minH=(0,l.getMeasurement)(e.minH,"0pt"),t.minW=(0,l.getMeasurement)(e.minW,"0pt"),t.name=e.name||"",t.presence=(0,l.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),t.relevant=(0,l.getRelevant)(e.relevant),t.rotate=(0,l.getInteger)({data:e.rotate,defaultValue:0,validate:function(e){return e%90==0}}),t.use=e.use||"",t.usehref=e.usehref||"",t.w=e.w?(0,l.getMeasurement)(e.w):"",t.x=(0,l.getMeasurement)(e.x,"0pt"),t.y=(0,l.getMeasurement)(e.y,"0pt"),t.assist=null,t.border=null,t.caption=null,t.desc=null,t.extras=null,t.font=null,t.keep=null,t.margin=null,t.para=null,t.traversal=null,t.ui=null,t.value=null,t.setProperty=new u.XFAObjectArray,t}return y(n,e),P(n,[{key:t,value:function(e){I(this,e)}},{key:r,value:function(e){if(R(this),"hidden"===this.presence||"inactive"===this.presence)return l.HTMLResult.EMPTY;(0,c.fixDimensions)(this),this[i.$pushPara]();var t=this.w,r=this.h,n=(0,c.layoutNode)(this,e),a=n.w,o=n.h,u=n.isBroken;if(a&&""===this.w){if(u&&this[i.$getSubformParent]()[i.$isThereMoreWidth]())return this[i.$popPara](),l.HTMLResult.FAILURE;this.w=a}if(o&&""===this.h&&(this.h=o),L(this),!(0,s.checkDimensions)(this,e))return this.w=t,this.h=r,this[i.$popPara](),l.HTMLResult.FAILURE;_(this);var h=(0,c.toStyle)(this,"font","hAlign","dimensions","position","presence","rotate","anchorType","border","margin");(0,c.setMinMaxDimensions)(this,h),h.margin&&(h.padding=h.margin,delete h.margin);var f=["xfaDraw"];this.font&&f.push("xfaFont"),(0,c.isPrintOnly)(this)&&f.push("xfaPrintOnly");var d={style:h,id:this[i.$uid],class:f};this.name&&(d.xfaName=this.name);var p={name:"div",attributes:d,children:[]};N(this,d);var g=(0,c.computeBbox)(this,p,e),v=this.value?this.value[i.$toHTML](e).html:null;return null===v?(this.w=t,this.h=r,this[i.$popPara](),l.HTMLResult.success((0,c.createWrapper)(this,p),g)):(p.children.push(v),(0,c.setPara)(this,h,v),this.w=t,this.h=r,this[i.$popPara](),l.HTMLResult.success((0,c.createWrapper)(this,p),g))}}]),n}(u.XFAObject,i.$setValue,i.$toHTML),ke=function(e,t){function r(e){var t;return M(this,r),(t=d(this,r,[v,"edge",!0])).cap=(0,l.getStringOption)(e.cap,["square","butt","round"]),t.id=e.id||"",t.presence=(0,l.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),t.stroke=(0,l.getStringOption)(e.stroke,["solid","dashDot","dashDotDot","dashed","dotted","embossed","etched","lowered","raised"]),t.thickness=(0,l.getMeasurement)(e.thickness,"0.5pt"),t.use=e.use||"",t.usehref=e.usehref||"",t.color=null,t.extras=null,t}return y(r,e),P(r,[{key:t,value:function(){var e=(0,c.toStyle)(this,"visibility");if(Object.assign(e,{linecap:this.cap,width:(0,c.measureToString)(this.thickness),color:this.color?this.color[i.$toStyle]():"#000000",style:""}),"visible"!==this.presence)e.style="none";else switch(this.stroke){case"solid":e.style="solid";break;case"dashDot":case"dashDotDot":case"dashed":e.style="dashed";break;case"dotted":e.style="dotted";break;case"embossed":e.style="ridge";break;case"etched":e.style="groove";break;case"lowered":e.style="inset";break;case"raised":e.style="outset"}return e}}]),r}(u.XFAObject,i.$toStyle),xe=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[v,"encoding",["adbe.x509.rsa_sha1","adbe.pkcs7.detached","adbe.pkcs7.sha1"]])).id=e.id||"",r.use=e.use||"",r.usehref=e.usehref||"",r}return y(t,e),P(t)}(u.OptionObject),Se=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[v,"encodings",!0])).id=e.id||"",r.type=(0,l.getStringOption)(e.type,["optional","required"]),r.use=e.use||"",r.usehref=e.usehref||"",r.encoding=new u.XFAObjectArray,r}return y(t,e),P(t)}(u.XFAObject),Ae=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[v,"encrypt",!0])).id=e.id||"",r.use=e.use||"",r.usehref=e.usehref||"",r.certificate=null,r}return y(t,e),P(t)}(u.XFAObject),Ce=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[v,"encryptData",!0])).id=e.id||"",r.operation=(0,l.getStringOption)(e.operation,["encrypt","decrypt"]),r.target=e.target||"",r.use=e.use||"",r.usehref=e.usehref||"",r.filter=null,r.manifest=null,r}return y(t,e),P(t)}(u.XFAObject),Oe=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[v,"encryption",!0])).id=e.id||"",r.type=(0,l.getStringOption)(e.type,["optional","required"]),r.use=e.use||"",r.usehref=e.usehref||"",r.certificate=new u.XFAObjectArray,r}return y(t,e),P(t)}(u.XFAObject),Fe=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[v,"encryptionMethod",["","AES256-CBC","TRIPLEDES-CBC","AES128-CBC","AES192-CBC"]])).id=e.id||"",r.use=e.use||"",r.usehref=e.usehref||"",r}return y(t,e),P(t)}(u.OptionObject),Ie=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[v,"encryptionMethods",!0])).id=e.id||"",r.type=(0,l.getStringOption)(e.type,["optional","required"]),r.use=e.use||"",r.usehref=e.usehref||"",r.encryptionMethod=new u.XFAObjectArray,r}return y(t,e),P(t)}(u.XFAObject),Te=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[v,"event",!0])).activity=(0,l.getStringOption)(e.activity,["click","change","docClose","docReady","enter","exit","full","indexChange","initialize","mouseDown","mouseEnter","mouseExit","mouseUp","postExecute","postOpen","postPrint","postSave","postSign","postSubmit","preExecute","preOpen","prePrint","preSave","preSign","preSubmit","ready","validationState"]),r.id=e.id||"",r.listen=(0,l.getStringOption)(e.listen,["refOnly","refAndDescendents"]),r.name=e.name||"",r.ref=e.ref||"",r.use=e.use||"",r.usehref=e.usehref||"",r.extras=null,r.encryptData=null,r.execute=null,r.script=null,r.signData=null,r.submit=null,r}return y(t,e),P(t)}(u.XFAObject),Me=function(e,t,r,n){function a(e){var t;return M(this,a),(t=d(this,a,[v,"exData"])).contentType=e.contentType||"",t.href=e.href||"",t.id=e.id||"",t.maxLength=(0,l.getInteger)({data:e.maxLength,defaultValue:-1,validate:function(e){return e>=-1}}),t.name=e.name||"",t.rid=e.rid||"",t.transferEncoding=(0,l.getStringOption)(e.transferEncoding,["none","base64","package"]),t.use=e.use||"",t.usehref=e.usehref||"",t}return y(a,e),P(a,[{key:t,value:function(){return"text/html"===this.contentType}},{key:r,value:function(e){return("text/html"===this.contentType&&e[i.$namespaceId]===o.NamespaceIds.xhtml.id||"text/xml"===this.contentType)&&(this[i.$content]=e,!0)}},{key:n,value:function(e){return"text/html"===this.contentType&&this[i.$content]?this[i.$content][i.$toHTML](e):l.HTMLResult.EMPTY}}]),a}(u.ContentObject,i.$isCDATAXml,i.$onChild,i.$toHTML),Ee=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[v,"exObject",!0])).archive=e.archive||"",r.classId=e.classId||"",r.codeBase=e.codeBase||"",r.codeType=e.codeType||"",r.id=e.id||"",r.name=e.name||"",r.use=e.use||"",r.usehref=e.usehref||"",r.extras=null,r.boolean=new u.XFAObjectArray,r.date=new u.XFAObjectArray,r.dateTime=new u.XFAObjectArray,r.decimal=new u.XFAObjectArray,r.exData=new u.XFAObjectArray,r.exObject=new u.XFAObjectArray,r.float=new u.XFAObjectArray,r.image=new u.XFAObjectArray,r.integer=new u.XFAObjectArray,r.text=new u.XFAObjectArray,r.time=new u.XFAObjectArray,r}return y(t,e),P(t)}(u.XFAObject),Pe=function(e,t,r,n,a,o,h,f,p,g){function m(e){var t;return M(this,m),(t=d(this,m,[v,"exclGroup",!0])).access=(0,l.getStringOption)(e.access,["open","nonInteractive","protected","readOnly"]),t.accessKey=e.accessKey||"",t.anchorType=(0,l.getStringOption)(e.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]),t.colSpan=(0,l.getInteger)({data:e.colSpan,defaultValue:1,validate:function(e){return e>=1||-1===e}}),t.h=e.h?(0,l.getMeasurement)(e.h):"",t.hAlign=(0,l.getStringOption)(e.hAlign,["left","center","justify","justifyAll","radix","right"]),t.id=e.id||"",t.layout=(0,l.getStringOption)(e.layout,["position","lr-tb","rl-row","rl-tb","row","table","tb"]),t.maxH=(0,l.getMeasurement)(e.maxH,"0pt"),t.maxW=(0,l.getMeasurement)(e.maxW,"0pt"),t.minH=(0,l.getMeasurement)(e.minH,"0pt"),t.minW=(0,l.getMeasurement)(e.minW,"0pt"),t.name=e.name||"",t.presence=(0,l.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),t.relevant=(0,l.getRelevant)(e.relevant),t.use=e.use||"",t.usehref=e.usehref||"",t.w=e.w?(0,l.getMeasurement)(e.w):"",t.x=(0,l.getMeasurement)(e.x,"0pt"),t.y=(0,l.getMeasurement)(e.y,"0pt"),t.assist=null,t.bind=null,t.border=null,t.calculate=null,t.caption=null,t.desc=null,t.extras=null,t.margin=null,t.para=null,t.traversal=null,t.validate=null,t.connect=new u.XFAObjectArray,t.event=new u.XFAObjectArray,t.field=new u.XFAObjectArray,t.setProperty=new u.XFAObjectArray,t}return y(m,e),P(m,[{key:t,value:function(){return!0}},{key:r,value:function(){return!0}},{key:n,value:function(e){var t,r=x(this.field.children);try{for(r.s();!(t=r.n()).done;){var n=t.value;if(!n.value){var a=new qt({});n[i.$appendChild](a),n.value=a}n.value[i.$setValue](e)}}catch(e){r.e(e)}finally{r.f()}}},{key:a,value:function(){return this.layout.endsWith("-tb")&&0===this[i.$extra].attempt&&this[i.$extra].numberInLine>0||this[i.$getParent]()[i.$isThereMoreWidth]()}},{key:o,value:function(){var e,t=this[i.$getSubformParent]();return!!t[i.$isSplittable]()&&(void 0!==this[i.$extra]._isSplittable?this[i.$extra]._isSplittable:"position"===this.layout||this.layout.includes("row")?(this[i.$extra]._isSplittable=!1,!1):!(null!==(e=t.layout)&&void 0!==e&&e.endsWith("-tb")&&0!==t[i.$extra].numberInLine||(this[i.$extra]._isSplittable=!0,0)))}},{key:h,value:function(){return(0,s.flushHTML)(this)}},{key:f,value:function(e,t){(0,s.addHTML)(this,e,t)}},{key:p,value:function(){return(0,s.getAvailableSpace)(this)}},{key:g,value:function(e){if(R(this),"hidden"===this.presence||"inactive"===this.presence||0===this.h||0===this.w)return l.HTMLResult.EMPTY;(0,c.fixDimensions)(this);var t=[],r={id:this[i.$uid],class:[]};(0,c.setAccess)(this,r.class),this[i.$extra]||(this[i.$extra]=Object.create(null)),Object.assign(this[i.$extra],{children:t,attributes:r,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});var n=this[i.$isSplittable]();if(n||L(this),!(0,s.checkDimensions)(this,e))return l.HTMLResult.FAILURE;var a=new Set(["field"]);if(this.layout.includes("row")){var o=this[i.$getSubformParent]().columnWidths;Array.isArray(o)&&o.length>0&&(this[i.$extra].columnWidths=o,this[i.$extra].currentColumn=0)}var u=(0,c.toStyle)(this,"anchorType","dimensions","position","presence","border","margin","hAlign"),h=["xfaExclgroup"],f=(0,c.layoutClass)(this);f&&h.push(f),(0,c.isPrintOnly)(this)&&h.push("xfaPrintOnly"),r.style=u,r.class=h,this.name&&(r.xfaName=this.name),this[i.$pushPara]();for(var d="lr-tb"===this.layout||"rl-tb"===this.layout,p=d?2:1;this[i.$extra].attempt=1||-1===e}}),t.h=e.h?(0,l.getMeasurement)(e.h):"",t.hAlign=(0,l.getStringOption)(e.hAlign,["left","center","justify","justifyAll","radix","right"]),t.id=e.id||"",t.locale=e.locale||"",t.maxH=(0,l.getMeasurement)(e.maxH,"0pt"),t.maxW=(0,l.getMeasurement)(e.maxW,"0pt"),t.minH=(0,l.getMeasurement)(e.minH,"0pt"),t.minW=(0,l.getMeasurement)(e.minW,"0pt"),t.name=e.name||"",t.presence=(0,l.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),t.relevant=(0,l.getRelevant)(e.relevant),t.rotate=(0,l.getInteger)({data:e.rotate,defaultValue:0,validate:function(e){return e%90==0}}),t.use=e.use||"",t.usehref=e.usehref||"",t.w=e.w?(0,l.getMeasurement)(e.w):"",t.x=(0,l.getMeasurement)(e.x,"0pt"),t.y=(0,l.getMeasurement)(e.y,"0pt"),t.assist=null,t.bind=null,t.border=null,t.calculate=null,t.caption=null,t.desc=null,t.extras=null,t.font=null,t.format=null,t.items=new u.XFAObjectArray(2),t.keep=null,t.margin=null,t.para=null,t.traversal=null,t.ui=null,t.validate=null,t.value=null,t.bindItems=new u.XFAObjectArray,t.connect=new u.XFAObjectArray,t.event=new u.XFAObjectArray,t.setProperty=new u.XFAObjectArray,t}return y(a,e),P(a,[{key:t,value:function(){return!0}},{key:r,value:function(e){I(this,e)}},{key:n,value:function(e){var t,r;if(R(this),!this.ui){var n;switch(this.ui=new Xt({}),this.ui[i.$globalData]=this[i.$globalData],this[i.$appendChild](this.ui),this.items.children.length){case 0:n=new Bt({}),this.ui.textEdit=n;break;case 1:n=new ie({}),this.ui.checkButton=n;break;case 2:n=new oe({}),this.ui.choiceList=n}this.ui[i.$appendChild](n)}if(!this.ui||"hidden"===this.presence||"inactive"===this.presence||0===this.h||0===this.w)return l.HTMLResult.EMPTY;this.caption&&delete this.caption[i.$extra],this[i.$pushPara]();var a=this.caption?this.caption[i.$toHTML](e).html:null,o=this.w,u=this.h,h=0,d=0;this.margin&&(h=this.margin.leftInset+this.margin.rightInset,d=this.margin.topInset+this.margin.bottomInset);var p=null;if(""===this.w||""===this.h){var g=null,v=null,m=0,y=0;if(this.ui.checkButton)m=y=this.ui.checkButton.size;else{var b=(0,c.layoutNode)(this,e),w=b.w,k=b.h;null!==w?(m=w,y=k):y=(0,f.getMetrics)(this.font,!0).lineNoGap}if(m+=(p=O(this.ui[i.$getExtra]())).w,y+=p.h,this.caption){var x=this.caption[i.$getExtra](e),A=x.w,C=x.h;if(x.isBroken&&this[i.$getSubformParent]()[i.$isThereMoreWidth]())return this[i.$popPara](),l.HTMLResult.FAILURE;switch(g=A,v=C,this.caption.placement){case"left":case"right":case"inline":g+=m;break;case"top":case"bottom":v+=y}}else g=m,v=y;g&&""===this.w&&(g+=h,this.w=Math.min(this.maxW<=0?1/0:this.maxW,this.minW+1=1&&e<=5}}),r.appearanceFilter=null,r.certificates=null,r.digestMethods=null,r.encodings=null,r.encryptionMethods=null,r.handler=null,r.lockDocument=null,r.mdp=null,r.reasons=null,r.timeStamp=null,r}return y(t,e),P(t)}(u.XFAObject),_e=function(e,t,r){function n(e){var t;return M(this,n),(t=d(this,n,[v,"float"])).id=e.id||"",t.name=e.name||"",t.use=e.use||"",t.usehref=e.usehref||"",t}return y(n,e),P(n,[{key:t,value:function(){var e=parseFloat(this[i.$content].trim());this[i.$content]=isNaN(e)?null:e}},{key:r,value:function(e){return B(null!==this[i.$content]?this[i.$content].toString():"")}}]),n}(u.ContentObject,i.$finalize,i.$toHTML),je=function(e,t,r){function n(e){var t;return M(this,n),(t=d(this,n,[v,"font",!0])).baselineShift=(0,l.getMeasurement)(e.baselineShift),t.fontHorizontalScale=(0,l.getFloat)({data:e.fontHorizontalScale,defaultValue:100,validate:function(e){return e>=0}}),t.fontVerticalScale=(0,l.getFloat)({data:e.fontVerticalScale,defaultValue:100,validate:function(e){return e>=0}}),t.id=e.id||"",t.kerningMode=(0,l.getStringOption)(e.kerningMode,["none","pair"]),t.letterSpacing=(0,l.getMeasurement)(e.letterSpacing,"0"),t.lineThrough=(0,l.getInteger)({data:e.lineThrough,defaultValue:0,validate:function(e){return 1===e||2===e}}),t.lineThroughPeriod=(0,l.getStringOption)(e.lineThroughPeriod,["all","word"]),t.overline=(0,l.getInteger)({data:e.overline,defaultValue:0,validate:function(e){return 1===e||2===e}}),t.overlinePeriod=(0,l.getStringOption)(e.overlinePeriod,["all","word"]),t.posture=(0,l.getStringOption)(e.posture,["normal","italic"]),t.size=(0,l.getMeasurement)(e.size,"10pt"),t.typeface=e.typeface||"Courier",t.underline=(0,l.getInteger)({data:e.underline,defaultValue:0,validate:function(e){return 1===e||2===e}}),t.underlinePeriod=(0,l.getStringOption)(e.underlinePeriod,["all","word"]),t.use=e.use||"",t.usehref=e.usehref||"",t.weight=(0,l.getStringOption)(e.weight,["normal","bold"]),t.extras=null,t.fill=null,t}return y(n,e),P(n,[{key:t,value:function(e){a(m(n.prototype),i.$clean,this).call(this,e),this[i.$globalData].usedTypefaces.add(this.typeface)}},{key:r,value:function(){var e=(0,c.toStyle)(this,"fill"),t=e.color;return t&&("#000000"===t?delete e.color:t.startsWith("#")||(e.background=t,e.backgroundClip="text",e.color="transparent")),this.baselineShift&&(e.verticalAlign=(0,c.measureToString)(this.baselineShift)),e.fontKerning="none"===this.kerningMode?"none":"normal",e.letterSpacing=(0,c.measureToString)(this.letterSpacing),0!==this.lineThrough&&(e.textDecoration="line-through",2===this.lineThrough&&(e.textDecorationStyle="double")),0!==this.overline&&(e.textDecoration="overline",2===this.overline&&(e.textDecorationStyle="double")),e.fontStyle=this.posture,e.fontSize=(0,c.measureToString)(.99*this.size),(0,c.setFontFamily)(this,this,this[i.$globalData].fontFinder,e),0!==this.underline&&(e.textDecoration="underline",2===this.underline&&(e.textDecorationStyle="double")),e.fontWeight=this.weight,e}}]),n}(u.XFAObject,i.$clean,i.$toStyle),Ue=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[v,"format",!0])).id=e.id||"",r.use=e.use||"",r.usehref=e.usehref||"",r.extras=null,r.picture=null,r}return y(t,e),P(t)}(u.XFAObject),$e=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[v,"handler"])).id=e.id||"",r.type=(0,l.getStringOption)(e.type,["optional","required"]),r.use=e.use||"",r.usehref=e.usehref||"",r}return y(t,e),P(t)}(u.StringObject),Xe=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[v,"hyphenation"])).excludeAllCaps=(0,l.getInteger)({data:e.excludeAllCaps,defaultValue:0,validate:function(e){return 1===e}}),r.excludeInitialCap=(0,l.getInteger)({data:e.excludeInitialCap,defaultValue:0,validate:function(e){return 1===e}}),r.hyphenate=(0,l.getInteger)({data:e.hyphenate,defaultValue:0,validate:function(e){return 1===e}}),r.id=e.id||"",r.pushCharacterCount=(0,l.getInteger)({data:e.pushCharacterCount,defaultValue:3,validate:function(e){return e>=0}}),r.remainCharacterCount=(0,l.getInteger)({data:e.remainCharacterCount,defaultValue:3,validate:function(e){return e>=0}}),r.use=e.use||"",r.usehref=e.usehref||"",r.wordCharacterCount=(0,l.getInteger)({data:e.wordCharacterCount,defaultValue:7,validate:function(e){return e>=0}}),r}return y(t,e),P(t)}(u.XFAObject),He=function(e,t){function r(e){var t;return M(this,r),(t=d(this,r,[v,"image"])).aspect=(0,l.getStringOption)(e.aspect,["fit","actual","height","none","width"]),t.contentType=e.contentType||"",t.href=e.href||"",t.id=e.id||"",t.name=e.name||"",t.transferEncoding=(0,l.getStringOption)(e.transferEncoding,["base64","none","package"]),t.use=e.use||"",t.usehref=e.usehref||"",t}return y(r,e),P(r,[{key:t,value:function(){if(this.contentType&&!A.has(this.contentType.toLowerCase()))return l.HTMLResult.EMPTY;var e=this[i.$globalData].images&&this[i.$globalData].images.get(this.href);if(!e&&(this.href||!this[i.$content]))return l.HTMLResult.EMPTY;if(e||"base64"!==this.transferEncoding||(e=(0,h.stringToBytes)(atob(this[i.$content]))),!e)return l.HTMLResult.EMPTY;if(!this.contentType){for(var t=0,r=C;ta.length&&a.every((function(t,r){return t===e[r]}))){this.contentType=o;break}}if(!this.contentType)return l.HTMLResult.EMPTY}var s,c=new Blob([e],{type:this.contentType});switch(this.aspect){case"fit":case"actual":break;case"height":s={height:"100%",objectFit:"fill"};break;case"none":s={width:"100%",height:"100%",objectFit:"fill"};break;case"width":s={width:"100%",objectFit:"fill"}}var u=this[i.$getParent]();return l.HTMLResult.success({name:"img",attributes:{class:["xfaImage"],style:s,src:URL.createObjectURL(c),alt:u?D(u[i.$getParent]()):null}})}}]),r}(u.StringObject,i.$toHTML),qe=function(e,t){function r(e){var t;return M(this,r),(t=d(this,r,[v,"imageEdit",!0])).data=(0,l.getStringOption)(e.data,["link","embed"]),t.id=e.id||"",t.use=e.use||"",t.usehref=e.usehref||"",t.border=null,t.extras=null,t.margin=null,t}return y(r,e),P(r,[{key:t,value:function(e){return"embed"===this.data?l.HTMLResult.success({name:"div",children:[],attributes:{}}):l.HTMLResult.EMPTY}}]),r}(u.XFAObject,i.$toHTML),ze=function(e,t,r){function n(e){var t;return M(this,n),(t=d(this,n,[v,"integer"])).id=e.id||"",t.name=e.name||"",t.use=e.use||"",t.usehref=e.usehref||"",t}return y(n,e),P(n,[{key:t,value:function(){var e=parseInt(this[i.$content].trim(),10);this[i.$content]=isNaN(e)?null:e}},{key:r,value:function(e){return B(null!==this[i.$content]?this[i.$content].toString():"")}}]),n}(u.ContentObject,i.$finalize,i.$toHTML),Ge=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[v,"issuers",!0])).id=e.id||"",r.type=(0,l.getStringOption)(e.type,["optional","required"]),r.use=e.use||"",r.usehref=e.usehref||"",r.certificate=new u.XFAObjectArray,r}return y(t,e),P(t)}(u.XFAObject),We=function(e,t){function r(e){var t;return M(this,r),(t=d(this,r,[v,"items",!0])).id=e.id||"",t.name=e.name||"",t.presence=(0,l.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),t.ref=e.ref||"",t.save=(0,l.getInteger)({data:e.save,defaultValue:0,validate:function(e){return 1===e}}),t.use=e.use||"",t.usehref=e.usehref||"",t.boolean=new u.XFAObjectArray,t.date=new u.XFAObjectArray,t.dateTime=new u.XFAObjectArray,t.decimal=new u.XFAObjectArray,t.exData=new u.XFAObjectArray,t.float=new u.XFAObjectArray,t.image=new u.XFAObjectArray,t.integer=new u.XFAObjectArray,t.text=new u.XFAObjectArray,t.time=new u.XFAObjectArray,t}return y(r,e),P(r,[{key:t,value:function(){var e,t=[],r=x(this[i.$getChildren]());try{for(r.s();!(e=r.n()).done;){var n=e.value;t.push(n[i.$text]())}}catch(e){r.e(e)}finally{r.f()}return l.HTMLResult.success(t)}}]),r}(u.XFAObject,i.$toHTML);t.Items=We;var Ve=function(e){function t(e){var r;M(this,t),(r=d(this,t,[v,"keep",!0])).id=e.id||"";var n=["none","contentArea","pageArea"];return r.intact=(0,l.getStringOption)(e.intact,n),r.next=(0,l.getStringOption)(e.next,n),r.previous=(0,l.getStringOption)(e.previous,n),r.use=e.use||"",r.usehref=e.usehref||"",r.extras=null,r}return y(t,e),P(t)}(u.XFAObject),Ke=function(e){function t(e){var r;M(this,t);var n=["","yes","no"];return(r=d(this,t,[v,"keyUsage"])).crlSign=(0,l.getStringOption)(e.crlSign,n),r.dataEncipherment=(0,l.getStringOption)(e.dataEncipherment,n),r.decipherOnly=(0,l.getStringOption)(e.decipherOnly,n),r.digitalSignature=(0,l.getStringOption)(e.digitalSignature,n),r.encipherOnly=(0,l.getStringOption)(e.encipherOnly,n),r.id=e.id||"",r.keyAgreement=(0,l.getStringOption)(e.keyAgreement,n),r.keyCertSign=(0,l.getStringOption)(e.keyCertSign,n),r.keyEncipherment=(0,l.getStringOption)(e.keyEncipherment,n),r.nonRepudiation=(0,l.getStringOption)(e.nonRepudiation,n),r.type=(0,l.getStringOption)(e.type,["optional","required"]),r.use=e.use||"",r.usehref=e.usehref||"",r}return y(t,e),P(t)}(u.XFAObject),Ye=function(e,t){function r(e){var t;return M(this,r),(t=d(this,r,[v,"line",!0])).hand=(0,l.getStringOption)(e.hand,["even","left","right"]),t.id=e.id||"",t.slope=(0,l.getStringOption)(e.slope,["\\","/"]),t.use=e.use||"",t.usehref=e.usehref||"",t.edge=null,t}return y(r,e),P(r,[{key:t,value:function(){var e,t,r=this[i.$getParent]()[i.$getParent](),n=this.edge||new ke({}),a=n[i.$toStyle](),o=Object.create(null),s="visible"===n.presence?n.thickness:0;o.strokeWidth=(0,c.measureToString)(s),o.stroke=a.color;var u,h,f,d,p="100%",g="100%";r.w<=s?(u="50%",h=0,f="50%",d="100%",p=o.strokeWidth):r.h<=s?(u=0,h="50%",f="100%",d="50%",g=o.strokeWidth):"\\"===this.slope?(u=(e=[0,0,"100%","100%"])[0],h=e[1],f=e[2],d=e[3]):(u=(t=[0,"100%","100%",0])[0],h=t[1],f=t[2],d=t[3]);var v={name:"svg",children:[{name:"line",attributes:{xmlns:b,x1:u,y1:h,x2:f,y2:d,style:o}}],attributes:{xmlns:b,width:p,height:g,style:{overflow:"visible"}}};return F(r)?l.HTMLResult.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[v]}):(v.attributes.style.position="absolute",l.HTMLResult.success(v))}}]),r}(u.XFAObject,i.$toHTML),Je=function(e,t){function r(e){var t;return M(this,r),(t=d(this,r,[v,"linear",!0])).id=e.id||"",t.type=(0,l.getStringOption)(e.type,["toRight","toBottom","toLeft","toTop"]),t.use=e.use||"",t.usehref=e.usehref||"",t.color=null,t.extras=null,t}return y(r,e),P(r,[{key:t,value:function(e){return e=e?e[i.$toStyle]():"#FFFFFF","linear-gradient(".concat(this.type.replace(/([RBLT])/," $1").toLowerCase(),", ").concat(e,", ").concat(this.color?this.color[i.$toStyle]():"#000000",")")}}]),r}(u.XFAObject,i.$toStyle),Ze=function(e,t){function r(e){var t;return M(this,r),(t=d(this,r,[v,"lockDocument"])).id=e.id||"",t.type=(0,l.getStringOption)(e.type,["optional","required"]),t.use=e.use||"",t.usehref=e.usehref||"",t}return y(r,e),P(r,[{key:t,value:function(){this[i.$content]=(0,l.getStringOption)(this[i.$content],["auto","0","1"])}}]),r}(u.ContentObject,i.$finalize),Qe=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[v,"manifest",!0])).action=(0,l.getStringOption)(e.action,["include","all","exclude"]),r.id=e.id||"",r.name=e.name||"",r.use=e.use||"",r.usehref=e.usehref||"",r.extras=null,r.ref=new u.XFAObjectArray,r}return y(t,e),P(t)}(u.XFAObject),et=function(e,t){function r(e){var t;return M(this,r),(t=d(this,r,[v,"margin",!0])).bottomInset=(0,l.getMeasurement)(e.bottomInset,"0"),t.id=e.id||"",t.leftInset=(0,l.getMeasurement)(e.leftInset,"0"),t.rightInset=(0,l.getMeasurement)(e.rightInset,"0"),t.topInset=(0,l.getMeasurement)(e.topInset,"0"),t.use=e.use||"",t.usehref=e.usehref||"",t.extras=null,t}return y(r,e),P(r,[{key:t,value:function(){return{margin:(0,c.measureToString)(this.topInset)+" "+(0,c.measureToString)(this.rightInset)+" "+(0,c.measureToString)(this.bottomInset)+" "+(0,c.measureToString)(this.leftInset)}}}]),r}(u.XFAObject,i.$toStyle),tt=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[v,"mdp"])).id=e.id||"",r.permissions=(0,l.getInteger)({data:e.permissions,defaultValue:2,validate:function(e){return 1===e||3===e}}),r.signatureType=(0,l.getStringOption)(e.signatureType,["filler","author"]),r.use=e.use||"",r.usehref=e.usehref||"",r}return y(t,e),P(t)}(u.XFAObject),rt=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[v,"medium"])).id=e.id||"",r.imagingBBox=(0,l.getBBox)(e.imagingBBox),r.long=(0,l.getMeasurement)(e.long),r.orientation=(0,l.getStringOption)(e.orientation,["portrait","landscape"]),r.short=(0,l.getMeasurement)(e.short),r.stock=e.stock||"",r.trayIn=(0,l.getStringOption)(e.trayIn,["auto","delegate","pageFront"]),r.trayOut=(0,l.getStringOption)(e.trayOut,["auto","delegate"]),r.use=e.use||"",r.usehref=e.usehref||"",r}return y(t,e),P(t)}(u.XFAObject),nt=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[v,"message",!0])).id=e.id||"",r.use=e.use||"",r.usehref=e.usehref||"",r.text=new u.XFAObjectArray,r}return y(t,e),P(t)}(u.XFAObject),at=function(e,t){function r(e){var t;return M(this,r),(t=d(this,r,[v,"numericEdit",!0])).hScrollPolicy=(0,l.getStringOption)(e.hScrollPolicy,["auto","off","on"]),t.id=e.id||"",t.use=e.use||"",t.usehref=e.usehref||"",t.border=null,t.comb=null,t.extras=null,t.margin=null,t}return y(r,e),P(r,[{key:t,value:function(e){var t,r=(0,c.toStyle)(this,"border","font","margin"),n=this[i.$getParent]()[i.$getParent](),a={name:"input",attributes:{type:"text",fieldId:n[i.$uid],dataId:(null===(t=n[i.$data])||void 0===t?void 0:t[i.$uid])||n[i.$uid],class:["xfaTextfield"],style:r,"aria-label":D(n),"aria-required":!1}};return E(n)&&(a.attributes["aria-required"]=!0,a.attributes.required=!0),l.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[a]})}}]),r}(u.XFAObject,i.$toHTML),it=function(e,t){function r(e){var t;return M(this,r),(t=d(this,r,[v,"occur",!0])).id=e.id||"",t.initial=""!==e.initial?(0,l.getInteger)({data:e.initial,defaultValue:"",validate:function(e){return!0}}):"",t.max=""!==e.max?(0,l.getInteger)({data:e.max,defaultValue:1,validate:function(e){return!0}}):"",t.min=""!==e.min?(0,l.getInteger)({data:e.min,defaultValue:1,validate:function(e){return!0}}):"",t.use=e.use||"",t.usehref=e.usehref||"",t.extras=null,t}return y(r,e),P(r,[{key:t,value:function(){var e=this[i.$getParent](),t=this.min;""===this.min&&(this.min=e instanceof ut||e instanceof lt?0:1),""===this.max&&(this.max=""===t?e instanceof ut||e instanceof lt?-1:1:this.min),-1!==this.max&&this.max=0}}),t.preserve=e.preserve||"",t.radixOffset=e.radixOffset?(0,l.getMeasurement)(e.radixOffset,"0pt"):"",t.spaceAbove=e.spaceAbove?(0,l.getMeasurement)(e.spaceAbove,"0pt"):"",t.spaceBelow=e.spaceBelow?(0,l.getMeasurement)(e.spaceBelow,"0pt"):"",t.tabDefault=e.tabDefault?(0,l.getMeasurement)(t.tabDefault):"",t.tabStops=(e.tabStops||"").trim().split(/\s+/).map((function(e,t){return t%2==1?(0,l.getMeasurement)(e):e})),t.textIndent=e.textIndent?(0,l.getMeasurement)(e.textIndent,"0pt"):"",t.use=e.use||"",t.usehref=e.usehref||"",t.vAlign=(0,l.getStringOption)(e.vAlign,["top","bottom","middle"]),t.widows=(0,l.getInteger)({data:e.widows,defaultValue:0,validate:function(e){return e>=0}}),t.hyphenation=null,t}return y(r,e),P(r,[{key:t,value:function(){var e=(0,c.toStyle)(this,"hAlign");return""!==this.marginLeft&&(e.paddingLeft=(0,c.measureToString)(this.marginLeft)),""!==this.marginRight&&(e.paddingight=(0,c.measureToString)(this.marginRight)),""!==this.spaceAbove&&(e.paddingTop=(0,c.measureToString)(this.spaceAbove)),""!==this.spaceBelow&&(e.paddingBottom=(0,c.measureToString)(this.spaceBelow)),""!==this.textIndent&&(e.textIndent=(0,c.measureToString)(this.textIndent),(0,c.fixTextIndent)(e)),this.lineHeight>0&&(e.lineHeight=(0,c.measureToString)(this.lineHeight)),""!==this.tabDefault&&(e.tabSize=(0,c.measureToString)(this.tabDefault)),this.tabStops.length,this.hyphenatation&&Object.assign(e,this.hyphenatation[i.$toStyle]()),e}}]),r}(u.XFAObject,i.$toStyle),ft=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[v,"passwordEdit",!0])).hScrollPolicy=(0,l.getStringOption)(e.hScrollPolicy,["auto","off","on"]),r.id=e.id||"",r.passwordChar=e.passwordChar||"*",r.use=e.use||"",r.usehref=e.usehref||"",r.border=null,r.extras=null,r.margin=null,r}return y(t,e),P(t)}(u.XFAObject),dt=function(e,t){function r(e){var t;return M(this,r),(t=d(this,r,[v,"pattern",!0])).id=e.id||"",t.type=(0,l.getStringOption)(e.type,["crossHatch","crossDiagonal","diagonalLeft","diagonalRight","horizontal","vertical"]),t.use=e.use||"",t.usehref=e.usehref||"",t.color=null,t.extras=null,t}return y(r,e),P(r,[{key:t,value:function(e){e=e?e[i.$toStyle]():"#FFFFFF";var t=this.color?this.color[i.$toStyle]():"#000000",r="repeating-linear-gradient",n="".concat(e,",").concat(e," 5px,").concat(t," 5px,").concat(t," 10px");switch(this.type){case"crossHatch":return"".concat(r,"(to top,").concat(n,") ").concat(r,"(to right,").concat(n,")");case"crossDiagonal":return"".concat(r,"(45deg,").concat(n,") ").concat(r,"(-45deg,").concat(n,")");case"diagonalLeft":return"".concat(r,"(45deg,").concat(n,")");case"diagonalRight":return"".concat(r,"(-45deg,").concat(n,")");case"horizontal":return"".concat(r,"(to top,").concat(n,")");case"vertical":return"".concat(r,"(to right,").concat(n,")")}return""}}]),r}(u.XFAObject,i.$toStyle),pt=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[v,"picture"])).id=e.id||"",r.use=e.use||"",r.usehref=e.usehref||"",r}return y(t,e),P(t)}(u.StringObject),gt=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[v,"proto",!0])).appearanceFilter=new u.XFAObjectArray,r.arc=new u.XFAObjectArray,r.area=new u.XFAObjectArray,r.assist=new u.XFAObjectArray,r.barcode=new u.XFAObjectArray,r.bindItems=new u.XFAObjectArray,r.bookend=new u.XFAObjectArray,r.boolean=new u.XFAObjectArray,r.border=new u.XFAObjectArray,r.break=new u.XFAObjectArray,r.breakAfter=new u.XFAObjectArray,r.breakBefore=new u.XFAObjectArray,r.button=new u.XFAObjectArray,r.calculate=new u.XFAObjectArray,r.caption=new u.XFAObjectArray,r.certificate=new u.XFAObjectArray,r.certificates=new u.XFAObjectArray,r.checkButton=new u.XFAObjectArray,r.choiceList=new u.XFAObjectArray,r.color=new u.XFAObjectArray,r.comb=new u.XFAObjectArray,r.connect=new u.XFAObjectArray,r.contentArea=new u.XFAObjectArray,r.corner=new u.XFAObjectArray,r.date=new u.XFAObjectArray,r.dateTime=new u.XFAObjectArray,r.dateTimeEdit=new u.XFAObjectArray,r.decimal=new u.XFAObjectArray,r.defaultUi=new u.XFAObjectArray,r.desc=new u.XFAObjectArray,r.digestMethod=new u.XFAObjectArray,r.digestMethods=new u.XFAObjectArray,r.draw=new u.XFAObjectArray,r.edge=new u.XFAObjectArray,r.encoding=new u.XFAObjectArray,r.encodings=new u.XFAObjectArray,r.encrypt=new u.XFAObjectArray,r.encryptData=new u.XFAObjectArray,r.encryption=new u.XFAObjectArray,r.encryptionMethod=new u.XFAObjectArray,r.encryptionMethods=new u.XFAObjectArray,r.event=new u.XFAObjectArray,r.exData=new u.XFAObjectArray,r.exObject=new u.XFAObjectArray,r.exclGroup=new u.XFAObjectArray,r.execute=new u.XFAObjectArray,r.extras=new u.XFAObjectArray,r.field=new u.XFAObjectArray,r.fill=new u.XFAObjectArray,r.filter=new u.XFAObjectArray,r.float=new u.XFAObjectArray,r.font=new u.XFAObjectArray,r.format=new u.XFAObjectArray,r.handler=new u.XFAObjectArray,r.hyphenation=new u.XFAObjectArray,r.image=new u.XFAObjectArray,r.imageEdit=new u.XFAObjectArray,r.integer=new u.XFAObjectArray,r.issuers=new u.XFAObjectArray,r.items=new u.XFAObjectArray,r.keep=new u.XFAObjectArray,r.keyUsage=new u.XFAObjectArray,r.line=new u.XFAObjectArray,r.linear=new u.XFAObjectArray,r.lockDocument=new u.XFAObjectArray,r.manifest=new u.XFAObjectArray,r.margin=new u.XFAObjectArray,r.mdp=new u.XFAObjectArray,r.medium=new u.XFAObjectArray,r.message=new u.XFAObjectArray,r.numericEdit=new u.XFAObjectArray,r.occur=new u.XFAObjectArray,r.oid=new u.XFAObjectArray,r.oids=new u.XFAObjectArray,r.overflow=new u.XFAObjectArray,r.pageArea=new u.XFAObjectArray,r.pageSet=new u.XFAObjectArray,r.para=new u.XFAObjectArray,r.passwordEdit=new u.XFAObjectArray,r.pattern=new u.XFAObjectArray,r.picture=new u.XFAObjectArray,r.radial=new u.XFAObjectArray,r.reason=new u.XFAObjectArray,r.reasons=new u.XFAObjectArray,r.rectangle=new u.XFAObjectArray,r.ref=new u.XFAObjectArray,r.script=new u.XFAObjectArray,r.setProperty=new u.XFAObjectArray,r.signData=new u.XFAObjectArray,r.signature=new u.XFAObjectArray,r.signing=new u.XFAObjectArray,r.solid=new u.XFAObjectArray,r.speak=new u.XFAObjectArray,r.stipple=new u.XFAObjectArray,r.subform=new u.XFAObjectArray,r.subformSet=new u.XFAObjectArray,r.subjectDN=new u.XFAObjectArray,r.subjectDNs=new u.XFAObjectArray,r.submit=new u.XFAObjectArray,r.text=new u.XFAObjectArray,r.textEdit=new u.XFAObjectArray,r.time=new u.XFAObjectArray,r.timeStamp=new u.XFAObjectArray,r.toolTip=new u.XFAObjectArray,r.traversal=new u.XFAObjectArray,r.traverse=new u.XFAObjectArray,r.ui=new u.XFAObjectArray,r.validate=new u.XFAObjectArray,r.value=new u.XFAObjectArray,r.variables=new u.XFAObjectArray,r}return y(t,e),P(t)}(u.XFAObject),vt=function(e,t){function r(e){var t;return M(this,r),(t=d(this,r,[v,"radial",!0])).id=e.id||"",t.type=(0,l.getStringOption)(e.type,["toEdge","toCenter"]),t.use=e.use||"",t.usehref=e.usehref||"",t.color=null,t.extras=null,t}return y(r,e),P(r,[{key:t,value:function(e){e=e?e[i.$toStyle]():"#FFFFFF";var t=this.color?this.color[i.$toStyle]():"#000000";return"radial-gradient(circle at center, ".concat("toEdge"===this.type?"".concat(e,",").concat(t):"".concat(t,",").concat(e),")")}}]),r}(u.XFAObject,i.$toStyle),mt=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[v,"reason"])).id=e.id||"",r.name=e.name||"",r.use=e.use||"",r.usehref=e.usehref||"",r}return y(t,e),P(t)}(u.StringObject),yt=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[v,"reasons",!0])).id=e.id||"",r.type=(0,l.getStringOption)(e.type,["optional","required"]),r.use=e.use||"",r.usehref=e.usehref||"",r.reason=new u.XFAObjectArray,r}return y(t,e),P(t)}(u.XFAObject),bt=function(e,t){function r(e){var t;return M(this,r),(t=d(this,r,[v,"rectangle",!0])).hand=(0,l.getStringOption)(e.hand,["even","left","right"]),t.id=e.id||"",t.use=e.use||"",t.usehref=e.usehref||"",t.corner=new u.XFAObjectArray(4),t.edge=new u.XFAObjectArray(4),t.fill=null,t}return y(r,e),P(r,[{key:t,value:function(){var e,t=this.edge.children.length?this.edge.children[0]:new ke({}),r=t[i.$toStyle](),n=Object.create(null);"visible"===(null===(e=this.fill)||void 0===e?void 0:e.presence)?Object.assign(n,this.fill[i.$toStyle]()):n.fill="transparent",n.strokeWidth=(0,c.measureToString)("visible"===t.presence?t.thickness:0),n.stroke=r.color;var a=(this.corner.children.length?this.corner.children[0]:new he({}))[i.$toStyle](),o={name:"svg",children:[{name:"rect",attributes:{xmlns:b,width:"100%",height:"100%",x:0,y:0,rx:a.radius,ry:a.radius,style:n}}],attributes:{xmlns:b,style:{overflow:"visible"},width:"100%",height:"100%"}};return F(this[i.$getParent]()[i.$getParent]())?l.HTMLResult.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[o]}):(o.attributes.style.position="absolute",l.HTMLResult.success(o))}}]),r}(u.XFAObject,i.$toHTML),wt=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[v,"ref"])).id=e.id||"",r.use=e.use||"",r.usehref=e.usehref||"",r}return y(t,e),P(t)}(u.StringObject),kt=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[v,"script"])).binding=e.binding||"",r.contentType=e.contentType||"",r.id=e.id||"",r.name=e.name||"",r.runAt=(0,l.getStringOption)(e.runAt,["client","both","server"]),r.use=e.use||"",r.usehref=e.usehref||"",r}return y(t,e),P(t)}(u.StringObject),xt=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[v,"setProperty"])).connection=e.connection||"",r.ref=e.ref||"",r.target=e.target||"",r}return y(t,e),P(t)}(u.XFAObject);t.SetProperty=xt;var St=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[v,"signData",!0])).id=e.id||"",r.operation=(0,l.getStringOption)(e.operation,["sign","clear","verify"]),r.ref=e.ref||"",r.target=e.target||"",r.use=e.use||"",r.usehref=e.usehref||"",r.filter=null,r.manifest=null,r}return y(t,e),P(t)}(u.XFAObject),At=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[v,"signature",!0])).id=e.id||"",r.type=(0,l.getStringOption)(e.type,["PDF1.3","PDF1.6"]),r.use=e.use||"",r.usehref=e.usehref||"",r.border=null,r.extras=null,r.filter=null,r.manifest=null,r.margin=null,r}return y(t,e),P(t)}(u.XFAObject),Ct=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[v,"signing",!0])).id=e.id||"",r.type=(0,l.getStringOption)(e.type,["optional","required"]),r.use=e.use||"",r.usehref=e.usehref||"",r.certificate=new u.XFAObjectArray,r}return y(t,e),P(t)}(u.XFAObject),Ot=function(e,t){function r(e){var t;return M(this,r),(t=d(this,r,[v,"solid",!0])).id=e.id||"",t.use=e.use||"",t.usehref=e.usehref||"",t.extras=null,t}return y(r,e),P(r,[{key:t,value:function(e){return e?e[i.$toStyle]():"#FFFFFF"}}]),r}(u.XFAObject,i.$toStyle),Ft=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[v,"speak"])).disable=(0,l.getInteger)({data:e.disable,defaultValue:0,validate:function(e){return 1===e}}),r.id=e.id||"",r.priority=(0,l.getStringOption)(e.priority,["custom","caption","name","toolTip"]),r.rid=e.rid||"",r.use=e.use||"",r.usehref=e.usehref||"",r}return y(t,e),P(t)}(u.StringObject),It=function(e,t){function r(e){var t;return M(this,r),(t=d(this,r,[v,"stipple",!0])).id=e.id||"",t.rate=(0,l.getInteger)({data:e.rate,defaultValue:50,validate:function(e){return e>=0&&e<=100}}),t.use=e.use||"",t.usehref=e.usehref||"",t.color=null,t.extras=null,t}return y(r,e),P(r,[{key:t,value:function(e){var t=this.rate/100;return h.Util.makeHexColor(Math.round(e.value.r*(1-t)+this.value.r*t),Math.round(e.value.g*(1-t)+this.value.g*t),Math.round(e.value.b*(1-t)+this.value.b*t))}}]),r}(u.XFAObject,i.$toStyle),Tt=function(e,t,r,n,a,o,f,p,g,m){function b(e){var t;return M(this,b),(t=d(this,b,[v,"subform",!0])).access=(0,l.getStringOption)(e.access,["open","nonInteractive","protected","readOnly"]),t.allowMacro=(0,l.getInteger)({data:e.allowMacro,defaultValue:0,validate:function(e){return 1===e}}),t.anchorType=(0,l.getStringOption)(e.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]),t.colSpan=(0,l.getInteger)({data:e.colSpan,defaultValue:1,validate:function(e){return e>=1||-1===e}}),t.columnWidths=(e.columnWidths||"").trim().split(/\s+/).map((function(e){return"-1"===e?-1:(0,l.getMeasurement)(e)})),t.h=e.h?(0,l.getMeasurement)(e.h):"",t.hAlign=(0,l.getStringOption)(e.hAlign,["left","center","justify","justifyAll","radix","right"]),t.id=e.id||"",t.layout=(0,l.getStringOption)(e.layout,["position","lr-tb","rl-row","rl-tb","row","table","tb"]),t.locale=e.locale||"",t.maxH=(0,l.getMeasurement)(e.maxH,"0pt"),t.maxW=(0,l.getMeasurement)(e.maxW,"0pt"),t.mergeMode=(0,l.getStringOption)(e.mergeMode,["consumeData","matchTemplate"]),t.minH=(0,l.getMeasurement)(e.minH,"0pt"),t.minW=(0,l.getMeasurement)(e.minW,"0pt"),t.name=e.name||"",t.presence=(0,l.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),t.relevant=(0,l.getRelevant)(e.relevant),t.restoreState=(0,l.getStringOption)(e.restoreState,["manual","auto"]),t.scope=(0,l.getStringOption)(e.scope,["name","none"]),t.use=e.use||"",t.usehref=e.usehref||"",t.w=e.w?(0,l.getMeasurement)(e.w):"",t.x=(0,l.getMeasurement)(e.x,"0pt"),t.y=(0,l.getMeasurement)(e.y,"0pt"),t.assist=null,t.bind=null,t.bookend=null,t.border=null,t.break=null,t.calculate=null,t.desc=null,t.extras=null,t.keep=null,t.margin=null,t.occur=null,t.overflow=null,t.pageSet=null,t.para=null,t.traversal=null,t.validate=null,t.variables=null,t.area=new u.XFAObjectArray,t.breakAfter=new u.XFAObjectArray,t.breakBefore=new u.XFAObjectArray,t.connect=new u.XFAObjectArray,t.draw=new u.XFAObjectArray,t.event=new u.XFAObjectArray,t.exObject=new u.XFAObjectArray,t.exclGroup=new u.XFAObjectArray,t.field=new u.XFAObjectArray,t.proto=new u.XFAObjectArray,t.setProperty=new u.XFAObjectArray,t.subform=new u.XFAObjectArray,t.subformSet=new u.XFAObjectArray,t}return y(b,e),P(b,[{key:t,value:function(){var e=this[i.$getParent]();return e instanceof Mt?e[i.$getSubformParent]():e}},{key:r,value:function(){return!0}},{key:n,value:function(){return this.layout.endsWith("-tb")&&0===this[i.$extra].attempt&&this[i.$extra].numberInLine>0||this[i.$getParent]()[i.$isThereMoreWidth]()}},{key:a,value:k().mark((function e(){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(T(this),"t0",1);case 1:case"end":return e.stop()}}),e,this)}))},{key:o,value:function(){return(0,s.flushHTML)(this)}},{key:f,value:function(e,t){(0,s.addHTML)(this,e,t)}},{key:p,value:function(){return(0,s.getAvailableSpace)(this)}},{key:g,value:function(){var e,t=this[i.$getSubformParent]();return!!t[i.$isSplittable]()&&(void 0!==this[i.$extra]._isSplittable?this[i.$extra]._isSplittable:"position"===this.layout||this.layout.includes("row")||this.keep&&"none"!==this.keep.intact?(this[i.$extra]._isSplittable=!1,!1):!(null!==(e=t.layout)&&void 0!==e&&e.endsWith("-tb")&&0!==t[i.$extra].numberInLine||(this[i.$extra]._isSplittable=!0,0)))}},{key:m,value:function(e){var t;if(R(this),this.break){if("auto"!==this.break.after||""!==this.break.afterTarget){var r=new Z({targetType:this.break.after,target:this.break.afterTarget,startNew:this.break.startNew.toString()});r[i.$globalData]=this[i.$globalData],this[i.$appendChild](r),this.breakAfter.push(r)}if("auto"!==this.break.before||""!==this.break.beforeTarget){var n=new Q({targetType:this.break.before,target:this.break.beforeTarget,startNew:this.break.startNew.toString()});n[i.$globalData]=this[i.$globalData],this[i.$appendChild](n),this.breakBefore.push(n)}if(""!==this.break.overflowTarget){var a=new ct({target:this.break.overflowTarget,leader:this.break.overflowLeader,trailer:this.break.overflowTrailer});a[i.$globalData]=this[i.$globalData],this[i.$appendChild](a),this.overflow.push(a)}this[i.$removeChild](this.break),this.break=null}if("hidden"===this.presence||"inactive"===this.presence)return l.HTMLResult.EMPTY;if((this.breakBefore.children.length>1||this.breakAfter.children.length>1)&&(0,h.warn)("XFA - Several breakBefore or breakAfter in subforms: please file a bug."),this.breakBefore.children.length>=1){var o=this.breakBefore.children[0];if(j(o))return l.HTMLResult.breakNode(o)}if(null!==(t=this[i.$extra])&&void 0!==t&&t.afterBreakAfter)return l.HTMLResult.EMPTY;(0,c.fixDimensions)(this);var u=[],f={id:this[i.$uid],class:[]};(0,c.setAccess)(this,f.class),this[i.$extra]||(this[i.$extra]=Object.create(null)),Object.assign(this[i.$extra],{children:u,line:null,attributes:f,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});var d=this[i.$getTemplateRoot](),p=d[i.$extra].noLayoutFailure,g=this[i.$isSplittable]();if(g||L(this),!(0,s.checkDimensions)(this,e))return l.HTMLResult.FAILURE;var v=new Set(["area","draw","exclGroup","field","subform","subformSet"]);if(this.layout.includes("row")){var m=this[i.$getSubformParent]().columnWidths;Array.isArray(m)&&m.length>0&&(this[i.$extra].columnWidths=m,this[i.$extra].currentColumn=0)}var y=(0,c.toStyle)(this,"anchorType","dimensions","position","presence","border","margin","hAlign"),b=["xfaSubform"],w=(0,c.layoutClass)(this);if(w&&b.push(w),f.style=y,f.class=b,this.name&&(f.xfaName=this.name),this.overflow){var k=this.overflow[i.$getExtra]();k.addLeader&&(k.addLeader=!1,U(this,k.leader,e))}this[i.$pushPara]();for(var x="lr-tb"===this.layout||"rl-tb"===this.layout,S=x?2:1;this[i.$extra].attempt=1){var D=this.breakAfter.children[0];if(j(D))return this[i.$extra].afterBreakAfter=P,l.HTMLResult.breakNode(D)}return delete this[i.$extra],P}}]),b}(u.XFAObject,i.$getSubformParent,i.$isBindable,i.$isThereMoreWidth,i.$getContainedChildren,i.$flushHTML,i.$addHTML,i.$getAvailableSpace,i.$isSplittable,i.$toHTML),Mt=function(e,t,r,n){function a(e){var t;return M(this,a),(t=d(this,a,[v,"subformSet",!0])).id=e.id||"",t.name=e.name||"",t.relation=(0,l.getStringOption)(e.relation,["ordered","choice","unordered"]),t.relevant=(0,l.getRelevant)(e.relevant),t.use=e.use||"",t.usehref=e.usehref||"",t.bookend=null,t.break=null,t.desc=null,t.extras=null,t.occur=null,t.overflow=null,t.breakAfter=new u.XFAObjectArray,t.breakBefore=new u.XFAObjectArray,t.subform=new u.XFAObjectArray,t.subformSet=new u.XFAObjectArray,t}return y(a,e),P(a,[{key:t,value:k().mark((function e(){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(T(this),"t0",1);case 1:case"end":return e.stop()}}),e,this)}))},{key:r,value:function(){for(var e=this[i.$getParent]();!(e instanceof Tt);)e=e[i.$getParent]();return e}},{key:n,value:function(){return!0}}]),a}(u.XFAObject,i.$getContainedChildren,i.$getSubformParent,i.$isBindable),Et=function(e,t){function r(e){var t;return M(this,r),(t=d(this,r,[v,"subjectDN"])).delimiter=e.delimiter||",",t.id=e.id||"",t.name=e.name||"",t.use=e.use||"",t.usehref=e.usehref||"",t}return y(r,e),P(r,[{key:t,value:function(){this[i.$content]=new Map(this[i.$content].split(this.delimiter).map((function(e){return(e=e.split("=",2))[0]=e[0].trim(),e})))}}]),r}(u.ContentObject,i.$finalize),Pt=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[v,"subjectDNs",!0])).id=e.id||"",r.type=(0,l.getStringOption)(e.type,["optional","required"]),r.use=e.use||"",r.usehref=e.usehref||"",r.subjectDN=new u.XFAObjectArray,r}return y(t,e),P(t)}(u.XFAObject),Rt=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[v,"submit",!0])).embedPDF=(0,l.getInteger)({data:e.embedPDF,defaultValue:0,validate:function(e){return 1===e}}),r.format=(0,l.getStringOption)(e.format,["xdp","formdata","pdf","urlencoded","xfd","xml"]),r.id=e.id||"",r.target=e.target||"",r.textEncoding=(0,l.getKeyword)({data:e.textEncoding?e.textEncoding.toLowerCase():"",defaultValue:"",validate:function(e){return["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}/)}}),r.use=e.use||"",r.usehref=e.usehref||"",r.xdpContent=e.xdpContent||"",r.encrypt=null,r.encryptData=new u.XFAObjectArray,r.signData=new u.XFAObjectArray,r}return y(t,e),P(t)}(u.XFAObject),Nt=function(e,t,r,n,a){function o(e){var t;return M(this,o),(t=d(this,o,[v,"template",!0])).baseProfile=(0,l.getStringOption)(e.baseProfile,["full","interactiveForms"]),t.extras=null,t.subform=new u.XFAObjectArray,t}return y(o,e),P(o,[{key:t,value:function(){0===this.subform.children.length&&(0,h.warn)("XFA - No subforms in template node."),this.subform.children.length>=2&&(0,h.warn)("XFA - Several subforms in template node: please file a bug."),this[i.$tabIndex]=5e3}},{key:r,value:function(){return!0}},{key:n,value:function(e,t){return e.startsWith("#")?[this[i.$ids].get(e.slice(1))]:(0,g.searchNode)(this,t,e,!0,!0)}},{key:a,value:k().mark((function e(){var t,r,n,a,o,s,c,u,f,d,p,g,v,m,y,b,w,x,S=this;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.subform.children.length){e.next=2;break}return e.abrupt("return",l.HTMLResult.success({name:"div",children:[]}));case 2:this[i.$extra]={overflowNode:null,firstUnsplittable:null,currentContentArea:null,currentPageArea:null,noLayoutFailure:!1,pageNumber:1,pagePosition:"first",oddOrEven:"odd",blankOrNotBlank:"nonBlank",paraStack:[]},(n=this.subform.children[0]).pageSet[i.$cleanPage](),a=n.pageSet.pageArea.children,o={name:"div",children:[]},s=null,c=null,u=null,n.breakBefore.children.length>=1?(c=n.breakBefore.children[0],u=c.target):n.subform.children.length>=1&&n.subform.children[0].breakBefore.children.length>=1?(c=n.subform.children[0].breakBefore.children[0],u=c.target):null!==(t=n.break)&&void 0!==t&&t.beforeTarget?(c=n.break,u=c.beforeTarget):n.subform.children.length>=1&&null!==(r=n.subform.children[0].break)&&void 0!==r&&r.beforeTarget&&(c=n.subform.children[0].break,u=c.beforeTarget),c&&(f=this[i.$searchNode](u,c[i.$getParent]()))instanceof ut&&(s=f,c[i.$extra]={}),s||(s=a[0]),s[i.$extra]={numberOfUse:1},(d=s[i.$getParent]())[i.$extra]={numberOfUse:1,pageIndex:d.pageArea.children.indexOf(s),pageSetIndex:0},g=null,v=null,m=!0,y=0,b=0,w=k().mark((function e(){var t,r,a,c,u,l,f,d,w,x,A,C,O,F,I,T;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!m){e.next=4;break}y=0,e.next=8;break;case 4:if(o.children.pop(),3!=++y){e.next=8;break}return(0,h.warn)("XFA - Something goes wrong: please file a bug."),e.abrupt("return",{v:o});case 8:p=null,S[i.$extra].currentPageArea=s,t=s[i.$toHTML]().html,o.children.push(t),g&&(S[i.$extra].noLayoutFailure=!0,t.children.push(g[i.$toHTML](s[i.$extra].space).html),g=null),v&&(S[i.$extra].noLayoutFailure=!0,t.children.push(v[i.$toHTML](s[i.$extra].space).html),v=null),r=s.contentArea.children,a=t.children.filter((function(e){return e.attributes.class.includes("xfaContentarea")})),m=!1,S[i.$extra].firstUnsplittable=null,S[i.$extra].noLayoutFailure=!1,c=function(e){var t,r=n[i.$flushHTML]();r&&(m||(m=(null===(t=r.children)||void 0===t?void 0:t.length)>0),a[e].children.push(r))},u=b,l=r.length;case 20:if(!(u0),a[u].children.push(w.html)):!m&&o.children.length>1&&o.children.pop(),e.abrupt("return",{v:o});case 29:if(!w.isBreak()){e.next=39;break}if(A=w.breakNode,c(u),"auto"!==A.targetType){e.next=34;break}return e.abrupt("continue",40);case 34:A.leader&&(g=(g=S[i.$searchNode](A.leader,A[i.$getParent]()))?g[0]:null),A.trailer&&(v=(v=S[i.$searchNode](A.trailer,A[i.$getParent]()))?v[0]:null),"pageArea"===A.targetType?(p=A[i.$extra].target,u=1/0):A[i.$extra].target?(p=A[i.$extra].target,b=A[i.$extra].index+1,u=1/0):u=A[i.$extra].index,e.next=40;break;case 39:S[i.$extra].overflowNode?(C=S[i.$extra].overflowNode,S[i.$extra].overflowNode=null,O=C[i.$getExtra](),F=O.target,O.addLeader=null!==O.leader,O.addTrailer=null!==O.trailer,c(u),I=u,u=1/0,F instanceof ut?p=F:F instanceof le&&(-1!==(T=r.indexOf(F))?T>I?u=T-1:b=T:(p=F[i.$getParent](),b=p.contentArea.children.indexOf(F)))):c(u);case 40:u++,e.next=20;break;case 43:return S[i.$extra].pageNumber+=1,p&&(p[i.$isUsable]()?p[i.$extra].numberOfUse+=1:p=null),s=p||s[i.$getNextPage](),e.next=48,null;case 48:case"end":return e.stop()}}),e)}));case 15:return e.delegateYield(w(),"t0",16);case 16:if(!(x=e.t0)){e.next=19;break}return e.abrupt("return",x.v);case 19:e.next=15;break;case 21:case"end":return e.stop()}}),e,this)}))}]),o}(u.XFAObject,i.$finalize,i.$isSplittable,i.$searchNode,i.$toPages);t.Template=Nt;var Dt=function(e,t,r,n,s,c,f){function p(e){var t;return M(this,p),(t=d(this,p,[v,"text"])).id=e.id||"",t.maxChars=(0,l.getInteger)({data:e.maxChars,defaultValue:0,validate:function(e){return e>=0}}),t.name=e.name||"",t.rid=e.rid||"",t.use=e.use||"",t.usehref=e.usehref||"",t}return y(p,e),P(p,[{key:t,value:function(){return!0}},{key:r,value:function(e){return e[i.$namespaceId]===o.NamespaceIds.xhtml.id?(this[i.$content]=e,!0):((0,h.warn)("XFA - Invalid content in Text: ".concat(e[i.$nodeName],".")),!1)}},{key:n,value:function(e){this[i.$content]instanceof u.XFAObject||a(m(p.prototype),i.$onText,this).call(this,e)}},{key:s,value:function(){"string"==typeof this[i.$content]&&(this[i.$content]=this[i.$content].replaceAll("\r\n","\n"))}},{key:c,value:function(){return"string"==typeof this[i.$content]?this[i.$content].split(/[\u2029\u2028\n]/).reduce((function(e,t){return t&&e.push(t),e}),[]).join("\n"):this[i.$content][i.$text]()}},{key:f,value:function(e){if("string"==typeof this[i.$content]){var t=B(this[i.$content]).html;return this[i.$content].includes("\u2029")?(t.name="div",t.children=[],this[i.$content].split("\u2029").map((function(e){return e.split(/[\u2028\n]/).reduce((function(e,t){return e.push({name:"span",value:t},{name:"br"}),e}),[])})).forEach((function(e){t.children.push({name:"p",children:e})}))):/[\u2028\n]/.test(this[i.$content])&&(t.name="div",t.children=[],this[i.$content].split(/[\u2028\n]/).forEach((function(e){t.children.push({name:"span",value:e},{name:"br"})}))),l.HTMLResult.success(t)}return this[i.$content][i.$toHTML](e)}}]),p}(u.ContentObject,i.$acceptWhitespace,i.$onChild,i.$onText,i.$finalize,i.$getExtra,i.$toHTML);t.Text=Dt;var Bt=function(e,t){function r(e){var t;return M(this,r),(t=d(this,r,[v,"textEdit",!0])).allowRichText=(0,l.getInteger)({data:e.allowRichText,defaultValue:0,validate:function(e){return 1===e}}),t.hScrollPolicy=(0,l.getStringOption)(e.hScrollPolicy,["auto","off","on"]),t.id=e.id||"",t.multiLine=(0,l.getInteger)({data:e.multiLine,defaultValue:"",validate:function(e){return 0===e||1===e}}),t.use=e.use||"",t.usehref=e.usehref||"",t.vScrollPolicy=(0,l.getStringOption)(e.vScrollPolicy,["auto","off","on"]),t.border=null,t.comb=null,t.extras=null,t.margin=null,t}return y(r,e),P(r,[{key:t,value:function(e){var t,r,n,a=(0,c.toStyle)(this,"border","font","margin"),o=this[i.$getParent]()[i.$getParent]();return""===this.multiLine&&(this.multiLine=o instanceof we?1:0),n=1===this.multiLine?{name:"textarea",attributes:{dataId:(null===(t=o[i.$data])||void 0===t?void 0:t[i.$uid])||o[i.$uid],fieldId:o[i.$uid],class:["xfaTextfield"],style:a,"aria-label":D(o),"aria-required":!1}}:{name:"input",attributes:{type:"text",dataId:(null===(r=o[i.$data])||void 0===r?void 0:r[i.$uid])||o[i.$uid],fieldId:o[i.$uid],class:["xfaTextfield"],style:a,"aria-label":D(o),"aria-required":!1}},E(o)&&(n.attributes["aria-required"]=!0,n.attributes.required=!0),l.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[n]})}}]),r}(u.XFAObject,i.$toHTML),Lt=function(e,t,r){function n(e){var t;return M(this,n),(t=d(this,n,[v,"time"])).id=e.id||"",t.name=e.name||"",t.use=e.use||"",t.usehref=e.usehref||"",t}return y(n,e),P(n,[{key:t,value:function(){var e=this[i.$content].trim();this[i.$content]=e?new Date(e):null}},{key:r,value:function(e){return B(this[i.$content]?this[i.$content].toString():"")}}]),n}(u.StringObject,i.$finalize,i.$toHTML),_t=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[v,"timeStamp"])).id=e.id||"",r.server=e.server||"",r.type=(0,l.getStringOption)(e.type,["optional","required"]),r.use=e.use||"",r.usehref=e.usehref||"",r}return y(t,e),P(t)}(u.XFAObject),jt=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[v,"toolTip"])).id=e.id||"",r.rid=e.rid||"",r.use=e.use||"",r.usehref=e.usehref||"",r}return y(t,e),P(t)}(u.StringObject),Ut=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[v,"traversal",!0])).id=e.id||"",r.use=e.use||"",r.usehref=e.usehref||"",r.extras=null,r.traverse=new u.XFAObjectArray,r}return y(t,e),P(t)}(u.XFAObject),$t=function(e,t){function r(e){var t;return M(this,r),(t=d(this,r,[v,"traverse",!0])).id=e.id||"",t.operation=(0,l.getStringOption)(e.operation,["next","back","down","first","left","right","up"]),t.ref=e.ref||"",t.use=e.use||"",t.usehref=e.usehref||"",t.extras=null,t.script=null,t}return y(r,e),P(r,[{key:"name",get:function(){return this.operation}},{key:t,value:function(){return!1}}]),r}(u.XFAObject,i.$isTransparent),Xt=function(e,t,r){function n(e){var t;return M(this,n),(t=d(this,n,[v,"ui",!0])).id=e.id||"",t.use=e.use||"",t.usehref=e.usehref||"",t.extras=null,t.picture=null,t.barcode=null,t.button=null,t.checkButton=null,t.choiceList=null,t.dateTimeEdit=null,t.defaultUi=null,t.imageEdit=null,t.numericEdit=null,t.passwordEdit=null,t.signature=null,t.textEdit=null,t}return y(n,e),P(n,[{key:t,value:function(){if(void 0===this[i.$extra]){var e,t=x(Object.getOwnPropertyNames(this));try{for(t.s();!(e=t.n()).done;){var r=e.value;if("extras"!==r&&"picture"!==r){var n=this[r];if(n instanceof u.XFAObject)return this[i.$extra]=n,n}}}catch(e){t.e(e)}finally{t.f()}this[i.$extra]=null}return this[i.$extra]}},{key:r,value:function(e){var t=this[i.$getExtra]();return t?t[i.$toHTML](e):l.HTMLResult.EMPTY}}]),n}(u.XFAObject,i.$getExtra,i.$toHTML),Ht=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[v,"validate",!0])).formatTest=(0,l.getStringOption)(e.formatTest,["warning","disabled","error"]),r.id=e.id||"",r.nullTest=(0,l.getStringOption)(e.nullTest,["disabled","error","warning"]),r.scriptTest=(0,l.getStringOption)(e.scriptTest,["error","disabled","warning"]),r.use=e.use||"",r.usehref=e.usehref||"",r.extras=null,r.message=null,r.picture=null,r.script=null,r}return y(t,e),P(t)}(u.XFAObject),qt=function(e,t,r,n){function a(e){var t;return M(this,a),(t=d(this,a,[v,"value",!0])).id=e.id||"",t.override=(0,l.getInteger)({data:e.override,defaultValue:0,validate:function(e){return 1===e}}),t.relevant=(0,l.getRelevant)(e.relevant),t.use=e.use||"",t.usehref=e.usehref||"",t.arc=null,t.boolean=null,t.date=null,t.dateTime=null,t.decimal=null,t.exData=null,t.float=null,t.image=null,t.integer=null,t.line=null,t.rectangle=null,t.text=null,t.time=null,t}return y(a,e),P(a,[{key:t,value:function(e){var t,r=this[i.$getParent]();if(r instanceof De&&null!==(t=r.ui)&&void 0!==t&&t.imageEdit)return this.image||(this.image=new He({}),this[i.$appendChild](this.image)),void(this.image[i.$content]=e[i.$content]);var n=e[i.$nodeName];if(null===this[n]){var a,o=x(Object.getOwnPropertyNames(this));try{for(o.s();!(a=o.n()).done;){var s=a.value,c=this[s];c instanceof u.XFAObject&&(this[s]=null,this[i.$removeChild](c))}}catch(e){o.e(e)}finally{o.f()}this[e[i.$nodeName]]=e,this[i.$appendChild](e)}else this[n][i.$content]=e[i.$content]}},{key:r,value:function(){if(this.exData)return"string"==typeof this.exData[i.$content]?this.exData[i.$content].trim():this.exData[i.$content][i.$text]().trim();var e,t=x(Object.getOwnPropertyNames(this));try{for(t.s();!(e=t.n()).done;){var r=e.value;if("image"!==r){var n=this[r];if(n instanceof u.XFAObject)return(n[i.$content]||"").toString().trim()}}}catch(e){t.e(e)}finally{t.f()}return null}},{key:n,value:function(e){var t,r=x(Object.getOwnPropertyNames(this));try{for(r.s();!(t=r.n()).done;){var n=this[t.value];if(n instanceof u.XFAObject)return n[i.$toHTML](e)}}catch(e){r.e(e)}finally{r.f()}return l.HTMLResult.EMPTY}}]),a}(u.XFAObject,i.$setValue,i.$text,i.$toHTML);t.Value=qt;var zt=function(e,t){function r(e){var t;return M(this,r),(t=d(this,r,[v,"variables",!0])).id=e.id||"",t.use=e.use||"",t.usehref=e.usehref||"",t.boolean=new u.XFAObjectArray,t.date=new u.XFAObjectArray,t.dateTime=new u.XFAObjectArray,t.decimal=new u.XFAObjectArray,t.exData=new u.XFAObjectArray,t.float=new u.XFAObjectArray,t.image=new u.XFAObjectArray,t.integer=new u.XFAObjectArray,t.manifest=new u.XFAObjectArray,t.script=new u.XFAObjectArray,t.text=new u.XFAObjectArray,t.time=new u.XFAObjectArray,t}return y(r,e),P(r,[{key:t,value:function(){return!0}}]),r}(u.XFAObject,i.$isTransparent),Gt=function(e){function t(){M(this,t)}return P(t,null,[{key:e,value:function(e,r){if(t.hasOwnProperty(e)){var n=t[e](r);return n[i.$setSetAttributes](r),n}}},{key:"appearanceFilter",value:function(e){return new $(e)}},{key:"arc",value:function(e){return new X(e)}},{key:"area",value:function(e){return new H(e)}},{key:"assist",value:function(e){return new q(e)}},{key:"barcode",value:function(e){return new z(e)}},{key:"bind",value:function(e){return new G(e)}},{key:"bindItems",value:function(e){return new W(e)}},{key:"bookend",value:function(e){return new V(e)}},{key:"boolean",value:function(e){return new K(e)}},{key:"border",value:function(e){return new Y(e)}},{key:"break",value:function(e){return new J(e)}},{key:"breakAfter",value:function(e){return new Z(e)}},{key:"breakBefore",value:function(e){return new Q(e)}},{key:"button",value:function(e){return new ee(e)}},{key:"calculate",value:function(e){return new te(e)}},{key:"caption",value:function(e){return new re(e)}},{key:"certificate",value:function(e){return new ne(e)}},{key:"certificates",value:function(e){return new ae(e)}},{key:"checkButton",value:function(e){return new ie(e)}},{key:"choiceList",value:function(e){return new oe(e)}},{key:"color",value:function(e){return new se(e)}},{key:"comb",value:function(e){return new ce(e)}},{key:"connect",value:function(e){return new ue(e)}},{key:"contentArea",value:function(e){return new le(e)}},{key:"corner",value:function(e){return new he(e)}},{key:"date",value:function(e){return new fe(e)}},{key:"dateTime",value:function(e){return new de(e)}},{key:"dateTimeEdit",value:function(e){return new pe(e)}},{key:"decimal",value:function(e){return new ge(e)}},{key:"defaultUi",value:function(e){return new ve(e)}},{key:"desc",value:function(e){return new me(e)}},{key:"digestMethod",value:function(e){return new ye(e)}},{key:"digestMethods",value:function(e){return new be(e)}},{key:"draw",value:function(e){return new we(e)}},{key:"edge",value:function(e){return new ke(e)}},{key:"encoding",value:function(e){return new xe(e)}},{key:"encodings",value:function(e){return new Se(e)}},{key:"encrypt",value:function(e){return new Ae(e)}},{key:"encryptData",value:function(e){return new Ce(e)}},{key:"encryption",value:function(e){return new Oe(e)}},{key:"encryptionMethod",value:function(e){return new Fe(e)}},{key:"encryptionMethods",value:function(e){return new Ie(e)}},{key:"event",value:function(e){return new Te(e)}},{key:"exData",value:function(e){return new Me(e)}},{key:"exObject",value:function(e){return new Ee(e)}},{key:"exclGroup",value:function(e){return new Pe(e)}},{key:"execute",value:function(e){return new Re(e)}},{key:"extras",value:function(e){return new Ne(e)}},{key:"field",value:function(e){return new De(e)}},{key:"fill",value:function(e){return new Be(e)}},{key:"filter",value:function(e){return new Le(e)}},{key:"float",value:function(e){return new _e(e)}},{key:"font",value:function(e){return new je(e)}},{key:"format",value:function(e){return new Ue(e)}},{key:"handler",value:function(e){return new $e(e)}},{key:"hyphenation",value:function(e){return new Xe(e)}},{key:"image",value:function(e){return new He(e)}},{key:"imageEdit",value:function(e){return new qe(e)}},{key:"integer",value:function(e){return new ze(e)}},{key:"issuers",value:function(e){return new Ge(e)}},{key:"items",value:function(e){return new We(e)}},{key:"keep",value:function(e){return new Ve(e)}},{key:"keyUsage",value:function(e){return new Ke(e)}},{key:"line",value:function(e){return new Ye(e)}},{key:"linear",value:function(e){return new Je(e)}},{key:"lockDocument",value:function(e){return new Ze(e)}},{key:"manifest",value:function(e){return new Qe(e)}},{key:"margin",value:function(e){return new et(e)}},{key:"mdp",value:function(e){return new tt(e)}},{key:"medium",value:function(e){return new rt(e)}},{key:"message",value:function(e){return new nt(e)}},{key:"numericEdit",value:function(e){return new at(e)}},{key:"occur",value:function(e){return new it(e)}},{key:"oid",value:function(e){return new ot(e)}},{key:"oids",value:function(e){return new st(e)}},{key:"overflow",value:function(e){return new ct(e)}},{key:"pageArea",value:function(e){return new ut(e)}},{key:"pageSet",value:function(e){return new lt(e)}},{key:"para",value:function(e){return new ht(e)}},{key:"passwordEdit",value:function(e){return new ft(e)}},{key:"pattern",value:function(e){return new dt(e)}},{key:"picture",value:function(e){return new pt(e)}},{key:"proto",value:function(e){return new gt(e)}},{key:"radial",value:function(e){return new vt(e)}},{key:"reason",value:function(e){return new mt(e)}},{key:"reasons",value:function(e){return new yt(e)}},{key:"rectangle",value:function(e){return new bt(e)}},{key:"ref",value:function(e){return new wt(e)}},{key:"script",value:function(e){return new kt(e)}},{key:"setProperty",value:function(e){return new xt(e)}},{key:"signData",value:function(e){return new St(e)}},{key:"signature",value:function(e){return new At(e)}},{key:"signing",value:function(e){return new Ct(e)}},{key:"solid",value:function(e){return new Ot(e)}},{key:"speak",value:function(e){return new Ft(e)}},{key:"stipple",value:function(e){return new It(e)}},{key:"subform",value:function(e){return new Tt(e)}},{key:"subformSet",value:function(e){return new Mt(e)}},{key:"subjectDN",value:function(e){return new Et(e)}},{key:"subjectDNs",value:function(e){return new Pt(e)}},{key:"submit",value:function(e){return new Rt(e)}},{key:"template",value:function(e){return new Nt(e)}},{key:"text",value:function(e){return new Dt(e)}},{key:"textEdit",value:function(e){return new Bt(e)}},{key:"time",value:function(e){return new Lt(e)}},{key:"timeStamp",value:function(e){return new _t(e)}},{key:"toolTip",value:function(e){return new jt(e)}},{key:"traversal",value:function(e){return new Ut(e)}},{key:"traverse",value:function(e){return new $t(e)}},{key:"ui",value:function(e){return new Xt(e)}},{key:"validate",value:function(e){return new Ht(e)}},{key:"value",value:function(e){return new qt(e)}},{key:"variables",value:function(e){return new zt(e)}}]),t}(o.$buildXFAObject);t.TemplateNamespace=Gt},function(e,t,r){var n=r(3),a=r(4),i=r(24),o=r(11),s=r(45).f,c=r(39),u=r(232),l=r(75),h=r(76),f=r(233),d=r(82),p=r(6),g=r(36),v="DOMException",m=i("Error"),y=i(v),b=function(){u(this,w);var e=arguments.length,t=h(e<1?void 0:arguments[0]),r=h(e<2?void 0:arguments[1],"Error"),n=new y(t,r),a=m(t);return a.name=v,s(n,"stack",o(1,d(a.stack,1))),l(n,this,b),n},w=b.prototype=y.prototype,k="stack"in m(v),x="stack"in new y(1,2),S=y&&p&&Object.getOwnPropertyDescriptor(a,v),A=!(!S||S.writable&&S.configurable),C=k&&!A&&!x;n({global:!0,constructor:!0,forced:g||C},{DOMException:C?b:y});var O=i(v),F=O.prototype;if(F.constructor!==O)for(var I in g||s(F,"constructor",o(1,O)),f)if(c(f,I)){var T=f[I],M=T.s;c(O,M)||s(O,M,o(6,T.c))}},function(e,t,r){var n=r(25),a=TypeError;e.exports=function(e,t){if(n(t,e))return e;throw a("Incorrect invocation")}},function(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}}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.NamespaceIds=t.$buildXFAObject=void 0;var r=Symbol();t.$buildXFAObject=r,t.NamespaceIds={config:{id:0,check:function(e){return e.startsWith("http://www.xfa.org/schema/xci/")}},connectionSet:{id:1,check:function(e){return e.startsWith("http://www.xfa.org/schema/xfa-connection-set/")}},datasets:{id:2,check:function(e){return e.startsWith("http://www.xfa.org/schema/xfa-data/")}},form:{id:3,check:function(e){return e.startsWith("http://www.xfa.org/schema/xfa-form/")}},localeSet:{id:4,check:function(e){return e.startsWith("http://www.xfa.org/schema/xfa-locale-set/")}},pdf:{id:5,check:function(e){return"http://ns.adobe.com/xdp/pdf/"===e}},signature:{id:6,check:function(e){return"http://www.w3.org/2000/09/xmldsig#"===e}},sourceSet:{id:7,check:function(e){return e.startsWith("http://www.xfa.org/schema/xfa-source-set/")}},stylesheet:{id:8,check:function(e){return"http://www.w3.org/1999/XSL/Transform"===e}},template:{id:9,check:function(e){return e.startsWith("http://www.xfa.org/schema/xfa-template/")}},xdc:{id:10,check:function(e){return e.startsWith("http://www.xfa.org/schema/xdc/")}},xdp:{id:11,check:function(e){return"http://ns.adobe.com/xdp/"===e}},xfdf:{id:12,check:function(e){return"http://ns.adobe.com/xfdf/"===e}},xhtml:{id:13,check:function(e){return"http://www.w3.org/1999/xhtml"===e}},xmpmeta:{id:14,check:function(e){return"http://ns.adobe.com/xmpmeta/"===e}}}},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.addHTML=function(e,t,r){var o=e[n.$extra],s=o.availableSpace,c=S(r,4),u=c[0],l=c[1],h=c[2],f=c[3];switch(e.layout){case"position":o.width=Math.max(o.width,u+h),o.height=Math.max(o.height,l+f),o.children.push(t);break;case"lr-tb":case"rl-tb":o.line&&1!==o.attempt||(o.line=i(e,[]),o.children.push(o.line),o.numberInLine=0),o.numberInLine+=1,o.line.children.push(t),0===o.attempt?(o.currentWidth+=h,o.height=Math.max(o.height,o.prevHeight+f)):(o.currentWidth=h,o.prevHeight=o.height,o.height+=f,o.attempt=0),o.width=Math.max(o.width,o.currentWidth);break;case"rl-row":case"row":o.children.push(t),o.width+=h,o.height=Math.max(o.height,f);var d,p=(0,a.measureToString)(o.height),g=x(o.children);try{for(g.s();!(d=g.n()).done;)d.value.attributes.style.height=p}catch(e){g.e(e)}finally{g.f()}break;case"table":case"tb":o.width=Math.min(s.width,Math.max(o.width,h)),o.height+=f,o.children.push(t)}},t.checkDimensions=function(e,t){var r;if(null===e[n.$getTemplateRoot]()[n.$extra].firstUnsplittable)return!0;if(0===e.w||0===e.h)return!0;var a=e[n.$getSubformParent](),i=(null===(r=a[n.$extra])||void 0===r?void 0:r.attempt)||0,o=function(e){var t,r,n=""===e.w?NaN:e.w,a=""===e.h?NaN:e.h,i=0,o=0;switch(e.anchorType||""){case"bottomCenter":i=n/2,o=a;break;case"bottomLeft":i=0,o=a;break;case"bottomRight":i=n,o=a;break;case"middleCenter":i=n/2,o=a/2;break;case"middleLeft":i=0,o=a/2;break;case"middleRight":i=n,o=a/2;break;case"topCenter":i=n/2,o=0;break;case"topRight":i=n,o=0}switch(e.rotate||0){case 0:t=-i,r=-o;break;case 90:t=-o,r=i;var s=[a,-n];n=s[0],a=s[1];break;case 180:t=i,r=o;var c=[-n,-a];n=c[0],a=c[1];break;case 270:t=o,r=-i;var u=[-a,n];n=u[0],a=u[1]}return[e.x+t+Math.min(0,n),e.y+r+Math.min(0,a),Math.abs(n),Math.abs(a)]}(e),s=S(o,4),c=s[1],u=s[2],l=s[3];switch(a.layout){case"lr-tb":case"rl-tb":return 0===i?e[n.$getTemplateRoot]()[n.$extra].noLayoutFailure?""!==e.w?Math.round(u-t.width)<=2:t.width>2:!(""!==e.h&&Math.round(l-t.height)>2)&&(""!==e.w?Math.round(u-t.width)<=2||0===a[n.$extra].numberInLine&&t.height>2:t.width>2):!!e[n.$getTemplateRoot]()[n.$extra].noLayoutFailure||!(""!==e.h&&Math.round(l-t.height)>2)&&(""===e.w||Math.round(u-t.width)<=2||!a[n.$isThereMoreWidth]())&&t.height>2;case"table":case"tb":return!!e[n.$getTemplateRoot]()[n.$extra].noLayoutFailure||(""===e.h||e[n.$isSplittable]()?(""===e.w||Math.round(u-t.width)<=2||!a[n.$isThereMoreWidth]())&&t.height>2:Math.round(l-t.height)<=2);case"position":return!!e[n.$getTemplateRoot]()[n.$extra].noLayoutFailure||""===e.h||Math.round(l+c-t.height)<=2||l+c>e[n.$getTemplateRoot]()[n.$extra].currentContentArea.h;case"rl-row":case"row":return!!e[n.$getTemplateRoot]()[n.$extra].noLayoutFailure||""===e.h||Math.round(l-t.height)<=2;default:return!0}},t.flushHTML=function(e){if(!e[n.$extra])return null;var t={name:"div",attributes:e[n.$extra].attributes,children:e[n.$extra].children};if(e[n.$extra].failingNode){var r=e[n.$extra].failingNode[n.$flushHTML]();r&&(e.layout.endsWith("-tb")?t.children.push(i(e,[r])):t.children.push(r))}return 0===t.children.length?null:t},t.getAvailableSpace=function(e){var t=e[n.$extra].availableSpace,r=e.margin?e.margin.topInset+e.margin.bottomInset:0,a=e.margin?e.margin.leftInset+e.margin.rightInset:0;switch(e.layout){case"lr-tb":case"rl-tb":return 0===e[n.$extra].attempt?{width:t.width-a-e[n.$extra].currentWidth,height:t.height-r-e[n.$extra].prevHeight}:{width:t.width-a,height:t.height-r-e[n.$extra].height};case"rl-row":case"row":return{width:e[n.$extra].columnWidths.slice(e[n.$extra].currentColumn).reduce((function(e,t){return e+t})),height:t.height-a};case"table":case"tb":return{width:t.width-a,height:t.height-r-e[n.$extra].height};default:return t}},r(139);var n=r(228),a=r(236);function i(e,t){return{name:"div",attributes:{class:["lr-tb"===e.layout?"xfaLr":"xfaRl"]},children:t}}},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.computeBbox=function(e,t,r){var a;if(""!==e.w&&""!==e.h)a=[e.x,e.y,e.w,e.h];else{if(!r)return null;var i=e.w;if(""===i){if(0===e.maxW){var o=e[n.$getSubformParent]();i="position"===o.layout&&""!==o.w?0:e.minW}else i=Math.min(e.maxW,r.width);t.attributes.style.width=u(i)}var s=e.h;if(""===s){if(0===e.maxH){var c=e[n.$getSubformParent]();s="position"===c.layout&&""!==c.h?0:e.minH}else s=Math.min(e.maxH,r.height);t.attributes.style.height=u(s)}a=[e.x,e.y,i,s]}return a},t.createWrapper=function(e,t){var r=t.attributes,a=r.style,i={name:"div",attributes:{class:["xfaWrapper"],style:Object.create(null)},children:[]};if(r.class.push("xfaWrapped"),e.border){var o,s,c=e.border[n.$extra],u=c.widths,l=c.insets,h=l[0],d=l[3],p=l[0]+l[2],g=l[1]+l[3];switch(e.border.hand){case"even":h-=u[0]/2,d-=u[3]/2,o="calc(100% + ".concat((u[1]+u[3])/2-g,"px)"),s="calc(100% + ".concat((u[0]+u[2])/2-p,"px)");break;case"left":h-=u[0],d-=u[3],o="calc(100% + ".concat(u[1]+u[3]-g,"px)"),s="calc(100% + ".concat(u[0]+u[2]-p,"px)");break;case"right":o=g?"calc(100% - ".concat(g,"px)"):"100%",s=p?"calc(100% - ".concat(p,"px)"):"100%"}var v=["xfaBorder"];f(e.border)&&v.push("xfaPrintOnly");for(var m={name:"div",attributes:{class:v,style:{top:"".concat(h,"px"),left:"".concat(d,"px"),width:o,height:s}},children:[]},y=0,b=["border","borderWidth","borderColor","borderRadius","borderStyle"];y=0)){var r="padding"+("left"==("right"===e.textAlign?"right":"left")?"Left":"Right"),n=(0,i.getMeasurement)(e[r],"0px");e[r]=n-t+"px"}},t.fixURL=function(e){var t=(0,a.createValidAbsoluteUrl)(e,null,{addDefaultProtocol:!0,tryConvertEncoding:!0});return t?t.href:null},t.isPrintOnly=f,t.layoutClass=function(e){switch(e.layout){case"position":default:return"xfaPosition";case"lr-tb":return"xfaLrTb";case"rl-row":return"xfaRlRow";case"rl-tb":return"xfaRlTb";case"row":return"xfaRow";case"table":return"xfaTable";case"tb":return"xfaTb"}},t.layoutNode=function(e,t){var r=null,a=null,i=!1;if((!e.w||!e.h)&&e.value){var o=0,s=0;e.margin&&(o=e.margin.leftInset+e.margin.rightInset,s=e.margin.topInset+e.margin.bottomInset);var c=null,u=null;e.para&&(u=Object.create(null),c=""===e.para.lineHeight?null:e.para.lineHeight,u.top=""===e.para.spaceAbove?0:e.para.spaceAbove,u.bottom=""===e.para.spaceBelow?0:e.para.spaceBelow,u.left=""===e.para.marginLeft?0:e.para.marginLeft,u.right=""===e.para.marginRight?0:e.para.marginRight);var l=e.font;if(!l)for(var f=e[n.$getTemplateRoot](),d=e[n.$getParent]();d&&d!==f;){if(d.font){l=d.font;break}d=d[n.$getParent]()}var p=(e.w||t.width)-o,g=e[n.$globalData].fontFinder;if(e.value.exData&&e.value.exData[n.$content]&&"text/html"===e.value.exData.contentType){var v=h(e.value.exData[n.$content],l,u,c,g,p);a=v.width,r=v.height,i=v.isBroken}else{var m=e.value[n.$text]();if(m){var y=h(m,l,u,c,g,p);a=y.width,r=y.height,i=y.isBroken}}null===a||e.w||(a+=o),null===r||e.h||(r+=s)}return{w:a,h:r,isBroken:i}},t.measureToString=u,t.setAccess=function(e,t){switch(e.access){case"nonInteractive":t.push("xfaNonInteractive");break;case"readOnly":t.push("xfaReadOnly");break;case"protected":t.push("xfaDisabled")}},t.setFontFamily=function(e,t,r,n){if(r){var a=(0,i.stripQuotes)(e.typeface);n.fontFamily='"'.concat(a,'"');var s=r.find(a);if(s){var c=s.regular.cssFontInfo.fontFamily;c!==a&&(n.fontFamily='"'.concat(c,'"'));var u=d(t);if(u&&""!==u.lineHeight)return;if(n.lineHeight)return;var l=(0,o.selectFont)(e,s);l&&(n.lineHeight=Math.max(1.2,l.lineHeight))}}else delete n.fontFamily},t.setMinMaxDimensions=function(e,t){"position"===e[n.$getSubformParent]().layout&&(e.minW>0&&(t.minWidth=u(e.minW)),e.maxW>0&&(t.maxWidth=u(e.maxW)),e.minH>0&&(t.minHeight=u(e.minH)),e.maxH>0&&(t.maxHeight=u(e.maxH)))},t.setPara=function(e,t,r){var a;if(null!==(a=r.attributes.class)&&void 0!==a&&a.includes("xfaRich")){t&&(""===e.h&&(t.height="auto"),""===e.w&&(t.width="auto"));var i=d(e);if(i){var o=r.attributes.style;switch(o.display="flex",o.flexDirection="column",i.vAlign){case"top":o.justifyContent="start";break;case"bottom":o.justifyContent="end";break;case"middle":o.justifyContent="center"}for(var s=i[n.$toStyle](),c=0,u=Object.entries(s);c1?r-1:0),o=1;o0&&!e.relevant[0].excluded&&"print"===e.relevant[0].viewname}function d(e){var t=e[n.$getTemplateRoot]()[n.$extra].paraStack;return t.length?t.at(-1):null}},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.HTMLResult=void 0,t.getBBox=function(e){var t=-1;if(!e)return{x:t,y:t,width:t,height:t};var r=e.trim().split(/\s*,\s*/).map((function(e){return s(e,"-1")}));if(r.length<4||r[2]<0||r[3]<0)return{x:t,y:t,width:t,height:t};var n=S(r,4);return{x:n[0],y:n[1],width:n[2],height:n[3]}},t.getColor=function(e){var t=S(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0,0,0],3),r=t[0],n=t[1],a=t[2];if(!e)return{r,g:n,b:a};var i=e.trim().split(/\s*,\s*/).map((function(e){return Math.min(Math.max(0,parseInt(e.trim(),10)),255)})).map((function(e){return isNaN(e)?0:e}));if(i.length<3)return{r,g:n,b:a};var o=S(i,3);return{r:r=o[0],g:n=o[1],b:a=o[2]}},t.getFloat=function(e){var t=e.data,r=e.defaultValue,n=e.validate;if(!t)return r;t=t.trim();var a=parseFloat(t);return!isNaN(a)&&n(a)?a:r},t.getInteger=function(e){var t=e.data,r=e.defaultValue,n=e.validate;if(!t)return r;t=t.trim();var a=parseInt(t,10);return!isNaN(a)&&n(a)?a:r},t.getKeyword=o,t.getMeasurement=s,t.getRatio=function(e){if(!e)return{num:1,den:1};var t=e.trim().split(/\s*:\s*/).map((function(e){return parseFloat(e)})).filter((function(e){return!isNaN(e)}));if(1===t.length&&t.push(1),0===t.length)return{num:1,den:1};var r=S(t,2);return{num:r[0],den:r[1]}},t.getRelevant=function(e){return e?e.trim().split(/\s+/).map((function(e){return{excluded:"-"===e[0],viewname:e.substring(1)}})):[]},t.getStringOption=function(e,t){return o({data:e,defaultValue:t[0],validate:function(e){return t.includes(e)}})},t.stripQuotes=function(e){return e.startsWith("'")||e.startsWith('"')?e.slice(1,-1):e},r(139);var n=r(144),a={pt:function(e){return e},cm:function(e){return e/2.54*72},mm:function(e){return e/25.4*72},in:function(e){return 72*e},px:function(e){return e}},i=/([+-]?\d+\.?\d*)(.*)/;function o(e){var t=e.data,r=e.defaultValue,n=e.validate;return t&&n(t=t.trim())?t:r}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0";if(t||(t="0"),!e)return s(t);var r=e.trim().match(i);if(!r)return s(t);var n=S(r,3),o=n[1],c=n[2],u=parseFloat(o);if(isNaN(u))return s(t);if(0===u)return 0;var l=a[c];return l?l(u):u}var c=function(){function e(t,r,n,a){M(this,e),this.success=t,this.html=r,this.bbox=n,this.breakNode=a}return P(e,[{key:"isBreak",value:function(){return!!this.breakNode}}],[{key:"FAILURE",get:function(){return(0,n.shadow)(this,"FAILURE",new e(!1,null,null,null))}},{key:"EMPTY",get:function(){return(0,n.shadow)(this,"EMPTY",new e(!0,null,null,null))}},{key:"breakNode",value:function(t){return new e(!1,null,null,t)}},{key:"success",value:function(t){return new e(!0,t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,null)}}]),e}();t.HTMLResult=c},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.FontFinder=void 0,t.getMetrics=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=null;if(e){var i=(0,a.stripQuotes)(e.typeface),s=e[n.$globalData].fontFinder.find(i);r=o(e,s)}if(!r)return{lineHeight:12,lineGap:2,lineNoGap:10};var c=e.size||10,u=r.lineHeight?Math.max(t?0:1.2,r.lineHeight):1.2,l=void 0===r.lineGap?.2:r.lineGap;return{lineHeight:u*c,lineGap:l*c,lineNoGap:Math.max(1,u-l)*c}},t.selectFont=o,r(116),r(126),r(128),r(131),r(133),r(135),r(137),r(139);var n=r(228),a=r(237),i=r(144);function o(e,t){return"italic"===e.posture?"bold"===e.weight?t.bolditalic:t.italic:"bold"===e.weight?t.bold:t.regular}t.FontFinder=function(){function e(t){M(this,e),this.fonts=new Map,this.cache=new Map,this.warned=new Set,this.defaultFont=null,this.add(t)}return P(e,[{key:"add",value:function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=x(e);try{for(n.s();!(t=n.n()).done;){var a=t.value;this.addPdfFont(a)}}catch(e){n.e(e)}finally{n.f()}var i,o=x(this.fonts.values());try{for(o.s();!(i=o.n()).done;){var s=i.value;s.regular||(s.regular=s.italic||s.bold||s.bolditalic)}}catch(e){o.e(e)}finally{o.f()}if(r&&0!==r.size){var c,u=this.fonts.get("PdfJS-Fallback-PdfJS-XFA"),l=x(r);try{for(l.s();!(c=l.n()).done;){var h=c.value;this.fonts.set(h,u)}}catch(e){l.e(e)}finally{l.f()}}}},{key:"addPdfFont",value:function(e){var t=e.cssFontInfo,r=t.fontFamily,n=this.fonts.get(r);n||(n=Object.create(null),this.fonts.set(r,n),this.defaultFont||(this.defaultFont=n));var a,i,o,s="",c=parseFloat(t.fontWeight);0!==parseFloat(t.italicAngle)?s=c>=700?"bolditalic":"italic":c>=700&&(s="bold"),s||((e.name.includes("Bold")||(null===(a=e.psName)||void 0===a?void 0:a.includes("Bold")))&&(s="bold"),(e.name.includes("Italic")||e.name.endsWith("It")||(null===(i=e.psName)||void 0===i?void 0:i.includes("Italic"))||(null===(o=e.psName)||void 0===o?void 0:o.endsWith("It")))&&(s+="italic")),s||(s="regular"),n[s]=e}},{key:"getDefault",value:function(){return this.defaultFont}},{key:"find",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=this.fonts.get(e)||this.cache.get(e);if(r)return r;var n=/,|-|_| |bolditalic|bold|italic|regular|it/gi,a=e.replaceAll(n,"");if(r=this.fonts.get(a))return this.cache.set(e,r),r;a=a.toLowerCase();var o,s=[],c=x(this.fonts.entries());try{for(c.s();!(o=c.n()).done;){var u=S(o.value,2),l=u[0],h=u[1];l.replaceAll(n,"").toLowerCase().startsWith(a)&&s.push(h)}}catch(e){c.e(e)}finally{c.f()}if(0===s.length){var f,d=x(this.fonts.entries());try{for(d.s();!(f=d.n()).done;){var p,g=S(f.value,2)[1];(null===(p=g.regular.name)||void 0===p?void 0:p.replaceAll(n,"").toLowerCase().startsWith(a))&&s.push(g)}}catch(e){d.e(e)}finally{d.f()}}if(0===s.length){a=a.replaceAll(/psmt|mt/gi,"");var v,m=x(this.fonts.entries());try{for(m.s();!(v=m.n()).done;){var y=S(v.value,2),b=y[0],w=y[1];b.replaceAll(n,"").toLowerCase().startsWith(a)&&s.push(w)}}catch(e){m.e(e)}finally{m.f()}}if(0===s.length){var k,A=x(this.fonts.values());try{for(A.s();!(k=A.n()).done;){var C,O=k.value;(null===(C=O.regular.name)||void 0===C?void 0:C.replaceAll(n,"").toLowerCase().startsWith(a))&&s.push(O)}}catch(e){A.e(e)}finally{A.f()}}return s.length>=1?(1!==s.length&&t&&(0,i.warn)("XFA - Too many choices to guess the correct font: ".concat(e)),this.cache.set(e,s[0]),s[0]):(t&&!this.warned.has(e)&&(this.warned.add(e),(0,i.warn)("XFA - Cannot find the font: ".concat(e))),null)}}]),e}()},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.TextMeasure=void 0,r(139);var n=r(238),a=function(){function e(t,r,a,i){if(M(this,e),this.lineHeight=a,this.paraMargin=r||{top:0,bottom:0,left:0,right:0},!t){var o=S(this.defaultFont(i),2);return this.pdfFont=o[0],void(this.xfaFont=o[1])}this.xfaFont={typeface:t.typeface,posture:t.posture,weight:t.weight,size:t.size,letterSpacing:t.letterSpacing};var s=i.find(t.typeface);if(s){var c;this.pdfFont=(0,n.selectFont)(t,s),this.pdfFont||(c=S(this.defaultFont(i),2),this.pdfFont=c[0],this.xfaFont=c[1])}else{var u=S(this.defaultFont(i),2);this.pdfFont=u[0],this.xfaFont=u[1]}}return P(e,[{key:"defaultFont",value:function(e){var t=e.find("Helvetica",!1)||e.find("Myriad Pro",!1)||e.find("Arial",!1)||e.getDefault();if(null!=t&&t.regular){var r=t.regular;return[r,{typeface:r.cssFontInfo.fontFamily,posture:"normal",weight:"normal",size:10,letterSpacing:0}]}return[null,{typeface:"Courier",posture:"normal",weight:"normal",size:10,letterSpacing:0}]}}]),e}(),i=function(){function e(t,r,n,i){M(this,e),this.fontFinder=i,this.stack=[new a(t,r,n,i)]}return P(e,[{key:"pushData",value:function(e,t,r){for(var n=this.stack.at(-1),i=0,o=["typeface","posture","weight","size","letterSpacing"];ie?(n=Math.max(n,i),i=0,a+=o,o=v,t=-1,r=0,s=!0,c=!1):(o=Math.max(v,o),r=i,i+=f,t=u):i+f>e?(a+=o,o=v,-1!==t?(u=t,n=Math.max(n,r),i=0,t=-1,r=0):(n=Math.max(n,i),i=f),s=!0,c=!1):(i+=f,o=Math.max(v,o))}return{width:1.02*(n=Math.max(n,i)),height:a+=o+this.extraHeight,isBroken:s}}}]),e}()},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.XmlObject=t.XFAObjectArray=t.XFAObject=t.XFAAttribute=t.StringObject=t.OptionObject=t.Option10=t.Option01=t.IntegerObject=t.ContentObject=void 0,r(139),r(116),r(126),r(128),r(131),r(133),r(135),r(137);var n=r(228),i=r(237),o=r(144),s=r(149),c=r(234),u=r(241),l=Symbol(),h=Symbol(),p=Symbol(),v=Symbol("_children"),b=Symbol(),w=Symbol(),A=Symbol(),C=Symbol(),O=Symbol(),F=Symbol(),I=Symbol(),T=Symbol(),E=Symbol(),R=Symbol("parent"),D=Symbol(),B=Symbol(),L=Symbol(),_=0,j=c.NamespaceIds.datasets.id,U=function(e,t,r,a,s,h,d,g,m,y,w,S,A,E,L,U,q,z,G,W,V,K,Y,J,Z,Q,ee,te,re,ne,ae,ie,oe,se,ce,ue,le,he,fe,de,pe,ge,ve){function me(e,t){M(this,me);var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this[n.$namespaceId]=e,this[n.$nodeName]=t,this[I]=r,this[R]=null,this[v]=[],this[n.$uid]="".concat(t).concat(_++),this[n.$globalData]=null}return P(me,[{key:"isXFAObject",get:function(){return!0}},{key:"isXFAObjectArray",get:function(){return!1}},{key:"createNodes",value:function(e){var t,r=this,a=null,i=x(e);try{for(i.s();!(t=i.n()).done;){for(var o=t.value,s=o.name,c=o.index,u=0,l=isFinite(c)?c:0;u<=l;u++){var h=r[n.$namespaceId]===j?-1:r[n.$namespaceId];a=new H(h,s),r[n.$appendChild](a)}r=a}}catch(e){i.e(e)}finally{i.f()}return a}},{key:e,value:function(e){if(!this[I]||!this[n.$onChildCheck](e))return!1;var t=e[n.$nodeName],r=this[t];if(!(r instanceof $))return null!==r&&this[n.$removeChild](r),this[t]=e,this[n.$appendChild](e),!0;if(r.push(e))return this[n.$appendChild](e),!0;var a="";return this.id?a=" (id: ".concat(this.id,")"):this.name&&(a=" (name: ".concat(this.name," ").concat(this.h.value,")")),(0,o.warn)('XFA - node "'.concat(this[n.$nodeName],'"').concat(a,' has already enough "').concat(t,'"!')),!1}},{key:t,value:function(e){return this.hasOwnProperty(e[n.$nodeName])&&e[n.$namespaceId]===this[n.$namespaceId]}},{key:r,value:function(){return!1}},{key:a,value:function(){return!1}},{key:s,value:function(){return!1}},{key:h,value:function(){return!1}},{key:d,value:function(){this.para&&this[n.$getTemplateRoot]()[n.$extra].paraStack.pop()}},{key:g,value:function(){this[n.$getTemplateRoot]()[n.$extra].paraStack.push(this.para)}},{key:m,value:function(e){this.id&&this[n.$namespaceId]===c.NamespaceIds.template.id&&e.set(this.id,this)}},{key:y,value:function(){return this[n.$globalData].template}},{key:w,value:function(){return!1}},{key:S,value:function(){return!1}},{key:A,value:function(e){e[R]=this,this[v].push(e),!e[n.$globalData]&&this[n.$globalData]&&(e[n.$globalData]=this[n.$globalData])}},{key:E,value:function(e){var t=this[v].indexOf(e);this[v].splice(t,1)}},{key:L,value:function(){return this.hasOwnProperty("value")}},{key:U,value:function(e){}},{key:q,value:function(e){}},{key:z,value:function(){}},{key:G,value:function(e){delete this[I],this[n.$cleanup]&&(e.clean(this[n.$cleanup]),delete this[n.$cleanup])}},{key:W,value:function(e){return this[v].indexOf(e)}},{key:V,value:function(e,t){t[R]=this,this[v].splice(e,0,t),!t[n.$globalData]&&this[n.$globalData]&&(t[n.$globalData]=this[n.$globalData])}},{key:K,value:function(){return!this.name}},{key:Y,value:function(){return""}},{key:J,value:function(){return 0===this[v].length?this[n.$content]:this[v].map((function(e){return e[n.$text]()})).join("")}},{key:p,get:function(){var e=Object.getPrototypeOf(this);if(!e._attributes){var t,r=e._attributes=new Set,n=x(Object.getOwnPropertyNames(this));try{for(n.s();!(t=n.n()).done;){var a=t.value;if(null===this[a]||this[a]instanceof me||this[a]instanceof $)break;r.add(a)}}catch(e){n.e(e)}finally{n.f()}}return(0,o.shadow)(this,p,e._attributes)}},{key:Z,value:function(e){for(var t=this;t;){if(t===e)return!0;t=t[n.$getParent]()}return!1}},{key:Q,value:function(){return this[R]}},{key:ee,value:function(){return this[n.$getParent]()}},{key:te,value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e?this[e]:this[v]}},{key:re,value:function(){var e=Object.create(null);this[n.$content]&&(e.$content=this[n.$content]);var t,r=x(Object.getOwnPropertyNames(this));try{for(r.s();!(t=r.n()).done;){var a=t.value,i=this[a];null!==i&&(i instanceof me?e[a]=i[n.$dump]():i instanceof $?i.isEmpty()||(e[a]=i.dump()):e[a]=i)}}catch(e){r.e(e)}finally{r.f()}return e}},{key:ne,value:function(){return null}},{key:ae,value:function(){return i.HTMLResult.EMPTY}},{key:ie,value:k().mark((function e(){var t,r,a;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=x(this[n.$getChildren]()),e.prev=1,t.s();case 3:if((r=t.n()).done){e.next=9;break}return a=r.value,e.next=7,a;case 7:e.next=3;break;case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),t.e(e.t0);case 14:return e.prev=14,t.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,this,[[1,11,14,17]])}))},{key:C,value:k().mark((function e(t,r){var a,i,o,s,c;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=x(this[n.$getContainedChildren]()),e.prev=1,a.s();case 3:if((i=a.n()).done){e.next=12;break}if(o=i.value,t&&r!==t.has(o[n.$nodeName])){e.next=10;break}return s=this[n.$getAvailableSpace](),(c=o[n.$toHTML](s)).success||(this[n.$extra].failingNode=o),e.next=10,c;case 10:e.next=3;break;case 12:e.next=17;break;case 14:e.prev=14,e.t0=e.catch(1),a.e(e.t0);case 17:return e.prev=17,a.f(),e.finish(17);case 20:case"end":return e.stop()}}),e,this,[[1,14,17,20]])}))},{key:oe,value:function(){return null}},{key:se,value:function(e,t){this[n.$extra].children.push(e)}},{key:ce,value:function(){}},{key:ue,value:function(e){var t=e.filter,r=void 0===t?null:t,a=e.include,o=void 0===a||a;if(this[n.$extra].generator){var s=this[n.$getAvailableSpace](),c=this[n.$extra].failingNode[n.$toHTML](s);if(!c.success)return c;c.html&&this[n.$addHTML](c.html,c.bbox),delete this[n.$extra].failingNode}else this[n.$extra].generator=this[C](r,o);for(;;){var u=this[n.$extra].generator.next();if(u.done)break;var l=u.value;if(!l.success)return l;l.html&&this[n.$addHTML](l.html,l.bbox)}return this[n.$extra].generator=null,i.HTMLResult.EMPTY}},{key:le,value:function(e){this[B]=new Set(Object.keys(e))}},{key:F,value:function(e){var t=this[p],r=this[B];return f(e).filter((function(e){return t.has(e)&&!r.has(e)}))}},{key:he,value:function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set,n=x(this[v]);try{for(n.s();!(t=n.n()).done;)t.value[D](e,r)}catch(e){n.e(e)}finally{n.f()}}},{key:D,value:function(e,t){var r=this[O](e,t);r?this[l](r,e,t):this[n.$resolvePrototypes](e,t)}},{key:O,value:function(e,t){var r=this.use,a=this.usehref;if(!r&&!a)return null;var i=null,s=null,c=null,h=r;if(a?(h=a,a.startsWith("#som(")&&a.endsWith(")")?s=a.slice(5,-1):a.startsWith(".#som(")&&a.endsWith(")")?s=a.slice(6,-1):a.startsWith("#")?c=a.slice(1):a.startsWith(".#")&&(c=a.slice(2))):r.startsWith("#")?c=r.slice(1):s=r,this.use=this.usehref="",c?i=e.get(c):(i=(0,u.searchNode)(e.get(n.$root),this,s,!0,!1))&&(i=i[0]),!i)return(0,o.warn)("XFA - Invalid prototype reference: ".concat(h,".")),null;if(i[n.$nodeName]!==this[n.$nodeName])return(0,o.warn)("XFA - Incompatible prototype: ".concat(i[n.$nodeName]," !== ").concat(this[n.$nodeName],".")),null;if(t.has(i))return(0,o.warn)("XFA - Cycle detected in prototypes use."),null;t.add(i);var f=i[O](e,t);return f&&i[l](f,e,t),i[n.$resolvePrototypes](e,t),t.delete(i),i}},{key:l,value:function(e,t,r){if(r.has(e))(0,o.warn)("XFA - Cycle detected in prototypes use.");else{!this[n.$content]&&e[n.$content]&&(this[n.$content]=e[n.$content]),new Set(r).add(e);var a,i=x(this[F](e[B]));try{for(i.s();!(a=i.n()).done;){var s=a.value;this[s]=e[s],this[B]&&this[B].add(s)}}catch(e){i.e(e)}finally{i.f()}var c,u=x(Object.getOwnPropertyNames(this));try{for(u.s();!(c=u.n()).done;){var h=c.value;if(!this[p].has(h)){var f=this[h],d=e[h];if(f instanceof $){var g,m=x(f[v]);try{for(m.s();!(g=m.n()).done;)g.value[D](t,r)}catch(e){m.e(e)}finally{m.f()}for(var y=f[v].length,b=d[v].length;y0&&void 0!==arguments[0]?arguments[0]:null;return e?this[v].filter((function(t){return t[n.$nodeName]===e})):this[v]}},{key:pe,value:function(e){return this[e]}},{key:ge,value:function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return Array.from(this[n.$getChildrenByNameIt](e,t,r))}},{key:ve,value:function(e,t){var r=this,a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return k().mark((function i(){var o,s,c;return k().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if("parent"===e){i.next=33;break}o=x(r[v]),i.prev=2,o.s();case 4:if((s=o.n()).done){i.next=19;break}if(c=s.value,i.t0=c[n.$nodeName]===e,!i.t0){i.next=10;break}return i.next=10,c;case 10:if(i.t1=c.name===e,!i.t1){i.next=14;break}return i.next=14,c;case 14:if(i.t2=t||c[n.$isTransparent](),!i.t2){i.next=17;break}return i.delegateYield(c[n.$getChildrenByNameIt](e,t,!1),"t3",17);case 17:i.next=4;break;case 19:i.next=24;break;case 21:i.prev=21,i.t4=i.catch(2),o.e(i.t4);case 24:return i.prev=24,o.f(),i.finish(24);case 27:if(i.t5=a&&r[p].has(e),!i.t5){i.next=31;break}return i.next=31,new X(r,e,r[e]);case 31:i.next=35;break;case 33:return i.next=35,r[R];case 35:case"end":return i.stop()}}),i,null,[[2,21,24,27]])}))()}}],[{key:b,value:function(e){return Array.isArray(e)?e.map((function(e){return me[b](e)})):"object"==N(e)&&null!==e?Object.assign({},e):e}}]),me}(n.$onChild,n.$onChildCheck,n.$isNsAgnostic,n.$acceptWhitespace,n.$isCDATAXml,n.$isBindable,n.$popPara,n.$pushPara,n.$setId,n.$getTemplateRoot,n.$isSplittable,n.$isThereMoreWidth,n.$appendChild,n.$removeChild,n.$hasSettableValue,n.$setValue,n.$onText,n.$finalize,n.$clean,n.$indexOf,n.$insertAt,n.$isTransparent,n.$lastAttribute,n.$text,n.$isDescendent,n.$getParent,n.$getSubformParent,n.$getChildren,n.$dump,n.$toStyle,n.$toHTML,n.$getContainedChildren,n.$flushHTML,n.$addHTML,n.$getAvailableSpace,n.$childrenToHTML,n.$setSetAttributes,n.$resolvePrototypes,n.$clone,n.$getChildren,n.$getChildrenByClass,n.$getChildrenByName,n.$getChildrenByNameIt);t.XFAObject=U;var $=function(e){function t(){M(this,t);var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1/0;this[T]=e,this[v]=[]}return P(t,[{key:"isXFAObject",get:function(){return!1}},{key:"isXFAObjectArray",get:function(){return!0}},{key:"push",value:function(e){return this[v].length<=this[T]?(this[v].push(e),!0):((0,o.warn)('XFA - node "'.concat(e[n.$nodeName],'" accepts no more than ').concat(this[T]," children")),!1)}},{key:"isEmpty",value:function(){return 0===this[v].length}},{key:"dump",value:function(){return 1===this[v].length?this[v][0][n.$dump]():this[v].map((function(e){return e[n.$dump]()}))}},{key:e,value:function(){var e=new t(this[T]);return e[v]=this[v].map((function(e){return e[n.$clone]()})),e}},{key:"children",get:function(){return this[v]}},{key:"clear",value:function(){this[v].length=0}}]),t}(n.$clone);t.XFAObjectArray=$;var X=function(e,t,r,a,i,o){function s(e,t,r){M(this,s),this[R]=e,this[n.$nodeName]=t,this[n.$content]=r,this[n.$consumed]=!1,this[n.$uid]="attribute"+_++}return P(s,[{key:e,value:function(){return this[R]}},{key:t,value:function(){return!0}},{key:r,value:function(){return this[n.$content].trim()}},{key:a,value:function(e){e=e.value||"",this[n.$content]=e.toString()}},{key:i,value:function(){return this[n.$content]}},{key:o,value:function(e){return this[R]===e||this[R][n.$isDescendent](e)}}]),s}(n.$getParent,n.$isDataValue,n.$getDataValue,n.$setValue,n.$text,n.$isDescendent);t.XFAAttribute=X;var H=function(e,t,r,a,u,l,f,p,m,b,A,C,O,F,I,T){function E(e,t){var r;M(this,E);var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if((r=d(this,E,[e,t]))[n.$content]="",r[w]=null,"#text"!==t){var i=new Map;r[h]=i;for(var o=0,s=Object.entries(a);o"),this[n.$content])"string"==typeof this[n.$content]?e.push((0,s.encodeToXmlString)(this[n.$content])):this[n.$content][n.$toString](e);else{var p,g=x(this[v]);try{for(g.s();!(p=g.n()).done;)p.value[n.$toString](e)}catch(e){g.e(e)}finally{g.f()}}e.push(""))}else e.push("/>")}else e.push((0,s.encodeToXmlString)(this[n.$content]))}},{key:r,value:function(e){if(this[n.$content]){var t=new E(this[n.$namespaceId],"#text");this[n.$appendChild](t),t[n.$content]=this[n.$content],this[n.$content]=""}return this[n.$appendChild](e),!0}},{key:a,value:function(e){this[n.$content]+=e}},{key:u,value:function(){if(this[n.$content]&&this[v].length>0){var e=new E(this[n.$namespaceId],"#text");this[n.$appendChild](e),e[n.$content]=this[n.$content],delete this[n.$content]}}},{key:l,value:function(){return"#text"===this[n.$nodeName]?i.HTMLResult.success({name:"#text",value:this[n.$content]}):i.HTMLResult.EMPTY}},{key:f,value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e?this[v].filter((function(t){return t[n.$nodeName]===e})):this[v]}},{key:p,value:function(){return this[h]}},{key:m,value:function(e){var t=this[h].get(e);return void 0!==t?t:this[n.$getChildren](e)}},{key:b,value:k().mark((function e(t,r){var a,i,o,s;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=this[h].get(t),e.t0=a,!e.t0){e.next=5;break}return e.next=5,a;case 5:i=x(this[v]),e.prev=6,i.s();case 8:if((o=i.n()).done){e.next=19;break}if(s=o.value,e.t1=s[n.$nodeName]===t,!e.t1){e.next=14;break}return e.next=14,s;case 14:if(e.t2=r,!e.t2){e.next=17;break}return e.delegateYield(s[n.$getChildrenByNameIt](t,r),"t3",17);case 17:e.next=8;break;case 19:e.next=24;break;case 21:e.prev=21,e.t4=e.catch(6),i.e(e.t4);case 24:return e.prev=24,i.f(),e.finish(24);case 27:case"end":return e.stop()}}),e,this,[[6,21,24,27]])}))},{key:A,value:k().mark((function e(t,r){var a,i,o,s;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=this[h].get(t),e.t0=!a||r&&a[n.$consumed],e.t0){e.next=5;break}return e.next=5,a;case 5:i=x(this[v]),e.prev=6,i.s();case 8:if((o=i.n()).done){e.next=13;break}return s=o.value,e.delegateYield(s[n.$getAttributeIt](t,r),"t1",11);case 11:e.next=8;break;case 13:e.next=18;break;case 15:e.prev=15,e.t2=e.catch(6),i.e(e.t2);case 18:return e.prev=18,i.f(),e.finish(18);case 21:case"end":return e.stop()}}),e,this,[[6,15,18,21]])}))},{key:C,value:k().mark((function e(t,r,a){var i,o,s;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=x(this[v]),e.prev=1,i.s();case 3:if((o=i.n()).done){e.next=14;break}if(s=o.value,e.t0=s[n.$nodeName]!==t||a&&s[n.$consumed],e.t0){e.next=9;break}return e.next=9,s;case 9:if(e.t1=r,!e.t1){e.next=12;break}return e.delegateYield(s[n.$getRealChildrenByNameIt](t,r,a),"t2",12);case 12:e.next=3;break;case 14:e.next=19;break;case 16:e.prev=16,e.t3=e.catch(1),i.e(e.t3);case 19:return e.prev=19,i.f(),e.finish(19);case 22:case"end":return e.stop()}}),e,this,[[1,16,19,22]])}))},{key:O,value:function(){return null===this[w]?0===this[v].length||this[v][0][n.$namespaceId]===c.NamespaceIds.xhtml.id:this[w]}},{key:F,value:function(){return null===this[w]?0===this[v].length?this[n.$content].trim():this[v][0][n.$namespaceId]===c.NamespaceIds.xhtml.id?this[v][0][n.$text]().trim():null:this[n.$content].trim()}},{key:I,value:function(e){e=e.value||"",this[n.$content]=e.toString()}},{key:T,value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=Object.create(null);e&&(t.$ns=this[n.$namespaceId]),this[n.$content]&&(t.$content=this[n.$content]),t.$name=this[n.$nodeName],t.children=[];var r,a=x(this[v]);try{for(a.s();!(r=a.n()).done;){var i=r.value;t.children.push(i[n.$dump](e))}}catch(e){a.e(e)}finally{a.f()}t.attributes=Object.create(null);var o,s=x(this[h]);try{for(s.s();!(o=s.n()).done;){var c=S(o.value,2),u=c[0],l=c[1];t.attributes[u]=l[n.$content]}}catch(e){s.e(e)}finally{s.f()}return t}}]),E}(U,n.$toString,n.$onChild,n.$onText,n.$finalize,n.$toHTML,n.$getChildren,n.$getAttributes,n.$getChildrenByClass,n.$getChildrenByNameIt,n.$getAttributeIt,n.$getRealChildrenByNameIt,n.$isDataValue,n.$getDataValue,n.$setValue,n.$dump);t.XmlObject=H;var q=function(e,t,r){function a(e,t){var r;return M(this,a),(r=d(this,a,[e,t]))[n.$content]="",r}return y(a,e),P(a,[{key:t,value:function(e){this[n.$content]+=e}},{key:r,value:function(){}}]),a}(U,n.$onText,n.$finalize);t.ContentObject=q;var z=function(e,t,r){function o(e,t,r){var n;return M(this,o),(n=d(this,o,[e,t]))[E]=r,n}return y(o,e),P(o,[{key:t,value:function(){var e=this;this[n.$content]=(0,i.getKeyword)({data:this[n.$content],defaultValue:this[E][0],validate:function(t){return e[E].includes(t)}})}},{key:r,value:function(e){a(m(o.prototype),n.$clean,this).call(this,e),delete this[E]}}]),o}(q,n.$finalize,n.$clean);t.OptionObject=z;var G=function(e,t){function r(){return M(this,r),d(this,r,arguments)}return y(r,e),P(r,[{key:t,value:function(){this[n.$content]=this[n.$content].trim()}}]),r}(q,n.$finalize);t.StringObject=G;var W=function(e,t,r){function o(e,t,r,n){var a;return M(this,o),(a=d(this,o,[e,t]))[A]=r,a[L]=n,a}return y(o,e),P(o,[{key:t,value:function(){this[n.$content]=(0,i.getInteger)({data:this[n.$content],defaultValue:this[A],validate:this[L]})}},{key:r,value:function(e){a(m(o.prototype),n.$clean,this).call(this,e),delete this[A],delete this[L]}}]),o}(q,n.$finalize,n.$clean);t.IntegerObject=W,t.Option01=function(e){function t(e,r){return M(this,t),d(this,t,[e,r,0,function(e){return 1===e}])}return y(t,e),P(t)}(W),t.Option10=function(e){function t(e,r){return M(this,t),d(this,t,[e,r,1,function(e){return 0===e}])}return y(t,e),P(t)}(W)},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.createDataNode=function(e,t,r){var i=l(r);if(!i)return null;if(i.some((function(e){return e.operator===s.dotDot})))return null;var o=c.get(i[0].name),u=0;o?(e=o(e,t),u=1):e=t||e;for(var h=i.length;u4&&void 0!==arguments[4])||arguments[4],i=l(r,!(arguments.length>3&&void 0!==arguments[3])||arguments[3]);if(!i)return null;var o,h=c.get(i[0].name),f=0;h?(o=!0,e=[h(e,t)],f=1):(o=null===t,e=[t||e]);for(var d,p=function(){var r,c=i[f],l=c.name,h=c.cacheName,d=c.operator,p=c.index,g=[],v=x(e);try{for(v.s();!(r=v.n()).done;){var m=r.value;if(m.isXFAObject){var y=void 0,b=void 0;if(a&&((b=u.get(m))||(b=new Map,u.set(m,b)),y=b.get(h)),!y){switch(d){case s.dot:y=m[n.$getChildrenByName](l,!1);break;case s.dotDot:y=m[n.$getChildrenByName](l,!0);break;case s.dotHash:y=(y=m[n.$getChildrenByClass](l)).isXFAObjectArray?y.children:[y]}a&&b.set(h,y)}y.length>0&&g.push(y)}}}catch(e){v.e(e)}finally{v.f()}if(0!==g.length||o||0!==f)e=isFinite(p)?g.filter((function(e){return p2&&void 0!==arguments[2])||arguments[2],n=e.match(i);if(!n)return null;for(var c,u=S(n,1)[0],l=[{name:u,cacheName:"."+u,index:0,js:null,formCalc:null,operator:s.dot}],h=u.length;h0;){var r=t.at(-1),a=S(r,2),i=a[0],o=a[1];if(i+1!==o.length){var s=o[++r[0]],c=e.get(s[n.$uid]);if(c)s[n.$setValue](c);else{var u,l=x(s[n.$getAttributes]().values());try{for(l.s();!(u=l.n()).done;){var h=u.value,f=e.get(h[n.$uid]);if(f){h[n.$setValue](f);break}}}catch(e){l.e(e)}finally{l.f()}}var d=s[n.$getChildren]();d.length>0&&t.push([-1,d])}else t.pop()}var p=[''];if(this.dataset){var g,v=x(this.dataset[n.$getChildren]());try{for(v.s();!(g=v.n()).done;){var m=g.value;"data"!==m[n.$nodeName]&&m[n.$toString](p)}}catch(e){v.e(e)}finally{v.f()}}return this.data[n.$toString](p),p.push(""),p.join("")}}]),e}()},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.XFAParser=void 0,r(116),r(126),r(128),r(131),r(133),r(135),r(137),r(139);var n=r(228),a=r(217),i=r(244),o=r(144),s=function(e){function t(){var e;M(this,t);var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(e=d(this,t))._builder=new i.Builder(r),e._stack=[],e._globalData={usedTypefaces:new Set},e._ids=new Map,e._current=e._builder.buildRoot(e._ids),e._errorCode=a.XMLParserErrorCode.NoError,e._whiteRegex=/^\s+$/,e._nbsps=/\xa0+/g,e._richText=n,e}return y(t,e),P(t,[{key:"parse",value:function(e){if(this.parseXml(e),this._errorCode===a.XMLParserErrorCode.NoError)return this._current[n.$finalize](),this._current.element}},{key:"onText",value:function(e){e=e.replace(this._nbsps,(function(e){return e.slice(1)+" "})),this._richText||this._current[n.$acceptWhitespace]()?this._current[n.$onText](e,this._richText):this._whiteRegex.test(e)||this._current[n.$onText](e.trim())}},{key:"onCdata",value:function(e){this._current[n.$onText](e)}},{key:"_mkAttributes",value:function(e,t){var r,a=null,i=null,s=Object.create({}),c=x(e);try{for(c.s();!(r=c.n()).done;){var u=r.value,l=u.name,h=u.value;if("xmlns"===l)a?(0,o.warn)("XFA - multiple namespace definition in <".concat(t,">")):a=h;else if(l.startsWith("xmlns:")){var f=l.substring(6);i||(i=[]),i.push({prefix:f,value:h})}else{var d=l.indexOf(":");if(-1===d)s[l]=h;else{var p,g=s[n.$nsAttributes];g||(g=s[n.$nsAttributes]=Object.create(null));var v=[l.slice(0,d),l.slice(d+1)],m=v[0],y=v[1];((p=g)[m]||(p[m]=Object.create(null)))[y]=h}}}}catch(e){c.e(e)}finally{c.f()}return[a,i,s]}},{key:"_getNameAndPrefix",value:function(e,t){var r=e.indexOf(":");return-1===r?[e,null]:[e.substring(r+1),t?"":e.substring(0,r)]}},{key:"onBeginElement",value:function(e,t,r){var a=S(this._mkAttributes(t,e),3),i=a[0],o=a[1],s=a[2],c=S(this._getNameAndPrefix(e,this._builder.isNsAgnostic()),2),u=c[0],l=c[1],h=this._builder.build({nsPrefix:l,name:u,attributes:s,namespace:i,prefixes:o});h[n.$globalData]=this._globalData,r?(h[n.$finalize](),this._current[n.$onChild](h)&&h[n.$setId](this._ids),h[n.$clean](this._builder)):(this._stack.push(this._current),this._current=h)}},{key:"onEndElement",value:function(e){var r=this._current;if(r[n.$isCDATAXml]()&&"string"==typeof r[n.$content]){var a=new t;a._globalData=this._globalData;var i=a.parse(r[n.$content]);r[n.$content]=null,r[n.$onChild](i)}r[n.$finalize](),this._current=this._stack.pop(),this._current[n.$onChild](r)&&r[n.$setId](this._ids),r[n.$clean](this._builder)}},{key:"onError",value:function(e){this._errorCode=e}}]),t}(a.XMLParserBase);t.XFAParser=s},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.Builder=void 0,r(139);var n=r(234),i=r(228),o=r(245),s=r(230),c=r(254),u=r(144),l=r(240),h=function(e,t,r){function n(e){var t;return M(this,n),(t=d(this,n,[-1,"root",Object.create(null)])).element=null,t[i.$ids]=e,t}return y(n,e),P(n,[{key:t,value:function(e){return this.element=e,!0}},{key:r,value:function(){a(m(n.prototype),i.$finalize,this).call(this),this.element.template instanceof s.Template&&(this[i.$ids].set(i.$root,this.element),this.element.template[i.$resolvePrototypes](this[i.$ids]),this.element.template[i.$ids]=this[i.$ids])}}]),n}(l.XFAObject,i.$onChild,i.$finalize),p=function(e,t){function r(){return M(this,r),d(this,r,[-1,"",Object.create(null)])}return y(r,e),P(r,[{key:t,value:function(e){return!1}}]),r}(l.XFAObject,i.$onChild);t.Builder=function(){function e(){M(this,e);var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this._namespaceStack=[],this._nsAgnosticLevel=0,this._namespacePrefixes=new Map,this._namespaces=new Map,this._nextNsId=Math.max.apply(Math,f(Object.values(n.NamespaceIds).map((function(e){return e.id})))),this._currentNamespace=t||new c.UnknownNamespace(++this._nextNsId)}return P(e,[{key:"buildRoot",value:function(e){return new h(e)}},{key:"build",value:function(e){var t=e.nsPrefix,r=e.name,a=e.attributes,s=e.namespace,c=e.prefixes,u=null!==s;if(u&&(this._namespaceStack.push(this._currentNamespace),this._currentNamespace=this._searchNamespace(s)),c&&this._addNamespacePrefix(c),a.hasOwnProperty(i.$nsAttributes)){for(var l=o.NamespaceSetUp.datasets,h=a[i.$nsAttributes],f=null,d=0,g=Object.entries(h);d0}},{key:"_searchNamespace",value:function(e){var t=this._namespaces.get(e);if(t)return t;for(var r=0,a=Object.entries(n.NamespaceIds);r0?t.at(-1):((0,u.warn)("Unknown namespace prefix: ".concat(e,".")),null)}},{key:"clean",value:function(e){var t=this,r=e.hasNamespace,n=e.prefixes,a=e.nsAgnostic;r&&(this._currentNamespace=this._namespaceStack.pop()),n&&n.forEach((function(e){var r=e.prefix;t._namespacePrefixes.get(r).pop()})),a&&this._nsAgnosticLevel--}}]),e}()},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.NamespaceSetUp=void 0;var n=r(246),a=r(247),i=r(248),o=r(249),s=r(250),c=r(251),u=r(230),l=r(252),h=r(253),f={config:n.ConfigNamespace,connection:a.ConnectionSetNamespace,datasets:i.DatasetsNamespace,localeSet:o.LocaleSetNamespace,signature:s.SignatureNamespace,stylesheet:c.StylesheetNamespace,template:u.TemplateNamespace,xdp:l.XdpNamespace,xhtml:h.XhtmlNamespace};t.NamespaceSetUp=f},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.ConfigNamespace=void 0,r(139);var n=r(234),a=r(228),i=r(240),o=r(237),s=r(144),c=n.NamespaceIds.config.id,u=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[c,"acrobat",!0])).acrobat7=null,r.autoSave=null,r.common=null,r.validate=null,r.validateApprovalSignatures=null,r.submitUrl=new i.XFAObjectArray,r}return y(t,e),P(t)}(i.XFAObject),l=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[c,"acrobat7",!0])).dynamicRender=null,r}return y(t,e),P(t)}(i.XFAObject),h=function(e){function t(e){return M(this,t),d(this,t,[c,"ADBE_JSConsole",["delegate","Enable","Disable"]])}return y(t,e),P(t)}(i.OptionObject),f=function(e){function t(e){return M(this,t),d(this,t,[c,"ADBE_JSDebugger",["delegate","Enable","Disable"]])}return y(t,e),P(t)}(i.OptionObject),p=function(e){function t(e){return M(this,t),d(this,t,[c,"addSilentPrint"])}return y(t,e),P(t)}(i.Option01),g=function(e){function t(e){return M(this,t),d(this,t,[c,"addViewerPreferences"])}return y(t,e),P(t)}(i.Option01),v=function(e){function t(e){return M(this,t),d(this,t,[c,"adjustData"])}return y(t,e),P(t)}(i.Option10),m=function(e){function t(e){return M(this,t),d(this,t,[c,"adobeExtensionLevel",0,function(e){return e>=1&&e<=8}])}return y(t,e),P(t)}(i.IntegerObject),b=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[c,"agent",!0])).name=e.name?e.name.trim():"",r.common=new i.XFAObjectArray,r}return y(t,e),P(t)}(i.XFAObject),w=function(e){function t(e){return M(this,t),d(this,t,[c,"alwaysEmbed"])}return y(t,e),P(t)}(i.ContentObject),k=function(e){function t(e){return M(this,t),d(this,t,[c,"amd"])}return y(t,e),P(t)}(i.StringObject),S=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[c,"area"])).level=(0,o.getInteger)({data:e.level,defaultValue:0,validate:function(e){return e>=1&&e<=3}}),r.name=(0,o.getStringOption)(e.name,["","barcode","coreinit","deviceDriver","font","general","layout","merge","script","signature","sourceSet","templateCache"]),r}return y(t,e),P(t)}(i.XFAObject),A=function(e){function t(e){return M(this,t),d(this,t,[c,"attributes",["preserve","delegate","ignore"]])}return y(t,e),P(t)}(i.OptionObject),C=function(e){function t(e){return M(this,t),d(this,t,[c,"autoSave",["disabled","enabled"]])}return y(t,e),P(t)}(i.OptionObject),O=function(e){function t(e){return M(this,t),d(this,t,[c,"base"])}return y(t,e),P(t)}(i.StringObject),F=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[c,"batchOutput"])).format=(0,o.getStringOption)(e.format,["none","concat","zip","zipCompress"]),r}return y(t,e),P(t)}(i.XFAObject),I=function(e,t){function r(e){return M(this,r),d(this,r,[c,"behaviorOverride"])}return y(r,e),P(r,[{key:t,value:function(){this[a.$content]=new Map(this[a.$content].trim().split(/\s+/).filter((function(e){return e.includes(":")})).map((function(e){return e.split(":",2)})))}}]),r}(i.ContentObject,a.$finalize),T=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[c,"cache",!0])).templateCache=null,r}return y(t,e),P(t)}(i.XFAObject),E=function(e){function t(e){return M(this,t),d(this,t,[c,"change"])}return y(t,e),P(t)}(i.Option01),R=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[c,"common",!0])).data=null,r.locale=null,r.localeSet=null,r.messaging=null,r.suppressBanner=null,r.template=null,r.validationMessaging=null,r.versionControl=null,r.log=new i.XFAObjectArray,r}return y(t,e),P(t)}(i.XFAObject),N=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[c,"compress"])).scope=(0,o.getStringOption)(e.scope,["imageOnly","document"]),r}return y(t,e),P(t)}(i.XFAObject),D=function(e){function t(e){return M(this,t),d(this,t,[c,"compressLogicalStructure"])}return y(t,e),P(t)}(i.Option01),B=function(e){function t(e){return M(this,t),d(this,t,[c,"compressObjectStream"])}return y(t,e),P(t)}(i.Option10),L=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[c,"compression",!0])).compressLogicalStructure=null,r.compressObjectStream=null,r.level=null,r.type=null,r}return y(t,e),P(t)}(i.XFAObject),_=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[c,"config",!0])).acrobat=null,r.present=null,r.trace=null,r.agent=new i.XFAObjectArray,r}return y(t,e),P(t)}(i.XFAObject),j=function(e){function t(e){return M(this,t),d(this,t,[c,"conformance",["A","B"]])}return y(t,e),P(t)}(i.OptionObject),U=function(e){function t(e){return M(this,t),d(this,t,[c,"contentCopy"])}return y(t,e),P(t)}(i.Option01),$=function(e){function t(e){return M(this,t),d(this,t,[c,"copies",1,function(e){return e>=1}])}return y(t,e),P(t)}(i.IntegerObject),X=function(e){function t(e){return M(this,t),d(this,t,[c,"creator"])}return y(t,e),P(t)}(i.StringObject),H=function(e){function t(e){return M(this,t),d(this,t,[c,"currentPage",0,function(e){return e>=0}])}return y(t,e),P(t)}(i.IntegerObject),q=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[c,"data",!0])).adjustData=null,r.attributes=null,r.incrementalLoad=null,r.outputXSL=null,r.range=null,r.record=null,r.startNode=null,r.uri=null,r.window=null,r.xsl=null,r.excludeNS=new i.XFAObjectArray,r.transform=new i.XFAObjectArray,r}return y(t,e),P(t)}(i.XFAObject),z=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[c,"debug",!0])).uri=null,r}return y(t,e),P(t)}(i.XFAObject),G=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[c,"defaultTypeface"])).writingScript=(0,o.getStringOption)(e.writingScript,["*","Arabic","Cyrillic","EastEuropeanRoman","Greek","Hebrew","Japanese","Korean","Roman","SimplifiedChinese","Thai","TraditionalChinese","Vietnamese"]),r}return y(t,e),P(t)}(i.ContentObject),W=function(e){function t(e){return M(this,t),d(this,t,[c,"destination",["pdf","pcl","ps","webClient","zpl"]])}return y(t,e),P(t)}(i.OptionObject),V=function(e){function t(e){return M(this,t),d(this,t,[c,"documentAssembly"])}return y(t,e),P(t)}(i.Option01),K=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[c,"driver",!0])).name=e.name?e.name.trim():"",r.fontInfo=null,r.xdc=null,r}return y(t,e),P(t)}(i.XFAObject),Y=function(e){function t(e){return M(this,t),d(this,t,[c,"duplexOption",["simplex","duplexFlipLongEdge","duplexFlipShortEdge"]])}return y(t,e),P(t)}(i.OptionObject),J=function(e){function t(e){return M(this,t),d(this,t,[c,"dynamicRender",["forbidden","required"]])}return y(t,e),P(t)}(i.OptionObject),Z=function(e){function t(e){return M(this,t),d(this,t,[c,"embed"])}return y(t,e),P(t)}(i.Option01),Q=function(e){function t(e){return M(this,t),d(this,t,[c,"encrypt"])}return y(t,e),P(t)}(i.Option01),ee=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[c,"encryption",!0])).encrypt=null,r.encryptionLevel=null,r.permissions=null,r}return y(t,e),P(t)}(i.XFAObject),te=function(e){function t(e){return M(this,t),d(this,t,[c,"encryptionLevel",["40bit","128bit"]])}return y(t,e),P(t)}(i.OptionObject),re=function(e){function t(e){return M(this,t),d(this,t,[c,"enforce"])}return y(t,e),P(t)}(i.StringObject),ne=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[c,"equate"])).force=(0,o.getInteger)({data:e.force,defaultValue:1,validate:function(e){return 0===e}}),r.from=e.from||"",r.to=e.to||"",r}return y(t,e),P(t)}(i.XFAObject),ae=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[c,"equateRange"])).from=e.from||"",r.to=e.to||"",r._unicodeRange=e.unicodeRange||"",r}return y(t,e),P(t,[{key:"unicodeRange",get:function(){var e,t=[],r=/U\+([0-9a-fA-F]+)/,n=x(this._unicodeRange.split(",").map((function(e){return e.trim()})).filter((function(e){return!!e})));try{for(n.s();!(e=n.n()).done;){var a=e.value;a=a.split("-",2).map((function(e){var t=e.match(r);return t?parseInt(t[1],16):0})),1===a.length&&a.push(a[0]),t.push(a)}}catch(e){n.e(e)}finally{n.f()}return(0,s.shadow)(this,"unicodeRange",t)}}]),t}(i.XFAObject),ie=function(e,t){function r(e){return M(this,r),d(this,r,[c,"exclude"])}return y(r,e),P(r,[{key:t,value:function(){this[a.$content]=this[a.$content].trim().split(/\s+/).filter((function(e){return e&&["calculate","close","enter","exit","initialize","ready","validate"].includes(e)}))}}]),r}(i.ContentObject,a.$finalize),oe=function(e){function t(e){return M(this,t),d(this,t,[c,"excludeNS"])}return y(t,e),P(t)}(i.StringObject),se=function(e){function t(e){return M(this,t),d(this,t,[c,"flipLabel",["usePrinterSetting","on","off"]])}return y(t,e),P(t)}(i.OptionObject),ce=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[c,"fontInfo",!0])).embed=null,r.map=null,r.subsetBelow=null,r.alwaysEmbed=new i.XFAObjectArray,r.defaultTypeface=new i.XFAObjectArray,r.neverEmbed=new i.XFAObjectArray,r}return y(t,e),P(t)}(i.XFAObject),ue=function(e){function t(e){return M(this,t),d(this,t,[c,"formFieldFilling"])}return y(t,e),P(t)}(i.Option01),le=function(e){function t(e){return M(this,t),d(this,t,[c,"groupParent"])}return y(t,e),P(t)}(i.StringObject),he=function(e){function t(e){return M(this,t),d(this,t,[c,"ifEmpty",["dataValue","dataGroup","ignore","remove"]])}return y(t,e),P(t)}(i.OptionObject),fe=function(e){function t(e){return M(this,t),d(this,t,[c,"includeXDPContent"])}return y(t,e),P(t)}(i.StringObject),de=function(e){function t(e){return M(this,t),d(this,t,[c,"incrementalLoad",["none","forwardOnly"]])}return y(t,e),P(t)}(i.OptionObject),pe=function(e){function t(e){return M(this,t),d(this,t,[c,"incrementalMerge"])}return y(t,e),P(t)}(i.Option01),ge=function(e){function t(e){return M(this,t),d(this,t,[c,"interactive"])}return y(t,e),P(t)}(i.Option01),ve=function(e){function t(e){return M(this,t),d(this,t,[c,"jog",["usePrinterSetting","none","pageSet"]])}return y(t,e),P(t)}(i.OptionObject),me=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[c,"labelPrinter",!0])).name=(0,o.getStringOption)(e.name,["zpl","dpl","ipl","tcpl"]),r.batchOutput=null,r.flipLabel=null,r.fontInfo=null,r.xdc=null,r}return y(t,e),P(t)}(i.XFAObject),ye=function(e){function t(e){return M(this,t),d(this,t,[c,"layout",["paginate","panel"]])}return y(t,e),P(t)}(i.OptionObject),be=function(e){function t(e){return M(this,t),d(this,t,[c,"level",0,function(e){return e>0}])}return y(t,e),P(t)}(i.IntegerObject),we=function(e){function t(e){return M(this,t),d(this,t,[c,"linearized"])}return y(t,e),P(t)}(i.Option01),ke=function(e){function t(e){return M(this,t),d(this,t,[c,"locale"])}return y(t,e),P(t)}(i.StringObject),xe=function(e){function t(e){return M(this,t),d(this,t,[c,"localeSet"])}return y(t,e),P(t)}(i.StringObject),Se=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[c,"log",!0])).mode=null,r.threshold=null,r.to=null,r.uri=null,r}return y(t,e),P(t)}(i.XFAObject),Ae=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[c,"map",!0])).equate=new i.XFAObjectArray,r.equateRange=new i.XFAObjectArray,r}return y(t,e),P(t)}(i.XFAObject),Ce=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[c,"mediumInfo",!0])).map=null,r}return y(t,e),P(t)}(i.XFAObject),Oe=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[c,"message",!0])).msgId=null,r.severity=null,r}return y(t,e),P(t)}(i.XFAObject),Fe=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[c,"messaging",!0])).message=new i.XFAObjectArray,r}return y(t,e),P(t)}(i.XFAObject),Ie=function(e){function t(e){return M(this,t),d(this,t,[c,"mode",["append","overwrite"]])}return y(t,e),P(t)}(i.OptionObject),Te=function(e){function t(e){return M(this,t),d(this,t,[c,"modifyAnnots"])}return y(t,e),P(t)}(i.Option01),Me=function(e){function t(e){return M(this,t),d(this,t,[c,"msgId",1,function(e){return e>=1}])}return y(t,e),P(t)}(i.IntegerObject),Ee=function(e){function t(e){return M(this,t),d(this,t,[c,"nameAttr"])}return y(t,e),P(t)}(i.StringObject),Pe=function(e){function t(e){return M(this,t),d(this,t,[c,"neverEmbed"])}return y(t,e),P(t)}(i.ContentObject),Re=function(e){function t(e){return M(this,t),d(this,t,[c,"numberOfCopies",null,function(e){return e>=2&&e<=5}])}return y(t,e),P(t)}(i.IntegerObject),Ne=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[c,"openAction",!0])).destination=null,r}return y(t,e),P(t)}(i.XFAObject),De=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[c,"output",!0])).to=null,r.type=null,r.uri=null,r}return y(t,e),P(t)}(i.XFAObject),Be=function(e){function t(e){return M(this,t),d(this,t,[c,"outputBin"])}return y(t,e),P(t)}(i.StringObject),Le=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[c,"outputXSL",!0])).uri=null,r}return y(t,e),P(t)}(i.XFAObject),_e=function(e){function t(e){return M(this,t),d(this,t,[c,"overprint",["none","both","draw","field"]])}return y(t,e),P(t)}(i.OptionObject),je=function(e,t){function r(e){return M(this,r),d(this,r,[c,"packets"])}return y(r,e),P(r,[{key:t,value:function(){"*"!==this[a.$content]&&(this[a.$content]=this[a.$content].trim().split(/\s+/).filter((function(e){return["config","datasets","template","xfdf","xslt"].includes(e)})))}}]),r}(i.StringObject,a.$finalize),Ue=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[c,"pageOffset"])).x=(0,o.getInteger)({data:e.x,defaultValue:"useXDCSetting",validate:function(e){return!0}}),r.y=(0,o.getInteger)({data:e.y,defaultValue:"useXDCSetting",validate:function(e){return!0}}),r}return y(t,e),P(t)}(i.XFAObject),$e=function(e,t){function r(e){return M(this,r),d(this,r,[c,"pageRange"])}return y(r,e),P(r,[{key:t,value:function(){for(var e=this[a.$content].trim().split(/\s+/).map((function(e){return parseInt(e,10)})),t=[],r=0,n=e.length;r=0&&(this[a.$content]=e)}}]),r}(i.ContentObject,a.$finalize),ct=function(e,t){function r(e){return M(this,r),d(this,r,[c,"relevant"])}return y(r,e),P(r,[{key:t,value:function(){this[a.$content]=this[a.$content].trim().split(/\s+/)}}]),r}(i.ContentObject,a.$finalize),ut=function(e,t){function r(e){return M(this,r),d(this,r,[c,"rename"])}return y(r,e),P(r,[{key:t,value:function(){this[a.$content]=this[a.$content].trim(),(this[a.$content].toLowerCase().startsWith("xml")||new RegExp("[\\p{L}_][\\p{L}\\d._\\p{M}-]*","u").test(this[a.$content]))&&(0,s.warn)("XFA - Rename: invalid XFA name")}}]),r}(i.ContentObject,a.$finalize),lt=function(e){function t(e){return M(this,t),d(this,t,[c,"renderPolicy",["server","client"]])}return y(t,e),P(t)}(i.OptionObject),ht=function(e){function t(e){return M(this,t),d(this,t,[c,"runScripts",["both","client","none","server"]])}return y(t,e),P(t)}(i.OptionObject),ft=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[c,"script",!0])).currentPage=null,r.exclude=null,r.runScripts=null,r}return y(t,e),P(t)}(i.XFAObject),dt=function(e){function t(e){return M(this,t),d(this,t,[c,"scriptModel",["XFA","none"]])}return y(t,e),P(t)}(i.OptionObject),pt=function(e){function t(e){return M(this,t),d(this,t,[c,"severity",["ignore","error","information","trace","warning"]])}return y(t,e),P(t)}(i.OptionObject),gt=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[c,"silentPrint",!0])).addSilentPrint=null,r.printerName=null,r}return y(t,e),P(t)}(i.XFAObject),vt=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[c,"staple"])).mode=(0,o.getStringOption)(e.mode,["usePrinterSetting","on","off"]),r}return y(t,e),P(t)}(i.XFAObject),mt=function(e){function t(e){return M(this,t),d(this,t,[c,"startNode"])}return y(t,e),P(t)}(i.StringObject),yt=function(e){function t(e){return M(this,t),d(this,t,[c,"startPage",0,function(e){return!0}])}return y(t,e),P(t)}(i.IntegerObject),bt=function(e){function t(e){return M(this,t),d(this,t,[c,"submitFormat",["html","delegate","fdf","xml","pdf"]])}return y(t,e),P(t)}(i.OptionObject),wt=function(e){function t(e){return M(this,t),d(this,t,[c,"submitUrl"])}return y(t,e),P(t)}(i.StringObject),kt=function(e){function t(e){return M(this,t),d(this,t,[c,"subsetBelow",100,function(e){return e>=0&&e<=100}])}return y(t,e),P(t)}(i.IntegerObject),xt=function(e){function t(e){return M(this,t),d(this,t,[c,"suppressBanner"])}return y(t,e),P(t)}(i.Option01),St=function(e){function t(e){return M(this,t),d(this,t,[c,"tagged"])}return y(t,e),P(t)}(i.Option01),At=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[c,"template",!0])).base=null,r.relevant=null,r.startPage=null,r.uri=null,r.xsl=null,r}return y(t,e),P(t)}(i.XFAObject),Ct=function(e){function t(e){return M(this,t),d(this,t,[c,"threshold",["trace","error","information","warning"]])}return y(t,e),P(t)}(i.OptionObject),Ot=function(e){function t(e){return M(this,t),d(this,t,[c,"to",["null","memory","stderr","stdout","system","uri"]])}return y(t,e),P(t)}(i.OptionObject),Ft=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[c,"templateCache"])).maxEntries=(0,o.getInteger)({data:e.maxEntries,defaultValue:5,validate:function(e){return e>=0}}),r}return y(t,e),P(t)}(i.XFAObject),It=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[c,"trace",!0])).area=new i.XFAObjectArray,r}return y(t,e),P(t)}(i.XFAObject),Tt=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[c,"transform",!0])).groupParent=null,r.ifEmpty=null,r.nameAttr=null,r.picture=null,r.presence=null,r.rename=null,r.whitespace=null,r}return y(t,e),P(t)}(i.XFAObject),Mt=function(e){function t(e){return M(this,t),d(this,t,[c,"type",["none","ascii85","asciiHex","ccittfax","flate","lzw","runLength","native","xdp","mergedXDP"]])}return y(t,e),P(t)}(i.OptionObject),Et=function(e){function t(e){return M(this,t),d(this,t,[c,"uri"])}return y(t,e),P(t)}(i.StringObject),Pt=function(e){function t(e){return M(this,t),d(this,t,[c,"validate",["preSubmit","prePrint","preExecute","preSave"]])}return y(t,e),P(t)}(i.OptionObject),Rt=function(e,t){function r(e){return M(this,r),d(this,r,[c,"validateApprovalSignatures"])}return y(r,e),P(r,[{key:t,value:function(){this[a.$content]=this[a.$content].trim().split(/\s+/).filter((function(e){return["docReady","postSign"].includes(e)}))}}]),r}(i.ContentObject,a.$finalize),Nt=function(e){function t(e){return M(this,t),d(this,t,[c,"validationMessaging",["allMessagesIndividually","allMessagesTogether","firstMessageOnly","noMessages"]])}return y(t,e),P(t)}(i.OptionObject),Dt=function(e){function t(e){return M(this,t),d(this,t,[c,"version",["1.7","1.6","1.5","1.4","1.3","1.2"]])}return y(t,e),P(t)}(i.OptionObject),Bt=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[c,"VersionControl"])).outputBelow=(0,o.getStringOption)(e.outputBelow,["warn","error","update"]),r.sourceAbove=(0,o.getStringOption)(e.sourceAbove,["warn","error"]),r.sourceBelow=(0,o.getStringOption)(e.sourceBelow,["update","maintain"]),r}return y(t,e),P(t)}(i.XFAObject),Lt=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[c,"viewerPreferences",!0])).ADBE_JSConsole=null,r.ADBE_JSDebugger=null,r.addViewerPreferences=null,r.duplexOption=null,r.enforce=null,r.numberOfCopies=null,r.pageRange=null,r.pickTrayByPDFSize=null,r.printScaling=null,r}return y(t,e),P(t)}(i.XFAObject),_t=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[c,"webClient",!0])).name=e.name?e.name.trim():"",r.fontInfo=null,r.xdc=null,r}return y(t,e),P(t)}(i.XFAObject),jt=function(e){function t(e){return M(this,t),d(this,t,[c,"whitespace",["preserve","ltrim","normalize","rtrim","trim"]])}return y(t,e),P(t)}(i.OptionObject),Ut=function(e,t){function r(e){return M(this,r),d(this,r,[c,"window"])}return y(r,e),P(r,[{key:t,value:function(){var e=this[a.$content].trim().split(/\s*,\s*/,2).map((function(e){return parseInt(e,10)}));e.some((function(e){return isNaN(e)}))?this[a.$content]=[0,0]:(1===e.length&&e.push(e[0]),this[a.$content]=e)}}]),r}(i.ContentObject,a.$finalize),$t=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[c,"xdc",!0])).uri=new i.XFAObjectArray,r.xsl=new i.XFAObjectArray,r}return y(t,e),P(t)}(i.XFAObject),Xt=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[c,"xdp",!0])).packets=null,r}return y(t,e),P(t)}(i.XFAObject),Ht=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[c,"xsl",!0])).debug=null,r.uri=null,r}return y(t,e),P(t)}(i.XFAObject),qt=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[c,"zpl",!0])).name=e.name?e.name.trim():"",r.batchOutput=null,r.flipLabel=null,r.fontInfo=null,r.xdc=null,r}return y(t,e),P(t)}(i.XFAObject),zt=function(e){function t(){M(this,t)}return P(t,null,[{key:e,value:function(e,r){if(t.hasOwnProperty(e))return t[e](r)}},{key:"acrobat",value:function(e){return new u(e)}},{key:"acrobat7",value:function(e){return new l(e)}},{key:"ADBE_JSConsole",value:function(e){return new h(e)}},{key:"ADBE_JSDebugger",value:function(e){return new f(e)}},{key:"addSilentPrint",value:function(e){return new p(e)}},{key:"addViewerPreferences",value:function(e){return new g(e)}},{key:"adjustData",value:function(e){return new v(e)}},{key:"adobeExtensionLevel",value:function(e){return new m(e)}},{key:"agent",value:function(e){return new b(e)}},{key:"alwaysEmbed",value:function(e){return new w(e)}},{key:"amd",value:function(e){return new k(e)}},{key:"area",value:function(e){return new S(e)}},{key:"attributes",value:function(e){return new A(e)}},{key:"autoSave",value:function(e){return new C(e)}},{key:"base",value:function(e){return new O(e)}},{key:"batchOutput",value:function(e){return new F(e)}},{key:"behaviorOverride",value:function(e){return new I(e)}},{key:"cache",value:function(e){return new T(e)}},{key:"change",value:function(e){return new E(e)}},{key:"common",value:function(e){return new R(e)}},{key:"compress",value:function(e){return new N(e)}},{key:"compressLogicalStructure",value:function(e){return new D(e)}},{key:"compressObjectStream",value:function(e){return new B(e)}},{key:"compression",value:function(e){return new L(e)}},{key:"config",value:function(e){return new _(e)}},{key:"conformance",value:function(e){return new j(e)}},{key:"contentCopy",value:function(e){return new U(e)}},{key:"copies",value:function(e){return new $(e)}},{key:"creator",value:function(e){return new X(e)}},{key:"currentPage",value:function(e){return new H(e)}},{key:"data",value:function(e){return new q(e)}},{key:"debug",value:function(e){return new z(e)}},{key:"defaultTypeface",value:function(e){return new G(e)}},{key:"destination",value:function(e){return new W(e)}},{key:"documentAssembly",value:function(e){return new V(e)}},{key:"driver",value:function(e){return new K(e)}},{key:"duplexOption",value:function(e){return new Y(e)}},{key:"dynamicRender",value:function(e){return new J(e)}},{key:"embed",value:function(e){return new Z(e)}},{key:"encrypt",value:function(e){return new Q(e)}},{key:"encryption",value:function(e){return new ee(e)}},{key:"encryptionLevel",value:function(e){return new te(e)}},{key:"enforce",value:function(e){return new re(e)}},{key:"equate",value:function(e){return new ne(e)}},{key:"equateRange",value:function(e){return new ae(e)}},{key:"exclude",value:function(e){return new ie(e)}},{key:"excludeNS",value:function(e){return new oe(e)}},{key:"flipLabel",value:function(e){return new se(e)}},{key:"fontInfo",value:function(e){return new ce(e)}},{key:"formFieldFilling",value:function(e){return new ue(e)}},{key:"groupParent",value:function(e){return new le(e)}},{key:"ifEmpty",value:function(e){return new he(e)}},{key:"includeXDPContent",value:function(e){return new fe(e)}},{key:"incrementalLoad",value:function(e){return new de(e)}},{key:"incrementalMerge",value:function(e){return new pe(e)}},{key:"interactive",value:function(e){return new ge(e)}},{key:"jog",value:function(e){return new ve(e)}},{key:"labelPrinter",value:function(e){return new me(e)}},{key:"layout",value:function(e){return new ye(e)}},{key:"level",value:function(e){return new be(e)}},{key:"linearized",value:function(e){return new we(e)}},{key:"locale",value:function(e){return new ke(e)}},{key:"localeSet",value:function(e){return new xe(e)}},{key:"log",value:function(e){return new Se(e)}},{key:"map",value:function(e){return new Ae(e)}},{key:"mediumInfo",value:function(e){return new Ce(e)}},{key:"message",value:function(e){return new Oe(e)}},{key:"messaging",value:function(e){return new Fe(e)}},{key:"mode",value:function(e){return new Ie(e)}},{key:"modifyAnnots",value:function(e){return new Te(e)}},{key:"msgId",value:function(e){return new Me(e)}},{key:"nameAttr",value:function(e){return new Ee(e)}},{key:"neverEmbed",value:function(e){return new Pe(e)}},{key:"numberOfCopies",value:function(e){return new Re(e)}},{key:"openAction",value:function(e){return new Ne(e)}},{key:"output",value:function(e){return new De(e)}},{key:"outputBin",value:function(e){return new Be(e)}},{key:"outputXSL",value:function(e){return new Le(e)}},{key:"overprint",value:function(e){return new _e(e)}},{key:"packets",value:function(e){return new je(e)}},{key:"pageOffset",value:function(e){return new Ue(e)}},{key:"pageRange",value:function(e){return new $e(e)}},{key:"pagination",value:function(e){return new Xe(e)}},{key:"paginationOverride",value:function(e){return new He(e)}},{key:"part",value:function(e){return new qe(e)}},{key:"pcl",value:function(e){return new ze(e)}},{key:"pdf",value:function(e){return new Ge(e)}},{key:"pdfa",value:function(e){return new We(e)}},{key:"permissions",value:function(e){return new Ve(e)}},{key:"pickTrayByPDFSize",value:function(e){return new Ke(e)}},{key:"picture",value:function(e){return new Ye(e)}},{key:"plaintextMetadata",value:function(e){return new Je(e)}},{key:"presence",value:function(e){return new Ze(e)}},{key:"present",value:function(e){return new Qe(e)}},{key:"print",value:function(e){return new et(e)}},{key:"printHighQuality",value:function(e){return new tt(e)}},{key:"printScaling",value:function(e){return new rt(e)}},{key:"printerName",value:function(e){return new nt(e)}},{key:"producer",value:function(e){return new at(e)}},{key:"ps",value:function(e){return new it(e)}},{key:"range",value:function(e){return new ot(e)}},{key:"record",value:function(e){return new st(e)}},{key:"relevant",value:function(e){return new ct(e)}},{key:"rename",value:function(e){return new ut(e)}},{key:"renderPolicy",value:function(e){return new lt(e)}},{key:"runScripts",value:function(e){return new ht(e)}},{key:"script",value:function(e){return new ft(e)}},{key:"scriptModel",value:function(e){return new dt(e)}},{key:"severity",value:function(e){return new pt(e)}},{key:"silentPrint",value:function(e){return new gt(e)}},{key:"staple",value:function(e){return new vt(e)}},{key:"startNode",value:function(e){return new mt(e)}},{key:"startPage",value:function(e){return new yt(e)}},{key:"submitFormat",value:function(e){return new bt(e)}},{key:"submitUrl",value:function(e){return new wt(e)}},{key:"subsetBelow",value:function(e){return new kt(e)}},{key:"suppressBanner",value:function(e){return new xt(e)}},{key:"tagged",value:function(e){return new St(e)}},{key:"template",value:function(e){return new At(e)}},{key:"templateCache",value:function(e){return new Ft(e)}},{key:"threshold",value:function(e){return new Ct(e)}},{key:"to",value:function(e){return new Ot(e)}},{key:"trace",value:function(e){return new It(e)}},{key:"transform",value:function(e){return new Tt(e)}},{key:"type",value:function(e){return new Mt(e)}},{key:"uri",value:function(e){return new Et(e)}},{key:"validate",value:function(e){return new Pt(e)}},{key:"validateApprovalSignatures",value:function(e){return new Rt(e)}},{key:"validationMessaging",value:function(e){return new Nt(e)}},{key:"version",value:function(e){return new Dt(e)}},{key:"versionControl",value:function(e){return new Bt(e)}},{key:"viewerPreferences",value:function(e){return new Lt(e)}},{key:"webClient",value:function(e){return new _t(e)}},{key:"whitespace",value:function(e){return new jt(e)}},{key:"window",value:function(e){return new Ut(e)}},{key:"xdc",value:function(e){return new $t(e)}},{key:"xdp",value:function(e){return new Xt(e)}},{key:"xsl",value:function(e){return new Ht(e)}},{key:"zpl",value:function(e){return new qt(e)}}]),t}(n.$buildXFAObject);t.ConfigNamespace=zt},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectionSetNamespace=void 0;var n=r(234),a=r(240),i=n.NamespaceIds.connectionSet.id,o=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[i,"connectionSet",!0])).wsdlConnection=new a.XFAObjectArray,r.xmlConnection=new a.XFAObjectArray,r.xsdConnection=new a.XFAObjectArray,r}return y(t,e),P(t)}(a.XFAObject),s=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[i,"effectiveInputPolicy"])).id=e.id||"",r.name=e.name||"",r.use=e.use||"",r.usehref=e.usehref||"",r}return y(t,e),P(t)}(a.XFAObject),c=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[i,"effectiveOutputPolicy"])).id=e.id||"",r.name=e.name||"",r.use=e.use||"",r.usehref=e.usehref||"",r}return y(t,e),P(t)}(a.XFAObject),u=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[i,"operation"])).id=e.id||"",r.input=e.input||"",r.name=e.name||"",r.output=e.output||"",r.use=e.use||"",r.usehref=e.usehref||"",r}return y(t,e),P(t)}(a.StringObject),l=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[i,"rootElement"])).id=e.id||"",r.name=e.name||"",r.use=e.use||"",r.usehref=e.usehref||"",r}return y(t,e),P(t)}(a.StringObject),h=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[i,"soapAction"])).id=e.id||"",r.name=e.name||"",r.use=e.use||"",r.usehref=e.usehref||"",r}return y(t,e),P(t)}(a.StringObject),f=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[i,"soapAddress"])).id=e.id||"",r.name=e.name||"",r.use=e.use||"",r.usehref=e.usehref||"",r}return y(t,e),P(t)}(a.StringObject),p=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[i,"uri"])).id=e.id||"",r.name=e.name||"",r.use=e.use||"",r.usehref=e.usehref||"",r}return y(t,e),P(t)}(a.StringObject),g=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[i,"wsdlAddress"])).id=e.id||"",r.name=e.name||"",r.use=e.use||"",r.usehref=e.usehref||"",r}return y(t,e),P(t)}(a.StringObject),v=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[i,"wsdlConnection",!0])).dataDescription=e.dataDescription||"",r.name=e.name||"",r.effectiveInputPolicy=null,r.effectiveOutputPolicy=null,r.operation=null,r.soapAction=null,r.soapAddress=null,r.wsdlAddress=null,r}return y(t,e),P(t)}(a.XFAObject),m=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[i,"xmlConnection",!0])).dataDescription=e.dataDescription||"",r.name=e.name||"",r.uri=null,r}return y(t,e),P(t)}(a.XFAObject),b=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[i,"xsdConnection",!0])).dataDescription=e.dataDescription||"",r.name=e.name||"",r.rootElement=null,r.uri=null,r}return y(t,e),P(t)}(a.XFAObject),w=function(e){function t(){M(this,t)}return P(t,null,[{key:e,value:function(e,r){if(t.hasOwnProperty(e))return t[e](r)}},{key:"connectionSet",value:function(e){return new o(e)}},{key:"effectiveInputPolicy",value:function(e){return new s(e)}},{key:"effectiveOutputPolicy",value:function(e){return new c(e)}},{key:"operation",value:function(e){return new u(e)}},{key:"rootElement",value:function(e){return new l(e)}},{key:"soapAction",value:function(e){return new h(e)}},{key:"soapAddress",value:function(e){return new f(e)}},{key:"uri",value:function(e){return new p(e)}},{key:"wsdlAddress",value:function(e){return new g(e)}},{key:"wsdlConnection",value:function(e){return new v(e)}},{key:"xmlConnection",value:function(e){return new m(e)}},{key:"xsdConnection",value:function(e){return new b(e)}}]),t}(n.$buildXFAObject);t.ConnectionSetNamespace=w},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.DatasetsNamespace=void 0;var n=r(228),a=r(234),i=r(240),o=a.NamespaceIds.datasets.id,s=function(e,t){function r(e){return M(this,r),d(this,r,[o,"data",e])}return y(r,e),P(r,[{key:t,value:function(){return!0}}]),r}(i.XmlObject,n.$isNsAgnostic),c=function(e,t){function r(e){var t;return M(this,r),(t=d(this,r,[o,"datasets",!0])).data=null,t.Signature=null,t}return y(r,e),P(r,[{key:t,value:function(e){var t=e[n.$nodeName];("data"===t&&e[n.$namespaceId]===o||"Signature"===t&&e[n.$namespaceId]===a.NamespaceIds.signature.id)&&(this[t]=e),this[n.$appendChild](e)}}]),r}(i.XFAObject,n.$onChild),u=function(e){function t(){M(this,t)}return P(t,null,[{key:e,value:function(e,r){if(t.hasOwnProperty(e))return t[e](r)}},{key:"datasets",value:function(e){return new c(e)}},{key:"data",value:function(e){return new s(e)}}]),t}(a.$buildXFAObject);t.DatasetsNamespace=u},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.LocaleSetNamespace=void 0;var n=r(234),a=r(240),i=r(237),o=n.NamespaceIds.localeSet.id,s=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[o,"calendarSymbols",!0])).name="gregorian",r.dayNames=new a.XFAObjectArray(2),r.eraNames=null,r.meridiemNames=null,r.monthNames=new a.XFAObjectArray(2),r}return y(t,e),P(t)}(a.XFAObject),c=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[o,"currencySymbol"])).name=(0,i.getStringOption)(e.name,["symbol","isoname","decimal"]),r}return y(t,e),P(t)}(a.StringObject),u=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[o,"currencySymbols",!0])).currencySymbol=new a.XFAObjectArray(3),r}return y(t,e),P(t)}(a.XFAObject),l=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[o,"datePattern"])).name=(0,i.getStringOption)(e.name,["full","long","med","short"]),r}return y(t,e),P(t)}(a.StringObject),h=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[o,"datePatterns",!0])).datePattern=new a.XFAObjectArray(4),r}return y(t,e),P(t)}(a.XFAObject),f=function(e){function t(e){return M(this,t),d(this,t,[o,"dateTimeSymbols"])}return y(t,e),P(t)}(a.ContentObject),p=function(e){function t(e){return M(this,t),d(this,t,[o,"day"])}return y(t,e),P(t)}(a.StringObject),g=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[o,"dayNames",!0])).abbr=(0,i.getInteger)({data:e.abbr,defaultValue:0,validate:function(e){return 1===e}}),r.day=new a.XFAObjectArray(7),r}return y(t,e),P(t)}(a.XFAObject),v=function(e){function t(e){return M(this,t),d(this,t,[o,"era"])}return y(t,e),P(t)}(a.StringObject),m=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[o,"eraNames",!0])).era=new a.XFAObjectArray(2),r}return y(t,e),P(t)}(a.XFAObject),b=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[o,"locale",!0])).desc=e.desc||"",r.name="isoname",r.calendarSymbols=null,r.currencySymbols=null,r.datePatterns=null,r.dateTimeSymbols=null,r.numberPatterns=null,r.numberSymbols=null,r.timePatterns=null,r.typeFaces=null,r}return y(t,e),P(t)}(a.XFAObject),w=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[o,"localeSet",!0])).locale=new a.XFAObjectArray,r}return y(t,e),P(t)}(a.XFAObject),k=function(e){function t(e){return M(this,t),d(this,t,[o,"meridiem"])}return y(t,e),P(t)}(a.StringObject),x=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[o,"meridiemNames",!0])).meridiem=new a.XFAObjectArray(2),r}return y(t,e),P(t)}(a.XFAObject),S=function(e){function t(e){return M(this,t),d(this,t,[o,"month"])}return y(t,e),P(t)}(a.StringObject),A=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[o,"monthNames",!0])).abbr=(0,i.getInteger)({data:e.abbr,defaultValue:0,validate:function(e){return 1===e}}),r.month=new a.XFAObjectArray(12),r}return y(t,e),P(t)}(a.XFAObject),C=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[o,"numberPattern"])).name=(0,i.getStringOption)(e.name,["full","long","med","short"]),r}return y(t,e),P(t)}(a.StringObject),O=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[o,"numberPatterns",!0])).numberPattern=new a.XFAObjectArray(4),r}return y(t,e),P(t)}(a.XFAObject),F=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[o,"numberSymbol"])).name=(0,i.getStringOption)(e.name,["decimal","grouping","percent","minus","zero"]),r}return y(t,e),P(t)}(a.StringObject),I=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[o,"numberSymbols",!0])).numberSymbol=new a.XFAObjectArray(5),r}return y(t,e),P(t)}(a.XFAObject),T=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[o,"timePattern"])).name=(0,i.getStringOption)(e.name,["full","long","med","short"]),r}return y(t,e),P(t)}(a.StringObject),E=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[o,"timePatterns",!0])).timePattern=new a.XFAObjectArray(4),r}return y(t,e),P(t)}(a.XFAObject),R=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[o,"typeFace",!0])).name=""|e.name,r}return y(t,e),P(t)}(a.XFAObject),N=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[o,"typeFaces",!0])).typeFace=new a.XFAObjectArray,r}return y(t,e),P(t)}(a.XFAObject),D=function(e){function t(){M(this,t)}return P(t,null,[{key:e,value:function(e,r){if(t.hasOwnProperty(e))return t[e](r)}},{key:"calendarSymbols",value:function(e){return new s(e)}},{key:"currencySymbol",value:function(e){return new c(e)}},{key:"currencySymbols",value:function(e){return new u(e)}},{key:"datePattern",value:function(e){return new l(e)}},{key:"datePatterns",value:function(e){return new h(e)}},{key:"dateTimeSymbols",value:function(e){return new f(e)}},{key:"day",value:function(e){return new p(e)}},{key:"dayNames",value:function(e){return new g(e)}},{key:"era",value:function(e){return new v(e)}},{key:"eraNames",value:function(e){return new m(e)}},{key:"locale",value:function(e){return new b(e)}},{key:"localeSet",value:function(e){return new w(e)}},{key:"meridiem",value:function(e){return new k(e)}},{key:"meridiemNames",value:function(e){return new x(e)}},{key:"month",value:function(e){return new S(e)}},{key:"monthNames",value:function(e){return new A(e)}},{key:"numberPattern",value:function(e){return new C(e)}},{key:"numberPatterns",value:function(e){return new O(e)}},{key:"numberSymbol",value:function(e){return new F(e)}},{key:"numberSymbols",value:function(e){return new I(e)}},{key:"timePattern",value:function(e){return new T(e)}},{key:"timePatterns",value:function(e){return new E(e)}},{key:"typeFace",value:function(e){return new R(e)}},{key:"typeFaces",value:function(e){return new N(e)}}]),t}(n.$buildXFAObject);t.LocaleSetNamespace=D},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.SignatureNamespace=void 0;var n=r(234),a=r(240),i=n.NamespaceIds.signature.id,o=function(e){function t(e){return M(this,t),d(this,t,[i,"signature",!0])}return y(t,e),P(t)}(a.XFAObject),s=function(e){function t(){M(this,t)}return P(t,null,[{key:e,value:function(e,r){if(t.hasOwnProperty(e))return t[e](r)}},{key:"signature",value:function(e){return new o(e)}}]),t}(n.$buildXFAObject);t.SignatureNamespace=s},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.StylesheetNamespace=void 0;var n=r(234),a=r(240),i=n.NamespaceIds.stylesheet.id,o=function(e){function t(e){return M(this,t),d(this,t,[i,"stylesheet",!0])}return y(t,e),P(t)}(a.XFAObject),s=function(e){function t(){M(this,t)}return P(t,null,[{key:e,value:function(e,r){if(t.hasOwnProperty(e))return t[e](r)}},{key:"stylesheet",value:function(e){return new o(e)}}]),t}(n.$buildXFAObject);t.StylesheetNamespace=s},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.XdpNamespace=void 0;var n=r(234),a=r(228),i=r(240),o=n.NamespaceIds.xdp.id,s=function(e,t){function r(e){var t;return M(this,r),(t=d(this,r,[o,"xdp",!0])).uuid=e.uuid||"",t.timeStamp=e.timeStamp||"",t.config=null,t.connectionSet=null,t.datasets=null,t.localeSet=null,t.stylesheet=new i.XFAObjectArray,t.template=null,t}return y(r,e),P(r,[{key:t,value:function(e){var t=n.NamespaceIds[e[a.$nodeName]];return t&&e[a.$namespaceId]===t.id}}]),r}(i.XFAObject,a.$onChildCheck),c=function(e){function t(){M(this,t)}return P(t,null,[{key:e,value:function(e,r){if(t.hasOwnProperty(e))return t[e](r)}},{key:"xdp",value:function(e){return new s(e)}}]),t}(n.$buildXFAObject);t.XdpNamespace=c},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.XhtmlNamespace=void 0,r(116),r(126),r(128),r(131),r(133),r(135),r(137);var n=r(228),i=r(234),o=r(236),s=r(237),c=r(240),u=i.NamespaceIds.xhtml.id,l=Symbol(),h=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"]),f=new Map([["page-break-after","breakAfter"],["page-break-before","breakBefore"],["page-break-inside","breakInside"],["kerning-mode",function(e){return"none"===e?"none":"normal"}],["xfa-font-horizontal-scale",function(e){return"scaleX(".concat(Math.max(0,Math.min(parseInt(e)/100)).toFixed(2),")")}],["xfa-font-vertical-scale",function(e){return"scaleY(".concat(Math.max(0,Math.min(parseInt(e)/100)).toFixed(2),")")}],["xfa-spacerun",""],["xfa-tab-stops",""],["font-size",function(e,t){return e=t.fontSize=(0,s.getMeasurement)(e),(0,o.measureToString)(.99*e)}],["letter-spacing",function(e){return(0,o.measureToString)((0,s.getMeasurement)(e))}],["line-height",function(e){return(0,o.measureToString)((0,s.getMeasurement)(e))}],["margin",function(e){return(0,o.measureToString)((0,s.getMeasurement)(e))}],["margin-bottom",function(e){return(0,o.measureToString)((0,s.getMeasurement)(e))}],["margin-left",function(e){return(0,o.measureToString)((0,s.getMeasurement)(e))}],["margin-right",function(e){return(0,o.measureToString)((0,s.getMeasurement)(e))}],["margin-top",function(e){return(0,o.measureToString)((0,s.getMeasurement)(e))}],["text-indent",function(e){return(0,o.measureToString)((0,s.getMeasurement)(e))}],["font-family",function(e){return e}],["vertical-align",function(e){return(0,o.measureToString)((0,s.getMeasurement)(e))}]]),p=/\s+/g,g=/[\r\n]+/g,v=/\r\n?/g;function b(e,t,r){var a=Object.create(null);if(!e)return a;var i,c=Object.create(null),u=x(e.split(";").map((function(e){return e.split(":",2)})));try{for(u.s();!(i=u.n()).done;){var l=S(i.value,2),h=l[0],d=l[1],p=f.get(h);if(""!==p){var g=d;p&&(g="string"==typeof p?p:p(d,c)),h.endsWith("scale")?a.transform=a.transform?"".concat(a[h]," ").concat(g):g:a[h.replaceAll(/-([a-zA-Z])/g,(function(e,t){return t.toUpperCase()}))]=g}}}catch(e){u.e(e)}finally{u.f()}if(a.fontFamily&&(0,o.setFontFamily)({typeface:a.fontFamily,weight:a.fontWeight||"normal",posture:a.fontStyle||"normal",size:c.fontSize||0},t,t[n.$globalData].fontFinder,a),r&&a.verticalAlign&&"0px"!==a.verticalAlign&&a.fontSize){var v=(0,s.getMeasurement)(a.fontSize);a.fontSize=(0,o.measureToString)(.583*v),a.verticalAlign=(0,o.measureToString)(Math.sign((0,s.getMeasurement)(a.verticalAlign))*v*.333)}return r&&a.fontSize&&(a.fontSize="calc(".concat(a.fontSize," * var(--scale-factor))")),(0,o.fixTextIndent)(a),a}var w=new Set(["body","html"]),k=function(e,t,r,i,o,c){function f(e,t){var r;return M(this,f),(r=d(this,f,[u,t]))[l]=!1,r.style=e.style||"",r}return y(f,e),P(f,[{key:t,value:function(e){a(m(f.prototype),n.$clean,this).call(this,e),this.style=function(e){return e.style?e.style.trim().split(/\s*;\s*/).filter((function(e){return!!e})).map((function(e){return e.split(/\s*:\s*/,2)})).filter((function(t){var r=S(t,2),a=r[0],i=r[1];return"font-family"===a&&e[n.$globalData].usedTypefaces.add(i),h.has(a)})).map((function(e){return e.join(":")})).join(";"):""}(this)}},{key:r,value:function(){return!w.has(this[n.$nodeName])}},{key:i,value:function(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1]?this[l]=!0:(e=e.replaceAll(g,""),this.style.includes("xfa-spacerun:yes")||(e=e.replaceAll(p," "))),e&&(this[n.$content]+=e)}},{key:o,value:function(e){var t,r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=Object.create(null),i={top:NaN,bottom:NaN,left:NaN,right:NaN},o=null,c=x(this.style.split(";").map((function(e){return e.split(":",2)})));try{for(c.s();!(t=c.n()).done;){var u=S(t.value,2),l=(u[0],u[1]);switch(e){case"font-family":a.typeface=(0,s.stripQuotes)(l);break;case"font-size":a.size=(0,s.getMeasurement)(l);break;case"font-weight":a.weight=l;break;case"font-style":a.posture=l;break;case"letter-spacing":a.letterSpacing=(0,s.getMeasurement)(l);break;case"margin":var h=l.split(/ \t/).map((function(e){return(0,s.getMeasurement)(e)}));switch(h.length){case 1:i.top=i.bottom=i.left=i.right=h[0];break;case 2:i.top=i.bottom=h[0],i.left=i.right=h[1];break;case 3:i.top=h[0],i.bottom=h[2],i.left=i.right=h[1];break;case 4:i.top=h[0],i.left=h[1],i.bottom=h[2],i.right=h[3]}break;case"margin-top":i.top=(0,s.getMeasurement)(l);break;case"margin-bottom":i.bottom=(0,s.getMeasurement)(l);break;case"margin-left":i.left=(0,s.getMeasurement)(l);break;case"margin-right":i.right=(0,s.getMeasurement)(l);break;case"line-height":o=(0,s.getMeasurement)(l)}}}catch(e){c.e(e)}finally{c.f()}if(e.pushData(a,i,o),this[n.$content])e.addString(this[n.$content]);else{var f,d=x(this[n.$getChildren]());try{for(d.s();!(f=d.n()).done;){var p=f.value;"#text"!==p[n.$nodeName]?p[n.$pushGlyphs](e):e.addString(p[n.$content])}}catch(e){d.e(e)}finally{d.f()}}r&&e.popFont()}},{key:c,value:function(e){var t,r=[];return this[n.$extra]={children:r},this[n.$childrenToHTML]({}),0!==r.length||this[n.$content]?(t=this[l]?this[n.$content]?this[n.$content].replaceAll(v,"\n"):void 0:this[n.$content]||void 0,s.HTMLResult.success({name:this[n.$nodeName],attributes:{href:this.href,style:b(this.style,this,this[l])},children:r,value:t})):s.HTMLResult.EMPTY}}]),f}(c.XmlObject,n.$clean,n.$acceptWhitespace,n.$onText,n.$pushGlyphs,n.$toHTML),A=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[e,"a"])).href=(0,o.fixURL)(e.href)||"",r}return y(t,e),P(t)}(k),C=function(e,t){function r(e){return M(this,r),d(this,r,[e,"b"])}return y(r,e),P(r,[{key:t,value:function(e){e.pushFont({weight:"bold"}),a(m(r.prototype),n.$pushGlyphs,this).call(this,e),e.popFont()}}]),r}(k,n.$pushGlyphs),O=function(e,t){function r(e){return M(this,r),d(this,r,[e,"body"])}return y(r,e),P(r,[{key:t,value:function(e){var t=a(m(r.prototype),n.$toHTML,this).call(this,e),i=t.html;return i?(i.name="div",i.attributes.class=["xfaRich"],t):s.HTMLResult.EMPTY}}]),r}(k,n.$toHTML),F=function(e,t,r,n){function a(e){return M(this,a),d(this,a,[e,"br"])}return y(a,e),P(a,[{key:t,value:function(){return"\n"}},{key:r,value:function(e){e.addString("\n")}},{key:n,value:function(e){return s.HTMLResult.success({name:"br"})}}]),a}(k,n.$text,n.$pushGlyphs,n.$toHTML),I=function(e,t){function r(e){return M(this,r),d(this,r,[e,"html"])}return y(r,e),P(r,[{key:t,value:function(e){var t=[];if(this[n.$extra]={children:t},this[n.$childrenToHTML]({}),0===t.length)return s.HTMLResult.success({name:"div",attributes:{class:["xfaRich"],style:{}},value:this[n.$content]||""});if(1===t.length){var r,a=t[0];if(null!==(r=a.attributes)&&void 0!==r&&r.class.includes("xfaRich"))return s.HTMLResult.success(a)}return s.HTMLResult.success({name:"div",attributes:{class:["xfaRich"],style:{}},children:t})}}]),r}(k,n.$toHTML),T=function(e,t){function r(e){return M(this,r),d(this,r,[e,"i"])}return y(r,e),P(r,[{key:t,value:function(e){e.pushFont({posture:"italic"}),a(m(r.prototype),n.$pushGlyphs,this).call(this,e),e.popFont()}}]),r}(k,n.$pushGlyphs),E=function(e){function t(e){return M(this,t),d(this,t,[e,"li"])}return y(t,e),P(t)}(k),R=function(e){function t(e){return M(this,t),d(this,t,[e,"ol"])}return y(t,e),P(t)}(k),N=function(e,t,r){function i(e){return M(this,i),d(this,i,[e,"p"])}return y(i,e),P(i,[{key:t,value:function(e){a(m(i.prototype),n.$pushGlyphs,this).call(this,e,!1),e.addString("\n"),e.addPara(),e.popFont()}},{key:r,value:function(){return this[n.$getParent]()[n.$getChildren]().at(-1)===this?a(m(i.prototype),n.$text,this).call(this):a(m(i.prototype),n.$text,this).call(this)+"\n"}}]),i}(k,n.$pushGlyphs,n.$text),D=function(e){function t(e){return M(this,t),d(this,t,[e,"span"])}return y(t,e),P(t)}(k),B=function(e){function t(e){return M(this,t),d(this,t,[e,"sub"])}return y(t,e),P(t)}(k),L=function(e){function t(e){return M(this,t),d(this,t,[e,"sup"])}return y(t,e),P(t)}(k),_=function(e){function t(e){return M(this,t),d(this,t,[e,"ul"])}return y(t,e),P(t)}(k),j=function(e){function t(){M(this,t)}return P(t,null,[{key:e,value:function(e,r){if(t.hasOwnProperty(e))return t[e](r)}},{key:"a",value:function(e){return new A(e)}},{key:"b",value:function(e){return new C(e)}},{key:"body",value:function(e){return new O(e)}},{key:"br",value:function(e){return new F(e)}},{key:"html",value:function(e){return new I(e)}},{key:"i",value:function(e){return new T(e)}},{key:"li",value:function(e){return new E(e)}},{key:"ol",value:function(e){return new R(e)}},{key:"p",value:function(e){return new N(e)}},{key:"span",value:function(e){return new D(e)}},{key:"sub",value:function(e){return new B(e)}},{key:"sup",value:function(e){return new L(e)}},{key:"ul",value:function(e){return new _(e)}}]),t}(i.$buildXFAObject);t.XhtmlNamespace=j},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.UnknownNamespace=void 0;var n=r(234),a=r(240),i=function(e){function t(e){M(this,t),this.namespaceId=e}return P(t,[{key:e,value:function(e,t){return new a.XmlObject(this.namespaceId,e,t)}}]),t}(n.$buildXFAObject);t.UnknownNamespace=i},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.DatasetReader=void 0,r(2);var n=r(144),i=r(149),o=r(217);function s(e){try{return(0,n.stringToUTF8String)(e)}catch(t){return(0,n.warn)('UTF-8 decoding failed: "'.concat(t,'".')),e}}var c=function(e){function t(e){var r;return M(this,t),(r=d(this,t,[e])).node=null,r}return y(t,e),P(t,[{key:"onEndElement",value:function(e){var r=a(m(t.prototype),"onEndElement",this).call(this,e);if(r&&"xfa:datasets"===e)throw this.node=r,new Error("Aborting DatasetXMLParser.")}}]),t}(o.SimpleXMLParser);t.DatasetReader=function(){function e(t){if(M(this,e),t.datasets)this.node=new o.SimpleXMLParser({hasAttributes:!0}).parseFromString(t.datasets).documentElement;else{var r=new c({hasAttributes:!0});try{r.parseFromString(t["xdp:xdp"])}catch(e){}this.node=r.node}}return P(e,[{key:"getValue",value:function(e){if(!this.node||!e)return"";var t=this.node.searchNode((0,i.parseXFAPath)(e),0);if(!t)return"";var r=t.firstChild;return"value"===(null==r?void 0:r.nodeName)?t.children.map((function(e){return s(e.textContent)})):s(t.textContent)}}]),e}()},function(e,t,r){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.XRef=void 0,r(116),r(126),r(128),r(131),r(133),r(135),r(137),r(84),r(93),r(94),r(97),r(99),r(101),r(105),r(108),r(115),r(139),r(2);var a=r(144),i=r(150),o=r(166),c=r(149),h=r(151),d=r(218);t.XRef=(n=new WeakMap,function(){function e(t,r){M(this,e),s(this,n,{writable:!0,value:null}),this.stream=t,this.pdfManager=r,this.entries=[],this._xrefStms=new Set,this._cacheMap=new Map,this._pendingRefs=new i.RefSet,this._newPersistentRefNum=null,this._newTemporaryRefNum=null}var t,r;return P(e,[{key:"getNewPersistentRef",value:function(e){null===this._newPersistentRefNum&&(this._newPersistentRefNum=this.entries.length||1);var t=this._newPersistentRefNum++;return this._cacheMap.set(t,e),i.Ref.get(t,0)}},{key:"getNewTemporaryRef",value:function(){return null===this._newTemporaryRefNum&&(this._newTemporaryRefNum=this.entries.length||1),i.Ref.get(this._newTemporaryRefNum++,0)}},{key:"resetNewTemporaryRef",value:function(){this._newTemporaryRefNum=null}},{key:"setStartXRef",value:function(e){this.startXRefQueue=[e]}},{key:"parse",value:function(){var e,t,r,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];n?((0,a.warn)("Indexing all PDF objects"),e=this.indexObjects()):e=this.readXRef(),e.assignXref(this),this.trailer=e;try{t=e.get("Encrypt")}catch(e){if(e instanceof c.MissingDataException)throw e;(0,a.warn)('XRef.parse - Invalid "Encrypt" reference: "'.concat(e,'".'))}if(t instanceof i.Dict){var o=e.get("ID"),s=null!=o&&o.length?o[0]:"";t.suppressEncryption=!0,this.encrypt=new d.CipherTransformFactory(t,s,this.pdfManager.password)}try{r=e.get("Root")}catch(e){if(e instanceof c.MissingDataException)throw e;(0,a.warn)('XRef.parse - Invalid "Root" reference: "'.concat(e,'".'))}if(r instanceof i.Dict)try{if(r.get("Pages")instanceof i.Dict)return void(this.root=r)}catch(e){if(e instanceof c.MissingDataException)throw e;(0,a.warn)('XRef.parse - Invalid "Pages" reference: "'.concat(e,'".'))}if(!n)throw new c.XRefParseException;throw new a.InvalidPDFException("Invalid Root reference.")}},{key:"processXRefTable",value:function(e){"tableState"in this||(this.tableState={entryNum:0,streamPos:e.lexer.stream.pos,parserBuf1:e.buf1,parserBuf2:e.buf2});var t=this.readXRefTable(e);if(!(0,i.isCmd)(t,"trailer"))throw new a.FormatError("Invalid XRef table: could not find trailer dictionary");var r=e.getObj();if(r instanceof i.Dict||!r.dict||(r=r.dict),!(r instanceof i.Dict))throw new a.FormatError("Invalid XRef table: could not parse trailer dictionary");return delete this.tableState,r}},{key:"readXRefTable",value:function(e){var t,r=e.lexer.stream,n=this.tableState;for(r.pos=n.streamPos,e.buf1=n.parserBuf1,e.buf2=n.parserBuf2;;){if(!("firstEntryNum"in n)||!("entryCount"in n)){if((0,i.isCmd)(t=e.getObj(),"trailer"))break;n.firstEntryNum=t,n.entryCount=e.getObj()}var o=n.firstEntryNum,s=n.entryCount;if(!Number.isInteger(o)||!Number.isInteger(s))throw new a.FormatError("Invalid XRef table: wrong types in subsection header");for(var c=n.entryNum;c0;){var c=S(s,2),u=c[0],l=c[1];if(!Number.isInteger(u)||!Number.isInteger(l))throw new a.FormatError("Invalid XRef range fields: ".concat(u,", ").concat(l));if(!Number.isInteger(n)||!Number.isInteger(i)||!Number.isInteger(o))throw new a.FormatError("Invalid XRef entry fields length: ".concat(u,", ").concat(l));for(var h=t.entryNum;h=e.length);)r+=String.fromCharCode(n),n=e[t];return r}function t(e,t,r){for(var n=r.length,a=e.length,i=0;t=n)break;t++,i++}return i}var r=/\b(endobj|\d+\s+\d+\s+obj|xref|trailer\s*<<)\b/g,n=/\b(startxref|\d+\s+\d+\s+obj)\b/g,s=/^(\d+)\s+(\d+)\s+obj\b/,u=new Uint8Array([116,114,97,105,108,101,114]),l=new Uint8Array([115,116,97,114,116,120,114,101,102]),h=new Uint8Array([47,88,82,101,102]);this.entries.length=0,this._cacheMap.clear();var f=this.stream;f.pos=0;for(var d=f.getBytes(),p=(0,a.bytesToString)(d),g=d.length,v=f.start,m=[],y=[];v=g)break;b=d[v]}while(10!==b&&13!==b);else++v}for(var R=0,N=y;R0&&void 0!==arguments[0]&&arguments[0],t=this.stream,r=new Set;this.startXRefQueue.length;){try{var s=this.startXRefQueue[0];if(r.has(s)){(0,a.warn)("readXRef - skipping XRef table since it was already parsed."),this.startXRefQueue.shift();continue}r.add(s),t.pos=s+t.start;var f=new o.Parser({lexer:new o.Lexer(t),xref:this,allowStreams:!0}),d=void 0,p=f.getObj();if((0,i.isCmd)(p,"xref")){var g;d=this.processXRefTable(f),this.topDict||(this.topDict=d),p=d.get("XRefStm"),Number.isInteger(p)&&!this._xrefStms.has(p)&&(this._xrefStms.add(p),this.startXRefQueue.push(p),null!==(g=u(this,n))&&void 0!==g||l(this,n,p))}else{if(!Number.isInteger(p))throw new a.FormatError("Invalid XRef stream header");if(!(Number.isInteger(f.getObj())&&(0,i.isCmd)(f.getObj(),"obj")&&(p=f.getObj())instanceof h.BaseStream))throw new a.FormatError("Invalid XRef stream");if(d=this.processXRefStream(p),this.topDict||(this.topDict=d),!d)throw new a.FormatError("Failed to read XRef stream")}p=d.get("Prev"),Number.isInteger(p)?this.startXRefQueue.push(p):p instanceof i.Ref&&this.startXRefQueue.push(p.num)}catch(e){if(e instanceof c.MissingDataException)throw e;(0,a.info)("(while reading XRef): "+e)}this.startXRefQueue.shift()}if(this.topDict)return this.topDict;if(!e)throw new c.XRefParseException}},{key:"lastXRefStreamPos",get:function(){var e;return null!==(e=u(this,n))&&void 0!==e?e:this._xrefStms.size>0?Math.max.apply(Math,f(this._xrefStms)):null}},{key:"getEntry",value:function(e){var t=this.entries[e];return t&&!t.free&&t.offset?t:null}},{key:"fetchIfRef",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e instanceof i.Ref?this.fetch(e,t):e}},{key:"fetch",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!(e instanceof i.Ref))throw new Error("ref object is not a reference");var r=e.num,n=this._cacheMap.get(r);if(void 0!==n)return n instanceof i.Dict&&!n.objId&&(n.objId=e.toString()),n;var o=this.getEntry(r);if(null===o)return this._cacheMap.set(r,o),o;if(this._pendingRefs.has(e))return this._pendingRefs.remove(e),(0,a.warn)("Ignoring circular reference: ".concat(e,".")),i.CIRCULAR_REF;this._pendingRefs.put(e);try{o=o.uncompressed?this.fetchUncompressed(e,o,t):this.fetchCompressed(e,o,t),this._pendingRefs.remove(e)}catch(t){throw this._pendingRefs.remove(e),t}return o instanceof i.Dict?o.objId=e.toString():o instanceof h.BaseStream&&(o.dict.objId=e.toString()),o}},{key:"fetchUncompressed",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=e.gen,s=e.num;if(t.gen!==n){var u="Inconsistent generation in XRef: ".concat(e);if(this._generationFallback&&t.gen1&&void 0!==arguments[1]?arguments[1]:1,o=arguments.length>2?arguments[2]:void 0;if(!this.isCancelled){var s=this.desiredSize;this.desiredSize-=i,s>0&&this.desiredSize<=0&&(this.sinkCapability=new c.PromiseCapability,this.ready=this.sinkCapability.promise),a.postMessage({sourceName:r,targetName:n,stream:4,streamId:t,chunk:e},o)}},close:function(){this.isCancelled||(this.isCancelled=!0,a.postMessage({sourceName:r,targetName:n,stream:3,streamId:t}),delete i.streamSinks[t])},error:function(e){(0,c.assert)(e instanceof Error,"error must have a valid reason"),this.isCancelled||(this.isCancelled=!0,a.postMessage({sourceName:r,targetName:n,stream:5,streamId:t,reason:u(e)}))},sinkCapability:new c.PromiseCapability,onPull:null,onCancel:null,isCancelled:!1,desiredSize:e.desiredSize,ready:null};s.sinkCapability.resolve(),s.ready=s.sinkCapability.promise,this.streamSinks[t]=s,new Promise((function(t){t(o(e.data,s))})).then((function(){a.postMessage({sourceName:r,targetName:n,stream:8,streamId:t,success:!0})}),(function(e){a.postMessage({sourceName:r,targetName:n,stream:8,streamId:t,reason:u(e)})}))}function h(e){var t=e.streamId,r=this.sourceName,n=e.sourceName,a=this.comObj,i=this.streamControllers[t],l=this.streamSinks[t];switch(e.stream){case 8:e.success?i.startCall.resolve():i.startCall.reject(u(e.reason));break;case 7:e.success?i.pullCall.resolve():i.pullCall.reject(u(e.reason));break;case 6:if(!l){a.postMessage({sourceName:r,targetName:n,stream:7,streamId:t,success:!0});break}l.desiredSize<=0&&e.desiredSize>0&&l.sinkCapability.resolve(),l.desiredSize=e.desiredSize,new Promise((function(e){var t;e(null===(t=l.onPull)||void 0===t?void 0:t.call(l))})).then((function(){a.postMessage({sourceName:r,targetName:n,stream:7,streamId:t,success:!0})}),(function(e){a.postMessage({sourceName:r,targetName:n,stream:7,streamId:t,reason:u(e)})}));break;case 4:if((0,c.assert)(i,"enqueue should have stream controller"),i.isClosed)break;i.controller.enqueue(e.chunk);break;case 3:if((0,c.assert)(i,"close should have stream controller"),i.isClosed)break;i.isClosed=!0,i.controller.close(),o(this,s,f).call(this,i,t);break;case 5:(0,c.assert)(i,"error should have stream controller"),i.controller.error(u(e.reason)),o(this,s,f).call(this,i,t);break;case 2:e.success?i.cancelCall.resolve():i.cancelCall.reject(u(e.reason)),o(this,s,f).call(this,i,t);break;case 1:if(!l)break;new Promise((function(t){var r;t(null===(r=l.onCancel)||void 0===r?void 0:r.call(l,u(e.reason)))})).then((function(){a.postMessage({sourceName:r,targetName:n,stream:2,streamId:t,success:!0})}),(function(e){a.postMessage({sourceName:r,targetName:n,stream:2,streamId:t,reason:u(e)})})),l.sinkCapability.reject(u(e.reason)),l.isCancelled=!0,delete this.streamSinks[t];break;default:throw new Error("Unexpected stream case")}}function f(e,t){return d.apply(this,arguments)}function d(){return d=T(k().mark((function e(t,r){var n,a,i;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.allSettled([null===(n=t.startCall)||void 0===n?void 0:n.promise,null===(a=t.pullCall)||void 0===a?void 0:a.promise,null===(i=t.cancelCall)||void 0===i?void 0:i.promise]);case 2:delete this.streamControllers[r];case 3:case"end":return e.stop()}}),e,this)}))),d.apply(this,arguments)}t.MessageHandler=(n=new WeakSet,a=new WeakSet,s=new WeakSet,function(){function e(t,r,c){var f=this;M(this,e),i(this,s),i(this,a),i(this,n),this.sourceName=t,this.targetName=r,this.comObj=c,this.callbackId=1,this.streamId=1,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=function(e){var t=e.data;if(t.targetName===f.sourceName)if(t.stream)o(f,a,h).call(f,t);else if(t.callback){var r=t.callbackId,i=f.callbackCapabilities[r];if(!i)throw new Error("Cannot resolve callback ".concat(r));if(delete f.callbackCapabilities[r],1===t.callback)i.resolve(t.data);else{if(2!==t.callback)throw new Error("Unexpected callback case");i.reject(u(t.reason))}}else{var s=f.actionHandler[t.action];if(!s)throw new Error("Unknown action from worker: ".concat(t.action));if(t.callbackId){var d=f.sourceName,p=t.sourceName;new Promise((function(e){e(s(t.data))})).then((function(e){c.postMessage({sourceName:d,targetName:p,callback:1,callbackId:t.callbackId,data:e})}),(function(e){c.postMessage({sourceName:d,targetName:p,callback:2,callbackId:t.callbackId,reason:u(e)})}))}else t.streamId?o(f,n,l).call(f,t):s(t.data)}},c.addEventListener("message",this._onComObjOnMessage)}return P(e,[{key:"on",value:function(e,t){var r=this.actionHandler;if(r[e])throw new Error('There is already an actionName called "'.concat(e,'"'));r[e]=t}},{key:"send",value:function(e,t,r){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,data:t},r)}},{key:"sendWithPromise",value:function(e,t,r){var n=this.callbackId++,a=new c.PromiseCapability;this.callbackCapabilities[n]=a;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,callbackId:n,data:t},r)}catch(e){a.reject(e)}return a.promise}},{key:"sendWithStream",value:function(e,t,r,n){var a=this,i=this.streamId++,o=this.sourceName,s=this.targetName,l=this.comObj;return new ReadableStream({start:function(r){var u=new c.PromiseCapability;return a.streamControllers[i]={controller:r,startCall:u,pullCall:null,cancelCall:null,isClosed:!1},l.postMessage({sourceName:o,targetName:s,action:e,streamId:i,data:t,desiredSize:r.desiredSize},n),u.promise},pull:function(e){var t=new c.PromiseCapability;return a.streamControllers[i].pullCall=t,l.postMessage({sourceName:o,targetName:s,stream:6,streamId:i,desiredSize:e.desiredSize}),t.promise},cancel:function(e){(0,c.assert)(e instanceof Error,"cancel must have a valid reason");var t=new c.PromiseCapability;return a.streamControllers[i].cancelCall=t,a.streamControllers[i].isClosed=!0,l.postMessage({sourceName:o,targetName:s,stream:1,streamId:i,reason:u(e)}),t.promise}},r)}},{key:"destroy",value:function(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}]),e}())},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.PDFWorkerStream=void 0,r(139);var n=r(144);t.PDFWorkerStream=function(){function e(t){M(this,e),this._msgHandler=t,this._contentLength=null,this._fullRequestReader=null,this._rangeRequestReaders=[]}return P(e,[{key:"getFullReader",value:function(){return(0,n.assert)(!this._fullRequestReader,"PDFWorkerStream.getFullReader can only be called once."),this._fullRequestReader=new a(this._msgHandler),this._fullRequestReader}},{key:"getRangeReader",value:function(e,t){var r=new i(e,t,this._msgHandler);return this._rangeRequestReaders.push(r),r}},{key:"cancelAllRequests",value:function(e){this._fullRequestReader&&this._fullRequestReader.cancel(e);var t,r=x(this._rangeRequestReaders.slice(0));try{for(r.s();!(t=r.n()).done;)t.value.cancel(e)}catch(e){r.e(e)}finally{r.f()}}}]),e}();var a=function(){function e(t){var r=this;M(this,e),this._msgHandler=t,this.onProgress=null,this._contentLength=null,this._isRangeSupported=!1,this._isStreamingSupported=!1;var n=this._msgHandler.sendWithStream("GetReader");this._reader=n.getReader(),this._headersReady=this._msgHandler.sendWithPromise("ReaderHeadersReady").then((function(e){r._isStreamingSupported=e.isStreamingSupported,r._isRangeSupported=e.isRangeSupported,r._contentLength=e.contentLength}))}var t;return P(e,[{key:"headersReady",get:function(){return this._headersReady}},{key:"contentLength",get:function(){return this._contentLength}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"read",value:(t=T(k().mark((function e(){var t,r,n;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._reader.read();case 2:return t=e.sent,r=t.value,n=t.done,e.abrupt("return",n?{value:void 0,done:!0}:{value:r.buffer,done:!1});case 6:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"cancel",value:function(e){this._reader.cancel(e)}}]),e}(),i=function(){function e(t,r,n){M(this,e),this._msgHandler=n,this.onProgress=null;var a=this._msgHandler.sendWithStream("GetRangeReader",{begin:t,end:r});this._reader=a.getReader()}var t;return P(e,[{key:"isStreamingSupported",get:function(){return!1}},{key:"read",value:(t=T(k().mark((function e(){var t,r,n;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._reader.read();case 2:return t=e.sent,r=t.value,n=t.done,e.abrupt("return",n?{value:void 0,done:!0}:{value:r.buffer,done:!1});case 6:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"cancel",value:function(e){this._reader.cancel(e)}}]),e}()}],t={};function r(n){var a=t[n];if(void 0!==a)return a.exports;var i=t[n]={exports:{}};return e[n].call(i.exports,i,i.exports,r),i.exports}r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var c={};return function(){var e=c;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"WorkerMessageHandler",{enumerable:!0,get:function(){return t.WorkerMessageHandler}});var t=r(1)}(),c}()},"object"==("undefined"==typeof exports?"undefined":N(exports))&&"object"==("undefined"==typeof module?"undefined":N(module))?module.exports=t():"function"==typeof define&&define.amd?define("pdfjs-dist/build/pdf.worker",[],t):"object"==("undefined"==typeof exports?"undefined":N(exports))?exports["pdfjs-dist/build/pdf.worker"]=t():e["pdfjs-dist/build/pdf.worker"]=e.pdfjsWorker=t()})();