"use strict";(self.webpackChunkstudio_client=self.webpackChunkstudio_client||[]).push([[6532],{7636(t,e,n){n.d(e,{c:()=>v});var r=n(7448),o=0,i=0,s=0,a=0,u=0,c=0,f=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]]),h={M:function(t){return o=t[0],i=t[1],s=a=null,u=o,c=i,(0,r.tw)(o,i)},m:function(t){return o+=t[0],i+=t[1],s=a=null,u=o,c=i,(0,r.tw)(o,i)},C:function(t){return o=t[4],i=t[5],s=t[2],a=t[3],(0,r.v$)(t[0],t[1],t[2],t[3],t[4],t[5])},c:function(t){var e=(0,r.v$)(t[0]+o,t[1]+i,t[2]+o,t[3]+i,t[4]+o,t[5]+i);return s=o+t[2],a=i+t[3],o+=t[4],i+=t[5],e},S:function(t){null!==s&&null!==a||(s=o,a=i);var e=(0,r.v$)(o-(s-o),i-(a-i),t[0],t[1],t[2],t[3]);return s=t[0],a=t[1],o=t[2],i=t[3],e},s:function(t){null!==s&&null!==a||(s=o,a=i);var e=(0,r.v$)(o-(s-o),i-(a-i),o+t[0],i+t[1],o+t[2],i+t[3]);return s=o+t[0],a=i+t[1],o+=t[2],i+=t[3],e},Q:function(t){return s=t[0],a=t[1],o=t[2],i=t[3],(0,r.a_)(t[0],t[1],o,i)},q:function(t){var e=(0,r.a_)(t[0]+o,t[1]+i,t[2]+o,t[3]+i);return s=o+t[0],a=i+t[1],o+=t[2],i+=t[3],e},T:function(t){null===s||null===a?(s=o,a=i):(s=o-(s-o),a=i-(a-i));var e=(0,r.a_)(s,a,t[0],t[1]);return s=o-(s-o),a=i-(a-i),o=t[0],i=t[1],e},t:function(t){null===s||null===a?(s=o,a=i):(s=o-(s-o),a=i-(a-i));var e=(0,r.a_)(s,a,o+t[0],i+t[1]);return o+=t[0],i+=t[1],e},A:function(t){var e=l(o,i,t);return o=t[5],i=t[6],e},a:function(t){t[5]+=o,t[6]+=i;var e=l(o,i,t);return o=t[5],i=t[6],e},L:function(t){return o=t[0],i=t[1],s=a=null,(0,r.a5)(o,i)},l:function(t){return o+=t[0],i+=t[1],s=a=null,(0,r.a5)(o,i)},H:function(t){return o=t[0],s=a=null,(0,r.a5)(o,i)},h:function(t){return o+=t[0],s=a=null,(0,r.a5)(o,i)},V:function(t){return i=t[0],s=a=null,(0,r.a5)(o,i)},v:function(t){return i+=t[0],s=a=null,(0,r.a5)(o,i)},Z:function(){var t=(0,r.OE)();return o=u,i=c,t},z:function(){var t=(0,r.OE)();return o=u,i=c,t}},l=function(t,e,n){for(var o=n[0],i=n[1],s=n[2],a=n[3],u=n[4],c=n[5],f=n[6],h=[],l=0,v=p(c,f,o,i,a,u,s,t,e);l1&&(n*=d=Math.sqrt(d),r*=d);var v=p/n,g=l/n,A=-l/r,y=p/r,m=v*c+g*f,b=A*c+y*f,C=v*t+g*e,F=A*t+y*e,w=1/((C-m)*(C-m)+(F-b)*(F-b))-.25;w<0&&(w=0);var x=Math.sqrt(w);i===o&&(x=-x);var S=.5*(m+C)-x*(F-b),D=.5*(b+F)+x*(C-m),O=Math.atan2(b-D,m-S),P=Math.atan2(F-D,C-S)-O;P<0&&1===i?P+=2*Math.PI:P>0&&0===i&&(P-=2*Math.PI);for(var T=Math.ceil(Math.abs(P/(.5*Math.PI+.001))),j=[],I=0;I0&&(r[r.length]=+o),n[n.length]={cmd:e,args:r},r=[],o="",i=!1),e=c;else if([" ",","].includes(c)||"-"===c&&o.length>0&&"e"!==o[o.length-1]||"."===c&&i){if(0===o.length)continue;r.length===s?(n[n.length]={cmd:e,args:r},r=[+o],"M"===e&&(e="L"),"m"===e&&(e="l")):r[r.length]=+o,i="."===c,o=["-","."].includes(c)?c:""}else o+=c,"."===c&&(i=!0)}return o.length>0&&(r.length===s?(n[n.length]={cmd:e,args:r},r=[+o],"M"===e&&(e="L"),"m"===e&&(e="l")):r[r.length]=+o),n[n.length]={cmd:e,args:r},n}(t))}},772(t,e,n){var r;n.d(e,{D:()=>r}),function(t){t[t.Left=0]="Left",t[t.Center=1]="Center",t[t.Right=2]="Right"}(r||(r={}))},8305(t,e,n){n(772),n(7523)},7523(t,e,n){n.d(e,{Tf:()=>c,k7:()=>f,sK:()=>h});var r=n(5182),o=n(772),i=n(2714),s=function(t,e,n,r){void 0===r&&(r=!1);for(var o=4;o<500;){for(var i=0,s=0,a=t.length;st.length)return o-1;var d=e.heightAtSize(o);if((d+.2*d)*i>Math.abs(n.height))return o-1;o+=1}return o},a=function(t){for(var e=t.length;e>0;e--)if(/\s/.test(t[e]))return e},u=function(t,e,n,r){for(var o,i=t.length;i>0;){var s=t.substring(0,i),u=n.encodeText(s),c=n.widthOfTextAtSize(s,r);if(cg&&(g=O+S),y+h>A&&(A=y+h),p.push({text:w,encoded:x,width:S,height:h,x:O,y}),C=null==D?void 0:D.trim()}return{fontSize:r,lineHeight:l,lines:p,bounds:{x:d,y:v,width:g-d,height:A-v}}},f=function(t,e){var n=e.fontSize,o=e.font,s=e.bounds,a=e.cellCount,u=(0,i.Ac)((0,i.X5)(t));if(u.length>a)throw new r.A(u.length,a);void 0!==n&&0!==n||(n=function(t,e,n,r){for(var o=n.width/r,s=n.height,a=4,u=(0,i.BP)(t);a<500;){for(var c=0,f=u.length;c.75*o)return a-1}if(e.heightAtSize(a,{descender:!1})>s)return a-1;a+=1}return a}(u,o,s,a));for(var c=s.width/a,f=o.heightAtSize(n,{descender:!1}),h=s.y+(s.height/2-f/2),l=[],p=s.x,d=s.y,v=s.x+s.width,g=s.y+s.height,A=0,y=0;Av&&(v=x+w),h+f>g&&(g=h+f),l.push({text:u,encoded:F,width:w,height:f,x,y:h}),A+=1,y+=C}return{fontSize:n,cells:l,bounds:{x:p,y:d,width:v-p,height:g-d}}},h=function(t,e){var n=e.alignment,r=e.fontSize,a=e.font,u=e.bounds,c=(0,i.Ac)((0,i.X5)(t));void 0!==r&&0!==r||(r=s([c],a,u));var f=a.encodeText(c),h=a.widthOfTextAtSize(c,r),l=a.heightAtSize(r,{descender:!1}),p=n===o.D.Left?u.x:n===o.D.Center?u.x+u.width/2-h/2:n===o.D.Right?u.x+u.width-h:u.x,d=u.y+(u.height/2-l/2);return{fontSize:r,line:{text:c,encoded:f,width:h,height:l,x:p,y:d},bounds:{x:p,y:d,width:h,height:l}}}},4563(t,e,n){n.d(e,{A:()=>x});var r=n(5890),o=n(3758),i=n.n(o),s=n(4707),a=n(3337),u=n(7744),c=n(3441),f=n(2801),h=n(7283),l=n(888),p=n(4636),d=n(4858),v=n(3795),g=n(1208),A=n(1628),y=n(9982),m=n(1236),b=n(2714),C=n(9929),F=function(t,e){var n=t[0],r=e[0];return n.objectNumber-r.objectNumber},w=function(){function t(){this.largestObjectNumber=0,this.header=s.A.forVersion(1,7),this.trailerInfo={},this.indirectObjects=new Map,this.rng=C.I.withSeed(1)}return t.prototype.assign=function(t,e){this.indirectObjects.set(t,e),t.objectNumber>this.largestObjectNumber&&(this.largestObjectNumber=t.objectNumber)},t.prototype.nextRef=function(){return this.largestObjectNumber+=1,g.A.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=[],n=1;nc});var r=n(7744),o=n(2801),i=n(7283),s=n(1208),a=n(2469),u=n(7350);const c=function(){function t(t,e){var n=this;this.traversedObjects=new Map,this.copy=function(t){return t instanceof u.A?n.copyPDFPage(t):t instanceof o.A?n.copyPDFDict(t):t instanceof r.A?n.copyPDFArray(t):t instanceof a.A?n.copyPDFStream(t):t instanceof s.A?n.copyPDFIndirectObject(t):t.clone()},this.copyPDFPage=function(t){for(var e=t.clone(),r=u.A.InheritableEntries,o=0,s=r.length;ox,qM:()=>D,Zo:()=>w,Il:()=>S,RL:()=>F,Bi:()=>I,In:()=>_,ld:()=>W,z5:()=>N,OR:()=>V,b$:()=>G,oz:()=>R,AC:()=>y,BM:()=>E,h$:()=>L});var r=n(5890),o=n(6792),i=n(209),s=n(7744),a=n(7283),u=n(2801),c=n(4636),f=n(1208),h=n(2714),l=n(3337),p=/\/([^\0\t\n\f\r\ ]+)[\0\t\n\f\r\ ]*(\d*\.\d+|\d+)?[\0\t\n\f\r\ ]+Tf/,d=function(){function t(t,e){this.dict=t,this.ref=e}return t.prototype.T=function(){return this.dict.lookupMaybe(a.A.of("T"),o.A,i.A)},t.prototype.Ff=function(){var t=this.getInheritableAttribute(a.A.of("Ff"));return this.dict.context.lookupMaybe(t,c.A)},t.prototype.V=function(){var t=this.getInheritableAttribute(a.A.of("V"));return this.dict.context.lookup(t)},t.prototype.Kids=function(){return this.dict.lookupMaybe(a.A.of("Kids"),s.A)},t.prototype.DA=function(){var t=this.dict.lookup(a.A.of("DA"));if(t instanceof o.A||t instanceof i.A)return t},t.prototype.setKids=function(t){this.dict.set(a.A.of("Kids"),this.dict.context.obj(t))},t.prototype.getParent=function(){var e=this.dict.get(a.A.of("Parent"));if(e instanceof f.A)return new t(this.dict.lookup(a.A.of("Parent"),u.A),e)},t.prototype.setParent=function(t){t?this.dict.set(a.A.of("Parent"),t):this.dict.delete(a.A.of("Parent"))},t.prototype.getFullyQualifiedName=function(){var t=this.getParent();return t?t.getFullyQualifiedName()+"."+this.getPartialName():this.getPartialName()},t.prototype.getPartialName=function(){var t;return null===(t=this.T())||void 0===t?void 0:t.decodeText()},t.prototype.setPartialName=function(t){t?this.dict.set(a.A.of("T"),i.A.fromText(t)):this.dict.delete(a.A.of("T"))},t.prototype.setDefaultAppearance=function(t){this.dict.set(a.A.of("DA"),o.A.of(t))},t.prototype.getDefaultAppearance=function(){var t=this.DA();return t instanceof i.A?t.decodeText():null==t?void 0:t.asString()},t.prototype.setFontSize=function(t){var e,n=null!==(e=this.getFullyQualifiedName())&&void 0!==e?e:"",r=this.getDefaultAppearance();if(!r)throw new l.o4(n);var o=(0,h.dJ)(r,p);if(!o.match)throw new l.F2(n);var i=r.slice(0,o.pos-o.match[0].length),s=o.pos<=r.length?r.slice(o.pos):"",a=i+" /"+o.match[1]+" "+t+" Tf "+s;this.setDefaultAppearance(a)},t.prototype.getFlags=function(){var t,e;return null!==(e=null===(t=this.Ff())||void 0===t?void 0:t.asNumber())&&void 0!==e?e:0},t.prototype.setFlags=function(t){this.dict.set(a.A.of("Ff"),c.A.of(t))},t.prototype.hasFlag=function(t){return 0!==(this.getFlags()&t)},t.prototype.setFlag=function(t){var e=this.getFlags();this.setFlags(e|t)},t.prototype.clearFlag=function(t){var e=this.getFlags();this.setFlags(e&~t)},t.prototype.setFlagTo=function(t,e){e?this.setFlag(t):this.clearFlag(t)},t.prototype.getInheritableAttribute=function(t){var e;return this.ascend(function(n){e||(e=n.dict.get(t))}),e},t.prototype.ascend=function(t){t(this);var e=this.getParent();e&&e.ascend(t)},t}();const v=d;var g=n(9388),A=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.C6)(e,t),e.prototype.FT=function(){var t=this.getInheritableAttribute(a.A.of("FT"));return this.dict.context.lookup(t,a.A)},e.prototype.getWidgets=function(){var t=this.Kids();if(!t)return[g.A.fromDict(this.dict)];for(var e=new Array(t.size()),n=0,r=t.size();ne.size())throw new l.fx(t,0,e.size());e.remove(t)}else{if(0!==t)throw new l.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(a.A.of("Kids"),t)),{Kids:t}},e.fromDict=function(t,n){return new e(t,n)},e}(v);const y=A;var m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.C6)(e,t),e.prototype.Opt=function(){return this.dict.lookupMaybe(a.A.of("Opt"),o.A,i.A,s.A)},e.prototype.setOpt=function(t){this.dict.set(a.A.of("Opt"),this.dict.context.obj(t))},e.prototype.getExportValues=function(){var t=this.Opt();if(t){if(t instanceof o.A||t instanceof i.A)return[t];for(var e=[],n=0,r=t.size();ne.size())throw new l.fx(t,0,e.size());e.remove(t)}},e.prototype.normalizeExportValues=function(){for(var t,e,n,r,o=null!==(t=this.getExportValues())&&void 0!==t?t:[],s=[],a=this.getWidgets(),u=0,c=a.length;u1){if(!this.hasFlag(D.MultiSelect))throw new l.Hi;this.dict.set(a.A.of("V"),this.dict.context.obj(t))}this.updateSelectedIndices(t)},e.prototype.valuesAreValid=function(t){for(var e=this.getOptions(),n=function(n,r){var o=t[n].decodeText();if(!e.find(function(t){return o===(t.display||t.value).decodeText()}))return{value:!1}},r=0,o=t.length;r1){for(var e=new Array(t.length),n=this.getOptions(),r=function(r,o){var i=t[r].decodeText();e[r]=n.findIndex(function(t){return i===(t.display||t.value).decodeText()})},o=0,i=t.length;o0){var u=a.lookup(0,o.A,i.A),c=a.lookupMaybe(1,o.A,i.A);e.push({value:u,display:c||u})}}return e}return[]},e}(y);const T=P;var j=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.C6)(e,t),e.fromDict=function(t,n){return new e(t,n)},e.create=function(t){var n=t.obj({FT:"Ch",Ff:D.Combo,Kids:[]});return new e(n,t.register(n))},e}(T);const I=j;var M=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.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(a.A.of("Kids"),t)),{Kids:t}},e.fromDict=function(t,n){return new e(t,n)},e.create=function(t){var n=t.obj({});return new e(n,t.register(n))},e}(v);const N=M;var k=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.C6)(e,t),e.fromDict=function(t,n){return new e(t,n)},e}(y);const R=k;var B=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.C6)(e,t),e.prototype.MaxLen=function(){var t=this.dict.lookup(a.A.of("MaxLen"));if(t instanceof c.A)return t},e.prototype.Q=function(){var t=this.dict.lookup(a.A.of("Q"));if(t instanceof c.A)return t},e.prototype.setMaxLength=function(t){this.dict.set(a.A.of("MaxLen"),c.A.of(t))},e.prototype.removeMaxLength=function(){this.dict.delete(a.A.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(a.A.of("Q"),c.A.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(a.A.of("V"),t)},e.prototype.removeValue=function(){this.dict.delete(a.A.of("V"))},e.prototype.getValue=function(){var t=this.V();if(t instanceof o.A||t instanceof i.A)return t},e.fromDict=function(t,n){return new e(t,n)},e.create=function(t){var n=t.obj({FT:"Tx",Kids:[]});return new e(n,t.register(n))},e}(y);const E=B;var z=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.C6)(e,t),e.fromDict=function(t,n){return new e(t,n)},e.create=function(t){var n=t.obj({FT:"Btn",Ff:x.PushButton,Kids:[]});return new e(n,t.register(n))},e}(b);const V=z;var H=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.C6)(e,t),e.prototype.setValue=function(t){if(!this.getOnValues().includes(t)&&t!==a.A.of("Off"))throw new l.cR;this.dict.set(a.A.of("V"),t);for(var e=this.getWidgets(),n=0,r=e.length;nu});var r=n(7283),o=n(4636),i=n(7744),s=n(209),a=n(6792);const u=function(){function t(t){this.dict=t}return t.prototype.R=function(){var t=this.dict.lookup(r.A.of("R"));if(t instanceof o.A)return t},t.prototype.BC=function(){var t=this.dict.lookup(r.A.of("BC"));if(t instanceof i.A)return t},t.prototype.BG=function(){var t=this.dict.lookup(r.A.of("BG"));if(t instanceof i.A)return t},t.prototype.CA=function(){var t=this.dict.lookup(r.A.of("CA"));if(t instanceof s.A||t instanceof a.A)return t},t.prototype.RC=function(){var t=this.dict.lookup(r.A.of("RC"));if(t instanceof s.A||t instanceof a.A)return t},t.prototype.AC=function(){var t=this.dict.lookup(r.A.of("AC"));if(t instanceof s.A||t instanceof a.A)return t},t.prototype.getRotation=function(){var t;return null===(t=this.R())||void 0===t?void 0:t.asNumber()},t.prototype.getBorderColor=function(){var t=this.BC();if(t){for(var e=[],n=0,r=null==t?void 0:t.size();nc});var r=n(2801),o=n(7283),i=n(2469),s=n(7744),a=n(1208),u=n(4636);const c=function(){function t(t){this.dict=t}return t.prototype.Rect=function(){return this.dict.lookup(o.A.of("Rect"),s.A)},t.prototype.AP=function(){return this.dict.lookupMaybe(o.A.of("AP"),r.A)},t.prototype.F=function(){var t=this.dict.lookup(o.A.of("F"));return this.dict.context.lookupMaybe(t,u.A)},t.prototype.getRectangle=function(){var t,e=this.Rect();return null!==(t=null==e?void 0:e.asRectangle())&&void 0!==t?t:{x:0,y:0,width:0,height:0}},t.prototype.setRectangle=function(t){var e=t.x,n=t.y,r=t.width,i=t.height,s=this.dict.context.obj([e,n,e+r,n+i]);this.dict.set(o.A.of("Rect"),s)},t.prototype.getAppearanceState=function(){var t=this.dict.lookup(o.A.of("AS"));if(t instanceof o.A)return t},t.prototype.setAppearanceState=function(t){this.dict.set(o.A.of("AS"),t)},t.prototype.setAppearances=function(t){this.dict.set(o.A.of("AP"),t)},t.prototype.ensureAP=function(){var t=this.AP();return t||(t=this.dict.context.obj({}),this.dict.set(o.A.of("AP"),t)),t},t.prototype.getNormalAppearance=function(){var t=this.ensureAP().get(o.A.of("N"));if(t instanceof a.A||t instanceof r.A)return t;throw new Error("Unexpected N type: "+(null==t?void 0:t.constructor.name))},t.prototype.setNormalAppearance=function(t){this.ensureAP().set(o.A.of("N"),t)},t.prototype.setRolloverAppearance=function(t){this.ensureAP().set(o.A.of("R"),t)},t.prototype.setDownAppearance=function(t){this.ensureAP().set(o.A.of("D"),t)},t.prototype.removeRolloverAppearance=function(){var t=this.AP();null==t||t.delete(o.A.of("R"))},t.prototype.removeDownAppearance=function(){var t=this.AP();null==t||t.delete(o.A.of("D"))},t.prototype.getAppearances=function(){var t=this.AP();if(t)return{normal:t.lookup(o.A.of("N"),r.A,i.A),rollover:t.lookupMaybe(o.A.of("R"),r.A,i.A),down:t.lookupMaybe(o.A.of("D"),r.A,i.A)}},t.prototype.getFlags=function(){var t,e;return null!==(e=null===(t=this.F())||void 0===t?void 0:t.asNumber())&&void 0!==e?e:0},t.prototype.setFlags=function(t){this.dict.set(o.A.of("F"),u.A.of(t))},t.prototype.hasFlag=function(t){return 0!==(this.getFlags()&t)},t.prototype.setFlag=function(t){var e=this.getFlags();this.setFlags(e|t)},t.prototype.clearFlag=function(t){var e=this.getFlags();this.setFlags(e&~t)},t.prototype.setFlagTo=function(t,e){e?this.setFlag(t):this.clearFlag(t)},t.fromDict=function(e){return new t(e)},t}()},9388(t,e,n){n.d(e,{A:()=>d});var r=n(5890),o=n(2801),i=n(7283),s=n(1208),a=n(6792),u=n(209),c=n(4636);const f=function(){function t(t){this.dict=t}return t.prototype.W=function(){var t=this.dict.lookup(i.A.of("W"));if(t instanceof c.A)return t},t.prototype.getWidth=function(){var t,e;return null!==(e=null===(t=this.W())||void 0===t?void 0:t.asNumber())&&void 0!==e?e:1},t.prototype.setWidth=function(t){var e=this.dict.context.obj(t);this.dict.set(i.A.of("W"),e)},t.fromDict=function(e){return new t(e)},t}();var h=n(4359),l=n(7244),p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.C6)(e,t),e.prototype.MK=function(){var t=this.dict.lookup(i.A.of("MK"));if(t instanceof o.A)return t},e.prototype.BS=function(){var t=this.dict.lookup(i.A.of("BS"));if(t instanceof o.A)return t},e.prototype.DA=function(){var t=this.dict.lookup(i.A.of("DA"));if(t instanceof a.A||t instanceof u.A)return t},e.prototype.P=function(){var t=this.dict.get(i.A.of("P"));if(t instanceof s.A)return t},e.prototype.setP=function(t){this.dict.set(i.A.of("P"),t)},e.prototype.setDefaultAppearance=function(t){this.dict.set(i.A.of("DA"),a.A.of(t))},e.prototype.getDefaultAppearance=function(){var t=this.DA();return t instanceof u.A?t.decodeText():null==t?void 0:t.asString()},e.prototype.getAppearanceCharacteristics=function(){var t=this.MK();if(t)return l.A.fromDict(t)},e.prototype.getOrCreateAppearanceCharacteristics=function(){var t=this.MK();if(t)return l.A.fromDict(t);var e=l.A.fromDict(this.dict.context.obj({}));return this.dict.set(i.A.of("MK"),e.dict),e},e.prototype.getBorderStyle=function(){var t=this.BS();if(t)return f.fromDict(t)},e.prototype.getOrCreateBorderStyle=function(){var t=this.BS();if(t)return f.fromDict(t);var e=f.fromDict(this.dict.context.obj({}));return this.dict.set(i.A.of("BS"),e.dict),e},e.prototype.getOnValue=function(){var t,e=null===(t=this.getAppearances())||void 0===t?void 0:t.normal;if(e instanceof o.A)for(var n=e.keys(),r=0,s=n.length;rr,Ml:()=>o.A});n(4359);var r,o=n(9388),i=(n(7244),function(t){return 1<s});var r=n(1208),o=n(2828),i=n(2714);const s=function(){function t(t){this.subsections=t?[[t]]:[],this.chunkIdx=0,this.chunkLength=t?1:0}return t.prototype.addEntry=function(t,e){this.append({ref:t,offset:e,deleted:!1})},t.prototype.addDeletedEntry=function(t,e){this.append({ref:t,offset:e,deleted:!0})},t.prototype.toString=function(){for(var t="xref\n",e=0,n=this.subsections.length;e1?(this.subsections.push([t]),this.chunkIdx+=1,this.chunkLength=1):(e.push(t),this.chunkLength+=1)},t.create=function(){return new t({ref:r.A.of(0,65535),offset:0,deleted:!0})},t.createEmpty=function(){return new t},t}()},4707(t,e,n){n.d(e,{A:()=>i});var r=n(2828),o=n(2714);const i=function(){function t(t,e){this.major=String(t),this.minor=String(e)}return t.prototype.toString=function(){var t=(0,o.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 n=e;return t[e++]=r.A.Percent,t[e++]=r.A.P,t[e++]=r.A.D,t[e++]=r.A.F,t[e++]=r.A.Dash,e+=(0,o.BO)(this.major,t,e),t[e++]=r.A.Period,e+=(0,o.BO)(this.minor,t,e),t[e++]=r.A.Newline,t[e++]=r.A.Percent,t[e++]=129,t[e++]=129,t[e++]=129,t[e++]=129,e-n},t.forVersion=function(e,n){return new t(e,n)},t}()},9667(t,e,n){n.d(e,{A:()=>i});var r=n(2828),o=n(2714);const i=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 n=e;return t[e++]=r.A.s,t[e++]=r.A.t,t[e++]=r.A.a,t[e++]=r.A.r,t[e++]=r.A.t,t[e++]=r.A.x,t[e++]=r.A.r,t[e++]=r.A.e,t[e++]=r.A.f,t[e++]=r.A.Newline,e+=(0,o.BO)(this.lastXRefOffset,t,e),t[e++]=r.A.Newline,t[e++]=r.A.Percent,t[e++]=r.A.Percent,t[e++]=r.A.E,t[e++]=r.A.O,t[e++]=r.A.F,e-n},t.forLastCrossRefSectionOffset=function(e){return new t(e)},t}()},9523(t,e,n){n.d(e,{A:()=>o});var r=n(2828);const o=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 n=e;return t[e++]=r.A.t,t[e++]=r.A.r,t[e++]=r.A.a,t[e++]=r.A.i,t[e++]=r.A.l,t[e++]=r.A.e,t[e++]=r.A.r,t[e++]=r.A.Newline,(e+=this.dict.copyBytesInto(t,e))-n},t.of=function(e){return new t(e)},t}()},6620(t,e,n){n.d(e,{A:()=>p});var r=n(5890),o=n(2714),i=n(6259),s=function(t){return"/CIDInit /ProcSet findresource begin\n12 dict begin\nbegincmap\n/CIDSystemInfo <<\n /Registry (Adobe)\n /Ordering (UCS)\n /Supplement 0\n>> 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"},a=function(){for(var t=[],e=0;e"},u=function(t){return(0,o.vu)(t,4)},c=function(t){if((0,i.HH)(t))return u(t);if((0,i.me)(t)){var e=(0,i.rN)(t),n=(0,i.P1)(t);return""+u(e)+u(n)}var r=(0,o.U5)(t);throw new Error("0x"+r+" is not a valid UTF-8 or UTF-16 codepoint.")},f=n(209),h=n(6792),l=function(){function t(t,e,n,r){var i=this;this.allGlyphsInFontSortedById=function(){for(var t=new Array(i.font.characterSet.length),e=0,n=t.length;ea});var r=n(5890),o=n(6620),i=n(209),s=n(2714);const a=function(t){function e(e,n,r,o){var i=t.call(this,e,n,r,o)||this;return i.subset=i.font.createSubset(),i.glyphs=[],i.glyphCache=s.l2.populatedBy(function(){return i.glyphs}),i.glyphIdMap=new Map,i}return(0,r.C6)(e,t),e.for=function(t,n,o,i){return(0,r.sH)(this,void 0,void 0,function(){return(0,r.YH)(this,function(r){switch(r.label){case 0:return[4,t.create(n)];case 1:return[2,new e(r.sent(),n,o,i)]}})})},e.prototype.encodeText=function(t){for(var e=this.font.layout(t,this.fontFeatures).glyphs,n=new Array(e.length),r=0,o=e.length;ra,G:()=>r});var r,o=n(5890),i=n(6792),s=n(209);!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={}));const a=function(){function t(t,e,n){void 0===n&&(n={}),this.fileData=t,this.fileName=e,this.options=n}return t.for=function(e,n,r){return void 0===r&&(r={}),new t(e,n,r)},t.prototype.embedIntoContext=function(t,e){return(0,o.sH)(this,void 0,void 0,function(){var n,r,a,u,c,f,h,l,p;return(0,o.YH)(this,function(o){return n=this.options,r=n.mimeType,a=n.description,u=n.creationDate,c=n.modificationDate,f=n.afRelationship,h=t.flateStream(this.fileData,{Type:"EmbeddedFile",Subtype:null!=r?r:void 0,Params:{Size:this.fileData.length,CreationDate:u?i.A.fromDate(u):void 0,ModDate:c?i.A.fromDate(c):void 0}}),l=t.register(h),p=t.obj({Type:"Filespec",F:i.A.of(this.fileName),UF:s.A.fromText(this.fileName),EF:{F:l},Desc:a?s.A.fromText(a):void 0,AFRelationship:null!=f?f:void 0}),e?(t.assign(e,p),[2,e]):[2,t.register(p)]})})},t}()},8731(t,e,n){n.d(e,{A:()=>i});var r=n(5890),o=n(209);const i=function(){function t(t,e){this.script=t,this.scriptName=e}return t.for=function(e,n){return new t(e,n)},t.prototype.embedIntoContext=function(t,e){return(0,r.sH)(this,void 0,void 0,function(){var n;return(0,r.YH)(this,function(r){return n=t.obj({Type:"Action",S:"JavaScript",JS:o.A.fromText(this.script)}),e?(t.assign(e,n),[2,e]):[2,t.register(n)]})})},t}()},1926(t,e,n){n.d(e,{A:()=>a});var r,o=n(5890),i=[65472,65473,65474,65475,65477,65478,65479,65480,65481,65482,65483,65484,65485,65486,65487];!function(t){t.DeviceGray="DeviceGray",t.DeviceRGB="DeviceRGB",t.DeviceCMYK="DeviceCMYK"}(r||(r={}));var s={1:r.DeviceGray,3:r.DeviceRGB,4:r.DeviceCMYK};const a=function(){function t(t,e,n,r,o){this.imageData=t,this.bitsPerComponent=e,this.width=n,this.height=r,this.colorSpace=o}return t.for=function(e){return(0,o.sH)(this,void 0,void 0,function(){var n,r,a,u,c,f,h,l;return(0,o.YH)(this,function(o){if(n=new DataView(e.buffer),65496!==n.getUint16(0))throw new Error("SOI not found in JPEG");for(r=2;rl});var r=n(5890),o=n(3337),i=n(4636),s=n(3795),a=n(2469),u=n(8096),c=n(1236),f=n(2828),h=n(2714);const l=function(){function t(t,e,n){this.page=t;var r=null!=e?e:function(t){var e=t.MediaBox();return{left:0,bottom:0,right:e.lookup(2,i.A).asNumber()-e.lookup(0,i.A).asNumber(),top:e.lookup(3,i.A).asNumber()-e.lookup(1,i.A).asNumber()}}(t);this.width=r.right-r.left,this.height=r.top-r.bottom,this.boundingBox=r,this.transformationMatrix=null!=n?n:function(t){return[1,0,0,1,-t.left,-t.bottom]}(r)}return t.for=function(e,n,o){return(0,r.sH)(this,void 0,void 0,function(){return(0,r.YH)(this,function(r){return[2,new t(e,n,o)]})})},t.prototype.embedIntoContext=function(t,e){return(0,r.sH)(this,void 0,void 0,function(){var n,i,s,a,u,c,f,h,l,p;return(0,r.YH)(this,function(r){if(n=this.page.normalizedEntries(),i=n.Contents,s=n.Resources,!i)throw new o.tX;return a=this.decodeContents(i),u=this.boundingBox,c=u.left,f=u.bottom,h=u.right,l=u.top,p=t.flateStream(a,{Type:"XObject",Subtype:"Form",FormType:1,BBox:[c,f,h,l],Matrix:this.transformationMatrix,Resources:s}),e?(t.assign(e,p),[2,e]):[2,t.register(p)]})})},t.prototype.decodeContents=function(t){for(var e=Uint8Array.of(f.A.Newline),n=[],r=0,i=t.size();ri});var r=n(5890),o=n(2279);const i=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,r.sH)(this,void 0,void 0,function(){return(0,r.YH)(this,function(n){return[2,new t(o.O.load(e))]})})},t.prototype.embedIntoContext=function(t,e){return(0,r.sH)(this,void 0,void 0,function(){var n,o;return(0,r.YH)(this,function(r){return n=this.embedAlphaChannel(t),o=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:n}),e?(t.assign(e,o),[2,e]):[2,t.register(o)]})})},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}()},9140(t,e,n){n.d(e,{A:()=>s});var r=n(8339),o=n(209),i=n(2714);const s=function(){function t(t,e){this.encoding=t===r.sD.ZapfDingbats?r.p6.ZapfDingbats:t===r.sD.Symbol?r.p6.Symbol:r.p6.WinAnsi,this.font=r.KQ.load(t),this.fontName=this.font.FontName,this.customName=e}return t.prototype.encodeText=function(t){for(var e=this.encodeTextAsGlyphs(t),n=new Array(e.length),r=0,s=e.length;ra,B4:()=>u,EQ:()=>s,F2:()=>C,FY:()=>D,Hi:()=>m,I8:()=>F,IX:()=>h,JA:()=>l,Jl:()=>T,Kc:()=>j,OT:()=>p,PU:()=>v,Qj:()=>P,bq:()=>d,cR:()=>y,cZ:()=>I,eM:()=>x,fx:()=>A,jM:()=>c,ju:()=>i,m2:()=>S,o4:()=>b,tV:()=>O,tX:()=>f,vV:()=>g});var r=n(5890),o=n(2714),i=function(t){function e(e,n){var r="Method "+e+"."+n+"() not implemented";return t.call(this,r)||this}return(0,r.C6)(e,t),e}(Error),s=function(t){function e(e){var n="Cannot construct "+e+" - it has a private constructor";return t.call(this,n)||this}return(0,r.C6)(e,t),e}(Error),a=function(t){function e(e,n){var r=function(t){var e,n;return null!==(e=null==t?void 0:t.name)&&void 0!==e?e:null===(n=null==t?void 0:t.constructor)||void 0===n?void 0:n.name},o="Expected instance of "+(Array.isArray(e)?e.map(r):[r(e)]).join(" or ")+", but got instance of "+(n?r(n):n);return t.call(this,o)||this}return(0,r.C6)(e,t),e}(Error),u=function(t){function e(e){var n=e+" stream encoding not supported";return t.call(this,n)||this}return(0,r.C6)(e,t),e}(Error),c=function(t){function e(e,n){var r="Cannot call "+e+"."+n+"() more than once";return t.call(this,r)||this}return(0,r.C6)(e,t),e}(Error),f=(function(t){function e(e){var n="Missing catalog (ref="+e+")";return t.call(this,n)||this}(0,r.C6)(e,t)}(Error),function(t){function e(){return t.call(this,"Can't embed page with missing Contents")||this}return(0,r.C6)(e,t),e}(Error)),h=function(t){function e(e){var n,r,o,i="Unrecognized stream type: "+(null!==(o=null!==(r=null===(n=null==e?void 0:e.contructor)||void 0===n?void 0:n.name)&&void 0!==r?r:null==e?void 0:e.name)&&void 0!==o?o:e);return t.call(this,i)||this}return(0,r.C6)(e,t),e}(Error),l=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){var n="Attempted to convert PDFArray with "+e+" elements to rectangle, but must have exactly 4 elements.";return t.call(this,n)||this}return(0,r.C6)(e,t),e}(Error),d=function(t){function e(e){var n='Attempted to convert "'+e+'" to a date, but it does not match the PDF date string format.';return t.call(this,n)||this}return(0,r.C6)(e,t),e}(Error),v=function(t){function e(e,n){var r="Invalid targetIndex specified: targetIndex="+e+" must be less than Count="+n;return t.call(this,r)||this}return(0,r.C6)(e,t),e}(Error),g=function(t){function e(e,n){var r="Failed to "+n+" at targetIndex="+e+" due to corrupt page tree: It is likely that one or more 'Count' entries are invalid";return t.call(this,r)||this}return(0,r.C6)(e,t),e}(Error),A=function(t){function e(e,n,r){var o="index should be at least "+n+" and at most "+r+", but was actually "+e;return t.call(this,o)||this}return(0,r.C6)(e,t),e}(Error),y=function(t){function e(){return t.call(this,"Attempted to set invalid field value")||this}return(0,r.C6)(e,t),e}(Error),m=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),b=function(t){function e(e){var n="No /DA (default appearance) entry found for field: "+e;return t.call(this,n)||this}return(0,r.C6)(e,t),e}(Error),C=function(t){function e(e){var n="No Tf operator found for DA of field: "+e;return t.call(this,n)||this}return(0,r.C6)(e,t),e}(Error),F=function(t){function e(e,n){var r="Failed to parse number (line:"+e.line+" col:"+e.column+" offset="+e.offset+'): "'+n+'"';return t.call(this,r)||this}return(0,r.C6)(e,t),e}(Error),w=function(t){function e(e,n){var r="Failed to parse PDF document (line:"+e.line+" col:"+e.column+" offset="+e.offset+"): "+n;return t.call(this,r)||this}return(0,r.C6)(e,t),e}(Error),x=function(t){function e(e,n,r){var o="Expected next byte to be "+n+" but it was actually "+r;return t.call(this,e,o)||this}return(0,r.C6)(e,t),e}(w),S=function(t){function e(e,n){var r="Failed to parse PDF object starting with the following byte: "+n;return t.call(this,e,r)||this}return(0,r.C6)(e,t),e}(w),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}(w),O=function(t){function e(e){return t.call(this,e,"Failed to parse PDF stream")||this}return(0,r.C6)(e,t),e}(w),P=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}(w),T=function(t){function e(e){return t.call(this,e,"Parser stalled")||this}return(0,r.C6)(e,t),e}(w),j=function(t){function e(e){return t.call(this,e,"No PDF header found")||this}return(0,r.C6)(e,t),e}(w),I=function(t){function e(e,n){var r="Did not find expected keyword '"+(0,o.pZ)(n)+"'";return t.call(this,e,r)||this}return(0,r.C6)(e,t),e}(w)}}]);