(globalThis.webpackChunk_affine_web=globalThis.webpackChunk_affine_web||[]).push([[1006],{39033:(t,e,o)=>{"use strict";o.d(e,{Nx:()=>d,vb:()=>s,A:()=>eA,ZT:()=>eu,KI:()=>eC,BY:()=>ey,oX:()=>em,xC:()=>el,iB:()=>eh,nW:()=>u,wT:()=>ev,eW:()=>eF,uT:()=>n,wd:()=>i,pI:()=>eg,vs:()=>ef,dG:()=>oo,Md:()=>eZ,UL:()=>e7,OG:()=>eX,qk:()=>eV,PA:()=>eq,Kc:()=>eH,tB:()=>e$,SZ:()=>eK,W1:()=>e9,I7:()=>eJ,GZ:()=>oe,rU:()=>eY,tg:()=>eQ,S7:()=>e_,q2:()=>e5,Ap:()=>h,OY:()=>ed,k0:()=>eb,WU:()=>r,qX:()=>l,DY:()=>c,hu:()=>a,or:()=>ep,S3:()=>k,v$:()=>Y,a_:()=>Q,i:()=>v,yd:()=>g,q0:()=>y,rk:()=>tT,VS:()=>tl,$Q:()=>B,U7:()=>j,OE:()=>_,T7:()=>tN,b5:()=>tU,fS:()=>tz,Dr:()=>R,p6:()=>eW,kb:()=>eI,ZE:()=>eU,Wy:()=>eL,vM:()=>eM,S0:()=>ez,uj:()=>A,tR:()=>w,XW:()=>ei,oS:()=>er,e6:()=>ee,n:()=>t7,vj:()=>t6,aC:()=>t2,V6:()=>t4,EF:()=>t1,aS:()=>tF,Aw:()=>ec,wl:()=>t5,Ew:()=>en,CQ:()=>t3,dS:()=>et,m:()=>t0,iW:()=>es,Fv:()=>ea,Tw:()=>tB,R:()=>ta,Z4:()=>th,GS:()=>tn,HF:()=>ti,CM:()=>tj,k7:()=>ek,Tf:()=>eD,sK:()=>eT,a5:()=>tt,nQ:()=>tc,tw:()=>$,sE:()=>ts,QK:()=>eB,eH:()=>X,Tl:()=>Z,F2:()=>b,nv:()=>S,YC:()=>te,du:()=>D,JA:()=>H,Qh:()=>tO,mJ:()=>tC,BK:()=>tA,t5:()=>z,Il:()=>eo,y4:()=>W,P8:()=>T,hs:()=>M,rI:()=>tf,Yc:()=>tg,Vv:()=>V,J2:()=>tD,zN:()=>tM,Cq:()=>tw,_u:()=>tx,M8:()=>td,XG:()=>q,Jl:()=>K,Kz:()=>ty,BI:()=>G,Hm:()=>J,FP:()=>tk,ZP:()=>tW,U4:()=>tS,Ie:()=>tP,$J:()=>tb,LW:()=>tm,jt:()=>tv,Sm:()=>tp,h$:()=>tu,mk:()=>L,db:()=>U,l$:()=>to,TB:()=>tr,xW:()=>P,eh:()=>x,kJ:()=>I});var r,n,i,a,s,c,u,l,h,d,f=o(75935),p=o(73028),g=function(t){return t instanceof p.S5?t:p.S5.of(t)},y=function(t){return t instanceof p.iu?t:p.iu.of(t)},v=function(t){return t instanceof p.iu?t.asNumber():t},m=o(50930);!function(t){t.Degrees="degrees",t.Radians="radians"}(r||(r={}));var b=function(t){return(0,m.jo)(t,"radianAngle",["number"]),{type:r.Radians,angle:t}},A=function(t){return(0,m.jo)(t,"degreeAngle",["number"]),{type:r.Degrees,angle:t}},C=r.Radians,F=r.Degrees,w=function(t){return t*Math.PI/180},S=function(t){return 180*t/Math.PI},x=function(t){return t.type===C?t.angle:t.type===F?w(t.angle):(0,m.z3)("Invalid rotation: "+JSON.stringify(t))},P=function(t){return t.type===C?S(t.angle):t.type===F?t.angle:(0,m.z3)("Invalid rotation: "+JSON.stringify(t))},D=function(t){void 0===t&&(t=0);var e=t/90%4;return 0===e?0:1===e?90:2===e?180:3===e?270:0},k=function(t,e){void 0===e&&(e=0);var o=D(e);return 90===o||270===o?{width:t.height,height:t.width}:{width:t.width,height:t.height}},T=function(t,e,o){void 0===e&&(e=0),void 0===o&&(o=0);var r=t.x,n=t.y,i=t.width,a=t.height,s=D(o),c=e/2;return 0===s?{x:r-c,y:n-c,width:i,height:a}:90===s?{x:r-a+c,y:n-c,width:a,height:i}:180===s?{x:r-i+c,y:n-a+c,width:i,height:a}:270===s?{x:r-c,y:n-i+c,width:a,height:i}:{x:r-c,y:n-c,width:i,height:a}},B=function(){return p.VK.of(p.Zt.ClipNonZero)},j=function(){return p.VK.of(p.Zt.ClipEvenOdd)},O=Math.cos,N=Math.sin,E=Math.tan,R=function(t,e,o,r,n,i){return p.VK.of(p.Zt.ConcatTransformationMatrix,[y(t),y(e),y(o),y(r),y(n),y(i)])},I=function(t,e){return R(1,0,0,1,t,e)},M=function(t,e){return R(t,0,0,e,0,0)},W=function(t){return R(O(v(t)),N(v(t)),-N(v(t)),O(v(t)),0,0)},z=function(t){return W(w(v(t)))},U=function(t,e){return R(1,E(v(t)),E(v(e)),1,0,0)},L=function(t,e){return U(w(v(t)),w(v(e)))},V=function(t,e){return p.VK.of(p.Zt.SetLineDashPattern,["["+t.map(y).join(" ")+"]",y(e)])},H=function(){return V([],0)};!function(t){t[t.Butt=0]="Butt",t[t.Round=1]="Round",t[t.Projecting=2]="Projecting"}(n||(n={}));var K=function(t){return p.VK.of(p.Zt.SetLineCapStyle,[y(t)])};!function(t){t[t.Miter=0]="Miter",t[t.Round=1]="Round",t[t.Bevel=2]="Bevel"}(i||(i={}));var G=function(t){return p.VK.of(p.Zt.SetLineJoinStyle,[y(t)])},q=function(t){return p.VK.of(p.Zt.SetGraphicsStateParams,[g(t)])},Z=function(){return p.VK.of(p.Zt.PushGraphicsState)},X=function(){return p.VK.of(p.Zt.PopGraphicsState)},J=function(t){return p.VK.of(p.Zt.SetLineWidth,[y(t)])},Y=function(t,e,o,r,n,i){return p.VK.of(p.Zt.AppendBezierCurve,[y(t),y(e),y(o),y(r),y(n),y(i)])},Q=function(t,e,o,r){return p.VK.of(p.Zt.CurveToReplicateInitialPoint,[y(t),y(e),y(o),y(r)])},_=function(){return p.VK.of(p.Zt.ClosePath)},$=function(t,e){return p.VK.of(p.Zt.MoveTo,[y(t),y(e)])},tt=function(t,e){return p.VK.of(p.Zt.LineTo,[y(t),y(e)])},te=function(t,e,o,r){return p.VK.of(p.Zt.AppendRectangle,[y(t),y(e),y(o),y(r)])},to=function(t,e,o){return te(t,e,o,o)},tr=function(){return p.VK.of(p.Zt.StrokePath)},tn=function(){return p.VK.of(p.Zt.FillNonZero)},ti=function(){return p.VK.of(p.Zt.FillNonZeroAndStroke)},ta=function(){return p.VK.of(p.Zt.EndPath)},ts=function(){return p.VK.of(p.Zt.NextLine)},tc=function(t,e){return p.VK.of(p.Zt.MoveText,[y(t),y(e)])},tu=function(t){return p.VK.of(p.Zt.ShowText,[t])},tl=function(){return p.VK.of(p.Zt.BeginText)},th=function(){return p.VK.of(p.Zt.EndText)},td=function(t,e){return p.VK.of(p.Zt.SetFontAndSize,[g(t),y(e)])},tf=function(t){return p.VK.of(p.Zt.SetCharacterSpacing,[y(t)])},tp=function(t){return p.VK.of(p.Zt.SetWordSpacing,[y(t)])},tg=function(t){return p.VK.of(p.Zt.SetTextHorizontalScaling,[y(t)])},ty=function(t){return p.VK.of(p.Zt.SetTextLineHeight,[y(t)])},tv=function(t){return p.VK.of(p.Zt.SetTextRise,[y(t)])};!function(t){t[t.Fill=0]="Fill",t[t.Outline=1]="Outline",t[t.FillAndOutline=2]="FillAndOutline",t[t.Invisible=3]="Invisible",t[t.FillAndClip=4]="FillAndClip",t[t.OutlineAndClip=5]="OutlineAndClip",t[t.FillAndOutlineAndClip=6]="FillAndOutlineAndClip",t[t.Clip=7]="Clip"}(a||(a={}));var tm=function(t){return p.VK.of(p.Zt.SetTextRenderingMode,[y(t)])},tb=function(t,e,o,r,n,i){return p.VK.of(p.Zt.SetTextMatrix,[y(t),y(e),y(o),y(r),y(n),y(i)])},tA=function(t,e,o,r,n){return tb(O(v(t)),N(v(t))+E(v(e)),-N(v(t))+E(v(o)),O(v(t)),r,n)},tC=function(t,e,o,r,n){return tA(w(v(t)),w(v(e)),w(v(o)),r,n)},tF=function(t){return p.VK.of(p.Zt.DrawObject,[g(t)])},tw=function(t){return p.VK.of(p.Zt.NonStrokingColorGray,[y(t)])},tS=function(t){return p.VK.of(p.Zt.StrokingColorGray,[y(t)])},tx=function(t,e,o){return p.VK.of(p.Zt.NonStrokingColorRgb,[y(t),y(e),y(o)])},tP=function(t,e,o){return p.VK.of(p.Zt.StrokingColorRgb,[y(t),y(e),y(o)])},tD=function(t,e,o,r){return p.VK.of(p.Zt.NonStrokingColorCmyk,[y(t),y(e),y(o),y(r)])},tk=function(t,e,o,r){return p.VK.of(p.Zt.StrokingColorCmyk,[y(t),y(e),y(o),y(r)])},tT=function(t){return p.VK.of(p.Zt.BeginMarkedContent,[g(t)])},tB=function(){return p.VK.of(p.Zt.EndMarkedContent)};!function(t){t.Grayscale="Grayscale",t.RGB="RGB",t.CMYK="CMYK"}(s||(s={}));var tj=function(t){return(0,m.Qb)(t,"gray",0,1),{type:s.Grayscale,gray:t}},tO=function(t,e,o){return(0,m.Qb)(t,"red",0,1),(0,m.Qb)(e,"green",0,1),(0,m.Qb)(o,"blue",0,1),{type:s.RGB,red:t,green:e,blue:o}},tN=function(t,e,o,r){return(0,m.Qb)(t,"cyan",0,1),(0,m.Qb)(e,"magenta",0,1),(0,m.Qb)(o,"yellow",0,1),(0,m.Qb)(r,"key",0,1),{type:s.CMYK,cyan:t,magenta:e,yellow:o,key:r}},tE=s.Grayscale,tR=s.RGB,tI=s.CMYK,tM=function(t){return t.type===tE?tw(t.gray):t.type===tR?tx(t.red,t.green,t.blue):t.type===tI?tD(t.cyan,t.magenta,t.yellow,t.key):(0,m.z3)("Invalid color: "+JSON.stringify(t))},tW=function(t){return t.type===tE?tS(t.gray):t.type===tR?tP(t.red,t.green,t.blue):t.type===tI?tk(t.cyan,t.magenta,t.yellow,t.key):(0,m.z3)("Invalid color: "+JSON.stringify(t))},tz=function(t,e){return void 0===e&&(e=1),(null==t?void 0:t.length)===1?tj(t[0]*e):(null==t?void 0:t.length)===3?tO(t[0]*e,t[1]*e,t[2]*e):(null==t?void 0:t.length)===4?tN(t[0]*e,t[1]*e,t[2]*e,t[3]*e):void 0},tU=function(t){return t.type===tE?[t.gray]:t.type===tR?[t.red,t.green,t.blue]:t.type===tI?[t.cyan,t.magenta,t.yellow,t.key]:(0,m.z3)("Invalid color: "+JSON.stringify(t))},tL=0,tV=0,tH=0,tK=0,tG=0,tq=0,tZ=new Map([["A",7],["a",7],["C",6],["c",6],["H",1],["h",1],["L",2],["l",2],["M",2],["m",2],["Q",4],["q",4],["S",4],["s",4],["T",2],["t",2],["V",1],["v",1],["Z",0],["z",0]]),tX=function(t){for(var e,o=[],r=[],n="",i=!1,a=0,s=0;s0&&(r[r.length]=+n),o[o.length]={cmd:e,args:r},r=[],n="",i=!1),e=c;else if([" ",","].includes(c)||"-"===c&&n.length>0&&"e"!==n[n.length-1]||"."===c&&i){if(0===n.length)continue;r.length===a?(o[o.length]={cmd:e,args:r},r=[+n],"M"===e&&(e="L"),"m"===e&&(e="l")):r[r.length]=+n,i="."===c,n=["-","."].includes(c)?c:""}else n+=c,"."===c&&(i=!0)}return n.length>0&&(r.length===a?(o[o.length]={cmd:e,args:r},r=[+n],"M"===e&&(e="L"),"m"===e&&(e="l")):r[r.length]=+n),o[o.length]={cmd:e,args:r},o},tJ=function(t){tL=tV=tH=tK=tG=tq=0;for(var e=[],o=0;o1&&(o*=d=Math.sqrt(d),r*=d);var f=h/o,p=l/o,g=-l/r,y=h/r,v=f*s+p*c,m=g*s+y*c,b=f*t+p*e,A=g*t+y*e,C=1/((b-v)*(b-v)+(A-m)*(A-m))-.25;C<0&&(C=0);var F=Math.sqrt(C);i===n&&(F=-F);var w=.5*(v+b)-F*(A-m),S=.5*(m+A)+F*(b-v),x=Math.atan2(m-S,v-w),P=Math.atan2(A-S,b-w)-x;P<0&&1===i?P+=2*Math.PI:P>0&&0===i&&(P-=2*Math.PI);for(var D=Math.ceil(Math.abs(P/(.5*Math.PI+.001))),k=[],T=0;Tt.length)return n-1;var p=e.heightAtSize(n);if((p+.2*p)*i>Math.abs(o.height))return n-1;n+=1}return n},eS=function(t,e,o,r){for(var n=o.width/r,i=o.height,a=4,s=(0,m.BP)(t);a<500;){for(var c=0,u=s.length;c.75*n)return a-1}if(e.heightAtSize(a,{descender:!1})>i)return a-1;a+=1}return a},ex=function(t){for(var e=t.length;e>0;e--)if(/\s/.test(t[e]))return e},eP=function(t,e,o,r){for(var n,i=t.length;i>0;){var a=t.substring(0,i),s=o.encodeText(a),c=o.widthOfTextAtSize(a,r);if(cf&&(f=x+w),g+s>p&&(p=g+s),l.push({text:C,encoded:F,width:w,height:s,x:x,y:g}),b=null==S?void 0:S.trim()}return{fontSize:r,lineHeight:u,lines:l,bounds:{x:h,y:d,width:f-h,height:p-d}}},ek=function(t,e){var o=e.fontSize,r=e.font,n=e.bounds,i=e.cellCount,a=(0,m.Ac)((0,m.X5)(t));if(a.length>i)throw new eA(a.length,i);(void 0===o||0===o)&&(o=eS(a,r,n,i));for(var s=n.width/i,c=r.heightAtSize(o,{descender:!1}),u=n.y+(n.height/2-c/2),l=[],h=n.x,d=n.y,f=n.x+n.width,p=n.y+n.height,g=0,y=0;gf&&(f=w+F),u+c>p&&(p=u+c),l.push({text:a,encoded:C,width:F,height:c,x:w,y:u}),g+=1,y+=A}return{fontSize:o,cells:l,bounds:{x:h,y:d,width:f-h,height:p-d}}},eT=function(t,e){var o=e.alignment,r=e.fontSize,n=e.font,i=e.bounds,a=(0,m.Ac)((0,m.X5)(t));(void 0===r||0===r)&&(r=ew([a],n,i));var s=n.encodeText(a),u=n.widthOfTextAtSize(a,r),l=n.heightAtSize(r,{descender:!1}),h=o===c.Left?i.x:o===c.Center?i.x+i.width/2-u/2:o===c.Right?i.x+i.width-u:i.x,d=i.y+(i.height/2-l/2);return{fontSize:r,line:{text:a,encoded:s,width:u,height:l,x:h,y:d},bounds:{x:h,y:d,width:u,height:l}}},eB=function(t){return"normal"in t?t:{normal:t}},ej=/\/([^\0\t\n\f\r\ ]+)[\0\t\n\f\r\ ]+(\d*\.\d+|\d+)[\0\t\n\f\r\ ]+Tf/,eO=function(t){var e,o,r=null!==(e=t.getDefaultAppearance())&&void 0!==e?e:"",n=Number((null!==(o=(0,m.dJ)(r,ej).match)&&void 0!==o?o:[])[2]);return isFinite(n)?n:void 0},eN=/(\d*\.\d+|\d+)[\0\t\n\f\r\ ]*(\d*\.\d+|\d+)?[\0\t\n\f\r\ ]*(\d*\.\d+|\d+)?[\0\t\n\f\r\ ]*(\d*\.\d+|\d+)?[\0\t\n\f\r\ ]+(g|rg|k)/,eE=function(t){var e,o=null!==(e=t.getDefaultAppearance())&&void 0!==e?e:"",r=(0,m.dJ)(o,eN).match,n=null!=r?r:[],i=n[1],a=n[2],s=n[3],c=n[4],u=n[5];return"g"===u&&i?tj(Number(i)):"rg"===u&&i&&a&&s?tO(Number(i),Number(a),Number(s)):"k"===u&&i&&a&&s&&c?tN(Number(i),Number(a),Number(s),Number(c)):void 0},eR=function(t,e,o,r){void 0===r&&(r=0);var n,i=[tM(e).toString(),td(null!==(n=null==o?void 0:o.name)&&void 0!==n?n:"dummy__noop",r).toString()].join("\n");t.setDefaultAppearance(i)},eI=function(t,e){var o,r,n,i=eE(e),a=eE(t.acroField),s=e.getRectangle(),c=e.getAppearanceCharacteristics(),u=e.getBorderStyle(),l=null!==(o=null==u?void 0:u.getWidth())&&void 0!==o?o:0,h=D(null==c?void 0:c.getRotation()),d=k(s,h),p=d.width,g=d.height,y=eo((0,f.Cl)((0,f.Cl)({},s),{rotation:h})),v=tO(0,0,0),m=null!==(r=tz(null==c?void 0:c.getBorderColor()))&&void 0!==r?r:v,b=tz(null==c?void 0:c.getBackgroundColor()),A=tz(null==c?void 0:c.getBackgroundColor(),.8),C=null!==(n=null!=i?i:a)&&void 0!==n?n:v;i?eR(e,C):eR(t.acroField,C);var F={x:0+l/2,y:0+l/2,width:p-l,height:g-l,thickness:1.5,borderWidth:l,borderColor:m,markColor:C};return{normal:{on:(0,f.aN)(y,er((0,f.Cl)((0,f.Cl)({},F),{color:b,filled:!0}))),off:(0,f.aN)(y,er((0,f.Cl)((0,f.Cl)({},F),{color:b,filled:!1})))},down:{on:(0,f.aN)(y,er((0,f.Cl)((0,f.Cl)({},F),{color:A,filled:!0}))),off:(0,f.aN)(y,er((0,f.Cl)((0,f.Cl)({},F),{color:A,filled:!1})))}}},eM=function(t,e){var o,r,n,i=eE(e),a=eE(t.acroField),s=e.getRectangle(),c=e.getAppearanceCharacteristics(),u=e.getBorderStyle(),l=null!==(o=null==u?void 0:u.getWidth())&&void 0!==o?o:0,h=D(null==c?void 0:c.getRotation()),d=k(s,h),p=d.width,g=d.height,y=eo((0,f.Cl)((0,f.Cl)({},s),{rotation:h})),v=tO(0,0,0),m=null!==(r=tz(null==c?void 0:c.getBorderColor()))&&void 0!==r?r:v,b=tz(null==c?void 0:c.getBackgroundColor()),A=tz(null==c?void 0:c.getBackgroundColor(),.8),C=null!==(n=null!=i?i:a)&&void 0!==n?n:v;i?eR(e,C):eR(t.acroField,C);var F={x:p/2,y:g/2,width:p-l,height:g-l,borderWidth:l,borderColor:m,dotColor:C};return{normal:{on:(0,f.aN)(y,en((0,f.Cl)((0,f.Cl)({},F),{color:b,filled:!0}))),off:(0,f.aN)(y,en((0,f.Cl)((0,f.Cl)({},F),{color:b,filled:!1})))},down:{on:(0,f.aN)(y,en((0,f.Cl)((0,f.Cl)({},F),{color:A,filled:!0}))),off:(0,f.aN)(y,en((0,f.Cl)((0,f.Cl)({},F),{color:A,filled:!1})))}}},eW=function(t,e,o){var r,n,i,a,s,u=eE(e),l=eE(t.acroField),h=eO(e),d=eO(t.acroField),p=e.getRectangle(),g=e.getAppearanceCharacteristics(),y=e.getBorderStyle(),v=null==g?void 0:g.getCaptions(),m=null!==(r=null==v?void 0:v.normal)&&void 0!==r?r:"",b=null!==(i=null!==(n=null==v?void 0:v.down)&&void 0!==n?n:m)&&void 0!==i?i:"",A=null!==(a=null==y?void 0:y.getWidth())&&void 0!==a?a:0,C=D(null==g?void 0:g.getRotation()),F=k(p,C),w=F.width,S=F.height,x=eo((0,f.Cl)((0,f.Cl)({},p),{rotation:C})),P=tO(0,0,0),T=tz(null==g?void 0:g.getBorderColor()),B=tz(null==g?void 0:g.getBackgroundColor()),j=tz(null==g?void 0:g.getBackgroundColor(),.8),O={x:A,y:A,width:w-2*A,height:S-2*A},N=eT(m,{alignment:c.Center,fontSize:null!=h?h:d,font:o,bounds:O}),E=eT(b,{alignment:c.Center,fontSize:null!=h?h:d,font:o,bounds:O}),R=Math.min(N.fontSize,E.fontSize),I=null!==(s=null!=u?u:l)&&void 0!==s?s:P;u||void 0!==h?eR(e,I,o,R):eR(t.acroField,I,o,R);var M={x:0+A/2,y:0+A/2,width:w-A,height:S-A,borderWidth:A,borderColor:T,textColor:I,font:o.name,fontSize:R};return{normal:(0,f.aN)(x,ei((0,f.Cl)((0,f.Cl)({},M),{color:B,textLines:[N.line]}))),down:(0,f.aN)(x,ei((0,f.Cl)((0,f.Cl)({},M),{color:j,textLines:[E.line]})))}},ez=function(t,e,o){var r,n,i,a,s,c,u=eE(e),l=eE(t.acroField),h=eO(e),d=eO(t.acroField),p=e.getRectangle(),g=e.getAppearanceCharacteristics(),y=e.getBorderStyle(),v=null!==(r=t.getText())&&void 0!==r?r:"",m=null!==(n=null==y?void 0:y.getWidth())&&void 0!==n?n:0,b=D(null==g?void 0:g.getRotation()),A=k(p,b),C=A.width,F=A.height,w=eo((0,f.Cl)((0,f.Cl)({},p),{rotation:b})),S=tO(0,0,0),x=tz(null==g?void 0:g.getBorderColor()),P=tz(null==g?void 0:g.getBackgroundColor()),T=t.isCombed()?0:1,B={x:m+T,y:m+T,width:C-(m+T)*2,height:F-(m+T)*2};if(t.isMultiline()){var j=eD(v,{alignment:t.getAlignment(),fontSize:null!=h?h:d,font:o,bounds:B});s=j.lines,c=j.fontSize}else if(t.isCombed()){var j=ek(v,{fontSize:null!=h?h:d,font:o,bounds:B,cellCount:null!==(i=t.getMaxLength())&&void 0!==i?i:0});s=j.cells,c=j.fontSize}else{var j=eT(v,{alignment:t.getAlignment(),fontSize:null!=h?h:d,font:o,bounds:B});s=[j.line],c=j.fontSize}var O=null!==(a=null!=u?u:l)&&void 0!==a?a:S;u||void 0!==h?eR(e,O,o,c):eR(t.acroField,O,o,c);var N={x:0+m/2,y:0+m/2,width:C-m,height:F-m,borderWidth:null!=m?m:0,borderColor:x,textColor:O,font:o.name,fontSize:c,color:P,textLines:s,padding:T};return(0,f.aN)(w,es(N))},eU=function(t,e,o){var r,n,i,a=eE(e),s=eE(t.acroField),u=eO(e),l=eO(t.acroField),h=e.getRectangle(),d=e.getAppearanceCharacteristics(),p=e.getBorderStyle(),g=null!==(r=t.getSelected()[0])&&void 0!==r?r:"",y=null!==(n=null==p?void 0:p.getWidth())&&void 0!==n?n:0,v=D(null==d?void 0:d.getRotation()),m=k(h,v),b=m.width,A=m.height,C=eo((0,f.Cl)((0,f.Cl)({},h),{rotation:v})),F=tO(0,0,0),w=tz(null==d?void 0:d.getBorderColor()),S=tz(null==d?void 0:d.getBackgroundColor()),x=eT(g,{alignment:c.Left,fontSize:null!=u?u:l,font:o,bounds:{x:y+1,y:y+1,width:b-(y+1)*2,height:A-(y+1)*2}}),P=x.line,T=x.fontSize,B=null!==(i=null!=a?a:s)&&void 0!==i?i:F;a||void 0!==u?eR(e,B,o,T):eR(t.acroField,B,o,T);var j={x:0+y/2,y:0+y/2,width:b-y,height:A-y,borderWidth:null!=y?y:0,borderColor:w,textColor:B,font:o.name,fontSize:T,color:S,textLines:[P],padding:1};return(0,f.aN)(C,es(j))},eL=function(t,e,o){var r,n,i=eE(e),a=eE(t.acroField),s=eO(e),u=eO(t.acroField),l=e.getRectangle(),h=e.getAppearanceCharacteristics(),d=e.getBorderStyle(),p=null!==(r=null==d?void 0:d.getWidth())&&void 0!==r?r:0,g=D(null==h?void 0:h.getRotation()),y=k(l,g),v=y.width,m=y.height,b=eo((0,f.Cl)((0,f.Cl)({},l),{rotation:g})),A=tO(0,0,0),C=tz(null==h?void 0:h.getBorderColor()),F=tz(null==h?void 0:h.getBackgroundColor()),w=t.getOptions(),S=t.getSelected();t.isSorted()&&w.sort();for(var x="",P=0,T=w.length;P1||1===o.length&&e)&&this.enableMultiselect();for(var n=Array(o.length),i=0,a=o.length;i1||1===o.length&&e)&&this.enableMultiselect();for(var n=Array(o.length),i=0,a=o.length;ie)throw new eC(t.length,e,this.getName());this.markAsDirty(),this.disableRichFormatting(),t?this.acroField.setValue(p.lv.fromText(t)):this.acroField.removeValue()},e.prototype.getAlignment=function(){var t=this.acroField.getQuadding();return 0===t?c.Left:1===t?c.Center:2===t?c.Right:c.Left},e.prototype.setAlignment=function(t){(0,m.Co)(t,"alignment",c),this.markAsDirty(),this.acroField.setQuadding(t)},e.prototype.getMaxLength=function(){return this.acroField.getMaxLength()},e.prototype.setMaxLength=function(t){if((0,m.Dw)(t,"maxLength",0,Number.MAX_SAFE_INTEGER),this.markAsDirty(),void 0===t)this.acroField.removeMaxLength();else{var e=this.getText();if(e&&e.length>t)throw new eF(e.length,t,this.getName());this.acroField.setMaxLength(t)}},e.prototype.removeMaxLength=function(){this.markAsDirty(),this.acroField.removeMaxLength()},e.prototype.setImage=function(t){for(var e=this.getAlignment(),o=e===c.Center?u.Center:e===c.Right?u.Right:u.Left,r=this.acroField.getWidgets(),n=0,i=r.length;n{"use strict";o.d(e,{A:()=>s,G:()=>r});var r,n=o(75935),i=o(76848),a=o(75785);!function(t){t.Source="Source",t.Data="Data",t.Alternative="Alternative",t.Supplement="Supplement",t.EncryptedPayload="EncryptedPayload",t.FormData="EncryptedPayload",t.Schema="Schema",t.Unspecified="Unspecified"}(r||(r={}));let s=function(){function t(t,e,o){void 0===o&&(o={}),this.fileData=t,this.fileName=e,this.options=o}return t.for=function(e,o,r){return void 0===r&&(r={}),new t(e,o,r)},t.prototype.embedIntoContext=function(t,e){return(0,n.sH)(this,void 0,void 0,function(){var o,r,s,c,u,l,h,d,f;return(0,n.YH)(this,function(n){return(r=(o=this.options).mimeType,s=o.description,c=o.creationDate,u=o.modificationDate,l=o.afRelationship,h=t.flateStream(this.fileData,{Type:"EmbeddedFile",Subtype:null!=r?r:void 0,Params:{Size:this.fileData.length,CreationDate:c?i.A.fromDate(c):void 0,ModDate:u?i.A.fromDate(u):void 0}}),d=t.register(h),f=t.obj({Type:"Filespec",F:i.A.of(this.fileName),UF:a.A.fromText(this.fileName),EF:{F:d},Desc:s?a.A.fromText(s):void 0,AFRelationship:null!=l?l:void 0}),e)?(t.assign(e,f),[2,e]):[2,t.register(f)]})})},t}()},36289:(t,e,o)=>{"use strict";o.d(e,{$T:()=>s,B4:()=>c,EQ:()=>a,F2:()=>F,FY:()=>D,Hi:()=>A,I8:()=>w,IX:()=>d,JA:()=>f,Jl:()=>B,Kc:()=>j,OT:()=>p,PU:()=>y,Qj:()=>T,bq:()=>g,cR:()=>b,cZ:()=>O,eM:()=>x,fx:()=>m,g9:()=>l,jM:()=>u,ju:()=>i,m2:()=>P,o4:()=>C,rY:()=>S,tV:()=>k,tX:()=>h,vV:()=>v});var r=o(75935),n=o(50930),i=function(t){function e(e,o){return t.call(this,"Method "+e+"."+o+"() not implemented")||this}return(0,r.C6)(e,t),e}(Error),a=function(t){function e(e){return t.call(this,"Cannot construct "+e+" - it has a private constructor")||this}return(0,r.C6)(e,t),e}(Error),s=function(t){function e(e,o){var r=function(t){var e,o;return null!==(e=null==t?void 0:t.name)&&void 0!==e?e:null===(o=null==t?void 0:t.constructor)||void 0===o?void 0:o.name},n="Expected instance of "+(Array.isArray(e)?e.map(r):[r(e)]).join(" or ")+", but got instance of "+(o?r(o):o);return t.call(this,n)||this}return(0,r.C6)(e,t),e}(Error),c=function(t){function e(e){return t.call(this,e+" stream encoding not supported")||this}return(0,r.C6)(e,t),e}(Error),u=function(t){function e(e,o){return t.call(this,"Cannot call "+e+"."+o+"() more than once")||this}return(0,r.C6)(e,t),e}(Error),l=function(t){function e(e){return t.call(this,"Missing catalog (ref="+e+")")||this}return(0,r.C6)(e,t),e}(Error),h=function(t){function e(){return t.call(this,"Can't embed page with missing Contents")||this}return(0,r.C6)(e,t),e}(Error),d=function(t){function e(e){var o,r,n,i=null!==(n=null!==(r=null===(o=null==e?void 0:e.contructor)||void 0===o?void 0:o.name)&&void 0!==r?r:null==e?void 0:e.name)&&void 0!==n?n:e;return t.call(this,"Unrecognized stream type: "+i)||this}return(0,r.C6)(e,t),e}(Error),f=function(t){function e(){return t.call(this,"Found mismatched contexts while embedding pages. All pages in the array passed to `PDFDocument.embedPages()` must be from the same document.")||this}return(0,r.C6)(e,t),e}(Error),p=function(t){function e(e){return t.call(this,"Attempted to convert PDFArray with "+e+" elements to rectangle, but must have exactly 4 elements.")||this}return(0,r.C6)(e,t),e}(Error),g=function(t){function e(e){return t.call(this,'Attempted to convert "'+e+'" to a date, but it does not match the PDF date string format.')||this}return(0,r.C6)(e,t),e}(Error),y=function(t){function e(e,o){return t.call(this,"Invalid targetIndex specified: targetIndex="+e+" must be less than Count="+o)||this}return(0,r.C6)(e,t),e}(Error),v=function(t){function e(e,o){return t.call(this,"Failed to "+o+" at targetIndex="+e+" due to corrupt page tree: It is likely that one or more 'Count' entries are invalid")||this}return(0,r.C6)(e,t),e}(Error),m=function(t){function e(e,o,r){return t.call(this,"index should be at least "+o+" and at most "+r+", but was actually "+e)||this}return(0,r.C6)(e,t),e}(Error),b=function(t){function e(){return t.call(this,"Attempted to set invalid field value")||this}return(0,r.C6)(e,t),e}(Error),A=function(t){function e(){return t.call(this,"Attempted to select multiple values for single-select field")||this}return(0,r.C6)(e,t),e}(Error),C=function(t){function e(e){return t.call(this,"No /DA (default appearance) entry found for field: "+e)||this}return(0,r.C6)(e,t),e}(Error),F=function(t){function e(e){return t.call(this,"No Tf operator found for DA of field: "+e)||this}return(0,r.C6)(e,t),e}(Error),w=function(t){function e(e,o){var r="Failed to parse number "+("(line:"+e.line+" col:"+e.column+" offset="+e.offset)+'): "'+o+'"';return t.call(this,r)||this}return(0,r.C6)(e,t),e}(Error),S=function(t){function e(e,o){var r="Failed to parse PDF document "+("(line:"+e.line+" col:"+e.column+" offset=")+e.offset+"): "+o;return t.call(this,r)||this}return(0,r.C6)(e,t),e}(Error),x=function(t){function e(e,o,r){return t.call(this,e,"Expected next byte to be "+o+" but it was actually "+r)||this}return(0,r.C6)(e,t),e}(S),P=function(t){function e(e,o){return t.call(this,e,"Failed to parse PDF object starting with the following byte: "+o)||this}return(0,r.C6)(e,t),e}(S),D=function(t){function e(e){return t.call(this,e,"Failed to parse invalid PDF object")||this}return(0,r.C6)(e,t),e}(S),k=function(t){function e(e){return t.call(this,e,"Failed to parse PDF stream")||this}return(0,r.C6)(e,t),e}(S),T=function(t){function e(e){return t.call(this,e,"Failed to parse PDF literal string due to unbalanced parenthesis")||this}return(0,r.C6)(e,t),e}(S),B=function(t){function e(e){return t.call(this,e,"Parser stalled")||this}return(0,r.C6)(e,t),e}(S),j=function(t){function e(e){return t.call(this,e,"No PDF header found")||this}return(0,r.C6)(e,t),e}(S),O=function(t){function e(e,o){var r="Did not find expected keyword '"+(0,n.pZ)(o)+"'";return t.call(this,e,r)||this}return(0,r.C6)(e,t),e}(S)},73028:(t,e,o)=>{"use strict";o.d(e,{Go:()=>tb.G,Tz:()=>d,qM:()=>p,Zo:()=>h,Il:()=>f,bO:()=>g,N9:()=>t_,J_:()=>v.A,vV:()=>y.vV,pp:()=>tv,Bo:()=>tm,d1:()=>l,jA:()=>tb.A,fx:()=>y.fx,cR:()=>y.cR,bq:()=>y.bq,PU:()=>y.PU,Dm:()=>tF,ju:()=>y.ju,g9:()=>y.g9,o4:()=>y.o4,cZ:()=>y.cZ,Kc:()=>y.Kc,tX:()=>y.tX,F2:()=>y.F2,Hi:()=>y.Hi,eM:()=>y.eM,bj:()=>s,I8:()=>y.I8,I:()=>t1,RL:()=>t2,xm:()=>t4,Bi:()=>t3,el:()=>tJ,In:()=>eh,ld:()=>ee,z5:()=>t9,OR:()=>t7,b$:()=>et,oz:()=>t6,AC:()=>t0,BM:()=>t8,sz:()=>tQ,y3:()=>x,OT:()=>y.OT,$l:()=>D,am:()=>ed,CB:()=>G,yQ:()=>X,JX:()=>Q,_q:()=>tr,Ri:()=>I,V0:()=>K,w$:()=>F,lv:()=>ta.A,j6:()=>to,FY:()=>y.FY,S5:()=>E,qQ:()=>R,iu:()=>S,YA:()=>w.A,Gw:()=>Y,np:()=>ek,m2:()=>y.m2,et:()=>tt,D7:()=>eT,VK:()=>V,Zt:()=>H,kO:()=>tG,y1:()=>J,KF:()=>ef,gS:()=>ej,rY:()=>y.rY,T9:()=>W,so:()=>L,h0:()=>M,tV:()=>y.tV,k_:()=>tn,mA:()=>ty.A,Kk:()=>_,W4:()=>$,Ml:()=>t$,Sl:()=>te,bs:()=>eB,JA:()=>y.JA,cV:()=>tD,Nq:()=>u,EQ:()=>y.EQ,s3:()=>c,jM:()=>y.jM,Jl:()=>y.Jl,hM:()=>ts,Qj:()=>y.Qj,$T:()=>y.$T,IX:()=>y.IX,B4:()=>y.B4,x7:()=>tZ,o:()=>er,h$:()=>eo,jY:()=>tH});var r,n,i,a,s,c,u,l,h,d,f,p,g,y=o(36289),v=o(84676),m=o(75935),b=o(78530),A=o.n(b),C=o(50930);let F=function(){function t(t,e){this.major=String(t),this.minor=String(e)}return t.prototype.toString=function(){var t=(0,C.sJ)(129);return"%PDF-"+this.major+"."+this.minor+"\n%"+t+t+t+t},t.prototype.sizeInBytes=function(){return 12+this.major.length+this.minor.length},t.prototype.copyBytesInto=function(t,e){var o=e;return t[e++]=v.A.Percent,t[e++]=v.A.P,t[e++]=v.A.D,t[e++]=v.A.F,t[e++]=v.A.Dash,e+=(0,C.BO)(this.major,t,e),t[e++]=v.A.Period,e+=(0,C.BO)(this.minor,t,e),t[e++]=v.A.Newline,t[e++]=v.A.Percent,t[e++]=129,t[e++]=129,t[e++]=129,t[e++]=129,e-o},t.forVersion=function(e,o){return new t(e,o)},t}();var w=o(6210);let S=function(t){function e(e){var o=t.call(this)||this;return o.numberValue=e,o.stringValue=(0,C.um)(e),o}return(0,m.C6)(e,t),e.prototype.asNumber=function(){return this.numberValue},e.prototype.value=function(){return this.numberValue},e.prototype.clone=function(){return e.of(this.numberValue)},e.prototype.toString=function(){return this.stringValue},e.prototype.sizeInBytes=function(){return this.stringValue.length},e.prototype.copyBytesInto=function(t,e){return e+=(0,C.BO)(this.stringValue,t,e),this.stringValue.length},e.of=function(t){return new e(t)},e}(w.A),x=function(t){function e(e){var o=t.call(this)||this;return o.array=[],o.context=e,o}return(0,m.C6)(e,t),e.prototype.size=function(){return this.array.length},e.prototype.push=function(t){this.array.push(t)},e.prototype.insert=function(t,e){this.array.splice(t,0,e)},e.prototype.indexOf=function(t){var e=this.array.indexOf(t);return -1===e?void 0:e},e.prototype.remove=function(t){this.array.splice(t,1)},e.prototype.set=function(t,e){this.array[t]=e},e.prototype.get=function(t){return this.array[t]},e.prototype.lookupMaybe=function(t){for(var e,o=[],r=1;r=v.A.ExclamationPoint&&c<=v.A.Tilde&&!B[c]?s:"#"+(0,C.U5)(c)}return r.encodedName=n,r}return(0,m.C6)(e,t),e.prototype.asBytes=function(){for(var t=[],e="",o=!1,r=function(e){void 0!==e&&t.push(e),o=!1},n=1,i=this.encodedName.length;n=v.A.Zero&&s<=v.A.Nine||s>=v.A.a&&s<=v.A.f||s>=v.A.A&&s<=v.A.F?2!==(e+=a).length&&(c>="0"&&c<="9"||c>="a"&&c<="f"||c>="A"&&c<="F")||(r(parseInt(e,16)),e=""):r(s):s===v.A.Hash?o=!0:r(s)}return new Uint8Array(t)},e.prototype.decodeText=function(){var t=this.asBytes();return String.fromCharCode.apply(String,Array.from(t))},e.prototype.asString=function(){return this.encodedName},e.prototype.value=function(){return this.encodedName},e.prototype.clone=function(){return this},e.prototype.toString=function(){return this.encodedName},e.prototype.sizeInBytes=function(){return this.encodedName.length},e.prototype.copyBytesInto=function(t,e){return e+=(0,C.BO)(this.encodedName,t,e),this.encodedName.length},e.of=function(t){var o=t.replace(/#([\dABCDEF]{2})/g,function(t,e){return(0,C.Di)(e)}),r=N.get(o);return r||(r=new e(O,o),N.set(o,r)),r},e.Length=e.of("Length"),e.FlateDecode=e.of("FlateDecode"),e.Resources=e.of("Resources"),e.Font=e.of("Font"),e.XObject=e.of("XObject"),e.ExtGState=e.of("ExtGState"),e.Contents=e.of("Contents"),e.Type=e.of("Type"),e.Parent=e.of("Parent"),e.MediaBox=e.of("MediaBox"),e.Page=e.of("Page"),e.Annots=e.of("Annots"),e.TrimBox=e.of("TrimBox"),e.ArtBox=e.of("ArtBox"),e.BleedBox=e.of("BleedBox"),e.CropBox=e.of("CropBox"),e.Rotate=e.of("Rotate"),e.Title=e.of("Title"),e.Author=e.of("Author"),e.Subject=e.of("Subject"),e.Creator=e.of("Creator"),e.Keywords=e.of("Keywords"),e.Producer=e.of("Producer"),e.CreationDate=e.of("CreationDate"),e.ModDate=e.of("ModDate"),e}(w.A),R=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,m.C6)(e,t),e.prototype.asNull=function(){return null},e.prototype.clone=function(){return this},e.prototype.toString=function(){return"null"},e.prototype.sizeInBytes=function(){return 4},e.prototype.copyBytesInto=function(t,e){return t[e++]=v.A.n,t[e++]=v.A.u,t[e++]=v.A.l,t[e++]=v.A.l,4},e}(w.A)),I=function(t){function e(e,o){var r=t.call(this)||this;return r.dict=e,r.context=o,r}return(0,m.C6)(e,t),e.prototype.keys=function(){return Array.from(this.dict.keys())},e.prototype.values=function(){return Array.from(this.dict.values())},e.prototype.entries=function(){return Array.from(this.dict.entries())},e.prototype.set=function(t,e){this.dict.set(t,e)},e.prototype.get=function(t,e){void 0===e&&(e=!1);var o=this.dict.get(t);if(o!==R||e)return o},e.prototype.has=function(t){var e=this.dict.get(t);return void 0!==e&&e!==R},e.prototype.lookupMaybe=function(t){for(var e,o=[],r=1;r>"},e.prototype.sizeInBytes=function(){for(var t=5,e=this.entries(),o=0,r=e.length;othis.largestObjectNumber&&(this.largestObjectNumber=t.objectNumber)},t.prototype.nextRef=function(){return this.largestObjectNumber+=1,L.of(this.largestObjectNumber)},t.prototype.register=function(t){var e=this.nextRef();return this.assign(e,t),e},t.prototype.delete=function(t){return this.indirectObjects.delete(t)},t.prototype.lookupMaybe=function(t){for(var e=[],o=1;o1?(this.subsections.push([t]),this.chunkIdx+=1,this.chunkLength=1):(e.push(t),this.chunkLength+=1)},t.create=function(){return new t({ref:L.of(0,65535),offset:0,deleted:!0})},t.createEmpty=function(){return new t},t}(),_=function(){function t(t){this.lastXRefOffset=String(t)}return t.prototype.toString=function(){return"startxref\n"+this.lastXRefOffset+"\n%%EOF"},t.prototype.sizeInBytes=function(){return 16+this.lastXRefOffset.length},t.prototype.copyBytesInto=function(t,e){var o=e;return t[e++]=v.A.s,t[e++]=v.A.t,t[e++]=v.A.a,t[e++]=v.A.r,t[e++]=v.A.t,t[e++]=v.A.x,t[e++]=v.A.r,t[e++]=v.A.e,t[e++]=v.A.f,t[e++]=v.A.Newline,e+=(0,C.BO)(this.lastXRefOffset,t,e),t[e++]=v.A.Newline,t[e++]=v.A.Percent,t[e++]=v.A.Percent,t[e++]=v.A.E,t[e++]=v.A.O,t[e++]=v.A.F,e-o},t.forLastCrossRefSectionOffset=function(e){return new t(e)},t}(),$=function(){function t(t){this.dict=t}return t.prototype.toString=function(){return"trailer\n"+this.dict.toString()},t.prototype.sizeInBytes=function(){return 8+this.dict.sizeInBytes()},t.prototype.copyBytesInto=function(t,e){var o=e;return t[e++]=v.A.t,t[e++]=v.A.r,t[e++]=v.A.a,t[e++]=v.A.i,t[e++]=v.A.l,t[e++]=v.A.e,t[e++]=v.A.r,t[e++]=v.A.Newline,(e+=this.dict.copyBytesInto(t,e))-o},t.of=function(e){return new t(e)},t}(),tt=function(t){function e(e,o,r){void 0===r&&(r=!0);var n=t.call(this,e.obj({}),r)||this;return n.objects=o,n.offsets=n.computeObjectOffsets(),n.offsetsString=n.computeOffsetsString(),n.dict.set(E.of("Type"),E.of("ObjStm")),n.dict.set(E.of("N"),S.of(n.objects.length)),n.dict.set(E.of("First"),S.of(n.offsetsString.length)),n}return(0,m.C6)(e,t),e.prototype.getObjectsCount=function(){return this.objects.length},e.prototype.clone=function(t){return e.withContextAndObjects(t||this.dict.context,this.objects.slice(),this.encode)},e.prototype.getContentsString=function(){for(var t=this.offsetsString,e=0,o=this.objects.length;e1&&(t.push(e),t.push(n.ref.objectNumber),e=0),e+=1}return t.push(e),t},i.computeEntryTuples=function(){for(var t=Array(i.entries.length),e=0,o=i.entries.length;ee[0]&&(e[0]=u),l>e[1]&&(e[1]=l),h>e[2]&&(e[2]=h)}return e},i.entries=o||[],i.entryTuplesCache=C.l2.populatedBy(i.computeEntryTuples),i.maxByteWidthsCache=C.l2.populatedBy(i.computeMaxEntryByteWidths),i.indexCache=C.l2.populatedBy(i.computeIndex),e.set(E.of("Type"),E.of("XRef")),i}return(0,m.C6)(e,t),e.prototype.addDeletedEntry=function(t,e){var o=n.Deleted;this.entries.push({type:o,ref:t,nextFreeObjectNumber:e}),this.entryTuplesCache.invalidate(),this.maxByteWidthsCache.invalidate(),this.indexCache.invalidate(),this.contentsCache.invalidate()},e.prototype.addUncompressedEntry=function(t,e){var o=n.Uncompressed;this.entries.push({type:o,ref:t,offset:e}),this.entryTuplesCache.invalidate(),this.maxByteWidthsCache.invalidate(),this.indexCache.invalidate(),this.contentsCache.invalidate()},e.prototype.addCompressedEntry=function(t,e,o){var r=n.Compressed;this.entries.push({type:r,ref:t,objectStreamRef:e,index:o}),this.entryTuplesCache.invalidate(),this.maxByteWidthsCache.invalidate(),this.indexCache.invalidate(),this.contentsCache.invalidate()},e.prototype.clone=function(t){var o=this.dict,r=this.entries,n=this.encode;return e.of(o.clone(t),r.slice(),n)},e.prototype.getContentsString=function(){for(var t=this.entryTuplesCache.access(),e=this.maxByteWidthsCache.access(),o="",r=0,n=t.length;r=0;d--)o+=(u[d]||0).toString(2);for(var d=e[1]-1;d>=0;d--)o+=(l[d]||0).toString(2);for(var d=e[2]-1;d>=0;d--)o+=(h[d]||0).toString(2)}return o},e.prototype.getUnencodedContents=function(){for(var t=this.entryTuplesCache.access(),e=this.maxByteWidthsCache.access(),o=new Uint8Array(this.getUnencodedContentsSize()),r=0,n=0,i=t.length;n=0;f--)o[r++]=l[f]||0;for(var f=e[1]-1;f>=0;f--)o[r++]=h[f]||0;for(var f=e[2]-1;f>=0;f--)o[r++]=d[f]||0}return o},e.prototype.getUnencodedContentsSize=function(){var t=this.maxByteWidthsCache.access();return(0,C.cz)(t)*this.entries.length},e.prototype.updateDict=function(){t.prototype.updateDict.call(this);var e=this.maxByteWidthsCache.access(),o=this.indexCache.access(),r=this.dict.context;this.dict.set(E.of("W"),r.obj(e)),this.dict.set(E.of("Index"),r.obj(o))},e.create=function(t,o){void 0===o&&(o=!0);var r=new e(t,[],o);return r.addDeletedEntry(L.of(0,65535),0),r},e.of=function(t,o,r){return void 0===r&&(r=!0),new e(t,o,r)},e}(K),tn=function(t){function e(e,o,r,n){var i=t.call(this,e,o)||this;return i.encodeStreams=r,i.objectsPerStream=n,i}return(0,m.C6)(e,t),e.prototype.computeBufferSize=function(){return(0,m.sH)(this,void 0,void 0,function(){var t,e,o,r,n,i,a,s,c,u,l,h,d,f,p,g,y,v,b;return(0,m.YH)(this,function(m){switch(m.label){case 0:t=this.context.largestObjectNumber+1,o=(e=F.forVersion(1,7)).sizeInBytes()+2,r=tr.create(this.createTrailerDict(),this.encodeStreams),n=[],i=[],a=[],s=this.context.enumerateIndirectObjects(),c=0,u=s.length,m.label=1;case 1:if(!(c> def\n/CMapName /Adobe-Identity-UCS def\n/CMapType 2 def\n1 begincodespacerange\n<0000>\nendcodespacerange\n"+t.length+" beginbfchar\n"+t.map(function(t){return t[0]+" "+t[1]}).join("\n")+"\nendbfchar\nendcmap\nCMapName currentdict /CMap defineresource pop\nend\nend"},th=function(){for(var t=[],e=0;e"},td=function(t){return(0,C.vu)(t,4)},tf=function(t){if((0,tc.HH)(t))return td(t);if((0,tc.me)(t)){var e=(0,tc.rN)(t),o=(0,tc.P1)(t);return""+td(e)+td(o)}throw Error("0x"+(0,C.U5)(t)+" is not a valid UTF-8 or UTF-16 codepoint.")},tp=function(t){var e=0,o=function(t){e|=1<1)throw Error("Animated PNGs are not supported");var r=tx(new Uint8Array(o[0])),n=r.rgbChannel,i=r.alphaChannel;this.rgbChannel=n,i.some(function(t){return t<255})&&(this.alphaChannel=i),this.type=tS(e.ctype),this.width=e.width,this.height=e.height,this.bitsPerComponent=8}return t.load=function(e){return new t(e)},t}();let tD=function(){function t(t){this.image=t,this.bitsPerComponent=t.bitsPerComponent,this.width=t.width,this.height=t.height,this.colorSpace="DeviceRGB"}return t.for=function(e){return(0,m.sH)(this,void 0,void 0,function(){return(0,m.YH)(this,function(o){return[2,new t(tP.load(e))]})})},t.prototype.embedIntoContext=function(t,e){return(0,m.sH)(this,void 0,void 0,function(){var o,r;return(0,m.YH)(this,function(n){return(o=this.embedAlphaChannel(t),r=t.flateStream(this.image.rgbChannel,{Type:"XObject",Subtype:"Image",BitsPerComponent:this.image.bitsPerComponent,Width:this.image.width,Height:this.image.height,ColorSpace:this.colorSpace,SMask:o}),e)?(t.assign(e,r),[2,e]):[2,t.register(r)]})})},t.prototype.embedAlphaChannel=function(t){if(this.image.alphaChannel){var e=t.flateStream(this.image.alphaChannel,{Type:"XObject",Subtype:"Image",Height:this.image.height,Width:this.image.width,BitsPerComponent:this.image.bitsPerComponent,ColorSpace:"DeviceGray",Decode:[0,1]});return t.register(e)}},t}();var tk=function(){function t(t,e,o){this.bytes=t,this.start=e||0,this.pos=this.start,this.end=e&&o?e+o:this.bytes.length}return Object.defineProperty(t.prototype,"length",{get:function(){return this.end-this.start},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isEmpty",{get:function(){return 0===this.length},enumerable:!1,configurable:!0}),t.prototype.getByte=function(){return this.pos>=this.end?-1:this.bytes[this.pos++]},t.prototype.getUint16=function(){var t=this.getByte(),e=this.getByte();return -1===t||-1===e?-1:(t<<8)+e},t.prototype.getInt32=function(){return(this.getByte()<<24)+(this.getByte()<<16)+(this.getByte()<<8)+this.getByte()},t.prototype.getBytes=function(t,e){void 0===e&&(e=!1);var o=this.bytes,r=this.pos,n=this.end;if(t){var i=r+t;i>n&&(i=n),this.pos=i;var a=o.subarray(r,i);return e?new Uint8ClampedArray(a):a}var a=o.subarray(r,n);return e?new Uint8ClampedArray(a):a},t.prototype.peekByte=function(){var t=this.getByte();return this.pos--,t},t.prototype.peekBytes=function(t,e){void 0===e&&(e=!1);var o=this.getBytes(t,e);return this.pos-=o.length,o},t.prototype.skip=function(t){t||(t=1),this.pos+=t},t.prototype.reset=function(){this.pos=this.start},t.prototype.moveStart=function(){this.start=this.pos},t.prototype.makeSubStream=function(e,o){return new t(this.bytes,e,o)},t.prototype.decode=function(){return this.bytes},t}(),tT=new Uint8Array(0),tB=function(){function t(t){if(this.pos=0,this.bufferLength=0,this.eof=!1,this.buffer=tT,this.minBufferLength=512,t)for(;this.minBufferLengthn&&(o=n)}else{for(;!this.eof;)this.readBlock();o=this.bufferLength}this.pos=o;var i=this.buffer.subarray(r,o);return!e||i instanceof Uint8ClampedArray?i:new Uint8ClampedArray(i)},t.prototype.peekByte=function(){var t=this.getByte();return this.pos--,t},t.prototype.peekBytes=function(t,e){void 0===e&&(e=!1);var o=this.getBytes(t,e);return this.pos-=o.length,o},t.prototype.skip=function(t){t||(t=1),this.pos+=t},t.prototype.reset=function(){this.pos=0},t.prototype.makeSubStream=function(t,e){for(var o=t+e;this.bufferLength<=o&&!this.eof;)this.readBlock();return new tk(this.buffer,t,e)},t.prototype.decode=function(){for(;!this.eof;)this.readBlock();return this.buffer.subarray(0,this.bufferLength)},t.prototype.readBlock=function(){throw new y.ju(this.constructor.name,"readBlock")},t.prototype.ensureBuffer=function(t){var e=this.buffer;if(t<=e.byteLength)return e;for(var o=this.minBufferLength;o=0;--e)t[n+e]=255&a,a>>=8}},e}(tB),tN=function(t){function e(e,o){var r=t.call(this,o)||this;return r.stream=e,r.firstDigit=-1,o&&(o*=.5),r}return(0,m.C6)(e,t),e.prototype.readBlock=function(){var t=this.stream.getBytes(8e3);if(!t.length){this.eof=!0;return}for(var e=t.length+1>>1,o=this.ensureBuffer(this.bufferLength+e),r=this.bufferLength,n=this.firstDigit,i=0,a=t.length;i=48&&s<=57)c=15&s;else if(s>=65&&s<=70||s>=97&&s<=102)c=(15&s)+9;else{if(62!==s)continue;this.eof=!0;break}n<0?n=c:(o[r++]=n<<4|c,n=-1)}n>=0&&this.eof&&(o[r++]=n<<4,n=-1),this.firstDigit=n,this.bufferLength=r},e}(tB),tE=new Int32Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),tR=new Int32Array([3,4,5,6,7,8,9,10,65547,65549,65551,65553,131091,131095,131099,131103,196643,196651,196659,196667,262211,262227,262243,262259,327811,327843,327875,327907,258,258,258]),tI=new Int32Array([1,2,3,4,65541,65543,131081,131085,196625,196633,262177,262193,327745,327777,393345,393409,459009,459137,524801,525057,590849,591361,657409,658433,724993,727041,794625,798721,868353,876545]),tM=[new Int32Array([459008,524368,524304,524568,459024,524400,524336,590016,459016,524384,524320,589984,524288,524416,524352,590048,459012,524376,524312,589968,459028,524408,524344,590032,459020,524392,524328,59e4,524296,524424,524360,590064,459010,524372,524308,524572,459026,524404,524340,590024,459018,524388,524324,589992,524292,524420,524356,590056,459014,524380,524316,589976,459030,524412,524348,590040,459022,524396,524332,590008,524300,524428,524364,590072,459009,524370,524306,524570,459025,524402,524338,590020,459017,524386,524322,589988,524290,524418,524354,590052,459013,524378,524314,589972,459029,524410,524346,590036,459021,524394,524330,590004,524298,524426,524362,590068,459011,524374,524310,524574,459027,524406,524342,590028,459019,524390,524326,589996,524294,524422,524358,590060,459015,524382,524318,589980,459031,524414,524350,590044,459023,524398,524334,590012,524302,524430,524366,590076,459008,524369,524305,524569,459024,524401,524337,590018,459016,524385,524321,589986,524289,524417,524353,590050,459012,524377,524313,589970,459028,524409,524345,590034,459020,524393,524329,590002,524297,524425,524361,590066,459010,524373,524309,524573,459026,524405,524341,590026,459018,524389,524325,589994,524293,524421,524357,590058,459014,524381,524317,589978,459030,524413,524349,590042,459022,524397,524333,590010,524301,524429,524365,590074,459009,524371,524307,524571,459025,524403,524339,590022,459017,524387,524323,589990,524291,524419,524355,590054,459013,524379,524315,589974,459029,524411,524347,590038,459021,524395,524331,590006,524299,524427,524363,590070,459011,524375,524311,524575,459027,524407,524343,590030,459019,524391,524327,589998,524295,524423,524359,590062,459015,524383,524319,589982,459031,524415,524351,590046,459023,524399,524335,590014,524303,524431,524367,590078,459008,524368,524304,524568,459024,524400,524336,590017,459016,524384,524320,589985,524288,524416,524352,590049,459012,524376,524312,589969,459028,524408,524344,590033,459020,524392,524328,590001,524296,524424,524360,590065,459010,524372,524308,524572,459026,524404,524340,590025,459018,524388,524324,589993,524292,524420,524356,590057,459014,524380,524316,589977,459030,524412,524348,590041,459022,524396,524332,590009,524300,524428,524364,590073,459009,524370,524306,524570,459025,524402,524338,590021,459017,524386,524322,589989,524290,524418,524354,590053,459013,524378,524314,589973,459029,524410,524346,590037,459021,524394,524330,590005,524298,524426,524362,590069,459011,524374,524310,524574,459027,524406,524342,590029,459019,524390,524326,589997,524294,524422,524358,590061,459015,524382,524318,589981,459031,524414,524350,590045,459023,524398,524334,590013,524302,524430,524366,590077,459008,524369,524305,524569,459024,524401,524337,590019,459016,524385,524321,589987,524289,524417,524353,590051,459012,524377,524313,589971,459028,524409,524345,590035,459020,524393,524329,590003,524297,524425,524361,590067,459010,524373,524309,524573,459026,524405,524341,590027,459018,524389,524325,589995,524293,524421,524357,590059,459014,524381,524317,589979,459030,524413,524349,590043,459022,524397,524333,590011,524301,524429,524365,590075,459009,524371,524307,524571,459025,524403,524339,590023,459017,524387,524323,589991,524291,524419,524355,590055,459013,524379,524315,589975,459029,524411,524347,590039,459021,524395,524331,590007,524299,524427,524363,590071,459011,524375,524311,524575,459027,524407,524343,590031,459019,524391,524327,589999,524295,524423,524359,590063,459015,524383,524319,589983,459031,524415,524351,590047,459023,524399,524335,590015,524303,524431,524367,590079]),9],tW=[new Int32Array([327680,327696,327688,327704,327684,327700,327692,327708,327682,327698,327690,327706,327686,327702,327694,0,327681,327697,327689,327705,327685,327701,327693,327709,327683,327699,327691,327707,327687,327703,327695,0]),5],tz=function(t){function e(e,o){var r=t.call(this,o)||this;r.stream=e;var n=e.getByte(),i=e.getByte();if(-1===n||-1===i)throw Error("Invalid header in flate stream: "+n+", "+i);if((15&n)!=8)throw Error("Unknown compression method in flate stream: "+n+", "+i);if(((n<<8)+i)%31!=0)throw Error("Bad FCHECK in flate stream: "+n+", "+i);if(32&i)throw Error("FDICT bit set in flate stream: "+n+", "+i);return r.codeSize=0,r.codeBuf=0,r}return(0,m.C6)(e,t),e.prototype.readBlock=function(){var t,e,o,r,n=this.stream,i=this.getBits(3);if(1&i&&(this.eof=!0),0==(i>>=1)){var a=void 0;if(-1===(a=n.getByte()))throw Error("Bad block header in flate stream");var s=a;if(-1===(a=n.getByte())||(s|=a<<8,-1===(a=n.getByte())))throw Error("Bad block header in flate stream");var c=a;if(-1===(a=n.getByte()))throw Error("Bad block header in flate stream");if((c|=a<<8)!=(65535&~s)&&(0!==s||0!==c))throw Error("Bad uncompressed block length in flate stream");this.codeBuf=0,this.codeSize=0;var u=this.bufferLength;t=this.ensureBuffer(u+s);var l=u+s;if(this.bufferLength=l,0===s)-1===n.peekByte()&&(this.eof=!0);else for(var h=u;h0;)b[y++]=F}o=this.generateHuffmanTable(b.subarray(0,d)),r=this.generateHuffmanTable(b.subarray(d,m))}else throw Error("Unknown block type in flate stream");for(var x=(t=this.buffer)?t.length:0,P=this.bufferLength;;){var D=this.getCode(o);if(D<256){P+1>=x&&(x=(t=this.ensureBuffer(P+1)).length),t[P++]=D;continue}if(256===D){this.bufferLength=P;return}D-=257;var k=(D=tR[D])>>16;k>0&&(k=this.getBits(k)),e=(65535&D)+k,(k=(D=tI[D=this.getCode(r)])>>16)>0&&(k=this.getBits(k));var T=(65535&D)+k;P+e>=x&&(x=(t=this.ensureBuffer(P+e)).length);for(var B=0;B>t,this.codeSize=r-=t,e},e.prototype.getCode=function(t){for(var e,o=this.stream,r=t[0],n=t[1],i=this.codeSize,a=this.codeBuf;i>16;if(c<1||i>c,this.codeSize=i-c,65535&s},e.prototype.generateHuffmanTable=function(t){var e,o=t.length,r=0;for(e=0;er&&(r=t[e]);for(var n=1<>=1;for(e=l;e0;if(!v||v<256)d[0]=v,f=1;else if(v>=258){if(v=0;e--)d[e]=s[o],o=u[o];else d[f++]=d[0]}else if(256===v){l=9,a=258,f=0;continue}else{this.eof=!0,delete this.lzwState;break}if(m&&(u[a]=h,c[a]=c[h]+1,s[a]=d[0],l=++a+i&a+i-1?l:0|Math.min(Math.log(a+i)/.6931471805599453+1,12)),h=v,r<(p+=f)){do r+=512;while(r>>e&(1<0){var n=this.stream.getBytes(r);t.set(n,o),o+=r}}else{r=257-r;var i=e[1];t=this.ensureBuffer(o+r+1);for(var a=0;ae.size())throw new y.fx(t,0,e.size());e.remove(t)}else{if(0!==t)throw new y.fx(t,0,0);this.setKids([])}},e.prototype.normalizedEntries=function(){var t=this.Kids();return t||(t=this.dict.context.obj([this.ref]),this.dict.set(E.of("Kids"),t)),{Kids:t}},e.fromDict=function(t,o){return new e(t,o)},e}(tJ),t1=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,m.C6)(e,t),e.prototype.Opt=function(){return this.dict.lookupMaybe(E.of("Opt"),ty.A,ta.A,x)},e.prototype.setOpt=function(t){this.dict.set(E.of("Opt"),this.dict.context.obj(t))},e.prototype.getExportValues=function(){var t=this.Opt();if(t){if(t instanceof ty.A||t instanceof ta.A)return[t];for(var e=[],o=0,r=t.size();oe.size())throw new y.fx(t,0,e.size());e.remove(t)}}},e.prototype.normalizeExportValues=function(){for(var t,e,o,r,n=null!==(t=this.getExportValues())&&void 0!==t?t:[],i=[],a=this.getWidgets(),s=0,c=a.length;s1){if(!this.hasFlag(p.MultiSelect))throw new y.Hi;this.dict.set(E.of("V"),this.dict.context.obj(t))}this.updateSelectedIndices(t)},e.prototype.valuesAreValid=function(t){for(var e=this.getOptions(),o=0,r=t.length;o1){for(var e=Array(t.length),o=this.getOptions(),r=0,n=t.length;r0){var i=n.lookup(0,ty.A,ta.A),a=n.lookupMaybe(1,ty.A,ta.A);e.push({value:i,display:a||i})}}return e}return[]},e}(t0),t3=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,m.C6)(e,t),e.fromDict=function(t,o){return new e(t,o)},e.create=function(t){var o=t.obj({FT:"Ch",Ff:p.Combo,Kids:[]}),r=t.register(o);return new e(o,r)},e}(t4),t9=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,m.C6)(e,t),e.prototype.addField=function(t){var e=this.normalizedEntries().Kids;null==e||e.push(t)},e.prototype.normalizedEntries=function(){var t=this.Kids();return t||(t=this.dict.context.obj([]),this.dict.set(E.of("Kids"),t)),{Kids:t}},e.fromDict=function(t,o){return new e(t,o)},e.create=function(t){var o=t.obj({}),r=t.register(o);return new e(o,r)},e}(tJ),t6=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,m.C6)(e,t),e.fromDict=function(t,o){return new e(t,o)},e}(t0),t8=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,m.C6)(e,t),e.prototype.MaxLen=function(){var t=this.dict.lookup(E.of("MaxLen"));if(t instanceof S)return t},e.prototype.Q=function(){var t=this.dict.lookup(E.of("Q"));if(t instanceof S)return t},e.prototype.setMaxLength=function(t){this.dict.set(E.of("MaxLen"),S.of(t))},e.prototype.removeMaxLength=function(){this.dict.delete(E.of("MaxLen"))},e.prototype.getMaxLength=function(){var t;return null===(t=this.MaxLen())||void 0===t?void 0:t.asNumber()},e.prototype.setQuadding=function(t){this.dict.set(E.of("Q"),S.of(t))},e.prototype.getQuadding=function(){var t;return null===(t=this.Q())||void 0===t?void 0:t.asNumber()},e.prototype.setValue=function(t){this.dict.set(E.of("V"),t)},e.prototype.removeValue=function(){this.dict.delete(E.of("V"))},e.prototype.getValue=function(){var t=this.V();if(t instanceof ty.A||t instanceof ta.A)return t},e.fromDict=function(t,o){return new e(t,o)},e.create=function(t){var o=t.obj({FT:"Tx",Kids:[]}),r=t.register(o);return new e(o,r)},e}(t0),t7=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,m.C6)(e,t),e.fromDict=function(t,o){return new e(t,o)},e.create=function(t){var o=t.obj({FT:"Btn",Ff:d.PushButton,Kids:[]}),r=t.register(o);return new e(o,r)},e}(t1),et=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,m.C6)(e,t),e.prototype.setValue=function(t){if(!this.getOnValues().includes(t)&&t!==E.of("Off"))throw new y.cR;this.dict.set(E.of("V"),t);for(var e=this.getWidgets(),o=0,r=e.length;on)throw new y.PU(o,n);for(var i=o,a=0,s=r.size();ai)return u.insertLeafNode(t,i)||c;i-=u.Count().asNumber()}u instanceof J&&(i-=1)}if(0===i){this.insertLeafKid(r.size(),t);return}throw new y.vV(o,"insertLeafNode")},e.prototype.removeLeafNode=function(t,o){void 0===o&&(o=!0);var r=this.Kids(),n=this.Count().asNumber();if(t>=n)throw new y.PU(t,n);for(var i=t,a=0,s=r.size();ai){u.removeLeafNode(i,o),o&&0===u.Kids().size()&&r.remove(a);return}i-=u.Count().asNumber()}if(u instanceof J){if(0===i){this.removeKid(a);return}i-=1}}throw new y.vV(t,"removeLeafNode")},e.prototype.ascend=function(t){t(this);var e=this.Parent();e&&e.ascend(t)},e.prototype.traverse=function(t){for(var o=this.Kids(),r=0,n=o.size();rNumber.MAX_SAFE_INTEGER){if(this.capNumbers){var r="Parsed number that is too large for some PDF readers: "+t+", using Number.MAX_SAFE_INTEGER instead.";return console.warn(r),Number.MAX_SAFE_INTEGER}var r="Parsed number that is too large for some PDF readers: "+t+", not capping.";console.warn(r)}return o},t.prototype.skipWhitespace=function(){for(;!this.bytes.done()&&T[this.bytes.peek()];)this.bytes.next()},t.prototype.skipLine=function(){for(;!this.bytes.done();){var t=this.bytes.peek();if(t===em||t===eb)return;this.bytes.next()}},t.prototype.skipComment=function(){if(this.bytes.peek()!==v.A.Percent)return!1;for(;!this.bytes.done();){var t=this.bytes.peek();if(t===em||t===eb)break;this.bytes.next()}return!0},t.prototype.skipWhitespaceAndComments=function(){for(this.skipWhitespace();this.skipComment();)this.skipWhitespace()},t.prototype.matchKeyword=function(t){for(var e=this.bytes.offset(),o=0,r=t.length;o=this.length},t.prototype.offset=function(){return this.idx},t.prototype.slice=function(t,e){return this.bytes.slice(t,e)},t.prototype.position=function(){return{line:this.line,column:this.column,offset:this.idx}},t.of=function(e){return new t(e)},t.fromPDFRawStream=function(e){return t.of(tH(e).decode())},t}(),eF=v.A.Space,ew=v.A.CarriageReturn,eS=v.A.Newline,ex=[v.A.s,v.A.t,v.A.r,v.A.e,v.A.a,v.A.m],eP=[v.A.e,v.A.n,v.A.d,v.A.s,v.A.t,v.A.r,v.A.e,v.A.a,v.A.m],eD={header:[v.A.Percent,v.A.P,v.A.D,v.A.F,v.A.Dash],eof:[v.A.Percent,v.A.Percent,v.A.E,v.A.O,v.A.F],obj:[v.A.o,v.A.b,v.A.j],endobj:[v.A.e,v.A.n,v.A.d,v.A.o,v.A.b,v.A.j],xref:[v.A.x,v.A.r,v.A.e,v.A.f],trailer:[v.A.t,v.A.r,v.A.a,v.A.i,v.A.l,v.A.e,v.A.r],startxref:[v.A.s,v.A.t,v.A.a,v.A.r,v.A.t,v.A.x,v.A.r,v.A.e,v.A.f],true:[v.A.t,v.A.r,v.A.u,v.A.e],false:[v.A.f,v.A.a,v.A.l,v.A.s,v.A.e],null:[v.A.n,v.A.u,v.A.l,v.A.l],stream:ex,streamEOF1:(0,m.aN)(ex,[eF,ew,eS]),streamEOF2:(0,m.aN)(ex,[ew,eS]),streamEOF3:(0,m.aN)(ex,[ew]),streamEOF4:(0,m.aN)(ex,[eS]),endstream:eP,EOF1endstream:(0,m.aN)([ew,eS],eP),EOF2endstream:(0,m.aN)([ew],eP),EOF3endstream:(0,m.aN)([eS],eP)};let ek=function(t){function e(e,o,r){void 0===r&&(r=!1);var n=t.call(this,e,r)||this;return n.context=o,n}return(0,m.C6)(e,t),e.prototype.parseObject=function(){if(this.skipWhitespaceAndComments(),this.matchKeyword(eD.true))return D.True;if(this.matchKeyword(eD.false))return D.False;if(this.matchKeyword(eD.null))return R;var t=this.bytes.peek();if(t===v.A.LessThan&&this.bytes.peekAhead(1)===v.A.LessThan)return this.parseDictOrStream();if(t===v.A.LessThan)return this.parseHexString();if(t===v.A.LeftParen)return this.parseString();if(t===v.A.ForwardSlash)return this.parseName();if(t===v.A.LeftSquareBracket)return this.parseArray();if(ey[t])return this.parseNumberOrRef();throw new y.m2(this.bytes.position(),t)},e.prototype.parseNumberOrRef=function(){var t=this.parseRawNumber();this.skipWhitespaceAndComments();var e=this.bytes.offset();if(ep[this.bytes.peek()]){var o=this.parseRawNumber();if(this.skipWhitespaceAndComments(),this.bytes.peek()===v.A.R)return this.bytes.assertNext(v.A.R),L.of(t,o)}return this.bytes.moveTo(e),S.of(t)},e.prototype.parseHexString=function(){var t="";for(this.bytes.assertNext(v.A.LessThan);!this.bytes.done()&&this.bytes.peek()!==v.A.GreaterThan;)t+=(0,C.sJ)(this.bytes.next());return this.bytes.assertNext(v.A.GreaterThan),ta.A.of(t)},e.prototype.parseString=function(){for(var t=0,e=!1,o="";!this.bytes.done();){var r=this.bytes.next();if(o+=(0,C.sJ)(r),e||(r===v.A.LeftParen&&(t+=1),r!==v.A.RightParen||(t-=1)),r===v.A.BackSlash?e=!e:e&&(e=!1),0===t)return ty.A.of(o.substring(1,o.length-1))}throw new y.Qj(this.bytes.position())},e.prototype.parseName=function(){this.bytes.assertNext(v.A.ForwardSlash);for(var t="";!this.bytes.done();){var e=this.bytes.peek();if(T[e]||k[e])break;t+=(0,C.sJ)(e),this.bytes.next()}return E.of(t)},e.prototype.parseArray=function(){this.bytes.assertNext(v.A.LeftSquareBracket),this.skipWhitespaceAndComments();for(var t=x.withContext(this.context);this.bytes.peek()!==v.A.RightSquareBracket;){var e=this.parseObject();t.push(e),this.skipWhitespaceAndComments()}return this.bytes.assertNext(v.A.RightSquareBracket),t},e.prototype.parseDict=function(){this.bytes.assertNext(v.A.LessThan),this.bytes.assertNext(v.A.LessThan),this.skipWhitespaceAndComments();for(var t=new Map;!this.bytes.done()&&this.bytes.peek()!==v.A.GreaterThan&&this.bytes.peekAhead(1)!==v.A.GreaterThan;){var e=this.parseName(),o=this.parseObject();t.set(e,o),this.skipWhitespaceAndComments()}this.skipWhitespaceAndComments(),this.bytes.assertNext(v.A.GreaterThan),this.bytes.assertNext(v.A.GreaterThan);var r=t.get(E.of("Type"));return r===E.of("Catalog")?ed.fromMapWithContext(t,this.context):r===E.of("Pages")?ef.fromMapWithContext(t,this.context):r===E.of("Page")?J.fromMapWithContext(t,this.context):I.fromMapWithContext(t,this.context)},e.prototype.parseDictOrStream=function(){var t,e=this.bytes.position(),o=this.parseDict();if(this.skipWhitespaceAndComments(),!this.matchKeyword(eD.streamEOF1)&&!this.matchKeyword(eD.streamEOF2)&&!this.matchKeyword(eD.streamEOF3)&&!this.matchKeyword(eD.streamEOF4)&&!this.matchKeyword(eD.stream))return o;var r=this.bytes.offset(),n=o.get(E.of("Length"));n instanceof S?(t=r+n.asNumber(),this.bytes.moveTo(t),this.skipWhitespaceAndComments(),this.matchKeyword(eD.endstream)||(this.bytes.moveTo(r),t=this.findEndOfStreamFallback(e))):t=this.findEndOfStreamFallback(e);var i=this.bytes.slice(r,t);return W.of(o,i)},e.prototype.findEndOfStreamFallback=function(t){for(var e=1,o=this.bytes.offset();!this.bytes.done()&&(o=this.bytes.offset(),this.matchKeyword(eD.stream)?e+=1:this.matchKeyword(eD.EOF1endstream)||this.matchKeyword(eD.EOF2endstream)||this.matchKeyword(eD.EOF3endstream)||this.matchKeyword(eD.endstream)?e-=1:this.bytes.next(),0!==e););if(0!==e)throw new y.tV(t);return o},e.forBytes=function(t,o,r){return new e(eC.of(t),o,r)},e.forByteStream=function(t,o,r){return void 0===r&&(r=!1),new e(t,o,r)},e}(eA),eT=function(t){function e(e,o){var r=t.call(this,eC.fromPDFRawStream(e),e.dict.context)||this,n=e.dict;return r.alreadyParsed=!1,r.shouldWaitForTick=o||function(){return!1},r.firstOffset=n.lookup(E.of("First"),S).asNumber(),r.objectCount=n.lookup(E.of("N"),S).asNumber(),r}return(0,m.C6)(e,t),e.prototype.parseIntoContext=function(){return(0,m.sH)(this,void 0,void 0,function(){var t,e,o,r,n,i,a,s;return(0,m.YH)(this,function(c){switch(c.label){case 0:if(this.alreadyParsed)throw new y.jM("PDFObjectStreamParser","parseIntoContext");this.alreadyParsed=!0,t=this.parseOffsetsAndObjectNumbers(),e=0,o=t.length,c.label=1;case 1:if(!(e=v.A.Space&&e<=v.A.Tilde&&(this.matchKeyword(eD.xref)||this.matchKeyword(eD.trailer)||this.matchKeyword(eD.startxref)||this.matchIndirectObjectHeader())){this.bytes.moveTo(t);break}this.bytes.next()}},e.prototype.skipBinaryHeaderComment=function(){this.skipWhitespaceAndComments();try{var t=this.bytes.offset();this.parseIndirectObjectHeader(),this.bytes.moveTo(t)}catch(t){this.bytes.next(),this.skipWhitespaceAndComments()}},e.forBytesWithOptions=function(t,o,r,n){return new e(t,o,r,n)},e}(ek);var eO=function(t){return 1<{"use strict";o.d(e,{A:()=>c});var r=o(75935),n=o(6210),i=o(84676),a=o(50930),s=o(36289);let c=function(t){function e(e){var o=t.call(this)||this;return o.value=e,o}return(0,r.C6)(e,t),e.prototype.asBytes=function(){for(var t=this.value+(this.value.length%2==1?"0":""),e=t.length,o=new Uint8Array(t.length/2),r=0,n=0;r"},e.prototype.sizeInBytes=function(){return this.value.length+2},e.prototype.copyBytesInto=function(t,e){return t[e++]=i.A.LessThan,e+=(0,a.BO)(this.value,t,e),t[e++]=i.A.GreaterThan,this.value.length+2},e.of=function(t){return new e(t)},e.fromText=function(t){for(var o=(0,a.bW)(t),r="",n=0,i=o.length;n{"use strict";o.d(e,{A:()=>n});var r=o(36289);let n=function(){function t(){}return t.prototype.clone=function(t){throw new r.ju(this.constructor.name,"clone")},t.prototype.toString=function(){throw new r.ju(this.constructor.name,"toString")},t.prototype.sizeInBytes=function(){throw new r.ju(this.constructor.name,"sizeInBytes")},t.prototype.copyBytesInto=function(t,e){throw new r.ju(this.constructor.name,"copyBytesInto")},t}()},76848:(t,e,o)=>{"use strict";o.d(e,{A:()=>c});var r=o(75935),n=o(6210),i=o(84676),a=o(50930),s=o(36289);let c=function(t){function e(e){var o=t.call(this)||this;return o.value=e,o}return(0,r.C6)(e,t),e.prototype.asBytes=function(){for(var t=[],e="",o=!1,r=function(e){void 0!==e&&t.push(e),o=!1},n=0,s=this.value.length;n=i.A.Zero&&u<=i.A.Seven?3!==(e+=c).length&&l>="0"&&l<="7"||(r(parseInt(e,8)),e=""):r(u):u===i.A.BackSlash?o=!0:r(u)}return new Uint8Array(t)},e.prototype.decodeText=function(){var t=this.asBytes();return(0,a.pJ)(t)?(0,a.NJ)(t):(0,a.IE)(t)},e.prototype.decodeDate=function(){var t=this.decodeText(),e=(0,a._U)(t);if(!e)throw new s.bq(t);return e},e.prototype.asString=function(){return this.value},e.prototype.clone=function(){return e.of(this.value)},e.prototype.toString=function(){return"("+this.value+")"},e.prototype.sizeInBytes=function(){return this.value.length+2},e.prototype.copyBytesInto=function(t,e){return t[e++]=i.A.LeftParen,e+=(0,a.BO)(this.value,t,e),t[e++]=i.A.RightParen,this.value.length+2},e.of=function(t){return new e(t)},e.fromDate=function(t){return new e("D:"+(0,a.CF)(String(t.getUTCFullYear()),4,"0")+(0,a.CF)(String(t.getUTCMonth()+1),2,"0")+(0,a.CF)(String(t.getUTCDate()),2,"0")+(0,a.CF)(String(t.getUTCHours()),2,"0")+(0,a.CF)(String(t.getUTCMinutes()),2,"0")+(0,a.CF)(String(t.getUTCSeconds()),2,"0")+"Z")},e}(n.A)},84676:(t,e,o)=>{"use strict";var r;o.d(e,{A:()=>n}),function(t){t[t.Null=0]="Null",t[t.Backspace=8]="Backspace",t[t.Tab=9]="Tab",t[t.Newline=10]="Newline",t[t.FormFeed=12]="FormFeed",t[t.CarriageReturn=13]="CarriageReturn",t[t.Space=32]="Space",t[t.ExclamationPoint=33]="ExclamationPoint",t[t.Hash=35]="Hash",t[t.Percent=37]="Percent",t[t.LeftParen=40]="LeftParen",t[t.RightParen=41]="RightParen",t[t.Plus=43]="Plus",t[t.Minus=45]="Minus",t[t.Dash=45]="Dash",t[t.Period=46]="Period",t[t.ForwardSlash=47]="ForwardSlash",t[t.Zero=48]="Zero",t[t.One=49]="One",t[t.Two=50]="Two",t[t.Three=51]="Three",t[t.Four=52]="Four",t[t.Five=53]="Five",t[t.Six=54]="Six",t[t.Seven=55]="Seven",t[t.Eight=56]="Eight",t[t.Nine=57]="Nine",t[t.LessThan=60]="LessThan",t[t.GreaterThan=62]="GreaterThan",t[t.A=65]="A",t[t.D=68]="D",t[t.E=69]="E",t[t.F=70]="F",t[t.O=79]="O",t[t.P=80]="P",t[t.R=82]="R",t[t.LeftSquareBracket=91]="LeftSquareBracket",t[t.BackSlash=92]="BackSlash",t[t.RightSquareBracket=93]="RightSquareBracket",t[t.a=97]="a",t[t.b=98]="b",t[t.d=100]="d",t[t.e=101]="e",t[t.f=102]="f",t[t.i=105]="i",t[t.j=106]="j",t[t.l=108]="l",t[t.m=109]="m",t[t.n=110]="n",t[t.o=111]="o",t[t.r=114]="r",t[t.s=115]="s",t[t.t=116]="t",t[t.u=117]="u",t[t.x=120]="x",t[t.LeftCurly=123]="LeftCurly",t[t.RightCurly=125]="RightCurly",t[t.Tilde=126]="Tilde"}(r||(r={}));let n=r},71442:(t,e,o)=>{"use strict";o.r(e),o.d(e,{AFRelationship:()=>n.Go,AcroButtonFlags:()=>n.Tz,AcroChoiceFlags:()=>n.qM,AcroFieldFlags:()=>n.Zo,AcroTextFlags:()=>n.Il,AnnotationFlags:()=>n.bO,AppearanceCharacteristics:()=>n.N9,BlendMode:()=>r.Nx,Cache:()=>s.l2,CharCodes:()=>n.J_,ColorTypes:()=>r.vb,CombedTextLayoutError:()=>r.A,CorruptPageTreeError:()=>n.vV,CustomFontEmbedder:()=>n.pp,CustomFontSubsetEmbedder:()=>n.Bo,Duplex:()=>n.d1,EncryptedPDFError:()=>r.ZT,ExceededMaxLengthError:()=>r.KI,FieldAlreadyExistsError:()=>r.BY,FieldExistsAsNonTerminalError:()=>r.oX,FileEmbedder:()=>n.jA,FontkitNotRegisteredError:()=>r.xC,ForeignPageError:()=>r.iB,ImageAlignment:()=>r.nW,IndexOutOfBoundsError:()=>n.fx,InvalidAcroFieldValueError:()=>n.cR,InvalidFieldNamePartError:()=>r.wT,InvalidMaxLengthError:()=>r.eW,InvalidPDFDateStringError:()=>n.bq,InvalidTargetIndexError:()=>n.PU,JpegEmbedder:()=>n.Dm,LineCapStyle:()=>r.uT,LineJoinStyle:()=>r.wd,MethodNotImplementedError:()=>n.ju,MissingCatalogError:()=>n.g9,MissingDAEntryError:()=>n.o4,MissingKeywordError:()=>n.cZ,MissingOnValueCheckError:()=>r.pI,MissingPDFHeaderError:()=>n.Kc,MissingPageContentsEmbeddingError:()=>n.tX,MissingTfOperatorError:()=>n.F2,MultiSelectValueError:()=>n.Hi,NextByteAssertionError:()=>n.eM,NoSuchFieldError:()=>r.vs,NonFullScreenPageMode:()=>n.bj,NumberParsingError:()=>n.I8,PDFAcroButton:()=>n.I,PDFAcroCheckBox:()=>n.RL,PDFAcroChoice:()=>n.xm,PDFAcroComboBox:()=>n.Bi,PDFAcroField:()=>n.el,PDFAcroForm:()=>n.In,PDFAcroListBox:()=>n.ld,PDFAcroNonTerminal:()=>n.z5,PDFAcroPushButton:()=>n.OR,PDFAcroRadioButton:()=>n.b$,PDFAcroSignature:()=>n.oz,PDFAcroTerminal:()=>n.AC,PDFAcroText:()=>n.BM,PDFAnnotation:()=>n.sz,PDFArray:()=>n.y3,PDFArrayIsNotRectangleError:()=>n.OT,PDFBool:()=>n.$l,PDFButton:()=>r.dG,PDFCatalog:()=>n.am,PDFCheckBox:()=>r.Md,PDFContentStream:()=>n.CB,PDFContext:()=>n.yQ,PDFCrossRefSection:()=>n.JX,PDFCrossRefStream:()=>n._q,PDFDict:()=>n.Ri,PDFDocument:()=>r.UL,PDFDropdown:()=>r.OG,PDFEmbeddedPage:()=>r.qk,PDFField:()=>r.PA,PDFFlateStream:()=>n.V0,PDFFont:()=>r.Kc,PDFForm:()=>r.tB,PDFHeader:()=>n.w$,PDFHexString:()=>n.lv,PDFImage:()=>r.SZ,PDFInvalidObject:()=>n.j6,PDFInvalidObjectParsingError:()=>n.FY,PDFJavaScript:()=>r.W1,PDFName:()=>n.S5,PDFNull:()=>n.qQ,PDFNumber:()=>n.iu,PDFObject:()=>n.YA,PDFObjectCopier:()=>n.Gw,PDFObjectParser:()=>n.np,PDFObjectParsingError:()=>n.m2,PDFObjectStream:()=>n.et,PDFObjectStreamParser:()=>n.D7,PDFOperator:()=>n.VK,PDFOperatorNames:()=>n.Zt,PDFOptionList:()=>r.I7,PDFPage:()=>r.GZ,PDFPageEmbedder:()=>n.kO,PDFPageLeaf:()=>n.y1,PDFPageTree:()=>n.KF,PDFParser:()=>n.gS,PDFParsingError:()=>n.rY,PDFRadioGroup:()=>r.rU,PDFRawStream:()=>n.T9,PDFRef:()=>n.so,PDFSignature:()=>r.tg,PDFStream:()=>n.h0,PDFStreamParsingError:()=>n.tV,PDFStreamWriter:()=>n.k_,PDFString:()=>n.mA,PDFTextField:()=>r.S7,PDFTrailer:()=>n.Kk,PDFTrailerDict:()=>n.W4,PDFWidgetAnnotation:()=>n.Ml,PDFWriter:()=>n.Sl,PDFXRefStreamParser:()=>n.bs,PageEmbeddingMismatchedContextError:()=>n.JA,PageSizes:()=>r.q2,ParseSpeeds:()=>r.Ap,PngEmbedder:()=>n.cV,PrintScaling:()=>n.Nq,PrivateConstructorError:()=>n.EQ,ReadingDirection:()=>n.s3,RemovePageFromEmptyDocumentError:()=>r.OY,ReparseError:()=>n.jM,RichTextFieldReadError:()=>r.k0,RotationTypes:()=>r.WU,StalledParserError:()=>n.Jl,StandardFontEmbedder:()=>n.hM,StandardFontValues:()=>s.no,StandardFonts:()=>r.qX,TextAlignment:()=>r.DY,TextRenderingMode:()=>r.hu,UnbalancedParenthesisError:()=>n.Qj,UnexpectedFieldTypeError:()=>r.or,UnexpectedObjectTypeError:()=>n.$T,UnrecognizedStreamTypeError:()=>n.IX,UnsupportedEncodingError:()=>n.B4,ViewerPreferences:()=>n.x7,addRandomSuffix:()=>s.os,adjustDimsForRotation:()=>r.S3,appendBezierCurve:()=>r.v$,appendQuadraticCurve:()=>r.a_,arrayAsString:()=>s.pZ,asNumber:()=>r.i,asPDFName:()=>r.yd,asPDFNumber:()=>r.q0,assertEachIs:()=>s.k,assertInteger:()=>s.vk,assertIs:()=>s.jo,assertIsOneOf:()=>s.Co,assertIsOneOfOrUndefined:()=>s.DU,assertIsSubset:()=>s.hc,assertMultiple:()=>s.vW,assertOrUndefined:()=>s.wU,assertPositive:()=>s.a_,assertRange:()=>s.Qb,assertRangeOrUndefined:()=>s.Dw,backtick:()=>s.pj,beginMarkedContent:()=>r.rk,beginText:()=>r.VS,breakTextIntoLines:()=>s.YF,byAscendingId:()=>s.nM,bytesFor:()=>s.D_,canBeConvertedToUint8Array:()=>s.ou,charAtIndex:()=>s.sR,charFromCode:()=>s.sJ,charFromHexCode:()=>s.Di,charSplit:()=>s.BP,cleanText:()=>s.X5,clip:()=>r.$Q,clipEvenOdd:()=>r.U7,closePath:()=>r.OE,cmyk:()=>r.T7,colorToComponents:()=>r.b5,componentsToColor:()=>r.fS,concatTransformationMatrix:()=>r.Dr,copyStringIntoBuffer:()=>s.BO,createPDFAcroField:()=>n.o,createPDFAcroFields:()=>n.h$,createTypeErrorMsg:()=>s._9,createValueErrorMsg:()=>s.RI,decodeFromBase64:()=>s.Wk,decodeFromBase64DataUri:()=>s.Sj,decodePDFRawStream:()=>n.jY,defaultButtonAppearanceProvider:()=>r.p6,defaultCheckBoxAppearanceProvider:()=>r.kb,defaultDropdownAppearanceProvider:()=>r.ZE,defaultOptionListAppearanceProvider:()=>r.Wy,defaultRadioGroupAppearanceProvider:()=>r.vM,defaultTextFieldAppearanceProvider:()=>r.S0,degrees:()=>r.uj,degreesToRadians:()=>r.tR,drawButton:()=>r.XW,drawCheckBox:()=>r.oS,drawCheckMark:()=>r.e6,drawEllipse:()=>r.n,drawEllipsePath:()=>r.vj,drawImage:()=>r.aC,drawLine:()=>r.V6,drawLinesOfText:()=>r.EF,drawObject:()=>r.aS,drawOptionList:()=>r.Aw,drawPage:()=>r.wl,drawRadioButton:()=>r.Ew,drawRectangle:()=>r.CQ,drawSvgPath:()=>r.dS,drawText:()=>r.m,drawTextField:()=>r.iW,drawTextLines:()=>r.Fv,encodeToBase64:()=>s.XP,endMarkedContent:()=>r.Tw,endPath:()=>r.R,endText:()=>r.Z4,error:()=>s.z3,escapeRegExp:()=>s.Nt,escapedNewlineChars:()=>s.X2,fill:()=>r.GS,fillAndStroke:()=>r.HF,findLastMatch:()=>s.dJ,getType:()=>s.Pw,grayscale:()=>r.CM,hasSurrogates:()=>s.me,hasUtf16BOM:()=>s.pJ,highSurrogate:()=>s.rN,isNewlineChar:()=>s.N7,isStandardFont:()=>s.Pz,isType:()=>s.Xj,isWithinBMP:()=>s.HH,last:()=>s.HV,layoutCombedText:()=>r.k7,layoutMultilineText:()=>r.Tf,layoutSinglelineText:()=>r.sK,lineSplit:()=>s.JQ,lineTo:()=>r.a5,lowSurrogate:()=>s.P1,mergeIntoTypedArray:()=>s.If,mergeLines:()=>s.Ac,mergeUint8Arrays:()=>s.FP,moveText:()=>r.nQ,moveTo:()=>r.tw,newlineChars:()=>s.SU,nextLine:()=>r.sE,normalizeAppearance:()=>r.QK,numberToString:()=>s.um,padStart:()=>s.CF,parseDate:()=>s._U,pdfDocEncodingDecode:()=>s.IE,pluckIndices:()=>s.f8,popGraphicsState:()=>r.eH,pushGraphicsState:()=>r.Tl,radians:()=>r.F2,radiansToDegrees:()=>r.nv,range:()=>s.y1,rectangle:()=>r.YC,rectanglesAreEqual:()=>s.N8,reduceRotation:()=>r.du,restoreDashPattern:()=>r.JA,reverseArray:()=>s.q7,rgb:()=>r.Qh,rotateAndSkewTextDegreesAndTranslate:()=>r.mJ,rotateAndSkewTextRadiansAndTranslate:()=>r.BK,rotateDegrees:()=>r.t5,rotateInPlace:()=>r.Il,rotateRadians:()=>r.y4,rotateRectangle:()=>r.P8,scale:()=>r.hs,setCharacterSpacing:()=>r.rI,setCharacterSqueeze:()=>r.Yc,setDashPattern:()=>r.Vv,setFillingCmykColor:()=>r.J2,setFillingColor:()=>r.zN,setFillingGrayscaleColor:()=>r.Cq,setFillingRgbColor:()=>r._u,setFontAndSize:()=>r.M8,setGraphicsState:()=>r.XG,setLineCap:()=>r.Jl,setLineHeight:()=>r.Kz,setLineJoin:()=>r.BI,setLineWidth:()=>r.Hm,setStrokingCmykColor:()=>r.FP,setStrokingColor:()=>r.ZP,setStrokingGrayscaleColor:()=>r.U4,setStrokingRgbColor:()=>r.Ie,setTextMatrix:()=>r.$J,setTextRenderingMode:()=>r.LW,setTextRise:()=>r.jt,setWordSpacing:()=>r.Sm,showText:()=>r.h$,singleQuote:()=>s.nI,sizeInBytes:()=>s.Wl,skewDegrees:()=>r.mk,skewRadians:()=>r.db,sortedUniq:()=>s.TR,square:()=>r.l$,stroke:()=>r.TB,sum:()=>s.cz,toCharCode:()=>s.VW,toCodePoint:()=>s.XX,toDegrees:()=>r.xW,toHexString:()=>s.U5,toHexStringOfMinLength:()=>s.vu,toRadians:()=>r.eh,toUint8Array:()=>s.Fo,translate:()=>r.kJ,typedArrayFor:()=>s.dp,utf16Decode:()=>s.NJ,utf16Encode:()=>s.bW,utf8Encode:()=>s.yi,values:()=>s.zu,waitForTick:()=>s.KP});var r=o(39033),n=o(73028),i=o(41896),a={};for(let t in i)0>["default","BlendMode","ColorTypes","CombedTextLayoutError","EncryptedPDFError","ExceededMaxLengthError","FieldAlreadyExistsError","FieldExistsAsNonTerminalError","FontkitNotRegisteredError","ForeignPageError","ImageAlignment","InvalidFieldNamePartError","InvalidMaxLengthError","LineCapStyle","LineJoinStyle","MissingOnValueCheckError","NoSuchFieldError","PDFButton","PDFCheckBox","PDFDocument","PDFDropdown","PDFEmbeddedPage","PDFField","PDFFont","PDFForm","PDFImage","PDFJavaScript","PDFOptionList","PDFPage","PDFRadioGroup","PDFSignature","PDFTextField","PageSizes","ParseSpeeds","RemovePageFromEmptyDocumentError","RichTextFieldReadError","RotationTypes","StandardFonts","TextAlignment","TextRenderingMode","UnexpectedFieldTypeError","adjustDimsForRotation","appendBezierCurve","appendQuadraticCurve","asNumber","asPDFName","asPDFNumber","beginMarkedContent","beginText","clip","clipEvenOdd","closePath","cmyk","colorToComponents","componentsToColor","concatTransformationMatrix","defaultButtonAppearanceProvider","defaultCheckBoxAppearanceProvider","defaultDropdownAppearanceProvider","defaultOptionListAppearanceProvider","defaultRadioGroupAppearanceProvider","defaultTextFieldAppearanceProvider","degrees","degreesToRadians","drawButton","drawCheckBox","drawCheckMark","drawEllipse","drawEllipsePath","drawImage","drawLine","drawLinesOfText","drawObject","drawOptionList","drawPage","drawRadioButton","drawRectangle","drawSvgPath","drawText","drawTextField","drawTextLines","endMarkedContent","endPath","endText","fill","fillAndStroke","grayscale","layoutCombedText","layoutMultilineText","layoutSinglelineText","lineTo","moveText","moveTo","nextLine","normalizeAppearance","popGraphicsState","pushGraphicsState","radians","radiansToDegrees","rectangle","reduceRotation","restoreDashPattern","rgb","rotateAndSkewTextDegreesAndTranslate","rotateAndSkewTextRadiansAndTranslate","rotateDegrees","rotateInPlace","rotateRadians","rotateRectangle","scale","setCharacterSpacing","setCharacterSqueeze","setDashPattern","setFillingCmykColor","setFillingColor","setFillingGrayscaleColor","setFillingRgbColor","setFontAndSize","setGraphicsState","setLineCap","setLineHeight","setLineJoin","setLineWidth","setStrokingCmykColor","setStrokingColor","setStrokingGrayscaleColor","setStrokingRgbColor","setTextMatrix","setTextRenderingMode","setTextRise","setWordSpacing","showText","skewDegrees","skewRadians","square","stroke","toDegrees","toRadians","translate","AFRelationship","AcroButtonFlags","AcroChoiceFlags","AcroFieldFlags","AcroTextFlags","AnnotationFlags","AppearanceCharacteristics","CharCodes","CorruptPageTreeError","CustomFontEmbedder","CustomFontSubsetEmbedder","Duplex","FileEmbedder","IndexOutOfBoundsError","InvalidAcroFieldValueError","InvalidPDFDateStringError","InvalidTargetIndexError","JpegEmbedder","MethodNotImplementedError","MissingCatalogError","MissingDAEntryError","MissingKeywordError","MissingPDFHeaderError","MissingPageContentsEmbeddingError","MissingTfOperatorError","MultiSelectValueError","NextByteAssertionError","NonFullScreenPageMode","NumberParsingError","PDFAcroButton","PDFAcroCheckBox","PDFAcroChoice","PDFAcroComboBox","PDFAcroField","PDFAcroForm","PDFAcroListBox","PDFAcroNonTerminal","PDFAcroPushButton","PDFAcroRadioButton","PDFAcroSignature","PDFAcroTerminal","PDFAcroText","PDFAnnotation","PDFArray","PDFArrayIsNotRectangleError","PDFBool","PDFCatalog","PDFContentStream","PDFContext","PDFCrossRefSection","PDFCrossRefStream","PDFDict","PDFFlateStream","PDFHeader","PDFHexString","PDFInvalidObject","PDFInvalidObjectParsingError","PDFName","PDFNull","PDFNumber","PDFObject","PDFObjectCopier","PDFObjectParser","PDFObjectParsingError","PDFObjectStream","PDFObjectStreamParser","PDFOperator","PDFOperatorNames","PDFPageEmbedder","PDFPageLeaf","PDFPageTree","PDFParser","PDFParsingError","PDFRawStream","PDFRef","PDFStream","PDFStreamParsingError","PDFStreamWriter","PDFString","PDFTrailer","PDFTrailerDict","PDFWidgetAnnotation","PDFWriter","PDFXRefStreamParser","PageEmbeddingMismatchedContextError","PngEmbedder","PrintScaling","PrivateConstructorError","ReadingDirection","ReparseError","StalledParserError","StandardFontEmbedder","UnbalancedParenthesisError","UnexpectedObjectTypeError","UnrecognizedStreamTypeError","UnsupportedEncodingError","ViewerPreferences","createPDFAcroField","createPDFAcroFields","decodePDFRawStream"].indexOf(t)&&(a[t]=()=>i[t]);o.d(e,a);var s=o(50930)},41896:()=>{},50930:(t,e,o)=>{"use strict";o.d(e,{l2:()=>to,no:()=>O,os:()=>l.os,pZ:()=>g,k:()=>Z,vk:()=>Q,jo:()=>G,Co:()=>z,DU:()=>U,hc:()=>L,vW:()=>Y,wU:()=>q,a_:()=>_,Qb:()=>X,Dw:()=>J,pj:()=>R,YF:()=>l.YF,nM:()=>y,D_:()=>k,ou:()=>F,sR:()=>l.sR,sJ:()=>l.sJ,Di:()=>l.Di,BP:()=>l.BP,X5:()=>l.X5,BO:()=>l.BO,_9:()=>K,RI:()=>W,Wk:()=>s,Sj:()=>u,XP:()=>a,z3:()=>T,Nt:()=>l.Nt,X2:()=>l.X2,dJ:()=>l.dJ,Pw:()=>V,me:()=>x.me,pJ:()=>x.pJ,rN:()=>x.rN,N7:()=>l.N7,Pz:()=>N,Xj:()=>H,HH:()=>x.HH,HV:()=>h,JQ:()=>l.JQ,P1:()=>x.P1,If:()=>f,Ac:()=>l.Ac,FP:()=>p,SU:()=>l.SU,um:()=>P,CF:()=>l.CF,_U:()=>l._U,IE:()=>te,f8:()=>C,y1:()=>A,N8:()=>E,q7:()=>m,nI:()=>I,Wl:()=>D,TR:()=>v,cz:()=>b,VW:()=>l.VW,XX:()=>l.XX,U5:()=>l.U5,vu:()=>l.vu,Fo:()=>w,dp:()=>d,NJ:()=>x.NJ,bW:()=>x.bW,yi:()=>x.yi,zu:()=>j,KP:()=>S});for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=new Uint8Array(256),i=0;i>2]+r[(3&t[n])<<4|t[n+1]>>4]+r[(15&t[n+1])<<2|t[n+2]>>6]+r[63&t[n+2]];return o%3==2?e=e.substring(0,e.length-1)+"=":o%3==1&&(e=e.substring(0,e.length-2)+"=="),e},s=function(t){var e,o,r,i,a,s=.75*t.length,c=t.length,u=0;"="===t[t.length-1]&&(s--,"="===t[t.length-2]&&s--);var l=new Uint8Array(s);for(e=0;e>4,l[u++]=(15&r)<<4|i>>2,l[u++]=(3&i)<<6|63&a;return l},c=/^(data)?:?([\w\/\+]+)?;?(charset=[\w-]+|base64)?.*,/i,u=function(t){var e=t.trim(),o=e.substring(0,100).match(c);if(!o)return s(e);var r=o[0];return s(e.substring(r.length))},l=o(33542),h=function(t){return t[t.length-1]},d=function(t){if(t instanceof Uint8Array)return t;for(var e=t.length,o=new Uint8Array(e),r=0;rMath.abs(t)){var o=parseInt(t.toString().split("e-")[1]);if(o){var r=t<0;r&&(t*=-1),t*=Math.pow(10,o-1),e="0."+Array(o).join("0")+t.toString().substring(2),r&&(e="-"+e)}}else{var o=parseInt(t.toString().split("+")[1]);o>20&&(o-=20,t/=Math.pow(10,o),e=t.toString()+Array(o+1).join("0"))}return e},D=function(t){return Math.ceil(t.toString(2).length/8)},k=function(t){for(var e=new Uint8Array(D(t)),o=1;o<=e.length;o++)e[o-1]=t>>(e.length-o)*8;return e},T=function(t){throw Error(t)},B=o(24899),j=function(t){return Object.keys(t).map(function(e){return t[e]})},O=j(B.sD),N=function(t){return O.includes(t)},E=function(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height},R=function(t){return"`"+t+"`"},I=function(t){return"'"+t+"'"},M=function(t){var e=typeof t;return"string"===e?I(t):"undefined"===e?R(t):t},W=function(t,e,o){for(var r=Array(o.length),n=0,i=o.length;nr)throw Error(R(e)+" must be at least "+o+" and at most "+r+", but was actually "+t)},J=function(t,e,o,r){G(t,e,["number","undefined"]),"number"==typeof t&&X(t,e,o,r)},Y=function(t,e,o){if(G(t,e,["number"]),t%o!=0)throw Error(R(e)+" must be a multiple of "+o+", but was actually "+t)},Q=function(t,e){if(!Number.isInteger(t))throw Error(R(e)+" must be an integer, but was actually "+t)},_=function(t,e){if(![1,0].includes(Math.sign(t)))throw Error(R(e)+" must be a positive number or 0, but was actually "+t)},$=new Uint16Array(256),tt=0;tt<256;tt++)$[tt]=tt;$[22]=(0,l.VW)("\x17"),$[24]=(0,l.VW)("˘"),$[25]=(0,l.VW)("ˇ"),$[26]=(0,l.VW)("ˆ"),$[27]=(0,l.VW)("˙"),$[28]=(0,l.VW)("˝"),$[29]=(0,l.VW)("˛"),$[30]=(0,l.VW)("˚"),$[31]=(0,l.VW)("˜"),$[127]=(0,l.VW)("�"),$[128]=(0,l.VW)("•"),$[129]=(0,l.VW)("†"),$[130]=(0,l.VW)("‡"),$[131]=(0,l.VW)("…"),$[132]=(0,l.VW)("—"),$[133]=(0,l.VW)("–"),$[134]=(0,l.VW)("ƒ"),$[135]=(0,l.VW)("⁄"),$[136]=(0,l.VW)("‹"),$[137]=(0,l.VW)("›"),$[138]=(0,l.VW)("−"),$[139]=(0,l.VW)("‰"),$[140]=(0,l.VW)("„"),$[141]=(0,l.VW)("“"),$[142]=(0,l.VW)("”"),$[143]=(0,l.VW)("‘"),$[144]=(0,l.VW)("’"),$[145]=(0,l.VW)("‚"),$[146]=(0,l.VW)("™"),$[147]=(0,l.VW)("fi"),$[148]=(0,l.VW)("fl"),$[149]=(0,l.VW)("Ł"),$[150]=(0,l.VW)("Œ"),$[151]=(0,l.VW)("Š"),$[152]=(0,l.VW)("Ÿ"),$[153]=(0,l.VW)("Ž"),$[154]=(0,l.VW)("ı"),$[155]=(0,l.VW)("ł"),$[156]=(0,l.VW)("œ"),$[157]=(0,l.VW)("š"),$[158]=(0,l.VW)("ž"),$[159]=(0,l.VW)("�"),$[160]=(0,l.VW)("€"),$[173]=(0,l.VW)("�");var te=function(t){for(var e=Array(t.length),o=0,r=t.length;o{"use strict";o.d(e,{Ac:()=>m,BO:()=>l,BP:()=>A,CF:()=>u,Di:()=>c,JQ:()=>v,N7:()=>y,Nt:()=>d,SU:()=>g,U5:()=>a,VW:()=>r,X2:()=>p,X5:()=>f,XX:()=>n,YF:()=>F,_U:()=>S,dJ:()=>x,os:()=>h,sJ:()=>s,sR:()=>b,vu:()=>i});var r=function(t){return t.charCodeAt(0)},n=function(t){return t.codePointAt(0)},i=function(t,e){return u(t.toString(16),e,"0").toUpperCase()},a=function(t){return i(t,2)},s=function(t){return String.fromCharCode(t)},c=function(t){return s(parseInt(t,16))},u=function(t,e,o){for(var r="",n=0,i=e-t.length;n=55296&&r<=56319&&t.length>n&&(o=t.charCodeAt(n))>=56320&&o<=57343&&(i=2),[t.slice(e,e+i),i]},A=function(t){for(var e=[],o=0,r=t.length;oo&&u(),a+=d,s+=p}}return u(),c},w=/^D:(\d\d\d\d)(\d\d)?(\d\d)?(\d\d)?(\d\d)?(\d\d)?([+\-Z])?(\d\d)?'?(\d\d)?'?$/,S=function(t){var e=t.match(w);if(e){var o=e[1],r=e[2],n=e[3],i=e[4],a=e[5],s=e[6],c=e[7],u=void 0===c?"Z":c,l=e[8],h=e[9];return new Date(o+"-"+(void 0===r?"01":r)+"-"+(void 0===n?"01":n)+"T"+(void 0===i?"00":i)+":"+(void 0===a?"00":a)+":"+(void 0===s?"00":s)+("Z"===u?"Z":""+u+(void 0===l?"00":l)+":"+(void 0===h?"00":h)))}},x=function(t,e){for(var o,r,n=0;n{"use strict";o.d(e,{HH:()=>s,NJ:()=>h,P1:()=>l,bW:()=>a,me:()=>c,pJ:()=>m,rN:()=>u,yi:()=>i});var r,n=o(33542),i=function(t,e){void 0===e&&(e=!0);var o=[];e&&o.push(239,187,191);for(var r=0,i=t.length;r>6&31|192,c=63&a|128;o.push(s,c),r+=1}else if(a<65536){var s=a>>12&15|224,c=a>>6&63|128,u=63&a|128;o.push(s,c,u),r+=1}else if(a<1114112){var s=a>>18&7|240,c=a>>12&63|128,u=a>>6&63|128,l=a>>0&63|128;o.push(s,c,u,l),r+=2}else throw Error("Invalid code point: 0x"+(0,n.U5)(a))}return new Uint8Array(o)},a=function(t,e){void 0===e&&(e=!0);var o=[];e&&o.push(65279);for(var r=0,i=t.length;r=0&&t<=65535},c=function(t){return t>=65536&&t<=1114111},u=function(t){return Math.floor((t-65536)/1024)+55296},l=function(t){return(t-65536)%1024+56320};!function(t){t.BigEndian="BigEndian",t.LittleEndian="LittleEndian"}(r||(r={}));var h=function(t,e){if(void 0===e&&(e=!0),t.length<=1)return String.fromCodePoint(65533);for(var o=e?g(t):r.BigEndian,n=e?2:0,i=[];t.length-n>=2;){var a=p(t[n++],t[n++],o);if(d(a)){if(t.length-n<2)i.push(65533);else{var s=p(t[n++],t[n++],o);f(s)?i.push(a,s):i.push(65533)}}else f(a)?(n+=2,i.push(65533)):i.push(a)}return n=55296&&t<=56319},f=function(t){return t>=56320&&t<=57343},p=function(t,e,o){if(o===r.LittleEndian)return e<<8|t;if(o===r.BigEndian)return t<<8|e;throw Error("Invalid byteOrder: "+o)},g=function(t){return y(t)?r.BigEndian:v(t)?r.LittleEndian:r.BigEndian},y=function(t){return 254===t[0]&&255===t[1]},v=function(t){return 255===t[0]&&254===t[1]},m=function(t){return y(t)||v(t)}},75935:(t,e,o)=>{"use strict";o.d(e,{C6:()=>n,Cl:()=>i,Tt:()=>a,YH:()=>c,aN:()=>u,sH:()=>s});/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */var r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)};function n(t,e){function o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}var i=function(){return(i=Object.assign||function(t){for(var e,o=1,r=arguments.length;oe.indexOf(r)&&(o[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,r=Object.getOwnPropertySymbols(t);ne.indexOf(r[n])&&Object.prototype.propertyIsEnumerable.call(t,r[n])&&(o[r[n]]=t[r[n]]);return o}function s(t,e,o,r){return new(o||(o=Promise))(function(n,i){function a(t){try{c(r.next(t))}catch(t){i(t)}}function s(t){try{c(r.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?n(t.value):((e=t.value)instanceof o?e:new o(function(t){t(e)})).then(a,s)}c((r=r.apply(t,e||[])).next())})}function c(t,e){var o,r,n,i,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(o)throw TypeError("Generator is already executing.");for(;a;)try{if(o=1,r&&(n=2&i[0]?r.return:i[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,i[1])).done)return n;switch(r=0,n&&(i=[2&i[0],n.value]),i[0]){case 0:case 1:n=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(n=(n=a.trys).length>0&&n[n.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!n||i[1]>n[0]&&i[1]