@chenchaolong/plugin-trade-compliance-workbench 1.0.157 → 1.0.158
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/adapters/pdf-page-renderer.d.ts +6 -0
- package/dist/lib/adapters/pdf-page-renderer.d.ts.map +1 -1
- package/dist/lib/adapters/pdf-page-renderer.js +13 -3
- package/dist/lib/adapters/pdf-page-renderer.js.map +1 -1
- package/dist/lib/import-jobs/import-job.processor.js +1 -1
- package/dist/lib/import-jobs/import-job.processor.js.map +1 -1
- package/dist/lib/remote-components/trade-compliance-workbench/preview-source.mjs +3 -2
- package/dist/lib/remote-components/trade-compliance-workbench/preview.js +21 -21
- package/package.json +24 -23
|
@@ -10,19 +10,19 @@ __p+='`),u}),a+=`';
|
|
|
10
10
|
`,s="obj";a=`var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};
|
|
11
11
|
`+a+`return __p;
|
|
12
12
|
`;var o;try{o=new Function(s,"_",a)}catch(u){throw u.source=a,u}var c=function(u){return o.call(this,u,We)};return c.source="function("+s+`){
|
|
13
|
-
`+a+"}",c}var Cp,NS,PS,MS,av=ce(()=>{pp();Rr();Sp();Cp=/(.)^/,NS={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},PS=/\\|'|\r|\n|\u2028|\u2029/g;MS=/^\s*(\w|\$)+\s*$/});function Xu(r,e,t){e=dn(e);var n=e.length;if(!n)return lt(t)?t.call(r):t;for(var i=0;i<n;i++){var a=r?.[e[i]];a===void 0&&(a=t,i=n),r=lt(a)?a.call(r):a}return r}var sv=ce(()=>{jr();Qa()});function $u(r){var e=++WS+"";return r?r+e:e}var WS,ov=ce(()=>{WS=0});function qu(r){var e=We(r);return e._chain=!0,e}var cv=ce(()=>{Rr()});function Vo(r,e,t,n,i){if(!(n instanceof e))return r.apply(t,i);var a=Po(r.prototype),s=r.apply(a,i);return sr(s)?s:a}var Fp=ce(()=>{gp();xi()});var kp,Zn,zo=ce(()=>{Ir();Fp();Rr();kp=st(function(r,e){var t=kp.placeholder,n=function(){for(var i=0,a=e.length,s=Array(a),o=0;o<a;o++)s[o]=e[o]===t?arguments[i++]:e[o];for(;i<arguments.length;)s.push(arguments[i++]);return Vo(r,n,this,this,s)};return n});kp.placeholder=We;Zn=kp});var jo,Up=ce(()=>{Ir();jr();Fp();jo=st(function(r,e,t){if(!lt(r))throw new TypeError("Bind must be called on a function");var n=st(function(i){return Vo(r,n,e,this,t.concat(i))});return n})});var mt,Br=ce(()=>{Q0();Gr();mt=Uo(ut)});function Xr(r,e,t){!e&&e!==0&&(e=1/0);for(var n=[],i=0,a=0,s=ut(r)||0,o=[];;){if(a>=s){if(!o.length)break;var c=o.pop();a=c.i,r=c.v,s=ut(r);continue}var u=r[a++];o.length>=e?n[i++]=u:mt(u)&&(wr(u)||Zi(u))?(o.push({i:a,v:r}),a=0,r=u,s=ut(r)):t||(n[i++]=u)}return n}var aa=ce(()=>{Gr();Br();yi();Du()});var Ip,lv=ce(()=>{Ir();aa();Up();Ip=st(function(r,e){e=Xr(e,!1,!1);var t=e.length;if(t<1)throw new Error("bindAll must be passed function names");for(;t--;){var n=e[t];r[n]=jo(r[n],r)}return r})});function Yu(r,e){var t=function(n){var i=t.cache,a=""+(e?e.apply(this,arguments):n);return Qt(i,a)||(i[a]=r.apply(this,arguments)),i[a]};return t.cache={},t}var uv=ce(()=>{Yn()});var Go,Rp=ce(()=>{Ir();Go=st(function(r,e,t){return setTimeout(function(){return r.apply(null,t)},e)})});var Op,hv=ce(()=>{zo();Rp();Rr();Op=Zn(Go,We,1)});function Ku(r,e,t){var n,i,a,s,o=0;t||(t={});var c=function(){o=t.leading===!1?0:Kn(),n=null,s=r.apply(i,a),n||(i=a=null)},u=function(){var h=Kn();!o&&t.leading===!1&&(o=h);var f=e-(h-o);return i=this,a=arguments,f<=0||f>e?(n&&(clearTimeout(n),n=null),o=h,s=r.apply(i,a),n||(i=a=null)):!n&&t.trailing!==!1&&(n=setTimeout(c,f)),s};return u.cancel=function(){clearTimeout(n),o=0,n=i=a=null},u}var fv=ce(()=>{zu()});function Zu(r,e,t){var n,i,a,s,o,c=function(){var h=Kn()-i;e>h?n=setTimeout(c,e-h):(n=null,t||(s=r.apply(o,a)),n||(a=o=null))},u=st(function(h){return o=this,a=h,i=Kn(),n||(n=setTimeout(c,e),t&&(s=r.apply(o,a))),s});return u.cancel=function(){clearTimeout(n),n=a=o=null},u}var dv=ce(()=>{Ir();zu()});function Ju(r,e){return Zn(e,r)}var pv=ce(()=>{zo()});function Di(r){return function(){return!r.apply(this,arguments)}}var Qu=ce(()=>{});function eh(){var r=arguments,e=r.length-1;return function(){for(var t=e,n=r[e].apply(this,arguments);t--;)n=r[t].call(this,n);return n}}var gv=ce(()=>{});function th(r,e){return function(){if(--r<1)return e.apply(this,arguments)}}var mv=ce(()=>{});function ns(r,e){var t;return function(){return--r>0&&(t=e.apply(this,arguments)),r<=1&&(e=null),t}}var Bp=ce(()=>{});var Np,xv=ce(()=>{zo();Bp();Np=Zn(ns,2)});function is(r,e,t){e=ot(e,t);for(var n=$e(r),i,a=0,s=n.length;a<s;a++)if(i=n[a],e(r[i],i,r))return i}var Pp=ce(()=>{_r();Vt()});function Xo(r){return function(e,t,n){t=ot(t,n);for(var i=ut(e),a=r>0?0:i-1;a>=0&&a<i;a+=r)if(t(e[a],a,e))return a;return-1}}var Lp=ce(()=>{_r();Gr()});var sa,rh=ce(()=>{Lp();sa=Xo(1)});var $o,Mp=ce(()=>{Lp();$o=Xo(-1)});function as(r,e,t,n){t=ot(t,n,1);for(var i=t(e),a=0,s=ut(r);a<s;){var o=Math.floor((a+s)/2);t(r[o])<i?a=o+1:s=o}return a}var Wp=ce(()=>{_r();Gr()});function qo(r,e,t){return function(n,i,a){var s=0,o=ut(n);if(typeof a=="number")r>0?s=a>=0?a:Math.max(a+o,s):o=a>=0?Math.min(a+1,o):a+o+1;else if(t&&a&&o)return a=t(n,i),n[a]===i?a:-1;if(i!==i)return a=e(Fn.call(n,s,o),$a),a>=0?a+s:-1;for(a=r>0?s:o-1;a>=0&&a<o;a+=r)if(n[a]===i)return a;return-1}}var Hp=ce(()=>{Gr();bt();Z0()});var Yo,Vp=ce(()=>{Wp();rh();Hp();Yo=qo(1,sa,as)});var zp,vv=ce(()=>{Mp();Hp();zp=qo(-1,$o)});function oa(r,e,t){var n=mt(r)?sa:is,i=n(r,e,t);if(i!==void 0&&i!==-1)return r[i]}var jp=ce(()=>{Br();rh();Pp()});function nh(r,e){return oa(r,pn(e))}var yv=ce(()=>{jp();Mo()});function zt(r,e,t){e=gn(e,t);var n,i;if(mt(r))for(n=0,i=r.length;n<i;n++)e(r[n],n,r);else{var a=$e(r);for(n=0,i=a.length;n<i;n++)e(r[a[n]],a[n],r)}return r}var Ti=ce(()=>{ts();Br();Vt()});function Dr(r,e,t){e=ot(e,t);for(var n=!mt(r)&&$e(r),i=(n||r).length,a=Array(i),s=0;s<i;s++){var o=n?n[s]:s;a[s]=e(r[o],o,r)}return a}var ca=ce(()=>{_r();Br();Vt()});function Ko(r){var e=function(t,n,i,a){var s=!mt(t)&&$e(t),o=(s||t).length,c=r>0?0:o-1;for(a||(i=t[s?s[c]:c],c+=r);c>=0&&c<o;c+=r){var u=s?s[c]:c;i=n(i,t[u],u,t)}return i};return function(t,n,i,a){var s=arguments.length>=3;return e(t,gn(n,a,4),i,s)}}var Gp=ce(()=>{Br();Vt();ts()});var Zo,bv=ce(()=>{Gp();Zo=Ko(1)});var ih,wv=ce(()=>{Gp();ih=Ko(-1)});function $r(r,e,t){var n=[];return e=ot(e,t),zt(r,function(i,a,s){e(i,a,s)&&n.push(i)}),n}var ss=ce(()=>{_r();Ti()});function ah(r,e,t){return $r(r,Di(ot(e)),t)}var _v=ce(()=>{ss();Qu();_r()});function Jo(r,e,t){e=ot(e,t);for(var n=!mt(r)&&$e(r),i=(n||r).length,a=0;a<i;a++){var s=n?n[a]:a;if(!e(r[s],s,r))return!1}return!0}var Dv=ce(()=>{_r();Br();Vt()});function Qo(r,e,t){e=ot(e,t);for(var n=!mt(r)&&$e(r),i=(n||r).length,a=0;a<i;a++){var s=n?n[a]:a;if(e(r[s],s,r))return!0}return!1}var Tv=ce(()=>{_r();Br();Vt()});function or(r,e,t,n){return mt(r)||(r=Or(r)),(typeof t!="number"||n)&&(t=0),Yo(r,e,t)>=0}var os=ce(()=>{Br();Qi();Vp()});var Xp,Ev=ce(()=>{Ir();jr();ca();Nu();Qa();Xp=st(function(r,e,t){var n,i;return lt(e)?i=e:(e=dn(e),n=e.slice(0,-1),e=e[e.length-1]),Dr(r,function(a){var s=i;if(!s){if(n&&n.length&&(a=ra(a,n)),a==null)return;s=a[e]}return s==null?s:s.apply(a,t)})})});function Ei(r,e){return Dr(r,_i(e))}var sh=ce(()=>{ca();Mu()});function oh(r,e){return $r(r,pn(e))}var Av=ce(()=>{ss();Mo()});function cs(r,e,t){var n=-1/0,i=-1/0,a,s;if(e==null||typeof e=="number"&&typeof r[0]!="object"&&r!=null){r=mt(r)?r:Or(r);for(var o=0,c=r.length;o<c;o++)a=r[o],a!=null&&a>n&&(n=a)}else e=ot(e,t),zt(r,function(u,h,f){s=e(u,h,f),(s>i||s===-1/0&&n===-1/0)&&(n=u,i=s)});return n}var $p=ce(()=>{Br();Qi();_r();Ti()});function ch(r,e,t){var n=1/0,i=1/0,a,s;if(e==null||typeof e=="number"&&typeof r[0]!="object"&&r!=null){r=mt(r)?r:Or(r);for(var o=0,c=r.length;o<c;o++)a=r[o],a!=null&&a<n&&(n=a)}else e=ot(e,t),zt(r,function(u,h,f){s=e(u,h,f),(s<i||s===1/0&&n===1/0)&&(n=u,i=s)});return n}var Sv=ce(()=>{Br();Qi();_r();Ti()});function ls(r){return r?wr(r)?Fn.call(r):Ki(r)?r.match(HS):mt(r)?Dr(r,wi):Or(r):[]}var HS,qp=ce(()=>{yi();bt();bu();Br();ca();Lu();Qi();HS=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g});function us(r,e,t){if(e==null||t)return mt(r)||(r=Or(r)),r[ia(r.length-1)];var n=ls(r),i=ut(n);e=Math.max(Math.min(e,i),0);for(var a=i-1,s=0;s<e;s++){var o=ia(s,a),c=n[s];n[s]=n[o],n[o]=c}return n.slice(0,e)}var Yp=ce(()=>{Br();Qi();Gr();wp();qp()});function lh(r){return us(r,1/0)}var Cv=ce(()=>{Yp()});function uh(r,e,t){var n=0;return e=ot(e,t),Ei(Dr(r,function(i,a,s){return{value:i,index:n++,criteria:e(i,a,s)}}).sort(function(i,a){var s=i.criteria,o=a.criteria;if(s!==o){if(s>o||s===void 0)return 1;if(s<o||o===void 0)return-1}return i.index-a.index}),"value")}var Fv=ce(()=>{_r();sh();ca()});function Jn(r,e){return function(t,n,i){var a=e?[[],[]]:{};return n=ot(n,i),zt(t,function(s,o){var c=n(s,o,t);r(a,s,c)}),a}}var ec=ce(()=>{_r();Ti()});var Kp,kv=ce(()=>{ec();Yn();Kp=Jn(function(r,e,t){Qt(r,t)?r[t].push(e):r[t]=[e]})});var Zp,Uv=ce(()=>{ec();Zp=Jn(function(r,e,t){r[t]=e})});var Jp,Iv=ce(()=>{ec();Yn();Jp=Jn(function(r,e,t){Qt(r,t)?r[t]++:r[t]=1})});var Qp,Rv=ce(()=>{ec();Qp=Jn(function(r,e,t){r[t?0:1].push(e)},!0)});function hh(r){return r==null?0:mt(r)?r.length:$e(r).length}var Ov=ce(()=>{Br();Vt()});function eg(r,e,t){return e in t}var Bv=ce(()=>{});var tc,tg=ce(()=>{Ir();jr();ts();Ka();Bv();aa();tc=st(function(r,e){var t={},n=e[0];if(r==null)return t;lt(n)?(e.length>1&&(n=gn(n,e[1])),e=tn(r)):(n=eg,e=Xr(e,!1,!1),r=Object(r));for(var i=0,a=e.length;i<a;i++){var s=e[i],o=r[s];n(o,s,r)&&(t[s]=o)}return t})});var rg,Nv=ce(()=>{Ir();jr();Qu();ca();aa();os();tg();rg=st(function(r,e){var t=e[0],n;return lt(t)?(t=Di(t),e.length>1&&(n=e[1])):(e=Dr(Xr(e,!1,!1),String),t=function(i,a){return!or(e,a)}),tc(r,t,n)})});function hs(r,e,t){return Fn.call(r,0,Math.max(0,r.length-(e==null||t?1:e)))}var ng=ce(()=>{bt()});function fs(r,e,t){return r==null||r.length<1?e==null||t?void 0:[]:e==null||t?r[0]:hs(r,r.length-e)}var Pv=ce(()=>{ng()});function Ai(r,e,t){return Fn.call(r,e==null||t?1:e)}var ig=ce(()=>{bt()});function fh(r,e,t){return r==null||r.length<1?e==null||t?void 0:[]:e==null||t?r[r.length-1]:Ai(r,Math.max(0,r.length-e))}var Lv=ce(()=>{ig()});function dh(r){return $r(r,Boolean)}var Mv=ce(()=>{ss()});function ph(r,e){return Xr(r,e,!1)}var Wv=ce(()=>{aa()});var rc,ag=ce(()=>{Ir();aa();ss();os();rc=st(function(r,e){return e=Xr(e,!0,!0),$r(r,function(t){return!or(e,t)})})});var sg,Hv=ce(()=>{Ir();ag();sg=st(function(r,e){return rc(r,e)})});function la(r,e,t,n){ja(e)||(n=t,t=e,e=!1),t!=null&&(t=ot(t,n));for(var i=[],a=[],s=0,o=ut(r);s<o;s++){var c=r[s],u=t?t(c,s,r):c;e&&!t?((!s||a!==u)&&i.push(c),a=u):t?or(a,u)||(a.push(u),i.push(c)):or(i,c)||i.push(c)}return i}var og=ce(()=>{V0();_r();Gr();os()});var cg,Vv=ce(()=>{Ir();og();aa();cg=st(function(r){return la(Xr(r,!0,!0))})});function gh(r){for(var e=[],t=arguments.length,n=0,i=ut(r);n<i;n++){var a=r[n];if(!or(e,a)){var s;for(s=1;s<t&&or(arguments[s],a);s++);s===t&&e.push(a)}}return e}var zv=ce(()=>{Gr();os()});function ua(r){for(var e=r&&cs(r,ut).length||0,t=Array(e),n=0;n<e;n++)t[n]=Ei(r,n);return t}var lg=ce(()=>{$p();Gr();sh()});var ug,jv=ce(()=>{Ir();lg();ug=st(ua)});function mh(r,e){for(var t={},n=0,i=ut(r);n<i;n++)e?t[r[n]]=e[n]:t[r[n][0]]=r[n][1];return t}var Gv=ce(()=>{Gr()});function xh(r,e,t){e==null&&(e=r||0,r=0),t||(t=e<r?-1:1);for(var n=Math.max(Math.ceil((e-r)/t),0),i=Array(n),a=0;a<n;a++,r+=t)i[a]=r;return i}var Xv=ce(()=>{});function vh(r,e){if(e==null||e<1)return[];for(var t=[],n=0,i=r.length;n<i;)t.push(Fn.call(r,n,n+=e));return t}var $v=ce(()=>{bt()});function ds(r,e){return r._chain?We(e).chain():e}var hg=ce(()=>{Rr()});function ps(r){return zt(ea(r),function(e){var t=We[e]=r[e];We.prototype[e]=function(){var n=[this._wrapped];return vx.apply(n,arguments),ds(this,t.apply(We,n))}}),We}var qv=ce(()=>{Rr();Ti();fp();bt();hg()});var Yv,Kv=ce(()=>{Rr();Ti();bt();hg();zt(["pop","push","reverse","shift","sort","splice","unshift"],function(r){var e=So[r];We.prototype[r]=function(){var t=this._wrapped;return t!=null&&(e.apply(t,arguments),(r==="shift"||r==="splice")&&t.length===0&&delete t[0]),ds(this,t)}});zt(["concat","join","slice"],function(r){var e=So[r];We.prototype[r]=function(){var t=this._wrapped;return t!=null&&(t=e.apply(t,arguments)),ds(this,t)}});Yv=We});var fg={};N1(fg,{VERSION:()=>Ao,after:()=>th,all:()=>Jo,allKeys:()=>tn,any:()=>Qo,assign:()=>bi,before:()=>ns,bind:()=>jo,bindAll:()=>Ip,chain:()=>qu,chunk:()=>vh,clone:()=>Ou,collect:()=>Dr,compact:()=>dh,compose:()=>eh,constant:()=>qa,contains:()=>or,countBy:()=>Jp,create:()=>Ru,debounce:()=>Zu,default:()=>Yv,defaults:()=>No,defer:()=>Op,delay:()=>Go,detect:()=>oa,difference:()=>rc,drop:()=>Ai,each:()=>zt,escape:()=>Tp,every:()=>Jo,extend:()=>Bo,extendOwn:()=>bi,filter:()=>$r,find:()=>oa,findIndex:()=>sa,findKey:()=>is,findLastIndex:()=>$o,findWhere:()=>nh,first:()=>fs,flatten:()=>ph,foldl:()=>Zo,foldr:()=>ih,forEach:()=>zt,functions:()=>ea,get:()=>es,groupBy:()=>Kp,has:()=>Pu,head:()=>fs,identity:()=>wi,include:()=>or,includes:()=>or,indexBy:()=>Zp,indexOf:()=>Yo,initial:()=>hs,inject:()=>Zo,intersection:()=>gh,invert:()=>Ja,invoke:()=>Xp,isArguments:()=>Zi,isArray:()=>wr,isArrayBuffer:()=>ko,isBoolean:()=>ja,isDataView:()=>vi,isDate:()=>j0,isElement:()=>yu,isEmpty:()=>Au,isEqual:()=>Cu,isError:()=>X0,isFinite:()=>Tu,isFunction:()=>lt,isMap:()=>op,isMatch:()=>Ya,isNaN:()=>$a,isNull:()=>vu,isNumber:()=>Co,isObject:()=>sr,isRegExp:()=>G0,isSet:()=>lp,isString:()=>Ki,isSymbol:()=>Fo,isTypedArray:()=>Ro,isUndefined:()=>za,isWeakMap:()=>cp,isWeakSet:()=>up,iteratee:()=>na,keys:()=>$e,last:()=>fh,lastIndexOf:()=>zp,map:()=>Dr,mapObject:()=>Wu,matcher:()=>pn,matches:()=>pn,max:()=>cs,memoize:()=>Yu,methods:()=>ea,min:()=>ch,mixin:()=>ps,negate:()=>Di,noop:()=>rs,now:()=>Kn,object:()=>mh,omit:()=>rg,once:()=>Np,pairs:()=>ku,partial:()=>Zn,partition:()=>Qp,pick:()=>tc,pluck:()=>Ei,property:()=>_i,propertyOf:()=>Hu,random:()=>ia,range:()=>xh,reduce:()=>Zo,reduceRight:()=>ih,reject:()=>ah,rest:()=>Ai,restArguments:()=>st,result:()=>Xu,sample:()=>us,select:()=>$r,shuffle:()=>lh,size:()=>hh,some:()=>Qo,sortBy:()=>uh,sortedIndex:()=>as,tail:()=>Ai,take:()=>fs,tap:()=>Bu,template:()=>Gu,templateSettings:()=>Ap,throttle:()=>Ku,times:()=>Vu,toArray:()=>ls,toPath:()=>Lo,transpose:()=>ua,unescape:()=>Ep,union:()=>cg,uniq:()=>la,unique:()=>la,uniqueId:()=>$u,unzip:()=>ua,values:()=>Or,where:()=>oh,without:()=>sg,wrap:()=>Ju,zip:()=>ug});var yh=ce(()=>{bt();Ir();xi();Ex();H0();V0();Ax();bu();z0();Sx();Cx();Fx();$0();q0();_u();yi();jr();Du();Ix();Z0();tp();Bx();np();Lx();zx();jx();Gx();Xx();Vt();Ka();Qi();$x();hp();fp();dp();Iu();pp();qx();Yx();Kx();xp();Zx();Jx();Lu();J0();bp();mp();Mu();Qx();Mo();ev();wp();zu();tv();iv();Sp();av();sv();ov();cv();yp();zo();Up();lv();uv();Rp();hv();fv();dv();pv();Qu();gv();mv();Bp();xv();Pp();rh();Mp();Wp();Vp();vv();jp();yv();Ti();ca();bv();wv();ss();_v();Dv();Tv();os();Ev();sh();Av();$p();Sv();Cv();Yp();Fv();kv();Uv();Iv();Rv();qp();Ov();tg();Nv();Pv();ng();Lv();ig();Mv();Wv();Hv();og();Vv();zv();ag();lg();jv();Gv();Xv();$v();qv();Kv()});var dg,Zv,Jv=ce(()=>{yh();yh();dg=ps(fg);dg._=dg;Zv=dg});var Et={};N1(Et,{VERSION:()=>Ao,after:()=>th,all:()=>Jo,allKeys:()=>tn,any:()=>Qo,assign:()=>bi,before:()=>ns,bind:()=>jo,bindAll:()=>Ip,chain:()=>qu,chunk:()=>vh,clone:()=>Ou,collect:()=>Dr,compact:()=>dh,compose:()=>eh,constant:()=>qa,contains:()=>or,countBy:()=>Jp,create:()=>Ru,debounce:()=>Zu,default:()=>Zv,defaults:()=>No,defer:()=>Op,delay:()=>Go,detect:()=>oa,difference:()=>rc,drop:()=>Ai,each:()=>zt,escape:()=>Tp,every:()=>Jo,extend:()=>Bo,extendOwn:()=>bi,filter:()=>$r,find:()=>oa,findIndex:()=>sa,findKey:()=>is,findLastIndex:()=>$o,findWhere:()=>nh,first:()=>fs,flatten:()=>ph,foldl:()=>Zo,foldr:()=>ih,forEach:()=>zt,functions:()=>ea,get:()=>es,groupBy:()=>Kp,has:()=>Pu,head:()=>fs,identity:()=>wi,include:()=>or,includes:()=>or,indexBy:()=>Zp,indexOf:()=>Yo,initial:()=>hs,inject:()=>Zo,intersection:()=>gh,invert:()=>Ja,invoke:()=>Xp,isArguments:()=>Zi,isArray:()=>wr,isArrayBuffer:()=>ko,isBoolean:()=>ja,isDataView:()=>vi,isDate:()=>j0,isElement:()=>yu,isEmpty:()=>Au,isEqual:()=>Cu,isError:()=>X0,isFinite:()=>Tu,isFunction:()=>lt,isMap:()=>op,isMatch:()=>Ya,isNaN:()=>$a,isNull:()=>vu,isNumber:()=>Co,isObject:()=>sr,isRegExp:()=>G0,isSet:()=>lp,isString:()=>Ki,isSymbol:()=>Fo,isTypedArray:()=>Ro,isUndefined:()=>za,isWeakMap:()=>cp,isWeakSet:()=>up,iteratee:()=>na,keys:()=>$e,last:()=>fh,lastIndexOf:()=>zp,map:()=>Dr,mapObject:()=>Wu,matcher:()=>pn,matches:()=>pn,max:()=>cs,memoize:()=>Yu,methods:()=>ea,min:()=>ch,mixin:()=>ps,negate:()=>Di,noop:()=>rs,now:()=>Kn,object:()=>mh,omit:()=>rg,once:()=>Np,pairs:()=>ku,partial:()=>Zn,partition:()=>Qp,pick:()=>tc,pluck:()=>Ei,property:()=>_i,propertyOf:()=>Hu,random:()=>ia,range:()=>xh,reduce:()=>Zo,reduceRight:()=>ih,reject:()=>ah,rest:()=>Ai,restArguments:()=>st,result:()=>Xu,sample:()=>us,select:()=>$r,shuffle:()=>lh,size:()=>hh,some:()=>Qo,sortBy:()=>uh,sortedIndex:()=>as,tail:()=>Ai,take:()=>fs,tap:()=>Bu,template:()=>Gu,templateSettings:()=>Ap,throttle:()=>Ku,times:()=>Vu,toArray:()=>ls,toPath:()=>Lo,transpose:()=>ua,unescape:()=>Ep,union:()=>cg,uniq:()=>la,unique:()=>la,uniqueId:()=>$u,unzip:()=>ua,values:()=>Or,where:()=>oh,without:()=>sg,wrap:()=>Ju,zip:()=>ug});var At=ce(()=>{Jv();yh()});var ha=be((vX,mg)=>{var pg=(function(){"use strict";return this===void 0})();pg?mg.exports={freeze:Object.freeze,defineProperty:Object.defineProperty,getDescriptor:Object.getOwnPropertyDescriptor,keys:Object.keys,names:Object.getOwnPropertyNames,getPrototypeOf:Object.getPrototypeOf,isArray:Array.isArray,isES5:pg,propertyIsWritable:function(r,e){var t=Object.getOwnPropertyDescriptor(r,e);return!!(!t||t.writable||t.set)}}:(Qv={}.hasOwnProperty,e2={}.toString,t2={}.constructor.prototype,gg=function(r){var e=[];for(var t in r)Qv.call(r,t)&&e.push(t);return e},r2=function(r,e){return{value:r[e]}},n2=function(r,e,t){return r[e]=t.value,r},i2=function(r){return r},a2=function(r){try{return Object(r).constructor.prototype}catch{return t2}},s2=function(r){try{return e2.call(r)==="[object Array]"}catch{return!1}},mg.exports={isArray:s2,keys:gg,names:gg,defineProperty:n2,getDescriptor:r2,freeze:i2,getPrototypeOf:a2,isES5:pg,propertyIsWritable:function(){return!0}});var Qv,e2,t2,gg,r2,n2,i2,a2,s2});var pt=be((exports,module)=>{"use strict";var es5=ha(),canEvaluate=typeof navigator>"u",errorObj={e:{}},tryCatchTarget,globalObject=typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:exports!==void 0?exports:null;function tryCatcher(){try{var r=tryCatchTarget;return tryCatchTarget=null,r.apply(this,arguments)}catch(e){return errorObj.e=e,errorObj}}function tryCatch(r){return tryCatchTarget=r,tryCatcher}var inherits=function(r,e){var t={}.hasOwnProperty;function n(){this.constructor=r,this.constructor$=e;for(var i in e.prototype)t.call(e.prototype,i)&&i.charAt(i.length-1)!=="$"&&(this[i+"$"]=e.prototype[i])}return n.prototype=e.prototype,r.prototype=new n,r.prototype};function isPrimitive(r){return r==null||r===!0||r===!1||typeof r=="string"||typeof r=="number"}function isObject(r){return typeof r=="function"||typeof r=="object"&&r!==null}function maybeWrapAsError(r){return isPrimitive(r)?new Error(safeToString(r)):r}function withAppended(r,e){var t=r.length,n=new Array(t+1),i;for(i=0;i<t;++i)n[i]=r[i];return n[i]=e,n}function getDataPropertyOrDefault(r,e,t){if(es5.isES5){var n=Object.getOwnPropertyDescriptor(r,e);if(n!=null)return n.get==null&&n.set==null?n.value:t}else return{}.hasOwnProperty.call(r,e)?r[e]:void 0}function notEnumerableProp(r,e,t){if(isPrimitive(r))return r;var n={value:t,configurable:!0,enumerable:!1,writable:!0};return es5.defineProperty(r,e,n),r}function thrower(r){throw r}var inheritedDataKeys=(function(){var r=[Array.prototype,Object.prototype,Function.prototype],e=function(i){for(var a=0;a<r.length;++a)if(r[a]===i)return!0;return!1};if(es5.isES5){var t=Object.getOwnPropertyNames;return function(i){for(var a=[],s=Object.create(null);i!=null&&!e(i);){var o;try{o=t(i)}catch{return a}for(var c=0;c<o.length;++c){var u=o[c];if(!s[u]){s[u]=!0;var h=Object.getOwnPropertyDescriptor(i,u);h!=null&&h.get==null&&h.set==null&&a.push(u)}}i=es5.getPrototypeOf(i)}return a}}else{var n={}.hasOwnProperty;return function(i){if(e(i))return[];var a=[];e:for(var s in i)if(n.call(i,s))a.push(s);else{for(var o=0;o<r.length;++o)if(n.call(r[o],s))continue e;a.push(s)}return a}}})(),thisAssignmentPattern=/this\s*\.\s*\S+\s*=/;function isClass(r){try{if(typeof r=="function"){var e=es5.names(r.prototype),t=es5.isES5&&e.length>1,n=e.length>0&&!(e.length===1&&e[0]==="constructor"),i=thisAssignmentPattern.test(r+"")&&es5.names(r).length>0;if(t||n||i)return!0}return!1}catch{return!1}}function toFastProperties(obj){function FakeConstructor(){}FakeConstructor.prototype=obj;for(var l=8;l--;)new FakeConstructor;return obj}var rident=/^[a-z$_][a-z$_0-9]*$/i;function isIdentifier(r){return rident.test(r)}function filledRange(r,e,t){for(var n=new Array(r),i=0;i<r;++i)n[i]=e+i+t;return n}function safeToString(r){try{return r+""}catch{return"[no string representation]"}}function isError(r){return r!==null&&typeof r=="object"&&typeof r.message=="string"&&typeof r.name=="string"}function markAsOriginatingFromRejection(r){try{notEnumerableProp(r,"isOperational",!0)}catch{}}function originatesFromRejection(r){return r==null?!1:r instanceof Error.__BluebirdErrorTypes__.OperationalError||r.isOperational===!0}function canAttachTrace(r){return isError(r)&&es5.propertyIsWritable(r,"stack")}var ensureErrorObject=(function(){return"stack"in new Error?function(r){return canAttachTrace(r)?r:new Error(safeToString(r))}:function(r){if(canAttachTrace(r))return r;try{throw new Error(safeToString(r))}catch(e){return e}}})();function classString(r){return{}.toString.call(r)}function copyDescriptors(r,e,t){for(var n=es5.names(r),i=0;i<n.length;++i){var a=n[i];if(t(a))try{es5.defineProperty(e,a,es5.getDescriptor(r,a))}catch{}}}var asArray=function(r){return es5.isArray(r)?r:null};typeof Symbol<"u"&&Symbol.iterator&&(ArrayFrom=typeof Array.from=="function"?function(r){return Array.from(r)}:function(r){for(var e=[],t=r[Symbol.iterator](),n;!(n=t.next()).done;)e.push(n.value);return e},asArray=function(r){return es5.isArray(r)?r:r!=null&&typeof r[Symbol.iterator]=="function"?ArrayFrom(r):null});var ArrayFrom,isNode=typeof process<"u"&&classString(process).toLowerCase()==="[object process]",hasEnvVariables=typeof process<"u"&&typeof process.env<"u";function env(r){return hasEnvVariables?process.env[r]:void 0}function getNativePromise(){if(typeof Promise=="function")try{var r=new Promise(function(){});if({}.toString.call(r)==="[object Promise]")return Promise}catch{}}function domainBind(r,e){return r.bind(e)}var ret={isClass,isIdentifier,inheritedDataKeys,getDataPropertyOrDefault,thrower,isArray:es5.isArray,asArray,notEnumerableProp,isPrimitive,isObject,isError,canEvaluate,errorObj,tryCatch,inherits,withAppended,maybeWrapAsError,toFastProperties,filledRange,toString:safeToString,canAttachTrace,ensureErrorObject,originatesFromRejection,markAsOriginatingFromRejection,classString,copyDescriptors,hasDevTools:typeof chrome<"u"&&chrome&&typeof chrome.loadTimes=="function",isNode,hasEnvVariables,env,global:globalObject,getNativePromise,domainBind};ret.isRecentNode=ret.isNode&&(function(){var r=process.versions.node.split(".").map(Number);return r[0]===0&&r[1]>10||r[0]>0})();ret.isNode&&ret.toFastProperties(process);try{throw new Error}catch(r){ret.lastLineError=r}module.exports=ret});var h2=be((yX,u2)=>{"use strict";var vg=pt(),fa,VS=function(){throw new Error(`No async scheduler available
|
|
13
|
+
`+a+"}",c}var Cp,NS,PS,MS,av=ce(()=>{pp();Rr();Sp();Cp=/(.)^/,NS={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},PS=/\\|'|\r|\n|\u2028|\u2029/g;MS=/^\s*(\w|\$)+\s*$/});function Xu(r,e,t){e=dn(e);var n=e.length;if(!n)return lt(t)?t.call(r):t;for(var i=0;i<n;i++){var a=r?.[e[i]];a===void 0&&(a=t,i=n),r=lt(a)?a.call(r):a}return r}var sv=ce(()=>{jr();Qa()});function $u(r){var e=++WS+"";return r?r+e:e}var WS,ov=ce(()=>{WS=0});function qu(r){var e=We(r);return e._chain=!0,e}var cv=ce(()=>{Rr()});function Vo(r,e,t,n,i){if(!(n instanceof e))return r.apply(t,i);var a=Po(r.prototype),s=r.apply(a,i);return sr(s)?s:a}var Fp=ce(()=>{gp();xi()});var kp,Zn,zo=ce(()=>{Ir();Fp();Rr();kp=st(function(r,e){var t=kp.placeholder,n=function(){for(var i=0,a=e.length,s=Array(a),o=0;o<a;o++)s[o]=e[o]===t?arguments[i++]:e[o];for(;i<arguments.length;)s.push(arguments[i++]);return Vo(r,n,this,this,s)};return n});kp.placeholder=We;Zn=kp});var jo,Up=ce(()=>{Ir();jr();Fp();jo=st(function(r,e,t){if(!lt(r))throw new TypeError("Bind must be called on a function");var n=st(function(i){return Vo(r,n,e,this,t.concat(i))});return n})});var mt,Br=ce(()=>{Q0();Gr();mt=Uo(ut)});function Xr(r,e,t){!e&&e!==0&&(e=1/0);for(var n=[],i=0,a=0,s=ut(r)||0,o=[];;){if(a>=s){if(!o.length)break;var c=o.pop();a=c.i,r=c.v,s=ut(r);continue}var u=r[a++];o.length>=e?n[i++]=u:mt(u)&&(wr(u)||Zi(u))?(o.push({i:a,v:r}),a=0,r=u,s=ut(r)):t||(n[i++]=u)}return n}var aa=ce(()=>{Gr();Br();yi();Du()});var Ip,lv=ce(()=>{Ir();aa();Up();Ip=st(function(r,e){e=Xr(e,!1,!1);var t=e.length;if(t<1)throw new Error("bindAll must be passed function names");for(;t--;){var n=e[t];r[n]=jo(r[n],r)}return r})});function Yu(r,e){var t=function(n){var i=t.cache,a=""+(e?e.apply(this,arguments):n);return Qt(i,a)||(i[a]=r.apply(this,arguments)),i[a]};return t.cache={},t}var uv=ce(()=>{Yn()});var Go,Rp=ce(()=>{Ir();Go=st(function(r,e,t){return setTimeout(function(){return r.apply(null,t)},e)})});var Op,hv=ce(()=>{zo();Rp();Rr();Op=Zn(Go,We,1)});function Ku(r,e,t){var n,i,a,s,o=0;t||(t={});var c=function(){o=t.leading===!1?0:Kn(),n=null,s=r.apply(i,a),n||(i=a=null)},u=function(){var h=Kn();!o&&t.leading===!1&&(o=h);var f=e-(h-o);return i=this,a=arguments,f<=0||f>e?(n&&(clearTimeout(n),n=null),o=h,s=r.apply(i,a),n||(i=a=null)):!n&&t.trailing!==!1&&(n=setTimeout(c,f)),s};return u.cancel=function(){clearTimeout(n),o=0,n=i=a=null},u}var fv=ce(()=>{zu()});function Zu(r,e,t){var n,i,a,s,o,c=function(){var h=Kn()-i;e>h?n=setTimeout(c,e-h):(n=null,t||(s=r.apply(o,a)),n||(a=o=null))},u=st(function(h){return o=this,a=h,i=Kn(),n||(n=setTimeout(c,e),t&&(s=r.apply(o,a))),s});return u.cancel=function(){clearTimeout(n),n=a=o=null},u}var dv=ce(()=>{Ir();zu()});function Ju(r,e){return Zn(e,r)}var pv=ce(()=>{zo()});function Di(r){return function(){return!r.apply(this,arguments)}}var Qu=ce(()=>{});function eh(){var r=arguments,e=r.length-1;return function(){for(var t=e,n=r[e].apply(this,arguments);t--;)n=r[t].call(this,n);return n}}var gv=ce(()=>{});function th(r,e){return function(){if(--r<1)return e.apply(this,arguments)}}var mv=ce(()=>{});function ns(r,e){var t;return function(){return--r>0&&(t=e.apply(this,arguments)),r<=1&&(e=null),t}}var Bp=ce(()=>{});var Np,xv=ce(()=>{zo();Bp();Np=Zn(ns,2)});function is(r,e,t){e=ot(e,t);for(var n=$e(r),i,a=0,s=n.length;a<s;a++)if(i=n[a],e(r[i],i,r))return i}var Pp=ce(()=>{_r();Vt()});function Xo(r){return function(e,t,n){t=ot(t,n);for(var i=ut(e),a=r>0?0:i-1;a>=0&&a<i;a+=r)if(t(e[a],a,e))return a;return-1}}var Lp=ce(()=>{_r();Gr()});var sa,rh=ce(()=>{Lp();sa=Xo(1)});var $o,Mp=ce(()=>{Lp();$o=Xo(-1)});function as(r,e,t,n){t=ot(t,n,1);for(var i=t(e),a=0,s=ut(r);a<s;){var o=Math.floor((a+s)/2);t(r[o])<i?a=o+1:s=o}return a}var Wp=ce(()=>{_r();Gr()});function qo(r,e,t){return function(n,i,a){var s=0,o=ut(n);if(typeof a=="number")r>0?s=a>=0?a:Math.max(a+o,s):o=a>=0?Math.min(a+1,o):a+o+1;else if(t&&a&&o)return a=t(n,i),n[a]===i?a:-1;if(i!==i)return a=e(Fn.call(n,s,o),$a),a>=0?a+s:-1;for(a=r>0?s:o-1;a>=0&&a<o;a+=r)if(n[a]===i)return a;return-1}}var Hp=ce(()=>{Gr();bt();Z0()});var Yo,Vp=ce(()=>{Wp();rh();Hp();Yo=qo(1,sa,as)});var zp,vv=ce(()=>{Mp();Hp();zp=qo(-1,$o)});function oa(r,e,t){var n=mt(r)?sa:is,i=n(r,e,t);if(i!==void 0&&i!==-1)return r[i]}var jp=ce(()=>{Br();rh();Pp()});function nh(r,e){return oa(r,pn(e))}var yv=ce(()=>{jp();Mo()});function zt(r,e,t){e=gn(e,t);var n,i;if(mt(r))for(n=0,i=r.length;n<i;n++)e(r[n],n,r);else{var a=$e(r);for(n=0,i=a.length;n<i;n++)e(r[a[n]],a[n],r)}return r}var Ti=ce(()=>{ts();Br();Vt()});function Dr(r,e,t){e=ot(e,t);for(var n=!mt(r)&&$e(r),i=(n||r).length,a=Array(i),s=0;s<i;s++){var o=n?n[s]:s;a[s]=e(r[o],o,r)}return a}var ca=ce(()=>{_r();Br();Vt()});function Ko(r){var e=function(t,n,i,a){var s=!mt(t)&&$e(t),o=(s||t).length,c=r>0?0:o-1;for(a||(i=t[s?s[c]:c],c+=r);c>=0&&c<o;c+=r){var u=s?s[c]:c;i=n(i,t[u],u,t)}return i};return function(t,n,i,a){var s=arguments.length>=3;return e(t,gn(n,a,4),i,s)}}var Gp=ce(()=>{Br();Vt();ts()});var Zo,bv=ce(()=>{Gp();Zo=Ko(1)});var ih,wv=ce(()=>{Gp();ih=Ko(-1)});function $r(r,e,t){var n=[];return e=ot(e,t),zt(r,function(i,a,s){e(i,a,s)&&n.push(i)}),n}var ss=ce(()=>{_r();Ti()});function ah(r,e,t){return $r(r,Di(ot(e)),t)}var _v=ce(()=>{ss();Qu();_r()});function Jo(r,e,t){e=ot(e,t);for(var n=!mt(r)&&$e(r),i=(n||r).length,a=0;a<i;a++){var s=n?n[a]:a;if(!e(r[s],s,r))return!1}return!0}var Dv=ce(()=>{_r();Br();Vt()});function Qo(r,e,t){e=ot(e,t);for(var n=!mt(r)&&$e(r),i=(n||r).length,a=0;a<i;a++){var s=n?n[a]:a;if(e(r[s],s,r))return!0}return!1}var Tv=ce(()=>{_r();Br();Vt()});function or(r,e,t,n){return mt(r)||(r=Or(r)),(typeof t!="number"||n)&&(t=0),Yo(r,e,t)>=0}var os=ce(()=>{Br();Qi();Vp()});var Xp,Ev=ce(()=>{Ir();jr();ca();Nu();Qa();Xp=st(function(r,e,t){var n,i;return lt(e)?i=e:(e=dn(e),n=e.slice(0,-1),e=e[e.length-1]),Dr(r,function(a){var s=i;if(!s){if(n&&n.length&&(a=ra(a,n)),a==null)return;s=a[e]}return s==null?s:s.apply(a,t)})})});function Ei(r,e){return Dr(r,_i(e))}var sh=ce(()=>{ca();Mu()});function oh(r,e){return $r(r,pn(e))}var Av=ce(()=>{ss();Mo()});function cs(r,e,t){var n=-1/0,i=-1/0,a,s;if(e==null||typeof e=="number"&&typeof r[0]!="object"&&r!=null){r=mt(r)?r:Or(r);for(var o=0,c=r.length;o<c;o++)a=r[o],a!=null&&a>n&&(n=a)}else e=ot(e,t),zt(r,function(u,h,f){s=e(u,h,f),(s>i||s===-1/0&&n===-1/0)&&(n=u,i=s)});return n}var $p=ce(()=>{Br();Qi();_r();Ti()});function ch(r,e,t){var n=1/0,i=1/0,a,s;if(e==null||typeof e=="number"&&typeof r[0]!="object"&&r!=null){r=mt(r)?r:Or(r);for(var o=0,c=r.length;o<c;o++)a=r[o],a!=null&&a<n&&(n=a)}else e=ot(e,t),zt(r,function(u,h,f){s=e(u,h,f),(s<i||s===1/0&&n===1/0)&&(n=u,i=s)});return n}var Sv=ce(()=>{Br();Qi();_r();Ti()});function ls(r){return r?wr(r)?Fn.call(r):Ki(r)?r.match(HS):mt(r)?Dr(r,wi):Or(r):[]}var HS,qp=ce(()=>{yi();bt();bu();Br();ca();Lu();Qi();HS=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g});function us(r,e,t){if(e==null||t)return mt(r)||(r=Or(r)),r[ia(r.length-1)];var n=ls(r),i=ut(n);e=Math.max(Math.min(e,i),0);for(var a=i-1,s=0;s<e;s++){var o=ia(s,a),c=n[s];n[s]=n[o],n[o]=c}return n.slice(0,e)}var Yp=ce(()=>{Br();Qi();Gr();wp();qp()});function lh(r){return us(r,1/0)}var Cv=ce(()=>{Yp()});function uh(r,e,t){var n=0;return e=ot(e,t),Ei(Dr(r,function(i,a,s){return{value:i,index:n++,criteria:e(i,a,s)}}).sort(function(i,a){var s=i.criteria,o=a.criteria;if(s!==o){if(s>o||s===void 0)return 1;if(s<o||o===void 0)return-1}return i.index-a.index}),"value")}var Fv=ce(()=>{_r();sh();ca()});function Jn(r,e){return function(t,n,i){var a=e?[[],[]]:{};return n=ot(n,i),zt(t,function(s,o){var c=n(s,o,t);r(a,s,c)}),a}}var ec=ce(()=>{_r();Ti()});var Kp,kv=ce(()=>{ec();Yn();Kp=Jn(function(r,e,t){Qt(r,t)?r[t].push(e):r[t]=[e]})});var Zp,Uv=ce(()=>{ec();Zp=Jn(function(r,e,t){r[t]=e})});var Jp,Iv=ce(()=>{ec();Yn();Jp=Jn(function(r,e,t){Qt(r,t)?r[t]++:r[t]=1})});var Qp,Rv=ce(()=>{ec();Qp=Jn(function(r,e,t){r[t?0:1].push(e)},!0)});function hh(r){return r==null?0:mt(r)?r.length:$e(r).length}var Ov=ce(()=>{Br();Vt()});function eg(r,e,t){return e in t}var Bv=ce(()=>{});var tc,tg=ce(()=>{Ir();jr();ts();Ka();Bv();aa();tc=st(function(r,e){var t={},n=e[0];if(r==null)return t;lt(n)?(e.length>1&&(n=gn(n,e[1])),e=tn(r)):(n=eg,e=Xr(e,!1,!1),r=Object(r));for(var i=0,a=e.length;i<a;i++){var s=e[i],o=r[s];n(o,s,r)&&(t[s]=o)}return t})});var rg,Nv=ce(()=>{Ir();jr();Qu();ca();aa();os();tg();rg=st(function(r,e){var t=e[0],n;return lt(t)?(t=Di(t),e.length>1&&(n=e[1])):(e=Dr(Xr(e,!1,!1),String),t=function(i,a){return!or(e,a)}),tc(r,t,n)})});function hs(r,e,t){return Fn.call(r,0,Math.max(0,r.length-(e==null||t?1:e)))}var ng=ce(()=>{bt()});function fs(r,e,t){return r==null||r.length<1?e==null||t?void 0:[]:e==null||t?r[0]:hs(r,r.length-e)}var Pv=ce(()=>{ng()});function Ai(r,e,t){return Fn.call(r,e==null||t?1:e)}var ig=ce(()=>{bt()});function fh(r,e,t){return r==null||r.length<1?e==null||t?void 0:[]:e==null||t?r[r.length-1]:Ai(r,Math.max(0,r.length-e))}var Lv=ce(()=>{ig()});function dh(r){return $r(r,Boolean)}var Mv=ce(()=>{ss()});function ph(r,e){return Xr(r,e,!1)}var Wv=ce(()=>{aa()});var rc,ag=ce(()=>{Ir();aa();ss();os();rc=st(function(r,e){return e=Xr(e,!0,!0),$r(r,function(t){return!or(e,t)})})});var sg,Hv=ce(()=>{Ir();ag();sg=st(function(r,e){return rc(r,e)})});function la(r,e,t,n){ja(e)||(n=t,t=e,e=!1),t!=null&&(t=ot(t,n));for(var i=[],a=[],s=0,o=ut(r);s<o;s++){var c=r[s],u=t?t(c,s,r):c;e&&!t?((!s||a!==u)&&i.push(c),a=u):t?or(a,u)||(a.push(u),i.push(c)):or(i,c)||i.push(c)}return i}var og=ce(()=>{V0();_r();Gr();os()});var cg,Vv=ce(()=>{Ir();og();aa();cg=st(function(r){return la(Xr(r,!0,!0))})});function gh(r){for(var e=[],t=arguments.length,n=0,i=ut(r);n<i;n++){var a=r[n];if(!or(e,a)){var s;for(s=1;s<t&&or(arguments[s],a);s++);s===t&&e.push(a)}}return e}var zv=ce(()=>{Gr();os()});function ua(r){for(var e=r&&cs(r,ut).length||0,t=Array(e),n=0;n<e;n++)t[n]=Ei(r,n);return t}var lg=ce(()=>{$p();Gr();sh()});var ug,jv=ce(()=>{Ir();lg();ug=st(ua)});function mh(r,e){for(var t={},n=0,i=ut(r);n<i;n++)e?t[r[n]]=e[n]:t[r[n][0]]=r[n][1];return t}var Gv=ce(()=>{Gr()});function xh(r,e,t){e==null&&(e=r||0,r=0),t||(t=e<r?-1:1);for(var n=Math.max(Math.ceil((e-r)/t),0),i=Array(n),a=0;a<n;a++,r+=t)i[a]=r;return i}var Xv=ce(()=>{});function vh(r,e){if(e==null||e<1)return[];for(var t=[],n=0,i=r.length;n<i;)t.push(Fn.call(r,n,n+=e));return t}var $v=ce(()=>{bt()});function ds(r,e){return r._chain?We(e).chain():e}var hg=ce(()=>{Rr()});function ps(r){return zt(ea(r),function(e){var t=We[e]=r[e];We.prototype[e]=function(){var n=[this._wrapped];return vx.apply(n,arguments),ds(this,t.apply(We,n))}}),We}var qv=ce(()=>{Rr();Ti();fp();bt();hg()});var Yv,Kv=ce(()=>{Rr();Ti();bt();hg();zt(["pop","push","reverse","shift","sort","splice","unshift"],function(r){var e=So[r];We.prototype[r]=function(){var t=this._wrapped;return t!=null&&(e.apply(t,arguments),(r==="shift"||r==="splice")&&t.length===0&&delete t[0]),ds(this,t)}});zt(["concat","join","slice"],function(r){var e=So[r];We.prototype[r]=function(){var t=this._wrapped;return t!=null&&(t=e.apply(t,arguments)),ds(this,t)}});Yv=We});var fg={};N1(fg,{VERSION:()=>Ao,after:()=>th,all:()=>Jo,allKeys:()=>tn,any:()=>Qo,assign:()=>bi,before:()=>ns,bind:()=>jo,bindAll:()=>Ip,chain:()=>qu,chunk:()=>vh,clone:()=>Ou,collect:()=>Dr,compact:()=>dh,compose:()=>eh,constant:()=>qa,contains:()=>or,countBy:()=>Jp,create:()=>Ru,debounce:()=>Zu,default:()=>Yv,defaults:()=>No,defer:()=>Op,delay:()=>Go,detect:()=>oa,difference:()=>rc,drop:()=>Ai,each:()=>zt,escape:()=>Tp,every:()=>Jo,extend:()=>Bo,extendOwn:()=>bi,filter:()=>$r,find:()=>oa,findIndex:()=>sa,findKey:()=>is,findLastIndex:()=>$o,findWhere:()=>nh,first:()=>fs,flatten:()=>ph,foldl:()=>Zo,foldr:()=>ih,forEach:()=>zt,functions:()=>ea,get:()=>es,groupBy:()=>Kp,has:()=>Pu,head:()=>fs,identity:()=>wi,include:()=>or,includes:()=>or,indexBy:()=>Zp,indexOf:()=>Yo,initial:()=>hs,inject:()=>Zo,intersection:()=>gh,invert:()=>Ja,invoke:()=>Xp,isArguments:()=>Zi,isArray:()=>wr,isArrayBuffer:()=>ko,isBoolean:()=>ja,isDataView:()=>vi,isDate:()=>j0,isElement:()=>yu,isEmpty:()=>Au,isEqual:()=>Cu,isError:()=>X0,isFinite:()=>Tu,isFunction:()=>lt,isMap:()=>op,isMatch:()=>Ya,isNaN:()=>$a,isNull:()=>vu,isNumber:()=>Co,isObject:()=>sr,isRegExp:()=>G0,isSet:()=>lp,isString:()=>Ki,isSymbol:()=>Fo,isTypedArray:()=>Ro,isUndefined:()=>za,isWeakMap:()=>cp,isWeakSet:()=>up,iteratee:()=>na,keys:()=>$e,last:()=>fh,lastIndexOf:()=>zp,map:()=>Dr,mapObject:()=>Wu,matcher:()=>pn,matches:()=>pn,max:()=>cs,memoize:()=>Yu,methods:()=>ea,min:()=>ch,mixin:()=>ps,negate:()=>Di,noop:()=>rs,now:()=>Kn,object:()=>mh,omit:()=>rg,once:()=>Np,pairs:()=>ku,partial:()=>Zn,partition:()=>Qp,pick:()=>tc,pluck:()=>Ei,property:()=>_i,propertyOf:()=>Hu,random:()=>ia,range:()=>xh,reduce:()=>Zo,reduceRight:()=>ih,reject:()=>ah,rest:()=>Ai,restArguments:()=>st,result:()=>Xu,sample:()=>us,select:()=>$r,shuffle:()=>lh,size:()=>hh,some:()=>Qo,sortBy:()=>uh,sortedIndex:()=>as,tail:()=>Ai,take:()=>fs,tap:()=>Bu,template:()=>Gu,templateSettings:()=>Ap,throttle:()=>Ku,times:()=>Vu,toArray:()=>ls,toPath:()=>Lo,transpose:()=>ua,unescape:()=>Ep,union:()=>cg,uniq:()=>la,unique:()=>la,uniqueId:()=>$u,unzip:()=>ua,values:()=>Or,where:()=>oh,without:()=>sg,wrap:()=>Ju,zip:()=>ug});var yh=ce(()=>{bt();Ir();xi();Ex();H0();V0();Ax();bu();z0();Sx();Cx();Fx();$0();q0();_u();yi();jr();Du();Ix();Z0();tp();Bx();np();Lx();zx();jx();Gx();Xx();Vt();Ka();Qi();$x();hp();fp();dp();Iu();pp();qx();Yx();Kx();xp();Zx();Jx();Lu();J0();bp();mp();Mu();Qx();Mo();ev();wp();zu();tv();iv();Sp();av();sv();ov();cv();yp();zo();Up();lv();uv();Rp();hv();fv();dv();pv();Qu();gv();mv();Bp();xv();Pp();rh();Mp();Wp();Vp();vv();jp();yv();Ti();ca();bv();wv();ss();_v();Dv();Tv();os();Ev();sh();Av();$p();Sv();Cv();Yp();Fv();kv();Uv();Iv();Rv();qp();Ov();tg();Nv();Pv();ng();Lv();ig();Mv();Wv();Hv();og();Vv();zv();ag();lg();jv();Gv();Xv();$v();qv();Kv()});var dg,Zv,Jv=ce(()=>{yh();yh();dg=ps(fg);dg._=dg;Zv=dg});var Et={};N1(Et,{VERSION:()=>Ao,after:()=>th,all:()=>Jo,allKeys:()=>tn,any:()=>Qo,assign:()=>bi,before:()=>ns,bind:()=>jo,bindAll:()=>Ip,chain:()=>qu,chunk:()=>vh,clone:()=>Ou,collect:()=>Dr,compact:()=>dh,compose:()=>eh,constant:()=>qa,contains:()=>or,countBy:()=>Jp,create:()=>Ru,debounce:()=>Zu,default:()=>Zv,defaults:()=>No,defer:()=>Op,delay:()=>Go,detect:()=>oa,difference:()=>rc,drop:()=>Ai,each:()=>zt,escape:()=>Tp,every:()=>Jo,extend:()=>Bo,extendOwn:()=>bi,filter:()=>$r,find:()=>oa,findIndex:()=>sa,findKey:()=>is,findLastIndex:()=>$o,findWhere:()=>nh,first:()=>fs,flatten:()=>ph,foldl:()=>Zo,foldr:()=>ih,forEach:()=>zt,functions:()=>ea,get:()=>es,groupBy:()=>Kp,has:()=>Pu,head:()=>fs,identity:()=>wi,include:()=>or,includes:()=>or,indexBy:()=>Zp,indexOf:()=>Yo,initial:()=>hs,inject:()=>Zo,intersection:()=>gh,invert:()=>Ja,invoke:()=>Xp,isArguments:()=>Zi,isArray:()=>wr,isArrayBuffer:()=>ko,isBoolean:()=>ja,isDataView:()=>vi,isDate:()=>j0,isElement:()=>yu,isEmpty:()=>Au,isEqual:()=>Cu,isError:()=>X0,isFinite:()=>Tu,isFunction:()=>lt,isMap:()=>op,isMatch:()=>Ya,isNaN:()=>$a,isNull:()=>vu,isNumber:()=>Co,isObject:()=>sr,isRegExp:()=>G0,isSet:()=>lp,isString:()=>Ki,isSymbol:()=>Fo,isTypedArray:()=>Ro,isUndefined:()=>za,isWeakMap:()=>cp,isWeakSet:()=>up,iteratee:()=>na,keys:()=>$e,last:()=>fh,lastIndexOf:()=>zp,map:()=>Dr,mapObject:()=>Wu,matcher:()=>pn,matches:()=>pn,max:()=>cs,memoize:()=>Yu,methods:()=>ea,min:()=>ch,mixin:()=>ps,negate:()=>Di,noop:()=>rs,now:()=>Kn,object:()=>mh,omit:()=>rg,once:()=>Np,pairs:()=>ku,partial:()=>Zn,partition:()=>Qp,pick:()=>tc,pluck:()=>Ei,property:()=>_i,propertyOf:()=>Hu,random:()=>ia,range:()=>xh,reduce:()=>Zo,reduceRight:()=>ih,reject:()=>ah,rest:()=>Ai,restArguments:()=>st,result:()=>Xu,sample:()=>us,select:()=>$r,shuffle:()=>lh,size:()=>hh,some:()=>Qo,sortBy:()=>uh,sortedIndex:()=>as,tail:()=>Ai,take:()=>fs,tap:()=>Bu,template:()=>Gu,templateSettings:()=>Ap,throttle:()=>Ku,times:()=>Vu,toArray:()=>ls,toPath:()=>Lo,transpose:()=>ua,unescape:()=>Ep,union:()=>cg,uniq:()=>la,unique:()=>la,uniqueId:()=>$u,unzip:()=>ua,values:()=>Or,where:()=>oh,without:()=>sg,wrap:()=>Ju,zip:()=>ug});var At=ce(()=>{Jv();yh()});var ha=be((yX,mg)=>{var pg=(function(){"use strict";return this===void 0})();pg?mg.exports={freeze:Object.freeze,defineProperty:Object.defineProperty,getDescriptor:Object.getOwnPropertyDescriptor,keys:Object.keys,names:Object.getOwnPropertyNames,getPrototypeOf:Object.getPrototypeOf,isArray:Array.isArray,isES5:pg,propertyIsWritable:function(r,e){var t=Object.getOwnPropertyDescriptor(r,e);return!!(!t||t.writable||t.set)}}:(Qv={}.hasOwnProperty,e2={}.toString,t2={}.constructor.prototype,gg=function(r){var e=[];for(var t in r)Qv.call(r,t)&&e.push(t);return e},r2=function(r,e){return{value:r[e]}},n2=function(r,e,t){return r[e]=t.value,r},i2=function(r){return r},a2=function(r){try{return Object(r).constructor.prototype}catch{return t2}},s2=function(r){try{return e2.call(r)==="[object Array]"}catch{return!1}},mg.exports={isArray:s2,keys:gg,names:gg,defineProperty:n2,getDescriptor:r2,freeze:i2,getPrototypeOf:a2,isES5:pg,propertyIsWritable:function(){return!0}});var Qv,e2,t2,gg,r2,n2,i2,a2,s2});var pt=be((exports,module)=>{"use strict";var es5=ha(),canEvaluate=typeof navigator>"u",errorObj={e:{}},tryCatchTarget,globalObject=typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:exports!==void 0?exports:null;function tryCatcher(){try{var r=tryCatchTarget;return tryCatchTarget=null,r.apply(this,arguments)}catch(e){return errorObj.e=e,errorObj}}function tryCatch(r){return tryCatchTarget=r,tryCatcher}var inherits=function(r,e){var t={}.hasOwnProperty;function n(){this.constructor=r,this.constructor$=e;for(var i in e.prototype)t.call(e.prototype,i)&&i.charAt(i.length-1)!=="$"&&(this[i+"$"]=e.prototype[i])}return n.prototype=e.prototype,r.prototype=new n,r.prototype};function isPrimitive(r){return r==null||r===!0||r===!1||typeof r=="string"||typeof r=="number"}function isObject(r){return typeof r=="function"||typeof r=="object"&&r!==null}function maybeWrapAsError(r){return isPrimitive(r)?new Error(safeToString(r)):r}function withAppended(r,e){var t=r.length,n=new Array(t+1),i;for(i=0;i<t;++i)n[i]=r[i];return n[i]=e,n}function getDataPropertyOrDefault(r,e,t){if(es5.isES5){var n=Object.getOwnPropertyDescriptor(r,e);if(n!=null)return n.get==null&&n.set==null?n.value:t}else return{}.hasOwnProperty.call(r,e)?r[e]:void 0}function notEnumerableProp(r,e,t){if(isPrimitive(r))return r;var n={value:t,configurable:!0,enumerable:!1,writable:!0};return es5.defineProperty(r,e,n),r}function thrower(r){throw r}var inheritedDataKeys=(function(){var r=[Array.prototype,Object.prototype,Function.prototype],e=function(i){for(var a=0;a<r.length;++a)if(r[a]===i)return!0;return!1};if(es5.isES5){var t=Object.getOwnPropertyNames;return function(i){for(var a=[],s=Object.create(null);i!=null&&!e(i);){var o;try{o=t(i)}catch{return a}for(var c=0;c<o.length;++c){var u=o[c];if(!s[u]){s[u]=!0;var h=Object.getOwnPropertyDescriptor(i,u);h!=null&&h.get==null&&h.set==null&&a.push(u)}}i=es5.getPrototypeOf(i)}return a}}else{var n={}.hasOwnProperty;return function(i){if(e(i))return[];var a=[];e:for(var s in i)if(n.call(i,s))a.push(s);else{for(var o=0;o<r.length;++o)if(n.call(r[o],s))continue e;a.push(s)}return a}}})(),thisAssignmentPattern=/this\s*\.\s*\S+\s*=/;function isClass(r){try{if(typeof r=="function"){var e=es5.names(r.prototype),t=es5.isES5&&e.length>1,n=e.length>0&&!(e.length===1&&e[0]==="constructor"),i=thisAssignmentPattern.test(r+"")&&es5.names(r).length>0;if(t||n||i)return!0}return!1}catch{return!1}}function toFastProperties(obj){function FakeConstructor(){}FakeConstructor.prototype=obj;for(var l=8;l--;)new FakeConstructor;return obj}var rident=/^[a-z$_][a-z$_0-9]*$/i;function isIdentifier(r){return rident.test(r)}function filledRange(r,e,t){for(var n=new Array(r),i=0;i<r;++i)n[i]=e+i+t;return n}function safeToString(r){try{return r+""}catch{return"[no string representation]"}}function isError(r){return r!==null&&typeof r=="object"&&typeof r.message=="string"&&typeof r.name=="string"}function markAsOriginatingFromRejection(r){try{notEnumerableProp(r,"isOperational",!0)}catch{}}function originatesFromRejection(r){return r==null?!1:r instanceof Error.__BluebirdErrorTypes__.OperationalError||r.isOperational===!0}function canAttachTrace(r){return isError(r)&&es5.propertyIsWritable(r,"stack")}var ensureErrorObject=(function(){return"stack"in new Error?function(r){return canAttachTrace(r)?r:new Error(safeToString(r))}:function(r){if(canAttachTrace(r))return r;try{throw new Error(safeToString(r))}catch(e){return e}}})();function classString(r){return{}.toString.call(r)}function copyDescriptors(r,e,t){for(var n=es5.names(r),i=0;i<n.length;++i){var a=n[i];if(t(a))try{es5.defineProperty(e,a,es5.getDescriptor(r,a))}catch{}}}var asArray=function(r){return es5.isArray(r)?r:null};typeof Symbol<"u"&&Symbol.iterator&&(ArrayFrom=typeof Array.from=="function"?function(r){return Array.from(r)}:function(r){for(var e=[],t=r[Symbol.iterator](),n;!(n=t.next()).done;)e.push(n.value);return e},asArray=function(r){return es5.isArray(r)?r:r!=null&&typeof r[Symbol.iterator]=="function"?ArrayFrom(r):null});var ArrayFrom,isNode=typeof process<"u"&&classString(process).toLowerCase()==="[object process]",hasEnvVariables=typeof process<"u"&&typeof process.env<"u";function env(r){return hasEnvVariables?process.env[r]:void 0}function getNativePromise(){if(typeof Promise=="function")try{var r=new Promise(function(){});if({}.toString.call(r)==="[object Promise]")return Promise}catch{}}function domainBind(r,e){return r.bind(e)}var ret={isClass,isIdentifier,inheritedDataKeys,getDataPropertyOrDefault,thrower,isArray:es5.isArray,asArray,notEnumerableProp,isPrimitive,isObject,isError,canEvaluate,errorObj,tryCatch,inherits,withAppended,maybeWrapAsError,toFastProperties,filledRange,toString:safeToString,canAttachTrace,ensureErrorObject,originatesFromRejection,markAsOriginatingFromRejection,classString,copyDescriptors,hasDevTools:typeof chrome<"u"&&chrome&&typeof chrome.loadTimes=="function",isNode,hasEnvVariables,env,global:globalObject,getNativePromise,domainBind};ret.isRecentNode=ret.isNode&&(function(){var r=process.versions.node.split(".").map(Number);return r[0]===0&&r[1]>10||r[0]>0})();ret.isNode&&ret.toFastProperties(process);try{throw new Error}catch(r){ret.lastLineError=r}module.exports=ret});var h2=be((bX,u2)=>{"use strict";var vg=pt(),fa,VS=function(){throw new Error(`No async scheduler available
|
|
14
14
|
|
|
15
15
|
See http://goo.gl/MqrFmX
|
|
16
|
-
`)},xg=vg.getNativePromise();vg.isNode&&typeof MutationObserver>"u"?(o2=global.setImmediate,c2=process.nextTick,fa=vg.isRecentNode?function(r){o2.call(global,r)}:function(r){c2.call(process,r)}):typeof xg=="function"&&typeof xg.resolve=="function"?(l2=xg.resolve(),fa=function(r){l2.then(r)}):typeof MutationObserver<"u"&&!(typeof window<"u"&&window.navigator&&(window.navigator.standalone||window.cordova))?fa=(function(){var r=document.createElement("div"),e={attributes:!0},t=!1,n=document.createElement("div"),i=new MutationObserver(function(){r.classList.toggle("foo"),t=!1});i.observe(n,e);var a=function(){t||(t=!0,n.classList.toggle("foo"))};return function(o){var c=new MutationObserver(function(){c.disconnect(),o()});c.observe(r,e),a()}})():typeof setImmediate<"u"?fa=function(r){setImmediate(r)}:typeof setTimeout<"u"?fa=function(r){setTimeout(r,0)}:fa=VS;var o2,c2,l2;u2.exports=fa});var d2=be((
|
|
16
|
+
`)},xg=vg.getNativePromise();vg.isNode&&typeof MutationObserver>"u"?(o2=global.setImmediate,c2=process.nextTick,fa=vg.isRecentNode?function(r){o2.call(global,r)}:function(r){c2.call(process,r)}):typeof xg=="function"&&typeof xg.resolve=="function"?(l2=xg.resolve(),fa=function(r){l2.then(r)}):typeof MutationObserver<"u"&&!(typeof window<"u"&&window.navigator&&(window.navigator.standalone||window.cordova))?fa=(function(){var r=document.createElement("div"),e={attributes:!0},t=!1,n=document.createElement("div"),i=new MutationObserver(function(){r.classList.toggle("foo"),t=!1});i.observe(n,e);var a=function(){t||(t=!0,n.classList.toggle("foo"))};return function(o){var c=new MutationObserver(function(){c.disconnect(),o()});c.observe(r,e),a()}})():typeof setImmediate<"u"?fa=function(r){setImmediate(r)}:typeof setTimeout<"u"?fa=function(r){setTimeout(r,0)}:fa=VS;var o2,c2,l2;u2.exports=fa});var d2=be((wX,f2)=>{"use strict";function zS(r,e,t,n,i){for(var a=0;a<i;++a)t[a+n]=r[a+e],r[a+e]=void 0}function Si(r){this._capacity=r,this._length=0,this._front=0}Si.prototype._willBeOverCapacity=function(r){return this._capacity<r};Si.prototype._pushOne=function(r){var e=this.length();this._checkCapacity(e+1);var t=this._front+e&this._capacity-1;this[t]=r,this._length=e+1};Si.prototype.push=function(r,e,t){var n=this.length()+3;if(this._willBeOverCapacity(n)){this._pushOne(r),this._pushOne(e),this._pushOne(t);return}var i=this._front+n-3;this._checkCapacity(n);var a=this._capacity-1;this[i+0&a]=r,this[i+1&a]=e,this[i+2&a]=t,this._length=n};Si.prototype.shift=function(){var r=this._front,e=this[r];return this[r]=void 0,this._front=r+1&this._capacity-1,this._length--,e};Si.prototype.length=function(){return this._length};Si.prototype._checkCapacity=function(r){this._capacity<r&&this._resizeTo(this._capacity<<1)};Si.prototype._resizeTo=function(r){var e=this._capacity;this._capacity=r;var t=this._front,n=this._length,i=t+n&e-1;zS(this,0,this,e,i)};f2.exports=Si});var b2=be((_X,yg)=>{"use strict";var v2;try{throw new Error}catch(r){v2=r}var jS=h2(),p2=d2(),y2=pt();function jt(){this._customScheduler=!1,this._isTickUsed=!1,this._lateQueue=new p2(16),this._normalQueue=new p2(16),this._haveDrainedQueues=!1,this._trampolineEnabled=!0;var r=this;this.drainQueues=function(){r._drainQueues()},this._schedule=jS}jt.prototype.setScheduler=function(r){var e=this._schedule;return this._schedule=r,this._customScheduler=!0,e};jt.prototype.hasCustomScheduler=function(){return this._customScheduler};jt.prototype.enableTrampoline=function(){this._trampolineEnabled=!0};jt.prototype.disableTrampolineIfNecessary=function(){y2.hasDevTools&&(this._trampolineEnabled=!1)};jt.prototype.haveItemsQueued=function(){return this._isTickUsed||this._haveDrainedQueues};jt.prototype.fatalError=function(r,e){e?(process.stderr.write("Fatal "+(r instanceof Error?r.stack:r)+`
|
|
17
17
|
`),process.exit(2)):this.throwLater(r)};jt.prototype.throwLater=function(r,e){if(arguments.length===1&&(e=r,r=function(){throw e}),typeof setTimeout<"u")setTimeout(function(){r(e)},0);else try{this._schedule(function(){r(e)})}catch{throw new Error(`No async scheduler available
|
|
18
18
|
|
|
19
19
|
See http://goo.gl/MqrFmX
|
|
20
|
-
`)}};function g2(r,e,t){this._lateQueue.push(r,e,t),this._queueTick()}function m2(r,e,t){this._normalQueue.push(r,e,t),this._queueTick()}function x2(r){this._normalQueue._pushOne(r),this._queueTick()}y2.hasDevTools?(jt.prototype.invokeLater=function(r,e,t){this._trampolineEnabled?g2.call(this,r,e,t):this._schedule(function(){setTimeout(function(){r.call(e,t)},100)})},jt.prototype.invoke=function(r,e,t){this._trampolineEnabled?m2.call(this,r,e,t):this._schedule(function(){r.call(e,t)})},jt.prototype.settlePromises=function(r){this._trampolineEnabled?x2.call(this,r):this._schedule(function(){r._settlePromises()})}):(jt.prototype.invokeLater=g2,jt.prototype.invoke=m2,jt.prototype.settlePromises=x2);jt.prototype._drainQueue=function(r){for(;r.length()>0;){var e=r.shift();if(typeof e!="function"){e._settlePromises();continue}var t=r.shift(),n=r.shift();e.call(t,n)}};jt.prototype._drainQueues=function(){this._drainQueue(this._normalQueue),this._reset(),this._haveDrainedQueues=!0,this._drainQueue(this._lateQueue)};jt.prototype._queueTick=function(){this._isTickUsed||(this._isTickUsed=!0,this._schedule(this.drainQueues))};jt.prototype._reset=function(){this._isTickUsed=!1};yg.exports=jt;yg.exports.firstLineError=v2});var Qn=be((
|
|
20
|
+
`)}};function g2(r,e,t){this._lateQueue.push(r,e,t),this._queueTick()}function m2(r,e,t){this._normalQueue.push(r,e,t),this._queueTick()}function x2(r){this._normalQueue._pushOne(r),this._queueTick()}y2.hasDevTools?(jt.prototype.invokeLater=function(r,e,t){this._trampolineEnabled?g2.call(this,r,e,t):this._schedule(function(){setTimeout(function(){r.call(e,t)},100)})},jt.prototype.invoke=function(r,e,t){this._trampolineEnabled?m2.call(this,r,e,t):this._schedule(function(){r.call(e,t)})},jt.prototype.settlePromises=function(r){this._trampolineEnabled?x2.call(this,r):this._schedule(function(){r._settlePromises()})}):(jt.prototype.invokeLater=g2,jt.prototype.invoke=m2,jt.prototype.settlePromises=x2);jt.prototype._drainQueue=function(r){for(;r.length()>0;){var e=r.shift();if(typeof e!="function"){e._settlePromises();continue}var t=r.shift(),n=r.shift();e.call(t,n)}};jt.prototype._drainQueues=function(){this._drainQueue(this._normalQueue),this._reset(),this._haveDrainedQueues=!0,this._drainQueue(this._lateQueue)};jt.prototype._queueTick=function(){this._isTickUsed||(this._isTickUsed=!0,this._schedule(this.drainQueues))};jt.prototype._reset=function(){this._isTickUsed=!1};yg.exports=jt;yg.exports.firstLineError=v2});var Qn=be((DX,D2)=>{"use strict";var _g=ha(),GS=_g.freeze,w2=pt(),_2=w2.inherits,ms=w2.notEnumerableProp;function xs(r,e){function t(n){if(!(this instanceof t))return new t(n);ms(this,"message",typeof n=="string"?n:e),ms(this,"name",r),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this)}return _2(t,Error),t}var bg,wg,XS=xs("Warning","warning"),$S=xs("CancellationError","cancellation error"),qS=xs("TimeoutError","timeout error"),ic=xs("AggregateError","aggregate error");try{bg=TypeError,wg=RangeError}catch{bg=xs("TypeError","type error"),wg=xs("RangeError","range error")}var bh="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" ");for(gs=0;gs<bh.length;++gs)typeof Array.prototype[bh[gs]]=="function"&&(ic.prototype[bh[gs]]=Array.prototype[bh[gs]]);var gs;_g.defineProperty(ic.prototype,"length",{value:0,configurable:!1,writable:!0,enumerable:!0});ic.prototype.isOperational=!0;var wh=0;ic.prototype.toString=function(){var r=Array(wh*4+1).join(" "),e=`
|
|
21
21
|
`+r+`AggregateError of:
|
|
22
22
|
`;wh++,r=Array(wh*4+1).join(" ");for(var t=0;t<this.length;++t){for(var n=this[t]===this?"[Circular AggregateError]":this[t]+"",i=n.split(`
|
|
23
23
|
`),a=0;a<i.length;++a)i[a]=r+i[a];n=i.join(`
|
|
24
24
|
`),e+=n+`
|
|
25
|
-
`}return wh--,e};function nc(r){if(!(this instanceof nc))return new nc(r);ms(this,"name","OperationalError"),ms(this,"message",r),this.cause=r,this.isOperational=!0,r instanceof Error?(ms(this,"message",r.message),ms(this,"stack",r.stack)):Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}_2(nc,Error);var da=Error.__BluebirdErrorTypes__;da||(da=GS({CancellationError:$S,TimeoutError:qS,OperationalError:nc,RejectionError:nc,AggregateError:ic}),_g.defineProperty(Error,"__BluebirdErrorTypes__",{value:da,writable:!1,enumerable:!1,configurable:!1}));D2.exports={Error,TypeError:bg,RangeError:wg,CancellationError:da.CancellationError,OperationalError:da.OperationalError,TimeoutError:da.TimeoutError,AggregateError:da.AggregateError,Warning:XS}});var E2=be((
|
|
25
|
+
`}return wh--,e};function nc(r){if(!(this instanceof nc))return new nc(r);ms(this,"name","OperationalError"),ms(this,"message",r),this.cause=r,this.isOperational=!0,r instanceof Error?(ms(this,"message",r.message),ms(this,"stack",r.stack)):Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}_2(nc,Error);var da=Error.__BluebirdErrorTypes__;da||(da=GS({CancellationError:$S,TimeoutError:qS,OperationalError:nc,RejectionError:nc,AggregateError:ic}),_g.defineProperty(Error,"__BluebirdErrorTypes__",{value:da,writable:!1,enumerable:!1,configurable:!1}));D2.exports={Error,TypeError:bg,RangeError:wg,CancellationError:da.CancellationError,OperationalError:da.OperationalError,TimeoutError:da.TimeoutError,AggregateError:da.AggregateError,Warning:XS}});var E2=be((TX,T2)=>{"use strict";T2.exports=function(r,e){var t=pt(),n=t.errorObj,i=t.isObject;function a(f,d){if(i(f)){if(f instanceof r)return f;var p=o(f);if(p===n){d&&d._pushContext();var m=r.reject(p.e);return d&&d._popContext(),m}else if(typeof p=="function"){if(u(f)){var m=new r(e);return f._then(m._fulfill,m._reject,void 0,m,null),m}return h(f,p,d)}}return f}function s(f){return f.then}function o(f){try{return s(f)}catch(d){return n.e=d,n}}var c={}.hasOwnProperty;function u(f){try{return c.call(f,"_promise0")}catch{return!1}}function h(f,d,p){var m=new r(e),g=m;p&&p._pushContext(),m._captureStackTrace(),p&&p._popContext();var x=!0,y=t.tryCatch(d).call(f,b,v);x=!1,m&&y===n&&(m._rejectCallback(y.e,!0,!0),m=null);function b(_){m&&(m._resolveCallback(_),m=null)}function v(_){m&&(m._rejectCallback(_,x,!0),m=null)}return g}return a}});var S2=be((EX,A2)=>{"use strict";A2.exports=function(r,e,t,n,i){var a=pt(),s=a.isArray;function o(u){switch(u){case-2:return[];case-3:return{}}}function c(u){var h=this._promise=new r(e);u instanceof r&&h._propagateFrom(u,3),h._setOnCancel(this),this._values=u,this._length=0,this._totalResolved=0,this._init(void 0,-2)}return a.inherits(c,i),c.prototype.length=function(){return this._length},c.prototype.promise=function(){return this._promise},c.prototype._init=function u(h,f){var d=t(this._values,this._promise);if(d instanceof r){d=d._target();var p=d._bitField;if(this._values=d,(p&50397184)===0)return this._promise._setAsyncGuaranteed(),d._then(u,this._reject,void 0,this,f);if((p&33554432)!==0)d=d._value();else return(p&16777216)!==0?this._reject(d._reason()):this._cancel()}if(d=a.asArray(d),d===null){var m=n("expecting an array or an iterable object but got "+a.classString(d)).reason();this._promise._rejectCallback(m,!1);return}if(d.length===0){f===-5?this._resolveEmptyArray():this._resolve(o(f));return}this._iterate(d)},c.prototype._iterate=function(u){var h=this.getActualLength(u.length);this._length=h,this._values=this.shouldCopyValues()?new Array(h):this._values;for(var f=this._promise,d=!1,p=null,m=0;m<h;++m){var g=t(u[m],f);g instanceof r?(g=g._target(),p=g._bitField):p=null,d?p!==null&&g.suppressUnhandledRejections():p!==null?(p&50397184)===0?(g._proxy(this,m),this._values[m]=g):(p&33554432)!==0?d=this._promiseFulfilled(g._value(),m):(p&16777216)!==0?d=this._promiseRejected(g._reason(),m):d=this._promiseCancelled(m):d=this._promiseFulfilled(g,m)}d||f._setAsyncGuaranteed()},c.prototype._isResolved=function(){return this._values===null},c.prototype._resolve=function(u){this._values=null,this._promise._fulfill(u)},c.prototype._cancel=function(){this._isResolved()||!this._promise._isCancellable()||(this._values=null,this._promise._cancel())},c.prototype._reject=function(u){this._values=null,this._promise._rejectCallback(u,!1)},c.prototype._promiseFulfilled=function(u,h){this._values[h]=u;var f=++this._totalResolved;return f>=this._length?(this._resolve(this._values),!0):!1},c.prototype._promiseCancelled=function(){return this._cancel(),!0},c.prototype._promiseRejected=function(u){return this._totalResolved++,this._reject(u),!0},c.prototype._resultCancelled=function(){if(!this._isResolved()){var u=this._values;if(this._cancel(),u instanceof r)u.cancel();else for(var h=0;h<u.length;++h)u[h]instanceof r&&u[h].cancel()}},c.prototype.shouldCopyValues=function(){return!0},c.prototype.getActualLength=function(u){return u},c}});var F2=be((AX,C2)=>{"use strict";C2.exports=function(r){var e=!1,t=[];r.prototype._promiseCreated=function(){},r.prototype._pushContext=function(){},r.prototype._popContext=function(){return null},r._peekContext=r.prototype._peekContext=function(){};function n(){this._trace=new n.CapturedTrace(a())}n.prototype._pushContext=function(){this._trace!==void 0&&(this._trace._promiseCreated=null,t.push(this._trace))},n.prototype._popContext=function(){if(this._trace!==void 0){var s=t.pop(),o=s._promiseCreated;return s._promiseCreated=null,o}return null};function i(){if(e)return new n}function a(){var s=t.length-1;if(s>=0)return t[s]}return n.CapturedTrace=null,n.create=i,n.deactivateLongStackTraces=function(){},n.activateLongStackTraces=function(){var s=r.prototype._pushContext,o=r.prototype._popContext,c=r._peekContext,u=r.prototype._peekContext,h=r.prototype._promiseCreated;n.deactivateLongStackTraces=function(){r.prototype._pushContext=s,r.prototype._popContext=o,r._peekContext=c,r.prototype._peekContext=u,r.prototype._promiseCreated=h,e=!1},e=!0,r.prototype._pushContext=n.prototype._pushContext,r.prototype._popContext=n.prototype._popContext,r._peekContext=r.prototype._peekContext=a,r.prototype._promiseCreated=function(){var f=this._peekContext();f&&f._promiseCreated==null&&(f._promiseCreated=this)}},n}});var U2=be((SX,k2)=>{"use strict";k2.exports=function(r,e){var t=r._getDomain,n=r._async,i=Qn().Warning,a=pt(),s=a.canAttachTrace,o,c,u=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,h=/\((?:timers\.js):\d+:\d+\)/,f=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,d=null,p=null,m=!1,g,x=!!(a.env("BLUEBIRD_DEBUG")!=0&&(a.env("BLUEBIRD_DEBUG")||a.env("NODE_ENV")==="development")),y=!!(a.env("BLUEBIRD_WARNINGS")!=0&&(x||a.env("BLUEBIRD_WARNINGS"))),b=!!(a.env("BLUEBIRD_LONG_STACK_TRACES")!=0&&(x||a.env("BLUEBIRD_LONG_STACK_TRACES"))),v=a.env("BLUEBIRD_W_FORGOTTEN_RETURN")!=0&&(y||!!a.env("BLUEBIRD_W_FORGOTTEN_RETURN"));r.prototype.suppressUnhandledRejections=function(){var te=this._target();te._bitField=te._bitField&-1048577|524288},r.prototype._ensurePossibleRejectionHandled=function(){(this._bitField&524288)===0&&(this._setRejectionIsUnhandled(),n.invokeLater(this._notifyUnhandledRejection,this,void 0))},r.prototype._notifyUnhandledRejectionIsHandled=function(){w("rejectionHandled",o,void 0,this)},r.prototype._setReturnedNonUndefined=function(){this._bitField=this._bitField|268435456},r.prototype._returnedNonUndefined=function(){return(this._bitField&268435456)!==0},r.prototype._notifyUnhandledRejection=function(){if(this._isRejectionUnhandled()){var te=this._settledValue();this._setUnhandledRejectionIsNotified(),w("unhandledRejection",c,te,this)}},r.prototype._setUnhandledRejectionIsNotified=function(){this._bitField=this._bitField|262144},r.prototype._unsetUnhandledRejectionIsNotified=function(){this._bitField=this._bitField&-262145},r.prototype._isUnhandledRejectionNotified=function(){return(this._bitField&262144)>0},r.prototype._setRejectionIsUnhandled=function(){this._bitField=this._bitField|1048576},r.prototype._unsetRejectionIsUnhandled=function(){this._bitField=this._bitField&-1048577,this._isUnhandledRejectionNotified()&&(this._unsetUnhandledRejectionIsNotified(),this._notifyUnhandledRejectionIsHandled())},r.prototype._isRejectionUnhandled=function(){return(this._bitField&1048576)>0},r.prototype._warn=function(te,ae,xe){return Z(te,ae,xe||this)},r.onPossiblyUnhandledRejection=function(te){var ae=t();c=typeof te=="function"?ae===null?te:a.domainBind(ae,te):void 0},r.onUnhandledRejectionHandled=function(te){var ae=t();o=typeof te=="function"?ae===null?te:a.domainBind(ae,te):void 0};var _=function(){};r.longStackTraces=function(){if(n.haveItemsQueued()&&!Te.longStackTraces)throw new Error(`cannot enable long stack traces after promises have been created
|
|
26
26
|
|
|
27
27
|
See http://goo.gl/MqrFmX
|
|
28
28
|
`);if(!Te.longStackTraces&&W()){var te=r.prototype._captureStackTrace,ae=r.prototype._attachExtraTrace;Te.longStackTraces=!0,_=function(){if(n.haveItemsQueued()&&!Te.longStackTraces)throw new Error(`cannot enable long stack traces after promises have been created
|
|
@@ -44,13 +44,13 @@ __p+='`),u}),a+=`';
|
|
|
44
44
|
`),ke=-1,Le=-1,Be,Ae,Ue=0;Ue<xe.length;++Ue){var Xe=le(xe[Ue]);if(Xe){Be=Xe.fileName,ke=Xe.line;break}}for(var Ue=0;Ue<ye.length;++Ue){var Xe=le(ye[Ue]);if(Xe){Ae=Xe.fileName,Le=Xe.line;break}}ke<0||Le<0||!Be||!Ae||Be!==Ae||ke>=Le||(L=function(et){if(u.test(et))return!0;var ft=le(et);return!!(ft&&ft.fileName===Be&&ke<=ft.line&&ft.line<=Le)})}}function oe(te){this._parent=te,this._promisesCreated=0;var ae=this._length=1+(te===void 0?0:te._length);we(this,oe),ae>32&&this.uncycle()}a.inherits(oe,Error),e.CapturedTrace=oe,oe.prototype.uncycle=function(){var te=this._length;if(!(te<2)){for(var ae=[],xe={},ye=0,ke=this;ke!==void 0;++ye)ae.push(ke),ke=ke._parent;te=this._length=ye;for(var ye=te-1;ye>=0;--ye){var Le=ae[ye].stack;xe[Le]===void 0&&(xe[Le]=ye)}for(var ye=0;ye<te;++ye){var Be=ae[ye].stack,Ae=xe[Be];if(Ae!==void 0&&Ae!==ye){Ae>0&&(ae[Ae-1]._parent=void 0,ae[Ae-1]._length=1),ae[ye]._parent=void 0,ae[ye]._length=1;var Ue=ye>0?ae[ye-1]:this;Ae<te-1?(Ue._parent=ae[Ae+1],Ue._parent.uncycle(),Ue._length=Ue._parent._length+1):(Ue._parent=void 0,Ue._length=1);for(var Xe=Ue._length+1,et=ye-2;et>=0;--et)ae[et]._length=Xe,Xe++;return}}}},oe.prototype.attachExtraTrace=function(te){if(!te.__stackCleaned__){this.uncycle();for(var ae=ge(te),xe=ae.message,ye=[ae.stack],ke=this;ke!==void 0;)ye.push(se(ke.stack.split(`
|
|
45
45
|
`))),ke=ke._parent;ie(ye),ee(ye),a.notEnumerableProp(te,"stack",re(xe,ye)),a.notEnumerableProp(te,"__stackCleaned__",!0)}};var we=(function(){var ae=/^\s*at\s*/,xe=function(Be,Ae){return typeof Be=="string"?Be:Ae.name!==void 0&&Ae.message!==void 0?Ae.toString():Q(Ae)};if(typeof Error.stackTraceLimit=="number"&&typeof Error.captureStackTrace=="function"){Error.stackTraceLimit+=6,d=ae,p=xe;var ye=Error.captureStackTrace;return L=function(Be){return u.test(Be)},function(Be,Ae){Error.stackTraceLimit+=6,ye(Be,Ae),Error.stackTraceLimit-=6}}var ke=new Error;if(typeof ke.stack=="string"&&ke.stack.split(`
|
|
46
46
|
`)[0].indexOf("stackDetection@")>=0)return d=/@/,p=xe,m=!0,function(Ae){Ae.stack=new Error().stack};var Le;try{throw new Error}catch(Be){Le="stack"in Be}return!("stack"in ke)&&Le&&typeof Error.stackTraceLimit=="number"?(d=ae,p=xe,function(Ae){Error.stackTraceLimit+=6;try{throw new Error}catch(Ue){Ae.stack=Ue.stack}Error.stackTraceLimit-=6}):(p=function(Be,Ae){return typeof Be=="string"?Be:(typeof Ae=="object"||typeof Ae=="function")&&Ae.name!==void 0&&Ae.message!==void 0?Ae.toString():Q(Ae)},null)})([]);typeof console<"u"&&typeof console.warn<"u"&&(g=function(te){console.warn(te)},a.isNode&&process.stderr.isTTY?g=function(te,ae){var xe=ae?"\x1B[33m":"\x1B[31m";console.warn(xe+te+`\x1B[0m
|
|
47
|
-
`)}:!a.isNode&&typeof new Error().stack=="string"&&(g=function(te,ae){console.warn("%c"+te,ae?"color: darkorange":"color: red")}));var Te={warnings:y,longStackTraces:!1,cancellation:!1,monitoring:!1};return b&&r.longStackTraces(),{longStackTraces:function(){return Te.longStackTraces},warnings:function(){return Te.warnings},cancellation:function(){return Te.cancellation},monitoring:function(){return Te.monitoring},propagateFromFunction:function(){return P},boundValueFunction:function(){return R},checkForgottenReturns:I,setBounds:me,warn:Z,deprecated:H,CapturedTrace:oe,fireDomEvent:A,fireGlobalEvent:E}}});var R2=be((
|
|
47
|
+
`)}:!a.isNode&&typeof new Error().stack=="string"&&(g=function(te,ae){console.warn("%c"+te,ae?"color: darkorange":"color: red")}));var Te={warnings:y,longStackTraces:!1,cancellation:!1,monitoring:!1};return b&&r.longStackTraces(),{longStackTraces:function(){return Te.longStackTraces},warnings:function(){return Te.warnings},cancellation:function(){return Te.cancellation},monitoring:function(){return Te.monitoring},propagateFromFunction:function(){return P},boundValueFunction:function(){return R},checkForgottenReturns:I,setBounds:me,warn:Z,deprecated:H,CapturedTrace:oe,fireDomEvent:A,fireGlobalEvent:E}}});var R2=be((CX,I2)=>{"use strict";I2.exports=function(r,e){var t=pt(),n=r.CancellationError,i=t.errorObj;function a(f,d,p){this.promise=f,this.type=d,this.handler=p,this.called=!1,this.cancelPromise=null}a.prototype.isFinallyHandler=function(){return this.type===0};function s(f){this.finallyHandler=f}s.prototype._resultCancelled=function(){o(this.finallyHandler)};function o(f,d){return f.cancelPromise!=null?(arguments.length>1?f.cancelPromise._reject(d):f.cancelPromise._cancel(),f.cancelPromise=null,!0):!1}function c(){return h.call(this,this.promise._target()._settledValue())}function u(f){if(!o(this,f))return i.e=f,i}function h(f){var d=this.promise,p=this.handler;if(!this.called){this.called=!0;var m=this.isFinallyHandler()?p.call(d._boundValue()):p.call(d._boundValue(),f);if(m!==void 0){d._setReturnedNonUndefined();var g=e(m,d);if(g instanceof r){if(this.cancelPromise!=null)if(g._isCancelled()){var x=new n("late cancellation observer");return d._attachExtraTrace(x),i.e=x,i}else g.isPending()&&g._attachCancellationCallback(new s(this));return g._then(c,u,void 0,this,void 0)}}}return d.isRejected()?(o(this),i.e=f,i):(o(this),f)}return r.prototype._passThrough=function(f,d,p,m){return typeof f!="function"?this.then():this._then(p,m,void 0,new a(this,d,f),void 0)},r.prototype.lastly=r.prototype.finally=function(f){return this._passThrough(f,0,h,h)},r.prototype.tap=function(f){return this._passThrough(f,1,h)},a}});var B2=be((FX,O2)=>{"use strict";O2.exports=function(r){var e=pt(),t=ha().keys,n=e.tryCatch,i=e.errorObj;function a(s,o,c){return function(u){var h=c._boundValue();e:for(var f=0;f<s.length;++f){var d=s[f];if(d===Error||d!=null&&d.prototype instanceof Error){if(u instanceof d)return n(o).call(h,u)}else if(typeof d=="function"){var p=n(d).call(h,u);if(p===i)return p;if(p)return n(o).call(h,u)}else if(e.isObject(u)){for(var m=t(d),g=0;g<m.length;++g){var x=m[g];if(d[x]!=u[x])continue e}return n(o).call(h,u)}}return r}}return a}});var Dg=be((kX,L2)=>{"use strict";var N2=pt(),YS=N2.maybeWrapAsError,KS=Qn(),ZS=KS.OperationalError,P2=ha();function JS(r){return r instanceof Error&&P2.getPrototypeOf(r)===Error.prototype}var QS=/^(?:name|message|stack|cause)$/;function e3(r){var e;if(JS(r)){e=new ZS(r),e.name=r.name,e.message=r.message,e.stack=r.stack;for(var t=P2.keys(r),n=0;n<t.length;++n){var i=t[n];QS.test(i)||(e[i]=r[i])}return e}return N2.markAsOriginatingFromRejection(r),r}function t3(r,e){return function(t,n){if(r!==null){if(t){var i=e3(YS(t));r._attachExtraTrace(i),r._reject(i)}else if(!e)r._fulfill(n);else{for(var a=arguments.length,s=new Array(Math.max(a-1,0)),o=1;o<a;++o)s[o-1]=arguments[o];r._fulfill(s)}r=null}}}L2.exports=t3});var W2=be((UX,M2)=>{"use strict";M2.exports=function(r,e,t,n,i){var a=pt(),s=a.tryCatch;r.method=function(o){if(typeof o!="function")throw new r.TypeError("expecting a function but got "+a.classString(o));return function(){var c=new r(e);c._captureStackTrace(),c._pushContext();var u=s(o).apply(this,arguments),h=c._popContext();return i.checkForgottenReturns(u,h,"Promise.method",c),c._resolveFromSyncValue(u),c}},r.attempt=r.try=function(o){if(typeof o!="function")return n("expecting a function but got "+a.classString(o));var c=new r(e);c._captureStackTrace(),c._pushContext();var u;if(arguments.length>1){i.deprecated("calling Promise.try with more than 1 argument");var h=arguments[1],f=arguments[2];u=a.isArray(h)?s(o).apply(f,h):s(o).call(f,h)}else u=s(o)();var d=c._popContext();return i.checkForgottenReturns(u,d,"Promise.try",c),c._resolveFromSyncValue(u),c},r.prototype._resolveFromSyncValue=function(o){o===a.errorObj?this._rejectCallback(o.e,!1):this._resolveCallback(o,!0)}}});var V2=be((IX,H2)=>{"use strict";H2.exports=function(r,e,t,n){var i=!1,a=function(u,h){this._reject(h)},s=function(u,h){h.promiseRejectionQueued=!0,h.bindingPromise._then(a,a,null,this,u)},o=function(u,h){(this._bitField&50397184)===0&&this._resolveCallback(h.target)},c=function(u,h){h.promiseRejectionQueued||this._reject(u)};r.prototype.bind=function(u){i||(i=!0,r.prototype._propagateFrom=n.propagateFromFunction(),r.prototype._boundValue=n.boundValueFunction());var h=t(u),f=new r(e);f._propagateFrom(this,1);var d=this._target();if(f._setBoundTo(h),h instanceof r){var p={promiseRejectionQueued:!1,promise:f,target:d,bindingPromise:h};d._then(e,s,void 0,f,p),h._then(o,c,void 0,f,p),f._setOnCancel(h)}else f._resolveCallback(d);return f},r.prototype._setBoundTo=function(u){u!==void 0?(this._bitField=this._bitField|2097152,this._boundTo=u):this._bitField=this._bitField&-2097153},r.prototype._isBound=function(){return(this._bitField&2097152)===2097152},r.bind=function(u,h){return r.resolve(h).bind(u)}}});var j2=be((RX,z2)=>{"use strict";z2.exports=function(r,e,t,n){var i=pt(),a=i.tryCatch,s=i.errorObj,o=r._async;r.prototype.break=r.prototype.cancel=function(){if(!n.cancellation())return this._warn("cancellation is disabled");for(var c=this,u=c;c._isCancellable();){if(!c._cancelBy(u)){u._isFollowing()?u._followee().cancel():u._cancelBranched();break}var h=c._cancellationParent;if(h==null||!h._isCancellable()){c._isFollowing()?c._followee().cancel():c._cancelBranched();break}else c._isFollowing()&&c._followee().cancel(),c._setWillBeCancelled(),u=c,c=h}},r.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--},r.prototype._enoughBranchesHaveCancelled=function(){return this._branchesRemainingToCancel===void 0||this._branchesRemainingToCancel<=0},r.prototype._cancelBy=function(c){return c===this?(this._branchesRemainingToCancel=0,this._invokeOnCancel(),!0):(this._branchHasCancelled(),this._enoughBranchesHaveCancelled()?(this._invokeOnCancel(),!0):!1)},r.prototype._cancelBranched=function(){this._enoughBranchesHaveCancelled()&&this._cancel()},r.prototype._cancel=function(){this._isCancellable()&&(this._setCancelled(),o.invoke(this._cancelPromises,this,void 0))},r.prototype._cancelPromises=function(){this._length()>0&&this._settlePromises()},r.prototype._unsetOnCancel=function(){this._onCancelField=void 0},r.prototype._isCancellable=function(){return this.isPending()&&!this._isCancelled()},r.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()},r.prototype._doInvokeOnCancel=function(c,u){if(i.isArray(c))for(var h=0;h<c.length;++h)this._doInvokeOnCancel(c[h],u);else if(c!==void 0)if(typeof c=="function"){if(!u){var f=a(c).call(this._boundValue());f===s&&(this._attachExtraTrace(f.e),o.throwLater(f.e))}}else c._resultCancelled(this)},r.prototype._invokeOnCancel=function(){var c=this._onCancel();this._unsetOnCancel(),o.invoke(this._doInvokeOnCancel,this,c)},r.prototype._invokeInternalOnCancel=function(){this._isCancellable()&&(this._doInvokeOnCancel(this._onCancel(),!0),this._unsetOnCancel())},r.prototype._resultCancelled=function(){this.cancel()}}});var X2=be((OX,G2)=>{"use strict";G2.exports=function(r){function e(){return this.value}function t(){throw this.reason}r.prototype.return=r.prototype.thenReturn=function(n){return n instanceof r&&n.suppressUnhandledRejections(),this._then(e,void 0,void 0,{value:n},void 0)},r.prototype.throw=r.prototype.thenThrow=function(n){return this._then(t,void 0,void 0,{reason:n},void 0)},r.prototype.catchThrow=function(n){if(arguments.length<=1)return this._then(void 0,t,void 0,{reason:n},void 0);var i=arguments[1],a=function(){throw i};return this.caught(n,a)},r.prototype.catchReturn=function(n){if(arguments.length<=1)return n instanceof r&&n.suppressUnhandledRejections(),this._then(void 0,e,void 0,{value:n},void 0);var i=arguments[1];i instanceof r&&i.suppressUnhandledRejections();var a=function(){return i};return this.caught(n,a)}}});var q2=be((BX,$2)=>{"use strict";$2.exports=function(r){function e(c){c!==void 0?(c=c._target(),this._bitField=c._bitField,this._settledValueField=c._isFateSealed()?c._settledValue():void 0):(this._bitField=0,this._settledValueField=void 0)}e.prototype._settledValue=function(){return this._settledValueField};var t=e.prototype.value=function(){if(!this.isFulfilled())throw new TypeError(`cannot get fulfillment value of a non-fulfilled promise
|
|
48
48
|
|
|
49
49
|
See http://goo.gl/MqrFmX
|
|
50
50
|
`);return this._settledValue()},n=e.prototype.error=e.prototype.reason=function(){if(!this.isRejected())throw new TypeError(`cannot get rejection reason of a non-rejected promise
|
|
51
51
|
|
|
52
52
|
See http://goo.gl/MqrFmX
|
|
53
|
-
`);return this._settledValue()},i=e.prototype.isFulfilled=function(){return(this._bitField&33554432)!==0},a=e.prototype.isRejected=function(){return(this._bitField&16777216)!==0},s=e.prototype.isPending=function(){return(this._bitField&50397184)===0},o=e.prototype.isResolved=function(){return(this._bitField&50331648)!==0};e.prototype.isCancelled=function(){return(this._bitField&8454144)!==0},r.prototype.__isCancelled=function(){return(this._bitField&65536)===65536},r.prototype._isCancelled=function(){return this._target().__isCancelled()},r.prototype.isCancelled=function(){return(this._target()._bitField&8454144)!==0},r.prototype.isPending=function(){return s.call(this._target())},r.prototype.isRejected=function(){return a.call(this._target())},r.prototype.isFulfilled=function(){return i.call(this._target())},r.prototype.isResolved=function(){return o.call(this._target())},r.prototype.value=function(){return t.call(this._target())},r.prototype.reason=function(){var c=this._target();return c._unsetRejectionIsUnhandled(),n.call(c)},r.prototype._value=function(){return this._settledValue()},r.prototype._reason=function(){return this._unsetRejectionIsUnhandled(),this._settledValue()},r.PromiseInspection=e}});var K2=be((
|
|
53
|
+
`);return this._settledValue()},i=e.prototype.isFulfilled=function(){return(this._bitField&33554432)!==0},a=e.prototype.isRejected=function(){return(this._bitField&16777216)!==0},s=e.prototype.isPending=function(){return(this._bitField&50397184)===0},o=e.prototype.isResolved=function(){return(this._bitField&50331648)!==0};e.prototype.isCancelled=function(){return(this._bitField&8454144)!==0},r.prototype.__isCancelled=function(){return(this._bitField&65536)===65536},r.prototype._isCancelled=function(){return this._target().__isCancelled()},r.prototype.isCancelled=function(){return(this._target()._bitField&8454144)!==0},r.prototype.isPending=function(){return s.call(this._target())},r.prototype.isRejected=function(){return a.call(this._target())},r.prototype.isFulfilled=function(){return i.call(this._target())},r.prototype.isResolved=function(){return o.call(this._target())},r.prototype.value=function(){return t.call(this._target())},r.prototype.reason=function(){var c=this._target();return c._unsetRejectionIsUnhandled(),n.call(c)},r.prototype._value=function(){return this._settledValue()},r.prototype._reason=function(){return this._unsetRejectionIsUnhandled(),this._settledValue()},r.PromiseInspection=e}});var K2=be((NX,Y2)=>{"use strict";Y2.exports=function(r,e,t,n,i,a){var s=pt(),o=s.canEvaluate,c=s.tryCatch,u=s.errorObj,h;if(o){for(var f=function(b){return new Function("value","holder",`
|
|
54
54
|
'use strict';
|
|
55
55
|
holder.pIndex = value;
|
|
56
56
|
holder.checkFulfillment(this);
|
|
@@ -102,7 +102,7 @@ __p+='`),u}),a+=`';
|
|
|
102
102
|
|
|
103
103
|
return [TheName];
|
|
104
104
|
}(tryCatch, errorObj, Promise, async);
|
|
105
|
-
`;return C=C.replace(/\[TheName\]/g,S).replace(/\[TheTotal\]/g,b).replace(/\[ThePassedArguments\]/g,T).replace(/\[TheProperties\]/g,A).replace(/\[CancellationCode\]/g,E),new Function("tryCatch","errorObj","Promise","async",C)(c,u,r,i)},m=[],g=[],x=[],y=0;y<8;++y)m.push(p(y+1)),g.push(f(y+1)),x.push(d(y+1));h=function(b){this._reject(b)}}r.join=function(){var b=arguments.length-1,v;if(b>0&&typeof arguments[b]=="function"&&(v=arguments[b],b<=8&&o)){var q=new r(n);q._captureStackTrace();for(var _=m[b-1],A=new _(v),E=g,T=0;T<b;++T){var S=t(arguments[T],q);if(S instanceof r){S=S._target();var C=S._bitField;(C&50397184)===0?(S._then(E[T],h,void 0,q,A),x[T](S,A),A.asyncNeeded=!1):(C&33554432)!==0?E[T].call(q,S._value(),A):(C&16777216)!==0?q._reject(S._reason()):q._cancel()}else E[T].call(q,S,A)}if(!q._isFateSealed()){if(A.asyncNeeded){var F=a();F!==null&&(A.fn=s.domainBind(F,A.fn))}q._setAsyncGuaranteed(),q._setOnCancel(A)}return q}for(var k=arguments.length,D=new Array(k),B=0;B<k;++B)D[B]=arguments[B];v&&D.pop();var q=new e(D).promise();return v!==void 0?q.spread(v):q}}});var J2=be((
|
|
105
|
+
`;return C=C.replace(/\[TheName\]/g,S).replace(/\[TheTotal\]/g,b).replace(/\[ThePassedArguments\]/g,T).replace(/\[TheProperties\]/g,A).replace(/\[CancellationCode\]/g,E),new Function("tryCatch","errorObj","Promise","async",C)(c,u,r,i)},m=[],g=[],x=[],y=0;y<8;++y)m.push(p(y+1)),g.push(f(y+1)),x.push(d(y+1));h=function(b){this._reject(b)}}r.join=function(){var b=arguments.length-1,v;if(b>0&&typeof arguments[b]=="function"&&(v=arguments[b],b<=8&&o)){var q=new r(n);q._captureStackTrace();for(var _=m[b-1],A=new _(v),E=g,T=0;T<b;++T){var S=t(arguments[T],q);if(S instanceof r){S=S._target();var C=S._bitField;(C&50397184)===0?(S._then(E[T],h,void 0,q,A),x[T](S,A),A.asyncNeeded=!1):(C&33554432)!==0?E[T].call(q,S._value(),A):(C&16777216)!==0?q._reject(S._reason()):q._cancel()}else E[T].call(q,S,A)}if(!q._isFateSealed()){if(A.asyncNeeded){var F=a();F!==null&&(A.fn=s.domainBind(F,A.fn))}q._setAsyncGuaranteed(),q._setOnCancel(A)}return q}for(var k=arguments.length,D=new Array(k),B=0;B<k;++B)D[B]=arguments[B];v&&D.pop();var q=new e(D).promise();return v!==void 0?q.spread(v):q}}});var J2=be((PX,Z2)=>{"use strict";Z2.exports=function(r,e,t,n,i,a){var s=r._getDomain,o=pt(),c=o.tryCatch,u=o.errorObj,h=r._async;function f(p,m,g,x){this.constructor$(p),this._promise._captureStackTrace();var y=s();this._callback=y===null?m:o.domainBind(y,m),this._preservedValues=x===i?new Array(this.length()):null,this._limit=g,this._inFlight=0,this._queue=[],h.invoke(this._asyncInit,this,void 0)}o.inherits(f,e),f.prototype._asyncInit=function(){this._init$(void 0,-2)},f.prototype._init=function(){},f.prototype._promiseFulfilled=function(p,m){var g=this._values,x=this.length(),y=this._preservedValues,b=this._limit;if(m<0){if(m=m*-1-1,g[m]=p,b>=1&&(this._inFlight--,this._drainQueue(),this._isResolved()))return!0}else{if(b>=1&&this._inFlight>=b)return g[m]=p,this._queue.push(m),!1;y!==null&&(y[m]=p);var v=this._promise,_=this._callback,A=v._boundValue();v._pushContext();var E=c(_).call(A,p,m,x),T=v._popContext();if(a.checkForgottenReturns(E,T,y!==null?"Promise.filter":"Promise.map",v),E===u)return this._reject(E.e),!0;var S=n(E,this._promise);if(S instanceof r){S=S._target();var C=S._bitField;if((C&50397184)===0)return b>=1&&this._inFlight++,g[m]=S,S._proxy(this,(m+1)*-1),!1;if((C&33554432)!==0)E=S._value();else return(C&16777216)!==0?(this._reject(S._reason()),!0):(this._cancel(),!0)}g[m]=E}var F=++this._totalResolved;return F>=x?(y!==null?this._filter(g,y):this._resolve(g),!0):!1},f.prototype._drainQueue=function(){for(var p=this._queue,m=this._limit,g=this._values;p.length>0&&this._inFlight<m;){if(this._isResolved())return;var x=p.pop();this._promiseFulfilled(g[x],x)}},f.prototype._filter=function(p,m){for(var g=m.length,x=new Array(g),y=0,b=0;b<g;++b)p[b]&&(x[y++]=m[b]);x.length=y,this._resolve(x)},f.prototype.preservedValues=function(){return this._preservedValues};function d(p,m,g,x){if(typeof m!="function")return t("expecting a function but got "+o.classString(m));var y=0;if(g!==void 0)if(typeof g=="object"&&g!==null){if(typeof g.concurrency!="number")return r.reject(new TypeError("'concurrency' must be a number but it is "+o.classString(g.concurrency)));y=g.concurrency}else return r.reject(new TypeError("options argument must be an object but it is "+o.classString(g)));return y=typeof y=="number"&&isFinite(y)&&y>=1?y:0,new f(p,m,y,x).promise()}r.prototype.map=function(p,m){return d(this,p,m,null)},r.map=function(p,m,g,x){return d(p,m,g,x)}}});var ey=be((LX,Q2)=>{"use strict";var Tg=Object.create;Tg&&(Eg=Tg(null),Ag=Tg(null),Eg[" size"]=Ag[" size"]=0);var Eg,Ag;Q2.exports=function(r){var e=pt(),t=e.canEvaluate,n=e.isIdentifier,i,a,s=function(p){return new Function("ensureMethod",`
|
|
106
106
|
return function(obj) {
|
|
107
107
|
'use strict'
|
|
108
108
|
var len = this.length;
|
|
@@ -119,7 +119,7 @@ __p+='`),u}),a+=`';
|
|
|
119
119
|
`.replace(/methodName/g,p))(u)},o=function(p){return new Function("obj",`
|
|
120
120
|
'use strict';
|
|
121
121
|
return obj.propertyName;
|
|
122
|
-
`.replace("propertyName",p))},c=function(p,m,g){var x=g[p];if(typeof x!="function"){if(!n(p))return null;if(x=m(p),g[p]=x,g[" size"]++,g[" size"]>512){for(var y=Object.keys(g),b=0;b<256;++b)delete g[y[b]];g[" size"]=y.length-256}}return x};i=function(p){return c(p,s,Eg)},a=function(p){return c(p,o,Ag)};function u(p,m){var g;if(p!=null&&(g=p[m]),typeof g!="function"){var x="Object "+e.classString(p)+" has no method '"+e.toString(m)+"'";throw new r.TypeError(x)}return g}function h(p){var m=this.pop(),g=u(p,m);return g.apply(p,this)}r.prototype.call=function(p){for(var m=arguments.length,g=new Array(Math.max(m-1,0)),x=1;x<m;++x)g[x-1]=arguments[x];if(t){var y=i(p);if(y!==null)return this._then(y,void 0,void 0,g,void 0)}return g.push(p),this._then(h,void 0,void 0,g,void 0)};function f(p){return p[this]}function d(p){var m=+this;return m<0&&(m=Math.max(0,m+p.length)),p[m]}r.prototype.get=function(p){var m=typeof p=="number",g;if(m)g=d;else if(t){var x=a(p);g=x!==null?x:f}else g=f;return this._then(g,void 0,void 0,p,void 0)}}});var ry=be((
|
|
122
|
+
`.replace("propertyName",p))},c=function(p,m,g){var x=g[p];if(typeof x!="function"){if(!n(p))return null;if(x=m(p),g[p]=x,g[" size"]++,g[" size"]>512){for(var y=Object.keys(g),b=0;b<256;++b)delete g[y[b]];g[" size"]=y.length-256}}return x};i=function(p){return c(p,s,Eg)},a=function(p){return c(p,o,Ag)};function u(p,m){var g;if(p!=null&&(g=p[m]),typeof g!="function"){var x="Object "+e.classString(p)+" has no method '"+e.toString(m)+"'";throw new r.TypeError(x)}return g}function h(p){var m=this.pop(),g=u(p,m);return g.apply(p,this)}r.prototype.call=function(p){for(var m=arguments.length,g=new Array(Math.max(m-1,0)),x=1;x<m;++x)g[x-1]=arguments[x];if(t){var y=i(p);if(y!==null)return this._then(y,void 0,void 0,g,void 0)}return g.push(p),this._then(h,void 0,void 0,g,void 0)};function f(p){return p[this]}function d(p){var m=+this;return m<0&&(m=Math.max(0,m+p.length)),p[m]}r.prototype.get=function(p){var m=typeof p=="number",g;if(m)g=d;else if(t){var x=a(p);g=x!==null?x:f}else g=f;return this._then(g,void 0,void 0,p,void 0)}}});var ry=be((MX,ty)=>{"use strict";ty.exports=function(r,e,t,n,i,a){var s=pt(),o=Qn().TypeError,c=pt().inherits,u=s.errorObj,h=s.tryCatch,f={};function d(v){setTimeout(function(){throw v},0)}function p(v){var _=t(v);return _!==v&&typeof v._isDisposable=="function"&&typeof v._getDisposer=="function"&&v._isDisposable()&&_._setDisposable(v._getDisposer()),_}function m(v,_){var A=0,E=v.length,T=new r(i);function S(){if(A>=E)return T._fulfill();var C=p(v[A++]);if(C instanceof r&&C._isDisposable()){try{C=t(C._getDisposer().tryDispose(_),v.promise)}catch(F){return d(F)}if(C instanceof r)return C._then(S,d,null,null,null)}S()}return S(),T}function g(v,_,A){this._data=v,this._promise=_,this._context=A}g.prototype.data=function(){return this._data},g.prototype.promise=function(){return this._promise},g.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():f},g.prototype.tryDispose=function(v){var _=this.resource(),A=this._context;A!==void 0&&A._pushContext();var E=_!==f?this.doDispose(_,v):null;return A!==void 0&&A._popContext(),this._promise._unsetDisposable(),this._data=null,E},g.isDisposer=function(v){return v!=null&&typeof v.resource=="function"&&typeof v.tryDispose=="function"};function x(v,_,A){this.constructor$(v,_,A)}c(x,g),x.prototype.doDispose=function(v,_){var A=this.data();return A.call(v,v,_)};function y(v){return g.isDisposer(v)?(this.resources[this.index]._setDisposable(v),v.promise()):v}function b(v){this.length=v,this.promise=null,this[v-1]=null}b.prototype._resultCancelled=function(){for(var v=this.length,_=0;_<v;++_){var A=this[_];A instanceof r&&A.cancel()}},r.using=function(){var v=arguments.length;if(v<2)return e("you must pass at least 2 arguments to Promise.using");var _=arguments[v-1];if(typeof _!="function")return e("expecting a function but got "+s.classString(_));var A,E=!0;v===2&&Array.isArray(arguments[0])?(A=arguments[0],v=A.length,E=!1):(A=arguments,v--);for(var T=new b(v),S=0;S<v;++S){var C=A[S];if(g.isDisposer(C)){var F=C;C=C.promise(),C._setDisposable(F)}else{var k=t(C);k instanceof r&&(C=k._then(y,null,null,{resources:T,index:S},void 0))}T[S]=C}for(var D=new Array(T.length),S=0;S<D.length;++S)D[S]=r.resolve(T[S]).reflect();var B=r.all(D).then(function(j){for(var U=0;U<j.length;++U){var O=j[U];if(O.isRejected())return u.e=O.error(),u;if(!O.isFulfilled()){B.cancel();return}j[U]=O.value()}q._pushContext(),_=h(_);var P=E?_.apply(void 0,j):_(j),R=q._popContext();return a.checkForgottenReturns(P,R,"Promise.using",q),P}),q=B.lastly(function(){var j=new r.PromiseInspection(B);return m(T,j)});return T.promise=q,q._setOnCancel(T),q},r.prototype._setDisposable=function(v){this._bitField=this._bitField|131072,this._disposer=v},r.prototype._isDisposable=function(){return(this._bitField&131072)>0},r.prototype._getDisposer=function(){return this._disposer},r.prototype._unsetDisposable=function(){this._bitField=this._bitField&-131073,this._disposer=void 0},r.prototype.disposer=function(v){if(typeof v=="function")return new x(v,this,n());throw new o}}});var iy=be((WX,ny)=>{"use strict";ny.exports=function(r,e,t){var n=pt(),i=r.TimeoutError;function a(f){this.handle=f}a.prototype._resultCancelled=function(){clearTimeout(this.handle)};var s=function(f){return o(+this).thenReturn(f)},o=r.delay=function(f,d){var p,m;return d!==void 0?(p=r.resolve(d)._then(s,null,null,f,void 0),t.cancellation()&&d instanceof r&&p._setOnCancel(d)):(p=new r(e),m=setTimeout(function(){p._fulfill()},+f),t.cancellation()&&p._setOnCancel(new a(m)),p._captureStackTrace()),p._setAsyncGuaranteed(),p};r.prototype.delay=function(f){return o(f,this)};var c=function(f,d,p){var m;typeof d!="string"?d instanceof Error?m=d:m=new i("operation timed out"):m=new i(d),n.markAsOriginatingFromRejection(m),f._attachExtraTrace(m),f._reject(m),p?.cancel()};function u(f){return clearTimeout(this.handle),f}function h(f){throw clearTimeout(this.handle),f}r.prototype.timeout=function(f,d){f=+f;var p,m,g=new a(setTimeout(function(){p.isPending()&&c(p,d,m)},f));return t.cancellation()?(m=this.then(),p=m._then(u,h,void 0,g,void 0),p._setOnCancel(g)):p=this._then(u,h,void 0,g,void 0),p}}});var sy=be((HX,ay)=>{"use strict";ay.exports=function(r,e,t,n,i,a){var s=Qn(),o=s.TypeError,c=pt(),u=c.errorObj,h=c.tryCatch,f=[];function d(m,g,x){for(var y=0;y<g.length;++y){x._pushContext();var b=h(g[y])(m);if(x._popContext(),b===u){x._pushContext();var v=r.reject(u.e);return x._popContext(),v}var _=n(b,x);if(_ instanceof r)return _}return null}function p(m,g,x,y){if(a.cancellation()){var b=new r(t),v=this._finallyPromise=new r(t);this._promise=b.lastly(function(){return v}),b._captureStackTrace(),b._setOnCancel(this)}else{var _=this._promise=new r(t);_._captureStackTrace()}this._stack=y,this._generatorFunction=m,this._receiver=g,this._generator=void 0,this._yieldHandlers=typeof x=="function"?[x].concat(f):f,this._yieldedPromise=null,this._cancellationPhase=!1}c.inherits(p,i),p.prototype._isResolved=function(){return this._promise===null},p.prototype._cleanup=function(){this._promise=this._generator=null,a.cancellation()&&this._finallyPromise!==null&&(this._finallyPromise._fulfill(),this._finallyPromise=null)},p.prototype._promiseCancelled=function(){if(!this._isResolved()){var m=typeof this._generator.return<"u",g;if(m)this._promise._pushContext(),g=h(this._generator.return).call(this._generator,void 0),this._promise._popContext();else{var x=new r.CancellationError("generator .return() sentinel");r.coroutine.returnSentinel=x,this._promise._attachExtraTrace(x),this._promise._pushContext(),g=h(this._generator.throw).call(this._generator,x),this._promise._popContext()}this._cancellationPhase=!0,this._yieldedPromise=null,this._continue(g)}},p.prototype._promiseFulfilled=function(m){this._yieldedPromise=null,this._promise._pushContext();var g=h(this._generator.next).call(this._generator,m);this._promise._popContext(),this._continue(g)},p.prototype._promiseRejected=function(m){this._yieldedPromise=null,this._promise._attachExtraTrace(m),this._promise._pushContext();var g=h(this._generator.throw).call(this._generator,m);this._promise._popContext(),this._continue(g)},p.prototype._resultCancelled=function(){if(this._yieldedPromise instanceof r){var m=this._yieldedPromise;this._yieldedPromise=null,m.cancel()}},p.prototype.promise=function(){return this._promise},p.prototype._run=function(){this._generator=this._generatorFunction.call(this._receiver),this._receiver=this._generatorFunction=void 0,this._promiseFulfilled(void 0)},p.prototype._continue=function(m){var g=this._promise;if(m===u)return this._cleanup(),this._cancellationPhase?g.cancel():g._rejectCallback(m.e,!1);var x=m.value;if(m.done===!0)return this._cleanup(),this._cancellationPhase?g.cancel():g._resolveCallback(x);var y=n(x,this._promise);if(!(y instanceof r)&&(y=d(y,this._yieldHandlers,this._promise),y===null)){this._promiseRejected(new o(`A value %s was yielded that could not be treated as a promise
|
|
123
123
|
|
|
124
124
|
See http://goo.gl/MqrFmX
|
|
125
125
|
|
|
@@ -132,7 +132,7 @@ __p+='`),u}),a+=`';
|
|
|
132
132
|
`);var x=Object(g).yieldHandler,y=p,b=new Error().stack;return function(){var v=m.apply(this,arguments),_=new y(void 0,void 0,x,b),A=_.promise();return _._generator=v,_._promiseFulfilled(void 0),A}},r.coroutine.addYieldHandler=function(m){if(typeof m!="function")throw new o("expecting a function but got "+c.classString(m));f.push(m)},r.spawn=function(m){if(a.deprecated("Promise.spawn()","Promise.coroutine()"),typeof m!="function")return e(`generatorFunction must be a function
|
|
133
133
|
|
|
134
134
|
See http://goo.gl/MqrFmX
|
|
135
|
-
`);var g=new p(m,this),x=g.promise();return g._run(r.spawn),x}}});var cy=be((
|
|
135
|
+
`);var g=new p(m,this),x=g.promise();return g._run(r.spawn),x}}});var cy=be((VX,oy)=>{"use strict";oy.exports=function(r){var e=pt(),t=r._async,n=e.tryCatch,i=e.errorObj;function a(c,u){var h=this;if(!e.isArray(c))return s.call(h,c,u);var f=n(u).apply(h._boundValue(),[null].concat(c));f===i&&t.throwLater(f.e)}function s(c,u){var h=this,f=h._boundValue(),d=c===void 0?n(u).call(f,null):n(u).call(f,null,c);d===i&&t.throwLater(d.e)}function o(c,u){var h=this;if(!c){var f=new Error(c+"");f.cause=c,c=f}var d=n(u).call(h._boundValue(),c);d===i&&t.throwLater(d.e)}r.prototype.asCallback=r.prototype.nodeify=function(c,u){if(typeof c=="function"){var h=s;u!==void 0&&Object(u).spread&&(h=a),this._then(h,o,void 0,this,c)}return this}}});var uy=be((zX,ly)=>{"use strict";ly.exports=function(r,e){var t={},n=pt(),i=Dg(),a=n.withAppended,s=n.maybeWrapAsError,o=n.canEvaluate,c=Qn().TypeError,u="Async",h={__isPromisified__:!0},f=["arity","length","name","arguments","caller","callee","prototype","__isPromisified__"],d=new RegExp("^(?:"+f.join("|")+")$"),p=function(B){return n.isIdentifier(B)&&B.charAt(0)!=="_"&&B!=="constructor"};function m(B){return!d.test(B)}function g(B){try{return B.__isPromisified__===!0}catch{return!1}}function x(B,q,j){var U=n.getDataPropertyOrDefault(B,q+j,h);return U?g(U):!1}function y(B,q,j){for(var U=0;U<B.length;U+=2){var O=B[U];if(j.test(O)){for(var P=O.replace(j,""),R=0;R<B.length;R+=2)if(B[R]===P)throw new c(`Cannot promisify an API that has normal methods with '%s'-suffix
|
|
136
136
|
|
|
137
137
|
See http://goo.gl/MqrFmX
|
|
138
138
|
`.replace("%s",q))}}}function b(B,q,j,U){for(var O=n.inheritedDataKeys(B),P=[],R=0;R<O.length;++R){var N=O[R],z=B[N],I=U===p?!0:p(N,z,B);typeof z=="function"&&!g(z)&&!x(B,N,q)&&U(N,z,B,I)&&P.push(N,z)}return y(P,q,j),P}var v=function(B){return B.replace(/([$])/,"\\$")},_,A=function(B){for(var q=[B],j=Math.max(0,B-1-3),U=B-1;U>=j;--U)q.push(U);for(var U=B+1;U<=3;++U)q.push(U);return q},E=function(B){return n.filledRange(B,"_arg","")},T=function(B){return n.filledRange(Math.max(B,3),"_arg","")},S=function(B){return typeof B.length=="number"?Math.max(Math.min(B.length,1024),0):0};_=function(B,q,j,U,O,P){var R=Math.max(0,S(U)-1),N=A(R),z=typeof B=="string"||q===t;function I(ee){var ie=E(ee).join(", "),se=ee>0?", ":"",de;return z?de=`ret = callback.call(this, {{args}}, nodeback); break;
|
|
@@ -176,27 +176,27 @@ __p+='`),u}),a+=`';
|
|
|
176
176
|
`);q=Object(q);var j=!!q.multiArgs,U=q.suffix;typeof U!="string"&&(U=u);var O=q.filter;typeof O!="function"&&(O=p);var P=q.promisifier;if(typeof P!="function"&&(P=F),!n.isIdentifier(U))throw new RangeError(`suffix must be a valid identifier
|
|
177
177
|
|
|
178
178
|
See http://goo.gl/MqrFmX
|
|
179
|
-
`);for(var R=n.inheritedDataKeys(B),N=0;N<R.length;++N){var z=B[R[N]];R[N]!=="constructor"&&n.isClass(z)&&(k(z.prototype,U,O,P,j),k(z,U,O,P,j))}return k(B,U,O,P,j)}}});var fy=be((
|
|
179
|
+
`);for(var R=n.inheritedDataKeys(B),N=0;N<R.length;++N){var z=B[R[N]];R[N]!=="constructor"&&n.isClass(z)&&(k(z.prototype,U,O,P,j),k(z,U,O,P,j))}return k(B,U,O,P,j)}}});var fy=be((jX,hy)=>{"use strict";hy.exports=function(r,e,t,n){var i=pt(),a=i.isObject,s=ha(),o;typeof Map=="function"&&(o=Map);var c=(function(){var d=0,p=0;function m(g,x){this[d]=g,this[d+p]=x,d++}return function(x){p=x.size,d=0;var y=new Array(x.size*2);return x.forEach(m,y),y}})(),u=function(d){for(var p=new o,m=d.length/2|0,g=0;g<m;++g){var x=d[m+g],y=d[g];p.set(x,y)}return p};function h(d){var p=!1,m;if(o!==void 0&&d instanceof o)m=c(d),p=!0;else{var g=s.keys(d),x=g.length;m=new Array(x*2);for(var y=0;y<x;++y){var b=g[y];m[y]=d[b],m[y+x]=b}}this.constructor$(m),this._isMap=p,this._init$(void 0,-3)}i.inherits(h,e),h.prototype._init=function(){},h.prototype._promiseFulfilled=function(d,p){this._values[p]=d;var m=++this._totalResolved;if(m>=this._length){var g;if(this._isMap)g=u(this._values);else{g={};for(var x=this.length(),y=0,b=this.length();y<b;++y)g[this._values[y+x]]=this._values[y]}return this._resolve(g),!0}return!1},h.prototype.shouldCopyValues=function(){return!1},h.prototype.getActualLength=function(d){return d>>1};function f(d){var p,m=t(d);if(a(m))m instanceof r?p=m._then(r.props,void 0,void 0,void 0,void 0):p=new h(m).promise();else return n(`cannot await properties of a non-object
|
|
180
180
|
|
|
181
181
|
See http://goo.gl/MqrFmX
|
|
182
|
-
`);return m instanceof r&&p._propagateFrom(m,2),p}r.prototype.props=function(){return f(this)},r.props=function(d){return f(d)}}});var py=be((
|
|
182
|
+
`);return m instanceof r&&p._propagateFrom(m,2),p}r.prototype.props=function(){return f(this)},r.props=function(d){return f(d)}}});var py=be((GX,dy)=>{"use strict";dy.exports=function(r,e,t,n){var i=pt(),a=function(o){return o.then(function(c){return s(c,o)})};function s(o,c){var u=t(o);if(u instanceof r)return a(u);if(o=i.asArray(o),o===null)return n("expecting an array or an iterable object but got "+i.classString(o));var h=new r(e);c!==void 0&&h._propagateFrom(c,3);for(var f=h._fulfill,d=h._reject,p=0,m=o.length;p<m;++p){var g=o[p];g===void 0&&!(p in o)||r.cast(g)._then(f,d,void 0,h,null)}return h}r.race=function(o){return s(o,void 0)},r.prototype.race=function(){return s(this,void 0)}}});var my=be((XX,gy)=>{"use strict";gy.exports=function(r,e,t,n,i,a){var s=r._getDomain,o=pt(),c=o.tryCatch;function u(m,g,x,y){this.constructor$(m);var b=s();this._fn=b===null?g:o.domainBind(b,g),x!==void 0&&(x=r.resolve(x),x._attachCancellationCallback(this)),this._initialValue=x,this._currentCancellable=null,y===i?this._eachValues=Array(this._length):y===0?this._eachValues=null:this._eachValues=void 0,this._promise._captureStackTrace(),this._init$(void 0,-5)}o.inherits(u,e),u.prototype._gotAccum=function(m){this._eachValues!==void 0&&this._eachValues!==null&&m!==i&&this._eachValues.push(m)},u.prototype._eachComplete=function(m){return this._eachValues!==null&&this._eachValues.push(m),this._eachValues},u.prototype._init=function(){},u.prototype._resolveEmptyArray=function(){this._resolve(this._eachValues!==void 0?this._eachValues:this._initialValue)},u.prototype.shouldCopyValues=function(){return!1},u.prototype._resolve=function(m){this._promise._resolveCallback(m),this._values=null},u.prototype._resultCancelled=function(m){if(m===this._initialValue)return this._cancel();this._isResolved()||(this._resultCancelled$(),this._currentCancellable instanceof r&&this._currentCancellable.cancel(),this._initialValue instanceof r&&this._initialValue.cancel())},u.prototype._iterate=function(m){this._values=m;var g,x,y=m.length;if(this._initialValue!==void 0?(g=this._initialValue,x=0):(g=r.resolve(m[0]),x=1),this._currentCancellable=g,!g.isRejected())for(;x<y;++x){var b={accum:null,value:m[x],index:x,length:y,array:this};g=g._then(d,void 0,void 0,b,void 0)}this._eachValues!==void 0&&(g=g._then(this._eachComplete,void 0,void 0,this,void 0)),g._then(h,h,void 0,g,this)},r.prototype.reduce=function(m,g){return f(this,m,g,null)},r.reduce=function(m,g,x,y){return f(m,g,x,y)};function h(m,g){this.isFulfilled()?g._resolve(m):g._reject(m)}function f(m,g,x,y){if(typeof g!="function")return t("expecting a function but got "+o.classString(g));var b=new u(m,g,x,y);return b.promise()}function d(m){this.accum=m,this.array._gotAccum(m);var g=n(this.value,this.array._promise);return g instanceof r?(this.array._currentCancellable=g,g._then(p,void 0,void 0,this,void 0)):p.call(this,g)}function p(m){var g=this.array,x=g._promise,y=c(g._fn);x._pushContext();var b;g._eachValues!==void 0?b=y.call(x._boundValue(),m,this.index,this.length):b=y.call(x._boundValue(),this.accum,m,this.index,this.length),b instanceof r&&(g._currentCancellable=b);var v=x._popContext();return a.checkForgottenReturns(b,v,g._eachValues!==void 0?"Promise.each":"Promise.reduce",x),b}}});var vy=be(($X,xy)=>{"use strict";xy.exports=function(r,e,t){var n=r.PromiseInspection,i=pt();function a(s){this.constructor$(s)}i.inherits(a,e),a.prototype._promiseResolved=function(s,o){this._values[s]=o;var c=++this._totalResolved;return c>=this._length?(this._resolve(this._values),!0):!1},a.prototype._promiseFulfilled=function(s,o){var c=new n;return c._bitField=33554432,c._settledValueField=s,this._promiseResolved(o,c)},a.prototype._promiseRejected=function(s,o){var c=new n;return c._bitField=16777216,c._settledValueField=s,this._promiseResolved(o,c)},r.settle=function(s){return t.deprecated(".settle()",".reflect()"),new a(s).promise()},r.prototype.settle=function(){return r.settle(this)}}});var by=be((qX,yy)=>{"use strict";yy.exports=function(r,e,t){var n=pt(),i=Qn().RangeError,a=Qn().AggregateError,s=n.isArray,o={};function c(h){this.constructor$(h),this._howMany=0,this._unwrap=!1,this._initialized=!1}n.inherits(c,e),c.prototype._init=function(){if(this._initialized){if(this._howMany===0){this._resolve([]);return}this._init$(void 0,-5);var h=s(this._values);!this._isResolved()&&h&&this._howMany>this._canPossiblyFulfill()&&this._reject(this._getRangeError(this.length()))}},c.prototype.init=function(){this._initialized=!0,this._init()},c.prototype.setUnwrap=function(){this._unwrap=!0},c.prototype.howMany=function(){return this._howMany},c.prototype.setHowMany=function(h){this._howMany=h},c.prototype._promiseFulfilled=function(h){return this._addFulfilled(h),this._fulfilled()===this.howMany()?(this._values.length=this.howMany(),this.howMany()===1&&this._unwrap?this._resolve(this._values[0]):this._resolve(this._values),!0):!1},c.prototype._promiseRejected=function(h){return this._addRejected(h),this._checkOutcome()},c.prototype._promiseCancelled=function(){return this._values instanceof r||this._values==null?this._cancel():(this._addRejected(o),this._checkOutcome())},c.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){for(var h=new a,f=this.length();f<this._values.length;++f)this._values[f]!==o&&h.push(this._values[f]);return h.length>0?this._reject(h):this._cancel(),!0}return!1},c.prototype._fulfilled=function(){return this._totalResolved},c.prototype._rejected=function(){return this._values.length-this.length()},c.prototype._addRejected=function(h){this._values.push(h)},c.prototype._addFulfilled=function(h){this._values[this._totalResolved++]=h},c.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()},c.prototype._getRangeError=function(h){var f="Input array must contain at least "+this._howMany+" items but contains only "+h+" items";return new i(f)},c.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))};function u(h,f){if((f|0)!==f||f<0)return t(`expecting a positive integer
|
|
183
183
|
|
|
184
184
|
See http://goo.gl/MqrFmX
|
|
185
|
-
`);var d=new c(h),p=d.promise();return d.setHowMany(f),d.init(),p}r.some=function(h,f){return u(h,f)},r.prototype.some=function(h){return u(this,h)},r._SomePromiseArray=c}});var _y=be((
|
|
185
|
+
`);var d=new c(h),p=d.promise();return d.setHowMany(f),d.init(),p}r.some=function(h,f){return u(h,f)},r.prototype.some=function(h){return u(this,h)},r._SomePromiseArray=c}});var _y=be((YX,wy)=>{"use strict";wy.exports=function(r,e){var t=r.map;r.prototype.filter=function(n,i){return t(this,n,i,e)},r.filter=function(n,i,a){return t(n,i,a,e)}}});var Ty=be((KX,Dy)=>{"use strict";Dy.exports=function(r,e){var t=r.reduce,n=r.all;function i(){return n(this)}function a(s,o){return t(s,o,e,e)}r.prototype.each=function(s){return t(this,s,e,0)._then(i,void 0,void 0,this,void 0)},r.prototype.mapSeries=function(s){return t(this,s,e,e)},r.each=function(s,o){return t(s,o,e,0)._then(i,void 0,void 0,s,void 0)},r.mapSeries=a}});var Ay=be((ZX,Ey)=>{"use strict";Ey.exports=function(r){var e=r._SomePromiseArray;function t(n){var i=new e(n),a=i.promise();return i.setHowMany(1),i.setUnwrap(),i.init(),a}r.any=function(n){return t(n)},r.prototype.any=function(){return t(this)}}});var Sy=be((JX,Sg)=>{"use strict";Sg.exports=function(){var r=function(){return new f(`circular promise resolution chain
|
|
186
186
|
|
|
187
187
|
See http://goo.gl/MqrFmX
|
|
188
188
|
`)},e=function(){return new D.PromiseInspection(this._target())},t=function(U){return D.reject(new f(U))};function n(){}var i={},a=pt(),s;a.isNode?s=function(){var U=process.domain;return U===void 0&&(U=null),U}:s=function(){return null},a.notEnumerableProp(D,"_getDomain",s);var o=ha(),c=b2(),u=new c;o.defineProperty(D,"_async",{value:u});var h=Qn(),f=D.TypeError=h.TypeError;D.RangeError=h.RangeError;var d=D.CancellationError=h.CancellationError;D.TimeoutError=h.TimeoutError,D.OperationalError=h.OperationalError,D.RejectionError=h.OperationalError,D.AggregateError=h.AggregateError;var p=function(){},m={},g={},x=E2()(D,p),y=S2()(D,p,x,t,n),b=F2()(D),v=b.create,_=U2()(D,b),A=_.CapturedTrace,E=R2()(D,x),T=B2()(g),S=Dg(),C=a.errorObj,F=a.tryCatch;function k(U,O){if(typeof O!="function")throw new f("expecting a function but got "+a.classString(O));if(U.constructor!==D)throw new f(`the promise constructor cannot be invoked directly
|
|
189
189
|
|
|
190
190
|
See http://goo.gl/MqrFmX
|
|
191
191
|
`)}function D(U){this._bitField=0,this._fulfillmentHandler0=void 0,this._rejectionHandler0=void 0,this._promise0=void 0,this._receiver0=void 0,U!==p&&(k(this,U),this._resolveFromExecutor(U)),this._promiseCreated(),this._fireEvent("promiseCreated",this)}D.prototype.toString=function(){return"[object Promise]"},D.prototype.caught=D.prototype.catch=function(U){var O=arguments.length;if(O>1){var P=new Array(O-1),R=0,N;for(N=0;N<O-1;++N){var z=arguments[N];if(a.isObject(z))P[R++]=z;else return t("expecting an object but got A catch statement predicate "+a.classString(z))}return P.length=R,U=arguments[N],this.then(void 0,T(P,U,this))}return this.then(void 0,U)},D.prototype.reflect=function(){return this._then(e,e,void 0,this,void 0)},D.prototype.then=function(U,O){if(_.warnings()&&arguments.length>0&&typeof U!="function"&&typeof O!="function"){var P=".then() only accepts functions but was passed: "+a.classString(U);arguments.length>1&&(P+=", "+a.classString(O)),this._warn(P)}return this._then(U,O,void 0,void 0,void 0)},D.prototype.done=function(U,O){var P=this._then(U,O,void 0,void 0,void 0);P._setIsFinal()},D.prototype.spread=function(U){return typeof U!="function"?t("expecting a function but got "+a.classString(U)):this.all()._then(U,void 0,void 0,m,void 0)},D.prototype.toJSON=function(){var U={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};return this.isFulfilled()?(U.fulfillmentValue=this.value(),U.isFulfilled=!0):this.isRejected()&&(U.rejectionReason=this.reason(),U.isRejected=!0),U},D.prototype.all=function(){return arguments.length>0&&this._warn(".all() was passed arguments but it does not take any"),new y(this).promise()},D.prototype.error=function(U){return this.caught(a.originatesFromRejection,U)},D.getNewLibraryCopy=Sg.exports,D.is=function(U){return U instanceof D},D.fromNode=D.fromCallback=function(U){var O=new D(p);O._captureStackTrace();var P=arguments.length>1?!!Object(arguments[1]).multiArgs:!1,R=F(U)(S(O,P));return R===C&&O._rejectCallback(R.e,!0),O._isFateSealed()||O._setAsyncGuaranteed(),O},D.all=function(U){return new y(U).promise()},D.cast=function(U){var O=x(U);return O instanceof D||(O=new D(p),O._captureStackTrace(),O._setFulfilled(),O._rejectionHandler0=U),O},D.resolve=D.fulfilled=D.cast,D.reject=D.rejected=function(U){var O=new D(p);return O._captureStackTrace(),O._rejectCallback(U,!0),O},D.setScheduler=function(U){if(typeof U!="function")throw new f("expecting a function but got "+a.classString(U));return u.setScheduler(U)},D.prototype._then=function(U,O,P,R,N){var z=N!==void 0,I=z?N:new D(p),H=this._target(),Z=H._bitField;z||(I._propagateFrom(this,3),I._captureStackTrace(),R===void 0&&(this._bitField&2097152)!==0&&((Z&50397184)!==0?R=this._boundValue():R=H===this?void 0:this._boundTo),this._fireEvent("promiseChained",this,I));var re=s();if((Z&50397184)!==0){var ee,ie,se=H._settlePromiseCtx;(Z&33554432)!==0?(ie=H._rejectionHandler0,ee=U):(Z&16777216)!==0?(ie=H._fulfillmentHandler0,ee=O,H._unsetRejectionIsUnhandled()):(se=H._settlePromiseLateCancellationObserver,ie=new d("late cancellation observer"),H._attachExtraTrace(ie),ee=O),u.invoke(se,H,{handler:re===null?ee:typeof ee=="function"&&a.domainBind(re,ee),promise:I,receiver:R,value:ie})}else H._addCallbacks(U,O,I,R,re);return I},D.prototype._length=function(){return this._bitField&65535},D.prototype._isFateSealed=function(){return(this._bitField&117506048)!==0},D.prototype._isFollowing=function(){return(this._bitField&67108864)===67108864},D.prototype._setLength=function(U){this._bitField=this._bitField&-65536|U&65535},D.prototype._setFulfilled=function(){this._bitField=this._bitField|33554432,this._fireEvent("promiseFulfilled",this)},D.prototype._setRejected=function(){this._bitField=this._bitField|16777216,this._fireEvent("promiseRejected",this)},D.prototype._setFollowing=function(){this._bitField=this._bitField|67108864,this._fireEvent("promiseResolved",this)},D.prototype._setIsFinal=function(){this._bitField=this._bitField|4194304},D.prototype._isFinal=function(){return(this._bitField&4194304)>0},D.prototype._unsetCancelled=function(){this._bitField=this._bitField&-65537},D.prototype._setCancelled=function(){this._bitField=this._bitField|65536,this._fireEvent("promiseCancelled",this)},D.prototype._setWillBeCancelled=function(){this._bitField=this._bitField|8388608},D.prototype._setAsyncGuaranteed=function(){u.hasCustomScheduler()||(this._bitField=this._bitField|134217728)},D.prototype._receiverAt=function(U){var O=U===0?this._receiver0:this[U*4-4+3];if(O!==i)return O===void 0&&this._isBound()?this._boundValue():O},D.prototype._promiseAt=function(U){return this[U*4-4+2]},D.prototype._fulfillmentHandlerAt=function(U){return this[U*4-4+0]},D.prototype._rejectionHandlerAt=function(U){return this[U*4-4+1]},D.prototype._boundValue=function(){},D.prototype._migrateCallback0=function(U){var O=U._bitField,P=U._fulfillmentHandler0,R=U._rejectionHandler0,N=U._promise0,z=U._receiverAt(0);z===void 0&&(z=i),this._addCallbacks(P,R,N,z,null)},D.prototype._migrateCallbackAt=function(U,O){var P=U._fulfillmentHandlerAt(O),R=U._rejectionHandlerAt(O),N=U._promiseAt(O),z=U._receiverAt(O);z===void 0&&(z=i),this._addCallbacks(P,R,N,z,null)},D.prototype._addCallbacks=function(U,O,P,R,N){var z=this._length();if(z>=65531&&(z=0,this._setLength(0)),z===0)this._promise0=P,this._receiver0=R,typeof U=="function"&&(this._fulfillmentHandler0=N===null?U:a.domainBind(N,U)),typeof O=="function"&&(this._rejectionHandler0=N===null?O:a.domainBind(N,O));else{var I=z*4-4;this[I+2]=P,this[I+3]=R,typeof U=="function"&&(this[I+0]=N===null?U:a.domainBind(N,U)),typeof O=="function"&&(this[I+1]=N===null?O:a.domainBind(N,O))}return this._setLength(z+1),z},D.prototype._proxy=function(U,O){this._addCallbacks(void 0,void 0,O,U,null)},D.prototype._resolveCallback=function(U,O){if((this._bitField&117506048)===0){if(U===this)return this._rejectCallback(r(),!1);var P=x(U,this);if(!(P instanceof D))return this._fulfill(U);O&&this._propagateFrom(P,2);var R=P._target();if(R===this){this._reject(r());return}var N=R._bitField;if((N&50397184)===0){var z=this._length();z>0&&R._migrateCallback0(this);for(var I=1;I<z;++I)R._migrateCallbackAt(this,I);this._setFollowing(),this._setLength(0),this._setFollowee(R)}else if((N&33554432)!==0)this._fulfill(R._value());else if((N&16777216)!==0)this._reject(R._reason());else{var H=new d("late cancellation observer");R._attachExtraTrace(H),this._reject(H)}}},D.prototype._rejectCallback=function(U,O,P){var R=a.ensureErrorObject(U),N=R===U;if(!N&&!P&&_.warnings()){var z="a promise was rejected with a non-error: "+a.classString(U);this._warn(z,!0)}this._attachExtraTrace(R,O?N:!1),this._reject(U)},D.prototype._resolveFromExecutor=function(U){var O=this;this._captureStackTrace(),this._pushContext();var P=!0,R=this._execute(U,function(N){O._resolveCallback(N)},function(N){O._rejectCallback(N,P)});P=!1,this._popContext(),R!==void 0&&O._rejectCallback(R,!0)},D.prototype._settlePromiseFromHandler=function(U,O,P,R){var N=R._bitField;if((N&65536)===0){R._pushContext();var z;O===m?!P||typeof P.length!="number"?(z=C,z.e=new f("cannot .spread() a non-array: "+a.classString(P))):z=F(U).apply(this._boundValue(),P):z=F(U).call(O,P);var I=R._popContext();N=R._bitField,(N&65536)===0&&(z===g?R._reject(P):z===C?R._rejectCallback(z.e,!1):(_.checkForgottenReturns(z,I,"",R,this),R._resolveCallback(z)))}},D.prototype._target=function(){for(var U=this;U._isFollowing();)U=U._followee();return U},D.prototype._followee=function(){return this._rejectionHandler0},D.prototype._setFollowee=function(U){this._rejectionHandler0=U},D.prototype._settlePromise=function(U,O,P,R){var N=U instanceof D,z=this._bitField,I=(z&134217728)!==0;(z&65536)!==0?(N&&U._invokeInternalOnCancel(),P instanceof E&&P.isFinallyHandler()?(P.cancelPromise=U,F(O).call(P,R)===C&&U._reject(C.e)):O===e?U._fulfill(e.call(P)):P instanceof n?P._promiseCancelled(U):N||U instanceof y?U._cancel():P.cancel()):typeof O=="function"?N?(I&&U._setAsyncGuaranteed(),this._settlePromiseFromHandler(O,P,R,U)):O.call(P,R,U):P instanceof n?P._isResolved()||((z&33554432)!==0?P._promiseFulfilled(R,U):P._promiseRejected(R,U)):N&&(I&&U._setAsyncGuaranteed(),(z&33554432)!==0?U._fulfill(R):U._reject(R))},D.prototype._settlePromiseLateCancellationObserver=function(U){var O=U.handler,P=U.promise,R=U.receiver,N=U.value;typeof O=="function"?P instanceof D?this._settlePromiseFromHandler(O,R,N,P):O.call(R,N,P):P instanceof D&&P._reject(N)},D.prototype._settlePromiseCtx=function(U){this._settlePromise(U.promise,U.handler,U.receiver,U.value)},D.prototype._settlePromise0=function(U,O,P){var R=this._promise0,N=this._receiverAt(0);this._promise0=void 0,this._receiver0=void 0,this._settlePromise(R,U,N,O)},D.prototype._clearCallbackDataAtIndex=function(U){var O=U*4-4;this[O+2]=this[O+3]=this[O+0]=this[O+1]=void 0},D.prototype._fulfill=function(U){var O=this._bitField;if(!((O&117506048)>>>16)){if(U===this){var P=r();return this._attachExtraTrace(P),this._reject(P)}this._setFulfilled(),this._rejectionHandler0=U,(O&65535)>0&&((O&134217728)!==0?this._settlePromises():u.settlePromises(this))}},D.prototype._reject=function(U){var O=this._bitField;if(!((O&117506048)>>>16)){if(this._setRejected(),this._fulfillmentHandler0=U,this._isFinal())return u.fatalError(U,a.isNode);(O&65535)>0?u.settlePromises(this):this._ensurePossibleRejectionHandled()}},D.prototype._fulfillPromises=function(U,O){for(var P=1;P<U;P++){var R=this._fulfillmentHandlerAt(P),N=this._promiseAt(P),z=this._receiverAt(P);this._clearCallbackDataAtIndex(P),this._settlePromise(N,R,z,O)}},D.prototype._rejectPromises=function(U,O){for(var P=1;P<U;P++){var R=this._rejectionHandlerAt(P),N=this._promiseAt(P),z=this._receiverAt(P);this._clearCallbackDataAtIndex(P),this._settlePromise(N,R,z,O)}},D.prototype._settlePromises=function(){var U=this._bitField,O=U&65535;if(O>0){if((U&16842752)!==0){var P=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,P,U),this._rejectPromises(O,P)}else{var R=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,R,U),this._fulfillPromises(O,R)}this._setLength(0)}this._clearCancellationData()},D.prototype._settledValue=function(){var U=this._bitField;if((U&33554432)!==0)return this._rejectionHandler0;if((U&16777216)!==0)return this._fulfillmentHandler0};function B(U){this.promise._resolveCallback(U)}function q(U){this.promise._rejectCallback(U,!1)}D.defer=D.pending=function(){_.deprecated("Promise.defer","new Promise");var U=new D(p);return{promise:U,resolve:B,reject:q}},a.notEnumerableProp(D,"_makeSelfResolutionError",r),W2()(D,p,x,t,_),V2()(D,p,x,_),j2()(D,y,t,_),X2()(D),q2()(D),K2()(D,y,x,p,u,s),D.Promise=D,D.version="3.4.7",J2()(D,y,t,x,p,_),ey()(D),ry()(D,t,x,v,p,_),iy()(D,p,_),sy()(D,t,p,x,n,_),cy()(D),uy()(D,p),fy()(D,y,x,t),py()(D,p,x,t),my()(D,y,t,x,p,_),vy()(D,y,_),by()(D,y,t),_y()(D,p),Ty()(D,p),Ay()(D),a.toFastProperties(D),a.toFastProperties(D.prototype);function j(U){var O=new D(p);O._fulfillmentHandler0=U,O._rejectionHandler0=U,O._promise0=U,O._receiver0=U}return j({a:1}),j({b:2}),j({c:3}),j(1),j(function(){}),j(void 0),j(!1),j(new D(p)),_.setBounds(c.firstLineError,a.lastLineError),D}});var ei=be(mn=>{var r3=(At(),Ft(Et)),Nr=Sy()();mn.defer=n3;mn.when=Nr.resolve;mn.resolve=Nr.resolve;mn.all=Nr.all;mn.props=Nr.props;mn.reject=Nr.reject;mn.promisify=Nr.promisify;mn.mapSeries=Nr.mapSeries;mn.attempt=Nr.attempt;mn.nfcall=function(r){var e=Array.prototype.slice.call(arguments,1),t=Nr.promisify(r);return t.apply(null,e)};Nr.prototype.fail=Nr.prototype.caught;Nr.prototype.also=function(r){return this.then(function(e){var t=r3.extend({},e,r(e));return Nr.props(t)})};function n3(){var r,e,t=new Nr.Promise(function(n,i){r=n,e=i});return{resolve:r,reject:e,promise:t}}});var Ci=be(it=>{var i3=(At(),Ft(Et)),er=it.types={document:"document",paragraph:"paragraph",run:"run",text:"text",tab:"tab",checkbox:"checkbox",hyperlink:"hyperlink",noteReference:"noteReference",image:"image",note:"note",commentReference:"commentReference",comment:"comment",table:"table",tableRow:"tableRow",tableCell:"tableCell",break:"break",bookmarkStart:"bookmarkStart"};function a3(r,e){return e=e||{},{type:er.document,children:r,notes:e.notes||new _h({}),comments:e.comments||[]}}function s3(r,e){e=e||{};var t=e.indent||{};return{type:er.paragraph,children:r,styleId:e.styleId||null,styleName:e.styleName||null,numbering:e.numbering||null,alignment:e.alignment||null,indent:{start:t.start||null,end:t.end||null,firstLine:t.firstLine||null,hanging:t.hanging||null}}}function o3(r,e){return e=e||{},{type:er.run,children:r,styleId:e.styleId||null,styleName:e.styleName||null,isBold:!!e.isBold,isUnderline:!!e.isUnderline,isItalic:!!e.isItalic,isStrikethrough:!!e.isStrikethrough,isAllCaps:!!e.isAllCaps,isSmallCaps:!!e.isSmallCaps,verticalAlignment:e.verticalAlignment||Cy.baseline,font:e.font||null,fontSize:e.fontSize||null,highlight:e.highlight||null}}var Cy={baseline:"baseline",superscript:"superscript",subscript:"subscript"};function c3(r){return{type:er.text,value:r}}function l3(){return{type:er.tab}}function u3(r){return{type:er.checkbox,checked:r.checked}}function h3(r,e){return{type:er.hyperlink,children:r,href:e.href,anchor:e.anchor,targetFrame:e.targetFrame}}function f3(r){return{type:er.noteReference,noteType:r.noteType,noteId:r.noteId}}function _h(r){this._notes=i3.indexBy(r,function(e){return Fy(e.noteType,e.noteId)})}_h.prototype.resolve=function(r){return this.findNoteByKey(Fy(r.noteType,r.noteId))};_h.prototype.findNoteByKey=function(r){return this._notes[r]||null};function d3(r){return{type:er.note,noteType:r.noteType,noteId:r.noteId,body:r.body}}function p3(r){return{type:er.commentReference,commentId:r.commentId}}function g3(r){return{type:er.comment,commentId:r.commentId,body:r.body,authorName:r.authorName,authorInitials:r.authorInitials}}function Fy(r,e){return r+"-"+e}function m3(r){return{type:er.image,read:function(e){return e?r.readImage(e):r.readImage().then(function(t){return Buffer.from(t)})},readAsArrayBuffer:function(){return r.readImage()},readAsBase64String:function(){return r.readImage("base64")},readAsBuffer:function(){return r.readImage().then(function(e){return Buffer.from(e)})},altText:r.altText,contentType:r.contentType}}function x3(r,e){return e=e||{},{type:er.table,children:r,styleId:e.styleId||null,styleName:e.styleName||null}}function v3(r,e){return e=e||{},{type:er.tableRow,children:r,isHeader:e.isHeader||!1}}function y3(r,e){return e=e||{},{type:er.tableCell,children:r,colSpan:e.colSpan==null?1:e.colSpan,rowSpan:e.rowSpan==null?1:e.rowSpan}}function Cg(r){return{type:er.break,breakType:r}}function b3(r){return{type:er.bookmarkStart,name:r.name}}it.document=it.Document=a3;it.paragraph=it.Paragraph=s3;it.run=it.Run=o3;it.text=it.Text=c3;it.tab=it.Tab=l3;it.checkbox=it.Checkbox=u3;it.Hyperlink=h3;it.noteReference=it.NoteReference=f3;it.Notes=_h;it.Note=d3;it.commentReference=p3;it.comment=g3;it.Image=m3;it.Table=x3;it.TableRow=v3;it.TableCell=y3;it.lineBreak=Cg("line");it.pageBreak=Cg("page");it.columnBreak=Cg("column");it.BookmarkStart=b3;it.verticalAlignment=Cy});var Un=be(sc=>{var ac=(At(),Ft(Et));sc.Result=kn;sc.success=w3;sc.warning=_3;sc.error=D3;function kn(r,e){this.value=r,this.messages=e||[]}kn.prototype.map=function(r){return new kn(r(this.value),this.messages)};kn.prototype.flatMap=function(r){var e=r(this.value);return new kn(e.value,Fg([this,e]))};kn.prototype.flatMapThen=function(r){var e=this;return r(this.value).then(function(t){return new kn(t.value,Fg([e,t]))})};kn.combine=function(r){var e=ac.flatten(ac.pluck(r,"value")),t=Fg(r);return new kn(e,t)};function w3(r){return new kn(r,[])}function _3(r){return{type:"warning",message:r}}function D3(r){return{type:"error",message:r.message,error:r}}function Fg(r){var e=[];return ac.flatten(ac.pluck(r,"messages"),!0).forEach(function(t){T3(e,t)||e.push(t)}),e}function T3(r,e){return ac.find(r,E3.bind(null,e))!==void 0}function E3(r,e){return r.type===e.type&&r.message===e.message}});var Iy=be(Dh=>{"use strict";Dh.byteLength=S3;Dh.toByteArray=F3;Dh.fromByteArray=I3;var In=[],rn=[],A3=typeof Uint8Array<"u"?Uint8Array:Array,kg="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(pa=0,ky=kg.length;pa<ky;++pa)In[pa]=kg[pa],rn[kg.charCodeAt(pa)]=pa;var pa,ky;rn[45]=62;rn[95]=63;function Uy(r){var e=r.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var t=r.indexOf("=");t===-1&&(t=e);var n=t===e?0:4-t%4;return[t,n]}function S3(r){var e=Uy(r),t=e[0],n=e[1];return(t+n)*3/4-n}function C3(r,e,t){return(e+t)*3/4-t}function F3(r){var e,t=Uy(r),n=t[0],i=t[1],a=new A3(C3(r,n,i)),s=0,o=i>0?n-4:n,c;for(c=0;c<o;c+=4)e=rn[r.charCodeAt(c)]<<18|rn[r.charCodeAt(c+1)]<<12|rn[r.charCodeAt(c+2)]<<6|rn[r.charCodeAt(c+3)],a[s++]=e>>16&255,a[s++]=e>>8&255,a[s++]=e&255;return i===2&&(e=rn[r.charCodeAt(c)]<<2|rn[r.charCodeAt(c+1)]>>4,a[s++]=e&255),i===1&&(e=rn[r.charCodeAt(c)]<<10|rn[r.charCodeAt(c+1)]<<4|rn[r.charCodeAt(c+2)]>>2,a[s++]=e>>8&255,a[s++]=e&255),a}function k3(r){return In[r>>18&63]+In[r>>12&63]+In[r>>6&63]+In[r&63]}function U3(r,e,t){for(var n,i=[],a=e;a<t;a+=3)n=(r[a]<<16&16711680)+(r[a+1]<<8&65280)+(r[a+2]&255),i.push(k3(n));return i.join("")}function I3(r){for(var e,t=r.length,n=t%3,i=[],a=16383,s=0,o=t-n;s<o;s+=a)i.push(U3(r,s,s+a>o?o:s+a));return n===1?(e=r[t-1],i.push(In[e>>2]+In[e<<4&63]+"==")):n===2&&(e=(r[t-2]<<8)+r[t-1],i.push(In[e>>10]+In[e>>4&63]+In[e<<2&63]+"=")),i.join("")}});var Oy=be((Ry,Ug)=>{(function(r){typeof Ry=="object"&&typeof Ug<"u"?Ug.exports=r():typeof define=="function"&&define.amd?define([],r):(typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this).JSZip=r()})(function(){return(function r(e,t,n){function i(o,c){if(!t[o]){if(!e[o]){var u=typeof Zs=="function"&&Zs;if(!c&&u)return u(o,!0);if(a)return a(o,!0);var h=new Error("Cannot find module '"+o+"'");throw h.code="MODULE_NOT_FOUND",h}var f=t[o]={exports:{}};e[o][0].call(f.exports,function(d){var p=e[o][1][d];return i(p||d)},f,f.exports,r,e,t,n)}return t[o].exports}for(var a=typeof Zs=="function"&&Zs,s=0;s<n.length;s++)i(n[s]);return i})({1:[function(r,e,t){"use strict";var n=r("./utils"),i=r("./support"),a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";t.encode=function(s){for(var o,c,u,h,f,d,p,m=[],g=0,x=s.length,y=x,b=n.getTypeOf(s)!=="string";g<s.length;)y=x-g,u=b?(o=s[g++],c=g<x?s[g++]:0,g<x?s[g++]:0):(o=s.charCodeAt(g++),c=g<x?s.charCodeAt(g++):0,g<x?s.charCodeAt(g++):0),h=o>>2,f=(3&o)<<4|c>>4,d=1<y?(15&c)<<2|u>>6:64,p=2<y?63&u:64,m.push(a.charAt(h)+a.charAt(f)+a.charAt(d)+a.charAt(p));return m.join("")},t.decode=function(s){var o,c,u,h,f,d,p=0,m=0,g="data:";if(s.substr(0,g.length)===g)throw new Error("Invalid base64 input, it looks like a data url.");var x,y=3*(s=s.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(s.charAt(s.length-1)===a.charAt(64)&&y--,s.charAt(s.length-2)===a.charAt(64)&&y--,y%1!=0)throw new Error("Invalid base64 input, bad content length.");for(x=i.uint8array?new Uint8Array(0|y):new Array(0|y);p<s.length;)o=a.indexOf(s.charAt(p++))<<2|(h=a.indexOf(s.charAt(p++)))>>4,c=(15&h)<<4|(f=a.indexOf(s.charAt(p++)))>>2,u=(3&f)<<6|(d=a.indexOf(s.charAt(p++))),x[m++]=o,f!==64&&(x[m++]=c),d!==64&&(x[m++]=u);return x}},{"./support":30,"./utils":32}],2:[function(r,e,t){"use strict";var n=r("./external"),i=r("./stream/DataWorker"),a=r("./stream/Crc32Probe"),s=r("./stream/DataLengthProbe");function o(c,u,h,f,d){this.compressedSize=c,this.uncompressedSize=u,this.crc32=h,this.compression=f,this.compressedContent=d}o.prototype={getContentWorker:function(){var c=new i(n.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new s("data_length")),u=this;return c.on("end",function(){if(this.streamInfo.data_length!==u.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),c},getCompressedWorker:function(){return new i(n.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},o.createWorkerFrom=function(c,u,h){return c.pipe(new a).pipe(new s("uncompressedSize")).pipe(u.compressWorker(h)).pipe(new s("compressedSize")).withStreamInfo("compression",u)},e.exports=o},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(r,e,t){"use strict";var n=r("./stream/GenericWorker");t.STORE={magic:"\0\0",compressWorker:function(){return new n("STORE compression")},uncompressWorker:function(){return new n("STORE decompression")}},t.DEFLATE=r("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(r,e,t){"use strict";var n=r("./utils"),i=(function(){for(var a,s=[],o=0;o<256;o++){a=o;for(var c=0;c<8;c++)a=1&a?3988292384^a>>>1:a>>>1;s[o]=a}return s})();e.exports=function(a,s){return a!==void 0&&a.length?n.getTypeOf(a)!=="string"?(function(o,c,u,h){var f=i,d=h+u;o^=-1;for(var p=h;p<d;p++)o=o>>>8^f[255&(o^c[p])];return-1^o})(0|s,a,a.length,0):(function(o,c,u,h){var f=i,d=h+u;o^=-1;for(var p=h;p<d;p++)o=o>>>8^f[255&(o^c.charCodeAt(p))];return-1^o})(0|s,a,a.length,0):0}},{"./utils":32}],5:[function(r,e,t){"use strict";t.base64=!1,t.binary=!1,t.dir=!1,t.createFolders=!0,t.date=null,t.compression=null,t.compressionOptions=null,t.comment=null,t.unixPermissions=null,t.dosPermissions=null},{}],6:[function(r,e,t){"use strict";var n=null;n=typeof Promise<"u"?Promise:r("lie"),e.exports={Promise:n}},{lie:37}],7:[function(r,e,t){"use strict";var n=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",i=r("pako"),a=r("./utils"),s=r("./stream/GenericWorker"),o=n?"uint8array":"array";function c(u,h){s.call(this,"FlateWorker/"+u),this._pako=null,this._pakoAction=u,this._pakoOptions=h,this.meta={}}t.magic="\b\0",a.inherits(c,s),c.prototype.processChunk=function(u){this.meta=u.meta,this._pako===null&&this._createPako(),this._pako.push(a.transformTo(o,u.data),!1)},c.prototype.flush=function(){s.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},c.prototype.cleanUp=function(){s.prototype.cleanUp.call(this),this._pako=null},c.prototype._createPako=function(){this._pako=new i[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var u=this;this._pako.onData=function(h){u.push({data:h,meta:u.meta})}},t.compressWorker=function(u){return new c("Deflate",u)},t.uncompressWorker=function(){return new c("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(r,e,t){"use strict";function n(f,d){var p,m="";for(p=0;p<d;p++)m+=String.fromCharCode(255&f),f>>>=8;return m}function i(f,d,p,m,g,x){var y,b,v=f.file,_=f.compression,A=x!==o.utf8encode,E=a.transformTo("string",x(v.name)),T=a.transformTo("string",o.utf8encode(v.name)),S=v.comment,C=a.transformTo("string",x(S)),F=a.transformTo("string",o.utf8encode(S)),k=T.length!==v.name.length,D=F.length!==S.length,B="",q="",j="",U=v.dir,O=v.date,P={crc32:0,compressedSize:0,uncompressedSize:0};d&&!p||(P.crc32=f.crc32,P.compressedSize=f.compressedSize,P.uncompressedSize=f.uncompressedSize);var R=0;d&&(R|=8),A||!k&&!D||(R|=2048);var N=0,z=0;U&&(N|=16),g==="UNIX"?(z=798,N|=(function(H,Z){var re=H;return H||(re=Z?16893:33204),(65535&re)<<16})(v.unixPermissions,U)):(z=20,N|=(function(H){return 63&(H||0)})(v.dosPermissions)),y=O.getUTCHours(),y<<=6,y|=O.getUTCMinutes(),y<<=5,y|=O.getUTCSeconds()/2,b=O.getUTCFullYear()-1980,b<<=4,b|=O.getUTCMonth()+1,b<<=5,b|=O.getUTCDate(),k&&(q=n(1,1)+n(c(E),4)+T,B+="up"+n(q.length,2)+q),D&&(j=n(1,1)+n(c(C),4)+F,B+="uc"+n(j.length,2)+j);var I="";return I+=`
|
|
192
|
-
\0`,I+=n(R,2),I+=_.magic,I+=n(y,2),I+=n(b,2),I+=n(P.crc32,4),I+=n(P.compressedSize,4),I+=n(P.uncompressedSize,4),I+=n(E.length,2),I+=n(B.length,2),{fileRecord:u.LOCAL_FILE_HEADER+I+E+B,dirRecord:u.CENTRAL_FILE_HEADER+n(z,2)+I+n(C.length,2)+"\0\0\0\0"+n(N,4)+n(m,4)+E+B+C}}var a=r("../utils"),s=r("../stream/GenericWorker"),o=r("../utf8"),c=r("../crc32"),u=r("../signature");function h(f,d,p,m){s.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=d,this.zipPlatform=p,this.encodeFileName=m,this.streamFiles=f,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}a.inherits(h,s),h.prototype.push=function(f){var d=f.meta.percent||0,p=this.entriesCount,m=this._sources.length;this.accumulate?this.contentBuffer.push(f):(this.bytesWritten+=f.data.length,s.prototype.push.call(this,{data:f.data,meta:{currentFile:this.currentFile,percent:p?(d+100*(p-m-1))/p:100}}))},h.prototype.openedSource=function(f){this.currentSourceOffset=this.bytesWritten,this.currentFile=f.file.name;var d=this.streamFiles&&!f.file.dir;if(d){var p=i(f,d,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:p.fileRecord,meta:{percent:0}})}else this.accumulate=!0},h.prototype.closedSource=function(f){this.accumulate=!1;var d=this.streamFiles&&!f.file.dir,p=i(f,d,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(p.dirRecord),d)this.push({data:(function(m){return u.DATA_DESCRIPTOR+n(m.crc32,4)+n(m.compressedSize,4)+n(m.uncompressedSize,4)})(f),meta:{percent:100}});else for(this.push({data:p.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},h.prototype.flush=function(){for(var f=this.bytesWritten,d=0;d<this.dirRecords.length;d++)this.push({data:this.dirRecords[d],meta:{percent:100}});var p=this.bytesWritten-f,m=(function(g,x,y,b,v){var _=a.transformTo("string",v(b));return u.CENTRAL_DIRECTORY_END+"\0\0\0\0"+n(g,2)+n(g,2)+n(x,4)+n(y,4)+n(_.length,2)+_})(this.dirRecords.length,p,f,this.zipComment,this.encodeFileName);this.push({data:m,meta:{percent:100}})},h.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},h.prototype.registerPrevious=function(f){this._sources.push(f);var d=this;return f.on("data",function(p){d.processChunk(p)}),f.on("end",function(){d.closedSource(d.previous.streamInfo),d._sources.length?d.prepareNextSource():d.end()}),f.on("error",function(p){d.error(p)}),this},h.prototype.resume=function(){return!!s.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},h.prototype.error=function(f){var d=this._sources;if(!s.prototype.error.call(this,f))return!1;for(var p=0;p<d.length;p++)try{d[p].error(f)}catch{}return!0},h.prototype.lock=function(){s.prototype.lock.call(this);for(var f=this._sources,d=0;d<f.length;d++)f[d].lock()},e.exports=h},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(r,e,t){"use strict";var n=r("../compressions"),i=r("./ZipFileWorker");t.generateWorker=function(a,s,o){var c=new i(s.streamFiles,o,s.platform,s.encodeFileName),u=0;try{a.forEach(function(h,f){u++;var d=(function(x,y){var b=x||y,v=n[b];if(!v)throw new Error(b+" is not a valid compression method !");return v})(f.options.compression,s.compression),p=f.options.compressionOptions||s.compressionOptions||{},m=f.dir,g=f.date;f._compressWorker(d,p).withStreamInfo("file",{name:h,dir:m,date:g,comment:f.comment||"",unixPermissions:f.unixPermissions,dosPermissions:f.dosPermissions}).pipe(c)}),c.entriesCount=u}catch(h){c.error(h)}return c}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(r,e,t){"use strict";function n(){if(!(this instanceof n))return new n;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var i=new n;for(var a in this)typeof this[a]!="function"&&(i[a]=this[a]);return i}}(n.prototype=r("./object")).loadAsync=r("./load"),n.support=r("./support"),n.defaults=r("./defaults"),n.version="3.10.1",n.loadAsync=function(i,a){return new n().loadAsync(i,a)},n.external=r("./external"),e.exports=n},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(r,e,t){"use strict";var n=r("./utils"),i=r("./external"),a=r("./utf8"),s=r("./zipEntries"),o=r("./stream/Crc32Probe"),c=r("./nodejsUtils");function u(h){return new i.Promise(function(f,d){var p=h.decompressed.getContentWorker().pipe(new o);p.on("error",function(m){d(m)}).on("end",function(){p.streamInfo.crc32!==h.decompressed.crc32?d(new Error("Corrupted zip : CRC32 mismatch")):f()}).resume()})}e.exports=function(h,f){var d=this;return f=n.extend(f||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:a.utf8decode}),c.isNode&&c.isStream(h)?i.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):n.prepareContent("the loaded zip file",h,!0,f.optimizedBinaryString,f.base64).then(function(p){var m=new s(f);return m.load(p),m}).then(function(p){var m=[i.Promise.resolve(p)],g=p.files;if(f.checkCRC32)for(var x=0;x<g.length;x++)m.push(u(g[x]));return i.Promise.all(m)}).then(function(p){for(var m=p.shift(),g=m.files,x=0;x<g.length;x++){var y=g[x],b=y.fileNameStr,v=n.resolve(y.fileNameStr);d.file(v,y.decompressed,{binary:!0,optimizedBinaryString:!0,date:y.date,dir:y.dir,comment:y.fileCommentStr.length?y.fileCommentStr:null,unixPermissions:y.unixPermissions,dosPermissions:y.dosPermissions,createFolders:f.createFolders}),y.dir||(d.file(v).unsafeOriginalName=b)}return m.zipComment.length&&(d.comment=m.zipComment),d})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(r,e,t){"use strict";var n=r("../utils"),i=r("../stream/GenericWorker");function a(s,o){i.call(this,"Nodejs stream input adapter for "+s),this._upstreamEnded=!1,this._bindStream(o)}n.inherits(a,i),a.prototype._bindStream=function(s){var o=this;(this._stream=s).pause(),s.on("data",function(c){o.push({data:c,meta:{percent:0}})}).on("error",function(c){o.isPaused?this.generatedError=c:o.error(c)}).on("end",function(){o.isPaused?o._upstreamEnded=!0:o.end()})},a.prototype.pause=function(){return!!i.prototype.pause.call(this)&&(this._stream.pause(),!0)},a.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},e.exports=a},{"../stream/GenericWorker":28,"../utils":32}],13:[function(r,e,t){"use strict";var n=r("readable-stream").Readable;function i(a,s,o){n.call(this,s),this._helper=a;var c=this;a.on("data",function(u,h){c.push(u)||c._helper.pause(),o&&o(h)}).on("error",function(u){c.emit("error",u)}).on("end",function(){c.push(null)})}r("../utils").inherits(i,n),i.prototype._read=function(){this._helper.resume()},e.exports=i},{"../utils":32,"readable-stream":16}],14:[function(r,e,t){"use strict";e.exports={isNode:typeof Buffer<"u",newBufferFrom:function(n,i){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(n,i);if(typeof n=="number")throw new Error('The "data" argument must not be a number');return new Buffer(n,i)},allocBuffer:function(n){if(Buffer.alloc)return Buffer.alloc(n);var i=new Buffer(n);return i.fill(0),i},isBuffer:function(n){return Buffer.isBuffer(n)},isStream:function(n){return n&&typeof n.on=="function"&&typeof n.pause=="function"&&typeof n.resume=="function"}}},{}],15:[function(r,e,t){"use strict";function n(v,_,A){var E,T=a.getTypeOf(_),S=a.extend(A||{},c);S.date=S.date||new Date,S.compression!==null&&(S.compression=S.compression.toUpperCase()),typeof S.unixPermissions=="string"&&(S.unixPermissions=parseInt(S.unixPermissions,8)),S.unixPermissions&&16384&S.unixPermissions&&(S.dir=!0),S.dosPermissions&&16&S.dosPermissions&&(S.dir=!0),S.dir&&(v=g(v)),S.createFolders&&(E=m(v))&&x.call(this,E,!0);var C=T==="string"&&S.binary===!1&&S.base64===!1;A&&A.binary!==void 0||(S.binary=!C),(_ instanceof u&&_.uncompressedSize===0||S.dir||!_||_.length===0)&&(S.base64=!1,S.binary=!0,_="",S.compression="STORE",T="string");var F=null;F=_ instanceof u||_ instanceof s?_:d.isNode&&d.isStream(_)?new p(v,_):a.prepareContent(v,_,S.binary,S.optimizedBinaryString,S.base64);var k=new h(v,F,S);this.files[v]=k}var i=r("./utf8"),a=r("./utils"),s=r("./stream/GenericWorker"),o=r("./stream/StreamHelper"),c=r("./defaults"),u=r("./compressedObject"),h=r("./zipObject"),f=r("./generate"),d=r("./nodejsUtils"),p=r("./nodejs/NodejsStreamInputAdapter"),m=function(v){v.slice(-1)==="/"&&(v=v.substring(0,v.length-1));var _=v.lastIndexOf("/");return 0<_?v.substring(0,_):""},g=function(v){return v.slice(-1)!=="/"&&(v+="/"),v},x=function(v,_){return _=_!==void 0?_:c.createFolders,v=g(v),this.files[v]||n.call(this,v,null,{dir:!0,createFolders:_}),this.files[v]};function y(v){return Object.prototype.toString.call(v)==="[object RegExp]"}var b={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(v){var _,A,E;for(_ in this.files)E=this.files[_],(A=_.slice(this.root.length,_.length))&&_.slice(0,this.root.length)===this.root&&v(A,E)},filter:function(v){var _=[];return this.forEach(function(A,E){v(A,E)&&_.push(E)}),_},file:function(v,_,A){if(arguments.length!==1)return v=this.root+v,n.call(this,v,_,A),this;if(y(v)){var E=v;return this.filter(function(S,C){return!C.dir&&E.test(S)})}var T=this.files[this.root+v];return T&&!T.dir?T:null},folder:function(v){if(!v)return this;if(y(v))return this.filter(function(T,S){return S.dir&&v.test(T)});var _=this.root+v,A=x.call(this,_),E=this.clone();return E.root=A.name,E},remove:function(v){v=this.root+v;var _=this.files[v];if(_||(v.slice(-1)!=="/"&&(v+="/"),_=this.files[v]),_&&!_.dir)delete this.files[v];else for(var A=this.filter(function(T,S){return S.name.slice(0,v.length)===v}),E=0;E<A.length;E++)delete this.files[A[E].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(v){var _,A={};try{if((A=a.extend(v||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:i.utf8encode})).type=A.type.toLowerCase(),A.compression=A.compression.toUpperCase(),A.type==="binarystring"&&(A.type="string"),!A.type)throw new Error("No output type specified.");a.checkSupport(A.type),A.platform!=="darwin"&&A.platform!=="freebsd"&&A.platform!=="linux"&&A.platform!=="sunos"||(A.platform="UNIX"),A.platform==="win32"&&(A.platform="DOS");var E=A.comment||this.comment||"";_=f.generateWorker(this,A,E)}catch(T){(_=new s("error")).error(T)}return new o(_,A.type||"string",A.mimeType)},generateAsync:function(v,_){return this.generateInternalStream(v).accumulate(_)},generateNodeStream:function(v,_){return(v=v||{}).type||(v.type="nodebuffer"),this.generateInternalStream(v).toNodejsStream(_)}};e.exports=b},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(r,e,t){"use strict";e.exports=r("stream")},{stream:void 0}],17:[function(r,e,t){"use strict";var n=r("./DataReader");function i(a){n.call(this,a);for(var s=0;s<this.data.length;s++)a[s]=255&a[s]}r("../utils").inherits(i,n),i.prototype.byteAt=function(a){return this.data[this.zero+a]},i.prototype.lastIndexOfSignature=function(a){for(var s=a.charCodeAt(0),o=a.charCodeAt(1),c=a.charCodeAt(2),u=a.charCodeAt(3),h=this.length-4;0<=h;--h)if(this.data[h]===s&&this.data[h+1]===o&&this.data[h+2]===c&&this.data[h+3]===u)return h-this.zero;return-1},i.prototype.readAndCheckSignature=function(a){var s=a.charCodeAt(0),o=a.charCodeAt(1),c=a.charCodeAt(2),u=a.charCodeAt(3),h=this.readData(4);return s===h[0]&&o===h[1]&&c===h[2]&&u===h[3]},i.prototype.readData=function(a){if(this.checkOffset(a),a===0)return[];var s=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,s},e.exports=i},{"../utils":32,"./DataReader":18}],18:[function(r,e,t){"use strict";var n=r("../utils");function i(a){this.data=a,this.length=a.length,this.index=0,this.zero=0}i.prototype={checkOffset:function(a){this.checkIndex(this.index+a)},checkIndex:function(a){if(this.length<this.zero+a||a<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+a+"). Corrupted zip ?")},setIndex:function(a){this.checkIndex(a),this.index=a},skip:function(a){this.setIndex(this.index+a)},byteAt:function(){},readInt:function(a){var s,o=0;for(this.checkOffset(a),s=this.index+a-1;s>=this.index;s--)o=(o<<8)+this.byteAt(s);return this.index+=a,o},readString:function(a){return n.transformTo("string",this.readData(a))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var a=this.readInt(4);return new Date(Date.UTC(1980+(a>>25&127),(a>>21&15)-1,a>>16&31,a>>11&31,a>>5&63,(31&a)<<1))}},e.exports=i},{"../utils":32}],19:[function(r,e,t){"use strict";var n=r("./Uint8ArrayReader");function i(a){n.call(this,a)}r("../utils").inherits(i,n),i.prototype.readData=function(a){this.checkOffset(a);var s=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,s},e.exports=i},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(r,e,t){"use strict";var n=r("./DataReader");function i(a){n.call(this,a)}r("../utils").inherits(i,n),i.prototype.byteAt=function(a){return this.data.charCodeAt(this.zero+a)},i.prototype.lastIndexOfSignature=function(a){return this.data.lastIndexOf(a)-this.zero},i.prototype.readAndCheckSignature=function(a){return a===this.readData(4)},i.prototype.readData=function(a){this.checkOffset(a);var s=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,s},e.exports=i},{"../utils":32,"./DataReader":18}],21:[function(r,e,t){"use strict";var n=r("./ArrayReader");function i(a){n.call(this,a)}r("../utils").inherits(i,n),i.prototype.readData=function(a){if(this.checkOffset(a),a===0)return new Uint8Array(0);var s=this.data.subarray(this.zero+this.index,this.zero+this.index+a);return this.index+=a,s},e.exports=i},{"../utils":32,"./ArrayReader":17}],22:[function(r,e,t){"use strict";var n=r("../utils"),i=r("../support"),a=r("./ArrayReader"),s=r("./StringReader"),o=r("./NodeBufferReader"),c=r("./Uint8ArrayReader");e.exports=function(u){var h=n.getTypeOf(u);return n.checkSupport(h),h!=="string"||i.uint8array?h==="nodebuffer"?new o(u):i.uint8array?new c(n.transformTo("uint8array",u)):new a(n.transformTo("array",u)):new s(u)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(r,e,t){"use strict";t.LOCAL_FILE_HEADER="PK",t.CENTRAL_FILE_HEADER="PK",t.CENTRAL_DIRECTORY_END="PK",t.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",t.ZIP64_CENTRAL_DIRECTORY_END="PK",t.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(r,e,t){"use strict";var n=r("./GenericWorker"),i=r("../utils");function a(s){n.call(this,"ConvertWorker to "+s),this.destType=s}i.inherits(a,n),a.prototype.processChunk=function(s){this.push({data:i.transformTo(this.destType,s.data),meta:s.meta})},e.exports=a},{"../utils":32,"./GenericWorker":28}],25:[function(r,e,t){"use strict";var n=r("./GenericWorker"),i=r("../crc32");function a(){n.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}r("../utils").inherits(a,n),a.prototype.processChunk=function(s){this.streamInfo.crc32=i(s.data,this.streamInfo.crc32||0),this.push(s)},e.exports=a},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(r,e,t){"use strict";var n=r("../utils"),i=r("./GenericWorker");function a(s){i.call(this,"DataLengthProbe for "+s),this.propName=s,this.withStreamInfo(s,0)}n.inherits(a,i),a.prototype.processChunk=function(s){if(s){var o=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=o+s.data.length}i.prototype.processChunk.call(this,s)},e.exports=a},{"../utils":32,"./GenericWorker":28}],27:[function(r,e,t){"use strict";var n=r("../utils"),i=r("./GenericWorker");function a(s){i.call(this,"DataWorker");var o=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,s.then(function(c){o.dataIsReady=!0,o.data=c,o.max=c&&c.length||0,o.type=n.getTypeOf(c),o.isPaused||o._tickAndRepeat()},function(c){o.error(c)})}n.inherits(a,i),a.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this.data=null},a.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,n.delay(this._tickAndRepeat,[],this)),!0)},a.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(n.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},a.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var s=null,o=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":s=this.data.substring(this.index,o);break;case"uint8array":s=this.data.subarray(this.index,o);break;case"array":case"nodebuffer":s=this.data.slice(this.index,o)}return this.index=o,this.push({data:s,meta:{percent:this.max?this.index/this.max*100:0}})},e.exports=a},{"../utils":32,"./GenericWorker":28}],28:[function(r,e,t){"use strict";function n(i){this.name=i||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}n.prototype={push:function(i){this.emit("data",i)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(i){this.emit("error",i)}return!0},error:function(i){return!this.isFinished&&(this.isPaused?this.generatedError=i:(this.isFinished=!0,this.emit("error",i),this.previous&&this.previous.error(i),this.cleanUp()),!0)},on:function(i,a){return this._listeners[i].push(a),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(i,a){if(this._listeners[i])for(var s=0;s<this._listeners[i].length;s++)this._listeners[i][s].call(this,a)},pipe:function(i){return i.registerPrevious(this)},registerPrevious:function(i){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=i.streamInfo,this.mergeStreamInfo(),this.previous=i;var a=this;return i.on("data",function(s){a.processChunk(s)}),i.on("end",function(){a.end()}),i.on("error",function(s){a.error(s)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var i=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),i=!0),this.previous&&this.previous.resume(),!i},flush:function(){},processChunk:function(i){this.push(i)},withStreamInfo:function(i,a){return this.extraStreamInfo[i]=a,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var i in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,i)&&(this.streamInfo[i]=this.extraStreamInfo[i])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var i="Worker "+this.name;return this.previous?this.previous+" -> "+i:i}},e.exports=n},{}],29:[function(r,e,t){"use strict";var n=r("../utils"),i=r("./ConvertWorker"),a=r("./GenericWorker"),s=r("../base64"),o=r("../support"),c=r("../external"),u=null;if(o.nodestream)try{u=r("../nodejs/NodejsStreamOutputAdapter")}catch{}function h(d,p){return new c.Promise(function(m,g){var x=[],y=d._internalType,b=d._outputType,v=d._mimeType;d.on("data",function(_,A){x.push(_),p&&p(A)}).on("error",function(_){x=[],g(_)}).on("end",function(){try{var _=(function(A,E,T){switch(A){case"blob":return n.newBlob(n.transformTo("arraybuffer",E),T);case"base64":return s.encode(E);default:return n.transformTo(A,E)}})(b,(function(A,E){var T,S=0,C=null,F=0;for(T=0;T<E.length;T++)F+=E[T].length;switch(A){case"string":return E.join("");case"array":return Array.prototype.concat.apply([],E);case"uint8array":for(C=new Uint8Array(F),T=0;T<E.length;T++)C.set(E[T],S),S+=E[T].length;return C;case"nodebuffer":return Buffer.concat(E);default:throw new Error("concat : unsupported type '"+A+"'")}})(y,x),v);m(_)}catch(A){g(A)}x=[]}).resume()})}function f(d,p,m){var g=p;switch(p){case"blob":case"arraybuffer":g="uint8array";break;case"base64":g="string"}try{this._internalType=g,this._outputType=p,this._mimeType=m,n.checkSupport(g),this._worker=d.pipe(new i(g)),d.lock()}catch(x){this._worker=new a("error"),this._worker.error(x)}}f.prototype={accumulate:function(d){return h(this,d)},on:function(d,p){var m=this;return d==="data"?this._worker.on(d,function(g){p.call(m,g.data,g.meta)}):this._worker.on(d,function(){n.delay(p,arguments,m)}),this},resume:function(){return n.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(d){if(n.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new u(this,{objectMode:this._outputType!=="nodebuffer"},d)}},e.exports=f},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(r,e,t){"use strict";if(t.base64=!0,t.array=!0,t.string=!0,t.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",t.nodebuffer=typeof Buffer<"u",t.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")t.blob=!1;else{var n=new ArrayBuffer(0);try{t.blob=new Blob([n],{type:"application/zip"}).size===0}catch{try{var i=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);i.append(n),t.blob=i.getBlob("application/zip").size===0}catch{t.blob=!1}}}try{t.nodestream=!!r("readable-stream").Readable}catch{t.nodestream=!1}},{"readable-stream":16}],31:[function(r,e,t){"use strict";for(var n=r("./utils"),i=r("./support"),a=r("./nodejsUtils"),s=r("./stream/GenericWorker"),o=new Array(256),c=0;c<256;c++)o[c]=252<=c?6:248<=c?5:240<=c?4:224<=c?3:192<=c?2:1;o[254]=o[254]=1;function u(){s.call(this,"utf-8 decode"),this.leftOver=null}function h(){s.call(this,"utf-8 encode")}t.utf8encode=function(f){return i.nodebuffer?a.newBufferFrom(f,"utf-8"):(function(d){var p,m,g,x,y,b=d.length,v=0;for(x=0;x<b;x++)(64512&(m=d.charCodeAt(x)))==55296&&x+1<b&&(64512&(g=d.charCodeAt(x+1)))==56320&&(m=65536+(m-55296<<10)+(g-56320),x++),v+=m<128?1:m<2048?2:m<65536?3:4;for(p=i.uint8array?new Uint8Array(v):new Array(v),x=y=0;y<v;x++)(64512&(m=d.charCodeAt(x)))==55296&&x+1<b&&(64512&(g=d.charCodeAt(x+1)))==56320&&(m=65536+(m-55296<<10)+(g-56320),x++),m<128?p[y++]=m:(m<2048?p[y++]=192|m>>>6:(m<65536?p[y++]=224|m>>>12:(p[y++]=240|m>>>18,p[y++]=128|m>>>12&63),p[y++]=128|m>>>6&63),p[y++]=128|63&m);return p})(f)},t.utf8decode=function(f){return i.nodebuffer?n.transformTo("nodebuffer",f).toString("utf-8"):(function(d){var p,m,g,x,y=d.length,b=new Array(2*y);for(p=m=0;p<y;)if((g=d[p++])<128)b[m++]=g;else if(4<(x=o[g]))b[m++]=65533,p+=x-1;else{for(g&=x===2?31:x===3?15:7;1<x&&p<y;)g=g<<6|63&d[p++],x--;1<x?b[m++]=65533:g<65536?b[m++]=g:(g-=65536,b[m++]=55296|g>>10&1023,b[m++]=56320|1023&g)}return b.length!==m&&(b.subarray?b=b.subarray(0,m):b.length=m),n.applyFromCharCode(b)})(f=n.transformTo(i.uint8array?"uint8array":"array",f))},n.inherits(u,s),u.prototype.processChunk=function(f){var d=n.transformTo(i.uint8array?"uint8array":"array",f.data);if(this.leftOver&&this.leftOver.length){if(i.uint8array){var p=d;(d=new Uint8Array(p.length+this.leftOver.length)).set(this.leftOver,0),d.set(p,this.leftOver.length)}else d=this.leftOver.concat(d);this.leftOver=null}var m=(function(x,y){var b;for((y=y||x.length)>x.length&&(y=x.length),b=y-1;0<=b&&(192&x[b])==128;)b--;return b<0||b===0?y:b+o[x[b]]>y?b:y})(d),g=d;m!==d.length&&(i.uint8array?(g=d.subarray(0,m),this.leftOver=d.subarray(m,d.length)):(g=d.slice(0,m),this.leftOver=d.slice(m,d.length))),this.push({data:t.utf8decode(g),meta:f.meta})},u.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:t.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},t.Utf8DecodeWorker=u,n.inherits(h,s),h.prototype.processChunk=function(f){this.push({data:t.utf8encode(f.data),meta:f.meta})},t.Utf8EncodeWorker=h},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(r,e,t){"use strict";var n=r("./support"),i=r("./base64"),a=r("./nodejsUtils"),s=r("./external");function o(p){return p}function c(p,m){for(var g=0;g<p.length;++g)m[g]=255&p.charCodeAt(g);return m}r("setimmediate"),t.newBlob=function(p,m){t.checkSupport("blob");try{return new Blob([p],{type:m})}catch{try{var g=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return g.append(p),g.getBlob(m)}catch{throw new Error("Bug : can't construct the Blob.")}}};var u={stringifyByChunk:function(p,m,g){var x=[],y=0,b=p.length;if(b<=g)return String.fromCharCode.apply(null,p);for(;y<b;)m==="array"||m==="nodebuffer"?x.push(String.fromCharCode.apply(null,p.slice(y,Math.min(y+g,b)))):x.push(String.fromCharCode.apply(null,p.subarray(y,Math.min(y+g,b)))),y+=g;return x.join("")},stringifyByChar:function(p){for(var m="",g=0;g<p.length;g++)m+=String.fromCharCode(p[g]);return m},applyCanBeUsed:{uint8array:(function(){try{return n.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}})(),nodebuffer:(function(){try{return n.nodebuffer&&String.fromCharCode.apply(null,a.allocBuffer(1)).length===1}catch{return!1}})()}};function h(p){var m=65536,g=t.getTypeOf(p),x=!0;if(g==="uint8array"?x=u.applyCanBeUsed.uint8array:g==="nodebuffer"&&(x=u.applyCanBeUsed.nodebuffer),x)for(;1<m;)try{return u.stringifyByChunk(p,g,m)}catch{m=Math.floor(m/2)}return u.stringifyByChar(p)}function f(p,m){for(var g=0;g<p.length;g++)m[g]=p[g];return m}t.applyFromCharCode=h;var d={};d.string={string:o,array:function(p){return c(p,new Array(p.length))},arraybuffer:function(p){return d.string.uint8array(p).buffer},uint8array:function(p){return c(p,new Uint8Array(p.length))},nodebuffer:function(p){return c(p,a.allocBuffer(p.length))}},d.array={string:h,array:o,arraybuffer:function(p){return new Uint8Array(p).buffer},uint8array:function(p){return new Uint8Array(p)},nodebuffer:function(p){return a.newBufferFrom(p)}},d.arraybuffer={string:function(p){return h(new Uint8Array(p))},array:function(p){return f(new Uint8Array(p),new Array(p.byteLength))},arraybuffer:o,uint8array:function(p){return new Uint8Array(p)},nodebuffer:function(p){return a.newBufferFrom(new Uint8Array(p))}},d.uint8array={string:h,array:function(p){return f(p,new Array(p.length))},arraybuffer:function(p){return p.buffer},uint8array:o,nodebuffer:function(p){return a.newBufferFrom(p)}},d.nodebuffer={string:h,array:function(p){return f(p,new Array(p.length))},arraybuffer:function(p){return d.nodebuffer.uint8array(p).buffer},uint8array:function(p){return f(p,new Uint8Array(p.length))},nodebuffer:o},t.transformTo=function(p,m){if(m=m||"",!p)return m;t.checkSupport(p);var g=t.getTypeOf(m);return d[g][p](m)},t.resolve=function(p){for(var m=p.split("/"),g=[],x=0;x<m.length;x++){var y=m[x];y==="."||y===""&&x!==0&&x!==m.length-1||(y===".."?g.pop():g.push(y))}return g.join("/")},t.getTypeOf=function(p){return typeof p=="string"?"string":Object.prototype.toString.call(p)==="[object Array]"?"array":n.nodebuffer&&a.isBuffer(p)?"nodebuffer":n.uint8array&&p instanceof Uint8Array?"uint8array":n.arraybuffer&&p instanceof ArrayBuffer?"arraybuffer":void 0},t.checkSupport=function(p){if(!n[p.toLowerCase()])throw new Error(p+" is not supported by this platform")},t.MAX_VALUE_16BITS=65535,t.MAX_VALUE_32BITS=-1,t.pretty=function(p){var m,g,x="";for(g=0;g<(p||"").length;g++)x+="\\x"+((m=p.charCodeAt(g))<16?"0":"")+m.toString(16).toUpperCase();return x},t.delay=function(p,m,g){setImmediate(function(){p.apply(g||null,m||[])})},t.inherits=function(p,m){function g(){}g.prototype=m.prototype,p.prototype=new g},t.extend=function(){var p,m,g={};for(p=0;p<arguments.length;p++)for(m in arguments[p])Object.prototype.hasOwnProperty.call(arguments[p],m)&&g[m]===void 0&&(g[m]=arguments[p][m]);return g},t.prepareContent=function(p,m,g,x,y){return s.Promise.resolve(m).then(function(b){return n.blob&&(b instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(b))!==-1)&&typeof FileReader<"u"?new s.Promise(function(v,_){var A=new FileReader;A.onload=function(E){v(E.target.result)},A.onerror=function(E){_(E.target.error)},A.readAsArrayBuffer(b)}):b}).then(function(b){var v=t.getTypeOf(b);return v?(v==="arraybuffer"?b=t.transformTo("uint8array",b):v==="string"&&(y?b=i.decode(b):g&&x!==!0&&(b=(function(_){return c(_,n.uint8array?new Uint8Array(_.length):new Array(_.length))})(b))),b):s.Promise.reject(new Error("Can't read the data of '"+p+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(r,e,t){"use strict";var n=r("./reader/readerFor"),i=r("./utils"),a=r("./signature"),s=r("./zipEntry"),o=r("./support");function c(u){this.files=[],this.loadOptions=u}c.prototype={checkSignature:function(u){if(!this.reader.readAndCheckSignature(u)){this.reader.index-=4;var h=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+i.pretty(h)+", expected "+i.pretty(u)+")")}},isSignature:function(u,h){var f=this.reader.index;this.reader.setIndex(u);var d=this.reader.readString(4)===h;return this.reader.setIndex(f),d},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var u=this.reader.readData(this.zipCommentLength),h=o.uint8array?"uint8array":"array",f=i.transformTo(h,u);this.zipComment=this.loadOptions.decodeFileName(f)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var u,h,f,d=this.zip64EndOfCentralSize-44;0<d;)u=this.reader.readInt(2),h=this.reader.readInt(4),f=this.reader.readData(h),this.zip64ExtensibleData[u]={id:u,length:h,value:f}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var u,h;for(u=0;u<this.files.length;u++)h=this.files[u],this.reader.setIndex(h.localHeaderOffset),this.checkSignature(a.LOCAL_FILE_HEADER),h.readLocalPart(this.reader),h.handleUTF8(),h.processAttributes()},readCentralDir:function(){var u;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(a.CENTRAL_FILE_HEADER);)(u=new s({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(u);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var u=this.reader.lastIndexOfSignature(a.CENTRAL_DIRECTORY_END);if(u<0)throw this.isSignature(0,a.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(u);var h=u;if(this.checkSignature(a.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===i.MAX_VALUE_16BITS||this.diskWithCentralDirStart===i.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===i.MAX_VALUE_16BITS||this.centralDirRecords===i.MAX_VALUE_16BITS||this.centralDirSize===i.MAX_VALUE_32BITS||this.centralDirOffset===i.MAX_VALUE_32BITS){if(this.zip64=!0,(u=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(u),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,a.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var f=this.centralDirOffset+this.centralDirSize;this.zip64&&(f+=20,f+=12+this.zip64EndOfCentralSize);var d=h-f;if(0<d)this.isSignature(h,a.CENTRAL_FILE_HEADER)||(this.reader.zero=d);else if(d<0)throw new Error("Corrupted zip: missing "+Math.abs(d)+" bytes.")},prepareReader:function(u){this.reader=n(u)},load:function(u){this.prepareReader(u),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},e.exports=c},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(r,e,t){"use strict";var n=r("./reader/readerFor"),i=r("./utils"),a=r("./compressedObject"),s=r("./crc32"),o=r("./utf8"),c=r("./compressions"),u=r("./support");function h(f,d){this.options=f,this.loadOptions=d}h.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(f){var d,p;if(f.skip(22),this.fileNameLength=f.readInt(2),p=f.readInt(2),this.fileName=f.readData(this.fileNameLength),f.skip(p),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((d=(function(m){for(var g in c)if(Object.prototype.hasOwnProperty.call(c,g)&&c[g].magic===m)return c[g];return null})(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+i.pretty(this.compressionMethod)+" unknown (inner file : "+i.transformTo("string",this.fileName)+")");this.decompressed=new a(this.compressedSize,this.uncompressedSize,this.crc32,d,f.readData(this.compressedSize))},readCentralPart:function(f){this.versionMadeBy=f.readInt(2),f.skip(2),this.bitFlag=f.readInt(2),this.compressionMethod=f.readString(2),this.date=f.readDate(),this.crc32=f.readInt(4),this.compressedSize=f.readInt(4),this.uncompressedSize=f.readInt(4);var d=f.readInt(2);if(this.extraFieldsLength=f.readInt(2),this.fileCommentLength=f.readInt(2),this.diskNumberStart=f.readInt(2),this.internalFileAttributes=f.readInt(2),this.externalFileAttributes=f.readInt(4),this.localHeaderOffset=f.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");f.skip(d),this.readExtraFields(f),this.parseZIP64ExtraField(f),this.fileComment=f.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var f=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),f==0&&(this.dosPermissions=63&this.externalFileAttributes),f==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var f=n(this.extraFields[1].value);this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=f.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=f.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&(this.localHeaderOffset=f.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=f.readInt(4))}},readExtraFields:function(f){var d,p,m,g=f.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});f.index+4<g;)d=f.readInt(2),p=f.readInt(2),m=f.readData(p),this.extraFields[d]={id:d,length:p,value:m};f.setIndex(g)},handleUTF8:function(){var f=u.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=o.utf8decode(this.fileName),this.fileCommentStr=o.utf8decode(this.fileComment);else{var d=this.findExtraFieldUnicodePath();if(d!==null)this.fileNameStr=d;else{var p=i.transformTo(f,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(p)}var m=this.findExtraFieldUnicodeComment();if(m!==null)this.fileCommentStr=m;else{var g=i.transformTo(f,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(g)}}},findExtraFieldUnicodePath:function(){var f=this.extraFields[28789];if(f){var d=n(f.value);return d.readInt(1)!==1||s(this.fileName)!==d.readInt(4)?null:o.utf8decode(d.readData(f.length-5))}return null},findExtraFieldUnicodeComment:function(){var f=this.extraFields[25461];if(f){var d=n(f.value);return d.readInt(1)!==1||s(this.fileComment)!==d.readInt(4)?null:o.utf8decode(d.readData(f.length-5))}return null}},e.exports=h},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(r,e,t){"use strict";function n(d,p,m){this.name=d,this.dir=m.dir,this.date=m.date,this.comment=m.comment,this.unixPermissions=m.unixPermissions,this.dosPermissions=m.dosPermissions,this._data=p,this._dataBinary=m.binary,this.options={compression:m.compression,compressionOptions:m.compressionOptions}}var i=r("./stream/StreamHelper"),a=r("./stream/DataWorker"),s=r("./utf8"),o=r("./compressedObject"),c=r("./stream/GenericWorker");n.prototype={internalStream:function(d){var p=null,m="string";try{if(!d)throw new Error("No output type specified.");var g=(m=d.toLowerCase())==="string"||m==="text";m!=="binarystring"&&m!=="text"||(m="string"),p=this._decompressWorker();var x=!this._dataBinary;x&&!g&&(p=p.pipe(new s.Utf8EncodeWorker)),!x&&g&&(p=p.pipe(new s.Utf8DecodeWorker))}catch(y){(p=new c("error")).error(y)}return new i(p,m,"")},async:function(d,p){return this.internalStream(d).accumulate(p)},nodeStream:function(d,p){return this.internalStream(d||"nodebuffer").toNodejsStream(p)},_compressWorker:function(d,p){if(this._data instanceof o&&this._data.compression.magic===d.magic)return this._data.getCompressedWorker();var m=this._decompressWorker();return this._dataBinary||(m=m.pipe(new s.Utf8EncodeWorker)),o.createWorkerFrom(m,d,p)},_decompressWorker:function(){return this._data instanceof o?this._data.getContentWorker():this._data instanceof c?this._data:new a(this._data)}};for(var u=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],h=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},f=0;f<u.length;f++)n.prototype[u[f]]=h;e.exports=n},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(r,e,t){(function(n){"use strict";var i,a,s=n.MutationObserver||n.WebKitMutationObserver;if(s){var o=0,c=new s(d),u=n.document.createTextNode("");c.observe(u,{characterData:!0}),i=function(){u.data=o=++o%2}}else if(n.setImmediate||n.MessageChannel===void 0)i="document"in n&&"onreadystatechange"in n.document.createElement("script")?function(){var p=n.document.createElement("script");p.onreadystatechange=function(){d(),p.onreadystatechange=null,p.parentNode.removeChild(p),p=null},n.document.documentElement.appendChild(p)}:function(){setTimeout(d,0)};else{var h=new n.MessageChannel;h.port1.onmessage=d,i=function(){h.port2.postMessage(0)}}var f=[];function d(){var p,m;a=!0;for(var g=f.length;g;){for(m=f,f=[],p=-1;++p<g;)m[p]();g=f.length}a=!1}e.exports=function(p){f.push(p)!==1||a||i()}}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(r,e,t){"use strict";var n=r("immediate");function i(){}var a={},s=["REJECTED"],o=["FULFILLED"],c=["PENDING"];function u(g){if(typeof g!="function")throw new TypeError("resolver must be a function");this.state=c,this.queue=[],this.outcome=void 0,g!==i&&p(this,g)}function h(g,x,y){this.promise=g,typeof x=="function"&&(this.onFulfilled=x,this.callFulfilled=this.otherCallFulfilled),typeof y=="function"&&(this.onRejected=y,this.callRejected=this.otherCallRejected)}function f(g,x,y){n(function(){var b;try{b=x(y)}catch(v){return a.reject(g,v)}b===g?a.reject(g,new TypeError("Cannot resolve promise with itself")):a.resolve(g,b)})}function d(g){var x=g&&g.then;if(g&&(typeof g=="object"||typeof g=="function")&&typeof x=="function")return function(){x.apply(g,arguments)}}function p(g,x){var y=!1;function b(A){y||(y=!0,a.reject(g,A))}function v(A){y||(y=!0,a.resolve(g,A))}var _=m(function(){x(v,b)});_.status==="error"&&b(_.value)}function m(g,x){var y={};try{y.value=g(x),y.status="success"}catch(b){y.status="error",y.value=b}return y}(e.exports=u).prototype.finally=function(g){if(typeof g!="function")return this;var x=this.constructor;return this.then(function(y){return x.resolve(g()).then(function(){return y})},function(y){return x.resolve(g()).then(function(){throw y})})},u.prototype.catch=function(g){return this.then(null,g)},u.prototype.then=function(g,x){if(typeof g!="function"&&this.state===o||typeof x!="function"&&this.state===s)return this;var y=new this.constructor(i);return this.state!==c?f(y,this.state===o?g:x,this.outcome):this.queue.push(new h(y,g,x)),y},h.prototype.callFulfilled=function(g){a.resolve(this.promise,g)},h.prototype.otherCallFulfilled=function(g){f(this.promise,this.onFulfilled,g)},h.prototype.callRejected=function(g){a.reject(this.promise,g)},h.prototype.otherCallRejected=function(g){f(this.promise,this.onRejected,g)},a.resolve=function(g,x){var y=m(d,x);if(y.status==="error")return a.reject(g,y.value);var b=y.value;if(b)p(g,b);else{g.state=o,g.outcome=x;for(var v=-1,_=g.queue.length;++v<_;)g.queue[v].callFulfilled(x)}return g},a.reject=function(g,x){g.state=s,g.outcome=x;for(var y=-1,b=g.queue.length;++y<b;)g.queue[y].callRejected(x);return g},u.resolve=function(g){return g instanceof this?g:a.resolve(new this(i),g)},u.reject=function(g){var x=new this(i);return a.reject(x,g)},u.all=function(g){var x=this;if(Object.prototype.toString.call(g)!=="[object Array]")return this.reject(new TypeError("must be an array"));var y=g.length,b=!1;if(!y)return this.resolve([]);for(var v=new Array(y),_=0,A=-1,E=new this(i);++A<y;)T(g[A],A);return E;function T(S,C){x.resolve(S).then(function(F){v[C]=F,++_!==y||b||(b=!0,a.resolve(E,v))},function(F){b||(b=!0,a.reject(E,F))})}},u.race=function(g){var x=this;if(Object.prototype.toString.call(g)!=="[object Array]")return this.reject(new TypeError("must be an array"));var y=g.length,b=!1;if(!y)return this.resolve([]);for(var v=-1,_=new this(i);++v<y;)A=g[v],x.resolve(A).then(function(E){b||(b=!0,a.resolve(_,E))},function(E){b||(b=!0,a.reject(_,E))});var A;return _}},{immediate:36}],38:[function(r,e,t){"use strict";var n={};(0,r("./lib/utils/common").assign)(n,r("./lib/deflate"),r("./lib/inflate"),r("./lib/zlib/constants")),e.exports=n},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(r,e,t){"use strict";var n=r("./zlib/deflate"),i=r("./utils/common"),a=r("./utils/strings"),s=r("./zlib/messages"),o=r("./zlib/zstream"),c=Object.prototype.toString,u=0,h=-1,f=0,d=8;function p(g){if(!(this instanceof p))return new p(g);this.options=i.assign({level:h,method:d,chunkSize:16384,windowBits:15,memLevel:8,strategy:f,to:""},g||{});var x=this.options;x.raw&&0<x.windowBits?x.windowBits=-x.windowBits:x.gzip&&0<x.windowBits&&x.windowBits<16&&(x.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new o,this.strm.avail_out=0;var y=n.deflateInit2(this.strm,x.level,x.method,x.windowBits,x.memLevel,x.strategy);if(y!==u)throw new Error(s[y]);if(x.header&&n.deflateSetHeader(this.strm,x.header),x.dictionary){var b;if(b=typeof x.dictionary=="string"?a.string2buf(x.dictionary):c.call(x.dictionary)==="[object ArrayBuffer]"?new Uint8Array(x.dictionary):x.dictionary,(y=n.deflateSetDictionary(this.strm,b))!==u)throw new Error(s[y]);this._dict_set=!0}}function m(g,x){var y=new p(x);if(y.push(g,!0),y.err)throw y.msg||s[y.err];return y.result}p.prototype.push=function(g,x){var y,b,v=this.strm,_=this.options.chunkSize;if(this.ended)return!1;b=x===~~x?x:x===!0?4:0,typeof g=="string"?v.input=a.string2buf(g):c.call(g)==="[object ArrayBuffer]"?v.input=new Uint8Array(g):v.input=g,v.next_in=0,v.avail_in=v.input.length;do{if(v.avail_out===0&&(v.output=new i.Buf8(_),v.next_out=0,v.avail_out=_),(y=n.deflate(v,b))!==1&&y!==u)return this.onEnd(y),!(this.ended=!0);v.avail_out!==0&&(v.avail_in!==0||b!==4&&b!==2)||(this.options.to==="string"?this.onData(a.buf2binstring(i.shrinkBuf(v.output,v.next_out))):this.onData(i.shrinkBuf(v.output,v.next_out)))}while((0<v.avail_in||v.avail_out===0)&&y!==1);return b===4?(y=n.deflateEnd(this.strm),this.onEnd(y),this.ended=!0,y===u):b!==2||(this.onEnd(u),!(v.avail_out=0))},p.prototype.onData=function(g){this.chunks.push(g)},p.prototype.onEnd=function(g){g===u&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=g,this.msg=this.strm.msg},t.Deflate=p,t.deflate=m,t.deflateRaw=function(g,x){return(x=x||{}).raw=!0,m(g,x)},t.gzip=function(g,x){return(x=x||{}).gzip=!0,m(g,x)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(r,e,t){"use strict";var n=r("./zlib/inflate"),i=r("./utils/common"),a=r("./utils/strings"),s=r("./zlib/constants"),o=r("./zlib/messages"),c=r("./zlib/zstream"),u=r("./zlib/gzheader"),h=Object.prototype.toString;function f(p){if(!(this instanceof f))return new f(p);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},p||{});var m=this.options;m.raw&&0<=m.windowBits&&m.windowBits<16&&(m.windowBits=-m.windowBits,m.windowBits===0&&(m.windowBits=-15)),!(0<=m.windowBits&&m.windowBits<16)||p&&p.windowBits||(m.windowBits+=32),15<m.windowBits&&m.windowBits<48&&(15&m.windowBits)==0&&(m.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new c,this.strm.avail_out=0;var g=n.inflateInit2(this.strm,m.windowBits);if(g!==s.Z_OK)throw new Error(o[g]);this.header=new u,n.inflateGetHeader(this.strm,this.header)}function d(p,m){var g=new f(m);if(g.push(p,!0),g.err)throw g.msg||o[g.err];return g.result}f.prototype.push=function(p,m){var g,x,y,b,v,_,A=this.strm,E=this.options.chunkSize,T=this.options.dictionary,S=!1;if(this.ended)return!1;x=m===~~m?m:m===!0?s.Z_FINISH:s.Z_NO_FLUSH,typeof p=="string"?A.input=a.binstring2buf(p):h.call(p)==="[object ArrayBuffer]"?A.input=new Uint8Array(p):A.input=p,A.next_in=0,A.avail_in=A.input.length;do{if(A.avail_out===0&&(A.output=new i.Buf8(E),A.next_out=0,A.avail_out=E),(g=n.inflate(A,s.Z_NO_FLUSH))===s.Z_NEED_DICT&&T&&(_=typeof T=="string"?a.string2buf(T):h.call(T)==="[object ArrayBuffer]"?new Uint8Array(T):T,g=n.inflateSetDictionary(this.strm,_)),g===s.Z_BUF_ERROR&&S===!0&&(g=s.Z_OK,S=!1),g!==s.Z_STREAM_END&&g!==s.Z_OK)return this.onEnd(g),!(this.ended=!0);A.next_out&&(A.avail_out!==0&&g!==s.Z_STREAM_END&&(A.avail_in!==0||x!==s.Z_FINISH&&x!==s.Z_SYNC_FLUSH)||(this.options.to==="string"?(y=a.utf8border(A.output,A.next_out),b=A.next_out-y,v=a.buf2string(A.output,y),A.next_out=b,A.avail_out=E-b,b&&i.arraySet(A.output,A.output,y,b,0),this.onData(v)):this.onData(i.shrinkBuf(A.output,A.next_out)))),A.avail_in===0&&A.avail_out===0&&(S=!0)}while((0<A.avail_in||A.avail_out===0)&&g!==s.Z_STREAM_END);return g===s.Z_STREAM_END&&(x=s.Z_FINISH),x===s.Z_FINISH?(g=n.inflateEnd(this.strm),this.onEnd(g),this.ended=!0,g===s.Z_OK):x!==s.Z_SYNC_FLUSH||(this.onEnd(s.Z_OK),!(A.avail_out=0))},f.prototype.onData=function(p){this.chunks.push(p)},f.prototype.onEnd=function(p){p===s.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=p,this.msg=this.strm.msg},t.Inflate=f,t.inflate=d,t.inflateRaw=function(p,m){return(m=m||{}).raw=!0,d(p,m)},t.ungzip=d},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(r,e,t){"use strict";var n=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";t.assign=function(s){for(var o=Array.prototype.slice.call(arguments,1);o.length;){var c=o.shift();if(c){if(typeof c!="object")throw new TypeError(c+"must be non-object");for(var u in c)c.hasOwnProperty(u)&&(s[u]=c[u])}}return s},t.shrinkBuf=function(s,o){return s.length===o?s:s.subarray?s.subarray(0,o):(s.length=o,s)};var i={arraySet:function(s,o,c,u,h){if(o.subarray&&s.subarray)s.set(o.subarray(c,c+u),h);else for(var f=0;f<u;f++)s[h+f]=o[c+f]},flattenChunks:function(s){var o,c,u,h,f,d;for(o=u=0,c=s.length;o<c;o++)u+=s[o].length;for(d=new Uint8Array(u),o=h=0,c=s.length;o<c;o++)f=s[o],d.set(f,h),h+=f.length;return d}},a={arraySet:function(s,o,c,u,h){for(var f=0;f<u;f++)s[h+f]=o[c+f]},flattenChunks:function(s){return[].concat.apply([],s)}};t.setTyped=function(s){s?(t.Buf8=Uint8Array,t.Buf16=Uint16Array,t.Buf32=Int32Array,t.assign(t,i)):(t.Buf8=Array,t.Buf16=Array,t.Buf32=Array,t.assign(t,a))},t.setTyped(n)},{}],42:[function(r,e,t){"use strict";var n=r("./common"),i=!0,a=!0;try{String.fromCharCode.apply(null,[0])}catch{i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{a=!1}for(var s=new n.Buf8(256),o=0;o<256;o++)s[o]=252<=o?6:248<=o?5:240<=o?4:224<=o?3:192<=o?2:1;function c(u,h){if(h<65537&&(u.subarray&&a||!u.subarray&&i))return String.fromCharCode.apply(null,n.shrinkBuf(u,h));for(var f="",d=0;d<h;d++)f+=String.fromCharCode(u[d]);return f}s[254]=s[254]=1,t.string2buf=function(u){var h,f,d,p,m,g=u.length,x=0;for(p=0;p<g;p++)(64512&(f=u.charCodeAt(p)))==55296&&p+1<g&&(64512&(d=u.charCodeAt(p+1)))==56320&&(f=65536+(f-55296<<10)+(d-56320),p++),x+=f<128?1:f<2048?2:f<65536?3:4;for(h=new n.Buf8(x),p=m=0;m<x;p++)(64512&(f=u.charCodeAt(p)))==55296&&p+1<g&&(64512&(d=u.charCodeAt(p+1)))==56320&&(f=65536+(f-55296<<10)+(d-56320),p++),f<128?h[m++]=f:(f<2048?h[m++]=192|f>>>6:(f<65536?h[m++]=224|f>>>12:(h[m++]=240|f>>>18,h[m++]=128|f>>>12&63),h[m++]=128|f>>>6&63),h[m++]=128|63&f);return h},t.buf2binstring=function(u){return c(u,u.length)},t.binstring2buf=function(u){for(var h=new n.Buf8(u.length),f=0,d=h.length;f<d;f++)h[f]=u.charCodeAt(f);return h},t.buf2string=function(u,h){var f,d,p,m,g=h||u.length,x=new Array(2*g);for(f=d=0;f<g;)if((p=u[f++])<128)x[d++]=p;else if(4<(m=s[p]))x[d++]=65533,f+=m-1;else{for(p&=m===2?31:m===3?15:7;1<m&&f<g;)p=p<<6|63&u[f++],m--;1<m?x[d++]=65533:p<65536?x[d++]=p:(p-=65536,x[d++]=55296|p>>10&1023,x[d++]=56320|1023&p)}return c(x,d)},t.utf8border=function(u,h){var f;for((h=h||u.length)>u.length&&(h=u.length),f=h-1;0<=f&&(192&u[f])==128;)f--;return f<0||f===0?h:f+s[u[f]]>h?f:h}},{"./common":41}],43:[function(r,e,t){"use strict";e.exports=function(n,i,a,s){for(var o=65535&n|0,c=n>>>16&65535|0,u=0;a!==0;){for(a-=u=2e3<a?2e3:a;c=c+(o=o+i[s++]|0)|0,--u;);o%=65521,c%=65521}return o|c<<16|0}},{}],44:[function(r,e,t){"use strict";e.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(r,e,t){"use strict";var n=(function(){for(var i,a=[],s=0;s<256;s++){i=s;for(var o=0;o<8;o++)i=1&i?3988292384^i>>>1:i>>>1;a[s]=i}return a})();e.exports=function(i,a,s,o){var c=n,u=o+s;i^=-1;for(var h=o;h<u;h++)i=i>>>8^c[255&(i^a[h])];return-1^i}},{}],46:[function(r,e,t){"use strict";var n,i=r("../utils/common"),a=r("./trees"),s=r("./adler32"),o=r("./crc32"),c=r("./messages"),u=0,h=4,f=0,d=-2,p=-1,m=4,g=2,x=8,y=9,b=286,v=30,_=19,A=2*b+1,E=15,T=3,S=258,C=S+T+1,F=42,k=113,D=1,B=2,q=3,j=4;function U(w,Q){return w.msg=c[Q],Q}function O(w){return(w<<1)-(4<w?9:0)}function P(w){for(var Q=w.length;0<=--Q;)w[Q]=0}function R(w){var Q=w.state,ne=Q.pending;ne>w.avail_out&&(ne=w.avail_out),ne!==0&&(i.arraySet(w.output,Q.pending_buf,Q.pending_out,ne,w.next_out),w.next_out+=ne,Q.pending_out+=ne,w.total_out+=ne,w.avail_out-=ne,Q.pending-=ne,Q.pending===0&&(Q.pending_out=0))}function N(w,Q){a._tr_flush_block(w,0<=w.block_start?w.block_start:-1,w.strstart-w.block_start,Q),w.block_start=w.strstart,R(w.strm)}function z(w,Q){w.pending_buf[w.pending++]=Q}function I(w,Q){w.pending_buf[w.pending++]=Q>>>8&255,w.pending_buf[w.pending++]=255&Q}function H(w,Q){var ne,W,L=w.max_chain_length,G=w.strstart,le=w.prev_length,me=w.nice_match,oe=w.strstart>w.w_size-C?w.strstart-(w.w_size-C):0,we=w.window,Te=w.w_mask,te=w.prev,ae=w.strstart+S,xe=we[G+le-1],ye=we[G+le];w.prev_length>=w.good_match&&(L>>=2),me>w.lookahead&&(me=w.lookahead);do if(we[(ne=Q)+le]===ye&&we[ne+le-1]===xe&&we[ne]===we[G]&&we[++ne]===we[G+1]){G+=2,ne++;do;while(we[++G]===we[++ne]&&we[++G]===we[++ne]&&we[++G]===we[++ne]&&we[++G]===we[++ne]&&we[++G]===we[++ne]&&we[++G]===we[++ne]&&we[++G]===we[++ne]&&we[++G]===we[++ne]&&G<ae);if(W=S-(ae-G),G=ae-S,le<W){if(w.match_start=Q,me<=(le=W))break;xe=we[G+le-1],ye=we[G+le]}}while((Q=te[Q&Te])>oe&&--L!=0);return le<=w.lookahead?le:w.lookahead}function Z(w){var Q,ne,W,L,G,le,me,oe,we,Te,te=w.w_size;do{if(L=w.window_size-w.lookahead-w.strstart,w.strstart>=te+(te-C)){for(i.arraySet(w.window,w.window,te,te,0),w.match_start-=te,w.strstart-=te,w.block_start-=te,Q=ne=w.hash_size;W=w.head[--Q],w.head[Q]=te<=W?W-te:0,--ne;);for(Q=ne=te;W=w.prev[--Q],w.prev[Q]=te<=W?W-te:0,--ne;);L+=te}if(w.strm.avail_in===0)break;if(le=w.strm,me=w.window,oe=w.strstart+w.lookahead,we=L,Te=void 0,Te=le.avail_in,we<Te&&(Te=we),ne=Te===0?0:(le.avail_in-=Te,i.arraySet(me,le.input,le.next_in,Te,oe),le.state.wrap===1?le.adler=s(le.adler,me,Te,oe):le.state.wrap===2&&(le.adler=o(le.adler,me,Te,oe)),le.next_in+=Te,le.total_in+=Te,Te),w.lookahead+=ne,w.lookahead+w.insert>=T)for(G=w.strstart-w.insert,w.ins_h=w.window[G],w.ins_h=(w.ins_h<<w.hash_shift^w.window[G+1])&w.hash_mask;w.insert&&(w.ins_h=(w.ins_h<<w.hash_shift^w.window[G+T-1])&w.hash_mask,w.prev[G&w.w_mask]=w.head[w.ins_h],w.head[w.ins_h]=G,G++,w.insert--,!(w.lookahead+w.insert<T)););}while(w.lookahead<C&&w.strm.avail_in!==0)}function re(w,Q){for(var ne,W;;){if(w.lookahead<C){if(Z(w),w.lookahead<C&&Q===u)return D;if(w.lookahead===0)break}if(ne=0,w.lookahead>=T&&(w.ins_h=(w.ins_h<<w.hash_shift^w.window[w.strstart+T-1])&w.hash_mask,ne=w.prev[w.strstart&w.w_mask]=w.head[w.ins_h],w.head[w.ins_h]=w.strstart),ne!==0&&w.strstart-ne<=w.w_size-C&&(w.match_length=H(w,ne)),w.match_length>=T)if(W=a._tr_tally(w,w.strstart-w.match_start,w.match_length-T),w.lookahead-=w.match_length,w.match_length<=w.max_lazy_match&&w.lookahead>=T){for(w.match_length--;w.strstart++,w.ins_h=(w.ins_h<<w.hash_shift^w.window[w.strstart+T-1])&w.hash_mask,ne=w.prev[w.strstart&w.w_mask]=w.head[w.ins_h],w.head[w.ins_h]=w.strstart,--w.match_length!=0;);w.strstart++}else w.strstart+=w.match_length,w.match_length=0,w.ins_h=w.window[w.strstart],w.ins_h=(w.ins_h<<w.hash_shift^w.window[w.strstart+1])&w.hash_mask;else W=a._tr_tally(w,0,w.window[w.strstart]),w.lookahead--,w.strstart++;if(W&&(N(w,!1),w.strm.avail_out===0))return D}return w.insert=w.strstart<T-1?w.strstart:T-1,Q===h?(N(w,!0),w.strm.avail_out===0?q:j):w.last_lit&&(N(w,!1),w.strm.avail_out===0)?D:B}function ee(w,Q){for(var ne,W,L;;){if(w.lookahead<C){if(Z(w),w.lookahead<C&&Q===u)return D;if(w.lookahead===0)break}if(ne=0,w.lookahead>=T&&(w.ins_h=(w.ins_h<<w.hash_shift^w.window[w.strstart+T-1])&w.hash_mask,ne=w.prev[w.strstart&w.w_mask]=w.head[w.ins_h],w.head[w.ins_h]=w.strstart),w.prev_length=w.match_length,w.prev_match=w.match_start,w.match_length=T-1,ne!==0&&w.prev_length<w.max_lazy_match&&w.strstart-ne<=w.w_size-C&&(w.match_length=H(w,ne),w.match_length<=5&&(w.strategy===1||w.match_length===T&&4096<w.strstart-w.match_start)&&(w.match_length=T-1)),w.prev_length>=T&&w.match_length<=w.prev_length){for(L=w.strstart+w.lookahead-T,W=a._tr_tally(w,w.strstart-1-w.prev_match,w.prev_length-T),w.lookahead-=w.prev_length-1,w.prev_length-=2;++w.strstart<=L&&(w.ins_h=(w.ins_h<<w.hash_shift^w.window[w.strstart+T-1])&w.hash_mask,ne=w.prev[w.strstart&w.w_mask]=w.head[w.ins_h],w.head[w.ins_h]=w.strstart),--w.prev_length!=0;);if(w.match_available=0,w.match_length=T-1,w.strstart++,W&&(N(w,!1),w.strm.avail_out===0))return D}else if(w.match_available){if((W=a._tr_tally(w,0,w.window[w.strstart-1]))&&N(w,!1),w.strstart++,w.lookahead--,w.strm.avail_out===0)return D}else w.match_available=1,w.strstart++,w.lookahead--}return w.match_available&&(W=a._tr_tally(w,0,w.window[w.strstart-1]),w.match_available=0),w.insert=w.strstart<T-1?w.strstart:T-1,Q===h?(N(w,!0),w.strm.avail_out===0?q:j):w.last_lit&&(N(w,!1),w.strm.avail_out===0)?D:B}function ie(w,Q,ne,W,L){this.good_length=w,this.max_lazy=Q,this.nice_length=ne,this.max_chain=W,this.func=L}function se(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=x,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(2*A),this.dyn_dtree=new i.Buf16(2*(2*v+1)),this.bl_tree=new i.Buf16(2*(2*_+1)),P(this.dyn_ltree),P(this.dyn_dtree),P(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(E+1),this.heap=new i.Buf16(2*b+1),P(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(2*b+1),P(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function de(w){var Q;return w&&w.state?(w.total_in=w.total_out=0,w.data_type=g,(Q=w.state).pending=0,Q.pending_out=0,Q.wrap<0&&(Q.wrap=-Q.wrap),Q.status=Q.wrap?F:k,w.adler=Q.wrap===2?0:1,Q.last_flush=u,a._tr_init(Q),f):U(w,d)}function ge(w){var Q=de(w);return Q===f&&(function(ne){ne.window_size=2*ne.w_size,P(ne.head),ne.max_lazy_match=n[ne.level].max_lazy,ne.good_match=n[ne.level].good_length,ne.nice_match=n[ne.level].nice_length,ne.max_chain_length=n[ne.level].max_chain,ne.strstart=0,ne.block_start=0,ne.lookahead=0,ne.insert=0,ne.match_length=ne.prev_length=T-1,ne.match_available=0,ne.ins_h=0})(w.state),Q}function _e(w,Q,ne,W,L,G){if(!w)return d;var le=1;if(Q===p&&(Q=6),W<0?(le=0,W=-W):15<W&&(le=2,W-=16),L<1||y<L||ne!==x||W<8||15<W||Q<0||9<Q||G<0||m<G)return U(w,d);W===8&&(W=9);var me=new se;return(w.state=me).strm=w,me.wrap=le,me.gzhead=null,me.w_bits=W,me.w_size=1<<me.w_bits,me.w_mask=me.w_size-1,me.hash_bits=L+7,me.hash_size=1<<me.hash_bits,me.hash_mask=me.hash_size-1,me.hash_shift=~~((me.hash_bits+T-1)/T),me.window=new i.Buf8(2*me.w_size),me.head=new i.Buf16(me.hash_size),me.prev=new i.Buf16(me.w_size),me.lit_bufsize=1<<L+6,me.pending_buf_size=4*me.lit_bufsize,me.pending_buf=new i.Buf8(me.pending_buf_size),me.d_buf=1*me.lit_bufsize,me.l_buf=3*me.lit_bufsize,me.level=Q,me.strategy=G,me.method=ne,ge(w)}n=[new ie(0,0,0,0,function(w,Q){var ne=65535;for(ne>w.pending_buf_size-5&&(ne=w.pending_buf_size-5);;){if(w.lookahead<=1){if(Z(w),w.lookahead===0&&Q===u)return D;if(w.lookahead===0)break}w.strstart+=w.lookahead,w.lookahead=0;var W=w.block_start+ne;if((w.strstart===0||w.strstart>=W)&&(w.lookahead=w.strstart-W,w.strstart=W,N(w,!1),w.strm.avail_out===0)||w.strstart-w.block_start>=w.w_size-C&&(N(w,!1),w.strm.avail_out===0))return D}return w.insert=0,Q===h?(N(w,!0),w.strm.avail_out===0?q:j):(w.strstart>w.block_start&&(N(w,!1),w.strm.avail_out),D)}),new ie(4,4,8,4,re),new ie(4,5,16,8,re),new ie(4,6,32,32,re),new ie(4,4,16,16,ee),new ie(8,16,32,32,ee),new ie(8,16,128,128,ee),new ie(8,32,128,256,ee),new ie(32,128,258,1024,ee),new ie(32,258,258,4096,ee)],t.deflateInit=function(w,Q){return _e(w,Q,x,15,8,0)},t.deflateInit2=_e,t.deflateReset=ge,t.deflateResetKeep=de,t.deflateSetHeader=function(w,Q){return w&&w.state?w.state.wrap!==2?d:(w.state.gzhead=Q,f):d},t.deflate=function(w,Q){var ne,W,L,G;if(!w||!w.state||5<Q||Q<0)return w?U(w,d):d;if(W=w.state,!w.output||!w.input&&w.avail_in!==0||W.status===666&&Q!==h)return U(w,w.avail_out===0?-5:d);if(W.strm=w,ne=W.last_flush,W.last_flush=Q,W.status===F)if(W.wrap===2)w.adler=0,z(W,31),z(W,139),z(W,8),W.gzhead?(z(W,(W.gzhead.text?1:0)+(W.gzhead.hcrc?2:0)+(W.gzhead.extra?4:0)+(W.gzhead.name?8:0)+(W.gzhead.comment?16:0)),z(W,255&W.gzhead.time),z(W,W.gzhead.time>>8&255),z(W,W.gzhead.time>>16&255),z(W,W.gzhead.time>>24&255),z(W,W.level===9?2:2<=W.strategy||W.level<2?4:0),z(W,255&W.gzhead.os),W.gzhead.extra&&W.gzhead.extra.length&&(z(W,255&W.gzhead.extra.length),z(W,W.gzhead.extra.length>>8&255)),W.gzhead.hcrc&&(w.adler=o(w.adler,W.pending_buf,W.pending,0)),W.gzindex=0,W.status=69):(z(W,0),z(W,0),z(W,0),z(W,0),z(W,0),z(W,W.level===9?2:2<=W.strategy||W.level<2?4:0),z(W,3),W.status=k);else{var le=x+(W.w_bits-8<<4)<<8;le|=(2<=W.strategy||W.level<2?0:W.level<6?1:W.level===6?2:3)<<6,W.strstart!==0&&(le|=32),le+=31-le%31,W.status=k,I(W,le),W.strstart!==0&&(I(W,w.adler>>>16),I(W,65535&w.adler)),w.adler=1}if(W.status===69)if(W.gzhead.extra){for(L=W.pending;W.gzindex<(65535&W.gzhead.extra.length)&&(W.pending!==W.pending_buf_size||(W.gzhead.hcrc&&W.pending>L&&(w.adler=o(w.adler,W.pending_buf,W.pending-L,L)),R(w),L=W.pending,W.pending!==W.pending_buf_size));)z(W,255&W.gzhead.extra[W.gzindex]),W.gzindex++;W.gzhead.hcrc&&W.pending>L&&(w.adler=o(w.adler,W.pending_buf,W.pending-L,L)),W.gzindex===W.gzhead.extra.length&&(W.gzindex=0,W.status=73)}else W.status=73;if(W.status===73)if(W.gzhead.name){L=W.pending;do{if(W.pending===W.pending_buf_size&&(W.gzhead.hcrc&&W.pending>L&&(w.adler=o(w.adler,W.pending_buf,W.pending-L,L)),R(w),L=W.pending,W.pending===W.pending_buf_size)){G=1;break}G=W.gzindex<W.gzhead.name.length?255&W.gzhead.name.charCodeAt(W.gzindex++):0,z(W,G)}while(G!==0);W.gzhead.hcrc&&W.pending>L&&(w.adler=o(w.adler,W.pending_buf,W.pending-L,L)),G===0&&(W.gzindex=0,W.status=91)}else W.status=91;if(W.status===91)if(W.gzhead.comment){L=W.pending;do{if(W.pending===W.pending_buf_size&&(W.gzhead.hcrc&&W.pending>L&&(w.adler=o(w.adler,W.pending_buf,W.pending-L,L)),R(w),L=W.pending,W.pending===W.pending_buf_size)){G=1;break}G=W.gzindex<W.gzhead.comment.length?255&W.gzhead.comment.charCodeAt(W.gzindex++):0,z(W,G)}while(G!==0);W.gzhead.hcrc&&W.pending>L&&(w.adler=o(w.adler,W.pending_buf,W.pending-L,L)),G===0&&(W.status=103)}else W.status=103;if(W.status===103&&(W.gzhead.hcrc?(W.pending+2>W.pending_buf_size&&R(w),W.pending+2<=W.pending_buf_size&&(z(W,255&w.adler),z(W,w.adler>>8&255),w.adler=0,W.status=k)):W.status=k),W.pending!==0){if(R(w),w.avail_out===0)return W.last_flush=-1,f}else if(w.avail_in===0&&O(Q)<=O(ne)&&Q!==h)return U(w,-5);if(W.status===666&&w.avail_in!==0)return U(w,-5);if(w.avail_in!==0||W.lookahead!==0||Q!==u&&W.status!==666){var me=W.strategy===2?(function(oe,we){for(var Te;;){if(oe.lookahead===0&&(Z(oe),oe.lookahead===0)){if(we===u)return D;break}if(oe.match_length=0,Te=a._tr_tally(oe,0,oe.window[oe.strstart]),oe.lookahead--,oe.strstart++,Te&&(N(oe,!1),oe.strm.avail_out===0))return D}return oe.insert=0,we===h?(N(oe,!0),oe.strm.avail_out===0?q:j):oe.last_lit&&(N(oe,!1),oe.strm.avail_out===0)?D:B})(W,Q):W.strategy===3?(function(oe,we){for(var Te,te,ae,xe,ye=oe.window;;){if(oe.lookahead<=S){if(Z(oe),oe.lookahead<=S&&we===u)return D;if(oe.lookahead===0)break}if(oe.match_length=0,oe.lookahead>=T&&0<oe.strstart&&(te=ye[ae=oe.strstart-1])===ye[++ae]&&te===ye[++ae]&&te===ye[++ae]){xe=oe.strstart+S;do;while(te===ye[++ae]&&te===ye[++ae]&&te===ye[++ae]&&te===ye[++ae]&&te===ye[++ae]&&te===ye[++ae]&&te===ye[++ae]&&te===ye[++ae]&&ae<xe);oe.match_length=S-(xe-ae),oe.match_length>oe.lookahead&&(oe.match_length=oe.lookahead)}if(oe.match_length>=T?(Te=a._tr_tally(oe,1,oe.match_length-T),oe.lookahead-=oe.match_length,oe.strstart+=oe.match_length,oe.match_length=0):(Te=a._tr_tally(oe,0,oe.window[oe.strstart]),oe.lookahead--,oe.strstart++),Te&&(N(oe,!1),oe.strm.avail_out===0))return D}return oe.insert=0,we===h?(N(oe,!0),oe.strm.avail_out===0?q:j):oe.last_lit&&(N(oe,!1),oe.strm.avail_out===0)?D:B})(W,Q):n[W.level].func(W,Q);if(me!==q&&me!==j||(W.status=666),me===D||me===q)return w.avail_out===0&&(W.last_flush=-1),f;if(me===B&&(Q===1?a._tr_align(W):Q!==5&&(a._tr_stored_block(W,0,0,!1),Q===3&&(P(W.head),W.lookahead===0&&(W.strstart=0,W.block_start=0,W.insert=0))),R(w),w.avail_out===0))return W.last_flush=-1,f}return Q!==h?f:W.wrap<=0?1:(W.wrap===2?(z(W,255&w.adler),z(W,w.adler>>8&255),z(W,w.adler>>16&255),z(W,w.adler>>24&255),z(W,255&w.total_in),z(W,w.total_in>>8&255),z(W,w.total_in>>16&255),z(W,w.total_in>>24&255)):(I(W,w.adler>>>16),I(W,65535&w.adler)),R(w),0<W.wrap&&(W.wrap=-W.wrap),W.pending!==0?f:1)},t.deflateEnd=function(w){var Q;return w&&w.state?(Q=w.state.status)!==F&&Q!==69&&Q!==73&&Q!==91&&Q!==103&&Q!==k&&Q!==666?U(w,d):(w.state=null,Q===k?U(w,-3):f):d},t.deflateSetDictionary=function(w,Q){var ne,W,L,G,le,me,oe,we,Te=Q.length;if(!w||!w.state||(G=(ne=w.state).wrap)===2||G===1&&ne.status!==F||ne.lookahead)return d;for(G===1&&(w.adler=s(w.adler,Q,Te,0)),ne.wrap=0,Te>=ne.w_size&&(G===0&&(P(ne.head),ne.strstart=0,ne.block_start=0,ne.insert=0),we=new i.Buf8(ne.w_size),i.arraySet(we,Q,Te-ne.w_size,ne.w_size,0),Q=we,Te=ne.w_size),le=w.avail_in,me=w.next_in,oe=w.input,w.avail_in=Te,w.next_in=0,w.input=Q,Z(ne);ne.lookahead>=T;){for(W=ne.strstart,L=ne.lookahead-(T-1);ne.ins_h=(ne.ins_h<<ne.hash_shift^ne.window[W+T-1])&ne.hash_mask,ne.prev[W&ne.w_mask]=ne.head[ne.ins_h],ne.head[ne.ins_h]=W,W++,--L;);ne.strstart=W,ne.lookahead=T-1,Z(ne)}return ne.strstart+=ne.lookahead,ne.block_start=ne.strstart,ne.insert=ne.lookahead,ne.lookahead=0,ne.match_length=ne.prev_length=T-1,ne.match_available=0,w.next_in=me,w.input=oe,w.avail_in=le,ne.wrap=G,f},t.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(r,e,t){"use strict";e.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(r,e,t){"use strict";e.exports=function(n,i){var a,s,o,c,u,h,f,d,p,m,g,x,y,b,v,_,A,E,T,S,C,F,k,D,B;a=n.state,s=n.next_in,D=n.input,o=s+(n.avail_in-5),c=n.next_out,B=n.output,u=c-(i-n.avail_out),h=c+(n.avail_out-257),f=a.dmax,d=a.wsize,p=a.whave,m=a.wnext,g=a.window,x=a.hold,y=a.bits,b=a.lencode,v=a.distcode,_=(1<<a.lenbits)-1,A=(1<<a.distbits)-1;e:do{y<15&&(x+=D[s++]<<y,y+=8,x+=D[s++]<<y,y+=8),E=b[x&_];t:for(;;){if(x>>>=T=E>>>24,y-=T,(T=E>>>16&255)===0)B[c++]=65535&E;else{if(!(16&T)){if((64&T)==0){E=b[(65535&E)+(x&(1<<T)-1)];continue t}if(32&T){a.mode=12;break e}n.msg="invalid literal/length code",a.mode=30;break e}S=65535&E,(T&=15)&&(y<T&&(x+=D[s++]<<y,y+=8),S+=x&(1<<T)-1,x>>>=T,y-=T),y<15&&(x+=D[s++]<<y,y+=8,x+=D[s++]<<y,y+=8),E=v[x&A];r:for(;;){if(x>>>=T=E>>>24,y-=T,!(16&(T=E>>>16&255))){if((64&T)==0){E=v[(65535&E)+(x&(1<<T)-1)];continue r}n.msg="invalid distance code",a.mode=30;break e}if(C=65535&E,y<(T&=15)&&(x+=D[s++]<<y,(y+=8)<T&&(x+=D[s++]<<y,y+=8)),f<(C+=x&(1<<T)-1)){n.msg="invalid distance too far back",a.mode=30;break e}if(x>>>=T,y-=T,(T=c-u)<C){if(p<(T=C-T)&&a.sane){n.msg="invalid distance too far back",a.mode=30;break e}if(k=g,(F=0)===m){if(F+=d-T,T<S){for(S-=T;B[c++]=g[F++],--T;);F=c-C,k=B}}else if(m<T){if(F+=d+m-T,(T-=m)<S){for(S-=T;B[c++]=g[F++],--T;);if(F=0,m<S){for(S-=T=m;B[c++]=g[F++],--T;);F=c-C,k=B}}}else if(F+=m-T,T<S){for(S-=T;B[c++]=g[F++],--T;);F=c-C,k=B}for(;2<S;)B[c++]=k[F++],B[c++]=k[F++],B[c++]=k[F++],S-=3;S&&(B[c++]=k[F++],1<S&&(B[c++]=k[F++]))}else{for(F=c-C;B[c++]=B[F++],B[c++]=B[F++],B[c++]=B[F++],2<(S-=3););S&&(B[c++]=B[F++],1<S&&(B[c++]=B[F++]))}break}}break}}while(s<o&&c<h);s-=S=y>>3,x&=(1<<(y-=S<<3))-1,n.next_in=s,n.next_out=c,n.avail_in=s<o?o-s+5:5-(s-o),n.avail_out=c<h?h-c+257:257-(c-h),a.hold=x,a.bits=y}},{}],49:[function(r,e,t){"use strict";var n=r("../utils/common"),i=r("./adler32"),a=r("./crc32"),s=r("./inffast"),o=r("./inftrees"),c=1,u=2,h=0,f=-2,d=1,p=852,m=592;function g(F){return(F>>>24&255)+(F>>>8&65280)+((65280&F)<<8)+((255&F)<<24)}function x(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function y(F){var k;return F&&F.state?(k=F.state,F.total_in=F.total_out=k.total=0,F.msg="",k.wrap&&(F.adler=1&k.wrap),k.mode=d,k.last=0,k.havedict=0,k.dmax=32768,k.head=null,k.hold=0,k.bits=0,k.lencode=k.lendyn=new n.Buf32(p),k.distcode=k.distdyn=new n.Buf32(m),k.sane=1,k.back=-1,h):f}function b(F){var k;return F&&F.state?((k=F.state).wsize=0,k.whave=0,k.wnext=0,y(F)):f}function v(F,k){var D,B;return F&&F.state?(B=F.state,k<0?(D=0,k=-k):(D=1+(k>>4),k<48&&(k&=15)),k&&(k<8||15<k)?f:(B.window!==null&&B.wbits!==k&&(B.window=null),B.wrap=D,B.wbits=k,b(F))):f}function _(F,k){var D,B;return F?(B=new x,(F.state=B).window=null,(D=v(F,k))!==h&&(F.state=null),D):f}var A,E,T=!0;function S(F){if(T){var k;for(A=new n.Buf32(512),E=new n.Buf32(32),k=0;k<144;)F.lens[k++]=8;for(;k<256;)F.lens[k++]=9;for(;k<280;)F.lens[k++]=7;for(;k<288;)F.lens[k++]=8;for(o(c,F.lens,0,288,A,0,F.work,{bits:9}),k=0;k<32;)F.lens[k++]=5;o(u,F.lens,0,32,E,0,F.work,{bits:5}),T=!1}F.lencode=A,F.lenbits=9,F.distcode=E,F.distbits=5}function C(F,k,D,B){var q,j=F.state;return j.window===null&&(j.wsize=1<<j.wbits,j.wnext=0,j.whave=0,j.window=new n.Buf8(j.wsize)),B>=j.wsize?(n.arraySet(j.window,k,D-j.wsize,j.wsize,0),j.wnext=0,j.whave=j.wsize):(B<(q=j.wsize-j.wnext)&&(q=B),n.arraySet(j.window,k,D-B,q,j.wnext),(B-=q)?(n.arraySet(j.window,k,D-B,B,0),j.wnext=B,j.whave=j.wsize):(j.wnext+=q,j.wnext===j.wsize&&(j.wnext=0),j.whave<j.wsize&&(j.whave+=q))),0}t.inflateReset=b,t.inflateReset2=v,t.inflateResetKeep=y,t.inflateInit=function(F){return _(F,15)},t.inflateInit2=_,t.inflate=function(F,k){var D,B,q,j,U,O,P,R,N,z,I,H,Z,re,ee,ie,se,de,ge,_e,w,Q,ne,W,L=0,G=new n.Buf8(4),le=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!F||!F.state||!F.output||!F.input&&F.avail_in!==0)return f;(D=F.state).mode===12&&(D.mode=13),U=F.next_out,q=F.output,P=F.avail_out,j=F.next_in,B=F.input,O=F.avail_in,R=D.hold,N=D.bits,z=O,I=P,Q=h;e:for(;;)switch(D.mode){case d:if(D.wrap===0){D.mode=13;break}for(;N<16;){if(O===0)break e;O--,R+=B[j++]<<N,N+=8}if(2&D.wrap&&R===35615){G[D.check=0]=255&R,G[1]=R>>>8&255,D.check=a(D.check,G,2,0),N=R=0,D.mode=2;break}if(D.flags=0,D.head&&(D.head.done=!1),!(1&D.wrap)||(((255&R)<<8)+(R>>8))%31){F.msg="incorrect header check",D.mode=30;break}if((15&R)!=8){F.msg="unknown compression method",D.mode=30;break}if(N-=4,w=8+(15&(R>>>=4)),D.wbits===0)D.wbits=w;else if(w>D.wbits){F.msg="invalid window size",D.mode=30;break}D.dmax=1<<w,F.adler=D.check=1,D.mode=512&R?10:12,N=R=0;break;case 2:for(;N<16;){if(O===0)break e;O--,R+=B[j++]<<N,N+=8}if(D.flags=R,(255&D.flags)!=8){F.msg="unknown compression method",D.mode=30;break}if(57344&D.flags){F.msg="unknown header flags set",D.mode=30;break}D.head&&(D.head.text=R>>8&1),512&D.flags&&(G[0]=255&R,G[1]=R>>>8&255,D.check=a(D.check,G,2,0)),N=R=0,D.mode=3;case 3:for(;N<32;){if(O===0)break e;O--,R+=B[j++]<<N,N+=8}D.head&&(D.head.time=R),512&D.flags&&(G[0]=255&R,G[1]=R>>>8&255,G[2]=R>>>16&255,G[3]=R>>>24&255,D.check=a(D.check,G,4,0)),N=R=0,D.mode=4;case 4:for(;N<16;){if(O===0)break e;O--,R+=B[j++]<<N,N+=8}D.head&&(D.head.xflags=255&R,D.head.os=R>>8),512&D.flags&&(G[0]=255&R,G[1]=R>>>8&255,D.check=a(D.check,G,2,0)),N=R=0,D.mode=5;case 5:if(1024&D.flags){for(;N<16;){if(O===0)break e;O--,R+=B[j++]<<N,N+=8}D.length=R,D.head&&(D.head.extra_len=R),512&D.flags&&(G[0]=255&R,G[1]=R>>>8&255,D.check=a(D.check,G,2,0)),N=R=0}else D.head&&(D.head.extra=null);D.mode=6;case 6:if(1024&D.flags&&(O<(H=D.length)&&(H=O),H&&(D.head&&(w=D.head.extra_len-D.length,D.head.extra||(D.head.extra=new Array(D.head.extra_len)),n.arraySet(D.head.extra,B,j,H,w)),512&D.flags&&(D.check=a(D.check,B,H,j)),O-=H,j+=H,D.length-=H),D.length))break e;D.length=0,D.mode=7;case 7:if(2048&D.flags){if(O===0)break e;for(H=0;w=B[j+H++],D.head&&w&&D.length<65536&&(D.head.name+=String.fromCharCode(w)),w&&H<O;);if(512&D.flags&&(D.check=a(D.check,B,H,j)),O-=H,j+=H,w)break e}else D.head&&(D.head.name=null);D.length=0,D.mode=8;case 8:if(4096&D.flags){if(O===0)break e;for(H=0;w=B[j+H++],D.head&&w&&D.length<65536&&(D.head.comment+=String.fromCharCode(w)),w&&H<O;);if(512&D.flags&&(D.check=a(D.check,B,H,j)),O-=H,j+=H,w)break e}else D.head&&(D.head.comment=null);D.mode=9;case 9:if(512&D.flags){for(;N<16;){if(O===0)break e;O--,R+=B[j++]<<N,N+=8}if(R!==(65535&D.check)){F.msg="header crc mismatch",D.mode=30;break}N=R=0}D.head&&(D.head.hcrc=D.flags>>9&1,D.head.done=!0),F.adler=D.check=0,D.mode=12;break;case 10:for(;N<32;){if(O===0)break e;O--,R+=B[j++]<<N,N+=8}F.adler=D.check=g(R),N=R=0,D.mode=11;case 11:if(D.havedict===0)return F.next_out=U,F.avail_out=P,F.next_in=j,F.avail_in=O,D.hold=R,D.bits=N,2;F.adler=D.check=1,D.mode=12;case 12:if(k===5||k===6)break e;case 13:if(D.last){R>>>=7&N,N-=7&N,D.mode=27;break}for(;N<3;){if(O===0)break e;O--,R+=B[j++]<<N,N+=8}switch(D.last=1&R,N-=1,3&(R>>>=1)){case 0:D.mode=14;break;case 1:if(S(D),D.mode=20,k!==6)break;R>>>=2,N-=2;break e;case 2:D.mode=17;break;case 3:F.msg="invalid block type",D.mode=30}R>>>=2,N-=2;break;case 14:for(R>>>=7&N,N-=7&N;N<32;){if(O===0)break e;O--,R+=B[j++]<<N,N+=8}if((65535&R)!=(R>>>16^65535)){F.msg="invalid stored block lengths",D.mode=30;break}if(D.length=65535&R,N=R=0,D.mode=15,k===6)break e;case 15:D.mode=16;case 16:if(H=D.length){if(O<H&&(H=O),P<H&&(H=P),H===0)break e;n.arraySet(q,B,j,H,U),O-=H,j+=H,P-=H,U+=H,D.length-=H;break}D.mode=12;break;case 17:for(;N<14;){if(O===0)break e;O--,R+=B[j++]<<N,N+=8}if(D.nlen=257+(31&R),R>>>=5,N-=5,D.ndist=1+(31&R),R>>>=5,N-=5,D.ncode=4+(15&R),R>>>=4,N-=4,286<D.nlen||30<D.ndist){F.msg="too many length or distance symbols",D.mode=30;break}D.have=0,D.mode=18;case 18:for(;D.have<D.ncode;){for(;N<3;){if(O===0)break e;O--,R+=B[j++]<<N,N+=8}D.lens[le[D.have++]]=7&R,R>>>=3,N-=3}for(;D.have<19;)D.lens[le[D.have++]]=0;if(D.lencode=D.lendyn,D.lenbits=7,ne={bits:D.lenbits},Q=o(0,D.lens,0,19,D.lencode,0,D.work,ne),D.lenbits=ne.bits,Q){F.msg="invalid code lengths set",D.mode=30;break}D.have=0,D.mode=19;case 19:for(;D.have<D.nlen+D.ndist;){for(;ie=(L=D.lencode[R&(1<<D.lenbits)-1])>>>16&255,se=65535&L,!((ee=L>>>24)<=N);){if(O===0)break e;O--,R+=B[j++]<<N,N+=8}if(se<16)R>>>=ee,N-=ee,D.lens[D.have++]=se;else{if(se===16){for(W=ee+2;N<W;){if(O===0)break e;O--,R+=B[j++]<<N,N+=8}if(R>>>=ee,N-=ee,D.have===0){F.msg="invalid bit length repeat",D.mode=30;break}w=D.lens[D.have-1],H=3+(3&R),R>>>=2,N-=2}else if(se===17){for(W=ee+3;N<W;){if(O===0)break e;O--,R+=B[j++]<<N,N+=8}N-=ee,w=0,H=3+(7&(R>>>=ee)),R>>>=3,N-=3}else{for(W=ee+7;N<W;){if(O===0)break e;O--,R+=B[j++]<<N,N+=8}N-=ee,w=0,H=11+(127&(R>>>=ee)),R>>>=7,N-=7}if(D.have+H>D.nlen+D.ndist){F.msg="invalid bit length repeat",D.mode=30;break}for(;H--;)D.lens[D.have++]=w}}if(D.mode===30)break;if(D.lens[256]===0){F.msg="invalid code -- missing end-of-block",D.mode=30;break}if(D.lenbits=9,ne={bits:D.lenbits},Q=o(c,D.lens,0,D.nlen,D.lencode,0,D.work,ne),D.lenbits=ne.bits,Q){F.msg="invalid literal/lengths set",D.mode=30;break}if(D.distbits=6,D.distcode=D.distdyn,ne={bits:D.distbits},Q=o(u,D.lens,D.nlen,D.ndist,D.distcode,0,D.work,ne),D.distbits=ne.bits,Q){F.msg="invalid distances set",D.mode=30;break}if(D.mode=20,k===6)break e;case 20:D.mode=21;case 21:if(6<=O&&258<=P){F.next_out=U,F.avail_out=P,F.next_in=j,F.avail_in=O,D.hold=R,D.bits=N,s(F,I),U=F.next_out,q=F.output,P=F.avail_out,j=F.next_in,B=F.input,O=F.avail_in,R=D.hold,N=D.bits,D.mode===12&&(D.back=-1);break}for(D.back=0;ie=(L=D.lencode[R&(1<<D.lenbits)-1])>>>16&255,se=65535&L,!((ee=L>>>24)<=N);){if(O===0)break e;O--,R+=B[j++]<<N,N+=8}if(ie&&(240&ie)==0){for(de=ee,ge=ie,_e=se;ie=(L=D.lencode[_e+((R&(1<<de+ge)-1)>>de)])>>>16&255,se=65535&L,!(de+(ee=L>>>24)<=N);){if(O===0)break e;O--,R+=B[j++]<<N,N+=8}R>>>=de,N-=de,D.back+=de}if(R>>>=ee,N-=ee,D.back+=ee,D.length=se,ie===0){D.mode=26;break}if(32&ie){D.back=-1,D.mode=12;break}if(64&ie){F.msg="invalid literal/length code",D.mode=30;break}D.extra=15&ie,D.mode=22;case 22:if(D.extra){for(W=D.extra;N<W;){if(O===0)break e;O--,R+=B[j++]<<N,N+=8}D.length+=R&(1<<D.extra)-1,R>>>=D.extra,N-=D.extra,D.back+=D.extra}D.was=D.length,D.mode=23;case 23:for(;ie=(L=D.distcode[R&(1<<D.distbits)-1])>>>16&255,se=65535&L,!((ee=L>>>24)<=N);){if(O===0)break e;O--,R+=B[j++]<<N,N+=8}if((240&ie)==0){for(de=ee,ge=ie,_e=se;ie=(L=D.distcode[_e+((R&(1<<de+ge)-1)>>de)])>>>16&255,se=65535&L,!(de+(ee=L>>>24)<=N);){if(O===0)break e;O--,R+=B[j++]<<N,N+=8}R>>>=de,N-=de,D.back+=de}if(R>>>=ee,N-=ee,D.back+=ee,64&ie){F.msg="invalid distance code",D.mode=30;break}D.offset=se,D.extra=15&ie,D.mode=24;case 24:if(D.extra){for(W=D.extra;N<W;){if(O===0)break e;O--,R+=B[j++]<<N,N+=8}D.offset+=R&(1<<D.extra)-1,R>>>=D.extra,N-=D.extra,D.back+=D.extra}if(D.offset>D.dmax){F.msg="invalid distance too far back",D.mode=30;break}D.mode=25;case 25:if(P===0)break e;if(H=I-P,D.offset>H){if((H=D.offset-H)>D.whave&&D.sane){F.msg="invalid distance too far back",D.mode=30;break}Z=H>D.wnext?(H-=D.wnext,D.wsize-H):D.wnext-H,H>D.length&&(H=D.length),re=D.window}else re=q,Z=U-D.offset,H=D.length;for(P<H&&(H=P),P-=H,D.length-=H;q[U++]=re[Z++],--H;);D.length===0&&(D.mode=21);break;case 26:if(P===0)break e;q[U++]=D.length,P--,D.mode=21;break;case 27:if(D.wrap){for(;N<32;){if(O===0)break e;O--,R|=B[j++]<<N,N+=8}if(I-=P,F.total_out+=I,D.total+=I,I&&(F.adler=D.check=D.flags?a(D.check,q,I,U-I):i(D.check,q,I,U-I)),I=P,(D.flags?R:g(R))!==D.check){F.msg="incorrect data check",D.mode=30;break}N=R=0}D.mode=28;case 28:if(D.wrap&&D.flags){for(;N<32;){if(O===0)break e;O--,R+=B[j++]<<N,N+=8}if(R!==(4294967295&D.total)){F.msg="incorrect length check",D.mode=30;break}N=R=0}D.mode=29;case 29:Q=1;break e;case 30:Q=-3;break e;case 31:return-4;default:return f}return F.next_out=U,F.avail_out=P,F.next_in=j,F.avail_in=O,D.hold=R,D.bits=N,(D.wsize||I!==F.avail_out&&D.mode<30&&(D.mode<27||k!==4))&&C(F,F.output,F.next_out,I-F.avail_out)?(D.mode=31,-4):(z-=F.avail_in,I-=F.avail_out,F.total_in+=z,F.total_out+=I,D.total+=I,D.wrap&&I&&(F.adler=D.check=D.flags?a(D.check,q,I,F.next_out-I):i(D.check,q,I,F.next_out-I)),F.data_type=D.bits+(D.last?64:0)+(D.mode===12?128:0)+(D.mode===20||D.mode===15?256:0),(z==0&&I===0||k===4)&&Q===h&&(Q=-5),Q)},t.inflateEnd=function(F){if(!F||!F.state)return f;var k=F.state;return k.window&&(k.window=null),F.state=null,h},t.inflateGetHeader=function(F,k){var D;return F&&F.state?(2&(D=F.state).wrap)==0?f:((D.head=k).done=!1,h):f},t.inflateSetDictionary=function(F,k){var D,B=k.length;return F&&F.state?(D=F.state).wrap!==0&&D.mode!==11?f:D.mode===11&&i(1,k,B,0)!==D.check?-3:C(F,k,B,B)?(D.mode=31,-4):(D.havedict=1,h):f},t.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(r,e,t){"use strict";var n=r("../utils/common"),i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],a=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],s=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],o=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];e.exports=function(c,u,h,f,d,p,m,g){var x,y,b,v,_,A,E,T,S,C=g.bits,F=0,k=0,D=0,B=0,q=0,j=0,U=0,O=0,P=0,R=0,N=null,z=0,I=new n.Buf16(16),H=new n.Buf16(16),Z=null,re=0;for(F=0;F<=15;F++)I[F]=0;for(k=0;k<f;k++)I[u[h+k]]++;for(q=C,B=15;1<=B&&I[B]===0;B--);if(B<q&&(q=B),B===0)return d[p++]=20971520,d[p++]=20971520,g.bits=1,0;for(D=1;D<B&&I[D]===0;D++);for(q<D&&(q=D),F=O=1;F<=15;F++)if(O<<=1,(O-=I[F])<0)return-1;if(0<O&&(c===0||B!==1))return-1;for(H[1]=0,F=1;F<15;F++)H[F+1]=H[F]+I[F];for(k=0;k<f;k++)u[h+k]!==0&&(m[H[u[h+k]]++]=k);if(A=c===0?(N=Z=m,19):c===1?(N=i,z-=257,Z=a,re-=257,256):(N=s,Z=o,-1),F=D,_=p,U=k=R=0,b=-1,v=(P=1<<(j=q))-1,c===1&&852<P||c===2&&592<P)return 1;for(;;){for(E=F-U,S=m[k]<A?(T=0,m[k]):m[k]>A?(T=Z[re+m[k]],N[z+m[k]]):(T=96,0),x=1<<F-U,D=y=1<<j;d[_+(R>>U)+(y-=x)]=E<<24|T<<16|S|0,y!==0;);for(x=1<<F-1;R&x;)x>>=1;if(x!==0?(R&=x-1,R+=x):R=0,k++,--I[F]==0){if(F===B)break;F=u[h+m[k]]}if(q<F&&(R&v)!==b){for(U===0&&(U=q),_+=D,O=1<<(j=F-U);j+U<B&&!((O-=I[j+U])<=0);)j++,O<<=1;if(P+=1<<j,c===1&&852<P||c===2&&592<P)return 1;d[b=R&v]=q<<24|j<<16|_-p|0}}return R!==0&&(d[_+R]=F-U<<24|64<<16|0),g.bits=q,0}},{"../utils/common":41}],51:[function(r,e,t){"use strict";e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(r,e,t){"use strict";var n=r("../utils/common"),i=0,a=1;function s(L){for(var G=L.length;0<=--G;)L[G]=0}var o=0,c=29,u=256,h=u+1+c,f=30,d=19,p=2*h+1,m=15,g=16,x=7,y=256,b=16,v=17,_=18,A=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],E=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],T=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],S=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],C=new Array(2*(h+2));s(C);var F=new Array(2*f);s(F);var k=new Array(512);s(k);var D=new Array(256);s(D);var B=new Array(c);s(B);var q,j,U,O=new Array(f);function P(L,G,le,me,oe){this.static_tree=L,this.extra_bits=G,this.extra_base=le,this.elems=me,this.max_length=oe,this.has_stree=L&&L.length}function R(L,G){this.dyn_tree=L,this.max_code=0,this.stat_desc=G}function N(L){return L<256?k[L]:k[256+(L>>>7)]}function z(L,G){L.pending_buf[L.pending++]=255&G,L.pending_buf[L.pending++]=G>>>8&255}function I(L,G,le){L.bi_valid>g-le?(L.bi_buf|=G<<L.bi_valid&65535,z(L,L.bi_buf),L.bi_buf=G>>g-L.bi_valid,L.bi_valid+=le-g):(L.bi_buf|=G<<L.bi_valid&65535,L.bi_valid+=le)}function H(L,G,le){I(L,le[2*G],le[2*G+1])}function Z(L,G){for(var le=0;le|=1&L,L>>>=1,le<<=1,0<--G;);return le>>>1}function re(L,G,le){var me,oe,we=new Array(m+1),Te=0;for(me=1;me<=m;me++)we[me]=Te=Te+le[me-1]<<1;for(oe=0;oe<=G;oe++){var te=L[2*oe+1];te!==0&&(L[2*oe]=Z(we[te]++,te))}}function ee(L){var G;for(G=0;G<h;G++)L.dyn_ltree[2*G]=0;for(G=0;G<f;G++)L.dyn_dtree[2*G]=0;for(G=0;G<d;G++)L.bl_tree[2*G]=0;L.dyn_ltree[2*y]=1,L.opt_len=L.static_len=0,L.last_lit=L.matches=0}function ie(L){8<L.bi_valid?z(L,L.bi_buf):0<L.bi_valid&&(L.pending_buf[L.pending++]=L.bi_buf),L.bi_buf=0,L.bi_valid=0}function se(L,G,le,me){var oe=2*G,we=2*le;return L[oe]<L[we]||L[oe]===L[we]&&me[G]<=me[le]}function de(L,G,le){for(var me=L.heap[le],oe=le<<1;oe<=L.heap_len&&(oe<L.heap_len&&se(G,L.heap[oe+1],L.heap[oe],L.depth)&&oe++,!se(G,me,L.heap[oe],L.depth));)L.heap[le]=L.heap[oe],le=oe,oe<<=1;L.heap[le]=me}function ge(L,G,le){var me,oe,we,Te,te=0;if(L.last_lit!==0)for(;me=L.pending_buf[L.d_buf+2*te]<<8|L.pending_buf[L.d_buf+2*te+1],oe=L.pending_buf[L.l_buf+te],te++,me===0?H(L,oe,G):(H(L,(we=D[oe])+u+1,G),(Te=A[we])!==0&&I(L,oe-=B[we],Te),H(L,we=N(--me),le),(Te=E[we])!==0&&I(L,me-=O[we],Te)),te<L.last_lit;);H(L,y,G)}function _e(L,G){var le,me,oe,we=G.dyn_tree,Te=G.stat_desc.static_tree,te=G.stat_desc.has_stree,ae=G.stat_desc.elems,xe=-1;for(L.heap_len=0,L.heap_max=p,le=0;le<ae;le++)we[2*le]!==0?(L.heap[++L.heap_len]=xe=le,L.depth[le]=0):we[2*le+1]=0;for(;L.heap_len<2;)we[2*(oe=L.heap[++L.heap_len]=xe<2?++xe:0)]=1,L.depth[oe]=0,L.opt_len--,te&&(L.static_len-=Te[2*oe+1]);for(G.max_code=xe,le=L.heap_len>>1;1<=le;le--)de(L,we,le);for(oe=ae;le=L.heap[1],L.heap[1]=L.heap[L.heap_len--],de(L,we,1),me=L.heap[1],L.heap[--L.heap_max]=le,L.heap[--L.heap_max]=me,we[2*oe]=we[2*le]+we[2*me],L.depth[oe]=(L.depth[le]>=L.depth[me]?L.depth[le]:L.depth[me])+1,we[2*le+1]=we[2*me+1]=oe,L.heap[1]=oe++,de(L,we,1),2<=L.heap_len;);L.heap[--L.heap_max]=L.heap[1],(function(ye,ke){var Le,Be,Ae,Ue,Xe,et,ft=ke.dyn_tree,Hi=ke.max_code,$s=ke.stat_desc.static_tree,Vf=ke.stat_desc.has_stree,gl=ke.stat_desc.extra_bits,qs=ke.stat_desc.extra_base,di=ke.stat_desc.max_length,Oa=0;for(Ue=0;Ue<=m;Ue++)ye.bl_count[Ue]=0;for(ft[2*ye.heap[ye.heap_max]+1]=0,Le=ye.heap_max+1;Le<p;Le++)di<(Ue=ft[2*ft[2*(Be=ye.heap[Le])+1]+1]+1)&&(Ue=di,Oa++),ft[2*Be+1]=Ue,Hi<Be||(ye.bl_count[Ue]++,Xe=0,qs<=Be&&(Xe=gl[Be-qs]),et=ft[2*Be],ye.opt_len+=et*(Ue+Xe),Vf&&(ye.static_len+=et*($s[2*Be+1]+Xe)));if(Oa!==0){do{for(Ue=di-1;ye.bl_count[Ue]===0;)Ue--;ye.bl_count[Ue]--,ye.bl_count[Ue+1]+=2,ye.bl_count[di]--,Oa-=2}while(0<Oa);for(Ue=di;Ue!==0;Ue--)for(Be=ye.bl_count[Ue];Be!==0;)Hi<(Ae=ye.heap[--Le])||(ft[2*Ae+1]!==Ue&&(ye.opt_len+=(Ue-ft[2*Ae+1])*ft[2*Ae],ft[2*Ae+1]=Ue),Be--)}})(L,G),re(we,xe,L.bl_count)}function w(L,G,le){var me,oe,we=-1,Te=G[1],te=0,ae=7,xe=4;for(Te===0&&(ae=138,xe=3),G[2*(le+1)+1]=65535,me=0;me<=le;me++)oe=Te,Te=G[2*(me+1)+1],++te<ae&&oe===Te||(te<xe?L.bl_tree[2*oe]+=te:oe!==0?(oe!==we&&L.bl_tree[2*oe]++,L.bl_tree[2*b]++):te<=10?L.bl_tree[2*v]++:L.bl_tree[2*_]++,we=oe,xe=(te=0)===Te?(ae=138,3):oe===Te?(ae=6,3):(ae=7,4))}function Q(L,G,le){var me,oe,we=-1,Te=G[1],te=0,ae=7,xe=4;for(Te===0&&(ae=138,xe=3),me=0;me<=le;me++)if(oe=Te,Te=G[2*(me+1)+1],!(++te<ae&&oe===Te)){if(te<xe)for(;H(L,oe,L.bl_tree),--te!=0;);else oe!==0?(oe!==we&&(H(L,oe,L.bl_tree),te--),H(L,b,L.bl_tree),I(L,te-3,2)):te<=10?(H(L,v,L.bl_tree),I(L,te-3,3)):(H(L,_,L.bl_tree),I(L,te-11,7));we=oe,xe=(te=0)===Te?(ae=138,3):oe===Te?(ae=6,3):(ae=7,4)}}s(O);var ne=!1;function W(L,G,le,me){I(L,(o<<1)+(me?1:0),3),(function(oe,we,Te,te){ie(oe),te&&(z(oe,Te),z(oe,~Te)),n.arraySet(oe.pending_buf,oe.window,we,Te,oe.pending),oe.pending+=Te})(L,G,le,!0)}t._tr_init=function(L){ne||((function(){var G,le,me,oe,we,Te=new Array(m+1);for(oe=me=0;oe<c-1;oe++)for(B[oe]=me,G=0;G<1<<A[oe];G++)D[me++]=oe;for(D[me-1]=oe,oe=we=0;oe<16;oe++)for(O[oe]=we,G=0;G<1<<E[oe];G++)k[we++]=oe;for(we>>=7;oe<f;oe++)for(O[oe]=we<<7,G=0;G<1<<E[oe]-7;G++)k[256+we++]=oe;for(le=0;le<=m;le++)Te[le]=0;for(G=0;G<=143;)C[2*G+1]=8,G++,Te[8]++;for(;G<=255;)C[2*G+1]=9,G++,Te[9]++;for(;G<=279;)C[2*G+1]=7,G++,Te[7]++;for(;G<=287;)C[2*G+1]=8,G++,Te[8]++;for(re(C,h+1,Te),G=0;G<f;G++)F[2*G+1]=5,F[2*G]=Z(G,5);q=new P(C,A,u+1,h,m),j=new P(F,E,0,f,m),U=new P(new Array(0),T,0,d,x)})(),ne=!0),L.l_desc=new R(L.dyn_ltree,q),L.d_desc=new R(L.dyn_dtree,j),L.bl_desc=new R(L.bl_tree,U),L.bi_buf=0,L.bi_valid=0,ee(L)},t._tr_stored_block=W,t._tr_flush_block=function(L,G,le,me){var oe,we,Te=0;0<L.level?(L.strm.data_type===2&&(L.strm.data_type=(function(te){var ae,xe=4093624447;for(ae=0;ae<=31;ae++,xe>>>=1)if(1&xe&&te.dyn_ltree[2*ae]!==0)return i;if(te.dyn_ltree[18]!==0||te.dyn_ltree[20]!==0||te.dyn_ltree[26]!==0)return a;for(ae=32;ae<u;ae++)if(te.dyn_ltree[2*ae]!==0)return a;return i})(L)),_e(L,L.l_desc),_e(L,L.d_desc),Te=(function(te){var ae;for(w(te,te.dyn_ltree,te.l_desc.max_code),w(te,te.dyn_dtree,te.d_desc.max_code),_e(te,te.bl_desc),ae=d-1;3<=ae&&te.bl_tree[2*S[ae]+1]===0;ae--);return te.opt_len+=3*(ae+1)+5+5+4,ae})(L),oe=L.opt_len+3+7>>>3,(we=L.static_len+3+7>>>3)<=oe&&(oe=we)):oe=we=le+5,le+4<=oe&&G!==-1?W(L,G,le,me):L.strategy===4||we===oe?(I(L,2+(me?1:0),3),ge(L,C,F)):(I(L,4+(me?1:0),3),(function(te,ae,xe,ye){var ke;for(I(te,ae-257,5),I(te,xe-1,5),I(te,ye-4,4),ke=0;ke<ye;ke++)I(te,te.bl_tree[2*S[ke]+1],3);Q(te,te.dyn_ltree,ae-1),Q(te,te.dyn_dtree,xe-1)})(L,L.l_desc.max_code+1,L.d_desc.max_code+1,Te+1),ge(L,L.dyn_ltree,L.dyn_dtree)),ee(L),me&&ie(L)},t._tr_tally=function(L,G,le){return L.pending_buf[L.d_buf+2*L.last_lit]=G>>>8&255,L.pending_buf[L.d_buf+2*L.last_lit+1]=255&G,L.pending_buf[L.l_buf+L.last_lit]=255&le,L.last_lit++,G===0?L.dyn_ltree[2*le]++:(L.matches++,G--,L.dyn_ltree[2*(D[le]+u+1)]++,L.dyn_dtree[2*N(G)]++),L.last_lit===L.lit_bufsize-1},t._tr_align=function(L){I(L,2,3),H(L,y,C),(function(G){G.bi_valid===16?(z(G,G.bi_buf),G.bi_buf=0,G.bi_valid=0):8<=G.bi_valid&&(G.pending_buf[G.pending++]=255&G.bi_buf,G.bi_buf>>=8,G.bi_valid-=8)})(L)}},{"../utils/common":41}],53:[function(r,e,t){"use strict";e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(r,e,t){(function(n){(function(i,a){"use strict";if(!i.setImmediate){var s,o,c,u,h=1,f={},d=!1,p=i.document,m=Object.getPrototypeOf&&Object.getPrototypeOf(i);m=m&&m.setTimeout?m:i,s={}.toString.call(i.process)==="[object process]"?function(b){process.nextTick(function(){x(b)})}:(function(){if(i.postMessage&&!i.importScripts){var b=!0,v=i.onmessage;return i.onmessage=function(){b=!1},i.postMessage("","*"),i.onmessage=v,b}})()?(u="setImmediate$"+Math.random()+"$",i.addEventListener?i.addEventListener("message",y,!1):i.attachEvent("onmessage",y),function(b){i.postMessage(u+b,"*")}):i.MessageChannel?((c=new MessageChannel).port1.onmessage=function(b){x(b.data)},function(b){c.port2.postMessage(b)}):p&&"onreadystatechange"in p.createElement("script")?(o=p.documentElement,function(b){var v=p.createElement("script");v.onreadystatechange=function(){x(b),v.onreadystatechange=null,o.removeChild(v),v=null},o.appendChild(v)}):function(b){setTimeout(x,0,b)},m.setImmediate=function(b){typeof b!="function"&&(b=new Function(""+b));for(var v=new Array(arguments.length-1),_=0;_<v.length;_++)v[_]=arguments[_+1];var A={callback:b,args:v};return f[h]=A,s(h),h++},m.clearImmediate=g}function g(b){delete f[b]}function x(b){if(d)setTimeout(x,0,b);else{var v=f[b];if(v){d=!0;try{(function(_){var A=_.callback,E=_.args;switch(E.length){case 0:A();break;case 1:A(E[0]);break;case 2:A(E[0],E[1]);break;case 3:A(E[0],E[1],E[2]);break;default:A.apply(a,E)}})(v)}finally{g(b),d=!1}}}}function y(b){b.source===i&&typeof b.data=="string"&&b.data.indexOf(u)===0&&x(+b.data.slice(u.length))}})(typeof self>"u"?n===void 0?this:n:self)}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})});var Ig=be(Th=>{var R3=Iy(),O3=Oy();Th.openArrayBuffer=B3;Th.splitPath=N3;Th.joinPath=P3;function B3(r){return O3.loadAsync(r).then(function(e){function t(s){return e.file(s)!==null}function n(s,o){return e.file(s).async("uint8array").then(function(c){if(o==="base64")return R3.fromByteArray(c);if(o){var u=new TextDecoder(o);return u.decode(c)}else return c})}function i(s,o){e.file(s,o)}function a(){return e.generateAsync({type:"arraybuffer"})}return{exists:t,read:n,write:i,toArrayBuffer:a}})}function N3(r){var e=r.lastIndexOf("/");return e===-1?{dirname:"",basename:r}:{dirname:r.substring(0,e),basename:r.substring(e+1)}}function P3(){var r=Array.prototype.filter.call(arguments,function(t){return t}),e=[];return r.forEach(function(t){/^\//.test(t)?e=[t]:e.push(t)}),e.join("/")}});var Rg=be(oc=>{var Eh=(At(),Ft(Et));oc.Element=vs;oc.element=function(r,e,t){return new vs(r,e,t)};oc.text=function(r){return{type:"text",value:r}};var By=oc.emptyElement={first:function(){return null},firstOrEmpty:function(){return By},attributes:{},children:[]};function vs(r,e,t){this.type="element",this.name=r,this.attributes=e||{},this.children=t||[]}vs.prototype.first=function(r){return Eh.find(this.children,function(e){return e.name===r})};vs.prototype.firstOrEmpty=function(r){return this.first(r)||By};vs.prototype.getElementsByTagName=function(r){var e=Eh.filter(this.children,function(t){return t.name===r});return Ny(e)};vs.prototype.text=function(){if(this.children.length===0)return"";if(this.children.length!==1||this.children[0].type!=="text")throw new Error("Not implemented");return this.children[0].value};var L3={getElementsByTagName:function(r){return Ny(Eh.flatten(this.map(function(e){return e.getElementsByTagName(r)},!0)))}};function Ny(r){return Eh.extend(r,L3)}});var cc=be(ys=>{"use strict";function M3(r,e,t){if(t===void 0&&(t=Array.prototype),r&&typeof t.find=="function")return t.find.call(r,e);for(var n=0;n<r.length;n++)if(Object.prototype.hasOwnProperty.call(r,n)){var i=r[n];if(e.call(void 0,i,n,r))return i}}function Og(r,e){return e===void 0&&(e=Object),e&&typeof e.freeze=="function"?e.freeze(r):r}function W3(r,e){if(r===null||typeof r!="object")throw new TypeError("target is not an object");for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t]);return r}var Py=Og({HTML:"text/html",isHTML:function(r){return r===Py.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),Ly=Og({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(r){return r===Ly.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});ys.assign=W3;ys.find=M3;ys.freeze=Og;ys.MIME_TYPE=Py;ys.NAMESPACE=Ly});var Oh=be(ii=>{var Xy=cc(),Rn=Xy.find,lc=Xy.NAMESPACE;function H3(r){return r!==""}function V3(r){return r?r.split(/[\t\n\f\r ]+/).filter(H3):[]}function z3(r,e){return r.hasOwnProperty(e)||(r[e]=!0),r}function My(r){if(!r)return[];var e=V3(r);return Object.keys(e.reduce(z3,{}))}function j3(r){return function(e){return r&&r.indexOf(e)!==-1}}function hc(r,e){for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t])}function Lr(r,e){var t=r.prototype;if(!(t instanceof e)){let i=function(){};var n=i;i.prototype=e.prototype,i=new i,hc(t,i),r.prototype=t=i}t.constructor!=r&&(typeof r!="function"&&console.error("unknown Class:"+r),t.constructor=r)}var Mr={},nn=Mr.ELEMENT_NODE=1,ws=Mr.ATTRIBUTE_NODE=2,Sh=Mr.TEXT_NODE=3,$y=Mr.CDATA_SECTION_NODE=4,qy=Mr.ENTITY_REFERENCE_NODE=5,G3=Mr.ENTITY_NODE=6,Bg=Mr.PROCESSING_INSTRUCTION_NODE=7,Ng=Mr.COMMENT_NODE=8,Yy=Mr.DOCUMENT_NODE=9,Ky=Mr.DOCUMENT_TYPE_NODE=10,ti=Mr.DOCUMENT_FRAGMENT_NODE=11,X3=Mr.NOTATION_NODE=12,cr={},Xt={},s$=cr.INDEX_SIZE_ERR=(Xt[1]="Index size error",1),o$=cr.DOMSTRING_SIZE_ERR=(Xt[2]="DOMString size error",2),Pr=cr.HIERARCHY_REQUEST_ERR=(Xt[3]="Hierarchy request error",3),c$=cr.WRONG_DOCUMENT_ERR=(Xt[4]="Wrong document",4),$3=cr.INVALID_CHARACTER_ERR=(Xt[5]="Invalid character",5),l$=cr.NO_DATA_ALLOWED_ERR=(Xt[6]="No data allowed",6),u$=cr.NO_MODIFICATION_ALLOWED_ERR=(Xt[7]="No modification allowed",7),Zy=cr.NOT_FOUND_ERR=(Xt[8]="Not found",8),h$=cr.NOT_SUPPORTED_ERR=(Xt[9]="Not supported",9),Wy=cr.INUSE_ATTRIBUTE_ERR=(Xt[10]="Attribute in use",10),bs=cr.INVALID_STATE_ERR=(Xt[11]="Invalid state",11),f$=cr.SYNTAX_ERR=(Xt[12]="Syntax error",12),d$=cr.INVALID_MODIFICATION_ERR=(Xt[13]="Invalid modification",13),p$=cr.NAMESPACE_ERR=(Xt[14]="Invalid namespace",14),g$=cr.INVALID_ACCESS_ERR=(Xt[15]="Invalid access",15);function ht(r,e){if(e instanceof Error)var t=e;else t=this,Error.call(this,Xt[r]),this.message=Xt[r],Error.captureStackTrace&&Error.captureStackTrace(this,ht);return t.code=r,e&&(this.message=this.message+": "+e),t}ht.prototype=Error.prototype;hc(cr,ht);function ri(){}ri.prototype={length:0,item:function(r){return r>=0&&r<this.length?this[r]:null},toString:function(r,e,t){for(var n=!!t&&!!t.requireWellFormed,i=[],a=0;a<this.length;a++)Gg(this[a],i,r,e,null,n);return i.join("")},filter:function(r){return Array.prototype.filter.call(this,r)},indexOf:function(r){return Array.prototype.indexOf.call(this,r)}};function _s(r,e){this._node=r,this._refresh=e,Pg(this)}function Pg(r){var e=r._node._inc||r._node.ownerDocument._inc;if(r._inc!==e){var t=r._refresh(r._node);if(lb(r,"length",t.length),!r.$$length||t.length<r.$$length)for(var n=t.length;n in r;n++)Object.prototype.hasOwnProperty.call(r,n)&&delete r[n];hc(t,r),r._inc=e}}_s.prototype.item=function(r){return Pg(this),this[r]||null};Lr(_s,ri);function Ch(){}function Jy(r,e){for(var t=r.length;t--;)if(r[t]===e)return t}function Hy(r,e,t,n){if(n?e[Jy(e,n)]=t:e[e.length++]=t,r){t.ownerElement=r;var i=r.ownerDocument;i&&(n&&tb(i,r,n),q3(i,r,t))}}function Vy(r,e,t){var n=Jy(e,t);if(n>=0){for(var i=e.length-1;n<i;)e[n]=e[++n];if(e.length=i,r){var a=r.ownerDocument;a&&(tb(a,r,t),t.ownerElement=null)}}else throw new ht(Zy,new Error(r.tagName+"@"+t))}Ch.prototype={length:0,item:ri.prototype.item,getNamedItem:function(r){for(var e=this.length;e--;){var t=this[e];if(t.nodeName==r)return t}},setNamedItem:function(r){var e=r.ownerElement;if(e&&e!=this._ownerElement)throw new ht(Wy);var t=this.getNamedItem(r.nodeName);return Hy(this._ownerElement,this,r,t),t},setNamedItemNS:function(r){var e=r.ownerElement,t;if(e&&e!=this._ownerElement)throw new ht(Wy);return t=this.getNamedItemNS(r.namespaceURI,r.localName),Hy(this._ownerElement,this,r,t),t},removeNamedItem:function(r){var e=this.getNamedItem(r);return Vy(this._ownerElement,this,e),e},removeNamedItemNS:function(r,e){var t=this.getNamedItemNS(r,e);return Vy(this._ownerElement,this,t),t},getNamedItemNS:function(r,e){for(var t=this.length;t--;){var n=this[t];if(n.localName==e&&n.namespaceURI==r)return n}return null}};function Qy(){}Qy.prototype={hasFeature:function(r,e){return!0},createDocument:function(r,e,t){var n=new fc;if(n.implementation=this,n.childNodes=new ri,n.doctype=t||null,t&&n.appendChild(t),e){var i=n.createElementNS(r,e);n.appendChild(i)}return n},createDocumentType:function(r,e,t){var n=new Ih;return n.name=r,n.nodeName=r,n.publicId=e||"",n.systemId=t||"",n}};function ct(){}ct.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(r,e){return kh(this,r,e)},replaceChild:function(r,e){kh(this,r,e,nb),e&&this.removeChild(e)},removeChild:function(r){return rb(this,r)},appendChild:function(r){return this.insertBefore(r,null)},hasChildNodes:function(){return this.firstChild!=null},cloneNode:function(r){return cb(this.ownerDocument||this,this,r)},normalize:function(){Gt(this,null,{enter:function(r){for(var e=r.firstChild;e;){var t=e.nextSibling;t!==null&&t.nodeType===Sh&&e.nodeType===Sh?(r.removeChild(t),e.appendData(t.data)):e=t}return!0}})},isSupported:function(r,e){return this.ownerDocument.implementation.hasFeature(r,e)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(r){for(var e=this;e;){var t=e._nsMap;if(t){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&t[n]===r)return n}e=e.nodeType==ws?e.ownerDocument:e.parentNode}return null},lookupNamespaceURI:function(r){for(var e=this;e;){var t=e._nsMap;if(t&&Object.prototype.hasOwnProperty.call(t,r))return t[r];e=e.nodeType==ws?e.ownerDocument:e.parentNode}return null},isDefaultNamespace:function(r){var e=this.lookupPrefix(r);return e==null}};function eb(r){return r=="<"&&"<"||r==">"&&">"||r=="&"&&"&"||r=='"'&&"""||"&#"+r.charCodeAt()+";"}hc(Mr,ct);hc(Mr,ct.prototype);function Fh(r,e){return Gt(r,null,{enter:function(t){return e(t)?Gt.STOP:!0}})===Gt.STOP}function Gt(r,e,t){for(var n=[{node:r,context:e,phase:Gt.ENTER}];n.length>0;){var i=n.pop();if(i.phase===Gt.ENTER){var a=t.enter(i.node,i.context);if(a===Gt.STOP)return Gt.STOP;if(n.push({node:i.node,context:a,phase:Gt.EXIT}),a==null)continue;for(var s=i.node.lastChild;s;)n.push({node:s,context:a,phase:Gt.ENTER}),s=s.previousSibling}else t.exit&&t.exit(i.node,i.context)}}Gt.STOP=Symbol("walkDOM.STOP");Gt.ENTER=0;Gt.EXIT=1;function fc(){this.ownerDocument=this}function q3(r,e,t){r&&r._inc++;var n=t.namespaceURI;n===lc.XMLNS&&(e._nsMap[t.prefix?t.localName:""]=t.value)}function tb(r,e,t,n){r&&r._inc++;var i=t.namespaceURI;i===lc.XMLNS&&delete e._nsMap[t.prefix?t.localName:""]}function Lg(r,e,t){if(r&&r._inc){r._inc++;var n=e.childNodes;if(t)n[n.length++]=t;else{for(var i=e.firstChild,a=0;i;)n[a++]=i,i=i.nextSibling;n.length=a,delete n[n.length]}}}function rb(r,e){var t=e.previousSibling,n=e.nextSibling;return t?t.nextSibling=n:r.firstChild=n,n?n.previousSibling=t:r.lastChild=t,e.parentNode=null,e.previousSibling=null,e.nextSibling=null,Lg(r.ownerDocument,r),e}function Y3(r){return r&&(r.nodeType===ct.DOCUMENT_NODE||r.nodeType===ct.DOCUMENT_FRAGMENT_NODE||r.nodeType===ct.ELEMENT_NODE)}function K3(r){return r&&(On(r)||Mg(r)||ni(r)||r.nodeType===ct.DOCUMENT_FRAGMENT_NODE||r.nodeType===ct.COMMENT_NODE||r.nodeType===ct.PROCESSING_INSTRUCTION_NODE)}function ni(r){return r&&r.nodeType===ct.DOCUMENT_TYPE_NODE}function On(r){return r&&r.nodeType===ct.ELEMENT_NODE}function Mg(r){return r&&r.nodeType===ct.TEXT_NODE}function zy(r,e){var t=r.childNodes||[];if(Rn(t,On)||ni(e))return!1;var n=Rn(t,ni);return!(e&&n&&t.indexOf(n)>t.indexOf(e))}function jy(r,e){var t=r.childNodes||[];function n(a){return On(a)&&a!==e}if(Rn(t,n))return!1;var i=Rn(t,ni);return!(e&&i&&t.indexOf(i)>t.indexOf(e))}function Z3(r,e,t){if(!Y3(r))throw new ht(Pr,"Unexpected parent node type "+r.nodeType);if(t&&t.parentNode!==r)throw new ht(Zy,"child not in parent");if(!K3(e)||ni(e)&&r.nodeType!==ct.DOCUMENT_NODE)throw new ht(Pr,"Unexpected node type "+e.nodeType+" for parent node type "+r.nodeType)}function J3(r,e,t){var n=r.childNodes||[],i=e.childNodes||[];if(e.nodeType===ct.DOCUMENT_FRAGMENT_NODE){var a=i.filter(On);if(a.length>1||Rn(i,Mg))throw new ht(Pr,"More than one element or text in fragment");if(a.length===1&&!zy(r,t))throw new ht(Pr,"Element in fragment can not be inserted before doctype")}if(On(e)&&!zy(r,t))throw new ht(Pr,"Only one element can be added and only after doctype");if(ni(e)){if(Rn(n,ni))throw new ht(Pr,"Only one doctype is allowed");var s=Rn(n,On);if(t&&n.indexOf(s)<n.indexOf(t))throw new ht(Pr,"Doctype can only be inserted before an element");if(!t&&s)throw new ht(Pr,"Doctype can not be appended since element is present")}}function nb(r,e,t){var n=r.childNodes||[],i=e.childNodes||[];if(e.nodeType===ct.DOCUMENT_FRAGMENT_NODE){var a=i.filter(On);if(a.length>1||Rn(i,Mg))throw new ht(Pr,"More than one element or text in fragment");if(a.length===1&&!jy(r,t))throw new ht(Pr,"Element in fragment can not be inserted before doctype")}if(On(e)&&!jy(r,t))throw new ht(Pr,"Only one element can be added and only after doctype");if(ni(e)){let c=function(u){return ni(u)&&u!==t};var o=c;if(Rn(n,c))throw new ht(Pr,"Only one doctype is allowed");var s=Rn(n,On);if(t&&n.indexOf(s)<n.indexOf(t))throw new ht(Pr,"Doctype can only be inserted before an element")}}function kh(r,e,t,n){Z3(r,e,t),r.nodeType===ct.DOCUMENT_NODE&&(n||J3)(r,e,t);var i=e.parentNode;if(i&&i.removeChild(e),e.nodeType===ti){var a=e.firstChild;if(a==null)return e;var s=e.lastChild}else a=s=e;var o=t?t.previousSibling:r.lastChild;a.previousSibling=o,s.nextSibling=t,o?o.nextSibling=a:r.firstChild=a,t==null?r.lastChild=s:t.previousSibling=s;do{a.parentNode=r;var c=r.ownerDocument||r;uc(a,c)}while(a!==s&&(a=a.nextSibling));return Lg(r.ownerDocument||r,r),e.nodeType==ti&&(e.firstChild=e.lastChild=null),e}function uc(r,e){if(r.ownerDocument!==e){if(r.ownerDocument=e,r.nodeType===nn&&r.attributes)for(var t=0;t<r.attributes.length;t++){var n=r.attributes.item(t);n&&(n.ownerDocument=e)}for(var i=r.firstChild;i;)uc(i,e),i=i.nextSibling}}function Q3(r,e){e.parentNode&&e.parentNode.removeChild(e),e.parentNode=r,e.previousSibling=r.lastChild,e.nextSibling=null,e.previousSibling?e.previousSibling.nextSibling=e:r.firstChild=e,r.lastChild=e,Lg(r.ownerDocument,r,e);var t=r.ownerDocument||r;return uc(e,t),e}fc.prototype={nodeName:"#document",nodeType:Yy,doctype:null,documentElement:null,_inc:1,insertBefore:function(r,e){if(r.nodeType==ti){for(var t=r.firstChild;t;){var n=t.nextSibling;this.insertBefore(t,e),t=n}return r}return kh(this,r,e),uc(r,this),this.documentElement===null&&r.nodeType===nn&&(this.documentElement=r),r},removeChild:function(r){return this.documentElement==r&&(this.documentElement=null),rb(this,r)},replaceChild:function(r,e){kh(this,r,e,nb),uc(r,this),e&&this.removeChild(e),On(r)&&(this.documentElement=r)},importNode:function(r,e){return eC(this,r,e)},getElementById:function(r){var e=null;return Fh(this.documentElement,function(t){if(t.nodeType==nn&&t.getAttribute("id")==r)return e=t,!0}),e},getElementsByClassName:function(r){var e=My(r);return new _s(this,function(t){var n=[];return e.length>0&&Fh(t.documentElement,function(i){if(i!==t&&i.nodeType===nn){var a=i.getAttribute("class");if(a){var s=r===a;if(!s){var o=My(a);s=e.every(j3(o))}s&&n.push(i)}}}),n})},createElement:function(r){var e=new ga;e.ownerDocument=this,e.nodeName=r,e.tagName=r,e.localName=r,e.childNodes=new ri;var t=e.attributes=new Ch;return t._ownerElement=e,e},createDocumentFragment:function(){var r=new Rh;return r.ownerDocument=this,r.childNodes=new ri,r},createTextNode:function(r){var e=new Wg;return e.ownerDocument=this,e.appendData(r),e},createComment:function(r){var e=new Hg;return e.ownerDocument=this,e.appendData(r),e},createCDATASection:function(r){if(r.indexOf("]]>")!==-1)throw new ht($3,'data contains "]]>"');var e=new Vg;return e.ownerDocument=this,e.appendData(r),e},createProcessingInstruction:function(r,e){var t=new jg;return t.ownerDocument=this,t.tagName=t.nodeName=t.target=r,t.nodeValue=t.data=e,t},createAttribute:function(r){var e=new Uh;return e.ownerDocument=this,e.name=r,e.nodeName=r,e.localName=r,e.specified=!0,e},createEntityReference:function(r){var e=new zg;return e.ownerDocument=this,e.nodeName=r,e},createElementNS:function(r,e){var t=new ga,n=e.split(":"),i=t.attributes=new Ch;return t.childNodes=new ri,t.ownerDocument=this,t.nodeName=e,t.tagName=e,t.namespaceURI=r,n.length==2?(t.prefix=n[0],t.localName=n[1]):t.localName=e,i._ownerElement=t,t},createAttributeNS:function(r,e){var t=new Uh,n=e.split(":");return t.ownerDocument=this,t.nodeName=e,t.name=e,t.namespaceURI=r,t.specified=!0,n.length==2?(t.prefix=n[0],t.localName=n[1]):t.localName=e,t}};Lr(fc,ct);function ga(){this._nsMap={}}ga.prototype={nodeType:nn,hasAttribute:function(r){return this.getAttributeNode(r)!=null},getAttribute:function(r){var e=this.getAttributeNode(r);return e&&e.value||""},getAttributeNode:function(r){return this.attributes.getNamedItem(r)},setAttribute:function(r,e){var t=this.ownerDocument.createAttribute(r);t.value=t.nodeValue=""+e,this.setAttributeNode(t)},removeAttribute:function(r){var e=this.getAttributeNode(r);e&&this.removeAttributeNode(e)},appendChild:function(r){return r.nodeType===ti?this.insertBefore(r,null):Q3(this,r)},setAttributeNode:function(r){return this.attributes.setNamedItem(r)},setAttributeNodeNS:function(r){return this.attributes.setNamedItemNS(r)},removeAttributeNode:function(r){return this.attributes.removeNamedItem(r.nodeName)},removeAttributeNS:function(r,e){var t=this.getAttributeNodeNS(r,e);t&&this.removeAttributeNode(t)},hasAttributeNS:function(r,e){return this.getAttributeNodeNS(r,e)!=null},getAttributeNS:function(r,e){var t=this.getAttributeNodeNS(r,e);return t&&t.value||""},setAttributeNS:function(r,e,t){var n=this.ownerDocument.createAttributeNS(r,e);n.value=n.nodeValue=""+t,this.setAttributeNode(n)},getAttributeNodeNS:function(r,e){return this.attributes.getNamedItemNS(r,e)},getElementsByTagName:function(r){return new _s(this,function(e){var t=[];return Fh(e,function(n){n!==e&&n.nodeType==nn&&(r==="*"||n.tagName==r)&&t.push(n)}),t})},getElementsByTagNameNS:function(r,e){return new _s(this,function(t){var n=[];return Fh(t,function(i){i!==t&&i.nodeType===nn&&(r==="*"||i.namespaceURI===r)&&(e==="*"||i.localName==e)&&n.push(i)}),n})}};fc.prototype.getElementsByTagName=ga.prototype.getElementsByTagName;fc.prototype.getElementsByTagNameNS=ga.prototype.getElementsByTagNameNS;Lr(ga,ct);function Uh(){}Uh.prototype.nodeType=ws;Lr(Uh,ct);function dc(){}dc.prototype={data:"",substringData:function(r,e){return this.data.substring(r,r+e)},appendData:function(r){r=this.data+r,this.nodeValue=this.data=r,this.length=r.length},insertData:function(r,e){this.replaceData(r,0,e)},appendChild:function(r){throw new Error(Xt[Pr])},deleteData:function(r,e){this.replaceData(r,e,"")},replaceData:function(r,e,t){var n=this.data.substring(0,r),i=this.data.substring(r+e);t=n+t+i,this.nodeValue=this.data=t,this.length=t.length}};Lr(dc,ct);function Wg(){}Wg.prototype={nodeName:"#text",nodeType:Sh,splitText:function(r){var e=this.data,t=e.substring(r);e=e.substring(0,r),this.data=this.nodeValue=e,this.length=e.length;var n=this.ownerDocument.createTextNode(t);return this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling),n}};Lr(Wg,dc);function Hg(){}Hg.prototype={nodeName:"#comment",nodeType:Ng};Lr(Hg,dc);function Vg(){}Vg.prototype={nodeName:"#cdata-section",nodeType:$y};Lr(Vg,dc);function Ih(){}Ih.prototype.nodeType=Ky;Lr(Ih,ct);function ib(){}ib.prototype.nodeType=X3;Lr(ib,ct);function ab(){}ab.prototype.nodeType=G3;Lr(ab,ct);function zg(){}zg.prototype.nodeType=qy;Lr(zg,ct);function Rh(){}Rh.prototype.nodeName="#document-fragment";Rh.prototype.nodeType=ti;Lr(Rh,ct);function jg(){}jg.prototype.nodeType=Bg;Lr(jg,ct);function sb(){}sb.prototype.serializeToString=function(r,e,t,n){return ob.call(r,e,t,n)};ct.prototype.toString=ob;function ob(r,e,t){var n=!!t&&!!t.requireWellFormed,i=[],a=this.nodeType==9&&this.documentElement||this,s=a.prefix,o=a.namespaceURI;if(o&&s==null){var s=a.lookupPrefix(o);if(s==null)var c=[{namespace:o,prefix:null}]}return Gg(this,i,r,e,c,n),i.join("")}function Gy(r,e,t){var n=r.prefix||"",i=r.namespaceURI;if(!i||n==="xml"&&i===lc.XML||i===lc.XMLNS)return!1;for(var a=t.length;a--;){var s=t[a];if(s.prefix===n)return s.namespace!==i}return!0}function Ah(r,e,t){r.push(" ",e,'="',t.replace(/[<>&"\t\n\r]/g,eb),'"')}function Gg(r,e,t,n,i,a){i||(i=[]),Gt(r,{ns:i,isHTML:t},{enter:function(s,o){var c=o.ns,u=o.isHTML;if(n)if(s=n(s),s){if(typeof s=="string")return e.push(s),null}else return null;switch(s.nodeType){case nn:var h=s.attributes,f=h.length,d=s.tagName;u=lc.isHTML(s.namespaceURI)||u;var p=d;if(!u&&!s.prefix&&s.namespaceURI){for(var m,g=0;g<h.length;g++)if(h.item(g).name==="xmlns"){m=h.item(g).value;break}if(!m)for(var x=c.length-1;x>=0;x--){var y=c[x];if(y.prefix===""&&y.namespace===s.namespaceURI){m=y.namespace;break}}if(m!==s.namespaceURI)for(var x=c.length-1;x>=0;x--){var y=c[x];if(y.namespace===s.namespaceURI){y.prefix&&(p=y.prefix+":"+d);break}}}e.push("<",p);for(var b=c.slice(),v=0;v<f;v++){var _=h.item(v);_.prefix=="xmlns"?b.push({prefix:_.localName,namespace:_.value}):_.nodeName=="xmlns"&&b.push({prefix:"",namespace:_.value})}for(var v=0;v<f;v++){var _=h.item(v);if(Gy(_,u,b)){var A=_.prefix||"",E=_.namespaceURI;Ah(e,A?"xmlns:"+A:"xmlns",E),b.push({prefix:A,namespace:E})}var T=n?n(_):_;T&&(typeof T=="string"?e.push(T):Ah(e,T.name,T.value))}if(d===p&&Gy(s,u,b)){var S=s.prefix||"",E=s.namespaceURI;Ah(e,S?"xmlns:"+S:"xmlns",E),b.push({prefix:S,namespace:E})}var C=s.firstChild;if(C||u&&!/^(?:meta|link|img|br|hr|input)$/i.test(d)){if(e.push(">"),u&&/^script$/i.test(d)){for(;C;)C.data?e.push(C.data):Gg(C,e,u,n,b.slice(),a),C=C.nextSibling;return e.push("</",d,">"),null}return{ns:b,isHTML:u,tag:p}}else return e.push("/>"),null;case Yy:case ti:return{ns:c.slice(),isHTML:u,tag:null};case ws:return Ah(e,s.name,s.value),null;case Sh:return e.push(s.data.replace(/[<&>]/g,eb)),null;case $y:if(a&&s.data.indexOf("]]>")!==-1)throw new ht(bs,'The CDATASection data contains "]]>"');return e.push("<![CDATA[",s.data.replace(/]]>/g,"]]]]><![CDATA[>"),"]]>"),null;case Ng:if(a&&s.data.indexOf("-->")!==-1)throw new ht(bs,'The comment node data contains "-->"');return e.push("<!--",s.data,"-->"),null;case Ky:if(a){if(s.publicId&&!/^("[\x20\r\na-zA-Z0-9\-()+,.\/:=?;!*#@$_%']*"|'[\x20\r\na-zA-Z0-9\-()+,.\/:=?;!*#@$_%'"]*')$/.test(s.publicId))throw new ht(bs,"DocumentType publicId is not a valid PubidLiteral");if(s.systemId&&!/^("[^"]*"|'[^']*')$/.test(s.systemId))throw new ht(bs,"DocumentType systemId is not a valid SystemLiteral");if(s.internalSubset&&s.internalSubset.indexOf("]>")!==-1)throw new ht(bs,'DocumentType internalSubset contains "]>"')}var F=s.publicId,k=s.systemId;if(e.push("<!DOCTYPE ",s.name),F)e.push(" PUBLIC ",F),k&&k!="."&&e.push(" ",k),e.push(">");else if(k&&k!=".")e.push(" SYSTEM ",k,">");else{var D=s.internalSubset;D&&e.push(" [",D,"]"),e.push(">")}return null;case Bg:if(a&&s.data.indexOf("?>")!==-1)throw new ht(bs,'The ProcessingInstruction data contains "?>"');return e.push("<?",s.target," ",s.data,"?>"),null;case qy:return e.push("&",s.nodeName,";"),null;default:return e.push("??",s.nodeName),null}},exit:function(s,o){o&&o.tag&&e.push("</",o.tag,">")}})}function eC(r,e,t){var n;return Gt(e,null,{enter:function(i,a){var s=i.cloneNode(!1);s.ownerDocument=r,s.parentNode=null,a===null?n=s:a.appendChild(s);var o=i.nodeType===ws||t;return o?s:null}}),n}function cb(r,e,t){var n;return Gt(e,null,{enter:function(i,a){var s=new i.constructor;for(var o in i)if(Object.prototype.hasOwnProperty.call(i,o)){var c=i[o];typeof c!="object"&&c!=s[o]&&(s[o]=c)}i.childNodes&&(s.childNodes=new ri),s.ownerDocument=r;var u=t;switch(s.nodeType){case nn:var h=i.attributes,f=s.attributes=new Ch,d=h.length;f._ownerElement=s;for(var p=0;p<d;p++)s.setAttributeNode(cb(r,h.item(p),!0));break;case ws:u=!0}return a!==null?a.appendChild(s):n=s,u?s:null}}),n}function lb(r,e,t){r[e]=t}try{Object.defineProperty&&(Object.defineProperty(_s.prototype,"length",{get:function(){return Pg(this),this.$$length}}),Object.defineProperty(ct.prototype,"textContent",{get:function(){if(this.nodeType===nn||this.nodeType===ti){var r=[];return Gt(this,null,{enter:function(e){if(e.nodeType===nn||e.nodeType===ti)return!0;if(e.nodeType===Bg||e.nodeType===Ng)return null;r.push(e.nodeValue)}}),r.join("")}return this.nodeValue},set:function(r){switch(this.nodeType){case nn:case ti:for(;this.firstChild;)this.removeChild(this.firstChild);(r||String(r))&&this.appendChild(this.ownerDocument.createTextNode(r));break;default:this.data=r,this.value=r,this.nodeValue=r}}}),lb=function(r,e,t){r["$$"+e]=t})}catch{}ii.DocumentType=Ih;ii.DOMException=ht;ii.DOMImplementation=Qy;ii.Element=ga;ii.Node=ct;ii.NodeList=ri;ii.walkDOM=Gt;ii.XMLSerializer=sb});var hb=be(pc=>{"use strict";var ub=cc().freeze;pc.XML_ENTITIES=ub({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'});pc.HTML_ENTITIES=ub({Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\u{1D504}",afr:"\u{1D51E}",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",AMP:"&",amp:"&",And:"\u2A53",and:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1D538}",aopf:"\u{1D552}",ap:"\u2248",apacir:"\u2A6F",apE:"\u2A70",ape:"\u224A",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",Aring:"\xC5",aring:"\xE5",Ascr:"\u{1D49C}",ascr:"\u{1D4B6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",Barwed:"\u2306",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",Because:"\u2235",because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",Bernoullis:"\u212C",Beta:"\u0392",beta:"\u03B2",beth:"\u2136",between:"\u226C",Bfr:"\u{1D505}",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bNot:"\u2AED",bnot:"\u2310",Bopf:"\u{1D539}",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxbox:"\u29C9",boxDL:"\u2557",boxDl:"\u2556",boxdL:"\u2555",boxdl:"\u2510",boxDR:"\u2554",boxDr:"\u2553",boxdR:"\u2552",boxdr:"\u250C",boxH:"\u2550",boxh:"\u2500",boxHD:"\u2566",boxHd:"\u2564",boxhD:"\u2565",boxhd:"\u252C",boxHU:"\u2569",boxHu:"\u2567",boxhU:"\u2568",boxhu:"\u2534",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxUL:"\u255D",boxUl:"\u255C",boxuL:"\u255B",boxul:"\u2518",boxUR:"\u255A",boxUr:"\u2559",boxuR:"\u2558",boxur:"\u2514",boxV:"\u2551",boxv:"\u2502",boxVH:"\u256C",boxVh:"\u256B",boxvH:"\u256A",boxvh:"\u253C",boxVL:"\u2563",boxVl:"\u2562",boxvL:"\u2561",boxvl:"\u2524",boxVR:"\u2560",boxVr:"\u255F",boxvR:"\u255E",boxvr:"\u251C",bprime:"\u2035",Breve:"\u02D8",breve:"\u02D8",brvbar:"\xA6",Bscr:"\u212C",bscr:"\u{1D4B7}",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",Bumpeq:"\u224E",bumpeq:"\u224F",Cacute:"\u0106",cacute:"\u0107",Cap:"\u22D2",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",CapitalDifferentialD:"\u2145",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",Cayleys:"\u212D",ccaps:"\u2A4D",Ccaron:"\u010C",ccaron:"\u010D",Ccedil:"\xC7",ccedil:"\xE7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2A4C",ccupssm:"\u2A50",Cdot:"\u010A",cdot:"\u010B",cedil:"\xB8",Cedilla:"\xB8",cemptyv:"\u29B2",cent:"\xA2",CenterDot:"\xB7",centerdot:"\xB7",Cfr:"\u212D",cfr:"\u{1D520}",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03A7",chi:"\u03C7",cir:"\u25CB",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",CircleDot:"\u2299",circledR:"\xAE",circledS:"\u24C8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cirE:"\u29C3",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",Colon:"\u2237",colon:":",Colone:"\u2A74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",Congruent:"\u2261",Conint:"\u222F",conint:"\u222E",ContourIntegral:"\u222E",Copf:"\u2102",copf:"\u{1D554}",coprod:"\u2210",Coproduct:"\u2210",COPY:"\xA9",copy:"\xA9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21B5",Cross:"\u2A2F",cross:"\u2717",Cscr:"\u{1D49E}",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",Cup:"\u22D3",cup:"\u222A",cupbrcap:"\u2A48",CupCap:"\u224D",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",Dagger:"\u2021",dagger:"\u2020",daleth:"\u2138",Darr:"\u21A1",dArr:"\u21D3",darr:"\u2193",dash:"\u2010",Dashv:"\u2AE4",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",Dcaron:"\u010E",dcaron:"\u010F",Dcy:"\u0414",dcy:"\u0434",DD:"\u2145",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21CA",DDotrahd:"\u2911",ddotseq:"\u2A77",deg:"\xB0",Del:"\u2207",Delta:"\u0394",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",Dfr:"\u{1D507}",dfr:"\u{1D521}",dHar:"\u2965",dharl:"\u21C3",dharr:"\u21C2",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",diam:"\u22C4",Diamond:"\u22C4",diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",DifferentialD:"\u2146",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",Dopf:"\u{1D53B}",dopf:"\u{1D555}",Dot:"\xA8",dot:"\u02D9",DotDot:"\u20DC",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",Downarrow:"\u21D3",downarrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",DownTeeArrow:"\u21A7",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",Dscr:"\u{1D49F}",dscr:"\u{1D4B9}",DScy:"\u0405",dscy:"\u0455",dsol:"\u29F6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",DZcy:"\u040F",dzcy:"\u045F",dzigrarr:"\u27FF",Eacute:"\xC9",eacute:"\xE9",easter:"\u2A6E",Ecaron:"\u011A",ecaron:"\u011B",ecir:"\u2256",Ecirc:"\xCA",ecirc:"\xEA",ecolon:"\u2255",Ecy:"\u042D",ecy:"\u044D",eDDot:"\u2A77",Edot:"\u0116",eDot:"\u2251",edot:"\u0117",ee:"\u2147",efDot:"\u2252",Efr:"\u{1D508}",efr:"\u{1D522}",eg:"\u2A9A",Egrave:"\xC8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",Element:"\u2208",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25FB",emptyv:"\u2205",EmptyVerySmallSquare:"\u25AB",emsp:"\u2003",emsp13:"\u2004",emsp14:"\u2005",ENG:"\u014A",eng:"\u014B",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\u{1D53C}",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",Epsilon:"\u0395",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",Equal:"\u2A75",equals:"=",EqualTilde:"\u2242",equest:"\u225F",Equilibrium:"\u21CC",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erarr:"\u2971",erDot:"\u2253",Escr:"\u2130",escr:"\u212F",esdot:"\u2250",Esim:"\u2A73",esim:"\u2242",Eta:"\u0397",eta:"\u03B7",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",ExponentialE:"\u2147",exponentiale:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",Ffr:"\u{1D509}",ffr:"\u{1D523}",filig:"\uFB01",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",Fopf:"\u{1D53D}",fopf:"\u{1D557}",ForAll:"\u2200",forall:"\u2200",fork:"\u22D4",forkv:"\u2AD9",Fouriertrf:"\u2131",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",Fscr:"\u2131",fscr:"\u{1D4BB}",gacute:"\u01F5",Gamma:"\u0393",gamma:"\u03B3",Gammad:"\u03DC",gammad:"\u03DD",gap:"\u2A86",Gbreve:"\u011E",gbreve:"\u011F",Gcedil:"\u0122",Gcirc:"\u011C",gcirc:"\u011D",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",gE:"\u2267",ge:"\u2265",gEl:"\u2A8C",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",ges:"\u2A7E",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",Gfr:"\u{1D50A}",gfr:"\u{1D524}",Gg:"\u22D9",gg:"\u226B",ggg:"\u22D9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gl:"\u2277",gla:"\u2AA5",glE:"\u2A92",glj:"\u2AA4",gnap:"\u2A8A",gnapprox:"\u2A8A",gnE:"\u2269",gne:"\u2A88",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",Gopf:"\u{1D53E}",gopf:"\u{1D558}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",Gt:"\u226B",GT:">",gt:">",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",Hacek:"\u02C7",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",HARDcy:"\u042A",hardcy:"\u044A",hArr:"\u21D4",harr:"\u2194",harrcir:"\u2948",harrw:"\u21AD",Hat:"^",hbar:"\u210F",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",Hfr:"\u210C",hfr:"\u{1D525}",HilbertSpace:"\u210B",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",Hopf:"\u210D",hopf:"\u{1D559}",horbar:"\u2015",HorizontalLine:"\u2500",Hscr:"\u210B",hscr:"\u{1D4BD}",hslash:"\u210F",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224E",HumpEqual:"\u224F",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xCD",iacute:"\xED",ic:"\u2063",Icirc:"\xCE",icirc:"\xEE",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",Ifr:"\u2111",ifr:"\u{1D526}",Igrave:"\xCC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Im:"\u2111",Imacr:"\u012A",imacr:"\u012B",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22B7",imped:"\u01B5",Implies:"\u21D2",in:"\u2208",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",Int:"\u222C",int:"\u222B",intcal:"\u22BA",integers:"\u2124",Integral:"\u222B",intercal:"\u22BA",Intersection:"\u22C2",intlarhk:"\u2A17",intprod:"\u2A3C",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012E",iogon:"\u012F",Iopf:"\u{1D540}",iopf:"\u{1D55A}",Iota:"\u0399",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",Iscr:"\u2110",iscr:"\u{1D4BE}",isin:"\u2208",isindot:"\u22F5",isinE:"\u22F9",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xCF",iuml:"\xEF",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\u{1D50D}",jfr:"\u{1D527}",jmath:"\u0237",Jopf:"\u{1D541}",jopf:"\u{1D55B}",Jscr:"\u{1D4A5}",jscr:"\u{1D4BF}",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041A",kcy:"\u043A",Kfr:"\u{1D50E}",kfr:"\u{1D528}",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040C",kjcy:"\u045C",Kopf:"\u{1D542}",kopf:"\u{1D55C}",Kscr:"\u{1D4A6}",kscr:"\u{1D4C0}",lAarr:"\u21DA",Lacute:"\u0139",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",Lambda:"\u039B",lambda:"\u03BB",Lang:"\u27EA",lang:"\u27E8",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",Laplacetrf:"\u2112",laquo:"\xAB",Larr:"\u219E",lArr:"\u21D0",larr:"\u2190",larrb:"\u21E4",larrbfs:"\u291F",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",lat:"\u2AAB",lAtail:"\u291B",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lBarr:"\u290E",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",Lcaron:"\u013D",lcaron:"\u013E",Lcedil:"\u013B",lcedil:"\u013C",lceil:"\u2308",lcub:"{",Lcy:"\u041B",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",lE:"\u2266",le:"\u2264",LeftAngleBracket:"\u27E8",LeftArrow:"\u2190",Leftarrow:"\u21D0",leftarrow:"\u2190",LeftArrowBar:"\u21E4",LeftArrowRightArrow:"\u21C6",leftarrowtail:"\u21A2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",LeftRightArrow:"\u2194",Leftrightarrow:"\u21D4",leftrightarrow:"\u2194",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",LeftRightVector:"\u294E",LeftTee:"\u22A3",LeftTeeArrow:"\u21A4",LeftTeeVector:"\u295A",leftthreetimes:"\u22CB",LeftTriangle:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",LeftVectorBar:"\u2952",lEg:"\u2A8B",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",les:"\u2A7D",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2AA1",lesssim:"\u2272",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",lfisht:"\u297C",lfloor:"\u230A",Lfr:"\u{1D50F}",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lHar:"\u2962",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",Ll:"\u22D8",ll:"\u226A",llarr:"\u21C7",llcorner:"\u231E",Lleftarrow:"\u21DA",llhard:"\u296B",lltri:"\u25FA",Lmidot:"\u013F",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnap:"\u2A89",lnapprox:"\u2A89",lnE:"\u2268",lne:"\u2A87",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",LongLeftArrow:"\u27F5",Longleftarrow:"\u27F8",longleftarrow:"\u27F5",LongLeftRightArrow:"\u27F7",Longleftrightarrow:"\u27FA",longleftrightarrow:"\u27F7",longmapsto:"\u27FC",LongRightArrow:"\u27F6",Longrightarrow:"\u27F9",longrightarrow:"\u27F6",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",Lopf:"\u{1D543}",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",Lscr:"\u2112",lscr:"\u{1D4C1}",Lsh:"\u21B0",lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",Lstrok:"\u0141",lstrok:"\u0142",Lt:"\u226A",LT:"<",lt:"<",ltcc:"\u2AA6",ltcir:"\u2A79",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",ltrPar:"\u2996",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",Mcy:"\u041C",mcy:"\u043C",mdash:"\u2014",mDDot:"\u223A",measuredangle:"\u2221",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",mid:"\u2223",midast:"*",midcir:"\u2AF0",middot:"\xB7",minus:"\u2212",minusb:"\u229F",minusd:"\u2238",minusdu:"\u2A2A",MinusPlus:"\u2213",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",Mopf:"\u{1D544}",mopf:"\u{1D55E}",mp:"\u2213",Mscr:"\u2133",mscr:"\u{1D4C2}",mstpos:"\u223E",Mu:"\u039C",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266E",natural:"\u266E",naturals:"\u2115",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",Ncy:"\u041D",ncy:"\u043D",ndash:"\u2013",ne:"\u2260",nearhk:"\u2924",neArr:"\u21D7",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:`
|
|
192
|
+
\0`,I+=n(R,2),I+=_.magic,I+=n(y,2),I+=n(b,2),I+=n(P.crc32,4),I+=n(P.compressedSize,4),I+=n(P.uncompressedSize,4),I+=n(E.length,2),I+=n(B.length,2),{fileRecord:u.LOCAL_FILE_HEADER+I+E+B,dirRecord:u.CENTRAL_FILE_HEADER+n(z,2)+I+n(C.length,2)+"\0\0\0\0"+n(N,4)+n(m,4)+E+B+C}}var a=r("../utils"),s=r("../stream/GenericWorker"),o=r("../utf8"),c=r("../crc32"),u=r("../signature");function h(f,d,p,m){s.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=d,this.zipPlatform=p,this.encodeFileName=m,this.streamFiles=f,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}a.inherits(h,s),h.prototype.push=function(f){var d=f.meta.percent||0,p=this.entriesCount,m=this._sources.length;this.accumulate?this.contentBuffer.push(f):(this.bytesWritten+=f.data.length,s.prototype.push.call(this,{data:f.data,meta:{currentFile:this.currentFile,percent:p?(d+100*(p-m-1))/p:100}}))},h.prototype.openedSource=function(f){this.currentSourceOffset=this.bytesWritten,this.currentFile=f.file.name;var d=this.streamFiles&&!f.file.dir;if(d){var p=i(f,d,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:p.fileRecord,meta:{percent:0}})}else this.accumulate=!0},h.prototype.closedSource=function(f){this.accumulate=!1;var d=this.streamFiles&&!f.file.dir,p=i(f,d,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(p.dirRecord),d)this.push({data:(function(m){return u.DATA_DESCRIPTOR+n(m.crc32,4)+n(m.compressedSize,4)+n(m.uncompressedSize,4)})(f),meta:{percent:100}});else for(this.push({data:p.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},h.prototype.flush=function(){for(var f=this.bytesWritten,d=0;d<this.dirRecords.length;d++)this.push({data:this.dirRecords[d],meta:{percent:100}});var p=this.bytesWritten-f,m=(function(g,x,y,b,v){var _=a.transformTo("string",v(b));return u.CENTRAL_DIRECTORY_END+"\0\0\0\0"+n(g,2)+n(g,2)+n(x,4)+n(y,4)+n(_.length,2)+_})(this.dirRecords.length,p,f,this.zipComment,this.encodeFileName);this.push({data:m,meta:{percent:100}})},h.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},h.prototype.registerPrevious=function(f){this._sources.push(f);var d=this;return f.on("data",function(p){d.processChunk(p)}),f.on("end",function(){d.closedSource(d.previous.streamInfo),d._sources.length?d.prepareNextSource():d.end()}),f.on("error",function(p){d.error(p)}),this},h.prototype.resume=function(){return!!s.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},h.prototype.error=function(f){var d=this._sources;if(!s.prototype.error.call(this,f))return!1;for(var p=0;p<d.length;p++)try{d[p].error(f)}catch{}return!0},h.prototype.lock=function(){s.prototype.lock.call(this);for(var f=this._sources,d=0;d<f.length;d++)f[d].lock()},e.exports=h},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(r,e,t){"use strict";var n=r("../compressions"),i=r("./ZipFileWorker");t.generateWorker=function(a,s,o){var c=new i(s.streamFiles,o,s.platform,s.encodeFileName),u=0;try{a.forEach(function(h,f){u++;var d=(function(x,y){var b=x||y,v=n[b];if(!v)throw new Error(b+" is not a valid compression method !");return v})(f.options.compression,s.compression),p=f.options.compressionOptions||s.compressionOptions||{},m=f.dir,g=f.date;f._compressWorker(d,p).withStreamInfo("file",{name:h,dir:m,date:g,comment:f.comment||"",unixPermissions:f.unixPermissions,dosPermissions:f.dosPermissions}).pipe(c)}),c.entriesCount=u}catch(h){c.error(h)}return c}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(r,e,t){"use strict";function n(){if(!(this instanceof n))return new n;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var i=new n;for(var a in this)typeof this[a]!="function"&&(i[a]=this[a]);return i}}(n.prototype=r("./object")).loadAsync=r("./load"),n.support=r("./support"),n.defaults=r("./defaults"),n.version="3.10.1",n.loadAsync=function(i,a){return new n().loadAsync(i,a)},n.external=r("./external"),e.exports=n},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(r,e,t){"use strict";var n=r("./utils"),i=r("./external"),a=r("./utf8"),s=r("./zipEntries"),o=r("./stream/Crc32Probe"),c=r("./nodejsUtils");function u(h){return new i.Promise(function(f,d){var p=h.decompressed.getContentWorker().pipe(new o);p.on("error",function(m){d(m)}).on("end",function(){p.streamInfo.crc32!==h.decompressed.crc32?d(new Error("Corrupted zip : CRC32 mismatch")):f()}).resume()})}e.exports=function(h,f){var d=this;return f=n.extend(f||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:a.utf8decode}),c.isNode&&c.isStream(h)?i.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):n.prepareContent("the loaded zip file",h,!0,f.optimizedBinaryString,f.base64).then(function(p){var m=new s(f);return m.load(p),m}).then(function(p){var m=[i.Promise.resolve(p)],g=p.files;if(f.checkCRC32)for(var x=0;x<g.length;x++)m.push(u(g[x]));return i.Promise.all(m)}).then(function(p){for(var m=p.shift(),g=m.files,x=0;x<g.length;x++){var y=g[x],b=y.fileNameStr,v=n.resolve(y.fileNameStr);d.file(v,y.decompressed,{binary:!0,optimizedBinaryString:!0,date:y.date,dir:y.dir,comment:y.fileCommentStr.length?y.fileCommentStr:null,unixPermissions:y.unixPermissions,dosPermissions:y.dosPermissions,createFolders:f.createFolders}),y.dir||(d.file(v).unsafeOriginalName=b)}return m.zipComment.length&&(d.comment=m.zipComment),d})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(r,e,t){"use strict";var n=r("../utils"),i=r("../stream/GenericWorker");function a(s,o){i.call(this,"Nodejs stream input adapter for "+s),this._upstreamEnded=!1,this._bindStream(o)}n.inherits(a,i),a.prototype._bindStream=function(s){var o=this;(this._stream=s).pause(),s.on("data",function(c){o.push({data:c,meta:{percent:0}})}).on("error",function(c){o.isPaused?this.generatedError=c:o.error(c)}).on("end",function(){o.isPaused?o._upstreamEnded=!0:o.end()})},a.prototype.pause=function(){return!!i.prototype.pause.call(this)&&(this._stream.pause(),!0)},a.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},e.exports=a},{"../stream/GenericWorker":28,"../utils":32}],13:[function(r,e,t){"use strict";var n=r("readable-stream").Readable;function i(a,s,o){n.call(this,s),this._helper=a;var c=this;a.on("data",function(u,h){c.push(u)||c._helper.pause(),o&&o(h)}).on("error",function(u){c.emit("error",u)}).on("end",function(){c.push(null)})}r("../utils").inherits(i,n),i.prototype._read=function(){this._helper.resume()},e.exports=i},{"../utils":32,"readable-stream":16}],14:[function(r,e,t){"use strict";e.exports={isNode:typeof Buffer<"u",newBufferFrom:function(n,i){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(n,i);if(typeof n=="number")throw new Error('The "data" argument must not be a number');return new Buffer(n,i)},allocBuffer:function(n){if(Buffer.alloc)return Buffer.alloc(n);var i=new Buffer(n);return i.fill(0),i},isBuffer:function(n){return Buffer.isBuffer(n)},isStream:function(n){return n&&typeof n.on=="function"&&typeof n.pause=="function"&&typeof n.resume=="function"}}},{}],15:[function(r,e,t){"use strict";function n(v,_,A){var E,T=a.getTypeOf(_),S=a.extend(A||{},c);S.date=S.date||new Date,S.compression!==null&&(S.compression=S.compression.toUpperCase()),typeof S.unixPermissions=="string"&&(S.unixPermissions=parseInt(S.unixPermissions,8)),S.unixPermissions&&16384&S.unixPermissions&&(S.dir=!0),S.dosPermissions&&16&S.dosPermissions&&(S.dir=!0),S.dir&&(v=g(v)),S.createFolders&&(E=m(v))&&x.call(this,E,!0);var C=T==="string"&&S.binary===!1&&S.base64===!1;A&&A.binary!==void 0||(S.binary=!C),(_ instanceof u&&_.uncompressedSize===0||S.dir||!_||_.length===0)&&(S.base64=!1,S.binary=!0,_="",S.compression="STORE",T="string");var F=null;F=_ instanceof u||_ instanceof s?_:d.isNode&&d.isStream(_)?new p(v,_):a.prepareContent(v,_,S.binary,S.optimizedBinaryString,S.base64);var k=new h(v,F,S);this.files[v]=k}var i=r("./utf8"),a=r("./utils"),s=r("./stream/GenericWorker"),o=r("./stream/StreamHelper"),c=r("./defaults"),u=r("./compressedObject"),h=r("./zipObject"),f=r("./generate"),d=r("./nodejsUtils"),p=r("./nodejs/NodejsStreamInputAdapter"),m=function(v){v.slice(-1)==="/"&&(v=v.substring(0,v.length-1));var _=v.lastIndexOf("/");return 0<_?v.substring(0,_):""},g=function(v){return v.slice(-1)!=="/"&&(v+="/"),v},x=function(v,_){return _=_!==void 0?_:c.createFolders,v=g(v),this.files[v]||n.call(this,v,null,{dir:!0,createFolders:_}),this.files[v]};function y(v){return Object.prototype.toString.call(v)==="[object RegExp]"}var b={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(v){var _,A,E;for(_ in this.files)E=this.files[_],(A=_.slice(this.root.length,_.length))&&_.slice(0,this.root.length)===this.root&&v(A,E)},filter:function(v){var _=[];return this.forEach(function(A,E){v(A,E)&&_.push(E)}),_},file:function(v,_,A){if(arguments.length!==1)return v=this.root+v,n.call(this,v,_,A),this;if(y(v)){var E=v;return this.filter(function(S,C){return!C.dir&&E.test(S)})}var T=this.files[this.root+v];return T&&!T.dir?T:null},folder:function(v){if(!v)return this;if(y(v))return this.filter(function(T,S){return S.dir&&v.test(T)});var _=this.root+v,A=x.call(this,_),E=this.clone();return E.root=A.name,E},remove:function(v){v=this.root+v;var _=this.files[v];if(_||(v.slice(-1)!=="/"&&(v+="/"),_=this.files[v]),_&&!_.dir)delete this.files[v];else for(var A=this.filter(function(T,S){return S.name.slice(0,v.length)===v}),E=0;E<A.length;E++)delete this.files[A[E].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(v){var _,A={};try{if((A=a.extend(v||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:i.utf8encode})).type=A.type.toLowerCase(),A.compression=A.compression.toUpperCase(),A.type==="binarystring"&&(A.type="string"),!A.type)throw new Error("No output type specified.");a.checkSupport(A.type),A.platform!=="darwin"&&A.platform!=="freebsd"&&A.platform!=="linux"&&A.platform!=="sunos"||(A.platform="UNIX"),A.platform==="win32"&&(A.platform="DOS");var E=A.comment||this.comment||"";_=f.generateWorker(this,A,E)}catch(T){(_=new s("error")).error(T)}return new o(_,A.type||"string",A.mimeType)},generateAsync:function(v,_){return this.generateInternalStream(v).accumulate(_)},generateNodeStream:function(v,_){return(v=v||{}).type||(v.type="nodebuffer"),this.generateInternalStream(v).toNodejsStream(_)}};e.exports=b},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(r,e,t){"use strict";e.exports=r("stream")},{stream:void 0}],17:[function(r,e,t){"use strict";var n=r("./DataReader");function i(a){n.call(this,a);for(var s=0;s<this.data.length;s++)a[s]=255&a[s]}r("../utils").inherits(i,n),i.prototype.byteAt=function(a){return this.data[this.zero+a]},i.prototype.lastIndexOfSignature=function(a){for(var s=a.charCodeAt(0),o=a.charCodeAt(1),c=a.charCodeAt(2),u=a.charCodeAt(3),h=this.length-4;0<=h;--h)if(this.data[h]===s&&this.data[h+1]===o&&this.data[h+2]===c&&this.data[h+3]===u)return h-this.zero;return-1},i.prototype.readAndCheckSignature=function(a){var s=a.charCodeAt(0),o=a.charCodeAt(1),c=a.charCodeAt(2),u=a.charCodeAt(3),h=this.readData(4);return s===h[0]&&o===h[1]&&c===h[2]&&u===h[3]},i.prototype.readData=function(a){if(this.checkOffset(a),a===0)return[];var s=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,s},e.exports=i},{"../utils":32,"./DataReader":18}],18:[function(r,e,t){"use strict";var n=r("../utils");function i(a){this.data=a,this.length=a.length,this.index=0,this.zero=0}i.prototype={checkOffset:function(a){this.checkIndex(this.index+a)},checkIndex:function(a){if(this.length<this.zero+a||a<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+a+"). Corrupted zip ?")},setIndex:function(a){this.checkIndex(a),this.index=a},skip:function(a){this.setIndex(this.index+a)},byteAt:function(){},readInt:function(a){var s,o=0;for(this.checkOffset(a),s=this.index+a-1;s>=this.index;s--)o=(o<<8)+this.byteAt(s);return this.index+=a,o},readString:function(a){return n.transformTo("string",this.readData(a))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var a=this.readInt(4);return new Date(Date.UTC(1980+(a>>25&127),(a>>21&15)-1,a>>16&31,a>>11&31,a>>5&63,(31&a)<<1))}},e.exports=i},{"../utils":32}],19:[function(r,e,t){"use strict";var n=r("./Uint8ArrayReader");function i(a){n.call(this,a)}r("../utils").inherits(i,n),i.prototype.readData=function(a){this.checkOffset(a);var s=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,s},e.exports=i},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(r,e,t){"use strict";var n=r("./DataReader");function i(a){n.call(this,a)}r("../utils").inherits(i,n),i.prototype.byteAt=function(a){return this.data.charCodeAt(this.zero+a)},i.prototype.lastIndexOfSignature=function(a){return this.data.lastIndexOf(a)-this.zero},i.prototype.readAndCheckSignature=function(a){return a===this.readData(4)},i.prototype.readData=function(a){this.checkOffset(a);var s=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,s},e.exports=i},{"../utils":32,"./DataReader":18}],21:[function(r,e,t){"use strict";var n=r("./ArrayReader");function i(a){n.call(this,a)}r("../utils").inherits(i,n),i.prototype.readData=function(a){if(this.checkOffset(a),a===0)return new Uint8Array(0);var s=this.data.subarray(this.zero+this.index,this.zero+this.index+a);return this.index+=a,s},e.exports=i},{"../utils":32,"./ArrayReader":17}],22:[function(r,e,t){"use strict";var n=r("../utils"),i=r("../support"),a=r("./ArrayReader"),s=r("./StringReader"),o=r("./NodeBufferReader"),c=r("./Uint8ArrayReader");e.exports=function(u){var h=n.getTypeOf(u);return n.checkSupport(h),h!=="string"||i.uint8array?h==="nodebuffer"?new o(u):i.uint8array?new c(n.transformTo("uint8array",u)):new a(n.transformTo("array",u)):new s(u)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(r,e,t){"use strict";t.LOCAL_FILE_HEADER="PK",t.CENTRAL_FILE_HEADER="PK",t.CENTRAL_DIRECTORY_END="PK",t.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",t.ZIP64_CENTRAL_DIRECTORY_END="PK",t.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(r,e,t){"use strict";var n=r("./GenericWorker"),i=r("../utils");function a(s){n.call(this,"ConvertWorker to "+s),this.destType=s}i.inherits(a,n),a.prototype.processChunk=function(s){this.push({data:i.transformTo(this.destType,s.data),meta:s.meta})},e.exports=a},{"../utils":32,"./GenericWorker":28}],25:[function(r,e,t){"use strict";var n=r("./GenericWorker"),i=r("../crc32");function a(){n.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}r("../utils").inherits(a,n),a.prototype.processChunk=function(s){this.streamInfo.crc32=i(s.data,this.streamInfo.crc32||0),this.push(s)},e.exports=a},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(r,e,t){"use strict";var n=r("../utils"),i=r("./GenericWorker");function a(s){i.call(this,"DataLengthProbe for "+s),this.propName=s,this.withStreamInfo(s,0)}n.inherits(a,i),a.prototype.processChunk=function(s){if(s){var o=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=o+s.data.length}i.prototype.processChunk.call(this,s)},e.exports=a},{"../utils":32,"./GenericWorker":28}],27:[function(r,e,t){"use strict";var n=r("../utils"),i=r("./GenericWorker");function a(s){i.call(this,"DataWorker");var o=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,s.then(function(c){o.dataIsReady=!0,o.data=c,o.max=c&&c.length||0,o.type=n.getTypeOf(c),o.isPaused||o._tickAndRepeat()},function(c){o.error(c)})}n.inherits(a,i),a.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this.data=null},a.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,n.delay(this._tickAndRepeat,[],this)),!0)},a.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(n.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},a.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var s=null,o=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":s=this.data.substring(this.index,o);break;case"uint8array":s=this.data.subarray(this.index,o);break;case"array":case"nodebuffer":s=this.data.slice(this.index,o)}return this.index=o,this.push({data:s,meta:{percent:this.max?this.index/this.max*100:0}})},e.exports=a},{"../utils":32,"./GenericWorker":28}],28:[function(r,e,t){"use strict";function n(i){this.name=i||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}n.prototype={push:function(i){this.emit("data",i)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(i){this.emit("error",i)}return!0},error:function(i){return!this.isFinished&&(this.isPaused?this.generatedError=i:(this.isFinished=!0,this.emit("error",i),this.previous&&this.previous.error(i),this.cleanUp()),!0)},on:function(i,a){return this._listeners[i].push(a),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(i,a){if(this._listeners[i])for(var s=0;s<this._listeners[i].length;s++)this._listeners[i][s].call(this,a)},pipe:function(i){return i.registerPrevious(this)},registerPrevious:function(i){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=i.streamInfo,this.mergeStreamInfo(),this.previous=i;var a=this;return i.on("data",function(s){a.processChunk(s)}),i.on("end",function(){a.end()}),i.on("error",function(s){a.error(s)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var i=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),i=!0),this.previous&&this.previous.resume(),!i},flush:function(){},processChunk:function(i){this.push(i)},withStreamInfo:function(i,a){return this.extraStreamInfo[i]=a,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var i in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,i)&&(this.streamInfo[i]=this.extraStreamInfo[i])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var i="Worker "+this.name;return this.previous?this.previous+" -> "+i:i}},e.exports=n},{}],29:[function(r,e,t){"use strict";var n=r("../utils"),i=r("./ConvertWorker"),a=r("./GenericWorker"),s=r("../base64"),o=r("../support"),c=r("../external"),u=null;if(o.nodestream)try{u=r("../nodejs/NodejsStreamOutputAdapter")}catch{}function h(d,p){return new c.Promise(function(m,g){var x=[],y=d._internalType,b=d._outputType,v=d._mimeType;d.on("data",function(_,A){x.push(_),p&&p(A)}).on("error",function(_){x=[],g(_)}).on("end",function(){try{var _=(function(A,E,T){switch(A){case"blob":return n.newBlob(n.transformTo("arraybuffer",E),T);case"base64":return s.encode(E);default:return n.transformTo(A,E)}})(b,(function(A,E){var T,S=0,C=null,F=0;for(T=0;T<E.length;T++)F+=E[T].length;switch(A){case"string":return E.join("");case"array":return Array.prototype.concat.apply([],E);case"uint8array":for(C=new Uint8Array(F),T=0;T<E.length;T++)C.set(E[T],S),S+=E[T].length;return C;case"nodebuffer":return Buffer.concat(E);default:throw new Error("concat : unsupported type '"+A+"'")}})(y,x),v);m(_)}catch(A){g(A)}x=[]}).resume()})}function f(d,p,m){var g=p;switch(p){case"blob":case"arraybuffer":g="uint8array";break;case"base64":g="string"}try{this._internalType=g,this._outputType=p,this._mimeType=m,n.checkSupport(g),this._worker=d.pipe(new i(g)),d.lock()}catch(x){this._worker=new a("error"),this._worker.error(x)}}f.prototype={accumulate:function(d){return h(this,d)},on:function(d,p){var m=this;return d==="data"?this._worker.on(d,function(g){p.call(m,g.data,g.meta)}):this._worker.on(d,function(){n.delay(p,arguments,m)}),this},resume:function(){return n.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(d){if(n.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new u(this,{objectMode:this._outputType!=="nodebuffer"},d)}},e.exports=f},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(r,e,t){"use strict";if(t.base64=!0,t.array=!0,t.string=!0,t.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",t.nodebuffer=typeof Buffer<"u",t.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")t.blob=!1;else{var n=new ArrayBuffer(0);try{t.blob=new Blob([n],{type:"application/zip"}).size===0}catch{try{var i=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);i.append(n),t.blob=i.getBlob("application/zip").size===0}catch{t.blob=!1}}}try{t.nodestream=!!r("readable-stream").Readable}catch{t.nodestream=!1}},{"readable-stream":16}],31:[function(r,e,t){"use strict";for(var n=r("./utils"),i=r("./support"),a=r("./nodejsUtils"),s=r("./stream/GenericWorker"),o=new Array(256),c=0;c<256;c++)o[c]=252<=c?6:248<=c?5:240<=c?4:224<=c?3:192<=c?2:1;o[254]=o[254]=1;function u(){s.call(this,"utf-8 decode"),this.leftOver=null}function h(){s.call(this,"utf-8 encode")}t.utf8encode=function(f){return i.nodebuffer?a.newBufferFrom(f,"utf-8"):(function(d){var p,m,g,x,y,b=d.length,v=0;for(x=0;x<b;x++)(64512&(m=d.charCodeAt(x)))==55296&&x+1<b&&(64512&(g=d.charCodeAt(x+1)))==56320&&(m=65536+(m-55296<<10)+(g-56320),x++),v+=m<128?1:m<2048?2:m<65536?3:4;for(p=i.uint8array?new Uint8Array(v):new Array(v),x=y=0;y<v;x++)(64512&(m=d.charCodeAt(x)))==55296&&x+1<b&&(64512&(g=d.charCodeAt(x+1)))==56320&&(m=65536+(m-55296<<10)+(g-56320),x++),m<128?p[y++]=m:(m<2048?p[y++]=192|m>>>6:(m<65536?p[y++]=224|m>>>12:(p[y++]=240|m>>>18,p[y++]=128|m>>>12&63),p[y++]=128|m>>>6&63),p[y++]=128|63&m);return p})(f)},t.utf8decode=function(f){return i.nodebuffer?n.transformTo("nodebuffer",f).toString("utf-8"):(function(d){var p,m,g,x,y=d.length,b=new Array(2*y);for(p=m=0;p<y;)if((g=d[p++])<128)b[m++]=g;else if(4<(x=o[g]))b[m++]=65533,p+=x-1;else{for(g&=x===2?31:x===3?15:7;1<x&&p<y;)g=g<<6|63&d[p++],x--;1<x?b[m++]=65533:g<65536?b[m++]=g:(g-=65536,b[m++]=55296|g>>10&1023,b[m++]=56320|1023&g)}return b.length!==m&&(b.subarray?b=b.subarray(0,m):b.length=m),n.applyFromCharCode(b)})(f=n.transformTo(i.uint8array?"uint8array":"array",f))},n.inherits(u,s),u.prototype.processChunk=function(f){var d=n.transformTo(i.uint8array?"uint8array":"array",f.data);if(this.leftOver&&this.leftOver.length){if(i.uint8array){var p=d;(d=new Uint8Array(p.length+this.leftOver.length)).set(this.leftOver,0),d.set(p,this.leftOver.length)}else d=this.leftOver.concat(d);this.leftOver=null}var m=(function(x,y){var b;for((y=y||x.length)>x.length&&(y=x.length),b=y-1;0<=b&&(192&x[b])==128;)b--;return b<0||b===0?y:b+o[x[b]]>y?b:y})(d),g=d;m!==d.length&&(i.uint8array?(g=d.subarray(0,m),this.leftOver=d.subarray(m,d.length)):(g=d.slice(0,m),this.leftOver=d.slice(m,d.length))),this.push({data:t.utf8decode(g),meta:f.meta})},u.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:t.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},t.Utf8DecodeWorker=u,n.inherits(h,s),h.prototype.processChunk=function(f){this.push({data:t.utf8encode(f.data),meta:f.meta})},t.Utf8EncodeWorker=h},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(r,e,t){"use strict";var n=r("./support"),i=r("./base64"),a=r("./nodejsUtils"),s=r("./external");function o(p){return p}function c(p,m){for(var g=0;g<p.length;++g)m[g]=255&p.charCodeAt(g);return m}r("setimmediate"),t.newBlob=function(p,m){t.checkSupport("blob");try{return new Blob([p],{type:m})}catch{try{var g=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return g.append(p),g.getBlob(m)}catch{throw new Error("Bug : can't construct the Blob.")}}};var u={stringifyByChunk:function(p,m,g){var x=[],y=0,b=p.length;if(b<=g)return String.fromCharCode.apply(null,p);for(;y<b;)m==="array"||m==="nodebuffer"?x.push(String.fromCharCode.apply(null,p.slice(y,Math.min(y+g,b)))):x.push(String.fromCharCode.apply(null,p.subarray(y,Math.min(y+g,b)))),y+=g;return x.join("")},stringifyByChar:function(p){for(var m="",g=0;g<p.length;g++)m+=String.fromCharCode(p[g]);return m},applyCanBeUsed:{uint8array:(function(){try{return n.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}})(),nodebuffer:(function(){try{return n.nodebuffer&&String.fromCharCode.apply(null,a.allocBuffer(1)).length===1}catch{return!1}})()}};function h(p){var m=65536,g=t.getTypeOf(p),x=!0;if(g==="uint8array"?x=u.applyCanBeUsed.uint8array:g==="nodebuffer"&&(x=u.applyCanBeUsed.nodebuffer),x)for(;1<m;)try{return u.stringifyByChunk(p,g,m)}catch{m=Math.floor(m/2)}return u.stringifyByChar(p)}function f(p,m){for(var g=0;g<p.length;g++)m[g]=p[g];return m}t.applyFromCharCode=h;var d={};d.string={string:o,array:function(p){return c(p,new Array(p.length))},arraybuffer:function(p){return d.string.uint8array(p).buffer},uint8array:function(p){return c(p,new Uint8Array(p.length))},nodebuffer:function(p){return c(p,a.allocBuffer(p.length))}},d.array={string:h,array:o,arraybuffer:function(p){return new Uint8Array(p).buffer},uint8array:function(p){return new Uint8Array(p)},nodebuffer:function(p){return a.newBufferFrom(p)}},d.arraybuffer={string:function(p){return h(new Uint8Array(p))},array:function(p){return f(new Uint8Array(p),new Array(p.byteLength))},arraybuffer:o,uint8array:function(p){return new Uint8Array(p)},nodebuffer:function(p){return a.newBufferFrom(new Uint8Array(p))}},d.uint8array={string:h,array:function(p){return f(p,new Array(p.length))},arraybuffer:function(p){return p.buffer},uint8array:o,nodebuffer:function(p){return a.newBufferFrom(p)}},d.nodebuffer={string:h,array:function(p){return f(p,new Array(p.length))},arraybuffer:function(p){return d.nodebuffer.uint8array(p).buffer},uint8array:function(p){return f(p,new Uint8Array(p.length))},nodebuffer:o},t.transformTo=function(p,m){if(m=m||"",!p)return m;t.checkSupport(p);var g=t.getTypeOf(m);return d[g][p](m)},t.resolve=function(p){for(var m=p.split("/"),g=[],x=0;x<m.length;x++){var y=m[x];y==="."||y===""&&x!==0&&x!==m.length-1||(y===".."?g.pop():g.push(y))}return g.join("/")},t.getTypeOf=function(p){return typeof p=="string"?"string":Object.prototype.toString.call(p)==="[object Array]"?"array":n.nodebuffer&&a.isBuffer(p)?"nodebuffer":n.uint8array&&p instanceof Uint8Array?"uint8array":n.arraybuffer&&p instanceof ArrayBuffer?"arraybuffer":void 0},t.checkSupport=function(p){if(!n[p.toLowerCase()])throw new Error(p+" is not supported by this platform")},t.MAX_VALUE_16BITS=65535,t.MAX_VALUE_32BITS=-1,t.pretty=function(p){var m,g,x="";for(g=0;g<(p||"").length;g++)x+="\\x"+((m=p.charCodeAt(g))<16?"0":"")+m.toString(16).toUpperCase();return x},t.delay=function(p,m,g){setImmediate(function(){p.apply(g||null,m||[])})},t.inherits=function(p,m){function g(){}g.prototype=m.prototype,p.prototype=new g},t.extend=function(){var p,m,g={};for(p=0;p<arguments.length;p++)for(m in arguments[p])Object.prototype.hasOwnProperty.call(arguments[p],m)&&g[m]===void 0&&(g[m]=arguments[p][m]);return g},t.prepareContent=function(p,m,g,x,y){return s.Promise.resolve(m).then(function(b){return n.blob&&(b instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(b))!==-1)&&typeof FileReader<"u"?new s.Promise(function(v,_){var A=new FileReader;A.onload=function(E){v(E.target.result)},A.onerror=function(E){_(E.target.error)},A.readAsArrayBuffer(b)}):b}).then(function(b){var v=t.getTypeOf(b);return v?(v==="arraybuffer"?b=t.transformTo("uint8array",b):v==="string"&&(y?b=i.decode(b):g&&x!==!0&&(b=(function(_){return c(_,n.uint8array?new Uint8Array(_.length):new Array(_.length))})(b))),b):s.Promise.reject(new Error("Can't read the data of '"+p+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(r,e,t){"use strict";var n=r("./reader/readerFor"),i=r("./utils"),a=r("./signature"),s=r("./zipEntry"),o=r("./support");function c(u){this.files=[],this.loadOptions=u}c.prototype={checkSignature:function(u){if(!this.reader.readAndCheckSignature(u)){this.reader.index-=4;var h=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+i.pretty(h)+", expected "+i.pretty(u)+")")}},isSignature:function(u,h){var f=this.reader.index;this.reader.setIndex(u);var d=this.reader.readString(4)===h;return this.reader.setIndex(f),d},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var u=this.reader.readData(this.zipCommentLength),h=o.uint8array?"uint8array":"array",f=i.transformTo(h,u);this.zipComment=this.loadOptions.decodeFileName(f)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var u,h,f,d=this.zip64EndOfCentralSize-44;0<d;)u=this.reader.readInt(2),h=this.reader.readInt(4),f=this.reader.readData(h),this.zip64ExtensibleData[u]={id:u,length:h,value:f}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var u,h;for(u=0;u<this.files.length;u++)h=this.files[u],this.reader.setIndex(h.localHeaderOffset),this.checkSignature(a.LOCAL_FILE_HEADER),h.readLocalPart(this.reader),h.handleUTF8(),h.processAttributes()},readCentralDir:function(){var u;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(a.CENTRAL_FILE_HEADER);)(u=new s({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(u);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var u=this.reader.lastIndexOfSignature(a.CENTRAL_DIRECTORY_END);if(u<0)throw this.isSignature(0,a.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(u);var h=u;if(this.checkSignature(a.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===i.MAX_VALUE_16BITS||this.diskWithCentralDirStart===i.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===i.MAX_VALUE_16BITS||this.centralDirRecords===i.MAX_VALUE_16BITS||this.centralDirSize===i.MAX_VALUE_32BITS||this.centralDirOffset===i.MAX_VALUE_32BITS){if(this.zip64=!0,(u=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(u),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,a.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var f=this.centralDirOffset+this.centralDirSize;this.zip64&&(f+=20,f+=12+this.zip64EndOfCentralSize);var d=h-f;if(0<d)this.isSignature(h,a.CENTRAL_FILE_HEADER)||(this.reader.zero=d);else if(d<0)throw new Error("Corrupted zip: missing "+Math.abs(d)+" bytes.")},prepareReader:function(u){this.reader=n(u)},load:function(u){this.prepareReader(u),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},e.exports=c},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(r,e,t){"use strict";var n=r("./reader/readerFor"),i=r("./utils"),a=r("./compressedObject"),s=r("./crc32"),o=r("./utf8"),c=r("./compressions"),u=r("./support");function h(f,d){this.options=f,this.loadOptions=d}h.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(f){var d,p;if(f.skip(22),this.fileNameLength=f.readInt(2),p=f.readInt(2),this.fileName=f.readData(this.fileNameLength),f.skip(p),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((d=(function(m){for(var g in c)if(Object.prototype.hasOwnProperty.call(c,g)&&c[g].magic===m)return c[g];return null})(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+i.pretty(this.compressionMethod)+" unknown (inner file : "+i.transformTo("string",this.fileName)+")");this.decompressed=new a(this.compressedSize,this.uncompressedSize,this.crc32,d,f.readData(this.compressedSize))},readCentralPart:function(f){this.versionMadeBy=f.readInt(2),f.skip(2),this.bitFlag=f.readInt(2),this.compressionMethod=f.readString(2),this.date=f.readDate(),this.crc32=f.readInt(4),this.compressedSize=f.readInt(4),this.uncompressedSize=f.readInt(4);var d=f.readInt(2);if(this.extraFieldsLength=f.readInt(2),this.fileCommentLength=f.readInt(2),this.diskNumberStart=f.readInt(2),this.internalFileAttributes=f.readInt(2),this.externalFileAttributes=f.readInt(4),this.localHeaderOffset=f.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");f.skip(d),this.readExtraFields(f),this.parseZIP64ExtraField(f),this.fileComment=f.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var f=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),f==0&&(this.dosPermissions=63&this.externalFileAttributes),f==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var f=n(this.extraFields[1].value);this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=f.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=f.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&(this.localHeaderOffset=f.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=f.readInt(4))}},readExtraFields:function(f){var d,p,m,g=f.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});f.index+4<g;)d=f.readInt(2),p=f.readInt(2),m=f.readData(p),this.extraFields[d]={id:d,length:p,value:m};f.setIndex(g)},handleUTF8:function(){var f=u.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=o.utf8decode(this.fileName),this.fileCommentStr=o.utf8decode(this.fileComment);else{var d=this.findExtraFieldUnicodePath();if(d!==null)this.fileNameStr=d;else{var p=i.transformTo(f,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(p)}var m=this.findExtraFieldUnicodeComment();if(m!==null)this.fileCommentStr=m;else{var g=i.transformTo(f,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(g)}}},findExtraFieldUnicodePath:function(){var f=this.extraFields[28789];if(f){var d=n(f.value);return d.readInt(1)!==1||s(this.fileName)!==d.readInt(4)?null:o.utf8decode(d.readData(f.length-5))}return null},findExtraFieldUnicodeComment:function(){var f=this.extraFields[25461];if(f){var d=n(f.value);return d.readInt(1)!==1||s(this.fileComment)!==d.readInt(4)?null:o.utf8decode(d.readData(f.length-5))}return null}},e.exports=h},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(r,e,t){"use strict";function n(d,p,m){this.name=d,this.dir=m.dir,this.date=m.date,this.comment=m.comment,this.unixPermissions=m.unixPermissions,this.dosPermissions=m.dosPermissions,this._data=p,this._dataBinary=m.binary,this.options={compression:m.compression,compressionOptions:m.compressionOptions}}var i=r("./stream/StreamHelper"),a=r("./stream/DataWorker"),s=r("./utf8"),o=r("./compressedObject"),c=r("./stream/GenericWorker");n.prototype={internalStream:function(d){var p=null,m="string";try{if(!d)throw new Error("No output type specified.");var g=(m=d.toLowerCase())==="string"||m==="text";m!=="binarystring"&&m!=="text"||(m="string"),p=this._decompressWorker();var x=!this._dataBinary;x&&!g&&(p=p.pipe(new s.Utf8EncodeWorker)),!x&&g&&(p=p.pipe(new s.Utf8DecodeWorker))}catch(y){(p=new c("error")).error(y)}return new i(p,m,"")},async:function(d,p){return this.internalStream(d).accumulate(p)},nodeStream:function(d,p){return this.internalStream(d||"nodebuffer").toNodejsStream(p)},_compressWorker:function(d,p){if(this._data instanceof o&&this._data.compression.magic===d.magic)return this._data.getCompressedWorker();var m=this._decompressWorker();return this._dataBinary||(m=m.pipe(new s.Utf8EncodeWorker)),o.createWorkerFrom(m,d,p)},_decompressWorker:function(){return this._data instanceof o?this._data.getContentWorker():this._data instanceof c?this._data:new a(this._data)}};for(var u=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],h=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},f=0;f<u.length;f++)n.prototype[u[f]]=h;e.exports=n},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(r,e,t){(function(n){"use strict";var i,a,s=n.MutationObserver||n.WebKitMutationObserver;if(s){var o=0,c=new s(d),u=n.document.createTextNode("");c.observe(u,{characterData:!0}),i=function(){u.data=o=++o%2}}else if(n.setImmediate||n.MessageChannel===void 0)i="document"in n&&"onreadystatechange"in n.document.createElement("script")?function(){var p=n.document.createElement("script");p.onreadystatechange=function(){d(),p.onreadystatechange=null,p.parentNode.removeChild(p),p=null},n.document.documentElement.appendChild(p)}:function(){setTimeout(d,0)};else{var h=new n.MessageChannel;h.port1.onmessage=d,i=function(){h.port2.postMessage(0)}}var f=[];function d(){var p,m;a=!0;for(var g=f.length;g;){for(m=f,f=[],p=-1;++p<g;)m[p]();g=f.length}a=!1}e.exports=function(p){f.push(p)!==1||a||i()}}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(r,e,t){"use strict";var n=r("immediate");function i(){}var a={},s=["REJECTED"],o=["FULFILLED"],c=["PENDING"];function u(g){if(typeof g!="function")throw new TypeError("resolver must be a function");this.state=c,this.queue=[],this.outcome=void 0,g!==i&&p(this,g)}function h(g,x,y){this.promise=g,typeof x=="function"&&(this.onFulfilled=x,this.callFulfilled=this.otherCallFulfilled),typeof y=="function"&&(this.onRejected=y,this.callRejected=this.otherCallRejected)}function f(g,x,y){n(function(){var b;try{b=x(y)}catch(v){return a.reject(g,v)}b===g?a.reject(g,new TypeError("Cannot resolve promise with itself")):a.resolve(g,b)})}function d(g){var x=g&&g.then;if(g&&(typeof g=="object"||typeof g=="function")&&typeof x=="function")return function(){x.apply(g,arguments)}}function p(g,x){var y=!1;function b(A){y||(y=!0,a.reject(g,A))}function v(A){y||(y=!0,a.resolve(g,A))}var _=m(function(){x(v,b)});_.status==="error"&&b(_.value)}function m(g,x){var y={};try{y.value=g(x),y.status="success"}catch(b){y.status="error",y.value=b}return y}(e.exports=u).prototype.finally=function(g){if(typeof g!="function")return this;var x=this.constructor;return this.then(function(y){return x.resolve(g()).then(function(){return y})},function(y){return x.resolve(g()).then(function(){throw y})})},u.prototype.catch=function(g){return this.then(null,g)},u.prototype.then=function(g,x){if(typeof g!="function"&&this.state===o||typeof x!="function"&&this.state===s)return this;var y=new this.constructor(i);return this.state!==c?f(y,this.state===o?g:x,this.outcome):this.queue.push(new h(y,g,x)),y},h.prototype.callFulfilled=function(g){a.resolve(this.promise,g)},h.prototype.otherCallFulfilled=function(g){f(this.promise,this.onFulfilled,g)},h.prototype.callRejected=function(g){a.reject(this.promise,g)},h.prototype.otherCallRejected=function(g){f(this.promise,this.onRejected,g)},a.resolve=function(g,x){var y=m(d,x);if(y.status==="error")return a.reject(g,y.value);var b=y.value;if(b)p(g,b);else{g.state=o,g.outcome=x;for(var v=-1,_=g.queue.length;++v<_;)g.queue[v].callFulfilled(x)}return g},a.reject=function(g,x){g.state=s,g.outcome=x;for(var y=-1,b=g.queue.length;++y<b;)g.queue[y].callRejected(x);return g},u.resolve=function(g){return g instanceof this?g:a.resolve(new this(i),g)},u.reject=function(g){var x=new this(i);return a.reject(x,g)},u.all=function(g){var x=this;if(Object.prototype.toString.call(g)!=="[object Array]")return this.reject(new TypeError("must be an array"));var y=g.length,b=!1;if(!y)return this.resolve([]);for(var v=new Array(y),_=0,A=-1,E=new this(i);++A<y;)T(g[A],A);return E;function T(S,C){x.resolve(S).then(function(F){v[C]=F,++_!==y||b||(b=!0,a.resolve(E,v))},function(F){b||(b=!0,a.reject(E,F))})}},u.race=function(g){var x=this;if(Object.prototype.toString.call(g)!=="[object Array]")return this.reject(new TypeError("must be an array"));var y=g.length,b=!1;if(!y)return this.resolve([]);for(var v=-1,_=new this(i);++v<y;)A=g[v],x.resolve(A).then(function(E){b||(b=!0,a.resolve(_,E))},function(E){b||(b=!0,a.reject(_,E))});var A;return _}},{immediate:36}],38:[function(r,e,t){"use strict";var n={};(0,r("./lib/utils/common").assign)(n,r("./lib/deflate"),r("./lib/inflate"),r("./lib/zlib/constants")),e.exports=n},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(r,e,t){"use strict";var n=r("./zlib/deflate"),i=r("./utils/common"),a=r("./utils/strings"),s=r("./zlib/messages"),o=r("./zlib/zstream"),c=Object.prototype.toString,u=0,h=-1,f=0,d=8;function p(g){if(!(this instanceof p))return new p(g);this.options=i.assign({level:h,method:d,chunkSize:16384,windowBits:15,memLevel:8,strategy:f,to:""},g||{});var x=this.options;x.raw&&0<x.windowBits?x.windowBits=-x.windowBits:x.gzip&&0<x.windowBits&&x.windowBits<16&&(x.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new o,this.strm.avail_out=0;var y=n.deflateInit2(this.strm,x.level,x.method,x.windowBits,x.memLevel,x.strategy);if(y!==u)throw new Error(s[y]);if(x.header&&n.deflateSetHeader(this.strm,x.header),x.dictionary){var b;if(b=typeof x.dictionary=="string"?a.string2buf(x.dictionary):c.call(x.dictionary)==="[object ArrayBuffer]"?new Uint8Array(x.dictionary):x.dictionary,(y=n.deflateSetDictionary(this.strm,b))!==u)throw new Error(s[y]);this._dict_set=!0}}function m(g,x){var y=new p(x);if(y.push(g,!0),y.err)throw y.msg||s[y.err];return y.result}p.prototype.push=function(g,x){var y,b,v=this.strm,_=this.options.chunkSize;if(this.ended)return!1;b=x===~~x?x:x===!0?4:0,typeof g=="string"?v.input=a.string2buf(g):c.call(g)==="[object ArrayBuffer]"?v.input=new Uint8Array(g):v.input=g,v.next_in=0,v.avail_in=v.input.length;do{if(v.avail_out===0&&(v.output=new i.Buf8(_),v.next_out=0,v.avail_out=_),(y=n.deflate(v,b))!==1&&y!==u)return this.onEnd(y),!(this.ended=!0);v.avail_out!==0&&(v.avail_in!==0||b!==4&&b!==2)||(this.options.to==="string"?this.onData(a.buf2binstring(i.shrinkBuf(v.output,v.next_out))):this.onData(i.shrinkBuf(v.output,v.next_out)))}while((0<v.avail_in||v.avail_out===0)&&y!==1);return b===4?(y=n.deflateEnd(this.strm),this.onEnd(y),this.ended=!0,y===u):b!==2||(this.onEnd(u),!(v.avail_out=0))},p.prototype.onData=function(g){this.chunks.push(g)},p.prototype.onEnd=function(g){g===u&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=g,this.msg=this.strm.msg},t.Deflate=p,t.deflate=m,t.deflateRaw=function(g,x){return(x=x||{}).raw=!0,m(g,x)},t.gzip=function(g,x){return(x=x||{}).gzip=!0,m(g,x)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(r,e,t){"use strict";var n=r("./zlib/inflate"),i=r("./utils/common"),a=r("./utils/strings"),s=r("./zlib/constants"),o=r("./zlib/messages"),c=r("./zlib/zstream"),u=r("./zlib/gzheader"),h=Object.prototype.toString;function f(p){if(!(this instanceof f))return new f(p);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},p||{});var m=this.options;m.raw&&0<=m.windowBits&&m.windowBits<16&&(m.windowBits=-m.windowBits,m.windowBits===0&&(m.windowBits=-15)),!(0<=m.windowBits&&m.windowBits<16)||p&&p.windowBits||(m.windowBits+=32),15<m.windowBits&&m.windowBits<48&&(15&m.windowBits)==0&&(m.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new c,this.strm.avail_out=0;var g=n.inflateInit2(this.strm,m.windowBits);if(g!==s.Z_OK)throw new Error(o[g]);this.header=new u,n.inflateGetHeader(this.strm,this.header)}function d(p,m){var g=new f(m);if(g.push(p,!0),g.err)throw g.msg||o[g.err];return g.result}f.prototype.push=function(p,m){var g,x,y,b,v,_,A=this.strm,E=this.options.chunkSize,T=this.options.dictionary,S=!1;if(this.ended)return!1;x=m===~~m?m:m===!0?s.Z_FINISH:s.Z_NO_FLUSH,typeof p=="string"?A.input=a.binstring2buf(p):h.call(p)==="[object ArrayBuffer]"?A.input=new Uint8Array(p):A.input=p,A.next_in=0,A.avail_in=A.input.length;do{if(A.avail_out===0&&(A.output=new i.Buf8(E),A.next_out=0,A.avail_out=E),(g=n.inflate(A,s.Z_NO_FLUSH))===s.Z_NEED_DICT&&T&&(_=typeof T=="string"?a.string2buf(T):h.call(T)==="[object ArrayBuffer]"?new Uint8Array(T):T,g=n.inflateSetDictionary(this.strm,_)),g===s.Z_BUF_ERROR&&S===!0&&(g=s.Z_OK,S=!1),g!==s.Z_STREAM_END&&g!==s.Z_OK)return this.onEnd(g),!(this.ended=!0);A.next_out&&(A.avail_out!==0&&g!==s.Z_STREAM_END&&(A.avail_in!==0||x!==s.Z_FINISH&&x!==s.Z_SYNC_FLUSH)||(this.options.to==="string"?(y=a.utf8border(A.output,A.next_out),b=A.next_out-y,v=a.buf2string(A.output,y),A.next_out=b,A.avail_out=E-b,b&&i.arraySet(A.output,A.output,y,b,0),this.onData(v)):this.onData(i.shrinkBuf(A.output,A.next_out)))),A.avail_in===0&&A.avail_out===0&&(S=!0)}while((0<A.avail_in||A.avail_out===0)&&g!==s.Z_STREAM_END);return g===s.Z_STREAM_END&&(x=s.Z_FINISH),x===s.Z_FINISH?(g=n.inflateEnd(this.strm),this.onEnd(g),this.ended=!0,g===s.Z_OK):x!==s.Z_SYNC_FLUSH||(this.onEnd(s.Z_OK),!(A.avail_out=0))},f.prototype.onData=function(p){this.chunks.push(p)},f.prototype.onEnd=function(p){p===s.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=p,this.msg=this.strm.msg},t.Inflate=f,t.inflate=d,t.inflateRaw=function(p,m){return(m=m||{}).raw=!0,d(p,m)},t.ungzip=d},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(r,e,t){"use strict";var n=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";t.assign=function(s){for(var o=Array.prototype.slice.call(arguments,1);o.length;){var c=o.shift();if(c){if(typeof c!="object")throw new TypeError(c+"must be non-object");for(var u in c)c.hasOwnProperty(u)&&(s[u]=c[u])}}return s},t.shrinkBuf=function(s,o){return s.length===o?s:s.subarray?s.subarray(0,o):(s.length=o,s)};var i={arraySet:function(s,o,c,u,h){if(o.subarray&&s.subarray)s.set(o.subarray(c,c+u),h);else for(var f=0;f<u;f++)s[h+f]=o[c+f]},flattenChunks:function(s){var o,c,u,h,f,d;for(o=u=0,c=s.length;o<c;o++)u+=s[o].length;for(d=new Uint8Array(u),o=h=0,c=s.length;o<c;o++)f=s[o],d.set(f,h),h+=f.length;return d}},a={arraySet:function(s,o,c,u,h){for(var f=0;f<u;f++)s[h+f]=o[c+f]},flattenChunks:function(s){return[].concat.apply([],s)}};t.setTyped=function(s){s?(t.Buf8=Uint8Array,t.Buf16=Uint16Array,t.Buf32=Int32Array,t.assign(t,i)):(t.Buf8=Array,t.Buf16=Array,t.Buf32=Array,t.assign(t,a))},t.setTyped(n)},{}],42:[function(r,e,t){"use strict";var n=r("./common"),i=!0,a=!0;try{String.fromCharCode.apply(null,[0])}catch{i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{a=!1}for(var s=new n.Buf8(256),o=0;o<256;o++)s[o]=252<=o?6:248<=o?5:240<=o?4:224<=o?3:192<=o?2:1;function c(u,h){if(h<65537&&(u.subarray&&a||!u.subarray&&i))return String.fromCharCode.apply(null,n.shrinkBuf(u,h));for(var f="",d=0;d<h;d++)f+=String.fromCharCode(u[d]);return f}s[254]=s[254]=1,t.string2buf=function(u){var h,f,d,p,m,g=u.length,x=0;for(p=0;p<g;p++)(64512&(f=u.charCodeAt(p)))==55296&&p+1<g&&(64512&(d=u.charCodeAt(p+1)))==56320&&(f=65536+(f-55296<<10)+(d-56320),p++),x+=f<128?1:f<2048?2:f<65536?3:4;for(h=new n.Buf8(x),p=m=0;m<x;p++)(64512&(f=u.charCodeAt(p)))==55296&&p+1<g&&(64512&(d=u.charCodeAt(p+1)))==56320&&(f=65536+(f-55296<<10)+(d-56320),p++),f<128?h[m++]=f:(f<2048?h[m++]=192|f>>>6:(f<65536?h[m++]=224|f>>>12:(h[m++]=240|f>>>18,h[m++]=128|f>>>12&63),h[m++]=128|f>>>6&63),h[m++]=128|63&f);return h},t.buf2binstring=function(u){return c(u,u.length)},t.binstring2buf=function(u){for(var h=new n.Buf8(u.length),f=0,d=h.length;f<d;f++)h[f]=u.charCodeAt(f);return h},t.buf2string=function(u,h){var f,d,p,m,g=h||u.length,x=new Array(2*g);for(f=d=0;f<g;)if((p=u[f++])<128)x[d++]=p;else if(4<(m=s[p]))x[d++]=65533,f+=m-1;else{for(p&=m===2?31:m===3?15:7;1<m&&f<g;)p=p<<6|63&u[f++],m--;1<m?x[d++]=65533:p<65536?x[d++]=p:(p-=65536,x[d++]=55296|p>>10&1023,x[d++]=56320|1023&p)}return c(x,d)},t.utf8border=function(u,h){var f;for((h=h||u.length)>u.length&&(h=u.length),f=h-1;0<=f&&(192&u[f])==128;)f--;return f<0||f===0?h:f+s[u[f]]>h?f:h}},{"./common":41}],43:[function(r,e,t){"use strict";e.exports=function(n,i,a,s){for(var o=65535&n|0,c=n>>>16&65535|0,u=0;a!==0;){for(a-=u=2e3<a?2e3:a;c=c+(o=o+i[s++]|0)|0,--u;);o%=65521,c%=65521}return o|c<<16|0}},{}],44:[function(r,e,t){"use strict";e.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(r,e,t){"use strict";var n=(function(){for(var i,a=[],s=0;s<256;s++){i=s;for(var o=0;o<8;o++)i=1&i?3988292384^i>>>1:i>>>1;a[s]=i}return a})();e.exports=function(i,a,s,o){var c=n,u=o+s;i^=-1;for(var h=o;h<u;h++)i=i>>>8^c[255&(i^a[h])];return-1^i}},{}],46:[function(r,e,t){"use strict";var n,i=r("../utils/common"),a=r("./trees"),s=r("./adler32"),o=r("./crc32"),c=r("./messages"),u=0,h=4,f=0,d=-2,p=-1,m=4,g=2,x=8,y=9,b=286,v=30,_=19,A=2*b+1,E=15,T=3,S=258,C=S+T+1,F=42,k=113,D=1,B=2,q=3,j=4;function U(w,Q){return w.msg=c[Q],Q}function O(w){return(w<<1)-(4<w?9:0)}function P(w){for(var Q=w.length;0<=--Q;)w[Q]=0}function R(w){var Q=w.state,ne=Q.pending;ne>w.avail_out&&(ne=w.avail_out),ne!==0&&(i.arraySet(w.output,Q.pending_buf,Q.pending_out,ne,w.next_out),w.next_out+=ne,Q.pending_out+=ne,w.total_out+=ne,w.avail_out-=ne,Q.pending-=ne,Q.pending===0&&(Q.pending_out=0))}function N(w,Q){a._tr_flush_block(w,0<=w.block_start?w.block_start:-1,w.strstart-w.block_start,Q),w.block_start=w.strstart,R(w.strm)}function z(w,Q){w.pending_buf[w.pending++]=Q}function I(w,Q){w.pending_buf[w.pending++]=Q>>>8&255,w.pending_buf[w.pending++]=255&Q}function H(w,Q){var ne,W,L=w.max_chain_length,G=w.strstart,le=w.prev_length,me=w.nice_match,oe=w.strstart>w.w_size-C?w.strstart-(w.w_size-C):0,we=w.window,Te=w.w_mask,te=w.prev,ae=w.strstart+S,xe=we[G+le-1],ye=we[G+le];w.prev_length>=w.good_match&&(L>>=2),me>w.lookahead&&(me=w.lookahead);do if(we[(ne=Q)+le]===ye&&we[ne+le-1]===xe&&we[ne]===we[G]&&we[++ne]===we[G+1]){G+=2,ne++;do;while(we[++G]===we[++ne]&&we[++G]===we[++ne]&&we[++G]===we[++ne]&&we[++G]===we[++ne]&&we[++G]===we[++ne]&&we[++G]===we[++ne]&&we[++G]===we[++ne]&&we[++G]===we[++ne]&&G<ae);if(W=S-(ae-G),G=ae-S,le<W){if(w.match_start=Q,me<=(le=W))break;xe=we[G+le-1],ye=we[G+le]}}while((Q=te[Q&Te])>oe&&--L!=0);return le<=w.lookahead?le:w.lookahead}function Z(w){var Q,ne,W,L,G,le,me,oe,we,Te,te=w.w_size;do{if(L=w.window_size-w.lookahead-w.strstart,w.strstart>=te+(te-C)){for(i.arraySet(w.window,w.window,te,te,0),w.match_start-=te,w.strstart-=te,w.block_start-=te,Q=ne=w.hash_size;W=w.head[--Q],w.head[Q]=te<=W?W-te:0,--ne;);for(Q=ne=te;W=w.prev[--Q],w.prev[Q]=te<=W?W-te:0,--ne;);L+=te}if(w.strm.avail_in===0)break;if(le=w.strm,me=w.window,oe=w.strstart+w.lookahead,we=L,Te=void 0,Te=le.avail_in,we<Te&&(Te=we),ne=Te===0?0:(le.avail_in-=Te,i.arraySet(me,le.input,le.next_in,Te,oe),le.state.wrap===1?le.adler=s(le.adler,me,Te,oe):le.state.wrap===2&&(le.adler=o(le.adler,me,Te,oe)),le.next_in+=Te,le.total_in+=Te,Te),w.lookahead+=ne,w.lookahead+w.insert>=T)for(G=w.strstart-w.insert,w.ins_h=w.window[G],w.ins_h=(w.ins_h<<w.hash_shift^w.window[G+1])&w.hash_mask;w.insert&&(w.ins_h=(w.ins_h<<w.hash_shift^w.window[G+T-1])&w.hash_mask,w.prev[G&w.w_mask]=w.head[w.ins_h],w.head[w.ins_h]=G,G++,w.insert--,!(w.lookahead+w.insert<T)););}while(w.lookahead<C&&w.strm.avail_in!==0)}function re(w,Q){for(var ne,W;;){if(w.lookahead<C){if(Z(w),w.lookahead<C&&Q===u)return D;if(w.lookahead===0)break}if(ne=0,w.lookahead>=T&&(w.ins_h=(w.ins_h<<w.hash_shift^w.window[w.strstart+T-1])&w.hash_mask,ne=w.prev[w.strstart&w.w_mask]=w.head[w.ins_h],w.head[w.ins_h]=w.strstart),ne!==0&&w.strstart-ne<=w.w_size-C&&(w.match_length=H(w,ne)),w.match_length>=T)if(W=a._tr_tally(w,w.strstart-w.match_start,w.match_length-T),w.lookahead-=w.match_length,w.match_length<=w.max_lazy_match&&w.lookahead>=T){for(w.match_length--;w.strstart++,w.ins_h=(w.ins_h<<w.hash_shift^w.window[w.strstart+T-1])&w.hash_mask,ne=w.prev[w.strstart&w.w_mask]=w.head[w.ins_h],w.head[w.ins_h]=w.strstart,--w.match_length!=0;);w.strstart++}else w.strstart+=w.match_length,w.match_length=0,w.ins_h=w.window[w.strstart],w.ins_h=(w.ins_h<<w.hash_shift^w.window[w.strstart+1])&w.hash_mask;else W=a._tr_tally(w,0,w.window[w.strstart]),w.lookahead--,w.strstart++;if(W&&(N(w,!1),w.strm.avail_out===0))return D}return w.insert=w.strstart<T-1?w.strstart:T-1,Q===h?(N(w,!0),w.strm.avail_out===0?q:j):w.last_lit&&(N(w,!1),w.strm.avail_out===0)?D:B}function ee(w,Q){for(var ne,W,L;;){if(w.lookahead<C){if(Z(w),w.lookahead<C&&Q===u)return D;if(w.lookahead===0)break}if(ne=0,w.lookahead>=T&&(w.ins_h=(w.ins_h<<w.hash_shift^w.window[w.strstart+T-1])&w.hash_mask,ne=w.prev[w.strstart&w.w_mask]=w.head[w.ins_h],w.head[w.ins_h]=w.strstart),w.prev_length=w.match_length,w.prev_match=w.match_start,w.match_length=T-1,ne!==0&&w.prev_length<w.max_lazy_match&&w.strstart-ne<=w.w_size-C&&(w.match_length=H(w,ne),w.match_length<=5&&(w.strategy===1||w.match_length===T&&4096<w.strstart-w.match_start)&&(w.match_length=T-1)),w.prev_length>=T&&w.match_length<=w.prev_length){for(L=w.strstart+w.lookahead-T,W=a._tr_tally(w,w.strstart-1-w.prev_match,w.prev_length-T),w.lookahead-=w.prev_length-1,w.prev_length-=2;++w.strstart<=L&&(w.ins_h=(w.ins_h<<w.hash_shift^w.window[w.strstart+T-1])&w.hash_mask,ne=w.prev[w.strstart&w.w_mask]=w.head[w.ins_h],w.head[w.ins_h]=w.strstart),--w.prev_length!=0;);if(w.match_available=0,w.match_length=T-1,w.strstart++,W&&(N(w,!1),w.strm.avail_out===0))return D}else if(w.match_available){if((W=a._tr_tally(w,0,w.window[w.strstart-1]))&&N(w,!1),w.strstart++,w.lookahead--,w.strm.avail_out===0)return D}else w.match_available=1,w.strstart++,w.lookahead--}return w.match_available&&(W=a._tr_tally(w,0,w.window[w.strstart-1]),w.match_available=0),w.insert=w.strstart<T-1?w.strstart:T-1,Q===h?(N(w,!0),w.strm.avail_out===0?q:j):w.last_lit&&(N(w,!1),w.strm.avail_out===0)?D:B}function ie(w,Q,ne,W,L){this.good_length=w,this.max_lazy=Q,this.nice_length=ne,this.max_chain=W,this.func=L}function se(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=x,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(2*A),this.dyn_dtree=new i.Buf16(2*(2*v+1)),this.bl_tree=new i.Buf16(2*(2*_+1)),P(this.dyn_ltree),P(this.dyn_dtree),P(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(E+1),this.heap=new i.Buf16(2*b+1),P(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(2*b+1),P(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function de(w){var Q;return w&&w.state?(w.total_in=w.total_out=0,w.data_type=g,(Q=w.state).pending=0,Q.pending_out=0,Q.wrap<0&&(Q.wrap=-Q.wrap),Q.status=Q.wrap?F:k,w.adler=Q.wrap===2?0:1,Q.last_flush=u,a._tr_init(Q),f):U(w,d)}function ge(w){var Q=de(w);return Q===f&&(function(ne){ne.window_size=2*ne.w_size,P(ne.head),ne.max_lazy_match=n[ne.level].max_lazy,ne.good_match=n[ne.level].good_length,ne.nice_match=n[ne.level].nice_length,ne.max_chain_length=n[ne.level].max_chain,ne.strstart=0,ne.block_start=0,ne.lookahead=0,ne.insert=0,ne.match_length=ne.prev_length=T-1,ne.match_available=0,ne.ins_h=0})(w.state),Q}function _e(w,Q,ne,W,L,G){if(!w)return d;var le=1;if(Q===p&&(Q=6),W<0?(le=0,W=-W):15<W&&(le=2,W-=16),L<1||y<L||ne!==x||W<8||15<W||Q<0||9<Q||G<0||m<G)return U(w,d);W===8&&(W=9);var me=new se;return(w.state=me).strm=w,me.wrap=le,me.gzhead=null,me.w_bits=W,me.w_size=1<<me.w_bits,me.w_mask=me.w_size-1,me.hash_bits=L+7,me.hash_size=1<<me.hash_bits,me.hash_mask=me.hash_size-1,me.hash_shift=~~((me.hash_bits+T-1)/T),me.window=new i.Buf8(2*me.w_size),me.head=new i.Buf16(me.hash_size),me.prev=new i.Buf16(me.w_size),me.lit_bufsize=1<<L+6,me.pending_buf_size=4*me.lit_bufsize,me.pending_buf=new i.Buf8(me.pending_buf_size),me.d_buf=1*me.lit_bufsize,me.l_buf=3*me.lit_bufsize,me.level=Q,me.strategy=G,me.method=ne,ge(w)}n=[new ie(0,0,0,0,function(w,Q){var ne=65535;for(ne>w.pending_buf_size-5&&(ne=w.pending_buf_size-5);;){if(w.lookahead<=1){if(Z(w),w.lookahead===0&&Q===u)return D;if(w.lookahead===0)break}w.strstart+=w.lookahead,w.lookahead=0;var W=w.block_start+ne;if((w.strstart===0||w.strstart>=W)&&(w.lookahead=w.strstart-W,w.strstart=W,N(w,!1),w.strm.avail_out===0)||w.strstart-w.block_start>=w.w_size-C&&(N(w,!1),w.strm.avail_out===0))return D}return w.insert=0,Q===h?(N(w,!0),w.strm.avail_out===0?q:j):(w.strstart>w.block_start&&(N(w,!1),w.strm.avail_out),D)}),new ie(4,4,8,4,re),new ie(4,5,16,8,re),new ie(4,6,32,32,re),new ie(4,4,16,16,ee),new ie(8,16,32,32,ee),new ie(8,16,128,128,ee),new ie(8,32,128,256,ee),new ie(32,128,258,1024,ee),new ie(32,258,258,4096,ee)],t.deflateInit=function(w,Q){return _e(w,Q,x,15,8,0)},t.deflateInit2=_e,t.deflateReset=ge,t.deflateResetKeep=de,t.deflateSetHeader=function(w,Q){return w&&w.state?w.state.wrap!==2?d:(w.state.gzhead=Q,f):d},t.deflate=function(w,Q){var ne,W,L,G;if(!w||!w.state||5<Q||Q<0)return w?U(w,d):d;if(W=w.state,!w.output||!w.input&&w.avail_in!==0||W.status===666&&Q!==h)return U(w,w.avail_out===0?-5:d);if(W.strm=w,ne=W.last_flush,W.last_flush=Q,W.status===F)if(W.wrap===2)w.adler=0,z(W,31),z(W,139),z(W,8),W.gzhead?(z(W,(W.gzhead.text?1:0)+(W.gzhead.hcrc?2:0)+(W.gzhead.extra?4:0)+(W.gzhead.name?8:0)+(W.gzhead.comment?16:0)),z(W,255&W.gzhead.time),z(W,W.gzhead.time>>8&255),z(W,W.gzhead.time>>16&255),z(W,W.gzhead.time>>24&255),z(W,W.level===9?2:2<=W.strategy||W.level<2?4:0),z(W,255&W.gzhead.os),W.gzhead.extra&&W.gzhead.extra.length&&(z(W,255&W.gzhead.extra.length),z(W,W.gzhead.extra.length>>8&255)),W.gzhead.hcrc&&(w.adler=o(w.adler,W.pending_buf,W.pending,0)),W.gzindex=0,W.status=69):(z(W,0),z(W,0),z(W,0),z(W,0),z(W,0),z(W,W.level===9?2:2<=W.strategy||W.level<2?4:0),z(W,3),W.status=k);else{var le=x+(W.w_bits-8<<4)<<8;le|=(2<=W.strategy||W.level<2?0:W.level<6?1:W.level===6?2:3)<<6,W.strstart!==0&&(le|=32),le+=31-le%31,W.status=k,I(W,le),W.strstart!==0&&(I(W,w.adler>>>16),I(W,65535&w.adler)),w.adler=1}if(W.status===69)if(W.gzhead.extra){for(L=W.pending;W.gzindex<(65535&W.gzhead.extra.length)&&(W.pending!==W.pending_buf_size||(W.gzhead.hcrc&&W.pending>L&&(w.adler=o(w.adler,W.pending_buf,W.pending-L,L)),R(w),L=W.pending,W.pending!==W.pending_buf_size));)z(W,255&W.gzhead.extra[W.gzindex]),W.gzindex++;W.gzhead.hcrc&&W.pending>L&&(w.adler=o(w.adler,W.pending_buf,W.pending-L,L)),W.gzindex===W.gzhead.extra.length&&(W.gzindex=0,W.status=73)}else W.status=73;if(W.status===73)if(W.gzhead.name){L=W.pending;do{if(W.pending===W.pending_buf_size&&(W.gzhead.hcrc&&W.pending>L&&(w.adler=o(w.adler,W.pending_buf,W.pending-L,L)),R(w),L=W.pending,W.pending===W.pending_buf_size)){G=1;break}G=W.gzindex<W.gzhead.name.length?255&W.gzhead.name.charCodeAt(W.gzindex++):0,z(W,G)}while(G!==0);W.gzhead.hcrc&&W.pending>L&&(w.adler=o(w.adler,W.pending_buf,W.pending-L,L)),G===0&&(W.gzindex=0,W.status=91)}else W.status=91;if(W.status===91)if(W.gzhead.comment){L=W.pending;do{if(W.pending===W.pending_buf_size&&(W.gzhead.hcrc&&W.pending>L&&(w.adler=o(w.adler,W.pending_buf,W.pending-L,L)),R(w),L=W.pending,W.pending===W.pending_buf_size)){G=1;break}G=W.gzindex<W.gzhead.comment.length?255&W.gzhead.comment.charCodeAt(W.gzindex++):0,z(W,G)}while(G!==0);W.gzhead.hcrc&&W.pending>L&&(w.adler=o(w.adler,W.pending_buf,W.pending-L,L)),G===0&&(W.status=103)}else W.status=103;if(W.status===103&&(W.gzhead.hcrc?(W.pending+2>W.pending_buf_size&&R(w),W.pending+2<=W.pending_buf_size&&(z(W,255&w.adler),z(W,w.adler>>8&255),w.adler=0,W.status=k)):W.status=k),W.pending!==0){if(R(w),w.avail_out===0)return W.last_flush=-1,f}else if(w.avail_in===0&&O(Q)<=O(ne)&&Q!==h)return U(w,-5);if(W.status===666&&w.avail_in!==0)return U(w,-5);if(w.avail_in!==0||W.lookahead!==0||Q!==u&&W.status!==666){var me=W.strategy===2?(function(oe,we){for(var Te;;){if(oe.lookahead===0&&(Z(oe),oe.lookahead===0)){if(we===u)return D;break}if(oe.match_length=0,Te=a._tr_tally(oe,0,oe.window[oe.strstart]),oe.lookahead--,oe.strstart++,Te&&(N(oe,!1),oe.strm.avail_out===0))return D}return oe.insert=0,we===h?(N(oe,!0),oe.strm.avail_out===0?q:j):oe.last_lit&&(N(oe,!1),oe.strm.avail_out===0)?D:B})(W,Q):W.strategy===3?(function(oe,we){for(var Te,te,ae,xe,ye=oe.window;;){if(oe.lookahead<=S){if(Z(oe),oe.lookahead<=S&&we===u)return D;if(oe.lookahead===0)break}if(oe.match_length=0,oe.lookahead>=T&&0<oe.strstart&&(te=ye[ae=oe.strstart-1])===ye[++ae]&&te===ye[++ae]&&te===ye[++ae]){xe=oe.strstart+S;do;while(te===ye[++ae]&&te===ye[++ae]&&te===ye[++ae]&&te===ye[++ae]&&te===ye[++ae]&&te===ye[++ae]&&te===ye[++ae]&&te===ye[++ae]&&ae<xe);oe.match_length=S-(xe-ae),oe.match_length>oe.lookahead&&(oe.match_length=oe.lookahead)}if(oe.match_length>=T?(Te=a._tr_tally(oe,1,oe.match_length-T),oe.lookahead-=oe.match_length,oe.strstart+=oe.match_length,oe.match_length=0):(Te=a._tr_tally(oe,0,oe.window[oe.strstart]),oe.lookahead--,oe.strstart++),Te&&(N(oe,!1),oe.strm.avail_out===0))return D}return oe.insert=0,we===h?(N(oe,!0),oe.strm.avail_out===0?q:j):oe.last_lit&&(N(oe,!1),oe.strm.avail_out===0)?D:B})(W,Q):n[W.level].func(W,Q);if(me!==q&&me!==j||(W.status=666),me===D||me===q)return w.avail_out===0&&(W.last_flush=-1),f;if(me===B&&(Q===1?a._tr_align(W):Q!==5&&(a._tr_stored_block(W,0,0,!1),Q===3&&(P(W.head),W.lookahead===0&&(W.strstart=0,W.block_start=0,W.insert=0))),R(w),w.avail_out===0))return W.last_flush=-1,f}return Q!==h?f:W.wrap<=0?1:(W.wrap===2?(z(W,255&w.adler),z(W,w.adler>>8&255),z(W,w.adler>>16&255),z(W,w.adler>>24&255),z(W,255&w.total_in),z(W,w.total_in>>8&255),z(W,w.total_in>>16&255),z(W,w.total_in>>24&255)):(I(W,w.adler>>>16),I(W,65535&w.adler)),R(w),0<W.wrap&&(W.wrap=-W.wrap),W.pending!==0?f:1)},t.deflateEnd=function(w){var Q;return w&&w.state?(Q=w.state.status)!==F&&Q!==69&&Q!==73&&Q!==91&&Q!==103&&Q!==k&&Q!==666?U(w,d):(w.state=null,Q===k?U(w,-3):f):d},t.deflateSetDictionary=function(w,Q){var ne,W,L,G,le,me,oe,we,Te=Q.length;if(!w||!w.state||(G=(ne=w.state).wrap)===2||G===1&&ne.status!==F||ne.lookahead)return d;for(G===1&&(w.adler=s(w.adler,Q,Te,0)),ne.wrap=0,Te>=ne.w_size&&(G===0&&(P(ne.head),ne.strstart=0,ne.block_start=0,ne.insert=0),we=new i.Buf8(ne.w_size),i.arraySet(we,Q,Te-ne.w_size,ne.w_size,0),Q=we,Te=ne.w_size),le=w.avail_in,me=w.next_in,oe=w.input,w.avail_in=Te,w.next_in=0,w.input=Q,Z(ne);ne.lookahead>=T;){for(W=ne.strstart,L=ne.lookahead-(T-1);ne.ins_h=(ne.ins_h<<ne.hash_shift^ne.window[W+T-1])&ne.hash_mask,ne.prev[W&ne.w_mask]=ne.head[ne.ins_h],ne.head[ne.ins_h]=W,W++,--L;);ne.strstart=W,ne.lookahead=T-1,Z(ne)}return ne.strstart+=ne.lookahead,ne.block_start=ne.strstart,ne.insert=ne.lookahead,ne.lookahead=0,ne.match_length=ne.prev_length=T-1,ne.match_available=0,w.next_in=me,w.input=oe,w.avail_in=le,ne.wrap=G,f},t.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(r,e,t){"use strict";e.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(r,e,t){"use strict";e.exports=function(n,i){var a,s,o,c,u,h,f,d,p,m,g,x,y,b,v,_,A,E,T,S,C,F,k,D,B;a=n.state,s=n.next_in,D=n.input,o=s+(n.avail_in-5),c=n.next_out,B=n.output,u=c-(i-n.avail_out),h=c+(n.avail_out-257),f=a.dmax,d=a.wsize,p=a.whave,m=a.wnext,g=a.window,x=a.hold,y=a.bits,b=a.lencode,v=a.distcode,_=(1<<a.lenbits)-1,A=(1<<a.distbits)-1;e:do{y<15&&(x+=D[s++]<<y,y+=8,x+=D[s++]<<y,y+=8),E=b[x&_];t:for(;;){if(x>>>=T=E>>>24,y-=T,(T=E>>>16&255)===0)B[c++]=65535&E;else{if(!(16&T)){if((64&T)==0){E=b[(65535&E)+(x&(1<<T)-1)];continue t}if(32&T){a.mode=12;break e}n.msg="invalid literal/length code",a.mode=30;break e}S=65535&E,(T&=15)&&(y<T&&(x+=D[s++]<<y,y+=8),S+=x&(1<<T)-1,x>>>=T,y-=T),y<15&&(x+=D[s++]<<y,y+=8,x+=D[s++]<<y,y+=8),E=v[x&A];r:for(;;){if(x>>>=T=E>>>24,y-=T,!(16&(T=E>>>16&255))){if((64&T)==0){E=v[(65535&E)+(x&(1<<T)-1)];continue r}n.msg="invalid distance code",a.mode=30;break e}if(C=65535&E,y<(T&=15)&&(x+=D[s++]<<y,(y+=8)<T&&(x+=D[s++]<<y,y+=8)),f<(C+=x&(1<<T)-1)){n.msg="invalid distance too far back",a.mode=30;break e}if(x>>>=T,y-=T,(T=c-u)<C){if(p<(T=C-T)&&a.sane){n.msg="invalid distance too far back",a.mode=30;break e}if(k=g,(F=0)===m){if(F+=d-T,T<S){for(S-=T;B[c++]=g[F++],--T;);F=c-C,k=B}}else if(m<T){if(F+=d+m-T,(T-=m)<S){for(S-=T;B[c++]=g[F++],--T;);if(F=0,m<S){for(S-=T=m;B[c++]=g[F++],--T;);F=c-C,k=B}}}else if(F+=m-T,T<S){for(S-=T;B[c++]=g[F++],--T;);F=c-C,k=B}for(;2<S;)B[c++]=k[F++],B[c++]=k[F++],B[c++]=k[F++],S-=3;S&&(B[c++]=k[F++],1<S&&(B[c++]=k[F++]))}else{for(F=c-C;B[c++]=B[F++],B[c++]=B[F++],B[c++]=B[F++],2<(S-=3););S&&(B[c++]=B[F++],1<S&&(B[c++]=B[F++]))}break}}break}}while(s<o&&c<h);s-=S=y>>3,x&=(1<<(y-=S<<3))-1,n.next_in=s,n.next_out=c,n.avail_in=s<o?o-s+5:5-(s-o),n.avail_out=c<h?h-c+257:257-(c-h),a.hold=x,a.bits=y}},{}],49:[function(r,e,t){"use strict";var n=r("../utils/common"),i=r("./adler32"),a=r("./crc32"),s=r("./inffast"),o=r("./inftrees"),c=1,u=2,h=0,f=-2,d=1,p=852,m=592;function g(F){return(F>>>24&255)+(F>>>8&65280)+((65280&F)<<8)+((255&F)<<24)}function x(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function y(F){var k;return F&&F.state?(k=F.state,F.total_in=F.total_out=k.total=0,F.msg="",k.wrap&&(F.adler=1&k.wrap),k.mode=d,k.last=0,k.havedict=0,k.dmax=32768,k.head=null,k.hold=0,k.bits=0,k.lencode=k.lendyn=new n.Buf32(p),k.distcode=k.distdyn=new n.Buf32(m),k.sane=1,k.back=-1,h):f}function b(F){var k;return F&&F.state?((k=F.state).wsize=0,k.whave=0,k.wnext=0,y(F)):f}function v(F,k){var D,B;return F&&F.state?(B=F.state,k<0?(D=0,k=-k):(D=1+(k>>4),k<48&&(k&=15)),k&&(k<8||15<k)?f:(B.window!==null&&B.wbits!==k&&(B.window=null),B.wrap=D,B.wbits=k,b(F))):f}function _(F,k){var D,B;return F?(B=new x,(F.state=B).window=null,(D=v(F,k))!==h&&(F.state=null),D):f}var A,E,T=!0;function S(F){if(T){var k;for(A=new n.Buf32(512),E=new n.Buf32(32),k=0;k<144;)F.lens[k++]=8;for(;k<256;)F.lens[k++]=9;for(;k<280;)F.lens[k++]=7;for(;k<288;)F.lens[k++]=8;for(o(c,F.lens,0,288,A,0,F.work,{bits:9}),k=0;k<32;)F.lens[k++]=5;o(u,F.lens,0,32,E,0,F.work,{bits:5}),T=!1}F.lencode=A,F.lenbits=9,F.distcode=E,F.distbits=5}function C(F,k,D,B){var q,j=F.state;return j.window===null&&(j.wsize=1<<j.wbits,j.wnext=0,j.whave=0,j.window=new n.Buf8(j.wsize)),B>=j.wsize?(n.arraySet(j.window,k,D-j.wsize,j.wsize,0),j.wnext=0,j.whave=j.wsize):(B<(q=j.wsize-j.wnext)&&(q=B),n.arraySet(j.window,k,D-B,q,j.wnext),(B-=q)?(n.arraySet(j.window,k,D-B,B,0),j.wnext=B,j.whave=j.wsize):(j.wnext+=q,j.wnext===j.wsize&&(j.wnext=0),j.whave<j.wsize&&(j.whave+=q))),0}t.inflateReset=b,t.inflateReset2=v,t.inflateResetKeep=y,t.inflateInit=function(F){return _(F,15)},t.inflateInit2=_,t.inflate=function(F,k){var D,B,q,j,U,O,P,R,N,z,I,H,Z,re,ee,ie,se,de,ge,_e,w,Q,ne,W,L=0,G=new n.Buf8(4),le=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!F||!F.state||!F.output||!F.input&&F.avail_in!==0)return f;(D=F.state).mode===12&&(D.mode=13),U=F.next_out,q=F.output,P=F.avail_out,j=F.next_in,B=F.input,O=F.avail_in,R=D.hold,N=D.bits,z=O,I=P,Q=h;e:for(;;)switch(D.mode){case d:if(D.wrap===0){D.mode=13;break}for(;N<16;){if(O===0)break e;O--,R+=B[j++]<<N,N+=8}if(2&D.wrap&&R===35615){G[D.check=0]=255&R,G[1]=R>>>8&255,D.check=a(D.check,G,2,0),N=R=0,D.mode=2;break}if(D.flags=0,D.head&&(D.head.done=!1),!(1&D.wrap)||(((255&R)<<8)+(R>>8))%31){F.msg="incorrect header check",D.mode=30;break}if((15&R)!=8){F.msg="unknown compression method",D.mode=30;break}if(N-=4,w=8+(15&(R>>>=4)),D.wbits===0)D.wbits=w;else if(w>D.wbits){F.msg="invalid window size",D.mode=30;break}D.dmax=1<<w,F.adler=D.check=1,D.mode=512&R?10:12,N=R=0;break;case 2:for(;N<16;){if(O===0)break e;O--,R+=B[j++]<<N,N+=8}if(D.flags=R,(255&D.flags)!=8){F.msg="unknown compression method",D.mode=30;break}if(57344&D.flags){F.msg="unknown header flags set",D.mode=30;break}D.head&&(D.head.text=R>>8&1),512&D.flags&&(G[0]=255&R,G[1]=R>>>8&255,D.check=a(D.check,G,2,0)),N=R=0,D.mode=3;case 3:for(;N<32;){if(O===0)break e;O--,R+=B[j++]<<N,N+=8}D.head&&(D.head.time=R),512&D.flags&&(G[0]=255&R,G[1]=R>>>8&255,G[2]=R>>>16&255,G[3]=R>>>24&255,D.check=a(D.check,G,4,0)),N=R=0,D.mode=4;case 4:for(;N<16;){if(O===0)break e;O--,R+=B[j++]<<N,N+=8}D.head&&(D.head.xflags=255&R,D.head.os=R>>8),512&D.flags&&(G[0]=255&R,G[1]=R>>>8&255,D.check=a(D.check,G,2,0)),N=R=0,D.mode=5;case 5:if(1024&D.flags){for(;N<16;){if(O===0)break e;O--,R+=B[j++]<<N,N+=8}D.length=R,D.head&&(D.head.extra_len=R),512&D.flags&&(G[0]=255&R,G[1]=R>>>8&255,D.check=a(D.check,G,2,0)),N=R=0}else D.head&&(D.head.extra=null);D.mode=6;case 6:if(1024&D.flags&&(O<(H=D.length)&&(H=O),H&&(D.head&&(w=D.head.extra_len-D.length,D.head.extra||(D.head.extra=new Array(D.head.extra_len)),n.arraySet(D.head.extra,B,j,H,w)),512&D.flags&&(D.check=a(D.check,B,H,j)),O-=H,j+=H,D.length-=H),D.length))break e;D.length=0,D.mode=7;case 7:if(2048&D.flags){if(O===0)break e;for(H=0;w=B[j+H++],D.head&&w&&D.length<65536&&(D.head.name+=String.fromCharCode(w)),w&&H<O;);if(512&D.flags&&(D.check=a(D.check,B,H,j)),O-=H,j+=H,w)break e}else D.head&&(D.head.name=null);D.length=0,D.mode=8;case 8:if(4096&D.flags){if(O===0)break e;for(H=0;w=B[j+H++],D.head&&w&&D.length<65536&&(D.head.comment+=String.fromCharCode(w)),w&&H<O;);if(512&D.flags&&(D.check=a(D.check,B,H,j)),O-=H,j+=H,w)break e}else D.head&&(D.head.comment=null);D.mode=9;case 9:if(512&D.flags){for(;N<16;){if(O===0)break e;O--,R+=B[j++]<<N,N+=8}if(R!==(65535&D.check)){F.msg="header crc mismatch",D.mode=30;break}N=R=0}D.head&&(D.head.hcrc=D.flags>>9&1,D.head.done=!0),F.adler=D.check=0,D.mode=12;break;case 10:for(;N<32;){if(O===0)break e;O--,R+=B[j++]<<N,N+=8}F.adler=D.check=g(R),N=R=0,D.mode=11;case 11:if(D.havedict===0)return F.next_out=U,F.avail_out=P,F.next_in=j,F.avail_in=O,D.hold=R,D.bits=N,2;F.adler=D.check=1,D.mode=12;case 12:if(k===5||k===6)break e;case 13:if(D.last){R>>>=7&N,N-=7&N,D.mode=27;break}for(;N<3;){if(O===0)break e;O--,R+=B[j++]<<N,N+=8}switch(D.last=1&R,N-=1,3&(R>>>=1)){case 0:D.mode=14;break;case 1:if(S(D),D.mode=20,k!==6)break;R>>>=2,N-=2;break e;case 2:D.mode=17;break;case 3:F.msg="invalid block type",D.mode=30}R>>>=2,N-=2;break;case 14:for(R>>>=7&N,N-=7&N;N<32;){if(O===0)break e;O--,R+=B[j++]<<N,N+=8}if((65535&R)!=(R>>>16^65535)){F.msg="invalid stored block lengths",D.mode=30;break}if(D.length=65535&R,N=R=0,D.mode=15,k===6)break e;case 15:D.mode=16;case 16:if(H=D.length){if(O<H&&(H=O),P<H&&(H=P),H===0)break e;n.arraySet(q,B,j,H,U),O-=H,j+=H,P-=H,U+=H,D.length-=H;break}D.mode=12;break;case 17:for(;N<14;){if(O===0)break e;O--,R+=B[j++]<<N,N+=8}if(D.nlen=257+(31&R),R>>>=5,N-=5,D.ndist=1+(31&R),R>>>=5,N-=5,D.ncode=4+(15&R),R>>>=4,N-=4,286<D.nlen||30<D.ndist){F.msg="too many length or distance symbols",D.mode=30;break}D.have=0,D.mode=18;case 18:for(;D.have<D.ncode;){for(;N<3;){if(O===0)break e;O--,R+=B[j++]<<N,N+=8}D.lens[le[D.have++]]=7&R,R>>>=3,N-=3}for(;D.have<19;)D.lens[le[D.have++]]=0;if(D.lencode=D.lendyn,D.lenbits=7,ne={bits:D.lenbits},Q=o(0,D.lens,0,19,D.lencode,0,D.work,ne),D.lenbits=ne.bits,Q){F.msg="invalid code lengths set",D.mode=30;break}D.have=0,D.mode=19;case 19:for(;D.have<D.nlen+D.ndist;){for(;ie=(L=D.lencode[R&(1<<D.lenbits)-1])>>>16&255,se=65535&L,!((ee=L>>>24)<=N);){if(O===0)break e;O--,R+=B[j++]<<N,N+=8}if(se<16)R>>>=ee,N-=ee,D.lens[D.have++]=se;else{if(se===16){for(W=ee+2;N<W;){if(O===0)break e;O--,R+=B[j++]<<N,N+=8}if(R>>>=ee,N-=ee,D.have===0){F.msg="invalid bit length repeat",D.mode=30;break}w=D.lens[D.have-1],H=3+(3&R),R>>>=2,N-=2}else if(se===17){for(W=ee+3;N<W;){if(O===0)break e;O--,R+=B[j++]<<N,N+=8}N-=ee,w=0,H=3+(7&(R>>>=ee)),R>>>=3,N-=3}else{for(W=ee+7;N<W;){if(O===0)break e;O--,R+=B[j++]<<N,N+=8}N-=ee,w=0,H=11+(127&(R>>>=ee)),R>>>=7,N-=7}if(D.have+H>D.nlen+D.ndist){F.msg="invalid bit length repeat",D.mode=30;break}for(;H--;)D.lens[D.have++]=w}}if(D.mode===30)break;if(D.lens[256]===0){F.msg="invalid code -- missing end-of-block",D.mode=30;break}if(D.lenbits=9,ne={bits:D.lenbits},Q=o(c,D.lens,0,D.nlen,D.lencode,0,D.work,ne),D.lenbits=ne.bits,Q){F.msg="invalid literal/lengths set",D.mode=30;break}if(D.distbits=6,D.distcode=D.distdyn,ne={bits:D.distbits},Q=o(u,D.lens,D.nlen,D.ndist,D.distcode,0,D.work,ne),D.distbits=ne.bits,Q){F.msg="invalid distances set",D.mode=30;break}if(D.mode=20,k===6)break e;case 20:D.mode=21;case 21:if(6<=O&&258<=P){F.next_out=U,F.avail_out=P,F.next_in=j,F.avail_in=O,D.hold=R,D.bits=N,s(F,I),U=F.next_out,q=F.output,P=F.avail_out,j=F.next_in,B=F.input,O=F.avail_in,R=D.hold,N=D.bits,D.mode===12&&(D.back=-1);break}for(D.back=0;ie=(L=D.lencode[R&(1<<D.lenbits)-1])>>>16&255,se=65535&L,!((ee=L>>>24)<=N);){if(O===0)break e;O--,R+=B[j++]<<N,N+=8}if(ie&&(240&ie)==0){for(de=ee,ge=ie,_e=se;ie=(L=D.lencode[_e+((R&(1<<de+ge)-1)>>de)])>>>16&255,se=65535&L,!(de+(ee=L>>>24)<=N);){if(O===0)break e;O--,R+=B[j++]<<N,N+=8}R>>>=de,N-=de,D.back+=de}if(R>>>=ee,N-=ee,D.back+=ee,D.length=se,ie===0){D.mode=26;break}if(32&ie){D.back=-1,D.mode=12;break}if(64&ie){F.msg="invalid literal/length code",D.mode=30;break}D.extra=15&ie,D.mode=22;case 22:if(D.extra){for(W=D.extra;N<W;){if(O===0)break e;O--,R+=B[j++]<<N,N+=8}D.length+=R&(1<<D.extra)-1,R>>>=D.extra,N-=D.extra,D.back+=D.extra}D.was=D.length,D.mode=23;case 23:for(;ie=(L=D.distcode[R&(1<<D.distbits)-1])>>>16&255,se=65535&L,!((ee=L>>>24)<=N);){if(O===0)break e;O--,R+=B[j++]<<N,N+=8}if((240&ie)==0){for(de=ee,ge=ie,_e=se;ie=(L=D.distcode[_e+((R&(1<<de+ge)-1)>>de)])>>>16&255,se=65535&L,!(de+(ee=L>>>24)<=N);){if(O===0)break e;O--,R+=B[j++]<<N,N+=8}R>>>=de,N-=de,D.back+=de}if(R>>>=ee,N-=ee,D.back+=ee,64&ie){F.msg="invalid distance code",D.mode=30;break}D.offset=se,D.extra=15&ie,D.mode=24;case 24:if(D.extra){for(W=D.extra;N<W;){if(O===0)break e;O--,R+=B[j++]<<N,N+=8}D.offset+=R&(1<<D.extra)-1,R>>>=D.extra,N-=D.extra,D.back+=D.extra}if(D.offset>D.dmax){F.msg="invalid distance too far back",D.mode=30;break}D.mode=25;case 25:if(P===0)break e;if(H=I-P,D.offset>H){if((H=D.offset-H)>D.whave&&D.sane){F.msg="invalid distance too far back",D.mode=30;break}Z=H>D.wnext?(H-=D.wnext,D.wsize-H):D.wnext-H,H>D.length&&(H=D.length),re=D.window}else re=q,Z=U-D.offset,H=D.length;for(P<H&&(H=P),P-=H,D.length-=H;q[U++]=re[Z++],--H;);D.length===0&&(D.mode=21);break;case 26:if(P===0)break e;q[U++]=D.length,P--,D.mode=21;break;case 27:if(D.wrap){for(;N<32;){if(O===0)break e;O--,R|=B[j++]<<N,N+=8}if(I-=P,F.total_out+=I,D.total+=I,I&&(F.adler=D.check=D.flags?a(D.check,q,I,U-I):i(D.check,q,I,U-I)),I=P,(D.flags?R:g(R))!==D.check){F.msg="incorrect data check",D.mode=30;break}N=R=0}D.mode=28;case 28:if(D.wrap&&D.flags){for(;N<32;){if(O===0)break e;O--,R+=B[j++]<<N,N+=8}if(R!==(4294967295&D.total)){F.msg="incorrect length check",D.mode=30;break}N=R=0}D.mode=29;case 29:Q=1;break e;case 30:Q=-3;break e;case 31:return-4;default:return f}return F.next_out=U,F.avail_out=P,F.next_in=j,F.avail_in=O,D.hold=R,D.bits=N,(D.wsize||I!==F.avail_out&&D.mode<30&&(D.mode<27||k!==4))&&C(F,F.output,F.next_out,I-F.avail_out)?(D.mode=31,-4):(z-=F.avail_in,I-=F.avail_out,F.total_in+=z,F.total_out+=I,D.total+=I,D.wrap&&I&&(F.adler=D.check=D.flags?a(D.check,q,I,F.next_out-I):i(D.check,q,I,F.next_out-I)),F.data_type=D.bits+(D.last?64:0)+(D.mode===12?128:0)+(D.mode===20||D.mode===15?256:0),(z==0&&I===0||k===4)&&Q===h&&(Q=-5),Q)},t.inflateEnd=function(F){if(!F||!F.state)return f;var k=F.state;return k.window&&(k.window=null),F.state=null,h},t.inflateGetHeader=function(F,k){var D;return F&&F.state?(2&(D=F.state).wrap)==0?f:((D.head=k).done=!1,h):f},t.inflateSetDictionary=function(F,k){var D,B=k.length;return F&&F.state?(D=F.state).wrap!==0&&D.mode!==11?f:D.mode===11&&i(1,k,B,0)!==D.check?-3:C(F,k,B,B)?(D.mode=31,-4):(D.havedict=1,h):f},t.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(r,e,t){"use strict";var n=r("../utils/common"),i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],a=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],s=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],o=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];e.exports=function(c,u,h,f,d,p,m,g){var x,y,b,v,_,A,E,T,S,C=g.bits,F=0,k=0,D=0,B=0,q=0,j=0,U=0,O=0,P=0,R=0,N=null,z=0,I=new n.Buf16(16),H=new n.Buf16(16),Z=null,re=0;for(F=0;F<=15;F++)I[F]=0;for(k=0;k<f;k++)I[u[h+k]]++;for(q=C,B=15;1<=B&&I[B]===0;B--);if(B<q&&(q=B),B===0)return d[p++]=20971520,d[p++]=20971520,g.bits=1,0;for(D=1;D<B&&I[D]===0;D++);for(q<D&&(q=D),F=O=1;F<=15;F++)if(O<<=1,(O-=I[F])<0)return-1;if(0<O&&(c===0||B!==1))return-1;for(H[1]=0,F=1;F<15;F++)H[F+1]=H[F]+I[F];for(k=0;k<f;k++)u[h+k]!==0&&(m[H[u[h+k]]++]=k);if(A=c===0?(N=Z=m,19):c===1?(N=i,z-=257,Z=a,re-=257,256):(N=s,Z=o,-1),F=D,_=p,U=k=R=0,b=-1,v=(P=1<<(j=q))-1,c===1&&852<P||c===2&&592<P)return 1;for(;;){for(E=F-U,S=m[k]<A?(T=0,m[k]):m[k]>A?(T=Z[re+m[k]],N[z+m[k]]):(T=96,0),x=1<<F-U,D=y=1<<j;d[_+(R>>U)+(y-=x)]=E<<24|T<<16|S|0,y!==0;);for(x=1<<F-1;R&x;)x>>=1;if(x!==0?(R&=x-1,R+=x):R=0,k++,--I[F]==0){if(F===B)break;F=u[h+m[k]]}if(q<F&&(R&v)!==b){for(U===0&&(U=q),_+=D,O=1<<(j=F-U);j+U<B&&!((O-=I[j+U])<=0);)j++,O<<=1;if(P+=1<<j,c===1&&852<P||c===2&&592<P)return 1;d[b=R&v]=q<<24|j<<16|_-p|0}}return R!==0&&(d[_+R]=F-U<<24|64<<16|0),g.bits=q,0}},{"../utils/common":41}],51:[function(r,e,t){"use strict";e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(r,e,t){"use strict";var n=r("../utils/common"),i=0,a=1;function s(L){for(var G=L.length;0<=--G;)L[G]=0}var o=0,c=29,u=256,h=u+1+c,f=30,d=19,p=2*h+1,m=15,g=16,x=7,y=256,b=16,v=17,_=18,A=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],E=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],T=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],S=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],C=new Array(2*(h+2));s(C);var F=new Array(2*f);s(F);var k=new Array(512);s(k);var D=new Array(256);s(D);var B=new Array(c);s(B);var q,j,U,O=new Array(f);function P(L,G,le,me,oe){this.static_tree=L,this.extra_bits=G,this.extra_base=le,this.elems=me,this.max_length=oe,this.has_stree=L&&L.length}function R(L,G){this.dyn_tree=L,this.max_code=0,this.stat_desc=G}function N(L){return L<256?k[L]:k[256+(L>>>7)]}function z(L,G){L.pending_buf[L.pending++]=255&G,L.pending_buf[L.pending++]=G>>>8&255}function I(L,G,le){L.bi_valid>g-le?(L.bi_buf|=G<<L.bi_valid&65535,z(L,L.bi_buf),L.bi_buf=G>>g-L.bi_valid,L.bi_valid+=le-g):(L.bi_buf|=G<<L.bi_valid&65535,L.bi_valid+=le)}function H(L,G,le){I(L,le[2*G],le[2*G+1])}function Z(L,G){for(var le=0;le|=1&L,L>>>=1,le<<=1,0<--G;);return le>>>1}function re(L,G,le){var me,oe,we=new Array(m+1),Te=0;for(me=1;me<=m;me++)we[me]=Te=Te+le[me-1]<<1;for(oe=0;oe<=G;oe++){var te=L[2*oe+1];te!==0&&(L[2*oe]=Z(we[te]++,te))}}function ee(L){var G;for(G=0;G<h;G++)L.dyn_ltree[2*G]=0;for(G=0;G<f;G++)L.dyn_dtree[2*G]=0;for(G=0;G<d;G++)L.bl_tree[2*G]=0;L.dyn_ltree[2*y]=1,L.opt_len=L.static_len=0,L.last_lit=L.matches=0}function ie(L){8<L.bi_valid?z(L,L.bi_buf):0<L.bi_valid&&(L.pending_buf[L.pending++]=L.bi_buf),L.bi_buf=0,L.bi_valid=0}function se(L,G,le,me){var oe=2*G,we=2*le;return L[oe]<L[we]||L[oe]===L[we]&&me[G]<=me[le]}function de(L,G,le){for(var me=L.heap[le],oe=le<<1;oe<=L.heap_len&&(oe<L.heap_len&&se(G,L.heap[oe+1],L.heap[oe],L.depth)&&oe++,!se(G,me,L.heap[oe],L.depth));)L.heap[le]=L.heap[oe],le=oe,oe<<=1;L.heap[le]=me}function ge(L,G,le){var me,oe,we,Te,te=0;if(L.last_lit!==0)for(;me=L.pending_buf[L.d_buf+2*te]<<8|L.pending_buf[L.d_buf+2*te+1],oe=L.pending_buf[L.l_buf+te],te++,me===0?H(L,oe,G):(H(L,(we=D[oe])+u+1,G),(Te=A[we])!==0&&I(L,oe-=B[we],Te),H(L,we=N(--me),le),(Te=E[we])!==0&&I(L,me-=O[we],Te)),te<L.last_lit;);H(L,y,G)}function _e(L,G){var le,me,oe,we=G.dyn_tree,Te=G.stat_desc.static_tree,te=G.stat_desc.has_stree,ae=G.stat_desc.elems,xe=-1;for(L.heap_len=0,L.heap_max=p,le=0;le<ae;le++)we[2*le]!==0?(L.heap[++L.heap_len]=xe=le,L.depth[le]=0):we[2*le+1]=0;for(;L.heap_len<2;)we[2*(oe=L.heap[++L.heap_len]=xe<2?++xe:0)]=1,L.depth[oe]=0,L.opt_len--,te&&(L.static_len-=Te[2*oe+1]);for(G.max_code=xe,le=L.heap_len>>1;1<=le;le--)de(L,we,le);for(oe=ae;le=L.heap[1],L.heap[1]=L.heap[L.heap_len--],de(L,we,1),me=L.heap[1],L.heap[--L.heap_max]=le,L.heap[--L.heap_max]=me,we[2*oe]=we[2*le]+we[2*me],L.depth[oe]=(L.depth[le]>=L.depth[me]?L.depth[le]:L.depth[me])+1,we[2*le+1]=we[2*me+1]=oe,L.heap[1]=oe++,de(L,we,1),2<=L.heap_len;);L.heap[--L.heap_max]=L.heap[1],(function(ye,ke){var Le,Be,Ae,Ue,Xe,et,ft=ke.dyn_tree,Hi=ke.max_code,$s=ke.stat_desc.static_tree,Vf=ke.stat_desc.has_stree,gl=ke.stat_desc.extra_bits,qs=ke.stat_desc.extra_base,di=ke.stat_desc.max_length,Oa=0;for(Ue=0;Ue<=m;Ue++)ye.bl_count[Ue]=0;for(ft[2*ye.heap[ye.heap_max]+1]=0,Le=ye.heap_max+1;Le<p;Le++)di<(Ue=ft[2*ft[2*(Be=ye.heap[Le])+1]+1]+1)&&(Ue=di,Oa++),ft[2*Be+1]=Ue,Hi<Be||(ye.bl_count[Ue]++,Xe=0,qs<=Be&&(Xe=gl[Be-qs]),et=ft[2*Be],ye.opt_len+=et*(Ue+Xe),Vf&&(ye.static_len+=et*($s[2*Be+1]+Xe)));if(Oa!==0){do{for(Ue=di-1;ye.bl_count[Ue]===0;)Ue--;ye.bl_count[Ue]--,ye.bl_count[Ue+1]+=2,ye.bl_count[di]--,Oa-=2}while(0<Oa);for(Ue=di;Ue!==0;Ue--)for(Be=ye.bl_count[Ue];Be!==0;)Hi<(Ae=ye.heap[--Le])||(ft[2*Ae+1]!==Ue&&(ye.opt_len+=(Ue-ft[2*Ae+1])*ft[2*Ae],ft[2*Ae+1]=Ue),Be--)}})(L,G),re(we,xe,L.bl_count)}function w(L,G,le){var me,oe,we=-1,Te=G[1],te=0,ae=7,xe=4;for(Te===0&&(ae=138,xe=3),G[2*(le+1)+1]=65535,me=0;me<=le;me++)oe=Te,Te=G[2*(me+1)+1],++te<ae&&oe===Te||(te<xe?L.bl_tree[2*oe]+=te:oe!==0?(oe!==we&&L.bl_tree[2*oe]++,L.bl_tree[2*b]++):te<=10?L.bl_tree[2*v]++:L.bl_tree[2*_]++,we=oe,xe=(te=0)===Te?(ae=138,3):oe===Te?(ae=6,3):(ae=7,4))}function Q(L,G,le){var me,oe,we=-1,Te=G[1],te=0,ae=7,xe=4;for(Te===0&&(ae=138,xe=3),me=0;me<=le;me++)if(oe=Te,Te=G[2*(me+1)+1],!(++te<ae&&oe===Te)){if(te<xe)for(;H(L,oe,L.bl_tree),--te!=0;);else oe!==0?(oe!==we&&(H(L,oe,L.bl_tree),te--),H(L,b,L.bl_tree),I(L,te-3,2)):te<=10?(H(L,v,L.bl_tree),I(L,te-3,3)):(H(L,_,L.bl_tree),I(L,te-11,7));we=oe,xe=(te=0)===Te?(ae=138,3):oe===Te?(ae=6,3):(ae=7,4)}}s(O);var ne=!1;function W(L,G,le,me){I(L,(o<<1)+(me?1:0),3),(function(oe,we,Te,te){ie(oe),te&&(z(oe,Te),z(oe,~Te)),n.arraySet(oe.pending_buf,oe.window,we,Te,oe.pending),oe.pending+=Te})(L,G,le,!0)}t._tr_init=function(L){ne||((function(){var G,le,me,oe,we,Te=new Array(m+1);for(oe=me=0;oe<c-1;oe++)for(B[oe]=me,G=0;G<1<<A[oe];G++)D[me++]=oe;for(D[me-1]=oe,oe=we=0;oe<16;oe++)for(O[oe]=we,G=0;G<1<<E[oe];G++)k[we++]=oe;for(we>>=7;oe<f;oe++)for(O[oe]=we<<7,G=0;G<1<<E[oe]-7;G++)k[256+we++]=oe;for(le=0;le<=m;le++)Te[le]=0;for(G=0;G<=143;)C[2*G+1]=8,G++,Te[8]++;for(;G<=255;)C[2*G+1]=9,G++,Te[9]++;for(;G<=279;)C[2*G+1]=7,G++,Te[7]++;for(;G<=287;)C[2*G+1]=8,G++,Te[8]++;for(re(C,h+1,Te),G=0;G<f;G++)F[2*G+1]=5,F[2*G]=Z(G,5);q=new P(C,A,u+1,h,m),j=new P(F,E,0,f,m),U=new P(new Array(0),T,0,d,x)})(),ne=!0),L.l_desc=new R(L.dyn_ltree,q),L.d_desc=new R(L.dyn_dtree,j),L.bl_desc=new R(L.bl_tree,U),L.bi_buf=0,L.bi_valid=0,ee(L)},t._tr_stored_block=W,t._tr_flush_block=function(L,G,le,me){var oe,we,Te=0;0<L.level?(L.strm.data_type===2&&(L.strm.data_type=(function(te){var ae,xe=4093624447;for(ae=0;ae<=31;ae++,xe>>>=1)if(1&xe&&te.dyn_ltree[2*ae]!==0)return i;if(te.dyn_ltree[18]!==0||te.dyn_ltree[20]!==0||te.dyn_ltree[26]!==0)return a;for(ae=32;ae<u;ae++)if(te.dyn_ltree[2*ae]!==0)return a;return i})(L)),_e(L,L.l_desc),_e(L,L.d_desc),Te=(function(te){var ae;for(w(te,te.dyn_ltree,te.l_desc.max_code),w(te,te.dyn_dtree,te.d_desc.max_code),_e(te,te.bl_desc),ae=d-1;3<=ae&&te.bl_tree[2*S[ae]+1]===0;ae--);return te.opt_len+=3*(ae+1)+5+5+4,ae})(L),oe=L.opt_len+3+7>>>3,(we=L.static_len+3+7>>>3)<=oe&&(oe=we)):oe=we=le+5,le+4<=oe&&G!==-1?W(L,G,le,me):L.strategy===4||we===oe?(I(L,2+(me?1:0),3),ge(L,C,F)):(I(L,4+(me?1:0),3),(function(te,ae,xe,ye){var ke;for(I(te,ae-257,5),I(te,xe-1,5),I(te,ye-4,4),ke=0;ke<ye;ke++)I(te,te.bl_tree[2*S[ke]+1],3);Q(te,te.dyn_ltree,ae-1),Q(te,te.dyn_dtree,xe-1)})(L,L.l_desc.max_code+1,L.d_desc.max_code+1,Te+1),ge(L,L.dyn_ltree,L.dyn_dtree)),ee(L),me&&ie(L)},t._tr_tally=function(L,G,le){return L.pending_buf[L.d_buf+2*L.last_lit]=G>>>8&255,L.pending_buf[L.d_buf+2*L.last_lit+1]=255&G,L.pending_buf[L.l_buf+L.last_lit]=255&le,L.last_lit++,G===0?L.dyn_ltree[2*le]++:(L.matches++,G--,L.dyn_ltree[2*(D[le]+u+1)]++,L.dyn_dtree[2*N(G)]++),L.last_lit===L.lit_bufsize-1},t._tr_align=function(L){I(L,2,3),H(L,y,C),(function(G){G.bi_valid===16?(z(G,G.bi_buf),G.bi_buf=0,G.bi_valid=0):8<=G.bi_valid&&(G.pending_buf[G.pending++]=255&G.bi_buf,G.bi_buf>>=8,G.bi_valid-=8)})(L)}},{"../utils/common":41}],53:[function(r,e,t){"use strict";e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(r,e,t){(function(n){(function(i,a){"use strict";if(!i.setImmediate){var s,o,c,u,h=1,f={},d=!1,p=i.document,m=Object.getPrototypeOf&&Object.getPrototypeOf(i);m=m&&m.setTimeout?m:i,s={}.toString.call(i.process)==="[object process]"?function(b){process.nextTick(function(){x(b)})}:(function(){if(i.postMessage&&!i.importScripts){var b=!0,v=i.onmessage;return i.onmessage=function(){b=!1},i.postMessage("","*"),i.onmessage=v,b}})()?(u="setImmediate$"+Math.random()+"$",i.addEventListener?i.addEventListener("message",y,!1):i.attachEvent("onmessage",y),function(b){i.postMessage(u+b,"*")}):i.MessageChannel?((c=new MessageChannel).port1.onmessage=function(b){x(b.data)},function(b){c.port2.postMessage(b)}):p&&"onreadystatechange"in p.createElement("script")?(o=p.documentElement,function(b){var v=p.createElement("script");v.onreadystatechange=function(){x(b),v.onreadystatechange=null,o.removeChild(v),v=null},o.appendChild(v)}):function(b){setTimeout(x,0,b)},m.setImmediate=function(b){typeof b!="function"&&(b=new Function(""+b));for(var v=new Array(arguments.length-1),_=0;_<v.length;_++)v[_]=arguments[_+1];var A={callback:b,args:v};return f[h]=A,s(h),h++},m.clearImmediate=g}function g(b){delete f[b]}function x(b){if(d)setTimeout(x,0,b);else{var v=f[b];if(v){d=!0;try{(function(_){var A=_.callback,E=_.args;switch(E.length){case 0:A();break;case 1:A(E[0]);break;case 2:A(E[0],E[1]);break;case 3:A(E[0],E[1],E[2]);break;default:A.apply(a,E)}})(v)}finally{g(b),d=!1}}}}function y(b){b.source===i&&typeof b.data=="string"&&b.data.indexOf(u)===0&&x(+b.data.slice(u.length))}})(typeof self>"u"?n===void 0?this:n:self)}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})});var Ig=be(Th=>{var R3=Iy(),O3=Oy();Th.openArrayBuffer=B3;Th.splitPath=N3;Th.joinPath=P3;function B3(r){return O3.loadAsync(r).then(function(e){function t(s){return e.file(s)!==null}function n(s,o){return e.file(s).async("uint8array").then(function(c){if(o==="base64")return R3.fromByteArray(c);if(o){var u=new TextDecoder(o);return u.decode(c)}else return c})}function i(s,o){e.file(s,o)}function a(){return e.generateAsync({type:"arraybuffer"})}return{exists:t,read:n,write:i,toArrayBuffer:a}})}function N3(r){var e=r.lastIndexOf("/");return e===-1?{dirname:"",basename:r}:{dirname:r.substring(0,e),basename:r.substring(e+1)}}function P3(){var r=Array.prototype.filter.call(arguments,function(t){return t}),e=[];return r.forEach(function(t){/^\//.test(t)?e=[t]:e.push(t)}),e.join("/")}});var Rg=be(oc=>{var Eh=(At(),Ft(Et));oc.Element=vs;oc.element=function(r,e,t){return new vs(r,e,t)};oc.text=function(r){return{type:"text",value:r}};var By=oc.emptyElement={first:function(){return null},firstOrEmpty:function(){return By},attributes:{},children:[]};function vs(r,e,t){this.type="element",this.name=r,this.attributes=e||{},this.children=t||[]}vs.prototype.first=function(r){return Eh.find(this.children,function(e){return e.name===r})};vs.prototype.firstOrEmpty=function(r){return this.first(r)||By};vs.prototype.getElementsByTagName=function(r){var e=Eh.filter(this.children,function(t){return t.name===r});return Ny(e)};vs.prototype.text=function(){if(this.children.length===0)return"";if(this.children.length!==1||this.children[0].type!=="text")throw new Error("Not implemented");return this.children[0].value};var L3={getElementsByTagName:function(r){return Ny(Eh.flatten(this.map(function(e){return e.getElementsByTagName(r)},!0)))}};function Ny(r){return Eh.extend(r,L3)}});var cc=be(ys=>{"use strict";function M3(r,e,t){if(t===void 0&&(t=Array.prototype),r&&typeof t.find=="function")return t.find.call(r,e);for(var n=0;n<r.length;n++)if(Object.prototype.hasOwnProperty.call(r,n)){var i=r[n];if(e.call(void 0,i,n,r))return i}}function Og(r,e){return e===void 0&&(e=Object),e&&typeof e.freeze=="function"?e.freeze(r):r}function W3(r,e){if(r===null||typeof r!="object")throw new TypeError("target is not an object");for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t]);return r}var Py=Og({HTML:"text/html",isHTML:function(r){return r===Py.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),Ly=Og({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(r){return r===Ly.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});ys.assign=W3;ys.find=M3;ys.freeze=Og;ys.MIME_TYPE=Py;ys.NAMESPACE=Ly});var Oh=be(ii=>{var Xy=cc(),Rn=Xy.find,lc=Xy.NAMESPACE;function H3(r){return r!==""}function V3(r){return r?r.split(/[\t\n\f\r ]+/).filter(H3):[]}function z3(r,e){return r.hasOwnProperty(e)||(r[e]=!0),r}function My(r){if(!r)return[];var e=V3(r);return Object.keys(e.reduce(z3,{}))}function j3(r){return function(e){return r&&r.indexOf(e)!==-1}}function hc(r,e){for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t])}function Lr(r,e){var t=r.prototype;if(!(t instanceof e)){let i=function(){};var n=i;i.prototype=e.prototype,i=new i,hc(t,i),r.prototype=t=i}t.constructor!=r&&(typeof r!="function"&&console.error("unknown Class:"+r),t.constructor=r)}var Mr={},nn=Mr.ELEMENT_NODE=1,ws=Mr.ATTRIBUTE_NODE=2,Sh=Mr.TEXT_NODE=3,$y=Mr.CDATA_SECTION_NODE=4,qy=Mr.ENTITY_REFERENCE_NODE=5,G3=Mr.ENTITY_NODE=6,Bg=Mr.PROCESSING_INSTRUCTION_NODE=7,Ng=Mr.COMMENT_NODE=8,Yy=Mr.DOCUMENT_NODE=9,Ky=Mr.DOCUMENT_TYPE_NODE=10,ti=Mr.DOCUMENT_FRAGMENT_NODE=11,X3=Mr.NOTATION_NODE=12,cr={},Xt={},o$=cr.INDEX_SIZE_ERR=(Xt[1]="Index size error",1),c$=cr.DOMSTRING_SIZE_ERR=(Xt[2]="DOMString size error",2),Pr=cr.HIERARCHY_REQUEST_ERR=(Xt[3]="Hierarchy request error",3),l$=cr.WRONG_DOCUMENT_ERR=(Xt[4]="Wrong document",4),$3=cr.INVALID_CHARACTER_ERR=(Xt[5]="Invalid character",5),u$=cr.NO_DATA_ALLOWED_ERR=(Xt[6]="No data allowed",6),h$=cr.NO_MODIFICATION_ALLOWED_ERR=(Xt[7]="No modification allowed",7),Zy=cr.NOT_FOUND_ERR=(Xt[8]="Not found",8),f$=cr.NOT_SUPPORTED_ERR=(Xt[9]="Not supported",9),Wy=cr.INUSE_ATTRIBUTE_ERR=(Xt[10]="Attribute in use",10),bs=cr.INVALID_STATE_ERR=(Xt[11]="Invalid state",11),d$=cr.SYNTAX_ERR=(Xt[12]="Syntax error",12),p$=cr.INVALID_MODIFICATION_ERR=(Xt[13]="Invalid modification",13),g$=cr.NAMESPACE_ERR=(Xt[14]="Invalid namespace",14),m$=cr.INVALID_ACCESS_ERR=(Xt[15]="Invalid access",15);function ht(r,e){if(e instanceof Error)var t=e;else t=this,Error.call(this,Xt[r]),this.message=Xt[r],Error.captureStackTrace&&Error.captureStackTrace(this,ht);return t.code=r,e&&(this.message=this.message+": "+e),t}ht.prototype=Error.prototype;hc(cr,ht);function ri(){}ri.prototype={length:0,item:function(r){return r>=0&&r<this.length?this[r]:null},toString:function(r,e,t){for(var n=!!t&&!!t.requireWellFormed,i=[],a=0;a<this.length;a++)Gg(this[a],i,r,e,null,n);return i.join("")},filter:function(r){return Array.prototype.filter.call(this,r)},indexOf:function(r){return Array.prototype.indexOf.call(this,r)}};function _s(r,e){this._node=r,this._refresh=e,Pg(this)}function Pg(r){var e=r._node._inc||r._node.ownerDocument._inc;if(r._inc!==e){var t=r._refresh(r._node);if(lb(r,"length",t.length),!r.$$length||t.length<r.$$length)for(var n=t.length;n in r;n++)Object.prototype.hasOwnProperty.call(r,n)&&delete r[n];hc(t,r),r._inc=e}}_s.prototype.item=function(r){return Pg(this),this[r]||null};Lr(_s,ri);function Ch(){}function Jy(r,e){for(var t=r.length;t--;)if(r[t]===e)return t}function Hy(r,e,t,n){if(n?e[Jy(e,n)]=t:e[e.length++]=t,r){t.ownerElement=r;var i=r.ownerDocument;i&&(n&&tb(i,r,n),q3(i,r,t))}}function Vy(r,e,t){var n=Jy(e,t);if(n>=0){for(var i=e.length-1;n<i;)e[n]=e[++n];if(e.length=i,r){var a=r.ownerDocument;a&&(tb(a,r,t),t.ownerElement=null)}}else throw new ht(Zy,new Error(r.tagName+"@"+t))}Ch.prototype={length:0,item:ri.prototype.item,getNamedItem:function(r){for(var e=this.length;e--;){var t=this[e];if(t.nodeName==r)return t}},setNamedItem:function(r){var e=r.ownerElement;if(e&&e!=this._ownerElement)throw new ht(Wy);var t=this.getNamedItem(r.nodeName);return Hy(this._ownerElement,this,r,t),t},setNamedItemNS:function(r){var e=r.ownerElement,t;if(e&&e!=this._ownerElement)throw new ht(Wy);return t=this.getNamedItemNS(r.namespaceURI,r.localName),Hy(this._ownerElement,this,r,t),t},removeNamedItem:function(r){var e=this.getNamedItem(r);return Vy(this._ownerElement,this,e),e},removeNamedItemNS:function(r,e){var t=this.getNamedItemNS(r,e);return Vy(this._ownerElement,this,t),t},getNamedItemNS:function(r,e){for(var t=this.length;t--;){var n=this[t];if(n.localName==e&&n.namespaceURI==r)return n}return null}};function Qy(){}Qy.prototype={hasFeature:function(r,e){return!0},createDocument:function(r,e,t){var n=new fc;if(n.implementation=this,n.childNodes=new ri,n.doctype=t||null,t&&n.appendChild(t),e){var i=n.createElementNS(r,e);n.appendChild(i)}return n},createDocumentType:function(r,e,t){var n=new Ih;return n.name=r,n.nodeName=r,n.publicId=e||"",n.systemId=t||"",n}};function ct(){}ct.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(r,e){return kh(this,r,e)},replaceChild:function(r,e){kh(this,r,e,nb),e&&this.removeChild(e)},removeChild:function(r){return rb(this,r)},appendChild:function(r){return this.insertBefore(r,null)},hasChildNodes:function(){return this.firstChild!=null},cloneNode:function(r){return cb(this.ownerDocument||this,this,r)},normalize:function(){Gt(this,null,{enter:function(r){for(var e=r.firstChild;e;){var t=e.nextSibling;t!==null&&t.nodeType===Sh&&e.nodeType===Sh?(r.removeChild(t),e.appendData(t.data)):e=t}return!0}})},isSupported:function(r,e){return this.ownerDocument.implementation.hasFeature(r,e)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(r){for(var e=this;e;){var t=e._nsMap;if(t){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&t[n]===r)return n}e=e.nodeType==ws?e.ownerDocument:e.parentNode}return null},lookupNamespaceURI:function(r){for(var e=this;e;){var t=e._nsMap;if(t&&Object.prototype.hasOwnProperty.call(t,r))return t[r];e=e.nodeType==ws?e.ownerDocument:e.parentNode}return null},isDefaultNamespace:function(r){var e=this.lookupPrefix(r);return e==null}};function eb(r){return r=="<"&&"<"||r==">"&&">"||r=="&"&&"&"||r=='"'&&"""||"&#"+r.charCodeAt()+";"}hc(Mr,ct);hc(Mr,ct.prototype);function Fh(r,e){return Gt(r,null,{enter:function(t){return e(t)?Gt.STOP:!0}})===Gt.STOP}function Gt(r,e,t){for(var n=[{node:r,context:e,phase:Gt.ENTER}];n.length>0;){var i=n.pop();if(i.phase===Gt.ENTER){var a=t.enter(i.node,i.context);if(a===Gt.STOP)return Gt.STOP;if(n.push({node:i.node,context:a,phase:Gt.EXIT}),a==null)continue;for(var s=i.node.lastChild;s;)n.push({node:s,context:a,phase:Gt.ENTER}),s=s.previousSibling}else t.exit&&t.exit(i.node,i.context)}}Gt.STOP=Symbol("walkDOM.STOP");Gt.ENTER=0;Gt.EXIT=1;function fc(){this.ownerDocument=this}function q3(r,e,t){r&&r._inc++;var n=t.namespaceURI;n===lc.XMLNS&&(e._nsMap[t.prefix?t.localName:""]=t.value)}function tb(r,e,t,n){r&&r._inc++;var i=t.namespaceURI;i===lc.XMLNS&&delete e._nsMap[t.prefix?t.localName:""]}function Lg(r,e,t){if(r&&r._inc){r._inc++;var n=e.childNodes;if(t)n[n.length++]=t;else{for(var i=e.firstChild,a=0;i;)n[a++]=i,i=i.nextSibling;n.length=a,delete n[n.length]}}}function rb(r,e){var t=e.previousSibling,n=e.nextSibling;return t?t.nextSibling=n:r.firstChild=n,n?n.previousSibling=t:r.lastChild=t,e.parentNode=null,e.previousSibling=null,e.nextSibling=null,Lg(r.ownerDocument,r),e}function Y3(r){return r&&(r.nodeType===ct.DOCUMENT_NODE||r.nodeType===ct.DOCUMENT_FRAGMENT_NODE||r.nodeType===ct.ELEMENT_NODE)}function K3(r){return r&&(On(r)||Mg(r)||ni(r)||r.nodeType===ct.DOCUMENT_FRAGMENT_NODE||r.nodeType===ct.COMMENT_NODE||r.nodeType===ct.PROCESSING_INSTRUCTION_NODE)}function ni(r){return r&&r.nodeType===ct.DOCUMENT_TYPE_NODE}function On(r){return r&&r.nodeType===ct.ELEMENT_NODE}function Mg(r){return r&&r.nodeType===ct.TEXT_NODE}function zy(r,e){var t=r.childNodes||[];if(Rn(t,On)||ni(e))return!1;var n=Rn(t,ni);return!(e&&n&&t.indexOf(n)>t.indexOf(e))}function jy(r,e){var t=r.childNodes||[];function n(a){return On(a)&&a!==e}if(Rn(t,n))return!1;var i=Rn(t,ni);return!(e&&i&&t.indexOf(i)>t.indexOf(e))}function Z3(r,e,t){if(!Y3(r))throw new ht(Pr,"Unexpected parent node type "+r.nodeType);if(t&&t.parentNode!==r)throw new ht(Zy,"child not in parent");if(!K3(e)||ni(e)&&r.nodeType!==ct.DOCUMENT_NODE)throw new ht(Pr,"Unexpected node type "+e.nodeType+" for parent node type "+r.nodeType)}function J3(r,e,t){var n=r.childNodes||[],i=e.childNodes||[];if(e.nodeType===ct.DOCUMENT_FRAGMENT_NODE){var a=i.filter(On);if(a.length>1||Rn(i,Mg))throw new ht(Pr,"More than one element or text in fragment");if(a.length===1&&!zy(r,t))throw new ht(Pr,"Element in fragment can not be inserted before doctype")}if(On(e)&&!zy(r,t))throw new ht(Pr,"Only one element can be added and only after doctype");if(ni(e)){if(Rn(n,ni))throw new ht(Pr,"Only one doctype is allowed");var s=Rn(n,On);if(t&&n.indexOf(s)<n.indexOf(t))throw new ht(Pr,"Doctype can only be inserted before an element");if(!t&&s)throw new ht(Pr,"Doctype can not be appended since element is present")}}function nb(r,e,t){var n=r.childNodes||[],i=e.childNodes||[];if(e.nodeType===ct.DOCUMENT_FRAGMENT_NODE){var a=i.filter(On);if(a.length>1||Rn(i,Mg))throw new ht(Pr,"More than one element or text in fragment");if(a.length===1&&!jy(r,t))throw new ht(Pr,"Element in fragment can not be inserted before doctype")}if(On(e)&&!jy(r,t))throw new ht(Pr,"Only one element can be added and only after doctype");if(ni(e)){let c=function(u){return ni(u)&&u!==t};var o=c;if(Rn(n,c))throw new ht(Pr,"Only one doctype is allowed");var s=Rn(n,On);if(t&&n.indexOf(s)<n.indexOf(t))throw new ht(Pr,"Doctype can only be inserted before an element")}}function kh(r,e,t,n){Z3(r,e,t),r.nodeType===ct.DOCUMENT_NODE&&(n||J3)(r,e,t);var i=e.parentNode;if(i&&i.removeChild(e),e.nodeType===ti){var a=e.firstChild;if(a==null)return e;var s=e.lastChild}else a=s=e;var o=t?t.previousSibling:r.lastChild;a.previousSibling=o,s.nextSibling=t,o?o.nextSibling=a:r.firstChild=a,t==null?r.lastChild=s:t.previousSibling=s;do{a.parentNode=r;var c=r.ownerDocument||r;uc(a,c)}while(a!==s&&(a=a.nextSibling));return Lg(r.ownerDocument||r,r),e.nodeType==ti&&(e.firstChild=e.lastChild=null),e}function uc(r,e){if(r.ownerDocument!==e){if(r.ownerDocument=e,r.nodeType===nn&&r.attributes)for(var t=0;t<r.attributes.length;t++){var n=r.attributes.item(t);n&&(n.ownerDocument=e)}for(var i=r.firstChild;i;)uc(i,e),i=i.nextSibling}}function Q3(r,e){e.parentNode&&e.parentNode.removeChild(e),e.parentNode=r,e.previousSibling=r.lastChild,e.nextSibling=null,e.previousSibling?e.previousSibling.nextSibling=e:r.firstChild=e,r.lastChild=e,Lg(r.ownerDocument,r,e);var t=r.ownerDocument||r;return uc(e,t),e}fc.prototype={nodeName:"#document",nodeType:Yy,doctype:null,documentElement:null,_inc:1,insertBefore:function(r,e){if(r.nodeType==ti){for(var t=r.firstChild;t;){var n=t.nextSibling;this.insertBefore(t,e),t=n}return r}return kh(this,r,e),uc(r,this),this.documentElement===null&&r.nodeType===nn&&(this.documentElement=r),r},removeChild:function(r){return this.documentElement==r&&(this.documentElement=null),rb(this,r)},replaceChild:function(r,e){kh(this,r,e,nb),uc(r,this),e&&this.removeChild(e),On(r)&&(this.documentElement=r)},importNode:function(r,e){return eC(this,r,e)},getElementById:function(r){var e=null;return Fh(this.documentElement,function(t){if(t.nodeType==nn&&t.getAttribute("id")==r)return e=t,!0}),e},getElementsByClassName:function(r){var e=My(r);return new _s(this,function(t){var n=[];return e.length>0&&Fh(t.documentElement,function(i){if(i!==t&&i.nodeType===nn){var a=i.getAttribute("class");if(a){var s=r===a;if(!s){var o=My(a);s=e.every(j3(o))}s&&n.push(i)}}}),n})},createElement:function(r){var e=new ga;e.ownerDocument=this,e.nodeName=r,e.tagName=r,e.localName=r,e.childNodes=new ri;var t=e.attributes=new Ch;return t._ownerElement=e,e},createDocumentFragment:function(){var r=new Rh;return r.ownerDocument=this,r.childNodes=new ri,r},createTextNode:function(r){var e=new Wg;return e.ownerDocument=this,e.appendData(r),e},createComment:function(r){var e=new Hg;return e.ownerDocument=this,e.appendData(r),e},createCDATASection:function(r){if(r.indexOf("]]>")!==-1)throw new ht($3,'data contains "]]>"');var e=new Vg;return e.ownerDocument=this,e.appendData(r),e},createProcessingInstruction:function(r,e){var t=new jg;return t.ownerDocument=this,t.tagName=t.nodeName=t.target=r,t.nodeValue=t.data=e,t},createAttribute:function(r){var e=new Uh;return e.ownerDocument=this,e.name=r,e.nodeName=r,e.localName=r,e.specified=!0,e},createEntityReference:function(r){var e=new zg;return e.ownerDocument=this,e.nodeName=r,e},createElementNS:function(r,e){var t=new ga,n=e.split(":"),i=t.attributes=new Ch;return t.childNodes=new ri,t.ownerDocument=this,t.nodeName=e,t.tagName=e,t.namespaceURI=r,n.length==2?(t.prefix=n[0],t.localName=n[1]):t.localName=e,i._ownerElement=t,t},createAttributeNS:function(r,e){var t=new Uh,n=e.split(":");return t.ownerDocument=this,t.nodeName=e,t.name=e,t.namespaceURI=r,t.specified=!0,n.length==2?(t.prefix=n[0],t.localName=n[1]):t.localName=e,t}};Lr(fc,ct);function ga(){this._nsMap={}}ga.prototype={nodeType:nn,hasAttribute:function(r){return this.getAttributeNode(r)!=null},getAttribute:function(r){var e=this.getAttributeNode(r);return e&&e.value||""},getAttributeNode:function(r){return this.attributes.getNamedItem(r)},setAttribute:function(r,e){var t=this.ownerDocument.createAttribute(r);t.value=t.nodeValue=""+e,this.setAttributeNode(t)},removeAttribute:function(r){var e=this.getAttributeNode(r);e&&this.removeAttributeNode(e)},appendChild:function(r){return r.nodeType===ti?this.insertBefore(r,null):Q3(this,r)},setAttributeNode:function(r){return this.attributes.setNamedItem(r)},setAttributeNodeNS:function(r){return this.attributes.setNamedItemNS(r)},removeAttributeNode:function(r){return this.attributes.removeNamedItem(r.nodeName)},removeAttributeNS:function(r,e){var t=this.getAttributeNodeNS(r,e);t&&this.removeAttributeNode(t)},hasAttributeNS:function(r,e){return this.getAttributeNodeNS(r,e)!=null},getAttributeNS:function(r,e){var t=this.getAttributeNodeNS(r,e);return t&&t.value||""},setAttributeNS:function(r,e,t){var n=this.ownerDocument.createAttributeNS(r,e);n.value=n.nodeValue=""+t,this.setAttributeNode(n)},getAttributeNodeNS:function(r,e){return this.attributes.getNamedItemNS(r,e)},getElementsByTagName:function(r){return new _s(this,function(e){var t=[];return Fh(e,function(n){n!==e&&n.nodeType==nn&&(r==="*"||n.tagName==r)&&t.push(n)}),t})},getElementsByTagNameNS:function(r,e){return new _s(this,function(t){var n=[];return Fh(t,function(i){i!==t&&i.nodeType===nn&&(r==="*"||i.namespaceURI===r)&&(e==="*"||i.localName==e)&&n.push(i)}),n})}};fc.prototype.getElementsByTagName=ga.prototype.getElementsByTagName;fc.prototype.getElementsByTagNameNS=ga.prototype.getElementsByTagNameNS;Lr(ga,ct);function Uh(){}Uh.prototype.nodeType=ws;Lr(Uh,ct);function dc(){}dc.prototype={data:"",substringData:function(r,e){return this.data.substring(r,r+e)},appendData:function(r){r=this.data+r,this.nodeValue=this.data=r,this.length=r.length},insertData:function(r,e){this.replaceData(r,0,e)},appendChild:function(r){throw new Error(Xt[Pr])},deleteData:function(r,e){this.replaceData(r,e,"")},replaceData:function(r,e,t){var n=this.data.substring(0,r),i=this.data.substring(r+e);t=n+t+i,this.nodeValue=this.data=t,this.length=t.length}};Lr(dc,ct);function Wg(){}Wg.prototype={nodeName:"#text",nodeType:Sh,splitText:function(r){var e=this.data,t=e.substring(r);e=e.substring(0,r),this.data=this.nodeValue=e,this.length=e.length;var n=this.ownerDocument.createTextNode(t);return this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling),n}};Lr(Wg,dc);function Hg(){}Hg.prototype={nodeName:"#comment",nodeType:Ng};Lr(Hg,dc);function Vg(){}Vg.prototype={nodeName:"#cdata-section",nodeType:$y};Lr(Vg,dc);function Ih(){}Ih.prototype.nodeType=Ky;Lr(Ih,ct);function ib(){}ib.prototype.nodeType=X3;Lr(ib,ct);function ab(){}ab.prototype.nodeType=G3;Lr(ab,ct);function zg(){}zg.prototype.nodeType=qy;Lr(zg,ct);function Rh(){}Rh.prototype.nodeName="#document-fragment";Rh.prototype.nodeType=ti;Lr(Rh,ct);function jg(){}jg.prototype.nodeType=Bg;Lr(jg,ct);function sb(){}sb.prototype.serializeToString=function(r,e,t,n){return ob.call(r,e,t,n)};ct.prototype.toString=ob;function ob(r,e,t){var n=!!t&&!!t.requireWellFormed,i=[],a=this.nodeType==9&&this.documentElement||this,s=a.prefix,o=a.namespaceURI;if(o&&s==null){var s=a.lookupPrefix(o);if(s==null)var c=[{namespace:o,prefix:null}]}return Gg(this,i,r,e,c,n),i.join("")}function Gy(r,e,t){var n=r.prefix||"",i=r.namespaceURI;if(!i||n==="xml"&&i===lc.XML||i===lc.XMLNS)return!1;for(var a=t.length;a--;){var s=t[a];if(s.prefix===n)return s.namespace!==i}return!0}function Ah(r,e,t){r.push(" ",e,'="',t.replace(/[<>&"\t\n\r]/g,eb),'"')}function Gg(r,e,t,n,i,a){i||(i=[]),Gt(r,{ns:i,isHTML:t},{enter:function(s,o){var c=o.ns,u=o.isHTML;if(n)if(s=n(s),s){if(typeof s=="string")return e.push(s),null}else return null;switch(s.nodeType){case nn:var h=s.attributes,f=h.length,d=s.tagName;u=lc.isHTML(s.namespaceURI)||u;var p=d;if(!u&&!s.prefix&&s.namespaceURI){for(var m,g=0;g<h.length;g++)if(h.item(g).name==="xmlns"){m=h.item(g).value;break}if(!m)for(var x=c.length-1;x>=0;x--){var y=c[x];if(y.prefix===""&&y.namespace===s.namespaceURI){m=y.namespace;break}}if(m!==s.namespaceURI)for(var x=c.length-1;x>=0;x--){var y=c[x];if(y.namespace===s.namespaceURI){y.prefix&&(p=y.prefix+":"+d);break}}}e.push("<",p);for(var b=c.slice(),v=0;v<f;v++){var _=h.item(v);_.prefix=="xmlns"?b.push({prefix:_.localName,namespace:_.value}):_.nodeName=="xmlns"&&b.push({prefix:"",namespace:_.value})}for(var v=0;v<f;v++){var _=h.item(v);if(Gy(_,u,b)){var A=_.prefix||"",E=_.namespaceURI;Ah(e,A?"xmlns:"+A:"xmlns",E),b.push({prefix:A,namespace:E})}var T=n?n(_):_;T&&(typeof T=="string"?e.push(T):Ah(e,T.name,T.value))}if(d===p&&Gy(s,u,b)){var S=s.prefix||"",E=s.namespaceURI;Ah(e,S?"xmlns:"+S:"xmlns",E),b.push({prefix:S,namespace:E})}var C=s.firstChild;if(C||u&&!/^(?:meta|link|img|br|hr|input)$/i.test(d)){if(e.push(">"),u&&/^script$/i.test(d)){for(;C;)C.data?e.push(C.data):Gg(C,e,u,n,b.slice(),a),C=C.nextSibling;return e.push("</",d,">"),null}return{ns:b,isHTML:u,tag:p}}else return e.push("/>"),null;case Yy:case ti:return{ns:c.slice(),isHTML:u,tag:null};case ws:return Ah(e,s.name,s.value),null;case Sh:return e.push(s.data.replace(/[<&>]/g,eb)),null;case $y:if(a&&s.data.indexOf("]]>")!==-1)throw new ht(bs,'The CDATASection data contains "]]>"');return e.push("<![CDATA[",s.data.replace(/]]>/g,"]]]]><![CDATA[>"),"]]>"),null;case Ng:if(a&&s.data.indexOf("-->")!==-1)throw new ht(bs,'The comment node data contains "-->"');return e.push("<!--",s.data,"-->"),null;case Ky:if(a){if(s.publicId&&!/^("[\x20\r\na-zA-Z0-9\-()+,.\/:=?;!*#@$_%']*"|'[\x20\r\na-zA-Z0-9\-()+,.\/:=?;!*#@$_%'"]*')$/.test(s.publicId))throw new ht(bs,"DocumentType publicId is not a valid PubidLiteral");if(s.systemId&&!/^("[^"]*"|'[^']*')$/.test(s.systemId))throw new ht(bs,"DocumentType systemId is not a valid SystemLiteral");if(s.internalSubset&&s.internalSubset.indexOf("]>")!==-1)throw new ht(bs,'DocumentType internalSubset contains "]>"')}var F=s.publicId,k=s.systemId;if(e.push("<!DOCTYPE ",s.name),F)e.push(" PUBLIC ",F),k&&k!="."&&e.push(" ",k),e.push(">");else if(k&&k!=".")e.push(" SYSTEM ",k,">");else{var D=s.internalSubset;D&&e.push(" [",D,"]"),e.push(">")}return null;case Bg:if(a&&s.data.indexOf("?>")!==-1)throw new ht(bs,'The ProcessingInstruction data contains "?>"');return e.push("<?",s.target," ",s.data,"?>"),null;case qy:return e.push("&",s.nodeName,";"),null;default:return e.push("??",s.nodeName),null}},exit:function(s,o){o&&o.tag&&e.push("</",o.tag,">")}})}function eC(r,e,t){var n;return Gt(e,null,{enter:function(i,a){var s=i.cloneNode(!1);s.ownerDocument=r,s.parentNode=null,a===null?n=s:a.appendChild(s);var o=i.nodeType===ws||t;return o?s:null}}),n}function cb(r,e,t){var n;return Gt(e,null,{enter:function(i,a){var s=new i.constructor;for(var o in i)if(Object.prototype.hasOwnProperty.call(i,o)){var c=i[o];typeof c!="object"&&c!=s[o]&&(s[o]=c)}i.childNodes&&(s.childNodes=new ri),s.ownerDocument=r;var u=t;switch(s.nodeType){case nn:var h=i.attributes,f=s.attributes=new Ch,d=h.length;f._ownerElement=s;for(var p=0;p<d;p++)s.setAttributeNode(cb(r,h.item(p),!0));break;case ws:u=!0}return a!==null?a.appendChild(s):n=s,u?s:null}}),n}function lb(r,e,t){r[e]=t}try{Object.defineProperty&&(Object.defineProperty(_s.prototype,"length",{get:function(){return Pg(this),this.$$length}}),Object.defineProperty(ct.prototype,"textContent",{get:function(){if(this.nodeType===nn||this.nodeType===ti){var r=[];return Gt(this,null,{enter:function(e){if(e.nodeType===nn||e.nodeType===ti)return!0;if(e.nodeType===Bg||e.nodeType===Ng)return null;r.push(e.nodeValue)}}),r.join("")}return this.nodeValue},set:function(r){switch(this.nodeType){case nn:case ti:for(;this.firstChild;)this.removeChild(this.firstChild);(r||String(r))&&this.appendChild(this.ownerDocument.createTextNode(r));break;default:this.data=r,this.value=r,this.nodeValue=r}}}),lb=function(r,e,t){r["$$"+e]=t})}catch{}ii.DocumentType=Ih;ii.DOMException=ht;ii.DOMImplementation=Qy;ii.Element=ga;ii.Node=ct;ii.NodeList=ri;ii.walkDOM=Gt;ii.XMLSerializer=sb});var hb=be(pc=>{"use strict";var ub=cc().freeze;pc.XML_ENTITIES=ub({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'});pc.HTML_ENTITIES=ub({Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\u{1D504}",afr:"\u{1D51E}",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",AMP:"&",amp:"&",And:"\u2A53",and:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1D538}",aopf:"\u{1D552}",ap:"\u2248",apacir:"\u2A6F",apE:"\u2A70",ape:"\u224A",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",Aring:"\xC5",aring:"\xE5",Ascr:"\u{1D49C}",ascr:"\u{1D4B6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",Barwed:"\u2306",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",Because:"\u2235",because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",Bernoullis:"\u212C",Beta:"\u0392",beta:"\u03B2",beth:"\u2136",between:"\u226C",Bfr:"\u{1D505}",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bNot:"\u2AED",bnot:"\u2310",Bopf:"\u{1D539}",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxbox:"\u29C9",boxDL:"\u2557",boxDl:"\u2556",boxdL:"\u2555",boxdl:"\u2510",boxDR:"\u2554",boxDr:"\u2553",boxdR:"\u2552",boxdr:"\u250C",boxH:"\u2550",boxh:"\u2500",boxHD:"\u2566",boxHd:"\u2564",boxhD:"\u2565",boxhd:"\u252C",boxHU:"\u2569",boxHu:"\u2567",boxhU:"\u2568",boxhu:"\u2534",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxUL:"\u255D",boxUl:"\u255C",boxuL:"\u255B",boxul:"\u2518",boxUR:"\u255A",boxUr:"\u2559",boxuR:"\u2558",boxur:"\u2514",boxV:"\u2551",boxv:"\u2502",boxVH:"\u256C",boxVh:"\u256B",boxvH:"\u256A",boxvh:"\u253C",boxVL:"\u2563",boxVl:"\u2562",boxvL:"\u2561",boxvl:"\u2524",boxVR:"\u2560",boxVr:"\u255F",boxvR:"\u255E",boxvr:"\u251C",bprime:"\u2035",Breve:"\u02D8",breve:"\u02D8",brvbar:"\xA6",Bscr:"\u212C",bscr:"\u{1D4B7}",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",Bumpeq:"\u224E",bumpeq:"\u224F",Cacute:"\u0106",cacute:"\u0107",Cap:"\u22D2",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",CapitalDifferentialD:"\u2145",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",Cayleys:"\u212D",ccaps:"\u2A4D",Ccaron:"\u010C",ccaron:"\u010D",Ccedil:"\xC7",ccedil:"\xE7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2A4C",ccupssm:"\u2A50",Cdot:"\u010A",cdot:"\u010B",cedil:"\xB8",Cedilla:"\xB8",cemptyv:"\u29B2",cent:"\xA2",CenterDot:"\xB7",centerdot:"\xB7",Cfr:"\u212D",cfr:"\u{1D520}",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03A7",chi:"\u03C7",cir:"\u25CB",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",CircleDot:"\u2299",circledR:"\xAE",circledS:"\u24C8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cirE:"\u29C3",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",Colon:"\u2237",colon:":",Colone:"\u2A74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",Congruent:"\u2261",Conint:"\u222F",conint:"\u222E",ContourIntegral:"\u222E",Copf:"\u2102",copf:"\u{1D554}",coprod:"\u2210",Coproduct:"\u2210",COPY:"\xA9",copy:"\xA9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21B5",Cross:"\u2A2F",cross:"\u2717",Cscr:"\u{1D49E}",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",Cup:"\u22D3",cup:"\u222A",cupbrcap:"\u2A48",CupCap:"\u224D",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",Dagger:"\u2021",dagger:"\u2020",daleth:"\u2138",Darr:"\u21A1",dArr:"\u21D3",darr:"\u2193",dash:"\u2010",Dashv:"\u2AE4",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",Dcaron:"\u010E",dcaron:"\u010F",Dcy:"\u0414",dcy:"\u0434",DD:"\u2145",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21CA",DDotrahd:"\u2911",ddotseq:"\u2A77",deg:"\xB0",Del:"\u2207",Delta:"\u0394",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",Dfr:"\u{1D507}",dfr:"\u{1D521}",dHar:"\u2965",dharl:"\u21C3",dharr:"\u21C2",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",diam:"\u22C4",Diamond:"\u22C4",diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",DifferentialD:"\u2146",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",Dopf:"\u{1D53B}",dopf:"\u{1D555}",Dot:"\xA8",dot:"\u02D9",DotDot:"\u20DC",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",Downarrow:"\u21D3",downarrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",DownTeeArrow:"\u21A7",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",Dscr:"\u{1D49F}",dscr:"\u{1D4B9}",DScy:"\u0405",dscy:"\u0455",dsol:"\u29F6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",DZcy:"\u040F",dzcy:"\u045F",dzigrarr:"\u27FF",Eacute:"\xC9",eacute:"\xE9",easter:"\u2A6E",Ecaron:"\u011A",ecaron:"\u011B",ecir:"\u2256",Ecirc:"\xCA",ecirc:"\xEA",ecolon:"\u2255",Ecy:"\u042D",ecy:"\u044D",eDDot:"\u2A77",Edot:"\u0116",eDot:"\u2251",edot:"\u0117",ee:"\u2147",efDot:"\u2252",Efr:"\u{1D508}",efr:"\u{1D522}",eg:"\u2A9A",Egrave:"\xC8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",Element:"\u2208",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25FB",emptyv:"\u2205",EmptyVerySmallSquare:"\u25AB",emsp:"\u2003",emsp13:"\u2004",emsp14:"\u2005",ENG:"\u014A",eng:"\u014B",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\u{1D53C}",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",Epsilon:"\u0395",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",Equal:"\u2A75",equals:"=",EqualTilde:"\u2242",equest:"\u225F",Equilibrium:"\u21CC",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erarr:"\u2971",erDot:"\u2253",Escr:"\u2130",escr:"\u212F",esdot:"\u2250",Esim:"\u2A73",esim:"\u2242",Eta:"\u0397",eta:"\u03B7",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",ExponentialE:"\u2147",exponentiale:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",Ffr:"\u{1D509}",ffr:"\u{1D523}",filig:"\uFB01",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",Fopf:"\u{1D53D}",fopf:"\u{1D557}",ForAll:"\u2200",forall:"\u2200",fork:"\u22D4",forkv:"\u2AD9",Fouriertrf:"\u2131",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",Fscr:"\u2131",fscr:"\u{1D4BB}",gacute:"\u01F5",Gamma:"\u0393",gamma:"\u03B3",Gammad:"\u03DC",gammad:"\u03DD",gap:"\u2A86",Gbreve:"\u011E",gbreve:"\u011F",Gcedil:"\u0122",Gcirc:"\u011C",gcirc:"\u011D",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",gE:"\u2267",ge:"\u2265",gEl:"\u2A8C",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",ges:"\u2A7E",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",Gfr:"\u{1D50A}",gfr:"\u{1D524}",Gg:"\u22D9",gg:"\u226B",ggg:"\u22D9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gl:"\u2277",gla:"\u2AA5",glE:"\u2A92",glj:"\u2AA4",gnap:"\u2A8A",gnapprox:"\u2A8A",gnE:"\u2269",gne:"\u2A88",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",Gopf:"\u{1D53E}",gopf:"\u{1D558}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",Gt:"\u226B",GT:">",gt:">",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",Hacek:"\u02C7",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",HARDcy:"\u042A",hardcy:"\u044A",hArr:"\u21D4",harr:"\u2194",harrcir:"\u2948",harrw:"\u21AD",Hat:"^",hbar:"\u210F",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",Hfr:"\u210C",hfr:"\u{1D525}",HilbertSpace:"\u210B",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",Hopf:"\u210D",hopf:"\u{1D559}",horbar:"\u2015",HorizontalLine:"\u2500",Hscr:"\u210B",hscr:"\u{1D4BD}",hslash:"\u210F",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224E",HumpEqual:"\u224F",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xCD",iacute:"\xED",ic:"\u2063",Icirc:"\xCE",icirc:"\xEE",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",Ifr:"\u2111",ifr:"\u{1D526}",Igrave:"\xCC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Im:"\u2111",Imacr:"\u012A",imacr:"\u012B",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22B7",imped:"\u01B5",Implies:"\u21D2",in:"\u2208",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",Int:"\u222C",int:"\u222B",intcal:"\u22BA",integers:"\u2124",Integral:"\u222B",intercal:"\u22BA",Intersection:"\u22C2",intlarhk:"\u2A17",intprod:"\u2A3C",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012E",iogon:"\u012F",Iopf:"\u{1D540}",iopf:"\u{1D55A}",Iota:"\u0399",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",Iscr:"\u2110",iscr:"\u{1D4BE}",isin:"\u2208",isindot:"\u22F5",isinE:"\u22F9",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xCF",iuml:"\xEF",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\u{1D50D}",jfr:"\u{1D527}",jmath:"\u0237",Jopf:"\u{1D541}",jopf:"\u{1D55B}",Jscr:"\u{1D4A5}",jscr:"\u{1D4BF}",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041A",kcy:"\u043A",Kfr:"\u{1D50E}",kfr:"\u{1D528}",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040C",kjcy:"\u045C",Kopf:"\u{1D542}",kopf:"\u{1D55C}",Kscr:"\u{1D4A6}",kscr:"\u{1D4C0}",lAarr:"\u21DA",Lacute:"\u0139",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",Lambda:"\u039B",lambda:"\u03BB",Lang:"\u27EA",lang:"\u27E8",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",Laplacetrf:"\u2112",laquo:"\xAB",Larr:"\u219E",lArr:"\u21D0",larr:"\u2190",larrb:"\u21E4",larrbfs:"\u291F",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",lat:"\u2AAB",lAtail:"\u291B",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lBarr:"\u290E",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",Lcaron:"\u013D",lcaron:"\u013E",Lcedil:"\u013B",lcedil:"\u013C",lceil:"\u2308",lcub:"{",Lcy:"\u041B",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",lE:"\u2266",le:"\u2264",LeftAngleBracket:"\u27E8",LeftArrow:"\u2190",Leftarrow:"\u21D0",leftarrow:"\u2190",LeftArrowBar:"\u21E4",LeftArrowRightArrow:"\u21C6",leftarrowtail:"\u21A2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",LeftRightArrow:"\u2194",Leftrightarrow:"\u21D4",leftrightarrow:"\u2194",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",LeftRightVector:"\u294E",LeftTee:"\u22A3",LeftTeeArrow:"\u21A4",LeftTeeVector:"\u295A",leftthreetimes:"\u22CB",LeftTriangle:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",LeftVectorBar:"\u2952",lEg:"\u2A8B",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",les:"\u2A7D",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2AA1",lesssim:"\u2272",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",lfisht:"\u297C",lfloor:"\u230A",Lfr:"\u{1D50F}",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lHar:"\u2962",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",Ll:"\u22D8",ll:"\u226A",llarr:"\u21C7",llcorner:"\u231E",Lleftarrow:"\u21DA",llhard:"\u296B",lltri:"\u25FA",Lmidot:"\u013F",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnap:"\u2A89",lnapprox:"\u2A89",lnE:"\u2268",lne:"\u2A87",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",LongLeftArrow:"\u27F5",Longleftarrow:"\u27F8",longleftarrow:"\u27F5",LongLeftRightArrow:"\u27F7",Longleftrightarrow:"\u27FA",longleftrightarrow:"\u27F7",longmapsto:"\u27FC",LongRightArrow:"\u27F6",Longrightarrow:"\u27F9",longrightarrow:"\u27F6",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",Lopf:"\u{1D543}",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",Lscr:"\u2112",lscr:"\u{1D4C1}",Lsh:"\u21B0",lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",Lstrok:"\u0141",lstrok:"\u0142",Lt:"\u226A",LT:"<",lt:"<",ltcc:"\u2AA6",ltcir:"\u2A79",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",ltrPar:"\u2996",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",Mcy:"\u041C",mcy:"\u043C",mdash:"\u2014",mDDot:"\u223A",measuredangle:"\u2221",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",mid:"\u2223",midast:"*",midcir:"\u2AF0",middot:"\xB7",minus:"\u2212",minusb:"\u229F",minusd:"\u2238",minusdu:"\u2A2A",MinusPlus:"\u2213",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",Mopf:"\u{1D544}",mopf:"\u{1D55E}",mp:"\u2213",Mscr:"\u2133",mscr:"\u{1D4C2}",mstpos:"\u223E",Mu:"\u039C",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266E",natural:"\u266E",naturals:"\u2115",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",Ncy:"\u041D",ncy:"\u043D",ndash:"\u2013",ne:"\u2260",nearhk:"\u2924",neArr:"\u21D7",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:`
|
|
193
193
|
`,nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1D511}",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nhArr:"\u21CE",nharr:"\u21AE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlArr:"\u21CD",nlarr:"\u219A",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nLeftarrow:"\u21CD",nleftarrow:"\u219A",nLeftrightarrow:"\u21CE",nleftrightarrow:"\u21AE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",Nopf:"\u2115",nopf:"\u{1D55F}",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrArr:"\u21CF",nrarr:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nRightarrow:"\u21CF",nrightarrow:"\u219B",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\u{1D4A9}",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nVDash:"\u22AF",nVdash:"\u22AE",nvDash:"\u22AD",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwArr:"\u21D6",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",ocir:"\u229A",Ocirc:"\xD4",ocirc:"\xF4",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29BF",Ofr:"\u{1D512}",ofr:"\u{1D52C}",ogon:"\u02DB",Ograve:"\xD2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",Omacr:"\u014C",omacr:"\u014D",Omega:"\u03A9",omega:"\u03C9",Omicron:"\u039F",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",Oopf:"\u{1D546}",oopf:"\u{1D560}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",Or:"\u2A54",or:"\u2228",orarr:"\u21BB",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",Oscr:"\u{1D4AA}",oscr:"\u2134",Oslash:"\xD8",oslash:"\xF8",osol:"\u2298",Otilde:"\xD5",otilde:"\xF5",Otimes:"\u2A37",otimes:"\u2297",otimesas:"\u2A36",Ouml:"\xD6",ouml:"\xF6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",par:"\u2225",para:"\xB6",parallel:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",PartialD:"\u2202",Pcy:"\u041F",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",Pfr:"\u{1D513}",pfr:"\u{1D52D}",Phi:"\u03A6",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",Pi:"\u03A0",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plus:"+",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",PlusMinus:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",Poincareplane:"\u210C",pointint:"\u2A15",Popf:"\u2119",popf:"\u{1D561}",pound:"\xA3",Pr:"\u2ABB",pr:"\u227A",prap:"\u2AB7",prcue:"\u227C",prE:"\u2AB3",pre:"\u2AAF",prec:"\u227A",precapprox:"\u2AB7",preccurlyeq:"\u227C",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",precsim:"\u227E",Prime:"\u2033",prime:"\u2032",primes:"\u2119",prnap:"\u2AB9",prnE:"\u2AB5",prnsim:"\u22E8",prod:"\u220F",Product:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",Proportion:"\u2237",Proportional:"\u221D",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",Pscr:"\u{1D4AB}",pscr:"\u{1D4C5}",Psi:"\u03A8",psi:"\u03C8",puncsp:"\u2008",Qfr:"\u{1D514}",qfr:"\u{1D52E}",qint:"\u2A0C",Qopf:"\u211A",qopf:"\u{1D562}",qprime:"\u2057",Qscr:"\u{1D4AC}",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",QUOT:'"',quot:'"',rAarr:"\u21DB",race:"\u223D\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",Rang:"\u27EB",rang:"\u27E9",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",Rarr:"\u21A0",rArr:"\u21D2",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21A3",rarrw:"\u219D",rAtail:"\u291C",ratail:"\u291A",ratio:"\u2236",rationals:"\u211A",RBarr:"\u2910",rBarr:"\u290F",rbarr:"\u290D",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",Re:"\u211C",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",rect:"\u25AD",REG:"\xAE",reg:"\xAE",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",rfisht:"\u297D",rfloor:"\u230B",Rfr:"\u211C",rfr:"\u{1D52F}",rHar:"\u2964",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",Rho:"\u03A1",rho:"\u03C1",rhov:"\u03F1",RightAngleBracket:"\u27E9",RightArrow:"\u2192",Rightarrow:"\u21D2",rightarrow:"\u2192",RightArrowBar:"\u21E5",RightArrowLeftArrow:"\u21C4",rightarrowtail:"\u21A3",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",RightTee:"\u22A2",RightTeeArrow:"\u21A6",RightTeeVector:"\u295B",rightthreetimes:"\u22CC",RightTriangle:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",RightVectorBar:"\u2953",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",Ropf:"\u211D",ropf:"\u{1D563}",roplus:"\u2A2E",rotimes:"\u2A35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",Rrightarrow:"\u21DB",rsaquo:"\u203A",Rscr:"\u211B",rscr:"\u{1D4C7}",Rsh:"\u21B1",rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",RuleDelayed:"\u29F4",ruluhar:"\u2968",rx:"\u211E",Sacute:"\u015A",sacute:"\u015B",sbquo:"\u201A",Sc:"\u2ABC",sc:"\u227B",scap:"\u2AB8",Scaron:"\u0160",scaron:"\u0161",sccue:"\u227D",scE:"\u2AB4",sce:"\u2AB0",Scedil:"\u015E",scedil:"\u015F",Scirc:"\u015C",scirc:"\u015D",scnap:"\u2ABA",scnE:"\u2AB6",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",Scy:"\u0421",scy:"\u0441",sdot:"\u22C5",sdotb:"\u22A1",sdote:"\u2A66",searhk:"\u2925",seArr:"\u21D8",searr:"\u2198",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\u{1D516}",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xAD",Sigma:"\u03A3",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",SOFTcy:"\u042C",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",Sopf:"\u{1D54A}",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",Sqrt:"\u221A",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25A1",Square:"\u25A1",square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25AA",squf:"\u25AA",srarr:"\u2192",Sscr:"\u{1D4AE}",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",Star:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",Sub:"\u22D0",sub:"\u2282",subdot:"\u2ABD",subE:"\u2AC5",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",Subset:"\u22D0",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2AC5",SubsetEqual:"\u2286",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succ:"\u227B",succapprox:"\u2AB8",succcurlyeq:"\u227D",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",SuchThat:"\u220B",Sum:"\u2211",sum:"\u2211",sung:"\u266A",Sup:"\u22D1",sup:"\u2283",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",supdot:"\u2ABE",supdsub:"\u2AD8",supE:"\u2AC6",supe:"\u2287",supedot:"\u2AC4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",Supset:"\u22D1",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swarhk:"\u2926",swArr:"\u21D9",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",Tab:" ",target:"\u2316",Tau:"\u03A4",tau:"\u03C4",tbrk:"\u23B4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",Tfr:"\u{1D517}",tfr:"\u{1D531}",there4:"\u2234",Therefore:"\u2234",therefore:"\u2234",Theta:"\u0398",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",ThickSpace:"\u205F\u200A",thinsp:"\u2009",ThinSpace:"\u2009",thkap:"\u2248",thksim:"\u223C",THORN:"\xDE",thorn:"\xFE",Tilde:"\u223C",tilde:"\u02DC",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",times:"\xD7",timesb:"\u22A0",timesbar:"\u2A31",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",top:"\u22A4",topbot:"\u2336",topcir:"\u2AF1",Topf:"\u{1D54B}",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",TRADE:"\u2122",trade:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",TripleDot:"\u20DB",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",Tscr:"\u{1D4AF}",tscr:"\u{1D4C9}",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040B",tshcy:"\u045B",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",Uacute:"\xDA",uacute:"\xFA",Uarr:"\u219F",uArr:"\u21D1",uarr:"\u2191",Uarrocir:"\u2949",Ubrcy:"\u040E",ubrcy:"\u045E",Ubreve:"\u016C",ubreve:"\u016D",Ucirc:"\xDB",ucirc:"\xFB",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21C5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",Ufr:"\u{1D518}",ufr:"\u{1D532}",Ugrave:"\xD9",ugrave:"\xF9",uHar:"\u2963",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",Umacr:"\u016A",umacr:"\u016B",uml:"\xA8",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",uogon:"\u0173",Uopf:"\u{1D54C}",uopf:"\u{1D566}",UpArrow:"\u2191",Uparrow:"\u21D1",uparrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",UpDownArrow:"\u2195",Updownarrow:"\u21D5",updownarrow:"\u2195",UpEquilibrium:"\u296E",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03D2",upsi:"\u03C5",upsih:"\u03D2",Upsilon:"\u03A5",upsilon:"\u03C5",UpTee:"\u22A5",UpTeeArrow:"\u21A5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",Uring:"\u016E",uring:"\u016F",urtri:"\u25F9",Uscr:"\u{1D4B0}",uscr:"\u{1D4CA}",utdot:"\u22F0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",Uuml:"\xDC",uuml:"\xFC",uwangle:"\u29A7",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",vArr:"\u21D5",varr:"\u2195",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",Vbar:"\u2AEB",vBar:"\u2AE8",vBarv:"\u2AE9",Vcy:"\u0412",vcy:"\u0432",VDash:"\u22AB",Vdash:"\u22A9",vDash:"\u22A8",vdash:"\u22A2",Vdashl:"\u2AE6",Vee:"\u22C1",vee:"\u2228",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",Verbar:"\u2016",verbar:"|",Vert:"\u2016",vert:"|",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",Vopf:"\u{1D54D}",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",Vscr:"\u{1D4B1}",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",Vvdash:"\u22AA",vzigzag:"\u299A",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2A5F",Wedge:"\u22C0",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\u{1D51A}",wfr:"\u{1D534}",Wopf:"\u{1D54E}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\u{1D4B2}",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",Xfr:"\u{1D51B}",xfr:"\u{1D535}",xhArr:"\u27FA",xharr:"\u27F7",Xi:"\u039E",xi:"\u03BE",xlArr:"\u27F8",xlarr:"\u27F5",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",Xopf:"\u{1D54F}",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrArr:"\u27F9",xrarr:"\u27F6",Xscr:"\u{1D4B3}",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",Yacute:"\xDD",yacute:"\xFD",YAcy:"\u042F",yacy:"\u044F",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042B",ycy:"\u044B",yen:"\xA5",Yfr:"\u{1D51C}",yfr:"\u{1D536}",YIcy:"\u0407",yicy:"\u0457",Yopf:"\u{1D550}",yopf:"\u{1D56A}",Yscr:"\u{1D4B4}",yscr:"\u{1D4CE}",YUcy:"\u042E",yucy:"\u044E",Yuml:"\u0178",yuml:"\xFF",Zacute:"\u0179",zacute:"\u017A",Zcaron:"\u017D",zcaron:"\u017E",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017B",zdot:"\u017C",zeetrf:"\u2128",ZeroWidthSpace:"\u200B",Zeta:"\u0396",zeta:"\u03B6",Zfr:"\u2128",zfr:"\u{1D537}",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21DD",Zopf:"\u2124",zopf:"\u{1D56B}",Zscr:"\u{1D4B5}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"});pc.entityMap=pc.HTML_ENTITIES});var yb=be($g=>{var vc=cc().NAMESPACE,Xg=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,fb=new RegExp("[\\-\\.0-9"+Xg.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),db=new RegExp("^"+Xg.source+fb.source+"*(?::"+Xg.source+fb.source+"*)?$"),gc=0,Fi=1,Ds=2,mc=3,Ts=4,Es=5,xc=6,Bh=7;function As(r,e){this.message=r,this.locator=e,Error.captureStackTrace&&Error.captureStackTrace(this,As)}As.prototype=new Error;As.prototype.name=As.name;function mb(){}mb.prototype={parse:function(r,e,t){var n=this.domBuilder;n.startDocument(),xb(e,e={}),tC(r,e,t,n,this.errorHandler),n.endDocument()}};function tC(r,e,t,n,i){function a(U){if(U>65535){U-=65536;var O=55296+(U>>10),P=56320+(U&1023);return String.fromCharCode(O,P)}else return String.fromCharCode(U)}function s(U){var O=U.slice(1,-1);return Object.hasOwnProperty.call(t,O)?t[O]:O.charAt(0)==="#"?a(parseInt(O.substr(1).replace("x","0x"))):(i.error("entity not found:"+U),U)}function o(U){if(U>g){var O=r.substring(g,U).replace(/&#?\w+;/g,s);d&&c(g),n.characters(O,0,U-g),g=U}}function c(U,O){for(;U>=h&&(O=f.exec(r));)u=O.index,h=u+O[0].length,d.lineNumber++;d.columnNumber=U-u+1}for(var u=0,h=0,f=/.*(?:\r\n?|\n)|.*$/g,d=n.locator,p=[{currentNSMap:e}],m={},g=0;;){try{var x=r.indexOf("<",g);if(x<0){if(!r.substr(g).match(/^\s*$/)){var y=n.doc,b=y.createTextNode(r.substr(g));y.appendChild(b),n.currentElement=b}return}switch(x>g&&o(x),r.charAt(x+1)){case"/":var k=r.indexOf(">",x+3),v=r.substring(x+2,k).replace(/[ \t\n\r]+$/g,""),_=p.pop();k<0?(v=r.substring(x+2).replace(/[\s<].*/,""),i.error("end tag name: "+v+" is not complete:"+_.tagName),k=x+1+v.length):v.match(/\s</)&&(v=v.replace(/[\s<].*/,""),i.error("end tag name: "+v+" maybe not complete"),k=x+1+v.length);var A=_.localNSMap,E=_.tagName==v,T=E||_.tagName&&_.tagName.toLowerCase()==v.toLowerCase();if(T){if(n.endElement(_.uri,_.localName,v),A)for(var S in A)Object.prototype.hasOwnProperty.call(A,S)&&n.endPrefixMapping(S);E||i.fatalError("end tag name: "+v+" is not match the current start tagName:"+_.tagName)}else p.push(_);k++;break;case"?":d&&c(x),k=sC(r,x,n);break;case"!":d&&c(x),k=aC(r,x,n,i);break;default:d&&c(x);var C=new vb,F=p[p.length-1].currentNSMap,k=rC(r,x,C,F,s,i),D=C.length;if(!C.closed&&iC(r,k,C.tagName,m)&&(C.closed=!0,t.nbsp||i.warning("unclosed xml attribute")),d&&D){for(var B=pb(d,{}),q=0;q<D;q++){var j=C[q];c(j.offset),j.locator=pb(d,{})}n.locator=B,gb(C,n,F)&&p.push(C),n.locator=d}else gb(C,n,F)&&p.push(C);vc.isHTML(C.uri)&&!C.closed?k=nC(r,k,C.tagName,s,n):k++}}catch(U){if(U instanceof As)throw U;i.error("element parse error: "+U),k=-1}k>g?g=k:o(Math.max(x,g)+1)}}function pb(r,e){return e.lineNumber=r.lineNumber,e.columnNumber=r.columnNumber,e}function rC(r,e,t,n,i,a){function s(p,m,g){t.attributeNames.hasOwnProperty(p)&&a.fatalError("Attribute "+p+" redefined"),t.addValue(p,m.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,i),g)}for(var o,c,u=++e,h=gc;;){var f=r.charAt(u);switch(f){case"=":if(h===Fi)o=r.slice(e,u),h=mc;else if(h===Ds)h=mc;else throw new Error("attribute equal must after attrName");break;case"'":case'"':if(h===mc||h===Fi)if(h===Fi&&(a.warning('attribute value must after "="'),o=r.slice(e,u)),e=u+1,u=r.indexOf(f,e),u>0)c=r.slice(e,u),s(o,c,e-1),h=Es;else throw new Error("attribute value no end '"+f+"' match");else if(h==Ts)c=r.slice(e,u),s(o,c,e),a.warning('attribute "'+o+'" missed start quot('+f+")!!"),e=u+1,h=Es;else throw new Error('attribute value must after "="');break;case"/":switch(h){case gc:t.setTagName(r.slice(e,u));case Es:case xc:case Bh:h=Bh,t.closed=!0;case Ts:case Fi:break;case Ds:t.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return a.error("unexpected end of input"),h==gc&&t.setTagName(r.slice(e,u)),u;case">":switch(h){case gc:t.setTagName(r.slice(e,u));case Es:case xc:case Bh:break;case Ts:case Fi:c=r.slice(e,u),c.slice(-1)==="/"&&(t.closed=!0,c=c.slice(0,-1));case Ds:h===Ds&&(c=o),h==Ts?(a.warning('attribute "'+c+'" missed quot(")!'),s(o,c,e)):((!vc.isHTML(n[""])||!c.match(/^(?:disabled|checked|selected)$/i))&&a.warning('attribute "'+c+'" missed value!! "'+c+'" instead!!'),s(c,c,e));break;case mc:throw new Error("attribute value missed!!")}return u;case"\x80":f=" ";default:if(f<=" ")switch(h){case gc:t.setTagName(r.slice(e,u)),h=xc;break;case Fi:o=r.slice(e,u),h=Ds;break;case Ts:var c=r.slice(e,u);a.warning('attribute "'+c+'" missed quot(")!!'),s(o,c,e);case Es:h=xc;break}else switch(h){case Ds:var d=t.tagName;(!vc.isHTML(n[""])||!o.match(/^(?:disabled|checked|selected)$/i))&&a.warning('attribute "'+o+'" missed value!! "'+o+'" instead2!!'),s(o,o,e),e=u,h=Fi;break;case Es:a.warning('attribute space is required"'+o+'"!!');case xc:h=Fi,e=u;break;case mc:h=Ts,e=u;break;case Bh:throw new Error("elements closed character '/' and '>' must be connected to")}}u++}}function gb(r,e,t){for(var n=r.tagName,i=null,f=r.length;f--;){var a=r[f],s=a.qName,o=a.value,d=s.indexOf(":");if(d>0)var c=a.prefix=s.slice(0,d),u=s.slice(d+1),h=c==="xmlns"&&u;else u=s,c=null,h=s==="xmlns"&&"";a.localName=u,h!==!1&&(i==null&&(i={},xb(t,t={})),t[h]=i[h]=o,a.uri=vc.XMLNS,e.startPrefixMapping(h,o))}for(var f=r.length;f--;){a=r[f];var c=a.prefix;c&&(c==="xml"&&(a.uri=vc.XML),c!=="xmlns"&&(a.uri=t[c||""]))}var d=n.indexOf(":");d>0?(c=r.prefix=n.slice(0,d),u=r.localName=n.slice(d+1)):(c=null,u=r.localName=n);var p=r.uri=t[c||""];if(e.startElement(p,u,n,r),r.closed){if(e.endElement(p,u,n),i)for(c in i)Object.prototype.hasOwnProperty.call(i,c)&&e.endPrefixMapping(c)}else return r.currentNSMap=t,r.localNSMap=i,!0}function nC(r,e,t,n,i){if(/^(?:script|textarea)$/i.test(t)){var a=r.indexOf("</"+t+">",e),s=r.substring(e+1,a);if(/[&<]/.test(s))return/^script$/i.test(t)?(i.characters(s,0,s.length),a):(s=s.replace(/&#?\w+;/g,n),i.characters(s,0,s.length),a)}return e+1}function iC(r,e,t,n){var i=n[t];return i==null&&(i=r.lastIndexOf("</"+t+">"),i<e&&(i=r.lastIndexOf("</"+t)),n[t]=i),i<e}function xb(r,e){for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t])}function aC(r,e,t,n){var i=r.charAt(e+2);switch(i){case"-":if(r.charAt(e+3)==="-"){var a=r.indexOf("-->",e+4);return a>e?(t.comment(r,e+4,a-e-4),a+3):(n.error("Unclosed comment"),-1)}else return-1;default:if(r.substr(e+3,6)=="CDATA["){var a=r.indexOf("]]>",e+9);return t.startCDATA(),t.characters(r,e+9,a-e-9),t.endCDATA(),a+3}var s=oC(r,e),o=s.length;if(o>1&&/!doctype/i.test(s[0][0])){var c=s[1][0],u=!1,h=!1;o>3&&(/^public$/i.test(s[2][0])?(u=s[3][0],h=o>4&&s[4][0]):/^system$/i.test(s[2][0])&&(h=s[3][0]));var f=s[o-1];return t.startDTD(c,u,h),t.endDTD(),f.index+f[0].length}}return-1}function sC(r,e,t){var n=r.indexOf("?>",e);if(n){var i=r.substring(e,n).match(/^<\?(\S*)\s*([\s\S]*?)$/);if(i){var a=i[0].length;return t.processingInstruction(i[1],i[2]),n+2}else return-1}return-1}function vb(){this.attributeNames={}}vb.prototype={setTagName:function(r){if(!db.test(r))throw new Error("invalid tagName:"+r);this.tagName=r},addValue:function(r,e,t){if(!db.test(r))throw new Error("invalid attribute:"+r);this.attributeNames[r]=this.length,this[this.length++]={qName:r,value:e,offset:t}},length:0,getLocalName:function(r){return this[r].localName},getLocator:function(r){return this[r].locator},getQName:function(r){return this[r].qName},getURI:function(r){return this[r].uri},getValue:function(r){return this[r].value}};function oC(r,e){var t,n=[],i=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(i.lastIndex=e,i.exec(r);t=i.exec(r);)if(n.push(t),t[1])return n}$g.XMLReader=mb;$g.ParseError=As});var Ab=be(Ph=>{var cC=cc(),lC=Oh(),bb=hb(),Db=yb(),uC=lC.DOMImplementation,wb=cC.NAMESPACE,hC=Db.ParseError,fC=Db.XMLReader;function Tb(r){return r.replace(/\r[\n\u0085]/g,`
|
|
194
194
|
`).replace(/[\r\u0085\u2028]/g,`
|
|
195
195
|
`)}function Eb(r){this.options=r||{locator:{}}}Eb.prototype.parseFromString=function(r,e){var t=this.options,n=new fC,i=t.domBuilder||new yc,a=t.errorHandler,s=t.locator,o=t.xmlns||{},c=/\/x?html?$/.test(e),u=c?bb.HTML_ENTITIES:bb.XML_ENTITIES;s&&i.setDocumentLocator(s),n.errorHandler=dC(a,i,s),n.domBuilder=t.domBuilder||i,c&&(o[""]=wb.HTML),o.xml=o.xml||wb.XML;var h=t.normalizeLineEndings||Tb;return r&&typeof r=="string"?n.parse(h(r),o,u):n.errorHandler.error("invalid doc source"),i.doc};function dC(r,e,t){if(!r){if(e instanceof yc)return e;r=e}var n={},i=r instanceof Function;t=t||{};function a(s){var o=r[s];!o&&i&&(o=r.length==2?function(c){r(s,c)}:r),n[s]=o&&function(c){o("[xmldom "+s+"] "+c+qg(t))}||function(){}}return a("warning"),a("error"),a("fatalError"),n}function yc(){this.cdata=!1}function Ss(r,e){e.lineNumber=r.lineNumber,e.columnNumber=r.columnNumber}yc.prototype={startDocument:function(){this.doc=new uC().createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(r,e,t,n){var i=this.doc,a=i.createElementNS(r,t||e),s=n.length;Nh(this,a),this.currentElement=a,this.locator&&Ss(this.locator,a);for(var o=0;o<s;o++){var r=n.getURI(o),c=n.getValue(o),t=n.getQName(o),u=i.createAttributeNS(r,t);this.locator&&Ss(n.getLocator(o),u),u.value=u.nodeValue=c,a.setAttributeNode(u)}},endElement:function(r,e,t){var n=this.currentElement,i=n.tagName;this.currentElement=n.parentNode},startPrefixMapping:function(r,e){},endPrefixMapping:function(r){},processingInstruction:function(r,e){var t=this.doc.createProcessingInstruction(r,e);this.locator&&Ss(this.locator,t),Nh(this,t)},ignorableWhitespace:function(r,e,t){},characters:function(r,e,t){if(r=_b.apply(this,arguments),r){if(this.cdata)var n=this.doc.createCDATASection(r);else var n=this.doc.createTextNode(r);this.currentElement?this.currentElement.appendChild(n):/^\s*$/.test(r)&&this.doc.appendChild(n),this.locator&&Ss(this.locator,n)}},skippedEntity:function(r){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(r){(this.locator=r)&&(r.lineNumber=0)},comment:function(r,e,t){r=_b.apply(this,arguments);var n=this.doc.createComment(r);this.locator&&Ss(this.locator,n),Nh(this,n)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(r,e,t){var n=this.doc.implementation;if(n&&n.createDocumentType){var i=n.createDocumentType(r,e,t);this.locator&&Ss(this.locator,i),Nh(this,i),this.doc.doctype=i}},warning:function(r){console.warn("[xmldom warning] "+r,qg(this.locator))},error:function(r){console.error("[xmldom error] "+r,qg(this.locator))},fatalError:function(r){throw new hC(r,this.locator)}};function qg(r){if(r)return`
|
|
196
196
|
@`+(r.systemId||"")+"#[line:"+r.lineNumber+",col:"+r.columnNumber+"]"}function _b(r,e,t){return typeof r=="string"?r.substr(e,t):r.length>=e+t||e?new java.lang.String(r,e,t)+"":r}"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(r){yc.prototype[r]=function(){return null}});function Nh(r,e){r.currentElement?r.currentElement.appendChild(e):r.doc.appendChild(e)}Ph.__DOMHandler=yc;Ph.normalizeLineEndings=Tb;Ph.DOMParser=Eb});var Cb=be(Lh=>{var Sb=Oh();Lh.DOMImplementation=Sb.DOMImplementation;Lh.XMLSerializer=Sb.XMLSerializer;Lh.DOMParser=Ab().DOMParser});var Fb=be(Yg=>{var pC=Cb(),gC=Oh();function mC(r){var e=null,t=new pC.DOMParser({errorHandler:function(i,a){e={level:i,message:a}}}),n=t.parseFromString(r);if(e===null)return n;throw new Error(e.level+": "+e.message)}Yg.parseFromString=mC;Yg.Node=gC.Node});var Bb=be(Ob=>{var Kg=ei(),kb=(At(),Ft(Et)),Ib=Fb(),Rb=Rg(),xC=Rb.Element;Ob.readString=vC;var Ub=Ib.Node;function vC(r,e){e=e||{};try{var t=Ib.parseFromString(r,"text/xml")}catch(s){return Kg.reject(s)}if(t.documentElement.tagName==="parsererror")return Kg.resolve(new Error(t.documentElement.textContent));function n(s){switch(s.nodeType){case Ub.ELEMENT_NODE:return i(s);case Ub.TEXT_NODE:return Rb.text(s.nodeValue)}}function i(s){var o=a(s),c=[];kb.forEach(s.childNodes,function(h){var f=n(h);f&&c.push(f)});var u={};return kb.forEach(s.attributes,function(h){u[a(h)]=h.value}),new xC(o,u,c)}function a(s){if(s.namespaceURI){var o=e[s.namespaceURI],c;return o?c=o+":":c="{"+s.namespaceURI+"}",c+s.localName}else return s.localName}return Kg.resolve(n(t.documentElement))}});var ai=be((Nb,ki)=>{(function(){var r,e,t,n,i,a,s,o=[].slice,c={}.hasOwnProperty;r=function(){var u,h,f,d,p,m;if(m=arguments[0],p=2<=arguments.length?o.call(arguments,1):[],i(Object.assign))Object.assign.apply(null,arguments);else for(u=0,f=p.length;u<f;u++)if(d=p[u],d!=null)for(h in d)c.call(d,h)&&(m[h]=d[h]);return m},i=function(u){return!!u&&Object.prototype.toString.call(u)==="[object Function]"},a=function(u){var h;return!!u&&((h=typeof u)=="function"||h==="object")},t=function(u){return i(Array.isArray)?Array.isArray(u):Object.prototype.toString.call(u)==="[object Array]"},n=function(u){var h;if(t(u))return!u.length;for(h in u)if(c.call(u,h))return!1;return!0},s=function(u){var h,f;return a(u)&&(f=Object.getPrototypeOf(u))&&(h=f.constructor)&&typeof h=="function"&&h instanceof h&&Function.prototype.toString.call(h)===Function.prototype.toString.call(Object)},e=function(u){return i(u.valueOf)?u.valueOf():u},ki.exports.assign=r,ki.exports.isFunction=i,ki.exports.isObject=a,ki.exports.isArray=t,ki.exports.isEmpty=n,ki.exports.isPlainObject=s,ki.exports.getValue=e}).call(Nb)});var Zg=be((Pb,Lb)=>{(function(){var r;Lb.exports=r=(function(){function e(t,n,i){if(this.options=t.options,this.stringify=t.stringify,this.parent=t,n==null)throw new Error("Missing attribute name. "+this.debugInfo(n));if(i==null)throw new Error("Missing attribute value. "+this.debugInfo(n));this.name=this.stringify.attName(n),this.value=this.stringify.attValue(i)}return e.prototype.clone=function(){return Object.create(this)},e.prototype.toString=function(t){return this.options.writer.set(t).attribute(this)},e.prototype.debugInfo=function(t){return t=t||this.name,t==null?"parent: <"+this.parent.name+">":"attribute: {"+t+"}, parent: <"+this.parent.name+">"},e})()}).call(Pb)});var bc=be((Mb,Wb)=>{(function(){var r,e,t,n,i,a,s,o=function(u,h){for(var f in h)c.call(h,f)&&(u[f]=h[f]);function d(){this.constructor=u}return d.prototype=h.prototype,u.prototype=new d,u.__super__=h.prototype,u},c={}.hasOwnProperty;s=ai(),a=s.isObject,i=s.isFunction,n=s.getValue,t=Tr(),r=Zg(),Wb.exports=e=(function(u){o(h,u);function h(f,d,p){if(h.__super__.constructor.call(this,f),d==null)throw new Error("Missing element name. "+this.debugInfo());this.name=this.stringify.eleName(d),this.attributes={},p!=null&&this.attribute(p),f.isDocument&&(this.isRoot=!0,this.documentObject=f,f.rootObject=this)}return h.prototype.clone=function(){var f,d,p,m;p=Object.create(this),p.isRoot&&(p.documentObject=null),p.attributes={},m=this.attributes;for(d in m)c.call(m,d)&&(f=m[d],p.attributes[d]=f.clone());return p.children=[],this.children.forEach(function(g){var x;return x=g.clone(),x.parent=p,p.children.push(x)}),p},h.prototype.attribute=function(f,d){var p,m;if(f!=null&&(f=n(f)),a(f))for(p in f)c.call(f,p)&&(m=f[p],this.attribute(p,m));else i(d)&&(d=d.apply()),(!this.options.skipNullAttributes||d!=null)&&(this.attributes[f]=new r(this,f,d));return this},h.prototype.removeAttribute=function(f){var d,p,m;if(f==null)throw new Error("Missing attribute name. "+this.debugInfo());if(f=n(f),Array.isArray(f))for(p=0,m=f.length;p<m;p++)d=f[p],delete this.attributes[d];else delete this.attributes[f];return this},h.prototype.toString=function(f){return this.options.writer.set(f).element(this)},h.prototype.att=function(f,d){return this.attribute(f,d)},h.prototype.a=function(f,d){return this.attribute(f,d)},h})(t)}).call(Mb)});var wc=be((Hb,Vb)=>{(function(){var r,e,t=function(i,a){for(var s in a)n.call(a,s)&&(i[s]=a[s]);function o(){this.constructor=i}return o.prototype=a.prototype,i.prototype=new o,i.__super__=a.prototype,i},n={}.hasOwnProperty;e=Tr(),Vb.exports=r=(function(i){t(a,i);function a(s,o){if(a.__super__.constructor.call(this,s),o==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.text=this.stringify.cdata(o)}return a.prototype.clone=function(){return Object.create(this)},a.prototype.toString=function(s){return this.options.writer.set(s).cdata(this)},a})(e)}).call(Hb)});var _c=be((zb,jb)=>{(function(){var r,e,t=function(i,a){for(var s in a)n.call(a,s)&&(i[s]=a[s]);function o(){this.constructor=i}return o.prototype=a.prototype,i.prototype=new o,i.__super__=a.prototype,i},n={}.hasOwnProperty;e=Tr(),jb.exports=r=(function(i){t(a,i);function a(s,o){if(a.__super__.constructor.call(this,s),o==null)throw new Error("Missing comment text. "+this.debugInfo());this.text=this.stringify.comment(o)}return a.prototype.clone=function(){return Object.create(this)},a.prototype.toString=function(s){return this.options.writer.set(s).comment(this)},a})(e)}).call(zb)});var Dc=be((Gb,Xb)=>{(function(){var r,e,t,n=function(a,s){for(var o in s)i.call(s,o)&&(a[o]=s[o]);function c(){this.constructor=a}return c.prototype=s.prototype,a.prototype=new c,a.__super__=s.prototype,a},i={}.hasOwnProperty;t=ai().isObject,e=Tr(),Xb.exports=r=(function(a){n(s,a);function s(o,c,u,h){var f;s.__super__.constructor.call(this,o),t(c)&&(f=c,c=f.version,u=f.encoding,h=f.standalone),c||(c="1.0"),this.version=this.stringify.xmlVersion(c),u!=null&&(this.encoding=this.stringify.xmlEncoding(u)),h!=null&&(this.standalone=this.stringify.xmlStandalone(h))}return s.prototype.toString=function(o){return this.options.writer.set(o).declaration(this)},s})(e)}).call(Gb)});var Tc=be(($b,qb)=>{(function(){var r,e,t=function(i,a){for(var s in a)n.call(a,s)&&(i[s]=a[s]);function o(){this.constructor=i}return o.prototype=a.prototype,i.prototype=new o,i.__super__=a.prototype,i},n={}.hasOwnProperty;e=Tr(),qb.exports=r=(function(i){t(a,i);function a(s,o,c,u,h,f){if(a.__super__.constructor.call(this,s),o==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(c==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(o));if(!u)throw new Error("Missing DTD attribute type. "+this.debugInfo(o));if(!h)throw new Error("Missing DTD attribute default. "+this.debugInfo(o));if(h.indexOf("#")!==0&&(h="#"+h),!h.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(o));if(f&&!h.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(o));this.elementName=this.stringify.eleName(o),this.attributeName=this.stringify.attName(c),this.attributeType=this.stringify.dtdAttType(u),this.defaultValue=this.stringify.dtdAttDefault(f),this.defaultValueType=h}return a.prototype.toString=function(s){return this.options.writer.set(s).dtdAttList(this)},a})(e)}).call($b)});var Ec=be((Yb,Kb)=>{(function(){var r,e,t,n=function(a,s){for(var o in s)i.call(s,o)&&(a[o]=s[o]);function c(){this.constructor=a}return c.prototype=s.prototype,a.prototype=new c,a.__super__=s.prototype,a},i={}.hasOwnProperty;t=ai().isObject,e=Tr(),Kb.exports=r=(function(a){n(s,a);function s(o,c,u,h){if(s.__super__.constructor.call(this,o),u==null)throw new Error("Missing DTD entity name. "+this.debugInfo(u));if(h==null)throw new Error("Missing DTD entity value. "+this.debugInfo(u));if(this.pe=!!c,this.name=this.stringify.eleName(u),!t(h))this.value=this.stringify.dtdEntityValue(h);else{if(!h.pubID&&!h.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(u));if(h.pubID&&!h.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(u));if(h.pubID!=null&&(this.pubID=this.stringify.dtdPubID(h.pubID)),h.sysID!=null&&(this.sysID=this.stringify.dtdSysID(h.sysID)),h.nData!=null&&(this.nData=this.stringify.dtdNData(h.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(u))}}return s.prototype.toString=function(o){return this.options.writer.set(o).dtdEntity(this)},s})(e)}).call(Yb)});var Ac=be((Zb,Jb)=>{(function(){var r,e,t=function(i,a){for(var s in a)n.call(a,s)&&(i[s]=a[s]);function o(){this.constructor=i}return o.prototype=a.prototype,i.prototype=new o,i.__super__=a.prototype,i},n={}.hasOwnProperty;e=Tr(),Jb.exports=r=(function(i){t(a,i);function a(s,o,c){if(a.__super__.constructor.call(this,s),o==null)throw new Error("Missing DTD element name. "+this.debugInfo());c||(c="(#PCDATA)"),Array.isArray(c)&&(c="("+c.join(",")+")"),this.name=this.stringify.eleName(o),this.value=this.stringify.dtdElementValue(c)}return a.prototype.toString=function(s){return this.options.writer.set(s).dtdElement(this)},a})(e)}).call(Zb)});var Sc=be((Qb,ew)=>{(function(){var r,e,t=function(i,a){for(var s in a)n.call(a,s)&&(i[s]=a[s]);function o(){this.constructor=i}return o.prototype=a.prototype,i.prototype=new o,i.__super__=a.prototype,i},n={}.hasOwnProperty;e=Tr(),ew.exports=r=(function(i){t(a,i);function a(s,o,c){if(a.__super__.constructor.call(this,s),o==null)throw new Error("Missing DTD notation name. "+this.debugInfo(o));if(!c.pubID&&!c.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(o));this.name=this.stringify.eleName(o),c.pubID!=null&&(this.pubID=this.stringify.dtdPubID(c.pubID)),c.sysID!=null&&(this.sysID=this.stringify.dtdSysID(c.sysID))}return a.prototype.toString=function(s){return this.options.writer.set(s).dtdNotation(this)},a})(e)}).call(Qb)});var Cc=be((tw,rw)=>{(function(){var r,e,t,n,i,a,s,o=function(u,h){for(var f in h)c.call(h,f)&&(u[f]=h[f]);function d(){this.constructor=u}return d.prototype=h.prototype,u.prototype=new d,u.__super__=h.prototype,u},c={}.hasOwnProperty;s=ai().isObject,a=Tr(),r=Tc(),t=Ec(),e=Ac(),n=Sc(),rw.exports=i=(function(u){o(h,u);function h(f,d,p){var m,g;h.__super__.constructor.call(this,f),this.name="!DOCTYPE",this.documentObject=f,s(d)&&(m=d,d=m.pubID,p=m.sysID),p==null&&(g=[d,p],p=g[0],d=g[1]),d!=null&&(this.pubID=this.stringify.dtdPubID(d)),p!=null&&(this.sysID=this.stringify.dtdSysID(p))}return h.prototype.element=function(f,d){var p;return p=new e(this,f,d),this.children.push(p),this},h.prototype.attList=function(f,d,p,m,g){var x;return x=new r(this,f,d,p,m,g),this.children.push(x),this},h.prototype.entity=function(f,d){var p;return p=new t(this,!1,f,d),this.children.push(p),this},h.prototype.pEntity=function(f,d){var p;return p=new t(this,!0,f,d),this.children.push(p),this},h.prototype.notation=function(f,d){var p;return p=new n(this,f,d),this.children.push(p),this},h.prototype.toString=function(f){return this.options.writer.set(f).docType(this)},h.prototype.ele=function(f,d){return this.element(f,d)},h.prototype.att=function(f,d,p,m,g){return this.attList(f,d,p,m,g)},h.prototype.ent=function(f,d){return this.entity(f,d)},h.prototype.pent=function(f,d){return this.pEntity(f,d)},h.prototype.not=function(f,d){return this.notation(f,d)},h.prototype.up=function(){return this.root()||this.documentObject},h})(a)}).call(tw)});var Fc=be((nw,iw)=>{(function(){var r,e,t=function(i,a){for(var s in a)n.call(a,s)&&(i[s]=a[s]);function o(){this.constructor=i}return o.prototype=a.prototype,i.prototype=new o,i.__super__=a.prototype,i},n={}.hasOwnProperty;r=Tr(),iw.exports=e=(function(i){t(a,i);function a(s,o){if(a.__super__.constructor.call(this,s),o==null)throw new Error("Missing raw text. "+this.debugInfo());this.value=this.stringify.raw(o)}return a.prototype.clone=function(){return Object.create(this)},a.prototype.toString=function(s){return this.options.writer.set(s).raw(this)},a})(r)}).call(nw)});var kc=be((aw,sw)=>{(function(){var r,e,t=function(i,a){for(var s in a)n.call(a,s)&&(i[s]=a[s]);function o(){this.constructor=i}return o.prototype=a.prototype,i.prototype=new o,i.__super__=a.prototype,i},n={}.hasOwnProperty;r=Tr(),sw.exports=e=(function(i){t(a,i);function a(s,o){if(a.__super__.constructor.call(this,s),o==null)throw new Error("Missing element text. "+this.debugInfo());this.value=this.stringify.eleText(o)}return a.prototype.clone=function(){return Object.create(this)},a.prototype.toString=function(s){return this.options.writer.set(s).text(this)},a})(r)}).call(aw)});var Uc=be((ow,cw)=>{(function(){var r,e,t=function(i,a){for(var s in a)n.call(a,s)&&(i[s]=a[s]);function o(){this.constructor=i}return o.prototype=a.prototype,i.prototype=new o,i.__super__=a.prototype,i},n={}.hasOwnProperty;r=Tr(),cw.exports=e=(function(i){t(a,i);function a(s,o,c){if(a.__super__.constructor.call(this,s),o==null)throw new Error("Missing instruction target. "+this.debugInfo());this.target=this.stringify.insTarget(o),c&&(this.value=this.stringify.insValue(c))}return a.prototype.clone=function(){return Object.create(this)},a.prototype.toString=function(s){return this.options.writer.set(s).processingInstruction(this)},a})(r)}).call(ow)});var Mh=be((lw,uw)=>{(function(){var r,e,t=function(i,a){for(var s in a)n.call(a,s)&&(i[s]=a[s]);function o(){this.constructor=i}return o.prototype=a.prototype,i.prototype=new o,i.__super__=a.prototype,i},n={}.hasOwnProperty;e=Tr(),uw.exports=r=(function(i){t(a,i);function a(s){a.__super__.constructor.call(this,s),this.isDummy=!0}return a.prototype.clone=function(){return Object.create(this)},a.prototype.toString=function(s){return""},a})(e)}).call(lw)});var Tr=be((hw,fw)=>{(function(){var r,e,t,n,i,a,s,o,c,u,h,f,d,p,m,g={}.hasOwnProperty;m=ai(),p=m.isObject,d=m.isFunction,f=m.isEmpty,h=m.getValue,a=null,r=null,e=null,t=null,n=null,c=null,u=null,o=null,i=null,fw.exports=s=(function(){function x(y){this.parent=y,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.children=[],a||(a=bc(),r=wc(),e=_c(),t=Dc(),n=Cc(),c=Fc(),u=kc(),o=Uc(),i=Mh())}return x.prototype.element=function(y,b,v){var _,A,E,T,S,C,F,k,D,B,q;if(C=null,b===null&&v==null&&(D=[{},null],b=D[0],v=D[1]),b==null&&(b={}),b=h(b),p(b)||(B=[b,v],v=B[0],b=B[1]),y!=null&&(y=h(y)),Array.isArray(y))for(E=0,F=y.length;E<F;E++)A=y[E],C=this.element(A);else if(d(y))C=this.element(y.apply());else if(p(y)){for(S in y)if(g.call(y,S))if(q=y[S],d(q)&&(q=q.apply()),p(q)&&f(q)&&(q=null),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&S.indexOf(this.stringify.convertAttKey)===0)C=this.attribute(S.substr(this.stringify.convertAttKey.length),q);else if(!this.options.separateArrayItems&&Array.isArray(q))for(T=0,k=q.length;T<k;T++)A=q[T],_={},_[S]=A,C=this.element(_);else p(q)?(C=this.element(S),C.element(q)):C=this.element(S,q)}else this.options.skipNullNodes&&v===null?C=this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&y.indexOf(this.stringify.convertTextKey)===0?C=this.text(v):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&y.indexOf(this.stringify.convertCDataKey)===0?C=this.cdata(v):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&y.indexOf(this.stringify.convertCommentKey)===0?C=this.comment(v):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&y.indexOf(this.stringify.convertRawKey)===0?C=this.raw(v):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&y.indexOf(this.stringify.convertPIKey)===0?C=this.instruction(y.substr(this.stringify.convertPIKey.length),v):C=this.node(y,b,v);if(C==null)throw new Error("Could not create any elements with: "+y+". "+this.debugInfo());return C},x.prototype.insertBefore=function(y,b,v){var _,A,E;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(y));return A=this.parent.children.indexOf(this),E=this.parent.children.splice(A),_=this.parent.element(y,b,v),Array.prototype.push.apply(this.parent.children,E),_},x.prototype.insertAfter=function(y,b,v){var _,A,E;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(y));return A=this.parent.children.indexOf(this),E=this.parent.children.splice(A+1),_=this.parent.element(y,b,v),Array.prototype.push.apply(this.parent.children,E),_},x.prototype.remove=function(){var y,b;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return y=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[y,y-y+1].concat(b=[])),this.parent},x.prototype.node=function(y,b,v){var _,A;return y!=null&&(y=h(y)),b||(b={}),b=h(b),p(b)||(A=[b,v],v=A[0],b=A[1]),_=new a(this,y,b),v!=null&&_.text(v),this.children.push(_),_},x.prototype.text=function(y){var b;return b=new u(this,y),this.children.push(b),this},x.prototype.cdata=function(y){var b;return b=new r(this,y),this.children.push(b),this},x.prototype.comment=function(y){var b;return b=new e(this,y),this.children.push(b),this},x.prototype.commentBefore=function(y){var b,v,_;return v=this.parent.children.indexOf(this),_=this.parent.children.splice(v),b=this.parent.comment(y),Array.prototype.push.apply(this.parent.children,_),this},x.prototype.commentAfter=function(y){var b,v,_;return v=this.parent.children.indexOf(this),_=this.parent.children.splice(v+1),b=this.parent.comment(y),Array.prototype.push.apply(this.parent.children,_),this},x.prototype.raw=function(y){var b;return b=new c(this,y),this.children.push(b),this},x.prototype.dummy=function(){var y;return y=new i(this),this.children.push(y),y},x.prototype.instruction=function(y,b){var v,_,A,E,T;if(y!=null&&(y=h(y)),b!=null&&(b=h(b)),Array.isArray(y))for(E=0,T=y.length;E<T;E++)v=y[E],this.instruction(v);else if(p(y))for(v in y)g.call(y,v)&&(_=y[v],this.instruction(v,_));else d(b)&&(b=b.apply()),A=new o(this,y,b),this.children.push(A);return this},x.prototype.instructionBefore=function(y,b){var v,_,A;return _=this.parent.children.indexOf(this),A=this.parent.children.splice(_),v=this.parent.instruction(y,b),Array.prototype.push.apply(this.parent.children,A),this},x.prototype.instructionAfter=function(y,b){var v,_,A;return _=this.parent.children.indexOf(this),A=this.parent.children.splice(_+1),v=this.parent.instruction(y,b),Array.prototype.push.apply(this.parent.children,A),this},x.prototype.declaration=function(y,b,v){var _,A;return _=this.document(),A=new t(_,y,b,v),_.children[0]instanceof t?_.children[0]=A:_.children.unshift(A),_.root()||_},x.prototype.doctype=function(y,b){var v,_,A,E,T,S,C,F,k,D;for(_=this.document(),A=new n(_,y,b),k=_.children,E=T=0,C=k.length;T<C;E=++T)if(v=k[E],v instanceof n)return _.children[E]=A,A;for(D=_.children,E=S=0,F=D.length;S<F;E=++S)if(v=D[E],v.isRoot)return _.children.splice(E,0,A),A;return _.children.push(A),A},x.prototype.up=function(){if(this.isRoot)throw new Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent},x.prototype.root=function(){var y;for(y=this;y;){if(y.isDocument)return y.rootObject;if(y.isRoot)return y;y=y.parent}},x.prototype.document=function(){var y;for(y=this;y;){if(y.isDocument)return y;y=y.parent}},x.prototype.end=function(y){return this.document().end(y)},x.prototype.prev=function(){var y;for(y=this.parent.children.indexOf(this);y>0&&this.parent.children[y-1].isDummy;)y=y-1;if(y<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[y-1]},x.prototype.next=function(){var y;for(y=this.parent.children.indexOf(this);y<this.parent.children.length-1&&this.parent.children[y+1].isDummy;)y=y+1;if(y===-1||y===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[y+1]},x.prototype.importDocument=function(y){var b;return b=y.root().clone(),b.parent=this,b.isRoot=!1,this.children.push(b),this},x.prototype.debugInfo=function(y){var b,v;return y=y||this.name,y==null&&!((b=this.parent)!=null&&b.name)?"":y==null?"parent: <"+this.parent.name+">":(v=this.parent)!=null&&v.name?"node: <"+y+">, parent: <"+this.parent.name+">":"node: <"+y+">"},x.prototype.ele=function(y,b,v){return this.element(y,b,v)},x.prototype.nod=function(y,b,v){return this.node(y,b,v)},x.prototype.txt=function(y){return this.text(y)},x.prototype.dat=function(y){return this.cdata(y)},x.prototype.com=function(y){return this.comment(y)},x.prototype.ins=function(y,b){return this.instruction(y,b)},x.prototype.doc=function(){return this.document()},x.prototype.dec=function(y,b,v){return this.declaration(y,b,v)},x.prototype.dtd=function(y,b){return this.doctype(y,b)},x.prototype.e=function(y,b,v){return this.element(y,b,v)},x.prototype.n=function(y,b,v){return this.node(y,b,v)},x.prototype.t=function(y){return this.text(y)},x.prototype.d=function(y){return this.cdata(y)},x.prototype.c=function(y){return this.comment(y)},x.prototype.r=function(y){return this.raw(y)},x.prototype.i=function(y,b){return this.instruction(y,b)},x.prototype.u=function(){return this.up()},x.prototype.importXMLBuilder=function(y){return this.importDocument(y)},x})()}).call(hw)});var Jg=be((dw,pw)=>{(function(){var r,e=function(n,i){return function(){return n.apply(i,arguments)}},t={}.hasOwnProperty;pw.exports=r=(function(){function n(i){this.assertLegalChar=e(this.assertLegalChar,this);var a,s,o;i||(i={}),this.noDoubleEncoding=i.noDoubleEncoding,s=i.stringify||{};for(a in s)t.call(s,a)&&(o=s[a],this[a]=o)}return n.prototype.eleName=function(i){return i=""+i||"",this.assertLegalChar(i)},n.prototype.eleText=function(i){return i=""+i||"",this.assertLegalChar(this.elEscape(i))},n.prototype.cdata=function(i){return i=""+i||"",i=i.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(i)},n.prototype.comment=function(i){if(i=""+i||"",i.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+i);return this.assertLegalChar(i)},n.prototype.raw=function(i){return""+i||""},n.prototype.attName=function(i){return i=""+i||""},n.prototype.attValue=function(i){return i=""+i||"",this.attEscape(i)},n.prototype.insTarget=function(i){return""+i||""},n.prototype.insValue=function(i){if(i=""+i||"",i.match(/\?>/))throw new Error("Invalid processing instruction value: "+i);return i},n.prototype.xmlVersion=function(i){if(i=""+i||"",!i.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+i);return i},n.prototype.xmlEncoding=function(i){if(i=""+i||"",!i.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+i);return i},n.prototype.xmlStandalone=function(i){return i?"yes":"no"},n.prototype.dtdPubID=function(i){return""+i||""},n.prototype.dtdSysID=function(i){return""+i||""},n.prototype.dtdElementValue=function(i){return""+i||""},n.prototype.dtdAttType=function(i){return""+i||""},n.prototype.dtdAttDefault=function(i){return i!=null?""+i||"":i},n.prototype.dtdEntityValue=function(i){return""+i||""},n.prototype.dtdNData=function(i){return""+i||""},n.prototype.convertAttKey="@",n.prototype.convertPIKey="?",n.prototype.convertTextKey="#text",n.prototype.convertCDataKey="#cdata",n.prototype.convertCommentKey="#comment",n.prototype.convertRawKey="#raw",n.prototype.assertLegalChar=function(i){var a;if(a=i.match(/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),a)throw new Error("Invalid character in string: "+i+" at index "+a.index);return i},n.prototype.elEscape=function(i){var a;return a=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,i.replace(a,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
")},n.prototype.attEscape=function(i){var a;return a=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,i.replace(a,"&").replace(/</g,"<").replace(/"/g,""").replace(/\t/g,"	").replace(/\n/g,"
").replace(/\r/g,"
")},n})()}).call(dw)});var Qg=be((gw,mw)=>{(function(){var r,e={}.hasOwnProperty;mw.exports=r=(function(){function t(n){var i,a,s,o,c,u,h,f,d;n||(n={}),this.pretty=n.pretty||!1,this.allowEmpty=(a=n.allowEmpty)!=null?a:!1,this.pretty?(this.indent=(s=n.indent)!=null?s:" ",this.newline=(o=n.newline)!=null?o:`
|
|
197
197
|
`,this.offset=(c=n.offset)!=null?c:0,this.dontprettytextnodes=(u=n.dontprettytextnodes)!=null?u:0):(this.indent="",this.newline="",this.offset=0,this.dontprettytextnodes=0),this.spacebeforeslash=(h=n.spacebeforeslash)!=null?h:"",this.spacebeforeslash===!0&&(this.spacebeforeslash=" "),this.newlinedefault=this.newline,this.prettydefault=this.pretty,f=n.writer||{};for(i in f)e.call(f,i)&&(d=f[i],this[i]=d)}return t.prototype.set=function(n){var i,a,s;n||(n={}),"pretty"in n&&(this.pretty=n.pretty),"allowEmpty"in n&&(this.allowEmpty=n.allowEmpty),this.pretty?(this.indent="indent"in n?n.indent:" ",this.newline="newline"in n?n.newline:`
|
|
198
198
|
`,this.offset="offset"in n?n.offset:0,this.dontprettytextnodes="dontprettytextnodes"in n?n.dontprettytextnodes:0):(this.indent="",this.newline="",this.offset=0,this.dontprettytextnodes=0),this.spacebeforeslash="spacebeforeslash"in n?n.spacebeforeslash:"",this.spacebeforeslash===!0&&(this.spacebeforeslash=" "),this.newlinedefault=this.newline,this.prettydefault=this.pretty,a=n.writer||{};for(i in a)e.call(a,i)&&(s=a[i],this[i]=s);return this},t.prototype.space=function(n){var i;return this.pretty?(i=(n||0)+this.offset+1,i>0?new Array(i).join(this.indent):""):""},t})()}).call(gw)});var Wh=be((xw,vw)=>{(function(){var r,e,t,n,i,a,s,o,c,u,h,f,d,p,m,g=function(y,b){for(var v in b)x.call(b,v)&&(y[v]=b[v]);function _(){this.constructor=y}return _.prototype=b.prototype,y.prototype=new _,y.__super__=b.prototype,y},x={}.hasOwnProperty;s=Dc(),o=Cc(),r=wc(),e=_c(),u=bc(),f=Fc(),p=kc(),h=Uc(),c=Mh(),t=Tc(),n=Ac(),i=Ec(),a=Sc(),m=Qg(),vw.exports=d=(function(y){g(b,y);function b(v){b.__super__.constructor.call(this,v)}return b.prototype.document=function(v){var _,A,E,T,S;for(this.textispresent=!1,T="",S=v.children,A=0,E=S.length;A<E;A++)_=S[A],!(_ instanceof c)&&(T+=(function(){switch(!1){case!(_ instanceof s):return this.declaration(_);case!(_ instanceof o):return this.docType(_);case!(_ instanceof e):return this.comment(_);case!(_ instanceof h):return this.processingInstruction(_);default:return this.element(_,0)}}).call(this));return this.pretty&&T.slice(-this.newline.length)===this.newline&&(T=T.slice(0,-this.newline.length)),T},b.prototype.attribute=function(v){return" "+v.name+'="'+v.value+'"'},b.prototype.cdata=function(v,_){return this.space(_)+"<![CDATA["+v.text+"]]>"+this.newline},b.prototype.comment=function(v,_){return this.space(_)+"<!-- "+v.text+" -->"+this.newline},b.prototype.declaration=function(v,_){var A;return A=this.space(_),A+='<?xml version="'+v.version+'"',v.encoding!=null&&(A+=' encoding="'+v.encoding+'"'),v.standalone!=null&&(A+=' standalone="'+v.standalone+'"'),A+=this.spacebeforeslash+"?>",A+=this.newline,A},b.prototype.docType=function(v,_){var A,E,T,S,C;if(_||(_=0),S=this.space(_),S+="<!DOCTYPE "+v.root().name,v.pubID&&v.sysID?S+=' PUBLIC "'+v.pubID+'" "'+v.sysID+'"':v.sysID&&(S+=' SYSTEM "'+v.sysID+'"'),v.children.length>0){for(S+=" [",S+=this.newline,C=v.children,E=0,T=C.length;E<T;E++)A=C[E],S+=(function(){switch(!1){case!(A instanceof t):return this.dtdAttList(A,_+1);case!(A instanceof n):return this.dtdElement(A,_+1);case!(A instanceof i):return this.dtdEntity(A,_+1);case!(A instanceof a):return this.dtdNotation(A,_+1);case!(A instanceof r):return this.cdata(A,_+1);case!(A instanceof e):return this.comment(A,_+1);case!(A instanceof h):return this.processingInstruction(A,_+1);default:throw new Error("Unknown DTD node type: "+A.constructor.name)}}).call(this);S+="]"}return S+=this.spacebeforeslash+">",S+=this.newline,S},b.prototype.element=function(v,_){var A,E,T,S,C,F,k,D,B,q,j,U,O;_||(_=0),O=!1,this.textispresent?(this.newline="",this.pretty=!1):(this.newline=this.newlinedefault,this.pretty=this.prettydefault),U=this.space(_),D="",D+=U+"<"+v.name,B=v.attributes;for(k in B)x.call(B,k)&&(A=B[k],D+=this.attribute(A));if(v.children.length===0||v.children.every(function(P){return P.value===""}))this.allowEmpty?D+="></"+v.name+">"+this.newline:D+=this.spacebeforeslash+"/>"+this.newline;else if(this.pretty&&v.children.length===1&&v.children[0].value!=null)D+=">",D+=v.children[0].value,D+="</"+v.name+">"+this.newline;else{if(this.dontprettytextnodes){for(q=v.children,T=0,C=q.length;T<C;T++)if(E=q[T],E.value!=null){this.textispresent++,O=!0;break}}for(this.textispresent&&(this.newline="",this.pretty=!1,U=this.space(_)),D+=">"+this.newline,j=v.children,S=0,F=j.length;S<F;S++)E=j[S],D+=(function(){switch(!1){case!(E instanceof r):return this.cdata(E,_+1);case!(E instanceof e):return this.comment(E,_+1);case!(E instanceof u):return this.element(E,_+1);case!(E instanceof f):return this.raw(E,_+1);case!(E instanceof p):return this.text(E,_+1);case!(E instanceof h):return this.processingInstruction(E,_+1);case!(E instanceof c):return"";default:throw new Error("Unknown XML node type: "+E.constructor.name)}}).call(this);O&&this.textispresent--,this.textispresent||(this.newline=this.newlinedefault,this.pretty=this.prettydefault),D+=U+"</"+v.name+">"+this.newline}return D},b.prototype.processingInstruction=function(v,_){var A;return A=this.space(_)+"<?"+v.target,v.value&&(A+=" "+v.value),A+=this.spacebeforeslash+"?>"+this.newline,A},b.prototype.raw=function(v,_){return this.space(_)+v.value+this.newline},b.prototype.text=function(v,_){return this.space(_)+v.value+this.newline},b.prototype.dtdAttList=function(v,_){var A;return A=this.space(_)+"<!ATTLIST "+v.elementName+" "+v.attributeName+" "+v.attributeType,v.defaultValueType!=="#DEFAULT"&&(A+=" "+v.defaultValueType),v.defaultValue&&(A+=' "'+v.defaultValue+'"'),A+=this.spacebeforeslash+">"+this.newline,A},b.prototype.dtdElement=function(v,_){return this.space(_)+"<!ELEMENT "+v.name+" "+v.value+this.spacebeforeslash+">"+this.newline},b.prototype.dtdEntity=function(v,_){var A;return A=this.space(_)+"<!ENTITY",v.pe&&(A+=" %"),A+=" "+v.name,v.value?A+=' "'+v.value+'"':(v.pubID&&v.sysID?A+=' PUBLIC "'+v.pubID+'" "'+v.sysID+'"':v.sysID&&(A+=' SYSTEM "'+v.sysID+'"'),v.nData&&(A+=" NDATA "+v.nData)),A+=this.spacebeforeslash+">"+this.newline,A},b.prototype.dtdNotation=function(v,_){var A;return A=this.space(_)+"<!NOTATION "+v.name,v.pubID&&v.sysID?A+=' PUBLIC "'+v.pubID+'" "'+v.sysID+'"':v.pubID?A+=' PUBLIC "'+v.pubID+'"':v.sysID&&(A+=' SYSTEM "'+v.sysID+'"'),A+=this.spacebeforeslash+">"+this.newline,A},b.prototype.openNode=function(v,_){var A,E,T,S;if(_||(_=0),v instanceof u){T=this.space(_)+"<"+v.name,S=v.attributes;for(E in S)x.call(S,E)&&(A=S[E],T+=this.attribute(A));return T+=(v.children?">":"/>")+this.newline,T}else return T=this.space(_)+"<!DOCTYPE "+v.rootNodeName,v.pubID&&v.sysID?T+=' PUBLIC "'+v.pubID+'" "'+v.sysID+'"':v.sysID&&(T+=' SYSTEM "'+v.sysID+'"'),T+=(v.children?" [":">")+this.newline,T},b.prototype.closeNode=function(v,_){switch(_||(_=0),!1){case!(v instanceof u):return this.space(_)+"</"+v.name+">"+this.newline;case!(v instanceof o):return this.space(_)+"]>"+this.newline}},b})(m)}).call(xw)});var ww=be((yw,bw)=>{(function(){var r,e,t,n,i,a=function(o,c){for(var u in c)s.call(c,u)&&(o[u]=c[u]);function h(){this.constructor=o}return h.prototype=c.prototype,o.prototype=new h,o.__super__=c.prototype,o},s={}.hasOwnProperty;i=ai().isPlainObject,e=Tr(),n=Jg(),t=Wh(),bw.exports=r=(function(o){a(c,o);function c(u){c.__super__.constructor.call(this,null),this.name="?xml",u||(u={}),u.writer||(u.writer=new t),this.options=u,this.stringify=new n(u),this.isDocument=!0}return c.prototype.end=function(u){var h;return u?i(u)&&(h=u,u=this.options.writer.set(h)):u=this.options.writer,u.document(this)},c.prototype.toString=function(u){return this.options.writer.set(u).document(this)},c})(e)}).call(yw)});var Tw=be((_w,Dw)=>{(function(){var r,e,t,n,i,a,s,o,c,u,h,f,d,p,m,g,x,y,b,v,_,A={}.hasOwnProperty;_=ai(),b=_.isObject,y=_.isFunction,v=_.isPlainObject,x=_.getValue,h=bc(),e=wc(),t=_c(),d=Fc(),g=kc(),f=Uc(),o=Dc(),c=Cc(),n=Tc(),a=Ec(),i=Ac(),s=Sc(),r=Zg(),m=Jg(),p=Wh(),Dw.exports=u=(function(){function E(T,S,C){var F;this.name="?xml",T||(T={}),T.writer?v(T.writer)&&(F=T.writer,T.writer=new p(F)):T.writer=new p(T),this.options=T,this.writer=T.writer,this.stringify=new m(T),this.onDataCallback=S||function(){},this.onEndCallback=C||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return E.prototype.node=function(T,S,C){var F,k;if(T==null)throw new Error("Missing node name.");if(this.root&&this.currentLevel===-1)throw new Error("Document can only have one root node. "+this.debugInfo(T));return this.openCurrent(),T=x(T),S===null&&C==null&&(F=[{},null],S=F[0],C=F[1]),S==null&&(S={}),S=x(S),b(S)||(k=[S,C],C=k[0],S=k[1]),this.currentNode=new h(this,T,S),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,C!=null&&this.text(C),this},E.prototype.element=function(T,S,C){return this.currentNode&&this.currentNode instanceof c?this.dtdElement.apply(this,arguments):this.node(T,S,C)},E.prototype.attribute=function(T,S){var C,F;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(T));if(T!=null&&(T=x(T)),b(T))for(C in T)A.call(T,C)&&(F=T[C],this.attribute(C,F));else y(S)&&(S=S.apply()),(!this.options.skipNullAttributes||S!=null)&&(this.currentNode.attributes[T]=new r(this,T,S));return this},E.prototype.text=function(T){var S;return this.openCurrent(),S=new g(this,T),this.onData(this.writer.text(S,this.currentLevel+1),this.currentLevel+1),this},E.prototype.cdata=function(T){var S;return this.openCurrent(),S=new e(this,T),this.onData(this.writer.cdata(S,this.currentLevel+1),this.currentLevel+1),this},E.prototype.comment=function(T){var S;return this.openCurrent(),S=new t(this,T),this.onData(this.writer.comment(S,this.currentLevel+1),this.currentLevel+1),this},E.prototype.raw=function(T){var S;return this.openCurrent(),S=new d(this,T),this.onData(this.writer.raw(S,this.currentLevel+1),this.currentLevel+1),this},E.prototype.instruction=function(T,S){var C,F,k,D,B;if(this.openCurrent(),T!=null&&(T=x(T)),S!=null&&(S=x(S)),Array.isArray(T))for(C=0,D=T.length;C<D;C++)F=T[C],this.instruction(F);else if(b(T))for(F in T)A.call(T,F)&&(k=T[F],this.instruction(F,k));else y(S)&&(S=S.apply()),B=new f(this,T,S),this.onData(this.writer.processingInstruction(B,this.currentLevel+1),this.currentLevel+1);return this},E.prototype.declaration=function(T,S,C){var F;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return F=new o(this,T,S,C),this.onData(this.writer.declaration(F,this.currentLevel+1),this.currentLevel+1),this},E.prototype.doctype=function(T,S,C){if(this.openCurrent(),T==null)throw new Error("Missing root node name.");if(this.root)throw new Error("dtd() must come before the root node.");return this.currentNode=new c(this,S,C),this.currentNode.rootNodeName=T,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},E.prototype.dtdElement=function(T,S){var C;return this.openCurrent(),C=new i(this,T,S),this.onData(this.writer.dtdElement(C,this.currentLevel+1),this.currentLevel+1),this},E.prototype.attList=function(T,S,C,F,k){var D;return this.openCurrent(),D=new n(this,T,S,C,F,k),this.onData(this.writer.dtdAttList(D,this.currentLevel+1),this.currentLevel+1),this},E.prototype.entity=function(T,S){var C;return this.openCurrent(),C=new a(this,!1,T,S),this.onData(this.writer.dtdEntity(C,this.currentLevel+1),this.currentLevel+1),this},E.prototype.pEntity=function(T,S){var C;return this.openCurrent(),C=new a(this,!0,T,S),this.onData(this.writer.dtdEntity(C,this.currentLevel+1),this.currentLevel+1),this},E.prototype.notation=function(T,S){var C;return this.openCurrent(),C=new s(this,T,S),this.onData(this.writer.dtdNotation(C,this.currentLevel+1),this.currentLevel+1),this},E.prototype.up=function(){if(this.currentLevel<0)throw new Error("The document node has no parent.");return this.currentNode?(this.currentNode.children?this.closeNode(this.currentNode):this.openNode(this.currentNode),this.currentNode=null):this.closeNode(this.openTags[this.currentLevel]),delete this.openTags[this.currentLevel],this.currentLevel--,this},E.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},E.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},E.prototype.openNode=function(T){if(!T.isOpen)return!this.root&&this.currentLevel===0&&T instanceof h&&(this.root=T),this.onData(this.writer.openNode(T,this.currentLevel),this.currentLevel),T.isOpen=!0},E.prototype.closeNode=function(T){if(!T.isClosed)return this.onData(this.writer.closeNode(T,this.currentLevel),this.currentLevel),T.isClosed=!0},E.prototype.onData=function(T,S){return this.documentStarted=!0,this.onDataCallback(T,S+1)},E.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},E.prototype.debugInfo=function(T){return T==null?"":"node: <"+T+">"},E.prototype.ele=function(){return this.element.apply(this,arguments)},E.prototype.nod=function(T,S,C){return this.node(T,S,C)},E.prototype.txt=function(T){return this.text(T)},E.prototype.dat=function(T){return this.cdata(T)},E.prototype.com=function(T){return this.comment(T)},E.prototype.ins=function(T,S){return this.instruction(T,S)},E.prototype.dec=function(T,S,C){return this.declaration(T,S,C)},E.prototype.dtd=function(T,S,C){return this.doctype(T,S,C)},E.prototype.e=function(T,S,C){return this.element(T,S,C)},E.prototype.n=function(T,S,C){return this.node(T,S,C)},E.prototype.t=function(T){return this.text(T)},E.prototype.d=function(T){return this.cdata(T)},E.prototype.c=function(T){return this.comment(T)},E.prototype.r=function(T){return this.raw(T)},E.prototype.i=function(T,S){return this.instruction(T,S)},E.prototype.att=function(){return this.currentNode&&this.currentNode instanceof c?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},E.prototype.a=function(){return this.currentNode&&this.currentNode instanceof c?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},E.prototype.ent=function(T,S){return this.entity(T,S)},E.prototype.pent=function(T,S){return this.pEntity(T,S)},E.prototype.not=function(T,S){return this.notation(T,S)},E})()}).call(_w)});var Sw=be((Ew,Aw)=>{(function(){var r,e,t,n,i,a,s,o,c,u,h,f,d,p,m,g=function(y,b){for(var v in b)x.call(b,v)&&(y[v]=b[v]);function _(){this.constructor=y}return _.prototype=b.prototype,y.prototype=new _,y.__super__=b.prototype,y},x={}.hasOwnProperty;s=Dc(),o=Cc(),r=wc(),e=_c(),u=bc(),f=Fc(),p=kc(),h=Uc(),c=Mh(),t=Tc(),n=Ac(),i=Ec(),a=Sc(),m=Qg(),Aw.exports=d=(function(y){g(b,y);function b(v,_){b.__super__.constructor.call(this,_),this.stream=v}return b.prototype.document=function(v){var _,A,E,T,S,C,F,k;for(C=v.children,A=0,T=C.length;A<T;A++)_=C[A],_.isLastRootNode=!1;for(v.children[v.children.length-1].isLastRootNode=!0,F=v.children,k=[],E=0,S=F.length;E<S;E++)if(_=F[E],!(_ instanceof c))switch(!1){case!(_ instanceof s):k.push(this.declaration(_));break;case!(_ instanceof o):k.push(this.docType(_));break;case!(_ instanceof e):k.push(this.comment(_));break;case!(_ instanceof h):k.push(this.processingInstruction(_));break;default:k.push(this.element(_))}return k},b.prototype.attribute=function(v){return this.stream.write(" "+v.name+'="'+v.value+'"')},b.prototype.cdata=function(v,_){return this.stream.write(this.space(_)+"<![CDATA["+v.text+"]]>"+this.endline(v))},b.prototype.comment=function(v,_){return this.stream.write(this.space(_)+"<!-- "+v.text+" -->"+this.endline(v))},b.prototype.declaration=function(v,_){return this.stream.write(this.space(_)),this.stream.write('<?xml version="'+v.version+'"'),v.encoding!=null&&this.stream.write(' encoding="'+v.encoding+'"'),v.standalone!=null&&this.stream.write(' standalone="'+v.standalone+'"'),this.stream.write(this.spacebeforeslash+"?>"),this.stream.write(this.endline(v))},b.prototype.docType=function(v,_){var A,E,T,S;if(_||(_=0),this.stream.write(this.space(_)),this.stream.write("<!DOCTYPE "+v.root().name),v.pubID&&v.sysID?this.stream.write(' PUBLIC "'+v.pubID+'" "'+v.sysID+'"'):v.sysID&&this.stream.write(' SYSTEM "'+v.sysID+'"'),v.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(v)),S=v.children,E=0,T=S.length;E<T;E++)switch(A=S[E],!1){case!(A instanceof t):this.dtdAttList(A,_+1);break;case!(A instanceof n):this.dtdElement(A,_+1);break;case!(A instanceof i):this.dtdEntity(A,_+1);break;case!(A instanceof a):this.dtdNotation(A,_+1);break;case!(A instanceof r):this.cdata(A,_+1);break;case!(A instanceof e):this.comment(A,_+1);break;case!(A instanceof h):this.processingInstruction(A,_+1);break;default:throw new Error("Unknown DTD node type: "+A.constructor.name)}this.stream.write("]")}return this.stream.write(this.spacebeforeslash+">"),this.stream.write(this.endline(v))},b.prototype.element=function(v,_){var A,E,T,S,C,F,k,D;_||(_=0),D=this.space(_),this.stream.write(D+"<"+v.name),F=v.attributes;for(C in F)x.call(F,C)&&(A=F[C],this.attribute(A));if(v.children.length===0||v.children.every(function(B){return B.value===""}))this.allowEmpty?this.stream.write("></"+v.name+">"):this.stream.write(this.spacebeforeslash+"/>");else if(this.pretty&&v.children.length===1&&v.children[0].value!=null)this.stream.write(">"),this.stream.write(v.children[0].value),this.stream.write("</"+v.name+">");else{for(this.stream.write(">"+this.newline),k=v.children,T=0,S=k.length;T<S;T++)switch(E=k[T],!1){case!(E instanceof r):this.cdata(E,_+1);break;case!(E instanceof e):this.comment(E,_+1);break;case!(E instanceof u):this.element(E,_+1);break;case!(E instanceof f):this.raw(E,_+1);break;case!(E instanceof p):this.text(E,_+1);break;case!(E instanceof h):this.processingInstruction(E,_+1);break;case!(E instanceof c):break;default:throw new Error("Unknown XML node type: "+E.constructor.name)}this.stream.write(D+"</"+v.name+">")}return this.stream.write(this.endline(v))},b.prototype.processingInstruction=function(v,_){return this.stream.write(this.space(_)+"<?"+v.target),v.value&&this.stream.write(" "+v.value),this.stream.write(this.spacebeforeslash+"?>"+this.endline(v))},b.prototype.raw=function(v,_){return this.stream.write(this.space(_)+v.value+this.endline(v))},b.prototype.text=function(v,_){return this.stream.write(this.space(_)+v.value+this.endline(v))},b.prototype.dtdAttList=function(v,_){return this.stream.write(this.space(_)+"<!ATTLIST "+v.elementName+" "+v.attributeName+" "+v.attributeType),v.defaultValueType!=="#DEFAULT"&&this.stream.write(" "+v.defaultValueType),v.defaultValue&&this.stream.write(' "'+v.defaultValue+'"'),this.stream.write(this.spacebeforeslash+">"+this.endline(v))},b.prototype.dtdElement=function(v,_){return this.stream.write(this.space(_)+"<!ELEMENT "+v.name+" "+v.value),this.stream.write(this.spacebeforeslash+">"+this.endline(v))},b.prototype.dtdEntity=function(v,_){return this.stream.write(this.space(_)+"<!ENTITY"),v.pe&&this.stream.write(" %"),this.stream.write(" "+v.name),v.value?this.stream.write(' "'+v.value+'"'):(v.pubID&&v.sysID?this.stream.write(' PUBLIC "'+v.pubID+'" "'+v.sysID+'"'):v.sysID&&this.stream.write(' SYSTEM "'+v.sysID+'"'),v.nData&&this.stream.write(" NDATA "+v.nData)),this.stream.write(this.spacebeforeslash+">"+this.endline(v))},b.prototype.dtdNotation=function(v,_){return this.stream.write(this.space(_)+"<!NOTATION "+v.name),v.pubID&&v.sysID?this.stream.write(' PUBLIC "'+v.pubID+'" "'+v.sysID+'"'):v.pubID?this.stream.write(' PUBLIC "'+v.pubID+'"'):v.sysID&&this.stream.write(' SYSTEM "'+v.sysID+'"'),this.stream.write(this.spacebeforeslash+">"+this.endline(v))},b.prototype.endline=function(v){return v.isLastRootNode?"":this.newline},b})(m)}).call(Ew)});var Fw=be((Cw,Ic)=>{(function(){var r,e,t,n,i,a,s;s=ai(),i=s.assign,a=s.isFunction,r=ww(),e=Tw(),n=Wh(),t=Sw(),Ic.exports.create=function(o,c,u,h){var f,d;if(o==null)throw new Error("Root element needs a name.");return h=i({},c,u,h),f=new r(h),d=f.element(o),h.headless||(f.declaration(h),(h.pubID!=null||h.sysID!=null)&&f.doctype(h)),d},Ic.exports.begin=function(o,c,u){var h;return a(o)&&(h=[o,c],c=h[0],u=h[1],o={}),c?new e(o,c,u):new r(o)},Ic.exports.stringWriter=function(o){return new n(o)},Ic.exports.streamWriter=function(o,c){return new t(o,c)}}).call(Cw)});var Iw=be(Uw=>{var kw=(At(),Ft(Et)),yC=Fw();Uw.writeString=bC;function bC(r,e){var t=kw.invert(e),n={element:a,text:wC};function i(c,u){return n[u.type](c,u)}function a(c,u){var h=c.element(s(u.name),u.attributes);u.children.forEach(function(f){i(h,f)})}function s(c){var u=/^\{(.*)\}(.*)$/.exec(c);if(u){var h=t[u[1]];return h+(h===""?"":":")+u[2]}else return c}function o(c){var u=yC.create(s(c.name),{version:"1.0",encoding:"UTF-8",standalone:!0});return kw.forEach(e,function(h,f){var d="xmlns"+(f===""?"":":"+f);u.attribute(d,h)}),c.children.forEach(function(h){i(u,h)}),u.end()}return o(r)}function wC(r,e){r.text(e.value)}});var Vh=be(ma=>{var Hh=Rg();ma.Element=Hh.Element;ma.element=Hh.element;ma.emptyElement=Hh.emptyElement;ma.text=Hh.text;ma.readString=Bb().readString;ma.writeString=Iw().writeString});var Bw=be(em=>{var _C=(At(),Ft(Et)),DC=ei(),TC=Vh();em.read=Rw;em.readXmlFromZipFile=AC;var EC={"http://schemas.openxmlformats.org/wordprocessingml/2006/main":"w","http://schemas.openxmlformats.org/officeDocument/2006/relationships":"r","http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing":"wp","http://schemas.openxmlformats.org/drawingml/2006/main":"a","http://schemas.openxmlformats.org/drawingml/2006/picture":"pic","http://purl.oclc.org/ooxml/wordprocessingml/main":"w","http://purl.oclc.org/ooxml/officeDocument/relationships":"r","http://purl.oclc.org/ooxml/drawingml/wordprocessingDrawing":"wp","http://purl.oclc.org/ooxml/drawingml/main":"a","http://purl.oclc.org/ooxml/drawingml/picture":"pic","http://schemas.openxmlformats.org/package/2006/content-types":"content-types","http://schemas.openxmlformats.org/package/2006/relationships":"relationships","http://schemas.openxmlformats.org/markup-compatibility/2006":"mc","urn:schemas-microsoft-com:vml":"v","urn:schemas-microsoft-com:office:word":"office-word","http://schemas.microsoft.com/office/word/2010/wordml":"wordml"};function Rw(r){return TC.readString(r,EC).then(function(e){return Ow(e)[0]})}function AC(r,e){return r.exists(e)?r.read(e,"utf-8").then(SC).then(Rw):DC.resolve(null)}function SC(r){return r.replace(/^\uFEFF/g,"")}function Ow(r){return r.type==="element"?r.name==="mc:AlternateContent"?r.firstOrEmpty("mc:Fallback").children:(r.children=_C.flatten(r.children.map(Ow,!0)),[r]):[r]}});var Nw=be(tm=>{"use strict";Object.defineProperty(tm,"__esModule",{value:!0});var CC=[{"Typeface name":"Symbol","Dingbat dec":"32","Dingbat hex":"20","Unicode dec":"32","Unicode hex":"20"},{"Typeface name":"Symbol","Dingbat dec":"33","Dingbat hex":"21","Unicode dec":"33","Unicode hex":"21"},{"Typeface name":"Symbol","Dingbat dec":"34","Dingbat hex":"22","Unicode dec":"8704","Unicode hex":"2200"},{"Typeface name":"Symbol","Dingbat dec":"35","Dingbat hex":"23","Unicode dec":"35","Unicode hex":"23"},{"Typeface name":"Symbol","Dingbat dec":"36","Dingbat hex":"24","Unicode dec":"8707","Unicode hex":"2203"},{"Typeface name":"Symbol","Dingbat dec":"37","Dingbat hex":"25","Unicode dec":"37","Unicode hex":"25"},{"Typeface name":"Symbol","Dingbat dec":"38","Dingbat hex":"26","Unicode dec":"38","Unicode hex":"26"},{"Typeface name":"Symbol","Dingbat dec":"39","Dingbat hex":"27","Unicode dec":"8717","Unicode hex":"220D"},{"Typeface name":"Symbol","Dingbat dec":"40","Dingbat hex":"28","Unicode dec":"40","Unicode hex":"28"},{"Typeface name":"Symbol","Dingbat dec":"41","Dingbat hex":"29","Unicode dec":"41","Unicode hex":"29"},{"Typeface name":"Symbol","Dingbat dec":"42","Dingbat hex":"2A","Unicode dec":"42","Unicode hex":"2A"},{"Typeface name":"Symbol","Dingbat dec":"43","Dingbat hex":"2B","Unicode dec":"43","Unicode hex":"2B"},{"Typeface name":"Symbol","Dingbat dec":"44","Dingbat hex":"2C","Unicode dec":"44","Unicode hex":"2C"},{"Typeface name":"Symbol","Dingbat dec":"45","Dingbat hex":"2D","Unicode dec":"8722","Unicode hex":"2212"},{"Typeface name":"Symbol","Dingbat dec":"46","Dingbat hex":"2E","Unicode dec":"46","Unicode hex":"2E"},{"Typeface name":"Symbol","Dingbat dec":"47","Dingbat hex":"2F","Unicode dec":"47","Unicode hex":"2F"},{"Typeface name":"Symbol","Dingbat dec":"48","Dingbat hex":"30","Unicode dec":"48","Unicode hex":"30"},{"Typeface name":"Symbol","Dingbat dec":"49","Dingbat hex":"31","Unicode dec":"49","Unicode hex":"31"},{"Typeface name":"Symbol","Dingbat dec":"50","Dingbat hex":"32","Unicode dec":"50","Unicode hex":"32"},{"Typeface name":"Symbol","Dingbat dec":"51","Dingbat hex":"33","Unicode dec":"51","Unicode hex":"33"},{"Typeface name":"Symbol","Dingbat dec":"52","Dingbat hex":"34","Unicode dec":"52","Unicode hex":"34"},{"Typeface name":"Symbol","Dingbat dec":"53","Dingbat hex":"35","Unicode dec":"53","Unicode hex":"35"},{"Typeface name":"Symbol","Dingbat dec":"54","Dingbat hex":"36","Unicode dec":"54","Unicode hex":"36"},{"Typeface name":"Symbol","Dingbat dec":"55","Dingbat hex":"37","Unicode dec":"55","Unicode hex":"37"},{"Typeface name":"Symbol","Dingbat dec":"56","Dingbat hex":"38","Unicode dec":"56","Unicode hex":"38"},{"Typeface name":"Symbol","Dingbat dec":"57","Dingbat hex":"39","Unicode dec":"57","Unicode hex":"39"},{"Typeface name":"Symbol","Dingbat dec":"58","Dingbat hex":"3A","Unicode dec":"58","Unicode hex":"3A"},{"Typeface name":"Symbol","Dingbat dec":"59","Dingbat hex":"3B","Unicode dec":"59","Unicode hex":"3B"},{"Typeface name":"Symbol","Dingbat dec":"60","Dingbat hex":"3C","Unicode dec":"60","Unicode hex":"3C"},{"Typeface name":"Symbol","Dingbat dec":"61","Dingbat hex":"3D","Unicode dec":"61","Unicode hex":"3D"},{"Typeface name":"Symbol","Dingbat dec":"62","Dingbat hex":"3E","Unicode dec":"62","Unicode hex":"3E"},{"Typeface name":"Symbol","Dingbat dec":"63","Dingbat hex":"3F","Unicode dec":"63","Unicode hex":"3F"},{"Typeface name":"Symbol","Dingbat dec":"64","Dingbat hex":"40","Unicode dec":"8773","Unicode hex":"2245"},{"Typeface name":"Symbol","Dingbat dec":"65","Dingbat hex":"41","Unicode dec":"913","Unicode hex":"391"},{"Typeface name":"Symbol","Dingbat dec":"66","Dingbat hex":"42","Unicode dec":"914","Unicode hex":"392"},{"Typeface name":"Symbol","Dingbat dec":"67","Dingbat hex":"43","Unicode dec":"935","Unicode hex":"3A7"},{"Typeface name":"Symbol","Dingbat dec":"68","Dingbat hex":"44","Unicode dec":"916","Unicode hex":"394"},{"Typeface name":"Symbol","Dingbat dec":"69","Dingbat hex":"45","Unicode dec":"917","Unicode hex":"395"},{"Typeface name":"Symbol","Dingbat dec":"70","Dingbat hex":"46","Unicode dec":"934","Unicode hex":"3A6"},{"Typeface name":"Symbol","Dingbat dec":"71","Dingbat hex":"47","Unicode dec":"915","Unicode hex":"393"},{"Typeface name":"Symbol","Dingbat dec":"72","Dingbat hex":"48","Unicode dec":"919","Unicode hex":"397"},{"Typeface name":"Symbol","Dingbat dec":"73","Dingbat hex":"49","Unicode dec":"921","Unicode hex":"399"},{"Typeface name":"Symbol","Dingbat dec":"74","Dingbat hex":"4A","Unicode dec":"977","Unicode hex":"3D1"},{"Typeface name":"Symbol","Dingbat dec":"75","Dingbat hex":"4B","Unicode dec":"922","Unicode hex":"39A"},{"Typeface name":"Symbol","Dingbat dec":"76","Dingbat hex":"4C","Unicode dec":"923","Unicode hex":"39B"},{"Typeface name":"Symbol","Dingbat dec":"77","Dingbat hex":"4D","Unicode dec":"924","Unicode hex":"39C"},{"Typeface name":"Symbol","Dingbat dec":"78","Dingbat hex":"4E","Unicode dec":"925","Unicode hex":"39D"},{"Typeface name":"Symbol","Dingbat dec":"79","Dingbat hex":"4F","Unicode dec":"927","Unicode hex":"39F"},{"Typeface name":"Symbol","Dingbat dec":"80","Dingbat hex":"50","Unicode dec":"928","Unicode hex":"3A0"},{"Typeface name":"Symbol","Dingbat dec":"81","Dingbat hex":"51","Unicode dec":"920","Unicode hex":"398"},{"Typeface name":"Symbol","Dingbat dec":"82","Dingbat hex":"52","Unicode dec":"929","Unicode hex":"3A1"},{"Typeface name":"Symbol","Dingbat dec":"83","Dingbat hex":"53","Unicode dec":"931","Unicode hex":"3A3"},{"Typeface name":"Symbol","Dingbat dec":"84","Dingbat hex":"54","Unicode dec":"932","Unicode hex":"3A4"},{"Typeface name":"Symbol","Dingbat dec":"85","Dingbat hex":"55","Unicode dec":"933","Unicode hex":"3A5"},{"Typeface name":"Symbol","Dingbat dec":"86","Dingbat hex":"56","Unicode dec":"962","Unicode hex":"3C2"},{"Typeface name":"Symbol","Dingbat dec":"87","Dingbat hex":"57","Unicode dec":"937","Unicode hex":"3A9"},{"Typeface name":"Symbol","Dingbat dec":"88","Dingbat hex":"58","Unicode dec":"926","Unicode hex":"39E"},{"Typeface name":"Symbol","Dingbat dec":"89","Dingbat hex":"59","Unicode dec":"936","Unicode hex":"3A8"},{"Typeface name":"Symbol","Dingbat dec":"90","Dingbat hex":"5A","Unicode dec":"918","Unicode hex":"396"},{"Typeface name":"Symbol","Dingbat dec":"91","Dingbat hex":"5B","Unicode dec":"91","Unicode hex":"5B"},{"Typeface name":"Symbol","Dingbat dec":"92","Dingbat hex":"5C","Unicode dec":"8756","Unicode hex":"2234"},{"Typeface name":"Symbol","Dingbat dec":"93","Dingbat hex":"5D","Unicode dec":"93","Unicode hex":"5D"},{"Typeface name":"Symbol","Dingbat dec":"94","Dingbat hex":"5E","Unicode dec":"8869","Unicode hex":"22A5"},{"Typeface name":"Symbol","Dingbat dec":"95","Dingbat hex":"5F","Unicode dec":"95","Unicode hex":"5F"},{"Typeface name":"Symbol","Dingbat dec":"96","Dingbat hex":"60","Unicode dec":"8254","Unicode hex":"203E"},{"Typeface name":"Symbol","Dingbat dec":"97","Dingbat hex":"61","Unicode dec":"945","Unicode hex":"3B1"},{"Typeface name":"Symbol","Dingbat dec":"98","Dingbat hex":"62","Unicode dec":"946","Unicode hex":"3B2"},{"Typeface name":"Symbol","Dingbat dec":"99","Dingbat hex":"63","Unicode dec":"967","Unicode hex":"3C7"},{"Typeface name":"Symbol","Dingbat dec":"100","Dingbat hex":"64","Unicode dec":"948","Unicode hex":"3B4"},{"Typeface name":"Symbol","Dingbat dec":"101","Dingbat hex":"65","Unicode dec":"949","Unicode hex":"3B5"},{"Typeface name":"Symbol","Dingbat dec":"102","Dingbat hex":"66","Unicode dec":"966","Unicode hex":"3C6"},{"Typeface name":"Symbol","Dingbat dec":"103","Dingbat hex":"67","Unicode dec":"947","Unicode hex":"3B3"},{"Typeface name":"Symbol","Dingbat dec":"104","Dingbat hex":"68","Unicode dec":"951","Unicode hex":"3B7"},{"Typeface name":"Symbol","Dingbat dec":"105","Dingbat hex":"69","Unicode dec":"953","Unicode hex":"3B9"},{"Typeface name":"Symbol","Dingbat dec":"106","Dingbat hex":"6A","Unicode dec":"981","Unicode hex":"3D5"},{"Typeface name":"Symbol","Dingbat dec":"107","Dingbat hex":"6B","Unicode dec":"954","Unicode hex":"3BA"},{"Typeface name":"Symbol","Dingbat dec":"108","Dingbat hex":"6C","Unicode dec":"955","Unicode hex":"3BB"},{"Typeface name":"Symbol","Dingbat dec":"109","Dingbat hex":"6D","Unicode dec":"956","Unicode hex":"3BC"},{"Typeface name":"Symbol","Dingbat dec":"110","Dingbat hex":"6E","Unicode dec":"957","Unicode hex":"3BD"},{"Typeface name":"Symbol","Dingbat dec":"111","Dingbat hex":"6F","Unicode dec":"959","Unicode hex":"3BF"},{"Typeface name":"Symbol","Dingbat dec":"112","Dingbat hex":"70","Unicode dec":"960","Unicode hex":"3C0"},{"Typeface name":"Symbol","Dingbat dec":"113","Dingbat hex":"71","Unicode dec":"952","Unicode hex":"3B8"},{"Typeface name":"Symbol","Dingbat dec":"114","Dingbat hex":"72","Unicode dec":"961","Unicode hex":"3C1"},{"Typeface name":"Symbol","Dingbat dec":"115","Dingbat hex":"73","Unicode dec":"963","Unicode hex":"3C3"},{"Typeface name":"Symbol","Dingbat dec":"116","Dingbat hex":"74","Unicode dec":"964","Unicode hex":"3C4"},{"Typeface name":"Symbol","Dingbat dec":"117","Dingbat hex":"75","Unicode dec":"965","Unicode hex":"3C5"},{"Typeface name":"Symbol","Dingbat dec":"118","Dingbat hex":"76","Unicode dec":"982","Unicode hex":"3D6"},{"Typeface name":"Symbol","Dingbat dec":"119","Dingbat hex":"77","Unicode dec":"969","Unicode hex":"3C9"},{"Typeface name":"Symbol","Dingbat dec":"120","Dingbat hex":"78","Unicode dec":"958","Unicode hex":"3BE"},{"Typeface name":"Symbol","Dingbat dec":"121","Dingbat hex":"79","Unicode dec":"968","Unicode hex":"3C8"},{"Typeface name":"Symbol","Dingbat dec":"122","Dingbat hex":"7A","Unicode dec":"950","Unicode hex":"3B6"},{"Typeface name":"Symbol","Dingbat dec":"123","Dingbat hex":"7B","Unicode dec":"123","Unicode hex":"7B"},{"Typeface name":"Symbol","Dingbat dec":"124","Dingbat hex":"7C","Unicode dec":"124","Unicode hex":"7C"},{"Typeface name":"Symbol","Dingbat dec":"125","Dingbat hex":"7D","Unicode dec":"125","Unicode hex":"7D"},{"Typeface name":"Symbol","Dingbat dec":"126","Dingbat hex":"7E","Unicode dec":"126","Unicode hex":"7E"},{"Typeface name":"Symbol","Dingbat dec":"160","Dingbat hex":"A0","Unicode dec":"8364","Unicode hex":"20AC"},{"Typeface name":"Symbol","Dingbat dec":"161","Dingbat hex":"A1","Unicode dec":"978","Unicode hex":"3D2"},{"Typeface name":"Symbol","Dingbat dec":"162","Dingbat hex":"A2","Unicode dec":"8242","Unicode hex":"2032"},{"Typeface name":"Symbol","Dingbat dec":"163","Dingbat hex":"A3","Unicode dec":"8804","Unicode hex":"2264"},{"Typeface name":"Symbol","Dingbat dec":"164","Dingbat hex":"A4","Unicode dec":"8260","Unicode hex":"2044"},{"Typeface name":"Symbol","Dingbat dec":"165","Dingbat hex":"A5","Unicode dec":"8734","Unicode hex":"221E"},{"Typeface name":"Symbol","Dingbat dec":"166","Dingbat hex":"A6","Unicode dec":"402","Unicode hex":"192"},{"Typeface name":"Symbol","Dingbat dec":"167","Dingbat hex":"A7","Unicode dec":"9827","Unicode hex":"2663"},{"Typeface name":"Symbol","Dingbat dec":"168","Dingbat hex":"A8","Unicode dec":"9830","Unicode hex":"2666"},{"Typeface name":"Symbol","Dingbat dec":"169","Dingbat hex":"A9","Unicode dec":"9829","Unicode hex":"2665"},{"Typeface name":"Symbol","Dingbat dec":"170","Dingbat hex":"AA","Unicode dec":"9824","Unicode hex":"2660"},{"Typeface name":"Symbol","Dingbat dec":"171","Dingbat hex":"AB","Unicode dec":"8596","Unicode hex":"2194"},{"Typeface name":"Symbol","Dingbat dec":"172","Dingbat hex":"AC","Unicode dec":"8592","Unicode hex":"2190"},{"Typeface name":"Symbol","Dingbat dec":"173","Dingbat hex":"AD","Unicode dec":"8593","Unicode hex":"2191"},{"Typeface name":"Symbol","Dingbat dec":"174","Dingbat hex":"AE","Unicode dec":"8594","Unicode hex":"2192"},{"Typeface name":"Symbol","Dingbat dec":"175","Dingbat hex":"AF","Unicode dec":"8595","Unicode hex":"2193"},{"Typeface name":"Symbol","Dingbat dec":"176","Dingbat hex":"B0","Unicode dec":"176","Unicode hex":"B0"},{"Typeface name":"Symbol","Dingbat dec":"177","Dingbat hex":"B1","Unicode dec":"177","Unicode hex":"B1"},{"Typeface name":"Symbol","Dingbat dec":"178","Dingbat hex":"B2","Unicode dec":"8243","Unicode hex":"2033"},{"Typeface name":"Symbol","Dingbat dec":"179","Dingbat hex":"B3","Unicode dec":"8805","Unicode hex":"2265"},{"Typeface name":"Symbol","Dingbat dec":"180","Dingbat hex":"B4","Unicode dec":"215","Unicode hex":"D7"},{"Typeface name":"Symbol","Dingbat dec":"181","Dingbat hex":"B5","Unicode dec":"8733","Unicode hex":"221D"},{"Typeface name":"Symbol","Dingbat dec":"182","Dingbat hex":"B6","Unicode dec":"8706","Unicode hex":"2202"},{"Typeface name":"Symbol","Dingbat dec":"183","Dingbat hex":"B7","Unicode dec":"8226","Unicode hex":"2022"},{"Typeface name":"Symbol","Dingbat dec":"184","Dingbat hex":"B8","Unicode dec":"247","Unicode hex":"F7"},{"Typeface name":"Symbol","Dingbat dec":"185","Dingbat hex":"B9","Unicode dec":"8800","Unicode hex":"2260"},{"Typeface name":"Symbol","Dingbat dec":"186","Dingbat hex":"BA","Unicode dec":"8801","Unicode hex":"2261"},{"Typeface name":"Symbol","Dingbat dec":"187","Dingbat hex":"BB","Unicode dec":"8776","Unicode hex":"2248"},{"Typeface name":"Symbol","Dingbat dec":"188","Dingbat hex":"BC","Unicode dec":"8230","Unicode hex":"2026"},{"Typeface name":"Symbol","Dingbat dec":"189","Dingbat hex":"BD","Unicode dec":"9168","Unicode hex":"23D0"},{"Typeface name":"Symbol","Dingbat dec":"190","Dingbat hex":"BE","Unicode dec":"9135","Unicode hex":"23AF"},{"Typeface name":"Symbol","Dingbat dec":"191","Dingbat hex":"BF","Unicode dec":"8629","Unicode hex":"21B5"},{"Typeface name":"Symbol","Dingbat dec":"192","Dingbat hex":"C0","Unicode dec":"8501","Unicode hex":"2135"},{"Typeface name":"Symbol","Dingbat dec":"193","Dingbat hex":"C1","Unicode dec":"8465","Unicode hex":"2111"},{"Typeface name":"Symbol","Dingbat dec":"194","Dingbat hex":"C2","Unicode dec":"8476","Unicode hex":"211C"},{"Typeface name":"Symbol","Dingbat dec":"195","Dingbat hex":"C3","Unicode dec":"8472","Unicode hex":"2118"},{"Typeface name":"Symbol","Dingbat dec":"196","Dingbat hex":"C4","Unicode dec":"8855","Unicode hex":"2297"},{"Typeface name":"Symbol","Dingbat dec":"197","Dingbat hex":"C5","Unicode dec":"8853","Unicode hex":"2295"},{"Typeface name":"Symbol","Dingbat dec":"198","Dingbat hex":"C6","Unicode dec":"8709","Unicode hex":"2205"},{"Typeface name":"Symbol","Dingbat dec":"199","Dingbat hex":"C7","Unicode dec":"8745","Unicode hex":"2229"},{"Typeface name":"Symbol","Dingbat dec":"200","Dingbat hex":"C8","Unicode dec":"8746","Unicode hex":"222A"},{"Typeface name":"Symbol","Dingbat dec":"201","Dingbat hex":"C9","Unicode dec":"8835","Unicode hex":"2283"},{"Typeface name":"Symbol","Dingbat dec":"202","Dingbat hex":"CA","Unicode dec":"8839","Unicode hex":"2287"},{"Typeface name":"Symbol","Dingbat dec":"203","Dingbat hex":"CB","Unicode dec":"8836","Unicode hex":"2284"},{"Typeface name":"Symbol","Dingbat dec":"204","Dingbat hex":"CC","Unicode dec":"8834","Unicode hex":"2282"},{"Typeface name":"Symbol","Dingbat dec":"205","Dingbat hex":"CD","Unicode dec":"8838","Unicode hex":"2286"},{"Typeface name":"Symbol","Dingbat dec":"206","Dingbat hex":"CE","Unicode dec":"8712","Unicode hex":"2208"},{"Typeface name":"Symbol","Dingbat dec":"207","Dingbat hex":"CF","Unicode dec":"8713","Unicode hex":"2209"},{"Typeface name":"Symbol","Dingbat dec":"208","Dingbat hex":"D0","Unicode dec":"8736","Unicode hex":"2220"},{"Typeface name":"Symbol","Dingbat dec":"209","Dingbat hex":"D1","Unicode dec":"8711","Unicode hex":"2207"},{"Typeface name":"Symbol","Dingbat dec":"210","Dingbat hex":"D2","Unicode dec":"174","Unicode hex":"AE"},{"Typeface name":"Symbol","Dingbat dec":"211","Dingbat hex":"D3","Unicode dec":"169","Unicode hex":"A9"},{"Typeface name":"Symbol","Dingbat dec":"212","Dingbat hex":"D4","Unicode dec":"8482","Unicode hex":"2122"},{"Typeface name":"Symbol","Dingbat dec":"213","Dingbat hex":"D5","Unicode dec":"8719","Unicode hex":"220F"},{"Typeface name":"Symbol","Dingbat dec":"214","Dingbat hex":"D6","Unicode dec":"8730","Unicode hex":"221A"},{"Typeface name":"Symbol","Dingbat dec":"215","Dingbat hex":"D7","Unicode dec":"8901","Unicode hex":"22C5"},{"Typeface name":"Symbol","Dingbat dec":"216","Dingbat hex":"D8","Unicode dec":"172","Unicode hex":"AC"},{"Typeface name":"Symbol","Dingbat dec":"217","Dingbat hex":"D9","Unicode dec":"8743","Unicode hex":"2227"},{"Typeface name":"Symbol","Dingbat dec":"218","Dingbat hex":"DA","Unicode dec":"8744","Unicode hex":"2228"},{"Typeface name":"Symbol","Dingbat dec":"219","Dingbat hex":"DB","Unicode dec":"8660","Unicode hex":"21D4"},{"Typeface name":"Symbol","Dingbat dec":"220","Dingbat hex":"DC","Unicode dec":"8656","Unicode hex":"21D0"},{"Typeface name":"Symbol","Dingbat dec":"221","Dingbat hex":"DD","Unicode dec":"8657","Unicode hex":"21D1"},{"Typeface name":"Symbol","Dingbat dec":"222","Dingbat hex":"DE","Unicode dec":"8658","Unicode hex":"21D2"},{"Typeface name":"Symbol","Dingbat dec":"223","Dingbat hex":"DF","Unicode dec":"8659","Unicode hex":"21D3"},{"Typeface name":"Symbol","Dingbat dec":"224","Dingbat hex":"E0","Unicode dec":"9674","Unicode hex":"25CA"},{"Typeface name":"Symbol","Dingbat dec":"225","Dingbat hex":"E1","Unicode dec":"12296","Unicode hex":"3008"},{"Typeface name":"Symbol","Dingbat dec":"226","Dingbat hex":"E2","Unicode dec":"174","Unicode hex":"AE"},{"Typeface name":"Symbol","Dingbat dec":"227","Dingbat hex":"E3","Unicode dec":"169","Unicode hex":"A9"},{"Typeface name":"Symbol","Dingbat dec":"228","Dingbat hex":"E4","Unicode dec":"8482","Unicode hex":"2122"},{"Typeface name":"Symbol","Dingbat dec":"229","Dingbat hex":"E5","Unicode dec":"8721","Unicode hex":"2211"},{"Typeface name":"Symbol","Dingbat dec":"230","Dingbat hex":"E6","Unicode dec":"9115","Unicode hex":"239B"},{"Typeface name":"Symbol","Dingbat dec":"231","Dingbat hex":"E7","Unicode dec":"9116","Unicode hex":"239C"},{"Typeface name":"Symbol","Dingbat dec":"232","Dingbat hex":"E8","Unicode dec":"9117","Unicode hex":"239D"},{"Typeface name":"Symbol","Dingbat dec":"233","Dingbat hex":"E9","Unicode dec":"9121","Unicode hex":"23A1"},{"Typeface name":"Symbol","Dingbat dec":"234","Dingbat hex":"EA","Unicode dec":"9122","Unicode hex":"23A2"},{"Typeface name":"Symbol","Dingbat dec":"235","Dingbat hex":"EB","Unicode dec":"9123","Unicode hex":"23A3"},{"Typeface name":"Symbol","Dingbat dec":"236","Dingbat hex":"EC","Unicode dec":"9127","Unicode hex":"23A7"},{"Typeface name":"Symbol","Dingbat dec":"237","Dingbat hex":"ED","Unicode dec":"9128","Unicode hex":"23A8"},{"Typeface name":"Symbol","Dingbat dec":"238","Dingbat hex":"EE","Unicode dec":"9129","Unicode hex":"23A9"},{"Typeface name":"Symbol","Dingbat dec":"239","Dingbat hex":"EF","Unicode dec":"9130","Unicode hex":"23AA"},{"Typeface name":"Symbol","Dingbat dec":"240","Dingbat hex":"F0","Unicode dec":"63743","Unicode hex":"F8FF"},{"Typeface name":"Symbol","Dingbat dec":"241","Dingbat hex":"F1","Unicode dec":"12297","Unicode hex":"3009"},{"Typeface name":"Symbol","Dingbat dec":"242","Dingbat hex":"F2","Unicode dec":"8747","Unicode hex":"222B"},{"Typeface name":"Symbol","Dingbat dec":"243","Dingbat hex":"F3","Unicode dec":"8992","Unicode hex":"2320"},{"Typeface name":"Symbol","Dingbat dec":"244","Dingbat hex":"F4","Unicode dec":"9134","Unicode hex":"23AE"},{"Typeface name":"Symbol","Dingbat dec":"245","Dingbat hex":"F5","Unicode dec":"8993","Unicode hex":"2321"},{"Typeface name":"Symbol","Dingbat dec":"246","Dingbat hex":"F6","Unicode dec":"9118","Unicode hex":"239E"},{"Typeface name":"Symbol","Dingbat dec":"247","Dingbat hex":"F7","Unicode dec":"9119","Unicode hex":"239F"},{"Typeface name":"Symbol","Dingbat dec":"248","Dingbat hex":"F8","Unicode dec":"9120","Unicode hex":"23A0"},{"Typeface name":"Symbol","Dingbat dec":"249","Dingbat hex":"F9","Unicode dec":"9124","Unicode hex":"23A4"},{"Typeface name":"Symbol","Dingbat dec":"250","Dingbat hex":"FA","Unicode dec":"9125","Unicode hex":"23A5"},{"Typeface name":"Symbol","Dingbat dec":"251","Dingbat hex":"FB","Unicode dec":"9126","Unicode hex":"23A6"},{"Typeface name":"Symbol","Dingbat dec":"252","Dingbat hex":"FC","Unicode dec":"9131","Unicode hex":"23AB"},{"Typeface name":"Symbol","Dingbat dec":"253","Dingbat hex":"FD","Unicode dec":"9132","Unicode hex":"23AC"},{"Typeface name":"Symbol","Dingbat dec":"254","Dingbat hex":"FE","Unicode dec":"9133","Unicode hex":"23AD"},{"Typeface name":"Webdings","Dingbat dec":"32","Dingbat hex":"20","Unicode dec":"32","Unicode hex":"20"},{"Typeface name":"Webdings","Dingbat dec":"33","Dingbat hex":"21","Unicode dec":"128375","Unicode hex":"1F577"},{"Typeface name":"Webdings","Dingbat dec":"34","Dingbat hex":"22","Unicode dec":"128376","Unicode hex":"1F578"},{"Typeface name":"Webdings","Dingbat dec":"35","Dingbat hex":"23","Unicode dec":"128370","Unicode hex":"1F572"},{"Typeface name":"Webdings","Dingbat dec":"36","Dingbat hex":"24","Unicode dec":"128374","Unicode hex":"1F576"},{"Typeface name":"Webdings","Dingbat dec":"37","Dingbat hex":"25","Unicode dec":"127942","Unicode hex":"1F3C6"},{"Typeface name":"Webdings","Dingbat dec":"38","Dingbat hex":"26","Unicode dec":"127894","Unicode hex":"1F396"},{"Typeface name":"Webdings","Dingbat dec":"39","Dingbat hex":"27","Unicode dec":"128391","Unicode hex":"1F587"},{"Typeface name":"Webdings","Dingbat dec":"40","Dingbat hex":"28","Unicode dec":"128488","Unicode hex":"1F5E8"},{"Typeface name":"Webdings","Dingbat dec":"41","Dingbat hex":"29","Unicode dec":"128489","Unicode hex":"1F5E9"},{"Typeface name":"Webdings","Dingbat dec":"42","Dingbat hex":"2A","Unicode dec":"128496","Unicode hex":"1F5F0"},{"Typeface name":"Webdings","Dingbat dec":"43","Dingbat hex":"2B","Unicode dec":"128497","Unicode hex":"1F5F1"},{"Typeface name":"Webdings","Dingbat dec":"44","Dingbat hex":"2C","Unicode dec":"127798","Unicode hex":"1F336"},{"Typeface name":"Webdings","Dingbat dec":"45","Dingbat hex":"2D","Unicode dec":"127895","Unicode hex":"1F397"},{"Typeface name":"Webdings","Dingbat dec":"46","Dingbat hex":"2E","Unicode dec":"128638","Unicode hex":"1F67E"},{"Typeface name":"Webdings","Dingbat dec":"47","Dingbat hex":"2F","Unicode dec":"128636","Unicode hex":"1F67C"},{"Typeface name":"Webdings","Dingbat dec":"48","Dingbat hex":"30","Unicode dec":"128469","Unicode hex":"1F5D5"},{"Typeface name":"Webdings","Dingbat dec":"49","Dingbat hex":"31","Unicode dec":"128470","Unicode hex":"1F5D6"},{"Typeface name":"Webdings","Dingbat dec":"50","Dingbat hex":"32","Unicode dec":"128471","Unicode hex":"1F5D7"},{"Typeface name":"Webdings","Dingbat dec":"51","Dingbat hex":"33","Unicode dec":"9204","Unicode hex":"23F4"},{"Typeface name":"Webdings","Dingbat dec":"52","Dingbat hex":"34","Unicode dec":"9205","Unicode hex":"23F5"},{"Typeface name":"Webdings","Dingbat dec":"53","Dingbat hex":"35","Unicode dec":"9206","Unicode hex":"23F6"},{"Typeface name":"Webdings","Dingbat dec":"54","Dingbat hex":"36","Unicode dec":"9207","Unicode hex":"23F7"},{"Typeface name":"Webdings","Dingbat dec":"55","Dingbat hex":"37","Unicode dec":"9194","Unicode hex":"23EA"},{"Typeface name":"Webdings","Dingbat dec":"56","Dingbat hex":"38","Unicode dec":"9193","Unicode hex":"23E9"},{"Typeface name":"Webdings","Dingbat dec":"57","Dingbat hex":"39","Unicode dec":"9198","Unicode hex":"23EE"},{"Typeface name":"Webdings","Dingbat dec":"58","Dingbat hex":"3A","Unicode dec":"9197","Unicode hex":"23ED"},{"Typeface name":"Webdings","Dingbat dec":"59","Dingbat hex":"3B","Unicode dec":"9208","Unicode hex":"23F8"},{"Typeface name":"Webdings","Dingbat dec":"60","Dingbat hex":"3C","Unicode dec":"9209","Unicode hex":"23F9"},{"Typeface name":"Webdings","Dingbat dec":"61","Dingbat hex":"3D","Unicode dec":"9210","Unicode hex":"23FA"},{"Typeface name":"Webdings","Dingbat dec":"62","Dingbat hex":"3E","Unicode dec":"128474","Unicode hex":"1F5DA"},{"Typeface name":"Webdings","Dingbat dec":"63","Dingbat hex":"3F","Unicode dec":"128499","Unicode hex":"1F5F3"},{"Typeface name":"Webdings","Dingbat dec":"64","Dingbat hex":"40","Unicode dec":"128736","Unicode hex":"1F6E0"},{"Typeface name":"Webdings","Dingbat dec":"65","Dingbat hex":"41","Unicode dec":"127959","Unicode hex":"1F3D7"},{"Typeface name":"Webdings","Dingbat dec":"66","Dingbat hex":"42","Unicode dec":"127960","Unicode hex":"1F3D8"},{"Typeface name":"Webdings","Dingbat dec":"67","Dingbat hex":"43","Unicode dec":"127961","Unicode hex":"1F3D9"},{"Typeface name":"Webdings","Dingbat dec":"68","Dingbat hex":"44","Unicode dec":"127962","Unicode hex":"1F3DA"},{"Typeface name":"Webdings","Dingbat dec":"69","Dingbat hex":"45","Unicode dec":"127964","Unicode hex":"1F3DC"},{"Typeface name":"Webdings","Dingbat dec":"70","Dingbat hex":"46","Unicode dec":"127981","Unicode hex":"1F3ED"},{"Typeface name":"Webdings","Dingbat dec":"71","Dingbat hex":"47","Unicode dec":"127963","Unicode hex":"1F3DB"},{"Typeface name":"Webdings","Dingbat dec":"72","Dingbat hex":"48","Unicode dec":"127968","Unicode hex":"1F3E0"},{"Typeface name":"Webdings","Dingbat dec":"73","Dingbat hex":"49","Unicode dec":"127958","Unicode hex":"1F3D6"},{"Typeface name":"Webdings","Dingbat dec":"74","Dingbat hex":"4A","Unicode dec":"127965","Unicode hex":"1F3DD"},{"Typeface name":"Webdings","Dingbat dec":"75","Dingbat hex":"4B","Unicode dec":"128739","Unicode hex":"1F6E3"},{"Typeface name":"Webdings","Dingbat dec":"76","Dingbat hex":"4C","Unicode dec":"128269","Unicode hex":"1F50D"},{"Typeface name":"Webdings","Dingbat dec":"77","Dingbat hex":"4D","Unicode dec":"127956","Unicode hex":"1F3D4"},{"Typeface name":"Webdings","Dingbat dec":"78","Dingbat hex":"4E","Unicode dec":"128065","Unicode hex":"1F441"},{"Typeface name":"Webdings","Dingbat dec":"79","Dingbat hex":"4F","Unicode dec":"128066","Unicode hex":"1F442"},{"Typeface name":"Webdings","Dingbat dec":"80","Dingbat hex":"50","Unicode dec":"127966","Unicode hex":"1F3DE"},{"Typeface name":"Webdings","Dingbat dec":"81","Dingbat hex":"51","Unicode dec":"127957","Unicode hex":"1F3D5"},{"Typeface name":"Webdings","Dingbat dec":"82","Dingbat hex":"52","Unicode dec":"128740","Unicode hex":"1F6E4"},{"Typeface name":"Webdings","Dingbat dec":"83","Dingbat hex":"53","Unicode dec":"127967","Unicode hex":"1F3DF"},{"Typeface name":"Webdings","Dingbat dec":"84","Dingbat hex":"54","Unicode dec":"128755","Unicode hex":"1F6F3"},{"Typeface name":"Webdings","Dingbat dec":"85","Dingbat hex":"55","Unicode dec":"128364","Unicode hex":"1F56C"},{"Typeface name":"Webdings","Dingbat dec":"86","Dingbat hex":"56","Unicode dec":"128363","Unicode hex":"1F56B"},{"Typeface name":"Webdings","Dingbat dec":"87","Dingbat hex":"57","Unicode dec":"128360","Unicode hex":"1F568"},{"Typeface name":"Webdings","Dingbat dec":"88","Dingbat hex":"58","Unicode dec":"128264","Unicode hex":"1F508"},{"Typeface name":"Webdings","Dingbat dec":"89","Dingbat hex":"59","Unicode dec":"127892","Unicode hex":"1F394"},{"Typeface name":"Webdings","Dingbat dec":"90","Dingbat hex":"5A","Unicode dec":"127893","Unicode hex":"1F395"},{"Typeface name":"Webdings","Dingbat dec":"91","Dingbat hex":"5B","Unicode dec":"128492","Unicode hex":"1F5EC"},{"Typeface name":"Webdings","Dingbat dec":"92","Dingbat hex":"5C","Unicode dec":"128637","Unicode hex":"1F67D"},{"Typeface name":"Webdings","Dingbat dec":"93","Dingbat hex":"5D","Unicode dec":"128493","Unicode hex":"1F5ED"},{"Typeface name":"Webdings","Dingbat dec":"94","Dingbat hex":"5E","Unicode dec":"128490","Unicode hex":"1F5EA"},{"Typeface name":"Webdings","Dingbat dec":"95","Dingbat hex":"5F","Unicode dec":"128491","Unicode hex":"1F5EB"},{"Typeface name":"Webdings","Dingbat dec":"96","Dingbat hex":"60","Unicode dec":"11156","Unicode hex":"2B94"},{"Typeface name":"Webdings","Dingbat dec":"97","Dingbat hex":"61","Unicode dec":"10004","Unicode hex":"2714"},{"Typeface name":"Webdings","Dingbat dec":"98","Dingbat hex":"62","Unicode dec":"128690","Unicode hex":"1F6B2"},{"Typeface name":"Webdings","Dingbat dec":"99","Dingbat hex":"63","Unicode dec":"11036","Unicode hex":"2B1C"},{"Typeface name":"Webdings","Dingbat dec":"100","Dingbat hex":"64","Unicode dec":"128737","Unicode hex":"1F6E1"},{"Typeface name":"Webdings","Dingbat dec":"101","Dingbat hex":"65","Unicode dec":"128230","Unicode hex":"1F4E6"},{"Typeface name":"Webdings","Dingbat dec":"102","Dingbat hex":"66","Unicode dec":"128753","Unicode hex":"1F6F1"},{"Typeface name":"Webdings","Dingbat dec":"103","Dingbat hex":"67","Unicode dec":"11035","Unicode hex":"2B1B"},{"Typeface name":"Webdings","Dingbat dec":"104","Dingbat hex":"68","Unicode dec":"128657","Unicode hex":"1F691"},{"Typeface name":"Webdings","Dingbat dec":"105","Dingbat hex":"69","Unicode dec":"128712","Unicode hex":"1F6C8"},{"Typeface name":"Webdings","Dingbat dec":"106","Dingbat hex":"6A","Unicode dec":"128745","Unicode hex":"1F6E9"},{"Typeface name":"Webdings","Dingbat dec":"107","Dingbat hex":"6B","Unicode dec":"128752","Unicode hex":"1F6F0"},{"Typeface name":"Webdings","Dingbat dec":"108","Dingbat hex":"6C","Unicode dec":"128968","Unicode hex":"1F7C8"},{"Typeface name":"Webdings","Dingbat dec":"109","Dingbat hex":"6D","Unicode dec":"128372","Unicode hex":"1F574"},{"Typeface name":"Webdings","Dingbat dec":"110","Dingbat hex":"6E","Unicode dec":"11044","Unicode hex":"2B24"},{"Typeface name":"Webdings","Dingbat dec":"111","Dingbat hex":"6F","Unicode dec":"128741","Unicode hex":"1F6E5"},{"Typeface name":"Webdings","Dingbat dec":"112","Dingbat hex":"70","Unicode dec":"128660","Unicode hex":"1F694"},{"Typeface name":"Webdings","Dingbat dec":"113","Dingbat hex":"71","Unicode dec":"128472","Unicode hex":"1F5D8"},{"Typeface name":"Webdings","Dingbat dec":"114","Dingbat hex":"72","Unicode dec":"128473","Unicode hex":"1F5D9"},{"Typeface name":"Webdings","Dingbat dec":"115","Dingbat hex":"73","Unicode dec":"10067","Unicode hex":"2753"},{"Typeface name":"Webdings","Dingbat dec":"116","Dingbat hex":"74","Unicode dec":"128754","Unicode hex":"1F6F2"},{"Typeface name":"Webdings","Dingbat dec":"117","Dingbat hex":"75","Unicode dec":"128647","Unicode hex":"1F687"},{"Typeface name":"Webdings","Dingbat dec":"118","Dingbat hex":"76","Unicode dec":"128653","Unicode hex":"1F68D"},{"Typeface name":"Webdings","Dingbat dec":"119","Dingbat hex":"77","Unicode dec":"9971","Unicode hex":"26F3"},{"Typeface name":"Webdings","Dingbat dec":"120","Dingbat hex":"78","Unicode dec":"10680","Unicode hex":"29B8"},{"Typeface name":"Webdings","Dingbat dec":"121","Dingbat hex":"79","Unicode dec":"8854","Unicode hex":"2296"},{"Typeface name":"Webdings","Dingbat dec":"122","Dingbat hex":"7A","Unicode dec":"128685","Unicode hex":"1F6AD"},{"Typeface name":"Webdings","Dingbat dec":"123","Dingbat hex":"7B","Unicode dec":"128494","Unicode hex":"1F5EE"},{"Typeface name":"Webdings","Dingbat dec":"124","Dingbat hex":"7C","Unicode dec":"9168","Unicode hex":"23D0"},{"Typeface name":"Webdings","Dingbat dec":"125","Dingbat hex":"7D","Unicode dec":"128495","Unicode hex":"1F5EF"},{"Typeface name":"Webdings","Dingbat dec":"126","Dingbat hex":"7E","Unicode dec":"128498","Unicode hex":"1F5F2"},{"Typeface name":"Webdings","Dingbat dec":"128","Dingbat hex":"80","Unicode dec":"128697","Unicode hex":"1F6B9"},{"Typeface name":"Webdings","Dingbat dec":"129","Dingbat hex":"81","Unicode dec":"128698","Unicode hex":"1F6BA"},{"Typeface name":"Webdings","Dingbat dec":"130","Dingbat hex":"82","Unicode dec":"128713","Unicode hex":"1F6C9"},{"Typeface name":"Webdings","Dingbat dec":"131","Dingbat hex":"83","Unicode dec":"128714","Unicode hex":"1F6CA"},{"Typeface name":"Webdings","Dingbat dec":"132","Dingbat hex":"84","Unicode dec":"128700","Unicode hex":"1F6BC"},{"Typeface name":"Webdings","Dingbat dec":"133","Dingbat hex":"85","Unicode dec":"128125","Unicode hex":"1F47D"},{"Typeface name":"Webdings","Dingbat dec":"134","Dingbat hex":"86","Unicode dec":"127947","Unicode hex":"1F3CB"},{"Typeface name":"Webdings","Dingbat dec":"135","Dingbat hex":"87","Unicode dec":"9975","Unicode hex":"26F7"},{"Typeface name":"Webdings","Dingbat dec":"136","Dingbat hex":"88","Unicode dec":"127938","Unicode hex":"1F3C2"},{"Typeface name":"Webdings","Dingbat dec":"137","Dingbat hex":"89","Unicode dec":"127948","Unicode hex":"1F3CC"},{"Typeface name":"Webdings","Dingbat dec":"138","Dingbat hex":"8A","Unicode dec":"127946","Unicode hex":"1F3CA"},{"Typeface name":"Webdings","Dingbat dec":"139","Dingbat hex":"8B","Unicode dec":"127940","Unicode hex":"1F3C4"},{"Typeface name":"Webdings","Dingbat dec":"140","Dingbat hex":"8C","Unicode dec":"127949","Unicode hex":"1F3CD"},{"Typeface name":"Webdings","Dingbat dec":"141","Dingbat hex":"8D","Unicode dec":"127950","Unicode hex":"1F3CE"},{"Typeface name":"Webdings","Dingbat dec":"142","Dingbat hex":"8E","Unicode dec":"128664","Unicode hex":"1F698"},{"Typeface name":"Webdings","Dingbat dec":"143","Dingbat hex":"8F","Unicode dec":"128480","Unicode hex":"1F5E0"},{"Typeface name":"Webdings","Dingbat dec":"144","Dingbat hex":"90","Unicode dec":"128738","Unicode hex":"1F6E2"},{"Typeface name":"Webdings","Dingbat dec":"145","Dingbat hex":"91","Unicode dec":"128176","Unicode hex":"1F4B0"},{"Typeface name":"Webdings","Dingbat dec":"146","Dingbat hex":"92","Unicode dec":"127991","Unicode hex":"1F3F7"},{"Typeface name":"Webdings","Dingbat dec":"147","Dingbat hex":"93","Unicode dec":"128179","Unicode hex":"1F4B3"},{"Typeface name":"Webdings","Dingbat dec":"148","Dingbat hex":"94","Unicode dec":"128106","Unicode hex":"1F46A"},{"Typeface name":"Webdings","Dingbat dec":"149","Dingbat hex":"95","Unicode dec":"128481","Unicode hex":"1F5E1"},{"Typeface name":"Webdings","Dingbat dec":"150","Dingbat hex":"96","Unicode dec":"128482","Unicode hex":"1F5E2"},{"Typeface name":"Webdings","Dingbat dec":"151","Dingbat hex":"97","Unicode dec":"128483","Unicode hex":"1F5E3"},{"Typeface name":"Webdings","Dingbat dec":"152","Dingbat hex":"98","Unicode dec":"10031","Unicode hex":"272F"},{"Typeface name":"Webdings","Dingbat dec":"153","Dingbat hex":"99","Unicode dec":"128388","Unicode hex":"1F584"},{"Typeface name":"Webdings","Dingbat dec":"154","Dingbat hex":"9A","Unicode dec":"128389","Unicode hex":"1F585"},{"Typeface name":"Webdings","Dingbat dec":"155","Dingbat hex":"9B","Unicode dec":"128387","Unicode hex":"1F583"},{"Typeface name":"Webdings","Dingbat dec":"156","Dingbat hex":"9C","Unicode dec":"128390","Unicode hex":"1F586"},{"Typeface name":"Webdings","Dingbat dec":"157","Dingbat hex":"9D","Unicode dec":"128441","Unicode hex":"1F5B9"},{"Typeface name":"Webdings","Dingbat dec":"158","Dingbat hex":"9E","Unicode dec":"128442","Unicode hex":"1F5BA"},{"Typeface name":"Webdings","Dingbat dec":"159","Dingbat hex":"9F","Unicode dec":"128443","Unicode hex":"1F5BB"},{"Typeface name":"Webdings","Dingbat dec":"160","Dingbat hex":"A0","Unicode dec":"128373","Unicode hex":"1F575"},{"Typeface name":"Webdings","Dingbat dec":"161","Dingbat hex":"A1","Unicode dec":"128368","Unicode hex":"1F570"},{"Typeface name":"Webdings","Dingbat dec":"162","Dingbat hex":"A2","Unicode dec":"128445","Unicode hex":"1F5BD"},{"Typeface name":"Webdings","Dingbat dec":"163","Dingbat hex":"A3","Unicode dec":"128446","Unicode hex":"1F5BE"},{"Typeface name":"Webdings","Dingbat dec":"164","Dingbat hex":"A4","Unicode dec":"128203","Unicode hex":"1F4CB"},{"Typeface name":"Webdings","Dingbat dec":"165","Dingbat hex":"A5","Unicode dec":"128466","Unicode hex":"1F5D2"},{"Typeface name":"Webdings","Dingbat dec":"166","Dingbat hex":"A6","Unicode dec":"128467","Unicode hex":"1F5D3"},{"Typeface name":"Webdings","Dingbat dec":"167","Dingbat hex":"A7","Unicode dec":"128366","Unicode hex":"1F56E"},{"Typeface name":"Webdings","Dingbat dec":"168","Dingbat hex":"A8","Unicode dec":"128218","Unicode hex":"1F4DA"},{"Typeface name":"Webdings","Dingbat dec":"169","Dingbat hex":"A9","Unicode dec":"128478","Unicode hex":"1F5DE"},{"Typeface name":"Webdings","Dingbat dec":"170","Dingbat hex":"AA","Unicode dec":"128479","Unicode hex":"1F5DF"},{"Typeface name":"Webdings","Dingbat dec":"171","Dingbat hex":"AB","Unicode dec":"128451","Unicode hex":"1F5C3"},{"Typeface name":"Webdings","Dingbat dec":"172","Dingbat hex":"AC","Unicode dec":"128450","Unicode hex":"1F5C2"},{"Typeface name":"Webdings","Dingbat dec":"173","Dingbat hex":"AD","Unicode dec":"128444","Unicode hex":"1F5BC"},{"Typeface name":"Webdings","Dingbat dec":"174","Dingbat hex":"AE","Unicode dec":"127917","Unicode hex":"1F3AD"},{"Typeface name":"Webdings","Dingbat dec":"175","Dingbat hex":"AF","Unicode dec":"127900","Unicode hex":"1F39C"},{"Typeface name":"Webdings","Dingbat dec":"176","Dingbat hex":"B0","Unicode dec":"127896","Unicode hex":"1F398"},{"Typeface name":"Webdings","Dingbat dec":"177","Dingbat hex":"B1","Unicode dec":"127897","Unicode hex":"1F399"},{"Typeface name":"Webdings","Dingbat dec":"178","Dingbat hex":"B2","Unicode dec":"127911","Unicode hex":"1F3A7"},{"Typeface name":"Webdings","Dingbat dec":"179","Dingbat hex":"B3","Unicode dec":"128191","Unicode hex":"1F4BF"},{"Typeface name":"Webdings","Dingbat dec":"180","Dingbat hex":"B4","Unicode dec":"127902","Unicode hex":"1F39E"},{"Typeface name":"Webdings","Dingbat dec":"181","Dingbat hex":"B5","Unicode dec":"128247","Unicode hex":"1F4F7"},{"Typeface name":"Webdings","Dingbat dec":"182","Dingbat hex":"B6","Unicode dec":"127903","Unicode hex":"1F39F"},{"Typeface name":"Webdings","Dingbat dec":"183","Dingbat hex":"B7","Unicode dec":"127916","Unicode hex":"1F3AC"},{"Typeface name":"Webdings","Dingbat dec":"184","Dingbat hex":"B8","Unicode dec":"128253","Unicode hex":"1F4FD"},{"Typeface name":"Webdings","Dingbat dec":"185","Dingbat hex":"B9","Unicode dec":"128249","Unicode hex":"1F4F9"},{"Typeface name":"Webdings","Dingbat dec":"186","Dingbat hex":"BA","Unicode dec":"128254","Unicode hex":"1F4FE"},{"Typeface name":"Webdings","Dingbat dec":"187","Dingbat hex":"BB","Unicode dec":"128251","Unicode hex":"1F4FB"},{"Typeface name":"Webdings","Dingbat dec":"188","Dingbat hex":"BC","Unicode dec":"127898","Unicode hex":"1F39A"},{"Typeface name":"Webdings","Dingbat dec":"189","Dingbat hex":"BD","Unicode dec":"127899","Unicode hex":"1F39B"},{"Typeface name":"Webdings","Dingbat dec":"190","Dingbat hex":"BE","Unicode dec":"128250","Unicode hex":"1F4FA"},{"Typeface name":"Webdings","Dingbat dec":"191","Dingbat hex":"BF","Unicode dec":"128187","Unicode hex":"1F4BB"},{"Typeface name":"Webdings","Dingbat dec":"192","Dingbat hex":"C0","Unicode dec":"128421","Unicode hex":"1F5A5"},{"Typeface name":"Webdings","Dingbat dec":"193","Dingbat hex":"C1","Unicode dec":"128422","Unicode hex":"1F5A6"},{"Typeface name":"Webdings","Dingbat dec":"194","Dingbat hex":"C2","Unicode dec":"128423","Unicode hex":"1F5A7"},{"Typeface name":"Webdings","Dingbat dec":"195","Dingbat hex":"C3","Unicode dec":"128377","Unicode hex":"1F579"},{"Typeface name":"Webdings","Dingbat dec":"196","Dingbat hex":"C4","Unicode dec":"127918","Unicode hex":"1F3AE"},{"Typeface name":"Webdings","Dingbat dec":"197","Dingbat hex":"C5","Unicode dec":"128379","Unicode hex":"1F57B"},{"Typeface name":"Webdings","Dingbat dec":"198","Dingbat hex":"C6","Unicode dec":"128380","Unicode hex":"1F57C"},{"Typeface name":"Webdings","Dingbat dec":"199","Dingbat hex":"C7","Unicode dec":"128223","Unicode hex":"1F4DF"},{"Typeface name":"Webdings","Dingbat dec":"200","Dingbat hex":"C8","Unicode dec":"128385","Unicode hex":"1F581"},{"Typeface name":"Webdings","Dingbat dec":"201","Dingbat hex":"C9","Unicode dec":"128384","Unicode hex":"1F580"},{"Typeface name":"Webdings","Dingbat dec":"202","Dingbat hex":"CA","Unicode dec":"128424","Unicode hex":"1F5A8"},{"Typeface name":"Webdings","Dingbat dec":"203","Dingbat hex":"CB","Unicode dec":"128425","Unicode hex":"1F5A9"},{"Typeface name":"Webdings","Dingbat dec":"204","Dingbat hex":"CC","Unicode dec":"128447","Unicode hex":"1F5BF"},{"Typeface name":"Webdings","Dingbat dec":"205","Dingbat hex":"CD","Unicode dec":"128426","Unicode hex":"1F5AA"},{"Typeface name":"Webdings","Dingbat dec":"206","Dingbat hex":"CE","Unicode dec":"128476","Unicode hex":"1F5DC"},{"Typeface name":"Webdings","Dingbat dec":"207","Dingbat hex":"CF","Unicode dec":"128274","Unicode hex":"1F512"},{"Typeface name":"Webdings","Dingbat dec":"208","Dingbat hex":"D0","Unicode dec":"128275","Unicode hex":"1F513"},{"Typeface name":"Webdings","Dingbat dec":"209","Dingbat hex":"D1","Unicode dec":"128477","Unicode hex":"1F5DD"},{"Typeface name":"Webdings","Dingbat dec":"210","Dingbat hex":"D2","Unicode dec":"128229","Unicode hex":"1F4E5"},{"Typeface name":"Webdings","Dingbat dec":"211","Dingbat hex":"D3","Unicode dec":"128228","Unicode hex":"1F4E4"},{"Typeface name":"Webdings","Dingbat dec":"212","Dingbat hex":"D4","Unicode dec":"128371","Unicode hex":"1F573"},{"Typeface name":"Webdings","Dingbat dec":"213","Dingbat hex":"D5","Unicode dec":"127779","Unicode hex":"1F323"},{"Typeface name":"Webdings","Dingbat dec":"214","Dingbat hex":"D6","Unicode dec":"127780","Unicode hex":"1F324"},{"Typeface name":"Webdings","Dingbat dec":"215","Dingbat hex":"D7","Unicode dec":"127781","Unicode hex":"1F325"},{"Typeface name":"Webdings","Dingbat dec":"216","Dingbat hex":"D8","Unicode dec":"127782","Unicode hex":"1F326"},{"Typeface name":"Webdings","Dingbat dec":"217","Dingbat hex":"D9","Unicode dec":"9729","Unicode hex":"2601"},{"Typeface name":"Webdings","Dingbat dec":"218","Dingbat hex":"DA","Unicode dec":"127784","Unicode hex":"1F328"},{"Typeface name":"Webdings","Dingbat dec":"219","Dingbat hex":"DB","Unicode dec":"127783","Unicode hex":"1F327"},{"Typeface name":"Webdings","Dingbat dec":"220","Dingbat hex":"DC","Unicode dec":"127785","Unicode hex":"1F329"},{"Typeface name":"Webdings","Dingbat dec":"221","Dingbat hex":"DD","Unicode dec":"127786","Unicode hex":"1F32A"},{"Typeface name":"Webdings","Dingbat dec":"222","Dingbat hex":"DE","Unicode dec":"127788","Unicode hex":"1F32C"},{"Typeface name":"Webdings","Dingbat dec":"223","Dingbat hex":"DF","Unicode dec":"127787","Unicode hex":"1F32B"},{"Typeface name":"Webdings","Dingbat dec":"224","Dingbat hex":"E0","Unicode dec":"127772","Unicode hex":"1F31C"},{"Typeface name":"Webdings","Dingbat dec":"225","Dingbat hex":"E1","Unicode dec":"127777","Unicode hex":"1F321"},{"Typeface name":"Webdings","Dingbat dec":"226","Dingbat hex":"E2","Unicode dec":"128715","Unicode hex":"1F6CB"},{"Typeface name":"Webdings","Dingbat dec":"227","Dingbat hex":"E3","Unicode dec":"128719","Unicode hex":"1F6CF"},{"Typeface name":"Webdings","Dingbat dec":"228","Dingbat hex":"E4","Unicode dec":"127869","Unicode hex":"1F37D"},{"Typeface name":"Webdings","Dingbat dec":"229","Dingbat hex":"E5","Unicode dec":"127864","Unicode hex":"1F378"},{"Typeface name":"Webdings","Dingbat dec":"230","Dingbat hex":"E6","Unicode dec":"128718","Unicode hex":"1F6CE"},{"Typeface name":"Webdings","Dingbat dec":"231","Dingbat hex":"E7","Unicode dec":"128717","Unicode hex":"1F6CD"},{"Typeface name":"Webdings","Dingbat dec":"232","Dingbat hex":"E8","Unicode dec":"9413","Unicode hex":"24C5"},{"Typeface name":"Webdings","Dingbat dec":"233","Dingbat hex":"E9","Unicode dec":"9855","Unicode hex":"267F"},{"Typeface name":"Webdings","Dingbat dec":"234","Dingbat hex":"EA","Unicode dec":"128710","Unicode hex":"1F6C6"},{"Typeface name":"Webdings","Dingbat dec":"235","Dingbat hex":"EB","Unicode dec":"128392","Unicode hex":"1F588"},{"Typeface name":"Webdings","Dingbat dec":"236","Dingbat hex":"EC","Unicode dec":"127891","Unicode hex":"1F393"},{"Typeface name":"Webdings","Dingbat dec":"237","Dingbat hex":"ED","Unicode dec":"128484","Unicode hex":"1F5E4"},{"Typeface name":"Webdings","Dingbat dec":"238","Dingbat hex":"EE","Unicode dec":"128485","Unicode hex":"1F5E5"},{"Typeface name":"Webdings","Dingbat dec":"239","Dingbat hex":"EF","Unicode dec":"128486","Unicode hex":"1F5E6"},{"Typeface name":"Webdings","Dingbat dec":"240","Dingbat hex":"F0","Unicode dec":"128487","Unicode hex":"1F5E7"},{"Typeface name":"Webdings","Dingbat dec":"241","Dingbat hex":"F1","Unicode dec":"128746","Unicode hex":"1F6EA"},{"Typeface name":"Webdings","Dingbat dec":"242","Dingbat hex":"F2","Unicode dec":"128063","Unicode hex":"1F43F"},{"Typeface name":"Webdings","Dingbat dec":"243","Dingbat hex":"F3","Unicode dec":"128038","Unicode hex":"1F426"},{"Typeface name":"Webdings","Dingbat dec":"244","Dingbat hex":"F4","Unicode dec":"128031","Unicode hex":"1F41F"},{"Typeface name":"Webdings","Dingbat dec":"245","Dingbat hex":"F5","Unicode dec":"128021","Unicode hex":"1F415"},{"Typeface name":"Webdings","Dingbat dec":"246","Dingbat hex":"F6","Unicode dec":"128008","Unicode hex":"1F408"},{"Typeface name":"Webdings","Dingbat dec":"247","Dingbat hex":"F7","Unicode dec":"128620","Unicode hex":"1F66C"},{"Typeface name":"Webdings","Dingbat dec":"248","Dingbat hex":"F8","Unicode dec":"128622","Unicode hex":"1F66E"},{"Typeface name":"Webdings","Dingbat dec":"249","Dingbat hex":"F9","Unicode dec":"128621","Unicode hex":"1F66D"},{"Typeface name":"Webdings","Dingbat dec":"250","Dingbat hex":"FA","Unicode dec":"128623","Unicode hex":"1F66F"},{"Typeface name":"Webdings","Dingbat dec":"251","Dingbat hex":"FB","Unicode dec":"128506","Unicode hex":"1F5FA"},{"Typeface name":"Webdings","Dingbat dec":"252","Dingbat hex":"FC","Unicode dec":"127757","Unicode hex":"1F30D"},{"Typeface name":"Webdings","Dingbat dec":"253","Dingbat hex":"FD","Unicode dec":"127759","Unicode hex":"1F30F"},{"Typeface name":"Webdings","Dingbat dec":"254","Dingbat hex":"FE","Unicode dec":"127758","Unicode hex":"1F30E"},{"Typeface name":"Webdings","Dingbat dec":"255","Dingbat hex":"FF","Unicode dec":"128330","Unicode hex":"1F54A"},{"Typeface name":"Wingdings","Dingbat dec":"32","Dingbat hex":"20","Unicode dec":"32","Unicode hex":"20"},{"Typeface name":"Wingdings","Dingbat dec":"33","Dingbat hex":"21","Unicode dec":"128393","Unicode hex":"1F589"},{"Typeface name":"Wingdings","Dingbat dec":"34","Dingbat hex":"22","Unicode dec":"9986","Unicode hex":"2702"},{"Typeface name":"Wingdings","Dingbat dec":"35","Dingbat hex":"23","Unicode dec":"9985","Unicode hex":"2701"},{"Typeface name":"Wingdings","Dingbat dec":"36","Dingbat hex":"24","Unicode dec":"128083","Unicode hex":"1F453"},{"Typeface name":"Wingdings","Dingbat dec":"37","Dingbat hex":"25","Unicode dec":"128365","Unicode hex":"1F56D"},{"Typeface name":"Wingdings","Dingbat dec":"38","Dingbat hex":"26","Unicode dec":"128366","Unicode hex":"1F56E"},{"Typeface name":"Wingdings","Dingbat dec":"39","Dingbat hex":"27","Unicode dec":"128367","Unicode hex":"1F56F"},{"Typeface name":"Wingdings","Dingbat dec":"40","Dingbat hex":"28","Unicode dec":"128383","Unicode hex":"1F57F"},{"Typeface name":"Wingdings","Dingbat dec":"41","Dingbat hex":"29","Unicode dec":"9990","Unicode hex":"2706"},{"Typeface name":"Wingdings","Dingbat dec":"42","Dingbat hex":"2A","Unicode dec":"128386","Unicode hex":"1F582"},{"Typeface name":"Wingdings","Dingbat dec":"43","Dingbat hex":"2B","Unicode dec":"128387","Unicode hex":"1F583"},{"Typeface name":"Wingdings","Dingbat dec":"44","Dingbat hex":"2C","Unicode dec":"128234","Unicode hex":"1F4EA"},{"Typeface name":"Wingdings","Dingbat dec":"45","Dingbat hex":"2D","Unicode dec":"128235","Unicode hex":"1F4EB"},{"Typeface name":"Wingdings","Dingbat dec":"46","Dingbat hex":"2E","Unicode dec":"128236","Unicode hex":"1F4EC"},{"Typeface name":"Wingdings","Dingbat dec":"47","Dingbat hex":"2F","Unicode dec":"128237","Unicode hex":"1F4ED"},{"Typeface name":"Wingdings","Dingbat dec":"48","Dingbat hex":"30","Unicode dec":"128448","Unicode hex":"1F5C0"},{"Typeface name":"Wingdings","Dingbat dec":"49","Dingbat hex":"31","Unicode dec":"128449","Unicode hex":"1F5C1"},{"Typeface name":"Wingdings","Dingbat dec":"50","Dingbat hex":"32","Unicode dec":"128462","Unicode hex":"1F5CE"},{"Typeface name":"Wingdings","Dingbat dec":"51","Dingbat hex":"33","Unicode dec":"128463","Unicode hex":"1F5CF"},{"Typeface name":"Wingdings","Dingbat dec":"52","Dingbat hex":"34","Unicode dec":"128464","Unicode hex":"1F5D0"},{"Typeface name":"Wingdings","Dingbat dec":"53","Dingbat hex":"35","Unicode dec":"128452","Unicode hex":"1F5C4"},{"Typeface name":"Wingdings","Dingbat dec":"54","Dingbat hex":"36","Unicode dec":"8987","Unicode hex":"231B"},{"Typeface name":"Wingdings","Dingbat dec":"55","Dingbat hex":"37","Unicode dec":"128430","Unicode hex":"1F5AE"},{"Typeface name":"Wingdings","Dingbat dec":"56","Dingbat hex":"38","Unicode dec":"128432","Unicode hex":"1F5B0"},{"Typeface name":"Wingdings","Dingbat dec":"57","Dingbat hex":"39","Unicode dec":"128434","Unicode hex":"1F5B2"},{"Typeface name":"Wingdings","Dingbat dec":"58","Dingbat hex":"3A","Unicode dec":"128435","Unicode hex":"1F5B3"},{"Typeface name":"Wingdings","Dingbat dec":"59","Dingbat hex":"3B","Unicode dec":"128436","Unicode hex":"1F5B4"},{"Typeface name":"Wingdings","Dingbat dec":"60","Dingbat hex":"3C","Unicode dec":"128427","Unicode hex":"1F5AB"},{"Typeface name":"Wingdings","Dingbat dec":"61","Dingbat hex":"3D","Unicode dec":"128428","Unicode hex":"1F5AC"},{"Typeface name":"Wingdings","Dingbat dec":"62","Dingbat hex":"3E","Unicode dec":"9991","Unicode hex":"2707"},{"Typeface name":"Wingdings","Dingbat dec":"63","Dingbat hex":"3F","Unicode dec":"9997","Unicode hex":"270D"},{"Typeface name":"Wingdings","Dingbat dec":"64","Dingbat hex":"40","Unicode dec":"128398","Unicode hex":"1F58E"},{"Typeface name":"Wingdings","Dingbat dec":"65","Dingbat hex":"41","Unicode dec":"9996","Unicode hex":"270C"},{"Typeface name":"Wingdings","Dingbat dec":"66","Dingbat hex":"42","Unicode dec":"128399","Unicode hex":"1F58F"},{"Typeface name":"Wingdings","Dingbat dec":"67","Dingbat hex":"43","Unicode dec":"128077","Unicode hex":"1F44D"},{"Typeface name":"Wingdings","Dingbat dec":"68","Dingbat hex":"44","Unicode dec":"128078","Unicode hex":"1F44E"},{"Typeface name":"Wingdings","Dingbat dec":"69","Dingbat hex":"45","Unicode dec":"9756","Unicode hex":"261C"},{"Typeface name":"Wingdings","Dingbat dec":"70","Dingbat hex":"46","Unicode dec":"9758","Unicode hex":"261E"},{"Typeface name":"Wingdings","Dingbat dec":"71","Dingbat hex":"47","Unicode dec":"9757","Unicode hex":"261D"},{"Typeface name":"Wingdings","Dingbat dec":"72","Dingbat hex":"48","Unicode dec":"9759","Unicode hex":"261F"},{"Typeface name":"Wingdings","Dingbat dec":"73","Dingbat hex":"49","Unicode dec":"128400","Unicode hex":"1F590"},{"Typeface name":"Wingdings","Dingbat dec":"74","Dingbat hex":"4A","Unicode dec":"9786","Unicode hex":"263A"},{"Typeface name":"Wingdings","Dingbat dec":"75","Dingbat hex":"4B","Unicode dec":"128528","Unicode hex":"1F610"},{"Typeface name":"Wingdings","Dingbat dec":"76","Dingbat hex":"4C","Unicode dec":"9785","Unicode hex":"2639"},{"Typeface name":"Wingdings","Dingbat dec":"77","Dingbat hex":"4D","Unicode dec":"128163","Unicode hex":"1F4A3"},{"Typeface name":"Wingdings","Dingbat dec":"78","Dingbat hex":"4E","Unicode dec":"128369","Unicode hex":"1F571"},{"Typeface name":"Wingdings","Dingbat dec":"79","Dingbat hex":"4F","Unicode dec":"127987","Unicode hex":"1F3F3"},{"Typeface name":"Wingdings","Dingbat dec":"80","Dingbat hex":"50","Unicode dec":"127985","Unicode hex":"1F3F1"},{"Typeface name":"Wingdings","Dingbat dec":"81","Dingbat hex":"51","Unicode dec":"9992","Unicode hex":"2708"},{"Typeface name":"Wingdings","Dingbat dec":"82","Dingbat hex":"52","Unicode dec":"9788","Unicode hex":"263C"},{"Typeface name":"Wingdings","Dingbat dec":"83","Dingbat hex":"53","Unicode dec":"127778","Unicode hex":"1F322"},{"Typeface name":"Wingdings","Dingbat dec":"84","Dingbat hex":"54","Unicode dec":"10052","Unicode hex":"2744"},{"Typeface name":"Wingdings","Dingbat dec":"85","Dingbat hex":"55","Unicode dec":"128326","Unicode hex":"1F546"},{"Typeface name":"Wingdings","Dingbat dec":"86","Dingbat hex":"56","Unicode dec":"10014","Unicode hex":"271E"},{"Typeface name":"Wingdings","Dingbat dec":"87","Dingbat hex":"57","Unicode dec":"128328","Unicode hex":"1F548"},{"Typeface name":"Wingdings","Dingbat dec":"88","Dingbat hex":"58","Unicode dec":"10016","Unicode hex":"2720"},{"Typeface name":"Wingdings","Dingbat dec":"89","Dingbat hex":"59","Unicode dec":"10017","Unicode hex":"2721"},{"Typeface name":"Wingdings","Dingbat dec":"90","Dingbat hex":"5A","Unicode dec":"9770","Unicode hex":"262A"},{"Typeface name":"Wingdings","Dingbat dec":"91","Dingbat hex":"5B","Unicode dec":"9775","Unicode hex":"262F"},{"Typeface name":"Wingdings","Dingbat dec":"92","Dingbat hex":"5C","Unicode dec":"128329","Unicode hex":"1F549"},{"Typeface name":"Wingdings","Dingbat dec":"93","Dingbat hex":"5D","Unicode dec":"9784","Unicode hex":"2638"},{"Typeface name":"Wingdings","Dingbat dec":"94","Dingbat hex":"5E","Unicode dec":"9800","Unicode hex":"2648"},{"Typeface name":"Wingdings","Dingbat dec":"95","Dingbat hex":"5F","Unicode dec":"9801","Unicode hex":"2649"},{"Typeface name":"Wingdings","Dingbat dec":"96","Dingbat hex":"60","Unicode dec":"9802","Unicode hex":"264A"},{"Typeface name":"Wingdings","Dingbat dec":"97","Dingbat hex":"61","Unicode dec":"9803","Unicode hex":"264B"},{"Typeface name":"Wingdings","Dingbat dec":"98","Dingbat hex":"62","Unicode dec":"9804","Unicode hex":"264C"},{"Typeface name":"Wingdings","Dingbat dec":"99","Dingbat hex":"63","Unicode dec":"9805","Unicode hex":"264D"},{"Typeface name":"Wingdings","Dingbat dec":"100","Dingbat hex":"64","Unicode dec":"9806","Unicode hex":"264E"},{"Typeface name":"Wingdings","Dingbat dec":"101","Dingbat hex":"65","Unicode dec":"9807","Unicode hex":"264F"},{"Typeface name":"Wingdings","Dingbat dec":"102","Dingbat hex":"66","Unicode dec":"9808","Unicode hex":"2650"},{"Typeface name":"Wingdings","Dingbat dec":"103","Dingbat hex":"67","Unicode dec":"9809","Unicode hex":"2651"},{"Typeface name":"Wingdings","Dingbat dec":"104","Dingbat hex":"68","Unicode dec":"9810","Unicode hex":"2652"},{"Typeface name":"Wingdings","Dingbat dec":"105","Dingbat hex":"69","Unicode dec":"9811","Unicode hex":"2653"},{"Typeface name":"Wingdings","Dingbat dec":"106","Dingbat hex":"6A","Unicode dec":"128624","Unicode hex":"1F670"},{"Typeface name":"Wingdings","Dingbat dec":"107","Dingbat hex":"6B","Unicode dec":"128629","Unicode hex":"1F675"},{"Typeface name":"Wingdings","Dingbat dec":"108","Dingbat hex":"6C","Unicode dec":"9899","Unicode hex":"26AB"},{"Typeface name":"Wingdings","Dingbat dec":"109","Dingbat hex":"6D","Unicode dec":"128318","Unicode hex":"1F53E"},{"Typeface name":"Wingdings","Dingbat dec":"110","Dingbat hex":"6E","Unicode dec":"9724","Unicode hex":"25FC"},{"Typeface name":"Wingdings","Dingbat dec":"111","Dingbat hex":"6F","Unicode dec":"128911","Unicode hex":"1F78F"},{"Typeface name":"Wingdings","Dingbat dec":"112","Dingbat hex":"70","Unicode dec":"128912","Unicode hex":"1F790"},{"Typeface name":"Wingdings","Dingbat dec":"113","Dingbat hex":"71","Unicode dec":"10065","Unicode hex":"2751"},{"Typeface name":"Wingdings","Dingbat dec":"114","Dingbat hex":"72","Unicode dec":"10066","Unicode hex":"2752"},{"Typeface name":"Wingdings","Dingbat dec":"115","Dingbat hex":"73","Unicode dec":"128927","Unicode hex":"1F79F"},{"Typeface name":"Wingdings","Dingbat dec":"116","Dingbat hex":"74","Unicode dec":"10731","Unicode hex":"29EB"},{"Typeface name":"Wingdings","Dingbat dec":"117","Dingbat hex":"75","Unicode dec":"9670","Unicode hex":"25C6"},{"Typeface name":"Wingdings","Dingbat dec":"118","Dingbat hex":"76","Unicode dec":"10070","Unicode hex":"2756"},{"Typeface name":"Wingdings","Dingbat dec":"119","Dingbat hex":"77","Unicode dec":"11049","Unicode hex":"2B29"},{"Typeface name":"Wingdings","Dingbat dec":"120","Dingbat hex":"78","Unicode dec":"8999","Unicode hex":"2327"},{"Typeface name":"Wingdings","Dingbat dec":"121","Dingbat hex":"79","Unicode dec":"11193","Unicode hex":"2BB9"},{"Typeface name":"Wingdings","Dingbat dec":"122","Dingbat hex":"7A","Unicode dec":"8984","Unicode hex":"2318"},{"Typeface name":"Wingdings","Dingbat dec":"123","Dingbat hex":"7B","Unicode dec":"127989","Unicode hex":"1F3F5"},{"Typeface name":"Wingdings","Dingbat dec":"124","Dingbat hex":"7C","Unicode dec":"127990","Unicode hex":"1F3F6"},{"Typeface name":"Wingdings","Dingbat dec":"125","Dingbat hex":"7D","Unicode dec":"128630","Unicode hex":"1F676"},{"Typeface name":"Wingdings","Dingbat dec":"126","Dingbat hex":"7E","Unicode dec":"128631","Unicode hex":"1F677"},{"Typeface name":"Wingdings","Dingbat dec":"127","Dingbat hex":"7F","Unicode dec":"9647","Unicode hex":"25AF"},{"Typeface name":"Wingdings","Dingbat dec":"128","Dingbat hex":"80","Unicode dec":"127243","Unicode hex":"1F10B"},{"Typeface name":"Wingdings","Dingbat dec":"129","Dingbat hex":"81","Unicode dec":"10112","Unicode hex":"2780"},{"Typeface name":"Wingdings","Dingbat dec":"130","Dingbat hex":"82","Unicode dec":"10113","Unicode hex":"2781"},{"Typeface name":"Wingdings","Dingbat dec":"131","Dingbat hex":"83","Unicode dec":"10114","Unicode hex":"2782"},{"Typeface name":"Wingdings","Dingbat dec":"132","Dingbat hex":"84","Unicode dec":"10115","Unicode hex":"2783"},{"Typeface name":"Wingdings","Dingbat dec":"133","Dingbat hex":"85","Unicode dec":"10116","Unicode hex":"2784"},{"Typeface name":"Wingdings","Dingbat dec":"134","Dingbat hex":"86","Unicode dec":"10117","Unicode hex":"2785"},{"Typeface name":"Wingdings","Dingbat dec":"135","Dingbat hex":"87","Unicode dec":"10118","Unicode hex":"2786"},{"Typeface name":"Wingdings","Dingbat dec":"136","Dingbat hex":"88","Unicode dec":"10119","Unicode hex":"2787"},{"Typeface name":"Wingdings","Dingbat dec":"137","Dingbat hex":"89","Unicode dec":"10120","Unicode hex":"2788"},{"Typeface name":"Wingdings","Dingbat dec":"138","Dingbat hex":"8A","Unicode dec":"10121","Unicode hex":"2789"},{"Typeface name":"Wingdings","Dingbat dec":"139","Dingbat hex":"8B","Unicode dec":"127244","Unicode hex":"1F10C"},{"Typeface name":"Wingdings","Dingbat dec":"140","Dingbat hex":"8C","Unicode dec":"10122","Unicode hex":"278A"},{"Typeface name":"Wingdings","Dingbat dec":"141","Dingbat hex":"8D","Unicode dec":"10123","Unicode hex":"278B"},{"Typeface name":"Wingdings","Dingbat dec":"142","Dingbat hex":"8E","Unicode dec":"10124","Unicode hex":"278C"},{"Typeface name":"Wingdings","Dingbat dec":"143","Dingbat hex":"8F","Unicode dec":"10125","Unicode hex":"278D"},{"Typeface name":"Wingdings","Dingbat dec":"144","Dingbat hex":"90","Unicode dec":"10126","Unicode hex":"278E"},{"Typeface name":"Wingdings","Dingbat dec":"145","Dingbat hex":"91","Unicode dec":"10127","Unicode hex":"278F"},{"Typeface name":"Wingdings","Dingbat dec":"146","Dingbat hex":"92","Unicode dec":"10128","Unicode hex":"2790"},{"Typeface name":"Wingdings","Dingbat dec":"147","Dingbat hex":"93","Unicode dec":"10129","Unicode hex":"2791"},{"Typeface name":"Wingdings","Dingbat dec":"148","Dingbat hex":"94","Unicode dec":"10130","Unicode hex":"2792"},{"Typeface name":"Wingdings","Dingbat dec":"149","Dingbat hex":"95","Unicode dec":"10131","Unicode hex":"2793"},{"Typeface name":"Wingdings","Dingbat dec":"150","Dingbat hex":"96","Unicode dec":"128610","Unicode hex":"1F662"},{"Typeface name":"Wingdings","Dingbat dec":"151","Dingbat hex":"97","Unicode dec":"128608","Unicode hex":"1F660"},{"Typeface name":"Wingdings","Dingbat dec":"152","Dingbat hex":"98","Unicode dec":"128609","Unicode hex":"1F661"},{"Typeface name":"Wingdings","Dingbat dec":"153","Dingbat hex":"99","Unicode dec":"128611","Unicode hex":"1F663"},{"Typeface name":"Wingdings","Dingbat dec":"154","Dingbat hex":"9A","Unicode dec":"128606","Unicode hex":"1F65E"},{"Typeface name":"Wingdings","Dingbat dec":"155","Dingbat hex":"9B","Unicode dec":"128604","Unicode hex":"1F65C"},{"Typeface name":"Wingdings","Dingbat dec":"156","Dingbat hex":"9C","Unicode dec":"128605","Unicode hex":"1F65D"},{"Typeface name":"Wingdings","Dingbat dec":"157","Dingbat hex":"9D","Unicode dec":"128607","Unicode hex":"1F65F"},{"Typeface name":"Wingdings","Dingbat dec":"158","Dingbat hex":"9E","Unicode dec":"8729","Unicode hex":"2219"},{"Typeface name":"Wingdings","Dingbat dec":"159","Dingbat hex":"9F","Unicode dec":"8226","Unicode hex":"2022"},{"Typeface name":"Wingdings","Dingbat dec":"160","Dingbat hex":"A0","Unicode dec":"11037","Unicode hex":"2B1D"},{"Typeface name":"Wingdings","Dingbat dec":"161","Dingbat hex":"A1","Unicode dec":"11096","Unicode hex":"2B58"},{"Typeface name":"Wingdings","Dingbat dec":"162","Dingbat hex":"A2","Unicode dec":"128902","Unicode hex":"1F786"},{"Typeface name":"Wingdings","Dingbat dec":"163","Dingbat hex":"A3","Unicode dec":"128904","Unicode hex":"1F788"},{"Typeface name":"Wingdings","Dingbat dec":"164","Dingbat hex":"A4","Unicode dec":"128906","Unicode hex":"1F78A"},{"Typeface name":"Wingdings","Dingbat dec":"165","Dingbat hex":"A5","Unicode dec":"128907","Unicode hex":"1F78B"},{"Typeface name":"Wingdings","Dingbat dec":"166","Dingbat hex":"A6","Unicode dec":"128319","Unicode hex":"1F53F"},{"Typeface name":"Wingdings","Dingbat dec":"167","Dingbat hex":"A7","Unicode dec":"9642","Unicode hex":"25AA"},{"Typeface name":"Wingdings","Dingbat dec":"168","Dingbat hex":"A8","Unicode dec":"128910","Unicode hex":"1F78E"},{"Typeface name":"Wingdings","Dingbat dec":"169","Dingbat hex":"A9","Unicode dec":"128961","Unicode hex":"1F7C1"},{"Typeface name":"Wingdings","Dingbat dec":"170","Dingbat hex":"AA","Unicode dec":"128965","Unicode hex":"1F7C5"},{"Typeface name":"Wingdings","Dingbat dec":"171","Dingbat hex":"AB","Unicode dec":"9733","Unicode hex":"2605"},{"Typeface name":"Wingdings","Dingbat dec":"172","Dingbat hex":"AC","Unicode dec":"128971","Unicode hex":"1F7CB"},{"Typeface name":"Wingdings","Dingbat dec":"173","Dingbat hex":"AD","Unicode dec":"128975","Unicode hex":"1F7CF"},{"Typeface name":"Wingdings","Dingbat dec":"174","Dingbat hex":"AE","Unicode dec":"128979","Unicode hex":"1F7D3"},{"Typeface name":"Wingdings","Dingbat dec":"175","Dingbat hex":"AF","Unicode dec":"128977","Unicode hex":"1F7D1"},{"Typeface name":"Wingdings","Dingbat dec":"176","Dingbat hex":"B0","Unicode dec":"11216","Unicode hex":"2BD0"},{"Typeface name":"Wingdings","Dingbat dec":"177","Dingbat hex":"B1","Unicode dec":"8982","Unicode hex":"2316"},{"Typeface name":"Wingdings","Dingbat dec":"178","Dingbat hex":"B2","Unicode dec":"11214","Unicode hex":"2BCE"},{"Typeface name":"Wingdings","Dingbat dec":"179","Dingbat hex":"B3","Unicode dec":"11215","Unicode hex":"2BCF"},{"Typeface name":"Wingdings","Dingbat dec":"180","Dingbat hex":"B4","Unicode dec":"11217","Unicode hex":"2BD1"},{"Typeface name":"Wingdings","Dingbat dec":"181","Dingbat hex":"B5","Unicode dec":"10026","Unicode hex":"272A"},{"Typeface name":"Wingdings","Dingbat dec":"182","Dingbat hex":"B6","Unicode dec":"10032","Unicode hex":"2730"},{"Typeface name":"Wingdings","Dingbat dec":"183","Dingbat hex":"B7","Unicode dec":"128336","Unicode hex":"1F550"},{"Typeface name":"Wingdings","Dingbat dec":"184","Dingbat hex":"B8","Unicode dec":"128337","Unicode hex":"1F551"},{"Typeface name":"Wingdings","Dingbat dec":"185","Dingbat hex":"B9","Unicode dec":"128338","Unicode hex":"1F552"},{"Typeface name":"Wingdings","Dingbat dec":"186","Dingbat hex":"BA","Unicode dec":"128339","Unicode hex":"1F553"},{"Typeface name":"Wingdings","Dingbat dec":"187","Dingbat hex":"BB","Unicode dec":"128340","Unicode hex":"1F554"},{"Typeface name":"Wingdings","Dingbat dec":"188","Dingbat hex":"BC","Unicode dec":"128341","Unicode hex":"1F555"},{"Typeface name":"Wingdings","Dingbat dec":"189","Dingbat hex":"BD","Unicode dec":"128342","Unicode hex":"1F556"},{"Typeface name":"Wingdings","Dingbat dec":"190","Dingbat hex":"BE","Unicode dec":"128343","Unicode hex":"1F557"},{"Typeface name":"Wingdings","Dingbat dec":"191","Dingbat hex":"BF","Unicode dec":"128344","Unicode hex":"1F558"},{"Typeface name":"Wingdings","Dingbat dec":"192","Dingbat hex":"C0","Unicode dec":"128345","Unicode hex":"1F559"},{"Typeface name":"Wingdings","Dingbat dec":"193","Dingbat hex":"C1","Unicode dec":"128346","Unicode hex":"1F55A"},{"Typeface name":"Wingdings","Dingbat dec":"194","Dingbat hex":"C2","Unicode dec":"128347","Unicode hex":"1F55B"},{"Typeface name":"Wingdings","Dingbat dec":"195","Dingbat hex":"C3","Unicode dec":"11184","Unicode hex":"2BB0"},{"Typeface name":"Wingdings","Dingbat dec":"196","Dingbat hex":"C4","Unicode dec":"11185","Unicode hex":"2BB1"},{"Typeface name":"Wingdings","Dingbat dec":"197","Dingbat hex":"C5","Unicode dec":"11186","Unicode hex":"2BB2"},{"Typeface name":"Wingdings","Dingbat dec":"198","Dingbat hex":"C6","Unicode dec":"11187","Unicode hex":"2BB3"},{"Typeface name":"Wingdings","Dingbat dec":"199","Dingbat hex":"C7","Unicode dec":"11188","Unicode hex":"2BB4"},{"Typeface name":"Wingdings","Dingbat dec":"200","Dingbat hex":"C8","Unicode dec":"11189","Unicode hex":"2BB5"},{"Typeface name":"Wingdings","Dingbat dec":"201","Dingbat hex":"C9","Unicode dec":"11190","Unicode hex":"2BB6"},{"Typeface name":"Wingdings","Dingbat dec":"202","Dingbat hex":"CA","Unicode dec":"11191","Unicode hex":"2BB7"},{"Typeface name":"Wingdings","Dingbat dec":"203","Dingbat hex":"CB","Unicode dec":"128618","Unicode hex":"1F66A"},{"Typeface name":"Wingdings","Dingbat dec":"204","Dingbat hex":"CC","Unicode dec":"128619","Unicode hex":"1F66B"},{"Typeface name":"Wingdings","Dingbat dec":"205","Dingbat hex":"CD","Unicode dec":"128597","Unicode hex":"1F655"},{"Typeface name":"Wingdings","Dingbat dec":"206","Dingbat hex":"CE","Unicode dec":"128596","Unicode hex":"1F654"},{"Typeface name":"Wingdings","Dingbat dec":"207","Dingbat hex":"CF","Unicode dec":"128599","Unicode hex":"1F657"},{"Typeface name":"Wingdings","Dingbat dec":"208","Dingbat hex":"D0","Unicode dec":"128598","Unicode hex":"1F656"},{"Typeface name":"Wingdings","Dingbat dec":"209","Dingbat hex":"D1","Unicode dec":"128592","Unicode hex":"1F650"},{"Typeface name":"Wingdings","Dingbat dec":"210","Dingbat hex":"D2","Unicode dec":"128593","Unicode hex":"1F651"},{"Typeface name":"Wingdings","Dingbat dec":"211","Dingbat hex":"D3","Unicode dec":"128594","Unicode hex":"1F652"},{"Typeface name":"Wingdings","Dingbat dec":"212","Dingbat hex":"D4","Unicode dec":"128595","Unicode hex":"1F653"},{"Typeface name":"Wingdings","Dingbat dec":"213","Dingbat hex":"D5","Unicode dec":"9003","Unicode hex":"232B"},{"Typeface name":"Wingdings","Dingbat dec":"214","Dingbat hex":"D6","Unicode dec":"8998","Unicode hex":"2326"},{"Typeface name":"Wingdings","Dingbat dec":"215","Dingbat hex":"D7","Unicode dec":"11160","Unicode hex":"2B98"},{"Typeface name":"Wingdings","Dingbat dec":"216","Dingbat hex":"D8","Unicode dec":"11162","Unicode hex":"2B9A"},{"Typeface name":"Wingdings","Dingbat dec":"217","Dingbat hex":"D9","Unicode dec":"11161","Unicode hex":"2B99"},{"Typeface name":"Wingdings","Dingbat dec":"218","Dingbat hex":"DA","Unicode dec":"11163","Unicode hex":"2B9B"},{"Typeface name":"Wingdings","Dingbat dec":"219","Dingbat hex":"DB","Unicode dec":"11144","Unicode hex":"2B88"},{"Typeface name":"Wingdings","Dingbat dec":"220","Dingbat hex":"DC","Unicode dec":"11146","Unicode hex":"2B8A"},{"Typeface name":"Wingdings","Dingbat dec":"221","Dingbat hex":"DD","Unicode dec":"11145","Unicode hex":"2B89"},{"Typeface name":"Wingdings","Dingbat dec":"222","Dingbat hex":"DE","Unicode dec":"11147","Unicode hex":"2B8B"},{"Typeface name":"Wingdings","Dingbat dec":"223","Dingbat hex":"DF","Unicode dec":"129128","Unicode hex":"1F868"},{"Typeface name":"Wingdings","Dingbat dec":"224","Dingbat hex":"E0","Unicode dec":"129130","Unicode hex":"1F86A"},{"Typeface name":"Wingdings","Dingbat dec":"225","Dingbat hex":"E1","Unicode dec":"129129","Unicode hex":"1F869"},{"Typeface name":"Wingdings","Dingbat dec":"226","Dingbat hex":"E2","Unicode dec":"129131","Unicode hex":"1F86B"},{"Typeface name":"Wingdings","Dingbat dec":"227","Dingbat hex":"E3","Unicode dec":"129132","Unicode hex":"1F86C"},{"Typeface name":"Wingdings","Dingbat dec":"228","Dingbat hex":"E4","Unicode dec":"129133","Unicode hex":"1F86D"},{"Typeface name":"Wingdings","Dingbat dec":"229","Dingbat hex":"E5","Unicode dec":"129135","Unicode hex":"1F86F"},{"Typeface name":"Wingdings","Dingbat dec":"230","Dingbat hex":"E6","Unicode dec":"129134","Unicode hex":"1F86E"},{"Typeface name":"Wingdings","Dingbat dec":"231","Dingbat hex":"E7","Unicode dec":"129144","Unicode hex":"1F878"},{"Typeface name":"Wingdings","Dingbat dec":"232","Dingbat hex":"E8","Unicode dec":"129146","Unicode hex":"1F87A"},{"Typeface name":"Wingdings","Dingbat dec":"233","Dingbat hex":"E9","Unicode dec":"129145","Unicode hex":"1F879"},{"Typeface name":"Wingdings","Dingbat dec":"234","Dingbat hex":"EA","Unicode dec":"129147","Unicode hex":"1F87B"},{"Typeface name":"Wingdings","Dingbat dec":"235","Dingbat hex":"EB","Unicode dec":"129148","Unicode hex":"1F87C"},{"Typeface name":"Wingdings","Dingbat dec":"236","Dingbat hex":"EC","Unicode dec":"129149","Unicode hex":"1F87D"},{"Typeface name":"Wingdings","Dingbat dec":"237","Dingbat hex":"ED","Unicode dec":"129151","Unicode hex":"1F87F"},{"Typeface name":"Wingdings","Dingbat dec":"238","Dingbat hex":"EE","Unicode dec":"129150","Unicode hex":"1F87E"},{"Typeface name":"Wingdings","Dingbat dec":"239","Dingbat hex":"EF","Unicode dec":"8678","Unicode hex":"21E6"},{"Typeface name":"Wingdings","Dingbat dec":"240","Dingbat hex":"F0","Unicode dec":"8680","Unicode hex":"21E8"},{"Typeface name":"Wingdings","Dingbat dec":"241","Dingbat hex":"F1","Unicode dec":"8679","Unicode hex":"21E7"},{"Typeface name":"Wingdings","Dingbat dec":"242","Dingbat hex":"F2","Unicode dec":"8681","Unicode hex":"21E9"},{"Typeface name":"Wingdings","Dingbat dec":"243","Dingbat hex":"F3","Unicode dec":"11012","Unicode hex":"2B04"},{"Typeface name":"Wingdings","Dingbat dec":"244","Dingbat hex":"F4","Unicode dec":"8691","Unicode hex":"21F3"},{"Typeface name":"Wingdings","Dingbat dec":"245","Dingbat hex":"F5","Unicode dec":"11009","Unicode hex":"2B01"},{"Typeface name":"Wingdings","Dingbat dec":"246","Dingbat hex":"F6","Unicode dec":"11008","Unicode hex":"2B00"},{"Typeface name":"Wingdings","Dingbat dec":"247","Dingbat hex":"F7","Unicode dec":"11011","Unicode hex":"2B03"},{"Typeface name":"Wingdings","Dingbat dec":"248","Dingbat hex":"F8","Unicode dec":"11010","Unicode hex":"2B02"},{"Typeface name":"Wingdings","Dingbat dec":"249","Dingbat hex":"F9","Unicode dec":"129196","Unicode hex":"1F8AC"},{"Typeface name":"Wingdings","Dingbat dec":"250","Dingbat hex":"FA","Unicode dec":"129197","Unicode hex":"1F8AD"},{"Typeface name":"Wingdings","Dingbat dec":"251","Dingbat hex":"FB","Unicode dec":"128502","Unicode hex":"1F5F6"},{"Typeface name":"Wingdings","Dingbat dec":"252","Dingbat hex":"FC","Unicode dec":"10003","Unicode hex":"2713"},{"Typeface name":"Wingdings","Dingbat dec":"253","Dingbat hex":"FD","Unicode dec":"128503","Unicode hex":"1F5F7"},{"Typeface name":"Wingdings","Dingbat dec":"254","Dingbat hex":"FE","Unicode dec":"128505","Unicode hex":"1F5F9"},{"Typeface name":"Wingdings 2","Dingbat dec":"32","Dingbat hex":"20","Unicode dec":"32","Unicode hex":"20"},{"Typeface name":"Wingdings 2","Dingbat dec":"33","Dingbat hex":"21","Unicode dec":"128394","Unicode hex":"1F58A"},{"Typeface name":"Wingdings 2","Dingbat dec":"34","Dingbat hex":"22","Unicode dec":"128395","Unicode hex":"1F58B"},{"Typeface name":"Wingdings 2","Dingbat dec":"35","Dingbat hex":"23","Unicode dec":"128396","Unicode hex":"1F58C"},{"Typeface name":"Wingdings 2","Dingbat dec":"36","Dingbat hex":"24","Unicode dec":"128397","Unicode hex":"1F58D"},{"Typeface name":"Wingdings 2","Dingbat dec":"37","Dingbat hex":"25","Unicode dec":"9988","Unicode hex":"2704"},{"Typeface name":"Wingdings 2","Dingbat dec":"38","Dingbat hex":"26","Unicode dec":"9984","Unicode hex":"2700"},{"Typeface name":"Wingdings 2","Dingbat dec":"39","Dingbat hex":"27","Unicode dec":"128382","Unicode hex":"1F57E"},{"Typeface name":"Wingdings 2","Dingbat dec":"40","Dingbat hex":"28","Unicode dec":"128381","Unicode hex":"1F57D"},{"Typeface name":"Wingdings 2","Dingbat dec":"41","Dingbat hex":"29","Unicode dec":"128453","Unicode hex":"1F5C5"},{"Typeface name":"Wingdings 2","Dingbat dec":"42","Dingbat hex":"2A","Unicode dec":"128454","Unicode hex":"1F5C6"},{"Typeface name":"Wingdings 2","Dingbat dec":"43","Dingbat hex":"2B","Unicode dec":"128455","Unicode hex":"1F5C7"},{"Typeface name":"Wingdings 2","Dingbat dec":"44","Dingbat hex":"2C","Unicode dec":"128456","Unicode hex":"1F5C8"},{"Typeface name":"Wingdings 2","Dingbat dec":"45","Dingbat hex":"2D","Unicode dec":"128457","Unicode hex":"1F5C9"},{"Typeface name":"Wingdings 2","Dingbat dec":"46","Dingbat hex":"2E","Unicode dec":"128458","Unicode hex":"1F5CA"},{"Typeface name":"Wingdings 2","Dingbat dec":"47","Dingbat hex":"2F","Unicode dec":"128459","Unicode hex":"1F5CB"},{"Typeface name":"Wingdings 2","Dingbat dec":"48","Dingbat hex":"30","Unicode dec":"128460","Unicode hex":"1F5CC"},{"Typeface name":"Wingdings 2","Dingbat dec":"49","Dingbat hex":"31","Unicode dec":"128461","Unicode hex":"1F5CD"},{"Typeface name":"Wingdings 2","Dingbat dec":"50","Dingbat hex":"32","Unicode dec":"128203","Unicode hex":"1F4CB"},{"Typeface name":"Wingdings 2","Dingbat dec":"51","Dingbat hex":"33","Unicode dec":"128465","Unicode hex":"1F5D1"},{"Typeface name":"Wingdings 2","Dingbat dec":"52","Dingbat hex":"34","Unicode dec":"128468","Unicode hex":"1F5D4"},{"Typeface name":"Wingdings 2","Dingbat dec":"53","Dingbat hex":"35","Unicode dec":"128437","Unicode hex":"1F5B5"},{"Typeface name":"Wingdings 2","Dingbat dec":"54","Dingbat hex":"36","Unicode dec":"128438","Unicode hex":"1F5B6"},{"Typeface name":"Wingdings 2","Dingbat dec":"55","Dingbat hex":"37","Unicode dec":"128439","Unicode hex":"1F5B7"},{"Typeface name":"Wingdings 2","Dingbat dec":"56","Dingbat hex":"38","Unicode dec":"128440","Unicode hex":"1F5B8"},{"Typeface name":"Wingdings 2","Dingbat dec":"57","Dingbat hex":"39","Unicode dec":"128429","Unicode hex":"1F5AD"},{"Typeface name":"Wingdings 2","Dingbat dec":"58","Dingbat hex":"3A","Unicode dec":"128431","Unicode hex":"1F5AF"},{"Typeface name":"Wingdings 2","Dingbat dec":"59","Dingbat hex":"3B","Unicode dec":"128433","Unicode hex":"1F5B1"},{"Typeface name":"Wingdings 2","Dingbat dec":"60","Dingbat hex":"3C","Unicode dec":"128402","Unicode hex":"1F592"},{"Typeface name":"Wingdings 2","Dingbat dec":"61","Dingbat hex":"3D","Unicode dec":"128403","Unicode hex":"1F593"},{"Typeface name":"Wingdings 2","Dingbat dec":"62","Dingbat hex":"3E","Unicode dec":"128408","Unicode hex":"1F598"},{"Typeface name":"Wingdings 2","Dingbat dec":"63","Dingbat hex":"3F","Unicode dec":"128409","Unicode hex":"1F599"},{"Typeface name":"Wingdings 2","Dingbat dec":"64","Dingbat hex":"40","Unicode dec":"128410","Unicode hex":"1F59A"},{"Typeface name":"Wingdings 2","Dingbat dec":"65","Dingbat hex":"41","Unicode dec":"128411","Unicode hex":"1F59B"},{"Typeface name":"Wingdings 2","Dingbat dec":"66","Dingbat hex":"42","Unicode dec":"128072","Unicode hex":"1F448"},{"Typeface name":"Wingdings 2","Dingbat dec":"67","Dingbat hex":"43","Unicode dec":"128073","Unicode hex":"1F449"},{"Typeface name":"Wingdings 2","Dingbat dec":"68","Dingbat hex":"44","Unicode dec":"128412","Unicode hex":"1F59C"},{"Typeface name":"Wingdings 2","Dingbat dec":"69","Dingbat hex":"45","Unicode dec":"128413","Unicode hex":"1F59D"},{"Typeface name":"Wingdings 2","Dingbat dec":"70","Dingbat hex":"46","Unicode dec":"128414","Unicode hex":"1F59E"},{"Typeface name":"Wingdings 2","Dingbat dec":"71","Dingbat hex":"47","Unicode dec":"128415","Unicode hex":"1F59F"},{"Typeface name":"Wingdings 2","Dingbat dec":"72","Dingbat hex":"48","Unicode dec":"128416","Unicode hex":"1F5A0"},{"Typeface name":"Wingdings 2","Dingbat dec":"73","Dingbat hex":"49","Unicode dec":"128417","Unicode hex":"1F5A1"},{"Typeface name":"Wingdings 2","Dingbat dec":"74","Dingbat hex":"4A","Unicode dec":"128070","Unicode hex":"1F446"},{"Typeface name":"Wingdings 2","Dingbat dec":"75","Dingbat hex":"4B","Unicode dec":"128071","Unicode hex":"1F447"},{"Typeface name":"Wingdings 2","Dingbat dec":"76","Dingbat hex":"4C","Unicode dec":"128418","Unicode hex":"1F5A2"},{"Typeface name":"Wingdings 2","Dingbat dec":"77","Dingbat hex":"4D","Unicode dec":"128419","Unicode hex":"1F5A3"},{"Typeface name":"Wingdings 2","Dingbat dec":"78","Dingbat hex":"4E","Unicode dec":"128401","Unicode hex":"1F591"},{"Typeface name":"Wingdings 2","Dingbat dec":"79","Dingbat hex":"4F","Unicode dec":"128500","Unicode hex":"1F5F4"},{"Typeface name":"Wingdings 2","Dingbat dec":"80","Dingbat hex":"50","Unicode dec":"128504","Unicode hex":"1F5F8"},{"Typeface name":"Wingdings 2","Dingbat dec":"81","Dingbat hex":"51","Unicode dec":"128501","Unicode hex":"1F5F5"},{"Typeface name":"Wingdings 2","Dingbat dec":"82","Dingbat hex":"52","Unicode dec":"9745","Unicode hex":"2611"},{"Typeface name":"Wingdings 2","Dingbat dec":"83","Dingbat hex":"53","Unicode dec":"11197","Unicode hex":"2BBD"},{"Typeface name":"Wingdings 2","Dingbat dec":"84","Dingbat hex":"54","Unicode dec":"9746","Unicode hex":"2612"},{"Typeface name":"Wingdings 2","Dingbat dec":"85","Dingbat hex":"55","Unicode dec":"11198","Unicode hex":"2BBE"},{"Typeface name":"Wingdings 2","Dingbat dec":"86","Dingbat hex":"56","Unicode dec":"11199","Unicode hex":"2BBF"},{"Typeface name":"Wingdings 2","Dingbat dec":"87","Dingbat hex":"57","Unicode dec":"128711","Unicode hex":"1F6C7"},{"Typeface name":"Wingdings 2","Dingbat dec":"88","Dingbat hex":"58","Unicode dec":"10680","Unicode hex":"29B8"},{"Typeface name":"Wingdings 2","Dingbat dec":"89","Dingbat hex":"59","Unicode dec":"128625","Unicode hex":"1F671"},{"Typeface name":"Wingdings 2","Dingbat dec":"90","Dingbat hex":"5A","Unicode dec":"128628","Unicode hex":"1F674"},{"Typeface name":"Wingdings 2","Dingbat dec":"91","Dingbat hex":"5B","Unicode dec":"128626","Unicode hex":"1F672"},{"Typeface name":"Wingdings 2","Dingbat dec":"92","Dingbat hex":"5C","Unicode dec":"128627","Unicode hex":"1F673"},{"Typeface name":"Wingdings 2","Dingbat dec":"93","Dingbat hex":"5D","Unicode dec":"8253","Unicode hex":"203D"},{"Typeface name":"Wingdings 2","Dingbat dec":"94","Dingbat hex":"5E","Unicode dec":"128633","Unicode hex":"1F679"},{"Typeface name":"Wingdings 2","Dingbat dec":"95","Dingbat hex":"5F","Unicode dec":"128634","Unicode hex":"1F67A"},{"Typeface name":"Wingdings 2","Dingbat dec":"96","Dingbat hex":"60","Unicode dec":"128635","Unicode hex":"1F67B"},{"Typeface name":"Wingdings 2","Dingbat dec":"97","Dingbat hex":"61","Unicode dec":"128614","Unicode hex":"1F666"},{"Typeface name":"Wingdings 2","Dingbat dec":"98","Dingbat hex":"62","Unicode dec":"128612","Unicode hex":"1F664"},{"Typeface name":"Wingdings 2","Dingbat dec":"99","Dingbat hex":"63","Unicode dec":"128613","Unicode hex":"1F665"},{"Typeface name":"Wingdings 2","Dingbat dec":"100","Dingbat hex":"64","Unicode dec":"128615","Unicode hex":"1F667"},{"Typeface name":"Wingdings 2","Dingbat dec":"101","Dingbat hex":"65","Unicode dec":"128602","Unicode hex":"1F65A"},{"Typeface name":"Wingdings 2","Dingbat dec":"102","Dingbat hex":"66","Unicode dec":"128600","Unicode hex":"1F658"},{"Typeface name":"Wingdings 2","Dingbat dec":"103","Dingbat hex":"67","Unicode dec":"128601","Unicode hex":"1F659"},{"Typeface name":"Wingdings 2","Dingbat dec":"104","Dingbat hex":"68","Unicode dec":"128603","Unicode hex":"1F65B"},{"Typeface name":"Wingdings 2","Dingbat dec":"105","Dingbat hex":"69","Unicode dec":"9450","Unicode hex":"24EA"},{"Typeface name":"Wingdings 2","Dingbat dec":"106","Dingbat hex":"6A","Unicode dec":"9312","Unicode hex":"2460"},{"Typeface name":"Wingdings 2","Dingbat dec":"107","Dingbat hex":"6B","Unicode dec":"9313","Unicode hex":"2461"},{"Typeface name":"Wingdings 2","Dingbat dec":"108","Dingbat hex":"6C","Unicode dec":"9314","Unicode hex":"2462"},{"Typeface name":"Wingdings 2","Dingbat dec":"109","Dingbat hex":"6D","Unicode dec":"9315","Unicode hex":"2463"},{"Typeface name":"Wingdings 2","Dingbat dec":"110","Dingbat hex":"6E","Unicode dec":"9316","Unicode hex":"2464"},{"Typeface name":"Wingdings 2","Dingbat dec":"111","Dingbat hex":"6F","Unicode dec":"9317","Unicode hex":"2465"},{"Typeface name":"Wingdings 2","Dingbat dec":"112","Dingbat hex":"70","Unicode dec":"9318","Unicode hex":"2466"},{"Typeface name":"Wingdings 2","Dingbat dec":"113","Dingbat hex":"71","Unicode dec":"9319","Unicode hex":"2467"},{"Typeface name":"Wingdings 2","Dingbat dec":"114","Dingbat hex":"72","Unicode dec":"9320","Unicode hex":"2468"},{"Typeface name":"Wingdings 2","Dingbat dec":"115","Dingbat hex":"73","Unicode dec":"9321","Unicode hex":"2469"},{"Typeface name":"Wingdings 2","Dingbat dec":"116","Dingbat hex":"74","Unicode dec":"9471","Unicode hex":"24FF"},{"Typeface name":"Wingdings 2","Dingbat dec":"117","Dingbat hex":"75","Unicode dec":"10102","Unicode hex":"2776"},{"Typeface name":"Wingdings 2","Dingbat dec":"118","Dingbat hex":"76","Unicode dec":"10103","Unicode hex":"2777"},{"Typeface name":"Wingdings 2","Dingbat dec":"119","Dingbat hex":"77","Unicode dec":"10104","Unicode hex":"2778"},{"Typeface name":"Wingdings 2","Dingbat dec":"120","Dingbat hex":"78","Unicode dec":"10105","Unicode hex":"2779"},{"Typeface name":"Wingdings 2","Dingbat dec":"121","Dingbat hex":"79","Unicode dec":"10106","Unicode hex":"277A"},{"Typeface name":"Wingdings 2","Dingbat dec":"122","Dingbat hex":"7A","Unicode dec":"10107","Unicode hex":"277B"},{"Typeface name":"Wingdings 2","Dingbat dec":"123","Dingbat hex":"7B","Unicode dec":"10108","Unicode hex":"277C"},{"Typeface name":"Wingdings 2","Dingbat dec":"124","Dingbat hex":"7C","Unicode dec":"10109","Unicode hex":"277D"},{"Typeface name":"Wingdings 2","Dingbat dec":"125","Dingbat hex":"7D","Unicode dec":"10110","Unicode hex":"277E"},{"Typeface name":"Wingdings 2","Dingbat dec":"126","Dingbat hex":"7E","Unicode dec":"10111","Unicode hex":"277F"},{"Typeface name":"Wingdings 2","Dingbat dec":"128","Dingbat hex":"80","Unicode dec":"9737","Unicode hex":"2609"},{"Typeface name":"Wingdings 2","Dingbat dec":"129","Dingbat hex":"81","Unicode dec":"127765","Unicode hex":"1F315"},{"Typeface name":"Wingdings 2","Dingbat dec":"130","Dingbat hex":"82","Unicode dec":"9789","Unicode hex":"263D"},{"Typeface name":"Wingdings 2","Dingbat dec":"131","Dingbat hex":"83","Unicode dec":"9790","Unicode hex":"263E"},{"Typeface name":"Wingdings 2","Dingbat dec":"132","Dingbat hex":"84","Unicode dec":"11839","Unicode hex":"2E3F"},{"Typeface name":"Wingdings 2","Dingbat dec":"133","Dingbat hex":"85","Unicode dec":"10013","Unicode hex":"271D"},{"Typeface name":"Wingdings 2","Dingbat dec":"134","Dingbat hex":"86","Unicode dec":"128327","Unicode hex":"1F547"},{"Typeface name":"Wingdings 2","Dingbat dec":"135","Dingbat hex":"87","Unicode dec":"128348","Unicode hex":"1F55C"},{"Typeface name":"Wingdings 2","Dingbat dec":"136","Dingbat hex":"88","Unicode dec":"128349","Unicode hex":"1F55D"},{"Typeface name":"Wingdings 2","Dingbat dec":"137","Dingbat hex":"89","Unicode dec":"128350","Unicode hex":"1F55E"},{"Typeface name":"Wingdings 2","Dingbat dec":"138","Dingbat hex":"8A","Unicode dec":"128351","Unicode hex":"1F55F"},{"Typeface name":"Wingdings 2","Dingbat dec":"139","Dingbat hex":"8B","Unicode dec":"128352","Unicode hex":"1F560"},{"Typeface name":"Wingdings 2","Dingbat dec":"140","Dingbat hex":"8C","Unicode dec":"128353","Unicode hex":"1F561"},{"Typeface name":"Wingdings 2","Dingbat dec":"141","Dingbat hex":"8D","Unicode dec":"128354","Unicode hex":"1F562"},{"Typeface name":"Wingdings 2","Dingbat dec":"142","Dingbat hex":"8E","Unicode dec":"128355","Unicode hex":"1F563"},{"Typeface name":"Wingdings 2","Dingbat dec":"143","Dingbat hex":"8F","Unicode dec":"128356","Unicode hex":"1F564"},{"Typeface name":"Wingdings 2","Dingbat dec":"144","Dingbat hex":"90","Unicode dec":"128357","Unicode hex":"1F565"},{"Typeface name":"Wingdings 2","Dingbat dec":"145","Dingbat hex":"91","Unicode dec":"128358","Unicode hex":"1F566"},{"Typeface name":"Wingdings 2","Dingbat dec":"146","Dingbat hex":"92","Unicode dec":"128359","Unicode hex":"1F567"},{"Typeface name":"Wingdings 2","Dingbat dec":"147","Dingbat hex":"93","Unicode dec":"128616","Unicode hex":"1F668"},{"Typeface name":"Wingdings 2","Dingbat dec":"148","Dingbat hex":"94","Unicode dec":"128617","Unicode hex":"1F669"},{"Typeface name":"Wingdings 2","Dingbat dec":"149","Dingbat hex":"95","Unicode dec":"8901","Unicode hex":"22C5"},{"Typeface name":"Wingdings 2","Dingbat dec":"150","Dingbat hex":"96","Unicode dec":"128900","Unicode hex":"1F784"},{"Typeface name":"Wingdings 2","Dingbat dec":"151","Dingbat hex":"97","Unicode dec":"10625","Unicode hex":"2981"},{"Typeface name":"Wingdings 2","Dingbat dec":"152","Dingbat hex":"98","Unicode dec":"9679","Unicode hex":"25CF"},{"Typeface name":"Wingdings 2","Dingbat dec":"153","Dingbat hex":"99","Unicode dec":"9675","Unicode hex":"25CB"},{"Typeface name":"Wingdings 2","Dingbat dec":"154","Dingbat hex":"9A","Unicode dec":"128901","Unicode hex":"1F785"},{"Typeface name":"Wingdings 2","Dingbat dec":"155","Dingbat hex":"9B","Unicode dec":"128903","Unicode hex":"1F787"},{"Typeface name":"Wingdings 2","Dingbat dec":"156","Dingbat hex":"9C","Unicode dec":"128905","Unicode hex":"1F789"},{"Typeface name":"Wingdings 2","Dingbat dec":"157","Dingbat hex":"9D","Unicode dec":"8857","Unicode hex":"2299"},{"Typeface name":"Wingdings 2","Dingbat dec":"158","Dingbat hex":"9E","Unicode dec":"10687","Unicode hex":"29BF"},{"Typeface name":"Wingdings 2","Dingbat dec":"159","Dingbat hex":"9F","Unicode dec":"128908","Unicode hex":"1F78C"},{"Typeface name":"Wingdings 2","Dingbat dec":"160","Dingbat hex":"A0","Unicode dec":"128909","Unicode hex":"1F78D"},{"Typeface name":"Wingdings 2","Dingbat dec":"161","Dingbat hex":"A1","Unicode dec":"9726","Unicode hex":"25FE"},{"Typeface name":"Wingdings 2","Dingbat dec":"162","Dingbat hex":"A2","Unicode dec":"9632","Unicode hex":"25A0"},{"Typeface name":"Wingdings 2","Dingbat dec":"163","Dingbat hex":"A3","Unicode dec":"9633","Unicode hex":"25A1"},{"Typeface name":"Wingdings 2","Dingbat dec":"164","Dingbat hex":"A4","Unicode dec":"128913","Unicode hex":"1F791"},{"Typeface name":"Wingdings 2","Dingbat dec":"165","Dingbat hex":"A5","Unicode dec":"128914","Unicode hex":"1F792"},{"Typeface name":"Wingdings 2","Dingbat dec":"166","Dingbat hex":"A6","Unicode dec":"128915","Unicode hex":"1F793"},{"Typeface name":"Wingdings 2","Dingbat dec":"167","Dingbat hex":"A7","Unicode dec":"128916","Unicode hex":"1F794"},{"Typeface name":"Wingdings 2","Dingbat dec":"168","Dingbat hex":"A8","Unicode dec":"9635","Unicode hex":"25A3"},{"Typeface name":"Wingdings 2","Dingbat dec":"169","Dingbat hex":"A9","Unicode dec":"128917","Unicode hex":"1F795"},{"Typeface name":"Wingdings 2","Dingbat dec":"170","Dingbat hex":"AA","Unicode dec":"128918","Unicode hex":"1F796"},{"Typeface name":"Wingdings 2","Dingbat dec":"171","Dingbat hex":"AB","Unicode dec":"128919","Unicode hex":"1F797"},{"Typeface name":"Wingdings 2","Dingbat dec":"172","Dingbat hex":"AC","Unicode dec":"128920","Unicode hex":"1F798"},{"Typeface name":"Wingdings 2","Dingbat dec":"173","Dingbat hex":"AD","Unicode dec":"11049","Unicode hex":"2B29"},{"Typeface name":"Wingdings 2","Dingbat dec":"174","Dingbat hex":"AE","Unicode dec":"11045","Unicode hex":"2B25"},{"Typeface name":"Wingdings 2","Dingbat dec":"175","Dingbat hex":"AF","Unicode dec":"9671","Unicode hex":"25C7"},{"Typeface name":"Wingdings 2","Dingbat dec":"176","Dingbat hex":"B0","Unicode dec":"128922","Unicode hex":"1F79A"},{"Typeface name":"Wingdings 2","Dingbat dec":"177","Dingbat hex":"B1","Unicode dec":"9672","Unicode hex":"25C8"},{"Typeface name":"Wingdings 2","Dingbat dec":"178","Dingbat hex":"B2","Unicode dec":"128923","Unicode hex":"1F79B"},{"Typeface name":"Wingdings 2","Dingbat dec":"179","Dingbat hex":"B3","Unicode dec":"128924","Unicode hex":"1F79C"},{"Typeface name":"Wingdings 2","Dingbat dec":"180","Dingbat hex":"B4","Unicode dec":"128925","Unicode hex":"1F79D"},{"Typeface name":"Wingdings 2","Dingbat dec":"181","Dingbat hex":"B5","Unicode dec":"128926","Unicode hex":"1F79E"},{"Typeface name":"Wingdings 2","Dingbat dec":"182","Dingbat hex":"B6","Unicode dec":"11050","Unicode hex":"2B2A"},{"Typeface name":"Wingdings 2","Dingbat dec":"183","Dingbat hex":"B7","Unicode dec":"11047","Unicode hex":"2B27"},{"Typeface name":"Wingdings 2","Dingbat dec":"184","Dingbat hex":"B8","Unicode dec":"9674","Unicode hex":"25CA"},{"Typeface name":"Wingdings 2","Dingbat dec":"185","Dingbat hex":"B9","Unicode dec":"128928","Unicode hex":"1F7A0"},{"Typeface name":"Wingdings 2","Dingbat dec":"186","Dingbat hex":"BA","Unicode dec":"9686","Unicode hex":"25D6"},{"Typeface name":"Wingdings 2","Dingbat dec":"187","Dingbat hex":"BB","Unicode dec":"9687","Unicode hex":"25D7"},{"Typeface name":"Wingdings 2","Dingbat dec":"188","Dingbat hex":"BC","Unicode dec":"11210","Unicode hex":"2BCA"},{"Typeface name":"Wingdings 2","Dingbat dec":"189","Dingbat hex":"BD","Unicode dec":"11211","Unicode hex":"2BCB"},{"Typeface name":"Wingdings 2","Dingbat dec":"190","Dingbat hex":"BE","Unicode dec":"11200","Unicode hex":"2BC0"},{"Typeface name":"Wingdings 2","Dingbat dec":"191","Dingbat hex":"BF","Unicode dec":"11201","Unicode hex":"2BC1"},{"Typeface name":"Wingdings 2","Dingbat dec":"192","Dingbat hex":"C0","Unicode dec":"11039","Unicode hex":"2B1F"},{"Typeface name":"Wingdings 2","Dingbat dec":"193","Dingbat hex":"C1","Unicode dec":"11202","Unicode hex":"2BC2"},{"Typeface name":"Wingdings 2","Dingbat dec":"194","Dingbat hex":"C2","Unicode dec":"11043","Unicode hex":"2B23"},{"Typeface name":"Wingdings 2","Dingbat dec":"195","Dingbat hex":"C3","Unicode dec":"11042","Unicode hex":"2B22"},{"Typeface name":"Wingdings 2","Dingbat dec":"196","Dingbat hex":"C4","Unicode dec":"11203","Unicode hex":"2BC3"},{"Typeface name":"Wingdings 2","Dingbat dec":"197","Dingbat hex":"C5","Unicode dec":"11204","Unicode hex":"2BC4"},{"Typeface name":"Wingdings 2","Dingbat dec":"198","Dingbat hex":"C6","Unicode dec":"128929","Unicode hex":"1F7A1"},{"Typeface name":"Wingdings 2","Dingbat dec":"199","Dingbat hex":"C7","Unicode dec":"128930","Unicode hex":"1F7A2"},{"Typeface name":"Wingdings 2","Dingbat dec":"200","Dingbat hex":"C8","Unicode dec":"128931","Unicode hex":"1F7A3"},{"Typeface name":"Wingdings 2","Dingbat dec":"201","Dingbat hex":"C9","Unicode dec":"128932","Unicode hex":"1F7A4"},{"Typeface name":"Wingdings 2","Dingbat dec":"202","Dingbat hex":"CA","Unicode dec":"128933","Unicode hex":"1F7A5"},{"Typeface name":"Wingdings 2","Dingbat dec":"203","Dingbat hex":"CB","Unicode dec":"128934","Unicode hex":"1F7A6"},{"Typeface name":"Wingdings 2","Dingbat dec":"204","Dingbat hex":"CC","Unicode dec":"128935","Unicode hex":"1F7A7"},{"Typeface name":"Wingdings 2","Dingbat dec":"205","Dingbat hex":"CD","Unicode dec":"128936","Unicode hex":"1F7A8"},{"Typeface name":"Wingdings 2","Dingbat dec":"206","Dingbat hex":"CE","Unicode dec":"128937","Unicode hex":"1F7A9"},{"Typeface name":"Wingdings 2","Dingbat dec":"207","Dingbat hex":"CF","Unicode dec":"128938","Unicode hex":"1F7AA"},{"Typeface name":"Wingdings 2","Dingbat dec":"208","Dingbat hex":"D0","Unicode dec":"128939","Unicode hex":"1F7AB"},{"Typeface name":"Wingdings 2","Dingbat dec":"209","Dingbat hex":"D1","Unicode dec":"128940","Unicode hex":"1F7AC"},{"Typeface name":"Wingdings 2","Dingbat dec":"210","Dingbat hex":"D2","Unicode dec":"128941","Unicode hex":"1F7AD"},{"Typeface name":"Wingdings 2","Dingbat dec":"211","Dingbat hex":"D3","Unicode dec":"128942","Unicode hex":"1F7AE"},{"Typeface name":"Wingdings 2","Dingbat dec":"212","Dingbat hex":"D4","Unicode dec":"128943","Unicode hex":"1F7AF"},{"Typeface name":"Wingdings 2","Dingbat dec":"213","Dingbat hex":"D5","Unicode dec":"128944","Unicode hex":"1F7B0"},{"Typeface name":"Wingdings 2","Dingbat dec":"214","Dingbat hex":"D6","Unicode dec":"128945","Unicode hex":"1F7B1"},{"Typeface name":"Wingdings 2","Dingbat dec":"215","Dingbat hex":"D7","Unicode dec":"128946","Unicode hex":"1F7B2"},{"Typeface name":"Wingdings 2","Dingbat dec":"216","Dingbat hex":"D8","Unicode dec":"128947","Unicode hex":"1F7B3"},{"Typeface name":"Wingdings 2","Dingbat dec":"217","Dingbat hex":"D9","Unicode dec":"128948","Unicode hex":"1F7B4"},{"Typeface name":"Wingdings 2","Dingbat dec":"218","Dingbat hex":"DA","Unicode dec":"128949","Unicode hex":"1F7B5"},{"Typeface name":"Wingdings 2","Dingbat dec":"219","Dingbat hex":"DB","Unicode dec":"128950","Unicode hex":"1F7B6"},{"Typeface name":"Wingdings 2","Dingbat dec":"220","Dingbat hex":"DC","Unicode dec":"128951","Unicode hex":"1F7B7"},{"Typeface name":"Wingdings 2","Dingbat dec":"221","Dingbat hex":"DD","Unicode dec":"128952","Unicode hex":"1F7B8"},{"Typeface name":"Wingdings 2","Dingbat dec":"222","Dingbat hex":"DE","Unicode dec":"128953","Unicode hex":"1F7B9"},{"Typeface name":"Wingdings 2","Dingbat dec":"223","Dingbat hex":"DF","Unicode dec":"128954","Unicode hex":"1F7BA"},{"Typeface name":"Wingdings 2","Dingbat dec":"224","Dingbat hex":"E0","Unicode dec":"128955","Unicode hex":"1F7BB"},{"Typeface name":"Wingdings 2","Dingbat dec":"225","Dingbat hex":"E1","Unicode dec":"128956","Unicode hex":"1F7BC"},{"Typeface name":"Wingdings 2","Dingbat dec":"226","Dingbat hex":"E2","Unicode dec":"128957","Unicode hex":"1F7BD"},{"Typeface name":"Wingdings 2","Dingbat dec":"227","Dingbat hex":"E3","Unicode dec":"128958","Unicode hex":"1F7BE"},{"Typeface name":"Wingdings 2","Dingbat dec":"228","Dingbat hex":"E4","Unicode dec":"128959","Unicode hex":"1F7BF"},{"Typeface name":"Wingdings 2","Dingbat dec":"229","Dingbat hex":"E5","Unicode dec":"128960","Unicode hex":"1F7C0"},{"Typeface name":"Wingdings 2","Dingbat dec":"230","Dingbat hex":"E6","Unicode dec":"128962","Unicode hex":"1F7C2"},{"Typeface name":"Wingdings 2","Dingbat dec":"231","Dingbat hex":"E7","Unicode dec":"128964","Unicode hex":"1F7C4"},{"Typeface name":"Wingdings 2","Dingbat dec":"232","Dingbat hex":"E8","Unicode dec":"128966","Unicode hex":"1F7C6"},{"Typeface name":"Wingdings 2","Dingbat dec":"233","Dingbat hex":"E9","Unicode dec":"128969","Unicode hex":"1F7C9"},{"Typeface name":"Wingdings 2","Dingbat dec":"234","Dingbat hex":"EA","Unicode dec":"128970","Unicode hex":"1F7CA"},{"Typeface name":"Wingdings 2","Dingbat dec":"235","Dingbat hex":"EB","Unicode dec":"10038","Unicode hex":"2736"},{"Typeface name":"Wingdings 2","Dingbat dec":"236","Dingbat hex":"EC","Unicode dec":"128972","Unicode hex":"1F7CC"},{"Typeface name":"Wingdings 2","Dingbat dec":"237","Dingbat hex":"ED","Unicode dec":"128974","Unicode hex":"1F7CE"},{"Typeface name":"Wingdings 2","Dingbat dec":"238","Dingbat hex":"EE","Unicode dec":"128976","Unicode hex":"1F7D0"},{"Typeface name":"Wingdings 2","Dingbat dec":"239","Dingbat hex":"EF","Unicode dec":"128978","Unicode hex":"1F7D2"},{"Typeface name":"Wingdings 2","Dingbat dec":"240","Dingbat hex":"F0","Unicode dec":"10041","Unicode hex":"2739"},{"Typeface name":"Wingdings 2","Dingbat dec":"241","Dingbat hex":"F1","Unicode dec":"128963","Unicode hex":"1F7C3"},{"Typeface name":"Wingdings 2","Dingbat dec":"242","Dingbat hex":"F2","Unicode dec":"128967","Unicode hex":"1F7C7"},{"Typeface name":"Wingdings 2","Dingbat dec":"243","Dingbat hex":"F3","Unicode dec":"10031","Unicode hex":"272F"},{"Typeface name":"Wingdings 2","Dingbat dec":"244","Dingbat hex":"F4","Unicode dec":"128973","Unicode hex":"1F7CD"},{"Typeface name":"Wingdings 2","Dingbat dec":"245","Dingbat hex":"F5","Unicode dec":"128980","Unicode hex":"1F7D4"},{"Typeface name":"Wingdings 2","Dingbat dec":"246","Dingbat hex":"F6","Unicode dec":"11212","Unicode hex":"2BCC"},{"Typeface name":"Wingdings 2","Dingbat dec":"247","Dingbat hex":"F7","Unicode dec":"11213","Unicode hex":"2BCD"},{"Typeface name":"Wingdings 2","Dingbat dec":"248","Dingbat hex":"F8","Unicode dec":"8251","Unicode hex":"203B"},{"Typeface name":"Wingdings 2","Dingbat dec":"249","Dingbat hex":"F9","Unicode dec":"8258","Unicode hex":"2042"},{"Typeface name":"Wingdings 3","Dingbat dec":"32","Dingbat hex":"20","Unicode dec":"32","Unicode hex":"20"},{"Typeface name":"Wingdings 3","Dingbat dec":"33","Dingbat hex":"21","Unicode dec":"11104","Unicode hex":"2B60"},{"Typeface name":"Wingdings 3","Dingbat dec":"34","Dingbat hex":"22","Unicode dec":"11106","Unicode hex":"2B62"},{"Typeface name":"Wingdings 3","Dingbat dec":"35","Dingbat hex":"23","Unicode dec":"11105","Unicode hex":"2B61"},{"Typeface name":"Wingdings 3","Dingbat dec":"36","Dingbat hex":"24","Unicode dec":"11107","Unicode hex":"2B63"},{"Typeface name":"Wingdings 3","Dingbat dec":"37","Dingbat hex":"25","Unicode dec":"11110","Unicode hex":"2B66"},{"Typeface name":"Wingdings 3","Dingbat dec":"38","Dingbat hex":"26","Unicode dec":"11111","Unicode hex":"2B67"},{"Typeface name":"Wingdings 3","Dingbat dec":"39","Dingbat hex":"27","Unicode dec":"11113","Unicode hex":"2B69"},{"Typeface name":"Wingdings 3","Dingbat dec":"40","Dingbat hex":"28","Unicode dec":"11112","Unicode hex":"2B68"},{"Typeface name":"Wingdings 3","Dingbat dec":"41","Dingbat hex":"29","Unicode dec":"11120","Unicode hex":"2B70"},{"Typeface name":"Wingdings 3","Dingbat dec":"42","Dingbat hex":"2A","Unicode dec":"11122","Unicode hex":"2B72"},{"Typeface name":"Wingdings 3","Dingbat dec":"43","Dingbat hex":"2B","Unicode dec":"11121","Unicode hex":"2B71"},{"Typeface name":"Wingdings 3","Dingbat dec":"44","Dingbat hex":"2C","Unicode dec":"11123","Unicode hex":"2B73"},{"Typeface name":"Wingdings 3","Dingbat dec":"45","Dingbat hex":"2D","Unicode dec":"11126","Unicode hex":"2B76"},{"Typeface name":"Wingdings 3","Dingbat dec":"46","Dingbat hex":"2E","Unicode dec":"11128","Unicode hex":"2B78"},{"Typeface name":"Wingdings 3","Dingbat dec":"47","Dingbat hex":"2F","Unicode dec":"11131","Unicode hex":"2B7B"},{"Typeface name":"Wingdings 3","Dingbat dec":"48","Dingbat hex":"30","Unicode dec":"11133","Unicode hex":"2B7D"},{"Typeface name":"Wingdings 3","Dingbat dec":"49","Dingbat hex":"31","Unicode dec":"11108","Unicode hex":"2B64"},{"Typeface name":"Wingdings 3","Dingbat dec":"50","Dingbat hex":"32","Unicode dec":"11109","Unicode hex":"2B65"},{"Typeface name":"Wingdings 3","Dingbat dec":"51","Dingbat hex":"33","Unicode dec":"11114","Unicode hex":"2B6A"},{"Typeface name":"Wingdings 3","Dingbat dec":"52","Dingbat hex":"34","Unicode dec":"11116","Unicode hex":"2B6C"},{"Typeface name":"Wingdings 3","Dingbat dec":"53","Dingbat hex":"35","Unicode dec":"11115","Unicode hex":"2B6B"},{"Typeface name":"Wingdings 3","Dingbat dec":"54","Dingbat hex":"36","Unicode dec":"11117","Unicode hex":"2B6D"},{"Typeface name":"Wingdings 3","Dingbat dec":"55","Dingbat hex":"37","Unicode dec":"11085","Unicode hex":"2B4D"},{"Typeface name":"Wingdings 3","Dingbat dec":"56","Dingbat hex":"38","Unicode dec":"11168","Unicode hex":"2BA0"},{"Typeface name":"Wingdings 3","Dingbat dec":"57","Dingbat hex":"39","Unicode dec":"11169","Unicode hex":"2BA1"},{"Typeface name":"Wingdings 3","Dingbat dec":"58","Dingbat hex":"3A","Unicode dec":"11170","Unicode hex":"2BA2"},{"Typeface name":"Wingdings 3","Dingbat dec":"59","Dingbat hex":"3B","Unicode dec":"11171","Unicode hex":"2BA3"},{"Typeface name":"Wingdings 3","Dingbat dec":"60","Dingbat hex":"3C","Unicode dec":"11172","Unicode hex":"2BA4"},{"Typeface name":"Wingdings 3","Dingbat dec":"61","Dingbat hex":"3D","Unicode dec":"11173","Unicode hex":"2BA5"},{"Typeface name":"Wingdings 3","Dingbat dec":"62","Dingbat hex":"3E","Unicode dec":"11174","Unicode hex":"2BA6"},{"Typeface name":"Wingdings 3","Dingbat dec":"63","Dingbat hex":"3F","Unicode dec":"11175","Unicode hex":"2BA7"},{"Typeface name":"Wingdings 3","Dingbat dec":"64","Dingbat hex":"40","Unicode dec":"11152","Unicode hex":"2B90"},{"Typeface name":"Wingdings 3","Dingbat dec":"65","Dingbat hex":"41","Unicode dec":"11153","Unicode hex":"2B91"},{"Typeface name":"Wingdings 3","Dingbat dec":"66","Dingbat hex":"42","Unicode dec":"11154","Unicode hex":"2B92"},{"Typeface name":"Wingdings 3","Dingbat dec":"67","Dingbat hex":"43","Unicode dec":"11155","Unicode hex":"2B93"},{"Typeface name":"Wingdings 3","Dingbat dec":"68","Dingbat hex":"44","Unicode dec":"11136","Unicode hex":"2B80"},{"Typeface name":"Wingdings 3","Dingbat dec":"69","Dingbat hex":"45","Unicode dec":"11139","Unicode hex":"2B83"},{"Typeface name":"Wingdings 3","Dingbat dec":"70","Dingbat hex":"46","Unicode dec":"11134","Unicode hex":"2B7E"},{"Typeface name":"Wingdings 3","Dingbat dec":"71","Dingbat hex":"47","Unicode dec":"11135","Unicode hex":"2B7F"},{"Typeface name":"Wingdings 3","Dingbat dec":"72","Dingbat hex":"48","Unicode dec":"11140","Unicode hex":"2B84"},{"Typeface name":"Wingdings 3","Dingbat dec":"73","Dingbat hex":"49","Unicode dec":"11142","Unicode hex":"2B86"},{"Typeface name":"Wingdings 3","Dingbat dec":"74","Dingbat hex":"4A","Unicode dec":"11141","Unicode hex":"2B85"},{"Typeface name":"Wingdings 3","Dingbat dec":"75","Dingbat hex":"4B","Unicode dec":"11143","Unicode hex":"2B87"},{"Typeface name":"Wingdings 3","Dingbat dec":"76","Dingbat hex":"4C","Unicode dec":"11151","Unicode hex":"2B8F"},{"Typeface name":"Wingdings 3","Dingbat dec":"77","Dingbat hex":"4D","Unicode dec":"11149","Unicode hex":"2B8D"},{"Typeface name":"Wingdings 3","Dingbat dec":"78","Dingbat hex":"4E","Unicode dec":"11150","Unicode hex":"2B8E"},{"Typeface name":"Wingdings 3","Dingbat dec":"79","Dingbat hex":"4F","Unicode dec":"11148","Unicode hex":"2B8C"},{"Typeface name":"Wingdings 3","Dingbat dec":"80","Dingbat hex":"50","Unicode dec":"11118","Unicode hex":"2B6E"},{"Typeface name":"Wingdings 3","Dingbat dec":"81","Dingbat hex":"51","Unicode dec":"11119","Unicode hex":"2B6F"},{"Typeface name":"Wingdings 3","Dingbat dec":"82","Dingbat hex":"52","Unicode dec":"9099","Unicode hex":"238B"},{"Typeface name":"Wingdings 3","Dingbat dec":"83","Dingbat hex":"53","Unicode dec":"8996","Unicode hex":"2324"},{"Typeface name":"Wingdings 3","Dingbat dec":"84","Dingbat hex":"54","Unicode dec":"8963","Unicode hex":"2303"},{"Typeface name":"Wingdings 3","Dingbat dec":"85","Dingbat hex":"55","Unicode dec":"8997","Unicode hex":"2325"},{"Typeface name":"Wingdings 3","Dingbat dec":"86","Dingbat hex":"56","Unicode dec":"9251","Unicode hex":"2423"},{"Typeface name":"Wingdings 3","Dingbat dec":"87","Dingbat hex":"57","Unicode dec":"9085","Unicode hex":"237D"},{"Typeface name":"Wingdings 3","Dingbat dec":"88","Dingbat hex":"58","Unicode dec":"8682","Unicode hex":"21EA"},{"Typeface name":"Wingdings 3","Dingbat dec":"89","Dingbat hex":"59","Unicode dec":"11192","Unicode hex":"2BB8"},{"Typeface name":"Wingdings 3","Dingbat dec":"90","Dingbat hex":"5A","Unicode dec":"129184","Unicode hex":"1F8A0"},{"Typeface name":"Wingdings 3","Dingbat dec":"91","Dingbat hex":"5B","Unicode dec":"129185","Unicode hex":"1F8A1"},{"Typeface name":"Wingdings 3","Dingbat dec":"92","Dingbat hex":"5C","Unicode dec":"129186","Unicode hex":"1F8A2"},{"Typeface name":"Wingdings 3","Dingbat dec":"93","Dingbat hex":"5D","Unicode dec":"129187","Unicode hex":"1F8A3"},{"Typeface name":"Wingdings 3","Dingbat dec":"94","Dingbat hex":"5E","Unicode dec":"129188","Unicode hex":"1F8A4"},{"Typeface name":"Wingdings 3","Dingbat dec":"95","Dingbat hex":"5F","Unicode dec":"129189","Unicode hex":"1F8A5"},{"Typeface name":"Wingdings 3","Dingbat dec":"96","Dingbat hex":"60","Unicode dec":"129190","Unicode hex":"1F8A6"},{"Typeface name":"Wingdings 3","Dingbat dec":"97","Dingbat hex":"61","Unicode dec":"129191","Unicode hex":"1F8A7"},{"Typeface name":"Wingdings 3","Dingbat dec":"98","Dingbat hex":"62","Unicode dec":"129192","Unicode hex":"1F8A8"},{"Typeface name":"Wingdings 3","Dingbat dec":"99","Dingbat hex":"63","Unicode dec":"129193","Unicode hex":"1F8A9"},{"Typeface name":"Wingdings 3","Dingbat dec":"100","Dingbat hex":"64","Unicode dec":"129194","Unicode hex":"1F8AA"},{"Typeface name":"Wingdings 3","Dingbat dec":"101","Dingbat hex":"65","Unicode dec":"129195","Unicode hex":"1F8AB"},{"Typeface name":"Wingdings 3","Dingbat dec":"102","Dingbat hex":"66","Unicode dec":"129104","Unicode hex":"1F850"},{"Typeface name":"Wingdings 3","Dingbat dec":"103","Dingbat hex":"67","Unicode dec":"129106","Unicode hex":"1F852"},{"Typeface name":"Wingdings 3","Dingbat dec":"104","Dingbat hex":"68","Unicode dec":"129105","Unicode hex":"1F851"},{"Typeface name":"Wingdings 3","Dingbat dec":"105","Dingbat hex":"69","Unicode dec":"129107","Unicode hex":"1F853"},{"Typeface name":"Wingdings 3","Dingbat dec":"106","Dingbat hex":"6A","Unicode dec":"129108","Unicode hex":"1F854"},{"Typeface name":"Wingdings 3","Dingbat dec":"107","Dingbat hex":"6B","Unicode dec":"129109","Unicode hex":"1F855"},{"Typeface name":"Wingdings 3","Dingbat dec":"108","Dingbat hex":"6C","Unicode dec":"129111","Unicode hex":"1F857"},{"Typeface name":"Wingdings 3","Dingbat dec":"109","Dingbat hex":"6D","Unicode dec":"129110","Unicode hex":"1F856"},{"Typeface name":"Wingdings 3","Dingbat dec":"110","Dingbat hex":"6E","Unicode dec":"129112","Unicode hex":"1F858"},{"Typeface name":"Wingdings 3","Dingbat dec":"111","Dingbat hex":"6F","Unicode dec":"129113","Unicode hex":"1F859"},{"Typeface name":"Wingdings 3","Dingbat dec":"112","Dingbat hex":"70","Unicode dec":"9650","Unicode hex":"25B2"},{"Typeface name":"Wingdings 3","Dingbat dec":"113","Dingbat hex":"71","Unicode dec":"9660","Unicode hex":"25BC"},{"Typeface name":"Wingdings 3","Dingbat dec":"114","Dingbat hex":"72","Unicode dec":"9651","Unicode hex":"25B3"},{"Typeface name":"Wingdings 3","Dingbat dec":"115","Dingbat hex":"73","Unicode dec":"9661","Unicode hex":"25BD"},{"Typeface name":"Wingdings 3","Dingbat dec":"116","Dingbat hex":"74","Unicode dec":"9664","Unicode hex":"25C0"},{"Typeface name":"Wingdings 3","Dingbat dec":"117","Dingbat hex":"75","Unicode dec":"9654","Unicode hex":"25B6"},{"Typeface name":"Wingdings 3","Dingbat dec":"118","Dingbat hex":"76","Unicode dec":"9665","Unicode hex":"25C1"},{"Typeface name":"Wingdings 3","Dingbat dec":"119","Dingbat hex":"77","Unicode dec":"9655","Unicode hex":"25B7"},{"Typeface name":"Wingdings 3","Dingbat dec":"120","Dingbat hex":"78","Unicode dec":"9699","Unicode hex":"25E3"},{"Typeface name":"Wingdings 3","Dingbat dec":"121","Dingbat hex":"79","Unicode dec":"9698","Unicode hex":"25E2"},{"Typeface name":"Wingdings 3","Dingbat dec":"122","Dingbat hex":"7A","Unicode dec":"9700","Unicode hex":"25E4"},{"Typeface name":"Wingdings 3","Dingbat dec":"123","Dingbat hex":"7B","Unicode dec":"9701","Unicode hex":"25E5"},{"Typeface name":"Wingdings 3","Dingbat dec":"124","Dingbat hex":"7C","Unicode dec":"128896","Unicode hex":"1F780"},{"Typeface name":"Wingdings 3","Dingbat dec":"125","Dingbat hex":"7D","Unicode dec":"128898","Unicode hex":"1F782"},{"Typeface name":"Wingdings 3","Dingbat dec":"126","Dingbat hex":"7E","Unicode dec":"128897","Unicode hex":"1F781"},{"Typeface name":"Wingdings 3","Dingbat dec":"128","Dingbat hex":"80","Unicode dec":"128899","Unicode hex":"1F783"},{"Typeface name":"Wingdings 3","Dingbat dec":"129","Dingbat hex":"81","Unicode dec":"11205","Unicode hex":"2BC5"},{"Typeface name":"Wingdings 3","Dingbat dec":"130","Dingbat hex":"82","Unicode dec":"11206","Unicode hex":"2BC6"},{"Typeface name":"Wingdings 3","Dingbat dec":"131","Dingbat hex":"83","Unicode dec":"11207","Unicode hex":"2BC7"},{"Typeface name":"Wingdings 3","Dingbat dec":"132","Dingbat hex":"84","Unicode dec":"11208","Unicode hex":"2BC8"},{"Typeface name":"Wingdings 3","Dingbat dec":"133","Dingbat hex":"85","Unicode dec":"11164","Unicode hex":"2B9C"},{"Typeface name":"Wingdings 3","Dingbat dec":"134","Dingbat hex":"86","Unicode dec":"11166","Unicode hex":"2B9E"},{"Typeface name":"Wingdings 3","Dingbat dec":"135","Dingbat hex":"87","Unicode dec":"11165","Unicode hex":"2B9D"},{"Typeface name":"Wingdings 3","Dingbat dec":"136","Dingbat hex":"88","Unicode dec":"11167","Unicode hex":"2B9F"},{"Typeface name":"Wingdings 3","Dingbat dec":"137","Dingbat hex":"89","Unicode dec":"129040","Unicode hex":"1F810"},{"Typeface name":"Wingdings 3","Dingbat dec":"138","Dingbat hex":"8A","Unicode dec":"129042","Unicode hex":"1F812"},{"Typeface name":"Wingdings 3","Dingbat dec":"139","Dingbat hex":"8B","Unicode dec":"129041","Unicode hex":"1F811"},{"Typeface name":"Wingdings 3","Dingbat dec":"140","Dingbat hex":"8C","Unicode dec":"129043","Unicode hex":"1F813"},{"Typeface name":"Wingdings 3","Dingbat dec":"141","Dingbat hex":"8D","Unicode dec":"129044","Unicode hex":"1F814"},{"Typeface name":"Wingdings 3","Dingbat dec":"142","Dingbat hex":"8E","Unicode dec":"129046","Unicode hex":"1F816"},{"Typeface name":"Wingdings 3","Dingbat dec":"143","Dingbat hex":"8F","Unicode dec":"129045","Unicode hex":"1F815"},{"Typeface name":"Wingdings 3","Dingbat dec":"144","Dingbat hex":"90","Unicode dec":"129047","Unicode hex":"1F817"},{"Typeface name":"Wingdings 3","Dingbat dec":"145","Dingbat hex":"91","Unicode dec":"129048","Unicode hex":"1F818"},{"Typeface name":"Wingdings 3","Dingbat dec":"146","Dingbat hex":"92","Unicode dec":"129050","Unicode hex":"1F81A"},{"Typeface name":"Wingdings 3","Dingbat dec":"147","Dingbat hex":"93","Unicode dec":"129049","Unicode hex":"1F819"},{"Typeface name":"Wingdings 3","Dingbat dec":"148","Dingbat hex":"94","Unicode dec":"129051","Unicode hex":"1F81B"},{"Typeface name":"Wingdings 3","Dingbat dec":"149","Dingbat hex":"95","Unicode dec":"129052","Unicode hex":"1F81C"},{"Typeface name":"Wingdings 3","Dingbat dec":"150","Dingbat hex":"96","Unicode dec":"129054","Unicode hex":"1F81E"},{"Typeface name":"Wingdings 3","Dingbat dec":"151","Dingbat hex":"97","Unicode dec":"129053","Unicode hex":"1F81D"},{"Typeface name":"Wingdings 3","Dingbat dec":"152","Dingbat hex":"98","Unicode dec":"129055","Unicode hex":"1F81F"},{"Typeface name":"Wingdings 3","Dingbat dec":"153","Dingbat hex":"99","Unicode dec":"129024","Unicode hex":"1F800"},{"Typeface name":"Wingdings 3","Dingbat dec":"154","Dingbat hex":"9A","Unicode dec":"129026","Unicode hex":"1F802"},{"Typeface name":"Wingdings 3","Dingbat dec":"155","Dingbat hex":"9B","Unicode dec":"129025","Unicode hex":"1F801"},{"Typeface name":"Wingdings 3","Dingbat dec":"156","Dingbat hex":"9C","Unicode dec":"129027","Unicode hex":"1F803"},{"Typeface name":"Wingdings 3","Dingbat dec":"157","Dingbat hex":"9D","Unicode dec":"129028","Unicode hex":"1F804"},{"Typeface name":"Wingdings 3","Dingbat dec":"158","Dingbat hex":"9E","Unicode dec":"129030","Unicode hex":"1F806"},{"Typeface name":"Wingdings 3","Dingbat dec":"159","Dingbat hex":"9F","Unicode dec":"129029","Unicode hex":"1F805"},{"Typeface name":"Wingdings 3","Dingbat dec":"160","Dingbat hex":"A0","Unicode dec":"129031","Unicode hex":"1F807"},{"Typeface name":"Wingdings 3","Dingbat dec":"161","Dingbat hex":"A1","Unicode dec":"129032","Unicode hex":"1F808"},{"Typeface name":"Wingdings 3","Dingbat dec":"162","Dingbat hex":"A2","Unicode dec":"129034","Unicode hex":"1F80A"},{"Typeface name":"Wingdings 3","Dingbat dec":"163","Dingbat hex":"A3","Unicode dec":"129033","Unicode hex":"1F809"},{"Typeface name":"Wingdings 3","Dingbat dec":"164","Dingbat hex":"A4","Unicode dec":"129035","Unicode hex":"1F80B"},{"Typeface name":"Wingdings 3","Dingbat dec":"165","Dingbat hex":"A5","Unicode dec":"129056","Unicode hex":"1F820"},{"Typeface name":"Wingdings 3","Dingbat dec":"166","Dingbat hex":"A6","Unicode dec":"129058","Unicode hex":"1F822"},{"Typeface name":"Wingdings 3","Dingbat dec":"167","Dingbat hex":"A7","Unicode dec":"129060","Unicode hex":"1F824"},{"Typeface name":"Wingdings 3","Dingbat dec":"168","Dingbat hex":"A8","Unicode dec":"129062","Unicode hex":"1F826"},{"Typeface name":"Wingdings 3","Dingbat dec":"169","Dingbat hex":"A9","Unicode dec":"129064","Unicode hex":"1F828"},{"Typeface name":"Wingdings 3","Dingbat dec":"170","Dingbat hex":"AA","Unicode dec":"129066","Unicode hex":"1F82A"},{"Typeface name":"Wingdings 3","Dingbat dec":"171","Dingbat hex":"AB","Unicode dec":"129068","Unicode hex":"1F82C"},{"Typeface name":"Wingdings 3","Dingbat dec":"172","Dingbat hex":"AC","Unicode dec":"129180","Unicode hex":"1F89C"},{"Typeface name":"Wingdings 3","Dingbat dec":"173","Dingbat hex":"AD","Unicode dec":"129181","Unicode hex":"1F89D"},{"Typeface name":"Wingdings 3","Dingbat dec":"174","Dingbat hex":"AE","Unicode dec":"129182","Unicode hex":"1F89E"},{"Typeface name":"Wingdings 3","Dingbat dec":"175","Dingbat hex":"AF","Unicode dec":"129183","Unicode hex":"1F89F"},{"Typeface name":"Wingdings 3","Dingbat dec":"176","Dingbat hex":"B0","Unicode dec":"129070","Unicode hex":"1F82E"},{"Typeface name":"Wingdings 3","Dingbat dec":"177","Dingbat hex":"B1","Unicode dec":"129072","Unicode hex":"1F830"},{"Typeface name":"Wingdings 3","Dingbat dec":"178","Dingbat hex":"B2","Unicode dec":"129074","Unicode hex":"1F832"},{"Typeface name":"Wingdings 3","Dingbat dec":"179","Dingbat hex":"B3","Unicode dec":"129076","Unicode hex":"1F834"},{"Typeface name":"Wingdings 3","Dingbat dec":"180","Dingbat hex":"B4","Unicode dec":"129078","Unicode hex":"1F836"},{"Typeface name":"Wingdings 3","Dingbat dec":"181","Dingbat hex":"B5","Unicode dec":"129080","Unicode hex":"1F838"},{"Typeface name":"Wingdings 3","Dingbat dec":"182","Dingbat hex":"B6","Unicode dec":"129082","Unicode hex":"1F83A"},{"Typeface name":"Wingdings 3","Dingbat dec":"183","Dingbat hex":"B7","Unicode dec":"129081","Unicode hex":"1F839"},{"Typeface name":"Wingdings 3","Dingbat dec":"184","Dingbat hex":"B8","Unicode dec":"129083","Unicode hex":"1F83B"},{"Typeface name":"Wingdings 3","Dingbat dec":"185","Dingbat hex":"B9","Unicode dec":"129176","Unicode hex":"1F898"},{"Typeface name":"Wingdings 3","Dingbat dec":"186","Dingbat hex":"BA","Unicode dec":"129178","Unicode hex":"1F89A"},{"Typeface name":"Wingdings 3","Dingbat dec":"187","Dingbat hex":"BB","Unicode dec":"129177","Unicode hex":"1F899"},{"Typeface name":"Wingdings 3","Dingbat dec":"188","Dingbat hex":"BC","Unicode dec":"129179","Unicode hex":"1F89B"},{"Typeface name":"Wingdings 3","Dingbat dec":"189","Dingbat hex":"BD","Unicode dec":"129084","Unicode hex":"1F83C"},{"Typeface name":"Wingdings 3","Dingbat dec":"190","Dingbat hex":"BE","Unicode dec":"129086","Unicode hex":"1F83E"},{"Typeface name":"Wingdings 3","Dingbat dec":"191","Dingbat hex":"BF","Unicode dec":"129085","Unicode hex":"1F83D"},{"Typeface name":"Wingdings 3","Dingbat dec":"192","Dingbat hex":"C0","Unicode dec":"129087","Unicode hex":"1F83F"},{"Typeface name":"Wingdings 3","Dingbat dec":"193","Dingbat hex":"C1","Unicode dec":"129088","Unicode hex":"1F840"},{"Typeface name":"Wingdings 3","Dingbat dec":"194","Dingbat hex":"C2","Unicode dec":"129090","Unicode hex":"1F842"},{"Typeface name":"Wingdings 3","Dingbat dec":"195","Dingbat hex":"C3","Unicode dec":"129089","Unicode hex":"1F841"},{"Typeface name":"Wingdings 3","Dingbat dec":"196","Dingbat hex":"C4","Unicode dec":"129091","Unicode hex":"1F843"},{"Typeface name":"Wingdings 3","Dingbat dec":"197","Dingbat hex":"C5","Unicode dec":"129092","Unicode hex":"1F844"},{"Typeface name":"Wingdings 3","Dingbat dec":"198","Dingbat hex":"C6","Unicode dec":"129094","Unicode hex":"1F846"},{"Typeface name":"Wingdings 3","Dingbat dec":"199","Dingbat hex":"C7","Unicode dec":"129093","Unicode hex":"1F845"},{"Typeface name":"Wingdings 3","Dingbat dec":"200","Dingbat hex":"C8","Unicode dec":"129095","Unicode hex":"1F847"},{"Typeface name":"Wingdings 3","Dingbat dec":"201","Dingbat hex":"C9","Unicode dec":"11176","Unicode hex":"2BA8"},{"Typeface name":"Wingdings 3","Dingbat dec":"202","Dingbat hex":"CA","Unicode dec":"11177","Unicode hex":"2BA9"},{"Typeface name":"Wingdings 3","Dingbat dec":"203","Dingbat hex":"CB","Unicode dec":"11178","Unicode hex":"2BAA"},{"Typeface name":"Wingdings 3","Dingbat dec":"204","Dingbat hex":"CC","Unicode dec":"11179","Unicode hex":"2BAB"},{"Typeface name":"Wingdings 3","Dingbat dec":"205","Dingbat hex":"CD","Unicode dec":"11180","Unicode hex":"2BAC"},{"Typeface name":"Wingdings 3","Dingbat dec":"206","Dingbat hex":"CE","Unicode dec":"11181","Unicode hex":"2BAD"},{"Typeface name":"Wingdings 3","Dingbat dec":"207","Dingbat hex":"CF","Unicode dec":"11182","Unicode hex":"2BAE"},{"Typeface name":"Wingdings 3","Dingbat dec":"208","Dingbat hex":"D0","Unicode dec":"11183","Unicode hex":"2BAF"},{"Typeface name":"Wingdings 3","Dingbat dec":"209","Dingbat hex":"D1","Unicode dec":"129120","Unicode hex":"1F860"},{"Typeface name":"Wingdings 3","Dingbat dec":"210","Dingbat hex":"D2","Unicode dec":"129122","Unicode hex":"1F862"},{"Typeface name":"Wingdings 3","Dingbat dec":"211","Dingbat hex":"D3","Unicode dec":"129121","Unicode hex":"1F861"},{"Typeface name":"Wingdings 3","Dingbat dec":"212","Dingbat hex":"D4","Unicode dec":"129123","Unicode hex":"1F863"},{"Typeface name":"Wingdings 3","Dingbat dec":"213","Dingbat hex":"D5","Unicode dec":"129124","Unicode hex":"1F864"},{"Typeface name":"Wingdings 3","Dingbat dec":"214","Dingbat hex":"D6","Unicode dec":"129125","Unicode hex":"1F865"},{"Typeface name":"Wingdings 3","Dingbat dec":"215","Dingbat hex":"D7","Unicode dec":"129127","Unicode hex":"1F867"},{"Typeface name":"Wingdings 3","Dingbat dec":"216","Dingbat hex":"D8","Unicode dec":"129126","Unicode hex":"1F866"},{"Typeface name":"Wingdings 3","Dingbat dec":"217","Dingbat hex":"D9","Unicode dec":"129136","Unicode hex":"1F870"},{"Typeface name":"Wingdings 3","Dingbat dec":"218","Dingbat hex":"DA","Unicode dec":"129138","Unicode hex":"1F872"},{"Typeface name":"Wingdings 3","Dingbat dec":"219","Dingbat hex":"DB","Unicode dec":"129137","Unicode hex":"1F871"},{"Typeface name":"Wingdings 3","Dingbat dec":"220","Dingbat hex":"DC","Unicode dec":"129139","Unicode hex":"1F873"},{"Typeface name":"Wingdings 3","Dingbat dec":"221","Dingbat hex":"DD","Unicode dec":"129140","Unicode hex":"1F874"},{"Typeface name":"Wingdings 3","Dingbat dec":"222","Dingbat hex":"DE","Unicode dec":"129141","Unicode hex":"1F875"},{"Typeface name":"Wingdings 3","Dingbat dec":"223","Dingbat hex":"DF","Unicode dec":"129143","Unicode hex":"1F877"},{"Typeface name":"Wingdings 3","Dingbat dec":"224","Dingbat hex":"E0","Unicode dec":"129142","Unicode hex":"1F876"},{"Typeface name":"Wingdings 3","Dingbat dec":"225","Dingbat hex":"E1","Unicode dec":"129152","Unicode hex":"1F880"},{"Typeface name":"Wingdings 3","Dingbat dec":"226","Dingbat hex":"E2","Unicode dec":"129154","Unicode hex":"1F882"},{"Typeface name":"Wingdings 3","Dingbat dec":"227","Dingbat hex":"E3","Unicode dec":"129153","Unicode hex":"1F881"},{"Typeface name":"Wingdings 3","Dingbat dec":"228","Dingbat hex":"E4","Unicode dec":"129155","Unicode hex":"1F883"},{"Typeface name":"Wingdings 3","Dingbat dec":"229","Dingbat hex":"E5","Unicode dec":"129156","Unicode hex":"1F884"},{"Typeface name":"Wingdings 3","Dingbat dec":"230","Dingbat hex":"E6","Unicode dec":"129157","Unicode hex":"1F885"},{"Typeface name":"Wingdings 3","Dingbat dec":"231","Dingbat hex":"E7","Unicode dec":"129159","Unicode hex":"1F887"},{"Typeface name":"Wingdings 3","Dingbat dec":"232","Dingbat hex":"E8","Unicode dec":"129158","Unicode hex":"1F886"},{"Typeface name":"Wingdings 3","Dingbat dec":"233","Dingbat hex":"E9","Unicode dec":"129168","Unicode hex":"1F890"},{"Typeface name":"Wingdings 3","Dingbat dec":"234","Dingbat hex":"EA","Unicode dec":"129170","Unicode hex":"1F892"},{"Typeface name":"Wingdings 3","Dingbat dec":"235","Dingbat hex":"EB","Unicode dec":"129169","Unicode hex":"1F891"},{"Typeface name":"Wingdings 3","Dingbat dec":"236","Dingbat hex":"EC","Unicode dec":"129171","Unicode hex":"1F893"},{"Typeface name":"Wingdings 3","Dingbat dec":"237","Dingbat hex":"ED","Unicode dec":"129172","Unicode hex":"1F894"},{"Typeface name":"Wingdings 3","Dingbat dec":"238","Dingbat hex":"EE","Unicode dec":"129174","Unicode hex":"1F896"},{"Typeface name":"Wingdings 3","Dingbat dec":"239","Dingbat hex":"EF","Unicode dec":"129173","Unicode hex":"1F895"},{"Typeface name":"Wingdings 3","Dingbat dec":"240","Dingbat hex":"F0","Unicode dec":"129175","Unicode hex":"1F897"}];tm.default=CC});var Mw=be(Bn=>{"use strict";var FC=Bn&&Bn.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Bn,"__esModule",{value:!0});Bn.hex=Bn.dec=Bn.codePoint=void 0;var kC=FC(Nw()),Lw={},UC=String.fromCodePoint?String.fromCodePoint:OC;for(zh=0,rm=kC.default;zh<rm.length;zh++)jh=rm[zh],nm=parseInt(jh["Unicode dec"],10),Pw={codePoint:nm,string:UC(nm)},Lw[jh["Typeface name"].toUpperCase()+"_"+jh["Dingbat dec"]]=Pw;var jh,nm,Pw,zh,rm;function im(r,e){return Lw[r.toUpperCase()+"_"+e]}Bn.codePoint=im;function IC(r,e){return im(r,parseInt(e,10))}Bn.dec=IC;function RC(r,e){return im(r,parseInt(e,16))}Bn.hex=RC;function OC(r){if(r<=65535)return String.fromCharCode(r);var e=Math.floor((r-65536)/1024)+55296,t=(r-65536)%1024+56320;return String.fromCharCode(e,t)}});var sm=be(xa=>{var Ww=(At(),Ft(Et));xa.paragraph=BC;xa.run=NC;xa._elements=Hw;xa._elementsOfType=am;xa.getDescendantsOfType=PC;xa.getDescendants=Vw;function BC(r){return am("paragraph",r)}function NC(r){return am("run",r)}function am(r,e){return Hw(function(t){return t.type===r?e(t):t})}function Hw(r){return function e(t){if(t.children){var n=Ww.map(t.children,e);t=Ww.extend(t,{children:n})}return r(t)}}function PC(r,e){return Vw(r).filter(function(t){return t.type===e})}function Vw(r){var e=[];return zw(r,function(t){e.push(t)}),e}function zw(r,e){r.children&&r.children.forEach(function(t){zw(t,e),e(t)})}});var jw=be(om=>{om.uriToZipEntryName=LC;om.replaceFragment=MC;function LC(r,e){return e.charAt(0)==="/"?e.substr(1):r+"/"+e}function MC(r,e){var t=r.indexOf("#");return t!==-1&&(r=r.substring(0,t)),r+"#"+e}});var Jw=be(cm=>{cm.createBodyReader=HC;cm._readNumberingProperties=Zw;var Gw=Mw(),an=(At(),Ft(Et)),xt=Ci(),Kw=Un().Result,si=Un().warning,WC=Vh(),Xw=sm(),$w=jw();function HC(r){return{readXmlElement:function(e){return new qw(r).readXmlElement(e)},readXmlElements:function(e){return new qw(r).readXmlElements(e)}}}function qw(r){var e=[],t=[],n=[],i=r.relationships,a=r.contentTypes,s=r.docxFile,o=r.files,c=r.numbering,u=r.styles;function h(w){var Q=w.map(f);return Yw(Q)}function f(w){if(w.type==="element"){var Q=U[w.name];if(Q)return Q(w);if(!Object.prototype.hasOwnProperty.call(zC,w.name)){var ne=si("An unrecognised element was ignored: "+w.name);return Rc([ne])}}return Cs()}function d(w){return v(w).map(function(Q){return{type:"paragraphProperties",styleId:Q.styleId,styleName:Q.name,alignment:w.firstOrEmpty("w:jc").attributes["w:val"],numbering:Zw(Q.styleId,w.firstOrEmpty("w:numPr"),c),indent:p(w.firstOrEmpty("w:ind"))}})}function p(w){return{start:w.attributes["w:start"]||w.attributes["w:left"],end:w.attributes["w:end"]||w.attributes["w:right"],firstLine:w.attributes["w:firstLine"],hanging:w.attributes["w:hanging"]}}function m(w){return _(w).map(function(Q){var ne=w.firstOrEmpty("w:sz").attributes["w:val"],W=/^[0-9]+$/.test(ne)?parseInt(ne,10)/2:null;return{type:"runProperties",styleId:Q.styleId,styleName:Q.name,verticalAlignment:w.firstOrEmpty("w:vertAlign").attributes["w:val"],font:w.firstOrEmpty("w:rFonts").attributes["w:ascii"],fontSize:W,isBold:x(w.first("w:b")),isUnderline:g(w.first("w:u")),isItalic:x(w.first("w:i")),isStrikethrough:x(w.first("w:strike")),isAllCaps:x(w.first("w:caps")),isSmallCaps:x(w.first("w:smallCaps")),highlight:b(w.firstOrEmpty("w:highlight").attributes["w:val"])}})}function g(w){if(w){var Q=w.attributes["w:val"];return Q!==void 0&&Q!=="false"&&Q!=="0"&&Q!=="none"}else return!1}function x(w){if(w){var Q=w.attributes["w:val"];return Q!=="false"&&Q!=="0"}else return!1}function y(w){return w!=="false"&&w!=="0"}function b(w){return!w||w==="none"?null:w}function v(w){return E(w,"w:pStyle","Paragraph",u.findParagraphStyleById)}function _(w){return E(w,"w:rStyle","Run",u.findCharacterStyleById)}function A(w){return E(w,"w:tblStyle","Table",u.findTableStyleById)}function E(w,Q,ne,W){var L=[],G=w.first(Q),le=null,me=null;if(G&&(le=G.attributes["w:val"],le)){var oe=W(le);oe?me=oe.name:L.push(_e(ne,le))}return Gh({styleId:le,name:me},L)}function T(w){var Q=w.attributes["w:fldCharType"];if(Q==="begin")e.push({type:"begin",fldChar:w}),t=[];else if(Q==="end"){var ne=e.pop();if(ne.type==="begin"&&(ne=C(ne)),ne.type==="checkbox")return qr(xt.checkbox({checked:ne.checked}))}else if(Q==="separate"){var W=e.pop(),L=C(W);e.push(L)}return Cs()}function S(){var w=an.last(e.filter(function(Q){return Q.type==="hyperlink"}));return w?w.options:null}function C(w){return F(t.join(""),w.type==="begin"?w.fldChar:WC.emptyElement)}function F(w,Q){var ne=/^\s*HYPERLINK\s+(\\l\s+)?(?:"(.*)"|([^\\]\S*))/.exec(w);if(ne){var W=ne[2]===void 0?ne[3]:ne[2],L=ne[1]===void 0?{href:W}:{anchor:W};return{type:"hyperlink",options:L}}var G=/\s*FORMCHECKBOX\s*/.exec(w);if(G){var le=Q.firstOrEmpty("w:ffData").firstOrEmpty("w:checkBox"),me=le.first("w:checked"),oe=me==null?x(le.first("w:default")):x(me);return{type:"checkbox",checked:oe}}return{type:"unknown"}}function k(w){return t.push(w.text()),Cs()}function D(w){var Q=w.attributes["w:font"],ne=w.attributes["w:char"],W=Gw.hex(Q,ne);return W==null&&/^F0..$/.test(ne)&&(W=Gw.hex(Q,ne.substring(2))),W==null?Rc([si("A w:sym element with an unsupported character was ignored: char "+ne+" in font "+Q)]):qr(new xt.Text(W.string))}function B(w){return function(Q){var ne=Q.attributes["w:id"];return qr(new xt.NoteReference({noteType:w,noteId:ne}))}}function q(w){return qr(xt.commentReference({commentId:w.attributes["w:id"]}))}function j(w){return h(w.children)}var U={"w:p":function(w){var Q=w.firstOrEmpty("w:pPr"),ne=!!Q.firstOrEmpty("w:rPr").first("w:del");if(ne)return w.children.forEach(function(L){n.push(L)}),Cs();var W=w.children;return n.length>0&&(W=n.concat(W),n=[]),tr.map(d(Q),h(W),function(L,G){return new xt.Paragraph(G,L)}).insertExtra()},"w:r":function(w){return tr.map(m(w.firstOrEmpty("w:rPr")),h(w.children),function(Q,ne){var W=S();return W!==null&&(ne=[new xt.Hyperlink(ne,W)]),new xt.Run(ne,Q)})},"w:fldChar":T,"w:instrText":k,"w:t":function(w){return qr(new xt.Text(w.text()))},"w:tab":function(w){return qr(new xt.Tab)},"w:noBreakHyphen":function(){return qr(new xt.Text("\u2011"))},"w:softHyphen":function(w){return qr(new xt.Text("\xAD"))},"w:sym":D,"w:hyperlink":function(w){var Q=w.attributes["r:id"],ne=w.attributes["w:anchor"];return h(w.children).map(function(W){function L(le){var me=w.attributes["w:tgtFrame"]||null;return new xt.Hyperlink(W,an.extend({targetFrame:me},le))}if(Q){var G=i.findTargetByRelationshipId(Q);return ne&&(G=$w.replaceFragment(G,ne)),L({href:G})}else return ne?L({anchor:ne}):W})},"w:tbl":O,"w:tr":R,"w:tc":N,"w:footnoteReference":B("footnote"),"w:endnoteReference":B("endnote"),"w:commentReference":q,"w:br":function(w){var Q=w.attributes["w:type"];return Q==null||Q==="textWrapping"?qr(xt.lineBreak):Q==="page"?qr(xt.pageBreak):Q==="column"?qr(xt.columnBreak):Rc([si("Unsupported break type: "+Q)])},"w:bookmarkStart":function(w){var Q=w.attributes["w:name"];return Q==="_GoBack"?Cs():qr(new xt.BookmarkStart({name:Q}))},"mc:AlternateContent":function(w){return j(w.firstOrEmpty("mc:Fallback"))},"w:sdt":function(w){var Q=h(w.firstOrEmpty("w:sdtContent").children);return Q.map(function(ne){var W=w.firstOrEmpty("w:sdtPr").first("wordml:checkbox");if(W){var L=W.first("wordml:checked"),G=!!L&&y(L.attributes["wordml:val"]),le=xt.checkbox({checked:G}),me=!1,oe=ne.map(Xw._elementsOfType(xt.types.text,function(we){return we.value.length>0&&!me?(me=!0,le):we}));return me?oe:le}else return ne})},"w:ins":j,"w:object":j,"w:smartTag":j,"w:drawing":j,"w:pict":function(w){return j(w).toExtra()},"v:roundrect":j,"v:shape":j,"v:textbox":j,"w:txbxContent":j,"wp:inline":Z,"wp:anchor":Z,"v:imagedata":se,"v:group":j,"v:rect":j};return{readXmlElement:f,readXmlElements:h};function O(w){var Q=P(w.firstOrEmpty("w:tblPr"));return h(w.children).flatMap(I).flatMap(function(ne){return Q.map(function(W){return xt.Table(ne,W)})})}function P(w){return A(w).map(function(Q){return{styleId:Q.styleId,styleName:Q.name}})}function R(w){var Q=w.firstOrEmpty("w:trPr"),ne=!!Q.first("w:del");if(ne)return Cs();var W=!!Q.first("w:tblHeader");return h(w.children).map(function(L){return xt.TableRow(L,{isHeader:W})})}function N(w){return h(w.children).map(function(Q){var ne=w.firstOrEmpty("w:tcPr"),W=ne.firstOrEmpty("w:gridSpan").attributes["w:val"],L=W?parseInt(W,10):1,G=xt.TableCell(Q,{colSpan:L});return G._vMerge=z(ne),G})}function z(w){var Q=w.first("w:vMerge");if(Q){var ne=Q.attributes["w:val"];return ne==="continue"||!ne}else return null}function I(w){var Q=an.any(w,function(L){return L.type!==xt.types.tableRow});if(Q)return H(w),Gh(w,[si("unexpected non-row element in table, cell merging may be incorrect")]);var ne=an.any(w,function(L){return an.any(L.children,function(G){return G.type!==xt.types.tableCell})});if(ne)return H(w),Gh(w,[si("unexpected non-cell element in table row, cell merging may be incorrect")]);var W={};return w.forEach(function(L){var G=0;L.children.forEach(function(le){le._vMerge&&W[G]?W[G].rowSpan++:(W[G]=le,le._vMerge=!1),G+=le.colSpan})}),w.forEach(function(L){L.children=L.children.filter(function(G){return!G._vMerge}),L.children.forEach(function(G){delete G._vMerge})}),qr(w)}function H(w){w.forEach(function(Q){var ne=Xw.getDescendantsOfType(Q,xt.types.tableCell);ne.forEach(function(W){delete W._vMerge})})}function Z(w){var Q=w.getElementsByTagName("a:graphic").getElementsByTagName("a:graphicData").getElementsByTagName("pic:pic").getElementsByTagName("pic:blipFill").getElementsByTagName("a:blip");return Yw(Q.map(re.bind(null,w)))}function re(w,Q){var ne=w.firstOrEmpty("wp:docPr"),W=ne.attributes,L=ee(W.descr)?W.title:W.descr,G=ie(Q);return G===null?Rc([si("Could not find image file for a:blip element")]):ge(G,L).map(function(le){var me=ne.firstOrEmpty("a:hlinkClick"),oe=me.attributes["r:id"];if(oe){var we=i.findTargetByRelationshipId(oe);return new xt.Hyperlink([le],{href:we})}else return le})}function ee(w){return w==null||/^\s*$/.test(w)}function ie(w){var Q=w.attributes["r:embed"],ne=w.attributes["r:link"];if(Q)return de(Q);if(ne){var W=i.findTargetByRelationshipId(ne);return{path:W,read:o.read.bind(o,W)}}else return null}function se(w){var Q=w.attributes["r:id"];return Q?ge(de(Q),w.attributes["o:title"]):Rc([si("A v:imagedata element without a relationship ID was ignored")])}function de(w){var Q=$w.uriToZipEntryName("word",i.findTargetByRelationshipId(w));return{path:Q,read:s.read.bind(s,Q)}}function ge(w,Q){var ne=a.findContentType(w.path),W=xt.Image({readImage:w.read,altText:Q,contentType:ne}),L=VC[ne]?[]:si("Image of type "+ne+" is unlikely to display in web browsers");return Gh(W,L)}function _e(w,Q){return si(w+" style with ID "+Q+" was referenced but not defined in the document")}}function Zw(r,e,t){var n=e.firstOrEmpty("w:ilvl").attributes["w:val"],i=e.firstOrEmpty("w:numId").attributes["w:val"];if(n!==void 0&&i!==void 0)return t.findLevel(i,n);if(r!=null){var a=t.findLevelByParagraphStyleId(r);if(a!=null)return a}return i!==void 0?t.findLevel(i,"0"):null}var VC={"image/png":!0,"image/gif":!0,"image/jpeg":!0,"image/svg+xml":!0,"image/tiff":!0},zC={"office-word:wrap":!0,"v:shadow":!0,"v:shapetype":!0,"w:annotationRef":!0,"w:bookmarkEnd":!0,"w:sectPr":!0,"w:proofErr":!0,"w:lastRenderedPageBreak":!0,"w:commentRangeStart":!0,"w:commentRangeEnd":!0,"w:del":!0,"w:footnoteRef":!0,"w:endnoteRef":!0,"w:pPr":!0,"w:rPr":!0,"w:tblPr":!0,"w:tblGrid":!0,"w:trPr":!0,"w:tcPr":!0};function Rc(r){return new tr(null,null,r)}function Cs(){return new tr(null)}function qr(r){return new tr(r)}function Gh(r,e){return new tr(r,null,e)}function tr(r,e,t){this.value=r||[],this.extra=e||[],this._result=new Kw({element:this.value,extra:e},t),this.messages=this._result.messages}tr.prototype.toExtra=function(){return new tr(null,Xh(this.extra,this.value),this.messages)};tr.prototype.insertExtra=function(){var r=this.extra;return r&&r.length?new tr(Xh(this.value,r),null,this.messages):this};tr.prototype.map=function(r){var e=this._result.map(function(t){return r(t.element)});return new tr(e.value,this.extra,e.messages)};tr.prototype.flatMap=function(r){var e=this._result.flatMap(function(t){return r(t.element)._result});return new tr(e.value.element,Xh(this.extra,e.value.extra),e.messages)};tr.map=function(r,e,t){return new tr(t(r.value,e.value),Xh(r.extra,e.extra),r.messages.concat(e.messages))};function Yw(r){var e=Kw.combine(an.pluck(r,"_result"));return new tr(an.flatten(an.pluck(e.value,"element")),an.filter(an.flatten(an.pluck(e.value,"extra")),jC),e.messages)}function Xh(r,e){return an.flatten([r,e])}function jC(r){return r}});var e_=be(Qw=>{Qw.DocumentXmlReader=$C;var GC=Ci(),XC=Un().Result;function $C(r){var e=r.bodyReader;function t(n){var i=n.first("w:body");if(i==null)throw new Error("Could not find the body element: are you sure this is a docx file?");var a=e.readXmlElements(i.children).map(function(s){return new GC.Document(s,{notes:r.notes,comments:r.comments})});return new XC(a.value,a.messages)}return{convertXmlToDocument:t}}});var t_=be($h=>{$h.readRelationships=qC;$h.defaultValue=new lm([]);$h.Relationships=lm;function qC(r){var e=[];return r.children.forEach(function(t){if(t.name==="relationships:Relationship"){var n={relationshipId:t.attributes.Id,target:t.attributes.Target,type:t.attributes.Type};e.push(n)}}),new lm(e)}function lm(r){var e={};r.forEach(function(n){e[n.relationshipId]=n.target});var t={};return r.forEach(function(n){t[n.type]||(t[n.type]=[]),t[n.type].push(n.target)}),{findTargetByRelationshipId:function(n){return e[n]},findTargetsByType:function(n){return t[n]||[]}}}});var n_=be(um=>{um.readContentTypesFromXml=KC;var YC={png:"png",gif:"gif",jpeg:"jpeg",jpg:"jpeg",tif:"tiff",tiff:"tiff",bmp:"bmp"};um.defaultContentTypes=r_({},{});function KC(r){var e={},t={};return r.children.forEach(function(n){if(n.name==="content-types:Default"&&(e[n.attributes.Extension]=n.attributes.ContentType),n.name==="content-types:Override"){var i=n.attributes.PartName;i.charAt(0)==="/"&&(i=i.substring(1)),t[i]=n.attributes.ContentType}}),r_(t,e)}function r_(r,e){return{findContentType:function(t){var n=r[t];if(n)return n;var i=t.split("."),a=i[i.length-1];if(e.hasOwnProperty(a))return e[a];var s=YC[a.toLowerCase()];return s?"image/"+s:null}}}});var i_=be(Yh=>{var qh=(At(),Ft(Et));Yh.readNumberingXml=ZC;Yh.Numbering=hm;Yh.defaultNumbering=new hm({},{});function hm(r,e,t){var n=qh.flatten(qh.values(e).map(function(o){return qh.values(o.levels)})),i=qh.indexBy(n.filter(function(o){return o.paragraphStyleId!=null}),"paragraphStyleId");function a(o,c){var u=r[o];if(u){var h=e[u.abstractNumId];if(h){if(h.numStyleLink==null)return e[u.abstractNumId].levels[c];var f=t.findNumberingStyleById(h.numStyleLink);return a(f.numId,c)}else return null}else return null}function s(o){return i[o]||null}return{findLevel:a,findLevelByParagraphStyleId:s}}function ZC(r,e){if(!e||!e.styles)throw new Error("styles is missing");var t=JC(r),n=e4(r,t);return new hm(n,t,e.styles)}function JC(r){var e={};return r.getElementsByTagName("w:abstractNum").forEach(function(t){var n=t.attributes["w:abstractNumId"];e[n]=QC(t)}),e}function QC(r){var e={},t=null;r.getElementsByTagName("w:lvl").forEach(function(i){var a=i.attributes["w:ilvl"],s=i.firstOrEmpty("w:numFmt").attributes["w:val"],o=s!=="bullet",c=i.firstOrEmpty("w:pStyle").attributes["w:val"];a===void 0?t={isOrdered:o,level:"0",paragraphStyleId:c}:e[a]={isOrdered:o,level:a,paragraphStyleId:c}}),t!==null&&e[t.level]===void 0&&(e[t.level]=t);var n=r.firstOrEmpty("w:numStyleLink").attributes["w:val"];return{levels:e,numStyleLink:n}}function e4(r){var e={};return r.getElementsByTagName("w:num").forEach(function(t){var n=t.attributes["w:numId"],i=t.first("w:abstractNumId").attributes["w:val"];e[n]={abstractNumId:i}}),e}});var s_=be(Kh=>{Kh.readStylesXml=t4;Kh.Styles=Oc;Kh.defaultStyles=new Oc({},{});function Oc(r,e,t,n){return{findParagraphStyleById:function(i){return r[i]},findCharacterStyleById:function(i){return e[i]},findTableStyleById:function(i){return t[i]},findNumberingStyleById:function(i){return n[i]}}}Oc.EMPTY=new Oc({},{},{},{});function t4(r){var e={},t={},n={},i={},a={paragraph:e,character:t,table:n,numbering:i};return r.getElementsByTagName("w:style").forEach(function(s){var o=r4(s),c=a[o.type];c&&c[o.styleId]===void 0&&(c[o.styleId]=o)}),new Oc(e,t,n,i)}function r4(r){var e=r.attributes["w:type"];if(e==="numbering")return i4(e,r);var t=a_(r),n=n4(r);return{type:e,styleId:t,name:n}}function n4(r){var e=r.first("w:name");return e?e.attributes["w:val"]:null}function i4(r,e){var t=a_(e),n=e.firstOrEmpty("w:pPr").firstOrEmpty("w:numPr").firstOrEmpty("w:numId").attributes["w:val"];return{type:r,numId:n,styleId:t}}function a_(r){return r.attributes["w:styleId"]}});var c_=be(Bc=>{var a4=Ci(),s4=Un().Result;Bc.createFootnotesReader=o_.bind(Bc,"footnote");Bc.createEndnotesReader=o_.bind(Bc,"endnote");function o_(r,e){function t(a){return s4.combine(a.getElementsByTagName("w:"+r).filter(n).map(i))}function n(a){var s=a.attributes["w:type"];return s!=="continuationSeparator"&&s!=="separator"}function i(a){var s=a.attributes["w:id"];return e.readXmlElements(a.children).map(function(o){return a4.Note({noteType:r,noteId:s,body:o})})}return t}});var u_=be(l_=>{var o4=Ci(),c4=Un().Result;function l4(r){function e(n){return c4.combine(n.getElementsByTagName("w:comment").map(t))}function t(n){var i=n.attributes["w:id"];function a(s){return(n.attributes[s]||"").trim()||null}return r.readXmlElements(n.children).map(function(s){return o4.comment({commentId:i,body:s,authorName:a("w:author"),authorInitials:a("w:initials")})})}return e}l_.createCommentsReader=l4});var f_=be(h_=>{var u4=ei();h_.Files=h4;function h4(){function r(e){return u4.reject(new Error("could not open external image: '"+e+`'
|
|
199
|
-
cannot open linked files from a web browser`))}return{read:r}}});var w_=be(dm=>{dm.read=v4;dm._findPartPaths=y_;var f4=ei(),d4=Ci(),fm=Un().Result,Jh=Ig(),v_=Bw().readXmlFromZipFile,p4=Jw().createBodyReader,g4=e_().DocumentXmlReader,Fs=t_(),d_=n_(),p_=i_(),g_=s_(),m_=c_(),m4=u_(),x4=f_().Files;function v4(r,e,t){e=e||{},t=t||{};var n=new x4({externalFileAccess:t.externalFileAccess,relativeToFile:e.path});return f4.props({contentTypes:b4(r),partPaths:y_(r),docxFile:r,files:n}).also(function(i){return{styles:_4(r,i.partPaths.styles)}}).also(function(i){return{numbering:w4(r,i.partPaths.numbering,i.styles)}}).also(function(i){return{footnotes:Zh(i.partPaths.footnotes,i,function(a,s){return s?m_.createFootnotesReader(a)(s):new fm([])}),endnotes:Zh(i.partPaths.endnotes,i,function(a,s){return s?m_.createEndnotesReader(a)(s):new fm([])}),comments:Zh(i.partPaths.comments,i,function(a,s){return s?m4.createCommentsReader(a)(s):new fm([])})}}).also(function(i){return{notes:i.footnotes.flatMap(function(a){return i.endnotes.map(function(s){return new d4.Notes(a.concat(s))})})}}).then(function(i){return Zh(i.partPaths.mainDocument,i,function(a,s){return i.notes.flatMap(function(o){return i.comments.flatMap(function(c){var u=new g4({bodyReader:a,notes:o,comments:c});return u.convertXmlToDocument(s)})})})})}function y_(r){return D4(r).then(function(e){var t=x_({docxFile:r,relationships:e,relationshipType:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",basePath:"",fallbackPath:"word/document.xml"});if(!r.exists(t))throw new Error("Could not find main document part. Are you sure this is a valid .docx file?");return ks({filename:b_(t),readElement:Fs.readRelationships,defaultValue:Fs.defaultValue})(r).then(function(n){function i(a){return x_({docxFile:r,relationships:n,relationshipType:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/"+a,basePath:Jh.splitPath(t).dirname,fallbackPath:"word/"+a+".xml"})}return{mainDocument:t,comments:i("comments"),endnotes:i("endnotes"),footnotes:i("footnotes"),numbering:i("numbering"),styles:i("styles")}})})}function x_(r){var e=r.docxFile,t=r.relationships,n=r.relationshipType,i=r.basePath,a=r.fallbackPath,s=t.findTargetsByType(n),o=s.map(function(u){return y4(Jh.joinPath(i,u),"/")}),c=o.filter(function(u){return e.exists(u)});return c.length===0?a:c[0]}function y4(r,e){return r.substring(0,e.length)===e?r.substring(e.length):r}function ks(r){return function(e){return v_(e,r.filename).then(function(t){return t?r.readElement(t):r.defaultValue})}}function Zh(r,e,t){var n=ks({filename:b_(r),readElement:Fs.readRelationships,defaultValue:Fs.defaultValue});return n(e.docxFile).then(function(i){var a=new p4({relationships:i,contentTypes:e.contentTypes,docxFile:e.docxFile,numbering:e.numbering,styles:e.styles,files:e.files});return v_(e.docxFile,r).then(function(s){return t(a,s)})})}function b_(r){var e=Jh.splitPath(r);return Jh.joinPath(e.dirname,"_rels",e.basename+".rels")}var b4=ks({filename:"[Content_Types].xml",readElement:d_.readContentTypesFromXml,defaultValue:d_.defaultContentTypes});function w4(r,e,t){return ks({filename:e,readElement:function(n){return p_.readNumberingXml(n,{styles:t})},defaultValue:p_.defaultNumbering})(r)}function _4(r,e){return ks({filename:e,readElement:g_.readStylesXml,defaultValue:g_.defaultStyles})(r)}var D4=ks({filename:"_rels/.rels",readElement:Fs.readRelationships,defaultValue:Fs.defaultValue})});var T_=be(pm=>{var T4=(At(),Ft(Et)),E4=ei(),Nc=Vh();pm.writeStyleMap=S4;pm.readStyleMap=k4;var A4="http://schemas.zwobble.org/mammoth/style-map",Qh="mammoth/style-map",__="/"+Qh;function S4(r,e){return r.write(Qh,e),C4(r).then(function(){return F4(r)})}function C4(r){var e="word/_rels/document.xml.rels",t="http://schemas.openxmlformats.org/package/2006/relationships",n="{"+t+"}Relationship";return r.read(e,"utf8").then(Nc.readString).then(function(i){var a=i.children;D_(a,n,"Id",{Id:"rMammothStyleMap",Type:A4,Target:__});var s={"":t};return r.write(e,Nc.writeString(i,s))})}function F4(r){var e="[Content_Types].xml",t="http://schemas.openxmlformats.org/package/2006/content-types",n="{"+t+"}Override";return r.read(e,"utf8").then(Nc.readString).then(function(i){var a=i.children;D_(a,n,"PartName",{PartName:__,ContentType:"text/prs.mammoth.style-map"});var s={"":t};return r.write(e,Nc.writeString(i,s))})}function D_(r,e,t,n){var i=T4.find(r,function(a){return a.name===e&&a.attributes[t]===n[t]});i?i.attributes=n:r.push(Nc.element(e,n))}function k4(r){return r.exists(Qh)?r.read(Qh,"utf8"):E4.resolve(null)}});var mm=be(va=>{var E_=Pc();function U4(r,e,t){return gm(E_.element(r,e,{fresh:!1}),t)}function I4(r,e,t){var n=E_.element(r,e,{fresh:!0});return gm(n,t)}function gm(r,e){return{type:"element",tag:r,children:e||[]}}function R4(r){return{type:"text",value:r}}var O4={type:"forceWrite"};va.freshElement=I4;va.nonFreshElement=U4;va.elementWithTag=gm;va.text=R4;va.forceWrite=O4;var B4={br:!0,hr:!0,img:!0,input:!0};function N4(r){return r.children.length===0&&B4[r.tag.tagName]}va.isVoidElement=N4});var U_=be((
|
|
199
|
+
cannot open linked files from a web browser`))}return{read:r}}});var w_=be(dm=>{dm.read=v4;dm._findPartPaths=y_;var f4=ei(),d4=Ci(),fm=Un().Result,Jh=Ig(),v_=Bw().readXmlFromZipFile,p4=Jw().createBodyReader,g4=e_().DocumentXmlReader,Fs=t_(),d_=n_(),p_=i_(),g_=s_(),m_=c_(),m4=u_(),x4=f_().Files;function v4(r,e,t){e=e||{},t=t||{};var n=new x4({externalFileAccess:t.externalFileAccess,relativeToFile:e.path});return f4.props({contentTypes:b4(r),partPaths:y_(r),docxFile:r,files:n}).also(function(i){return{styles:_4(r,i.partPaths.styles)}}).also(function(i){return{numbering:w4(r,i.partPaths.numbering,i.styles)}}).also(function(i){return{footnotes:Zh(i.partPaths.footnotes,i,function(a,s){return s?m_.createFootnotesReader(a)(s):new fm([])}),endnotes:Zh(i.partPaths.endnotes,i,function(a,s){return s?m_.createEndnotesReader(a)(s):new fm([])}),comments:Zh(i.partPaths.comments,i,function(a,s){return s?m4.createCommentsReader(a)(s):new fm([])})}}).also(function(i){return{notes:i.footnotes.flatMap(function(a){return i.endnotes.map(function(s){return new d4.Notes(a.concat(s))})})}}).then(function(i){return Zh(i.partPaths.mainDocument,i,function(a,s){return i.notes.flatMap(function(o){return i.comments.flatMap(function(c){var u=new g4({bodyReader:a,notes:o,comments:c});return u.convertXmlToDocument(s)})})})})}function y_(r){return D4(r).then(function(e){var t=x_({docxFile:r,relationships:e,relationshipType:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",basePath:"",fallbackPath:"word/document.xml"});if(!r.exists(t))throw new Error("Could not find main document part. Are you sure this is a valid .docx file?");return ks({filename:b_(t),readElement:Fs.readRelationships,defaultValue:Fs.defaultValue})(r).then(function(n){function i(a){return x_({docxFile:r,relationships:n,relationshipType:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/"+a,basePath:Jh.splitPath(t).dirname,fallbackPath:"word/"+a+".xml"})}return{mainDocument:t,comments:i("comments"),endnotes:i("endnotes"),footnotes:i("footnotes"),numbering:i("numbering"),styles:i("styles")}})})}function x_(r){var e=r.docxFile,t=r.relationships,n=r.relationshipType,i=r.basePath,a=r.fallbackPath,s=t.findTargetsByType(n),o=s.map(function(u){return y4(Jh.joinPath(i,u),"/")}),c=o.filter(function(u){return e.exists(u)});return c.length===0?a:c[0]}function y4(r,e){return r.substring(0,e.length)===e?r.substring(e.length):r}function ks(r){return function(e){return v_(e,r.filename).then(function(t){return t?r.readElement(t):r.defaultValue})}}function Zh(r,e,t){var n=ks({filename:b_(r),readElement:Fs.readRelationships,defaultValue:Fs.defaultValue});return n(e.docxFile).then(function(i){var a=new p4({relationships:i,contentTypes:e.contentTypes,docxFile:e.docxFile,numbering:e.numbering,styles:e.styles,files:e.files});return v_(e.docxFile,r).then(function(s){return t(a,s)})})}function b_(r){var e=Jh.splitPath(r);return Jh.joinPath(e.dirname,"_rels",e.basename+".rels")}var b4=ks({filename:"[Content_Types].xml",readElement:d_.readContentTypesFromXml,defaultValue:d_.defaultContentTypes});function w4(r,e,t){return ks({filename:e,readElement:function(n){return p_.readNumberingXml(n,{styles:t})},defaultValue:p_.defaultNumbering})(r)}function _4(r,e){return ks({filename:e,readElement:g_.readStylesXml,defaultValue:g_.defaultStyles})(r)}var D4=ks({filename:"_rels/.rels",readElement:Fs.readRelationships,defaultValue:Fs.defaultValue})});var T_=be(pm=>{var T4=(At(),Ft(Et)),E4=ei(),Nc=Vh();pm.writeStyleMap=S4;pm.readStyleMap=k4;var A4="http://schemas.zwobble.org/mammoth/style-map",Qh="mammoth/style-map",__="/"+Qh;function S4(r,e){return r.write(Qh,e),C4(r).then(function(){return F4(r)})}function C4(r){var e="word/_rels/document.xml.rels",t="http://schemas.openxmlformats.org/package/2006/relationships",n="{"+t+"}Relationship";return r.read(e,"utf8").then(Nc.readString).then(function(i){var a=i.children;D_(a,n,"Id",{Id:"rMammothStyleMap",Type:A4,Target:__});var s={"":t};return r.write(e,Nc.writeString(i,s))})}function F4(r){var e="[Content_Types].xml",t="http://schemas.openxmlformats.org/package/2006/content-types",n="{"+t+"}Override";return r.read(e,"utf8").then(Nc.readString).then(function(i){var a=i.children;D_(a,n,"PartName",{PartName:__,ContentType:"text/prs.mammoth.style-map"});var s={"":t};return r.write(e,Nc.writeString(i,s))})}function D_(r,e,t,n){var i=T4.find(r,function(a){return a.name===e&&a.attributes[t]===n[t]});i?i.attributes=n:r.push(Nc.element(e,n))}function k4(r){return r.exists(Qh)?r.read(Qh,"utf8"):E4.resolve(null)}});var mm=be(va=>{var E_=Pc();function U4(r,e,t){return gm(E_.element(r,e,{fresh:!1}),t)}function I4(r,e,t){var n=E_.element(r,e,{fresh:!0});return gm(n,t)}function gm(r,e){return{type:"element",tag:r,children:e||[]}}function R4(r){return{type:"text",value:r}}var O4={type:"forceWrite"};va.freshElement=I4;va.nonFreshElement=U4;va.elementWithTag=gm;va.text=R4;va.forceWrite=O4;var B4={br:!0,hr:!0,img:!0,input:!0};function N4(r){return r.children.length===0&&B4[r.tag.tagName]}va.isVoidElement=N4});var U_=be((z$,k_)=>{var A_=(At(),Ft(Et)),ef=mm();function P4(r){return C_(F_(r))}function C_(r){var e=[];return r.map(L4).forEach(function(t){xm(e,t)}),e}function L4(r){return M4[r.type](r)}var M4={element:W4,text:S_,forceWrite:S_};function W4(r){return ef.elementWithTag(r.tag,C_(r.children))}function S_(r){return r}function xm(r,e){var t=r[r.length-1];e.type==="element"&&!e.tag.fresh&&t&&t.type==="element"&&e.tag.matchesElement(t.tag)?(e.tag.separator&&xm(t.children,ef.text(e.tag.separator)),e.children.forEach(function(n){xm(t.children,n)})):r.push(e)}function F_(r){return H4(r,function(e){return V4[e.type](e)})}function H4(r,e){return A_.flatten(A_.map(r,e),!0)}var V4={element:j4,text:G4,forceWrite:z4};function z4(r){return[r]}function j4(r){var e=F_(r.children);return e.length===0&&!ef.isVoidElement(r)?[]:[ef.elementWithTag(r.tag,e)]}function G4(r){return r.value.length===0?[]:[r]}k_.exports=P4});var Lc=be(Ui=>{var Us=mm();Ui.freshElement=Us.freshElement;Ui.nonFreshElement=Us.nonFreshElement;Ui.elementWithTag=Us.elementWithTag;Ui.text=Us.text;Ui.forceWrite=Us.forceWrite;Ui.simplify=U_();function I_(r,e){e.forEach(function(t){X4(r,t)})}function X4(r,e){$4[e.type](r,e)}var $4={element:q4,text:Y4,forceWrite:function(){}};function q4(r,e){Us.isVoidElement(e)?r.selfClosing(e.tag.tagName,e.tag.attributes):(r.open(e.tag.tagName,e.tag.attributes),I_(r,e.children),r.close(e.tag.tagName))}function Y4(r,e){r.text(e.value)}Ui.write=I_});var Pc=be(Is=>{var vm=(At(),Ft(Et)),K4=Lc();Is.topLevelElement=Z4;Is.elements=ym;Is.element=bm;function Z4(r,e){return ym([bm(r,e,{fresh:!0})])}function ym(r){return new R_(r.map(function(e){return vm.isString(e)?bm(e):e}))}function R_(r){this._elements=r}R_.prototype.wrap=function(e){for(var t=e(),n=this._elements.length-1;n>=0;n--)t=this._elements[n].wrapNodes(t);return t};function bm(r,e,t){return t=t||{},new tf(r,e,t)}function tf(r,e,t){var n={};vm.isArray(r)?(r.forEach(function(i){n[i]=!0}),r=r[0]):n[r]=!0,this.tagName=r,this.tagNames=n,this.attributes=e||{},this.fresh=t.fresh,this.separator=t.separator}tf.prototype.matchesElement=function(r){return this.tagNames[r.tagName]&&vm.isEqual(this.attributes||{},r.attributes||{})};tf.prototype.wrap=function(e){return this.wrapNodes(e())};tf.prototype.wrapNodes=function(e){return[K4.elementWithTag(this,e)]};Is.empty=ym([]);Is.ignore={wrap:function(){return[]}}});var wm=be(Mc=>{var J4=(At(),Ft(Et)),Q4=ei(),eF=Lc();Mc.imgElement=O_;function O_(r){return function(e,t){return Q4.when(r(e)).then(function(n){var i={};return e.altText&&(i.alt=e.altText),J4.extend(i,n),[eF.freshElement("img",i)]})}}Mc.inline=Mc.imgElement;Mc.dataUri=O_(function(r){return r.readAsBase64String().then(function(e){return{src:"data:"+r.contentType+";base64,"+e}})})});var L_=be(P_=>{var B_=(At(),Ft(Et));P_.writer=tF;function tF(r){return r=r||{},r.prettyPrint?rF():N_()}var rf={div:!0,p:!0,ul:!0,li:!0};function rF(){var r=0,e=" ",t=[],n=!0,i=!1,a=N_();function s(m,g){rf[m]&&d(),t.push(m),a.open(m,g),rf[m]&&r++,n=!1}function o(m){rf[m]&&(r--,d()),t.pop(),a.close(m)}function c(m){f();var g=p()?m:m.replace(`
|
|
200
200
|
`,`
|
|
201
201
|
`+e);a.text(g)}function u(m,g){d(),a.selfClosing(m,g)}function h(){return t.length===0||rf[t[t.length-1]]}function f(){i||(d(),i=!0)}function d(){if(i=!1,!n&&h()&&!p()){a._append(`
|
|
202
202
|
`);for(var m=0;m<r;m++)a._append(e)}}function p(){return B_.some(t,function(m){return m==="pre"})}return{asString:a.asString,open:s,close:o,text:c,selfClosing:u}}function N_(){var r=[];function e(c,u){var h=i(u);r.push("<"+c+h+">")}function t(c){r.push("</"+c+">")}function n(c,u){var h=i(u);r.push("<"+c+h+" />")}function i(c){return B_.map(c,function(u,h){return" "+h+'="'+iF(u)+'"'}).join("")}function a(c){r.push(nF(c))}function s(c){r.push(c)}function o(){return r.join("")}return{asString:o,open:e,close:t,text:a,selfClosing:n,_append:s}}function nF(r){return r.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function iF(r){return r.replace(/&/g,"&").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">")}});var j_=be(z_=>{var aF=(At(),Ft(Et));function M_(r){return nf(r,r)}function nf(r,e){return function(){return{start:r,end:e}}}function sF(r){var e=r.href||"";return e?{start:"[",end:"]("+e+")",anchorPosition:"before"}:{}}function oF(r){var e=r.src||"",t=r.alt||"";return e||t?{start:""}:{}}function W_(r){return function(e,t){return{start:t?`
|
|
@@ -209,19 +209,19 @@ cannot open linked files from a web browser`))}return{read:r}}});var w_=be(dm=>{
|
|
|
209
209
|
|
|
210
210
|
`)})();function V_(r,e){return new Array(e+1).join(r)}function lF(){var r=[],e=[],t=null,n={};function i(h,f){f=f||{};var d=H_[h]||function(){return{}},p=d(f,t,n);e.push({end:p.end,list:t}),p.list&&(t=p.list);var m=p.anchorPosition==="before";m&&a(f),r.push(p.start||""),m||a(f)}function a(h){h.id&&r.push('<a id="'+h.id+'"></a>')}function s(h){var f=e.pop();t=f.list;var d=aF.isFunction(f.end)?f.end():f.end;r.push(d||"")}function o(h,f){i(h,f),s(h)}function c(h){r.push(uF(h))}function u(){return r.join("")}return{asString:u,open:i,close:s,text:c,selfClosing:o}}z_.writer=lF;function uF(r){return r.replace(/\\/g,"\\\\").replace(/([\`\*_\{\}\[\]\(\)\#\+\-\.\!])/g,"\\$1")}});var X_=be(G_=>{var hF=L_(),fF=j_();G_.writer=dF;function dF(r){return r=r||{},r.outputFormat==="markdown"?fF.writer():hF.writer(r)}});var K_=be(Tm=>{var Ii=(At(),Ft(Et)),$_=ei(),af=Ci(),sn=Pc(),Dm=Un(),pF=wm(),Ke=Lc(),gF=X_();Tm.DocumentConverter=mF;function mF(r){return{convertToHtml:function(e){var t=Ii.indexBy(e.type===af.types.document?e.comments:[],"commentId"),n=new xF(r,t);return n.convertToHtml(e)}}}function xF(r,e){var t=1,n=[],i=[];r=Ii.extend({ignoreEmptyParagraphs:!0},r);var a=r.idPrefix===void 0?"":r.idPrefix,s=r.ignoreEmptyParagraphs,o=sn.topLevelElement("p"),c=r.styleMap||[];function u(P){var R=[],N=f(P,R,{}),z=[];Y_(N,function(H){H.type==="deferred"&&z.push(H)});var I={};return $_.mapSeries(z,function(H){return H.value().then(function(Z){I[H.id]=Z})}).then(function(){function H(re){return _m(re,function(ee){return ee.type==="deferred"?I[ee.id]:ee.children?[Ii.extend({},ee,{children:H(ee.children)})]:[ee]})}var Z=gF.writer({prettyPrint:r.prettyPrint,outputFormat:r.outputFormat});return Ke.write(Z,Ke.simplify(H(N))),new Dm.Result(Z.asString(),R)})}function h(P,R,N){return _m(P,function(z){return f(z,R,N)})}function f(P,R,N){if(!N)throw new Error("options not set");var z=O[P.type];return z?z(P,R,N):[]}function d(P,R,N){return p(P,R).wrap(function(){var z=h(P.children,R,N);return s?z:[Ke.forceWrite].concat(z)})}function p(P,R){var N=y(P);return N?N.to:(P.styleId&&R.push(q_("paragraph",P)),o)}function m(P,R,N){var z=function(){return h(P.children,R,N)},I=[];if(P.highlight!==null){var H=x({type:"highlight",color:P.highlight});H&&I.push(H)}P.isSmallCaps&&I.push(g("smallCaps")),P.isAllCaps&&I.push(g("allCaps")),P.isStrikethrough&&I.push(g("strikethrough","s")),P.isUnderline&&I.push(g("underline")),P.verticalAlignment===af.verticalAlignment.subscript&&I.push(sn.element("sub",{},{fresh:!1})),P.verticalAlignment===af.verticalAlignment.superscript&&I.push(sn.element("sup",{},{fresh:!1})),P.isItalic&&I.push(g("italic","em")),P.isBold&&I.push(g("bold","strong"));var Z=sn.empty,re=y(P);return re?Z=re.to:P.styleId&&R.push(q_("run",P)),I.push(Z),I.forEach(function(ee){z=ee.wrap.bind(ee,z)}),z()}function g(P,R){var N=x({type:P});return N||(R?sn.element(R,{},{fresh:!1}):sn.empty)}function x(P,R){var N=y(P);return N?N.to:R}function y(P){for(var R=0;R<c.length;R++)if(c[R].from.matches(P))return c[R]}function b(P){return function(R,N){return $_.attempt(function(){return P(R,N)}).caught(function(z){return N.push(Dm.error(z)),[]})}}function v(P){return A(P.noteType,P.noteId)}function _(P){return E(P.noteType,P.noteId)}function A(P,R){return T(P+"-"+R)}function E(P,R){return T(P+"-ref-"+R)}function T(P){return a+P}var S=sn.elements([sn.element("table",{},{fresh:!0})]);function C(P,R,N){return x(P,S).wrap(function(){return F(P,R,N)})}function F(P,R,N){var z=Ii.findIndex(P.children,function(re){return!re.type===af.types.tableRow||!re.isHeader});z===-1&&(z=P.children.length);var I;if(z===0)I=h(P.children,R,Ii.extend({},N,{isTableHeader:!1}));else{var H=h(P.children.slice(0,z),R,Ii.extend({},N,{isTableHeader:!0})),Z=h(P.children.slice(z),R,Ii.extend({},N,{isTableHeader:!1}));I=[Ke.freshElement("thead",{},H),Ke.freshElement("tbody",{},Z)]}return[Ke.forceWrite].concat(I)}function k(P,R,N){var z=h(P.children,R,N);return[Ke.freshElement("tr",{},[Ke.forceWrite].concat(z))]}function D(P,R,N){var z=N.isTableHeader?"th":"td",I=h(P.children,R,N),H={};return P.colSpan!==1&&(H.colspan=P.colSpan.toString()),P.rowSpan!==1&&(H.rowspan=P.rowSpan.toString()),[Ke.freshElement(z,H,[Ke.forceWrite].concat(I))]}function B(P,R,N){return x(P,sn.ignore).wrap(function(){var z=e[P.commentId],I=i.length+1,H="["+bF(z)+I+"]";return i.push({label:H,comment:z}),[Ke.freshElement("a",{href:"#"+A("comment",P.commentId),id:E("comment",P.commentId)},[Ke.text(H)])]})}function q(P,R,N){var z=P.label,I=P.comment,H=h(I.body,R,N).concat([Ke.nonFreshElement("p",{},[Ke.text(" "),Ke.freshElement("a",{href:"#"+E("comment",I.commentId)},[Ke.text("\u2191")])])]);return[Ke.freshElement("dt",{id:A("comment",I.commentId)},[Ke.text("Comment "+z)]),Ke.freshElement("dd",{},H)]}function j(P,R,N){return U(P).wrap(function(){return[]})}function U(P){var R=y(P);return R?R.to:P.breakType==="line"?sn.topLevelElement("br"):sn.empty}var O={document:function(P,R,N){var z=h(P.children,R,N),I=n.map(function(Z){return P.notes.resolve(Z)}),H=h(I,R,N);return z.concat([Ke.freshElement("ol",{},H),Ke.freshElement("dl",{},_m(i,function(Z){return q(Z,R,N)}))])},paragraph:d,run:m,text:function(P,R,N){return[Ke.text(P.value)]},tab:function(P,R,N){return[Ke.text(" ")]},hyperlink:function(P,R,N){var z=P.anchor?"#"+T(P.anchor):P.href,I={href:z};P.targetFrame!=null&&(I.target=P.targetFrame);var H=h(P.children,R,N);return[Ke.nonFreshElement("a",I,H)]},checkbox:function(P){var R={type:"checkbox"};return P.checked&&(R.checked="checked"),[Ke.freshElement("input",R)]},bookmarkStart:function(P,R,N){var z=Ke.freshElement("a",{id:T(P.name)},[Ke.forceWrite]);return[z]},noteReference:function(P,R,N){n.push(P);var z=Ke.freshElement("a",{href:"#"+v(P),id:_(P)},[Ke.text("["+t+++"]")]);return[Ke.freshElement("sup",{},[z])]},note:function(P,R,N){var z=h(P.body,R,N),I=Ke.elementWithTag(sn.element("p",{},{fresh:!1}),[Ke.text(" "),Ke.freshElement("a",{href:"#"+_(P)},[Ke.text("\u2191")])]),H=z.concat([I]);return Ke.freshElement("li",{id:v(P)},H)},commentReference:B,comment:q,image:yF(b(r.convertImage||pF.dataUri)),table:C,tableRow:k,tableCell:D,break:j};return{convertToHtml:u}}var vF=1;function yF(r){return function(e,t,n){return[{type:"deferred",id:vF++,value:function(){return r(e,t,n)}}]}}function q_(r,e){return Dm.warning("Unrecognised "+r+" style: '"+e.styleName+"' (Style ID: "+e.styleId+")")}function _m(r,e){return Ii.flatten(r.map(e),!0)}function Y_(r,e){r.forEach(function(t){e(t),t.children&&Y_(t.children,e)})}var bF=Tm.commentAuthorLabel=function(e){return e.authorInitials||""}});var Q_=be(J_=>{var wF=Ci();function Z_(r){if(r.type==="text")return r.value;if(r.type===wF.types.tab)return" ";var e=r.type==="paragraph"?`
|
|
211
211
|
|
|
212
|
-
`:"";return(r.children||[]).map(Z_).join("")+e}J_.convertElementToRawText=Z_});var tD=be((
|
|
212
|
+
`:"";return(r.children||[]).map(Z_).join("")+e}J_.convertElementToRawText=Z_});var tD=be((J$,eD)=>{var Rs=eD.exports=function(r,e){this._tokens=r,this._startIndex=e||0};Rs.prototype.head=function(){return this._tokens[this._startIndex]};Rs.prototype.tail=function(r){return new Rs(this._tokens,this._startIndex+1)};Rs.prototype.toArray=function(){return this._tokens.slice(this._startIndex)};Rs.prototype.end=function(){return this._tokens[this._tokens.length-1]};Rs.prototype.to=function(r){var e=this.head().source,t=r.head()||r.end();return e.to(t.source)}});var nD=be(rD=>{var _F=tD();rD.Parser=function(r){var e=function(t,n){return t(new _F(n))};return{parseTokens:e}}});var aD=be(xn=>{xn.none=Object.create({value:function(){throw new Error("Called value on none")},isNone:function(){return!0},isSome:function(){return!1},map:function(){return xn.none},flatMap:function(){return xn.none},filter:function(){return xn.none},toArray:function(){return[]},orElse:iD,valueOrElse:iD});function iD(r){return typeof r=="function"?r():r}xn.some=function(r){return new Yr(r)};var Yr=function(r){this._value=r};Yr.prototype.value=function(){return this._value};Yr.prototype.isNone=function(){return!1};Yr.prototype.isSome=function(){return!0};Yr.prototype.map=function(r){return new Yr(r(this._value))};Yr.prototype.flatMap=function(r){return r(this._value)};Yr.prototype.filter=function(r){return r(this._value)?this:xn.none};Yr.prototype.toArray=function(){return[this._value]};Yr.prototype.orElse=function(r){return this};Yr.prototype.valueOrElse=function(r){return this._value};xn.isOption=function(r){return r===xn.none||r instanceof Yr};xn.fromNullable=function(r){return r==null?xn.none:new Yr(r)}});var sf=be((tq,sD)=>{sD.exports={failure:function(r,e){if(r.length<1)throw new Error("Failure must have errors");return new lr({status:"failure",remaining:e,errors:r})},error:function(r,e){if(r.length<1)throw new Error("Failure must have errors");return new lr({status:"error",remaining:e,errors:r})},success:function(r,e,t){return new lr({status:"success",value:r,source:t,remaining:e,errors:[]})},cut:function(r){return new lr({status:"cut",remaining:r,errors:[]})}};var lr=function(r){this._value=r.value,this._status=r.status,this._hasValue=r.value!==void 0,this._remaining=r.remaining,this._source=r.source,this._errors=r.errors};lr.prototype.map=function(r){return this._hasValue?new lr({value:r(this._value,this._source),status:this._status,remaining:this._remaining,source:this._source,errors:this._errors}):this};lr.prototype.changeRemaining=function(r){return new lr({value:this._value,status:this._status,remaining:r,source:this._source,errors:this._errors})};lr.prototype.isSuccess=function(){return this._status==="success"||this._status==="cut"};lr.prototype.isFailure=function(){return this._status==="failure"};lr.prototype.isError=function(){return this._status==="error"};lr.prototype.isCut=function(){return this._status==="cut"};lr.prototype.value=function(){return this._value};lr.prototype.remaining=function(){return this._remaining};lr.prototype.source=function(){return this._source};lr.prototype.errors=function(){return this._errors}});var Em=be(oD=>{oD.error=function(r){return new of(r)};var of=function(r){this.expected=r.expected,this.actual=r.actual,this._location=r.location};of.prototype.describe=function(){var r=this._location?this._location.describe()+`:
|
|
213
213
|
`:"";return r+"Expected "+this.expected+`
|
|
214
|
-
but got `+this.actual};of.prototype.lineNumber=function(){return this._location.lineNumber()};of.prototype.characterNumber=function(){return this._location.characterNumber()}});var lD=be(cD=>{var
|
|
214
|
+
but got `+this.actual};of.prototype.lineNumber=function(){return this._location.lineNumber()};of.prototype.characterNumber=function(){return this._location.characterNumber()}});var lD=be(cD=>{var nq=cD.fromArray=function(r){var e=0,t=function(){return e<r.length};return new ya({hasNext:t,next:function(){if(t())return r[e++];throw new Error("No more elements")}})},ya=function(r){this._iterator=r};ya.prototype.map=function(r){var e=this._iterator;return new ya({hasNext:function(){return e.hasNext()},next:function(){return r(e.next())}})};ya.prototype.filter=function(r){var e=this._iterator,t=!1,n=!1,i,a=function(){if(!t)for(t=!0,n=!1;e.hasNext()&&!n;)i=e.next(),n=r(i)};return new ya({hasNext:function(){return a(),n},next:function(){a();var s=i;return t=!1,s}})};ya.prototype.first=function(){var r=this._iterator;return this._iterator.hasNext()?r.next():null};ya.prototype.toArray=function(){for(var r=[];this._iterator.hasNext();)r.push(this._iterator.next());return r}});var Am=be(nt=>{var cf=(At(),Ft(Et)),uD=aD(),on=sf(),hD=Em(),DF=lD();nt.token=function(r,e){var t=e!==void 0;return function(n){var i=n.head();if(i&&i.name===r&&(!t||i.value===e))return on.success(i.value,n.tail(),i.source);var a=dD({name:r,value:e});return pD(n,a)}};nt.tokenOfType=function(r){return nt.token(r)};nt.firstOf=function(r,e){return cf.isArray(e)||(e=Array.prototype.slice.call(arguments,1)),function(t){return DF.fromArray(e).map(function(n){return n(t)}).filter(function(n){return n.isSuccess()||n.isError()}).first()||pD(t,r)}};nt.then=function(r,e){return function(t){var n=r(t);return n.map||console.log(n),n.map(e)}};nt.sequence=function(){var r=Array.prototype.slice.call(arguments,0),e=function(n){var i=cf.foldl(r,function(s,o){var c=s.result,u=s.hasCut;if(!c.isSuccess())return{result:c,hasCut:u};var h=o(c.remaining());if(h.isCut())return{result:c,hasCut:!0};if(h.isSuccess()){var f;o.isCaptured?f=c.value().withValue(o,h.value()):f=c.value();var d=h.remaining(),p=n.to(d);return{result:on.success(f,d,p),hasCut:u}}else return u?{result:on.error(h.errors(),h.remaining()),hasCut:u}:{result:h,hasCut:u}},{result:on.success(new Wc,n),hasCut:!1}).result,a=n.to(i.remaining());return i.map(function(s){return s.withValue(nt.sequence.source,a)})};e.head=function(){var n=cf.find(r,t);return nt.then(e,nt.sequence.extract(n))},e.map=function(n){return nt.then(e,function(i){return n.apply(this,i.toArray())})};function t(n){return n.isCaptured}return e};var Wc=function(r,e){this._values=r||{},this._valuesArray=e||[]};Wc.prototype.withValue=function(r,e){if(r.captureName&&r.captureName in this._values)throw new Error('Cannot add second value for capture "'+r.captureName+'"');var t=cf.clone(this._values);t[r.captureName]=e;var n=this._valuesArray.concat([e]);return new Wc(t,n)};Wc.prototype.get=function(r){if(r.captureName in this._values)return this._values[r.captureName];throw new Error('No value for capture "'+r.captureName+'"')};Wc.prototype.toArray=function(){return this._valuesArray};nt.sequence.capture=function(r,e){var t=function(){return r.apply(this,arguments)};return t.captureName=e,t.isCaptured=!0,t};nt.sequence.extract=function(r){return function(e){return e.get(r)}};nt.sequence.applyValues=function(r){var e=Array.prototype.slice.call(arguments,1);return function(t){var n=e.map(function(i){return t.get(i)});return r.apply(this,n)}};nt.sequence.source={captureName:"\u2603source\u2603"};nt.sequence.cut=function(){return function(r){return on.cut(r)}};nt.optional=function(r){return function(e){var t=r(e);return t.isSuccess()?t.map(uD.some):t.isFailure()?on.success(uD.none,e):t}};nt.zeroOrMoreWithSeparator=function(r,e){return fD(r,e,!1)};nt.oneOrMoreWithSeparator=function(r,e){return fD(r,e,!0)};var TF=nt.zeroOrMore=function(r){return function(e){for(var t=[],n;(n=r(e))&&n.isSuccess();)e=n.remaining(),t.push(n.value());return n.isError()?n:on.success(t,e)}};nt.oneOrMore=function(r){return nt.oneOrMoreWithSeparator(r,EF)};function EF(r){return on.success(null,r)}var fD=function(r,e,t){return function(n){var i=r(n);if(i.isSuccess()){var a=nt.sequence.capture(r,"main"),s=TF(nt.then(nt.sequence(e,a),nt.sequence.extract(a))),o=s(i.remaining());return on.success([i.value()].concat(o.value()),o.remaining())}else return t||i.isError()?i:on.success([],n)}};nt.leftAssociative=function(r,e,t){var n;t?n=[{func:t,rule:e}]:n=e,n=n.map(function(a){return nt.then(a.rule,function(s){return function(o,c){return a.func(o,s,c)}})});var i=nt.firstOf.apply(null,["rules"].concat(n));return function(a){var s=a,o=r(a);if(!o.isSuccess())return o;for(var c=i(o.remaining());c.isSuccess();){var u=c.remaining(),h=s.to(c.remaining()),f=c.value();o=on.success(f(o.value(),h),u,h),c=i(o.remaining())}return c.isError()?c:o}};nt.leftAssociative.firstOf=function(){return Array.prototype.slice.call(arguments,0)};nt.nonConsuming=function(r){return function(e){return r(e).changeRemaining(e)}};var dD=function(r){return r.value?r.name+' "'+r.value+'"':r.name};function pD(r,e){var t,n=r.head();return n?t=hD.error({expected:e,actual:dD(n),location:n.source}):t=hD.error({expected:e,actual:"end of tokens"}),on.failure([t],r)}});var Sm=be((oq,gD)=>{var sq=gD.exports=function(r,e){var t={asString:function(){return r},range:function(n,i){return new ba(r,e,n,i)}};return t},ba=function(r,e,t,n){this._string=r,this._description=e,this._startIndex=t,this._endIndex=n};ba.prototype.to=function(r){return new ba(this._string,this._description,this._startIndex,r._endIndex)};ba.prototype.describe=function(){var r=this._position(),e=this._description?this._description+`
|
|
215
215
|
`:"";return e+"Line number: "+r.lineNumber+`
|
|
216
216
|
Character number: `+r.characterNumber};ba.prototype.lineNumber=function(){return this._position().lineNumber};ba.prototype.characterNumber=function(){return this._position().characterNumber};ba.prototype._position=function(){for(var r=this,e=0,t=function(){return r._string.indexOf(`
|
|
217
|
-
`,e)},n=1;t()!==-1&&t()<this._startIndex;)e=t()+1,n+=1;var i=this._startIndex-e+1;return{lineNumber:n,characterNumber:i}}});var Cm=be((
|
|
217
|
+
`,e)},n=1;t()!==-1&&t()<this._startIndex;)e=t()+1,n+=1;var i=this._startIndex-e+1;return{lineNumber:n,characterNumber:i}}});var Cm=be((cq,mD)=>{mD.exports=function(r,e,t){this.name=r,this.value=e,t&&(this.source=t)}});var vD=be(lf=>{var xD=Am(),AF=sf();lf.parser=function(r,e,t){var n={rule:o,leftAssociative:c,rightAssociative:u},i=new Fm(t.map(s)),a=xD.firstOf(r,e);function s(d){return{name:d.name,rule:SF(d.ruleBuilder.bind(null,n))}}function o(){return h(i)}function c(d){return h(i.untilExclusive(d))}function u(d){return h(i.untilInclusive(d))}function h(d){return f.bind(null,d)}function f(d,p){var m=a(p);return m.isSuccess()?d.apply(m):m}return n};function Fm(r){function e(s){return new Fm(r.slice(0,n().indexOf(s)))}function t(s){return new Fm(r.slice(0,n().indexOf(s)+1))}function n(){return r.map(function(s){return s.name})}function i(s){for(var o,c;;)if(o=a(s.remaining()),o.isSuccess())c=s.source().to(o.source()),s=AF.success(o.value()(s.value(),c),o.remaining(),c);else return o.isFailure()?s:o}function a(s){return xD.firstOf("infix",r.map(function(o){return o.rule}))(s)}return{apply:i,untilExclusive:e,untilInclusive:t}}lf.infix=function(r,e){function t(n){return lf.infix(r,function(i){var a=e(i);return function(s){var o=a(s);return o.map(function(c){return function(u,h){return n(u,c,h)}})}})}return{name:r,ruleBuilder:e,map:t}};var SF=function(r){var e;return function(t){return e||(e=r()),e(t)}}});var bD=be(yD=>{var km=Cm(),CF=Sm();yD.RegexTokeniser=FF;function FF(r){r=r.map(function(i){return{name:i.name,regex:new RegExp(i.regex.source,"g")}});function e(i,a){for(var s=new CF(i,a),o=0,c=[];o<i.length;){var u=t(i,o,s);o=u.endIndex,c.push(u.token)}return c.push(n(i,s)),c}function t(i,a,s){for(var o=0;o<r.length;o++){var c=r[o].regex;c.lastIndex=a;var u=c.exec(i);if(u){var f=a+u[0].length;if(u.index===a&&f>a){var h=u[1],d=new km(r[o].name,h,s.range(a,f));return{token:d,endIndex:f}}}}var f=a+1,d=new km("unrecognisedCharacter",i.substring(a,f),s.range(a,f));return{token:d,endIndex:f}}function n(i,a){return new km("end",null,a.range(i.length,i.length))}return{tokenise:e}}});var Um=be(Nn=>{Nn.Parser=nD().Parser;Nn.rules=Am();Nn.errors=Em();Nn.results=sf();Nn.StringSource=Sm();Nn.Token=Cm();Nn.bottomUp=vD();Nn.RegexTokeniser=bD().RegexTokeniser;Nn.rule=function(r){var e;return function(t){return e||(e=r()),e(t)}}});var _D=be(rr=>{rr.paragraph=kF;rr.run=UF;rr.table=IF;rr.bold=new vn("bold");rr.italic=new vn("italic");rr.underline=new vn("underline");rr.strikethrough=new vn("strikethrough");rr.allCaps=new vn("allCaps");rr.smallCaps=new vn("smallCaps");rr.highlight=RF;rr.commentReference=new vn("commentReference");rr.lineBreak=new uf({breakType:"line"});rr.pageBreak=new uf({breakType:"page"});rr.columnBreak=new uf({breakType:"column"});rr.equalTo=BF;rr.startsWith=NF;function kF(r){return new vn("paragraph",r)}function UF(r){return new vn("run",r)}function IF(r){return new vn("table",r)}function RF(r){return new wD(r)}function vn(r,e){e=e||{},this._elementType=r,this._styleId=e.styleId,this._styleName=e.styleName,e.list&&(this._listIndex=e.list.levelIndex,this._listIsOrdered=e.list.isOrdered)}vn.prototype.matches=function(r){return r.type===this._elementType&&(this._styleId===void 0||r.styleId===this._styleId)&&(this._styleName===void 0||r.styleName&&this._styleName.operator(this._styleName.operand,r.styleName))&&(this._listIndex===void 0||OF(r,this._listIndex,this._listIsOrdered))&&(this._breakType===void 0||this._breakType===r.breakType)};function wD(r){r=r||{},this._color=r.color}wD.prototype.matches=function(r){return r.type==="highlight"&&(this._color===void 0||r.color===this._color)};function uf(r){r=r||{},this._breakType=r.breakType}uf.prototype.matches=function(r){return r.type==="break"&&(this._breakType===void 0||r.breakType===this._breakType)};function OF(r,e,t){return r.numbering&&r.numbering.level==e&&r.numbering.isOrdered==t}function BF(r){return{operator:PF,operand:r}}function NF(r){return{operator:LF,operand:r}}function PF(r,e){return r.toUpperCase()===e.toUpperCase()}function LF(r,e){return e.toUpperCase().indexOf(r.toUpperCase())===0}});var ED=be(TD=>{var MF=Um(),WF=MF.RegexTokeniser;TD.tokenise=HF;var DD="'((?:\\\\.|[^'])*)";function HF(r){var e="(?:[a-zA-Z\\-_]|\\\\.)",t=new WF([{name:"identifier",regex:new RegExp("("+e+"(?:"+e+"|[0-9])*)")},{name:"dot",regex:/\./},{name:"colon",regex:/:/},{name:"gt",regex:/>/},{name:"whitespace",regex:/\s+/},{name:"arrow",regex:/=>/},{name:"equals",regex:/=/},{name:"startsWith",regex:/\^=/},{name:"open-paren",regex:/\(/},{name:"close-paren",regex:/\)/},{name:"open-square-bracket",regex:/\[/},{name:"close-square-bracket",regex:/\]/},{name:"string",regex:new RegExp(DD+"'")},{name:"unterminated-string",regex:new RegExp(DD)},{name:"integer",regex:/([0-9]+)/},{name:"choice",regex:/\|/},{name:"bang",regex:/(!)/}]);return t.tokenise(r)}});var FD=be(df=>{var VF=(At(),Ft(Et)),De=Um(),ur=_D(),hf=Pc(),zF=ED().tokenise,Im=Un();df.readHtmlPath=$F;df.readDocumentMatcher=XF;df.readStyle=jF;function jF(r){return Rm(tk,r)}function GF(){return De.rules.sequence(De.rules.sequence.capture(AD()),De.rules.tokenOfType("whitespace"),De.rules.tokenOfType("arrow"),De.rules.sequence.capture(De.rules.optional(De.rules.sequence(De.rules.tokenOfType("whitespace"),De.rules.sequence.capture(SD())).head())),De.rules.tokenOfType("end")).map(function(r,e){return{from:r,to:e.valueOrElse(hf.empty)}})}function XF(r){return Rm(AD(),r)}function AD(){var r=De.rules.sequence,e=function(E,T){return De.rules.then(De.rules.token("identifier",E),function(){return T})},t=e("p",ur.paragraph),n=e("r",ur.run),i=De.rules.firstOf("p or r or table",t,n),a=De.rules.sequence(De.rules.tokenOfType("dot"),De.rules.sequence.cut(),De.rules.sequence.capture(ff)).map(function(E){return{styleId:E}}),s=De.rules.firstOf("style name matcher",De.rules.then(De.rules.sequence(De.rules.tokenOfType("equals"),De.rules.sequence.cut(),De.rules.sequence.capture(Os)).head(),function(E){return{styleName:ur.equalTo(E)}}),De.rules.then(De.rules.sequence(De.rules.tokenOfType("startsWith"),De.rules.sequence.cut(),De.rules.sequence.capture(Os)).head(),function(E){return{styleName:ur.startsWith(E)}})),o=De.rules.sequence(De.rules.tokenOfType("open-square-bracket"),De.rules.sequence.cut(),De.rules.token("identifier","style-name"),De.rules.sequence.capture(s),De.rules.tokenOfType("close-square-bracket")).head(),c=De.rules.firstOf("list type",e("ordered-list",{isOrdered:!0}),e("unordered-list",{isOrdered:!1})),u=r(De.rules.tokenOfType("colon"),r.capture(c),r.cut(),De.rules.tokenOfType("open-paren"),r.capture(qF),De.rules.tokenOfType("close-paren")).map(function(E,T){return{list:{isOrdered:E.isOrdered,levelIndex:T-1}}});function h(E){var T=De.rules.firstOf.apply(De.rules.firstOf,["matcher suffix"].concat(E)),S=De.rules.zeroOrMore(T);return De.rules.then(S,function(C){var F={};return C.forEach(function(k){VF.extend(F,k)}),F})}var f=r(r.capture(i),r.capture(h([a,o,u]))).map(function(E,T){return E(T)}),d=r(De.rules.token("identifier","table"),r.capture(h([a,o]))).map(function(E){return ur.table(E)}),p=e("b",ur.bold),m=e("i",ur.italic),g=e("u",ur.underline),x=e("strike",ur.strikethrough),y=e("all-caps",ur.allCaps),b=e("small-caps",ur.smallCaps),v=r(De.rules.token("identifier","highlight"),De.rules.sequence.capture(De.rules.optional(De.rules.sequence(De.rules.tokenOfType("open-square-bracket"),De.rules.sequence.cut(),De.rules.token("identifier","color"),De.rules.tokenOfType("equals"),De.rules.sequence.capture(Os),De.rules.tokenOfType("close-square-bracket")).head()))).map(function(E){return ur.highlight({color:E.valueOrElse(void 0)})}),_=e("comment-reference",ur.commentReference),A=r(De.rules.token("identifier","br"),r.cut(),De.rules.tokenOfType("open-square-bracket"),De.rules.token("identifier","type"),De.rules.tokenOfType("equals"),r.capture(Os),De.rules.tokenOfType("close-square-bracket")).map(function(E){switch(E){case"line":return ur.lineBreak;case"page":return ur.pageBreak;case"column":return ur.columnBreak;default:}});return De.rules.firstOf("element type",f,d,p,m,g,x,y,b,v,_,A)}function $F(r){return Rm(SD(),r)}function SD(){var r=De.rules.sequence.capture,e=De.rules.tokenOfType("whitespace"),t=De.rules.then(De.rules.optional(De.rules.sequence(De.rules.tokenOfType("colon"),De.rules.token("identifier","fresh"))),function(s){return s.map(function(){return!0}).valueOrElse(!1)}),n=De.rules.then(De.rules.optional(De.rules.sequence(De.rules.tokenOfType("colon"),De.rules.token("identifier","separator"),De.rules.tokenOfType("open-paren"),r(Os),De.rules.tokenOfType("close-paren")).head()),function(s){return s.valueOrElse("")}),i=De.rules.oneOrMoreWithSeparator(ff,De.rules.tokenOfType("choice")),a=De.rules.sequence(r(i),r(De.rules.zeroOrMore(JF)),r(t),r(n)).map(function(s,o,c,u){var h={},f={};return o.forEach(function(d){d.append&&h[d.name]?h[d.name]+=" "+d.value:h[d.name]=d.value}),c&&(f.fresh=!0),u&&(f.separator=u),hf.element(s,h,f)});return De.rules.firstOf("html path",De.rules.then(De.rules.tokenOfType("bang"),function(){return hf.ignore}),De.rules.then(De.rules.zeroOrMoreWithSeparator(a,De.rules.sequence(e,De.rules.tokenOfType("gt"),e)),hf.elements))}var ff=De.rules.then(De.rules.tokenOfType("identifier"),CD),qF=De.rules.tokenOfType("integer"),Os=De.rules.then(De.rules.tokenOfType("string"),CD),YF={n:`
|
|
218
218
|
`,r:"\r",t:" "};function CD(r){return r.replace(/\\(.)/g,function(e,t){return YF[t]||t})}var KF=De.rules.sequence(De.rules.tokenOfType("open-square-bracket"),De.rules.sequence.cut(),De.rules.sequence.capture(ff),De.rules.tokenOfType("equals"),De.rules.sequence.capture(Os),De.rules.tokenOfType("close-square-bracket")).map(function(r,e){return{name:r,value:e,append:!1}}),ZF=De.rules.sequence(De.rules.tokenOfType("dot"),De.rules.sequence.cut(),De.rules.sequence.capture(ff)).map(function(r){return{name:"class",value:r,append:!0}}),JF=De.rules.firstOf("attribute or class",KF,ZF);function Rm(r,e){var t=zF(e),n=De.Parser(),i=n.parseTokens(r,t);return i.isSuccess()?Im.success(i.value()):new Im.Result(null,[Im.warning(QF(e,i))])}function QF(r,e){return"Did not understand this style mapping, so ignored it: "+r+`
|
|
219
219
|
`+e.errors().map(ek).join(`
|
|
220
220
|
`)}function ek(r){return"Error was at character number "+r.characterNumber()+": Expected "+r.expected+" but got "+r.actual}var tk=GF()});var ID=be(pf=>{pf.readOptions=ik;var UD=(At(),Ft(Et)),rk=pf._defaultStyleMap=["p.Heading1 => h1:fresh","p.Heading2 => h2:fresh","p.Heading3 => h3:fresh","p.Heading4 => h4:fresh","p.Heading5 => h5:fresh","p.Heading6 => h6:fresh","p[style-name='Heading 1'] => h1:fresh","p[style-name='Heading 2'] => h2:fresh","p[style-name='Heading 3'] => h3:fresh","p[style-name='Heading 4'] => h4:fresh","p[style-name='Heading 5'] => h5:fresh","p[style-name='Heading 6'] => h6:fresh","p[style-name='heading 1'] => h1:fresh","p[style-name='heading 2'] => h2:fresh","p[style-name='heading 3'] => h3:fresh","p[style-name='heading 4'] => h4:fresh","p[style-name='heading 5'] => h5:fresh","p[style-name='heading 6'] => h6:fresh","p.Heading => h1:fresh","p[style-name='Heading'] => h1:fresh","r[style-name='Strong'] => strong","p[style-name='footnote text'] => p:fresh","r[style-name='footnote reference'] =>","p[style-name='endnote text'] => p:fresh","r[style-name='endnote reference'] =>","p[style-name='annotation text'] => p:fresh","r[style-name='annotation reference'] =>","p[style-name='Footnote'] => p:fresh","r[style-name='Footnote anchor'] =>","p[style-name='Endnote'] => p:fresh","r[style-name='Endnote anchor'] =>","p:unordered-list(1) => ul > li:fresh","p:unordered-list(2) => ul|ol > li > ul > li:fresh","p:unordered-list(3) => ul|ol > li > ul|ol > li > ul > li:fresh","p:unordered-list(4) => ul|ol > li > ul|ol > li > ul|ol > li > ul > li:fresh","p:unordered-list(5) => ul|ol > li > ul|ol > li > ul|ol > li > ul|ol > li > ul > li:fresh","p:ordered-list(1) => ol > li:fresh","p:ordered-list(2) => ul|ol > li > ol > li:fresh","p:ordered-list(3) => ul|ol > li > ul|ol > li > ol > li:fresh","p:ordered-list(4) => ul|ol > li > ul|ol > li > ul|ol > li > ol > li:fresh","p:ordered-list(5) => ul|ol > li > ul|ol > li > ul|ol > li > ul|ol > li > ol > li:fresh","r[style-name='Hyperlink'] =>","p[style-name='Normal'] => p:fresh","p.Body => p:fresh","p[style-name='Body'] => p:fresh"],nk=pf._standardOptions={externalFileAccess:!1,transformDocument:ak,includeDefaultStyleMap:!0,includeEmbeddedStyleMap:!0};function ik(r){return r=r||{},UD.extend({},nk,r,{customStyleMap:kD(r.styleMap),readStyleMap:function(){var e=this.customStyleMap;return this.includeEmbeddedStyleMap&&(e=e.concat(kD(this.embeddedStyleMap))),this.includeDefaultStyleMap&&(e=e.concat(rk)),e}})}function kD(r){return r?UD.isString(r)?r.split(`
|
|
221
221
|
`).map(function(e){return e.trim()}).filter(function(e){return e!==""&&e.charAt(0)!=="#"}):r:[]}function ak(r){return r}});var BD=be(OD=>{var RD=ei(),sk=Ig();OD.openZip=ok;function ok(r){return r.arrayBuffer?RD.resolve(sk.openArrayBuffer(r.arrayBuffer)):RD.reject(new Error("Could not find file in options"))}});var PD=be(ND=>{var ck=Pc(),lk=Lc();ND.element=uk;function uk(r){return function(e){return lk.elementWithTag(ck.element(r),[e])}}});var MD=be(yn=>{var hk=(At(),Ft(Et)),LD=w_(),Om=T_(),fk=K_().DocumentConverter,dk=Q_().convertElementToRawText,pk=FD().readStyle,gk=ID().readOptions,gf=BD(),mk=Un().Result;yn.convertToHtml=xk;yn.convertToMarkdown=vk;yn.convert=Bm;yn.extractRawText=_k;yn.images=wm();yn.transforms=sm();yn.underline=PD();yn.embedStyleMap=Dk;yn.readEmbeddedStyleMap=yk;function xk(r,e){return Bm(r,e)}function vk(r,e){var t=Object.create(e||{});return t.outputFormat="markdown",Bm(r,t)}function Bm(r,e){return e=gk(e),gf.openZip(r).tap(function(t){return Om.readStyleMap(t).then(function(n){e.embeddedStyleMap=n})}).then(function(t){return LD.read(t,r,e).then(function(n){return n.map(e.transformDocument)}).then(function(n){return bk(n,e)})})}function yk(r){return gf.openZip(r).then(Om.readStyleMap)}function bk(r,e){var t=wk(e.readStyleMap()),n=hk.extend({},e,{styleMap:t.value}),i=new fk(n);return r.flatMapThen(function(a){return t.flatMapThen(function(s){return i.convertToHtml(a)})})}function wk(r){return mk.combine((r||[]).map(pk)).map(function(e){return e.filter(function(t){return!!t})})}function _k(r){return gf.openZip(r).then(LD.read).then(function(e){return e.map(dk)})}function Dk(r,e){return gf.openZip(r).tap(function(t){return Om.writeStyleMap(t,e)}).then(function(t){return t.toArrayBuffer()}).then(function(t){return{toArrayBuffer:function(){return t},toBuffer:function(){return Buffer.from(t)}}})}yn.styleMapping=function(){throw new Error(`Use a raw string instead of mammoth.styleMapping e.g. "p[style-name='Title'] => h1" instead of mammoth.styleMapping("p[style-name='Title'] => h1")`)}});var xx={},WA={34:((r,e,t)=>{var n=t(4901);r.exports=function(i){return typeof i=="object"?i!==null:n(i)}}),81:((r,e,t)=>{var n=t(9565),i=t(9306),a=t(8551),s=t(6823),o=t(851),c=TypeError;r.exports=function(u,h){var f=arguments.length<2?o(u):h;if(i(f))return a(n(f,u));throw new c(s(u)+" is not iterable")}}),116:((r,e,t)=>{var n=t(6518),i=t(9565),a=t(2652),s=t(9306),o=t(8551),c=t(1767),u=t(9539),h=t(4549),f=h("find",TypeError);n({target:"Iterator",proto:!0,real:!0,forced:f},{find:function(p){o(this);try{s(p)}catch(x){u(this,"throw",x)}if(f)return i(f,this,p);var m=c(this),g=0;return a(m,function(x,y){if(p(x,g++))return y(x)},{IS_RECORD:!0,INTERRUPTED:!0}).result}})}),283:((r,e,t)=>{var n=t(9504),i=t(9039),a=t(4901),s=t(9297),o=t(3724),c=t(350).CONFIGURABLE,u=t(3706),h=t(1181),f=h.enforce,d=h.get,p=String,m=Object.defineProperty,g=n("".slice),x=n("".replace),y=n([].join),b=o&&!i(function(){return m(function(){},"length",{value:8}).length!==8}),v=String(String).split("String"),_=r.exports=function(A,E,T){g(p(E),0,7)==="Symbol("&&(E="["+x(p(E),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),T&&T.getter&&(E="get "+E),T&&T.setter&&(E="set "+E),(!s(A,"name")||c&&A.name!==E)&&(o?m(A,"name",{value:E,configurable:!0}):A.name=E),b&&T&&s(T,"arity")&&A.length!==T.arity&&m(A,"length",{value:T.arity});try{T&&s(T,"constructor")&&T.constructor?o&&m(A,"prototype",{writable:!1}):A.prototype&&(A.prototype=void 0)}catch{}var S=f(A);return s(S,"source")||(S.source=y(v,typeof E=="string"?E:"")),A};Function.prototype.toString=_(function(){return a(this)&&d(this).source||u(this)},"toString")}),350:((r,e,t)=>{var n=t(3724),i=t(9297),a=Function.prototype,s=n&&Object.getOwnPropertyDescriptor,o=i(a,"name"),c=o&&(function(){}).name==="something",u=o&&(!n||n&&s(a,"name").configurable);r.exports={EXISTS:o,PROPER:c,CONFIGURABLE:u}}),397:((r,e,t)=>{var n=t(7751);r.exports=n("document","documentElement")}),421:(r=>{r.exports={}}),456:((r,e,t)=>{var n=t(6518),i=t(4576),a=t(9504),s=t(4154),o=t(5169),c=a(1.1.toString),u=i.Uint8Array,h=!u||!u.prototype.toHex||!(function(){try{var f=new u([255,255,255,255,255,255,255,255]);return f.toHex()==="ffffffffffffffff"}catch{return!1}})();u&&n({target:"Uint8Array",proto:!0,forced:h},{toHex:function(){s(this),o(this.buffer);for(var d="",p=0,m=this.length;p<m;p++){var g=c(this[p],16);d+=g.length===1?"0"+g:g}return d}})}),507:((r,e,t)=>{var n=t(9565);r.exports=function(i,a,s){for(var o=s?i:i.iterator,c=i.next,u,h;!(u=n(c,o)).done;)if(h=a(u.value),h!==void 0)return h}}),531:((r,e,t)=>{var n=t(6518),i=t(9565),a=t(9306),s=t(8551),o=t(1767),c=t(8646),u=t(9462),h=t(9539),f=t(6395),d=t(684),p=t(4549),m=!f&&!d("flatMap",function(){}),g=!f&&!m&&p("flatMap",TypeError),x=f||m||g,y=u(function(){for(var b=this.iterator,v=this.mapper,_,A;;){if(A=this.inner)try{if(_=s(i(A.next,A.iterator)),!_.done)return _.value;this.inner=null}catch(E){h(b,"throw",E)}if(_=s(i(this.next,b)),this.done=!!_.done)return;try{this.inner=c(v(_.value,this.counter++),!1)}catch(E){h(b,"throw",E)}}});n({target:"Iterator",proto:!0,real:!0,forced:x},{flatMap:function(v){s(this);try{a(v)}catch(_){h(this,"throw",_)}return g?i(g,this,v):new y(o(this),{mapper:v,inner:null})}})}),616:((r,e,t)=>{var n=t(9039);r.exports=!n(function(){var i=(function(){}).bind();return typeof i!="function"||i.hasOwnProperty("prototype")})}),655:((r,e,t)=>{var n=t(6955),i=String;r.exports=function(a){if(n(a)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return i(a)}}),679:((r,e,t)=>{var n=t(1625),i=TypeError;r.exports=function(a,s){if(n(s,a))return a;throw new i("Incorrect invocation")}}),684:(r=>{r.exports=function(e,t){var n=typeof Iterator=="function"&&Iterator.prototype[e];if(n)try{n.call({next:null},t).next()}catch{return!0}}}),741:(r=>{var e=Math.ceil,t=Math.floor;r.exports=Math.trunc||function(i){var a=+i;return(a>0?t:e)(a)}}),757:((r,e,t)=>{var n=t(7751),i=t(4901),a=t(1625),s=t(7040),o=Object;r.exports=s?function(c){return typeof c=="symbol"}:function(c){var u=n("Symbol");return i(u)&&a(u.prototype,o(c))}}),851:((r,e,t)=>{var n=t(6955),i=t(5966),a=t(4117),s=t(6269),o=t(8227),c=o("iterator");r.exports=function(u){if(!a(u))return i(u,c)||i(u,"@@iterator")||s[n(u)]}}),944:(r=>{var e=TypeError;r.exports=function(t){var n=t&&t.alphabet;if(n===void 0||n==="base64"||n==="base64url")return n||"base64";throw new e("Incorrect `alphabet` option")}}),1072:((r,e,t)=>{var n=t(1828),i=t(8727);r.exports=Object.keys||function(s){return n(s,i)}}),1103:(r=>{r.exports=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}}}),1108:((r,e,t)=>{var n=t(6955);r.exports=function(i){var a=n(i);return a==="BigInt64Array"||a==="BigUint64Array"}}),1148:((r,e,t)=>{var n=t(6518),i=t(9565),a=t(2652),s=t(9306),o=t(8551),c=t(1767),u=t(9539),h=t(4549),f=h("every",TypeError);n({target:"Iterator",proto:!0,real:!0,forced:f},{every:function(p){o(this);try{s(p)}catch(x){u(this,"throw",x)}if(f)return i(f,this,p);var m=c(this),g=0;return!a(m,function(x,y){if(!p(x,g++))return y()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})}),1181:((r,e,t)=>{var n=t(8622),i=t(4576),a=t(34),s=t(6699),o=t(9297),c=t(7629),u=t(6119),h=t(421),f="Object already initialized",d=i.TypeError,p=i.WeakMap,m,g,x,y=function(A){return x(A)?g(A):m(A,{})},b=function(A){return function(E){var T;if(!a(E)||(T=g(E)).type!==A)throw new d("Incompatible receiver, "+A+" required");return T}};if(n||c.state){var v=c.state||(c.state=new p);v.get=v.get,v.has=v.has,v.set=v.set,m=function(A,E){if(v.has(A))throw new d(f);return E.facade=A,v.set(A,E),E},g=function(A){return v.get(A)||{}},x=function(A){return v.has(A)}}else{var _=u("state");h[_]=!0,m=function(A,E){if(o(A,_))throw new d(f);return E.facade=A,s(A,_,E),E},g=function(A){return o(A,_)?A[_]:{}},x=function(A){return o(A,_)}}r.exports={set:m,get:g,has:x,enforce:y,getterFor:b}}),1291:((r,e,t)=>{var n=t(741);r.exports=function(i){var a=+i;return a!==a||a===0?0:n(a)}}),1385:((r,e,t)=>{var n=t(9539);r.exports=function(i,a,s){for(var o=i.length-1;o>=0;o--)if(i[o]!==void 0)try{s=n(i[o].iterator,a,s)}catch(c){a="throw",s=c}if(a==="throw")throw s;return s}}),1548:((r,e,t)=>{var n=t(4576),i=t(9039),a=t(9519),s=t(4215),o=n.structuredClone;r.exports=!!o&&!i(function(){if(s==="DENO"&&a>92||s==="NODE"&&a>94||s==="BROWSER"&&a>97)return!1;var c=new ArrayBuffer(8),u=o(c,{transfer:[c]});return c.byteLength!==0||u.byteLength!==8})}),1549:((r,e,t)=>{t(6632)}),1625:((r,e,t)=>{var n=t(9504);r.exports=n({}.isPrototypeOf)}),1689:((r,e,t)=>{var n=t(6518),i=t(4576),a=t(8745),s=t(7680),o=t(6043),c=t(9306),u=t(1103),h=i.Promise,f=!1,d=!h||!h.try||u(function(){h.try(function(p){f=p===8},8)}).error||!f;n({target:"Promise",stat:!0,forced:d},{try:function(p){var m=arguments.length>1?s(arguments,1):[],g=o.f(this),x=u(function(){return a(c(p),void 0,m)});return(x.error?g.reject:g.resolve)(x.value),g.promise}})}),1698:((r,e,t)=>{var n=t(6518),i=t(4204),a=t(9835),s=t(4916),o=!s("union")||!a("union");n({target:"Set",proto:!0,real:!0,forced:o},{union:i})}),1701:((r,e,t)=>{var n=t(6518),i=t(9565),a=t(9306),s=t(8551),o=t(1767),c=t(9462),u=t(6319),h=t(9539),f=t(684),d=t(4549),p=t(6395),m=!p&&!f("map",function(){}),g=!p&&!m&&d("map",TypeError),x=p||m||g,y=c(function(){var b=this.iterator,v=s(i(this.next,b)),_=this.done=!!v.done;if(!_)return u(b,this.mapper,[v.value,this.counter++],!0)});n({target:"Iterator",proto:!0,real:!0,forced:x},{map:function(v){s(this);try{a(v)}catch(_){h(this,"throw",_)}return g?i(g,this,v):new y(o(this),{mapper:v})}})}),1767:(r=>{r.exports=function(e){return{iterator:e,next:e.next,done:!1}}}),1828:((r,e,t)=>{var n=t(9504),i=t(9297),a=t(5397),s=t(9617).indexOf,o=t(421),c=n([].push);r.exports=function(u,h){var f=a(u),d=0,p=[],m;for(m in f)!i(o,m)&&i(f,m)&&c(p,m);for(;h.length>d;)i(f,m=h[d++])&&(~s(p,m)||c(p,m));return p}}),2106:((r,e,t)=>{var n=t(283),i=t(4913);r.exports=function(a,s,o){return o.get&&n(o.get,s,{getter:!0}),o.set&&n(o.set,s,{setter:!0}),i.f(a,s,o)}}),2140:((r,e,t)=>{var n=t(8227),i=n("toStringTag"),a={};a[i]="z",r.exports=String(a)==="[object z]"}),2195:((r,e,t)=>{var n=t(9504),i=n({}.toString),a=n("".slice);r.exports=function(s){return a(i(s),8,-1)}}),2211:((r,e,t)=>{var n=t(9039);r.exports=!n(function(){function i(){}return i.prototype.constructor=null,Object.getPrototypeOf(new i)!==i.prototype})}),2303:((r,e,t)=>{var n=t(4576),i=t(9504),a=n.Uint8Array,s=n.SyntaxError,o=n.parseInt,c=Math.min,u=/[^\da-f]/i,h=i(u.exec),f=i("".slice);r.exports=function(d,p){var m=d.length;if(m%2!==0)throw new s("String should be an even number of characters");for(var g=p?c(p.length,m/2):m/2,x=p||new a(g),y=0,b=0;b<g;){var v=f(d,y,y+=2);if(h(u,v))throw new s("String should only contain hex characters");x[b++]=o(v,16)}return{bytes:x,read:y}}}),2360:((r,e,t)=>{var n=t(8551),i=t(6801),a=t(8727),s=t(421),o=t(397),c=t(4055),u=t(6119),h=">",f="<",d="prototype",p="script",m=u("IE_PROTO"),g=function(){},x=function(A){return f+p+h+A+f+"/"+p+h},y=function(A){A.write(x("")),A.close();var E=A.parentWindow.Object;return A=null,E},b=function(){var A=c("iframe"),E="java"+p+":",T;return A.style.display="none",o.appendChild(A),A.src=String(E),T=A.contentWindow.document,T.open(),T.write(x("document.F=Object")),T.close(),T.F},v,_=function(){try{v=new ActiveXObject("htmlfile")}catch{}_=typeof document<"u"?document.domain&&v?y(v):b():y(v);for(var A=a.length;A--;)delete _[d][a[A]];return _()};s[m]=!0,r.exports=Object.create||function(E,T){var S;return E!==null?(g[d]=n(E),S=new g,g[d]=null,S[m]=E):S=_(),T===void 0?S:i.f(S,T)}}),2475:((r,e,t)=>{var n=t(6518),i=t(8527),a=t(4916),s=!a("isSupersetOf",function(o){return!o});n({target:"Set",proto:!0,real:!0,forced:s},{isSupersetOf:i})}),2489:((r,e,t)=>{var n=t(6518),i=t(9565),a=t(9306),s=t(8551),o=t(1767),c=t(9462),u=t(6319),h=t(6395),f=t(9539),d=t(684),p=t(4549),m=!h&&!d("filter",function(){}),g=!h&&!m&&p("filter",TypeError),x=h||m||g,y=c(function(){for(var b=this.iterator,v=this.predicate,_=this.next,A,E,T;;){if(A=s(i(_,b)),E=this.done=!!A.done,E)return;if(T=A.value,u(b,v,[T,this.counter++],!0))return T}});n({target:"Iterator",proto:!0,real:!0,forced:x},{filter:function(v){s(this);try{a(v)}catch(_){f(this,"throw",_)}return g?i(g,this,v):new y(o(this),{predicate:v})}})}),2529:(r=>{r.exports=function(e,t){return{value:e,done:t}}}),2603:((r,e,t)=>{var n=t(655);r.exports=function(i,a){return i===void 0?arguments.length<2?"":a:n(i)}}),2652:((r,e,t)=>{var n=t(6080),i=t(9565),a=t(8551),s=t(6823),o=t(4209),c=t(6198),u=t(1625),h=t(81),f=t(851),d=t(9539),p=TypeError,m=function(x,y){this.stopped=x,this.result=y},g=m.prototype;r.exports=function(x,y,b){var v=b&&b.that,_=!!(b&&b.AS_ENTRIES),A=!!(b&&b.IS_RECORD),E=!!(b&&b.IS_ITERATOR),T=!!(b&&b.INTERRUPTED),S=n(y,v),C,F,k,D,B,q,j,U=function(P){return C&&d(C,"normal"),new m(!0,P)},O=function(P){return _?(a(P),T?S(P[0],P[1],U):S(P[0],P[1])):T?S(P,U):S(P)};if(A)C=x.iterator;else if(E)C=x;else{if(F=f(x),!F)throw new p(s(x)+" is not iterable");if(o(F)){for(k=0,D=c(x);D>k;k++)if(B=O(x[k]),B&&u(g,B))return B;return new m(!1)}C=h(x,F)}for(q=A?x.next:C.next;!(j=i(q,C)).done;){try{B=O(j.value)}catch(P){d(C,"throw",P)}if(typeof B=="object"&&B&&u(g,B))return B}return new m(!1)}}),2777:((r,e,t)=>{var n=t(9565),i=t(34),a=t(757),s=t(5966),o=t(4270),c=t(8227),u=TypeError,h=c("toPrimitive");r.exports=function(f,d){if(!i(f)||a(f))return f;var p=s(f,h),m;if(p){if(d===void 0&&(d="default"),m=n(p,f,d),!i(m)||a(m))return m;throw new u("Can't convert object to primitive value")}return d===void 0&&(d="number"),o(f,d)}}),2787:((r,e,t)=>{var n=t(9297),i=t(4901),a=t(8981),s=t(6119),o=t(2211),c=s("IE_PROTO"),u=Object,h=u.prototype;r.exports=o?u.getPrototypeOf:function(f){var d=a(f);if(n(d,c))return d[c];var p=d.constructor;return i(p)&&d instanceof p?p.prototype:d instanceof u?h:null}}),2796:((r,e,t)=>{var n=t(9039),i=t(4901),a=/#|\.prototype\./,s=function(f,d){var p=c[o(f)];return p===h?!0:p===u?!1:i(d)?n(d):!!d},o=s.normalize=function(f){return String(f).replace(a,".").toLowerCase()},c=s.data={},u=s.NATIVE="N",h=s.POLYFILL="P";r.exports=s}),2804:(r=>{var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",t=e+"+/",n=e+"-_",i=function(a){for(var s={},o=0;o<64;o++)s[a.charAt(o)]=o;return s};r.exports={i2c:t,c2i:i(t),i2cUrl:n,c2iUrl:i(n)}}),2812:(r=>{var e=TypeError;r.exports=function(t,n){if(t<n)throw new e("Not enough arguments");return t}}),2839:((r,e,t)=>{var n=t(4576),i=n.navigator,a=i&&i.userAgent;r.exports=a?String(a):""}),2967:((r,e,t)=>{var n=t(6706),i=t(34),a=t(7750),s=t(3506);r.exports=Object.setPrototypeOf||("__proto__"in{}?(function(){var o=!1,c={},u;try{u=n(Object.prototype,"__proto__","set"),u(c,[]),o=c instanceof Array}catch{}return function(f,d){return a(f),s(d),i(f)&&(o?u(f,d):f.__proto__=d),f}})():void 0)}),3068:((r,e,t)=>{var n=t(6518),i=t(9504),a=t(2652),s=RangeError,o=TypeError,c=1/0,u=NaN,h=Math.abs,f=Math.pow,d=i([].push),p=f(2,1023),m=f(2,53)-1,g=Number.MAX_VALUE,x=f(2,971),y={},b={},v={},_={},A={},E=function(T,S){var C=T+S,F=S-(C-T);return{hi:C,lo:F}};n({target:"Math",stat:!0},{sumPrecise:function(S){var C=[],F=0,k=_;switch(a(S,function(ee){if(++F>=m)throw new s("Maximum allowed index exceeded");if(typeof ee!="number")throw new o("Value is not a number");k!==y&&(ee!==ee?k=y:ee===c?k=k===b?y:v:ee===-c?k=k===v?y:b:(ee!==0||1/ee===c)&&(k===_||k===A)&&(k=A,d(C,ee)))}),k){case y:return u;case b:return-c;case v:return c;case _:return-0}for(var D=[],B=0,q,j,U,O,P,R,N=0;N<C.length;N++){q=C[N];for(var z=0,I=0;I<D.length;I++){if(j=D[I],h(q)<h(j)&&(R=q,q=j,j=R),U=E(q,j),O=U.hi,P=U.lo,h(O)===c){var H=O===c?1:-1;B+=H,q=q-H*p-H*p,h(q)<h(j)&&(R=q,q=j,j=R),U=E(q,j),O=U.hi,P=U.lo}P!==0&&(D[z++]=P),q=O}D.length=z,q!==0&&d(D,q)}var Z=D.length-1;if(O=0,P=0,B!==0){var re=Z>=0?D[Z]:0;if(Z--,h(B)>1||B>0&&re>0||B<0&&re<0)return B>0?c:-c;if(U=E(B*p,re/2),O=U.hi,P=U.lo,P*=2,h(2*O)===c)return O>0?O===p&&P===-(x/2)&&Z>=0&&D[Z]<0?g:c:O===-p&&P===x/2&&Z>=0&&D[Z]>0?-g:-c;P!==0&&(D[++Z]=P,P=0),O*=2}for(;Z>=0&&(U=E(O,D[Z--]),O=U.hi,P=U.lo,P===0););return Z>=0&&(P<0&&D[Z]<0||P>0&&D[Z]>0)&&(j=P*2,q=O+j,j===q-O&&(O=q)),O}})}),3167:((r,e,t)=>{var n=t(4901),i=t(34),a=t(2967);r.exports=function(s,o,c){var u,h;return a&&n(u=o.constructor)&&u!==c&&i(h=u.prototype)&&h!==c.prototype&&a(s,h),s}}),3238:((r,e,t)=>{var n=t(4576),i=t(7811),a=t(7394),s=n.DataView;r.exports=function(o){if(!i||a(o)!==0)return!1;try{return new s(o),!1}catch{return!0}}}),3392:((r,e,t)=>{var n=t(9504),i=0,a=Math.random(),s=n(1.1.toString);r.exports=function(o){return"Symbol("+(o===void 0?"":o)+")_"+s(++i+a,36)}}),3440:((r,e,t)=>{var n=t(7080),i=t(4402),a=t(9286),s=t(5170),o=t(3789),c=t(8469),u=t(507),h=i.has,f=i.remove;r.exports=function(p){var m=n(this),g=o(p),x=a(m);return s(m)<=g.size?c(m,function(y){g.includes(y)&&f(x,y)}):u(g.getIterator(),function(y){h(x,y)&&f(x,y)}),x}}),3463:(r=>{var e=TypeError;r.exports=function(t){if(typeof t=="string")return t;throw new e("Argument is not a string")}}),3506:((r,e,t)=>{var n=t(3925),i=String,a=TypeError;r.exports=function(s){if(n(s))return s;throw new a("Can't set "+i(s)+" as a prototype")}}),3579:((r,e,t)=>{var n=t(6518),i=t(9565),a=t(2652),s=t(9306),o=t(8551),c=t(1767),u=t(9539),h=t(4549),f=h("some",TypeError);n({target:"Iterator",proto:!0,real:!0,forced:f},{some:function(p){o(this);try{s(p)}catch(x){u(this,"throw",x)}if(f)return i(f,this,p);var m=c(this),g=0;return a(m,function(x,y){if(p(x,g++))return y()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})}),3650:((r,e,t)=>{var n=t(7080),i=t(4402),a=t(9286),s=t(3789),o=t(507),c=i.add,u=i.has,h=i.remove;r.exports=function(d){var p=n(this),m=s(d).getIterator(),g=a(p);return o(m,function(x){u(p,x)?h(g,x):c(g,x)}),g}}),3706:((r,e,t)=>{var n=t(9504),i=t(4901),a=t(7629),s=n(Function.toString);i(a.inspectSource)||(a.inspectSource=function(o){return s(o)}),r.exports=a.inspectSource}),3717:((r,e)=>{e.f=Object.getOwnPropertySymbols}),3724:((r,e,t)=>{var n=t(9039);r.exports=!n(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})}),3789:((r,e,t)=>{var n=t(9306),i=t(8551),a=t(9565),s=t(1291),o=t(1767),c="Invalid size",u=RangeError,h=TypeError,f=Math.max,d=function(p,m){this.set=p,this.size=f(m,0),this.has=n(p.has),this.keys=n(p.keys)};d.prototype={getIterator:function(){return o(i(a(this.keys,this.set)))},includes:function(p){return a(this.has,this.set,p)}},r.exports=function(p){i(p);var m=+p.size;if(m!==m)throw new h(c);var g=s(m);if(g<0)throw new u(c);return new d(p,g)}}),3838:((r,e,t)=>{var n=t(7080),i=t(5170),a=t(8469),s=t(3789);r.exports=function(c){var u=n(this),h=s(c);return i(u)>h.size?!1:a(u,function(f){if(!h.includes(f))return!1},!0)!==!1}}),3853:((r,e,t)=>{var n=t(6518),i=t(4449),a=t(4916),s=!a("isDisjointFrom",function(o){return!o});n({target:"Set",proto:!0,real:!0,forced:s},{isDisjointFrom:i})}),3925:((r,e,t)=>{var n=t(34);r.exports=function(i){return n(i)||i===null}}),3972:((r,e,t)=>{var n=t(34),i=String,a=TypeError;r.exports=function(s){if(s===void 0||n(s))return s;throw new a(i(s)+" is not an object or undefined")}}),4055:((r,e,t)=>{var n=t(4576),i=t(34),a=n.document,s=i(a)&&i(a.createElement);r.exports=function(o){return s?a.createElement(o):{}}}),4114:((r,e,t)=>{var n=t(6518),i=t(8981),a=t(6198),s=t(4527),o=t(6837),c=t(9039),u=c(function(){return[].push.call({length:4294967296},1)!==4294967297}),h=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(d){return d instanceof TypeError}},f=u||!h();n({target:"Array",proto:!0,arity:1,forced:f},{push:function(p){var m=i(this),g=a(m),x=arguments.length;o(g+x);for(var y=0;y<x;y++)m[g]=arguments[y],g++;return s(m,g),g}})}),4117:(r=>{r.exports=function(e){return e==null}}),4149:(r=>{var e=RangeError;r.exports=function(t){if(t===t)return t;throw new e("NaN is not allowed")}}),4154:((r,e,t)=>{var n=t(6955),i=TypeError;r.exports=function(a){if(n(a)==="Uint8Array")return a;throw new i("Argument is not an Uint8Array")}}),4204:((r,e,t)=>{var n=t(7080),i=t(4402).add,a=t(9286),s=t(3789),o=t(507);r.exports=function(u){var h=n(this),f=s(u).getIterator(),d=a(h);return o(f,function(p){i(d,p)}),d}}),4209:((r,e,t)=>{var n=t(8227),i=t(6269),a=n("iterator"),s=Array.prototype;r.exports=function(o){return o!==void 0&&(i.Array===o||s[a]===o)}}),4215:((r,e,t)=>{var n=t(4576),i=t(2839),a=t(2195),s=function(o){return i.slice(0,o.length)===o};r.exports=(function(){return s("Bun/")?"BUN":s("Cloudflare-Workers")?"CLOUDFLARE":s("Deno/")?"DENO":s("Node.js/")?"NODE":n.Bun&&typeof Bun.version=="string"?"BUN":n.Deno&&typeof Deno.version=="object"?"DENO":a(n.process)==="process"?"NODE":n.window&&n.document?"BROWSER":"REST"})()}),4226:((r,e,t)=>{var n=t(6518),i=t(4576),a=t(3463),s=t(4154),o=t(5169),c=t(2303);i.Uint8Array&&n({target:"Uint8Array",proto:!0},{setFromHex:function(h){s(this),a(h),o(this.buffer);var f=c(h,this).read;return{read:f,written:f/2}}})}),4235:((r,e,t)=>{t(3068)}),4270:((r,e,t)=>{var n=t(9565),i=t(4901),a=t(34),s=TypeError;r.exports=function(o,c){var u,h;if(c==="string"&&i(u=o.toString)&&!a(h=n(u,o))||i(u=o.valueOf)&&!a(h=n(u,o))||c!=="string"&&i(u=o.toString)&&!a(h=n(u,o)))return h;throw new s("Can't convert object to primitive value")}}),4376:((r,e,t)=>{var n=t(2195);r.exports=Array.isArray||function(a){return n(a)==="Array"}}),4402:((r,e,t)=>{var n=t(9504),i=Set.prototype;r.exports={Set,add:n(i.add),has:n(i.has),remove:n(i.delete),proto:i}}),4449:((r,e,t)=>{var n=t(7080),i=t(4402).has,a=t(5170),s=t(3789),o=t(8469),c=t(507),u=t(9539);r.exports=function(f){var d=n(this),p=s(f);if(a(d)<=p.size)return o(d,function(g){if(p.includes(g))return!1},!0)!==!1;var m=p.getIterator();return c(m,function(g){if(i(d,g))return u(m,"normal",!1)})!==!1}}),4483:((r,e,t)=>{var n=t(4576),i=t(9429),a=t(1548),s=n.structuredClone,o=n.ArrayBuffer,c=n.MessageChannel,u=!1,h,f,d,p;if(a)u=function(m){s(m,{transfer:[m]})};else if(o)try{c||(h=i("worker_threads"),h&&(c=h.MessageChannel)),c&&(f=new c,d=new o(2),p=function(m){f.port1.postMessage(null,[m])},d.byteLength===2&&(p(d),d.byteLength===0&&(u=p)))}catch{}r.exports=u}),4495:((r,e,t)=>{var n=t(9519),i=t(9039),a=t(4576),s=a.String;r.exports=!!Object.getOwnPropertySymbols&&!i(function(){var o=Symbol("symbol detection");return!s(o)||!(Object(o)instanceof Symbol)||!Symbol.sham&&n&&n<41})}),4527:((r,e,t)=>{var n=t(3724),i=t(4376),a=TypeError,s=Object.getOwnPropertyDescriptor,o=n&&!(function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(c){return c instanceof TypeError}})();r.exports=o?function(c,u){if(i(c)&&!s(c,"length").writable)throw new a("Cannot set read only .length");return c.length=u}:function(c,u){return c.length=u}}),4549:((r,e,t)=>{var n=t(4576);r.exports=function(i,a){var s=n.Iterator,o=s&&s.prototype,c=o&&o[i],u=!1;if(c)try{c.call({next:function(){return{done:!0}},return:function(){u=!0}},-1)}catch(h){h instanceof a||(u=!1)}if(!u)return c}}),4576:(function(r){var e=function(t){return t&&t.Math===Math&&t};r.exports=e(typeof globalThis=="object"&&globalThis)||e(typeof window=="object"&&window)||e(typeof self=="object"&&self)||e(typeof global=="object"&&global)||e(typeof this=="object"&&this)||(function(){return this})()||Function("return this")()}),4603:((r,e,t)=>{var n=t(6840),i=t(9504),a=t(655),s=t(2812),o=URLSearchParams,c=o.prototype,u=i(c.append),h=i(c.delete),f=i(c.forEach),d=i([].push),p=new o("a=1&a=2&b=3");p.delete("a",1),p.delete("b",void 0),p+""!="a=2"&&n(c,"delete",function(m){var g=arguments.length,x=g<2?void 0:arguments[1];if(g&&x===void 0)return h(this,m);var y=[];f(this,function(C,F){d(y,{key:F,value:C})}),s(g,1);for(var b=a(m),v=a(x),_=0,A=0,E=!1,T=y.length,S;_<T;)S=y[_++],E||S.key===b?(E=!0,h(this,S.key)):A++;for(;A<T;)S=y[A++],S.key===b&&S.value===v||u(this,S.key,S.value)},{enumerable:!0,unsafe:!0})}),4628:((r,e,t)=>{var n=t(6518),i=t(6043);n({target:"Promise",stat:!0},{withResolvers:function(){var s=i.f(this);return{promise:s.promise,resolve:s.resolve,reject:s.reject}}})}),4644:((r,e,t)=>{var n=t(7811),i=t(3724),a=t(4576),s=t(4901),o=t(34),c=t(9297),u=t(6955),h=t(6823),f=t(6699),d=t(6840),p=t(2106),m=t(1625),g=t(2787),x=t(2967),y=t(8227),b=t(3392),v=t(1181),_=v.enforce,A=v.get,E=a.Int8Array,T=E&&E.prototype,S=a.Uint8ClampedArray,C=S&&S.prototype,F=E&&g(E),k=T&&g(T),D=Object.prototype,B=a.TypeError,q=y("toStringTag"),j=b("TYPED_ARRAY_TAG"),U="TypedArrayConstructor",O=n&&!!x&&u(a.opera)!=="Opera",P=!1,R,N,z,I={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},H={BigInt64Array:8,BigUint64Array:8},Z=function(w){if(!o(w))return!1;var Q=u(w);return Q==="DataView"||c(I,Q)||c(H,Q)},re=function(_e){var w=g(_e);if(o(w)){var Q=A(w);return Q&&c(Q,U)?Q[U]:re(w)}},ee=function(_e){if(!o(_e))return!1;var w=u(_e);return c(I,w)||c(H,w)},ie=function(_e){if(ee(_e))return _e;throw new B("Target is not a typed array")},se=function(_e){if(s(_e)&&(!x||m(F,_e)))return _e;throw new B(h(_e)+" is not a typed array constructor")},de=function(_e,w,Q,ne){if(i){if(Q)for(var W in I){var L=a[W];if(L&&c(L.prototype,_e))try{delete L.prototype[_e]}catch{try{L.prototype[_e]=w}catch{}}}(!k[_e]||Q)&&d(k,_e,Q?w:O&&T[_e]||w,ne)}},ge=function(_e,w,Q){var ne,W;if(i){if(x){if(Q){for(ne in I)if(W=a[ne],W&&c(W,_e))try{delete W[_e]}catch{}}if(!F[_e]||Q)try{return d(F,_e,Q?w:O&&F[_e]||w)}catch{}else return}for(ne in I)W=a[ne],W&&(!W[_e]||Q)&&d(W,_e,w)}};for(R in I)N=a[R],z=N&&N.prototype,z?_(z)[U]=N:O=!1;for(R in H)N=a[R],z=N&&N.prototype,z&&(_(z)[U]=N);if((!O||!s(F)||F===Function.prototype)&&(F=function(){throw new B("Incorrect invocation")},O))for(R in I)a[R]&&x(a[R],F);if((!O||!k||k===D)&&(k=F.prototype,O))for(R in I)a[R]&&x(a[R].prototype,k);if(O&&g(C)!==k&&x(C,k),i&&!c(k,q)){P=!0,p(k,q,{configurable:!0,get:function(){return o(this)?this[j]:void 0}});for(R in I)a[R]&&f(a[R],j,R)}r.exports={NATIVE_ARRAY_BUFFER_VIEWS:O,TYPED_ARRAY_TAG:P&&j,aTypedArray:ie,aTypedArrayConstructor:se,exportTypedArrayMethod:de,exportTypedArrayStaticMethod:ge,getTypedArrayConstructor:re,isView:Z,isTypedArray:ee,TypedArray:F,TypedArrayPrototype:k}}),4659:((r,e,t)=>{var n=t(3724),i=t(4913),a=t(6980);r.exports=function(s,o,c){n?i.f(s,o,a(0,c)):s[o]=c}}),4901:(r=>{var e=typeof document=="object"&&document.all;r.exports=typeof e>"u"&&e!==void 0?function(t){return typeof t=="function"||t===e}:function(t){return typeof t=="function"}}),4913:((r,e,t)=>{var n=t(3724),i=t(5917),a=t(8686),s=t(8551),o=t(6969),c=TypeError,u=Object.defineProperty,h=Object.getOwnPropertyDescriptor,f="enumerable",d="configurable",p="writable";e.f=n?a?function(g,x,y){if(s(g),x=o(x),s(y),typeof g=="function"&&x==="prototype"&&"value"in y&&p in y&&!y[p]){var b=h(g,x);b&&b[p]&&(g[x]=y.value,y={configurable:d in y?y[d]:b[d],enumerable:f in y?y[f]:b[f],writable:!1})}return u(g,x,y)}:u:function(g,x,y){if(s(g),x=o(x),s(y),i)try{return u(g,x,y)}catch{}if("get"in y||"set"in y)throw new c("Accessors not supported");return"value"in y&&(g[x]=y.value),g}}),4916:((r,e,t)=>{var n=t(7751),i=function(s){return{size:s,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},a=function(s){return{size:s,has:function(){return!0},keys:function(){throw new Error("e")}}};r.exports=function(s,o){var c=n("Set");try{new c()[s](i(0));try{return new c()[s](i(-1)),!1}catch{if(!o)return!0;try{return new c()[s](a(-1/0)),!1}catch{var u=new c;return u.add(1),u.add(2),o(u[s](a(1/0)))}}}catch{return!1}}}),4972:((r,e,t)=>{var n=t(6518),i=t(9565),a=t(8551),s=t(1767),o=t(4149),c=t(9590),u=t(9462),h=t(9539),f=t(4549),d=t(6395),p=!d&&f("take",RangeError),m=u(function(){var g=this.iterator;if(!this.remaining--)return this.done=!0,h(g,"normal",void 0);var x=a(i(this.next,g)),y=this.done=!!x.done;if(!y)return x.value});n({target:"Iterator",proto:!0,real:!0,forced:d||p},{take:function(x){a(this);var y;try{y=c(o(+x))}catch(b){h(this,"throw",b)}return p?i(p,this,y):new m(s(this),{remaining:y})}})}),4979:((r,e,t)=>{var n=t(6518),i=t(4576),a=t(7751),s=t(6980),o=t(4913).f,c=t(9297),u=t(679),h=t(3167),f=t(2603),d=t(5002),p=t(8574),m=t(3724),g=t(6395),x="DOMException",y=a("Error"),b=a(x),v=function(){u(this,_);var U=arguments.length,O=f(U<1?void 0:arguments[0]),P=f(U<2?void 0:arguments[1],"Error"),R=new b(O,P),N=new y(O);return N.name=x,o(R,"stack",s(1,p(N.stack,1))),h(R,this,v),R},_=v.prototype=b.prototype,A="stack"in new y(x),E="stack"in new b(1,2),T=b&&m&&Object.getOwnPropertyDescriptor(i,x),S=!!T&&!(T.writable&&T.configurable),C=A&&!S&&!E;n({global:!0,constructor:!0,forced:g||C},{DOMException:C?v:b});var F=a(x),k=F.prototype;if(k.constructor!==F){g||o(k,"constructor",s(1,F));for(var D in d)if(c(d,D)){var B=d[D],q=B.s;c(F,q)||o(F,q,s(6,B.c))}}}),5002:(r=>{r.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}}),5024:((r,e,t)=>{var n=t(6518),i=t(3650),a=t(9835),s=t(4916),o=!s("symmetricDifference")||!a("symmetricDifference");n({target:"Set",proto:!0,real:!0,forced:o},{symmetricDifference:i})}),5031:((r,e,t)=>{var n=t(7751),i=t(9504),a=t(8480),s=t(3717),o=t(8551),c=i([].concat);r.exports=n("Reflect","ownKeys")||function(h){var f=a.f(o(h)),d=s.f;return d?c(f,d(h)):f}}),5169:((r,e,t)=>{var n=t(3238),i=TypeError;r.exports=function(a){if(n(a))throw new i("ArrayBuffer is detached");return a}}),5170:((r,e,t)=>{var n=t(6706),i=t(4402);r.exports=n(i.proto,"size","get")||function(a){return a.size}}),5213:((r,e,t)=>{var n=t(6518),i=t(4576),a=t(5370),s=t(9143),o=i.Uint8Array,c=!o||!o.fromBase64||!(function(){try{o.fromBase64("a");return}catch{}try{o.fromBase64("",null)}catch{return!0}})();o&&n({target:"Uint8Array",stat:!0,forced:c},{fromBase64:function(h){var f=s(h,arguments.length>1?arguments[1]:void 0,null,9007199254740991);return a(o,f.bytes)}})}),5370:((r,e,t)=>{var n=t(6198);r.exports=function(i,a,s){for(var o=0,c=arguments.length>2?s:n(a),u=new i(c);c>o;)u[o]=a[o++];return u}}),5397:((r,e,t)=>{var n=t(7055),i=t(7750);r.exports=function(a){return n(i(a))}}),5610:((r,e,t)=>{var n=t(1291),i=Math.max,a=Math.min;r.exports=function(s,o){var c=n(s);return c<0?i(c+o,0):a(c,o)}}),5623:((r,e,t)=>{t(456)}),5636:((r,e,t)=>{var n=t(4576),i=t(9504),a=t(6706),s=t(7696),o=t(5169),c=t(7394),u=t(4483),h=t(1548),f=n.structuredClone,d=n.ArrayBuffer,p=n.DataView,m=Math.min,g=d.prototype,x=p.prototype,y=i(g.slice),b=a(g,"resizable","get"),v=a(g,"maxByteLength","get"),_=i(x.getInt8),A=i(x.setInt8);r.exports=(h||u)&&function(E,T,S){var C=c(E),F=T===void 0?C:s(T),k=!b||!b(E),D;if(o(E),h&&(E=f(E,{transfer:[E]}),C===F&&(S||k)))return E;if(C>=F&&(!S||k))D=y(E,0,F);else{var B=S&&!k&&v?{maxByteLength:v(E)}:void 0;D=new d(F,B);for(var q=new p(E),j=new p(D),U=m(F,C),O=0;O<U;O++)A(j,O,_(q,O))}return h||u(E),D}}),5745:((r,e,t)=>{var n=t(7629);r.exports=function(i,a){return n[i]||(n[i]=a||{})}}),5781:((r,e,t)=>{var n=t(6518),i=t(7751),a=t(2812),s=t(655),o=t(7416),c=i("URL");n({target:"URL",stat:!0,forced:!o},{parse:function(h){var f=a(arguments.length,1),d=s(h),p=f<2||arguments[1]===void 0?void 0:s(arguments[1]);try{return new c(d,p)}catch{return null}}})}),5854:((r,e,t)=>{var n=t(2777),i=TypeError;r.exports=function(a){var s=n(a,"number");if(typeof s=="number")throw new i("Can't convert number to bigint");return BigInt(s)}}),5876:((r,e,t)=>{var n=t(6518),i=t(3838),a=t(4916),s=!a("isSubsetOf",function(o){return o});n({target:"Set",proto:!0,real:!0,forced:s},{isSubsetOf:i})}),5917:((r,e,t)=>{var n=t(3724),i=t(9039),a=t(4055);r.exports=!n&&!i(function(){return Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a!==7})}),5966:((r,e,t)=>{var n=t(9306),i=t(4117);r.exports=function(a,s){var o=a[s];return i(o)?void 0:n(o)}}),6043:((r,e,t)=>{var n=t(9306),i=TypeError,a=function(s){var o,c;this.promise=new s(function(u,h){if(o!==void 0||c!==void 0)throw new i("Bad Promise constructor");o=u,c=h}),this.resolve=n(o),this.reject=n(c)};r.exports.f=function(s){return new a(s)}}),6080:((r,e,t)=>{var n=t(7476),i=t(9306),a=t(616),s=n(n.bind);r.exports=function(o,c){return i(o),c===void 0?o:a?s(o,c):function(){return o.apply(c,arguments)}}}),6119:((r,e,t)=>{var n=t(5745),i=t(3392),a=n("keys");r.exports=function(s){return a[s]||(a[s]=i(s))}}),6193:((r,e,t)=>{var n=t(4215);r.exports=n==="NODE"}),6198:((r,e,t)=>{var n=t(8014);r.exports=function(i){return n(i.length)}}),6269:(r=>{r.exports={}}),6279:((r,e,t)=>{var n=t(6840);r.exports=function(i,a,s){for(var o in a)n(i,o,a[o],s);return i}}),6319:((r,e,t)=>{var n=t(8551),i=t(9539);r.exports=function(a,s,o,c){try{return c?s(n(o)[0],o[1]):s(o)}catch(u){i(a,"throw",u)}}}),6395:(r=>{r.exports=!1}),6518:((r,e,t)=>{var n=t(4576),i=t(7347).f,a=t(6699),s=t(6840),o=t(9433),c=t(7740),u=t(2796);r.exports=function(h,f){var d=h.target,p=h.global,m=h.stat,g,x,y,b,v,_;if(p?x=n:m?x=n[d]||o(d,{}):x=n[d]&&n[d].prototype,x)for(y in f){if(v=f[y],h.dontCallGetSet?(_=i(x,y),b=_&&_.value):b=x[y],g=u(p?y:d+(m?".":"#")+y,h.forced),!g&&b!==void 0){if(typeof v==typeof b)continue;c(v,b)}(h.sham||b&&b.sham)&&a(v,"sham",!0),s(x,y,v,h)}}}),6573:((r,e,t)=>{var n=t(3724),i=t(2106),a=t(3238),s=ArrayBuffer.prototype;n&&!("detached"in s)&&i(s,"detached",{configurable:!0,get:function(){return a(this)}})}),6632:((r,e,t)=>{var n=t(6518),i=t(4576),a=t(9143),s=t(4154),o=i.Uint8Array,c=!o||!o.prototype.setFromBase64||!(function(){var u=new o([255,255,255,255,255]);try{u.setFromBase64("",null);return}catch{}try{u.setFromBase64("a");return}catch{}try{u.setFromBase64("MjYyZg===")}catch{return u[0]===50&&u[1]===54&&u[2]===50&&u[3]===255&&u[4]===255}})();o&&n({target:"Uint8Array",proto:!0,forced:c},{setFromBase64:function(h){s(this);var f=a(h,arguments.length>1?arguments[1]:void 0,this,this.length);return{read:f.read,written:f.written}}})}),6699:((r,e,t)=>{var n=t(3724),i=t(4913),a=t(6980);r.exports=n?function(s,o,c){return i.f(s,o,a(1,c))}:function(s,o,c){return s[o]=c,s}}),6706:((r,e,t)=>{var n=t(9504),i=t(9306);r.exports=function(a,s,o){try{return n(i(Object.getOwnPropertyDescriptor(a,s)[o]))}catch{}}}),6801:((r,e,t)=>{var n=t(3724),i=t(8686),a=t(4913),s=t(8551),o=t(5397),c=t(1072);e.f=n&&!i?Object.defineProperties:function(h,f){s(h);for(var d=o(f),p=c(f),m=p.length,g=0,x;m>g;)a.f(h,x=p[g++],d[x]);return h}}),6823:(r=>{var e=String;r.exports=function(t){try{return e(t)}catch{return"Object"}}}),6837:(r=>{var e=TypeError,t=9007199254740991;r.exports=function(n){if(n>t)throw e("Maximum allowed index exceeded");return n}}),6840:((r,e,t)=>{var n=t(4901),i=t(4913),a=t(283),s=t(9433);r.exports=function(o,c,u,h){h||(h={});var f=h.enumerable,d=h.name!==void 0?h.name:c;if(n(u)&&a(u,d,h),h.global)f?o[c]=u:s(c,u);else{try{h.unsafe?o[c]&&(f=!0):delete o[c]}catch{}f?o[c]=u:i.f(o,c,{value:u,enumerable:!1,configurable:!h.nonConfigurable,writable:!h.nonWritable})}return o}}),6955:((r,e,t)=>{var n=t(2140),i=t(4901),a=t(2195),s=t(8227),o=s("toStringTag"),c=Object,u=a((function(){return arguments})())==="Arguments",h=function(f,d){try{return f[d]}catch{}};r.exports=n?a:function(f){var d,p,m;return f===void 0?"Undefined":f===null?"Null":typeof(p=h(d=c(f),o))=="string"?p:u?a(d):(m=a(d))==="Object"&&i(d.callee)?"Arguments":m}}),6969:((r,e,t)=>{var n=t(2777),i=t(757);r.exports=function(a){var s=n(a,"string");return i(s)?s:s+""}}),6980:(r=>{r.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}}),7040:((r,e,t)=>{var n=t(4495);r.exports=n&&!Symbol.sham&&typeof Symbol.iterator=="symbol"}),7055:((r,e,t)=>{var n=t(9504),i=t(9039),a=t(2195),s=Object,o=n("".split);r.exports=i(function(){return!s("z").propertyIsEnumerable(0)})?function(c){return a(c)==="String"?o(c,""):s(c)}:s}),7080:((r,e,t)=>{var n=t(4402).has;r.exports=function(i){return n(i),i}}),7347:((r,e,t)=>{var n=t(3724),i=t(9565),a=t(8773),s=t(6980),o=t(5397),c=t(6969),u=t(9297),h=t(5917),f=Object.getOwnPropertyDescriptor;e.f=n?f:function(p,m){if(p=o(p),m=c(m),h)try{return f(p,m)}catch{}if(u(p,m))return s(!i(a.f,p,m),p[m])}}),7394:((r,e,t)=>{var n=t(4576),i=t(6706),a=t(2195),s=n.ArrayBuffer,o=n.TypeError;r.exports=s&&i(s.prototype,"byteLength","get")||function(c){if(a(c)!=="ArrayBuffer")throw new o("ArrayBuffer expected");return c.byteLength}}),7416:((r,e,t)=>{var n=t(9039),i=t(8227),a=t(3724),s=t(6395),o=i("iterator");r.exports=!n(function(){var c=new URL("b?a=1&b=2&c=3","https://a"),u=c.searchParams,h=new URLSearchParams("a=1&a=2&b=3"),f="";return c.pathname="c%20d",u.forEach(function(d,p){u.delete("b"),f+=p+d}),h.delete("a",2),h.delete("b",void 0),s&&(!c.toJSON||!h.has("a",1)||h.has("a",2)||!h.has("a",void 0)||h.has("b"))||!u.size&&(s||!a)||!u.sort||c.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://\u0442\u0435\u0441\u0442").host!=="xn--e1aybc"||new URL("https://a#\u0431").hash!=="#%D0%B1"||f!=="a1c3"||new URL("https://x",void 0).host!=="x"})}),7476:((r,e,t)=>{var n=t(2195),i=t(9504);r.exports=function(a){if(n(a)==="Function")return i(a)}}),7566:((r,e,t)=>{var n=t(6840),i=t(9504),a=t(655),s=t(2812),o=URLSearchParams,c=o.prototype,u=i(c.getAll),h=i(c.has),f=new o("a=1");(f.has("a",2)||!f.has("a",void 0))&&n(c,"has",function(p){var m=arguments.length,g=m<2?void 0:arguments[1];if(m&&g===void 0)return h(this,p);var x=u(this,p);s(m,1);for(var y=a(g),b=0;b<x.length;)if(x[b++]===y)return!0;return!1},{enumerable:!0,unsafe:!0})}),7588:((r,e,t)=>{var n=t(6518),i=t(9565),a=t(2652),s=t(9306),o=t(8551),c=t(1767),u=t(9539),h=t(4549),f=h("forEach",TypeError);n({target:"Iterator",proto:!0,real:!0,forced:f},{forEach:function(p){o(this);try{s(p)}catch(x){u(this,"throw",x)}if(f)return i(f,this,p);var m=c(this),g=0;a(m,function(x){p(x,g++)},{IS_RECORD:!0})}})}),7629:((r,e,t)=>{var n=t(6395),i=t(4576),a=t(9433),s="__core-js_shared__",o=r.exports=i[s]||a(s,{});(o.versions||(o.versions=[])).push({version:"3.45.1",mode:n?"pure":"global",copyright:"\xA9 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.45.1/LICENSE",source:"https://github.com/zloirock/core-js"})}),7642:((r,e,t)=>{var n=t(6518),i=t(3440),a=t(9039),s=t(4916),o=!s("difference",function(u){return u.size===0}),c=o||a(function(){var u={size:1,has:function(){return!0},keys:function(){var f=0;return{next:function(){var d=f++>1;return h.has(1)&&h.clear(),{done:d,value:2}}}}},h=new Set([1,2,3,4]);return h.difference(u).size!==3});n({target:"Set",proto:!0,real:!0,forced:c},{difference:i})}),7657:((r,e,t)=>{var n=t(9039),i=t(4901),a=t(34),s=t(2360),o=t(2787),c=t(6840),u=t(8227),h=t(6395),f=u("iterator"),d=!1,p,m,g;[].keys&&(g=[].keys(),"next"in g?(m=o(o(g)),m!==Object.prototype&&(p=m)):d=!0);var x=!a(p)||n(function(){var y={};return p[f].call(y)!==y});x?p={}:h&&(p=s(p)),i(p[f])||c(p,f,function(){return this}),r.exports={IteratorPrototype:p,BUGGY_SAFARI_ITERATORS:d}}),7680:((r,e,t)=>{var n=t(9504);r.exports=n([].slice)}),7696:((r,e,t)=>{var n=t(1291),i=t(8014),a=RangeError;r.exports=function(s){if(s===void 0)return 0;var o=n(s),c=i(o);if(o!==c)throw new a("Wrong length or index");return c}}),7740:((r,e,t)=>{var n=t(9297),i=t(5031),a=t(7347),s=t(4913);r.exports=function(o,c,u){for(var h=i(c),f=s.f,d=a.f,p=0;p<h.length;p++){var m=h[p];!n(o,m)&&!(u&&n(u,m))&&f(o,m,d(c,m))}}}),7750:((r,e,t)=>{var n=t(4117),i=TypeError;r.exports=function(a){if(n(a))throw new i("Can't call method on "+a);return a}}),7751:((r,e,t)=>{var n=t(4576),i=t(4901),a=function(s){return i(s)?s:void 0};r.exports=function(s,o){return arguments.length<2?a(n[s]):n[s]&&n[s][o]}}),7811:(r=>{r.exports=typeof ArrayBuffer<"u"&&typeof DataView<"u"}),7936:((r,e,t)=>{var n=t(6518),i=t(5636);i&&n({target:"ArrayBuffer",proto:!0},{transferToFixedLength:function(){return i(this,arguments.length?arguments[0]:void 0,!1)}})}),8004:((r,e,t)=>{var n=t(6518),i=t(9039),a=t(8750),s=t(4916),o=!s("intersection",function(c){return c.size===2&&c.has(1)&&c.has(2)})||i(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:a})}),8014:((r,e,t)=>{var n=t(1291),i=Math.min;r.exports=function(a){var s=n(a);return s>0?i(s,9007199254740991):0}}),8100:((r,e,t)=>{var n=t(6518),i=t(5636);i&&n({target:"ArrayBuffer",proto:!0},{transfer:function(){return i(this,arguments.length?arguments[0]:void 0,!0)}})}),8111:((r,e,t)=>{var n=t(6518),i=t(4576),a=t(679),s=t(8551),o=t(4901),c=t(2787),u=t(2106),h=t(4659),f=t(9039),d=t(9297),p=t(8227),m=t(7657).IteratorPrototype,g=t(3724),x=t(6395),y="constructor",b="Iterator",v=p("toStringTag"),_=TypeError,A=i[b],E=x||!o(A)||A.prototype!==m||!f(function(){A({})}),T=function(){if(a(this,m),c(this)===m)throw new _("Abstract class Iterator not directly constructable")},S=function(C,F){g?u(m,C,{configurable:!0,get:function(){return F},set:function(k){if(s(this),this===m)throw new _("You can't redefine this property");d(this,C)?this[C]=k:h(this,C,k)}}):m[C]=F};d(m,v)||S(v,b),(E||!d(m,y)||m[y]===Object)&&S(y,T),T.prototype=m,n({global:!0,constructor:!0,forced:E},{Iterator:T})}),8227:((r,e,t)=>{var n=t(4576),i=t(5745),a=t(9297),s=t(3392),o=t(4495),c=t(7040),u=n.Symbol,h=i("wks"),f=c?u.for||u:u&&u.withoutSetter||s;r.exports=function(d){return a(h,d)||(h[d]=o&&a(u,d)?u[d]:f("Symbol."+d)),h[d]}}),8235:((r,e,t)=>{var n=t(9504),i=t(9297),a=SyntaxError,s=parseInt,o=String.fromCharCode,c=n("".charAt),u=n("".slice),h=n(/./.exec),f={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":`
|
|
222
222
|
`,"\\r":"\r","\\t":" "},d=/^[\da-f]{4}$/i,p=/^[\u0000-\u001F]$/;r.exports=function(m,g){for(var x=!0,y="";g<m.length;){var b=c(m,g);if(b==="\\"){var v=u(m,g,g+2);if(i(f,v))y+=f[v],g+=2;else if(v==="\\u"){g+=2;var _=u(m,g,g+4);if(!h(d,_))throw new a("Bad Unicode escape at: "+g);y+=o(s(_,16)),g+=4}else throw new a('Unknown escape sequence: "'+v+'"')}else if(b==='"'){x=!1,g++;break}else{if(h(p,b))throw new a("Bad control character in string literal at: "+g);y+=b,g++}}if(x)throw new a("Unterminated string at: "+g);return{value:y,end:g}}}),8237:((r,e,t)=>{var n=t(6518),i=t(2652),a=t(9306),s=t(8551),o=t(1767),c=t(9539),u=t(4549),h=t(8745),f=t(9039),d=TypeError,p=f(function(){[].keys().reduce(function(){},void 0)}),m=!p&&u("reduce",d);n({target:"Iterator",proto:!0,real:!0,forced:p||m},{reduce:function(x){s(this);try{a(x)}catch(A){c(this,"throw",A)}var y=arguments.length<2,b=y?void 0:arguments[1];if(m)return h(m,this,y?[x]:[x,b]);var v=o(this),_=0;if(i(v,function(A){y?(y=!1,b=A):b=x(b,A,_),_++},{IS_RECORD:!0}),y)throw new d("Reduce of empty iterator with no initial value");return b}})}),8335:((r,e,t)=>{var n=t(6518),i=t(3724),a=t(4576),s=t(7751),o=t(9504),c=t(9565),u=t(4901),h=t(34),f=t(4376),d=t(9297),p=t(655),m=t(6198),g=t(4659),x=t(9039),y=t(8235),b=t(4495),v=a.JSON,_=a.Number,A=a.SyntaxError,E=v&&v.parse,T=s("Object","keys"),S=Object.getOwnPropertyDescriptor,C=o("".charAt),F=o("".slice),k=o(/./.exec),D=o([].push),B=/^\d$/,q=/^[1-9]$/,j=/^[\d-]$/,U=/^[\t\n\r ]$/,O=0,P=1,R=function(ee,ie){ee=p(ee);var se=new H(ee,0,""),de=se.parse(),ge=de.value,_e=se.skip(U,de.end);if(_e<ee.length)throw new A('Unexpected extra character: "'+C(ee,_e)+'" after the parsed data at: '+_e);return u(ie)?N({"":ge},"",ie,de):ge},N=function(ee,ie,se,de){var ge=ee[ie],_e=de&&ge===de.value,w=_e&&typeof de.source=="string"?{source:de.source}:{},Q,ne,W,L,G;if(h(ge)){var le=f(ge),me=_e?de.nodes:le?[]:{};if(le)for(Q=me.length,W=m(ge),L=0;L<W;L++)z(ge,L,N(ge,""+L,se,L<Q?me[L]:void 0));else for(ne=T(ge),W=m(ne),L=0;L<W;L++)G=ne[L],z(ge,G,N(ge,G,se,d(me,G)?me[G]:void 0))}return c(se,ee,ie,ge,w)},z=function(ee,ie,se){if(i){var de=S(ee,ie);if(de&&!de.configurable)return}se===void 0?delete ee[ie]:g(ee,ie,se)},I=function(ee,ie,se,de){this.value=ee,this.end=ie,this.source=se,this.nodes=de},H=function(ee,ie){this.source=ee,this.index=ie};H.prototype={fork:function(ee){return new H(this.source,ee)},parse:function(){var ee=this.source,ie=this.skip(U,this.index),se=this.fork(ie),de=C(ee,ie);if(k(j,de))return se.number();switch(de){case"{":return se.object();case"[":return se.array();case'"':return se.string();case"t":return se.keyword(!0);case"f":return se.keyword(!1);case"n":return se.keyword(null)}throw new A('Unexpected character: "'+de+'" at: '+ie)},node:function(ee,ie,se,de,ge){return new I(ie,de,ee?null:F(this.source,se,de),ge)},object:function(){for(var ee=this.source,ie=this.index+1,se=!1,de={},ge={};ie<ee.length;){if(ie=this.until(['"',"}"],ie),C(ee,ie)==="}"&&!se){ie++;break}var _e=this.fork(ie).string(),w=_e.value;ie=_e.end,ie=this.until([":"],ie)+1,ie=this.skip(U,ie),_e=this.fork(ie).parse(),g(ge,w,_e),g(de,w,_e.value),ie=this.until([",","}"],_e.end);var Q=C(ee,ie);if(Q===",")se=!0,ie++;else if(Q==="}"){ie++;break}}return this.node(P,de,this.index,ie,ge)},array:function(){for(var ee=this.source,ie=this.index+1,se=!1,de=[],ge=[];ie<ee.length;){if(ie=this.skip(U,ie),C(ee,ie)==="]"&&!se){ie++;break}var _e=this.fork(ie).parse();if(D(ge,_e),D(de,_e.value),ie=this.until([",","]"],_e.end),C(ee,ie)===",")se=!0,ie++;else if(C(ee,ie)==="]"){ie++;break}}return this.node(P,de,this.index,ie,ge)},string:function(){var ee=this.index,ie=y(this.source,this.index+1);return this.node(O,ie.value,ee,ie.end)},number:function(){var ee=this.source,ie=this.index,se=ie;if(C(ee,se)==="-"&&se++,C(ee,se)==="0")se++;else if(k(q,C(ee,se)))se=this.skip(B,se+1);else throw new A("Failed to parse number at: "+se);if(C(ee,se)==="."&&(se=this.skip(B,se+1)),C(ee,se)==="e"||C(ee,se)==="E"){se++,(C(ee,se)==="+"||C(ee,se)==="-")&&se++;var de=se;if(se=this.skip(B,se),de===se)throw new A("Failed to parse number's exponent value at: "+se)}return this.node(O,_(F(ee,ie,se)),ie,se)},keyword:function(ee){var ie=""+ee,se=this.index,de=se+ie.length;if(F(this.source,se,de)!==ie)throw new A("Failed to parse value at: "+se);return this.node(O,ee,se,de)},skip:function(ee,ie){for(var se=this.source;ie<se.length&&k(ee,C(se,ie));ie++);return ie},until:function(ee,ie){ie=this.skip(U,ie);for(var se=C(this.source,ie),de=0;de<ee.length;de++)if(ee[de]===se)return ie;throw new A('Unexpected character: "'+se+'" at: '+ie)}};var Z=x(function(){var ee="9007199254740993",ie;return E(ee,function(se,de,ge){ie=ge.source}),ie!==ee}),re=b&&!x(function(){return 1/E("-0 ")!==-1/0});n({target:"JSON",stat:!0,forced:Z},{parse:function(ie,se){return re&&!u(se)?E(ie):R(ie,se)}})}),8469:((r,e,t)=>{var n=t(9504),i=t(507),a=t(4402),s=a.Set,o=a.proto,c=n(o.forEach),u=n(o.keys),h=u(new s).next;r.exports=function(f,d,p){return p?i({iterator:u(f),next:h},d):c(f,d)}}),8480:((r,e,t)=>{var n=t(1828),i=t(8727),a=i.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(o){return n(o,a)}}),8527:((r,e,t)=>{var n=t(7080),i=t(4402).has,a=t(5170),s=t(3789),o=t(507),c=t(9539);r.exports=function(h){var f=n(this),d=s(h);if(a(f)<d.size)return!1;var p=d.getIterator();return o(p,function(m){if(!i(f,m))return c(p,"normal",!1)})!==!1}}),8551:((r,e,t)=>{var n=t(34),i=String,a=TypeError;r.exports=function(s){if(n(s))return s;throw new a(i(s)+" is not an object")}}),8574:((r,e,t)=>{var n=t(9504),i=Error,a=n("".replace),s=(function(u){return String(new i(u).stack)})("zxcasd"),o=/\n\s*at [^:]*:[^\n]*/,c=o.test(s);r.exports=function(u,h){if(c&&typeof u=="string"&&!i.prepareStackTrace)for(;h--;)u=a(u,o,"");return u}}),8622:((r,e,t)=>{var n=t(4576),i=t(4901),a=n.WeakMap;r.exports=i(a)&&/native code/.test(String(a))}),8646:((r,e,t)=>{var n=t(9565),i=t(8551),a=t(1767),s=t(851);r.exports=function(o,c){(!c||typeof o!="string")&&i(o);var u=s(o);return a(i(u!==void 0?n(u,o):o))}}),8686:((r,e,t)=>{var n=t(3724),i=t(9039);r.exports=n&&i(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})}),8721:((r,e,t)=>{var n=t(3724),i=t(9504),a=t(2106),s=URLSearchParams.prototype,o=i(s.forEach);n&&!("size"in s)&&a(s,"size",{get:function(){var u=0;return o(this,function(){u++}),u},configurable:!0,enumerable:!0})}),8727:(r=>{r.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]}),8745:((r,e,t)=>{var n=t(616),i=Function.prototype,a=i.apply,s=i.call;r.exports=typeof Reflect=="object"&&Reflect.apply||(n?s.bind(a):function(){return s.apply(a,arguments)})}),8750:((r,e,t)=>{var n=t(7080),i=t(4402),a=t(5170),s=t(3789),o=t(8469),c=t(507),u=i.Set,h=i.add,f=i.has;r.exports=function(p){var m=n(this),g=s(p),x=new u;return a(m)>g.size?c(g.getIterator(),function(y){f(m,y)&&h(x,y)}):o(m,function(y){g.includes(y)&&h(x,y)}),x}}),8773:((r,e)=>{var t={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,i=n&&!t.call({1:2},1);e.f=i?function(s){var o=n(this,s);return!!o&&o.enumerable}:t}),8981:((r,e,t)=>{var n=t(7750),i=Object;r.exports=function(a){return i(n(a))}}),9039:(r=>{r.exports=function(e){try{return!!e()}catch{return!0}}}),9143:((r,e,t)=>{var n=t(4576),i=t(9504),a=t(3972),s=t(3463),o=t(9297),c=t(2804),u=t(944),h=t(5169),f=c.c2i,d=c.c2iUrl,p=n.SyntaxError,m=n.TypeError,g=i("".charAt),x=function(v,_){for(var A=v.length;_<A;_++){var E=g(v,_);if(E!==" "&&E!==" "&&E!==`
|
|
223
|
-
`&&E!=="\f"&&E!=="\r")break}return _},y=function(v,_,A){var E=v.length;E<4&&(v+=E===2?"AA":"A");var T=(_[g(v,0)]<<18)+(_[g(v,1)]<<12)+(_[g(v,2)]<<6)+_[g(v,3)],S=[T>>16&255,T>>8&255,T&255];if(E===2){if(A&&S[1]!==0)throw new p("Extra bits");return[S[0]]}if(E===3){if(A&&S[2]!==0)throw new p("Extra bits");return[S[0],S[1]]}return S},b=function(v,_,A){for(var E=_.length,T=0;T<E;T++)v[A+T]=_[T];return A+E};r.exports=function(v,_,A,E){s(v),a(_);var T=u(_)==="base64"?f:d,S=_?_.lastChunkHandling:void 0;if(S===void 0&&(S="loose"),S!=="loose"&&S!=="strict"&&S!=="stop-before-partial")throw new m("Incorrect `lastChunkHandling` option");A&&h(A.buffer);var C=v.length,F=A||[],k=0,D=0,B="",q=0;if(E)for(;;){if(q=x(v,q),q===C){if(B.length>0){if(S==="stop-before-partial")break;if(S==="loose"){if(B.length===1)throw new p("Malformed padding: exactly one additional character");k=b(F,y(B,T,!1),k)}else throw new p("Missing padding")}D=C;break}var j=g(v,q);if(++q,j==="="){if(B.length<2)throw new p("Padding is too early");if(q=x(v,q),B.length===2){if(q===C){if(S==="stop-before-partial")break;throw new p("Malformed padding: only one =")}g(v,q)==="="&&(++q,q=x(v,q))}if(q<C)throw new p("Unexpected character after padding");k=b(F,y(B,T,S==="strict"),k),D=C;break}if(!o(T,j))throw new p("Unexpected character");var U=E-k;if(U===1&&B.length===2||U===2&&B.length===3||(B+=j,B.length===4&&(k=b(F,y(B,T,!1),k),B="",D=q,k===E)))break}return{bytes:F,read:D,written:k}}}),9286:((r,e,t)=>{var n=t(4402),i=t(8469),a=n.Set,s=n.add;r.exports=function(o){var c=new a;return i(o,function(u){s(c,u)}),c}}),9297:((r,e,t)=>{var n=t(9504),i=t(8981),a=n({}.hasOwnProperty);r.exports=Object.hasOwn||function(o,c){return a(i(o),c)}}),9306:((r,e,t)=>{var n=t(4901),i=t(6823),a=TypeError;r.exports=function(s){if(n(s))return s;throw new a(i(s)+" is not a function")}}),9314:((r,e,t)=>{var n=t(6518),i=t(9565),a=t(8551),s=t(1767),o=t(4149),c=t(9590),u=t(9539),h=t(9462),f=t(684),d=t(4549),p=t(6395),m=!p&&!f("drop",0),g=!p&&!m&&d("drop",RangeError),x=p||m||g,y=h(function(){for(var b=this.iterator,v=this.next,_,A;this.remaining;)if(this.remaining--,_=a(i(v,b)),A=this.done=!!_.done,A)return;if(_=a(i(v,b)),A=this.done=!!_.done,!A)return _.value});n({target:"Iterator",proto:!0,real:!0,forced:x},{drop:function(v){a(this);var _;try{_=c(o(+v))}catch(A){u(this,"throw",A)}return g?i(g,this,_):new y(s(this),{remaining:_})}})}),9429:((r,e,t)=>{var n=t(4576),i=t(6193);r.exports=function(a){if(i){try{return n.process.getBuiltinModule(a)}catch{}try{return Function('return require("'+a+'")')()}catch{}}}}),9432:((r,e,t)=>{t(5213)}),9433:((r,e,t)=>{var n=t(4576),i=Object.defineProperty;r.exports=function(a,s){try{i(n,a,{value:s,configurable:!0,writable:!0})}catch{n[a]=s}return s}}),9462:((r,e,t)=>{var n=t(9565),i=t(2360),a=t(6699),s=t(6279),o=t(8227),c=t(1181),u=t(5966),h=t(7657).IteratorPrototype,f=t(2529),d=t(9539),p=t(1385),m=o("toStringTag"),g="IteratorHelper",x="WrapForValidIterator",y="normal",b="throw",v=c.set,_=function(T){var S=c.getterFor(T?x:g);return s(i(h),{next:function(){var F=S(this);if(T)return F.nextHandler();if(F.done)return f(void 0,!0);try{var k=F.nextHandler();return F.returnHandlerResult?k:f(k,F.done)}catch(D){throw F.done=!0,D}},return:function(){var C=S(this),F=C.iterator;if(C.done=!0,T){var k=u(F,"return");return k?n(k,F):f(void 0,!0)}if(C.inner)try{d(C.inner.iterator,y)}catch(D){return d(F,b,D)}if(C.openIters)try{p(C.openIters,y)}catch(D){return d(F,b,D)}return F&&d(F,y),f(void 0,!0)}})},A=_(!0),E=_(!1);a(E,m,"Iterator Helper"),r.exports=function(T,S,C){var F=function(D,B){B?(B.iterator=D.iterator,B.next=D.next):B=D,B.type=S?x:g,B.returnHandlerResult=!!C,B.nextHandler=T,B.counter=0,B.done=!1,v(this,B)};return F.prototype=S?A:E,F}}),9486:((r,e,t)=>{var n=t(6518),i=t(4576),a=t(9504),s=t(3972),o=t(4154),c=t(5169),u=t(2804),h=t(944),f=u.i2c,d=u.i2cUrl,p=a("".charAt),m=i.Uint8Array,g=!m||!m.prototype.toBase64||!(function(){try{var x=new m;x.toBase64(null)}catch{return!0}})();m&&n({target:"Uint8Array",proto:!0,forced:g},{toBase64:function(){var y=o(this),b=arguments.length?s(arguments[0]):void 0,v=h(b)==="base64"?f:d,_=!!b&&!!b.omitPadding;c(this.buffer);for(var A="",E=0,T=y.length,S,C=function(F){return p(v,S>>6*F&63)};E+2<T;E+=3)S=(y[E]<<16)+(y[E+1]<<8)+y[E+2],A+=C(3)+C(2)+C(1)+C(0);return E+2===T?(S=(y[E]<<16)+(y[E+1]<<8),A+=C(3)+C(2)+C(1)+(_?"":"=")):E+1===T&&(S=y[E]<<16,A+=C(3)+C(2)+(_?"":"==")),A}})}),9504:((r,e,t)=>{var n=t(616),i=Function.prototype,a=i.call,s=n&&i.bind.bind(a,a);r.exports=n?s:function(o){return function(){return a.apply(o,arguments)}}}),9519:((r,e,t)=>{var n=t(4576),i=t(2839),a=n.process,s=n.Deno,o=a&&a.versions||s&&s.version,c=o&&o.v8,u,h;c&&(u=c.split("."),h=u[0]>0&&u[0]<4?1:+(u[0]+u[1])),!h&&i&&(u=i.match(/Edge\/(\d+)/),(!u||u[1]>=74)&&(u=i.match(/Chrome\/(\d+)/),u&&(h=+u[1]))),r.exports=h}),9539:((r,e,t)=>{var n=t(9565),i=t(8551),a=t(5966);r.exports=function(s,o,c){var u,h;i(s);try{if(u=a(s,"return"),!u){if(o==="throw")throw c;return c}u=n(u,s)}catch(f){h=!0,u=f}if(o==="throw")throw c;if(h)throw u;return i(u),c}}),9565:((r,e,t)=>{var n=t(616),i=Function.prototype.call;r.exports=n?i.bind(i):function(){return i.apply(i,arguments)}}),9577:((r,e,t)=>{var n=t(9928),i=t(4644),a=t(1108),s=t(1291),o=t(5854),c=i.aTypedArray,u=i.getTypedArrayConstructor,h=i.exportTypedArrayMethod,f=(function(){try{new Int8Array(1).with(2,{valueOf:function(){throw 8}})}catch(p){return p===8}})(),d=f&&(function(){try{new Int8Array(1).with(-.5,1)}catch{return!0}})();h("with",function(p,m){var g=c(this),x=s(p),y=a(g)?o(m):+m;return n(g,u(g),x,y)},!f||d)}),9590:((r,e,t)=>{var n=t(1291),i=RangeError;r.exports=function(a){var s=n(a);if(s<0)throw new i("The argument can't be less than 0");return s}}),9617:((r,e,t)=>{var n=t(5397),i=t(5610),a=t(6198),s=function(o){return function(c,u,h){var f=n(c),d=a(f);if(d===0)return!o&&-1;var p=i(h,d),m;if(o&&u!==u){for(;d>p;)if(m=f[p++],m!==m)return!0}else for(;d>p;p++)if((o||p in f)&&f[p]===u)return o||p||0;return!o&&-1}};r.exports={includes:s(!0),indexOf:s(!1)}}),9631:((r,e,t)=>{t(9486)}),9797:((r,e,t)=>{t(4226)}),9835:(r=>{r.exports=function(e){try{var t=new Set,n={size:0,has:function(){return!0},keys:function(){return Object.defineProperty({},"next",{get:function(){return t.clear(),t.add(4),function(){return{done:!0}}}})}},i=t[e](n);return i.size===1&&i.values().next().value===4}catch{return!1}}}),9928:((r,e,t)=>{var n=t(6198),i=t(1291),a=RangeError;r.exports=function(s,o,c,u){var h=n(s),f=i(c),d=f<0?h+f:f;if(d>=h||d<0)throw new a("Incorrect index");for(var p=new o(h),m=0;m<h;m++)p[m]=m===d?u:s[m];return p}})},L1={};function ze(r){var e=L1[r];if(e!==void 0)return e.exports;var t=L1[r]={exports:{}};return WA[r].call(t.exports,t,t.exports,ze),t.exports}ze.d=(r,e)=>{for(var t in e)ze.o(e,t)&&!ze.o(r,t)&&Object.defineProperty(r,t,{enumerable:!0,get:e[t]})};ze.o=(r,e)=>Object.prototype.hasOwnProperty.call(r,e);var RB=ze(4114),OB=ze(6573),BB=ze(8100),NB=ze(7936),PB=ze(8111),LB=ze(8237),MB=ze(1689),WB=ze(9577),HB=ze(4235),VB=ze(9432),zB=ze(1549),jB=ze(9797),GB=ze(9631),XB=ze(5623),$B=ze(4979),qB=ze(5781),yr=typeof process=="object"&&process+""=="[object process]"&&!process.versions.nw&&!(process.versions.electron&&process.type&&process.type!=="browser"),Zf=[.001,0,0,.001,0,0],Sl=1.35,HA=.35,YB=HA/Sl,Vr={ANY:1,DISPLAY:2,PRINT:4,SAVE:8,ANNOTATIONS_FORMS:16,ANNOTATIONS_STORAGE:32,ANNOTATIONS_DISABLE:64,IS_EDITING:128,OPLIST:256},pi={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3},io="pdfjs_internal_editor_",Ve={DISABLE:-1,NONE:0,FREETEXT:3,HIGHLIGHT:9,STAMP:13,INK:15,POPUP:16,SIGNATURE:101,COMMENT:102},qe={RESIZE:1,CREATE:2,FREETEXT_SIZE:11,FREETEXT_COLOR:12,FREETEXT_OPACITY:13,INK_COLOR:21,INK_THICKNESS:22,INK_OPACITY:23,HIGHLIGHT_COLOR:31,HIGHLIGHT_THICKNESS:32,HIGHLIGHT_FREE:33,HIGHLIGHT_SHOW_ALL:34,DRAW_STEP:41},VA={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048},Kt={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4},Cl={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3},Rt={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26};var Na={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5};var hu={ERRORS:0,WARNINGS:1,INFOS:5},ao={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotation:80,endAnnotation:81,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91,setStrokeTransparent:92,setFillTransparent:93,rawFillPath:94},vl={moveTo:0,lineTo:1,curveTo:2,closePath:3},zA={NEED_PASSWORD:1,INCORRECT_PASSWORD:2},fu=hu.WARNINGS;function jA(r){Number.isInteger(r)&&(fu=r)}function GA(){return fu}function du(r){fu>=hu.INFOS&&console.info(`Info: ${r}`)}function Ne(r){fu>=hu.WARNINGS&&console.warn(`Warning: ${r}`)}function dt(r){throw new Error(r)}function Ye(r,e){r||dt(e)}function XA(r){switch(r?.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}function ix(r,e=null,t=null){if(!r)return null;if(t&&typeof r=="string"&&(t.addDefaultProtocol&&r.startsWith("www.")&&r.match(/\./g)?.length>=2&&(r=`http://${r}`),t.tryConvertEncoding))try{r=KA(r)}catch{}let n=e?URL.parse(r,e):URL.parse(r);return XA(n)?n:null}function ax(r,e,t=!1){let n=URL.parse(r);return n?(n.hash=e,n.href):t&&ix(r,"http://example.com")?r.split("#",1)[0]+`${e?`#${e}`:""}`:""}function Ge(r,e,t,n=!1){return Object.defineProperty(r,e,{value:t,enumerable:!n,configurable:!0,writable:!1}),t}var Yi=(function(){function e(t,n){this.message=t,this.name=n}return e.prototype=new Error,e.constructor=e,e})(),Fl=class extends Yi{constructor(e,t){super(e,"PasswordException"),this.code=t}},no=class extends Yi{constructor(e,t){super(e,"UnknownErrorException"),this.details=t}},so=class extends Yi{constructor(e){super(e,"InvalidPDFException")}},Ha=class extends Yi{constructor(e,t,n){super(e,"ResponseException"),this.status=t,this.missing=n}},Jf=class extends Yi{constructor(e){super(e,"FormatError")}},Cn=class extends Yi{constructor(e){super(e,"AbortException")}};function sx(r){(typeof r!="object"||r?.length===void 0)&&dt("Invalid argument for bytesToString");let e=r.length,t=8192;if(e<t)return String.fromCharCode.apply(null,r);let n=[];for(let i=0;i<e;i+=t){let a=Math.min(i+t,e),s=r.subarray(i,a);n.push(String.fromCharCode.apply(null,s))}return n.join("")}function _o(r){typeof r!="string"&&dt("Invalid argument for stringToBytes");let e=r.length,t=new Uint8Array(e);for(let n=0;n<e;++n)t[n]=r.charCodeAt(n)&255;return t}function $A(r){return String.fromCharCode(r>>24&255,r>>16&255,r>>8&255,r&255)}function qA(){let r=new Uint8Array(4);return r[0]=1,new Uint32Array(r.buffer,0,1)[0]===1}function YA(){try{return new Function(""),!0}catch{return!1}}var Mt=class{static get isLittleEndian(){return Ge(this,"isLittleEndian",qA())}static get isEvalSupported(){return Ge(this,"isEvalSupported",YA())}static get isOffscreenCanvasSupported(){return Ge(this,"isOffscreenCanvasSupported",typeof OffscreenCanvas<"u")}static get isImageDecoderSupported(){return Ge(this,"isImageDecoderSupported",typeof ImageDecoder<"u")}static get platform(){let{platform:e,userAgent:t}=navigator;return Ge(this,"platform",{isAndroid:t.includes("Android"),isLinux:e.includes("Linux"),isMac:e.includes("Mac"),isWindows:e.includes("Win"),isFirefox:t.includes("Firefox")})}static get isCSSRoundSupported(){return Ge(this,"isCSSRoundSupported",globalThis.CSS?.supports?.("width: round(1.5px, 1px)"))}},Gf=Array.from(Array(256).keys(),r=>r.toString(16).padStart(2,"0")),Re=class{static makeHexColor(e,t,n){return`#${Gf[e]}${Gf[t]}${Gf[n]}`}static domMatrixToTransform(e){return[e.a,e.b,e.c,e.d,e.e,e.f]}static scaleMinMax(e,t){let n;e[0]?(e[0]<0&&(n=t[0],t[0]=t[2],t[2]=n),t[0]*=e[0],t[2]*=e[0],e[3]<0&&(n=t[1],t[1]=t[3],t[3]=n),t[1]*=e[3],t[3]*=e[3]):(n=t[0],t[0]=t[1],t[1]=n,n=t[2],t[2]=t[3],t[3]=n,e[1]<0&&(n=t[1],t[1]=t[3],t[3]=n),t[1]*=e[1],t[3]*=e[1],e[2]<0&&(n=t[0],t[0]=t[2],t[2]=n),t[0]*=e[2],t[2]*=e[2]),t[0]+=e[4],t[1]+=e[5],t[2]+=e[4],t[3]+=e[5]}static transform(e,t){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]]}static multiplyByDOMMatrix(e,t){return[e[0]*t.a+e[2]*t.b,e[1]*t.a+e[3]*t.b,e[0]*t.c+e[2]*t.d,e[1]*t.c+e[3]*t.d,e[0]*t.e+e[2]*t.f+e[4],e[1]*t.e+e[3]*t.f+e[5]]}static applyTransform(e,t,n=0){let i=e[n],a=e[n+1];e[n]=i*t[0]+a*t[2]+t[4],e[n+1]=i*t[1]+a*t[3]+t[5]}static applyTransformToBezier(e,t,n=0){let i=t[0],a=t[1],s=t[2],o=t[3],c=t[4],u=t[5];for(let h=0;h<6;h+=2){let f=e[n+h],d=e[n+h+1];e[n+h]=f*i+d*s+c,e[n+h+1]=f*a+d*o+u}}static applyInverseTransform(e,t){let n=e[0],i=e[1],a=t[0]*t[3]-t[1]*t[2];e[0]=(n*t[3]-i*t[2]+t[2]*t[5]-t[4]*t[3])/a,e[1]=(-n*t[1]+i*t[0]+t[4]*t[1]-t[5]*t[0])/a}static axialAlignedBoundingBox(e,t,n){let i=t[0],a=t[1],s=t[2],o=t[3],c=t[4],u=t[5],h=e[0],f=e[1],d=e[2],p=e[3],m=i*h+c,g=m,x=i*d+c,y=x,b=o*f+u,v=b,_=o*p+u,A=_;if(a!==0||s!==0){let E=a*h,T=a*d,S=s*f,C=s*p;m+=S,y+=S,x+=C,g+=C,b+=E,A+=E,_+=T,v+=T}n[0]=Math.min(n[0],m,x,g,y),n[1]=Math.min(n[1],b,_,v,A),n[2]=Math.max(n[2],m,x,g,y),n[3]=Math.max(n[3],b,_,v,A)}static inverseTransform(e){let t=e[0]*e[3]-e[1]*e[2];return[e[3]/t,-e[1]/t,-e[2]/t,e[0]/t,(e[2]*e[5]-e[4]*e[3])/t,(e[4]*e[1]-e[5]*e[0])/t]}static singularValueDecompose2dScale(e,t){let n=e[0],i=e[1],a=e[2],s=e[3],o=n**2+i**2,c=n*a+i*s,u=a**2+s**2,h=(o+u)/2,f=Math.sqrt(h**2-(o*u-c**2));t[0]=Math.sqrt(h+f||1),t[1]=Math.sqrt(h-f||1)}static normalizeRect(e){let t=e.slice(0);return e[0]>e[2]&&(t[0]=e[2],t[2]=e[0]),e[1]>e[3]&&(t[1]=e[3],t[3]=e[1]),t}static intersect(e,t){let n=Math.max(Math.min(e[0],e[2]),Math.min(t[0],t[2])),i=Math.min(Math.max(e[0],e[2]),Math.max(t[0],t[2]));if(n>i)return null;let a=Math.max(Math.min(e[1],e[3]),Math.min(t[1],t[3])),s=Math.min(Math.max(e[1],e[3]),Math.max(t[1],t[3]));return a>s?null:[n,a,i,s]}static pointBoundingBox(e,t,n){n[0]=Math.min(n[0],e),n[1]=Math.min(n[1],t),n[2]=Math.max(n[2],e),n[3]=Math.max(n[3],t)}static rectBoundingBox(e,t,n,i,a){a[0]=Math.min(a[0],e,n),a[1]=Math.min(a[1],t,i),a[2]=Math.max(a[2],e,n),a[3]=Math.max(a[3],t,i)}static#e(e,t,n,i,a,s,o,c,u,h){if(u<=0||u>=1)return;let f=1-u,d=u*u,p=d*u,m=f*(f*(f*e+3*u*t)+3*d*n)+p*i,g=f*(f*(f*a+3*u*s)+3*d*o)+p*c;h[0]=Math.min(h[0],m),h[1]=Math.min(h[1],g),h[2]=Math.max(h[2],m),h[3]=Math.max(h[3],g)}static#t(e,t,n,i,a,s,o,c,u,h,f,d){if(Math.abs(u)<1e-12){Math.abs(h)>=1e-12&&this.#e(e,t,n,i,a,s,o,c,-f/h,d);return}let p=h**2-4*f*u;if(p<0)return;let m=Math.sqrt(p),g=2*u;this.#e(e,t,n,i,a,s,o,c,(-h+m)/g,d),this.#e(e,t,n,i,a,s,o,c,(-h-m)/g,d)}static bezierBoundingBox(e,t,n,i,a,s,o,c,u){u[0]=Math.min(u[0],e,o),u[1]=Math.min(u[1],t,c),u[2]=Math.max(u[2],e,o),u[3]=Math.max(u[3],t,c),this.#t(e,n,a,o,t,i,s,c,3*(-e+3*(n-a)+o),6*(e-2*n+a),3*(n-e),u),this.#t(e,n,a,o,t,i,s,c,3*(-t+3*(i-s)+c),6*(t-2*i+s),3*(i-t),u)}};function KA(r){return decodeURIComponent(escape(r))}var Xf=null,M1=null;function ZA(r){return Xf||(Xf=/([\u00a0\u00b5\u037e\u0eb3\u2000-\u200a\u202f\u2126\ufb00-\ufb04\ufb06\ufb20-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufba1\ufba4-\ufba9\ufbae-\ufbb1\ufbd3-\ufbdc\ufbde-\ufbe7\ufbea-\ufbf8\ufbfc-\ufbfd\ufc00-\ufc5d\ufc64-\ufcf1\ufcf5-\ufd3d\ufd88\ufdf4\ufdfa-\ufdfb\ufe71\ufe77\ufe79\ufe7b\ufe7d]+)|(\ufb05+)/gu,M1=new Map([["\uFB05","\u017Ft"]])),r.replaceAll(Xf,(e,t,n)=>t?t.normalize("NFKC"):M1.get(n))}function ox(){if(typeof crypto.randomUUID=="function")return crypto.randomUUID();let r=new Uint8Array(32);return crypto.getRandomValues(r),sx(r)}var k0="pdfjs_internal_id_";function JA(r,e,t){if(!Array.isArray(t)||t.length<2)return!1;let[n,i,...a]=t;if(!r(n)&&!Number.isInteger(n)||!e(i))return!1;let s=a.length,o=!0;switch(i.name){case"XYZ":if(s<2||s>3)return!1;break;case"Fit":case"FitB":return s===0;case"FitH":case"FitBH":case"FitV":case"FitBV":if(s>1)return!1;break;case"FitR":if(s!==4)return!1;o=!1;break;default:return!1}for(let c of a)if(!(typeof c=="number"||o&&c===null))return!1;return!0}function br(r,e,t){return Math.min(Math.max(r,e),t)}function cx(r){return Uint8Array.prototype.toBase64?r.toBase64():btoa(sx(r))}function QA(r){return Uint8Array.fromBase64?Uint8Array.fromBase64(r):_o(atob(r))}typeof Math.sumPrecise!="function"&&(Math.sumPrecise=function(r){return r.reduce((e,t)=>e+t,0)});typeof AbortSignal.any!="function"&&(AbortSignal.any=function(r){let e=new AbortController,{signal:t}=e;for(let n of r)if(n.aborted)return e.abort(n.reason),t;for(let n of r)n.addEventListener("abort",()=>{e.abort(n.reason)},{signal:t});return t});var KB=ze(1701),ZB=ze(4603),JB=ze(7566),QB=ze(8721),oo=class r{static textContent(e){let t=[],n={items:t,styles:Object.create(null)};function i(a){if(!a)return;let s=null,o=a.name;if(o==="#text")s=a.value;else if(r.shouldBuildText(o))a?.attributes?.textContent?s=a.attributes.textContent:a.value&&(s=a.value);else return;if(s!==null&&t.push({str:s}),!!a.children)for(let c of a.children)i(c)}return i(e),n}static shouldBuildText(e){return!(e==="textarea"||e==="input"||e==="option"||e==="select")}},kl=class{static setupStorage(e,t,n,i,a){let s=i.getValue(t,{value:null});switch(n.name){case"textarea":if(s.value!==null&&(e.textContent=s.value),a==="print")break;e.addEventListener("input",o=>{i.setValue(t,{value:o.target.value})});break;case"input":if(n.attributes.type==="radio"||n.attributes.type==="checkbox"){if(s.value===n.attributes.xfaOn?e.setAttribute("checked",!0):s.value===n.attributes.xfaOff&&e.removeAttribute("checked"),a==="print")break;e.addEventListener("change",o=>{i.setValue(t,{value:o.target.checked?o.target.getAttribute("xfaOn"):o.target.getAttribute("xfaOff")})})}else{if(s.value!==null&&e.setAttribute("value",s.value),a==="print")break;e.addEventListener("input",o=>{i.setValue(t,{value:o.target.value})})}break;case"select":if(s.value!==null){e.setAttribute("value",s.value);for(let o of n.children)o.attributes.value===s.value?o.attributes.selected=!0:o.attributes.hasOwnProperty("selected")&&delete o.attributes.selected}e.addEventListener("input",o=>{let c=o.target.options,u=c.selectedIndex===-1?"":c[c.selectedIndex].value;i.setValue(t,{value:u})});break}}static setAttributes({html:e,element:t,storage:n=null,intent:i,linkService:a}){let{attributes:s}=t,o=e instanceof HTMLAnchorElement;s.type==="radio"&&(s.name=`${s.name}-${i}`);for(let[c,u]of Object.entries(s))if(u!=null)switch(c){case"class":u.length&&e.setAttribute(c,u.join(" "));break;case"dataId":break;case"id":e.setAttribute("data-element-id",u);break;case"style":Object.assign(e.style,u);break;case"textContent":e.textContent=u;break;default:(!o||c!=="href"&&c!=="newWindow")&&e.setAttribute(c,u)}o&&a.addLinkAttributes(e,s.href,s.newWindow),n&&s.dataId&&this.setupStorage(e,s.dataId,t,n)}static render(e){let t=e.annotationStorage,n=e.linkService,i=e.xfaHtml,a=e.intent||"display",s=document.createElement(i.name);i.attributes&&this.setAttributes({html:s,element:i,intent:a,linkService:n});let o=a!=="richText",c=e.div;if(c.append(s),e.viewport){let f=`matrix(${e.viewport.transform.join(",")})`;c.style.transform=f}o&&c.setAttribute("class","xfaLayer xfaFont");let u=[];if(i.children.length===0){if(i.value){let f=document.createTextNode(i.value);s.append(f),o&&oo.shouldBuildText(i.name)&&u.push(f)}return{textDivs:u}}let h=[[i,-1,s]];for(;h.length>0;){let[f,d,p]=h.at(-1);if(d+1===f.children.length){h.pop();continue}let m=f.children[++h.at(-1)[1]];if(m===null)continue;let{name:g}=m;if(g==="#text"){let y=document.createTextNode(m.value);u.push(y),p.append(y);continue}let x=m?.attributes?.xmlns?document.createElementNS(m.attributes.xmlns,g):document.createElement(g);if(p.append(x),m.attributes&&this.setAttributes({html:x,element:m,storage:t,intent:a,linkService:n}),m.children?.length>0)h.push([m,-1,x]);else if(m.value){let y=document.createTextNode(m.value);o&&oo.shouldBuildText(g)&&u.push(y),x.append(y)}}for(let f of c.querySelectorAll(".xfaNonInteractive input, .xfaNonInteractive textarea"))f.setAttribute("readOnly",!0);return{textDivs:u}}static update(e){let t=`matrix(${e.viewport.transform.join(",")})`;e.div.style.transform=t,e.div.hidden=!1}},jn="http://www.w3.org/2000/svg",mi=class{static CSS=96;static PDF=72;static PDF_TO_CSS_UNITS=this.CSS/this.PDF};async function Do(r,e="text"){if(ro(r,document.baseURI)){let t=await fetch(r);if(!t.ok)throw new Error(t.statusText);switch(e){case"arraybuffer":return t.arrayBuffer();case"blob":return t.blob();case"json":return t.json()}return t.text()}return new Promise((t,n)=>{let i=new XMLHttpRequest;i.open("GET",r,!0),i.responseType=e,i.onreadystatechange=()=>{if(i.readyState===XMLHttpRequest.DONE){if(i.status===200||i.status===0){switch(e){case"arraybuffer":case"blob":case"json":t(i.response);return}t(i.responseText);return}n(new Error(i.statusText))}},i.send(null)})}var co=class r{constructor({viewBox:e,userUnit:t,scale:n,rotation:i,offsetX:a=0,offsetY:s=0,dontFlip:o=!1}){this.viewBox=e,this.userUnit=t,this.scale=n,this.rotation=i,this.offsetX=a,this.offsetY=s,n*=t;let c=(e[2]+e[0])/2,u=(e[3]+e[1])/2,h,f,d,p;switch(i%=360,i<0&&(i+=360),i){case 180:h=-1,f=0,d=0,p=1;break;case 90:h=0,f=1,d=1,p=0;break;case 270:h=0,f=-1,d=-1,p=0;break;case 0:h=1,f=0,d=0,p=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}o&&(d=-d,p=-p);let m,g,x,y;h===0?(m=Math.abs(u-e[1])*n+a,g=Math.abs(c-e[0])*n+s,x=(e[3]-e[1])*n,y=(e[2]-e[0])*n):(m=Math.abs(c-e[0])*n+a,g=Math.abs(u-e[1])*n+s,x=(e[2]-e[0])*n,y=(e[3]-e[1])*n),this.transform=[h*n,f*n,d*n,p*n,m-h*n*c-d*n*u,g-f*n*c-p*n*u],this.width=x,this.height=y}get rawDims(){let e=this.viewBox;return Ge(this,"rawDims",{pageWidth:e[2]-e[0],pageHeight:e[3]-e[1],pageX:e[0],pageY:e[1]})}clone({scale:e=this.scale,rotation:t=this.rotation,offsetX:n=this.offsetX,offsetY:i=this.offsetY,dontFlip:a=!1}={}){return new r({viewBox:this.viewBox.slice(),userUnit:this.userUnit,scale:e,rotation:t,offsetX:n,offsetY:i,dontFlip:a})}convertToViewportPoint(e,t){let n=[e,t];return Re.applyTransform(n,this.transform),n}convertToViewportRectangle(e){let t=[e[0],e[1]];Re.applyTransform(t,this.transform);let n=[e[2],e[3]];return Re.applyTransform(n,this.transform),[t[0],t[1],n[0],n[1]]}convertToPdfPoint(e,t){let n=[e,t];return Re.applyInverseTransform(n,this.transform),n}},lo=class extends Yi{constructor(e,t=0){super(e,"RenderingCancelledException"),this.extraDelay=t}};function pu(r){let e=r.length,t=0;for(;t<e&&r[t].trim()==="";)t++;return r.substring(t,t+5).toLowerCase()==="data:"}function U0(r){return typeof r=="string"&&/\.pdf$/i.test(r)}function eS(r){return[r]=r.split(/[#?]/,1),r.substring(r.lastIndexOf("/")+1)}function tS(r,e="document.pdf"){if(typeof r!="string")return e;if(pu(r))return Ne('getPdfFilenameFromUrl: ignore "data:"-URL for performance reasons.'),e;let n=(o=>{try{return new URL(o)}catch{try{return new URL(decodeURIComponent(o))}catch{try{return new URL(o,"https://foo.bar")}catch{try{return new URL(decodeURIComponent(o),"https://foo.bar")}catch{return null}}}}})(r);if(!n)return e;let i=o=>{try{let c=decodeURIComponent(o);return c.includes("/")?(c=c.split("/").at(-1),c.test(/^\.pdf$/i)?c:o):c}catch{return o}},a=/\.pdf$/i,s=n.pathname.split("/").at(-1);if(a.test(s))return i(s);if(n.searchParams.size>0){let o=Array.from(n.searchParams.values()).reverse();for(let u of o)if(a.test(u))return i(u);let c=Array.from(n.searchParams.keys()).reverse();for(let u of c)if(a.test(u))return i(u)}if(n.hash){let c=/[^/?#=]+\.pdf\b(?!.*\.pdf\b)/i.exec(n.hash);if(c)return i(c[0])}return e}var Ul=class{started=Object.create(null);times=[];time(e){e in this.started&&Ne(`Timer is already running for ${e}`),this.started[e]=Date.now()}timeEnd(e){e in this.started||Ne(`Timer has not been started for ${e}`),this.times.push({name:e,start:this.started[e],end:Date.now()}),delete this.started[e]}toString(){let e=[],t=0;for(let{name:n}of this.times)t=Math.max(n.length,t);for(let{name:n,start:i,end:a}of this.times)e.push(`${n.padEnd(t)} ${a-i}ms
|
|
224
|
-
`);return e.join("")}};function ro(r,e){let t=e?URL.parse(r,e):URL.parse(r);return t?.protocol==="http:"||t?.protocol==="https:"}function en(r){r.preventDefault()}function Tt(r){r.preventDefault(),r.stopPropagation()}function rS(r){console.log("Deprecated API usage: "+r)}var uo=class{static#e;static toDateObject(e){if(e instanceof Date)return e;if(!e||typeof e!="string")return null;this.#e||=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?");let t=this.#e.exec(e);if(!t)return null;let n=parseInt(t[1],10),i=parseInt(t[2],10);i=i>=1&&i<=12?i-1:0;let a=parseInt(t[3],10);a=a>=1&&a<=31?a:1;let s=parseInt(t[4],10);s=s>=0&&s<=23?s:0;let o=parseInt(t[5],10);o=o>=0&&o<=59?o:0;let c=parseInt(t[6],10);c=c>=0&&c<=59?c:0;let u=t[7]||"Z",h=parseInt(t[8],10);h=h>=0&&h<=23?h:0;let f=parseInt(t[9],10)||0;return f=f>=0&&f<=59?f:0,u==="-"?(s+=h,o+=f):u==="+"&&(s-=h,o-=f),new Date(Date.UTC(n,i,a,s,o,c))}};function nS(r,{scale:e=1,rotation:t=0}){let{width:n,height:i}=r.attributes.style,a=[0,0,parseInt(n),parseInt(i)];return new co({viewBox:a,userUnit:1,scale:e,rotation:t})}function To(r){if(r.startsWith("#")){let e=parseInt(r.slice(1),16);return[(e&16711680)>>16,(e&65280)>>8,e&255]}return r.startsWith("rgb(")?r.slice(4,-1).split(",").map(e=>parseInt(e)):r.startsWith("rgba(")?r.slice(5,-1).split(",").map(e=>parseInt(e)).slice(0,3):(Ne(`Not a valid color format: "${r}"`),[0,0,0])}function iS(r){let e=document.createElement("span");e.style.visibility="hidden",e.style.colorScheme="only light",document.body.append(e);for(let t of r.keys()){e.style.color=t;let n=window.getComputedStyle(e).color;r.set(t,To(n))}e.remove()}function _t(r){let{a:e,b:t,c:n,d:i,e:a,f:s}=r.getTransform();return[e,t,n,i,a,s]}function An(r){let{a:e,b:t,c:n,d:i,e:a,f:s}=r.getTransform().invertSelf();return[e,t,n,i,a,s]}function ji(r,e,t=!1,n=!0){if(e instanceof co){let{pageWidth:i,pageHeight:a}=e.rawDims,{style:s}=r,o=Mt.isCSSRoundSupported,c=`var(--total-scale-factor) * ${i}px`,u=`var(--total-scale-factor) * ${a}px`,h=o?`round(down, ${c}, var(--scale-round-x))`:`calc(${c})`,f=o?`round(down, ${u}, var(--scale-round-y))`:`calc(${u})`;!t||e.rotation%180===0?(s.width=h,s.height=f):(s.width=f,s.height=h)}n&&r.setAttribute("data-main-rotation",e.rotation)}var Xn=class r{constructor(){let{pixelRatio:e}=r;this.sx=e,this.sy=e}get scaled(){return this.sx!==1||this.sy!==1}get symmetric(){return this.sx===this.sy}limitCanvas(e,t,n,i,a=-1){let s=1/0,o=1/0,c=1/0;n=r.capPixels(n,a),n>0&&(s=Math.sqrt(n/(e*t))),i!==-1&&(o=i/e,c=i/t);let u=Math.min(s,o,c);return this.sx>u||this.sy>u?(this.sx=u,this.sy=u,!0):!1}static get pixelRatio(){return globalThis.devicePixelRatio||1}static capPixels(e,t){if(t>=0){let n=Math.ceil(window.screen.availWidth*window.screen.availHeight*this.pixelRatio**2*(1+t/100));return e>0?Math.min(e,n):n}return e}},Qf=["image/apng","image/avif","image/bmp","image/gif","image/jpeg","image/png","image/svg+xml","image/webp","image/x-icon"],ed=class{static get isDarkMode(){return Ge(this,"isDarkMode",!!window?.matchMedia?.("(prefers-color-scheme: dark)").matches)}},td=class{static get commentForegroundColor(){let e=document.createElement("span");e.classList.add("comment","sidebar");let{style:t}=e;t.width=t.height="0",t.display="none",t.color="var(--comment-fg-color)",document.body.append(e);let{color:n}=window.getComputedStyle(e);return e.remove(),Ge(this,"commentForegroundColor",To(n))}};function aS(r,e,t,n){n=Math.min(Math.max(n??1,0),1);let i=255*(1-n);return r=Math.round(r*n+i),e=Math.round(e*n+i),t=Math.round(t*n+i),[r,e,t]}function W1(r,e){let t=r[0]/255,n=r[1]/255,i=r[2]/255,a=Math.max(t,n,i),s=Math.min(t,n,i),o=(a+s)/2;if(a===s)e[0]=e[1]=0;else{let c=a-s;switch(e[1]=o<.5?c/(a+s):c/(2-a-s),a){case t:e[0]=((n-i)/c+(n<i?6:0))*60;break;case n:e[0]=((i-t)/c+2)*60;break;case i:e[0]=((t-n)/c+4)*60;break}}e[2]=o}function rd(r,e){let t=r[0],n=r[1],i=r[2],a=(1-Math.abs(2*i-1))*n,s=a*(1-Math.abs(t/60%2-1)),o=i-a/2;switch(Math.floor(t/60)){case 0:e[0]=a+o,e[1]=s+o,e[2]=o;break;case 1:e[0]=s+o,e[1]=a+o,e[2]=o;break;case 2:e[0]=o,e[1]=a+o,e[2]=s+o;break;case 3:e[0]=o,e[1]=s+o,e[2]=a+o;break;case 4:e[0]=s+o,e[1]=o,e[2]=a+o;break;case 5:case 6:e[0]=a+o,e[1]=o,e[2]=s+o;break}}function H1(r){return r<=.03928?r/12.92:((r+.055)/1.055)**2.4}function V1(r,e,t){rd(r,t),t.map(H1);let n=.2126*t[0]+.7152*t[1]+.0722*t[2];rd(e,t),t.map(H1);let i=.2126*t[0]+.7152*t[1]+.0722*t[2];return n>i?(n+.05)/(i+.05):(i+.05)/(n+.05)}var z1=new Map;function sS(r,e){let t=r[0]+r[1]*256+r[2]*65536+e[0]*16777216+e[1]*4294967296+e[2]*1099511627776,n=z1.get(t);if(n)return n;let i=new Float32Array(9),a=i.subarray(0,3),s=i.subarray(3,6);W1(r,s);let o=i.subarray(6,9);W1(e,o);let c=o[2]<.5,u=c?12:4.5;if(s[2]=c?Math.sqrt(s[2]):1-Math.sqrt(1-s[2]),V1(s,o,a)<u){let h,f;c?(h=s[2],f=1):(h=0,f=s[2]);let d=.005;for(;f-h>d;){let p=s[2]=(h+f)/2;c===V1(s,o,a)<u?h=p:f=p}s[2]=c?f:h}return rd(s,a),n=Re.makeHexColor(Math.round(a[0]*255),Math.round(a[1]*255),Math.round(a[2]*255)),z1.set(t,n),n}function lx({html:r,dir:e,className:t},n){let i=document.createDocumentFragment();if(typeof r=="string"){let a=document.createElement("p");a.dir=e||"auto";let s=r.split(/(?:\r\n?|\n)/);for(let o=0,c=s.length;o<c;++o){let u=s[o];a.append(document.createTextNode(u)),o<c-1&&a.append(document.createElement("br"))}i.append(a)}else kl.render({xfaHtml:r,div:i,intent:"richText"});i.firstChild.classList.add("richText",t),n.append(i)}var eN=ze(4972),tN=ze(4628),rN=ze(7642),nN=ze(8004),iN=ze(3853),aN=ze(5876),sN=ze(2475),oN=ze(5024),cN=ze(1698),lN=ze(9314),uN=ze(1148),hN=ze(3579),fN=ze(8335),nd=class r{#e=null;#t=null;#n;#r=null;#s=null;#i=null;#a=null;#o=null;static#l=null;constructor(e){this.#n=e,r.#l||=Object.freeze({freetext:"pdfjs-editor-remove-freetext-button",highlight:"pdfjs-editor-remove-highlight-button",ink:"pdfjs-editor-remove-ink-button",stamp:"pdfjs-editor-remove-stamp-button",signature:"pdfjs-editor-remove-signature-button"})}render(){let e=this.#e=document.createElement("div");e.classList.add("editToolbar","hidden"),e.setAttribute("role","toolbar");let t=this.#n._uiManager._signal;t instanceof AbortSignal&&!t.aborted&&(e.addEventListener("contextmenu",en,{signal:t}),e.addEventListener("pointerdown",r.#c,{signal:t}));let n=this.#r=document.createElement("div");n.className="buttons",e.append(n);let i=this.#n.toolbarPosition;if(i){let{style:a}=e,s=this.#n._uiManager.direction==="ltr"?1-i[0]:i[0];a.insetInlineEnd=`${100*s}%`,a.top=`calc(${100*i[1]}% + var(--editor-toolbar-vert-offset))`}return e}get div(){return this.#e}static#c(e){e.stopPropagation()}#f(e){this.#n._focusEventsAllowed=!1,Tt(e)}#h(e){this.#n._focusEventsAllowed=!0,Tt(e)}#d(e){let t=this.#n._uiManager._signal;return!(t instanceof AbortSignal)||t.aborted?!1:(e.addEventListener("focusin",this.#f.bind(this),{capture:!0,signal:t}),e.addEventListener("focusout",this.#h.bind(this),{capture:!0,signal:t}),e.addEventListener("contextmenu",en,{signal:t}),!0)}hide(){this.#e.classList.add("hidden"),this.#t?.hideDropdown()}show(){this.#e.classList.remove("hidden"),this.#s?.shown(),this.#i?.shown()}addDeleteButton(){let{editorType:e,_uiManager:t}=this.#n,n=document.createElement("button");n.classList.add("basic","deleteButton"),n.tabIndex=0,n.setAttribute("data-l10n-id",r.#l[e]),this.#d(n)&&n.addEventListener("click",i=>{t.delete()},{signal:t._signal}),this.#r.append(n)}get#m(){let e=document.createElement("div");return e.className="divider",e}async addAltText(e){let t=await e.render();this.#d(t),this.#r.append(t,this.#m),this.#s=e}addComment(e,t=null){if(this.#i)return;let n=e.renderForToolbar();if(!n)return;this.#d(n);let i=this.#a=this.#m;t?(this.#r.insertBefore(n,t),this.#r.insertBefore(i,t)):this.#r.append(n,i),this.#i=e,e.toolbar=this}addColorPicker(e){if(this.#t)return;this.#t=e;let t=e.renderButton();this.#d(t),this.#r.append(t,this.#m)}async addEditSignatureButton(e){let t=this.#o=await e.renderEditButton(this.#n);this.#d(t),this.#r.append(t,this.#m)}removeButton(e){e==="comment"&&(this.#i?.removeToolbarCommentButton(),this.#i=null,this.#a?.remove(),this.#a=null)}async addButton(e,t){switch(e){case"colorPicker":this.addColorPicker(t);break;case"altText":await this.addAltText(t);break;case"editSignature":await this.addEditSignatureButton(t);break;case"delete":this.addDeleteButton();break;case"comment":this.addComment(t);break}}async addButtonBefore(e,t,n){let i=this.#r.querySelector(n);i&&e==="comment"&&this.addComment(t,i)}updateEditSignatureButton(e){this.#o&&(this.#o.title=e)}remove(){this.#e.remove(),this.#t?.destroy(),this.#t=null}},id=class{#e=null;#t=null;#n;constructor(e){this.#n=e}#r(){let e=this.#t=document.createElement("div");e.className="editToolbar",e.setAttribute("role","toolbar");let t=this.#n._signal;t instanceof AbortSignal&&!t.aborted&&e.addEventListener("contextmenu",en,{signal:t});let n=this.#e=document.createElement("div");return n.className="buttons",e.append(n),this.#n.hasCommentManager()&&this.#i("commentButton","pdfjs-comment-floating-button","pdfjs-comment-floating-button-label",()=>{this.#n.commentSelection("floating_button")}),this.#i("highlightButton","pdfjs-highlight-floating-button1","pdfjs-highlight-floating-button-label",()=>{this.#n.highlightSelection("floating_button")}),e}#s(e,t){let n=0,i=0;for(let a of e){let s=a.y+a.height;if(s<n)continue;let o=a.x+(t?a.width:0);if(s>n){i=o,n=s;continue}t?o>i&&(i=o):o<i&&(i=o)}return[t?1-i:i,n]}show(e,t,n){let[i,a]=this.#s(t,n),{style:s}=this.#t||=this.#r();e.append(this.#t),s.insetInlineEnd=`${100*i}%`,s.top=`calc(${100*a}% + var(--editor-toolbar-vert-offset))`}hide(){this.#t.remove()}#i(e,t,n,i){let a=document.createElement("button");a.classList.add("basic",e),a.tabIndex=0,a.setAttribute("data-l10n-id",t);let s=document.createElement("span");a.append(s),s.className="visuallyHidden",s.setAttribute("data-l10n-id",n);let o=this.#n._signal;o instanceof AbortSignal&&!o.aborted&&(a.addEventListener("contextmenu",en,{signal:o}),a.addEventListener("click",i,{signal:o})),this.#e.append(a)}};function ux(r,e,t){for(let n of t)e.addEventListener(n,r[n].bind(r))}var ad=class{#e=0;get id(){return`${io}${this.#e++}`}},sd=class r{#e=ox();#t=0;#n=null;static get _isSVGFittingCanvas(){let e='data:image/svg+xml;charset=UTF-8,<svg viewBox="0 0 1 1" width="1" height="1" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" style="fill:red;"/></svg>',n=new OffscreenCanvas(1,3).getContext("2d",{willReadFrequently:!0}),i=new Image;i.src=e;let a=i.decode().then(()=>(n.drawImage(i,0,0,1,1,0,0,1,3),new Uint32Array(n.getImageData(0,0,1,1).data.buffer)[0]===0));return Ge(this,"_isSVGFittingCanvas",a)}async#r(e,t){this.#n||=new Map;let n=this.#n.get(e);if(n===null)return null;if(n?.bitmap)return n.refCounter+=1,n;try{n||={bitmap:null,id:`image_${this.#e}_${this.#t++}`,refCounter:0,isSvg:!1};let i;if(typeof t=="string"?(n.url=t,i=await Do(t,"blob")):t instanceof File?i=n.file=t:t instanceof Blob&&(i=t),i.type==="image/svg+xml"){let a=r._isSVGFittingCanvas,s=new FileReader,o=new Image,c=new Promise((u,h)=>{o.onload=()=>{n.bitmap=o,n.isSvg=!0,u()},s.onload=async()=>{let f=n.svgUrl=s.result;o.src=await a?`${f}#svgView(preserveAspectRatio(none))`:f},o.onerror=s.onerror=h});s.readAsDataURL(i),await c}else n.bitmap=await createImageBitmap(i);n.refCounter=1}catch(i){Ne(i),n=null}return this.#n.set(e,n),n&&this.#n.set(n.id,n),n}async getFromFile(e){let{lastModified:t,name:n,size:i,type:a}=e;return this.#r(`${t}_${n}_${i}_${a}`,e)}async getFromUrl(e){return this.#r(e,e)}async getFromBlob(e,t){let n=await t;return this.#r(e,n)}async getFromId(e){this.#n||=new Map;let t=this.#n.get(e);if(!t)return null;if(t.bitmap)return t.refCounter+=1,t;if(t.file)return this.getFromFile(t.file);if(t.blobPromise){let{blobPromise:n}=t;return delete t.blobPromise,this.getFromBlob(t.id,n)}return this.getFromUrl(t.url)}getFromCanvas(e,t){this.#n||=new Map;let n=this.#n.get(e);if(n?.bitmap)return n.refCounter+=1,n;let i=new OffscreenCanvas(t.width,t.height);return i.getContext("2d").drawImage(t,0,0),n={bitmap:i.transferToImageBitmap(),id:`image_${this.#e}_${this.#t++}`,refCounter:1,isSvg:!1},this.#n.set(e,n),this.#n.set(n.id,n),n}getSvgUrl(e){let t=this.#n.get(e);return t?.isSvg?t.svgUrl:null}deleteId(e){this.#n||=new Map;let t=this.#n.get(e);if(!t||(t.refCounter-=1,t.refCounter!==0))return;let{bitmap:n}=t;if(!t.url&&!t.file){let i=new OffscreenCanvas(n.width,n.height);i.getContext("bitmaprenderer").transferFromImageBitmap(n),t.blobPromise=i.convertToBlob()}n.close?.(),t.bitmap=null}isValidId(e){return e.startsWith(`image_${this.#e}_`)}},od=class{#e=[];#t=!1;#n;#r=-1;constructor(e=128){this.#n=e}add({cmd:e,undo:t,post:n,mustExec:i,type:a=NaN,overwriteIfSameType:s=!1,keepUndo:o=!1}){if(i&&e(),this.#t)return;let c={cmd:e,undo:t,post:n,type:a};if(this.#r===-1){this.#e.length>0&&(this.#e.length=0),this.#r=0,this.#e.push(c);return}if(s&&this.#e[this.#r].type===a){o&&(c.undo=this.#e[this.#r].undo),this.#e[this.#r]=c;return}let u=this.#r+1;u===this.#n?this.#e.splice(0,1):(this.#r=u,u<this.#e.length&&this.#e.splice(u)),this.#e.push(c)}undo(){if(this.#r===-1)return;this.#t=!0;let{undo:e,post:t}=this.#e[this.#r];e(),t?.(),this.#t=!1,this.#r-=1}redo(){if(this.#r<this.#e.length-1){this.#r+=1,this.#t=!0;let{cmd:e,post:t}=this.#e[this.#r];e(),t?.(),this.#t=!1}}hasSomethingToUndo(){return this.#r!==-1}hasSomethingToRedo(){return this.#r<this.#e.length-1}cleanType(e){if(this.#r!==-1){for(let t=this.#r;t>=0;t--)if(this.#e[t].type!==e){this.#e.splice(t+1,this.#r-t),this.#r=t;return}this.#e.length=0,this.#r=-1}}destroy(){this.#e=null}},Gi=class{constructor(e){this.buffer=[],this.callbacks=new Map,this.allKeys=new Set;let{isMac:t}=Mt.platform;for(let[n,i,a={}]of e)for(let s of n){let o=s.startsWith("mac+");t&&o?(this.callbacks.set(s.slice(4),{callback:i,options:a}),this.allKeys.add(s.split("+").at(-1))):!t&&!o&&(this.callbacks.set(s,{callback:i,options:a}),this.allKeys.add(s.split("+").at(-1)))}}#e(e){e.altKey&&this.buffer.push("alt"),e.ctrlKey&&this.buffer.push("ctrl"),e.metaKey&&this.buffer.push("meta"),e.shiftKey&&this.buffer.push("shift"),this.buffer.push(e.key);let t=this.buffer.join("+");return this.buffer.length=0,t}exec(e,t){if(!this.allKeys.has(t.key))return;let n=this.callbacks.get(this.#e(t));if(!n)return;let{callback:i,options:{bubbles:a=!1,args:s=[],checker:o=null}}=n;o&&!o(e,t)||(i.bind(e,...s,t)(),a||Tt(t))}},cd=class r{static _colorsMapping=new Map([["CanvasText",[0,0,0]],["Canvas",[255,255,255]]]);get _colors(){let e=new Map([["CanvasText",null],["Canvas",null]]);return iS(e),Ge(this,"_colors",e)}convert(e){let t=To(e);if(!window.matchMedia("(forced-colors: active)").matches)return t;for(let[n,i]of this._colors)if(i.every((a,s)=>a===t[s]))return r._colorsMapping.get(n);return t}getHexCode(e){let t=this._colors.get(e);return t?Re.makeHexColor(...t):e}},Xi=class r{#e=new AbortController;#t=null;#n=null;#r=new Map;#s=new Map;#i=null;#a=null;#o=null;#l=new od;#c=null;#f=null;#h=null;#d=0;#m=new Set;#p=null;#u=null;#g=new Set;_editorUndoBar=null;#x=!1;#y=!1;#v=!1;#E=null;#D=null;#b=null;#S=null;#_=!1;#T=null;#k=new ad;#C=!1;#F=!1;#P=!1;#I=null;#O=null;#L=null;#B=null;#j=null;#A=Ve.NONE;#w=new Set;#R=null;#M=null;#H=null;#$=null;#X=null;#q={isEditing:!1,isEmpty:!0,hasSomethingToUndo:!1,hasSomethingToRedo:!1,hasSelectedEditor:!1,hasSelectedText:!1};#V=[0,0];#N=null;#G=null;#J=null;#Q=null;#W=null;static TRANSLATE_SMALL=1;static TRANSLATE_BIG=10;static get _keyboardManager(){let e=r.prototype,t=s=>s.#G.contains(document.activeElement)&&document.activeElement.tagName!=="BUTTON"&&s.hasSomethingToControl(),n=(s,{target:o})=>{if(o instanceof HTMLInputElement){let{type:c}=o;return c!=="text"&&c!=="number"}return!0},i=this.TRANSLATE_SMALL,a=this.TRANSLATE_BIG;return Ge(this,"_keyboardManager",new Gi([[["ctrl+a","mac+meta+a"],e.selectAll,{checker:n}],[["ctrl+z","mac+meta+z"],e.undo,{checker:n}],[["ctrl+y","ctrl+shift+z","mac+meta+shift+z","ctrl+shift+Z","mac+meta+shift+Z"],e.redo,{checker:n}],[["Backspace","alt+Backspace","ctrl+Backspace","shift+Backspace","mac+Backspace","mac+alt+Backspace","mac+ctrl+Backspace","Delete","ctrl+Delete","shift+Delete","mac+Delete"],e.delete,{checker:n}],[["Enter","mac+Enter"],e.addNewEditorFromKeyboard,{checker:(s,{target:o})=>!(o instanceof HTMLButtonElement)&&s.#G.contains(o)&&!s.isEnterHandled}],[[" ","mac+ "],e.addNewEditorFromKeyboard,{checker:(s,{target:o})=>!(o instanceof HTMLButtonElement)&&s.#G.contains(document.activeElement)}],[["Escape","mac+Escape"],e.unselectAll],[["ArrowLeft","mac+ArrowLeft"],e.translateSelectedEditors,{args:[-i,0],checker:t}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],e.translateSelectedEditors,{args:[-a,0],checker:t}],[["ArrowRight","mac+ArrowRight"],e.translateSelectedEditors,{args:[i,0],checker:t}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],e.translateSelectedEditors,{args:[a,0],checker:t}],[["ArrowUp","mac+ArrowUp"],e.translateSelectedEditors,{args:[0,-i],checker:t}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],e.translateSelectedEditors,{args:[0,-a],checker:t}],[["ArrowDown","mac+ArrowDown"],e.translateSelectedEditors,{args:[0,i],checker:t}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],e.translateSelectedEditors,{args:[0,a],checker:t}]]))}constructor(e,t,n,i,a,s,o,c,u,h,f,d,p,m,g,x){let y=this._signal=this.#e.signal;this.#G=e,this.#J=t,this.#Q=n,this.#i=i,this.#c=a,this.#M=s,this.#X=c,this._eventBus=o,o._on("editingaction",this.onEditingAction.bind(this),{signal:y}),o._on("pagechanging",this.onPageChanging.bind(this),{signal:y}),o._on("scalechanging",this.onScaleChanging.bind(this),{signal:y}),o._on("rotationchanging",this.onRotationChanging.bind(this),{signal:y}),o._on("setpreference",this.onSetPreference.bind(this),{signal:y}),o._on("switchannotationeditorparams",b=>this.updateParams(b.type,b.value),{signal:y}),window.addEventListener("pointerdown",()=>{this.#F=!0},{capture:!0,signal:y}),window.addEventListener("pointerup",()=>{this.#F=!1},{capture:!0,signal:y}),this.#ce(),this.#fe(),this.#te(),this.#a=c.annotationStorage,this.#E=c.filterFactory,this.#H=u,this.#S=h||null,this.#x=f,this.#y=d,this.#v=p,this.#j=m||null,this.viewParameters={realScale:mi.PDF_TO_CSS_UNITS,rotation:0},this.isShiftKeyDown=!1,this._editorUndoBar=g||null,this._supportsPinchToZoom=x!==!1,a?.setSidebarUiManager(this)}destroy(){this.#W?.resolve(),this.#W=null,this.#e?.abort(),this.#e=null,this._signal=null;for(let e of this.#s.values())e.destroy();this.#s.clear(),this.#r.clear(),this.#g.clear(),this.#B?.clear(),this.#t=null,this.#w.clear(),this.#l.destroy(),this.#i?.destroy(),this.#c?.destroy(),this.#M?.destroy(),this.#T?.hide(),this.#T=null,this.#L?.destroy(),this.#L=null,this.#n=null,this.#D&&(clearTimeout(this.#D),this.#D=null),this.#N&&(clearTimeout(this.#N),this.#N=null),this._editorUndoBar?.destroy(),this.#X=null}combinedSignal(e){return AbortSignal.any([this._signal,e.signal])}get mlManager(){return this.#j}get useNewAltTextFlow(){return this.#y}get useNewAltTextWhenAddingImage(){return this.#v}get hcmFilter(){return Ge(this,"hcmFilter",this.#H?this.#E.addHCMFilter(this.#H.foreground,this.#H.background):"none")}get direction(){return Ge(this,"direction",getComputedStyle(this.#G).direction)}get _highlightColors(){return Ge(this,"_highlightColors",this.#S?new Map(this.#S.split(",").map(e=>(e=e.split("=").map(t=>t.trim()),e[1]=e[1].toUpperCase(),e))):null)}get highlightColors(){let{_highlightColors:e}=this;if(!e)return Ge(this,"highlightColors",null);let t=new Map,n=!!this.#H;for(let[i,a]of e){let s=i.endsWith("_HCM");if(n&&s){t.set(i.replace("_HCM",""),a);continue}!n&&!s&&t.set(i,a)}return Ge(this,"highlightColors",t)}get highlightColorNames(){return Ge(this,"highlightColorNames",this.highlightColors?new Map(Array.from(this.highlightColors,e=>e.reverse())):null)}getNonHCMColor(e){if(!this._highlightColors)return e;let t=this.highlightColorNames.get(e);return this._highlightColors.get(t)||e}getNonHCMColorName(e){return this.highlightColorNames.get(e)||e}setCurrentDrawingSession(e){e?(this.unselectAll(),this.disableUserSelect(!0)):this.disableUserSelect(!1),this.#h=e}setMainHighlightColorPicker(e){this.#L=e}editAltText(e,t=!1){this.#i?.editAltText(this,e,t)}hasCommentManager(){return!!this.#c}editComment(e,t,n,i){this.#c?.showDialog(this,e,t,n,i)}selectComment(e,t){this.#s.get(e)?.getEditorByUID(t)?.toggleComment(!0,!0)}updateComment(e){this.#c?.updateComment(e.getData())}updatePopupColor(e){this.#c?.updatePopupColor(e)}removeComment(e){this.#c?.removeComments([e.uid])}toggleComment(e,t,n=void 0){this.#c?.toggleCommentPopup(e,t,n)}makeCommentColor(e,t){return e&&this.#c?.makeCommentColor(e,t)||null}getCommentDialogElement(){return this.#c?.dialogElement||null}async waitForEditorsRendered(e){if(this.#s.has(e-1))return;let{resolve:t,promise:n}=Promise.withResolvers(),i=a=>{a.pageNumber===e&&(this._eventBus._off("editorsrendered",i),t())};this._eventBus.on("editorsrendered",i),await n}getSignature(e){this.#M?.getSignature({uiManager:this,editor:e})}get signatureManager(){return this.#M}switchToMode(e,t){this._eventBus.on("annotationeditormodechanged",t,{once:!0,signal:this._signal}),this._eventBus.dispatch("showannotationeditorui",{source:this,mode:e})}setPreference(e,t){this._eventBus.dispatch("setpreference",{source:this,name:e,value:t})}onSetPreference({name:e,value:t}){e==="enableNewAltTextWhenAddingImage"&&(this.#v=t)}onPageChanging({pageNumber:e}){this.#d=e-1}focusMainContainer(){this.#G.focus()}findParent(e,t){for(let n of this.#s.values()){let{x:i,y:a,width:s,height:o}=n.div.getBoundingClientRect();if(e>=i&&e<=i+s&&t>=a&&t<=a+o)return n}return null}disableUserSelect(e=!1){this.#J.classList.toggle("noUserSelect",e)}addShouldRescale(e){this.#g.add(e)}removeShouldRescale(e){this.#g.delete(e)}onScaleChanging({scale:e}){this.commitOrRemove(),this.viewParameters.realScale=e*mi.PDF_TO_CSS_UNITS;for(let t of this.#g)t.onScaleChanging();this.#h?.onScaleChanging()}onRotationChanging({pagesRotation:e}){this.commitOrRemove(),this.viewParameters.rotation=e}#Z({anchorNode:e}){return e.nodeType===Node.TEXT_NODE?e.parentElement:e}#ee(e){let{currentLayer:t}=this;if(t.hasTextLayer(e))return t;for(let n of this.#s.values())if(n.hasTextLayer(e))return n;return null}highlightSelection(e="",t=!1){let n=document.getSelection();if(!n||n.isCollapsed)return;let{anchorNode:i,anchorOffset:a,focusNode:s,focusOffset:o}=n,c=n.toString(),h=this.#Z(n).closest(".textLayer"),f=this.getSelectionBoxes(h);if(!f)return;n.empty();let d=this.#ee(h),p=this.#A===Ve.NONE,m=()=>{let g=d?.createAndAddNewEditor({x:0,y:0},!1,{methodOfCreation:e,boxes:f,anchorNode:i,anchorOffset:a,focusNode:s,focusOffset:o,text:c});p&&this.showAllEditors("highlight",!0,!0),t&&g?.editComment()};if(p){this.switchToMode(Ve.HIGHLIGHT,m);return}m()}commentSelection(e=""){this.highlightSelection(e,!0)}#se(){let e=document.getSelection();if(!e||e.isCollapsed)return;let n=this.#Z(e).closest(".textLayer"),i=this.getSelectionBoxes(n);i&&(this.#T||=new id(this),this.#T.show(n,i,this.direction==="ltr"))}getAndRemoveDataFromAnnotationStorage(e){if(!this.#a)return null;let t=`${io}${e}`,n=this.#a.getRawValue(t);return n&&this.#a.remove(t),n}addToAnnotationStorage(e){!e.isEmpty()&&this.#a&&!this.#a.has(e.id)&&this.#a.setValue(e.id,e)}a11yAlert(e,t=null){let n=this.#Q;n&&(n.setAttribute("data-l10n-id",e),t?n.setAttribute("data-l10n-args",JSON.stringify(t)):n.removeAttribute("data-l10n-args"))}#oe(){let e=document.getSelection();if(!e||e.isCollapsed){this.#R&&(this.#T?.hide(),this.#R=null,this.#U({hasSelectedText:!1}));return}let{anchorNode:t}=e;if(t===this.#R)return;let i=this.#Z(e).closest(".textLayer");if(!i){this.#R&&(this.#T?.hide(),this.#R=null,this.#U({hasSelectedText:!1}));return}if(this.#T?.hide(),this.#R=t,this.#U({hasSelectedText:!0}),!(this.#A!==Ve.HIGHLIGHT&&this.#A!==Ve.NONE)&&(this.#A===Ve.HIGHLIGHT&&this.showAllEditors("highlight",!0,!0),this.#_=this.isShiftKeyDown,!this.isShiftKeyDown)){let a=this.#A===Ve.HIGHLIGHT?this.#ee(i):null;if(a?.toggleDrawing(),this.#F){let s=new AbortController,o=this.combinedSignal(s),c=u=>{u.type==="pointerup"&&u.button!==0||(s.abort(),a?.toggleDrawing(!0),u.type==="pointerup"&&this.#Y("main_toolbar"))};window.addEventListener("pointerup",c,{signal:o}),window.addEventListener("blur",c,{signal:o})}else a?.toggleDrawing(!0),this.#Y("main_toolbar")}}#Y(e=""){this.#A===Ve.HIGHLIGHT?this.highlightSelection(e):this.#x&&this.#se()}#ce(){document.addEventListener("selectionchange",this.#oe.bind(this),{signal:this._signal})}#le(){if(this.#b)return;this.#b=new AbortController;let e=this.combinedSignal(this.#b);window.addEventListener("focus",this.focus.bind(this),{signal:e}),window.addEventListener("blur",this.blur.bind(this),{signal:e})}#ue(){this.#b?.abort(),this.#b=null}blur(){if(this.isShiftKeyDown=!1,this.#_&&(this.#_=!1,this.#Y("main_toolbar")),!this.hasSelection)return;let{activeElement:e}=document;for(let t of this.#w)if(t.div.contains(e)){this.#O=[t,e],t._focusEventsAllowed=!1;break}}focus(){if(!this.#O)return;let[e,t]=this.#O;this.#O=null,t.addEventListener("focusin",()=>{e._focusEventsAllowed=!0},{once:!0,signal:this._signal}),t.focus()}#te(){if(this.#I)return;this.#I=new AbortController;let e=this.combinedSignal(this.#I);window.addEventListener("keydown",this.keydown.bind(this),{signal:e}),window.addEventListener("keyup",this.keyup.bind(this),{signal:e})}#he(){this.#I?.abort(),this.#I=null}#re(){if(this.#f)return;this.#f=new AbortController;let e=this.combinedSignal(this.#f);document.addEventListener("copy",this.copy.bind(this),{signal:e}),document.addEventListener("cut",this.cut.bind(this),{signal:e}),document.addEventListener("paste",this.paste.bind(this),{signal:e})}#ne(){this.#f?.abort(),this.#f=null}#fe(){let e=this._signal;document.addEventListener("dragover",this.dragOver.bind(this),{signal:e}),document.addEventListener("drop",this.drop.bind(this),{signal:e})}addEditListeners(){this.#te(),this.#re()}removeEditListeners(){this.#he(),this.#ne()}dragOver(e){for(let{type:t}of e.dataTransfer.items)for(let n of this.#u)if(n.isHandlingMimeForPasting(t)){e.dataTransfer.dropEffect="copy",e.preventDefault();return}}drop(e){for(let t of e.dataTransfer.items)for(let n of this.#u)if(n.isHandlingMimeForPasting(t.type)){n.paste(t,this.currentLayer),e.preventDefault();return}}copy(e){if(e.preventDefault(),this.#t?.commitOrRemove(),!this.hasSelection)return;let t=[];for(let n of this.#w){let i=n.serialize(!0);i&&t.push(i)}t.length!==0&&e.clipboardData.setData("application/pdfjs",JSON.stringify(t))}cut(e){this.copy(e),this.delete()}async paste(e){e.preventDefault();let{clipboardData:t}=e;for(let a of t.items)for(let s of this.#u)if(s.isHandlingMimeForPasting(a.type)){s.paste(a,this.currentLayer);return}let n=t.getData("application/pdfjs");if(!n)return;try{n=JSON.parse(n)}catch(a){Ne(`paste: "${a.message}".`);return}if(!Array.isArray(n))return;this.unselectAll();let i=this.currentLayer;try{let a=[];for(let c of n){let u=await i.deserialize(c);if(!u)return;a.push(u)}let s=()=>{for(let c of a)this.#ie(c);this.#ae(a)},o=()=>{for(let c of a)c.remove()};this.addCommands({cmd:s,undo:o,mustExec:!0})}catch(a){Ne(`paste: "${a.message}".`)}}keydown(e){!this.isShiftKeyDown&&e.key==="Shift"&&(this.isShiftKeyDown=!0),this.#A!==Ve.NONE&&!this.isEditorHandlingKeyboard&&r._keyboardManager.exec(this,e)}keyup(e){this.isShiftKeyDown&&e.key==="Shift"&&(this.isShiftKeyDown=!1,this.#_&&(this.#_=!1,this.#Y("main_toolbar")))}onEditingAction({name:e}){switch(e){case"undo":case"redo":case"delete":case"selectAll":this[e]();break;case"highlightSelection":this.highlightSelection("context_menu");break;case"commentSelection":this.commentSelection("context_menu");break}}#U(e){Object.entries(e).some(([n,i])=>this.#q[n]!==i)&&(this._eventBus.dispatch("annotationeditorstateschanged",{source:this,details:Object.assign(this.#q,e)}),this.#A===Ve.HIGHLIGHT&&e.hasSelectedEditor===!1&&this.#z([[qe.HIGHLIGHT_FREE,!0]]))}#z(e){this._eventBus.dispatch("annotationeditorparamschanged",{source:this,details:e})}setEditingState(e){e?(this.#le(),this.#re(),this.#U({isEditing:this.#A!==Ve.NONE,isEmpty:this.#K(),hasSomethingToUndo:this.#l.hasSomethingToUndo(),hasSomethingToRedo:this.#l.hasSomethingToRedo(),hasSelectedEditor:!1})):(this.#ue(),this.#ne(),this.#U({isEditing:!1}),this.disableUserSelect(!1))}registerEditorTypes(e){if(!this.#u){this.#u=e;for(let t of this.#u)this.#z(t.defaultPropertiesToUpdate)}}getId(){return this.#k.id}get currentLayer(){return this.#s.get(this.#d)}getLayer(e){return this.#s.get(e)}get currentPageIndex(){return this.#d}addLayer(e){this.#s.set(e.pageIndex,e),this.#C?e.enable():e.disable()}removeLayer(e){this.#s.delete(e.pageIndex)}async updateMode(e,t=null,n=!1,i=!1,a=!1){if(this.#A!==e&&!(this.#W&&(await this.#W.promise,!this.#W))){if(this.#W=Promise.withResolvers(),this.#h?.commitOrRemove(),this.#A===Ve.POPUP&&this.#c?.hideSidebar(),this.#c?.destroyPopup(),this.#A=e,e===Ve.NONE){this.setEditingState(!1),this.#pe();for(let s of this.#r.values())s.hideStandaloneCommentButton();this._editorUndoBar?.hide(),this.toggleComment(null),this.#W.resolve();return}for(let s of this.#r.values())s.addStandaloneCommentButton();e===Ve.SIGNATURE&&await this.#M?.loadSignatures(),this.setEditingState(!0),await this.#de(),this.unselectAll();for(let s of this.#s.values())s.updateMode(e);if(e===Ve.POPUP){this.#n||=await this.#X.getAnnotationsByType(new Set(this.#u.map(c=>c._editorType)));let s=new Set,o=[];for(let c of this.#r.values()){let{annotationElementId:u,hasComment:h,deleted:f}=c;u&&s.add(u),h&&!f&&o.push(c.getData())}for(let c of this.#n){let{id:u,popupRef:h,contentsObj:f}=c;h&&f?.str&&!s.has(u)&&!this.#m.has(u)&&o.push(c)}this.#c?.showSidebar(o)}if(!t){n&&this.addNewEditorFromKeyboard(),this.#W.resolve();return}for(let s of this.#r.values())s.uid===t?(this.setSelected(s),a?s.editComment():i?s.enterInEditMode():s.focus()):s.unselect();this.#W.resolve()}}addNewEditorFromKeyboard(){this.currentLayer.canCreateNewEmptyEditor()&&this.currentLayer.addNewEditor()}updateToolbar(e){e.mode!==this.#A&&this._eventBus.dispatch("switchannotationeditormode",{source:this,...e})}updateParams(e,t){if(this.#u){switch(e){case qe.CREATE:this.currentLayer.addNewEditor(t);return;case qe.HIGHLIGHT_SHOW_ALL:this._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",data:{type:"highlight",action:"toggle_visibility"}}}),(this.#$||=new Map).set(e,t),this.showAllEditors("highlight",t);break}if(this.hasSelection)for(let n of this.#w)n.updateParams(e,t);else for(let n of this.#u)n.updateDefaultParams(e,t)}}showAllEditors(e,t,n=!1){for(let a of this.#r.values())a.editorType===e&&a.show(t);(this.#$?.get(qe.HIGHLIGHT_SHOW_ALL)??!0)!==t&&this.#z([[qe.HIGHLIGHT_SHOW_ALL,t]])}enableWaiting(e=!1){if(this.#P!==e){this.#P=e;for(let t of this.#s.values())e?t.disableClick():t.enableClick(),t.div.classList.toggle("waiting",e)}}async#de(){if(!this.#C){this.#C=!0;let e=[];for(let t of this.#s.values())e.push(t.enable());await Promise.all(e);for(let t of this.#r.values())t.enable()}}#pe(){if(this.unselectAll(),this.#C){this.#C=!1;for(let e of this.#s.values())e.disable();for(let e of this.#r.values())e.disable()}}*getEditors(e){for(let t of this.#r.values())t.pageIndex===e&&(yield t)}getEditor(e){return this.#r.get(e)}addEditor(e){this.#r.set(e.id,e)}removeEditor(e){e.div.contains(document.activeElement)&&(this.#D&&clearTimeout(this.#D),this.#D=setTimeout(()=>{this.focusMainContainer(),this.#D=null},0)),this.#r.delete(e.id),e.annotationElementId&&this.#B?.delete(e.annotationElementId),this.unselect(e),(!e.annotationElementId||!this.#m.has(e.annotationElementId))&&this.#a?.remove(e.id)}addDeletedAnnotationElement(e){this.#m.add(e.annotationElementId),this.addChangedExistingAnnotation(e),e.deleted=!0}isDeletedAnnotationElement(e){return this.#m.has(e)}removeDeletedAnnotationElement(e){this.#m.delete(e.annotationElementId),this.removeChangedExistingAnnotation(e),e.deleted=!1}#ie(e){let t=this.#s.get(e.pageIndex);t?t.addOrRebuild(e):(this.addEditor(e),this.addToAnnotationStorage(e))}setActiveEditor(e){this.#t!==e&&(this.#t=e,e&&this.#z(e.propertiesToUpdate))}get#ge(){let e=null;for(e of this.#w);return e}updateUI(e){this.#ge===e&&this.#z(e.propertiesToUpdate)}updateUIForDefaultProperties(e){this.#z(e.defaultPropertiesToUpdate)}toggleSelected(e){if(this.#w.has(e)){this.#w.delete(e),e.unselect(),this.#U({hasSelectedEditor:this.hasSelection});return}this.#w.add(e),e.select(),this.#z(e.propertiesToUpdate),this.#U({hasSelectedEditor:!0})}setSelected(e){this.updateToolbar({mode:e.mode,editId:e.id}),this.#h?.commitOrRemove();for(let t of this.#w)t!==e&&t.unselect();this.#w.clear(),this.#w.add(e),e.select(),this.#z(e.propertiesToUpdate),this.#U({hasSelectedEditor:!0})}isSelected(e){return this.#w.has(e)}get firstSelectedEditor(){return this.#w.values().next().value}unselect(e){e.unselect(),this.#w.delete(e),this.#U({hasSelectedEditor:this.hasSelection})}get hasSelection(){return this.#w.size!==0}get isEnterHandled(){return this.#w.size===1&&this.firstSelectedEditor.isEnterHandled}undo(){this.#l.undo(),this.#U({hasSomethingToUndo:this.#l.hasSomethingToUndo(),hasSomethingToRedo:!0,isEmpty:this.#K()}),this._editorUndoBar?.hide()}redo(){this.#l.redo(),this.#U({hasSomethingToUndo:!0,hasSomethingToRedo:this.#l.hasSomethingToRedo(),isEmpty:this.#K()})}addCommands(e){this.#l.add(e),this.#U({hasSomethingToUndo:!0,hasSomethingToRedo:!1,isEmpty:this.#K()})}cleanUndoStack(e){this.#l.cleanType(e)}#K(){if(this.#r.size===0)return!0;if(this.#r.size===1)for(let e of this.#r.values())return e.isEmpty();return!1}delete(){this.commitOrRemove();let e=this.currentLayer?.endDrawingSession(!0);if(!this.hasSelection&&!e)return;let t=e?[e]:[...this.#w],n=()=>{this._editorUndoBar?.show(i,t.length===1?t[0].editorType:t.length);for(let a of t)a.remove()},i=()=>{for(let a of t)this.#ie(a)};this.addCommands({cmd:n,undo:i,mustExec:!0})}commitOrRemove(){this.#t?.commitOrRemove()}hasSomethingToControl(){return this.#t||this.hasSelection}#ae(e){for(let t of this.#w)t.unselect();this.#w.clear();for(let t of e)t.isEmpty()||(this.#w.add(t),t.select());this.#U({hasSelectedEditor:this.hasSelection})}selectAll(){for(let e of this.#w)e.commit();this.#ae(this.#r.values())}unselectAll(){if(!(this.#t&&(this.#t.commitOrRemove(),this.#A!==Ve.NONE))&&!this.#h?.commitOrRemove()&&this.hasSelection){for(let e of this.#w)e.unselect();this.#w.clear(),this.#U({hasSelectedEditor:!1})}}translateSelectedEditors(e,t,n=!1){if(n||this.commitOrRemove(),!this.hasSelection)return;this.#V[0]+=e,this.#V[1]+=t;let[i,a]=this.#V,s=[...this.#w],o=1e3;this.#N&&clearTimeout(this.#N),this.#N=setTimeout(()=>{this.#N=null,this.#V[0]=this.#V[1]=0,this.addCommands({cmd:()=>{for(let c of s)this.#r.has(c.id)&&(c.translateInPage(i,a),c.translationDone())},undo:()=>{for(let c of s)this.#r.has(c.id)&&(c.translateInPage(-i,-a),c.translationDone())},mustExec:!1})},o);for(let c of s)c.translateInPage(e,t),c.translationDone()}setUpDragSession(){if(this.hasSelection){this.disableUserSelect(!0),this.#p=new Map;for(let e of this.#w)this.#p.set(e,{savedX:e.x,savedY:e.y,savedPageIndex:e.pageIndex,newX:0,newY:0,newPageIndex:-1})}}endDragSession(){if(!this.#p)return!1;this.disableUserSelect(!1);let e=this.#p;this.#p=null;let t=!1;for(let[{x:i,y:a,pageIndex:s},o]of e)o.newX=i,o.newY=a,o.newPageIndex=s,t||=i!==o.savedX||a!==o.savedY||s!==o.savedPageIndex;if(!t)return!1;let n=(i,a,s,o)=>{if(this.#r.has(i.id)){let c=this.#s.get(o);c?i._setParentAndPosition(c,a,s):(i.pageIndex=o,i.x=a,i.y=s)}};return this.addCommands({cmd:()=>{for(let[i,{newX:a,newY:s,newPageIndex:o}]of e)n(i,a,s,o)},undo:()=>{for(let[i,{savedX:a,savedY:s,savedPageIndex:o}]of e)n(i,a,s,o)},mustExec:!0}),!0}dragSelectedEditors(e,t){if(this.#p)for(let n of this.#p.keys())n.drag(e,t)}rebuild(e){if(e.parent===null){let t=this.getLayer(e.pageIndex);t?(t.changeParent(e),t.addOrRebuild(e)):(this.addEditor(e),this.addToAnnotationStorage(e),e.rebuild())}else e.parent.addOrRebuild(e)}get isEditorHandlingKeyboard(){return this.getActive()?.shouldGetKeyboardEvents()||this.#w.size===1&&this.firstSelectedEditor.shouldGetKeyboardEvents()}isActive(e){return this.#t===e}getActive(){return this.#t}getMode(){return this.#A}isEditingMode(){return this.#A!==Ve.NONE}get imageManager(){return Ge(this,"imageManager",new sd)}getSelectionBoxes(e){if(!e)return null;let t=document.getSelection();for(let u=0,h=t.rangeCount;u<h;u++)if(!e.contains(t.getRangeAt(u).commonAncestorContainer))return null;let{x:n,y:i,width:a,height:s}=e.getBoundingClientRect(),o;switch(e.getAttribute("data-main-rotation")){case"90":o=(u,h,f,d)=>({x:(h-i)/s,y:1-(u+f-n)/a,width:d/s,height:f/a});break;case"180":o=(u,h,f,d)=>({x:1-(u+f-n)/a,y:1-(h+d-i)/s,width:f/a,height:d/s});break;case"270":o=(u,h,f,d)=>({x:1-(h+d-i)/s,y:(u-n)/a,width:d/s,height:f/a});break;default:o=(u,h,f,d)=>({x:(u-n)/a,y:(h-i)/s,width:f/a,height:d/s});break}let c=[];for(let u=0,h=t.rangeCount;u<h;u++){let f=t.getRangeAt(u);if(!f.collapsed)for(let{x:d,y:p,width:m,height:g}of f.getClientRects())m===0||g===0||c.push(o(d,p,m,g))}return c.length===0?null:c}addChangedExistingAnnotation({annotationElementId:e,id:t}){(this.#o||=new Map).set(e,t)}removeChangedExistingAnnotation({annotationElementId:e}){this.#o?.delete(e)}renderAnnotationElement(e){let t=this.#o?.get(e.data.id);if(!t)return;let n=this.#a.getRawValue(t);n&&(this.#A===Ve.NONE&&!n.hasBeenModified||n.renderAnnotationElement(e))}setMissingCanvas(e,t,n){let i=this.#B?.get(e);i&&(i.setCanvas(t,n),this.#B.delete(e))}addMissingCanvas(e,t){(this.#B||=new Map).set(e,t)}},Il=class r{#e=null;#t=!1;#n=null;#r=null;#s=null;#i=null;#a=!1;#o=null;#l=null;#c=null;#f=null;#h=!1;static#d=null;static _l10n=null;constructor(e){this.#l=e,this.#h=e._uiManager.useNewAltTextFlow,r.#d||=Object.freeze({added:"pdfjs-editor-new-alt-text-added-button","added-label":"pdfjs-editor-new-alt-text-added-button-label",missing:"pdfjs-editor-new-alt-text-missing-button","missing-label":"pdfjs-editor-new-alt-text-missing-button-label",review:"pdfjs-editor-new-alt-text-to-review-button","review-label":"pdfjs-editor-new-alt-text-to-review-button-label"})}static initialize(e){r._l10n??=e}async render(){let e=this.#n=document.createElement("button");e.className="altText",e.tabIndex="0";let t=this.#r=document.createElement("span");e.append(t),this.#h?(e.classList.add("new"),e.setAttribute("data-l10n-id",r.#d.missing),t.setAttribute("data-l10n-id",r.#d["missing-label"])):(e.setAttribute("data-l10n-id","pdfjs-editor-alt-text-button"),t.setAttribute("data-l10n-id","pdfjs-editor-alt-text-button-label"));let n=this.#l._uiManager._signal;e.addEventListener("contextmenu",en,{signal:n}),e.addEventListener("pointerdown",a=>a.stopPropagation(),{signal:n});let i=a=>{a.preventDefault(),this.#l._uiManager.editAltText(this.#l),this.#h&&this.#l._reportTelemetry({action:"pdfjs.image.alt_text.image_status_label_clicked",data:{label:this.#m}})};return e.addEventListener("click",i,{capture:!0,signal:n}),e.addEventListener("keydown",a=>{a.target===e&&a.key==="Enter"&&(this.#a=!0,i(a))},{signal:n}),await this.#p(),e}get#m(){return this.#e&&"added"||this.#e===null&&this.guessedText&&"review"||"missing"}finish(){this.#n&&(this.#n.focus({focusVisible:this.#a}),this.#a=!1)}isEmpty(){return this.#h?this.#e===null:!this.#e&&!this.#t}hasData(){return this.#h?this.#e!==null||!!this.#c:this.isEmpty()}get guessedText(){return this.#c}async setGuessedText(e){this.#e===null&&(this.#c=e,this.#f=await r._l10n.get("pdfjs-editor-new-alt-text-generated-alt-text-with-disclaimer",{generatedAltText:e}),this.#p())}toggleAltTextBadge(e=!1){if(!this.#h||this.#e){this.#o?.remove(),this.#o=null;return}if(!this.#o){let t=this.#o=document.createElement("div");t.className="noAltTextBadge",this.#l.div.append(t)}this.#o.classList.toggle("hidden",!e)}serialize(e){let t=this.#e;return!e&&this.#c===t&&(t=this.#f),{altText:t,decorative:this.#t,guessedText:this.#c,textWithDisclaimer:this.#f}}get data(){return{altText:this.#e,decorative:this.#t}}set data({altText:e,decorative:t,guessedText:n,textWithDisclaimer:i,cancel:a=!1}){n&&(this.#c=n,this.#f=i),!(this.#e===e&&this.#t===t)&&(a||(this.#e=e,this.#t=t),this.#p())}toggle(e=!1){this.#n&&(!e&&this.#i&&(clearTimeout(this.#i),this.#i=null),this.#n.disabled=!e)}shown(){this.#l._reportTelemetry({action:"pdfjs.image.alt_text.image_status_label_displayed",data:{label:this.#m}})}destroy(){this.#n?.remove(),this.#n=null,this.#r=null,this.#s=null,this.#o?.remove(),this.#o=null}async#p(){let e=this.#n;if(!e)return;if(this.#h){if(e.classList.toggle("done",!!this.#e),e.setAttribute("data-l10n-id",r.#d[this.#m]),this.#r?.setAttribute("data-l10n-id",r.#d[`${this.#m}-label`]),!this.#e){this.#s?.remove();return}}else{if(!this.#e&&!this.#t){e.classList.remove("done"),this.#s?.remove();return}e.classList.add("done"),e.setAttribute("data-l10n-id","pdfjs-editor-alt-text-edit-button")}let t=this.#s;if(!t){this.#s=t=document.createElement("span"),t.className="tooltip",t.setAttribute("role","tooltip"),t.id=`alt-text-tooltip-${this.#l.id}`;let i=100,a=this.#l._uiManager._signal;a.addEventListener("abort",()=>{clearTimeout(this.#i),this.#i=null},{once:!0}),e.addEventListener("mouseenter",()=>{this.#i=setTimeout(()=>{this.#i=null,this.#s.classList.add("show"),this.#l._reportTelemetry({action:"alt_text_tooltip"})},i)},{signal:a}),e.addEventListener("mouseleave",()=>{this.#i&&(clearTimeout(this.#i),this.#i=null),this.#s?.classList.remove("show")},{signal:a})}this.#t?t.setAttribute("data-l10n-id","pdfjs-editor-alt-text-decorative-tooltip"):(t.removeAttribute("data-l10n-id"),t.textContent=this.#e),t.parentNode||e.append(t),this.#l.getElementForAltText()?.setAttribute("aria-describedby",t.id)}},La=class{#e=null;#t=null;#n=!1;#r=null;#s=null;#i=null;#a=null;#o=null;#l=!1;#c=null;constructor(e){this.#r=e}renderForToolbar(){let e=this.#t=document.createElement("button");return e.className="comment",this.#f(e,!1)}renderForStandalone(){let e=this.#e=document.createElement("button");e.className="annotationCommentButton";let t=this.#r.commentButtonPosition;if(t){let{style:n}=e;n.insetInlineEnd=`calc(${100*(this.#r._uiManager.direction==="ltr"?1-t[0]:t[0])}% - var(--comment-button-dim))`,n.top=`calc(${100*t[1]}% - var(--comment-button-dim))`;let i=this.#r.commentButtonColor;i&&(n.backgroundColor=i)}return this.#f(e,!0)}focusButton(){setTimeout(()=>{(this.#e??this.#t)?.focus()},0)}onUpdatedColor(){if(!this.#e)return;let e=this.#r.commentButtonColor;e&&(this.#e.style.backgroundColor=e),this.#r._uiManager.updatePopupColor(this.#r)}get commentButtonWidth(){return(this.#e?.getBoundingClientRect().width??0)/this.#r.parent.boundingClientRect.width}get commentPopupPositionInLayer(){if(this.#c)return this.#c;if(!this.#e)return null;let{x:e,y:t,height:n}=this.#e.getBoundingClientRect(),{x:i,y:a,width:s,height:o}=this.#r.parent.boundingClientRect;return[(e-i)/s,(t+n-a)/o]}set commentPopupPositionInLayer(e){this.#c=e}hasDefaultPopupPosition(){return this.#c===null}removeStandaloneCommentButton(){this.#e?.remove(),this.#e=null}removeToolbarCommentButton(){this.#t?.remove(),this.#t=null}setCommentButtonStates({selected:e,hasPopup:t}){this.#e&&(this.#e.classList.toggle("selected",e),this.#e.ariaExpanded=t)}#f(e,t){if(!this.#r._uiManager.hasCommentManager())return null;e.tabIndex="0",e.ariaHasPopup="dialog",t?(e.ariaControls="commentPopup",e.setAttribute("data-l10n-id","pdfjs-show-comment-button")):(e.ariaControlsElements=[this.#r._uiManager.getCommentDialogElement()],e.setAttribute("data-l10n-id","pdfjs-editor-edit-comment-button"));let n=this.#r._uiManager._signal;if(!(n instanceof AbortSignal)||n.aborted)return e;e.addEventListener("contextmenu",en,{signal:n}),t&&(e.addEventListener("focusin",a=>{this.#r._focusEventsAllowed=!1,Tt(a)},{capture:!0,signal:n}),e.addEventListener("focusout",a=>{this.#r._focusEventsAllowed=!0,Tt(a)},{capture:!0,signal:n})),e.addEventListener("pointerdown",a=>a.stopPropagation(),{signal:n});let i=a=>{a.preventDefault(),e===this.#t?this.edit():this.#r.toggleComment(!0)};return e.addEventListener("click",i,{capture:!0,signal:n}),e.addEventListener("keydown",a=>{a.target===e&&a.key==="Enter"&&(this.#n=!0,i(a))},{signal:n}),e.addEventListener("pointerenter",()=>{this.#r.toggleComment(!1,!0)},{signal:n}),e.addEventListener("pointerleave",()=>{this.#r.toggleComment(!1,!1)},{signal:n}),e}edit(e){let t=this.commentPopupPositionInLayer,n,i;if(t)[n,i]=t;else{[n,i]=this.#r.commentButtonPosition;let{width:h,height:f,x:d,y:p}=this.#r;n=d+n*h,i=p+i*f}let a=this.#r.parent.boundingClientRect,{x:s,y:o,width:c,height:u}=a;this.#r._uiManager.editComment(this.#r,s+n*c,o+i*u,{...e,parentDimensions:a})}finish(){this.#t&&(this.#t.focus({focusVisible:this.#n}),this.#n=!1)}isDeleted(){return this.#l||this.#a===""}isEmpty(){return this.#a===null}hasBeenEdited(){return this.isDeleted()||this.#a!==this.#s}serialize(){return this.data}get data(){return{text:this.#a,richText:this.#i,date:this.#o,deleted:this.isDeleted()}}set data(e){if(e!==this.#a&&(this.#i=null),e===null){this.#a="",this.#l=!0;return}this.#a=e,this.#o=new Date,this.#l=!1}setInitialText(e,t=null){this.#s=e,this.data=e,this.#o=null,this.#i=t}shown(){}destroy(){this.#t?.remove(),this.#t=null,this.#e?.remove(),this.#e=null,this.#a="",this.#i=null,this.#o=null,this.#r=null,this.#n=!1,this.#l=!1}},Rl=class r{#e;#t=!1;#n=null;#r;#s;#i;#a;#o=null;#l;#c=null;#f;#h=null;constructor({container:e,isPinchingDisabled:t=null,isPinchingStopped:n=null,onPinchStart:i=null,onPinching:a=null,onPinchEnd:s=null,signal:o}){this.#e=e,this.#n=n,this.#r=t,this.#s=i,this.#i=a,this.#a=s,this.#f=new AbortController,this.#l=AbortSignal.any([o,this.#f.signal]),e.addEventListener("touchstart",this.#d.bind(this),{passive:!1,signal:this.#l})}get MIN_TOUCH_DISTANCE_TO_PINCH(){return 35/Xn.pixelRatio}#d(e){if(this.#r?.())return;if(e.touches.length===1){if(this.#o)return;let i=this.#o=new AbortController,a=AbortSignal.any([this.#l,i.signal]),s=this.#e,o={capture:!0,signal:a,passive:!1},c=u=>{u.pointerType==="touch"&&(this.#o?.abort(),this.#o=null)};s.addEventListener("pointerdown",u=>{u.pointerType==="touch"&&(Tt(u),c(u))},o),s.addEventListener("pointerup",c,o),s.addEventListener("pointercancel",c,o);return}if(!this.#h){this.#h=new AbortController;let i=AbortSignal.any([this.#l,this.#h.signal]),a=this.#e,s={signal:i,capture:!1,passive:!1};a.addEventListener("touchmove",this.#m.bind(this),s);let o=this.#p.bind(this);a.addEventListener("touchend",o,s),a.addEventListener("touchcancel",o,s),s.capture=!0,a.addEventListener("pointerdown",Tt,s),a.addEventListener("pointermove",Tt,s),a.addEventListener("pointercancel",Tt,s),a.addEventListener("pointerup",Tt,s),this.#s?.()}if(Tt(e),e.touches.length!==2||this.#n?.()){this.#c=null;return}let[t,n]=e.touches;t.identifier>n.identifier&&([t,n]=[n,t]),this.#c={touch0X:t.screenX,touch0Y:t.screenY,touch1X:n.screenX,touch1Y:n.screenY}}#m(e){if(!this.#c||e.touches.length!==2)return;Tt(e);let[t,n]=e.touches;t.identifier>n.identifier&&([t,n]=[n,t]);let{screenX:i,screenY:a}=t,{screenX:s,screenY:o}=n,c=this.#c,{touch0X:u,touch0Y:h,touch1X:f,touch1Y:d}=c,p=f-u,m=d-h,g=s-i,x=o-a,y=Math.hypot(g,x)||1,b=Math.hypot(p,m)||1;if(!this.#t&&Math.abs(b-y)<=r.MIN_TOUCH_DISTANCE_TO_PINCH)return;if(c.touch0X=i,c.touch0Y=a,c.touch1X=s,c.touch1Y=o,!this.#t){this.#t=!0;return}let v=[(i+s)/2,(a+o)/2];this.#i?.(v,b,y)}#p(e){e.touches.length>=2||(this.#h&&(this.#h.abort(),this.#h=null,this.#a?.()),this.#c&&(Tt(e),this.#c=null,this.#t=!1))}destroy(){this.#f?.abort(),this.#f=null,this.#o?.abort(),this.#o=null}},gt=class r{#e=null;#t=null;#n=null;#r=null;#s=null;#i=!1;#a=null;#o="";#l=null;#c=null;#f=null;#h=null;#d=null;#m="";#p=!1;#u=null;#g=!1;#x=!1;#y=!1;#v=null;#E=0;#D=0;#b=null;#S=null;isSelected=!1;_isCopy=!1;_editToolbar=null;_initialOptions=Object.create(null);_initialData=null;_isVisible=!0;_uiManager=null;_focusEventsAllowed=!0;static _l10n=null;static _l10nResizer=null;#_=!1;#T=r._zIndex++;static _borderLineWidth=-1;static _colorManager=new cd;static _zIndex=1;static _telemetryTimeout=1e3;static get _resizerKeyboardManager(){let e=r.prototype._resizeWithKeyboard,t=Xi.TRANSLATE_SMALL,n=Xi.TRANSLATE_BIG;return Ge(this,"_resizerKeyboardManager",new Gi([[["ArrowLeft","mac+ArrowLeft"],e,{args:[-t,0]}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],e,{args:[-n,0]}],[["ArrowRight","mac+ArrowRight"],e,{args:[t,0]}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],e,{args:[n,0]}],[["ArrowUp","mac+ArrowUp"],e,{args:[0,-t]}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],e,{args:[0,-n]}],[["ArrowDown","mac+ArrowDown"],e,{args:[0,t]}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],e,{args:[0,n]}],[["Escape","mac+Escape"],r.prototype._stopResizingWithKeyboard]]))}constructor(e){this.parent=e.parent,this.id=e.id,this.width=this.height=null,this.pageIndex=e.parent.pageIndex,this.name=e.name,this.div=null,this._uiManager=e.uiManager,this.annotationElementId=null,this._willKeepAspectRatio=!1,this._initialOptions.isCentered=e.isCentered,this._structTreeParentId=null,this.annotationElementId=e.annotationElementId||null,this.creationDate=e.creationDate||new Date,this.modificationDate=e.modificationDate||null;let{rotation:t,rawDims:{pageWidth:n,pageHeight:i,pageX:a,pageY:s}}=this.parent.viewport;this.rotation=t,this.pageRotation=(360+t-this._uiManager.viewParameters.rotation)%360,this.pageDimensions=[n,i],this.pageTranslation=[a,s];let[o,c]=this.parentDimensions;this.x=e.x/o,this.y=e.y/c,this.isAttachedToDOM=!1,this.deleted=!1}get editorType(){return Object.getPrototypeOf(this).constructor._type}get mode(){return Object.getPrototypeOf(this).constructor._editorType}static get isDrawer(){return!1}static get _defaultLineColor(){return Ge(this,"_defaultLineColor",this._colorManager.getHexCode("CanvasText"))}static deleteAnnotationElement(e){let t=new ld({id:e.parent.getNextId(),parent:e.parent,uiManager:e._uiManager});t.annotationElementId=e.annotationElementId,t.deleted=!0,t._uiManager.addToAnnotationStorage(t)}static initialize(e,t){if(r._l10n??=e,r._l10nResizer||=Object.freeze({topLeft:"pdfjs-editor-resizer-top-left",topMiddle:"pdfjs-editor-resizer-top-middle",topRight:"pdfjs-editor-resizer-top-right",middleRight:"pdfjs-editor-resizer-middle-right",bottomRight:"pdfjs-editor-resizer-bottom-right",bottomMiddle:"pdfjs-editor-resizer-bottom-middle",bottomLeft:"pdfjs-editor-resizer-bottom-left",middleLeft:"pdfjs-editor-resizer-middle-left"}),r._borderLineWidth!==-1)return;let n=getComputedStyle(document.documentElement);r._borderLineWidth=parseFloat(n.getPropertyValue("--outline-width"))||0}static updateDefaultParams(e,t){}static get defaultPropertiesToUpdate(){return[]}static isHandlingMimeForPasting(e){return!1}static paste(e,t){dt("Not implemented")}get propertiesToUpdate(){return[]}get _isDraggable(){return this.#_}set _isDraggable(e){this.#_=e,this.div?.classList.toggle("draggable",e)}get uid(){return this.annotationElementId||this.id}get isEnterHandled(){return!0}center(){let[e,t]=this.pageDimensions;switch(this.parentRotation){case 90:this.x-=this.height*t/(e*2),this.y+=this.width*e/(t*2);break;case 180:this.x+=this.width/2,this.y+=this.height/2;break;case 270:this.x+=this.height*t/(e*2),this.y-=this.width*e/(t*2);break;default:this.x-=this.width/2,this.y-=this.height/2;break}this.fixAndSetPosition()}addCommands(e){this._uiManager.addCommands(e)}get currentLayer(){return this._uiManager.currentLayer}setInBackground(){this.div.style.zIndex=0}setInForeground(){this.div.style.zIndex=this.#T}setParent(e){e!==null?(this.pageIndex=e.pageIndex,this.pageDimensions=e.pageDimensions):(this.#N(),this.#h?.remove(),this.#h=null),this.parent=e}focusin(e){this._focusEventsAllowed&&(this.#p?this.#p=!1:this.parent.setSelected(this))}focusout(e){!this._focusEventsAllowed||!this.isAttachedToDOM||e.relatedTarget?.closest(`#${this.id}`)||(e.preventDefault(),this.parent?.isMultipleSelection||this.commitOrRemove())}commitOrRemove(){this.isEmpty()?this.remove():this.commit()}commit(){this.isInEditMode()&&this.addToAnnotationStorage()}addToAnnotationStorage(){this._uiManager.addToAnnotationStorage(this)}setAt(e,t,n,i){let[a,s]=this.parentDimensions;[n,i]=this.screenToPageTranslation(n,i),this.x=(e+n)/a,this.y=(t+i)/s,this.fixAndSetPosition()}_moveAfterPaste(e,t){let[n,i]=this.parentDimensions;this.setAt(e*n,t*i,this.width*n,this.height*i),this._onTranslated()}#k([e,t],n,i){[n,i]=this.screenToPageTranslation(n,i),this.x+=n/e,this.y+=i/t,this._onTranslating(this.x,this.y),this.fixAndSetPosition()}translate(e,t){this.#k(this.parentDimensions,e,t)}translateInPage(e,t){this.#u||=[this.x,this.y,this.width,this.height],this.#k(this.pageDimensions,e,t),this.div.scrollIntoView({block:"nearest"})}translationDone(){this._onTranslated(this.x,this.y)}drag(e,t){this.#u||=[this.x,this.y,this.width,this.height];let{div:n,parentDimensions:[i,a]}=this;if(this.x+=e/i,this.y+=t/a,this.parent&&(this.x<0||this.x>1||this.y<0||this.y>1)){let{x:f,y:d}=this.div.getBoundingClientRect();this.parent.findNewParent(this,f,d)&&(this.x-=Math.floor(this.x),this.y-=Math.floor(this.y))}let{x:s,y:o}=this,[c,u]=this.getBaseTranslation();s+=c,o+=u;let{style:h}=n;h.left=`${(100*s).toFixed(2)}%`,h.top=`${(100*o).toFixed(2)}%`,this._onTranslating(s,o),n.scrollIntoView({block:"nearest"})}_onTranslating(e,t){}_onTranslated(e,t){}get _hasBeenMoved(){return!!this.#u&&(this.#u[0]!==this.x||this.#u[1]!==this.y)}get _hasBeenResized(){return!!this.#u&&(this.#u[2]!==this.width||this.#u[3]!==this.height)}getBaseTranslation(){let[e,t]=this.parentDimensions,{_borderLineWidth:n}=r,i=n/e,a=n/t;switch(this.rotation){case 90:return[-i,a];case 180:return[i,a];case 270:return[i,-a];default:return[-i,-a]}}get _mustFixPosition(){return!0}fixAndSetPosition(e=this.rotation){let{div:{style:t},pageDimensions:[n,i]}=this,{x:a,y:s,width:o,height:c}=this;if(o*=n,c*=i,a*=n,s*=i,this._mustFixPosition)switch(e){case 0:a=br(a,0,n-o),s=br(s,0,i-c);break;case 90:a=br(a,0,n-c),s=br(s,o,i);break;case 180:a=br(a,o,n),s=br(s,c,i);break;case 270:a=br(a,c,n),s=br(s,0,i-o);break}this.x=a/=n,this.y=s/=i;let[u,h]=this.getBaseTranslation();a+=u,s+=h,t.left=`${(100*a).toFixed(2)}%`,t.top=`${(100*s).toFixed(2)}%`,this.moveInDOM()}static#C(e,t,n){switch(n){case 90:return[t,-e];case 180:return[-e,-t];case 270:return[-t,e];default:return[e,t]}}screenToPageTranslation(e,t){return r.#C(e,t,this.parentRotation)}pageTranslationToScreen(e,t){return r.#C(e,t,360-this.parentRotation)}#F(e){switch(e){case 90:{let[t,n]=this.pageDimensions;return[0,-t/n,n/t,0]}case 180:return[-1,0,0,-1];case 270:{let[t,n]=this.pageDimensions;return[0,t/n,-n/t,0]}default:return[1,0,0,1]}}get parentScale(){return this._uiManager.viewParameters.realScale}get parentRotation(){return(this._uiManager.viewParameters.rotation+this.pageRotation)%360}get parentDimensions(){let{parentScale:e,pageDimensions:[t,n]}=this;return[t*e,n*e]}setDims(){let{div:{style:e},width:t,height:n}=this;e.width=`${(100*t).toFixed(2)}%`,e.height=`${(100*n).toFixed(2)}%`}getInitialTranslation(){return[0,0]}#P(){if(this.#l)return;this.#l=document.createElement("div"),this.#l.classList.add("resizers");let e=this._willKeepAspectRatio?["topLeft","topRight","bottomRight","bottomLeft"]:["topLeft","topMiddle","topRight","middleRight","bottomRight","bottomMiddle","bottomLeft","middleLeft"],t=this._uiManager._signal;for(let n of e){let i=document.createElement("div");this.#l.append(i),i.classList.add("resizer",n),i.setAttribute("data-resizer-name",n),i.addEventListener("pointerdown",this.#I.bind(this,n),{signal:t}),i.addEventListener("contextmenu",en,{signal:t}),i.tabIndex=-1}this.div.prepend(this.#l)}#I(e,t){t.preventDefault();let{isMac:n}=Mt.platform;if(t.button!==0||t.ctrlKey&&n)return;this.#n?.toggle(!1);let i=this._isDraggable;this._isDraggable=!1,this.#c=[t.screenX,t.screenY];let a=new AbortController,s=this._uiManager.combinedSignal(a);this.parent.togglePointerEvents(!1),window.addEventListener("pointermove",this.#B.bind(this,e),{passive:!0,capture:!0,signal:s}),window.addEventListener("touchmove",Tt,{passive:!1,signal:s}),window.addEventListener("contextmenu",en,{signal:s}),this.#f={savedX:this.x,savedY:this.y,savedWidth:this.width,savedHeight:this.height};let o=this.parent.div.style.cursor,c=this.div.style.cursor;this.div.style.cursor=this.parent.div.style.cursor=window.getComputedStyle(t.target).cursor;let u=()=>{a.abort(),this.parent.togglePointerEvents(!0),this.#n?.toggle(!0),this._isDraggable=i,this.parent.div.style.cursor=o,this.div.style.cursor=c,this.#L()};window.addEventListener("pointerup",u,{signal:s}),window.addEventListener("blur",u,{signal:s})}#O(e,t,n,i){this.width=n,this.height=i,this.x=e,this.y=t,this.setDims(),this.fixAndSetPosition(),this._onResized()}_onResized(){}#L(){if(!this.#f)return;let{savedX:e,savedY:t,savedWidth:n,savedHeight:i}=this.#f;this.#f=null;let a=this.x,s=this.y,o=this.width,c=this.height;a===e&&s===t&&o===n&&c===i||this.addCommands({cmd:this.#O.bind(this,a,s,o,c),undo:this.#O.bind(this,e,t,n,i),mustExec:!0})}static _round(e){return Math.round(e*1e4)/1e4}#B(e,t){let[n,i]=this.parentDimensions,a=this.x,s=this.y,o=this.width,c=this.height,u=r.MIN_SIZE/n,h=r.MIN_SIZE/i,f=this.#F(this.rotation),d=(U,O)=>[f[0]*U+f[2]*O,f[1]*U+f[3]*O],p=this.#F(360-this.rotation),m=(U,O)=>[p[0]*U+p[2]*O,p[1]*U+p[3]*O],g,x,y=!1,b=!1;switch(e){case"topLeft":y=!0,g=(U,O)=>[0,0],x=(U,O)=>[U,O];break;case"topMiddle":g=(U,O)=>[U/2,0],x=(U,O)=>[U/2,O];break;case"topRight":y=!0,g=(U,O)=>[U,0],x=(U,O)=>[0,O];break;case"middleRight":b=!0,g=(U,O)=>[U,O/2],x=(U,O)=>[0,O/2];break;case"bottomRight":y=!0,g=(U,O)=>[U,O],x=(U,O)=>[0,0];break;case"bottomMiddle":g=(U,O)=>[U/2,O],x=(U,O)=>[U/2,0];break;case"bottomLeft":y=!0,g=(U,O)=>[0,O],x=(U,O)=>[U,0];break;case"middleLeft":b=!0,g=(U,O)=>[0,O/2],x=(U,O)=>[U,O/2];break}let v=g(o,c),_=x(o,c),A=d(..._),E=r._round(a+A[0]),T=r._round(s+A[1]),S=1,C=1,F,k;if(t.fromKeyboard)({deltaX:F,deltaY:k}=t);else{let{screenX:U,screenY:O}=t,[P,R]=this.#c;[F,k]=this.screenToPageTranslation(U-P,O-R),this.#c[0]=U,this.#c[1]=O}if([F,k]=m(F/n,k/i),y){let U=Math.hypot(o,c);S=C=Math.max(Math.min(Math.hypot(_[0]-v[0]-F,_[1]-v[1]-k)/U,1/o,1/c),u/o,h/c)}else b?S=br(Math.abs(_[0]-v[0]-F),u,1)/o:C=br(Math.abs(_[1]-v[1]-k),h,1)/c;let D=r._round(o*S),B=r._round(c*C);A=d(...x(D,B));let q=E-A[0],j=T-A[1];this.#u||=[this.x,this.y,this.width,this.height],this.width=D,this.height=B,this.x=q,this.y=j,this.setDims(),this.fixAndSetPosition(),this._onResizing()}_onResizing(){}altTextFinish(){this.#n?.finish()}get toolbarButtons(){return null}async addEditToolbar(){if(this._editToolbar||this.#x)return this._editToolbar;this._editToolbar=new nd(this),this.div.append(this._editToolbar.render());let{toolbarButtons:e}=this;if(e)for(let[t,n]of e)await this._editToolbar.addButton(t,n);return this.hasComment||this._editToolbar.addButton("comment",this.addCommentButton()),this._editToolbar.addButton("delete"),this._editToolbar}addCommentButtonInToolbar(){this._editToolbar?.addButtonBefore("comment",this.addCommentButton(),".deleteButton")}removeCommentButtonFromToolbar(){this._editToolbar?.removeButton("comment")}removeEditToolbar(){this._editToolbar?.remove(),this._editToolbar=null,this.#n?.destroy()}addContainer(e){let t=this._editToolbar?.div;t?t.before(e):this.div.append(e)}getClientDimensions(){return this.div.getBoundingClientRect()}createAltText(){return this.#n||(Il.initialize(r._l10n),this.#n=new Il(this),this.#e&&(this.#n.data=this.#e,this.#e=null)),this.#n}get altTextData(){return this.#n?.data}set altTextData(e){this.#n&&(this.#n.data=e)}get guessedAltText(){return this.#n?.guessedText}async setGuessedAltText(e){await this.#n?.setGuessedText(e)}serializeAltText(e){return this.#n?.serialize(e)}hasAltText(){return!!this.#n&&!this.#n.isEmpty()}hasAltTextData(){return this.#n?.hasData()??!1}focusCommentButton(){this.#r?.focusButton()}addCommentButton(){return this.#r||=new La(this)}addStandaloneCommentButton(){if(this.#s){this._uiManager.isEditingMode()&&this.#s.classList.remove("hidden");return}this.hasComment&&(this.#s=this.#r.renderForStandalone(),this.div.append(this.#s))}removeStandaloneCommentButton(){this.#r.removeStandaloneCommentButton(),this.#s=null}hideStandaloneCommentButton(){this.#s?.classList.add("hidden")}get comment(){let{data:{richText:e,text:t,date:n,deleted:i}}=this.#r;return{text:t,richText:e,date:n,deleted:i,color:this.getNonHCMColor(),opacity:this.opacity??1}}set comment(e){this.#r||=new La(this),this.#r.data=e,this.hasComment?(this.removeCommentButtonFromToolbar(),this.addStandaloneCommentButton(),this._uiManager.updateComment(this)):(this.addCommentButtonInToolbar(),this.removeStandaloneCommentButton(),this._uiManager.removeComment(this))}setCommentData({comment:e,popupRef:t,richText:n}){if(!t||(this.#r||=new La(this),this.#r.setInitialText(e,n),!this.annotationElementId))return;let i=this._uiManager.getAndRemoveDataFromAnnotationStorage(this.annotationElementId);i&&this.updateFromAnnotationLayer(i)}get hasEditedComment(){return this.#r?.hasBeenEdited()}get hasDeletedComment(){return this.#r?.isDeleted()}get hasComment(){return!!this.#r&&!this.#r.isEmpty()&&!this.#r.isDeleted()}async editComment(e){this.#r||=new La(this),this.#r.edit(e)}toggleComment(e,t=void 0){this.hasComment&&this._uiManager.toggleComment(this,e,t)}setSelectedCommentButton(e){this.#r.setSelectedButton(e)}addComment(e){if(this.hasEditedComment){let[,,,i]=e.rect,[a]=this.pageDimensions,[s]=this.pageTranslation,o=s+a+1,c=i-100,u=o+180;e.popup={contents:this.comment.text,deleted:this.comment.deleted,rect:[o,c,u,i]}}}updateFromAnnotationLayer({popup:{contents:e,deleted:t}}){this.#r.data=t?null:e}get parentBoundingClientRect(){return this.parent.boundingClientRect}render(){let e=this.div=document.createElement("div");e.setAttribute("data-editor-rotation",(360-this.rotation)%360),e.className=this.name,e.setAttribute("id",this.id),e.tabIndex=this.#i?-1:0,e.setAttribute("role","application"),this.defaultL10nId&&e.setAttribute("data-l10n-id",this.defaultL10nId),this._isVisible||e.classList.add("hidden"),this.setInForeground(),this.#H();let[t,n]=this.parentDimensions;this.parentRotation%180!==0&&(e.style.maxWidth=`${(100*n/t).toFixed(2)}%`,e.style.maxHeight=`${(100*t/n).toFixed(2)}%`);let[i,a]=this.getInitialTranslation();return this.translate(i,a),ux(this,e,["keydown","pointerdown","dblclick"]),this.isResizable&&this._uiManager._supportsPinchToZoom&&(this.#S||=new Rl({container:e,isPinchingDisabled:()=>!this.isSelected,onPinchStart:this.#j.bind(this),onPinching:this.#A.bind(this),onPinchEnd:this.#w.bind(this),signal:this._uiManager._signal})),this.addStandaloneCommentButton(),this._uiManager._editorUndoBar?.hide(),e}#j(){this.#f={savedX:this.x,savedY:this.y,savedWidth:this.width,savedHeight:this.height},this.#n?.toggle(!1),this.parent.togglePointerEvents(!1)}#A(e,t,n){let a=.7*(n/t)+1-.7;if(a===1)return;let s=this.#F(this.rotation),o=(E,T)=>[s[0]*E+s[2]*T,s[1]*E+s[3]*T],[c,u]=this.parentDimensions,h=this.x,f=this.y,d=this.width,p=this.height,m=r.MIN_SIZE/c,g=r.MIN_SIZE/u;a=Math.max(Math.min(a,1/d,1/p),m/d,g/p);let x=r._round(d*a),y=r._round(p*a);if(x===d&&y===p)return;this.#u||=[h,f,d,p];let b=o(d/2,p/2),v=r._round(h+b[0]),_=r._round(f+b[1]),A=o(x/2,y/2);this.x=v-A[0],this.y=_-A[1],this.width=x,this.height=y,this.setDims(),this.fixAndSetPosition(),this._onResizing()}#w(){this.#n?.toggle(!0),this.parent.togglePointerEvents(!0),this.#L()}pointerdown(e){let{isMac:t}=Mt.platform;if(e.button!==0||e.ctrlKey&&t){e.preventDefault();return}if(this.#p=!0,this._isDraggable){this.#M(e);return}this.#R(e)}#R(e){let{isMac:t}=Mt.platform;e.ctrlKey&&!t||e.shiftKey||e.metaKey&&t?this.parent.toggleSelected(this):this.parent.setSelected(this)}#M(e){let{isSelected:t}=this;this._uiManager.setUpDragSession();let n=!1,i=new AbortController,a=this._uiManager.combinedSignal(i),s={capture:!0,passive:!1,signal:a},o=u=>{i.abort(),this.#a=null,this.#p=!1,this._uiManager.endDragSession()||this.#R(u),n&&this._onStopDragging()};t&&(this.#E=e.clientX,this.#D=e.clientY,this.#a=e.pointerId,this.#o=e.pointerType,window.addEventListener("pointermove",u=>{n||(n=!0,this._uiManager.toggleComment(this,!0,!1),this._onStartDragging());let{clientX:h,clientY:f,pointerId:d}=u;if(d!==this.#a){Tt(u);return}let[p,m]=this.screenToPageTranslation(h-this.#E,f-this.#D);this.#E=h,this.#D=f,this._uiManager.dragSelectedEditors(p,m)},s),window.addEventListener("touchmove",Tt,s),window.addEventListener("pointerdown",u=>{u.pointerType===this.#o&&(this.#S||u.isPrimary)&&o(u),Tt(u)},s));let c=u=>{if(!this.#a||this.#a===u.pointerId){o(u);return}Tt(u)};window.addEventListener("pointerup",c,{signal:a}),window.addEventListener("blur",c,{signal:a})}_onStartDragging(){}_onStopDragging(){}moveInDOM(){this.#v&&clearTimeout(this.#v),this.#v=setTimeout(()=>{this.#v=null,this.parent?.moveEditorInDOM(this)},0)}_setParentAndPosition(e,t,n){e.changeParent(this),this.x=t,this.y=n,this.fixAndSetPosition(),this._onTranslated()}getRect(e,t,n=this.rotation){let i=this.parentScale,[a,s]=this.pageDimensions,[o,c]=this.pageTranslation,u=e/i,h=t/i,f=this.x*a,d=this.y*s,p=this.width*a,m=this.height*s;switch(n){case 0:return[f+u+o,s-d-h-m+c,f+u+p+o,s-d-h+c];case 90:return[f+h+o,s-d+u+c,f+h+m+o,s-d+u+p+c];case 180:return[f-u-p+o,s-d+h+c,f-u+o,s-d+h+m+c];case 270:return[f-h-m+o,s-d-u-p+c,f-h+o,s-d-u+c];default:throw new Error("Invalid rotation")}}getRectInCurrentCoords(e,t){let[n,i,a,s]=e,o=a-n,c=s-i;switch(this.rotation){case 0:return[n,t-s,o,c];case 90:return[n,t-i,c,o];case 180:return[a,t-i,o,c];case 270:return[a,t-s,c,o];default:throw new Error("Invalid rotation")}}getPDFRect(){return this.getRect(0,0)}getNonHCMColor(){return this.color&&r._colorManager.convert(this._uiManager.getNonHCMColor(this.color))}onUpdatedColor(){this.#r?.onUpdatedColor()}getData(){let{comment:{text:e,color:t,date:n,opacity:i,deleted:a,richText:s},uid:o,pageIndex:c,creationDate:u,modificationDate:h}=this;return{id:o,pageIndex:c,rect:this.getPDFRect(),richText:s,contentsObj:{str:e},creationDate:u,modificationDate:n||h,popupRef:!a,color:t,opacity:i}}onceAdded(e){}isEmpty(){return!1}enableEditMode(){return this.isInEditMode()?!1:(this.parent.setEditingState(!1),this.#x=!0,!0)}disableEditMode(){return this.isInEditMode()?(this.parent.setEditingState(!0),this.#x=!1,!0):!1}isInEditMode(){return this.#x}shouldGetKeyboardEvents(){return this.#y}needsToBeRebuilt(){return this.div&&!this.isAttachedToDOM}get isOnScreen(){let{top:e,left:t,bottom:n,right:i}=this.getClientDimensions(),{innerHeight:a,innerWidth:s}=window;return t<s&&i>0&&e<a&&n>0}#H(){if(this.#d||!this.div)return;this.#d=new AbortController;let e=this._uiManager.combinedSignal(this.#d);this.div.addEventListener("focusin",this.focusin.bind(this),{signal:e}),this.div.addEventListener("focusout",this.focusout.bind(this),{signal:e})}rebuild(){this.#H()}rotate(e){}resize(){}serializeDeleted(){return{id:this.annotationElementId,deleted:!0,pageIndex:this.pageIndex,popupRef:this._initialData?.popupRef||""}}serialize(e=!1,t=null){return{annotationType:this.mode,pageIndex:this.pageIndex,rect:this.getPDFRect(),rotation:this.rotation,structTreeParentId:this._structTreeParentId,popupRef:this._initialData?.popupRef||""}}static async deserialize(e,t,n){let i=new this.prototype.constructor({parent:t,id:t.getNextId(),uiManager:n,annotationElementId:e.annotationElementId,creationDate:e.creationDate,modificationDate:e.modificationDate});i.rotation=e.rotation,i.#e=e.accessibilityData,i._isCopy=e.isCopy||!1;let[a,s]=i.pageDimensions,[o,c,u,h]=i.getRectInCurrentCoords(e.rect,s);return i.x=o/a,i.y=c/s,i.width=u/a,i.height=h/s,i}get hasBeenModified(){return!!this.annotationElementId&&(this.deleted||this.serialize()!==null)}remove(){if(this.#d?.abort(),this.#d=null,this.isEmpty()||this.commit(),this.parent?this.parent.remove(this):this._uiManager.removeEditor(this),this.#v&&(clearTimeout(this.#v),this.#v=null),this.#N(),this.removeEditToolbar(),this.#b){for(let e of this.#b.values())clearTimeout(e);this.#b=null}this.parent=null,this.#S?.destroy(),this.#S=null}get isResizable(){return!1}makeResizable(){this.isResizable&&(this.#P(),this.#l.classList.remove("hidden"))}get toolbarPosition(){return null}get commentButtonPosition(){return this._uiManager.direction==="ltr"?[1,0]:[0,0]}get commentButtonPositionInPage(){let{commentButtonPosition:[e,t]}=this,[n,i,a,s]=this.getPDFRect();return[r._round(n+(a-n)*e),r._round(i+(s-i)*(1-t))]}get commentButtonColor(){return this._uiManager.makeCommentColor(this.getNonHCMColor(),this.opacity)}get commentPopupPosition(){return this.#r.commentPopupPositionInLayer}set commentPopupPosition(e){this.#r.commentPopupPositionInLayer=e}hasDefaultPopupPosition(){return this.#r.hasDefaultPopupPosition()}get commentButtonWidth(){return this.#r.commentButtonWidth}get elementBeforePopup(){return this.div}setCommentButtonStates(e){this.#r.setCommentButtonStates(e)}keydown(e){if(!this.isResizable||e.target!==this.div||e.key!=="Enter")return;this._uiManager.setSelected(this),this.#f={savedX:this.x,savedY:this.y,savedWidth:this.width,savedHeight:this.height};let t=this.#l.children;if(!this.#t){this.#t=Array.from(t);let s=this.#$.bind(this),o=this.#X.bind(this),c=this._uiManager._signal;for(let u of this.#t){let h=u.getAttribute("data-resizer-name");u.setAttribute("role","spinbutton"),u.addEventListener("keydown",s,{signal:c}),u.addEventListener("blur",o,{signal:c}),u.addEventListener("focus",this.#q.bind(this,h),{signal:c}),u.setAttribute("data-l10n-id",r._l10nResizer[h])}}let n=this.#t[0],i=0;for(let s of t){if(s===n)break;i++}let a=(360-this.rotation+this.parentRotation)%360/90*(this.#t.length/4);if(a!==i){if(a<i)for(let o=0;o<i-a;o++)this.#l.append(this.#l.firstChild);else if(a>i)for(let o=0;o<a-i;o++)this.#l.firstChild.before(this.#l.lastChild);let s=0;for(let o of t){let u=this.#t[s++].getAttribute("data-resizer-name");o.setAttribute("data-l10n-id",r._l10nResizer[u])}}this.#V(0),this.#y=!0,this.#l.firstChild.focus({focusVisible:!0}),e.preventDefault(),e.stopImmediatePropagation()}#$(e){r._resizerKeyboardManager.exec(this,e)}#X(e){this.#y&&e.relatedTarget?.parentNode!==this.#l&&this.#N()}#q(e){this.#m=this.#y?e:""}#V(e){if(this.#t)for(let t of this.#t)t.tabIndex=e}_resizeWithKeyboard(e,t){this.#y&&this.#B(this.#m,{deltaX:e,deltaY:t,fromKeyboard:!0})}#N(){this.#y=!1,this.#V(-1),this.#L()}_stopResizingWithKeyboard(){this.#N(),this.div.focus()}select(){if(this.isSelected&&this._editToolbar){this._editToolbar.show();return}if(this.isSelected=!0,this.makeResizable(),this.div?.classList.add("selectedEditor"),!this._editToolbar){this.addEditToolbar().then(()=>{this.div?.classList.contains("selectedEditor")&&this._editToolbar?.show()});return}this._editToolbar?.show(),this.#n?.toggleAltTextBadge(!1)}focus(){this.div&&!this.div.contains(document.activeElement)&&setTimeout(()=>this.div?.focus({preventScroll:!0}),0)}unselect(){this.isSelected&&(this.isSelected=!1,this.#l?.classList.add("hidden"),this.div?.classList.remove("selectedEditor"),this.div?.contains(document.activeElement)&&this._uiManager.currentLayer.div.focus({preventScroll:!0}),this._editToolbar?.hide(),this.#n?.toggleAltTextBadge(!0),this.hasComment&&this._uiManager.toggleComment(this,!1,!1))}updateParams(e,t){}disableEditing(){}enableEditing(){}get canChangeContent(){return!1}enterInEditMode(){this.canChangeContent&&(this.enableEditMode(),this.div.focus())}dblclick(e){e.target.nodeName!=="BUTTON"&&(this.enterInEditMode(),this.parent.updateToolbar({mode:this.constructor._editorType,editId:this.id}))}getElementForAltText(){return this.div}get contentDiv(){return this.div}get isEditing(){return this.#g}set isEditing(e){this.#g=e,this.parent&&(e?(this.parent.setSelected(this),this.parent.setActiveEditor(this)):this.parent.setActiveEditor(null))}static get MIN_SIZE(){return 16}static canCreateNewEmptyEditor(){return!0}get telemetryInitialData(){return{action:"added"}}get telemetryFinalData(){return null}_reportTelemetry(e,t=!1){if(t){this.#b||=new Map;let{action:n}=e,i=this.#b.get(n);i&&clearTimeout(i),i=setTimeout(()=>{this._reportTelemetry(e),this.#b.delete(n),this.#b.size===0&&(this.#b=null)},r._telemetryTimeout),this.#b.set(n,i);return}e.type||=this.editorType,this._uiManager._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",data:e}})}show(e=this._isVisible){this.div.classList.toggle("hidden",!e),this._isVisible=e}enable(){this.div&&(this.div.tabIndex=0),this.#i=!1}disable(){this.div&&(this.div.tabIndex=-1),this.#i=!0}updateFakeAnnotationElement(e){if(!this.#h&&!this.deleted){this.#h=e.addFakeAnnotation(this);return}if(this.deleted){this.#h.remove(),this.#h=null;return}(this.hasEditedComment||this._hasBeenMoved||this._hasBeenResized)&&this.#h.updateEdited({rect:this.getPDFRect(),popup:this.comment})}renderAnnotationElement(e){if(this.deleted)return e.hide(),null;let t=e.container.querySelector(".annotationContent");if(!t)t=document.createElement("div"),t.classList.add("annotationContent",this.editorType),e.container.prepend(t);else if(t.nodeName==="CANVAS"){let n=t;t=document.createElement("div"),t.classList.add("annotationContent",this.editorType),n.before(t)}return t}resetAnnotationElement(e){let{firstChild:t}=e.container;t?.nodeName==="DIV"&&t.classList.contains("annotationContent")&&t.remove()}},ld=class extends gt{constructor(e){super(e),this.annotationElementId=e.annotationElementId,this.deleted=!0}serialize(){return this.serializeDeleted()}},j1=3285377520,Jr=4294901760,Sn=65535,Ol=class{constructor(e){this.h1=e?e&4294967295:j1,this.h2=e?e&4294967295:j1}update(e){let t,n;if(typeof e=="string"){t=new Uint8Array(e.length*2),n=0;for(let g=0,x=e.length;g<x;g++){let y=e.charCodeAt(g);y<=255?t[n++]=y:(t[n++]=y>>>8,t[n++]=y&255)}}else if(ArrayBuffer.isView(e))t=e.slice(),n=t.byteLength;else throw new Error("Invalid data format, must be a string or TypedArray.");let i=n>>2,a=n-i*4,s=new Uint32Array(t.buffer,0,i),o=0,c=0,u=this.h1,h=this.h2,f=3432918353,d=461845907,p=f&Sn,m=d&Sn;for(let g=0;g<i;g++)g&1?(o=s[g],o=o*f&Jr|o*p&Sn,o=o<<15|o>>>17,o=o*d&Jr|o*m&Sn,u^=o,u=u<<13|u>>>19,u=u*5+3864292196):(c=s[g],c=c*f&Jr|c*p&Sn,c=c<<15|c>>>17,c=c*d&Jr|c*m&Sn,h^=c,h=h<<13|h>>>19,h=h*5+3864292196);switch(o=0,a){case 3:o^=t[i*4+2]<<16;case 2:o^=t[i*4+1]<<8;case 1:o^=t[i*4],o=o*f&Jr|o*p&Sn,o=o<<15|o>>>17,o=o*d&Jr|o*m&Sn,i&1?u^=o:h^=o}this.h1=u,this.h2=h}hexdigest(){let e=this.h1,t=this.h2;return e^=t>>>1,e=e*3981806797&Jr|e*36045&Sn,t=t*4283543511&Jr|((t<<16|e>>>16)*2950163797&Jr)>>>16,e^=t>>>1,e=e*444984403&Jr|e*60499&Sn,t=t*3301882366&Jr|((t<<16|e>>>16)*3120437893&Jr)>>>16,e^=t>>>1,(e>>>0).toString(16).padStart(8,"0")+(t>>>0).toString(16).padStart(8,"0")}},ud=Object.freeze({map:null,hash:"",transfer:void 0}),ho=class{#e=!1;#t=null;#n=null;#r=new Map;constructor(){this.onSetModified=null,this.onResetModified=null,this.onAnnotationEditor=null}getValue(e,t){let n=this.#r.get(e);return n===void 0?t:Object.assign(t,n)}getRawValue(e){return this.#r.get(e)}remove(e){let t=this.#r.get(e);if(t!==void 0&&(t instanceof gt&&this.#n.delete(t.annotationElementId),this.#r.delete(e),this.#r.size===0&&this.resetModified(),typeof this.onAnnotationEditor=="function")){for(let n of this.#r.values())if(n instanceof gt)return;this.onAnnotationEditor(null)}}setValue(e,t){let n=this.#r.get(e),i=!1;if(n!==void 0)for(let[a,s]of Object.entries(t))n[a]!==s&&(i=!0,n[a]=s);else i=!0,this.#r.set(e,t);i&&this.#s(),t instanceof gt&&((this.#n||=new Map).set(t.annotationElementId,t),typeof this.onAnnotationEditor=="function"&&this.onAnnotationEditor(t.constructor._type))}has(e){return this.#r.has(e)}get size(){return this.#r.size}#s(){this.#e||(this.#e=!0,typeof this.onSetModified=="function"&&this.onSetModified())}resetModified(){this.#e&&(this.#e=!1,typeof this.onResetModified=="function"&&this.onResetModified())}get print(){return new Bl(this)}get serializable(){if(this.#r.size===0)return ud;let e=new Map,t=new Ol,n=[],i=Object.create(null),a=!1;for(let[s,o]of this.#r){let c=o instanceof gt?o.serialize(!1,i):o;c&&(e.set(s,c),t.update(`${s}:${JSON.stringify(c)}`),a||=!!c.bitmap)}if(a)for(let s of e.values())s.bitmap&&n.push(s.bitmap);return e.size>0?{map:e,hash:t.hexdigest(),transfer:n}:ud}get editorStats(){let e=null,t=new Map,n=0,i=0;for(let a of this.#r.values()){if(!(a instanceof gt)){a.popup&&(a.popup.deleted?i+=1:n+=1);continue}a.isCommentDeleted?i+=1:a.hasEditedComment&&(n+=1);let s=a.telemetryFinalData;if(!s)continue;let{type:o}=s;t.has(o)||t.set(o,Object.getPrototypeOf(a).constructor),e||=Object.create(null);let c=e[o]||=new Map;for(let[u,h]of Object.entries(s)){if(u==="type")continue;let f=c.get(u);f||(f=new Map,c.set(u,f));let d=f.get(h)??0;f.set(h,d+1)}}if((i>0||n>0)&&(e||=Object.create(null),e.comments={deleted:i,edited:n}),!e)return null;for(let[a,s]of t)e[a]=s.computeTelemetryFinalData(e[a]);return e}resetModifiedIds(){this.#t=null}updateEditor(e,t){let n=this.#n?.get(e);return n?(n.updateFromAnnotationLayer(t),!0):!1}getEditor(e){return this.#n?.get(e)||null}get modifiedIds(){if(this.#t)return this.#t;let e=[];if(this.#n)for(let t of this.#n.values())t.serialize()&&e.push(t.annotationElementId);return this.#t={ids:new Set(e),hash:e.join(",")}}[Symbol.iterator](){return this.#r.entries()}},Bl=class extends ho{#e;constructor(e){super();let{map:t,hash:n,transfer:i}=e.serializable,a=structuredClone(t,i?{transfer:i}:null);this.#e={map:a,hash:n,transfer:i}}get print(){dt("Should not call PrintAnnotationStorage.print")}get serializable(){return this.#e}get modifiedIds(){return Ge(this,"modifiedIds",{ids:new Set,hash:""})}},hd=class{#e=new Set;constructor({ownerDocument:e=globalThis.document,styleElement:t=null}){this._document=e,this.nativeFontFaces=new Set,this.styleElement=null,this.loadingRequests=[],this.loadTestFontId=0}addNativeFontFace(e){this.nativeFontFaces.add(e),this._document.fonts.add(e)}removeNativeFontFace(e){this.nativeFontFaces.delete(e),this._document.fonts.delete(e)}insertRule(e){this.styleElement||(this.styleElement=this._document.createElement("style"),this._document.documentElement.getElementsByTagName("head")[0].append(this.styleElement));let t=this.styleElement.sheet;t.insertRule(e,t.cssRules.length)}clear(){for(let e of this.nativeFontFaces)this._document.fonts.delete(e);this.nativeFontFaces.clear(),this.#e.clear(),this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}async loadSystemFont({systemFontInfo:e,disableFontFace:t,_inspectFont:n}){if(!(!e||this.#e.has(e.loadedName))){if(Ye(!t,"loadSystemFont shouldn't be called when `disableFontFace` is set."),this.isFontLoadingAPISupported){let{loadedName:i,src:a,style:s}=e,o=new FontFace(i,a,s);this.addNativeFontFace(o);try{await o.load(),this.#e.add(i),n?.(e)}catch{Ne(`Cannot load system font: ${e.baseFontName}, installing it could help to improve PDF rendering.`),this.removeNativeFontFace(o)}return}dt("Not implemented: loadSystemFont without the Font Loading API.")}}async bind(e){if(e.attached||e.missingFile&&!e.systemFontInfo)return;if(e.attached=!0,e.systemFontInfo){await this.loadSystemFont(e);return}if(this.isFontLoadingAPISupported){let n=e.createNativeFontFace();if(n){this.addNativeFontFace(n);try{await n.loaded}catch(i){throw Ne(`Failed to load font '${n.family}': '${i}'.`),e.disableFontFace=!0,i}}return}let t=e.createFontFaceRule();if(t){if(this.insertRule(t),this.isSyncFontLoadingSupported)return;await new Promise(n=>{let i=this._queueLoadingCallback(n);this._prepareFontLoadEvent(e,i)})}}get isFontLoadingAPISupported(){let e=!!this._document?.fonts;return Ge(this,"isFontLoadingAPISupported",e)}get isSyncFontLoadingSupported(){return Ge(this,"isSyncFontLoadingSupported",yr||Mt.platform.isFirefox)}_queueLoadingCallback(e){function t(){for(Ye(!i.done,"completeRequest() cannot be called twice."),i.done=!0;n.length>0&&n[0].done;){let a=n.shift();setTimeout(a.callback,0)}}let{loadingRequests:n}=this,i={done:!1,complete:t,callback:e};return n.push(i),i}get _loadTestFont(){let e=atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA==");return Ge(this,"_loadTestFont",e)}_prepareFontLoadEvent(e,t){function n(_,A){return _.charCodeAt(A)<<24|_.charCodeAt(A+1)<<16|_.charCodeAt(A+2)<<8|_.charCodeAt(A+3)&255}function i(_,A,E,T){let S=_.substring(0,A),C=_.substring(A+E);return S+T+C}let a,s,o=this._document.createElement("canvas");o.width=1,o.height=1;let c=o.getContext("2d"),u=0;function h(_,A){if(++u>30){Ne("Load test font never loaded."),A();return}if(c.font="30px "+_,c.fillText(".",0,20),c.getImageData(0,0,1,1).data[3]>0){A();return}setTimeout(h.bind(null,_,A))}let f=`lt${Date.now()}${this.loadTestFontId++}`,d=this._loadTestFont;d=i(d,976,f.length,f);let m=16,g=1482184792,x=n(d,m);for(a=0,s=f.length-3;a<s;a+=4)x=x-g+n(f,a)|0;a<f.length&&(x=x-g+n(f+"XXX",a)|0),d=i(d,m,4,$A(x));let y=`url(data:font/opentype;base64,${btoa(d)});`,b=`@font-face {font-family:"${f}";src:${y}}`;this.insertRule(b);let v=this._document.createElement("div");v.style.visibility="hidden",v.style.width=v.style.height="10px",v.style.position="absolute",v.style.top=v.style.left="0px";for(let _ of[e.loadedName,f]){let A=this._document.createElement("span");A.textContent="Hi",A.style.fontFamily=_,v.append(A)}this._document.body.append(v),h(f,()=>{v.remove(),t.complete()})}},fd=class{#e;constructor(e,t=null,n,i){this.compiledGlyphs=Object.create(null),this.#e=e,this._inspectFont=t,n&&Object.assign(this,n),i&&(this.charProcOperatorList=i)}createNativeFontFace(){if(!this.data||this.disableFontFace)return null;let e;if(!this.cssFontInfo)e=new FontFace(this.loadedName,this.data,{});else{let t={weight:this.cssFontInfo.fontWeight};this.cssFontInfo.italicAngle&&(t.style=`oblique ${this.cssFontInfo.italicAngle}deg`),e=new FontFace(this.cssFontInfo.fontFamily,this.data,t)}return this._inspectFont?.(this),e}createFontFaceRule(){if(!this.data||this.disableFontFace)return null;let e=`url(data:${this.mimetype};base64,${cx(this.data)});`,t;if(!this.cssFontInfo)t=`@font-face {font-family:"${this.loadedName}";src:${e}}`;else{let n=`font-weight: ${this.cssFontInfo.fontWeight};`;this.cssFontInfo.italicAngle&&(n+=`font-style: oblique ${this.cssFontInfo.italicAngle}deg;`),t=`@font-face {font-family:"${this.cssFontInfo.fontFamily}";${n}src:${e}}`}return this._inspectFont?.(this,e),t}getPathGenerator(e,t){if(this.compiledGlyphs[t]!==void 0)return this.compiledGlyphs[t];let n=this.loadedName+"_path_"+t,i;try{i=e.get(n)}catch(s){Ne(`getPathGenerator - ignoring character: "${s}".`)}let a=new Path2D(i||"");return this.fontExtraProperties||e.delete(n),this.compiledGlyphs[t]=a}get black(){return this.#e.black}get bold(){return this.#e.bold}get disableFontFace(){return this.#e.disableFontFace??!1}get fontExtraProperties(){return this.#e.fontExtraProperties??!1}get isInvalidPDFjsFont(){return this.#e.isInvalidPDFjsFont}get isType3Font(){return this.#e.isType3Font}get italic(){return this.#e.italic}get missingFile(){return this.#e.missingFile}get remeasure(){return this.#e.remeasure}get vertical(){return this.#e.vertical}get ascent(){return this.#e.ascent}get defaultWidth(){return this.#e.defaultWidth}get descent(){return this.#e.descent}get bbox(){return this.#e.bbox}get fontMatrix(){return this.#e.fontMatrix}get fallbackName(){return this.#e.fallbackName}get loadedName(){return this.#e.loadedName}get mimetype(){return this.#e.mimetype}get name(){return this.#e.name}get data(){return this.#e.data}clearData(){this.#e.clearData()}get cssFontInfo(){return this.#e.cssFontInfo}get systemFontInfo(){return this.#e.systemFontInfo}get defaultVMetrics(){return this.#e.defaultVMetrics}};function oS(r){if(r instanceof URL)return r.href;if(typeof r=="string"){if(yr)return r;let e=URL.parse(r,window.location);if(e)return e.href}throw new Error("Invalid PDF url data: either string or URL-object is expected in the url property.")}function cS(r){if(yr&&typeof Buffer<"u"&&r instanceof Buffer)throw new Error("Please provide binary data as `Uint8Array`, rather than `Buffer`.");if(r instanceof Uint8Array&&r.byteLength===r.buffer.byteLength)return r;if(typeof r=="string")return _o(r);if(r instanceof ArrayBuffer||ArrayBuffer.isView(r)||typeof r=="object"&&!isNaN(r?.length))return new Uint8Array(r);throw new Error("Invalid PDF binary data: either TypedArray, string, or array-like object is expected in the data property.")}function yl(r){if(typeof r!="string")return null;if(r.endsWith("/"))return r;throw new Error(`Invalid factory url: "${r}" must include trailing slash.`)}var dd=r=>typeof r=="object"&&Number.isInteger(r?.num)&&r.num>=0&&Number.isInteger(r?.gen)&&r.gen>=0,lS=r=>typeof r=="object"&&typeof r?.name=="string",uS=JA.bind(null,dd,lS),pd=class{#e=new Map;#t=Promise.resolve();postMessage(e,t){let n={data:structuredClone(e,t?{transfer:t}:null)};this.#t.then(()=>{for(let[i]of this.#e)i.call(this,n)})}addEventListener(e,t,n=null){let i=null;if(n?.signal instanceof AbortSignal){let{signal:a}=n;if(a.aborted){Ne("LoopbackPort - cannot use an `aborted` signal.");return}let s=()=>this.removeEventListener(e,t);i=()=>a.removeEventListener("abort",s),a.addEventListener("abort",s)}this.#e.set(t,i)}removeEventListener(e,t){this.#e.get(t)?.(),this.#e.delete(t)}terminate(){for(let[,e]of this.#e)e?.();this.#e.clear()}},bl={DATA:1,ERROR:2},It={CANCEL:1,CANCEL_COMPLETE:2,CLOSE:3,ENQUEUE:4,ERROR:5,PULL:6,PULL_COMPLETE:7,START_COMPLETE:8};function G1(){}function kr(r){if(r instanceof Cn||r instanceof so||r instanceof Fl||r instanceof Ha||r instanceof no)return r;switch(r instanceof Error||typeof r=="object"&&r!==null||dt('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),r.name){case"AbortException":return new Cn(r.message);case"InvalidPDFException":return new so(r.message);case"PasswordException":return new Fl(r.message,r.code);case"ResponseException":return new Ha(r.message,r.status,r.missing);case"UnknownErrorException":return new no(r.message,r.details)}return new no(r.message,r.toString())}var zi=class{#e=new AbortController;constructor(e,t,n){this.sourceName=e,this.targetName=t,this.comObj=n,this.callbackId=1,this.streamId=1,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),n.addEventListener("message",this.#t.bind(this),{signal:this.#e.signal})}#t({data:e}){if(e.targetName!==this.sourceName)return;if(e.stream){this.#r(e);return}if(e.callback){let n=e.callbackId,i=this.callbackCapabilities[n];if(!i)throw new Error(`Cannot resolve callback ${n}`);if(delete this.callbackCapabilities[n],e.callback===bl.DATA)i.resolve(e.data);else if(e.callback===bl.ERROR)i.reject(kr(e.reason));else throw new Error("Unexpected callback case");return}let t=this.actionHandler[e.action];if(!t)throw new Error(`Unknown action from worker: ${e.action}`);if(e.callbackId){let n=this.sourceName,i=e.sourceName,a=this.comObj;Promise.try(t,e.data).then(function(s){a.postMessage({sourceName:n,targetName:i,callback:bl.DATA,callbackId:e.callbackId,data:s})},function(s){a.postMessage({sourceName:n,targetName:i,callback:bl.ERROR,callbackId:e.callbackId,reason:kr(s)})});return}if(e.streamId){this.#n(e);return}t(e.data)}on(e,t){let n=this.actionHandler;if(n[e])throw new Error(`There is already an actionName called "${e}"`);n[e]=t}send(e,t,n){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,data:t},n)}sendWithPromise(e,t,n){let i=this.callbackId++,a=Promise.withResolvers();this.callbackCapabilities[i]=a;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,callbackId:i,data:t},n)}catch(s){a.reject(s)}return a.promise}sendWithStream(e,t,n,i){let a=this.streamId++,s=this.sourceName,o=this.targetName,c=this.comObj;return new ReadableStream({start:u=>{let h=Promise.withResolvers();return this.streamControllers[a]={controller:u,startCall:h,pullCall:null,cancelCall:null,isClosed:!1},c.postMessage({sourceName:s,targetName:o,action:e,streamId:a,data:t,desiredSize:u.desiredSize},i),h.promise},pull:u=>{let h=Promise.withResolvers();return this.streamControllers[a].pullCall=h,c.postMessage({sourceName:s,targetName:o,stream:It.PULL,streamId:a,desiredSize:u.desiredSize}),h.promise},cancel:u=>{Ye(u instanceof Error,"cancel must have a valid reason");let h=Promise.withResolvers();return this.streamControllers[a].cancelCall=h,this.streamControllers[a].isClosed=!0,c.postMessage({sourceName:s,targetName:o,stream:It.CANCEL,streamId:a,reason:kr(u)}),h.promise}},n)}#n(e){let t=e.streamId,n=this.sourceName,i=e.sourceName,a=this.comObj,s=this,o=this.actionHandler[e.action],c={enqueue(u,h=1,f){if(this.isCancelled)return;let d=this.desiredSize;this.desiredSize-=h,d>0&&this.desiredSize<=0&&(this.sinkCapability=Promise.withResolvers(),this.ready=this.sinkCapability.promise),a.postMessage({sourceName:n,targetName:i,stream:It.ENQUEUE,streamId:t,chunk:u},f)},close(){this.isCancelled||(this.isCancelled=!0,a.postMessage({sourceName:n,targetName:i,stream:It.CLOSE,streamId:t}),delete s.streamSinks[t])},error(u){Ye(u instanceof Error,"error must have a valid reason"),!this.isCancelled&&(this.isCancelled=!0,a.postMessage({sourceName:n,targetName:i,stream:It.ERROR,streamId:t,reason:kr(u)}))},sinkCapability:Promise.withResolvers(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:e.desiredSize,ready:null};c.sinkCapability.resolve(),c.ready=c.sinkCapability.promise,this.streamSinks[t]=c,Promise.try(o,e.data,c).then(function(){a.postMessage({sourceName:n,targetName:i,stream:It.START_COMPLETE,streamId:t,success:!0})},function(u){a.postMessage({sourceName:n,targetName:i,stream:It.START_COMPLETE,streamId:t,reason:kr(u)})})}#r(e){let t=e.streamId,n=this.sourceName,i=e.sourceName,a=this.comObj,s=this.streamControllers[t],o=this.streamSinks[t];switch(e.stream){case It.START_COMPLETE:e.success?s.startCall.resolve():s.startCall.reject(kr(e.reason));break;case It.PULL_COMPLETE:e.success?s.pullCall.resolve():s.pullCall.reject(kr(e.reason));break;case It.PULL:if(!o){a.postMessage({sourceName:n,targetName:i,stream:It.PULL_COMPLETE,streamId:t,success:!0});break}o.desiredSize<=0&&e.desiredSize>0&&o.sinkCapability.resolve(),o.desiredSize=e.desiredSize,Promise.try(o.onPull||G1).then(function(){a.postMessage({sourceName:n,targetName:i,stream:It.PULL_COMPLETE,streamId:t,success:!0})},function(u){a.postMessage({sourceName:n,targetName:i,stream:It.PULL_COMPLETE,streamId:t,reason:kr(u)})});break;case It.ENQUEUE:if(Ye(s,"enqueue should have stream controller"),s.isClosed)break;s.controller.enqueue(e.chunk);break;case It.CLOSE:if(Ye(s,"close should have stream controller"),s.isClosed)break;s.isClosed=!0,s.controller.close(),this.#s(s,t);break;case It.ERROR:Ye(s,"error should have stream controller"),s.controller.error(kr(e.reason)),this.#s(s,t);break;case It.CANCEL_COMPLETE:e.success?s.cancelCall.resolve():s.cancelCall.reject(kr(e.reason)),this.#s(s,t);break;case It.CANCEL:if(!o)break;let c=kr(e.reason);Promise.try(o.onCancel||G1,c).then(function(){a.postMessage({sourceName:n,targetName:i,stream:It.CANCEL_COMPLETE,streamId:t,success:!0})},function(u){a.postMessage({sourceName:n,targetName:i,stream:It.CANCEL_COMPLETE,streamId:t,reason:kr(u)})}),o.sinkCapability.reject(c),o.isCancelled=!0,delete this.streamSinks[t];break;default:throw new Error("Unexpected stream case")}}async#s(e,t){await Promise.allSettled([e.startCall?.promise,e.pullCall?.promise,e.cancelCall?.promise]),delete this.streamControllers[t]}destroy(){this.#e?.abort(),this.#e=null}},Nl=class{#e=!1;constructor({enableHWA:e=!1}){this.#e=e}create(e,t){if(e<=0||t<=0)throw new Error("Invalid canvas size");let n=this._createCanvas(e,t);return{canvas:n,context:n.getContext("2d",{willReadFrequently:!this.#e})}}reset(e,t,n){if(!e.canvas)throw new Error("Canvas is not specified");if(t<=0||n<=0)throw new Error("Invalid canvas size");e.canvas.width=t,e.canvas.height=n}destroy(e){if(!e.canvas)throw new Error("Canvas is not specified");e.canvas.width=0,e.canvas.height=0,e.canvas=null,e.context=null}_createCanvas(e,t){dt("Abstract method `_createCanvas` called.")}},gd=class extends Nl{constructor({ownerDocument:e=globalThis.document,enableHWA:t=!1}){super({enableHWA:t}),this._document=e}_createCanvas(e,t){let n=this._document.createElement("canvas");return n.width=e,n.height=t,n}},Pl=class{constructor({baseUrl:e=null,isCompressed:t=!0}){this.baseUrl=e,this.isCompressed=t}async fetch({name:e}){if(!this.baseUrl)throw new Error("Ensure that the `cMapUrl` and `cMapPacked` API parameters are provided.");if(!e)throw new Error("CMap name must be specified.");let t=this.baseUrl+e+(this.isCompressed?".bcmap":"");return this._fetch(t).then(n=>({cMapData:n,isCompressed:this.isCompressed})).catch(n=>{throw new Error(`Unable to load ${this.isCompressed?"binary ":""}CMap at: ${t}`)})}async _fetch(e){dt("Abstract method `_fetch` called.")}},Ll=class extends Pl{async _fetch(e){let t=await Do(e,this.isCompressed?"arraybuffer":"text");return t instanceof ArrayBuffer?new Uint8Array(t):_o(t)}},dN=ze(2489),Ml=class{addFilter(e){return"none"}addHCMFilter(e,t){return"none"}addAlphaFilter(e){return"none"}addLuminosityFilter(e){return"none"}addHighlightHCMFilter(e,t,n,i,a){return"none"}destroy(e=!1){}},md=class extends Ml{#e;#t;#n;#r;#s;#i;#a=0;constructor({docId:e,ownerDocument:t=globalThis.document}){super(),this.#r=e,this.#s=t}get#o(){return this.#t||=new Map}get#l(){return this.#i||=new Map}get#c(){if(!this.#n){let e=this.#s.createElement("div"),{style:t}=e;t.visibility="hidden",t.contain="strict",t.width=t.height=0,t.position="absolute",t.top=t.left=0,t.zIndex=-1;let n=this.#s.createElementNS(jn,"svg");n.setAttribute("width",0),n.setAttribute("height",0),this.#n=this.#s.createElementNS(jn,"defs"),e.append(n),n.append(this.#n),this.#s.body.append(e)}return this.#n}#f(e){if(e.length===1){let c=e[0],u=new Array(256);for(let f=0;f<256;f++)u[f]=c[f]/255;let h=u.join(",");return[h,h,h]}let[t,n,i]=e,a=new Array(256),s=new Array(256),o=new Array(256);for(let c=0;c<256;c++)a[c]=t[c]/255,s[c]=n[c]/255,o[c]=i[c]/255;return[a.join(","),s.join(","),o.join(",")]}#h(e){if(this.#e===void 0){this.#e="";let t=this.#s.URL;t!==this.#s.baseURI&&(pu(t)?Ne('#createUrl: ignore "data:"-URL for performance reasons.'):this.#e=ax(t,""))}return`url(${this.#e}#${e})`}addFilter(e){if(!e)return"none";let t=this.#o.get(e);if(t)return t;let[n,i,a]=this.#f(e),s=e.length===1?n:`${n}${i}${a}`;if(t=this.#o.get(s),t)return this.#o.set(e,t),t;let o=`g_${this.#r}_transfer_map_${this.#a++}`,c=this.#h(o);this.#o.set(e,c),this.#o.set(s,c);let u=this.#p(o);return this.#g(n,i,a,u),c}addHCMFilter(e,t){let n=`${e}-${t}`,i="base",a=this.#l.get(i);if(a?.key===n||(a?(a.filter?.remove(),a.key=n,a.url="none",a.filter=null):(a={key:n,url:"none",filter:null},this.#l.set(i,a)),!e||!t))return a.url;let s=this.#y(e);e=Re.makeHexColor(...s);let o=this.#y(t);if(t=Re.makeHexColor(...o),this.#c.style.color="",e==="#000000"&&t==="#ffffff"||e===t)return a.url;let c=new Array(256);for(let p=0;p<=255;p++){let m=p/255;c[p]=m<=.03928?m/12.92:((m+.055)/1.055)**2.4}let u=c.join(","),h=`g_${this.#r}_hcm_filter`,f=a.filter=this.#p(h);this.#g(u,u,u,f),this.#m(f);let d=(p,m)=>{let g=s[p]/255,x=o[p]/255,y=new Array(m+1);for(let b=0;b<=m;b++)y[b]=g+b/m*(x-g);return y.join(",")};return this.#g(d(0,5),d(1,5),d(2,5),f),a.url=this.#h(h),a.url}addAlphaFilter(e){let t=this.#o.get(e);if(t)return t;let[n]=this.#f([e]),i=`alpha_${n}`;if(t=this.#o.get(i),t)return this.#o.set(e,t),t;let a=`g_${this.#r}_alpha_map_${this.#a++}`,s=this.#h(a);this.#o.set(e,s),this.#o.set(i,s);let o=this.#p(a);return this.#x(n,o),s}addLuminosityFilter(e){let t=this.#o.get(e||"luminosity");if(t)return t;let n,i;if(e?([n]=this.#f([e]),i=`luminosity_${n}`):i="luminosity",t=this.#o.get(i),t)return this.#o.set(e,t),t;let a=`g_${this.#r}_luminosity_map_${this.#a++}`,s=this.#h(a);this.#o.set(e,s),this.#o.set(i,s);let o=this.#p(a);return this.#d(o),e&&this.#x(n,o),s}addHighlightHCMFilter(e,t,n,i,a){let s=`${t}-${n}-${i}-${a}`,o=this.#l.get(e);if(o?.key===s||(o?(o.filter?.remove(),o.key=s,o.url="none",o.filter=null):(o={key:s,url:"none",filter:null},this.#l.set(e,o)),!t||!n))return o.url;let[c,u]=[t,n].map(this.#y.bind(this)),h=Math.round(.2126*c[0]+.7152*c[1]+.0722*c[2]),f=Math.round(.2126*u[0]+.7152*u[1]+.0722*u[2]),[d,p]=[i,a].map(this.#y.bind(this));f<h&&([h,f,d,p]=[f,h,p,d]),this.#c.style.color="";let m=(y,b,v)=>{let _=new Array(256),A=(f-h)/v,E=y/255,T=(b-y)/(255*v),S=0;for(let C=0;C<=v;C++){let F=Math.round(h+C*A),k=E+C*T;for(let D=S;D<=F;D++)_[D]=k;S=F+1}for(let C=S;C<256;C++)_[C]=_[S-1];return _.join(",")},g=`g_${this.#r}_hcm_${e}_filter`,x=o.filter=this.#p(g);return this.#m(x),this.#g(m(d[0],p[0],5),m(d[1],p[1],5),m(d[2],p[2],5),x),o.url=this.#h(g),o.url}destroy(e=!1){e&&this.#i?.size||(this.#n?.parentNode.parentNode.remove(),this.#n=null,this.#t?.clear(),this.#t=null,this.#i?.clear(),this.#i=null,this.#a=0)}#d(e){let t=this.#s.createElementNS(jn,"feColorMatrix");t.setAttribute("type","matrix"),t.setAttribute("values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.3 0.59 0.11 0 0"),e.append(t)}#m(e){let t=this.#s.createElementNS(jn,"feColorMatrix");t.setAttribute("type","matrix"),t.setAttribute("values","0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0 0 0 1 0"),e.append(t)}#p(e){let t=this.#s.createElementNS(jn,"filter");return t.setAttribute("color-interpolation-filters","sRGB"),t.setAttribute("id",e),this.#c.append(t),t}#u(e,t,n){let i=this.#s.createElementNS(jn,t);i.setAttribute("type","discrete"),i.setAttribute("tableValues",n),e.append(i)}#g(e,t,n,i){let a=this.#s.createElementNS(jn,"feComponentTransfer");i.append(a),this.#u(a,"feFuncR",e),this.#u(a,"feFuncG",t),this.#u(a,"feFuncB",n)}#x(e,t){let n=this.#s.createElementNS(jn,"feComponentTransfer");t.append(n),this.#u(n,"feFuncA",e)}#y(e){return this.#c.style.color=e,To(getComputedStyle(this.#c).getPropertyValue("color"))}},Wl=class{constructor({baseUrl:e=null}){this.baseUrl=e}async fetch({filename:e}){if(!this.baseUrl)throw new Error("Ensure that the `standardFontDataUrl` API parameter is provided.");if(!e)throw new Error("Font filename must be specified.");let t=`${this.baseUrl}${e}`;return this._fetch(t).catch(n=>{throw new Error(`Unable to load font data at: ${t}`)})}async _fetch(e){dt("Abstract method `_fetch` called.")}},Hl=class extends Wl{async _fetch(e){let t=await Do(e,"arraybuffer");return new Uint8Array(t)}},Vl=class{constructor({baseUrl:e=null}){this.baseUrl=e}async fetch({filename:e}){if(!this.baseUrl)throw new Error("Ensure that the `wasmUrl` API parameter is provided.");if(!e)throw new Error("Wasm filename must be specified.");let t=`${this.baseUrl}${e}`;return this._fetch(t).catch(n=>{throw new Error(`Unable to load wasm data at: ${t}`)})}async _fetch(e){dt("Abstract method `_fetch` called.")}},zl=class extends Vl{async _fetch(e){let t=await Do(e,"arraybuffer");return new Uint8Array(t)}};if(yr){let r;try{let e=process.getBuiltinModule("module").createRequire(xx.url);try{r=e("@napi-rs/canvas")}catch(t){Ne(`Cannot load "@napi-rs/canvas" package: "${t}".`)}}catch(e){Ne(`Cannot access the \`require\` function: "${e}".`)}globalThis.DOMMatrix||(r?.DOMMatrix?globalThis.DOMMatrix=r.DOMMatrix:Ne("Cannot polyfill `DOMMatrix`, rendering may be broken.")),globalThis.ImageData||(r?.ImageData?globalThis.ImageData=r.ImageData:Ne("Cannot polyfill `ImageData`, rendering may be broken.")),globalThis.Path2D||(r?.Path2D?globalThis.Path2D=r.Path2D:Ne("Cannot polyfill `Path2D`, rendering may be broken.")),globalThis.navigator?.language||(globalThis.navigator={language:"en-US",platform:"",userAgent:""})}async function I0(r){let t=await process.getBuiltinModule("fs").promises.readFile(r);return new Uint8Array(t)}var xd=class extends Ml{},vd=class extends Nl{_createCanvas(e,t){return process.getBuiltinModule("module").createRequire(xx.url)("@napi-rs/canvas").createCanvas(e,t)}},yd=class extends Pl{async _fetch(e){return I0(e)}},bd=class extends Wl{async _fetch(e){return I0(e)}},wd=class extends Vl{async _fetch(e){return I0(e)}},pN=ze(7588),Ba="__forcedDependency",{floor:X1,ceil:$1}=Math;function wl(r,e,t,n,i,a){r[e*4+0]=Math.min(r[e*4+0],t),r[e*4+1]=Math.min(r[e*4+1],n),r[e*4+2]=Math.max(r[e*4+2],i),r[e*4+3]=Math.max(r[e*4+3],a)}var _d=new Uint32Array(new Uint8Array([255,255,0,0]).buffer)[0],Dd=class{#e;#t;constructor(e,t){this.#e=e,this.#t=t}get length(){return this.#e.length}isEmpty(e){return this.#e[e]===_d}minX(e){return this.#t[e*4+0]/256}minY(e){return this.#t[e*4+1]/256}maxX(e){return(this.#t[e*4+2]+1)/256}maxY(e){return(this.#t[e*4+3]+1)/256}},_l=(r,e)=>{if(!r)return;let t=r.get(e);return t||(t={dependencies:new Set,isRenderingOperation:!1},r.set(e,t)),t},Td=class{#e={__proto__:null};#t={__proto__:null,transform:[],moveText:[],sameLineText:[],[Ba]:[]};#n=new Map;#r=[];#s=[];#i=[[1,0,0,1,0,0]];#a=[-1/0,-1/0,1/0,1/0];#o=new Float64Array([1/0,1/0,-1/0,-1/0]);#l=-1;#c=new Set;#f=new Map;#h=new Map;#d;#m;#p;#u;#g;constructor(e,t,n=!1){this.#d=e.width,this.#m=e.height,this.#x(t),n&&(this.#g=new Map)}growOperationsCount(e){e>=this.#u.length&&this.#x(e,this.#u)}#x(e,t){let n=new ArrayBuffer(e*4);this.#p=new Uint8ClampedArray(n),this.#u=new Uint32Array(n),t&&t.length>0?(this.#u.set(t),this.#u.fill(_d,t.length)):this.#u.fill(_d)}save(e){return this.#e={__proto__:this.#e},this.#t={__proto__:this.#t,transform:{__proto__:this.#t.transform},moveText:{__proto__:this.#t.moveText},sameLineText:{__proto__:this.#t.sameLineText},[Ba]:{__proto__:this.#t[Ba]}},this.#a={__proto__:this.#a},this.#r.push(e),this}restore(e){let t=Object.getPrototypeOf(this.#e);if(t===null)return this;this.#e=t,this.#t=Object.getPrototypeOf(this.#t),this.#a=Object.getPrototypeOf(this.#a);let n=this.#r.pop();return n!==void 0&&(_l(this.#g,e)?.dependencies.add(n),this.#u[e]=this.#u[n]),this}recordOpenMarker(e){return this.#r.push(e),this}getOpenMarker(){return this.#r.length===0?null:this.#r.at(-1)}recordCloseMarker(e){let t=this.#r.pop();return t!==void 0&&(_l(this.#g,e)?.dependencies.add(t),this.#u[e]=this.#u[t]),this}beginMarkedContent(e){return this.#s.push(e),this}endMarkedContent(e){let t=this.#s.pop();return t!==void 0&&(_l(this.#g,e)?.dependencies.add(t),this.#u[e]=this.#u[t]),this}pushBaseTransform(e){return this.#i.push(Re.multiplyByDOMMatrix(this.#i.at(-1),e.getTransform())),this}popBaseTransform(){return this.#i.length>1&&this.#i.pop(),this}recordSimpleData(e,t){return this.#e[e]=t,this}recordIncrementalData(e,t){return this.#t[e].push(t),this}resetIncrementalData(e,t){return this.#t[e].length=0,this}recordNamedData(e,t){return this.#n.set(e,t),this}recordSimpleDataFromNamed(e,t,n){this.#e[e]=this.#n.get(t)??n}recordFutureForcedDependency(e,t){return this.recordIncrementalData(Ba,t),this}inheritSimpleDataAsFutureForcedDependencies(e){for(let t of e)t in this.#e&&this.recordFutureForcedDependency(t,this.#e[t]);return this}inheritPendingDependenciesAsFutureForcedDependencies(){for(let e of this.#c)this.recordFutureForcedDependency(Ba,e);return this}resetBBox(e){return this.#l!==e&&(this.#l=e,this.#o[0]=1/0,this.#o[1]=1/0,this.#o[2]=-1/0,this.#o[3]=-1/0),this}recordClipBox(e,t,n,i,a,s){let o=Re.multiplyByDOMMatrix(this.#i.at(-1),t.getTransform()),c=[1/0,1/0,-1/0,-1/0];Re.axialAlignedBoundingBox([n,a,i,s],o,c);let u=Re.intersect(this.#a,c);return u?(this.#a[0]=u[0],this.#a[1]=u[1],this.#a[2]=u[2],this.#a[3]=u[3]):(this.#a[0]=this.#a[1]=1/0,this.#a[2]=this.#a[3]=-1/0),this}recordBBox(e,t,n,i,a,s){let o=this.#a;if(o[0]===1/0)return this;let c=Re.multiplyByDOMMatrix(this.#i.at(-1),t.getTransform());if(o[0]===-1/0)return Re.axialAlignedBoundingBox([n,a,i,s],c,this.#o),this;let u=[1/0,1/0,-1/0,-1/0];return Re.axialAlignedBoundingBox([n,a,i,s],c,u),this.#o[0]=Math.min(this.#o[0],Math.max(u[0],o[0])),this.#o[1]=Math.min(this.#o[1],Math.max(u[1],o[1])),this.#o[2]=Math.max(this.#o[2],Math.min(u[2],o[2])),this.#o[3]=Math.max(this.#o[3],Math.min(u[3],o[3])),this}recordCharacterBBox(e,t,n,i=1,a=0,s=0,o){let c=n.bbox,u,h;if(c&&(u=c[2]!==c[0]&&c[3]!==c[1]&&this.#h.get(n),u!==!1&&(h=[0,0,0,0],Re.axialAlignedBoundingBox(c,n.fontMatrix,h),(i!==1||a!==0||s!==0)&&Re.scaleMinMax([i,0,0,-i,a,s],h),u)))return this.recordBBox(e,t,h[0],h[2],h[1],h[3]);if(!o)return this.recordFullPageBBox(e);let f=o();return c&&h&&u===void 0&&(u=h[0]<=a-f.actualBoundingBoxLeft&&h[2]>=a+f.actualBoundingBoxRight&&h[1]<=s-f.actualBoundingBoxAscent&&h[3]>=s+f.actualBoundingBoxDescent,this.#h.set(n,u),u)?this.recordBBox(e,t,h[0],h[2],h[1],h[3]):this.recordBBox(e,t,a-f.actualBoundingBoxLeft,a+f.actualBoundingBoxRight,s-f.actualBoundingBoxAscent,s+f.actualBoundingBoxDescent)}recordFullPageBBox(e){return this.#o[0]=Math.max(0,this.#a[0]),this.#o[1]=Math.max(0,this.#a[1]),this.#o[2]=Math.min(this.#d,this.#a[2]),this.#o[3]=Math.min(this.#m,this.#a[3]),this}getSimpleIndex(e){return this.#e[e]}recordDependencies(e,t){let n=this.#c,i=this.#e,a=this.#t;for(let s of t)s in this.#e?n.add(i[s]):s in a&&a[s].forEach(n.add,n);return this}recordNamedDependency(e,t){return this.#n.has(t)&&this.#c.add(this.#n.get(t)),this}recordOperation(e,t=!1){if(this.recordDependencies(e,[Ba]),this.#g){let n=_l(this.#g,e),{dependencies:i}=n;this.#c.forEach(i.add,i),this.#r.forEach(i.add,i),this.#s.forEach(i.add,i),i.delete(e),n.isRenderingOperation=!0}if(this.#l===e){let n=X1(this.#o[0]*256/this.#d),i=X1(this.#o[1]*256/this.#m),a=$1(this.#o[2]*256/this.#d),s=$1(this.#o[3]*256/this.#m);wl(this.#p,e,n,i,a,s);for(let o of this.#c)o!==e&&wl(this.#p,o,n,i,a,s);for(let o of this.#r)o!==e&&wl(this.#p,o,n,i,a,s);for(let o of this.#s)o!==e&&wl(this.#p,o,n,i,a,s);t||(this.#c.clear(),this.#l=-1)}return this}recordShowTextOperation(e,t=!1){let n=Array.from(this.#c);this.recordOperation(e,t),this.recordIncrementalData("sameLineText",e);for(let i of n)this.recordIncrementalData("sameLineText",i);return this}bboxToClipBoxDropOperation(e,t=!1){return this.#l===e&&(this.#l=-1,this.#a[0]=Math.max(this.#a[0],this.#o[0]),this.#a[1]=Math.max(this.#a[1],this.#o[1]),this.#a[2]=Math.min(this.#a[2],this.#o[2]),this.#a[3]=Math.min(this.#a[3],this.#o[3]),t||this.#c.clear()),this}_takePendingDependencies(){let e=this.#c;return this.#c=new Set,e}_extractOperation(e){let t=this.#f.get(e);return this.#f.delete(e),t}_pushPendingDependencies(e){for(let t of e)this.#c.add(t)}take(){return this.#h.clear(),new Dd(this.#u,this.#p)}takeDebugMetadata(){return this.#g}},jl=class r{#e;#t;#n;#r=0;#s=0;constructor(e,t,n){if(e instanceof r&&e.#n===!!n)return e;this.#e=e,this.#t=t,this.#n=!!n}growOperationsCount(){throw new Error("Unreachable")}save(e){return this.#s++,this.#e.save(this.#t),this}restore(e){return this.#s>0&&(this.#e.restore(this.#t),this.#s--),this}recordOpenMarker(e){return this.#r++,this}getOpenMarker(){return this.#r>0?this.#t:this.#e.getOpenMarker()}recordCloseMarker(e){return this.#r--,this}beginMarkedContent(e){return this}endMarkedContent(e){return this}pushBaseTransform(e){return this.#e.pushBaseTransform(e),this}popBaseTransform(){return this.#e.popBaseTransform(),this}recordSimpleData(e,t){return this.#e.recordSimpleData(e,this.#t),this}recordIncrementalData(e,t){return this.#e.recordIncrementalData(e,this.#t),this}resetIncrementalData(e,t){return this.#e.resetIncrementalData(e,this.#t),this}recordNamedData(e,t){return this}recordSimpleDataFromNamed(e,t,n){return this.#e.recordSimpleDataFromNamed(e,t,this.#t),this}recordFutureForcedDependency(e,t){return this.#e.recordFutureForcedDependency(e,this.#t),this}inheritSimpleDataAsFutureForcedDependencies(e){return this.#e.inheritSimpleDataAsFutureForcedDependencies(e),this}inheritPendingDependenciesAsFutureForcedDependencies(){return this.#e.inheritPendingDependenciesAsFutureForcedDependencies(),this}resetBBox(e){return this.#n||this.#e.resetBBox(this.#t),this}recordClipBox(e,t,n,i,a,s){return this.#n||this.#e.recordClipBox(this.#t,t,n,i,a,s),this}recordBBox(e,t,n,i,a,s){return this.#n||this.#e.recordBBox(this.#t,t,n,i,a,s),this}recordCharacterBBox(e,t,n,i,a,s,o){return this.#n||this.#e.recordCharacterBBox(this.#t,t,n,i,a,s,o),this}recordFullPageBBox(e){return this.#n||this.#e.recordFullPageBBox(this.#t),this}getSimpleIndex(e){return this.#e.getSimpleIndex(e)}recordDependencies(e,t){return this.#e.recordDependencies(this.#t,t),this}recordNamedDependency(e,t){return this.#e.recordNamedDependency(this.#t,t),this}recordOperation(e){return this.#e.recordOperation(this.#t,!0),this}recordShowTextOperation(e){return this.#e.recordShowTextOperation(this.#t,!0),this}bboxToClipBoxDropOperation(e){return this.#n||this.#e.bboxToClipBoxDropOperation(this.#t,!0),this}take(){throw new Error("Unreachable")}takeDebugMetadata(){throw new Error("Unreachable")}},Qr={stroke:["path","transform","filter","strokeColor","strokeAlpha","lineWidth","lineCap","lineJoin","miterLimit","dash"],fill:["path","transform","filter","fillColor","fillAlpha","globalCompositeOperation","SMask"],imageXObject:["transform","SMask","filter","fillAlpha","strokeAlpha","globalCompositeOperation"],rawFillPath:["filter","fillColor","fillAlpha"],showText:["transform","leading","charSpacing","wordSpacing","hScale","textRise","moveText","textMatrix","font","fontObj","filter","fillColor","textRenderingMode","SMask","fillAlpha","strokeAlpha","globalCompositeOperation","sameLineText"],transform:["transform"],transformAndFill:["transform","fillColor"]},Zt={FILL:"Fill",STROKE:"Stroke",SHADING:"Shading"};function Ed(r,e){if(!e)return;let t=e[2]-e[0],n=e[3]-e[1],i=new Path2D;i.rect(e[0],e[1],t,n),r.clip(i)}var fo=class{isModifyingCurrentTransform(){return!1}getPattern(){dt("Abstract method `getPattern` called.")}},Ad=class extends fo{constructor(e){super(),this._type=e[1],this._bbox=e[2],this._colorStops=e[3],this._p0=e[4],this._p1=e[5],this._r0=e[6],this._r1=e[7],this.matrix=null}_createGradient(e){let t;this._type==="axial"?t=e.createLinearGradient(this._p0[0],this._p0[1],this._p1[0],this._p1[1]):this._type==="radial"&&(t=e.createRadialGradient(this._p0[0],this._p0[1],this._r0,this._p1[0],this._p1[1],this._r1));for(let n of this._colorStops)t.addColorStop(n[0],n[1]);return t}getPattern(e,t,n,i){let a;if(i===Zt.STROKE||i===Zt.FILL){let s=t.current.getClippedPathBoundingBox(i,_t(e))||[0,0,0,0],o=Math.ceil(s[2]-s[0])||1,c=Math.ceil(s[3]-s[1])||1,u=t.cachedCanvases.getCanvas("pattern",o,c),h=u.context;h.clearRect(0,0,h.canvas.width,h.canvas.height),h.beginPath(),h.rect(0,0,h.canvas.width,h.canvas.height),h.translate(-s[0],-s[1]),n=Re.transform(n,[1,0,0,1,s[0],s[1]]),h.transform(...t.baseTransform),this.matrix&&h.transform(...this.matrix),Ed(h,this._bbox),h.fillStyle=this._createGradient(h),h.fill(),a=e.createPattern(u.canvas,"no-repeat");let f=new DOMMatrix(n);a.setTransform(f)}else Ed(e,this._bbox),a=this._createGradient(e);return a}};function $f(r,e,t,n,i,a,s,o){let c=e.coords,u=e.colors,h=r.data,f=r.width*4,d;c[t+1]>c[n+1]&&(d=t,t=n,n=d,d=a,a=s,s=d),c[n+1]>c[i+1]&&(d=n,n=i,i=d,d=s,s=o,o=d),c[t+1]>c[n+1]&&(d=t,t=n,n=d,d=a,a=s,s=d);let p=(c[t]+e.offsetX)*e.scaleX,m=(c[t+1]+e.offsetY)*e.scaleY,g=(c[n]+e.offsetX)*e.scaleX,x=(c[n+1]+e.offsetY)*e.scaleY,y=(c[i]+e.offsetX)*e.scaleX,b=(c[i+1]+e.offsetY)*e.scaleY;if(m>=b)return;let v=u[a],_=u[a+1],A=u[a+2],E=u[s],T=u[s+1],S=u[s+2],C=u[o],F=u[o+1],k=u[o+2],D=Math.round(m),B=Math.round(b),q,j,U,O,P,R,N,z;for(let I=D;I<=B;I++){if(I<x){let ie=I<m?0:(m-I)/(m-x);q=p-(p-g)*ie,j=v-(v-E)*ie,U=_-(_-T)*ie,O=A-(A-S)*ie}else{let ie;I>b?ie=1:x===b?ie=0:ie=(x-I)/(x-b),q=g-(g-y)*ie,j=E-(E-C)*ie,U=T-(T-F)*ie,O=S-(S-k)*ie}let H;I<m?H=0:I>b?H=1:H=(m-I)/(m-b),P=p-(p-y)*H,R=v-(v-C)*H,N=_-(_-F)*H,z=A-(A-k)*H;let Z=Math.round(Math.min(q,P)),re=Math.round(Math.max(q,P)),ee=f*I+Z*4;for(let ie=Z;ie<=re;ie++)H=(q-ie)/(q-P),H<0?H=0:H>1&&(H=1),h[ee++]=j-(j-R)*H|0,h[ee++]=U-(U-N)*H|0,h[ee++]=O-(O-z)*H|0,h[ee++]=255}}function hS(r,e,t){let n=e.coords,i=e.colors,a,s;switch(e.type){case"lattice":let o=e.verticesPerRow,c=Math.floor(n.length/o)-1,u=o-1;for(a=0;a<c;a++){let h=a*o;for(let f=0;f<u;f++,h++)$f(r,t,n[h],n[h+1],n[h+o],i[h],i[h+1],i[h+o]),$f(r,t,n[h+o+1],n[h+1],n[h+o],i[h+o+1],i[h+1],i[h+o])}break;case"triangles":for(a=0,s=n.length;a<s;a+=3)$f(r,t,n[a],n[a+1],n[a+2],i[a],i[a+1],i[a+2]);break;default:throw new Error("illegal figure")}}var Sd=class extends fo{constructor(e){super(),this._coords=e[2],this._colors=e[3],this._figures=e[4],this._bounds=e[5],this._bbox=e[6],this._background=e[7],this.matrix=null}_createMeshCanvas(e,t,n){let o=Math.floor(this._bounds[0]),c=Math.floor(this._bounds[1]),u=Math.ceil(this._bounds[2])-o,h=Math.ceil(this._bounds[3])-c,f=Math.min(Math.ceil(Math.abs(u*e[0]*1.1)),3e3),d=Math.min(Math.ceil(Math.abs(h*e[1]*1.1)),3e3),p=u/f,m=h/d,g={coords:this._coords,colors:this._colors,offsetX:-o,offsetY:-c,scaleX:1/p,scaleY:1/m},x=f+4,y=d+4,b=n.getCanvas("mesh",x,y),v=b.context,_=v.createImageData(f,d);if(t){let E=_.data;for(let T=0,S=E.length;T<S;T+=4)E[T]=t[0],E[T+1]=t[1],E[T+2]=t[2],E[T+3]=255}for(let E of this._figures)hS(_,E,g);return v.putImageData(_,2,2),{canvas:b.canvas,offsetX:o-2*p,offsetY:c-2*m,scaleX:p,scaleY:m}}isModifyingCurrentTransform(){return!0}getPattern(e,t,n,i){Ed(e,this._bbox);let a=new Float32Array(2);if(i===Zt.SHADING)Re.singularValueDecompose2dScale(_t(e),a);else if(this.matrix){Re.singularValueDecompose2dScale(this.matrix,a);let[o,c]=a;Re.singularValueDecompose2dScale(t.baseTransform,a),a[0]*=o,a[1]*=c}else Re.singularValueDecompose2dScale(t.baseTransform,a);let s=this._createMeshCanvas(a,i===Zt.SHADING?null:this._background,t.cachedCanvases);return i!==Zt.SHADING&&(e.setTransform(...t.baseTransform),this.matrix&&e.transform(...this.matrix)),e.translate(s.offsetX,s.offsetY),e.scale(s.scaleX,s.scaleY),e.createPattern(s.canvas,"no-repeat")}},Cd=class extends fo{getPattern(){return"hotpink"}};function fS(r){switch(r[0]){case"RadialAxial":return new Ad(r);case"Mesh":return new Sd(r);case"Dummy":return new Cd}throw new Error(`Unknown IR type: ${r[0]}`)}var q1={COLORED:1,UNCOLORED:2},Fd=class r{static MAX_PATTERN_SIZE=3e3;constructor(e,t,n,i){this.color=e[1],this.operatorList=e[2],this.matrix=e[3],this.bbox=e[4],this.xstep=e[5],this.ystep=e[6],this.paintType=e[7],this.tilingType=e[8],this.ctx=t,this.canvasGraphicsFactory=n,this.baseTransform=i}createPatternCanvas(e,t){let{bbox:n,operatorList:i,paintType:a,tilingType:s,color:o,canvasGraphicsFactory:c}=this,{xstep:u,ystep:h}=this;u=Math.abs(u),h=Math.abs(h),du("TilingType: "+s);let f=n[0],d=n[1],p=n[2],m=n[3],g=p-f,x=m-d,y=new Float32Array(2);Re.singularValueDecompose2dScale(this.matrix,y);let[b,v]=y;Re.singularValueDecompose2dScale(this.baseTransform,y);let _=b*y[0],A=v*y[1],E=g,T=x,S=!1,C=!1,F=Math.ceil(u*_),k=Math.ceil(h*A),D=Math.ceil(g*_),B=Math.ceil(x*A);F>=D?E=u:S=!0,k>=B?T=h:C=!0;let q=this.getSizeAndScale(E,this.ctx.canvas.width,_),j=this.getSizeAndScale(T,this.ctx.canvas.height,A),U=e.cachedCanvases.getCanvas("pattern",q.size,j.size),O=U.context,P=c.createCanvasGraphics(O,t);if(P.groupLevel=e.groupLevel,this.setFillAndStrokeStyleToContext(P,a,o),O.translate(-q.scale*f,-j.scale*d),P.transform(0,q.scale,0,0,j.scale,0,0),O.save(),P.dependencyTracker?.save(),this.clipBbox(P,f,d,p,m),P.baseTransform=_t(P.ctx),P.executeOperatorList(i),P.endDrawing(),P.dependencyTracker?.restore(),O.restore(),S||C){let R=U.canvas;S&&(E=u),C&&(T=h);let N=this.getSizeAndScale(E,this.ctx.canvas.width,_),z=this.getSizeAndScale(T,this.ctx.canvas.height,A),I=N.size,H=z.size,Z=e.cachedCanvases.getCanvas("pattern-workaround",I,H),re=Z.context,ee=S?Math.floor(g/u):0,ie=C?Math.floor(x/h):0;for(let se=0;se<=ee;se++)for(let de=0;de<=ie;de++)re.drawImage(R,I*se,H*de,I,H,0,0,I,H);return{canvas:Z.canvas,scaleX:N.scale,scaleY:z.scale,offsetX:f,offsetY:d}}return{canvas:U.canvas,scaleX:q.scale,scaleY:j.scale,offsetX:f,offsetY:d}}getSizeAndScale(e,t,n){let i=Math.max(r.MAX_PATTERN_SIZE,t),a=Math.ceil(e*n);return a>=i?a=i:n=a/e,{scale:n,size:a}}clipBbox(e,t,n,i,a){let s=i-t,o=a-n;e.ctx.rect(t,n,s,o),Re.axialAlignedBoundingBox([t,n,i,a],_t(e.ctx),e.current.minMax),e.clip(),e.endPath()}setFillAndStrokeStyleToContext(e,t,n){let i=e.ctx,a=e.current;switch(t){case q1.COLORED:let{fillStyle:s,strokeStyle:o}=this.ctx;i.fillStyle=a.fillColor=s,i.strokeStyle=a.strokeColor=o;break;case q1.UNCOLORED:i.fillStyle=i.strokeStyle=n,a.fillColor=a.strokeColor=n;break;default:throw new Jf(`Unsupported paint type: ${t}`)}}isModifyingCurrentTransform(){return!1}getPattern(e,t,n,i,a){let s=n;i!==Zt.SHADING&&(s=Re.transform(s,t.baseTransform),this.matrix&&(s=Re.transform(s,this.matrix)));let o=this.createPatternCanvas(t,a),c=new DOMMatrix(s);c=c.translate(o.offsetX,o.offsetY),c=c.scale(1/o.scaleX,1/o.scaleY);let u=e.createPattern(o.canvas,"repeat");return u.setTransform(c),u}};function dS({src:r,srcPos:e=0,dest:t,width:n,height:i,nonBlackColor:a=4294967295,inverseDecode:s=!1}){let o=Mt.isLittleEndian?4278190080:255,[c,u]=s?[a,o]:[o,a],h=n>>3,f=n&7,d=r.length;t=new Uint32Array(t.buffer);let p=0;for(let m=0;m<i;m++){for(let x=e+h;e<x;e++){let y=e<d?r[e]:255;t[p++]=y&128?u:c,t[p++]=y&64?u:c,t[p++]=y&32?u:c,t[p++]=y&16?u:c,t[p++]=y&8?u:c,t[p++]=y&4?u:c,t[p++]=y&2?u:c,t[p++]=y&1?u:c}if(f===0)continue;let g=e<d?r[e++]:255;for(let x=0;x<f;x++)t[p++]=g&1<<7-x?u:c}return{srcPos:e,destPos:p}}var Y1=16,K1=100,pS=15,Z1=10,Ur=16,qf=new DOMMatrix,zr=new Float32Array(2),Ma=new Float32Array([1/0,1/0,-1/0,-1/0]);function gS(r,e){if(r._removeMirroring)throw new Error("Context is already forwarding operations.");r.__originalSave=r.save,r.__originalRestore=r.restore,r.__originalRotate=r.rotate,r.__originalScale=r.scale,r.__originalTranslate=r.translate,r.__originalTransform=r.transform,r.__originalSetTransform=r.setTransform,r.__originalResetTransform=r.resetTransform,r.__originalClip=r.clip,r.__originalMoveTo=r.moveTo,r.__originalLineTo=r.lineTo,r.__originalBezierCurveTo=r.bezierCurveTo,r.__originalRect=r.rect,r.__originalClosePath=r.closePath,r.__originalBeginPath=r.beginPath,r._removeMirroring=()=>{r.save=r.__originalSave,r.restore=r.__originalRestore,r.rotate=r.__originalRotate,r.scale=r.__originalScale,r.translate=r.__originalTranslate,r.transform=r.__originalTransform,r.setTransform=r.__originalSetTransform,r.resetTransform=r.__originalResetTransform,r.clip=r.__originalClip,r.moveTo=r.__originalMoveTo,r.lineTo=r.__originalLineTo,r.bezierCurveTo=r.__originalBezierCurveTo,r.rect=r.__originalRect,r.closePath=r.__originalClosePath,r.beginPath=r.__originalBeginPath,delete r._removeMirroring},r.save=function(){e.save(),this.__originalSave()},r.restore=function(){e.restore(),this.__originalRestore()},r.translate=function(t,n){e.translate(t,n),this.__originalTranslate(t,n)},r.scale=function(t,n){e.scale(t,n),this.__originalScale(t,n)},r.transform=function(t,n,i,a,s,o){e.transform(t,n,i,a,s,o),this.__originalTransform(t,n,i,a,s,o)},r.setTransform=function(t,n,i,a,s,o){e.setTransform(t,n,i,a,s,o),this.__originalSetTransform(t,n,i,a,s,o)},r.resetTransform=function(){e.resetTransform(),this.__originalResetTransform()},r.rotate=function(t){e.rotate(t),this.__originalRotate(t)},r.clip=function(t){e.clip(t),this.__originalClip(t)},r.moveTo=function(t,n){e.moveTo(t,n),this.__originalMoveTo(t,n)},r.lineTo=function(t,n){e.lineTo(t,n),this.__originalLineTo(t,n)},r.bezierCurveTo=function(t,n,i,a,s,o){e.bezierCurveTo(t,n,i,a,s,o),this.__originalBezierCurveTo(t,n,i,a,s,o)},r.rect=function(t,n,i,a){e.rect(t,n,i,a),this.__originalRect(t,n,i,a)},r.closePath=function(){e.closePath(),this.__originalClosePath()},r.beginPath=function(){e.beginPath(),this.__originalBeginPath()}}var kd=class{constructor(e){this.canvasFactory=e,this.cache=Object.create(null)}getCanvas(e,t,n){let i;return this.cache[e]!==void 0?(i=this.cache[e],this.canvasFactory.reset(i,t,n)):(i=this.canvasFactory.create(t,n),this.cache[e]=i),i}delete(e){delete this.cache[e]}clear(){for(let e in this.cache){let t=this.cache[e];this.canvasFactory.destroy(t),delete this.cache[e]}}};function Dl(r,e,t,n,i,a,s,o,c,u){let[h,f,d,p,m,g]=_t(r);if(f===0&&d===0){let b=s*h+m,v=Math.round(b),_=o*p+g,A=Math.round(_),E=(s+c)*h+m,T=Math.abs(Math.round(E)-v)||1,S=(o+u)*p+g,C=Math.abs(Math.round(S)-A)||1;return r.setTransform(Math.sign(h),0,0,Math.sign(p),v,A),r.drawImage(e,t,n,i,a,0,0,T,C),r.setTransform(h,f,d,p,m,g),[T,C]}if(h===0&&p===0){let b=o*d+m,v=Math.round(b),_=s*f+g,A=Math.round(_),E=(o+u)*d+m,T=Math.abs(Math.round(E)-v)||1,S=(s+c)*f+g,C=Math.abs(Math.round(S)-A)||1;return r.setTransform(0,Math.sign(f),Math.sign(d),0,v,A),r.drawImage(e,t,n,i,a,0,0,C,T),r.setTransform(h,f,d,p,m,g),[C,T]}r.drawImage(e,t,n,i,a,s,o,c,u);let x=Math.hypot(h,f),y=Math.hypot(d,p);return[x*c,y*u]}var Gl=class{alphaIsShape=!1;fontSize=0;fontSizeScale=1;textMatrix=null;textMatrixScale=1;fontMatrix=Zf;leading=0;x=0;y=0;lineX=0;lineY=0;charSpacing=0;wordSpacing=0;textHScale=1;textRenderingMode=Kt.FILL;textRise=0;fillColor="#000000";strokeColor="#000000";patternFill=!1;patternStroke=!1;fillAlpha=1;strokeAlpha=1;lineWidth=1;activeSMask=null;transferMaps="none";constructor(e,t,n){n?.(this),this.clipBox=new Float32Array([0,0,e,t]),this.minMax=Ma.slice()}clone(){let e=Object.create(this);return e.clipBox=this.clipBox.slice(),e.minMax=this.minMax.slice(),e}getPathBoundingBox(e=Zt.FILL,t=null){let n=this.minMax.slice();if(e===Zt.STROKE){t||dt("Stroke bounding box must include transform."),Re.singularValueDecompose2dScale(t,zr);let i=zr[0]*this.lineWidth/2,a=zr[1]*this.lineWidth/2;n[0]-=i,n[1]-=a,n[2]+=i,n[3]+=a}return n}updateClipFromPath(){let e=Re.intersect(this.clipBox,this.getPathBoundingBox());this.startNewPathAndClipBox(e||[0,0,0,0])}isEmptyClip(){return this.minMax[0]===1/0}startNewPathAndClipBox(e){this.clipBox.set(e,0),this.minMax.set(Ma,0)}getClippedPathBoundingBox(e=Zt.FILL,t=null){return Re.intersect(this.clipBox,this.getPathBoundingBox(e,t))}};function J1(r,e){if(e instanceof ImageData){r.putImageData(e,0,0);return}let t=e.height,n=e.width,i=t%Ur,a=(t-i)/Ur,s=i===0?a:a+1,o=r.createImageData(n,Ur),c=0,u,h=e.data,f=o.data,d,p,m,g;if(e.kind===Cl.GRAYSCALE_1BPP){let x=h.byteLength,y=new Uint32Array(f.buffer,0,f.byteLength>>2),b=y.length,v=n+7>>3,_=4294967295,A=Mt.isLittleEndian?4278190080:255;for(d=0;d<s;d++){for(m=d<a?Ur:i,u=0,p=0;p<m;p++){let E=x-c,T=0,S=E>v?n:E*8-7,C=S&-8,F=0,k=0;for(;T<C;T+=8)k=h[c++],y[u++]=k&128?_:A,y[u++]=k&64?_:A,y[u++]=k&32?_:A,y[u++]=k&16?_:A,y[u++]=k&8?_:A,y[u++]=k&4?_:A,y[u++]=k&2?_:A,y[u++]=k&1?_:A;for(;T<S;T++)F===0&&(k=h[c++],F=128),y[u++]=k&F?_:A,F>>=1}for(;u<b;)y[u++]=0;r.putImageData(o,0,d*Ur)}}else if(e.kind===Cl.RGBA_32BPP){for(p=0,g=n*Ur*4,d=0;d<a;d++)f.set(h.subarray(c,c+g)),c+=g,r.putImageData(o,0,p),p+=Ur;d<s&&(g=n*i*4,f.set(h.subarray(c,c+g)),r.putImageData(o,0,p))}else if(e.kind===Cl.RGB_24BPP)for(m=Ur,g=n*m,d=0;d<s;d++){for(d>=a&&(m=i,g=n*m),u=0,p=g;p--;)f[u++]=h[c++],f[u++]=h[c++],f[u++]=h[c++],f[u++]=255;r.putImageData(o,0,d*Ur)}else throw new Error(`bad image kind: ${e.kind}`)}function Q1(r,e){if(e.bitmap){r.drawImage(e.bitmap,0,0);return}let t=e.height,n=e.width,i=t%Ur,a=(t-i)/Ur,s=i===0?a:a+1,o=r.createImageData(n,Ur),c=0,u=e.data,h=o.data;for(let f=0;f<s;f++){let d=f<a?Ur:i;({srcPos:c}=dS({src:u,srcPos:c,dest:h,width:n,height:d,nonBlackColor:0})),r.putImageData(o,0,f*Ur)}}function Js(r,e){let t=["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font","filter"];for(let n of t)r[n]!==void 0&&(e[n]=r[n]);r.setLineDash!==void 0&&(e.setLineDash(r.getLineDash()),e.lineDashOffset=r.lineDashOffset)}function Tl(r){r.strokeStyle=r.fillStyle="#000000",r.fillRule="nonzero",r.globalAlpha=1,r.lineWidth=1,r.lineCap="butt",r.lineJoin="miter",r.miterLimit=10,r.globalCompositeOperation="source-over",r.font="10px sans-serif",r.setLineDash!==void 0&&(r.setLineDash([]),r.lineDashOffset=0);let{filter:e}=r;e!=="none"&&e!==""&&(r.filter="none")}function ex(r,e){if(e)return!0;Re.singularValueDecompose2dScale(r,zr);let t=Math.fround(Xn.pixelRatio*mi.PDF_TO_CSS_UNITS);return zr[0]<=t&&zr[1]<=t}var mS=["butt","round","square"],xS=["miter","round","bevel"],vS={},tx={},Wa=class r{constructor(e,t,n,i,a,{optionalContentConfig:s,markedContentStack:o=null},c,u,h){this.ctx=e,this.current=new Gl(this.ctx.canvas.width,this.ctx.canvas.height),this.stateStack=[],this.pendingClip=null,this.pendingEOFill=!1,this.res=null,this.xobjs=null,this.commonObjs=t,this.objs=n,this.canvasFactory=i,this.filterFactory=a,this.groupStack=[],this.baseTransform=null,this.baseTransformStack=[],this.groupLevel=0,this.smaskStack=[],this.smaskCounter=0,this.tempSMask=null,this.suspendedCtx=null,this.contentVisible=!0,this.markedContentStack=o||[],this.optionalContentConfig=s,this.cachedCanvases=new kd(this.canvasFactory),this.cachedPatterns=new Map,this.annotationCanvasMap=c,this.viewportScale=1,this.outputScaleX=1,this.outputScaleY=1,this.pageColors=u,this._cachedScaleForStroking=[-1,0],this._cachedGetSinglePixelWidth=null,this._cachedBitmapsMap=new Map,this.dependencyTracker=h??null}getObject(e,t,n=null){return typeof t=="string"?(this.dependencyTracker?.recordNamedDependency(e,t),t.startsWith("g_")?this.commonObjs.get(t):this.objs.get(t)):n}beginDrawing({transform:e,viewport:t,transparency:n=!1,background:i=null}){let a=this.ctx.canvas.width,s=this.ctx.canvas.height,o=this.ctx.fillStyle;if(this.ctx.fillStyle=i||"#ffffff",this.ctx.fillRect(0,0,a,s),this.ctx.fillStyle=o,n){let c=this.cachedCanvases.getCanvas("transparent",a,s);this.compositeCtx=this.ctx,this.transparentCanvas=c.canvas,this.ctx=c.context,this.ctx.save(),this.ctx.transform(..._t(this.compositeCtx))}this.ctx.save(),Tl(this.ctx),e&&(this.ctx.transform(...e),this.outputScaleX=e[0],this.outputScaleY=e[0]),this.ctx.transform(...t.transform),this.viewportScale=t.scale,this.baseTransform=_t(this.ctx)}executeOperatorList(e,t,n,i,a){let s=e.argsArray,o=e.fnArray,c=t||0,u=s.length;if(u===c)return c;let h=u-c>Z1&&typeof n=="function",f=h?Date.now()+pS:0,d=0,p=this.commonObjs,m=this.objs,g,x;for(;;){if(i!==void 0&&c===i.nextBreakPoint)return i.breakIt(c,n),c;if(!a||a(c))if(g=o[c],x=s[c]??null,g!==ao.dependency)x===null?this[g](c):this[g](c,...x);else for(let y of x){this.dependencyTracker?.recordNamedData(y,c);let b=y.startsWith("g_")?p:m;if(!b.has(y))return b.get(y,n),c}if(c++,c===u)return c;if(h&&++d>Z1){if(Date.now()>f)return n(),c;d=0}}}#e(){for(;this.stateStack.length||this.inSMaskMode;)this.restore();this.current.activeSMask=null,this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null)}endDrawing(){this.#e(),this.cachedCanvases.clear(),this.cachedPatterns.clear();for(let e of this._cachedBitmapsMap.values()){for(let t of e.values())typeof HTMLCanvasElement<"u"&&t instanceof HTMLCanvasElement&&(t.width=t.height=0);e.clear()}this._cachedBitmapsMap.clear(),this.#t()}#t(){if(this.pageColors){let e=this.filterFactory.addHCMFilter(this.pageColors.foreground,this.pageColors.background);if(e!=="none"){let t=this.ctx.filter;this.ctx.filter=e,this.ctx.drawImage(this.ctx.canvas,0,0),this.ctx.filter=t}}}_scaleImage(e,t){let n=e.width??e.displayWidth,i=e.height??e.displayHeight,a=Math.max(Math.hypot(t[0],t[1]),1),s=Math.max(Math.hypot(t[2],t[3]),1),o=n,c=i,u="prescale1",h,f;for(;a>2&&o>1||s>2&&c>1;){let d=o,p=c;a>2&&o>1&&(d=o>=16384?Math.floor(o/2)-1||1:Math.ceil(o/2),a/=o/d),s>2&&c>1&&(p=c>=16384?Math.floor(c/2)-1||1:Math.ceil(c)/2,s/=c/p),h=this.cachedCanvases.getCanvas(u,d,p),f=h.context,f.clearRect(0,0,d,p),f.drawImage(e,0,0,o,c,0,0,d,p),e=h.canvas,o=d,c=p,u=u==="prescale1"?"prescale2":"prescale1"}return{img:e,paintWidth:o,paintHeight:c}}_createMaskCanvas(e,t){let n=this.ctx,{width:i,height:a}=t,s=this.current.fillColor,o=this.current.patternFill,c=_t(n),u,h,f,d;if((t.bitmap||t.data)&&t.count>1){let F=t.bitmap||t.data.buffer;h=JSON.stringify(o?c:[c.slice(0,4),s]),u=this._cachedBitmapsMap.get(F),u||(u=new Map,this._cachedBitmapsMap.set(F,u));let k=u.get(h);if(k&&!o){let D=Math.round(Math.min(c[0],c[2])+c[4]),B=Math.round(Math.min(c[1],c[3])+c[5]);return this.dependencyTracker?.recordDependencies(e,Qr.transformAndFill),{canvas:k,offsetX:D,offsetY:B}}f=k}f||(d=this.cachedCanvases.getCanvas("maskCanvas",i,a),Q1(d.context,t));let p=Re.transform(c,[1/i,0,0,-1/a,0,0]);p=Re.transform(p,[1,0,0,1,0,-a]);let m=Ma.slice();Re.axialAlignedBoundingBox([0,0,i,a],p,m);let[g,x,y,b]=m,v=Math.round(y-g)||1,_=Math.round(b-x)||1,A=this.cachedCanvases.getCanvas("fillCanvas",v,_),E=A.context,T=g,S=x;E.translate(-T,-S),E.transform(...p),f||(f=this._scaleImage(d.canvas,An(E)),f=f.img,u&&o&&u.set(h,f)),E.imageSmoothingEnabled=ex(_t(E),t.interpolate),Dl(E,f,0,0,f.width,f.height,0,0,i,a),E.globalCompositeOperation="source-in";let C=Re.transform(An(E),[1,0,0,1,-T,-S]);return E.fillStyle=o?s.getPattern(n,this,C,Zt.FILL,e):s,E.fillRect(0,0,i,a),u&&!o&&(this.cachedCanvases.delete("fillCanvas"),u.set(h,A.canvas)),this.dependencyTracker?.recordDependencies(e,Qr.transformAndFill),{canvas:A.canvas,offsetX:Math.round(T),offsetY:Math.round(S)}}setLineWidth(e,t){this.dependencyTracker?.recordSimpleData("lineWidth",e),t!==this.current.lineWidth&&(this._cachedScaleForStroking[0]=-1),this.current.lineWidth=t,this.ctx.lineWidth=t}setLineCap(e,t){this.dependencyTracker?.recordSimpleData("lineCap",e),this.ctx.lineCap=mS[t]}setLineJoin(e,t){this.dependencyTracker?.recordSimpleData("lineJoin",e),this.ctx.lineJoin=xS[t]}setMiterLimit(e,t){this.dependencyTracker?.recordSimpleData("miterLimit",e),this.ctx.miterLimit=t}setDash(e,t,n){this.dependencyTracker?.recordSimpleData("dash",e);let i=this.ctx;i.setLineDash!==void 0&&(i.setLineDash(t),i.lineDashOffset=n)}setRenderingIntent(e,t){}setFlatness(e,t){}setGState(e,t){for(let[n,i]of t)switch(n){case"LW":this.setLineWidth(e,i);break;case"LC":this.setLineCap(e,i);break;case"LJ":this.setLineJoin(e,i);break;case"ML":this.setMiterLimit(e,i);break;case"D":this.setDash(e,i[0],i[1]);break;case"RI":this.setRenderingIntent(e,i);break;case"FL":this.setFlatness(e,i);break;case"Font":this.setFont(e,i[0],i[1]);break;case"CA":this.dependencyTracker?.recordSimpleData("strokeAlpha",e),this.current.strokeAlpha=i;break;case"ca":this.dependencyTracker?.recordSimpleData("fillAlpha",e),this.ctx.globalAlpha=this.current.fillAlpha=i;break;case"BM":this.dependencyTracker?.recordSimpleData("globalCompositeOperation",e),this.ctx.globalCompositeOperation=i;break;case"SMask":this.dependencyTracker?.recordSimpleData("SMask",e),this.current.activeSMask=i?this.tempSMask:null,this.tempSMask=null,this.checkSMaskState();break;case"TR":this.dependencyTracker?.recordSimpleData("filter",e),this.ctx.filter=this.current.transferMaps=this.filterFactory.addFilter(i);break}}get inSMaskMode(){return!!this.suspendedCtx}checkSMaskState(){let e=this.inSMaskMode;this.current.activeSMask&&!e?this.beginSMaskMode():!this.current.activeSMask&&e&&this.endSMaskMode()}beginSMaskMode(e){if(this.inSMaskMode)throw new Error("beginSMaskMode called while already in smask mode");let t=this.ctx.canvas.width,n=this.ctx.canvas.height,i="smaskGroupAt"+this.groupLevel,a=this.cachedCanvases.getCanvas(i,t,n);this.suspendedCtx=this.ctx;let s=this.ctx=a.context;s.setTransform(this.suspendedCtx.getTransform()),Js(this.suspendedCtx,s),gS(s,this.suspendedCtx),this.setGState(e,[["BM","source-over"]])}endSMaskMode(){if(!this.inSMaskMode)throw new Error("endSMaskMode called while not in smask mode");this.ctx._removeMirroring(),Js(this.ctx,this.suspendedCtx),this.ctx=this.suspendedCtx,this.suspendedCtx=null}compose(e){if(!this.current.activeSMask)return;e?(e[0]=Math.floor(e[0]),e[1]=Math.floor(e[1]),e[2]=Math.ceil(e[2]),e[3]=Math.ceil(e[3])):e=[0,0,this.ctx.canvas.width,this.ctx.canvas.height];let t=this.current.activeSMask,n=this.suspendedCtx;this.composeSMask(n,t,this.ctx,e),this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.clearRect(0,0,this.ctx.canvas.width,this.ctx.canvas.height),this.ctx.restore()}composeSMask(e,t,n,i){let a=i[0],s=i[1],o=i[2]-a,c=i[3]-s;o===0||c===0||(this.genericComposeSMask(t.context,n,o,c,t.subtype,t.backdrop,t.transferMap,a,s,t.offsetX,t.offsetY),e.save(),e.globalAlpha=1,e.globalCompositeOperation="source-over",e.setTransform(1,0,0,1,0,0),e.drawImage(n.canvas,0,0),e.restore())}genericComposeSMask(e,t,n,i,a,s,o,c,u,h,f){let d=e.canvas,p=c-h,m=u-f;if(s)if(p<0||m<0||p+n>d.width||m+i>d.height){let x=this.cachedCanvases.getCanvas("maskExtension",n,i),y=x.context;y.drawImage(d,-p,-m),y.globalCompositeOperation="destination-atop",y.fillStyle=s,y.fillRect(0,0,n,i),y.globalCompositeOperation="source-over",d=x.canvas,p=m=0}else{e.save(),e.globalAlpha=1,e.setTransform(1,0,0,1,0,0);let x=new Path2D;x.rect(p,m,n,i),e.clip(x),e.globalCompositeOperation="destination-atop",e.fillStyle=s,e.fillRect(p,m,n,i),e.restore()}t.save(),t.globalAlpha=1,t.setTransform(1,0,0,1,0,0),a==="Alpha"&&o?t.filter=this.filterFactory.addAlphaFilter(o):a==="Luminosity"&&(t.filter=this.filterFactory.addLuminosityFilter(o));let g=new Path2D;g.rect(c,u,n,i),t.clip(g),t.globalCompositeOperation="destination-in",t.drawImage(d,p,m,n,i,c,u,n,i),t.restore()}save(e){this.inSMaskMode&&Js(this.ctx,this.suspendedCtx),this.ctx.save();let t=this.current;this.stateStack.push(t),this.current=t.clone(),this.dependencyTracker?.save(e)}restore(e){if(this.dependencyTracker?.restore(e),this.stateStack.length===0){this.inSMaskMode&&this.endSMaskMode();return}this.current=this.stateStack.pop(),this.ctx.restore(),this.inSMaskMode&&Js(this.suspendedCtx,this.ctx),this.checkSMaskState(),this.pendingClip=null,this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null}transform(e,t,n,i,a,s,o){this.dependencyTracker?.recordIncrementalData("transform",e),this.ctx.transform(t,n,i,a,s,o),this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null}constructPath(e,t,n,i){let[a]=n;if(!i){a||=n[0]=new Path2D,this[t](e,a);return}if(this.dependencyTracker!==null){let s=t===ao.stroke?this.current.lineWidth/2:0;this.dependencyTracker.resetBBox(e).recordBBox(e,this.ctx,i[0]-s,i[2]+s,i[1]-s,i[3]+s).recordDependencies(e,["transform"])}if(!(a instanceof Path2D)){let s=n[0]=new Path2D;for(let o=0,c=a.length;o<c;)switch(a[o++]){case vl.moveTo:s.moveTo(a[o++],a[o++]);break;case vl.lineTo:s.lineTo(a[o++],a[o++]);break;case vl.curveTo:s.bezierCurveTo(a[o++],a[o++],a[o++],a[o++],a[o++],a[o++]);break;case vl.closePath:s.closePath();break;default:Ne(`Unrecognized drawing path operator: ${a[o-1]}`);break}a=s}Re.axialAlignedBoundingBox(i,_t(this.ctx),this.current.minMax),this[t](e,a),this._pathStartIdx=e}closePath(e){this.ctx.closePath()}stroke(e,t,n=!0){let i=this.ctx,a=this.current.strokeColor;if(i.globalAlpha=this.current.strokeAlpha,this.contentVisible)if(typeof a=="object"&&a?.getPattern){let s=a.isModifyingCurrentTransform()?i.getTransform():null;if(i.save(),i.strokeStyle=a.getPattern(i,this,An(i),Zt.STROKE,e),s){let o=new Path2D;o.addPath(t,i.getTransform().invertSelf().multiplySelf(s)),t=o}this.rescaleAndStroke(t,!1),i.restore()}else this.rescaleAndStroke(t,!0);this.dependencyTracker?.recordDependencies(e,Qr.stroke),n&&this.consumePath(e,t,this.current.getClippedPathBoundingBox(Zt.STROKE,_t(this.ctx))),i.globalAlpha=this.current.fillAlpha}closeStroke(e,t){this.stroke(e,t)}fill(e,t,n=!0){let i=this.ctx,a=this.current.fillColor,s=this.current.patternFill,o=!1;if(s){let u=a.isModifyingCurrentTransform()?i.getTransform():null;if(this.dependencyTracker?.save(e),i.save(),i.fillStyle=a.getPattern(i,this,An(i),Zt.FILL,e),u){let h=new Path2D;h.addPath(t,i.getTransform().invertSelf().multiplySelf(u)),t=h}o=!0}let c=this.current.getClippedPathBoundingBox();this.contentVisible&&c!==null&&(this.pendingEOFill?(i.fill(t,"evenodd"),this.pendingEOFill=!1):i.fill(t)),this.dependencyTracker?.recordDependencies(e,Qr.fill),o&&(i.restore(),this.dependencyTracker?.restore(e)),n&&this.consumePath(e,t,c)}eoFill(e,t){this.pendingEOFill=!0,this.fill(e,t)}fillStroke(e,t){this.fill(e,t,!1),this.stroke(e,t,!1),this.consumePath(e,t)}eoFillStroke(e,t){this.pendingEOFill=!0,this.fillStroke(e,t)}closeFillStroke(e,t){this.fillStroke(e,t)}closeEOFillStroke(e,t){this.pendingEOFill=!0,this.fillStroke(e,t)}endPath(e,t){this.consumePath(e,t)}rawFillPath(e,t){this.ctx.fill(t),this.dependencyTracker?.recordDependencies(e,Qr.rawFillPath).recordOperation(e)}clip(e){this.dependencyTracker?.recordFutureForcedDependency("clipMode",e),this.pendingClip=vS}eoClip(e){this.dependencyTracker?.recordFutureForcedDependency("clipMode",e),this.pendingClip=tx}beginText(e){this.current.textMatrix=null,this.current.textMatrixScale=1,this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0,this.dependencyTracker?.recordOpenMarker(e).resetIncrementalData("sameLineText").resetIncrementalData("moveText",e)}endText(e){let t=this.pendingTextPaths,n=this.ctx;if(this.dependencyTracker){let{dependencyTracker:i}=this;t!==void 0&&i.recordFutureForcedDependency("textClip",i.getOpenMarker()).recordFutureForcedDependency("textClip",e),i.recordCloseMarker(e)}if(t!==void 0){let i=new Path2D,a=n.getTransform().invertSelf();for(let{transform:s,x:o,y:c,fontSize:u,path:h}of t)h&&i.addPath(h,new DOMMatrix(s).preMultiplySelf(a).translate(o,c).scale(u,-u));n.clip(i)}delete this.pendingTextPaths}setCharSpacing(e,t){this.dependencyTracker?.recordSimpleData("charSpacing",e),this.current.charSpacing=t}setWordSpacing(e,t){this.dependencyTracker?.recordSimpleData("wordSpacing",e),this.current.wordSpacing=t}setHScale(e,t){this.dependencyTracker?.recordSimpleData("hScale",e),this.current.textHScale=t/100}setLeading(e,t){this.dependencyTracker?.recordSimpleData("leading",e),this.current.leading=-t}setFont(e,t,n){this.dependencyTracker?.recordSimpleData("font",e).recordSimpleDataFromNamed("fontObj",t,e);let i=this.commonObjs.get(t),a=this.current;if(!i)throw new Error(`Can't find font for ${t}`);if(a.fontMatrix=i.fontMatrix||Zf,(a.fontMatrix[0]===0||a.fontMatrix[3]===0)&&Ne("Invalid font matrix for font "+t),n<0?(n=-n,a.fontDirection=-1):a.fontDirection=1,this.current.font=i,this.current.fontSize=n,i.isType3Font)return;let s=i.loadedName||"sans-serif",o=i.systemFontInfo?.css||`"${s}", ${i.fallbackName}`,c="normal";i.black?c="900":i.bold&&(c="bold");let u=i.italic?"italic":"normal",h=n;n<Y1?h=Y1:n>K1&&(h=K1),this.current.fontSizeScale=n/h,this.ctx.font=`${u} ${c} ${h}px ${o}`}setTextRenderingMode(e,t){this.dependencyTracker?.recordSimpleData("textRenderingMode",e),this.current.textRenderingMode=t}setTextRise(e,t){this.dependencyTracker?.recordSimpleData("textRise",e),this.current.textRise=t}moveText(e,t,n){this.dependencyTracker?.resetIncrementalData("sameLineText").recordIncrementalData("moveText",e),this.current.x=this.current.lineX+=t,this.current.y=this.current.lineY+=n}setLeadingMoveText(e,t,n){this.setLeading(e,-n),this.moveText(e,t,n)}setTextMatrix(e,t){this.dependencyTracker?.recordSimpleData("textMatrix",e);let{current:n}=this;n.textMatrix=t,n.textMatrixScale=Math.hypot(t[0],t[1]),n.x=n.lineX=0,n.y=n.lineY=0}nextLine(e){this.moveText(e,0,this.current.leading),this.dependencyTracker?.recordIncrementalData("moveText",this.dependencyTracker.getSimpleIndex("leading")??e)}#n(e,t,n){let i=new Path2D;return i.addPath(e,new DOMMatrix(n).invertSelf().multiplySelf(t)),i}paintChar(e,t,n,i,a,s){let o=this.ctx,c=this.current,u=c.font,h=c.textRenderingMode,f=c.fontSize/c.fontSizeScale,d=h&Kt.FILL_STROKE_MASK,p=!!(h&Kt.ADD_TO_PATH_FLAG),m=c.patternFill&&!u.missingFile,g=c.patternStroke&&!u.missingFile,x;if((u.disableFontFace||p||m||g)&&!u.missingFile&&(x=u.getPathGenerator(this.commonObjs,t)),x&&(u.disableFontFace||m||g)){o.save(),o.translate(n,i),o.scale(f,-f),this.dependencyTracker?.recordCharacterBBox(e,o,u);let y;if(d===Kt.FILL||d===Kt.FILL_STROKE)if(a){y=o.getTransform(),o.setTransform(...a);let b=this.#n(x,y,a);o.fill(b)}else o.fill(x);if(d===Kt.STROKE||d===Kt.FILL_STROKE)if(s){y||=o.getTransform(),o.setTransform(...s);let{a:b,b:v,c:_,d:A}=y,E=Re.inverseTransform(s),T=Re.transform([b,v,_,A,0,0],E);Re.singularValueDecompose2dScale(T,zr),o.lineWidth*=Math.max(zr[0],zr[1])/f,o.stroke(this.#n(x,y,s))}else o.lineWidth/=f,o.stroke(x);o.restore()}else(d===Kt.FILL||d===Kt.FILL_STROKE)&&(o.fillText(t,n,i),this.dependencyTracker?.recordCharacterBBox(e,o,u,f,n,i,()=>o.measureText(t))),(d===Kt.STROKE||d===Kt.FILL_STROKE)&&(this.dependencyTracker&&this.dependencyTracker?.recordCharacterBBox(e,o,u,f,n,i,()=>o.measureText(t)).recordDependencies(e,Qr.stroke),o.strokeText(t,n,i));p&&((this.pendingTextPaths||=[]).push({transform:_t(o),x:n,y:i,fontSize:f,path:x}),this.dependencyTracker?.recordCharacterBBox(e,o,u,f,n,i))}get isFontSubpixelAAEnabled(){let{context:e}=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10);e.scale(1.5,1),e.fillText("I",0,10);let t=e.getImageData(0,0,10,10).data,n=!1;for(let i=3;i<t.length;i+=4)if(t[i]>0&&t[i]<255){n=!0;break}return Ge(this,"isFontSubpixelAAEnabled",n)}showText(e,t){this.dependencyTracker&&(this.dependencyTracker.recordDependencies(e,Qr.showText).resetBBox(e),this.current.textRenderingMode&Kt.ADD_TO_PATH_FLAG&&this.dependencyTracker.recordFutureForcedDependency("textClip",e).inheritPendingDependenciesAsFutureForcedDependencies());let n=this.current,i=n.font;if(i.isType3Font){this.showType3Text(e,t),this.dependencyTracker?.recordShowTextOperation(e);return}let a=n.fontSize;if(a===0){this.dependencyTracker?.recordOperation(e);return}let s=this.ctx,o=n.fontSizeScale,c=n.charSpacing,u=n.wordSpacing,h=n.fontDirection,f=n.textHScale*h,d=t.length,p=i.vertical,m=p?1:-1,g=i.defaultVMetrics,x=a*n.fontMatrix[0],y=n.textRenderingMode===Kt.FILL&&!i.disableFontFace&&!n.patternFill;s.save(),n.textMatrix&&s.transform(...n.textMatrix),s.translate(n.x,n.y+n.textRise),h>0?s.scale(f,-1):s.scale(f,1);let b,v;if(n.patternFill){s.save();let S=n.fillColor.getPattern(s,this,An(s),Zt.FILL,e);b=_t(s),s.restore(),s.fillStyle=S}if(n.patternStroke){s.save();let S=n.strokeColor.getPattern(s,this,An(s),Zt.STROKE,e);v=_t(s),s.restore(),s.strokeStyle=S}let _=n.lineWidth,A=n.textMatrixScale;if(A===0||_===0){let S=n.textRenderingMode&Kt.FILL_STROKE_MASK;(S===Kt.STROKE||S===Kt.FILL_STROKE)&&(_=this.getSinglePixelWidth())}else _/=A;if(o!==1&&(s.scale(o,o),_/=o),s.lineWidth=_,i.isInvalidPDFjsFont){let S=[],C=0;for(let k of t)S.push(k.unicode),C+=k.width;let F=S.join("");if(s.fillText(F,0,0),this.dependencyTracker!==null){let k=s.measureText(F);this.dependencyTracker.recordBBox(e,this.ctx,-k.actualBoundingBoxLeft,k.actualBoundingBoxRight,-k.actualBoundingBoxAscent,k.actualBoundingBoxDescent).recordShowTextOperation(e)}n.x+=C*x*f,s.restore(),this.compose();return}let E=0,T;for(T=0;T<d;++T){let S=t[T];if(typeof S=="number"){E+=m*S*a/1e3;continue}let C=!1,F=(S.isSpace?u:0)+c,k=S.fontChar,D=S.accent,B,q,j=S.width;if(p){let P=S.vmetric||g,R=-(S.vmetric?P[1]:j*.5)*x,N=P[2]*x;j=P?-P[0]:j,B=R/o,q=(E+N)/o}else B=E/o,q=0;let U;if(i.remeasure&&j>0){U=s.measureText(k);let P=U.width*1e3/a*o;if(j<P&&this.isFontSubpixelAAEnabled){let R=j/P;C=!0,s.save(),s.scale(R,1),B/=R}else j!==P&&(B+=(j-P)/2e3*a/o)}if(this.contentVisible&&(S.isInFont||i.missingFile)){if(y&&!D)s.fillText(k,B,q),this.dependencyTracker?.recordCharacterBBox(e,s,U?{bbox:null}:i,a/o,B,q,()=>U??s.measureText(k));else if(this.paintChar(e,k,B,q,b,v),D){let P=B+a*D.offset.x/o,R=q-a*D.offset.y/o;this.paintChar(e,D.fontChar,P,R,b,v)}}let O=p?j*x-F*h:j*x+F*h;E+=O,C&&s.restore()}p?n.y-=E:n.x+=E*f,s.restore(),this.compose(),this.dependencyTracker?.recordShowTextOperation(e)}showType3Text(e,t){let n=this.ctx,i=this.current,a=i.font,s=i.fontSize,o=i.fontDirection,c=a.vertical?1:-1,u=i.charSpacing,h=i.wordSpacing,f=i.textHScale*o,d=i.fontMatrix||Zf,p=t.length,m=i.textRenderingMode===Kt.INVISIBLE,g,x,y,b;if(m||s===0)return;this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null,n.save(),i.textMatrix&&n.transform(...i.textMatrix),n.translate(i.x,i.y+i.textRise),n.scale(f,o);let v=this.dependencyTracker;for(this.dependencyTracker=v?new jl(v,e):null,g=0;g<p;++g){if(x=t[g],typeof x=="number"){b=c*x*s/1e3,this.ctx.translate(b,0),i.x+=b*f;continue}let _=(x.isSpace?h:0)+u,A=a.charProcOperatorList[x.operatorListId];A?this.contentVisible&&(this.save(),n.scale(s,s),n.transform(...d),this.executeOperatorList(A),this.restore()):Ne(`Type3 character "${x.operatorListId}" is not available.`);let E=[x.width,0];Re.applyTransform(E,d),y=E[0]*s+_,n.translate(y,0),i.x+=y*f}n.restore(),v&&(this.dependencyTracker=v)}setCharWidth(e,t,n){}setCharWidthAndBounds(e,t,n,i,a,s,o){let c=new Path2D;c.rect(i,a,s-i,o-a),this.ctx.clip(c),this.dependencyTracker?.recordBBox(e,this.ctx,i,s,a,o).recordClipBox(e,this.ctx,i,s,a,o),this.endPath(e)}getColorN_Pattern(e,t){let n;if(t[0]==="TilingPattern"){let i=this.baseTransform||_t(this.ctx),a={createCanvasGraphics:(s,o)=>new r(s,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:this.optionalContentConfig,markedContentStack:this.markedContentStack},void 0,void 0,this.dependencyTracker?new jl(this.dependencyTracker,o,!0):null)};n=new Fd(t,this.ctx,a,i)}else n=this._getPattern(e,t[1],t[2]);return n}setStrokeColorN(e,...t){this.dependencyTracker?.recordSimpleData("strokeColor",e),this.current.strokeColor=this.getColorN_Pattern(e,t),this.current.patternStroke=!0}setFillColorN(e,...t){this.dependencyTracker?.recordSimpleData("fillColor",e),this.current.fillColor=this.getColorN_Pattern(e,t),this.current.patternFill=!0}setStrokeRGBColor(e,t){this.dependencyTracker?.recordSimpleData("strokeColor",e),this.ctx.strokeStyle=this.current.strokeColor=t,this.current.patternStroke=!1}setStrokeTransparent(e){this.dependencyTracker?.recordSimpleData("strokeColor",e),this.ctx.strokeStyle=this.current.strokeColor="transparent",this.current.patternStroke=!1}setFillRGBColor(e,t){this.dependencyTracker?.recordSimpleData("fillColor",e),this.ctx.fillStyle=this.current.fillColor=t,this.current.patternFill=!1}setFillTransparent(e){this.dependencyTracker?.recordSimpleData("fillColor",e),this.ctx.fillStyle=this.current.fillColor="transparent",this.current.patternFill=!1}_getPattern(e,t,n=null){let i;return this.cachedPatterns.has(t)?i=this.cachedPatterns.get(t):(i=fS(this.getObject(e,t)),this.cachedPatterns.set(t,i)),n&&(i.matrix=n),i}shadingFill(e,t){if(!this.contentVisible)return;let n=this.ctx;this.save(e);let i=this._getPattern(e,t);n.fillStyle=i.getPattern(n,this,An(n),Zt.SHADING,e);let a=An(n);if(a){let{width:s,height:o}=n.canvas,c=Ma.slice();Re.axialAlignedBoundingBox([0,0,s,o],a,c);let[u,h,f,d]=c;this.ctx.fillRect(u,h,f-u,d-h)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.dependencyTracker?.resetBBox(e).recordFullPageBBox(e).recordDependencies(e,Qr.transform).recordDependencies(e,Qr.fill).recordOperation(e),this.compose(this.current.getClippedPathBoundingBox()),this.restore(e)}beginInlineImage(){dt("Should not call beginInlineImage")}beginImageData(){dt("Should not call beginImageData")}paintFormXObjectBegin(e,t,n){if(this.contentVisible&&(this.save(e),this.baseTransformStack.push(this.baseTransform),t&&this.transform(e,...t),this.baseTransform=_t(this.ctx),n)){Re.axialAlignedBoundingBox(n,this.baseTransform,this.current.minMax);let[i,a,s,o]=n,c=new Path2D;c.rect(i,a,s-i,o-a),this.ctx.clip(c),this.dependencyTracker?.recordClipBox(e,this.ctx,i,s,a,o),this.endPath(e)}}paintFormXObjectEnd(e){this.contentVisible&&(this.restore(e),this.baseTransform=this.baseTransformStack.pop())}beginGroup(e,t){if(!this.contentVisible)return;this.save(e),this.inSMaskMode&&(this.endSMaskMode(),this.current.activeSMask=null);let n=this.ctx;t.isolated||du("TODO: Support non-isolated groups."),t.knockout&&Ne("Knockout groups not supported.");let i=_t(n);if(t.matrix&&n.transform(...t.matrix),!t.bbox)throw new Error("Bounding box is required.");let a=Ma.slice();Re.axialAlignedBoundingBox(t.bbox,_t(n),a);let s=[0,0,n.canvas.width,n.canvas.height];a=Re.intersect(a,s)||[0,0,0,0];let o=Math.floor(a[0]),c=Math.floor(a[1]),u=Math.max(Math.ceil(a[2])-o,1),h=Math.max(Math.ceil(a[3])-c,1);this.current.startNewPathAndClipBox([0,0,u,h]);let f="groupAt"+this.groupLevel;t.smask&&(f+="_smask_"+this.smaskCounter++%2);let d=this.cachedCanvases.getCanvas(f,u,h),p=d.context;p.translate(-o,-c),p.transform(...i);let m=new Path2D,[g,x,y,b]=t.bbox;if(m.rect(g,x,y-g,b-x),t.matrix){let v=new Path2D;v.addPath(m,new DOMMatrix(t.matrix)),m=v}p.clip(m),t.smask&&this.smaskStack.push({canvas:d.canvas,context:p,offsetX:o,offsetY:c,subtype:t.smask.subtype,backdrop:t.smask.backdrop,transferMap:t.smask.transferMap||null,startTransformInverse:null}),(!t.smask||this.dependencyTracker)&&(n.setTransform(1,0,0,1,0,0),n.translate(o,c),n.save()),Js(n,p),this.ctx=p,this.dependencyTracker?.inheritSimpleDataAsFutureForcedDependencies(["fillAlpha","strokeAlpha","globalCompositeOperation"]).pushBaseTransform(n),this.setGState(e,[["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(n),this.groupLevel++}endGroup(e,t){if(!this.contentVisible)return;this.groupLevel--;let n=this.ctx,i=this.groupStack.pop();if(this.ctx=i,this.ctx.imageSmoothingEnabled=!1,this.dependencyTracker?.popBaseTransform(),t.smask)this.tempSMask=this.smaskStack.pop(),this.restore(e),this.dependencyTracker&&this.ctx.restore();else{this.ctx.restore();let a=_t(this.ctx);this.restore(e),this.ctx.save(),this.ctx.setTransform(...a);let s=Ma.slice();Re.axialAlignedBoundingBox([0,0,n.canvas.width,n.canvas.height],a,s),this.ctx.drawImage(n.canvas,0,0),this.ctx.restore(),this.compose(s)}}beginAnnotation(e,t,n,i,a,s){if(this.#e(),Tl(this.ctx),this.ctx.save(),this.save(e),this.baseTransform&&this.ctx.setTransform(...this.baseTransform),n){let o=n[2]-n[0],c=n[3]-n[1];if(s&&this.annotationCanvasMap){i=i.slice(),i[4]-=n[0],i[5]-=n[1],n=n.slice(),n[0]=n[1]=0,n[2]=o,n[3]=c,Re.singularValueDecompose2dScale(_t(this.ctx),zr);let{viewportScale:u}=this,h=Math.ceil(o*this.outputScaleX*u),f=Math.ceil(c*this.outputScaleY*u);this.annotationCanvas=this.canvasFactory.create(h,f);let{canvas:d,context:p}=this.annotationCanvas;this.annotationCanvasMap.set(t,d),this.annotationCanvas.savedCtx=this.ctx,this.ctx=p,this.ctx.save(),this.ctx.setTransform(zr[0],0,0,-zr[1],0,c*zr[1]),Tl(this.ctx)}else{Tl(this.ctx),this.endPath(e);let u=new Path2D;u.rect(n[0],n[1],o,c),this.ctx.clip(u)}}this.current=new Gl(this.ctx.canvas.width,this.ctx.canvas.height),this.transform(e,...i),this.transform(e,...a)}endAnnotation(e){this.annotationCanvas&&(this.ctx.restore(),this.#t(),this.ctx=this.annotationCanvas.savedCtx,delete this.annotationCanvas.savedCtx,delete this.annotationCanvas)}paintImageMaskXObject(e,t){if(!this.contentVisible)return;let n=t.count;t=this.getObject(e,t.data,t),t.count=n;let i=this.ctx,a=this._createMaskCanvas(e,t),s=a.canvas;i.save(),i.setTransform(1,0,0,1,0,0),i.drawImage(s,a.offsetX,a.offsetY),this.dependencyTracker?.resetBBox(e).recordBBox(e,this.ctx,a.offsetX,a.offsetX+s.width,a.offsetY,a.offsetY+s.height).recordOperation(e),i.restore(),this.compose()}paintImageMaskXObjectRepeat(e,t,n,i=0,a=0,s,o){if(!this.contentVisible)return;t=this.getObject(e,t.data,t);let c=this.ctx;c.save();let u=_t(c);c.transform(n,i,a,s,0,0);let h=this._createMaskCanvas(e,t);c.setTransform(1,0,0,1,h.offsetX-u[4],h.offsetY-u[5]),this.dependencyTracker?.resetBBox(e);for(let f=0,d=o.length;f<d;f+=2){let p=Re.transform(u,[n,i,a,s,o[f],o[f+1]]);c.drawImage(h.canvas,p[4],p[5]),this.dependencyTracker?.recordBBox(e,this.ctx,p[4],p[4]+h.canvas.width,p[5],p[5]+h.canvas.height)}c.restore(),this.compose(),this.dependencyTracker?.recordOperation(e)}paintImageMaskXObjectGroup(e,t){if(!this.contentVisible)return;let n=this.ctx,i=this.current.fillColor,a=this.current.patternFill;this.dependencyTracker?.resetBBox(e).recordDependencies(e,Qr.transformAndFill);for(let s of t){let{data:o,width:c,height:u,transform:h}=s,f=this.cachedCanvases.getCanvas("maskCanvas",c,u),d=f.context;d.save();let p=this.getObject(e,o,s);Q1(d,p),d.globalCompositeOperation="source-in",d.fillStyle=a?i.getPattern(d,this,An(n),Zt.FILL,e):i,d.fillRect(0,0,c,u),d.restore(),n.save(),n.transform(...h),n.scale(1,-1),Dl(n,f.canvas,0,0,c,u,0,-1,1,1),this.dependencyTracker?.recordBBox(e,n,0,c,0,u),n.restore()}this.compose(),this.dependencyTracker?.recordOperation(e)}paintImageXObject(e,t){if(!this.contentVisible)return;let n=this.getObject(e,t);if(!n){Ne("Dependent image isn't ready yet");return}this.paintInlineImageXObject(e,n)}paintImageXObjectRepeat(e,t,n,i,a){if(!this.contentVisible)return;let s=this.getObject(e,t);if(!s){Ne("Dependent image isn't ready yet");return}let o=s.width,c=s.height,u=[];for(let h=0,f=a.length;h<f;h+=2)u.push({transform:[n,0,0,i,a[h],a[h+1]],x:0,y:0,w:o,h:c});this.paintInlineImageXObjectGroup(e,s,u)}applyTransferMapsToCanvas(e){return this.current.transferMaps!=="none"&&(e.filter=this.current.transferMaps,e.drawImage(e.canvas,0,0),e.filter="none"),e.canvas}applyTransferMapsToBitmap(e){if(this.current.transferMaps==="none")return e.bitmap;let{bitmap:t,width:n,height:i}=e,a=this.cachedCanvases.getCanvas("inlineImage",n,i),s=a.context;return s.filter=this.current.transferMaps,s.drawImage(t,0,0),s.filter="none",a.canvas}paintInlineImageXObject(e,t){if(!this.contentVisible)return;let n=t.width,i=t.height,a=this.ctx;this.save(e);let{filter:s}=a;s!=="none"&&s!==""&&(a.filter="none"),a.scale(1/n,-1/i);let o;if(t.bitmap)o=this.applyTransferMapsToBitmap(t);else if(typeof HTMLElement=="function"&&t instanceof HTMLElement||!t.data)o=t;else{let h=this.cachedCanvases.getCanvas("inlineImage",n,i).context;J1(h,t),o=this.applyTransferMapsToCanvas(h)}let c=this._scaleImage(o,An(a));a.imageSmoothingEnabled=ex(_t(a),t.interpolate),this.dependencyTracker?.resetBBox(e).recordBBox(e,a,0,n,-i,0).recordDependencies(e,Qr.imageXObject).recordOperation(e),Dl(a,c.img,0,0,c.paintWidth,c.paintHeight,0,-i,n,i),this.compose(),this.restore(e)}paintInlineImageXObjectGroup(e,t,n){if(!this.contentVisible)return;let i=this.ctx,a;if(t.bitmap)a=t.bitmap;else{let s=t.width,o=t.height,u=this.cachedCanvases.getCanvas("inlineImage",s,o).context;J1(u,t),a=this.applyTransferMapsToCanvas(u)}this.dependencyTracker?.resetBBox(e);for(let s of n)i.save(),i.transform(...s.transform),i.scale(1,-1),Dl(i,a,s.x,s.y,s.w,s.h,0,-1,1,1),this.dependencyTracker?.recordBBox(e,i,0,1,-1,0),i.restore();this.dependencyTracker?.recordOperation(e),this.compose()}paintSolidColorImageMask(e){this.contentVisible&&(this.dependencyTracker?.resetBBox(e).recordBBox(e,this.ctx,0,1,0,1).recordDependencies(e,Qr.fill).recordOperation(e),this.ctx.fillRect(0,0,1,1),this.compose())}markPoint(e,t){}markPointProps(e,t,n){}beginMarkedContent(e,t){this.dependencyTracker?.beginMarkedContent(e),this.markedContentStack.push({visible:!0})}beginMarkedContentProps(e,t,n){this.dependencyTracker?.beginMarkedContent(e),t==="OC"?this.markedContentStack.push({visible:this.optionalContentConfig.isVisible(n)}):this.markedContentStack.push({visible:!0}),this.contentVisible=this.isContentVisible()}endMarkedContent(e){this.dependencyTracker?.endMarkedContent(e),this.markedContentStack.pop(),this.contentVisible=this.isContentVisible()}beginCompat(e){}endCompat(e){}consumePath(e,t,n){let i=this.current.isEmptyClip();this.pendingClip&&this.current.updateClipFromPath(),this.pendingClip||this.compose(n);let a=this.ctx;this.pendingClip?(i||(this.pendingClip===tx?a.clip(t,"evenodd"):a.clip(t)),this.pendingClip=null,this.dependencyTracker?.bboxToClipBoxDropOperation(e).recordFutureForcedDependency("clipPath",e)):this.dependencyTracker?.recordOperation(e),this.current.startNewPathAndClipBox(this.current.clipBox)}getSinglePixelWidth(){if(!this._cachedGetSinglePixelWidth){let e=_t(this.ctx);if(e[1]===0&&e[2]===0)this._cachedGetSinglePixelWidth=1/Math.min(Math.abs(e[0]),Math.abs(e[3]));else{let t=Math.abs(e[0]*e[3]-e[2]*e[1]),n=Math.hypot(e[0],e[2]),i=Math.hypot(e[1],e[3]);this._cachedGetSinglePixelWidth=Math.max(n,i)/t}}return this._cachedGetSinglePixelWidth}getScaleForStroking(){if(this._cachedScaleForStroking[0]===-1){let{lineWidth:e}=this.current,{a:t,b:n,c:i,d:a}=this.ctx.getTransform(),s,o;if(n===0&&i===0){let c=Math.abs(t),u=Math.abs(a);if(c===u)if(e===0)s=o=1/c;else{let h=c*e;s=o=h<1?1/h:1}else if(e===0)s=1/c,o=1/u;else{let h=c*e,f=u*e;s=h<1?1/h:1,o=f<1?1/f:1}}else{let c=Math.abs(t*a-n*i),u=Math.hypot(t,n),h=Math.hypot(i,a);if(e===0)s=h/c,o=u/c;else{let f=e*c;s=h>f?h/f:1,o=u>f?u/f:1}}this._cachedScaleForStroking[0]=s,this._cachedScaleForStroking[1]=o}return this._cachedScaleForStroking}rescaleAndStroke(e,t){let{ctx:n,current:{lineWidth:i}}=this,[a,s]=this.getScaleForStroking();if(a===s){n.lineWidth=(i||1)*a,n.stroke(e);return}let o=n.getLineDash();t&&n.save(),n.scale(a,s),qf.a=1/a,qf.d=1/s;let c=new Path2D;if(c.addPath(e,qf),o.length>0){let u=Math.max(a,s);n.setLineDash(o.map(h=>h/u)),n.lineDashOffset/=u}n.lineWidth=i||1,n.stroke(c),t&&n.restore()}isContentVisible(){for(let e=this.markedContentStack.length-1;e>=0;e--)if(!this.markedContentStack[e].visible)return!1;return!0}};for(let r in ao)Wa.prototype[r]!==void 0&&(Wa.prototype[ao[r]]=Wa.prototype[r]);var Xl=class r{#e;#t;#n;static strings=["fontFamily","fontWeight","italicAngle"];static write(e){let t=new TextEncoder,n={},i=0;for(let u of r.strings){let h=t.encode(e[u]);n[u]=h,i+=4+h.length}let a=new ArrayBuffer(i),s=new Uint8Array(a),o=new DataView(a),c=0;for(let u of r.strings){let h=n[u],f=h.length;o.setUint32(c,f),s.set(h,c+4),c+=4+f}return Ye(c===a.byteLength,"CssFontInfo.write: Buffer overflow"),a}constructor(e){this.#e=e,this.#t=new DataView(this.#e),this.#n=new TextDecoder}#r(e){Ye(e<r.strings.length,"Invalid string index");let t=0;for(let i=0;i<e;i++)t+=this.#t.getUint32(t)+4;let n=this.#t.getUint32(t);return this.#n.decode(new Uint8Array(this.#e,t+4,n))}get fontFamily(){return this.#r(0)}get fontWeight(){return this.#r(1)}get italicAngle(){return this.#r(2)}},$l=class r{#e;#t;#n;static strings=["css","loadedName","baseFontName","src"];static write(e){let t=new TextEncoder,n={},i=0;for(let d of r.strings){let p=t.encode(e[d]);n[d]=p,i+=4+p.length}i+=4;let a,s,o=1+i;e.style&&(a=t.encode(e.style.style),s=t.encode(e.style.weight),o+=4+a.length+4+s.length);let c=new ArrayBuffer(o),u=new Uint8Array(c),h=new DataView(c),f=0;h.setUint8(f++,e.guessFallback?1:0),h.setUint32(f,0),f+=4,i=0;for(let d of r.strings){let p=n[d],m=p.length;i+=4+m,h.setUint32(f,m),u.set(p,f+4),f+=4+m}return h.setUint32(f-i-4,i),e.style&&(h.setUint32(f,a.length),u.set(a,f+4),f+=4+a.length,h.setUint32(f,s.length),u.set(s,f+4),f+=4+s.length),Ye(f<=c.byteLength,"SubstitionInfo.write: Buffer overflow"),c.transferToFixedLength(f)}constructor(e){this.#e=e,this.#t=new DataView(this.#e),this.#n=new TextDecoder}get guessFallback(){return this.#t.getUint8(0)!==0}#r(e){Ye(e<r.strings.length,"Invalid string index");let t=5;for(let i=0;i<e;i++)t+=this.#t.getUint32(t)+4;let n=this.#t.getUint32(t);return this.#n.decode(new Uint8Array(this.#e,t+4,n))}get css(){return this.#r(0)}get loadedName(){return this.#r(1)}get baseFontName(){return this.#r(2)}get src(){return this.#r(3)}get style(){let e=1;e+=4+this.#t.getUint32(e);let t=this.#t.getUint32(e),n=this.#n.decode(new Uint8Array(this.#e,e+4,t));e+=4+t;let i=this.#t.getUint32(e),a=this.#n.decode(new Uint8Array(this.#e,e+4,i));return{style:n,weight:a}}},Ud=class r{static bools=["black","bold","disableFontFace","fontExtraProperties","isInvalidPDFjsFont","isType3Font","italic","missingFile","remeasure","vertical"];static numbers=["ascent","defaultWidth","descent"];static strings=["fallbackName","loadedName","mimetype","name"];static#e=Math.ceil(this.bools.length*2/8);static#t=this.#e+this.numbers.length*8;static#n=this.#t+1+8;static#r=this.#n+1+48;static#s=this.#r+1+6;#i;#a;#o;constructor({data:e,extra:t}){this.#i=e,this.#a=new TextDecoder,this.#o=new DataView(this.#i),t&&Object.assign(this,t)}#l(e){Ye(e<r.bools.length,"Invalid boolean index");let t=Math.floor(e/4),n=e*2%8,i=this.#o.getUint8(t)>>n&3;return i===0?void 0:i===2}get black(){return this.#l(0)}get bold(){return this.#l(1)}get disableFontFace(){return this.#l(2)}get fontExtraProperties(){return this.#l(3)}get isInvalidPDFjsFont(){return this.#l(4)}get isType3Font(){return this.#l(5)}get italic(){return this.#l(6)}get missingFile(){return this.#l(7)}get remeasure(){return this.#l(8)}get vertical(){return this.#l(9)}#c(e){return Ye(e<r.numbers.length,"Invalid number index"),this.#o.getFloat64(r.#e+e*8)}get ascent(){return this.#c(0)}get defaultWidth(){return this.#c(1)}get descent(){return this.#c(2)}get bbox(){let e=r.#t;if(this.#o.getUint8(e)===0)return;e+=1;let n=[];for(let i=0;i<4;i++)n.push(this.#o.getInt16(e,!0)),e+=2;return n}get fontMatrix(){let e=r.#n;if(this.#o.getUint8(e)===0)return;e+=1;let n=[];for(let i=0;i<6;i++)n.push(this.#o.getFloat64(e,!0)),e+=8;return n}get defaultVMetrics(){let e=r.#r;if(this.#o.getUint8(e)===0)return;e+=1;let n=[];for(let i=0;i<3;i++)n.push(this.#o.getInt16(e,!0)),e+=2;return n}#f(e){Ye(e<r.strings.length,"Invalid string index");let t=r.#s+4;for(let a=0;a<e;a++)t+=this.#o.getUint32(t)+4;let n=this.#o.getUint32(t),i=new Uint8Array(n);return i.set(new Uint8Array(this.#i,t+4,n)),this.#a.decode(i)}get fallbackName(){return this.#f(0)}get loadedName(){return this.#f(1)}get mimetype(){return this.#f(2)}get name(){return this.#f(3)}get data(){let e=r.#s,t=this.#o.getUint32(e);e+=4+t;let n=this.#o.getUint32(e);e+=4+n;let i=this.#o.getUint32(e);e+=4+i;let a=this.#o.getUint32(e);if(a!==0)return new Uint8Array(this.#i,e+4,a)}clearData(){let e=r.#s,t=this.#o.getUint32(e);e+=4+t;let n=this.#o.getUint32(e);e+=4+n;let i=this.#o.getUint32(e);e+=4+i;let a=this.#o.getUint32(e);new Uint8Array(this.#i,e+4,a).fill(0),this.#o.setUint32(e,0)}get cssFontInfo(){let e=r.#s,t=this.#o.getUint32(e);e+=4+t;let n=this.#o.getUint32(e);e+=4+n;let i=this.#o.getUint32(e);if(i===0)return null;let a=new Uint8Array(i);return a.set(new Uint8Array(this.#i,e+4,i)),new Xl(a.buffer)}get systemFontInfo(){let e=r.#s,t=this.#o.getUint32(e);e+=4+t;let n=this.#o.getUint32(e);if(n===0)return null;let i=new Uint8Array(n);return i.set(new Uint8Array(this.#i,e+4,n)),new $l(i.buffer)}static write(e){let t=e.systemFontInfo?$l.write(e.systemFontInfo):null,n=e.cssFontInfo?Xl.write(e.cssFontInfo):null,i=new TextEncoder,a={},s=0;for(let g of r.strings)a[g]=i.encode(e[g]),s+=4+a[g].length;let o=r.#s+4+s+4+(t?t.byteLength:0)+4+(n?n.byteLength:0)+4+(e.data?e.data.length:0),c=new ArrayBuffer(o),u=new Uint8Array(c),h=new DataView(c),f=0,d=r.bools.length,p=0,m=0;for(let g=0;g<d;g++){let x=e[r.bools[g]];p|=(x===void 0?0:x?2:1)<<m,m+=2,(m===8||g===d-1)&&(h.setUint8(f++,p),p=0,m=0)}Ye(f===r.#e,"FontInfo.write: Boolean properties offset mismatch");for(let g of r.numbers)h.setFloat64(f,e[g]),f+=8;if(Ye(f===r.#t,"FontInfo.write: Number properties offset mismatch"),e.bbox){h.setUint8(f++,4);for(let g of e.bbox)h.setInt16(f,g,!0),f+=2}else h.setUint8(f++,0),f+=8;if(Ye(f===r.#n,"FontInfo.write: BBox properties offset mismatch"),e.fontMatrix){h.setUint8(f++,6);for(let g of e.fontMatrix)h.setFloat64(f,g,!0),f+=8}else h.setUint8(f++,0),f+=48;if(Ye(f===r.#r,"FontInfo.write: FontMatrix properties offset mismatch"),e.defaultVMetrics){h.setUint8(f++,1);for(let g of e.defaultVMetrics)h.setInt16(f,g,!0),f+=2}else h.setUint8(f++,0),f+=6;Ye(f===r.#s,"FontInfo.write: DefaultVMetrics properties offset mismatch"),h.setUint32(r.#s,0),f+=4;for(let g of r.strings){let x=a[g],y=x.length;h.setUint32(f,y),u.set(x,f+4),f+=4+y}if(h.setUint32(r.#s,f-r.#s-4),!t)h.setUint32(f,0),f+=4;else{let g=t.byteLength;h.setUint32(f,g),Ye(f+4+g<=c.byteLength,"FontInfo.write: Buffer overflow at systemFontInfo"),u.set(new Uint8Array(t),f+4),f+=4+g}if(!n)h.setUint32(f,0),f+=4;else{let g=n.byteLength;h.setUint32(f,g),Ye(f+4+g<=c.byteLength,"FontInfo.write: Buffer overflow at cssFontInfo"),u.set(new Uint8Array(n),f+4),f+=4+g}return e.data===void 0?(h.setUint32(f,0),f+=4):(h.setUint32(f,e.data.length),u.set(e.data,f+4),f+=4+e.data.length),Ye(f<=c.byteLength,"FontInfo.write: Buffer overflow"),c.transferToFixedLength(f)}},Gn=class{static#e=null;static#t="";static get workerPort(){return this.#e}static set workerPort(e){if(!(typeof Worker<"u"&&e instanceof Worker)&&e!==null)throw new Error("Invalid `workerPort` type.");this.#e=e}static get workerSrc(){return this.#t}static set workerSrc(e){if(typeof e!="string")throw new Error("Invalid `workerSrc` type.");this.#t=e}},Id=class{#e;#t;constructor({parsedData:e,rawData:t}){this.#e=e,this.#t=t}getRaw(){return this.#t}get(e){return this.#e.get(e)??null}[Symbol.iterator](){return this.#e.entries()}},Pa=Symbol("INTERNAL"),Rd=class{#e=!1;#t=!1;#n=!1;#r=!0;constructor(e,{name:t,intent:n,usage:i,rbGroups:a}){this.#e=!!(e&Vr.DISPLAY),this.#t=!!(e&Vr.PRINT),this.name=t,this.intent=n,this.usage=i,this.rbGroups=a}get visible(){if(this.#n)return this.#r;if(!this.#r)return!1;let{print:e,view:t}=this.usage;return this.#e?t?.viewState!=="OFF":this.#t?e?.printState!=="OFF":!0}_setVisible(e,t,n=!1){e!==Pa&&dt("Internal method `_setVisible` called."),this.#n=n,this.#r=t}},Od=class{#e=null;#t=new Map;#n=null;#r=null;constructor(e,t=Vr.DISPLAY){if(this.renderingIntent=t,this.name=null,this.creator=null,e!==null){this.name=e.name,this.creator=e.creator,this.#r=e.order;for(let n of e.groups)this.#t.set(n.id,new Rd(t,n));if(e.baseState==="OFF")for(let n of this.#t.values())n._setVisible(Pa,!1);for(let n of e.on)this.#t.get(n)._setVisible(Pa,!0);for(let n of e.off)this.#t.get(n)._setVisible(Pa,!1);this.#n=this.getHash()}}#s(e){let t=e.length;if(t<2)return!0;let n=e[0];for(let i=1;i<t;i++){let a=e[i],s;if(Array.isArray(a))s=this.#s(a);else if(this.#t.has(a))s=this.#t.get(a).visible;else return Ne(`Optional content group not found: ${a}`),!0;switch(n){case"And":if(!s)return!1;break;case"Or":if(s)return!0;break;case"Not":return!s;default:return!0}}return n==="And"}isVisible(e){if(this.#t.size===0)return!0;if(!e)return du("Optional content group not defined."),!0;if(e.type==="OCG")return this.#t.has(e.id)?this.#t.get(e.id).visible:(Ne(`Optional content group not found: ${e.id}`),!0);if(e.type==="OCMD"){if(e.expression)return this.#s(e.expression);if(!e.policy||e.policy==="AnyOn"){for(let t of e.ids){if(!this.#t.has(t))return Ne(`Optional content group not found: ${t}`),!0;if(this.#t.get(t).visible)return!0}return!1}else if(e.policy==="AllOn"){for(let t of e.ids){if(!this.#t.has(t))return Ne(`Optional content group not found: ${t}`),!0;if(!this.#t.get(t).visible)return!1}return!0}else if(e.policy==="AnyOff"){for(let t of e.ids){if(!this.#t.has(t))return Ne(`Optional content group not found: ${t}`),!0;if(!this.#t.get(t).visible)return!0}return!1}else if(e.policy==="AllOff"){for(let t of e.ids){if(!this.#t.has(t))return Ne(`Optional content group not found: ${t}`),!0;if(this.#t.get(t).visible)return!1}return!0}return Ne(`Unknown optional content policy ${e.policy}.`),!0}return Ne(`Unknown group type ${e.type}.`),!0}setVisibility(e,t=!0,n=!0){let i=this.#t.get(e);if(!i){Ne(`Optional content group not found: ${e}`);return}if(n&&t&&i.rbGroups.length)for(let a of i.rbGroups)for(let s of a)s!==e&&this.#t.get(s)?._setVisible(Pa,!1,!0);i._setVisible(Pa,!!t,!0),this.#e=null}setOCGState({state:e,preserveRB:t}){let n;for(let i of e){switch(i){case"ON":case"OFF":case"Toggle":n=i;continue}let a=this.#t.get(i);if(a)switch(n){case"ON":this.setVisibility(i,!0,t);break;case"OFF":this.setVisibility(i,!1,t);break;case"Toggle":this.setVisibility(i,!a.visible,t);break}}this.#e=null}get hasInitialVisibility(){return this.#n===null||this.getHash()===this.#n}getOrder(){return this.#t.size?this.#r?this.#r.slice():[...this.#t.keys()]:null}getGroup(e){return this.#t.get(e)||null}getHash(){if(this.#e!==null)return this.#e;let e=new Ol;for(let[t,n]of this.#t)e.update(`${t}:${n.visible}`);return this.#e=e.hexdigest()}[Symbol.iterator](){return this.#t.entries()}},Bd=class{constructor(e,{disableRange:t=!1,disableStream:n=!1}){Ye(e,'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.');let{length:i,initialData:a,progressiveDone:s,contentDispositionFilename:o}=e;if(this._queuedChunks=[],this._progressiveDone=s,this._contentDispositionFilename=o,a?.length>0){let c=a instanceof Uint8Array&&a.byteLength===a.buffer.byteLength?a.buffer:new Uint8Array(a).buffer;this._queuedChunks.push(c)}this._pdfDataRangeTransport=e,this._isStreamingSupported=!n,this._isRangeSupported=!t,this._contentLength=i,this._fullRequestReader=null,this._rangeReaders=[],e.addRangeListener((c,u)=>{this._onReceiveData({begin:c,chunk:u})}),e.addProgressListener((c,u)=>{this._onProgress({loaded:c,total:u})}),e.addProgressiveReadListener(c=>{this._onReceiveData({chunk:c})}),e.addProgressiveDoneListener(()=>{this._onProgressiveDone()}),e.transportReady()}_onReceiveData({begin:e,chunk:t}){let n=t instanceof Uint8Array&&t.byteLength===t.buffer.byteLength?t.buffer:new Uint8Array(t).buffer;if(e===void 0)this._fullRequestReader?this._fullRequestReader._enqueue(n):this._queuedChunks.push(n);else{let i=this._rangeReaders.some(function(a){return a._begin!==e?!1:(a._enqueue(n),!0)});Ye(i,"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}_onProgress(e){e.total===void 0?this._rangeReaders[0]?.onProgress?.({loaded:e.loaded}):this._fullRequestReader?.onProgress?.({loaded:e.loaded,total:e.total})}_onProgressiveDone(){this._fullRequestReader?.progressiveDone(),this._progressiveDone=!0}_removeRangeReader(e){let t=this._rangeReaders.indexOf(e);t>=0&&this._rangeReaders.splice(t,1)}getFullReader(){Ye(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");let e=this._queuedChunks;return this._queuedChunks=null,new Nd(this,e,this._progressiveDone,this._contentDispositionFilename)}getRangeReader(e,t){if(t<=this._progressiveDataLength)return null;let n=new Pd(this,e,t);return this._pdfDataRangeTransport.requestDataRange(e,t),this._rangeReaders.push(n),n}cancelAllRequests(e){this._fullRequestReader?.cancel(e);for(let t of this._rangeReaders.slice(0))t.cancel(e);this._pdfDataRangeTransport.abort()}},Nd=class{constructor(e,t,n=!1,i=null){this._stream=e,this._done=n||!1,this._filename=U0(i)?i:null,this._queuedChunks=t||[],this._loaded=0;for(let a of this._queuedChunks)this._loaded+=a.byteLength;this._requests=[],this._headersReady=Promise.resolve(),e._fullRequestReader=this,this.onProgress=null}_enqueue(e){this._done||(this._requests.length>0?this._requests.shift().resolve({value:e,done:!1}):this._queuedChunks.push(e),this._loaded+=e.byteLength)}get headersReady(){return this._headersReady}get filename(){return this._filename}get isRangeSupported(){return this._stream._isRangeSupported}get isStreamingSupported(){return this._stream._isStreamingSupported}get contentLength(){return this._stream._contentLength}async read(){if(this._queuedChunks.length>0)return{value:this._queuedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};let e=Promise.withResolvers();return this._requests.push(e),e.promise}cancel(e){this._done=!0;for(let t of this._requests)t.resolve({value:void 0,done:!0});this._requests.length=0}progressiveDone(){this._done||(this._done=!0)}},Pd=class{constructor(e,t,n){this._stream=e,this._begin=t,this._end=n,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}_enqueue(e){if(!this._done){if(this._requests.length===0)this._queuedChunk=e;else{this._requests.shift().resolve({value:e,done:!1});for(let n of this._requests)n.resolve({value:void 0,done:!0});this._requests.length=0}this._done=!0,this._stream._removeRangeReader(this)}}get isStreamingSupported(){return!1}async read(){if(this._queuedChunk){let t=this._queuedChunk;return this._queuedChunk=null,{value:t,done:!1}}if(this._done)return{value:void 0,done:!0};let e=Promise.withResolvers();return this._requests.push(e),e.promise}cancel(e){this._done=!0;for(let t of this._requests)t.resolve({value:void 0,done:!0});this._requests.length=0,this._stream._removeRangeReader(this)}};function yS(r){let e=!0,t=n("filename\\*","i").exec(r);if(t){t=t[1];let h=o(t);return h=unescape(h),h=c(h),h=u(h),a(h)}if(t=s(r),t){let h=u(t);return a(h)}if(t=n("filename","i").exec(r),t){t=t[1];let h=o(t);return h=u(h),a(h)}function n(h,f){return new RegExp("(?:^|;)\\s*"+h+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',f)}function i(h,f){if(h){if(!/^[\x00-\xFF]+$/.test(f))return f;try{let d=new TextDecoder(h,{fatal:!0}),p=_o(f);f=d.decode(p),e=!1}catch{}}return f}function a(h){return e&&/[\x80-\xff]/.test(h)&&(h=i("utf-8",h),e&&(h=i("iso-8859-1",h))),h}function s(h){let f=[],d,p=n("filename\\*((?!0\\d)\\d+)(\\*?)","ig");for(;(d=p.exec(h))!==null;){let[,g,x,y]=d;if(g=parseInt(g,10),g in f){if(g===0)break;continue}f[g]=[x,y]}let m=[];for(let g=0;g<f.length&&g in f;++g){let[x,y]=f[g];y=o(y),x&&(y=unescape(y),g===0&&(y=c(y))),m.push(y)}return m.join("")}function o(h){if(h.startsWith('"')){let f=h.slice(1).split('\\"');for(let d=0;d<f.length;++d){let p=f[d].indexOf('"');p!==-1&&(f[d]=f[d].slice(0,p),f.length=d+1),f[d]=f[d].replaceAll(/\\(.)/g,"$1")}h=f.join('"')}return h}function c(h){let f=h.indexOf("'");if(f===-1)return h;let d=h.slice(0,f),m=h.slice(f+1).replace(/^[^']*'/,"");return i(d,m)}function u(h){return!h.startsWith("=?")||/[\x00-\x19\x80-\xff]/.test(h)?h:h.replaceAll(/=\?([\w-]*)\?([QqBb])\?((?:[^?]|\?(?!=))*)\?=/g,function(f,d,p,m){if(p==="q"||p==="Q")return m=m.replaceAll("_"," "),m=m.replaceAll(/=([0-9a-fA-F]{2})/g,function(g,x){return String.fromCharCode(parseInt(x,16))}),i(d,m);try{m=atob(m)}catch{}return i(d,m)})}return""}function hx(r,e){let t=new Headers;if(!r||!e||typeof e!="object")return t;for(let n in e){let i=e[n];i!==void 0&&t.append(n,i)}return t}function gu(r){return URL.parse(r)?.origin??null}function fx({responseHeaders:r,isHttp:e,rangeChunkSize:t,disableRange:n}){let i={allowRangeRequests:!1,suggestedLength:void 0},a=parseInt(r.get("Content-Length"),10);return!Number.isInteger(a)||(i.suggestedLength=a,a<=2*t)||n||!e||r.get("Accept-Ranges")!=="bytes"||(r.get("Content-Encoding")||"identity")!=="identity"||(i.allowRangeRequests=!0),i}function dx(r){let e=r.get("Content-Disposition");if(e){let t=yS(e);if(t.includes("%"))try{t=decodeURIComponent(t)}catch{}if(U0(t))return t}return null}function Eo(r,e){return new Ha(`Unexpected server response (${r}) while retrieving PDF "${e}".`,r,r===404||r===0&&e.startsWith("file:"))}function px(r){return r===200||r===206}function gx(r,e,t){return{method:"GET",headers:r,signal:t.signal,mode:"cors",credentials:e?"include":"same-origin",redirect:"follow"}}function mx(r){return r instanceof Uint8Array?r.buffer:r instanceof ArrayBuffer?r:(Ne(`getArrayBuffer - unexpected data format: ${r}`),new Uint8Array(r).buffer)}var Ld=class{_responseOrigin=null;constructor(e){this.source=e,this.isHttp=/^https?:/i.test(e.url),this.headers=hx(this.isHttp,e.httpHeaders),this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}getFullReader(){return Ye(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new Md(this),this._fullRequestReader}getRangeReader(e,t){if(t<=this._progressiveDataLength)return null;let n=new Wd(this,e,t);return this._rangeRequestReaders.push(n),n}cancelAllRequests(e){this._fullRequestReader?.cancel(e);for(let t of this._rangeRequestReaders.slice(0))t.cancel(e)}},Md=class{constructor(e){this._stream=e,this._reader=null,this._loaded=0,this._filename=null;let t=e.source;this._withCredentials=t.withCredentials||!1,this._contentLength=t.length,this._headersCapability=Promise.withResolvers(),this._disableRange=t.disableRange||!1,this._rangeChunkSize=t.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._abortController=new AbortController,this._isStreamingSupported=!t.disableStream,this._isRangeSupported=!t.disableRange;let n=new Headers(e.headers),i=t.url;fetch(i,gx(n,this._withCredentials,this._abortController)).then(a=>{if(e._responseOrigin=gu(a.url),!px(a.status))throw Eo(a.status,i);this._reader=a.body.getReader(),this._headersCapability.resolve();let s=a.headers,{allowRangeRequests:o,suggestedLength:c}=fx({responseHeaders:s,isHttp:e.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=o,this._contentLength=c||this._contentLength,this._filename=dx(s),!this._isStreamingSupported&&this._isRangeSupported&&this.cancel(new Cn("Streaming is disabled."))}).catch(this._headersCapability.reject),this.onProgress=null}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){await this._headersCapability.promise;let{value:e,done:t}=await this._reader.read();return t?{value:e,done:t}:(this._loaded+=e.byteLength,this.onProgress?.({loaded:this._loaded,total:this._contentLength}),{value:mx(e),done:!1})}cancel(e){this._reader?.cancel(e),this._abortController.abort()}},Wd=class{constructor(e,t,n){this._stream=e,this._reader=null,this._loaded=0;let i=e.source;this._withCredentials=i.withCredentials||!1,this._readCapability=Promise.withResolvers(),this._isStreamingSupported=!i.disableStream,this._abortController=new AbortController;let a=new Headers(e.headers);a.append("Range",`bytes=${t}-${n-1}`);let s=i.url;fetch(s,gx(a,this._withCredentials,this._abortController)).then(o=>{let c=gu(o.url);if(c!==e._responseOrigin)throw new Error(`Expected range response-origin "${c}" to match "${e._responseOrigin}".`);if(!px(o.status))throw Eo(o.status,s);this._readCapability.resolve(),this._reader=o.body.getReader()}).catch(this._readCapability.reject),this.onProgress=null}get isStreamingSupported(){return this._isStreamingSupported}async read(){await this._readCapability.promise;let{value:e,done:t}=await this._reader.read();return t?{value:e,done:t}:(this._loaded+=e.byteLength,this.onProgress?.({loaded:this._loaded}),{value:mx(e),done:!1})}cancel(e){this._reader?.cancel(e),this._abortController.abort()}},Yf=200,Kf=206;function bS(r){let e=r.response;return typeof e!="string"?e:_o(e).buffer}var Hd=class{_responseOrigin=null;constructor({url:e,httpHeaders:t,withCredentials:n}){this.url=e,this.isHttp=/^https?:/i.test(e),this.headers=hx(this.isHttp,t),this.withCredentials=n||!1,this.currXhrId=0,this.pendingRequests=Object.create(null)}request(e){let t=new XMLHttpRequest,n=this.currXhrId++,i=this.pendingRequests[n]={xhr:t};t.open("GET",this.url),t.withCredentials=this.withCredentials;for(let[a,s]of this.headers)t.setRequestHeader(a,s);return this.isHttp&&"begin"in e&&"end"in e?(t.setRequestHeader("Range",`bytes=${e.begin}-${e.end-1}`),i.expectedStatus=Kf):i.expectedStatus=Yf,t.responseType="arraybuffer",Ye(e.onError,"Expected `onError` callback to be provided."),t.onerror=()=>{e.onError(t.status)},t.onreadystatechange=this.onStateChange.bind(this,n),t.onprogress=this.onProgress.bind(this,n),i.onHeadersReceived=e.onHeadersReceived,i.onDone=e.onDone,i.onError=e.onError,i.onProgress=e.onProgress,t.send(null),n}onProgress(e,t){let n=this.pendingRequests[e];n&&n.onProgress?.(t)}onStateChange(e,t){let n=this.pendingRequests[e];if(!n)return;let i=n.xhr;if(i.readyState>=2&&n.onHeadersReceived&&(n.onHeadersReceived(),delete n.onHeadersReceived),i.readyState!==4||!(e in this.pendingRequests))return;if(delete this.pendingRequests[e],i.status===0&&this.isHttp){n.onError(i.status);return}let a=i.status||Yf;if(!(a===Yf&&n.expectedStatus===Kf)&&a!==n.expectedStatus){n.onError(i.status);return}let o=bS(i);if(a===Kf){let c=i.getResponseHeader("Content-Range"),u=/bytes (\d+)-(\d+)\/(\d+)/.exec(c);u?n.onDone({begin:parseInt(u[1],10),chunk:o}):(Ne('Missing or invalid "Content-Range" header.'),n.onError(0))}else o?n.onDone({begin:0,chunk:o}):n.onError(i.status)}getRequestXhr(e){return this.pendingRequests[e].xhr}isPendingRequest(e){return e in this.pendingRequests}abortRequest(e){let t=this.pendingRequests[e].xhr;delete this.pendingRequests[e],t.abort()}},Vd=class{constructor(e){this._source=e,this._manager=new Hd(e),this._rangeChunkSize=e.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}_onRangeRequestReaderClosed(e){let t=this._rangeRequestReaders.indexOf(e);t>=0&&this._rangeRequestReaders.splice(t,1)}getFullReader(){return Ye(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new zd(this._manager,this._source),this._fullRequestReader}getRangeReader(e,t){let n=new jd(this._manager,e,t);return n.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(n),n}cancelAllRequests(e){this._fullRequestReader?.cancel(e);for(let t of this._rangeRequestReaders.slice(0))t.cancel(e)}},zd=class{constructor(e,t){this._manager=e,this._url=t.url,this._fullRequestId=e.request({onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)}),this._headersCapability=Promise.withResolvers(),this._disableRange=t.disableRange||!1,this._contentLength=t.length,this._rangeChunkSize=t.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!1,this._isRangeSupported=!1,this._cachedChunks=[],this._requests=[],this._done=!1,this._storedError=void 0,this._filename=null,this.onProgress=null}_onHeadersReceived(){let e=this._fullRequestId,t=this._manager.getRequestXhr(e);this._manager._responseOrigin=gu(t.responseURL);let n=t.getAllResponseHeaders(),i=new Headers(n?n.trimStart().replace(/[^\S ]+$/,"").split(/[\r\n]+/).map(o=>{let[c,...u]=o.split(": ");return[c,u.join(": ")]}):[]),{allowRangeRequests:a,suggestedLength:s}=fx({responseHeaders:i,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});a&&(this._isRangeSupported=!0),this._contentLength=s||this._contentLength,this._filename=dx(i),this._isRangeSupported&&this._manager.abortRequest(e),this._headersCapability.resolve()}_onDone(e){if(e&&(this._requests.length>0?this._requests.shift().resolve({value:e.chunk,done:!1}):this._cachedChunks.push(e.chunk)),this._done=!0,!(this._cachedChunks.length>0)){for(let t of this._requests)t.resolve({value:void 0,done:!0});this._requests.length=0}}_onError(e){this._storedError=Eo(e,this._url),this._headersCapability.reject(this._storedError);for(let t of this._requests)t.reject(this._storedError);this._requests.length=0,this._cachedChunks.length=0}_onProgress(e){this.onProgress?.({loaded:e.loaded,total:e.lengthComputable?e.total:this._contentLength})}get filename(){return this._filename}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}get contentLength(){return this._contentLength}get headersReady(){return this._headersCapability.promise}async read(){if(await this._headersCapability.promise,this._storedError)throw this._storedError;if(this._cachedChunks.length>0)return{value:this._cachedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};let e=Promise.withResolvers();return this._requests.push(e),e.promise}cancel(e){this._done=!0,this._headersCapability.reject(e);for(let t of this._requests)t.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}},jd=class{constructor(e,t,n){this._manager=e,this._url=e.url,this._requestId=e.request({begin:t,end:n,onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)}),this._requests=[],this._queuedChunk=null,this._done=!1,this._storedError=void 0,this.onProgress=null,this.onClosed=null}_onHeadersReceived(){let e=gu(this._manager.getRequestXhr(this._requestId)?.responseURL);e!==this._manager._responseOrigin&&(this._storedError=new Error(`Expected range response-origin "${e}" to match "${this._manager._responseOrigin}".`),this._onError(0))}_close(){this.onClosed?.(this)}_onDone(e){let t=e.chunk;this._requests.length>0?this._requests.shift().resolve({value:t,done:!1}):this._queuedChunk=t,this._done=!0;for(let n of this._requests)n.resolve({value:void 0,done:!0});this._requests.length=0,this._close()}_onError(e){this._storedError??=Eo(e,this._url);for(let t of this._requests)t.reject(this._storedError);this._requests.length=0,this._queuedChunk=null}_onProgress(e){this.isStreamingSupported||this.onProgress?.({loaded:e.loaded})}get isStreamingSupported(){return!1}async read(){if(this._storedError)throw this._storedError;if(this._queuedChunk!==null){let t=this._queuedChunk;return this._queuedChunk=null,{value:t,done:!1}}if(this._done)return{value:void 0,done:!0};let e=Promise.withResolvers();return this._requests.push(e),e.promise}cancel(e){this._done=!0;for(let t of this._requests)t.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}},wS=/^[a-z][a-z0-9\-+.]+:/i;function _S(r){if(wS.test(r))return new URL(r);let e=process.getBuiltinModule("url");return new URL(e.pathToFileURL(r))}var Gd=class{constructor(e){this.source=e,this.url=_S(e.url),Ye(this.url.protocol==="file:","PDFNodeStream only supports file:// URLs."),this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}getFullReader(){return Ye(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=new Xd(this),this._fullRequestReader}getRangeReader(e,t){if(t<=this._progressiveDataLength)return null;let n=new $d(this,e,t);return this._rangeRequestReaders.push(n),n}cancelAllRequests(e){this._fullRequestReader?.cancel(e);for(let t of this._rangeRequestReaders.slice(0))t.cancel(e)}},Xd=class{constructor(e){this._url=e.url,this._done=!1,this._storedError=null,this.onProgress=null;let t=e.source;this._contentLength=t.length,this._loaded=0,this._filename=null,this._disableRange=t.disableRange||!1,this._rangeChunkSize=t.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!t.disableStream,this._isRangeSupported=!t.disableRange,this._readableStream=null,this._readCapability=Promise.withResolvers(),this._headersCapability=Promise.withResolvers();let n=process.getBuiltinModule("fs");n.promises.lstat(this._url).then(i=>{this._contentLength=i.size,this._setReadableStream(n.createReadStream(this._url)),this._headersCapability.resolve()},i=>{i.code==="ENOENT"&&(i=Eo(0,this._url.href)),this._storedError=i,this._headersCapability.reject(i)})}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;let e=this._readableStream.read();return e===null?(this._readCapability=Promise.withResolvers(),this.read()):(this._loaded+=e.length,this.onProgress?.({loaded:this._loaded,total:this._contentLength}),{value:new Uint8Array(e).buffer,done:!1})}cancel(e){if(!this._readableStream){this._error(e);return}this._readableStream.destroy(e)}_error(e){this._storedError=e,this._readCapability.resolve()}_setReadableStream(e){this._readableStream=e,e.on("readable",()=>{this._readCapability.resolve()}),e.on("end",()=>{e.destroy(),this._done=!0,this._readCapability.resolve()}),e.on("error",t=>{this._error(t)}),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new Cn("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}},$d=class{constructor(e,t,n){this._url=e.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=Promise.withResolvers();let i=e.source;this._isStreamingSupported=!i.disableStream;let a=process.getBuiltinModule("fs");this._setReadableStream(a.createReadStream(this._url,{start:t,end:n-1}))}get isStreamingSupported(){return this._isStreamingSupported}async read(){if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;let e=this._readableStream.read();return e===null?(this._readCapability=Promise.withResolvers(),this.read()):(this._loaded+=e.length,this.onProgress?.({loaded:this._loaded}),{value:new Uint8Array(e).buffer,done:!1})}cancel(e){if(!this._readableStream){this._error(e);return}this._readableStream.destroy(e)}_error(e){this._storedError=e,this._readCapability.resolve()}_setReadableStream(e){this._readableStream=e,e.on("readable",()=>{this._readCapability.resolve()}),e.on("end",()=>{e.destroy(),this._done=!0,this._readCapability.resolve()}),e.on("error",t=>{this._error(t)}),this._storedError&&this._readableStream.destroy(this._storedError)}},Qs=Symbol("INITIAL_DATA"),ql=class{#e=Object.create(null);#t(e){return this.#e[e]||={...Promise.withResolvers(),data:Qs}}get(e,t=null){if(t){let i=this.#t(e);return i.promise.then(()=>t(i.data)),null}let n=this.#e[e];if(!n||n.data===Qs)throw new Error(`Requesting object that isn't resolved yet ${e}.`);return n.data}has(e){let t=this.#e[e];return!!t&&t.data!==Qs}delete(e){let t=this.#e[e];return!t||t.data===Qs?!1:(delete this.#e[e],!0)}resolve(e,t=null){let n=this.#t(e);n.data=t,n.resolve()}clear(){for(let e in this.#e){let{data:t}=this.#e[e];t?.bitmap?.close()}this.#e=Object.create(null)}*[Symbol.iterator](){for(let e in this.#e){let{data:t}=this.#e[e];t!==Qs&&(yield[e,t])}}},DS=1e5,rx=30,po=class r{#e=Promise.withResolvers();#t=null;#n=!1;#r=!!globalThis.FontInspector?.enabled;#s=null;#i=null;#a=0;#o=0;#l=null;#c=null;#f=0;#h=0;#d=Object.create(null);#m=[];#p=null;#u=[];#g=new WeakMap;#x=null;static#y=new Map;static#v=new Map;static#E=new WeakMap;static#D=null;static#b=new Set;constructor({textContentSource:e,container:t,viewport:n}){if(e instanceof ReadableStream)this.#p=e;else if(typeof e=="object")this.#p=new ReadableStream({start(c){c.enqueue(e),c.close()}});else throw new Error('No "textContentSource" parameter specified.');this.#t=this.#c=t,this.#h=n.scale*Xn.pixelRatio,this.#f=n.rotation,this.#i={div:null,properties:null,ctx:null};let{pageWidth:i,pageHeight:a,pageX:s,pageY:o}=n.rawDims;this.#x=[1,0,0,-1,-s,o+a],this.#o=i,this.#a=a,r.#F(),ji(t,n),this.#e.promise.finally(()=>{r.#b.delete(this),this.#i=null,this.#d=null}).catch(()=>{})}static get fontFamilyMap(){let{isWindows:e,isFirefox:t}=Mt.platform;return Ge(this,"fontFamilyMap",new Map([["sans-serif",`${e&&t?"Calibri, ":""}sans-serif`],["monospace",`${e&&t?"Lucida Console, ":""}monospace`]]))}render(){let e=()=>{this.#l.read().then(({value:t,done:n})=>{if(n){this.#e.resolve();return}this.#s??=t.lang,Object.assign(this.#d,t.styles),this.#S(t.items),e()},this.#e.reject)};return this.#l=this.#p.getReader(),r.#b.add(this),e(),this.#e.promise}update({viewport:e,onBefore:t=null}){let n=e.scale*Xn.pixelRatio,i=e.rotation;if(i!==this.#f&&(t?.(),this.#f=i,ji(this.#c,{rotation:i})),n!==this.#h){t?.(),this.#h=n;let a={div:null,properties:null,ctx:r.#k(this.#s)};for(let s of this.#u)a.properties=this.#g.get(s),a.div=s,this.#T(a)}}cancel(){let e=new Cn("TextLayer task cancelled.");this.#l?.cancel(e).catch(()=>{}),this.#l=null,this.#e.reject(e)}get textDivs(){return this.#u}get textContentItemsStr(){return this.#m}#S(e){if(this.#n)return;this.#i.ctx??=r.#k(this.#s);let t=this.#u,n=this.#m;for(let i of e){if(t.length>DS){Ne("Ignoring additional textDivs for performance reasons."),this.#n=!0;return}if(i.str===void 0){if(i.type==="beginMarkedContentProps"||i.type==="beginMarkedContent"){let a=this.#t;this.#t=document.createElement("span"),this.#t.classList.add("markedContent"),i.id&&this.#t.setAttribute("id",`${i.id}`),a.append(this.#t)}else i.type==="endMarkedContent"&&(this.#t=this.#t.parentNode);continue}n.push(i.str),this.#_(i)}}#_(e){let t=document.createElement("span"),n={angle:0,canvasWidth:0,hasText:e.str!=="",hasEOL:e.hasEOL,fontSize:0};this.#u.push(t);let i=Re.transform(this.#x,e.transform),a=Math.atan2(i[1],i[0]),s=this.#d[e.fontName];s.vertical&&(a+=Math.PI/2);let o=this.#r&&s.fontSubstitution||s.fontFamily;o=r.fontFamilyMap.get(o)||o;let c=Math.hypot(i[2],i[3]),u=c*r.#P(o,s,this.#s),h,f;a===0?(h=i[4],f=i[5]-u):(h=i[4]+u*Math.sin(a),f=i[5]-u*Math.cos(a));let d="calc(var(--total-scale-factor) *",p=t.style;this.#t===this.#c?(p.left=`${(100*h/this.#o).toFixed(2)}%`,p.top=`${(100*f/this.#a).toFixed(2)}%`):(p.left=`${d}${h.toFixed(2)}px)`,p.top=`${d}${f.toFixed(2)}px)`),p.fontSize=`${d}${(r.#D*c).toFixed(2)}px)`,p.fontFamily=o,n.fontSize=c,t.setAttribute("role","presentation"),t.textContent=e.str,t.dir=e.dir,this.#r&&(t.dataset.fontName=s.fontSubstitutionLoadedName||e.fontName),a!==0&&(n.angle=a*(180/Math.PI));let m=!1;if(e.str.length>1)m=!0;else if(e.str!==" "&&e.transform[0]!==e.transform[3]){let g=Math.abs(e.transform[0]),x=Math.abs(e.transform[3]);g!==x&&Math.max(g,x)/Math.min(g,x)>1.5&&(m=!0)}if(m&&(n.canvasWidth=s.vertical?e.height:e.width),this.#g.set(t,n),this.#i.div=t,this.#i.properties=n,this.#T(this.#i),n.hasText&&this.#t.append(t),n.hasEOL){let g=document.createElement("br");g.setAttribute("role","presentation"),this.#t.append(g)}}#T(e){let{div:t,properties:n,ctx:i}=e,{style:a}=t,s="";if(r.#D>1&&(s=`scale(${1/r.#D})`),n.canvasWidth!==0&&n.hasText){let{fontFamily:o}=a,{canvasWidth:c,fontSize:u}=n;r.#C(i,u*this.#h,o);let{width:h}=i.measureText(t.textContent);h>0&&(s=`scaleX(${c*this.#h/h}) ${s}`)}n.angle!==0&&(s=`rotate(${n.angle}deg) ${s}`),s.length>0&&(a.transform=s)}static cleanup(){if(!(this.#b.size>0)){this.#y.clear();for(let{canvas:e}of this.#v.values())e.remove();this.#v.clear()}}static#k(e=null){let t=this.#v.get(e||="");if(!t){let n=document.createElement("canvas");n.className="hiddenCanvasElement",n.lang=e,document.body.append(n),t=n.getContext("2d",{alpha:!1,willReadFrequently:!0}),this.#v.set(e,t),this.#E.set(t,{size:0,family:""})}return t}static#C(e,t,n){let i=this.#E.get(e);t===i.size&&n===i.family||(e.font=`${t}px ${n}`,i.size=t,i.family=n)}static#F(){if(this.#D!==null)return;let e=document.createElement("div");e.style.opacity=0,e.style.lineHeight=1,e.style.fontSize="1px",e.style.position="absolute",e.textContent="X",document.body.append(e),this.#D=e.getBoundingClientRect().height,e.remove()}static#P(e,t,n){let i=this.#y.get(e);if(i)return i;let a=this.#k(n);a.canvas.width=a.canvas.height=rx,this.#C(a,rx,e);let s=a.measureText(""),o=s.fontBoundingBoxAscent,c=Math.abs(s.fontBoundingBoxDescent);a.canvas.width=a.canvas.height=0;let u=.8;return o?u=o/(o+c):(Mt.platform.isFirefox&&Ne("Enable the `dom.textMetrics.fontBoundingBox.enabled` preference in `about:config` to improve TextLayer rendering."),t.ascent?u=t.ascent:t.descent&&(u=1+t.descent)),this.#y.set(e,u),u}},TS=100;function R0(r={}){typeof r=="string"||r instanceof URL?r={url:r}:(r instanceof ArrayBuffer||ArrayBuffer.isView(r))&&(r={data:r});let e=new qd,{docId:t}=e,n=r.url?oS(r.url):null,i=r.data?cS(r.data):null,a=r.httpHeaders||null,s=r.withCredentials===!0,o=r.password??null,c=r.range instanceof Yl?r.range:null,u=Number.isInteger(r.rangeChunkSize)&&r.rangeChunkSize>0?r.rangeChunkSize:2**16,h=r.worker instanceof go?r.worker:null,f=r.verbosity,d=typeof r.docBaseUrl=="string"&&!pu(r.docBaseUrl)?r.docBaseUrl:null,p=yl(r.cMapUrl),m=r.cMapPacked!==!1,g=r.CMapReaderFactory||(yr?yd:Ll),x=yl(r.iccUrl),y=yl(r.standardFontDataUrl),b=r.StandardFontDataFactory||(yr?bd:Hl),v=yl(r.wasmUrl),_=r.WasmFactory||(yr?wd:zl),A=r.stopAtErrors!==!0,E=Number.isInteger(r.maxImageSize)&&r.maxImageSize>-1?r.maxImageSize:-1,T=r.isEvalSupported!==!1,S=typeof r.isOffscreenCanvasSupported=="boolean"?r.isOffscreenCanvasSupported:!yr,C=typeof r.isImageDecoderSupported=="boolean"?r.isImageDecoderSupported:!yr&&(Mt.platform.isFirefox||!globalThis.chrome),F=Number.isInteger(r.canvasMaxAreaInBytes)?r.canvasMaxAreaInBytes:-1,k=typeof r.disableFontFace=="boolean"?r.disableFontFace:yr,D=r.fontExtraProperties===!0,B=r.enableXfa===!0,q=r.ownerDocument||globalThis.document,j=r.disableRange===!0,U=r.disableStream===!0,O=r.disableAutoFetch===!0,P=r.pdfBug===!0,R=r.CanvasFactory||(yr?vd:gd),N=r.FilterFactory||(yr?xd:md),z=r.enableHWA===!0,I=r.useWasm!==!1,H=c?c.length:r.length??NaN,Z=typeof r.useSystemFonts=="boolean"?r.useSystemFonts:!yr&&!k,re=typeof r.useWorkerFetch=="boolean"?r.useWorkerFetch:!!(g===Ll&&b===Hl&&_===zl&&p&&y&&v&&ro(p,document.baseURI)&&ro(y,document.baseURI)&&ro(v,document.baseURI)),ee=null;jA(f);let ie={canvasFactory:new R({ownerDocument:q,enableHWA:z}),filterFactory:new N({docId:t,ownerDocument:q}),cMapReaderFactory:re?null:new g({baseUrl:p,isCompressed:m}),standardFontDataFactory:re?null:new b({baseUrl:y}),wasmFactory:re?null:new _({baseUrl:v})};h||(h=go.create({verbosity:f,port:Gn.workerPort}),e._worker=h);let se={docId:t,apiVersion:"5.4.296",data:i,password:o,disableAutoFetch:O,rangeChunkSize:u,length:H,docBaseUrl:d,enableXfa:B,evaluatorOptions:{maxImageSize:E,disableFontFace:k,ignoreErrors:A,isEvalSupported:T,isOffscreenCanvasSupported:S,isImageDecoderSupported:C,canvasMaxAreaInBytes:F,fontExtraProperties:D,useSystemFonts:Z,useWasm:I,useWorkerFetch:re,cMapUrl:p,iccUrl:x,standardFontDataUrl:y,wasmUrl:v}},de={ownerDocument:q,pdfBug:P,styleElement:ee,loadingParams:{disableAutoFetch:O,enableXfa:B}};return h.promise.then(function(){if(e.destroyed)throw new Error("Loading aborted");if(h.destroyed)throw new Error("Worker was destroyed");let ge=h.messageHandler.sendWithPromise("GetDocRequest",se,i?[i.buffer]:null),_e;if(c)_e=new Bd(c,{disableRange:j,disableStream:U});else if(!i){if(!n)throw new Error("getDocument - no `url` parameter provided.");let w=ro(n)?Ld:yr?Gd:Vd;_e=new w({url:n,length:H,httpHeaders:a,withCredentials:s,rangeChunkSize:u,disableRange:j,disableStream:U})}return ge.then(w=>{if(e.destroyed)throw new Error("Loading aborted");if(h.destroyed)throw new Error("Worker was destroyed");let Q=new zi(t,w,h.port),ne=new Zd(Q,e,_e,de,ie,z);e._transport=ne,Q.send("Ready",null)})}).catch(e._capability.reject),e}var qd=class r{static#e=0;_capability=Promise.withResolvers();_transport=null;_worker=null;docId=`d${r.#e++}`;destroyed=!1;onPassword=null;onProgress=null;get promise(){return this._capability.promise}async destroy(){this.destroyed=!0;try{this._worker?.port&&(this._worker._pendingDestroy=!0),await this._transport?.destroy()}catch(e){throw this._worker?.port&&delete this._worker._pendingDestroy,e}this._transport=null,this._worker?.destroy(),this._worker=null}async getData(){return this._transport.getData()}},Yl=class{#e=Promise.withResolvers();#t=[];#n=[];#r=[];#s=[];constructor(e,t,n=!1,i=null){this.length=e,this.initialData=t,this.progressiveDone=n,this.contentDispositionFilename=i}addRangeListener(e){this.#s.push(e)}addProgressListener(e){this.#r.push(e)}addProgressiveReadListener(e){this.#n.push(e)}addProgressiveDoneListener(e){this.#t.push(e)}onDataRange(e,t){for(let n of this.#s)n(e,t)}onDataProgress(e,t){this.#e.promise.then(()=>{for(let n of this.#r)n(e,t)})}onDataProgressiveRead(e){this.#e.promise.then(()=>{for(let t of this.#n)t(e)})}onDataProgressiveDone(){this.#e.promise.then(()=>{for(let e of this.#t)e()})}transportReady(){this.#e.resolve()}requestDataRange(e,t){dt("Abstract method PDFDataRangeTransport.requestDataRange")}abort(){}},Yd=class{constructor(e,t){this._pdfInfo=e,this._transport=t}get annotationStorage(){return this._transport.annotationStorage}get canvasFactory(){return this._transport.canvasFactory}get filterFactory(){return this._transport.filterFactory}get numPages(){return this._pdfInfo.numPages}get fingerprints(){return this._pdfInfo.fingerprints}get isPureXfa(){return Ge(this,"isPureXfa",!!this._transport._htmlForXfa)}get allXfaHtml(){return this._transport._htmlForXfa}getPage(e){return this._transport.getPage(e)}getPageIndex(e){return this._transport.getPageIndex(e)}getDestinations(){return this._transport.getDestinations()}getDestination(e){return this._transport.getDestination(e)}getPageLabels(){return this._transport.getPageLabels()}getPageLayout(){return this._transport.getPageLayout()}getPageMode(){return this._transport.getPageMode()}getViewerPreferences(){return this._transport.getViewerPreferences()}getOpenAction(){return this._transport.getOpenAction()}getAttachments(){return this._transport.getAttachments()}getAnnotationsByType(e,t){return this._transport.getAnnotationsByType(e,t)}getJSActions(){return this._transport.getDocJSActions()}getOutline(){return this._transport.getOutline()}getOptionalContentConfig({intent:e="display"}={}){let{renderingIntent:t}=this._transport.getRenderingIntent(e);return this._transport.getOptionalContentConfig(t)}getPermissions(){return this._transport.getPermissions()}getMetadata(){return this._transport.getMetadata()}getMarkInfo(){return this._transport.getMarkInfo()}getData(){return this._transport.getData()}saveDocument(){return this._transport.saveDocument()}getDownloadInfo(){return this._transport.downloadInfoCapability.promise}cleanup(e=!1){return this._transport.startCleanup(e||this.isPureXfa)}destroy(){return this.loadingTask.destroy()}cachedPageNumber(e){return this._transport.cachedPageNumber(e)}get loadingParams(){return this._transport.loadingParams}get loadingTask(){return this._transport.loadingTask}getFieldObjects(){return this._transport.getFieldObjects()}hasJSActions(){return this._transport.hasJSActions()}getCalculationOrderIds(){return this._transport.getCalculationOrderIds()}},Kd=class{#e=!1;constructor(e,t,n,i=!1){this._pageIndex=e,this._pageInfo=t,this._transport=n,this._stats=i?new Ul:null,this._pdfBug=i,this.commonObjs=n.commonObjs,this.objs=new ql,this._intentStates=new Map,this.destroyed=!1,this.recordedBBoxes=null}get pageNumber(){return this._pageIndex+1}get rotate(){return this._pageInfo.rotate}get ref(){return this._pageInfo.ref}get userUnit(){return this._pageInfo.userUnit}get view(){return this._pageInfo.view}getViewport({scale:e,rotation:t=this.rotate,offsetX:n=0,offsetY:i=0,dontFlip:a=!1}={}){return new co({viewBox:this.view,userUnit:this.userUnit,scale:e,rotation:t,offsetX:n,offsetY:i,dontFlip:a})}getAnnotations({intent:e="display"}={}){let{renderingIntent:t}=this._transport.getRenderingIntent(e);return this._transport.getAnnotations(this._pageIndex,t)}getJSActions(){return this._transport.getPageJSActions(this._pageIndex)}get filterFactory(){return this._transport.filterFactory}get isPureXfa(){return Ge(this,"isPureXfa",!!this._transport._htmlForXfa)}async getXfa(){return this._transport._htmlForXfa?.children[this._pageIndex]||null}render({canvasContext:e,canvas:t=e.canvas,viewport:n,intent:i="display",annotationMode:a=pi.ENABLE,transform:s=null,background:o=null,optionalContentConfigPromise:c=null,annotationCanvasMap:u=null,pageColors:h=null,printAnnotationStorage:f=null,isEditing:d=!1,recordOperations:p=!1,operationsFilter:m=null}){this._stats?.time("Overall");let g=this._transport.getRenderingIntent(i,a,f,d),{renderingIntent:x,cacheKey:y}=g;this.#e=!1,c||=this._transport.getOptionalContentConfig(x);let b=this._intentStates.get(y);b||(b=Object.create(null),this._intentStates.set(y,b)),b.streamReaderCancelTimeout&&(clearTimeout(b.streamReaderCancelTimeout),b.streamReaderCancelTimeout=null);let v=!!(x&Vr.PRINT);b.displayReadyCapability||(b.displayReadyCapability=Promise.withResolvers(),b.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},this._stats?.time("Page Request"),this._pumpOperatorList(g));let _=!!(this._pdfBug&&globalThis.StepperManager?.enabled),A=!this.recordedBBoxes&&(p||_),E=C=>{if(b.renderTasks.delete(T),A){let F=T.gfx?.dependencyTracker.take();F&&(T.stepper&&T.stepper.setOperatorBBoxes(F,T.gfx.dependencyTracker.takeDebugMetadata()),p&&(this.recordedBBoxes=F))}v&&(this.#e=!0),this.#t(),C?(T.capability.reject(C),this._abortOperatorList({intentState:b,reason:C instanceof Error?C:new Error(C)})):T.capability.resolve(),this._stats&&(this._stats.timeEnd("Rendering"),this._stats.timeEnd("Overall"),globalThis.Stats?.enabled&&globalThis.Stats.add(this.pageNumber,this._stats))},T=new Qd({callback:E,params:{canvas:t,canvasContext:e,dependencyTracker:A?new Td(t,b.operatorList.length,_):null,viewport:n,transform:s,background:o},objs:this.objs,commonObjs:this.commonObjs,annotationCanvasMap:u,operatorList:b.operatorList,pageIndex:this._pageIndex,canvasFactory:this._transport.canvasFactory,filterFactory:this._transport.filterFactory,useRequestAnimationFrame:!v,pdfBug:this._pdfBug,pageColors:h,enableHWA:this._transport.enableHWA,operationsFilter:m});(b.renderTasks||=new Set).add(T);let S=T.task;return Promise.all([b.displayReadyCapability.promise,c]).then(([C,F])=>{if(this.destroyed){E();return}if(this._stats?.time("Rendering"),!(F.renderingIntent&x))throw new Error("Must use the same `intent`-argument when calling the `PDFPageProxy.render` and `PDFDocumentProxy.getOptionalContentConfig` methods.");T.initializeGraphics({transparency:C,optionalContentConfig:F}),T.operatorListChanged()}).catch(E),S}getOperatorList({intent:e="display",annotationMode:t=pi.ENABLE,printAnnotationStorage:n=null,isEditing:i=!1}={}){function a(){o.operatorList.lastChunk&&(o.opListReadCapability.resolve(o.operatorList),o.renderTasks.delete(c))}let s=this._transport.getRenderingIntent(e,t,n,i,!0),o=this._intentStates.get(s.cacheKey);o||(o=Object.create(null),this._intentStates.set(s.cacheKey,o));let c;return o.opListReadCapability||(c=Object.create(null),c.operatorListChanged=a,o.opListReadCapability=Promise.withResolvers(),(o.renderTasks||=new Set).add(c),o.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},this._stats?.time("Page Request"),this._pumpOperatorList(s)),o.opListReadCapability.promise}streamTextContent({includeMarkedContent:e=!1,disableNormalization:t=!1}={}){return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,includeMarkedContent:e===!0,disableNormalization:t===!0},{highWaterMark:100,size(i){return i.items.length}})}getTextContent(e={}){if(this._transport._htmlForXfa)return this.getXfa().then(n=>oo.textContent(n));let t=this.streamTextContent(e);return new Promise(function(n,i){function a(){s.read().then(function({value:c,done:u}){if(u){n(o);return}o.lang??=c.lang,Object.assign(o.styles,c.styles),o.items.push(...c.items),a()},i)}let s=t.getReader(),o={items:[],styles:Object.create(null),lang:null};a()})}getStructTree(){return this._transport.getStructTree(this._pageIndex)}_destroy(){this.destroyed=!0;let e=[];for(let t of this._intentStates.values())if(this._abortOperatorList({intentState:t,reason:new Error("Page was destroyed."),force:!0}),!t.opListReadCapability)for(let n of t.renderTasks)e.push(n.completed),n.cancel();return this.objs.clear(),this.#e=!1,Promise.all(e)}cleanup(e=!1){this.#e=!0;let t=this.#t();return e&&t&&(this._stats&&=new Ul),t}#t(){if(!this.#e||this.destroyed)return!1;for(let{renderTasks:e,operatorList:t}of this._intentStates.values())if(e.size>0||!t.lastChunk)return!1;return this._intentStates.clear(),this.objs.clear(),this.#e=!1,!0}_startRenderPage(e,t){let n=this._intentStates.get(t);n&&(this._stats?.timeEnd("Page Request"),n.displayReadyCapability?.resolve(e))}_renderPageChunk(e,t){for(let n=0,i=e.length;n<i;n++)t.operatorList.fnArray.push(e.fnArray[n]),t.operatorList.argsArray.push(e.argsArray[n]);t.operatorList.lastChunk=e.lastChunk,t.operatorList.separateAnnots=e.separateAnnots;for(let n of t.renderTasks)n.operatorListChanged();e.lastChunk&&this.#t()}_pumpOperatorList({renderingIntent:e,cacheKey:t,annotationStorageSerializable:n,modifiedIds:i}){let{map:a,transfer:s}=n,c=this._transport.messageHandler.sendWithStream("GetOperatorList",{pageIndex:this._pageIndex,intent:e,cacheKey:t,annotationStorage:a,modifiedIds:i},s).getReader(),u=this._intentStates.get(t);u.streamReader=c;let h=()=>{c.read().then(({value:f,done:d})=>{if(d){u.streamReader=null;return}this._transport.destroyed||(this._renderPageChunk(f,u),h())},f=>{if(u.streamReader=null,!this._transport.destroyed){if(u.operatorList){u.operatorList.lastChunk=!0;for(let d of u.renderTasks)d.operatorListChanged();this.#t()}if(u.displayReadyCapability)u.displayReadyCapability.reject(f);else if(u.opListReadCapability)u.opListReadCapability.reject(f);else throw f}})};h()}_abortOperatorList({intentState:e,reason:t,force:n=!1}){if(e.streamReader){if(e.streamReaderCancelTimeout&&(clearTimeout(e.streamReaderCancelTimeout),e.streamReaderCancelTimeout=null),!n){if(e.renderTasks.size>0)return;if(t instanceof lo){let i=TS;t.extraDelay>0&&t.extraDelay<1e3&&(i+=t.extraDelay),e.streamReaderCancelTimeout=setTimeout(()=>{e.streamReaderCancelTimeout=null,this._abortOperatorList({intentState:e,reason:t,force:!0})},i);return}}if(e.streamReader.cancel(new Cn(t.message)).catch(()=>{}),e.streamReader=null,!this._transport.destroyed){for(let[i,a]of this._intentStates)if(a===e){this._intentStates.delete(i);break}this.cleanup()}}}get stats(){return this._stats}},go=class r{#e=Promise.withResolvers();#t=null;#n=null;#r=null;static#s=0;static#i=!1;static#a=new WeakMap;static{yr&&(this.#i=!0,Gn.workerSrc||="./pdf.worker.mjs"),this._isSameOrigin=(e,t)=>{let n=URL.parse(e);if(!n?.origin||n.origin==="null")return!1;let i=new URL(t,n);return n.origin===i.origin},this._createCDNWrapper=e=>{let t=`await import("${e}");`;return URL.createObjectURL(new Blob([t],{type:"text/javascript"}))},this.fromPort=e=>{if(rS("`PDFWorker.fromPort` - please use `PDFWorker.create` instead."),!e?.port)throw new Error("PDFWorker.fromPort - invalid method signature.");return this.create(e)}}constructor({name:e=null,port:t=null,verbosity:n=GA()}={}){if(this.name=e,this.destroyed=!1,this.verbosity=n,t){if(r.#a.has(t))throw new Error("Cannot use more than one PDFWorker per port.");r.#a.set(t,this),this.#l(t)}else this.#c()}get promise(){return this.#e.promise}#o(){this.#e.resolve(),this.#t.send("configure",{verbosity:this.verbosity})}get port(){return this.#n}get messageHandler(){return this.#t}#l(e){this.#n=e,this.#t=new zi("main","worker",e),this.#t.on("ready",()=>{}),this.#o()}#c(){if(r.#i||r.#h){this.#f();return}let{workerSrc:e}=r;try{r._isSameOrigin(window.location,e)||(e=r._createCDNWrapper(new URL(e,window.location).href));let t=new Worker(e,{type:"module"}),n=new zi("main","worker",t),i=()=>{a.abort(),n.destroy(),t.terminate(),this.destroyed?this.#e.reject(new Error("Worker was destroyed")):this.#f()},a=new AbortController;t.addEventListener("error",()=>{this.#r||i()},{signal:a.signal}),n.on("test",o=>{if(a.abort(),this.destroyed||!o){i();return}this.#t=n,this.#n=t,this.#r=t,this.#o()}),n.on("ready",o=>{if(a.abort(),this.destroyed){i();return}try{s()}catch{this.#f()}});let s=()=>{let o=new Uint8Array;n.send("test",o,[o.buffer])};s();return}catch{du("The worker has been disabled.")}this.#f()}#f(){r.#i||(Ne("Setting up fake worker."),r.#i=!0),r._setupFakeWorkerGlobal.then(e=>{if(this.destroyed){this.#e.reject(new Error("Worker was destroyed"));return}let t=new pd;this.#n=t;let n=`fake${r.#s++}`,i=new zi(n+"_worker",n,t);e.setup(i,t),this.#t=new zi(n,n+"_worker",t),this.#o()}).catch(e=>{this.#e.reject(new Error(`Setting up fake worker failed: "${e.message}".`))})}destroy(){this.destroyed=!0,this.#r?.terminate(),this.#r=null,r.#a.delete(this.#n),this.#n=null,this.#t?.destroy(),this.#t=null}static create(e){let t=this.#a.get(e?.port);if(t){if(t._pendingDestroy)throw new Error("PDFWorker.create - the worker is being destroyed.\nPlease remember to await `PDFDocumentLoadingTask.destroy()`-calls.");return t}return new r(e)}static get workerSrc(){if(Gn.workerSrc)return Gn.workerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}static get#h(){try{return globalThis.pdfjsWorker?.WorkerMessageHandler||null}catch{return null}}static get _setupFakeWorkerGlobal(){return Ge(this,"_setupFakeWorkerGlobal",(async()=>this.#h?this.#h:(await import(this.workerSrc)).WorkerMessageHandler)())}},Zd=class{#e=new Map;#t=new Map;#n=new Map;#r=new Map;#s=null;constructor(e,t,n,i,a,s){this.messageHandler=e,this.loadingTask=t,this.commonObjs=new ql,this.fontLoader=new hd({ownerDocument:i.ownerDocument,styleElement:i.styleElement}),this.loadingParams=i.loadingParams,this._params=i,this.canvasFactory=a.canvasFactory,this.filterFactory=a.filterFactory,this.cMapReaderFactory=a.cMapReaderFactory,this.standardFontDataFactory=a.standardFontDataFactory,this.wasmFactory=a.wasmFactory,this.destroyed=!1,this.destroyCapability=null,this._networkStream=n,this._fullReader=null,this._lastProgress=null,this.downloadInfoCapability=Promise.withResolvers(),this.enableHWA=s,this.setupMessageHandler()}#i(e,t=null){let n=this.#e.get(e);if(n)return n;let i=this.messageHandler.sendWithPromise(e,t);return this.#e.set(e,i),i}get annotationStorage(){return Ge(this,"annotationStorage",new ho)}getRenderingIntent(e,t=pi.ENABLE,n=null,i=!1,a=!1){let s=Vr.DISPLAY,o=ud;switch(e){case"any":s=Vr.ANY;break;case"display":break;case"print":s=Vr.PRINT;break;default:Ne(`getRenderingIntent - invalid intent: ${e}`)}let c=s&Vr.PRINT&&n instanceof Bl?n:this.annotationStorage;switch(t){case pi.DISABLE:s+=Vr.ANNOTATIONS_DISABLE;break;case pi.ENABLE:break;case pi.ENABLE_FORMS:s+=Vr.ANNOTATIONS_FORMS;break;case pi.ENABLE_STORAGE:s+=Vr.ANNOTATIONS_STORAGE,o=c.serializable;break;default:Ne(`getRenderingIntent - invalid annotationMode: ${t}`)}i&&(s+=Vr.IS_EDITING),a&&(s+=Vr.OPLIST);let{ids:u,hash:h}=c.modifiedIds,f=[s,o.hash,h];return{renderingIntent:s,cacheKey:f.join("_"),annotationStorageSerializable:o,modifiedIds:u}}destroy(){if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=Promise.withResolvers(),this.#s?.reject(new Error("Worker was destroyed during onPassword callback"));let e=[];for(let n of this.#t.values())e.push(n._destroy());this.#t.clear(),this.#n.clear(),this.#r.clear(),this.hasOwnProperty("annotationStorage")&&this.annotationStorage.resetModified();let t=this.messageHandler.sendWithPromise("Terminate",null);return e.push(t),Promise.all(e).then(()=>{this.commonObjs.clear(),this.fontLoader.clear(),this.#e.clear(),this.filterFactory.destroy(),po.cleanup(),this._networkStream?.cancelAllRequests(new Cn("Worker was terminated.")),this.messageHandler?.destroy(),this.messageHandler=null,this.destroyCapability.resolve()},this.destroyCapability.reject),this.destroyCapability.promise}setupMessageHandler(){let{messageHandler:e,loadingTask:t}=this;e.on("GetReader",(n,i)=>{Ye(this._networkStream,"GetReader - no `IPDFStream` instance available."),this._fullReader=this._networkStream.getFullReader(),this._fullReader.onProgress=a=>{this._lastProgress={loaded:a.loaded,total:a.total}},i.onPull=()=>{this._fullReader.read().then(function({value:a,done:s}){if(s){i.close();return}Ye(a instanceof ArrayBuffer,"GetReader - expected an ArrayBuffer."),i.enqueue(new Uint8Array(a),1,[a])}).catch(a=>{i.error(a)})},i.onCancel=a=>{this._fullReader.cancel(a),i.ready.catch(s=>{if(!this.destroyed)throw s})}}),e.on("ReaderHeadersReady",async n=>{await this._fullReader.headersReady;let{isStreamingSupported:i,isRangeSupported:a,contentLength:s}=this._fullReader;return(!i||!a)&&(this._lastProgress&&t.onProgress?.(this._lastProgress),this._fullReader.onProgress=o=>{t.onProgress?.({loaded:o.loaded,total:o.total})}),{isStreamingSupported:i,isRangeSupported:a,contentLength:s}}),e.on("GetRangeReader",(n,i)=>{Ye(this._networkStream,"GetRangeReader - no `IPDFStream` instance available.");let a=this._networkStream.getRangeReader(n.begin,n.end);if(!a){i.close();return}i.onPull=()=>{a.read().then(function({value:s,done:o}){if(o){i.close();return}Ye(s instanceof ArrayBuffer,"GetRangeReader - expected an ArrayBuffer."),i.enqueue(new Uint8Array(s),1,[s])}).catch(s=>{i.error(s)})},i.onCancel=s=>{a.cancel(s),i.ready.catch(o=>{if(!this.destroyed)throw o})}}),e.on("GetDoc",({pdfInfo:n})=>{this._numPages=n.numPages,this._htmlForXfa=n.htmlForXfa,delete n.htmlForXfa,t._capability.resolve(new Yd(n,this))}),e.on("DocException",n=>{t._capability.reject(kr(n))}),e.on("PasswordRequest",n=>{this.#s=Promise.withResolvers();try{if(!t.onPassword)throw kr(n);let i=a=>{a instanceof Error?this.#s.reject(a):this.#s.resolve({password:a})};t.onPassword(i,n.code)}catch(i){this.#s.reject(i)}return this.#s.promise}),e.on("DataLoaded",n=>{t.onProgress?.({loaded:n.length,total:n.length}),this.downloadInfoCapability.resolve(n)}),e.on("StartRenderPage",n=>{if(this.destroyed)return;this.#t.get(n.pageIndex)._startRenderPage(n.transparency,n.cacheKey)}),e.on("commonobj",([n,i,a])=>{if(this.destroyed||this.commonObjs.has(n))return null;switch(i){case"Font":if("error"in a){let h=a.error;Ne(`Error during font loading: ${h}`),this.commonObjs.resolve(n,h);break}let s=new Ud(a),o=this._params.pdfBug&&globalThis.FontInspector?.enabled?(h,f)=>globalThis.FontInspector.fontAdded(h,f):null,c=new fd(s,o,a.extra,a.charProcOperatorList);this.fontLoader.bind(c).catch(()=>e.sendWithPromise("FontFallback",{id:n})).finally(()=>{!c.fontExtraProperties&&c.data&&c.clearData(),this.commonObjs.resolve(n,c)});break;case"CopyLocalImage":let{imageRef:u}=a;Ye(u,"The imageRef must be defined.");for(let h of this.#t.values())for(let[,f]of h.objs)if(f?.ref===u)return f.dataLen?(this.commonObjs.resolve(n,structuredClone(f)),f.dataLen):null;break;case"FontPath":case"Image":case"Pattern":this.commonObjs.resolve(n,a);break;default:throw new Error(`Got unknown common object type ${i}`)}return null}),e.on("obj",([n,i,a,s])=>{if(this.destroyed)return;let o=this.#t.get(i);if(!o.objs.has(n)){if(o._intentStates.size===0){s?.bitmap?.close();return}switch(a){case"Image":case"Pattern":o.objs.resolve(n,s);break;default:throw new Error(`Got unknown object type ${a}`)}}}),e.on("DocProgress",n=>{this.destroyed||t.onProgress?.({loaded:n.loaded,total:n.total})}),e.on("FetchBinaryData",async n=>{if(this.destroyed)throw new Error("Worker was destroyed.");let i=this[n.type];if(!i)throw new Error(`${n.type} not initialized, see the \`useWorkerFetch\` parameter.`);return i.fetch(n)})}getData(){return this.messageHandler.sendWithPromise("GetData",null)}saveDocument(){this.annotationStorage.size<=0&&Ne("saveDocument called while `annotationStorage` is empty, please use the getData-method instead.");let{map:e,transfer:t}=this.annotationStorage.serializable;return this.messageHandler.sendWithPromise("SaveDocument",{isPureXfa:!!this._htmlForXfa,numPages:this._numPages,annotationStorage:e,filename:this._fullReader?.filename??null},t).finally(()=>{this.annotationStorage.resetModified()})}getPage(e){if(!Number.isInteger(e)||e<=0||e>this._numPages)return Promise.reject(new Error("Invalid page request."));let t=e-1,n=this.#n.get(t);if(n)return n;let i=this.messageHandler.sendWithPromise("GetPage",{pageIndex:t}).then(a=>{if(this.destroyed)throw new Error("Transport destroyed");a.refStr&&this.#r.set(a.refStr,e);let s=new Kd(t,a,this,this._params.pdfBug);return this.#t.set(t,s),s});return this.#n.set(t,i),i}getPageIndex(e){return dd(e)?this.messageHandler.sendWithPromise("GetPageIndex",{num:e.num,gen:e.gen}):Promise.reject(new Error("Invalid pageIndex request."))}getAnnotations(e,t){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:e,intent:t})}getFieldObjects(){return this.#i("GetFieldObjects")}hasJSActions(){return this.#i("HasJSActions")}getCalculationOrderIds(){return this.messageHandler.sendWithPromise("GetCalculationOrderIds",null)}getDestinations(){return this.messageHandler.sendWithPromise("GetDestinations",null)}getDestination(e){return typeof e!="string"?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:e})}getPageLabels(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}getPageLayout(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}getPageMode(){return this.messageHandler.sendWithPromise("GetPageMode",null)}getViewerPreferences(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}getOpenAction(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}getAttachments(){return this.messageHandler.sendWithPromise("GetAttachments",null)}getAnnotationsByType(e,t){return this.messageHandler.sendWithPromise("GetAnnotationsByType",{types:e,pageIndexesToSkip:t})}getDocJSActions(){return this.#i("GetDocJSActions")}getPageJSActions(e){return this.messageHandler.sendWithPromise("GetPageJSActions",{pageIndex:e})}getStructTree(e){return this.messageHandler.sendWithPromise("GetStructTree",{pageIndex:e})}getOutline(){return this.messageHandler.sendWithPromise("GetOutline",null)}getOptionalContentConfig(e){return this.#i("GetOptionalContentConfig").then(t=>new Od(t,e))}getPermissions(){return this.messageHandler.sendWithPromise("GetPermissions",null)}getMetadata(){let e="GetMetadata",t=this.#e.get(e);if(t)return t;let n=this.messageHandler.sendWithPromise(e,null).then(i=>({info:i[0],metadata:i[1]?new Id(i[1]):null,contentDispositionFilename:this._fullReader?.filename??null,contentLength:this._fullReader?.contentLength??null}));return this.#e.set(e,n),n}getMarkInfo(){return this.messageHandler.sendWithPromise("GetMarkInfo",null)}async startCleanup(e=!1){if(!this.destroyed){await this.messageHandler.sendWithPromise("Cleanup",null);for(let t of this.#t.values())if(!t.cleanup())throw new Error(`startCleanup: Page ${t.pageNumber} is currently rendering.`);this.commonObjs.clear(),e||this.fontLoader.clear(),this.#e.clear(),this.filterFactory.destroy(!0),po.cleanup()}}cachedPageNumber(e){if(!dd(e))return null;let t=e.gen===0?`${e.num}R`:`${e.num}R${e.gen}`;return this.#r.get(t)??null}},Jd=class{#e=null;onContinue=null;onError=null;constructor(e){this.#e=e}get promise(){return this.#e.capability.promise}cancel(e=0){this.#e.cancel(null,e)}get separateAnnots(){let{separateAnnots:e}=this.#e.operatorList;if(!e)return!1;let{annotationCanvasMap:t}=this.#e;return e.form||e.canvas&&t?.size>0}},Qd=class r{#e=null;static#t=new WeakSet;constructor({callback:e,params:t,objs:n,commonObjs:i,annotationCanvasMap:a,operatorList:s,pageIndex:o,canvasFactory:c,filterFactory:u,useRequestAnimationFrame:h=!1,pdfBug:f=!1,pageColors:d=null,enableHWA:p=!1,operationsFilter:m=null}){this.callback=e,this.params=t,this.objs=n,this.commonObjs=i,this.annotationCanvasMap=a,this.operatorListIdx=null,this.operatorList=s,this._pageIndex=o,this.canvasFactory=c,this.filterFactory=u,this._pdfBug=f,this.pageColors=d,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=h===!0&&typeof window<"u",this.cancelled=!1,this.capability=Promise.withResolvers(),this.task=new Jd(this),this._cancelBound=this.cancel.bind(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=t.canvas,this._canvasContext=t.canvas?null:t.canvasContext,this._enableHWA=p,this._dependencyTracker=t.dependencyTracker,this._operationsFilter=m}get completed(){return this.capability.promise.catch(function(){})}initializeGraphics({transparency:e=!1,optionalContentConfig:t}){if(this.cancelled)return;if(this._canvas){if(r.#t.has(this._canvas))throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");r.#t.add(this._canvas)}this._pdfBug&&globalThis.StepperManager?.enabled&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());let{viewport:n,transform:i,background:a,dependencyTracker:s}=this.params,o=this._canvasContext||this._canvas.getContext("2d",{alpha:!1,willReadFrequently:!this._enableHWA});this.gfx=new Wa(o,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:t},this.annotationCanvasMap,this.pageColors,s),this.gfx.beginDrawing({transform:i,viewport:n,transparency:e,background:a}),this.operatorListIdx=0,this.graphicsReady=!0,this.graphicsReadyCallback?.()}cancel(e=null,t=0){this.running=!1,this.cancelled=!0,this.gfx?.endDrawing(),this.#e&&(window.cancelAnimationFrame(this.#e),this.#e=null),r.#t.delete(this._canvas),e||=new lo(`Rendering cancelled, page ${this._pageIndex+1}`,t),this.callback(e),this.task.onError?.(e)}operatorListChanged(){if(!this.graphicsReady){this.graphicsReadyCallback||=this._continueBound;return}this.gfx.dependencyTracker?.growOperationsCount(this.operatorList.fnArray.length),this.stepper?.updateOperatorList(this.operatorList),!this.running&&this._continue()}_continue(){this.running=!0,!this.cancelled&&(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}_scheduleNext(){this._useRequestAnimationFrame?this.#e=window.requestAnimationFrame(()=>{this.#e=null,this._nextBound().catch(this._cancelBound)}):Promise.resolve().then(this._nextBound).catch(this._cancelBound)}async _next(){this.cancelled||(this.operatorListIdx=this.gfx.executeOperatorList(this.operatorList,this.operatorListIdx,this._continueBound,this.stepper,this._operationsFilter),this.operatorListIdx===this.operatorList.argsArray.length&&(this.running=!1,this.operatorList.lastChunk&&(this.gfx.endDrawing(),r.#t.delete(this._canvas),this.callback())))}},ES="5.4.296",AS="f56dc8601",Kl=class r{#e=null;#t=null;#n;#r=null;#s=!1;#i=!1;#a=null;#o;#l=null;#c=null;static#f=null;static get _keyboardManager(){return Ge(this,"_keyboardManager",new Gi([[["Escape","mac+Escape"],r.prototype._hideDropdownFromKeyboard],[[" ","mac+ "],r.prototype._colorSelectFromKeyboard],[["ArrowDown","ArrowRight","mac+ArrowDown","mac+ArrowRight"],r.prototype._moveToNext],[["ArrowUp","ArrowLeft","mac+ArrowUp","mac+ArrowLeft"],r.prototype._moveToPrevious],[["Home","mac+Home"],r.prototype._moveToBeginning],[["End","mac+End"],r.prototype._moveToEnd]]))}constructor({editor:e=null,uiManager:t=null}){e?(this.#i=!1,this.#a=e):this.#i=!0,this.#c=e?._uiManager||t,this.#o=this.#c._eventBus,this.#n=e?.color?.toUpperCase()||this.#c?.highlightColors.values().next().value||"#FFFF98",r.#f||=Object.freeze({blue:"pdfjs-editor-colorpicker-blue",green:"pdfjs-editor-colorpicker-green",pink:"pdfjs-editor-colorpicker-pink",red:"pdfjs-editor-colorpicker-red",yellow:"pdfjs-editor-colorpicker-yellow"})}renderButton(){let e=this.#e=document.createElement("button");e.className="colorPicker",e.tabIndex="0",e.setAttribute("data-l10n-id","pdfjs-editor-colorpicker-button"),e.ariaHasPopup="true",this.#a&&(e.ariaControls=`${this.#a.id}_colorpicker_dropdown`);let t=this.#c._signal;e.addEventListener("click",this.#p.bind(this),{signal:t}),e.addEventListener("keydown",this.#m.bind(this),{signal:t});let n=this.#t=document.createElement("span");return n.className="swatch",n.ariaHidden="true",n.style.backgroundColor=this.#n,e.append(n),e}renderMainDropdown(){let e=this.#r=this.#h();return e.ariaOrientation="horizontal",e.ariaLabelledBy="highlightColorPickerLabel",e}#h(){let e=document.createElement("div"),t=this.#c._signal;e.addEventListener("contextmenu",en,{signal:t}),e.className="dropdown",e.role="listbox",e.ariaMultiSelectable="false",e.ariaOrientation="vertical",e.setAttribute("data-l10n-id","pdfjs-editor-colorpicker-dropdown"),this.#a&&(e.id=`${this.#a.id}_colorpicker_dropdown`);for(let[n,i]of this.#c.highlightColors){let a=document.createElement("button");a.tabIndex="0",a.role="option",a.setAttribute("data-color",i),a.title=n,a.setAttribute("data-l10n-id",r.#f[n]);let s=document.createElement("span");a.append(s),s.className="swatch",s.style.backgroundColor=i,a.ariaSelected=i===this.#n,a.addEventListener("click",this.#d.bind(this,i),{signal:t}),e.append(a)}return e.addEventListener("keydown",this.#m.bind(this),{signal:t}),e}#d(e,t){t.stopPropagation(),this.#o.dispatch("switchannotationeditorparams",{source:this,type:qe.HIGHLIGHT_COLOR,value:e}),this.updateColor(e)}_colorSelectFromKeyboard(e){if(e.target===this.#e){this.#p(e);return}let t=e.target.getAttribute("data-color");t&&this.#d(t,e)}_moveToNext(e){if(!this.#g){this.#p(e);return}if(e.target===this.#e){this.#r.firstChild?.focus();return}e.target.nextSibling?.focus()}_moveToPrevious(e){if(e.target===this.#r?.firstChild||e.target===this.#e){this.#g&&this._hideDropdownFromKeyboard();return}this.#g||this.#p(e),e.target.previousSibling?.focus()}_moveToBeginning(e){if(!this.#g){this.#p(e);return}this.#r.firstChild?.focus()}_moveToEnd(e){if(!this.#g){this.#p(e);return}this.#r.lastChild?.focus()}#m(e){r._keyboardManager.exec(this,e)}#p(e){if(this.#g){this.hideDropdown();return}if(this.#s=e.detail===0,this.#l||(this.#l=new AbortController,window.addEventListener("pointerdown",this.#u.bind(this),{signal:this.#c.combinedSignal(this.#l)})),this.#e.ariaExpanded="true",this.#r){this.#r.classList.remove("hidden");return}let t=this.#r=this.#h();this.#e.append(t)}#u(e){this.#r?.contains(e.target)||this.hideDropdown()}hideDropdown(){this.#r?.classList.add("hidden"),this.#e.ariaExpanded="false",this.#l?.abort(),this.#l=null}get#g(){return this.#r&&!this.#r.classList.contains("hidden")}_hideDropdownFromKeyboard(){if(!this.#i){if(!this.#g){this.#a?.unselect();return}this.hideDropdown(),this.#e.focus({preventScroll:!0,focusVisible:this.#s})}}updateColor(e){if(this.#t&&(this.#t.style.backgroundColor=e),!this.#r)return;let t=this.#c.highlightColors.values();for(let n of this.#r.children)n.ariaSelected=t.next().value===e.toUpperCase()}destroy(){this.#e?.remove(),this.#e=null,this.#t=null,this.#r?.remove(),this.#r=null}},Zl=class r{#e=null;#t=null;#n=null;static#r=null;constructor(e){this.#t=e,this.#n=e._uiManager,r.#r||=Object.freeze({freetext:"pdfjs-editor-color-picker-free-text-input",ink:"pdfjs-editor-color-picker-ink-input"})}renderButton(){if(this.#e)return this.#e;let{editorType:e,colorType:t,colorValue:n}=this.#t,i=this.#e=document.createElement("input");return i.type="color",i.value=n||"#000000",i.className="basicColorPicker",i.tabIndex=0,i.setAttribute("data-l10n-id",r.#r[e]),i.addEventListener("input",()=>{this.#n.updateParams(t,i.value)},{signal:this.#n._signal}),i}update(e){this.#e&&(this.#e.value=e)}destroy(){this.#e?.remove(),this.#e=null}hideDropdown(){}},gN=ze(116),mN=ze(531);function nx(r){return Math.floor(Math.max(0,Math.min(1,r))*255).toString(16).padStart(2,"0")}function eo(r){return Math.max(0,Math.min(255,255*r))}var Jl=class{static CMYK_G([e,t,n,i]){return["G",1-Math.min(1,.3*e+.59*n+.11*t+i)]}static G_CMYK([e]){return["CMYK",0,0,0,1-e]}static G_RGB([e]){return["RGB",e,e,e]}static G_rgb([e]){return e=eo(e),[e,e,e]}static G_HTML([e]){let t=nx(e);return`#${t}${t}${t}`}static RGB_G([e,t,n]){return["G",.3*e+.59*t+.11*n]}static RGB_rgb(e){return e.map(eo)}static RGB_HTML(e){return`#${e.map(nx).join("")}`}static T_HTML(){return"#00000000"}static T_rgb(){return[null]}static CMYK_RGB([e,t,n,i]){return["RGB",1-Math.min(1,e+i),1-Math.min(1,n+i),1-Math.min(1,t+i)]}static CMYK_rgb([e,t,n,i]){return[eo(1-Math.min(1,e+i)),eo(1-Math.min(1,n+i)),eo(1-Math.min(1,t+i))]}static CMYK_HTML(e){let t=this.CMYK_RGB(e).slice(1);return this.RGB_HTML(t)}static RGB_CMYK([e,t,n]){let i=1-e,a=1-t,s=1-n,o=Math.min(i,a,s);return["CMYK",i,a,s,o]}};var e0=class{create(e,t,n=!1){if(e<=0||t<=0)throw new Error("Invalid SVG dimensions");let i=this._createSVG("svg:svg");return i.setAttribute("version","1.1"),n||(i.setAttribute("width",`${e}px`),i.setAttribute("height",`${t}px`)),i.setAttribute("preserveAspectRatio","none"),i.setAttribute("viewBox",`0 0 ${e} ${t}`),i}createElement(e){if(typeof e!="string")throw new Error("Invalid SVG element type");return this._createSVG(e)}_createSVG(e){dt("Abstract method `_createSVG` called.")}},Va=class extends e0{_createSVG(e){return document.createElementNS(jn,e)}},SS=9,$i=new WeakSet,CS=new Date().getTimezoneOffset()*60*1e3,Ql=class{static create(e){switch(e.data.annotationType){case Rt.LINK:return new mo(e);case Rt.TEXT:return new r0(e);case Rt.WIDGET:switch(e.data.fieldType){case"Tx":return new n0(e);case"Btn":return e.data.radioButton?new eu(e):e.data.checkBox?new a0(e):new s0(e);case"Ch":return new o0(e);case"Sig":return new i0(e)}return new $n(e);case Rt.POPUP:return new xo(e);case Rt.FREETEXT:return new tu(e);case Rt.LINE:return new l0(e);case Rt.SQUARE:return new u0(e);case Rt.CIRCLE:return new h0(e);case Rt.POLYLINE:return new ru(e);case Rt.CARET:return new d0(e);case Rt.INK:return new vo(e);case Rt.POLYGON:return new f0(e);case Rt.HIGHLIGHT:return new nu(e);case Rt.UNDERLINE:return new p0(e);case Rt.SQUIGGLY:return new g0(e);case Rt.STRIKEOUT:return new m0(e);case Rt.STAMP:return new iu(e);case Rt.FILEATTACHMENT:return new x0(e);default:return new Dt(e)}}},Dt=class r{#e=null;#t=!1;#n=null;constructor(e,{isRenderable:t=!1,ignoreBorder:n=!1,createQuadrilaterals:i=!1}={}){this.isRenderable=t,this.data=e.data,this.layer=e.layer,this.linkService=e.linkService,this.downloadManager=e.downloadManager,this.imageResourcesPath=e.imageResourcesPath,this.renderForms=e.renderForms,this.svgFactory=e.svgFactory,this.annotationStorage=e.annotationStorage,this.enableComment=e.enableComment,this.enableScripting=e.enableScripting,this.hasJSActions=e.hasJSActions,this._fieldObjects=e.fieldObjects,this.parent=e.parent,t&&(this.container=this._createContainer(n)),i&&this._createQuadrilaterals()}static _hasPopupData({contentsObj:e,richText:t}){return!!(e?.str||t?.str)}get _isEditable(){return this.data.isEditable}get hasPopupData(){return r._hasPopupData(this.data)||this.enableComment&&!!this.commentText}get commentData(){let{data:e}=this,t=this.annotationStorage?.getEditor(e.id);return t?t.getData():e}get hasCommentButton(){return this.enableComment&&this.hasPopupElement}get commentButtonPosition(){let e=this.annotationStorage?.getEditor(this.data.id);if(e)return e.commentButtonPositionInPage;let{quadPoints:t,inkLists:n,rect:i}=this.data,a=-1/0,s=-1/0;if(t?.length>=8){for(let o=0;o<t.length;o+=8)t[o+1]>s?(s=t[o+1],a=t[o+2]):t[o+1]===s&&(a=Math.max(a,t[o+2]));return[a,s]}if(n?.length>=1){for(let o of n)for(let c=0,u=o.length;c<u;c+=2)o[c+1]>s?(s=o[c+1],a=o[c]):o[c+1]===s&&(a=Math.max(a,o[c]));if(a!==1/0)return[a,s]}return i?[i[2],i[3]]:null}_normalizePoint(e){let{page:{view:t},viewport:{rawDims:{pageWidth:n,pageHeight:i,pageX:a,pageY:s}}}=this.parent;return e[1]=t[3]-e[1]+t[1],e[0]=100*(e[0]-a)/n,e[1]=100*(e[1]-s)/i,e}get commentText(){let{data:e}=this;return this.annotationStorage.getRawValue(`${io}${e.id}`)?.popup?.contents||e.contentsObj?.str||""}set commentText(e){let{data:t}=this,n={deleted:!e,contents:e||""};this.annotationStorage.updateEditor(t.id,{popup:n})||this.annotationStorage.setValue(`${io}${t.id}`,{id:t.id,annotationType:t.annotationType,pageIndex:this.parent.page._pageIndex,popup:n,popupRef:t.popupRef,modificationDate:new Date}),e||this.removePopup()}removePopup(){(this.#n?.popup||this.popup)?.remove(),this.#n=this.popup=null}updateEdited(e){if(!this.container)return;e.rect&&(this.#e||={rect:this.data.rect.slice(0)});let{rect:t,popup:n}=e;t&&this.#r(t);let i=this.#n?.popup||this.popup;!i&&n?.text&&(this._createPopup(n),i=this.#n.popup),i&&(i.updateEdited(e),n?.deleted&&(i.remove(),this.#n=null,this.popup=null))}resetEdited(){this.#e&&(this.#r(this.#e.rect),this.#n?.popup.resetEdited(),this.#e=null)}#r(e){let{container:{style:t},data:{rect:n,rotation:i},parent:{viewport:{rawDims:{pageWidth:a,pageHeight:s,pageX:o,pageY:c}}}}=this;n?.splice(0,4,...e),t.left=`${100*(e[0]-o)/a}%`,t.top=`${100*(s-e[3]+c)/s}%`,i===0?(t.width=`${100*(e[2]-e[0])/a}%`,t.height=`${100*(e[3]-e[1])/s}%`):this.setRotation(i)}_createContainer(e){let{data:t,parent:{page:n,viewport:i}}=this,a=document.createElement("section");a.setAttribute("data-annotation-id",t.id),!(this instanceof $n)&&!(this instanceof mo)&&(a.tabIndex=0);let{style:s}=a;if(s.zIndex=this.parent.zIndex,this.parent.zIndex+=2,t.alternativeText&&(a.title=t.alternativeText),t.noRotate&&a.classList.add("norotate"),!t.rect||this instanceof xo){let{rotation:g}=t;return!t.hasOwnCanvas&&g!==0&&this.setRotation(g,a),a}let{width:o,height:c}=this;if(!e&&t.borderStyle.width>0){s.borderWidth=`${t.borderStyle.width}px`;let g=t.borderStyle.horizontalCornerRadius,x=t.borderStyle.verticalCornerRadius;if(g>0||x>0){let b=`calc(${g}px * var(--total-scale-factor)) / calc(${x}px * var(--total-scale-factor))`;s.borderRadius=b}else if(this instanceof eu){let b=`calc(${o}px * var(--total-scale-factor)) / calc(${c}px * var(--total-scale-factor))`;s.borderRadius=b}switch(t.borderStyle.style){case Na.SOLID:s.borderStyle="solid";break;case Na.DASHED:s.borderStyle="dashed";break;case Na.BEVELED:Ne("Unimplemented border style: beveled");break;case Na.INSET:Ne("Unimplemented border style: inset");break;case Na.UNDERLINE:s.borderBottomStyle="solid";break;default:break}let y=t.borderColor||null;y?(this.#t=!0,s.borderColor=Re.makeHexColor(y[0]|0,y[1]|0,y[2]|0)):s.borderWidth=0}let u=Re.normalizeRect([t.rect[0],n.view[3]-t.rect[1]+n.view[1],t.rect[2],n.view[3]-t.rect[3]+n.view[1]]),{pageWidth:h,pageHeight:f,pageX:d,pageY:p}=i.rawDims;s.left=`${100*(u[0]-d)/h}%`,s.top=`${100*(u[1]-p)/f}%`;let{rotation:m}=t;return t.hasOwnCanvas||m===0?(s.width=`${100*o/h}%`,s.height=`${100*c/f}%`):this.setRotation(m,a),a}setRotation(e,t=this.container){if(!this.data.rect)return;let{pageWidth:n,pageHeight:i}=this.parent.viewport.rawDims,{width:a,height:s}=this;e%180!==0&&([a,s]=[s,a]),t.style.width=`${100*a/n}%`,t.style.height=`${100*s/i}%`,t.setAttribute("data-main-rotation",(360-e)%360)}get _commonActions(){let e=(t,n,i)=>{let a=i.detail[t],s=a[0],o=a.slice(1);i.target.style[n]=Jl[`${s}_HTML`](o),this.annotationStorage.setValue(this.data.id,{[n]:Jl[`${s}_rgb`](o)})};return Ge(this,"_commonActions",{display:t=>{let{display:n}=t.detail,i=n%2===1;this.container.style.visibility=i?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noView:i,noPrint:n===1||n===2})},print:t=>{this.annotationStorage.setValue(this.data.id,{noPrint:!t.detail.print})},hidden:t=>{let{hidden:n}=t.detail;this.container.style.visibility=n?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noPrint:n,noView:n})},focus:t=>{setTimeout(()=>t.target.focus({preventScroll:!1}),0)},userName:t=>{t.target.title=t.detail.userName},readonly:t=>{t.target.disabled=t.detail.readonly},required:t=>{this._setRequired(t.target,t.detail.required)},bgColor:t=>{e("bgColor","backgroundColor",t)},fillColor:t=>{e("fillColor","backgroundColor",t)},fgColor:t=>{e("fgColor","color",t)},textColor:t=>{e("textColor","color",t)},borderColor:t=>{e("borderColor","borderColor",t)},strokeColor:t=>{e("strokeColor","borderColor",t)},rotation:t=>{let n=t.detail.rotation;this.setRotation(n),this.annotationStorage.setValue(this.data.id,{rotation:n})}})}_dispatchEventFromSandbox(e,t){let n=this._commonActions;for(let i of Object.keys(t.detail))(e[i]||n[i])?.(t)}_setDefaultPropertiesFromJS(e){if(!this.enableScripting)return;let t=this.annotationStorage.getRawValue(this.data.id);if(!t)return;let n=this._commonActions;for(let[i,a]of Object.entries(t)){let s=n[i];if(s){let o={detail:{[i]:a},target:e};s(o),delete t[i]}}}_createQuadrilaterals(){if(!this.container)return;let{quadPoints:e}=this.data;if(!e)return;let[t,n,i,a]=this.data.rect.map(g=>Math.fround(g));if(e.length===8){let[g,x,y,b]=e.subarray(2,6);if(i===g&&a===x&&t===y&&n===b)return}let{style:s}=this.container,o;if(this.#t){let{borderColor:g,borderWidth:x}=s;s.borderWidth=0,o=["url('data:image/svg+xml;utf8,",'<svg xmlns="http://www.w3.org/2000/svg"',' preserveAspectRatio="none" viewBox="0 0 1 1">',`<g fill="transparent" stroke="${g}" stroke-width="${x}">`],this.container.classList.add("hasBorder")}let c=i-t,u=a-n,{svgFactory:h}=this,f=h.createElement("svg");f.classList.add("quadrilateralsContainer"),f.setAttribute("width",0),f.setAttribute("height",0),f.role="none";let d=h.createElement("defs");f.append(d);let p=h.createElement("clipPath"),m=`clippath_${this.data.id}`;p.setAttribute("id",m),p.setAttribute("clipPathUnits","objectBoundingBox"),d.append(p);for(let g=2,x=e.length;g<x;g+=8){let y=e[g],b=e[g+1],v=e[g+2],_=e[g+3],A=h.createElement("rect"),E=(v-t)/c,T=(a-b)/u,S=(y-v)/c,C=(b-_)/u;A.setAttribute("x",E),A.setAttribute("y",T),A.setAttribute("width",S),A.setAttribute("height",C),p.append(A),o?.push(`<rect vector-effect="non-scaling-stroke" x="${E}" y="${T}" width="${S}" height="${C}"/>`)}this.#t&&(o.push("</g></svg>')"),s.backgroundImage=o.join("")),this.container.append(f),this.container.style.clipPath=`url(#${m})`}_createPopup(e=null){let{data:t}=this,n,i;e?(n={str:e.text},i=e.date):(n=t.contentsObj,i=t.modificationDate);let a=this.#n=new xo({data:{color:t.color,titleObj:t.titleObj,modificationDate:i,contentsObj:n,richText:t.richText,parentRect:t.rect,borderStyle:0,id:`popup_${t.id}`,rotation:t.rotation,noRotate:!0},linkService:this.linkService,parent:this.parent,elements:[this]});this.parent._commentManager||this.parent.div.append(a.render())}get hasPopupElement(){return!!(this.#n||this.popup||this.data.popupRef)}get extraPopupElement(){return this.#n}render(){dt("Abstract method `AnnotationElement.render` called")}_getElementsByName(e,t=null){let n=[];if(this._fieldObjects){let i=this._fieldObjects[e];if(i)for(let{page:a,id:s,exportValues:o}of i){if(a===-1||s===t)continue;let c=typeof o=="string"?o:null,u=document.querySelector(`[data-element-id="${s}"]`);if(u&&!$i.has(u)){Ne(`_getElementsByName - element not allowed: ${s}`);continue}n.push({id:s,exportValue:c,domElement:u})}return n}for(let i of document.getElementsByName(e)){let{exportValue:a}=i,s=i.getAttribute("data-element-id");s!==t&&$i.has(i)&&n.push({id:s,exportValue:a,domElement:i})}return n}show(){this.container&&(this.container.hidden=!1),this.popup?.maybeShow()}hide(){this.container&&(this.container.hidden=!0),this.popup?.forceHide()}getElementsToTriggerPopup(){return this.container}addHighlightArea(){let e=this.getElementsToTriggerPopup();if(Array.isArray(e))for(let t of e)t.classList.add("highlightArea");else e.classList.add("highlightArea")}_editOnDoubleClick(){if(!this._isEditable)return;let{annotationEditorType:e,data:{id:t}}=this;this.container.addEventListener("dblclick",()=>{this.linkService.eventBus?.dispatch("switchannotationeditormode",{source:this,mode:e,editId:t,mustEnterInEditMode:!0})})}get width(){return this.data.rect[2]-this.data.rect[0]}get height(){return this.data.rect[3]-this.data.rect[1]}},t0=class extends Dt{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0}),this.editor=e.editor}render(){return this.container.className="editorAnnotation",this.container}createOrUpdatePopup(){let{editor:e}=this;e.hasComment&&(this._createPopup(e.comment),this.extraPopupElement.popup.renderCommentButton())}get hasCommentButton(){return this.enableComment&&this.editor.hasComment}get commentButtonPosition(){return this.editor.commentButtonPositionInPage}get commentText(){return this.editor.comment.text}set commentText(e){this.editor.comment=e,e||this.removePopup()}get commentData(){return this.editor.getData()}remove(){this.container.remove(),this.container=null,this.removePopup()}},mo=class extends Dt{constructor(e,t=null){super(e,{isRenderable:!0,ignoreBorder:!!t?.ignoreBorder,createQuadrilaterals:!0}),this.isTooltipOnly=e.data.isTooltipOnly}render(){let{data:e,linkService:t}=this,n=document.createElement("a");n.setAttribute("data-element-id",e.id);let i=!1;return e.url?(t.addLinkAttributes(n,e.url,e.newWindow),i=!0):e.action?(this._bindNamedAction(n,e.action,e.overlaidText),i=!0):e.attachment?(this.#t(n,e.attachment,e.overlaidText,e.attachmentDest),i=!0):e.setOCGState?(this.#n(n,e.setOCGState,e.overlaidText),i=!0):e.dest?(this._bindLink(n,e.dest,e.overlaidText),i=!0):(e.actions&&(e.actions.Action||e.actions["Mouse Up"]||e.actions["Mouse Down"])&&this.enableScripting&&this.hasJSActions&&(this._bindJSAction(n,e),i=!0),e.resetForm?(this._bindResetFormAction(n,e.resetForm),i=!0):this.isTooltipOnly&&!i&&(this._bindLink(n,""),i=!0)),this.container.classList.add("linkAnnotation"),i&&this.container.append(n),this.container}#e(){this.container.setAttribute("data-internal-link","")}_bindLink(e,t,n=""){e.href=this.linkService.getDestinationHash(t),e.onclick=()=>(t&&this.linkService.goToDestination(t),!1),(t||t==="")&&this.#e(),n&&(e.title=n)}_bindNamedAction(e,t,n=""){e.href=this.linkService.getAnchorUrl(""),e.onclick=()=>(this.linkService.executeNamedAction(t),!1),n&&(e.title=n),this.#e()}#t(e,t,n="",i=null){e.href=this.linkService.getAnchorUrl(""),t.description?e.title=t.description:n&&(e.title=n),e.onclick=()=>(this.downloadManager?.openOrDownloadData(t.content,t.filename,i),!1),this.#e()}#n(e,t,n=""){e.href=this.linkService.getAnchorUrl(""),e.onclick=()=>(this.linkService.executeSetOCGState(t),!1),n&&(e.title=n),this.#e()}_bindJSAction(e,t){e.href=this.linkService.getAnchorUrl("");let n=new Map([["Action","onclick"],["Mouse Up","onmouseup"],["Mouse Down","onmousedown"]]);for(let i of Object.keys(t.actions)){let a=n.get(i);a&&(e[a]=()=>(this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t.id,name:i}}),!1))}t.overlaidText&&(e.title=t.overlaidText),e.onclick||(e.onclick=()=>!1),this.#e()}_bindResetFormAction(e,t){let n=e.onclick;if(n||(e.href=this.linkService.getAnchorUrl("")),this.#e(),!this._fieldObjects){Ne('_bindResetFormAction - "resetForm" action not supported, ensure that the `fieldObjects` parameter is provided.'),n||(e.onclick=()=>!1);return}e.onclick=()=>{n?.();let{fields:i,refs:a,include:s}=t,o=[];if(i.length!==0||a.length!==0){let h=new Set(a);for(let f of i){let d=this._fieldObjects[f]||[];for(let{id:p}of d)h.add(p)}for(let f of Object.values(this._fieldObjects))for(let d of f)h.has(d.id)===s&&o.push(d)}else for(let h of Object.values(this._fieldObjects))o.push(...h);let c=this.annotationStorage,u=[];for(let h of o){let{id:f}=h;switch(u.push(f),h.type){case"text":{let p=h.defaultValue||"";c.setValue(f,{value:p});break}case"checkbox":case"radiobutton":{let p=h.defaultValue===h.exportValues;c.setValue(f,{value:p});break}case"combobox":case"listbox":{let p=h.defaultValue||"";c.setValue(f,{value:p});break}default:continue}let d=document.querySelector(`[data-element-id="${f}"]`);if(d){if(!$i.has(d)){Ne(`_bindResetFormAction - element not allowed: ${f}`);continue}}else continue;d.dispatchEvent(new Event("resetform"))}return this.enableScripting&&this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:"app",ids:u,name:"ResetForm"}}),!1}}},r0=class extends Dt{constructor(e){super(e,{isRenderable:!0})}render(){this.container.classList.add("textAnnotation");let e=document.createElement("img");return e.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",e.setAttribute("data-l10n-id","pdfjs-text-annotation-type"),e.setAttribute("data-l10n-args",JSON.stringify({type:this.data.name})),!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.append(e),this.container}},$n=class extends Dt{render(){return this.container}showElementAndHideCanvas(e){this.data.hasOwnCanvas&&(e.previousSibling?.nodeName==="CANVAS"&&(e.previousSibling.hidden=!0),e.hidden=!1)}_getKeyModifier(e){return Mt.platform.isMac?e.metaKey:e.ctrlKey}_setEventListener(e,t,n,i,a){n.includes("mouse")?e.addEventListener(n,s=>{this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:i,value:a(s),shift:s.shiftKey,modifier:this._getKeyModifier(s)}})}):e.addEventListener(n,s=>{if(n==="blur"){if(!t.focused||!s.relatedTarget)return;t.focused=!1}else if(n==="focus"){if(t.focused)return;t.focused=!0}a&&this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:i,value:a(s)}})})}_setEventListeners(e,t,n,i){for(let[a,s]of n)(s==="Action"||this.data.actions?.[s])&&((s==="Focus"||s==="Blur")&&(t||={focused:!1}),this._setEventListener(e,t,a,s,i),s==="Focus"&&!this.data.actions?.Blur?this._setEventListener(e,t,"blur","Blur",null):s==="Blur"&&!this.data.actions?.Focus&&this._setEventListener(e,t,"focus","Focus",null))}_setBackgroundColor(e){let t=this.data.backgroundColor||null;e.style.backgroundColor=t===null?"transparent":Re.makeHexColor(t[0],t[1],t[2])}_setTextStyle(e){let t=["left","center","right"],{fontColor:n}=this.data.defaultAppearanceData,i=this.data.defaultAppearanceData.fontSize||SS,a=e.style,s,o=2,c=u=>Math.round(10*u)/10;if(this.data.multiLine){let u=Math.abs(this.data.rect[3]-this.data.rect[1]-o),h=Math.round(u/(Sl*i))||1,f=u/h;s=Math.min(i,c(f/Sl))}else{let u=Math.abs(this.data.rect[3]-this.data.rect[1]-o);s=Math.min(i,c(u/Sl))}a.fontSize=`calc(${s}px * var(--total-scale-factor))`,a.color=Re.makeHexColor(n[0],n[1],n[2]),this.data.textAlignment!==null&&(a.textAlign=t[this.data.textAlignment])}_setRequired(e,t){t?e.setAttribute("required",!0):e.removeAttribute("required"),e.setAttribute("aria-required",t)}},n0=class extends $n{constructor(e){let t=e.renderForms||e.data.hasOwnCanvas||!e.data.hasAppearance&&!!e.data.fieldValue;super(e,{isRenderable:t})}setPropertyOnSiblings(e,t,n,i){let a=this.annotationStorage;for(let s of this._getElementsByName(e.name,e.id))s.domElement&&(s.domElement[t]=n),a.setValue(s.id,{[i]:n})}render(){let e=this.annotationStorage,t=this.data.id;this.container.classList.add("textWidgetAnnotation");let n=null;if(this.renderForms){let i=e.getValue(t,{value:this.data.fieldValue}),a=i.value||"",s=e.getValue(t,{charLimit:this.data.maxLen}).charLimit;s&&a.length>s&&(a=a.slice(0,s));let o=i.formattedValue||this.data.textContent?.join(`
|
|
223
|
+
`&&E!=="\f"&&E!=="\r")break}return _},y=function(v,_,A){var E=v.length;E<4&&(v+=E===2?"AA":"A");var T=(_[g(v,0)]<<18)+(_[g(v,1)]<<12)+(_[g(v,2)]<<6)+_[g(v,3)],S=[T>>16&255,T>>8&255,T&255];if(E===2){if(A&&S[1]!==0)throw new p("Extra bits");return[S[0]]}if(E===3){if(A&&S[2]!==0)throw new p("Extra bits");return[S[0],S[1]]}return S},b=function(v,_,A){for(var E=_.length,T=0;T<E;T++)v[A+T]=_[T];return A+E};r.exports=function(v,_,A,E){s(v),a(_);var T=u(_)==="base64"?f:d,S=_?_.lastChunkHandling:void 0;if(S===void 0&&(S="loose"),S!=="loose"&&S!=="strict"&&S!=="stop-before-partial")throw new m("Incorrect `lastChunkHandling` option");A&&h(A.buffer);var C=v.length,F=A||[],k=0,D=0,B="",q=0;if(E)for(;;){if(q=x(v,q),q===C){if(B.length>0){if(S==="stop-before-partial")break;if(S==="loose"){if(B.length===1)throw new p("Malformed padding: exactly one additional character");k=b(F,y(B,T,!1),k)}else throw new p("Missing padding")}D=C;break}var j=g(v,q);if(++q,j==="="){if(B.length<2)throw new p("Padding is too early");if(q=x(v,q),B.length===2){if(q===C){if(S==="stop-before-partial")break;throw new p("Malformed padding: only one =")}g(v,q)==="="&&(++q,q=x(v,q))}if(q<C)throw new p("Unexpected character after padding");k=b(F,y(B,T,S==="strict"),k),D=C;break}if(!o(T,j))throw new p("Unexpected character");var U=E-k;if(U===1&&B.length===2||U===2&&B.length===3||(B+=j,B.length===4&&(k=b(F,y(B,T,!1),k),B="",D=q,k===E)))break}return{bytes:F,read:D,written:k}}}),9286:((r,e,t)=>{var n=t(4402),i=t(8469),a=n.Set,s=n.add;r.exports=function(o){var c=new a;return i(o,function(u){s(c,u)}),c}}),9297:((r,e,t)=>{var n=t(9504),i=t(8981),a=n({}.hasOwnProperty);r.exports=Object.hasOwn||function(o,c){return a(i(o),c)}}),9306:((r,e,t)=>{var n=t(4901),i=t(6823),a=TypeError;r.exports=function(s){if(n(s))return s;throw new a(i(s)+" is not a function")}}),9314:((r,e,t)=>{var n=t(6518),i=t(9565),a=t(8551),s=t(1767),o=t(4149),c=t(9590),u=t(9539),h=t(9462),f=t(684),d=t(4549),p=t(6395),m=!p&&!f("drop",0),g=!p&&!m&&d("drop",RangeError),x=p||m||g,y=h(function(){for(var b=this.iterator,v=this.next,_,A;this.remaining;)if(this.remaining--,_=a(i(v,b)),A=this.done=!!_.done,A)return;if(_=a(i(v,b)),A=this.done=!!_.done,!A)return _.value});n({target:"Iterator",proto:!0,real:!0,forced:x},{drop:function(v){a(this);var _;try{_=c(o(+v))}catch(A){u(this,"throw",A)}return g?i(g,this,_):new y(s(this),{remaining:_})}})}),9429:((r,e,t)=>{var n=t(4576),i=t(6193);r.exports=function(a){if(i){try{return n.process.getBuiltinModule(a)}catch{}try{return Function('return require("'+a+'")')()}catch{}}}}),9432:((r,e,t)=>{t(5213)}),9433:((r,e,t)=>{var n=t(4576),i=Object.defineProperty;r.exports=function(a,s){try{i(n,a,{value:s,configurable:!0,writable:!0})}catch{n[a]=s}return s}}),9462:((r,e,t)=>{var n=t(9565),i=t(2360),a=t(6699),s=t(6279),o=t(8227),c=t(1181),u=t(5966),h=t(7657).IteratorPrototype,f=t(2529),d=t(9539),p=t(1385),m=o("toStringTag"),g="IteratorHelper",x="WrapForValidIterator",y="normal",b="throw",v=c.set,_=function(T){var S=c.getterFor(T?x:g);return s(i(h),{next:function(){var F=S(this);if(T)return F.nextHandler();if(F.done)return f(void 0,!0);try{var k=F.nextHandler();return F.returnHandlerResult?k:f(k,F.done)}catch(D){throw F.done=!0,D}},return:function(){var C=S(this),F=C.iterator;if(C.done=!0,T){var k=u(F,"return");return k?n(k,F):f(void 0,!0)}if(C.inner)try{d(C.inner.iterator,y)}catch(D){return d(F,b,D)}if(C.openIters)try{p(C.openIters,y)}catch(D){return d(F,b,D)}return F&&d(F,y),f(void 0,!0)}})},A=_(!0),E=_(!1);a(E,m,"Iterator Helper"),r.exports=function(T,S,C){var F=function(D,B){B?(B.iterator=D.iterator,B.next=D.next):B=D,B.type=S?x:g,B.returnHandlerResult=!!C,B.nextHandler=T,B.counter=0,B.done=!1,v(this,B)};return F.prototype=S?A:E,F}}),9486:((r,e,t)=>{var n=t(6518),i=t(4576),a=t(9504),s=t(3972),o=t(4154),c=t(5169),u=t(2804),h=t(944),f=u.i2c,d=u.i2cUrl,p=a("".charAt),m=i.Uint8Array,g=!m||!m.prototype.toBase64||!(function(){try{var x=new m;x.toBase64(null)}catch{return!0}})();m&&n({target:"Uint8Array",proto:!0,forced:g},{toBase64:function(){var y=o(this),b=arguments.length?s(arguments[0]):void 0,v=h(b)==="base64"?f:d,_=!!b&&!!b.omitPadding;c(this.buffer);for(var A="",E=0,T=y.length,S,C=function(F){return p(v,S>>6*F&63)};E+2<T;E+=3)S=(y[E]<<16)+(y[E+1]<<8)+y[E+2],A+=C(3)+C(2)+C(1)+C(0);return E+2===T?(S=(y[E]<<16)+(y[E+1]<<8),A+=C(3)+C(2)+C(1)+(_?"":"=")):E+1===T&&(S=y[E]<<16,A+=C(3)+C(2)+(_?"":"==")),A}})}),9504:((r,e,t)=>{var n=t(616),i=Function.prototype,a=i.call,s=n&&i.bind.bind(a,a);r.exports=n?s:function(o){return function(){return a.apply(o,arguments)}}}),9519:((r,e,t)=>{var n=t(4576),i=t(2839),a=n.process,s=n.Deno,o=a&&a.versions||s&&s.version,c=o&&o.v8,u,h;c&&(u=c.split("."),h=u[0]>0&&u[0]<4?1:+(u[0]+u[1])),!h&&i&&(u=i.match(/Edge\/(\d+)/),(!u||u[1]>=74)&&(u=i.match(/Chrome\/(\d+)/),u&&(h=+u[1]))),r.exports=h}),9539:((r,e,t)=>{var n=t(9565),i=t(8551),a=t(5966);r.exports=function(s,o,c){var u,h;i(s);try{if(u=a(s,"return"),!u){if(o==="throw")throw c;return c}u=n(u,s)}catch(f){h=!0,u=f}if(o==="throw")throw c;if(h)throw u;return i(u),c}}),9565:((r,e,t)=>{var n=t(616),i=Function.prototype.call;r.exports=n?i.bind(i):function(){return i.apply(i,arguments)}}),9577:((r,e,t)=>{var n=t(9928),i=t(4644),a=t(1108),s=t(1291),o=t(5854),c=i.aTypedArray,u=i.getTypedArrayConstructor,h=i.exportTypedArrayMethod,f=(function(){try{new Int8Array(1).with(2,{valueOf:function(){throw 8}})}catch(p){return p===8}})(),d=f&&(function(){try{new Int8Array(1).with(-.5,1)}catch{return!0}})();h("with",function(p,m){var g=c(this),x=s(p),y=a(g)?o(m):+m;return n(g,u(g),x,y)},!f||d)}),9590:((r,e,t)=>{var n=t(1291),i=RangeError;r.exports=function(a){var s=n(a);if(s<0)throw new i("The argument can't be less than 0");return s}}),9617:((r,e,t)=>{var n=t(5397),i=t(5610),a=t(6198),s=function(o){return function(c,u,h){var f=n(c),d=a(f);if(d===0)return!o&&-1;var p=i(h,d),m;if(o&&u!==u){for(;d>p;)if(m=f[p++],m!==m)return!0}else for(;d>p;p++)if((o||p in f)&&f[p]===u)return o||p||0;return!o&&-1}};r.exports={includes:s(!0),indexOf:s(!1)}}),9631:((r,e,t)=>{t(9486)}),9797:((r,e,t)=>{t(4226)}),9835:(r=>{r.exports=function(e){try{var t=new Set,n={size:0,has:function(){return!0},keys:function(){return Object.defineProperty({},"next",{get:function(){return t.clear(),t.add(4),function(){return{done:!0}}}})}},i=t[e](n);return i.size===1&&i.values().next().value===4}catch{return!1}}}),9928:((r,e,t)=>{var n=t(6198),i=t(1291),a=RangeError;r.exports=function(s,o,c,u){var h=n(s),f=i(c),d=f<0?h+f:f;if(d>=h||d<0)throw new a("Incorrect index");for(var p=new o(h),m=0;m<h;m++)p[m]=m===d?u:s[m];return p}})},L1={};function ze(r){var e=L1[r];if(e!==void 0)return e.exports;var t=L1[r]={exports:{}};return WA[r].call(t.exports,t,t.exports,ze),t.exports}ze.d=(r,e)=>{for(var t in e)ze.o(e,t)&&!ze.o(r,t)&&Object.defineProperty(r,t,{enumerable:!0,get:e[t]})};ze.o=(r,e)=>Object.prototype.hasOwnProperty.call(r,e);var OB=ze(4114),BB=ze(6573),NB=ze(8100),PB=ze(7936),LB=ze(8111),MB=ze(8237),WB=ze(1689),HB=ze(9577),VB=ze(4235),zB=ze(9432),jB=ze(1549),GB=ze(9797),XB=ze(9631),$B=ze(5623),qB=ze(4979),YB=ze(5781),yr=typeof process=="object"&&process+""=="[object process]"&&!process.versions.nw&&!(process.versions.electron&&process.type&&process.type!=="browser"),Zf=[.001,0,0,.001,0,0],Sl=1.35,HA=.35,KB=HA/Sl,Vr={ANY:1,DISPLAY:2,PRINT:4,SAVE:8,ANNOTATIONS_FORMS:16,ANNOTATIONS_STORAGE:32,ANNOTATIONS_DISABLE:64,IS_EDITING:128,OPLIST:256},pi={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3},io="pdfjs_internal_editor_",Ve={DISABLE:-1,NONE:0,FREETEXT:3,HIGHLIGHT:9,STAMP:13,INK:15,POPUP:16,SIGNATURE:101,COMMENT:102},qe={RESIZE:1,CREATE:2,FREETEXT_SIZE:11,FREETEXT_COLOR:12,FREETEXT_OPACITY:13,INK_COLOR:21,INK_THICKNESS:22,INK_OPACITY:23,HIGHLIGHT_COLOR:31,HIGHLIGHT_THICKNESS:32,HIGHLIGHT_FREE:33,HIGHLIGHT_SHOW_ALL:34,DRAW_STEP:41},VA={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048},Kt={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4},Cl={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3},Rt={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26};var Na={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5};var hu={ERRORS:0,WARNINGS:1,INFOS:5},ao={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotation:80,endAnnotation:81,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91,setStrokeTransparent:92,setFillTransparent:93,rawFillPath:94},vl={moveTo:0,lineTo:1,curveTo:2,closePath:3},zA={NEED_PASSWORD:1,INCORRECT_PASSWORD:2},fu=hu.WARNINGS;function jA(r){Number.isInteger(r)&&(fu=r)}function GA(){return fu}function du(r){fu>=hu.INFOS&&console.info(`Info: ${r}`)}function Ne(r){fu>=hu.WARNINGS&&console.warn(`Warning: ${r}`)}function dt(r){throw new Error(r)}function Ye(r,e){r||dt(e)}function XA(r){switch(r?.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}function ix(r,e=null,t=null){if(!r)return null;if(t&&typeof r=="string"&&(t.addDefaultProtocol&&r.startsWith("www.")&&r.match(/\./g)?.length>=2&&(r=`http://${r}`),t.tryConvertEncoding))try{r=KA(r)}catch{}let n=e?URL.parse(r,e):URL.parse(r);return XA(n)?n:null}function ax(r,e,t=!1){let n=URL.parse(r);return n?(n.hash=e,n.href):t&&ix(r,"http://example.com")?r.split("#",1)[0]+`${e?`#${e}`:""}`:""}function Ge(r,e,t,n=!1){return Object.defineProperty(r,e,{value:t,enumerable:!n,configurable:!0,writable:!1}),t}var Yi=(function(){function e(t,n){this.message=t,this.name=n}return e.prototype=new Error,e.constructor=e,e})(),Fl=class extends Yi{constructor(e,t){super(e,"PasswordException"),this.code=t}},no=class extends Yi{constructor(e,t){super(e,"UnknownErrorException"),this.details=t}},so=class extends Yi{constructor(e){super(e,"InvalidPDFException")}},Ha=class extends Yi{constructor(e,t,n){super(e,"ResponseException"),this.status=t,this.missing=n}},Jf=class extends Yi{constructor(e){super(e,"FormatError")}},Cn=class extends Yi{constructor(e){super(e,"AbortException")}};function sx(r){(typeof r!="object"||r?.length===void 0)&&dt("Invalid argument for bytesToString");let e=r.length,t=8192;if(e<t)return String.fromCharCode.apply(null,r);let n=[];for(let i=0;i<e;i+=t){let a=Math.min(i+t,e),s=r.subarray(i,a);n.push(String.fromCharCode.apply(null,s))}return n.join("")}function _o(r){typeof r!="string"&&dt("Invalid argument for stringToBytes");let e=r.length,t=new Uint8Array(e);for(let n=0;n<e;++n)t[n]=r.charCodeAt(n)&255;return t}function $A(r){return String.fromCharCode(r>>24&255,r>>16&255,r>>8&255,r&255)}function qA(){let r=new Uint8Array(4);return r[0]=1,new Uint32Array(r.buffer,0,1)[0]===1}function YA(){try{return new Function(""),!0}catch{return!1}}var Mt=class{static get isLittleEndian(){return Ge(this,"isLittleEndian",qA())}static get isEvalSupported(){return Ge(this,"isEvalSupported",YA())}static get isOffscreenCanvasSupported(){return Ge(this,"isOffscreenCanvasSupported",typeof OffscreenCanvas<"u")}static get isImageDecoderSupported(){return Ge(this,"isImageDecoderSupported",typeof ImageDecoder<"u")}static get platform(){let{platform:e,userAgent:t}=navigator;return Ge(this,"platform",{isAndroid:t.includes("Android"),isLinux:e.includes("Linux"),isMac:e.includes("Mac"),isWindows:e.includes("Win"),isFirefox:t.includes("Firefox")})}static get isCSSRoundSupported(){return Ge(this,"isCSSRoundSupported",globalThis.CSS?.supports?.("width: round(1.5px, 1px)"))}},Gf=Array.from(Array(256).keys(),r=>r.toString(16).padStart(2,"0")),Re=class{static makeHexColor(e,t,n){return`#${Gf[e]}${Gf[t]}${Gf[n]}`}static domMatrixToTransform(e){return[e.a,e.b,e.c,e.d,e.e,e.f]}static scaleMinMax(e,t){let n;e[0]?(e[0]<0&&(n=t[0],t[0]=t[2],t[2]=n),t[0]*=e[0],t[2]*=e[0],e[3]<0&&(n=t[1],t[1]=t[3],t[3]=n),t[1]*=e[3],t[3]*=e[3]):(n=t[0],t[0]=t[1],t[1]=n,n=t[2],t[2]=t[3],t[3]=n,e[1]<0&&(n=t[1],t[1]=t[3],t[3]=n),t[1]*=e[1],t[3]*=e[1],e[2]<0&&(n=t[0],t[0]=t[2],t[2]=n),t[0]*=e[2],t[2]*=e[2]),t[0]+=e[4],t[1]+=e[5],t[2]+=e[4],t[3]+=e[5]}static transform(e,t){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]]}static multiplyByDOMMatrix(e,t){return[e[0]*t.a+e[2]*t.b,e[1]*t.a+e[3]*t.b,e[0]*t.c+e[2]*t.d,e[1]*t.c+e[3]*t.d,e[0]*t.e+e[2]*t.f+e[4],e[1]*t.e+e[3]*t.f+e[5]]}static applyTransform(e,t,n=0){let i=e[n],a=e[n+1];e[n]=i*t[0]+a*t[2]+t[4],e[n+1]=i*t[1]+a*t[3]+t[5]}static applyTransformToBezier(e,t,n=0){let i=t[0],a=t[1],s=t[2],o=t[3],c=t[4],u=t[5];for(let h=0;h<6;h+=2){let f=e[n+h],d=e[n+h+1];e[n+h]=f*i+d*s+c,e[n+h+1]=f*a+d*o+u}}static applyInverseTransform(e,t){let n=e[0],i=e[1],a=t[0]*t[3]-t[1]*t[2];e[0]=(n*t[3]-i*t[2]+t[2]*t[5]-t[4]*t[3])/a,e[1]=(-n*t[1]+i*t[0]+t[4]*t[1]-t[5]*t[0])/a}static axialAlignedBoundingBox(e,t,n){let i=t[0],a=t[1],s=t[2],o=t[3],c=t[4],u=t[5],h=e[0],f=e[1],d=e[2],p=e[3],m=i*h+c,g=m,x=i*d+c,y=x,b=o*f+u,v=b,_=o*p+u,A=_;if(a!==0||s!==0){let E=a*h,T=a*d,S=s*f,C=s*p;m+=S,y+=S,x+=C,g+=C,b+=E,A+=E,_+=T,v+=T}n[0]=Math.min(n[0],m,x,g,y),n[1]=Math.min(n[1],b,_,v,A),n[2]=Math.max(n[2],m,x,g,y),n[3]=Math.max(n[3],b,_,v,A)}static inverseTransform(e){let t=e[0]*e[3]-e[1]*e[2];return[e[3]/t,-e[1]/t,-e[2]/t,e[0]/t,(e[2]*e[5]-e[4]*e[3])/t,(e[4]*e[1]-e[5]*e[0])/t]}static singularValueDecompose2dScale(e,t){let n=e[0],i=e[1],a=e[2],s=e[3],o=n**2+i**2,c=n*a+i*s,u=a**2+s**2,h=(o+u)/2,f=Math.sqrt(h**2-(o*u-c**2));t[0]=Math.sqrt(h+f||1),t[1]=Math.sqrt(h-f||1)}static normalizeRect(e){let t=e.slice(0);return e[0]>e[2]&&(t[0]=e[2],t[2]=e[0]),e[1]>e[3]&&(t[1]=e[3],t[3]=e[1]),t}static intersect(e,t){let n=Math.max(Math.min(e[0],e[2]),Math.min(t[0],t[2])),i=Math.min(Math.max(e[0],e[2]),Math.max(t[0],t[2]));if(n>i)return null;let a=Math.max(Math.min(e[1],e[3]),Math.min(t[1],t[3])),s=Math.min(Math.max(e[1],e[3]),Math.max(t[1],t[3]));return a>s?null:[n,a,i,s]}static pointBoundingBox(e,t,n){n[0]=Math.min(n[0],e),n[1]=Math.min(n[1],t),n[2]=Math.max(n[2],e),n[3]=Math.max(n[3],t)}static rectBoundingBox(e,t,n,i,a){a[0]=Math.min(a[0],e,n),a[1]=Math.min(a[1],t,i),a[2]=Math.max(a[2],e,n),a[3]=Math.max(a[3],t,i)}static#e(e,t,n,i,a,s,o,c,u,h){if(u<=0||u>=1)return;let f=1-u,d=u*u,p=d*u,m=f*(f*(f*e+3*u*t)+3*d*n)+p*i,g=f*(f*(f*a+3*u*s)+3*d*o)+p*c;h[0]=Math.min(h[0],m),h[1]=Math.min(h[1],g),h[2]=Math.max(h[2],m),h[3]=Math.max(h[3],g)}static#t(e,t,n,i,a,s,o,c,u,h,f,d){if(Math.abs(u)<1e-12){Math.abs(h)>=1e-12&&this.#e(e,t,n,i,a,s,o,c,-f/h,d);return}let p=h**2-4*f*u;if(p<0)return;let m=Math.sqrt(p),g=2*u;this.#e(e,t,n,i,a,s,o,c,(-h+m)/g,d),this.#e(e,t,n,i,a,s,o,c,(-h-m)/g,d)}static bezierBoundingBox(e,t,n,i,a,s,o,c,u){u[0]=Math.min(u[0],e,o),u[1]=Math.min(u[1],t,c),u[2]=Math.max(u[2],e,o),u[3]=Math.max(u[3],t,c),this.#t(e,n,a,o,t,i,s,c,3*(-e+3*(n-a)+o),6*(e-2*n+a),3*(n-e),u),this.#t(e,n,a,o,t,i,s,c,3*(-t+3*(i-s)+c),6*(t-2*i+s),3*(i-t),u)}};function KA(r){return decodeURIComponent(escape(r))}var Xf=null,M1=null;function ZA(r){return Xf||(Xf=/([\u00a0\u00b5\u037e\u0eb3\u2000-\u200a\u202f\u2126\ufb00-\ufb04\ufb06\ufb20-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufba1\ufba4-\ufba9\ufbae-\ufbb1\ufbd3-\ufbdc\ufbde-\ufbe7\ufbea-\ufbf8\ufbfc-\ufbfd\ufc00-\ufc5d\ufc64-\ufcf1\ufcf5-\ufd3d\ufd88\ufdf4\ufdfa-\ufdfb\ufe71\ufe77\ufe79\ufe7b\ufe7d]+)|(\ufb05+)/gu,M1=new Map([["\uFB05","\u017Ft"]])),r.replaceAll(Xf,(e,t,n)=>t?t.normalize("NFKC"):M1.get(n))}function ox(){if(typeof crypto.randomUUID=="function")return crypto.randomUUID();let r=new Uint8Array(32);return crypto.getRandomValues(r),sx(r)}var k0="pdfjs_internal_id_";function JA(r,e,t){if(!Array.isArray(t)||t.length<2)return!1;let[n,i,...a]=t;if(!r(n)&&!Number.isInteger(n)||!e(i))return!1;let s=a.length,o=!0;switch(i.name){case"XYZ":if(s<2||s>3)return!1;break;case"Fit":case"FitB":return s===0;case"FitH":case"FitBH":case"FitV":case"FitBV":if(s>1)return!1;break;case"FitR":if(s!==4)return!1;o=!1;break;default:return!1}for(let c of a)if(!(typeof c=="number"||o&&c===null))return!1;return!0}function br(r,e,t){return Math.min(Math.max(r,e),t)}function cx(r){return Uint8Array.prototype.toBase64?r.toBase64():btoa(sx(r))}function QA(r){return Uint8Array.fromBase64?Uint8Array.fromBase64(r):_o(atob(r))}typeof Math.sumPrecise!="function"&&(Math.sumPrecise=function(r){return r.reduce((e,t)=>e+t,0)});typeof AbortSignal.any!="function"&&(AbortSignal.any=function(r){let e=new AbortController,{signal:t}=e;for(let n of r)if(n.aborted)return e.abort(n.reason),t;for(let n of r)n.addEventListener("abort",()=>{e.abort(n.reason)},{signal:t});return t});var ZB=ze(1701),JB=ze(4603),QB=ze(7566),eN=ze(8721),oo=class r{static textContent(e){let t=[],n={items:t,styles:Object.create(null)};function i(a){if(!a)return;let s=null,o=a.name;if(o==="#text")s=a.value;else if(r.shouldBuildText(o))a?.attributes?.textContent?s=a.attributes.textContent:a.value&&(s=a.value);else return;if(s!==null&&t.push({str:s}),!!a.children)for(let c of a.children)i(c)}return i(e),n}static shouldBuildText(e){return!(e==="textarea"||e==="input"||e==="option"||e==="select")}},kl=class{static setupStorage(e,t,n,i,a){let s=i.getValue(t,{value:null});switch(n.name){case"textarea":if(s.value!==null&&(e.textContent=s.value),a==="print")break;e.addEventListener("input",o=>{i.setValue(t,{value:o.target.value})});break;case"input":if(n.attributes.type==="radio"||n.attributes.type==="checkbox"){if(s.value===n.attributes.xfaOn?e.setAttribute("checked",!0):s.value===n.attributes.xfaOff&&e.removeAttribute("checked"),a==="print")break;e.addEventListener("change",o=>{i.setValue(t,{value:o.target.checked?o.target.getAttribute("xfaOn"):o.target.getAttribute("xfaOff")})})}else{if(s.value!==null&&e.setAttribute("value",s.value),a==="print")break;e.addEventListener("input",o=>{i.setValue(t,{value:o.target.value})})}break;case"select":if(s.value!==null){e.setAttribute("value",s.value);for(let o of n.children)o.attributes.value===s.value?o.attributes.selected=!0:o.attributes.hasOwnProperty("selected")&&delete o.attributes.selected}e.addEventListener("input",o=>{let c=o.target.options,u=c.selectedIndex===-1?"":c[c.selectedIndex].value;i.setValue(t,{value:u})});break}}static setAttributes({html:e,element:t,storage:n=null,intent:i,linkService:a}){let{attributes:s}=t,o=e instanceof HTMLAnchorElement;s.type==="radio"&&(s.name=`${s.name}-${i}`);for(let[c,u]of Object.entries(s))if(u!=null)switch(c){case"class":u.length&&e.setAttribute(c,u.join(" "));break;case"dataId":break;case"id":e.setAttribute("data-element-id",u);break;case"style":Object.assign(e.style,u);break;case"textContent":e.textContent=u;break;default:(!o||c!=="href"&&c!=="newWindow")&&e.setAttribute(c,u)}o&&a.addLinkAttributes(e,s.href,s.newWindow),n&&s.dataId&&this.setupStorage(e,s.dataId,t,n)}static render(e){let t=e.annotationStorage,n=e.linkService,i=e.xfaHtml,a=e.intent||"display",s=document.createElement(i.name);i.attributes&&this.setAttributes({html:s,element:i,intent:a,linkService:n});let o=a!=="richText",c=e.div;if(c.append(s),e.viewport){let f=`matrix(${e.viewport.transform.join(",")})`;c.style.transform=f}o&&c.setAttribute("class","xfaLayer xfaFont");let u=[];if(i.children.length===0){if(i.value){let f=document.createTextNode(i.value);s.append(f),o&&oo.shouldBuildText(i.name)&&u.push(f)}return{textDivs:u}}let h=[[i,-1,s]];for(;h.length>0;){let[f,d,p]=h.at(-1);if(d+1===f.children.length){h.pop();continue}let m=f.children[++h.at(-1)[1]];if(m===null)continue;let{name:g}=m;if(g==="#text"){let y=document.createTextNode(m.value);u.push(y),p.append(y);continue}let x=m?.attributes?.xmlns?document.createElementNS(m.attributes.xmlns,g):document.createElement(g);if(p.append(x),m.attributes&&this.setAttributes({html:x,element:m,storage:t,intent:a,linkService:n}),m.children?.length>0)h.push([m,-1,x]);else if(m.value){let y=document.createTextNode(m.value);o&&oo.shouldBuildText(g)&&u.push(y),x.append(y)}}for(let f of c.querySelectorAll(".xfaNonInteractive input, .xfaNonInteractive textarea"))f.setAttribute("readOnly",!0);return{textDivs:u}}static update(e){let t=`matrix(${e.viewport.transform.join(",")})`;e.div.style.transform=t,e.div.hidden=!1}},jn="http://www.w3.org/2000/svg",mi=class{static CSS=96;static PDF=72;static PDF_TO_CSS_UNITS=this.CSS/this.PDF};async function Do(r,e="text"){if(ro(r,document.baseURI)){let t=await fetch(r);if(!t.ok)throw new Error(t.statusText);switch(e){case"arraybuffer":return t.arrayBuffer();case"blob":return t.blob();case"json":return t.json()}return t.text()}return new Promise((t,n)=>{let i=new XMLHttpRequest;i.open("GET",r,!0),i.responseType=e,i.onreadystatechange=()=>{if(i.readyState===XMLHttpRequest.DONE){if(i.status===200||i.status===0){switch(e){case"arraybuffer":case"blob":case"json":t(i.response);return}t(i.responseText);return}n(new Error(i.statusText))}},i.send(null)})}var co=class r{constructor({viewBox:e,userUnit:t,scale:n,rotation:i,offsetX:a=0,offsetY:s=0,dontFlip:o=!1}){this.viewBox=e,this.userUnit=t,this.scale=n,this.rotation=i,this.offsetX=a,this.offsetY=s,n*=t;let c=(e[2]+e[0])/2,u=(e[3]+e[1])/2,h,f,d,p;switch(i%=360,i<0&&(i+=360),i){case 180:h=-1,f=0,d=0,p=1;break;case 90:h=0,f=1,d=1,p=0;break;case 270:h=0,f=-1,d=-1,p=0;break;case 0:h=1,f=0,d=0,p=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}o&&(d=-d,p=-p);let m,g,x,y;h===0?(m=Math.abs(u-e[1])*n+a,g=Math.abs(c-e[0])*n+s,x=(e[3]-e[1])*n,y=(e[2]-e[0])*n):(m=Math.abs(c-e[0])*n+a,g=Math.abs(u-e[1])*n+s,x=(e[2]-e[0])*n,y=(e[3]-e[1])*n),this.transform=[h*n,f*n,d*n,p*n,m-h*n*c-d*n*u,g-f*n*c-p*n*u],this.width=x,this.height=y}get rawDims(){let e=this.viewBox;return Ge(this,"rawDims",{pageWidth:e[2]-e[0],pageHeight:e[3]-e[1],pageX:e[0],pageY:e[1]})}clone({scale:e=this.scale,rotation:t=this.rotation,offsetX:n=this.offsetX,offsetY:i=this.offsetY,dontFlip:a=!1}={}){return new r({viewBox:this.viewBox.slice(),userUnit:this.userUnit,scale:e,rotation:t,offsetX:n,offsetY:i,dontFlip:a})}convertToViewportPoint(e,t){let n=[e,t];return Re.applyTransform(n,this.transform),n}convertToViewportRectangle(e){let t=[e[0],e[1]];Re.applyTransform(t,this.transform);let n=[e[2],e[3]];return Re.applyTransform(n,this.transform),[t[0],t[1],n[0],n[1]]}convertToPdfPoint(e,t){let n=[e,t];return Re.applyInverseTransform(n,this.transform),n}},lo=class extends Yi{constructor(e,t=0){super(e,"RenderingCancelledException"),this.extraDelay=t}};function pu(r){let e=r.length,t=0;for(;t<e&&r[t].trim()==="";)t++;return r.substring(t,t+5).toLowerCase()==="data:"}function U0(r){return typeof r=="string"&&/\.pdf$/i.test(r)}function eS(r){return[r]=r.split(/[#?]/,1),r.substring(r.lastIndexOf("/")+1)}function tS(r,e="document.pdf"){if(typeof r!="string")return e;if(pu(r))return Ne('getPdfFilenameFromUrl: ignore "data:"-URL for performance reasons.'),e;let n=(o=>{try{return new URL(o)}catch{try{return new URL(decodeURIComponent(o))}catch{try{return new URL(o,"https://foo.bar")}catch{try{return new URL(decodeURIComponent(o),"https://foo.bar")}catch{return null}}}}})(r);if(!n)return e;let i=o=>{try{let c=decodeURIComponent(o);return c.includes("/")?(c=c.split("/").at(-1),c.test(/^\.pdf$/i)?c:o):c}catch{return o}},a=/\.pdf$/i,s=n.pathname.split("/").at(-1);if(a.test(s))return i(s);if(n.searchParams.size>0){let o=Array.from(n.searchParams.values()).reverse();for(let u of o)if(a.test(u))return i(u);let c=Array.from(n.searchParams.keys()).reverse();for(let u of c)if(a.test(u))return i(u)}if(n.hash){let c=/[^/?#=]+\.pdf\b(?!.*\.pdf\b)/i.exec(n.hash);if(c)return i(c[0])}return e}var Ul=class{started=Object.create(null);times=[];time(e){e in this.started&&Ne(`Timer is already running for ${e}`),this.started[e]=Date.now()}timeEnd(e){e in this.started||Ne(`Timer has not been started for ${e}`),this.times.push({name:e,start:this.started[e],end:Date.now()}),delete this.started[e]}toString(){let e=[],t=0;for(let{name:n}of this.times)t=Math.max(n.length,t);for(let{name:n,start:i,end:a}of this.times)e.push(`${n.padEnd(t)} ${a-i}ms
|
|
224
|
+
`);return e.join("")}};function ro(r,e){let t=e?URL.parse(r,e):URL.parse(r);return t?.protocol==="http:"||t?.protocol==="https:"}function en(r){r.preventDefault()}function Tt(r){r.preventDefault(),r.stopPropagation()}function rS(r){console.log("Deprecated API usage: "+r)}var uo=class{static#e;static toDateObject(e){if(e instanceof Date)return e;if(!e||typeof e!="string")return null;this.#e||=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?");let t=this.#e.exec(e);if(!t)return null;let n=parseInt(t[1],10),i=parseInt(t[2],10);i=i>=1&&i<=12?i-1:0;let a=parseInt(t[3],10);a=a>=1&&a<=31?a:1;let s=parseInt(t[4],10);s=s>=0&&s<=23?s:0;let o=parseInt(t[5],10);o=o>=0&&o<=59?o:0;let c=parseInt(t[6],10);c=c>=0&&c<=59?c:0;let u=t[7]||"Z",h=parseInt(t[8],10);h=h>=0&&h<=23?h:0;let f=parseInt(t[9],10)||0;return f=f>=0&&f<=59?f:0,u==="-"?(s+=h,o+=f):u==="+"&&(s-=h,o-=f),new Date(Date.UTC(n,i,a,s,o,c))}};function nS(r,{scale:e=1,rotation:t=0}){let{width:n,height:i}=r.attributes.style,a=[0,0,parseInt(n),parseInt(i)];return new co({viewBox:a,userUnit:1,scale:e,rotation:t})}function To(r){if(r.startsWith("#")){let e=parseInt(r.slice(1),16);return[(e&16711680)>>16,(e&65280)>>8,e&255]}return r.startsWith("rgb(")?r.slice(4,-1).split(",").map(e=>parseInt(e)):r.startsWith("rgba(")?r.slice(5,-1).split(",").map(e=>parseInt(e)).slice(0,3):(Ne(`Not a valid color format: "${r}"`),[0,0,0])}function iS(r){let e=document.createElement("span");e.style.visibility="hidden",e.style.colorScheme="only light",document.body.append(e);for(let t of r.keys()){e.style.color=t;let n=window.getComputedStyle(e).color;r.set(t,To(n))}e.remove()}function _t(r){let{a:e,b:t,c:n,d:i,e:a,f:s}=r.getTransform();return[e,t,n,i,a,s]}function An(r){let{a:e,b:t,c:n,d:i,e:a,f:s}=r.getTransform().invertSelf();return[e,t,n,i,a,s]}function ji(r,e,t=!1,n=!0){if(e instanceof co){let{pageWidth:i,pageHeight:a}=e.rawDims,{style:s}=r,o=Mt.isCSSRoundSupported,c=`var(--total-scale-factor) * ${i}px`,u=`var(--total-scale-factor) * ${a}px`,h=o?`round(down, ${c}, var(--scale-round-x))`:`calc(${c})`,f=o?`round(down, ${u}, var(--scale-round-y))`:`calc(${u})`;!t||e.rotation%180===0?(s.width=h,s.height=f):(s.width=f,s.height=h)}n&&r.setAttribute("data-main-rotation",e.rotation)}var Xn=class r{constructor(){let{pixelRatio:e}=r;this.sx=e,this.sy=e}get scaled(){return this.sx!==1||this.sy!==1}get symmetric(){return this.sx===this.sy}limitCanvas(e,t,n,i,a=-1){let s=1/0,o=1/0,c=1/0;n=r.capPixels(n,a),n>0&&(s=Math.sqrt(n/(e*t))),i!==-1&&(o=i/e,c=i/t);let u=Math.min(s,o,c);return this.sx>u||this.sy>u?(this.sx=u,this.sy=u,!0):!1}static get pixelRatio(){return globalThis.devicePixelRatio||1}static capPixels(e,t){if(t>=0){let n=Math.ceil(window.screen.availWidth*window.screen.availHeight*this.pixelRatio**2*(1+t/100));return e>0?Math.min(e,n):n}return e}},Qf=["image/apng","image/avif","image/bmp","image/gif","image/jpeg","image/png","image/svg+xml","image/webp","image/x-icon"],ed=class{static get isDarkMode(){return Ge(this,"isDarkMode",!!window?.matchMedia?.("(prefers-color-scheme: dark)").matches)}},td=class{static get commentForegroundColor(){let e=document.createElement("span");e.classList.add("comment","sidebar");let{style:t}=e;t.width=t.height="0",t.display="none",t.color="var(--comment-fg-color)",document.body.append(e);let{color:n}=window.getComputedStyle(e);return e.remove(),Ge(this,"commentForegroundColor",To(n))}};function aS(r,e,t,n){n=Math.min(Math.max(n??1,0),1);let i=255*(1-n);return r=Math.round(r*n+i),e=Math.round(e*n+i),t=Math.round(t*n+i),[r,e,t]}function W1(r,e){let t=r[0]/255,n=r[1]/255,i=r[2]/255,a=Math.max(t,n,i),s=Math.min(t,n,i),o=(a+s)/2;if(a===s)e[0]=e[1]=0;else{let c=a-s;switch(e[1]=o<.5?c/(a+s):c/(2-a-s),a){case t:e[0]=((n-i)/c+(n<i?6:0))*60;break;case n:e[0]=((i-t)/c+2)*60;break;case i:e[0]=((t-n)/c+4)*60;break}}e[2]=o}function rd(r,e){let t=r[0],n=r[1],i=r[2],a=(1-Math.abs(2*i-1))*n,s=a*(1-Math.abs(t/60%2-1)),o=i-a/2;switch(Math.floor(t/60)){case 0:e[0]=a+o,e[1]=s+o,e[2]=o;break;case 1:e[0]=s+o,e[1]=a+o,e[2]=o;break;case 2:e[0]=o,e[1]=a+o,e[2]=s+o;break;case 3:e[0]=o,e[1]=s+o,e[2]=a+o;break;case 4:e[0]=s+o,e[1]=o,e[2]=a+o;break;case 5:case 6:e[0]=a+o,e[1]=o,e[2]=s+o;break}}function H1(r){return r<=.03928?r/12.92:((r+.055)/1.055)**2.4}function V1(r,e,t){rd(r,t),t.map(H1);let n=.2126*t[0]+.7152*t[1]+.0722*t[2];rd(e,t),t.map(H1);let i=.2126*t[0]+.7152*t[1]+.0722*t[2];return n>i?(n+.05)/(i+.05):(i+.05)/(n+.05)}var z1=new Map;function sS(r,e){let t=r[0]+r[1]*256+r[2]*65536+e[0]*16777216+e[1]*4294967296+e[2]*1099511627776,n=z1.get(t);if(n)return n;let i=new Float32Array(9),a=i.subarray(0,3),s=i.subarray(3,6);W1(r,s);let o=i.subarray(6,9);W1(e,o);let c=o[2]<.5,u=c?12:4.5;if(s[2]=c?Math.sqrt(s[2]):1-Math.sqrt(1-s[2]),V1(s,o,a)<u){let h,f;c?(h=s[2],f=1):(h=0,f=s[2]);let d=.005;for(;f-h>d;){let p=s[2]=(h+f)/2;c===V1(s,o,a)<u?h=p:f=p}s[2]=c?f:h}return rd(s,a),n=Re.makeHexColor(Math.round(a[0]*255),Math.round(a[1]*255),Math.round(a[2]*255)),z1.set(t,n),n}function lx({html:r,dir:e,className:t},n){let i=document.createDocumentFragment();if(typeof r=="string"){let a=document.createElement("p");a.dir=e||"auto";let s=r.split(/(?:\r\n?|\n)/);for(let o=0,c=s.length;o<c;++o){let u=s[o];a.append(document.createTextNode(u)),o<c-1&&a.append(document.createElement("br"))}i.append(a)}else kl.render({xfaHtml:r,div:i,intent:"richText"});i.firstChild.classList.add("richText",t),n.append(i)}var tN=ze(4972),rN=ze(4628),nN=ze(7642),iN=ze(8004),aN=ze(3853),sN=ze(5876),oN=ze(2475),cN=ze(5024),lN=ze(1698),uN=ze(9314),hN=ze(1148),fN=ze(3579),dN=ze(8335),nd=class r{#e=null;#t=null;#n;#r=null;#s=null;#i=null;#a=null;#o=null;static#l=null;constructor(e){this.#n=e,r.#l||=Object.freeze({freetext:"pdfjs-editor-remove-freetext-button",highlight:"pdfjs-editor-remove-highlight-button",ink:"pdfjs-editor-remove-ink-button",stamp:"pdfjs-editor-remove-stamp-button",signature:"pdfjs-editor-remove-signature-button"})}render(){let e=this.#e=document.createElement("div");e.classList.add("editToolbar","hidden"),e.setAttribute("role","toolbar");let t=this.#n._uiManager._signal;t instanceof AbortSignal&&!t.aborted&&(e.addEventListener("contextmenu",en,{signal:t}),e.addEventListener("pointerdown",r.#c,{signal:t}));let n=this.#r=document.createElement("div");n.className="buttons",e.append(n);let i=this.#n.toolbarPosition;if(i){let{style:a}=e,s=this.#n._uiManager.direction==="ltr"?1-i[0]:i[0];a.insetInlineEnd=`${100*s}%`,a.top=`calc(${100*i[1]}% + var(--editor-toolbar-vert-offset))`}return e}get div(){return this.#e}static#c(e){e.stopPropagation()}#f(e){this.#n._focusEventsAllowed=!1,Tt(e)}#h(e){this.#n._focusEventsAllowed=!0,Tt(e)}#d(e){let t=this.#n._uiManager._signal;return!(t instanceof AbortSignal)||t.aborted?!1:(e.addEventListener("focusin",this.#f.bind(this),{capture:!0,signal:t}),e.addEventListener("focusout",this.#h.bind(this),{capture:!0,signal:t}),e.addEventListener("contextmenu",en,{signal:t}),!0)}hide(){this.#e.classList.add("hidden"),this.#t?.hideDropdown()}show(){this.#e.classList.remove("hidden"),this.#s?.shown(),this.#i?.shown()}addDeleteButton(){let{editorType:e,_uiManager:t}=this.#n,n=document.createElement("button");n.classList.add("basic","deleteButton"),n.tabIndex=0,n.setAttribute("data-l10n-id",r.#l[e]),this.#d(n)&&n.addEventListener("click",i=>{t.delete()},{signal:t._signal}),this.#r.append(n)}get#m(){let e=document.createElement("div");return e.className="divider",e}async addAltText(e){let t=await e.render();this.#d(t),this.#r.append(t,this.#m),this.#s=e}addComment(e,t=null){if(this.#i)return;let n=e.renderForToolbar();if(!n)return;this.#d(n);let i=this.#a=this.#m;t?(this.#r.insertBefore(n,t),this.#r.insertBefore(i,t)):this.#r.append(n,i),this.#i=e,e.toolbar=this}addColorPicker(e){if(this.#t)return;this.#t=e;let t=e.renderButton();this.#d(t),this.#r.append(t,this.#m)}async addEditSignatureButton(e){let t=this.#o=await e.renderEditButton(this.#n);this.#d(t),this.#r.append(t,this.#m)}removeButton(e){e==="comment"&&(this.#i?.removeToolbarCommentButton(),this.#i=null,this.#a?.remove(),this.#a=null)}async addButton(e,t){switch(e){case"colorPicker":this.addColorPicker(t);break;case"altText":await this.addAltText(t);break;case"editSignature":await this.addEditSignatureButton(t);break;case"delete":this.addDeleteButton();break;case"comment":this.addComment(t);break}}async addButtonBefore(e,t,n){let i=this.#r.querySelector(n);i&&e==="comment"&&this.addComment(t,i)}updateEditSignatureButton(e){this.#o&&(this.#o.title=e)}remove(){this.#e.remove(),this.#t?.destroy(),this.#t=null}},id=class{#e=null;#t=null;#n;constructor(e){this.#n=e}#r(){let e=this.#t=document.createElement("div");e.className="editToolbar",e.setAttribute("role","toolbar");let t=this.#n._signal;t instanceof AbortSignal&&!t.aborted&&e.addEventListener("contextmenu",en,{signal:t});let n=this.#e=document.createElement("div");return n.className="buttons",e.append(n),this.#n.hasCommentManager()&&this.#i("commentButton","pdfjs-comment-floating-button","pdfjs-comment-floating-button-label",()=>{this.#n.commentSelection("floating_button")}),this.#i("highlightButton","pdfjs-highlight-floating-button1","pdfjs-highlight-floating-button-label",()=>{this.#n.highlightSelection("floating_button")}),e}#s(e,t){let n=0,i=0;for(let a of e){let s=a.y+a.height;if(s<n)continue;let o=a.x+(t?a.width:0);if(s>n){i=o,n=s;continue}t?o>i&&(i=o):o<i&&(i=o)}return[t?1-i:i,n]}show(e,t,n){let[i,a]=this.#s(t,n),{style:s}=this.#t||=this.#r();e.append(this.#t),s.insetInlineEnd=`${100*i}%`,s.top=`calc(${100*a}% + var(--editor-toolbar-vert-offset))`}hide(){this.#t.remove()}#i(e,t,n,i){let a=document.createElement("button");a.classList.add("basic",e),a.tabIndex=0,a.setAttribute("data-l10n-id",t);let s=document.createElement("span");a.append(s),s.className="visuallyHidden",s.setAttribute("data-l10n-id",n);let o=this.#n._signal;o instanceof AbortSignal&&!o.aborted&&(a.addEventListener("contextmenu",en,{signal:o}),a.addEventListener("click",i,{signal:o})),this.#e.append(a)}};function ux(r,e,t){for(let n of t)e.addEventListener(n,r[n].bind(r))}var ad=class{#e=0;get id(){return`${io}${this.#e++}`}},sd=class r{#e=ox();#t=0;#n=null;static get _isSVGFittingCanvas(){let e='data:image/svg+xml;charset=UTF-8,<svg viewBox="0 0 1 1" width="1" height="1" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" style="fill:red;"/></svg>',n=new OffscreenCanvas(1,3).getContext("2d",{willReadFrequently:!0}),i=new Image;i.src=e;let a=i.decode().then(()=>(n.drawImage(i,0,0,1,1,0,0,1,3),new Uint32Array(n.getImageData(0,0,1,1).data.buffer)[0]===0));return Ge(this,"_isSVGFittingCanvas",a)}async#r(e,t){this.#n||=new Map;let n=this.#n.get(e);if(n===null)return null;if(n?.bitmap)return n.refCounter+=1,n;try{n||={bitmap:null,id:`image_${this.#e}_${this.#t++}`,refCounter:0,isSvg:!1};let i;if(typeof t=="string"?(n.url=t,i=await Do(t,"blob")):t instanceof File?i=n.file=t:t instanceof Blob&&(i=t),i.type==="image/svg+xml"){let a=r._isSVGFittingCanvas,s=new FileReader,o=new Image,c=new Promise((u,h)=>{o.onload=()=>{n.bitmap=o,n.isSvg=!0,u()},s.onload=async()=>{let f=n.svgUrl=s.result;o.src=await a?`${f}#svgView(preserveAspectRatio(none))`:f},o.onerror=s.onerror=h});s.readAsDataURL(i),await c}else n.bitmap=await createImageBitmap(i);n.refCounter=1}catch(i){Ne(i),n=null}return this.#n.set(e,n),n&&this.#n.set(n.id,n),n}async getFromFile(e){let{lastModified:t,name:n,size:i,type:a}=e;return this.#r(`${t}_${n}_${i}_${a}`,e)}async getFromUrl(e){return this.#r(e,e)}async getFromBlob(e,t){let n=await t;return this.#r(e,n)}async getFromId(e){this.#n||=new Map;let t=this.#n.get(e);if(!t)return null;if(t.bitmap)return t.refCounter+=1,t;if(t.file)return this.getFromFile(t.file);if(t.blobPromise){let{blobPromise:n}=t;return delete t.blobPromise,this.getFromBlob(t.id,n)}return this.getFromUrl(t.url)}getFromCanvas(e,t){this.#n||=new Map;let n=this.#n.get(e);if(n?.bitmap)return n.refCounter+=1,n;let i=new OffscreenCanvas(t.width,t.height);return i.getContext("2d").drawImage(t,0,0),n={bitmap:i.transferToImageBitmap(),id:`image_${this.#e}_${this.#t++}`,refCounter:1,isSvg:!1},this.#n.set(e,n),this.#n.set(n.id,n),n}getSvgUrl(e){let t=this.#n.get(e);return t?.isSvg?t.svgUrl:null}deleteId(e){this.#n||=new Map;let t=this.#n.get(e);if(!t||(t.refCounter-=1,t.refCounter!==0))return;let{bitmap:n}=t;if(!t.url&&!t.file){let i=new OffscreenCanvas(n.width,n.height);i.getContext("bitmaprenderer").transferFromImageBitmap(n),t.blobPromise=i.convertToBlob()}n.close?.(),t.bitmap=null}isValidId(e){return e.startsWith(`image_${this.#e}_`)}},od=class{#e=[];#t=!1;#n;#r=-1;constructor(e=128){this.#n=e}add({cmd:e,undo:t,post:n,mustExec:i,type:a=NaN,overwriteIfSameType:s=!1,keepUndo:o=!1}){if(i&&e(),this.#t)return;let c={cmd:e,undo:t,post:n,type:a};if(this.#r===-1){this.#e.length>0&&(this.#e.length=0),this.#r=0,this.#e.push(c);return}if(s&&this.#e[this.#r].type===a){o&&(c.undo=this.#e[this.#r].undo),this.#e[this.#r]=c;return}let u=this.#r+1;u===this.#n?this.#e.splice(0,1):(this.#r=u,u<this.#e.length&&this.#e.splice(u)),this.#e.push(c)}undo(){if(this.#r===-1)return;this.#t=!0;let{undo:e,post:t}=this.#e[this.#r];e(),t?.(),this.#t=!1,this.#r-=1}redo(){if(this.#r<this.#e.length-1){this.#r+=1,this.#t=!0;let{cmd:e,post:t}=this.#e[this.#r];e(),t?.(),this.#t=!1}}hasSomethingToUndo(){return this.#r!==-1}hasSomethingToRedo(){return this.#r<this.#e.length-1}cleanType(e){if(this.#r!==-1){for(let t=this.#r;t>=0;t--)if(this.#e[t].type!==e){this.#e.splice(t+1,this.#r-t),this.#r=t;return}this.#e.length=0,this.#r=-1}}destroy(){this.#e=null}},Gi=class{constructor(e){this.buffer=[],this.callbacks=new Map,this.allKeys=new Set;let{isMac:t}=Mt.platform;for(let[n,i,a={}]of e)for(let s of n){let o=s.startsWith("mac+");t&&o?(this.callbacks.set(s.slice(4),{callback:i,options:a}),this.allKeys.add(s.split("+").at(-1))):!t&&!o&&(this.callbacks.set(s,{callback:i,options:a}),this.allKeys.add(s.split("+").at(-1)))}}#e(e){e.altKey&&this.buffer.push("alt"),e.ctrlKey&&this.buffer.push("ctrl"),e.metaKey&&this.buffer.push("meta"),e.shiftKey&&this.buffer.push("shift"),this.buffer.push(e.key);let t=this.buffer.join("+");return this.buffer.length=0,t}exec(e,t){if(!this.allKeys.has(t.key))return;let n=this.callbacks.get(this.#e(t));if(!n)return;let{callback:i,options:{bubbles:a=!1,args:s=[],checker:o=null}}=n;o&&!o(e,t)||(i.bind(e,...s,t)(),a||Tt(t))}},cd=class r{static _colorsMapping=new Map([["CanvasText",[0,0,0]],["Canvas",[255,255,255]]]);get _colors(){let e=new Map([["CanvasText",null],["Canvas",null]]);return iS(e),Ge(this,"_colors",e)}convert(e){let t=To(e);if(!window.matchMedia("(forced-colors: active)").matches)return t;for(let[n,i]of this._colors)if(i.every((a,s)=>a===t[s]))return r._colorsMapping.get(n);return t}getHexCode(e){let t=this._colors.get(e);return t?Re.makeHexColor(...t):e}},Xi=class r{#e=new AbortController;#t=null;#n=null;#r=new Map;#s=new Map;#i=null;#a=null;#o=null;#l=new od;#c=null;#f=null;#h=null;#d=0;#m=new Set;#p=null;#u=null;#g=new Set;_editorUndoBar=null;#x=!1;#y=!1;#v=!1;#E=null;#D=null;#b=null;#S=null;#_=!1;#T=null;#k=new ad;#C=!1;#F=!1;#P=!1;#I=null;#O=null;#L=null;#B=null;#j=null;#A=Ve.NONE;#w=new Set;#R=null;#M=null;#H=null;#$=null;#X=null;#q={isEditing:!1,isEmpty:!0,hasSomethingToUndo:!1,hasSomethingToRedo:!1,hasSelectedEditor:!1,hasSelectedText:!1};#V=[0,0];#N=null;#G=null;#J=null;#Q=null;#W=null;static TRANSLATE_SMALL=1;static TRANSLATE_BIG=10;static get _keyboardManager(){let e=r.prototype,t=s=>s.#G.contains(document.activeElement)&&document.activeElement.tagName!=="BUTTON"&&s.hasSomethingToControl(),n=(s,{target:o})=>{if(o instanceof HTMLInputElement){let{type:c}=o;return c!=="text"&&c!=="number"}return!0},i=this.TRANSLATE_SMALL,a=this.TRANSLATE_BIG;return Ge(this,"_keyboardManager",new Gi([[["ctrl+a","mac+meta+a"],e.selectAll,{checker:n}],[["ctrl+z","mac+meta+z"],e.undo,{checker:n}],[["ctrl+y","ctrl+shift+z","mac+meta+shift+z","ctrl+shift+Z","mac+meta+shift+Z"],e.redo,{checker:n}],[["Backspace","alt+Backspace","ctrl+Backspace","shift+Backspace","mac+Backspace","mac+alt+Backspace","mac+ctrl+Backspace","Delete","ctrl+Delete","shift+Delete","mac+Delete"],e.delete,{checker:n}],[["Enter","mac+Enter"],e.addNewEditorFromKeyboard,{checker:(s,{target:o})=>!(o instanceof HTMLButtonElement)&&s.#G.contains(o)&&!s.isEnterHandled}],[[" ","mac+ "],e.addNewEditorFromKeyboard,{checker:(s,{target:o})=>!(o instanceof HTMLButtonElement)&&s.#G.contains(document.activeElement)}],[["Escape","mac+Escape"],e.unselectAll],[["ArrowLeft","mac+ArrowLeft"],e.translateSelectedEditors,{args:[-i,0],checker:t}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],e.translateSelectedEditors,{args:[-a,0],checker:t}],[["ArrowRight","mac+ArrowRight"],e.translateSelectedEditors,{args:[i,0],checker:t}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],e.translateSelectedEditors,{args:[a,0],checker:t}],[["ArrowUp","mac+ArrowUp"],e.translateSelectedEditors,{args:[0,-i],checker:t}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],e.translateSelectedEditors,{args:[0,-a],checker:t}],[["ArrowDown","mac+ArrowDown"],e.translateSelectedEditors,{args:[0,i],checker:t}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],e.translateSelectedEditors,{args:[0,a],checker:t}]]))}constructor(e,t,n,i,a,s,o,c,u,h,f,d,p,m,g,x){let y=this._signal=this.#e.signal;this.#G=e,this.#J=t,this.#Q=n,this.#i=i,this.#c=a,this.#M=s,this.#X=c,this._eventBus=o,o._on("editingaction",this.onEditingAction.bind(this),{signal:y}),o._on("pagechanging",this.onPageChanging.bind(this),{signal:y}),o._on("scalechanging",this.onScaleChanging.bind(this),{signal:y}),o._on("rotationchanging",this.onRotationChanging.bind(this),{signal:y}),o._on("setpreference",this.onSetPreference.bind(this),{signal:y}),o._on("switchannotationeditorparams",b=>this.updateParams(b.type,b.value),{signal:y}),window.addEventListener("pointerdown",()=>{this.#F=!0},{capture:!0,signal:y}),window.addEventListener("pointerup",()=>{this.#F=!1},{capture:!0,signal:y}),this.#ce(),this.#fe(),this.#te(),this.#a=c.annotationStorage,this.#E=c.filterFactory,this.#H=u,this.#S=h||null,this.#x=f,this.#y=d,this.#v=p,this.#j=m||null,this.viewParameters={realScale:mi.PDF_TO_CSS_UNITS,rotation:0},this.isShiftKeyDown=!1,this._editorUndoBar=g||null,this._supportsPinchToZoom=x!==!1,a?.setSidebarUiManager(this)}destroy(){this.#W?.resolve(),this.#W=null,this.#e?.abort(),this.#e=null,this._signal=null;for(let e of this.#s.values())e.destroy();this.#s.clear(),this.#r.clear(),this.#g.clear(),this.#B?.clear(),this.#t=null,this.#w.clear(),this.#l.destroy(),this.#i?.destroy(),this.#c?.destroy(),this.#M?.destroy(),this.#T?.hide(),this.#T=null,this.#L?.destroy(),this.#L=null,this.#n=null,this.#D&&(clearTimeout(this.#D),this.#D=null),this.#N&&(clearTimeout(this.#N),this.#N=null),this._editorUndoBar?.destroy(),this.#X=null}combinedSignal(e){return AbortSignal.any([this._signal,e.signal])}get mlManager(){return this.#j}get useNewAltTextFlow(){return this.#y}get useNewAltTextWhenAddingImage(){return this.#v}get hcmFilter(){return Ge(this,"hcmFilter",this.#H?this.#E.addHCMFilter(this.#H.foreground,this.#H.background):"none")}get direction(){return Ge(this,"direction",getComputedStyle(this.#G).direction)}get _highlightColors(){return Ge(this,"_highlightColors",this.#S?new Map(this.#S.split(",").map(e=>(e=e.split("=").map(t=>t.trim()),e[1]=e[1].toUpperCase(),e))):null)}get highlightColors(){let{_highlightColors:e}=this;if(!e)return Ge(this,"highlightColors",null);let t=new Map,n=!!this.#H;for(let[i,a]of e){let s=i.endsWith("_HCM");if(n&&s){t.set(i.replace("_HCM",""),a);continue}!n&&!s&&t.set(i,a)}return Ge(this,"highlightColors",t)}get highlightColorNames(){return Ge(this,"highlightColorNames",this.highlightColors?new Map(Array.from(this.highlightColors,e=>e.reverse())):null)}getNonHCMColor(e){if(!this._highlightColors)return e;let t=this.highlightColorNames.get(e);return this._highlightColors.get(t)||e}getNonHCMColorName(e){return this.highlightColorNames.get(e)||e}setCurrentDrawingSession(e){e?(this.unselectAll(),this.disableUserSelect(!0)):this.disableUserSelect(!1),this.#h=e}setMainHighlightColorPicker(e){this.#L=e}editAltText(e,t=!1){this.#i?.editAltText(this,e,t)}hasCommentManager(){return!!this.#c}editComment(e,t,n,i){this.#c?.showDialog(this,e,t,n,i)}selectComment(e,t){this.#s.get(e)?.getEditorByUID(t)?.toggleComment(!0,!0)}updateComment(e){this.#c?.updateComment(e.getData())}updatePopupColor(e){this.#c?.updatePopupColor(e)}removeComment(e){this.#c?.removeComments([e.uid])}toggleComment(e,t,n=void 0){this.#c?.toggleCommentPopup(e,t,n)}makeCommentColor(e,t){return e&&this.#c?.makeCommentColor(e,t)||null}getCommentDialogElement(){return this.#c?.dialogElement||null}async waitForEditorsRendered(e){if(this.#s.has(e-1))return;let{resolve:t,promise:n}=Promise.withResolvers(),i=a=>{a.pageNumber===e&&(this._eventBus._off("editorsrendered",i),t())};this._eventBus.on("editorsrendered",i),await n}getSignature(e){this.#M?.getSignature({uiManager:this,editor:e})}get signatureManager(){return this.#M}switchToMode(e,t){this._eventBus.on("annotationeditormodechanged",t,{once:!0,signal:this._signal}),this._eventBus.dispatch("showannotationeditorui",{source:this,mode:e})}setPreference(e,t){this._eventBus.dispatch("setpreference",{source:this,name:e,value:t})}onSetPreference({name:e,value:t}){e==="enableNewAltTextWhenAddingImage"&&(this.#v=t)}onPageChanging({pageNumber:e}){this.#d=e-1}focusMainContainer(){this.#G.focus()}findParent(e,t){for(let n of this.#s.values()){let{x:i,y:a,width:s,height:o}=n.div.getBoundingClientRect();if(e>=i&&e<=i+s&&t>=a&&t<=a+o)return n}return null}disableUserSelect(e=!1){this.#J.classList.toggle("noUserSelect",e)}addShouldRescale(e){this.#g.add(e)}removeShouldRescale(e){this.#g.delete(e)}onScaleChanging({scale:e}){this.commitOrRemove(),this.viewParameters.realScale=e*mi.PDF_TO_CSS_UNITS;for(let t of this.#g)t.onScaleChanging();this.#h?.onScaleChanging()}onRotationChanging({pagesRotation:e}){this.commitOrRemove(),this.viewParameters.rotation=e}#Z({anchorNode:e}){return e.nodeType===Node.TEXT_NODE?e.parentElement:e}#ee(e){let{currentLayer:t}=this;if(t.hasTextLayer(e))return t;for(let n of this.#s.values())if(n.hasTextLayer(e))return n;return null}highlightSelection(e="",t=!1){let n=document.getSelection();if(!n||n.isCollapsed)return;let{anchorNode:i,anchorOffset:a,focusNode:s,focusOffset:o}=n,c=n.toString(),h=this.#Z(n).closest(".textLayer"),f=this.getSelectionBoxes(h);if(!f)return;n.empty();let d=this.#ee(h),p=this.#A===Ve.NONE,m=()=>{let g=d?.createAndAddNewEditor({x:0,y:0},!1,{methodOfCreation:e,boxes:f,anchorNode:i,anchorOffset:a,focusNode:s,focusOffset:o,text:c});p&&this.showAllEditors("highlight",!0,!0),t&&g?.editComment()};if(p){this.switchToMode(Ve.HIGHLIGHT,m);return}m()}commentSelection(e=""){this.highlightSelection(e,!0)}#se(){let e=document.getSelection();if(!e||e.isCollapsed)return;let n=this.#Z(e).closest(".textLayer"),i=this.getSelectionBoxes(n);i&&(this.#T||=new id(this),this.#T.show(n,i,this.direction==="ltr"))}getAndRemoveDataFromAnnotationStorage(e){if(!this.#a)return null;let t=`${io}${e}`,n=this.#a.getRawValue(t);return n&&this.#a.remove(t),n}addToAnnotationStorage(e){!e.isEmpty()&&this.#a&&!this.#a.has(e.id)&&this.#a.setValue(e.id,e)}a11yAlert(e,t=null){let n=this.#Q;n&&(n.setAttribute("data-l10n-id",e),t?n.setAttribute("data-l10n-args",JSON.stringify(t)):n.removeAttribute("data-l10n-args"))}#oe(){let e=document.getSelection();if(!e||e.isCollapsed){this.#R&&(this.#T?.hide(),this.#R=null,this.#U({hasSelectedText:!1}));return}let{anchorNode:t}=e;if(t===this.#R)return;let i=this.#Z(e).closest(".textLayer");if(!i){this.#R&&(this.#T?.hide(),this.#R=null,this.#U({hasSelectedText:!1}));return}if(this.#T?.hide(),this.#R=t,this.#U({hasSelectedText:!0}),!(this.#A!==Ve.HIGHLIGHT&&this.#A!==Ve.NONE)&&(this.#A===Ve.HIGHLIGHT&&this.showAllEditors("highlight",!0,!0),this.#_=this.isShiftKeyDown,!this.isShiftKeyDown)){let a=this.#A===Ve.HIGHLIGHT?this.#ee(i):null;if(a?.toggleDrawing(),this.#F){let s=new AbortController,o=this.combinedSignal(s),c=u=>{u.type==="pointerup"&&u.button!==0||(s.abort(),a?.toggleDrawing(!0),u.type==="pointerup"&&this.#Y("main_toolbar"))};window.addEventListener("pointerup",c,{signal:o}),window.addEventListener("blur",c,{signal:o})}else a?.toggleDrawing(!0),this.#Y("main_toolbar")}}#Y(e=""){this.#A===Ve.HIGHLIGHT?this.highlightSelection(e):this.#x&&this.#se()}#ce(){document.addEventListener("selectionchange",this.#oe.bind(this),{signal:this._signal})}#le(){if(this.#b)return;this.#b=new AbortController;let e=this.combinedSignal(this.#b);window.addEventListener("focus",this.focus.bind(this),{signal:e}),window.addEventListener("blur",this.blur.bind(this),{signal:e})}#ue(){this.#b?.abort(),this.#b=null}blur(){if(this.isShiftKeyDown=!1,this.#_&&(this.#_=!1,this.#Y("main_toolbar")),!this.hasSelection)return;let{activeElement:e}=document;for(let t of this.#w)if(t.div.contains(e)){this.#O=[t,e],t._focusEventsAllowed=!1;break}}focus(){if(!this.#O)return;let[e,t]=this.#O;this.#O=null,t.addEventListener("focusin",()=>{e._focusEventsAllowed=!0},{once:!0,signal:this._signal}),t.focus()}#te(){if(this.#I)return;this.#I=new AbortController;let e=this.combinedSignal(this.#I);window.addEventListener("keydown",this.keydown.bind(this),{signal:e}),window.addEventListener("keyup",this.keyup.bind(this),{signal:e})}#he(){this.#I?.abort(),this.#I=null}#re(){if(this.#f)return;this.#f=new AbortController;let e=this.combinedSignal(this.#f);document.addEventListener("copy",this.copy.bind(this),{signal:e}),document.addEventListener("cut",this.cut.bind(this),{signal:e}),document.addEventListener("paste",this.paste.bind(this),{signal:e})}#ne(){this.#f?.abort(),this.#f=null}#fe(){let e=this._signal;document.addEventListener("dragover",this.dragOver.bind(this),{signal:e}),document.addEventListener("drop",this.drop.bind(this),{signal:e})}addEditListeners(){this.#te(),this.#re()}removeEditListeners(){this.#he(),this.#ne()}dragOver(e){for(let{type:t}of e.dataTransfer.items)for(let n of this.#u)if(n.isHandlingMimeForPasting(t)){e.dataTransfer.dropEffect="copy",e.preventDefault();return}}drop(e){for(let t of e.dataTransfer.items)for(let n of this.#u)if(n.isHandlingMimeForPasting(t.type)){n.paste(t,this.currentLayer),e.preventDefault();return}}copy(e){if(e.preventDefault(),this.#t?.commitOrRemove(),!this.hasSelection)return;let t=[];for(let n of this.#w){let i=n.serialize(!0);i&&t.push(i)}t.length!==0&&e.clipboardData.setData("application/pdfjs",JSON.stringify(t))}cut(e){this.copy(e),this.delete()}async paste(e){e.preventDefault();let{clipboardData:t}=e;for(let a of t.items)for(let s of this.#u)if(s.isHandlingMimeForPasting(a.type)){s.paste(a,this.currentLayer);return}let n=t.getData("application/pdfjs");if(!n)return;try{n=JSON.parse(n)}catch(a){Ne(`paste: "${a.message}".`);return}if(!Array.isArray(n))return;this.unselectAll();let i=this.currentLayer;try{let a=[];for(let c of n){let u=await i.deserialize(c);if(!u)return;a.push(u)}let s=()=>{for(let c of a)this.#ie(c);this.#ae(a)},o=()=>{for(let c of a)c.remove()};this.addCommands({cmd:s,undo:o,mustExec:!0})}catch(a){Ne(`paste: "${a.message}".`)}}keydown(e){!this.isShiftKeyDown&&e.key==="Shift"&&(this.isShiftKeyDown=!0),this.#A!==Ve.NONE&&!this.isEditorHandlingKeyboard&&r._keyboardManager.exec(this,e)}keyup(e){this.isShiftKeyDown&&e.key==="Shift"&&(this.isShiftKeyDown=!1,this.#_&&(this.#_=!1,this.#Y("main_toolbar")))}onEditingAction({name:e}){switch(e){case"undo":case"redo":case"delete":case"selectAll":this[e]();break;case"highlightSelection":this.highlightSelection("context_menu");break;case"commentSelection":this.commentSelection("context_menu");break}}#U(e){Object.entries(e).some(([n,i])=>this.#q[n]!==i)&&(this._eventBus.dispatch("annotationeditorstateschanged",{source:this,details:Object.assign(this.#q,e)}),this.#A===Ve.HIGHLIGHT&&e.hasSelectedEditor===!1&&this.#z([[qe.HIGHLIGHT_FREE,!0]]))}#z(e){this._eventBus.dispatch("annotationeditorparamschanged",{source:this,details:e})}setEditingState(e){e?(this.#le(),this.#re(),this.#U({isEditing:this.#A!==Ve.NONE,isEmpty:this.#K(),hasSomethingToUndo:this.#l.hasSomethingToUndo(),hasSomethingToRedo:this.#l.hasSomethingToRedo(),hasSelectedEditor:!1})):(this.#ue(),this.#ne(),this.#U({isEditing:!1}),this.disableUserSelect(!1))}registerEditorTypes(e){if(!this.#u){this.#u=e;for(let t of this.#u)this.#z(t.defaultPropertiesToUpdate)}}getId(){return this.#k.id}get currentLayer(){return this.#s.get(this.#d)}getLayer(e){return this.#s.get(e)}get currentPageIndex(){return this.#d}addLayer(e){this.#s.set(e.pageIndex,e),this.#C?e.enable():e.disable()}removeLayer(e){this.#s.delete(e.pageIndex)}async updateMode(e,t=null,n=!1,i=!1,a=!1){if(this.#A!==e&&!(this.#W&&(await this.#W.promise,!this.#W))){if(this.#W=Promise.withResolvers(),this.#h?.commitOrRemove(),this.#A===Ve.POPUP&&this.#c?.hideSidebar(),this.#c?.destroyPopup(),this.#A=e,e===Ve.NONE){this.setEditingState(!1),this.#pe();for(let s of this.#r.values())s.hideStandaloneCommentButton();this._editorUndoBar?.hide(),this.toggleComment(null),this.#W.resolve();return}for(let s of this.#r.values())s.addStandaloneCommentButton();e===Ve.SIGNATURE&&await this.#M?.loadSignatures(),this.setEditingState(!0),await this.#de(),this.unselectAll();for(let s of this.#s.values())s.updateMode(e);if(e===Ve.POPUP){this.#n||=await this.#X.getAnnotationsByType(new Set(this.#u.map(c=>c._editorType)));let s=new Set,o=[];for(let c of this.#r.values()){let{annotationElementId:u,hasComment:h,deleted:f}=c;u&&s.add(u),h&&!f&&o.push(c.getData())}for(let c of this.#n){let{id:u,popupRef:h,contentsObj:f}=c;h&&f?.str&&!s.has(u)&&!this.#m.has(u)&&o.push(c)}this.#c?.showSidebar(o)}if(!t){n&&this.addNewEditorFromKeyboard(),this.#W.resolve();return}for(let s of this.#r.values())s.uid===t?(this.setSelected(s),a?s.editComment():i?s.enterInEditMode():s.focus()):s.unselect();this.#W.resolve()}}addNewEditorFromKeyboard(){this.currentLayer.canCreateNewEmptyEditor()&&this.currentLayer.addNewEditor()}updateToolbar(e){e.mode!==this.#A&&this._eventBus.dispatch("switchannotationeditormode",{source:this,...e})}updateParams(e,t){if(this.#u){switch(e){case qe.CREATE:this.currentLayer.addNewEditor(t);return;case qe.HIGHLIGHT_SHOW_ALL:this._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",data:{type:"highlight",action:"toggle_visibility"}}}),(this.#$||=new Map).set(e,t),this.showAllEditors("highlight",t);break}if(this.hasSelection)for(let n of this.#w)n.updateParams(e,t);else for(let n of this.#u)n.updateDefaultParams(e,t)}}showAllEditors(e,t,n=!1){for(let a of this.#r.values())a.editorType===e&&a.show(t);(this.#$?.get(qe.HIGHLIGHT_SHOW_ALL)??!0)!==t&&this.#z([[qe.HIGHLIGHT_SHOW_ALL,t]])}enableWaiting(e=!1){if(this.#P!==e){this.#P=e;for(let t of this.#s.values())e?t.disableClick():t.enableClick(),t.div.classList.toggle("waiting",e)}}async#de(){if(!this.#C){this.#C=!0;let e=[];for(let t of this.#s.values())e.push(t.enable());await Promise.all(e);for(let t of this.#r.values())t.enable()}}#pe(){if(this.unselectAll(),this.#C){this.#C=!1;for(let e of this.#s.values())e.disable();for(let e of this.#r.values())e.disable()}}*getEditors(e){for(let t of this.#r.values())t.pageIndex===e&&(yield t)}getEditor(e){return this.#r.get(e)}addEditor(e){this.#r.set(e.id,e)}removeEditor(e){e.div.contains(document.activeElement)&&(this.#D&&clearTimeout(this.#D),this.#D=setTimeout(()=>{this.focusMainContainer(),this.#D=null},0)),this.#r.delete(e.id),e.annotationElementId&&this.#B?.delete(e.annotationElementId),this.unselect(e),(!e.annotationElementId||!this.#m.has(e.annotationElementId))&&this.#a?.remove(e.id)}addDeletedAnnotationElement(e){this.#m.add(e.annotationElementId),this.addChangedExistingAnnotation(e),e.deleted=!0}isDeletedAnnotationElement(e){return this.#m.has(e)}removeDeletedAnnotationElement(e){this.#m.delete(e.annotationElementId),this.removeChangedExistingAnnotation(e),e.deleted=!1}#ie(e){let t=this.#s.get(e.pageIndex);t?t.addOrRebuild(e):(this.addEditor(e),this.addToAnnotationStorage(e))}setActiveEditor(e){this.#t!==e&&(this.#t=e,e&&this.#z(e.propertiesToUpdate))}get#ge(){let e=null;for(e of this.#w);return e}updateUI(e){this.#ge===e&&this.#z(e.propertiesToUpdate)}updateUIForDefaultProperties(e){this.#z(e.defaultPropertiesToUpdate)}toggleSelected(e){if(this.#w.has(e)){this.#w.delete(e),e.unselect(),this.#U({hasSelectedEditor:this.hasSelection});return}this.#w.add(e),e.select(),this.#z(e.propertiesToUpdate),this.#U({hasSelectedEditor:!0})}setSelected(e){this.updateToolbar({mode:e.mode,editId:e.id}),this.#h?.commitOrRemove();for(let t of this.#w)t!==e&&t.unselect();this.#w.clear(),this.#w.add(e),e.select(),this.#z(e.propertiesToUpdate),this.#U({hasSelectedEditor:!0})}isSelected(e){return this.#w.has(e)}get firstSelectedEditor(){return this.#w.values().next().value}unselect(e){e.unselect(),this.#w.delete(e),this.#U({hasSelectedEditor:this.hasSelection})}get hasSelection(){return this.#w.size!==0}get isEnterHandled(){return this.#w.size===1&&this.firstSelectedEditor.isEnterHandled}undo(){this.#l.undo(),this.#U({hasSomethingToUndo:this.#l.hasSomethingToUndo(),hasSomethingToRedo:!0,isEmpty:this.#K()}),this._editorUndoBar?.hide()}redo(){this.#l.redo(),this.#U({hasSomethingToUndo:!0,hasSomethingToRedo:this.#l.hasSomethingToRedo(),isEmpty:this.#K()})}addCommands(e){this.#l.add(e),this.#U({hasSomethingToUndo:!0,hasSomethingToRedo:!1,isEmpty:this.#K()})}cleanUndoStack(e){this.#l.cleanType(e)}#K(){if(this.#r.size===0)return!0;if(this.#r.size===1)for(let e of this.#r.values())return e.isEmpty();return!1}delete(){this.commitOrRemove();let e=this.currentLayer?.endDrawingSession(!0);if(!this.hasSelection&&!e)return;let t=e?[e]:[...this.#w],n=()=>{this._editorUndoBar?.show(i,t.length===1?t[0].editorType:t.length);for(let a of t)a.remove()},i=()=>{for(let a of t)this.#ie(a)};this.addCommands({cmd:n,undo:i,mustExec:!0})}commitOrRemove(){this.#t?.commitOrRemove()}hasSomethingToControl(){return this.#t||this.hasSelection}#ae(e){for(let t of this.#w)t.unselect();this.#w.clear();for(let t of e)t.isEmpty()||(this.#w.add(t),t.select());this.#U({hasSelectedEditor:this.hasSelection})}selectAll(){for(let e of this.#w)e.commit();this.#ae(this.#r.values())}unselectAll(){if(!(this.#t&&(this.#t.commitOrRemove(),this.#A!==Ve.NONE))&&!this.#h?.commitOrRemove()&&this.hasSelection){for(let e of this.#w)e.unselect();this.#w.clear(),this.#U({hasSelectedEditor:!1})}}translateSelectedEditors(e,t,n=!1){if(n||this.commitOrRemove(),!this.hasSelection)return;this.#V[0]+=e,this.#V[1]+=t;let[i,a]=this.#V,s=[...this.#w],o=1e3;this.#N&&clearTimeout(this.#N),this.#N=setTimeout(()=>{this.#N=null,this.#V[0]=this.#V[1]=0,this.addCommands({cmd:()=>{for(let c of s)this.#r.has(c.id)&&(c.translateInPage(i,a),c.translationDone())},undo:()=>{for(let c of s)this.#r.has(c.id)&&(c.translateInPage(-i,-a),c.translationDone())},mustExec:!1})},o);for(let c of s)c.translateInPage(e,t),c.translationDone()}setUpDragSession(){if(this.hasSelection){this.disableUserSelect(!0),this.#p=new Map;for(let e of this.#w)this.#p.set(e,{savedX:e.x,savedY:e.y,savedPageIndex:e.pageIndex,newX:0,newY:0,newPageIndex:-1})}}endDragSession(){if(!this.#p)return!1;this.disableUserSelect(!1);let e=this.#p;this.#p=null;let t=!1;for(let[{x:i,y:a,pageIndex:s},o]of e)o.newX=i,o.newY=a,o.newPageIndex=s,t||=i!==o.savedX||a!==o.savedY||s!==o.savedPageIndex;if(!t)return!1;let n=(i,a,s,o)=>{if(this.#r.has(i.id)){let c=this.#s.get(o);c?i._setParentAndPosition(c,a,s):(i.pageIndex=o,i.x=a,i.y=s)}};return this.addCommands({cmd:()=>{for(let[i,{newX:a,newY:s,newPageIndex:o}]of e)n(i,a,s,o)},undo:()=>{for(let[i,{savedX:a,savedY:s,savedPageIndex:o}]of e)n(i,a,s,o)},mustExec:!0}),!0}dragSelectedEditors(e,t){if(this.#p)for(let n of this.#p.keys())n.drag(e,t)}rebuild(e){if(e.parent===null){let t=this.getLayer(e.pageIndex);t?(t.changeParent(e),t.addOrRebuild(e)):(this.addEditor(e),this.addToAnnotationStorage(e),e.rebuild())}else e.parent.addOrRebuild(e)}get isEditorHandlingKeyboard(){return this.getActive()?.shouldGetKeyboardEvents()||this.#w.size===1&&this.firstSelectedEditor.shouldGetKeyboardEvents()}isActive(e){return this.#t===e}getActive(){return this.#t}getMode(){return this.#A}isEditingMode(){return this.#A!==Ve.NONE}get imageManager(){return Ge(this,"imageManager",new sd)}getSelectionBoxes(e){if(!e)return null;let t=document.getSelection();for(let u=0,h=t.rangeCount;u<h;u++)if(!e.contains(t.getRangeAt(u).commonAncestorContainer))return null;let{x:n,y:i,width:a,height:s}=e.getBoundingClientRect(),o;switch(e.getAttribute("data-main-rotation")){case"90":o=(u,h,f,d)=>({x:(h-i)/s,y:1-(u+f-n)/a,width:d/s,height:f/a});break;case"180":o=(u,h,f,d)=>({x:1-(u+f-n)/a,y:1-(h+d-i)/s,width:f/a,height:d/s});break;case"270":o=(u,h,f,d)=>({x:1-(h+d-i)/s,y:(u-n)/a,width:d/s,height:f/a});break;default:o=(u,h,f,d)=>({x:(u-n)/a,y:(h-i)/s,width:f/a,height:d/s});break}let c=[];for(let u=0,h=t.rangeCount;u<h;u++){let f=t.getRangeAt(u);if(!f.collapsed)for(let{x:d,y:p,width:m,height:g}of f.getClientRects())m===0||g===0||c.push(o(d,p,m,g))}return c.length===0?null:c}addChangedExistingAnnotation({annotationElementId:e,id:t}){(this.#o||=new Map).set(e,t)}removeChangedExistingAnnotation({annotationElementId:e}){this.#o?.delete(e)}renderAnnotationElement(e){let t=this.#o?.get(e.data.id);if(!t)return;let n=this.#a.getRawValue(t);n&&(this.#A===Ve.NONE&&!n.hasBeenModified||n.renderAnnotationElement(e))}setMissingCanvas(e,t,n){let i=this.#B?.get(e);i&&(i.setCanvas(t,n),this.#B.delete(e))}addMissingCanvas(e,t){(this.#B||=new Map).set(e,t)}},Il=class r{#e=null;#t=!1;#n=null;#r=null;#s=null;#i=null;#a=!1;#o=null;#l=null;#c=null;#f=null;#h=!1;static#d=null;static _l10n=null;constructor(e){this.#l=e,this.#h=e._uiManager.useNewAltTextFlow,r.#d||=Object.freeze({added:"pdfjs-editor-new-alt-text-added-button","added-label":"pdfjs-editor-new-alt-text-added-button-label",missing:"pdfjs-editor-new-alt-text-missing-button","missing-label":"pdfjs-editor-new-alt-text-missing-button-label",review:"pdfjs-editor-new-alt-text-to-review-button","review-label":"pdfjs-editor-new-alt-text-to-review-button-label"})}static initialize(e){r._l10n??=e}async render(){let e=this.#n=document.createElement("button");e.className="altText",e.tabIndex="0";let t=this.#r=document.createElement("span");e.append(t),this.#h?(e.classList.add("new"),e.setAttribute("data-l10n-id",r.#d.missing),t.setAttribute("data-l10n-id",r.#d["missing-label"])):(e.setAttribute("data-l10n-id","pdfjs-editor-alt-text-button"),t.setAttribute("data-l10n-id","pdfjs-editor-alt-text-button-label"));let n=this.#l._uiManager._signal;e.addEventListener("contextmenu",en,{signal:n}),e.addEventListener("pointerdown",a=>a.stopPropagation(),{signal:n});let i=a=>{a.preventDefault(),this.#l._uiManager.editAltText(this.#l),this.#h&&this.#l._reportTelemetry({action:"pdfjs.image.alt_text.image_status_label_clicked",data:{label:this.#m}})};return e.addEventListener("click",i,{capture:!0,signal:n}),e.addEventListener("keydown",a=>{a.target===e&&a.key==="Enter"&&(this.#a=!0,i(a))},{signal:n}),await this.#p(),e}get#m(){return this.#e&&"added"||this.#e===null&&this.guessedText&&"review"||"missing"}finish(){this.#n&&(this.#n.focus({focusVisible:this.#a}),this.#a=!1)}isEmpty(){return this.#h?this.#e===null:!this.#e&&!this.#t}hasData(){return this.#h?this.#e!==null||!!this.#c:this.isEmpty()}get guessedText(){return this.#c}async setGuessedText(e){this.#e===null&&(this.#c=e,this.#f=await r._l10n.get("pdfjs-editor-new-alt-text-generated-alt-text-with-disclaimer",{generatedAltText:e}),this.#p())}toggleAltTextBadge(e=!1){if(!this.#h||this.#e){this.#o?.remove(),this.#o=null;return}if(!this.#o){let t=this.#o=document.createElement("div");t.className="noAltTextBadge",this.#l.div.append(t)}this.#o.classList.toggle("hidden",!e)}serialize(e){let t=this.#e;return!e&&this.#c===t&&(t=this.#f),{altText:t,decorative:this.#t,guessedText:this.#c,textWithDisclaimer:this.#f}}get data(){return{altText:this.#e,decorative:this.#t}}set data({altText:e,decorative:t,guessedText:n,textWithDisclaimer:i,cancel:a=!1}){n&&(this.#c=n,this.#f=i),!(this.#e===e&&this.#t===t)&&(a||(this.#e=e,this.#t=t),this.#p())}toggle(e=!1){this.#n&&(!e&&this.#i&&(clearTimeout(this.#i),this.#i=null),this.#n.disabled=!e)}shown(){this.#l._reportTelemetry({action:"pdfjs.image.alt_text.image_status_label_displayed",data:{label:this.#m}})}destroy(){this.#n?.remove(),this.#n=null,this.#r=null,this.#s=null,this.#o?.remove(),this.#o=null}async#p(){let e=this.#n;if(!e)return;if(this.#h){if(e.classList.toggle("done",!!this.#e),e.setAttribute("data-l10n-id",r.#d[this.#m]),this.#r?.setAttribute("data-l10n-id",r.#d[`${this.#m}-label`]),!this.#e){this.#s?.remove();return}}else{if(!this.#e&&!this.#t){e.classList.remove("done"),this.#s?.remove();return}e.classList.add("done"),e.setAttribute("data-l10n-id","pdfjs-editor-alt-text-edit-button")}let t=this.#s;if(!t){this.#s=t=document.createElement("span"),t.className="tooltip",t.setAttribute("role","tooltip"),t.id=`alt-text-tooltip-${this.#l.id}`;let i=100,a=this.#l._uiManager._signal;a.addEventListener("abort",()=>{clearTimeout(this.#i),this.#i=null},{once:!0}),e.addEventListener("mouseenter",()=>{this.#i=setTimeout(()=>{this.#i=null,this.#s.classList.add("show"),this.#l._reportTelemetry({action:"alt_text_tooltip"})},i)},{signal:a}),e.addEventListener("mouseleave",()=>{this.#i&&(clearTimeout(this.#i),this.#i=null),this.#s?.classList.remove("show")},{signal:a})}this.#t?t.setAttribute("data-l10n-id","pdfjs-editor-alt-text-decorative-tooltip"):(t.removeAttribute("data-l10n-id"),t.textContent=this.#e),t.parentNode||e.append(t),this.#l.getElementForAltText()?.setAttribute("aria-describedby",t.id)}},La=class{#e=null;#t=null;#n=!1;#r=null;#s=null;#i=null;#a=null;#o=null;#l=!1;#c=null;constructor(e){this.#r=e}renderForToolbar(){let e=this.#t=document.createElement("button");return e.className="comment",this.#f(e,!1)}renderForStandalone(){let e=this.#e=document.createElement("button");e.className="annotationCommentButton";let t=this.#r.commentButtonPosition;if(t){let{style:n}=e;n.insetInlineEnd=`calc(${100*(this.#r._uiManager.direction==="ltr"?1-t[0]:t[0])}% - var(--comment-button-dim))`,n.top=`calc(${100*t[1]}% - var(--comment-button-dim))`;let i=this.#r.commentButtonColor;i&&(n.backgroundColor=i)}return this.#f(e,!0)}focusButton(){setTimeout(()=>{(this.#e??this.#t)?.focus()},0)}onUpdatedColor(){if(!this.#e)return;let e=this.#r.commentButtonColor;e&&(this.#e.style.backgroundColor=e),this.#r._uiManager.updatePopupColor(this.#r)}get commentButtonWidth(){return(this.#e?.getBoundingClientRect().width??0)/this.#r.parent.boundingClientRect.width}get commentPopupPositionInLayer(){if(this.#c)return this.#c;if(!this.#e)return null;let{x:e,y:t,height:n}=this.#e.getBoundingClientRect(),{x:i,y:a,width:s,height:o}=this.#r.parent.boundingClientRect;return[(e-i)/s,(t+n-a)/o]}set commentPopupPositionInLayer(e){this.#c=e}hasDefaultPopupPosition(){return this.#c===null}removeStandaloneCommentButton(){this.#e?.remove(),this.#e=null}removeToolbarCommentButton(){this.#t?.remove(),this.#t=null}setCommentButtonStates({selected:e,hasPopup:t}){this.#e&&(this.#e.classList.toggle("selected",e),this.#e.ariaExpanded=t)}#f(e,t){if(!this.#r._uiManager.hasCommentManager())return null;e.tabIndex="0",e.ariaHasPopup="dialog",t?(e.ariaControls="commentPopup",e.setAttribute("data-l10n-id","pdfjs-show-comment-button")):(e.ariaControlsElements=[this.#r._uiManager.getCommentDialogElement()],e.setAttribute("data-l10n-id","pdfjs-editor-edit-comment-button"));let n=this.#r._uiManager._signal;if(!(n instanceof AbortSignal)||n.aborted)return e;e.addEventListener("contextmenu",en,{signal:n}),t&&(e.addEventListener("focusin",a=>{this.#r._focusEventsAllowed=!1,Tt(a)},{capture:!0,signal:n}),e.addEventListener("focusout",a=>{this.#r._focusEventsAllowed=!0,Tt(a)},{capture:!0,signal:n})),e.addEventListener("pointerdown",a=>a.stopPropagation(),{signal:n});let i=a=>{a.preventDefault(),e===this.#t?this.edit():this.#r.toggleComment(!0)};return e.addEventListener("click",i,{capture:!0,signal:n}),e.addEventListener("keydown",a=>{a.target===e&&a.key==="Enter"&&(this.#n=!0,i(a))},{signal:n}),e.addEventListener("pointerenter",()=>{this.#r.toggleComment(!1,!0)},{signal:n}),e.addEventListener("pointerleave",()=>{this.#r.toggleComment(!1,!1)},{signal:n}),e}edit(e){let t=this.commentPopupPositionInLayer,n,i;if(t)[n,i]=t;else{[n,i]=this.#r.commentButtonPosition;let{width:h,height:f,x:d,y:p}=this.#r;n=d+n*h,i=p+i*f}let a=this.#r.parent.boundingClientRect,{x:s,y:o,width:c,height:u}=a;this.#r._uiManager.editComment(this.#r,s+n*c,o+i*u,{...e,parentDimensions:a})}finish(){this.#t&&(this.#t.focus({focusVisible:this.#n}),this.#n=!1)}isDeleted(){return this.#l||this.#a===""}isEmpty(){return this.#a===null}hasBeenEdited(){return this.isDeleted()||this.#a!==this.#s}serialize(){return this.data}get data(){return{text:this.#a,richText:this.#i,date:this.#o,deleted:this.isDeleted()}}set data(e){if(e!==this.#a&&(this.#i=null),e===null){this.#a="",this.#l=!0;return}this.#a=e,this.#o=new Date,this.#l=!1}setInitialText(e,t=null){this.#s=e,this.data=e,this.#o=null,this.#i=t}shown(){}destroy(){this.#t?.remove(),this.#t=null,this.#e?.remove(),this.#e=null,this.#a="",this.#i=null,this.#o=null,this.#r=null,this.#n=!1,this.#l=!1}},Rl=class r{#e;#t=!1;#n=null;#r;#s;#i;#a;#o=null;#l;#c=null;#f;#h=null;constructor({container:e,isPinchingDisabled:t=null,isPinchingStopped:n=null,onPinchStart:i=null,onPinching:a=null,onPinchEnd:s=null,signal:o}){this.#e=e,this.#n=n,this.#r=t,this.#s=i,this.#i=a,this.#a=s,this.#f=new AbortController,this.#l=AbortSignal.any([o,this.#f.signal]),e.addEventListener("touchstart",this.#d.bind(this),{passive:!1,signal:this.#l})}get MIN_TOUCH_DISTANCE_TO_PINCH(){return 35/Xn.pixelRatio}#d(e){if(this.#r?.())return;if(e.touches.length===1){if(this.#o)return;let i=this.#o=new AbortController,a=AbortSignal.any([this.#l,i.signal]),s=this.#e,o={capture:!0,signal:a,passive:!1},c=u=>{u.pointerType==="touch"&&(this.#o?.abort(),this.#o=null)};s.addEventListener("pointerdown",u=>{u.pointerType==="touch"&&(Tt(u),c(u))},o),s.addEventListener("pointerup",c,o),s.addEventListener("pointercancel",c,o);return}if(!this.#h){this.#h=new AbortController;let i=AbortSignal.any([this.#l,this.#h.signal]),a=this.#e,s={signal:i,capture:!1,passive:!1};a.addEventListener("touchmove",this.#m.bind(this),s);let o=this.#p.bind(this);a.addEventListener("touchend",o,s),a.addEventListener("touchcancel",o,s),s.capture=!0,a.addEventListener("pointerdown",Tt,s),a.addEventListener("pointermove",Tt,s),a.addEventListener("pointercancel",Tt,s),a.addEventListener("pointerup",Tt,s),this.#s?.()}if(Tt(e),e.touches.length!==2||this.#n?.()){this.#c=null;return}let[t,n]=e.touches;t.identifier>n.identifier&&([t,n]=[n,t]),this.#c={touch0X:t.screenX,touch0Y:t.screenY,touch1X:n.screenX,touch1Y:n.screenY}}#m(e){if(!this.#c||e.touches.length!==2)return;Tt(e);let[t,n]=e.touches;t.identifier>n.identifier&&([t,n]=[n,t]);let{screenX:i,screenY:a}=t,{screenX:s,screenY:o}=n,c=this.#c,{touch0X:u,touch0Y:h,touch1X:f,touch1Y:d}=c,p=f-u,m=d-h,g=s-i,x=o-a,y=Math.hypot(g,x)||1,b=Math.hypot(p,m)||1;if(!this.#t&&Math.abs(b-y)<=r.MIN_TOUCH_DISTANCE_TO_PINCH)return;if(c.touch0X=i,c.touch0Y=a,c.touch1X=s,c.touch1Y=o,!this.#t){this.#t=!0;return}let v=[(i+s)/2,(a+o)/2];this.#i?.(v,b,y)}#p(e){e.touches.length>=2||(this.#h&&(this.#h.abort(),this.#h=null,this.#a?.()),this.#c&&(Tt(e),this.#c=null,this.#t=!1))}destroy(){this.#f?.abort(),this.#f=null,this.#o?.abort(),this.#o=null}},gt=class r{#e=null;#t=null;#n=null;#r=null;#s=null;#i=!1;#a=null;#o="";#l=null;#c=null;#f=null;#h=null;#d=null;#m="";#p=!1;#u=null;#g=!1;#x=!1;#y=!1;#v=null;#E=0;#D=0;#b=null;#S=null;isSelected=!1;_isCopy=!1;_editToolbar=null;_initialOptions=Object.create(null);_initialData=null;_isVisible=!0;_uiManager=null;_focusEventsAllowed=!0;static _l10n=null;static _l10nResizer=null;#_=!1;#T=r._zIndex++;static _borderLineWidth=-1;static _colorManager=new cd;static _zIndex=1;static _telemetryTimeout=1e3;static get _resizerKeyboardManager(){let e=r.prototype._resizeWithKeyboard,t=Xi.TRANSLATE_SMALL,n=Xi.TRANSLATE_BIG;return Ge(this,"_resizerKeyboardManager",new Gi([[["ArrowLeft","mac+ArrowLeft"],e,{args:[-t,0]}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],e,{args:[-n,0]}],[["ArrowRight","mac+ArrowRight"],e,{args:[t,0]}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],e,{args:[n,0]}],[["ArrowUp","mac+ArrowUp"],e,{args:[0,-t]}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],e,{args:[0,-n]}],[["ArrowDown","mac+ArrowDown"],e,{args:[0,t]}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],e,{args:[0,n]}],[["Escape","mac+Escape"],r.prototype._stopResizingWithKeyboard]]))}constructor(e){this.parent=e.parent,this.id=e.id,this.width=this.height=null,this.pageIndex=e.parent.pageIndex,this.name=e.name,this.div=null,this._uiManager=e.uiManager,this.annotationElementId=null,this._willKeepAspectRatio=!1,this._initialOptions.isCentered=e.isCentered,this._structTreeParentId=null,this.annotationElementId=e.annotationElementId||null,this.creationDate=e.creationDate||new Date,this.modificationDate=e.modificationDate||null;let{rotation:t,rawDims:{pageWidth:n,pageHeight:i,pageX:a,pageY:s}}=this.parent.viewport;this.rotation=t,this.pageRotation=(360+t-this._uiManager.viewParameters.rotation)%360,this.pageDimensions=[n,i],this.pageTranslation=[a,s];let[o,c]=this.parentDimensions;this.x=e.x/o,this.y=e.y/c,this.isAttachedToDOM=!1,this.deleted=!1}get editorType(){return Object.getPrototypeOf(this).constructor._type}get mode(){return Object.getPrototypeOf(this).constructor._editorType}static get isDrawer(){return!1}static get _defaultLineColor(){return Ge(this,"_defaultLineColor",this._colorManager.getHexCode("CanvasText"))}static deleteAnnotationElement(e){let t=new ld({id:e.parent.getNextId(),parent:e.parent,uiManager:e._uiManager});t.annotationElementId=e.annotationElementId,t.deleted=!0,t._uiManager.addToAnnotationStorage(t)}static initialize(e,t){if(r._l10n??=e,r._l10nResizer||=Object.freeze({topLeft:"pdfjs-editor-resizer-top-left",topMiddle:"pdfjs-editor-resizer-top-middle",topRight:"pdfjs-editor-resizer-top-right",middleRight:"pdfjs-editor-resizer-middle-right",bottomRight:"pdfjs-editor-resizer-bottom-right",bottomMiddle:"pdfjs-editor-resizer-bottom-middle",bottomLeft:"pdfjs-editor-resizer-bottom-left",middleLeft:"pdfjs-editor-resizer-middle-left"}),r._borderLineWidth!==-1)return;let n=getComputedStyle(document.documentElement);r._borderLineWidth=parseFloat(n.getPropertyValue("--outline-width"))||0}static updateDefaultParams(e,t){}static get defaultPropertiesToUpdate(){return[]}static isHandlingMimeForPasting(e){return!1}static paste(e,t){dt("Not implemented")}get propertiesToUpdate(){return[]}get _isDraggable(){return this.#_}set _isDraggable(e){this.#_=e,this.div?.classList.toggle("draggable",e)}get uid(){return this.annotationElementId||this.id}get isEnterHandled(){return!0}center(){let[e,t]=this.pageDimensions;switch(this.parentRotation){case 90:this.x-=this.height*t/(e*2),this.y+=this.width*e/(t*2);break;case 180:this.x+=this.width/2,this.y+=this.height/2;break;case 270:this.x+=this.height*t/(e*2),this.y-=this.width*e/(t*2);break;default:this.x-=this.width/2,this.y-=this.height/2;break}this.fixAndSetPosition()}addCommands(e){this._uiManager.addCommands(e)}get currentLayer(){return this._uiManager.currentLayer}setInBackground(){this.div.style.zIndex=0}setInForeground(){this.div.style.zIndex=this.#T}setParent(e){e!==null?(this.pageIndex=e.pageIndex,this.pageDimensions=e.pageDimensions):(this.#N(),this.#h?.remove(),this.#h=null),this.parent=e}focusin(e){this._focusEventsAllowed&&(this.#p?this.#p=!1:this.parent.setSelected(this))}focusout(e){!this._focusEventsAllowed||!this.isAttachedToDOM||e.relatedTarget?.closest(`#${this.id}`)||(e.preventDefault(),this.parent?.isMultipleSelection||this.commitOrRemove())}commitOrRemove(){this.isEmpty()?this.remove():this.commit()}commit(){this.isInEditMode()&&this.addToAnnotationStorage()}addToAnnotationStorage(){this._uiManager.addToAnnotationStorage(this)}setAt(e,t,n,i){let[a,s]=this.parentDimensions;[n,i]=this.screenToPageTranslation(n,i),this.x=(e+n)/a,this.y=(t+i)/s,this.fixAndSetPosition()}_moveAfterPaste(e,t){let[n,i]=this.parentDimensions;this.setAt(e*n,t*i,this.width*n,this.height*i),this._onTranslated()}#k([e,t],n,i){[n,i]=this.screenToPageTranslation(n,i),this.x+=n/e,this.y+=i/t,this._onTranslating(this.x,this.y),this.fixAndSetPosition()}translate(e,t){this.#k(this.parentDimensions,e,t)}translateInPage(e,t){this.#u||=[this.x,this.y,this.width,this.height],this.#k(this.pageDimensions,e,t),this.div.scrollIntoView({block:"nearest"})}translationDone(){this._onTranslated(this.x,this.y)}drag(e,t){this.#u||=[this.x,this.y,this.width,this.height];let{div:n,parentDimensions:[i,a]}=this;if(this.x+=e/i,this.y+=t/a,this.parent&&(this.x<0||this.x>1||this.y<0||this.y>1)){let{x:f,y:d}=this.div.getBoundingClientRect();this.parent.findNewParent(this,f,d)&&(this.x-=Math.floor(this.x),this.y-=Math.floor(this.y))}let{x:s,y:o}=this,[c,u]=this.getBaseTranslation();s+=c,o+=u;let{style:h}=n;h.left=`${(100*s).toFixed(2)}%`,h.top=`${(100*o).toFixed(2)}%`,this._onTranslating(s,o),n.scrollIntoView({block:"nearest"})}_onTranslating(e,t){}_onTranslated(e,t){}get _hasBeenMoved(){return!!this.#u&&(this.#u[0]!==this.x||this.#u[1]!==this.y)}get _hasBeenResized(){return!!this.#u&&(this.#u[2]!==this.width||this.#u[3]!==this.height)}getBaseTranslation(){let[e,t]=this.parentDimensions,{_borderLineWidth:n}=r,i=n/e,a=n/t;switch(this.rotation){case 90:return[-i,a];case 180:return[i,a];case 270:return[i,-a];default:return[-i,-a]}}get _mustFixPosition(){return!0}fixAndSetPosition(e=this.rotation){let{div:{style:t},pageDimensions:[n,i]}=this,{x:a,y:s,width:o,height:c}=this;if(o*=n,c*=i,a*=n,s*=i,this._mustFixPosition)switch(e){case 0:a=br(a,0,n-o),s=br(s,0,i-c);break;case 90:a=br(a,0,n-c),s=br(s,o,i);break;case 180:a=br(a,o,n),s=br(s,c,i);break;case 270:a=br(a,c,n),s=br(s,0,i-o);break}this.x=a/=n,this.y=s/=i;let[u,h]=this.getBaseTranslation();a+=u,s+=h,t.left=`${(100*a).toFixed(2)}%`,t.top=`${(100*s).toFixed(2)}%`,this.moveInDOM()}static#C(e,t,n){switch(n){case 90:return[t,-e];case 180:return[-e,-t];case 270:return[-t,e];default:return[e,t]}}screenToPageTranslation(e,t){return r.#C(e,t,this.parentRotation)}pageTranslationToScreen(e,t){return r.#C(e,t,360-this.parentRotation)}#F(e){switch(e){case 90:{let[t,n]=this.pageDimensions;return[0,-t/n,n/t,0]}case 180:return[-1,0,0,-1];case 270:{let[t,n]=this.pageDimensions;return[0,t/n,-n/t,0]}default:return[1,0,0,1]}}get parentScale(){return this._uiManager.viewParameters.realScale}get parentRotation(){return(this._uiManager.viewParameters.rotation+this.pageRotation)%360}get parentDimensions(){let{parentScale:e,pageDimensions:[t,n]}=this;return[t*e,n*e]}setDims(){let{div:{style:e},width:t,height:n}=this;e.width=`${(100*t).toFixed(2)}%`,e.height=`${(100*n).toFixed(2)}%`}getInitialTranslation(){return[0,0]}#P(){if(this.#l)return;this.#l=document.createElement("div"),this.#l.classList.add("resizers");let e=this._willKeepAspectRatio?["topLeft","topRight","bottomRight","bottomLeft"]:["topLeft","topMiddle","topRight","middleRight","bottomRight","bottomMiddle","bottomLeft","middleLeft"],t=this._uiManager._signal;for(let n of e){let i=document.createElement("div");this.#l.append(i),i.classList.add("resizer",n),i.setAttribute("data-resizer-name",n),i.addEventListener("pointerdown",this.#I.bind(this,n),{signal:t}),i.addEventListener("contextmenu",en,{signal:t}),i.tabIndex=-1}this.div.prepend(this.#l)}#I(e,t){t.preventDefault();let{isMac:n}=Mt.platform;if(t.button!==0||t.ctrlKey&&n)return;this.#n?.toggle(!1);let i=this._isDraggable;this._isDraggable=!1,this.#c=[t.screenX,t.screenY];let a=new AbortController,s=this._uiManager.combinedSignal(a);this.parent.togglePointerEvents(!1),window.addEventListener("pointermove",this.#B.bind(this,e),{passive:!0,capture:!0,signal:s}),window.addEventListener("touchmove",Tt,{passive:!1,signal:s}),window.addEventListener("contextmenu",en,{signal:s}),this.#f={savedX:this.x,savedY:this.y,savedWidth:this.width,savedHeight:this.height};let o=this.parent.div.style.cursor,c=this.div.style.cursor;this.div.style.cursor=this.parent.div.style.cursor=window.getComputedStyle(t.target).cursor;let u=()=>{a.abort(),this.parent.togglePointerEvents(!0),this.#n?.toggle(!0),this._isDraggable=i,this.parent.div.style.cursor=o,this.div.style.cursor=c,this.#L()};window.addEventListener("pointerup",u,{signal:s}),window.addEventListener("blur",u,{signal:s})}#O(e,t,n,i){this.width=n,this.height=i,this.x=e,this.y=t,this.setDims(),this.fixAndSetPosition(),this._onResized()}_onResized(){}#L(){if(!this.#f)return;let{savedX:e,savedY:t,savedWidth:n,savedHeight:i}=this.#f;this.#f=null;let a=this.x,s=this.y,o=this.width,c=this.height;a===e&&s===t&&o===n&&c===i||this.addCommands({cmd:this.#O.bind(this,a,s,o,c),undo:this.#O.bind(this,e,t,n,i),mustExec:!0})}static _round(e){return Math.round(e*1e4)/1e4}#B(e,t){let[n,i]=this.parentDimensions,a=this.x,s=this.y,o=this.width,c=this.height,u=r.MIN_SIZE/n,h=r.MIN_SIZE/i,f=this.#F(this.rotation),d=(U,O)=>[f[0]*U+f[2]*O,f[1]*U+f[3]*O],p=this.#F(360-this.rotation),m=(U,O)=>[p[0]*U+p[2]*O,p[1]*U+p[3]*O],g,x,y=!1,b=!1;switch(e){case"topLeft":y=!0,g=(U,O)=>[0,0],x=(U,O)=>[U,O];break;case"topMiddle":g=(U,O)=>[U/2,0],x=(U,O)=>[U/2,O];break;case"topRight":y=!0,g=(U,O)=>[U,0],x=(U,O)=>[0,O];break;case"middleRight":b=!0,g=(U,O)=>[U,O/2],x=(U,O)=>[0,O/2];break;case"bottomRight":y=!0,g=(U,O)=>[U,O],x=(U,O)=>[0,0];break;case"bottomMiddle":g=(U,O)=>[U/2,O],x=(U,O)=>[U/2,0];break;case"bottomLeft":y=!0,g=(U,O)=>[0,O],x=(U,O)=>[U,0];break;case"middleLeft":b=!0,g=(U,O)=>[0,O/2],x=(U,O)=>[U,O/2];break}let v=g(o,c),_=x(o,c),A=d(..._),E=r._round(a+A[0]),T=r._round(s+A[1]),S=1,C=1,F,k;if(t.fromKeyboard)({deltaX:F,deltaY:k}=t);else{let{screenX:U,screenY:O}=t,[P,R]=this.#c;[F,k]=this.screenToPageTranslation(U-P,O-R),this.#c[0]=U,this.#c[1]=O}if([F,k]=m(F/n,k/i),y){let U=Math.hypot(o,c);S=C=Math.max(Math.min(Math.hypot(_[0]-v[0]-F,_[1]-v[1]-k)/U,1/o,1/c),u/o,h/c)}else b?S=br(Math.abs(_[0]-v[0]-F),u,1)/o:C=br(Math.abs(_[1]-v[1]-k),h,1)/c;let D=r._round(o*S),B=r._round(c*C);A=d(...x(D,B));let q=E-A[0],j=T-A[1];this.#u||=[this.x,this.y,this.width,this.height],this.width=D,this.height=B,this.x=q,this.y=j,this.setDims(),this.fixAndSetPosition(),this._onResizing()}_onResizing(){}altTextFinish(){this.#n?.finish()}get toolbarButtons(){return null}async addEditToolbar(){if(this._editToolbar||this.#x)return this._editToolbar;this._editToolbar=new nd(this),this.div.append(this._editToolbar.render());let{toolbarButtons:e}=this;if(e)for(let[t,n]of e)await this._editToolbar.addButton(t,n);return this.hasComment||this._editToolbar.addButton("comment",this.addCommentButton()),this._editToolbar.addButton("delete"),this._editToolbar}addCommentButtonInToolbar(){this._editToolbar?.addButtonBefore("comment",this.addCommentButton(),".deleteButton")}removeCommentButtonFromToolbar(){this._editToolbar?.removeButton("comment")}removeEditToolbar(){this._editToolbar?.remove(),this._editToolbar=null,this.#n?.destroy()}addContainer(e){let t=this._editToolbar?.div;t?t.before(e):this.div.append(e)}getClientDimensions(){return this.div.getBoundingClientRect()}createAltText(){return this.#n||(Il.initialize(r._l10n),this.#n=new Il(this),this.#e&&(this.#n.data=this.#e,this.#e=null)),this.#n}get altTextData(){return this.#n?.data}set altTextData(e){this.#n&&(this.#n.data=e)}get guessedAltText(){return this.#n?.guessedText}async setGuessedAltText(e){await this.#n?.setGuessedText(e)}serializeAltText(e){return this.#n?.serialize(e)}hasAltText(){return!!this.#n&&!this.#n.isEmpty()}hasAltTextData(){return this.#n?.hasData()??!1}focusCommentButton(){this.#r?.focusButton()}addCommentButton(){return this.#r||=new La(this)}addStandaloneCommentButton(){if(this.#s){this._uiManager.isEditingMode()&&this.#s.classList.remove("hidden");return}this.hasComment&&(this.#s=this.#r.renderForStandalone(),this.div.append(this.#s))}removeStandaloneCommentButton(){this.#r.removeStandaloneCommentButton(),this.#s=null}hideStandaloneCommentButton(){this.#s?.classList.add("hidden")}get comment(){let{data:{richText:e,text:t,date:n,deleted:i}}=this.#r;return{text:t,richText:e,date:n,deleted:i,color:this.getNonHCMColor(),opacity:this.opacity??1}}set comment(e){this.#r||=new La(this),this.#r.data=e,this.hasComment?(this.removeCommentButtonFromToolbar(),this.addStandaloneCommentButton(),this._uiManager.updateComment(this)):(this.addCommentButtonInToolbar(),this.removeStandaloneCommentButton(),this._uiManager.removeComment(this))}setCommentData({comment:e,popupRef:t,richText:n}){if(!t||(this.#r||=new La(this),this.#r.setInitialText(e,n),!this.annotationElementId))return;let i=this._uiManager.getAndRemoveDataFromAnnotationStorage(this.annotationElementId);i&&this.updateFromAnnotationLayer(i)}get hasEditedComment(){return this.#r?.hasBeenEdited()}get hasDeletedComment(){return this.#r?.isDeleted()}get hasComment(){return!!this.#r&&!this.#r.isEmpty()&&!this.#r.isDeleted()}async editComment(e){this.#r||=new La(this),this.#r.edit(e)}toggleComment(e,t=void 0){this.hasComment&&this._uiManager.toggleComment(this,e,t)}setSelectedCommentButton(e){this.#r.setSelectedButton(e)}addComment(e){if(this.hasEditedComment){let[,,,i]=e.rect,[a]=this.pageDimensions,[s]=this.pageTranslation,o=s+a+1,c=i-100,u=o+180;e.popup={contents:this.comment.text,deleted:this.comment.deleted,rect:[o,c,u,i]}}}updateFromAnnotationLayer({popup:{contents:e,deleted:t}}){this.#r.data=t?null:e}get parentBoundingClientRect(){return this.parent.boundingClientRect}render(){let e=this.div=document.createElement("div");e.setAttribute("data-editor-rotation",(360-this.rotation)%360),e.className=this.name,e.setAttribute("id",this.id),e.tabIndex=this.#i?-1:0,e.setAttribute("role","application"),this.defaultL10nId&&e.setAttribute("data-l10n-id",this.defaultL10nId),this._isVisible||e.classList.add("hidden"),this.setInForeground(),this.#H();let[t,n]=this.parentDimensions;this.parentRotation%180!==0&&(e.style.maxWidth=`${(100*n/t).toFixed(2)}%`,e.style.maxHeight=`${(100*t/n).toFixed(2)}%`);let[i,a]=this.getInitialTranslation();return this.translate(i,a),ux(this,e,["keydown","pointerdown","dblclick"]),this.isResizable&&this._uiManager._supportsPinchToZoom&&(this.#S||=new Rl({container:e,isPinchingDisabled:()=>!this.isSelected,onPinchStart:this.#j.bind(this),onPinching:this.#A.bind(this),onPinchEnd:this.#w.bind(this),signal:this._uiManager._signal})),this.addStandaloneCommentButton(),this._uiManager._editorUndoBar?.hide(),e}#j(){this.#f={savedX:this.x,savedY:this.y,savedWidth:this.width,savedHeight:this.height},this.#n?.toggle(!1),this.parent.togglePointerEvents(!1)}#A(e,t,n){let a=.7*(n/t)+1-.7;if(a===1)return;let s=this.#F(this.rotation),o=(E,T)=>[s[0]*E+s[2]*T,s[1]*E+s[3]*T],[c,u]=this.parentDimensions,h=this.x,f=this.y,d=this.width,p=this.height,m=r.MIN_SIZE/c,g=r.MIN_SIZE/u;a=Math.max(Math.min(a,1/d,1/p),m/d,g/p);let x=r._round(d*a),y=r._round(p*a);if(x===d&&y===p)return;this.#u||=[h,f,d,p];let b=o(d/2,p/2),v=r._round(h+b[0]),_=r._round(f+b[1]),A=o(x/2,y/2);this.x=v-A[0],this.y=_-A[1],this.width=x,this.height=y,this.setDims(),this.fixAndSetPosition(),this._onResizing()}#w(){this.#n?.toggle(!0),this.parent.togglePointerEvents(!0),this.#L()}pointerdown(e){let{isMac:t}=Mt.platform;if(e.button!==0||e.ctrlKey&&t){e.preventDefault();return}if(this.#p=!0,this._isDraggable){this.#M(e);return}this.#R(e)}#R(e){let{isMac:t}=Mt.platform;e.ctrlKey&&!t||e.shiftKey||e.metaKey&&t?this.parent.toggleSelected(this):this.parent.setSelected(this)}#M(e){let{isSelected:t}=this;this._uiManager.setUpDragSession();let n=!1,i=new AbortController,a=this._uiManager.combinedSignal(i),s={capture:!0,passive:!1,signal:a},o=u=>{i.abort(),this.#a=null,this.#p=!1,this._uiManager.endDragSession()||this.#R(u),n&&this._onStopDragging()};t&&(this.#E=e.clientX,this.#D=e.clientY,this.#a=e.pointerId,this.#o=e.pointerType,window.addEventListener("pointermove",u=>{n||(n=!0,this._uiManager.toggleComment(this,!0,!1),this._onStartDragging());let{clientX:h,clientY:f,pointerId:d}=u;if(d!==this.#a){Tt(u);return}let[p,m]=this.screenToPageTranslation(h-this.#E,f-this.#D);this.#E=h,this.#D=f,this._uiManager.dragSelectedEditors(p,m)},s),window.addEventListener("touchmove",Tt,s),window.addEventListener("pointerdown",u=>{u.pointerType===this.#o&&(this.#S||u.isPrimary)&&o(u),Tt(u)},s));let c=u=>{if(!this.#a||this.#a===u.pointerId){o(u);return}Tt(u)};window.addEventListener("pointerup",c,{signal:a}),window.addEventListener("blur",c,{signal:a})}_onStartDragging(){}_onStopDragging(){}moveInDOM(){this.#v&&clearTimeout(this.#v),this.#v=setTimeout(()=>{this.#v=null,this.parent?.moveEditorInDOM(this)},0)}_setParentAndPosition(e,t,n){e.changeParent(this),this.x=t,this.y=n,this.fixAndSetPosition(),this._onTranslated()}getRect(e,t,n=this.rotation){let i=this.parentScale,[a,s]=this.pageDimensions,[o,c]=this.pageTranslation,u=e/i,h=t/i,f=this.x*a,d=this.y*s,p=this.width*a,m=this.height*s;switch(n){case 0:return[f+u+o,s-d-h-m+c,f+u+p+o,s-d-h+c];case 90:return[f+h+o,s-d+u+c,f+h+m+o,s-d+u+p+c];case 180:return[f-u-p+o,s-d+h+c,f-u+o,s-d+h+m+c];case 270:return[f-h-m+o,s-d-u-p+c,f-h+o,s-d-u+c];default:throw new Error("Invalid rotation")}}getRectInCurrentCoords(e,t){let[n,i,a,s]=e,o=a-n,c=s-i;switch(this.rotation){case 0:return[n,t-s,o,c];case 90:return[n,t-i,c,o];case 180:return[a,t-i,o,c];case 270:return[a,t-s,c,o];default:throw new Error("Invalid rotation")}}getPDFRect(){return this.getRect(0,0)}getNonHCMColor(){return this.color&&r._colorManager.convert(this._uiManager.getNonHCMColor(this.color))}onUpdatedColor(){this.#r?.onUpdatedColor()}getData(){let{comment:{text:e,color:t,date:n,opacity:i,deleted:a,richText:s},uid:o,pageIndex:c,creationDate:u,modificationDate:h}=this;return{id:o,pageIndex:c,rect:this.getPDFRect(),richText:s,contentsObj:{str:e},creationDate:u,modificationDate:n||h,popupRef:!a,color:t,opacity:i}}onceAdded(e){}isEmpty(){return!1}enableEditMode(){return this.isInEditMode()?!1:(this.parent.setEditingState(!1),this.#x=!0,!0)}disableEditMode(){return this.isInEditMode()?(this.parent.setEditingState(!0),this.#x=!1,!0):!1}isInEditMode(){return this.#x}shouldGetKeyboardEvents(){return this.#y}needsToBeRebuilt(){return this.div&&!this.isAttachedToDOM}get isOnScreen(){let{top:e,left:t,bottom:n,right:i}=this.getClientDimensions(),{innerHeight:a,innerWidth:s}=window;return t<s&&i>0&&e<a&&n>0}#H(){if(this.#d||!this.div)return;this.#d=new AbortController;let e=this._uiManager.combinedSignal(this.#d);this.div.addEventListener("focusin",this.focusin.bind(this),{signal:e}),this.div.addEventListener("focusout",this.focusout.bind(this),{signal:e})}rebuild(){this.#H()}rotate(e){}resize(){}serializeDeleted(){return{id:this.annotationElementId,deleted:!0,pageIndex:this.pageIndex,popupRef:this._initialData?.popupRef||""}}serialize(e=!1,t=null){return{annotationType:this.mode,pageIndex:this.pageIndex,rect:this.getPDFRect(),rotation:this.rotation,structTreeParentId:this._structTreeParentId,popupRef:this._initialData?.popupRef||""}}static async deserialize(e,t,n){let i=new this.prototype.constructor({parent:t,id:t.getNextId(),uiManager:n,annotationElementId:e.annotationElementId,creationDate:e.creationDate,modificationDate:e.modificationDate});i.rotation=e.rotation,i.#e=e.accessibilityData,i._isCopy=e.isCopy||!1;let[a,s]=i.pageDimensions,[o,c,u,h]=i.getRectInCurrentCoords(e.rect,s);return i.x=o/a,i.y=c/s,i.width=u/a,i.height=h/s,i}get hasBeenModified(){return!!this.annotationElementId&&(this.deleted||this.serialize()!==null)}remove(){if(this.#d?.abort(),this.#d=null,this.isEmpty()||this.commit(),this.parent?this.parent.remove(this):this._uiManager.removeEditor(this),this.#v&&(clearTimeout(this.#v),this.#v=null),this.#N(),this.removeEditToolbar(),this.#b){for(let e of this.#b.values())clearTimeout(e);this.#b=null}this.parent=null,this.#S?.destroy(),this.#S=null}get isResizable(){return!1}makeResizable(){this.isResizable&&(this.#P(),this.#l.classList.remove("hidden"))}get toolbarPosition(){return null}get commentButtonPosition(){return this._uiManager.direction==="ltr"?[1,0]:[0,0]}get commentButtonPositionInPage(){let{commentButtonPosition:[e,t]}=this,[n,i,a,s]=this.getPDFRect();return[r._round(n+(a-n)*e),r._round(i+(s-i)*(1-t))]}get commentButtonColor(){return this._uiManager.makeCommentColor(this.getNonHCMColor(),this.opacity)}get commentPopupPosition(){return this.#r.commentPopupPositionInLayer}set commentPopupPosition(e){this.#r.commentPopupPositionInLayer=e}hasDefaultPopupPosition(){return this.#r.hasDefaultPopupPosition()}get commentButtonWidth(){return this.#r.commentButtonWidth}get elementBeforePopup(){return this.div}setCommentButtonStates(e){this.#r.setCommentButtonStates(e)}keydown(e){if(!this.isResizable||e.target!==this.div||e.key!=="Enter")return;this._uiManager.setSelected(this),this.#f={savedX:this.x,savedY:this.y,savedWidth:this.width,savedHeight:this.height};let t=this.#l.children;if(!this.#t){this.#t=Array.from(t);let s=this.#$.bind(this),o=this.#X.bind(this),c=this._uiManager._signal;for(let u of this.#t){let h=u.getAttribute("data-resizer-name");u.setAttribute("role","spinbutton"),u.addEventListener("keydown",s,{signal:c}),u.addEventListener("blur",o,{signal:c}),u.addEventListener("focus",this.#q.bind(this,h),{signal:c}),u.setAttribute("data-l10n-id",r._l10nResizer[h])}}let n=this.#t[0],i=0;for(let s of t){if(s===n)break;i++}let a=(360-this.rotation+this.parentRotation)%360/90*(this.#t.length/4);if(a!==i){if(a<i)for(let o=0;o<i-a;o++)this.#l.append(this.#l.firstChild);else if(a>i)for(let o=0;o<a-i;o++)this.#l.firstChild.before(this.#l.lastChild);let s=0;for(let o of t){let u=this.#t[s++].getAttribute("data-resizer-name");o.setAttribute("data-l10n-id",r._l10nResizer[u])}}this.#V(0),this.#y=!0,this.#l.firstChild.focus({focusVisible:!0}),e.preventDefault(),e.stopImmediatePropagation()}#$(e){r._resizerKeyboardManager.exec(this,e)}#X(e){this.#y&&e.relatedTarget?.parentNode!==this.#l&&this.#N()}#q(e){this.#m=this.#y?e:""}#V(e){if(this.#t)for(let t of this.#t)t.tabIndex=e}_resizeWithKeyboard(e,t){this.#y&&this.#B(this.#m,{deltaX:e,deltaY:t,fromKeyboard:!0})}#N(){this.#y=!1,this.#V(-1),this.#L()}_stopResizingWithKeyboard(){this.#N(),this.div.focus()}select(){if(this.isSelected&&this._editToolbar){this._editToolbar.show();return}if(this.isSelected=!0,this.makeResizable(),this.div?.classList.add("selectedEditor"),!this._editToolbar){this.addEditToolbar().then(()=>{this.div?.classList.contains("selectedEditor")&&this._editToolbar?.show()});return}this._editToolbar?.show(),this.#n?.toggleAltTextBadge(!1)}focus(){this.div&&!this.div.contains(document.activeElement)&&setTimeout(()=>this.div?.focus({preventScroll:!0}),0)}unselect(){this.isSelected&&(this.isSelected=!1,this.#l?.classList.add("hidden"),this.div?.classList.remove("selectedEditor"),this.div?.contains(document.activeElement)&&this._uiManager.currentLayer.div.focus({preventScroll:!0}),this._editToolbar?.hide(),this.#n?.toggleAltTextBadge(!0),this.hasComment&&this._uiManager.toggleComment(this,!1,!1))}updateParams(e,t){}disableEditing(){}enableEditing(){}get canChangeContent(){return!1}enterInEditMode(){this.canChangeContent&&(this.enableEditMode(),this.div.focus())}dblclick(e){e.target.nodeName!=="BUTTON"&&(this.enterInEditMode(),this.parent.updateToolbar({mode:this.constructor._editorType,editId:this.id}))}getElementForAltText(){return this.div}get contentDiv(){return this.div}get isEditing(){return this.#g}set isEditing(e){this.#g=e,this.parent&&(e?(this.parent.setSelected(this),this.parent.setActiveEditor(this)):this.parent.setActiveEditor(null))}static get MIN_SIZE(){return 16}static canCreateNewEmptyEditor(){return!0}get telemetryInitialData(){return{action:"added"}}get telemetryFinalData(){return null}_reportTelemetry(e,t=!1){if(t){this.#b||=new Map;let{action:n}=e,i=this.#b.get(n);i&&clearTimeout(i),i=setTimeout(()=>{this._reportTelemetry(e),this.#b.delete(n),this.#b.size===0&&(this.#b=null)},r._telemetryTimeout),this.#b.set(n,i);return}e.type||=this.editorType,this._uiManager._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",data:e}})}show(e=this._isVisible){this.div.classList.toggle("hidden",!e),this._isVisible=e}enable(){this.div&&(this.div.tabIndex=0),this.#i=!1}disable(){this.div&&(this.div.tabIndex=-1),this.#i=!0}updateFakeAnnotationElement(e){if(!this.#h&&!this.deleted){this.#h=e.addFakeAnnotation(this);return}if(this.deleted){this.#h.remove(),this.#h=null;return}(this.hasEditedComment||this._hasBeenMoved||this._hasBeenResized)&&this.#h.updateEdited({rect:this.getPDFRect(),popup:this.comment})}renderAnnotationElement(e){if(this.deleted)return e.hide(),null;let t=e.container.querySelector(".annotationContent");if(!t)t=document.createElement("div"),t.classList.add("annotationContent",this.editorType),e.container.prepend(t);else if(t.nodeName==="CANVAS"){let n=t;t=document.createElement("div"),t.classList.add("annotationContent",this.editorType),n.before(t)}return t}resetAnnotationElement(e){let{firstChild:t}=e.container;t?.nodeName==="DIV"&&t.classList.contains("annotationContent")&&t.remove()}},ld=class extends gt{constructor(e){super(e),this.annotationElementId=e.annotationElementId,this.deleted=!0}serialize(){return this.serializeDeleted()}},j1=3285377520,Jr=4294901760,Sn=65535,Ol=class{constructor(e){this.h1=e?e&4294967295:j1,this.h2=e?e&4294967295:j1}update(e){let t,n;if(typeof e=="string"){t=new Uint8Array(e.length*2),n=0;for(let g=0,x=e.length;g<x;g++){let y=e.charCodeAt(g);y<=255?t[n++]=y:(t[n++]=y>>>8,t[n++]=y&255)}}else if(ArrayBuffer.isView(e))t=e.slice(),n=t.byteLength;else throw new Error("Invalid data format, must be a string or TypedArray.");let i=n>>2,a=n-i*4,s=new Uint32Array(t.buffer,0,i),o=0,c=0,u=this.h1,h=this.h2,f=3432918353,d=461845907,p=f&Sn,m=d&Sn;for(let g=0;g<i;g++)g&1?(o=s[g],o=o*f&Jr|o*p&Sn,o=o<<15|o>>>17,o=o*d&Jr|o*m&Sn,u^=o,u=u<<13|u>>>19,u=u*5+3864292196):(c=s[g],c=c*f&Jr|c*p&Sn,c=c<<15|c>>>17,c=c*d&Jr|c*m&Sn,h^=c,h=h<<13|h>>>19,h=h*5+3864292196);switch(o=0,a){case 3:o^=t[i*4+2]<<16;case 2:o^=t[i*4+1]<<8;case 1:o^=t[i*4],o=o*f&Jr|o*p&Sn,o=o<<15|o>>>17,o=o*d&Jr|o*m&Sn,i&1?u^=o:h^=o}this.h1=u,this.h2=h}hexdigest(){let e=this.h1,t=this.h2;return e^=t>>>1,e=e*3981806797&Jr|e*36045&Sn,t=t*4283543511&Jr|((t<<16|e>>>16)*2950163797&Jr)>>>16,e^=t>>>1,e=e*444984403&Jr|e*60499&Sn,t=t*3301882366&Jr|((t<<16|e>>>16)*3120437893&Jr)>>>16,e^=t>>>1,(e>>>0).toString(16).padStart(8,"0")+(t>>>0).toString(16).padStart(8,"0")}},ud=Object.freeze({map:null,hash:"",transfer:void 0}),ho=class{#e=!1;#t=null;#n=null;#r=new Map;constructor(){this.onSetModified=null,this.onResetModified=null,this.onAnnotationEditor=null}getValue(e,t){let n=this.#r.get(e);return n===void 0?t:Object.assign(t,n)}getRawValue(e){return this.#r.get(e)}remove(e){let t=this.#r.get(e);if(t!==void 0&&(t instanceof gt&&this.#n.delete(t.annotationElementId),this.#r.delete(e),this.#r.size===0&&this.resetModified(),typeof this.onAnnotationEditor=="function")){for(let n of this.#r.values())if(n instanceof gt)return;this.onAnnotationEditor(null)}}setValue(e,t){let n=this.#r.get(e),i=!1;if(n!==void 0)for(let[a,s]of Object.entries(t))n[a]!==s&&(i=!0,n[a]=s);else i=!0,this.#r.set(e,t);i&&this.#s(),t instanceof gt&&((this.#n||=new Map).set(t.annotationElementId,t),typeof this.onAnnotationEditor=="function"&&this.onAnnotationEditor(t.constructor._type))}has(e){return this.#r.has(e)}get size(){return this.#r.size}#s(){this.#e||(this.#e=!0,typeof this.onSetModified=="function"&&this.onSetModified())}resetModified(){this.#e&&(this.#e=!1,typeof this.onResetModified=="function"&&this.onResetModified())}get print(){return new Bl(this)}get serializable(){if(this.#r.size===0)return ud;let e=new Map,t=new Ol,n=[],i=Object.create(null),a=!1;for(let[s,o]of this.#r){let c=o instanceof gt?o.serialize(!1,i):o;c&&(e.set(s,c),t.update(`${s}:${JSON.stringify(c)}`),a||=!!c.bitmap)}if(a)for(let s of e.values())s.bitmap&&n.push(s.bitmap);return e.size>0?{map:e,hash:t.hexdigest(),transfer:n}:ud}get editorStats(){let e=null,t=new Map,n=0,i=0;for(let a of this.#r.values()){if(!(a instanceof gt)){a.popup&&(a.popup.deleted?i+=1:n+=1);continue}a.isCommentDeleted?i+=1:a.hasEditedComment&&(n+=1);let s=a.telemetryFinalData;if(!s)continue;let{type:o}=s;t.has(o)||t.set(o,Object.getPrototypeOf(a).constructor),e||=Object.create(null);let c=e[o]||=new Map;for(let[u,h]of Object.entries(s)){if(u==="type")continue;let f=c.get(u);f||(f=new Map,c.set(u,f));let d=f.get(h)??0;f.set(h,d+1)}}if((i>0||n>0)&&(e||=Object.create(null),e.comments={deleted:i,edited:n}),!e)return null;for(let[a,s]of t)e[a]=s.computeTelemetryFinalData(e[a]);return e}resetModifiedIds(){this.#t=null}updateEditor(e,t){let n=this.#n?.get(e);return n?(n.updateFromAnnotationLayer(t),!0):!1}getEditor(e){return this.#n?.get(e)||null}get modifiedIds(){if(this.#t)return this.#t;let e=[];if(this.#n)for(let t of this.#n.values())t.serialize()&&e.push(t.annotationElementId);return this.#t={ids:new Set(e),hash:e.join(",")}}[Symbol.iterator](){return this.#r.entries()}},Bl=class extends ho{#e;constructor(e){super();let{map:t,hash:n,transfer:i}=e.serializable,a=structuredClone(t,i?{transfer:i}:null);this.#e={map:a,hash:n,transfer:i}}get print(){dt("Should not call PrintAnnotationStorage.print")}get serializable(){return this.#e}get modifiedIds(){return Ge(this,"modifiedIds",{ids:new Set,hash:""})}},hd=class{#e=new Set;constructor({ownerDocument:e=globalThis.document,styleElement:t=null}){this._document=e,this.nativeFontFaces=new Set,this.styleElement=null,this.loadingRequests=[],this.loadTestFontId=0}addNativeFontFace(e){this.nativeFontFaces.add(e),this._document.fonts.add(e)}removeNativeFontFace(e){this.nativeFontFaces.delete(e),this._document.fonts.delete(e)}insertRule(e){this.styleElement||(this.styleElement=this._document.createElement("style"),this._document.documentElement.getElementsByTagName("head")[0].append(this.styleElement));let t=this.styleElement.sheet;t.insertRule(e,t.cssRules.length)}clear(){for(let e of this.nativeFontFaces)this._document.fonts.delete(e);this.nativeFontFaces.clear(),this.#e.clear(),this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}async loadSystemFont({systemFontInfo:e,disableFontFace:t,_inspectFont:n}){if(!(!e||this.#e.has(e.loadedName))){if(Ye(!t,"loadSystemFont shouldn't be called when `disableFontFace` is set."),this.isFontLoadingAPISupported){let{loadedName:i,src:a,style:s}=e,o=new FontFace(i,a,s);this.addNativeFontFace(o);try{await o.load(),this.#e.add(i),n?.(e)}catch{Ne(`Cannot load system font: ${e.baseFontName}, installing it could help to improve PDF rendering.`),this.removeNativeFontFace(o)}return}dt("Not implemented: loadSystemFont without the Font Loading API.")}}async bind(e){if(e.attached||e.missingFile&&!e.systemFontInfo)return;if(e.attached=!0,e.systemFontInfo){await this.loadSystemFont(e);return}if(this.isFontLoadingAPISupported){let n=e.createNativeFontFace();if(n){this.addNativeFontFace(n);try{await n.loaded}catch(i){throw Ne(`Failed to load font '${n.family}': '${i}'.`),e.disableFontFace=!0,i}}return}let t=e.createFontFaceRule();if(t){if(this.insertRule(t),this.isSyncFontLoadingSupported)return;await new Promise(n=>{let i=this._queueLoadingCallback(n);this._prepareFontLoadEvent(e,i)})}}get isFontLoadingAPISupported(){let e=!!this._document?.fonts;return Ge(this,"isFontLoadingAPISupported",e)}get isSyncFontLoadingSupported(){return Ge(this,"isSyncFontLoadingSupported",yr||Mt.platform.isFirefox)}_queueLoadingCallback(e){function t(){for(Ye(!i.done,"completeRequest() cannot be called twice."),i.done=!0;n.length>0&&n[0].done;){let a=n.shift();setTimeout(a.callback,0)}}let{loadingRequests:n}=this,i={done:!1,complete:t,callback:e};return n.push(i),i}get _loadTestFont(){let e=atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA==");return Ge(this,"_loadTestFont",e)}_prepareFontLoadEvent(e,t){function n(_,A){return _.charCodeAt(A)<<24|_.charCodeAt(A+1)<<16|_.charCodeAt(A+2)<<8|_.charCodeAt(A+3)&255}function i(_,A,E,T){let S=_.substring(0,A),C=_.substring(A+E);return S+T+C}let a,s,o=this._document.createElement("canvas");o.width=1,o.height=1;let c=o.getContext("2d"),u=0;function h(_,A){if(++u>30){Ne("Load test font never loaded."),A();return}if(c.font="30px "+_,c.fillText(".",0,20),c.getImageData(0,0,1,1).data[3]>0){A();return}setTimeout(h.bind(null,_,A))}let f=`lt${Date.now()}${this.loadTestFontId++}`,d=this._loadTestFont;d=i(d,976,f.length,f);let m=16,g=1482184792,x=n(d,m);for(a=0,s=f.length-3;a<s;a+=4)x=x-g+n(f,a)|0;a<f.length&&(x=x-g+n(f+"XXX",a)|0),d=i(d,m,4,$A(x));let y=`url(data:font/opentype;base64,${btoa(d)});`,b=`@font-face {font-family:"${f}";src:${y}}`;this.insertRule(b);let v=this._document.createElement("div");v.style.visibility="hidden",v.style.width=v.style.height="10px",v.style.position="absolute",v.style.top=v.style.left="0px";for(let _ of[e.loadedName,f]){let A=this._document.createElement("span");A.textContent="Hi",A.style.fontFamily=_,v.append(A)}this._document.body.append(v),h(f,()=>{v.remove(),t.complete()})}},fd=class{#e;constructor(e,t=null,n,i){this.compiledGlyphs=Object.create(null),this.#e=e,this._inspectFont=t,n&&Object.assign(this,n),i&&(this.charProcOperatorList=i)}createNativeFontFace(){if(!this.data||this.disableFontFace)return null;let e;if(!this.cssFontInfo)e=new FontFace(this.loadedName,this.data,{});else{let t={weight:this.cssFontInfo.fontWeight};this.cssFontInfo.italicAngle&&(t.style=`oblique ${this.cssFontInfo.italicAngle}deg`),e=new FontFace(this.cssFontInfo.fontFamily,this.data,t)}return this._inspectFont?.(this),e}createFontFaceRule(){if(!this.data||this.disableFontFace)return null;let e=`url(data:${this.mimetype};base64,${cx(this.data)});`,t;if(!this.cssFontInfo)t=`@font-face {font-family:"${this.loadedName}";src:${e}}`;else{let n=`font-weight: ${this.cssFontInfo.fontWeight};`;this.cssFontInfo.italicAngle&&(n+=`font-style: oblique ${this.cssFontInfo.italicAngle}deg;`),t=`@font-face {font-family:"${this.cssFontInfo.fontFamily}";${n}src:${e}}`}return this._inspectFont?.(this,e),t}getPathGenerator(e,t){if(this.compiledGlyphs[t]!==void 0)return this.compiledGlyphs[t];let n=this.loadedName+"_path_"+t,i;try{i=e.get(n)}catch(s){Ne(`getPathGenerator - ignoring character: "${s}".`)}let a=new Path2D(i||"");return this.fontExtraProperties||e.delete(n),this.compiledGlyphs[t]=a}get black(){return this.#e.black}get bold(){return this.#e.bold}get disableFontFace(){return this.#e.disableFontFace??!1}get fontExtraProperties(){return this.#e.fontExtraProperties??!1}get isInvalidPDFjsFont(){return this.#e.isInvalidPDFjsFont}get isType3Font(){return this.#e.isType3Font}get italic(){return this.#e.italic}get missingFile(){return this.#e.missingFile}get remeasure(){return this.#e.remeasure}get vertical(){return this.#e.vertical}get ascent(){return this.#e.ascent}get defaultWidth(){return this.#e.defaultWidth}get descent(){return this.#e.descent}get bbox(){return this.#e.bbox}get fontMatrix(){return this.#e.fontMatrix}get fallbackName(){return this.#e.fallbackName}get loadedName(){return this.#e.loadedName}get mimetype(){return this.#e.mimetype}get name(){return this.#e.name}get data(){return this.#e.data}clearData(){this.#e.clearData()}get cssFontInfo(){return this.#e.cssFontInfo}get systemFontInfo(){return this.#e.systemFontInfo}get defaultVMetrics(){return this.#e.defaultVMetrics}};function oS(r){if(r instanceof URL)return r.href;if(typeof r=="string"){if(yr)return r;let e=URL.parse(r,window.location);if(e)return e.href}throw new Error("Invalid PDF url data: either string or URL-object is expected in the url property.")}function cS(r){if(yr&&typeof Buffer<"u"&&r instanceof Buffer)throw new Error("Please provide binary data as `Uint8Array`, rather than `Buffer`.");if(r instanceof Uint8Array&&r.byteLength===r.buffer.byteLength)return r;if(typeof r=="string")return _o(r);if(r instanceof ArrayBuffer||ArrayBuffer.isView(r)||typeof r=="object"&&!isNaN(r?.length))return new Uint8Array(r);throw new Error("Invalid PDF binary data: either TypedArray, string, or array-like object is expected in the data property.")}function yl(r){if(typeof r!="string")return null;if(r.endsWith("/"))return r;throw new Error(`Invalid factory url: "${r}" must include trailing slash.`)}var dd=r=>typeof r=="object"&&Number.isInteger(r?.num)&&r.num>=0&&Number.isInteger(r?.gen)&&r.gen>=0,lS=r=>typeof r=="object"&&typeof r?.name=="string",uS=JA.bind(null,dd,lS),pd=class{#e=new Map;#t=Promise.resolve();postMessage(e,t){let n={data:structuredClone(e,t?{transfer:t}:null)};this.#t.then(()=>{for(let[i]of this.#e)i.call(this,n)})}addEventListener(e,t,n=null){let i=null;if(n?.signal instanceof AbortSignal){let{signal:a}=n;if(a.aborted){Ne("LoopbackPort - cannot use an `aborted` signal.");return}let s=()=>this.removeEventListener(e,t);i=()=>a.removeEventListener("abort",s),a.addEventListener("abort",s)}this.#e.set(t,i)}removeEventListener(e,t){this.#e.get(t)?.(),this.#e.delete(t)}terminate(){for(let[,e]of this.#e)e?.();this.#e.clear()}},bl={DATA:1,ERROR:2},It={CANCEL:1,CANCEL_COMPLETE:2,CLOSE:3,ENQUEUE:4,ERROR:5,PULL:6,PULL_COMPLETE:7,START_COMPLETE:8};function G1(){}function kr(r){if(r instanceof Cn||r instanceof so||r instanceof Fl||r instanceof Ha||r instanceof no)return r;switch(r instanceof Error||typeof r=="object"&&r!==null||dt('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),r.name){case"AbortException":return new Cn(r.message);case"InvalidPDFException":return new so(r.message);case"PasswordException":return new Fl(r.message,r.code);case"ResponseException":return new Ha(r.message,r.status,r.missing);case"UnknownErrorException":return new no(r.message,r.details)}return new no(r.message,r.toString())}var zi=class{#e=new AbortController;constructor(e,t,n){this.sourceName=e,this.targetName=t,this.comObj=n,this.callbackId=1,this.streamId=1,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),n.addEventListener("message",this.#t.bind(this),{signal:this.#e.signal})}#t({data:e}){if(e.targetName!==this.sourceName)return;if(e.stream){this.#r(e);return}if(e.callback){let n=e.callbackId,i=this.callbackCapabilities[n];if(!i)throw new Error(`Cannot resolve callback ${n}`);if(delete this.callbackCapabilities[n],e.callback===bl.DATA)i.resolve(e.data);else if(e.callback===bl.ERROR)i.reject(kr(e.reason));else throw new Error("Unexpected callback case");return}let t=this.actionHandler[e.action];if(!t)throw new Error(`Unknown action from worker: ${e.action}`);if(e.callbackId){let n=this.sourceName,i=e.sourceName,a=this.comObj;Promise.try(t,e.data).then(function(s){a.postMessage({sourceName:n,targetName:i,callback:bl.DATA,callbackId:e.callbackId,data:s})},function(s){a.postMessage({sourceName:n,targetName:i,callback:bl.ERROR,callbackId:e.callbackId,reason:kr(s)})});return}if(e.streamId){this.#n(e);return}t(e.data)}on(e,t){let n=this.actionHandler;if(n[e])throw new Error(`There is already an actionName called "${e}"`);n[e]=t}send(e,t,n){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,data:t},n)}sendWithPromise(e,t,n){let i=this.callbackId++,a=Promise.withResolvers();this.callbackCapabilities[i]=a;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,callbackId:i,data:t},n)}catch(s){a.reject(s)}return a.promise}sendWithStream(e,t,n,i){let a=this.streamId++,s=this.sourceName,o=this.targetName,c=this.comObj;return new ReadableStream({start:u=>{let h=Promise.withResolvers();return this.streamControllers[a]={controller:u,startCall:h,pullCall:null,cancelCall:null,isClosed:!1},c.postMessage({sourceName:s,targetName:o,action:e,streamId:a,data:t,desiredSize:u.desiredSize},i),h.promise},pull:u=>{let h=Promise.withResolvers();return this.streamControllers[a].pullCall=h,c.postMessage({sourceName:s,targetName:o,stream:It.PULL,streamId:a,desiredSize:u.desiredSize}),h.promise},cancel:u=>{Ye(u instanceof Error,"cancel must have a valid reason");let h=Promise.withResolvers();return this.streamControllers[a].cancelCall=h,this.streamControllers[a].isClosed=!0,c.postMessage({sourceName:s,targetName:o,stream:It.CANCEL,streamId:a,reason:kr(u)}),h.promise}},n)}#n(e){let t=e.streamId,n=this.sourceName,i=e.sourceName,a=this.comObj,s=this,o=this.actionHandler[e.action],c={enqueue(u,h=1,f){if(this.isCancelled)return;let d=this.desiredSize;this.desiredSize-=h,d>0&&this.desiredSize<=0&&(this.sinkCapability=Promise.withResolvers(),this.ready=this.sinkCapability.promise),a.postMessage({sourceName:n,targetName:i,stream:It.ENQUEUE,streamId:t,chunk:u},f)},close(){this.isCancelled||(this.isCancelled=!0,a.postMessage({sourceName:n,targetName:i,stream:It.CLOSE,streamId:t}),delete s.streamSinks[t])},error(u){Ye(u instanceof Error,"error must have a valid reason"),!this.isCancelled&&(this.isCancelled=!0,a.postMessage({sourceName:n,targetName:i,stream:It.ERROR,streamId:t,reason:kr(u)}))},sinkCapability:Promise.withResolvers(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:e.desiredSize,ready:null};c.sinkCapability.resolve(),c.ready=c.sinkCapability.promise,this.streamSinks[t]=c,Promise.try(o,e.data,c).then(function(){a.postMessage({sourceName:n,targetName:i,stream:It.START_COMPLETE,streamId:t,success:!0})},function(u){a.postMessage({sourceName:n,targetName:i,stream:It.START_COMPLETE,streamId:t,reason:kr(u)})})}#r(e){let t=e.streamId,n=this.sourceName,i=e.sourceName,a=this.comObj,s=this.streamControllers[t],o=this.streamSinks[t];switch(e.stream){case It.START_COMPLETE:e.success?s.startCall.resolve():s.startCall.reject(kr(e.reason));break;case It.PULL_COMPLETE:e.success?s.pullCall.resolve():s.pullCall.reject(kr(e.reason));break;case It.PULL:if(!o){a.postMessage({sourceName:n,targetName:i,stream:It.PULL_COMPLETE,streamId:t,success:!0});break}o.desiredSize<=0&&e.desiredSize>0&&o.sinkCapability.resolve(),o.desiredSize=e.desiredSize,Promise.try(o.onPull||G1).then(function(){a.postMessage({sourceName:n,targetName:i,stream:It.PULL_COMPLETE,streamId:t,success:!0})},function(u){a.postMessage({sourceName:n,targetName:i,stream:It.PULL_COMPLETE,streamId:t,reason:kr(u)})});break;case It.ENQUEUE:if(Ye(s,"enqueue should have stream controller"),s.isClosed)break;s.controller.enqueue(e.chunk);break;case It.CLOSE:if(Ye(s,"close should have stream controller"),s.isClosed)break;s.isClosed=!0,s.controller.close(),this.#s(s,t);break;case It.ERROR:Ye(s,"error should have stream controller"),s.controller.error(kr(e.reason)),this.#s(s,t);break;case It.CANCEL_COMPLETE:e.success?s.cancelCall.resolve():s.cancelCall.reject(kr(e.reason)),this.#s(s,t);break;case It.CANCEL:if(!o)break;let c=kr(e.reason);Promise.try(o.onCancel||G1,c).then(function(){a.postMessage({sourceName:n,targetName:i,stream:It.CANCEL_COMPLETE,streamId:t,success:!0})},function(u){a.postMessage({sourceName:n,targetName:i,stream:It.CANCEL_COMPLETE,streamId:t,reason:kr(u)})}),o.sinkCapability.reject(c),o.isCancelled=!0,delete this.streamSinks[t];break;default:throw new Error("Unexpected stream case")}}async#s(e,t){await Promise.allSettled([e.startCall?.promise,e.pullCall?.promise,e.cancelCall?.promise]),delete this.streamControllers[t]}destroy(){this.#e?.abort(),this.#e=null}},Nl=class{#e=!1;constructor({enableHWA:e=!1}){this.#e=e}create(e,t){if(e<=0||t<=0)throw new Error("Invalid canvas size");let n=this._createCanvas(e,t);return{canvas:n,context:n.getContext("2d",{willReadFrequently:!this.#e})}}reset(e,t,n){if(!e.canvas)throw new Error("Canvas is not specified");if(t<=0||n<=0)throw new Error("Invalid canvas size");e.canvas.width=t,e.canvas.height=n}destroy(e){if(!e.canvas)throw new Error("Canvas is not specified");e.canvas.width=0,e.canvas.height=0,e.canvas=null,e.context=null}_createCanvas(e,t){dt("Abstract method `_createCanvas` called.")}},gd=class extends Nl{constructor({ownerDocument:e=globalThis.document,enableHWA:t=!1}){super({enableHWA:t}),this._document=e}_createCanvas(e,t){let n=this._document.createElement("canvas");return n.width=e,n.height=t,n}},Pl=class{constructor({baseUrl:e=null,isCompressed:t=!0}){this.baseUrl=e,this.isCompressed=t}async fetch({name:e}){if(!this.baseUrl)throw new Error("Ensure that the `cMapUrl` and `cMapPacked` API parameters are provided.");if(!e)throw new Error("CMap name must be specified.");let t=this.baseUrl+e+(this.isCompressed?".bcmap":"");return this._fetch(t).then(n=>({cMapData:n,isCompressed:this.isCompressed})).catch(n=>{throw new Error(`Unable to load ${this.isCompressed?"binary ":""}CMap at: ${t}`)})}async _fetch(e){dt("Abstract method `_fetch` called.")}},Ll=class extends Pl{async _fetch(e){let t=await Do(e,this.isCompressed?"arraybuffer":"text");return t instanceof ArrayBuffer?new Uint8Array(t):_o(t)}},pN=ze(2489),Ml=class{addFilter(e){return"none"}addHCMFilter(e,t){return"none"}addAlphaFilter(e){return"none"}addLuminosityFilter(e){return"none"}addHighlightHCMFilter(e,t,n,i,a){return"none"}destroy(e=!1){}},md=class extends Ml{#e;#t;#n;#r;#s;#i;#a=0;constructor({docId:e,ownerDocument:t=globalThis.document}){super(),this.#r=e,this.#s=t}get#o(){return this.#t||=new Map}get#l(){return this.#i||=new Map}get#c(){if(!this.#n){let e=this.#s.createElement("div"),{style:t}=e;t.visibility="hidden",t.contain="strict",t.width=t.height=0,t.position="absolute",t.top=t.left=0,t.zIndex=-1;let n=this.#s.createElementNS(jn,"svg");n.setAttribute("width",0),n.setAttribute("height",0),this.#n=this.#s.createElementNS(jn,"defs"),e.append(n),n.append(this.#n),this.#s.body.append(e)}return this.#n}#f(e){if(e.length===1){let c=e[0],u=new Array(256);for(let f=0;f<256;f++)u[f]=c[f]/255;let h=u.join(",");return[h,h,h]}let[t,n,i]=e,a=new Array(256),s=new Array(256),o=new Array(256);for(let c=0;c<256;c++)a[c]=t[c]/255,s[c]=n[c]/255,o[c]=i[c]/255;return[a.join(","),s.join(","),o.join(",")]}#h(e){if(this.#e===void 0){this.#e="";let t=this.#s.URL;t!==this.#s.baseURI&&(pu(t)?Ne('#createUrl: ignore "data:"-URL for performance reasons.'):this.#e=ax(t,""))}return`url(${this.#e}#${e})`}addFilter(e){if(!e)return"none";let t=this.#o.get(e);if(t)return t;let[n,i,a]=this.#f(e),s=e.length===1?n:`${n}${i}${a}`;if(t=this.#o.get(s),t)return this.#o.set(e,t),t;let o=`g_${this.#r}_transfer_map_${this.#a++}`,c=this.#h(o);this.#o.set(e,c),this.#o.set(s,c);let u=this.#p(o);return this.#g(n,i,a,u),c}addHCMFilter(e,t){let n=`${e}-${t}`,i="base",a=this.#l.get(i);if(a?.key===n||(a?(a.filter?.remove(),a.key=n,a.url="none",a.filter=null):(a={key:n,url:"none",filter:null},this.#l.set(i,a)),!e||!t))return a.url;let s=this.#y(e);e=Re.makeHexColor(...s);let o=this.#y(t);if(t=Re.makeHexColor(...o),this.#c.style.color="",e==="#000000"&&t==="#ffffff"||e===t)return a.url;let c=new Array(256);for(let p=0;p<=255;p++){let m=p/255;c[p]=m<=.03928?m/12.92:((m+.055)/1.055)**2.4}let u=c.join(","),h=`g_${this.#r}_hcm_filter`,f=a.filter=this.#p(h);this.#g(u,u,u,f),this.#m(f);let d=(p,m)=>{let g=s[p]/255,x=o[p]/255,y=new Array(m+1);for(let b=0;b<=m;b++)y[b]=g+b/m*(x-g);return y.join(",")};return this.#g(d(0,5),d(1,5),d(2,5),f),a.url=this.#h(h),a.url}addAlphaFilter(e){let t=this.#o.get(e);if(t)return t;let[n]=this.#f([e]),i=`alpha_${n}`;if(t=this.#o.get(i),t)return this.#o.set(e,t),t;let a=`g_${this.#r}_alpha_map_${this.#a++}`,s=this.#h(a);this.#o.set(e,s),this.#o.set(i,s);let o=this.#p(a);return this.#x(n,o),s}addLuminosityFilter(e){let t=this.#o.get(e||"luminosity");if(t)return t;let n,i;if(e?([n]=this.#f([e]),i=`luminosity_${n}`):i="luminosity",t=this.#o.get(i),t)return this.#o.set(e,t),t;let a=`g_${this.#r}_luminosity_map_${this.#a++}`,s=this.#h(a);this.#o.set(e,s),this.#o.set(i,s);let o=this.#p(a);return this.#d(o),e&&this.#x(n,o),s}addHighlightHCMFilter(e,t,n,i,a){let s=`${t}-${n}-${i}-${a}`,o=this.#l.get(e);if(o?.key===s||(o?(o.filter?.remove(),o.key=s,o.url="none",o.filter=null):(o={key:s,url:"none",filter:null},this.#l.set(e,o)),!t||!n))return o.url;let[c,u]=[t,n].map(this.#y.bind(this)),h=Math.round(.2126*c[0]+.7152*c[1]+.0722*c[2]),f=Math.round(.2126*u[0]+.7152*u[1]+.0722*u[2]),[d,p]=[i,a].map(this.#y.bind(this));f<h&&([h,f,d,p]=[f,h,p,d]),this.#c.style.color="";let m=(y,b,v)=>{let _=new Array(256),A=(f-h)/v,E=y/255,T=(b-y)/(255*v),S=0;for(let C=0;C<=v;C++){let F=Math.round(h+C*A),k=E+C*T;for(let D=S;D<=F;D++)_[D]=k;S=F+1}for(let C=S;C<256;C++)_[C]=_[S-1];return _.join(",")},g=`g_${this.#r}_hcm_${e}_filter`,x=o.filter=this.#p(g);return this.#m(x),this.#g(m(d[0],p[0],5),m(d[1],p[1],5),m(d[2],p[2],5),x),o.url=this.#h(g),o.url}destroy(e=!1){e&&this.#i?.size||(this.#n?.parentNode.parentNode.remove(),this.#n=null,this.#t?.clear(),this.#t=null,this.#i?.clear(),this.#i=null,this.#a=0)}#d(e){let t=this.#s.createElementNS(jn,"feColorMatrix");t.setAttribute("type","matrix"),t.setAttribute("values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.3 0.59 0.11 0 0"),e.append(t)}#m(e){let t=this.#s.createElementNS(jn,"feColorMatrix");t.setAttribute("type","matrix"),t.setAttribute("values","0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0 0 0 1 0"),e.append(t)}#p(e){let t=this.#s.createElementNS(jn,"filter");return t.setAttribute("color-interpolation-filters","sRGB"),t.setAttribute("id",e),this.#c.append(t),t}#u(e,t,n){let i=this.#s.createElementNS(jn,t);i.setAttribute("type","discrete"),i.setAttribute("tableValues",n),e.append(i)}#g(e,t,n,i){let a=this.#s.createElementNS(jn,"feComponentTransfer");i.append(a),this.#u(a,"feFuncR",e),this.#u(a,"feFuncG",t),this.#u(a,"feFuncB",n)}#x(e,t){let n=this.#s.createElementNS(jn,"feComponentTransfer");t.append(n),this.#u(n,"feFuncA",e)}#y(e){return this.#c.style.color=e,To(getComputedStyle(this.#c).getPropertyValue("color"))}},Wl=class{constructor({baseUrl:e=null}){this.baseUrl=e}async fetch({filename:e}){if(!this.baseUrl)throw new Error("Ensure that the `standardFontDataUrl` API parameter is provided.");if(!e)throw new Error("Font filename must be specified.");let t=`${this.baseUrl}${e}`;return this._fetch(t).catch(n=>{throw new Error(`Unable to load font data at: ${t}`)})}async _fetch(e){dt("Abstract method `_fetch` called.")}},Hl=class extends Wl{async _fetch(e){let t=await Do(e,"arraybuffer");return new Uint8Array(t)}},Vl=class{constructor({baseUrl:e=null}){this.baseUrl=e}async fetch({filename:e}){if(!this.baseUrl)throw new Error("Ensure that the `wasmUrl` API parameter is provided.");if(!e)throw new Error("Wasm filename must be specified.");let t=`${this.baseUrl}${e}`;return this._fetch(t).catch(n=>{throw new Error(`Unable to load wasm data at: ${t}`)})}async _fetch(e){dt("Abstract method `_fetch` called.")}},zl=class extends Vl{async _fetch(e){let t=await Do(e,"arraybuffer");return new Uint8Array(t)}};if(yr){let r;try{let e=process.getBuiltinModule("module").createRequire(xx.url);try{r=e("@napi-rs/canvas")}catch(t){Ne(`Cannot load "@napi-rs/canvas" package: "${t}".`)}}catch(e){Ne(`Cannot access the \`require\` function: "${e}".`)}globalThis.DOMMatrix||(r?.DOMMatrix?globalThis.DOMMatrix=r.DOMMatrix:Ne("Cannot polyfill `DOMMatrix`, rendering may be broken.")),globalThis.ImageData||(r?.ImageData?globalThis.ImageData=r.ImageData:Ne("Cannot polyfill `ImageData`, rendering may be broken.")),globalThis.Path2D||(r?.Path2D?globalThis.Path2D=r.Path2D:Ne("Cannot polyfill `Path2D`, rendering may be broken.")),globalThis.navigator?.language||(globalThis.navigator={language:"en-US",platform:"",userAgent:""})}async function I0(r){let t=await process.getBuiltinModule("fs").promises.readFile(r);return new Uint8Array(t)}var xd=class extends Ml{},vd=class extends Nl{_createCanvas(e,t){return process.getBuiltinModule("module").createRequire(xx.url)("@napi-rs/canvas").createCanvas(e,t)}},yd=class extends Pl{async _fetch(e){return I0(e)}},bd=class extends Wl{async _fetch(e){return I0(e)}},wd=class extends Vl{async _fetch(e){return I0(e)}},gN=ze(7588),Ba="__forcedDependency",{floor:X1,ceil:$1}=Math;function wl(r,e,t,n,i,a){r[e*4+0]=Math.min(r[e*4+0],t),r[e*4+1]=Math.min(r[e*4+1],n),r[e*4+2]=Math.max(r[e*4+2],i),r[e*4+3]=Math.max(r[e*4+3],a)}var _d=new Uint32Array(new Uint8Array([255,255,0,0]).buffer)[0],Dd=class{#e;#t;constructor(e,t){this.#e=e,this.#t=t}get length(){return this.#e.length}isEmpty(e){return this.#e[e]===_d}minX(e){return this.#t[e*4+0]/256}minY(e){return this.#t[e*4+1]/256}maxX(e){return(this.#t[e*4+2]+1)/256}maxY(e){return(this.#t[e*4+3]+1)/256}},_l=(r,e)=>{if(!r)return;let t=r.get(e);return t||(t={dependencies:new Set,isRenderingOperation:!1},r.set(e,t)),t},Td=class{#e={__proto__:null};#t={__proto__:null,transform:[],moveText:[],sameLineText:[],[Ba]:[]};#n=new Map;#r=[];#s=[];#i=[[1,0,0,1,0,0]];#a=[-1/0,-1/0,1/0,1/0];#o=new Float64Array([1/0,1/0,-1/0,-1/0]);#l=-1;#c=new Set;#f=new Map;#h=new Map;#d;#m;#p;#u;#g;constructor(e,t,n=!1){this.#d=e.width,this.#m=e.height,this.#x(t),n&&(this.#g=new Map)}growOperationsCount(e){e>=this.#u.length&&this.#x(e,this.#u)}#x(e,t){let n=new ArrayBuffer(e*4);this.#p=new Uint8ClampedArray(n),this.#u=new Uint32Array(n),t&&t.length>0?(this.#u.set(t),this.#u.fill(_d,t.length)):this.#u.fill(_d)}save(e){return this.#e={__proto__:this.#e},this.#t={__proto__:this.#t,transform:{__proto__:this.#t.transform},moveText:{__proto__:this.#t.moveText},sameLineText:{__proto__:this.#t.sameLineText},[Ba]:{__proto__:this.#t[Ba]}},this.#a={__proto__:this.#a},this.#r.push(e),this}restore(e){let t=Object.getPrototypeOf(this.#e);if(t===null)return this;this.#e=t,this.#t=Object.getPrototypeOf(this.#t),this.#a=Object.getPrototypeOf(this.#a);let n=this.#r.pop();return n!==void 0&&(_l(this.#g,e)?.dependencies.add(n),this.#u[e]=this.#u[n]),this}recordOpenMarker(e){return this.#r.push(e),this}getOpenMarker(){return this.#r.length===0?null:this.#r.at(-1)}recordCloseMarker(e){let t=this.#r.pop();return t!==void 0&&(_l(this.#g,e)?.dependencies.add(t),this.#u[e]=this.#u[t]),this}beginMarkedContent(e){return this.#s.push(e),this}endMarkedContent(e){let t=this.#s.pop();return t!==void 0&&(_l(this.#g,e)?.dependencies.add(t),this.#u[e]=this.#u[t]),this}pushBaseTransform(e){return this.#i.push(Re.multiplyByDOMMatrix(this.#i.at(-1),e.getTransform())),this}popBaseTransform(){return this.#i.length>1&&this.#i.pop(),this}recordSimpleData(e,t){return this.#e[e]=t,this}recordIncrementalData(e,t){return this.#t[e].push(t),this}resetIncrementalData(e,t){return this.#t[e].length=0,this}recordNamedData(e,t){return this.#n.set(e,t),this}recordSimpleDataFromNamed(e,t,n){this.#e[e]=this.#n.get(t)??n}recordFutureForcedDependency(e,t){return this.recordIncrementalData(Ba,t),this}inheritSimpleDataAsFutureForcedDependencies(e){for(let t of e)t in this.#e&&this.recordFutureForcedDependency(t,this.#e[t]);return this}inheritPendingDependenciesAsFutureForcedDependencies(){for(let e of this.#c)this.recordFutureForcedDependency(Ba,e);return this}resetBBox(e){return this.#l!==e&&(this.#l=e,this.#o[0]=1/0,this.#o[1]=1/0,this.#o[2]=-1/0,this.#o[3]=-1/0),this}recordClipBox(e,t,n,i,a,s){let o=Re.multiplyByDOMMatrix(this.#i.at(-1),t.getTransform()),c=[1/0,1/0,-1/0,-1/0];Re.axialAlignedBoundingBox([n,a,i,s],o,c);let u=Re.intersect(this.#a,c);return u?(this.#a[0]=u[0],this.#a[1]=u[1],this.#a[2]=u[2],this.#a[3]=u[3]):(this.#a[0]=this.#a[1]=1/0,this.#a[2]=this.#a[3]=-1/0),this}recordBBox(e,t,n,i,a,s){let o=this.#a;if(o[0]===1/0)return this;let c=Re.multiplyByDOMMatrix(this.#i.at(-1),t.getTransform());if(o[0]===-1/0)return Re.axialAlignedBoundingBox([n,a,i,s],c,this.#o),this;let u=[1/0,1/0,-1/0,-1/0];return Re.axialAlignedBoundingBox([n,a,i,s],c,u),this.#o[0]=Math.min(this.#o[0],Math.max(u[0],o[0])),this.#o[1]=Math.min(this.#o[1],Math.max(u[1],o[1])),this.#o[2]=Math.max(this.#o[2],Math.min(u[2],o[2])),this.#o[3]=Math.max(this.#o[3],Math.min(u[3],o[3])),this}recordCharacterBBox(e,t,n,i=1,a=0,s=0,o){let c=n.bbox,u,h;if(c&&(u=c[2]!==c[0]&&c[3]!==c[1]&&this.#h.get(n),u!==!1&&(h=[0,0,0,0],Re.axialAlignedBoundingBox(c,n.fontMatrix,h),(i!==1||a!==0||s!==0)&&Re.scaleMinMax([i,0,0,-i,a,s],h),u)))return this.recordBBox(e,t,h[0],h[2],h[1],h[3]);if(!o)return this.recordFullPageBBox(e);let f=o();return c&&h&&u===void 0&&(u=h[0]<=a-f.actualBoundingBoxLeft&&h[2]>=a+f.actualBoundingBoxRight&&h[1]<=s-f.actualBoundingBoxAscent&&h[3]>=s+f.actualBoundingBoxDescent,this.#h.set(n,u),u)?this.recordBBox(e,t,h[0],h[2],h[1],h[3]):this.recordBBox(e,t,a-f.actualBoundingBoxLeft,a+f.actualBoundingBoxRight,s-f.actualBoundingBoxAscent,s+f.actualBoundingBoxDescent)}recordFullPageBBox(e){return this.#o[0]=Math.max(0,this.#a[0]),this.#o[1]=Math.max(0,this.#a[1]),this.#o[2]=Math.min(this.#d,this.#a[2]),this.#o[3]=Math.min(this.#m,this.#a[3]),this}getSimpleIndex(e){return this.#e[e]}recordDependencies(e,t){let n=this.#c,i=this.#e,a=this.#t;for(let s of t)s in this.#e?n.add(i[s]):s in a&&a[s].forEach(n.add,n);return this}recordNamedDependency(e,t){return this.#n.has(t)&&this.#c.add(this.#n.get(t)),this}recordOperation(e,t=!1){if(this.recordDependencies(e,[Ba]),this.#g){let n=_l(this.#g,e),{dependencies:i}=n;this.#c.forEach(i.add,i),this.#r.forEach(i.add,i),this.#s.forEach(i.add,i),i.delete(e),n.isRenderingOperation=!0}if(this.#l===e){let n=X1(this.#o[0]*256/this.#d),i=X1(this.#o[1]*256/this.#m),a=$1(this.#o[2]*256/this.#d),s=$1(this.#o[3]*256/this.#m);wl(this.#p,e,n,i,a,s);for(let o of this.#c)o!==e&&wl(this.#p,o,n,i,a,s);for(let o of this.#r)o!==e&&wl(this.#p,o,n,i,a,s);for(let o of this.#s)o!==e&&wl(this.#p,o,n,i,a,s);t||(this.#c.clear(),this.#l=-1)}return this}recordShowTextOperation(e,t=!1){let n=Array.from(this.#c);this.recordOperation(e,t),this.recordIncrementalData("sameLineText",e);for(let i of n)this.recordIncrementalData("sameLineText",i);return this}bboxToClipBoxDropOperation(e,t=!1){return this.#l===e&&(this.#l=-1,this.#a[0]=Math.max(this.#a[0],this.#o[0]),this.#a[1]=Math.max(this.#a[1],this.#o[1]),this.#a[2]=Math.min(this.#a[2],this.#o[2]),this.#a[3]=Math.min(this.#a[3],this.#o[3]),t||this.#c.clear()),this}_takePendingDependencies(){let e=this.#c;return this.#c=new Set,e}_extractOperation(e){let t=this.#f.get(e);return this.#f.delete(e),t}_pushPendingDependencies(e){for(let t of e)this.#c.add(t)}take(){return this.#h.clear(),new Dd(this.#u,this.#p)}takeDebugMetadata(){return this.#g}},jl=class r{#e;#t;#n;#r=0;#s=0;constructor(e,t,n){if(e instanceof r&&e.#n===!!n)return e;this.#e=e,this.#t=t,this.#n=!!n}growOperationsCount(){throw new Error("Unreachable")}save(e){return this.#s++,this.#e.save(this.#t),this}restore(e){return this.#s>0&&(this.#e.restore(this.#t),this.#s--),this}recordOpenMarker(e){return this.#r++,this}getOpenMarker(){return this.#r>0?this.#t:this.#e.getOpenMarker()}recordCloseMarker(e){return this.#r--,this}beginMarkedContent(e){return this}endMarkedContent(e){return this}pushBaseTransform(e){return this.#e.pushBaseTransform(e),this}popBaseTransform(){return this.#e.popBaseTransform(),this}recordSimpleData(e,t){return this.#e.recordSimpleData(e,this.#t),this}recordIncrementalData(e,t){return this.#e.recordIncrementalData(e,this.#t),this}resetIncrementalData(e,t){return this.#e.resetIncrementalData(e,this.#t),this}recordNamedData(e,t){return this}recordSimpleDataFromNamed(e,t,n){return this.#e.recordSimpleDataFromNamed(e,t,this.#t),this}recordFutureForcedDependency(e,t){return this.#e.recordFutureForcedDependency(e,this.#t),this}inheritSimpleDataAsFutureForcedDependencies(e){return this.#e.inheritSimpleDataAsFutureForcedDependencies(e),this}inheritPendingDependenciesAsFutureForcedDependencies(){return this.#e.inheritPendingDependenciesAsFutureForcedDependencies(),this}resetBBox(e){return this.#n||this.#e.resetBBox(this.#t),this}recordClipBox(e,t,n,i,a,s){return this.#n||this.#e.recordClipBox(this.#t,t,n,i,a,s),this}recordBBox(e,t,n,i,a,s){return this.#n||this.#e.recordBBox(this.#t,t,n,i,a,s),this}recordCharacterBBox(e,t,n,i,a,s,o){return this.#n||this.#e.recordCharacterBBox(this.#t,t,n,i,a,s,o),this}recordFullPageBBox(e){return this.#n||this.#e.recordFullPageBBox(this.#t),this}getSimpleIndex(e){return this.#e.getSimpleIndex(e)}recordDependencies(e,t){return this.#e.recordDependencies(this.#t,t),this}recordNamedDependency(e,t){return this.#e.recordNamedDependency(this.#t,t),this}recordOperation(e){return this.#e.recordOperation(this.#t,!0),this}recordShowTextOperation(e){return this.#e.recordShowTextOperation(this.#t,!0),this}bboxToClipBoxDropOperation(e){return this.#n||this.#e.bboxToClipBoxDropOperation(this.#t,!0),this}take(){throw new Error("Unreachable")}takeDebugMetadata(){throw new Error("Unreachable")}},Qr={stroke:["path","transform","filter","strokeColor","strokeAlpha","lineWidth","lineCap","lineJoin","miterLimit","dash"],fill:["path","transform","filter","fillColor","fillAlpha","globalCompositeOperation","SMask"],imageXObject:["transform","SMask","filter","fillAlpha","strokeAlpha","globalCompositeOperation"],rawFillPath:["filter","fillColor","fillAlpha"],showText:["transform","leading","charSpacing","wordSpacing","hScale","textRise","moveText","textMatrix","font","fontObj","filter","fillColor","textRenderingMode","SMask","fillAlpha","strokeAlpha","globalCompositeOperation","sameLineText"],transform:["transform"],transformAndFill:["transform","fillColor"]},Zt={FILL:"Fill",STROKE:"Stroke",SHADING:"Shading"};function Ed(r,e){if(!e)return;let t=e[2]-e[0],n=e[3]-e[1],i=new Path2D;i.rect(e[0],e[1],t,n),r.clip(i)}var fo=class{isModifyingCurrentTransform(){return!1}getPattern(){dt("Abstract method `getPattern` called.")}},Ad=class extends fo{constructor(e){super(),this._type=e[1],this._bbox=e[2],this._colorStops=e[3],this._p0=e[4],this._p1=e[5],this._r0=e[6],this._r1=e[7],this.matrix=null}_createGradient(e){let t;this._type==="axial"?t=e.createLinearGradient(this._p0[0],this._p0[1],this._p1[0],this._p1[1]):this._type==="radial"&&(t=e.createRadialGradient(this._p0[0],this._p0[1],this._r0,this._p1[0],this._p1[1],this._r1));for(let n of this._colorStops)t.addColorStop(n[0],n[1]);return t}getPattern(e,t,n,i){let a;if(i===Zt.STROKE||i===Zt.FILL){let s=t.current.getClippedPathBoundingBox(i,_t(e))||[0,0,0,0],o=Math.ceil(s[2]-s[0])||1,c=Math.ceil(s[3]-s[1])||1,u=t.cachedCanvases.getCanvas("pattern",o,c),h=u.context;h.clearRect(0,0,h.canvas.width,h.canvas.height),h.beginPath(),h.rect(0,0,h.canvas.width,h.canvas.height),h.translate(-s[0],-s[1]),n=Re.transform(n,[1,0,0,1,s[0],s[1]]),h.transform(...t.baseTransform),this.matrix&&h.transform(...this.matrix),Ed(h,this._bbox),h.fillStyle=this._createGradient(h),h.fill(),a=e.createPattern(u.canvas,"no-repeat");let f=new DOMMatrix(n);a.setTransform(f)}else Ed(e,this._bbox),a=this._createGradient(e);return a}};function $f(r,e,t,n,i,a,s,o){let c=e.coords,u=e.colors,h=r.data,f=r.width*4,d;c[t+1]>c[n+1]&&(d=t,t=n,n=d,d=a,a=s,s=d),c[n+1]>c[i+1]&&(d=n,n=i,i=d,d=s,s=o,o=d),c[t+1]>c[n+1]&&(d=t,t=n,n=d,d=a,a=s,s=d);let p=(c[t]+e.offsetX)*e.scaleX,m=(c[t+1]+e.offsetY)*e.scaleY,g=(c[n]+e.offsetX)*e.scaleX,x=(c[n+1]+e.offsetY)*e.scaleY,y=(c[i]+e.offsetX)*e.scaleX,b=(c[i+1]+e.offsetY)*e.scaleY;if(m>=b)return;let v=u[a],_=u[a+1],A=u[a+2],E=u[s],T=u[s+1],S=u[s+2],C=u[o],F=u[o+1],k=u[o+2],D=Math.round(m),B=Math.round(b),q,j,U,O,P,R,N,z;for(let I=D;I<=B;I++){if(I<x){let ie=I<m?0:(m-I)/(m-x);q=p-(p-g)*ie,j=v-(v-E)*ie,U=_-(_-T)*ie,O=A-(A-S)*ie}else{let ie;I>b?ie=1:x===b?ie=0:ie=(x-I)/(x-b),q=g-(g-y)*ie,j=E-(E-C)*ie,U=T-(T-F)*ie,O=S-(S-k)*ie}let H;I<m?H=0:I>b?H=1:H=(m-I)/(m-b),P=p-(p-y)*H,R=v-(v-C)*H,N=_-(_-F)*H,z=A-(A-k)*H;let Z=Math.round(Math.min(q,P)),re=Math.round(Math.max(q,P)),ee=f*I+Z*4;for(let ie=Z;ie<=re;ie++)H=(q-ie)/(q-P),H<0?H=0:H>1&&(H=1),h[ee++]=j-(j-R)*H|0,h[ee++]=U-(U-N)*H|0,h[ee++]=O-(O-z)*H|0,h[ee++]=255}}function hS(r,e,t){let n=e.coords,i=e.colors,a,s;switch(e.type){case"lattice":let o=e.verticesPerRow,c=Math.floor(n.length/o)-1,u=o-1;for(a=0;a<c;a++){let h=a*o;for(let f=0;f<u;f++,h++)$f(r,t,n[h],n[h+1],n[h+o],i[h],i[h+1],i[h+o]),$f(r,t,n[h+o+1],n[h+1],n[h+o],i[h+o+1],i[h+1],i[h+o])}break;case"triangles":for(a=0,s=n.length;a<s;a+=3)$f(r,t,n[a],n[a+1],n[a+2],i[a],i[a+1],i[a+2]);break;default:throw new Error("illegal figure")}}var Sd=class extends fo{constructor(e){super(),this._coords=e[2],this._colors=e[3],this._figures=e[4],this._bounds=e[5],this._bbox=e[6],this._background=e[7],this.matrix=null}_createMeshCanvas(e,t,n){let o=Math.floor(this._bounds[0]),c=Math.floor(this._bounds[1]),u=Math.ceil(this._bounds[2])-o,h=Math.ceil(this._bounds[3])-c,f=Math.min(Math.ceil(Math.abs(u*e[0]*1.1)),3e3),d=Math.min(Math.ceil(Math.abs(h*e[1]*1.1)),3e3),p=u/f,m=h/d,g={coords:this._coords,colors:this._colors,offsetX:-o,offsetY:-c,scaleX:1/p,scaleY:1/m},x=f+4,y=d+4,b=n.getCanvas("mesh",x,y),v=b.context,_=v.createImageData(f,d);if(t){let E=_.data;for(let T=0,S=E.length;T<S;T+=4)E[T]=t[0],E[T+1]=t[1],E[T+2]=t[2],E[T+3]=255}for(let E of this._figures)hS(_,E,g);return v.putImageData(_,2,2),{canvas:b.canvas,offsetX:o-2*p,offsetY:c-2*m,scaleX:p,scaleY:m}}isModifyingCurrentTransform(){return!0}getPattern(e,t,n,i){Ed(e,this._bbox);let a=new Float32Array(2);if(i===Zt.SHADING)Re.singularValueDecompose2dScale(_t(e),a);else if(this.matrix){Re.singularValueDecompose2dScale(this.matrix,a);let[o,c]=a;Re.singularValueDecompose2dScale(t.baseTransform,a),a[0]*=o,a[1]*=c}else Re.singularValueDecompose2dScale(t.baseTransform,a);let s=this._createMeshCanvas(a,i===Zt.SHADING?null:this._background,t.cachedCanvases);return i!==Zt.SHADING&&(e.setTransform(...t.baseTransform),this.matrix&&e.transform(...this.matrix)),e.translate(s.offsetX,s.offsetY),e.scale(s.scaleX,s.scaleY),e.createPattern(s.canvas,"no-repeat")}},Cd=class extends fo{getPattern(){return"hotpink"}};function fS(r){switch(r[0]){case"RadialAxial":return new Ad(r);case"Mesh":return new Sd(r);case"Dummy":return new Cd}throw new Error(`Unknown IR type: ${r[0]}`)}var q1={COLORED:1,UNCOLORED:2},Fd=class r{static MAX_PATTERN_SIZE=3e3;constructor(e,t,n,i){this.color=e[1],this.operatorList=e[2],this.matrix=e[3],this.bbox=e[4],this.xstep=e[5],this.ystep=e[6],this.paintType=e[7],this.tilingType=e[8],this.ctx=t,this.canvasGraphicsFactory=n,this.baseTransform=i}createPatternCanvas(e,t){let{bbox:n,operatorList:i,paintType:a,tilingType:s,color:o,canvasGraphicsFactory:c}=this,{xstep:u,ystep:h}=this;u=Math.abs(u),h=Math.abs(h),du("TilingType: "+s);let f=n[0],d=n[1],p=n[2],m=n[3],g=p-f,x=m-d,y=new Float32Array(2);Re.singularValueDecompose2dScale(this.matrix,y);let[b,v]=y;Re.singularValueDecompose2dScale(this.baseTransform,y);let _=b*y[0],A=v*y[1],E=g,T=x,S=!1,C=!1,F=Math.ceil(u*_),k=Math.ceil(h*A),D=Math.ceil(g*_),B=Math.ceil(x*A);F>=D?E=u:S=!0,k>=B?T=h:C=!0;let q=this.getSizeAndScale(E,this.ctx.canvas.width,_),j=this.getSizeAndScale(T,this.ctx.canvas.height,A),U=e.cachedCanvases.getCanvas("pattern",q.size,j.size),O=U.context,P=c.createCanvasGraphics(O,t);if(P.groupLevel=e.groupLevel,this.setFillAndStrokeStyleToContext(P,a,o),O.translate(-q.scale*f,-j.scale*d),P.transform(0,q.scale,0,0,j.scale,0,0),O.save(),P.dependencyTracker?.save(),this.clipBbox(P,f,d,p,m),P.baseTransform=_t(P.ctx),P.executeOperatorList(i),P.endDrawing(),P.dependencyTracker?.restore(),O.restore(),S||C){let R=U.canvas;S&&(E=u),C&&(T=h);let N=this.getSizeAndScale(E,this.ctx.canvas.width,_),z=this.getSizeAndScale(T,this.ctx.canvas.height,A),I=N.size,H=z.size,Z=e.cachedCanvases.getCanvas("pattern-workaround",I,H),re=Z.context,ee=S?Math.floor(g/u):0,ie=C?Math.floor(x/h):0;for(let se=0;se<=ee;se++)for(let de=0;de<=ie;de++)re.drawImage(R,I*se,H*de,I,H,0,0,I,H);return{canvas:Z.canvas,scaleX:N.scale,scaleY:z.scale,offsetX:f,offsetY:d}}return{canvas:U.canvas,scaleX:q.scale,scaleY:j.scale,offsetX:f,offsetY:d}}getSizeAndScale(e,t,n){let i=Math.max(r.MAX_PATTERN_SIZE,t),a=Math.ceil(e*n);return a>=i?a=i:n=a/e,{scale:n,size:a}}clipBbox(e,t,n,i,a){let s=i-t,o=a-n;e.ctx.rect(t,n,s,o),Re.axialAlignedBoundingBox([t,n,i,a],_t(e.ctx),e.current.minMax),e.clip(),e.endPath()}setFillAndStrokeStyleToContext(e,t,n){let i=e.ctx,a=e.current;switch(t){case q1.COLORED:let{fillStyle:s,strokeStyle:o}=this.ctx;i.fillStyle=a.fillColor=s,i.strokeStyle=a.strokeColor=o;break;case q1.UNCOLORED:i.fillStyle=i.strokeStyle=n,a.fillColor=a.strokeColor=n;break;default:throw new Jf(`Unsupported paint type: ${t}`)}}isModifyingCurrentTransform(){return!1}getPattern(e,t,n,i,a){let s=n;i!==Zt.SHADING&&(s=Re.transform(s,t.baseTransform),this.matrix&&(s=Re.transform(s,this.matrix)));let o=this.createPatternCanvas(t,a),c=new DOMMatrix(s);c=c.translate(o.offsetX,o.offsetY),c=c.scale(1/o.scaleX,1/o.scaleY);let u=e.createPattern(o.canvas,"repeat");return u.setTransform(c),u}};function dS({src:r,srcPos:e=0,dest:t,width:n,height:i,nonBlackColor:a=4294967295,inverseDecode:s=!1}){let o=Mt.isLittleEndian?4278190080:255,[c,u]=s?[a,o]:[o,a],h=n>>3,f=n&7,d=r.length;t=new Uint32Array(t.buffer);let p=0;for(let m=0;m<i;m++){for(let x=e+h;e<x;e++){let y=e<d?r[e]:255;t[p++]=y&128?u:c,t[p++]=y&64?u:c,t[p++]=y&32?u:c,t[p++]=y&16?u:c,t[p++]=y&8?u:c,t[p++]=y&4?u:c,t[p++]=y&2?u:c,t[p++]=y&1?u:c}if(f===0)continue;let g=e<d?r[e++]:255;for(let x=0;x<f;x++)t[p++]=g&1<<7-x?u:c}return{srcPos:e,destPos:p}}var Y1=16,K1=100,pS=15,Z1=10,Ur=16,qf=new DOMMatrix,zr=new Float32Array(2),Ma=new Float32Array([1/0,1/0,-1/0,-1/0]);function gS(r,e){if(r._removeMirroring)throw new Error("Context is already forwarding operations.");r.__originalSave=r.save,r.__originalRestore=r.restore,r.__originalRotate=r.rotate,r.__originalScale=r.scale,r.__originalTranslate=r.translate,r.__originalTransform=r.transform,r.__originalSetTransform=r.setTransform,r.__originalResetTransform=r.resetTransform,r.__originalClip=r.clip,r.__originalMoveTo=r.moveTo,r.__originalLineTo=r.lineTo,r.__originalBezierCurveTo=r.bezierCurveTo,r.__originalRect=r.rect,r.__originalClosePath=r.closePath,r.__originalBeginPath=r.beginPath,r._removeMirroring=()=>{r.save=r.__originalSave,r.restore=r.__originalRestore,r.rotate=r.__originalRotate,r.scale=r.__originalScale,r.translate=r.__originalTranslate,r.transform=r.__originalTransform,r.setTransform=r.__originalSetTransform,r.resetTransform=r.__originalResetTransform,r.clip=r.__originalClip,r.moveTo=r.__originalMoveTo,r.lineTo=r.__originalLineTo,r.bezierCurveTo=r.__originalBezierCurveTo,r.rect=r.__originalRect,r.closePath=r.__originalClosePath,r.beginPath=r.__originalBeginPath,delete r._removeMirroring},r.save=function(){e.save(),this.__originalSave()},r.restore=function(){e.restore(),this.__originalRestore()},r.translate=function(t,n){e.translate(t,n),this.__originalTranslate(t,n)},r.scale=function(t,n){e.scale(t,n),this.__originalScale(t,n)},r.transform=function(t,n,i,a,s,o){e.transform(t,n,i,a,s,o),this.__originalTransform(t,n,i,a,s,o)},r.setTransform=function(t,n,i,a,s,o){e.setTransform(t,n,i,a,s,o),this.__originalSetTransform(t,n,i,a,s,o)},r.resetTransform=function(){e.resetTransform(),this.__originalResetTransform()},r.rotate=function(t){e.rotate(t),this.__originalRotate(t)},r.clip=function(t){e.clip(t),this.__originalClip(t)},r.moveTo=function(t,n){e.moveTo(t,n),this.__originalMoveTo(t,n)},r.lineTo=function(t,n){e.lineTo(t,n),this.__originalLineTo(t,n)},r.bezierCurveTo=function(t,n,i,a,s,o){e.bezierCurveTo(t,n,i,a,s,o),this.__originalBezierCurveTo(t,n,i,a,s,o)},r.rect=function(t,n,i,a){e.rect(t,n,i,a),this.__originalRect(t,n,i,a)},r.closePath=function(){e.closePath(),this.__originalClosePath()},r.beginPath=function(){e.beginPath(),this.__originalBeginPath()}}var kd=class{constructor(e){this.canvasFactory=e,this.cache=Object.create(null)}getCanvas(e,t,n){let i;return this.cache[e]!==void 0?(i=this.cache[e],this.canvasFactory.reset(i,t,n)):(i=this.canvasFactory.create(t,n),this.cache[e]=i),i}delete(e){delete this.cache[e]}clear(){for(let e in this.cache){let t=this.cache[e];this.canvasFactory.destroy(t),delete this.cache[e]}}};function Dl(r,e,t,n,i,a,s,o,c,u){let[h,f,d,p,m,g]=_t(r);if(f===0&&d===0){let b=s*h+m,v=Math.round(b),_=o*p+g,A=Math.round(_),E=(s+c)*h+m,T=Math.abs(Math.round(E)-v)||1,S=(o+u)*p+g,C=Math.abs(Math.round(S)-A)||1;return r.setTransform(Math.sign(h),0,0,Math.sign(p),v,A),r.drawImage(e,t,n,i,a,0,0,T,C),r.setTransform(h,f,d,p,m,g),[T,C]}if(h===0&&p===0){let b=o*d+m,v=Math.round(b),_=s*f+g,A=Math.round(_),E=(o+u)*d+m,T=Math.abs(Math.round(E)-v)||1,S=(s+c)*f+g,C=Math.abs(Math.round(S)-A)||1;return r.setTransform(0,Math.sign(f),Math.sign(d),0,v,A),r.drawImage(e,t,n,i,a,0,0,C,T),r.setTransform(h,f,d,p,m,g),[C,T]}r.drawImage(e,t,n,i,a,s,o,c,u);let x=Math.hypot(h,f),y=Math.hypot(d,p);return[x*c,y*u]}var Gl=class{alphaIsShape=!1;fontSize=0;fontSizeScale=1;textMatrix=null;textMatrixScale=1;fontMatrix=Zf;leading=0;x=0;y=0;lineX=0;lineY=0;charSpacing=0;wordSpacing=0;textHScale=1;textRenderingMode=Kt.FILL;textRise=0;fillColor="#000000";strokeColor="#000000";patternFill=!1;patternStroke=!1;fillAlpha=1;strokeAlpha=1;lineWidth=1;activeSMask=null;transferMaps="none";constructor(e,t,n){n?.(this),this.clipBox=new Float32Array([0,0,e,t]),this.minMax=Ma.slice()}clone(){let e=Object.create(this);return e.clipBox=this.clipBox.slice(),e.minMax=this.minMax.slice(),e}getPathBoundingBox(e=Zt.FILL,t=null){let n=this.minMax.slice();if(e===Zt.STROKE){t||dt("Stroke bounding box must include transform."),Re.singularValueDecompose2dScale(t,zr);let i=zr[0]*this.lineWidth/2,a=zr[1]*this.lineWidth/2;n[0]-=i,n[1]-=a,n[2]+=i,n[3]+=a}return n}updateClipFromPath(){let e=Re.intersect(this.clipBox,this.getPathBoundingBox());this.startNewPathAndClipBox(e||[0,0,0,0])}isEmptyClip(){return this.minMax[0]===1/0}startNewPathAndClipBox(e){this.clipBox.set(e,0),this.minMax.set(Ma,0)}getClippedPathBoundingBox(e=Zt.FILL,t=null){return Re.intersect(this.clipBox,this.getPathBoundingBox(e,t))}};function J1(r,e){if(e instanceof ImageData){r.putImageData(e,0,0);return}let t=e.height,n=e.width,i=t%Ur,a=(t-i)/Ur,s=i===0?a:a+1,o=r.createImageData(n,Ur),c=0,u,h=e.data,f=o.data,d,p,m,g;if(e.kind===Cl.GRAYSCALE_1BPP){let x=h.byteLength,y=new Uint32Array(f.buffer,0,f.byteLength>>2),b=y.length,v=n+7>>3,_=4294967295,A=Mt.isLittleEndian?4278190080:255;for(d=0;d<s;d++){for(m=d<a?Ur:i,u=0,p=0;p<m;p++){let E=x-c,T=0,S=E>v?n:E*8-7,C=S&-8,F=0,k=0;for(;T<C;T+=8)k=h[c++],y[u++]=k&128?_:A,y[u++]=k&64?_:A,y[u++]=k&32?_:A,y[u++]=k&16?_:A,y[u++]=k&8?_:A,y[u++]=k&4?_:A,y[u++]=k&2?_:A,y[u++]=k&1?_:A;for(;T<S;T++)F===0&&(k=h[c++],F=128),y[u++]=k&F?_:A,F>>=1}for(;u<b;)y[u++]=0;r.putImageData(o,0,d*Ur)}}else if(e.kind===Cl.RGBA_32BPP){for(p=0,g=n*Ur*4,d=0;d<a;d++)f.set(h.subarray(c,c+g)),c+=g,r.putImageData(o,0,p),p+=Ur;d<s&&(g=n*i*4,f.set(h.subarray(c,c+g)),r.putImageData(o,0,p))}else if(e.kind===Cl.RGB_24BPP)for(m=Ur,g=n*m,d=0;d<s;d++){for(d>=a&&(m=i,g=n*m),u=0,p=g;p--;)f[u++]=h[c++],f[u++]=h[c++],f[u++]=h[c++],f[u++]=255;r.putImageData(o,0,d*Ur)}else throw new Error(`bad image kind: ${e.kind}`)}function Q1(r,e){if(e.bitmap){r.drawImage(e.bitmap,0,0);return}let t=e.height,n=e.width,i=t%Ur,a=(t-i)/Ur,s=i===0?a:a+1,o=r.createImageData(n,Ur),c=0,u=e.data,h=o.data;for(let f=0;f<s;f++){let d=f<a?Ur:i;({srcPos:c}=dS({src:u,srcPos:c,dest:h,width:n,height:d,nonBlackColor:0})),r.putImageData(o,0,f*Ur)}}function Js(r,e){let t=["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font","filter"];for(let n of t)r[n]!==void 0&&(e[n]=r[n]);r.setLineDash!==void 0&&(e.setLineDash(r.getLineDash()),e.lineDashOffset=r.lineDashOffset)}function Tl(r){r.strokeStyle=r.fillStyle="#000000",r.fillRule="nonzero",r.globalAlpha=1,r.lineWidth=1,r.lineCap="butt",r.lineJoin="miter",r.miterLimit=10,r.globalCompositeOperation="source-over",r.font="10px sans-serif",r.setLineDash!==void 0&&(r.setLineDash([]),r.lineDashOffset=0);let{filter:e}=r;e!=="none"&&e!==""&&(r.filter="none")}function ex(r,e){if(e)return!0;Re.singularValueDecompose2dScale(r,zr);let t=Math.fround(Xn.pixelRatio*mi.PDF_TO_CSS_UNITS);return zr[0]<=t&&zr[1]<=t}var mS=["butt","round","square"],xS=["miter","round","bevel"],vS={},tx={},Wa=class r{constructor(e,t,n,i,a,{optionalContentConfig:s,markedContentStack:o=null},c,u,h){this.ctx=e,this.current=new Gl(this.ctx.canvas.width,this.ctx.canvas.height),this.stateStack=[],this.pendingClip=null,this.pendingEOFill=!1,this.res=null,this.xobjs=null,this.commonObjs=t,this.objs=n,this.canvasFactory=i,this.filterFactory=a,this.groupStack=[],this.baseTransform=null,this.baseTransformStack=[],this.groupLevel=0,this.smaskStack=[],this.smaskCounter=0,this.tempSMask=null,this.suspendedCtx=null,this.contentVisible=!0,this.markedContentStack=o||[],this.optionalContentConfig=s,this.cachedCanvases=new kd(this.canvasFactory),this.cachedPatterns=new Map,this.annotationCanvasMap=c,this.viewportScale=1,this.outputScaleX=1,this.outputScaleY=1,this.pageColors=u,this._cachedScaleForStroking=[-1,0],this._cachedGetSinglePixelWidth=null,this._cachedBitmapsMap=new Map,this.dependencyTracker=h??null}getObject(e,t,n=null){return typeof t=="string"?(this.dependencyTracker?.recordNamedDependency(e,t),t.startsWith("g_")?this.commonObjs.get(t):this.objs.get(t)):n}beginDrawing({transform:e,viewport:t,transparency:n=!1,background:i=null}){let a=this.ctx.canvas.width,s=this.ctx.canvas.height,o=this.ctx.fillStyle;if(this.ctx.fillStyle=i||"#ffffff",this.ctx.fillRect(0,0,a,s),this.ctx.fillStyle=o,n){let c=this.cachedCanvases.getCanvas("transparent",a,s);this.compositeCtx=this.ctx,this.transparentCanvas=c.canvas,this.ctx=c.context,this.ctx.save(),this.ctx.transform(..._t(this.compositeCtx))}this.ctx.save(),Tl(this.ctx),e&&(this.ctx.transform(...e),this.outputScaleX=e[0],this.outputScaleY=e[0]),this.ctx.transform(...t.transform),this.viewportScale=t.scale,this.baseTransform=_t(this.ctx)}executeOperatorList(e,t,n,i,a){let s=e.argsArray,o=e.fnArray,c=t||0,u=s.length;if(u===c)return c;let h=u-c>Z1&&typeof n=="function",f=h?Date.now()+pS:0,d=0,p=this.commonObjs,m=this.objs,g,x;for(;;){if(i!==void 0&&c===i.nextBreakPoint)return i.breakIt(c,n),c;if(!a||a(c))if(g=o[c],x=s[c]??null,g!==ao.dependency)x===null?this[g](c):this[g](c,...x);else for(let y of x){this.dependencyTracker?.recordNamedData(y,c);let b=y.startsWith("g_")?p:m;if(!b.has(y))return b.get(y,n),c}if(c++,c===u)return c;if(h&&++d>Z1){if(Date.now()>f)return n(),c;d=0}}}#e(){for(;this.stateStack.length||this.inSMaskMode;)this.restore();this.current.activeSMask=null,this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null)}endDrawing(){this.#e(),this.cachedCanvases.clear(),this.cachedPatterns.clear();for(let e of this._cachedBitmapsMap.values()){for(let t of e.values())typeof HTMLCanvasElement<"u"&&t instanceof HTMLCanvasElement&&(t.width=t.height=0);e.clear()}this._cachedBitmapsMap.clear(),this.#t()}#t(){if(this.pageColors){let e=this.filterFactory.addHCMFilter(this.pageColors.foreground,this.pageColors.background);if(e!=="none"){let t=this.ctx.filter;this.ctx.filter=e,this.ctx.drawImage(this.ctx.canvas,0,0),this.ctx.filter=t}}}_scaleImage(e,t){let n=e.width??e.displayWidth,i=e.height??e.displayHeight,a=Math.max(Math.hypot(t[0],t[1]),1),s=Math.max(Math.hypot(t[2],t[3]),1),o=n,c=i,u="prescale1",h,f;for(;a>2&&o>1||s>2&&c>1;){let d=o,p=c;a>2&&o>1&&(d=o>=16384?Math.floor(o/2)-1||1:Math.ceil(o/2),a/=o/d),s>2&&c>1&&(p=c>=16384?Math.floor(c/2)-1||1:Math.ceil(c)/2,s/=c/p),h=this.cachedCanvases.getCanvas(u,d,p),f=h.context,f.clearRect(0,0,d,p),f.drawImage(e,0,0,o,c,0,0,d,p),e=h.canvas,o=d,c=p,u=u==="prescale1"?"prescale2":"prescale1"}return{img:e,paintWidth:o,paintHeight:c}}_createMaskCanvas(e,t){let n=this.ctx,{width:i,height:a}=t,s=this.current.fillColor,o=this.current.patternFill,c=_t(n),u,h,f,d;if((t.bitmap||t.data)&&t.count>1){let F=t.bitmap||t.data.buffer;h=JSON.stringify(o?c:[c.slice(0,4),s]),u=this._cachedBitmapsMap.get(F),u||(u=new Map,this._cachedBitmapsMap.set(F,u));let k=u.get(h);if(k&&!o){let D=Math.round(Math.min(c[0],c[2])+c[4]),B=Math.round(Math.min(c[1],c[3])+c[5]);return this.dependencyTracker?.recordDependencies(e,Qr.transformAndFill),{canvas:k,offsetX:D,offsetY:B}}f=k}f||(d=this.cachedCanvases.getCanvas("maskCanvas",i,a),Q1(d.context,t));let p=Re.transform(c,[1/i,0,0,-1/a,0,0]);p=Re.transform(p,[1,0,0,1,0,-a]);let m=Ma.slice();Re.axialAlignedBoundingBox([0,0,i,a],p,m);let[g,x,y,b]=m,v=Math.round(y-g)||1,_=Math.round(b-x)||1,A=this.cachedCanvases.getCanvas("fillCanvas",v,_),E=A.context,T=g,S=x;E.translate(-T,-S),E.transform(...p),f||(f=this._scaleImage(d.canvas,An(E)),f=f.img,u&&o&&u.set(h,f)),E.imageSmoothingEnabled=ex(_t(E),t.interpolate),Dl(E,f,0,0,f.width,f.height,0,0,i,a),E.globalCompositeOperation="source-in";let C=Re.transform(An(E),[1,0,0,1,-T,-S]);return E.fillStyle=o?s.getPattern(n,this,C,Zt.FILL,e):s,E.fillRect(0,0,i,a),u&&!o&&(this.cachedCanvases.delete("fillCanvas"),u.set(h,A.canvas)),this.dependencyTracker?.recordDependencies(e,Qr.transformAndFill),{canvas:A.canvas,offsetX:Math.round(T),offsetY:Math.round(S)}}setLineWidth(e,t){this.dependencyTracker?.recordSimpleData("lineWidth",e),t!==this.current.lineWidth&&(this._cachedScaleForStroking[0]=-1),this.current.lineWidth=t,this.ctx.lineWidth=t}setLineCap(e,t){this.dependencyTracker?.recordSimpleData("lineCap",e),this.ctx.lineCap=mS[t]}setLineJoin(e,t){this.dependencyTracker?.recordSimpleData("lineJoin",e),this.ctx.lineJoin=xS[t]}setMiterLimit(e,t){this.dependencyTracker?.recordSimpleData("miterLimit",e),this.ctx.miterLimit=t}setDash(e,t,n){this.dependencyTracker?.recordSimpleData("dash",e);let i=this.ctx;i.setLineDash!==void 0&&(i.setLineDash(t),i.lineDashOffset=n)}setRenderingIntent(e,t){}setFlatness(e,t){}setGState(e,t){for(let[n,i]of t)switch(n){case"LW":this.setLineWidth(e,i);break;case"LC":this.setLineCap(e,i);break;case"LJ":this.setLineJoin(e,i);break;case"ML":this.setMiterLimit(e,i);break;case"D":this.setDash(e,i[0],i[1]);break;case"RI":this.setRenderingIntent(e,i);break;case"FL":this.setFlatness(e,i);break;case"Font":this.setFont(e,i[0],i[1]);break;case"CA":this.dependencyTracker?.recordSimpleData("strokeAlpha",e),this.current.strokeAlpha=i;break;case"ca":this.dependencyTracker?.recordSimpleData("fillAlpha",e),this.ctx.globalAlpha=this.current.fillAlpha=i;break;case"BM":this.dependencyTracker?.recordSimpleData("globalCompositeOperation",e),this.ctx.globalCompositeOperation=i;break;case"SMask":this.dependencyTracker?.recordSimpleData("SMask",e),this.current.activeSMask=i?this.tempSMask:null,this.tempSMask=null,this.checkSMaskState();break;case"TR":this.dependencyTracker?.recordSimpleData("filter",e),this.ctx.filter=this.current.transferMaps=this.filterFactory.addFilter(i);break}}get inSMaskMode(){return!!this.suspendedCtx}checkSMaskState(){let e=this.inSMaskMode;this.current.activeSMask&&!e?this.beginSMaskMode():!this.current.activeSMask&&e&&this.endSMaskMode()}beginSMaskMode(e){if(this.inSMaskMode)throw new Error("beginSMaskMode called while already in smask mode");let t=this.ctx.canvas.width,n=this.ctx.canvas.height,i="smaskGroupAt"+this.groupLevel,a=this.cachedCanvases.getCanvas(i,t,n);this.suspendedCtx=this.ctx;let s=this.ctx=a.context;s.setTransform(this.suspendedCtx.getTransform()),Js(this.suspendedCtx,s),gS(s,this.suspendedCtx),this.setGState(e,[["BM","source-over"]])}endSMaskMode(){if(!this.inSMaskMode)throw new Error("endSMaskMode called while not in smask mode");this.ctx._removeMirroring(),Js(this.ctx,this.suspendedCtx),this.ctx=this.suspendedCtx,this.suspendedCtx=null}compose(e){if(!this.current.activeSMask)return;e?(e[0]=Math.floor(e[0]),e[1]=Math.floor(e[1]),e[2]=Math.ceil(e[2]),e[3]=Math.ceil(e[3])):e=[0,0,this.ctx.canvas.width,this.ctx.canvas.height];let t=this.current.activeSMask,n=this.suspendedCtx;this.composeSMask(n,t,this.ctx,e),this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.clearRect(0,0,this.ctx.canvas.width,this.ctx.canvas.height),this.ctx.restore()}composeSMask(e,t,n,i){let a=i[0],s=i[1],o=i[2]-a,c=i[3]-s;o===0||c===0||(this.genericComposeSMask(t.context,n,o,c,t.subtype,t.backdrop,t.transferMap,a,s,t.offsetX,t.offsetY),e.save(),e.globalAlpha=1,e.globalCompositeOperation="source-over",e.setTransform(1,0,0,1,0,0),e.drawImage(n.canvas,0,0),e.restore())}genericComposeSMask(e,t,n,i,a,s,o,c,u,h,f){let d=e.canvas,p=c-h,m=u-f;if(s)if(p<0||m<0||p+n>d.width||m+i>d.height){let x=this.cachedCanvases.getCanvas("maskExtension",n,i),y=x.context;y.drawImage(d,-p,-m),y.globalCompositeOperation="destination-atop",y.fillStyle=s,y.fillRect(0,0,n,i),y.globalCompositeOperation="source-over",d=x.canvas,p=m=0}else{e.save(),e.globalAlpha=1,e.setTransform(1,0,0,1,0,0);let x=new Path2D;x.rect(p,m,n,i),e.clip(x),e.globalCompositeOperation="destination-atop",e.fillStyle=s,e.fillRect(p,m,n,i),e.restore()}t.save(),t.globalAlpha=1,t.setTransform(1,0,0,1,0,0),a==="Alpha"&&o?t.filter=this.filterFactory.addAlphaFilter(o):a==="Luminosity"&&(t.filter=this.filterFactory.addLuminosityFilter(o));let g=new Path2D;g.rect(c,u,n,i),t.clip(g),t.globalCompositeOperation="destination-in",t.drawImage(d,p,m,n,i,c,u,n,i),t.restore()}save(e){this.inSMaskMode&&Js(this.ctx,this.suspendedCtx),this.ctx.save();let t=this.current;this.stateStack.push(t),this.current=t.clone(),this.dependencyTracker?.save(e)}restore(e){if(this.dependencyTracker?.restore(e),this.stateStack.length===0){this.inSMaskMode&&this.endSMaskMode();return}this.current=this.stateStack.pop(),this.ctx.restore(),this.inSMaskMode&&Js(this.suspendedCtx,this.ctx),this.checkSMaskState(),this.pendingClip=null,this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null}transform(e,t,n,i,a,s,o){this.dependencyTracker?.recordIncrementalData("transform",e),this.ctx.transform(t,n,i,a,s,o),this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null}constructPath(e,t,n,i){let[a]=n;if(!i){a||=n[0]=new Path2D,this[t](e,a);return}if(this.dependencyTracker!==null){let s=t===ao.stroke?this.current.lineWidth/2:0;this.dependencyTracker.resetBBox(e).recordBBox(e,this.ctx,i[0]-s,i[2]+s,i[1]-s,i[3]+s).recordDependencies(e,["transform"])}if(!(a instanceof Path2D)){let s=n[0]=new Path2D;for(let o=0,c=a.length;o<c;)switch(a[o++]){case vl.moveTo:s.moveTo(a[o++],a[o++]);break;case vl.lineTo:s.lineTo(a[o++],a[o++]);break;case vl.curveTo:s.bezierCurveTo(a[o++],a[o++],a[o++],a[o++],a[o++],a[o++]);break;case vl.closePath:s.closePath();break;default:Ne(`Unrecognized drawing path operator: ${a[o-1]}`);break}a=s}Re.axialAlignedBoundingBox(i,_t(this.ctx),this.current.minMax),this[t](e,a),this._pathStartIdx=e}closePath(e){this.ctx.closePath()}stroke(e,t,n=!0){let i=this.ctx,a=this.current.strokeColor;if(i.globalAlpha=this.current.strokeAlpha,this.contentVisible)if(typeof a=="object"&&a?.getPattern){let s=a.isModifyingCurrentTransform()?i.getTransform():null;if(i.save(),i.strokeStyle=a.getPattern(i,this,An(i),Zt.STROKE,e),s){let o=new Path2D;o.addPath(t,i.getTransform().invertSelf().multiplySelf(s)),t=o}this.rescaleAndStroke(t,!1),i.restore()}else this.rescaleAndStroke(t,!0);this.dependencyTracker?.recordDependencies(e,Qr.stroke),n&&this.consumePath(e,t,this.current.getClippedPathBoundingBox(Zt.STROKE,_t(this.ctx))),i.globalAlpha=this.current.fillAlpha}closeStroke(e,t){this.stroke(e,t)}fill(e,t,n=!0){let i=this.ctx,a=this.current.fillColor,s=this.current.patternFill,o=!1;if(s){let u=a.isModifyingCurrentTransform()?i.getTransform():null;if(this.dependencyTracker?.save(e),i.save(),i.fillStyle=a.getPattern(i,this,An(i),Zt.FILL,e),u){let h=new Path2D;h.addPath(t,i.getTransform().invertSelf().multiplySelf(u)),t=h}o=!0}let c=this.current.getClippedPathBoundingBox();this.contentVisible&&c!==null&&(this.pendingEOFill?(i.fill(t,"evenodd"),this.pendingEOFill=!1):i.fill(t)),this.dependencyTracker?.recordDependencies(e,Qr.fill),o&&(i.restore(),this.dependencyTracker?.restore(e)),n&&this.consumePath(e,t,c)}eoFill(e,t){this.pendingEOFill=!0,this.fill(e,t)}fillStroke(e,t){this.fill(e,t,!1),this.stroke(e,t,!1),this.consumePath(e,t)}eoFillStroke(e,t){this.pendingEOFill=!0,this.fillStroke(e,t)}closeFillStroke(e,t){this.fillStroke(e,t)}closeEOFillStroke(e,t){this.pendingEOFill=!0,this.fillStroke(e,t)}endPath(e,t){this.consumePath(e,t)}rawFillPath(e,t){this.ctx.fill(t),this.dependencyTracker?.recordDependencies(e,Qr.rawFillPath).recordOperation(e)}clip(e){this.dependencyTracker?.recordFutureForcedDependency("clipMode",e),this.pendingClip=vS}eoClip(e){this.dependencyTracker?.recordFutureForcedDependency("clipMode",e),this.pendingClip=tx}beginText(e){this.current.textMatrix=null,this.current.textMatrixScale=1,this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0,this.dependencyTracker?.recordOpenMarker(e).resetIncrementalData("sameLineText").resetIncrementalData("moveText",e)}endText(e){let t=this.pendingTextPaths,n=this.ctx;if(this.dependencyTracker){let{dependencyTracker:i}=this;t!==void 0&&i.recordFutureForcedDependency("textClip",i.getOpenMarker()).recordFutureForcedDependency("textClip",e),i.recordCloseMarker(e)}if(t!==void 0){let i=new Path2D,a=n.getTransform().invertSelf();for(let{transform:s,x:o,y:c,fontSize:u,path:h}of t)h&&i.addPath(h,new DOMMatrix(s).preMultiplySelf(a).translate(o,c).scale(u,-u));n.clip(i)}delete this.pendingTextPaths}setCharSpacing(e,t){this.dependencyTracker?.recordSimpleData("charSpacing",e),this.current.charSpacing=t}setWordSpacing(e,t){this.dependencyTracker?.recordSimpleData("wordSpacing",e),this.current.wordSpacing=t}setHScale(e,t){this.dependencyTracker?.recordSimpleData("hScale",e),this.current.textHScale=t/100}setLeading(e,t){this.dependencyTracker?.recordSimpleData("leading",e),this.current.leading=-t}setFont(e,t,n){this.dependencyTracker?.recordSimpleData("font",e).recordSimpleDataFromNamed("fontObj",t,e);let i=this.commonObjs.get(t),a=this.current;if(!i)throw new Error(`Can't find font for ${t}`);if(a.fontMatrix=i.fontMatrix||Zf,(a.fontMatrix[0]===0||a.fontMatrix[3]===0)&&Ne("Invalid font matrix for font "+t),n<0?(n=-n,a.fontDirection=-1):a.fontDirection=1,this.current.font=i,this.current.fontSize=n,i.isType3Font)return;let s=i.loadedName||"sans-serif",o=i.systemFontInfo?.css||`"${s}", ${i.fallbackName}`,c="normal";i.black?c="900":i.bold&&(c="bold");let u=i.italic?"italic":"normal",h=n;n<Y1?h=Y1:n>K1&&(h=K1),this.current.fontSizeScale=n/h,this.ctx.font=`${u} ${c} ${h}px ${o}`}setTextRenderingMode(e,t){this.dependencyTracker?.recordSimpleData("textRenderingMode",e),this.current.textRenderingMode=t}setTextRise(e,t){this.dependencyTracker?.recordSimpleData("textRise",e),this.current.textRise=t}moveText(e,t,n){this.dependencyTracker?.resetIncrementalData("sameLineText").recordIncrementalData("moveText",e),this.current.x=this.current.lineX+=t,this.current.y=this.current.lineY+=n}setLeadingMoveText(e,t,n){this.setLeading(e,-n),this.moveText(e,t,n)}setTextMatrix(e,t){this.dependencyTracker?.recordSimpleData("textMatrix",e);let{current:n}=this;n.textMatrix=t,n.textMatrixScale=Math.hypot(t[0],t[1]),n.x=n.lineX=0,n.y=n.lineY=0}nextLine(e){this.moveText(e,0,this.current.leading),this.dependencyTracker?.recordIncrementalData("moveText",this.dependencyTracker.getSimpleIndex("leading")??e)}#n(e,t,n){let i=new Path2D;return i.addPath(e,new DOMMatrix(n).invertSelf().multiplySelf(t)),i}paintChar(e,t,n,i,a,s){let o=this.ctx,c=this.current,u=c.font,h=c.textRenderingMode,f=c.fontSize/c.fontSizeScale,d=h&Kt.FILL_STROKE_MASK,p=!!(h&Kt.ADD_TO_PATH_FLAG),m=c.patternFill&&!u.missingFile,g=c.patternStroke&&!u.missingFile,x;if((u.disableFontFace||p||m||g)&&!u.missingFile&&(x=u.getPathGenerator(this.commonObjs,t)),x&&(u.disableFontFace||m||g)){o.save(),o.translate(n,i),o.scale(f,-f),this.dependencyTracker?.recordCharacterBBox(e,o,u);let y;if(d===Kt.FILL||d===Kt.FILL_STROKE)if(a){y=o.getTransform(),o.setTransform(...a);let b=this.#n(x,y,a);o.fill(b)}else o.fill(x);if(d===Kt.STROKE||d===Kt.FILL_STROKE)if(s){y||=o.getTransform(),o.setTransform(...s);let{a:b,b:v,c:_,d:A}=y,E=Re.inverseTransform(s),T=Re.transform([b,v,_,A,0,0],E);Re.singularValueDecompose2dScale(T,zr),o.lineWidth*=Math.max(zr[0],zr[1])/f,o.stroke(this.#n(x,y,s))}else o.lineWidth/=f,o.stroke(x);o.restore()}else(d===Kt.FILL||d===Kt.FILL_STROKE)&&(o.fillText(t,n,i),this.dependencyTracker?.recordCharacterBBox(e,o,u,f,n,i,()=>o.measureText(t))),(d===Kt.STROKE||d===Kt.FILL_STROKE)&&(this.dependencyTracker&&this.dependencyTracker?.recordCharacterBBox(e,o,u,f,n,i,()=>o.measureText(t)).recordDependencies(e,Qr.stroke),o.strokeText(t,n,i));p&&((this.pendingTextPaths||=[]).push({transform:_t(o),x:n,y:i,fontSize:f,path:x}),this.dependencyTracker?.recordCharacterBBox(e,o,u,f,n,i))}get isFontSubpixelAAEnabled(){let{context:e}=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10);e.scale(1.5,1),e.fillText("I",0,10);let t=e.getImageData(0,0,10,10).data,n=!1;for(let i=3;i<t.length;i+=4)if(t[i]>0&&t[i]<255){n=!0;break}return Ge(this,"isFontSubpixelAAEnabled",n)}showText(e,t){this.dependencyTracker&&(this.dependencyTracker.recordDependencies(e,Qr.showText).resetBBox(e),this.current.textRenderingMode&Kt.ADD_TO_PATH_FLAG&&this.dependencyTracker.recordFutureForcedDependency("textClip",e).inheritPendingDependenciesAsFutureForcedDependencies());let n=this.current,i=n.font;if(i.isType3Font){this.showType3Text(e,t),this.dependencyTracker?.recordShowTextOperation(e);return}let a=n.fontSize;if(a===0){this.dependencyTracker?.recordOperation(e);return}let s=this.ctx,o=n.fontSizeScale,c=n.charSpacing,u=n.wordSpacing,h=n.fontDirection,f=n.textHScale*h,d=t.length,p=i.vertical,m=p?1:-1,g=i.defaultVMetrics,x=a*n.fontMatrix[0],y=n.textRenderingMode===Kt.FILL&&!i.disableFontFace&&!n.patternFill;s.save(),n.textMatrix&&s.transform(...n.textMatrix),s.translate(n.x,n.y+n.textRise),h>0?s.scale(f,-1):s.scale(f,1);let b,v;if(n.patternFill){s.save();let S=n.fillColor.getPattern(s,this,An(s),Zt.FILL,e);b=_t(s),s.restore(),s.fillStyle=S}if(n.patternStroke){s.save();let S=n.strokeColor.getPattern(s,this,An(s),Zt.STROKE,e);v=_t(s),s.restore(),s.strokeStyle=S}let _=n.lineWidth,A=n.textMatrixScale;if(A===0||_===0){let S=n.textRenderingMode&Kt.FILL_STROKE_MASK;(S===Kt.STROKE||S===Kt.FILL_STROKE)&&(_=this.getSinglePixelWidth())}else _/=A;if(o!==1&&(s.scale(o,o),_/=o),s.lineWidth=_,i.isInvalidPDFjsFont){let S=[],C=0;for(let k of t)S.push(k.unicode),C+=k.width;let F=S.join("");if(s.fillText(F,0,0),this.dependencyTracker!==null){let k=s.measureText(F);this.dependencyTracker.recordBBox(e,this.ctx,-k.actualBoundingBoxLeft,k.actualBoundingBoxRight,-k.actualBoundingBoxAscent,k.actualBoundingBoxDescent).recordShowTextOperation(e)}n.x+=C*x*f,s.restore(),this.compose();return}let E=0,T;for(T=0;T<d;++T){let S=t[T];if(typeof S=="number"){E+=m*S*a/1e3;continue}let C=!1,F=(S.isSpace?u:0)+c,k=S.fontChar,D=S.accent,B,q,j=S.width;if(p){let P=S.vmetric||g,R=-(S.vmetric?P[1]:j*.5)*x,N=P[2]*x;j=P?-P[0]:j,B=R/o,q=(E+N)/o}else B=E/o,q=0;let U;if(i.remeasure&&j>0){U=s.measureText(k);let P=U.width*1e3/a*o;if(j<P&&this.isFontSubpixelAAEnabled){let R=j/P;C=!0,s.save(),s.scale(R,1),B/=R}else j!==P&&(B+=(j-P)/2e3*a/o)}if(this.contentVisible&&(S.isInFont||i.missingFile)){if(y&&!D)s.fillText(k,B,q),this.dependencyTracker?.recordCharacterBBox(e,s,U?{bbox:null}:i,a/o,B,q,()=>U??s.measureText(k));else if(this.paintChar(e,k,B,q,b,v),D){let P=B+a*D.offset.x/o,R=q-a*D.offset.y/o;this.paintChar(e,D.fontChar,P,R,b,v)}}let O=p?j*x-F*h:j*x+F*h;E+=O,C&&s.restore()}p?n.y-=E:n.x+=E*f,s.restore(),this.compose(),this.dependencyTracker?.recordShowTextOperation(e)}showType3Text(e,t){let n=this.ctx,i=this.current,a=i.font,s=i.fontSize,o=i.fontDirection,c=a.vertical?1:-1,u=i.charSpacing,h=i.wordSpacing,f=i.textHScale*o,d=i.fontMatrix||Zf,p=t.length,m=i.textRenderingMode===Kt.INVISIBLE,g,x,y,b;if(m||s===0)return;this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null,n.save(),i.textMatrix&&n.transform(...i.textMatrix),n.translate(i.x,i.y+i.textRise),n.scale(f,o);let v=this.dependencyTracker;for(this.dependencyTracker=v?new jl(v,e):null,g=0;g<p;++g){if(x=t[g],typeof x=="number"){b=c*x*s/1e3,this.ctx.translate(b,0),i.x+=b*f;continue}let _=(x.isSpace?h:0)+u,A=a.charProcOperatorList[x.operatorListId];A?this.contentVisible&&(this.save(),n.scale(s,s),n.transform(...d),this.executeOperatorList(A),this.restore()):Ne(`Type3 character "${x.operatorListId}" is not available.`);let E=[x.width,0];Re.applyTransform(E,d),y=E[0]*s+_,n.translate(y,0),i.x+=y*f}n.restore(),v&&(this.dependencyTracker=v)}setCharWidth(e,t,n){}setCharWidthAndBounds(e,t,n,i,a,s,o){let c=new Path2D;c.rect(i,a,s-i,o-a),this.ctx.clip(c),this.dependencyTracker?.recordBBox(e,this.ctx,i,s,a,o).recordClipBox(e,this.ctx,i,s,a,o),this.endPath(e)}getColorN_Pattern(e,t){let n;if(t[0]==="TilingPattern"){let i=this.baseTransform||_t(this.ctx),a={createCanvasGraphics:(s,o)=>new r(s,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:this.optionalContentConfig,markedContentStack:this.markedContentStack},void 0,void 0,this.dependencyTracker?new jl(this.dependencyTracker,o,!0):null)};n=new Fd(t,this.ctx,a,i)}else n=this._getPattern(e,t[1],t[2]);return n}setStrokeColorN(e,...t){this.dependencyTracker?.recordSimpleData("strokeColor",e),this.current.strokeColor=this.getColorN_Pattern(e,t),this.current.patternStroke=!0}setFillColorN(e,...t){this.dependencyTracker?.recordSimpleData("fillColor",e),this.current.fillColor=this.getColorN_Pattern(e,t),this.current.patternFill=!0}setStrokeRGBColor(e,t){this.dependencyTracker?.recordSimpleData("strokeColor",e),this.ctx.strokeStyle=this.current.strokeColor=t,this.current.patternStroke=!1}setStrokeTransparent(e){this.dependencyTracker?.recordSimpleData("strokeColor",e),this.ctx.strokeStyle=this.current.strokeColor="transparent",this.current.patternStroke=!1}setFillRGBColor(e,t){this.dependencyTracker?.recordSimpleData("fillColor",e),this.ctx.fillStyle=this.current.fillColor=t,this.current.patternFill=!1}setFillTransparent(e){this.dependencyTracker?.recordSimpleData("fillColor",e),this.ctx.fillStyle=this.current.fillColor="transparent",this.current.patternFill=!1}_getPattern(e,t,n=null){let i;return this.cachedPatterns.has(t)?i=this.cachedPatterns.get(t):(i=fS(this.getObject(e,t)),this.cachedPatterns.set(t,i)),n&&(i.matrix=n),i}shadingFill(e,t){if(!this.contentVisible)return;let n=this.ctx;this.save(e);let i=this._getPattern(e,t);n.fillStyle=i.getPattern(n,this,An(n),Zt.SHADING,e);let a=An(n);if(a){let{width:s,height:o}=n.canvas,c=Ma.slice();Re.axialAlignedBoundingBox([0,0,s,o],a,c);let[u,h,f,d]=c;this.ctx.fillRect(u,h,f-u,d-h)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.dependencyTracker?.resetBBox(e).recordFullPageBBox(e).recordDependencies(e,Qr.transform).recordDependencies(e,Qr.fill).recordOperation(e),this.compose(this.current.getClippedPathBoundingBox()),this.restore(e)}beginInlineImage(){dt("Should not call beginInlineImage")}beginImageData(){dt("Should not call beginImageData")}paintFormXObjectBegin(e,t,n){if(this.contentVisible&&(this.save(e),this.baseTransformStack.push(this.baseTransform),t&&this.transform(e,...t),this.baseTransform=_t(this.ctx),n)){Re.axialAlignedBoundingBox(n,this.baseTransform,this.current.minMax);let[i,a,s,o]=n,c=new Path2D;c.rect(i,a,s-i,o-a),this.ctx.clip(c),this.dependencyTracker?.recordClipBox(e,this.ctx,i,s,a,o),this.endPath(e)}}paintFormXObjectEnd(e){this.contentVisible&&(this.restore(e),this.baseTransform=this.baseTransformStack.pop())}beginGroup(e,t){if(!this.contentVisible)return;this.save(e),this.inSMaskMode&&(this.endSMaskMode(),this.current.activeSMask=null);let n=this.ctx;t.isolated||du("TODO: Support non-isolated groups."),t.knockout&&Ne("Knockout groups not supported.");let i=_t(n);if(t.matrix&&n.transform(...t.matrix),!t.bbox)throw new Error("Bounding box is required.");let a=Ma.slice();Re.axialAlignedBoundingBox(t.bbox,_t(n),a);let s=[0,0,n.canvas.width,n.canvas.height];a=Re.intersect(a,s)||[0,0,0,0];let o=Math.floor(a[0]),c=Math.floor(a[1]),u=Math.max(Math.ceil(a[2])-o,1),h=Math.max(Math.ceil(a[3])-c,1);this.current.startNewPathAndClipBox([0,0,u,h]);let f="groupAt"+this.groupLevel;t.smask&&(f+="_smask_"+this.smaskCounter++%2);let d=this.cachedCanvases.getCanvas(f,u,h),p=d.context;p.translate(-o,-c),p.transform(...i);let m=new Path2D,[g,x,y,b]=t.bbox;if(m.rect(g,x,y-g,b-x),t.matrix){let v=new Path2D;v.addPath(m,new DOMMatrix(t.matrix)),m=v}p.clip(m),t.smask&&this.smaskStack.push({canvas:d.canvas,context:p,offsetX:o,offsetY:c,subtype:t.smask.subtype,backdrop:t.smask.backdrop,transferMap:t.smask.transferMap||null,startTransformInverse:null}),(!t.smask||this.dependencyTracker)&&(n.setTransform(1,0,0,1,0,0),n.translate(o,c),n.save()),Js(n,p),this.ctx=p,this.dependencyTracker?.inheritSimpleDataAsFutureForcedDependencies(["fillAlpha","strokeAlpha","globalCompositeOperation"]).pushBaseTransform(n),this.setGState(e,[["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(n),this.groupLevel++}endGroup(e,t){if(!this.contentVisible)return;this.groupLevel--;let n=this.ctx,i=this.groupStack.pop();if(this.ctx=i,this.ctx.imageSmoothingEnabled=!1,this.dependencyTracker?.popBaseTransform(),t.smask)this.tempSMask=this.smaskStack.pop(),this.restore(e),this.dependencyTracker&&this.ctx.restore();else{this.ctx.restore();let a=_t(this.ctx);this.restore(e),this.ctx.save(),this.ctx.setTransform(...a);let s=Ma.slice();Re.axialAlignedBoundingBox([0,0,n.canvas.width,n.canvas.height],a,s),this.ctx.drawImage(n.canvas,0,0),this.ctx.restore(),this.compose(s)}}beginAnnotation(e,t,n,i,a,s){if(this.#e(),Tl(this.ctx),this.ctx.save(),this.save(e),this.baseTransform&&this.ctx.setTransform(...this.baseTransform),n){let o=n[2]-n[0],c=n[3]-n[1];if(s&&this.annotationCanvasMap){i=i.slice(),i[4]-=n[0],i[5]-=n[1],n=n.slice(),n[0]=n[1]=0,n[2]=o,n[3]=c,Re.singularValueDecompose2dScale(_t(this.ctx),zr);let{viewportScale:u}=this,h=Math.ceil(o*this.outputScaleX*u),f=Math.ceil(c*this.outputScaleY*u);this.annotationCanvas=this.canvasFactory.create(h,f);let{canvas:d,context:p}=this.annotationCanvas;this.annotationCanvasMap.set(t,d),this.annotationCanvas.savedCtx=this.ctx,this.ctx=p,this.ctx.save(),this.ctx.setTransform(zr[0],0,0,-zr[1],0,c*zr[1]),Tl(this.ctx)}else{Tl(this.ctx),this.endPath(e);let u=new Path2D;u.rect(n[0],n[1],o,c),this.ctx.clip(u)}}this.current=new Gl(this.ctx.canvas.width,this.ctx.canvas.height),this.transform(e,...i),this.transform(e,...a)}endAnnotation(e){this.annotationCanvas&&(this.ctx.restore(),this.#t(),this.ctx=this.annotationCanvas.savedCtx,delete this.annotationCanvas.savedCtx,delete this.annotationCanvas)}paintImageMaskXObject(e,t){if(!this.contentVisible)return;let n=t.count;t=this.getObject(e,t.data,t),t.count=n;let i=this.ctx,a=this._createMaskCanvas(e,t),s=a.canvas;i.save(),i.setTransform(1,0,0,1,0,0),i.drawImage(s,a.offsetX,a.offsetY),this.dependencyTracker?.resetBBox(e).recordBBox(e,this.ctx,a.offsetX,a.offsetX+s.width,a.offsetY,a.offsetY+s.height).recordOperation(e),i.restore(),this.compose()}paintImageMaskXObjectRepeat(e,t,n,i=0,a=0,s,o){if(!this.contentVisible)return;t=this.getObject(e,t.data,t);let c=this.ctx;c.save();let u=_t(c);c.transform(n,i,a,s,0,0);let h=this._createMaskCanvas(e,t);c.setTransform(1,0,0,1,h.offsetX-u[4],h.offsetY-u[5]),this.dependencyTracker?.resetBBox(e);for(let f=0,d=o.length;f<d;f+=2){let p=Re.transform(u,[n,i,a,s,o[f],o[f+1]]);c.drawImage(h.canvas,p[4],p[5]),this.dependencyTracker?.recordBBox(e,this.ctx,p[4],p[4]+h.canvas.width,p[5],p[5]+h.canvas.height)}c.restore(),this.compose(),this.dependencyTracker?.recordOperation(e)}paintImageMaskXObjectGroup(e,t){if(!this.contentVisible)return;let n=this.ctx,i=this.current.fillColor,a=this.current.patternFill;this.dependencyTracker?.resetBBox(e).recordDependencies(e,Qr.transformAndFill);for(let s of t){let{data:o,width:c,height:u,transform:h}=s,f=this.cachedCanvases.getCanvas("maskCanvas",c,u),d=f.context;d.save();let p=this.getObject(e,o,s);Q1(d,p),d.globalCompositeOperation="source-in",d.fillStyle=a?i.getPattern(d,this,An(n),Zt.FILL,e):i,d.fillRect(0,0,c,u),d.restore(),n.save(),n.transform(...h),n.scale(1,-1),Dl(n,f.canvas,0,0,c,u,0,-1,1,1),this.dependencyTracker?.recordBBox(e,n,0,c,0,u),n.restore()}this.compose(),this.dependencyTracker?.recordOperation(e)}paintImageXObject(e,t){if(!this.contentVisible)return;let n=this.getObject(e,t);if(!n){Ne("Dependent image isn't ready yet");return}this.paintInlineImageXObject(e,n)}paintImageXObjectRepeat(e,t,n,i,a){if(!this.contentVisible)return;let s=this.getObject(e,t);if(!s){Ne("Dependent image isn't ready yet");return}let o=s.width,c=s.height,u=[];for(let h=0,f=a.length;h<f;h+=2)u.push({transform:[n,0,0,i,a[h],a[h+1]],x:0,y:0,w:o,h:c});this.paintInlineImageXObjectGroup(e,s,u)}applyTransferMapsToCanvas(e){return this.current.transferMaps!=="none"&&(e.filter=this.current.transferMaps,e.drawImage(e.canvas,0,0),e.filter="none"),e.canvas}applyTransferMapsToBitmap(e){if(this.current.transferMaps==="none")return e.bitmap;let{bitmap:t,width:n,height:i}=e,a=this.cachedCanvases.getCanvas("inlineImage",n,i),s=a.context;return s.filter=this.current.transferMaps,s.drawImage(t,0,0),s.filter="none",a.canvas}paintInlineImageXObject(e,t){if(!this.contentVisible)return;let n=t.width,i=t.height,a=this.ctx;this.save(e);let{filter:s}=a;s!=="none"&&s!==""&&(a.filter="none"),a.scale(1/n,-1/i);let o;if(t.bitmap)o=this.applyTransferMapsToBitmap(t);else if(typeof HTMLElement=="function"&&t instanceof HTMLElement||!t.data)o=t;else{let h=this.cachedCanvases.getCanvas("inlineImage",n,i).context;J1(h,t),o=this.applyTransferMapsToCanvas(h)}let c=this._scaleImage(o,An(a));a.imageSmoothingEnabled=ex(_t(a),t.interpolate),this.dependencyTracker?.resetBBox(e).recordBBox(e,a,0,n,-i,0).recordDependencies(e,Qr.imageXObject).recordOperation(e),Dl(a,c.img,0,0,c.paintWidth,c.paintHeight,0,-i,n,i),this.compose(),this.restore(e)}paintInlineImageXObjectGroup(e,t,n){if(!this.contentVisible)return;let i=this.ctx,a;if(t.bitmap)a=t.bitmap;else{let s=t.width,o=t.height,u=this.cachedCanvases.getCanvas("inlineImage",s,o).context;J1(u,t),a=this.applyTransferMapsToCanvas(u)}this.dependencyTracker?.resetBBox(e);for(let s of n)i.save(),i.transform(...s.transform),i.scale(1,-1),Dl(i,a,s.x,s.y,s.w,s.h,0,-1,1,1),this.dependencyTracker?.recordBBox(e,i,0,1,-1,0),i.restore();this.dependencyTracker?.recordOperation(e),this.compose()}paintSolidColorImageMask(e){this.contentVisible&&(this.dependencyTracker?.resetBBox(e).recordBBox(e,this.ctx,0,1,0,1).recordDependencies(e,Qr.fill).recordOperation(e),this.ctx.fillRect(0,0,1,1),this.compose())}markPoint(e,t){}markPointProps(e,t,n){}beginMarkedContent(e,t){this.dependencyTracker?.beginMarkedContent(e),this.markedContentStack.push({visible:!0})}beginMarkedContentProps(e,t,n){this.dependencyTracker?.beginMarkedContent(e),t==="OC"?this.markedContentStack.push({visible:this.optionalContentConfig.isVisible(n)}):this.markedContentStack.push({visible:!0}),this.contentVisible=this.isContentVisible()}endMarkedContent(e){this.dependencyTracker?.endMarkedContent(e),this.markedContentStack.pop(),this.contentVisible=this.isContentVisible()}beginCompat(e){}endCompat(e){}consumePath(e,t,n){let i=this.current.isEmptyClip();this.pendingClip&&this.current.updateClipFromPath(),this.pendingClip||this.compose(n);let a=this.ctx;this.pendingClip?(i||(this.pendingClip===tx?a.clip(t,"evenodd"):a.clip(t)),this.pendingClip=null,this.dependencyTracker?.bboxToClipBoxDropOperation(e).recordFutureForcedDependency("clipPath",e)):this.dependencyTracker?.recordOperation(e),this.current.startNewPathAndClipBox(this.current.clipBox)}getSinglePixelWidth(){if(!this._cachedGetSinglePixelWidth){let e=_t(this.ctx);if(e[1]===0&&e[2]===0)this._cachedGetSinglePixelWidth=1/Math.min(Math.abs(e[0]),Math.abs(e[3]));else{let t=Math.abs(e[0]*e[3]-e[2]*e[1]),n=Math.hypot(e[0],e[2]),i=Math.hypot(e[1],e[3]);this._cachedGetSinglePixelWidth=Math.max(n,i)/t}}return this._cachedGetSinglePixelWidth}getScaleForStroking(){if(this._cachedScaleForStroking[0]===-1){let{lineWidth:e}=this.current,{a:t,b:n,c:i,d:a}=this.ctx.getTransform(),s,o;if(n===0&&i===0){let c=Math.abs(t),u=Math.abs(a);if(c===u)if(e===0)s=o=1/c;else{let h=c*e;s=o=h<1?1/h:1}else if(e===0)s=1/c,o=1/u;else{let h=c*e,f=u*e;s=h<1?1/h:1,o=f<1?1/f:1}}else{let c=Math.abs(t*a-n*i),u=Math.hypot(t,n),h=Math.hypot(i,a);if(e===0)s=h/c,o=u/c;else{let f=e*c;s=h>f?h/f:1,o=u>f?u/f:1}}this._cachedScaleForStroking[0]=s,this._cachedScaleForStroking[1]=o}return this._cachedScaleForStroking}rescaleAndStroke(e,t){let{ctx:n,current:{lineWidth:i}}=this,[a,s]=this.getScaleForStroking();if(a===s){n.lineWidth=(i||1)*a,n.stroke(e);return}let o=n.getLineDash();t&&n.save(),n.scale(a,s),qf.a=1/a,qf.d=1/s;let c=new Path2D;if(c.addPath(e,qf),o.length>0){let u=Math.max(a,s);n.setLineDash(o.map(h=>h/u)),n.lineDashOffset/=u}n.lineWidth=i||1,n.stroke(c),t&&n.restore()}isContentVisible(){for(let e=this.markedContentStack.length-1;e>=0;e--)if(!this.markedContentStack[e].visible)return!1;return!0}};for(let r in ao)Wa.prototype[r]!==void 0&&(Wa.prototype[ao[r]]=Wa.prototype[r]);var Xl=class r{#e;#t;#n;static strings=["fontFamily","fontWeight","italicAngle"];static write(e){let t=new TextEncoder,n={},i=0;for(let u of r.strings){let h=t.encode(e[u]);n[u]=h,i+=4+h.length}let a=new ArrayBuffer(i),s=new Uint8Array(a),o=new DataView(a),c=0;for(let u of r.strings){let h=n[u],f=h.length;o.setUint32(c,f),s.set(h,c+4),c+=4+f}return Ye(c===a.byteLength,"CssFontInfo.write: Buffer overflow"),a}constructor(e){this.#e=e,this.#t=new DataView(this.#e),this.#n=new TextDecoder}#r(e){Ye(e<r.strings.length,"Invalid string index");let t=0;for(let i=0;i<e;i++)t+=this.#t.getUint32(t)+4;let n=this.#t.getUint32(t);return this.#n.decode(new Uint8Array(this.#e,t+4,n))}get fontFamily(){return this.#r(0)}get fontWeight(){return this.#r(1)}get italicAngle(){return this.#r(2)}},$l=class r{#e;#t;#n;static strings=["css","loadedName","baseFontName","src"];static write(e){let t=new TextEncoder,n={},i=0;for(let d of r.strings){let p=t.encode(e[d]);n[d]=p,i+=4+p.length}i+=4;let a,s,o=1+i;e.style&&(a=t.encode(e.style.style),s=t.encode(e.style.weight),o+=4+a.length+4+s.length);let c=new ArrayBuffer(o),u=new Uint8Array(c),h=new DataView(c),f=0;h.setUint8(f++,e.guessFallback?1:0),h.setUint32(f,0),f+=4,i=0;for(let d of r.strings){let p=n[d],m=p.length;i+=4+m,h.setUint32(f,m),u.set(p,f+4),f+=4+m}return h.setUint32(f-i-4,i),e.style&&(h.setUint32(f,a.length),u.set(a,f+4),f+=4+a.length,h.setUint32(f,s.length),u.set(s,f+4),f+=4+s.length),Ye(f<=c.byteLength,"SubstitionInfo.write: Buffer overflow"),c.transferToFixedLength(f)}constructor(e){this.#e=e,this.#t=new DataView(this.#e),this.#n=new TextDecoder}get guessFallback(){return this.#t.getUint8(0)!==0}#r(e){Ye(e<r.strings.length,"Invalid string index");let t=5;for(let i=0;i<e;i++)t+=this.#t.getUint32(t)+4;let n=this.#t.getUint32(t);return this.#n.decode(new Uint8Array(this.#e,t+4,n))}get css(){return this.#r(0)}get loadedName(){return this.#r(1)}get baseFontName(){return this.#r(2)}get src(){return this.#r(3)}get style(){let e=1;e+=4+this.#t.getUint32(e);let t=this.#t.getUint32(e),n=this.#n.decode(new Uint8Array(this.#e,e+4,t));e+=4+t;let i=this.#t.getUint32(e),a=this.#n.decode(new Uint8Array(this.#e,e+4,i));return{style:n,weight:a}}},Ud=class r{static bools=["black","bold","disableFontFace","fontExtraProperties","isInvalidPDFjsFont","isType3Font","italic","missingFile","remeasure","vertical"];static numbers=["ascent","defaultWidth","descent"];static strings=["fallbackName","loadedName","mimetype","name"];static#e=Math.ceil(this.bools.length*2/8);static#t=this.#e+this.numbers.length*8;static#n=this.#t+1+8;static#r=this.#n+1+48;static#s=this.#r+1+6;#i;#a;#o;constructor({data:e,extra:t}){this.#i=e,this.#a=new TextDecoder,this.#o=new DataView(this.#i),t&&Object.assign(this,t)}#l(e){Ye(e<r.bools.length,"Invalid boolean index");let t=Math.floor(e/4),n=e*2%8,i=this.#o.getUint8(t)>>n&3;return i===0?void 0:i===2}get black(){return this.#l(0)}get bold(){return this.#l(1)}get disableFontFace(){return this.#l(2)}get fontExtraProperties(){return this.#l(3)}get isInvalidPDFjsFont(){return this.#l(4)}get isType3Font(){return this.#l(5)}get italic(){return this.#l(6)}get missingFile(){return this.#l(7)}get remeasure(){return this.#l(8)}get vertical(){return this.#l(9)}#c(e){return Ye(e<r.numbers.length,"Invalid number index"),this.#o.getFloat64(r.#e+e*8)}get ascent(){return this.#c(0)}get defaultWidth(){return this.#c(1)}get descent(){return this.#c(2)}get bbox(){let e=r.#t;if(this.#o.getUint8(e)===0)return;e+=1;let n=[];for(let i=0;i<4;i++)n.push(this.#o.getInt16(e,!0)),e+=2;return n}get fontMatrix(){let e=r.#n;if(this.#o.getUint8(e)===0)return;e+=1;let n=[];for(let i=0;i<6;i++)n.push(this.#o.getFloat64(e,!0)),e+=8;return n}get defaultVMetrics(){let e=r.#r;if(this.#o.getUint8(e)===0)return;e+=1;let n=[];for(let i=0;i<3;i++)n.push(this.#o.getInt16(e,!0)),e+=2;return n}#f(e){Ye(e<r.strings.length,"Invalid string index");let t=r.#s+4;for(let a=0;a<e;a++)t+=this.#o.getUint32(t)+4;let n=this.#o.getUint32(t),i=new Uint8Array(n);return i.set(new Uint8Array(this.#i,t+4,n)),this.#a.decode(i)}get fallbackName(){return this.#f(0)}get loadedName(){return this.#f(1)}get mimetype(){return this.#f(2)}get name(){return this.#f(3)}get data(){let e=r.#s,t=this.#o.getUint32(e);e+=4+t;let n=this.#o.getUint32(e);e+=4+n;let i=this.#o.getUint32(e);e+=4+i;let a=this.#o.getUint32(e);if(a!==0)return new Uint8Array(this.#i,e+4,a)}clearData(){let e=r.#s,t=this.#o.getUint32(e);e+=4+t;let n=this.#o.getUint32(e);e+=4+n;let i=this.#o.getUint32(e);e+=4+i;let a=this.#o.getUint32(e);new Uint8Array(this.#i,e+4,a).fill(0),this.#o.setUint32(e,0)}get cssFontInfo(){let e=r.#s,t=this.#o.getUint32(e);e+=4+t;let n=this.#o.getUint32(e);e+=4+n;let i=this.#o.getUint32(e);if(i===0)return null;let a=new Uint8Array(i);return a.set(new Uint8Array(this.#i,e+4,i)),new Xl(a.buffer)}get systemFontInfo(){let e=r.#s,t=this.#o.getUint32(e);e+=4+t;let n=this.#o.getUint32(e);if(n===0)return null;let i=new Uint8Array(n);return i.set(new Uint8Array(this.#i,e+4,n)),new $l(i.buffer)}static write(e){let t=e.systemFontInfo?$l.write(e.systemFontInfo):null,n=e.cssFontInfo?Xl.write(e.cssFontInfo):null,i=new TextEncoder,a={},s=0;for(let g of r.strings)a[g]=i.encode(e[g]),s+=4+a[g].length;let o=r.#s+4+s+4+(t?t.byteLength:0)+4+(n?n.byteLength:0)+4+(e.data?e.data.length:0),c=new ArrayBuffer(o),u=new Uint8Array(c),h=new DataView(c),f=0,d=r.bools.length,p=0,m=0;for(let g=0;g<d;g++){let x=e[r.bools[g]];p|=(x===void 0?0:x?2:1)<<m,m+=2,(m===8||g===d-1)&&(h.setUint8(f++,p),p=0,m=0)}Ye(f===r.#e,"FontInfo.write: Boolean properties offset mismatch");for(let g of r.numbers)h.setFloat64(f,e[g]),f+=8;if(Ye(f===r.#t,"FontInfo.write: Number properties offset mismatch"),e.bbox){h.setUint8(f++,4);for(let g of e.bbox)h.setInt16(f,g,!0),f+=2}else h.setUint8(f++,0),f+=8;if(Ye(f===r.#n,"FontInfo.write: BBox properties offset mismatch"),e.fontMatrix){h.setUint8(f++,6);for(let g of e.fontMatrix)h.setFloat64(f,g,!0),f+=8}else h.setUint8(f++,0),f+=48;if(Ye(f===r.#r,"FontInfo.write: FontMatrix properties offset mismatch"),e.defaultVMetrics){h.setUint8(f++,1);for(let g of e.defaultVMetrics)h.setInt16(f,g,!0),f+=2}else h.setUint8(f++,0),f+=6;Ye(f===r.#s,"FontInfo.write: DefaultVMetrics properties offset mismatch"),h.setUint32(r.#s,0),f+=4;for(let g of r.strings){let x=a[g],y=x.length;h.setUint32(f,y),u.set(x,f+4),f+=4+y}if(h.setUint32(r.#s,f-r.#s-4),!t)h.setUint32(f,0),f+=4;else{let g=t.byteLength;h.setUint32(f,g),Ye(f+4+g<=c.byteLength,"FontInfo.write: Buffer overflow at systemFontInfo"),u.set(new Uint8Array(t),f+4),f+=4+g}if(!n)h.setUint32(f,0),f+=4;else{let g=n.byteLength;h.setUint32(f,g),Ye(f+4+g<=c.byteLength,"FontInfo.write: Buffer overflow at cssFontInfo"),u.set(new Uint8Array(n),f+4),f+=4+g}return e.data===void 0?(h.setUint32(f,0),f+=4):(h.setUint32(f,e.data.length),u.set(e.data,f+4),f+=4+e.data.length),Ye(f<=c.byteLength,"FontInfo.write: Buffer overflow"),c.transferToFixedLength(f)}},Gn=class{static#e=null;static#t="";static get workerPort(){return this.#e}static set workerPort(e){if(!(typeof Worker<"u"&&e instanceof Worker)&&e!==null)throw new Error("Invalid `workerPort` type.");this.#e=e}static get workerSrc(){return this.#t}static set workerSrc(e){if(typeof e!="string")throw new Error("Invalid `workerSrc` type.");this.#t=e}},Id=class{#e;#t;constructor({parsedData:e,rawData:t}){this.#e=e,this.#t=t}getRaw(){return this.#t}get(e){return this.#e.get(e)??null}[Symbol.iterator](){return this.#e.entries()}},Pa=Symbol("INTERNAL"),Rd=class{#e=!1;#t=!1;#n=!1;#r=!0;constructor(e,{name:t,intent:n,usage:i,rbGroups:a}){this.#e=!!(e&Vr.DISPLAY),this.#t=!!(e&Vr.PRINT),this.name=t,this.intent=n,this.usage=i,this.rbGroups=a}get visible(){if(this.#n)return this.#r;if(!this.#r)return!1;let{print:e,view:t}=this.usage;return this.#e?t?.viewState!=="OFF":this.#t?e?.printState!=="OFF":!0}_setVisible(e,t,n=!1){e!==Pa&&dt("Internal method `_setVisible` called."),this.#n=n,this.#r=t}},Od=class{#e=null;#t=new Map;#n=null;#r=null;constructor(e,t=Vr.DISPLAY){if(this.renderingIntent=t,this.name=null,this.creator=null,e!==null){this.name=e.name,this.creator=e.creator,this.#r=e.order;for(let n of e.groups)this.#t.set(n.id,new Rd(t,n));if(e.baseState==="OFF")for(let n of this.#t.values())n._setVisible(Pa,!1);for(let n of e.on)this.#t.get(n)._setVisible(Pa,!0);for(let n of e.off)this.#t.get(n)._setVisible(Pa,!1);this.#n=this.getHash()}}#s(e){let t=e.length;if(t<2)return!0;let n=e[0];for(let i=1;i<t;i++){let a=e[i],s;if(Array.isArray(a))s=this.#s(a);else if(this.#t.has(a))s=this.#t.get(a).visible;else return Ne(`Optional content group not found: ${a}`),!0;switch(n){case"And":if(!s)return!1;break;case"Or":if(s)return!0;break;case"Not":return!s;default:return!0}}return n==="And"}isVisible(e){if(this.#t.size===0)return!0;if(!e)return du("Optional content group not defined."),!0;if(e.type==="OCG")return this.#t.has(e.id)?this.#t.get(e.id).visible:(Ne(`Optional content group not found: ${e.id}`),!0);if(e.type==="OCMD"){if(e.expression)return this.#s(e.expression);if(!e.policy||e.policy==="AnyOn"){for(let t of e.ids){if(!this.#t.has(t))return Ne(`Optional content group not found: ${t}`),!0;if(this.#t.get(t).visible)return!0}return!1}else if(e.policy==="AllOn"){for(let t of e.ids){if(!this.#t.has(t))return Ne(`Optional content group not found: ${t}`),!0;if(!this.#t.get(t).visible)return!1}return!0}else if(e.policy==="AnyOff"){for(let t of e.ids){if(!this.#t.has(t))return Ne(`Optional content group not found: ${t}`),!0;if(!this.#t.get(t).visible)return!0}return!1}else if(e.policy==="AllOff"){for(let t of e.ids){if(!this.#t.has(t))return Ne(`Optional content group not found: ${t}`),!0;if(this.#t.get(t).visible)return!1}return!0}return Ne(`Unknown optional content policy ${e.policy}.`),!0}return Ne(`Unknown group type ${e.type}.`),!0}setVisibility(e,t=!0,n=!0){let i=this.#t.get(e);if(!i){Ne(`Optional content group not found: ${e}`);return}if(n&&t&&i.rbGroups.length)for(let a of i.rbGroups)for(let s of a)s!==e&&this.#t.get(s)?._setVisible(Pa,!1,!0);i._setVisible(Pa,!!t,!0),this.#e=null}setOCGState({state:e,preserveRB:t}){let n;for(let i of e){switch(i){case"ON":case"OFF":case"Toggle":n=i;continue}let a=this.#t.get(i);if(a)switch(n){case"ON":this.setVisibility(i,!0,t);break;case"OFF":this.setVisibility(i,!1,t);break;case"Toggle":this.setVisibility(i,!a.visible,t);break}}this.#e=null}get hasInitialVisibility(){return this.#n===null||this.getHash()===this.#n}getOrder(){return this.#t.size?this.#r?this.#r.slice():[...this.#t.keys()]:null}getGroup(e){return this.#t.get(e)||null}getHash(){if(this.#e!==null)return this.#e;let e=new Ol;for(let[t,n]of this.#t)e.update(`${t}:${n.visible}`);return this.#e=e.hexdigest()}[Symbol.iterator](){return this.#t.entries()}},Bd=class{constructor(e,{disableRange:t=!1,disableStream:n=!1}){Ye(e,'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.');let{length:i,initialData:a,progressiveDone:s,contentDispositionFilename:o}=e;if(this._queuedChunks=[],this._progressiveDone=s,this._contentDispositionFilename=o,a?.length>0){let c=a instanceof Uint8Array&&a.byteLength===a.buffer.byteLength?a.buffer:new Uint8Array(a).buffer;this._queuedChunks.push(c)}this._pdfDataRangeTransport=e,this._isStreamingSupported=!n,this._isRangeSupported=!t,this._contentLength=i,this._fullRequestReader=null,this._rangeReaders=[],e.addRangeListener((c,u)=>{this._onReceiveData({begin:c,chunk:u})}),e.addProgressListener((c,u)=>{this._onProgress({loaded:c,total:u})}),e.addProgressiveReadListener(c=>{this._onReceiveData({chunk:c})}),e.addProgressiveDoneListener(()=>{this._onProgressiveDone()}),e.transportReady()}_onReceiveData({begin:e,chunk:t}){let n=t instanceof Uint8Array&&t.byteLength===t.buffer.byteLength?t.buffer:new Uint8Array(t).buffer;if(e===void 0)this._fullRequestReader?this._fullRequestReader._enqueue(n):this._queuedChunks.push(n);else{let i=this._rangeReaders.some(function(a){return a._begin!==e?!1:(a._enqueue(n),!0)});Ye(i,"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}_onProgress(e){e.total===void 0?this._rangeReaders[0]?.onProgress?.({loaded:e.loaded}):this._fullRequestReader?.onProgress?.({loaded:e.loaded,total:e.total})}_onProgressiveDone(){this._fullRequestReader?.progressiveDone(),this._progressiveDone=!0}_removeRangeReader(e){let t=this._rangeReaders.indexOf(e);t>=0&&this._rangeReaders.splice(t,1)}getFullReader(){Ye(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");let e=this._queuedChunks;return this._queuedChunks=null,new Nd(this,e,this._progressiveDone,this._contentDispositionFilename)}getRangeReader(e,t){if(t<=this._progressiveDataLength)return null;let n=new Pd(this,e,t);return this._pdfDataRangeTransport.requestDataRange(e,t),this._rangeReaders.push(n),n}cancelAllRequests(e){this._fullRequestReader?.cancel(e);for(let t of this._rangeReaders.slice(0))t.cancel(e);this._pdfDataRangeTransport.abort()}},Nd=class{constructor(e,t,n=!1,i=null){this._stream=e,this._done=n||!1,this._filename=U0(i)?i:null,this._queuedChunks=t||[],this._loaded=0;for(let a of this._queuedChunks)this._loaded+=a.byteLength;this._requests=[],this._headersReady=Promise.resolve(),e._fullRequestReader=this,this.onProgress=null}_enqueue(e){this._done||(this._requests.length>0?this._requests.shift().resolve({value:e,done:!1}):this._queuedChunks.push(e),this._loaded+=e.byteLength)}get headersReady(){return this._headersReady}get filename(){return this._filename}get isRangeSupported(){return this._stream._isRangeSupported}get isStreamingSupported(){return this._stream._isStreamingSupported}get contentLength(){return this._stream._contentLength}async read(){if(this._queuedChunks.length>0)return{value:this._queuedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};let e=Promise.withResolvers();return this._requests.push(e),e.promise}cancel(e){this._done=!0;for(let t of this._requests)t.resolve({value:void 0,done:!0});this._requests.length=0}progressiveDone(){this._done||(this._done=!0)}},Pd=class{constructor(e,t,n){this._stream=e,this._begin=t,this._end=n,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}_enqueue(e){if(!this._done){if(this._requests.length===0)this._queuedChunk=e;else{this._requests.shift().resolve({value:e,done:!1});for(let n of this._requests)n.resolve({value:void 0,done:!0});this._requests.length=0}this._done=!0,this._stream._removeRangeReader(this)}}get isStreamingSupported(){return!1}async read(){if(this._queuedChunk){let t=this._queuedChunk;return this._queuedChunk=null,{value:t,done:!1}}if(this._done)return{value:void 0,done:!0};let e=Promise.withResolvers();return this._requests.push(e),e.promise}cancel(e){this._done=!0;for(let t of this._requests)t.resolve({value:void 0,done:!0});this._requests.length=0,this._stream._removeRangeReader(this)}};function yS(r){let e=!0,t=n("filename\\*","i").exec(r);if(t){t=t[1];let h=o(t);return h=unescape(h),h=c(h),h=u(h),a(h)}if(t=s(r),t){let h=u(t);return a(h)}if(t=n("filename","i").exec(r),t){t=t[1];let h=o(t);return h=u(h),a(h)}function n(h,f){return new RegExp("(?:^|;)\\s*"+h+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',f)}function i(h,f){if(h){if(!/^[\x00-\xFF]+$/.test(f))return f;try{let d=new TextDecoder(h,{fatal:!0}),p=_o(f);f=d.decode(p),e=!1}catch{}}return f}function a(h){return e&&/[\x80-\xff]/.test(h)&&(h=i("utf-8",h),e&&(h=i("iso-8859-1",h))),h}function s(h){let f=[],d,p=n("filename\\*((?!0\\d)\\d+)(\\*?)","ig");for(;(d=p.exec(h))!==null;){let[,g,x,y]=d;if(g=parseInt(g,10),g in f){if(g===0)break;continue}f[g]=[x,y]}let m=[];for(let g=0;g<f.length&&g in f;++g){let[x,y]=f[g];y=o(y),x&&(y=unescape(y),g===0&&(y=c(y))),m.push(y)}return m.join("")}function o(h){if(h.startsWith('"')){let f=h.slice(1).split('\\"');for(let d=0;d<f.length;++d){let p=f[d].indexOf('"');p!==-1&&(f[d]=f[d].slice(0,p),f.length=d+1),f[d]=f[d].replaceAll(/\\(.)/g,"$1")}h=f.join('"')}return h}function c(h){let f=h.indexOf("'");if(f===-1)return h;let d=h.slice(0,f),m=h.slice(f+1).replace(/^[^']*'/,"");return i(d,m)}function u(h){return!h.startsWith("=?")||/[\x00-\x19\x80-\xff]/.test(h)?h:h.replaceAll(/=\?([\w-]*)\?([QqBb])\?((?:[^?]|\?(?!=))*)\?=/g,function(f,d,p,m){if(p==="q"||p==="Q")return m=m.replaceAll("_"," "),m=m.replaceAll(/=([0-9a-fA-F]{2})/g,function(g,x){return String.fromCharCode(parseInt(x,16))}),i(d,m);try{m=atob(m)}catch{}return i(d,m)})}return""}function hx(r,e){let t=new Headers;if(!r||!e||typeof e!="object")return t;for(let n in e){let i=e[n];i!==void 0&&t.append(n,i)}return t}function gu(r){return URL.parse(r)?.origin??null}function fx({responseHeaders:r,isHttp:e,rangeChunkSize:t,disableRange:n}){let i={allowRangeRequests:!1,suggestedLength:void 0},a=parseInt(r.get("Content-Length"),10);return!Number.isInteger(a)||(i.suggestedLength=a,a<=2*t)||n||!e||r.get("Accept-Ranges")!=="bytes"||(r.get("Content-Encoding")||"identity")!=="identity"||(i.allowRangeRequests=!0),i}function dx(r){let e=r.get("Content-Disposition");if(e){let t=yS(e);if(t.includes("%"))try{t=decodeURIComponent(t)}catch{}if(U0(t))return t}return null}function Eo(r,e){return new Ha(`Unexpected server response (${r}) while retrieving PDF "${e}".`,r,r===404||r===0&&e.startsWith("file:"))}function px(r){return r===200||r===206}function gx(r,e,t){return{method:"GET",headers:r,signal:t.signal,mode:"cors",credentials:e?"include":"same-origin",redirect:"follow"}}function mx(r){return r instanceof Uint8Array?r.buffer:r instanceof ArrayBuffer?r:(Ne(`getArrayBuffer - unexpected data format: ${r}`),new Uint8Array(r).buffer)}var Ld=class{_responseOrigin=null;constructor(e){this.source=e,this.isHttp=/^https?:/i.test(e.url),this.headers=hx(this.isHttp,e.httpHeaders),this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}getFullReader(){return Ye(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new Md(this),this._fullRequestReader}getRangeReader(e,t){if(t<=this._progressiveDataLength)return null;let n=new Wd(this,e,t);return this._rangeRequestReaders.push(n),n}cancelAllRequests(e){this._fullRequestReader?.cancel(e);for(let t of this._rangeRequestReaders.slice(0))t.cancel(e)}},Md=class{constructor(e){this._stream=e,this._reader=null,this._loaded=0,this._filename=null;let t=e.source;this._withCredentials=t.withCredentials||!1,this._contentLength=t.length,this._headersCapability=Promise.withResolvers(),this._disableRange=t.disableRange||!1,this._rangeChunkSize=t.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._abortController=new AbortController,this._isStreamingSupported=!t.disableStream,this._isRangeSupported=!t.disableRange;let n=new Headers(e.headers),i=t.url;fetch(i,gx(n,this._withCredentials,this._abortController)).then(a=>{if(e._responseOrigin=gu(a.url),!px(a.status))throw Eo(a.status,i);this._reader=a.body.getReader(),this._headersCapability.resolve();let s=a.headers,{allowRangeRequests:o,suggestedLength:c}=fx({responseHeaders:s,isHttp:e.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=o,this._contentLength=c||this._contentLength,this._filename=dx(s),!this._isStreamingSupported&&this._isRangeSupported&&this.cancel(new Cn("Streaming is disabled."))}).catch(this._headersCapability.reject),this.onProgress=null}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){await this._headersCapability.promise;let{value:e,done:t}=await this._reader.read();return t?{value:e,done:t}:(this._loaded+=e.byteLength,this.onProgress?.({loaded:this._loaded,total:this._contentLength}),{value:mx(e),done:!1})}cancel(e){this._reader?.cancel(e),this._abortController.abort()}},Wd=class{constructor(e,t,n){this._stream=e,this._reader=null,this._loaded=0;let i=e.source;this._withCredentials=i.withCredentials||!1,this._readCapability=Promise.withResolvers(),this._isStreamingSupported=!i.disableStream,this._abortController=new AbortController;let a=new Headers(e.headers);a.append("Range",`bytes=${t}-${n-1}`);let s=i.url;fetch(s,gx(a,this._withCredentials,this._abortController)).then(o=>{let c=gu(o.url);if(c!==e._responseOrigin)throw new Error(`Expected range response-origin "${c}" to match "${e._responseOrigin}".`);if(!px(o.status))throw Eo(o.status,s);this._readCapability.resolve(),this._reader=o.body.getReader()}).catch(this._readCapability.reject),this.onProgress=null}get isStreamingSupported(){return this._isStreamingSupported}async read(){await this._readCapability.promise;let{value:e,done:t}=await this._reader.read();return t?{value:e,done:t}:(this._loaded+=e.byteLength,this.onProgress?.({loaded:this._loaded}),{value:mx(e),done:!1})}cancel(e){this._reader?.cancel(e),this._abortController.abort()}},Yf=200,Kf=206;function bS(r){let e=r.response;return typeof e!="string"?e:_o(e).buffer}var Hd=class{_responseOrigin=null;constructor({url:e,httpHeaders:t,withCredentials:n}){this.url=e,this.isHttp=/^https?:/i.test(e),this.headers=hx(this.isHttp,t),this.withCredentials=n||!1,this.currXhrId=0,this.pendingRequests=Object.create(null)}request(e){let t=new XMLHttpRequest,n=this.currXhrId++,i=this.pendingRequests[n]={xhr:t};t.open("GET",this.url),t.withCredentials=this.withCredentials;for(let[a,s]of this.headers)t.setRequestHeader(a,s);return this.isHttp&&"begin"in e&&"end"in e?(t.setRequestHeader("Range",`bytes=${e.begin}-${e.end-1}`),i.expectedStatus=Kf):i.expectedStatus=Yf,t.responseType="arraybuffer",Ye(e.onError,"Expected `onError` callback to be provided."),t.onerror=()=>{e.onError(t.status)},t.onreadystatechange=this.onStateChange.bind(this,n),t.onprogress=this.onProgress.bind(this,n),i.onHeadersReceived=e.onHeadersReceived,i.onDone=e.onDone,i.onError=e.onError,i.onProgress=e.onProgress,t.send(null),n}onProgress(e,t){let n=this.pendingRequests[e];n&&n.onProgress?.(t)}onStateChange(e,t){let n=this.pendingRequests[e];if(!n)return;let i=n.xhr;if(i.readyState>=2&&n.onHeadersReceived&&(n.onHeadersReceived(),delete n.onHeadersReceived),i.readyState!==4||!(e in this.pendingRequests))return;if(delete this.pendingRequests[e],i.status===0&&this.isHttp){n.onError(i.status);return}let a=i.status||Yf;if(!(a===Yf&&n.expectedStatus===Kf)&&a!==n.expectedStatus){n.onError(i.status);return}let o=bS(i);if(a===Kf){let c=i.getResponseHeader("Content-Range"),u=/bytes (\d+)-(\d+)\/(\d+)/.exec(c);u?n.onDone({begin:parseInt(u[1],10),chunk:o}):(Ne('Missing or invalid "Content-Range" header.'),n.onError(0))}else o?n.onDone({begin:0,chunk:o}):n.onError(i.status)}getRequestXhr(e){return this.pendingRequests[e].xhr}isPendingRequest(e){return e in this.pendingRequests}abortRequest(e){let t=this.pendingRequests[e].xhr;delete this.pendingRequests[e],t.abort()}},Vd=class{constructor(e){this._source=e,this._manager=new Hd(e),this._rangeChunkSize=e.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}_onRangeRequestReaderClosed(e){let t=this._rangeRequestReaders.indexOf(e);t>=0&&this._rangeRequestReaders.splice(t,1)}getFullReader(){return Ye(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new zd(this._manager,this._source),this._fullRequestReader}getRangeReader(e,t){let n=new jd(this._manager,e,t);return n.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(n),n}cancelAllRequests(e){this._fullRequestReader?.cancel(e);for(let t of this._rangeRequestReaders.slice(0))t.cancel(e)}},zd=class{constructor(e,t){this._manager=e,this._url=t.url,this._fullRequestId=e.request({onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)}),this._headersCapability=Promise.withResolvers(),this._disableRange=t.disableRange||!1,this._contentLength=t.length,this._rangeChunkSize=t.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!1,this._isRangeSupported=!1,this._cachedChunks=[],this._requests=[],this._done=!1,this._storedError=void 0,this._filename=null,this.onProgress=null}_onHeadersReceived(){let e=this._fullRequestId,t=this._manager.getRequestXhr(e);this._manager._responseOrigin=gu(t.responseURL);let n=t.getAllResponseHeaders(),i=new Headers(n?n.trimStart().replace(/[^\S ]+$/,"").split(/[\r\n]+/).map(o=>{let[c,...u]=o.split(": ");return[c,u.join(": ")]}):[]),{allowRangeRequests:a,suggestedLength:s}=fx({responseHeaders:i,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});a&&(this._isRangeSupported=!0),this._contentLength=s||this._contentLength,this._filename=dx(i),this._isRangeSupported&&this._manager.abortRequest(e),this._headersCapability.resolve()}_onDone(e){if(e&&(this._requests.length>0?this._requests.shift().resolve({value:e.chunk,done:!1}):this._cachedChunks.push(e.chunk)),this._done=!0,!(this._cachedChunks.length>0)){for(let t of this._requests)t.resolve({value:void 0,done:!0});this._requests.length=0}}_onError(e){this._storedError=Eo(e,this._url),this._headersCapability.reject(this._storedError);for(let t of this._requests)t.reject(this._storedError);this._requests.length=0,this._cachedChunks.length=0}_onProgress(e){this.onProgress?.({loaded:e.loaded,total:e.lengthComputable?e.total:this._contentLength})}get filename(){return this._filename}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}get contentLength(){return this._contentLength}get headersReady(){return this._headersCapability.promise}async read(){if(await this._headersCapability.promise,this._storedError)throw this._storedError;if(this._cachedChunks.length>0)return{value:this._cachedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};let e=Promise.withResolvers();return this._requests.push(e),e.promise}cancel(e){this._done=!0,this._headersCapability.reject(e);for(let t of this._requests)t.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}},jd=class{constructor(e,t,n){this._manager=e,this._url=e.url,this._requestId=e.request({begin:t,end:n,onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)}),this._requests=[],this._queuedChunk=null,this._done=!1,this._storedError=void 0,this.onProgress=null,this.onClosed=null}_onHeadersReceived(){let e=gu(this._manager.getRequestXhr(this._requestId)?.responseURL);e!==this._manager._responseOrigin&&(this._storedError=new Error(`Expected range response-origin "${e}" to match "${this._manager._responseOrigin}".`),this._onError(0))}_close(){this.onClosed?.(this)}_onDone(e){let t=e.chunk;this._requests.length>0?this._requests.shift().resolve({value:t,done:!1}):this._queuedChunk=t,this._done=!0;for(let n of this._requests)n.resolve({value:void 0,done:!0});this._requests.length=0,this._close()}_onError(e){this._storedError??=Eo(e,this._url);for(let t of this._requests)t.reject(this._storedError);this._requests.length=0,this._queuedChunk=null}_onProgress(e){this.isStreamingSupported||this.onProgress?.({loaded:e.loaded})}get isStreamingSupported(){return!1}async read(){if(this._storedError)throw this._storedError;if(this._queuedChunk!==null){let t=this._queuedChunk;return this._queuedChunk=null,{value:t,done:!1}}if(this._done)return{value:void 0,done:!0};let e=Promise.withResolvers();return this._requests.push(e),e.promise}cancel(e){this._done=!0;for(let t of this._requests)t.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}},wS=/^[a-z][a-z0-9\-+.]+:/i;function _S(r){if(wS.test(r))return new URL(r);let e=process.getBuiltinModule("url");return new URL(e.pathToFileURL(r))}var Gd=class{constructor(e){this.source=e,this.url=_S(e.url),Ye(this.url.protocol==="file:","PDFNodeStream only supports file:// URLs."),this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}getFullReader(){return Ye(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=new Xd(this),this._fullRequestReader}getRangeReader(e,t){if(t<=this._progressiveDataLength)return null;let n=new $d(this,e,t);return this._rangeRequestReaders.push(n),n}cancelAllRequests(e){this._fullRequestReader?.cancel(e);for(let t of this._rangeRequestReaders.slice(0))t.cancel(e)}},Xd=class{constructor(e){this._url=e.url,this._done=!1,this._storedError=null,this.onProgress=null;let t=e.source;this._contentLength=t.length,this._loaded=0,this._filename=null,this._disableRange=t.disableRange||!1,this._rangeChunkSize=t.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!t.disableStream,this._isRangeSupported=!t.disableRange,this._readableStream=null,this._readCapability=Promise.withResolvers(),this._headersCapability=Promise.withResolvers();let n=process.getBuiltinModule("fs");n.promises.lstat(this._url).then(i=>{this._contentLength=i.size,this._setReadableStream(n.createReadStream(this._url)),this._headersCapability.resolve()},i=>{i.code==="ENOENT"&&(i=Eo(0,this._url.href)),this._storedError=i,this._headersCapability.reject(i)})}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;let e=this._readableStream.read();return e===null?(this._readCapability=Promise.withResolvers(),this.read()):(this._loaded+=e.length,this.onProgress?.({loaded:this._loaded,total:this._contentLength}),{value:new Uint8Array(e).buffer,done:!1})}cancel(e){if(!this._readableStream){this._error(e);return}this._readableStream.destroy(e)}_error(e){this._storedError=e,this._readCapability.resolve()}_setReadableStream(e){this._readableStream=e,e.on("readable",()=>{this._readCapability.resolve()}),e.on("end",()=>{e.destroy(),this._done=!0,this._readCapability.resolve()}),e.on("error",t=>{this._error(t)}),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new Cn("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}},$d=class{constructor(e,t,n){this._url=e.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=Promise.withResolvers();let i=e.source;this._isStreamingSupported=!i.disableStream;let a=process.getBuiltinModule("fs");this._setReadableStream(a.createReadStream(this._url,{start:t,end:n-1}))}get isStreamingSupported(){return this._isStreamingSupported}async read(){if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;let e=this._readableStream.read();return e===null?(this._readCapability=Promise.withResolvers(),this.read()):(this._loaded+=e.length,this.onProgress?.({loaded:this._loaded}),{value:new Uint8Array(e).buffer,done:!1})}cancel(e){if(!this._readableStream){this._error(e);return}this._readableStream.destroy(e)}_error(e){this._storedError=e,this._readCapability.resolve()}_setReadableStream(e){this._readableStream=e,e.on("readable",()=>{this._readCapability.resolve()}),e.on("end",()=>{e.destroy(),this._done=!0,this._readCapability.resolve()}),e.on("error",t=>{this._error(t)}),this._storedError&&this._readableStream.destroy(this._storedError)}},Qs=Symbol("INITIAL_DATA"),ql=class{#e=Object.create(null);#t(e){return this.#e[e]||={...Promise.withResolvers(),data:Qs}}get(e,t=null){if(t){let i=this.#t(e);return i.promise.then(()=>t(i.data)),null}let n=this.#e[e];if(!n||n.data===Qs)throw new Error(`Requesting object that isn't resolved yet ${e}.`);return n.data}has(e){let t=this.#e[e];return!!t&&t.data!==Qs}delete(e){let t=this.#e[e];return!t||t.data===Qs?!1:(delete this.#e[e],!0)}resolve(e,t=null){let n=this.#t(e);n.data=t,n.resolve()}clear(){for(let e in this.#e){let{data:t}=this.#e[e];t?.bitmap?.close()}this.#e=Object.create(null)}*[Symbol.iterator](){for(let e in this.#e){let{data:t}=this.#e[e];t!==Qs&&(yield[e,t])}}},DS=1e5,rx=30,po=class r{#e=Promise.withResolvers();#t=null;#n=!1;#r=!!globalThis.FontInspector?.enabled;#s=null;#i=null;#a=0;#o=0;#l=null;#c=null;#f=0;#h=0;#d=Object.create(null);#m=[];#p=null;#u=[];#g=new WeakMap;#x=null;static#y=new Map;static#v=new Map;static#E=new WeakMap;static#D=null;static#b=new Set;constructor({textContentSource:e,container:t,viewport:n}){if(e instanceof ReadableStream)this.#p=e;else if(typeof e=="object")this.#p=new ReadableStream({start(c){c.enqueue(e),c.close()}});else throw new Error('No "textContentSource" parameter specified.');this.#t=this.#c=t,this.#h=n.scale*Xn.pixelRatio,this.#f=n.rotation,this.#i={div:null,properties:null,ctx:null};let{pageWidth:i,pageHeight:a,pageX:s,pageY:o}=n.rawDims;this.#x=[1,0,0,-1,-s,o+a],this.#o=i,this.#a=a,r.#F(),ji(t,n),this.#e.promise.finally(()=>{r.#b.delete(this),this.#i=null,this.#d=null}).catch(()=>{})}static get fontFamilyMap(){let{isWindows:e,isFirefox:t}=Mt.platform;return Ge(this,"fontFamilyMap",new Map([["sans-serif",`${e&&t?"Calibri, ":""}sans-serif`],["monospace",`${e&&t?"Lucida Console, ":""}monospace`]]))}render(){let e=()=>{this.#l.read().then(({value:t,done:n})=>{if(n){this.#e.resolve();return}this.#s??=t.lang,Object.assign(this.#d,t.styles),this.#S(t.items),e()},this.#e.reject)};return this.#l=this.#p.getReader(),r.#b.add(this),e(),this.#e.promise}update({viewport:e,onBefore:t=null}){let n=e.scale*Xn.pixelRatio,i=e.rotation;if(i!==this.#f&&(t?.(),this.#f=i,ji(this.#c,{rotation:i})),n!==this.#h){t?.(),this.#h=n;let a={div:null,properties:null,ctx:r.#k(this.#s)};for(let s of this.#u)a.properties=this.#g.get(s),a.div=s,this.#T(a)}}cancel(){let e=new Cn("TextLayer task cancelled.");this.#l?.cancel(e).catch(()=>{}),this.#l=null,this.#e.reject(e)}get textDivs(){return this.#u}get textContentItemsStr(){return this.#m}#S(e){if(this.#n)return;this.#i.ctx??=r.#k(this.#s);let t=this.#u,n=this.#m;for(let i of e){if(t.length>DS){Ne("Ignoring additional textDivs for performance reasons."),this.#n=!0;return}if(i.str===void 0){if(i.type==="beginMarkedContentProps"||i.type==="beginMarkedContent"){let a=this.#t;this.#t=document.createElement("span"),this.#t.classList.add("markedContent"),i.id&&this.#t.setAttribute("id",`${i.id}`),a.append(this.#t)}else i.type==="endMarkedContent"&&(this.#t=this.#t.parentNode);continue}n.push(i.str),this.#_(i)}}#_(e){let t=document.createElement("span"),n={angle:0,canvasWidth:0,hasText:e.str!=="",hasEOL:e.hasEOL,fontSize:0};this.#u.push(t);let i=Re.transform(this.#x,e.transform),a=Math.atan2(i[1],i[0]),s=this.#d[e.fontName];s.vertical&&(a+=Math.PI/2);let o=this.#r&&s.fontSubstitution||s.fontFamily;o=r.fontFamilyMap.get(o)||o;let c=Math.hypot(i[2],i[3]),u=c*r.#P(o,s,this.#s),h,f;a===0?(h=i[4],f=i[5]-u):(h=i[4]+u*Math.sin(a),f=i[5]-u*Math.cos(a));let d="calc(var(--total-scale-factor) *",p=t.style;this.#t===this.#c?(p.left=`${(100*h/this.#o).toFixed(2)}%`,p.top=`${(100*f/this.#a).toFixed(2)}%`):(p.left=`${d}${h.toFixed(2)}px)`,p.top=`${d}${f.toFixed(2)}px)`),p.fontSize=`${d}${(r.#D*c).toFixed(2)}px)`,p.fontFamily=o,n.fontSize=c,t.setAttribute("role","presentation"),t.textContent=e.str,t.dir=e.dir,this.#r&&(t.dataset.fontName=s.fontSubstitutionLoadedName||e.fontName),a!==0&&(n.angle=a*(180/Math.PI));let m=!1;if(e.str.length>1)m=!0;else if(e.str!==" "&&e.transform[0]!==e.transform[3]){let g=Math.abs(e.transform[0]),x=Math.abs(e.transform[3]);g!==x&&Math.max(g,x)/Math.min(g,x)>1.5&&(m=!0)}if(m&&(n.canvasWidth=s.vertical?e.height:e.width),this.#g.set(t,n),this.#i.div=t,this.#i.properties=n,this.#T(this.#i),n.hasText&&this.#t.append(t),n.hasEOL){let g=document.createElement("br");g.setAttribute("role","presentation"),this.#t.append(g)}}#T(e){let{div:t,properties:n,ctx:i}=e,{style:a}=t,s="";if(r.#D>1&&(s=`scale(${1/r.#D})`),n.canvasWidth!==0&&n.hasText){let{fontFamily:o}=a,{canvasWidth:c,fontSize:u}=n;r.#C(i,u*this.#h,o);let{width:h}=i.measureText(t.textContent);h>0&&(s=`scaleX(${c*this.#h/h}) ${s}`)}n.angle!==0&&(s=`rotate(${n.angle}deg) ${s}`),s.length>0&&(a.transform=s)}static cleanup(){if(!(this.#b.size>0)){this.#y.clear();for(let{canvas:e}of this.#v.values())e.remove();this.#v.clear()}}static#k(e=null){let t=this.#v.get(e||="");if(!t){let n=document.createElement("canvas");n.className="hiddenCanvasElement",n.lang=e,document.body.append(n),t=n.getContext("2d",{alpha:!1,willReadFrequently:!0}),this.#v.set(e,t),this.#E.set(t,{size:0,family:""})}return t}static#C(e,t,n){let i=this.#E.get(e);t===i.size&&n===i.family||(e.font=`${t}px ${n}`,i.size=t,i.family=n)}static#F(){if(this.#D!==null)return;let e=document.createElement("div");e.style.opacity=0,e.style.lineHeight=1,e.style.fontSize="1px",e.style.position="absolute",e.textContent="X",document.body.append(e),this.#D=e.getBoundingClientRect().height,e.remove()}static#P(e,t,n){let i=this.#y.get(e);if(i)return i;let a=this.#k(n);a.canvas.width=a.canvas.height=rx,this.#C(a,rx,e);let s=a.measureText(""),o=s.fontBoundingBoxAscent,c=Math.abs(s.fontBoundingBoxDescent);a.canvas.width=a.canvas.height=0;let u=.8;return o?u=o/(o+c):(Mt.platform.isFirefox&&Ne("Enable the `dom.textMetrics.fontBoundingBox.enabled` preference in `about:config` to improve TextLayer rendering."),t.ascent?u=t.ascent:t.descent&&(u=1+t.descent)),this.#y.set(e,u),u}},TS=100;function R0(r={}){typeof r=="string"||r instanceof URL?r={url:r}:(r instanceof ArrayBuffer||ArrayBuffer.isView(r))&&(r={data:r});let e=new qd,{docId:t}=e,n=r.url?oS(r.url):null,i=r.data?cS(r.data):null,a=r.httpHeaders||null,s=r.withCredentials===!0,o=r.password??null,c=r.range instanceof Yl?r.range:null,u=Number.isInteger(r.rangeChunkSize)&&r.rangeChunkSize>0?r.rangeChunkSize:2**16,h=r.worker instanceof go?r.worker:null,f=r.verbosity,d=typeof r.docBaseUrl=="string"&&!pu(r.docBaseUrl)?r.docBaseUrl:null,p=yl(r.cMapUrl),m=r.cMapPacked!==!1,g=r.CMapReaderFactory||(yr?yd:Ll),x=yl(r.iccUrl),y=yl(r.standardFontDataUrl),b=r.StandardFontDataFactory||(yr?bd:Hl),v=yl(r.wasmUrl),_=r.WasmFactory||(yr?wd:zl),A=r.stopAtErrors!==!0,E=Number.isInteger(r.maxImageSize)&&r.maxImageSize>-1?r.maxImageSize:-1,T=r.isEvalSupported!==!1,S=typeof r.isOffscreenCanvasSupported=="boolean"?r.isOffscreenCanvasSupported:!yr,C=typeof r.isImageDecoderSupported=="boolean"?r.isImageDecoderSupported:!yr&&(Mt.platform.isFirefox||!globalThis.chrome),F=Number.isInteger(r.canvasMaxAreaInBytes)?r.canvasMaxAreaInBytes:-1,k=typeof r.disableFontFace=="boolean"?r.disableFontFace:yr,D=r.fontExtraProperties===!0,B=r.enableXfa===!0,q=r.ownerDocument||globalThis.document,j=r.disableRange===!0,U=r.disableStream===!0,O=r.disableAutoFetch===!0,P=r.pdfBug===!0,R=r.CanvasFactory||(yr?vd:gd),N=r.FilterFactory||(yr?xd:md),z=r.enableHWA===!0,I=r.useWasm!==!1,H=c?c.length:r.length??NaN,Z=typeof r.useSystemFonts=="boolean"?r.useSystemFonts:!yr&&!k,re=typeof r.useWorkerFetch=="boolean"?r.useWorkerFetch:!!(g===Ll&&b===Hl&&_===zl&&p&&y&&v&&ro(p,document.baseURI)&&ro(y,document.baseURI)&&ro(v,document.baseURI)),ee=null;jA(f);let ie={canvasFactory:new R({ownerDocument:q,enableHWA:z}),filterFactory:new N({docId:t,ownerDocument:q}),cMapReaderFactory:re?null:new g({baseUrl:p,isCompressed:m}),standardFontDataFactory:re?null:new b({baseUrl:y}),wasmFactory:re?null:new _({baseUrl:v})};h||(h=go.create({verbosity:f,port:Gn.workerPort}),e._worker=h);let se={docId:t,apiVersion:"5.4.296",data:i,password:o,disableAutoFetch:O,rangeChunkSize:u,length:H,docBaseUrl:d,enableXfa:B,evaluatorOptions:{maxImageSize:E,disableFontFace:k,ignoreErrors:A,isEvalSupported:T,isOffscreenCanvasSupported:S,isImageDecoderSupported:C,canvasMaxAreaInBytes:F,fontExtraProperties:D,useSystemFonts:Z,useWasm:I,useWorkerFetch:re,cMapUrl:p,iccUrl:x,standardFontDataUrl:y,wasmUrl:v}},de={ownerDocument:q,pdfBug:P,styleElement:ee,loadingParams:{disableAutoFetch:O,enableXfa:B}};return h.promise.then(function(){if(e.destroyed)throw new Error("Loading aborted");if(h.destroyed)throw new Error("Worker was destroyed");let ge=h.messageHandler.sendWithPromise("GetDocRequest",se,i?[i.buffer]:null),_e;if(c)_e=new Bd(c,{disableRange:j,disableStream:U});else if(!i){if(!n)throw new Error("getDocument - no `url` parameter provided.");let w=ro(n)?Ld:yr?Gd:Vd;_e=new w({url:n,length:H,httpHeaders:a,withCredentials:s,rangeChunkSize:u,disableRange:j,disableStream:U})}return ge.then(w=>{if(e.destroyed)throw new Error("Loading aborted");if(h.destroyed)throw new Error("Worker was destroyed");let Q=new zi(t,w,h.port),ne=new Zd(Q,e,_e,de,ie,z);e._transport=ne,Q.send("Ready",null)})}).catch(e._capability.reject),e}var qd=class r{static#e=0;_capability=Promise.withResolvers();_transport=null;_worker=null;docId=`d${r.#e++}`;destroyed=!1;onPassword=null;onProgress=null;get promise(){return this._capability.promise}async destroy(){this.destroyed=!0;try{this._worker?.port&&(this._worker._pendingDestroy=!0),await this._transport?.destroy()}catch(e){throw this._worker?.port&&delete this._worker._pendingDestroy,e}this._transport=null,this._worker?.destroy(),this._worker=null}async getData(){return this._transport.getData()}},Yl=class{#e=Promise.withResolvers();#t=[];#n=[];#r=[];#s=[];constructor(e,t,n=!1,i=null){this.length=e,this.initialData=t,this.progressiveDone=n,this.contentDispositionFilename=i}addRangeListener(e){this.#s.push(e)}addProgressListener(e){this.#r.push(e)}addProgressiveReadListener(e){this.#n.push(e)}addProgressiveDoneListener(e){this.#t.push(e)}onDataRange(e,t){for(let n of this.#s)n(e,t)}onDataProgress(e,t){this.#e.promise.then(()=>{for(let n of this.#r)n(e,t)})}onDataProgressiveRead(e){this.#e.promise.then(()=>{for(let t of this.#n)t(e)})}onDataProgressiveDone(){this.#e.promise.then(()=>{for(let e of this.#t)e()})}transportReady(){this.#e.resolve()}requestDataRange(e,t){dt("Abstract method PDFDataRangeTransport.requestDataRange")}abort(){}},Yd=class{constructor(e,t){this._pdfInfo=e,this._transport=t}get annotationStorage(){return this._transport.annotationStorage}get canvasFactory(){return this._transport.canvasFactory}get filterFactory(){return this._transport.filterFactory}get numPages(){return this._pdfInfo.numPages}get fingerprints(){return this._pdfInfo.fingerprints}get isPureXfa(){return Ge(this,"isPureXfa",!!this._transport._htmlForXfa)}get allXfaHtml(){return this._transport._htmlForXfa}getPage(e){return this._transport.getPage(e)}getPageIndex(e){return this._transport.getPageIndex(e)}getDestinations(){return this._transport.getDestinations()}getDestination(e){return this._transport.getDestination(e)}getPageLabels(){return this._transport.getPageLabels()}getPageLayout(){return this._transport.getPageLayout()}getPageMode(){return this._transport.getPageMode()}getViewerPreferences(){return this._transport.getViewerPreferences()}getOpenAction(){return this._transport.getOpenAction()}getAttachments(){return this._transport.getAttachments()}getAnnotationsByType(e,t){return this._transport.getAnnotationsByType(e,t)}getJSActions(){return this._transport.getDocJSActions()}getOutline(){return this._transport.getOutline()}getOptionalContentConfig({intent:e="display"}={}){let{renderingIntent:t}=this._transport.getRenderingIntent(e);return this._transport.getOptionalContentConfig(t)}getPermissions(){return this._transport.getPermissions()}getMetadata(){return this._transport.getMetadata()}getMarkInfo(){return this._transport.getMarkInfo()}getData(){return this._transport.getData()}saveDocument(){return this._transport.saveDocument()}getDownloadInfo(){return this._transport.downloadInfoCapability.promise}cleanup(e=!1){return this._transport.startCleanup(e||this.isPureXfa)}destroy(){return this.loadingTask.destroy()}cachedPageNumber(e){return this._transport.cachedPageNumber(e)}get loadingParams(){return this._transport.loadingParams}get loadingTask(){return this._transport.loadingTask}getFieldObjects(){return this._transport.getFieldObjects()}hasJSActions(){return this._transport.hasJSActions()}getCalculationOrderIds(){return this._transport.getCalculationOrderIds()}},Kd=class{#e=!1;constructor(e,t,n,i=!1){this._pageIndex=e,this._pageInfo=t,this._transport=n,this._stats=i?new Ul:null,this._pdfBug=i,this.commonObjs=n.commonObjs,this.objs=new ql,this._intentStates=new Map,this.destroyed=!1,this.recordedBBoxes=null}get pageNumber(){return this._pageIndex+1}get rotate(){return this._pageInfo.rotate}get ref(){return this._pageInfo.ref}get userUnit(){return this._pageInfo.userUnit}get view(){return this._pageInfo.view}getViewport({scale:e,rotation:t=this.rotate,offsetX:n=0,offsetY:i=0,dontFlip:a=!1}={}){return new co({viewBox:this.view,userUnit:this.userUnit,scale:e,rotation:t,offsetX:n,offsetY:i,dontFlip:a})}getAnnotations({intent:e="display"}={}){let{renderingIntent:t}=this._transport.getRenderingIntent(e);return this._transport.getAnnotations(this._pageIndex,t)}getJSActions(){return this._transport.getPageJSActions(this._pageIndex)}get filterFactory(){return this._transport.filterFactory}get isPureXfa(){return Ge(this,"isPureXfa",!!this._transport._htmlForXfa)}async getXfa(){return this._transport._htmlForXfa?.children[this._pageIndex]||null}render({canvasContext:e,canvas:t=e.canvas,viewport:n,intent:i="display",annotationMode:a=pi.ENABLE,transform:s=null,background:o=null,optionalContentConfigPromise:c=null,annotationCanvasMap:u=null,pageColors:h=null,printAnnotationStorage:f=null,isEditing:d=!1,recordOperations:p=!1,operationsFilter:m=null}){this._stats?.time("Overall");let g=this._transport.getRenderingIntent(i,a,f,d),{renderingIntent:x,cacheKey:y}=g;this.#e=!1,c||=this._transport.getOptionalContentConfig(x);let b=this._intentStates.get(y);b||(b=Object.create(null),this._intentStates.set(y,b)),b.streamReaderCancelTimeout&&(clearTimeout(b.streamReaderCancelTimeout),b.streamReaderCancelTimeout=null);let v=!!(x&Vr.PRINT);b.displayReadyCapability||(b.displayReadyCapability=Promise.withResolvers(),b.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},this._stats?.time("Page Request"),this._pumpOperatorList(g));let _=!!(this._pdfBug&&globalThis.StepperManager?.enabled),A=!this.recordedBBoxes&&(p||_),E=C=>{if(b.renderTasks.delete(T),A){let F=T.gfx?.dependencyTracker.take();F&&(T.stepper&&T.stepper.setOperatorBBoxes(F,T.gfx.dependencyTracker.takeDebugMetadata()),p&&(this.recordedBBoxes=F))}v&&(this.#e=!0),this.#t(),C?(T.capability.reject(C),this._abortOperatorList({intentState:b,reason:C instanceof Error?C:new Error(C)})):T.capability.resolve(),this._stats&&(this._stats.timeEnd("Rendering"),this._stats.timeEnd("Overall"),globalThis.Stats?.enabled&&globalThis.Stats.add(this.pageNumber,this._stats))},T=new Qd({callback:E,params:{canvas:t,canvasContext:e,dependencyTracker:A?new Td(t,b.operatorList.length,_):null,viewport:n,transform:s,background:o},objs:this.objs,commonObjs:this.commonObjs,annotationCanvasMap:u,operatorList:b.operatorList,pageIndex:this._pageIndex,canvasFactory:this._transport.canvasFactory,filterFactory:this._transport.filterFactory,useRequestAnimationFrame:!v,pdfBug:this._pdfBug,pageColors:h,enableHWA:this._transport.enableHWA,operationsFilter:m});(b.renderTasks||=new Set).add(T);let S=T.task;return Promise.all([b.displayReadyCapability.promise,c]).then(([C,F])=>{if(this.destroyed){E();return}if(this._stats?.time("Rendering"),!(F.renderingIntent&x))throw new Error("Must use the same `intent`-argument when calling the `PDFPageProxy.render` and `PDFDocumentProxy.getOptionalContentConfig` methods.");T.initializeGraphics({transparency:C,optionalContentConfig:F}),T.operatorListChanged()}).catch(E),S}getOperatorList({intent:e="display",annotationMode:t=pi.ENABLE,printAnnotationStorage:n=null,isEditing:i=!1}={}){function a(){o.operatorList.lastChunk&&(o.opListReadCapability.resolve(o.operatorList),o.renderTasks.delete(c))}let s=this._transport.getRenderingIntent(e,t,n,i,!0),o=this._intentStates.get(s.cacheKey);o||(o=Object.create(null),this._intentStates.set(s.cacheKey,o));let c;return o.opListReadCapability||(c=Object.create(null),c.operatorListChanged=a,o.opListReadCapability=Promise.withResolvers(),(o.renderTasks||=new Set).add(c),o.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},this._stats?.time("Page Request"),this._pumpOperatorList(s)),o.opListReadCapability.promise}streamTextContent({includeMarkedContent:e=!1,disableNormalization:t=!1}={}){return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,includeMarkedContent:e===!0,disableNormalization:t===!0},{highWaterMark:100,size(i){return i.items.length}})}getTextContent(e={}){if(this._transport._htmlForXfa)return this.getXfa().then(n=>oo.textContent(n));let t=this.streamTextContent(e);return new Promise(function(n,i){function a(){s.read().then(function({value:c,done:u}){if(u){n(o);return}o.lang??=c.lang,Object.assign(o.styles,c.styles),o.items.push(...c.items),a()},i)}let s=t.getReader(),o={items:[],styles:Object.create(null),lang:null};a()})}getStructTree(){return this._transport.getStructTree(this._pageIndex)}_destroy(){this.destroyed=!0;let e=[];for(let t of this._intentStates.values())if(this._abortOperatorList({intentState:t,reason:new Error("Page was destroyed."),force:!0}),!t.opListReadCapability)for(let n of t.renderTasks)e.push(n.completed),n.cancel();return this.objs.clear(),this.#e=!1,Promise.all(e)}cleanup(e=!1){this.#e=!0;let t=this.#t();return e&&t&&(this._stats&&=new Ul),t}#t(){if(!this.#e||this.destroyed)return!1;for(let{renderTasks:e,operatorList:t}of this._intentStates.values())if(e.size>0||!t.lastChunk)return!1;return this._intentStates.clear(),this.objs.clear(),this.#e=!1,!0}_startRenderPage(e,t){let n=this._intentStates.get(t);n&&(this._stats?.timeEnd("Page Request"),n.displayReadyCapability?.resolve(e))}_renderPageChunk(e,t){for(let n=0,i=e.length;n<i;n++)t.operatorList.fnArray.push(e.fnArray[n]),t.operatorList.argsArray.push(e.argsArray[n]);t.operatorList.lastChunk=e.lastChunk,t.operatorList.separateAnnots=e.separateAnnots;for(let n of t.renderTasks)n.operatorListChanged();e.lastChunk&&this.#t()}_pumpOperatorList({renderingIntent:e,cacheKey:t,annotationStorageSerializable:n,modifiedIds:i}){let{map:a,transfer:s}=n,c=this._transport.messageHandler.sendWithStream("GetOperatorList",{pageIndex:this._pageIndex,intent:e,cacheKey:t,annotationStorage:a,modifiedIds:i},s).getReader(),u=this._intentStates.get(t);u.streamReader=c;let h=()=>{c.read().then(({value:f,done:d})=>{if(d){u.streamReader=null;return}this._transport.destroyed||(this._renderPageChunk(f,u),h())},f=>{if(u.streamReader=null,!this._transport.destroyed){if(u.operatorList){u.operatorList.lastChunk=!0;for(let d of u.renderTasks)d.operatorListChanged();this.#t()}if(u.displayReadyCapability)u.displayReadyCapability.reject(f);else if(u.opListReadCapability)u.opListReadCapability.reject(f);else throw f}})};h()}_abortOperatorList({intentState:e,reason:t,force:n=!1}){if(e.streamReader){if(e.streamReaderCancelTimeout&&(clearTimeout(e.streamReaderCancelTimeout),e.streamReaderCancelTimeout=null),!n){if(e.renderTasks.size>0)return;if(t instanceof lo){let i=TS;t.extraDelay>0&&t.extraDelay<1e3&&(i+=t.extraDelay),e.streamReaderCancelTimeout=setTimeout(()=>{e.streamReaderCancelTimeout=null,this._abortOperatorList({intentState:e,reason:t,force:!0})},i);return}}if(e.streamReader.cancel(new Cn(t.message)).catch(()=>{}),e.streamReader=null,!this._transport.destroyed){for(let[i,a]of this._intentStates)if(a===e){this._intentStates.delete(i);break}this.cleanup()}}}get stats(){return this._stats}},go=class r{#e=Promise.withResolvers();#t=null;#n=null;#r=null;static#s=0;static#i=!1;static#a=new WeakMap;static{yr&&(this.#i=!0,Gn.workerSrc||="./pdf.worker.mjs"),this._isSameOrigin=(e,t)=>{let n=URL.parse(e);if(!n?.origin||n.origin==="null")return!1;let i=new URL(t,n);return n.origin===i.origin},this._createCDNWrapper=e=>{let t=`await import("${e}");`;return URL.createObjectURL(new Blob([t],{type:"text/javascript"}))},this.fromPort=e=>{if(rS("`PDFWorker.fromPort` - please use `PDFWorker.create` instead."),!e?.port)throw new Error("PDFWorker.fromPort - invalid method signature.");return this.create(e)}}constructor({name:e=null,port:t=null,verbosity:n=GA()}={}){if(this.name=e,this.destroyed=!1,this.verbosity=n,t){if(r.#a.has(t))throw new Error("Cannot use more than one PDFWorker per port.");r.#a.set(t,this),this.#l(t)}else this.#c()}get promise(){return this.#e.promise}#o(){this.#e.resolve(),this.#t.send("configure",{verbosity:this.verbosity})}get port(){return this.#n}get messageHandler(){return this.#t}#l(e){this.#n=e,this.#t=new zi("main","worker",e),this.#t.on("ready",()=>{}),this.#o()}#c(){if(r.#i||r.#h){this.#f();return}let{workerSrc:e}=r;try{r._isSameOrigin(window.location,e)||(e=r._createCDNWrapper(new URL(e,window.location).href));let t=new Worker(e,{type:"module"}),n=new zi("main","worker",t),i=()=>{a.abort(),n.destroy(),t.terminate(),this.destroyed?this.#e.reject(new Error("Worker was destroyed")):this.#f()},a=new AbortController;t.addEventListener("error",()=>{this.#r||i()},{signal:a.signal}),n.on("test",o=>{if(a.abort(),this.destroyed||!o){i();return}this.#t=n,this.#n=t,this.#r=t,this.#o()}),n.on("ready",o=>{if(a.abort(),this.destroyed){i();return}try{s()}catch{this.#f()}});let s=()=>{let o=new Uint8Array;n.send("test",o,[o.buffer])};s();return}catch{du("The worker has been disabled.")}this.#f()}#f(){r.#i||(Ne("Setting up fake worker."),r.#i=!0),r._setupFakeWorkerGlobal.then(e=>{if(this.destroyed){this.#e.reject(new Error("Worker was destroyed"));return}let t=new pd;this.#n=t;let n=`fake${r.#s++}`,i=new zi(n+"_worker",n,t);e.setup(i,t),this.#t=new zi(n,n+"_worker",t),this.#o()}).catch(e=>{this.#e.reject(new Error(`Setting up fake worker failed: "${e.message}".`))})}destroy(){this.destroyed=!0,this.#r?.terminate(),this.#r=null,r.#a.delete(this.#n),this.#n=null,this.#t?.destroy(),this.#t=null}static create(e){let t=this.#a.get(e?.port);if(t){if(t._pendingDestroy)throw new Error("PDFWorker.create - the worker is being destroyed.\nPlease remember to await `PDFDocumentLoadingTask.destroy()`-calls.");return t}return new r(e)}static get workerSrc(){if(Gn.workerSrc)return Gn.workerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}static get#h(){try{return globalThis.pdfjsWorker?.WorkerMessageHandler||null}catch{return null}}static get _setupFakeWorkerGlobal(){return Ge(this,"_setupFakeWorkerGlobal",(async()=>this.#h?this.#h:(await import(this.workerSrc)).WorkerMessageHandler)())}},Zd=class{#e=new Map;#t=new Map;#n=new Map;#r=new Map;#s=null;constructor(e,t,n,i,a,s){this.messageHandler=e,this.loadingTask=t,this.commonObjs=new ql,this.fontLoader=new hd({ownerDocument:i.ownerDocument,styleElement:i.styleElement}),this.loadingParams=i.loadingParams,this._params=i,this.canvasFactory=a.canvasFactory,this.filterFactory=a.filterFactory,this.cMapReaderFactory=a.cMapReaderFactory,this.standardFontDataFactory=a.standardFontDataFactory,this.wasmFactory=a.wasmFactory,this.destroyed=!1,this.destroyCapability=null,this._networkStream=n,this._fullReader=null,this._lastProgress=null,this.downloadInfoCapability=Promise.withResolvers(),this.enableHWA=s,this.setupMessageHandler()}#i(e,t=null){let n=this.#e.get(e);if(n)return n;let i=this.messageHandler.sendWithPromise(e,t);return this.#e.set(e,i),i}get annotationStorage(){return Ge(this,"annotationStorage",new ho)}getRenderingIntent(e,t=pi.ENABLE,n=null,i=!1,a=!1){let s=Vr.DISPLAY,o=ud;switch(e){case"any":s=Vr.ANY;break;case"display":break;case"print":s=Vr.PRINT;break;default:Ne(`getRenderingIntent - invalid intent: ${e}`)}let c=s&Vr.PRINT&&n instanceof Bl?n:this.annotationStorage;switch(t){case pi.DISABLE:s+=Vr.ANNOTATIONS_DISABLE;break;case pi.ENABLE:break;case pi.ENABLE_FORMS:s+=Vr.ANNOTATIONS_FORMS;break;case pi.ENABLE_STORAGE:s+=Vr.ANNOTATIONS_STORAGE,o=c.serializable;break;default:Ne(`getRenderingIntent - invalid annotationMode: ${t}`)}i&&(s+=Vr.IS_EDITING),a&&(s+=Vr.OPLIST);let{ids:u,hash:h}=c.modifiedIds,f=[s,o.hash,h];return{renderingIntent:s,cacheKey:f.join("_"),annotationStorageSerializable:o,modifiedIds:u}}destroy(){if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=Promise.withResolvers(),this.#s?.reject(new Error("Worker was destroyed during onPassword callback"));let e=[];for(let n of this.#t.values())e.push(n._destroy());this.#t.clear(),this.#n.clear(),this.#r.clear(),this.hasOwnProperty("annotationStorage")&&this.annotationStorage.resetModified();let t=this.messageHandler.sendWithPromise("Terminate",null);return e.push(t),Promise.all(e).then(()=>{this.commonObjs.clear(),this.fontLoader.clear(),this.#e.clear(),this.filterFactory.destroy(),po.cleanup(),this._networkStream?.cancelAllRequests(new Cn("Worker was terminated.")),this.messageHandler?.destroy(),this.messageHandler=null,this.destroyCapability.resolve()},this.destroyCapability.reject),this.destroyCapability.promise}setupMessageHandler(){let{messageHandler:e,loadingTask:t}=this;e.on("GetReader",(n,i)=>{Ye(this._networkStream,"GetReader - no `IPDFStream` instance available."),this._fullReader=this._networkStream.getFullReader(),this._fullReader.onProgress=a=>{this._lastProgress={loaded:a.loaded,total:a.total}},i.onPull=()=>{this._fullReader.read().then(function({value:a,done:s}){if(s){i.close();return}Ye(a instanceof ArrayBuffer,"GetReader - expected an ArrayBuffer."),i.enqueue(new Uint8Array(a),1,[a])}).catch(a=>{i.error(a)})},i.onCancel=a=>{this._fullReader.cancel(a),i.ready.catch(s=>{if(!this.destroyed)throw s})}}),e.on("ReaderHeadersReady",async n=>{await this._fullReader.headersReady;let{isStreamingSupported:i,isRangeSupported:a,contentLength:s}=this._fullReader;return(!i||!a)&&(this._lastProgress&&t.onProgress?.(this._lastProgress),this._fullReader.onProgress=o=>{t.onProgress?.({loaded:o.loaded,total:o.total})}),{isStreamingSupported:i,isRangeSupported:a,contentLength:s}}),e.on("GetRangeReader",(n,i)=>{Ye(this._networkStream,"GetRangeReader - no `IPDFStream` instance available.");let a=this._networkStream.getRangeReader(n.begin,n.end);if(!a){i.close();return}i.onPull=()=>{a.read().then(function({value:s,done:o}){if(o){i.close();return}Ye(s instanceof ArrayBuffer,"GetRangeReader - expected an ArrayBuffer."),i.enqueue(new Uint8Array(s),1,[s])}).catch(s=>{i.error(s)})},i.onCancel=s=>{a.cancel(s),i.ready.catch(o=>{if(!this.destroyed)throw o})}}),e.on("GetDoc",({pdfInfo:n})=>{this._numPages=n.numPages,this._htmlForXfa=n.htmlForXfa,delete n.htmlForXfa,t._capability.resolve(new Yd(n,this))}),e.on("DocException",n=>{t._capability.reject(kr(n))}),e.on("PasswordRequest",n=>{this.#s=Promise.withResolvers();try{if(!t.onPassword)throw kr(n);let i=a=>{a instanceof Error?this.#s.reject(a):this.#s.resolve({password:a})};t.onPassword(i,n.code)}catch(i){this.#s.reject(i)}return this.#s.promise}),e.on("DataLoaded",n=>{t.onProgress?.({loaded:n.length,total:n.length}),this.downloadInfoCapability.resolve(n)}),e.on("StartRenderPage",n=>{if(this.destroyed)return;this.#t.get(n.pageIndex)._startRenderPage(n.transparency,n.cacheKey)}),e.on("commonobj",([n,i,a])=>{if(this.destroyed||this.commonObjs.has(n))return null;switch(i){case"Font":if("error"in a){let h=a.error;Ne(`Error during font loading: ${h}`),this.commonObjs.resolve(n,h);break}let s=new Ud(a),o=this._params.pdfBug&&globalThis.FontInspector?.enabled?(h,f)=>globalThis.FontInspector.fontAdded(h,f):null,c=new fd(s,o,a.extra,a.charProcOperatorList);this.fontLoader.bind(c).catch(()=>e.sendWithPromise("FontFallback",{id:n})).finally(()=>{!c.fontExtraProperties&&c.data&&c.clearData(),this.commonObjs.resolve(n,c)});break;case"CopyLocalImage":let{imageRef:u}=a;Ye(u,"The imageRef must be defined.");for(let h of this.#t.values())for(let[,f]of h.objs)if(f?.ref===u)return f.dataLen?(this.commonObjs.resolve(n,structuredClone(f)),f.dataLen):null;break;case"FontPath":case"Image":case"Pattern":this.commonObjs.resolve(n,a);break;default:throw new Error(`Got unknown common object type ${i}`)}return null}),e.on("obj",([n,i,a,s])=>{if(this.destroyed)return;let o=this.#t.get(i);if(!o.objs.has(n)){if(o._intentStates.size===0){s?.bitmap?.close();return}switch(a){case"Image":case"Pattern":o.objs.resolve(n,s);break;default:throw new Error(`Got unknown object type ${a}`)}}}),e.on("DocProgress",n=>{this.destroyed||t.onProgress?.({loaded:n.loaded,total:n.total})}),e.on("FetchBinaryData",async n=>{if(this.destroyed)throw new Error("Worker was destroyed.");let i=this[n.type];if(!i)throw new Error(`${n.type} not initialized, see the \`useWorkerFetch\` parameter.`);return i.fetch(n)})}getData(){return this.messageHandler.sendWithPromise("GetData",null)}saveDocument(){this.annotationStorage.size<=0&&Ne("saveDocument called while `annotationStorage` is empty, please use the getData-method instead.");let{map:e,transfer:t}=this.annotationStorage.serializable;return this.messageHandler.sendWithPromise("SaveDocument",{isPureXfa:!!this._htmlForXfa,numPages:this._numPages,annotationStorage:e,filename:this._fullReader?.filename??null},t).finally(()=>{this.annotationStorage.resetModified()})}getPage(e){if(!Number.isInteger(e)||e<=0||e>this._numPages)return Promise.reject(new Error("Invalid page request."));let t=e-1,n=this.#n.get(t);if(n)return n;let i=this.messageHandler.sendWithPromise("GetPage",{pageIndex:t}).then(a=>{if(this.destroyed)throw new Error("Transport destroyed");a.refStr&&this.#r.set(a.refStr,e);let s=new Kd(t,a,this,this._params.pdfBug);return this.#t.set(t,s),s});return this.#n.set(t,i),i}getPageIndex(e){return dd(e)?this.messageHandler.sendWithPromise("GetPageIndex",{num:e.num,gen:e.gen}):Promise.reject(new Error("Invalid pageIndex request."))}getAnnotations(e,t){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:e,intent:t})}getFieldObjects(){return this.#i("GetFieldObjects")}hasJSActions(){return this.#i("HasJSActions")}getCalculationOrderIds(){return this.messageHandler.sendWithPromise("GetCalculationOrderIds",null)}getDestinations(){return this.messageHandler.sendWithPromise("GetDestinations",null)}getDestination(e){return typeof e!="string"?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:e})}getPageLabels(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}getPageLayout(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}getPageMode(){return this.messageHandler.sendWithPromise("GetPageMode",null)}getViewerPreferences(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}getOpenAction(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}getAttachments(){return this.messageHandler.sendWithPromise("GetAttachments",null)}getAnnotationsByType(e,t){return this.messageHandler.sendWithPromise("GetAnnotationsByType",{types:e,pageIndexesToSkip:t})}getDocJSActions(){return this.#i("GetDocJSActions")}getPageJSActions(e){return this.messageHandler.sendWithPromise("GetPageJSActions",{pageIndex:e})}getStructTree(e){return this.messageHandler.sendWithPromise("GetStructTree",{pageIndex:e})}getOutline(){return this.messageHandler.sendWithPromise("GetOutline",null)}getOptionalContentConfig(e){return this.#i("GetOptionalContentConfig").then(t=>new Od(t,e))}getPermissions(){return this.messageHandler.sendWithPromise("GetPermissions",null)}getMetadata(){let e="GetMetadata",t=this.#e.get(e);if(t)return t;let n=this.messageHandler.sendWithPromise(e,null).then(i=>({info:i[0],metadata:i[1]?new Id(i[1]):null,contentDispositionFilename:this._fullReader?.filename??null,contentLength:this._fullReader?.contentLength??null}));return this.#e.set(e,n),n}getMarkInfo(){return this.messageHandler.sendWithPromise("GetMarkInfo",null)}async startCleanup(e=!1){if(!this.destroyed){await this.messageHandler.sendWithPromise("Cleanup",null);for(let t of this.#t.values())if(!t.cleanup())throw new Error(`startCleanup: Page ${t.pageNumber} is currently rendering.`);this.commonObjs.clear(),e||this.fontLoader.clear(),this.#e.clear(),this.filterFactory.destroy(!0),po.cleanup()}}cachedPageNumber(e){if(!dd(e))return null;let t=e.gen===0?`${e.num}R`:`${e.num}R${e.gen}`;return this.#r.get(t)??null}},Jd=class{#e=null;onContinue=null;onError=null;constructor(e){this.#e=e}get promise(){return this.#e.capability.promise}cancel(e=0){this.#e.cancel(null,e)}get separateAnnots(){let{separateAnnots:e}=this.#e.operatorList;if(!e)return!1;let{annotationCanvasMap:t}=this.#e;return e.form||e.canvas&&t?.size>0}},Qd=class r{#e=null;static#t=new WeakSet;constructor({callback:e,params:t,objs:n,commonObjs:i,annotationCanvasMap:a,operatorList:s,pageIndex:o,canvasFactory:c,filterFactory:u,useRequestAnimationFrame:h=!1,pdfBug:f=!1,pageColors:d=null,enableHWA:p=!1,operationsFilter:m=null}){this.callback=e,this.params=t,this.objs=n,this.commonObjs=i,this.annotationCanvasMap=a,this.operatorListIdx=null,this.operatorList=s,this._pageIndex=o,this.canvasFactory=c,this.filterFactory=u,this._pdfBug=f,this.pageColors=d,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=h===!0&&typeof window<"u",this.cancelled=!1,this.capability=Promise.withResolvers(),this.task=new Jd(this),this._cancelBound=this.cancel.bind(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=t.canvas,this._canvasContext=t.canvas?null:t.canvasContext,this._enableHWA=p,this._dependencyTracker=t.dependencyTracker,this._operationsFilter=m}get completed(){return this.capability.promise.catch(function(){})}initializeGraphics({transparency:e=!1,optionalContentConfig:t}){if(this.cancelled)return;if(this._canvas){if(r.#t.has(this._canvas))throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");r.#t.add(this._canvas)}this._pdfBug&&globalThis.StepperManager?.enabled&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());let{viewport:n,transform:i,background:a,dependencyTracker:s}=this.params,o=this._canvasContext||this._canvas.getContext("2d",{alpha:!1,willReadFrequently:!this._enableHWA});this.gfx=new Wa(o,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:t},this.annotationCanvasMap,this.pageColors,s),this.gfx.beginDrawing({transform:i,viewport:n,transparency:e,background:a}),this.operatorListIdx=0,this.graphicsReady=!0,this.graphicsReadyCallback?.()}cancel(e=null,t=0){this.running=!1,this.cancelled=!0,this.gfx?.endDrawing(),this.#e&&(window.cancelAnimationFrame(this.#e),this.#e=null),r.#t.delete(this._canvas),e||=new lo(`Rendering cancelled, page ${this._pageIndex+1}`,t),this.callback(e),this.task.onError?.(e)}operatorListChanged(){if(!this.graphicsReady){this.graphicsReadyCallback||=this._continueBound;return}this.gfx.dependencyTracker?.growOperationsCount(this.operatorList.fnArray.length),this.stepper?.updateOperatorList(this.operatorList),!this.running&&this._continue()}_continue(){this.running=!0,!this.cancelled&&(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}_scheduleNext(){this._useRequestAnimationFrame?this.#e=window.requestAnimationFrame(()=>{this.#e=null,this._nextBound().catch(this._cancelBound)}):Promise.resolve().then(this._nextBound).catch(this._cancelBound)}async _next(){this.cancelled||(this.operatorListIdx=this.gfx.executeOperatorList(this.operatorList,this.operatorListIdx,this._continueBound,this.stepper,this._operationsFilter),this.operatorListIdx===this.operatorList.argsArray.length&&(this.running=!1,this.operatorList.lastChunk&&(this.gfx.endDrawing(),r.#t.delete(this._canvas),this.callback())))}},ES="5.4.296",AS="f56dc8601",Kl=class r{#e=null;#t=null;#n;#r=null;#s=!1;#i=!1;#a=null;#o;#l=null;#c=null;static#f=null;static get _keyboardManager(){return Ge(this,"_keyboardManager",new Gi([[["Escape","mac+Escape"],r.prototype._hideDropdownFromKeyboard],[[" ","mac+ "],r.prototype._colorSelectFromKeyboard],[["ArrowDown","ArrowRight","mac+ArrowDown","mac+ArrowRight"],r.prototype._moveToNext],[["ArrowUp","ArrowLeft","mac+ArrowUp","mac+ArrowLeft"],r.prototype._moveToPrevious],[["Home","mac+Home"],r.prototype._moveToBeginning],[["End","mac+End"],r.prototype._moveToEnd]]))}constructor({editor:e=null,uiManager:t=null}){e?(this.#i=!1,this.#a=e):this.#i=!0,this.#c=e?._uiManager||t,this.#o=this.#c._eventBus,this.#n=e?.color?.toUpperCase()||this.#c?.highlightColors.values().next().value||"#FFFF98",r.#f||=Object.freeze({blue:"pdfjs-editor-colorpicker-blue",green:"pdfjs-editor-colorpicker-green",pink:"pdfjs-editor-colorpicker-pink",red:"pdfjs-editor-colorpicker-red",yellow:"pdfjs-editor-colorpicker-yellow"})}renderButton(){let e=this.#e=document.createElement("button");e.className="colorPicker",e.tabIndex="0",e.setAttribute("data-l10n-id","pdfjs-editor-colorpicker-button"),e.ariaHasPopup="true",this.#a&&(e.ariaControls=`${this.#a.id}_colorpicker_dropdown`);let t=this.#c._signal;e.addEventListener("click",this.#p.bind(this),{signal:t}),e.addEventListener("keydown",this.#m.bind(this),{signal:t});let n=this.#t=document.createElement("span");return n.className="swatch",n.ariaHidden="true",n.style.backgroundColor=this.#n,e.append(n),e}renderMainDropdown(){let e=this.#r=this.#h();return e.ariaOrientation="horizontal",e.ariaLabelledBy="highlightColorPickerLabel",e}#h(){let e=document.createElement("div"),t=this.#c._signal;e.addEventListener("contextmenu",en,{signal:t}),e.className="dropdown",e.role="listbox",e.ariaMultiSelectable="false",e.ariaOrientation="vertical",e.setAttribute("data-l10n-id","pdfjs-editor-colorpicker-dropdown"),this.#a&&(e.id=`${this.#a.id}_colorpicker_dropdown`);for(let[n,i]of this.#c.highlightColors){let a=document.createElement("button");a.tabIndex="0",a.role="option",a.setAttribute("data-color",i),a.title=n,a.setAttribute("data-l10n-id",r.#f[n]);let s=document.createElement("span");a.append(s),s.className="swatch",s.style.backgroundColor=i,a.ariaSelected=i===this.#n,a.addEventListener("click",this.#d.bind(this,i),{signal:t}),e.append(a)}return e.addEventListener("keydown",this.#m.bind(this),{signal:t}),e}#d(e,t){t.stopPropagation(),this.#o.dispatch("switchannotationeditorparams",{source:this,type:qe.HIGHLIGHT_COLOR,value:e}),this.updateColor(e)}_colorSelectFromKeyboard(e){if(e.target===this.#e){this.#p(e);return}let t=e.target.getAttribute("data-color");t&&this.#d(t,e)}_moveToNext(e){if(!this.#g){this.#p(e);return}if(e.target===this.#e){this.#r.firstChild?.focus();return}e.target.nextSibling?.focus()}_moveToPrevious(e){if(e.target===this.#r?.firstChild||e.target===this.#e){this.#g&&this._hideDropdownFromKeyboard();return}this.#g||this.#p(e),e.target.previousSibling?.focus()}_moveToBeginning(e){if(!this.#g){this.#p(e);return}this.#r.firstChild?.focus()}_moveToEnd(e){if(!this.#g){this.#p(e);return}this.#r.lastChild?.focus()}#m(e){r._keyboardManager.exec(this,e)}#p(e){if(this.#g){this.hideDropdown();return}if(this.#s=e.detail===0,this.#l||(this.#l=new AbortController,window.addEventListener("pointerdown",this.#u.bind(this),{signal:this.#c.combinedSignal(this.#l)})),this.#e.ariaExpanded="true",this.#r){this.#r.classList.remove("hidden");return}let t=this.#r=this.#h();this.#e.append(t)}#u(e){this.#r?.contains(e.target)||this.hideDropdown()}hideDropdown(){this.#r?.classList.add("hidden"),this.#e.ariaExpanded="false",this.#l?.abort(),this.#l=null}get#g(){return this.#r&&!this.#r.classList.contains("hidden")}_hideDropdownFromKeyboard(){if(!this.#i){if(!this.#g){this.#a?.unselect();return}this.hideDropdown(),this.#e.focus({preventScroll:!0,focusVisible:this.#s})}}updateColor(e){if(this.#t&&(this.#t.style.backgroundColor=e),!this.#r)return;let t=this.#c.highlightColors.values();for(let n of this.#r.children)n.ariaSelected=t.next().value===e.toUpperCase()}destroy(){this.#e?.remove(),this.#e=null,this.#t=null,this.#r?.remove(),this.#r=null}},Zl=class r{#e=null;#t=null;#n=null;static#r=null;constructor(e){this.#t=e,this.#n=e._uiManager,r.#r||=Object.freeze({freetext:"pdfjs-editor-color-picker-free-text-input",ink:"pdfjs-editor-color-picker-ink-input"})}renderButton(){if(this.#e)return this.#e;let{editorType:e,colorType:t,colorValue:n}=this.#t,i=this.#e=document.createElement("input");return i.type="color",i.value=n||"#000000",i.className="basicColorPicker",i.tabIndex=0,i.setAttribute("data-l10n-id",r.#r[e]),i.addEventListener("input",()=>{this.#n.updateParams(t,i.value)},{signal:this.#n._signal}),i}update(e){this.#e&&(this.#e.value=e)}destroy(){this.#e?.remove(),this.#e=null}hideDropdown(){}},mN=ze(116),xN=ze(531);function nx(r){return Math.floor(Math.max(0,Math.min(1,r))*255).toString(16).padStart(2,"0")}function eo(r){return Math.max(0,Math.min(255,255*r))}var Jl=class{static CMYK_G([e,t,n,i]){return["G",1-Math.min(1,.3*e+.59*n+.11*t+i)]}static G_CMYK([e]){return["CMYK",0,0,0,1-e]}static G_RGB([e]){return["RGB",e,e,e]}static G_rgb([e]){return e=eo(e),[e,e,e]}static G_HTML([e]){let t=nx(e);return`#${t}${t}${t}`}static RGB_G([e,t,n]){return["G",.3*e+.59*t+.11*n]}static RGB_rgb(e){return e.map(eo)}static RGB_HTML(e){return`#${e.map(nx).join("")}`}static T_HTML(){return"#00000000"}static T_rgb(){return[null]}static CMYK_RGB([e,t,n,i]){return["RGB",1-Math.min(1,e+i),1-Math.min(1,n+i),1-Math.min(1,t+i)]}static CMYK_rgb([e,t,n,i]){return[eo(1-Math.min(1,e+i)),eo(1-Math.min(1,n+i)),eo(1-Math.min(1,t+i))]}static CMYK_HTML(e){let t=this.CMYK_RGB(e).slice(1);return this.RGB_HTML(t)}static RGB_CMYK([e,t,n]){let i=1-e,a=1-t,s=1-n,o=Math.min(i,a,s);return["CMYK",i,a,s,o]}};var e0=class{create(e,t,n=!1){if(e<=0||t<=0)throw new Error("Invalid SVG dimensions");let i=this._createSVG("svg:svg");return i.setAttribute("version","1.1"),n||(i.setAttribute("width",`${e}px`),i.setAttribute("height",`${t}px`)),i.setAttribute("preserveAspectRatio","none"),i.setAttribute("viewBox",`0 0 ${e} ${t}`),i}createElement(e){if(typeof e!="string")throw new Error("Invalid SVG element type");return this._createSVG(e)}_createSVG(e){dt("Abstract method `_createSVG` called.")}},Va=class extends e0{_createSVG(e){return document.createElementNS(jn,e)}},SS=9,$i=new WeakSet,CS=new Date().getTimezoneOffset()*60*1e3,Ql=class{static create(e){switch(e.data.annotationType){case Rt.LINK:return new mo(e);case Rt.TEXT:return new r0(e);case Rt.WIDGET:switch(e.data.fieldType){case"Tx":return new n0(e);case"Btn":return e.data.radioButton?new eu(e):e.data.checkBox?new a0(e):new s0(e);case"Ch":return new o0(e);case"Sig":return new i0(e)}return new $n(e);case Rt.POPUP:return new xo(e);case Rt.FREETEXT:return new tu(e);case Rt.LINE:return new l0(e);case Rt.SQUARE:return new u0(e);case Rt.CIRCLE:return new h0(e);case Rt.POLYLINE:return new ru(e);case Rt.CARET:return new d0(e);case Rt.INK:return new vo(e);case Rt.POLYGON:return new f0(e);case Rt.HIGHLIGHT:return new nu(e);case Rt.UNDERLINE:return new p0(e);case Rt.SQUIGGLY:return new g0(e);case Rt.STRIKEOUT:return new m0(e);case Rt.STAMP:return new iu(e);case Rt.FILEATTACHMENT:return new x0(e);default:return new Dt(e)}}},Dt=class r{#e=null;#t=!1;#n=null;constructor(e,{isRenderable:t=!1,ignoreBorder:n=!1,createQuadrilaterals:i=!1}={}){this.isRenderable=t,this.data=e.data,this.layer=e.layer,this.linkService=e.linkService,this.downloadManager=e.downloadManager,this.imageResourcesPath=e.imageResourcesPath,this.renderForms=e.renderForms,this.svgFactory=e.svgFactory,this.annotationStorage=e.annotationStorage,this.enableComment=e.enableComment,this.enableScripting=e.enableScripting,this.hasJSActions=e.hasJSActions,this._fieldObjects=e.fieldObjects,this.parent=e.parent,t&&(this.container=this._createContainer(n)),i&&this._createQuadrilaterals()}static _hasPopupData({contentsObj:e,richText:t}){return!!(e?.str||t?.str)}get _isEditable(){return this.data.isEditable}get hasPopupData(){return r._hasPopupData(this.data)||this.enableComment&&!!this.commentText}get commentData(){let{data:e}=this,t=this.annotationStorage?.getEditor(e.id);return t?t.getData():e}get hasCommentButton(){return this.enableComment&&this.hasPopupElement}get commentButtonPosition(){let e=this.annotationStorage?.getEditor(this.data.id);if(e)return e.commentButtonPositionInPage;let{quadPoints:t,inkLists:n,rect:i}=this.data,a=-1/0,s=-1/0;if(t?.length>=8){for(let o=0;o<t.length;o+=8)t[o+1]>s?(s=t[o+1],a=t[o+2]):t[o+1]===s&&(a=Math.max(a,t[o+2]));return[a,s]}if(n?.length>=1){for(let o of n)for(let c=0,u=o.length;c<u;c+=2)o[c+1]>s?(s=o[c+1],a=o[c]):o[c+1]===s&&(a=Math.max(a,o[c]));if(a!==1/0)return[a,s]}return i?[i[2],i[3]]:null}_normalizePoint(e){let{page:{view:t},viewport:{rawDims:{pageWidth:n,pageHeight:i,pageX:a,pageY:s}}}=this.parent;return e[1]=t[3]-e[1]+t[1],e[0]=100*(e[0]-a)/n,e[1]=100*(e[1]-s)/i,e}get commentText(){let{data:e}=this;return this.annotationStorage.getRawValue(`${io}${e.id}`)?.popup?.contents||e.contentsObj?.str||""}set commentText(e){let{data:t}=this,n={deleted:!e,contents:e||""};this.annotationStorage.updateEditor(t.id,{popup:n})||this.annotationStorage.setValue(`${io}${t.id}`,{id:t.id,annotationType:t.annotationType,pageIndex:this.parent.page._pageIndex,popup:n,popupRef:t.popupRef,modificationDate:new Date}),e||this.removePopup()}removePopup(){(this.#n?.popup||this.popup)?.remove(),this.#n=this.popup=null}updateEdited(e){if(!this.container)return;e.rect&&(this.#e||={rect:this.data.rect.slice(0)});let{rect:t,popup:n}=e;t&&this.#r(t);let i=this.#n?.popup||this.popup;!i&&n?.text&&(this._createPopup(n),i=this.#n.popup),i&&(i.updateEdited(e),n?.deleted&&(i.remove(),this.#n=null,this.popup=null))}resetEdited(){this.#e&&(this.#r(this.#e.rect),this.#n?.popup.resetEdited(),this.#e=null)}#r(e){let{container:{style:t},data:{rect:n,rotation:i},parent:{viewport:{rawDims:{pageWidth:a,pageHeight:s,pageX:o,pageY:c}}}}=this;n?.splice(0,4,...e),t.left=`${100*(e[0]-o)/a}%`,t.top=`${100*(s-e[3]+c)/s}%`,i===0?(t.width=`${100*(e[2]-e[0])/a}%`,t.height=`${100*(e[3]-e[1])/s}%`):this.setRotation(i)}_createContainer(e){let{data:t,parent:{page:n,viewport:i}}=this,a=document.createElement("section");a.setAttribute("data-annotation-id",t.id),!(this instanceof $n)&&!(this instanceof mo)&&(a.tabIndex=0);let{style:s}=a;if(s.zIndex=this.parent.zIndex,this.parent.zIndex+=2,t.alternativeText&&(a.title=t.alternativeText),t.noRotate&&a.classList.add("norotate"),!t.rect||this instanceof xo){let{rotation:g}=t;return!t.hasOwnCanvas&&g!==0&&this.setRotation(g,a),a}let{width:o,height:c}=this;if(!e&&t.borderStyle.width>0){s.borderWidth=`${t.borderStyle.width}px`;let g=t.borderStyle.horizontalCornerRadius,x=t.borderStyle.verticalCornerRadius;if(g>0||x>0){let b=`calc(${g}px * var(--total-scale-factor)) / calc(${x}px * var(--total-scale-factor))`;s.borderRadius=b}else if(this instanceof eu){let b=`calc(${o}px * var(--total-scale-factor)) / calc(${c}px * var(--total-scale-factor))`;s.borderRadius=b}switch(t.borderStyle.style){case Na.SOLID:s.borderStyle="solid";break;case Na.DASHED:s.borderStyle="dashed";break;case Na.BEVELED:Ne("Unimplemented border style: beveled");break;case Na.INSET:Ne("Unimplemented border style: inset");break;case Na.UNDERLINE:s.borderBottomStyle="solid";break;default:break}let y=t.borderColor||null;y?(this.#t=!0,s.borderColor=Re.makeHexColor(y[0]|0,y[1]|0,y[2]|0)):s.borderWidth=0}let u=Re.normalizeRect([t.rect[0],n.view[3]-t.rect[1]+n.view[1],t.rect[2],n.view[3]-t.rect[3]+n.view[1]]),{pageWidth:h,pageHeight:f,pageX:d,pageY:p}=i.rawDims;s.left=`${100*(u[0]-d)/h}%`,s.top=`${100*(u[1]-p)/f}%`;let{rotation:m}=t;return t.hasOwnCanvas||m===0?(s.width=`${100*o/h}%`,s.height=`${100*c/f}%`):this.setRotation(m,a),a}setRotation(e,t=this.container){if(!this.data.rect)return;let{pageWidth:n,pageHeight:i}=this.parent.viewport.rawDims,{width:a,height:s}=this;e%180!==0&&([a,s]=[s,a]),t.style.width=`${100*a/n}%`,t.style.height=`${100*s/i}%`,t.setAttribute("data-main-rotation",(360-e)%360)}get _commonActions(){let e=(t,n,i)=>{let a=i.detail[t],s=a[0],o=a.slice(1);i.target.style[n]=Jl[`${s}_HTML`](o),this.annotationStorage.setValue(this.data.id,{[n]:Jl[`${s}_rgb`](o)})};return Ge(this,"_commonActions",{display:t=>{let{display:n}=t.detail,i=n%2===1;this.container.style.visibility=i?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noView:i,noPrint:n===1||n===2})},print:t=>{this.annotationStorage.setValue(this.data.id,{noPrint:!t.detail.print})},hidden:t=>{let{hidden:n}=t.detail;this.container.style.visibility=n?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noPrint:n,noView:n})},focus:t=>{setTimeout(()=>t.target.focus({preventScroll:!1}),0)},userName:t=>{t.target.title=t.detail.userName},readonly:t=>{t.target.disabled=t.detail.readonly},required:t=>{this._setRequired(t.target,t.detail.required)},bgColor:t=>{e("bgColor","backgroundColor",t)},fillColor:t=>{e("fillColor","backgroundColor",t)},fgColor:t=>{e("fgColor","color",t)},textColor:t=>{e("textColor","color",t)},borderColor:t=>{e("borderColor","borderColor",t)},strokeColor:t=>{e("strokeColor","borderColor",t)},rotation:t=>{let n=t.detail.rotation;this.setRotation(n),this.annotationStorage.setValue(this.data.id,{rotation:n})}})}_dispatchEventFromSandbox(e,t){let n=this._commonActions;for(let i of Object.keys(t.detail))(e[i]||n[i])?.(t)}_setDefaultPropertiesFromJS(e){if(!this.enableScripting)return;let t=this.annotationStorage.getRawValue(this.data.id);if(!t)return;let n=this._commonActions;for(let[i,a]of Object.entries(t)){let s=n[i];if(s){let o={detail:{[i]:a},target:e};s(o),delete t[i]}}}_createQuadrilaterals(){if(!this.container)return;let{quadPoints:e}=this.data;if(!e)return;let[t,n,i,a]=this.data.rect.map(g=>Math.fround(g));if(e.length===8){let[g,x,y,b]=e.subarray(2,6);if(i===g&&a===x&&t===y&&n===b)return}let{style:s}=this.container,o;if(this.#t){let{borderColor:g,borderWidth:x}=s;s.borderWidth=0,o=["url('data:image/svg+xml;utf8,",'<svg xmlns="http://www.w3.org/2000/svg"',' preserveAspectRatio="none" viewBox="0 0 1 1">',`<g fill="transparent" stroke="${g}" stroke-width="${x}">`],this.container.classList.add("hasBorder")}let c=i-t,u=a-n,{svgFactory:h}=this,f=h.createElement("svg");f.classList.add("quadrilateralsContainer"),f.setAttribute("width",0),f.setAttribute("height",0),f.role="none";let d=h.createElement("defs");f.append(d);let p=h.createElement("clipPath"),m=`clippath_${this.data.id}`;p.setAttribute("id",m),p.setAttribute("clipPathUnits","objectBoundingBox"),d.append(p);for(let g=2,x=e.length;g<x;g+=8){let y=e[g],b=e[g+1],v=e[g+2],_=e[g+3],A=h.createElement("rect"),E=(v-t)/c,T=(a-b)/u,S=(y-v)/c,C=(b-_)/u;A.setAttribute("x",E),A.setAttribute("y",T),A.setAttribute("width",S),A.setAttribute("height",C),p.append(A),o?.push(`<rect vector-effect="non-scaling-stroke" x="${E}" y="${T}" width="${S}" height="${C}"/>`)}this.#t&&(o.push("</g></svg>')"),s.backgroundImage=o.join("")),this.container.append(f),this.container.style.clipPath=`url(#${m})`}_createPopup(e=null){let{data:t}=this,n,i;e?(n={str:e.text},i=e.date):(n=t.contentsObj,i=t.modificationDate);let a=this.#n=new xo({data:{color:t.color,titleObj:t.titleObj,modificationDate:i,contentsObj:n,richText:t.richText,parentRect:t.rect,borderStyle:0,id:`popup_${t.id}`,rotation:t.rotation,noRotate:!0},linkService:this.linkService,parent:this.parent,elements:[this]});this.parent._commentManager||this.parent.div.append(a.render())}get hasPopupElement(){return!!(this.#n||this.popup||this.data.popupRef)}get extraPopupElement(){return this.#n}render(){dt("Abstract method `AnnotationElement.render` called")}_getElementsByName(e,t=null){let n=[];if(this._fieldObjects){let i=this._fieldObjects[e];if(i)for(let{page:a,id:s,exportValues:o}of i){if(a===-1||s===t)continue;let c=typeof o=="string"?o:null,u=document.querySelector(`[data-element-id="${s}"]`);if(u&&!$i.has(u)){Ne(`_getElementsByName - element not allowed: ${s}`);continue}n.push({id:s,exportValue:c,domElement:u})}return n}for(let i of document.getElementsByName(e)){let{exportValue:a}=i,s=i.getAttribute("data-element-id");s!==t&&$i.has(i)&&n.push({id:s,exportValue:a,domElement:i})}return n}show(){this.container&&(this.container.hidden=!1),this.popup?.maybeShow()}hide(){this.container&&(this.container.hidden=!0),this.popup?.forceHide()}getElementsToTriggerPopup(){return this.container}addHighlightArea(){let e=this.getElementsToTriggerPopup();if(Array.isArray(e))for(let t of e)t.classList.add("highlightArea");else e.classList.add("highlightArea")}_editOnDoubleClick(){if(!this._isEditable)return;let{annotationEditorType:e,data:{id:t}}=this;this.container.addEventListener("dblclick",()=>{this.linkService.eventBus?.dispatch("switchannotationeditormode",{source:this,mode:e,editId:t,mustEnterInEditMode:!0})})}get width(){return this.data.rect[2]-this.data.rect[0]}get height(){return this.data.rect[3]-this.data.rect[1]}},t0=class extends Dt{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0}),this.editor=e.editor}render(){return this.container.className="editorAnnotation",this.container}createOrUpdatePopup(){let{editor:e}=this;e.hasComment&&(this._createPopup(e.comment),this.extraPopupElement.popup.renderCommentButton())}get hasCommentButton(){return this.enableComment&&this.editor.hasComment}get commentButtonPosition(){return this.editor.commentButtonPositionInPage}get commentText(){return this.editor.comment.text}set commentText(e){this.editor.comment=e,e||this.removePopup()}get commentData(){return this.editor.getData()}remove(){this.container.remove(),this.container=null,this.removePopup()}},mo=class extends Dt{constructor(e,t=null){super(e,{isRenderable:!0,ignoreBorder:!!t?.ignoreBorder,createQuadrilaterals:!0}),this.isTooltipOnly=e.data.isTooltipOnly}render(){let{data:e,linkService:t}=this,n=document.createElement("a");n.setAttribute("data-element-id",e.id);let i=!1;return e.url?(t.addLinkAttributes(n,e.url,e.newWindow),i=!0):e.action?(this._bindNamedAction(n,e.action,e.overlaidText),i=!0):e.attachment?(this.#t(n,e.attachment,e.overlaidText,e.attachmentDest),i=!0):e.setOCGState?(this.#n(n,e.setOCGState,e.overlaidText),i=!0):e.dest?(this._bindLink(n,e.dest,e.overlaidText),i=!0):(e.actions&&(e.actions.Action||e.actions["Mouse Up"]||e.actions["Mouse Down"])&&this.enableScripting&&this.hasJSActions&&(this._bindJSAction(n,e),i=!0),e.resetForm?(this._bindResetFormAction(n,e.resetForm),i=!0):this.isTooltipOnly&&!i&&(this._bindLink(n,""),i=!0)),this.container.classList.add("linkAnnotation"),i&&this.container.append(n),this.container}#e(){this.container.setAttribute("data-internal-link","")}_bindLink(e,t,n=""){e.href=this.linkService.getDestinationHash(t),e.onclick=()=>(t&&this.linkService.goToDestination(t),!1),(t||t==="")&&this.#e(),n&&(e.title=n)}_bindNamedAction(e,t,n=""){e.href=this.linkService.getAnchorUrl(""),e.onclick=()=>(this.linkService.executeNamedAction(t),!1),n&&(e.title=n),this.#e()}#t(e,t,n="",i=null){e.href=this.linkService.getAnchorUrl(""),t.description?e.title=t.description:n&&(e.title=n),e.onclick=()=>(this.downloadManager?.openOrDownloadData(t.content,t.filename,i),!1),this.#e()}#n(e,t,n=""){e.href=this.linkService.getAnchorUrl(""),e.onclick=()=>(this.linkService.executeSetOCGState(t),!1),n&&(e.title=n),this.#e()}_bindJSAction(e,t){e.href=this.linkService.getAnchorUrl("");let n=new Map([["Action","onclick"],["Mouse Up","onmouseup"],["Mouse Down","onmousedown"]]);for(let i of Object.keys(t.actions)){let a=n.get(i);a&&(e[a]=()=>(this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t.id,name:i}}),!1))}t.overlaidText&&(e.title=t.overlaidText),e.onclick||(e.onclick=()=>!1),this.#e()}_bindResetFormAction(e,t){let n=e.onclick;if(n||(e.href=this.linkService.getAnchorUrl("")),this.#e(),!this._fieldObjects){Ne('_bindResetFormAction - "resetForm" action not supported, ensure that the `fieldObjects` parameter is provided.'),n||(e.onclick=()=>!1);return}e.onclick=()=>{n?.();let{fields:i,refs:a,include:s}=t,o=[];if(i.length!==0||a.length!==0){let h=new Set(a);for(let f of i){let d=this._fieldObjects[f]||[];for(let{id:p}of d)h.add(p)}for(let f of Object.values(this._fieldObjects))for(let d of f)h.has(d.id)===s&&o.push(d)}else for(let h of Object.values(this._fieldObjects))o.push(...h);let c=this.annotationStorage,u=[];for(let h of o){let{id:f}=h;switch(u.push(f),h.type){case"text":{let p=h.defaultValue||"";c.setValue(f,{value:p});break}case"checkbox":case"radiobutton":{let p=h.defaultValue===h.exportValues;c.setValue(f,{value:p});break}case"combobox":case"listbox":{let p=h.defaultValue||"";c.setValue(f,{value:p});break}default:continue}let d=document.querySelector(`[data-element-id="${f}"]`);if(d){if(!$i.has(d)){Ne(`_bindResetFormAction - element not allowed: ${f}`);continue}}else continue;d.dispatchEvent(new Event("resetform"))}return this.enableScripting&&this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:"app",ids:u,name:"ResetForm"}}),!1}}},r0=class extends Dt{constructor(e){super(e,{isRenderable:!0})}render(){this.container.classList.add("textAnnotation");let e=document.createElement("img");return e.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",e.setAttribute("data-l10n-id","pdfjs-text-annotation-type"),e.setAttribute("data-l10n-args",JSON.stringify({type:this.data.name})),!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.append(e),this.container}},$n=class extends Dt{render(){return this.container}showElementAndHideCanvas(e){this.data.hasOwnCanvas&&(e.previousSibling?.nodeName==="CANVAS"&&(e.previousSibling.hidden=!0),e.hidden=!1)}_getKeyModifier(e){return Mt.platform.isMac?e.metaKey:e.ctrlKey}_setEventListener(e,t,n,i,a){n.includes("mouse")?e.addEventListener(n,s=>{this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:i,value:a(s),shift:s.shiftKey,modifier:this._getKeyModifier(s)}})}):e.addEventListener(n,s=>{if(n==="blur"){if(!t.focused||!s.relatedTarget)return;t.focused=!1}else if(n==="focus"){if(t.focused)return;t.focused=!0}a&&this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:i,value:a(s)}})})}_setEventListeners(e,t,n,i){for(let[a,s]of n)(s==="Action"||this.data.actions?.[s])&&((s==="Focus"||s==="Blur")&&(t||={focused:!1}),this._setEventListener(e,t,a,s,i),s==="Focus"&&!this.data.actions?.Blur?this._setEventListener(e,t,"blur","Blur",null):s==="Blur"&&!this.data.actions?.Focus&&this._setEventListener(e,t,"focus","Focus",null))}_setBackgroundColor(e){let t=this.data.backgroundColor||null;e.style.backgroundColor=t===null?"transparent":Re.makeHexColor(t[0],t[1],t[2])}_setTextStyle(e){let t=["left","center","right"],{fontColor:n}=this.data.defaultAppearanceData,i=this.data.defaultAppearanceData.fontSize||SS,a=e.style,s,o=2,c=u=>Math.round(10*u)/10;if(this.data.multiLine){let u=Math.abs(this.data.rect[3]-this.data.rect[1]-o),h=Math.round(u/(Sl*i))||1,f=u/h;s=Math.min(i,c(f/Sl))}else{let u=Math.abs(this.data.rect[3]-this.data.rect[1]-o);s=Math.min(i,c(u/Sl))}a.fontSize=`calc(${s}px * var(--total-scale-factor))`,a.color=Re.makeHexColor(n[0],n[1],n[2]),this.data.textAlignment!==null&&(a.textAlign=t[this.data.textAlignment])}_setRequired(e,t){t?e.setAttribute("required",!0):e.removeAttribute("required"),e.setAttribute("aria-required",t)}},n0=class extends $n{constructor(e){let t=e.renderForms||e.data.hasOwnCanvas||!e.data.hasAppearance&&!!e.data.fieldValue;super(e,{isRenderable:t})}setPropertyOnSiblings(e,t,n,i){let a=this.annotationStorage;for(let s of this._getElementsByName(e.name,e.id))s.domElement&&(s.domElement[t]=n),a.setValue(s.id,{[i]:n})}render(){let e=this.annotationStorage,t=this.data.id;this.container.classList.add("textWidgetAnnotation");let n=null;if(this.renderForms){let i=e.getValue(t,{value:this.data.fieldValue}),a=i.value||"",s=e.getValue(t,{charLimit:this.data.maxLen}).charLimit;s&&a.length>s&&(a=a.slice(0,s));let o=i.formattedValue||this.data.textContent?.join(`
|
|
225
225
|
`)||null;o&&this.data.comb&&(o=o.replaceAll(/\s+/g,""));let c={userValue:a,formattedValue:o,lastCommittedValue:null,commitKey:1,focused:!1};this.data.multiLine?(n=document.createElement("textarea"),n.textContent=o??a,this.data.doNotScroll&&(n.style.overflowY="hidden")):(n=document.createElement("input"),n.type=this.data.password?"password":"text",n.setAttribute("value",o??a),this.data.doNotScroll&&(n.style.overflowX="hidden")),this.data.hasOwnCanvas&&(n.hidden=!0),$i.add(n),n.setAttribute("data-element-id",t),n.disabled=this.data.readOnly,n.name=this.data.fieldName,n.tabIndex=0;let{datetimeFormat:u,datetimeType:h,timeStep:f}=this.data,d=!!h&&this.enableScripting;u&&(n.title=u),this._setRequired(n,this.data.required),s&&(n.maxLength=s),n.addEventListener("input",m=>{e.setValue(t,{value:m.target.value}),this.setPropertyOnSiblings(n,"value",m.target.value,"value"),c.formattedValue=null}),n.addEventListener("resetform",m=>{let g=this.data.defaultFieldValue??"";n.value=c.userValue=g,c.formattedValue=null});let p=m=>{let{formattedValue:g}=c;g!=null&&(m.target.value=g),m.target.scrollLeft=0};if(this.enableScripting&&this.hasJSActions){n.addEventListener("focus",g=>{if(c.focused)return;let{target:x}=g;if(d&&(x.type=h,f&&(x.step=f)),c.userValue){let y=c.userValue;if(d)if(h==="time"){let b=new Date(y),v=[b.getHours(),b.getMinutes(),b.getSeconds()];x.value=v.map(_=>_.toString().padStart(2,"0")).join(":")}else x.value=new Date(y-CS).toISOString().split(h==="date"?"T":".",1)[0];else x.value=y}c.lastCommittedValue=x.value,c.commitKey=1,this.data.actions?.Focus||(c.focused=!0)}),n.addEventListener("updatefromsandbox",g=>{this.showElementAndHideCanvas(g.target);let x={value(y){c.userValue=y.detail.value??"",d||e.setValue(t,{value:c.userValue.toString()}),y.target.value=c.userValue},formattedValue(y){let{formattedValue:b}=y.detail;c.formattedValue=b,b!=null&&y.target!==document.activeElement&&(y.target.value=b);let v={formattedValue:b};d&&(v.value=b),e.setValue(t,v)},selRange(y){y.target.setSelectionRange(...y.detail.selRange)},charLimit:y=>{let{charLimit:b}=y.detail,{target:v}=y;if(b===0){v.removeAttribute("maxLength");return}v.setAttribute("maxLength",b);let _=c.userValue;!_||_.length<=b||(_=_.slice(0,b),v.value=c.userValue=_,e.setValue(t,{value:_}),this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:_,willCommit:!0,commitKey:1,selStart:v.selectionStart,selEnd:v.selectionEnd}}))}};this._dispatchEventFromSandbox(x,g)}),n.addEventListener("keydown",g=>{c.commitKey=1;let x=-1;if(g.key==="Escape"?x=0:g.key==="Enter"&&!this.data.multiLine?x=2:g.key==="Tab"&&(c.commitKey=3),x===-1)return;let{value:y}=g.target;c.lastCommittedValue!==y&&(c.lastCommittedValue=y,c.userValue=y,this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:y,willCommit:!0,commitKey:x,selStart:g.target.selectionStart,selEnd:g.target.selectionEnd}}))});let m=p;p=null,n.addEventListener("blur",g=>{if(!c.focused||!g.relatedTarget)return;this.data.actions?.Blur||(c.focused=!1);let{target:x}=g,{value:y}=x;if(d){if(y&&h==="time"){let b=y.split(":").map(v=>parseInt(v,10));y=new Date(2e3,0,1,b[0],b[1],b[2]||0).valueOf(),x.step=""}else y.includes("T")||(y=`${y}T00:00`),y=new Date(y).valueOf();x.type="text"}c.userValue=y,c.lastCommittedValue!==y&&this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:y,willCommit:!0,commitKey:c.commitKey,selStart:g.target.selectionStart,selEnd:g.target.selectionEnd}}),m(g)}),this.data.actions?.Keystroke&&n.addEventListener("beforeinput",g=>{c.lastCommittedValue=null;let{data:x,target:y}=g,{value:b,selectionStart:v,selectionEnd:_}=y,A=v,E=_;switch(g.inputType){case"deleteWordBackward":{let T=b.substring(0,v).match(/\w*[^\w]*$/);T&&(A-=T[0].length);break}case"deleteWordForward":{let T=b.substring(v).match(/^[^\w]*\w*/);T&&(E+=T[0].length);break}case"deleteContentBackward":v===_&&(A-=1);break;case"deleteContentForward":v===_&&(E+=1);break}g.preventDefault(),this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:b,change:x||"",willCommit:!1,selStart:A,selEnd:E}})}),this._setEventListeners(n,c,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],g=>g.target.value)}if(p&&n.addEventListener("blur",p),this.data.comb){let g=(this.data.rect[2]-this.data.rect[0])/s;n.classList.add("comb"),n.style.letterSpacing=`calc(${g}px * var(--total-scale-factor) - 1ch)`}}else n=document.createElement("div"),n.textContent=this.data.fieldValue,n.style.verticalAlign="middle",n.style.display="table-cell",this.data.hasOwnCanvas&&(n.hidden=!0);return this._setTextStyle(n),this._setBackgroundColor(n),this._setDefaultPropertiesFromJS(n),this.container.append(n),this.container}},i0=class extends $n{constructor(e){super(e,{isRenderable:!!e.data.hasOwnCanvas})}},a0=class extends $n{constructor(e){super(e,{isRenderable:e.renderForms})}render(){let e=this.annotationStorage,t=this.data,n=t.id,i=e.getValue(n,{value:t.exportValue===t.fieldValue}).value;typeof i=="string"&&(i=i!=="Off",e.setValue(n,{value:i})),this.container.classList.add("buttonWidgetAnnotation","checkBox");let a=document.createElement("input");return $i.add(a),a.setAttribute("data-element-id",n),a.disabled=t.readOnly,this._setRequired(a,this.data.required),a.type="checkbox",a.name=t.fieldName,i&&a.setAttribute("checked",!0),a.setAttribute("exportValue",t.exportValue),a.tabIndex=0,a.addEventListener("change",s=>{let{name:o,checked:c}=s.target;for(let u of this._getElementsByName(o,n)){let h=c&&u.exportValue===t.exportValue;u.domElement&&(u.domElement.checked=h),e.setValue(u.id,{value:h})}e.setValue(n,{value:c})}),a.addEventListener("resetform",s=>{let o=t.defaultFieldValue||"Off";s.target.checked=o===t.exportValue}),this.enableScripting&&this.hasJSActions&&(a.addEventListener("updatefromsandbox",s=>{let o={value(c){c.target.checked=c.detail.value!=="Off",e.setValue(n,{value:c.target.checked})}};this._dispatchEventFromSandbox(o,s)}),this._setEventListeners(a,null,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],s=>s.target.checked)),this._setBackgroundColor(a),this._setDefaultPropertiesFromJS(a),this.container.append(a),this.container}},eu=class extends $n{constructor(e){super(e,{isRenderable:e.renderForms})}render(){this.container.classList.add("buttonWidgetAnnotation","radioButton");let e=this.annotationStorage,t=this.data,n=t.id,i=e.getValue(n,{value:t.fieldValue===t.buttonValue}).value;if(typeof i=="string"&&(i=i!==t.buttonValue,e.setValue(n,{value:i})),i)for(let s of this._getElementsByName(t.fieldName,n))e.setValue(s.id,{value:!1});let a=document.createElement("input");if($i.add(a),a.setAttribute("data-element-id",n),a.disabled=t.readOnly,this._setRequired(a,this.data.required),a.type="radio",a.name=t.fieldName,i&&a.setAttribute("checked",!0),a.tabIndex=0,a.addEventListener("change",s=>{let{name:o,checked:c}=s.target;for(let u of this._getElementsByName(o,n))e.setValue(u.id,{value:!1});e.setValue(n,{value:c})}),a.addEventListener("resetform",s=>{let o=t.defaultFieldValue;s.target.checked=o!=null&&o===t.buttonValue}),this.enableScripting&&this.hasJSActions){let s=t.buttonValue;a.addEventListener("updatefromsandbox",o=>{let c={value:u=>{let h=s===u.detail.value;for(let f of this._getElementsByName(u.target.name)){let d=h&&f.id===n;f.domElement&&(f.domElement.checked=d),e.setValue(f.id,{value:d})}}};this._dispatchEventFromSandbox(c,o)}),this._setEventListeners(a,null,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],o=>o.target.checked)}return this._setBackgroundColor(a),this._setDefaultPropertiesFromJS(a),this.container.append(a),this.container}},s0=class extends mo{constructor(e){super(e,{ignoreBorder:e.data.hasAppearance})}render(){let e=super.render();e.classList.add("buttonWidgetAnnotation","pushButton");let t=e.lastChild;return this.enableScripting&&this.hasJSActions&&t&&(this._setDefaultPropertiesFromJS(t),t.addEventListener("updatefromsandbox",n=>{this._dispatchEventFromSandbox({},n)})),e}},o0=class extends $n{constructor(e){super(e,{isRenderable:e.renderForms})}render(){this.container.classList.add("choiceWidgetAnnotation");let e=this.annotationStorage,t=this.data.id,n=e.getValue(t,{value:this.data.fieldValue}),i=document.createElement("select");$i.add(i),i.setAttribute("data-element-id",t),i.disabled=this.data.readOnly,this._setRequired(i,this.data.required),i.name=this.data.fieldName,i.tabIndex=0;let a=this.data.combo&&this.data.options.length>0;this.data.combo||(i.size=this.data.options.length,this.data.multiSelect&&(i.multiple=!0)),i.addEventListener("resetform",h=>{let f=this.data.defaultFieldValue;for(let d of i.options)d.selected=d.value===f});for(let h of this.data.options){let f=document.createElement("option");f.textContent=h.displayValue,f.value=h.exportValue,n.value.includes(h.exportValue)&&(f.setAttribute("selected",!0),a=!1),i.append(f)}let s=null;if(a){let h=document.createElement("option");h.value=" ",h.setAttribute("hidden",!0),h.setAttribute("selected",!0),i.prepend(h),s=()=>{h.remove(),i.removeEventListener("input",s),s=null},i.addEventListener("input",s)}let o=h=>{let f=h?"value":"textContent",{options:d,multiple:p}=i;return p?Array.prototype.filter.call(d,m=>m.selected).map(m=>m[f]):d.selectedIndex===-1?null:d[d.selectedIndex][f]},c=o(!1),u=h=>{let f=h.target.options;return Array.prototype.map.call(f,d=>({displayValue:d.textContent,exportValue:d.value}))};return this.enableScripting&&this.hasJSActions?(i.addEventListener("updatefromsandbox",h=>{let f={value(d){s?.();let p=d.detail.value,m=new Set(Array.isArray(p)?p:[p]);for(let g of i.options)g.selected=m.has(g.value);e.setValue(t,{value:o(!0)}),c=o(!1)},multipleSelection(d){i.multiple=!0},remove(d){let p=i.options,m=d.detail.remove;p[m].selected=!1,i.remove(m),p.length>0&&Array.prototype.findIndex.call(p,x=>x.selected)===-1&&(p[0].selected=!0),e.setValue(t,{value:o(!0),items:u(d)}),c=o(!1)},clear(d){for(;i.length!==0;)i.remove(0);e.setValue(t,{value:null,items:[]}),c=o(!1)},insert(d){let{index:p,displayValue:m,exportValue:g}=d.detail.insert,x=i.children[p],y=document.createElement("option");y.textContent=m,y.value=g,x?x.before(y):i.append(y),e.setValue(t,{value:o(!0),items:u(d)}),c=o(!1)},items(d){let{items:p}=d.detail;for(;i.length!==0;)i.remove(0);for(let m of p){let{displayValue:g,exportValue:x}=m,y=document.createElement("option");y.textContent=g,y.value=x,i.append(y)}i.options.length>0&&(i.options[0].selected=!0),e.setValue(t,{value:o(!0),items:u(d)}),c=o(!1)},indices(d){let p=new Set(d.detail.indices);for(let m of d.target.options)m.selected=p.has(m.index);e.setValue(t,{value:o(!0)}),c=o(!1)},editable(d){d.target.disabled=!d.detail.editable}};this._dispatchEventFromSandbox(f,h)}),i.addEventListener("input",h=>{let f=o(!0),d=o(!1);e.setValue(t,{value:f}),h.preventDefault(),this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:c,change:d,changeEx:f,willCommit:!1,commitKey:1,keyDown:!1}})}),this._setEventListeners(i,null,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"],["input","Action"],["input","Validate"]],h=>h.target.value)):i.addEventListener("input",function(h){e.setValue(t,{value:o(!0)})}),this.data.combo&&this._setTextStyle(i),this._setBackgroundColor(i),this._setDefaultPropertiesFromJS(i),this.container.append(i),this.container}},xo=class extends Dt{constructor(e){let{data:t,elements:n,parent:i}=e,a=!!i._commentManager;if(super(e,{isRenderable:!a&&Dt._hasPopupData(t)}),this.elements=n,a&&Dt._hasPopupData(t)){let s=this.popup=this.#e();for(let o of n)o.popup=s}else this.popup=null}#e(){return new c0({container:this.container,color:this.data.color,titleObj:this.data.titleObj,modificationDate:this.data.modificationDate||this.data.creationDate,contentsObj:this.data.contentsObj,richText:this.data.richText,rect:this.data.rect,parentRect:this.data.parentRect||null,parent:this.parent,elements:this.elements,open:this.data.open,commentManager:this.parent._commentManager})}render(){let{container:e}=this;e.classList.add("popupAnnotation"),e.role="comment";let t=this.popup=this.#e(),n=[];for(let i of this.elements)i.popup=t,i.container.ariaHasPopup="dialog",n.push(i.data.id),i.addHighlightArea();return this.container.setAttribute("aria-controls",n.map(i=>`${k0}${i}`).join(",")),this.container}},c0=class{#e=null;#t=this.#j.bind(this);#n=this.#M.bind(this);#r=this.#R.bind(this);#s=this.#w.bind(this);#i=null;#a=null;#o=null;#l=null;#c=null;#f=null;#h=null;#d=!1;#m=null;#p=null;#u=null;#g=null;#x=null;#y=null;#v=null;#E=null;#D=null;#b=null;#S=!1;#_=null;#T=null;constructor({container:e,color:t,elements:n,titleObj:i,modificationDate:a,contentsObj:s,richText:o,parent:c,rect:u,parentRect:h,open:f,commentManager:d=null}){this.#a=e,this.#D=i,this.#o=s,this.#E=o,this.#f=c,this.#i=t,this.#v=u,this.#h=h,this.#c=n,this.#e=d,this.#_=n[0],this.#l=uo.toDateObject(a),this.trigger=n.flatMap(p=>p.getElementsToTriggerPopup()),d?this.renderCommentButton():(this.#k(),this.#a.hidden=!0,f&&this.#w())}#k(){if(this.#p)return;this.#p=new AbortController;let{signal:e}=this.#p;for(let t of this.trigger)t.addEventListener("click",this.#s,{signal:e}),t.addEventListener("pointerenter",this.#r,{signal:e}),t.addEventListener("pointerleave",this.#n,{signal:e}),t.classList.add("popupTriggerArea");for(let t of this.#c)t.container?.addEventListener("keydown",this.#t,{signal:e})}#C(){let e=this.#c.find(t=>t.hasCommentButton);e&&(this.#x=e._normalizePoint(e.commentButtonPosition))}renderCommentButton(){if(this.#g||(this.#x||this.#C(),!this.#x))return;let{signal:e}=this.#p=new AbortController,t=!!this.#_.extraPopupElement,n=()=>{this.#e.toggleCommentPopup(this,!0,void 0,!t)},i=()=>{this.#e.toggleCommentPopup(this,!1,!0,!t)},a=()=>{this.#e.toggleCommentPopup(this,!1,!1)};if(t){this.#g=this.#_.container;for(let s of this.trigger)s.ariaHasPopup="dialog",s.ariaControls="commentPopup",s.addEventListener("keydown",this.#t,{signal:e}),s.addEventListener("click",n,{signal:e}),s.addEventListener("pointerenter",i,{signal:e}),s.addEventListener("pointerleave",a,{signal:e}),s.classList.add("popupTriggerArea")}else{let s=this.#g=document.createElement("button");s.className="annotationCommentButton";let o=this.#_.container;s.style.zIndex=o.style.zIndex+1,s.tabIndex=0,s.ariaHasPopup="dialog",s.ariaControls="commentPopup",s.setAttribute("data-l10n-id","pdfjs-show-comment-button"),this.#P(),this.#F(),s.addEventListener("keydown",this.#t,{signal:e}),s.addEventListener("click",n,{signal:e}),s.addEventListener("pointerenter",i,{signal:e}),s.addEventListener("pointerleave",a,{signal:e}),o.after(s)}}#F(){if(this.#_.extraPopupElement&&!this.#_.editor)return;this.renderCommentButton();let[e,t]=this.#x,{style:n}=this.#g;n.left=`calc(${e}%)`,n.top=`calc(${t}% - var(--comment-button-dim))`}#P(){this.#_.extraPopupElement||(this.renderCommentButton(),this.#g.style.backgroundColor=this.commentButtonColor||"")}get commentButtonColor(){let{color:e,opacity:t}=this.#_.commentData;return e?this.#f._commentManager.makeCommentColor(e,t):null}focusCommentButton(){setTimeout(()=>{this.#g?.focus()},0)}getData(){let{richText:e,color:t,opacity:n,creationDate:i,modificationDate:a}=this.#_.commentData;return{contentsObj:{str:this.comment},richText:e,color:t,opacity:n,creationDate:i,modificationDate:a}}get elementBeforePopup(){return this.#g}get comment(){return this.#T||=this.#_.commentText,this.#T}set comment(e){e!==this.comment&&(this.#_.commentText=this.#T=e)}get parentBoundingClientRect(){return this.#_.layer.getBoundingClientRect()}setCommentButtonStates({selected:e,hasPopup:t}){this.#g&&(this.#g.classList.toggle("selected",e),this.#g.ariaExpanded=t)}setSelectedCommentButton(e){this.#g.classList.toggle("selected",e)}get commentPopupPosition(){if(this.#y)return this.#y;let{x:e,y:t,height:n}=this.#g.getBoundingClientRect(),{x:i,y:a,width:s,height:o}=this.#_.layer.getBoundingClientRect();return[(e-i)/s,(t+n-a)/o]}set commentPopupPosition(e){this.#y=e}hasDefaultPopupPosition(){return this.#y===null}get commentButtonPosition(){return this.#x}get commentButtonWidth(){return this.#g.getBoundingClientRect().width/this.parentBoundingClientRect.width}editComment(e){let[t,n]=this.#y||this.commentButtonPosition.map(u=>u/100),i=this.parentBoundingClientRect,{x:a,y:s,width:o,height:c}=i;this.#e.showDialog(null,this,a+t*o,s+n*c,{...e,parentDimensions:i})}render(){if(this.#m)return;let e=this.#m=document.createElement("div");if(e.className="popup",this.#i){let n=e.style.outlineColor=Re.makeHexColor(...this.#i);e.style.backgroundColor=`color-mix(in srgb, ${n} 30%, white)`}let t=document.createElement("span");if(t.className="header",this.#D?.str){let n=document.createElement("span");n.className="title",t.append(n),{dir:n.dir,str:n.textContent}=this.#D}if(e.append(t),this.#l){let n=document.createElement("time");n.className="popupDate",n.setAttribute("data-l10n-id","pdfjs-annotation-date-time-string"),n.setAttribute("data-l10n-args",JSON.stringify({dateObj:this.#l.valueOf()})),n.dateTime=this.#l.toISOString(),t.append(n)}lx({html:this.#I||this.#o.str,dir:this.#o?.dir,className:"popupContent"},e),this.#a.append(e)}get#I(){let e=this.#E,t=this.#o;return e?.str&&(!t?.str||t.str===e.str)&&this.#E.html||null}get#O(){return this.#I?.attributes?.style?.fontSize||0}get#L(){return this.#I?.attributes?.style?.color||null}#B(e){let t=[],n={str:e,html:{name:"div",attributes:{dir:"auto"},children:[{name:"p",children:t}]}},i={style:{color:this.#L,fontSize:this.#O?`calc(${this.#O}px * var(--total-scale-factor))`:""}};for(let a of e.split(`
|
|
226
226
|
`))t.push({name:"span",value:a,attributes:i});return n}#j(e){e.altKey||e.shiftKey||e.ctrlKey||e.metaKey||(e.key==="Enter"||e.key==="Escape"&&this.#d)&&this.#w()}updateEdited({rect:e,popup:t,deleted:n}){if(this.#e){n?(this.remove(),this.#T=null):t&&(t.deleted?this.remove():(this.#P(),this.#T=t.text)),e&&(this.#x=null,this.#C(),this.#F());return}if(n||t?.deleted){this.remove();return}this.#k(),this.#b||={contentsObj:this.#o,richText:this.#E},e&&(this.#u=null),t&&t.text&&(this.#E=this.#B(t.text),this.#l=uo.toDateObject(t.date),this.#o=null),this.#m?.remove(),this.#m=null}resetEdited(){this.#b&&({contentsObj:this.#o,richText:this.#E}=this.#b,this.#b=null,this.#m?.remove(),this.#m=null,this.#u=null)}remove(){if(this.#p?.abort(),this.#p=null,this.#m?.remove(),this.#m=null,this.#S=!1,this.#d=!1,this.#g?.remove(),this.#g=null,this.trigger)for(let e of this.trigger)e.classList.remove("popupTriggerArea")}#A(){if(this.#u!==null)return;let{page:{view:e},viewport:{rawDims:{pageWidth:t,pageHeight:n,pageX:i,pageY:a}}}=this.#f,s=!!this.#h,o=s?this.#h:this.#v;for(let m of this.#c)if(!o||Re.intersect(m.data.rect,o)!==null){o=m.data.rect,s=!0;break}let c=Re.normalizeRect([o[0],e[3]-o[1]+e[1],o[2],e[3]-o[3]+e[1]]),h=s?o[2]-o[0]+5:0,f=c[0]+h,d=c[1];this.#u=[100*(f-i)/t,100*(d-a)/n];let{style:p}=this.#a;p.left=`${this.#u[0]}%`,p.top=`${this.#u[1]}%`}#w(){if(this.#e){this.#e.toggleCommentPopup(this,!1);return}this.#d=!this.#d,this.#d?(this.#R(),this.#a.addEventListener("click",this.#s),this.#a.addEventListener("keydown",this.#t)):(this.#M(),this.#a.removeEventListener("click",this.#s),this.#a.removeEventListener("keydown",this.#t))}#R(){this.#m||this.render(),this.isVisible?this.#d&&this.#a.classList.add("focused"):(this.#A(),this.#a.hidden=!1,this.#a.style.zIndex=parseInt(this.#a.style.zIndex)+1e3)}#M(){this.#a.classList.remove("focused"),!(this.#d||!this.isVisible)&&(this.#a.hidden=!0,this.#a.style.zIndex=parseInt(this.#a.style.zIndex)-1e3)}forceHide(){this.#S=this.isVisible,this.#S&&(this.#a.hidden=!0)}maybeShow(){this.#e||(this.#k(),this.#S&&(this.#m||this.#R(),this.#S=!1,this.#a.hidden=!1))}get isVisible(){return this.#e?!1:this.#a.hidden===!1}},tu=class extends Dt{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0}),this.textContent=e.data.textContent,this.textPosition=e.data.textPosition,this.annotationEditorType=Ve.FREETEXT}render(){if(this.container.classList.add("freeTextAnnotation"),this.textContent){let e=document.createElement("div");e.classList.add("annotationTextContent"),e.setAttribute("role","comment");for(let t of this.textContent){let n=document.createElement("span");n.textContent=t,e.append(n)}this.container.append(e)}return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this._editOnDoubleClick(),this.container}},l0=class extends Dt{#e=null;constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0})}render(){this.container.classList.add("lineAnnotation");let{data:e,width:t,height:n}=this,i=this.svgFactory.create(t,n,!0),a=this.#e=this.svgFactory.createElement("svg:line");return a.setAttribute("x1",e.rect[2]-e.lineCoordinates[0]),a.setAttribute("y1",e.rect[3]-e.lineCoordinates[1]),a.setAttribute("x2",e.rect[2]-e.lineCoordinates[2]),a.setAttribute("y2",e.rect[3]-e.lineCoordinates[3]),a.setAttribute("stroke-width",e.borderStyle.width||1),a.setAttribute("stroke","transparent"),a.setAttribute("fill","transparent"),i.append(a),this.container.append(i),!e.popupRef&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return this.#e}addHighlightArea(){this.container.classList.add("highlightArea")}},u0=class extends Dt{#e=null;constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0})}render(){this.container.classList.add("squareAnnotation");let{data:e,width:t,height:n}=this,i=this.svgFactory.create(t,n,!0),a=e.borderStyle.width,s=this.#e=this.svgFactory.createElement("svg:rect");return s.setAttribute("x",a/2),s.setAttribute("y",a/2),s.setAttribute("width",t-a),s.setAttribute("height",n-a),s.setAttribute("stroke-width",a||1),s.setAttribute("stroke","transparent"),s.setAttribute("fill","transparent"),i.append(s),this.container.append(i),!e.popupRef&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return this.#e}addHighlightArea(){this.container.classList.add("highlightArea")}},h0=class extends Dt{#e=null;constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0})}render(){this.container.classList.add("circleAnnotation");let{data:e,width:t,height:n}=this,i=this.svgFactory.create(t,n,!0),a=e.borderStyle.width,s=this.#e=this.svgFactory.createElement("svg:ellipse");return s.setAttribute("cx",t/2),s.setAttribute("cy",n/2),s.setAttribute("rx",t/2-a/2),s.setAttribute("ry",n/2-a/2),s.setAttribute("stroke-width",a||1),s.setAttribute("stroke","transparent"),s.setAttribute("fill","transparent"),i.append(s),this.container.append(i),!e.popupRef&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return this.#e}addHighlightArea(){this.container.classList.add("highlightArea")}},ru=class extends Dt{#e=null;constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0}),this.containerClassName="polylineAnnotation",this.svgElementName="svg:polyline"}render(){this.container.classList.add(this.containerClassName);let{data:{rect:e,vertices:t,borderStyle:n,popupRef:i},width:a,height:s}=this;if(!t)return this.container;let o=this.svgFactory.create(a,s,!0),c=[];for(let h=0,f=t.length;h<f;h+=2){let d=t[h]-e[0],p=e[3]-t[h+1];c.push(`${d},${p}`)}c=c.join(" ");let u=this.#e=this.svgFactory.createElement(this.svgElementName);return u.setAttribute("points",c),u.setAttribute("stroke-width",n.width||1),u.setAttribute("stroke","transparent"),u.setAttribute("fill","transparent"),o.append(u),this.container.append(o),!i&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return this.#e}addHighlightArea(){this.container.classList.add("highlightArea")}},f0=class extends ru{constructor(e){super(e),this.containerClassName="polygonAnnotation",this.svgElementName="svg:polygon"}},d0=class extends Dt{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0})}render(){return this.container.classList.add("caretAnnotation"),!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container}},vo=class extends Dt{#e=null;#t=[];constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0}),this.containerClassName="inkAnnotation",this.svgElementName="svg:polyline",this.annotationEditorType=this.data.it==="InkHighlight"?Ve.HIGHLIGHT:Ve.INK}#n(e,t){switch(e){case 90:return{transform:`rotate(90) translate(${-t[0]},${t[1]}) scale(1,-1)`,width:t[3]-t[1],height:t[2]-t[0]};case 180:return{transform:`rotate(180) translate(${-t[2]},${t[1]}) scale(1,-1)`,width:t[2]-t[0],height:t[3]-t[1]};case 270:return{transform:`rotate(270) translate(${-t[2]},${t[3]}) scale(1,-1)`,width:t[3]-t[1],height:t[2]-t[0]};default:return{transform:`translate(${-t[0]},${t[3]}) scale(1,-1)`,width:t[2]-t[0],height:t[3]-t[1]}}}render(){this.container.classList.add(this.containerClassName);let{data:{rect:e,rotation:t,inkLists:n,borderStyle:i,popupRef:a}}=this,{transform:s,width:o,height:c}=this.#n(t,e),u=this.svgFactory.create(o,c,!0),h=this.#e=this.svgFactory.createElement("svg:g");u.append(h),h.setAttribute("stroke-width",i.width||1),h.setAttribute("stroke-linecap","round"),h.setAttribute("stroke-linejoin","round"),h.setAttribute("stroke-miterlimit",10),h.setAttribute("stroke","transparent"),h.setAttribute("fill","transparent"),h.setAttribute("transform",s);for(let f=0,d=n.length;f<d;f++){let p=this.svgFactory.createElement(this.svgElementName);this.#t.push(p),p.setAttribute("points",n[f].join(",")),h.append(p)}return!a&&this.hasPopupData&&this._createPopup(),this.container.append(u),this._editOnDoubleClick(),this.container}updateEdited(e){super.updateEdited(e);let{thickness:t,points:n,rect:i}=e,a=this.#e;if(t>=0&&a.setAttribute("stroke-width",t||1),n)for(let s=0,o=this.#t.length;s<o;s++)this.#t[s].setAttribute("points",n[s].join(","));if(i){let{transform:s,width:o,height:c}=this.#n(this.data.rotation,i);a.parentElement.setAttribute("viewBox",`0 0 ${o} ${c}`),a.setAttribute("transform",s)}}getElementsToTriggerPopup(){return this.#t}addHighlightArea(){this.container.classList.add("highlightArea")}},nu=class extends Dt{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0}),this.annotationEditorType=Ve.HIGHLIGHT}render(){let{data:{overlaidText:e,popupRef:t}}=this;if(!t&&this.hasPopupData&&this._createPopup(),this.container.classList.add("highlightAnnotation"),this._editOnDoubleClick(),e){let n=document.createElement("mark");n.classList.add("overlaidText"),n.textContent=e,this.container.append(n)}return this.container}},p0=class extends Dt{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0})}render(){let{data:{overlaidText:e,popupRef:t}}=this;if(!t&&this.hasPopupData&&this._createPopup(),this.container.classList.add("underlineAnnotation"),e){let n=document.createElement("u");n.classList.add("overlaidText"),n.textContent=e,this.container.append(n)}return this.container}},g0=class extends Dt{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0})}render(){let{data:{overlaidText:e,popupRef:t}}=this;if(!t&&this.hasPopupData&&this._createPopup(),this.container.classList.add("squigglyAnnotation"),e){let n=document.createElement("u");n.classList.add("overlaidText"),n.textContent=e,this.container.append(n)}return this.container}},m0=class extends Dt{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0})}render(){let{data:{overlaidText:e,popupRef:t}}=this;if(!t&&this.hasPopupData&&this._createPopup(),this.container.classList.add("strikeoutAnnotation"),e){let n=document.createElement("s");n.classList.add("overlaidText"),n.textContent=e,this.container.append(n)}return this.container}},iu=class extends Dt{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0}),this.annotationEditorType=Ve.STAMP}render(){return this.container.classList.add("stampAnnotation"),this.container.setAttribute("role","img"),!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this._editOnDoubleClick(),this.container}},x0=class extends Dt{#e=null;constructor(e){super(e,{isRenderable:!0});let{file:t}=this.data;this.filename=t.filename,this.content=t.content,this.linkService.eventBus?.dispatch("fileattachmentannotation",{source:this,...t})}render(){this.container.classList.add("fileAttachmentAnnotation");let{container:e,data:t}=this,n;t.hasAppearance||t.fillAlpha===0?n=document.createElement("div"):(n=document.createElement("img"),n.src=`${this.imageResourcesPath}annotation-${/paperclip/i.test(t.name)?"paperclip":"pushpin"}.svg`,t.fillAlpha&&t.fillAlpha<1&&(n.style=`filter: opacity(${Math.round(t.fillAlpha*100)}%);`)),n.addEventListener("dblclick",this.#t.bind(this)),this.#e=n;let{isMac:i}=Mt.platform;return e.addEventListener("keydown",a=>{a.key==="Enter"&&(i?a.metaKey:a.ctrlKey)&&this.#t()}),!t.popupRef&&this.hasPopupData?this._createPopup():n.classList.add("popupTriggerArea"),e.append(n),e}getElementsToTriggerPopup(){return this.#e}addHighlightArea(){this.container.classList.add("highlightArea")}#t(){this.downloadManager?.openOrDownloadData(this.content,this.filename)}},v0=class r{#e=null;#t=null;#n=null;#r=new Map;#s=null;#i=null;constructor({div:e,accessibilityManager:t,annotationCanvasMap:n,annotationEditorUIManager:i,page:a,viewport:s,structTreeLayer:o,commentManager:c,linkService:u,annotationStorage:h}){this.div=e,this.#e=t,this.#t=n,this.#s=o||null,this.#i=u||null,this.#n=h||new ho,this.page=a,this.viewport=s,this.zIndex=0,this._annotationEditorUIManager=i,this._commentManager=c||null}hasEditableAnnotations(){return this.#r.size>0}async#a(e,t,n){let i=e.firstChild||e,a=i.id=`${k0}${t}`,s=await this.#s?.getAriaAttributes(a);if(s)for(let[o,c]of s)i.setAttribute(o,c);n?n.at(-1).container.after(e):(this.div.append(e),this.#e?.moveElementInDOM(this.div,e,i,!1))}async render(e){let{annotations:t}=e,n=this.div;ji(n,this.viewport);let i=new Map,a={data:null,layer:n,linkService:this.#i,downloadManager:e.downloadManager,imageResourcesPath:e.imageResourcesPath||"",renderForms:e.renderForms!==!1,svgFactory:new Va,annotationStorage:this.#n,enableComment:e.enableComment===!0,enableScripting:e.enableScripting===!0,hasJSActions:e.hasJSActions,fieldObjects:e.fieldObjects,parent:this,elements:null};for(let s of t){if(s.noHTML)continue;let o=s.annotationType===Rt.POPUP;if(o){let h=i.get(s.id);if(!h)continue;a.elements=h}else if(s.rect[2]===s.rect[0]||s.rect[3]===s.rect[1])continue;a.data=s;let c=Ql.create(a);if(!c.isRenderable)continue;if(!o&&s.popupRef){let h=i.get(s.popupRef);h?h.push(c):i.set(s.popupRef,[c])}let u=c.render();s.hidden&&(u.style.visibility="hidden"),await this.#a(u,s.id,a.elements),c.extraPopupElement?.popup?.renderCommentButton(),c._isEditable&&(this.#r.set(c.data.id,c),this._annotationEditorUIManager?.renderAnnotationElement(c))}this.#o()}async addLinkAnnotations(e){let t={data:null,layer:this.div,linkService:this.#i,svgFactory:new Va,parent:this};for(let n of e){n.borderStyle||=r._defaultBorderStyle,t.data=n;let i=Ql.create(t);if(!i.isRenderable)continue;let a=i.render();await this.#a(a,n.id,null)}}update({viewport:e}){let t=this.div;this.viewport=e,ji(t,{rotation:e.rotation}),this.#o(),t.hidden=!1}#o(){if(!this.#t)return;let e=this.div;for(let[t,n]of this.#t){let i=e.querySelector(`[data-annotation-id="${t}"]`);if(!i)continue;n.className="annotationContent";let{firstChild:a}=i;a?a.nodeName==="CANVAS"?a.replaceWith(n):a.classList.contains("annotationContent")?a.after(n):a.before(n):i.append(n);let s=this.#r.get(t);s&&(s._hasNoCanvas?(this._annotationEditorUIManager?.setMissingCanvas(t,i.id,n),s._hasNoCanvas=!1):s.canvas=n)}this.#t.clear()}getEditableAnnotations(){return Array.from(this.#r.values())}getEditableAnnotation(e){return this.#r.get(e)}addFakeAnnotation(e){let{div:t}=this,{id:n,rotation:i}=e,a=new t0({data:{id:n,rect:e.getPDFRect(),rotation:i},editor:e,layer:t,parent:this,enableComment:!!this._commentManager,linkService:this.#i,annotationStorage:this.#n}),s=a.render();return t.append(s),this.#e?.moveElementInDOM(t,s,s,!1),a.createOrUpdatePopup(),a}static get _defaultBorderStyle(){return Ge(this,"_defaultBorderStyle",Object.freeze({width:1,rawWidth:1,style:Na.SOLID,dashArray:[3],horizontalCornerRadius:0,verticalCornerRadius:0}))}},El=/\r\n?|\n/g,y0=class r extends gt{#e="";#t=`${this.id}-editor`;#n=null;#r;_colorPicker=null;static _freeTextDefaultContent="";static _internalPadding=0;static _defaultColor=null;static _defaultFontSize=10;static get _keyboardManager(){let e=r.prototype,t=a=>a.isEmpty(),n=Xi.TRANSLATE_SMALL,i=Xi.TRANSLATE_BIG;return Ge(this,"_keyboardManager",new Gi([[["ctrl+s","mac+meta+s","ctrl+p","mac+meta+p"],e.commitOrRemove,{bubbles:!0}],[["ctrl+Enter","mac+meta+Enter","Escape","mac+Escape"],e.commitOrRemove],[["ArrowLeft","mac+ArrowLeft"],e._translateEmpty,{args:[-n,0],checker:t}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],e._translateEmpty,{args:[-i,0],checker:t}],[["ArrowRight","mac+ArrowRight"],e._translateEmpty,{args:[n,0],checker:t}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],e._translateEmpty,{args:[i,0],checker:t}],[["ArrowUp","mac+ArrowUp"],e._translateEmpty,{args:[0,-n],checker:t}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],e._translateEmpty,{args:[0,-i],checker:t}],[["ArrowDown","mac+ArrowDown"],e._translateEmpty,{args:[0,n],checker:t}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],e._translateEmpty,{args:[0,i],checker:t}]]))}static _type="freetext";static _editorType=Ve.FREETEXT;constructor(e){super({...e,name:"freeTextEditor"}),this.color=e.color||r._defaultColor||gt._defaultLineColor,this.#r=e.fontSize||r._defaultFontSize,this.annotationElementId||this._uiManager.a11yAlert("pdfjs-editor-freetext-added-alert")}static initialize(e,t){gt.initialize(e,t);let n=getComputedStyle(document.documentElement);this._internalPadding=parseFloat(n.getPropertyValue("--freetext-padding"))}static updateDefaultParams(e,t){switch(e){case qe.FREETEXT_SIZE:r._defaultFontSize=t;break;case qe.FREETEXT_COLOR:r._defaultColor=t;break}}updateParams(e,t){switch(e){case qe.FREETEXT_SIZE:this.#s(t);break;case qe.FREETEXT_COLOR:this.#i(t);break}}static get defaultPropertiesToUpdate(){return[[qe.FREETEXT_SIZE,r._defaultFontSize],[qe.FREETEXT_COLOR,r._defaultColor||gt._defaultLineColor]]}get propertiesToUpdate(){return[[qe.FREETEXT_SIZE,this.#r],[qe.FREETEXT_COLOR,this.color]]}get toolbarButtons(){return this._colorPicker||=new Zl(this),[["colorPicker",this._colorPicker]]}get colorType(){return qe.FREETEXT_COLOR}#s(e){let t=i=>{this.editorDiv.style.fontSize=`calc(${i}px * var(--total-scale-factor))`,this.translate(0,-(i-this.#r)*this.parentScale),this.#r=i,this.#o()},n=this.#r;this.addCommands({cmd:t.bind(this,e),undo:t.bind(this,n),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:qe.FREETEXT_SIZE,overwriteIfSameType:!0,keepUndo:!0})}onUpdatedColor(){this.editorDiv.style.color=this.color,this._colorPicker?.update(this.color),super.onUpdatedColor()}#i(e){let t=i=>{this.color=i,this.onUpdatedColor()},n=this.color;this.addCommands({cmd:t.bind(this,e),undo:t.bind(this,n),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:qe.FREETEXT_COLOR,overwriteIfSameType:!0,keepUndo:!0})}_translateEmpty(e,t){this._uiManager.translateSelectedEditors(e,t,!0)}getInitialTranslation(){let e=this.parentScale;return[-r._internalPadding*e,-(r._internalPadding+this.#r)*e]}rebuild(){this.parent&&(super.rebuild(),this.div!==null&&(this.isAttachedToDOM||this.parent.add(this)))}enableEditMode(){if(!super.enableEditMode())return!1;this.overlayDiv.classList.remove("enabled"),this.editorDiv.contentEditable=!0,this._isDraggable=!1,this.div.removeAttribute("aria-activedescendant"),this.#n=new AbortController;let e=this._uiManager.combinedSignal(this.#n);return this.editorDiv.addEventListener("keydown",this.editorDivKeydown.bind(this),{signal:e}),this.editorDiv.addEventListener("focus",this.editorDivFocus.bind(this),{signal:e}),this.editorDiv.addEventListener("blur",this.editorDivBlur.bind(this),{signal:e}),this.editorDiv.addEventListener("input",this.editorDivInput.bind(this),{signal:e}),this.editorDiv.addEventListener("paste",this.editorDivPaste.bind(this),{signal:e}),!0}disableEditMode(){return super.disableEditMode()?(this.overlayDiv.classList.add("enabled"),this.editorDiv.contentEditable=!1,this.div.setAttribute("aria-activedescendant",this.#t),this._isDraggable=!0,this.#n?.abort(),this.#n=null,this.div.focus({preventScroll:!0}),this.isEditing=!1,this.parent.div.classList.add("freetextEditing"),!0):!1}focusin(e){this._focusEventsAllowed&&(super.focusin(e),e.target!==this.editorDiv&&this.editorDiv.focus())}onceAdded(e){this.width||(this.enableEditMode(),e&&this.editorDiv.focus(),this._initialOptions?.isCentered&&this.center(),this._initialOptions=null)}isEmpty(){return!this.editorDiv||this.editorDiv.innerText.trim()===""}remove(){this.isEditing=!1,this.parent&&(this.parent.setEditingState(!0),this.parent.div.classList.add("freetextEditing")),super.remove()}#a(){let e=[];this.editorDiv.normalize();let t=null;for(let n of this.editorDiv.childNodes)t?.nodeType===Node.TEXT_NODE&&n.nodeName==="BR"||(e.push(r.#l(n)),t=n);return e.join(`
|
|
227
227
|
`)}#o(){let[e,t]=this.parentDimensions,n;if(this.isAttachedToDOM)n=this.div.getBoundingClientRect();else{let{currentLayer:i,div:a}=this,s=a.style.display,o=a.classList.contains("hidden");a.classList.remove("hidden"),a.style.display="hidden",i.div.append(this.div),n=a.getBoundingClientRect(),a.remove(),a.style.display=s,a.classList.toggle("hidden",o)}this.rotation%180===this.parentRotation%180?(this.width=n.width/e,this.height=n.height/t):(this.width=n.height/e,this.height=n.width/t),this.fixAndSetPosition()}commit(){if(!this.isInEditMode())return;super.commit(),this.disableEditMode();let e=this.#e,t=this.#e=this.#a().trimEnd();if(e===t)return;let n=i=>{if(this.#e=i,!i){this.remove();return}this.#c(),this._uiManager.rebuild(this),this.#o()};this.addCommands({cmd:()=>{n(t)},undo:()=>{n(e)},mustExec:!1}),this.#o()}shouldGetKeyboardEvents(){return this.isInEditMode()}enterInEditMode(){this.enableEditMode(),this.editorDiv.focus()}keydown(e){e.target===this.div&&e.key==="Enter"&&(this.enterInEditMode(),e.preventDefault())}editorDivKeydown(e){r._keyboardManager.exec(this,e)}editorDivFocus(e){this.isEditing=!0}editorDivBlur(e){this.isEditing=!1}editorDivInput(e){this.parent.div.classList.toggle("freetextEditing",this.isEmpty())}disableEditing(){this.editorDiv.setAttribute("role","comment"),this.editorDiv.removeAttribute("aria-multiline")}enableEditing(){this.editorDiv.setAttribute("role","textbox"),this.editorDiv.setAttribute("aria-multiline",!0)}get canChangeContent(){return!0}render(){if(this.div)return this.div;let e,t;(this._isCopy||this.annotationElementId)&&(e=this.x,t=this.y),super.render(),this.editorDiv=document.createElement("div"),this.editorDiv.className="internal",this.editorDiv.setAttribute("id",this.#t),this.editorDiv.setAttribute("data-l10n-id","pdfjs-free-text2"),this.editorDiv.setAttribute("data-l10n-attrs","default-content"),this.enableEditing(),this.editorDiv.contentEditable=!0;let{style:n}=this.editorDiv;if(n.fontSize=`calc(${this.#r}px * var(--total-scale-factor))`,n.color=this.color,this.div.append(this.editorDiv),this.overlayDiv=document.createElement("div"),this.overlayDiv.classList.add("overlay","enabled"),this.div.append(this.overlayDiv),this._isCopy||this.annotationElementId){let[i,a]=this.parentDimensions;if(this.annotationElementId){let{position:s}=this._initialData,[o,c]=this.getInitialTranslation();[o,c]=this.pageTranslationToScreen(o,c);let[u,h]=this.pageDimensions,[f,d]=this.pageTranslation,p,m;switch(this.rotation){case 0:p=e+(s[0]-f)/u,m=t+this.height-(s[1]-d)/h;break;case 90:p=e+(s[0]-f)/u,m=t-(s[1]-d)/h,[o,c]=[c,-o];break;case 180:p=e-this.width+(s[0]-f)/u,m=t-(s[1]-d)/h,[o,c]=[-o,-c];break;case 270:p=e+(s[0]-f-this.height*h)/u,m=t+(s[1]-d-this.width*u)/h,[o,c]=[-c,o];break}this.setAt(p*i,m*a,o,c)}else this._moveAfterPaste(e,t);this.#c(),this._isDraggable=!0,this.editorDiv.contentEditable=!1}else this._isDraggable=!1,this.editorDiv.contentEditable=!0;return this.div}static#l(e){return(e.nodeType===Node.TEXT_NODE?e.nodeValue:e.innerText).replaceAll(El,"")}editorDivPaste(e){let t=e.clipboardData||window.clipboardData,{types:n}=t;if(n.length===1&&n[0]==="text/plain")return;e.preventDefault();let i=r.#h(t.getData("text")||"").replaceAll(El,`
|
|
@@ -268,7 +268,7 @@ Character number: `+r.characterNumber};ba.prototype.lineNumber=function(){return
|
|
|
268
268
|
`),t=rt(e.replace(/<[^>]*>/g,""));return[t]}var PT={day:["d","dd"],month:["m","mm"],year:["y","yy"],hours:["h","hh"],minutes:["m","mm"],seconds:["s","ss"],"am-pm":["A/P","AM/PM"],"day-of-week":["ddd","dddd"],era:["e","ee"],quarter:["\\Qm",'m\\"th quarter"']};function pA(r,e){var t=e||{};Lt!=null&&t.dense==null&&(t.dense=Lt);var n=h1(r),i=[],a,s,o={name:""},c="",u=0,h,f,d={},p=[],m=t.dense?[]:{},g,x,y={value:""},b="",v=0,_,A=[],E=-1,T=-1,S={s:{r:1e6,c:1e7},e:{r:0,c:0}},C=0,F={},k=[],D={},B=0,q=0,j=[],U=1,O=1,P=[],R={Names:[]},N={},z=["",""],I=[],H={},Z="",re=0,ee=!1,ie=!1,se=0;for(nl.lastIndex=0,n=n.replace(/<!--([\s\S]*?)-->/mg,"").replace(/<!DOCTYPE[^\[]*\[[^\]]*\]>/gm,"");g=nl.exec(n);)switch(g[3]=g[3].replace(/_.*$/,"")){case"table":case"\u5DE5\u4F5C\u8868":g[1]==="/"?(S.e.c>=S.s.c&&S.e.r>=S.s.r?m["!ref"]=Qe(S):m["!ref"]="A1:A1",t.sheetRows>0&&t.sheetRows<=S.e.r&&(m["!fullref"]=m["!ref"],S.e.r=t.sheetRows-1,m["!ref"]=Qe(S)),k.length&&(m["!merges"]=k),j.length&&(m["!rows"]=j),h.name=h.\u540D\u79F0||h.name,typeof JSON<"u"&&JSON.stringify(h),p.push(h.name),d[h.name]=m,ie=!1):g[0].charAt(g[0].length-2)!=="/"&&(h=Pe(g[0],!1),E=T=-1,S.s.r=S.s.c=1e7,S.e.r=S.e.c=0,m=t.dense?[]:{},k=[],j=[],ie=!0);break;case"table-row-group":g[1]==="/"?--C:++C;break;case"table-row":case"\u884C":if(g[1]==="/"){E+=U,U=1;break}if(f=Pe(g[0],!1),f.\u884C\u53F7?E=f.\u884C\u53F7-1:E==-1&&(E=0),U=+f["number-rows-repeated"]||1,U<10)for(se=0;se<U;++se)C>0&&(j[E+se]={level:C});T=-1;break;case"covered-table-cell":g[1]!=="/"&&++T,t.sheetStubs&&(t.dense?(m[E]||(m[E]=[]),m[E][T]={t:"z"}):m[He({r:E,c:T})]={t:"z"}),b="",A=[];break;case"table-cell":case"\u6570\u636E":if(g[0].charAt(g[0].length-2)==="/")++T,y=Pe(g[0],!1),O=parseInt(y["number-columns-repeated"]||"1",10),x={t:"z",v:null},y.formula&&t.cellFormula!=!1&&(x.f=UT(rt(y.formula))),(y.\u6570\u636E\u7C7B\u578B||y["value-type"])=="string"&&(x.t="s",x.v=rt(y["string-value"]||""),t.dense?(m[E]||(m[E]=[]),m[E][T]=x):m[He({r:E,c:T})]=x),T+=O-1;else if(g[1]!=="/"){++T,b="",v=0,A=[],O=1;var de=U?E+U-1:E;if(T>S.e.c&&(S.e.c=T),T<S.s.c&&(S.s.c=T),E<S.s.r&&(S.s.r=E),de>S.e.r&&(S.e.r=de),y=Pe(g[0],!1),I=[],H={},x={t:y.\u6570\u636E\u7C7B\u578B||y["value-type"],v:null},t.cellFormula)if(y.formula&&(y.formula=rt(y.formula)),y["number-matrix-columns-spanned"]&&y["number-matrix-rows-spanned"]&&(B=parseInt(y["number-matrix-rows-spanned"],10)||0,q=parseInt(y["number-matrix-columns-spanned"],10)||0,D={s:{r:E,c:T},e:{r:E+B-1,c:T+q-1}},x.F=Qe(D),P.push([D,x.F])),y.formula)x.f=UT(y.formula);else for(se=0;se<P.length;++se)E>=P[se][0].s.r&&E<=P[se][0].e.r&&T>=P[se][0].s.c&&T<=P[se][0].e.c&&(x.F=P[se][1]);switch((y["number-columns-spanned"]||y["number-rows-spanned"])&&(B=parseInt(y["number-rows-spanned"],10)||0,q=parseInt(y["number-columns-spanned"],10)||0,D={s:{r:E,c:T},e:{r:E+B-1,c:T+q-1}},k.push(D)),y["number-columns-repeated"]&&(O=parseInt(y["number-columns-repeated"],10)),x.t){case"boolean":x.t="b",x.v=wt(y["boolean-value"]);break;case"float":x.t="n",x.v=parseFloat(y.value);break;case"percentage":x.t="n",x.v=parseFloat(y.value);break;case"currency":x.t="n",x.v=parseFloat(y.value);break;case"date":x.t="d",x.v=Yt(y["date-value"]),t.cellDates||(x.t="n",x.v=Cr(x.v)),x.z="m/d/yy";break;case"time":x.t="n",x.v=r8(y["time-value"])/86400,t.cellDates&&(x.t="d",x.v=Pf(x.v)),x.z="HH:MM:SS";break;case"number":x.t="n",x.v=parseFloat(y.\u6570\u636E\u6570\u503C);break;default:if(x.t==="string"||x.t==="text"||!x.t)x.t="s",y["string-value"]!=null&&(b=rt(y["string-value"]),A=[]);else throw new Error("Unsupported value type "+x.t)}}else{if(ee=!1,x.t==="s"&&(x.v=b||"",A.length&&(x.R=A),ee=v==0),N.Target&&(x.l=N),I.length>0&&(x.c=I,I=[]),b&&t.cellText!==!1&&(x.w=b),ee&&(x.t="z",delete x.v),(!ee||t.sheetStubs)&&!(t.sheetRows&&t.sheetRows<=E))for(var ge=0;ge<U;++ge){if(O=parseInt(y["number-columns-repeated"]||"1",10),t.dense)for(m[E+ge]||(m[E+ge]=[]),m[E+ge][T]=ge==0?x:ir(x);--O>0;)m[E+ge][T+O]=ir(x);else for(m[He({r:E+ge,c:T})]=x;--O>0;)m[He({r:E+ge,c:T+O})]=ir(x);S.e.c<=T&&(S.e.c=T)}O=parseInt(y["number-columns-repeated"]||"1",10),T+=O-1,O=0,x={},b="",A=[]}N={};break;case"document":case"document-content":case"\u7535\u5B50\u8868\u683C\u6587\u6863":case"spreadsheet":case"\u4E3B\u4F53":case"scripts":case"styles":case"font-face-decls":case"master-styles":if(g[1]==="/"){if((a=i.pop())[0]!==g[3])throw"Bad state: "+a}else g[0].charAt(g[0].length-2)!=="/"&&i.push([g[3],!0]);break;case"annotation":if(g[1]==="/"){if((a=i.pop())[0]!==g[3])throw"Bad state: "+a;H.t=b,A.length&&(H.R=A),H.a=Z,I.push(H)}else g[0].charAt(g[0].length-2)!=="/"&&i.push([g[3],!1]);Z="",re=0,b="",v=0,A=[];break;case"creator":g[1]==="/"?Z=n.slice(re,g.index):re=g.index+g[0].length;break;case"meta":case"\u5143\u6570\u636E":case"settings":case"config-item-set":case"config-item-map-indexed":case"config-item-map-entry":case"config-item-map-named":case"shapes":case"frame":case"text-box":case"image":case"data-pilot-tables":case"list-style":case"form":case"dde-links":case"event-listeners":case"chart":if(g[1]==="/"){if((a=i.pop())[0]!==g[3])throw"Bad state: "+a}else g[0].charAt(g[0].length-2)!=="/"&&i.push([g[3],!1]);b="",v=0,A=[];break;case"scientific-number":break;case"currency-symbol":break;case"currency-style":break;case"number-style":case"percentage-style":case"date-style":case"time-style":if(g[1]==="/"){if(F[o.name]=c,(a=i.pop())[0]!==g[3])throw"Bad state: "+a}else g[0].charAt(g[0].length-2)!=="/"&&(c="",o=Pe(g[0],!1),i.push([g[3],!0]));break;case"script":break;case"libraries":break;case"automatic-styles":break;case"default-style":case"page-layout":break;case"style":break;case"map":break;case"font-face":break;case"paragraph-properties":break;case"table-properties":break;case"table-column-properties":break;case"table-row-properties":break;case"table-cell-properties":break;case"number":switch(i[i.length-1][0]){case"time-style":case"date-style":s=Pe(g[0],!1),c+=PT[g[3]][s.style==="long"?1:0];break}break;case"fraction":break;case"day":case"month":case"year":case"era":case"day-of-week":case"week-of-year":case"quarter":case"hours":case"minutes":case"seconds":case"am-pm":switch(i[i.length-1][0]){case"time-style":case"date-style":s=Pe(g[0],!1),c+=PT[g[3]][s.style==="long"?1:0];break}break;case"boolean-style":break;case"boolean":break;case"text-style":break;case"text":if(g[0].slice(-2)==="/>")break;if(g[1]==="/")switch(i[i.length-1][0]){case"number-style":case"date-style":case"time-style":c+=n.slice(u,g.index);break}else u=g.index+g[0].length;break;case"named-range":s=Pe(g[0],!1),z=Vm(s["cell-range-address"]);var _e={Name:s.name,Ref:z[0]+"!"+z[1]};ie&&(_e.Sheet=p.length),R.Names.push(_e);break;case"text-content":break;case"text-properties":break;case"embedded-text":break;case"body":case"\u7535\u5B50\u8868\u683C":break;case"forms":break;case"table-column":break;case"table-header-rows":break;case"table-rows":break;case"table-column-group":break;case"table-header-columns":break;case"table-columns":break;case"null-date":break;case"graphic-properties":break;case"calculation-settings":break;case"named-expressions":break;case"label-range":break;case"label-ranges":break;case"named-expression":break;case"sort":break;case"sort-by":break;case"sort-groups":break;case"tab":break;case"line-break":break;case"span":break;case"p":case"\u6587\u672C\u4E32":if(["master-styles"].indexOf(i[i.length-1][0])>-1)break;if(g[1]==="/"&&(!y||!y["string-value"])){var w=z9(n.slice(v,g.index),_);b=(b.length>0?b+`
|
|
269
269
|
`:"")+w[0]}else _=Pe(g[0],!1),v=g.index+g[0].length;break;case"s":break;case"database-range":if(g[1]==="/")break;try{z=Vm(Pe(g[0])["target-range-address"]),d[z[0]]["!autofilter"]={ref:z[1]}}catch{}break;case"date":break;case"object":break;case"title":case"\u6807\u9898":break;case"desc":break;case"binary-data":break;case"table-source":break;case"scenario":break;case"iteration":break;case"content-validations":break;case"content-validation":break;case"help-message":break;case"error-message":break;case"database-ranges":break;case"filter":break;case"filter-and":break;case"filter-or":break;case"filter-condition":break;case"list-level-style-bullet":break;case"list-level-style-number":break;case"list-level-properties":break;case"sender-firstname":case"sender-lastname":case"sender-initials":case"sender-title":case"sender-position":case"sender-email":case"sender-phone-private":case"sender-fax":case"sender-company":case"sender-phone-work":case"sender-street":case"sender-city":case"sender-postal-code":case"sender-country":case"sender-state-or-province":case"author-name":case"author-initials":case"chapter":case"file-name":case"template-name":case"sheet-name":break;case"event-listener":break;case"initial-creator":case"creation-date":case"print-date":case"generator":case"document-statistic":case"user-defined":case"editing-duration":case"editing-cycles":break;case"config-item":break;case"page-number":break;case"page-count":break;case"time":break;case"cell-range-source":break;case"detective":break;case"operation":break;case"highlighted-range":break;case"data-pilot-table":case"source-cell-range":case"source-service":case"data-pilot-field":case"data-pilot-level":case"data-pilot-subtotals":case"data-pilot-subtotal":case"data-pilot-members":case"data-pilot-member":case"data-pilot-display-info":case"data-pilot-sort-info":case"data-pilot-layout-info":case"data-pilot-field-reference":case"data-pilot-groups":case"data-pilot-group":case"data-pilot-group-member":break;case"rect":break;case"dde-connection-decls":case"dde-connection-decl":case"dde-link":case"dde-source":break;case"properties":break;case"property":break;case"a":if(g[1]!=="/"){if(N=Pe(g[0],!1),!N.href)break;N.Target=rt(N.href),delete N.href,N.Target.charAt(0)=="#"&&N.Target.indexOf(".")>-1?(z=Vm(N.Target.slice(1)),N.Target="#"+z[0]+"!"+z[1]):N.Target.match(/^\.\.[\\\/]/)&&(N.Target=N.Target.slice(3))}break;case"table-protection":break;case"data-pilot-grand-total":break;case"office-document-common-attrs":break;default:switch(g[2]){case"dc:":case"calcext:":case"loext:":case"ooo:":case"chartooo:":case"draw:":case"style:":case"chart:":case"form:":case"uof:":case"\u8868:":case"\u5B57:":break;default:if(t.WTF)throw new Error(g)}}var Q={Sheets:d,SheetNames:p,Workbook:R};return t.bookSheets&&delete Q.Sheets,Q}function LT(r,e){e=e||{},un(r,"META-INF/manifest.xml")&&a5(Bt(r,"META-INF/manifest.xml"),e);var t=Kr(r,"content.xml");if(!t)throw new Error("Missing content.xml in ODS / UOF file");var n=pA(vt(t),e);return un(r,"meta.xml")&&(n.Props=SE(Bt(r,"meta.xml"))),n}function MT(r,e){return pA(r,e)}function C1(r){return new DataView(r.buffer,r.byteOffset,r.byteLength)}function e1(r){return typeof TextDecoder<"u"?new TextDecoder().decode(r):vt(Fa(r))}function t1(r){var e=r.reduce(function(i,a){return i+a.length},0),t=new Uint8Array(e),n=0;return r.forEach(function(i){t.set(i,n),n+=i.length}),t}function WT(r){return r-=r>>1&1431655765,r=(r&858993459)+(r>>2&858993459),(r+(r>>4)&252645135)*16843009>>>24}function j9(r,e){for(var t=(r[e+15]&127)<<7|r[e+14]>>1,n=r[e+14]&1,i=e+13;i>=e;--i)n=n*256+r[i];return(r[e+15]&128?-n:n)*Math.pow(10,t-6176)}function ol(r,e){var t=e?e[0]:0,n=r[t]&127;e:if(r[t++]>=128&&(n|=(r[t]&127)<<7,r[t++]<128||(n|=(r[t]&127)<<14,r[t++]<128)||(n|=(r[t]&127)<<21,r[t++]<128)||(n+=(r[t]&127)*Math.pow(2,28),++t,r[t++]<128)||(n+=(r[t]&127)*Math.pow(2,35),++t,r[t++]<128)||(n+=(r[t]&127)*Math.pow(2,42),++t,r[t++]<128)))break e;return e&&(e[0]=t),n}function Ht(r){var e=0,t=r[e]&127;e:if(r[e++]>=128){if(t|=(r[e]&127)<<7,r[e++]<128||(t|=(r[e]&127)<<14,r[e++]<128)||(t|=(r[e]&127)<<21,r[e++]<128))break e;t|=(r[e]&127)<<28}return t}function pr(r){for(var e=[],t=[0];t[0]<r.length;){var n=t[0],i=ol(r,t),a=i&7;i=Math.floor(i/8);var s=0,o;if(i==0)break;switch(a){case 0:{for(var c=t[0];r[t[0]++]>=128;);o=r.slice(c,t[0])}break;case 5:s=4,o=r.slice(t[0],t[0]+s),t[0]+=s;break;case 1:s=8,o=r.slice(t[0],t[0]+s),t[0]+=s;break;case 2:s=ol(r,t),o=r.slice(t[0],t[0]+s),t[0]+=s;break;default:throw new Error("PB Type ".concat(a," for Field ").concat(i," at offset ").concat(n))}var u={data:o,type:a};e[i]==null?e[i]=[u]:e[i].push(u)}return e}function F1(r,e){return r?.map(function(t){return e(t.data)})||[]}function G9(r){for(var e,t=[],n=[0];n[0]<r.length;){var i=ol(r,n),a=pr(r.slice(n[0],n[0]+i));n[0]+=i;var s={id:Ht(a[1][0].data),messages:[]};a[2].forEach(function(o){var c=pr(o.data),u=Ht(c[3][0].data);s.messages.push({meta:c,data:r.slice(n[0],n[0]+u)}),n[0]+=u}),(e=a[3])!=null&&e[0]&&(s.merge=Ht(a[3][0].data)>>>0>0),t.push(s)}return t}function X9(r,e){if(r!=0)throw new Error("Unexpected Snappy chunk type ".concat(r));for(var t=[0],n=ol(e,t),i=[];t[0]<e.length;){var a=e[t[0]]&3;if(a==0){var s=e[t[0]++]>>2;if(s<60)++s;else{var o=s-59;s=e[t[0]],o>1&&(s|=e[t[0]+1]<<8),o>2&&(s|=e[t[0]+2]<<16),o>3&&(s|=e[t[0]+3]<<24),s>>>=0,s++,t[0]+=o}i.push(e.slice(t[0],t[0]+s)),t[0]+=s;continue}else{var c=0,u=0;if(a==1?(u=(e[t[0]]>>2&7)+4,c=(e[t[0]++]&224)<<3,c|=e[t[0]++]):(u=(e[t[0]++]>>2)+1,a==2?(c=e[t[0]]|e[t[0]+1]<<8,t[0]+=2):(c=(e[t[0]]|e[t[0]+1]<<8|e[t[0]+2]<<16|e[t[0]+3]<<24)>>>0,t[0]+=4)),i=[t1(i)],c==0)throw new Error("Invalid offset 0");if(c>i[0].length)throw new Error("Invalid offset beyond length");if(u>=c)for(i.push(i[0].slice(-c)),u-=c;u>=i[i.length-1].length;)i.push(i[i.length-1]),u-=i[i.length-1].length;i.push(i[0].slice(-c,-c+u))}}var h=t1(i);if(h.length!=n)throw new Error("Unexpected length: ".concat(h.length," != ").concat(n));return h}function $9(r){for(var e=[],t=0;t<r.length;){var n=r[t++],i=r[t]|r[t+1]<<8|r[t+2]<<16;t+=3,e.push(X9(n,r.slice(t,t+i))),t+=i}if(t!==r.length)throw new Error("data is not a valid framed stream!");return t1(e)}function q9(r,e,t,n){var i=C1(r),a=i.getUint32(4,!0),s=(n>1?12:8)+WT(a&(n>1?3470:398))*4,o=-1,c=-1,u=NaN,h=new Date(2001,0,1);a&512&&(o=i.getUint32(s,!0),s+=4),s+=WT(a&(n>1?12288:4096))*4,a&16&&(c=i.getUint32(s,!0),s+=4),a&32&&(u=i.getFloat64(s,!0),s+=8),a&64&&(h.setTime(h.getTime()+i.getFloat64(s,!0)*1e3),s+=8);var f;switch(r[2]){case 0:break;case 2:f={t:"n",v:u};break;case 3:f={t:"s",v:e[c]};break;case 5:f={t:"d",v:h};break;case 6:f={t:"b",v:u>0};break;case 7:f={t:"n",v:u/86400};break;case 8:f={t:"e",v:0};break;case 9:if(o>-1)f={t:"s",v:t[o]};else if(c>-1)f={t:"s",v:e[c]};else if(!isNaN(u))f={t:"n",v:u};else throw new Error("Unsupported cell type ".concat(r.slice(0,4)));break;default:throw new Error("Unsupported cell type ".concat(r.slice(0,4)))}return f}function Y9(r,e,t){var n=C1(r),i=n.getUint32(8,!0),a=12,s=-1,o=-1,c=NaN,u=NaN,h=new Date(2001,0,1);i&1&&(c=j9(r,a),a+=16),i&2&&(u=n.getFloat64(a,!0),a+=8),i&4&&(h.setTime(h.getTime()+n.getFloat64(a,!0)*1e3),a+=8),i&8&&(o=n.getUint32(a,!0),a+=4),i&16&&(s=n.getUint32(a,!0),a+=4);var f;switch(r[1]){case 0:break;case 2:f={t:"n",v:c};break;case 3:f={t:"s",v:e[o]};break;case 5:f={t:"d",v:h};break;case 6:f={t:"b",v:u>0};break;case 7:f={t:"n",v:u/86400};break;case 8:f={t:"e",v:0};break;case 9:if(s>-1)f={t:"s",v:t[s]};else throw new Error("Unsupported cell type ".concat(r[1]," : ").concat(i&31," : ").concat(r.slice(0,4)));break;case 10:f={t:"n",v:c};break;default:throw new Error("Unsupported cell type ".concat(r[1]," : ").concat(i&31," : ").concat(r.slice(0,4)))}return f}function K9(r,e,t){switch(r[0]){case 0:case 1:case 2:case 3:return q9(r,e,t,r[0]);case 5:return Y9(r,e,t);default:throw new Error("Unsupported payload version ".concat(r[0]))}}function Pi(r){var e=pr(r);return ol(e[1][0].data)}function HT(r,e){var t=pr(e.data),n=Ht(t[1][0].data),i=t[3],a=[];return(i||[]).forEach(function(s){var o=pr(s.data),c=Ht(o[1][0].data)>>>0;switch(n){case 1:a[c]=e1(o[3][0].data);break;case 8:{var u=r[Pi(o[9][0].data)][0],h=pr(u.data),f=r[Pi(h[1][0].data)][0],d=Ht(f.meta[1][0].data);if(d!=2001)throw new Error("2000 unexpected reference to ".concat(d));var p=pr(f.data);a[c]=p[3].map(function(m){return e1(m.data)}).join("")}break}}),a}function Z9(r,e){var t,n,i,a,s,o,c,u,h,f,d,p,m,g,x=pr(r),y=Ht(x[1][0].data)>>>0,b=Ht(x[2][0].data)>>>0,v=((n=(t=x[8])==null?void 0:t[0])==null?void 0:n.data)&&Ht(x[8][0].data)>0||!1,_,A;if((a=(i=x[7])==null?void 0:i[0])!=null&&a.data&&e!=0)_=(o=(s=x[7])==null?void 0:s[0])==null?void 0:o.data,A=(u=(c=x[6])==null?void 0:c[0])==null?void 0:u.data;else if((f=(h=x[4])==null?void 0:h[0])!=null&&f.data&&e!=1)_=(p=(d=x[4])==null?void 0:d[0])==null?void 0:p.data,A=(g=(m=x[3])==null?void 0:m[0])==null?void 0:g.data;else throw"NUMBERS Tile missing ".concat(e," cell storage");for(var E=v?4:1,T=C1(_),S=[],C=0;C<_.length/2;++C){var F=T.getUint16(C*2,!0);F<65535&&S.push([C,F])}if(S.length!=b)throw"Expected ".concat(b," cells, found ").concat(S.length);var k=[];for(C=0;C<S.length-1;++C)k[S[C][0]]=A.subarray(S[C][1]*E,S[C+1][1]*E);return S.length>=1&&(k[S[S.length-1][0]]=A.subarray(S[S.length-1][1]*E)),{R:y,cells:k}}function J9(r,e){var t,n=pr(e.data),i=(t=n?.[7])!=null&&t[0]?Ht(n[7][0].data)>>>0>0?1:0:-1,a=F1(n[5],function(s){return Z9(s,i)});return{nrows:Ht(n[4][0].data)>>>0,data:a.reduce(function(s,o){return s[o.R]||(s[o.R]=[]),o.cells.forEach(function(c,u){if(s[o.R][u])throw new Error("Duplicate cell r=".concat(o.R," c=").concat(u));s[o.R][u]=c}),s},[])}}function Q9(r,e,t){var n,i=pr(e.data),a={s:{r:0,c:0},e:{r:0,c:0}};if(a.e.r=(Ht(i[6][0].data)>>>0)-1,a.e.r<0)throw new Error("Invalid row varint ".concat(i[6][0].data));if(a.e.c=(Ht(i[7][0].data)>>>0)-1,a.e.c<0)throw new Error("Invalid col varint ".concat(i[7][0].data));t["!ref"]=Qe(a);var s=pr(i[4][0].data),o=HT(r,r[Pi(s[4][0].data)][0]),c=(n=s[17])!=null&&n[0]?HT(r,r[Pi(s[17][0].data)][0]):[],u=pr(s[3][0].data),h=0;u[1].forEach(function(f){var d=pr(f.data),p=r[Pi(d[2][0].data)][0],m=Ht(p.meta[1][0].data);if(m!=6002)throw new Error("6001 unexpected reference to ".concat(m));var g=J9(r,p);g.data.forEach(function(x,y){x.forEach(function(b,v){var _=He({r:h+y,c:v}),A=K9(b,o,c);A&&(t[_]=A)})}),h+=g.nrows})}function eB(r,e){var t=pr(e.data),n={"!ref":"A1"},i=r[Pi(t[2][0].data)],a=Ht(i[0].meta[1][0].data);if(a!=6001)throw new Error("6000 unexpected reference to ".concat(a));return Q9(r,i[0],n),n}function tB(r,e){var t,n=pr(e.data),i={name:(t=n[1])!=null&&t[0]?e1(n[1][0].data):"",sheets:[]},a=F1(n[2],Pi);return a.forEach(function(s){r[s].forEach(function(o){var c=Ht(o.meta[1][0].data);c==6e3&&i.sheets.push(eB(r,o))})}),i}function rB(r,e){var t=I1(),n=pr(e.data),i=F1(n[1],Pi);if(i.forEach(function(a){r[a].forEach(function(s){var o=Ht(s.meta[1][0].data);if(o==2){var c=tB(r,s);c.sheets.forEach(function(u,h){R1(t,u,h==0?c.name:c.name+"_"+h,!0)})}})}),t.SheetNames.length==0)throw new Error("Empty NUMBERS file");return t}function jm(r){var e,t,n,i,a={},s=[];if(r.FullPaths.forEach(function(c){if(c.match(/\.iwpv2/))throw new Error("Unsupported password protection")}),r.FileIndex.forEach(function(c){if(c.name.match(/\.iwa$/)){var u;try{u=$9(c.content)}catch(f){return console.log("?? "+c.content.length+" "+(f.message||f))}var h;try{h=G9(u)}catch(f){return console.log("## "+(f.message||f))}h.forEach(function(f){a[f.id]=f.messages,s.push(f.id)})}}),!s.length)throw new Error("File has no messages");var o=((i=(n=(t=(e=a?.[1])==null?void 0:e[0])==null?void 0:t.meta)==null?void 0:n[1])==null?void 0:i[0].data)&&Ht(a[1][0].meta[1][0].data)==1&&a[1][0];if(o||s.forEach(function(c){a[c].forEach(function(u){var h=Ht(u.meta[1][0].data)>>>0;if(h==1)if(!o)o=u;else throw new Error("Document has multiple roots")})}),!o)throw new Error("Cannot find Document root");return rB(a,o)}function nB(r){return function(t){for(var n=0;n!=r.length;++n){var i=r[n];t[i[0]]===void 0&&(t[i[0]]=i[1]),i[2]==="n"&&(t[i[0]]=Number(t[i[0]]))}}}function k1(r){nB([["cellNF",!1],["cellHTML",!0],["cellFormula",!0],["cellStyles",!1],["cellText",!0],["cellDates",!1],["sheetStubs",!1],["sheetRows",0,"n"],["bookDeps",!1],["bookSheets",!1],["bookProps",!1],["bookFiles",!1],["bookVBA",!1],["password",""],["WTF",!1]])(r)}function iB(r){return oi.WS.indexOf(r)>-1?"sheet":oi.CS&&r==oi.CS?"chart":oi.DS&&r==oi.DS?"dialog":oi.MS&&r==oi.MS?"macro":r&&r.length?r:"sheet"}function aB(r,e){if(!r)return 0;try{r=e.map(function(n){return n.id||(n.id=n.strRelID),[n.name,r["!id"][n.id].Target,iB(r["!id"][n.id].Type)]})}catch{return null}return!r||r.length===0?null:r}function sB(r,e,t,n,i,a,s,o,c,u,h,f){try{a[n]=Yc(Kr(r,t,!0),e);var d=Bt(r,e),p;switch(o){case"sheet":p=f9(d,e,i,c,a[n],u,h,f);break;case"chart":if(p=d9(d,e,i,c,a[n],u,h,f),!p||!p["!drawel"])break;var m=jc(p["!drawel"].Target,e),g=Ym(m),x=hI(Kr(r,m,!0),Yc(Kr(r,g,!0),m)),y=jc(x,m),b=Ym(y);p=YO(Kr(r,y,!0),y,c,Yc(Kr(r,b,!0),y),u,p);break;case"macro":p=p9(d,e,i,c,a[n],u,h,f);break;case"dialog":p=g9(d,e,i,c,a[n],u,h,f);break;default:throw new Error("Unrecognized sheet type "+o)}s[n]=p;var v=[];a&&a[n]&&Wn(a[n]).forEach(function(_){var A="";if(a[n][_].Type==oi.CMNT){A=jc(a[n][_].Target,e);var E=y9(Bt(r,A,!0),A,c);if(!E||!E.length)return;AT(p,E,!1)}a[n][_].Type==oi.TCMNT&&(A=jc(a[n][_].Target,e),v=v.concat(dI(Bt(r,A,!0),c)))}),v&&v.length&&AT(p,v,!0,c.people||[])}catch(_){if(c.WTF)throw _}}function cn(r){return r.charAt(0)=="/"?r.slice(1):r}function oB(r,e){if(rE(),e=e||{},k1(e),un(r,"META-INF/manifest.xml")||un(r,"objectdata.xml"))return LT(r,e);if(un(r,"Index/Document.iwa")){if(typeof Uint8Array>"u")throw new Error("NUMBERS file parsing requires Uint8Array support");if(typeof jm<"u"){if(r.FileIndex)return jm(r);var t=Je.utils.cfb_new();return QD(r).forEach(function(q){o8(t,q,cE(r,q))}),jm(t)}throw new Error("Unsupported NUMBERS file")}if(!un(r,"[Content_Types].xml"))throw un(r,"index.xml.gz")?new Error("Unsupported NUMBERS 08 file"):un(r,"index.xml")?new Error("Unsupported NUMBERS 09 file"):new Error("Unsupported ZIP file");var n=QD(r),i=n5(Kr(r,"[Content_Types].xml")),a=!1,s,o;if(i.workbooks.length===0&&(o="xl/workbook.xml",Bt(r,o,!0)&&i.workbooks.push(o)),i.workbooks.length===0){if(o="xl/workbook.bin",!Bt(r,o,!0))throw new Error("Could not find workbook");i.workbooks.push(o),a=!0}i.workbooks[0].slice(-3)=="bin"&&(a=!0);var c={},u={};if(!e.bookSheets&&!e.bookProps){if(Jc=[],i.sst)try{Jc=v9(Bt(r,cn(i.sst)),i.sst,e)}catch(q){if(e.WTF)throw q}e.cellStyles&&i.themes.length&&(c=x9(Kr(r,i.themes[0].replace(/^\//,""),!0)||"",i.themes[0],e)),i.style&&(u=m9(Bt(r,cn(i.style)),i.style,c,e))}i.links.map(function(q){try{var j=Yc(Kr(r,Ym(cn(q))),q);return w9(Bt(r,cn(q)),j,q,e)}catch{}});var h=h9(Bt(r,cn(i.workbooks[0])),i.workbooks[0],e),f={},d="";i.coreprops.length&&(d=Bt(r,cn(i.coreprops[0]),!0),d&&(f=SE(d)),i.extprops.length!==0&&(d=Bt(r,cn(i.extprops[0]),!0),d&&c5(d,f,e)));var p={};(!e.bookSheets||e.bookProps)&&i.custprops.length!==0&&(d=Kr(r,cn(i.custprops[0]),!0),d&&(p=u5(d,e)));var m={};if((e.bookSheets||e.bookProps)&&(h.Sheets?s=h.Sheets.map(function(j){return j.name}):f.Worksheets&&f.SheetNames.length>0&&(s=f.SheetNames),e.bookProps&&(m.Props=f,m.Custprops=p),e.bookSheets&&typeof s<"u"&&(m.SheetNames=s),e.bookSheets?m.SheetNames:e.bookProps))return m;s={};var g={};e.bookDeps&&i.calcchain&&(g=b9(Bt(r,cn(i.calcchain)),i.calcchain,e));var x=0,y={},b,v;{var _=h.Sheets;f.Worksheets=_.length,f.SheetNames=[];for(var A=0;A!=_.length;++A)f.SheetNames[A]=_[A].name}var E=a?"bin":"xml",T=i.workbooks[0].lastIndexOf("/"),S=(i.workbooks[0].slice(0,T+1)+"_rels/"+i.workbooks[0].slice(T+1)+".rels").replace(/^\//,"");un(r,S)||(S="xl/_rels/workbook."+E+".rels");var C=Yc(Kr(r,S,!0),S.replace(/_rels.*/,"s5s"));(i.metadata||[]).length>=1&&(e.xlmeta=_9(Bt(r,cn(i.metadata[0])),i.metadata[0],e)),(i.people||[]).length>=1&&(e.people=pI(Bt(r,cn(i.people[0])),e)),C&&(C=aB(C,h.Sheets));var F=Bt(r,"xl/worksheets/sheet.xml",!0)?1:0;e:for(x=0;x!=f.Worksheets;++x){var k="sheet";if(C&&C[x]?(b="xl/"+C[x][1].replace(/[\/]?xl\//,""),un(r,b)||(b=C[x][1]),un(r,b)||(b=S.replace(/_rels\/.*$/,"")+C[x][1]),k=C[x][2]):(b="xl/worksheets/sheet"+(x+1-F)+"."+E,b=b.replace(/sheet0\./,"sheet.")),v=b.replace(/^(.*)(\/)([^\/]*)$/,"$1/_rels/$3.rels"),e&&e.sheets!=null)switch(typeof e.sheets){case"number":if(x!=e.sheets)continue e;break;case"string":if(f.SheetNames[x].toLowerCase()!=e.sheets.toLowerCase())continue e;break;default:if(Array.isArray&&Array.isArray(e.sheets)){for(var D=!1,B=0;B!=e.sheets.length;++B)typeof e.sheets[B]=="number"&&e.sheets[B]==x&&(D=1),typeof e.sheets[B]=="string"&&e.sheets[B].toLowerCase()==f.SheetNames[x].toLowerCase()&&(D=1);if(!D)continue e}}sB(r,b,v,f.SheetNames[x],x,y,s,k,e,h,c,u)}return m={Directory:i,Workbook:h,Props:f,Custprops:p,Deps:g,Sheets:s,SheetNames:f.SheetNames,Strings:Jc,Styles:u,Themes:c,SSF:ir(je)},e&&e.bookFiles&&(r.files?(m.keys=n,m.files=r.files):(m.keys=[],m.files={},r.FullPaths.forEach(function(q,j){q=q.replace(/^Root Entry[\/]/,""),m.keys.push(q),m.files[q]=r.FileIndex[j]}))),e&&e.bookVBA&&(i.vba.length>0?m.vbaraw=Bt(r,cn(i.vba[0]),!0):i.defaults&&i.defaults.bin===vI&&(m.vbaraw=Bt(r,"xl/vbaProject.bin",!0))),m}function cB(r,e){var t=e||{},n="Workbook",i=Je.find(r,n);try{if(n="/!DataSpaces/Version",i=Je.find(r,n),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+n);if(eU(i.content),n="/!DataSpaces/DataSpaceMap",i=Je.find(r,n),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+n);var a=rU(i.content);if(a.length!==1||a[0].comps.length!==1||a[0].comps[0].t!==0||a[0].name!=="StrongEncryptionDataSpace"||a[0].comps[0].v!=="EncryptedPackage")throw new Error("ECMA-376 Encrypted file bad "+n);if(n="/!DataSpaces/DataSpaceInfo/StrongEncryptionDataSpace",i=Je.find(r,n),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+n);var s=nU(i.content);if(s.length!=1||s[0]!="StrongEncryptionTransform")throw new Error("ECMA-376 Encrypted file bad "+n);if(n="/!DataSpaces/TransformInfo/StrongEncryptionTransform/!Primary",i=Je.find(r,n),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+n);aU(i.content)}catch{}if(n="/EncryptionInfo",i=Je.find(r,n),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+n);var o=sU(i.content);if(n="/EncryptedPackage",i=Je.find(r,n),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+n);if(o[0]==4&&typeof decrypt_agile<"u")return decrypt_agile(o[1],i.content,t.password||"",t);if(o[0]==2&&typeof decrypt_std76<"u")return decrypt_std76(o[1],i.content,t.password||"",t);throw new Error("File is password-protected")}function U1(r,e){var t="";switch((e||{}).type||"base64"){case"buffer":return[r[0],r[1],r[2],r[3],r[4],r[5],r[6],r[7]];case"base64":t=Zr(r.slice(0,12));break;case"binary":t=r;break;case"array":return[r[0],r[1],r[2],r[3],r[4],r[5],r[6],r[7]];default:throw new Error("Unrecognized type "+(e&&e.type||"undefined"))}return[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3),t.charCodeAt(4),t.charCodeAt(5),t.charCodeAt(6),t.charCodeAt(7)]}function lB(r,e){return Je.find(r,"EncryptedPackage")?cB(r,e):hA(r,e)}function uB(r,e){var t,n=r,i=e||{};return i.type||(i.type=Ze&&Buffer.isBuffer(r)?"buffer":"base64"),t=lE(n,i),oB(t,i)}function gA(r,e){var t=0;e:for(;t<r.length;)switch(r.charCodeAt(t)){case 10:case 13:case 32:++t;break;case 60:return Jm(r.slice(t),e);default:break e}return il.to_workbook(r,e)}function hB(r,e){var t="",n=U1(r,e);switch(e.type){case"base64":t=Zr(r);break;case"binary":t=r;break;case"buffer":t=r.toString("binary");break;case"array":t=Aa(r);break;default:throw new Error("Unrecognized type "+e.type)}return n[0]==239&&n[1]==187&&n[2]==191&&(t=vt(t)),e.type="binary",gA(t,e)}function fB(r,e){var t=r;return e.type=="base64"&&(t=Zr(t)),t=at.utils.decode(1200,t.slice(2),"str"),e.type="binary",gA(t,e)}function dB(r){return r.match(/[^\x00-\x7F]/)?Gc(r):r}function Gm(r,e,t,n){return n?(t.type="string",il.to_workbook(r,t)):il.to_workbook(e,t)}function Nf(r,e){jT();var t=e||{};if(typeof ArrayBuffer<"u"&&r instanceof ArrayBuffer)return Nf(new Uint8Array(r),(t=ir(t),t.type="array",t));typeof Uint8Array<"u"&&r instanceof Uint8Array&&!t.type&&(t.type=typeof Deno<"u"?"buffer":"array");var n=r,i=[0,0,0,0],a=!1;if(t.cellStyles&&(t.cellNF=!0,t.sheetStubs=!0),Ms={},t.dateNF&&(Ms.dateNF=t.dateNF),t.type||(t.type=Ze&&Buffer.isBuffer(r)?"buffer":"base64"),t.type=="file"&&(t.type=Ze?"buffer":"binary",n=e8(r),typeof Uint8Array<"u"&&!Ze&&(t.type="array")),t.type=="string"&&(a=!0,t.type="binary",t.codepage=65001,n=dB(r)),t.type=="array"&&typeof Uint8Array<"u"&&r instanceof Uint8Array&&typeof ArrayBuffer<"u"){var s=new ArrayBuffer(3),o=new Uint8Array(s);if(o.foo="bar",!o.foo)return t=ir(t),t.type="array",Nf(a1(n),t)}switch((i=U1(n,t))[0]){case 208:if(i[1]===207&&i[2]===17&&i[3]===224&&i[4]===161&&i[5]===177&&i[6]===26&&i[7]===225)return lB(Je.read(n,t),t);break;case 9:if(i[1]<=8)return hA(n,t);break;case 60:return Jm(n,t);case 73:if(i[1]===73&&i[2]===42&&i[3]===0)throw new Error("TIFF Image File is not a spreadsheet");if(i[1]===68)return H6(n,t);break;case 84:if(i[1]===65&&i[2]===66&&i[3]===76)return M6.to_workbook(n,t);break;case 80:return i[1]===75&&i[2]<9&&i[3]<9?uB(n,t):Gm(r,n,t,a);case 239:return i[3]===60?Jm(n,t):Gm(r,n,t,a);case 255:if(i[1]===254)return fB(n,t);if(i[1]===0&&i[2]===2&&i[3]===0)return Zc.to_workbook(n,t);break;case 0:if(i[1]===0&&(i[2]>=2&&i[3]===0||i[2]===0&&(i[3]===8||i[3]===9)))return Zc.to_workbook(n,t);break;case 3:case 131:case 139:case 140:return ET.to_workbook(n,t);case 123:if(i[1]===92&&i[2]===114&&i[3]===116)return vU.to_workbook(n,t);break;case 10:case 13:case 32:return hB(n,t);case 137:if(i[1]===80&&i[2]===78&&i[3]===71)throw new Error("PNG Image File is not a spreadsheet");break}return P6.indexOf(i[0])>-1&&i[2]<=12&&i[3]<=31?ET.to_workbook(n,t):Gm(r,n,t,a)}function pB(r,e,t,n,i,a,s,o){var c=ar(t),u=o.defval,h=o.raw||!Object.prototype.hasOwnProperty.call(o,"raw"),f=!0,d=i===1?[]:{};if(i!==1)if(Object.defineProperty)try{Object.defineProperty(d,"__rowNum__",{value:t,enumerable:!1})}catch{d.__rowNum__=t}else d.__rowNum__=t;if(!s||r[t])for(var p=e.s.c;p<=e.e.c;++p){var m=s?r[t][p]:r[n[p]+c];if(m===void 0||m.t===void 0){if(u===void 0)continue;a[p]!=null&&(d[a[p]]=u);continue}var g=m.v;switch(m.t){case"z":if(g==null)break;continue;case"e":g=g==0?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+m.t)}if(a[p]!=null){if(g==null)if(m.t=="e"&&g===null)d[a[p]]=null;else if(u!==void 0)d[a[p]]=u;else if(h&&g===null)d[a[p]]=null;else continue;else d[a[p]]=h&&(m.t!=="n"||m.t==="n"&&o.rawNumbers!==!1)?g:hi(m,g,o);g!=null&&(f=!1)}}return{row:d,isempty:f}}function r1(r,e){if(r==null||r["!ref"]==null)return[];var t={t:"n",v:0},n=0,i=1,a=[],s=0,o="",c={s:{r:0,c:0},e:{r:0,c:0}},u=e||{},h=u.range!=null?u.range:r["!ref"];switch(u.header===1?n=1:u.header==="A"?n=2:Array.isArray(u.header)?n=3:u.header==null&&(n=0),typeof h){case"string":c=Ct(h);break;case"number":c=Ct(r["!ref"]),c.s.r=h;break;default:c=h}n>0&&(i=0);var f=ar(c.s.r),d=[],p=[],m=0,g=0,x=Array.isArray(r),y=c.s.r,b=0,v={};x&&!r[y]&&(r[y]=[]);var _=u.skipHidden&&r["!cols"]||[],A=u.skipHidden&&r["!rows"]||[];for(b=c.s.c;b<=c.e.c;++b)if(!(_[b]||{}).hidden)switch(d[b]=Wt(b),t=x?r[y][b]:r[d[b]+f],n){case 1:a[b]=b-c.s.c;break;case 2:a[b]=d[b];break;case 3:a[b]=u.header[b-c.s.c];break;default:if(t==null&&(t={w:"__EMPTY",t:"s"}),o=s=hi(t,null,u),g=v[s]||0,!g)v[s]=1;else{do o=s+"_"+g++;while(v[o]);v[s]=g,v[o]=1}a[b]=o}for(y=c.s.r+i;y<=c.e.r;++y)if(!(A[y]||{}).hidden){var E=pB(r,c,y,d,n,a,x,u);(E.isempty===!1||(n===1?u.blankrows!==!1:u.blankrows))&&(p[m++]=E.row)}return p.length=m,p}var VT=/"/g;function gB(r,e,t,n,i,a,s,o){for(var c=!0,u=[],h="",f=ar(t),d=e.s.c;d<=e.e.c;++d)if(n[d]){var p=o.dense?(r[t]||[])[d]:r[n[d]+f];if(p==null)h="";else if(p.v!=null){c=!1,h=""+(o.rawNumbers&&p.t=="n"?p.v:hi(p,null,o));for(var m=0,g=0;m!==h.length;++m)if((g=h.charCodeAt(m))===i||g===a||g===34||o.forceQuotes){h='"'+h.replace(VT,'""')+'"';break}h=="ID"&&(h='"ID"')}else p.f!=null&&!p.F?(c=!1,h="="+p.f,h.indexOf(",")>=0&&(h='"'+h.replace(VT,'""')+'"')):h="";u.push(h)}return o.blankrows===!1&&c?null:u.join(s)}function mA(r,e){var t=[],n=e??{};if(r==null||r["!ref"]==null)return"";var i=Ct(r["!ref"]),a=n.FS!==void 0?n.FS:",",s=a.charCodeAt(0),o=n.RS!==void 0?n.RS:`
|
|
270
270
|
`,c=o.charCodeAt(0),u=new RegExp((a=="|"?"\\|":a)+"+$"),h="",f=[];n.dense=Array.isArray(r);for(var d=n.skipHidden&&r["!cols"]||[],p=n.skipHidden&&r["!rows"]||[],m=i.s.c;m<=i.e.c;++m)(d[m]||{}).hidden||(f[m]=Wt(m));for(var g=0,x=i.s.r;x<=i.e.r;++x)(p[x]||{}).hidden||(h=gB(r,i,x,f,s,c,a,n),h!=null&&(n.strip&&(h=h.replace(u,"")),(h||n.blankrows!==!1)&&t.push((g++?o:"")+h)));return delete n.dense,t.join("")}function mB(r,e){e||(e={}),e.FS=" ",e.RS=`
|
|
271
|
-
`;var t=mA(r,e);if(typeof at>"u"||e.type=="string")return t;var n=at.utils.encode(1200,t,"str");return"\xFF\xFE"+n}function xB(r){var e="",t,n="";if(r==null||r["!ref"]==null)return[];var i=Ct(r["!ref"]),a="",s=[],o,c=[],u=Array.isArray(r);for(o=i.s.c;o<=i.e.c;++o)s[o]=Wt(o);for(var h=i.s.r;h<=i.e.r;++h)for(a=ar(h),o=i.s.c;o<=i.e.c;++o)if(e=s[o]+a,t=u?(r[h]||[])[o]:r[e],n="",t!==void 0){if(t.F!=null){if(e=t.F,!t.f)continue;n=t.f,e.indexOf(":")==-1&&(e=e+":"+e)}if(t.f!=null)n=t.f;else{if(t.t=="z")continue;if(t.t=="n"&&t.v!=null)n=""+t.v;else if(t.t=="b")n=t.v?"TRUE":"FALSE";else if(t.w!==void 0)n="'"+t.w;else{if(t.v===void 0)continue;t.t=="s"?n="'"+t.v:n=""+t.v}}c[c.length]=e+"="+n}return c}function xA(r,e,t){var n=t||{},i=+!n.skipHeader,a=r||{},s=0,o=0;if(a&&n.origin!=null)if(typeof n.origin=="number")s=n.origin;else{var c=typeof n.origin=="string"?Sr(n.origin):n.origin;s=c.r,o=c.c}var u,h={s:{c:0,r:0},e:{c:o,r:s+e.length-1+i}};if(a["!ref"]){var f=Ct(a["!ref"]);h.e.c=Math.max(h.e.c,f.e.c),h.e.r=Math.max(h.e.r,f.e.r),s==-1&&(s=f.e.r+1,h.e.r=s+e.length-1+i)}else s==-1&&(s=0,h.e.r=e.length-1+i);var d=n.header||[],p=0;e.forEach(function(g,x){Wn(g).forEach(function(y){(p=d.indexOf(y))==-1&&(d[p=d.length]=y);var b=g[y],v="z",_="",A=He({c:o+p,r:s+x+i});u=cl(a,A),b&&typeof b=="object"&&!(b instanceof Date)?a[A]=b:(typeof b=="number"?v="n":typeof b=="boolean"?v="b":typeof b=="string"?v="s":b instanceof Date?(v="d",n.cellDates||(v="n",b=Cr(b)),_=n.dateNF||je[14]):b===null&&n.nullError&&(v="e",b=0),u?(u.t=v,u.v=b,delete u.w,delete u.R,_&&(u.z=_)):a[A]=u={t:v,v:b},_&&(u.z=_))})}),h.e.c=Math.max(h.e.c,o+d.length-1);var m=ar(s);if(i)for(p=0;p<d.length;++p)a[Wt(p+o)+m]={t:"s",v:d[p]};return a["!ref"]=Qe(h),a}function vB(r,e){return xA(null,r,e)}function cl(r,e,t){if(typeof e=="string"){if(Array.isArray(r)){var n=Sr(e);return r[n.r]||(r[n.r]=[]),r[n.r][n.c]||(r[n.r][n.c]={t:"z"})}return r[e]||(r[e]={t:"z"})}return typeof e!="number"?cl(r,He(e)):cl(r,He({r:e,c:t||0}))}function yB(r,e){if(typeof e=="number"){if(e>=0&&r.SheetNames.length>e)return e;throw new Error("Cannot find sheet # "+e)}else if(typeof e=="string"){var t=r.SheetNames.indexOf(e);if(t>-1)return t;throw new Error("Cannot find sheet name |"+e+"|")}else throw new Error("Cannot find sheet |"+e+"|")}function I1(){return{SheetNames:[],Sheets:{}}}function R1(r,e,t,n){var i=1;if(!t)for(;i<=65535&&r.SheetNames.indexOf(t="Sheet"+i)!=-1;++i,t=void 0);if(!t||r.SheetNames.length>=65535)throw new Error("Too many worksheets");if(n&&r.SheetNames.indexOf(t)>=0){var a=t.match(/(^.*?)(\d+)$/);i=a&&+a[2]||0;var s=a&&a[1]||t;for(++i;i<=65535&&r.SheetNames.indexOf(t=s+i)!=-1;++i);}if(n9(t),r.SheetNames.indexOf(t)>=0)throw new Error("Worksheet with name |"+t+"| already exists!");return r.SheetNames.push(t),r.Sheets[t]=e,t}function bB(r,e,t){r.Workbook||(r.Workbook={}),r.Workbook.Sheets||(r.Workbook.Sheets=[]);var n=yB(r,e);switch(r.Workbook.Sheets[n]||(r.Workbook.Sheets[n]={}),t){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+t)}r.Workbook.Sheets[n].Hidden=t}function wB(r,e){return r.z=e,r}function vA(r,e,t){return e?(r.l={Target:e},t&&(r.l.Tooltip=t)):delete r.l,r}function _B(r,e,t){return vA(r,"#"+e,t)}function DB(r,e,t){r.c||(r.c=[]),r.c.push({t:e,a:t||"SheetJS"})}function TB(r,e,t,n){for(var i=typeof e!="string"?e:Ct(e),a=typeof e=="string"?e:Qe(e),s=i.s.r;s<=i.e.r;++s)for(var o=i.s.c;o<=i.e.c;++o){var c=cl(r,s,o);c.t="n",c.F=a,delete c.v,s==i.s.r&&o==i.s.c&&(c.f=t,n&&(c.D=!0))}return r}var yA={encode_col:Wt,encode_row:ar,encode_cell:He,encode_range:Qe,decode_col:v1,decode_row:x1,split_cell:N8,decode_cell:Sr,decode_range:Gs,format_cell:hi,sheet_add_aoa:_E,sheet_add_json:xA,sheet_add_dom:fA,aoa_to_sheet:Xs,json_to_sheet:vB,table_to_sheet:dA,table_to_book:H9,sheet_to_csv:mA,sheet_to_txt:mB,sheet_to_json:r1,sheet_to_html:W9,sheet_to_formulae:xB,sheet_to_row_object_array:r1,sheet_get_cell:cl,book_new:I1,book_append_sheet:R1,book_set_sheet_visibility:bB,cell_set_number_format:wB,cell_set_hyperlink:vA,cell_set_internal_link:_B,cell_add_comment:DB,sheet_set_array_formula:TB,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};var
|
|
271
|
+
`;var t=mA(r,e);if(typeof at>"u"||e.type=="string")return t;var n=at.utils.encode(1200,t,"str");return"\xFF\xFE"+n}function xB(r){var e="",t,n="";if(r==null||r["!ref"]==null)return[];var i=Ct(r["!ref"]),a="",s=[],o,c=[],u=Array.isArray(r);for(o=i.s.c;o<=i.e.c;++o)s[o]=Wt(o);for(var h=i.s.r;h<=i.e.r;++h)for(a=ar(h),o=i.s.c;o<=i.e.c;++o)if(e=s[o]+a,t=u?(r[h]||[])[o]:r[e],n="",t!==void 0){if(t.F!=null){if(e=t.F,!t.f)continue;n=t.f,e.indexOf(":")==-1&&(e=e+":"+e)}if(t.f!=null)n=t.f;else{if(t.t=="z")continue;if(t.t=="n"&&t.v!=null)n=""+t.v;else if(t.t=="b")n=t.v?"TRUE":"FALSE";else if(t.w!==void 0)n="'"+t.w;else{if(t.v===void 0)continue;t.t=="s"?n="'"+t.v:n=""+t.v}}c[c.length]=e+"="+n}return c}function xA(r,e,t){var n=t||{},i=+!n.skipHeader,a=r||{},s=0,o=0;if(a&&n.origin!=null)if(typeof n.origin=="number")s=n.origin;else{var c=typeof n.origin=="string"?Sr(n.origin):n.origin;s=c.r,o=c.c}var u,h={s:{c:0,r:0},e:{c:o,r:s+e.length-1+i}};if(a["!ref"]){var f=Ct(a["!ref"]);h.e.c=Math.max(h.e.c,f.e.c),h.e.r=Math.max(h.e.r,f.e.r),s==-1&&(s=f.e.r+1,h.e.r=s+e.length-1+i)}else s==-1&&(s=0,h.e.r=e.length-1+i);var d=n.header||[],p=0;e.forEach(function(g,x){Wn(g).forEach(function(y){(p=d.indexOf(y))==-1&&(d[p=d.length]=y);var b=g[y],v="z",_="",A=He({c:o+p,r:s+x+i});u=cl(a,A),b&&typeof b=="object"&&!(b instanceof Date)?a[A]=b:(typeof b=="number"?v="n":typeof b=="boolean"?v="b":typeof b=="string"?v="s":b instanceof Date?(v="d",n.cellDates||(v="n",b=Cr(b)),_=n.dateNF||je[14]):b===null&&n.nullError&&(v="e",b=0),u?(u.t=v,u.v=b,delete u.w,delete u.R,_&&(u.z=_)):a[A]=u={t:v,v:b},_&&(u.z=_))})}),h.e.c=Math.max(h.e.c,o+d.length-1);var m=ar(s);if(i)for(p=0;p<d.length;++p)a[Wt(p+o)+m]={t:"s",v:d[p]};return a["!ref"]=Qe(h),a}function vB(r,e){return xA(null,r,e)}function cl(r,e,t){if(typeof e=="string"){if(Array.isArray(r)){var n=Sr(e);return r[n.r]||(r[n.r]=[]),r[n.r][n.c]||(r[n.r][n.c]={t:"z"})}return r[e]||(r[e]={t:"z"})}return typeof e!="number"?cl(r,He(e)):cl(r,He({r:e,c:t||0}))}function yB(r,e){if(typeof e=="number"){if(e>=0&&r.SheetNames.length>e)return e;throw new Error("Cannot find sheet # "+e)}else if(typeof e=="string"){var t=r.SheetNames.indexOf(e);if(t>-1)return t;throw new Error("Cannot find sheet name |"+e+"|")}else throw new Error("Cannot find sheet |"+e+"|")}function I1(){return{SheetNames:[],Sheets:{}}}function R1(r,e,t,n){var i=1;if(!t)for(;i<=65535&&r.SheetNames.indexOf(t="Sheet"+i)!=-1;++i,t=void 0);if(!t||r.SheetNames.length>=65535)throw new Error("Too many worksheets");if(n&&r.SheetNames.indexOf(t)>=0){var a=t.match(/(^.*?)(\d+)$/);i=a&&+a[2]||0;var s=a&&a[1]||t;for(++i;i<=65535&&r.SheetNames.indexOf(t=s+i)!=-1;++i);}if(n9(t),r.SheetNames.indexOf(t)>=0)throw new Error("Worksheet with name |"+t+"| already exists!");return r.SheetNames.push(t),r.Sheets[t]=e,t}function bB(r,e,t){r.Workbook||(r.Workbook={}),r.Workbook.Sheets||(r.Workbook.Sheets=[]);var n=yB(r,e);switch(r.Workbook.Sheets[n]||(r.Workbook.Sheets[n]={}),t){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+t)}r.Workbook.Sheets[n].Hidden=t}function wB(r,e){return r.z=e,r}function vA(r,e,t){return e?(r.l={Target:e},t&&(r.l.Tooltip=t)):delete r.l,r}function _B(r,e,t){return vA(r,"#"+e,t)}function DB(r,e,t){r.c||(r.c=[]),r.c.push({t:e,a:t||"SheetJS"})}function TB(r,e,t,n){for(var i=typeof e!="string"?e:Ct(e),a=typeof e=="string"?e:Qe(e),s=i.s.r;s<=i.e.r;++s)for(var o=i.s.c;o<=i.e.c;++o){var c=cl(r,s,o);c.t="n",c.F=a,delete c.v,s==i.s.r&&o==i.s.c&&(c.f=t,n&&(c.D=!0))}return r}var yA={encode_col:Wt,encode_row:ar,encode_cell:He,encode_range:Qe,decode_col:v1,decode_row:x1,split_cell:N8,decode_cell:Sr,decode_range:Gs,format_cell:hi,sheet_add_aoa:_E,sheet_add_json:xA,sheet_add_dom:fA,aoa_to_sheet:Xs,json_to_sheet:vB,table_to_sheet:dA,table_to_book:H9,sheet_to_csv:mA,sheet_to_txt:mB,sheet_to_json:r1,sheet_to_html:W9,sheet_to_formulae:xB,sheet_to_row_object_array:r1,sheet_get_cell:cl,book_new:I1,book_append_sheet:R1,book_set_sheet_visibility:bB,cell_set_number_format:wB,cell_set_hyperlink:vA,cell_set_internal_link:_B,cell_add_comment:DB,sheet_set_array_formula:TB,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};var yq=zT.version;var AB=8,bA=20*1024*1024,SB=32e6,CB=1.35,O1="";function FB(){return O1||(O1=URL.createObjectURL(new Blob([`/**
|
|
272
272
|
* @licstart The following is the entire license notice for the
|
|
273
273
|
* JavaScript code in this page
|
|
274
274
|
*
|
|
@@ -65419,7 +65419,7 @@ globalThis.pdfjsWorker = {
|
|
|
65419
65419
|
|
|
65420
65420
|
export { WorkerMessageHandler };
|
|
65421
65421
|
|
|
65422
|
-
//# sourceMappingURL=pdf.worker.mjs.map`],{type:"text/javascript"}))),O1}Gn.workerSrc=
|
|
65422
|
+
//# sourceMappingURL=pdf.worker.mjs.map`],{type:"text/javascript"}))),O1}Gn.workerSrc=FB();window.TradeComplianceSourcePreview={async renderPdf(r,{signal:e,targetWidth:t,devicePixelRatio:n}={}){let i=await B1(r,e,"PDF"),s=await R0({data:i}).promise,o=s.numPages,c=kB(o,AB),u=[],h=!1;try{for(let f of c){pl(e);let d=await s.getPage(f),p=d.getViewport({scale:1}),m=Number.isFinite(t)&&t>0?t:900,g=Number.isFinite(n)&&n>0?Math.min(n,4):1,x=Math.min(m*g*CB/Math.max(1,p.width),Math.sqrt(SB/Math.max(1,p.width*p.height))),y=d.getViewport({scale:x}),b=window.document.createElement("canvas");b.width=Math.ceil(y.width),b.height=Math.ceil(y.height);try{await d.render({canvas:b,canvasContext:b.getContext("2d"),viewport:y}).promise,pl(e),u.push(await IB(b))}finally{b.width=0,b.height=0,d.cleanup?.()}}return h=!0,{pages:u,pageNumbers:c,pageCount:o}}finally{h||UB(u),await s.destroy()}},async readSpreadsheet(r,{signal:e}={}){let t=await B1(r,e,"\u8868\u683C"),n=Nf(t,{type:"array",cellDates:!0,raw:!1,sheetRows:200});return pl(e),n.SheetNames.map(i=>({name:i,rows:yA.sheet_to_json(n.Sheets[i],{header:1,defval:"",raw:!1}).slice(0,200).map(a=>Array.isArray(a)?a.slice(0,30).map(s=>String(s??"")):[])})).filter(i=>i.rows.some(a=>a.some(Boolean)))},async convertDocx(r,{signal:e}={}){let t=await B1(r,e,"Word"),n=await wA.convertToHtml({arrayBuffer:t});return pl(e),n.value.replace(/<script[\s\S]*?<\/script>/gi,"").replace(/<style[\s\S]*?<\/style>/gi,"").replace(/\son\w+=(?:"[^"]*"|'[^']*')/gi,"")}};function kB(r,e){return r<=e?Array.from({length:r},(t,n)=>n+1):[...Array.from({length:e-2},(t,n)=>n+1),r-1,r]}async function B1(r,e,t){pl(e);let n=await fetch(r,{signal:e});if(!n.ok)throw new Error(`${t}\u6587\u4EF6\u8BFB\u53D6\u5931\u8D25\uFF08${n.status}\uFF09`);let i=Number(n.headers.get("content-length"));if(Number.isFinite(i)&&i>bA)throw new Error(`${t}\u6587\u4EF6\u8D85\u8FC7\u5728\u7EBF\u9884\u89C8\u9650\u5236\uFF0820 MB\uFF09\uFF0C\u8BF7\u4E0B\u8F7D\u539F\u6587\u4EF6\u67E5\u770B`);let a=new Uint8Array(await n.arrayBuffer());if(a.byteLength>bA)throw new Error(`${t}\u6587\u4EF6\u8D85\u8FC7\u5728\u7EBF\u9884\u89C8\u9650\u5236\uFF0820 MB\uFF09\uFF0C\u8BF7\u4E0B\u8F7D\u539F\u6587\u4EF6\u67E5\u770B`);return a}function pl(r){if(r?.aborted)throw new DOMException("\u9884\u89C8\u5DF2\u53D6\u6D88","AbortError")}function UB(r){for(let e of r)e.startsWith("blob:")&&URL.revokeObjectURL(e)}async function IB(r){let e=await new Promise((t,n)=>r.toBlob(i=>i?t(i):n(new Error("PDF \u9875\u9762\u8F6C\u7801\u5931\u8D25")),"image/png"));return URL.createObjectURL(e)}})();
|
|
65423
65423
|
/*! Bundled license information:
|
|
65424
65424
|
|
|
65425
65425
|
jszip/dist/jszip.min.js:
|