PageSourceSearch

https://brixely.com/assets/pdf_viewer-CFFP5a5y.js

js brixely.com collected 2026-10-05 09:46:43 UTC 216,570 bytes, 547 lines download raw bytes

1var jn=Object.defineProperty;var Oe=a=>{throw TypeError(a)};var Fn=(a,t,e)=>t in a?jn(a,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[t]=e;var Le=(a,t,e)=>Fn(a,typeof t!="symbol"?t+"":t,e),Vn=(a,t,e)=>t.has(a)||Oe("Cannot "+e);var Nt=(a,t,e)=>(Vn(a,t,"read from private field"),e?e.call(a):t.get(a)),Ne=(a,t,e)=>t.has(a)?Oe("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(a):t.set(a,e);var Bn={9306(a,t,e){var n=e(4901),r=e(6823),i=TypeError;a.exports=function(s){if(n(s))return s;throw new i(r(s)+" is not a function")}},3506(a,t,e){var n=e(3925),r=String,i=TypeError;a.exports=function(s){if(n(s))return s;throw new i("Can't set "+r(s)+" as a prototype")}},7080(a,t,e){var n=e(4402).has;a.exports=function(r){return n(r),r}},3463(a){var t=TypeError;a.exports=function(e){if(typeof e=="string")return e;throw new t("Argument is not a string")}},4328(a,t,e){var n=e(4995),r=new n.WeakMap,i=n.set,s=n.remove;a.exports=function(o){return i(r,o,1),s(r,o),o}},6557(a,t,e){var n=e(4995).has;a.exports=function(r){return n(r),r}},6469(a,t,e){var n=e(8227),r=e(2360),i=e(4913).f,s=n("unscopables"),o=Array.prototype;o[s]===void 0&&i(o,s,{configurable:!0,value:r(null)}),a.exports=function(l){o[s][l]=!0}},679(a,t,e){var n=e(1625),r=TypeError;a.exports=function(i,s){if(n(s,i))return i;throw new r("Incorrect invocation")}},8551(a,t,e){var n=e(34),r=String,i=TypeError;a.exports=function(s){if(n(s))return s;throw new i(r(s)+" is not an object")}},7811(a){a.exports=typeof ArrayBuffer<"u"&&typeof DataView<"u"},4644(a,t,e){var n=e(7811),r=e(3724),i=e(4576),s=e(4901),o=e(34),l=e(9297),u=e(6955),d=e(6823),h=e(6699),c=e(6840),f=e(2106),p=e(1625),g=e(2787),v=e(2967),E=e(8227),S=e(3392),w=e(1181),I=w.enforce,y=w.get,P=i.Int8Array,T=P&&P.prototype,O=i.Uint8ClampedArray,m=O&&O.prototype,x=P&&g(P),C=T&&g(T),D=Object.prototype,N=i.TypeError,M=E("toStringTag"),$=S("TYPED_ARRAY_TAG"),G="TypedArrayConstructor",J=n&&!!v&&u(i.opera)!=="Opera",ot=!1,U,_,ut,lt={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},ct={BigInt64Array:8,BigUint64Array:8},Tt=function(k){if(!o(k))return!1;var Y=u(k);return Y==="DataView"||l(lt,Y)||l(ct,Y)},At=function(j){var k=g(j);if(o(k)){var Y=y(k);return Y&&l(Y,G)?Y[G]:At(k)}},L=function(j){if(!o(j))return!1;var k=u(j);return l(lt,k)||l(ct,k)},R=function(j){if(L(j))return j;throw new N("Target is not a typed array")},A=function(j){if(s(j)&&(!v||p(x,j)))return j;throw new N(d(j)+" is not a typed array constructor")},F=function(j,k,Y,nt){if(r){if(Y)for(var tt in lt){var Z=i[tt];if(Z&&l(Z.prototype,j))try{delete Z.prototype[j]}catch{try{Z.prototype[j]=k}catch{}}}(!C[j]||Y)&&c(C,j,Y?k:J&&T[j]||k,nt)}},z=function(j,k,Y){var nt,tt;if(r){if(v){if(Y){for(nt in lt)if(tt=i[nt],tt&&l(tt,j))try{delete tt[j]}catch{}}if(!x[j]||Y)try{return c(x,j,Y?k:J&&x[j]||k)}catch{}else return}for(nt in lt)tt=i[nt],tt&&(!tt[j]||Y)&&c(tt,j,k)}};for(U in lt)_=i[U],ut=_&&_.prototype,ut?I(ut)[G]=_:J=!1;for(U in ct)_=i[U],ut=_&&_.prototype,ut&&(I(ut)[G]=_);if((!J||!s(x)||x===Function.prototype)&&(x=function(){throw new N("Incorrect invocation")},J))for(U in lt)i[U]&&v(i[U],x);if((!J||!C||C===D)&&(C=x.prototype,J))for(U in lt)i[U]&&v(i[U].prototype,C);if(J&&g(m)!==C&&v(m,C),r&&!l(C,M)){ot=!0,f(C,M,{configurable:!0,get:function(){return o(this)?this[$]:void 0}});for(U in lt)i[U]&&h(i[U].prototype,$,U)}a.exports={NATIVE_ARRAY_BUFFER_VIEWS:J,TYPED_ARRAY_TAG:ot&&$,aTypedArray:R,aTypedArrayConstructor:A,exportTypedArrayMethod:F,exportTypedArrayStaticMethod:z,getTypedArrayConstructor:At,isView:Tt,isTypedArray:L,TypedArray:x,TypedArrayPrototype:C}},9617(a,t,e){var n=e(5397),r=e(5610),i=e(6198),s=function(o){return function(l,u,d){var h=n(l),c=i(h);if(c===0)return!o&&-1;var f=r(d,c),p;if(o&&u!==u){for(;c>f;)if(p=h[f++],p!==p)return!0}else for(;c>f;f++)if((o||f in h)&&h[f]===u)return o||f||0;return!o&&-1}};a.exports={includes:s(!0),indexOf:s(!1)}},4527(a,t,e){var n=e(3724),r=e(4376),i=TypeError,s=Object.getOwnPropertyDescriptor,o=n&&!(function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(l){return l instanceof TypeError}})();a.exports=o?function(l,u){if(r(l)&&!s(l,"length").writable)throw new i("Cannot set read only .length");return l.length=u}:function(l,u){return l.length=u}},6319(a,t,e){var n=e(8551),r=e(9539);a.exports=function(i,s,o,l){try{return l?s(n(o)[0],o[1]):s(o)}catch(u){r(i,"throw",u)}}},2195(a,t,e){var n=e(9504),r=n({}.toString),i=n("".slice);a.exports=function(s){return i(r(s),8,-1)}}
1,6955(a,t,e){var n=e(2140),r=e(4901),i=e(2195),s=e(8227),o=s("toStringTag"),l=Object,u=i((function(){return arguments})())==="Arguments",d=function(h,c){try{return h[c]}catch{}};a.exports=n?i:function(h){var c,f,p;return h===void 0?"Undefined":h===null?"Null":typeof(f=d(c=l(h),o))=="string"?f:u?i(c):(p=i(c))==="Object"&&r(c.callee)?"Arguments":p}},7740(a,t,e){var n=e(9297),r=e(5031),i=e(7347),s=e(4913);a.exports=function(o,l,u){for(var d=r(l),h=s.f,c=i.f,f=0;f<d.length;f++){var p=d[f];!n(o,p)&&!(u&&n(u,p))&&h(o,p,c(l,p))}}},2211(a,t,e){var n=e(9039);a.exports=!n(function(){function r(){}return r.prototype.constructor=null,Object.getPrototypeOf(new r)!==r.prototype})},2529(a){a.exports=function(t,e){return{value:t,done:e}}},6699(a,t,e){var n=e(3724),r=e(4913),i=e(6980);a.exports=n?function(s,o,l){return r.f(s,o,i(1,l))}:function(s,o,l){return s[o]=l,s}},6980(a){a.exports=function(t,e){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:e}}},4659(a,t,e){var n=e(3724),r=e(4913),i=e(6980);a.exports=function(s,o,l){n?r.f(s,o,i(0,l)):s[o]=l}},2106(a,t,e){var n=e(283),r=e(4913);a.exports=function(i,s,o){return o.get&&n(o.get,s,{getter:!0}),o.set&&n(o.set,s,{setter:!0}),r.f(i,s,o)}},6840(a,t,e){var n=e(4901),r=e(4913),i=e(283),s=e(9433);a.exports=function(o,l,u,d){d||(d={});var h=d.enumerable,c=d.name!==void 0?d.name:l;if(n(u)&&i(u,c,d),d.global)h?o[l]=u:s(l,u);else{try{d.unsafe?o[l]&&(h=!0):delete o[l]}catch{}h?o[l]=u:r.f(o,l,{value:u,enumerable:!1,configurable:!d.nonConfigurable,writable:!d.nonWritable})}return o}},6279(a,t,e){var n=e(6840);a.exports=function(r,i,s){for(var o in i)n(r,o,i[o],s);return r}},9433(a,t,e){var n=e(4576),r=Object.defineProperty;a.exports=function(i,s){try{r(n,i,{value:s,configurable:!0,writable:!0})}catch{n[i]=s}return s}},3724(a,t,e){var n=e(9039);a.exports=!n(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})},4055(a,t,e){var n=e(4576),r=e(34),i=n.document,s=r(i)&&r(i.createElement);a.exports=function(o){return s?i.createElement(o):{}}},6837(a){var t=TypeError,e=9007199254740991;a.exports=function(n){if(n>e)throw new t("Maximum allowed index exceeded");return n}},8727(a){a.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2839(a,t,e){var n=e(4576),r=n.navigator,i=r&&r.userAgent;a.exports=i?String(i):""},9519(a,t,e){var n=e(4576),r=e(2839),i=n.process,s=n.Deno,o=i&&i.versions||s&&s.version,l=o&&o.v8,u,d;l&&(u=l.split("."),d=u[0]>0&&u[0]<4?1:+(u[0]+u[1])),!d&&r&&(u=r.match(/Edge\/(\d+)/),(!u||u[1]>=74)&&(u=r.match(/Chrome\/(\d+)/),u&&(d=+u[1]))),a.exports=d},6518(a,t,e){var n=e(4576),r=e(7347).f,i=e(6699),s=e(6840),o=e(9433),l=e(7740),u=e(2796);a.exports=function(d,h){var c=d.target,f=d.global,p=d.stat,g,v,E,S,w,I;if(f?v=n:p?v=n[c]||o(c,{}):v=n[c]&&n[c].prototype,v)for(E in h){if(w=h[E],d.dontCallGetSet?(I=r(v,E),S=I&&I.value):S=v[E],g=u(f?E:c+(p?".":"#")+E,d.forced),!g&&S!==void 0){if(typeof w==typeof S)continue;l(w,S)}(d.sham||S&&S.sham)&&i(w,"sham",!0),s(v,E,w,d)}}},9039(a){a.exports=function(t){try{return!!t()}catch{return!0}}},6080(a,t,e){var n=e(7476),r=e(9306),i=e(616),s=n(n.bind);a.exports=function(o,l){return r(o),l===void 0?o:i?s(o,l):function(){return o.apply(l,arguments)}}},616(a,t,e){var n=e(9039);a.exports=!n(function(){var r=(function(){}).bind();return typeof r!="function"||r.hasOwnProperty("prototype")})},9565(a,t,e){var n=e(616),r=Function.prototype.call;a.exports=n?r.bind(r):function(){return r.apply(r,arguments)}},350(a,t,e){var n=e(3724),r=e(9297),i=Function.prototype,s=n&&Object.getOwnPropertyDescriptor,o=r(i,"name"),l=o&&(function(){}).name==="something",u=o&&(!n||n&&s(i,"name").configurable);a.exports={EXISTS:o,PROPER:l,CONFIGURABLE:u}},6706(a,t,e){var n=e(9504),r=e(9306);a.exports=function(i,s,o){try{return n(r(Object.getOwnPropertyDescriptor(i,s)[o]))}catch{}}},7476(a,t,e){var n=e(2195),r=e(9504);a.exports=function(i){if(n(i)==="Function")return r(i)}},9504(a,t,e){var n=e(616),r=Function.prototype,i=r.call,s=n&&r.bind.bind(i,i);a.exports=n?s:function(o){return function(){return i.apply(o,arguments)}}},7751(a,t,e){var n=e(4576),r=e(4901),i=function(s){return r(s)?s:void 0};a.exports=function(s,o){return arguments.length<2?i(n[s]):n[s]&&n[s][o]}},1767(a){a.exports=function(t){return{iterator:t,next:t.next,done:!1}}},8563(a,t,e){var n=e(9565),r=e(4901),i=e(8551),s=e(6823),o=e(3085),l=TypeError;a.exports=function(u,d){var h=arguments.length<2?o(u):d;if(r(h))return i(n(h,u));throw new l(s(u)+" is not iterable")}},3085(a,t,e){var n=e(2195),r=e(4117),i=e(5966),s=e(8227),o=s("iterator"),l=Array.prototype;a.exports=function(u){if(!r(u))return i(u,o)||i(u,"@@iterator")||(n(u)==="Arguments"?l[o]:void 0)}},5966(a,t,e){var n=e(9306),r=e(4117);a.exports=function(i,s){var o=i[s];return r(o)?void 0:n(o)}},3789(a,t,e){var n=e(9306),r=e(8551),i=e(9565),s=e(1291),o=e(1767),l="Invalid size",u=RangeError,d=TypeError,h=Math.max,c=function(f,p){this.set=f,this.size=h(p,0),this.has=n(f.has),this.keys=n(f.keys)};c.prototype={getIterator:function(){return o(r(i(this.keys,this.set)))},includes:function(f){return i(this.has,this.set,f)}},a.exports=function(f){r(f);var p=+f.size;if(p!==p)throw new d(l);var g=s(p);if(g<0)throw new u(l);return new c(f,g)}},4576(a){var t=function(e){return e&&e.Math===Math&&e};a.exports=t(typeof globalThis=="object"&&globalThis)||t(typeof window=="object"&&window)||t(typeof self=="object"&&self)||t(typeof global=="object"&&global)||t(typeof this=="object"&&this)||(function(){return this})()||Function("return this")()},9297(a,t,e){var n=e(9504),r=e(8981),i=n({}.hasOwnProperty);a.exports=Object.hasOwn||function(o,l){return i(r(o),l)}},421(a){a.exports={}},397(a,t,e){var n=e(7751);a.exports=n("document","documentElement")},5917(a,t,e){var n=e(3724),r=e(9039),i=e(4055);a.exports=!n&&!r(function(){return Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a!==7})},7055(a,t,e){var n=e(9504),r=e(9039),i=e(2195),s=Object,o=n("".split);a.exports=r(function(){return!s("z").propertyIsEnumerable(0)})?function(l){return i(l)==="String"?o(l,""):s(l)}:s},3706(a,t,e){var n=e(9504),r=e(4901),i=e(7629),s=n(Function.toString);r(i.inspectSource)||(i.inspectSource=function(o){return s(o)}),a.exports=i.inspectSource},1181(a,t,e){var n=e(8622),r=e(4576),i=e(34),s=e(6699),o=e(9297),l=e(7629),u=e(6119),d=e(421),h="Object already initialized",c=r.TypeError,f=r.WeakMap,p,g,v,E=function(y){return v(y)?g(y):p(y,{})},S=function(y){return function(P){var T;if(!i(P)||(T=g(P)).type!==y)throw new c("Incompatible receiver, "+y+" required");return T}};if(n||l.state){var w=l.state||(l.state=new f);w.get=w.get,w.has=w.has,w.set=w.set,p=function(y,P){if(w.has(y))throw new c(h);return P.facade=y,w.set(y,P),P},g=function(y){return w.get(y)||{}},v=function(y){return w.has(y)}}else{var I=u("state");d[I]=!0,p=function(y,P){if(o(y,I))throw new c(h);return P.facade=y,s(y,I,P),P},g=function(y){return o(y,I)?y[I]:{}},v=function(y){return o(y,I)}}a.exports={set:p,get:g,has:v,enforce:E,getterFor:S}},4209(a,t,e){var n=e(8227),r=e(6269),i=n("iterator"),s=Array.prototype;a.exports=function(o){return o!==void 0&&(r.Array===o||s[i]===o)}},4376(a,t,e){var n=e(2195);a.exports=Array.isArray||function(i){return n(i)==="Array"}},1108(a,t,e){var n=e(6955);a.exports=function(r){var i=n(r);return i==="BigInt64Array"||i==="BigUint64Array"}},4901(a){var t=typeof document=="object"&&document.all;a.exports=typeof t>"u"&&t!==void 0?function(e){return typeof e=="function"||e===t}:function(e){return typeof e=="function"}},2796(a,t,e){var n=e(9039),r=e(4901),i=/#|\.prototype\./,s=function(h,c){var f=l[o(h)];return f===d?!0:f===u?!1:r(c)?n(c):!!c},o=s.normalize=function(h){return String(h).replace(i,".").toLowerCase()},l=s.data={},u=s.NATIVE="N",d=s.POLYFILL="P";a.exports=s},4117(a){a.exports=function(t){return t==null}},34(a,t,e){var n=e(4901);a.exports=function(r){return typeof r=="object"?r!==null:n(r)}},3925(a,t,e){var n=e(34);a.exports=function(r){return n(r)||r===null}},6395(a){a.exports=!1},5810(a,t,e){var n=e(34),r=e(1181).get;a.exports=function(s){if(!n(s))return!1;var o=r(s);return!!o&&o.type==="RawJSON"}},757(a,t,e){var n=e(7751),r=e(4901),i=e(1625),s=e(7040),o=Object;a.exports=s?function(l){return typeof l=="symbol"}:function(l){var u=n("Symbol");return r(u)&&i(u.prototype,o(l))}},507(a,t,e){var n=e(9565);a.exports=function(r,i,s){for(var o=s?r:r.iterator,l=r.next,u,d;!(u=n(l,o)).done;)if(d=i(u.value),d!==void 0)return d}},2652(a,t,e){var n=e(6080),r=e(9565),i=e(8551),s=e(6823),o=e(4209),l=e(6198),u=e(1625),d=e(8563),h=e(3085),c=e(9539),f=TypeError,p=function(v,E){this.stopped=v,this.result=E},g=p.prototype;a.exports=function(v,E,S){var w=S&&S.that,I=!!(S&&S.AS_ENTRIES),y=!!(S&&S.IS_RECORD),P=!!(S&&S.IS_ITERATOR),T=!!(S&&S.INTERRUPTED),O=n(E,w),m,x,C,D,N,M,$,G=function(U){var _=m;return m=void 0,_&&c(_,"normal"),new p(!0,U)},J=function(U){return I?(i(U),T?O(U[0],U[1],G):O(U[0],U[1])):T?O(U,G):O(U)};if(y)m=v.iterator;else if(P)m=v;else{if(x=h(v),!x)throw new f(s(v)+" is not iterable");if(o(x)){for(C=0,D=l(v);D>C;C++)if(N=J(v[C]),N&&u(g,N))return N;return new p(!1)}m=d(v,x)}for(M=y?v.next:m.next;!($=r(M,m)).done;){var ot=$.value;try{N=J(ot)}catch(U){if(m)c(m,"throw",U);else throw U}if(typeof N=="object"&&N&&u(g,N))return N}return new p(!1)}},6859(a){a.exports=function(t){t.iterator=t.next=t.nextHandler=t.mapper=t.predicate=t.inner=t.iterables=t.iters=t.openIters=t.padding=t.finishResults=t.buffer=null}},1385(a,t,e){var n=e(9539);a.exports=function(r,i,s){for(var o=r.length-1;o>=0;o--)if(r[o]!==void 0)try{s=n(r[o].iterator,i,s)}catch(l){i="throw",s=l}if(i==="throw")throw s;return s}},9539(a,t,e){var n=e(9565),r=e(8551),i=e(5966);a.exports=function(s,o,l){var u,d;r(s);try{if(u=i(s,"return"),!u){if(o==="throw")throw l;return l}u=n(u,s)}catch(h){d=!0,u=h}if(o==="throw")throw l;if(d)throw u;return r(u),l}},9462(a,t,e){var n=e(9565),r=e(2360),i=e(6699),s=e(6279),o=e(8227),l=e(1181),u=e(5966),d=e(7657).IteratorPrototype,h=e(2529),c=e(9539),f=e(1385),p=e(6859),g=o("toStringTag"),v="IteratorHelper",E="WrapForValidIterator",S="normal",w="throw",I=l.set,y=function(O){var m=l.getterFor(O?E:v);return s(r(d),{next:function(){var C=m(this);if(O)return C.nextHandler();if(C.done)return h(void 0,!0);try{var D=C.nextHandler();return C.done&&p(C),C.returnHandlerResult?D:h(D,C.done)}catch(N){throw C.done=!0,p(C),N}},return:function(){var x=m(this),C=x.iterator,D=x.inner,N=x.openIters,M=x.done;if(x.done=!0,O){var $=u(C,"return");return $?n($,C):h(void 0,!0)}if(p(x),M)return h(void 0,!0);if(D)try{c(D.iterator,S)}catch(G){return c(C,w,G)}if(N)try{f(N,S)}catch(G){if(C)return c(C,w,G);throw G}return C&&c(C,S),h(void 0,!0)}})},P=y(!0),T=y(!1);i(T,g,"Iterator Helper"),a.exports=function(O,m,x){var C=function(N,M){M?(M.iterator=N.iterator,M.next=N.next):M=N,M.type=m?E:v,M.returnHandlerResult=!!x,M.nextHandler=O,M.counter=0,M.done=!1,I(this,M)};return C.prototype=m?P:T,C}},684(a){a.exports=function(t,e){var n=typeof Iterator=="function"&&Iterator.prototype[t];if(n)try{n.call({next:null},e).next()}catch{return!0}}},4549(a,t,e){var n=e(4576);a.exports=function(r,i){var s=n.Iterator,o=s&&s.prototype,l=o&&o[r],u=!1;if(l)try{l.call({next:function(){return{done:!0}},return:function(){u=!0}},-1)}catch(d){d instanceof i||(u=!1)}if(!u)return l}}
1,7657(a,t,e){var n=e(9039),r=e(4901),i=e(34),s=e(2360),o=e(2787),l=e(6840),u=e(8227),d=e(6395),h=u("iterator"),c=!1,f,p,g;[].keys&&(g=[].keys(),"next"in g?(p=o(o(g)),p!==Object.prototype&&(f=p)):c=!0);var v=!i(f)||n(function(){var E={};return f[h].call(E)!==E});v?f={}:d&&(f=s(f)),r(f[h])||l(f,h,function(){return this}),a.exports={IteratorPrototype:f,BUGGY_SAFARI_ITERATORS:c}},6269(a){a.exports=Object.create?Object.create(null):{}},6198(a,t,e){var n=e(8014);a.exports=function(r){return n(r.length)}},283(a,t,e){var n=e(9504),r=e(9039),i=e(4901),s=e(9297),o=e(3724),l=e(350).CONFIGURABLE,u=e(3706),d=e(1181),h=d.enforce,c=d.get,f=String,p=Object.defineProperty,g=n("".slice),v=n("".replace),E=n([].join),S=o&&!r(function(){return p(function(){},"length",{value:8}).length!==8}),w=String(String).split("String"),I=a.exports=function(y,P,T){g(f(P),0,7)==="Symbol("&&(P="["+v(f(P),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),T&&T.getter&&(P="get "+P),T&&T.setter&&(P="set "+P),(!s(y,"name")||l&&y.name!==P)&&(o?p(y,"name",{value:P,configurable:!0}):y.name=P),S&&T&&s(T,"arity")&&y.length!==T.arity&&p(y,"length",{value:T.arity});try{T&&s(T,"constructor")&&T.constructor?o&&p(y,"prototype",{writable:!1}):y.prototype&&(y.prototype=void 0)}catch{}var O=h(y);return s(O,"source")||(O.source=E(w,typeof P=="string"?P:"")),y};Function.prototype.toString=I(function(){return i(this)&&c(this).source||u(this)},"toString")},2248(a,t,e){var n=e(9504),r=Map.prototype;a.exports={Map,set:n(r.set),get:n(r.get),has:n(r.has),remove:n(r.delete),proto:r}},741(a){var t=Math.ceil,e=Math.floor;a.exports=Math.trunc||function(r){var i=+r;return(i>0?e:t)(i)}},7819(a,t,e){var n=e(9039);a.exports=!n(function(){var r="9007199254740993",i=JSON.rawJSON(r);return!JSON.isRawJSON(i)||JSON.stringify(i)!==r})},2360(a,t,e){var n=e(8551),r=e(6801),i=e(8727),s=e(421),o=e(397),l=e(4055),u=e(6119),d=">",h="<",c="prototype",f="script",p=u("IE_PROTO"),g=function(){},v=function(y){return h+f+d+y+h+"/"+f+d},E=function(y){y.write(v("")),y.close();var P=y.parentWindow.Object;return y=null,P},S=function(){var y=l("iframe"),P="java"+f+":",T;return y.style.display="none",o.appendChild(y),y.src=String(P),T=y.contentWindow.document,T.open(),T.write(v("document.F=Object")),T.close(),T.F},w,I=function(){try{w=new ActiveXObject("htmlfile")}catch{}I=typeof document<"u"?document.domain&&w?E(w):S():E(w);for(var y=i.length;y--;)delete I[c][i[y]];return I()};s[p]=!0,a.exports=Object.create||function(P,T){var O;return P!==null?(g[c]=n(P),O=new g,g[c]=null,O[p]=P):O=I(),T===void 0?O:r.f(O,T)}},6801(a,t,e){var n=e(3724),r=e(8686),i=e(4913),s=e(8551),o=e(5397),l=e(1072);t.f=n&&!r?Object.defineProperties:function(d,h){s(d);for(var c=o(h),f=l(h),p=f.length,g=0,v;p>g;)i.f(d,v=f[g++],c[v]);return d}},4913(a,t,e){var n=e(3724),r=e(5917),i=e(8686),s=e(8551),o=e(6969),l=TypeError,u=Object.defineProperty,d=Object.getOwnPropertyDescriptor,h="enumerable",c="configurable",f="writable";t.f=n?i?function(g,v,E){if(s(g),v=o(v),s(E),typeof g=="function"&&v==="prototype"&&"value"in E&&f in E&&!E[f]){var S=d(g,v);S&&S[f]&&(g[v]=E.value,E={configurable:c in E?E[c]:S[c],enumerable:h in E?E[h]:S[h],writable:!1})}return u(g,v,E)}:u:function(g,v,E){if(s(g),v=o(v),s(E),r)try{return u(g,v,E)}catch{}if("get"in E||"set"in E)throw new l("Accessors not supported");return"value"in E&&(g[v]=E.value),g}},7347(a,t,e){var n=e(3724),r=e(9565),i=e(8773),s=e(6980),o=e(5397),l=e(6969),u=e(9297),d=e(5917),h=Object.getOwnPropertyDescriptor;t.f=n?h:function(f,p){if(f=o(f),p=l(p),d)try{return h(f,p)}catch{}if(u(f,p))return s(!r(i.f,f,p),f[p])}},8480(a,t,e){var n=e(1828),r=e(8727),i=r.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(o){return n(o,i)}},3717(a,t){t.f=Object.getOwnPropertySymbols},2787(a,t,e){var n=e(9297),r=e(4901),i=e(8981),s=e(6119),o=e(2211),l=s("IE_PROTO"),u=Object,d=u.prototype;a.exports=o?u.getPrototypeOf:function(h){var c=i(h);if(n(c,l))return c[l];var f=c.constructor;return r(f)&&c instanceof f?f.prototype:c instanceof u?d:null}},1625(a,t,e){var n=e(9504);a.exports=n({}.isPrototypeOf)},1828(a,t,e){var n=e(9504),r=e(9297),i=e(5397),s=e(9617).indexOf,o=e(421),l=n([].push);a.exports=function(u,d){var h=i(u),c=0,f=[],p;for(p in h)!r(o,p)&&r(h,p)&&l(f,p);for(;d.length>c;)r(h,p=d[c++])&&(~s(f,p)||l(f,p));return f}},1072(a,t,e){var n=e(1828),r=e(8727);a.exports=Object.keys||function(s){return n(s,r)}},8773(a,t){var e={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,r=n&&!e.call({1:2},1);t.f=r?function(s){var o=n(this,s);return!!o&&o.enumerable}:e},2967(a,t,e){var n=e(6706),r=e(34),i=e(7750),s=e(3506);
1a.exports=Object.setPrototypeOf||("__proto__"in{}?(function(){var o=!1,l={},u;try{u=n(Object.prototype,"__proto__","set"),u(l,[]),o=l instanceof Array}catch{}return function(h,c){return i(h),s(c),r(h)&&(o?u(h,c):h.__proto__=c),h}})():void 0)},4270(a,t,e){var n=e(9565),r=e(4901),i=e(34),s=TypeError;a.exports=function(o,l){var u,d;if(l==="string"&&r(u=o.toString)&&!i(d=n(u,o))||r(u=o.valueOf)&&!i(d=n(u,o))||l!=="string"&&r(u=o.toString)&&!i(d=n(u,o)))return d;throw new s("Can't convert object to primitive value")}},5031(a,t,e){var n=e(7751),r=e(9504),i=e(8480),s=e(3717),o=e(8551),l=r([].concat);a.exports=n("Reflect","ownKeys")||function(d){var h=i.f(o(d)),c=s.f;return c?l(h,c(d)):h}},8235(a,t,e){var n=e(9504),r=e(9297),i=SyntaxError,s=parseInt,o=String.fromCharCode,l=n("".charAt),u=n("".slice),d=n(/./.exec),h={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":`
2`,"\\r":"\r","\\t":"	"},c=/^[\da-f]{4}$/i,f=/^[\u0000-\u001F]$/;a.exports=function(p,g){for(var v=!0,E="";g<p.length;){var S=l(p,g);if(S==="\\"){var w=u(p,g,g+2);if(r(h,w))E+=h[w],g+=2;else if(w==="\\u"){g+=2;var I=u(p,g,g+4);if(!d(c,I))throw new i("Bad Unicode escape at: "+g);E+=o(s(I,16)),g+=4}else throw new i('Unknown escape sequence: "'+w+'"')}else if(S==='"'){v=!1,g++;break}else{if(d(f,S))throw new i("Bad control character in string literal at: "+g);E+=S,g++}}if(v)throw new i("Unterminated string at: "+g);return{value:E,end:g}}},7750(a,t,e){var n=e(4117),r=TypeError;a.exports=function(i){if(n(i))throw new r("Can't call method on "+i);return i}},9286(a,t,e){var n=e(4402),r=e(8469),i=n.Set,s=n.add;a.exports=function(o){var l=new i;return r(o,function(u){s(l,u)}),l}},3440(a,t,e){var n=e(7080),r=e(4402),i=e(9286),s=e(5170),o=e(3789),l=e(8469),u=e(507),d=r.has,h=r.remove;a.exports=function(f){var p=n(this),g=o(f),v=i(p);return s(v)<=g.size?l(v,function(E){g.includes(E)&&h(v,E)}):u(g.getIterator(),function(E){d(v,E)&&h(v,E)}),v}},4402(a,t,e){var n=e(9504),r=Set.prototype;a.exports={Set,add:n(r.add),has:n(r.has),remove:n(r.delete),proto:r}},8750(a,t,e){var n=e(7080),r=e(4402),i=e(5170),s=e(3789),o=e(8469),l=e(507),u=r.Set,d=r.add,h=r.has;a.exports=function(f){var p=n(this),g=s(f),v=new u;return i(p)>g.size?l(g.getIterator(),function(E){h(p,E)&&d(v,E)}):o(p,function(E){g.includes(E)&&d(v,E)}),v}},4449(a,t,e){var n=e(7080),r=e(4402).has,i=e(5170),s=e(3789),o=e(8469),l=e(507),u=e(9539);a.exports=function(h){var c=n(this),f=s(h);if(i(c)<=f.size)return o(c,function(g){if(f.includes(g))return!1},!0)!==!1;var p=f.getIterator();return l(p,function(g){if(r(c,g))return u(p.iterator,"normal",!1)})!==!1}},3838(a,t,e){var n=e(7080),r=e(5170),i=e(8469),s=e(3789);a.exports=function(l){var u=n(this),d=s(l);return r(u)>d.size?!1:i(u,function(h){if(!d.includes(h))return!1},!0)!==!1}},8527(a,t,e){var n=e(7080),r=e(4402).has,i=e(5170),s=e(3789),o=e(507),l=e(9539);a.exports=function(d){var h=n(this),c=s(d);if(i(h)<c.size)return!1;var f=c.getIterator();return o(f,function(p){if(!r(h,p))return l(f.iterator,"normal",!1)})!==!1}},8469(a,t,e){var n=e(9504),r=e(507),i=e(4402),s=i.Set,o=i.proto,l=n(o.forEach),u=n(o.keys),d=u(new s).next;a.exports=function(h,c,f){return f?r({iterator:u(h),next:d},c):l(h,c)}},4916(a,t,e){var n=e(7751),r=function(s){return{size:s,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},i=function(s){return{size:s,has:function(){return!0},keys:function(){throw new Error("e")}}};a.exports=function(s,o){var l=n("Set");try{new l()[s](r(0));try{return new l()[s](r(-1)),!1}catch{if(!o)return!0;try{return new l()[s](i(-1/0)),!1}catch{var u=new l([1,2]);return o(u[s](i(1/0)))}}}catch{return!1}}},9835(a){a.exports=function(t){try{var e=new Set,n={size:0,has:function(){return!0},keys:function(){return Object.defineProperty({},"next",{get:function(){return e.clear(),e.add(4),function(){return{done:!0}}}})}},r=e[t](n);return r.size===1&&r.values().next().value===4}catch{return!1}}},5170(a,t,e){var n=e(6706),r=e(4402);a.exports=n(r.proto,"size","get")||function(i){return i.size}},3650(a,t,e){var n=e(7080),r=e(4402),i=e(9286),s=e(3789),o=e(507),l=r.add,u=r.has,d=r.remove;a.exports=function(c){var f=n(this),p=s(c).getIterator(),g=i(f);return o(p,function(v){u(f,v)?d(g,v):l(g,v)}),g}},4204(a,t,e){var n=e(7080),r=e(4402).add,i=e(9286),s=e(3789),o=e(507);a.exports=function(u){var d=n(this),h=s(u).getIterator(),c=i(d);return o(h,function(f){r(c,f)}),c}},6119(a,t,e){var n=e(5745),r=e(3392),i=n("keys");a.exports=function(s){return i[s]||(i[s]=r(s))}},7629(a,t,e){var n=e(6395),r=e(4576),i=e(9433),s="__core-js_shared__",o=a.exports=r[s]||i(s,{});(o.versions||(o.versions=[])).push({version:"3.50.0",mode:n?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.50.0/LICENSE",source:"https://github.com/zloirock/core-js"})},5745(a,t,e){var n=e(7629),r=Object.create||Object;a.exports=function(i,s){return n[i]||(n[i]=s||r(null))}},533(a,t,e){var n=e(9504),r=e(8014),i=e(655),s=e(2333),o=e(7750),l=n(s),u=n("".slice),d=Math.ceil,h=function(c){return function(f,p,g){var v=i(o(f)),E=r(p),S=v.length;if(E<=S)return v;var w=g===void 0?" ":i(g),I,y;return w===""?v:(I=E-S,y=l(w,d(I/w.length)),y.length>I&&(y=u(y,0,I)),c?v+y:y+v)}};a.exports={start:h(!1),end:h(!0)}},2333(a,t,e){var n=e(1291),r=e(655),i=e(7750),s=RangeError,o=Math.floor;a.exports=function(u){var d=r(i(this)),h="",c=n(u);if(c<0||c===1/0)throw new s("Wrong number of repetitions");for(;c>0;(c=o(c/2))&&(d+=d))c%2&&(h+=d);return h}},4495(a,t,e){var n=e(9519),r=e(9039),i=e(4576),s=i.String;a.exports=!!Object.getOwnPropertySymbols&&!r(function(){var o=Symbol("symbol detection");return!s(o)||!(Object(o)instanceof Symbol)||!Symbol.sham&&n&&n<41})},1240(a,t,e){var n=e(9504);a.exports=n(1.1.valueOf)},5610(a,t,e){var n=e(1291),r=Math.max,i=Math.min;a.exports=function(s,o){var l=n(s);return l<0?r(l+o,0):i(l,o)}},5854(a,t,e){var n=e(2777),r=TypeError;a.exports=function(i){var s=n(i,"number");if(typeof s=="number")throw new r("Can't convert number to bigint");return BigInt(s)}},5397(a,t,e){var n=e(7055),r=e(7750);a.exports=function(i){return n(r(i))}},1291(a,t,e){var n=e(741);a.exports=function(r){var i=+r;return i!==i||i===0?0:n(i)}},8014(a,t,e){var n=e(1291),r=Math.min;a.exports=function(i){var s=n(i);return s>0?r(s,9007199254740991):0}},8981(a,t,e){var n=e(7750),r=Object;a.exports=function(i){return r(n(i))}},2777(a,t,e){var n=e(9565),r=e(34),i=e(757),s=e(5966),o=e(4270),l=e(8227),u=TypeError,d=l("toPrimitive");a.exports=function(h,c){if(!r(h)||i(h))return h;var f=s(h,d),p;if(f){if(c===void 0&&(c="default"),p=n(f,h,c),!r(p)||i(p))return p;throw new u("Can't convert object to primitive value")}return c===void 0&&(c="number"),o(h,c)}},6969(a,t,e){var n=e(2777),r=e(757);a.exports=function(i){var s=n(i,"string");return r(s)?s:s+""}},2140(a,t,e){var n=e(8227),r=n("toStringTag"),i={};i[r]="z",a.exports=String(i)==="[object z]"},655(a,t,e){var n=e(6955),r=String;a.exports=function(i){if(n(i)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return r(i)}},6823(a){var t=String;a.exports=function(e){try{return t(e)}catch{return"Object"}}},3392(a,t,e){var n=e(9504),r=0,i=Math.random(),s=n(1.1.toString);a.exports=function(o){return"Symbol("+(o===void 0?"":o)+")_"+s(++r+i,36)}},7416(a,t,e){var n=e(9039),r=e(8227),i=e(3724),s=e(6395),o=r("iterator");a.exports=!n(function(){var l=new URL("b?a=1&b=2&c=3","https://a"),u=l.searchParams,d=new URLSearchParams("a=1&a=2&b=3"),h="";return l.pathname="c%20d",u.forEach(function(c,f){u.delete("b"),h+=f+c}),d.delete("a",2),d.delete("b",void 0),s&&(!l.toJSON||!d.has("a",1)||d.has("a",2)||!d.has("a",void 0)||d.has("b"))||!u.size&&(s||!i)||!u.sort||l.href!=="https://a/c%20d?a=1&c=3"||u.get("c")!=="3"||String(new URLSearchParams("?a=1"))!=="a=1"||!u[o]||new URL("https://a@b").username!=="a"||new URLSearchParams(new URLSearchParams("a=b")).get("a")!=="b"||new URL("https://тест").host!=="xn--e1aybc"||new URL("https://a#б").hash!=="#%D0%B1"||h!=="a1c3"||new URL("https://x",void 0).host!=="x"})},7040(a,t,e){var n=e(4495);a.exports=n&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},8686(a,t,e){var n=e(3724),r=e(9039);a.exports=n&&r(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})},2812(a){var t=TypeError;a.exports=function(e,n){if(e<n)throw new t("Not enough arguments");return e}},8622(a,t,e){var n=e(4576),r=e(4901),i=n.WeakMap;a.exports=r(i)&&/native code/.test(String(i))},4995(a,t,e){var n=e(9504),r=WeakMap.prototype;a.exports={WeakMap,set:n(r.set),get:n(r.get),has:n(r.has),remove:n(r.delete)}},8227(a,t,e){var n=e(4576),r=e(5745),i=e(9297),s=e(3392),o=e(4495),l=e(7040),u=n.Symbol,d=r("wks"),h=l?u.for||u:u&&u.withoutSetter||s;a.exports=function(c){return i(d,c)||(d[c]=o&&i(u,c)?u[c]:h("Symbol."+c)),d[c]}},7452(a){a.exports=`	
3\v\f\r                 \u2028\u2029\uFEFF`},4423(a,t,e){var n=e(6518),r=e(9617).includes,i=e(9039),s=e(6469),o=i(function(){return!Array(1).includes()}
vendor: 11,207 bytes, line 3
3),l=i(function(){return[,1].includes(void 0,1)});n({target:"Array",proto:!0,forced:o||l},{includes:function(d){return r(this,d,arguments.length>1?arguments[1]:void 0)}}),s("includes")},4114(a,t,e){var n=e(6518),r=e(8981),i=e(6198),s=e(4527),o=e(6837),l=e(9039),u=l(function(){return[].push.call({length:4294967296},1)!==4294967297}),d=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(c){return c instanceof TypeError}},h=u||!d();n({target:"Array",proto:!0,arity:1,forced:h},{push:function(f){var p=r(this),g=i(p),v=arguments.length;o(g+v);for(var E=0;E<v;E++)p[g]=arguments[E],g++;return s(p,g),g}})},8111(a,t,e){var n=e(6518),r=e(4576),i=e(679),s=e(8551),o=e(4901),l=e(2787),u=e(2106),d=e(4659),h=e(9039),c=e(9297),f=e(8227),p=e(7657).IteratorPrototype,g=e(3724),v=e(6395),E="constructor",S="Iterator",w=f("toStringTag"),I=TypeError,y=r[S],P=v||!o(y)||y.prototype!==p||!h(function(){y({})}),T=function(){if(i(this,p),l(this)===p)throw new I("Abstract class Iterator not directly constructable")},O=function(m,x){g?u(p,m,{configurable:!0,get:function(){return x},set:function(C){if(s(this),this===p)throw new I("You can't redefine this property");c(this,m)?this[m]=C:d(this,m,C)}}):p[m]=x};c(p,w)||O(w,S),(P||!c(p,E)||p[E]===Object)&&O(E,T),T.prototype=p,n({global:!0,constructor:!0,forced:P},{Iterator:T})},1148(a,t,e){var n=e(6518),r=e(9565),i=e(2652),s=e(9306),o=e(8551),l=e(1767),u=e(9539),d=e(4549),h=d("every",TypeError);n({target:"Iterator",proto:!0,real:!0,forced:h},{every:function(f){o(this);try{s(f)}catch(v){u(this,"throw",v)}if(h)return r(h,this,f);var p=l(this),g=0;return!i(p,function(v,E){if(!f(v,g++))return E()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},2489(a,t,e){var n=e(6518),r=e(9565),i=e(9306),s=e(8551),o=e(1767),l=e(9462),u=e(6319),d=e(6395),h=e(9539),c=e(684),f=e(4549),p=!d&&!c("filter",function(){}),g=!d&&!p&&f("filter",TypeError),v=d||p||g,E=l(function(){for(var S=this.iterator,w=this.predicate,I=this.next,y,P,T;;){if(y=s(r(I,S)),P=this.done=!!y.done,P)return;if(T=y.value,u(S,w,[T,this.counter++],!0))return T}});n({target:"Iterator",proto:!0,real:!0,forced:v},{filter:function(w){s(this);try{i(w)}catch(I){h(this,"throw",I)}return g?r(g,this,w):new E(o(this),{predicate:w})}})},116(a,t,e){var n=e(6518),r=e(9565),i=e(2652),s=e(9306),o=e(8551),l=e(1767),u=e(9539),d=e(4549),h=d("find",TypeError);n({target:"Iterator",proto:!0,real:!0,forced:h},{find:function(f){o(this);try{s(f)}catch(v){u(this,"throw",v)}if(h)return r(h,this,f);var p=l(this),g=0;return i(p,function(v,E){if(f(v,g++))return E(v)},{IS_RECORD:!0,INTERRUPTED:!0}).result}})},7588(a,t,e){var n=e(6518),r=e(9565),i=e(2652),s=e(9306),o=e(8551),l=e(1767),u=e(9539),d=e(4549),h=d("forEach",TypeError);n({target:"Iterator",proto:!0,real:!0,forced:h},{forEach:function(f){o(this);try{s(f)}catch(v){u(this,"throw",v)}if(h)return r(h,this,f);var p=l(this),g=0;i(p,function(v){f(v,g++)},{IS_RECORD:!0})}})},1701(a,t,e){var n=e(6518),r=e(9565),i=e(9306),s=e(8551),o=e(1767),l=e(9462),u=e(6319),d=e(9539),h=e(684),c=e(4549),f=e(6395),p=!f&&!h("map",function(){}),g=!f&&!p&&c("map",TypeError),v=f||p||g,E=l(function(){var S=this.iterator,w=s(r(this.next,S)),I=this.done=!!w.done;if(!I)return u(S,this.mapper,[w.value,this.counter++],!0)});n({target:"Iterator",proto:!0,real:!0,forced:v},{map:function(w){s(this);try{i(w)}catch(I){d(this,"throw",I)}return g?r(g,this,w):new E(o(this),{mapper:w})}})},3579(a,t,e){var n=e(6518),r=e(9565),i=e(2652),s=e(9306),o=e(8551),l=e(1767),u=e(9539),d=e(4549),h=d("some",TypeError);n({target:"Iterator",proto:!0,real:!0,forced:h},{some:function(f){o(this);try{s(f)}catch(v){u(this,"throw",v)}if(h)return r(h,this,f);var p=l(this),g=0;return i(p,function(v,E){if(f(v,g++))return E()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},9112(a,t,e){var n=e(6518),r=e(3724),i=e(4576),s=e(7751),o=e(9504),l=e(9565),u=e(4901),d=e(34),h=e(4376),c=e(9297),f=e(655),p=e(6198),g=e(4659),v=e(9039),E=e(8235),S=e(4495),w=i.JSON,I=i.Number,y=i.SyntaxError,P=w&&w.parse,T=s("Object","keys"),O=Object.getOwnPropertyDescriptor,m=o("".charAt),x=o("".slice),C=o(/./.exec),D=o([].push),N=/^\d$/,M=/^[1-9]$/,$=/^[\d-]$/,G=/^[\t\n\r ]$/,J=0,ot=1,U=function(L,R){L=f(L);var A=new ct(L,0),F=A.parse(),z=F.value,j=A.skip(G,F.end);if(j<L.length)throw new y('Unexpected extra character: "'+m(L,j)+'" after the parsed data at: '+j);return u(R)?_({"":z},"",R,F):z},_=function(L,R,A,F){var z=L[R],j=F&&z===F.value,k=j&&typeof F.source=="string"?{source:F.source}:{},Y,nt,tt,Z,dt;if(d(z)){var Bt=h(z),Ot=j?F.nodes:Bt?[]:{};if(Bt)for(Y=Ot.length,tt=p(z),Z=0;Z<tt;Z++)ut(z,Z,_(z,""+Z,A,Z<Y?Ot[Z]:void 0));else for(nt=T(z),tt=p(nt),Z=0;Z<tt;Z++)dt=nt[Z],ut(z,dt,_(z,dt,A,c(Ot,dt)?Ot[dt]:void 0))}return l(A,L,R,z,k)},ut=function(L,R,A){if(r){var F=O(L,R);if(F&&!F.configurable)return}A===void 0?delete L[R]:g(L,R,A)},lt=function(L,R,A,F){this.value=L,this.end=R,this.source=A,this.nodes=F},ct=function(L,R){this.source=L,this.index=R};ct.prototype={fork:function(L){return new ct(this.source,L)},parse:function(){var L=this.source,R=this.skip(G,this.index),A=this.fork(R),F=m(L,R);if(C($,F))return A.number();switch(F){case"{":return A.object();case"[":return A.array();case'"':return A.string();case"t":return A.keyword(!0);case"f":return A.keyword(!1);case"n":return A.keyword(null)}throw new y('Unexpected character: "'+F+'" at: '+R)},node:function(L,R,A,F,z){return new lt(R,F,L?null:x(this.source,A,F),z)},object:function(){for(var L=this.source,R=this.index+1,A=!1,F={},z={},j=!1;R<L.length;){if(R=this.until(['"',"}"],R),m(L,R)==="}"&&!A){R++,j=!0;break}var k=this.fork(R).string(),Y=k.value;R=k.end,R=this.until([":"],R)+1,R=this.skip(G,R),k=this.fork(R).parse(),g(z,Y,k),g(F,Y,k.value),R=this.until([",","}"],k.end);var nt=m(L,R);if(nt===",")A=!0,R++;else if(nt==="}"){R++,j=!0;break}}if(!j)throw new y("Unterminated object at: "+R);return this.node(ot,F,this.index,R,z)},array:function(){for(var L=this.source,R=this.index+1,A=!1,F=[],z=[],j=!1;R<L.length;){if(R=this.skip(G,R),m(L,R)==="]"&&!A){R++,j=!0;break}var k=this.fork(R).parse();if(D(z,k),D(F,k.value),R=this.until([",","]"],k.end),m(L,R)===",")A=!0,R++;else if(m(L,R)==="]"){R++,j=!0;break}}if(!j)throw new y("Unterminated array at: "+R);return this.node(ot,F,this.index,R,z)},string:function(){var L=this.index,R=E(this.source,this.index+1);return this.node(J,R.value,L,R.end)},number:function(){var L=this.source,R=this.index,A=R;if(m(L,A)==="-"&&A++,m(L,A)==="0")A++;else if(C(M,m(L,A)))A=this.skip(N,A+1);else throw new y("Failed to parse number at: "+A);if(m(L,A)==="."){var F=A+1;if(A=this.skip(N,F),F===A)throw new y("Failed to parse number's fraction at: "+A)}if(m(L,A)==="e"||m(L,A)==="E"){A++,(m(L,A)==="+"||m(L,A)==="-")&&A++;var z=A;if(A=this.skip(N,A),z===A)throw new y("Failed to parse number's exponent value at: "+A)}return this.node(J,I(x(L,R,A)),R,A)},keyword:function(L){var R=""+L,A=this.index,F=A+R.length;if(x(this.source,A,F)!==R)throw new y("Failed to parse value at: "+A);return this.node(J,L,A,F)},skip:function(L,R){for(var A=this.source;R<A.length&&C(L,m(A,R));R++);return R},until:function(L,R){R=this.skip(G,R);for(var A=m(this.source,R),F=0;F<L.length;F++)if(L[F]===A)return R;throw new y('Unexpected character: "'+A+'" at: '+R)}};var Tt=v(function(){var L="9007199254740993",R;return P(L,function(A,F,z){R=z.source}),R!==L}),At=S&&!v(function(){return 1/P("-0 	")!==-1/0});n({target:"JSON",stat:!0,forced:Tt},{parse:function(R,A){return At&&!u(A)?P(R):U(R,A)}})},3110(a,t,e){var n=e(6518),r=e(7751),i=e(9565),s=e(9504),o=e(9039),l=e(4376),u=e(4901),d=e(34),h=e(2360),c=e(5810),f=e(757),p=e(2195),g=e(1240),v=e(9617).includes,E=e(9297),S=e(655),w=e(8235),I=e(3392),y=e(4495),P=e(7819),T=String,O=TypeError,m=r("JSON","stringify"),x=r("BigInt"),C=s("".valueOf),D=s((!0).valueOf),N=x&&s(x.prototype.valueOf),M=s(/./.exec),$=s("".charAt),G=s("".charCodeAt),J=s("".replace),ot=s("".slice),U=s([].push),_=s([].pop),ut=s(1.1.toString),lt=/[\uD800-\uDFFF]/g,ct=/^[\uD800-\uDBFF]$/,Tt=/^[\uDC00-\uDFFF]$/,At=/^\d+$/,L=I(),R=I(),A=I(),F=L.length,z=R.length,j=!y||o(function(){var B=r("Symbol")("stringify detection");return m([B])!=="[null]"||m({a:B})!=="{}"||m(Object(B))!=="{}"}),k=o(function(){return m("\uDF06\uD834")!=='"\\udf06\\ud834"'||m("\uDEAD")!=='"\\udead"'}),Y=P?r("JSON","isRawJSON"):c,nt=j?function(B,K,X){return m(B,function(rt,it){var q=i(K,this,rt,it);if(!f(q))return q},X)}:m,tt=function(B,K,X){var rt=$(X,K-1),it=$(X,K+1);return M(ct,B)&&!M(Tt,it)||M(Tt,B)&&!M(ct,rt)?"\\u"+ut(G(B,0),16):B},Z=function(B){if(l(B)){for(var K=B.length,X=[],rt=h(null),it=0;it<K;it++){var q=B[it],ht;if(typeof q=="string")ht=q;else if(typeof q=="number"||p(q)==="Number"||p(q)==="String")ht=S(q);else continue;E(rt,ht)||(rt[ht]=!0,U(X,ht))}return X}},dt=function(B,K){try{return B(K),!0}catch{return!1}},Bt=function(B){var K=p(B);return K==="Number"&&dt(g,B)||K==="String"&&dt(C,B)||K==="Boolean"&&dt(D,B)||!!N&&K==="BigInt"&&dt(N,B)},Ot=function(B){if(!d(B)||u(B)||l(B))return!1;try{return!Bt(B)}catch{return!0}},Ln=function(B,K){return{toJSON:function(){var X=B[K];if(d(X)||typeof X=="bigint"){var rt=X.toJSON;u(rt)&&(X=i(rt,X,K))}return X}}},Nn=function(B){for(var K=0,X=B.length;K<X;K++)if(M(At,B[K]))return R;return""},Mn=function(B,K,X){for(var rt=h(null),it=0,q=K.length;it<q;it++){var ht=K[it];rt[X+ht]=Ln(B,ht)}return rt[A]=null,rt};m&&n({target:"JSON",stat:!0,arity:3,forced:j||k||!P},{stringify:function(K,X,rt){var it=u(X)?X:void 0,q=it?void 0:Z(X),ht=q&&Nn(q),Pe=[],se=[],Ie=[],Xt,ae=!1,Ce=!0,mt=nt(K,function($t,ft){if($t=T($t),q){if($t===A){_(se),Xt=_(Ie);return}if(Ce)Ce=!1;else if(this!==Xt&&!l(this)&&!v(q,$t))return}else it&&(ft=i(it,this,$t,ft));if(Y(ft))return P?ft:(ae=!0,L+(U(Pe,ft.rawJSON)-1));if(q&&Ot(ft)){if(v(se,ft))throw new O("Converting circular structure to JSON");var Ae=Mn(ft,q,ht);return U(se,ft),U(Ie,Xt),Xt=Ae,ht&&(ae=!0),Ae}return ft},rt);if(typeof mt!="string"||(k&&(mt=J(mt,lt,tt)),!ae))return mt;for(var Ut="",Dn=mt.length,Lt=0;Lt<Dn;Lt++){var Re=$(mt,Lt);if(Re==='"'){var Te=w(mt,++Lt).end-1,kt=ot(mt,Lt,Te);ot(kt,0,F)===L?Ut+=Pe[ot(kt,F)]:ot(kt,0,z)===R?Ut+='"'+ot(kt,z)+'"':Ut+='"'+kt+'"',Lt=Te}else Ut+=Re}return Ut}})},2731(a,t,e){var n=e(6518),r=e(9306),i=e(2248),s=e(6395),o=i.get,l=i.has,u=i.set;n({target:"Map",proto:!0,real:!0,forced:s},{getOrInsertComputed:function(h,c){var f=l(this,h);if(r(c),f)return o(this,h);h===0&&1/h===-1/0&&(h=0);var p=c(h);return u(this,h,p),p}})},5367(a,t,e){var n=e(6518),r=e(2248),i=e(6395),s=r.get,o=r.has,l=r.set;n({target:"Map",proto:!0,real:!0,forced:i},{getOrInsert:function(d,h){return o(this,d)?s(this,d):(l(this,d,h),h)}})},6069(a,t,e){var n=e(6518),r=e(9504),i=e(3463),s=e(9297),o=e(533).start,l=e(7452),u=Array,d=RegExp.escape,h=r("".charAt),c=r("".charCodeAt),f=r(1.1.toString),p=r([].join),g=/^[0-9a-z]/i,v=/^[$()*+./?[\\\]^{|}]/,E=RegExp("^[!\"#%&',\\-:;<=>@`~"+l+"]"),S=r(g.exec),w={"	":"t","\n":"n","\v":"v","\f":"f","\r":"r"},I=function(P){var T=f(c(P,0),16);return T.length<3?"\\x"+o(T,2,"0"):"\\u"+o(T,4,"0")},y=!d||d("ab")!=="\\x61b";n({target:"RegExp",stat:!0,forced:y},{escape:function(T){i(T);for(var O=T.length,m=u(O),x=0;x<O;x++){var C=h(T,x);if(x===0&&S(g,C))m[x]=I(C);else if(s(w,C))m[x]="\\"+w[C];
3else if(S(v,C))m[x]="\\"+C;else if(S(E,C))m[x]=I(C);else{var D=c(C,0);(D&63488)!==55296?m[x]=C:D>=56320||x+1>=O||(c(T,x+1)&64512)!==56320?m[x]=I(C):(m[x]=C,m[++x]=h(T,x))}}return p(m,"")}})},7642(a,t,e){var n=e(6518),r=e(3440),i=e(9039),s=e(4916),o=!s("difference",function(u){return u.size===0}),l=o||i(function(){var u={size:1,has:function(){return!0},keys:function(){var h=0;return{next:function(){var c=h++>1;return d.has(1)&&d.clear(),{done:c,value:2}}}}},d=new Set([1,2,3,4]);return d.difference(u).size!==3});n({target:"Set",proto:!0,real:!0,forced:l},{difference:r})},8004(a,t,e){var n=e(6518),r=e(9039),i=e(8750),s=e(4916),o=!s("intersection",function(l){return l.size===2&&l.has(1)&&l.has(2)})||r(function(){return String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))!=="3,2"});n({target:"Set",proto:!0,real:!0,forced:o},{intersection:i})},3853(a,t,e){var n=e(6518),r=e(4449),i=e(4916),s=!i("isDisjointFrom",function(o){return!o});n({target:"Set",proto:!0,real:!0,forced:s},{isDisjointFrom:r})},5876(a,t,e){var n=e(6518),r=e(3838),i=e(4916),s=!i("isSubsetOf",function(o){return o});n({target:"Set",proto:!0,real:!0,forced:s},{isSubsetOf:r})},2475(a,t,e){var n=e(6518),r=e(8527),i=e(4916),s=!i("isSupersetOf",function(o){return!o});n({target:"Set",proto:!0,real:!0,forced:s},{isSupersetOf:r})},5024(a,t,e){var n=e(6518),r=e(3650),i=e(9835),s=e(4916),o=!s("symmetricDifference")||!i("symmetricDifference");n({target:"Set",proto:!0,real:!0,forced:o},{symmetricDifference:r})},1698(a,t,e){var n=e(6518),r=e(4204),i=e(9835),s=e(4916),o=!s("union")||!i("union");n({target:"Set",proto:!0,real:!0,forced:o},{union:r})},9577(a,t,e){var n=e(4644),r=e(1108),i=e(6198),s=e(1291),o=e(5854),l=n.aTypedArray,u=n.getTypedArrayConstructor,d=n.exportTypedArrayMethod,h=RangeError,c=(function(){try{new Int8Array(1).with(2,{valueOf:function(){throw 8}})}catch(p){return p===8}})(),f=c&&(function(){try{new Int8Array(1).with(-.5,1)}catch{return!0}})();d("with",function(p,g){var v=l(this),E=i(v),S=s(p),w=S<0?E+S:S,I=r(v)?o(g):+g;if(w>=E||w<0)throw new h("Incorrect index");for(var y=new(u(v))(E),P=0;P<E;P++)y[P]=P===w?I:v[P];return y},!c||f)},9452(a,t,e){var n=e(6518),r=e(9306),i=e(6557),s=e(4328),o=e(4995),l=e(6395),u=o.get,d=o.has,h=o.set,c=l||!(function(){try{WeakMap.prototype.getOrInsertComputed&&new WeakMap().getOrInsertComputed(1,function(){throw 1})}catch(f){return f instanceof TypeError}})();n({target:"WeakMap",proto:!0,real:!0,forced:c},{getOrInsertComputed:function(p,g){if(l||i(this),s(p),r(g),d(this,p))return u(this,p);var v=g(p);return h(this,p,v),v}})},8454(a,t,e){var n=e(6518),r=e(4995),i=e(6395),s=r.get,o=r.has,l=r.set;n({target:"WeakMap",proto:!0,real:!0,forced:i},{getOrInsert:function(d,h){return o(this,d)?s(this,d):(l(this,d,h),h)}})},5781(a,t,e){var n=e(6518),r=e(7751),i=e(2812),s=e(655),o=e(7416),l=r("URL");n({target:"URL",stat:!0,forced:!o},{parse:function(d){var h=i(arguments.length,1),c=s(d),f=h<2||arguments[1]===void 0?void 0:s(arguments[1]);try{return new l(c,f)}catch{return null}}})}};const Me={};function H(a){const t=Me[a];if(t!==void 0)return t.exports;const e=Me[a]={exports:{}};return Bn[a].call(e.exports,e,e.exports,H),e.exports}H.d=(a,t)=>{if(Array.isArray(t))for(var e=0;e<t.length;){var n=t[e++],r=t[e++];H.o(a,n)?r===0&&e++:r===0?Object.defineProperty(a,n,{enumerable:!0,value:t[e++]}):Object.defineProperty(a,n,{enumerable:!0,get:r})}else for(var n in t)H.o(t,n)&&!H.o(a,n)&&Object.defineProperty(a,n,{enumerable:!0,get:t[n]})};H.o=(a,t)=>Object.prototype.hasOwnProperty.call(a,t);H(4114);H(8111);H(2489);H(7588);H(1701);H(3110);H(5367);H(2731);H(6069);H(7642);H(8004);H(3853);H(5876);H(2475);H(5024);H(1698);H(9577);const{AbortException:Un,AnnotationEditorLayer:kn,AnnotationEditorParamsType:Gi,AnnotationEditorType:at,AnnotationEditorUIManager:$n,AnnotationLayer:Wn,AnnotationMode:vt,AnnotationType:gn,applyOpacity:Ki,build:Yi,ColorPicker:Xi,createValidAbsoluteUrl:vn,CSSConstants:Ji,DOMSVGFactory:Zi,DrawLayer:Hn,FeatureTest:we,fetchData:De,findContrastColor:Qi,getDocument:_i,getFilenameFromUrl:qi,getPdfFilenameFromUrl:zn,getRGB:ts,getRGBA:es,getUuid:Gn,GlobalWorkerOptions:ns,ImageKind:rs,InvalidPDFException:is,isDataScheme:ss,isPdfFile:Kn,isValidExplicitDest:Yn,makeArr:Xn,makeMap:je,makeObj:as,makeSet:Jn,MathClamp:Zn,noContextMenu:os,normalizeUnicode:Qn,OPS:ls,OutputScale:qt,PasswordException:_n,PasswordResponses:us,PDFDataRangeTransport:ds,PDFDateString:hs,PDFWorker:cs,PermissionFlag:Mt,PixelsPerInch:yt,RenderingCancelledException:fe,renderRichText:fs,ResponseException:ps,setLayerDimensions:mn,shadow:Gt,
vendor: 51,475 bytes, lines 3-9
3SignatureExtractor:gs,stopEvent:pe,SupportedImageMimeTypes:vs,TextLayer:qn,TextLayerImages:tr,TouchManager:ms,updateUrlHash:er,Util:xe,VerbosityLevel:ys,version:Fe,XfaLayer:Ve}=globalThis.pdfjsLib;let Be=null,Ue=null;function ke(a,t){Ue||=new Intl.Segmenter(void 0,{granularity:"grapheme"});const e=Ue.segment(a),n=e.containing(t);if(n.index!==t)return!1;Be||=new Intl.Segmenter(void 0,{granularity:"word"});const r=e.containing(t-1).segment;return Be.segment(r+n.segment).containing(r.length).index===r.length}function nr(a,t,e){const n=t+e;return(t===0||ke(a,t))&&(n===a.length||ke(a,n))}let Pt;function rr(){if(!Pt){const a=[],t=[],e=new RegExp("^\\p{M}$","u");for(let r=0;r<65536;r++){if(r>=55296&&r<=57343)continue;const i=String.fromCharCode(r);if(i.normalize("NFKC")!==i&&!e.test(i)){if(t.length!==2){t[0]=t[1]=r;continue}t[1]+1!==r?(t[0]===t[1]?a.push(String.fromCharCode(t[0])):a.push(`${String.fromCharCode(t[0])}-${String.fromCharCode(t[1])}`),t[0]=t[1]=r):t[1]=r}}const n=a.join("");if(!Pt)Pt=n;else if(n!==Pt){for(let r=1;r<n.length;r++)if(n[r]!==Pt[r]){console.log(`Difference at index ${r}: U+${n.charCodeAt(r).toString(16).toUpperCase().padStart(4,"0")}!== U+${Pt.charCodeAt(r).toString(16).toUpperCase().padStart(4,"0")}`);break}throw new Error("getNormalizeWithNFKC - update the `NormalizeWithNFKC` string.")}}return Pt}H(4423);const Dt={UNKNOWN:0,NORMAL:1,CHANGING:2,FULLSCREEN:3},gt={DISABLE:0,ENABLE:1,ENABLE_PERMISSIONS:2},V={UNKNOWN:-1,VERTICAL:0,HORIZONTAL:1,WRAPPED:2,PAGE:3},et={UNKNOWN:-1,NONE:0,ODD:1,EVEN:2};function ir(a,t){let e=a.offsetParent;if(!e){console.error("offsetParent is not set -- cannot scroll");return}let n=a.offsetTop+a.clientTop,r=a.offsetLeft+a.clientLeft;for(;e.clientHeight===e.scrollHeight&&e.clientWidth===e.scrollWidth;)if(n+=e.offsetTop,r+=e.offsetLeft,e=e.offsetParent,!e)return;t&&(t.top!==void 0&&(n+=t.top),t.left!==void 0&&(r+=t.left,e.scrollLeft=r)),e.scrollTop=n}function sr(a,t,e=void 0){function n(){i=null;const s=a.scrollLeft,o=r.lastX;s!==o&&(r.right=s>o),r.lastX=s;const l=a.scrollTop,u=r.lastY;l!==u&&(r.down=l>u),r.lastY=l,t(r)}const r={right:!0,down:!0,lastX:a.scrollLeft,lastY:a.scrollTop};let i=null;return a.addEventListener("scroll",()=>{i??=window.requestAnimationFrame(n)},{useCapture:!0,signal:e}),e?.addEventListener("abort",()=>window.cancelAnimationFrame(i),{once:!0}),r}function re(a){const t=new Map;for(const[e,n]of new URLSearchParams(a))t.set(e.toLowerCase(),n);return t}const $e=/[\x00-\x1F]/g;function Rt(a,t=!1){return $e.test(a)?t?a.replaceAll($e,e=>e==="\0"?"":" "):a.replaceAll("\0",""):a}function Kt(a,t,e=0){let n=e,r=a.length-1;if(r<0||!t(a[r]))return a.length;if(t(a[n]))return n;for(;n<r;){const i=n+r>>1,s=a[i];t(s)?r=i:n=i+1}return n}function We(a){if(Math.floor(a)===a)return[a,1];const t=1/a,e=8;if(t>e)return[1,e];if(Math.floor(t)===t)return[1,t];const n=a>1?t:a;let r=0,i=1,s=1,o=1;for(;;){const l=r+s,u=i+o;if(u>e)break;n<=l/u?(s=l,o=u):(r=l,i=u)}return n-r/i<s/o-n?n===a?[r,i]:[i,r]:n===a?[s,o]:[o,s]}function Jt(a,t){return a-a%t}function ar(a,t,e){if(a<2)return a;let n=t[a].div,r=n.offsetTop+n.clientTop;r>=e&&(n=t[a-1].div,r=n.offsetTop+n.clientTop);for(let i=a-2;i>=0&&(n=t[i].div,!(n.offsetTop+n.clientTop+n.clientHeight<=r));--i)a=i;return a}function or(a,t){const e=a.percent-t.percent;return Math.abs(e)>.001?-e:a.id-t.id}function lr({scrollEl:a,views:t,sortByVisibility:e=!1,horizontal:n=!1,rtl:r=!1}){const i=a.scrollTop,s=i+a.clientHeight,o=a.scrollLeft,l=o+a.clientWidth;function u(S){const w=S.div;return w.offsetTop+w.clientTop+w.clientHeight>i}function d(S){const w=S.div,I=w.offsetLeft+w.clientLeft,y=I+w.clientWidth;return r?I<l:y>o}const h=[],c=new Set,f=t.length;let p=Kt(t,n?d:u);p>0&&p<f&&!n&&(p=ar(p,t,i));let g=n?l:-1;for(let S=p;S<f;S++){const w=t[S],I=w.div,y=I.offsetLeft+I.clientLeft,P=I.offsetTop+I.clientTop,T=I.clientWidth,O=I.clientHeight,m=y+T,x=P+O;if(g===-1)x>=s&&(g=x);else if((n?y:P)>g)break;if(x<=i||P>=s||m<=o||y>=l)continue;const C=Math.max(0,i-P),D=Math.max(0,o-y),N=C+Math.max(0,x-s),M=D+Math.max(0,m-l),$=(O-N)/O,G=(T-M)/T,J=$*G*100|0;h.push({id:w.id,x:y,y:P,visibleArea:J===100?null:{minX:D,minY:C,maxX:Math.min(m,l)-y,maxY:Math.min(x,s)-P},view:w,percent:J,widthPercent:G*100|0}),c.add(w.id)}const v=h[0],E=h.at(-1);return e&&h.sort(or),{first:v,last:E,views:h,ids:c}}function yn(a){return Number.isInteger(a)&&a%90===0}function ur(a){return Number.isInteger(a)&&Object.values(V).includes(a)&&a!==V.UNKNOWN}function dr(a){return Number.isInteger(a)&&Object.values(et).includes(a)&&a!==et.UNKNOWN}function He(a){return a.width<=a.height}new Promise(function(a){window.requestAnimationFrame(a)});const hr=document.documentElement.style;class cr{#t=null;#e=null;#i=0;#n=null;#r=!0;constructor(t){this.#t=t.classList,this.#n=t.style}get percent(){return this.#i}set percent(t){if(this.#i=t,isNaN(t)){this.#t.add("indeterminate");return}this.#t.remove("indeterminate"),this.#n.setProperty("--progressBar-percent",`${this.#i}%`)}setWidth(t){if(!t)return;const n=t.parentNode.offsetWidth-t.offsetWidth;n>0&&this.#n.setProperty("--progressBar-end-offset",`${n}px`)}setDisableAutoFetch(t=5e3){this.#i===100||isNaN(this.#i)||(this.#e&&clearTimeout(this.#e),this.show(),this.#e=setTimeout(()=>{this.#e=null,this.hide()},t))}hide(){this.#r&&(this.#r=!1,this.#t.add("hidden"))}show(){this.#r||(this.#r=!0,this.#t.remove("hidden"))}}function fr(a){let t=V.VERTICAL,e=et.NONE;switch(a){case"SinglePage":t=V.PAGE;break;case"OneColumn":break;case"TwoPageLeft":t=V.PAGE;case"TwoColumnLeft":e=et.ODD;break;case"TwoPageRight":t=V.PAGE;case"TwoColumnRight":e=et.EVEN;break}return{scrollMode:t,spreadMode:e}}const Zt=(function(){const a=document.createElement("div");return a.style.width="round(down, calc(1.6666666666666665 * 792px), 1px)",a.style.width==="calc(1320px)"?Math.fround:t=>t})(),bn="59968104-cc61-4cf9-b570-014b35b3709c",st=Object.freeze({internal:bn}),wt={FOUND:0,NOT_FOUND:1,WRAPPED:2,PENDING:3},ze=new Map([["‐","-"],["‘","'"],["’","'"],["‚","'"],["‛","'"],["“",'"'],["”",'"'],["„",'"'],["‟",'"'],["¼","1/4"],["½","1/2"],["¾","3/4"]]),Ge=new Set([12441,12442,2381,2509,2637,2765,2893,3021,3149,3277,3387,3388,3405,3530,3642,3770,3972,4153,4154,5908,5940,6098,6752,6980,7082,7083,7154,7155,11647,43014,43052,43204,43347,43456,43766,44013,3158,3953,3954,3962,3963,3964,3965,3968,3956]);let Ke;const pr=new RegExp("\\p{M}+","gu"),gr=new RegExp("([+^$|])|(\\p{P}+)|(\\s+)|(\\p{M})|(\\p{L})","gu"),vr=/[\uAC00-\uD7AF\uFA6C\uFACF-\uFAD1\uFAD5-\uFAD7]+/g,Ye=new Map,mr="[\\u1100-\\u1112\\ud7a4-\\ud7af\\ud84a\\ud84c\\ud850\\ud854\\ud857\\ud85f]",yr=new Map;let oe=null,le=null;function te(a,t={}){const e=[];let n;for(;(n=vr.exec(a))!==null;){let{index:S}=n;for(const w of n[0]){let I=Ye.get(w);I||(I=w.normalize("NFD").length,Ye.set(w,I)),e.push([I,S++])}}const r=e.length>0,i=t.ignoreDashEOL??!1;let s;if(!r&&oe)s=oe;else if(r&&le)s=le;else{const S=ze.keys().join(""),w=rr(),T=[`[${S}]`,`[${w}]`,"(?:゙|゚)\\n","\\p{M}+(?:-\\n)?","\\p{Ll}-\\n(?=\\p{Ll})|\\p{Lu}-\\n(?=\\p{L})","\\S-\\n","(?:\\p{Ideographic}|[぀-ヿ])\\n","\\n",r?mr:"\\u0000"];s=new RegExp(T.map(O=>`(${O})`).join("|"),"gmu"),r?le=s:oe=s}const o=[];for(;(n=pr.exec(a))!==null;)o.push([n[0].length,n.index]);let l=a.normalize("NFD");const u=[0,0];let d=0,h=0,c=0,f=0,p=0,g=!1;l=l.replace(s,(S,w,I,y,P,T,O,m,x,C,D)=>{if(D-=f,w){const N=ze.get(w),M=N.length;for(let $=1;$<M;$++)u.push(D-c+$,c-$);return c-=M-1,N}if(I){const N=yr.getOrInsertComputed(I,()=>I.normalize("NFKC")),M=N.length;for(let $=1;$<M;$++)u.push(D-c+$,c-$);return c-=M-1,N}if(y)return g=!0,D+p===o[d]?.[1]?++d:(u.push(D-1-c+1,c-1),c-=1,f+=1),u.push(D-c+1,c),f+=1,p+=1,y.charAt(0);if(P){const N=P.endsWith(`
4`),M=N?P.length-2:P.length;g=!0;let $=M;D+p===o[d]?.[1]&&($-=o[d][0],++d);for(let G=1;G<=$;G++)u.push(D-1-c+G,c-G);return c-=$,f+=$,N?(D+=M-1,u.push(D-c+1,1+c),c+=1,f+=1,p+=1,P.slice(0,M)):P}if(T){if(i)return f+=1,p+=1,T.slice(0,-1);const N=T.length-2;return u.push(D-c+N,1+c),c+=1,f+=1,p+=1,T.slice(0,-2)}if(O)return f+=1,p+=1,O.slice(0,-1);if(m){const N=m.length-1;return u.push(D-c+N,c),f+=1,p+=1,m.slice(0,-1)}if(x)return u.push(D-c+1,c-1),c-=1,f+=1,p+=1," ";if(D+p===e[h]?.[1]){const N=e[h][0]-1;++h;for(let M=1;M<=N;M++)u.push(D-(c-M),c-M);c-=N,f+=N}return C}),u.push(l.length,c);const v=new Uint32Array(u.length>>1),E=new Int32Array(u.length>>1);for(let S=0,w=u.length;S<w;S+=2)v[S>>1]=u[S],E[S>>1]=u[S+1];return[l,[v,E],g]}function En(a,t,e){if(!a)return[t,e];const[n,r]=a,i=t,s=t+e-1;let o=Kt(n,c=>c>=i);n[o]>i&&--o;let l=Kt(n,c=>c>=s,o);n[l]>s&&--l;const u=i+r[o],h=s+r[l]+1-u;return[u,h]}class br{#t=null;#e=!0;#i=0;#n=0;#r=null;#s=null;constructor({linkService:t,eventBus:e,delay:n=250,updateMatchesCountOnProgress:r=!0}){this._linkService=t,this._eventBus=e,this.#e=r,this.#i=n,this.onIsPageVisible=null,this.#a(),e.on("find",this.#o.bind(this),st),e.on("findbarclose",this.#w.bind(this),st),e.on("pagesedited",this.#v.bind(this),st)}get highlightMatches(){return this._highlightMatches}get pageMatches(){return this._pageMatches}get pageMatchesLength(){return this._pageMatchesLength}get selected(){return this._selected}get state(){return this.#t}setDocument(t){this._pdfDocument&&this.#a(),t&&(this._pdfDocument=t,this._firstPageCapability.resolve())}#o(t){if(!t)return;const e=this._pdfDocument,{type:n}=t;(this.#t===null||this.#f(t))&&(this._dirtyMatch=!0),this.#t=t,n!=="highlightallchange"&&this.#x(wt.PENDING),this._firstPageCapability.promise.then(()=>{if(!this._pdfDocument||e&&this._pdfDocument!==e)return;this.#m();const r=!this._highlightMatches,i=!!this._findTimeout;this._findTimeout&&(clearTimeout(this._findTimeout),this._findTimeout=null),n?this._dirtyMatch?this.#h():n==="again"?(this.#h(),r&&this.#t.highlightAll&&this.#g()):n==="highlightallchange"?(i?this.#h():this._highlightMatches=!0,this.#g()):this.#h():this._findTimeout=setTimeout(()=>{this.#h(),this._findTimeout=null},this.#i)})}scrollMatchIntoView({element:t=null,pageIndex:e=-1,matchIndex:n=-1}){if(!(!this._scrollMatches||!t)){{if(n===-1||n!==this._selected.matchIdx)return;if(e===-1||e!==this._selected.pageIdx)return}this._scrollMatches=!1,t.scrollIntoView({block:"start",inline:"center"})}}#a(){this._highlightMatches=!1,this._scrollMatches=!1,this._pdfDocument=null,this._pageMatches=[],this._pageMatchesLength=[],this.#n=0,this.#t=null,this._selected={pageIdx:-1,matchIdx:-1},this._offset={pageIdx:null,matchIdx:null,wrapped:!1},this._extractTextPromises=[],this._pageContents=[],this._pageDiffs=[],this._hasDiacritics=[],this._matchesCountTotal=0,this._pagesToSearch=null,this._pendingFindMatches=new Set,this._resumePageIdx=null,this._dirtyMatch=!1,clearTimeout(this._findTimeout),this._findTimeout=null,this.#r=null,this._firstPageCapability=Promise.withResolvers()}get#u(){const{query:t}=this.#t;return typeof t=="string"?(t!==this._rawQuery&&(this._rawQuery=t,[this._normalizedQuery]=te(t)),this._normalizedQuery):(t||[]).filter(Boolean).map(e=>te(e)[0])}#f(t){const e=t.query,n=this.#t.query,r=typeof e;if(r!==typeof n)return!0;if(r==="string"){if(e!==n)return!0}else if(JSON.stringify(e)!==JSON.stringify(n))return!0;switch(t.type){case"again":const s=this._selected.pageIdx+1,o=this._linkService;return s>=1&&s<=o.pagesCount&&s!==o.page&&!(this.onIsPageVisible?.(s)??!0);case"highlightallchange":return!1}return!0}#l(t,e){const{matchDiacritics:n}=this.#t;let r=!1;const i=(o,l)=>o===t?l:t.startsWith(o)?`${l}[ ]*`:t.endsWith(o)?`[ ]*${l}`:`[ ]*${l}[ ]*`;t=t.replaceAll(gr,(o,l,u,d,h,c)=>l?i(l,RegExp.escape(l)):u?i(u,RegExp.escape(u)):d?"[ ]+":n?h||c:h?Ge.has(h.charCodeAt(0))?h:"":e?(r=!0,`${c}\\p{M}*`):c);const s="[ ]*";return t.endsWith(s)&&(t=t.slice(0,t.length-s.length)),n&&e&&(Ke||=String.fromCharCode(...Ge),r=!0,t=`${t}(?=[${Ke}]|[^\\p{M}]|$)`),[r,t]}#d(t){if(!this.#t)return;const e=this.#u;if(e.length===0)return;const n=this._pageContents[t],r=this.match(e,n,t),i=this._pageMatches[t]=[],s=this._pageMatchesLength[t]=[],o=this._pageDiffs[t];r?.forEach(({index:u,length:d})=>{const[h,c]=En(o,u,d);c&&(i.push(h),s.push(c))}),this.#t.highlightAll&&this.#c(t),this._resumePageIdx===t&&(this._resumePageIdx=null,this.#b());const l=i.length;this._matchesCountTotal+=l,this.#e?l>0&&this.#P():++this.#n===this._linkService.pagesCount&&this.#P()}match(t,e,n){const r=this._hasDiacritics[n];let i=!1;if(typeof t=="string"?[i,t]=this.#l(t,r):t=t.sort().reverse().map(h=>{const[c,f]=this.#l(h,r);return i||=c,`(${f})`}).join("|"),!t)return;const{caseSensitive:s,entireWord:o}=this.#t,l=`g${i?"u":""}${s?"":"i"}`;t=new RegExp(t,l);const u=[];let d;for(;(d=t.exec(e))!==null;)o&&!nr(e,d.index,d[0].length)||u.push({index:d.index,length:d[0].length});return u}#m(){if(this._extractTextPromises.length>0)return;let t=Promise.resolve();const e={disableNormalization:!0},n=this._pdfDocument;for(let r=0,i=this._linkService.pagesCount;r<i;r++){const{promise:s,resolve:o}=Promise.withResolvers();this._extractTextPromises[r]=s,t=t.then(async()=>{if(n!==this._pdfDocument){o();return}try{const u=await(await n.getPage(r+1)).getTextContent(e);if(n!==this._pdfDocument){o();return}const d=[];for(const h of u.items)d.push(h.str),h.hasEOL&&d.push(`
5`);[this._pageContents[r],this._pageDiffs[r],this._hasDiacritics[r]]=te(d.join(""))}catch(l){if(n!==this._pdfDocument){o();return}console.error(`Unable to get text content for page ${r+1}`,l),[this._pageContents[r],this._pageDiffs[r],this._hasDiacritics[r]]=["",null,!1]}o()})}}#c(t){this._scrollMatches&&this._selected.pageIdx===t&&(this._linkService.page=t+1),this._eventBus.dispatch("updatetextlayermatches",{source:this,pageIndex:t})}#g(){this._eventBus.dispatch("updatetextlayermatches",{source:this,pageIndex:-1})}#h(){const t=this.#t.findPrevious,e=this._linkService.page-1,n=this._linkService.pagesCount;if(this._highlightMatches=!0,this._dirtyMatch){this._dirtyMatch=!1,this._selected.pageIdx=this._selected.matchIdx=-1,this._offset.pageIdx=e,this._offset.matchIdx=null,this._offset.wrapped=!1,this._resumePageIdx=null,this._pageMatches.length=0,this._pageMatchesLength.length=0,this.#n=0,this._matchesCountTotal=0,this.#g();for(let s=0;s<n;s++)this._pendingFindMatches.has(s)||(this._pendingFindMatches.add(s),this._extractTextPromises[s].then(()=>{this._pendingFindMatches.delete(s),this.#d(s)}))}if(this.#u.length===0){this.#x(wt.FOUND);return}if(this._resumePageIdx)return;const i=this._offset;if(this._pagesToSearch=n,i.matchIdx!==null){const s=this._pageMatches[i.pageIdx].length;if(!t&&i.matchIdx+1<s||t&&i.matchIdx>0){i.matchIdx=t?i.matchIdx-1:i.matchIdx+1,this.#y(!0);return}this.#E(t)}this.#b()}#p(t){const e=this._offset,n=t.length,r=this.#t.findPrevious;return n?(e.matchIdx=r?n-1:0,this.#y(!0),!0):(this.#E(r),e.wrapped&&(e.matchIdx=null,this._pagesToSearch<0)?(this.#y(!1),!0):!1)}#b(){this._resumePageIdx!==null&&console.error("There can only be one pending page.");let t=null;do{const e=this._offset.pageIdx;if(t=this._pageMatches[e],!t){this._resumePageIdx=e;break}}while(!this.#p(t))}#E(t){const e=this._offset,n=this._linkService.pagesCount;e.pageIdx=t?e.pageIdx-1:e.pageIdx+1,e.matchIdx=null,this._pagesToSearch--,(e.pageIdx>=n||e.pageIdx<0)&&(e.pageIdx=t?n-1:0,e.wrapped=!0)}#y(t=!1){let e=wt.NOT_FOUND;const n=this._offset.wrapped;if(this._offset.wrapped=!1,t){const r=this._selected.pageIdx;this._selected.pageIdx=this._offset.pageIdx,this._selected.matchIdx=this._offset.matchIdx,e=n?wt.WRAPPED:wt.FOUND,r!==-1&&r!==this._selected.pageIdx&&this.#c(r)}this.#x(e,this.#t.findPrevious),this._selected.pageIdx!==-1&&(this._scrollMatches=!0,this.#c(this._selected.pageIdx))}#v({pagesMapper:t,type:e,pageNumbers:n}){if(this._extractTextPromises.length===0)return;if(e==="copy"){const c=new Map,f=new Map,p=new Map,g=new Map;for(const v of n)c.set(v,this._extractTextPromises[v-1]),f.set(v,this._pageContents[v-1]),p.set(v,this._pageDiffs[v-1]),g.set(v,this._hasDiacritics[v-1]);this.#r={promises:c,contents:f,diffs:p,diacritics:g};return}if(e==="cancelCopy"){this.#r=null;return}if(e==="delete"&&(this.#s={promises:this._extractTextPromises,contents:this._pageContents,diffs:this._pageDiffs,diacritics:this._hasDiacritics}),e==="cancelDelete"){this._extractTextPromises=this.#s.promises,this._pageContents=this.#s.contents,this._pageDiffs=this.#s.diffs,this._hasDiacritics=this.#s.diacritics;return}if(e==="cleanSavedData"){this.#s=null;return}this._findTimeout&&(clearTimeout(this._findTimeout),this._findTimeout=null),this._resumePageIdx=null,this._dirtyMatch=!0;const r=this._extractTextPromises,i=this._pageContents,s=this._pageDiffs,o=this._hasDiacritics,l=this._extractTextPromises=[],u=this._pageContents=[],d=this._pageDiffs=[],h=this._hasDiacritics=[];for(let c=1,f=t.pagesNumber;c<=f;c++){const p=t.getPrevPageNumber(c);if(p<0){const g=-p;l.push(this.#r?.promises.get(g)||Promise.resolve()),u.push(this.#r?.contents.get(g)??""),d.push(this.#r?.diffs.get(g)??null),h.push(this.#r?.diacritics.get(g)??!1);continue}l.push(r[p-1]||Promise.resolve()),u.push(i[p-1]??""),d.push(s[p-1]??null),h.push(o[p-1]??!1)}this.#t&&this.#h()}#w(t){const e=this._pdfDocument;this._firstPageCapability.promise.then(()=>{!this._pdfDocument||e&&this._pdfDocument!==e||(this._findTimeout&&(clearTimeout(this._findTimeout),this._findTimeout=null),this._resumePageIdx&&(this._resumePageIdx=null,this._dirtyMatch=!0),this.#x(wt.FOUND),this._highlightMatches=!1,this.#g())})}#S(){const{pageIdx:t,matchIdx:e}=this._selected;let n=0,r=this._matchesCountTotal;if(e!==-1){for(let i=0;i<t;i++)n+=this._pageMatches[i]?.length||0;n+=e+1}return(n<1||n>r)&&(n=r=0),{current:n,total:r}}#P(){this._eventBus.dispatch("updatefindmatchescount",{source:this,matchesCount:this.#S()})}#x(t,e=!1){!this.#e&&(this.#n!==this._linkService.pagesCount||t===wt.PENDING)||this._eventBus.dispatch("updatefindcontrolstate",{source:this,state:t,previous:e,entireWord:this.#t?.entireWord??null,matchesCount:this.#S(),rawQuery:this.#t?.query??null})}}H(9112);H(5781);const Er="noopener noreferrer nofollow",It={NONE:0,SELF:1,BLANK:2,PARENT:3,TOP:4};class wn{externalLinkEnabled=!0;constructor({eventBus:t,externalLinkTarget:e=null,externalLinkRel:n=null,ignoreDestinationZoom:r=!1}={}){this.eventBus=t,this.externalLinkTarget=e,this.externalLinkRel=n,this._ignoreDestinationZoom=r,this.baseUrl=null,this.pdfDocument=null,this.pdfViewer=null,this.pdfHistory=null}setDocument(t,e=null){this.baseUrl=e,this.pdfDocument=t}setViewer(t){this.pdfViewer=t}setHistory(t){this.pdfHistory=t}get pagesCount(){return this.pdfDocument?.pagesMapper.pagesNumber||0}get page(){return this.pdfDocument?this.pdfViewer.currentPageNumber:1}set page(t){this.pdfDocument&&(this.pdfViewer.currentPageNumber=t)}get rotation(){return this.pdfDocument?this.pdfViewer.pagesRotation:0}set rotation(t){this.pdfDocument&&(this.pdfViewer.pagesRotation=t)}get isInPresentationMode(){return this.pdfDocument?this.pdfViewer.isInPresentationMode:!1}async goToDestination(t){if(!this.pdfDocument)return;let e,n,r;if(typeof t=="string"?(e=t,n=await this.pdfDocument.getDestination(t)):(e=null,n=await t),!Array.isArray(n)){console.error(`goToDestination: "${n}" is not a valid destination array, for dest="${t}".`);return}const[i]=n;if(i&&typeof i=="object"){if(r=this.pdfDocument.cachedPageNumber(i),!r)try{r=await this.pdfDocument.getPageIndex(i)+1}catch{console.error(`goToDestination: "${i}" is not a valid page reference, for dest="${t}".`);return}}else Number.isInteger(i)&&(r=i+1);if(!r||r<1||r>this.pagesCount){console.error(`goToDestination: "${r}" is not a valid page number, for dest="${t}".`);return}this.pdfHistory&&(this.pdfHistory.pushCurrentPosition(),this.pdfHistory.push({namedDest:e,explicitDest:n,pageNumber:r})),this.pdfViewer.scrollPageIntoView({pageNumber:r,destArray:n,ignoreDestinationZoom:this._ignoreDestinationZoom});const s=new AbortController;this.eventBus.on("textlayerrendered",o=>{o.pageNumber===r&&(o.source.textLayer.div.focus(),s.abort())},{signal:s.signal,...st})}goToPage(t){if(!this.pdfDocument)return;const e=typeof t=="string"&&this.pdfViewer.pageLabelToPageNumber(t)||t|0;if(!(Number.isInteger(e)&&e>0&&e<=this.pagesCount)){console.error(`PDFLinkService.goToPage: "${t}" is not a valid page.`);return}this.pdfHistory&&(this.pdfHistory.pushCurrentPosition(),this.pdfHistory.pushPage(e)),this.pdfViewer.scrollPageIntoView({pageNumber:e})}goToXY(t,e,n,r={}){this.pdfViewer.scrollPageIntoView({pageNumber:t,destArray:[null,{name:"XYZ"},e,n],ignoreDestinationZoom:!0,...r})}async getAttachmentContent(t){try{return await this.pdfDocument?.getAttachmentContent(t)}catch(e){e instanceof _n||console.warn(`Unable to load attachment content: ${e}`)}return null}addLinkAttributes(t,e,n=!1){if(!e||typeof e!="string")throw new Error('A valid "url" parameter must provided.');const r=n?It.BLANK:this.externalLinkTarget,i=this.externalLinkRel;let s=e;const o=URL.parse(e);(o?.username||o?.password)&&(o.username=o.password="",s=o.href),this.externalLinkEnabled?(t.href=e,t.title=s):(t.href="",t.title=`Disabled: ${s}`,t.onclick=()=>!1);let l="";switch(r){case It.NONE:break;case It.SELF:l="_self";break;case It.BLANK:l="_blank";break;case It.PARENT:l="_parent";break;case It.TOP:l="_top";break}t.target=l,t.rel=typeof i=="string"?i:Er}getDestinationHash(t){if(typeof t=="string"){if(t.length>0)return this.getAnchorUrl("#"+escape(t))}else if(Array.isArray(t)){const e=JSON.stringify(t);if(e.length>0)return this.getAnchorUrl("#"+escape(e))}return this.getAnchorUrl("")}getAnchorUrl(t){return this.baseUrl?this.baseUrl+t:t}setHash(t){if(!this.pdfDocument)return;let e,n;if(t.includes("=")){const r=re(t);if(r.has("search")){const i=r.get("search").replaceAll('"',""),s=r.get("phrase")==="true";this.eventBus.dispatch("findfromurlhash",{source:this,query:s?i:i.match(/\S+/g)})}if(r.has("page")&&(e=r.get("page")|0||1),r.has("zoom")){const i=r.get("zoom").split(","),s=i[0],o=parseFloat(s);s.includes("Fit")?s==="Fit"||s==="FitB"?n=[null,{name:s}]:s==="FitH"||s==="FitBH"||s==="FitV"||s==="FitBV"?n=[null,{name:s},i.length>1?i[1]|0:null]:s==="FitR"?i.length!==5?console.error('PDFLinkService.setHash: Not enough parameters for "FitR".'):n=[null,{name:s},i[1]|0,i[2]|0,i[3]|0,i[4]|0]:console.error(`PDFLinkService.setHash: "${s}" is not a valid zoom value.`):n=[null,{name:"XYZ"},i.length>1?i[1]|0:null,i.length>2?i[2]|0:null,o?o/100:s]}n?this.pdfViewer.scrollPageIntoView({pageNumber:e||this.page,destArray:n,allowNegativeOffset:!0}):e&&(this.page=e),r.has("pagemode")&&this.eventBus.dispatch("pagemode",{source:this,mode:r.get("pagemode")}),r.has("nameddest")&&this.goToDestination(r.get("nameddest"));return}n=unescape(t);try{n=JSON.parse(n),Array.isArray(n)||(n=n.toString())}catch{}if(typeof n=="string"||Yn(n)){this.goToDestination(n);return}console.error(`PDFLinkService.setHash: "${unescape(t)}" is not a valid destination.`)}executeNamedAction(t){if(this.pdfDocument){switch(t){case"GoBack":this.pdfHistory?.back();break;case"GoForward":this.pdfHistory?.forward();break;case"NextPage":this.pdfViewer.nextPage();break;case"PrevPage":this.pdfViewer.previousPage();break;case"LastPage":this.page=this.pagesCount;break;case"FirstPage":this.page=1;break}this.eventBus.dispatch("namedaction",{source:this,action:t})}}async executeSetOCGState(t){if(!this.pdfDocument)return;const e=this.pdfDocument,n=await this.pdfViewer.optionalContentConfigPromise;e===this.pdfDocument&&(n.setOCGState(t),this.pdfViewer.optionalContentConfigPromise=Promise.resolve(n))}}class Se extends wn{setDocument(t,e=null){}}class xn{#t=null;#e=null;#i=null;#n=null;#r=!1;constructor({pdfPage:t,linkService:e,downloadManager:n,annotationStorage:r=null,imageResourcesPath:i="",renderForms:s=!0,enableComment:o=!1,commentManager:l=null,enableScripting:u=!1,hasJSActionsPromise:d=null,fieldObjectsPromise:h=null,annotationCanvasMap:c=null,accessibilityManager:f=null,annotationEditorUIManager:p=null,onAppend:g=null}){this.pdfPage=t,this.linkService=e,this.downloadManager=n,this.imageResourcesPath=i,this.renderForms=s,this.annotationStorage=r,this.enableComment=o,this.#e=l,this.enableScripting=u,this._hasJSActionsPromise=d||Promise.resolve(!1),this._fieldObjectsPromise=h||Promise.resolve(null),this._annotationCanvasMap=c,this._accessibilityManager=f,this._annotationEditorUIManager=p,this.#i=g,this.annotationLayer=null,this.div=null,this._cancelled=!1,this._eventBus=e.eventBus}async render({viewport:t,intent:e="display",structTreeLayer:n=null,optionalContentConfigPromise:r=null}){if(this.div){const d=await r;if(this._cancelled||!this.annotationLayer)return;this.annotationLayer.update({viewport:t.clone({dontFlip:!0}),optionalContentConfig:d});return}const[i,s,o,l]=await Promise.all([this.pdfPage.getAnnotations({intent:e}),this._hasJSActionsPromise,this._fieldObjectsPromise,r]);if(this._cancelled)return;const u=this.div=document.createElement("div");if(u.className="annotationLayer",this.#i?.(u),this.#s(t,n),i.length===0){this.#t=i,mn(this.div,t);return}await this.annotationLayer.render({annotations:i,imageResourcesPath:this.imageResourcesPath,renderForms:this.renderForms,downloadManager:this.downloadManager,enableComment:this.enableComment,enableScripting:this.enableScripting,hasJSActions:s,fieldObjects:o,optionalContentConfig:l}),this.#t=i,this.linkService.isInPresentationMode&&this.#o(Dt.FULLSCREEN),this.#n||(this.#n=new AbortController,this._eventBus?.on("presentationmodechanged",d=>{this.#o(d.state)},{signal:this.#n.signal,...st}))}#s(t,e){this.annotationLayer=new Wn({div:this.div,accessibilityManager:this._accessibilityManager,annotationCanvasMap:this._annotationCanvasMap,annotationEditorUIManager:this._annotationEditorUIManager,annotationStorage:this.annotationStorage,page:this.pdfPage,viewport:t.clone({dontFlip:!0}),structTreeLayer:e,commentManager:this.#e,linkService:this.linkService})}cancel(){this._cancelled=!0,this.#n?.abort(),this.#n=null,this.annotationLayer?.destroy()}refreshCanvases(){this.annotationLayer?.refreshCanvases()}hide(){this.div&&(this.div.hidden=!0)}hasEditableAnnotations(){return!!this.annotationLayer?.hasEditableAnnotations()}async injectLinkAnnotations(t){if(this.#t===null)throw new Error("`render` method must be called before `injectLinkAnnotations`.");if(this._cancelled||this.#r)return;this.#r=!0;const e=this.#t.length?this.#a(t):t;e.length&&await this.annotationLayer.addLinkAnnotations(e)}#o(t){if(!this.div)return;let e=!1;switch(t){case Dt.FULLSCREEN:e=!0;break;case Dt.NORMAL:break;default:return}for(const n of this.div.childNodes)n.hasAttribute("data-internal-link")||n.classList.contains("mediaAnnotation")||(n.inert=e)}#a(t){function e(i){if(!i.quadPoints)return[i.rect];const s=[];for(let o=2,l=i.quadPoints.length;o<l;o+=8){const u=i.quadPoints[o],d=i.quadPoints[o+1],h=i.quadPoints[o+2],c=i.quadPoints[o+3];s.push([h,c,u,d])}return s}function n(i,s){const o=[],l=e(i),u=e(s);for(const d of l)for(const h of u){const c=xe.intersect(d,h);c&&o.push(c)}return o}function r(i){let s=0;for(const o of i)s+=Math.abs((o[2]-o[0])*(o[3]-o[1]));return s}return t.filter(i=>{let s;for(const o of this.#t){if(o.annotationType!==gn.LINK)continue;const l=n(o,i);if(l.length!==0&&(s??=r(e(i)),r(l)/s>.5))return!1}return!0})}}H(8454);H(9452);class wr{#t=new WeakMap;_triggerDownload(t,e,n,r=!1){throw new Error("Not implemented: _triggerDownload")}_getOpenDataUrl(t,e,n=null){throw new Error("Not implemented: _getOpenDataUrl")}downloadData(t,e,n){const r=URL.createObjectURL(new Blob([t],{type:n}));this._triggerDownload(r,r,e,!0)}openOrDownloadData(t,e,n=null){const r=Kn(e),i=r?"application/pdf":"";if(r){const s=this.#t.getOrInsertComputed(t,()=>URL.createObjectURL(new Blob([t],{type:i})));try{const o=this._getOpenDataUrl(s,e,n);return window.open(o),!0}catch(o){console.error("openOrDownloadData:",o),URL.revokeObjectURL(s),this.#t.delete(t)}}return this.downloadData(t,e,i),!1}download(t,e,n){const r=t?URL.createObjectURL(new Blob([t],{type:"application/pdf"})):null;this._triggerDownload(r,e,n)}}class xr extends wr{_triggerDownload(t,e,n,r=!1){if(!t&&!r){if(!vn(e,"http://example.com"))throw new Error(`_triggerDownload - not a valid URL: ${e}`);t=e+"#pdfjs.action=download"}const i=document.createElement("a");i.href=t,i.target="_parent","download"in i&&(i.download=n),(document.body||document.documentElement).append(i),i.click(),i.remove()}_getOpenDataUrl(t,e,n=null){throw new Error("Opening data is not supported in `COMPONENTS` builds.")}}H(116);const Xe={EVENT:"event",TIMEOUT:"timeout"};async function Sr({target:a,name:t,delay:e=0}){if(typeof a!="object"||!(Number.isInteger(e)&&e>=0))throw new Error("waitOnEventOrTimeout - invalid parameters.");const{promise:n,resolve:r}=Promise.withResolvers(),i=new AbortController;function s(d){i.abort(),clearTimeout(u),r(d)}const o=a instanceof ge?"on":"addEventListener",l=a instanceof ge?{signal:i.signal,...st}:{signal:i.signal};a[o](t,s.bind(null,Xe.EVENT),l);const u=setTimeout(s.bind(null,Xe.TIMEOUT),e);return n}class ge{#t=new Map;constructor(){Object.seal(this)}on(t,e,n=null){let r=null;if(n?.signal instanceof AbortSignal){const{signal:i}=n;if(i.aborted){console.error("Cannot use an `aborted` signal.");return}const s=()=>this.off(t,e);r=()=>i.removeEventListener("abort",s),i.addEventListener("abort",s)}this.#t.getOrInsertComputed(t,Jn).add({listener:e,internal:n?.internal===bn,once:n?.once===!0,rmAbort:r})}off(t,e,n=null){const r=this.#t.get(t),i=r?.keys().find(s=>s.listener===e);i&&(i.rmAbort?.(),r.delete(i))}dispatch(t,e){const n=this.#t.get(t);if(!n?.size)return;let r;for(const{listener:i,internal:s,once:o}of new Set(n)){if(o&&this.off(t,i),!s){(r??=[]).push(i);continue}i(e)}if(r)for(const i of r)i(e)}}class jt{constructor(t){this.value=t}valueOf(){return this.value}}class Q extends jt{constructor(t="???"){super(t)}toString(t){return`{${this.value}}`}}class Et extends jt{constructor(t,e={}){super(t),this.opts=e}toString(t){if(t)try{return t.memoizeIntlObject(Intl.NumberFormat,this.opts).format(this.value)}catch(e){t.reportError(e)}return this.value.toString(10)}}class St extends jt{static supportsValue(t){if(typeof t=="number"||t instanceof Date)return!0;if(t instanceof jt)return St.supportsValue(t.valueOf());if("Temporal"in globalThis){const e=globalThis.Temporal;if(t instanceof e.Instant||t instanceof e.PlainDateTime||t instanceof e.PlainDate||t instanceof e.PlainMonthDay||t instanceof e.PlainTime||t instanceof e.PlainYearMonth)return!0}return!1}constructor(t,e={}){t instanceof St?(e={...t.opts,...e},t=t.value):t instanceof jt&&(t=t.valueOf()),typeof t=="object"&&"calendarId"in t&&e.calendar===void 0&&(e={...e,calendar:t.calendarId}),super(t),this.opts=e}[Symbol.toPrimitive](t){return t==="string"?this.toString():this.toNumber()}toNumber(){const t=this.value;if(typeof t=="number")return t;if(t instanceof Date)return t.getTime();if("epochMilliseconds"in t)return t.epochMilliseconds;if("toZonedDateTime"in t)return t.toZonedDateTime("UTC").epochMilliseconds;throw new TypeError("Unwrapping a non-number value as a number")}toString(t){if(t)try{return t.memoizeIntlObject(Intl.DateTimeFormat,this.opts).format(this.value)}catch(e){t.reportError(e)}return typeof this.value=="number"||this.value instanceof Date?new Date(this.value).toISOString():this.value.toString()}}const Je=100,Pr="⁨",Ir="⁩";function Cr(a,t,e){if(e===t||e instanceof Et&&t instanceof Et&&e.value===t.value)return!0;if(t instanceof Et&&typeof e=="string"){let n=a.memoizeIntlObject(Intl.PluralRules,t.opts).select(t.value);if(e===n)return!0}return!1}function Ze(a,t,e){return t[e]?Vt(a,t[e].value):(a.reportError(new RangeError("No default")),new Q)}function ve(a,t){const e=[],n=Object.create(null);for(const r of t)r.type==="narg"?n[r.name]=Yt(a,r.value):e.push(Yt(a,r));return{positional:e,named:n}}function Yt(a,t){switch(t.type){case"str":return t.value;case"num":return new Et(t.value,{minimumFractionDigits:t.precision});case"var":return Rr(a,t);case"mesg":return Tr(a,t);case"term":return Ar(a,t);case"func":return Or(a,t);case"select":return Lr(a,t);default:return new Q}}function Rr(a,{name:t}){let e;if(a.params)if(Object.prototype.hasOwnProperty.call(a.params,t))e=a.params[t];else return new Q(`$${t}`);else if(a.args&&Object.prototype.hasOwnProperty.call(a.args,t))e=a.args[t];else return a.reportError(new ReferenceError(`Unknown variable: $${t}`)),new Q(`$${t}`);if(e instanceof jt)return e;switch(typeof e){case"string":return e;case"number":return new Et(e);case"object":if(St.supportsValue(e))return new St(e);default:return a.reportError(new TypeError(`Variable type not supported: $${t}, ${typeof e}`)),new Q(`$${t}`)}}function Tr(a,{name:t,attr:e}){const n=a.bundle._messages.get(t);if(!n)return a.reportError(new ReferenceError(`Unknown message: ${t}`)),new Q(t);if(e){const r=n.attributes[e];return r?Vt(a,r):(a.reportError(new ReferenceError(`Unknown attribute: ${e}`)),new Q(`${t}.${e}`))}return n.value?Vt(a,n.value):(a.reportError(new ReferenceError(`No value: ${t}`)),new Q(t))}function Ar(a,{name:t,attr:e,args:n}){const r=`-${t}`,i=a.bundle._terms.get(r);if(!i)return a.reportError(new ReferenceError(`Unknown term: ${r}`)),new Q(r);if(e){const o=i.attributes[e];if(o){a.params=ve(a,n).named;const l=Vt(a,o);return a.params=null,l}return a.reportError(new ReferenceError(`Unknown attribute: ${e}`)),new Q(`${r}.${e}`)}a.params=ve(a,n).named;const s=Vt(a,i.value);return a.params=null,s}function Or(a,{name:t,args:e}){let n=a.bundle._functions[t];if(!n)return a.reportError(new ReferenceError(`Unknown function: ${t}()`)),new Q(`${t}()`);if(typeof n!="function")return a.reportError(new TypeError(`Function ${t}() is not callable`)),new Q(`${t}()`);try{let r=ve(a,e);return n(r.positional,r.named)}catch(r){return a.reportError(r),new Q(`${t}()`)}}function Lr(a,{selector:t,variants:e,star:n}){let r=Yt(a,t);if(r instanceof Q)return Ze(a,e,n);for(const i of e){const s=Yt(a,i.key);if(Cr(a,r,s))return Vt(a,i.value)}return Ze(a,e,n)}function Sn(a,t){if(a.dirty.has(t))return a.reportError(new RangeError("Cyclic reference")),new Q;a.dirty.add(t);const e=[],n=a.bundle._useIsolating&&t.length>1;for(const r of t){if(typeof r=="string"){e.push(a.bundle._transform(r));continue}if(a.placeables++,a.placeables>Je)throw a.dirty.delete(t),new RangeError(`Too many placeables expanded: ${a.placeables}, max allowed is ${Je}`);n&&e.push(Pr),e.push(Yt(a,r).toString(a)),n&&e.push(Ir)}return a.dirty.delete(t),e.join("")}function Vt(a,t){return typeof t=="string"?a.bundle._transform(t):Sn(a,t)}class Nr{constructor(t,e,n){this.dirty=new WeakSet,this.params=null,this.placeables=0,this.bundle=t,this.errors=e,this.args=n}reportError(t){if(!this.errors||!(t instanceof Error))throw t;this.errors.push(t)}memoizeIntlObject(t,e){let n=this.bundle._intls.get(t);n||(n={},this.bundle._intls.set(t,n));let r=JSON.stringify(e);return n[r]||(n[r]=new t(this.bundle.locales,e)),n[r]}}function me(a,t){const e=Object.create(null);for(const[n,r]of Object.entries(a))t.includes(n)&&(e[n]=r.valueOf());return e}const Qe=["unitDisplay","currencyDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits"];function Mr(a,t){let e=a[0];if(e instanceof Q)return new Q(`NUMBER(${e.valueOf()})`);if(e instanceof Et)return new Et(e.valueOf(),{...e.opts,...me(t,Qe)});if(e instanceof St)return new Et(e.toNumber(),{...me(t,Qe)});throw new TypeError("Invalid argument to NUMBER")}const Dr=["dateStyle","timeStyle","fractionalSecondDigits","dayPeriod","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName"];function jr(a,t){let e=a[0];if(e instanceof Q)return new Q(`DATETIME(${e.valueOf()})`);if(e instanceof St||e instanceof Et)return new St(e,me(t,Dr));throw new TypeError("Invalid argument to DATETIME")}const _e=new Map;function Fr(a){const t=Array.isArray(a)?a.join(" "):a;let e=_e.get(t);return e===void 0&&(e=new Map,_e.set(t,e)),e}class Vr{constructor(t,{functions:e,useIsolating:n=!0,transform:r=i=>i}={}){this._terms=new Map,this._messages=new Map,this.locales=Array.isArray(t)?t:[t],this._functions={NUMBER:Mr,DATETIME:jr,...e},this._useIsolating=n,this._transform=r,this._intls=Fr(t)}hasMessage(t){return this._messages.has(t)}getMessage(t){return this._messages.get(t)}addResource(t,{allowOverrides:e=!1}={}){const n=[];for(let r=0;r<t.body.length;r++){let i=t.body[r];if(i.id.startsWith("-")){if(e===!1&&this._terms.has(i.id)){n.push(new Error(`Attempt to override an existing term: "${i.id}"`));continue}this._terms.set(i.id,i)}else{if(e===!1&&this._messages.has(i.id)){n.push(new Error(`Attempt to override an existing message: "${i.id}"`));continue}this._messages.set(i.id,i)}}return n}formatPattern(t,e=null,n=null){if(typeof t=="string")return this._transform(t);let r=new Nr(this,n,e);try{return Sn(r,t).toString(r)}catch(i){if(r.errors&&i instanceof Error)return r.errors.push(i),new Q().toString(r);throw i}}}const ue=/^(-?[a-zA-Z][\w-]*) *= */gm,qe=/\.([a-zA-Z][\w-]*) *= */y,Br=/\*?\[/y,de=/(-?[0-9]+(?:\.([0-9]+))?)/y,Ur=/([a-zA-Z][\w-]*)/y,tn=/([$-])?([a-zA-Z][\w-]*)(?:\.([a-zA-Z][\w-]*))?/y,kr=/^[A-Z][A-Z0-9_-]*$/,Qt=/([^{}\n\r]+)/y,$r=/([^\\"\n\r]*)/y,en=/\\([\\"])/y,nn=/\\u([a-fA-F0-9]{4})|\\U([a-fA-F0-9]{6})/y,Wr=/^\n+/,rn=/ +$/,Hr=/ *\r?\n/g,zr=/( *)$/,Gr=/{\s*/y,sn=/\s*}/y,Kr=/\[\s*/y,Yr=/\s*] */y,Xr=/\s*\(\s*/y,Jr=/\s*->\s*/y,Zr=/\s*:\s*/y,Qr=/\s*,?\s*/y,_r=/\s+/y;class qr{constructor(t){this.body=[],ue.lastIndex=0;let e=0;for(;;){let m=ue.exec(t);if(m===null)break;e=ue.lastIndex;try{this.body.push(l(m[1]))}catch(x){if(x instanceof SyntaxError)continue;throw x}}function n(m){return m.lastIndex=e,m.test(t)}function r(m,x){if(t[e]===m)return e++,!0;if(x)throw new x(`Expected ${m}`);return!1}function i(m,x){if(n(m))return e=m.lastIndex,!0;if(x)throw new x(`Expected ${m.toString()}`);return!1}function s(m){m.lastIndex=e;let x=m.exec(t);if(x===null)throw new SyntaxError(`Expected ${m.toString()}`);return e=m.lastIndex,x}function o(m){return s(m)[1]}function l(m){let x=d(),C=u();if(x===null&&Object.keys(C).length===0)throw new SyntaxError("Expected message value or attributes");return{id:m,value:x,attributes:C}}function u(){let m=Object.create(null);for(;n(qe);){let x=o(qe),C=d();if(C===null)throw new SyntaxError("Expected attribute value");m[x]=C}return m}function d(){let m;if(n(Qt)&&(m=o(Qt)),t[e]==="{"||t[e]==="}")return h(m?[m]:[],1/0);let x=P();return x?m?h([m,x],x.length):(x.value=T(x.value,Wr),h([x],x.length)):m?T(m,rn):null}function h(m=[],x){for(;;){if(n(Qt)){m.push(o(Qt));continue}if(t[e]==="{"){m.push(c());continue}if(t[e]==="}")throw new SyntaxError("Unbalanced closing brace");let M=P();if(M){m.push(M),x=Math.min(x,M.length);continue}break}let C=m.length-1,D=m[C];typeof D=="string"&&(m[C]=T(D,rn));let N=[];for(let M of m)M instanceof an&&(M=M.value.slice(0,M.value.length-x)),M&&N.push(M);return N}function c(){i(Gr,SyntaxError);let m=f();if(i(sn))return m;if(i(Jr)){let x=v();return i(sn,SyntaxError),{type:"select",selector:m,...x}}throw new SyntaxError("Unclosed placeable")}function f(){if(t[e]==="{")return c();if(n(tn)){let[,m,x,C=null]=s(tn);if(m==="$")return{type:"var",name:x};if(i(Xr)){let D=p();if(m==="-")return{type:"term",name:x,attr:C,args:D};if(kr.test(x))return{type:"func",name:x,args:D};throw new SyntaxError("Function names must be all upper-case")}return m==="-"?{type:"term",name:x,attr:C,args:[]}:{type:"mesg",name:x,attr:C}}return S()}function p(){let m=[];for(;;){switch(t[e]){case")":return e++,m;case void 0:throw new SyntaxError("Unclosed argument list")}m.push(g()),i(Qr)}}function g(){let m=f();return m.type!=="mesg"?m:i(Zr)?{type:"narg",name:m.name,value:S()}:m}function v(){let m=[],x=0,C;for(;n(Br);){r("*")&&(C=x);let D=E(),N=d();if(N===null)throw new SyntaxError("Expected variant value");m[x++]={key:D,value:N}}if(x===0)return null;if(C===void 0)throw new SyntaxError("Expected default variant");return{variants:m,star:C}}function E(){i(Kr,SyntaxError);let m;return n(de)?m=w():m={type:"str",value:o(Ur)},i(Yr,SyntaxError),m}function S(){if(n(de))return w();if(t[e]==='"')return I();throw new SyntaxError("Invalid expression")}function w(){let[,m,x=""]=s(de),C=x.length;return{type:"num",value:parseFloat(m),precision:C}}function I(){r('"',SyntaxError);let m="";for(;;){if(m+=o($r),t[e]==="\\"){m+=y();continue}if(r('"'))return{type:"str",value:m};throw new SyntaxError("Unclosed string literal")}}function y(){if(n(en))return o(en);if(n(nn)){let[,m,x]=s(nn),C=parseInt(m||x,16);return C<=55295||57344<=C?String.fromCodePoint(C):"�"}throw new SyntaxError("Unknown escape sequence")}function P(){let m=e;switch(i(_r),t[e]){case".":case"[":case"*":case"}":case void 0:return!1;case"{":return O(t.slice(m,e))}return t[e-1]===" "?O(t.slice(m,e)):!1}function T(m,x){return m.replace(x,"")}function O(m){let x=m.replace(Hr,`
6`),C=zr.exec(m)[1].length;return new an(x,C)}}}class an{constructor(t,e){this.value=t,this.length=e}}const ti=/<|&#?\w+;/,ei={"http://www.w3.org/1999/xhtml":["em","strong","small","s","cite","q","dfn","abbr","data","time","code","var","samp","kbd","sub","sup","i","b","u","mark","bdi","bdo","span","br","wbr"]},ni={"http://www.w3.org/1999/xhtml":{global:["title","aria-description","aria-label","aria-valuetext"],a:["download"],area:["download","alt"],input:["alt","placeholder"],menuitem:["label"],menu:["label"],optgroup:["label"],option:["label"],track:["label"],img:["alt"],textarea:["placeholder"],th:["abbr"]},"http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul":{global:["accesskey","aria-label","aria-valuetext","label","title","tooltiptext"],description:["value"],key:["key","keycode"],label:["value"],textbox:["placeholder","value"]}};function ri(a,t){const{value:e}=t;if(typeof e=="string")if(a.localName==="title"&&a.namespaceURI==="http://www.w3.org/1999/xhtml")a.textContent=e;else if(!ti.test(e))a.textContent=e;else{const n=a.ownerDocument.createElementNS("http://www.w3.org/1999/xhtml","template");n.innerHTML=e,ii(n.content,a)}Pn(t,a)}function ii(a,t){for(const e of a.childNodes)if(e.nodeType!==e.TEXT_NODE){if(e.hasAttribute("data-l10n-name")){const n=ai(t,e);a.replaceChild(n,e);continue}if(li(e)){const n=oi(e);a.replaceChild(n,e);continue}console.warn(`An element of forbidden type "${e.localName}" was found in the translation. Only safe text-level elements and elements with data-l10n-name are allowed.`),a.replaceChild(ye(e),e)}t.textContent="",t.appendChild(a)}function si(a,t){if(!a)return!1;for(let e of a)if(e.name===t)return!0;return!1}function Pn(a,t){const e=t.hasAttribute("data-l10n-attrs")?t.getAttribute("data-l10n-attrs").split(",").map(n=>n.trim()):null;for(const n of Array.from(t.attributes))on(n.name,t,e)&&!si(a.attributes,n.name)&&t.removeAttribute(n.name);if(a.attributes)for(const n of Array.from(a.attributes))on(n.name,t,e)&&t.getAttribute(n.name)!==n.value&&t.setAttribute(n.name,n.value)}function ai(a,t){const e=t.getAttribute("data-l10n-name"),n=a.querySelector(`[data-l10n-name="${e}"]`);if(!n)return console.warn(`An element named "${e}" wasn't found in the source.`),ye(t);if(n.localName!==t.localName)return console.warn(`An element named "${e}" was found in the translation but its type ${t.localName} didn't match the element found in the source (${n.localName}).`),ye(t);a.removeChild(n);const r=n.cloneNode(!1);return In(t,r)}function oi(a){const t=a.ownerDocument.createElement(a.localName);return In(a,t)}function ye(a){return a.ownerDocument.createTextNode(a.textContent)}function li(a){const t=ei[a.namespaceURI];return t&&t.includes(a.localName)}function on(a,t,e=null){if(e&&e.includes(a))return!0;const n=ni[t.namespaceURI];if(!n)return!1;const r=a.toLowerCase(),i=t.localName;if(n.global.includes(r))return!0;if(!n[i])return!1;if(n[i].includes(r))return!0;if(t.namespaceURI==="http://www.w3.org/1999/xhtml"&&i==="input"&&r==="value"){const s=t.type.toLowerCase();if(s==="submit"||s==="button"||s==="reset")return!0}return!1}function In(a,t){return t.textContent=a.textContent,Pn(a,t),t}class ui extends Array{static from(t){return t instanceof this?t:new this(t)}}class di extends ui{constructor(t){if(super(),Symbol.asyncIterator in Object(t))this.iterator=t[Symbol.asyncIterator]();else if(Symbol.iterator in Object(t))this.iterator=t[Symbol.iterator]();else throw new TypeError("Argument must implement the iteration protocol.")}[Symbol.asyncIterator](){const t=this;let e=0;return{async next(){return t.length<=e&&t.push(t.iterator.next()),t[e++]}}}async touchNext(t=1){let e=0;for(;e++<t;){const n=this[this.length-1];if(n&&(await n).done)break;this.push(this.iterator.next())}return this[this.length-1]}}class hi{constructor(t=[],e){this.resourceIds=t,this.generateBundles=e,this.onChange(!0)}addResourceIds(t,e=!1){return this.resourceIds.push(...t),this.onChange(e),this.resourceIds.length}removeResourceIds(t){return this.resourceIds=this.resourceIds.filter(e=>!t.includes(e)),this.onChange(),this.resourceIds.length}async formatWithFallback(t,e){const n=[];let r=!1;for await(const i of this.bundles){r=!0;const s=pi(e,i,t,n);if(s.size===0)break;if(typeof console<"u"){const o=i.locales[0],l=Array.from(s).join(", ");console.warn(`[fluent] Missing translations in ${o}: ${l}`)}}return!r&&typeof console<"u"&&console.warn(`[fluent] Request for keys failed because no resource bundles got generated.
7  keys: ${JSON.stringify(t)}.
8  resourceIds: ${JSON.stringify(this.resourceIds)}.`),n}formatMessages(t){return this.formatWithFallback(t,fi)}formatValues(t){return this.formatWithFallback(t,ci)}async formatValue(t,e){const[n]=await this.formatValues([{id:t,args:e}]);return n}handleEvent(){this.onChange()}onChange(t=!1){this.bundles=di.from(this.generateBundles(this.resourceIds)),t&&this.bundles.touchNext(2)}}function ci(a,t,e,n){return e.value?a.formatPattern(e.value,n,t):null}function fi(a,t,e,n){const r={value:null,attributes:null};e.value&&(r.value=a.formatPattern(e.value,n,t));let i=Object.keys(e.attributes);if(i.length>0){r.attributes=new Array(i.length);for(let[s,o]of i.entries()){let l=a.formatPattern(e.attributes[o],n,t);r.attributes[s]={name:o,value:l}}}return r}function pi(a,t,e,n){const r=[],i=new Set;return e.forEach(({id:s,args:o},l)=>{if(n[l]!==void 0)return;let u=t.getMessage(s);if(u){if(r.length=0,n[l]=a(t,r,u,o),r.length>0&&typeof console<"u"){const d=t.locales[0],h=r.join(", ");console.warn(`[fluent][resolver] errors in ${d}/${s}: ${h}.`)}}else i.add(s)}),i}const Ct="data-l10n-id",Wt="data-l10n-args",gi=`[${Ct}]`;class vi extends hi{constructor(t,e){super(t,e),this.roots=new Set,this.pendingrAF=null,this.pendingElements=new Set,this.windowElement=null,this.mutationObserver=null,this.observerConfig={attributes:!0,characterData:!1,childList:!0,subtree:!0,attributeFilter:[Ct,Wt]}}onChange(t=!1){super.onChange(t),this.roots&&this.translateRoots()}setAttributes(t,e,n){return t.setAttribute(Ct,e),n?t.setAttribute(Wt,JSON.stringify(n)):t.removeAttribute(Wt),t}getAttributes(t){return{id:t.getAttribute(Ct),args:JSON.parse(t.getAttribute(Wt)||null)}}connectRoot(t){for(const e of this.roots)if(e===t||e.contains(t)||t.contains(e))throw new Error("Cannot add a root that overlaps with existing root.");if(this.windowElement){if(this.windowElement!==t.ownerDocument.defaultView)throw new Error(`Cannot connect a root:
9          DOMLocalization already has a root from a different window.`)}else this.windowElement=t.ownerDocument.defaultView,this.mutationObserver=new this.windowElement.MutationObserver(e=>this.translateMutations(e));this.roots.add(t),this.mutationObserver.observe(t,this.observerConfig)}disconnectRoot(t){return this.roots.delete(t),this.pauseObserving(),this.roots.size===0?(this.mutationObserver=null,this.windowElement&&this.pendingrAF&&this.windowElement.cancelAnimationFrame(this.pendingrAF),this.windowElement=null,this.pendingrAF=null,this.pendingElements.clear(),!0):(this.resumeObserving(),!1)}translateRoots(){const t=Array.from(this.roots);return Promise.all(t.map(e=>this.translateFragment(e)))}pauseObserving(){this.mutationObserver&&(this.translateMutations(this.mutationObserver.takeRecords()),this.mutationObserver.disconnect())}resumeObserving(){if(this.mutationObserver)for(const t of this.roots)this.mutationObserver.observe(t,this.observerConfig)}translateMutations(t){for(const e of t)switch(e.type){case"attributes":e.target.hasAttribute("data-l10n-id")&&this.pendingElements.add(e.target);break;case"childList":for(const n of e.addedNodes)if(n.nodeType===n.ELEMENT_NODE)if(n.childElementCount)for(const r of this.getTranslatables(n))this.pendingElements.add(r);else n.hasAttribute(Ct)&&this.pendingElements.add(n);break}this.pendingElements.size>0&&this.pendingrAF===null&&(this.pendingrAF=this.windowElement.requestAnimationFrame(()=>{this.translateElements(Array.from(this.pendingElements)),this.pendingElements.clear(),this.pendingrAF=null}))}translateFragment(t){return this.translateElements(this.getTranslatables(t))}async translateElements(t){if(!t.length)return;const e=t.map(this.getKeysForElement),n=await this.formatMessages(e);return this.applyTranslations(t,n)}applyTranslations(t,e){this.pauseObserving();for(let n=0;n<t.length;n++)e[n]!==void 0&&ri(t[n],e[n]);this.resumeObserving()}getTranslatables(t){const e=Array.from(t.querySelectorAll(gi));return typeof t.hasAttribute=="function"&&t.hasAttribute(Ct)&&e.push(t),e}getKeysForElement(t){return{id:t.getAttribute(Ct),args:JSON.parse(t.getAttribute(Wt)||null)}}}class ee{#t;#e;#i;#n;constructor({lang:t,isRTL:e},n=null){this.#i=ee.#r(t),this.#n=n,this.#t=e??ee.#s(this.#i)?"rtl":"ltr"}_setL10n(t){this.#n=t}getLanguage(){return this.#i}getDirection(){return this.#t}async get(t,e=null,n){return Array.isArray(t)?(t=t.map(s=>({id:s})),(await this.#n.formatMessages(t)).map(s=>s.value)):(await this.#n.formatMessages([{id:t,args:e}]))[0]?.value||n}async translate(t){(this.#e||=new Set).add(t);try{this.#n.connectRoot(t),await this.#n.translateRoots()}catch{}}async translateOnce(t){try{await this.#n.translateElements([t])}catch(e){console.error("translateOnce:",e)}}async destroy(){if(this.#e){for(const t of this.#e)this.#n.disconnectRoot(t);this.#e.clear(),this.#e=null}this.#n.pauseObserving()}pause(){this.#n.pauseObserving()}resume(){this.#n.resumeObserving()}static#r(t){return t=t?.toLowerCase()||"en-us",{en:"en-us",es:"es-es",fy:"fy-nl",ga:"ga-ie",gu:"gu-in",hi:"hi-in",hy:"hy-am",nb:"nb-no",ne:"ne-np",nn:"nn-no",pa:"pa-in",pt:"pt-pt",sv:"sv-se",zh:"zh-cn"}[t]||t}static#s(t){const e=t.split("-",1)[0];return["ar","he","fa","ps","ur"].includes(e)}}function mi(){const{isAndroid:a,isLinux:t,isMac:e,isWindows:n}=we.platform;return t?"linux":n?"windows":e?"macos":a?"android":"other"}function ln(a,t){const e=new qr(t),n=new Vr(a,{functions:{PLATFORM:mi}}),r=n.addResource(e);return r.length&&console.error("L10n errors",r),n}class bt extends ee{constructor(t){super({lang:t});const e=t?bt.#t.bind(bt,"en-us",this.getLanguage()):bt.#n.bind(bt,this.getLanguage());this._setL10n(new vi([],e))}static async*#t(t,e){const{baseURL:n,paths:r}=await this.#i(),i=[e];if(t!==e){const o=e.split("-",1)[0];o!==e&&i.push(o),i.push(t)}const s=i.map(o=>[o,this.#e(o,n,r)]);for(const[o,l]of s){const u=await l;u?yield u:o==="en-us"&&(yield this.#r(o))}}static async#e(t,e,n){const r=n[t];if(!r)return null;const i=new URL(r,e),s=await De(i,"text");return ln(t,s)}static async#i(){try{const{href:t}=document.querySelector('link[type="application/l10n"]'),e=await De(t,"json");return{baseURL:t.substring(0,t.lastIndexOf("/")+1)||"./",paths:e}}catch{}return{baseURL:"./",paths:Object.create(null)}}static async*#n(t){yield this.#r(t)}static async#r(t){return ln(t
vendor: 24,954 bytes, lines 9-544
9,`pdfjs-previous-button =
10    .title = Previous Page
11pdfjs-previous-button-label = Previous
12pdfjs-next-button =
13    .title = Next Page
14pdfjs-next-button-label = Next
15pdfjs-page-input =
16    .title = Page
17pdfjs-of-pages = of { $pagesCount }
18pdfjs-page-of-pages = ({ $pageNumber } of { $pagesCount })
19pdfjs-zoom-out-button =
20    .title = Zoom Out
21pdfjs-zoom-out-button-label = Zoom Out
22pdfjs-zoom-in-button =
23    .title = Zoom In
24pdfjs-zoom-in-button-label = Zoom In
25pdfjs-zoom-select =
26    .title = Zoom
27pdfjs-presentation-mode-button =
28    .title = Switch to Presentation Mode
29pdfjs-presentation-mode-button-label = Presentation Mode
30pdfjs-open-file-button =
31    .title = Open File
32pdfjs-open-file-button-label = Open
33pdfjs-print-button =
34    .title = Print
35pdfjs-print-button-label = Print
36pdfjs-save-button =
37    .title = Save
38pdfjs-save-button-label = Save
39pdfjs-download-button =
40    .title = Download
41pdfjs-download-button-label = Download
42pdfjs-bookmark-button =
43    .title = Current Page (View URL from Current Page)
44pdfjs-bookmark-button-label = Current Page
45pdfjs-tools-button =
46    .title = Tools
47pdfjs-tools-button-label = Tools
48pdfjs-first-page-button =
49    .title = Go to First Page
50pdfjs-first-page-button-label = Go to First Page
51pdfjs-last-page-button =
52    .title = Go to Last Page
53pdfjs-last-page-button-label = Go to Last Page
54pdfjs-page-rotate-cw-button =
55    .title = Rotate Clockwise
56pdfjs-page-rotate-cw-button-label = Rotate Clockwise
57pdfjs-page-rotate-ccw-button =
58    .title = Rotate Counterclockwise
59pdfjs-page-rotate-ccw-button-label = Rotate Counterclockwise
60pdfjs-cursor-text-select-tool-button =
61    .title = Enable Text Selection Tool
62pdfjs-cursor-text-select-tool-button-label = Text Selection Tool
63pdfjs-cursor-hand-tool-button =
64    .title = Enable Hand Tool
65pdfjs-cursor-hand-tool-button-label = Hand Tool
66pdfjs-scroll-page-button =
67    .title = Use Page Scrolling
68pdfjs-scroll-page-button-label = Page Scrolling
69pdfjs-scroll-vertical-button =
70    .title = Use Vertical Scrolling
71pdfjs-scroll-vertical-button-label = Vertical Scrolling
72pdfjs-scroll-horizontal-button =
73    .title = Use Horizontal Scrolling
74pdfjs-scroll-horizontal-button-label = Horizontal Scrolling
75pdfjs-scroll-wrapped-button =
76    .title = Use Wrapped Scrolling
77pdfjs-scroll-wrapped-button-label = Wrapped Scrolling
78pdfjs-spread-none-button =
79    .title = Do not join page spreads
80pdfjs-spread-none-button-label = No Spreads
81pdfjs-spread-odd-button =
82    .title = Join page spreads starting with odd-numbered pages
83pdfjs-spread-odd-button-label = Odd Spreads
84pdfjs-spread-even-button =
85    .title = Join page spreads starting with even-numbered pages
86pdfjs-spread-even-button-label = Even Spreads
87pdfjs-document-properties-button =
88    .title = Document Properties…
89pdfjs-document-properties-button-label = Document Properties…
90pdfjs-document-properties-file-name = File name:
91pdfjs-document-properties-file-size = File size:
92pdfjs-document-properties-size-kb = { NUMBER($kb, maximumSignificantDigits: 3) } KB ({ $b } bytes)
93pdfjs-document-properties-size-mb = { NUMBER($mb, maximumSignificantDigits: 3) } MB ({ $b } bytes)
94pdfjs-document-properties-title = Title:
95pdfjs-document-properties-author = Author:
96pdfjs-document-properties-subject = Subject:
97pdfjs-document-properties-keywords = Keywords:
98pdfjs-document-properties-creation-date = Creation Date:
99pdfjs-document-properties-modification-date = Modification Date:
100pdfjs-document-properties-date-time-string = { DATETIME($dateObj, dateStyle: "short", timeStyle: "medium") }
101pdfjs-document-properties-creator = Creator:
102pdfjs-document-properties-producer = PDF Producer:
103pdfjs-document-properties-version = PDF Version:
104pdfjs-document-properties-page-count = Page Count:
105pdfjs-document-properties-page-size = Page Size:
106pdfjs-document-properties-page-size-unit-inches = in
107pdfjs-document-properties-page-size-unit-millimeters = mm
108pdfjs-document-properties-page-size-orientation-portrait = portrait
109pdfjs-document-properties-page-size-orientation-landscape = landscape
110pdfjs-document-properties-page-size-name-a-three = A3
111pdfjs-document-properties-page-size-name-a-four = A4
112pdfjs-document-properties-page-size-name-letter = Letter
113pdfjs-document-properties-page-size-name-legal = Legal
114pdfjs-document-properties-page-size-dimension-string = { $width } × { $height } { $unit } ({ $orientation })
115pdfjs-document-properties-page-size-dimension-name-string = { $width } × { $height } { $unit } ({ $name }, { $orientation })
116pdfjs-document-properties-linearized = Fast Web View:
117pdfjs-document-properties-linearized-yes = Yes
118pdfjs-document-properties-linearized-no = No
119pdfjs-document-properties-close-button = Close
120pdfjs-print-progress-message = Preparing document for printing…
121pdfjs-print-progress-percent = { $progress }%
122pdfjs-print-progress-close-button = Cancel
123pdfjs-printing-not-supported = Warning: Printing is not fully supported by this browser.
124pdfjs-printing-not-ready = Warning: The PDF is not fully loaded for printing.
125pdfjs-current-outline-item-button =
126    .title = Find Current Outline Item
127pdfjs-current-outline-item-button-label = Current Outline Item
128pdfjs-findbar-button =
129    .title = Find in Document
130pdfjs-findbar-button-label = Find
131pdfjs-additional-layers = Additional Layers
132pdfjs-thumb-page-title1 =
133    .title = Page { $page } of { $total }
134pdfjs-thumb-page-canvas =
135    .aria-label = Thumbnail of Page { $page }
136pdfjs-thumb-page-checkbox1 =
137    .title = Select page { $page }
138pdfjs-find-input =
139    .title = Find
140    .placeholder = Find in document…
141pdfjs-find-previous-button =
142    .title = Find the previous occurrence of the phrase
143pdfjs-find-previous-button-label = Previous
144pdfjs-find-next-button =
145    .title = Find the next occurrence of the phrase
146pdfjs-find-next-button-label = Next
147pdfjs-find-highlight-checkbox = Highlight All
148pdfjs-find-match-case-checkbox-label = Match Case
149pdfjs-find-match-diacritics-checkbox-label = Match Diacritics
150pdfjs-find-entire-word-checkbox-label = Whole Words
151pdfjs-find-reached-top = Reached top of document, continued from bottom
152pdfjs-find-reached-bottom = Reached end of document, continued from top
153pdfjs-find-match-count =
154    { $total ->
155        [one] { $current } of { $total } match
156       *[other] { $current } of { $total } matches
157    }
158pdfjs-find-match-count-limit =
159    { $limit ->
160        [one] More than { $limit } match
161       *[other] More than { $limit } matches
162    }
163pdfjs-find-not-found = Phrase not found
164pdfjs-page-scale-width = Page Width
165pdfjs-page-scale-fit = Page Fit
166pdfjs-page-scale-auto = Automatic Zoom
167pdfjs-page-scale-actual = Actual Size
168pdfjs-page-scale-percent = { $scale }%
169pdfjs-page-landmark =
170    .aria-label = Page { $page }
171pdfjs-loading-error = An error occurred while loading the PDF.
172pdfjs-invalid-file-error = Invalid or corrupted PDF file.
173pdfjs-missing-file-error = Missing PDF file.
174pdfjs-unexpected-response-error = Unexpected server response.
175pdfjs-rendering-error = An error occurred while rendering the page.
176pdfjs-annotation-date-time-string = { DATETIME($dateObj, dateStyle: "short", timeStyle: "medium") }
177pdfjs-text-annotation-type =
178    .alt = [{ $type } Annotation]
179pdfjs-password-label = Enter the password to open this PDF file.
180pdfjs-password-invalid = Invalid password. Please try again.
181pdfjs-password-ok-button = OK
182pdfjs-password-cancel-button = Cancel
183pdfjs-web-fonts-disabled = Web fonts are disabled: unable to use embedded PDF fonts.
184pdfjs-editor-free-text-button =
185    .title = Text
186pdfjs-editor-color-picker-free-text-input =
187    .title = Change text color
188pdfjs-editor-free-text-button-label = Text
189pdfjs-editor-ink-button =
190    .title = Draw
191pdfjs-editor-color-picker-ink-input =
192    .title = Change drawing color
193pdfjs-editor-ink-button-label = Draw
194pdfjs-editor-stamp-button =
195    .title = Add or edit images
196pdfjs-editor-stamp-button-label = Add or edit images
197pdfjs-editor-highlight-button =
198    .title = Highlight
199pdfjs-editor-highlight-button-label = Highlight
200pdfjs-highlight-floating-button1 =
201    .title = Highlight
202    .aria-label = Highlight
203pdfjs-highlight-floating-button-label = Highlight
204pdfjs-comment-floating-button =
205    .title = Comment
206    .aria-label = Comment
207pdfjs-comment-floating-button-label = Comment
208pdfjs-editor-comment-button =
209    .title = Comment
210    .aria-label = Comment
211pdfjs-editor-comment-button-label = Comment
212pdfjs-editor-signature-button =
213    .title = Add signature
214pdfjs-editor-signature-button-label = Add signature
215pdfjs-editor-highlight-editor =
216    .aria-label = Highlight editor
217pdfjs-editor-ink-editor =
218    .aria-label = Drawing editor
219pdfjs-editor-signature-editor1 =
220    .aria-description = Signature editor: { $description }
221pdfjs-editor-stamp-editor =
222    .aria-label = Image editor
223pdfjs-editor-remove-ink-button =
224    .title = Remove drawing
225pdfjs-editor-remove-freetext-button =
226    .title = Remove text
227pdfjs-editor-remove-stamp-button =
228    .title = Remove image
229pdfjs-editor-remove-highlight-button =
230    .title = Remove highlight
231pdfjs-editor-remove-signature-button =
232    .title = Remove signature
233pdfjs-editor-free-text-color-input = Color
234pdfjs-editor-free-text-size-input = Size
235pdfjs-editor-ink-color-input = Color
236pdfjs-editor-ink-thickness-input = Thickness
237pdfjs-editor-ink-opacity-input = Opacity
238pdfjs-editor-stamp-add-image-button =
239    .title = Add image
240pdfjs-editor-stamp-add-image-button-label = Add image
241pdfjs-editor-free-highlight-thickness-input = Thickness
242pdfjs-editor-free-highlight-thickness-title =
243    .title = Change thickness when highlighting items other than text
244pdfjs-editor-add-signature-container =
245    .aria-label = Signature controls and saved signatures
246pdfjs-editor-signature-add-signature-button =
247    .title = Add new signature
248pdfjs-editor-signature-add-signature-button-label = Add new signature
249pdfjs-editor-add-saved-signature-button =
250    .title = Saved signature: { $description }
251pdfjs-free-text2 =
252    .aria-label = Text Editor
253    .default-content = Start typing…
254pdfjs-editor-comments-sidebar-title =
255    { $count ->
256        [one] Comment
257       *[other] Comments
258    }
259pdfjs-editor-comments-sidebar-close-button =
260    .title = Close the sidebar
261    .aria-label = Close the sidebar
262pdfjs-editor-comments-sidebar-close-button-label = Close the sidebar
263pdfjs-editor-comments-sidebar-no-comments1 = See something noteworthy? Highlight it and leave a comment.
264pdfjs-editor-comments-sidebar-no-comments-link = Learn more
265pdfjs-editor-alt-text-button =
266    .aria-label = Alt text
267pdfjs-editor-alt-text-button-label = Alt text
268pdfjs-editor-alt-text-edit-button =
269    .aria-label = Edit alt text
270pdfjs-editor-alt-text-dialog-label = Choose an option
271pdfjs-editor-alt-text-dialog-description = Alt text (alternative text) helps when people can’t see the image or when it doesn’t load.
272pdfjs-editor-alt-text-add-description-label = Add a description
273pdfjs-editor-alt-text-add-description-description = Aim for 1-2 sentences that describe the subject, setting, or actions.
274pdfjs-editor-alt-text-mark-decorative-label = Mark as decorative
275pdfjs-editor-alt-text-mark-decorative-description = This is used for ornamental images, like borders or watermarks.
276pdfjs-editor-alt-text-cancel-button = Cancel
277pdfjs-editor-alt-text-save-button = Save
278pdfjs-editor-alt-text-decorative-tooltip = Marked as decorative
279pdfjs-editor-alt-text-textarea =
280    .placeholder = For example, “A young man sits down at a table to eat a meal”
281pdfjs-editor-resizer-top-left =
282    .aria-label = Top left corner — resize
283pdfjs-editor-resizer-top-middle =
284    .aria-label = Top middle — resize
285pdfjs-editor-resizer-top-right =
286    .aria-label = Top right corner — resize
287pdfjs-editor-resizer-middle-right =
288    .aria-label = Middle right — resize
289pdfjs-editor-resizer-bottom-right =
290    .aria-label = Bottom right corner — resize
291pdfjs-editor-resizer-bottom-middle =
292    .aria-label = Bottom middle — resize
293pdfjs-editor-resizer-bottom-left =
294    .aria-label = Bottom left corner — resize
295pdfjs-editor-resizer-middle-left =
296    .aria-label = Middle left — resize
297pdfjs-editor-highlight-colorpicker-label = Highlight color
298pdfjs-editor-colorpicker-button =
299    .title = Change color
300pdfjs-editor-colorpicker-dropdown =
301    .aria-label = Color choices
302pdfjs-editor-colorpicker-yellow =
303    .title = Yellow
304pdfjs-editor-colorpicker-green =
305    .title = Green
306pdfjs-editor-colorpicker-blue =
307    .title = Blue
308pdfjs-editor-colorpicker-pink =
309    .title = Pink
310pdfjs-editor-colorpicker-red =
311    .title = Red
312pdfjs-editor-highlight-show-all-button-label = Show all
313pdfjs-editor-highlight-show-all-button =
314    .title = Show all
315pdfjs-editor-new-alt-text-dialog-edit-label = Edit alt text (image description)
316pdfjs-editor-new-alt-text-dialog-add-label = Add alt text (image description)
317pdfjs-editor-new-alt-text-textarea =
318    .placeholder = Write your description here…
319pdfjs-editor-new-alt-text-description = Short description for people who can’t see the image or when the image doesn’t load.
320pdfjs-editor-new-alt-text-disclaimer1 = This alt text was created automatically and may be inaccurate.
321pdfjs-editor-new-alt-text-disclaimer-learn-more-url = Learn more
322pdfjs-editor-new-alt-text-create-automatically-button-label = Create alt text automatically
323pdfjs-editor-new-alt-text-not-now-button = Not now
324pdfjs-editor-new-alt-text-error-title = Couldn’t create alt text automatically
325pdfjs-editor-new-alt-text-error-description = Please write your own alt text or try again later.
326pdfjs-editor-new-alt-text-error-close-button = Close
327pdfjs-editor-new-alt-text-ai-model-downloading-progress = Downloading alt text AI model ({ $downloadedSize } of { $totalSize } MB)
328    .aria-valuetext = Downloading alt text AI model ({ $downloadedSize } of { $totalSize } MB)
329pdfjs-editor-new-alt-text-added-button =
330    .aria-label = Alt text added
331pdfjs-editor-new-alt-text-added-button-label = Alt text added
332pdfjs-editor-new-alt-text-missing-button =
333    .aria-label = Missing alt text
334pdfjs-editor-new-alt-text-missing-button-label = Missing alt text
335pdfjs-editor-new-alt-text-to-review-button =
336    .aria-label = Review alt text
337pdfjs-editor-new-alt-text-to-review-button-label = Review alt text
338pdfjs-editor-new-alt-text-generated-alt-text-with-disclaimer = Created automatically: { $generatedAltText }
339pdfjs-image-alt-text-settings-button =
340    .title = Image alt text settings
341pdfjs-image-alt-text-settings-button-label = Image alt text settings
342pdfjs-editor-alt-text-settings-dialog-label = Image alt text settings
343pdfjs-editor-alt-text-settings-automatic-title = Automatic alt text
344pdfjs-editor-alt-text-settings-create-model-button-label = Create alt text automatically
345pdfjs-editor-alt-text-settings-create-model-description = Suggests descriptions to help people who can’t see the image or when the image doesn’t load.
346pdfjs-editor-alt-text-settings-editor-title = Alt text editor
347pdfjs-editor-alt-text-settings-show-dialog-button-label = Show alt text editor right away when adding an image
348pdfjs-editor-alt-text-settings-show-dialog-description = Helps you make sure all your images have alt text.
349pdfjs-editor-alt-text-settings-close-button = Close
350pdfjs-editor-highlight-added-alert = Highlight added
351pdfjs-editor-freetext-added-alert = Text added
352pdfjs-editor-ink-added-alert = Drawing added
353pdfjs-editor-stamp-added-alert = Image added
354pdfjs-editor-signature-added-alert = Signature added
355pdfjs-editor-undo-bar-message-highlight = Highlight removed
356pdfjs-editor-undo-bar-message-freetext = Text removed
357pdfjs-editor-undo-bar-message-ink = Drawing removed
358pdfjs-editor-undo-bar-message-stamp = Image removed
359pdfjs-editor-undo-bar-message-signature = Signature removed
360pdfjs-editor-undo-bar-message-comment = Comment removed
361pdfjs-editor-undo-bar-message-multiple =
362    { $count ->
363        [one] { $count } annotation removed
364       *[other] { $count } annotations removed
365    }
366pdfjs-editor-undo-bar-undo-button =
367    .title = Undo
368pdfjs-editor-undo-bar-undo-button-label = Undo
369pdfjs-editor-undo-bar-close-button =
370    .title = Close
371pdfjs-editor-undo-bar-close-button-label = Close
372pdfjs-editor-add-signature-dialog-label = This modal allows the user to create a signature to add to a PDF document. The user can edit the name (which also serves as the alt text), and optionally save the signature for repeated use.
373pdfjs-editor-add-signature-dialog-title = Add a signature
374pdfjs-editor-add-signature-type-button = Type
375    .title = Type
376pdfjs-editor-add-signature-draw-button = Draw
377    .title = Draw
378pdfjs-editor-add-signature-image-button = Image
379    .title = Image
380pdfjs-editor-add-signature-type-input =
381    .aria-label = Type your signature
382    .placeholder = Type your signature
383pdfjs-editor-add-signature-draw-placeholder = Draw your signature
384pdfjs-editor-add-signature-draw-thickness-range-label = Thickness
385pdfjs-editor-add-signature-draw-thickness-range =
386    .title = Drawing thickness: { $thickness }
387pdfjs-editor-add-signature-image-placeholder = Drag a file here to upload
388pdfjs-editor-add-signature-image-browse-link =
389    { PLATFORM() ->
390        [macos] Or choose image files
391       *[other] Or browse image files
392    }
393pdfjs-editor-add-signature-description-label = Description (alt text)
394pdfjs-editor-add-signature-description-input =
395    .title = Description (alt text)
396pdfjs-editor-add-signature-description-default-when-drawing = Signature
397pdfjs-editor-add-signature-clear-button-label = Clear signature
398pdfjs-editor-add-signature-clear-button =
399    .title = Clear signature
400pdfjs-editor-add-signature-save-checkbox = Save signature
401pdfjs-editor-add-signature-save-warning-message = You’ve reached the limit of 5 saved signatures. Remove one to save more.
402pdfjs-editor-add-signature-image-upload-error-title = Couldn’t upload image
403pdfjs-editor-add-signature-image-upload-error-description = Check your network connection or try another image.
404pdfjs-editor-add-signature-image-no-data-error-title = Can’t convert this image into a signature
405pdfjs-editor-add-signature-image-no-data-error-description = Please try uploading a different image.
406pdfjs-editor-add-signature-error-close-button = Close
407pdfjs-editor-add-signature-cancel-button = Cancel
408pdfjs-editor-add-signature-add-button = Add
409pdfjs-editor-delete-signature-button1 =
410    .title = Remove saved signature
411pdfjs-editor-delete-signature-button-label1 = Remove saved signature
412pdfjs-editor-add-signature-edit-button-label = Edit description
413pdfjs-editor-edit-signature-dialog-title = Edit description
414pdfjs-editor-edit-signature-update-button = Update
415pdfjs-show-comment-button =
416    .title = Show comment
417pdfjs-editor-edit-comment-popup-button-label = Edit comment
418pdfjs-editor-edit-comment-popup-button =
419    .title = Edit comment
420pdfjs-editor-delete-comment-popup-button-label = Remove comment
421pdfjs-editor-delete-comment-popup-button =
422    .title = Remove comment
423pdfjs-editor-edit-comment-dialog-title-when-editing = Edit comment
424pdfjs-editor-edit-comment-dialog-save-button-when-editing = Update
425pdfjs-editor-edit-comment-dialog-title-when-adding = Add comment
426pdfjs-editor-edit-comment-dialog-save-button-when-adding = Add
427pdfjs-editor-edit-comment-dialog-text-input =
428    .placeholder = Start typing…
429pdfjs-editor-edit-comment-dialog-cancel-button = Cancel
430pdfjs-editor-add-comment-button =
431    .title = Add comment
432pdfjs-toggle-views-manager-button1 =
433    .title = Manage pages
434pdfjs-toggle-views-manager-notification-button =
435    .title = Toggle Sidebar (document contains thumbnails/outline/attachments/layers)
436pdfjs-toggle-views-manager-button1-label = Manage pages
437pdfjs-views-manager-sidebar =
438    .aria-label = Sidebar
439pdfjs-views-manager-sidebar-resizer =
440    .aria-label = Sidebar resizer
441pdfjs-views-manager-view-selector-button =
442    .title = Views
443pdfjs-views-manager-view-selector-button-label = Views
444pdfjs-views-manager-pages-title = Pages
445pdfjs-views-manager-outlines-title1 = Document outline
446    .title = Document outline (double-click to expand/collapse all items)
447pdfjs-views-manager-attachments-title = Attachments
448pdfjs-views-manager-layers-title1 = Layers
449    .title = Layers (double-click to reset all layers to the default state)
450pdfjs-views-manager-pages-option-label = Pages
451pdfjs-views-manager-outlines-option-label = Document outline
452pdfjs-views-manager-attachments-option-label = Attachments
453pdfjs-views-manager-layers-option-label = Layers
454pdfjs-views-manager-add-file-button =
455    .title = Add file
456pdfjs-views-manager-add-file-button-label = Add file
457pdfjs-views-manager-pages-status-action-label =
458    { $count ->
459        [one] { $count } selected
460        *[other] { $count } selected
461    }
462pdfjs-views-manager-pages-status-none-action-label = Select pages
463pdfjs-views-manager-pages-status-action-button-label = Manage
464pdfjs-views-manager-pages-status-copy-button-label = Copy
465pdfjs-views-manager-pages-status-cut-button-label = Cut
466pdfjs-views-manager-pages-status-delete-button-label = Delete
467pdfjs-views-manager-pages-status-export-selected-button-label = Export selected…
468pdfjs-views-manager-status-undo-cut-label =
469    { $count ->
470        [one] 1 page cut
471        *[other] { $count } pages cut
472    }
473pdfjs-views-manager-pages-status-undo-copy-label =
474    { $count ->
475        [one] 1 page copied
476        *[other] { $count } pages copied
477    }
478pdfjs-views-manager-pages-status-undo-delete-label =
479    { $count ->
480        [one] 1 page deleted
481        *[other] { $count } pages deleted
482    }
483pdfjs-views-manager-status-undo-button-label = Undo
484pdfjs-views-manager-status-done-button-label = Done
485pdfjs-views-manager-status-close-button =
486    .title = Close
487pdfjs-views-manager-status-close-button-label = Close
488pdfjs-views-manager-paste-button-label = Paste
489pdfjs-views-manager-paste-button-before =
490    .title = Paste before the first page
491pdfjs-views-manager-paste-button-after =
492    .title = Paste after page { $page }
493pdfjs-new-badge-content = NEW
494pdfjs-views-manager-waiting-for-file = Uploading file…
495pdfjs-digital-signature-properties-button =
496    .title = Digital signature properties
497    .aria-label = Digital signature properties
498pdfjs-digital-signature-properties-button-label = Digital signature properties
499pdfjs-digital-signature-properties-banner-verified = Document was signed with a valid digital signature
500pdfjs-digital-signature-properties-banner-unknown =
501    { $count ->
502        [one] Document signed but { $count } digital signature could not be verified
503       *[other] Document signed but { $count } digital signatures could not be verified
504    }
505pdfjs-digital-signature-properties-banner-untrusted =
506    { $count ->
507        [one] Document signed with { $count } certificate that is not trusted
508       *[other] Document signed with { $count } certificates that are not trusted
509    }
510pdfjs-digital-signature-properties-banner-expired =
511    { $count ->
512        [one] Document signed with { $count } expired certificate
513       *[other] Document signed with { $count } expired certificates
514    }
515pdfjs-digital-signature-properties-banner-invalid =
516    { $count ->
517        [one] Document has { $count } invalid digital signature
518       *[other] Document has { $count } invalid digital signatures
519    }
520pdfjs-digital-signature-properties-banner-revoked =
521    { $count ->
522        [one] Document signed with { $count } revoked certificate
523       *[other] Document signed with { $count } revoked certificates
524    }
525pdfjs-digital-signature-properties-status-verified = Status: Signature verified
526pdfjs-digital-signature-properties-status-invalid = Status: Signature invalid
527pdfjs-digital-signature-properties-status-unknown = Status: Unable to verify (unsupported)
528pdfjs-digital-signature-properties-certificate-trusted = Certificate: Trusted ({ $issuer })
529pdfjs-digital-signature-properties-certificate-unknown = Certificate: Unavailable
530pdfjs-digital-signature-properties-certificate-untrusted = Certificate: Untrusted
531pdfjs-digital-signature-properties-certificate-untrusted-unknown-issuer = Certificate: Unknown issuer ({ $issuer })
532pdfjs-digital-signature-properties-certificate-untrusted-self-signed = Certificate: Self-signed ({ $issuer })
533pdfjs-digital-signature-properties-certificate-untrusted-untrusted-issuer = Certificate: Untrusted issuer ({ $issuer })
534pdfjs-digital-signature-properties-certificate-expired = Certificate: Expired
535pdfjs-digital-signature-properties-certificate-expired-with-date = Certificate: Expired ({ DATETIME($dateObj, dateStyle: "medium") })
536pdfjs-digital-signature-properties-certificate-revoked = Certificate: Revoked
537pdfjs-digital-signature-properties-view-certificate = View certificate
538pdfjs-digital-signature-properties-reason = Reason: { $reason }
539pdfjs-digital-signature-properties-timestamp = Timestamp: { DATETIME($dateObj, dateStyle: "short", timeStyle: "medium") }
540pdfjs-digital-signature-properties-sub-signatures =
541    { $count ->
542        [one] Sub-signature ({ $count })
543       *[other] Sub-signatures ({ $count })
544    }`)}}
vendor: 24,862 bytes, lines 544-545
544const yi=1e3,bi=50,Ei=1e3;function he(){return document.location.hash}class wi{#t=null;constructor({linkService:t,eventBus:e}){this.linkService=t,this.eventBus=e,this._initialized=!1,this._fingerprint="",this.reset(),this.eventBus.on("pagesinit",()=>{this._isPagesLoaded=!1,this.eventBus.on("pagesloaded",n=>{this._isPagesLoaded=!!n.pagesCount},{once:!0,...st})},st)}initialize({fingerprint:t,resetHistory:e=!1,updateUrl:n=!1}){if(!t||typeof t!="string"){console.error('PDFHistory.initialize: The "fingerprint" must be a non-empty string.');return}this._initialized&&this.reset();const r=this._fingerprint!==""&&this._fingerprint!==t;this._fingerprint=t,this._updateUrl=n===!0,this._initialized=!0,this.#l();const i=window.history.state;if(this._popStateInProgress=!1,this._blockHashChange=0,this._currentHash=he(),this._numPositionUpdates=0,this._uid=this._maxUid=0,this._destination=null,this._position=null,!this.#r(i,!0)||e){const{hash:o,page:l,rotation:u}=this.#o(!0);if(!o||r||e){this.#e(null,!0);return}this.#e({hash:o,page:l,rotation:u},!0);return}const s=i.destination;this.#s(s,i.uid,!0),s.rotation!==void 0&&(this._initialRotation=s.rotation),s.dest?(this._initialBookmark=JSON.stringify(s.dest),this._destination.page=null):s.hash?this._initialBookmark=s.hash:s.page&&(this._initialBookmark=`page=${s.page}`)}reset(){this._initialized&&(this.#f(),this._initialized=!1,this.#d()),this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),this._initialBookmark=null,this._initialRotation=null}push({namedDest:t=null,explicitDest:e,pageNumber:n}){if(!this._initialized)return;if(t&&typeof t!="string"){console.error(`PDFHistory.push: "${t}" is not a valid namedDest parameter.`);return}else if(Array.isArray(e)){if(!this.#n(n)&&(n!==null||this._destination)){console.error(`PDFHistory.push: "${n}" is not a valid pageNumber parameter.`);return}}else{console.error(`PDFHistory.push: "${e}" is not a valid explicitDest parameter.`);return}const r=t||JSON.stringify(e);if(!r)return;let i=!1;if(this._destination&&(xi(this._destination.hash,r)||Si(this._destination.dest,e))){if(this._destination.page)return;i=!0}this._popStateInProgress&&!i||(this.#e({dest:e,hash:r,page:n,rotation:this.linkService.rotation},i),this._popStateInProgress||(this._popStateInProgress=!0,Promise.resolve().then(()=>{this._popStateInProgress=!1})))}pushPage(t){if(this._initialized){if(!this.#n(t)){console.error(`PDFHistory.pushPage: "${t}" is not a valid page number.`);return}this._destination?.page!==t&&(this._popStateInProgress||(this.#e({dest:null,hash:`page=${t}`,page:t,rotation:this.linkService.rotation}),this._popStateInProgress||(this._popStateInProgress=!0,Promise.resolve().then(()=>{this._popStateInProgress=!1}))))}}pushCurrentPosition(){!this._initialized||this._popStateInProgress||this.#i()}back(){if(!this._initialized||this._popStateInProgress)return;const t=window.history.state;this.#r(t)&&t.uid>0&&window.history.back()}forward(){if(!this._initialized||this._popStateInProgress)return;const t=window.history.state;this.#r(t)&&t.uid<this._maxUid&&window.history.forward()}get popStateInProgress(){return this._initialized&&(this._popStateInProgress||this._blockHashChange>0)}get initialBookmark(){return this._initialized?this._initialBookmark:null}get initialRotation(){return this._initialized?this._initialRotation:null}#e(t,e=!1){const n=e||!this._destination,r={fingerprint:this._fingerprint,uid:n?this._uid:this._uid+1,destination:t};this.#s(t,r.uid);let i;if(this._updateUrl&&t?.hash){const{href:s,protocol:o}=document.location;o!=="file:"&&(i=er(s,t.hash))}n?window.history.replaceState(r,"",i):window.history.pushState(r,"",i)}#i(t=!1){if(!this._position)return;let e=this._position;if(t&&(e=Object.assign(Object.create(null),this._position),e.temporary=!0),!this._destination){this.#e(e);return}if(this._destination.temporary){this.#e(e,!0);return}if(this._destination.hash===e.hash||!this._destination.page&&this._numPositionUpdates<=bi)return;let n=!1;if(this._destination.page>=e.first&&this._destination.page<=e.page){if(this._destination.dest!==void 0||!this._destination.first)return;n=!0}this.#e(e,n)}#n(t){return Number.isInteger(t)&&t>0&&t<=this.linkService.pagesCount}#r(t,e=!1){if(!t)return!1;if(t.fingerprint!==this._fingerprint)if(e){if(typeof t.fingerprint!="string"||t.fingerprint.length!==this._fingerprint.length)return!1;const[n]=performance.getEntriesByType("navigation");if(n?.type!=="reload")return!1}else return!1;return!(!Number.isInteger(t.uid)||t.uid<0||t.destination===null||typeof t.destination!="object")}#s(t,e,n=!1){this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),n&&t?.temporary&&delete t.temporary,this._destination=t,this._uid=e,this._maxUid=Math.max(this._maxUid,e),this._numPositionUpdates=0}#o(t=!1){const e=unescape(he()).substring(1),n=re(e),r=n.get("nameddest")||"";let i=n.get("page")|0;return(!this.#n(i)||t&&r.length>0)&&(i=null),{hash:e,page:i,rotation:this.linkService.rotation}}#a({location:t}){this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),this._position={hash:t.pdfOpenParams.substring(1),page:this.linkService.page,first:t.pageNumber,rotation:t.rotation},!this._popStateInProgress&&(this._isPagesLoaded&&this._destination&&!this._destination.page&&this._numPositionUpdates++,this._updateViewareaTimeout=setTimeout(()=>{this._popStateInProgress||this.#i(!0),this._updateViewareaTimeout=null},Ei))}#u({state:t}){const e=he(),n=this._currentHash!==e;if(this._currentHash=e,!t){this._uid++;const{hash:i,page:s,rotation:o}=this.#o();this.#e({hash:i,page:s,rotation:o},!0);return}if(!this.#r(t))return;this._popStateInProgress=!0,n&&(this._blockHashChange++,Sr({target:window,name:"hashchange",delay:yi}).then(()=>{this._blockHashChange--}));const r=t.destination;this.#s(r,t.uid,!0),yn(r.rotation)&&(this.linkService.rotation=r.rotation),r.dest?this.linkService.goToDestination(r.dest):r.hash?this.linkService.setHash(r.hash):r.page&&(this.linkService.page=r.page),Promise.resolve().then(()=>{this._popStateInProgress=!1})}#f(){(!this._destination||this._destination.temporary)&&this.#i()}#l(){if(this.#t)return;this.#t=new AbortController;const{signal:t}=this.#t;this.eventBus.on("updateviewarea",this.#a.bind(this),{signal:t,...st}),window.addEventListener("popstate",this.#u.bind(this),{signal:t}),window.addEventListener("pagehide",this.#f.bind(this),{signal:t})}#d(){this.#t?.abort(),this.#t=null}}function xi(a,t){return typeof a!="string"||typeof t!="string"?!1:a===t||re(a).get("nameddest")===t}function Si(a,t){function e(n,r){if(typeof n!=typeof r||Array.isArray(n)||Array.isArray(r))return!1;if(n!==null&&typeof n=="object"&&r!==null){if(Object.keys(n).length!==Object.keys(r).length)return!1;for(const i in n)if(!e(n[i],r[i]))return!1;return!0}return n===r||Number.isNaN(n)&&Number.isNaN(r)}if(!(Array.isArray(a)&&Array.isArray(t))||a.length!==t.length)return!1;for(let n=0,r=a.length;n<r;n++)if(!e(a[n],t[n]))return!1;return!0}class Pi{#t=null;#e=null;#i=null;#n=null;#r=null;#s;constructor(t){this.pageIndex=t.pageIndex,this.accessibilityManager=t.accessibilityManager,this.l10n=t.l10n,this.l10n||=new bt,this.annotationEditorLayer=null,this.div=null,this._cancelled=!1,this.#s=t.uiManager,this.#t=t.annotationLayer||null,this.#r=t.textLayer||null,this.#e=t.drawLayer||null,this.#i=t.onAppend||null,this.#n=t.structTreeLayer||null}updatePageIndex(t){this.pageIndex=t,this.annotationEditorLayer?.updatePageIndex(t)}async render({viewport:t,intent:e="display"}){if(e!=="display"||this._cancelled)return;const n=t.clone({dontFlip:!0});if(this.div){this.annotationEditorLayer.update({viewport:n}),this.show();return}const r=this.div=document.createElement("div");r.className="annotationEditorLayer",r.hidden=!0,r.dir=this.#s.direction,this.#i?.(r),this.annotationEditorLayer=new kn({uiManager:this.#s,div:r,structTreeLayer:this.#n,accessibilityManager:this.accessibilityManager,pageIndex:this.pageIndex,l10n:this.l10n,viewport:n,annotationLayer:this.#t,textLayer:this.#r,drawLayer:this.#e});const i={viewport:n,div:r,annotations:null,intent:e};await this.annotationEditorLayer.render(i),this.show()}update(t){this.div&&this.annotationEditorLayer.update({viewport:t.clone({dontFlip:!0})})}cancel(){this._cancelled=!0,this.div&&this.annotationEditorLayer.destroy()}hide(){this.div&&(this.annotationEditorLayer.pause(!0),this.div.hidden=!0)}show(){!this.div||this.annotationEditorLayer.isInvisible||(this.div.hidden=!1,this.annotationEditorLayer.pause(!1))}}{var be=new Map;const{maxTouchPoints:a,platform:t,userAgent:e}=navigator,n=/Android/.test(e);(/\b(?:iPad|iPhone|iPod)(?=;)/.test(e)||t==="MacIntel"&&a>1||n)&&be.set("maxCanvasPixels",5242880),n&&be.set("useSystemFonts",!1)}const b={BROWSER:1,VIEWER:2,API:4,WORKER:8,EVENT_DISPATCH:16,PREFERENCE:128},Ee={BOOLEAN:1,NUMBER:2,OBJECT:4,STRING:8,UNDEFINED:16},ce=new Map([["allowedGlobalEvents",{value:null,kind:b.BROWSER}],["canvasMaxAreaInBytes",{value:-1,kind:b.BROWSER+b.API}],["isInAutomation",{value:!1,kind:b.BROWSER}],["localeProperties",{value:{lang:navigator.language||"en-US"},kind:b.BROWSER}],["maxCanvasDim",{value:32767,kind:b.BROWSER+b.VIEWER}],["nimbusDataStr",{value:"",kind:b.BROWSER}],["supportsCaretBrowsingMode",{value:!1,kind:b.BROWSER}],["supportsDocumentFonts",{value:!0,kind:b.BROWSER}],["supportsDownloading",{value:!0,kind:b.BROWSER}],["supportsIntegratedFind",{value:!1,kind:b.BROWSER}],["supportsMouseWheelZoomCtrlKey",{value:!0,kind:b.BROWSER}],["supportsMouseWheelZoomMetaKey",{value:!0,kind:b.BROWSER}],["supportsPinchToZoom",{value:!0,kind:b.BROWSER}],["supportsPrinting",{value:!0,kind:b.BROWSER}],["toolbarDensity",{value:0,kind:b.BROWSER+b.EVENT_DISPATCH}],["altTextLearnMoreUrl",{value:"",kind:b.VIEWER+b.PREFERENCE}],["annotationEditorMode",{value:0,kind:b.VIEWER+b.PREFERENCE}],["annotationMode",{value:2,kind:b.VIEWER+b.PREFERENCE}],["capCanvasAreaFactor",{value:200,kind:b.VIEWER+b.PREFERENCE}],["commentLearnMoreUrl",{value:"",kind:b.VIEWER+b.PREFERENCE}],["cursorToolOnLoad",{value:0,kind:b.VIEWER+b.PREFERENCE}],["debuggerSrc",{value:"./debugger.mjs",kind:b.VIEWER}],["defaultUrl",{value:"compressed.tracemonkey-pldi-09.pdf",kind:b.VIEWER}],["defaultZoomDelay",{value:400,kind:b.VIEWER+b.PREFERENCE}],["defaultZoomValue",{value:"",kind:b.VIEWER+b.PREFERENCE}],["disableHistory",{value:!1,kind:b.VIEWER}],["disablePageLabels",{value:!1,kind:b.VIEWER+b.PREFERENCE}],["disablePreferences",{value:!1,kind:b.VIEWER}],["enableAltText",{value:!1,kind:b.VIEWER+b.PREFERENCE}],["enableAltTextModelDownload",{value:!0,kind:b.VIEWER+b.PREFERENCE+b.EVENT_DISPATCH}],["enableAutoLinking",{value:!0,kind:b.VIEWER+b.PREFERENCE}],["enableComment",{value:!1,kind:b.VIEWER+b.PREFERENCE}],["enableDetailCanvas",{value:!0,kind:b.VIEWER}],["enableGuessAltText",{value:!0,kind:b.VIEWER+b.PREFERENCE+b.EVENT_DISPATCH}],["enableHighlightFloatingButton",{value:!1,kind:b.VIEWER+b.PREFERENCE}],["enableMerge",{value:!1,kind:b.VIEWER+b.PREFERENCE}],["enableNewAltTextWhenAddingImage",{value:!0,kind:b.VIEWER+b.PREFERENCE}],["enableNewBadge",{value:!1,kind:b.VIEWER+b.PREFERENCE}],["enableNova",{value:!0,kind:b.VIEWER+b.PREFERENCE}],["enableOptimizedPartialRendering",{value:!1,kind:b.VIEWER+b.PREFERENCE}],["enablePermissions",{value:!1,kind:b.VIEWER+b.PREFERENCE}],["enablePrintAutoRotate",{value:!0,kind:b.VIEWER+b.PREFERENCE}],["enableScripting",{value:!0,kind:b.VIEWER+b.PREFERENCE}],["enableSelectionRendering",{value:!0,kind:b.VIEWER+b.PREFERENCE}],["enableSignatureEditor",{value:!1,kind:b.VIEWER+b.PREFERENCE}],["enableSignatureVerification",{value:!1,kind:b.VIEWER+b.PREFERENCE}],["enableSplitMerge",{value:!1,kind:b.VIEWER+b.PREFERENCE}],["enableUpdatedAddImage",{value:!1,kind:b.VIEWER+b.PREFERENCE}],["externalLinkRel",{value:"noopener noreferrer nofollow",kind:b.VIEWER}],["externalLinkTarget",{value:0,kind:b.VIEWER+b.PREFERENCE}],["highlightEditorColors",{value:"yellow=#FFFF98,green=#53FFBC,blue=#80EBFF,pink=#FFCBE6,red=#FF4F5F,yellow_HCM=#FFFFCC,green_HCM=#53FFBC,blue_HCM=#80EBFF,pink_HCM=#F6B8FF,red_HCM=#C50043",kind:b.VIEWER+b.PREFERENCE}],["historyUpdateUrl",{value:!1,kind:b.VIEWER+b.PREFERENCE}],["ignoreDestinationZoom",{value:!1,kind:b.VIEWER+b.PREFERENCE}],["imageResourcesPath",{value:"./images/",kind:b.VIEWER}],["imagesRightClickMinSize",{value:-1,kind:b.VIEWER+b.PREFERENCE}],["maxCanvasPixels",{value:2**25,kind:b.VIEWER}],["minDurationToUpdateCanvas",{value:500,kind:b.VIEWER}],["forcePageColors",{value:!1,kind:b.VIEWER+b.PREFERENCE}],["pageColorsBackground",{value:"Canvas",kind:b.VIEWER+b.PREFERENCE}],["pageColorsForeground",{value:"CanvasText",kind:b.VIEWER+b.PREFERENCE}],["pdfBugEnabled",{value:!1,kind:b.VIEWER+b.PREFERENCE}],["postMessageAfterPrintCallback",{value:!1,kind:b.VIEWER+b.PREFERENCE}],["printResolution",{value:150,kind:b.VIEWER}],["sandboxBundleSrc",{value:"../build/pdf.sandbox.mjs",kind:b.VIEWER}],["sidebarViewOnLoad",{value:-1,kind:b.VIEWER+b.PREFERENCE}],["scrollModeOnLoad",{value:-1,kind:b.VIEWER+b.PREFERENCE}],["spreadModeOnLoad",{value:-1,kind:b.VIEWER+b.PREFERENCE}],["textLayerMode",{value:1,kind:b.VIEWER+b.PREFERENCE}],["viewerCssTheme",{value:0,kind:b.VIEWER+b.PREFERENCE}],["viewOnLoad",{value:0,kind:b.VIEWER+b.PREFERENCE}],["cMapPacked",{value:!0,kind:b.API}],["cMapUrl",{value:"../web/cmaps/",kind:b.API}],["disableAutoFetch",{value:!1,kind:b.API+b.PREFERENCE}],["disableFontFace",{value:!1,kind:b.API+b.PREFERENCE}],["disableRange",{value:!1,kind:b.API+b.PREFERENCE}],["disableStream",{value:!1,kind:b.API+b.PREFERENCE}],["docBaseUrl",{value:"",kind:b.API}],["enableHWA",{value:!0,kind:b.API+b.PREFERENCE}],["enableWebGPU",{value:!0,kind:b.API+b.PREFERENCE}],["enableXfa",{value:!0,kind:b.API+b.PREFERENCE}],["fontExtraProperties",{value:!1,kind:b.API}],["iccUrl",{value:"../web/iccs/",kind:b.API}],["isOffscreenCanvasSupported",{value:!0,kind:b.API}],["maxImageSize",{value:-1,kind:b.API}],["pdfBug",{value:!1,kind:b.API}],["standardFontDataUrl",{value:"../web/standard_fonts/",kind:b.API}],["useSystemFonts",{value:void 0,kind:b.API,type:Ee.BOOLEAN+Ee.UNDEFINED}],["verbosity",{value:1,kind:b.API}],["wasmUrl",{value:"../web/wasm/",kind:b.API}],["workerPort",{value:null,kind:b.WORKER}],["workerSrc",{value:"../build/pdf.worker.mjs",kind:b.WORKER}]]);var xt;const pt=class pt{static get(t){return Nt(this,xt).get(t)}static getAll(t=null,e=!1){const n=Object.create(null);for(const[r,i]of ce)t&&!(t&i.kind)||(n[r]=e?i.value:Nt(this,xt).get(r));return n}static set(t,e){this.setAll({[t]:e})}static setAll(t,e=!1){this._hasInvokedSet||=!0;let n;for(const r in t){const i=ce.get(r),s=t[r];if(!i||!(typeof s==typeof i.value||Ee[(typeof s).toUpperCase()]&i.type))continue;const{kind:o}=i;e&&!(o&b.BROWSER||o&b.PREFERENCE)||(this.eventBus&&o&b.EVENT_DISPATCH&&(n??=new Map).set(r,s),Nt(this,xt).set(r,s))}n?.forEach((r,i)=>{this.eventBus.dispatch(i.toLowerCase(),{source:this,value:r})})}};xt=new WeakMap,Le(pt,"eventBus"),Ne(pt,xt,new Map),(()=>{for(const[t,e]of ce)Nt(pt,xt).set(t,e.value);for(const[t,e]of be)Nt(pt,xt).set(t,e);pt._hasInvokedSet=!1,pt._checkDisablePreferences=()=>pt.get("disablePreferences")?!0:(pt._hasInvokedSet&&console.warn('The Preferences may override manually set AppOptions; please use the "disablePreferences"-option to prevent that.'),!1)})();let Ht=pt;function un({width:a,height:t,left:e,top:n},r){if(a===0||t===0)return null;const i=r.textLayer.div.getBoundingClientRect(),s=r.getPagePoint(e-i.left,n-i.top),o=r.getPagePoint(e-i.left+a,n-i.top+t);return xe.normalizeRect([s[0],s[1],o[0],o[1]])}function Ii(a,t){const e=a.getClientRects();if(e.length===1)return{rect:un(e[0],t)};const n=[1/0,1/0,-1/0,-1/0],r=[];let i=0;for(const s of e){const o=un(s,t);o!==null&&(r[i]=r[i+4]=o[0],r[i+1]=r[i+3]=o[3],r[i+2]=r[i+6]=o[2],r[i+5]=r[i+7]=o[1],xe.rectBoundingBox(...o,n),i+=8)}return{quadPoints:r,rect:n}}function dn(a,t){let e=a;do{if(e.nodeType===Node.TEXT_NODE){const n=e.textContent.length;if(t<=n)return[e,t];t-=n}else if(e.firstChild){e=e.firstChild;continue}for(;!e.nextSibling&&e!==a;)e=e.parentNode;e!==a&&(e=e.nextSibling)}while(e!==a);throw new Error("Offset is bigger than container's contents length.")}function Ci({url:a,index:t,length:e},n,r){const i=n._textHighlighter,[{begin:s,end:o}]=i._convertMatches([t],[e]),l=new Range;return l.setStart(...dn(i.textDivs[s.divIdx],s.offset)),l.setEnd(...dn(i.textDivs[o.divIdx],o.offset)),{id:`inferred_link_${r}`,unsafeUrl:a,url:a,annotationType:gn.LINK,rotation:0,...Ii(l,n),borderStyle:null}}class Ri{static#t=0;static#e;static#i;static findLinks(t){this.#e??=new RegExp("\\b(?:https?:\\/\\/|mailto:|www\\.)(?:[\\S--[\\p{P}<>]]|\\/|[\\S--[\\[\\]]]+[\\S--[\\p{P}<>]])+|(?=\\p{L})[\\S--[@\\p{Ps}\\p{Pe}<>]]{1,64}@([\\S--[[\\p{P}--\\-]<>]]{1,63}(?:\\.[\\S--[[\\p{P}--\\-]<>]]{1,63})+)","gv");const[e,n]=te(t,{ignoreDashEOL:!0}),r=e.matchAll(this.#e),i=[];for(const s of r){const[o,l]=s;let u;if(o.startsWith("www.")||o.startsWith("http://")||o.startsWith("https://"))u=o;else if(l){const h=URL.parse(`http://${l}`)?.hostname;if(!h||(this.#i??=/\.\d+$/,this.#i.test(h)))continue}u??=o.startsWith("mailto:")?o:`mailto:${o}`;const d=vn(u,null,{addDefaultProtocol:!0});if(d){const[h,c]=En(n,s.index,o.length);i.push({url:d.href,index:h,length:c})}}return i}static processLinks(t){return this.findLinks(t._textHighlighter.textContentItemsStr.join(`
545`)).map(e=>Ci(e,t,this.#t++))}}const W={INITIAL:0,RUNNING:1,PAUSED:2,FINISHED:3};class Ti{renderingId="";renderTask=null;resume=null;get renderingState(){throw new Error("Abstract getter `renderingState` accessed")}set renderingState(t){throw new Error("Abstract setter `renderingState` accessed")}async draw(){throw new Error("Not implemented: draw")}}class Cn extends Ti{#t=null;#e=null;#i=W.INITIAL;#n=null;#r=0;#s=null;canvas=null;div=null;enableOptimizedPartialRendering=!1;enableSelectionRendering=!0;imagesRightClickMinSize=-1;eventBus=null;id=null;imageCoordinates=null;pageColors=null;recordedBBoxes=null;renderingQueue=null;constructor(t){super(),this.eventBus=t.eventBus,this.id=t.id,this.pageColors=t.pageColors||null,this.renderingQueue=t.renderingQueue,this.enableOptimizedPartialRendering=t.enableOptimizedPartialRendering??!1,this.enableSelectionRendering=t.enableSelectionRendering!==!1&&we.isBackdropFilterSupported,this.imagesRightClickMinSize=t.imagesRightClickMinSize??-1,this.minDurationToUpdateCanvas=t.minDurationToUpdateCanvas??500}get renderingState(){return this.#i}set renderingState(t){if(t!==this.#i)switch(this.#i=t,this.#t&&(clearTimeout(this.#t),this.#t=null),t){case W.PAUSED:this.div.classList.remove("loading"),this.#r=0,this.#n?.(!1);break;case W.RUNNING:this.div.classList.add("loadingIcon"),this.#t=setTimeout(()=>{this.div.classList.add("loading"),this.#t=null},0),this.#r=Date.now();break;case W.INITIAL:case W.FINISHED:this.div.classList.remove("loadingIcon","loading"),this.#r=0;break}}_createCanvas(t,e=!1){const{pageColors:n}=this,r=!!(n?.background&&n?.foreground),i=this.canvas,s=!i&&!r&&!e;let o=this.canvas=document.createElement("canvas");return this.#n=l=>{if(s){let u=this.#s;if(!l&&this.minDurationToUpdateCanvas>0){if(Date.now()-this.#r<this.minDurationToUpdateCanvas)return;u||(u=this.#s=o,o=this.canvas=o.cloneNode(!1),t(o))}if(u){o.getContext("2d",{alpha:!1}).drawImage(u,0,0),l?this.#a():this.#r=Date.now();return}t(o),this.#n=null;return}l&&(i?(i.replaceWith(o),i.width=i.height=0):t(o))},{canvas:o,prevCanvas:i}}#o=t=>{if(this.#n?.(!1),this.renderingQueue&&!this.renderingQueue.isHighestPriority(this)){this.renderingState=W.PAUSED,this.resume=()=>{this.renderingState=W.RUNNING,t()};return}t()};_resetCanvas(){const{canvas:t}=this;t&&(t.remove(),t.width=t.height=0,this.canvas=null,this.#a())}#a(){this.#s&&(this.#s.width=this.#s.height=0,this.#s=null)}async _drawCanvas(t,e,n){const r=this.renderTask=this.pdfPage.render(t);r.onContinue=this.#o,r.onError=s=>{s instanceof fe&&(e(),this.#e=null)};let i=null;try{await r.promise,this.#n?.(!0)}catch(s){if(s instanceof fe)return;i=s,this.#n?.(!0)}finally{this.#e=i,r===this.renderTask&&(this.renderTask=null,this.enableOptimizedPartialRendering&&(this.recordedBBoxes??=r.recordedBBoxes),this.imagesRightClickMinSize!==-1&&(this.imageCoordinates??=this.pdfPage.imageCoordinates))}if(this.renderingState=W.FINISHED,n(r),i)throw i}cancelRendering({cancelExtraDelay:t=0}={}){this.renderTask&&(this.renderTask.cancel(t),this.renderTask=null),this.resume=null}dispatchPageRender(){this.eventBus.dispatch("pagerender",{source:this,pageNumber:this.id})}dispatchPageRendered(t,e){this.eventBus.dispatch("pagerendered",{source:this,pageNumber:this.id,cssTransform:t,isDetailView:e,timestamp:performance.now(),error:this.#e})}}class Ai{#t=null;constructor(t){this.pageIndex=t.pageIndex,this.textLayer=t.textLayer||null,this.filterFactory=t.filterFactory||null,this.pageColors=t.pageColors||null}async render({intent:t="display"}){t!=="display"||this.#t||this._cancelled||(this.#t=new Hn({pageIndex:this.pageIndex,textLayer:this.textLayer,filterFactory:this.filterFactory,pageColors:this.pageColors}))}cancel(){this._cancelled=!0,this.#t?.destroy(),this.#t=null}setParent(t){this.#t?.setParent(t)}getDrawLayer(){return this.#t}}class Oi extends Cn{#t=null;renderingCancelled=!1;constructor({pageView:t}){super(t),this.pageView=t,this.renderingId="detail"+this.id,this.div=t.div}setPdfPage(t){this.pageView.setPdfPage(t)}get pdfPage(){return this.pageView.pdfPage}get renderingState(){return super.renderingState}set renderingState(t){this.renderingCancelled=!1,super.renderingState=t}reset({keepCanvas:t=!1}={}){const e=this.renderingCancelled||this.renderingState===W.RUNNING||this.renderingState===W.PAUSED;this.cancelRendering(),this.renderingState=W.INITIAL,this.renderingCancelled=e,t||this._resetCanvas()}#e(t){if(!this.#t)return!0;const e=this.#t.minX,n=this.#t.minY,r=this.#t.width+e,i=this.#t.height+n;if(t.minX<e||t.minY<n||t.maxX>r||t.maxY>i)return!0;const{width:s,height:o,scale:l}=this.pageView.viewport;if(this.#t.scale!==l)return!0;const u=t.minX-e,d=r-t.maxX,h=t.minY-n,c=i-t.maxY,f=.5,p=(1+f)/f;return e>0&&d/u>p||r<s&&u/d>p||n>0&&c/h>p||i<o&&h/c>p}update({visibleArea:t=null,underlyingViewUpdated:e=!1}={}){if(e){this.cancelRendering(),this.renderingState=W.INITIAL;return}if(!this.#e(t))return;const{viewport:n,maxCanvasPixels:r,capCanvasAreaFactor:i}=this.pageView,s=t.maxX-t.minX,o=t.maxY-t.minY,l=s*o*qt.pixelRatio**2,d=(Math.sqrt(qt.capPixels(r,i)/l)-1)/2;let h=Math.min(1,d);h<0&&(h=0);const c=s*h,f=o*h,p=Math.max(0,t.minX-c),g=Math.min(n.width,t.maxX+c),v=Math.max(0,t.minY-f),E=Math.min(n.height,t.maxY+f),S=g-p,w=E-v;this.#t={minX:p,minY:v,width:S,height:w,scale:n.scale},this.reset({keepCanvas:!0})}_getRenderingContext(t,e){const n=this.pageView._getRenderingContext(t,e,!1),r=this.pdfPage.recordedBBoxes;if(!r||!this.enableOptimizedPartialRendering)return n;const{viewport:{width:i,height:s}}=this.pageView,{width:o,height:l,minX:u,minY:d}=this.#t,h=u/i,c=d/s,f=(u+o)/i,p=(d+l)/s;return{...n,operationsFilter(g){return r.isEmpty(g)?!1:r.minX(g)<=f&&r.maxX(g)>=h&&r.minY(g)<=p&&r.maxY(g)>=c}}}async draw(){if(this.pageView.detailView!==this)return;const t=this.pageView.renderingState===W.FINISHED||this.renderingState===W.FINISHED;this.renderingState!==W.INITIAL&&(console.error("Must be in new state before drawing"),this.reset());const{div:e,pdfPage:n,viewport:r}=this.pageView;if(!n)throw this.renderingState=W.FINISHED,new Error("pdfPage is not loaded");this.renderingState=W.RUNNING;const i=this.pageView._ensureCanvasWrapper(),{canvas:s,prevCanvas:o}=this._createCanvas(g=>{i.firstElementChild?.tagName==="CANVAS"?i.firstElementChild.after(g):i.prepend(g)},t);s.ariaHidden=!0,this.enableOptimizedPartialRendering&&(s.className="detailView");const{width:l,height:u}=r,d=this.#t,{pixelRatio:h}=qt,c=[h,0,0,h,-d.minX*h,-d.minY*h];s.width=d.width*h,s.height=d.height*h;const{style:f}=s;f.width=`${d.width*100/l}%`,f.height=`${d.height*100/u}%`,f.top=`${d.minY*100/u}%`,f.left=`${d.minX*100/l}%`;const p=this._drawCanvas(this._getRenderingContext(s,c),()=>{this.canvas?.remove(),this.canvas=o},()=>{this.pageView._refreshAnnotationLayer(),this.dispatchPageRendered(!1,!0)});return e.setAttribute("data-loaded",!0),this.dispatchPageRender(),p}}const hn={Document:null,DocumentFragment:null,Part:"group",Art:"article",Sect:"group",Div:"group",BlockQuote:"blockquote",Aside:"note",NonStruct:"none",P:"paragraph",H:"heading",Title:null,FENote:"note",Sub:"group",Lbl:null,Span:null,Em:"emphasis",Strong:"strong",Note:"note",Code:"code",Link:"link",Annot:"note",Form:"form",Ruby:null,RB:null,RT:null,RP:null,Warichu:null,WT:null,WP:null,L:"list",LI:"listitem",LBody:null,Table:"table",TR:"row",TH:"columnheader",TD:"cell",THead:"rowgroup",TBody:"rowgroup",TFoot:"rowgroup",Caption:"caption",Figure:"figure",Formula:null,Artifact:null}
545,Li=new Set(["caption","code","emphasis","generic","none","paragraph","strong"]),Rn=new Set(["math","merror","mfrac","mi","mmultiscripts","mn","mo","mover","mpadded","mprescripts","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msubsup","msup","mtable","mtd","mtext","mtr","munder","munderover","semantics"]),ne="http://www.w3.org/1998/Math/MathML";class cn{static get sanitizer(){return Gt(this,"sanitizer",we.isSanitizerSupported?new Sanitizer({elements:Array.from(Rn.keys(),t=>({name:t,namespace:ne})),replaceWithChildrenElements:[{name:"maction",namespace:ne}],attributes:["dir","displaystyle","mathbackground","mathcolor","mathsize","scriptlevel","encoding","display","linethickness","intent","arg","form","fence","separator","lspace","rspace","stretchy","symmetric","maxsize","minsize","largeop","movablelimits","width","height","depth","voffset","accent","accentunder","columnspan","rowspan"],comments:!1}):null)}}const Ni=/^H(\d+)$/;class Tn{#t;#e=null;#i;#n=new Set;#r=new Map;#s=new Map;#o=0;#a=`pdfjs_internal_struct_${Gn()}_`;#u=new Map;#f=new Map;#l;#d=null;#m=null;#c=null;constructor(t,e){this.#t=t.getStructTree(),this.#l=e}async render(){if(this.#i)return this.#i;const{promise:t,resolve:e,reject:n}=Promise.withResolvers();this.#i=t;try{const r=await this.#t;this.#g(r),this.#h(r),this.#e=this.#w(r)}catch(r){n(r)}return this.#t=null,this.#e?.classList.add("structTree"),e(this.#e),t}async getAriaAttributes(t,{enableLinkOwnership:e=!1}={}){try{await this.render();const n=this.#s.get(t);if(n&&e){const{element:r,ids:i}=n;r.removeAttribute("role"),i.length>0&&this.#r.getOrInsertComputed(t,je).set("aria-owns",i.join(" ")),this.#s.delete(t)}return this.#r.get(t)}catch{}return null}async getAnnotationIds(){try{return await this.render(),this.#n}catch{}return null}hide(){this.#e&&!this.#e.hidden&&(this.#e.hidden=!0)}show(){this.#e?.hidden&&(this.#e.hidden=!1)}#g(t){if(t){t.structId&&this.#f.getOrInsert(t.structId,t);for(const e of t.children||[])this.#g(e)}}#h(t){if(t){if(t.type==="annotation"){this.#n.add(t.id);return}for(const e of t.children||[])this.#h(e)}}#p(t){return this.#u.getOrInsertComputed(t,()=>`${this.#a}${this.#u.size}`)}#b(t){const e=[],n=new Set,r=t.toReversed();for(;r.length>0;){const i=r.pop();if(n.has(i))continue;n.add(i);const s=this.#f.get(i);if(s?.role==="TH"&&(e.push(this.#p(i)),s.headers))for(let o=s.headers.length-1;o>=0;o--)r.push(s.headers[o])}return e}#E(t,e){const{alt:n,colSpan:r,headers:i,id:s,lang:o,rowSpan:l,short:u,structId:d,summary:h}=t;if(n!==void 0){let c=!1;const f=Rt(n);for(const g of t.children)g.type==="annotation"&&(this.#r.getOrInsertComputed(g.id,je).set("aria-label",f),c=!0);const p=e.getAttribute("role")||(e.localName==="span"?"generic":null);!c&&p!=="none"&&e.setAttribute(Li.has(p)?"aria-description":"aria-label",f)}if(s!==void 0&&e.setAttribute("aria-owns",s),d!==void 0&&this.#f.get(d)===t){const c=this.#p(d);if(u!==void 0){const f=document.createElement("span");f.setAttribute("id",c),f.setAttribute("aria-hidden","true"),f.textContent=Rt(u),e.append(f)}else e.setAttribute("id",c)}if(o!==void 0&&e.setAttribute("lang",Rt(o,!0)),l!==void 0&&e.setAttribute("aria-rowspan",l),r!==void 0&&e.setAttribute("aria-colspan",r),i?.length>0){const c=this.#b(i);c.length>0&&e.setAttribute("aria-describedby",c.join(" "))}h!==void 0&&e.setAttribute("aria-description",Rt(h))}#y(t,e){const{alt:n,bbox:r,children:i}=t,s=i?.[0];if(!this.#l||!n||!r||s?.type!=="content")return!1;const{id:o}=s;if(!o)return!1;e.setAttribute("aria-owns",o);const l=document.createElement("span");(this.#d||=new Map).set(o,l),l.setAttribute("role","img"),l.setAttribute("aria-label",Rt(n));const{pageHeight:u,pageX:d,pageY:h}=this.#l,c="calc(var(--total-scale-factor) *",{style:f}=l;return f.width=`${c}${r[2]-r[0]}px)`,f.height=`${c}${r[3]-r[1]}px)`,f.left=`${c}${r[0]-d}px)`,f.top=`${c}${u-r[3]+h}px)`,!0}updateTextLayer(){if(this.#d){for(const[t,e]of this.#d)document.getElementById(t)?.append(e);this.#d.clear(),this.#d=null}if(this.#m){for(const t of this.#m){const e=document.getElementById(t);e&&(e.ariaHidden=!0)}this.#m.length=0,this.#m=null}if(this.#c){for(let t=0,e=this.#c.length;t<e;t+=2){const n=this.#c[t],r=this.#c[t+1];let i="";for(const s of r){const o=document.getElementById(s);o&&(i+=o.textContent.trim()||"",o.ariaHidden="true")}i&&(n.textContent=i)}this.#c.length=0,this.#c=null}}#v(t,e){if(t){"id"in t&&e.push(t.id);for(const n of t.children||[])this.#v(n,e)}}#w(t,e=[]){if(!t)return null;let n,r=!0;if("role"in t){const{role:i}=t;if(Rn.has(i)){n=document.createElementNS(ne,i);const o=[];(this.#c||=[]).push(n,o);for(const{type:l,id:u}of t.children||[])l==="content"&&u&&o.push(u)}else n=document.createElement("span");const s=i.match(Ni);if(s)n.setAttribute("role","heading"),n.setAttribute("aria-level",s[1]);else if(hn[i]){let o=hn[i];if(i==="TH")t.scope==="Row"?o="rowheader":t.scope==="Column"?o="columnheader":e.at(-1)?.role==="TR"&&e.at(-2)?.role==="TBody"&&(o="rowheader");else if(i==="Caption"){const l=e.at(-1)?.role;l!=="Table"&&l!=="Figure"&&(o=null)}o&&n.setAttribute("role",o)}if(i==="Figure"&&this.#y(t,n))return n;i==="Formula"&&(t.mathML&&cn.sanitizer&&(r=!1,n.setHTML(t.mathML,{sanitizer:cn.sanitizer}),this.#v(t,this.#m||=[]),delete t.alt),!t.mathML&&t.children.length===1&&t.children[0].role!=="math"&&(n=document.createElementNS(ne,"math"),delete t.alt))}if(n||=document.createElement("span"),this.#E(t,n),t.children){if(t.children.length===1&&!("role"in t.children[0])&&"id"in t.children[0]&&n.getAttribute("role")!=="none")this.#E(t.children[0],n);else if(r){e.push(t);for(const i of t.children)n.append(this.#w(i,e));e.pop()}}if(t.role==="Link"){const i=t.children?.filter(s=>s.type==="annotation");if(i?.length===1){const s=i[0],o=[];for(const l of n.children)l.getAttribute("aria-owns")!==s.id&&(l.id||=`${this.#a}link_${this.#o++}`,o.push(l.id));this.#s.set(s.id,{element:n,ids:o})}}return n}}class zt{#t=!1;#e=null;#i=new Map;#n=new Map;setTextMapping(t){this.#e=t}static#r(t,e){const n=t.getBoundingClientRect(),r=e.getBoundingClientRect();if(n.width===0&&n.height===0)return 1;if(r.width===0&&r.height===0)return-1;const i=n.y,s=n.y+n.height,o=n.y+n.height/2,l=r.y,u=r.y+r.height,d=r.y+r.height/2;if(o<=l&&d>=s)return-1;if(d<=i&&o>=u)return 1;const h=n.x+n.width/2,c=r.x+r.width/2;return h-c}enable(){if(this.#t)throw new Error("TextAccessibilityManager is already enabled.");
vendor: 61,513 bytes, lines 545-547
545if(!this.#e)throw new Error("Text divs and strings have not been set.");if(this.#t=!0,this.#e=this.#e.slice(),this.#e.sort(zt.#r),this.#i.size>0){const t=this.#e;for(const[e,n]of this.#i){if(!document.getElementById(e)){this.#i.delete(e);continue}this.#s(e,t[n])}}for(const[t,e]of this.#n)this.addPointerInTextLayer(t,e);this.#n.clear()}disable(){this.#t&&(this.#n.clear(),this.#e=null,this.#t=!1)}removePointerInTextLayer(t){if(!this.#t){this.#n.delete(t);return}const e=this.#e;if(!e?.length)return;const{id:n}=t,r=this.#i.get(n);if(r===void 0)return;const i=e[r];this.#i.delete(n);let s=i.getAttribute("aria-owns");s?.includes(n)&&(s=s.split(" ").filter(o=>o!==n).join(" "),s?i.setAttribute("aria-owns",s):(i.removeAttribute("aria-owns"),i.setAttribute("role","presentation")))}#s(t,e){const n=e.getAttribute("aria-owns");n?.includes(t)||e.setAttribute("aria-owns",n?`${n} ${t}`:t),e.removeAttribute("role")}addPointerInTextLayer(t,e){const{id:n}=t;if(!n)return null;if(!this.#t)return this.#n.set(t,e),null;e&&this.removePointerInTextLayer(t);const r=this.#e;if(!r?.length)return null;const i=Kt(r,u=>zt.#r(t,u)<0),s=Math.max(0,i-1),o=r[s];this.#s(n,o),this.#i.set(n,s);const l=o.parentNode;return l?.classList.contains("markedContent")?l.id:null}moveElementInDOM(t,e,n,r){const i=this.addPointerInTextLayer(n,r);if(!t.hasChildNodes())return t.append(e),i;const s=Array.from(t.childNodes).filter(l=>l!==e);if(s.length===0)return i;const o=Kt(s,l=>zt.#r(e,l)<0);return o===0?s[0].before(e):s[o-1].after(e),i}}class Mi{#t=null;constructor({findController:t,eventBus:e,pageIndex:n}){this.findController=t,this.matches=[],this.eventBus=e,this.pageIdx=n,this.textDivs=null,this.textContentItemsStr=null,this.enabled=!1}setTextMapping(t,e){this.textDivs=t,this.textContentItemsStr=e}enable(){if(!this.textDivs||!this.textContentItemsStr)throw new Error("Text divs and strings have not been set.");if(this.enabled)throw new Error("TextHighlighter is already enabled.");this.enabled=!0,this.#t||(this.#t=new AbortController,this.eventBus.on("updatetextlayermatches",t=>{(t.pageIndex===this.pageIdx||t.pageIndex===-1)&&this._updateMatches()},{signal:this.#t.signal,...st})),this._updateMatches()}disable(){this.enabled&&(this.enabled=!1,this.#t?.abort(),this.#t=null,this._updateMatches(!0))}_convertMatches(t,e){if(!t)return[];const{textContentItemsStr:n}=this;let r=0,i=0;const s=n.length-1,o=[];for(let l=0,u=t.length;l<u;l++){let d=t[l];for(;r!==s&&d>=i+n[r].length;)i+=n[r].length,r++;r===n.length&&console.error("Could not find a matching mapping");const h={begin:{divIdx:r,offset:d-i}};for(d+=e[l];r!==s&&d>i+n[r].length;)i+=n[r].length,r++;h.end={divIdx:r,offset:d-i},o.push(h)}return o}_renderMatches(t){if(t.length===0)return;const{findController:e,pageIdx:n}=this,{textContentItemsStr:r,textDivs:i}=this,s=n===e.selected.pageIdx,o=e.selected.matchIdx,l=e.state.highlightAll;let u=null;const d={offset:void 0};function h(E,S){const w=E.divIdx;return i[w].textContent="",c(w,0,E.offset,S)}function c(E,S,w,I){let y=i[E];if(y.nodeType===Node.TEXT_NODE){const O=document.createElement("span");y.before(O),O.append(y),i[E]=O,y=O}const P=r[E].substring(S,w),T=document.createTextNode(P);if(I){const O=document.createElement("span");return O.className=`${I} appended`,O.append(T),y.append(O),I.includes("selected")?O:null}return y.append(T),0}let f=o,p=f+1;if(l)f=0,p=t.length;else if(!s)return;let g=-1,v=-1;for(let E=f;E<p;E++){const S=t[E],w=S.begin;if(w.divIdx===g&&w.offset===v)continue;g=w.divIdx,v=w.offset;const I=S.end,y=s&&E===o,P=y?" selected":"";let T=null;if(!u||w.divIdx!==u.divIdx?(u!==null&&c(u.divIdx,u.offset,d.offset),h(w)):c(u.divIdx,u.offset,w.offset),w.divIdx===I.divIdx)T=c(w.divIdx,w.offset,I.offset,"highlight"+P);else{T=c(w.divIdx,w.offset,d.offset,"highlight begin"+P);for(let O=w.divIdx+1,m=I.divIdx;O<m;O++)i[O].className="highlight middle"+P;h(I,"highlight end"+P)}u=I,y&&e.scrollMatchIntoView({element:T,pageIndex:n,matchIndex:o})}u&&c(u.divIdx,u.offset,d.offset)}_updateMatches(t=!1){if(!this.enabled&&!t)return;const{findController:e,matches:n,pageIdx:r}=this,{textContentItemsStr:i,textDivs:s}=this;let o=-1;for(const d of n){const h=Math.max(o,d.begin.divIdx);for(let c=h,f=d.end.divIdx;c<=f;c++){const p=s[c];p.textContent=i[c],p.className=""}o=d.end.divIdx+1}if(!e?.highlightMatches||t)return;const l=e.pageMatches[r]||null,u=e.pageMatchesLength[r]||null;this.matches=this._convertMatches(l,u),this._renderMatches(this.matches)}}class Ft{#t=null;#e=!1;#i=null;#n=!1;#r=null;static#s=new Map;static#o=null;constructor({pdfPage:t,highlighter:e=null,accessibilityManager:n=null,enablePermissions:r=!1,onAppend:i=null,abortSignal:s=null}){this.pdfPage=t,this.highlighter=e,this.accessibilityManager=n,this.#e=r===!0,this.#i=i,this.#t=s,this.div=document.createElement("div"),this.div.tabIndex=0,this.div.className="textLayer"}async render({viewport:t,images:e,textContentParams:n=null}){if(this.#n&&this.#r){this.#r.update({viewport:t,onBefore:this.hide.bind(this)}),this.show();return}this.cancel(),this.#r=new qn({textContentSource:this.pdfPage.streamTextContent(n||{includeMarkedContent:!0,disableNormalization:!0}),images:e,container:this.div,viewport:t});const{textDivs:r,textContentItemsStr:i}=this.#r;this.highlighter?.setTextMapping(r,i),this.accessibilityManager?.setTextMapping(r),await this.#r.render(),this.#n=!0;const s=document.createElement("div");s.className="endOfContent",this.div.append(s),this.#a(s),this.#i?.(this.div),this.highlighter?.enable(),this.accessibilityManager?.enable()}hide(){!this.div.hidden&&this.#n&&(this.highlighter?.disable(),this.div.hidden=!0)}show(){this.div.hidden&&this.#n&&(this.div.hidden=!1,this.highlighter?.enable())}cancel(){this.#r?.cancel(),this.#r=null,this.#n=!1,this.div.replaceChildren(),this.highlighter?.disable(),this.accessibilityManager?.disable(),Ft.#u(this.div)}#a(t){const{div:e}=this,n=this.#t,r=n?{signal:n}:null;e.addEventListener("mousedown",()=>{e.classList.add("selecting")},r),e.addEventListener("copy",i=>{if(!this.#e){const s=document.getSelection();i.clipboardData.setData("text/plain",Rt(Qn(s.toString())))}pe(i)},r),Ft.#s.set(e,t),Ft.#f(n)}static#u(t){this.#s.delete(t),this.#s.size===0&&(this.#o?.abort(),this.#o=null)}static#f(t){if(this.#o)return;this.#o=new AbortController;const e=t?AbortSignal.any([this.#o.signal,t]):this.#o.signal,n=(o,l)=>{l.append(o),o.style.width="",o.style.height="",l.classList.remove("selecting")};let r=!1;document.addEventListener("pointerdown",()=>{r=!0},{signal:e}),document.addEventListener("pointerup",()=>{r=!1,this.#s.forEach(n)},{signal:e}),window.addEventListener("blur",()=>{r=!1,this.#s.forEach(n)},{signal:e}),document.addEventListener("keyup",()=>{r||this.#s.forEach(n)},{signal:e});var i,s;document.addEventListener("selectionchange",()=>{const o=document.getSelection();if(o.rangeCount===0){this.#s.forEach(n);return}const l=new Set;for(let p=0;p<o.rangeCount;p++){const g=o.getRangeAt(p);for(const v of this.#s.keys())!l.has(v)&&g.intersectsNode(v)&&l.add(v)}for(const[p,g]of this.#s)l.has(p)?p.classList.add("selecting"):n(g,p);if(i===void 0&&(i=getComputedStyle(this.#s.values().next().value).getPropertyValue("-moz-user-select")==="none",!i)){const p=navigator.userAgentData?navigator.userAgentData.brands.find(({brand:g})=>g==="Chromium")?.version:/\bChrome\/(\d+)\b/.exec(navigator.userAgent)?.[1];i=!!p&&parseInt(p,10)>=148}if(i)return;const u=o.getRangeAt(0),d=s&&(u.compareBoundaryPoints(Range.END_TO_END,s)===0||u.compareBoundaryPoints(Range.START_TO_END,s)===0);let h=d?u.startContainer:u.endContainer;if(h.nodeType===Node.TEXT_NODE&&(h=h.parentNode),h.classList?.contains("highlight")&&(h=h.parentNode),!d&&u.endOffset===0)do{for(;!h.previousSibling;)h=h.parentNode;h=h.previousSibling}while(!h.childNodes.length);const c=h.parentElement?.closest(".textLayer"),f=this.#s.get(c);f&&(f.style.width=c.style.width,f.style.height=c.style.height,f.style.userSelect="text",h.parentElement.insertBefore(f,d?h:h.nextSibling)),s=u.cloneRange()},{signal:e})}}class An{#t=!1;div=null;constructor({pdfPage:t,annotationStorage:e=null,linkService:n,xfaHtml:r=null}){this.pdfPage=t,this.annotationStorage=e,this.linkService=n,this.xfaHtml=r}async render({viewport:t,intent:e="display"}){let n;if(e==="print")n=this.xfaHtml;else if(n=await this.pdfPage.getXfa(),this.#t||!n)return{textDivs:[]};const r=!!this.div,i={viewport:t.clone({dontFlip:!0}),div:this.div??=document.createElement("div"),xfaHtml:n,annotationStorage:this.annotationStorage,linkService:this.linkService,intent:e};return r?Ve.update(i):Ve.render(i)}cancel(){this.#t=!0}hide(){this.div&&(this.div.hidden=!0)}}const Di={annotationEditorUIManager:null,annotationStorage:null,downloadManager:null,enableScripting:!1,fieldObjectsPromise:null,findController:null,hasJSActionsPromise:null,get linkService(){return new Se}},ji=new Map([["canvasWrapper",0],["textLayer",1],["annotationLayer",2],["annotationEditorLayer",3],["xfaLayer",3]]);class ie extends Cn{#t=null;#e=vt.ENABLE_FORMS;#i=null;#n=null;#r=!0;#s=!1;#o=!1;#a=null;#u=!1;#f=null;#l=null;#d=1;#m=1;#c=gt.ENABLE;#g=1;#h={directDrawing:!0,initialOptionalContent:!0,regularAnnotations:!0};#p=[null,null,null,null];constructor(t){super(t);const{container:e,defaultViewport:n}=t;this.renderingId="page"+this.id,this.#a=t.layerProperties||Di,this.#t=t.abortSignal||null,this.pdfPage=null,this.pageLabel=null,this.rotation=0,this.scale=t.scale||1,this.viewport=n,this.pdfPageRotate=n.rotation,this._optionalContentConfigPromise=t.optionalContentConfigPromise||null,this.#c=t.textLayerMode??gt.ENABLE,this.#e=t.annotationMode??vt.ENABLE_FORMS,this.imageResourcesPath=t.imageResourcesPath||"",this.enableDetailCanvas=t.enableDetailCanvas??!0,this.maxCanvasPixels=t.maxCanvasPixels??Ht.get("maxCanvasPixels"),this.maxCanvasDim=t.maxCanvasDim||Ht.get("maxCanvasDim"),this.capCanvasAreaFactor=t.capCanvasAreaFactor??Ht.get("capCanvasAreaFactor"),this.#r=t.enableAutoLinking!==!1,this.#n=t.commentManager||null,this.l10n=t.l10n,this.l10n||=new bt,this._isStandalone=!this.renderingQueue?.hasViewer(),this._container=e,this._annotationCanvasMap=null,this.annotationLayer=null,this.annotationEditorLayer=null,this.textLayer=null,this.xfaLayer=null,this.structTreeLayer=null,this.drawLayer=null,this.detailView=null;const r=document.createElement("div");if(r.className="page",r.setAttribute("data-page-number",this.id),r.setAttribute("role","region"),r.setAttribute("data-l10n-id","pdfjs-page-landmark"),r.setAttribute("data-l10n-args",JSON.stringify({page:this.id})),this.div=r,this.#E(),e?.append(r),this._isStandalone){e?.style.setProperty("--scale-factor",this.scale*yt.PDF_TO_CSS_UNITS),this.pageColors?.background&&e?.style.setProperty("--page-bg-color",this.pageColors.background);const{optionalContentConfigPromise:i}=t;i&&i.then(s=>{i===this._optionalContentConfigPromise&&(this.#h.initialOptionalContent=s.hasInitialVisibility)}),t.l10n||this.l10n.translate(this.div)}}clone(t){const e=new ie({container:null,eventBus:this.eventBus,pagesColors:this.pageColors,renderingQueue:this.renderingQueue,enableOptimizedPartialRendering:this.enableOptimizedPartialRendering,minDurationToUpdateCanvas:this.minDurationToUpdateCanvas,defaultViewport:this.viewport,id:t,layerProperties:this.#a,abortSignal:this.#t,scale:this.scale,optionalContentConfigPromise:this._optionalContentConfigPromise,textLayerMode:this.#c,annotationMode:this.#e,imageResourcesPath:this.imageResourcesPath,enableDetailCanvas:this.enableDetailCanvas,maxCanvasPixels:this.maxCanvasPixels,maxCanvasDim:this.maxCanvasDim,capCanvasAreaFactor:this.capCanvasAreaFactor,enableAutoLinking:this.#r,commentManager:this.#n,l10n:this.l10n});return e.setPdfPage(this.pdfPage.clone(t-1)),e}#b(t,e){const n=ji.get(e),r=this.#p[n];if(this.#p[n]=t,r){r.replaceWith(t);return}for(let i=n-1;i>=0;i--){const s=this.#p[i];if(s){s.after(t);return}}this.div.prepend(t)}#E(){const{div:t,viewport:e}=this;if(e.userUnit!==this.#g&&(e.userUnit!==1?t.style.setProperty("--user-unit",e.userUnit):t.style.removeProperty("--user-unit"),this.#g=e.userUnit),this.pdfPage){if(this.#l===e.rotation)return;this.#l=e.rotation}mn(t,e,!0,!1)}updatePageNumber(t){const e=this.id;if(e!==t){this.id=t,this.renderingId=`page${t}`,this.pdfPage&&(this.pdfPage.pageNumber=t),this.setPageLabel(this.pageLabel);const{div:n}=this;n.setAttribute("data-page-number",t),n.setAttribute("data-l10n-args",JSON.stringify({page:t})),this._textHighlighter.pageIdx=t-1}this.#a.annotationEditorUIManager?.updatePageIndex(e-1,t-1)}setPdfPage(t){this._isStandalone&&(this.pageColors?.foreground==="CanvasText"||this.pageColors?.background==="Canvas")&&(this._container?.style.setProperty("--hcm-highlight-filter",t.filterFactory.addHighlightHCMFilter("highlight","CanvasText","Canvas","HighlightText","Highlight")),this._container?.style.setProperty("--hcm-highlight-selected-filter",t.filterFactory.addHighlightHCMFilter("highlight_selected","CanvasText","Canvas","HighlightText","Highlight"))),this.pdfPage=t,this.pdfPageRotate=t.rotate;const e=(this.rotation+this.pdfPageRotate)%360;this.viewport=t.getViewport({scale:this.scale*yt.PDF_TO_CSS_UNITS,rotation:e}),this.#E(),this.reset()}destroy(){this.reset(),this.pdfPage?.cleanup()}deleteMe(t){if(t){this.div.remove();return}this.destroy(),this.#a.annotationEditorUIManager?.deletePage(this.id)}hasEditableAnnotations(){return!!this.annotationLayer?.hasEditableAnnotations()}get _textHighlighter(){return Gt(this,"_textHighlighter",new Mi({pageIndex:this.id-1,eventBus:this.eventBus,findController:this.#a.findController}))}#y(t,e){this.eventBus.dispatch(t,{source:this,pageNumber:this.id,error:e})}async#v(t=null){const{annotationLayer:e,textLayer:n}=this;let r=null;try{await this.annotationLayer.render({viewport:this.viewport,intent:"display",structTreeLayer:this.structTreeLayer,optionalContentConfigPromise:this._optionalContentConfigPromise})}catch(i){console.error("#renderAnnotationLayer:",i),r=i}finally{this.#y("annotationlayerrendered",r)}this.#r&&t&&this.#O(t,e,n)}_refreshAnnotationLayer(){this._annotationCanvasMap?.size&&this.annotationLayer?.refreshCanvases()}async#w(){let t=null;try{await this.annotationEditorLayer.render({viewport:this.viewport,intent:"display"})}catch(e){console.error("#renderAnnotationEditorLayer:",e),t=e}finally{this.#y("annotationeditorlayerrendered",t)}}async#S(){try{await this.drawLayer.render({intent:"display"})}catch(t){console.error("#renderDrawLayer:",t)}}async#P(){let t=null;try{const e=await this.xfaLayer.render({viewport:this.viewport,intent:"display"});e?.textDivs&&this._textHighlighter&&this.#M(e.textDivs)}catch(e){console.error("#renderXfaLayer:",e),t=e}finally{this.xfaLayer?.div&&(this.l10n.pause(),this.#b(this.xfaLayer.div,"xfaLayer"),this.l10n.resume()),this.#y("xfalayerrendered",t)}}async#x(){let t=null;try{await this.textLayer.render({viewport:this.viewport,images:this.imageCoordinates?new tr(this.imagesRightClickMinSize,this.imageCoordinates,this.viewport,()=>this.canvas):null})}catch(e){if(e instanceof Un)return;console.error("#renderTextLayer:",e),t=e}this.#y("textlayerrendered",t),this.#C()}async#C(){const t=await this.structTreeLayer?.render();t&&(this.l10n.pause(),this.structTreeLayer?.updateTextLayer(),this.canvas&&t.parentNode!==this.canvas&&this.canvas.append(t),this.l10n.resume()),this.structTreeLayer?.show()}async#M(t){const e=await this.pdfPage.getTextContent(),n=[];for(const r of e.items)n.push(r.str);this._textHighlighter.setTextMapping(t,n),this._textHighlighter.enable()}async#O(t,e,n){let r=null;try{if(await t,e!==this.annotationLayer||n!==this.textLayer)return;await e.injectLinkAnnotations(Ri.processLinks(this))}catch(i){console.error("#injectLinkAnnotations:",i),r=i}this.#y("linkannotationsadded",r)}_resetCanvas(){super._resetCanvas(),this.#f=null}reset({keepAnnotationLayer:t=!1,keepAnnotationEditorLayer:e=!1,keepXfaLayer:n=!1,keepTextLayer:r=!1,keepCanvasWrapper:i=!1,preserveDetailViewState:s=!1}={}){const o=this.pdfPage?._pdfBug??!1;this.cancelRendering({keepAnnotationLayer:t,keepAnnotationEditorLayer:e,keepXfaLayer:n,keepTextLayer:r}),this.renderingState=W.INITIAL;const l=this.div,u=l.childNodes,d=t&&this.annotationLayer?.div||null,h=e&&this.annotationEditorLayer?.div||null,c=n&&this.xfaLayer?.div||null,f=r&&this.textLayer?.div||null,p=i&&this.#i||null;for(let g=u.length-1;g>=0;g--){const v=u[g];switch(v){case d:case h:case c:case f:case p:continue}if(o&&v.classList.contains("pdfBugGroupsLayer"))continue;v.remove();const E=this.#p.indexOf(v);E>=0&&(this.#p[E]=null)}l.removeAttribute("data-loaded"),d&&this.annotationLayer.hide(),h&&this.annotationEditorLayer.hide(),c&&this.xfaLayer.hide(),f&&this.textLayer.hide(),this.structTreeLayer?.hide(),!i&&this.#i&&(this.#i=null,this._resetCanvas()),s||(this.detailView?.reset({keepCanvas:i}),i||(this.detailView=null))}toggleEditingMode(t){this.#o=t,this.hasEditableAnnotations()&&this.reset({keepAnnotationLayer:!0,keepAnnotationEditorLayer:!0,keepXfaLayer:!0,keepTextLayer:!0,keepCanvasWrapper:!0})}updateVisibleArea(t){this.enableDetailCanvas&&(this.#u&&this.maxCanvasPixels>0&&t?(this.detailView??=new Oi({pageView:this,enableOptimizedPartialRendering:this.enableOptimizedPartialRendering,imagesRightClickMinSize:-1}),this.detailView.update({visibleArea:t})):this.detailView&&(this.detailView.reset(),this.detailView=null))}update({scale:t=0,rotation:e=null,optionalContentConfigPromise:n=null,drawingDelay:r=-1}){this.scale=t||this.scale,typeof e=="number"&&(this.rotation=e),n instanceof Promise&&(this._optionalContentConfigPromise=n,n.then(s=>{n===this._optionalContentConfigPromise&&(this.#h.initialOptionalContent=s.hasInitialVisibility)})),this.#h.directDrawing=!0;const i=(this.rotation+this.pdfPageRotate)%360;if(this.viewport=this.viewport.clone({scale:this.scale*yt.PDF_TO_CSS_UNITS,rotation:i}),this.#E(),this._isStandalone&&this._container?.style.setProperty("--scale-factor",this.viewport.scale),this.#R(),this.canvas){const s=this.#s&&this.#u,o=r>=0&&r<1e3;if(o||s){o&&!s&&this.renderingState!==W.FINISHED&&(this.cancelRendering({keepAnnotationLayer:!0,keepAnnotationEditorLayer:!0,keepXfaLayer:!0,keepTextLayer:!0,cancelExtraDelay:r}),this.renderingState=W.FINISHED,this.#h.directDrawing=!1),this.cssTransform({redrawAnnotationLayer:!0,redrawAnnotationEditorLayer:!0,redrawXfaLayer:!0,redrawTextLayer:!o,hideTextLayer:o}),o||(this.detailView?.update({underlyingViewUpdated:!0}),this.dispatchPageRendered(!0,!1));return}}this.cssTransform({}),this.annotationEditorLayer?.update(this.viewport),this.reset({keepAnnotationLayer:!0,keepAnnotationEditorLayer:!0,keepXfaLayer:!0,keepTextLayer:!0,keepCanvasWrapper:!0,preserveDetailViewState:!0}),this.detailView?.update({underlyingViewUpdated:!0})}#R(){const{width:t,height:e}=this.viewport,n=this.outputScale=new qt;if(this.maxCanvasPixels===0){const r=1/this.scale;n.sx*=r,n.sy*=r,this.#u=!0}else if(this.#u=n.limitCanvas(t,e,this.maxCanvasPixels,this.maxCanvasDim,this.capCanvasAreaFactor),this.#u&&this.enableDetailCanvas){const r=this.enableOptimizedPartialRendering?4:2;n.sx/=r,n.sy/=r}}cancelRendering({keepAnnotationLayer:t=!1,keepAnnotationEditorLayer:e=!1,keepXfaLayer:n=!1,keepTextLayer:r=!1,cancelExtraDelay:i=0}={}){super.cancelRendering({cancelExtraDelay:i}),this.textLayer&&(!r||!this.textLayer.div)&&(this.textLayer.cancel(),this.textLayer=null),this.annotationLayer&&(!t||!this.annotationLayer.div)&&(this.annotationLayer.cancel(),this.annotationLayer=null,this._annotationCanvasMap=null),this.structTreeLayer&&!this.textLayer&&(this.structTreeLayer=null),this.annotationEditorLayer&&(!e||!this.annotationEditorLayer.div||!this.textLayer)&&(this.drawLayer&&(this.drawLayer.cancel(),this.drawLayer=null),this.annotationEditorLayer.cancel(),this.annotationEditorLayer=null),this.drawLayer&&!this.textLayer&&(this.drawLayer.cancel(),this.drawLayer=null),this.xfaLayer&&(!n||!this.xfaLayer.div)&&(this.xfaLayer.cancel(),this.xfaLayer=null,this._textHighlighter?.disable())}cssTransform({redrawAnnotationLayer:t=!1,redrawAnnotationEditorLayer:e=!1,redrawXfaLayer:n=!1,redrawTextLayer:r=!1,hideTextLayer:i=!1}){const{canvas:s}=this;if(!s)return;const o=this.#f;if(this.viewport!==o){const l=(360+this.viewport.rotation-o.rotation)%360;if(l===90||l===270){const{width:u,height:d}=this.viewport,h=d/u,c=u/d;s.style.transform=`rotate(${l}deg) scale(${h},${c})`}else s.style.transform=l===0?"":`rotate(${l}deg)`}t&&this.annotationLayer&&this.#v(),e&&this.annotationEditorLayer&&(this.drawLayer&&this.#S(),this.#w()),n&&this.xfaLayer&&this.#P(),this.textLayer&&(i?(this.textLayer.hide(),this.structTreeLayer?.hide()):r&&this.#x())}get width(){return this.viewport.width}get height(){return this.viewport.height}getPagePoint(t,e){return this.viewport.convertToPdfPoint(t,e)}_ensureCanvasWrapper(){let t=this.#i;return t||(t=this.#i=document.createElement("div"),t.classList.add("canvasWrapper"),this.#b(t,"canvasWrapper")),t}_getRenderingContext(t,e,n,r){return{canvas:t,transform:e,viewport:this.viewport,annotationMode:this.#e,optionalContentConfigPromise:this._optionalContentConfigPromise,annotationCanvasMap:this._annotationCanvasMap,pageColors:this.pageColors,isEditing:this.#o,recordOperations:n,recordImages:r}}async draw(){this.renderingState!==W.INITIAL&&(console.error("Must be in new state before drawing"),this.reset());const{div:t,l10n:e,pdfPage:n,viewport:r}=this;if(!n)throw this.renderingState=W.FINISHED,new Error("pdfPage is not loaded");this.renderingState=W.RUNNING;const i=this._ensureCanvasWrapper();if(!this.textLayer&&this.#c!==gt.DISABLE&&!n.isPureXfa&&(this._accessibilityManager||=new zt,this.textLayer=new Ft({pdfPage:n,highlighter:this._textHighlighter,accessibilityManager:this._accessibilityManager,enablePermissions:this.#c===gt.ENABLE_PERMISSIONS,onAppend:y=>{this.l10n.pause(),this.#b(y,"textLayer"),this.l10n.resume()},abortSignal:this.#t}),this.enableSelectionRendering&&this.textLayer.div.classList.add("selectionRendering")),!this.annotationLayer&&this.#e!==vt.DISABLE){const{annotationStorage:y,annotationEditorUIManager:P,downloadManager:T,enableComment:O,enableScripting:m,fieldObjectsPromise:x,hasJSActionsPromise:C,linkService:D}=this.#a;this._annotationCanvasMap||=new Map,this.annotationLayer=new xn({pdfPage:n,annotationStorage:y,imageResourcesPath:this.imageResourcesPath,renderForms:this.#e===vt.ENABLE_FORMS,linkService:D,downloadManager:T,enableComment:O,enableScripting:m,hasJSActionsPromise:C,fieldObjectsPromise:x,annotationCanvasMap:this._annotationCanvasMap,accessibilityManager:this._accessibilityManager,annotationEditorUIManager:P,commentManager:this.#n,onAppend:N=>{this.#b(N,"annotationLayer")}})}const{width:s,height:o}=r;this.#f=r;const{canvas:l,prevCanvas:u}=this._createCanvas(y=>{i.prepend(y)});l.setAttribute("role","presentation"),this.outputScale||this.#R();const{outputScale:d}=this;this.#s=this.#u;const h=We(d.sx),c=We(d.sy),f=l.width=Jt(Zt(s*d.sx),h[0]),p=l.height=Jt(Zt(o*d.sy),c[0]),g=Jt(Zt(s),h[1]),v=Jt(Zt(o),c[1]);d.sx=f/g,d.sy=p/v,this.#d!==h[1]&&(t.style.setProperty("--scale-round-x",`${h[1]}px`),this.#d=h[1]),this.#m!==c[1]&&(t.style.setProperty("--scale-round-y",`${c[1]}px`),this.#m=c[1]);const E=this.enableOptimizedPartialRendering&&this.#s&&!this.recordedBBoxes,S=this.imagesRightClickMinSize!==-1&&!this.imageCoordinates,w=d.scaled?[d.sx,0,0,d.sy,0,0]:null,I=this._drawCanvas(this._getRenderingContext(l,w,E,S),()=>{u?.remove(),this._resetCanvas()},y=>{this.#h.regularAnnotations=!y.separateAnnots,this.dispatchPageRendered(!1,!1)}).then(async()=>{if(this.renderingState!==W.FINISHED)return;this.structTreeLayer||=new Tn(n,r.rawDims);const y=this.textLayer?this.#x():null;this.annotationLayer&&await this.#v(y),this.drawLayer||=new Ai({pageIndex:this.id,textLayer:this.enableSelectionRendering?this.textLayer?.div:null,filterFactory:this.pdfPage?.filterFactory,pageColors:this.pageColors}),await this.#S(),this.drawLayer.setParent(i);const{annotationEditorUIManager:P}=this.#a;P&&(this.annotationLayer||this.#e===vt.DISABLE)&&(this.annotationEditorLayer||=new Pi({uiManager:P,pageIndex:this.id-1,l10n:e,structTreeLayer:this.structTreeLayer,accessibilityManager:this._accessibilityManager,annotationLayer:this.annotationLayer?.annotationLayer,textLayer:this.textLayer,drawLayer:this.drawLayer.getDrawLayer(),onAppend:T=>{this.#b(T,"annotationEditorLayer")}}),this.#w())});if(n.isPureXfa){if(!this.xfaLayer){const{annotationStorage:y,linkService:P}=this.#a;this.xfaLayer=new An({pdfPage:n,annotationStorage:y,linkService:P})}this.#P()}return t.setAttribute("data-loaded",!0),this.dispatchPageRender(),I}setPageLabel(t){this.pageLabel=typeof t=="string"?t:null,this.div.setAttribute("data-l10n-args",JSON.stringify({page:this.pageLabel??this.id})),this.pageLabel!==null?this.div.setAttribute("data-page-label",this.pageLabel):this.div.removeAttribute("data-page-label")}get thumbnailCanvas(){const{directDrawing:t,initialOptionalContent:e,regularAnnotations:n}=this.#h;return t&&e&&n?this.canvas:null}}async function Fi(a){const{info:n,metadata:r,contentDispositionFilename:i,contentLength:s}=await a.getMetadata();return{...n,baseURL:"",filesize:s||(await a.getDownloadInfo()).length,filename:i||zn(""),metadata:r?.getRaw(),authors:r?.get("dc:creator"),numPages:a.numPages,URL:""}}class Vi{constructor(t,e){this._ready=new Promise((n,r)=>{import(t).then(s=>{n(s.QuickJSSandbox(new URL(e,location.href).href))}).catch(r)})}async createSandbox(t){(await this._ready).create(t)}async dispatchEventInSandbox(t){const e=await this._ready;setTimeout(()=>e.dispatchEvent(t),0)}async destroySandbox(){(await this._ready).nukeSandbox()}}class Bi{#t=null;#e=null;#i=null;#n=null;#r=null;#s=null;#o=null;#a=null;#u=null;#f=!1;#l=null;#d=null;constructor({eventBus:t,externalServices:e=null,docProperties:n=null}){this.#r=t,this.#s=e,this.#i=n}setViewer(t){this.#u=t}async setDocument(t){if(this.#a&&await this.#p(),this.#a=t,!t)return;const[e,n,r]=await Promise.all([t.getFieldObjects(),t.getCalculationOrderIds(),t.getJSActions()]);if(!e&&!r){await this.#p();return}if(t!==this.#a)return;if(e){this.#o=new Set;for(const o of e.values())for(const{id:l}of o)this.#o.add(l)}try{this.#l=this.#h()}catch(o){console.error("setDocument:",o),await this.#p();return}const i=this.#r;this.#n=new AbortController;const s={signal:this.#n.signal,...st};i.on("updatefromsandbox",o=>{o?.source===window&&this.#m(o.detail)},s),i.on("dispatcheventinsandbox",o=>{this.#l?.dispatchEventInSandbox(o.detail)},s),i.on("pagechanging",({pageNumber:o,previous:l})=>{o!==l&&(this.#g(l),this.#c(o))},s),i.on("pagerendered",({pageNumber:o})=>{this._pageOpenPending.has(o)&&o===this.#u.currentPageNumber&&this.#c(o)},s),i.on("pagesdestroy",async()=>{await this.#g(this.#u.currentPageNumber),await this.#l?.dispatchEventInSandbox({id:"doc",name:"WillClose"}),this.#t?.resolve()},s);try{const o=await this.#i(t);if(t!==this.#a)return;await this.#l.createSandbox({objects:e,calculationOrder:n,appInfo:{platform:navigator.platform,language:navigator.language},docInfo:{...o,actions:r}}),i.dispatch("sandboxcreated",{source:this})}catch(o){console.error("setDocument:",o),await this.#p();return}await this.#l?.dispatchEventInSandbox({id:"doc",name:"Open"}),await this.#c(this.#u.currentPageNumber,!0),Promise.resolve().then(()=>{t===this.#a&&(this.#f=!0)})}async dispatchWillSave(){return this.#l?.dispatchEventInSandbox({id:"doc",name:"WillSave"})}async dispatchDidSave(){return this.#l?.dispatchEventInSandbox({id:"doc",name:"DidSave"})}async dispatchWillPrint(){if(this.#l){await this.#d?.promise,this.#d=Promise.withResolvers();try{await this.#l.dispatchEventInSandbox({id:"doc",name:"WillPrint"})}catch(t){throw this.#d.resolve(),this.#d=null,t}await this.#d.promise}}async dispatchDidPrint(){return this.#l?.dispatchEventInSandbox({id:"doc",name:"DidPrint"})}get destroyPromise(){return this.#e?.promise||null}get ready(){return this.#f}get _pageOpenPending(){return Gt(this,"_pageOpenPending",new Set)}get _visitedPages(){return Gt(this,"_visitedPages",new Map)}async#m(t){const e=this.#u,n=e.isInPresentationMode||e.isChangingPresentationMode,{id:r,siblings:i,command:s,value:o}=t;if(!r){switch(s){case"clear":console.clear();break;case"error":console.error(o);break;case"layout":if(!n){const u=fr(o);e.spreadMode=u.spreadMode}break;case"page-num":e.currentPageNumber=o+1;break;case"print":await e.pagesPromise,this.#r.dispatch("print",{source:this});break;case"println":console.log(o);break;case"zoom":n||(e.currentScaleValue=o);break;case"SaveAs":this.#r.dispatch("download",{source:this});break;case"FirstPage":e.currentPageNumber=1;break;case"LastPage":e.currentPageNumber=e.pagesCount;break;case"NextPage":e.nextPage();break;case"PrevPage":e.previousPage();break;case"ZoomViewIn":n||e.increaseScale();break;case"ZoomViewOut":n||e.decreaseScale();break;case"WillPrintFinished":this.#d?.resolve(),this.#d=null;break}return}if(n&&t.focus)return;delete t.id,delete t.siblings;const l=i?[r,...i]:[r];for(const u of l){if(!this.#o?.has(u))continue;const d=document.querySelector(`[data-element-id="${u}"]`);d?d.dispatchEvent(new CustomEvent("updatefromsandbox",{detail:t})):this.#a?.annotationStorage.setValue(u,t)}}async#c(t,e=!1){const n=this.#a,r=this._visitedPages;if(e&&(this.#t=Promise.withResolvers()),!this.#t)return;const i=this.#u.getPageView(t-1);if(i?.renderingState!==W.FINISHED){this._pageOpenPending.add(t);return}this._pageOpenPending.delete(t);const s=(async()=>{const o=await(r.has(t)?null:i.pdfPage?.getJSActions());n===this.#a&&await this.#l?.dispatchEventInSandbox({id:"page",name:"PageOpen",pageNumber:t,actions:o})})();r.set(t,s)}async#g(t){const e=this.#a,n=this._visitedPages;if(!this.#t||this._pageOpenPending.has(t))return;const r=n.get(t);r&&(n.set(t,null),await r,e===this.#a&&await this.#l?.dispatchEventInSandbox({id:"page",name:"PageClose",pageNumber:t}))}#h(){if(this.#e=Promise.withResolvers(),this.#l)throw new Error("#initScripting: Scripting already exists.");return this.#s.createScripting()}async#p(){if(this.#o=null,!this.#l){this.#a=null,this.#e?.resolve();return}this.#t&&(await Promise.race([this.#t.promise,new Promise(t=>{setTimeout(t,1e3)})]).catch(()=>{}),this.#t=null),this.#a=null;try{await this.#l.destroySandbox()}catch{}this.#d?.reject(new Error("Scripting destroyed.")),this.#d=null,this.#n?.abort(),this.#n=null,this._pageOpenPending.clear(),this._visitedPages.clear(),this.#l=null,this.#f=!1,this.#e?.resolve()}}class Ui extends Bi{constructor(t){t.externalServices||window.addEventListener("updatefromsandbox",e=>{t.eventBus.dispatch("updatefromsandbox",{source:window,detail:e.detail})}),t.externalServices||={createScripting:()=>new Vi(t.sandboxBundleSrc,t.wasmUrl)},t.docProperties||=e=>Fi(e),super(t)}}H(1148);H(3579);const ki=3e4;class $i{#t=null;#e=null;#i=null;#n=null;isThumbnailViewEnabled=!1;onIdle=null;printing=!1;constructor(){Object.defineProperty(this,"hasViewer",{value:()=>!!this.#n})}setViewer(t){this.#n=t}setThumbnailViewer(t){this.#i=t}isHighestPriority(t){return this.#t===t.renderingId}renderHighestPriority(t){this.#e&&(clearTimeout(this.#e),this.#e=null),!this.#n.forceRendering(t)&&(this.isThumbnailViewEnabled&&this.#i?.forceRendering()||this.printing||this.onIdle&&(this.#e=setTimeout(this.onIdle.bind(this),ki)))}getHighestPriority(t,e,n,r=!1,i=!1){const s=t.views,o=s.length;if(o===0)return null;for(let c=0;c<o;c++){const f=s[c].view;if(!this.isViewFinished(f))return f}if(!i)for(let c=0;c<o;c++){const{detailView:f}=s[c].view;if(f&&!this.isViewFinished(f))return f}const l=t.first.id,u=t.last.id;if(u-l+1>o){const c=t.ids;for(let f=1,p=u-l;f<p;f++){const g=n?l+f:u-f;if(c.has(g))continue;const v=e[g-1];if(!this.isViewFinished(v))return v}}let d=n?u:l-2,h=e[d];return h&&!this.isViewFinished(h)||r&&(d+=n?1:-1,h=e[d],h&&!this.isViewFinished(h))?h:null}isViewFinished(t){return t.renderingState===W.FINISHED}renderView(t){switch(t.renderingState){case W.FINISHED:return!1;case W.PAUSED:this.#t=t.renderingId,t.resume();break;case W.RUNNING:this.#t=t.renderingId;break;case W.INITIAL:this.#t=t.renderingId,t.draw().finally(()=>{this.renderHighestPriority()}).catch(e=>{e instanceof fe||console.error("renderView:",e)});break}return!0}}const fn=10,_t={FORCE_SCROLL_MODE_PAGE:1e4,FORCE_LAZY_PAGE_INIT:5e3,PAUSE_EAGER_PAGE_INIT:250};function pn(a){return Object.values(at).includes(a)&&a!==at.DISABLE}class Wi{#t=new Set;#e=0;constructor(t){this.#e=t}push(t){const e=this.#t;e.has(t)&&e.delete(t),e.add(t),e.size>this.#e&&this.#i()}resize(t,e=null){this.#e=t;const n=this.#t;if(e){const r=n.size;let i=1;for(const s of n)if(e.has(s.id)&&(n.delete(s),n.add(s)),++i>r)break}for(;n.size>this.#e;)this.#i()}has(t){return this.#t.has(t)}[Symbol.iterator](){return this.#t.keys()}#i(){const t=this.#t.keys().next().value;t?.destroy(),this.#t.delete(t)}}class On{#t=null;#e=null;#i=null;#n=at.NONE;#r=null;#s=vt.ENABLE_FORMS;#o=null;#a=null;#u=null;#f=!1;#l=!1;#d=!1;#m=!1;#c=!0;#g=null;#h=null;#p=0;#b=null;#E=[NaN,NaN];#y=!0;#v=null;#w=!1;#S=null;#P=null;#x=!1;#C=null;#M=0;#O=new ResizeObserver(this.#rt.bind(this));#R=null;#A=null;#j=null;#U=!0;#F=gt.ENABLE;#k=null;#L=null;#I=null;#N=null;constructor(t){const e="6.3.289";if(Fe!==e)throw new Error(`The API version "${Fe}" does not match the Viewer version "${e}".`);if(this.container=t.container,this.viewer=t.viewer||t.container.firstElementChild,this.#k=t.viewerAlert||null,this.container?.tagName!=="DIV"||this.viewer?.tagName!=="DIV")throw new Error("Invalid `container` and/or `viewer` option.");if(this.container.offsetParent&&getComputedStyle(this.container).position!=="absolute")throw new Error("The `container` must be absolutely positioned.");this.#O.observe(this.container),this.eventBus=t.eventBus,this.linkService=t.linkService||new Se,this.downloadManager=t.downloadManager||null,this.findController=t.findController||null,this.#e=t.altTextManager||null,this.#o=t.commentManager||null,this.#j=t.signatureManager||null,this.#u=t.editorUndoBar||null,this.findController&&(this.findController.onIsPageVisible=r=>this._getVisiblePages().ids.has(r)),this._scriptingManager=t.scriptingManager||null,this.#F=t.textLayerMode??gt.ENABLE,this.#s=t.annotationMode??vt.ENABLE_FORMS,this.#n=t.annotationEditorMode??at.NONE,this.#i=t.annotationEditorHighlightColors||null,this.#f=t.enableHighlightFloatingButton===!0,this.#d=t.enableUpdatedAddImage===!0,this.#m=t.enableNewAltTextWhenAddingImage===!0,this.imageResourcesPath=t.imageResourcesPath||"",this.enablePrintAutoRotate=t.enablePrintAutoRotate||!1,this.removePageBorders=t.removePageBorders||!1,this.maxCanvasPixels=t.maxCanvasPixels,this.maxCanvasDim=t.maxCanvasDim,this.capCanvasAreaFactor=t.capCanvasAreaFactor,this.enableDetailCanvas=t.enableDetailCanvas??!0,this.enableOptimizedPartialRendering=t.enableOptimizedPartialRendering??!1,this.enableSelectionRendering=t.enableSelectionRendering!==!1,this.imagesRightClickMinSize=t.imagesRightClickMinSize??-1,this.l10n=t.l10n,this.l10n||=new bt,this.#l=t.enablePermissions||!1,this.pageColors=t.pageColors||null,this.#b=t.mlManager||null,this.#U=t.supportsPinchToZoom!==!1,this.#c=t.enableAutoLinking!==!1,this.#p=t.minDurationToUpdateCanvas??500,this.defaultRenderingQueue=!t.renderingQueue,this.defaultRenderingQueue?(this.renderingQueue=new $i,this.renderingQueue.setViewer(this)):this.renderingQueue=t.renderingQueue;const{abortSignal:n}=t;this.#g=n||null,n?.addEventListener("abort",()=>{this.#O.disconnect(),this.#O=null},{once:!0}),this.scroll=sr(this.container,this._scrollUpdate.bind(this),n),this.presentationModeState=Dt.UNKNOWN,this._resetView(),this.removePageBorders&&this.viewer.classList.add("removePageBorders"),this.#G(),this.eventBus.on("thumbnailrendered",({pageNumber:r,pdfPage:i})=>{const s=this._pages[r-1];this.#t.has(s)||i?.cleanup()},st),t.l10n||this.l10n.translate(this.container)}get printingAllowed(){return this.#y}get pagesCount(){return this._pages.length}getPageView(t){return this._pages[t]}getCachedPageViews(){return new Set(this.#t)}get pageViewsReady(){return this._pages.every(t=>t?.pdfPage)}clearSelection(){const t=document.getSelection();if(!(!t||t.isCollapsed)){for(let e=0,n=t.rangeCount;e<n;e++)if(t.getRangeAt(e).intersectsNode(this.viewer)){t.removeAllRanges?.(),t.empty?.();return}}}get renderForms(){return this.#s===vt.ENABLE_FORMS}get enableScripting(){return!!this._scriptingManager}get currentPageNumber(){return this._currentPageNumber}set currentPageNumber(t){if(!Number.isInteger(t))throw new Error("Invalid page number.");this.pdfDocument&&(this._currentPageNumber!==t&&this.clearSelection(),this._setCurrentPageNumber(t,!0)||console.error(`currentPageNumber: "${t}" is not a valid page.`))}_setCurrentPageNumber(t,e=!1){if(this._currentPageNumber===t)return e&&this.#H(),!0;if(!(0<t&&t<=this.pagesCount))return!1;const n=this._currentPageNumber;return this._currentPageNumber=t,this.eventBus.dispatch("pagechanging",{source:this,pageNumber:t,pageLabel:this._pageLabels?.[t-1]??null,previous:n}),e&&this.#H(),!0}get currentPageLabel(){return this._pageLabels?.[this._currentPageNumber-1]??null}set currentPageLabel(t){if(!this.pdfDocument)return;let e=t|0;if(this._pageLabels){const n=this._pageLabels.indexOf(t);n>=0&&(e=n+1)}this._currentPageNumber!==e&&this.clearSelection(),this._setCurrentPageNumber(e,!0)||console.error(`currentPageLabel: "${t}" is not a valid page.`)}get currentScale(){return this._currentScale!==0?this._currentScale:1}set currentScale(t){if(isNaN(t))throw new Error("Invalid numeric scale.");this.pdfDocument&&this.#T(t,{noScroll:!1})}get currentScaleValue(){return this._currentScaleValue}set currentScaleValue(t){this.pdfDocument&&this.#T(t,{noScroll:!1})}get pagesRotation(){return this._pagesRotation}set pagesRotation(t){if(!yn(t))throw new Error("Invalid pages rotation angle.");if(!this.pdfDocument||(t%=360,t<0&&(t+=360),this._pagesRotation===t))return;this.clearSelection(),this._pagesRotation=t;const e=this._currentPageNumber;this.refresh(!0,{rotation:t}),this._currentScaleValue&&this.#T(this._currentScaleValue,{noScroll:!0}),this.eventBus.dispatch("rotationchanging",{source:this,pagesRotation:t,pageNumber:e}),this.defaultRenderingQueue&&this.update()}get firstPagePromise(){return this.pdfDocument?this._firstPageCapability.promise:null}get onePageRendered(){return this.pdfDocument?this._onePageRenderedCapability.promise:null}get pagesPromise(){return this.pdfDocument?this._pagesCapability.promise:null}get _layerProperties(){const t=this;return Gt(this,"_layerProperties",{get annotationEditorUIManager(){return t.#r},get annotationStorage(){return t.pdfDocument?.annotationStorage},get downloadManager(){return t.downloadManager},get enableComment(){return!!t.#o},get enableScripting(){return!!t._scriptingManager},get fieldObjectsPromise(){return t.pdfDocument?.getFieldObjects()},get findController(){return t.findController},get hasJSActionsPromise(){return t.pdfDocument?.hasJSActions()},get linkService(){return t.linkService}})}#$(t){this.#y=t,this.eventBus.dispatch("printingallowed",{source:this,isAllowed:t})}#X(t){const e={annotationEditorMode:this.#n,annotationMode:this.#s,textLayerMode:this.#F};return t?(this.#$(t.has(Mt.PRINT_HIGH_QUALITY)||t.has(Mt.PRINT)),!t.has(Mt.COPY)&&this.#F===gt.ENABLE&&(e.textLayerMode=gt.ENABLE_PERMISSIONS),t.has(Mt.MODIFY_CONTENTS)||(e.annotationEditorMode=at.DISABLE),!t.has(Mt.MODIFY_ANNOTATIONS)&&!t.has(Mt.FILL_INTERACTIVE_FORMS)&&this.#s===vt.ENABLE_FORMS&&(e.annotationMode=vt.ENABLE),e):(this.#$(!0),e)}async#J(t){if(document.visibilityState==="hidden"||!this.container.offsetParent||this._getVisiblePages().views.length===0)return;const e=Promise.withResolvers(),n=new AbortController;document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&e.resolve()},{signal:AbortSignal.any([t,n.signal])}),await Promise.race([this._onePageRenderedCapability.promise,e.promise]),n.abort()}async getAllText(t=null){const e=[],n=[];for(let r=1,i=this.pdfDocument.numPages;r<=i;++r){if(t?.aborted)return null;n.length=0;const s=await this.pdfDocument.getPage(r),{items:o}=await s.getTextContent();for(const l of o)l.str&&n.push(l.str),l.hasEOL&&n.push(`
546`);e.push(Rt(n.join("")))}return e.join(`
547`)}#Z(t,e){const n=document.getSelection(),{focusNode:r,anchorNode:i}=n;if(i&&r&&n.containsNode(this.#C)){if(this.#x||t===gt.ENABLE_PERMISSIONS){pe(e);return}this.#x=!0;const{classList:s}=this.viewer;s.add("copyAll");const o=new AbortController,l=new AbortController;window.addEventListener("keydown",u=>{u.key==="Escape"&&l.abort()},{signal:o.signal}),this.getAllText(l.signal).then(async u=>{u!==null&&await navigator.clipboard.writeText(u)}).catch(u=>{console.warn(`Something goes wrong when extracting the text: ${u.message}`)}).finally(()=>{this.#x=!1,o.abort(),s.remove("copyAll")}),pe(e)}}setDocument(t){if(this.pdfDocument&&(this.eventBus.dispatch("pagesdestroy",{source:this}),this._cancelRendering(),this._resetView(),this.findController?.setDocument(null),this._scriptingManager?.setDocument(null),this.#r?.destroy(),this.#r=null,this.#n=at.NONE,this.#y=!0),this.pdfDocument=t,!t)return;const e=t.numPages,n=t.getPage(1),r=t.getOptionalContentConfig({intent:"display"}),i=this.#l?t.getPermissions():Promise.resolve(),{eventBus:s,pageColors:o,viewer:l}=this;this.#h=new AbortController;const{signal:u}=this.#h,d={signal:u,...st};if(e>_t.FORCE_SCROLL_MODE_PAGE){console.warn("Forcing PAGE-scrolling for performance reasons, given the length of the document.");const f=this._scrollMode=V.PAGE;s.dispatch("scrollmodechanged",{source:this,mode:f})}this._pagesCapability.promise.then(()=>{s.dispatch("pagesloaded",{source:this,pagesCount:e})},()=>{});const h=f=>{const p=this._pages[f.pageNumber-1];p&&this.#t.push(p)};s.on("pagerender",h,d);const c=f=>{f.cssTransform||f.isDetailView||(this._onePageRenderedCapability.resolve({timestamp:f.timestamp}),s.off("pagerendered",c))};s.on("pagerendered",c,d),Promise.all([n,i]).then(([f,p])=>{if(t!==this.pdfDocument)return;this._firstPageCapability.resolve(f),this._optionalContentConfigPromise=r;const{annotationEditorMode:g,annotationMode:v,textLayerMode:E}=this.#X(p);if(E!==gt.DISABLE){const y=this.#C=document.createElement("div");y.id="hiddenCopyElement",y.style.cssText="position:absolute;top:0;left:0;width:0;height:0;display:none",l.before(y)}if(g!==at.DISABLE){const y=g;t.isPureXfa?console.warn("Warning: XFA-editing is not implemented."):pn(y)?(this.#r=new $n(this.container,l,this.#k,this.#e,this.#o,this.#j,s,t,o,this.#i,this.#f,this.#d,this.#m,this.#b,this.#u,this.#U),s.dispatch("annotationeditoruimanager",{source:this,uiManager:this.#r}),y!==at.NONE&&(this.#Y(y),this.#r.updateMode(y))):console.error(`Invalid AnnotationEditor mode: ${y}`)}const S=this._scrollMode===V.PAGE?null:l,w=this.currentScale,I=f.getViewport({scale:w*yt.PDF_TO_CSS_UNITS});l.style.setProperty("--scale-factor",I.scale),o?.background&&l.style.setProperty("--page-bg-color",o.background),(o?.foreground==="CanvasText"||o?.background==="Canvas")&&(l.style.setProperty("--hcm-highlight-filter",t.filterFactory.addHighlightHCMFilter("highlight","CanvasText","Canvas","HighlightText","Highlight")),l.style.setProperty("--hcm-highlight-selected-filter",t.filterFactory.addHighlightHCMFilter("highlight_selected","CanvasText","Canvas","HighlightText","ButtonText")));for(let y=1;y<=e;++y){const P=new ie({container:S,eventBus:s,id:y,scale:w,defaultViewport:I.clone(),optionalContentConfigPromise:r,renderingQueue:this.renderingQueue,textLayerMode:E,annotationMode:v,imageResourcesPath:this.imageResourcesPath,maxCanvasPixels:this.maxCanvasPixels,maxCanvasDim:this.maxCanvasDim,capCanvasAreaFactor:this.capCanvasAreaFactor,enableDetailCanvas:this.enableDetailCanvas,enableOptimizedPartialRendering:this.enableOptimizedPartialRendering,enableSelectionRendering:this.enableSelectionRendering,imagesRightClickMinSize:this.imagesRightClickMinSize,pageColors:o,l10n:this.l10n,layerProperties:this._layerProperties,enableAutoLinking:this.#c,minDurationToUpdateCanvas:this.#p,commentManager:this.#o,abortSignal:this.#g});this._pages.push(P)}this._pages[0]?.setPdfPage(f),this._scrollMode===V.PAGE?this.#D():this._spreadMode!==et.NONE&&this._updateSpreadMode(),s.on("annotationeditorlayerrendered",y=>{this.#r&&s.dispatch("annotationeditormodechanged",{source:this,mode:this.#n})},{once:!0,signal:u,...st}),this.#J(u).then(async()=>{if(t!==this.pdfDocument)return;if(this.findController?.setDocument(t),this._scriptingManager?.setDocument(t),this.#C&&document.addEventListener("copy",this.#Z.bind(this,E),{signal:u}),t.loadingParams.disableAutoFetch||e>_t.FORCE_LAZY_PAGE_INIT){this._pagesCapability.resolve();return}let y=e-1;if(y<=0){this._pagesCapability.resolve();return}for(let P=2;P<=e;++P){const T=t.getPage(P).then(O=>{const m=this._pages[P-1];m.pdfPage||m.setPdfPage(O),--y===0&&this._pagesCapability.resolve()},O=>{console.error(`Unable to get page ${P} to initialize viewer`,O),--y===0&&this._pagesCapability.resolve()});P%_t.PAUSE_EAGER_PAGE_INIT===0&&await T}}),s.dispatch("pagesinit",{source:this}),t.getMetadata().then(({info:y})=>{t===this.pdfDocument&&y.Language&&(l.lang=y.Language)}),this.defaultRenderingQueue&&this.update()}).catch(f=>{console.error("Unable to initialize viewer",f),this._pagesCapability.reject(f)})}onPagesEdited({pagesMapper:t,type:e,hasBeenCut:n,pageNumbers:r}){if(e==="copy"){this.#L=new Map;for(const u of r)this.#L.set(u,this._pages[u-1]);return}if(e==="cancelCopy"){this.#L=null;return}if((e==="cut"||e==="delete")&&(this.#I=this._pages,this.#N=r),e==="cancelDelete"){if(this.#N=null,!this.#I)return;const u=this._scrollMode===V.PAGE?null:this.viewer;if(u){this.#r?.startUpdatePages();const d=document.createDocumentFragment();for(let h=0,c=this.#I.length;h<c;h++){const f=this.#I[h];f.updatePageNumber(h+1),d.append(f.div)}u.replaceChildren(d),this.#r?.endUpdatePages()}this._pages=this.#I,this.#I=null;return}if(e==="cleanSavedData"){if(this.#N){if(this.#I){for(const u of this.#N)this.#I[u-1].deleteMe();this.#I=null}this.#N=null}return}this._currentPageNumber=0;const s=this._pages,o=this._pages=[];this.#r?.startUpdatePages();for(let u=1,d=t.pagesNumber;u<=d;u++){const h=t.getPrevPageNumber(u);if(h<0){let f=this.#L.get(-h);n?f.updatePageNumber(u):(this.#r?.clonePage(-h-1,u-1),f=f.clone(u)),o.push(f);continue}const c=s[h-1];o.push(c),c.updatePageNumber(u)}this.#r?.endUpdatePages(),e==="paste"&&(this.#L=null);const l=this._scrollMode===V.PAGE?null:this.viewer;if(l){const u=document.createDocumentFragment();for(const{div:d}of o)u.append(d);l.replaceChildren(u)}setTimeout(()=>{this.forceRendering()})}setPageLabels(t){if(this.pdfDocument){t?Array.isArray(t)&&this.pdfDocument.numPages===t.length?this._pageLabels=t:(this._pageLabels=null,console.error("setPageLabels: Invalid page labels.")):this._pageLabels=null;for(let e=0,n=this._pages.length;e<n;e++)this._pages[e].setPageLabel(this._pageLabels?.[e]??null)}}_resetView(){this._pages=[],this._currentPageNumber=1,this._currentScale=0,this._currentScaleValue=null,this._pageLabels=null,this.#t=new Wi(fn),this._location=null,this._pagesRotation=0,this._optionalContentConfigPromise=null,this._firstPageCapability=Promise.withResolvers(),this._onePageRenderedCapability=Promise.withResolvers(),this._pagesCapability=Promise.withResolvers(),this._scrollMode=V.VERTICAL,this._previousScrollMode=V.UNKNOWN,this._spreadMode=et.NONE,this.#R={previousPageNumber:1,scrollDown:!0,pages:[]},this.#h?.abort(),this.#h=null,this.viewer.textContent="",this._updateScrollMode(),this.viewer.removeAttribute("lang"),this.#C?.remove(),this.#C=null,this.#K(),this.#B()}#D(){if(this._scrollMode!==V.PAGE)throw new Error("#ensurePageViewVisible: Invalid scrollMode value.");const t=this._currentPageNumber,e=this.#R,n=this.viewer;if(n.textContent="",e.pages.length=0,this._spreadMode===et.NONE&&!this.isInPresentationMode){const r=this._pages[t-1];n.append(r.div),e.pages.push(r)}else{const r=new Set,i=this._spreadMode-1;i===-1?r.add(t-1):t%2!==i?(r.add(t-1),r.add(t)):(r.add(t-2),r.add(t-1));const s=document.createElement("div");if(s.className="spread",this.isInPresentationMode){const o=document.createElement("div");o.className="dummyPage",s.append(o)}for(const o of r){const l=this._pages[o];l&&(s.append(l.div),e.pages.push(l))}n.append(s)}e.scrollDown=t>=e.previousPageNumber,e.previousPageNumber=t}_scrollUpdate(){this.pagesCount!==0&&(this.#v&&clearTimeout(this.#v),this.#v=setTimeout(()=>{this.#v=null,this.update()},100),this.update())}#V(t,e=null){const{div:n,id:r}=t;if(this._currentPageNumber!==r&&this._setCurrentPageNumber(r),this._scrollMode===V.PAGE&&(this.#D(),this.update()),!e&&!this.isInPresentationMode){const i=n.offsetLeft+n.clientLeft,s=i+n.clientWidth,{scrollLeft:o,clientWidth:l}=this.container;(this._scrollMode===V.HORIZONTAL||i<o||s>o+l)&&(e={left:0,top:0})}ir(n,e),!this._currentScaleValue&&this._location&&(this._location=null)}#Q(t){return t===this._currentScale||Math.abs(t-this._currentScale)<1e-15}panBy(t,e){const{container:n}=this,r=this.#E,{scrollLeft:i,scrollTop:s}=n,o=(Math.abs(i-r[0])<1?r[0]:i)-t,l=(Math.abs(s-r[1])<1?r[1]:s)-e;r[0]=o,r[1]=l,n.scrollLeft=o,n.scrollTop=l,this.#w=!0}#_(){if(!this.#w)return;const{first:t}=this._getVisiblePages();t&&this._updateLocation(t)}#W(t,e,{noScroll:n=!1,preset:r=!1,drawingDelay:i=-1,origin:s=null,pan:o=null}){if(this._currentScaleValue=e.toString(),this.#Q(t)){o&&!n&&this.panBy(o[0],o[1]),r&&this.eventBus.dispatch("scalechanging",{source:this,scale:t,presetValue:e});return}this.clearSelection(),this.viewer.style.setProperty("--scale-factor",t*yt.PDF_TO_CSS_UNITS);const l=i>=0&&i<1e3;this.refresh(!0,{scale:t,drawingDelay:l?i:-1}),l&&(this.#A=setTimeout(()=>{this.#A=null,this.refresh()},i));const u=this._currentScale;if(this._currentScale=t,!n){this.#_();let d=this._currentPageNumber,h;this._location&&!(this.isInPresentationMode||this.isChangingPresentationMode)&&(d=this._location.pageNumber,h=[null,{name:"XYZ"},this._location.left,this._location.top,null]),this.scrollPageIntoView({pageNumber:d,destArray:h,allowNegativeOffset:!0});let c=o?.[0]??0,f=o?.[1]??0;if(Array.isArray(s)){const p=t/u-1,[g,v]=this.containerTopLeft;c-=(s[0]-v)*p,f-=(s[1]-g)*p}(c||f)&&this.panBy(c,f)}this.eventBus.dispatch("scalechanging",{source:this,scale:t,presetValue:r?e:void 0}),this.defaultRenderingQueue&&this.update()}get#q(){return this._spreadMode!==et.NONE&&this._scrollMode!==V.HORIZONTAL?2:1}#T(t,e){let n=parseFloat(t);if(n>0)e.preset=!1,this.#W(n,t,e);else{const r=this._pages[this._currentPageNumber-1];if(!r)return;let i=40,s=5;this.isInPresentationMode?(i=s=4,this._spreadMode!==et.NONE&&(i*=2)):this.removePageBorders?i=s=0:this._scrollMode===V.HORIZONTAL&&([i,s]=[s,i]);const o=(this.container.clientWidth-i)/r.width*r.scale/this.#q,l=(this.container.clientHeight-s)/r.height*r.scale;switch(t){case"page-actual":n=1;break;case"page-width":n=o;break;case"page-height":n=l;break;case"page-fit":n=Math.min(o,l);break;case"auto":const u=He(r)?o:Math.min(l,o);n=Math.min(1.25,u);break;default:console.error(`#setScale: "${t}" is an unknown zoom value.`);return}e.preset=!0,this.#W(n,t,e)}}#H(){const t=this._pages[this._currentPageNumber-1];this.isInPresentationMode&&this.#T(this._currentScaleValue,{noScroll:!0}),this.#V(t)}pageLabelToPageNumber(t){if(!this._pageLabels)return null;const e=this._pageLabels.indexOf(t);return e<0?null:e+1}scrollPageIntoView({pageNumber:t,destArray:e=null,allowNegativeOffset:n=!1,ignoreDestinationZoom:r=!1,center:i=null}){if(!this.pdfDocument)return;const s=Number.isInteger(t)&&this._pages[t-1];if(!s){console.error(`scrollPageIntoView: "${t}" is not a valid pageNumber parameter.`);return}if(this.isInPresentationMode||!e){this._setCurrentPageNumber(t,!0);return}let o=0,l=0,u=0,d=0,h,c;const f=s.rotation%180!==0,p=(f?s.height:s.width)/s.scale/yt.PDF_TO_CSS_UNITS,g=(f?s.width:s.height)/s.scale/yt.PDF_TO_CSS_UNITS;let v=0;switch(e[1].name){case"XYZ":o=e[2],l=e[3],v=e[4],o=o!==null?o:0,l=l!==null?l:g;break;case"Fit":case"FitB":v="page-fit";break;case"FitH":case"FitBH":l=e[2],v="page-width",l===null&&this._location?(o=this._location.left,l=this._location.top):(typeof l!="number"||l<0)&&(l=g);break;case"FitV":case"FitBV":o=e[2],u=p,d=g,v="page-height";break;case"FitR":o=e[2],l=e[3],u=e[4]-o,d=e[5]-l;let I=40,y=5;this.removePageBorders&&(I=y=0),h=(this.container.clientWidth-I)/u/yt.PDF_TO_CSS_UNITS,c=(this.container.clientHeight-y)/d/yt.PDF_TO_CSS_UNITS,v=Math.min(Math.abs(h),Math.abs(c));break;default:console.error(`scrollPageIntoView: "${e[1].name}" is not a valid destination type.`);return}if(r||(v&&v!==this._currentScale?this.currentScaleValue=v:this._currentScale===0&&(this.currentScaleValue="auto")),v==="page-fit"&&!e[4]){this.#V(s);return}const E=[s.viewport.convertToViewportPoint(o,l),s.viewport.convertToViewportPoint(o+u,l+d)];let S=Math.min(E[0][0],E[1][0]),w=Math.min(E[0][1],E[1][1]);i?((i==="both"||i==="vertical")&&(w-=(this.container.clientHeight-Math.abs(E[1][1]-E[0][1]))/2),(i==="both"||i==="horizontal")&&(S-=(this.container.clientWidth-Math.abs(E[1][0]-E[0][0]))/2)):n||(S=Math.max(S,0),w=Math.max(w,0)),this.#V(s,{left:S,top:w})}_updateLocation(t){this.#w=!1;const e=this._currentScale,n=this._currentScaleValue,r=parseFloat(n)===e?Math.round(e*1e4)/100:n,i=t.id,s=this._pages[i-1],o=this.container,l=s.getPagePoint(o.scrollLeft-t.x,o.scrollTop-t.y),[u,d]=l;let h=`#page=${i}`;this.isInPresentationMode||(h+=`&zoom=${r},${Math.round(u)},${Math.round(d)}`),this._location={pageNumber:i,scale:r,top:d,left:u,rotation:this._pagesRotation,pdfOpenParams:h}}update(){const t=this._getVisiblePages(),e=t.views,n=e.length;if(n===0)return;const r=Math.max(fn,2*n+1);this.#t.resize(r,t.ids);for(const{view:l,visibleArea:u}of e)l.updateVisibleArea(u);for(const l of this.#t)t.ids.has(l.id)||l.updateVisibleArea(null);this.renderingQueue.renderHighestPriority(t);const i=this._spreadMode===et.NONE&&(this._scrollMode===V.PAGE||this._scrollMode===V.VERTICAL),s=this._currentPageNumber;let o=!1;for(const l of e){if(l.percent<100)break;if(l.id===s&&i){o=!0;break}}this._setCurrentPageNumber(o?this._currentPageNumber:e[0].id),this._updateLocation(t.first),this.eventBus.dispatch("updateviewarea",{source:this,location:this._location})}#tt(){const t=this._getVisiblePages(),e=[],{ids:n,views:r}=t;for(const i of r){const{view:s}=i;if(!s.hasEditableAnnotations()){n.delete(s.id);continue}e.push(i)}return e.length===0?null:(this.renderingQueue.renderHighestPriority({first:e[0],last:e.at(-1),views:e,ids:n}),n)}containsElement(t){return this.container.contains(t)}focus(){this.container.focus()}get _isContainerRtl(){return getComputedStyle(this.container).direction==="rtl"}get isInPresentationMode(){return this.presentationModeState===Dt.FULLSCREEN}get isChangingPresentationMode(){return this.presentationModeState===Dt.CHANGING}get isHorizontalScrollbarEnabled(){return this.isInPresentationMode?!1:this.container.scrollWidth>this.container.clientWidth}get isVerticalScrollbarEnabled(){return this.isInPresentationMode?!1:this.container.scrollHeight>this.container.clientHeight}_getVisiblePages(){const t=this._scrollMode===V.PAGE?this.#R.pages:this._pages,e=this._scrollMode===V.HORIZONTAL,n=e&&this._isContainerRtl;return lr({scrollEl:this.container,views:t,sortByVisibility:!0,horizontal:e,rtl:n})}cleanup(){for(const t of this._pages)t.renderingState!==W.FINISHED&&t.reset()}_cancelRendering(){for(const t of this._pages)t.cancelRendering()}async#et(t){if(t.pdfPage)return t.pdfPage;try{const e=await this.pdfDocument.getPage(t.id);return t.pdfPage||t.setPdfPage(e),e}catch(e){return console.error("Unable to get page for page view",e),null}}#nt(t){if(t.first?.id===1)return!0;if(t.last?.id===this.pagesCount)return!1;switch(this._scrollMode){case V.PAGE:return this.#R.scrollDown;case V.HORIZONTAL:return this.scroll.right}return this.scroll.down}forceRendering(t){const e=t||this._getVisiblePages(),n=this.#nt(e),r=this._spreadMode!==et.NONE&&this._scrollMode!==V.HORIZONTAL,i=this.#A!==null||this.#v!==null&&e.views.some(o=>o.detailView?.renderingCancelled),s=this.renderingQueue.getHighestPriority(e,this._pages,n,r,i);return s?(this.#et(s).then(()=>{this.renderingQueue.renderView(s)}),!0):!1}get hasEqualPageSizes(){const t=this._pages[0];for(let e=1,n=this._pages.length;e<n;++e){const r=this._pages[e];if(r.width!==t.width||r.height!==t.height)return!1}return!0}getPagesOverview(){let t;return this._pages.map(e=>{const n=e.pdfPage.getViewport({scale:1}),r=He(n);if(t===void 0)t=r;else if(this.enablePrintAutoRotate&&r!==t)return{width:n.height,height:n.width,rotation:(n.rotation-90)%360};return{width:n.width,height:n.height,rotation:n.rotation}})}get optionalContentConfigPromise(){return this.pdfDocument?this._optionalContentConfigPromise?this._optionalContentConfigPromise:(console.error("optionalContentConfigPromise: Not initialized yet."),this.pdfDocument.getOptionalContentConfig({intent:"display"})):Promise.resolve(null)}set optionalContentConfigPromise(t){if(!(t instanceof Promise))throw new Error(`Invalid optionalContentConfigPromise: ${t}`);this.pdfDocument&&this._optionalContentConfigPromise&&(this._optionalContentConfigPromise=t,this.refresh(!1,{optionalContentConfigPromise:t}),this.eventBus.dispatch("optionalcontentconfigchanged",{source:this,promise:t}))}get scrollMode(){return this._scrollMode}set scrollMode(t){if(this._scrollMode!==t){if(!ur(t))throw new Error(`Invalid scroll mode: ${t}`);this.pagesCount>_t.FORCE_SCROLL_MODE_PAGE||(this._previousScrollMode=this._scrollMode,this.clearSelection(),this._scrollMode=t,this.eventBus.dispatch("scrollmodechanged",{source:this,mode:t}),this._updateScrollMode(this._currentPageNumber))}}_updateScrollMode(t=null){const e=this._scrollMode,n=this.viewer;n.classList.toggle("scrollHorizontal",e===V.HORIZONTAL),n.classList.toggle("scrollWrapped",e===V.WRAPPED),!(!this.pdfDocument||!t)&&(e===V.PAGE?this.#D():this._previousScrollMode===V.PAGE&&this._updateSpreadMode(),this._currentScaleValue&&isNaN(this._currentScaleValue)&&this.#T(this._currentScaleValue,{noScroll:!0}),this._setCurrentPageNumber(t,!0),this.update())}get spreadMode(){return this._spreadMode}set spreadMode(t){if(this._spreadMode!==t){if(!dr(t))throw new Error(`Invalid spread mode: ${t}`);this.clearSelection(),this._spreadMode=t,this.eventBus.dispatch("spreadmodechanged",{source:this,mode:t}),this._updateSpreadMode(this._currentPageNumber)}}_updateSpreadMode(t=null){if(!this.pdfDocument)return;const e=this.viewer,n=this._pages;if(this._scrollMode===V.PAGE)this.#D();else if(e.textContent="",this._spreadMode===et.NONE)for(const r of this._pages)e.append(r.div);else{const r=this._spreadMode-1;let i=null;for(let s=0,o=n.length;s<o;++s)i===null?(i=document.createElement("div"),i.className="spread",e.append(i)):s%2===r&&(i=i.cloneNode(!1),e.append(i)),i.append(n[s].div)}t&&(this._currentScaleValue&&isNaN(this._currentScaleValue)&&this.#T(this._currentScaleValue,{noScroll:!0}),this._setCurrentPageNumber(t,!0),this.update())}#z(t,e=!1){switch(this._scrollMode){case V.WRAPPED:{const{views:n}=this._getVisiblePages(),r=new Map;for(const{id:i,y:s,percent:o,widthPercent:l}of n)o===0||l<100||r.getOrInsertComputed(s,Xn).push(i);for(const i of r.values()){const s=i.indexOf(t);if(s===-1)continue;const o=i.length;if(o===1)break;if(e)for(let l=s-1,u=0;l>=u;l--){const d=i[l],h=i[l+1]-1;if(d<h)return t-h}else for(let l=s+1,u=o;l<u;l++){const d=i[l],h=i[l-1]+1;if(d>h)return h-t}if(e){const l=i[0];if(l<t)return t-l+1}else{const l=i[o-1];if(l>t)return l-t+1}break}break}case V.HORIZONTAL:break;case V.PAGE:case V.VERTICAL:{if(this._spreadMode===et.NONE)break;const n=this._spreadMode-1;if(e&&t%2!==n)break;if(!e&&t%2===n)break;const{views:r}=this._getVisiblePages(),i=e?t-1:t+1;for(const{id:s,percent:o,widthPercent:l}of r)if(s===i){if(o>0&&l===100)return 2;break}break}}return 1}nextPage(){const t=this._currentPageNumber,e=this.pagesCount;if(t>=e)return!1;const n=this.#z(t,!1)||1;return this.currentPageNumber=Math.min(t+n,e),!0}previousPage(){const t=this._currentPageNumber;if(t<=1)return!1;const e=this.#z(t,!0)||1;return this.currentPageNumber=Math.max(t-e,1),!0}updateScale({drawingDelay:t,scaleFactor:e=null,steps:n=null,origin:r,pan:i=null}){if(n===null&&e===null)throw new Error("Invalid updateScale options: either `steps` or `scaleFactor` must be provided.");if(!this.pdfDocument)return;let s=this._currentScale;if(e>0&&e!==1)s=Math.round(s*e*100)/100;else if(n){const o=n>0?1.1:.9090909090909091,l=n>0?Math.ceil:Math.floor;n=Math.abs(n);do s=l((s*o).toFixed(2)*10)/10;while(--n>0)}s=Zn(s,.1,25),this.#T(s,{noScroll:!1,drawingDelay:t,origin:r,pan:i})}increaseScale(t={}){this.updateScale({...t,steps:t.steps??1})}decreaseScale(t={}){this.updateScale({...t,steps:-(t.steps??1)})}#G(t=this.container.clientHeight){t!==this.#M&&(this.#M=t,hr.setProperty("--viewer-container-height",`${t}px`))}#rt(t){for(const e of t)if(e.target===this.container){this.#G(Math.floor(e.borderBoxSize[0].blockSize)),this.#a=null;break}}get containerTopLeft(){return this.#a||=[this.container.offsetTop,this.container.offsetLeft]}#K(){this.#A!==null&&(clearTimeout(this.#A),this.#A=null),this.#v!==null&&(clearTimeout(this.#v),this.#v=null)}#B(){this.#S?.abort(),this.#S=null,this.#P!==null&&(clearTimeout(this.#P),this.#P=null)}#Y(t){switch(t){case at.STAMP:this.#b?.loadModel("altText");break;case at.SIGNATURE:this.#j?.loadSignatures();break}}get annotationEditorMode(){return this.#r?this.#n:at.DISABLE}set annotationEditorMode({mode:t,editId:e=null,isFromKeyboard:n=!1,mustEnterInEditMode:r=!1,editComment:i=!1}){if(!this.#r)throw new Error("The AnnotationEditor is not enabled.");
547if(this.#n===t)return;if(!pn(t))throw new Error(`Invalid AnnotationEditor mode: ${t}`);if(!this.pdfDocument)return;this.#Y(t);const{eventBus:s,pdfDocument:o}=this,l=async()=>{this.#B(),this.#n=t,await this.#r.updateMode(t,e,!0,n,r,i),!(t!==this.#n||o!==this.pdfDocument)&&s.dispatch("annotationeditormodechanged",{source:this,mode:t})};if(t===at.NONE||this.#n===at.NONE){const u=t!==at.NONE;u||this.pdfDocument.annotationStorage.resetModifiedIds(),this.cleanup();for(const h of this._pages)h.toggleEditingMode(u);const d=this.#tt();if(u&&d){this.#B(),this.#S=new AbortController;const h=AbortSignal.any([this.#h.signal,this.#S.signal]);s.on("pagerendered",({pageNumber:c})=>{d.delete(c),d.size===0&&(this.#P=setTimeout(l,0))},{signal:h,...st});return}}l()}refresh(t=!1,e=Object.create(null)){if(this.pdfDocument){for(const n of this._pages)n.update(e);this.#K(),t||this.update()}}}class Hi extends On{_resetView(){super._resetView(),this._scrollMode=V.PAGE,this._spreadMode=et.NONE}set scrollMode(t){}_updateScrollMode(){}set spreadMode(t){}_updateSpreadMode(){}}globalThis.pdfjsViewer={AnnotationLayerBuilder:xn,DownloadManager:xr,EventBus:ge,FindState:wt,GenericL10n:bt,LinkTarget:It,parseQueryString:re,PDFFindController:br,PDFHistory:wi,PDFLinkService:wn,PDFPageView:ie,PDFScriptingManager:Ui,PDFSinglePageViewer:Hi,PDFViewer:On,ProgressBar:cr,RenderingStates:W,ScrollMode:V,SimpleLinkService:Se,SpreadMode:et,StructTreeLayerBuilder:Tn,TextLayerBuilder:Ft,XfaLayerBuilder:An};export{xn as AnnotationLayerBuilder,xr as DownloadManager,ge as EventBus,wt as FindState,bt as GenericL10n,It as LinkTarget,br as PDFFindController,wi as PDFHistory,wn as PDFLinkService,ie as PDFPageView,Ui as PDFScriptingManager,Hi as PDFSinglePageViewer,On as PDFViewer,cr as ProgressBar,W as RenderingStates,V as ScrollMode,Se as SimpleLinkService,et as SpreadMode,Tn as StructTreeLayerBuilder,Ft as TextLayerBuilder,An as XfaLayerBuilder,re as parseQueryString};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.