Lightcomputer dev setup
",u=o.open();return null!==u&&u.document.write(s),u}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if("[object Window]"===Object.prototype.toString.call(o)){var c='',A=o.open();if(null!==A&&(A.document.write(p),A.document.title=t.filename),A||"undefined"==typeof safari)return A;break;case"datauri":case"dataurl":return o.document.location.href=this.output("datauristring",t);default:return null}},Ge.foo=function(){try{return Ge.apply(this,arguments)}catch(Ge){var e=Ge.stack||"";~e.indexOf(" at ")&&(e=e.split(" at ")[1]);var t="Error in function "+e.split("\n")[0].split("<")[0]+": "+Ge.message;if(!o.console)throw new Error(t);o.console.error(t,Ge),o.alert&&alert(t)}},Ge.foo.bar=Ge,Ge.foo),Ct=function(e){return!0===Array.isArray(Fe)&&Fe.indexOf(e)>-1};switch(r){case"pt":Pe=1;break;case"mm":Pe=72/25.4;break;case"cm":Pe=72/2.54;break;case"in":Pe=72;break;case"px":Pe=1==Ct("px_scaling")?.75:96/72;break;case"pc":case"em":Pe=12;break;case"ex":Pe=6;break;default:if("number"!=typeof r)throw new Error("Invalid unit: "+r);Pe=r}var Tt=null;Y(),H();var Nt=y.__private__.getPageInfo=y.getPageInfo=function(e){if(isNaN(e)||e%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:Ie[e].objId,pageNumber:e,pageContext:Ie[e]}},jt=y.__private__.getPageInfoByObjId=function(e){if(isNaN(e)||e%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var t in Ie)if(Ie[t].objId===e)break;return Nt(t)},zt=y.__private__.getCurrentPageInfo=y.getCurrentPageInfo=function(){return{objId:Ie[K].objId,pageNumber:K,pageContext:Ie[K]}};y.addPage=function(){return mt.apply(this,arguments),this},y.setPage=function(){return yt.apply(this,arguments),le.call(this,ae[K]),this},y.insertPage=function(e){return this.addPage(),this.movePage(K,e),this},y.movePage=function(e,t){var n,r;if(e>t){n=ae[e],r=Ie[e];for(var i=e;i>t;i--)ae[i]=ae[i-1],Ie[i]=Ie[i-1];ae[t]=n,Ie[t]=r,this.setPage(t)}else if(e0&&("string"==typeof e?e=A.splitTextToSize(e,d):"[object Array]"===Object.prototype.toString.call(e)&&(e=e.reduce((function(e,t){return e.concat(A.splitTextToSize(t,d))}),[]))),o={text:e,x:t,y:n,options:r,mutex:{pdfEscape:At,activeFontKey:Se,fonts:Me,activeFontSize:he}},_e.publish("preProcessText",o),e=o.text,l=(r=o.options).angle,p instanceof qe==0&&l&&"number"==typeof l){l*=Math.PI/180,0===r.rotationDirection&&(l=-l),O===P.ADVANCED&&(l=-l);var D=Math.cos(l),I=Math.sin(l);p=new qe(D,I,-I,D,0,0)}else l&&l instanceof qe&&(p=l);O!==P.ADVANCED||p||(p=Ue),void 0!==(c=r.charSpace||cn)&&(y+=E(B(c))+" Tc\n",this.setCharSpace(this.getCharSpace()||0)),void 0!==(h=r.horizontalScale)&&(y+=E(100*h)+" Tz\n"),r.lang;var _=-1,F=void 0!==r.renderingMode?r.renderingMode:r.stroke,V=A.internal.getCurrentPageInfo().pageContext;switch(F){case 0:case!1:case"fill":_=0;break;case 1:case!0:case"stroke":_=1;break;case 2:case"fillThenStroke":_=2;break;case 3:case"invisible":_=3;break;case 4:case"fillAndAddForClipping":_=4;break;case 5:case"strokeAndAddPathForClipping":_=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":_=6;break;case 7:case"addToPathForClipping":_=7}var W=void 0!==V.usedRenderingMode?V.usedRenderingMode:-1;-1!==_?y+=_+" Tr\n":-1!==W&&(y+="0 Tr\n"),-1!==_&&(V.usedRenderingMode=_),u=r.align||"left";var q,X=he*b,U=A.internal.pageSize.getWidth(),H=Me[Se];c=r.charSpace||cn,d=r.maxWidth||0,f=Object.assign({autoencode:!0,noBOM:!0},r.flags);var G=[];if("[object Array]"===Object.prototype.toString.call(e)){var Z;s=S(e),"left"!==u&&(q=s.map((function(e){return A.getStringUnitWidth(e,{font:H,charSpace:c,fontSize:he,doKerning:!1})*he/x})));var Y,J=0;if("right"===u){t-=q[0],e=[],j=s.length;for(var K=0;K":")"),ne=parseFloat(s[le][1]),re=parseFloat(s[le][2]);break;case 0:ie=(m?"<":"(")+s[le]+(m?">":")"),ne=tn(t),re=nn(n)}void 0!==G&&void 0!==G[le]&&(oe=G[le]+" Tw\n"),0===le?e.push(oe+se(ne,re,p)+ie):0===ae?e.push(oe+ie):1===ae&&e.push(oe+se(ne,re,p)+ie)}e=0===ae?e.join(" Tj\nT* "):e.join(" Tj\n"),e+=" Tj\n";var ce="BT\n/";return ce+=Se+" "+he+" Tf\n",ce+=E(he*b)+" TL\n",ce+=ln+"\n",ce+=y,ce+=e,ue(ce+="ET"),g[Se]=!0,A};var Rt=y.__private__.clip=y.clip=function(e){return ue("evenodd"===e?"W*":"W"),this};y.clipEvenOdd=function(){return Rt("evenodd")},y.__private__.discardPath=y.discardPath=function(){return ue("n"),this};var Dt=y.__private__.isValidStyle=function(e){var t=!1;return-1!==[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(e)&&(t=!0),t};y.__private__.setDefaultPathOperation=y.setDefaultPathOperation=function(e){return Dt(e)&&(f=e),this};var It=y.__private__.getStyle=y.getStyle=function(e){var t=f;switch(e){case"D":case"S":t="S";break;case"F":t="f";break;case"FD":case"DF":t="B";break;case"f":case"f*":case"B":case"B*":t=e}return t},_t=y.close=function(){return ue("h"),this};y.stroke=function(){return ue("S"),this},y.fill=function(e){return Ft("f",e),this},y.fillEvenOdd=function(e){return Ft("f*",e),this},y.fillStroke=function(e){return Ft("B",e),this},y.fillStrokeEvenOdd=function(e){return Ft("B*",e),this};var Ft=function(e,t){"object"===i()(t)?Wt(t,e):ue(e)},Vt=function(e){null===e||O===P.ADVANCED&&void 0===e||(e=It(e),ue(e))};function Bt(e,t,n,r,i){var a=new _(t||this.boundingBox,n||this.xStep,r||this.yStep,this.gState,i||this.matrix);a.stream=this.stream;var o=e+"$$"+this.cloneIndex+++"$$";return He(o,a),a}var Wt=function(e,t){var n=Ne[e.key],r=Te[n];if(r instanceof I)ue("q"),ue(qt(t)),r.gState&&y.setGState(r.gState),ue(e.matrix.toString()+" cm"),ue("/"+n+" sh"),ue("Q");else if(r instanceof _){var i=new qe(1,0,0,-1,0,wn());e.matrix&&(i=i.multiply(e.matrix||Ue),n=Bt.call(r,e.key,e.boundingBox,e.xStep,e.yStep,i).id),ue("q"),ue("/Pattern cs"),ue("/"+n+" scn"),r.gState&&y.setGState(r.gState),ue(t),ue("Q")}},qt=function(e){switch(e){case"f":case"F":case"n":return"W n";case"f*":return"W* n";case"B":case"S":return"W S";case"B*":return"W* S"}},Xt=y.moveTo=function(e,t){return ue(E(B(e))+" "+E(W(t))+" m"),this},Ut=y.lineTo=function(e,t){return ue(E(B(e))+" "+E(W(t))+" l"),this},Ht=y.curveTo=function(e,t,n,r,i,a){return ue([E(B(e)),E(W(t)),E(B(n)),E(W(r)),E(B(i)),E(W(a)),"c"].join(" ")),this};y.__private__.line=y.line=function(e,t,n,r,i){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r)||!Dt(i))throw new Error("Invalid arguments passed to jsPDF.line");return O===P.COMPAT?this.lines([[n-e,r-t]],e,t,[1,1],i||"S"):this.lines([[n-e,r-t]],e,t,[1,1]).stroke()},y.__private__.lines=y.lines=function(e,t,n,r,i,a){var o,s,l,u,c,d,f,h,p,A,v,m;if("number"==typeof e&&(m=n,n=t,t=e,e=m),r=r||[1,1],a=a||!1,isNaN(t)||isNaN(n)||!Array.isArray(e)||!Array.isArray(r)||!Dt(i)||"boolean"!=typeof a)throw new Error("Invalid arguments passed to jsPDF.lines");for(Xt(t,n),o=r[0],s=r[1],u=e.length,A=t,v=n,l=0;l>0&255,e>>8&255,e>>16&255,e>>24&255)},N.prototype.toHexString=function(e){return e.split("").map((function(e){return("0"+(255&e.charCodeAt(0)).toString(16)).slice(-2)})).join("")},N.prototype.hexToBytes=function(e){for(var t=[],n=0;n>8&255,e>>16&255,255&t,t>>8&255)).substr(0,10);return function(e){return C(n,e)}},R.prototype.equals=function(e){var t,n="id,objectNumber,equals";if(!e||i()(e)!==i()(this))return!1;var r=0;for(t in this)if(!(n.indexOf(t)>=0)){if(this.hasOwnProperty(t)&&!e.hasOwnProperty(t))return!1;if(this[t]!==e[t])return!1;r++}for(t in e)e.hasOwnProperty(t)&&n.indexOf(t)<0&&r--;return 0===r},F.API={events:[]},F.version="2.5.1";var V=F.API,B=1,W=function(e){return e.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},q=function(e){return e.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},X=function(e){return e.toFixed(2)},U=function(e){return e.toFixed(5)};V.__acroform__={};var H=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e},G=function(e){return e*B},Z=function(e){var t=new de,n=Oe.internal.getHeight(e)||0,r=Oe.internal.getWidth(e)||0;return t.BBox=[0,0,Number(X(r)),Number(X(n))],t},Y=V.__acroform__.setBit=function(e,t){if(e=e||0,t=t||0,isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return e|1<0;){t="",a--;var u,c,d=ie("3",e,a).height,f=e.multiline?o-a:(o-d)/2,h=f+=2,p=0,A=0,v=0;if(a<=0){t="(...) Tj\n",t+="% Width of Text: "+ie(t,e,a=12).width+", FieldWidth:"+s+"\n";break}for(var m="",g=0,y=0;yo)continue e;m+=i[y][v],b=!0,A=y,y--}else{m=" "==(m+=i[y][v]+" ").substr(m.length-1)?m.substr(0,m.length-1):m;var x=parseInt(y),w=l(x,m,a),S=y>=i.length-1;if(w&&!S){m+=" ",v=0;continue}if(w||S){if(S)A=x;else if(e.multiline&&(d+2)*(g+2)+2>o)continue e}else{if(!e.multiline)continue e;if((d+2)*(g+2)+2>o)continue e;A=x}}for(var P="",O=p;O<=A;O++){var k=i[O];if(e.multiline){if(O===A){P+=k[v]+" ",v=(v+1)%k.length;continue}if(O===p){P+=k[k.length-1]+" ";continue}}P+=k[0]+" "}switch(P=" "==P.substr(P.length-1)?P.substr(0,P.length-1):P,c=ie(P,e,a).width,e.textAlign){case"right":u=s-c-2;break;case"center":u=(s-c)/2;break;default:u=2}t+=X(u)+" "+X(h)+" Td\n",t+="("+W(P)+") Tj\n",t+=-X(u)+" 0 Td\n",h=-(a+2),c=0,p=b?A:A+1,g++,m=""}break}return r.text=t,r.fontSize=a,r},ie=function(e,t,n){var r=t.scope.internal.getFont(t.fontName,t.fontStyle),i=t.scope.getStringUnitWidth(e,{font:r,fontSize:parseFloat(n),charSpace:0})*parseFloat(n);return{height:t.scope.getStringUnitWidth("3",{font:r,fontSize:parseFloat(n),charSpace:0})*parseFloat(n)*1.5,width:i}},ae={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},oe=function(e,t){var n={type:"reference",object:e};void 0===t.internal.getPageInfo(e.page).pageContext.annotations.find((function(e){return e.type===n.type&&e.object===n.object}))&&t.internal.getPageInfo(e.page).pageContext.annotations.push(n)},se=function(e,t){if(t.scope=e,void 0!==e.internal&&(void 0===e.internal.acroformPlugin||!1===e.internal.acroformPlugin.isInitialized)){if(he.FieldNum=0,e.internal.acroformPlugin=JSON.parse(JSON.stringify(ae)),e.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");B=e.internal.scaleFactor,e.internal.acroformPlugin.acroFormDictionaryRoot=new fe,e.internal.acroformPlugin.acroFormDictionaryRoot.scope=e,e.internal.acroformPlugin.acroFormDictionaryRoot._eventID=e.internal.events.subscribe("postPutResources",(function(){var t;(t=e).internal.events.unsubscribe(t.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete t.internal.acroformPlugin.acroFormDictionaryRoot._eventID,t.internal.acroformPlugin.printedOut=!0})),e.internal.events.subscribe("buildDocument",(function(){!function(e){e.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var t=e.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];r.objId=void 0,r.hasAnnotation&&oe(r,e)}}(e)})),e.internal.events.subscribe("putCatalog",(function(){!function(e){if(void 0===e.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("putCatalogCallback: Root missing.");e.internal.write("/AcroForm "+e.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")}(e)})),e.internal.events.subscribe("postPutPages",(function(t){!function(e,t){var n=!e;for(var r in e||(t.internal.newObjectDeferredBegin(t.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),t.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),e=e||t.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(e.hasOwnProperty(r)){var a=e[r],o=[],s=a.Rect;if(a.Rect&&(a.Rect=te(a.Rect,t)),t.internal.newObjectDeferredBegin(a.objId,!0),a.DA=Oe.createDefaultAppearanceStream(a),"object"===i()(a)&&"function"==typeof a.getKeyValueListForStream&&(o=a.getKeyValueListForStream()),a.Rect=s,a.hasAppearanceStream&&!a.appearanceStreamContent){var l=ne(a);o.push({key:"AP",value:"<>"}),t.internal.acroformPlugin.xForms.push(l)}if(a.appearanceStreamContent){var u="";for(var c in a.appearanceStreamContent)if(a.appearanceStreamContent.hasOwnProperty(c)){var d=a.appearanceStreamContent[c];if(u+="/"+c+" ",u+="<<",Object.keys(d).length>=1||Array.isArray(d)){for(var r in d)if(d.hasOwnProperty(r)){var f=d[r];"function"==typeof f&&(f=f.call(t,a)),u+="/"+r+" "+f+" ",t.internal.acroformPlugin.xForms.indexOf(f)>=0||t.internal.acroformPlugin.xForms.push(f)}}else"function"==typeof(f=d)&&(f=f.call(t,a)),u+="/"+r+" "+f,t.internal.acroformPlugin.xForms.indexOf(f)>=0||t.internal.acroformPlugin.xForms.push(f);u+=">>"}o.push({key:"AP",value:"<<\n"+u+">>"})}t.internal.putStream({additionalKeyValues:o,objectId:a.objId}),t.internal.out("endobj")}n&&function(e,t){for(var n in e)if(e.hasOwnProperty(n)){var r=n,a=e[n];t.internal.newObjectDeferredBegin(a.objId,!0),"object"===i()(a)&&"function"==typeof a.putStream&&a.putStream(),delete e[r]}}(t.internal.acroformPlugin.xForms,t)}(t,e)})),e.internal.acroformPlugin.isInitialized=!0}},le=V.__acroform__.arrayToPdfArray=function(e,t,n){var r=function(e){return e};if(Array.isArray(e)){for(var a="[",o=0;o0?t:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return t}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(e){var t=function(e){return e};return this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),"("+W(t(e))+")"}},set:function(t){e=t}})};H(fe,ce);var he=function e(){ce.call(this);var t=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return t},set:function(e){if(isNaN(e))throw new Error('Invalid value "'+e+'" for attribute F supplied.');t=e}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return Boolean(Q(t,3))},set:function(e){!0===Boolean(e)?this.F=$(t,3):this.F=ee(t,3)}});var n=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return n},set:function(e){if(isNaN(e))throw new Error('Invalid value "'+e+'" for attribute Ff supplied.');n=e}});var r=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(0!==r.length)return r},set:function(e){r=void 0!==e?e:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[0])?0:r[0]},set:function(e){r[0]=e}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[1])?0:r[1]},set:function(e){r[1]=e}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[2])?0:r[2]},set:function(e){r[2]=e}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[3])?0:r[3]},set:function(e){r[3]=e}});var i="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return i},set:function(e){switch(e){case"/Btn":case"/Tx":case"/Ch":case"/Sig":i=e;break;default:throw new Error('Invalid value "'+e+'" for attribute FT supplied.')}}});var a=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!a||a.length<1){if(this instanceof xe)return;a="FieldObject"+e.FieldNum++}var t=function(e){return e};return this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),"("+W(t(a))+")"},set:function(e){a=e.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return a},set:function(e){a=e}});var o="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return o},set:function(e){o=e}});var s="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return s},set:function(e){s=e}});var l=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return l},set:function(e){l=e}});var u=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return void 0===u?50/B:u},set:function(e){u=e}});var c="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return c},set:function(e){c=e}});var d="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!d||this instanceof xe||this instanceof Se))return ue(d,this.objId,this.scope)},set:function(e){e=e.toString(),d=e}});var f=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(f)return this instanceof ge==0?ue(f,this.objId,this.scope):f},set:function(e){e=e.toString(),f=this instanceof ge==0?"("===e.substr(0,1)?q(e.substr(1,e.length-2)):q(e):e}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof ge==1?q(f.substr(1,f.length-1)):f},set:function(e){e=e.toString(),f=this instanceof ge==1?"/"+e:e}});var h=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(h)return h},set:function(e){this.V=e}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(h)return this instanceof ge==0?ue(h,this.objId,this.scope):h},set:function(e){e=e.toString(),h=this instanceof ge==0?"("===e.substr(0,1)?q(e.substr(1,e.length-2)):q(e):e}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof ge==1?q(h.substr(1,h.length-1)):h},set:function(e){e=e.toString(),h=this instanceof ge==1?"/"+e:e}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var p,A=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return A},set:function(e){e=Boolean(e),A=e}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(p)return p},set:function(e){p=e}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return Boolean(Q(this.Ff,1))},set:function(e){!0===Boolean(e)?this.Ff=$(this.Ff,1):this.Ff=ee(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return Boolean(Q(this.Ff,2))},set:function(e){!0===Boolean(e)?this.Ff=$(this.Ff,2):this.Ff=ee(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return Boolean(Q(this.Ff,3))},set:function(e){!0===Boolean(e)?this.Ff=$(this.Ff,3):this.Ff=ee(this.Ff,3)}});var v=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(null!==v)return v},set:function(e){if(-1===[0,1,2].indexOf(e))throw new Error('Invalid value "'+e+'" for attribute Q supplied.');v=e}}),Object.defineProperty(this,"textAlign",{get:function(){var e;switch(v){case 0:default:e="left";break;case 1:e="center";break;case 2:e="right"}return e},configurable:!0,enumerable:!0,set:function(e){switch(e){case"right":case 2:v=2;break;case"center":case 1:v=1;break;default:v=0}}})};H(he,ce);var pe=function(){he.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var e=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return e},set:function(t){e=t}});var t=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return le(t,this.objId,this.scope)},set:function(e){var n,r;r=[],"string"==typeof(n=e)&&(r=function(e,t,n){n||(n=1);for(var r,i=[];r=t.exec(e);)i.push(r[n]);return i}(n,/\((.*?)\)/g)),t=r}}),this.getOptions=function(){return t},this.setOptions=function(e){t=e,this.sort&&t.sort()},this.addOption=function(e){e=(e=e||"").toString(),t.push(e),this.sort&&t.sort()},this.removeOption=function(e,n){for(n=n||!1,e=(e=e||"").toString();-1!==t.indexOf(e)&&(t.splice(t.indexOf(e),1),!1!==n););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return Boolean(Q(this.Ff,18))},set:function(e){!0===Boolean(e)?this.Ff=$(this.Ff,18):this.Ff=ee(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return Boolean(Q(this.Ff,19))},set:function(e){!0===this.combo&&(!0===Boolean(e)?this.Ff=$(this.Ff,19):this.Ff=ee(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return Boolean(Q(this.Ff,20))},set:function(e){!0===Boolean(e)?(this.Ff=$(this.Ff,20),t.sort()):this.Ff=ee(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(Q(this.Ff,22))},set:function(e){!0===Boolean(e)?this.Ff=$(this.Ff,22):this.Ff=ee(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(Q(this.Ff,23))},set:function(e){!0===Boolean(e)?this.Ff=$(this.Ff,23):this.Ff=ee(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return Boolean(Q(this.Ff,27))},set:function(e){!0===Boolean(e)?this.Ff=$(this.Ff,27):this.Ff=ee(this.Ff,27)}}),this.hasAppearanceStream=!1};H(pe,he);var Ae=function(){pe.call(this),this.fontName="helvetica",this.combo=!1};H(Ae,pe);var ve=function(){Ae.call(this),this.combo=!0};H(ve,Ae);var me=function(){ve.call(this),this.edit=!0};H(me,ve);var ge=function(){he.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return Boolean(Q(this.Ff,15))},set:function(e){!0===Boolean(e)?this.Ff=$(this.Ff,15):this.Ff=ee(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return Boolean(Q(this.Ff,16))},set:function(e){!0===Boolean(e)?this.Ff=$(this.Ff,16):this.Ff=ee(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return Boolean(Q(this.Ff,17))},set:function(e){!0===Boolean(e)?this.Ff=$(this.Ff,17):this.Ff=ee(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return Boolean(Q(this.Ff,26))},set:function(e){!0===Boolean(e)?this.Ff=$(this.Ff,26):this.Ff=ee(this.Ff,26)}});var e,t={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var e=function(e){return e};if(this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),0!==Object.keys(t).length){var n,r=[];for(n in r.push("<<"),t)r.push("/"+n+" ("+W(e(t[n]))+")");return r.push(">>"),r.join("\n")}},set:function(e){"object"===i()(e)&&(t=e)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return t.CA||""},set:function(e){"string"==typeof e&&(t.CA=e)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return e.substr(1,e.length-1)},set:function(t){e="/"+t}})};H(ge,he);var ye=function(){ge.call(this),this.pushButton=!0};H(ye,ge);var be=function(){ge.call(this),this.radio=!0,this.pushButton=!1;var e=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=void 0!==t?t:[]}})};H(be,ge);var xe=function(){var e,t;he.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(e){t=e}});var n,r={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var e=function(e){return e};this.scope&&(e=this.scope.internal.getEncryptor(this.objId));var t,n=[];for(t in n.push("<<"),r)n.push("/"+t+" ("+W(e(r[t]))+")");return n.push(">>"),n.join("\n")},set:function(e){"object"===i()(e)&&(r=e)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return r.CA||""},set:function(e){"string"==typeof e&&(r.CA=e)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return n},set:function(e){n=e}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return n.substr(1,n.length-1)},set:function(e){n="/"+e}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=Oe.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};H(xe,he),be.prototype.setAppearance=function(e){if(!("createAppearanceStream"in e)||!("getCA"in e))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var t in this.Kids)if(this.Kids.hasOwnProperty(t)){var n=this.Kids[t];n.appearanceStreamContent=e.createAppearanceStream(n.optionName),n.caption=e.getCA()}},be.prototype.createOption=function(e){var t=new xe;return t.Parent=this,t.optionName=e,this.Kids.push(t),ke.call(this.scope,t),t};var we=function(){ge.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=Oe.CheckBox.createAppearanceStream()};H(we,ge);var Se=function(){he.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return Boolean(Q(this.Ff,13))},set:function(e){!0===Boolean(e)?this.Ff=$(this.Ff,13):this.Ff=ee(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(Q(this.Ff,21))},set:function(e){!0===Boolean(e)?this.Ff=$(this.Ff,21):this.Ff=ee(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(Q(this.Ff,23))},set:function(e){!0===Boolean(e)?this.Ff=$(this.Ff,23):this.Ff=ee(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return Boolean(Q(this.Ff,24))},set:function(e){!0===Boolean(e)?this.Ff=$(this.Ff,24):this.Ff=ee(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return Boolean(Q(this.Ff,25))},set:function(e){!0===Boolean(e)?this.Ff=$(this.Ff,25):this.Ff=ee(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return Boolean(Q(this.Ff,26))},set:function(e){!0===Boolean(e)?this.Ff=$(this.Ff,26):this.Ff=ee(this.Ff,26)}});var e=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return e},set:function(t){Number.isInteger(t)&&(e=t)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};H(Se,he);var Pe=function(){Se.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return Boolean(Q(this.Ff,14))},set:function(e){!0===Boolean(e)?this.Ff=$(this.Ff,14):this.Ff=ee(this.Ff,14)}}),this.password=!0};H(Pe,Se);var Oe={CheckBox:{createAppearanceStream:function(){return{N:{On:Oe.CheckBox.YesNormal},D:{On:Oe.CheckBox.YesPushDown,Off:Oe.CheckBox.OffPushDown}}},YesPushDown:function(e){var t=Z(e);t.scope=e.scope;var n=[],r=e.scope.internal.getFont(e.fontName,e.fontStyle).id,i=e.scope.__private__.encodeColorString(e.color),a=re(e,e.caption);return n.push("0.749023 g"),n.push("0 0 "+X(Oe.internal.getWidth(e))+" "+X(Oe.internal.getHeight(e))+" re"),n.push("f"),n.push("BMC"),n.push("q"),n.push("0 0 1 rg"),n.push("/"+r+" "+X(a.fontSize)+" Tf "+i),n.push("BT"),n.push(a.text),n.push("ET"),n.push("Q"),n.push("EMC"),t.stream=n.join("\n"),t},YesNormal:function(e){var t=Z(e);t.scope=e.scope;var n=e.scope.internal.getFont(e.fontName,e.fontStyle).id,r=e.scope.__private__.encodeColorString(e.color),i=[],a=Oe.internal.getHeight(e),o=Oe.internal.getWidth(e),s=re(e,e.caption);return i.push("1 g"),i.push("0 0 "+X(o)+" "+X(a)+" re"),i.push("f"),i.push("q"),i.push("0 0 1 rg"),i.push("0 0 "+X(o-1)+" "+X(a-1)+" re"),i.push("W"),i.push("n"),i.push("0 g"),i.push("BT"),i.push("/"+n+" "+X(s.fontSize)+" Tf "+r),i.push(s.text),i.push("ET"),i.push("Q"),t.stream=i.join("\n"),t},OffPushDown:function(e){var t=Z(e);t.scope=e.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+X(Oe.internal.getWidth(e))+" "+X(Oe.internal.getHeight(e))+" re"),n.push("f"),t.stream=n.join("\n"),t}},RadioButton:{Circle:{createAppearanceStream:function(e){var t={D:{Off:Oe.RadioButton.Circle.OffPushDown},N:{}};return t.N[e]=Oe.RadioButton.Circle.YesNormal,t.D[e]=Oe.RadioButton.Circle.YesPushDown,t},getCA:function(){return"l"},YesNormal:function(e){var t=Z(e);t.scope=e.scope;var n=[],r=Oe.internal.getWidth(e)<=Oe.internal.getHeight(e)?Oe.internal.getWidth(e)/4:Oe.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var i=Oe.internal.Bezier_C,a=Number((r*i).toFixed(5));return n.push("q"),n.push("1 0 0 1 "+U(Oe.internal.getWidth(e)/2)+" "+U(Oe.internal.getHeight(e)/2)+" cm"),n.push(r+" 0 m"),n.push(r+" "+a+" "+a+" "+r+" 0 "+r+" c"),n.push("-"+a+" "+r+" -"+r+" "+a+" -"+r+" 0 c"),n.push("-"+r+" -"+a+" -"+a+" -"+r+" 0 -"+r+" c"),n.push(a+" -"+r+" "+r+" -"+a+" "+r+" 0 c"),n.push("f"),n.push("Q"),t.stream=n.join("\n"),t},YesPushDown:function(e){var t=Z(e);t.scope=e.scope;var n=[],r=Oe.internal.getWidth(e)<=Oe.internal.getHeight(e)?Oe.internal.getWidth(e)/4:Oe.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var i=Number((2*r).toFixed(5)),a=Number((i*Oe.internal.Bezier_C).toFixed(5)),o=Number((r*Oe.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+U(Oe.internal.getWidth(e)/2)+" "+U(Oe.internal.getHeight(e)/2)+" cm"),n.push(i+" 0 m"),n.push(i+" "+a+" "+a+" "+i+" 0 "+i+" c"),n.push("-"+a+" "+i+" -"+i+" "+a+" -"+i+" 0 c"),n.push("-"+i+" -"+a+" -"+a+" -"+i+" 0 -"+i+" c"),n.push(a+" -"+i+" "+i+" -"+a+" "+i+" 0 c"),n.push("f"),n.push("Q"),n.push("0 g"),n.push("q"),n.push("1 0 0 1 "+U(Oe.internal.getWidth(e)/2)+" "+U(Oe.internal.getHeight(e)/2)+" cm"),n.push(r+" 0 m"),n.push(r+" "+o+" "+o+" "+r+" 0 "+r+" c"),n.push("-"+o+" "+r+" -"+r+" "+o+" -"+r+" 0 c"),n.push("-"+r+" -"+o+" -"+o+" -"+r+" 0 -"+r+" c"),n.push(o+" -"+r+" "+r+" -"+o+" "+r+" 0 c"),n.push("f"),n.push("Q"),t.stream=n.join("\n"),t},OffPushDown:function(e){var t=Z(e);t.scope=e.scope;var n=[],r=Oe.internal.getWidth(e)<=Oe.internal.getHeight(e)?Oe.internal.getWidth(e)/4:Oe.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var i=Number((2*r).toFixed(5)),a=Number((i*Oe.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+U(Oe.internal.getWidth(e)/2)+" "+U(Oe.internal.getHeight(e)/2)+" cm"),n.push(i+" 0 m"),n.push(i+" "+a+" "+a+" "+i+" 0 "+i+" c"),n.push("-"+a+" "+i+" -"+i+" "+a+" -"+i+" 0 c"),n.push("-"+i+" -"+a+" -"+a+" -"+i+" 0 -"+i+" c"),n.push(a+" -"+i+" "+i+" -"+a+" "+i+" 0 c"),n.push("f"),n.push("Q"),t.stream=n.join("\n"),t}},Cross:{createAppearanceStream:function(e){var t={D:{Off:Oe.RadioButton.Cross.OffPushDown},N:{}};return t.N[e]=Oe.RadioButton.Cross.YesNormal,t.D[e]=Oe.RadioButton.Cross.YesPushDown,t},getCA:function(){return"8"},YesNormal:function(e){var t=Z(e);t.scope=e.scope;var n=[],r=Oe.internal.calculateCross(e);return n.push("q"),n.push("1 1 "+X(Oe.internal.getWidth(e)-2)+" "+X(Oe.internal.getHeight(e)-2)+" re"),n.push("W"),n.push("n"),n.push(X(r.x1.x)+" "+X(r.x1.y)+" m"),n.push(X(r.x2.x)+" "+X(r.x2.y)+" l"),n.push(X(r.x4.x)+" "+X(r.x4.y)+" m"),n.push(X(r.x3.x)+" "+X(r.x3.y)+" l"),n.push("s"),n.push("Q"),t.stream=n.join("\n"),t},YesPushDown:function(e){var t=Z(e);t.scope=e.scope;var n=Oe.internal.calculateCross(e),r=[];return r.push("0.749023 g"),r.push("0 0 "+X(Oe.internal.getWidth(e))+" "+X(Oe.internal.getHeight(e))+" re"),r.push("f"),r.push("q"),r.push("1 1 "+X(Oe.internal.getWidth(e)-2)+" "+X(Oe.internal.getHeight(e)-2)+" re"),r.push("W"),r.push("n"),r.push(X(n.x1.x)+" "+X(n.x1.y)+" m"),r.push(X(n.x2.x)+" "+X(n.x2.y)+" l"),r.push(X(n.x4.x)+" "+X(n.x4.y)+" m"),r.push(X(n.x3.x)+" "+X(n.x3.y)+" l"),r.push("s"),r.push("Q"),t.stream=r.join("\n"),t},OffPushDown:function(e){var t=Z(e);t.scope=e.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+X(Oe.internal.getWidth(e))+" "+X(Oe.internal.getHeight(e))+" re"),n.push("f"),t.stream=n.join("\n"),t}}},createDefaultAppearanceStream:function(e){var t=e.scope.internal.getFont(e.fontName,e.fontStyle).id,n=e.scope.__private__.encodeColorString(e.color);return"/"+t+" "+e.fontSize+" Tf "+n}};Oe.internal={Bezier_C:.551915024494,calculateCross:function(e){var t=Oe.internal.getWidth(e),n=Oe.internal.getHeight(e),r=Math.min(t,n);return{x1:{x:(t-r)/2,y:(n-r)/2+r},x2:{x:(t-r)/2+r,y:(n-r)/2},x3:{x:(t-r)/2,y:(n-r)/2},x4:{x:(t-r)/2+r,y:(n-r)/2+r}}}},Oe.internal.getWidth=function(e){var t=0;return"object"===i()(e)&&(t=G(e.Rect[2])),t},Oe.internal.getHeight=function(e){var t=0;return"object"===i()(e)&&(t=G(e.Rect[3])),t};var ke=V.addField=function(e){if(se(this,e),!(e instanceof he))throw new Error("Invalid argument passed to jsPDF.addField.");var t;return(t=e).scope.internal.acroformPlugin.printedOut&&(t.scope.internal.acroformPlugin.printedOut=!1,t.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),t.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(t),e.page=e.scope.internal.getCurrentPageInfo().pageNumber,this};V.AcroFormChoiceField=pe,V.AcroFormListBox=Ae,V.AcroFormComboBox=ve,V.AcroFormEditBox=me,V.AcroFormButton=ge,V.AcroFormPushButton=ye,V.AcroFormRadioButton=be,V.AcroFormCheckBox=we,V.AcroFormTextField=Se,V.AcroFormPasswordField=Pe,V.AcroFormAppearance=Oe,V.AcroForm={ChoiceField:pe,ListBox:Ae,ComboBox:ve,EditBox:me,Button:ge,PushButton:ye,RadioButton:be,CheckBox:we,TextField:Se,PasswordField:Pe,Appearance:Oe},F.AcroForm={ChoiceField:pe,ListBox:Ae,ComboBox:ve,EditBox:me,Button:ge,PushButton:ye,RadioButton:be,CheckBox:we,TextField:Se,PasswordField:Pe,Appearance:Oe};F.AcroForm;function Le(e){return e.reduce((function(e,t,n){return e[t]=n,e}),{})}!function(e){e.__addimage__={};var t="UNKNOWN",n={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},r=e.__addimage__.getImageFileTypeByImageData=function(e,r){var i,a,o,s,l,u=t;if("RGBA"===(r=r||t)||void 0!==e.data&&e.data instanceof Uint8ClampedArray&&"height"in e&&"width"in e)return"RGBA";if(P(e))for(l in n)for(o=n[l],i=0;i>"}),"transparency"in t&&Array.isArray(t.transparency)){for(var o="",s=0,l=t.transparency.length;s>",p.content=i;var g=p.objId+" 0 R";i="<>";else if(n.options.pageNumber)switch(i="<>",this.internal.write(i))}}this.internal.write("]")}}]),e.createAnnotation=function(e){var t=this.internal.getCurrentPageInfo();switch(e.type){case"link":this.link(e.bounds.x,e.bounds.y,e.bounds.w,e.bounds.h,e);break;case"text":case"freetext":t.pageContext.annotations.push(e)}},e.link=function(e,t,n,r,i){var a=this.internal.getCurrentPageInfo(),o=this.internal.getCoordinateString,s=this.internal.getVerticalCoordinateString;a.pageContext.annotations.push({finalBounds:{x:o(e),y:s(t),w:o(e+n),h:s(t+r)},options:i,type:"link"})},e.textWithLink=function(e,t,n,r){var i,a,o=this.getTextWidth(e),s=this.internal.getLineHeight()/this.internal.scaleFactor;if(void 0!==r.maxWidth){a=r.maxWidth;var l=this.splitTextToSize(e,a).length;i=Math.ceil(s*l)}else a=o,i=s;return this.text(e,t,n,r),n+=.2*s,"center"===r.align&&(t-=o/2),"right"===r.align&&(t-=o),this.link(t,n-s,a,i,r),o},e.getTextWidth=function(e){var t=this.internal.getFontSize();return this.getStringUnitWidth(e)*t/this.internal.scaleFactor}}(F.API),function(e){var t={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},n={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},r={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},i=[1570,1571,1573,1575];e.__arabicParser__={};var a=e.__arabicParser__.isInArabicSubstitutionA=function(e){return void 0!==t[e.charCodeAt(0)]},o=e.__arabicParser__.isArabicLetter=function(e){return"string"==typeof e&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(e)},s=e.__arabicParser__.isArabicEndLetter=function(e){return o(e)&&a(e)&&t[e.charCodeAt(0)].length<=2},l=e.__arabicParser__.isArabicAlfLetter=function(e){return o(e)&&i.indexOf(e.charCodeAt(0))>=0};e.__arabicParser__.arabicLetterHasIsolatedForm=function(e){return o(e)&&a(e)&&t[e.charCodeAt(0)].length>=1};var u=e.__arabicParser__.arabicLetterHasFinalForm=function(e){return o(e)&&a(e)&&t[e.charCodeAt(0)].length>=2};e.__arabicParser__.arabicLetterHasInitialForm=function(e){return o(e)&&a(e)&&t[e.charCodeAt(0)].length>=3};var c=e.__arabicParser__.arabicLetterHasMedialForm=function(e){return o(e)&&a(e)&&4==t[e.charCodeAt(0)].length},d=e.__arabicParser__.resolveLigatures=function(e){var t=0,r=n,i="",a=0;for(t=0;t>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){this.internal.out("/OpenAction "+t+" 0 R")}));return this},function(e){var t=function(){var e=void 0;Object.defineProperty(this,"pdf",{get:function(){return e},set:function(t){e=t}});var t=150;Object.defineProperty(this,"width",{get:function(){return t},set:function(e){t=isNaN(e)||!1===Number.isInteger(e)||e<0?150:e,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=t+1)}});var n=300;Object.defineProperty(this,"height",{get:function(){return n},set:function(e){n=isNaN(e)||!1===Number.isInteger(e)||e<0?300:e,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=n+1)}});var r=[];Object.defineProperty(this,"childNodes",{get:function(){return r},set:function(e){r=e}});var i={};Object.defineProperty(this,"style",{get:function(){return i},set:function(e){i=e}}),Object.defineProperty(this,"parentNode",{})};t.prototype.getContext=function(e,t){var n;if("2d"!==(e=e||"2d"))return null;for(n in t)this.pdf.context2d.hasOwnProperty(n)&&(this.pdf.context2d[n]=t[n]);return this.pdf.context2d._canvas=this,this.pdf.context2d},t.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},e.events.push(["initialized",function(){this.canvas=new t,this.canvas.pdf=this}])}(F.API),function(e){var t={left:0,top:0,bottom:0,right:0},n=!1,r=function(){void 0===this.internal.__cell__&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},t),this.internal.__cell__.margins.width=this.getPageWidth(),a.call(this))},a=function(){this.internal.__cell__.lastCell=new o,this.internal.__cell__.pages=1},o=function(){var e=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return e},set:function(t){e=t}});var t=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return t},set:function(e){t=e}});var n=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return n},set:function(e){n=e}});var r=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return r},set:function(e){r=e}});var i=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return i},set:function(e){i=e}});var a=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return a},set:function(e){a=e}});var o=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return o},set:function(e){o=e}}),this};o.prototype.clone=function(){return new o(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},o.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},e.setHeaderFunction=function(e){return r.call(this),this.internal.__cell__.headerFunction="function"==typeof e?e:void 0,this},e.getTextDimensions=function(e,t){r.call(this);var n=(t=t||{}).fontSize||this.getFontSize(),i=t.font||this.getFont(),a=t.scaleFactor||this.internal.scaleFactor,o=0,s=0,l=0,u=this;if(!Array.isArray(e)&&"string"!=typeof e){if("number"!=typeof e)throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");e=String(e)}var c=t.maxWidth;c>0?"string"==typeof e?e=this.splitTextToSize(e,c):"[object Array]"===Object.prototype.toString.call(e)&&(e=e.reduce((function(e,t){return e.concat(u.splitTextToSize(t,c))}),[])):e=Array.isArray(e)?e:[e];for(var d=0;dthis.getPageHeight()?(this.cellAddPage(),e.y=s.top,u&&l&&(this.printHeaderRow(e.lineNumber,!0),e.y+=l[0].height)):e.y=i.y+i.height||e.y),void 0!==e.text[0]&&(this.rect(e.x,e.y,e.width,e.height,!0===n?"FD":void 0),"right"===e.align?this.text(e.text,e.x+e.width-a,e.y+a,{align:"right",baseline:"top"}):"center"===e.align?this.text(e.text,e.x+e.width/2,e.y+a,{align:"center",baseline:"top",maxWidth:e.width-a-a}):this.text(e.text,e.x+a,e.y+a,{align:"left",baseline:"top",maxWidth:e.width-a-a})),this.internal.__cell__.lastCell=e,this};e.table=function(e,n,u,c,d){if(r.call(this),!u)throw new Error("No data for PDF table.");var f,h,p,A,v=[],m=[],g=[],y={},b={},x=[],w=[],S=(d=d||{}).autoSize||!1,P=!1!==d.printHeaders,O=d.css&&void 0!==d.css["font-size"]?16*d.css["font-size"]:d.fontSize||12,k=d.margins||Object.assign({width:this.getPageWidth()},t),L="number"==typeof d.padding?d.padding:3,M=d.headerBackgroundColor||"#c8c8c8",E=d.headerTextColor||"#000";if(a.call(this),this.internal.__cell__.printHeaders=P,this.internal.__cell__.margins=k,this.internal.__cell__.table_font_size=O,this.internal.__cell__.padding=L,this.internal.__cell__.headerBackgroundColor=M,this.internal.__cell__.headerTextColor=E,this.setFontSize(O),null==c)m=v=Object.keys(u[0]),g=v.map((function(){return"left"}));else if(Array.isArray(c)&&"object"===i()(c[0]))for(v=c.map((function(e){return e.name})),m=c.map((function(e){return e.prompt||e.name||""})),g=c.map((function(e){return e.align||"left"})),f=0;f0&&this.setTableHeaderRow(l),this.setFont(void 0,"normal"),n=!1}}(F.API);var Me={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},Ee=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],Ce=Le(Ee),Te=[100,200,300,400,500,600,700,800,900],Ne=Le(Te);function je(e){var t=e.family.replace(/"|'/g,"").toLowerCase(),n=function(e){return Me[e=e||"normal"]?e:"normal"}(e.style),r=function(e){return e?"number"==typeof e?e>=100&&e<=900&&e%100==0?e:400:/^\d00$/.test(e)?parseInt(e):"bold"===e?700:400:400}(e.weight),i=function(e){return"number"==typeof Ce[e=e||"normal"]?e:"normal"}(e.stretch);return{family:t,style:n,weight:r,stretch:i,src:e.src||[],ref:e.ref||{name:t,style:[i,n,r].join(" ")}}}function ze(e,t,n,r){var i;for(i=n;i>=0&&i=0&&i=2?e[1]:t[0],t[2]=e.length>=3?e[2]:t[0],t[3]=e.length>=4?e[3]:t[1]),d.margin=t}});var o=!1;Object.defineProperty(this,"autoPaging",{get:function(){return o},set:function(e){o=e}});var s=0;Object.defineProperty(this,"lastBreak",{get:function(){return s},set:function(e){s=e}});var l=[];Object.defineProperty(this,"pageBreaks",{get:function(){return l},set:function(e){l=e}}),Object.defineProperty(this,"ctx",{get:function(){return d},set:function(e){e instanceof f&&(d=e)}}),Object.defineProperty(this,"path",{get:function(){return d.path},set:function(e){d.path=e}});var u=[];Object.defineProperty(this,"ctxStack",{get:function(){return u},set:function(e){u=e}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(e){var t;t=p(e),this.ctx.fillStyle=t.style,this.ctx.isFillTransparent=0===t.a,this.ctx.fillOpacity=t.a,this.pdf.setFillColor(t.r,t.g,t.b,{a:t.a}),this.pdf.setTextColor(t.r,t.g,t.b,{a:t.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(e){var t=p(e);this.ctx.strokeStyle=t.style,this.ctx.isStrokeTransparent=0===t.a,this.ctx.strokeOpacity=t.a,0===t.a?this.pdf.setDrawColor(255,255,255):(t.a,this.pdf.setDrawColor(t.r,t.g,t.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(e){-1!==["butt","round","square"].indexOf(e)&&(this.ctx.lineCap=e,this.pdf.setLineCap(e))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(e){isNaN(e)||(this.ctx.lineWidth=e,this.pdf.setLineWidth(e))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(e){-1!==["bevel","round","miter"].indexOf(e)&&(this.ctx.lineJoin=e,this.pdf.setLineJoin(e))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(e){isNaN(e)||(this.ctx.miterLimit=e,this.pdf.setMiterLimit(e))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(e){this.ctx.textBaseline=e}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(e){-1!==["right","end","center","left","start"].indexOf(e)&&(this.ctx.textAlign=e)}});var c=null;function h(e,t){if(null===c){var n=function(e){var t=[];return Object.keys(e).forEach((function(n){e[n].forEach((function(e){var r=null;switch(e){case"bold":r={family:n,weight:"bold"};break;case"italic":r={family:n,style:"italic"};break;case"bolditalic":r={family:n,weight:"bold",style:"italic"};break;case"":case"normal":r={family:n}}null!==r&&(r.ref={name:n,style:e},t.push(r))}))})),t}(e.getFontList());c=function(e){for(var t={},n=0;n=700||"bold"===n)&&(u="bold"),"italic"===n&&(u+="italic"),0===u.length&&(u="normal");for(var c="",d={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},f=0;f=2*Math.PI&&(r=0,i=2*Math.PI),this.path.push({type:"arc",x:e,y:t,radius:n,startAngle:r,endAngle:i,counterclockwise:a})},h.prototype.arcTo=function(e,t,n,r,i){throw new Error("arcTo not implemented.")},h.prototype.rect=function(e,t,n,r){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r))throw l.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(e,t),this.lineTo(e+n,t),this.lineTo(e+n,t+r),this.lineTo(e,t+r),this.lineTo(e,t),this.lineTo(e+n,t),this.lineTo(e,t)},h.prototype.fillRect=function(e,t,n,r){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r))throw l.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!v.call(this)){var i={};"butt"!==this.lineCap&&(i.lineCap=this.lineCap,this.lineCap="butt"),"miter"!==this.lineJoin&&(i.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(e,t,n,r),this.fill(),i.hasOwnProperty("lineCap")&&(this.lineCap=i.lineCap),i.hasOwnProperty("lineJoin")&&(this.lineJoin=i.lineJoin)}},h.prototype.strokeRect=function(e,t,n,r){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r))throw l.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");m.call(this)||(this.beginPath(),this.rect(e,t,n,r),this.stroke())},h.prototype.clearRect=function(e,t,n,r){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r))throw l.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(e,t,n,r))},h.prototype.save=function(e){e="boolean"!=typeof e||e;for(var t=this.pdf.internal.getCurrentPageInfo().pageNumber,n=0;n0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};h.prototype.drawImage=function(e,t,n,r,i,a,o,s,l){var d=this.pdf.getImageProperties(e),f=1,h=1,p=1,A=1;void 0!==r&&void 0!==s&&(p=s/r,A=l/i,f=d.width/r*s/r,h=d.height/i*l/i),void 0===a&&(a=t,o=n,t=0,n=0),void 0!==r&&void 0===s&&(s=r,l=i),void 0===r&&void 0===s&&(s=d.width,l=d.height);for(var v,m=this.ctx.transform.decompose(),b=I(m.rotate.shx),S=new c,O=(S=(S=(S=S.multiply(m.translate)).multiply(m.skew)).multiply(m.scale)).applyToRectangle(new u(a-t*p,o-n*A,r*f,i*h)),k=y.call(this,O),L=[],M=0;ME||Tm||O0))for(;l>=0;l--)if(!0!==i[l-1].close&&!0!==i[l-1].begin){i[l-1].deltas.push(n),i[l-1].abs.push(s);break}break;case"bct":n=[s.x1-a[o-1].x,s.y1-a[o-1].y,s.x2-a[o-1].x,s.y2-a[o-1].y,s.x-a[o-1].x,s.y-a[o-1].y],i[i.length-1].deltas.push(n);break;case"qct":var u=a[o-1].x+2/3*(s.x1-a[o-1].x),c=a[o-1].y+2/3*(s.y1-a[o-1].y),d=s.x+2/3*(s.x1-s.x),f=s.y+2/3*(s.y1-s.y),h=s.x,p=s.y;n=[u-a[o-1].x,c-a[o-1].y,d-a[o-1].x,f-a[o-1].y,h-a[o-1].x,p-a[o-1].y],i[i.length-1].deltas.push(n);break;case"arc":i.push({deltas:[],abs:[],arc:!0}),Array.isArray(i[i.length-1].abs)&&i[i.length-1].abs.push(s)}}r=t?null:"stroke"===e?"stroke":"fill";for(var A=!1,g=0;g=.01&&(f=this.pdf.internal.getFontSize(),this.pdf.setFontSize(f*e.scale),h=this.lineWidth,this.lineWidth=h*e.scale);var _="text"!==this.autoPaging;if(_||I.y+I.h<=T){if(_||I.y>=E&&I.x<=j){var F=_?e.text:this.pdf.splitTextToSize(e.text,e.maxWidth||j-I.x)[0],V=x([JSON.parse(JSON.stringify(p))],this.posX+this.margin[3],-R+E+this.ctx.prevPageLastElemOffset)[0],B=_&&(M>S||M=.01&&(this.pdf.setFontSize(f),this.lineWidth=h)}else e.scale>=.01&&(f=this.pdf.internal.getFontSize(),this.pdf.setFontSize(f*e.scale),h=this.lineWidth,this.lineWidth=h*e.scale),this.pdf.text(e.text,a.x+this.posX,a.y+this.posY,{angle:e.angle,align:t,renderingMode:e.renderingMode,maxWidth:e.maxWidth}),e.scale>=.01&&(this.pdf.setFontSize(f),this.lineWidth=h)},N=function(e,t,i,a){i=i||0,a=a||0,this.pdf.internal.out(n(e+i)+" "+r(t+a)+" l")},j=function(e,t,n){return this.pdf.lines(e,t,n,null,null)},z=function(e,n,r,i,s,l,u,c){this.pdf.internal.out([t(a(r+e)),t(o(i+n)),t(a(s+e)),t(o(l+n)),t(a(u+e)),t(o(c+n)),"c"].join(" "))},R=function(e,t,n,r){for(var i=2*Math.PI,a=Math.PI/2;t>n;)t-=i;var o=Math.abs(n-t);o1e-5;){var c=u+l*Math.min(o,a);s.push(D.call(this,e,u,c)),o-=Math.abs(c-u),u=c}return s},D=function(e,t,n){var r=(n-t)/2,i=e*Math.cos(r),a=e*Math.sin(r),o=i,s=-a,l=o*o+s*s,u=l+o*i+s*a,c=4/3*(Math.sqrt(2*l*u)-u)/(o*a-s*i),d=o-c*s,f=s+c*o,h=d,p=-f,A=r+t,v=Math.cos(A),m=Math.sin(A);return{x1:e*Math.cos(t),y1:e*Math.sin(t),x2:d*v-f*m,y2:d*m+f*v,x3:h*v-p*m,y3:h*m+p*v,x4:e*Math.cos(n),y4:e*Math.sin(n)}},I=function(e){return 180*e/Math.PI},_=function(e,t,n,r,i,a){var o=e+.5*(n-e),s=t+.5*(r-t),l=i+.5*(n-i),c=a+.5*(r-a),d=Math.min(e,i,o,l),f=Math.max(e,i,o,l),h=Math.min(t,a,s,c),p=Math.max(t,a,s,c);return new u(d,h,f-d,p-h)},F=function(e,t,n,r,i,a,o,s){var l,c,d,f,h,p,A,v,m,g,y,b,x,w,S=n-e,P=r-t,O=i-n,k=a-r,L=o-i,M=s-a;for(c=0;c<41;c++)m=(A=(d=e+(l=c/40)*S)+l*((h=n+l*O)-d))+l*(h+l*(i+l*L-h)-A),g=(v=(f=t+l*P)+l*((p=r+l*k)-f))+l*(p+l*(a+l*M-p)-v),0==c?(y=m,b=g,x=m,w=g):(y=Math.min(y,m),b=Math.min(b,g),x=Math.max(x,m),w=Math.max(w,g));return new u(Math.round(y),Math.round(b),Math.round(x-y),Math.round(w-b))},V=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var e,t,n=(e=this.ctx.lineDash,t=this.ctx.lineDashOffset,JSON.stringify({lineDash:e,lineDashOffset:t}));this.prevLineDash!==n&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=n)}}}(F.API),function(e){var t=function(e){var t,n,r,i,a,o,s,l,u,c;for(/[^\x00-\xFF]/.test(e),n=[],r=0,i=(e+=t="\0\0\0\0".slice(e.length%4||4)).length;i>r;r+=4)0!==(a=(e.charCodeAt(r)<<24)+(e.charCodeAt(r+1)<<16)+(e.charCodeAt(r+2)<<8)+e.charCodeAt(r+3))?(o=(a=((a=((a=((a=(a-(c=a%85))/85)-(u=a%85))/85)-(l=a%85))/85)-(s=a%85))/85)%85,n.push(o+33,s+33,l+33,u+33,c+33)):n.push(122);return function(e,t){for(var n=t;n>0;n--)e.pop()}(n,t.length),String.fromCharCode.apply(String,n)+"~>"},n=function(e){var t,n,r,i,a,o=String,s="length",l=255,u="charCodeAt",c="slice",d="replace";for(e[c](-2),e=e[c](0,-2)[d](/\s/g,"")[d]("z","!!!!!"),r=[],i=0,a=(e+=t="uuuuu"[c](e[s]%5||5))[s];a>i;i+=5)n=52200625*(e[u](i)-33)+614125*(e[u](i+1)-33)+7225*(e[u](i+2)-33)+85*(e[u](i+3)-33)+(e[u](i+4)-33),r.push(l&n>>24,l&n>>16,l&n>>8,l&n);return function(e,t){for(var n=t;n>0;n--)e.pop()}(r,t[s]),o.fromCharCode.apply(o,r)},r=function(e){var t=new RegExp(/^([0-9A-Fa-f]{2})+$/);if(-1!==(e=e.replace(/\s/g,"")).indexOf(">")&&(e=e.substr(0,e.indexOf(">"))),e.length%2&&(e+="0"),!1===t.test(e))return"";for(var n="",r=0;r",l.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":s=i(s),l.push("/FlateDecode");break;default:throw new Error('The filter: "'+a[o]+'" is not implemented')}return{data:s,reverseChain:l.reverse().join(" ")}}}(F.API),(Xe=F.API).loadFile=function(e,t,n){return function(e,t,n){t=!1!==t,n="function"==typeof n?n:function(){};var r=void 0;try{r=function(e,t,n){var r=new XMLHttpRequest,i=0,a=function(e){var t=e.length,n=[],r=String.fromCharCode;for(i=0;iu&&(l=c,c=u,u=l);else{if("l"!==e&&"landscape"!==e)throw"Invalid orientation: "+e;e="l",u>c&&(l=c,c=u,u=l)}return{width:c,height:u,unit:t,k:a,orientation:e}},e.html=function(e,t){(t=t||{}).callback=t.callback||function(){},t.html2canvas=t.html2canvas||{},t.html2canvas.canvas=t.html2canvas.canvas||this.canvas,t.jsPDF=t.jsPDF||this,t.fontFaces=t.fontFaces?t.fontFaces.map(je):null;var n=new l(t);return t.worker?n:n.from(e).doCallback()}}(F.API),F.API.addJS=function(e){return qe=e,this.internal.events.subscribe("postPutResources",(function(){Be=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(Be+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),We=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+qe+")"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){void 0!==Be&&void 0!==We&&this.internal.out("/Names <>")})),this},function(e){var t;e.events.push(["postPutResources",function(){var e=this,n=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var r=e.outline.render().split(/\r\n/),i=0;i> endobj")}var f=e.internal.newObject();for(e.internal.write("<< /Names [ "),i=0;i>","endobj"),t=e.internal.newObject(),e.internal.write("<< /Dests "+f+" 0 R"),e.internal.write(">>","endobj")}}]),e.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+t+" 0 R"))}]),e.events.push(["initialized",function(){var e=this;e.outline={createNamedDestinations:!1,root:{children:[]}},e.outline.add=function(e,t,n){var r={title:t,options:n,children:[]};return null==e&&(e=this.root),e.children.push(r),r},e.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=e,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},e.outline.genIds_r=function(t){t.id=e.internal.newObjectDeferred();for(var n=0;n0&&(this.line("/First "+this.makeRef(e.children[0])),this.line("/Last "+this.makeRef(e.children[e.children.length-1]))),this.line("/Count "+this.count_r({count:0},e)),this.objEnd()},e.outline.renderItems=function(t){for(var n=this.ctx.pdf.internal.getVerticalCoordinateString,r=0;r0&&this.line("/Prev "+this.makeRef(t.children[r-1])),r0&&(this.line("/First "+this.makeRef(i.children[0])),this.line("/Last "+this.makeRef(i.children[i.children.length-1])));var a=this.count=this.count_r({count:0},i);if(a>0&&this.line("/Count "+a),i.options&&i.options.pageNumber){var o=e.internal.getPageInfo(i.options.pageNumber);this.line("/Dest ["+o.objId+" 0 R /XYZ 0 "+n(0)+" 0]")}this.objEnd()}for(var s=0;s> \r\nendobj\r\n"},e.outline.count_r=function(e,t){for(var n=0;nt;0<=t?++f:--f)e.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(r=this.palette.length/3,this.transparency.indexed=this.read(t),this.transparency.indexed.length>r)throw new Error("More transparent colors than palette size");if((c=r-this.transparency.indexed.length)>0)for(h=0;0<=c?hc;0<=c?++h:--h)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(t)[0];break;case 2:this.transparency.rgb=this.read(t)}break;case"tEXt":s=(d=this.read(t)).indexOf(0),l=String.fromCharCode.apply(String,d.slice(0,s)),this.text[l]=String.fromCharCode.apply(String,d.slice(s+1));break;case"IEND":return o&&this.animation.frames.push(o),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=4===(p=this.colorType)||6===p,n=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*n,this.colorSpace=function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}.call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=t}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}r.prototype.read=function(e){var t,n;for(n=[],t=0;0<=e?te;0<=e?++t:--t)n.push(this.data[this.pos++]);return n},r.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},r.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},r.prototype.decodePixels=function(e){var t=this.pixelBitlength/8,n=new Uint8Array(this.width*this.height*t),r=0,i=this;if(null==e&&(e=this.imgData),0===e.length)return new Uint8Array(0);function o(a,o,s,l){var u,c,d,f,h,p,A,v,m,g,y,b,x,w,S,P,O,k,L,M,E,C=Math.ceil((i.width-a)/s),T=Math.ceil((i.height-o)/l),N=i.width==C&&i.height==T;for(w=t*C,b=N?n:new Uint8Array(w*T),p=e.length,x=0,c=0;x1&&n/i>7,o=1<<1+(7&i);e[t++],e[t++];var s=null,l=null;a&&(s=t,l=o,t+=3*o);var u=!0,c=[],d=0,f=null,h=0,p=null;for(this.width=n,this.height=r;u&&t=0))throw Error("Invalid block size");if(0===L)break;t+=L}break;case 249:if(4!==e[t++]||0!==e[t+4])throw new Error("Invalid graphics extension block.");var A=e[t++];d=e[t++]|e[t++]<<8,f=e[t++],0==(1&A)&&(f=null),h=A>>2&7,t++;break;case 254:for(;;){if(!((L=e[t++])>=0))throw Error("Invalid block size");if(0===L)break;t+=L}break;default:throw new Error("Unknown graphic control label: 0x"+e[t-1].toString(16))}break;case 44:var v=e[t++]|e[t++]<<8,m=e[t++]|e[t++]<<8,g=e[t++]|e[t++]<<8,y=e[t++]|e[t++]<<8,b=e[t++],x=b>>6&1,w=1<<1+(7&b),S=s,P=l,O=!1;b>>7&&(O=!0,S=t,P=w,t+=3*w);var k=t;for(t++;;){var L;if(!((L=e[t++])>=0))throw Error("Invalid block size");if(0===L)break;t+=L}c.push({x:v,y:m,width:g,height:y,has_local_palette:O,palette_offset:S,palette_size:P,data_offset:k,data_length:t-k,transparent_index:f,interlaced:!!x,delay:d,disposal:h});break;case 59:u=!1;break;default:throw new Error("Unknown gif block: 0x"+e[t-1].toString(16))}this.numFrames=function(){return c.length},this.loopCount=function(){return p},this.frameInfo=function(e){if(e<0||e>=c.length)throw new Error("Frame index out of range.");return c[e]},this.decodeAndBlitFrameBGRA=function(t,r){var i=this.frameInfo(t),a=i.width*i.height,o=new Uint8Array(a);$e(e,i.data_offset,o,a);var s=i.palette_offset,l=i.transparent_index;null===l&&(l=256);var u=i.width,c=n-u,d=u,f=4*(i.y*n+i.x),h=4*((i.y+i.height)*n+i.x),p=f,A=4*c;!0===i.interlaced&&(A+=4*n*7);for(var v=8,m=0,g=o.length;m=h&&(A=4*c+4*n*(v-1),p=f+(u+c)*(v<<1),v>>=1)),y===l)p+=4;else{var b=e[s+3*y],x=e[s+3*y+1],w=e[s+3*y+2];r[p++]=w,r[p++]=x,r[p++]=b,r[p++]=255}--d}},this.decodeAndBlitFrameRGBA=function(t,r){var i=this.frameInfo(t),a=i.width*i.height,o=new Uint8Array(a);$e(e,i.data_offset,o,a);var s=i.palette_offset,l=i.transparent_index;null===l&&(l=256);var u=i.width,c=n-u,d=u,f=4*(i.y*n+i.x),h=4*((i.y+i.height)*n+i.x),p=f,A=4*c;!0===i.interlaced&&(A+=4*n*7);for(var v=8,m=0,g=o.length;m=h&&(A=4*c+4*n*(v-1),p=f+(u+c)*(v<<1),v>>=1)),y===l)p+=4;else{var b=e[s+3*y],x=e[s+3*y+1],w=e[s+3*y+2];r[p++]=b,r[p++]=x,r[p++]=w,r[p++]=255}--d}}}function $e(e,t,n,r){for(var i=e[t++],a=1<>=u,d-=u,m!==a){if(m===o)break;for(var g=ma;)b=A[b]>>8,++y;var x=b;if(h+y+(g!==m?1:0)>r)return void l.log("Warning, gif stream longer than expected.");n[h++]=x;var w=h+=y;for(g!==m&&(n[h++]=x),b=g;y--;)b=A[b],n[--w]=255&b,b>>=8;null!==v&&s<4096&&(A[s++]=v<<8|x,s>=c+1&&u<12&&(++u,c=c<<1|1)),v=m}else s=o+1,c=(1<<(u=i+1))-1,v=null}return h!==r&&l.log("Warning, gif stream shorter than expected."),n}function et(e){var t,n,r,i,a,o=Math.floor,s=new Array(64),l=new Array(64),u=new Array(64),c=new Array(64),d=new Array(65535),f=new Array(65535),h=new Array(64),p=new Array(64),A=[],v=0,m=7,g=new Array(64),y=new Array(64),b=new Array(64),x=new Array(256),w=new Array(2048),S=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],P=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],O=[0,1,2,3,4,5,6,7,8,9,10,11],k=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],L=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],M=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],E=[0,1,2,3,4,5,6,7,8,9,10,11],C=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],T=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function N(e,t){for(var n=0,r=0,i=new Array,a=1;a<=16;a++){for(var o=1;o<=e[a];o++)i[t[r]]=[],i[t[r]][0]=n,i[t[r]][1]=a,r++,n++;n*=2}return i}function j(e){for(var t=e[0],n=e[1]-1;n>=0;)t&1<>8&255),z(255&e)}function D(e,t,n,r,i){for(var a,o=i[0],s=i[240],l=function(e,t){var n,r,i,a,o,s,l,u,c,d,f=0;for(c=0;c<8;++c){n=e[f],r=e[f+1],i=e[f+2],a=e[f+3],o=e[f+4],s=e[f+5],l=e[f+6];var p=n+(u=e[f+7]),A=n-u,v=r+l,m=r-l,g=i+s,y=i-s,b=a+o,x=a-o,w=p+b,S=p-b,P=v+g,O=v-g;e[f]=w+P,e[f+4]=w-P;var k=.707106781*(O+S);e[f+2]=S+k,e[f+6]=S-k;var L=.382683433*((w=x+y)-(O=m+A)),M=.5411961*w+L,E=1.306562965*O+L,C=.707106781*(P=y+m),T=A+C,N=A-C;e[f+5]=N+M,e[f+3]=N-M,e[f+1]=T+E,e[f+7]=T-E,f+=8}for(f=0,c=0;c<8;++c){n=e[f],r=e[f+8],i=e[f+16],a=e[f+24],o=e[f+32],s=e[f+40],l=e[f+48];var j=n+(u=e[f+56]),z=n-u,R=r+l,D=r-l,I=i+s,_=i-s,F=a+o,V=a-o,B=j+F,W=j-F,q=R+I,X=R-I;e[f]=B+q,e[f+32]=B-q;var U=.707106781*(X+W);e[f+16]=W+U,e[f+48]=W-U;var H=.382683433*((B=V+_)-(X=D+z)),G=.5411961*B+H,Z=1.306562965*X+H,Y=.707106781*(q=_+D),J=z+Y,K=z-Y;e[f+40]=K+G,e[f+24]=K-G,e[f+8]=J+Z,e[f+56]=J-Z,f++}for(c=0;c<64;++c)d=e[c]*t[c],h[c]=d>0?d+.5|0:d-.5|0;return h}(e,t),u=0;u<64;++u)p[S[u]]=l[u];var c=p[0]-n;n=p[0],0==c?j(r[0]):(j(r[f[a=32767+c]]),j(d[a]));for(var A=63;A>0&&0==p[A];)A--;if(0==A)return j(o),n;for(var v,m=1;m<=A;){for(var g=m;0==p[m]&&m<=A;)++m;var y=m-g;if(y>=16){v=y>>4;for(var b=1;b<=v;++b)j(s);y&=15}a=32767+p[m],j(i[(y<<4)+f[a]]),j(d[a]),m++}return 63!=A&&j(o),n}function I(e){e=Math.min(Math.max(e,1),100),a!=e&&(function(e){for(var t=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],n=0;n<64;n++){var r=o((t[n]*e+50)/100);r=Math.min(Math.max(r,1),255),s[S[n]]=r}for(var i=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],a=0;a<64;a++){var d=o((i[a]*e+50)/100);d=Math.min(Math.max(d,1),255),l[S[a]]=d}for(var f=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],h=0,p=0;p<8;p++)for(var A=0;A<8;A++)u[h]=1/(s[S[h]]*f[p]*f[A]*8),c[h]=1/(l[S[h]]*f[p]*f[A]*8),h++}(e<50?Math.floor(5e3/e):Math.floor(200-2*e)),a=e)}this.encode=function(e,a){a&&I(a),A=new Array,v=0,m=7,R(65496),R(65504),R(16),z(74),z(70),z(73),z(70),z(0),z(1),z(1),z(0),R(1),R(1),z(0),z(0),function(){R(65499),R(132),z(0);for(var e=0;e<64;e++)z(s[e]);z(1);for(var t=0;t<64;t++)z(l[t])}(),function(e,t){R(65472),R(17),z(8),R(t),R(e),z(3),z(1),z(17),z(0),z(2),z(17),z(1),z(3),z(17),z(1)}(e.width,e.height),function(){R(65476),R(418),z(0);for(var e=0;e<16;e++)z(P[e+1]);for(var t=0;t<=11;t++)z(O[t]);z(16);for(var n=0;n<16;n++)z(k[n+1]);for(var r=0;r<=161;r++)z(L[r]);z(1);for(var i=0;i<16;i++)z(M[i+1]);for(var a=0;a<=11;a++)z(E[a]);z(17);for(var o=0;o<16;o++)z(C[o+1]);for(var s=0;s<=161;s++)z(T[s])}(),R(65498),R(12),z(3),z(1),z(0),z(2),z(17),z(3),z(17),z(0),z(63),z(0);var o=0,d=0,f=0;v=0,m=7,this.encode.displayName="_encode_";for(var h,p,x,S,N,_,F,V,B,W=e.data,q=e.width,X=e.height,U=4*q,H=0;H>3)*U+(F=4*(7&B)),H+V>=X&&(_-=U*(H+1+V-X)),h+F>=U&&(_-=h+F-U+4),p=W[_++],x=W[_++],S=W[_++],g[B]=(w[p]+w[x+256>>0]+w[S+512>>0]>>16)-128,y[B]=(w[p+768>>0]+w[x+1024>>0]+w[S+1280>>0]>>16)-128,b[B]=(w[p+1280>>0]+w[x+1536>>0]+w[S+1792>>0]>>16)-128;o=D(g,u,o,t,r),d=D(y,c,d,n,i),f=D(b,c,f,n,i),h+=32}H+=8}if(m>=0){var G=[];G[1]=m+1,G[0]=(1<>0]=38470*e,w[e+512>>0]=7471*e+32768,w[e+768>>0]=-11059*e,w[e+1024>>0]=-21709*e,w[e+1280>>0]=32768*e+8421375,w[e+1536>>0]=-27439*e,w[e+1792>>0]=-5329*e}(),I(e)}function tt(e,t){if(this.pos=0,this.buffer=e,this.datav=new DataView(e.buffer),this.is_with_alpha=!!t,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,-1===["BM","BA","CI","CP","IC","PT"].indexOf(this.flag))throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function nt(e){function t(e){if(!e)throw Error("assert :P")}function n(e,t,n){for(var r=0;4>r;r++)if(e[t+r]!=n.charCodeAt(r))return!0;return!1}function r(e,t,n,r,i){for(var a=0;ar+1?[]:new t),!(i.length>>0;e&n;)n>>>=1;return n?(e&n-1)+n:e}function u(e,n,r,i,a){t(!(i%r));do{e[n+(i-=r)]=a}while(0=o),512>=o)var s=a(512);else if(null==(s=a(o)))return 0;return function(e,n,r,i,o,s){var c,f,h=n,p=1<c;++c){if(A[c]>1<(w-=A[c]))return 0;for(;0=c;++c,o<<=1){if(x+=w<<=1,0>(w-=A[c]))return 0;for(;0g&&!(0>=(m-=A[g]));)++g,m<<=1;p+=S=1<<(m=g-r),e[n+(g=b&y)].g=m+r,e[n+g].value=h-n-g}i.g=c-r,i.value=s[f++],u(e,h+(b>>r),o,S,i),b=l(b,c)}}return x!=2*v[15]-1?0:p}(e,n,r,i,o,s)}function d(){this.value=this.g=0}function f(){this.value=this.g=0}function h(){this.G=o(5,d),this.H=a(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=o(Fn,f)}function p(e,n,r,i){t(null!=e),t(null!=n),t(2147483648>i),e.Ca=254,e.I=0,e.b=-8,e.Ka=0,e.oa=n,e.pa=r,e.Jd=n,e.Yc=r+i,e.Zc=4<=i?r+i-4+1:r,k(e)}function A(e,t){for(var n=0;0i),e.Sb=i,e.Ra=0,e.u=0,e.h=0,4>>=8,e.Ra+=e.oa[e.pa+e.bb]<>>0,++e.bb,e.u-=8;S(e)&&(e.h=1,e.u=0)}function y(e,n){if(t(0<=n),!e.h&&n<=Bn){var r=w(e)&Vn[n];return e.u+=n,g(e),r}return e.h=1,e.u=0}function b(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function x(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function w(e){return e.Ra>>>(e.u&Wn-1)>>>0}function S(e){return t(e.bb<=e.Sb),e.h||e.bb==e.Sb&&e.u>Wn}function P(e,t){e.u=t,e.h=S(e)}function O(e){e.u>=qn&&(t(e.u>=qn),g(e))}function k(e){t(null!=e&&null!=e.oa),e.pa>>0,e.b+=8):(t(null!=e&&null!=e.oa),e.pae.b&&k(e);var r=e.b,i=n*t>>>8,a=(e.I>>>r>i)+0;for(a?(n-=i,e.I-=i+1<>>0):n=i+1,r=n,i=0;256<=r;)i+=8,r>>=8;return r=7^i+Xn[r],e.b-=r,e.Ca=(n<>24&255,e[t+1]=n>>16&255,e[t+2]=n>>8&255,e[t+3]=n>>0&255}function C(e,t){return e[t+0]<<0|e[t+1]<<8}function T(e,t){return C(e,t)|e[t+2]<<16}function N(e,t){return C(e,t)|C(e,t+2)<<16}function j(e,n){var r=1<=a||0>=o?0:(r[0]=a,i[0]=o,1)}function I(e,t){return e+(1<>>t}function _(e,t){return((4278255360&e)+(4278255360&t)>>>0&4278255360)+((16711935&e)+(16711935&t)>>>0&16711935)>>>0}function F(t,n){e[n]=function(n,r,i,a,o,s,l){var u;for(u=0;u>>1)+(e&t)>>>0}function W(e){return 0<=e&&256>e?e:0>e?0:255>1))}function X(e,t,n){return Math.abs(t-n)-Math.abs(e-n)}function U(e,t,n,r,i,a,o){for(r=a[o-1],n=0;n>8&255,l=16711935&(l=(l=16711935&o)+((s<<16)+s));r[i+a]=(4278255360&o)+l>>>0}}function G(e,t){t.jd=e>>0&255,t.hd=e>>8&255,t.ud=e>>16&255}function Z(e,t,n,r,i,a){var o;for(o=0;o>>8,u=s,c=255&(c=(c=s>>>16)+((e.jd<<24>>24)*(l<<24>>24)>>>5));u=255&(u=(u+=(e.hd<<24>>24)*(l<<24>>24)>>>5)+((e.ud<<24>>24)*(c<<24>>24)>>>5)),i[a+o]=(4278255360&s)+(c<<16)+u}}function Y(t,n,r,i,a){e[n]=function(e,t,n,r,o,s,l,u,c){for(r=l;r>t.b,f=t.Ea,h=t.K[0],p=t.w;if(8>d)for(t=(1<>=d}else e["VP8LMapColor"+r](s,l,h,p,u,c,n,o,f)}}function J(e,t,n,r,i){for(n=t+n;t>16&255,r[i++]=a>>8&255,r[i++]=a>>0&255}}function K(e,t,n,r,i){for(n=t+n;t>16&255,r[i++]=a>>8&255,r[i++]=a>>0&255,r[i++]=a>>24&255}}function Q(e,t,n,r,i){for(n=t+n;t>16&240|o>>12&15,o=o>>0&240|o>>28&15;r[i++]=a,r[i++]=o}}function $(e,t,n,r,i){for(n=t+n;t>16&248|o>>13&7,o=o>>5&224|o>>3&31;r[i++]=a